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:
74 weakref_proxy = weakref.proxy
76 weakref_proxy =
lambda x: x
79 class IMP_KERNEL_SwigPyIterator(_object):
80 """Proxy of C++ swig::IMP_KERNEL_SwigPyIterator class"""
81 __swig_setmethods__ = {}
82 __setattr__ =
lambda self, name, value: _swig_setattr(self, IMP_KERNEL_SwigPyIterator, name, value)
83 __swig_getmethods__ = {}
84 __getattr__ =
lambda self, name: _swig_getattr(self, IMP_KERNEL_SwigPyIterator, name)
85 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined - class is abstract")
87 __swig_destroy__ = _IMP_kernel.delete_IMP_KERNEL_SwigPyIterator
88 __del__ =
lambda self :
None;
90 """value(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
91 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_value(self)
95 incr(IMP_KERNEL_SwigPyIterator self, size_t n=1) -> IMP_KERNEL_SwigPyIterator
96 incr(IMP_KERNEL_SwigPyIterator self) -> IMP_KERNEL_SwigPyIterator
98 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_incr(self, n)
102 decr(IMP_KERNEL_SwigPyIterator self, size_t n=1) -> IMP_KERNEL_SwigPyIterator
103 decr(IMP_KERNEL_SwigPyIterator self) -> IMP_KERNEL_SwigPyIterator
105 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_decr(self, n)
107 def distance(self, *args):
108 """distance(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> ptrdiff_t"""
109 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_distance(self, *args)
111 def equal(self, *args):
112 """equal(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
113 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_equal(self, *args)
116 """copy(IMP_KERNEL_SwigPyIterator self) -> IMP_KERNEL_SwigPyIterator"""
117 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_copy(self)
120 """next(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
121 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_next(self)
124 """__next__(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
125 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___next__(self)
128 """previous(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
129 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_previous(self)
131 def advance(self, *args):
132 """advance(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
133 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_advance(self, *args)
135 def __eq__(self, *args):
136 """__eq__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
137 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___eq__(self, *args)
139 def __ne__(self, *args):
140 """__ne__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
141 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___ne__(self, *args)
143 def __iadd__(self, *args):
144 """__iadd__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
145 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___iadd__(self, *args)
147 def __isub__(self, *args):
148 """__isub__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
149 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___isub__(self, *args)
151 def __add__(self, *args):
152 """__add__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
153 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___add__(self, *args)
155 def __sub__(self, *args):
157 __sub__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator
158 __sub__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> ptrdiff_t
160 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___sub__(self, *args)
162 def __iter__(self):
return self
163 IMP_KERNEL_SwigPyIterator_swigregister = _IMP_kernel.IMP_KERNEL_SwigPyIterator_swigregister
164 IMP_KERNEL_SwigPyIterator_swigregister(IMP_KERNEL_SwigPyIterator)
171 IMP_DEBUG = _IMP_kernel.IMP_DEBUG
172 IMP_RELEASE = _IMP_kernel.IMP_RELEASE
173 IMP_SILENT = _IMP_kernel.IMP_SILENT
174 IMP_PROGRESS = _IMP_kernel.IMP_PROGRESS
175 IMP_TERSE = _IMP_kernel.IMP_TERSE
176 IMP_VERBOSE = _IMP_kernel.IMP_VERBOSE
177 IMP_MEMORY = _IMP_kernel.IMP_MEMORY
178 IMP_NONE = _IMP_kernel.IMP_NONE
179 IMP_USAGE = _IMP_kernel.IMP_USAGE
180 IMP_INTERNAL = _IMP_kernel.IMP_INTERNAL
181 IMP_BASE_HAS_LOG4CXX = _IMP_kernel.IMP_BASE_HAS_LOG4CXX
182 IMP_COMPILER_HAS_AUTO = _IMP_kernel.IMP_COMPILER_HAS_AUTO
183 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_kernel.IMP_COMPILER_HAS_DEBUG_VECTOR
184 IMP_BASE_HAS_BOOST_RANDOM = _IMP_kernel.IMP_BASE_HAS_BOOST_RANDOM
185 IMP_BASE_HAS_GPERFTOOLS = _IMP_kernel.IMP_BASE_HAS_GPERFTOOLS
186 IMP_BASE_HAS_TCMALLOC_HEAPCHECKER = _IMP_kernel.IMP_BASE_HAS_TCMALLOC_HEAPCHECKER
187 IMP_BASE_HAS_TCMALLOC_HEAPPROFILER = _IMP_kernel.IMP_BASE_HAS_TCMALLOC_HEAPPROFILER
188 IMPBASE_SHOW_WARNINGS = _IMP_kernel.IMPBASE_SHOW_WARNINGS
190 class _DirectorObjects(object):
191 """@internal Simple class to keep references to director objects
192 to prevent premature deletion."""
195 def register(self, obj):
196 """Take a reference to a director object; will only work for
197 refcounted C++ classes"""
198 if hasattr(obj,
'get_ref_count'):
199 self._objects.append(obj)
201 """Only drop our reference and allow cleanup by Python if no other
202 Python references exist (we hold 3 references: one in self._objects,
203 one in x, and one in the argument list for getrefcount) *and* no
204 other C++ references exist (the Python object always holds one)"""
205 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
206 or x.get_ref_count() > 1]
210 def get_object_count(self):
211 """Get number of director objects (useful for testing only)"""
212 return len(self._objects)
213 _director_objects = _DirectorObjects()
215 DEFAULT_CHECK = _IMP_kernel.DEFAULT_CHECK
216 NONE = _IMP_kernel.NONE
217 USAGE = _IMP_kernel.USAGE
218 USAGE_AND_INTERNAL = _IMP_kernel.USAGE_AND_INTERNAL
221 """set_check_level(IMP::base::CheckLevel tf)"""
222 return _IMP_kernel.set_check_level(*args)
225 """get_check_level() -> IMP::base::CheckLevel"""
226 return _IMP_kernel.get_check_level()
227 class _ostream(_object):
228 """Proxy of C++ std::ostream class"""
229 __swig_setmethods__ = {}
230 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ostream, name, value)
231 __swig_getmethods__ = {}
232 __getattr__ =
lambda self, name: _swig_getattr(self, _ostream, name)
233 def __init__(self, *args, **kwargs):
raise AttributeError(
"No constructor defined")
234 __repr__ = _swig_repr
235 def write(self, *args):
236 """write(_ostream self, char const * osa_buf)"""
237 return _IMP_kernel._ostream_write(self, *args)
239 _ostream_swigregister = _IMP_kernel._ostream_swigregister
240 _ostream_swigregister(_ostream)
242 IMP_COMPILER_HAS_OVERRIDE = _IMP_kernel.IMP_COMPILER_HAS_OVERRIDE
243 IMP_COMPILER_HAS_FINAL = _IMP_kernel.IMP_COMPILER_HAS_FINAL
244 IMP_HAS_NOEXCEPT = _IMP_kernel.IMP_HAS_NOEXCEPT
246 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_kernel.IMP_CGAL_HAS_BOOST_FILESYSTEM
247 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_kernel.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
248 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_kernel.IMP_CGAL_HAS_BOOST_RANDOM
249 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_kernel.IMP_CGAL_HAS_BOOST_SYSTEM
250 IMPCGAL_SHOW_WARNINGS = _IMP_kernel.IMPCGAL_SHOW_WARNINGS
252 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_kernel.IMP_ALGEBRA_HAS_IMP_CGAL
253 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_kernel.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
254 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_kernel.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
255 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_kernel.IMP_ALGEBRA_HAS_BOOST_RANDOM
256 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_kernel.IMP_ALGEBRA_HAS_BOOST_SYSTEM
257 IMP_ALGEBRA_HAS_CGAL = _IMP_kernel.IMP_ALGEBRA_HAS_CGAL
258 IMP_ALGEBRA_HAS_ANN = _IMP_kernel.IMP_ALGEBRA_HAS_ANN
259 IMPALGEBRA_SHOW_WARNINGS = _IMP_kernel.IMPALGEBRA_SHOW_WARNINGS
261 IMP_KERNEL_HAS_IMP_CGAL = _IMP_kernel.IMP_KERNEL_HAS_IMP_CGAL
262 IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS = _IMP_kernel.IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS
263 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_kernel.IMP_KERNEL_HAS_BOOST_RANDOM
264 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_kernel.IMP_KERNEL_HAS_BOOST_SYSTEM
265 IMP_KERNEL_HAS_CGAL = _IMP_kernel.IMP_KERNEL_HAS_CGAL
266 IMPKERNEL_SHOW_WARNINGS = _IMP_kernel.IMPKERNEL_SHOW_WARNINGS
268 i_m_p=
"IMP_MODULE_PATH"
269 if i_m_p
in os.environ.keys():
270 __path__.insert(0, os.environ[i_m_p])
272 def _forward_add_attribute(self, name, value, opt=None):
274 self.get_particle().add_attribute(name, value, opt)
276 self.get_particle().add_attribute(name, value)
277 def _forward_get_value(self, name):
278 self.get_particle().get_value(name)
279 def _forward_set_value(self, name, value):
280 self.get_particle().set_value(name, value)
284 _object_types.append(
"Constraint")
287 def _object_cast_to_Constraint(*args):
288 """_object_cast_to_Constraint(Object o) -> Constraint"""
289 return _IMP_kernel._object_cast_to_Constraint(*args)
290 _object_types.append(
"Undecorator")
293 def _object_cast_to_Undecorator(*args):
294 """_object_cast_to_Undecorator(Object o) -> Undecorator"""
295 return _IMP_kernel._object_cast_to_Undecorator(*args)
296 _object_types.append(
"Container")
299 def _object_cast_to_Container(*args):
300 """_object_cast_to_Container(Object o) -> Container"""
301 return _IMP_kernel._object_cast_to_Container(*args)
302 _object_types.append(
"Optimizer")
305 def _object_cast_to_Optimizer(*args):
306 """_object_cast_to_Optimizer(Object o) -> Optimizer"""
307 return _IMP_kernel._object_cast_to_Optimizer(*args)
308 _object_types.append(
"AttributeOptimizer")
311 def _object_cast_to_AttributeOptimizer(*args):
312 """_object_cast_to_AttributeOptimizer(Object o) -> AttributeOptimizer"""
313 return _IMP_kernel._object_cast_to_AttributeOptimizer(*args)
314 _object_types.append(
"OptimizerState")
317 def _object_cast_to_OptimizerState(*args):
318 """_object_cast_to_OptimizerState(Object o) -> OptimizerState"""
319 return _IMP_kernel._object_cast_to_OptimizerState(*args)
320 _object_types.append(
"PairContainer")
323 def _object_cast_to_PairContainer(*args):
324 """_object_cast_to_PairContainer(Object o) -> PairContainer"""
325 return _IMP_kernel._object_cast_to_PairContainer(*args)
326 _object_types.append(
"PairModifier")
329 def _object_cast_to_PairModifier(*args):
330 """_object_cast_to_PairModifier(Object o) -> PairModifier"""
331 return _IMP_kernel._object_cast_to_PairModifier(*args)
332 _object_types.append(
"PairScore")
335 def _object_cast_to_PairScore(*args):
336 """_object_cast_to_PairScore(Object o) -> PairScore"""
337 return _IMP_kernel._object_cast_to_PairScore(*args)
338 _object_types.append(
"QuadContainer")
341 def _object_cast_to_QuadContainer(*args):
342 """_object_cast_to_QuadContainer(Object o) -> QuadContainer"""
343 return _IMP_kernel._object_cast_to_QuadContainer(*args)
344 _object_types.append(
"QuadModifier")
347 def _object_cast_to_QuadModifier(*args):
348 """_object_cast_to_QuadModifier(Object o) -> QuadModifier"""
349 return _IMP_kernel._object_cast_to_QuadModifier(*args)
350 _object_types.append(
"QuadScore")
353 def _object_cast_to_QuadScore(*args):
354 """_object_cast_to_QuadScore(Object o) -> QuadScore"""
355 return _IMP_kernel._object_cast_to_QuadScore(*args)
356 _object_types.append(
"Refiner")
359 def _object_cast_to_Refiner(*args):
360 """_object_cast_to_Refiner(Object o) -> Refiner"""
361 return _IMP_kernel._object_cast_to_Refiner(*args)
362 _object_types.append(
"Restraint")
365 def _object_cast_to_Restraint(*args):
366 """_object_cast_to_Restraint(Object o) -> Restraint"""
367 return _IMP_kernel._object_cast_to_Restraint(*args)
368 _object_types.append(
"Sampler")
371 def _object_cast_to_Sampler(*args):
372 """_object_cast_to_Sampler(Object o) -> Sampler"""
373 return _IMP_kernel._object_cast_to_Sampler(*args)
374 _object_types.append(
"ScoreState")
377 def _object_cast_to_ScoreState(*args):
378 """_object_cast_to_ScoreState(Object o) -> ScoreState"""
379 return _IMP_kernel._object_cast_to_ScoreState(*args)
380 _object_types.append(
"SingletonContainer")
383 def _object_cast_to_SingletonContainer(*args):
384 """_object_cast_to_SingletonContainer(Object o) -> SingletonContainer"""
385 return _IMP_kernel._object_cast_to_SingletonContainer(*args)
386 _object_types.append(
"SingletonModifier")
389 def _object_cast_to_SingletonModifier(*args):
390 """_object_cast_to_SingletonModifier(Object o) -> SingletonModifier"""
391 return _IMP_kernel._object_cast_to_SingletonModifier(*args)
392 _object_types.append(
"SingletonScore")
395 def _object_cast_to_SingletonScore(*args):
396 """_object_cast_to_SingletonScore(Object o) -> SingletonScore"""
397 return _IMP_kernel._object_cast_to_SingletonScore(*args)
398 _object_types.append(
"TripletContainer")
401 def _object_cast_to_TripletContainer(*args):
402 """_object_cast_to_TripletContainer(Object o) -> TripletContainer"""
403 return _IMP_kernel._object_cast_to_TripletContainer(*args)
404 _object_types.append(
"TripletModifier")
407 def _object_cast_to_TripletModifier(*args):
408 """_object_cast_to_TripletModifier(Object o) -> TripletModifier"""
409 return _IMP_kernel._object_cast_to_TripletModifier(*args)
410 _object_types.append(
"TripletScore")
413 def _object_cast_to_TripletScore(*args):
414 """_object_cast_to_TripletScore(Object o) -> TripletScore"""
415 return _IMP_kernel._object_cast_to_TripletScore(*args)
416 _object_types.append(
"UnaryFunction")
419 def _object_cast_to_UnaryFunction(*args):
420 """_object_cast_to_UnaryFunction(Object o) -> UnaryFunction"""
421 return _IMP_kernel._object_cast_to_UnaryFunction(*args)
422 _object_types.append(
"ConfigurationSet")
425 def _object_cast_to_ConfigurationSet(*args):
426 """_object_cast_to_ConfigurationSet(Object o) -> ConfigurationSet"""
427 return _IMP_kernel._object_cast_to_ConfigurationSet(*args)
428 _object_types.append(
"Configuration")
431 def _object_cast_to_Configuration(*args):
432 """_object_cast_to_Configuration(Object o) -> Configuration"""
433 return _IMP_kernel._object_cast_to_Configuration(*args)
434 _object_types.append(
"Model")
437 def _object_cast_to_Model(*args):
438 """_object_cast_to_Model(Object o) -> Model"""
439 return _IMP_kernel._object_cast_to_Model(*args)
440 _object_types.append(
"Particle")
443 def _object_cast_to_Particle(*args):
444 """_object_cast_to_Particle(Object o) -> Particle"""
445 return _IMP_kernel._object_cast_to_Particle(*args)
446 _object_types.append(
"RestraintSet")
449 def _object_cast_to_RestraintSet(*args):
450 """_object_cast_to_RestraintSet(Object o) -> RestraintSet"""
451 return _IMP_kernel._object_cast_to_RestraintSet(*args)
452 ParticlePairsTemp=list
453 _plural_types.append(
"ParticlePairsTemp")
454 _value_types.append(
"ParticlePair")
456 ParticleTripletsTemp=list
457 _plural_types.append(
"ParticleTripletsTemp")
458 _value_types.append(
"ParticleTriplet")
460 ParticleQuadsTemp=list
461 _plural_types.append(
"ParticleQuadsTemp")
462 _value_types.append(
"ParticleQuad")
464 ParticleIndexPairs=list
465 _plural_types.append(
"ParticleIndexPairs")
466 _value_types.append(
"ParticleIndexPair")
468 ParticleIndexTriplets=list
469 _plural_types.append(
"ParticleIndexTriplets")
470 _value_types.append(
"ParticleIndexTriplet")
472 ParticleIndexQuads=list
473 _plural_types.append(
"ParticleIndexQuads")
474 _value_types.append(
"ParticleIndexQuad")
476 _object_types.append(
"SingletonPredicate")
479 def _object_cast_to_SingletonPredicate(*args):
480 """_object_cast_to_SingletonPredicate(Object o) -> SingletonPredicate"""
481 return _IMP_kernel._object_cast_to_SingletonPredicate(*args)
482 _object_types.append(
"PairPredicate")
485 def _object_cast_to_PairPredicate(*args):
486 """_object_cast_to_PairPredicate(Object o) -> PairPredicate"""
487 return _IMP_kernel._object_cast_to_PairPredicate(*args)
488 _object_types.append(
"TripletPredicate")
491 def _object_cast_to_TripletPredicate(*args):
492 """_object_cast_to_TripletPredicate(Object o) -> TripletPredicate"""
493 return _IMP_kernel._object_cast_to_TripletPredicate(*args)
494 _object_types.append(
"QuadPredicate")
497 def _object_cast_to_QuadPredicate(*args):
498 """_object_cast_to_QuadPredicate(Object o) -> QuadPredicate"""
499 return _IMP_kernel._object_cast_to_QuadPredicate(*args)
500 _object_types.append(
"SaveToConfigurationSetOptimizerState")
503 def _object_cast_to_SaveToConfigurationSetOptimizerState(*args):
504 """_object_cast_to_SaveToConfigurationSetOptimizerState(Object o) -> SaveToConfigurationSetOptimizerState"""
505 return _IMP_kernel._object_cast_to_SaveToConfigurationSetOptimizerState(*args)
506 EvaluationStates=list
507 _plural_types.append(
"EvaluationStates")
508 _value_types.append(
"EvaluationState")
510 ScoreAccumulators=list
511 _plural_types.append(
"ScoreAccumulators")
512 _value_types.append(
"ScoreAccumulator")
515 _plural_types.append(
"ParticleIndexes")
516 _value_types.append(
"ParticleIndex")
519 _plural_types.append(
"FloatIndexes")
520 _value_types.append(
"FloatIndex")
523 _plural_types.append(
"FloatKeys")
524 _value_types.append(
"FloatKey")
527 _plural_types.append(
"IntKeys")
528 _value_types.append(
"IntKey")
531 _plural_types.append(
"StringKeys")
532 _value_types.append(
"StringKey")
534 ParticleIndexKeys=list
535 _plural_types.append(
"ParticleIndexKeys")
536 _value_types.append(
"ParticleIndexKey")
538 ParticleIndexesKeys=list
539 _plural_types.append(
"ParticleIndexesKeys")
540 _value_types.append(
"ParticleIndexesKey")
543 _plural_types.append(
"ObjectKeys")
544 _value_types.append(
"ObjectKey")
546 _raii_types.append(
"ScopedRestraint")
548 _raii_types.append(
"ScopedRemoveRestraint")
550 _raii_types.append(
"ScopedRemoveScoreState")
552 _raii_types.append(
"ScopedScoreState")
554 _raii_types.append(
"ScopedSetFloatAttribute")
556 _object_types.append(
"ScoringFunction")
559 def _object_cast_to_ScoringFunction(*args):
560 """_object_cast_to_ScoringFunction(Object o) -> ScoringFunction"""
561 return _IMP_kernel._object_cast_to_ScoringFunction(*args)
562 _object_types.append(
"ModelObject")
565 def _object_cast_to_ModelObject(*args):
566 """_object_cast_to_ModelObject(Object o) -> ModelObject"""
567 return _IMP_kernel._object_cast_to_ModelObject(*args)
568 def _TrivialDecorators(l=[]):
569 return [_TrivialDecorator(x)
for x
in l]
570 _plural_types.append(
"_TrivialDecorators")
572 _value_types.append(
"_TrivialDecorator")
574 def _TrivialDerivedDecorators(l=[]):
575 return [_TrivialDerivedDecorator(x)
for x
in l]
576 _plural_types.append(
"_TrivialDerivedDecorators")
578 _value_types.append(
"_TrivialDerivedDecorator")
580 def _TrivialTraitsDecorators(l=[]):
581 return [_TrivialTraitsDecorator(x)
for x
in l]
582 _plural_types.append(
"_TrivialTraitsDecorators")
584 _value_types.append(
"_TrivialTraitsDecorator")
586 _object_types.append(
"_ConstRestraint")
589 def _object_cast_to__ConstRestraint(*args):
590 """_object_cast_to__ConstRestraint(Object o) -> _ConstRestraint"""
591 return _IMP_kernel._object_cast_to__ConstRestraint(*args)
592 _object_types.append(
"_ConstOptimizer")
595 def _object_cast_to__ConstOptimizer(*args):
596 """_object_cast_to__ConstOptimizer(Object o) -> _ConstOptimizer"""
597 return _IMP_kernel._object_cast_to__ConstOptimizer(*args)
599 """Proxy of C++ IMP::base::internal::BoostDigraph<(IMP::kernel::DependencyGraph,p.IMP::kernel::ModelObject,IMP::kernel::ShowDependencyGraphVertex)> class"""
600 __swig_setmethods__ = {}
601 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
602 __setattr__ =
lambda self, name, value: _swig_setattr(self, DependencyGraph, name, value)
603 __swig_getmethods__ = {}
604 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
605 __getattr__ =
lambda self, name: _swig_getattr(self, DependencyGraph, name)
606 __repr__ = _swig_repr
608 """__init__(IMP::base::internal::BoostDigraph<(IMP::kernel::DependencyGraph,p.IMP::kernel::ModelObject,IMP::kernel::ShowDependencyGraphVertex)> self) -> DependencyGraph"""
609 this = _IMP_kernel.new_DependencyGraph()
610 try: self.this.append(this)
611 except: self.this = this
613 """get_graph(DependencyGraph self) -> IMP::kernel::DependencyGraph const &"""
614 return _IMP_kernel.DependencyGraph_get_graph(self)
617 """get_vertices(DependencyGraph self) -> IMP::base::internal::BoostDigraph< IMP::kernel::DependencyGraph,IMP::kernel::ModelObject *,IMP::kernel::ShowDependencyGraphVertex >::VertexDescriptors"""
618 return _IMP_kernel.DependencyGraph_get_vertices(self)
620 def get_vertex_name(self, *args):
621 """get_vertex_name(DependencyGraph self, IMP::base::internal::BoostDigraph< IMP::kernel::DependencyGraph,IMP::kernel::ModelObject *,IMP::kernel::ShowDependencyGraphVertex >::VertexDescriptor i) -> ModelObject"""
622 return _IMP_kernel.DependencyGraph_get_vertex_name(self, *args)
624 def get_in_neighbors(self, *args):
625 """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"""
626 return _IMP_kernel.DependencyGraph_get_in_neighbors(self, *args)
628 def get_out_neighbors(self, *args):
629 """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"""
630 return _IMP_kernel.DependencyGraph_get_out_neighbors(self, *args)
634 show_graphviz(DependencyGraph self, _ostream out=std::cout)
635 show_graphviz(DependencyGraph self)
637 return _IMP_kernel.DependencyGraph_show_graphviz(self, *args)
639 def get_graphviz_string(self):
640 """get_graphviz_string(DependencyGraph self) -> std::string"""
641 return _IMP_kernel.DependencyGraph_get_graphviz_string(self)
643 def add_edge(self, *args):
645 add_edge(DependencyGraph self, IMP::base::internal::BoostDigraph< IMP::kernel::DependencyGraph,IMP::kernel::ModelObject *,IMP::kernel::ShowDependencyGraphVertex >::VertexDescriptor v0,
646 IMP::base::internal::BoostDigraph< IMP::kernel::DependencyGraph,IMP::kernel::ModelObject *,IMP::kernel::ShowDependencyGraphVertex >::VertexDescriptor v1)
648 return _IMP_kernel.DependencyGraph_add_edge(self, *args)
650 def add_vertex(self, *args):
651 """add_vertex(DependencyGraph self, ModelObject l) -> IMP::base::internal::BoostDigraph< IMP::kernel::DependencyGraph,IMP::kernel::ModelObject *,IMP::kernel::ShowDependencyGraphVertex >::VertexDescriptor"""
652 return _IMP_kernel.DependencyGraph_add_vertex(self, *args)
654 def remove_vertex(self, *args):
655 """remove_vertex(DependencyGraph self, IMP::base::internal::BoostDigraph< IMP::kernel::DependencyGraph,IMP::kernel::ModelObject *,IMP::kernel::ShowDependencyGraphVertex >::VertexDescriptor l)"""
656 return _IMP_kernel.DependencyGraph_remove_vertex(self, *args)
658 __swig_destroy__ = _IMP_kernel.delete_DependencyGraph
659 __del__ =
lambda self :
None;
660 DependencyGraph_swigregister = _IMP_kernel.DependencyGraph_swigregister
661 DependencyGraph_swigregister(DependencyGraph)
663 _value_types.append(
"DependencyGraph")
666 """Proxy of C++ IMP::kernel::Key<(0,true)> class"""
667 __swig_setmethods__ = {}
668 for _s
in [IMP.base._Value]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
669 __setattr__ =
lambda self, name, value: _swig_setattr(self, FloatKey, name, value)
670 __swig_getmethods__ = {}
671 for _s
in [IMP.base._Value]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
672 __getattr__ =
lambda self, name: _swig_getattr(self, FloatKey, name)
673 def __init__(self, *args):
675 __init__(IMP::kernel::Key<(0,true)> self) -> FloatKey
676 __init__(IMP::kernel::Key<(0,true)> self, std::string c) -> FloatKey
677 __init__(IMP::kernel::Key<(0,true)> self, unsigned int i) -> FloatKey
679 this = _IMP_kernel.new_FloatKey(*args)
680 try: self.this.append(this)
681 except: self.this = this
683 """add_key(std::string sc) -> unsigned int"""
684 return _IMP_kernel.FloatKey_add_key(*args)
686 if _newclass:add_key = staticmethod(add_key)
687 __swig_getmethods__[
"add_key"] =
lambda x: add_key
688 def get_key_exists(*args):
689 """get_key_exists(std::string sc) -> bool"""
690 return _IMP_kernel.FloatKey_get_key_exists(*args)
692 if _newclass:get_key_exists = staticmethod(get_key_exists)
693 __swig_getmethods__[
"get_key_exists"] =
lambda x: get_key_exists
694 def get_string(self):
695 """get_string(FloatKey self) -> std::string const"""
696 return _IMP_kernel.FloatKey_get_string(self)
698 def __eq__(self, *args):
699 """__eq__(FloatKey self, FloatKey o) -> bool"""
700 return _IMP_kernel.FloatKey___eq__(self, *args)
702 def __ne__(self, *args):
703 """__ne__(FloatKey self, FloatKey o) -> bool"""
704 return _IMP_kernel.FloatKey___ne__(self, *args)
706 def __lt__(self, *args):
707 """__lt__(FloatKey self, FloatKey o) -> bool"""
708 return _IMP_kernel.FloatKey___lt__(self, *args)
710 def __gt__(self, *args):
711 """__gt__(FloatKey self, FloatKey o) -> bool"""
712 return _IMP_kernel.FloatKey___gt__(self, *args)
714 def __ge__(self, *args):
715 """__ge__(FloatKey self, FloatKey o) -> bool"""
716 return _IMP_kernel.FloatKey___ge__(self, *args)
718 def __le__(self, *args):
719 """__le__(FloatKey self, FloatKey o) -> bool"""
720 return _IMP_kernel.FloatKey___le__(self, *args)
723 """__hash__(FloatKey self) -> std::size_t"""
724 return _IMP_kernel.FloatKey___hash__(self)
726 def show(self, *args):
728 show(FloatKey self, _ostream out=std::cout)
731 return _IMP_kernel.FloatKey_show(self, *args)
733 def add_alias(*args):
734 """add_alias(FloatKey old_key, std::string new_name) -> FloatKey"""
735 return _IMP_kernel.FloatKey_add_alias(*args)
737 if _newclass:add_alias = staticmethod(add_alias)
738 __swig_getmethods__[
"add_alias"] =
lambda x: add_alias
740 """get_index(FloatKey self) -> unsigned int"""
741 return _IMP_kernel.FloatKey_get_index(self)
744 """show_all(_ostream out)"""
745 return _IMP_kernel.FloatKey_show_all(*args)
747 if _newclass:show_all = staticmethod(show_all)
748 __swig_getmethods__[
"show_all"] =
lambda x: show_all
749 def get_all_strings():
750 """get_all_strings() -> IMP::base::Vector< std::string >"""
751 return _IMP_kernel.FloatKey_get_all_strings()
753 if _newclass:get_all_strings = staticmethod(get_all_strings)
754 __swig_getmethods__[
"get_all_strings"] =
lambda x: get_all_strings
755 def get_number_unique():
756 """get_number_unique() -> unsigned int"""
757 return _IMP_kernel.FloatKey_get_number_unique()
759 if _newclass:get_number_unique = staticmethod(get_number_unique)
760 __swig_getmethods__[
"get_number_unique"] =
lambda x: get_number_unique
762 """__str__(FloatKey self) -> std::string"""
763 return _IMP_kernel.FloatKey___str__(self)
766 """__repr__(FloatKey self) -> std::string"""
767 return _IMP_kernel.FloatKey___repr__(self)
769 __swig_destroy__ = _IMP_kernel.delete_FloatKey
770 __del__ =
lambda self :
None;
771 FloatKey_swigregister = _IMP_kernel.FloatKey_swigregister
772 FloatKey_swigregister(FloatKey)
774 def FloatKey_add_key(*args):
775 """FloatKey_add_key(std::string sc) -> unsigned int"""
776 return _IMP_kernel.FloatKey_add_key(*args)
778 def FloatKey_get_key_exists(*args):
779 """FloatKey_get_key_exists(std::string sc) -> bool"""
780 return _IMP_kernel.FloatKey_get_key_exists(*args)
782 def FloatKey_add_alias(*args):
783 """FloatKey_add_alias(FloatKey old_key, std::string new_name) -> FloatKey"""
784 return _IMP_kernel.FloatKey_add_alias(*args)
786 def FloatKey_show_all(*args):
787 """FloatKey_show_all(_ostream out)"""
788 return _IMP_kernel.FloatKey_show_all(*args)
790 def FloatKey_get_all_strings():
791 """FloatKey_get_all_strings() -> IMP::base::Vector< std::string >"""
792 return _IMP_kernel.FloatKey_get_all_strings()
794 def FloatKey_get_number_unique():
795 """FloatKey_get_number_unique() -> unsigned int"""
796 return _IMP_kernel.FloatKey_get_number_unique()
798 class IntKey(IMP.base._Value):
799 """Proxy of C++ IMP::kernel::Key<(1,true)> class"""
800 __swig_setmethods__ = {}
801 for _s
in [IMP.base._Value]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
802 __setattr__ =
lambda self, name, value: _swig_setattr(self, IntKey, name, value)
803 __swig_getmethods__ = {}
804 for _s
in [IMP.base._Value]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
805 __getattr__ =
lambda self, name: _swig_getattr(self, IntKey, name)
806 def __init__(self, *args):
808 __init__(IMP::kernel::Key<(1,true)> self) -> IntKey
809 __init__(IMP::kernel::Key<(1,true)> self, std::string c) -> IntKey
810 __init__(IMP::kernel::Key<(1,true)> self, unsigned int i) -> IntKey
812 this = _IMP_kernel.new_IntKey(*args)
813 try: self.this.append(this)
814 except: self.this = this
816 """add_key(std::string sc) -> unsigned int"""
817 return _IMP_kernel.IntKey_add_key(*args)
819 if _newclass:add_key = staticmethod(add_key)
820 __swig_getmethods__[
"add_key"] =
lambda x: add_key
821 def get_key_exists(*args):
822 """get_key_exists(std::string sc) -> bool"""
823 return _IMP_kernel.IntKey_get_key_exists(*args)
825 if _newclass:get_key_exists = staticmethod(get_key_exists)
826 __swig_getmethods__[
"get_key_exists"] =
lambda x: get_key_exists
827 def get_string(self):
828 """get_string(IntKey self) -> std::string const"""
829 return _IMP_kernel.IntKey_get_string(self)
831 def __eq__(self, *args):
832 """__eq__(IntKey self, IntKey o) -> bool"""
833 return _IMP_kernel.IntKey___eq__(self, *args)
835 def __ne__(self, *args):
836 """__ne__(IntKey self, IntKey o) -> bool"""
837 return _IMP_kernel.IntKey___ne__(self, *args)
839 def __lt__(self, *args):
840 """__lt__(IntKey self, IntKey o) -> bool"""
841 return _IMP_kernel.IntKey___lt__(self, *args)
843 def __gt__(self, *args):
844 """__gt__(IntKey self, IntKey o) -> bool"""
845 return _IMP_kernel.IntKey___gt__(self, *args)
847 def __ge__(self, *args):
848 """__ge__(IntKey self, IntKey o) -> bool"""
849 return _IMP_kernel.IntKey___ge__(self, *args)
851 def __le__(self, *args):
852 """__le__(IntKey self, IntKey o) -> bool"""
853 return _IMP_kernel.IntKey___le__(self, *args)
856 """__hash__(IntKey self) -> std::size_t"""
857 return _IMP_kernel.IntKey___hash__(self)
859 def show(self, *args):
861 show(IntKey self, _ostream out=std::cout)
864 return _IMP_kernel.IntKey_show(self, *args)
866 def add_alias(*args):
867 """add_alias(IntKey old_key, std::string new_name) -> IntKey"""
868 return _IMP_kernel.IntKey_add_alias(*args)
870 if _newclass:add_alias = staticmethod(add_alias)
871 __swig_getmethods__[
"add_alias"] =
lambda x: add_alias
873 """get_index(IntKey self) -> unsigned int"""
874 return _IMP_kernel.IntKey_get_index(self)
877 """show_all(_ostream out)"""
878 return _IMP_kernel.IntKey_show_all(*args)
880 if _newclass:show_all = staticmethod(show_all)
881 __swig_getmethods__[
"show_all"] =
lambda x: show_all
882 def get_all_strings():
883 """get_all_strings() -> IMP::base::Vector< std::string >"""
884 return _IMP_kernel.IntKey_get_all_strings()
886 if _newclass:get_all_strings = staticmethod(get_all_strings)
887 __swig_getmethods__[
"get_all_strings"] =
lambda x: get_all_strings
888 def get_number_unique():
889 """get_number_unique() -> unsigned int"""
890 return _IMP_kernel.IntKey_get_number_unique()
892 if _newclass:get_number_unique = staticmethod(get_number_unique)
893 __swig_getmethods__[
"get_number_unique"] =
lambda x: get_number_unique
895 """__str__(IntKey self) -> std::string"""
896 return _IMP_kernel.IntKey___str__(self)
899 """__repr__(IntKey self) -> std::string"""
900 return _IMP_kernel.IntKey___repr__(self)
902 __swig_destroy__ = _IMP_kernel.delete_IntKey
903 __del__ =
lambda self :
None;
904 IntKey_swigregister = _IMP_kernel.IntKey_swigregister
905 IntKey_swigregister(IntKey)
907 def IntKey_add_key(*args):
908 """IntKey_add_key(std::string sc) -> unsigned int"""
909 return _IMP_kernel.IntKey_add_key(*args)
911 def IntKey_get_key_exists(*args):
912 """IntKey_get_key_exists(std::string sc) -> bool"""
913 return _IMP_kernel.IntKey_get_key_exists(*args)
915 def IntKey_add_alias(*args):
916 """IntKey_add_alias(IntKey old_key, std::string new_name) -> IntKey"""
917 return _IMP_kernel.IntKey_add_alias(*args)
919 def IntKey_show_all(*args):
920 """IntKey_show_all(_ostream out)"""
921 return _IMP_kernel.IntKey_show_all(*args)
923 def IntKey_get_all_strings():
924 """IntKey_get_all_strings() -> IMP::base::Vector< std::string >"""
925 return _IMP_kernel.IntKey_get_all_strings()
927 def IntKey_get_number_unique():
928 """IntKey_get_number_unique() -> unsigned int"""
929 return _IMP_kernel.IntKey_get_number_unique()
932 """Proxy of C++ IMP::kernel::Key<(2,true)> class"""
933 __swig_setmethods__ = {}
934 for _s
in [IMP.base._Value]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
935 __setattr__ =
lambda self, name, value: _swig_setattr(self, StringKey, name, value)
936 __swig_getmethods__ = {}
937 for _s
in [IMP.base._Value]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
938 __getattr__ =
lambda self, name: _swig_getattr(self, StringKey, name)
939 def __init__(self, *args):
941 __init__(IMP::kernel::Key<(2,true)> self) -> StringKey
942 __init__(IMP::kernel::Key<(2,true)> self, std::string c) -> StringKey
943 __init__(IMP::kernel::Key<(2,true)> self, unsigned int i) -> StringKey
945 this = _IMP_kernel.new_StringKey(*args)
946 try: self.this.append(this)
947 except: self.this = this
949 """add_key(std::string sc) -> unsigned int"""
950 return _IMP_kernel.StringKey_add_key(*args)
952 if _newclass:add_key = staticmethod(add_key)
953 __swig_getmethods__[
"add_key"] =
lambda x: add_key
954 def get_key_exists(*args):
955 """get_key_exists(std::string sc) -> bool"""
956 return _IMP_kernel.StringKey_get_key_exists(*args)
958 if _newclass:get_key_exists = staticmethod(get_key_exists)
959 __swig_getmethods__[
"get_key_exists"] =
lambda x: get_key_exists
960 def get_string(self):
961 """get_string(StringKey self) -> std::string const"""
962 return _IMP_kernel.StringKey_get_string(self)
964 def __eq__(self, *args):
965 """__eq__(StringKey self, StringKey o) -> bool"""
966 return _IMP_kernel.StringKey___eq__(self, *args)
968 def __ne__(self, *args):
969 """__ne__(StringKey self, StringKey o) -> bool"""
970 return _IMP_kernel.StringKey___ne__(self, *args)
972 def __lt__(self, *args):
973 """__lt__(StringKey self, StringKey o) -> bool"""
974 return _IMP_kernel.StringKey___lt__(self, *args)
976 def __gt__(self, *args):
977 """__gt__(StringKey self, StringKey o) -> bool"""
978 return _IMP_kernel.StringKey___gt__(self, *args)
980 def __ge__(self, *args):
981 """__ge__(StringKey self, StringKey o) -> bool"""
982 return _IMP_kernel.StringKey___ge__(self, *args)
984 def __le__(self, *args):
985 """__le__(StringKey self, StringKey o) -> bool"""
986 return _IMP_kernel.StringKey___le__(self, *args)
989 """__hash__(StringKey self) -> std::size_t"""
990 return _IMP_kernel.StringKey___hash__(self)
992 def show(self, *args):
994 show(StringKey self, _ostream out=std::cout)
997 return _IMP_kernel.StringKey_show(self, *args)
999 def add_alias(*args):
1000 """add_alias(StringKey old_key, std::string new_name) -> StringKey"""
1001 return _IMP_kernel.StringKey_add_alias(*args)
1003 if _newclass:add_alias = staticmethod(add_alias)
1004 __swig_getmethods__[
"add_alias"] =
lambda x: add_alias
1006 """get_index(StringKey self) -> unsigned int"""
1007 return _IMP_kernel.StringKey_get_index(self)
1009 def show_all(*args):
1010 """show_all(_ostream out)"""
1011 return _IMP_kernel.StringKey_show_all(*args)
1013 if _newclass:show_all = staticmethod(show_all)
1014 __swig_getmethods__[
"show_all"] =
lambda x: show_all
1015 def get_all_strings():
1016 """get_all_strings() -> IMP::base::Vector< std::string >"""
1017 return _IMP_kernel.StringKey_get_all_strings()
1019 if _newclass:get_all_strings = staticmethod(get_all_strings)
1020 __swig_getmethods__[
"get_all_strings"] =
lambda x: get_all_strings
1021 def get_number_unique():
1022 """get_number_unique() -> unsigned int"""
1023 return _IMP_kernel.StringKey_get_number_unique()
1025 if _newclass:get_number_unique = staticmethod(get_number_unique)
1026 __swig_getmethods__[
"get_number_unique"] =
lambda x: get_number_unique
1028 """__str__(StringKey self) -> std::string"""
1029 return _IMP_kernel.StringKey___str__(self)
1032 """__repr__(StringKey self) -> std::string"""
1033 return _IMP_kernel.StringKey___repr__(self)
1035 __swig_destroy__ = _IMP_kernel.delete_StringKey
1036 __del__ =
lambda self :
None;
1037 StringKey_swigregister = _IMP_kernel.StringKey_swigregister
1038 StringKey_swigregister(StringKey)
1040 def StringKey_add_key(*args):
1041 """StringKey_add_key(std::string sc) -> unsigned int"""
1042 return _IMP_kernel.StringKey_add_key(*args)
1044 def StringKey_get_key_exists(*args):
1045 """StringKey_get_key_exists(std::string sc) -> bool"""
1046 return _IMP_kernel.StringKey_get_key_exists(*args)
1048 def StringKey_add_alias(*args):
1049 """StringKey_add_alias(StringKey old_key, std::string new_name) -> StringKey"""
1050 return _IMP_kernel.StringKey_add_alias(*args)
1052 def StringKey_show_all(*args):
1053 """StringKey_show_all(_ostream out)"""
1054 return _IMP_kernel.StringKey_show_all(*args)
1056 def StringKey_get_all_strings():
1057 """StringKey_get_all_strings() -> IMP::base::Vector< std::string >"""
1058 return _IMP_kernel.StringKey_get_all_strings()
1060 def StringKey_get_number_unique():
1061 """StringKey_get_number_unique() -> unsigned int"""
1062 return _IMP_kernel.StringKey_get_number_unique()
1065 """Proxy of C++ IMP::kernel::Key<(3,true)> class"""
1066 __swig_setmethods__ = {}
1067 for _s
in [IMP.base._Value]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1068 __setattr__ =
lambda self, name, value: _swig_setattr(self, ParticleIndexKey, name, value)
1069 __swig_getmethods__ = {}
1070 for _s
in [IMP.base._Value]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1071 __getattr__ =
lambda self, name: _swig_getattr(self, ParticleIndexKey, name)
1072 def __init__(self, *args):
1074 __init__(IMP::kernel::Key<(3,true)> self) -> ParticleIndexKey
1075 __init__(IMP::kernel::Key<(3,true)> self, std::string c) -> ParticleIndexKey
1076 __init__(IMP::kernel::Key<(3,true)> self, unsigned int i) -> ParticleIndexKey
1078 this = _IMP_kernel.new_ParticleIndexKey(*args)
1079 try: self.this.append(this)
1080 except: self.this = this
1082 """add_key(std::string sc) -> unsigned int"""
1083 return _IMP_kernel.ParticleIndexKey_add_key(*args)
1085 if _newclass:add_key = staticmethod(add_key)
1086 __swig_getmethods__[
"add_key"] =
lambda x: add_key
1087 def get_key_exists(*args):
1088 """get_key_exists(std::string sc) -> bool"""
1089 return _IMP_kernel.ParticleIndexKey_get_key_exists(*args)
1091 if _newclass:get_key_exists = staticmethod(get_key_exists)
1092 __swig_getmethods__[
"get_key_exists"] =
lambda x: get_key_exists
1093 def get_string(self):
1094 """get_string(ParticleIndexKey self) -> std::string const"""
1095 return _IMP_kernel.ParticleIndexKey_get_string(self)
1097 def __eq__(self, *args):
1098 """__eq__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
1099 return _IMP_kernel.ParticleIndexKey___eq__(self, *args)
1101 def __ne__(self, *args):
1102 """__ne__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
1103 return _IMP_kernel.ParticleIndexKey___ne__(self, *args)
1105 def __lt__(self, *args):
1106 """__lt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
1107 return _IMP_kernel.ParticleIndexKey___lt__(self, *args)
1109 def __gt__(self, *args):
1110 """__gt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
1111 return _IMP_kernel.ParticleIndexKey___gt__(self, *args)
1113 def __ge__(self, *args):
1114 """__ge__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
1115 return _IMP_kernel.ParticleIndexKey___ge__(self, *args)
1117 def __le__(self, *args):
1118 """__le__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
1119 return _IMP_kernel.ParticleIndexKey___le__(self, *args)
1122 """__hash__(ParticleIndexKey self) -> std::size_t"""
1123 return _IMP_kernel.ParticleIndexKey___hash__(self)
1125 def show(self, *args):
1127 show(ParticleIndexKey self, _ostream out=std::cout)
1128 show(ParticleIndexKey self)
1130 return _IMP_kernel.ParticleIndexKey_show(self, *args)
1132 def add_alias(*args):
1133 """add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
1134 return _IMP_kernel.ParticleIndexKey_add_alias(*args)
1136 if _newclass:add_alias = staticmethod(add_alias)
1137 __swig_getmethods__[
"add_alias"] =
lambda x: add_alias
1139 """get_index(ParticleIndexKey self) -> unsigned int"""
1140 return _IMP_kernel.ParticleIndexKey_get_index(self)
1142 def show_all(*args):
1143 """show_all(_ostream out)"""
1144 return _IMP_kernel.ParticleIndexKey_show_all(*args)
1146 if _newclass:show_all = staticmethod(show_all)
1147 __swig_getmethods__[
"show_all"] =
lambda x: show_all
1148 def get_all_strings():
1149 """get_all_strings() -> IMP::base::Vector< std::string >"""
1150 return _IMP_kernel.ParticleIndexKey_get_all_strings()
1152 if _newclass:get_all_strings = staticmethod(get_all_strings)
1153 __swig_getmethods__[
"get_all_strings"] =
lambda x: get_all_strings
1154 def get_number_unique():
1155 """get_number_unique() -> unsigned int"""
1156 return _IMP_kernel.ParticleIndexKey_get_number_unique()
1158 if _newclass:get_number_unique = staticmethod(get_number_unique)
1159 __swig_getmethods__[
"get_number_unique"] =
lambda x: get_number_unique
1161 """__str__(ParticleIndexKey self) -> std::string"""
1162 return _IMP_kernel.ParticleIndexKey___str__(self)
1165 """__repr__(ParticleIndexKey self) -> std::string"""
1166 return _IMP_kernel.ParticleIndexKey___repr__(self)
1168 __swig_destroy__ = _IMP_kernel.delete_ParticleIndexKey
1169 __del__ =
lambda self :
None;
1170 ParticleIndexKey_swigregister = _IMP_kernel.ParticleIndexKey_swigregister
1171 ParticleIndexKey_swigregister(ParticleIndexKey)
1173 def ParticleIndexKey_add_key(*args):
1174 """ParticleIndexKey_add_key(std::string sc) -> unsigned int"""
1175 return _IMP_kernel.ParticleIndexKey_add_key(*args)
1177 def ParticleIndexKey_get_key_exists(*args):
1178 """ParticleIndexKey_get_key_exists(std::string sc) -> bool"""
1179 return _IMP_kernel.ParticleIndexKey_get_key_exists(*args)
1181 def ParticleIndexKey_add_alias(*args):
1182 """ParticleIndexKey_add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
1183 return _IMP_kernel.ParticleIndexKey_add_alias(*args)
1185 def ParticleIndexKey_show_all(*args):
1186 """ParticleIndexKey_show_all(_ostream out)"""
1187 return _IMP_kernel.ParticleIndexKey_show_all(*args)
1189 def ParticleIndexKey_get_all_strings():
1190 """ParticleIndexKey_get_all_strings() -> IMP::base::Vector< std::string >"""
1191 return _IMP_kernel.ParticleIndexKey_get_all_strings()
1193 def ParticleIndexKey_get_number_unique():
1194 """ParticleIndexKey_get_number_unique() -> unsigned int"""
1195 return _IMP_kernel.ParticleIndexKey_get_number_unique()
1198 """Proxy of C++ IMP::kernel::Key<(4,true)> class"""
1199 __swig_setmethods__ = {}
1200 for _s
in [IMP.base._Value]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1201 __setattr__ =
lambda self, name, value: _swig_setattr(self, ObjectKey, name, value)
1202 __swig_getmethods__ = {}
1203 for _s
in [IMP.base._Value]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1204 __getattr__ =
lambda self, name: _swig_getattr(self, ObjectKey, name)
1205 def __init__(self, *args):
1207 __init__(IMP::kernel::Key<(4,true)> self) -> ObjectKey
1208 __init__(IMP::kernel::Key<(4,true)> self, std::string c) -> ObjectKey
1209 __init__(IMP::kernel::Key<(4,true)> self, unsigned int i) -> ObjectKey
1211 this = _IMP_kernel.new_ObjectKey(*args)
1212 try: self.this.append(this)
1213 except: self.this = this
1215 """add_key(std::string sc) -> unsigned int"""
1216 return _IMP_kernel.ObjectKey_add_key(*args)
1218 if _newclass:add_key = staticmethod(add_key)
1219 __swig_getmethods__[
"add_key"] =
lambda x: add_key
1220 def get_key_exists(*args):
1221 """get_key_exists(std::string sc) -> bool"""
1222 return _IMP_kernel.ObjectKey_get_key_exists(*args)
1224 if _newclass:get_key_exists = staticmethod(get_key_exists)
1225 __swig_getmethods__[
"get_key_exists"] =
lambda x: get_key_exists
1226 def get_string(self):
1227 """get_string(ObjectKey self) -> std::string const"""
1228 return _IMP_kernel.ObjectKey_get_string(self)
1230 def __eq__(self, *args):
1231 """__eq__(ObjectKey self, ObjectKey o) -> bool"""
1232 return _IMP_kernel.ObjectKey___eq__(self, *args)
1234 def __ne__(self, *args):
1235 """__ne__(ObjectKey self, ObjectKey o) -> bool"""
1236 return _IMP_kernel.ObjectKey___ne__(self, *args)
1238 def __lt__(self, *args):
1239 """__lt__(ObjectKey self, ObjectKey o) -> bool"""
1240 return _IMP_kernel.ObjectKey___lt__(self, *args)
1242 def __gt__(self, *args):
1243 """__gt__(ObjectKey self, ObjectKey o) -> bool"""
1244 return _IMP_kernel.ObjectKey___gt__(self, *args)
1246 def __ge__(self, *args):
1247 """__ge__(ObjectKey self, ObjectKey o) -> bool"""
1248 return _IMP_kernel.ObjectKey___ge__(self, *args)
1250 def __le__(self, *args):
1251 """__le__(ObjectKey self, ObjectKey o) -> bool"""
1252 return _IMP_kernel.ObjectKey___le__(self, *args)
1255 """__hash__(ObjectKey self) -> std::size_t"""
1256 return _IMP_kernel.ObjectKey___hash__(self)
1258 def show(self, *args):
1260 show(ObjectKey self, _ostream out=std::cout)
1261 show(ObjectKey self)
1263 return _IMP_kernel.ObjectKey_show(self, *args)
1265 def add_alias(*args):
1266 """add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
1267 return _IMP_kernel.ObjectKey_add_alias(*args)
1269 if _newclass:add_alias = staticmethod(add_alias)
1270 __swig_getmethods__[
"add_alias"] =
lambda x: add_alias
1272 """get_index(ObjectKey self) -> unsigned int"""
1273 return _IMP_kernel.ObjectKey_get_index(self)
1275 def show_all(*args):
1276 """show_all(_ostream out)"""
1277 return _IMP_kernel.ObjectKey_show_all(*args)
1279 if _newclass:show_all = staticmethod(show_all)
1280 __swig_getmethods__[
"show_all"] =
lambda x: show_all
1281 def get_all_strings():
1282 """get_all_strings() -> IMP::base::Vector< std::string >"""
1283 return _IMP_kernel.ObjectKey_get_all_strings()
1285 if _newclass:get_all_strings = staticmethod(get_all_strings)
1286 __swig_getmethods__[
"get_all_strings"] =
lambda x: get_all_strings
1287 def get_number_unique():
1288 """get_number_unique() -> unsigned int"""
1289 return _IMP_kernel.ObjectKey_get_number_unique()
1291 if _newclass:get_number_unique = staticmethod(get_number_unique)
1292 __swig_getmethods__[
"get_number_unique"] =
lambda x: get_number_unique
1294 """__str__(ObjectKey self) -> std::string"""
1295 return _IMP_kernel.ObjectKey___str__(self)
1298 """__repr__(ObjectKey self) -> std::string"""
1299 return _IMP_kernel.ObjectKey___repr__(self)
1301 __swig_destroy__ = _IMP_kernel.delete_ObjectKey
1302 __del__ =
lambda self :
None;
1303 ObjectKey_swigregister = _IMP_kernel.ObjectKey_swigregister
1304 ObjectKey_swigregister(ObjectKey)
1306 def ObjectKey_add_key(*args):
1307 """ObjectKey_add_key(std::string sc) -> unsigned int"""
1308 return _IMP_kernel.ObjectKey_add_key(*args)
1310 def ObjectKey_get_key_exists(*args):
1311 """ObjectKey_get_key_exists(std::string sc) -> bool"""
1312 return _IMP_kernel.ObjectKey_get_key_exists(*args)
1314 def ObjectKey_add_alias(*args):
1315 """ObjectKey_add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
1316 return _IMP_kernel.ObjectKey_add_alias(*args)
1318 def ObjectKey_show_all(*args):
1319 """ObjectKey_show_all(_ostream out)"""
1320 return _IMP_kernel.ObjectKey_show_all(*args)
1322 def ObjectKey_get_all_strings():
1323 """ObjectKey_get_all_strings() -> IMP::base::Vector< std::string >"""
1324 return _IMP_kernel.ObjectKey_get_all_strings()
1326 def ObjectKey_get_number_unique():
1327 """ObjectKey_get_number_unique() -> unsigned int"""
1328 return _IMP_kernel.ObjectKey_get_number_unique()
1331 """Proxy of C++ IMP::kernel::Key<(6,true)> class"""
1332 __swig_setmethods__ = {}
1333 for _s
in [IMP.base._Value]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1334 __setattr__ =
lambda self, name, value: _swig_setattr(self, ParticleIndexesKey, name, value)
1335 __swig_getmethods__ = {}
1336 for _s
in [IMP.base._Value]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1337 __getattr__ =
lambda self, name: _swig_getattr(self, ParticleIndexesKey, name)
1338 def __init__(self, *args):
1340 __init__(IMP::kernel::Key<(6,true)> self) -> ParticleIndexesKey
1341 __init__(IMP::kernel::Key<(6,true)> self, std::string c) -> ParticleIndexesKey
1342 __init__(IMP::kernel::Key<(6,true)> self, unsigned int i) -> ParticleIndexesKey
1344 this = _IMP_kernel.new_ParticleIndexesKey(*args)
1345 try: self.this.append(this)
1346 except: self.this = this
1348 """add_key(std::string sc) -> unsigned int"""
1349 return _IMP_kernel.ParticleIndexesKey_add_key(*args)
1351 if _newclass:add_key = staticmethod(add_key)
1352 __swig_getmethods__[
"add_key"] =
lambda x: add_key
1353 def get_key_exists(*args):
1354 """get_key_exists(std::string sc) -> bool"""
1355 return _IMP_kernel.ParticleIndexesKey_get_key_exists(*args)
1357 if _newclass:get_key_exists = staticmethod(get_key_exists)
1358 __swig_getmethods__[
"get_key_exists"] =
lambda x: get_key_exists
1359 def get_string(self):
1360 """get_string(ParticleIndexesKey self) -> std::string const"""
1361 return _IMP_kernel.ParticleIndexesKey_get_string(self)
1363 def __eq__(self, *args):
1364 """__eq__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
1365 return _IMP_kernel.ParticleIndexesKey___eq__(self, *args)
1367 def __ne__(self, *args):
1368 """__ne__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
1369 return _IMP_kernel.ParticleIndexesKey___ne__(self, *args)
1371 def __lt__(self, *args):
1372 """__lt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
1373 return _IMP_kernel.ParticleIndexesKey___lt__(self, *args)
1375 def __gt__(self, *args):
1376 """__gt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
1377 return _IMP_kernel.ParticleIndexesKey___gt__(self, *args)
1379 def __ge__(self, *args):
1380 """__ge__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
1381 return _IMP_kernel.ParticleIndexesKey___ge__(self, *args)
1383 def __le__(self, *args):
1384 """__le__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
1385 return _IMP_kernel.ParticleIndexesKey___le__(self, *args)
1388 """__hash__(ParticleIndexesKey self) -> std::size_t"""
1389 return _IMP_kernel.ParticleIndexesKey___hash__(self)
1391 def show(self, *args):
1393 show(ParticleIndexesKey self, _ostream out=std::cout)
1394 show(ParticleIndexesKey self)
1396 return _IMP_kernel.ParticleIndexesKey_show(self, *args)
1398 def add_alias(*args):
1399 """add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
1400 return _IMP_kernel.ParticleIndexesKey_add_alias(*args)
1402 if _newclass:add_alias = staticmethod(add_alias)
1403 __swig_getmethods__[
"add_alias"] =
lambda x: add_alias
1405 """get_index(ParticleIndexesKey self) -> unsigned int"""
1406 return _IMP_kernel.ParticleIndexesKey_get_index(self)
1408 def show_all(*args):
1409 """show_all(_ostream out)"""
1410 return _IMP_kernel.ParticleIndexesKey_show_all(*args)
1412 if _newclass:show_all = staticmethod(show_all)
1413 __swig_getmethods__[
"show_all"] =
lambda x: show_all
1414 def get_all_strings():
1415 """get_all_strings() -> IMP::base::Vector< std::string >"""
1416 return _IMP_kernel.ParticleIndexesKey_get_all_strings()
1418 if _newclass:get_all_strings = staticmethod(get_all_strings)
1419 __swig_getmethods__[
"get_all_strings"] =
lambda x: get_all_strings
1420 def get_number_unique():
1421 """get_number_unique() -> unsigned int"""
1422 return _IMP_kernel.ParticleIndexesKey_get_number_unique()
1424 if _newclass:get_number_unique = staticmethod(get_number_unique)
1425 __swig_getmethods__[
"get_number_unique"] =
lambda x: get_number_unique
1427 """__str__(ParticleIndexesKey self) -> std::string"""
1428 return _IMP_kernel.ParticleIndexesKey___str__(self)
1431 """__repr__(ParticleIndexesKey self) -> std::string"""
1432 return _IMP_kernel.ParticleIndexesKey___repr__(self)
1434 __swig_destroy__ = _IMP_kernel.delete_ParticleIndexesKey
1435 __del__ =
lambda self :
None;
1436 ParticleIndexesKey_swigregister = _IMP_kernel.ParticleIndexesKey_swigregister
1437 ParticleIndexesKey_swigregister(ParticleIndexesKey)
1439 def ParticleIndexesKey_add_key(*args):
1440 """ParticleIndexesKey_add_key(std::string sc) -> unsigned int"""
1441 return _IMP_kernel.ParticleIndexesKey_add_key(*args)
1443 def ParticleIndexesKey_get_key_exists(*args):
1444 """ParticleIndexesKey_get_key_exists(std::string sc) -> bool"""
1445 return _IMP_kernel.ParticleIndexesKey_get_key_exists(*args)
1447 def ParticleIndexesKey_add_alias(*args):
1448 """ParticleIndexesKey_add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
1449 return _IMP_kernel.ParticleIndexesKey_add_alias(*args)
1451 def ParticleIndexesKey_show_all(*args):
1452 """ParticleIndexesKey_show_all(_ostream out)"""
1453 return _IMP_kernel.ParticleIndexesKey_show_all(*args)
1455 def ParticleIndexesKey_get_all_strings():
1456 """ParticleIndexesKey_get_all_strings() -> IMP::base::Vector< std::string >"""
1457 return _IMP_kernel.ParticleIndexesKey_get_all_strings()
1459 def ParticleIndexesKey_get_number_unique():
1460 """ParticleIndexesKey_get_number_unique() -> unsigned int"""
1461 return _IMP_kernel.ParticleIndexesKey_get_number_unique()
1464 """Proxy of C++ IMP::base::Index<(IMP::ParticleIndexTag)> class"""
1465 __swig_setmethods__ = {}
1466 for _s
in [IMP.base._Value]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1467 __setattr__ =
lambda self, name, value: _swig_setattr(self, ParticleIndex, name, value)
1468 __swig_getmethods__ = {}
1469 for _s
in [IMP.base._Value]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1470 __getattr__ =
lambda self, name: _swig_getattr(self, ParticleIndex, name)
1471 def __init__(self, *args):
1473 __init__(IMP::base::Index<(IMP::ParticleIndexTag)> self, int i) -> ParticleIndex
1474 __init__(IMP::base::Index<(IMP::ParticleIndexTag)> self) -> ParticleIndex
1476 this = _IMP_kernel.new_ParticleIndex(*args)
1477 try: self.this.append(this)
1478 except: self.this = this
1480 """get_index(ParticleIndex self) -> int"""
1481 return _IMP_kernel.ParticleIndex_get_index(self)
1483 def __eq__(self, *args):
1484 """__eq__(ParticleIndex self, ParticleIndex o) -> bool"""
1485 return _IMP_kernel.ParticleIndex___eq__(self, *args)
1487 def __ne__(self, *args):
1488 """__ne__(ParticleIndex self, ParticleIndex o) -> bool"""
1489 return _IMP_kernel.ParticleIndex___ne__(self, *args)
1491 def __lt__(self, *args):
1492 """__lt__(ParticleIndex self, ParticleIndex o) -> bool"""
1493 return _IMP_kernel.ParticleIndex___lt__(self, *args)
1495 def __gt__(self, *args):
1496 """__gt__(ParticleIndex self, ParticleIndex o) -> bool"""
1497 return _IMP_kernel.ParticleIndex___gt__(self, *args)
1499 def __ge__(self, *args):
1500 """__ge__(ParticleIndex self, ParticleIndex o) -> bool"""
1501 return _IMP_kernel.ParticleIndex___ge__(self, *args)
1503 def __le__(self, *args):
1504 """__le__(ParticleIndex self, ParticleIndex o) -> bool"""
1505 return _IMP_kernel.ParticleIndex___le__(self, *args)
1507 def show(self, *args):
1509 show(ParticleIndex self, _ostream out=std::cout)
1510 show(ParticleIndex self)
1512 return _IMP_kernel.ParticleIndex_show(self, *args)
1515 """__hash__(ParticleIndex self) -> std::size_t"""
1516 return _IMP_kernel.ParticleIndex___hash__(self)
1519 """__str__(ParticleIndex self) -> std::string"""
1520 return _IMP_kernel.ParticleIndex___str__(self)
1523 """__repr__(ParticleIndex self) -> std::string"""
1524 return _IMP_kernel.ParticleIndex___repr__(self)
1526 __swig_destroy__ = _IMP_kernel.delete_ParticleIndex
1527 __del__ =
lambda self :
None;
1528 ParticleIndex_swigregister = _IMP_kernel.ParticleIndex_swigregister
1529 ParticleIndex_swigregister(ParticleIndex)
1539 """Proxy of C++ IMP::kernel::FloatIndex class"""
1540 __swig_setmethods__ = {}
1541 for _s
in [IMP.base._Value]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1542 __setattr__ =
lambda self, name, value: _swig_setattr(self, FloatIndex, name, value)
1543 __swig_getmethods__ = {}
1544 for _s
in [IMP.base._Value]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1545 __getattr__ =
lambda self, name: _swig_getattr(self, FloatIndex, name)
1546 def __init__(self, *args):
1548 __init__(IMP::kernel::FloatIndex self, ParticleIndex i0=ParticleIndex(), FloatKey i1=FloatKey()) -> FloatIndex
1549 __init__(IMP::kernel::FloatIndex self, ParticleIndex i0=ParticleIndex()) -> FloatIndex
1550 __init__(IMP::kernel::FloatIndex self) -> FloatIndex
1552 this = _IMP_kernel.new_FloatIndex(*args)
1553 try: self.this.append(this)
1554 except: self.this = this
1556 """__hash__(FloatIndex self) -> std::size_t"""
1557 return _IMP_kernel.FloatIndex___hash__(self)
1559 def show(self, *args):
1561 show(FloatIndex self, _ostream out=std::cout)
1562 show(FloatIndex self)
1564 return _IMP_kernel.FloatIndex_show(self, *args)
1566 def __eq__(self, *args):
1567 """__eq__(FloatIndex self, FloatIndex o) -> bool"""
1568 return _IMP_kernel.FloatIndex___eq__(self, *args)
1570 def __ne__(self, *args):
1571 """__ne__(FloatIndex self, FloatIndex o) -> bool"""
1572 return _IMP_kernel.FloatIndex___ne__(self, *args)
1574 def __lt__(self, *args):
1575 """__lt__(FloatIndex self, FloatIndex o) -> bool"""
1576 return _IMP_kernel.FloatIndex___lt__(self, *args)
1578 def __gt__(self, *args):
1579 """__gt__(FloatIndex self, FloatIndex o) -> bool"""
1580 return _IMP_kernel.FloatIndex___gt__(self, *args)
1582 def __ge__(self, *args):
1583 """__ge__(FloatIndex self, FloatIndex o) -> bool"""
1584 return _IMP_kernel.FloatIndex___ge__(self, *args)
1586 def __le__(self, *args):
1587 """__le__(FloatIndex self, FloatIndex o) -> bool"""
1588 return _IMP_kernel.FloatIndex___le__(self, *args)
1590 def get_particle(self):
1591 """get_particle(FloatIndex self) -> ParticleIndex const &"""
1592 return _IMP_kernel.FloatIndex_get_particle(self)
1594 def set_particle(self, *args):
1595 """set_particle(FloatIndex self, ParticleIndex const & v)"""
1596 return _IMP_kernel.FloatIndex_set_particle(self, *args)
1599 """get_key(FloatIndex self) -> FloatKey const &"""
1600 return _IMP_kernel.FloatIndex_get_key(self)
1602 def set_key(self, *args):
1603 """set_key(FloatIndex self, FloatKey const & v)"""
1604 return _IMP_kernel.FloatIndex_set_key(self, *args)
1607 """__str__(FloatIndex self) -> std::string"""
1608 return _IMP_kernel.FloatIndex___str__(self)
1611 """__repr__(FloatIndex self) -> std::string"""
1612 return _IMP_kernel.FloatIndex___repr__(self)
1614 __swig_destroy__ = _IMP_kernel.delete_FloatIndex
1615 __del__ =
lambda self :
None;
1616 FloatIndex_swigregister = _IMP_kernel.FloatIndex_swigregister
1617 FloatIndex_swigregister(FloatIndex)
1619 class _ParticleIndexTag(_object):
1620 """Proxy of C++ IMP::kernel::ParticleIndexTag class"""
1621 __swig_setmethods__ = {}
1622 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ParticleIndexTag, name, value)
1623 __swig_getmethods__ = {}
1624 __getattr__ =
lambda self, name: _swig_getattr(self, _ParticleIndexTag, name)
1625 __repr__ = _swig_repr
1627 """__init__(IMP::kernel::ParticleIndexTag self) -> _ParticleIndexTag"""
1628 this = _IMP_kernel.new__ParticleIndexTag()
1629 try: self.this.append(this)
1630 except: self.this = this
1631 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexTag
1632 __del__ =
lambda self :
None;
1633 _ParticleIndexTag_swigregister = _IMP_kernel._ParticleIndexTag_swigregister
1634 _ParticleIndexTag_swigregister(_ParticleIndexTag)
1637 """Proxy of C++ IMP::kernel::ModelObject class"""
1638 __swig_setmethods__ = {}
1639 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1640 __setattr__ =
lambda self, name, value: _swig_setattr(self, ModelObject, name, value)
1641 __swig_getmethods__ = {}
1642 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1643 __getattr__ =
lambda self, name: _swig_getattr(self, ModelObject, name)
1644 __swig_destroy__ = _IMP_kernel.delete_ModelObject
1645 __del__ =
lambda self :
None;
1646 def get_model(self):
1647 """get_model(ModelObject self) -> Model"""
1648 return _IMP_kernel.ModelObject_get_model(self)
1650 def get_inputs(self):
1651 """get_inputs(ModelObject self) -> IMP::kernel::ModelObjectsTemp"""
1652 return _IMP_kernel.ModelObject_get_inputs(self)
1654 def get_outputs(self):
1655 """get_outputs(ModelObject self) -> IMP::kernel::ModelObjectsTemp"""
1656 return _IMP_kernel.ModelObject_get_outputs(self)
1658 def get_interactions(self):
1659 """get_interactions(ModelObject self) -> IMP::kernel::ModelObjectsTemps"""
1660 return _IMP_kernel.ModelObject_get_interactions(self)
1662 def get_has_dependencies(self):
1663 """get_has_dependencies(ModelObject self) -> bool"""
1664 return _IMP_kernel.ModelObject_get_has_dependencies(self)
1666 def set_has_dependencies(self, *args):
1667 """set_has_dependencies(ModelObject self, bool tf)"""
1668 return _IMP_kernel.ModelObject_set_has_dependencies(self, *args)
1670 def set_has_required_score_states(self, *args):
1671 """set_has_required_score_states(ModelObject self, bool tf)"""
1672 return _IMP_kernel.ModelObject_set_has_required_score_states(self, *args)
1674 def get_has_required_score_states(self):
1675 """get_has_required_score_states(ModelObject self) -> bool"""
1676 return _IMP_kernel.ModelObject_get_has_required_score_states(self)
1679 """get_required_score_states(ModelObject self) -> IMP::kernel::ScoreStatesTemp const &"""
1680 return _IMP_kernel.ModelObject_get_required_score_states(self)
1682 def handle_set_has_required_score_states(self, *args):
1683 """handle_set_has_required_score_states(ModelObject self, bool arg0)"""
1684 return _IMP_kernel.ModelObject_handle_set_has_required_score_states(self, *args)
1686 def do_get_inputs(self):
1687 """do_get_inputs(ModelObject self) -> IMP::kernel::ModelObjectsTemp"""
1688 return _IMP_kernel.ModelObject_do_get_inputs(self)
1690 def do_get_outputs(self):
1691 """do_get_outputs(ModelObject self) -> IMP::kernel::ModelObjectsTemp"""
1692 return _IMP_kernel.ModelObject_do_get_outputs(self)
1694 def do_get_interactions(self):
1695 """do_get_interactions(ModelObject self) -> IMP::kernel::ModelObjectsTemps"""
1696 return _IMP_kernel.ModelObject_do_get_interactions(self)
1698 def __init__(self, *args):
1700 __init__(IMP::kernel::ModelObject self, Model m, std::string name) -> ModelObject
1701 __init__(IMP::kernel::ModelObject self, std::string name) -> ModelObject
1703 if self.__class__ == ModelObject:
1707 this = _IMP_kernel.new_ModelObject(_self, *args)
1708 try: self.this.append(this)
1709 except: self.this = this
1710 if self.__class__ != ModelObject:
1712 IMP.base._director_objects.register(self)
1716 def set_model(self, *args):
1717 """set_model(ModelObject self, Model m)"""
1718 return _IMP_kernel.ModelObject_set_model(self, *args)
1720 def get_is_part_of_model(self):
1721 """get_is_part_of_model(ModelObject self) -> bool"""
1722 return _IMP_kernel.ModelObject_get_is_part_of_model(self)
1724 def do_set_model(self, *args):
1725 """do_set_model(ModelObject self, Model arg0)"""
1726 return _IMP_kernel.ModelObject_do_set_model(self, *args)
1729 """__str__(ModelObject self) -> std::string"""
1730 return _IMP_kernel.ModelObject___str__(self)
1733 """__repr__(ModelObject self) -> std::string"""
1734 return _IMP_kernel.ModelObject___repr__(self)
1737 return _object_cast_to_ModelObject(o)
1738 get_from = staticmethod(get_from)
1740 def get_type_name(self):
1741 return self.__class__.__name__
1742 def do_show(self, out):
1744 def get_version_info(self):
1745 if"IMP::kernel" ==
"IMP":
1746 return VersionInfo(
"python",
"0")
1748 return IMP.VersionInfo(
"python",
"0")
1750 return _object_cast_to_ModelObject(o)
1751 get_from = staticmethod(get_from)
1753 def __disown__(self):
1755 _IMP_kernel.disown_ModelObject(self)
1756 return weakref_proxy(self)
1757 ModelObject_swigregister = _IMP_kernel.ModelObject_swigregister
1758 ModelObject_swigregister(ModelObject)
1759 cvar = _IMP_kernel.cvar
1760 NO_MAX = cvar.NO_MAX
1761 BAD_SCORE = cvar.BAD_SCORE
1763 class _ParticleInputs(_object):
1764 """Proxy of C++ IMP::kernel::ParticleInputs class"""
1765 __swig_setmethods__ = {}
1766 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ParticleInputs, name, value)
1767 __swig_getmethods__ = {}
1768 __getattr__ =
lambda self, name: _swig_getattr(self, _ParticleInputs, name)
1769 __repr__ = _swig_repr
1770 def get_inputs(self, *args):
1771 """get_inputs(_ParticleInputs self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
1772 return _IMP_kernel._ParticleInputs_get_inputs(self, *args)
1775 """get_input_containers(_ParticleInputs self, Particle p) -> IMP::kernel::ContainersTemp"""
1776 return _IMP_kernel._ParticleInputs_get_input_containers(self, *args)
1779 """get_input_particles(_ParticleInputs self, Particle p) -> IMP::kernel::ParticlesTemp"""
1780 return _IMP_kernel._ParticleInputs_get_input_particles(self, *args)
1783 """__init__(IMP::kernel::ParticleInputs self) -> _ParticleInputs"""
1784 this = _IMP_kernel.new__ParticleInputs()
1785 try: self.this.append(this)
1786 except: self.this = this
1787 _ParticleInputs_swigregister = _IMP_kernel._ParticleInputs_swigregister
1788 _ParticleInputs_swigregister(_ParticleInputs)
1790 class _ParticleOutputs(_object):
1791 """Proxy of C++ IMP::kernel::ParticleOutputs class"""
1792 __swig_setmethods__ = {}
1793 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ParticleOutputs, name, value)
1794 __swig_getmethods__ = {}
1795 __getattr__ =
lambda self, name: _swig_getattr(self, _ParticleOutputs, name)
1796 __repr__ = _swig_repr
1797 def get_outputs(self, *args):
1798 """get_outputs(_ParticleOutputs self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
1799 return _IMP_kernel._ParticleOutputs_get_outputs(self, *args)
1802 """get_output_containers(_ParticleOutputs self, Particle p) -> IMP::kernel::ContainersTemp"""
1803 return _IMP_kernel._ParticleOutputs_get_output_containers(self, *args)
1806 """get_output_particles(_ParticleOutputs self, Particle p) -> IMP::kernel::ParticlesTemp"""
1807 return _IMP_kernel._ParticleOutputs_get_output_particles(self, *args)
1810 """__init__(IMP::kernel::ParticleOutputs self) -> _ParticleOutputs"""
1811 this = _IMP_kernel.new__ParticleOutputs()
1812 try: self.this.append(this)
1813 except: self.this = this
1814 _ParticleOutputs_swigregister = _IMP_kernel._ParticleOutputs_swigregister
1815 _ParticleOutputs_swigregister(_ParticleOutputs)
1819 """get_input_particles(IMP::kernel::ModelObjectsTemp const & mos) -> IMP::kernel::ParticlesTemp"""
1820 return _IMP_kernel.get_input_particles(*args)
1823 """get_input_containers(IMP::kernel::ModelObjectsTemp const & mos) -> IMP::kernel::ContainersTemp"""
1824 return _IMP_kernel.get_input_containers(*args)
1827 """get_output_particles(IMP::kernel::ModelObjectsTemp const & mos) -> IMP::kernel::ParticlesTemp"""
1828 return _IMP_kernel.get_output_particles(*args)
1831 """get_output_containers(IMP::kernel::ModelObjectsTemp const & mos) -> IMP::kernel::ContainersTemp"""
1832 return _IMP_kernel.get_output_containers(*args)
1834 """Proxy of C++ IMP::kernel::DerivativeAccumulator class"""
1835 __swig_setmethods__ = {}
1836 __setattr__ =
lambda self, name, value: _swig_setattr(self, DerivativeAccumulator, name, value)
1837 __swig_getmethods__ = {}
1838 __getattr__ =
lambda self, name: _swig_getattr(self, DerivativeAccumulator, name)
1839 __repr__ = _swig_repr
1840 def __init__(self, *args):
1842 __init__(IMP::kernel::DerivativeAccumulator self, double weight=1.0) -> DerivativeAccumulator
1843 __init__(IMP::kernel::DerivativeAccumulator self) -> DerivativeAccumulator
1844 __init__(IMP::kernel::DerivativeAccumulator self, DerivativeAccumulator copy, double weight) -> DerivativeAccumulator
1846 this = _IMP_kernel.new_DerivativeAccumulator(*args)
1847 try: self.this.append(this)
1848 except: self.this = this
1849 def __call__(self, *args):
1850 """__call__(DerivativeAccumulator self, double const value) -> double"""
1851 return _IMP_kernel.DerivativeAccumulator___call__(self, *args)
1853 def get_weight(self):
1854 """get_weight(DerivativeAccumulator self) -> double"""
1855 return _IMP_kernel.DerivativeAccumulator_get_weight(self)
1857 def show(self, *args):
1859 show(DerivativeAccumulator self, _ostream out=std::cout)
1860 show(DerivativeAccumulator self)
1862 return _IMP_kernel.DerivativeAccumulator_show(self, *args)
1864 __swig_destroy__ = _IMP_kernel.delete_DerivativeAccumulator
1865 __del__ =
lambda self :
None;
1866 DerivativeAccumulator_swigregister = _IMP_kernel.DerivativeAccumulator_swigregister
1867 DerivativeAccumulator_swigregister(DerivativeAccumulator)
1870 """Proxy of C++ IMP::kernel::EvaluationState class"""
1871 __swig_setmethods__ = {}
1872 __setattr__ =
lambda self, name, value: _swig_setattr(self, EvaluationState, name, value)
1873 __swig_getmethods__ = {}
1874 __getattr__ =
lambda self, name: _swig_getattr(self, EvaluationState, name)
1875 __swig_setmethods__[
"score"] = _IMP_kernel.EvaluationState_score_set
1876 __swig_getmethods__[
"score"] = _IMP_kernel.EvaluationState_score_get
1877 if _newclass:score = _swig_property(_IMP_kernel.EvaluationState_score_get, _IMP_kernel.EvaluationState_score_set)
1878 __swig_setmethods__[
"good"] = _IMP_kernel.EvaluationState_good_set
1879 __swig_getmethods__[
"good"] = _IMP_kernel.EvaluationState_good_get
1880 if _newclass:good = _swig_property(_IMP_kernel.EvaluationState_good_get, _IMP_kernel.EvaluationState_good_set)
1881 def __init__(self, *args):
1883 __init__(IMP::kernel::EvaluationState self, double oscore, bool ogood) -> EvaluationState
1884 __init__(IMP::kernel::EvaluationState self) -> EvaluationState
1886 this = _IMP_kernel.new_EvaluationState(*args)
1887 try: self.this.append(this)
1888 except: self.this = this
1889 def show(self, *args):
1891 show(EvaluationState self, _ostream out=std::cout)
1892 show(EvaluationState self)
1894 return _IMP_kernel.EvaluationState_show(self, *args)
1897 """__str__(EvaluationState self) -> std::string"""
1898 return _IMP_kernel.EvaluationState___str__(self)
1901 """__repr__(EvaluationState self) -> std::string"""
1902 return _IMP_kernel.EvaluationState___repr__(self)
1904 __swig_destroy__ = _IMP_kernel.delete_EvaluationState
1905 __del__ =
lambda self :
None;
1906 EvaluationState_swigregister = _IMP_kernel.EvaluationState_swigregister
1907 EvaluationState_swigregister(EvaluationState)
1910 """Proxy of C++ IMP::kernel::ScoreAccumulator class"""
1911 __swig_setmethods__ = {}
1912 for _s
in [IMP.base._Value]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1913 __setattr__ =
lambda self, name, value: _swig_setattr(self, ScoreAccumulator, name, value)
1914 __swig_getmethods__ = {}
1915 for _s
in [IMP.base._Value]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1916 __getattr__ =
lambda self, name: _swig_getattr(self, ScoreAccumulator, name)
1917 def __init__(self, *args):
1919 __init__(IMP::kernel::ScoreAccumulator self) -> ScoreAccumulator
1920 __init__(IMP::kernel::ScoreAccumulator self, ScoreAccumulator o, Restraint r) -> ScoreAccumulator
1921 __init__(IMP::kernel::ScoreAccumulator self, ScoreAccumulator o, double weight, double local_max) -> ScoreAccumulator
1923 this = _IMP_kernel.new_ScoreAccumulator(*args)
1924 try: self.this.append(this)
1925 except: self.this = this
1926 def add_score(self, *args):
1927 """add_score(ScoreAccumulator self, double score)"""
1928 return _IMP_kernel.ScoreAccumulator_add_score(self, *args)
1930 def get_abort_evaluation(self):
1931 """get_abort_evaluation(ScoreAccumulator self) -> bool"""
1932 return _IMP_kernel.ScoreAccumulator_get_abort_evaluation(self)
1934 def get_is_evaluate_if_below(self):
1935 """get_is_evaluate_if_below(ScoreAccumulator self) -> bool"""
1936 return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_below(self)
1938 def get_is_evaluate_if_good(self):
1939 """get_is_evaluate_if_good(ScoreAccumulator self) -> bool"""
1940 return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_good(self)
1942 def get_maximum(self):
1943 """get_maximum(ScoreAccumulator self) -> double"""
1944 return _IMP_kernel.ScoreAccumulator_get_maximum(self)
1946 def get_derivative_accumulator(self):
1947 """get_derivative_accumulator(ScoreAccumulator self) -> DerivativeAccumulator"""
1948 return _IMP_kernel.ScoreAccumulator_get_derivative_accumulator(self)
1950 def show(self, *args):
1952 show(ScoreAccumulator self, _ostream out=std::cout)
1953 show(ScoreAccumulator self)
1955 return _IMP_kernel.ScoreAccumulator_show(self, *args)
1958 """__str__(ScoreAccumulator self) -> std::string"""
1959 return _IMP_kernel.ScoreAccumulator___str__(self)
1962 """__repr__(ScoreAccumulator self) -> std::string"""
1963 return _IMP_kernel.ScoreAccumulator___repr__(self)
1965 __swig_destroy__ = _IMP_kernel.delete_ScoreAccumulator
1966 __del__ =
lambda self :
None;
1967 ScoreAccumulator_swigregister = _IMP_kernel.ScoreAccumulator_swigregister
1968 ScoreAccumulator_swigregister(ScoreAccumulator)
1971 """Proxy of C++ IMP::kernel::ScoreState class"""
1972 __swig_setmethods__ = {}
1973 for _s
in [ModelObject]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1974 __setattr__ =
lambda self, name, value: _swig_setattr(self, ScoreState, name, value)
1975 __swig_getmethods__ = {}
1976 for _s
in [ModelObject]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1977 __getattr__ =
lambda self, name: _swig_getattr(self, ScoreState, name)
1978 def before_evaluate(self):
1979 """before_evaluate(ScoreState self)"""
1980 return _IMP_kernel.ScoreState_before_evaluate(self)
1982 def after_evaluate(self, *args):
1983 """after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
1984 return _IMP_kernel.ScoreState_after_evaluate(self, *args)
1986 def get_has_update_order(self):
1987 """get_has_update_order(ScoreState self) -> bool"""
1988 return _IMP_kernel.ScoreState_get_has_update_order(self)
1991 """get_update_order(ScoreState self) -> unsigned int"""
1992 return _IMP_kernel.ScoreState_get_update_order(self)
1994 def handle_set_has_required_score_states(self, *args):
1995 """handle_set_has_required_score_states(ScoreState self, bool tf)"""
1996 return _IMP_kernel.ScoreState_handle_set_has_required_score_states(self, *args)
1998 def do_before_evaluate(self):
1999 """do_before_evaluate(ScoreState self)"""
2000 return _IMP_kernel.ScoreState_do_before_evaluate(self)
2002 def do_after_evaluate(self, *args):
2003 """do_after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
2004 return _IMP_kernel.ScoreState_do_after_evaluate(self, *args)
2006 __swig_destroy__ = _IMP_kernel.delete_ScoreState
2007 __del__ =
lambda self :
None;
2008 def __init__(self, *args):
2010 __init__(IMP::kernel::ScoreState self, Model m, std::string name) -> ScoreState
2011 __init__(IMP::kernel::ScoreState self, Model m) -> ScoreState
2012 __init__(IMP::kernel::ScoreState self, std::string name="ScoreState %1%") -> ScoreState
2013 __init__(IMP::kernel::ScoreState self) -> ScoreState
2015 if self.__class__ == ScoreState:
2019 this = _IMP_kernel.new_ScoreState(_self, *args)
2020 try: self.this.append(this)
2021 except: self.this = this
2022 if self.__class__ != ScoreState:
2024 IMP.base._director_objects.register(self)
2029 """get_input_particles(ScoreState self) -> IMP::kernel::ParticlesTemp"""
2030 return _IMP_kernel.ScoreState_get_input_particles(self)
2033 """get_input_containers(ScoreState self) -> IMP::kernel::ContainersTemp"""
2034 return _IMP_kernel.ScoreState_get_input_containers(self)
2037 """get_output_particles(ScoreState self) -> IMP::kernel::ParticlesTemp"""
2038 return _IMP_kernel.ScoreState_get_output_particles(self)
2041 """get_output_containers(ScoreState self) -> IMP::kernel::ContainersTemp"""
2042 return _IMP_kernel.ScoreState_get_output_containers(self)
2045 """__str__(ScoreState self) -> std::string"""
2046 return _IMP_kernel.ScoreState___str__(self)
2049 """__repr__(ScoreState self) -> std::string"""
2050 return _IMP_kernel.ScoreState___repr__(self)
2053 return _object_cast_to_ScoreState(o)
2054 get_from = staticmethod(get_from)
2056 def get_type_name(self):
2057 return self.__class__.__name__
2058 def do_show(self, out):
2060 def get_version_info(self):
2061 if"IMP::kernel" ==
"IMP":
2062 return VersionInfo(
"python",
"0")
2064 return IMP.VersionInfo(
"python",
"0")
2066 return _object_cast_to_ScoreState(o)
2067 get_from = staticmethod(get_from)
2069 def __disown__(self):
2071 _IMP_kernel.disown_ScoreState(self)
2072 return weakref_proxy(self)
2073 def do_get_inputs(self):
2074 """do_get_inputs(ScoreState self) -> IMP::kernel::ModelObjectsTemp"""
2075 return _IMP_kernel.ScoreState_do_get_inputs(self)
2077 def do_get_outputs(self):
2078 """do_get_outputs(ScoreState self) -> IMP::kernel::ModelObjectsTemp"""
2079 return _IMP_kernel.ScoreState_do_get_outputs(self)
2081 def do_get_interactions(self):
2082 """do_get_interactions(ScoreState self) -> IMP::kernel::ModelObjectsTemps"""
2083 return _IMP_kernel.ScoreState_do_get_interactions(self)
2085 ScoreState_swigregister = _IMP_kernel.ScoreState_swigregister
2086 ScoreState_swigregister(ScoreState)
2090 """get_update_order(IMP::kernel::ScoreStatesTemp input) -> IMP::kernel::ScoreStatesTemp"""
2091 return _IMP_kernel.get_update_order(*args)
2093 """Proxy of C++ IMP::kernel::Constraint class"""
2094 __swig_setmethods__ = {}
2095 for _s
in [ScoreState]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
2096 __setattr__ =
lambda self, name, value: _swig_setattr(self, Constraint, name, value)
2097 __swig_getmethods__ = {}
2098 for _s
in [ScoreState]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
2099 __getattr__ =
lambda self, name: _swig_getattr(self, Constraint, name)
2100 def __init__(self, *args):
2102 __init__(IMP::kernel::Constraint self, std::string name="Constraint %1%") -> Constraint
2103 __init__(IMP::kernel::Constraint self) -> Constraint
2104 __init__(IMP::kernel::Constraint self, Model m, std::string name="Constraint %1%") -> Constraint
2105 __init__(IMP::kernel::Constraint self, Model m) -> Constraint
2107 if self.__class__ == Constraint:
2111 this = _IMP_kernel.new_Constraint(_self, *args)
2112 try: self.this.append(this)
2113 except: self.this = this
2114 if self.__class__ != Constraint:
2116 IMP.base._director_objects.register(self)
2120 def do_update_attributes(self):
2121 """do_update_attributes(Constraint self)"""
2122 return _IMP_kernel.Constraint_do_update_attributes(self)
2124 def do_update_derivatives(self, *args):
2125 """do_update_derivatives(Constraint self, DerivativeAccumulator da)"""
2126 return _IMP_kernel.Constraint_do_update_derivatives(self, *args)
2128 def do_before_evaluate(self):
2129 """do_before_evaluate(Constraint self)"""
2130 return _IMP_kernel.Constraint_do_before_evaluate(self)
2132 def do_after_evaluate(self, *args):
2133 """do_after_evaluate(Constraint self, DerivativeAccumulator da)"""
2134 return _IMP_kernel.Constraint_do_after_evaluate(self, *args)
2136 __swig_destroy__ = _IMP_kernel.delete_Constraint
2137 __del__ =
lambda self :
None;
2139 """__str__(Constraint self) -> std::string"""
2140 return _IMP_kernel.Constraint___str__(self)
2143 """__repr__(Constraint self) -> std::string"""
2144 return _IMP_kernel.Constraint___repr__(self)
2147 return _object_cast_to_Constraint(o)
2148 get_from = staticmethod(get_from)
2150 def get_type_name(self):
2151 return self.__class__.__name__
2152 def do_show(self, out):
2154 def get_version_info(self):
2155 if"IMP::kernel" ==
"IMP":
2156 return VersionInfo(
"python",
"0")
2158 return IMP.VersionInfo(
"python",
"0")
2160 return _object_cast_to_Constraint(o)
2161 get_from = staticmethod(get_from)
2163 def __disown__(self):
2165 _IMP_kernel.disown_Constraint(self)
2166 return weakref_proxy(self)
2167 def do_get_inputs(self):
2168 """do_get_inputs(Constraint self) -> IMP::kernel::ModelObjectsTemp"""
2169 return _IMP_kernel.Constraint_do_get_inputs(self)
2171 def do_get_outputs(self):
2172 """do_get_outputs(Constraint self) -> IMP::kernel::ModelObjectsTemp"""
2173 return _IMP_kernel.Constraint_do_get_outputs(self)
2175 def do_get_interactions(self):
2176 """do_get_interactions(Constraint self) -> IMP::kernel::ModelObjectsTemps"""
2177 return _IMP_kernel.Constraint_do_get_interactions(self)
2179 Constraint_swigregister = _IMP_kernel.Constraint_swigregister
2180 Constraint_swigregister(Constraint)
2183 """Proxy of C++ IMP::kernel::Container class"""
2184 __swig_setmethods__ = {}
2185 for _s
in [ScoreState]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
2186 __setattr__ =
lambda self, name, value: _swig_setattr(self, Container, name, value)
2187 __swig_getmethods__ = {}
2188 for _s
in [ScoreState]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
2189 __getattr__ =
lambda self, name: _swig_getattr(self, Container, name)
2190 def set_is_changed(self, *args):
2191 """set_is_changed(Container self, bool tf)"""
2192 return _IMP_kernel.Container_set_is_changed(self, *args)
2194 def __init__(self, *args):
2196 __init__(IMP::kernel::Container self, Model m, std::string name="Container %1%") -> Container
2197 __init__(IMP::kernel::Container self, Model m) -> Container
2199 if self.__class__ == Container:
2203 this = _IMP_kernel.new_Container(_self, *args)
2204 try: self.this.append(this)
2205 except: self.this = this
2206 if self.__class__ != Container:
2208 IMP.base._director_objects.register(self)
2212 def get_all_possible_indexes(self):
2213 """get_all_possible_indexes(Container self) -> IMP::kernel::ParticleIndexes"""
2214 return _IMP_kernel.Container_get_all_possible_indexes(self)
2216 def get_is_changed(self):
2217 """get_is_changed(Container self) -> bool"""
2218 return _IMP_kernel.Container_get_is_changed(self)
2220 def get_contents_version(self):
2221 """get_contents_version(Container self) -> int"""
2222 return _IMP_kernel.Container_get_contents_version(self)
2224 def do_get_outputs(self):
2225 """do_get_outputs(Container self) -> IMP::kernel::ModelObjectsTemp"""
2226 return _IMP_kernel.Container_do_get_outputs(self)
2228 def do_after_evaluate(self, *args):
2229 """do_after_evaluate(Container self, DerivativeAccumulator accpt)"""
2230 return _IMP_kernel.Container_do_after_evaluate(self, *args)
2232 def get_is_decomposable(self):
2233 """get_is_decomposable(Container self) -> bool"""
2234 return _IMP_kernel.Container_get_is_decomposable(self)
2236 def validate_readable(self):
2237 """validate_readable(Container self)"""
2238 return _IMP_kernel.Container_validate_readable(self)
2240 def validate_writable(self):
2241 """validate_writable(Container self)"""
2242 return _IMP_kernel.Container_validate_writable(self)
2244 def set_is_readable(self, *args):
2245 """set_is_readable(Container self, bool tf)"""
2246 return _IMP_kernel.Container_set_is_readable(self, *args)
2248 def set_is_writable(self, *args):
2249 """set_is_writable(Container self, bool tf)"""
2250 return _IMP_kernel.Container_set_is_writable(self, *args)
2252 def get_all_possible_particles(self):
2253 """get_all_possible_particles(Container self) -> IMP::kernel::ParticlesTemp"""
2254 return _IMP_kernel.Container_get_all_possible_particles(self)
2256 __swig_destroy__ = _IMP_kernel.delete_Container
2257 __del__ =
lambda self :
None;
2259 """__str__(Container self) -> std::string"""
2260 return _IMP_kernel.Container___str__(self)
2263 """__repr__(Container self) -> std::string"""
2264 return _IMP_kernel.Container___repr__(self)
2267 return _object_cast_to_Container(o)
2268 get_from = staticmethod(get_from)
2270 def get_type_name(self):
2271 return self.__class__.__name__
2272 def do_show(self, out):
2274 def get_version_info(self):
2275 if"IMP::kernel" ==
"IMP":
2276 return VersionInfo(
"python",
"0")
2278 return IMP.VersionInfo(
"python",
"0")
2280 return _object_cast_to_Container(o)
2281 get_from = staticmethod(get_from)
2283 def __disown__(self):
2285 _IMP_kernel.disown_Container(self)
2286 return weakref_proxy(self)
2287 def do_get_inputs(self):
2288 """do_get_inputs(Container self) -> IMP::kernel::ModelObjectsTemp"""
2289 return _IMP_kernel.Container_do_get_inputs(self)
2291 def do_get_interactions(self):
2292 """do_get_interactions(Container self) -> IMP::kernel::ModelObjectsTemps"""
2293 return _IMP_kernel.Container_do_get_interactions(self)
2295 def do_before_evaluate(self):
2296 """do_before_evaluate(Container self)"""
2297 return _IMP_kernel.Container_do_before_evaluate(self)
2299 Container_swigregister = _IMP_kernel.Container_swigregister
2300 Container_swigregister(Container)
2303 """Proxy of C++ IMP::kernel::Restraint class"""
2304 __swig_setmethods__ = {}
2305 for _s
in [ModelObject]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
2306 __setattr__ =
lambda self, name, value: _swig_setattr(self, Restraint, name, value)
2307 __swig_getmethods__ = {}
2308 for _s
in [ModelObject]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
2309 __getattr__ =
lambda self, name: _swig_getattr(self, Restraint, name)
2310 def __init__(self, *args):
2312 __init__(IMP::kernel::Restraint self, Model m, std::string name) -> Restraint
2313 __init__(IMP::kernel::Restraint self, std::string name="Restraint %1%") -> Restraint
2314 __init__(IMP::kernel::Restraint self) -> Restraint
2316 if self.__class__ == Restraint:
2320 this = _IMP_kernel.new_Restraint(_self, *args)
2321 try: self.this.append(this)
2322 except: self.this = this
2323 if self.__class__ != Restraint:
2325 IMP.base._director_objects.register(self)
2329 def get_score(self):
2330 """get_score(Restraint self) -> double"""
2331 return _IMP_kernel.Restraint_get_score(self)
2333 def evaluate(self, *args):
2334 """evaluate(Restraint self, bool calc_derivs) -> double"""
2335 return _IMP_kernel.Restraint_evaluate(self, *args)
2337 def evaluate_if_good(self, *args):
2338 """evaluate_if_good(Restraint self, bool calc_derivatives) -> double"""
2339 return _IMP_kernel.Restraint_evaluate_if_good(self, *args)
2341 def evaluate_if_below(self, *args):
2342 """evaluate_if_below(Restraint self, bool calc_derivatives, double max) -> double"""
2343 return _IMP_kernel.Restraint_evaluate_if_below(self, *args)
2345 def unprotected_evaluate(self, *args):
2346 """unprotected_evaluate(Restraint self, DerivativeAccumulator da) -> double"""
2347 return _IMP_kernel.Restraint_unprotected_evaluate(self, *args)
2349 def unprotected_evaluate_if_good(self, *args):
2350 """unprotected_evaluate_if_good(Restraint self, DerivativeAccumulator da, double max) -> double"""
2351 return _IMP_kernel.Restraint_unprotected_evaluate_if_good(self, *args)
2353 def unprotected_evaluate_if_below(self, *args):
2354 """unprotected_evaluate_if_below(Restraint self, DerivativeAccumulator da, double max) -> double"""
2355 return _IMP_kernel.Restraint_unprotected_evaluate_if_below(self, *args)
2357 def add_score_and_derivatives(self, *args):
2358 """add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
2359 return _IMP_kernel.Restraint_add_score_and_derivatives(self, *args)
2362 """create_decomposition(Restraint self) -> Restraint"""
2363 return _IMP_kernel.Restraint_create_decomposition(self)
2365 def create_current_decomposition(self):
2366 """create_current_decomposition(Restraint self) -> Restraint"""
2367 return _IMP_kernel.Restraint_create_current_decomposition(self)
2369 def set_weight(self, *args):
2370 """set_weight(Restraint self, IMP::Float weight)"""
2371 return _IMP_kernel.Restraint_set_weight(self, *args)
2373 def get_weight(self):
2374 """get_weight(Restraint self) -> IMP::Float"""
2375 return _IMP_kernel.Restraint_get_weight(self)
2377 def get_maximum_score(self):
2378 """get_maximum_score(Restraint self) -> double"""
2379 return _IMP_kernel.Restraint_get_maximum_score(self)
2381 def set_maximum_score(self, *args):
2382 """set_maximum_score(Restraint self, double s)"""
2383 return _IMP_kernel.Restraint_set_maximum_score(self, *args)
2387 create_scoring_function(Restraint self, double weight=1.0, double max=NO_MAX) -> ScoringFunction
2388 create_scoring_function(Restraint self, double weight=1.0) -> ScoringFunction
2389 create_scoring_function(Restraint self) -> ScoringFunction
2391 return _IMP_kernel.Restraint_create_scoring_function(self, *args)
2393 def set_last_score(self, *args):
2394 """set_last_score(Restraint self, double s)"""
2395 return _IMP_kernel.Restraint_set_last_score(self, *args)
2397 def get_last_score(self):
2398 """get_last_score(Restraint self) -> double"""
2399 return _IMP_kernel.Restraint_get_last_score(self)
2401 def get_was_good(self):
2402 """get_was_good(Restraint self) -> bool"""
2403 return _IMP_kernel.Restraint_get_was_good(self)
2406 """get_input_particles(Restraint self) -> IMP::kernel::ParticlesTemp"""
2407 return _IMP_kernel.Restraint_get_input_particles(self)
2410 """get_input_containers(Restraint self) -> IMP::kernel::ContainersTemp"""
2411 return _IMP_kernel.Restraint_get_input_containers(self)
2413 __swig_destroy__ = _IMP_kernel.delete_Restraint
2414 __del__ =
lambda self :
None;
2415 def do_create_decomposition(self):
2416 """do_create_decomposition(Restraint self) -> IMP::kernel::Restraints"""
2417 return _IMP_kernel.Restraint_do_create_decomposition(self)
2419 def do_create_current_decomposition(self):
2420 """do_create_current_decomposition(Restraint self) -> IMP::kernel::Restraints"""
2421 return _IMP_kernel.Restraint_do_create_current_decomposition(self)
2423 def do_add_score_and_derivatives(self, *args):
2424 """do_add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
2425 return _IMP_kernel.Restraint_do_add_score_and_derivatives(self, *args)
2427 def do_get_outputs(self):
2428 """do_get_outputs(Restraint self) -> IMP::kernel::ModelObjectsTemp"""
2429 return _IMP_kernel.Restraint_do_get_outputs(self)
2432 """__str__(Restraint self) -> std::string"""
2433 return _IMP_kernel.Restraint___str__(self)
2436 """__repr__(Restraint self) -> std::string"""
2437 return _IMP_kernel.Restraint___repr__(self)
2440 return _object_cast_to_Restraint(o)
2441 get_from = staticmethod(get_from)
2443 def get_type_name(self):
2444 return self.__class__.__name__
2445 def do_show(self, out):
2447 def get_version_info(self):
2448 if"IMP::kernel" ==
"IMP":
2449 return VersionInfo(
"python",
"0")
2451 return IMP.VersionInfo(
"python",
"0")
2453 return _object_cast_to_Restraint(o)
2454 get_from = staticmethod(get_from)
2456 def __disown__(self):
2458 _IMP_kernel.disown_Restraint(self)
2459 return weakref_proxy(self)
2460 def handle_set_has_required_score_states(self, *args):
2461 """handle_set_has_required_score_states(Restraint self, bool arg0)"""
2462 return _IMP_kernel.Restraint_handle_set_has_required_score_states(self, *args)
2464 def do_get_inputs(self):
2465 """do_get_inputs(Restraint self) -> IMP::kernel::ModelObjectsTemp"""
2466 return _IMP_kernel.Restraint_do_get_inputs(self)
2468 def do_get_interactions(self):
2469 """do_get_interactions(Restraint self) -> IMP::kernel::ModelObjectsTemps"""
2470 return _IMP_kernel.Restraint_do_get_interactions(self)
2472 Restraint_swigregister = _IMP_kernel.Restraint_swigregister
2473 Restraint_swigregister(Restraint)
2475 class _RestraintsAdaptor(IMP.base._InputAdaptor):
2476 """Proxy of C++ IMP::kernel::RestraintsAdaptor class"""
2477 __swig_setmethods__ = {}
2478 for _s
in [IMP.base._InputAdaptor]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
2479 __setattr__ =
lambda self, name, value: _swig_setattr(self, _RestraintsAdaptor, name, value)
2480 __swig_getmethods__ = {}
2481 for _s
in [IMP.base._InputAdaptor]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
2482 __getattr__ =
lambda self, name: _swig_getattr(self, _RestraintsAdaptor, name)
2483 __repr__ = _swig_repr
2484 def __init__(self, *args):
2486 __init__(IMP::kernel::RestraintsAdaptor self) -> _RestraintsAdaptor
2487 __init__(IMP::kernel::RestraintsAdaptor self, IMP::kernel::Restraints const & sf) -> _RestraintsAdaptor
2488 __init__(IMP::kernel::RestraintsAdaptor self, IMP::kernel::RestraintsTemp const & sf) -> _RestraintsAdaptor
2489 __init__(IMP::kernel::RestraintsAdaptor self, Restraint sf) -> _RestraintsAdaptor
2490 __init__(IMP::kernel::RestraintsAdaptor self, Model sf) -> _RestraintsAdaptor
2491 __init__(IMP::kernel::RestraintsAdaptor self, IMP::kernel::ModelsTemp const & sf) -> _RestraintsAdaptor
2493 this = _IMP_kernel.new__RestraintsAdaptor(*args)
2494 try: self.this.append(this)
2495 except: self.this = this
2496 __swig_destroy__ = _IMP_kernel.delete__RestraintsAdaptor
2497 __del__ =
lambda self :
None;
2498 _RestraintsAdaptor_swigregister = _IMP_kernel._RestraintsAdaptor_swigregister
2499 _RestraintsAdaptor_swigregister(_RestraintsAdaptor)
2502 """Proxy of C++ IMP::kernel::RestraintSet class"""
2503 __swig_setmethods__ = {}
2504 for _s
in [Restraint]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
2505 __setattr__ =
lambda self, name, value: _swig_setattr(self, RestraintSet, name, value)
2506 __swig_getmethods__ = {}
2507 for _s
in [Restraint]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
2508 __getattr__ =
lambda self, name: _swig_getattr(self, RestraintSet, name)
2509 def __init__(self, *args):
2511 __init__(IMP::kernel::RestraintSet self, Model m, double weight, std::string const & name="RestraintSet %1%") -> RestraintSet
2512 __init__(IMP::kernel::RestraintSet self, Model m, double weight) -> RestraintSet
2513 __init__(IMP::kernel::RestraintSet self, Model m, std::string const & name="RestraintSet %1%") -> RestraintSet
2514 __init__(IMP::kernel::RestraintSet self, Model m) -> RestraintSet
2515 __init__(IMP::kernel::RestraintSet self, IMP::kernel::RestraintsTemp const & rs, double weight, std::string const & name="RestraintSet %1%") -> RestraintSet
2516 __init__(IMP::kernel::RestraintSet self, IMP::kernel::RestraintsTemp const & rs, double weight) -> RestraintSet
2517 __init__(IMP::kernel::RestraintSet self, double weight, std::string const & name="RestraintSet %1%") -> RestraintSet
2518 __init__(IMP::kernel::RestraintSet self, double weight) -> RestraintSet
2519 __init__(IMP::kernel::RestraintSet self, std::string const & name="RestraintSet %1%") -> RestraintSet
2520 __init__(IMP::kernel::RestraintSet self) -> RestraintSet
2522 this = _IMP_kernel.new_RestraintSet(*args)
2523 try: self.this.append(this)
2524 except: self.this = this
2525 def get_version_info(self):
2526 """get_version_info(RestraintSet self) -> VersionInfo"""
2527 return _IMP_kernel.RestraintSet_get_version_info(self)
2529 __swig_destroy__ = _IMP_kernel.delete_RestraintSet
2530 __del__ =
lambda self :
None;
2531 def remove_restraint(self, *args):
2532 """remove_restraint(RestraintSet self, Restraint d)"""
2533 return _IMP_kernel.RestraintSet_remove_restraint(self, *args)
2535 def remove_restraints(self, *args):
2536 """remove_restraints(RestraintSet self, IMP::kernel::Restraints const & d)"""
2537 return _IMP_kernel.RestraintSet_remove_restraints(self, *args)
2539 def set_restraints(self, *args):
2540 """set_restraints(RestraintSet self, IMP::kernel::Restraints const & ps)"""
2541 return _IMP_kernel.RestraintSet_set_restraints(self, *args)
2543 def set_restraints_order(self, *args):
2544 """set_restraints_order(RestraintSet self, IMP::kernel::Restraints const & objs)"""
2545 return _IMP_kernel.RestraintSet_set_restraints_order(self, *args)
2548 """add_restraint(RestraintSet self, Restraint obj) -> unsigned int"""
2549 return _IMP_kernel.RestraintSet_add_restraint(self, *args)
2552 """add_restraints(RestraintSet self, IMP::kernel::Restraints const & objs)"""
2553 return _IMP_kernel.RestraintSet_add_restraints(self, *args)
2555 def clear_restraints(self):
2556 """clear_restraints(RestraintSet self)"""
2557 return _IMP_kernel.RestraintSet_clear_restraints(self)
2559 def get_number_of_restraints(self):
2560 """get_number_of_restraints(RestraintSet self) -> unsigned int"""
2561 return _IMP_kernel.RestraintSet_get_number_of_restraints(self)
2563 def get_has_restraints(self):
2564 """get_has_restraints(RestraintSet self) -> bool"""
2565 return _IMP_kernel.RestraintSet_get_has_restraints(self)
2567 def get_restraint(self, *args):
2568 """get_restraint(RestraintSet self, unsigned int i) -> Restraint"""
2569 return _IMP_kernel.RestraintSet_get_restraint(self, *args)
2572 """get_restraints(RestraintSet self) -> IMP::kernel::Restraints"""
2573 return _IMP_kernel.RestraintSet_get_restraints(self)
2575 def reserve_restraints(self, *args):
2576 """reserve_restraints(RestraintSet self, unsigned int sz)"""
2577 return _IMP_kernel.RestraintSet_reserve_restraints(self, *args)
2579 def get_non_sets_and_sets(self):
2580 """get_non_sets_and_sets(RestraintSet self) -> std::pair< IMP::kernel::RestraintsTemp,IMP::kernel::RestraintSetsTemp >"""
2581 return _IMP_kernel.RestraintSet_get_non_sets_and_sets(self)
2583 def do_get_inputs(self):
2584 """do_get_inputs(RestraintSet self) -> IMP::kernel::ModelObjectsTemp"""
2585 return _IMP_kernel.RestraintSet_do_get_inputs(self)
2589 create_scoring_function(RestraintSet self, double weight=1.0, double max=std::numeric_limits< double >::max()) -> ScoringFunction
2590 create_scoring_function(RestraintSet self, double weight=1.0) -> ScoringFunction
2591 create_scoring_function(RestraintSet self) -> ScoringFunction
2593 return _IMP_kernel.RestraintSet_create_scoring_function(self, *args)
2596 """__str__(RestraintSet self) -> std::string"""
2597 return _IMP_kernel.RestraintSet___str__(self)
2600 """__repr__(RestraintSet self) -> std::string"""
2601 return _IMP_kernel.RestraintSet___repr__(self)
2604 return _object_cast_to_RestraintSet(o)
2605 get_from = staticmethod(get_from)
2607 RestraintSet_swigregister = _IMP_kernel.RestraintSet_swigregister
2608 RestraintSet_swigregister(RestraintSet)
2612 """get_restraints(IMP::kernel::RestraintsTemp const & rs) -> IMP::kernel::RestraintsTemp"""
2613 return _IMP_kernel.get_restraints(*args)
2614 def _check_particle(p, a):
2615 if (
not p.get_is_active()):
2616 raise ValueError(
"Inactive Particle")
2617 if (type(a)() == a):
2618 raise IndexError(
"Cannot use default Index")
2619 if (
not p.has_attribute(a)):
2620 raise IndexError(
"Particle does not have attribute")
2623 """Proxy of C++ IMP::kernel::Particle class"""
2624 __swig_setmethods__ = {}
2625 for _s
in [ModelObject]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
2626 __setattr__ =
lambda self, name, value: _swig_setattr(self, Particle, name, value)
2627 __swig_getmethods__ = {}
2628 for _s
in [ModelObject]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
2629 __getattr__ =
lambda self, name: _swig_getattr(self, Particle, name)
2630 def get_version_info(self):
2631 """get_version_info(Particle self) -> VersionInfo"""
2632 return _IMP_kernel.Particle_get_version_info(self)
2634 __swig_destroy__ = _IMP_kernel.delete_Particle
2635 __del__ =
lambda self :
None;
2636 def __init__(self, *args):
2638 __init__(IMP::kernel::Particle self, Model m, std::string name) -> Particle
2639 __init__(IMP::kernel::Particle self, Model m) -> Particle
2641 this = _IMP_kernel.new_Particle(*args)
2642 try: self.this.append(this)
2643 except: self.this = this
2644 def get_float_keys(self):
2645 """get_float_keys(Particle self) -> IMP::kernel::FloatKeys"""
2646 return _IMP_kernel.Particle_get_float_keys(self)
2648 def get_int_keys(self):
2649 """get_int_keys(Particle self) -> IMP::kernel::IntKeys"""
2650 return _IMP_kernel.Particle_get_int_keys(self)
2652 def get_string_keys(self):
2653 """get_string_keys(Particle self) -> IMP::kernel::StringKeys"""
2654 return _IMP_kernel.Particle_get_string_keys(self)
2656 def get_object_keys(self):
2657 """get_object_keys(Particle self) -> IMP::kernel::ObjectKeys"""
2658 return _IMP_kernel.Particle_get_object_keys(self)
2660 def add_cache_attribute(self, *args):
2662 add_cache_attribute(Particle self, FloatKey name, IMP::Float value)
2663 add_cache_attribute(Particle self, IntKey name, IMP::Int value)
2664 add_cache_attribute(Particle self, StringKey name, IMP::String value)
2665 add_cache_attribute(Particle self, ObjectKey name, Object * value)
2666 add_cache_attribute(Particle self, IMP::kernel::WeakObjectKey name, Object * value)
2668 return _IMP_kernel.Particle_add_cache_attribute(self, *args)
2670 def get_weak_object_keys(self):
2671 """get_weak_object_keys(Particle self) -> IMP::kernel::WeakObjectKeys"""
2672 return _IMP_kernel.Particle_get_weak_object_keys(self)
2674 def add_to_derivative(self, *args):
2675 """add_to_derivative(Particle self, FloatKey key, IMP::Float value, DerivativeAccumulator da)"""
2676 return _IMP_kernel.Particle_add_to_derivative(self, *args)
2678 def set_is_optimized(self, *args):
2679 """set_is_optimized(Particle self, FloatKey k, bool tf)"""
2680 return _IMP_kernel.Particle_set_is_optimized(self, *args)
2682 def get_is_optimized(self, *args):
2683 """get_is_optimized(Particle self, FloatKey k) -> bool"""
2684 return _IMP_kernel.Particle_get_is_optimized(self, *args)
2686 def get_derivative(self, *args):
2687 """get_derivative(Particle self, FloatKey name) -> IMP::Float"""
2688 return _IMP_kernel.Particle_get_derivative(self, *args)
2690 def add_attribute(self, *args):
2692 add_attribute(Particle self, FloatKey name, IMP::Float initial_value)
2693 add_attribute(Particle self, IntKey name, IMP::Int initial_value)
2694 add_attribute(Particle self, StringKey name, IMP::String initial_value)
2695 add_attribute(Particle self, ObjectKey name, Object * initial_value)
2696 add_attribute(Particle self, IMP::kernel::WeakObjectKey name, Object * initial_value)
2697 add_attribute(Particle self, FloatKey name, IMP::Float const initial_value, bool optimized)
2698 add_attribute(Particle self, ParticleIndexKey k, Particle v)
2700 return _IMP_kernel.Particle_add_attribute(self, *args)
2702 def has_attribute(self, *args):
2704 has_attribute(Particle self, FloatKey name) -> bool
2705 has_attribute(Particle self, IntKey name) -> bool
2706 has_attribute(Particle self, StringKey name) -> bool
2707 has_attribute(Particle self, ObjectKey name) -> bool
2708 has_attribute(Particle self, IMP::kernel::WeakObjectKey name) -> bool
2709 has_attribute(Particle self, ParticleIndexKey k) -> bool
2711 return _IMP_kernel.Particle_has_attribute(self, *args)
2713 def set_value(self, *args):
2715 set_value(Particle self, FloatKey name, IMP::Float value)
2716 set_value(Particle self, IntKey name, IMP::Int value)
2717 set_value(Particle self, StringKey name, IMP::String value)
2718 set_value(Particle self, ObjectKey name, Object * value)
2719 set_value(Particle self, IMP::kernel::WeakObjectKey name, Object * value)
2720 set_value(Particle self, ParticleIndexKey k, Particle v)
2722 return _IMP_kernel.Particle_set_value(self, *args)
2724 def get_value(self, *args):
2726 get_value(Particle self, FloatKey name) -> IMP::Float
2727 get_value(Particle self, IntKey name) -> IMP::Int
2728 get_value(Particle self, StringKey name) -> IMP::String
2729 get_value(Particle self, ObjectKey name) -> Object
2730 get_value(Particle self, IMP::kernel::WeakObjectKey name) -> Object
2731 get_value(Particle self, ParticleIndexKey k) -> Particle
2733 return _IMP_kernel.Particle_get_value(self, *args)
2735 def remove_attribute(self, *args):
2737 remove_attribute(Particle self, FloatKey name)
2738 remove_attribute(Particle self, IntKey name)
2739 remove_attribute(Particle self, StringKey name)
2740 remove_attribute(Particle self, ObjectKey name)
2741 remove_attribute(Particle self, IMP::kernel::WeakObjectKey name)
2742 remove_attribute(Particle self, ParticleIndexKey k)
2744 return _IMP_kernel.Particle_remove_attribute(self, *args)
2746 def get_particle_keys(self):
2747 """get_particle_keys(Particle self) -> IMP::kernel::ParticleIndexKeys"""
2748 return _IMP_kernel.Particle_get_particle_keys(self)
2750 def show(self, *args):
2752 show(Particle self, _ostream out=std::cout)
2755 return _IMP_kernel.Particle_show(self, *args)
2757 def get_is_active(self):
2758 """get_is_active(Particle self) -> bool"""
2759 return _IMP_kernel.Particle_get_is_active(self)
2762 """get_index(Particle self) -> IMP::kernel::ParticleIndex"""
2763 return _IMP_kernel.Particle_get_index(self)
2765 def __eq__(self, *args):
2767 __eq__(Particle self, Particle o) -> bool
2768 __eq__(Particle self, Decorator d) -> bool
2770 return _IMP_kernel.Particle___eq__(self, *args)
2772 def __ne__(self, *args):
2774 __ne__(Particle self, Particle o) -> bool
2775 __ne__(Particle self, Decorator d) -> bool
2777 return _IMP_kernel.Particle___ne__(self, *args)
2779 def __le__(self, *args):
2781 __le__(Particle self, Particle o) -> bool
2782 __le__(Particle self, Decorator d) -> bool
2784 return _IMP_kernel.Particle___le__(self, *args)
2786 def __lt__(self, *args):
2788 __lt__(Particle self, Particle o) -> bool
2789 __lt__(Particle self, Decorator d) -> bool
2791 return _IMP_kernel.Particle___lt__(self, *args)
2793 def __ge__(self, *args):
2795 __ge__(Particle self, Particle o) -> bool
2796 __ge__(Particle self, Decorator d) -> bool
2798 return _IMP_kernel.Particle___ge__(self, *args)
2800 def __gt__(self, *args):
2802 __gt__(Particle self, Particle o) -> bool
2803 __gt__(Particle self, Decorator d) -> bool
2805 return _IMP_kernel.Particle___gt__(self, *args)
2808 """__str__(Particle self) -> std::string"""
2809 return _IMP_kernel.Particle___str__(self)
2812 """__repr__(Particle self) -> std::string"""
2813 return _IMP_kernel.Particle___repr__(self)
2816 return _object_cast_to_Particle(o)
2817 get_from = staticmethod(get_from)
2819 Particle_swigregister = _IMP_kernel.Particle_swigregister
2820 Particle_swigregister(Particle)
2822 class _ParticleAdaptor(IMP.base._InputAdaptor):
2823 """Proxy of C++ IMP::kernel::ParticleAdaptor class"""
2824 __swig_setmethods__ = {}
2825 for _s
in [IMP.base._InputAdaptor]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
2826 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ParticleAdaptor, name, value)
2827 __swig_getmethods__ = {}
2828 for _s
in [IMP.base._InputAdaptor]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
2829 __getattr__ =
lambda self, name: _swig_getattr(self, _ParticleAdaptor, name)
2830 __repr__ = _swig_repr
2831 def __init__(self, *args):
2833 __init__(IMP::kernel::ParticleAdaptor self) -> _ParticleAdaptor
2834 __init__(IMP::kernel::ParticleAdaptor self, Particle p) -> _ParticleAdaptor
2835 __init__(IMP::kernel::ParticleAdaptor self, Decorator d) -> _ParticleAdaptor
2837 this = _IMP_kernel.new__ParticleAdaptor(*args)
2838 try: self.this.append(this)
2839 except: self.this = this
2840 def get_model(self):
2841 """get_model(_ParticleAdaptor self) -> Model"""
2842 return _IMP_kernel._ParticleAdaptor_get_model(self)
2844 def get_particle_index(self):
2845 """get_particle_index(_ParticleAdaptor self) -> IMP::kernel::ParticleIndex"""
2846 return _IMP_kernel._ParticleAdaptor_get_particle_index(self)
2848 __swig_destroy__ = _IMP_kernel.delete__ParticleAdaptor
2849 __del__ =
lambda self :
None;
2850 _ParticleAdaptor_swigregister = _IMP_kernel._ParticleAdaptor_swigregister
2851 _ParticleAdaptor_swigregister(_ParticleAdaptor)
2853 class _DependencyGraphVertexIndex(_object):
2854 """Proxy of C++ IMP::kernel::DependencyGraphVertexIndex class"""
2855 __swig_setmethods__ = {}
2856 __setattr__ =
lambda self, name, value: _swig_setattr(self, _DependencyGraphVertexIndex, name, value)
2857 __swig_getmethods__ = {}
2858 __getattr__ =
lambda self, name: _swig_getattr(self, _DependencyGraphVertexIndex, name)
2859 __repr__ = _swig_repr
2861 """__init__(IMP::kernel::DependencyGraphVertexIndex self) -> _DependencyGraphVertexIndex"""
2862 this = _IMP_kernel.new__DependencyGraphVertexIndex()
2863 try: self.this.append(this)
2864 except: self.this = this
2865 __swig_destroy__ = _IMP_kernel.delete__DependencyGraphVertexIndex
2866 __del__ =
lambda self :
None;
2867 _DependencyGraphVertexIndex_swigregister = _IMP_kernel._DependencyGraphVertexIndex_swigregister
2868 _DependencyGraphVertexIndex_swigregister(_DependencyGraphVertexIndex)
2871 def show_as_graphviz(*args):
2872 """show_as_graphviz(IMP::kernel::DependencyGraph const & name, TextOutput out)"""
2873 return _IMP_kernel.show_as_graphviz(*args)
2875 def get_vertex_index(*args):
2876 """get_vertex_index(IMP::kernel::DependencyGraph const & g) -> _DependencyGraphVertexIndex"""
2877 return _IMP_kernel.get_vertex_index(*args)
2880 """get_dependency_graph(Model m) -> IMP::kernel::DependencyGraph"""
2881 return _IMP_kernel.get_dependency_graph(*args)
2884 """get_pruned_dependency_graph(Model m) -> IMP::kernel::DependencyGraph"""
2885 return _IMP_kernel.get_pruned_dependency_graph(*args)
2889 get_required_particles(ModelObject p, IMP::kernel::ModelObjectsTemp const & all, IMP::kernel::DependencyGraph const & dg,
2890 _DependencyGraphVertexIndex index) -> IMP::kernel::ParticlesTemp
2892 return _IMP_kernel.get_required_particles(*args)
2896 get_required_score_states(IMP::kernel::ModelObjectsTemp const & mos, IMP::kernel::ScoreStatesTemp exclude=IMP::kernel::ScoreStatesTemp()) -> IMP::kernel::ScoreStatesTemp
2897 get_required_score_states(IMP::kernel::ModelObjectsTemp const & mos) -> IMP::kernel::ScoreStatesTemp
2898 get_required_score_states(ModelObject p, IMP::kernel::ModelObjectsTemp const & all, IMP::kernel::DependencyGraph const & dg,
2899 _DependencyGraphVertexIndex index) -> IMP::kernel::ScoreStatesTemp
2901 return _IMP_kernel.get_required_score_states(*args)
2905 get_dependent_particles(ModelObject p, IMP::kernel::ModelObjectsTemp const & all, IMP::kernel::DependencyGraph const & dg,
2906 _DependencyGraphVertexIndex index) -> IMP::kernel::ParticlesTemp
2908 return _IMP_kernel.get_dependent_particles(*args)
2912 get_dependent_score_states(ModelObject p, IMP::kernel::ModelObjectsTemp const & all, IMP::kernel::DependencyGraph const & dg,
2913 _DependencyGraphVertexIndex index) -> IMP::kernel::ScoreStatesTemp
2915 return _IMP_kernel.get_dependent_score_states(*args)
2919 get_dependent_restraints(ModelObject p, IMP::kernel::ModelObjectsTemp const & all, IMP::kernel::DependencyGraph const & dg,
2920 _DependencyGraphVertexIndex index) -> IMP::kernel::RestraintsTemp
2921 get_dependent_restraints(Model m, IMP::kernel::ParticleIndex pi) -> IMP::kernel::RestraintsTemp
2923 return _IMP_kernel.get_dependent_restraints(*args)
2925 """Proxy of C++ IMP::kernel::ScoringFunction class"""
2926 __swig_setmethods__ = {}
2927 for _s
in [ModelObject]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
2928 __setattr__ =
lambda self, name, value: _swig_setattr(self, ScoringFunction, name, value)
2929 __swig_getmethods__ = {}
2930 for _s
in [ModelObject]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
2931 __getattr__ =
lambda self, name: _swig_getattr(self, ScoringFunction, name)
2932 def do_add_score_and_derivatives(self, *args):
2933 """do_add_score_and_derivatives(ScoringFunction self, ScoreAccumulator sa, IMP::kernel::ScoreStatesTemp const & ss)"""
2934 return _IMP_kernel.ScoringFunction_do_add_score_and_derivatives(self, *args)
2936 def get_score_accumulator_if_below(self, *args):
2937 """get_score_accumulator_if_below(ScoringFunction self, bool deriv, double max) -> ScoreAccumulator"""
2938 return _IMP_kernel.ScoringFunction_get_score_accumulator_if_below(self, *args)
2940 def get_score_accumulator_if_good(self, *args):
2941 """get_score_accumulator_if_good(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
2942 return _IMP_kernel.ScoringFunction_get_score_accumulator_if_good(self, *args)
2944 def get_score_accumulator(self, *args):
2945 """get_score_accumulator(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
2946 return _IMP_kernel.ScoringFunction_get_score_accumulator(self, *args)
2948 def __init__(self, *args):
2949 """__init__(IMP::kernel::ScoringFunction self, Model m, std::string name) -> ScoringFunction"""
2950 if self.__class__ == ScoringFunction:
2954 this = _IMP_kernel.new_ScoringFunction(_self, *args)
2955 try: self.this.append(this)
2956 except: self.this = this
2957 if self.__class__ != ScoringFunction:
2959 IMP.base._director_objects.register(self)
2963 def do_get_outputs(self):
2964 """do_get_outputs(ScoringFunction self) -> IMP::kernel::ModelObjectsTemp"""
2965 return _IMP_kernel.ScoringFunction_do_get_outputs(self)
2967 def evaluate_if_good(self, *args):
2968 """evaluate_if_good(ScoringFunction self, bool derivatives) -> double"""
2969 return _IMP_kernel.ScoringFunction_evaluate_if_good(self, *args)
2971 def evaluate(self, *args):
2972 """evaluate(ScoringFunction self, bool derivatives) -> double"""
2973 return _IMP_kernel.ScoringFunction_evaluate(self, *args)
2975 def evaluate_if_below(self, *args):
2976 """evaluate_if_below(ScoringFunction self, bool derivatives, double max) -> double"""
2977 return _IMP_kernel.ScoringFunction_evaluate_if_below(self, *args)
2979 def get_had_good_score(self):
2980 """get_had_good_score(ScoringFunction self) -> bool"""
2981 return _IMP_kernel.ScoringFunction_get_had_good_score(self)
2983 def get_last_score(self):
2984 """get_last_score(ScoringFunction self) -> double"""
2985 return _IMP_kernel.ScoringFunction_get_last_score(self)
2988 """create_restraints(ScoringFunction self) -> IMP::kernel::Restraints"""
2989 return _IMP_kernel.ScoringFunction_create_restraints(self)
2992 """__str__(ScoringFunction self) -> std::string"""
2993 return _IMP_kernel.ScoringFunction___str__(self)
2996 """__repr__(ScoringFunction self) -> std::string"""
2997 return _IMP_kernel.ScoringFunction___repr__(self)
3000 return _object_cast_to_ScoringFunction(o)
3001 get_from = staticmethod(get_from)
3003 def get_type_name(self):
3004 return self.__class__.__name__
3005 def do_show(self, out):
3007 def get_version_info(self):
3008 if"IMP::kernel" ==
"IMP":
3009 return VersionInfo(
"python",
"0")
3011 return IMP.VersionInfo(
"python",
"0")
3013 return _object_cast_to_ScoringFunction(o)
3014 get_from = staticmethod(get_from)
3016 __swig_destroy__ = _IMP_kernel.delete_ScoringFunction
3017 __del__ =
lambda self :
None;
3018 def __disown__(self):
3020 _IMP_kernel.disown_ScoringFunction(self)
3021 return weakref_proxy(self)
3022 def handle_set_has_required_score_states(self, *args):
3023 """handle_set_has_required_score_states(ScoringFunction self, bool arg0)"""
3024 return _IMP_kernel.ScoringFunction_handle_set_has_required_score_states(self, *args)
3026 def do_get_inputs(self):
3027 """do_get_inputs(ScoringFunction self) -> IMP::kernel::ModelObjectsTemp"""
3028 return _IMP_kernel.ScoringFunction_do_get_inputs(self)
3030 def do_get_interactions(self):
3031 """do_get_interactions(ScoringFunction self) -> IMP::kernel::ModelObjectsTemps"""
3032 return _IMP_kernel.ScoringFunction_do_get_interactions(self)
3034 ScoringFunction_swigregister = _IMP_kernel.ScoringFunction_swigregister
3035 ScoringFunction_swigregister(ScoringFunction)
3039 """create_decomposition(ScoringFunction sf) -> IMP::kernel::ScoringFunctions"""
3040 return _IMP_kernel.create_decomposition(*args)
3041 class _ScoringFunctionAdaptor(IMP.base._InputAdaptor):
3042 """Proxy of C++ IMP::kernel::ScoringFunctionAdaptor class"""
3043 __swig_setmethods__ = {}
3044 for _s
in [IMP.base._InputAdaptor]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
3045 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ScoringFunctionAdaptor, name, value)
3046 __swig_getmethods__ = {}
3047 for _s
in [IMP.base._InputAdaptor]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
3048 __getattr__ =
lambda self, name: _swig_getattr(self, _ScoringFunctionAdaptor, name)
3049 __repr__ = _swig_repr
3050 def __init__(self, *args):
3052 __init__(IMP::kernel::ScoringFunctionAdaptor self) -> _ScoringFunctionAdaptor
3053 __init__(IMP::kernel::ScoringFunctionAdaptor self, ScoringFunction sf) -> _ScoringFunctionAdaptor
3054 __init__(IMP::kernel::ScoringFunctionAdaptor self, IMP::kernel::RestraintsTemp const & sf) -> _ScoringFunctionAdaptor
3055 __init__(IMP::kernel::ScoringFunctionAdaptor self, IMP::kernel::Restraints const & sf) -> _ScoringFunctionAdaptor
3056 __init__(IMP::kernel::ScoringFunctionAdaptor self, Restraint sf) -> _ScoringFunctionAdaptor
3057 __init__(IMP::kernel::ScoringFunctionAdaptor self, Model sf) -> _ScoringFunctionAdaptor
3059 this = _IMP_kernel.new__ScoringFunctionAdaptor(*args)
3060 try: self.this.append(this)
3061 except: self.this = this
3062 __swig_destroy__ = _IMP_kernel.delete__ScoringFunctionAdaptor
3063 __del__ =
lambda self :
None;
3064 _ScoringFunctionAdaptor_swigregister = _IMP_kernel._ScoringFunctionAdaptor_swigregister
3065 _ScoringFunctionAdaptor_swigregister(_ScoringFunctionAdaptor)
3070 show_restraint_hierarchy(_ScoringFunctionAdaptor rs, _ostream out=std::cout)
3071 show_restraint_hierarchy(_ScoringFunctionAdaptor rs)
3073 return _IMP_kernel.show_restraint_hierarchy(*args)
3075 """Proxy of C++ IMP::kernel::Undecorator class"""
3076 __swig_setmethods__ = {}
3077 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
3078 __setattr__ =
lambda self, name, value: _swig_setattr(self, Undecorator, name, value)
3079 __swig_getmethods__ = {}
3080 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
3081 __getattr__ =
lambda self, name: _swig_getattr(self, Undecorator, name)
3082 def __init__(self, *args):
3083 """__init__(IMP::kernel::Undecorator self, Model m, std::string name) -> Undecorator"""
3084 if self.__class__ == Undecorator:
3088 this = _IMP_kernel.new_Undecorator(_self, *args)
3089 try: self.this.append(this)
3090 except: self.this = this
3091 if self.__class__ != Undecorator:
3093 IMP.base._director_objects.register(self)
3097 def teardown(self, *args):
3098 """teardown(Undecorator self, IMP::kernel::ParticleIndex pi)"""
3099 return _IMP_kernel.Undecorator_teardown(self, *args)
3102 """__str__(Undecorator self) -> std::string"""
3103 return _IMP_kernel.Undecorator___str__(self)
3106 """__repr__(Undecorator self) -> std::string"""
3107 return _IMP_kernel.Undecorator___repr__(self)
3110 return _object_cast_to_Undecorator(o)
3111 get_from = staticmethod(get_from)
3113 def get_type_name(self):
3114 return self.__class__.__name__
3115 def do_show(self, out):
3117 def get_version_info(self):
3118 if"IMP::kernel" ==
"IMP":
3119 return VersionInfo(
"python",
"0")
3121 return IMP.VersionInfo(
"python",
"0")
3123 return _object_cast_to_Undecorator(o)
3124 get_from = staticmethod(get_from)
3126 __swig_destroy__ = _IMP_kernel.delete_Undecorator
3127 __del__ =
lambda self :
None;
3128 def __disown__(self):
3130 _IMP_kernel.disown_Undecorator(self)
3131 return weakref_proxy(self)
3132 Undecorator_swigregister = _IMP_kernel.Undecorator_swigregister
3133 Undecorator_swigregister(Undecorator)
3136 """Proxy of C++ IMP::kernel::Model class"""
3137 __swig_setmethods__ = {}
3138 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
3139 __setattr__ =
lambda self, name, value: _swig_setattr(self, Model, name, value)
3140 __swig_getmethods__ = {}
3141 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
3142 __getattr__ =
lambda self, name: _swig_getattr(self, Model, name)
3143 def __init__(self, name="Model %1%"):
3145 __init__(IMP::kernel::Model self, std::string name="Model %1%") -> Model
3146 __init__(IMP::kernel::Model self) -> Model
3148 this = _IMP_kernel.new_Model(name)
3149 try: self.this.append(this)
3150 except: self.this = this
3151 def clear_particle_caches(self, *args):
3152 """clear_particle_caches(Model self, IMP::kernel::ParticleIndex pi)"""
3153 return _IMP_kernel.Model_clear_particle_caches(self, *args)
3156 """add_particle(Model self, std::string name) -> IMP::kernel::ParticleIndex"""
3157 return _IMP_kernel.Model_add_particle(self, *args)
3159 def get_particle_name(self, *args):
3160 """get_particle_name(Model self, IMP::kernel::ParticleIndex pi) -> std::string"""
3161 return _IMP_kernel.Model_get_particle_name(self, *args)
3163 def add_undecorator(self, *args):
3164 """add_undecorator(Model self, IMP::kernel::ParticleIndex pi, Undecorator d)"""
3165 return _IMP_kernel.Model_add_undecorator(self, *args)
3167 def remove_score_state(self, *args):
3168 """remove_score_state(Model self, ScoreState d)"""
3169 return _IMP_kernel.Model_remove_score_state(self, *args)
3171 def remove_score_states(self, *args):
3172 """remove_score_states(Model self, IMP::kernel::ScoreStates const & d)"""
3173 return _IMP_kernel.Model_remove_score_states(self, *args)
3175 def set_score_states(self, *args):
3176 """set_score_states(Model self, IMP::kernel::ScoreStates const & ps)"""
3177 return _IMP_kernel.Model_set_score_states(self, *args)
3179 def set_score_states_order(self, *args):
3180 """set_score_states_order(Model self, IMP::kernel::ScoreStates const & objs)"""
3181 return _IMP_kernel.Model_set_score_states_order(self, *args)
3183 def add_score_state(self, *args):
3184 """add_score_state(Model self, ScoreState obj) -> unsigned int"""
3185 return _IMP_kernel.Model_add_score_state(self, *args)
3187 def add_score_states(self, *args):
3188 """add_score_states(Model self, IMP::kernel::ScoreStates const & objs)"""
3189 return _IMP_kernel.Model_add_score_states(self, *args)
3191 def clear_score_states(self):
3192 """clear_score_states(Model self)"""
3193 return _IMP_kernel.Model_clear_score_states(self)
3195 def get_number_of_score_states(self):
3196 """get_number_of_score_states(Model self) -> unsigned int"""
3197 return _IMP_kernel.Model_get_number_of_score_states(self)
3199 def get_has_score_states(self):
3200 """get_has_score_states(Model self) -> bool"""
3201 return _IMP_kernel.Model_get_has_score_states(self)
3203 def get_score_state(self, *args):
3204 """get_score_state(Model self, unsigned int i) -> ScoreState"""
3205 return _IMP_kernel.Model_get_score_state(self, *args)
3207 def get_score_states(self):
3208 """get_score_states(Model self) -> IMP::kernel::ScoreStates"""
3209 return _IMP_kernel.Model_get_score_states(self)
3211 def reserve_score_states(self, *args):
3212 """reserve_score_states(Model self, unsigned int sz)"""
3213 return _IMP_kernel.Model_reserve_score_states(self, *args)
3216 """update(Model self)"""
3217 return _IMP_kernel.Model_update(self)
3219 def add_attribute(self, *args):
3221 add_attribute(Model self, FloatKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Float value)
3222 add_attribute(Model self, IntKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Int value)
3223 add_attribute(Model self, IMP::kernel::IntsKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Ints value)
3224 add_attribute(Model self, StringKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::String value)
3225 add_attribute(Model self, ParticleIndexesKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::kernel::ParticleIndexes value)
3226 add_attribute(Model self, ParticleIndexKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::kernel::ParticleIndex value)
3227 add_attribute(Model self, ObjectKey attribute_key, IMP::kernel::ParticleIndex particle, Object * value)
3228 add_attribute(Model self, IMP::kernel::WeakObjectKey attribute_key, IMP::kernel::ParticleIndex particle, Object * value)
3230 return _IMP_kernel.Model_add_attribute(self, *args)
3232 def remove_attribute(self, *args):
3234 remove_attribute(Model self, FloatKey attribute_key, IMP::kernel::ParticleIndex particle)
3235 remove_attribute(Model self, IntKey attribute_key, IMP::kernel::ParticleIndex particle)
3236 remove_attribute(Model self, IMP::kernel::IntsKey attribute_key, IMP::kernel::ParticleIndex particle)
3237 remove_attribute(Model self, StringKey attribute_key, IMP::kernel::ParticleIndex particle)
3238 remove_attribute(Model self, ParticleIndexesKey attribute_key, IMP::kernel::ParticleIndex particle)
3239 remove_attribute(Model self, ParticleIndexKey attribute_key, IMP::kernel::ParticleIndex particle)
3240 remove_attribute(Model self, ObjectKey attribute_key, IMP::kernel::ParticleIndex particle)
3241 remove_attribute(Model self, IMP::kernel::WeakObjectKey attribute_key, IMP::kernel::ParticleIndex particle)
3243 return _IMP_kernel.Model_remove_attribute(self, *args)
3245 def get_has_attribute(self, *args):
3247 get_has_attribute(Model self, FloatKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3248 get_has_attribute(Model self, IntKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3249 get_has_attribute(Model self, IMP::kernel::IntsKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3250 get_has_attribute(Model self, StringKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3251 get_has_attribute(Model self, ParticleIndexesKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3252 get_has_attribute(Model self, ParticleIndexKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3253 get_has_attribute(Model self, ObjectKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3254 get_has_attribute(Model self, IMP::kernel::WeakObjectKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3256 return _IMP_kernel.Model_get_has_attribute(self, *args)
3258 def set_attribute(self, *args):
3260 set_attribute(Model self, FloatKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Float value)
3261 set_attribute(Model self, IntKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Int value)
3262 set_attribute(Model self, IMP::kernel::IntsKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Ints value)
3263 set_attribute(Model self, StringKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::String value)
3264 set_attribute(Model self, ParticleIndexesKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::kernel::ParticleIndexes value)
3265 set_attribute(Model self, ParticleIndexKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::kernel::ParticleIndex value)
3266 set_attribute(Model self, ObjectKey attribute_key, IMP::kernel::ParticleIndex particle, Object * value)
3267 set_attribute(Model self, IMP::kernel::WeakObjectKey attribute_key, IMP::kernel::ParticleIndex particle, Object * value)
3269 return _IMP_kernel.Model_set_attribute(self, *args)
3271 def get_attribute(self, *args):
3273 get_attribute(Model self, FloatKey attribute_key, IMP::kernel::ParticleIndex particle) -> IMP::Float
3274 get_attribute(Model self, IntKey attribute_key, IMP::kernel::ParticleIndex particle) -> IMP::Int
3275 get_attribute(Model self, IMP::kernel::IntsKey attribute_key, IMP::kernel::ParticleIndex particle) -> IMP::Ints
3276 get_attribute(Model self, StringKey attribute_key, IMP::kernel::ParticleIndex particle) -> IMP::String
3277 get_attribute(Model self, ParticleIndexesKey attribute_key, IMP::kernel::ParticleIndex particle) -> IMP::kernel::ParticleIndexes
3278 get_attribute(Model self, ParticleIndexKey attribute_key, IMP::kernel::ParticleIndex particle) -> IMP::kernel::ParticleIndex
3279 get_attribute(Model self, ObjectKey attribute_key, IMP::kernel::ParticleIndex particle) -> Object
3280 get_attribute(Model self, IMP::kernel::WeakObjectKey attribute_key, IMP::kernel::ParticleIndex particle) -> Object *
3282 return _IMP_kernel.Model_get_attribute(self, *args)
3284 def add_cache_attribute(self, *args):
3286 add_cache_attribute(Model self, FloatKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Float value)
3287 add_cache_attribute(Model self, IntKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Int value)
3288 add_cache_attribute(Model self, IMP::kernel::IntsKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Ints value)
3289 add_cache_attribute(Model self, StringKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::String value)
3290 add_cache_attribute(Model self, ParticleIndexesKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::kernel::ParticleIndexes value)
3291 add_cache_attribute(Model self, ParticleIndexKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::kernel::ParticleIndex value)
3292 add_cache_attribute(Model self, ObjectKey attribute_key, IMP::kernel::ParticleIndex particle, Object * value)
3293 add_cache_attribute(Model self, IMP::kernel::WeakObjectKey attribute_key, IMP::kernel::ParticleIndex particle, Object * value)
3295 return _IMP_kernel.Model_add_cache_attribute(self, *args)
3297 def set_is_optimized(self, *args):
3298 """set_is_optimized(Model self, FloatKey arg2, IMP::kernel::ParticleIndex arg3, bool arg4)"""
3299 return _IMP_kernel.Model_set_is_optimized(self, *args)
3301 def get_particle(self, *args):
3302 """get_particle(Model self, IMP::kernel::ParticleIndex p) -> Particle"""
3303 return _IMP_kernel.Model_get_particle(self, *args)
3305 def get_has_particle(self, *args):
3306 """get_has_particle(Model self, IMP::kernel::ParticleIndex p) -> bool"""
3307 return _IMP_kernel.Model_get_has_particle(self, *args)
3309 def get_particle_indexes(self):
3310 """get_particle_indexes(Model self) -> IMP::kernel::ParticleIndexes"""
3311 return _IMP_kernel.Model_get_particle_indexes(self)
3313 def get_model_objects(self):
3314 """get_model_objects(Model self) -> IMP::kernel::ModelObjectsTemp"""
3315 return _IMP_kernel.Model_get_model_objects(self)
3317 def add_data(self, *args):
3318 """add_data(Model self, IMP::kernel::ModelKey mk, Object o)"""
3319 return _IMP_kernel.Model_add_data(self, *args)
3321 def get_data(self, *args):
3322 """get_data(Model self, IMP::kernel::ModelKey mk) -> Object"""
3323 return _IMP_kernel.Model_get_data(self, *args)
3325 def remove_data(self, *args):
3326 """remove_data(Model self, IMP::kernel::ModelKey mk)"""
3327 return _IMP_kernel.Model_remove_data(self, *args)
3329 def get_has_data(self, *args):
3330 """get_has_data(Model self, IMP::kernel::ModelKey mk) -> bool"""
3331 return _IMP_kernel.Model_get_has_data(self, *args)
3333 def get_version_info(self):
3334 """get_version_info(Model self) -> VersionInfo"""
3335 return _IMP_kernel.Model_get_version_info(self)
3337 __swig_destroy__ = _IMP_kernel.delete_Model
3339 """__del__(IMP::kernel::Model self)"""
3341 IMP.base._director_objects.cleanup()
3346 def create_model_scoring_function(self):
3347 """create_model_scoring_function(Model self) -> ScoringFunction"""
3348 return _IMP_kernel.Model_create_model_scoring_function(self)
3351 """add_restraint(Model self, Restraint r)"""
3352 return _IMP_kernel.Model_add_restraint(self, *args)
3354 def remove_restraint(self, *args):
3355 """remove_restraint(Model self, Restraint r)"""
3356 return _IMP_kernel.Model_remove_restraint(self, *args)
3359 """get_restraints(Model self) -> IMP::kernel::RestraintsTemp"""
3360 return _IMP_kernel.Model_get_restraints(self)
3363 """create_scoring_function(Model self) -> ScoringFunction"""
3364 return _IMP_kernel.Model_create_scoring_function(self)
3366 def get_number_of_restraints(self):
3367 """get_number_of_restraints(Model self) -> unsigned int"""
3368 return _IMP_kernel.Model_get_number_of_restraints(self)
3370 def get_restraint(self, *args):
3371 """get_restraint(Model self, unsigned int i) -> Restraint"""
3372 return _IMP_kernel.Model_get_restraint(self, *args)
3374 def evaluate(self, *args):
3376 evaluate(Model self, bool tf, bool warn=True) -> double
3377 evaluate(Model self, bool tf) -> double
3379 return _IMP_kernel.Model_evaluate(self, *args)
3381 def remove_particle(self, *args):
3383 remove_particle(Model self, IMP::kernel::ParticleIndex pi)
3384 remove_particle(Model self, Particle p)
3386 return _IMP_kernel.Model_remove_particle(self, *args)
3388 def get_number_of_particles(self):
3389 """get_number_of_particles(Model self) -> unsigned int"""
3390 return _IMP_kernel.Model_get_number_of_particles(self)
3393 """get_particles(Model self) -> IMP::kernel::ParticlesTemp"""
3394 return _IMP_kernel.Model_get_particles(self)
3396 def get_optimized_particles(self):
3397 """get_optimized_particles(Model self) -> IMP::kernel::ModelObjectsTemp"""
3398 return _IMP_kernel.Model_get_optimized_particles(self)
3400 def get_root_restraint_set(self):
3401 """get_root_restraint_set(Model self) -> RestraintSet"""
3402 return _IMP_kernel.Model_get_root_restraint_set(self)
3404 def set_maximum_score(self, *args):
3406 set_maximum_score(Model self, Restraint r, double s)
3407 set_maximum_score(Model self, double s)
3409 return _IMP_kernel.Model_set_maximum_score(self, *args)
3411 def get_maximum_score(self, *args):
3413 get_maximum_score(Model self, Restraint r) -> double
3414 get_maximum_score(Model self) -> double
3416 return _IMP_kernel.Model_get_maximum_score(self, *args)
3419 """__str__(Model self) -> std::string"""
3420 return _IMP_kernel.Model___str__(self)
3423 """__repr__(Model self) -> std::string"""
3424 return _IMP_kernel.Model___repr__(self)
3427 return _object_cast_to_Model(o)
3428 get_from = staticmethod(get_from)
3430 Model_swigregister = _IMP_kernel.Model_swigregister
3431 Model_swigregister(Model)
3434 """Proxy of C++ IMP::kernel::Decorator class"""
3435 __swig_setmethods__ = {}
3436 for _s
in [IMP.base._Value]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
3437 __setattr__ =
lambda self, name, value: _swig_setattr(self, Decorator, name, value)
3438 __swig_getmethods__ = {}
3439 for _s
in [IMP.base._Value]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
3440 __getattr__ =
lambda self, name: _swig_getattr(self, Decorator, name)
3441 __repr__ = _swig_repr
3442 def __init__(self, *args):
3443 """__init__(IMP::kernel::Decorator self, _ParticleAdaptor p) -> Decorator"""
3444 this = _IMP_kernel.new_Decorator(*args)
3445 try: self.this.append(this)
3446 except: self.this = this
3447 def get_particle_index(self):
3448 """get_particle_index(Decorator self) -> IMP::kernel::ParticleIndex"""
3449 return _IMP_kernel.Decorator_get_particle_index(self)
3451 def __ne__(self, *args):
3452 """__ne__(Decorator self, Object o) -> bool"""
3453 return _IMP_kernel.Decorator___ne__(self, *args)
3455 def __lt__(self, *args):
3456 """__lt__(Decorator self, Object o) -> bool"""
3457 return _IMP_kernel.Decorator___lt__(self, *args)
3459 def __gt__(self, *args):
3460 """__gt__(Decorator self, Object o) -> bool"""
3461 return _IMP_kernel.Decorator___gt__(self, *args)
3463 def __ge__(self, *args):
3464 """__ge__(Decorator self, Object o) -> bool"""
3465 return _IMP_kernel.Decorator___ge__(self, *args)
3467 def __le__(self, *args):
3468 """__le__(Decorator self, Object o) -> bool"""
3469 return _IMP_kernel.Decorator___le__(self, *args)
3471 def get_particle(self):
3472 """get_particle(Decorator self) -> Particle"""
3473 return _IMP_kernel.Decorator_get_particle(self)
3475 def get_model(self):
3476 """get_model(Decorator self) -> Model"""
3477 return _IMP_kernel.Decorator_get_model(self)
3480 """__hash__(Decorator self) -> std::size_t"""
3481 return _IMP_kernel.Decorator___hash__(self)
3483 def __eq__(self, *args):
3485 __eq__(Decorator self, Object o) -> bool
3486 __eq__(Decorator self, Decorator o) -> bool
3487 __eq__(Decorator self, Particle o) -> bool
3489 return _IMP_kernel.Decorator___eq__(self, *args)
3491 __swig_destroy__ = _IMP_kernel.delete_Decorator
3492 __del__ =
lambda self :
None;
3493 Decorator_swigregister = _IMP_kernel.Decorator_swigregister
3494 Decorator_swigregister(Decorator)
3497 def check_particle(*args):
3498 """check_particle(Particle p)"""
3499 return _IMP_kernel.check_particle(*args)
3501 """Proxy of C++ IMP::kernel::UnaryFunction class"""
3502 __swig_setmethods__ = {}
3503 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
3504 __setattr__ =
lambda self, name, value: _swig_setattr(self, UnaryFunction, name, value)
3505 __swig_getmethods__ = {}
3506 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
3507 __getattr__ =
lambda self, name: _swig_getattr(self, UnaryFunction, name)
3508 def __init__(self, name="UnaryFunction%1%"):
3510 __init__(IMP::kernel::UnaryFunction self, std::string name="UnaryFunction%1%") -> UnaryFunction
3511 __init__(IMP::kernel::UnaryFunction self) -> UnaryFunction
3513 if self.__class__ == UnaryFunction:
3517 this = _IMP_kernel.new_UnaryFunction(_self, name)
3518 try: self.this.append(this)
3519 except: self.this = this
3520 if self.__class__ != UnaryFunction:
3522 IMP.base._director_objects.register(self)
3526 def evaluate(self, *args):
3527 """evaluate(UnaryFunction self, double feature) -> double"""
3528 return _IMP_kernel.UnaryFunction_evaluate(self, *args)
3530 def evaluate_with_derivative(self, *args):
3531 """evaluate_with_derivative(UnaryFunction self, double feature) -> IMP::DerivativePair"""
3532 return _IMP_kernel.UnaryFunction_evaluate_with_derivative(self, *args)
3534 __swig_destroy__ = _IMP_kernel.delete_UnaryFunction
3535 __del__ =
lambda self :
None;
3537 """__str__(UnaryFunction self) -> std::string"""
3538 return _IMP_kernel.UnaryFunction___str__(self)
3541 """__repr__(UnaryFunction self) -> std::string"""
3542 return _IMP_kernel.UnaryFunction___repr__(self)
3545 return _object_cast_to_UnaryFunction(o)
3546 get_from = staticmethod(get_from)
3548 def get_type_name(self):
3549 return self.__class__.__name__
3550 def do_show(self, out):
3552 def get_version_info(self):
3553 if"IMP::kernel" ==
"IMP":
3554 return VersionInfo(
"python",
"0")
3556 return IMP.VersionInfo(
"python",
"0")
3558 return _object_cast_to_UnaryFunction(o)
3559 get_from = staticmethod(get_from)
3561 def __disown__(self):
3563 _IMP_kernel.disown_UnaryFunction(self)
3564 return weakref_proxy(self)
3565 UnaryFunction_swigregister = _IMP_kernel.UnaryFunction_swigregister
3566 UnaryFunction_swigregister(UnaryFunction)
3569 """Proxy of C++ IMP::kernel::OptimizerState class"""
3570 __swig_setmethods__ = {}
3571 for _s
in [ModelObject]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
3572 __setattr__ =
lambda self, name, value: _swig_setattr(self, OptimizerState, name, value)
3573 __swig_getmethods__ = {}
3574 for _s
in [ModelObject]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
3575 __getattr__ =
lambda self, name: _swig_getattr(self, OptimizerState, name)
3576 def __init__(self, *args):
3578 __init__(IMP::kernel::OptimizerState self, Model m, std::string name) -> OptimizerState
3579 __init__(IMP::kernel::OptimizerState self, std::string name="OptimizerState %1%") -> OptimizerState
3580 __init__(IMP::kernel::OptimizerState self) -> OptimizerState
3582 if self.__class__ == OptimizerState:
3586 this = _IMP_kernel.new_OptimizerState(_self, *args)
3587 try: self.this.append(this)
3588 except: self.this = this
3589 if self.__class__ != OptimizerState:
3591 IMP.base._director_objects.register(self)
3596 """update(OptimizerState self)"""
3597 return _IMP_kernel.OptimizerState_update(self)
3599 def set_is_optimizing(self, *args):
3600 """set_is_optimizing(OptimizerState self, bool arg0)"""
3601 return _IMP_kernel.OptimizerState_set_is_optimizing(self, *args)
3603 def get_optimizer(self):
3604 """get_optimizer(OptimizerState self) -> Optimizer"""
3605 return _IMP_kernel.OptimizerState_get_optimizer(self)
3607 def set_period(self, *args):
3608 """set_period(OptimizerState self, unsigned int p)"""
3609 return _IMP_kernel.OptimizerState_set_period(self, *args)
3611 def get_period(self):
3612 """get_period(OptimizerState self) -> unsigned int"""
3613 return _IMP_kernel.OptimizerState_get_period(self)
3616 """reset(OptimizerState self)"""
3617 return _IMP_kernel.OptimizerState_reset(self)
3619 def update_always(self):
3620 """update_always(OptimizerState self)"""
3621 return _IMP_kernel.OptimizerState_update_always(self)
3623 def get_number_of_updates(self):
3624 """get_number_of_updates(OptimizerState self) -> unsigned int"""
3625 return _IMP_kernel.OptimizerState_get_number_of_updates(self)
3627 def set_number_of_updates(self, *args):
3628 """set_number_of_updates(OptimizerState self, unsigned int n)"""
3629 return _IMP_kernel.OptimizerState_set_number_of_updates(self, *args)
3631 __swig_destroy__ = _IMP_kernel.delete_OptimizerState
3632 __del__ =
lambda self :
None;
3633 def do_update(self, *args):
3634 """do_update(OptimizerState self, unsigned int arg0)"""
3635 return _IMP_kernel.OptimizerState_do_update(self, *args)
3637 def do_set_is_optimizing(self, *args):
3638 """do_set_is_optimizing(OptimizerState self, bool arg0)"""
3639 return _IMP_kernel.OptimizerState_do_set_is_optimizing(self, *args)
3641 def do_get_inputs(self):
3642 """do_get_inputs(OptimizerState self) -> IMP::kernel::ModelObjectsTemp"""
3643 return _IMP_kernel.OptimizerState_do_get_inputs(self)
3645 def do_get_outputs(self):
3646 """do_get_outputs(OptimizerState self) -> IMP::kernel::ModelObjectsTemp"""
3647 return _IMP_kernel.OptimizerState_do_get_outputs(self)
3650 """__str__(OptimizerState self) -> std::string"""
3651 return _IMP_kernel.OptimizerState___str__(self)
3654 """__repr__(OptimizerState self) -> std::string"""
3655 return _IMP_kernel.OptimizerState___repr__(self)
3658 return _object_cast_to_OptimizerState(o)
3659 get_from = staticmethod(get_from)
3661 def get_type_name(self):
3662 return self.__class__.__name__
3663 def do_show(self, out):
3665 def get_version_info(self):
3666 if"IMP::kernel" ==
"IMP":
3667 return VersionInfo(
"python",
"0")
3669 return IMP.VersionInfo(
"python",
"0")
3671 return _object_cast_to_OptimizerState(o)
3672 get_from = staticmethod(get_from)
3674 def __disown__(self):
3676 _IMP_kernel.disown_OptimizerState(self)
3677 return weakref_proxy(self)
3678 def handle_set_has_required_score_states(self, *args):
3679 """handle_set_has_required_score_states(OptimizerState self, bool arg0)"""
3680 return _IMP_kernel.OptimizerState_handle_set_has_required_score_states(self, *args)
3682 def do_get_interactions(self):
3683 """do_get_interactions(OptimizerState self) -> IMP::kernel::ModelObjectsTemps"""
3684 return _IMP_kernel.OptimizerState_do_get_interactions(self)
3686 OptimizerState_swigregister = _IMP_kernel.OptimizerState_swigregister
3687 OptimizerState_swigregister(OptimizerState)
3690 """Proxy of C++ IMP::kernel::Refiner class"""
3691 __swig_setmethods__ = {}
3692 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
3693 __setattr__ =
lambda self, name, value: _swig_setattr(self, Refiner, name, value)
3694 __swig_getmethods__ = {}
3695 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
3696 __getattr__ =
lambda self, name: _swig_getattr(self, Refiner, name)
3697 def __init__(self, name="Refiner %1%"):
3699 __init__(IMP::kernel::Refiner self, std::string name="Refiner %1%") -> Refiner
3700 __init__(IMP::kernel::Refiner self) -> Refiner
3702 if self.__class__ == Refiner:
3706 this = _IMP_kernel.new_Refiner(_self, name)
3707 try: self.this.append(this)
3708 except: self.this = this
3709 if self.__class__ != Refiner:
3711 IMP.base._director_objects.register(self)
3715 def get_can_refine(self, *args):
3716 """get_can_refine(Refiner self, Particle arg0) -> bool"""
3717 return _IMP_kernel.Refiner_get_can_refine(self, *args)
3719 def get_refined_indexes(self, *args):
3720 """get_refined_indexes(Refiner self, Model m, IMP::kernel::ParticleIndex pi) -> IMP::kernel::ParticleIndexes"""
3721 return _IMP_kernel.Refiner_get_refined_indexes(self, *args)
3723 def get_refined(self, *args):
3725 get_refined(Refiner self, Particle a) -> IMP::kernel::ParticlesTemp const
3726 get_refined(Refiner self, Particle a, unsigned int i) -> Particle
3728 return _IMP_kernel.Refiner_get_refined(self, *args)
3730 def get_number_of_refined(self, *args):
3731 """get_number_of_refined(Refiner self, Particle a) -> unsigned int"""
3732 return _IMP_kernel.Refiner_get_number_of_refined(self, *args)
3735 """__str__(Refiner self) -> std::string"""
3736 return _IMP_kernel.Refiner___str__(self)
3739 """__repr__(Refiner self) -> std::string"""
3740 return _IMP_kernel.Refiner___repr__(self)
3743 return _object_cast_to_Refiner(o)
3744 get_from = staticmethod(get_from)
3746 def get_type_name(self):
3747 return self.__class__.__name__
3748 def do_show(self, out):
3750 def get_version_info(self):
3751 if"IMP::kernel" ==
"IMP":
3752 return VersionInfo(
"python",
"0")
3754 return IMP.VersionInfo(
"python",
"0")
3756 return _object_cast_to_Refiner(o)
3757 get_from = staticmethod(get_from)
3759 __swig_destroy__ = _IMP_kernel.delete_Refiner
3760 __del__ =
lambda self :
None;
3761 def __disown__(self):
3763 _IMP_kernel.disown_Refiner(self)
3764 return weakref_proxy(self)
3765 def do_get_inputs(self, *args):
3766 """do_get_inputs(Refiner self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
3767 return _IMP_kernel.Refiner_do_get_inputs(self, *args)
3769 Refiner_swigregister = _IMP_kernel.Refiner_swigregister
3770 Refiner_swigregister(Refiner)
3773 """Proxy of C++ IMP::kernel::Optimizer class"""
3774 __swig_setmethods__ = {}
3775 for _s
in [ModelObject]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
3776 __setattr__ =
lambda self, name, value: _swig_setattr(self, Optimizer, name, value)
3777 __swig_getmethods__ = {}
3778 for _s
in [ModelObject]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
3779 __getattr__ =
lambda self, name: _swig_getattr(self, Optimizer, name)
3780 def set_is_optimizing_states(self, *args):
3781 """set_is_optimizing_states(Optimizer self, bool tf)"""
3782 return _IMP_kernel.Optimizer_set_is_optimizing_states(self, *args)
3784 def get_optimizer_state_inputs(self):
3785 """get_optimizer_state_inputs(Optimizer self) -> IMP::kernel::ModelObjectsTemp"""
3786 return _IMP_kernel.Optimizer_get_optimizer_state_inputs(self)
3788 def do_get_inputs(self):
3789 """do_get_inputs(Optimizer self) -> IMP::kernel::ModelObjectsTemp"""
3790 return _IMP_kernel.Optimizer_do_get_inputs(self)
3792 def do_get_outputs(self):
3793 """do_get_outputs(Optimizer self) -> IMP::kernel::ModelObjectsTemp"""
3794 return _IMP_kernel.Optimizer_do_get_outputs(self)
3796 def optimize(self, *args):
3797 """optimize(Optimizer self, unsigned int max_steps) -> double"""
3798 return _IMP_kernel.Optimizer_optimize(self, *args)
3800 def set_stop_on_good_score(self, *args):
3801 """set_stop_on_good_score(Optimizer self, bool tf)"""
3802 return _IMP_kernel.Optimizer_set_stop_on_good_score(self, *args)
3804 def get_stop_on_good_score(self):
3805 """get_stop_on_good_score(Optimizer self) -> bool"""
3806 return _IMP_kernel.Optimizer_get_stop_on_good_score(self)
3808 def get_last_score(self):
3809 """get_last_score(Optimizer self) -> double"""
3810 return _IMP_kernel.Optimizer_get_last_score(self)
3812 def get_scoring_function(self):
3813 """get_scoring_function(Optimizer self) -> ScoringFunction"""
3814 return _IMP_kernel.Optimizer_get_scoring_function(self)
3816 def remove_optimizer_state(self, *args):
3817 """remove_optimizer_state(Optimizer self, OptimizerState d)"""
3818 return _IMP_kernel.Optimizer_remove_optimizer_state(self, *args)
3820 def remove_optimizer_states(self, *args):
3821 """remove_optimizer_states(Optimizer self, IMP::kernel::OptimizerStates const & d)"""
3822 return _IMP_kernel.Optimizer_remove_optimizer_states(self, *args)
3824 def set_optimizer_states(self, *args):
3825 """set_optimizer_states(Optimizer self, IMP::kernel::OptimizerStates const & ps)"""
3826 return _IMP_kernel.Optimizer_set_optimizer_states(self, *args)
3828 def set_optimizer_states_order(self, *args):
3829 """set_optimizer_states_order(Optimizer self, IMP::kernel::OptimizerStates const & objs)"""
3830 return _IMP_kernel.Optimizer_set_optimizer_states_order(self, *args)
3832 def add_optimizer_state(self, *args):
3833 """add_optimizer_state(Optimizer self, OptimizerState obj) -> unsigned int"""
3834 return _IMP_kernel.Optimizer_add_optimizer_state(self, *args)
3836 def add_optimizer_states(self, *args):
3837 """add_optimizer_states(Optimizer self, IMP::kernel::OptimizerStates const & objs)"""
3838 return _IMP_kernel.Optimizer_add_optimizer_states(self, *args)
3840 def clear_optimizer_states(self):
3841 """clear_optimizer_states(Optimizer self)"""
3842 return _IMP_kernel.Optimizer_clear_optimizer_states(self)
3844 def get_number_of_optimizer_states(self):
3845 """get_number_of_optimizer_states(Optimizer self) -> unsigned int"""
3846 return _IMP_kernel.Optimizer_get_number_of_optimizer_states(self)
3848 def get_has_optimizer_states(self):
3849 """get_has_optimizer_states(Optimizer self) -> bool"""
3850 return _IMP_kernel.Optimizer_get_has_optimizer_states(self)
3852 def get_optimizer_state(self, *args):
3853 """get_optimizer_state(Optimizer self, unsigned int i) -> OptimizerState"""
3854 return _IMP_kernel.Optimizer_get_optimizer_state(self, *args)
3856 def get_optimizer_states(self):
3857 """get_optimizer_states(Optimizer self) -> IMP::kernel::OptimizerStates"""
3858 return _IMP_kernel.Optimizer_get_optimizer_states(self)
3860 def reserve_optimizer_states(self, *args):
3861 """reserve_optimizer_states(Optimizer self, unsigned int sz)"""
3862 return _IMP_kernel.Optimizer_reserve_optimizer_states(self, *args)
3864 def set_scoring_function(self, *args):
3865 """set_scoring_function(Optimizer self, _ScoringFunctionAdaptor sf)"""
3866 return _IMP_kernel.Optimizer_set_scoring_function(self, *args)
3868 __swig_destroy__ = _IMP_kernel.delete_Optimizer
3870 """__del__(IMP::kernel::Optimizer self)"""
3872 IMP.base._director_objects.cleanup()
3878 """get_restraints(Optimizer self) -> IMP::kernel::Restraints"""
3879 return _IMP_kernel.Optimizer_get_restraints(self)
3881 def __init__(self, *args):
3883 __init__(IMP::kernel::Optimizer self, Model m, std::string name="Optimizer %1%") -> Optimizer
3884 __init__(IMP::kernel::Optimizer self, Model m) -> Optimizer
3885 __init__(IMP::kernel::Optimizer self) -> Optimizer
3887 if self.__class__ == Optimizer:
3891 this = _IMP_kernel.new_Optimizer(_self, *args)
3892 try: self.this.append(this)
3893 except: self.this = this
3894 if self.__class__ != Optimizer:
3896 IMP.base._director_objects.register(self)
3900 def set_score_threshold(self, *args):
3901 """set_score_threshold(Optimizer self, double s)"""
3902 return _IMP_kernel.Optimizer_set_score_threshold(self, *args)
3904 def get_score_threshold(self):
3905 """get_score_threshold(Optimizer self) -> double"""
3906 return _IMP_kernel.Optimizer_get_score_threshold(self)
3908 def set_restraints(self, *args):
3909 """set_restraints(Optimizer self, IMP::kernel::RestraintsTemp const & rs)"""
3910 return _IMP_kernel.Optimizer_set_restraints(self, *args)
3912 def do_optimize(self, *args):
3913 """do_optimize(Optimizer self, unsigned int ns) -> double"""
3914 return _IMP_kernel.Optimizer_do_optimize(self, *args)
3916 def update_states(self):
3917 """update_states(Optimizer self)"""
3918 return _IMP_kernel.Optimizer_update_states(self)
3921 """__str__(Optimizer self) -> std::string"""
3922 return _IMP_kernel.Optimizer___str__(self)
3925 """__repr__(Optimizer self) -> std::string"""
3926 return _IMP_kernel.Optimizer___repr__(self)
3929 return _object_cast_to_Optimizer(o)
3930 get_from = staticmethod(get_from)
3932 def get_type_name(self):
3933 return self.__class__.__name__
3934 def do_show(self, out):
3936 def get_version_info(self):
3937 if"IMP::kernel" ==
"IMP":
3938 return VersionInfo(
"python",
"0")
3940 return IMP.VersionInfo(
"python",
"0")
3942 return _object_cast_to_Optimizer(o)
3943 get_from = staticmethod(get_from)
3945 def __disown__(self):
3947 _IMP_kernel.disown_Optimizer(self)
3948 return weakref_proxy(self)
3949 def handle_set_has_required_score_states(self, *args):
3950 """handle_set_has_required_score_states(Optimizer self, bool arg0)"""
3951 return _IMP_kernel.Optimizer_handle_set_has_required_score_states(self, *args)
3953 def do_get_interactions(self):
3954 """do_get_interactions(Optimizer self) -> IMP::kernel::ModelObjectsTemps"""
3955 return _IMP_kernel.Optimizer_do_get_interactions(self)
3957 Optimizer_swigregister = _IMP_kernel.Optimizer_swigregister
3958 Optimizer_swigregister(Optimizer)
3961 """Proxy of C++ IMP::kernel::AttributeOptimizer class"""
3962 __swig_setmethods__ = {}
3963 for _s
in [Optimizer]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
3964 __setattr__ =
lambda self, name, value: _swig_setattr(self, AttributeOptimizer, name, value)
3965 __swig_getmethods__ = {}
3966 for _s
in [Optimizer]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
3967 __getattr__ =
lambda self, name: _swig_getattr(self, AttributeOptimizer, name)
3968 def __init__(self, *args):
3970 __init__(IMP::kernel::AttributeOptimizer self, Model m, std::string name="Optimizer %1%") -> AttributeOptimizer
3971 __init__(IMP::kernel::AttributeOptimizer self, Model m) -> AttributeOptimizer
3972 __init__(IMP::kernel::AttributeOptimizer self) -> AttributeOptimizer
3974 if self.__class__ == AttributeOptimizer:
3978 this = _IMP_kernel.new_AttributeOptimizer(_self, *args)
3979 try: self.this.append(this)
3980 except: self.this = this
3981 if self.__class__ != AttributeOptimizer:
3983 IMP.base._director_objects.register(self)
3987 def get_optimized_attributes(self):
3988 """get_optimized_attributes(AttributeOptimizer self) -> IMP::kernel::FloatIndexes"""
3989 return _IMP_kernel.AttributeOptimizer_get_optimized_attributes(self)
3991 def set_value(self, *args):
3992 """set_value(AttributeOptimizer self, FloatIndex fi, double v)"""
3993 return _IMP_kernel.AttributeOptimizer_set_value(self, *args)
3995 def get_value(self, *args):
3996 """get_value(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
3997 return _IMP_kernel.AttributeOptimizer_get_value(self, *args)
3999 def get_derivative(self, *args):
4000 """get_derivative(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
4001 return _IMP_kernel.AttributeOptimizer_get_derivative(self, *args)
4003 def get_width(self, *args):
4004 """get_width(AttributeOptimizer self, FloatKey k) -> double"""
4005 return _IMP_kernel.AttributeOptimizer_get_width(self, *args)
4007 def set_scaled_value(self, *args):
4008 """set_scaled_value(AttributeOptimizer self, FloatIndex fi, IMP::Float v)"""
4009 return _IMP_kernel.AttributeOptimizer_set_scaled_value(self, *args)
4011 def get_scaled_value(self, *args):
4012 """get_scaled_value(AttributeOptimizer self, FloatIndex fi) -> double"""
4013 return _IMP_kernel.AttributeOptimizer_get_scaled_value(self, *args)
4015 def get_scaled_derivative(self, *args):
4016 """get_scaled_derivative(AttributeOptimizer self, FloatIndex fi) -> double"""
4017 return _IMP_kernel.AttributeOptimizer_get_scaled_derivative(self, *args)
4019 def clear_range_cache(self):
4020 """clear_range_cache(AttributeOptimizer self)"""
4021 return _IMP_kernel.AttributeOptimizer_clear_range_cache(self)
4024 """__str__(AttributeOptimizer self) -> std::string"""
4025 return _IMP_kernel.AttributeOptimizer___str__(self)
4028 """__repr__(AttributeOptimizer self) -> std::string"""
4029 return _IMP_kernel.AttributeOptimizer___repr__(self)
4032 return _object_cast_to_AttributeOptimizer(o)
4033 get_from = staticmethod(get_from)
4035 def get_type_name(self):
4036 return self.__class__.__name__
4037 def do_show(self, out):
4039 def get_version_info(self):
4040 if"IMP::kernel" ==
"IMP":
4041 return VersionInfo(
"python",
"0")
4043 return IMP.VersionInfo(
"python",
"0")
4045 return _object_cast_to_AttributeOptimizer(o)
4046 get_from = staticmethod(get_from)
4048 __swig_destroy__ = _IMP_kernel.delete_AttributeOptimizer
4049 __del__ =
lambda self :
None;
4050 def __disown__(self):
4052 _IMP_kernel.disown_AttributeOptimizer(self)
4053 return weakref_proxy(self)
4054 def handle_set_has_required_score_states(self, *args):
4055 """handle_set_has_required_score_states(AttributeOptimizer self, bool arg0)"""
4056 return _IMP_kernel.AttributeOptimizer_handle_set_has_required_score_states(self, *args)
4058 def do_get_inputs(self):
4059 """do_get_inputs(AttributeOptimizer self) -> IMP::kernel::ModelObjectsTemp"""
4060 return _IMP_kernel.AttributeOptimizer_do_get_inputs(self)
4062 def do_get_outputs(self):
4063 """do_get_outputs(AttributeOptimizer self) -> IMP::kernel::ModelObjectsTemp"""
4064 return _IMP_kernel.AttributeOptimizer_do_get_outputs(self)
4066 def do_get_interactions(self):
4067 """do_get_interactions(AttributeOptimizer self) -> IMP::kernel::ModelObjectsTemps"""
4068 return _IMP_kernel.AttributeOptimizer_do_get_interactions(self)
4070 def do_optimize(self, *args):
4071 """do_optimize(AttributeOptimizer self, unsigned int ns) -> double"""
4072 return _IMP_kernel.AttributeOptimizer_do_optimize(self, *args)
4074 AttributeOptimizer_swigregister = _IMP_kernel.AttributeOptimizer_swigregister
4075 AttributeOptimizer_swigregister(AttributeOptimizer)
4078 """Proxy of C++ IMP::kernel::ConfigurationSet class"""
4079 __swig_setmethods__ = {}
4080 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
4081 __setattr__ =
lambda self, name, value: _swig_setattr(self, ConfigurationSet, name, value)
4082 __swig_getmethods__ = {}
4083 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
4084 __getattr__ =
lambda self, name: _swig_getattr(self, ConfigurationSet, name)
4085 def __init__(self, *args):
4087 __init__(IMP::kernel::ConfigurationSet self, Model m, std::string name="ConfigurationSet %1%") -> ConfigurationSet
4088 __init__(IMP::kernel::ConfigurationSet self, Model m) -> ConfigurationSet
4090 this = _IMP_kernel.new_ConfigurationSet(*args)
4091 try: self.this.append(this)
4092 except: self.this = this
4093 def save_configuration(self):
4094 """save_configuration(ConfigurationSet self)"""
4095 return _IMP_kernel.ConfigurationSet_save_configuration(self)
4097 def get_number_of_configurations(self):
4098 """get_number_of_configurations(ConfigurationSet self) -> unsigned int"""
4099 return _IMP_kernel.ConfigurationSet_get_number_of_configurations(self)
4101 def load_configuration(self, *args):
4102 """load_configuration(ConfigurationSet self, int i)"""
4103 return _IMP_kernel.ConfigurationSet_load_configuration(self, *args)
4105 def remove_configuration(self, *args):
4106 """remove_configuration(ConfigurationSet self, unsigned int i)"""
4107 return _IMP_kernel.ConfigurationSet_remove_configuration(self, *args)
4109 def get_model(self):
4110 """get_model(ConfigurationSet self) -> Model"""
4111 return _IMP_kernel.ConfigurationSet_get_model(self)
4113 def get_version_info(self):
4114 """get_version_info(ConfigurationSet self) -> VersionInfo"""
4115 return _IMP_kernel.ConfigurationSet_get_version_info(self)
4117 __swig_destroy__ = _IMP_kernel.delete_ConfigurationSet
4118 __del__ =
lambda self :
None;
4120 """__str__(ConfigurationSet self) -> std::string"""
4121 return _IMP_kernel.ConfigurationSet___str__(self)
4124 """__repr__(ConfigurationSet self) -> std::string"""
4125 return _IMP_kernel.ConfigurationSet___repr__(self)
4128 return _object_cast_to_ConfigurationSet(o)
4129 get_from = staticmethod(get_from)
4131 ConfigurationSet_swigregister = _IMP_kernel.ConfigurationSet_swigregister
4132 ConfigurationSet_swigregister(ConfigurationSet)
4135 """Proxy of C++ IMP::kernel::SaveToConfigurationSetOptimizerState class"""
4136 __swig_setmethods__ = {}
4137 for _s
in [OptimizerState]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
4138 __setattr__ =
lambda self, name, value: _swig_setattr(self, SaveToConfigurationSetOptimizerState, name, value)
4139 __swig_getmethods__ = {}
4140 for _s
in [OptimizerState]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
4141 __getattr__ =
lambda self, name: _swig_getattr(self, SaveToConfigurationSetOptimizerState, name)
4142 def __init__(self, *args):
4143 """__init__(IMP::kernel::SaveToConfigurationSetOptimizerState self, ConfigurationSet cs) -> SaveToConfigurationSetOptimizerState"""
4144 this = _IMP_kernel.new_SaveToConfigurationSetOptimizerState(*args)
4145 try: self.this.append(this)
4146 except: self.this = this
4147 def get_version_info(self):
4148 """get_version_info(SaveToConfigurationSetOptimizerState self) -> VersionInfo"""
4149 return _IMP_kernel.SaveToConfigurationSetOptimizerState_get_version_info(self)
4151 __swig_destroy__ = _IMP_kernel.delete_SaveToConfigurationSetOptimizerState
4152 __del__ =
lambda self :
None;
4154 """__str__(SaveToConfigurationSetOptimizerState self) -> std::string"""
4155 return _IMP_kernel.SaveToConfigurationSetOptimizerState___str__(self)
4158 """__repr__(SaveToConfigurationSetOptimizerState self) -> std::string"""
4159 return _IMP_kernel.SaveToConfigurationSetOptimizerState___repr__(self)
4162 return _object_cast_to_SaveToConfigurationSetOptimizerState(o)
4163 get_from = staticmethod(get_from)
4165 SaveToConfigurationSetOptimizerState_swigregister = _IMP_kernel.SaveToConfigurationSetOptimizerState_swigregister
4166 SaveToConfigurationSetOptimizerState_swigregister(SaveToConfigurationSetOptimizerState)
4169 """Proxy of C++ IMP::kernel::Configuration class"""
4170 __swig_setmethods__ = {}
4171 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
4172 __setattr__ =
lambda self, name, value: _swig_setattr(self, Configuration, name, value)
4173 __swig_getmethods__ = {}
4174 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
4175 __getattr__ =
lambda self, name: _swig_getattr(self, Configuration, name)
4176 def __init__(self, *args):
4178 __init__(IMP::kernel::Configuration self, Model m, std::string name="Configuration %1%") -> Configuration
4179 __init__(IMP::kernel::Configuration self, Model m) -> Configuration
4180 __init__(IMP::kernel::Configuration self, Model m, Configuration base, std::string name="Configuration %1%") -> Configuration
4181 __init__(IMP::kernel::Configuration self, Model m, Configuration base) -> Configuration
4183 this = _IMP_kernel.new_Configuration(*args)
4184 try: self.this.append(this)
4185 except: self.this = this
4186 def load_configuration(self):
4187 """load_configuration(Configuration self)"""
4188 return _IMP_kernel.Configuration_load_configuration(self)
4190 def swap_configuration(self):
4191 """swap_configuration(Configuration self)"""
4192 return _IMP_kernel.Configuration_swap_configuration(self)
4194 def get_version_info(self):
4195 """get_version_info(Configuration self) -> VersionInfo"""
4196 return _IMP_kernel.Configuration_get_version_info(self)
4198 __swig_destroy__ = _IMP_kernel.delete_Configuration
4199 __del__ =
lambda self :
None;
4201 """__str__(Configuration self) -> std::string"""
4202 return _IMP_kernel.Configuration___str__(self)
4205 """__repr__(Configuration self) -> std::string"""
4206 return _IMP_kernel.Configuration___repr__(self)
4209 return _object_cast_to_Configuration(o)
4210 get_from = staticmethod(get_from)
4212 Configuration_swigregister = _IMP_kernel.Configuration_swigregister
4213 Configuration_swigregister(Configuration)
4216 """Proxy of C++ IMP::kernel::Sampler class"""
4217 __swig_setmethods__ = {}
4218 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
4219 __setattr__ =
lambda self, name, value: _swig_setattr(self, Sampler, name, value)
4220 __swig_getmethods__ = {}
4221 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
4222 __getattr__ =
lambda self, name: _swig_getattr(self, Sampler, name)
4223 def __init__(self, *args):
4225 __init__(IMP::kernel::Sampler self, Model m, std::string name="Sampler %1%") -> Sampler
4226 __init__(IMP::kernel::Sampler self, Model m) -> Sampler
4228 if self.__class__ == Sampler:
4232 this = _IMP_kernel.new_Sampler(_self, *args)
4233 try: self.this.append(this)
4234 except: self.this = this
4235 if self.__class__ != Sampler:
4237 IMP.base._director_objects.register(self)
4241 def create_sample(self):
4242 """create_sample(Sampler self) -> ConfigurationSet"""
4243 return _IMP_kernel.Sampler_create_sample(self)
4245 def get_scoring_function(self):
4246 """get_scoring_function(Sampler self) -> ScoringFunction"""
4247 return _IMP_kernel.Sampler_get_scoring_function(self)
4249 def set_scoring_function(self, *args):
4250 """set_scoring_function(Sampler self, _ScoringFunctionAdaptor sf)"""
4251 return _IMP_kernel.Sampler_set_scoring_function(self, *args)
4253 def get_model(self):
4254 """get_model(Sampler self) -> Model"""
4255 return _IMP_kernel.Sampler_get_model(self)
4257 def get_sample(self):
4258 """get_sample(Sampler self) -> ConfigurationSet"""
4259 return _IMP_kernel.Sampler_get_sample(self)
4261 def do_sample(self):
4262 """do_sample(Sampler self) -> ConfigurationSet"""
4263 return _IMP_kernel.Sampler_do_sample(self)
4265 __swig_destroy__ = _IMP_kernel.delete_Sampler
4266 __del__ =
lambda self :
None;
4268 """__str__(Sampler self) -> std::string"""
4269 return _IMP_kernel.Sampler___str__(self)
4272 """__repr__(Sampler self) -> std::string"""
4273 return _IMP_kernel.Sampler___repr__(self)
4276 return _object_cast_to_Sampler(o)
4277 get_from = staticmethod(get_from)
4279 def get_type_name(self):
4280 return self.__class__.__name__
4281 def do_show(self, out):
4283 def get_version_info(self):
4284 if"IMP::kernel" ==
"IMP":
4285 return VersionInfo(
"python",
"0")
4287 return IMP.VersionInfo(
"python",
"0")
4289 return _object_cast_to_Sampler(o)
4290 get_from = staticmethod(get_from)
4292 def __disown__(self):
4294 _IMP_kernel.disown_Sampler(self)
4295 return weakref_proxy(self)
4296 Sampler_swigregister = _IMP_kernel.Sampler_swigregister
4297 Sampler_swigregister(Sampler)
4300 """Proxy of C++ IMP::kernel::PairModifier class"""
4301 __swig_setmethods__ = {}
4302 for _s
in [_ParticleInputs,_ParticleOutputs,
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
4303 __setattr__ =
lambda self, name, value: _swig_setattr(self, PairModifier, name, value)
4304 __swig_getmethods__ = {}
4305 for _s
in [_ParticleInputs,_ParticleOutputs,
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
4306 __getattr__ =
lambda self, name: _swig_getattr(self, PairModifier, name)
4307 def __init__(self, name="PairModifier %1%"):
4309 __init__(IMP::kernel::PairModifier self, std::string name="PairModifier %1%") -> PairModifier
4310 __init__(IMP::kernel::PairModifier self) -> PairModifier
4312 if self.__class__ == PairModifier:
4316 this = _IMP_kernel.new_PairModifier(_self, name)
4317 try: self.this.append(this)
4318 except: self.this = this
4319 if self.__class__ != PairModifier:
4321 IMP.base._director_objects.register(self)
4325 def apply(self, *args):
4326 """apply(PairModifier self, IMP::kernel::ParticlePair const & vt)"""
4327 return _IMP_kernel.PairModifier_apply(self, *args)
4329 def apply_index(self, *args):
4330 """apply_index(PairModifier self, Model m, IMP::kernel::ParticleIndexPair const & v)"""
4331 return _IMP_kernel.PairModifier_apply_index(self, *args)
4333 def apply_indexes(self, *args):
4334 """apply_indexes(PairModifier self, Model m, IMP::kernel::ParticleIndexPairs const & o, unsigned int lower_bound, unsigned int upper_bound)"""
4335 return _IMP_kernel.PairModifier_apply_indexes(self, *args)
4338 """__str__(PairModifier self) -> std::string"""
4339 return _IMP_kernel.PairModifier___str__(self)
4342 """__repr__(PairModifier self) -> std::string"""
4343 return _IMP_kernel.PairModifier___repr__(self)
4346 return _object_cast_to_PairModifier(o)
4347 get_from = staticmethod(get_from)
4349 def get_type_name(self):
4350 return self.__class__.__name__
4351 def do_show(self, out):
4353 def get_version_info(self):
4354 if"IMP::kernel" ==
"IMP":
4355 return VersionInfo(
"python",
"0")
4357 return IMP.VersionInfo(
"python",
"0")
4359 return _object_cast_to_PairModifier(o)
4360 get_from = staticmethod(get_from)
4362 __swig_destroy__ = _IMP_kernel.delete_PairModifier
4363 __del__ =
lambda self :
None;
4364 def __disown__(self):
4366 _IMP_kernel.disown_PairModifier(self)
4367 return weakref_proxy(self)
4368 def do_get_inputs(self, *args):
4369 """do_get_inputs(PairModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4370 return _IMP_kernel.PairModifier_do_get_inputs(self, *args)
4372 def do_get_outputs(self, *args):
4373 """do_get_outputs(PairModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4374 return _IMP_kernel.PairModifier_do_get_outputs(self, *args)
4376 PairModifier_swigregister = _IMP_kernel.PairModifier_swigregister
4377 PairModifier_swigregister(PairModifier)
4380 """Proxy of C++ IMP::kernel::PairScore class"""
4381 __swig_setmethods__ = {}
4382 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
4383 __setattr__ =
lambda self, name, value: _swig_setattr(self, PairScore, name, value)
4384 __swig_getmethods__ = {}
4385 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
4386 __getattr__ =
lambda self, name: _swig_getattr(self, PairScore, name)
4387 def __init__(self, name="PairScore %1%"):
4389 __init__(IMP::kernel::PairScore self, std::string name="PairScore %1%") -> PairScore
4390 __init__(IMP::kernel::PairScore self) -> PairScore
4392 if self.__class__ == PairScore:
4396 this = _IMP_kernel.new_PairScore(_self, name)
4397 try: self.this.append(this)
4398 except: self.this = this
4399 if self.__class__ != PairScore:
4401 IMP.base._director_objects.register(self)
4405 def evaluate(self, *args):
4406 """evaluate(PairScore self, IMP::kernel::ParticlePair const & vt, DerivativeAccumulator da) -> double"""
4407 return _IMP_kernel.PairScore_evaluate(self, *args)
4409 def evaluate_index(self, *args):
4410 """evaluate_index(PairScore self, Model m, IMP::kernel::ParticleIndexPair const & vt, DerivativeAccumulator da) -> double"""
4411 return _IMP_kernel.PairScore_evaluate_index(self, *args)
4413 def evaluate_indexes(self, *args):
4415 evaluate_indexes(PairScore self, Model m, IMP::kernel::ParticleIndexPairs const & o, DerivativeAccumulator da, unsigned int lower_bound,
4416 unsigned int upper_bound) -> double
4418 return _IMP_kernel.PairScore_evaluate_indexes(self, *args)
4420 def evaluate_if_good_index(self, *args):
4421 """evaluate_if_good_index(PairScore self, Model m, IMP::kernel::ParticleIndexPair const & vt, DerivativeAccumulator da, double max) -> double"""
4422 return _IMP_kernel.PairScore_evaluate_if_good_index(self, *args)
4424 def evaluate_if_good_indexes(self, *args):
4426 evaluate_if_good_indexes(PairScore self, Model m, IMP::kernel::ParticleIndexPairs const & o, DerivativeAccumulator da, double max,
4427 unsigned int lower_bound, unsigned int upper_bound) -> double
4429 return _IMP_kernel.PairScore_evaluate_if_good_indexes(self, *args)
4431 def create_current_decomposition(self, *args):
4432 """create_current_decomposition(PairScore self, Model m, IMP::kernel::ParticleIndexPair const & vt) -> IMP::kernel::Restraints"""
4433 return _IMP_kernel.PairScore_create_current_decomposition(self, *args)
4435 def do_create_current_decomposition(self, *args):
4436 """do_create_current_decomposition(PairScore self, Model m, IMP::kernel::ParticleIndexPair const & vt) -> IMP::kernel::Restraints"""
4437 return _IMP_kernel.PairScore_do_create_current_decomposition(self, *args)
4439 __swig_destroy__ = _IMP_kernel.delete_PairScore
4440 __del__ =
lambda self :
None;
4442 """__str__(PairScore self) -> std::string"""
4443 return _IMP_kernel.PairScore___str__(self)
4446 """__repr__(PairScore self) -> std::string"""
4447 return _IMP_kernel.PairScore___repr__(self)
4450 return _object_cast_to_PairScore(o)
4451 get_from = staticmethod(get_from)
4453 def get_type_name(self):
4454 return self.__class__.__name__
4455 def do_show(self, out):
4457 def get_version_info(self):
4458 if"IMP::kernel" ==
"IMP":
4459 return VersionInfo(
"python",
"0")
4461 return IMP.VersionInfo(
"python",
"0")
4463 return _object_cast_to_PairScore(o)
4464 get_from = staticmethod(get_from)
4466 def __disown__(self):
4468 _IMP_kernel.disown_PairScore(self)
4469 return weakref_proxy(self)
4470 def do_get_inputs(self, *args):
4471 """do_get_inputs(PairScore self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4472 return _IMP_kernel.PairScore_do_get_inputs(self, *args)
4474 PairScore_swigregister = _IMP_kernel.PairScore_swigregister
4475 PairScore_swigregister(PairScore)
4478 """Proxy of C++ IMP::kernel::PairPredicate class"""
4479 __swig_setmethods__ = {}
4480 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
4481 __setattr__ =
lambda self, name, value: _swig_setattr(self, PairPredicate, name, value)
4482 __swig_getmethods__ = {}
4483 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
4484 __getattr__ =
lambda self, name: _swig_getattr(self, PairPredicate, name)
4485 def __init__(self, name="PairPredicate %1%"):
4487 __init__(IMP::kernel::PairPredicate self, std::string name="PairPredicate %1%") -> PairPredicate
4488 __init__(IMP::kernel::PairPredicate self) -> PairPredicate
4490 if self.__class__ == PairPredicate:
4494 this = _IMP_kernel.new_PairPredicate(_self, name)
4495 try: self.this.append(this)
4496 except: self.this = this
4497 if self.__class__ != PairPredicate:
4499 IMP.base._director_objects.register(self)
4503 def get_value(self, *args):
4505 get_value(PairPredicate self, IMP::kernel::ParticlePair const & vt) -> int
4506 get_value(PairPredicate self, IMP::kernel::ParticlePairsTemp const & o) -> IMP::Ints
4508 return _IMP_kernel.PairPredicate_get_value(self, *args)
4510 def __call__(self, *args):
4511 """__call__(PairPredicate self, Model m, IMP::kernel::ParticleIndexPair const & vt) -> int"""
4512 return _IMP_kernel.PairPredicate___call__(self, *args)
4514 def get_value_index(self, *args):
4516 get_value_index(PairPredicate self, Model m, IMP::kernel::ParticleIndexPair const & vt) -> int
4517 get_value_index(PairPredicate self, Model m, IMP::kernel::ParticleIndexPairs const & o) -> IMP::Ints
4519 return _IMP_kernel.PairPredicate_get_value_index(self, *args)
4521 __swig_destroy__ = _IMP_kernel.delete_PairPredicate
4522 __del__ =
lambda self :
None;
4524 """__str__(PairPredicate self) -> std::string"""
4525 return _IMP_kernel.PairPredicate___str__(self)
4528 """__repr__(PairPredicate self) -> std::string"""
4529 return _IMP_kernel.PairPredicate___repr__(self)
4532 return _object_cast_to_PairPredicate(o)
4533 get_from = staticmethod(get_from)
4535 def get_type_name(self):
4536 return self.__class__.__name__
4537 def do_show(self, out):
4539 def get_version_info(self):
4540 if"IMP::kernel" ==
"IMP":
4541 return VersionInfo(
"python",
"0")
4543 return IMP.VersionInfo(
"python",
"0")
4545 return _object_cast_to_PairPredicate(o)
4546 get_from = staticmethod(get_from)
4548 def __disown__(self):
4550 _IMP_kernel.disown_PairPredicate(self)
4551 return weakref_proxy(self)
4552 def do_get_inputs(self, *args):
4553 """do_get_inputs(PairPredicate self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4554 return _IMP_kernel.PairPredicate_do_get_inputs(self, *args)
4556 PairPredicate_swigregister = _IMP_kernel.PairPredicate_swigregister
4557 PairPredicate_swigregister(PairPredicate)
4560 """Proxy of C++ IMP::kernel::PairContainer class"""
4561 __swig_setmethods__ = {}
4562 for _s
in [Container]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
4563 __setattr__ =
lambda self, name, value: _swig_setattr(self, PairContainer, name, value)
4564 __swig_getmethods__ = {}
4565 for _s
in [Container]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
4566 __getattr__ =
lambda self, name: _swig_getattr(self, PairContainer, name)
4567 def __init__(self, *args):
4569 __init__(IMP::kernel::PairContainer self, Model m, std::string name="PairContainer %1%") -> PairContainer
4570 __init__(IMP::kernel::PairContainer self, Model m) -> PairContainer
4572 if self.__class__ == PairContainer:
4576 this = _IMP_kernel.new_PairContainer(_self, *args)
4577 try: self.this.append(this)
4578 except: self.this = this
4579 if self.__class__ != PairContainer:
4581 IMP.base._director_objects.register(self)
4585 def apply_generic(self, *args):
4586 """apply_generic(PairContainer self, PairModifier m)"""
4587 return _IMP_kernel.PairContainer_apply_generic(self, *args)
4589 def apply(self, *args):
4590 """apply(PairContainer self, PairModifier sm)"""
4591 return _IMP_kernel.PairContainer_apply(self, *args)
4594 """get_indexes(PairContainer self) -> IMP::kernel::ParticleIndexPairs"""
4595 return _IMP_kernel.PairContainer_get_indexes(self)
4597 def get_range_indexes(self):
4598 """get_range_indexes(PairContainer self) -> IMP::kernel::ParticleIndexPairs"""
4599 return _IMP_kernel.PairContainer_get_range_indexes(self)
4601 def get(self, *args):
4603 get(PairContainer self) -> IMP::kernel::ParticlePairsTemp
4604 get(PairContainer self, unsigned int i) -> IMP::kernel::ParticlePair
4606 return _IMP_kernel.PairContainer_get(self, *args)
4608 def get_number(self):
4609 """get_number(PairContainer self) -> unsigned int"""
4610 return _IMP_kernel.PairContainer_get_number(self)
4612 def get_particle_pairs(self):
4613 """get_particle_pairs(PairContainer self) -> IMP::kernel::ParticlePairsTemp"""
4614 return _IMP_kernel.PairContainer_get_particle_pairs(self)
4616 def get_contains_particle_pair(self, *args):
4617 """get_contains_particle_pair(PairContainer self, IMP::kernel::ParticlePair v) -> bool"""
4618 return _IMP_kernel.PairContainer_get_contains_particle_pair(self, *args)
4620 def get_number_of_particle_pairs(self):
4621 """get_number_of_particle_pairs(PairContainer self) -> unsigned int"""
4622 return _IMP_kernel.PairContainer_get_number_of_particle_pairs(self)
4624 def get_particle_pair(self, *args):
4625 """get_particle_pair(PairContainer self, unsigned int i) -> IMP::kernel::ParticlePair"""
4626 return _IMP_kernel.PairContainer_get_particle_pair(self, *args)
4628 def do_apply(self, *args):
4629 """do_apply(PairContainer self, PairModifier sm)"""
4630 return _IMP_kernel.PairContainer_do_apply(self, *args)
4632 def do_get_provides_access(self):
4633 """do_get_provides_access(PairContainer self) -> bool"""
4634 return _IMP_kernel.PairContainer_do_get_provides_access(self)
4636 __swig_destroy__ = _IMP_kernel.delete_PairContainer
4637 __del__ =
lambda self :
None;
4639 """__str__(PairContainer self) -> std::string"""
4640 return _IMP_kernel.PairContainer___str__(self)
4643 """__repr__(PairContainer self) -> std::string"""
4644 return _IMP_kernel.PairContainer___repr__(self)
4647 return _object_cast_to_PairContainer(o)
4648 get_from = staticmethod(get_from)
4650 def get_type_name(self):
4651 return self.__class__.__name__
4652 def do_show(self, out):
4654 def get_version_info(self):
4655 if"IMP::kernel" ==
"IMP":
4656 return VersionInfo(
"python",
"0")
4658 return IMP.VersionInfo(
"python",
"0")
4660 return _object_cast_to_PairContainer(o)
4661 get_from = staticmethod(get_from)
4663 def __disown__(self):
4665 _IMP_kernel.disown_PairContainer(self)
4666 return weakref_proxy(self)
4667 def do_get_inputs(self):
4668 """do_get_inputs(PairContainer self) -> IMP::kernel::ModelObjectsTemp"""
4669 return _IMP_kernel.PairContainer_do_get_inputs(self)
4671 def do_get_interactions(self):
4672 """do_get_interactions(PairContainer self) -> IMP::kernel::ModelObjectsTemps"""
4673 return _IMP_kernel.PairContainer_do_get_interactions(self)
4675 def do_before_evaluate(self):
4676 """do_before_evaluate(PairContainer self)"""
4677 return _IMP_kernel.PairContainer_do_before_evaluate(self)
4679 PairContainer_swigregister = _IMP_kernel.PairContainer_swigregister
4680 PairContainer_swigregister(PairContainer)
4682 class _PairContainerAdaptor(IMP.base._InputAdaptor):
4683 """Proxy of C++ IMP::kernel::PairContainerAdaptor class"""
4684 __swig_setmethods__ = {}
4685 for _s
in [IMP.base._InputAdaptor]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
4686 __setattr__ =
lambda self, name, value: _swig_setattr(self, _PairContainerAdaptor, name, value)
4687 __swig_getmethods__ = {}
4688 for _s
in [IMP.base._InputAdaptor]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
4689 __getattr__ =
lambda self, name: _swig_getattr(self, _PairContainerAdaptor, name)
4690 __repr__ = _swig_repr
4691 def __init__(self, *args):
4693 __init__(IMP::kernel::PairContainerAdaptor self) -> _PairContainerAdaptor
4694 __init__(IMP::kernel::PairContainerAdaptor self, PairContainer c) -> _PairContainerAdaptor
4695 __init__(IMP::kernel::PairContainerAdaptor self, IMP::kernel::ParticlePairsTemp const & t, std::string name="PairContainerAdaptor%1%") -> _PairContainerAdaptor
4696 __init__(IMP::kernel::PairContainerAdaptor self, IMP::kernel::ParticlePairsTemp const & t) -> _PairContainerAdaptor
4698 this = _IMP_kernel.new__PairContainerAdaptor(*args)
4699 try: self.this.append(this)
4700 except: self.this = this
4701 __swig_destroy__ = _IMP_kernel.delete__PairContainerAdaptor
4702 __del__ =
lambda self :
None;
4703 _PairContainerAdaptor_swigregister = _IMP_kernel._PairContainerAdaptor_swigregister
4704 _PairContainerAdaptor_swigregister(_PairContainerAdaptor)
4707 """Proxy of C++ IMP::kernel::QuadModifier class"""
4708 __swig_setmethods__ = {}
4709 for _s
in [_ParticleInputs,_ParticleOutputs,
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
4710 __setattr__ =
lambda self, name, value: _swig_setattr(self, QuadModifier, name, value)
4711 __swig_getmethods__ = {}
4712 for _s
in [_ParticleInputs,_ParticleOutputs,
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
4713 __getattr__ =
lambda self, name: _swig_getattr(self, QuadModifier, name)
4714 def __init__(self, name="QuadModifier %1%"):
4716 __init__(IMP::kernel::QuadModifier self, std::string name="QuadModifier %1%") -> QuadModifier
4717 __init__(IMP::kernel::QuadModifier self) -> QuadModifier
4719 if self.__class__ == QuadModifier:
4723 this = _IMP_kernel.new_QuadModifier(_self, name)
4724 try: self.this.append(this)
4725 except: self.this = this
4726 if self.__class__ != QuadModifier:
4728 IMP.base._director_objects.register(self)
4732 def apply(self, *args):
4733 """apply(QuadModifier self, IMP::kernel::ParticleQuad const & vt)"""
4734 return _IMP_kernel.QuadModifier_apply(self, *args)
4736 def apply_index(self, *args):
4737 """apply_index(QuadModifier self, Model m, IMP::kernel::ParticleIndexQuad const & v)"""
4738 return _IMP_kernel.QuadModifier_apply_index(self, *args)
4740 def apply_indexes(self, *args):
4741 """apply_indexes(QuadModifier self, Model m, IMP::kernel::ParticleIndexQuads const & o, unsigned int lower_bound, unsigned int upper_bound)"""
4742 return _IMP_kernel.QuadModifier_apply_indexes(self, *args)
4745 """__str__(QuadModifier self) -> std::string"""
4746 return _IMP_kernel.QuadModifier___str__(self)
4749 """__repr__(QuadModifier self) -> std::string"""
4750 return _IMP_kernel.QuadModifier___repr__(self)
4753 return _object_cast_to_QuadModifier(o)
4754 get_from = staticmethod(get_from)
4756 def get_type_name(self):
4757 return self.__class__.__name__
4758 def do_show(self, out):
4760 def get_version_info(self):
4761 if"IMP::kernel" ==
"IMP":
4762 return VersionInfo(
"python",
"0")
4764 return IMP.VersionInfo(
"python",
"0")
4766 return _object_cast_to_QuadModifier(o)
4767 get_from = staticmethod(get_from)
4769 __swig_destroy__ = _IMP_kernel.delete_QuadModifier
4770 __del__ =
lambda self :
None;
4771 def __disown__(self):
4773 _IMP_kernel.disown_QuadModifier(self)
4774 return weakref_proxy(self)
4775 def do_get_inputs(self, *args):
4776 """do_get_inputs(QuadModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4777 return _IMP_kernel.QuadModifier_do_get_inputs(self, *args)
4779 def do_get_outputs(self, *args):
4780 """do_get_outputs(QuadModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4781 return _IMP_kernel.QuadModifier_do_get_outputs(self, *args)
4783 QuadModifier_swigregister = _IMP_kernel.QuadModifier_swigregister
4784 QuadModifier_swigregister(QuadModifier)
4787 """Proxy of C++ IMP::kernel::QuadScore class"""
4788 __swig_setmethods__ = {}
4789 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
4790 __setattr__ =
lambda self, name, value: _swig_setattr(self, QuadScore, name, value)
4791 __swig_getmethods__ = {}
4792 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
4793 __getattr__ =
lambda self, name: _swig_getattr(self, QuadScore, name)
4794 def __init__(self, name="QuadScore %1%"):
4796 __init__(IMP::kernel::QuadScore self, std::string name="QuadScore %1%") -> QuadScore
4797 __init__(IMP::kernel::QuadScore self) -> QuadScore
4799 if self.__class__ == QuadScore:
4803 this = _IMP_kernel.new_QuadScore(_self, name)
4804 try: self.this.append(this)
4805 except: self.this = this
4806 if self.__class__ != QuadScore:
4808 IMP.base._director_objects.register(self)
4812 def evaluate(self, *args):
4813 """evaluate(QuadScore self, IMP::kernel::ParticleQuad const & vt, DerivativeAccumulator da) -> double"""
4814 return _IMP_kernel.QuadScore_evaluate(self, *args)
4816 def evaluate_index(self, *args):
4817 """evaluate_index(QuadScore self, Model m, IMP::kernel::ParticleIndexQuad const & vt, DerivativeAccumulator da) -> double"""
4818 return _IMP_kernel.QuadScore_evaluate_index(self, *args)
4820 def evaluate_indexes(self, *args):
4822 evaluate_indexes(QuadScore self, Model m, IMP::kernel::ParticleIndexQuads const & o, DerivativeAccumulator da, unsigned int lower_bound,
4823 unsigned int upper_bound) -> double
4825 return _IMP_kernel.QuadScore_evaluate_indexes(self, *args)
4827 def evaluate_if_good_index(self, *args):
4828 """evaluate_if_good_index(QuadScore self, Model m, IMP::kernel::ParticleIndexQuad const & vt, DerivativeAccumulator da, double max) -> double"""
4829 return _IMP_kernel.QuadScore_evaluate_if_good_index(self, *args)
4831 def evaluate_if_good_indexes(self, *args):
4833 evaluate_if_good_indexes(QuadScore self, Model m, IMP::kernel::ParticleIndexQuads const & o, DerivativeAccumulator da, double max,
4834 unsigned int lower_bound, unsigned int upper_bound) -> double
4836 return _IMP_kernel.QuadScore_evaluate_if_good_indexes(self, *args)
4838 def create_current_decomposition(self, *args):
4839 """create_current_decomposition(QuadScore self, Model m, IMP::kernel::ParticleIndexQuad const & vt) -> IMP::kernel::Restraints"""
4840 return _IMP_kernel.QuadScore_create_current_decomposition(self, *args)
4842 def do_create_current_decomposition(self, *args):
4843 """do_create_current_decomposition(QuadScore self, Model m, IMP::kernel::ParticleIndexQuad const & vt) -> IMP::kernel::Restraints"""
4844 return _IMP_kernel.QuadScore_do_create_current_decomposition(self, *args)
4846 __swig_destroy__ = _IMP_kernel.delete_QuadScore
4847 __del__ =
lambda self :
None;
4849 """__str__(QuadScore self) -> std::string"""
4850 return _IMP_kernel.QuadScore___str__(self)
4853 """__repr__(QuadScore self) -> std::string"""
4854 return _IMP_kernel.QuadScore___repr__(self)
4857 return _object_cast_to_QuadScore(o)
4858 get_from = staticmethod(get_from)
4860 def get_type_name(self):
4861 return self.__class__.__name__
4862 def do_show(self, out):
4864 def get_version_info(self):
4865 if"IMP::kernel" ==
"IMP":
4866 return VersionInfo(
"python",
"0")
4868 return IMP.VersionInfo(
"python",
"0")
4870 return _object_cast_to_QuadScore(o)
4871 get_from = staticmethod(get_from)
4873 def __disown__(self):
4875 _IMP_kernel.disown_QuadScore(self)
4876 return weakref_proxy(self)
4877 def do_get_inputs(self, *args):
4878 """do_get_inputs(QuadScore self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4879 return _IMP_kernel.QuadScore_do_get_inputs(self, *args)
4881 QuadScore_swigregister = _IMP_kernel.QuadScore_swigregister
4882 QuadScore_swigregister(QuadScore)
4885 """Proxy of C++ IMP::kernel::QuadPredicate class"""
4886 __swig_setmethods__ = {}
4887 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
4888 __setattr__ =
lambda self, name, value: _swig_setattr(self, QuadPredicate, name, value)
4889 __swig_getmethods__ = {}
4890 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
4891 __getattr__ =
lambda self, name: _swig_getattr(self, QuadPredicate, name)
4892 def __init__(self, name="QuadPredicate %1%"):
4894 __init__(IMP::kernel::QuadPredicate self, std::string name="QuadPredicate %1%") -> QuadPredicate
4895 __init__(IMP::kernel::QuadPredicate self) -> QuadPredicate
4897 if self.__class__ == QuadPredicate:
4901 this = _IMP_kernel.new_QuadPredicate(_self, name)
4902 try: self.this.append(this)
4903 except: self.this = this
4904 if self.__class__ != QuadPredicate:
4906 IMP.base._director_objects.register(self)
4910 def get_value(self, *args):
4912 get_value(QuadPredicate self, IMP::kernel::ParticleQuad const & vt) -> int
4913 get_value(QuadPredicate self, IMP::kernel::ParticleQuadsTemp const & o) -> IMP::Ints
4915 return _IMP_kernel.QuadPredicate_get_value(self, *args)
4917 def __call__(self, *args):
4918 """__call__(QuadPredicate self, Model m, IMP::kernel::ParticleIndexQuad const & vt) -> int"""
4919 return _IMP_kernel.QuadPredicate___call__(self, *args)
4921 def get_value_index(self, *args):
4923 get_value_index(QuadPredicate self, Model m, IMP::kernel::ParticleIndexQuad const & vt) -> int
4924 get_value_index(QuadPredicate self, Model m, IMP::kernel::ParticleIndexQuads const & o) -> IMP::Ints
4926 return _IMP_kernel.QuadPredicate_get_value_index(self, *args)
4928 __swig_destroy__ = _IMP_kernel.delete_QuadPredicate
4929 __del__ =
lambda self :
None;
4931 """__str__(QuadPredicate self) -> std::string"""
4932 return _IMP_kernel.QuadPredicate___str__(self)
4935 """__repr__(QuadPredicate self) -> std::string"""
4936 return _IMP_kernel.QuadPredicate___repr__(self)
4939 return _object_cast_to_QuadPredicate(o)
4940 get_from = staticmethod(get_from)
4942 def get_type_name(self):
4943 return self.__class__.__name__
4944 def do_show(self, out):
4946 def get_version_info(self):
4947 if"IMP::kernel" ==
"IMP":
4948 return VersionInfo(
"python",
"0")
4950 return IMP.VersionInfo(
"python",
"0")
4952 return _object_cast_to_QuadPredicate(o)
4953 get_from = staticmethod(get_from)
4955 def __disown__(self):
4957 _IMP_kernel.disown_QuadPredicate(self)
4958 return weakref_proxy(self)
4959 def do_get_inputs(self, *args):
4960 """do_get_inputs(QuadPredicate self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4961 return _IMP_kernel.QuadPredicate_do_get_inputs(self, *args)
4963 QuadPredicate_swigregister = _IMP_kernel.QuadPredicate_swigregister
4964 QuadPredicate_swigregister(QuadPredicate)
4967 """Proxy of C++ IMP::kernel::QuadContainer class"""
4968 __swig_setmethods__ = {}
4969 for _s
in [Container]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
4970 __setattr__ =
lambda self, name, value: _swig_setattr(self, QuadContainer, name, value)
4971 __swig_getmethods__ = {}
4972 for _s
in [Container]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
4973 __getattr__ =
lambda self, name: _swig_getattr(self, QuadContainer, name)
4974 def __init__(self, *args):
4976 __init__(IMP::kernel::QuadContainer self, Model m, std::string name="QuadContainer %1%") -> QuadContainer
4977 __init__(IMP::kernel::QuadContainer self, Model m) -> QuadContainer
4979 if self.__class__ == QuadContainer:
4983 this = _IMP_kernel.new_QuadContainer(_self, *args)
4984 try: self.this.append(this)
4985 except: self.this = this
4986 if self.__class__ != QuadContainer:
4988 IMP.base._director_objects.register(self)
4992 def apply_generic(self, *args):
4993 """apply_generic(QuadContainer self, QuadModifier m)"""
4994 return _IMP_kernel.QuadContainer_apply_generic(self, *args)
4996 def apply(self, *args):
4997 """apply(QuadContainer self, QuadModifier sm)"""
4998 return _IMP_kernel.QuadContainer_apply(self, *args)
5001 """get_indexes(QuadContainer self) -> IMP::kernel::ParticleIndexQuads"""
5002 return _IMP_kernel.QuadContainer_get_indexes(self)
5004 def get_range_indexes(self):
5005 """get_range_indexes(QuadContainer self) -> IMP::kernel::ParticleIndexQuads"""
5006 return _IMP_kernel.QuadContainer_get_range_indexes(self)
5008 def get(self, *args):
5010 get(QuadContainer self) -> IMP::kernel::ParticleQuadsTemp
5011 get(QuadContainer self, unsigned int i) -> IMP::kernel::ParticleQuad
5013 return _IMP_kernel.QuadContainer_get(self, *args)
5015 def get_number(self):
5016 """get_number(QuadContainer self) -> unsigned int"""
5017 return _IMP_kernel.QuadContainer_get_number(self)
5019 def get_particle_quads(self):
5020 """get_particle_quads(QuadContainer self) -> IMP::kernel::ParticleQuadsTemp"""
5021 return _IMP_kernel.QuadContainer_get_particle_quads(self)
5023 def get_contains_particle_quad(self, *args):
5024 """get_contains_particle_quad(QuadContainer self, IMP::kernel::ParticleQuad v) -> bool"""
5025 return _IMP_kernel.QuadContainer_get_contains_particle_quad(self, *args)
5027 def get_number_of_particle_quads(self):
5028 """get_number_of_particle_quads(QuadContainer self) -> unsigned int"""
5029 return _IMP_kernel.QuadContainer_get_number_of_particle_quads(self)
5031 def get_particle_quad(self, *args):
5032 """get_particle_quad(QuadContainer self, unsigned int i) -> IMP::kernel::ParticleQuad"""
5033 return _IMP_kernel.QuadContainer_get_particle_quad(self, *args)
5035 def do_apply(self, *args):
5036 """do_apply(QuadContainer self, QuadModifier sm)"""
5037 return _IMP_kernel.QuadContainer_do_apply(self, *args)
5039 def do_get_provides_access(self):
5040 """do_get_provides_access(QuadContainer self) -> bool"""
5041 return _IMP_kernel.QuadContainer_do_get_provides_access(self)
5043 __swig_destroy__ = _IMP_kernel.delete_QuadContainer
5044 __del__ =
lambda self :
None;
5046 """__str__(QuadContainer self) -> std::string"""
5047 return _IMP_kernel.QuadContainer___str__(self)
5050 """__repr__(QuadContainer self) -> std::string"""
5051 return _IMP_kernel.QuadContainer___repr__(self)
5054 return _object_cast_to_QuadContainer(o)
5055 get_from = staticmethod(get_from)
5057 def get_type_name(self):
5058 return self.__class__.__name__
5059 def do_show(self, out):
5061 def get_version_info(self):
5062 if"IMP::kernel" ==
"IMP":
5063 return VersionInfo(
"python",
"0")
5065 return IMP.VersionInfo(
"python",
"0")
5067 return _object_cast_to_QuadContainer(o)
5068 get_from = staticmethod(get_from)
5070 def __disown__(self):
5072 _IMP_kernel.disown_QuadContainer(self)
5073 return weakref_proxy(self)
5074 def do_get_inputs(self):
5075 """do_get_inputs(QuadContainer self) -> IMP::kernel::ModelObjectsTemp"""
5076 return _IMP_kernel.QuadContainer_do_get_inputs(self)
5078 def do_get_interactions(self):
5079 """do_get_interactions(QuadContainer self) -> IMP::kernel::ModelObjectsTemps"""
5080 return _IMP_kernel.QuadContainer_do_get_interactions(self)
5082 def do_before_evaluate(self):
5083 """do_before_evaluate(QuadContainer self)"""
5084 return _IMP_kernel.QuadContainer_do_before_evaluate(self)
5086 QuadContainer_swigregister = _IMP_kernel.QuadContainer_swigregister
5087 QuadContainer_swigregister(QuadContainer)
5089 class _QuadContainerAdaptor(IMP.base._InputAdaptor):
5090 """Proxy of C++ IMP::kernel::QuadContainerAdaptor class"""
5091 __swig_setmethods__ = {}
5092 for _s
in [IMP.base._InputAdaptor]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
5093 __setattr__ =
lambda self, name, value: _swig_setattr(self, _QuadContainerAdaptor, name, value)
5094 __swig_getmethods__ = {}
5095 for _s
in [IMP.base._InputAdaptor]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
5096 __getattr__ =
lambda self, name: _swig_getattr(self, _QuadContainerAdaptor, name)
5097 __repr__ = _swig_repr
5098 def __init__(self, *args):
5100 __init__(IMP::kernel::QuadContainerAdaptor self) -> _QuadContainerAdaptor
5101 __init__(IMP::kernel::QuadContainerAdaptor self, QuadContainer c) -> _QuadContainerAdaptor
5102 __init__(IMP::kernel::QuadContainerAdaptor self, IMP::kernel::ParticleQuadsTemp const & t, std::string name="QuadContainerAdaptor%1%") -> _QuadContainerAdaptor
5103 __init__(IMP::kernel::QuadContainerAdaptor self, IMP::kernel::ParticleQuadsTemp const & t) -> _QuadContainerAdaptor
5105 this = _IMP_kernel.new__QuadContainerAdaptor(*args)
5106 try: self.this.append(this)
5107 except: self.this = this
5108 __swig_destroy__ = _IMP_kernel.delete__QuadContainerAdaptor
5109 __del__ =
lambda self :
None;
5110 _QuadContainerAdaptor_swigregister = _IMP_kernel._QuadContainerAdaptor_swigregister
5111 _QuadContainerAdaptor_swigregister(_QuadContainerAdaptor)
5114 """Proxy of C++ IMP::kernel::SingletonModifier class"""
5115 __swig_setmethods__ = {}
5116 for _s
in [_ParticleInputs,_ParticleOutputs,
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
5117 __setattr__ =
lambda self, name, value: _swig_setattr(self, SingletonModifier, name, value)
5118 __swig_getmethods__ = {}
5119 for _s
in [_ParticleInputs,_ParticleOutputs,
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
5120 __getattr__ =
lambda self, name: _swig_getattr(self, SingletonModifier, name)
5121 def __init__(self, name="SingletonModifier %1%"):
5123 __init__(IMP::kernel::SingletonModifier self, std::string name="SingletonModifier %1%") -> SingletonModifier
5124 __init__(IMP::kernel::SingletonModifier self) -> SingletonModifier
5126 if self.__class__ == SingletonModifier:
5130 this = _IMP_kernel.new_SingletonModifier(_self, name)
5131 try: self.this.append(this)
5132 except: self.this = this
5133 if self.__class__ != SingletonModifier:
5135 IMP.base._director_objects.register(self)
5139 def apply(self, *args):
5140 """apply(SingletonModifier self, Particle vt)"""
5141 return _IMP_kernel.SingletonModifier_apply(self, *args)
5143 def apply_index(self, *args):
5144 """apply_index(SingletonModifier self, Model m, IMP::kernel::ParticleIndex v)"""
5145 return _IMP_kernel.SingletonModifier_apply_index(self, *args)
5147 def apply_indexes(self, *args):
5148 """apply_indexes(SingletonModifier self, Model m, IMP::kernel::ParticleIndexes const & o, unsigned int lower_bound, unsigned int upper_bound)"""
5149 return _IMP_kernel.SingletonModifier_apply_indexes(self, *args)
5152 """__str__(SingletonModifier self) -> std::string"""
5153 return _IMP_kernel.SingletonModifier___str__(self)
5156 """__repr__(SingletonModifier self) -> std::string"""
5157 return _IMP_kernel.SingletonModifier___repr__(self)
5160 return _object_cast_to_SingletonModifier(o)
5161 get_from = staticmethod(get_from)
5163 def get_type_name(self):
5164 return self.__class__.__name__
5165 def do_show(self, out):
5167 def get_version_info(self):
5168 if"IMP::kernel" ==
"IMP":
5169 return VersionInfo(
"python",
"0")
5171 return IMP.VersionInfo(
"python",
"0")
5173 return _object_cast_to_SingletonModifier(o)
5174 get_from = staticmethod(get_from)
5176 __swig_destroy__ = _IMP_kernel.delete_SingletonModifier
5177 __del__ =
lambda self :
None;
5178 def __disown__(self):
5180 _IMP_kernel.disown_SingletonModifier(self)
5181 return weakref_proxy(self)
5182 def do_get_inputs(self, *args):
5183 """do_get_inputs(SingletonModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5184 return _IMP_kernel.SingletonModifier_do_get_inputs(self, *args)
5186 def do_get_outputs(self, *args):
5187 """do_get_outputs(SingletonModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5188 return _IMP_kernel.SingletonModifier_do_get_outputs(self, *args)
5190 SingletonModifier_swigregister = _IMP_kernel.SingletonModifier_swigregister
5191 SingletonModifier_swigregister(SingletonModifier)
5194 """Proxy of C++ IMP::kernel::SingletonScore class"""
5195 __swig_setmethods__ = {}
5196 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
5197 __setattr__ =
lambda self, name, value: _swig_setattr(self, SingletonScore, name, value)
5198 __swig_getmethods__ = {}
5199 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
5200 __getattr__ =
lambda self, name: _swig_getattr(self, SingletonScore, name)
5201 def __init__(self, name="SingletonScore %1%"):
5203 __init__(IMP::kernel::SingletonScore self, std::string name="SingletonScore %1%") -> SingletonScore
5204 __init__(IMP::kernel::SingletonScore self) -> SingletonScore
5206 if self.__class__ == SingletonScore:
5210 this = _IMP_kernel.new_SingletonScore(_self, name)
5211 try: self.this.append(this)
5212 except: self.this = this
5213 if self.__class__ != SingletonScore:
5215 IMP.base._director_objects.register(self)
5219 def evaluate(self, *args):
5220 """evaluate(SingletonScore self, Particle vt, DerivativeAccumulator da) -> double"""
5221 return _IMP_kernel.SingletonScore_evaluate(self, *args)
5223 def evaluate_index(self, *args):
5224 """evaluate_index(SingletonScore self, Model m, IMP::kernel::ParticleIndex vt, DerivativeAccumulator da) -> double"""
5225 return _IMP_kernel.SingletonScore_evaluate_index(self, *args)
5227 def evaluate_indexes(self, *args):
5229 evaluate_indexes(SingletonScore self, Model m, IMP::kernel::ParticleIndexes const & o, DerivativeAccumulator da, unsigned int lower_bound,
5230 unsigned int upper_bound) -> double
5232 return _IMP_kernel.SingletonScore_evaluate_indexes(self, *args)
5234 def evaluate_if_good_index(self, *args):
5235 """evaluate_if_good_index(SingletonScore self, Model m, IMP::kernel::ParticleIndex vt, DerivativeAccumulator da, double max) -> double"""
5236 return _IMP_kernel.SingletonScore_evaluate_if_good_index(self, *args)
5238 def evaluate_if_good_indexes(self, *args):
5240 evaluate_if_good_indexes(SingletonScore self, Model m, IMP::kernel::ParticleIndexes const & o, DerivativeAccumulator da, double max,
5241 unsigned int lower_bound, unsigned int upper_bound) -> double
5243 return _IMP_kernel.SingletonScore_evaluate_if_good_indexes(self, *args)
5245 def create_current_decomposition(self, *args):
5246 """create_current_decomposition(SingletonScore self, Model m, IMP::kernel::ParticleIndex vt) -> IMP::kernel::Restraints"""
5247 return _IMP_kernel.SingletonScore_create_current_decomposition(self, *args)
5249 def do_create_current_decomposition(self, *args):
5250 """do_create_current_decomposition(SingletonScore self, Model m, IMP::kernel::ParticleIndex vt) -> IMP::kernel::Restraints"""
5251 return _IMP_kernel.SingletonScore_do_create_current_decomposition(self, *args)
5253 __swig_destroy__ = _IMP_kernel.delete_SingletonScore
5254 __del__ =
lambda self :
None;
5256 """__str__(SingletonScore self) -> std::string"""
5257 return _IMP_kernel.SingletonScore___str__(self)
5260 """__repr__(SingletonScore self) -> std::string"""
5261 return _IMP_kernel.SingletonScore___repr__(self)
5264 return _object_cast_to_SingletonScore(o)
5265 get_from = staticmethod(get_from)
5267 def get_type_name(self):
5268 return self.__class__.__name__
5269 def do_show(self, out):
5271 def get_version_info(self):
5272 if"IMP::kernel" ==
"IMP":
5273 return VersionInfo(
"python",
"0")
5275 return IMP.VersionInfo(
"python",
"0")
5277 return _object_cast_to_SingletonScore(o)
5278 get_from = staticmethod(get_from)
5280 def __disown__(self):
5282 _IMP_kernel.disown_SingletonScore(self)
5283 return weakref_proxy(self)
5284 def do_get_inputs(self, *args):
5285 """do_get_inputs(SingletonScore self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5286 return _IMP_kernel.SingletonScore_do_get_inputs(self, *args)
5288 SingletonScore_swigregister = _IMP_kernel.SingletonScore_swigregister
5289 SingletonScore_swigregister(SingletonScore)
5292 """Proxy of C++ IMP::kernel::SingletonPredicate class"""
5293 __swig_setmethods__ = {}
5294 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
5295 __setattr__ =
lambda self, name, value: _swig_setattr(self, SingletonPredicate, name, value)
5296 __swig_getmethods__ = {}
5297 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
5298 __getattr__ =
lambda self, name: _swig_getattr(self, SingletonPredicate, name)
5299 def __init__(self, name="SingletonPredicate %1%"):
5301 __init__(IMP::kernel::SingletonPredicate self, std::string name="SingletonPredicate %1%") -> SingletonPredicate
5302 __init__(IMP::kernel::SingletonPredicate self) -> SingletonPredicate
5304 if self.__class__ == SingletonPredicate:
5308 this = _IMP_kernel.new_SingletonPredicate(_self, name)
5309 try: self.this.append(this)
5310 except: self.this = this
5311 if self.__class__ != SingletonPredicate:
5313 IMP.base._director_objects.register(self)
5317 def get_value(self, *args):
5319 get_value(SingletonPredicate self, Particle vt) -> int
5320 get_value(SingletonPredicate self, IMP::kernel::ParticlesTemp const & o) -> IMP::Ints
5322 return _IMP_kernel.SingletonPredicate_get_value(self, *args)
5324 def __call__(self, *args):
5325 """__call__(SingletonPredicate self, Model m, IMP::kernel::ParticleIndex vt) -> int"""
5326 return _IMP_kernel.SingletonPredicate___call__(self, *args)
5328 def get_value_index(self, *args):
5330 get_value_index(SingletonPredicate self, Model m, IMP::kernel::ParticleIndex vt) -> int
5331 get_value_index(SingletonPredicate self, Model m, IMP::kernel::ParticleIndexes const & o) -> IMP::Ints
5333 return _IMP_kernel.SingletonPredicate_get_value_index(self, *args)
5335 __swig_destroy__ = _IMP_kernel.delete_SingletonPredicate
5336 __del__ =
lambda self :
None;
5338 """__str__(SingletonPredicate self) -> std::string"""
5339 return _IMP_kernel.SingletonPredicate___str__(self)
5342 """__repr__(SingletonPredicate self) -> std::string"""
5343 return _IMP_kernel.SingletonPredicate___repr__(self)
5346 return _object_cast_to_SingletonPredicate(o)
5347 get_from = staticmethod(get_from)
5349 def get_type_name(self):
5350 return self.__class__.__name__
5351 def do_show(self, out):
5353 def get_version_info(self):
5354 if"IMP::kernel" ==
"IMP":
5355 return VersionInfo(
"python",
"0")
5357 return IMP.VersionInfo(
"python",
"0")
5359 return _object_cast_to_SingletonPredicate(o)
5360 get_from = staticmethod(get_from)
5362 def __disown__(self):
5364 _IMP_kernel.disown_SingletonPredicate(self)
5365 return weakref_proxy(self)
5366 def do_get_inputs(self, *args):
5367 """do_get_inputs(SingletonPredicate self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5368 return _IMP_kernel.SingletonPredicate_do_get_inputs(self, *args)
5370 SingletonPredicate_swigregister = _IMP_kernel.SingletonPredicate_swigregister
5371 SingletonPredicate_swigregister(SingletonPredicate)
5374 """Proxy of C++ IMP::kernel::SingletonContainer class"""
5375 __swig_setmethods__ = {}
5376 for _s
in [Container]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
5377 __setattr__ =
lambda self, name, value: _swig_setattr(self, SingletonContainer, name, value)
5378 __swig_getmethods__ = {}
5379 for _s
in [Container]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
5380 __getattr__ =
lambda self, name: _swig_getattr(self, SingletonContainer, name)
5381 def __init__(self, *args):
5383 __init__(IMP::kernel::SingletonContainer self, Model m, std::string name="SingletonContainer %1%") -> SingletonContainer
5384 __init__(IMP::kernel::SingletonContainer self, Model m) -> SingletonContainer
5386 if self.__class__ == SingletonContainer:
5390 this = _IMP_kernel.new_SingletonContainer(_self, *args)
5391 try: self.this.append(this)
5392 except: self.this = this
5393 if self.__class__ != SingletonContainer:
5395 IMP.base._director_objects.register(self)
5399 def apply_generic(self, *args):
5400 """apply_generic(SingletonContainer self, SingletonModifier m)"""
5401 return _IMP_kernel.SingletonContainer_apply_generic(self, *args)
5403 def apply(self, *args):
5404 """apply(SingletonContainer self, SingletonModifier sm)"""
5405 return _IMP_kernel.SingletonContainer_apply(self, *args)
5408 """get_indexes(SingletonContainer self) -> IMP::kernel::ParticleIndexes"""
5409 return _IMP_kernel.SingletonContainer_get_indexes(self)
5411 def get_range_indexes(self):
5412 """get_range_indexes(SingletonContainer self) -> IMP::kernel::ParticleIndexes"""
5413 return _IMP_kernel.SingletonContainer_get_range_indexes(self)
5415 def get(self, *args):
5417 get(SingletonContainer self) -> IMP::kernel::ParticlesTemp
5418 get(SingletonContainer self, unsigned int i) -> Particle
5420 return _IMP_kernel.SingletonContainer_get(self, *args)
5422 def get_number(self):
5423 """get_number(SingletonContainer self) -> unsigned int"""
5424 return _IMP_kernel.SingletonContainer_get_number(self)
5427 """get_particles(SingletonContainer self) -> IMP::kernel::ParticlesTemp"""
5428 return _IMP_kernel.SingletonContainer_get_particles(self)
5430 def get_contains_particle(self, *args):
5431 """get_contains_particle(SingletonContainer self, Particle v) -> bool"""
5432 return _IMP_kernel.SingletonContainer_get_contains_particle(self, *args)
5434 def get_number_of_particles(self):
5435 """get_number_of_particles(SingletonContainer self) -> unsigned int"""
5436 return _IMP_kernel.SingletonContainer_get_number_of_particles(self)
5438 def get_particle(self, *args):
5439 """get_particle(SingletonContainer self, unsigned int i) -> Particle"""
5440 return _IMP_kernel.SingletonContainer_get_particle(self, *args)
5442 def do_apply(self, *args):
5443 """do_apply(SingletonContainer self, SingletonModifier sm)"""
5444 return _IMP_kernel.SingletonContainer_do_apply(self, *args)
5446 def do_get_provides_access(self):
5447 """do_get_provides_access(SingletonContainer self) -> bool"""
5448 return _IMP_kernel.SingletonContainer_do_get_provides_access(self)
5450 __swig_destroy__ = _IMP_kernel.delete_SingletonContainer
5451 __del__ =
lambda self :
None;
5453 """__str__(SingletonContainer self) -> std::string"""
5454 return _IMP_kernel.SingletonContainer___str__(self)
5457 """__repr__(SingletonContainer self) -> std::string"""
5458 return _IMP_kernel.SingletonContainer___repr__(self)
5461 return _object_cast_to_SingletonContainer(o)
5462 get_from = staticmethod(get_from)
5464 def get_type_name(self):
5465 return self.__class__.__name__
5466 def do_show(self, out):
5468 def get_version_info(self):
5469 if"IMP::kernel" ==
"IMP":
5470 return VersionInfo(
"python",
"0")
5472 return IMP.VersionInfo(
"python",
"0")
5474 return _object_cast_to_SingletonContainer(o)
5475 get_from = staticmethod(get_from)
5477 def __disown__(self):
5479 _IMP_kernel.disown_SingletonContainer(self)
5480 return weakref_proxy(self)
5481 def do_get_inputs(self):
5482 """do_get_inputs(SingletonContainer self) -> IMP::kernel::ModelObjectsTemp"""
5483 return _IMP_kernel.SingletonContainer_do_get_inputs(self)
5485 def do_get_interactions(self):
5486 """do_get_interactions(SingletonContainer self) -> IMP::kernel::ModelObjectsTemps"""
5487 return _IMP_kernel.SingletonContainer_do_get_interactions(self)
5489 def do_before_evaluate(self):
5490 """do_before_evaluate(SingletonContainer self)"""
5491 return _IMP_kernel.SingletonContainer_do_before_evaluate(self)
5493 SingletonContainer_swigregister = _IMP_kernel.SingletonContainer_swigregister
5494 SingletonContainer_swigregister(SingletonContainer)
5496 class _SingletonContainerAdaptor(IMP.base._InputAdaptor):
5497 """Proxy of C++ IMP::kernel::SingletonContainerAdaptor class"""
5498 __swig_setmethods__ = {}
5499 for _s
in [IMP.base._InputAdaptor]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
5500 __setattr__ =
lambda self, name, value: _swig_setattr(self, _SingletonContainerAdaptor, name, value)
5501 __swig_getmethods__ = {}
5502 for _s
in [IMP.base._InputAdaptor]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
5503 __getattr__ =
lambda self, name: _swig_getattr(self, _SingletonContainerAdaptor, name)
5504 __repr__ = _swig_repr
5505 def __init__(self, *args):
5507 __init__(IMP::kernel::SingletonContainerAdaptor self) -> _SingletonContainerAdaptor
5508 __init__(IMP::kernel::SingletonContainerAdaptor self, SingletonContainer c) -> _SingletonContainerAdaptor
5509 __init__(IMP::kernel::SingletonContainerAdaptor self, IMP::kernel::ParticlesTemp const & t, std::string name="SingletonContainerAdaptor%1%") -> _SingletonContainerAdaptor
5510 __init__(IMP::kernel::SingletonContainerAdaptor self, IMP::kernel::ParticlesTemp const & t) -> _SingletonContainerAdaptor
5512 this = _IMP_kernel.new__SingletonContainerAdaptor(*args)
5513 try: self.this.append(this)
5514 except: self.this = this
5515 __swig_destroy__ = _IMP_kernel.delete__SingletonContainerAdaptor
5516 __del__ =
lambda self :
None;
5517 _SingletonContainerAdaptor_swigregister = _IMP_kernel._SingletonContainerAdaptor_swigregister
5518 _SingletonContainerAdaptor_swigregister(_SingletonContainerAdaptor)
5521 """Proxy of C++ IMP::kernel::TripletModifier class"""
5522 __swig_setmethods__ = {}
5523 for _s
in [_ParticleInputs,_ParticleOutputs,
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
5524 __setattr__ =
lambda self, name, value: _swig_setattr(self, TripletModifier, name, value)
5525 __swig_getmethods__ = {}
5526 for _s
in [_ParticleInputs,_ParticleOutputs,
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
5527 __getattr__ =
lambda self, name: _swig_getattr(self, TripletModifier, name)
5528 def __init__(self, name="TripletModifier %1%"):
5530 __init__(IMP::kernel::TripletModifier self, std::string name="TripletModifier %1%") -> TripletModifier
5531 __init__(IMP::kernel::TripletModifier self) -> TripletModifier
5533 if self.__class__ == TripletModifier:
5537 this = _IMP_kernel.new_TripletModifier(_self, name)
5538 try: self.this.append(this)
5539 except: self.this = this
5540 if self.__class__ != TripletModifier:
5542 IMP.base._director_objects.register(self)
5546 def apply(self, *args):
5547 """apply(TripletModifier self, IMP::kernel::ParticleTriplet const & vt)"""
5548 return _IMP_kernel.TripletModifier_apply(self, *args)
5550 def apply_index(self, *args):
5551 """apply_index(TripletModifier self, Model m, IMP::kernel::ParticleIndexTriplet const & v)"""
5552 return _IMP_kernel.TripletModifier_apply_index(self, *args)
5554 def apply_indexes(self, *args):
5556 apply_indexes(TripletModifier self, Model m, IMP::kernel::ParticleIndexTriplets const & o, unsigned int lower_bound,
5557 unsigned int upper_bound)
5559 return _IMP_kernel.TripletModifier_apply_indexes(self, *args)
5562 """__str__(TripletModifier self) -> std::string"""
5563 return _IMP_kernel.TripletModifier___str__(self)
5566 """__repr__(TripletModifier self) -> std::string"""
5567 return _IMP_kernel.TripletModifier___repr__(self)
5570 return _object_cast_to_TripletModifier(o)
5571 get_from = staticmethod(get_from)
5573 def get_type_name(self):
5574 return self.__class__.__name__
5575 def do_show(self, out):
5577 def get_version_info(self):
5578 if"IMP::kernel" ==
"IMP":
5579 return VersionInfo(
"python",
"0")
5581 return IMP.VersionInfo(
"python",
"0")
5583 return _object_cast_to_TripletModifier(o)
5584 get_from = staticmethod(get_from)
5586 __swig_destroy__ = _IMP_kernel.delete_TripletModifier
5587 __del__ =
lambda self :
None;
5588 def __disown__(self):
5590 _IMP_kernel.disown_TripletModifier(self)
5591 return weakref_proxy(self)
5592 def do_get_inputs(self, *args):
5593 """do_get_inputs(TripletModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5594 return _IMP_kernel.TripletModifier_do_get_inputs(self, *args)
5596 def do_get_outputs(self, *args):
5597 """do_get_outputs(TripletModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5598 return _IMP_kernel.TripletModifier_do_get_outputs(self, *args)
5600 TripletModifier_swigregister = _IMP_kernel.TripletModifier_swigregister
5601 TripletModifier_swigregister(TripletModifier)
5604 """Proxy of C++ IMP::kernel::TripletScore class"""
5605 __swig_setmethods__ = {}
5606 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
5607 __setattr__ =
lambda self, name, value: _swig_setattr(self, TripletScore, name, value)
5608 __swig_getmethods__ = {}
5609 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
5610 __getattr__ =
lambda self, name: _swig_getattr(self, TripletScore, name)
5611 def __init__(self, name="TripletScore %1%"):
5613 __init__(IMP::kernel::TripletScore self, std::string name="TripletScore %1%") -> TripletScore
5614 __init__(IMP::kernel::TripletScore self) -> TripletScore
5616 if self.__class__ == TripletScore:
5620 this = _IMP_kernel.new_TripletScore(_self, name)
5621 try: self.this.append(this)
5622 except: self.this = this
5623 if self.__class__ != TripletScore:
5625 IMP.base._director_objects.register(self)
5629 def evaluate(self, *args):
5630 """evaluate(TripletScore self, IMP::kernel::ParticleTriplet const & vt, DerivativeAccumulator da) -> double"""
5631 return _IMP_kernel.TripletScore_evaluate(self, *args)
5633 def evaluate_index(self, *args):
5634 """evaluate_index(TripletScore self, Model m, IMP::kernel::ParticleIndexTriplet const & vt, DerivativeAccumulator da) -> double"""
5635 return _IMP_kernel.TripletScore_evaluate_index(self, *args)
5637 def evaluate_indexes(self, *args):
5639 evaluate_indexes(TripletScore self, Model m, IMP::kernel::ParticleIndexTriplets const & o, DerivativeAccumulator da,
5640 unsigned int lower_bound, unsigned int upper_bound) -> double
5642 return _IMP_kernel.TripletScore_evaluate_indexes(self, *args)
5644 def evaluate_if_good_index(self, *args):
5646 evaluate_if_good_index(TripletScore self, Model m, IMP::kernel::ParticleIndexTriplet const & vt, DerivativeAccumulator da,
5647 double max) -> double
5649 return _IMP_kernel.TripletScore_evaluate_if_good_index(self, *args)
5651 def evaluate_if_good_indexes(self, *args):
5653 evaluate_if_good_indexes(TripletScore self, Model m, IMP::kernel::ParticleIndexTriplets const & o, DerivativeAccumulator da,
5654 double max, unsigned int lower_bound, unsigned int upper_bound) -> double
5656 return _IMP_kernel.TripletScore_evaluate_if_good_indexes(self, *args)
5658 def create_current_decomposition(self, *args):
5659 """create_current_decomposition(TripletScore self, Model m, IMP::kernel::ParticleIndexTriplet const & vt) -> IMP::kernel::Restraints"""
5660 return _IMP_kernel.TripletScore_create_current_decomposition(self, *args)
5662 def do_create_current_decomposition(self, *args):
5663 """do_create_current_decomposition(TripletScore self, Model m, IMP::kernel::ParticleIndexTriplet const & vt) -> IMP::kernel::Restraints"""
5664 return _IMP_kernel.TripletScore_do_create_current_decomposition(self, *args)
5666 __swig_destroy__ = _IMP_kernel.delete_TripletScore
5667 __del__ =
lambda self :
None;
5669 """__str__(TripletScore self) -> std::string"""
5670 return _IMP_kernel.TripletScore___str__(self)
5673 """__repr__(TripletScore self) -> std::string"""
5674 return _IMP_kernel.TripletScore___repr__(self)
5677 return _object_cast_to_TripletScore(o)
5678 get_from = staticmethod(get_from)
5680 def get_type_name(self):
5681 return self.__class__.__name__
5682 def do_show(self, out):
5684 def get_version_info(self):
5685 if"IMP::kernel" ==
"IMP":
5686 return VersionInfo(
"python",
"0")
5688 return IMP.VersionInfo(
"python",
"0")
5690 return _object_cast_to_TripletScore(o)
5691 get_from = staticmethod(get_from)
5693 def __disown__(self):
5695 _IMP_kernel.disown_TripletScore(self)
5696 return weakref_proxy(self)
5697 def do_get_inputs(self, *args):
5698 """do_get_inputs(TripletScore self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5699 return _IMP_kernel.TripletScore_do_get_inputs(self, *args)
5701 TripletScore_swigregister = _IMP_kernel.TripletScore_swigregister
5702 TripletScore_swigregister(TripletScore)
5705 """Proxy of C++ IMP::kernel::TripletPredicate class"""
5706 __swig_setmethods__ = {}
5707 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
5708 __setattr__ =
lambda self, name, value: _swig_setattr(self, TripletPredicate, name, value)
5709 __swig_getmethods__ = {}
5710 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
5711 __getattr__ =
lambda self, name: _swig_getattr(self, TripletPredicate, name)
5712 def __init__(self, name="TripletPredicate %1%"):
5714 __init__(IMP::kernel::TripletPredicate self, std::string name="TripletPredicate %1%") -> TripletPredicate
5715 __init__(IMP::kernel::TripletPredicate self) -> TripletPredicate
5717 if self.__class__ == TripletPredicate:
5721 this = _IMP_kernel.new_TripletPredicate(_self, name)
5722 try: self.this.append(this)
5723 except: self.this = this
5724 if self.__class__ != TripletPredicate:
5726 IMP.base._director_objects.register(self)
5730 def get_value(self, *args):
5732 get_value(TripletPredicate self, IMP::kernel::ParticleTriplet const & vt) -> int
5733 get_value(TripletPredicate self, IMP::kernel::ParticleTripletsTemp const & o) -> IMP::Ints
5735 return _IMP_kernel.TripletPredicate_get_value(self, *args)
5737 def __call__(self, *args):
5738 """__call__(TripletPredicate self, Model m, IMP::kernel::ParticleIndexTriplet const & vt) -> int"""
5739 return _IMP_kernel.TripletPredicate___call__(self, *args)
5741 def get_value_index(self, *args):
5743 get_value_index(TripletPredicate self, Model m, IMP::kernel::ParticleIndexTriplet const & vt) -> int
5744 get_value_index(TripletPredicate self, Model m, IMP::kernel::ParticleIndexTriplets const & o) -> IMP::Ints
5746 return _IMP_kernel.TripletPredicate_get_value_index(self, *args)
5748 __swig_destroy__ = _IMP_kernel.delete_TripletPredicate
5749 __del__ =
lambda self :
None;
5751 """__str__(TripletPredicate self) -> std::string"""
5752 return _IMP_kernel.TripletPredicate___str__(self)
5755 """__repr__(TripletPredicate self) -> std::string"""
5756 return _IMP_kernel.TripletPredicate___repr__(self)
5759 return _object_cast_to_TripletPredicate(o)
5760 get_from = staticmethod(get_from)
5762 def get_type_name(self):
5763 return self.__class__.__name__
5764 def do_show(self, out):
5766 def get_version_info(self):
5767 if"IMP::kernel" ==
"IMP":
5768 return VersionInfo(
"python",
"0")
5770 return IMP.VersionInfo(
"python",
"0")
5772 return _object_cast_to_TripletPredicate(o)
5773 get_from = staticmethod(get_from)
5775 def __disown__(self):
5777 _IMP_kernel.disown_TripletPredicate(self)
5778 return weakref_proxy(self)
5779 def do_get_inputs(self, *args):
5780 """do_get_inputs(TripletPredicate self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5781 return _IMP_kernel.TripletPredicate_do_get_inputs(self, *args)
5783 TripletPredicate_swigregister = _IMP_kernel.TripletPredicate_swigregister
5784 TripletPredicate_swigregister(TripletPredicate)
5787 """Proxy of C++ IMP::kernel::TripletContainer class"""
5788 __swig_setmethods__ = {}
5789 for _s
in [Container]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
5790 __setattr__ =
lambda self, name, value: _swig_setattr(self, TripletContainer, name, value)
5791 __swig_getmethods__ = {}
5792 for _s
in [Container]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
5793 __getattr__ =
lambda self, name: _swig_getattr(self, TripletContainer, name)
5794 def __init__(self, *args):
5796 __init__(IMP::kernel::TripletContainer self, Model m, std::string name="TripletContainer %1%") -> TripletContainer
5797 __init__(IMP::kernel::TripletContainer self, Model m) -> TripletContainer
5799 if self.__class__ == TripletContainer:
5803 this = _IMP_kernel.new_TripletContainer(_self, *args)
5804 try: self.this.append(this)
5805 except: self.this = this
5806 if self.__class__ != TripletContainer:
5808 IMP.base._director_objects.register(self)
5812 def apply_generic(self, *args):
5813 """apply_generic(TripletContainer self, TripletModifier m)"""
5814 return _IMP_kernel.TripletContainer_apply_generic(self, *args)
5816 def apply(self, *args):
5817 """apply(TripletContainer self, TripletModifier sm)"""
5818 return _IMP_kernel.TripletContainer_apply(self, *args)
5821 """get_indexes(TripletContainer self) -> IMP::kernel::ParticleIndexTriplets"""
5822 return _IMP_kernel.TripletContainer_get_indexes(self)
5824 def get_range_indexes(self):
5825 """get_range_indexes(TripletContainer self) -> IMP::kernel::ParticleIndexTriplets"""
5826 return _IMP_kernel.TripletContainer_get_range_indexes(self)
5828 def get(self, *args):
5830 get(TripletContainer self) -> IMP::kernel::ParticleTripletsTemp
5831 get(TripletContainer self, unsigned int i) -> IMP::kernel::ParticleTriplet
5833 return _IMP_kernel.TripletContainer_get(self, *args)
5835 def get_number(self):
5836 """get_number(TripletContainer self) -> unsigned int"""
5837 return _IMP_kernel.TripletContainer_get_number(self)
5839 def get_particle_triplets(self):
5840 """get_particle_triplets(TripletContainer self) -> IMP::kernel::ParticleTripletsTemp"""
5841 return _IMP_kernel.TripletContainer_get_particle_triplets(self)
5843 def get_contains_particle_triplet(self, *args):
5844 """get_contains_particle_triplet(TripletContainer self, IMP::kernel::ParticleTriplet v) -> bool"""
5845 return _IMP_kernel.TripletContainer_get_contains_particle_triplet(self, *args)
5847 def get_number_of_particle_triplets(self):
5848 """get_number_of_particle_triplets(TripletContainer self) -> unsigned int"""
5849 return _IMP_kernel.TripletContainer_get_number_of_particle_triplets(self)
5851 def get_particle_triplet(self, *args):
5852 """get_particle_triplet(TripletContainer self, unsigned int i) -> IMP::kernel::ParticleTriplet"""
5853 return _IMP_kernel.TripletContainer_get_particle_triplet(self, *args)
5855 def do_apply(self, *args):
5856 """do_apply(TripletContainer self, TripletModifier sm)"""
5857 return _IMP_kernel.TripletContainer_do_apply(self, *args)
5859 def do_get_provides_access(self):
5860 """do_get_provides_access(TripletContainer self) -> bool"""
5861 return _IMP_kernel.TripletContainer_do_get_provides_access(self)
5863 __swig_destroy__ = _IMP_kernel.delete_TripletContainer
5864 __del__ =
lambda self :
None;
5866 """__str__(TripletContainer self) -> std::string"""
5867 return _IMP_kernel.TripletContainer___str__(self)
5870 """__repr__(TripletContainer self) -> std::string"""
5871 return _IMP_kernel.TripletContainer___repr__(self)
5874 return _object_cast_to_TripletContainer(o)
5875 get_from = staticmethod(get_from)
5877 def get_type_name(self):
5878 return self.__class__.__name__
5879 def do_show(self, out):
5881 def get_version_info(self):
5882 if"IMP::kernel" ==
"IMP":
5883 return VersionInfo(
"python",
"0")
5885 return IMP.VersionInfo(
"python",
"0")
5887 return _object_cast_to_TripletContainer(o)
5888 get_from = staticmethod(get_from)
5890 def __disown__(self):
5892 _IMP_kernel.disown_TripletContainer(self)
5893 return weakref_proxy(self)
5894 def do_get_inputs(self):
5895 """do_get_inputs(TripletContainer self) -> IMP::kernel::ModelObjectsTemp"""
5896 return _IMP_kernel.TripletContainer_do_get_inputs(self)
5898 def do_get_interactions(self):
5899 """do_get_interactions(TripletContainer self) -> IMP::kernel::ModelObjectsTemps"""
5900 return _IMP_kernel.TripletContainer_do_get_interactions(self)
5902 def do_before_evaluate(self):
5903 """do_before_evaluate(TripletContainer self)"""
5904 return _IMP_kernel.TripletContainer_do_before_evaluate(self)
5906 TripletContainer_swigregister = _IMP_kernel.TripletContainer_swigregister
5907 TripletContainer_swigregister(TripletContainer)
5909 class _TripletContainerAdaptor(IMP.base._InputAdaptor):
5910 """Proxy of C++ IMP::kernel::TripletContainerAdaptor class"""
5911 __swig_setmethods__ = {}
5912 for _s
in [IMP.base._InputAdaptor]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
5913 __setattr__ =
lambda self, name, value: _swig_setattr(self, _TripletContainerAdaptor, name, value)
5914 __swig_getmethods__ = {}
5915 for _s
in [IMP.base._InputAdaptor]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
5916 __getattr__ =
lambda self, name: _swig_getattr(self, _TripletContainerAdaptor, name)
5917 __repr__ = _swig_repr
5918 def __init__(self, *args):
5920 __init__(IMP::kernel::TripletContainerAdaptor self) -> _TripletContainerAdaptor
5921 __init__(IMP::kernel::TripletContainerAdaptor self, TripletContainer c) -> _TripletContainerAdaptor
5922 __init__(IMP::kernel::TripletContainerAdaptor self, IMP::kernel::ParticleTripletsTemp const & t, std::string name="TripletContainerAdaptor%1%") -> _TripletContainerAdaptor
5923 __init__(IMP::kernel::TripletContainerAdaptor self, IMP::kernel::ParticleTripletsTemp const & t) -> _TripletContainerAdaptor
5925 this = _IMP_kernel.new__TripletContainerAdaptor(*args)
5926 try: self.this.append(this)
5927 except: self.this = this
5928 __swig_destroy__ = _IMP_kernel.delete__TripletContainerAdaptor
5929 __del__ =
lambda self :
None;
5930 _TripletContainerAdaptor_swigregister = _IMP_kernel._TripletContainerAdaptor_swigregister
5931 _TripletContainerAdaptor_swigregister(_TripletContainerAdaptor)
5935 """write_particles_to_buffer(IMP::kernel::ParticlesTemp const & particles, IMP::kernel::FloatKeys const & keys) -> IMP::base::Vector< char >"""
5936 return _IMP_kernel.write_particles_to_buffer(*args)
5940 read_particles_from_buffer(IMP::base::Vector< char > const & buffer, IMP::kernel::ParticlesTemp const & particles,
5941 IMP::kernel::FloatKeys const & keys)
5943 return _IMP_kernel.read_particles_from_buffer(*args)
5946 """get_particles(Model m, IMP::kernel::ParticleIndexes const & ps) -> IMP::kernel::ParticlesTemp"""
5947 return _IMP_kernel.get_particles(*args)
5951 get_indexes(IMP::kernel::ParticlesTemp const & ps) -> IMP::kernel::ParticleIndexes
5952 get_indexes(IMP::kernel::ParticlePairsTemp const & ps) -> IMP::kernel::ParticleIndexPairs
5954 return _IMP_kernel.get_indexes(*args)
5955 class _ParticleIndexAdaptor(_object):
5956 """Proxy of C++ IMP::kernel::ParticleIndexAdaptor class"""
5957 __swig_setmethods__ = {}
5958 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ParticleIndexAdaptor, name, value)
5959 __swig_getmethods__ = {}
5960 __getattr__ =
lambda self, name: _swig_getattr(self, _ParticleIndexAdaptor, name)
5961 __repr__ = _swig_repr
5962 def __init__(self, *args):
5964 __init__(IMP::kernel::ParticleIndexAdaptor self, Particle p) -> _ParticleIndexAdaptor
5965 __init__(IMP::kernel::ParticleIndexAdaptor self, IMP::kernel::ParticleIndex pi) -> _ParticleIndexAdaptor
5966 __init__(IMP::kernel::ParticleIndexAdaptor self, Decorator d) -> _ParticleIndexAdaptor
5968 this = _IMP_kernel.new__ParticleIndexAdaptor(*args)
5969 try: self.this.append(this)
5970 except: self.this = this
5971 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexAdaptor
5972 __del__ =
lambda self :
None;
5973 _ParticleIndexAdaptor_swigregister = _IMP_kernel._ParticleIndexAdaptor_swigregister
5974 _ParticleIndexAdaptor_swigregister(_ParticleIndexAdaptor)
5976 class _ParticleIndexesAdaptor(IMP.base._InputAdaptor):
5977 """Proxy of C++ IMP::kernel::ParticleIndexesAdaptor class"""
5978 __swig_setmethods__ = {}
5979 for _s
in [IMP.base._InputAdaptor]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
5980 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ParticleIndexesAdaptor, name, value)
5981 __swig_getmethods__ = {}
5982 for _s
in [IMP.base._InputAdaptor]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
5983 __getattr__ =
lambda self, name: _swig_getattr(self, _ParticleIndexesAdaptor, name)
5984 __repr__ = _swig_repr
5985 def __init__(self, *args):
5987 __init__(IMP::kernel::ParticleIndexesAdaptor self, IMP::kernel::ParticlesTemp const & ps) -> _ParticleIndexesAdaptor
5988 __init__(IMP::kernel::ParticleIndexesAdaptor self, IMP::kernel::ParticleIndexes const & pi) -> _ParticleIndexesAdaptor
5989 __init__(IMP::kernel::ParticleIndexesAdaptor self) -> _ParticleIndexesAdaptor
5991 this = _IMP_kernel.new__ParticleIndexesAdaptor(*args)
5992 try: self.this.append(this)
5993 except: self.this = this
5994 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexesAdaptor
5995 __del__ =
lambda self :
None;
5996 _ParticleIndexesAdaptor_swigregister = _IMP_kernel._ParticleIndexesAdaptor_swigregister
5997 _ParticleIndexesAdaptor_swigregister(_ParticleIndexesAdaptor)
5999 class _ParticleIndexPairsAdaptor(_object):
6000 """Proxy of C++ IMP::kernel::ParticleIndexPairsAdaptor class"""
6001 __swig_setmethods__ = {}
6002 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ParticleIndexPairsAdaptor, name, value)
6003 __swig_getmethods__ = {}
6004 __getattr__ =
lambda self, name: _swig_getattr(self, _ParticleIndexPairsAdaptor, name)
6005 __repr__ = _swig_repr
6006 def __init__(self, *args):
6008 __init__(IMP::kernel::ParticleIndexPairsAdaptor self, IMP::kernel::ParticlePairsTemp const & ps) -> _ParticleIndexPairsAdaptor
6009 __init__(IMP::kernel::ParticleIndexPairsAdaptor self, IMP::kernel::ParticleIndexPairs const & pi) -> _ParticleIndexPairsAdaptor
6010 __init__(IMP::kernel::ParticleIndexPairsAdaptor self) -> _ParticleIndexPairsAdaptor
6012 this = _IMP_kernel.new__ParticleIndexPairsAdaptor(*args)
6013 try: self.this.append(this)
6014 except: self.this = this
6015 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexPairsAdaptor
6016 __del__ =
lambda self :
None;
6017 _ParticleIndexPairsAdaptor_swigregister = _IMP_kernel._ParticleIndexPairsAdaptor_swigregister
6018 _ParticleIndexPairsAdaptor_swigregister(_ParticleIndexPairsAdaptor)
6021 """Proxy of C++ IMP::kernel::internal::_ConstRestraint class"""
6022 __swig_setmethods__ = {}
6023 for _s
in [Restraint]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
6024 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ConstRestraint, name, value)
6025 __swig_getmethods__ = {}
6026 for _s
in [Restraint]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
6027 __getattr__ =
lambda self, name: _swig_getattr(self, _ConstRestraint, name)
6028 def __init__(self, *args):
6030 __init__(IMP::kernel::internal::_ConstRestraint self, double v, IMP::kernel::ParticlesTemp const ps) -> _ConstRestraint
6031 __init__(IMP::kernel::internal::_ConstRestraint self, double v) -> _ConstRestraint
6032 __init__(IMP::kernel::internal::_ConstRestraint self, Model m, IMP::kernel::ParticleIndexes const & pis, double v) -> _ConstRestraint
6034 this = _IMP_kernel.new__ConstRestraint(*args)
6035 try: self.this.append(this)
6036 except: self.this = this
6037 def get_value(self):
6038 """get_value(_ConstRestraint self) -> double"""
6039 return _IMP_kernel._ConstRestraint_get_value(self)
6041 def do_create_decomposition(self):
6042 """do_create_decomposition(_ConstRestraint self) -> IMP::kernel::Restraints"""
6043 return _IMP_kernel._ConstRestraint_do_create_decomposition(self)
6045 def do_get_inputs(self):
6046 """do_get_inputs(_ConstRestraint self) -> IMP::kernel::ModelObjectsTemp"""
6047 return _IMP_kernel._ConstRestraint_do_get_inputs(self)
6049 def get_version_info(self):
6050 """get_version_info(_ConstRestraint self) -> VersionInfo"""
6051 return _IMP_kernel._ConstRestraint_get_version_info(self)
6053 __swig_destroy__ = _IMP_kernel.delete__ConstRestraint
6054 __del__ =
lambda self :
None;
6056 """__str__(_ConstRestraint self) -> std::string"""
6057 return _IMP_kernel._ConstRestraint___str__(self)
6060 """__repr__(_ConstRestraint self) -> std::string"""
6061 return _IMP_kernel._ConstRestraint___repr__(self)
6064 return _object_cast_to__ConstRestraint(o)
6065 get_from = staticmethod(get_from)
6067 _ConstRestraint_swigregister = _IMP_kernel._ConstRestraint_swigregister
6068 _ConstRestraint_swigregister(_ConstRestraint)
6071 """Proxy of C++ IMP::kernel::internal::_ConstSingletonScore class"""
6072 __swig_setmethods__ = {}
6073 for _s
in [SingletonScore]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
6074 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ConstSingletonScore, name, value)
6075 __swig_getmethods__ = {}
6076 for _s
in [SingletonScore]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
6077 __getattr__ =
lambda self, name: _swig_getattr(self, _ConstSingletonScore, name)
6078 __repr__ = _swig_repr
6079 def __init__(self, *args):
6080 """__init__(IMP::kernel::internal::_ConstSingletonScore self, double v) -> _ConstSingletonScore"""
6081 this = _IMP_kernel.new__ConstSingletonScore(*args)
6082 try: self.this.append(this)
6083 except: self.this = this
6084 def do_get_inputs(self, *args):
6085 """do_get_inputs(_ConstSingletonScore self, Model arg2, IMP::kernel::ParticleIndexes const & arg3) -> IMP::kernel::ModelObjectsTemp"""
6086 return _IMP_kernel._ConstSingletonScore_do_get_inputs(self, *args)
6088 def get_version_info(self):
6089 """get_version_info(_ConstSingletonScore self) -> VersionInfo"""
6090 return _IMP_kernel._ConstSingletonScore_get_version_info(self)
6092 __swig_destroy__ = _IMP_kernel.delete__ConstSingletonScore
6093 __del__ =
lambda self :
None;
6094 _ConstSingletonScore_swigregister = _IMP_kernel._ConstSingletonScore_swigregister
6095 _ConstSingletonScore_swigregister(_ConstSingletonScore)
6098 """Proxy of C++ IMP::kernel::internal::_ConstPairScore class"""
6099 __swig_setmethods__ = {}
6100 for _s
in [PairScore]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
6101 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ConstPairScore, name, value)
6102 __swig_getmethods__ = {}
6103 for _s
in [PairScore]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
6104 __getattr__ =
lambda self, name: _swig_getattr(self, _ConstPairScore, name)
6105 __repr__ = _swig_repr
6106 def __init__(self, *args):
6107 """__init__(IMP::kernel::internal::_ConstPairScore self, double v) -> _ConstPairScore"""
6108 this = _IMP_kernel.new__ConstPairScore(*args)
6109 try: self.this.append(this)
6110 except: self.this = this
6111 def do_get_inputs(self, *args):
6112 """do_get_inputs(_ConstPairScore self, Model arg2, IMP::kernel::ParticleIndexes const & arg3) -> IMP::kernel::ModelObjectsTemp"""
6113 return _IMP_kernel._ConstPairScore_do_get_inputs(self, *args)
6115 def get_version_info(self):
6116 """get_version_info(_ConstPairScore self) -> VersionInfo"""
6117 return _IMP_kernel._ConstPairScore_get_version_info(self)
6119 __swig_destroy__ = _IMP_kernel.delete__ConstPairScore
6120 __del__ =
lambda self :
None;
6121 _ConstPairScore_swigregister = _IMP_kernel._ConstPairScore_swigregister
6122 _ConstPairScore_swigregister(_ConstPairScore)
6125 """Proxy of C++ IMP::kernel::internal::_TrivialDecorator class"""
6126 __swig_setmethods__ = {}
6127 for _s
in [Decorator]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
6128 __setattr__ =
lambda self, name, value: _swig_setattr(self, _TrivialDecorator, name, value)
6129 __swig_getmethods__ = {}
6130 for _s
in [Decorator]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
6131 __getattr__ =
lambda self, name: _swig_getattr(self, _TrivialDecorator, name)
6132 def __init__(self, *args):
6134 __init__(IMP::kernel::internal::_TrivialDecorator self) -> _TrivialDecorator
6135 __init__(IMP::kernel::internal::_TrivialDecorator self, Model m, ::IMP::kernel::ParticleIndex id) -> _TrivialDecorator
6136 __init__(IMP::kernel::internal::_TrivialDecorator self, _ParticleAdaptor d) -> _TrivialDecorator
6138 this = _IMP_kernel.new__TrivialDecorator(*args)
6139 try: self.this.append(this)
6140 except: self.this = this
6141 def decorate_particle(*args):
6142 """decorate_particle(Particle p) -> _TrivialDecorator"""
6143 return _IMP_kernel._TrivialDecorator_decorate_particle(*args)
6145 if _newclass:decorate_particle = staticmethod(decorate_particle)
6146 __swig_getmethods__[
"decorate_particle"] =
lambda x: decorate_particle
6147 def particle_is_instance(*args):
6149 particle_is_instance(Particle p) -> bool
6150 particle_is_instance(Model m, IMP::kernel::ParticleIndex pi) -> bool
6152 return _IMP_kernel._TrivialDecorator_particle_is_instance(*args)
6154 if _newclass:particle_is_instance = staticmethod(particle_is_instance)
6155 __swig_getmethods__[
"particle_is_instance"] =
lambda x: particle_is_instance
6156 def show(self, *args):
6158 show(_TrivialDecorator self, _ostream out=std::cout)
6159 show(_TrivialDecorator self)
6161 return _IMP_kernel._TrivialDecorator_show(self, *args)
6163 def setup_particle(*args):
6165 setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> _TrivialDecorator
6166 setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
6168 return _IMP_kernel._TrivialDecorator_setup_particle(*args)
6170 if _newclass:setup_particle = staticmethod(setup_particle)
6171 __swig_getmethods__[
"setup_particle"] =
lambda x: setup_particle
6172 def get_is_setup(*args):
6174 get_is_setup(_ParticleAdaptor p) -> bool
6175 get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
6177 return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
6179 if _newclass:get_is_setup = staticmethod(get_is_setup)
6180 __swig_getmethods__[
"get_is_setup"] =
lambda x: get_is_setup
6181 def add_attribute(self, *args):
6183 add_attribute(_TrivialDecorator self, FloatKey k, IMP::Float v, bool opt)
6184 add_attribute(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
6185 add_attribute(_TrivialDecorator self, IntKey a0, IMP::Int a1)
6186 add_attribute(_TrivialDecorator self, StringKey a0, IMP::String a1)
6187 add_attribute(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
6188 add_attribute(_TrivialDecorator self, ObjectKey a0, IMP::Object * a1)
6190 return _IMP_kernel._TrivialDecorator_add_attribute(self, *args)
6192 def get_value(self, *args):
6194 get_value(_TrivialDecorator self, FloatKey a0) -> IMP::Float
6195 get_value(_TrivialDecorator self, IntKey a0) -> IMP::Int
6196 get_value(_TrivialDecorator self, StringKey a0) -> IMP::String
6197 get_value(_TrivialDecorator self, ParticleIndexKey a0) -> Particle
6198 get_value(_TrivialDecorator self, ObjectKey a0) -> IMP::Object *
6200 return _IMP_kernel._TrivialDecorator_get_value(self, *args)
6202 def set_value(self, *args):
6204 set_value(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
6205 set_value(_TrivialDecorator self, IntKey a0, IMP::Int a1)
6206 set_value(_TrivialDecorator self, StringKey a0, IMP::String a1)
6207 set_value(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
6208 set_value(_TrivialDecorator self, ObjectKey a0, IMP::Object * a1)
6210 return _IMP_kernel._TrivialDecorator_set_value(self, *args)
6212 def remove_attribute(self, *args):
6214 remove_attribute(_TrivialDecorator self, FloatKey a0)
6215 remove_attribute(_TrivialDecorator self, IntKey a0)
6216 remove_attribute(_TrivialDecorator self, StringKey a0)
6217 remove_attribute(_TrivialDecorator self, ParticleIndexKey a0)
6218 remove_attribute(_TrivialDecorator self, ObjectKey a0)
6220 return _IMP_kernel._TrivialDecorator_remove_attribute(self, *args)
6222 def has_attribute(self, *args):
6224 has_attribute(_TrivialDecorator self, FloatKey a0) -> bool
6225 has_attribute(_TrivialDecorator self, IntKey a0) -> bool
6226 has_attribute(_TrivialDecorator self, StringKey a0) -> bool
6227 has_attribute(_TrivialDecorator self, ParticleIndexKey a0) -> bool
6228 has_attribute(_TrivialDecorator self, ObjectKey a0) -> bool
6230 return _IMP_kernel._TrivialDecorator_has_attribute(self, *args)
6232 def get_derivative(self, *args):
6233 """get_derivative(_TrivialDecorator self, FloatKey a0) -> double"""
6234 return _IMP_kernel._TrivialDecorator_get_derivative(self, *args)
6237 """get_name(_TrivialDecorator self) -> std::string"""
6238 return _IMP_kernel._TrivialDecorator_get_name(self)
6240 def clear_caches(self):
6241 """clear_caches(_TrivialDecorator self)"""
6242 return _IMP_kernel._TrivialDecorator_clear_caches(self)
6244 def set_name(self, *args):
6245 """set_name(_TrivialDecorator self, std::string a0)"""
6246 return _IMP_kernel._TrivialDecorator_set_name(self, *args)
6249 """set_check_level(_TrivialDecorator self, IMP::base::CheckLevel a0)"""
6250 return _IMP_kernel._TrivialDecorator_set_check_level(self, *args)
6252 def add_to_derivative(self, *args):
6253 """add_to_derivative(_TrivialDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6254 return _IMP_kernel._TrivialDecorator_add_to_derivative(self, *args)
6256 def set_is_optimized(self, *args):
6257 """set_is_optimized(_TrivialDecorator self, FloatKey a0, bool a1)"""
6258 return _IMP_kernel._TrivialDecorator_set_is_optimized(self, *args)
6260 def get_is_optimized(self, *args):
6261 """get_is_optimized(_TrivialDecorator self, FloatKey a0) -> bool"""
6262 return _IMP_kernel._TrivialDecorator_get_is_optimized(self, *args)
6265 """get_check_level(_TrivialDecorator self) -> IMP::base::CheckLevel"""
6266 return _IMP_kernel._TrivialDecorator_get_check_level(self)
6268 def __eq__(self, *args):
6270 __eq__(_TrivialDecorator self, _TrivialDecorator o) -> bool
6271 __eq__(_TrivialDecorator self, Particle d) -> bool
6273 return _IMP_kernel._TrivialDecorator___eq__(self, *args)
6275 def __ne__(self, *args):
6277 __ne__(_TrivialDecorator self, _TrivialDecorator o) -> bool
6278 __ne__(_TrivialDecorator self, Particle d) -> bool
6280 return _IMP_kernel._TrivialDecorator___ne__(self, *args)
6282 def __le__(self, *args):
6284 __le__(_TrivialDecorator self, _TrivialDecorator o) -> bool
6285 __le__(_TrivialDecorator self, Particle d) -> bool
6287 return _IMP_kernel._TrivialDecorator___le__(self, *args)
6289 def __lt__(self, *args):
6291 __lt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
6292 __lt__(_TrivialDecorator self, Particle d) -> bool
6294 return _IMP_kernel._TrivialDecorator___lt__(self, *args)
6296 def __ge__(self, *args):
6298 __ge__(_TrivialDecorator self, _TrivialDecorator o) -> bool
6299 __ge__(_TrivialDecorator self, Particle d) -> bool
6301 return _IMP_kernel._TrivialDecorator___ge__(self, *args)
6303 def __gt__(self, *args):
6305 __gt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
6306 __gt__(_TrivialDecorator self, Particle d) -> bool
6308 return _IMP_kernel._TrivialDecorator___gt__(self, *args)
6311 """__str__(_TrivialDecorator self) -> std::string"""
6312 return _IMP_kernel._TrivialDecorator___str__(self)
6315 """__repr__(_TrivialDecorator self) -> std::string"""
6316 return _IMP_kernel._TrivialDecorator___repr__(self)
6318 __swig_destroy__ = _IMP_kernel.delete__TrivialDecorator
6319 __del__ =
lambda self :
None;
6320 _TrivialDecorator_swigregister = _IMP_kernel._TrivialDecorator_swigregister
6321 _TrivialDecorator_swigregister(_TrivialDecorator)
6323 def _TrivialDecorator_decorate_particle(*args):
6324 """_TrivialDecorator_decorate_particle(Particle p) -> _TrivialDecorator"""
6325 return _IMP_kernel._TrivialDecorator_decorate_particle(*args)
6327 def _TrivialDecorator_particle_is_instance(*args):
6329 particle_is_instance(Particle p) -> bool
6330 _TrivialDecorator_particle_is_instance(Model m, IMP::kernel::ParticleIndex pi) -> bool
6332 return _IMP_kernel._TrivialDecorator_particle_is_instance(*args)
6334 def _TrivialDecorator_setup_particle(*args):
6336 setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> _TrivialDecorator
6337 _TrivialDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
6339 return _IMP_kernel._TrivialDecorator_setup_particle(*args)
6341 def _TrivialDecorator_get_is_setup(*args):
6343 get_is_setup(_ParticleAdaptor p) -> bool
6344 _TrivialDecorator_get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
6346 return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
6348 class _TrivialDerivedDecorator(_TrivialDecorator):
6349 """Proxy of C++ IMP::kernel::internal::_TrivialDerivedDecorator class"""
6350 __swig_setmethods__ = {}
6351 for _s
in [_TrivialDecorator]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
6352 __setattr__ =
lambda self, name, value: _swig_setattr(self, _TrivialDerivedDecorator, name, value)
6353 __swig_getmethods__ = {}
6354 for _s
in [_TrivialDecorator]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
6355 __getattr__ =
lambda self, name: _swig_getattr(self, _TrivialDerivedDecorator, name)
6356 def __init__(self, *args):
6358 __init__(IMP::kernel::internal::_TrivialDerivedDecorator self) -> _TrivialDerivedDecorator
6359 __init__(IMP::kernel::internal::_TrivialDerivedDecorator self, Model m, ::IMP::kernel::ParticleIndex id) -> _TrivialDerivedDecorator
6360 __init__(IMP::kernel::internal::_TrivialDerivedDecorator self, _ParticleAdaptor d) -> _TrivialDerivedDecorator
6362 this = _IMP_kernel.new__TrivialDerivedDecorator(*args)
6363 try: self.this.append(this)
6364 except: self.this = this
6365 def decorate_particle(*args):
6366 """decorate_particle(Particle p) -> _TrivialDerivedDecorator"""
6367 return _IMP_kernel._TrivialDerivedDecorator_decorate_particle(*args)
6369 if _newclass:decorate_particle = staticmethod(decorate_particle)
6370 __swig_getmethods__[
"decorate_particle"] =
lambda x: decorate_particle
6371 def particle_is_instance(*args):
6373 particle_is_instance(Particle p) -> bool
6374 particle_is_instance(Model m, IMP::kernel::ParticleIndex pi) -> bool
6376 return _IMP_kernel._TrivialDerivedDecorator_particle_is_instance(*args)
6378 if _newclass:particle_is_instance = staticmethod(particle_is_instance)
6379 __swig_getmethods__[
"particle_is_instance"] =
lambda x: particle_is_instance
6380 def show(self, *args):
6382 show(_TrivialDerivedDecorator self, _ostream out=std::cout)
6383 show(_TrivialDerivedDecorator self)
6385 return _IMP_kernel._TrivialDerivedDecorator_show(self, *args)
6387 def setup_particle(*args):
6389 setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> _TrivialDerivedDecorator
6390 setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
6392 return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
6394 if _newclass:setup_particle = staticmethod(setup_particle)
6395 __swig_getmethods__[
"setup_particle"] =
lambda x: setup_particle
6396 def get_is_setup(*args):
6398 get_is_setup(_ParticleAdaptor p) -> bool
6399 get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
6401 return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
6403 if _newclass:get_is_setup = staticmethod(get_is_setup)
6404 __swig_getmethods__[
"get_is_setup"] =
lambda x: get_is_setup
6405 def add_attribute(self, *args):
6407 add_attribute(_TrivialDerivedDecorator self, FloatKey k, IMP::Float v, bool opt)
6408 add_attribute(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
6409 add_attribute(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
6410 add_attribute(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
6411 add_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
6412 add_attribute(_TrivialDerivedDecorator self, ObjectKey a0, IMP::Object * a1)
6414 return _IMP_kernel._TrivialDerivedDecorator_add_attribute(self, *args)
6416 def get_value(self, *args):
6418 get_value(_TrivialDerivedDecorator self, FloatKey a0) -> IMP::Float
6419 get_value(_TrivialDerivedDecorator self, IntKey a0) -> IMP::Int
6420 get_value(_TrivialDerivedDecorator self, StringKey a0) -> IMP::String
6421 get_value(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> Particle
6422 get_value(_TrivialDerivedDecorator self, ObjectKey a0) -> IMP::Object *
6424 return _IMP_kernel._TrivialDerivedDecorator_get_value(self, *args)
6426 def set_value(self, *args):
6428 set_value(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
6429 set_value(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
6430 set_value(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
6431 set_value(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
6432 set_value(_TrivialDerivedDecorator self, ObjectKey a0, IMP::Object * a1)
6434 return _IMP_kernel._TrivialDerivedDecorator_set_value(self, *args)
6436 def remove_attribute(self, *args):
6438 remove_attribute(_TrivialDerivedDecorator self, FloatKey a0)
6439 remove_attribute(_TrivialDerivedDecorator self, IntKey a0)
6440 remove_attribute(_TrivialDerivedDecorator self, StringKey a0)
6441 remove_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0)
6442 remove_attribute(_TrivialDerivedDecorator self, ObjectKey a0)
6444 return _IMP_kernel._TrivialDerivedDecorator_remove_attribute(self, *args)
6446 def has_attribute(self, *args):
6448 has_attribute(_TrivialDerivedDecorator self, FloatKey a0) -> bool
6449 has_attribute(_TrivialDerivedDecorator self, IntKey a0) -> bool
6450 has_attribute(_TrivialDerivedDecorator self, StringKey a0) -> bool
6451 has_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> bool
6452 has_attribute(_TrivialDerivedDecorator self, ObjectKey a0) -> bool
6454 return _IMP_kernel._TrivialDerivedDecorator_has_attribute(self, *args)
6456 def get_derivative(self, *args):
6457 """get_derivative(_TrivialDerivedDecorator self, FloatKey a0) -> double"""
6458 return _IMP_kernel._TrivialDerivedDecorator_get_derivative(self, *args)
6461 """get_name(_TrivialDerivedDecorator self) -> std::string"""
6462 return _IMP_kernel._TrivialDerivedDecorator_get_name(self)
6464 def clear_caches(self):
6465 """clear_caches(_TrivialDerivedDecorator self)"""
6466 return _IMP_kernel._TrivialDerivedDecorator_clear_caches(self)
6468 def set_name(self, *args):
6469 """set_name(_TrivialDerivedDecorator self, std::string a0)"""
6470 return _IMP_kernel._TrivialDerivedDecorator_set_name(self, *args)
6473 """set_check_level(_TrivialDerivedDecorator self, IMP::base::CheckLevel a0)"""
6474 return _IMP_kernel._TrivialDerivedDecorator_set_check_level(self, *args)
6476 def add_to_derivative(self, *args):
6477 """add_to_derivative(_TrivialDerivedDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6478 return _IMP_kernel._TrivialDerivedDecorator_add_to_derivative(self, *args)
6480 def set_is_optimized(self, *args):
6481 """set_is_optimized(_TrivialDerivedDecorator self, FloatKey a0, bool a1)"""
6482 return _IMP_kernel._TrivialDerivedDecorator_set_is_optimized(self, *args)
6484 def get_is_optimized(self, *args):
6485 """get_is_optimized(_TrivialDerivedDecorator self, FloatKey a0) -> bool"""
6486 return _IMP_kernel._TrivialDerivedDecorator_get_is_optimized(self, *args)
6489 """get_check_level(_TrivialDerivedDecorator self) -> IMP::base::CheckLevel"""
6490 return _IMP_kernel._TrivialDerivedDecorator_get_check_level(self)
6492 def __eq__(self, *args):
6494 __eq__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
6495 __eq__(_TrivialDerivedDecorator self, Particle d) -> bool
6497 return _IMP_kernel._TrivialDerivedDecorator___eq__(self, *args)
6499 def __ne__(self, *args):
6501 __ne__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
6502 __ne__(_TrivialDerivedDecorator self, Particle d) -> bool
6504 return _IMP_kernel._TrivialDerivedDecorator___ne__(self, *args)
6506 def __le__(self, *args):
6508 __le__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
6509 __le__(_TrivialDerivedDecorator self, Particle d) -> bool
6511 return _IMP_kernel._TrivialDerivedDecorator___le__(self, *args)
6513 def __lt__(self, *args):
6515 __lt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
6516 __lt__(_TrivialDerivedDecorator self, Particle d) -> bool
6518 return _IMP_kernel._TrivialDerivedDecorator___lt__(self, *args)
6520 def __ge__(self, *args):
6522 __ge__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
6523 __ge__(_TrivialDerivedDecorator self, Particle d) -> bool
6525 return _IMP_kernel._TrivialDerivedDecorator___ge__(self, *args)
6527 def __gt__(self, *args):
6529 __gt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
6530 __gt__(_TrivialDerivedDecorator self, Particle d) -> bool
6532 return _IMP_kernel._TrivialDerivedDecorator___gt__(self, *args)
6535 """__str__(_TrivialDerivedDecorator self) -> std::string"""
6536 return _IMP_kernel._TrivialDerivedDecorator___str__(self)
6539 """__repr__(_TrivialDerivedDecorator self) -> std::string"""
6540 return _IMP_kernel._TrivialDerivedDecorator___repr__(self)
6542 __swig_destroy__ = _IMP_kernel.delete__TrivialDerivedDecorator
6543 __del__ =
lambda self :
None;
6544 _TrivialDerivedDecorator_swigregister = _IMP_kernel._TrivialDerivedDecorator_swigregister
6545 _TrivialDerivedDecorator_swigregister(_TrivialDerivedDecorator)
6547 def _TrivialDerivedDecorator_decorate_particle(*args):
6548 """_TrivialDerivedDecorator_decorate_particle(Particle p) -> _TrivialDerivedDecorator"""
6549 return _IMP_kernel._TrivialDerivedDecorator_decorate_particle(*args)
6551 def _TrivialDerivedDecorator_particle_is_instance(*args):
6553 particle_is_instance(Particle p) -> bool
6554 _TrivialDerivedDecorator_particle_is_instance(Model m, IMP::kernel::ParticleIndex pi) -> bool
6556 return _IMP_kernel._TrivialDerivedDecorator_particle_is_instance(*args)
6558 def _TrivialDerivedDecorator_setup_particle(*args):
6560 setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> _TrivialDerivedDecorator
6561 _TrivialDerivedDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
6563 return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
6565 def _TrivialDerivedDecorator_get_is_setup(*args):
6567 get_is_setup(_ParticleAdaptor p) -> bool
6568 _TrivialDerivedDecorator_get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
6570 return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
6572 class _TrivialTraitsDecorator(
Decorator):
6573 """Proxy of C++ IMP::kernel::internal::_TrivialTraitsDecorator class"""
6574 __swig_setmethods__ = {}
6575 for _s
in [Decorator]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
6576 __setattr__ =
lambda self, name, value: _swig_setattr(self, _TrivialTraitsDecorator, name, value)
6577 __swig_getmethods__ = {}
6578 for _s
in [Decorator]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
6579 __getattr__ =
lambda self, name: _swig_getattr(self, _TrivialTraitsDecorator, name)
6580 def get_decorator_traits(self):
6581 """get_decorator_traits(_TrivialTraitsDecorator self) -> StringKey"""
6582 return _IMP_kernel._TrivialTraitsDecorator_get_decorator_traits(self)
6584 def get_default_decorator_traits():
6585 """get_default_decorator_traits() -> StringKey"""
6586 return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
6588 if _newclass:get_default_decorator_traits = staticmethod(get_default_decorator_traits)
6589 __swig_getmethods__[
"get_default_decorator_traits"] =
lambda x: get_default_decorator_traits
6590 def __init__(self, *args):
6592 __init__(IMP::kernel::internal::_TrivialTraitsDecorator self) -> _TrivialTraitsDecorator
6593 __init__(IMP::kernel::internal::_TrivialTraitsDecorator self, Model m, ::IMP::kernel::ParticleIndex id, StringKey tr=get_default_key()) -> _TrivialTraitsDecorator
6594 __init__(IMP::kernel::internal::_TrivialTraitsDecorator self, Model m, ::IMP::kernel::ParticleIndex id) -> _TrivialTraitsDecorator
6595 __init__(IMP::kernel::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d, StringKey tr=get_default_key()) -> _TrivialTraitsDecorator
6596 __init__(IMP::kernel::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d) -> _TrivialTraitsDecorator
6598 this = _IMP_kernel.new__TrivialTraitsDecorator(*args)
6599 try: self.this.append(this)
6600 except: self.this = this
6601 def decorate_particle(*args):
6603 decorate_particle(Particle p, StringKey tr=get_default_key()) -> _TrivialTraitsDecorator
6604 decorate_particle(Particle p) -> _TrivialTraitsDecorator
6606 return _IMP_kernel._TrivialTraitsDecorator_decorate_particle(*args)
6608 if _newclass:decorate_particle = staticmethod(decorate_particle)
6609 __swig_getmethods__[
"decorate_particle"] =
lambda x: decorate_particle
6610 def particle_is_instance(*args):
6612 particle_is_instance(Particle p, StringKey tr=get_default_key()) -> bool
6613 particle_is_instance(Particle p) -> bool
6614 particle_is_instance(Model m, IMP::kernel::ParticleIndex pi, StringKey tr=get_default_key()) -> bool
6615 particle_is_instance(Model m, IMP::kernel::ParticleIndex pi) -> bool
6617 return _IMP_kernel._TrivialTraitsDecorator_particle_is_instance(*args)
6619 if _newclass:particle_is_instance = staticmethod(particle_is_instance)
6620 __swig_getmethods__[
"particle_is_instance"] =
lambda x: particle_is_instance
6621 def show(self, *args):
6623 show(_TrivialTraitsDecorator self, _ostream out=std::cout)
6624 show(_TrivialTraitsDecorator self)
6626 return _IMP_kernel._TrivialTraitsDecorator_show(self, *args)
6628 def setup_particle(*args):
6630 setup_particle(Model m, IMP::kernel::ParticleIndex pi, StringKey tr=IMP::kernel::internal::_TrivialTraitsDecorator::get_default_decorator_traits()) -> _TrivialTraitsDecorator
6631 setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> _TrivialTraitsDecorator
6632 setup_particle(_ParticleAdaptor d, StringKey tr=IMP::kernel::internal::_TrivialTraitsDecorator::get_default_decorator_traits()) -> _TrivialTraitsDecorator
6633 setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
6635 return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
6637 if _newclass:setup_particle = staticmethod(setup_particle)
6638 __swig_getmethods__[
"setup_particle"] =
lambda x: setup_particle
6639 def get_is_setup(*args):
6641 get_is_setup(_ParticleAdaptor p, StringKey tr=get_default_key()) -> bool
6642 get_is_setup(_ParticleAdaptor p) -> bool
6643 get_is_setup(Model m, IMP::kernel::ParticleIndex pi, StringKey k=get_default_key()) -> bool
6644 get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
6646 return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
6648 if _newclass:get_is_setup = staticmethod(get_is_setup)
6649 __swig_getmethods__[
"get_is_setup"] =
lambda x: get_is_setup
6650 def get_default_key():
6651 """get_default_key() -> StringKey"""
6652 return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
6654 if _newclass:get_default_key = staticmethod(get_default_key)
6655 __swig_getmethods__[
"get_default_key"] =
lambda x: get_default_key
6656 def add_attribute(self, *args):
6658 add_attribute(_TrivialTraitsDecorator self, FloatKey k, IMP::Float v, bool opt)
6659 add_attribute(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
6660 add_attribute(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
6661 add_attribute(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
6662 add_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
6663 add_attribute(_TrivialTraitsDecorator self, ObjectKey a0, IMP::Object * a1)
6665 return _IMP_kernel._TrivialTraitsDecorator_add_attribute(self, *args)
6667 def get_value(self, *args):
6669 get_value(_TrivialTraitsDecorator self, FloatKey a0) -> IMP::Float
6670 get_value(_TrivialTraitsDecorator self, IntKey a0) -> IMP::Int
6671 get_value(_TrivialTraitsDecorator self, StringKey a0) -> IMP::String
6672 get_value(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> Particle
6673 get_value(_TrivialTraitsDecorator self, ObjectKey a0) -> IMP::Object *
6675 return _IMP_kernel._TrivialTraitsDecorator_get_value(self, *args)
6677 def set_value(self, *args):
6679 set_value(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
6680 set_value(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
6681 set_value(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
6682 set_value(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
6683 set_value(_TrivialTraitsDecorator self, ObjectKey a0, IMP::Object * a1)
6685 return _IMP_kernel._TrivialTraitsDecorator_set_value(self, *args)
6687 def remove_attribute(self, *args):
6689 remove_attribute(_TrivialTraitsDecorator self, FloatKey a0)
6690 remove_attribute(_TrivialTraitsDecorator self, IntKey a0)
6691 remove_attribute(_TrivialTraitsDecorator self, StringKey a0)
6692 remove_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0)
6693 remove_attribute(_TrivialTraitsDecorator self, ObjectKey a0)
6695 return _IMP_kernel._TrivialTraitsDecorator_remove_attribute(self, *args)
6697 def has_attribute(self, *args):
6699 has_attribute(_TrivialTraitsDecorator self, FloatKey a0) -> bool
6700 has_attribute(_TrivialTraitsDecorator self, IntKey a0) -> bool
6701 has_attribute(_TrivialTraitsDecorator self, StringKey a0) -> bool
6702 has_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> bool
6703 has_attribute(_TrivialTraitsDecorator self, ObjectKey a0) -> bool
6705 return _IMP_kernel._TrivialTraitsDecorator_has_attribute(self, *args)
6707 def get_derivative(self, *args):
6708 """get_derivative(_TrivialTraitsDecorator self, FloatKey a0) -> double"""
6709 return _IMP_kernel._TrivialTraitsDecorator_get_derivative(self, *args)
6712 """get_name(_TrivialTraitsDecorator self) -> std::string"""
6713 return _IMP_kernel._TrivialTraitsDecorator_get_name(self)
6715 def clear_caches(self):
6716 """clear_caches(_TrivialTraitsDecorator self)"""
6717 return _IMP_kernel._TrivialTraitsDecorator_clear_caches(self)
6719 def set_name(self, *args):
6720 """set_name(_TrivialTraitsDecorator self, std::string a0)"""
6721 return _IMP_kernel._TrivialTraitsDecorator_set_name(self, *args)
6724 """set_check_level(_TrivialTraitsDecorator self, IMP::base::CheckLevel a0)"""
6725 return _IMP_kernel._TrivialTraitsDecorator_set_check_level(self, *args)
6727 def add_to_derivative(self, *args):
6728 """add_to_derivative(_TrivialTraitsDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6729 return _IMP_kernel._TrivialTraitsDecorator_add_to_derivative(self, *args)
6731 def set_is_optimized(self, *args):
6732 """set_is_optimized(_TrivialTraitsDecorator self, FloatKey a0, bool a1)"""
6733 return _IMP_kernel._TrivialTraitsDecorator_set_is_optimized(self, *args)
6735 def get_is_optimized(self, *args):
6736 """get_is_optimized(_TrivialTraitsDecorator self, FloatKey a0) -> bool"""
6737 return _IMP_kernel._TrivialTraitsDecorator_get_is_optimized(self, *args)
6740 """get_check_level(_TrivialTraitsDecorator self) -> IMP::base::CheckLevel"""
6741 return _IMP_kernel._TrivialTraitsDecorator_get_check_level(self)
6743 def __eq__(self, *args):
6745 __eq__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
6746 __eq__(_TrivialTraitsDecorator self, Particle d) -> bool
6748 return _IMP_kernel._TrivialTraitsDecorator___eq__(self, *args)
6750 def __ne__(self, *args):
6752 __ne__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
6753 __ne__(_TrivialTraitsDecorator self, Particle d) -> bool
6755 return _IMP_kernel._TrivialTraitsDecorator___ne__(self, *args)
6757 def __le__(self, *args):
6759 __le__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
6760 __le__(_TrivialTraitsDecorator self, Particle d) -> bool
6762 return _IMP_kernel._TrivialTraitsDecorator___le__(self, *args)
6764 def __lt__(self, *args):
6766 __lt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
6767 __lt__(_TrivialTraitsDecorator self, Particle d) -> bool
6769 return _IMP_kernel._TrivialTraitsDecorator___lt__(self, *args)
6771 def __ge__(self, *args):
6773 __ge__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
6774 __ge__(_TrivialTraitsDecorator self, Particle d) -> bool
6776 return _IMP_kernel._TrivialTraitsDecorator___ge__(self, *args)
6778 def __gt__(self, *args):
6780 __gt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
6781 __gt__(_TrivialTraitsDecorator self, Particle d) -> bool
6783 return _IMP_kernel._TrivialTraitsDecorator___gt__(self, *args)
6786 """__str__(_TrivialTraitsDecorator self) -> std::string"""
6787 return _IMP_kernel._TrivialTraitsDecorator___str__(self)
6790 """__repr__(_TrivialTraitsDecorator self) -> std::string"""
6791 return _IMP_kernel._TrivialTraitsDecorator___repr__(self)
6793 __swig_destroy__ = _IMP_kernel.delete__TrivialTraitsDecorator
6794 __del__ =
lambda self :
None;
6795 _TrivialTraitsDecorator_swigregister = _IMP_kernel._TrivialTraitsDecorator_swigregister
6796 _TrivialTraitsDecorator_swigregister(_TrivialTraitsDecorator)
6798 def _TrivialTraitsDecorator_get_default_decorator_traits():
6799 """_TrivialTraitsDecorator_get_default_decorator_traits() -> StringKey"""
6800 return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
6802 def _TrivialTraitsDecorator_decorate_particle(*args):
6804 decorate_particle(Particle p, StringKey tr=get_default_key()) -> _TrivialTraitsDecorator
6805 _TrivialTraitsDecorator_decorate_particle(Particle p) -> _TrivialTraitsDecorator
6807 return _IMP_kernel._TrivialTraitsDecorator_decorate_particle(*args)
6809 def _TrivialTraitsDecorator_particle_is_instance(*args):
6811 particle_is_instance(Particle p, StringKey tr=get_default_key()) -> bool
6812 particle_is_instance(Particle p) -> bool
6813 particle_is_instance(Model m, IMP::kernel::ParticleIndex pi, StringKey tr=get_default_key()) -> bool
6814 _TrivialTraitsDecorator_particle_is_instance(Model m, IMP::kernel::ParticleIndex pi) -> bool
6816 return _IMP_kernel._TrivialTraitsDecorator_particle_is_instance(*args)
6818 def _TrivialTraitsDecorator_setup_particle(*args):
6820 setup_particle(Model m, IMP::kernel::ParticleIndex pi, StringKey tr=IMP::kernel::internal::_TrivialTraitsDecorator::get_default_decorator_traits()) -> _TrivialTraitsDecorator
6821 setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> _TrivialTraitsDecorator
6822 setup_particle(_ParticleAdaptor d, StringKey tr=IMP::kernel::internal::_TrivialTraitsDecorator::get_default_decorator_traits()) -> _TrivialTraitsDecorator
6823 _TrivialTraitsDecorator_setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
6825 return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
6827 def _TrivialTraitsDecorator_get_is_setup(*args):
6829 get_is_setup(_ParticleAdaptor p, StringKey tr=get_default_key()) -> bool
6830 get_is_setup(_ParticleAdaptor p) -> bool
6831 get_is_setup(Model m, IMP::kernel::ParticleIndex pi, StringKey k=get_default_key()) -> bool
6832 _TrivialTraitsDecorator_get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
6834 return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
6836 def _TrivialTraitsDecorator_get_default_key():
6837 """_TrivialTraitsDecorator_get_default_key() -> StringKey"""
6838 return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
6841 def __lshift__(*args):
6843 __lshift__(_ostream out, _TrivialDecorator n) -> _ostream
6844 __lshift__(_ostream out, _TrivialDerivedDecorator n) -> _ostream
6845 __lshift__(_ostream out, _TrivialTraitsDecorator n) -> _ostream
6847 return _IMP_kernel.__lshift__(*args)
6849 """Proxy of C++ IMP::kernel::internal::_ConstOptimizer class"""
6850 __swig_setmethods__ = {}
6851 for _s
in [Optimizer]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
6852 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ConstOptimizer, name, value)
6853 __swig_getmethods__ = {}
6854 for _s
in [Optimizer]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
6855 __getattr__ =
lambda self, name: _swig_getattr(self, _ConstOptimizer, name)
6856 def __init__(self, *args):
6857 """__init__(IMP::kernel::internal::_ConstOptimizer self, Model m) -> _ConstOptimizer"""
6858 this = _IMP_kernel.new__ConstOptimizer(*args)
6859 try: self.this.append(this)
6860 except: self.this = this
6861 def do_optimize(self, *args):
6862 """do_optimize(_ConstOptimizer self, unsigned int max_steps) -> IMP::Float"""
6863 return _IMP_kernel._ConstOptimizer_do_optimize(self, *args)
6865 def get_version_info(self):
6866 """get_version_info(_ConstOptimizer self) -> VersionInfo"""
6867 return _IMP_kernel._ConstOptimizer_get_version_info(self)
6869 __swig_destroy__ = _IMP_kernel.delete__ConstOptimizer
6870 __del__ =
lambda self :
None;
6872 """__str__(_ConstOptimizer self) -> std::string"""
6873 return _IMP_kernel._ConstOptimizer___str__(self)
6876 """__repr__(_ConstOptimizer self) -> std::string"""
6877 return _IMP_kernel._ConstOptimizer___repr__(self)
6880 return _object_cast_to__ConstOptimizer(o)
6881 get_from = staticmethod(get_from)
6883 _ConstOptimizer_swigregister = _IMP_kernel._ConstOptimizer_swigregister
6884 _ConstOptimizer_swigregister(_ConstOptimizer)
6887 def get_particle(*args):
6888 """get_particle(Particle p) -> Particle"""
6889 return _IMP_kernel.get_particle(*args)
6891 def _decorator_test(*args):
6892 """_decorator_test(Particle p)"""
6893 return _IMP_kernel._decorator_test(*args)
6895 def _overloaded_decorator(*args):
6897 _overloaded_decorator(_TrivialDecorator a) -> int
6898 _overloaded_decorator(_TrivialDerivedDecorator a) -> int
6900 return _IMP_kernel._overloaded_decorator(*args)
6902 def _take_particles(*args):
6904 _take_particles(IMP::kernel::Particles const & ps) -> unsigned int
6905 _take_particles(Model m, IMP::kernel::Particles const & ps) -> unsigned int
6906 _take_particles(Model m, IMP::kernel::Particles const & ps, TextOutput out) -> unsigned int
6908 return _IMP_kernel._take_particles(*args)
6910 def _give_particles(*args):
6911 """_give_particles(Model m) -> IMP::kernel::Particles const &"""
6912 return _IMP_kernel._give_particles(*args)
6914 def _pass_particles(*args):
6915 """_pass_particles(IMP::kernel::Particles const & ps) -> IMP::kernel::Particles const &"""
6916 return _IMP_kernel._pass_particles(*args)
6918 def _pass_particle(*args):
6919 """_pass_particle(Particle ps) -> Particle"""
6920 return _IMP_kernel._pass_particle(*args)
6922 def _pass_particle_pair(*args):
6923 """_pass_particle_pair(IMP::kernel::ParticlePair const & pp) -> IMP::kernel::ParticlePair const &"""
6924 return _IMP_kernel._pass_particle_pair(*args)
6926 def _give_particles_copy(*args):
6927 """_give_particles_copy(Model m) -> IMP::kernel::Particles"""
6928 return _IMP_kernel._give_particles_copy(*args)
6930 def _pass_float_keys(*args):
6931 """_pass_float_keys(IMP::kernel::FloatKeys const & input) -> IMP::kernel::FloatKeys"""
6932 return _IMP_kernel._pass_float_keys(*args)
6936 _pass(IMP::kernel::Particles const & p) -> IMP::kernel::Particles const
6937 _pass(IMP::kernel::Restraints const & p) -> IMP::kernel::Restraints const &
6939 return _IMP_kernel._pass(*args)
6941 def _pass_decorators(*args):
6942 """_pass_decorators(IMP::kernel::internal::_TrivialDecorators const & p) -> IMP::kernel::internal::_TrivialDecorators const &"""
6943 return _IMP_kernel._pass_decorators(*args)
6945 def _pass_decorator_traits(*args):
6946 """_pass_decorator_traits(IMP::kernel::internal::_TrivialTraitsDecorators const & p) -> IMP::kernel::internal::_TrivialTraitsDecorators const &"""
6947 return _IMP_kernel._pass_decorator_traits(*args)
6949 def _pass_particle_pairs(*args):
6950 """_pass_particle_pairs(IMP::kernel::ParticlePairsTemp const & p) -> IMP::kernel::ParticlePairsTemp"""
6951 return _IMP_kernel._pass_particle_pairs(*args)
6953 def _pass_particle_index_pairs(*args):
6954 """_pass_particle_index_pairs(IMP::kernel::ParticleIndexPairs const & p) -> IMP::kernel::ParticleIndexPairs"""
6955 return _IMP_kernel._pass_particle_index_pairs(*args)
6957 def _pass_model_objects(*args):
6958 """_pass_model_objects(IMP::kernel::ModelObjectsTemp const & p) -> IMP::kernel::ModelObjectsTemp"""
6959 return _IMP_kernel._pass_model_objects(*args)
6961 def _pass_particles_temps(*args):
6962 """_pass_particles_temps(IMP::kernel::ParticlesTemps const & ps) -> IMP::kernel::ParticlesTemps"""
6963 return _IMP_kernel._pass_particles_temps(*args)
6965 def _test_overload(*args):
6967 _test_overload(IMP::kernel::Particles const & ps) -> int
6968 _test_overload(IMP::kernel::Restraints const & ps) -> int
6970 return _IMP_kernel._test_overload(*args)
6972 def _get_range(*args):
6973 """_get_range(Model m, FloatKey k) -> IMP::FloatRange"""
6974 return _IMP_kernel._get_range(*args)
6976 def _create_particles_from_pdb(*args):
6977 """_create_particles_from_pdb(std::string name, Model m) -> IMP::kernel::ParticlesTemp"""
6978 return _IMP_kernel._create_particles_from_pdb(*args)
6980 """Proxy of C++ IMP::kernel::internal::_LogPairScore class"""
6981 __swig_setmethods__ = {}
6982 for _s
in [PairScore]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
6983 __setattr__ =
lambda self, name, value: _swig_setattr(self, _LogPairScore, name, value)
6984 __swig_getmethods__ = {}
6985 for _s
in [PairScore]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
6986 __getattr__ =
lambda self, name: _swig_getattr(self, _LogPairScore, name)
6987 __repr__ = _swig_repr
6989 """__init__(IMP::kernel::internal::_LogPairScore self) -> _LogPairScore"""
6990 this = _IMP_kernel.new__LogPairScore()
6991 try: self.this.append(this)
6992 except: self.this = this
6993 def do_get_inputs(self, *args):
6994 """do_get_inputs(_LogPairScore self, Model arg2, IMP::kernel::ParticleIndexes const & arg3) -> IMP::kernel::ModelObjectsTemp"""
6995 return _IMP_kernel._LogPairScore_do_get_inputs(self, *args)
6997 def get_version_info(self):
6998 """get_version_info(_LogPairScore self) -> VersionInfo"""
6999 return _IMP_kernel._LogPairScore_get_version_info(self)
7001 __swig_destroy__ = _IMP_kernel.delete__LogPairScore
7002 __del__ =
lambda self :
None;
7003 def get_particle_pairs(self):
7004 """get_particle_pairs(_LogPairScore self) -> IMP::kernel::ParticlePairsTemp"""
7005 return _IMP_kernel._LogPairScore_get_particle_pairs(self)
7008 """clear(_LogPairScore self)"""
7009 return _IMP_kernel._LogPairScore_clear(self)
7011 def get_contains(self, *args):
7012 """get_contains(_LogPairScore self, IMP::kernel::ParticlePair const & pp) -> bool"""
7013 return _IMP_kernel._LogPairScore_get_contains(self, *args)
7015 _LogPairScore_swigregister = _IMP_kernel._LogPairScore_swigregister
7016 _LogPairScore_swigregister(_LogPairScore)
7019 def _overloaded_particles(*args):
7021 _overloaded_particles(Particle arg1)
7022 _overloaded_particles(IMP::kernel::Particles const & arg1)
7023 _overloaded_particles(IMP::kernel::ParticlesTemp const & arg1)
7024 _overloaded_particles(Model arg1, IMP::kernel::ParticleIndexes const & arg2)
7025 _overloaded_particles(IMP::kernel::internal::_TrivialDecorators const & arg1)
7026 _overloaded_particles(_TrivialDecorator arg1)
7028 return _IMP_kernel._overloaded_particles(*args)
7029 class _ImplicitParticles(_object):
7030 """Proxy of C++ IMP::kernel::internal::_ImplicitParticles class"""
7031 __swig_setmethods__ = {}
7032 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ImplicitParticles, name, value)
7033 __swig_getmethods__ = {}
7034 __getattr__ =
lambda self, name: _swig_getattr(self, _ImplicitParticles, name)
7035 __repr__ = _swig_repr
7036 def __init__(self, *args):
7038 __init__(IMP::kernel::internal::_ImplicitParticles self, Particle arg2) -> _ImplicitParticles
7039 __init__(IMP::kernel::internal::_ImplicitParticles self, IMP::kernel::Particles const & arg2) -> _ImplicitParticles
7040 __init__(IMP::kernel::internal::_ImplicitParticles self, IMP::kernel::ParticlesTemp const & arg2) -> _ImplicitParticles
7041 __init__(IMP::kernel::internal::_ImplicitParticles self, Model arg2, IMP::kernel::ParticleIndexes const & arg3) -> _ImplicitParticles
7042 __init__(IMP::kernel::internal::_ImplicitParticles self, IMP::kernel::internal::_TrivialDecorators const & arg2) -> _ImplicitParticles
7043 __init__(IMP::kernel::internal::_ImplicitParticles self, _TrivialDecorator arg2) -> _ImplicitParticles
7045 this = _IMP_kernel.new__ImplicitParticles(*args)
7046 try: self.this.append(this)
7047 except: self.this = this
7048 __swig_destroy__ = _IMP_kernel.delete__ImplicitParticles
7049 __del__ =
lambda self :
None;
7050 _ImplicitParticles_swigregister = _IMP_kernel._ImplicitParticles_swigregister
7051 _ImplicitParticles_swigregister(_ImplicitParticles)
7054 def _implicit_particles(*args):
7055 """_implicit_particles(_ImplicitParticles arg1)"""
7056 return _IMP_kernel._implicit_particles(*args)
7058 def _take_particle_adaptor(*args):
7059 """_take_particle_adaptor(_ParticleAdaptor pa) -> IMP::kernel::ParticleIndex"""
7060 return _IMP_kernel._take_particle_adaptor(*args)
7062 def _take_particle_indexes_adaptor(*args):
7063 """_take_particle_indexes_adaptor(_ParticleIndexesAdaptor pa) -> IMP::kernel::ParticleIndexes"""
7064 return _IMP_kernel._take_particle_indexes_adaptor(*args)
7066 """Proxy of C++ IMP::kernel::GenericScopedScoreState<(IMP::kernel::ScoreState)> class"""
7067 __swig_setmethods__ = {}
7068 for _s
in [IMP.base._RAII]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
7069 __setattr__ =
lambda self, name, value: _swig_setattr(self, ScopedScoreState, name, value)
7070 __swig_getmethods__ = {}
7071 for _s
in [IMP.base._RAII]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
7072 __getattr__ =
lambda self, name: _swig_getattr(self, ScopedScoreState, name)
7073 def __init__(self, *args):
7075 __init__(IMP::kernel::GenericScopedScoreState<(IMP::kernel::ScoreState)> self) -> ScopedScoreState
7076 __init__(IMP::kernel::GenericScopedScoreState<(IMP::kernel::ScoreState)> self, ScoreState ss, Model m) -> ScopedScoreState
7078 this = _IMP_kernel.new_ScopedScoreState(*args)
7079 try: self.this.append(this)
7080 except: self.this = this
7081 def set(self, *args):
7082 """set(ScopedScoreState self, ScoreState ss, Model m)"""
7083 return _IMP_kernel.ScopedScoreState_set(self, *args)
7086 """reset(ScopedScoreState self)"""
7087 return _IMP_kernel.ScopedScoreState_reset(self)
7089 __swig_destroy__ = _IMP_kernel.delete_ScopedScoreState
7090 __del__ =
lambda self :
None;
7091 def show(self, *args):
7093 show(ScopedScoreState self, _ostream out=std::cout)
7094 show(ScopedScoreState self)
7096 return _IMP_kernel.ScopedScoreState_show(self, *args)
7098 def get_is_set(self):
7099 """get_is_set(ScopedScoreState self) -> bool"""
7100 return _IMP_kernel.ScopedScoreState_get_is_set(self)
7103 """__str__(ScopedScoreState self) -> std::string"""
7104 return _IMP_kernel.ScopedScoreState___str__(self)
7107 """__repr__(ScopedScoreState self) -> std::string"""
7108 return _IMP_kernel.ScopedScoreState___repr__(self)
7110 ScopedScoreState_swigregister = _IMP_kernel.ScopedScoreState_swigregister
7111 ScopedScoreState_swigregister(ScopedScoreState)
7114 """Proxy of C++ IMP::kernel::GenericScopedRestraint<(IMP::kernel::Restraint)> class"""
7115 __swig_setmethods__ = {}
7116 for _s
in [IMP.base._RAII]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
7117 __setattr__ =
lambda self, name, value: _swig_setattr(self, ScopedRestraint, name, value)
7118 __swig_getmethods__ = {}
7119 for _s
in [IMP.base._RAII]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
7120 __getattr__ =
lambda self, name: _swig_getattr(self, ScopedRestraint, name)
7121 def __init__(self, *args):
7123 __init__(IMP::kernel::GenericScopedRestraint<(IMP::kernel::Restraint)> self) -> ScopedRestraint
7124 __init__(IMP::kernel::GenericScopedRestraint<(IMP::kernel::Restraint)> self, Restraint ss, RestraintSet rs) -> ScopedRestraint
7126 this = _IMP_kernel.new_ScopedRestraint(*args)
7127 try: self.this.append(this)
7128 except: self.this = this
7129 def set(self, *args):
7130 """set(ScopedRestraint self, Restraint ss, RestraintSet rs)"""
7131 return _IMP_kernel.ScopedRestraint_set(self, *args)
7134 """reset(ScopedRestraint self)"""
7135 return _IMP_kernel.ScopedRestraint_reset(self)
7137 __swig_destroy__ = _IMP_kernel.delete_ScopedRestraint
7138 __del__ =
lambda self :
None;
7139 def show(self, *args):
7141 show(ScopedRestraint self, _ostream out=std::cout)
7142 show(ScopedRestraint self)
7144 return _IMP_kernel.ScopedRestraint_show(self, *args)
7146 def get_is_set(self):
7147 """get_is_set(ScopedRestraint self) -> bool"""
7148 return _IMP_kernel.ScopedRestraint_get_is_set(self)
7151 """__str__(ScopedRestraint self) -> std::string"""
7152 return _IMP_kernel.ScopedRestraint___str__(self)
7155 """__repr__(ScopedRestraint self) -> std::string"""
7156 return _IMP_kernel.ScopedRestraint___repr__(self)
7158 ScopedRestraint_swigregister = _IMP_kernel.ScopedRestraint_swigregister
7159 ScopedRestraint_swigregister(ScopedRestraint)
7162 """Proxy of C++ IMP::kernel::GenericScopedRemoveRestraint<(IMP::kernel::Restraint)> class"""
7163 __swig_setmethods__ = {}
7164 for _s
in [IMP.base._RAII]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
7165 __setattr__ =
lambda self, name, value: _swig_setattr(self, ScopedRemoveRestraint, name, value)
7166 __swig_getmethods__ = {}
7167 for _s
in [IMP.base._RAII]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
7168 __getattr__ =
lambda self, name: _swig_getattr(self, ScopedRemoveRestraint, name)
7169 __repr__ = _swig_repr
7170 def __init__(self, *args):
7172 __init__(IMP::kernel::GenericScopedRemoveRestraint<(IMP::kernel::Restraint)> self) -> ScopedRemoveRestraint
7173 __init__(IMP::kernel::GenericScopedRemoveRestraint<(IMP::kernel::Restraint)> self, Restraint ss, RestraintSet rs) -> ScopedRemoveRestraint
7175 this = _IMP_kernel.new_ScopedRemoveRestraint(*args)
7176 try: self.this.append(this)
7177 except: self.this = this
7178 def set(self, *args):
7179 """set(ScopedRemoveRestraint self, Restraint ss, RestraintSet rs)"""
7180 return _IMP_kernel.ScopedRemoveRestraint_set(self, *args)
7183 """reset(ScopedRemoveRestraint self)"""
7184 return _IMP_kernel.ScopedRemoveRestraint_reset(self)
7186 __swig_destroy__ = _IMP_kernel.delete_ScopedRemoveRestraint
7187 __del__ =
lambda self :
None;
7188 def show(self, *args):
7190 show(ScopedRemoveRestraint self, _ostream out=std::cout)
7191 show(ScopedRemoveRestraint self)
7193 return _IMP_kernel.ScopedRemoveRestraint_show(self, *args)
7195 def get_is_set(self):
7196 """get_is_set(ScopedRemoveRestraint self) -> bool"""
7197 return _IMP_kernel.ScopedRemoveRestraint_get_is_set(self)
7199 ScopedRemoveRestraint_swigregister = _IMP_kernel.ScopedRemoveRestraint_swigregister
7200 ScopedRemoveRestraint_swigregister(ScopedRemoveRestraint)
7203 """Proxy of C++ IMP::kernel::GenericScopedRemoveScoreState<(IMP::kernel::ScoreState)> class"""
7204 __swig_setmethods__ = {}
7205 for _s
in [IMP.base._RAII]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
7206 __setattr__ =
lambda self, name, value: _swig_setattr(self, ScopedRemoveScoreState, name, value)
7207 __swig_getmethods__ = {}
7208 for _s
in [IMP.base._RAII]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
7209 __getattr__ =
lambda self, name: _swig_getattr(self, ScopedRemoveScoreState, name)
7210 __repr__ = _swig_repr
7211 def __init__(self, *args):
7213 __init__(IMP::kernel::GenericScopedRemoveScoreState<(IMP::kernel::ScoreState)> self) -> ScopedRemoveScoreState
7214 __init__(IMP::kernel::GenericScopedRemoveScoreState<(IMP::kernel::ScoreState)> self, ScoreState ss, Model rs) -> ScopedRemoveScoreState
7216 this = _IMP_kernel.new_ScopedRemoveScoreState(*args)
7217 try: self.this.append(this)
7218 except: self.this = this
7219 def set(self, *args):
7220 """set(ScopedRemoveScoreState self, ScoreState ss, Model rs)"""
7221 return _IMP_kernel.ScopedRemoveScoreState_set(self, *args)
7224 """reset(ScopedRemoveScoreState self)"""
7225 return _IMP_kernel.ScopedRemoveScoreState_reset(self)
7227 __swig_destroy__ = _IMP_kernel.delete_ScopedRemoveScoreState
7228 __del__ =
lambda self :
None;
7229 def show(self, *args):
7231 show(ScopedRemoveScoreState self, _ostream out=std::cout)
7232 show(ScopedRemoveScoreState self)
7234 return _IMP_kernel.ScopedRemoveScoreState_show(self, *args)
7236 def get_is_set(self):
7237 """get_is_set(ScopedRemoveScoreState self) -> bool"""
7238 return _IMP_kernel.ScopedRemoveScoreState_get_is_set(self)
7240 ScopedRemoveScoreState_swigregister = _IMP_kernel.ScopedRemoveScoreState_swigregister
7241 ScopedRemoveScoreState_swigregister(ScopedRemoveScoreState)
7244 """Proxy of C++ IMP::kernel::ScopedSetAttribute<(FloatKey,IMP::Float)> class"""
7245 __swig_setmethods__ = {}
7246 for _s
in [IMP.base._RAII]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
7247 __setattr__ =
lambda self, name, value: _swig_setattr(self, ScopedSetFloatAttribute, name, value)
7248 __swig_getmethods__ = {}
7249 for _s
in [IMP.base._RAII]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
7250 __getattr__ =
lambda self, name: _swig_getattr(self, ScopedSetFloatAttribute, name)
7251 def __init__(self, *args):
7253 __init__(IMP::kernel::ScopedSetAttribute<(FloatKey,IMP::Float)> self) -> ScopedSetFloatAttribute
7254 __init__(IMP::kernel::ScopedSetAttribute<(FloatKey,IMP::Float)> self, Particle p, FloatKey key, double const & value) -> ScopedSetFloatAttribute
7256 this = _IMP_kernel.new_ScopedSetFloatAttribute(*args)
7257 try: self.this.append(this)
7258 except: self.this = this
7259 def set(self, *args):
7260 """set(ScopedSetFloatAttribute self, Particle p, FloatKey key, double const & value)"""
7261 return _IMP_kernel.ScopedSetFloatAttribute_set(self, *args)
7264 """reset(ScopedSetFloatAttribute self)"""
7265 return _IMP_kernel.ScopedSetFloatAttribute_reset(self)
7267 __swig_destroy__ = _IMP_kernel.delete_ScopedSetFloatAttribute
7268 __del__ =
lambda self :
None;
7269 def show(self, *args):
7271 show(ScopedSetFloatAttribute self, _ostream out=std::cout)
7272 show(ScopedSetFloatAttribute self)
7274 return _IMP_kernel.ScopedSetFloatAttribute_show(self, *args)
7277 """__str__(ScopedSetFloatAttribute self) -> std::string"""
7278 return _IMP_kernel.ScopedSetFloatAttribute___str__(self)
7281 """__repr__(ScopedSetFloatAttribute self) -> std::string"""
7282 return _IMP_kernel.ScopedSetFloatAttribute___repr__(self)
7284 ScopedSetFloatAttribute_swigregister = _IMP_kernel.ScopedSetFloatAttribute_swigregister
7285 ScopedSetFloatAttribute_swigregister(ScopedSetFloatAttribute)
7294 get_networkx_graph=IMP.base.get_networkx_graph
7295 show_altgraph=IMP.base.show_altgraph
7296 show_graphviz=IMP.base.show_graphviz
7301 USAGE= IMP.base.USAGE
7302 USAGE_AND_INTERNAL= IMP.base.USAGE_AND_INTERNAL
7303 TERSE= IMP.base.TERSE
7304 SILENT= IMP.base.SILENT
7305 VERBOSE= IMP.base.VERBOSE
7306 WARNING= IMP.base.WARNING
7307 PROGRESS= IMP.base.PROGRESS
7308 MEMORY= IMP.base.MEMORY
7309 create_temporary_file= IMP.base.create_temporary_file
7310 create_temporary_file_name= IMP.base.create_temporary_file_name
7311 random_number_generator= IMP.base.random_number_generator
7312 set_log_level=IMP.base.set_log_level
7313 set_log_timer=IMP.base.set_log_timer
7314 get_log_level=IMP.base.get_log_level
7315 add_to_log= IMP.base.add_to_log
7316 set_check_level= IMP.base.set_check_level
7317 get_check_level= IMP.base.get_check_level
7321 if sys.platform ==
'win32' and 'IMP_LD_PATH' in os.environ:
7322 dirs = os.environ[
'IMP_LD_PATH'].split(
":")
7323 pathcomps = os.environ[
'PATH'].split(
";")
7325 if d
not in pathcomps:
7326 os.environ[
'PATH'] = d +
';' + os.environ[
'PATH']
7338 """Allow applications to easily implement commmands.
7339 Typically, an IMP application will use an instance of this class
7340 to provide a consistent interface to multiple distinct commands
7341 from a single binary, rather than providing a potentially large
7344 Each command is implemented with a Python module of the same name
7345 that can be imported from the module (for example, if module_name
7346 is 'IMP.foo', the 'bar' command is provided by the IMP.foo.bar Python
7347 module, which would usually be found as modules/foo/pyext/src/bar.py).
7348 Each such module should have a docstring (__doc__) and a main() method
7349 that takes no arguments (the module should also call its main() method
7350 if it is run directly, i.e. with something like
7351 'if __name__=="__main__": main()'). The encompassing module
7352 ('IMP.foo' in the example) should define _all_commands as a Python
7353 list of all valid commands.
7355 @param short_help A few words that describe the application.
7356 @param long_help Longer text, used in the 'help' command.
7357 @param module_name Name of the module (e.g. 'IMP.foo') that implements
7361 def __init__(self, short_help, long_help, module_name):
7362 self.short_help = short_help
7363 self.long_help = long_help
7364 self.module_name = module_name
7365 self._all_commands = self.import_module()._all_commands
7366 self._progname = os.path.basename(sys.argv[0])
7369 if len(sys.argv) <= 1:
7370 print self.short_help +
" Use '%s help' for help." % self._progname
7372 command = sys.argv[1]
7373 if command
in (
'help',
'--help',
'-h'):
7374 if len(sys.argv) == 3:
7375 self.show_command_help(sys.argv[2])
7378 elif command ==
'--version':
7380 elif command
in self._all_commands:
7381 self.do_command(command)
7383 self.unknown_command(command)
7385 def import_module(self, mod=None):
7386 modname = self.module_name
7388 modname +=
"." + mod
7389 return __import__(modname, {}, {}, [
''])
7391 def unknown_command(self, command):
7392 print "Unknown command: '%s'" % command
7393 print "Use '%s help' for help." % self._progname
7396 def _get_version(self):
7397 return self.import_module().get_module_version()
7399 def show_version(self):
7400 print self._progname +
' ' + self._get_version()
7402 def show_help(self):
7403 ver = self._get_version()
7404 print "%s, version %s." % (self._progname, ver)
7405 print self.long_help +
"""
7407 This program is part of IMP, the Integrative Modeling Platform,
7408 which is Copyright 2007-2013 IMP Inventors.
7409 For additional information about IMP, see <http://integrativemodeling.org>.
7411 Usage: %s <command> [options] [args]
7413 Commands:""" % self._progname
7414 commands = self._all_commands[:] + [
'help']
7416 cmdlen = max([len(c)
for c
in commands])
7419 doc =
'Get help on using %s.' % self._progname
7421 doc = self.import_module(c).__doc__
or "<no help>"
7422 c +=
' ' * (cmdlen - len(c))
7423 print ' ' + c +
' ' + doc
7425 Use "%s help <command>" for detailed help on any command
7426 or "%s --version" to see the version number.""" % (self._progname,
7429 def do_command(self, command):
7430 mod = self.import_module(command)
7431 sys.argv[0] = self._progname +
' ' + command
7435 def show_command_help(self, command):
7436 if command ==
'help':
7438 elif command
in self._all_commands
or command ==
'help':
7439 mod = self.import_module(command)
7440 sys.argv = [self._progname +
' ' + command,
'--help']
7443 self.unknown_command(command)
7450 """IMP-specific subclass of optparse.OptionParser.
7451 This adds options common to all IMP applications
7452 (see IMP::base::setup_from_argv()).
7455 _use_boost_parser =
True
7457 def __init__(self, *args, **kwargs):
7460 kwargs[
'add_help_option'] =
False
7461 kwargs[
'version'] =
None
7463 if 'imp_module' in kwargs:
7464 del kwargs[
'imp_module']
7465 optparse.OptionParser.__init__(self, *args, **kwargs)
7469 def _process_long_opt(self, rargs, values):
7470 if self._use_boost_parser:
7472 optparse.OptionParser._process_long_opt(self, rargs, values)
7473 except optparse.BadOptionError, err:
7474 self.largs.append(err.opt_str)
7476 optparse.OptionParser._process_long_opt(self, rargs, values)
7477 def _process_short_opts(self, rargs, values):
7478 if self._use_boost_parser:
7480 optparse.OptionParser._process_short_opts(self, rargs, values)
7481 except optparse.BadOptionError, err:
7482 self.largs.append(err.opt_str)
7484 optparse.OptionParser._process_short_opts(self, rargs, values)
7486 def _process_args(self, largs, rargs, values):
7487 if self._use_boost_parser:
7492 dashdash = rargs.index(
'--')
7494 dashdash = len(rargs)
7495 saved_args = rargs[dashdash:]
7496 del rargs[dashdash:]
7497 optparse.OptionParser._process_args(self, largs, rargs, values)
7498 rargs.extend(saved_args)
7500 optparse.OptionParser._process_args(self, largs, rargs, values)
7503 """Parse the command line and return options and positional arguments.
7504 This functions in the same way as the method in the base class
7505 optparse.OptionParser, except that it also processes options common
7506 to all IMP applications (these are not returned in opts, but can be
7507 obtained in the usual way, e.g. by calling
7508 IMP::base::get_string_flag()).
7509 @param[in] num_positional If a positive integer, exactly that
7510 many positional arguments must be specified on the
7511 command line; if a negative integer, that many or
7512 more must be given; if None, any number of positional
7513 arguments can be given.
7518 opts, args = optparse.OptionParser.parse_args(self)
7519 if not self._use_boost_parser:
7521 orig_desc = self.description
7522 orig_usage = self.usage
7524 usage = self.usage.replace(
'%prog ',
'')
7527 if num_positional
is None:
7531 args.append(
'dummy')
7533 numpos = num_positional
7535 self.usage = self.description =
None
7539 self.format_help() \
7540 +
"\nOptions common to all IMP applications:",
7543 self.description = orig_desc
7544 self.usage = orig_usage
7545 if num_positional
is None:
7550 def get_module_version():
7551 """get_module_version() -> std::string const"""
7552 return _IMP_kernel.get_module_version()
7555 """get_example_path(std::string fname) -> std::string"""
7556 return _IMP_kernel.get_example_path(*args)
7559 """get_data_path(std::string fname) -> std::string"""
7560 return _IMP_kernel.get_data_path(*args)
7561 import _version_check
7562 _version_check.check_version(get_module_version())
IMP::kernel::PairModifier PairModifier
ParticleIndexes get_indexes(const ParticlesTemp &ps)
IMP::kernel::ModelObject ModelObject
IMP-specific subclass of optparse.OptionParser.
ScoringFunctions create_decomposition(ScoringFunction *sf)
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)
ScoreStatesTemp get_dependent_score_states(ModelObject *p, const ModelObjectsTemp &all, const DependencyGraph &dg, const DependencyGraphVertexIndex &index)
IMP::kernel::PairScore PairScore
IMP::kernel::ObjectKey ObjectKey
IMP::kernel::StringKey StringKey
void show_restraint_hierarchy(ScoringFunctionAdaptor rs, std::ostream &out=std::cout)
Print the hierarchy of restraints.
IMP::kernel::DerivativeAccumulator DerivativeAccumulator
IMP::kernel::ParticleTriplet ParticleTriplet
IMP::kernel::SingletonContainer SingletonContainer
IMP::kernel::EvaluationState EvaluationState
kernel::Restraints create_restraints(RMF::FileConstHandle fh, kernel::Model *m)
IMP::kernel::ScopedSetFloatAttribute ScopedSetFloatAttribute
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)
See IMP.cgal for more information.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
IMP::kernel::ScoringFunction ScoringFunction
IMP::kernel::ParticleIndexKey ParticleIndexKey
See IMP.base for more information.
ContainersTemp get_output_containers(const ModelObjectsTemp &mos)
IMP::kernel::SingletonPredicate SingletonPredicate
ParticlesTemp get_required_particles(ModelObject *p, const ModelObjectsTemp &all, const DependencyGraph &dg, const DependencyGraphVertexIndex &index)
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
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)
kernel::RestraintsTemp get_restraints(const Subset &s, const ParticleStatesTable *pst, const DependencyGraph &dg, kernel::RestraintSet *rs)
ParticlesTemp get_dependent_particles(ModelObject *p, const ModelObjectsTemp &all, const DependencyGraph &dg, const DependencyGraphVertexIndex &index)
IMP::kernel::ParticlePair ParticlePair
IMP::kernel::TripletModifier TripletModifier
IMP::kernel::ScopedRemoveRestraint ScopedRemoveRestraint
A class to change and restore log state.
Vector3Ds get_vertices(const BoundingBoxD< 3 > &bb)
Return a list of the 8 bounding points for the bounding box.
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)
IMP::kernel::ScopedRemoveScoreState ScopedRemoveScoreState
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::FloatKey FloatKey
IMP::kernel::TripletScore TripletScore
IMP::kernel::DependencyGraph DependencyGraph
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.
See IMP.algebra for more information.
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
IMP::kernel::ParticleIndexesKey ParticleIndexesKey
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
IMP::kernel::ParticleQuad ParticleQuad
IMP::kernel::ConfigurationSet ConfigurationSet
IMP::kernel::PairContainer PairContainer
IMP::kernel::OptimizerState OptimizerState
IMP::kernel::TripletPredicate TripletPredicate
IMP::kernel::ScopedRestraint ScopedRestraint
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
IMP::kernel::ParticleIndex ParticleIndex
IMP::kernel::FloatIndex FloatIndex
void add_restraint(RMF::FileHandle fh, kernel::Restraint *hs)
IMP::kernel::ScopedScoreState ScopedScoreState
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)
IMP::kernel::IntKey IntKey
An exception for an invalid value being passed to IMP.