IMP  2.3.0
The Integrative Modeling Platform
pmi/__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 3.0.2
3 #
4 # Do not make changes to this file unless you know what you are doing--modify
5 # the SWIG interface file instead.
6 
7 
8 
9 
10 
11 from sys import version_info
12 if version_info >= (2,6,0):
13  def swig_import_helper():
14  from os.path import dirname
15  import imp
16  fp = None
17  try:
18  fp, pathname, description = imp.find_module('_IMP_pmi', [dirname(__file__)])
19  except ImportError:
20  import _IMP_pmi
21  return _IMP_pmi
22  if fp is not None:
23  try:
24  _mod = imp.load_module('_IMP_pmi', fp, pathname, description)
25  finally:
26  fp.close()
27  return _mod
28  _IMP_pmi = swig_import_helper()
29  del swig_import_helper
30 else:
31  import _IMP_pmi
32 del version_info
33 try:
34  _swig_property = property
35 except NameError:
36  pass # Python < 2.2 doesn't have 'property'.
37 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
38  if (name == "thisown"): return self.this.own(value)
39  if (name == "this"):
40  if type(value).__name__ == 'SwigPyObject':
41  self.__dict__[name] = value
42  return
43  method = class_type.__swig_setmethods__.get(name,None)
44  if method: return method(self,value)
45  if (not static):
46  self.__dict__[name] = value
47  else:
48  raise AttributeError("You cannot add attributes to %s" % self)
49 
50 def _swig_setattr(self,class_type,name,value):
51  return _swig_setattr_nondynamic(self,class_type,name,value,0)
52 
53 def _swig_getattr(self,class_type,name):
54  if (name == "thisown"): return self.this.own()
55  method = class_type.__swig_getmethods__.get(name,None)
56  if method: return method(self)
57  raise AttributeError(name)
58 
59 def _swig_repr(self):
60  try: strthis = "proxy of " + self.this.__repr__()
61  except: strthis = ""
62  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
63 
64 try:
65  _object = object
66  _newclass = 1
67 except AttributeError:
68  class _object : pass
69  _newclass = 0
70 
71 
72 try:
73  import weakref
74  weakref_proxy = weakref.proxy
75 except:
76  weakref_proxy = lambda x: x
77 
78 
79 class IMP_PMI_SwigPyIterator(_object):
80  """Proxy of C++ swig::IMP_PMI_SwigPyIterator class"""
81  __swig_setmethods__ = {}
82  __setattr__ = lambda self, name, value: _swig_setattr(self, IMP_PMI_SwigPyIterator, name, value)
83  __swig_getmethods__ = {}
84  __getattr__ = lambda self, name: _swig_getattr(self, IMP_PMI_SwigPyIterator, name)
85  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
86  __repr__ = _swig_repr
87  __swig_destroy__ = _IMP_pmi.delete_IMP_PMI_SwigPyIterator
88  __del__ = lambda self : None;
89  def value(self):
90  """value(IMP_PMI_SwigPyIterator self) -> PyObject *"""
91  return _IMP_pmi.IMP_PMI_SwigPyIterator_value(self)
92 
93  def incr(self, n=1):
94  """
95  incr(IMP_PMI_SwigPyIterator self, size_t n=1) -> IMP_PMI_SwigPyIterator
96  incr(IMP_PMI_SwigPyIterator self) -> IMP_PMI_SwigPyIterator
97  """
98  return _IMP_pmi.IMP_PMI_SwigPyIterator_incr(self, n)
99 
100  def decr(self, n=1):
101  """
102  decr(IMP_PMI_SwigPyIterator self, size_t n=1) -> IMP_PMI_SwigPyIterator
103  decr(IMP_PMI_SwigPyIterator self) -> IMP_PMI_SwigPyIterator
104  """
105  return _IMP_pmi.IMP_PMI_SwigPyIterator_decr(self, n)
106 
107  def distance(self, *args):
108  """distance(IMP_PMI_SwigPyIterator self, IMP_PMI_SwigPyIterator x) -> ptrdiff_t"""
109  return _IMP_pmi.IMP_PMI_SwigPyIterator_distance(self, *args)
110 
111  def equal(self, *args):
112  """equal(IMP_PMI_SwigPyIterator self, IMP_PMI_SwigPyIterator x) -> bool"""
113  return _IMP_pmi.IMP_PMI_SwigPyIterator_equal(self, *args)
114 
115  def copy(self):
116  """copy(IMP_PMI_SwigPyIterator self) -> IMP_PMI_SwigPyIterator"""
117  return _IMP_pmi.IMP_PMI_SwigPyIterator_copy(self)
118 
119  def next(self):
120  """next(IMP_PMI_SwigPyIterator self) -> PyObject *"""
121  return _IMP_pmi.IMP_PMI_SwigPyIterator_next(self)
122 
123  def __next__(self):
124  """__next__(IMP_PMI_SwigPyIterator self) -> PyObject *"""
125  return _IMP_pmi.IMP_PMI_SwigPyIterator___next__(self)
126 
127  def previous(self):
128  """previous(IMP_PMI_SwigPyIterator self) -> PyObject *"""
129  return _IMP_pmi.IMP_PMI_SwigPyIterator_previous(self)
130 
131  def advance(self, *args):
132  """advance(IMP_PMI_SwigPyIterator self, ptrdiff_t n) -> IMP_PMI_SwigPyIterator"""
133  return _IMP_pmi.IMP_PMI_SwigPyIterator_advance(self, *args)
134 
135  def __eq__(self, *args):
136  """__eq__(IMP_PMI_SwigPyIterator self, IMP_PMI_SwigPyIterator x) -> bool"""
137  return _IMP_pmi.IMP_PMI_SwigPyIterator___eq__(self, *args)
138 
139  def __ne__(self, *args):
140  """__ne__(IMP_PMI_SwigPyIterator self, IMP_PMI_SwigPyIterator x) -> bool"""
141  return _IMP_pmi.IMP_PMI_SwigPyIterator___ne__(self, *args)
142 
143  def __iadd__(self, *args):
144  """__iadd__(IMP_PMI_SwigPyIterator self, ptrdiff_t n) -> IMP_PMI_SwigPyIterator"""
145  return _IMP_pmi.IMP_PMI_SwigPyIterator___iadd__(self, *args)
146 
147  def __isub__(self, *args):
148  """__isub__(IMP_PMI_SwigPyIterator self, ptrdiff_t n) -> IMP_PMI_SwigPyIterator"""
149  return _IMP_pmi.IMP_PMI_SwigPyIterator___isub__(self, *args)
150 
151  def __add__(self, *args):
152  """__add__(IMP_PMI_SwigPyIterator self, ptrdiff_t n) -> IMP_PMI_SwigPyIterator"""
153  return _IMP_pmi.IMP_PMI_SwigPyIterator___add__(self, *args)
154 
155  def __sub__(self, *args):
156  """
157  __sub__(IMP_PMI_SwigPyIterator self, ptrdiff_t n) -> IMP_PMI_SwigPyIterator
158  __sub__(IMP_PMI_SwigPyIterator self, IMP_PMI_SwigPyIterator x) -> ptrdiff_t
159  """
160  return _IMP_pmi.IMP_PMI_SwigPyIterator___sub__(self, *args)
161 
162  def __iter__(self): return self
163 IMP_PMI_SwigPyIterator_swigregister = _IMP_pmi.IMP_PMI_SwigPyIterator_swigregister
164 IMP_PMI_SwigPyIterator_swigregister(IMP_PMI_SwigPyIterator)
165 
166 _value_types=[]
167 _object_types=[]
168 _raii_types=[]
169 _plural_types=[]
170 
171 IMP_DEBUG = _IMP_pmi.IMP_DEBUG
172 IMP_RELEASE = _IMP_pmi.IMP_RELEASE
173 IMP_SILENT = _IMP_pmi.IMP_SILENT
174 IMP_PROGRESS = _IMP_pmi.IMP_PROGRESS
175 IMP_TERSE = _IMP_pmi.IMP_TERSE
176 IMP_VERBOSE = _IMP_pmi.IMP_VERBOSE
177 IMP_MEMORY = _IMP_pmi.IMP_MEMORY
178 IMP_NONE = _IMP_pmi.IMP_NONE
179 IMP_USAGE = _IMP_pmi.IMP_USAGE
180 IMP_INTERNAL = _IMP_pmi.IMP_INTERNAL
181 IMP_BASE_HAS_LOG4CXX = _IMP_pmi.IMP_BASE_HAS_LOG4CXX
182 IMP_COMPILER_HAS_AUTO = _IMP_pmi.IMP_COMPILER_HAS_AUTO
183 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_pmi.IMP_COMPILER_HAS_DEBUG_VECTOR
184 IMP_BASE_HAS_BOOST_RANDOM = _IMP_pmi.IMP_BASE_HAS_BOOST_RANDOM
185 IMP_BASE_HAS_GPERFTOOLS = _IMP_pmi.IMP_BASE_HAS_GPERFTOOLS
186 IMP_BASE_HAS_TCMALLOC_HEAPCHECKER = _IMP_pmi.IMP_BASE_HAS_TCMALLOC_HEAPCHECKER
187 IMP_BASE_HAS_TCMALLOC_HEAPPROFILER = _IMP_pmi.IMP_BASE_HAS_TCMALLOC_HEAPPROFILER
188 IMPBASE_SHOW_WARNINGS = _IMP_pmi.IMPBASE_SHOW_WARNINGS
189 import sys
190 class _DirectorObjects(object):
191  """@internal Simple class to keep references to director objects
192  to prevent premature deletion."""
193  def __init__(self):
194  self._objects = []
195  def register(self, obj):
196  """Take a reference to a director object; will only work for
197  refcounted C++ classes"""
198  if hasattr(obj, 'get_ref_count'):
199  self._objects.append(obj)
200  def cleanup(self):
201  """Only drop our reference and allow cleanup by Python if no other
202  Python references exist (we hold 3 references: one in self._objects,
203  one in x, and one in the argument list for getrefcount) *and* no
204  other C++ references exist (the Python object always holds one)"""
205  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
206  or x.get_ref_count() > 1]
207 
208 
209  self._objects = objs
210  def get_object_count(self):
211  """Get number of director objects (useful for testing only)"""
212  return len(self._objects)
213 _director_objects = _DirectorObjects()
214 
215 DEFAULT_CHECK = _IMP_pmi.DEFAULT_CHECK
216 NONE = _IMP_pmi.NONE
217 USAGE = _IMP_pmi.USAGE
218 USAGE_AND_INTERNAL = _IMP_pmi.USAGE_AND_INTERNAL
219 
220 def set_check_level(*args):
221  """set_check_level(IMP::base::CheckLevel tf)"""
222  return _IMP_pmi.set_check_level(*args)
223 
224 def get_check_level():
225  """get_check_level() -> IMP::base::CheckLevel"""
226  return _IMP_pmi.get_check_level()
227 class _ostream(_object):
228  """Proxy of C++ std::ostream class"""
229  __swig_setmethods__ = {}
230  __setattr__ = lambda self, name, value: _swig_setattr(self, _ostream, name, value)
231  __swig_getmethods__ = {}
232  __getattr__ = lambda self, name: _swig_getattr(self, _ostream, name)
233  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
234  __repr__ = _swig_repr
235  def write(self, *args):
236  """write(_ostream self, char const * osa_buf)"""
237  return _IMP_pmi._ostream_write(self, *args)
238 
239 _ostream_swigregister = _IMP_pmi._ostream_swigregister
240 _ostream_swigregister(_ostream)
241 
242 IMP_COMPILER_HAS_OVERRIDE = _IMP_pmi.IMP_COMPILER_HAS_OVERRIDE
243 IMP_COMPILER_HAS_FINAL = _IMP_pmi.IMP_COMPILER_HAS_FINAL
244 IMP_HAS_NOEXCEPT = _IMP_pmi.IMP_HAS_NOEXCEPT
245 import IMP.base
246 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_pmi.IMP_CGAL_HAS_BOOST_FILESYSTEM
247 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_pmi.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
248 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_pmi.IMP_CGAL_HAS_BOOST_RANDOM
249 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_pmi.IMP_CGAL_HAS_BOOST_SYSTEM
250 IMPCGAL_SHOW_WARNINGS = _IMP_pmi.IMPCGAL_SHOW_WARNINGS
251 import IMP.cgal
252 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_pmi.IMP_ALGEBRA_HAS_IMP_CGAL
253 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_pmi.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
254 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_pmi.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
255 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_pmi.IMP_ALGEBRA_HAS_BOOST_RANDOM
256 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_pmi.IMP_ALGEBRA_HAS_BOOST_SYSTEM
257 IMP_ALGEBRA_HAS_CGAL = _IMP_pmi.IMP_ALGEBRA_HAS_CGAL
258 IMP_ALGEBRA_HAS_ANN = _IMP_pmi.IMP_ALGEBRA_HAS_ANN
259 IMPALGEBRA_SHOW_WARNINGS = _IMP_pmi.IMPALGEBRA_SHOW_WARNINGS
260 import IMP.algebra
261 IMP_KERNEL_HAS_IMP_CGAL = _IMP_pmi.IMP_KERNEL_HAS_IMP_CGAL
262 IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS = _IMP_pmi.IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS
263 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_pmi.IMP_KERNEL_HAS_BOOST_RANDOM
264 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_pmi.IMP_KERNEL_HAS_BOOST_SYSTEM
265 IMP_KERNEL_HAS_CGAL = _IMP_pmi.IMP_KERNEL_HAS_CGAL
266 IMPKERNEL_SHOW_WARNINGS = _IMP_pmi.IMPKERNEL_SHOW_WARNINGS
267 import IMP.kernel
268 IMP_DISPLAY_HAS_IMP_BASE = _IMP_pmi.IMP_DISPLAY_HAS_IMP_BASE
269 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_pmi.IMP_DISPLAY_HAS_IMP_CGAL
270 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_pmi.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
271 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_pmi.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
272 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_pmi.IMP_DISPLAY_HAS_BOOST_RANDOM
273 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_pmi.IMP_DISPLAY_HAS_BOOST_SYSTEM
274 IMP_DISPLAY_HAS_CGAL = _IMP_pmi.IMP_DISPLAY_HAS_CGAL
275 IMPDISPLAY_SHOW_WARNINGS = _IMP_pmi.IMPDISPLAY_SHOW_WARNINGS
276 import IMP.display
277 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_pmi.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
278 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_pmi.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
279 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_pmi.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
280 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_pmi.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
281 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_pmi.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
282 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_pmi.IMP_SCORE_FUNCTOR_HAS_CGAL
283 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_pmi.IMP_SCORE_FUNCTOR_HAS_HDF5
284 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_pmi.IMPSCOREFUNCTOR_SHOW_WARNINGS
285 import IMP.score_functor
286 IMP_CORE_HAS_IMP_BASE = _IMP_pmi.IMP_CORE_HAS_IMP_BASE
287 IMP_CORE_HAS_IMP_CGAL = _IMP_pmi.IMP_CORE_HAS_IMP_CGAL
288 IMP_CORE_HAS_IMP_KERNEL = _IMP_pmi.IMP_CORE_HAS_IMP_KERNEL
289 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_pmi.IMP_CORE_HAS_BOOST_FILESYSTEM
290 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_pmi.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
291 IMP_CORE_HAS_BOOST_RANDOM = _IMP_pmi.IMP_CORE_HAS_BOOST_RANDOM
292 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_pmi.IMP_CORE_HAS_BOOST_SYSTEM
293 IMP_CORE_HAS_CGAL = _IMP_pmi.IMP_CORE_HAS_CGAL
294 IMP_CORE_HAS_HDF5 = _IMP_pmi.IMP_CORE_HAS_HDF5
295 IMPCORE_SHOW_WARNINGS = _IMP_pmi.IMPCORE_SHOW_WARNINGS
296 import IMP.core
297 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_pmi.IMP_CONTAINER_HAS_IMP_ALGEBRA
298 IMP_CONTAINER_HAS_IMP_BASE = _IMP_pmi.IMP_CONTAINER_HAS_IMP_BASE
299 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_pmi.IMP_CONTAINER_HAS_IMP_CGAL
300 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_pmi.IMP_CONTAINER_HAS_IMP_DISPLAY
301 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_pmi.IMP_CONTAINER_HAS_IMP_KERNEL
302 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_pmi.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
303 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_pmi.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
304 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_pmi.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
305 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_pmi.IMP_CONTAINER_HAS_BOOST_RANDOM
306 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_pmi.IMP_CONTAINER_HAS_BOOST_SYSTEM
307 IMP_CONTAINER_HAS_CGAL = _IMP_pmi.IMP_CONTAINER_HAS_CGAL
308 IMP_CONTAINER_HAS_HDF5 = _IMP_pmi.IMP_CONTAINER_HAS_HDF5
309 IMPCONTAINER_SHOW_WARNINGS = _IMP_pmi.IMPCONTAINER_SHOW_WARNINGS
310 import IMP.container
311 IMP_PMI_HAS_IMP_ALGEBRA = _IMP_pmi.IMP_PMI_HAS_IMP_ALGEBRA
312 IMP_PMI_HAS_IMP_BASE = _IMP_pmi.IMP_PMI_HAS_IMP_BASE
313 IMP_PMI_HAS_IMP_CGAL = _IMP_pmi.IMP_PMI_HAS_IMP_CGAL
314 IMP_PMI_HAS_IMP_DISPLAY = _IMP_pmi.IMP_PMI_HAS_IMP_DISPLAY
315 IMP_PMI_HAS_IMP_KERNEL = _IMP_pmi.IMP_PMI_HAS_IMP_KERNEL
316 IMP_PMI_HAS_IMP_SCORE_FUNCTOR = _IMP_pmi.IMP_PMI_HAS_IMP_SCORE_FUNCTOR
317 IMP_PMI_HAS_BOOST_FILESYSTEM = _IMP_pmi.IMP_PMI_HAS_BOOST_FILESYSTEM
318 IMP_PMI_HAS_BOOST_PROGRAMOPTIONS = _IMP_pmi.IMP_PMI_HAS_BOOST_PROGRAMOPTIONS
319 IMP_PMI_HAS_BOOST_RANDOM = _IMP_pmi.IMP_PMI_HAS_BOOST_RANDOM
320 IMP_PMI_HAS_BOOST_SYSTEM = _IMP_pmi.IMP_PMI_HAS_BOOST_SYSTEM
321 IMP_PMI_HAS_CGAL = _IMP_pmi.IMP_PMI_HAS_CGAL
322 IMP_PMI_HAS_HDF5 = _IMP_pmi.IMP_PMI_HAS_HDF5
323 IMPPMI_SHOW_WARNINGS = _IMP_pmi.IMPPMI_SHOW_WARNINGS
324 _object_types.append("CompositeRestraint")
325 
326 
327 def _object_cast_to_CompositeRestraint(*args):
328  """_object_cast_to_CompositeRestraint(Object o) -> CompositeRestraint"""
329  return _IMP_pmi._object_cast_to_CompositeRestraint(*args)
330 def Uncertainties(l=[]):
331  return [Uncertainty(x) for x in l]
332 _plural_types.append("Uncertainties")
333 
334 _value_types.append("Uncertainty")
335 
336 def Resolutions(l=[]):
337  return [Resolution(x) for x in l]
338 _plural_types.append("Resolutions")
339 
340 _value_types.append("Resolution")
341 
342 def Symmetrics(l=[]):
343  return [Symmetric(x) for x in l]
344 _plural_types.append("Symmetrics")
345 
346 _value_types.append("Symmetric")
347 
348 _object_types.append("SigmoidRestraintSphere")
349 
350 
351 def _object_cast_to_SigmoidRestraintSphere(*args):
352  """_object_cast_to_SigmoidRestraintSphere(Object o) -> SigmoidRestraintSphere"""
353  return _IMP_pmi._object_cast_to_SigmoidRestraintSphere(*args)
354 _object_types.append("TransformMover")
355 
356 
357 def _object_cast_to_TransformMover(*args):
358  """_object_cast_to_TransformMover(Object o) -> TransformMover"""
359  return _IMP_pmi._object_cast_to_TransformMover(*args)
360 class CompositeRestraint(IMP.kernel.Restraint):
361  """Proxy of C++ IMP::pmi::CompositeRestraint class"""
362  __swig_setmethods__ = {}
363  for _s in [IMP.kernel.Restraint]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
364  __setattr__ = lambda self, name, value: _swig_setattr(self, CompositeRestraint, name, value)
365  __swig_getmethods__ = {}
366  for _s in [IMP.kernel.Restraint]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
367  __getattr__ = lambda self, name: _swig_getattr(self, CompositeRestraint, name)
368  def __init__(self, *args):
369  """
370  __init__(IMP::pmi::CompositeRestraint self, Model m, _ParticleIndexesAdaptor handle_particle_indexes, double coffd, double l,
371  bool tabprob, double plateau, std::string name="CompositeRestraint%1%") -> CompositeRestraint
372  __init__(IMP::pmi::CompositeRestraint self, Model m, _ParticleIndexesAdaptor handle_particle_indexes, double coffd, double l,
373  bool tabprob, double plateau) -> CompositeRestraint
374  """
375  this = _IMP_pmi.new_CompositeRestraint(*args)
376  try: self.this.append(this)
377  except: self.this = this
378  def add_composite_particle(self, *args):
379  """add_composite_particle(CompositeRestraint self, _ParticleIndexesAdaptor pi)"""
380  return _IMP_pmi.CompositeRestraint_add_composite_particle(self, *args)
381 
382  def get_number_of_elements(self):
383  """get_number_of_elements(CompositeRestraint self) -> unsigned int"""
384  return _IMP_pmi.CompositeRestraint_get_number_of_elements(self)
385 
386  def do_get_inputs(self):
387  """do_get_inputs(CompositeRestraint self) -> IMP::kernel::ModelObjectsTemp"""
388  return _IMP_pmi.CompositeRestraint_do_get_inputs(self)
389 
390  def get_version_info(self):
391  """get_version_info(CompositeRestraint self) -> VersionInfo"""
392  return _IMP_pmi.CompositeRestraint_get_version_info(self)
393 
394  def get_probability(self):
395  """get_probability(CompositeRestraint self) -> double"""
396  return _IMP_pmi.CompositeRestraint_get_probability(self)
397 
398  def __str__(self):
399  """__str__(CompositeRestraint self) -> std::string"""
400  return _IMP_pmi.CompositeRestraint___str__(self)
401 
402  def __repr__(self):
403  """__repr__(CompositeRestraint self) -> std::string"""
404  return _IMP_pmi.CompositeRestraint___repr__(self)
405 
406  def get_from(o):
407  return _object_cast_to_CompositeRestraint(o)
408  get_from = staticmethod(get_from)
409 
410 CompositeRestraint_swigregister = _IMP_pmi.CompositeRestraint_swigregister
411 CompositeRestraint_swigregister(CompositeRestraint)
412 
413 class Uncertainty(IMP.kernel.Decorator):
414  """Proxy of C++ IMP::pmi::Uncertainty class"""
415  __swig_setmethods__ = {}
416  for _s in [IMP.kernel.Decorator]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
417  __setattr__ = lambda self, name, value: _swig_setattr(self, Uncertainty, name, value)
418  __swig_getmethods__ = {}
419  for _s in [IMP.kernel.Decorator]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
420  __getattr__ = lambda self, name: _swig_getattr(self, Uncertainty, name)
421  def get_uncertainty(self):
422  """get_uncertainty(Uncertainty self) -> IMP::Float"""
423  return _IMP_pmi.Uncertainty_get_uncertainty(self)
424 
425  def set_Uncertainty(self, *args):
426  """set_Uncertainty(Uncertainty self, IMP::Float d)"""
427  return _IMP_pmi.Uncertainty_set_Uncertainty(self, *args)
428 
429  def __init__(self, *args):
430  """
431  __init__(IMP::pmi::Uncertainty self) -> Uncertainty
432  __init__(IMP::pmi::Uncertainty self, Model m, ::IMP::kernel::ParticleIndex id) -> Uncertainty
433  __init__(IMP::pmi::Uncertainty self, _ParticleAdaptor d) -> Uncertainty
434  """
435  this = _IMP_pmi.new_Uncertainty(*args)
436  try: self.this.append(this)
437  except: self.this = this
438  def get_is_setup(*args):
439  """
440  get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
441  get_is_setup(_ParticleAdaptor p) -> bool
442  """
443  return _IMP_pmi.Uncertainty_get_is_setup(*args)
444 
445  if _newclass:get_is_setup = staticmethod(get_is_setup)
446  __swig_getmethods__["get_is_setup"] = lambda x: get_is_setup
447  def show(self, *args):
448  """
449  show(Uncertainty self, _ostream out=std::cout)
450  show(Uncertainty self)
451  """
452  return _IMP_pmi.Uncertainty_show(self, *args)
453 
454  def setup_particle(*args):
455  """
456  setup_particle(Model m, IMP::kernel::ParticleIndex pi, IMP::Float uncertainty) -> Uncertainty
457  setup_particle(_ParticleAdaptor decorator, IMP::Float uncertainty) -> Uncertainty
458  """
459  return _IMP_pmi.Uncertainty_setup_particle(*args)
460 
461  if _newclass:setup_particle = staticmethod(setup_particle)
462  __swig_getmethods__["setup_particle"] = lambda x: setup_particle
463  def get_uncertainty_key():
464  """get_uncertainty_key() -> FloatKey"""
465  return _IMP_pmi.Uncertainty_get_uncertainty_key()
466 
467  if _newclass:get_uncertainty_key = staticmethod(get_uncertainty_key)
468  __swig_getmethods__["get_uncertainty_key"] = lambda x: get_uncertainty_key
469  def add_attribute(self, *args):
470  """
471  add_attribute(Uncertainty self, FloatKey k, IMP::Float v, bool opt)
472  add_attribute(Uncertainty self, FloatKey a0, IMP::Float a1)
473  add_attribute(Uncertainty self, IntKey a0, IMP::Int a1)
474  add_attribute(Uncertainty self, StringKey a0, IMP::String a1)
475  add_attribute(Uncertainty self, ParticleIndexKey a0, Particle a1)
476  add_attribute(Uncertainty self, ObjectKey a0, Object a1)
477  """
478  return _IMP_pmi.Uncertainty_add_attribute(self, *args)
479 
480  def get_value(self, *args):
481  """
482  get_value(Uncertainty self, FloatKey a0) -> IMP::Float
483  get_value(Uncertainty self, IntKey a0) -> IMP::Int
484  get_value(Uncertainty self, StringKey a0) -> IMP::String
485  get_value(Uncertainty self, ParticleIndexKey a0) -> Particle
486  get_value(Uncertainty self, ObjectKey a0) -> Object
487  """
488  return _IMP_pmi.Uncertainty_get_value(self, *args)
489 
490  def set_value(self, *args):
491  """
492  set_value(Uncertainty self, FloatKey a0, IMP::Float a1)
493  set_value(Uncertainty self, IntKey a0, IMP::Int a1)
494  set_value(Uncertainty self, StringKey a0, IMP::String a1)
495  set_value(Uncertainty self, ParticleIndexKey a0, Particle a1)
496  set_value(Uncertainty self, ObjectKey a0, Object a1)
497  """
498  return _IMP_pmi.Uncertainty_set_value(self, *args)
499 
500  def remove_attribute(self, *args):
501  """
502  remove_attribute(Uncertainty self, FloatKey a0)
503  remove_attribute(Uncertainty self, IntKey a0)
504  remove_attribute(Uncertainty self, StringKey a0)
505  remove_attribute(Uncertainty self, ParticleIndexKey a0)
506  remove_attribute(Uncertainty self, ObjectKey a0)
507  """
508  return _IMP_pmi.Uncertainty_remove_attribute(self, *args)
509 
510  def has_attribute(self, *args):
511  """
512  has_attribute(Uncertainty self, FloatKey a0) -> bool
513  has_attribute(Uncertainty self, IntKey a0) -> bool
514  has_attribute(Uncertainty self, StringKey a0) -> bool
515  has_attribute(Uncertainty self, ParticleIndexKey a0) -> bool
516  has_attribute(Uncertainty self, ObjectKey a0) -> bool
517  """
518  return _IMP_pmi.Uncertainty_has_attribute(self, *args)
519 
520  def get_derivative(self, *args):
521  """get_derivative(Uncertainty self, FloatKey a0) -> double"""
522  return _IMP_pmi.Uncertainty_get_derivative(self, *args)
523 
524  def get_name(self):
525  """get_name(Uncertainty self) -> std::string"""
526  return _IMP_pmi.Uncertainty_get_name(self)
527 
528  def clear_caches(self):
529  """clear_caches(Uncertainty self)"""
530  return _IMP_pmi.Uncertainty_clear_caches(self)
531 
532  def set_name(self, *args):
533  """set_name(Uncertainty self, std::string a0)"""
534  return _IMP_pmi.Uncertainty_set_name(self, *args)
535 
536  def set_check_level(self, *args):
537  """set_check_level(Uncertainty self, IMP::base::CheckLevel a0)"""
538  return _IMP_pmi.Uncertainty_set_check_level(self, *args)
539 
540  def add_to_derivative(self, *args):
541  """add_to_derivative(Uncertainty self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
542  return _IMP_pmi.Uncertainty_add_to_derivative(self, *args)
543 
544  def set_is_optimized(self, *args):
545  """set_is_optimized(Uncertainty self, FloatKey a0, bool a1)"""
546  return _IMP_pmi.Uncertainty_set_is_optimized(self, *args)
547 
548  def get_is_optimized(self, *args):
549  """get_is_optimized(Uncertainty self, FloatKey a0) -> bool"""
550  return _IMP_pmi.Uncertainty_get_is_optimized(self, *args)
551 
552  def get_check_level(self):
553  """get_check_level(Uncertainty self) -> IMP::base::CheckLevel"""
554  return _IMP_pmi.Uncertainty_get_check_level(self)
555 
556  def __eq__(self, *args):
557  """
558  __eq__(Uncertainty self, Uncertainty o) -> bool
559  __eq__(Uncertainty self, Particle d) -> bool
560  """
561  return _IMP_pmi.Uncertainty___eq__(self, *args)
562 
563  def __ne__(self, *args):
564  """
565  __ne__(Uncertainty self, Uncertainty o) -> bool
566  __ne__(Uncertainty self, Particle d) -> bool
567  """
568  return _IMP_pmi.Uncertainty___ne__(self, *args)
569 
570  def __le__(self, *args):
571  """
572  __le__(Uncertainty self, Uncertainty o) -> bool
573  __le__(Uncertainty self, Particle d) -> bool
574  """
575  return _IMP_pmi.Uncertainty___le__(self, *args)
576 
577  def __lt__(self, *args):
578  """
579  __lt__(Uncertainty self, Uncertainty o) -> bool
580  __lt__(Uncertainty self, Particle d) -> bool
581  """
582  return _IMP_pmi.Uncertainty___lt__(self, *args)
583 
584  def __ge__(self, *args):
585  """
586  __ge__(Uncertainty self, Uncertainty o) -> bool
587  __ge__(Uncertainty self, Particle d) -> bool
588  """
589  return _IMP_pmi.Uncertainty___ge__(self, *args)
590 
591  def __gt__(self, *args):
592  """
593  __gt__(Uncertainty self, Uncertainty o) -> bool
594  __gt__(Uncertainty self, Particle d) -> bool
595  """
596  return _IMP_pmi.Uncertainty___gt__(self, *args)
597 
598  def __str__(self):
599  """__str__(Uncertainty self) -> std::string"""
600  return _IMP_pmi.Uncertainty___str__(self)
601 
602  def __repr__(self):
603  """__repr__(Uncertainty self) -> std::string"""
604  return _IMP_pmi.Uncertainty___repr__(self)
605 
606  __swig_destroy__ = _IMP_pmi.delete_Uncertainty
607  __del__ = lambda self : None;
608 Uncertainty_swigregister = _IMP_pmi.Uncertainty_swigregister
609 Uncertainty_swigregister(Uncertainty)
610 
611 def Uncertainty_get_is_setup(*args):
612  """
613  get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
614  Uncertainty_get_is_setup(_ParticleAdaptor p) -> bool
615  """
616  return _IMP_pmi.Uncertainty_get_is_setup(*args)
617 
618 def Uncertainty_setup_particle(*args):
619  """
620  setup_particle(Model m, IMP::kernel::ParticleIndex pi, IMP::Float uncertainty) -> Uncertainty
621  Uncertainty_setup_particle(_ParticleAdaptor decorator, IMP::Float uncertainty) -> Uncertainty
622  """
623  return _IMP_pmi.Uncertainty_setup_particle(*args)
624 
625 def Uncertainty_get_uncertainty_key():
626  """Uncertainty_get_uncertainty_key() -> FloatKey"""
627  return _IMP_pmi.Uncertainty_get_uncertainty_key()
628 
629 class Resolution(IMP.kernel.Decorator):
630  """Proxy of C++ IMP::pmi::Resolution class"""
631  __swig_setmethods__ = {}
632  for _s in [IMP.kernel.Decorator]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
633  __setattr__ = lambda self, name, value: _swig_setattr(self, Resolution, name, value)
634  __swig_getmethods__ = {}
635  for _s in [IMP.kernel.Decorator]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
636  __getattr__ = lambda self, name: _swig_getattr(self, Resolution, name)
637  def get_resolution(self):
638  """get_resolution(Resolution self) -> IMP::Float"""
639  return _IMP_pmi.Resolution_get_resolution(self)
640 
641  def set_resolution(self, *args):
642  """set_resolution(Resolution self, IMP::Float d)"""
643  return _IMP_pmi.Resolution_set_resolution(self, *args)
644 
645  def __init__(self, *args):
646  """
647  __init__(IMP::pmi::Resolution self) -> Resolution
648  __init__(IMP::pmi::Resolution self, Model m, ::IMP::kernel::ParticleIndex id) -> Resolution
649  __init__(IMP::pmi::Resolution self, _ParticleAdaptor d) -> Resolution
650  """
651  this = _IMP_pmi.new_Resolution(*args)
652  try: self.this.append(this)
653  except: self.this = this
654  def get_is_setup(*args):
655  """
656  get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
657  get_is_setup(_ParticleAdaptor p) -> bool
658  """
659  return _IMP_pmi.Resolution_get_is_setup(*args)
660 
661  if _newclass:get_is_setup = staticmethod(get_is_setup)
662  __swig_getmethods__["get_is_setup"] = lambda x: get_is_setup
663  def show(self, *args):
664  """
665  show(Resolution self, _ostream out=std::cout)
666  show(Resolution self)
667  """
668  return _IMP_pmi.Resolution_show(self, *args)
669 
670  def setup_particle(*args):
671  """
672  setup_particle(Model m, IMP::kernel::ParticleIndex pi, IMP::Float resolution) -> Resolution
673  setup_particle(_ParticleAdaptor decorator, IMP::Float resolution) -> Resolution
674  """
675  return _IMP_pmi.Resolution_setup_particle(*args)
676 
677  if _newclass:setup_particle = staticmethod(setup_particle)
678  __swig_getmethods__["setup_particle"] = lambda x: setup_particle
679  def get_resolution_key():
680  """get_resolution_key() -> FloatKey"""
681  return _IMP_pmi.Resolution_get_resolution_key()
682 
683  if _newclass:get_resolution_key = staticmethod(get_resolution_key)
684  __swig_getmethods__["get_resolution_key"] = lambda x: get_resolution_key
685  def add_attribute(self, *args):
686  """
687  add_attribute(Resolution self, FloatKey k, IMP::Float v, bool opt)
688  add_attribute(Resolution self, FloatKey a0, IMP::Float a1)
689  add_attribute(Resolution self, IntKey a0, IMP::Int a1)
690  add_attribute(Resolution self, StringKey a0, IMP::String a1)
691  add_attribute(Resolution self, ParticleIndexKey a0, Particle a1)
692  add_attribute(Resolution self, ObjectKey a0, Object a1)
693  """
694  return _IMP_pmi.Resolution_add_attribute(self, *args)
695 
696  def get_value(self, *args):
697  """
698  get_value(Resolution self, FloatKey a0) -> IMP::Float
699  get_value(Resolution self, IntKey a0) -> IMP::Int
700  get_value(Resolution self, StringKey a0) -> IMP::String
701  get_value(Resolution self, ParticleIndexKey a0) -> Particle
702  get_value(Resolution self, ObjectKey a0) -> Object
703  """
704  return _IMP_pmi.Resolution_get_value(self, *args)
705 
706  def set_value(self, *args):
707  """
708  set_value(Resolution self, FloatKey a0, IMP::Float a1)
709  set_value(Resolution self, IntKey a0, IMP::Int a1)
710  set_value(Resolution self, StringKey a0, IMP::String a1)
711  set_value(Resolution self, ParticleIndexKey a0, Particle a1)
712  set_value(Resolution self, ObjectKey a0, Object a1)
713  """
714  return _IMP_pmi.Resolution_set_value(self, *args)
715 
716  def remove_attribute(self, *args):
717  """
718  remove_attribute(Resolution self, FloatKey a0)
719  remove_attribute(Resolution self, IntKey a0)
720  remove_attribute(Resolution self, StringKey a0)
721  remove_attribute(Resolution self, ParticleIndexKey a0)
722  remove_attribute(Resolution self, ObjectKey a0)
723  """
724  return _IMP_pmi.Resolution_remove_attribute(self, *args)
725 
726  def has_attribute(self, *args):
727  """
728  has_attribute(Resolution self, FloatKey a0) -> bool
729  has_attribute(Resolution self, IntKey a0) -> bool
730  has_attribute(Resolution self, StringKey a0) -> bool
731  has_attribute(Resolution self, ParticleIndexKey a0) -> bool
732  has_attribute(Resolution self, ObjectKey a0) -> bool
733  """
734  return _IMP_pmi.Resolution_has_attribute(self, *args)
735 
736  def get_derivative(self, *args):
737  """get_derivative(Resolution self, FloatKey a0) -> double"""
738  return _IMP_pmi.Resolution_get_derivative(self, *args)
739 
740  def get_name(self):
741  """get_name(Resolution self) -> std::string"""
742  return _IMP_pmi.Resolution_get_name(self)
743 
744  def clear_caches(self):
745  """clear_caches(Resolution self)"""
746  return _IMP_pmi.Resolution_clear_caches(self)
747 
748  def set_name(self, *args):
749  """set_name(Resolution self, std::string a0)"""
750  return _IMP_pmi.Resolution_set_name(self, *args)
751 
752  def set_check_level(self, *args):
753  """set_check_level(Resolution self, IMP::base::CheckLevel a0)"""
754  return _IMP_pmi.Resolution_set_check_level(self, *args)
755 
756  def add_to_derivative(self, *args):
757  """add_to_derivative(Resolution self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
758  return _IMP_pmi.Resolution_add_to_derivative(self, *args)
759 
760  def set_is_optimized(self, *args):
761  """set_is_optimized(Resolution self, FloatKey a0, bool a1)"""
762  return _IMP_pmi.Resolution_set_is_optimized(self, *args)
763 
764  def get_is_optimized(self, *args):
765  """get_is_optimized(Resolution self, FloatKey a0) -> bool"""
766  return _IMP_pmi.Resolution_get_is_optimized(self, *args)
767 
768  def get_check_level(self):
769  """get_check_level(Resolution self) -> IMP::base::CheckLevel"""
770  return _IMP_pmi.Resolution_get_check_level(self)
771 
772  def __eq__(self, *args):
773  """
774  __eq__(Resolution self, Resolution o) -> bool
775  __eq__(Resolution self, Particle d) -> bool
776  """
777  return _IMP_pmi.Resolution___eq__(self, *args)
778 
779  def __ne__(self, *args):
780  """
781  __ne__(Resolution self, Resolution o) -> bool
782  __ne__(Resolution self, Particle d) -> bool
783  """
784  return _IMP_pmi.Resolution___ne__(self, *args)
785 
786  def __le__(self, *args):
787  """
788  __le__(Resolution self, Resolution o) -> bool
789  __le__(Resolution self, Particle d) -> bool
790  """
791  return _IMP_pmi.Resolution___le__(self, *args)
792 
793  def __lt__(self, *args):
794  """
795  __lt__(Resolution self, Resolution o) -> bool
796  __lt__(Resolution self, Particle d) -> bool
797  """
798  return _IMP_pmi.Resolution___lt__(self, *args)
799 
800  def __ge__(self, *args):
801  """
802  __ge__(Resolution self, Resolution o) -> bool
803  __ge__(Resolution self, Particle d) -> bool
804  """
805  return _IMP_pmi.Resolution___ge__(self, *args)
806 
807  def __gt__(self, *args):
808  """
809  __gt__(Resolution self, Resolution o) -> bool
810  __gt__(Resolution self, Particle d) -> bool
811  """
812  return _IMP_pmi.Resolution___gt__(self, *args)
813 
814  def __str__(self):
815  """__str__(Resolution self) -> std::string"""
816  return _IMP_pmi.Resolution___str__(self)
817 
818  def __repr__(self):
819  """__repr__(Resolution self) -> std::string"""
820  return _IMP_pmi.Resolution___repr__(self)
821 
822  __swig_destroy__ = _IMP_pmi.delete_Resolution
823  __del__ = lambda self : None;
824 Resolution_swigregister = _IMP_pmi.Resolution_swigregister
825 Resolution_swigregister(Resolution)
826 
827 def Resolution_get_is_setup(*args):
828  """
829  get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
830  Resolution_get_is_setup(_ParticleAdaptor p) -> bool
831  """
832  return _IMP_pmi.Resolution_get_is_setup(*args)
833 
834 def Resolution_setup_particle(*args):
835  """
836  setup_particle(Model m, IMP::kernel::ParticleIndex pi, IMP::Float resolution) -> Resolution
837  Resolution_setup_particle(_ParticleAdaptor decorator, IMP::Float resolution) -> Resolution
838  """
839  return _IMP_pmi.Resolution_setup_particle(*args)
840 
841 def Resolution_get_resolution_key():
842  """Resolution_get_resolution_key() -> FloatKey"""
843  return _IMP_pmi.Resolution_get_resolution_key()
844 
845 class Symmetric(IMP.kernel.Decorator):
846  """Proxy of C++ IMP::pmi::Symmetric class"""
847  __swig_setmethods__ = {}
848  for _s in [IMP.kernel.Decorator]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
849  __setattr__ = lambda self, name, value: _swig_setattr(self, Symmetric, name, value)
850  __swig_getmethods__ = {}
851  for _s in [IMP.kernel.Decorator]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
852  __getattr__ = lambda self, name: _swig_getattr(self, Symmetric, name)
853  def get_symmetric(self):
854  """get_symmetric(Symmetric self) -> IMP::Float"""
855  return _IMP_pmi.Symmetric_get_symmetric(self)
856 
857  def set_symmetric(self, *args):
858  """set_symmetric(Symmetric self, IMP::Float d)"""
859  return _IMP_pmi.Symmetric_set_symmetric(self, *args)
860 
861  def __init__(self, *args):
862  """
863  __init__(IMP::pmi::Symmetric self) -> Symmetric
864  __init__(IMP::pmi::Symmetric self, Model m, ::IMP::kernel::ParticleIndex id) -> Symmetric
865  __init__(IMP::pmi::Symmetric self, _ParticleAdaptor d) -> Symmetric
866  """
867  this = _IMP_pmi.new_Symmetric(*args)
868  try: self.this.append(this)
869  except: self.this = this
870  def get_is_setup(*args):
871  """
872  get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
873  get_is_setup(_ParticleAdaptor p) -> bool
874  """
875  return _IMP_pmi.Symmetric_get_is_setup(*args)
876 
877  if _newclass:get_is_setup = staticmethod(get_is_setup)
878  __swig_getmethods__["get_is_setup"] = lambda x: get_is_setup
879  def show(self, *args):
880  """
881  show(Symmetric self, _ostream out=std::cout)
882  show(Symmetric self)
883  """
884  return _IMP_pmi.Symmetric_show(self, *args)
885 
886  def setup_particle(*args):
887  """
888  setup_particle(Model m, IMP::kernel::ParticleIndex pi, IMP::Float symmetric) -> Symmetric
889  setup_particle(_ParticleAdaptor decorator, IMP::Float symmetric) -> Symmetric
890  """
891  return _IMP_pmi.Symmetric_setup_particle(*args)
892 
893  if _newclass:setup_particle = staticmethod(setup_particle)
894  __swig_getmethods__["setup_particle"] = lambda x: setup_particle
895  def get_symmetric_key():
896  """get_symmetric_key() -> FloatKey"""
897  return _IMP_pmi.Symmetric_get_symmetric_key()
898 
899  if _newclass:get_symmetric_key = staticmethod(get_symmetric_key)
900  __swig_getmethods__["get_symmetric_key"] = lambda x: get_symmetric_key
901  def add_attribute(self, *args):
902  """
903  add_attribute(Symmetric self, FloatKey k, IMP::Float v, bool opt)
904  add_attribute(Symmetric self, FloatKey a0, IMP::Float a1)
905  add_attribute(Symmetric self, IntKey a0, IMP::Int a1)
906  add_attribute(Symmetric self, StringKey a0, IMP::String a1)
907  add_attribute(Symmetric self, ParticleIndexKey a0, Particle a1)
908  add_attribute(Symmetric self, ObjectKey a0, Object a1)
909  """
910  return _IMP_pmi.Symmetric_add_attribute(self, *args)
911 
912  def get_value(self, *args):
913  """
914  get_value(Symmetric self, FloatKey a0) -> IMP::Float
915  get_value(Symmetric self, IntKey a0) -> IMP::Int
916  get_value(Symmetric self, StringKey a0) -> IMP::String
917  get_value(Symmetric self, ParticleIndexKey a0) -> Particle
918  get_value(Symmetric self, ObjectKey a0) -> Object
919  """
920  return _IMP_pmi.Symmetric_get_value(self, *args)
921 
922  def set_value(self, *args):
923  """
924  set_value(Symmetric self, FloatKey a0, IMP::Float a1)
925  set_value(Symmetric self, IntKey a0, IMP::Int a1)
926  set_value(Symmetric self, StringKey a0, IMP::String a1)
927  set_value(Symmetric self, ParticleIndexKey a0, Particle a1)
928  set_value(Symmetric self, ObjectKey a0, Object a1)
929  """
930  return _IMP_pmi.Symmetric_set_value(self, *args)
931 
932  def remove_attribute(self, *args):
933  """
934  remove_attribute(Symmetric self, FloatKey a0)
935  remove_attribute(Symmetric self, IntKey a0)
936  remove_attribute(Symmetric self, StringKey a0)
937  remove_attribute(Symmetric self, ParticleIndexKey a0)
938  remove_attribute(Symmetric self, ObjectKey a0)
939  """
940  return _IMP_pmi.Symmetric_remove_attribute(self, *args)
941 
942  def has_attribute(self, *args):
943  """
944  has_attribute(Symmetric self, FloatKey a0) -> bool
945  has_attribute(Symmetric self, IntKey a0) -> bool
946  has_attribute(Symmetric self, StringKey a0) -> bool
947  has_attribute(Symmetric self, ParticleIndexKey a0) -> bool
948  has_attribute(Symmetric self, ObjectKey a0) -> bool
949  """
950  return _IMP_pmi.Symmetric_has_attribute(self, *args)
951 
952  def get_derivative(self, *args):
953  """get_derivative(Symmetric self, FloatKey a0) -> double"""
954  return _IMP_pmi.Symmetric_get_derivative(self, *args)
955 
956  def get_name(self):
957  """get_name(Symmetric self) -> std::string"""
958  return _IMP_pmi.Symmetric_get_name(self)
959 
960  def clear_caches(self):
961  """clear_caches(Symmetric self)"""
962  return _IMP_pmi.Symmetric_clear_caches(self)
963 
964  def set_name(self, *args):
965  """set_name(Symmetric self, std::string a0)"""
966  return _IMP_pmi.Symmetric_set_name(self, *args)
967 
968  def set_check_level(self, *args):
969  """set_check_level(Symmetric self, IMP::base::CheckLevel a0)"""
970  return _IMP_pmi.Symmetric_set_check_level(self, *args)
971 
972  def add_to_derivative(self, *args):
973  """add_to_derivative(Symmetric self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
974  return _IMP_pmi.Symmetric_add_to_derivative(self, *args)
975 
976  def set_is_optimized(self, *args):
977  """set_is_optimized(Symmetric self, FloatKey a0, bool a1)"""
978  return _IMP_pmi.Symmetric_set_is_optimized(self, *args)
979 
980  def get_is_optimized(self, *args):
981  """get_is_optimized(Symmetric self, FloatKey a0) -> bool"""
982  return _IMP_pmi.Symmetric_get_is_optimized(self, *args)
983 
984  def get_check_level(self):
985  """get_check_level(Symmetric self) -> IMP::base::CheckLevel"""
986  return _IMP_pmi.Symmetric_get_check_level(self)
987 
988  def __eq__(self, *args):
989  """
990  __eq__(Symmetric self, Symmetric o) -> bool
991  __eq__(Symmetric self, Particle d) -> bool
992  """
993  return _IMP_pmi.Symmetric___eq__(self, *args)
994 
995  def __ne__(self, *args):
996  """
997  __ne__(Symmetric self, Symmetric o) -> bool
998  __ne__(Symmetric self, Particle d) -> bool
999  """
1000  return _IMP_pmi.Symmetric___ne__(self, *args)
1001 
1002  def __le__(self, *args):
1003  """
1004  __le__(Symmetric self, Symmetric o) -> bool
1005  __le__(Symmetric self, Particle d) -> bool
1006  """
1007  return _IMP_pmi.Symmetric___le__(self, *args)
1008 
1009  def __lt__(self, *args):
1010  """
1011  __lt__(Symmetric self, Symmetric o) -> bool
1012  __lt__(Symmetric self, Particle d) -> bool
1013  """
1014  return _IMP_pmi.Symmetric___lt__(self, *args)
1015 
1016  def __ge__(self, *args):
1017  """
1018  __ge__(Symmetric self, Symmetric o) -> bool
1019  __ge__(Symmetric self, Particle d) -> bool
1020  """
1021  return _IMP_pmi.Symmetric___ge__(self, *args)
1022 
1023  def __gt__(self, *args):
1024  """
1025  __gt__(Symmetric self, Symmetric o) -> bool
1026  __gt__(Symmetric self, Particle d) -> bool
1027  """
1028  return _IMP_pmi.Symmetric___gt__(self, *args)
1029 
1030  def __str__(self):
1031  """__str__(Symmetric self) -> std::string"""
1032  return _IMP_pmi.Symmetric___str__(self)
1033 
1034  def __repr__(self):
1035  """__repr__(Symmetric self) -> std::string"""
1036  return _IMP_pmi.Symmetric___repr__(self)
1037 
1038  __swig_destroy__ = _IMP_pmi.delete_Symmetric
1039  __del__ = lambda self : None;
1040 Symmetric_swigregister = _IMP_pmi.Symmetric_swigregister
1041 Symmetric_swigregister(Symmetric)
1042 
1043 def Symmetric_get_is_setup(*args):
1044  """
1045  get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
1046  Symmetric_get_is_setup(_ParticleAdaptor p) -> bool
1047  """
1048  return _IMP_pmi.Symmetric_get_is_setup(*args)
1049 
1050 def Symmetric_setup_particle(*args):
1051  """
1052  setup_particle(Model m, IMP::kernel::ParticleIndex pi, IMP::Float symmetric) -> Symmetric
1053  Symmetric_setup_particle(_ParticleAdaptor decorator, IMP::Float symmetric) -> Symmetric
1054  """
1055  return _IMP_pmi.Symmetric_setup_particle(*args)
1056 
1057 def Symmetric_get_symmetric_key():
1058  """Symmetric_get_symmetric_key() -> FloatKey"""
1059  return _IMP_pmi.Symmetric_get_symmetric_key()
1060 
1061 class SigmoidRestraintSphere(IMP.kernel.Restraint):
1062  """Proxy of C++ IMP::pmi::SigmoidRestraintSphere class"""
1063  __swig_setmethods__ = {}
1064  for _s in [IMP.kernel.Restraint]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1065  __setattr__ = lambda self, name, value: _swig_setattr(self, SigmoidRestraintSphere, name, value)
1066  __swig_getmethods__ = {}
1067  for _s in [IMP.kernel.Restraint]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1068  __getattr__ = lambda self, name: _swig_getattr(self, SigmoidRestraintSphere, name)
1069  def __init__(self, *args):
1070  """
1071  __init__(IMP::pmi::SigmoidRestraintSphere self, Model m, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, double inflection, double slope,
1072  double amplitude, double line_slope_=0, std::string name="SigmoidRestraintSphere%1%") -> SigmoidRestraintSphere
1073  __init__(IMP::pmi::SigmoidRestraintSphere self, Model m, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, double inflection, double slope,
1074  double amplitude, double line_slope_=0) -> SigmoidRestraintSphere
1075  __init__(IMP::pmi::SigmoidRestraintSphere self, Model m, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, double inflection, double slope,
1076  double amplitude) -> SigmoidRestraintSphere
1077  """
1078  this = _IMP_pmi.new_SigmoidRestraintSphere(*args)
1079  try: self.this.append(this)
1080  except: self.this = this
1081  def set_amplitude(self, *args):
1082  """set_amplitude(SigmoidRestraintSphere self, double amplitude)"""
1083  return _IMP_pmi.SigmoidRestraintSphere_set_amplitude(self, *args)
1084 
1085  def increment_amplitude(self, *args):
1086  """increment_amplitude(SigmoidRestraintSphere self, double amplitude)"""
1087  return _IMP_pmi.SigmoidRestraintSphere_increment_amplitude(self, *args)
1088 
1089  def get_amplitude(self):
1090  """get_amplitude(SigmoidRestraintSphere self) -> double"""
1091  return _IMP_pmi.SigmoidRestraintSphere_get_amplitude(self)
1092 
1093  def do_get_inputs(self):
1094  """do_get_inputs(SigmoidRestraintSphere self) -> IMP::kernel::ModelObjectsTemp"""
1095  return _IMP_pmi.SigmoidRestraintSphere_do_get_inputs(self)
1096 
1097  def get_version_info(self):
1098  """get_version_info(SigmoidRestraintSphere self) -> VersionInfo"""
1099  return _IMP_pmi.SigmoidRestraintSphere_get_version_info(self)
1100 
1101  def __str__(self):
1102  """__str__(SigmoidRestraintSphere self) -> std::string"""
1103  return _IMP_pmi.SigmoidRestraintSphere___str__(self)
1104 
1105  def __repr__(self):
1106  """__repr__(SigmoidRestraintSphere self) -> std::string"""
1107  return _IMP_pmi.SigmoidRestraintSphere___repr__(self)
1108 
1109  def get_from(o):
1110  return _object_cast_to_SigmoidRestraintSphere(o)
1111  get_from = staticmethod(get_from)
1112 
1113 SigmoidRestraintSphere_swigregister = _IMP_pmi.SigmoidRestraintSphere_swigregister
1114 SigmoidRestraintSphere_swigregister(SigmoidRestraintSphere)
1115 
1116 class TransformMover(IMP.core.MonteCarloMover):
1117  """Proxy of C++ IMP::pmi::TransformMover class"""
1118  __swig_setmethods__ = {}
1119  for _s in [IMP.core.MonteCarloMover]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1120  __setattr__ = lambda self, name, value: _swig_setattr(self, TransformMover, name, value)
1121  __swig_getmethods__ = {}
1122  for _s in [IMP.core.MonteCarloMover]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1123  __getattr__ = lambda self, name: _swig_getattr(self, TransformMover, name)
1124  def __init__(self, *args):
1125  """
1126  __init__(IMP::pmi::TransformMover self, Model m, IMP::Float max_translation, IMP::Float max_rotation) -> TransformMover
1127  __init__(IMP::pmi::TransformMover self, Model m, Vector3D axis, IMP::Float max_translation, IMP::Float max_rotation) -> TransformMover
1128  """
1129  this = _IMP_pmi.new_TransformMover(*args)
1130  try: self.this.append(this)
1131  except: self.this = this
1132  def add_xyz_particle(self, *args):
1133  """add_xyz_particle(TransformMover self, _ParticleIndexAdaptor pi)"""
1134  return _IMP_pmi.TransformMover_add_xyz_particle(self, *args)
1135 
1136  def add_rigid_body_particle(self, *args):
1137  """add_rigid_body_particle(TransformMover self, _ParticleIndexAdaptor pi)"""
1138  return _IMP_pmi.TransformMover_add_rigid_body_particle(self, *args)
1139 
1140  def set_maximum_translation(self, *args):
1141  """set_maximum_translation(TransformMover self, IMP::Float mt)"""
1142  return _IMP_pmi.TransformMover_set_maximum_translation(self, *args)
1143 
1144  def set_maximum_rotation(self, *args):
1145  """set_maximum_rotation(TransformMover self, IMP::Float mr)"""
1146  return _IMP_pmi.TransformMover_set_maximum_rotation(self, *args)
1147 
1148  def get_maximum_translation(self):
1149  """get_maximum_translation(TransformMover self) -> IMP::Float"""
1150  return _IMP_pmi.TransformMover_get_maximum_translation(self)
1151 
1152  def get_maximum_rotation(self):
1153  """get_maximum_rotation(TransformMover self) -> IMP::Float"""
1154  return _IMP_pmi.TransformMover_get_maximum_rotation(self)
1155 
1156  def get_version_info(self):
1157  """get_version_info(TransformMover self) -> VersionInfo"""
1158  return _IMP_pmi.TransformMover_get_version_info(self)
1159 
1160  def __str__(self):
1161  """__str__(TransformMover self) -> std::string"""
1162  return _IMP_pmi.TransformMover___str__(self)
1163 
1164  def __repr__(self):
1165  """__repr__(TransformMover self) -> std::string"""
1166  return _IMP_pmi.TransformMover___repr__(self)
1167 
1168  def get_from(o):
1169  return _object_cast_to_TransformMover(o)
1170  get_from = staticmethod(get_from)
1171 
1172 TransformMover_swigregister = _IMP_pmi.TransformMover_swigregister
1173 TransformMover_swigregister(TransformMover)
1174 
1175 
1176 def create_elastic_network(*args):
1177  """create_elastic_network(IMP::kernel::Particles const & ps, IMP::Float dist_cutoff, IMP::Float strength) -> RestraintSet"""
1178  return _IMP_pmi.create_elastic_network(*args)
1179 
1180 def get_module_version():
1181  """get_module_version() -> std::string const"""
1182  return _IMP_pmi.get_module_version()
1183 
1184 def get_example_path(*args):
1185  """get_example_path(std::string fname) -> std::string"""
1186  return _IMP_pmi.get_example_path(*args)
1187 
1188 def get_data_path(*args):
1189  """get_data_path(std::string fname) -> std::string"""
1190  return _IMP_pmi.get_data_path(*args)
1191 import _version_check
1192 _version_check.check_version(get_module_version())
1193 
1194 # This file is compatible with both classic and new-style classes.
1195 
1196 
std::string get_data_path(std::string file_name)
Return the full path to installed data.
Various classes to hold sets of particles.
Make CGAL functionality available to IMP.
double get_resolution(kernel::Model *m, kernel::ParticleIndex pi)
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
Definition: exception.h:73
Low level functionality (logging, error handling, profiling, command line flags etc) that is used by ...
Composable functors to implement scores via compile-time composition.
RestraintSet * create_elastic_network(const Particles &ps, Float dist_cutoff, Float strength)
Create an elastic network restraint set.
Definition: utilities.h:19
A base class for classes which perturb particles.
Base functionality and abstract base classes for representation, scoring and sampling.
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
A restraint is a term in an IMP ScoringFunction.
Basic functionality that is expected to be used by a wide variety of IMP users.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
void show(Hierarchy h, std::ostream &out=std::cout)
Print out a molecular hierarchy.
Output IMP model data in various file formats.
CheckLevel get_check_level()
Get the current audit mode.
Definition: exception.h:81