11 from sys
import version_info
12 if version_info >= (2,6,0):
13 def swig_import_helper():
14 from os.path
import dirname
18 fp, pathname, description = imp.find_module(
'_IMP_kernel', [dirname(__file__)])
24 _mod = imp.load_module(
'_IMP_kernel', fp, pathname, description)
28 _IMP_kernel = swig_import_helper()
29 del swig_import_helper
34 _swig_property = property
37 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
38 if (name ==
"thisown"):
return self.this.own(value)
40 if type(value).__name__ ==
'SwigPyObject':
41 self.__dict__[name] = value
43 method = class_type.__swig_setmethods__.get(name,
None)
44 if method:
return method(self,value)
46 self.__dict__[name] = value
48 raise AttributeError(
"You cannot add attributes to %s" % self)
50 def _swig_setattr(self,class_type,name,value):
51 return _swig_setattr_nondynamic(self,class_type,name,value,0)
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)
60 try: strthis =
"proxy of " + self.this.__repr__()
62 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
67 except AttributeError:
72 def _swig_setattr_nondynamic_method(set):
73 def set_attr(self,name,value):
74 if (name ==
"thisown"):
return self.this.own(value)
75 if hasattr(self,name)
or (name ==
"this"):
78 raise AttributeError(
"You cannot add attributes to %s" % self)
84 weakref_proxy = weakref.proxy
86 weakref_proxy =
lambda x: x
89 class IMP_KERNEL_SwigPyIterator(object):
90 """Proxy of C++ swig::IMP_KERNEL_SwigPyIterator class"""
91 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
92 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined - class is abstract")
94 __swig_destroy__ = _IMP_kernel.delete_IMP_KERNEL_SwigPyIterator
95 __del__ =
lambda self :
None;
97 """value(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
98 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_value(self)
102 incr(IMP_KERNEL_SwigPyIterator self, size_t n=1) -> IMP_KERNEL_SwigPyIterator
103 incr(IMP_KERNEL_SwigPyIterator self) -> IMP_KERNEL_SwigPyIterator
105 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_incr(self, n)
109 decr(IMP_KERNEL_SwigPyIterator self, size_t n=1) -> IMP_KERNEL_SwigPyIterator
110 decr(IMP_KERNEL_SwigPyIterator self) -> IMP_KERNEL_SwigPyIterator
112 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_decr(self, n)
114 def distance(self, *args):
115 """distance(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> ptrdiff_t"""
116 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_distance(self, *args)
118 def equal(self, *args):
119 """equal(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
120 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_equal(self, *args)
123 """copy(IMP_KERNEL_SwigPyIterator self) -> IMP_KERNEL_SwigPyIterator"""
124 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_copy(self)
127 """next(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
128 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_next(self)
131 """__next__(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
132 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___next__(self)
135 """previous(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
136 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_previous(self)
138 def advance(self, *args):
139 """advance(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
140 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_advance(self, *args)
142 def __eq__(self, *args):
143 """__eq__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
144 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___eq__(self, *args)
146 def __ne__(self, *args):
147 """__ne__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
148 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___ne__(self, *args)
150 def __iadd__(self, *args):
151 """__iadd__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
152 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___iadd__(self, *args)
154 def __isub__(self, *args):
155 """__isub__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
156 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___isub__(self, *args)
158 def __add__(self, *args):
159 """__add__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
160 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___add__(self, *args)
162 def __sub__(self, *args):
164 __sub__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator
165 __sub__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> ptrdiff_t
167 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___sub__(self, *args)
169 def __iter__(self):
return self
170 IMP_KERNEL_SwigPyIterator_swigregister = _IMP_kernel.IMP_KERNEL_SwigPyIterator_swigregister
171 IMP_KERNEL_SwigPyIterator_swigregister(IMP_KERNEL_SwigPyIterator)
178 IMP_DEBUG = _IMP_kernel.IMP_DEBUG
179 IMP_RELEASE = _IMP_kernel.IMP_RELEASE
180 IMP_SILENT = _IMP_kernel.IMP_SILENT
181 IMP_PROGRESS = _IMP_kernel.IMP_PROGRESS
182 IMP_TERSE = _IMP_kernel.IMP_TERSE
183 IMP_VERBOSE = _IMP_kernel.IMP_VERBOSE
184 IMP_MEMORY = _IMP_kernel.IMP_MEMORY
185 IMP_NONE = _IMP_kernel.IMP_NONE
186 IMP_USAGE = _IMP_kernel.IMP_USAGE
187 IMP_INTERNAL = _IMP_kernel.IMP_INTERNAL
188 IMP_BASE_HAS_LOG4CXX = _IMP_kernel.IMP_BASE_HAS_LOG4CXX
189 IMP_COMPILER_HAS_AUTO = _IMP_kernel.IMP_COMPILER_HAS_AUTO
190 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_kernel.IMP_COMPILER_HAS_DEBUG_VECTOR
191 IMP_BASE_HAS_BOOST_RANDOM = _IMP_kernel.IMP_BASE_HAS_BOOST_RANDOM
192 IMP_BASE_HAS_GPERFTOOLS = _IMP_kernel.IMP_BASE_HAS_GPERFTOOLS
193 IMP_BASE_HAS_TCMALLOC_HEAPCHECKER = _IMP_kernel.IMP_BASE_HAS_TCMALLOC_HEAPCHECKER
194 IMP_BASE_HAS_TCMALLOC_HEAPPROFILER = _IMP_kernel.IMP_BASE_HAS_TCMALLOC_HEAPPROFILER
195 IMPBASE_SHOW_WARNINGS = _IMP_kernel.IMPBASE_SHOW_WARNINGS
197 class _DirectorObjects(object):
198 """@internal Simple class to keep references to director objects
199 to prevent premature deletion."""
202 def register(self, obj):
203 """Take a reference to a director object; will only work for
204 refcounted C++ classes"""
205 if hasattr(obj,
'get_ref_count'):
206 self._objects.append(obj)
208 """Only drop our reference and allow cleanup by Python if no other
209 Python references exist (we hold 3 references: one in self._objects,
210 one in x, and one in the argument list for getrefcount) *and* no
211 other C++ references exist (the Python object always holds one)"""
212 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
213 or x.get_ref_count() > 1]
217 def get_object_count(self):
218 """Get number of director objects (useful for testing only)"""
219 return len(self._objects)
220 _director_objects = _DirectorObjects()
222 class _ostream(object):
223 """Proxy of C++ std::ostream class"""
224 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
225 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
226 __repr__ = _swig_repr
227 def write(self, *args):
228 """write(_ostream self, char const * osa_buf)"""
229 return _IMP_kernel._ostream_write(self, *args)
231 _ostream_swigregister = _IMP_kernel._ostream_swigregister
232 _ostream_swigregister(_ostream)
234 IMP_COMPILER_HAS_OVERRIDE = _IMP_kernel.IMP_COMPILER_HAS_OVERRIDE
235 IMP_COMPILER_HAS_FINAL = _IMP_kernel.IMP_COMPILER_HAS_FINAL
236 IMP_HAS_NOEXCEPT = _IMP_kernel.IMP_HAS_NOEXCEPT
238 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_kernel.IMP_CGAL_HAS_BOOST_FILESYSTEM
239 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_kernel.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
240 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_kernel.IMP_CGAL_HAS_BOOST_RANDOM
241 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_kernel.IMP_CGAL_HAS_BOOST_SYSTEM
242 IMPCGAL_SHOW_WARNINGS = _IMP_kernel.IMPCGAL_SHOW_WARNINGS
244 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_kernel.IMP_ALGEBRA_HAS_IMP_CGAL
245 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_kernel.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
246 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_kernel.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
247 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_kernel.IMP_ALGEBRA_HAS_BOOST_RANDOM
248 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_kernel.IMP_ALGEBRA_HAS_BOOST_SYSTEM
249 IMP_ALGEBRA_HAS_CGAL = _IMP_kernel.IMP_ALGEBRA_HAS_CGAL
250 IMP_ALGEBRA_HAS_ANN = _IMP_kernel.IMP_ALGEBRA_HAS_ANN
251 IMPALGEBRA_SHOW_WARNINGS = _IMP_kernel.IMPALGEBRA_SHOW_WARNINGS
253 IMP_KERNEL_HAS_IMP_CGAL = _IMP_kernel.IMP_KERNEL_HAS_IMP_CGAL
254 IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS = _IMP_kernel.IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS
255 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_kernel.IMP_KERNEL_HAS_BOOST_RANDOM
256 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_kernel.IMP_KERNEL_HAS_BOOST_SYSTEM
257 IMP_KERNEL_HAS_CGAL = _IMP_kernel.IMP_KERNEL_HAS_CGAL
258 IMPKERNEL_SHOW_WARNINGS = _IMP_kernel.IMPKERNEL_SHOW_WARNINGS
260 i_m_p=
"IMP_MODULE_PATH"
261 if i_m_p
in os.environ.keys():
262 __path__.insert(0, os.environ[i_m_p])
264 def _forward_add_attribute(self, name, value, opt=None):
266 self.get_particle().add_attribute(name, value, opt)
268 self.get_particle().add_attribute(name, value)
269 def _forward_get_value(self, name):
270 self.get_particle().get_value(name)
271 def _forward_set_value(self, name, value):
272 self.get_particle().set_value(name, value)
276 _object_types.append(
"Constraint")
279 def _object_cast_to_Constraint(*args):
280 """_object_cast_to_Constraint(Object o) -> Constraint"""
281 return _IMP_kernel._object_cast_to_Constraint(*args)
282 _object_types.append(
"Undecorator")
285 def _object_cast_to_Undecorator(*args):
286 """_object_cast_to_Undecorator(Object o) -> Undecorator"""
287 return _IMP_kernel._object_cast_to_Undecorator(*args)
288 _object_types.append(
"Container")
291 def _object_cast_to_Container(*args):
292 """_object_cast_to_Container(Object o) -> Container"""
293 return _IMP_kernel._object_cast_to_Container(*args)
294 _object_types.append(
"Optimizer")
297 def _object_cast_to_Optimizer(*args):
298 """_object_cast_to_Optimizer(Object o) -> Optimizer"""
299 return _IMP_kernel._object_cast_to_Optimizer(*args)
300 _object_types.append(
"AttributeOptimizer")
303 def _object_cast_to_AttributeOptimizer(*args):
304 """_object_cast_to_AttributeOptimizer(Object o) -> AttributeOptimizer"""
305 return _IMP_kernel._object_cast_to_AttributeOptimizer(*args)
306 _object_types.append(
"OptimizerState")
309 def _object_cast_to_OptimizerState(*args):
310 """_object_cast_to_OptimizerState(Object o) -> OptimizerState"""
311 return _IMP_kernel._object_cast_to_OptimizerState(*args)
312 _object_types.append(
"PairContainer")
315 def _object_cast_to_PairContainer(*args):
316 """_object_cast_to_PairContainer(Object o) -> PairContainer"""
317 return _IMP_kernel._object_cast_to_PairContainer(*args)
318 _object_types.append(
"PairModifier")
321 def _object_cast_to_PairModifier(*args):
322 """_object_cast_to_PairModifier(Object o) -> PairModifier"""
323 return _IMP_kernel._object_cast_to_PairModifier(*args)
324 _object_types.append(
"PairScore")
327 def _object_cast_to_PairScore(*args):
328 """_object_cast_to_PairScore(Object o) -> PairScore"""
329 return _IMP_kernel._object_cast_to_PairScore(*args)
330 _object_types.append(
"QuadContainer")
333 def _object_cast_to_QuadContainer(*args):
334 """_object_cast_to_QuadContainer(Object o) -> QuadContainer"""
335 return _IMP_kernel._object_cast_to_QuadContainer(*args)
336 _object_types.append(
"QuadModifier")
339 def _object_cast_to_QuadModifier(*args):
340 """_object_cast_to_QuadModifier(Object o) -> QuadModifier"""
341 return _IMP_kernel._object_cast_to_QuadModifier(*args)
342 _object_types.append(
"QuadScore")
345 def _object_cast_to_QuadScore(*args):
346 """_object_cast_to_QuadScore(Object o) -> QuadScore"""
347 return _IMP_kernel._object_cast_to_QuadScore(*args)
348 _object_types.append(
"Refiner")
351 def _object_cast_to_Refiner(*args):
352 """_object_cast_to_Refiner(Object o) -> Refiner"""
353 return _IMP_kernel._object_cast_to_Refiner(*args)
354 _object_types.append(
"Restraint")
357 def _object_cast_to_Restraint(*args):
358 """_object_cast_to_Restraint(Object o) -> Restraint"""
359 return _IMP_kernel._object_cast_to_Restraint(*args)
360 _object_types.append(
"Sampler")
363 def _object_cast_to_Sampler(*args):
364 """_object_cast_to_Sampler(Object o) -> Sampler"""
365 return _IMP_kernel._object_cast_to_Sampler(*args)
366 _object_types.append(
"ScoreState")
369 def _object_cast_to_ScoreState(*args):
370 """_object_cast_to_ScoreState(Object o) -> ScoreState"""
371 return _IMP_kernel._object_cast_to_ScoreState(*args)
372 _object_types.append(
"SingletonContainer")
375 def _object_cast_to_SingletonContainer(*args):
376 """_object_cast_to_SingletonContainer(Object o) -> SingletonContainer"""
377 return _IMP_kernel._object_cast_to_SingletonContainer(*args)
378 _object_types.append(
"SingletonModifier")
381 def _object_cast_to_SingletonModifier(*args):
382 """_object_cast_to_SingletonModifier(Object o) -> SingletonModifier"""
383 return _IMP_kernel._object_cast_to_SingletonModifier(*args)
384 _object_types.append(
"SingletonScore")
387 def _object_cast_to_SingletonScore(*args):
388 """_object_cast_to_SingletonScore(Object o) -> SingletonScore"""
389 return _IMP_kernel._object_cast_to_SingletonScore(*args)
390 _object_types.append(
"TripletContainer")
393 def _object_cast_to_TripletContainer(*args):
394 """_object_cast_to_TripletContainer(Object o) -> TripletContainer"""
395 return _IMP_kernel._object_cast_to_TripletContainer(*args)
396 _object_types.append(
"TripletModifier")
399 def _object_cast_to_TripletModifier(*args):
400 """_object_cast_to_TripletModifier(Object o) -> TripletModifier"""
401 return _IMP_kernel._object_cast_to_TripletModifier(*args)
402 _object_types.append(
"TripletScore")
405 def _object_cast_to_TripletScore(*args):
406 """_object_cast_to_TripletScore(Object o) -> TripletScore"""
407 return _IMP_kernel._object_cast_to_TripletScore(*args)
408 _object_types.append(
"UnaryFunction")
411 def _object_cast_to_UnaryFunction(*args):
412 """_object_cast_to_UnaryFunction(Object o) -> UnaryFunction"""
413 return _IMP_kernel._object_cast_to_UnaryFunction(*args)
414 _object_types.append(
"ConfigurationSet")
417 def _object_cast_to_ConfigurationSet(*args):
418 """_object_cast_to_ConfigurationSet(Object o) -> ConfigurationSet"""
419 return _IMP_kernel._object_cast_to_ConfigurationSet(*args)
420 _object_types.append(
"Configuration")
423 def _object_cast_to_Configuration(*args):
424 """_object_cast_to_Configuration(Object o) -> Configuration"""
425 return _IMP_kernel._object_cast_to_Configuration(*args)
426 _object_types.append(
"Model")
429 def _object_cast_to_Model(*args):
430 """_object_cast_to_Model(Object o) -> Model"""
431 return _IMP_kernel._object_cast_to_Model(*args)
432 _object_types.append(
"Particle")
435 def _object_cast_to_Particle(*args):
436 """_object_cast_to_Particle(Object o) -> Particle"""
437 return _IMP_kernel._object_cast_to_Particle(*args)
438 _object_types.append(
"RestraintSet")
441 def _object_cast_to_RestraintSet(*args):
442 """_object_cast_to_RestraintSet(Object o) -> RestraintSet"""
443 return _IMP_kernel._object_cast_to_RestraintSet(*args)
444 ParticlePairsTemp=list
445 _plural_types.append(
"ParticlePairsTemp")
446 _value_types.append(
"ParticlePair")
448 ParticleTripletsTemp=list
449 _plural_types.append(
"ParticleTripletsTemp")
450 _value_types.append(
"ParticleTriplet")
452 ParticleQuadsTemp=list
453 _plural_types.append(
"ParticleQuadsTemp")
454 _value_types.append(
"ParticleQuad")
456 ParticleIndexPairs=list
457 _plural_types.append(
"ParticleIndexPairs")
458 _value_types.append(
"ParticleIndexPair")
460 ParticleIndexTriplets=list
461 _plural_types.append(
"ParticleIndexTriplets")
462 _value_types.append(
"ParticleIndexTriplet")
464 ParticleIndexQuads=list
465 _plural_types.append(
"ParticleIndexQuads")
466 _value_types.append(
"ParticleIndexQuad")
468 _object_types.append(
"SingletonPredicate")
471 def _object_cast_to_SingletonPredicate(*args):
472 """_object_cast_to_SingletonPredicate(Object o) -> SingletonPredicate"""
473 return _IMP_kernel._object_cast_to_SingletonPredicate(*args)
474 _object_types.append(
"PairPredicate")
477 def _object_cast_to_PairPredicate(*args):
478 """_object_cast_to_PairPredicate(Object o) -> PairPredicate"""
479 return _IMP_kernel._object_cast_to_PairPredicate(*args)
480 _object_types.append(
"TripletPredicate")
483 def _object_cast_to_TripletPredicate(*args):
484 """_object_cast_to_TripletPredicate(Object o) -> TripletPredicate"""
485 return _IMP_kernel._object_cast_to_TripletPredicate(*args)
486 _object_types.append(
"QuadPredicate")
489 def _object_cast_to_QuadPredicate(*args):
490 """_object_cast_to_QuadPredicate(Object o) -> QuadPredicate"""
491 return _IMP_kernel._object_cast_to_QuadPredicate(*args)
492 _object_types.append(
"SaveToConfigurationSetOptimizerState")
495 def _object_cast_to_SaveToConfigurationSetOptimizerState(*args):
496 """_object_cast_to_SaveToConfigurationSetOptimizerState(Object o) -> SaveToConfigurationSetOptimizerState"""
497 return _IMP_kernel._object_cast_to_SaveToConfigurationSetOptimizerState(*args)
498 EvaluationStates=list
499 _plural_types.append(
"EvaluationStates")
500 _value_types.append(
"EvaluationState")
502 ScoreAccumulators=list
503 _plural_types.append(
"ScoreAccumulators")
504 _value_types.append(
"ScoreAccumulator")
507 _plural_types.append(
"ParticleIndexes")
508 _value_types.append(
"ParticleIndex")
511 _plural_types.append(
"FloatIndexes")
512 _value_types.append(
"FloatIndex")
515 _plural_types.append(
"FloatKeys")
516 _value_types.append(
"FloatKey")
519 _plural_types.append(
"IntKeys")
520 _value_types.append(
"IntKey")
523 _plural_types.append(
"StringKeys")
524 _value_types.append(
"StringKey")
526 ParticleIndexKeys=list
527 _plural_types.append(
"ParticleIndexKeys")
528 _value_types.append(
"ParticleIndexKey")
530 ParticleIndexesKeys=list
531 _plural_types.append(
"ParticleIndexesKeys")
532 _value_types.append(
"ParticleIndexesKey")
535 _plural_types.append(
"ObjectKeys")
536 _value_types.append(
"ObjectKey")
538 _raii_types.append(
"ScopedSetFloatAttribute")
540 _object_types.append(
"ScoringFunction")
543 def _object_cast_to_ScoringFunction(*args):
544 """_object_cast_to_ScoringFunction(Object o) -> ScoringFunction"""
545 return _IMP_kernel._object_cast_to_ScoringFunction(*args)
546 _object_types.append(
"ModelObject")
549 def _object_cast_to_ModelObject(*args):
550 """_object_cast_to_ModelObject(Object o) -> ModelObject"""
551 return _IMP_kernel._object_cast_to_ModelObject(*args)
552 def _TrivialDecorators(l=[]):
553 return [_TrivialDecorator(x)
for x
in l]
554 _plural_types.append(
"_TrivialDecorators")
556 _value_types.append(
"_TrivialDecorator")
558 def _TrivialDerivedDecorators(l=[]):
559 return [_TrivialDerivedDecorator(x)
for x
in l]
560 _plural_types.append(
"_TrivialDerivedDecorators")
562 _value_types.append(
"_TrivialDerivedDecorator")
564 def _TrivialTraitsDecorators(l=[]):
565 return [_TrivialTraitsDecorator(x)
for x
in l]
566 _plural_types.append(
"_TrivialTraitsDecorators")
568 _value_types.append(
"_TrivialTraitsDecorator")
570 _object_types.append(
"_ConstRestraint")
573 def _object_cast_to__ConstRestraint(*args):
574 """_object_cast_to__ConstRestraint(Object o) -> _ConstRestraint"""
575 return _IMP_kernel._object_cast_to__ConstRestraint(*args)
576 _object_types.append(
"_ConstOptimizer")
579 def _object_cast_to__ConstOptimizer(*args):
580 """_object_cast_to__ConstOptimizer(Object o) -> _ConstOptimizer"""
581 return _IMP_kernel._object_cast_to__ConstOptimizer(*args)
583 """Proxy of C++ IMP::base::internal::BoostDigraph<(IMP::kernel::DependencyGraph,p.IMP::kernel::ModelObject,IMP::kernel::ShowDependencyGraphVertex)> class"""
584 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
585 __repr__ = _swig_repr
587 """__init__(IMP::base::internal::BoostDigraph<(IMP::kernel::DependencyGraph,p.IMP::kernel::ModelObject,IMP::kernel::ShowDependencyGraphVertex)> self) -> DependencyGraph"""
588 this = _IMP_kernel.new_DependencyGraph()
589 try: self.this.append(this)
590 except: self.this = this
592 """get_graph(DependencyGraph self) -> IMP::kernel::DependencyGraph const &"""
593 return _IMP_kernel.DependencyGraph_get_graph(self)
596 """get_vertices(DependencyGraph self) -> IMP::base::internal::BoostDigraph< IMP::kernel::DependencyGraph,IMP::kernel::ModelObject *,IMP::kernel::ShowDependencyGraphVertex >::VertexDescriptors"""
597 return _IMP_kernel.DependencyGraph_get_vertices(self)
599 def get_vertex_name(self, *args):
600 """get_vertex_name(DependencyGraph self, IMP::base::internal::BoostDigraph< IMP::kernel::DependencyGraph,IMP::kernel::ModelObject *,IMP::kernel::ShowDependencyGraphVertex >::VertexDescriptor i) -> ModelObject"""
601 return _IMP_kernel.DependencyGraph_get_vertex_name(self, *args)
603 def get_in_neighbors(self, *args):
604 """get_in_neighbors(DependencyGraph self, IMP::base::internal::BoostDigraph< IMP::kernel::DependencyGraph,IMP::kernel::ModelObject *,IMP::kernel::ShowDependencyGraphVertex >::VertexDescriptor v) -> IMP::base::internal::BoostDigraph< IMP::kernel::DependencyGraph,IMP::kernel::ModelObject *,IMP::kernel::ShowDependencyGraphVertex >::VertexDescriptors"""
605 return _IMP_kernel.DependencyGraph_get_in_neighbors(self, *args)
607 def get_out_neighbors(self, *args):
608 """get_out_neighbors(DependencyGraph self, IMP::base::internal::BoostDigraph< IMP::kernel::DependencyGraph,IMP::kernel::ModelObject *,IMP::kernel::ShowDependencyGraphVertex >::VertexDescriptor v) -> IMP::base::internal::BoostDigraph< IMP::kernel::DependencyGraph,IMP::kernel::ModelObject *,IMP::kernel::ShowDependencyGraphVertex >::VertexDescriptors"""
609 return _IMP_kernel.DependencyGraph_get_out_neighbors(self, *args)
613 show_graphviz(DependencyGraph self, _ostream out=std::cout)
614 show_graphviz(DependencyGraph self)
616 return _IMP_kernel.DependencyGraph_show_graphviz(self, *args)
618 def get_graphviz_string(self):
619 """get_graphviz_string(DependencyGraph self) -> std::string"""
620 return _IMP_kernel.DependencyGraph_get_graphviz_string(self)
622 def add_edge(self, *args):
624 add_edge(DependencyGraph self, IMP::base::internal::BoostDigraph< IMP::kernel::DependencyGraph,IMP::kernel::ModelObject *,IMP::kernel::ShowDependencyGraphVertex >::VertexDescriptor v0,
625 IMP::base::internal::BoostDigraph< IMP::kernel::DependencyGraph,IMP::kernel::ModelObject *,IMP::kernel::ShowDependencyGraphVertex >::VertexDescriptor v1)
627 return _IMP_kernel.DependencyGraph_add_edge(self, *args)
629 def add_vertex(self, *args):
630 """add_vertex(DependencyGraph self, ModelObject l) -> IMP::base::internal::BoostDigraph< IMP::kernel::DependencyGraph,IMP::kernel::ModelObject *,IMP::kernel::ShowDependencyGraphVertex >::VertexDescriptor"""
631 return _IMP_kernel.DependencyGraph_add_vertex(self, *args)
633 def remove_vertex(self, *args):
634 """remove_vertex(DependencyGraph self, IMP::base::internal::BoostDigraph< IMP::kernel::DependencyGraph,IMP::kernel::ModelObject *,IMP::kernel::ShowDependencyGraphVertex >::VertexDescriptor l)"""
635 return _IMP_kernel.DependencyGraph_remove_vertex(self, *args)
637 __swig_destroy__ = _IMP_kernel.delete_DependencyGraph
638 __del__ =
lambda self :
None;
639 DependencyGraph_swigregister = _IMP_kernel.DependencyGraph_swigregister
640 DependencyGraph_swigregister(DependencyGraph)
642 _value_types.append(
"DependencyGraph")
645 """Proxy of C++ IMP::kernel::Key<(0,true)> class"""
646 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
647 def __init__(self, *args):
649 __init__(IMP::kernel::Key<(0,true)> self) -> FloatKey
650 __init__(IMP::kernel::Key<(0,true)> self, std::string c) -> FloatKey
651 __init__(IMP::kernel::Key<(0,true)> self, unsigned int i) -> FloatKey
653 this = _IMP_kernel.new_FloatKey(*args)
654 try: self.this.append(this)
655 except: self.this = this
657 """add_key(std::string sc) -> unsigned int"""
658 return _IMP_kernel.FloatKey_add_key(*args)
660 add_key = staticmethod(add_key)
661 def get_key_exists(*args):
662 """get_key_exists(std::string sc) -> bool"""
663 return _IMP_kernel.FloatKey_get_key_exists(*args)
665 get_key_exists = staticmethod(get_key_exists)
666 def get_string(self):
667 """get_string(FloatKey self) -> std::string const"""
668 return _IMP_kernel.FloatKey_get_string(self)
670 def __cmp__(self, *args):
671 """__cmp__(FloatKey self, FloatKey o) -> int"""
672 return _IMP_kernel.FloatKey___cmp__(self, *args)
674 def __eq__(self, *args):
675 """__eq__(FloatKey self, FloatKey o) -> bool"""
676 return _IMP_kernel.FloatKey___eq__(self, *args)
678 def __ne__(self, *args):
679 """__ne__(FloatKey self, FloatKey o) -> bool"""
680 return _IMP_kernel.FloatKey___ne__(self, *args)
682 def __lt__(self, *args):
683 """__lt__(FloatKey self, FloatKey o) -> bool"""
684 return _IMP_kernel.FloatKey___lt__(self, *args)
686 def __gt__(self, *args):
687 """__gt__(FloatKey self, FloatKey o) -> bool"""
688 return _IMP_kernel.FloatKey___gt__(self, *args)
690 def __ge__(self, *args):
691 """__ge__(FloatKey self, FloatKey o) -> bool"""
692 return _IMP_kernel.FloatKey___ge__(self, *args)
694 def __le__(self, *args):
695 """__le__(FloatKey self, FloatKey o) -> bool"""
696 return _IMP_kernel.FloatKey___le__(self, *args)
699 """__hash__(FloatKey self) -> std::size_t"""
700 return _IMP_kernel.FloatKey___hash__(self)
702 def show(self, *args):
704 show(FloatKey self, _ostream out=std::cout)
707 return _IMP_kernel.FloatKey_show(self, *args)
709 def add_alias(*args):
710 """add_alias(FloatKey old_key, std::string new_name) -> FloatKey"""
711 return _IMP_kernel.FloatKey_add_alias(*args)
713 add_alias = staticmethod(add_alias)
715 """get_index(FloatKey self) -> unsigned int"""
716 return _IMP_kernel.FloatKey_get_index(self)
719 """show_all(_ostream out)"""
720 return _IMP_kernel.FloatKey_show_all(*args)
722 show_all = staticmethod(show_all)
723 def get_all_strings():
724 """get_all_strings() -> IMP::base::Vector< std::string >"""
725 return _IMP_kernel.FloatKey_get_all_strings()
727 get_all_strings = staticmethod(get_all_strings)
728 def get_number_unique():
729 """get_number_unique() -> unsigned int"""
730 return _IMP_kernel.FloatKey_get_number_unique()
732 get_number_unique = staticmethod(get_number_unique)
734 """__str__(FloatKey self) -> std::string"""
735 return _IMP_kernel.FloatKey___str__(self)
738 """__repr__(FloatKey self) -> std::string"""
739 return _IMP_kernel.FloatKey___repr__(self)
741 __swig_destroy__ = _IMP_kernel.delete_FloatKey
742 __del__ =
lambda self :
None;
743 FloatKey_swigregister = _IMP_kernel.FloatKey_swigregister
744 FloatKey_swigregister(FloatKey)
746 def FloatKey_add_key(*args):
747 """FloatKey_add_key(std::string sc) -> unsigned int"""
748 return _IMP_kernel.FloatKey_add_key(*args)
750 def FloatKey_get_key_exists(*args):
751 """FloatKey_get_key_exists(std::string sc) -> bool"""
752 return _IMP_kernel.FloatKey_get_key_exists(*args)
754 def FloatKey_add_alias(*args):
755 """FloatKey_add_alias(FloatKey old_key, std::string new_name) -> FloatKey"""
756 return _IMP_kernel.FloatKey_add_alias(*args)
758 def FloatKey_show_all(*args):
759 """FloatKey_show_all(_ostream out)"""
760 return _IMP_kernel.FloatKey_show_all(*args)
762 def FloatKey_get_all_strings():
763 """FloatKey_get_all_strings() -> IMP::base::Vector< std::string >"""
764 return _IMP_kernel.FloatKey_get_all_strings()
766 def FloatKey_get_number_unique():
767 """FloatKey_get_number_unique() -> unsigned int"""
768 return _IMP_kernel.FloatKey_get_number_unique()
770 class IntKey(IMP.base._Value):
771 """Proxy of C++ IMP::kernel::Key<(1,true)> class"""
772 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
773 def __init__(self, *args):
775 __init__(IMP::kernel::Key<(1,true)> self) -> IntKey
776 __init__(IMP::kernel::Key<(1,true)> self, std::string c) -> IntKey
777 __init__(IMP::kernel::Key<(1,true)> self, unsigned int i) -> IntKey
779 this = _IMP_kernel.new_IntKey(*args)
780 try: self.this.append(this)
781 except: self.this = this
783 """add_key(std::string sc) -> unsigned int"""
784 return _IMP_kernel.IntKey_add_key(*args)
786 add_key = staticmethod(add_key)
787 def get_key_exists(*args):
788 """get_key_exists(std::string sc) -> bool"""
789 return _IMP_kernel.IntKey_get_key_exists(*args)
791 get_key_exists = staticmethod(get_key_exists)
792 def get_string(self):
793 """get_string(IntKey self) -> std::string const"""
794 return _IMP_kernel.IntKey_get_string(self)
796 def __cmp__(self, *args):
797 """__cmp__(IntKey self, IntKey o) -> int"""
798 return _IMP_kernel.IntKey___cmp__(self, *args)
800 def __eq__(self, *args):
801 """__eq__(IntKey self, IntKey o) -> bool"""
802 return _IMP_kernel.IntKey___eq__(self, *args)
804 def __ne__(self, *args):
805 """__ne__(IntKey self, IntKey o) -> bool"""
806 return _IMP_kernel.IntKey___ne__(self, *args)
808 def __lt__(self, *args):
809 """__lt__(IntKey self, IntKey o) -> bool"""
810 return _IMP_kernel.IntKey___lt__(self, *args)
812 def __gt__(self, *args):
813 """__gt__(IntKey self, IntKey o) -> bool"""
814 return _IMP_kernel.IntKey___gt__(self, *args)
816 def __ge__(self, *args):
817 """__ge__(IntKey self, IntKey o) -> bool"""
818 return _IMP_kernel.IntKey___ge__(self, *args)
820 def __le__(self, *args):
821 """__le__(IntKey self, IntKey o) -> bool"""
822 return _IMP_kernel.IntKey___le__(self, *args)
825 """__hash__(IntKey self) -> std::size_t"""
826 return _IMP_kernel.IntKey___hash__(self)
828 def show(self, *args):
830 show(IntKey self, _ostream out=std::cout)
833 return _IMP_kernel.IntKey_show(self, *args)
835 def add_alias(*args):
836 """add_alias(IntKey old_key, std::string new_name) -> IntKey"""
837 return _IMP_kernel.IntKey_add_alias(*args)
839 add_alias = staticmethod(add_alias)
841 """get_index(IntKey self) -> unsigned int"""
842 return _IMP_kernel.IntKey_get_index(self)
845 """show_all(_ostream out)"""
846 return _IMP_kernel.IntKey_show_all(*args)
848 show_all = staticmethod(show_all)
849 def get_all_strings():
850 """get_all_strings() -> IMP::base::Vector< std::string >"""
851 return _IMP_kernel.IntKey_get_all_strings()
853 get_all_strings = staticmethod(get_all_strings)
854 def get_number_unique():
855 """get_number_unique() -> unsigned int"""
856 return _IMP_kernel.IntKey_get_number_unique()
858 get_number_unique = staticmethod(get_number_unique)
860 """__str__(IntKey self) -> std::string"""
861 return _IMP_kernel.IntKey___str__(self)
864 """__repr__(IntKey self) -> std::string"""
865 return _IMP_kernel.IntKey___repr__(self)
867 __swig_destroy__ = _IMP_kernel.delete_IntKey
868 __del__ =
lambda self :
None;
869 IntKey_swigregister = _IMP_kernel.IntKey_swigregister
870 IntKey_swigregister(IntKey)
872 def IntKey_add_key(*args):
873 """IntKey_add_key(std::string sc) -> unsigned int"""
874 return _IMP_kernel.IntKey_add_key(*args)
876 def IntKey_get_key_exists(*args):
877 """IntKey_get_key_exists(std::string sc) -> bool"""
878 return _IMP_kernel.IntKey_get_key_exists(*args)
880 def IntKey_add_alias(*args):
881 """IntKey_add_alias(IntKey old_key, std::string new_name) -> IntKey"""
882 return _IMP_kernel.IntKey_add_alias(*args)
884 def IntKey_show_all(*args):
885 """IntKey_show_all(_ostream out)"""
886 return _IMP_kernel.IntKey_show_all(*args)
888 def IntKey_get_all_strings():
889 """IntKey_get_all_strings() -> IMP::base::Vector< std::string >"""
890 return _IMP_kernel.IntKey_get_all_strings()
892 def IntKey_get_number_unique():
893 """IntKey_get_number_unique() -> unsigned int"""
894 return _IMP_kernel.IntKey_get_number_unique()
897 """Proxy of C++ IMP::kernel::Key<(2,true)> class"""
898 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
899 def __init__(self, *args):
901 __init__(IMP::kernel::Key<(2,true)> self) -> StringKey
902 __init__(IMP::kernel::Key<(2,true)> self, std::string c) -> StringKey
903 __init__(IMP::kernel::Key<(2,true)> self, unsigned int i) -> StringKey
905 this = _IMP_kernel.new_StringKey(*args)
906 try: self.this.append(this)
907 except: self.this = this
909 """add_key(std::string sc) -> unsigned int"""
910 return _IMP_kernel.StringKey_add_key(*args)
912 add_key = staticmethod(add_key)
913 def get_key_exists(*args):
914 """get_key_exists(std::string sc) -> bool"""
915 return _IMP_kernel.StringKey_get_key_exists(*args)
917 get_key_exists = staticmethod(get_key_exists)
918 def get_string(self):
919 """get_string(StringKey self) -> std::string const"""
920 return _IMP_kernel.StringKey_get_string(self)
922 def __cmp__(self, *args):
923 """__cmp__(StringKey self, StringKey o) -> int"""
924 return _IMP_kernel.StringKey___cmp__(self, *args)
926 def __eq__(self, *args):
927 """__eq__(StringKey self, StringKey o) -> bool"""
928 return _IMP_kernel.StringKey___eq__(self, *args)
930 def __ne__(self, *args):
931 """__ne__(StringKey self, StringKey o) -> bool"""
932 return _IMP_kernel.StringKey___ne__(self, *args)
934 def __lt__(self, *args):
935 """__lt__(StringKey self, StringKey o) -> bool"""
936 return _IMP_kernel.StringKey___lt__(self, *args)
938 def __gt__(self, *args):
939 """__gt__(StringKey self, StringKey o) -> bool"""
940 return _IMP_kernel.StringKey___gt__(self, *args)
942 def __ge__(self, *args):
943 """__ge__(StringKey self, StringKey o) -> bool"""
944 return _IMP_kernel.StringKey___ge__(self, *args)
946 def __le__(self, *args):
947 """__le__(StringKey self, StringKey o) -> bool"""
948 return _IMP_kernel.StringKey___le__(self, *args)
951 """__hash__(StringKey self) -> std::size_t"""
952 return _IMP_kernel.StringKey___hash__(self)
954 def show(self, *args):
956 show(StringKey self, _ostream out=std::cout)
959 return _IMP_kernel.StringKey_show(self, *args)
961 def add_alias(*args):
962 """add_alias(StringKey old_key, std::string new_name) -> StringKey"""
963 return _IMP_kernel.StringKey_add_alias(*args)
965 add_alias = staticmethod(add_alias)
967 """get_index(StringKey self) -> unsigned int"""
968 return _IMP_kernel.StringKey_get_index(self)
971 """show_all(_ostream out)"""
972 return _IMP_kernel.StringKey_show_all(*args)
974 show_all = staticmethod(show_all)
975 def get_all_strings():
976 """get_all_strings() -> IMP::base::Vector< std::string >"""
977 return _IMP_kernel.StringKey_get_all_strings()
979 get_all_strings = staticmethod(get_all_strings)
980 def get_number_unique():
981 """get_number_unique() -> unsigned int"""
982 return _IMP_kernel.StringKey_get_number_unique()
984 get_number_unique = staticmethod(get_number_unique)
986 """__str__(StringKey self) -> std::string"""
987 return _IMP_kernel.StringKey___str__(self)
990 """__repr__(StringKey self) -> std::string"""
991 return _IMP_kernel.StringKey___repr__(self)
993 __swig_destroy__ = _IMP_kernel.delete_StringKey
994 __del__ =
lambda self :
None;
995 StringKey_swigregister = _IMP_kernel.StringKey_swigregister
996 StringKey_swigregister(StringKey)
998 def StringKey_add_key(*args):
999 """StringKey_add_key(std::string sc) -> unsigned int"""
1000 return _IMP_kernel.StringKey_add_key(*args)
1002 def StringKey_get_key_exists(*args):
1003 """StringKey_get_key_exists(std::string sc) -> bool"""
1004 return _IMP_kernel.StringKey_get_key_exists(*args)
1006 def StringKey_add_alias(*args):
1007 """StringKey_add_alias(StringKey old_key, std::string new_name) -> StringKey"""
1008 return _IMP_kernel.StringKey_add_alias(*args)
1010 def StringKey_show_all(*args):
1011 """StringKey_show_all(_ostream out)"""
1012 return _IMP_kernel.StringKey_show_all(*args)
1014 def StringKey_get_all_strings():
1015 """StringKey_get_all_strings() -> IMP::base::Vector< std::string >"""
1016 return _IMP_kernel.StringKey_get_all_strings()
1018 def StringKey_get_number_unique():
1019 """StringKey_get_number_unique() -> unsigned int"""
1020 return _IMP_kernel.StringKey_get_number_unique()
1023 """Proxy of C++ IMP::kernel::Key<(3,true)> class"""
1024 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1025 def __init__(self, *args):
1027 __init__(IMP::kernel::Key<(3,true)> self) -> ParticleIndexKey
1028 __init__(IMP::kernel::Key<(3,true)> self, std::string c) -> ParticleIndexKey
1029 __init__(IMP::kernel::Key<(3,true)> self, unsigned int i) -> ParticleIndexKey
1031 this = _IMP_kernel.new_ParticleIndexKey(*args)
1032 try: self.this.append(this)
1033 except: self.this = this
1035 """add_key(std::string sc) -> unsigned int"""
1036 return _IMP_kernel.ParticleIndexKey_add_key(*args)
1038 add_key = staticmethod(add_key)
1039 def get_key_exists(*args):
1040 """get_key_exists(std::string sc) -> bool"""
1041 return _IMP_kernel.ParticleIndexKey_get_key_exists(*args)
1043 get_key_exists = staticmethod(get_key_exists)
1044 def get_string(self):
1045 """get_string(ParticleIndexKey self) -> std::string const"""
1046 return _IMP_kernel.ParticleIndexKey_get_string(self)
1048 def __cmp__(self, *args):
1049 """__cmp__(ParticleIndexKey self, ParticleIndexKey o) -> int"""
1050 return _IMP_kernel.ParticleIndexKey___cmp__(self, *args)
1052 def __eq__(self, *args):
1053 """__eq__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
1054 return _IMP_kernel.ParticleIndexKey___eq__(self, *args)
1056 def __ne__(self, *args):
1057 """__ne__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
1058 return _IMP_kernel.ParticleIndexKey___ne__(self, *args)
1060 def __lt__(self, *args):
1061 """__lt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
1062 return _IMP_kernel.ParticleIndexKey___lt__(self, *args)
1064 def __gt__(self, *args):
1065 """__gt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
1066 return _IMP_kernel.ParticleIndexKey___gt__(self, *args)
1068 def __ge__(self, *args):
1069 """__ge__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
1070 return _IMP_kernel.ParticleIndexKey___ge__(self, *args)
1072 def __le__(self, *args):
1073 """__le__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
1074 return _IMP_kernel.ParticleIndexKey___le__(self, *args)
1077 """__hash__(ParticleIndexKey self) -> std::size_t"""
1078 return _IMP_kernel.ParticleIndexKey___hash__(self)
1080 def show(self, *args):
1082 show(ParticleIndexKey self, _ostream out=std::cout)
1083 show(ParticleIndexKey self)
1085 return _IMP_kernel.ParticleIndexKey_show(self, *args)
1087 def add_alias(*args):
1088 """add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
1089 return _IMP_kernel.ParticleIndexKey_add_alias(*args)
1091 add_alias = staticmethod(add_alias)
1093 """get_index(ParticleIndexKey self) -> unsigned int"""
1094 return _IMP_kernel.ParticleIndexKey_get_index(self)
1096 def show_all(*args):
1097 """show_all(_ostream out)"""
1098 return _IMP_kernel.ParticleIndexKey_show_all(*args)
1100 show_all = staticmethod(show_all)
1101 def get_all_strings():
1102 """get_all_strings() -> IMP::base::Vector< std::string >"""
1103 return _IMP_kernel.ParticleIndexKey_get_all_strings()
1105 get_all_strings = staticmethod(get_all_strings)
1106 def get_number_unique():
1107 """get_number_unique() -> unsigned int"""
1108 return _IMP_kernel.ParticleIndexKey_get_number_unique()
1110 get_number_unique = staticmethod(get_number_unique)
1112 """__str__(ParticleIndexKey self) -> std::string"""
1113 return _IMP_kernel.ParticleIndexKey___str__(self)
1116 """__repr__(ParticleIndexKey self) -> std::string"""
1117 return _IMP_kernel.ParticleIndexKey___repr__(self)
1119 __swig_destroy__ = _IMP_kernel.delete_ParticleIndexKey
1120 __del__ =
lambda self :
None;
1121 ParticleIndexKey_swigregister = _IMP_kernel.ParticleIndexKey_swigregister
1122 ParticleIndexKey_swigregister(ParticleIndexKey)
1124 def ParticleIndexKey_add_key(*args):
1125 """ParticleIndexKey_add_key(std::string sc) -> unsigned int"""
1126 return _IMP_kernel.ParticleIndexKey_add_key(*args)
1128 def ParticleIndexKey_get_key_exists(*args):
1129 """ParticleIndexKey_get_key_exists(std::string sc) -> bool"""
1130 return _IMP_kernel.ParticleIndexKey_get_key_exists(*args)
1132 def ParticleIndexKey_add_alias(*args):
1133 """ParticleIndexKey_add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
1134 return _IMP_kernel.ParticleIndexKey_add_alias(*args)
1136 def ParticleIndexKey_show_all(*args):
1137 """ParticleIndexKey_show_all(_ostream out)"""
1138 return _IMP_kernel.ParticleIndexKey_show_all(*args)
1140 def ParticleIndexKey_get_all_strings():
1141 """ParticleIndexKey_get_all_strings() -> IMP::base::Vector< std::string >"""
1142 return _IMP_kernel.ParticleIndexKey_get_all_strings()
1144 def ParticleIndexKey_get_number_unique():
1145 """ParticleIndexKey_get_number_unique() -> unsigned int"""
1146 return _IMP_kernel.ParticleIndexKey_get_number_unique()
1149 """Proxy of C++ IMP::kernel::Key<(4,true)> class"""
1150 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1151 def __init__(self, *args):
1153 __init__(IMP::kernel::Key<(4,true)> self) -> ObjectKey
1154 __init__(IMP::kernel::Key<(4,true)> self, std::string c) -> ObjectKey
1155 __init__(IMP::kernel::Key<(4,true)> self, unsigned int i) -> ObjectKey
1157 this = _IMP_kernel.new_ObjectKey(*args)
1158 try: self.this.append(this)
1159 except: self.this = this
1161 """add_key(std::string sc) -> unsigned int"""
1162 return _IMP_kernel.ObjectKey_add_key(*args)
1164 add_key = staticmethod(add_key)
1165 def get_key_exists(*args):
1166 """get_key_exists(std::string sc) -> bool"""
1167 return _IMP_kernel.ObjectKey_get_key_exists(*args)
1169 get_key_exists = staticmethod(get_key_exists)
1170 def get_string(self):
1171 """get_string(ObjectKey self) -> std::string const"""
1172 return _IMP_kernel.ObjectKey_get_string(self)
1174 def __cmp__(self, *args):
1175 """__cmp__(ObjectKey self, ObjectKey o) -> int"""
1176 return _IMP_kernel.ObjectKey___cmp__(self, *args)
1178 def __eq__(self, *args):
1179 """__eq__(ObjectKey self, ObjectKey o) -> bool"""
1180 return _IMP_kernel.ObjectKey___eq__(self, *args)
1182 def __ne__(self, *args):
1183 """__ne__(ObjectKey self, ObjectKey o) -> bool"""
1184 return _IMP_kernel.ObjectKey___ne__(self, *args)
1186 def __lt__(self, *args):
1187 """__lt__(ObjectKey self, ObjectKey o) -> bool"""
1188 return _IMP_kernel.ObjectKey___lt__(self, *args)
1190 def __gt__(self, *args):
1191 """__gt__(ObjectKey self, ObjectKey o) -> bool"""
1192 return _IMP_kernel.ObjectKey___gt__(self, *args)
1194 def __ge__(self, *args):
1195 """__ge__(ObjectKey self, ObjectKey o) -> bool"""
1196 return _IMP_kernel.ObjectKey___ge__(self, *args)
1198 def __le__(self, *args):
1199 """__le__(ObjectKey self, ObjectKey o) -> bool"""
1200 return _IMP_kernel.ObjectKey___le__(self, *args)
1203 """__hash__(ObjectKey self) -> std::size_t"""
1204 return _IMP_kernel.ObjectKey___hash__(self)
1206 def show(self, *args):
1208 show(ObjectKey self, _ostream out=std::cout)
1209 show(ObjectKey self)
1211 return _IMP_kernel.ObjectKey_show(self, *args)
1213 def add_alias(*args):
1214 """add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
1215 return _IMP_kernel.ObjectKey_add_alias(*args)
1217 add_alias = staticmethod(add_alias)
1219 """get_index(ObjectKey self) -> unsigned int"""
1220 return _IMP_kernel.ObjectKey_get_index(self)
1222 def show_all(*args):
1223 """show_all(_ostream out)"""
1224 return _IMP_kernel.ObjectKey_show_all(*args)
1226 show_all = staticmethod(show_all)
1227 def get_all_strings():
1228 """get_all_strings() -> IMP::base::Vector< std::string >"""
1229 return _IMP_kernel.ObjectKey_get_all_strings()
1231 get_all_strings = staticmethod(get_all_strings)
1232 def get_number_unique():
1233 """get_number_unique() -> unsigned int"""
1234 return _IMP_kernel.ObjectKey_get_number_unique()
1236 get_number_unique = staticmethod(get_number_unique)
1238 """__str__(ObjectKey self) -> std::string"""
1239 return _IMP_kernel.ObjectKey___str__(self)
1242 """__repr__(ObjectKey self) -> std::string"""
1243 return _IMP_kernel.ObjectKey___repr__(self)
1245 __swig_destroy__ = _IMP_kernel.delete_ObjectKey
1246 __del__ =
lambda self :
None;
1247 ObjectKey_swigregister = _IMP_kernel.ObjectKey_swigregister
1248 ObjectKey_swigregister(ObjectKey)
1250 def ObjectKey_add_key(*args):
1251 """ObjectKey_add_key(std::string sc) -> unsigned int"""
1252 return _IMP_kernel.ObjectKey_add_key(*args)
1254 def ObjectKey_get_key_exists(*args):
1255 """ObjectKey_get_key_exists(std::string sc) -> bool"""
1256 return _IMP_kernel.ObjectKey_get_key_exists(*args)
1258 def ObjectKey_add_alias(*args):
1259 """ObjectKey_add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
1260 return _IMP_kernel.ObjectKey_add_alias(*args)
1262 def ObjectKey_show_all(*args):
1263 """ObjectKey_show_all(_ostream out)"""
1264 return _IMP_kernel.ObjectKey_show_all(*args)
1266 def ObjectKey_get_all_strings():
1267 """ObjectKey_get_all_strings() -> IMP::base::Vector< std::string >"""
1268 return _IMP_kernel.ObjectKey_get_all_strings()
1270 def ObjectKey_get_number_unique():
1271 """ObjectKey_get_number_unique() -> unsigned int"""
1272 return _IMP_kernel.ObjectKey_get_number_unique()
1275 """Proxy of C++ IMP::kernel::Key<(6,true)> class"""
1276 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1277 def __init__(self, *args):
1279 __init__(IMP::kernel::Key<(6,true)> self) -> ParticleIndexesKey
1280 __init__(IMP::kernel::Key<(6,true)> self, std::string c) -> ParticleIndexesKey
1281 __init__(IMP::kernel::Key<(6,true)> self, unsigned int i) -> ParticleIndexesKey
1283 this = _IMP_kernel.new_ParticleIndexesKey(*args)
1284 try: self.this.append(this)
1285 except: self.this = this
1287 """add_key(std::string sc) -> unsigned int"""
1288 return _IMP_kernel.ParticleIndexesKey_add_key(*args)
1290 add_key = staticmethod(add_key)
1291 def get_key_exists(*args):
1292 """get_key_exists(std::string sc) -> bool"""
1293 return _IMP_kernel.ParticleIndexesKey_get_key_exists(*args)
1295 get_key_exists = staticmethod(get_key_exists)
1296 def get_string(self):
1297 """get_string(ParticleIndexesKey self) -> std::string const"""
1298 return _IMP_kernel.ParticleIndexesKey_get_string(self)
1300 def __cmp__(self, *args):
1301 """__cmp__(ParticleIndexesKey self, ParticleIndexesKey o) -> int"""
1302 return _IMP_kernel.ParticleIndexesKey___cmp__(self, *args)
1304 def __eq__(self, *args):
1305 """__eq__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
1306 return _IMP_kernel.ParticleIndexesKey___eq__(self, *args)
1308 def __ne__(self, *args):
1309 """__ne__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
1310 return _IMP_kernel.ParticleIndexesKey___ne__(self, *args)
1312 def __lt__(self, *args):
1313 """__lt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
1314 return _IMP_kernel.ParticleIndexesKey___lt__(self, *args)
1316 def __gt__(self, *args):
1317 """__gt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
1318 return _IMP_kernel.ParticleIndexesKey___gt__(self, *args)
1320 def __ge__(self, *args):
1321 """__ge__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
1322 return _IMP_kernel.ParticleIndexesKey___ge__(self, *args)
1324 def __le__(self, *args):
1325 """__le__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
1326 return _IMP_kernel.ParticleIndexesKey___le__(self, *args)
1329 """__hash__(ParticleIndexesKey self) -> std::size_t"""
1330 return _IMP_kernel.ParticleIndexesKey___hash__(self)
1332 def show(self, *args):
1334 show(ParticleIndexesKey self, _ostream out=std::cout)
1335 show(ParticleIndexesKey self)
1337 return _IMP_kernel.ParticleIndexesKey_show(self, *args)
1339 def add_alias(*args):
1340 """add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
1341 return _IMP_kernel.ParticleIndexesKey_add_alias(*args)
1343 add_alias = staticmethod(add_alias)
1345 """get_index(ParticleIndexesKey self) -> unsigned int"""
1346 return _IMP_kernel.ParticleIndexesKey_get_index(self)
1348 def show_all(*args):
1349 """show_all(_ostream out)"""
1350 return _IMP_kernel.ParticleIndexesKey_show_all(*args)
1352 show_all = staticmethod(show_all)
1353 def get_all_strings():
1354 """get_all_strings() -> IMP::base::Vector< std::string >"""
1355 return _IMP_kernel.ParticleIndexesKey_get_all_strings()
1357 get_all_strings = staticmethod(get_all_strings)
1358 def get_number_unique():
1359 """get_number_unique() -> unsigned int"""
1360 return _IMP_kernel.ParticleIndexesKey_get_number_unique()
1362 get_number_unique = staticmethod(get_number_unique)
1364 """__str__(ParticleIndexesKey self) -> std::string"""
1365 return _IMP_kernel.ParticleIndexesKey___str__(self)
1368 """__repr__(ParticleIndexesKey self) -> std::string"""
1369 return _IMP_kernel.ParticleIndexesKey___repr__(self)
1371 __swig_destroy__ = _IMP_kernel.delete_ParticleIndexesKey
1372 __del__ =
lambda self :
None;
1373 ParticleIndexesKey_swigregister = _IMP_kernel.ParticleIndexesKey_swigregister
1374 ParticleIndexesKey_swigregister(ParticleIndexesKey)
1376 def ParticleIndexesKey_add_key(*args):
1377 """ParticleIndexesKey_add_key(std::string sc) -> unsigned int"""
1378 return _IMP_kernel.ParticleIndexesKey_add_key(*args)
1380 def ParticleIndexesKey_get_key_exists(*args):
1381 """ParticleIndexesKey_get_key_exists(std::string sc) -> bool"""
1382 return _IMP_kernel.ParticleIndexesKey_get_key_exists(*args)
1384 def ParticleIndexesKey_add_alias(*args):
1385 """ParticleIndexesKey_add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
1386 return _IMP_kernel.ParticleIndexesKey_add_alias(*args)
1388 def ParticleIndexesKey_show_all(*args):
1389 """ParticleIndexesKey_show_all(_ostream out)"""
1390 return _IMP_kernel.ParticleIndexesKey_show_all(*args)
1392 def ParticleIndexesKey_get_all_strings():
1393 """ParticleIndexesKey_get_all_strings() -> IMP::base::Vector< std::string >"""
1394 return _IMP_kernel.ParticleIndexesKey_get_all_strings()
1396 def ParticleIndexesKey_get_number_unique():
1397 """ParticleIndexesKey_get_number_unique() -> unsigned int"""
1398 return _IMP_kernel.ParticleIndexesKey_get_number_unique()
1401 """Proxy of C++ IMP::base::Index<(IMP::ParticleIndexTag)> class"""
1402 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1403 def __init__(self, *args):
1405 __init__(IMP::base::Index<(IMP::ParticleIndexTag)> self, int i) -> ParticleIndex
1406 __init__(IMP::base::Index<(IMP::ParticleIndexTag)> self) -> ParticleIndex
1408 this = _IMP_kernel.new_ParticleIndex(*args)
1409 try: self.this.append(this)
1410 except: self.this = this
1412 """get_index(ParticleIndex self) -> int"""
1413 return _IMP_kernel.ParticleIndex_get_index(self)
1415 def __cmp__(self, *args):
1416 """__cmp__(ParticleIndex self, ParticleIndex o) -> int"""
1417 return _IMP_kernel.ParticleIndex___cmp__(self, *args)
1419 def __eq__(self, *args):
1420 """__eq__(ParticleIndex self, ParticleIndex o) -> bool"""
1421 return _IMP_kernel.ParticleIndex___eq__(self, *args)
1423 def __ne__(self, *args):
1424 """__ne__(ParticleIndex self, ParticleIndex o) -> bool"""
1425 return _IMP_kernel.ParticleIndex___ne__(self, *args)
1427 def __lt__(self, *args):
1428 """__lt__(ParticleIndex self, ParticleIndex o) -> bool"""
1429 return _IMP_kernel.ParticleIndex___lt__(self, *args)
1431 def __gt__(self, *args):
1432 """__gt__(ParticleIndex self, ParticleIndex o) -> bool"""
1433 return _IMP_kernel.ParticleIndex___gt__(self, *args)
1435 def __ge__(self, *args):
1436 """__ge__(ParticleIndex self, ParticleIndex o) -> bool"""
1437 return _IMP_kernel.ParticleIndex___ge__(self, *args)
1439 def __le__(self, *args):
1440 """__le__(ParticleIndex self, ParticleIndex o) -> bool"""
1441 return _IMP_kernel.ParticleIndex___le__(self, *args)
1443 def show(self, *args):
1445 show(ParticleIndex self, _ostream out=std::cout)
1446 show(ParticleIndex self)
1448 return _IMP_kernel.ParticleIndex_show(self, *args)
1451 """__hash__(ParticleIndex self) -> std::size_t"""
1452 return _IMP_kernel.ParticleIndex___hash__(self)
1455 """__str__(ParticleIndex self) -> std::string"""
1456 return _IMP_kernel.ParticleIndex___str__(self)
1459 """__repr__(ParticleIndex self) -> std::string"""
1460 return _IMP_kernel.ParticleIndex___repr__(self)
1462 __swig_destroy__ = _IMP_kernel.delete_ParticleIndex
1463 __del__ =
lambda self :
None;
1464 ParticleIndex_swigregister = _IMP_kernel.ParticleIndex_swigregister
1465 ParticleIndex_swigregister(ParticleIndex)
1475 """Proxy of C++ IMP::kernel::FloatIndex class"""
1476 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1477 def __init__(self, *args):
1479 __init__(IMP::kernel::FloatIndex self, ParticleIndex i0=ParticleIndex(), FloatKey i1=FloatKey()) -> FloatIndex
1480 __init__(IMP::kernel::FloatIndex self, ParticleIndex i0=ParticleIndex()) -> FloatIndex
1481 __init__(IMP::kernel::FloatIndex self) -> FloatIndex
1483 this = _IMP_kernel.new_FloatIndex(*args)
1484 try: self.this.append(this)
1485 except: self.this = this
1487 """__hash__(FloatIndex self) -> std::size_t"""
1488 return _IMP_kernel.FloatIndex___hash__(self)
1490 def show(self, *args):
1492 show(FloatIndex self, _ostream out=std::cout)
1493 show(FloatIndex self)
1495 return _IMP_kernel.FloatIndex_show(self, *args)
1497 def __cmp__(self, *args):
1498 """__cmp__(FloatIndex self, FloatIndex o) -> int"""
1499 return _IMP_kernel.FloatIndex___cmp__(self, *args)
1501 def __eq__(self, *args):
1502 """__eq__(FloatIndex self, FloatIndex o) -> bool"""
1503 return _IMP_kernel.FloatIndex___eq__(self, *args)
1505 def __ne__(self, *args):
1506 """__ne__(FloatIndex self, FloatIndex o) -> bool"""
1507 return _IMP_kernel.FloatIndex___ne__(self, *args)
1509 def __lt__(self, *args):
1510 """__lt__(FloatIndex self, FloatIndex o) -> bool"""
1511 return _IMP_kernel.FloatIndex___lt__(self, *args)
1513 def __gt__(self, *args):
1514 """__gt__(FloatIndex self, FloatIndex o) -> bool"""
1515 return _IMP_kernel.FloatIndex___gt__(self, *args)
1517 def __ge__(self, *args):
1518 """__ge__(FloatIndex self, FloatIndex o) -> bool"""
1519 return _IMP_kernel.FloatIndex___ge__(self, *args)
1521 def __le__(self, *args):
1522 """__le__(FloatIndex self, FloatIndex o) -> bool"""
1523 return _IMP_kernel.FloatIndex___le__(self, *args)
1525 def get_particle(self):
1526 """get_particle(FloatIndex self) -> ParticleIndex const &"""
1527 return _IMP_kernel.FloatIndex_get_particle(self)
1529 def set_particle(self, *args):
1530 """set_particle(FloatIndex self, ParticleIndex const & v)"""
1531 return _IMP_kernel.FloatIndex_set_particle(self, *args)
1534 """get_key(FloatIndex self) -> FloatKey const &"""
1535 return _IMP_kernel.FloatIndex_get_key(self)
1537 def set_key(self, *args):
1538 """set_key(FloatIndex self, FloatKey const & v)"""
1539 return _IMP_kernel.FloatIndex_set_key(self, *args)
1542 """__str__(FloatIndex self) -> std::string"""
1543 return _IMP_kernel.FloatIndex___str__(self)
1546 """__repr__(FloatIndex self) -> std::string"""
1547 return _IMP_kernel.FloatIndex___repr__(self)
1549 __swig_destroy__ = _IMP_kernel.delete_FloatIndex
1550 __del__ =
lambda self :
None;
1551 FloatIndex_swigregister = _IMP_kernel.FloatIndex_swigregister
1552 FloatIndex_swigregister(FloatIndex)
1554 class _ParticleIndexTag(object):
1555 """Proxy of C++ IMP::kernel::ParticleIndexTag class"""
1556 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1557 __repr__ = _swig_repr
1559 """__init__(IMP::kernel::ParticleIndexTag self) -> _ParticleIndexTag"""
1560 this = _IMP_kernel.new__ParticleIndexTag()
1561 try: self.this.append(this)
1562 except: self.this = this
1563 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexTag
1564 __del__ =
lambda self :
None;
1565 _ParticleIndexTag_swigregister = _IMP_kernel._ParticleIndexTag_swigregister
1566 _ParticleIndexTag_swigregister(_ParticleIndexTag)
1569 """Proxy of C++ IMP::kernel::ModelObject class"""
1570 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1571 def __init__(self, *args):
1572 """__init__(IMP::kernel::ModelObject self, Model m, std::string name) -> ModelObject"""
1573 if self.__class__ == ModelObject:
1577 this = _IMP_kernel.new_ModelObject(_self, *args)
1578 try: self.this.append(this)
1579 except: self.this = this
1580 if self.__class__ != ModelObject:
1582 IMP.base._director_objects.register(self)
1586 __swig_destroy__ = _IMP_kernel.delete_ModelObject
1587 __del__ =
lambda self :
None;
1588 def get_model(self):
1589 """get_model(ModelObject self) -> Model"""
1590 return _IMP_kernel.ModelObject_get_model(self)
1592 def get_inputs(self):
1593 """get_inputs(ModelObject self) -> IMP::kernel::ModelObjectsTemp"""
1594 return _IMP_kernel.ModelObject_get_inputs(self)
1596 def get_outputs(self):
1597 """get_outputs(ModelObject self) -> IMP::kernel::ModelObjectsTemp"""
1598 return _IMP_kernel.ModelObject_get_outputs(self)
1600 def get_interactions(self):
1601 """get_interactions(ModelObject self) -> IMP::kernel::ModelObjectsTemps"""
1602 return _IMP_kernel.ModelObject_get_interactions(self)
1604 def get_has_dependencies(self):
1605 """get_has_dependencies(ModelObject self) -> bool"""
1606 return _IMP_kernel.ModelObject_get_has_dependencies(self)
1608 def set_has_dependencies(self, *args):
1609 """set_has_dependencies(ModelObject self, bool tf)"""
1610 return _IMP_kernel.ModelObject_set_has_dependencies(self, *args)
1612 def set_has_required_score_states(self, *args):
1613 """set_has_required_score_states(ModelObject self, bool tf)"""
1614 return _IMP_kernel.ModelObject_set_has_required_score_states(self, *args)
1616 def get_has_required_score_states(self):
1617 """get_has_required_score_states(ModelObject self) -> bool"""
1618 return _IMP_kernel.ModelObject_get_has_required_score_states(self)
1621 """get_required_score_states(ModelObject self) -> IMP::kernel::ScoreStatesTemp const &"""
1622 return _IMP_kernel.ModelObject_get_required_score_states(self)
1624 def handle_set_has_required_score_states(self, *args):
1625 """handle_set_has_required_score_states(ModelObject self, bool arg0)"""
1626 return _IMP_kernel.ModelObject_handle_set_has_required_score_states(self, *args)
1628 def do_get_inputs(self):
1629 """do_get_inputs(ModelObject self) -> IMP::kernel::ModelObjectsTemp"""
1630 return _IMP_kernel.ModelObject_do_get_inputs(self)
1632 def do_get_outputs(self):
1633 """do_get_outputs(ModelObject self) -> IMP::kernel::ModelObjectsTemp"""
1634 return _IMP_kernel.ModelObject_do_get_outputs(self)
1636 def do_get_interactions(self):
1637 """do_get_interactions(ModelObject self) -> IMP::kernel::ModelObjectsTemps"""
1638 return _IMP_kernel.ModelObject_do_get_interactions(self)
1641 """__str__(ModelObject self) -> std::string"""
1642 return _IMP_kernel.ModelObject___str__(self)
1645 """__repr__(ModelObject self) -> std::string"""
1646 return _IMP_kernel.ModelObject___repr__(self)
1649 return _object_cast_to_ModelObject(o)
1650 get_from = staticmethod(get_from)
1652 def get_type_name(self):
1653 return self.__class__.__name__
1654 def do_show(self, out):
1656 def get_version_info(self):
1657 if"IMP::kernel" ==
"IMP":
1658 return VersionInfo(
"python",
"0")
1660 return IMP.VersionInfo(
"python",
"0")
1662 return _object_cast_to_ModelObject(o)
1663 get_from = staticmethod(get_from)
1665 def __disown__(self):
1667 _IMP_kernel.disown_ModelObject(self)
1668 return weakref_proxy(self)
1669 def do_destroy(self):
1670 """do_destroy(ModelObject self)"""
1671 return _IMP_kernel.ModelObject_do_destroy(self)
1673 ModelObject_swigregister = _IMP_kernel.ModelObject_swigregister
1674 ModelObject_swigregister(ModelObject)
1675 cvar = _IMP_kernel.cvar
1676 NO_MAX = cvar.NO_MAX
1677 BAD_SCORE = cvar.BAD_SCORE
1679 class _ParticleInputs(object):
1680 """Proxy of C++ IMP::kernel::ParticleInputs class"""
1681 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1682 __repr__ = _swig_repr
1683 def get_inputs(self, *args):
1684 """get_inputs(_ParticleInputs self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
1685 return _IMP_kernel._ParticleInputs_get_inputs(self, *args)
1688 """get_input_containers(_ParticleInputs self, Particle p) -> IMP::kernel::ContainersTemp"""
1689 return _IMP_kernel._ParticleInputs_get_input_containers(self, *args)
1692 """get_input_particles(_ParticleInputs self, Particle p) -> IMP::kernel::ParticlesTemp"""
1693 return _IMP_kernel._ParticleInputs_get_input_particles(self, *args)
1696 """__init__(IMP::kernel::ParticleInputs self) -> _ParticleInputs"""
1697 this = _IMP_kernel.new__ParticleInputs()
1698 try: self.this.append(this)
1699 except: self.this = this
1700 _ParticleInputs_swigregister = _IMP_kernel._ParticleInputs_swigregister
1701 _ParticleInputs_swigregister(_ParticleInputs)
1703 class _ParticleOutputs(object):
1704 """Proxy of C++ IMP::kernel::ParticleOutputs class"""
1705 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1706 __repr__ = _swig_repr
1707 def get_outputs(self, *args):
1708 """get_outputs(_ParticleOutputs self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
1709 return _IMP_kernel._ParticleOutputs_get_outputs(self, *args)
1712 """get_output_containers(_ParticleOutputs self, Particle p) -> IMP::kernel::ContainersTemp"""
1713 return _IMP_kernel._ParticleOutputs_get_output_containers(self, *args)
1716 """get_output_particles(_ParticleOutputs self, Particle p) -> IMP::kernel::ParticlesTemp"""
1717 return _IMP_kernel._ParticleOutputs_get_output_particles(self, *args)
1720 """__init__(IMP::kernel::ParticleOutputs self) -> _ParticleOutputs"""
1721 this = _IMP_kernel.new__ParticleOutputs()
1722 try: self.this.append(this)
1723 except: self.this = this
1724 _ParticleOutputs_swigregister = _IMP_kernel._ParticleOutputs_swigregister
1725 _ParticleOutputs_swigregister(_ParticleOutputs)
1729 """get_input_particles(IMP::kernel::ModelObjectsTemp const & mos) -> IMP::kernel::ParticlesTemp"""
1730 return _IMP_kernel.get_input_particles(*args)
1733 """get_input_containers(IMP::kernel::ModelObjectsTemp const & mos) -> IMP::kernel::ContainersTemp"""
1734 return _IMP_kernel.get_input_containers(*args)
1737 """get_output_particles(IMP::kernel::ModelObjectsTemp const & mos) -> IMP::kernel::ParticlesTemp"""
1738 return _IMP_kernel.get_output_particles(*args)
1741 """get_output_containers(IMP::kernel::ModelObjectsTemp const & mos) -> IMP::kernel::ContainersTemp"""
1742 return _IMP_kernel.get_output_containers(*args)
1744 """Proxy of C++ IMP::kernel::DerivativeAccumulator class"""
1745 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1746 __repr__ = _swig_repr
1747 def __init__(self, *args):
1749 __init__(IMP::kernel::DerivativeAccumulator self, double weight=1.0) -> DerivativeAccumulator
1750 __init__(IMP::kernel::DerivativeAccumulator self) -> DerivativeAccumulator
1751 __init__(IMP::kernel::DerivativeAccumulator self, DerivativeAccumulator copy, double weight) -> DerivativeAccumulator
1753 this = _IMP_kernel.new_DerivativeAccumulator(*args)
1754 try: self.this.append(this)
1755 except: self.this = this
1756 def __call__(self, *args):
1757 """__call__(DerivativeAccumulator self, double const value) -> double"""
1758 return _IMP_kernel.DerivativeAccumulator___call__(self, *args)
1760 def get_weight(self):
1761 """get_weight(DerivativeAccumulator self) -> double"""
1762 return _IMP_kernel.DerivativeAccumulator_get_weight(self)
1764 def show(self, *args):
1766 show(DerivativeAccumulator self, _ostream out=std::cout)
1767 show(DerivativeAccumulator self)
1769 return _IMP_kernel.DerivativeAccumulator_show(self, *args)
1771 __swig_destroy__ = _IMP_kernel.delete_DerivativeAccumulator
1772 __del__ =
lambda self :
None;
1773 DerivativeAccumulator_swigregister = _IMP_kernel.DerivativeAccumulator_swigregister
1774 DerivativeAccumulator_swigregister(DerivativeAccumulator)
1777 """Proxy of C++ IMP::kernel::EvaluationState class"""
1778 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1779 score = _swig_property(_IMP_kernel.EvaluationState_score_get, _IMP_kernel.EvaluationState_score_set)
1780 good = _swig_property(_IMP_kernel.EvaluationState_good_get, _IMP_kernel.EvaluationState_good_set)
1781 def __init__(self, *args):
1783 __init__(IMP::kernel::EvaluationState self, double oscore, bool ogood) -> EvaluationState
1784 __init__(IMP::kernel::EvaluationState self) -> EvaluationState
1786 this = _IMP_kernel.new_EvaluationState(*args)
1787 try: self.this.append(this)
1788 except: self.this = this
1789 def show(self, *args):
1791 show(EvaluationState self, _ostream out=std::cout)
1792 show(EvaluationState self)
1794 return _IMP_kernel.EvaluationState_show(self, *args)
1797 """__str__(EvaluationState self) -> std::string"""
1798 return _IMP_kernel.EvaluationState___str__(self)
1801 """__repr__(EvaluationState self) -> std::string"""
1802 return _IMP_kernel.EvaluationState___repr__(self)
1804 __swig_destroy__ = _IMP_kernel.delete_EvaluationState
1805 __del__ =
lambda self :
None;
1806 EvaluationState_swigregister = _IMP_kernel.EvaluationState_swigregister
1807 EvaluationState_swigregister(EvaluationState)
1810 """Proxy of C++ IMP::kernel::ScoreAccumulator class"""
1811 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1812 def __init__(self, *args):
1814 __init__(IMP::kernel::ScoreAccumulator self) -> ScoreAccumulator
1815 __init__(IMP::kernel::ScoreAccumulator self, ScoreAccumulator o, Restraint r) -> ScoreAccumulator
1816 __init__(IMP::kernel::ScoreAccumulator self, ScoreAccumulator o, double weight, double local_max) -> ScoreAccumulator
1818 this = _IMP_kernel.new_ScoreAccumulator(*args)
1819 try: self.this.append(this)
1820 except: self.this = this
1821 def add_score(self, *args):
1822 """add_score(ScoreAccumulator self, double score)"""
1823 return _IMP_kernel.ScoreAccumulator_add_score(self, *args)
1825 def get_abort_evaluation(self):
1826 """get_abort_evaluation(ScoreAccumulator self) -> bool"""
1827 return _IMP_kernel.ScoreAccumulator_get_abort_evaluation(self)
1829 def get_is_evaluate_if_below(self):
1830 """get_is_evaluate_if_below(ScoreAccumulator self) -> bool"""
1831 return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_below(self)
1833 def get_is_evaluate_if_good(self):
1834 """get_is_evaluate_if_good(ScoreAccumulator self) -> bool"""
1835 return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_good(self)
1837 def get_maximum(self):
1838 """get_maximum(ScoreAccumulator self) -> double"""
1839 return _IMP_kernel.ScoreAccumulator_get_maximum(self)
1841 def get_derivative_accumulator(self):
1842 """get_derivative_accumulator(ScoreAccumulator self) -> DerivativeAccumulator"""
1843 return _IMP_kernel.ScoreAccumulator_get_derivative_accumulator(self)
1845 def show(self, *args):
1847 show(ScoreAccumulator self, _ostream out=std::cout)
1848 show(ScoreAccumulator self)
1850 return _IMP_kernel.ScoreAccumulator_show(self, *args)
1853 """__str__(ScoreAccumulator self) -> std::string"""
1854 return _IMP_kernel.ScoreAccumulator___str__(self)
1857 """__repr__(ScoreAccumulator self) -> std::string"""
1858 return _IMP_kernel.ScoreAccumulator___repr__(self)
1860 __swig_destroy__ = _IMP_kernel.delete_ScoreAccumulator
1861 __del__ =
lambda self :
None;
1862 ScoreAccumulator_swigregister = _IMP_kernel.ScoreAccumulator_swigregister
1863 ScoreAccumulator_swigregister(ScoreAccumulator)
1866 """Proxy of C++ IMP::kernel::ScoreState class"""
1867 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1868 def __init__(self, *args):
1869 """__init__(IMP::kernel::ScoreState self, Model m, std::string name) -> ScoreState"""
1870 if self.__class__ == ScoreState:
1874 this = _IMP_kernel.new_ScoreState(_self, *args)
1875 try: self.this.append(this)
1876 except: self.this = this
1877 if self.__class__ != ScoreState:
1879 IMP.base._director_objects.register(self)
1883 def before_evaluate(self):
1884 """before_evaluate(ScoreState self)"""
1885 return _IMP_kernel.ScoreState_before_evaluate(self)
1887 def after_evaluate(self, *args):
1888 """after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
1889 return _IMP_kernel.ScoreState_after_evaluate(self, *args)
1891 def get_has_update_order(self):
1892 """get_has_update_order(ScoreState self) -> bool"""
1893 return _IMP_kernel.ScoreState_get_has_update_order(self)
1896 """get_update_order(ScoreState self) -> unsigned int"""
1897 return _IMP_kernel.ScoreState_get_update_order(self)
1899 def handle_set_has_required_score_states(self, *args):
1900 """handle_set_has_required_score_states(ScoreState self, bool tf)"""
1901 return _IMP_kernel.ScoreState_handle_set_has_required_score_states(self, *args)
1903 def do_before_evaluate(self):
1904 """do_before_evaluate(ScoreState self)"""
1905 return _IMP_kernel.ScoreState_do_before_evaluate(self)
1907 def do_after_evaluate(self, *args):
1908 """do_after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
1909 return _IMP_kernel.ScoreState_do_after_evaluate(self, *args)
1911 __swig_destroy__ = _IMP_kernel.delete_ScoreState
1912 __del__ =
lambda self :
None;
1914 """__str__(ScoreState self) -> std::string"""
1915 return _IMP_kernel.ScoreState___str__(self)
1918 """__repr__(ScoreState self) -> std::string"""
1919 return _IMP_kernel.ScoreState___repr__(self)
1922 return _object_cast_to_ScoreState(o)
1923 get_from = staticmethod(get_from)
1925 def get_type_name(self):
1926 return self.__class__.__name__
1927 def do_show(self, out):
1929 def get_version_info(self):
1930 if"IMP::kernel" ==
"IMP":
1931 return VersionInfo(
"python",
"0")
1933 return IMP.VersionInfo(
"python",
"0")
1935 return _object_cast_to_ScoreState(o)
1936 get_from = staticmethod(get_from)
1938 def __disown__(self):
1940 _IMP_kernel.disown_ScoreState(self)
1941 return weakref_proxy(self)
1942 def do_destroy(self):
1943 """do_destroy(ScoreState self)"""
1944 return _IMP_kernel.ScoreState_do_destroy(self)
1946 def do_get_inputs(self):
1947 """do_get_inputs(ScoreState self) -> IMP::kernel::ModelObjectsTemp"""
1948 return _IMP_kernel.ScoreState_do_get_inputs(self)
1950 def do_get_outputs(self):
1951 """do_get_outputs(ScoreState self) -> IMP::kernel::ModelObjectsTemp"""
1952 return _IMP_kernel.ScoreState_do_get_outputs(self)
1954 def do_get_interactions(self):
1955 """do_get_interactions(ScoreState self) -> IMP::kernel::ModelObjectsTemps"""
1956 return _IMP_kernel.ScoreState_do_get_interactions(self)
1958 ScoreState_swigregister = _IMP_kernel.ScoreState_swigregister
1959 ScoreState_swigregister(ScoreState)
1963 """get_update_order(IMP::kernel::ScoreStatesTemp input) -> IMP::kernel::ScoreStatesTemp"""
1964 return _IMP_kernel.get_update_order(*args)
1966 """Proxy of C++ IMP::kernel::Constraint class"""
1967 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1968 def __init__(self, *args):
1970 __init__(IMP::kernel::Constraint self, Model m, std::string name="Constraint %1%") -> Constraint
1971 __init__(IMP::kernel::Constraint self, Model m) -> Constraint
1973 if self.__class__ == Constraint:
1977 this = _IMP_kernel.new_Constraint(_self, *args)
1978 try: self.this.append(this)
1979 except: self.this = this
1980 if self.__class__ != Constraint:
1982 IMP.base._director_objects.register(self)
1986 def do_update_attributes(self):
1987 """do_update_attributes(Constraint self)"""
1988 return _IMP_kernel.Constraint_do_update_attributes(self)
1990 def do_update_derivatives(self, *args):
1991 """do_update_derivatives(Constraint self, DerivativeAccumulator da)"""
1992 return _IMP_kernel.Constraint_do_update_derivatives(self, *args)
1994 def do_before_evaluate(self):
1995 """do_before_evaluate(Constraint self)"""
1996 return _IMP_kernel.Constraint_do_before_evaluate(self)
1998 def do_after_evaluate(self, *args):
1999 """do_after_evaluate(Constraint self, DerivativeAccumulator da)"""
2000 return _IMP_kernel.Constraint_do_after_evaluate(self, *args)
2002 __swig_destroy__ = _IMP_kernel.delete_Constraint
2003 __del__ =
lambda self :
None;
2005 """__str__(Constraint self) -> std::string"""
2006 return _IMP_kernel.Constraint___str__(self)
2009 """__repr__(Constraint self) -> std::string"""
2010 return _IMP_kernel.Constraint___repr__(self)
2013 return _object_cast_to_Constraint(o)
2014 get_from = staticmethod(get_from)
2016 def get_type_name(self):
2017 return self.__class__.__name__
2018 def do_show(self, out):
2020 def get_version_info(self):
2021 if"IMP::kernel" ==
"IMP":
2022 return VersionInfo(
"python",
"0")
2024 return IMP.VersionInfo(
"python",
"0")
2026 return _object_cast_to_Constraint(o)
2027 get_from = staticmethod(get_from)
2029 def __disown__(self):
2031 _IMP_kernel.disown_Constraint(self)
2032 return weakref_proxy(self)
2033 def do_destroy(self):
2034 """do_destroy(Constraint self)"""
2035 return _IMP_kernel.Constraint_do_destroy(self)
2037 def do_get_inputs(self):
2038 """do_get_inputs(Constraint self) -> IMP::kernel::ModelObjectsTemp"""
2039 return _IMP_kernel.Constraint_do_get_inputs(self)
2041 def do_get_outputs(self):
2042 """do_get_outputs(Constraint self) -> IMP::kernel::ModelObjectsTemp"""
2043 return _IMP_kernel.Constraint_do_get_outputs(self)
2045 def do_get_interactions(self):
2046 """do_get_interactions(Constraint self) -> IMP::kernel::ModelObjectsTemps"""
2047 return _IMP_kernel.Constraint_do_get_interactions(self)
2049 Constraint_swigregister = _IMP_kernel.Constraint_swigregister
2050 Constraint_swigregister(Constraint)
2053 """Proxy of C++ IMP::kernel::Container class"""
2054 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2055 def __init__(self, *args):
2057 __init__(IMP::kernel::Container self, Model m, std::string name="Container %1%") -> Container
2058 __init__(IMP::kernel::Container self, Model m) -> Container
2060 if self.__class__ == Container:
2064 this = _IMP_kernel.new_Container(_self, *args)
2065 try: self.this.append(this)
2066 except: self.this = this
2067 if self.__class__ != Container:
2069 IMP.base._director_objects.register(self)
2073 def do_get_contents_hash(self):
2074 """do_get_contents_hash(Container self) -> std::size_t"""
2075 return _IMP_kernel.Container_do_get_contents_hash(self)
2077 def get_all_possible_indexes(self):
2078 """get_all_possible_indexes(Container self) -> IMP::kernel::ParticleIndexes"""
2079 return _IMP_kernel.Container_get_all_possible_indexes(self)
2081 def get_contents_hash(self):
2082 """get_contents_hash(Container self) -> std::size_t"""
2083 return _IMP_kernel.Container_get_contents_hash(self)
2085 def do_get_outputs(self):
2086 """do_get_outputs(Container self) -> IMP::kernel::ModelObjectsTemp"""
2087 return _IMP_kernel.Container_do_get_outputs(self)
2089 def get_is_decomposable(self):
2090 """get_is_decomposable(Container self) -> bool"""
2091 return _IMP_kernel.Container_get_is_decomposable(self)
2093 def validate_readable(self):
2094 """validate_readable(Container self)"""
2095 return _IMP_kernel.Container_validate_readable(self)
2097 def validate_writable(self):
2098 """validate_writable(Container self)"""
2099 return _IMP_kernel.Container_validate_writable(self)
2101 def set_is_readable(self, *args):
2102 """set_is_readable(Container self, bool tf)"""
2103 return _IMP_kernel.Container_set_is_readable(self, *args)
2105 def set_is_writable(self, *args):
2106 """set_is_writable(Container self, bool tf)"""
2107 return _IMP_kernel.Container_set_is_writable(self, *args)
2109 __swig_destroy__ = _IMP_kernel.delete_Container
2110 __del__ =
lambda self :
None;
2112 """__str__(Container self) -> std::string"""
2113 return _IMP_kernel.Container___str__(self)
2116 """__repr__(Container self) -> std::string"""
2117 return _IMP_kernel.Container___repr__(self)
2120 return _object_cast_to_Container(o)
2121 get_from = staticmethod(get_from)
2123 def get_type_name(self):
2124 return self.__class__.__name__
2125 def do_show(self, out):
2127 def get_version_info(self):
2128 if"IMP::kernel" ==
"IMP":
2129 return VersionInfo(
"python",
"0")
2131 return IMP.VersionInfo(
"python",
"0")
2133 return _object_cast_to_Container(o)
2134 get_from = staticmethod(get_from)
2136 def __disown__(self):
2138 _IMP_kernel.disown_Container(self)
2139 return weakref_proxy(self)
2140 def do_destroy(self):
2141 """do_destroy(Container self)"""
2142 return _IMP_kernel.Container_do_destroy(self)
2144 def handle_set_has_required_score_states(self, *args):
2145 """handle_set_has_required_score_states(Container self, bool arg0)"""
2146 return _IMP_kernel.Container_handle_set_has_required_score_states(self, *args)
2148 def do_get_inputs(self):
2149 """do_get_inputs(Container self) -> IMP::kernel::ModelObjectsTemp"""
2150 return _IMP_kernel.Container_do_get_inputs(self)
2152 def do_get_interactions(self):
2153 """do_get_interactions(Container self) -> IMP::kernel::ModelObjectsTemps"""
2154 return _IMP_kernel.Container_do_get_interactions(self)
2156 Container_swigregister = _IMP_kernel.Container_swigregister
2157 Container_swigregister(Container)
2160 """Proxy of C++ IMP::kernel::Restraint class"""
2161 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2162 def __init__(self, *args):
2163 """__init__(IMP::kernel::Restraint self, Model m, std::string name) -> Restraint"""
2164 if self.__class__ == Restraint:
2168 this = _IMP_kernel.new_Restraint(_self, *args)
2169 try: self.this.append(this)
2170 except: self.this = this
2171 if self.__class__ != Restraint:
2173 IMP.base._director_objects.register(self)
2177 def get_score(self):
2178 """get_score(Restraint self) -> double"""
2179 return _IMP_kernel.Restraint_get_score(self)
2181 def evaluate(self, *args):
2182 """evaluate(Restraint self, bool calc_derivs) -> double"""
2183 return _IMP_kernel.Restraint_evaluate(self, *args)
2185 def evaluate_if_good(self, *args):
2186 """evaluate_if_good(Restraint self, bool calc_derivatives) -> double"""
2187 return _IMP_kernel.Restraint_evaluate_if_good(self, *args)
2189 def evaluate_if_below(self, *args):
2190 """evaluate_if_below(Restraint self, bool calc_derivatives, double max) -> double"""
2191 return _IMP_kernel.Restraint_evaluate_if_below(self, *args)
2193 def unprotected_evaluate(self, *args):
2194 """unprotected_evaluate(Restraint self, DerivativeAccumulator da) -> double"""
2195 return _IMP_kernel.Restraint_unprotected_evaluate(self, *args)
2197 def unprotected_evaluate_if_good(self, *args):
2198 """unprotected_evaluate_if_good(Restraint self, DerivativeAccumulator da, double max) -> double"""
2199 return _IMP_kernel.Restraint_unprotected_evaluate_if_good(self, *args)
2201 def unprotected_evaluate_if_below(self, *args):
2202 """unprotected_evaluate_if_below(Restraint self, DerivativeAccumulator da, double max) -> double"""
2203 return _IMP_kernel.Restraint_unprotected_evaluate_if_below(self, *args)
2205 def add_score_and_derivatives(self, *args):
2206 """add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
2207 return _IMP_kernel.Restraint_add_score_and_derivatives(self, *args)
2210 """create_decomposition(Restraint self) -> Restraint"""
2211 return _IMP_kernel.Restraint_create_decomposition(self)
2213 def create_current_decomposition(self):
2214 """create_current_decomposition(Restraint self) -> Restraint"""
2215 return _IMP_kernel.Restraint_create_current_decomposition(self)
2217 def set_weight(self, *args):
2218 """set_weight(Restraint self, IMP::Float weight)"""
2219 return _IMP_kernel.Restraint_set_weight(self, *args)
2221 def get_weight(self):
2222 """get_weight(Restraint self) -> IMP::Float"""
2223 return _IMP_kernel.Restraint_get_weight(self)
2225 def get_maximum_score(self):
2226 """get_maximum_score(Restraint self) -> double"""
2227 return _IMP_kernel.Restraint_get_maximum_score(self)
2229 def set_maximum_score(self, *args):
2230 """set_maximum_score(Restraint self, double s)"""
2231 return _IMP_kernel.Restraint_set_maximum_score(self, *args)
2235 create_scoring_function(Restraint self, double weight=1.0, double max=NO_MAX) -> ScoringFunction
2236 create_scoring_function(Restraint self, double weight=1.0) -> ScoringFunction
2237 create_scoring_function(Restraint self) -> ScoringFunction
2239 return _IMP_kernel.Restraint_create_scoring_function(self, *args)
2241 def set_last_score(self, *args):
2242 """set_last_score(Restraint self, double s)"""
2243 return _IMP_kernel.Restraint_set_last_score(self, *args)
2245 def get_last_score(self):
2246 """get_last_score(Restraint self) -> double"""
2247 return _IMP_kernel.Restraint_get_last_score(self)
2249 def get_was_good(self):
2250 """get_was_good(Restraint self) -> bool"""
2251 return _IMP_kernel.Restraint_get_was_good(self)
2253 __swig_destroy__ = _IMP_kernel.delete_Restraint
2254 __del__ =
lambda self :
None;
2255 def do_create_decomposition(self):
2256 """do_create_decomposition(Restraint self) -> IMP::kernel::Restraints"""
2257 return _IMP_kernel.Restraint_do_create_decomposition(self)
2259 def do_create_current_decomposition(self):
2260 """do_create_current_decomposition(Restraint self) -> IMP::kernel::Restraints"""
2261 return _IMP_kernel.Restraint_do_create_current_decomposition(self)
2263 def do_add_score_and_derivatives(self, *args):
2264 """do_add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
2265 return _IMP_kernel.Restraint_do_add_score_and_derivatives(self, *args)
2267 def do_get_outputs(self):
2268 """do_get_outputs(Restraint self) -> IMP::kernel::ModelObjectsTemp"""
2269 return _IMP_kernel.Restraint_do_get_outputs(self)
2272 """__str__(Restraint self) -> std::string"""
2273 return _IMP_kernel.Restraint___str__(self)
2276 """__repr__(Restraint self) -> std::string"""
2277 return _IMP_kernel.Restraint___repr__(self)
2280 return _object_cast_to_Restraint(o)
2281 get_from = staticmethod(get_from)
2283 def get_type_name(self):
2284 return self.__class__.__name__
2285 def do_show(self, out):
2287 def get_version_info(self):
2288 if"IMP::kernel" ==
"IMP":
2289 return VersionInfo(
"python",
"0")
2291 return IMP.VersionInfo(
"python",
"0")
2293 return _object_cast_to_Restraint(o)
2294 get_from = staticmethod(get_from)
2296 def __disown__(self):
2298 _IMP_kernel.disown_Restraint(self)
2299 return weakref_proxy(self)
2300 def do_destroy(self):
2301 """do_destroy(Restraint self)"""
2302 return _IMP_kernel.Restraint_do_destroy(self)
2304 def handle_set_has_required_score_states(self, *args):
2305 """handle_set_has_required_score_states(Restraint self, bool arg0)"""
2306 return _IMP_kernel.Restraint_handle_set_has_required_score_states(self, *args)
2308 def do_get_inputs(self):
2309 """do_get_inputs(Restraint self) -> IMP::kernel::ModelObjectsTemp"""
2310 return _IMP_kernel.Restraint_do_get_inputs(self)
2312 def do_get_interactions(self):
2313 """do_get_interactions(Restraint self) -> IMP::kernel::ModelObjectsTemps"""
2314 return _IMP_kernel.Restraint_do_get_interactions(self)
2316 Restraint_swigregister = _IMP_kernel.Restraint_swigregister
2317 Restraint_swigregister(Restraint)
2319 class _RestraintsAdaptor(IMP.base._InputAdaptor):
2320 """Proxy of C++ IMP::kernel::RestraintsAdaptor class"""
2321 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2322 __repr__ = _swig_repr
2323 def __init__(self, *args):
2325 __init__(IMP::kernel::RestraintsAdaptor self) -> _RestraintsAdaptor
2326 __init__(IMP::kernel::RestraintsAdaptor self, IMP::kernel::Restraints const & sf) -> _RestraintsAdaptor
2327 __init__(IMP::kernel::RestraintsAdaptor self, IMP::kernel::RestraintsTemp const & sf) -> _RestraintsAdaptor
2328 __init__(IMP::kernel::RestraintsAdaptor self, Restraint sf) -> _RestraintsAdaptor
2329 __init__(IMP::kernel::RestraintsAdaptor self, Model sf) -> _RestraintsAdaptor
2330 __init__(IMP::kernel::RestraintsAdaptor self, IMP::kernel::ModelsTemp const & sf) -> _RestraintsAdaptor
2332 this = _IMP_kernel.new__RestraintsAdaptor(*args)
2333 try: self.this.append(this)
2334 except: self.this = this
2335 __swig_destroy__ = _IMP_kernel.delete__RestraintsAdaptor
2336 __del__ =
lambda self :
None;
2337 _RestraintsAdaptor_swigregister = _IMP_kernel._RestraintsAdaptor_swigregister
2338 _RestraintsAdaptor_swigregister(_RestraintsAdaptor)
2341 """Proxy of C++ IMP::kernel::RestraintSet class"""
2342 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2343 def __init__(self, *args):
2345 __init__(IMP::kernel::RestraintSet self, Model m, double weight, std::string const & name="RestraintSet %1%") -> RestraintSet
2346 __init__(IMP::kernel::RestraintSet self, Model m, double weight) -> RestraintSet
2347 __init__(IMP::kernel::RestraintSet self, Model m, std::string const & name="RestraintSet %1%") -> RestraintSet
2348 __init__(IMP::kernel::RestraintSet self, Model m) -> RestraintSet
2349 __init__(IMP::kernel::RestraintSet self, IMP::kernel::RestraintsTemp const & rs, double weight, std::string const & name="RestraintSet %1%") -> RestraintSet
2350 __init__(IMP::kernel::RestraintSet self, IMP::kernel::RestraintsTemp const & rs, double weight) -> RestraintSet
2352 this = _IMP_kernel.new_RestraintSet(*args)
2353 try: self.this.append(this)
2354 except: self.this = this
2355 def get_version_info(self):
2356 """get_version_info(RestraintSet self) -> VersionInfo"""
2357 return _IMP_kernel.RestraintSet_get_version_info(self)
2359 def remove_restraint(self, *args):
2360 """remove_restraint(RestraintSet self, Restraint d)"""
2361 return _IMP_kernel.RestraintSet_remove_restraint(self, *args)
2363 def remove_restraints(self, *args):
2364 """remove_restraints(RestraintSet self, IMP::kernel::Restraints const & d)"""
2365 return _IMP_kernel.RestraintSet_remove_restraints(self, *args)
2367 def set_restraints(self, *args):
2368 """set_restraints(RestraintSet self, IMP::kernel::Restraints const & ps)"""
2369 return _IMP_kernel.RestraintSet_set_restraints(self, *args)
2371 def set_restraints_order(self, *args):
2372 """set_restraints_order(RestraintSet self, IMP::kernel::Restraints const & objs)"""
2373 return _IMP_kernel.RestraintSet_set_restraints_order(self, *args)
2376 """add_restraint(RestraintSet self, Restraint obj) -> unsigned int"""
2377 return _IMP_kernel.RestraintSet_add_restraint(self, *args)
2380 """add_restraints(RestraintSet self, IMP::kernel::Restraints const & objs)"""
2381 return _IMP_kernel.RestraintSet_add_restraints(self, *args)
2383 def clear_restraints(self):
2384 """clear_restraints(RestraintSet self)"""
2385 return _IMP_kernel.RestraintSet_clear_restraints(self)
2387 def get_number_of_restraints(self):
2388 """get_number_of_restraints(RestraintSet self) -> unsigned int"""
2389 return _IMP_kernel.RestraintSet_get_number_of_restraints(self)
2391 def get_has_restraints(self):
2392 """get_has_restraints(RestraintSet self) -> bool"""
2393 return _IMP_kernel.RestraintSet_get_has_restraints(self)
2395 def get_restraint(self, *args):
2396 """get_restraint(RestraintSet self, unsigned int i) -> Restraint"""
2397 return _IMP_kernel.RestraintSet_get_restraint(self, *args)
2399 def get_restraints(self):
2400 """get_restraints(RestraintSet self) -> IMP::kernel::Restraints"""
2401 return _IMP_kernel.RestraintSet_get_restraints(self)
2403 def reserve_restraints(self, *args):
2404 """reserve_restraints(RestraintSet self, unsigned int sz)"""
2405 return _IMP_kernel.RestraintSet_reserve_restraints(self, *args)
2407 def get_non_sets_and_sets(self):
2408 """get_non_sets_and_sets(RestraintSet self) -> std::pair< IMP::kernel::RestraintsTemp,IMP::kernel::RestraintSetsTemp >"""
2409 return _IMP_kernel.RestraintSet_get_non_sets_and_sets(self)
2411 def do_get_inputs(self):
2412 """do_get_inputs(RestraintSet self) -> IMP::kernel::ModelObjectsTemp"""
2413 return _IMP_kernel.RestraintSet_do_get_inputs(self)
2417 create_scoring_function(RestraintSet self, double weight=1.0, double max=std::numeric_limits< double >::max()) -> ScoringFunction
2418 create_scoring_function(RestraintSet self, double weight=1.0) -> ScoringFunction
2419 create_scoring_function(RestraintSet self) -> ScoringFunction
2421 return _IMP_kernel.RestraintSet_create_scoring_function(self, *args)
2424 """__str__(RestraintSet self) -> std::string"""
2425 return _IMP_kernel.RestraintSet___str__(self)
2428 """__repr__(RestraintSet self) -> std::string"""
2429 return _IMP_kernel.RestraintSet___repr__(self)
2432 return _object_cast_to_RestraintSet(o)
2433 get_from = staticmethod(get_from)
2435 RestraintSet_swigregister = _IMP_kernel.RestraintSet_swigregister
2436 RestraintSet_swigregister(RestraintSet)
2439 def get_restraints(*args):
2440 """get_restraints(IMP::kernel::RestraintsTemp const & rs) -> IMP::kernel::RestraintsTemp"""
2441 return _IMP_kernel.get_restraints(*args)
2442 def _check_particle(p, a):
2443 if (
not p.get_is_active()):
2444 raise ValueError(
"Inactive Particle")
2445 if (type(a)() == a):
2446 raise IndexError(
"Cannot use default Index")
2447 if (
not p.has_attribute(a)):
2448 raise IndexError(
"Particle does not have attribute")
2451 """Proxy of C++ IMP::kernel::Particle class"""
2452 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2453 def get_version_info(self):
2454 """get_version_info(Particle self) -> VersionInfo"""
2455 return _IMP_kernel.Particle_get_version_info(self)
2457 def __init__(self, *args):
2459 __init__(IMP::kernel::Particle self, Model m, std::string name) -> Particle
2460 __init__(IMP::kernel::Particle self, Model m) -> Particle
2462 this = _IMP_kernel.new_Particle(*args)
2463 try: self.this.append(this)
2464 except: self.this = this
2465 def get_float_keys(self):
2466 """get_float_keys(Particle self) -> IMP::kernel::FloatKeys"""
2467 return _IMP_kernel.Particle_get_float_keys(self)
2469 def get_int_keys(self):
2470 """get_int_keys(Particle self) -> IMP::kernel::IntKeys"""
2471 return _IMP_kernel.Particle_get_int_keys(self)
2473 def get_string_keys(self):
2474 """get_string_keys(Particle self) -> IMP::kernel::StringKeys"""
2475 return _IMP_kernel.Particle_get_string_keys(self)
2477 def get_object_keys(self):
2478 """get_object_keys(Particle self) -> IMP::kernel::ObjectKeys"""
2479 return _IMP_kernel.Particle_get_object_keys(self)
2481 def add_cache_attribute(self, *args):
2483 add_cache_attribute(Particle self, FloatKey name, IMP::Float value)
2484 add_cache_attribute(Particle self, IntKey name, IMP::Int value)
2485 add_cache_attribute(Particle self, StringKey name, IMP::String value)
2486 add_cache_attribute(Particle self, ObjectKey name, Object * value)
2487 add_cache_attribute(Particle self, IMP::kernel::WeakObjectKey name, Object * value)
2489 return _IMP_kernel.Particle_add_cache_attribute(self, *args)
2491 def get_weak_object_keys(self):
2492 """get_weak_object_keys(Particle self) -> IMP::kernel::WeakObjectKeys"""
2493 return _IMP_kernel.Particle_get_weak_object_keys(self)
2495 def add_to_derivative(self, *args):
2496 """add_to_derivative(Particle self, FloatKey key, IMP::Float value, DerivativeAccumulator da)"""
2497 return _IMP_kernel.Particle_add_to_derivative(self, *args)
2499 def set_is_optimized(self, *args):
2500 """set_is_optimized(Particle self, FloatKey k, bool tf)"""
2501 return _IMP_kernel.Particle_set_is_optimized(self, *args)
2503 def get_is_optimized(self, *args):
2504 """get_is_optimized(Particle self, FloatKey k) -> bool"""
2505 return _IMP_kernel.Particle_get_is_optimized(self, *args)
2507 def get_derivative(self, *args):
2508 """get_derivative(Particle self, FloatKey name) -> IMP::Float"""
2509 return _IMP_kernel.Particle_get_derivative(self, *args)
2511 def add_attribute(self, *args):
2513 add_attribute(Particle self, FloatKey name, IMP::Float initial_value)
2514 add_attribute(Particle self, IntKey name, IMP::Int initial_value)
2515 add_attribute(Particle self, StringKey name, IMP::String initial_value)
2516 add_attribute(Particle self, ObjectKey name, Object * initial_value)
2517 add_attribute(Particle self, IMP::kernel::WeakObjectKey name, Object * initial_value)
2518 add_attribute(Particle self, FloatKey name, IMP::Float const initial_value, bool optimized)
2519 add_attribute(Particle self, ParticleIndexKey k, Particle v)
2521 return _IMP_kernel.Particle_add_attribute(self, *args)
2523 def has_attribute(self, *args):
2525 has_attribute(Particle self, FloatKey name) -> bool
2526 has_attribute(Particle self, IntKey name) -> bool
2527 has_attribute(Particle self, StringKey name) -> bool
2528 has_attribute(Particle self, ObjectKey name) -> bool
2529 has_attribute(Particle self, IMP::kernel::WeakObjectKey name) -> bool
2530 has_attribute(Particle self, ParticleIndexKey k) -> bool
2532 return _IMP_kernel.Particle_has_attribute(self, *args)
2534 def set_value(self, *args):
2536 set_value(Particle self, FloatKey name, IMP::Float value)
2537 set_value(Particle self, IntKey name, IMP::Int value)
2538 set_value(Particle self, StringKey name, IMP::String value)
2539 set_value(Particle self, ObjectKey name, Object * value)
2540 set_value(Particle self, IMP::kernel::WeakObjectKey name, Object * value)
2541 set_value(Particle self, ParticleIndexKey k, Particle v)
2543 return _IMP_kernel.Particle_set_value(self, *args)
2545 def get_value(self, *args):
2547 get_value(Particle self, FloatKey name) -> IMP::Float
2548 get_value(Particle self, IntKey name) -> IMP::Int
2549 get_value(Particle self, StringKey name) -> IMP::String
2550 get_value(Particle self, ObjectKey name) -> Object
2551 get_value(Particle self, IMP::kernel::WeakObjectKey name) -> Object
2552 get_value(Particle self, ParticleIndexKey k) -> Particle
2554 return _IMP_kernel.Particle_get_value(self, *args)
2556 def remove_attribute(self, *args):
2558 remove_attribute(Particle self, FloatKey name)
2559 remove_attribute(Particle self, IntKey name)
2560 remove_attribute(Particle self, StringKey name)
2561 remove_attribute(Particle self, ObjectKey name)
2562 remove_attribute(Particle self, IMP::kernel::WeakObjectKey name)
2563 remove_attribute(Particle self, ParticleIndexKey k)
2565 return _IMP_kernel.Particle_remove_attribute(self, *args)
2567 def get_particle_keys(self):
2568 """get_particle_keys(Particle self) -> IMP::kernel::ParticleIndexKeys"""
2569 return _IMP_kernel.Particle_get_particle_keys(self)
2571 def show(self, *args):
2573 show(Particle self, _ostream out=std::cout)
2576 return _IMP_kernel.Particle_show(self, *args)
2578 def get_is_active(self):
2579 """get_is_active(Particle self) -> bool"""
2580 return _IMP_kernel.Particle_get_is_active(self)
2583 """get_index(Particle self) -> IMP::kernel::ParticleIndex"""
2584 return _IMP_kernel.Particle_get_index(self)
2586 def __eq__(self, *args):
2588 __eq__(Particle self, Particle o) -> bool
2589 __eq__(Particle self, Decorator d) -> bool
2591 return _IMP_kernel.Particle___eq__(self, *args)
2593 def __ne__(self, *args):
2595 __ne__(Particle self, Particle o) -> bool
2596 __ne__(Particle self, Decorator d) -> bool
2598 return _IMP_kernel.Particle___ne__(self, *args)
2600 def __le__(self, *args):
2602 __le__(Particle self, Particle o) -> bool
2603 __le__(Particle self, Decorator d) -> bool
2605 return _IMP_kernel.Particle___le__(self, *args)
2607 def __lt__(self, *args):
2609 __lt__(Particle self, Particle o) -> bool
2610 __lt__(Particle self, Decorator d) -> bool
2612 return _IMP_kernel.Particle___lt__(self, *args)
2614 def __ge__(self, *args):
2616 __ge__(Particle self, Particle o) -> bool
2617 __ge__(Particle self, Decorator d) -> bool
2619 return _IMP_kernel.Particle___ge__(self, *args)
2621 def __gt__(self, *args):
2623 __gt__(Particle self, Particle o) -> bool
2624 __gt__(Particle self, Decorator d) -> bool
2626 return _IMP_kernel.Particle___gt__(self, *args)
2628 __hash__ = ModelObject.__hash__
2631 """__str__(Particle self) -> std::string"""
2632 return _IMP_kernel.Particle___str__(self)
2635 """__repr__(Particle self) -> std::string"""
2636 return _IMP_kernel.Particle___repr__(self)
2639 return _object_cast_to_Particle(o)
2640 get_from = staticmethod(get_from)
2642 Particle_swigregister = _IMP_kernel.Particle_swigregister
2643 Particle_swigregister(Particle)
2645 class _ParticleAdaptor(IMP.base._InputAdaptor):
2646 """Proxy of C++ IMP::kernel::ParticleAdaptor class"""
2647 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2648 __repr__ = _swig_repr
2649 def __init__(self, *args):
2651 __init__(IMP::kernel::ParticleAdaptor self) -> _ParticleAdaptor
2652 __init__(IMP::kernel::ParticleAdaptor self, Particle p) -> _ParticleAdaptor
2653 __init__(IMP::kernel::ParticleAdaptor self, Decorator d) -> _ParticleAdaptor
2655 this = _IMP_kernel.new__ParticleAdaptor(*args)
2656 try: self.this.append(this)
2657 except: self.this = this
2658 def get_model(self):
2659 """get_model(_ParticleAdaptor self) -> Model"""
2660 return _IMP_kernel._ParticleAdaptor_get_model(self)
2662 def get_particle_index(self):
2663 """get_particle_index(_ParticleAdaptor self) -> IMP::kernel::ParticleIndex"""
2664 return _IMP_kernel._ParticleAdaptor_get_particle_index(self)
2666 __swig_destroy__ = _IMP_kernel.delete__ParticleAdaptor
2667 __del__ =
lambda self :
None;
2668 _ParticleAdaptor_swigregister = _IMP_kernel._ParticleAdaptor_swigregister
2669 _ParticleAdaptor_swigregister(_ParticleAdaptor)
2671 class _DependencyGraphVertexIndex(object):
2672 """Proxy of C++ IMP::kernel::DependencyGraphVertexIndex class"""
2673 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2674 __repr__ = _swig_repr
2676 """__init__(IMP::kernel::DependencyGraphVertexIndex self) -> _DependencyGraphVertexIndex"""
2677 this = _IMP_kernel.new__DependencyGraphVertexIndex()
2678 try: self.this.append(this)
2679 except: self.this = this
2680 __swig_destroy__ = _IMP_kernel.delete__DependencyGraphVertexIndex
2681 __del__ =
lambda self :
None;
2682 _DependencyGraphVertexIndex_swigregister = _IMP_kernel._DependencyGraphVertexIndex_swigregister
2683 _DependencyGraphVertexIndex_swigregister(_DependencyGraphVertexIndex)
2686 def show_as_graphviz(*args):
2687 """show_as_graphviz(IMP::kernel::DependencyGraph const & name, TextOutput out)"""
2688 return _IMP_kernel.show_as_graphviz(*args)
2690 def get_vertex_index(*args):
2691 """get_vertex_index(IMP::kernel::DependencyGraph const & g) -> _DependencyGraphVertexIndex"""
2692 return _IMP_kernel.get_vertex_index(*args)
2695 """get_dependency_graph(Model m) -> IMP::kernel::DependencyGraph"""
2696 return _IMP_kernel.get_dependency_graph(*args)
2699 """get_pruned_dependency_graph(Model m) -> IMP::kernel::DependencyGraph"""
2700 return _IMP_kernel.get_pruned_dependency_graph(*args)
2704 get_required_score_states(IMP::kernel::ModelObjectsTemp const & mos, IMP::kernel::ScoreStatesTemp exclude=IMP::kernel::ScoreStatesTemp()) -> IMP::kernel::ScoreStatesTemp
2705 get_required_score_states(IMP::kernel::ModelObjectsTemp const & mos) -> IMP::kernel::ScoreStatesTemp
2706 get_required_score_states(ModelObject p, IMP::kernel::ModelObjectsTemp const & all, IMP::kernel::DependencyGraph const & dg,
2707 _DependencyGraphVertexIndex index) -> IMP::kernel::ScoreStatesTemp
2709 return _IMP_kernel.get_required_score_states(*args)
2713 get_dependent_particles(ModelObject p, IMP::kernel::ModelObjectsTemp const & all, IMP::kernel::DependencyGraph const & dg,
2714 _DependencyGraphVertexIndex index) -> IMP::kernel::ParticlesTemp
2716 return _IMP_kernel.get_dependent_particles(*args)
2720 get_dependent_score_states(ModelObject p, IMP::kernel::ModelObjectsTemp const & all, IMP::kernel::DependencyGraph const & dg,
2721 _DependencyGraphVertexIndex index) -> IMP::kernel::ScoreStatesTemp
2723 return _IMP_kernel.get_dependent_score_states(*args)
2727 get_dependent_restraints(ModelObject p, IMP::kernel::ModelObjectsTemp const & all, IMP::kernel::DependencyGraph const & dg,
2728 _DependencyGraphVertexIndex index) -> IMP::kernel::RestraintsTemp
2729 get_dependent_restraints(Model m, IMP::kernel::ParticleIndex pi) -> IMP::kernel::RestraintsTemp
2731 return _IMP_kernel.get_dependent_restraints(*args)
2733 """Proxy of C++ IMP::kernel::ScoringFunction class"""
2734 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2735 def do_add_score_and_derivatives(self, *args):
2736 """do_add_score_and_derivatives(ScoringFunction self, ScoreAccumulator sa, IMP::kernel::ScoreStatesTemp const & ss)"""
2737 return _IMP_kernel.ScoringFunction_do_add_score_and_derivatives(self, *args)
2739 def get_score_accumulator_if_below(self, *args):
2740 """get_score_accumulator_if_below(ScoringFunction self, bool deriv, double max) -> ScoreAccumulator"""
2741 return _IMP_kernel.ScoringFunction_get_score_accumulator_if_below(self, *args)
2743 def get_score_accumulator_if_good(self, *args):
2744 """get_score_accumulator_if_good(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
2745 return _IMP_kernel.ScoringFunction_get_score_accumulator_if_good(self, *args)
2747 def get_score_accumulator(self, *args):
2748 """get_score_accumulator(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
2749 return _IMP_kernel.ScoringFunction_get_score_accumulator(self, *args)
2751 def __init__(self, *args):
2752 """__init__(IMP::kernel::ScoringFunction self, Model m, std::string name) -> ScoringFunction"""
2753 if self.__class__ == ScoringFunction:
2757 this = _IMP_kernel.new_ScoringFunction(_self, *args)
2758 try: self.this.append(this)
2759 except: self.this = this
2760 if self.__class__ != ScoringFunction:
2762 IMP.base._director_objects.register(self)
2766 def do_get_outputs(self):
2767 """do_get_outputs(ScoringFunction self) -> IMP::kernel::ModelObjectsTemp"""
2768 return _IMP_kernel.ScoringFunction_do_get_outputs(self)
2770 def evaluate_if_good(self, *args):
2771 """evaluate_if_good(ScoringFunction self, bool derivatives) -> double"""
2772 return _IMP_kernel.ScoringFunction_evaluate_if_good(self, *args)
2774 def evaluate(self, *args):
2775 """evaluate(ScoringFunction self, bool derivatives) -> double"""
2776 return _IMP_kernel.ScoringFunction_evaluate(self, *args)
2778 def evaluate_if_below(self, *args):
2779 """evaluate_if_below(ScoringFunction self, bool derivatives, double max) -> double"""
2780 return _IMP_kernel.ScoringFunction_evaluate_if_below(self, *args)
2782 def get_had_good_score(self):
2783 """get_had_good_score(ScoringFunction self) -> bool"""
2784 return _IMP_kernel.ScoringFunction_get_had_good_score(self)
2786 def get_last_score(self):
2787 """get_last_score(ScoringFunction self) -> double"""
2788 return _IMP_kernel.ScoringFunction_get_last_score(self)
2791 """create_restraints(ScoringFunction self) -> IMP::kernel::Restraints"""
2792 return _IMP_kernel.ScoringFunction_create_restraints(self)
2795 """__str__(ScoringFunction self) -> std::string"""
2796 return _IMP_kernel.ScoringFunction___str__(self)
2799 """__repr__(ScoringFunction self) -> std::string"""
2800 return _IMP_kernel.ScoringFunction___repr__(self)
2803 return _object_cast_to_ScoringFunction(o)
2804 get_from = staticmethod(get_from)
2806 def get_type_name(self):
2807 return self.__class__.__name__
2808 def do_show(self, out):
2810 def get_version_info(self):
2811 if"IMP::kernel" ==
"IMP":
2812 return VersionInfo(
"python",
"0")
2814 return IMP.VersionInfo(
"python",
"0")
2816 return _object_cast_to_ScoringFunction(o)
2817 get_from = staticmethod(get_from)
2819 __swig_destroy__ = _IMP_kernel.delete_ScoringFunction
2820 __del__ =
lambda self :
None;
2821 def __disown__(self):
2823 _IMP_kernel.disown_ScoringFunction(self)
2824 return weakref_proxy(self)
2825 def do_destroy(self):
2826 """do_destroy(ScoringFunction self)"""
2827 return _IMP_kernel.ScoringFunction_do_destroy(self)
2829 def handle_set_has_required_score_states(self, *args):
2830 """handle_set_has_required_score_states(ScoringFunction self, bool arg0)"""
2831 return _IMP_kernel.ScoringFunction_handle_set_has_required_score_states(self, *args)
2833 def do_get_inputs(self):
2834 """do_get_inputs(ScoringFunction self) -> IMP::kernel::ModelObjectsTemp"""
2835 return _IMP_kernel.ScoringFunction_do_get_inputs(self)
2837 def do_get_interactions(self):
2838 """do_get_interactions(ScoringFunction self) -> IMP::kernel::ModelObjectsTemps"""
2839 return _IMP_kernel.ScoringFunction_do_get_interactions(self)
2841 ScoringFunction_swigregister = _IMP_kernel.ScoringFunction_swigregister
2842 ScoringFunction_swigregister(ScoringFunction)
2847 create_decomposition(IMP::kernel::RestraintsTemp const & rs) -> IMP::kernel::Restraints
2848 create_decomposition(ScoringFunction sf) -> IMP::kernel::ScoringFunctions
2850 return _IMP_kernel.create_decomposition(*args)
2851 class _ScoringFunctionAdaptor(IMP.base._InputAdaptor):
2852 """Proxy of C++ IMP::kernel::ScoringFunctionAdaptor class"""
2853 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2854 __repr__ = _swig_repr
2855 def __init__(self, *args):
2857 __init__(IMP::kernel::ScoringFunctionAdaptor self) -> _ScoringFunctionAdaptor
2858 __init__(IMP::kernel::ScoringFunctionAdaptor self, ScoringFunction sf) -> _ScoringFunctionAdaptor
2859 __init__(IMP::kernel::ScoringFunctionAdaptor self, IMP::kernel::RestraintsTemp const & sf) -> _ScoringFunctionAdaptor
2860 __init__(IMP::kernel::ScoringFunctionAdaptor self, IMP::kernel::Restraints const & sf) -> _ScoringFunctionAdaptor
2861 __init__(IMP::kernel::ScoringFunctionAdaptor self, Restraint sf) -> _ScoringFunctionAdaptor
2862 __init__(IMP::kernel::ScoringFunctionAdaptor self, Model sf) -> _ScoringFunctionAdaptor
2864 this = _IMP_kernel.new__ScoringFunctionAdaptor(*args)
2865 try: self.this.append(this)
2866 except: self.this = this
2867 __swig_destroy__ = _IMP_kernel.delete__ScoringFunctionAdaptor
2868 __del__ =
lambda self :
None;
2869 _ScoringFunctionAdaptor_swigregister = _IMP_kernel._ScoringFunctionAdaptor_swigregister
2870 _ScoringFunctionAdaptor_swigregister(_ScoringFunctionAdaptor)
2875 show_restraint_hierarchy(_ScoringFunctionAdaptor rs, _ostream out=std::cout)
2876 show_restraint_hierarchy(_ScoringFunctionAdaptor rs)
2878 return _IMP_kernel.show_restraint_hierarchy(*args)
2880 """Proxy of C++ IMP::kernel::Undecorator class"""
2881 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2882 def __init__(self, *args):
2883 """__init__(IMP::kernel::Undecorator self, Model m, std::string name) -> Undecorator"""
2884 if self.__class__ == Undecorator:
2888 this = _IMP_kernel.new_Undecorator(_self, *args)
2889 try: self.this.append(this)
2890 except: self.this = this
2891 if self.__class__ != Undecorator:
2893 IMP.base._director_objects.register(self)
2897 def teardown(self, *args):
2898 """teardown(Undecorator self, IMP::kernel::ParticleIndex pi)"""
2899 return _IMP_kernel.Undecorator_teardown(self, *args)
2902 """__str__(Undecorator self) -> std::string"""
2903 return _IMP_kernel.Undecorator___str__(self)
2906 """__repr__(Undecorator self) -> std::string"""
2907 return _IMP_kernel.Undecorator___repr__(self)
2910 return _object_cast_to_Undecorator(o)
2911 get_from = staticmethod(get_from)
2913 def get_type_name(self):
2914 return self.__class__.__name__
2915 def do_show(self, out):
2917 def get_version_info(self):
2918 if"IMP::kernel" ==
"IMP":
2919 return VersionInfo(
"python",
"0")
2921 return IMP.VersionInfo(
"python",
"0")
2923 return _object_cast_to_Undecorator(o)
2924 get_from = staticmethod(get_from)
2926 __swig_destroy__ = _IMP_kernel.delete_Undecorator
2927 __del__ =
lambda self :
None;
2928 def __disown__(self):
2930 _IMP_kernel.disown_Undecorator(self)
2931 return weakref_proxy(self)
2932 def do_destroy(self):
2933 """do_destroy(Undecorator self)"""
2934 return _IMP_kernel.Undecorator_do_destroy(self)
2936 Undecorator_swigregister = _IMP_kernel.Undecorator_swigregister
2937 Undecorator_swigregister(Undecorator)
2940 """Proxy of C++ IMP::kernel::Model class"""
2941 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2942 def __init__(self, name="Model %1%"):
2944 __init__(IMP::kernel::Model self, std::string name="Model %1%") -> Model
2945 __init__(IMP::kernel::Model self) -> Model
2947 this = _IMP_kernel.new_Model(name)
2948 try: self.this.append(this)
2949 except: self.this = this
2950 def clear_particle_caches(self, *args):
2951 """clear_particle_caches(Model self, IMP::kernel::ParticleIndex pi)"""
2952 return _IMP_kernel.Model_clear_particle_caches(self, *args)
2955 """add_particle(Model self, std::string name) -> IMP::kernel::ParticleIndex"""
2956 return _IMP_kernel.Model_add_particle(self, *args)
2958 def get_particle_name(self, *args):
2959 """get_particle_name(Model self, IMP::kernel::ParticleIndex pi) -> std::string"""
2960 return _IMP_kernel.Model_get_particle_name(self, *args)
2962 def add_undecorator(self, *args):
2963 """add_undecorator(Model self, IMP::kernel::ParticleIndex pi, Undecorator d)"""
2964 return _IMP_kernel.Model_add_undecorator(self, *args)
2966 def remove_score_state(self, *args):
2967 """remove_score_state(Model self, ScoreState d)"""
2968 return _IMP_kernel.Model_remove_score_state(self, *args)
2970 def remove_score_states(self, *args):
2971 """remove_score_states(Model self, IMP::kernel::ScoreStates const & d)"""
2972 return _IMP_kernel.Model_remove_score_states(self, *args)
2974 def set_score_states(self, *args):
2975 """set_score_states(Model self, IMP::kernel::ScoreStates const & ps)"""
2976 return _IMP_kernel.Model_set_score_states(self, *args)
2978 def set_score_states_order(self, *args):
2979 """set_score_states_order(Model self, IMP::kernel::ScoreStates const & objs)"""
2980 return _IMP_kernel.Model_set_score_states_order(self, *args)
2982 def add_score_state(self, *args):
2983 """add_score_state(Model self, ScoreState obj) -> unsigned int"""
2984 return _IMP_kernel.Model_add_score_state(self, *args)
2986 def add_score_states(self, *args):
2987 """add_score_states(Model self, IMP::kernel::ScoreStates const & objs)"""
2988 return _IMP_kernel.Model_add_score_states(self, *args)
2990 def clear_score_states(self):
2991 """clear_score_states(Model self)"""
2992 return _IMP_kernel.Model_clear_score_states(self)
2994 def get_number_of_score_states(self):
2995 """get_number_of_score_states(Model self) -> unsigned int"""
2996 return _IMP_kernel.Model_get_number_of_score_states(self)
2998 def get_has_score_states(self):
2999 """get_has_score_states(Model self) -> bool"""
3000 return _IMP_kernel.Model_get_has_score_states(self)
3002 def get_score_state(self, *args):
3003 """get_score_state(Model self, unsigned int i) -> ScoreState"""
3004 return _IMP_kernel.Model_get_score_state(self, *args)
3006 def get_score_states(self):
3007 """get_score_states(Model self) -> IMP::kernel::ScoreStates"""
3008 return _IMP_kernel.Model_get_score_states(self)
3010 def reserve_score_states(self, *args):
3011 """reserve_score_states(Model self, unsigned int sz)"""
3012 return _IMP_kernel.Model_reserve_score_states(self, *args)
3015 """update(Model self)"""
3016 return _IMP_kernel.Model_update(self)
3018 def add_attribute(self, *args):
3020 add_attribute(Model self, FloatKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Float value)
3021 add_attribute(Model self, IntKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Int value)
3022 add_attribute(Model self, IMP::kernel::IntsKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Ints value)
3023 add_attribute(Model self, StringKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::String value)
3024 add_attribute(Model self, ParticleIndexesKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::kernel::ParticleIndexes value)
3025 add_attribute(Model self, ParticleIndexKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::kernel::ParticleIndex value)
3026 add_attribute(Model self, ObjectKey attribute_key, IMP::kernel::ParticleIndex particle, Object * value)
3027 add_attribute(Model self, IMP::kernel::WeakObjectKey attribute_key, IMP::kernel::ParticleIndex particle, Object * value)
3029 return _IMP_kernel.Model_add_attribute(self, *args)
3031 def remove_attribute(self, *args):
3033 remove_attribute(Model self, FloatKey attribute_key, IMP::kernel::ParticleIndex particle)
3034 remove_attribute(Model self, IntKey attribute_key, IMP::kernel::ParticleIndex particle)
3035 remove_attribute(Model self, IMP::kernel::IntsKey attribute_key, IMP::kernel::ParticleIndex particle)
3036 remove_attribute(Model self, StringKey attribute_key, IMP::kernel::ParticleIndex particle)
3037 remove_attribute(Model self, ParticleIndexesKey attribute_key, IMP::kernel::ParticleIndex particle)
3038 remove_attribute(Model self, ParticleIndexKey attribute_key, IMP::kernel::ParticleIndex particle)
3039 remove_attribute(Model self, ObjectKey attribute_key, IMP::kernel::ParticleIndex particle)
3040 remove_attribute(Model self, IMP::kernel::WeakObjectKey attribute_key, IMP::kernel::ParticleIndex particle)
3042 return _IMP_kernel.Model_remove_attribute(self, *args)
3044 def get_has_attribute(self, *args):
3046 get_has_attribute(Model self, FloatKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3047 get_has_attribute(Model self, IntKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3048 get_has_attribute(Model self, IMP::kernel::IntsKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3049 get_has_attribute(Model self, StringKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3050 get_has_attribute(Model self, ParticleIndexesKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3051 get_has_attribute(Model self, ParticleIndexKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3052 get_has_attribute(Model self, ObjectKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3053 get_has_attribute(Model self, IMP::kernel::WeakObjectKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3055 return _IMP_kernel.Model_get_has_attribute(self, *args)
3057 def set_attribute(self, *args):
3059 set_attribute(Model self, FloatKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Float value)
3060 set_attribute(Model self, IntKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Int value)
3061 set_attribute(Model self, IMP::kernel::IntsKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Ints value)
3062 set_attribute(Model self, StringKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::String value)
3063 set_attribute(Model self, ParticleIndexesKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::kernel::ParticleIndexes value)
3064 set_attribute(Model self, ParticleIndexKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::kernel::ParticleIndex value)
3065 set_attribute(Model self, ObjectKey attribute_key, IMP::kernel::ParticleIndex particle, Object * value)
3066 set_attribute(Model self, IMP::kernel::WeakObjectKey attribute_key, IMP::kernel::ParticleIndex particle, Object * value)
3068 return _IMP_kernel.Model_set_attribute(self, *args)
3070 def get_attribute(self, *args):
3072 get_attribute(Model self, FloatKey attribute_key, IMP::kernel::ParticleIndex particle) -> IMP::Float
3073 get_attribute(Model self, IntKey attribute_key, IMP::kernel::ParticleIndex particle) -> IMP::Int
3074 get_attribute(Model self, IMP::kernel::IntsKey attribute_key, IMP::kernel::ParticleIndex particle) -> IMP::Ints
3075 get_attribute(Model self, StringKey attribute_key, IMP::kernel::ParticleIndex particle) -> IMP::String
3076 get_attribute(Model self, ParticleIndexesKey attribute_key, IMP::kernel::ParticleIndex particle) -> IMP::kernel::ParticleIndexes
3077 get_attribute(Model self, ParticleIndexKey attribute_key, IMP::kernel::ParticleIndex particle) -> IMP::kernel::ParticleIndex
3078 get_attribute(Model self, ObjectKey attribute_key, IMP::kernel::ParticleIndex particle) -> Object
3079 get_attribute(Model self, IMP::kernel::WeakObjectKey attribute_key, IMP::kernel::ParticleIndex particle) -> Object *
3081 return _IMP_kernel.Model_get_attribute(self, *args)
3083 def add_cache_attribute(self, *args):
3085 add_cache_attribute(Model self, FloatKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Float value)
3086 add_cache_attribute(Model self, IntKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Int value)
3087 add_cache_attribute(Model self, IMP::kernel::IntsKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Ints value)
3088 add_cache_attribute(Model self, StringKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::String value)
3089 add_cache_attribute(Model self, ParticleIndexesKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::kernel::ParticleIndexes value)
3090 add_cache_attribute(Model self, ParticleIndexKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::kernel::ParticleIndex value)
3091 add_cache_attribute(Model self, ObjectKey attribute_key, IMP::kernel::ParticleIndex particle, Object * value)
3092 add_cache_attribute(Model self, IMP::kernel::WeakObjectKey attribute_key, IMP::kernel::ParticleIndex particle, Object * value)
3094 return _IMP_kernel.Model_add_cache_attribute(self, *args)
3096 def set_is_optimized(self, *args):
3097 """set_is_optimized(Model self, FloatKey arg2, IMP::kernel::ParticleIndex arg3, bool arg4)"""
3098 return _IMP_kernel.Model_set_is_optimized(self, *args)
3100 def get_particle(self, *args):
3101 """get_particle(Model self, IMP::kernel::ParticleIndex p) -> Particle"""
3102 return _IMP_kernel.Model_get_particle(self, *args)
3104 def get_has_particle(self, *args):
3105 """get_has_particle(Model self, IMP::kernel::ParticleIndex p) -> bool"""
3106 return _IMP_kernel.Model_get_has_particle(self, *args)
3108 def get_particle_indexes(self):
3109 """get_particle_indexes(Model self) -> IMP::kernel::ParticleIndexes"""
3110 return _IMP_kernel.Model_get_particle_indexes(self)
3112 def get_model_objects(self):
3113 """get_model_objects(Model self) -> IMP::kernel::ModelObjectsTemp"""
3114 return _IMP_kernel.Model_get_model_objects(self)
3116 def add_data(self, *args):
3117 """add_data(Model self, IMP::kernel::ModelKey mk, Object o)"""
3118 return _IMP_kernel.Model_add_data(self, *args)
3120 def get_data(self, *args):
3121 """get_data(Model self, IMP::kernel::ModelKey mk) -> Object"""
3122 return _IMP_kernel.Model_get_data(self, *args)
3124 def remove_data(self, *args):
3125 """remove_data(Model self, IMP::kernel::ModelKey mk)"""
3126 return _IMP_kernel.Model_remove_data(self, *args)
3128 def get_has_data(self, *args):
3129 """get_has_data(Model self, IMP::kernel::ModelKey mk) -> bool"""
3130 return _IMP_kernel.Model_get_has_data(self, *args)
3132 def get_version_info(self):
3133 """get_version_info(Model self) -> VersionInfo"""
3134 return _IMP_kernel.Model_get_version_info(self)
3136 def create_model_scoring_function(self):
3137 """create_model_scoring_function(Model self) -> ScoringFunction"""
3138 return _IMP_kernel.Model_create_model_scoring_function(self)
3141 """add_restraint(Model self, Restraint r)"""
3142 return _IMP_kernel.Model_add_restraint(self, *args)
3144 def remove_restraint(self, *args):
3145 """remove_restraint(Model self, Restraint r)"""
3146 return _IMP_kernel.Model_remove_restraint(self, *args)
3148 def get_restraints(self):
3149 """get_restraints(Model self) -> IMP::kernel::RestraintsTemp"""
3150 return _IMP_kernel.Model_get_restraints(self)
3153 """create_scoring_function(Model self) -> ScoringFunction"""
3154 return _IMP_kernel.Model_create_scoring_function(self)
3156 def do_destroy(self):
3157 """do_destroy(Model self)"""
3158 return _IMP_kernel.Model_do_destroy(self)
3160 def get_number_of_restraints(self):
3161 """get_number_of_restraints(Model self) -> unsigned int"""
3162 return _IMP_kernel.Model_get_number_of_restraints(self)
3164 def get_restraint(self, *args):
3165 """get_restraint(Model self, unsigned int i) -> Restraint"""
3166 return _IMP_kernel.Model_get_restraint(self, *args)
3168 def evaluate(self, *args):
3170 evaluate(Model self, bool tf, bool warn=True) -> double
3171 evaluate(Model self, bool tf) -> double
3173 return _IMP_kernel.Model_evaluate(self, *args)
3175 def remove_particle(self, *args):
3177 remove_particle(Model self, IMP::kernel::ParticleIndex pi)
3178 remove_particle(Model self, Particle p)
3180 return _IMP_kernel.Model_remove_particle(self, *args)
3182 def get_number_of_particles(self):
3183 """get_number_of_particles(Model self) -> unsigned int"""
3184 return _IMP_kernel.Model_get_number_of_particles(self)
3187 """get_particles(Model self) -> IMP::kernel::ParticlesTemp"""
3188 return _IMP_kernel.Model_get_particles(self)
3190 def get_root_restraint_set(self):
3191 """get_root_restraint_set(Model self) -> RestraintSet"""
3192 return _IMP_kernel.Model_get_root_restraint_set(self)
3194 def set_maximum_score(self, *args):
3196 set_maximum_score(Model self, Restraint r, double s)
3197 set_maximum_score(Model self, double s)
3199 return _IMP_kernel.Model_set_maximum_score(self, *args)
3201 def get_maximum_score(self, *args):
3203 get_maximum_score(Model self, Restraint r) -> double
3204 get_maximum_score(Model self) -> double
3206 return _IMP_kernel.Model_get_maximum_score(self, *args)
3209 """__str__(Model self) -> std::string"""
3210 return _IMP_kernel.Model___str__(self)
3213 """__repr__(Model self) -> std::string"""
3214 return _IMP_kernel.Model___repr__(self)
3217 return _object_cast_to_Model(o)
3218 get_from = staticmethod(get_from)
3220 Model_swigregister = _IMP_kernel.Model_swigregister
3221 Model_swigregister(Model)
3224 """Proxy of C++ IMP::kernel::Decorator class"""
3225 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3226 __repr__ = _swig_repr
3227 def __init__(self, *args):
3228 """__init__(IMP::kernel::Decorator self, _ParticleAdaptor p) -> Decorator"""
3229 this = _IMP_kernel.new_Decorator(*args)
3230 try: self.this.append(this)
3231 except: self.this = this
3232 def __ne__(self, *args):
3233 """__ne__(Decorator self, Object o) -> bool"""
3234 return _IMP_kernel.Decorator___ne__(self, *args)
3236 def __lt__(self, *args):
3237 """__lt__(Decorator self, Object o) -> bool"""
3238 return _IMP_kernel.Decorator___lt__(self, *args)
3240 def __gt__(self, *args):
3241 """__gt__(Decorator self, Object o) -> bool"""
3242 return _IMP_kernel.Decorator___gt__(self, *args)
3244 def __ge__(self, *args):
3245 """__ge__(Decorator self, Object o) -> bool"""
3246 return _IMP_kernel.Decorator___ge__(self, *args)
3248 def __le__(self, *args):
3249 """__le__(Decorator self, Object o) -> bool"""
3250 return _IMP_kernel.Decorator___le__(self, *args)
3252 def get_particle(self):
3253 """get_particle(Decorator self) -> Particle"""
3254 return _IMP_kernel.Decorator_get_particle(self)
3256 def get_particle_index(self):
3257 """get_particle_index(Decorator self) -> IMP::kernel::ParticleIndex"""
3258 return _IMP_kernel.Decorator_get_particle_index(self)
3260 def get_model(self):
3261 """get_model(Decorator self) -> Model"""
3262 return _IMP_kernel.Decorator_get_model(self)
3264 def get_is_valid(self):
3265 """get_is_valid(Decorator self) -> bool"""
3266 return _IMP_kernel.Decorator_get_is_valid(self)
3269 """__hash__(Decorator self) -> std::size_t"""
3270 return _IMP_kernel.Decorator___hash__(self)
3272 def __eq__(self, *args):
3274 __eq__(Decorator self, Object o) -> bool
3275 __eq__(Decorator self, Decorator o) -> bool
3276 __eq__(Decorator self, Particle o) -> bool
3278 return _IMP_kernel.Decorator___eq__(self, *args)
3280 __swig_destroy__ = _IMP_kernel.delete_Decorator
3281 __del__ =
lambda self :
None;
3282 Decorator_swigregister = _IMP_kernel.Decorator_swigregister
3283 Decorator_swigregister(Decorator)
3286 def check_particle(*args):
3287 """check_particle(Particle p)"""
3288 return _IMP_kernel.check_particle(*args)
3290 """Proxy of C++ IMP::kernel::UnaryFunction class"""
3291 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3292 def __init__(self, name="UnaryFunction%1%"):
3294 __init__(IMP::kernel::UnaryFunction self, std::string name="UnaryFunction%1%") -> UnaryFunction
3295 __init__(IMP::kernel::UnaryFunction self) -> UnaryFunction
3297 if self.__class__ == UnaryFunction:
3301 this = _IMP_kernel.new_UnaryFunction(_self, name)
3302 try: self.this.append(this)
3303 except: self.this = this
3304 if self.__class__ != UnaryFunction:
3306 IMP.base._director_objects.register(self)
3310 def evaluate(self, *args):
3311 """evaluate(UnaryFunction self, double feature) -> double"""
3312 return _IMP_kernel.UnaryFunction_evaluate(self, *args)
3314 def evaluate_with_derivative(self, *args):
3315 """evaluate_with_derivative(UnaryFunction self, double feature) -> IMP::DerivativePair"""
3316 return _IMP_kernel.UnaryFunction_evaluate_with_derivative(self, *args)
3318 __swig_destroy__ = _IMP_kernel.delete_UnaryFunction
3319 __del__ =
lambda self :
None;
3321 """__str__(UnaryFunction self) -> std::string"""
3322 return _IMP_kernel.UnaryFunction___str__(self)
3325 """__repr__(UnaryFunction self) -> std::string"""
3326 return _IMP_kernel.UnaryFunction___repr__(self)
3329 return _object_cast_to_UnaryFunction(o)
3330 get_from = staticmethod(get_from)
3332 def get_type_name(self):
3333 return self.__class__.__name__
3334 def do_show(self, out):
3336 def get_version_info(self):
3337 if"IMP::kernel" ==
"IMP":
3338 return VersionInfo(
"python",
"0")
3340 return IMP.VersionInfo(
"python",
"0")
3342 return _object_cast_to_UnaryFunction(o)
3343 get_from = staticmethod(get_from)
3345 def __disown__(self):
3347 _IMP_kernel.disown_UnaryFunction(self)
3348 return weakref_proxy(self)
3349 def do_destroy(self):
3350 """do_destroy(UnaryFunction self)"""
3351 return _IMP_kernel.UnaryFunction_do_destroy(self)
3353 UnaryFunction_swigregister = _IMP_kernel.UnaryFunction_swigregister
3354 UnaryFunction_swigregister(UnaryFunction)
3357 """Proxy of C++ IMP::kernel::OptimizerState class"""
3358 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3359 def __init__(self, *args):
3360 """__init__(IMP::kernel::OptimizerState self, Model m, std::string name) -> OptimizerState"""
3361 if self.__class__ == OptimizerState:
3365 this = _IMP_kernel.new_OptimizerState(_self, *args)
3366 try: self.this.append(this)
3367 except: self.this = this
3368 if self.__class__ != OptimizerState:
3370 IMP.base._director_objects.register(self)
3375 """update(OptimizerState self)"""
3376 return _IMP_kernel.OptimizerState_update(self)
3378 def set_is_optimizing(self, *args):
3379 """set_is_optimizing(OptimizerState self, bool arg0)"""
3380 return _IMP_kernel.OptimizerState_set_is_optimizing(self, *args)
3382 def get_optimizer(self):
3383 """get_optimizer(OptimizerState self) -> Optimizer"""
3384 return _IMP_kernel.OptimizerState_get_optimizer(self)
3386 def set_period(self, *args):
3387 """set_period(OptimizerState self, unsigned int p)"""
3388 return _IMP_kernel.OptimizerState_set_period(self, *args)
3390 def get_period(self):
3391 """get_period(OptimizerState self) -> unsigned int"""
3392 return _IMP_kernel.OptimizerState_get_period(self)
3395 """reset(OptimizerState self)"""
3396 return _IMP_kernel.OptimizerState_reset(self)
3398 def update_always(self):
3399 """update_always(OptimizerState self)"""
3400 return _IMP_kernel.OptimizerState_update_always(self)
3402 def get_number_of_updates(self):
3403 """get_number_of_updates(OptimizerState self) -> unsigned int"""
3404 return _IMP_kernel.OptimizerState_get_number_of_updates(self)
3406 def set_number_of_updates(self, *args):
3407 """set_number_of_updates(OptimizerState self, unsigned int n)"""
3408 return _IMP_kernel.OptimizerState_set_number_of_updates(self, *args)
3410 __swig_destroy__ = _IMP_kernel.delete_OptimizerState
3411 __del__ =
lambda self :
None;
3412 def do_update(self, *args):
3413 """do_update(OptimizerState self, unsigned int arg0)"""
3414 return _IMP_kernel.OptimizerState_do_update(self, *args)
3416 def do_set_is_optimizing(self, *args):
3417 """do_set_is_optimizing(OptimizerState self, bool arg0)"""
3418 return _IMP_kernel.OptimizerState_do_set_is_optimizing(self, *args)
3420 def do_get_inputs(self):
3421 """do_get_inputs(OptimizerState self) -> IMP::kernel::ModelObjectsTemp"""
3422 return _IMP_kernel.OptimizerState_do_get_inputs(self)
3424 def do_get_outputs(self):
3425 """do_get_outputs(OptimizerState self) -> IMP::kernel::ModelObjectsTemp"""
3426 return _IMP_kernel.OptimizerState_do_get_outputs(self)
3429 """__str__(OptimizerState self) -> std::string"""
3430 return _IMP_kernel.OptimizerState___str__(self)
3433 """__repr__(OptimizerState self) -> std::string"""
3434 return _IMP_kernel.OptimizerState___repr__(self)
3437 return _object_cast_to_OptimizerState(o)
3438 get_from = staticmethod(get_from)
3440 def get_type_name(self):
3441 return self.__class__.__name__
3442 def do_show(self, out):
3444 def get_version_info(self):
3445 if"IMP::kernel" ==
"IMP":
3446 return VersionInfo(
"python",
"0")
3448 return IMP.VersionInfo(
"python",
"0")
3450 return _object_cast_to_OptimizerState(o)
3451 get_from = staticmethod(get_from)
3453 def __disown__(self):
3455 _IMP_kernel.disown_OptimizerState(self)
3456 return weakref_proxy(self)
3457 def do_destroy(self):
3458 """do_destroy(OptimizerState self)"""
3459 return _IMP_kernel.OptimizerState_do_destroy(self)
3461 def handle_set_has_required_score_states(self, *args):
3462 """handle_set_has_required_score_states(OptimizerState self, bool arg0)"""
3463 return _IMP_kernel.OptimizerState_handle_set_has_required_score_states(self, *args)
3465 def do_get_interactions(self):
3466 """do_get_interactions(OptimizerState self) -> IMP::kernel::ModelObjectsTemps"""
3467 return _IMP_kernel.OptimizerState_do_get_interactions(self)
3469 OptimizerState_swigregister = _IMP_kernel.OptimizerState_swigregister
3470 OptimizerState_swigregister(OptimizerState)
3473 """Proxy of C++ IMP::kernel::Refiner class"""
3474 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3475 def __init__(self, name="Refiner %1%", is_by_ref=False):
3477 __init__(IMP::kernel::Refiner self, std::string name="Refiner %1%", bool is_by_ref=False) -> Refiner
3478 __init__(IMP::kernel::Refiner self, std::string name="Refiner %1%") -> Refiner
3479 __init__(IMP::kernel::Refiner self) -> Refiner
3481 if self.__class__ == Refiner:
3485 this = _IMP_kernel.new_Refiner(_self, name, is_by_ref)
3486 try: self.this.append(this)
3487 except: self.this = this
3488 if self.__class__ != Refiner:
3490 IMP.base._director_objects.register(self)
3494 def get_can_refine(self, *args):
3495 """get_can_refine(Refiner self, Particle arg0) -> bool"""
3496 return _IMP_kernel.Refiner_get_can_refine(self, *args)
3498 def get_refined_indexes(self, *args):
3499 """get_refined_indexes(Refiner self, Model m, IMP::kernel::ParticleIndex pi) -> IMP::kernel::ParticleIndexes"""
3500 return _IMP_kernel.Refiner_get_refined_indexes(self, *args)
3502 def get_refined_indexes_by_ref(self, *args):
3503 """get_refined_indexes_by_ref(Refiner self, Model m, IMP::kernel::ParticleIndex pi) -> IMP::kernel::ParticleIndexes const &"""
3504 return _IMP_kernel.Refiner_get_refined_indexes_by_ref(self, *args)
3506 def get_is_by_ref_supported(self):
3507 """get_is_by_ref_supported(Refiner self) -> bool"""
3508 return _IMP_kernel.Refiner_get_is_by_ref_supported(self)
3510 def get_refined(self, *args):
3512 get_refined(Refiner self, Particle a) -> IMP::kernel::ParticlesTemp const
3513 get_refined(Refiner self, Particle a, unsigned int i) -> Particle
3515 return _IMP_kernel.Refiner_get_refined(self, *args)
3517 def get_number_of_refined(self, *args):
3518 """get_number_of_refined(Refiner self, Particle a) -> unsigned int"""
3519 return _IMP_kernel.Refiner_get_number_of_refined(self, *args)
3522 """__str__(Refiner self) -> std::string"""
3523 return _IMP_kernel.Refiner___str__(self)
3526 """__repr__(Refiner self) -> std::string"""
3527 return _IMP_kernel.Refiner___repr__(self)
3530 return _object_cast_to_Refiner(o)
3531 get_from = staticmethod(get_from)
3533 def get_type_name(self):
3534 return self.__class__.__name__
3535 def do_show(self, out):
3537 def get_version_info(self):
3538 if"IMP::kernel" ==
"IMP":
3539 return VersionInfo(
"python",
"0")
3541 return IMP.VersionInfo(
"python",
"0")
3543 return _object_cast_to_Refiner(o)
3544 get_from = staticmethod(get_from)
3546 __swig_destroy__ = _IMP_kernel.delete_Refiner
3547 __del__ =
lambda self :
None;
3548 def __disown__(self):
3550 _IMP_kernel.disown_Refiner(self)
3551 return weakref_proxy(self)
3552 def do_get_inputs(self, *args):
3553 """do_get_inputs(Refiner self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
3554 return _IMP_kernel.Refiner_do_get_inputs(self, *args)
3556 def do_destroy(self):
3557 """do_destroy(Refiner self)"""
3558 return _IMP_kernel.Refiner_do_destroy(self)
3560 Refiner_swigregister = _IMP_kernel.Refiner_swigregister
3561 Refiner_swigregister(Refiner)
3564 """Proxy of C++ IMP::kernel::Optimizer class"""
3565 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3566 def set_is_optimizing_states(self, *args):
3567 """set_is_optimizing_states(Optimizer self, bool tf)"""
3568 return _IMP_kernel.Optimizer_set_is_optimizing_states(self, *args)
3570 def get_optimizer_state_inputs(self):
3571 """get_optimizer_state_inputs(Optimizer self) -> IMP::kernel::ModelObjectsTemp"""
3572 return _IMP_kernel.Optimizer_get_optimizer_state_inputs(self)
3574 def do_get_inputs(self):
3575 """do_get_inputs(Optimizer self) -> IMP::kernel::ModelObjectsTemp"""
3576 return _IMP_kernel.Optimizer_do_get_inputs(self)
3578 def do_get_outputs(self):
3579 """do_get_outputs(Optimizer self) -> IMP::kernel::ModelObjectsTemp"""
3580 return _IMP_kernel.Optimizer_do_get_outputs(self)
3582 def __init__(self, *args):
3584 __init__(IMP::kernel::Optimizer self, Model m, std::string name="Optimizer %1%") -> Optimizer
3585 __init__(IMP::kernel::Optimizer self, Model m) -> Optimizer
3587 if self.__class__ == Optimizer:
3591 this = _IMP_kernel.new_Optimizer(_self, *args)
3592 try: self.this.append(this)
3593 except: self.this = this
3594 if self.__class__ != Optimizer:
3596 IMP.base._director_objects.register(self)
3600 def optimize(self, *args):
3601 """optimize(Optimizer self, unsigned int max_steps) -> double"""
3602 return _IMP_kernel.Optimizer_optimize(self, *args)
3604 def set_stop_on_good_score(self, *args):
3605 """set_stop_on_good_score(Optimizer self, bool tf)"""
3606 return _IMP_kernel.Optimizer_set_stop_on_good_score(self, *args)
3608 def get_stop_on_good_score(self):
3609 """get_stop_on_good_score(Optimizer self) -> bool"""
3610 return _IMP_kernel.Optimizer_get_stop_on_good_score(self)
3612 def get_last_score(self):
3613 """get_last_score(Optimizer self) -> double"""
3614 return _IMP_kernel.Optimizer_get_last_score(self)
3616 def get_scoring_function(self):
3617 """get_scoring_function(Optimizer self) -> ScoringFunction"""
3618 return _IMP_kernel.Optimizer_get_scoring_function(self)
3620 def remove_optimizer_state(self, *args):
3621 """remove_optimizer_state(Optimizer self, OptimizerState d)"""
3622 return _IMP_kernel.Optimizer_remove_optimizer_state(self, *args)
3624 def remove_optimizer_states(self, *args):
3625 """remove_optimizer_states(Optimizer self, IMP::kernel::OptimizerStates const & d)"""
3626 return _IMP_kernel.Optimizer_remove_optimizer_states(self, *args)
3628 def set_optimizer_states(self, *args):
3629 """set_optimizer_states(Optimizer self, IMP::kernel::OptimizerStates const & ps)"""
3630 return _IMP_kernel.Optimizer_set_optimizer_states(self, *args)
3632 def set_optimizer_states_order(self, *args):
3633 """set_optimizer_states_order(Optimizer self, IMP::kernel::OptimizerStates const & objs)"""
3634 return _IMP_kernel.Optimizer_set_optimizer_states_order(self, *args)
3636 def add_optimizer_state(self, *args):
3637 """add_optimizer_state(Optimizer self, OptimizerState obj) -> unsigned int"""
3638 return _IMP_kernel.Optimizer_add_optimizer_state(self, *args)
3640 def add_optimizer_states(self, *args):
3641 """add_optimizer_states(Optimizer self, IMP::kernel::OptimizerStates const & objs)"""
3642 return _IMP_kernel.Optimizer_add_optimizer_states(self, *args)
3644 def clear_optimizer_states(self):
3645 """clear_optimizer_states(Optimizer self)"""
3646 return _IMP_kernel.Optimizer_clear_optimizer_states(self)
3648 def get_number_of_optimizer_states(self):
3649 """get_number_of_optimizer_states(Optimizer self) -> unsigned int"""
3650 return _IMP_kernel.Optimizer_get_number_of_optimizer_states(self)
3652 def get_has_optimizer_states(self):
3653 """get_has_optimizer_states(Optimizer self) -> bool"""
3654 return _IMP_kernel.Optimizer_get_has_optimizer_states(self)
3656 def get_optimizer_state(self, *args):
3657 """get_optimizer_state(Optimizer self, unsigned int i) -> OptimizerState"""
3658 return _IMP_kernel.Optimizer_get_optimizer_state(self, *args)
3660 def get_optimizer_states(self):
3661 """get_optimizer_states(Optimizer self) -> IMP::kernel::OptimizerStates"""
3662 return _IMP_kernel.Optimizer_get_optimizer_states(self)
3664 def reserve_optimizer_states(self, *args):
3665 """reserve_optimizer_states(Optimizer self, unsigned int sz)"""
3666 return _IMP_kernel.Optimizer_reserve_optimizer_states(self, *args)
3668 def set_scoring_function(self, *args):
3669 """set_scoring_function(Optimizer self, _ScoringFunctionAdaptor sf)"""
3670 return _IMP_kernel.Optimizer_set_scoring_function(self, *args)
3672 __swig_destroy__ = _IMP_kernel.delete_Optimizer
3674 """__del__(IMP::kernel::Optimizer self)"""
3676 IMP.base._director_objects.cleanup()
3681 def do_optimize(self, *args):
3682 """do_optimize(Optimizer self, unsigned int ns) -> double"""
3683 return _IMP_kernel.Optimizer_do_optimize(self, *args)
3685 def update_states(self):
3686 """update_states(Optimizer self)"""
3687 return _IMP_kernel.Optimizer_update_states(self)
3690 """__str__(Optimizer self) -> std::string"""
3691 return _IMP_kernel.Optimizer___str__(self)
3694 """__repr__(Optimizer self) -> std::string"""
3695 return _IMP_kernel.Optimizer___repr__(self)
3698 return _object_cast_to_Optimizer(o)
3699 get_from = staticmethod(get_from)
3701 def get_type_name(self):
3702 return self.__class__.__name__
3703 def do_show(self, out):
3705 def get_version_info(self):
3706 if"IMP::kernel" ==
"IMP":
3707 return VersionInfo(
"python",
"0")
3709 return IMP.VersionInfo(
"python",
"0")
3711 return _object_cast_to_Optimizer(o)
3712 get_from = staticmethod(get_from)
3714 def __disown__(self):
3716 _IMP_kernel.disown_Optimizer(self)
3717 return weakref_proxy(self)
3718 def do_destroy(self):
3719 """do_destroy(Optimizer self)"""
3720 return _IMP_kernel.Optimizer_do_destroy(self)
3722 def handle_set_has_required_score_states(self, *args):
3723 """handle_set_has_required_score_states(Optimizer self, bool arg0)"""
3724 return _IMP_kernel.Optimizer_handle_set_has_required_score_states(self, *args)
3726 def do_get_interactions(self):
3727 """do_get_interactions(Optimizer self) -> IMP::kernel::ModelObjectsTemps"""
3728 return _IMP_kernel.Optimizer_do_get_interactions(self)
3730 Optimizer_swigregister = _IMP_kernel.Optimizer_swigregister
3731 Optimizer_swigregister(Optimizer)
3734 """Proxy of C++ IMP::kernel::AttributeOptimizer class"""
3735 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3736 def __init__(self, *args):
3738 __init__(IMP::kernel::AttributeOptimizer self, Model m, std::string name="Optimizer %1%") -> AttributeOptimizer
3739 __init__(IMP::kernel::AttributeOptimizer self, Model m) -> AttributeOptimizer
3741 if self.__class__ == AttributeOptimizer:
3745 this = _IMP_kernel.new_AttributeOptimizer(_self, *args)
3746 try: self.this.append(this)
3747 except: self.this = this
3748 if self.__class__ != AttributeOptimizer:
3750 IMP.base._director_objects.register(self)
3754 def get_optimized_attributes(self):
3755 """get_optimized_attributes(AttributeOptimizer self) -> IMP::kernel::FloatIndexes"""
3756 return _IMP_kernel.AttributeOptimizer_get_optimized_attributes(self)
3758 def set_value(self, *args):
3759 """set_value(AttributeOptimizer self, FloatIndex fi, double v)"""
3760 return _IMP_kernel.AttributeOptimizer_set_value(self, *args)
3762 def get_value(self, *args):
3763 """get_value(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
3764 return _IMP_kernel.AttributeOptimizer_get_value(self, *args)
3766 def get_derivative(self, *args):
3767 """get_derivative(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
3768 return _IMP_kernel.AttributeOptimizer_get_derivative(self, *args)
3770 def get_width(self, *args):
3771 """get_width(AttributeOptimizer self, FloatKey k) -> double"""
3772 return _IMP_kernel.AttributeOptimizer_get_width(self, *args)
3774 def set_scaled_value(self, *args):
3775 """set_scaled_value(AttributeOptimizer self, FloatIndex fi, IMP::Float v)"""
3776 return _IMP_kernel.AttributeOptimizer_set_scaled_value(self, *args)
3778 def get_scaled_value(self, *args):
3779 """get_scaled_value(AttributeOptimizer self, FloatIndex fi) -> double"""
3780 return _IMP_kernel.AttributeOptimizer_get_scaled_value(self, *args)
3782 def get_scaled_derivative(self, *args):
3783 """get_scaled_derivative(AttributeOptimizer self, FloatIndex fi) -> double"""
3784 return _IMP_kernel.AttributeOptimizer_get_scaled_derivative(self, *args)
3786 def clear_range_cache(self):
3787 """clear_range_cache(AttributeOptimizer self)"""
3788 return _IMP_kernel.AttributeOptimizer_clear_range_cache(self)
3791 """__str__(AttributeOptimizer self) -> std::string"""
3792 return _IMP_kernel.AttributeOptimizer___str__(self)
3795 """__repr__(AttributeOptimizer self) -> std::string"""
3796 return _IMP_kernel.AttributeOptimizer___repr__(self)
3799 return _object_cast_to_AttributeOptimizer(o)
3800 get_from = staticmethod(get_from)
3802 def get_type_name(self):
3803 return self.__class__.__name__
3804 def do_show(self, out):
3806 def get_version_info(self):
3807 if"IMP::kernel" ==
"IMP":
3808 return VersionInfo(
"python",
"0")
3810 return IMP.VersionInfo(
"python",
"0")
3812 return _object_cast_to_AttributeOptimizer(o)
3813 get_from = staticmethod(get_from)
3815 __swig_destroy__ = _IMP_kernel.delete_AttributeOptimizer
3816 __del__ =
lambda self :
None;
3817 def __disown__(self):
3819 _IMP_kernel.disown_AttributeOptimizer(self)
3820 return weakref_proxy(self)
3821 def do_destroy(self):
3822 """do_destroy(AttributeOptimizer self)"""
3823 return _IMP_kernel.AttributeOptimizer_do_destroy(self)
3825 def handle_set_has_required_score_states(self, *args):
3826 """handle_set_has_required_score_states(AttributeOptimizer self, bool arg0)"""
3827 return _IMP_kernel.AttributeOptimizer_handle_set_has_required_score_states(self, *args)
3829 def do_get_inputs(self):
3830 """do_get_inputs(AttributeOptimizer self) -> IMP::kernel::ModelObjectsTemp"""
3831 return _IMP_kernel.AttributeOptimizer_do_get_inputs(self)
3833 def do_get_outputs(self):
3834 """do_get_outputs(AttributeOptimizer self) -> IMP::kernel::ModelObjectsTemp"""
3835 return _IMP_kernel.AttributeOptimizer_do_get_outputs(self)
3837 def do_get_interactions(self):
3838 """do_get_interactions(AttributeOptimizer self) -> IMP::kernel::ModelObjectsTemps"""
3839 return _IMP_kernel.AttributeOptimizer_do_get_interactions(self)
3841 def do_optimize(self, *args):
3842 """do_optimize(AttributeOptimizer self, unsigned int ns) -> double"""
3843 return _IMP_kernel.AttributeOptimizer_do_optimize(self, *args)
3845 AttributeOptimizer_swigregister = _IMP_kernel.AttributeOptimizer_swigregister
3846 AttributeOptimizer_swigregister(AttributeOptimizer)
3849 """Proxy of C++ IMP::kernel::ConfigurationSet class"""
3850 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3851 def __init__(self, *args):
3853 __init__(IMP::kernel::ConfigurationSet self, Model m, std::string name="ConfigurationSet %1%") -> ConfigurationSet
3854 __init__(IMP::kernel::ConfigurationSet self, Model m) -> ConfigurationSet
3856 this = _IMP_kernel.new_ConfigurationSet(*args)
3857 try: self.this.append(this)
3858 except: self.this = this
3859 def save_configuration(self):
3860 """save_configuration(ConfigurationSet self)"""
3861 return _IMP_kernel.ConfigurationSet_save_configuration(self)
3863 def get_number_of_configurations(self):
3864 """get_number_of_configurations(ConfigurationSet self) -> unsigned int"""
3865 return _IMP_kernel.ConfigurationSet_get_number_of_configurations(self)
3867 def load_configuration(self, *args):
3868 """load_configuration(ConfigurationSet self, int i)"""
3869 return _IMP_kernel.ConfigurationSet_load_configuration(self, *args)
3871 def remove_configuration(self, *args):
3872 """remove_configuration(ConfigurationSet self, unsigned int i)"""
3873 return _IMP_kernel.ConfigurationSet_remove_configuration(self, *args)
3875 def get_model(self):
3876 """get_model(ConfigurationSet self) -> Model"""
3877 return _IMP_kernel.ConfigurationSet_get_model(self)
3879 def get_version_info(self):
3880 """get_version_info(ConfigurationSet self) -> VersionInfo"""
3881 return _IMP_kernel.ConfigurationSet_get_version_info(self)
3884 """__str__(ConfigurationSet self) -> std::string"""
3885 return _IMP_kernel.ConfigurationSet___str__(self)
3888 """__repr__(ConfigurationSet self) -> std::string"""
3889 return _IMP_kernel.ConfigurationSet___repr__(self)
3892 return _object_cast_to_ConfigurationSet(o)
3893 get_from = staticmethod(get_from)
3895 ConfigurationSet_swigregister = _IMP_kernel.ConfigurationSet_swigregister
3896 ConfigurationSet_swigregister(ConfigurationSet)
3899 """Proxy of C++ IMP::kernel::SaveToConfigurationSetOptimizerState class"""
3900 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3901 def __init__(self, *args):
3902 """__init__(IMP::kernel::SaveToConfigurationSetOptimizerState self, ConfigurationSet cs) -> SaveToConfigurationSetOptimizerState"""
3903 this = _IMP_kernel.new_SaveToConfigurationSetOptimizerState(*args)
3904 try: self.this.append(this)
3905 except: self.this = this
3906 def get_version_info(self):
3907 """get_version_info(SaveToConfigurationSetOptimizerState self) -> VersionInfo"""
3908 return _IMP_kernel.SaveToConfigurationSetOptimizerState_get_version_info(self)
3911 """__str__(SaveToConfigurationSetOptimizerState self) -> std::string"""
3912 return _IMP_kernel.SaveToConfigurationSetOptimizerState___str__(self)
3915 """__repr__(SaveToConfigurationSetOptimizerState self) -> std::string"""
3916 return _IMP_kernel.SaveToConfigurationSetOptimizerState___repr__(self)
3919 return _object_cast_to_SaveToConfigurationSetOptimizerState(o)
3920 get_from = staticmethod(get_from)
3922 SaveToConfigurationSetOptimizerState_swigregister = _IMP_kernel.SaveToConfigurationSetOptimizerState_swigregister
3923 SaveToConfigurationSetOptimizerState_swigregister(SaveToConfigurationSetOptimizerState)
3926 """Proxy of C++ IMP::kernel::Configuration class"""
3927 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3928 def __init__(self, *args):
3930 __init__(IMP::kernel::Configuration self, Model m, std::string name="Configuration %1%") -> Configuration
3931 __init__(IMP::kernel::Configuration self, Model m) -> Configuration
3932 __init__(IMP::kernel::Configuration self, Model m, Configuration base, std::string name="Configuration %1%") -> Configuration
3933 __init__(IMP::kernel::Configuration self, Model m, Configuration base) -> Configuration
3935 this = _IMP_kernel.new_Configuration(*args)
3936 try: self.this.append(this)
3937 except: self.this = this
3938 def load_configuration(self):
3939 """load_configuration(Configuration self)"""
3940 return _IMP_kernel.Configuration_load_configuration(self)
3942 def swap_configuration(self):
3943 """swap_configuration(Configuration self)"""
3944 return _IMP_kernel.Configuration_swap_configuration(self)
3946 def get_version_info(self):
3947 """get_version_info(Configuration self) -> VersionInfo"""
3948 return _IMP_kernel.Configuration_get_version_info(self)
3951 """__str__(Configuration self) -> std::string"""
3952 return _IMP_kernel.Configuration___str__(self)
3955 """__repr__(Configuration self) -> std::string"""
3956 return _IMP_kernel.Configuration___repr__(self)
3959 return _object_cast_to_Configuration(o)
3960 get_from = staticmethod(get_from)
3962 Configuration_swigregister = _IMP_kernel.Configuration_swigregister
3963 Configuration_swigregister(Configuration)
3966 """Proxy of C++ IMP::kernel::Sampler class"""
3967 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3968 def __init__(self, *args):
3970 __init__(IMP::kernel::Sampler self, Model m, std::string name="Sampler %1%") -> Sampler
3971 __init__(IMP::kernel::Sampler self, Model m) -> Sampler
3973 if self.__class__ == Sampler:
3977 this = _IMP_kernel.new_Sampler(_self, *args)
3978 try: self.this.append(this)
3979 except: self.this = this
3980 if self.__class__ != Sampler:
3982 IMP.base._director_objects.register(self)
3986 def create_sample(self):
3987 """create_sample(Sampler self) -> ConfigurationSet"""
3988 return _IMP_kernel.Sampler_create_sample(self)
3990 def get_scoring_function(self):
3991 """get_scoring_function(Sampler self) -> ScoringFunction"""
3992 return _IMP_kernel.Sampler_get_scoring_function(self)
3994 def set_scoring_function(self, *args):
3995 """set_scoring_function(Sampler self, _ScoringFunctionAdaptor sf)"""
3996 return _IMP_kernel.Sampler_set_scoring_function(self, *args)
3998 def get_model(self):
3999 """get_model(Sampler self) -> Model"""
4000 return _IMP_kernel.Sampler_get_model(self)
4002 def do_sample(self):
4003 """do_sample(Sampler self) -> ConfigurationSet"""
4004 return _IMP_kernel.Sampler_do_sample(self)
4006 __swig_destroy__ = _IMP_kernel.delete_Sampler
4007 __del__ =
lambda self :
None;
4009 """__str__(Sampler self) -> std::string"""
4010 return _IMP_kernel.Sampler___str__(self)
4013 """__repr__(Sampler self) -> std::string"""
4014 return _IMP_kernel.Sampler___repr__(self)
4017 return _object_cast_to_Sampler(o)
4018 get_from = staticmethod(get_from)
4020 def get_type_name(self):
4021 return self.__class__.__name__
4022 def do_show(self, out):
4024 def get_version_info(self):
4025 if"IMP::kernel" ==
"IMP":
4026 return VersionInfo(
"python",
"0")
4028 return IMP.VersionInfo(
"python",
"0")
4030 return _object_cast_to_Sampler(o)
4031 get_from = staticmethod(get_from)
4033 def __disown__(self):
4035 _IMP_kernel.disown_Sampler(self)
4036 return weakref_proxy(self)
4037 def do_destroy(self):
4038 """do_destroy(Sampler self)"""
4039 return _IMP_kernel.Sampler_do_destroy(self)
4041 Sampler_swigregister = _IMP_kernel.Sampler_swigregister
4042 Sampler_swigregister(Sampler)
4045 """Proxy of C++ IMP::kernel::PairModifier class"""
4046 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4047 def __init__(self, name="PairModifier %1%"):
4049 __init__(IMP::kernel::PairModifier self, std::string name="PairModifier %1%") -> PairModifier
4050 __init__(IMP::kernel::PairModifier self) -> PairModifier
4052 if self.__class__ == PairModifier:
4056 this = _IMP_kernel.new_PairModifier(_self, name)
4057 try: self.this.append(this)
4058 except: self.this = this
4059 if self.__class__ != PairModifier:
4061 IMP.base._director_objects.register(self)
4065 def apply(self, *args):
4066 """apply(PairModifier self, IMP::kernel::ParticlePair const & vt)"""
4067 return _IMP_kernel.PairModifier_apply(self, *args)
4069 def apply_index(self, *args):
4070 """apply_index(PairModifier self, Model m, IMP::kernel::ParticleIndexPair const & v)"""
4071 return _IMP_kernel.PairModifier_apply_index(self, *args)
4073 def apply_indexes(self, *args):
4074 """apply_indexes(PairModifier self, Model m, IMP::kernel::ParticleIndexPairs const & o, unsigned int lower_bound, unsigned int upper_bound)"""
4075 return _IMP_kernel.PairModifier_apply_indexes(self, *args)
4078 """__str__(PairModifier self) -> std::string"""
4079 return _IMP_kernel.PairModifier___str__(self)
4082 """__repr__(PairModifier self) -> std::string"""
4083 return _IMP_kernel.PairModifier___repr__(self)
4086 return _object_cast_to_PairModifier(o)
4087 get_from = staticmethod(get_from)
4089 def get_type_name(self):
4090 return self.__class__.__name__
4091 def do_show(self, out):
4093 def get_version_info(self):
4094 if"IMP::kernel" ==
"IMP":
4095 return VersionInfo(
"python",
"0")
4097 return IMP.VersionInfo(
"python",
"0")
4099 return _object_cast_to_PairModifier(o)
4100 get_from = staticmethod(get_from)
4102 __swig_destroy__ = _IMP_kernel.delete_PairModifier
4103 __del__ =
lambda self :
None;
4104 def __disown__(self):
4106 _IMP_kernel.disown_PairModifier(self)
4107 return weakref_proxy(self)
4108 def do_get_inputs(self, *args):
4109 """do_get_inputs(PairModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4110 return _IMP_kernel.PairModifier_do_get_inputs(self, *args)
4112 def do_get_outputs(self, *args):
4113 """do_get_outputs(PairModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4114 return _IMP_kernel.PairModifier_do_get_outputs(self, *args)
4116 def do_destroy(self):
4117 """do_destroy(PairModifier self)"""
4118 return _IMP_kernel.PairModifier_do_destroy(self)
4120 PairModifier_swigregister = _IMP_kernel.PairModifier_swigregister
4121 PairModifier_swigregister(PairModifier)
4124 """Proxy of C++ IMP::kernel::PairScore class"""
4125 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4126 def __init__(self, name="PairScore %1%"):
4128 __init__(IMP::kernel::PairScore self, std::string name="PairScore %1%") -> PairScore
4129 __init__(IMP::kernel::PairScore self) -> PairScore
4131 if self.__class__ == PairScore:
4135 this = _IMP_kernel.new_PairScore(_self, name)
4136 try: self.this.append(this)
4137 except: self.this = this
4138 if self.__class__ != PairScore:
4140 IMP.base._director_objects.register(self)
4144 def evaluate(self, *args):
4145 """evaluate(PairScore self, IMP::kernel::ParticlePair const & vt, DerivativeAccumulator da) -> double"""
4146 return _IMP_kernel.PairScore_evaluate(self, *args)
4148 def evaluate_index(self, *args):
4149 """evaluate_index(PairScore self, Model m, IMP::kernel::ParticleIndexPair const & vt, DerivativeAccumulator da) -> double"""
4150 return _IMP_kernel.PairScore_evaluate_index(self, *args)
4152 def evaluate_indexes(self, *args):
4154 evaluate_indexes(PairScore self, Model m, IMP::kernel::ParticleIndexPairs const & o, DerivativeAccumulator da, unsigned int lower_bound,
4155 unsigned int upper_bound) -> double
4157 return _IMP_kernel.PairScore_evaluate_indexes(self, *args)
4159 def evaluate_if_good_index(self, *args):
4160 """evaluate_if_good_index(PairScore self, Model m, IMP::kernel::ParticleIndexPair const & vt, DerivativeAccumulator da, double max) -> double"""
4161 return _IMP_kernel.PairScore_evaluate_if_good_index(self, *args)
4163 def evaluate_if_good_indexes(self, *args):
4165 evaluate_if_good_indexes(PairScore self, Model m, IMP::kernel::ParticleIndexPairs const & o, DerivativeAccumulator da, double max,
4166 unsigned int lower_bound, unsigned int upper_bound) -> double
4168 return _IMP_kernel.PairScore_evaluate_if_good_indexes(self, *args)
4170 def create_current_decomposition(self, *args):
4171 """create_current_decomposition(PairScore self, Model m, IMP::kernel::ParticleIndexPair const & vt) -> IMP::kernel::Restraints"""
4172 return _IMP_kernel.PairScore_create_current_decomposition(self, *args)
4174 def do_create_current_decomposition(self, *args):
4175 """do_create_current_decomposition(PairScore self, Model m, IMP::kernel::ParticleIndexPair const & vt) -> IMP::kernel::Restraints"""
4176 return _IMP_kernel.PairScore_do_create_current_decomposition(self, *args)
4178 __swig_destroy__ = _IMP_kernel.delete_PairScore
4179 __del__ =
lambda self :
None;
4181 """__str__(PairScore self) -> std::string"""
4182 return _IMP_kernel.PairScore___str__(self)
4185 """__repr__(PairScore self) -> std::string"""
4186 return _IMP_kernel.PairScore___repr__(self)
4189 return _object_cast_to_PairScore(o)
4190 get_from = staticmethod(get_from)
4192 def get_type_name(self):
4193 return self.__class__.__name__
4194 def do_show(self, out):
4196 def get_version_info(self):
4197 if"IMP::kernel" ==
"IMP":
4198 return VersionInfo(
"python",
"0")
4200 return IMP.VersionInfo(
"python",
"0")
4202 return _object_cast_to_PairScore(o)
4203 get_from = staticmethod(get_from)
4205 def __disown__(self):
4207 _IMP_kernel.disown_PairScore(self)
4208 return weakref_proxy(self)
4209 def do_get_inputs(self, *args):
4210 """do_get_inputs(PairScore self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4211 return _IMP_kernel.PairScore_do_get_inputs(self, *args)
4213 def do_destroy(self):
4214 """do_destroy(PairScore self)"""
4215 return _IMP_kernel.PairScore_do_destroy(self)
4217 PairScore_swigregister = _IMP_kernel.PairScore_swigregister
4218 PairScore_swigregister(PairScore)
4221 """Proxy of C++ IMP::kernel::PairPredicate class"""
4222 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4223 def __init__(self, name="PairPredicate %1%"):
4225 __init__(IMP::kernel::PairPredicate self, std::string name="PairPredicate %1%") -> PairPredicate
4226 __init__(IMP::kernel::PairPredicate self) -> PairPredicate
4228 if self.__class__ == PairPredicate:
4232 this = _IMP_kernel.new_PairPredicate(_self, name)
4233 try: self.this.append(this)
4234 except: self.this = this
4235 if self.__class__ != PairPredicate:
4237 IMP.base._director_objects.register(self)
4241 def get_value(self, *args):
4243 get_value(PairPredicate self, IMP::kernel::ParticlePair const & vt) -> int
4244 get_value(PairPredicate self, IMP::kernel::ParticlePairsTemp const & o) -> IMP::Ints
4246 return _IMP_kernel.PairPredicate_get_value(self, *args)
4248 def __call__(self, *args):
4249 """__call__(PairPredicate self, Model m, IMP::kernel::ParticleIndexPair const & vt) -> int"""
4250 return _IMP_kernel.PairPredicate___call__(self, *args)
4252 def get_value_index(self, *args):
4254 get_value_index(PairPredicate self, Model m, IMP::kernel::ParticleIndexPair const & vt) -> int
4255 get_value_index(PairPredicate self, Model m, IMP::kernel::ParticleIndexPairs const & o) -> IMP::Ints
4257 return _IMP_kernel.PairPredicate_get_value_index(self, *args)
4259 __swig_destroy__ = _IMP_kernel.delete_PairPredicate
4260 __del__ =
lambda self :
None;
4262 """__str__(PairPredicate self) -> std::string"""
4263 return _IMP_kernel.PairPredicate___str__(self)
4266 """__repr__(PairPredicate self) -> std::string"""
4267 return _IMP_kernel.PairPredicate___repr__(self)
4270 return _object_cast_to_PairPredicate(o)
4271 get_from = staticmethod(get_from)
4273 def get_type_name(self):
4274 return self.__class__.__name__
4275 def do_show(self, out):
4277 def get_version_info(self):
4278 if"IMP::kernel" ==
"IMP":
4279 return VersionInfo(
"python",
"0")
4281 return IMP.VersionInfo(
"python",
"0")
4283 return _object_cast_to_PairPredicate(o)
4284 get_from = staticmethod(get_from)
4286 def __disown__(self):
4288 _IMP_kernel.disown_PairPredicate(self)
4289 return weakref_proxy(self)
4290 def do_get_inputs(self, *args):
4291 """do_get_inputs(PairPredicate self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4292 return _IMP_kernel.PairPredicate_do_get_inputs(self, *args)
4294 def do_destroy(self):
4295 """do_destroy(PairPredicate self)"""
4296 return _IMP_kernel.PairPredicate_do_destroy(self)
4298 PairPredicate_swigregister = _IMP_kernel.PairPredicate_swigregister
4299 PairPredicate_swigregister(PairPredicate)
4302 """Proxy of C++ IMP::kernel::PairContainer class"""
4303 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4304 def apply_generic(self, *args):
4305 """apply_generic(PairContainer self, PairModifier m)"""
4306 return _IMP_kernel.PairContainer_apply_generic(self, *args)
4308 def apply(self, *args):
4309 """apply(PairContainer self, PairModifier sm)"""
4310 return _IMP_kernel.PairContainer_apply(self, *args)
4312 def get_range_indexes(self):
4313 """get_range_indexes(PairContainer self) -> IMP::kernel::ParticleIndexPairs"""
4314 return _IMP_kernel.PairContainer_get_range_indexes(self)
4316 def get_contents(self):
4317 """get_contents(PairContainer self) -> IMP::kernel::ParticleIndexPairs const &"""
4318 return _IMP_kernel.PairContainer_get_contents(self)
4321 """get_indexes(PairContainer self) -> IMP::kernel::ParticleIndexPairs"""
4322 return _IMP_kernel.PairContainer_get_indexes(self)
4324 def get(self, *args):
4326 get(PairContainer self) -> IMP::kernel::ParticlePairsTemp
4327 get(PairContainer self, unsigned int i) -> IMP::kernel::ParticlePair
4329 return _IMP_kernel.PairContainer_get(self, *args)
4331 def get_number(self):
4332 """get_number(PairContainer self) -> unsigned int"""
4333 return _IMP_kernel.PairContainer_get_number(self)
4335 def get_particle_pairs(self):
4336 """get_particle_pairs(PairContainer self) -> IMP::kernel::ParticlePairsTemp"""
4337 return _IMP_kernel.PairContainer_get_particle_pairs(self)
4339 def get_number_of_particle_pairs(self):
4340 """get_number_of_particle_pairs(PairContainer self) -> unsigned int"""
4341 return _IMP_kernel.PairContainer_get_number_of_particle_pairs(self)
4343 def get_particle_pair(self, *args):
4344 """get_particle_pair(PairContainer self, unsigned int i) -> IMP::kernel::ParticlePair"""
4345 return _IMP_kernel.PairContainer_get_particle_pair(self, *args)
4347 def __init__(self, *args):
4349 __init__(IMP::kernel::PairContainer self, Model m, std::string name="PairContainer %1%") -> PairContainer
4350 __init__(IMP::kernel::PairContainer self, Model m) -> PairContainer
4352 if self.__class__ == PairContainer:
4356 this = _IMP_kernel.new_PairContainer(_self, *args)
4357 try: self.this.append(this)
4358 except: self.this = this
4359 if self.__class__ != PairContainer:
4361 IMP.base._director_objects.register(self)
4365 def do_apply(self, *args):
4366 """do_apply(PairContainer self, PairModifier sm)"""
4367 return _IMP_kernel.PairContainer_do_apply(self, *args)
4369 def do_get_provides_access(self):
4370 """do_get_provides_access(PairContainer self) -> bool"""
4371 return _IMP_kernel.PairContainer_do_get_provides_access(self)
4373 __swig_destroy__ = _IMP_kernel.delete_PairContainer
4374 __del__ =
lambda self :
None;
4376 """__str__(PairContainer self) -> std::string"""
4377 return _IMP_kernel.PairContainer___str__(self)
4380 """__repr__(PairContainer self) -> std::string"""
4381 return _IMP_kernel.PairContainer___repr__(self)
4384 return _object_cast_to_PairContainer(o)
4385 get_from = staticmethod(get_from)
4387 def get_type_name(self):
4388 return self.__class__.__name__
4389 def do_show(self, out):
4391 def get_version_info(self):
4392 if"IMP::kernel" ==
"IMP":
4393 return VersionInfo(
"python",
"0")
4395 return IMP.VersionInfo(
"python",
"0")
4397 return _object_cast_to_PairContainer(o)
4398 get_from = staticmethod(get_from)
4400 def __disown__(self):
4402 _IMP_kernel.disown_PairContainer(self)
4403 return weakref_proxy(self)
4404 def do_destroy(self):
4405 """do_destroy(PairContainer self)"""
4406 return _IMP_kernel.PairContainer_do_destroy(self)
4408 def handle_set_has_required_score_states(self, *args):
4409 """handle_set_has_required_score_states(PairContainer self, bool arg0)"""
4410 return _IMP_kernel.PairContainer_handle_set_has_required_score_states(self, *args)
4412 def do_get_inputs(self):
4413 """do_get_inputs(PairContainer self) -> IMP::kernel::ModelObjectsTemp"""
4414 return _IMP_kernel.PairContainer_do_get_inputs(self)
4416 def do_get_interactions(self):
4417 """do_get_interactions(PairContainer self) -> IMP::kernel::ModelObjectsTemps"""
4418 return _IMP_kernel.PairContainer_do_get_interactions(self)
4420 def do_get_contents_hash(self):
4421 """do_get_contents_hash(PairContainer self) -> std::size_t"""
4422 return _IMP_kernel.PairContainer_do_get_contents_hash(self)
4424 PairContainer_swigregister = _IMP_kernel.PairContainer_swigregister
4425 PairContainer_swigregister(PairContainer)
4427 class _PairContainerAdaptor(IMP.base._InputAdaptor):
4428 """Proxy of C++ IMP::kernel::PairContainerAdaptor class"""
4429 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4430 __repr__ = _swig_repr
4431 def __init__(self, *args):
4433 __init__(IMP::kernel::PairContainerAdaptor self) -> _PairContainerAdaptor
4434 __init__(IMP::kernel::PairContainerAdaptor self, PairContainer c) -> _PairContainerAdaptor
4435 __init__(IMP::kernel::PairContainerAdaptor self, IMP::kernel::ParticlePairsTemp const & t) -> _PairContainerAdaptor
4437 this = _IMP_kernel.new__PairContainerAdaptor(*args)
4438 try: self.this.append(this)
4439 except: self.this = this
4440 def set_name_if_default(self, *args):
4441 """set_name_if_default(_PairContainerAdaptor self, std::string name)"""
4442 return _IMP_kernel._PairContainerAdaptor_set_name_if_default(self, *args)
4444 __swig_destroy__ = _IMP_kernel.delete__PairContainerAdaptor
4445 __del__ =
lambda self :
None;
4446 _PairContainerAdaptor_swigregister = _IMP_kernel._PairContainerAdaptor_swigregister
4447 _PairContainerAdaptor_swigregister(_PairContainerAdaptor)
4450 """Proxy of C++ IMP::kernel::QuadModifier class"""
4451 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4452 def __init__(self, name="QuadModifier %1%"):
4454 __init__(IMP::kernel::QuadModifier self, std::string name="QuadModifier %1%") -> QuadModifier
4455 __init__(IMP::kernel::QuadModifier self) -> QuadModifier
4457 if self.__class__ == QuadModifier:
4461 this = _IMP_kernel.new_QuadModifier(_self, name)
4462 try: self.this.append(this)
4463 except: self.this = this
4464 if self.__class__ != QuadModifier:
4466 IMP.base._director_objects.register(self)
4470 def apply(self, *args):
4471 """apply(QuadModifier self, IMP::kernel::ParticleQuad const & vt)"""
4472 return _IMP_kernel.QuadModifier_apply(self, *args)
4474 def apply_index(self, *args):
4475 """apply_index(QuadModifier self, Model m, IMP::kernel::ParticleIndexQuad const & v)"""
4476 return _IMP_kernel.QuadModifier_apply_index(self, *args)
4478 def apply_indexes(self, *args):
4479 """apply_indexes(QuadModifier self, Model m, IMP::kernel::ParticleIndexQuads const & o, unsigned int lower_bound, unsigned int upper_bound)"""
4480 return _IMP_kernel.QuadModifier_apply_indexes(self, *args)
4483 """__str__(QuadModifier self) -> std::string"""
4484 return _IMP_kernel.QuadModifier___str__(self)
4487 """__repr__(QuadModifier self) -> std::string"""
4488 return _IMP_kernel.QuadModifier___repr__(self)
4491 return _object_cast_to_QuadModifier(o)
4492 get_from = staticmethod(get_from)
4494 def get_type_name(self):
4495 return self.__class__.__name__
4496 def do_show(self, out):
4498 def get_version_info(self):
4499 if"IMP::kernel" ==
"IMP":
4500 return VersionInfo(
"python",
"0")
4502 return IMP.VersionInfo(
"python",
"0")
4504 return _object_cast_to_QuadModifier(o)
4505 get_from = staticmethod(get_from)
4507 __swig_destroy__ = _IMP_kernel.delete_QuadModifier
4508 __del__ =
lambda self :
None;
4509 def __disown__(self):
4511 _IMP_kernel.disown_QuadModifier(self)
4512 return weakref_proxy(self)
4513 def do_get_inputs(self, *args):
4514 """do_get_inputs(QuadModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4515 return _IMP_kernel.QuadModifier_do_get_inputs(self, *args)
4517 def do_get_outputs(self, *args):
4518 """do_get_outputs(QuadModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4519 return _IMP_kernel.QuadModifier_do_get_outputs(self, *args)
4521 def do_destroy(self):
4522 """do_destroy(QuadModifier self)"""
4523 return _IMP_kernel.QuadModifier_do_destroy(self)
4525 QuadModifier_swigregister = _IMP_kernel.QuadModifier_swigregister
4526 QuadModifier_swigregister(QuadModifier)
4529 """Proxy of C++ IMP::kernel::QuadScore class"""
4530 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4531 def __init__(self, name="QuadScore %1%"):
4533 __init__(IMP::kernel::QuadScore self, std::string name="QuadScore %1%") -> QuadScore
4534 __init__(IMP::kernel::QuadScore self) -> QuadScore
4536 if self.__class__ == QuadScore:
4540 this = _IMP_kernel.new_QuadScore(_self, name)
4541 try: self.this.append(this)
4542 except: self.this = this
4543 if self.__class__ != QuadScore:
4545 IMP.base._director_objects.register(self)
4549 def evaluate(self, *args):
4550 """evaluate(QuadScore self, IMP::kernel::ParticleQuad const & vt, DerivativeAccumulator da) -> double"""
4551 return _IMP_kernel.QuadScore_evaluate(self, *args)
4553 def evaluate_index(self, *args):
4554 """evaluate_index(QuadScore self, Model m, IMP::kernel::ParticleIndexQuad const & vt, DerivativeAccumulator da) -> double"""
4555 return _IMP_kernel.QuadScore_evaluate_index(self, *args)
4557 def evaluate_indexes(self, *args):
4559 evaluate_indexes(QuadScore self, Model m, IMP::kernel::ParticleIndexQuads const & o, DerivativeAccumulator da, unsigned int lower_bound,
4560 unsigned int upper_bound) -> double
4562 return _IMP_kernel.QuadScore_evaluate_indexes(self, *args)
4564 def evaluate_if_good_index(self, *args):
4565 """evaluate_if_good_index(QuadScore self, Model m, IMP::kernel::ParticleIndexQuad const & vt, DerivativeAccumulator da, double max) -> double"""
4566 return _IMP_kernel.QuadScore_evaluate_if_good_index(self, *args)
4568 def evaluate_if_good_indexes(self, *args):
4570 evaluate_if_good_indexes(QuadScore self, Model m, IMP::kernel::ParticleIndexQuads const & o, DerivativeAccumulator da, double max,
4571 unsigned int lower_bound, unsigned int upper_bound) -> double
4573 return _IMP_kernel.QuadScore_evaluate_if_good_indexes(self, *args)
4575 def create_current_decomposition(self, *args):
4576 """create_current_decomposition(QuadScore self, Model m, IMP::kernel::ParticleIndexQuad const & vt) -> IMP::kernel::Restraints"""
4577 return _IMP_kernel.QuadScore_create_current_decomposition(self, *args)
4579 def do_create_current_decomposition(self, *args):
4580 """do_create_current_decomposition(QuadScore self, Model m, IMP::kernel::ParticleIndexQuad const & vt) -> IMP::kernel::Restraints"""
4581 return _IMP_kernel.QuadScore_do_create_current_decomposition(self, *args)
4583 __swig_destroy__ = _IMP_kernel.delete_QuadScore
4584 __del__ =
lambda self :
None;
4586 """__str__(QuadScore self) -> std::string"""
4587 return _IMP_kernel.QuadScore___str__(self)
4590 """__repr__(QuadScore self) -> std::string"""
4591 return _IMP_kernel.QuadScore___repr__(self)
4594 return _object_cast_to_QuadScore(o)
4595 get_from = staticmethod(get_from)
4597 def get_type_name(self):
4598 return self.__class__.__name__
4599 def do_show(self, out):
4601 def get_version_info(self):
4602 if"IMP::kernel" ==
"IMP":
4603 return VersionInfo(
"python",
"0")
4605 return IMP.VersionInfo(
"python",
"0")
4607 return _object_cast_to_QuadScore(o)
4608 get_from = staticmethod(get_from)
4610 def __disown__(self):
4612 _IMP_kernel.disown_QuadScore(self)
4613 return weakref_proxy(self)
4614 def do_get_inputs(self, *args):
4615 """do_get_inputs(QuadScore self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4616 return _IMP_kernel.QuadScore_do_get_inputs(self, *args)
4618 def do_destroy(self):
4619 """do_destroy(QuadScore self)"""
4620 return _IMP_kernel.QuadScore_do_destroy(self)
4622 QuadScore_swigregister = _IMP_kernel.QuadScore_swigregister
4623 QuadScore_swigregister(QuadScore)
4626 """Proxy of C++ IMP::kernel::QuadPredicate class"""
4627 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4628 def __init__(self, name="QuadPredicate %1%"):
4630 __init__(IMP::kernel::QuadPredicate self, std::string name="QuadPredicate %1%") -> QuadPredicate
4631 __init__(IMP::kernel::QuadPredicate self) -> QuadPredicate
4633 if self.__class__ == QuadPredicate:
4637 this = _IMP_kernel.new_QuadPredicate(_self, name)
4638 try: self.this.append(this)
4639 except: self.this = this
4640 if self.__class__ != QuadPredicate:
4642 IMP.base._director_objects.register(self)
4646 def get_value(self, *args):
4648 get_value(QuadPredicate self, IMP::kernel::ParticleQuad const & vt) -> int
4649 get_value(QuadPredicate self, IMP::kernel::ParticleQuadsTemp const & o) -> IMP::Ints
4651 return _IMP_kernel.QuadPredicate_get_value(self, *args)
4653 def __call__(self, *args):
4654 """__call__(QuadPredicate self, Model m, IMP::kernel::ParticleIndexQuad const & vt) -> int"""
4655 return _IMP_kernel.QuadPredicate___call__(self, *args)
4657 def get_value_index(self, *args):
4659 get_value_index(QuadPredicate self, Model m, IMP::kernel::ParticleIndexQuad const & vt) -> int
4660 get_value_index(QuadPredicate self, Model m, IMP::kernel::ParticleIndexQuads const & o) -> IMP::Ints
4662 return _IMP_kernel.QuadPredicate_get_value_index(self, *args)
4664 __swig_destroy__ = _IMP_kernel.delete_QuadPredicate
4665 __del__ =
lambda self :
None;
4667 """__str__(QuadPredicate self) -> std::string"""
4668 return _IMP_kernel.QuadPredicate___str__(self)
4671 """__repr__(QuadPredicate self) -> std::string"""
4672 return _IMP_kernel.QuadPredicate___repr__(self)
4675 return _object_cast_to_QuadPredicate(o)
4676 get_from = staticmethod(get_from)
4678 def get_type_name(self):
4679 return self.__class__.__name__
4680 def do_show(self, out):
4682 def get_version_info(self):
4683 if"IMP::kernel" ==
"IMP":
4684 return VersionInfo(
"python",
"0")
4686 return IMP.VersionInfo(
"python",
"0")
4688 return _object_cast_to_QuadPredicate(o)
4689 get_from = staticmethod(get_from)
4691 def __disown__(self):
4693 _IMP_kernel.disown_QuadPredicate(self)
4694 return weakref_proxy(self)
4695 def do_get_inputs(self, *args):
4696 """do_get_inputs(QuadPredicate self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4697 return _IMP_kernel.QuadPredicate_do_get_inputs(self, *args)
4699 def do_destroy(self):
4700 """do_destroy(QuadPredicate self)"""
4701 return _IMP_kernel.QuadPredicate_do_destroy(self)
4703 QuadPredicate_swigregister = _IMP_kernel.QuadPredicate_swigregister
4704 QuadPredicate_swigregister(QuadPredicate)
4707 """Proxy of C++ IMP::kernel::QuadContainer class"""
4708 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4709 def apply_generic(self, *args):
4710 """apply_generic(QuadContainer self, QuadModifier m)"""
4711 return _IMP_kernel.QuadContainer_apply_generic(self, *args)
4713 def apply(self, *args):
4714 """apply(QuadContainer self, QuadModifier sm)"""
4715 return _IMP_kernel.QuadContainer_apply(self, *args)
4717 def get_range_indexes(self):
4718 """get_range_indexes(QuadContainer self) -> IMP::kernel::ParticleIndexQuads"""
4719 return _IMP_kernel.QuadContainer_get_range_indexes(self)
4721 def get_contents(self):
4722 """get_contents(QuadContainer self) -> IMP::kernel::ParticleIndexQuads const &"""
4723 return _IMP_kernel.QuadContainer_get_contents(self)
4726 """get_indexes(QuadContainer self) -> IMP::kernel::ParticleIndexQuads"""
4727 return _IMP_kernel.QuadContainer_get_indexes(self)
4729 def get(self, *args):
4731 get(QuadContainer self) -> IMP::kernel::ParticleQuadsTemp
4732 get(QuadContainer self, unsigned int i) -> IMP::kernel::ParticleQuad
4734 return _IMP_kernel.QuadContainer_get(self, *args)
4736 def get_number(self):
4737 """get_number(QuadContainer self) -> unsigned int"""
4738 return _IMP_kernel.QuadContainer_get_number(self)
4740 def get_particle_quads(self):
4741 """get_particle_quads(QuadContainer self) -> IMP::kernel::ParticleQuadsTemp"""
4742 return _IMP_kernel.QuadContainer_get_particle_quads(self)
4744 def get_number_of_particle_quads(self):
4745 """get_number_of_particle_quads(QuadContainer self) -> unsigned int"""
4746 return _IMP_kernel.QuadContainer_get_number_of_particle_quads(self)
4748 def get_particle_quad(self, *args):
4749 """get_particle_quad(QuadContainer self, unsigned int i) -> IMP::kernel::ParticleQuad"""
4750 return _IMP_kernel.QuadContainer_get_particle_quad(self, *args)
4752 def __init__(self, *args):
4754 __init__(IMP::kernel::QuadContainer self, Model m, std::string name="QuadContainer %1%") -> QuadContainer
4755 __init__(IMP::kernel::QuadContainer self, Model m) -> QuadContainer
4757 if self.__class__ == QuadContainer:
4761 this = _IMP_kernel.new_QuadContainer(_self, *args)
4762 try: self.this.append(this)
4763 except: self.this = this
4764 if self.__class__ != QuadContainer:
4766 IMP.base._director_objects.register(self)
4770 def do_apply(self, *args):
4771 """do_apply(QuadContainer self, QuadModifier sm)"""
4772 return _IMP_kernel.QuadContainer_do_apply(self, *args)
4774 def do_get_provides_access(self):
4775 """do_get_provides_access(QuadContainer self) -> bool"""
4776 return _IMP_kernel.QuadContainer_do_get_provides_access(self)
4778 __swig_destroy__ = _IMP_kernel.delete_QuadContainer
4779 __del__ =
lambda self :
None;
4781 """__str__(QuadContainer self) -> std::string"""
4782 return _IMP_kernel.QuadContainer___str__(self)
4785 """__repr__(QuadContainer self) -> std::string"""
4786 return _IMP_kernel.QuadContainer___repr__(self)
4789 return _object_cast_to_QuadContainer(o)
4790 get_from = staticmethod(get_from)
4792 def get_type_name(self):
4793 return self.__class__.__name__
4794 def do_show(self, out):
4796 def get_version_info(self):
4797 if"IMP::kernel" ==
"IMP":
4798 return VersionInfo(
"python",
"0")
4800 return IMP.VersionInfo(
"python",
"0")
4802 return _object_cast_to_QuadContainer(o)
4803 get_from = staticmethod(get_from)
4805 def __disown__(self):
4807 _IMP_kernel.disown_QuadContainer(self)
4808 return weakref_proxy(self)
4809 def do_destroy(self):
4810 """do_destroy(QuadContainer self)"""
4811 return _IMP_kernel.QuadContainer_do_destroy(self)
4813 def handle_set_has_required_score_states(self, *args):
4814 """handle_set_has_required_score_states(QuadContainer self, bool arg0)"""
4815 return _IMP_kernel.QuadContainer_handle_set_has_required_score_states(self, *args)
4817 def do_get_inputs(self):
4818 """do_get_inputs(QuadContainer self) -> IMP::kernel::ModelObjectsTemp"""
4819 return _IMP_kernel.QuadContainer_do_get_inputs(self)
4821 def do_get_interactions(self):
4822 """do_get_interactions(QuadContainer self) -> IMP::kernel::ModelObjectsTemps"""
4823 return _IMP_kernel.QuadContainer_do_get_interactions(self)
4825 def do_get_contents_hash(self):
4826 """do_get_contents_hash(QuadContainer self) -> std::size_t"""
4827 return _IMP_kernel.QuadContainer_do_get_contents_hash(self)
4829 QuadContainer_swigregister = _IMP_kernel.QuadContainer_swigregister
4830 QuadContainer_swigregister(QuadContainer)
4832 class _QuadContainerAdaptor(IMP.base._InputAdaptor):
4833 """Proxy of C++ IMP::kernel::QuadContainerAdaptor class"""
4834 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4835 __repr__ = _swig_repr
4836 def __init__(self, *args):
4838 __init__(IMP::kernel::QuadContainerAdaptor self) -> _QuadContainerAdaptor
4839 __init__(IMP::kernel::QuadContainerAdaptor self, QuadContainer c) -> _QuadContainerAdaptor
4840 __init__(IMP::kernel::QuadContainerAdaptor self, IMP::kernel::ParticleQuadsTemp const & t) -> _QuadContainerAdaptor
4842 this = _IMP_kernel.new__QuadContainerAdaptor(*args)
4843 try: self.this.append(this)
4844 except: self.this = this
4845 def set_name_if_default(self, *args):
4846 """set_name_if_default(_QuadContainerAdaptor self, std::string name)"""
4847 return _IMP_kernel._QuadContainerAdaptor_set_name_if_default(self, *args)
4849 __swig_destroy__ = _IMP_kernel.delete__QuadContainerAdaptor
4850 __del__ =
lambda self :
None;
4851 _QuadContainerAdaptor_swigregister = _IMP_kernel._QuadContainerAdaptor_swigregister
4852 _QuadContainerAdaptor_swigregister(_QuadContainerAdaptor)
4855 """Proxy of C++ IMP::kernel::SingletonModifier class"""
4856 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4857 def __init__(self, name="SingletonModifier %1%"):
4859 __init__(IMP::kernel::SingletonModifier self, std::string name="SingletonModifier %1%") -> SingletonModifier
4860 __init__(IMP::kernel::SingletonModifier self) -> SingletonModifier
4862 if self.__class__ == SingletonModifier:
4866 this = _IMP_kernel.new_SingletonModifier(_self, name)
4867 try: self.this.append(this)
4868 except: self.this = this
4869 if self.__class__ != SingletonModifier:
4871 IMP.base._director_objects.register(self)
4875 def apply(self, *args):
4876 """apply(SingletonModifier self, Particle vt)"""
4877 return _IMP_kernel.SingletonModifier_apply(self, *args)
4879 def apply_index(self, *args):
4880 """apply_index(SingletonModifier self, Model m, IMP::kernel::ParticleIndex v)"""
4881 return _IMP_kernel.SingletonModifier_apply_index(self, *args)
4883 def apply_indexes(self, *args):
4884 """apply_indexes(SingletonModifier self, Model m, IMP::kernel::ParticleIndexes const & o, unsigned int lower_bound, unsigned int upper_bound)"""
4885 return _IMP_kernel.SingletonModifier_apply_indexes(self, *args)
4888 """__str__(SingletonModifier self) -> std::string"""
4889 return _IMP_kernel.SingletonModifier___str__(self)
4892 """__repr__(SingletonModifier self) -> std::string"""
4893 return _IMP_kernel.SingletonModifier___repr__(self)
4896 return _object_cast_to_SingletonModifier(o)
4897 get_from = staticmethod(get_from)
4899 def get_type_name(self):
4900 return self.__class__.__name__
4901 def do_show(self, out):
4903 def get_version_info(self):
4904 if"IMP::kernel" ==
"IMP":
4905 return VersionInfo(
"python",
"0")
4907 return IMP.VersionInfo(
"python",
"0")
4909 return _object_cast_to_SingletonModifier(o)
4910 get_from = staticmethod(get_from)
4912 __swig_destroy__ = _IMP_kernel.delete_SingletonModifier
4913 __del__ =
lambda self :
None;
4914 def __disown__(self):
4916 _IMP_kernel.disown_SingletonModifier(self)
4917 return weakref_proxy(self)
4918 def do_get_inputs(self, *args):
4919 """do_get_inputs(SingletonModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4920 return _IMP_kernel.SingletonModifier_do_get_inputs(self, *args)
4922 def do_get_outputs(self, *args):
4923 """do_get_outputs(SingletonModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4924 return _IMP_kernel.SingletonModifier_do_get_outputs(self, *args)
4926 def do_destroy(self):
4927 """do_destroy(SingletonModifier self)"""
4928 return _IMP_kernel.SingletonModifier_do_destroy(self)
4930 SingletonModifier_swigregister = _IMP_kernel.SingletonModifier_swigregister
4931 SingletonModifier_swigregister(SingletonModifier)
4934 """Proxy of C++ IMP::kernel::SingletonScore class"""
4935 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4936 def __init__(self, name="SingletonScore %1%"):
4938 __init__(IMP::kernel::SingletonScore self, std::string name="SingletonScore %1%") -> SingletonScore
4939 __init__(IMP::kernel::SingletonScore self) -> SingletonScore
4941 if self.__class__ == SingletonScore:
4945 this = _IMP_kernel.new_SingletonScore(_self, name)
4946 try: self.this.append(this)
4947 except: self.this = this
4948 if self.__class__ != SingletonScore:
4950 IMP.base._director_objects.register(self)
4954 def evaluate(self, *args):
4955 """evaluate(SingletonScore self, Particle vt, DerivativeAccumulator da) -> double"""
4956 return _IMP_kernel.SingletonScore_evaluate(self, *args)
4958 def evaluate_index(self, *args):
4959 """evaluate_index(SingletonScore self, Model m, IMP::kernel::ParticleIndex vt, DerivativeAccumulator da) -> double"""
4960 return _IMP_kernel.SingletonScore_evaluate_index(self, *args)
4962 def evaluate_indexes(self, *args):
4964 evaluate_indexes(SingletonScore self, Model m, IMP::kernel::ParticleIndexes const & o, DerivativeAccumulator da, unsigned int lower_bound,
4965 unsigned int upper_bound) -> double
4967 return _IMP_kernel.SingletonScore_evaluate_indexes(self, *args)
4969 def evaluate_if_good_index(self, *args):
4970 """evaluate_if_good_index(SingletonScore self, Model m, IMP::kernel::ParticleIndex vt, DerivativeAccumulator da, double max) -> double"""
4971 return _IMP_kernel.SingletonScore_evaluate_if_good_index(self, *args)
4973 def evaluate_if_good_indexes(self, *args):
4975 evaluate_if_good_indexes(SingletonScore self, Model m, IMP::kernel::ParticleIndexes const & o, DerivativeAccumulator da, double max,
4976 unsigned int lower_bound, unsigned int upper_bound) -> double
4978 return _IMP_kernel.SingletonScore_evaluate_if_good_indexes(self, *args)
4980 def create_current_decomposition(self, *args):
4981 """create_current_decomposition(SingletonScore self, Model m, IMP::kernel::ParticleIndex vt) -> IMP::kernel::Restraints"""
4982 return _IMP_kernel.SingletonScore_create_current_decomposition(self, *args)
4984 def do_create_current_decomposition(self, *args):
4985 """do_create_current_decomposition(SingletonScore self, Model m, IMP::kernel::ParticleIndex vt) -> IMP::kernel::Restraints"""
4986 return _IMP_kernel.SingletonScore_do_create_current_decomposition(self, *args)
4988 __swig_destroy__ = _IMP_kernel.delete_SingletonScore
4989 __del__ =
lambda self :
None;
4991 """__str__(SingletonScore self) -> std::string"""
4992 return _IMP_kernel.SingletonScore___str__(self)
4995 """__repr__(SingletonScore self) -> std::string"""
4996 return _IMP_kernel.SingletonScore___repr__(self)
4999 return _object_cast_to_SingletonScore(o)
5000 get_from = staticmethod(get_from)
5002 def get_type_name(self):
5003 return self.__class__.__name__
5004 def do_show(self, out):
5006 def get_version_info(self):
5007 if"IMP::kernel" ==
"IMP":
5008 return VersionInfo(
"python",
"0")
5010 return IMP.VersionInfo(
"python",
"0")
5012 return _object_cast_to_SingletonScore(o)
5013 get_from = staticmethod(get_from)
5015 def __disown__(self):
5017 _IMP_kernel.disown_SingletonScore(self)
5018 return weakref_proxy(self)
5019 def do_get_inputs(self, *args):
5020 """do_get_inputs(SingletonScore self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5021 return _IMP_kernel.SingletonScore_do_get_inputs(self, *args)
5023 def do_destroy(self):
5024 """do_destroy(SingletonScore self)"""
5025 return _IMP_kernel.SingletonScore_do_destroy(self)
5027 SingletonScore_swigregister = _IMP_kernel.SingletonScore_swigregister
5028 SingletonScore_swigregister(SingletonScore)
5031 """Proxy of C++ IMP::kernel::SingletonPredicate class"""
5032 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5033 def __init__(self, name="SingletonPredicate %1%"):
5035 __init__(IMP::kernel::SingletonPredicate self, std::string name="SingletonPredicate %1%") -> SingletonPredicate
5036 __init__(IMP::kernel::SingletonPredicate self) -> SingletonPredicate
5038 if self.__class__ == SingletonPredicate:
5042 this = _IMP_kernel.new_SingletonPredicate(_self, name)
5043 try: self.this.append(this)
5044 except: self.this = this
5045 if self.__class__ != SingletonPredicate:
5047 IMP.base._director_objects.register(self)
5051 def get_value(self, *args):
5053 get_value(SingletonPredicate self, Particle vt) -> int
5054 get_value(SingletonPredicate self, IMP::kernel::ParticlesTemp const & o) -> IMP::Ints
5056 return _IMP_kernel.SingletonPredicate_get_value(self, *args)
5058 def __call__(self, *args):
5059 """__call__(SingletonPredicate self, Model m, IMP::kernel::ParticleIndex vt) -> int"""
5060 return _IMP_kernel.SingletonPredicate___call__(self, *args)
5062 def get_value_index(self, *args):
5064 get_value_index(SingletonPredicate self, Model m, IMP::kernel::ParticleIndex vt) -> int
5065 get_value_index(SingletonPredicate self, Model m, IMP::kernel::ParticleIndexes const & o) -> IMP::Ints
5067 return _IMP_kernel.SingletonPredicate_get_value_index(self, *args)
5069 __swig_destroy__ = _IMP_kernel.delete_SingletonPredicate
5070 __del__ =
lambda self :
None;
5072 """__str__(SingletonPredicate self) -> std::string"""
5073 return _IMP_kernel.SingletonPredicate___str__(self)
5076 """__repr__(SingletonPredicate self) -> std::string"""
5077 return _IMP_kernel.SingletonPredicate___repr__(self)
5080 return _object_cast_to_SingletonPredicate(o)
5081 get_from = staticmethod(get_from)
5083 def get_type_name(self):
5084 return self.__class__.__name__
5085 def do_show(self, out):
5087 def get_version_info(self):
5088 if"IMP::kernel" ==
"IMP":
5089 return VersionInfo(
"python",
"0")
5091 return IMP.VersionInfo(
"python",
"0")
5093 return _object_cast_to_SingletonPredicate(o)
5094 get_from = staticmethod(get_from)
5096 def __disown__(self):
5098 _IMP_kernel.disown_SingletonPredicate(self)
5099 return weakref_proxy(self)
5100 def do_get_inputs(self, *args):
5101 """do_get_inputs(SingletonPredicate self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5102 return _IMP_kernel.SingletonPredicate_do_get_inputs(self, *args)
5104 def do_destroy(self):
5105 """do_destroy(SingletonPredicate self)"""
5106 return _IMP_kernel.SingletonPredicate_do_destroy(self)
5108 SingletonPredicate_swigregister = _IMP_kernel.SingletonPredicate_swigregister
5109 SingletonPredicate_swigregister(SingletonPredicate)
5112 """Proxy of C++ IMP::kernel::SingletonContainer class"""
5113 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5114 def apply_generic(self, *args):
5115 """apply_generic(SingletonContainer self, SingletonModifier m)"""
5116 return _IMP_kernel.SingletonContainer_apply_generic(self, *args)
5118 def apply(self, *args):
5119 """apply(SingletonContainer self, SingletonModifier sm)"""
5120 return _IMP_kernel.SingletonContainer_apply(self, *args)
5122 def get_range_indexes(self):
5123 """get_range_indexes(SingletonContainer self) -> IMP::kernel::ParticleIndexes"""
5124 return _IMP_kernel.SingletonContainer_get_range_indexes(self)
5126 def get_contents(self):
5127 """get_contents(SingletonContainer self) -> IMP::kernel::ParticleIndexes const &"""
5128 return _IMP_kernel.SingletonContainer_get_contents(self)
5131 """get_indexes(SingletonContainer self) -> IMP::kernel::ParticleIndexes"""
5132 return _IMP_kernel.SingletonContainer_get_indexes(self)
5134 def get(self, *args):
5136 get(SingletonContainer self) -> IMP::kernel::ParticlesTemp
5137 get(SingletonContainer self, unsigned int i) -> Particle
5139 return _IMP_kernel.SingletonContainer_get(self, *args)
5141 def get_number(self):
5142 """get_number(SingletonContainer self) -> unsigned int"""
5143 return _IMP_kernel.SingletonContainer_get_number(self)
5146 """get_particles(SingletonContainer self) -> IMP::kernel::ParticlesTemp"""
5147 return _IMP_kernel.SingletonContainer_get_particles(self)
5149 def get_number_of_particles(self):
5150 """get_number_of_particles(SingletonContainer self) -> unsigned int"""
5151 return _IMP_kernel.SingletonContainer_get_number_of_particles(self)
5153 def get_particle(self, *args):
5154 """get_particle(SingletonContainer self, unsigned int i) -> Particle"""
5155 return _IMP_kernel.SingletonContainer_get_particle(self, *args)
5157 def __init__(self, *args):
5159 __init__(IMP::kernel::SingletonContainer self, Model m, std::string name="SingletonContainer %1%") -> SingletonContainer
5160 __init__(IMP::kernel::SingletonContainer self, Model m) -> SingletonContainer
5162 if self.__class__ == SingletonContainer:
5166 this = _IMP_kernel.new_SingletonContainer(_self, *args)
5167 try: self.this.append(this)
5168 except: self.this = this
5169 if self.__class__ != SingletonContainer:
5171 IMP.base._director_objects.register(self)
5175 def do_apply(self, *args):
5176 """do_apply(SingletonContainer self, SingletonModifier sm)"""
5177 return _IMP_kernel.SingletonContainer_do_apply(self, *args)
5179 def do_get_provides_access(self):
5180 """do_get_provides_access(SingletonContainer self) -> bool"""
5181 return _IMP_kernel.SingletonContainer_do_get_provides_access(self)
5183 __swig_destroy__ = _IMP_kernel.delete_SingletonContainer
5184 __del__ =
lambda self :
None;
5186 """__str__(SingletonContainer self) -> std::string"""
5187 return _IMP_kernel.SingletonContainer___str__(self)
5190 """__repr__(SingletonContainer self) -> std::string"""
5191 return _IMP_kernel.SingletonContainer___repr__(self)
5194 return _object_cast_to_SingletonContainer(o)
5195 get_from = staticmethod(get_from)
5197 def get_type_name(self):
5198 return self.__class__.__name__
5199 def do_show(self, out):
5201 def get_version_info(self):
5202 if"IMP::kernel" ==
"IMP":
5203 return VersionInfo(
"python",
"0")
5205 return IMP.VersionInfo(
"python",
"0")
5207 return _object_cast_to_SingletonContainer(o)
5208 get_from = staticmethod(get_from)
5210 def __disown__(self):
5212 _IMP_kernel.disown_SingletonContainer(self)
5213 return weakref_proxy(self)
5214 def do_destroy(self):
5215 """do_destroy(SingletonContainer self)"""
5216 return _IMP_kernel.SingletonContainer_do_destroy(self)
5218 def handle_set_has_required_score_states(self, *args):
5219 """handle_set_has_required_score_states(SingletonContainer self, bool arg0)"""
5220 return _IMP_kernel.SingletonContainer_handle_set_has_required_score_states(self, *args)
5222 def do_get_inputs(self):
5223 """do_get_inputs(SingletonContainer self) -> IMP::kernel::ModelObjectsTemp"""
5224 return _IMP_kernel.SingletonContainer_do_get_inputs(self)
5226 def do_get_interactions(self):
5227 """do_get_interactions(SingletonContainer self) -> IMP::kernel::ModelObjectsTemps"""
5228 return _IMP_kernel.SingletonContainer_do_get_interactions(self)
5230 def do_get_contents_hash(self):
5231 """do_get_contents_hash(SingletonContainer self) -> std::size_t"""
5232 return _IMP_kernel.SingletonContainer_do_get_contents_hash(self)
5234 SingletonContainer_swigregister = _IMP_kernel.SingletonContainer_swigregister
5235 SingletonContainer_swigregister(SingletonContainer)
5237 class _SingletonContainerAdaptor(IMP.base._InputAdaptor):
5238 """Proxy of C++ IMP::kernel::SingletonContainerAdaptor class"""
5239 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5240 __repr__ = _swig_repr
5241 def __init__(self, *args):
5243 __init__(IMP::kernel::SingletonContainerAdaptor self) -> _SingletonContainerAdaptor
5244 __init__(IMP::kernel::SingletonContainerAdaptor self, SingletonContainer c) -> _SingletonContainerAdaptor
5245 __init__(IMP::kernel::SingletonContainerAdaptor self, IMP::kernel::ParticlesTemp const & t) -> _SingletonContainerAdaptor
5247 this = _IMP_kernel.new__SingletonContainerAdaptor(*args)
5248 try: self.this.append(this)
5249 except: self.this = this
5250 def set_name_if_default(self, *args):
5251 """set_name_if_default(_SingletonContainerAdaptor self, std::string name)"""
5252 return _IMP_kernel._SingletonContainerAdaptor_set_name_if_default(self, *args)
5254 __swig_destroy__ = _IMP_kernel.delete__SingletonContainerAdaptor
5255 __del__ =
lambda self :
None;
5256 _SingletonContainerAdaptor_swigregister = _IMP_kernel._SingletonContainerAdaptor_swigregister
5257 _SingletonContainerAdaptor_swigregister(_SingletonContainerAdaptor)
5260 """Proxy of C++ IMP::kernel::TripletModifier class"""
5261 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5262 def __init__(self, name="TripletModifier %1%"):
5264 __init__(IMP::kernel::TripletModifier self, std::string name="TripletModifier %1%") -> TripletModifier
5265 __init__(IMP::kernel::TripletModifier self) -> TripletModifier
5267 if self.__class__ == TripletModifier:
5271 this = _IMP_kernel.new_TripletModifier(_self, name)
5272 try: self.this.append(this)
5273 except: self.this = this
5274 if self.__class__ != TripletModifier:
5276 IMP.base._director_objects.register(self)
5280 def apply(self, *args):
5281 """apply(TripletModifier self, IMP::kernel::ParticleTriplet const & vt)"""
5282 return _IMP_kernel.TripletModifier_apply(self, *args)
5284 def apply_index(self, *args):
5285 """apply_index(TripletModifier self, Model m, IMP::kernel::ParticleIndexTriplet const & v)"""
5286 return _IMP_kernel.TripletModifier_apply_index(self, *args)
5288 def apply_indexes(self, *args):
5290 apply_indexes(TripletModifier self, Model m, IMP::kernel::ParticleIndexTriplets const & o, unsigned int lower_bound,
5291 unsigned int upper_bound)
5293 return _IMP_kernel.TripletModifier_apply_indexes(self, *args)
5296 """__str__(TripletModifier self) -> std::string"""
5297 return _IMP_kernel.TripletModifier___str__(self)
5300 """__repr__(TripletModifier self) -> std::string"""
5301 return _IMP_kernel.TripletModifier___repr__(self)
5304 return _object_cast_to_TripletModifier(o)
5305 get_from = staticmethod(get_from)
5307 def get_type_name(self):
5308 return self.__class__.__name__
5309 def do_show(self, out):
5311 def get_version_info(self):
5312 if"IMP::kernel" ==
"IMP":
5313 return VersionInfo(
"python",
"0")
5315 return IMP.VersionInfo(
"python",
"0")
5317 return _object_cast_to_TripletModifier(o)
5318 get_from = staticmethod(get_from)
5320 __swig_destroy__ = _IMP_kernel.delete_TripletModifier
5321 __del__ =
lambda self :
None;
5322 def __disown__(self):
5324 _IMP_kernel.disown_TripletModifier(self)
5325 return weakref_proxy(self)
5326 def do_get_inputs(self, *args):
5327 """do_get_inputs(TripletModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5328 return _IMP_kernel.TripletModifier_do_get_inputs(self, *args)
5330 def do_get_outputs(self, *args):
5331 """do_get_outputs(TripletModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5332 return _IMP_kernel.TripletModifier_do_get_outputs(self, *args)
5334 def do_destroy(self):
5335 """do_destroy(TripletModifier self)"""
5336 return _IMP_kernel.TripletModifier_do_destroy(self)
5338 TripletModifier_swigregister = _IMP_kernel.TripletModifier_swigregister
5339 TripletModifier_swigregister(TripletModifier)
5342 """Proxy of C++ IMP::kernel::TripletScore class"""
5343 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5344 def __init__(self, name="TripletScore %1%"):
5346 __init__(IMP::kernel::TripletScore self, std::string name="TripletScore %1%") -> TripletScore
5347 __init__(IMP::kernel::TripletScore self) -> TripletScore
5349 if self.__class__ == TripletScore:
5353 this = _IMP_kernel.new_TripletScore(_self, name)
5354 try: self.this.append(this)
5355 except: self.this = this
5356 if self.__class__ != TripletScore:
5358 IMP.base._director_objects.register(self)
5362 def evaluate(self, *args):
5363 """evaluate(TripletScore self, IMP::kernel::ParticleTriplet const & vt, DerivativeAccumulator da) -> double"""
5364 return _IMP_kernel.TripletScore_evaluate(self, *args)
5366 def evaluate_index(self, *args):
5367 """evaluate_index(TripletScore self, Model m, IMP::kernel::ParticleIndexTriplet const & vt, DerivativeAccumulator da) -> double"""
5368 return _IMP_kernel.TripletScore_evaluate_index(self, *args)
5370 def evaluate_indexes(self, *args):
5372 evaluate_indexes(TripletScore self, Model m, IMP::kernel::ParticleIndexTriplets const & o, DerivativeAccumulator da,
5373 unsigned int lower_bound, unsigned int upper_bound) -> double
5375 return _IMP_kernel.TripletScore_evaluate_indexes(self, *args)
5377 def evaluate_if_good_index(self, *args):
5379 evaluate_if_good_index(TripletScore self, Model m, IMP::kernel::ParticleIndexTriplet const & vt, DerivativeAccumulator da,
5380 double max) -> double
5382 return _IMP_kernel.TripletScore_evaluate_if_good_index(self, *args)
5384 def evaluate_if_good_indexes(self, *args):
5386 evaluate_if_good_indexes(TripletScore self, Model m, IMP::kernel::ParticleIndexTriplets const & o, DerivativeAccumulator da,
5387 double max, unsigned int lower_bound, unsigned int upper_bound) -> double
5389 return _IMP_kernel.TripletScore_evaluate_if_good_indexes(self, *args)
5391 def create_current_decomposition(self, *args):
5392 """create_current_decomposition(TripletScore self, Model m, IMP::kernel::ParticleIndexTriplet const & vt) -> IMP::kernel::Restraints"""
5393 return _IMP_kernel.TripletScore_create_current_decomposition(self, *args)
5395 def do_create_current_decomposition(self, *args):
5396 """do_create_current_decomposition(TripletScore self, Model m, IMP::kernel::ParticleIndexTriplet const & vt) -> IMP::kernel::Restraints"""
5397 return _IMP_kernel.TripletScore_do_create_current_decomposition(self, *args)
5399 __swig_destroy__ = _IMP_kernel.delete_TripletScore
5400 __del__ =
lambda self :
None;
5402 """__str__(TripletScore self) -> std::string"""
5403 return _IMP_kernel.TripletScore___str__(self)
5406 """__repr__(TripletScore self) -> std::string"""
5407 return _IMP_kernel.TripletScore___repr__(self)
5410 return _object_cast_to_TripletScore(o)
5411 get_from = staticmethod(get_from)
5413 def get_type_name(self):
5414 return self.__class__.__name__
5415 def do_show(self, out):
5417 def get_version_info(self):
5418 if"IMP::kernel" ==
"IMP":
5419 return VersionInfo(
"python",
"0")
5421 return IMP.VersionInfo(
"python",
"0")
5423 return _object_cast_to_TripletScore(o)
5424 get_from = staticmethod(get_from)
5426 def __disown__(self):
5428 _IMP_kernel.disown_TripletScore(self)
5429 return weakref_proxy(self)
5430 def do_get_inputs(self, *args):
5431 """do_get_inputs(TripletScore self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5432 return _IMP_kernel.TripletScore_do_get_inputs(self, *args)
5434 def do_destroy(self):
5435 """do_destroy(TripletScore self)"""
5436 return _IMP_kernel.TripletScore_do_destroy(self)
5438 TripletScore_swigregister = _IMP_kernel.TripletScore_swigregister
5439 TripletScore_swigregister(TripletScore)
5442 """Proxy of C++ IMP::kernel::TripletPredicate class"""
5443 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5444 def __init__(self, name="TripletPredicate %1%"):
5446 __init__(IMP::kernel::TripletPredicate self, std::string name="TripletPredicate %1%") -> TripletPredicate
5447 __init__(IMP::kernel::TripletPredicate self) -> TripletPredicate
5449 if self.__class__ == TripletPredicate:
5453 this = _IMP_kernel.new_TripletPredicate(_self, name)
5454 try: self.this.append(this)
5455 except: self.this = this
5456 if self.__class__ != TripletPredicate:
5458 IMP.base._director_objects.register(self)
5462 def get_value(self, *args):
5464 get_value(TripletPredicate self, IMP::kernel::ParticleTriplet const & vt) -> int
5465 get_value(TripletPredicate self, IMP::kernel::ParticleTripletsTemp const & o) -> IMP::Ints
5467 return _IMP_kernel.TripletPredicate_get_value(self, *args)
5469 def __call__(self, *args):
5470 """__call__(TripletPredicate self, Model m, IMP::kernel::ParticleIndexTriplet const & vt) -> int"""
5471 return _IMP_kernel.TripletPredicate___call__(self, *args)
5473 def get_value_index(self, *args):
5475 get_value_index(TripletPredicate self, Model m, IMP::kernel::ParticleIndexTriplet const & vt) -> int
5476 get_value_index(TripletPredicate self, Model m, IMP::kernel::ParticleIndexTriplets const & o) -> IMP::Ints
5478 return _IMP_kernel.TripletPredicate_get_value_index(self, *args)
5480 __swig_destroy__ = _IMP_kernel.delete_TripletPredicate
5481 __del__ =
lambda self :
None;
5483 """__str__(TripletPredicate self) -> std::string"""
5484 return _IMP_kernel.TripletPredicate___str__(self)
5487 """__repr__(TripletPredicate self) -> std::string"""
5488 return _IMP_kernel.TripletPredicate___repr__(self)
5491 return _object_cast_to_TripletPredicate(o)
5492 get_from = staticmethod(get_from)
5494 def get_type_name(self):
5495 return self.__class__.__name__
5496 def do_show(self, out):
5498 def get_version_info(self):
5499 if"IMP::kernel" ==
"IMP":
5500 return VersionInfo(
"python",
"0")
5502 return IMP.VersionInfo(
"python",
"0")
5504 return _object_cast_to_TripletPredicate(o)
5505 get_from = staticmethod(get_from)
5507 def __disown__(self):
5509 _IMP_kernel.disown_TripletPredicate(self)
5510 return weakref_proxy(self)
5511 def do_get_inputs(self, *args):
5512 """do_get_inputs(TripletPredicate self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5513 return _IMP_kernel.TripletPredicate_do_get_inputs(self, *args)
5515 def do_destroy(self):
5516 """do_destroy(TripletPredicate self)"""
5517 return _IMP_kernel.TripletPredicate_do_destroy(self)
5519 TripletPredicate_swigregister = _IMP_kernel.TripletPredicate_swigregister
5520 TripletPredicate_swigregister(TripletPredicate)
5523 """Proxy of C++ IMP::kernel::TripletContainer class"""
5524 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5525 def apply_generic(self, *args):
5526 """apply_generic(TripletContainer self, TripletModifier m)"""
5527 return _IMP_kernel.TripletContainer_apply_generic(self, *args)
5529 def apply(self, *args):
5530 """apply(TripletContainer self, TripletModifier sm)"""
5531 return _IMP_kernel.TripletContainer_apply(self, *args)
5533 def get_range_indexes(self):
5534 """get_range_indexes(TripletContainer self) -> IMP::kernel::ParticleIndexTriplets"""
5535 return _IMP_kernel.TripletContainer_get_range_indexes(self)
5537 def get_contents(self):
5538 """get_contents(TripletContainer self) -> IMP::kernel::ParticleIndexTriplets const &"""
5539 return _IMP_kernel.TripletContainer_get_contents(self)
5542 """get_indexes(TripletContainer self) -> IMP::kernel::ParticleIndexTriplets"""
5543 return _IMP_kernel.TripletContainer_get_indexes(self)
5545 def get(self, *args):
5547 get(TripletContainer self) -> IMP::kernel::ParticleTripletsTemp
5548 get(TripletContainer self, unsigned int i) -> IMP::kernel::ParticleTriplet
5550 return _IMP_kernel.TripletContainer_get(self, *args)
5552 def get_number(self):
5553 """get_number(TripletContainer self) -> unsigned int"""
5554 return _IMP_kernel.TripletContainer_get_number(self)
5556 def get_particle_triplets(self):
5557 """get_particle_triplets(TripletContainer self) -> IMP::kernel::ParticleTripletsTemp"""
5558 return _IMP_kernel.TripletContainer_get_particle_triplets(self)
5560 def get_number_of_particle_triplets(self):
5561 """get_number_of_particle_triplets(TripletContainer self) -> unsigned int"""
5562 return _IMP_kernel.TripletContainer_get_number_of_particle_triplets(self)
5564 def get_particle_triplet(self, *args):
5565 """get_particle_triplet(TripletContainer self, unsigned int i) -> IMP::kernel::ParticleTriplet"""
5566 return _IMP_kernel.TripletContainer_get_particle_triplet(self, *args)
5568 def __init__(self, *args):
5570 __init__(IMP::kernel::TripletContainer self, Model m, std::string name="TripletContainer %1%") -> TripletContainer
5571 __init__(IMP::kernel::TripletContainer self, Model m) -> TripletContainer
5573 if self.__class__ == TripletContainer:
5577 this = _IMP_kernel.new_TripletContainer(_self, *args)
5578 try: self.this.append(this)
5579 except: self.this = this
5580 if self.__class__ != TripletContainer:
5582 IMP.base._director_objects.register(self)
5586 def do_apply(self, *args):
5587 """do_apply(TripletContainer self, TripletModifier sm)"""
5588 return _IMP_kernel.TripletContainer_do_apply(self, *args)
5590 def do_get_provides_access(self):
5591 """do_get_provides_access(TripletContainer self) -> bool"""
5592 return _IMP_kernel.TripletContainer_do_get_provides_access(self)
5594 __swig_destroy__ = _IMP_kernel.delete_TripletContainer
5595 __del__ =
lambda self :
None;
5597 """__str__(TripletContainer self) -> std::string"""
5598 return _IMP_kernel.TripletContainer___str__(self)
5601 """__repr__(TripletContainer self) -> std::string"""
5602 return _IMP_kernel.TripletContainer___repr__(self)
5605 return _object_cast_to_TripletContainer(o)
5606 get_from = staticmethod(get_from)
5608 def get_type_name(self):
5609 return self.__class__.__name__
5610 def do_show(self, out):
5612 def get_version_info(self):
5613 if"IMP::kernel" ==
"IMP":
5614 return VersionInfo(
"python",
"0")
5616 return IMP.VersionInfo(
"python",
"0")
5618 return _object_cast_to_TripletContainer(o)
5619 get_from = staticmethod(get_from)
5621 def __disown__(self):
5623 _IMP_kernel.disown_TripletContainer(self)
5624 return weakref_proxy(self)
5625 def do_destroy(self):
5626 """do_destroy(TripletContainer self)"""
5627 return _IMP_kernel.TripletContainer_do_destroy(self)
5629 def handle_set_has_required_score_states(self, *args):
5630 """handle_set_has_required_score_states(TripletContainer self, bool arg0)"""
5631 return _IMP_kernel.TripletContainer_handle_set_has_required_score_states(self, *args)
5633 def do_get_inputs(self):
5634 """do_get_inputs(TripletContainer self) -> IMP::kernel::ModelObjectsTemp"""
5635 return _IMP_kernel.TripletContainer_do_get_inputs(self)
5637 def do_get_interactions(self):
5638 """do_get_interactions(TripletContainer self) -> IMP::kernel::ModelObjectsTemps"""
5639 return _IMP_kernel.TripletContainer_do_get_interactions(self)
5641 def do_get_contents_hash(self):
5642 """do_get_contents_hash(TripletContainer self) -> std::size_t"""
5643 return _IMP_kernel.TripletContainer_do_get_contents_hash(self)
5645 TripletContainer_swigregister = _IMP_kernel.TripletContainer_swigregister
5646 TripletContainer_swigregister(TripletContainer)
5648 class _TripletContainerAdaptor(IMP.base._InputAdaptor):
5649 """Proxy of C++ IMP::kernel::TripletContainerAdaptor class"""
5650 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5651 __repr__ = _swig_repr
5652 def __init__(self, *args):
5654 __init__(IMP::kernel::TripletContainerAdaptor self) -> _TripletContainerAdaptor
5655 __init__(IMP::kernel::TripletContainerAdaptor self, TripletContainer c) -> _TripletContainerAdaptor
5656 __init__(IMP::kernel::TripletContainerAdaptor self, IMP::kernel::ParticleTripletsTemp const & t) -> _TripletContainerAdaptor
5658 this = _IMP_kernel.new__TripletContainerAdaptor(*args)
5659 try: self.this.append(this)
5660 except: self.this = this
5661 def set_name_if_default(self, *args):
5662 """set_name_if_default(_TripletContainerAdaptor self, std::string name)"""
5663 return _IMP_kernel._TripletContainerAdaptor_set_name_if_default(self, *args)
5665 __swig_destroy__ = _IMP_kernel.delete__TripletContainerAdaptor
5666 __del__ =
lambda self :
None;
5667 _TripletContainerAdaptor_swigregister = _IMP_kernel._TripletContainerAdaptor_swigregister
5668 _TripletContainerAdaptor_swigregister(_TripletContainerAdaptor)
5672 """write_particles_to_buffer(IMP::kernel::ParticlesTemp const & particles, IMP::kernel::FloatKeys const & keys) -> IMP::base::Vector< char >"""
5673 return _IMP_kernel.write_particles_to_buffer(*args)
5677 read_particles_from_buffer(IMP::base::Vector< char > const & buffer, IMP::kernel::ParticlesTemp const & particles,
5678 IMP::kernel::FloatKeys const & keys)
5680 return _IMP_kernel.read_particles_from_buffer(*args)
5683 """get_particles(Model m, IMP::kernel::ParticleIndexes const & ps) -> IMP::kernel::ParticlesTemp"""
5684 return _IMP_kernel.get_particles(*args)
5688 get_indexes(IMP::kernel::ParticlesTemp const & ps) -> IMP::kernel::ParticleIndexes
5689 get_indexes(IMP::kernel::ParticlePairsTemp const & ps) -> IMP::kernel::ParticleIndexPairs
5691 return _IMP_kernel.get_indexes(*args)
5692 class _ParticleIndexAdaptor(object):
5693 """Proxy of C++ IMP::kernel::ParticleIndexAdaptor class"""
5694 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5695 __repr__ = _swig_repr
5696 def __init__(self, *args):
5698 __init__(IMP::kernel::ParticleIndexAdaptor self, Particle p) -> _ParticleIndexAdaptor
5699 __init__(IMP::kernel::ParticleIndexAdaptor self, IMP::kernel::ParticleIndex pi) -> _ParticleIndexAdaptor
5700 __init__(IMP::kernel::ParticleIndexAdaptor self, Decorator d) -> _ParticleIndexAdaptor
5702 this = _IMP_kernel.new__ParticleIndexAdaptor(*args)
5703 try: self.this.append(this)
5704 except: self.this = this
5705 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexAdaptor
5706 __del__ =
lambda self :
None;
5707 _ParticleIndexAdaptor_swigregister = _IMP_kernel._ParticleIndexAdaptor_swigregister
5708 _ParticleIndexAdaptor_swigregister(_ParticleIndexAdaptor)
5710 class _ParticleIndexesAdaptor(IMP.base._InputAdaptor):
5711 """Proxy of C++ IMP::kernel::ParticleIndexesAdaptor class"""
5712 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5713 __repr__ = _swig_repr
5714 def __init__(self, *args):
5716 __init__(IMP::kernel::ParticleIndexesAdaptor self, IMP::kernel::ParticlesTemp const & ps) -> _ParticleIndexesAdaptor
5717 __init__(IMP::kernel::ParticleIndexesAdaptor self, IMP::kernel::ParticleIndexes const & pi) -> _ParticleIndexesAdaptor
5718 __init__(IMP::kernel::ParticleIndexesAdaptor self) -> _ParticleIndexesAdaptor
5720 this = _IMP_kernel.new__ParticleIndexesAdaptor(*args)
5721 try: self.this.append(this)
5722 except: self.this = this
5723 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexesAdaptor
5724 __del__ =
lambda self :
None;
5725 _ParticleIndexesAdaptor_swigregister = _IMP_kernel._ParticleIndexesAdaptor_swigregister
5726 _ParticleIndexesAdaptor_swigregister(_ParticleIndexesAdaptor)
5728 class _ParticleIndexPairsAdaptor(object):
5729 """Proxy of C++ IMP::kernel::ParticleIndexPairsAdaptor class"""
5730 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5731 __repr__ = _swig_repr
5732 def __init__(self, *args):
5734 __init__(IMP::kernel::ParticleIndexPairsAdaptor self, IMP::kernel::ParticlePairsTemp const & ps) -> _ParticleIndexPairsAdaptor
5735 __init__(IMP::kernel::ParticleIndexPairsAdaptor self, IMP::kernel::ParticleIndexPairs const & pi) -> _ParticleIndexPairsAdaptor
5736 __init__(IMP::kernel::ParticleIndexPairsAdaptor self) -> _ParticleIndexPairsAdaptor
5738 this = _IMP_kernel.new__ParticleIndexPairsAdaptor(*args)
5739 try: self.this.append(this)
5740 except: self.this = this
5741 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexPairsAdaptor
5742 __del__ =
lambda self :
None;
5743 _ParticleIndexPairsAdaptor_swigregister = _IMP_kernel._ParticleIndexPairsAdaptor_swigregister
5744 _ParticleIndexPairsAdaptor_swigregister(_ParticleIndexPairsAdaptor)
5747 """Proxy of C++ IMP::kernel::internal::_ConstRestraint class"""
5748 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5749 def __init__(self, *args):
5751 __init__(IMP::kernel::internal::_ConstRestraint self, double v, IMP::kernel::ParticlesTemp const ps) -> _ConstRestraint
5752 __init__(IMP::kernel::internal::_ConstRestraint self, Model m, IMP::kernel::ParticleIndexes const & pis, double v) -> _ConstRestraint
5754 this = _IMP_kernel.new__ConstRestraint(*args)
5755 try: self.this.append(this)
5756 except: self.this = this
5757 def get_value(self):
5758 """get_value(_ConstRestraint self) -> double"""
5759 return _IMP_kernel._ConstRestraint_get_value(self)
5761 def do_create_decomposition(self):
5762 """do_create_decomposition(_ConstRestraint self) -> IMP::kernel::Restraints"""
5763 return _IMP_kernel._ConstRestraint_do_create_decomposition(self)
5765 def do_get_inputs(self):
5766 """do_get_inputs(_ConstRestraint self) -> IMP::kernel::ModelObjectsTemp"""
5767 return _IMP_kernel._ConstRestraint_do_get_inputs(self)
5769 def get_version_info(self):
5770 """get_version_info(_ConstRestraint self) -> VersionInfo"""
5771 return _IMP_kernel._ConstRestraint_get_version_info(self)
5774 """__str__(_ConstRestraint self) -> std::string"""
5775 return _IMP_kernel._ConstRestraint___str__(self)
5778 """__repr__(_ConstRestraint self) -> std::string"""
5779 return _IMP_kernel._ConstRestraint___repr__(self)
5782 return _object_cast_to__ConstRestraint(o)
5783 get_from = staticmethod(get_from)
5785 _ConstRestraint_swigregister = _IMP_kernel._ConstRestraint_swigregister
5786 _ConstRestraint_swigregister(_ConstRestraint)
5789 """Proxy of C++ IMP::kernel::internal::_ConstSingletonScore class"""
5790 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5791 __repr__ = _swig_repr
5792 def __init__(self, *args):
5793 """__init__(IMP::kernel::internal::_ConstSingletonScore self, double v) -> _ConstSingletonScore"""
5794 this = _IMP_kernel.new__ConstSingletonScore(*args)
5795 try: self.this.append(this)
5796 except: self.this = this
5797 def do_get_inputs(self, *args):
5798 """do_get_inputs(_ConstSingletonScore self, Model arg2, IMP::kernel::ParticleIndexes const & arg3) -> IMP::kernel::ModelObjectsTemp"""
5799 return _IMP_kernel._ConstSingletonScore_do_get_inputs(self, *args)
5801 def get_version_info(self):
5802 """get_version_info(_ConstSingletonScore self) -> VersionInfo"""
5803 return _IMP_kernel._ConstSingletonScore_get_version_info(self)
5805 _ConstSingletonScore_swigregister = _IMP_kernel._ConstSingletonScore_swigregister
5806 _ConstSingletonScore_swigregister(_ConstSingletonScore)
5809 """Proxy of C++ IMP::kernel::internal::_ConstPairScore class"""
5810 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5811 __repr__ = _swig_repr
5812 def __init__(self, *args):
5813 """__init__(IMP::kernel::internal::_ConstPairScore self, double v) -> _ConstPairScore"""
5814 this = _IMP_kernel.new__ConstPairScore(*args)
5815 try: self.this.append(this)
5816 except: self.this = this
5817 def do_get_inputs(self, *args):
5818 """do_get_inputs(_ConstPairScore self, Model arg2, IMP::kernel::ParticleIndexes const & arg3) -> IMP::kernel::ModelObjectsTemp"""
5819 return _IMP_kernel._ConstPairScore_do_get_inputs(self, *args)
5821 def get_version_info(self):
5822 """get_version_info(_ConstPairScore self) -> VersionInfo"""
5823 return _IMP_kernel._ConstPairScore_get_version_info(self)
5825 _ConstPairScore_swigregister = _IMP_kernel._ConstPairScore_swigregister
5826 _ConstPairScore_swigregister(_ConstPairScore)
5829 """Proxy of C++ IMP::kernel::internal::_TrivialDecorator class"""
5830 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5831 def __init__(self, *args):
5833 __init__(IMP::kernel::internal::_TrivialDecorator self) -> _TrivialDecorator
5834 __init__(IMP::kernel::internal::_TrivialDecorator self, Model m, ::IMP::kernel::ParticleIndex id) -> _TrivialDecorator
5835 __init__(IMP::kernel::internal::_TrivialDecorator self, _ParticleAdaptor d) -> _TrivialDecorator
5837 this = _IMP_kernel.new__TrivialDecorator(*args)
5838 try: self.this.append(this)
5839 except: self.this = this
5840 def show(self, *args):
5842 show(_TrivialDecorator self, _ostream out=std::cout)
5843 show(_TrivialDecorator self)
5845 return _IMP_kernel._TrivialDecorator_show(self, *args)
5847 def setup_particle(*args):
5849 setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> _TrivialDecorator
5850 setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
5852 return _IMP_kernel._TrivialDecorator_setup_particle(*args)
5854 setup_particle = staticmethod(setup_particle)
5855 def get_is_setup(*args):
5857 get_is_setup(_ParticleAdaptor p) -> bool
5858 get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
5860 return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
5862 get_is_setup = staticmethod(get_is_setup)
5863 def add_attribute(self, *args):
5865 add_attribute(_TrivialDecorator self, FloatKey k, IMP::Float v, bool opt)
5866 add_attribute(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
5867 add_attribute(_TrivialDecorator self, IntKey a0, IMP::Int a1)
5868 add_attribute(_TrivialDecorator self, StringKey a0, IMP::String a1)
5869 add_attribute(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
5870 add_attribute(_TrivialDecorator self, ObjectKey a0, Object a1)
5872 return _IMP_kernel._TrivialDecorator_add_attribute(self, *args)
5874 def get_value(self, *args):
5876 get_value(_TrivialDecorator self, FloatKey a0) -> IMP::Float
5877 get_value(_TrivialDecorator self, IntKey a0) -> IMP::Int
5878 get_value(_TrivialDecorator self, StringKey a0) -> IMP::String
5879 get_value(_TrivialDecorator self, ParticleIndexKey a0) -> Particle
5880 get_value(_TrivialDecorator self, ObjectKey a0) -> Object
5882 return _IMP_kernel._TrivialDecorator_get_value(self, *args)
5884 def set_value(self, *args):
5886 set_value(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
5887 set_value(_TrivialDecorator self, IntKey a0, IMP::Int a1)
5888 set_value(_TrivialDecorator self, StringKey a0, IMP::String a1)
5889 set_value(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
5890 set_value(_TrivialDecorator self, ObjectKey a0, Object a1)
5892 return _IMP_kernel._TrivialDecorator_set_value(self, *args)
5894 def remove_attribute(self, *args):
5896 remove_attribute(_TrivialDecorator self, FloatKey a0)
5897 remove_attribute(_TrivialDecorator self, IntKey a0)
5898 remove_attribute(_TrivialDecorator self, StringKey a0)
5899 remove_attribute(_TrivialDecorator self, ParticleIndexKey a0)
5900 remove_attribute(_TrivialDecorator self, ObjectKey a0)
5902 return _IMP_kernel._TrivialDecorator_remove_attribute(self, *args)
5904 def has_attribute(self, *args):
5906 has_attribute(_TrivialDecorator self, FloatKey a0) -> bool
5907 has_attribute(_TrivialDecorator self, IntKey a0) -> bool
5908 has_attribute(_TrivialDecorator self, StringKey a0) -> bool
5909 has_attribute(_TrivialDecorator self, ParticleIndexKey a0) -> bool
5910 has_attribute(_TrivialDecorator self, ObjectKey a0) -> bool
5912 return _IMP_kernel._TrivialDecorator_has_attribute(self, *args)
5914 def get_derivative(self, *args):
5915 """get_derivative(_TrivialDecorator self, FloatKey a0) -> double"""
5916 return _IMP_kernel._TrivialDecorator_get_derivative(self, *args)
5919 """get_name(_TrivialDecorator self) -> std::string"""
5920 return _IMP_kernel._TrivialDecorator_get_name(self)
5922 def clear_caches(self):
5923 """clear_caches(_TrivialDecorator self)"""
5924 return _IMP_kernel._TrivialDecorator_clear_caches(self)
5926 def set_name(self, *args):
5927 """set_name(_TrivialDecorator self, std::string a0)"""
5928 return _IMP_kernel._TrivialDecorator_set_name(self, *args)
5931 """set_check_level(_TrivialDecorator self, IMP::base::CheckLevel a0)"""
5932 return _IMP_kernel._TrivialDecorator_set_check_level(self, *args)
5934 def add_to_derivative(self, *args):
5935 """add_to_derivative(_TrivialDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5936 return _IMP_kernel._TrivialDecorator_add_to_derivative(self, *args)
5938 def set_is_optimized(self, *args):
5939 """set_is_optimized(_TrivialDecorator self, FloatKey a0, bool a1)"""
5940 return _IMP_kernel._TrivialDecorator_set_is_optimized(self, *args)
5942 def get_is_optimized(self, *args):
5943 """get_is_optimized(_TrivialDecorator self, FloatKey a0) -> bool"""
5944 return _IMP_kernel._TrivialDecorator_get_is_optimized(self, *args)
5947 """get_check_level(_TrivialDecorator self) -> IMP::base::CheckLevel"""
5948 return _IMP_kernel._TrivialDecorator_get_check_level(self)
5950 def __eq__(self, *args):
5952 __eq__(_TrivialDecorator self, _TrivialDecorator o) -> bool
5953 __eq__(_TrivialDecorator self, Particle d) -> bool
5955 return _IMP_kernel._TrivialDecorator___eq__(self, *args)
5957 def __ne__(self, *args):
5959 __ne__(_TrivialDecorator self, _TrivialDecorator o) -> bool
5960 __ne__(_TrivialDecorator self, Particle d) -> bool
5962 return _IMP_kernel._TrivialDecorator___ne__(self, *args)
5964 def __le__(self, *args):
5966 __le__(_TrivialDecorator self, _TrivialDecorator o) -> bool
5967 __le__(_TrivialDecorator self, Particle d) -> bool
5969 return _IMP_kernel._TrivialDecorator___le__(self, *args)
5971 def __lt__(self, *args):
5973 __lt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
5974 __lt__(_TrivialDecorator self, Particle d) -> bool
5976 return _IMP_kernel._TrivialDecorator___lt__(self, *args)
5978 def __ge__(self, *args):
5980 __ge__(_TrivialDecorator self, _TrivialDecorator o) -> bool
5981 __ge__(_TrivialDecorator self, Particle d) -> bool
5983 return _IMP_kernel._TrivialDecorator___ge__(self, *args)
5985 def __gt__(self, *args):
5987 __gt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
5988 __gt__(_TrivialDecorator self, Particle d) -> bool
5990 return _IMP_kernel._TrivialDecorator___gt__(self, *args)
5993 """__hash__(_TrivialDecorator self) -> std::size_t"""
5994 return _IMP_kernel._TrivialDecorator___hash__(self)
5997 """__str__(_TrivialDecorator self) -> std::string"""
5998 return _IMP_kernel._TrivialDecorator___str__(self)
6001 """__repr__(_TrivialDecorator self) -> std::string"""
6002 return _IMP_kernel._TrivialDecorator___repr__(self)
6004 __swig_destroy__ = _IMP_kernel.delete__TrivialDecorator
6005 __del__ =
lambda self :
None;
6006 _TrivialDecorator_swigregister = _IMP_kernel._TrivialDecorator_swigregister
6007 _TrivialDecorator_swigregister(_TrivialDecorator)
6009 def _TrivialDecorator_setup_particle(*args):
6011 setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> _TrivialDecorator
6012 _TrivialDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
6014 return _IMP_kernel._TrivialDecorator_setup_particle(*args)
6016 def _TrivialDecorator_get_is_setup(*args):
6018 get_is_setup(_ParticleAdaptor p) -> bool
6019 _TrivialDecorator_get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
6021 return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
6023 class _TrivialDerivedDecorator(_TrivialDecorator):
6024 """Proxy of C++ IMP::kernel::internal::_TrivialDerivedDecorator class"""
6025 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6026 def __init__(self, *args):
6028 __init__(IMP::kernel::internal::_TrivialDerivedDecorator self) -> _TrivialDerivedDecorator
6029 __init__(IMP::kernel::internal::_TrivialDerivedDecorator self, Model m, ::IMP::kernel::ParticleIndex id) -> _TrivialDerivedDecorator
6030 __init__(IMP::kernel::internal::_TrivialDerivedDecorator self, _ParticleAdaptor d) -> _TrivialDerivedDecorator
6032 this = _IMP_kernel.new__TrivialDerivedDecorator(*args)
6033 try: self.this.append(this)
6034 except: self.this = this
6035 def show(self, *args):
6037 show(_TrivialDerivedDecorator self, _ostream out=std::cout)
6038 show(_TrivialDerivedDecorator self)
6040 return _IMP_kernel._TrivialDerivedDecorator_show(self, *args)
6042 def setup_particle(*args):
6044 setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> _TrivialDerivedDecorator
6045 setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
6047 return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
6049 setup_particle = staticmethod(setup_particle)
6050 def get_is_setup(*args):
6052 get_is_setup(_ParticleAdaptor p) -> bool
6053 get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
6055 return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
6057 get_is_setup = staticmethod(get_is_setup)
6058 def add_attribute(self, *args):
6060 add_attribute(_TrivialDerivedDecorator self, FloatKey k, IMP::Float v, bool opt)
6061 add_attribute(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
6062 add_attribute(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
6063 add_attribute(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
6064 add_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
6065 add_attribute(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
6067 return _IMP_kernel._TrivialDerivedDecorator_add_attribute(self, *args)
6069 def get_value(self, *args):
6071 get_value(_TrivialDerivedDecorator self, FloatKey a0) -> IMP::Float
6072 get_value(_TrivialDerivedDecorator self, IntKey a0) -> IMP::Int
6073 get_value(_TrivialDerivedDecorator self, StringKey a0) -> IMP::String
6074 get_value(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> Particle
6075 get_value(_TrivialDerivedDecorator self, ObjectKey a0) -> Object
6077 return _IMP_kernel._TrivialDerivedDecorator_get_value(self, *args)
6079 def set_value(self, *args):
6081 set_value(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
6082 set_value(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
6083 set_value(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
6084 set_value(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
6085 set_value(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
6087 return _IMP_kernel._TrivialDerivedDecorator_set_value(self, *args)
6089 def remove_attribute(self, *args):
6091 remove_attribute(_TrivialDerivedDecorator self, FloatKey a0)
6092 remove_attribute(_TrivialDerivedDecorator self, IntKey a0)
6093 remove_attribute(_TrivialDerivedDecorator self, StringKey a0)
6094 remove_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0)
6095 remove_attribute(_TrivialDerivedDecorator self, ObjectKey a0)
6097 return _IMP_kernel._TrivialDerivedDecorator_remove_attribute(self, *args)
6099 def has_attribute(self, *args):
6101 has_attribute(_TrivialDerivedDecorator self, FloatKey a0) -> bool
6102 has_attribute(_TrivialDerivedDecorator self, IntKey a0) -> bool
6103 has_attribute(_TrivialDerivedDecorator self, StringKey a0) -> bool
6104 has_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> bool
6105 has_attribute(_TrivialDerivedDecorator self, ObjectKey a0) -> bool
6107 return _IMP_kernel._TrivialDerivedDecorator_has_attribute(self, *args)
6109 def get_derivative(self, *args):
6110 """get_derivative(_TrivialDerivedDecorator self, FloatKey a0) -> double"""
6111 return _IMP_kernel._TrivialDerivedDecorator_get_derivative(self, *args)
6114 """get_name(_TrivialDerivedDecorator self) -> std::string"""
6115 return _IMP_kernel._TrivialDerivedDecorator_get_name(self)
6117 def clear_caches(self):
6118 """clear_caches(_TrivialDerivedDecorator self)"""
6119 return _IMP_kernel._TrivialDerivedDecorator_clear_caches(self)
6121 def set_name(self, *args):
6122 """set_name(_TrivialDerivedDecorator self, std::string a0)"""
6123 return _IMP_kernel._TrivialDerivedDecorator_set_name(self, *args)
6126 """set_check_level(_TrivialDerivedDecorator self, IMP::base::CheckLevel a0)"""
6127 return _IMP_kernel._TrivialDerivedDecorator_set_check_level(self, *args)
6129 def add_to_derivative(self, *args):
6130 """add_to_derivative(_TrivialDerivedDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6131 return _IMP_kernel._TrivialDerivedDecorator_add_to_derivative(self, *args)
6133 def set_is_optimized(self, *args):
6134 """set_is_optimized(_TrivialDerivedDecorator self, FloatKey a0, bool a1)"""
6135 return _IMP_kernel._TrivialDerivedDecorator_set_is_optimized(self, *args)
6137 def get_is_optimized(self, *args):
6138 """get_is_optimized(_TrivialDerivedDecorator self, FloatKey a0) -> bool"""
6139 return _IMP_kernel._TrivialDerivedDecorator_get_is_optimized(self, *args)
6142 """get_check_level(_TrivialDerivedDecorator self) -> IMP::base::CheckLevel"""
6143 return _IMP_kernel._TrivialDerivedDecorator_get_check_level(self)
6145 def __eq__(self, *args):
6147 __eq__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
6148 __eq__(_TrivialDerivedDecorator self, Particle d) -> bool
6150 return _IMP_kernel._TrivialDerivedDecorator___eq__(self, *args)
6152 def __ne__(self, *args):
6154 __ne__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
6155 __ne__(_TrivialDerivedDecorator self, Particle d) -> bool
6157 return _IMP_kernel._TrivialDerivedDecorator___ne__(self, *args)
6159 def __le__(self, *args):
6161 __le__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
6162 __le__(_TrivialDerivedDecorator self, Particle d) -> bool
6164 return _IMP_kernel._TrivialDerivedDecorator___le__(self, *args)
6166 def __lt__(self, *args):
6168 __lt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
6169 __lt__(_TrivialDerivedDecorator self, Particle d) -> bool
6171 return _IMP_kernel._TrivialDerivedDecorator___lt__(self, *args)
6173 def __ge__(self, *args):
6175 __ge__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
6176 __ge__(_TrivialDerivedDecorator self, Particle d) -> bool
6178 return _IMP_kernel._TrivialDerivedDecorator___ge__(self, *args)
6180 def __gt__(self, *args):
6182 __gt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
6183 __gt__(_TrivialDerivedDecorator self, Particle d) -> bool
6185 return _IMP_kernel._TrivialDerivedDecorator___gt__(self, *args)
6188 """__hash__(_TrivialDerivedDecorator self) -> std::size_t"""
6189 return _IMP_kernel._TrivialDerivedDecorator___hash__(self)
6192 """__str__(_TrivialDerivedDecorator self) -> std::string"""
6193 return _IMP_kernel._TrivialDerivedDecorator___str__(self)
6196 """__repr__(_TrivialDerivedDecorator self) -> std::string"""
6197 return _IMP_kernel._TrivialDerivedDecorator___repr__(self)
6199 __swig_destroy__ = _IMP_kernel.delete__TrivialDerivedDecorator
6200 __del__ =
lambda self :
None;
6201 _TrivialDerivedDecorator_swigregister = _IMP_kernel._TrivialDerivedDecorator_swigregister
6202 _TrivialDerivedDecorator_swigregister(_TrivialDerivedDecorator)
6204 def _TrivialDerivedDecorator_setup_particle(*args):
6206 setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> _TrivialDerivedDecorator
6207 _TrivialDerivedDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
6209 return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
6211 def _TrivialDerivedDecorator_get_is_setup(*args):
6213 get_is_setup(_ParticleAdaptor p) -> bool
6214 _TrivialDerivedDecorator_get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
6216 return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
6218 class _TrivialTraitsDecorator(
Decorator):
6219 """Proxy of C++ IMP::kernel::internal::_TrivialTraitsDecorator class"""
6220 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6221 def get_decorator_traits(self):
6222 """get_decorator_traits(_TrivialTraitsDecorator self) -> StringKey"""
6223 return _IMP_kernel._TrivialTraitsDecorator_get_decorator_traits(self)
6225 def get_default_decorator_traits():
6226 """get_default_decorator_traits() -> StringKey"""
6227 return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
6229 get_default_decorator_traits = staticmethod(get_default_decorator_traits)
6230 def __init__(self, *args):
6232 __init__(IMP::kernel::internal::_TrivialTraitsDecorator self) -> _TrivialTraitsDecorator
6233 __init__(IMP::kernel::internal::_TrivialTraitsDecorator self, Model m, ::IMP::kernel::ParticleIndex id, StringKey tr=get_default_key()) -> _TrivialTraitsDecorator
6234 __init__(IMP::kernel::internal::_TrivialTraitsDecorator self, Model m, ::IMP::kernel::ParticleIndex id) -> _TrivialTraitsDecorator
6235 __init__(IMP::kernel::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d, StringKey tr=get_default_key()) -> _TrivialTraitsDecorator
6236 __init__(IMP::kernel::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d) -> _TrivialTraitsDecorator
6238 this = _IMP_kernel.new__TrivialTraitsDecorator(*args)
6239 try: self.this.append(this)
6240 except: self.this = this
6241 def show(self, *args):
6243 show(_TrivialTraitsDecorator self, _ostream out=std::cout)
6244 show(_TrivialTraitsDecorator self)
6246 return _IMP_kernel._TrivialTraitsDecorator_show(self, *args)
6248 def setup_particle(*args):
6250 setup_particle(Model m, IMP::kernel::ParticleIndex pi, StringKey tr=IMP::kernel::internal::_TrivialTraitsDecorator::get_default_decorator_traits()) -> _TrivialTraitsDecorator
6251 setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> _TrivialTraitsDecorator
6252 setup_particle(_ParticleAdaptor d, StringKey tr=IMP::kernel::internal::_TrivialTraitsDecorator::get_default_decorator_traits()) -> _TrivialTraitsDecorator
6253 setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
6255 return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
6257 setup_particle = staticmethod(setup_particle)
6258 def get_is_setup(*args):
6260 get_is_setup(_ParticleAdaptor p, StringKey tr=get_default_key()) -> bool
6261 get_is_setup(_ParticleAdaptor p) -> bool
6262 get_is_setup(Model m, IMP::kernel::ParticleIndex pi, StringKey k=get_default_key()) -> bool
6263 get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
6265 return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
6267 get_is_setup = staticmethod(get_is_setup)
6268 def get_default_key():
6269 """get_default_key() -> StringKey"""
6270 return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
6272 get_default_key = staticmethod(get_default_key)
6273 def add_attribute(self, *args):
6275 add_attribute(_TrivialTraitsDecorator self, FloatKey k, IMP::Float v, bool opt)
6276 add_attribute(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
6277 add_attribute(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
6278 add_attribute(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
6279 add_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
6280 add_attribute(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
6282 return _IMP_kernel._TrivialTraitsDecorator_add_attribute(self, *args)
6284 def get_value(self, *args):
6286 get_value(_TrivialTraitsDecorator self, FloatKey a0) -> IMP::Float
6287 get_value(_TrivialTraitsDecorator self, IntKey a0) -> IMP::Int
6288 get_value(_TrivialTraitsDecorator self, StringKey a0) -> IMP::String
6289 get_value(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> Particle
6290 get_value(_TrivialTraitsDecorator self, ObjectKey a0) -> Object
6292 return _IMP_kernel._TrivialTraitsDecorator_get_value(self, *args)
6294 def set_value(self, *args):
6296 set_value(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
6297 set_value(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
6298 set_value(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
6299 set_value(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
6300 set_value(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
6302 return _IMP_kernel._TrivialTraitsDecorator_set_value(self, *args)
6304 def remove_attribute(self, *args):
6306 remove_attribute(_TrivialTraitsDecorator self, FloatKey a0)
6307 remove_attribute(_TrivialTraitsDecorator self, IntKey a0)
6308 remove_attribute(_TrivialTraitsDecorator self, StringKey a0)
6309 remove_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0)
6310 remove_attribute(_TrivialTraitsDecorator self, ObjectKey a0)
6312 return _IMP_kernel._TrivialTraitsDecorator_remove_attribute(self, *args)
6314 def has_attribute(self, *args):
6316 has_attribute(_TrivialTraitsDecorator self, FloatKey a0) -> bool
6317 has_attribute(_TrivialTraitsDecorator self, IntKey a0) -> bool
6318 has_attribute(_TrivialTraitsDecorator self, StringKey a0) -> bool
6319 has_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> bool
6320 has_attribute(_TrivialTraitsDecorator self, ObjectKey a0) -> bool
6322 return _IMP_kernel._TrivialTraitsDecorator_has_attribute(self, *args)
6324 def get_derivative(self, *args):
6325 """get_derivative(_TrivialTraitsDecorator self, FloatKey a0) -> double"""
6326 return _IMP_kernel._TrivialTraitsDecorator_get_derivative(self, *args)
6329 """get_name(_TrivialTraitsDecorator self) -> std::string"""
6330 return _IMP_kernel._TrivialTraitsDecorator_get_name(self)
6332 def clear_caches(self):
6333 """clear_caches(_TrivialTraitsDecorator self)"""
6334 return _IMP_kernel._TrivialTraitsDecorator_clear_caches(self)
6336 def set_name(self, *args):
6337 """set_name(_TrivialTraitsDecorator self, std::string a0)"""
6338 return _IMP_kernel._TrivialTraitsDecorator_set_name(self, *args)
6341 """set_check_level(_TrivialTraitsDecorator self, IMP::base::CheckLevel a0)"""
6342 return _IMP_kernel._TrivialTraitsDecorator_set_check_level(self, *args)
6344 def add_to_derivative(self, *args):
6345 """add_to_derivative(_TrivialTraitsDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6346 return _IMP_kernel._TrivialTraitsDecorator_add_to_derivative(self, *args)
6348 def set_is_optimized(self, *args):
6349 """set_is_optimized(_TrivialTraitsDecorator self, FloatKey a0, bool a1)"""
6350 return _IMP_kernel._TrivialTraitsDecorator_set_is_optimized(self, *args)
6352 def get_is_optimized(self, *args):
6353 """get_is_optimized(_TrivialTraitsDecorator self, FloatKey a0) -> bool"""
6354 return _IMP_kernel._TrivialTraitsDecorator_get_is_optimized(self, *args)
6357 """get_check_level(_TrivialTraitsDecorator self) -> IMP::base::CheckLevel"""
6358 return _IMP_kernel._TrivialTraitsDecorator_get_check_level(self)
6360 def __eq__(self, *args):
6362 __eq__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
6363 __eq__(_TrivialTraitsDecorator self, Particle d) -> bool
6365 return _IMP_kernel._TrivialTraitsDecorator___eq__(self, *args)
6367 def __ne__(self, *args):
6369 __ne__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
6370 __ne__(_TrivialTraitsDecorator self, Particle d) -> bool
6372 return _IMP_kernel._TrivialTraitsDecorator___ne__(self, *args)
6374 def __le__(self, *args):
6376 __le__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
6377 __le__(_TrivialTraitsDecorator self, Particle d) -> bool
6379 return _IMP_kernel._TrivialTraitsDecorator___le__(self, *args)
6381 def __lt__(self, *args):
6383 __lt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
6384 __lt__(_TrivialTraitsDecorator self, Particle d) -> bool
6386 return _IMP_kernel._TrivialTraitsDecorator___lt__(self, *args)
6388 def __ge__(self, *args):
6390 __ge__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
6391 __ge__(_TrivialTraitsDecorator self, Particle d) -> bool
6393 return _IMP_kernel._TrivialTraitsDecorator___ge__(self, *args)
6395 def __gt__(self, *args):
6397 __gt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
6398 __gt__(_TrivialTraitsDecorator self, Particle d) -> bool
6400 return _IMP_kernel._TrivialTraitsDecorator___gt__(self, *args)
6403 """__hash__(_TrivialTraitsDecorator self) -> std::size_t"""
6404 return _IMP_kernel._TrivialTraitsDecorator___hash__(self)
6407 """__str__(_TrivialTraitsDecorator self) -> std::string"""
6408 return _IMP_kernel._TrivialTraitsDecorator___str__(self)
6411 """__repr__(_TrivialTraitsDecorator self) -> std::string"""
6412 return _IMP_kernel._TrivialTraitsDecorator___repr__(self)
6414 __swig_destroy__ = _IMP_kernel.delete__TrivialTraitsDecorator
6415 __del__ =
lambda self :
None;
6416 _TrivialTraitsDecorator_swigregister = _IMP_kernel._TrivialTraitsDecorator_swigregister
6417 _TrivialTraitsDecorator_swigregister(_TrivialTraitsDecorator)
6419 def _TrivialTraitsDecorator_get_default_decorator_traits():
6420 """_TrivialTraitsDecorator_get_default_decorator_traits() -> StringKey"""
6421 return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
6423 def _TrivialTraitsDecorator_setup_particle(*args):
6425 setup_particle(Model m, IMP::kernel::ParticleIndex pi, StringKey tr=IMP::kernel::internal::_TrivialTraitsDecorator::get_default_decorator_traits()) -> _TrivialTraitsDecorator
6426 setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> _TrivialTraitsDecorator
6427 setup_particle(_ParticleAdaptor d, StringKey tr=IMP::kernel::internal::_TrivialTraitsDecorator::get_default_decorator_traits()) -> _TrivialTraitsDecorator
6428 _TrivialTraitsDecorator_setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
6430 return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
6432 def _TrivialTraitsDecorator_get_is_setup(*args):
6434 get_is_setup(_ParticleAdaptor p, StringKey tr=get_default_key()) -> bool
6435 get_is_setup(_ParticleAdaptor p) -> bool
6436 get_is_setup(Model m, IMP::kernel::ParticleIndex pi, StringKey k=get_default_key()) -> bool
6437 _TrivialTraitsDecorator_get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
6439 return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
6441 def _TrivialTraitsDecorator_get_default_key():
6442 """_TrivialTraitsDecorator_get_default_key() -> StringKey"""
6443 return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
6446 def __lshift__(*args):
6448 __lshift__(_ostream out, _TrivialDecorator n) -> _ostream
6449 __lshift__(_ostream out, _TrivialDerivedDecorator n) -> _ostream
6450 __lshift__(_ostream out, _TrivialTraitsDecorator n) -> _ostream
6452 return _IMP_kernel.__lshift__(*args)
6454 """Proxy of C++ IMP::kernel::internal::_ConstOptimizer class"""
6455 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6456 def __init__(self, *args):
6457 """__init__(IMP::kernel::internal::_ConstOptimizer self, Model m) -> _ConstOptimizer"""
6458 this = _IMP_kernel.new__ConstOptimizer(*args)
6459 try: self.this.append(this)
6460 except: self.this = this
6461 def do_optimize(self, *args):
6462 """do_optimize(_ConstOptimizer self, unsigned int max_steps) -> IMP::Float"""
6463 return _IMP_kernel._ConstOptimizer_do_optimize(self, *args)
6465 def get_version_info(self):
6466 """get_version_info(_ConstOptimizer self) -> VersionInfo"""
6467 return _IMP_kernel._ConstOptimizer_get_version_info(self)
6470 """__str__(_ConstOptimizer self) -> std::string"""
6471 return _IMP_kernel._ConstOptimizer___str__(self)
6474 """__repr__(_ConstOptimizer self) -> std::string"""
6475 return _IMP_kernel._ConstOptimizer___repr__(self)
6478 return _object_cast_to__ConstOptimizer(o)
6479 get_from = staticmethod(get_from)
6481 _ConstOptimizer_swigregister = _IMP_kernel._ConstOptimizer_swigregister
6482 _ConstOptimizer_swigregister(_ConstOptimizer)
6485 def get_particle(*args):
6486 """get_particle(Particle p) -> Particle"""
6487 return _IMP_kernel.get_particle(*args)
6489 def _decorator_test(*args):
6490 """_decorator_test(Particle p)"""
6491 return _IMP_kernel._decorator_test(*args)
6493 def _overloaded_decorator(*args):
6495 _overloaded_decorator(_TrivialDecorator a) -> int
6496 _overloaded_decorator(_TrivialDerivedDecorator a) -> int
6498 return _IMP_kernel._overloaded_decorator(*args)
6500 def _take_particles(*args):
6502 _take_particles(IMP::kernel::Particles const & ps) -> unsigned int
6503 _take_particles(Model m, IMP::kernel::Particles const & ps) -> unsigned int
6504 _take_particles(Model m, IMP::kernel::Particles const & ps, TextOutput out) -> unsigned int
6506 return _IMP_kernel._take_particles(*args)
6508 def _give_particles(*args):
6509 """_give_particles(Model m) -> IMP::kernel::Particles const &"""
6510 return _IMP_kernel._give_particles(*args)
6512 def _pass_particles(*args):
6513 """_pass_particles(IMP::kernel::Particles const & ps) -> IMP::kernel::Particles const &"""
6514 return _IMP_kernel._pass_particles(*args)
6516 def _pass_particle(*args):
6517 """_pass_particle(Particle ps) -> Particle"""
6518 return _IMP_kernel._pass_particle(*args)
6520 def _pass_particle_pair(*args):
6521 """_pass_particle_pair(IMP::kernel::ParticlePair const & pp) -> IMP::kernel::ParticlePair const &"""
6522 return _IMP_kernel._pass_particle_pair(*args)
6524 def _give_particles_copy(*args):
6525 """_give_particles_copy(Model m) -> IMP::kernel::Particles"""
6526 return _IMP_kernel._give_particles_copy(*args)
6528 def _pass_float_keys(*args):
6529 """_pass_float_keys(IMP::kernel::FloatKeys const & input) -> IMP::kernel::FloatKeys"""
6530 return _IMP_kernel._pass_float_keys(*args)
6534 _pass(IMP::kernel::Particles const & p) -> IMP::kernel::Particles const
6535 _pass(IMP::kernel::Restraints const & p) -> IMP::kernel::Restraints const &
6537 return _IMP_kernel._pass(*args)
6539 def _pass_decorators(*args):
6540 """_pass_decorators(IMP::kernel::internal::_TrivialDecorators const & p) -> IMP::kernel::internal::_TrivialDecorators const &"""
6541 return _IMP_kernel._pass_decorators(*args)
6543 def _pass_decorator_traits(*args):
6544 """_pass_decorator_traits(IMP::kernel::internal::_TrivialTraitsDecorators const & p) -> IMP::kernel::internal::_TrivialTraitsDecorators const &"""
6545 return _IMP_kernel._pass_decorator_traits(*args)
6547 def _pass_particle_pairs(*args):
6548 """_pass_particle_pairs(IMP::kernel::ParticlePairsTemp const & p) -> IMP::kernel::ParticlePairsTemp"""
6549 return _IMP_kernel._pass_particle_pairs(*args)
6551 def _pass_particle_index_pairs(*args):
6552 """_pass_particle_index_pairs(IMP::kernel::ParticleIndexPairs const & p) -> IMP::kernel::ParticleIndexPairs"""
6553 return _IMP_kernel._pass_particle_index_pairs(*args)
6555 def _pass_model_objects(*args):
6556 """_pass_model_objects(IMP::kernel::ModelObjectsTemp const & p) -> IMP::kernel::ModelObjectsTemp"""
6557 return _IMP_kernel._pass_model_objects(*args)
6559 def _pass_particles_temps(*args):
6560 """_pass_particles_temps(IMP::kernel::ParticlesTemps const & ps) -> IMP::kernel::ParticlesTemps"""
6561 return _IMP_kernel._pass_particles_temps(*args)
6563 def _test_overload(*args):
6565 _test_overload(IMP::kernel::Particles const & ps) -> int
6566 _test_overload(IMP::kernel::Restraints const & ps) -> int
6568 return _IMP_kernel._test_overload(*args)
6570 def _get_range(*args):
6571 """_get_range(Model m, FloatKey k) -> IMP::FloatRange"""
6572 return _IMP_kernel._get_range(*args)
6574 def _create_particles_from_pdb(*args):
6575 """_create_particles_from_pdb(std::string name, Model m) -> IMP::kernel::ParticlesTemp"""
6576 return _IMP_kernel._create_particles_from_pdb(*args)
6578 """Proxy of C++ IMP::kernel::internal::_LogPairScore class"""
6579 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6580 __repr__ = _swig_repr
6582 """__init__(IMP::kernel::internal::_LogPairScore self) -> _LogPairScore"""
6583 this = _IMP_kernel.new__LogPairScore()
6584 try: self.this.append(this)
6585 except: self.this = this
6586 def do_get_inputs(self, *args):
6587 """do_get_inputs(_LogPairScore self, Model arg2, IMP::kernel::ParticleIndexes const & arg3) -> IMP::kernel::ModelObjectsTemp"""
6588 return _IMP_kernel._LogPairScore_do_get_inputs(self, *args)
6590 def get_version_info(self):
6591 """get_version_info(_LogPairScore self) -> VersionInfo"""
6592 return _IMP_kernel._LogPairScore_get_version_info(self)
6594 def get_particle_pairs(self):
6595 """get_particle_pairs(_LogPairScore self) -> IMP::kernel::ParticlePairsTemp"""
6596 return _IMP_kernel._LogPairScore_get_particle_pairs(self)
6599 """clear(_LogPairScore self)"""
6600 return _IMP_kernel._LogPairScore_clear(self)
6602 def get_contains(self, *args):
6603 """get_contains(_LogPairScore self, IMP::kernel::ParticlePair const & pp) -> bool"""
6604 return _IMP_kernel._LogPairScore_get_contains(self, *args)
6606 _LogPairScore_swigregister = _IMP_kernel._LogPairScore_swigregister
6607 _LogPairScore_swigregister(_LogPairScore)
6610 def _overloaded_particles(*args):
6612 _overloaded_particles(Particle arg1)
6613 _overloaded_particles(IMP::kernel::Particles const & arg1)
6614 _overloaded_particles(IMP::kernel::ParticlesTemp const & arg1)
6615 _overloaded_particles(Model arg1, IMP::kernel::ParticleIndexes const & arg2)
6616 _overloaded_particles(IMP::kernel::internal::_TrivialDecorators const & arg1)
6617 _overloaded_particles(_TrivialDecorator arg1)
6619 return _IMP_kernel._overloaded_particles(*args)
6620 class _ImplicitParticles(object):
6621 """Proxy of C++ IMP::kernel::internal::_ImplicitParticles class"""
6622 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6623 __repr__ = _swig_repr
6624 def __init__(self, *args):
6626 __init__(IMP::kernel::internal::_ImplicitParticles self, Particle arg2) -> _ImplicitParticles
6627 __init__(IMP::kernel::internal::_ImplicitParticles self, IMP::kernel::Particles const & arg2) -> _ImplicitParticles
6628 __init__(IMP::kernel::internal::_ImplicitParticles self, IMP::kernel::ParticlesTemp const & arg2) -> _ImplicitParticles
6629 __init__(IMP::kernel::internal::_ImplicitParticles self, Model arg2, IMP::kernel::ParticleIndexes const & arg3) -> _ImplicitParticles
6630 __init__(IMP::kernel::internal::_ImplicitParticles self, IMP::kernel::internal::_TrivialDecorators const & arg2) -> _ImplicitParticles
6631 __init__(IMP::kernel::internal::_ImplicitParticles self, _TrivialDecorator arg2) -> _ImplicitParticles
6633 this = _IMP_kernel.new__ImplicitParticles(*args)
6634 try: self.this.append(this)
6635 except: self.this = this
6636 __swig_destroy__ = _IMP_kernel.delete__ImplicitParticles
6637 __del__ =
lambda self :
None;
6638 _ImplicitParticles_swigregister = _IMP_kernel._ImplicitParticles_swigregister
6639 _ImplicitParticles_swigregister(_ImplicitParticles)
6642 def _implicit_particles(*args):
6643 """_implicit_particles(_ImplicitParticles arg1)"""
6644 return _IMP_kernel._implicit_particles(*args)
6646 def _take_particle_adaptor(*args):
6647 """_take_particle_adaptor(_ParticleAdaptor pa) -> IMP::kernel::ParticleIndex"""
6648 return _IMP_kernel._take_particle_adaptor(*args)
6650 def _take_particle_indexes_adaptor(*args):
6651 """_take_particle_indexes_adaptor(_ParticleIndexesAdaptor pa) -> IMP::kernel::ParticleIndexes"""
6652 return _IMP_kernel._take_particle_indexes_adaptor(*args)
6653 class ScopedSetFloatAttribute(IMP.base._RAII):
6654 """Proxy of C++ IMP::kernel::ScopedSetAttribute<(FloatKey,IMP::Float)> class"""
6655 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6656 def __init__(self, *args):
6658 __init__(IMP::kernel::ScopedSetAttribute<(FloatKey,IMP::Float)> self) -> ScopedSetFloatAttribute
6659 __init__(IMP::kernel::ScopedSetAttribute<(FloatKey,IMP::Float)> self, Particle p, FloatKey key, double const & value) -> ScopedSetFloatAttribute
6661 this = _IMP_kernel.new_ScopedSetFloatAttribute(*args)
6662 try: self.this.append(this)
6663 except: self.this = this
6664 def set(self, *args):
6665 """set(ScopedSetFloatAttribute self, Particle p, FloatKey key, double const & value)"""
6666 return _IMP_kernel.ScopedSetFloatAttribute_set(self, *args)
6669 """reset(ScopedSetFloatAttribute self)"""
6670 return _IMP_kernel.ScopedSetFloatAttribute_reset(self)
6672 __swig_destroy__ = _IMP_kernel.delete_ScopedSetFloatAttribute
6673 __del__ =
lambda self :
None;
6674 def show(self, *args):
6676 show(ScopedSetFloatAttribute self, _ostream out=std::cout)
6677 show(ScopedSetFloatAttribute self)
6679 return _IMP_kernel.ScopedSetFloatAttribute_show(self, *args)
6682 """__str__(ScopedSetFloatAttribute self) -> std::string"""
6683 return _IMP_kernel.ScopedSetFloatAttribute___str__(self)
6686 """__repr__(ScopedSetFloatAttribute self) -> std::string"""
6687 return _IMP_kernel.ScopedSetFloatAttribute___repr__(self)
6689 ScopedSetFloatAttribute_swigregister = _IMP_kernel.ScopedSetFloatAttribute_swigregister
6690 ScopedSetFloatAttribute_swigregister(ScopedSetFloatAttribute)
6699 get_networkx_graph=IMP.base.get_networkx_graph
6700 show_altgraph=IMP.base.show_altgraph
6701 show_graphviz=IMP.base.show_graphviz
6706 USAGE= IMP.base.USAGE
6707 USAGE_AND_INTERNAL= IMP.base.USAGE_AND_INTERNAL
6708 TERSE= IMP.base.TERSE
6709 SILENT= IMP.base.SILENT
6710 VERBOSE= IMP.base.VERBOSE
6711 WARNING= IMP.base.WARNING
6712 PROGRESS= IMP.base.PROGRESS
6713 MEMORY= IMP.base.MEMORY
6714 create_temporary_file= IMP.base.create_temporary_file
6715 create_temporary_file_name= IMP.base.create_temporary_file_name
6716 random_number_generator= IMP.base.random_number_generator
6717 set_log_level=IMP.base.set_log_level
6718 set_log_timer=IMP.base.set_log_timer
6719 get_log_level=IMP.base.get_log_level
6720 add_to_log= IMP.base.add_to_log
6721 set_check_level= IMP.base.set_check_level
6722 get_check_level= IMP.base.get_check_level
6726 if sys.platform ==
'win32' and 'IMP_LD_PATH' in os.environ:
6727 dirs = os.environ[
'IMP_LD_PATH'].split(
":")
6728 pathcomps = os.environ[
'PATH'].split(
";")
6730 if d
not in pathcomps:
6731 os.environ[
'PATH'] = d +
';' + os.environ[
'PATH']
6743 """Allow applications to easily implement commmands.
6744 Typically, an IMP application will use an instance of this class
6745 to provide a consistent interface to multiple distinct commands
6746 from a single binary, rather than providing a potentially large
6749 Each command is implemented with a Python module of the same name
6750 that can be imported from the module (for example, if module_name
6751 is 'IMP.foo', the 'bar' command is provided by the IMP.foo.bar Python
6752 module, which would usually be found as modules/foo/pyext/src/bar.py).
6753 Each such module should have a docstring (__doc__) and a main() method
6754 that takes no arguments (the module should also call its main() method
6755 if it is run directly, i.e. with something like
6756 'if __name__=="__main__": main()'). The encompassing module
6757 ('IMP.foo' in the example) should define _all_commands as a Python
6758 list of all valid commands.
6762 def __init__(self, short_help, long_help, module_name):
6764 @param short_help A few words that describe the application.
6765 @param long_help Longer text, used in the 'help' command.
6766 @param module_name Name of the module (e.g. 'IMP.foo') that
6767 implements the commands.
6769 self.short_help = short_help
6770 self.long_help = long_help
6771 self.module_name = module_name
6772 self._all_commands = self.import_module()._all_commands
6773 self._progname = os.path.basename(sys.argv[0])
6776 if len(sys.argv) <= 1:
6777 print(self.short_help +
" Use '%s help' for help." % self._progname)
6779 command = sys.argv[1]
6780 if command
in (
'help',
'--help',
'-h'):
6781 if len(sys.argv) == 3:
6782 self.show_command_help(sys.argv[2])
6785 elif command ==
'--version':
6787 elif command
in self._all_commands:
6788 self.do_command(command)
6790 self.unknown_command(command)
6792 def import_module(self, mod=None):
6793 modname = self.module_name
6795 modname +=
"." + mod
6796 return __import__(modname, {}, {}, [
''])
6798 def unknown_command(self, command):
6799 print(
"Unknown command: '%s'" % command)
6800 print(
"Use '%s help' for help." % self._progname)
6803 def _get_version(self):
6804 return self.import_module().get_module_version()
6806 def show_version(self):
6807 print(self._progname +
' ' + self._get_version())
6809 def show_help(self):
6810 ver = self._get_version()
6811 print(
"%s, version %s." % (self._progname, ver))
6812 print(self.long_help +
"""
6814 This program is part of IMP, the Integrative Modeling Platform,
6815 which is Copyright 2007-2015 IMP Inventors.
6816 For additional information about IMP, see <http://integrativemodeling.org>.
6818 Usage: %s <command> [options] [args]
6820 Commands:""" % self._progname)
6821 commands = self._all_commands[:] + [
'help']
6823 cmdlen = max([len(c)
for c
in commands])
6826 doc =
'Get help on using %s.' % self._progname
6828 doc = self.import_module(c).__doc__
or "<no help>"
6829 c +=
' ' * (cmdlen - len(c))
6830 print(
' ' + c +
' ' + doc)
6832 Use "%s help <command>" for detailed help on any command
6833 or "%s --version" to see the version number.""" % (self._progname,
6836 def do_command(self, command):
6837 mod = self.import_module(command)
6838 sys.argv[0] = self._progname +
' ' + command
6842 def show_command_help(self, command):
6843 if command ==
'help':
6845 elif command
in self._all_commands
or command ==
'help':
6846 mod = self.import_module(command)
6847 sys.argv = [self._progname +
' ' + command,
'--help']
6850 self.unknown_command(command)
6857 """IMP-specific subclass of optparse.OptionParser.
6858 This adds options common to all IMP applications
6859 (see IMP::base::setup_from_argv()).
6862 _use_boost_parser =
True
6864 def __init__(self, *args, **kwargs):
6867 kwargs[
'add_help_option'] =
False
6868 kwargs[
'version'] =
None
6870 if 'imp_module' in kwargs:
6871 del kwargs[
'imp_module']
6873 optparse.OptionParser.__init__(self, *args, **kwargs)
6875 if 'epilog' in kwargs:
6877 del kwargs[
'epilog']
6878 optparse.OptionParser.__init__(self, *args, **kwargs)
6884 def _process_long_opt(self, rargs, values):
6885 if self._use_boost_parser:
6887 optparse.OptionParser._process_long_opt(self, rargs, values)
6888 except optparse.BadOptionError
as err:
6889 if not hasattr(err,
'opt_str') \
6890 and err.msg.startswith(
'no such option:'):
6891 self.largs.append(err.msg[16:])
6893 self.largs.append(err.opt_str)
6895 optparse.OptionParser._process_long_opt(self, rargs, values)
6896 def _process_short_opts(self, rargs, values):
6897 if self._use_boost_parser:
6899 optparse.OptionParser._process_short_opts(self, rargs, values)
6900 except optparse.BadOptionError
as err:
6901 self.largs.append(err.opt_str)
6903 optparse.OptionParser._process_short_opts(self, rargs, values)
6905 def _process_args(self, largs, rargs, values):
6906 if self._use_boost_parser:
6911 dashdash = rargs.index(
'--')
6913 dashdash = len(rargs)
6914 saved_args = rargs[dashdash:]
6915 del rargs[dashdash:]
6916 optparse.OptionParser._process_args(self, largs, rargs, values)
6917 rargs.extend(saved_args)
6919 optparse.OptionParser._process_args(self, largs, rargs, values)
6922 """Parse the command line and return options and positional arguments.
6923 This functions in the same way as the method in the base class
6924 optparse.OptionParser, except that it also processes options common
6925 to all IMP applications (these are not returned in opts, but can be
6926 obtained in the usual way, e.g. by calling
6927 IMP::base::get_string_flag()).
6928 @param[in] num_positional If a positive integer, exactly that
6929 many positional arguments must be specified on the
6930 command line; if a negative integer, that many or
6931 more must be given; if None, any number of positional
6932 arguments can be given.
6937 opts, args = optparse.OptionParser.parse_args(self)
6938 if not self._use_boost_parser:
6940 orig_desc = self.description
6941 orig_usage = self.usage
6943 usage = self.usage.replace(
'%prog ',
'')
6946 if num_positional
is None:
6950 args.append(
'dummy')
6952 numpos = num_positional
6954 self.usage = self.description =
None
6958 self.format_help() \
6959 +
"\nOptions common to all IMP applications:",
6962 self.description = orig_desc
6963 self.usage = orig_usage
6964 if num_positional
is None:
6969 def get_module_version():
6970 """get_module_version() -> std::string const"""
6971 return _IMP_kernel.get_module_version()
6974 """get_example_path(std::string fname) -> std::string"""
6975 return _IMP_kernel.get_example_path(*args)
6978 """get_data_path(std::string fname) -> std::string"""
6979 return _IMP_kernel.get_data_path(*args)
6980 from .
import _version_check
6981 _version_check.check_version(get_module_version())
Restraints create_decomposition(const RestraintsTemp &rs)
Return the decomposition of a list of restraints.
IMP::kernel::PairModifier PairModifier
ParticleIndexes get_indexes(const ParticlesTemp &ps)
IMP::kernel::ModelObject ModelObject
base::Array< 3, base::WeakPointer< Particle >, Particle * > ParticleTriplet
IMP-specific subclass of optparse.OptionParser.
Ints get_index(const kernel::ParticlesTemp &particles, const Subset &subset, const Subsets &excluded)
An input/output exception.
IMP::kernel::ScoreState ScoreState
ParticlesTemp get_output_particles(const ModelObjectsTemp &mos)
Return all the output particles for a given ModelObject.
ScoreStatesTemp get_dependent_score_states(ModelObject *p, const ModelObjectsTemp &all, const DependencyGraph &dg, const DependencyGraphVertexIndex &index)
IMP::kernel::PairScore PairScore
void show_restraint_hierarchy(ScoringFunctionAdaptor rs, std::ostream &out=std::cout)
Print the hierarchy of restraints.
IMP::kernel::DerivativeAccumulator DerivativeAccumulator
IMP::kernel::SingletonContainer SingletonContainer
IMP::kernel::EvaluationState EvaluationState
kernel::Restraints create_restraints(RMF::FileConstHandle fh, kernel::Model *m)
IMP::kernel::Constraint Constraint
IMP::kernel::TripletContainer TripletContainer
IMP::kernel::QuadContainer QuadContainer
void add_restraints(RMF::FileHandle fh, const kernel::Restraints &hs)
IMP::kernel::UnaryFunction UnaryFunction
ParticlesTemp get_particles(kernel::Model *m, const ParticleIndexes &ps)
Make CGAL functionality available to IMP.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
IMP::kernel::ScoringFunction ScoringFunction
base::Array< 4, base::WeakPointer< Particle >, Particle * > ParticleQuad
Low level functionality (logging, error handling, profiling, command line flags etc) that is used by ...
ContainersTemp get_output_containers(const ModelObjectsTemp &mos)
Return all the output particles for a given ModelObject.
IMP::kernel::SingletonPredicate SingletonPredicate
std::string get_data_path(std::string file_name)
Return the full path to installed data.
DependencyGraph get_pruned_dependency_graph(kernel::Model *m)
IMP::kernel::QuadScore QuadScore
base::Array< 2, base::WeakPointer< Particle >, Particle * > ParticlePair
An exception which is thrown when the kernel::Model has attributes with invalid values.
IMP::kernel::Optimizer Optimizer
ParticlesTemp get_input_particles(const ModelObjectsTemp &mos)
Return all the input particles for a given ModelObject.
ParticlesTemp get_dependent_particles(ModelObject *p, const ModelObjectsTemp &all, const DependencyGraph &dg, const DependencyGraphVertexIndex &index)
IMP::kernel::TripletModifier TripletModifier
A class to change and restore log state.
IMP::kernel::QuadModifier QuadModifier
ScoringFunction * create_scoring_function(RestraintType *rs, double weight=1.0, double max=NO_MAX, std::string name=std::string())
DependencyGraph get_dependency_graph(kernel::Model *m)
IMP::kernel::Container Container
IMP::kernel::SingletonModifier SingletonModifier
RestraintsTemp get_dependent_restraints(ModelObject *p, const ModelObjectsTemp &all, const DependencyGraph &dg, const DependencyGraphVertexIndex &index)
void read_particles_from_buffer(const base::Vector< char > &buffer, const ParticlesTemp &particles, const FloatKeys &keys)
load found attributes into the particles
ContainersTemp get_input_containers(const ModelObjectsTemp &mos)
Return all the input particles for a given ModelObject.
IMP::kernel::SaveToConfigurationSetOptimizerState SaveToConfigurationSetOptimizerState
base::Vector< char > write_particles_to_buffer(const ParticlesTemp &particles, const FloatKeys &keys)
return a binary buffer with the data
IMP::kernel::Refiner Refiner
IMP::kernel::ScoreAccumulator ScoreAccumulator
std::string show_graphviz(Graph g)
IMP::kernel::QuadPredicate QuadPredicate
IMP::kernel::TripletScore TripletScore
Common base class for heavy weight IMP objects.
IMP::kernel::Sampler Sampler
def parse_args
Parse the command line and return options and positional arguments.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
Allow applications to easily implement commmands.
void show(Hierarchy h, std::ostream &out=std::cout)
Print out a molecular hierarchy.
IMP::kernel::Particle Particle
IMP::kernel::PairPredicate PairPredicate
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
IMP::kernel::ConfigurationSet ConfigurationSet
IMP::kernel::PairContainer PairContainer
base::Vector< VectorD< D > > get_vertices(const BoundingBoxD< D > &bb)
Return a list of the 2^D bounding points for the bounding box.
IMP::kernel::OptimizerState OptimizerState
IMP::kernel::TripletPredicate TripletPredicate
IMP::kernel::Decorator Decorator
Strings setup_from_argv(const Strings &argv, std::string description, std::string positional_description, int num_positional)
IMP::kernel::SingletonScore SingletonScore
void add_particle(RMF::FileHandle fh, kernel::Particle *hs)
CheckLevel get_check_level()
Get the current audit mode.
IMP::kernel::Restraint Restraint
IMP::kernel::RestraintSet RestraintSet
void add_restraint(RMF::FileHandle fh, kernel::Restraint *hs)
ScoreStatesTemp get_required_score_states(ModelObject *p, const ModelObjectsTemp &all, const DependencyGraph &dg, const DependencyGraphVertexIndex &index)
IMP::kernel::Configuration Configuration
ScoreStatesTemp get_update_order(ScoreStatesTemp input)
An exception for an invalid value being passed to IMP.