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(
"ScopedSetFloatAttribute")
548 _object_types.append(
"ScoringFunction")
551 def _object_cast_to_ScoringFunction(*args):
552 """_object_cast_to_ScoringFunction(Object o) -> ScoringFunction"""
553 return _IMP_kernel._object_cast_to_ScoringFunction(*args)
554 _object_types.append(
"ModelObject")
557 def _object_cast_to_ModelObject(*args):
558 """_object_cast_to_ModelObject(Object o) -> ModelObject"""
559 return _IMP_kernel._object_cast_to_ModelObject(*args)
560 def _TrivialDecorators(l=[]):
561 return [_TrivialDecorator(x)
for x
in l]
562 _plural_types.append(
"_TrivialDecorators")
564 _value_types.append(
"_TrivialDecorator")
566 def _TrivialDerivedDecorators(l=[]):
567 return [_TrivialDerivedDecorator(x)
for x
in l]
568 _plural_types.append(
"_TrivialDerivedDecorators")
570 _value_types.append(
"_TrivialDerivedDecorator")
572 def _TrivialTraitsDecorators(l=[]):
573 return [_TrivialTraitsDecorator(x)
for x
in l]
574 _plural_types.append(
"_TrivialTraitsDecorators")
576 _value_types.append(
"_TrivialTraitsDecorator")
578 _object_types.append(
"_ConstRestraint")
581 def _object_cast_to__ConstRestraint(*args):
582 """_object_cast_to__ConstRestraint(Object o) -> _ConstRestraint"""
583 return _IMP_kernel._object_cast_to__ConstRestraint(*args)
584 _object_types.append(
"_ConstOptimizer")
587 def _object_cast_to__ConstOptimizer(*args):
588 """_object_cast_to__ConstOptimizer(Object o) -> _ConstOptimizer"""
589 return _IMP_kernel._object_cast_to__ConstOptimizer(*args)
591 """Proxy of C++ IMP::base::internal::BoostDigraph<(IMP::kernel::DependencyGraph,p.IMP::kernel::ModelObject,IMP::kernel::ShowDependencyGraphVertex)> class"""
592 __swig_setmethods__ = {}
593 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
594 __setattr__ =
lambda self, name, value: _swig_setattr(self, DependencyGraph, name, value)
595 __swig_getmethods__ = {}
596 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
597 __getattr__ =
lambda self, name: _swig_getattr(self, DependencyGraph, name)
598 __repr__ = _swig_repr
600 """__init__(IMP::base::internal::BoostDigraph<(IMP::kernel::DependencyGraph,p.IMP::kernel::ModelObject,IMP::kernel::ShowDependencyGraphVertex)> self) -> DependencyGraph"""
601 this = _IMP_kernel.new_DependencyGraph()
602 try: self.this.append(this)
603 except: self.this = this
605 """get_graph(DependencyGraph self) -> IMP::kernel::DependencyGraph const &"""
606 return _IMP_kernel.DependencyGraph_get_graph(self)
609 """get_vertices(DependencyGraph self) -> IMP::base::internal::BoostDigraph< IMP::kernel::DependencyGraph,IMP::kernel::ModelObject *,IMP::kernel::ShowDependencyGraphVertex >::VertexDescriptors"""
610 return _IMP_kernel.DependencyGraph_get_vertices(self)
612 def get_vertex_name(self, *args):
613 """get_vertex_name(DependencyGraph self, IMP::base::internal::BoostDigraph< IMP::kernel::DependencyGraph,IMP::kernel::ModelObject *,IMP::kernel::ShowDependencyGraphVertex >::VertexDescriptor i) -> ModelObject"""
614 return _IMP_kernel.DependencyGraph_get_vertex_name(self, *args)
616 def get_in_neighbors(self, *args):
617 """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"""
618 return _IMP_kernel.DependencyGraph_get_in_neighbors(self, *args)
620 def get_out_neighbors(self, *args):
621 """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"""
622 return _IMP_kernel.DependencyGraph_get_out_neighbors(self, *args)
626 show_graphviz(DependencyGraph self, _ostream out=std::cout)
627 show_graphviz(DependencyGraph self)
629 return _IMP_kernel.DependencyGraph_show_graphviz(self, *args)
631 def get_graphviz_string(self):
632 """get_graphviz_string(DependencyGraph self) -> std::string"""
633 return _IMP_kernel.DependencyGraph_get_graphviz_string(self)
635 def add_edge(self, *args):
637 add_edge(DependencyGraph self, IMP::base::internal::BoostDigraph< IMP::kernel::DependencyGraph,IMP::kernel::ModelObject *,IMP::kernel::ShowDependencyGraphVertex >::VertexDescriptor v0,
638 IMP::base::internal::BoostDigraph< IMP::kernel::DependencyGraph,IMP::kernel::ModelObject *,IMP::kernel::ShowDependencyGraphVertex >::VertexDescriptor v1)
640 return _IMP_kernel.DependencyGraph_add_edge(self, *args)
642 def add_vertex(self, *args):
643 """add_vertex(DependencyGraph self, ModelObject l) -> IMP::base::internal::BoostDigraph< IMP::kernel::DependencyGraph,IMP::kernel::ModelObject *,IMP::kernel::ShowDependencyGraphVertex >::VertexDescriptor"""
644 return _IMP_kernel.DependencyGraph_add_vertex(self, *args)
646 def remove_vertex(self, *args):
647 """remove_vertex(DependencyGraph self, IMP::base::internal::BoostDigraph< IMP::kernel::DependencyGraph,IMP::kernel::ModelObject *,IMP::kernel::ShowDependencyGraphVertex >::VertexDescriptor l)"""
648 return _IMP_kernel.DependencyGraph_remove_vertex(self, *args)
650 __swig_destroy__ = _IMP_kernel.delete_DependencyGraph
651 __del__ =
lambda self :
None;
652 DependencyGraph_swigregister = _IMP_kernel.DependencyGraph_swigregister
653 DependencyGraph_swigregister(DependencyGraph)
655 _value_types.append(
"DependencyGraph")
658 """Proxy of C++ IMP::kernel::Key<(0,true)> class"""
659 __swig_setmethods__ = {}
660 for _s
in [IMP.base._Value]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
661 __setattr__ =
lambda self, name, value: _swig_setattr(self, FloatKey, name, value)
662 __swig_getmethods__ = {}
663 for _s
in [IMP.base._Value]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
664 __getattr__ =
lambda self, name: _swig_getattr(self, FloatKey, name)
665 def __init__(self, *args):
667 __init__(IMP::kernel::Key<(0,true)> self) -> FloatKey
668 __init__(IMP::kernel::Key<(0,true)> self, std::string c) -> FloatKey
669 __init__(IMP::kernel::Key<(0,true)> self, unsigned int i) -> FloatKey
671 this = _IMP_kernel.new_FloatKey(*args)
672 try: self.this.append(this)
673 except: self.this = this
675 """add_key(std::string sc) -> unsigned int"""
676 return _IMP_kernel.FloatKey_add_key(*args)
678 if _newclass:add_key = staticmethod(add_key)
679 __swig_getmethods__[
"add_key"] =
lambda x: add_key
680 def get_key_exists(*args):
681 """get_key_exists(std::string sc) -> bool"""
682 return _IMP_kernel.FloatKey_get_key_exists(*args)
684 if _newclass:get_key_exists = staticmethod(get_key_exists)
685 __swig_getmethods__[
"get_key_exists"] =
lambda x: get_key_exists
686 def get_string(self):
687 """get_string(FloatKey self) -> std::string const"""
688 return _IMP_kernel.FloatKey_get_string(self)
690 def __eq__(self, *args):
691 """__eq__(FloatKey self, FloatKey o) -> bool"""
692 return _IMP_kernel.FloatKey___eq__(self, *args)
694 def __ne__(self, *args):
695 """__ne__(FloatKey self, FloatKey o) -> bool"""
696 return _IMP_kernel.FloatKey___ne__(self, *args)
698 def __lt__(self, *args):
699 """__lt__(FloatKey self, FloatKey o) -> bool"""
700 return _IMP_kernel.FloatKey___lt__(self, *args)
702 def __gt__(self, *args):
703 """__gt__(FloatKey self, FloatKey o) -> bool"""
704 return _IMP_kernel.FloatKey___gt__(self, *args)
706 def __ge__(self, *args):
707 """__ge__(FloatKey self, FloatKey o) -> bool"""
708 return _IMP_kernel.FloatKey___ge__(self, *args)
710 def __le__(self, *args):
711 """__le__(FloatKey self, FloatKey o) -> bool"""
712 return _IMP_kernel.FloatKey___le__(self, *args)
715 """__hash__(FloatKey self) -> std::size_t"""
716 return _IMP_kernel.FloatKey___hash__(self)
718 def show(self, *args):
720 show(FloatKey self, _ostream out=std::cout)
723 return _IMP_kernel.FloatKey_show(self, *args)
725 def add_alias(*args):
726 """add_alias(FloatKey old_key, std::string new_name) -> FloatKey"""
727 return _IMP_kernel.FloatKey_add_alias(*args)
729 if _newclass:add_alias = staticmethod(add_alias)
730 __swig_getmethods__[
"add_alias"] =
lambda x: add_alias
732 """get_index(FloatKey self) -> unsigned int"""
733 return _IMP_kernel.FloatKey_get_index(self)
736 """show_all(_ostream out)"""
737 return _IMP_kernel.FloatKey_show_all(*args)
739 if _newclass:show_all = staticmethod(show_all)
740 __swig_getmethods__[
"show_all"] =
lambda x: show_all
741 def get_all_strings():
742 """get_all_strings() -> IMP::base::Vector< std::string >"""
743 return _IMP_kernel.FloatKey_get_all_strings()
745 if _newclass:get_all_strings = staticmethod(get_all_strings)
746 __swig_getmethods__[
"get_all_strings"] =
lambda x: get_all_strings
747 def get_number_unique():
748 """get_number_unique() -> unsigned int"""
749 return _IMP_kernel.FloatKey_get_number_unique()
751 if _newclass:get_number_unique = staticmethod(get_number_unique)
752 __swig_getmethods__[
"get_number_unique"] =
lambda x: get_number_unique
754 """__str__(FloatKey self) -> std::string"""
755 return _IMP_kernel.FloatKey___str__(self)
758 """__repr__(FloatKey self) -> std::string"""
759 return _IMP_kernel.FloatKey___repr__(self)
761 __swig_destroy__ = _IMP_kernel.delete_FloatKey
762 __del__ =
lambda self :
None;
763 FloatKey_swigregister = _IMP_kernel.FloatKey_swigregister
764 FloatKey_swigregister(FloatKey)
766 def FloatKey_add_key(*args):
767 """FloatKey_add_key(std::string sc) -> unsigned int"""
768 return _IMP_kernel.FloatKey_add_key(*args)
770 def FloatKey_get_key_exists(*args):
771 """FloatKey_get_key_exists(std::string sc) -> bool"""
772 return _IMP_kernel.FloatKey_get_key_exists(*args)
774 def FloatKey_add_alias(*args):
775 """FloatKey_add_alias(FloatKey old_key, std::string new_name) -> FloatKey"""
776 return _IMP_kernel.FloatKey_add_alias(*args)
778 def FloatKey_show_all(*args):
779 """FloatKey_show_all(_ostream out)"""
780 return _IMP_kernel.FloatKey_show_all(*args)
782 def FloatKey_get_all_strings():
783 """FloatKey_get_all_strings() -> IMP::base::Vector< std::string >"""
784 return _IMP_kernel.FloatKey_get_all_strings()
786 def FloatKey_get_number_unique():
787 """FloatKey_get_number_unique() -> unsigned int"""
788 return _IMP_kernel.FloatKey_get_number_unique()
790 class IntKey(IMP.base._Value):
791 """Proxy of C++ IMP::kernel::Key<(1,true)> class"""
792 __swig_setmethods__ = {}
793 for _s
in [IMP.base._Value]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
794 __setattr__ =
lambda self, name, value: _swig_setattr(self, IntKey, name, value)
795 __swig_getmethods__ = {}
796 for _s
in [IMP.base._Value]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
797 __getattr__ =
lambda self, name: _swig_getattr(self, IntKey, name)
798 def __init__(self, *args):
800 __init__(IMP::kernel::Key<(1,true)> self) -> IntKey
801 __init__(IMP::kernel::Key<(1,true)> self, std::string c) -> IntKey
802 __init__(IMP::kernel::Key<(1,true)> self, unsigned int i) -> IntKey
804 this = _IMP_kernel.new_IntKey(*args)
805 try: self.this.append(this)
806 except: self.this = this
808 """add_key(std::string sc) -> unsigned int"""
809 return _IMP_kernel.IntKey_add_key(*args)
811 if _newclass:add_key = staticmethod(add_key)
812 __swig_getmethods__[
"add_key"] =
lambda x: add_key
813 def get_key_exists(*args):
814 """get_key_exists(std::string sc) -> bool"""
815 return _IMP_kernel.IntKey_get_key_exists(*args)
817 if _newclass:get_key_exists = staticmethod(get_key_exists)
818 __swig_getmethods__[
"get_key_exists"] =
lambda x: get_key_exists
819 def get_string(self):
820 """get_string(IntKey self) -> std::string const"""
821 return _IMP_kernel.IntKey_get_string(self)
823 def __eq__(self, *args):
824 """__eq__(IntKey self, IntKey o) -> bool"""
825 return _IMP_kernel.IntKey___eq__(self, *args)
827 def __ne__(self, *args):
828 """__ne__(IntKey self, IntKey o) -> bool"""
829 return _IMP_kernel.IntKey___ne__(self, *args)
831 def __lt__(self, *args):
832 """__lt__(IntKey self, IntKey o) -> bool"""
833 return _IMP_kernel.IntKey___lt__(self, *args)
835 def __gt__(self, *args):
836 """__gt__(IntKey self, IntKey o) -> bool"""
837 return _IMP_kernel.IntKey___gt__(self, *args)
839 def __ge__(self, *args):
840 """__ge__(IntKey self, IntKey o) -> bool"""
841 return _IMP_kernel.IntKey___ge__(self, *args)
843 def __le__(self, *args):
844 """__le__(IntKey self, IntKey o) -> bool"""
845 return _IMP_kernel.IntKey___le__(self, *args)
848 """__hash__(IntKey self) -> std::size_t"""
849 return _IMP_kernel.IntKey___hash__(self)
851 def show(self, *args):
853 show(IntKey self, _ostream out=std::cout)
856 return _IMP_kernel.IntKey_show(self, *args)
858 def add_alias(*args):
859 """add_alias(IntKey old_key, std::string new_name) -> IntKey"""
860 return _IMP_kernel.IntKey_add_alias(*args)
862 if _newclass:add_alias = staticmethod(add_alias)
863 __swig_getmethods__[
"add_alias"] =
lambda x: add_alias
865 """get_index(IntKey self) -> unsigned int"""
866 return _IMP_kernel.IntKey_get_index(self)
869 """show_all(_ostream out)"""
870 return _IMP_kernel.IntKey_show_all(*args)
872 if _newclass:show_all = staticmethod(show_all)
873 __swig_getmethods__[
"show_all"] =
lambda x: show_all
874 def get_all_strings():
875 """get_all_strings() -> IMP::base::Vector< std::string >"""
876 return _IMP_kernel.IntKey_get_all_strings()
878 if _newclass:get_all_strings = staticmethod(get_all_strings)
879 __swig_getmethods__[
"get_all_strings"] =
lambda x: get_all_strings
880 def get_number_unique():
881 """get_number_unique() -> unsigned int"""
882 return _IMP_kernel.IntKey_get_number_unique()
884 if _newclass:get_number_unique = staticmethod(get_number_unique)
885 __swig_getmethods__[
"get_number_unique"] =
lambda x: get_number_unique
887 """__str__(IntKey self) -> std::string"""
888 return _IMP_kernel.IntKey___str__(self)
891 """__repr__(IntKey self) -> std::string"""
892 return _IMP_kernel.IntKey___repr__(self)
894 __swig_destroy__ = _IMP_kernel.delete_IntKey
895 __del__ =
lambda self :
None;
896 IntKey_swigregister = _IMP_kernel.IntKey_swigregister
897 IntKey_swigregister(IntKey)
899 def IntKey_add_key(*args):
900 """IntKey_add_key(std::string sc) -> unsigned int"""
901 return _IMP_kernel.IntKey_add_key(*args)
903 def IntKey_get_key_exists(*args):
904 """IntKey_get_key_exists(std::string sc) -> bool"""
905 return _IMP_kernel.IntKey_get_key_exists(*args)
907 def IntKey_add_alias(*args):
908 """IntKey_add_alias(IntKey old_key, std::string new_name) -> IntKey"""
909 return _IMP_kernel.IntKey_add_alias(*args)
911 def IntKey_show_all(*args):
912 """IntKey_show_all(_ostream out)"""
913 return _IMP_kernel.IntKey_show_all(*args)
915 def IntKey_get_all_strings():
916 """IntKey_get_all_strings() -> IMP::base::Vector< std::string >"""
917 return _IMP_kernel.IntKey_get_all_strings()
919 def IntKey_get_number_unique():
920 """IntKey_get_number_unique() -> unsigned int"""
921 return _IMP_kernel.IntKey_get_number_unique()
924 """Proxy of C++ IMP::kernel::Key<(2,true)> class"""
925 __swig_setmethods__ = {}
926 for _s
in [IMP.base._Value]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
927 __setattr__ =
lambda self, name, value: _swig_setattr(self, StringKey, name, value)
928 __swig_getmethods__ = {}
929 for _s
in [IMP.base._Value]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
930 __getattr__ =
lambda self, name: _swig_getattr(self, StringKey, name)
931 def __init__(self, *args):
933 __init__(IMP::kernel::Key<(2,true)> self) -> StringKey
934 __init__(IMP::kernel::Key<(2,true)> self, std::string c) -> StringKey
935 __init__(IMP::kernel::Key<(2,true)> self, unsigned int i) -> StringKey
937 this = _IMP_kernel.new_StringKey(*args)
938 try: self.this.append(this)
939 except: self.this = this
941 """add_key(std::string sc) -> unsigned int"""
942 return _IMP_kernel.StringKey_add_key(*args)
944 if _newclass:add_key = staticmethod(add_key)
945 __swig_getmethods__[
"add_key"] =
lambda x: add_key
946 def get_key_exists(*args):
947 """get_key_exists(std::string sc) -> bool"""
948 return _IMP_kernel.StringKey_get_key_exists(*args)
950 if _newclass:get_key_exists = staticmethod(get_key_exists)
951 __swig_getmethods__[
"get_key_exists"] =
lambda x: get_key_exists
952 def get_string(self):
953 """get_string(StringKey self) -> std::string const"""
954 return _IMP_kernel.StringKey_get_string(self)
956 def __eq__(self, *args):
957 """__eq__(StringKey self, StringKey o) -> bool"""
958 return _IMP_kernel.StringKey___eq__(self, *args)
960 def __ne__(self, *args):
961 """__ne__(StringKey self, StringKey o) -> bool"""
962 return _IMP_kernel.StringKey___ne__(self, *args)
964 def __lt__(self, *args):
965 """__lt__(StringKey self, StringKey o) -> bool"""
966 return _IMP_kernel.StringKey___lt__(self, *args)
968 def __gt__(self, *args):
969 """__gt__(StringKey self, StringKey o) -> bool"""
970 return _IMP_kernel.StringKey___gt__(self, *args)
972 def __ge__(self, *args):
973 """__ge__(StringKey self, StringKey o) -> bool"""
974 return _IMP_kernel.StringKey___ge__(self, *args)
976 def __le__(self, *args):
977 """__le__(StringKey self, StringKey o) -> bool"""
978 return _IMP_kernel.StringKey___le__(self, *args)
981 """__hash__(StringKey self) -> std::size_t"""
982 return _IMP_kernel.StringKey___hash__(self)
984 def show(self, *args):
986 show(StringKey self, _ostream out=std::cout)
989 return _IMP_kernel.StringKey_show(self, *args)
991 def add_alias(*args):
992 """add_alias(StringKey old_key, std::string new_name) -> StringKey"""
993 return _IMP_kernel.StringKey_add_alias(*args)
995 if _newclass:add_alias = staticmethod(add_alias)
996 __swig_getmethods__[
"add_alias"] =
lambda x: add_alias
998 """get_index(StringKey self) -> unsigned int"""
999 return _IMP_kernel.StringKey_get_index(self)
1001 def show_all(*args):
1002 """show_all(_ostream out)"""
1003 return _IMP_kernel.StringKey_show_all(*args)
1005 if _newclass:show_all = staticmethod(show_all)
1006 __swig_getmethods__[
"show_all"] =
lambda x: show_all
1007 def get_all_strings():
1008 """get_all_strings() -> IMP::base::Vector< std::string >"""
1009 return _IMP_kernel.StringKey_get_all_strings()
1011 if _newclass:get_all_strings = staticmethod(get_all_strings)
1012 __swig_getmethods__[
"get_all_strings"] =
lambda x: get_all_strings
1013 def get_number_unique():
1014 """get_number_unique() -> unsigned int"""
1015 return _IMP_kernel.StringKey_get_number_unique()
1017 if _newclass:get_number_unique = staticmethod(get_number_unique)
1018 __swig_getmethods__[
"get_number_unique"] =
lambda x: get_number_unique
1020 """__str__(StringKey self) -> std::string"""
1021 return _IMP_kernel.StringKey___str__(self)
1024 """__repr__(StringKey self) -> std::string"""
1025 return _IMP_kernel.StringKey___repr__(self)
1027 __swig_destroy__ = _IMP_kernel.delete_StringKey
1028 __del__ =
lambda self :
None;
1029 StringKey_swigregister = _IMP_kernel.StringKey_swigregister
1030 StringKey_swigregister(StringKey)
1032 def StringKey_add_key(*args):
1033 """StringKey_add_key(std::string sc) -> unsigned int"""
1034 return _IMP_kernel.StringKey_add_key(*args)
1036 def StringKey_get_key_exists(*args):
1037 """StringKey_get_key_exists(std::string sc) -> bool"""
1038 return _IMP_kernel.StringKey_get_key_exists(*args)
1040 def StringKey_add_alias(*args):
1041 """StringKey_add_alias(StringKey old_key, std::string new_name) -> StringKey"""
1042 return _IMP_kernel.StringKey_add_alias(*args)
1044 def StringKey_show_all(*args):
1045 """StringKey_show_all(_ostream out)"""
1046 return _IMP_kernel.StringKey_show_all(*args)
1048 def StringKey_get_all_strings():
1049 """StringKey_get_all_strings() -> IMP::base::Vector< std::string >"""
1050 return _IMP_kernel.StringKey_get_all_strings()
1052 def StringKey_get_number_unique():
1053 """StringKey_get_number_unique() -> unsigned int"""
1054 return _IMP_kernel.StringKey_get_number_unique()
1057 """Proxy of C++ IMP::kernel::Key<(3,true)> class"""
1058 __swig_setmethods__ = {}
1059 for _s
in [IMP.base._Value]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1060 __setattr__ =
lambda self, name, value: _swig_setattr(self, ParticleIndexKey, name, value)
1061 __swig_getmethods__ = {}
1062 for _s
in [IMP.base._Value]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1063 __getattr__ =
lambda self, name: _swig_getattr(self, ParticleIndexKey, name)
1064 def __init__(self, *args):
1066 __init__(IMP::kernel::Key<(3,true)> self) -> ParticleIndexKey
1067 __init__(IMP::kernel::Key<(3,true)> self, std::string c) -> ParticleIndexKey
1068 __init__(IMP::kernel::Key<(3,true)> self, unsigned int i) -> ParticleIndexKey
1070 this = _IMP_kernel.new_ParticleIndexKey(*args)
1071 try: self.this.append(this)
1072 except: self.this = this
1074 """add_key(std::string sc) -> unsigned int"""
1075 return _IMP_kernel.ParticleIndexKey_add_key(*args)
1077 if _newclass:add_key = staticmethod(add_key)
1078 __swig_getmethods__[
"add_key"] =
lambda x: add_key
1079 def get_key_exists(*args):
1080 """get_key_exists(std::string sc) -> bool"""
1081 return _IMP_kernel.ParticleIndexKey_get_key_exists(*args)
1083 if _newclass:get_key_exists = staticmethod(get_key_exists)
1084 __swig_getmethods__[
"get_key_exists"] =
lambda x: get_key_exists
1085 def get_string(self):
1086 """get_string(ParticleIndexKey self) -> std::string const"""
1087 return _IMP_kernel.ParticleIndexKey_get_string(self)
1089 def __eq__(self, *args):
1090 """__eq__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
1091 return _IMP_kernel.ParticleIndexKey___eq__(self, *args)
1093 def __ne__(self, *args):
1094 """__ne__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
1095 return _IMP_kernel.ParticleIndexKey___ne__(self, *args)
1097 def __lt__(self, *args):
1098 """__lt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
1099 return _IMP_kernel.ParticleIndexKey___lt__(self, *args)
1101 def __gt__(self, *args):
1102 """__gt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
1103 return _IMP_kernel.ParticleIndexKey___gt__(self, *args)
1105 def __ge__(self, *args):
1106 """__ge__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
1107 return _IMP_kernel.ParticleIndexKey___ge__(self, *args)
1109 def __le__(self, *args):
1110 """__le__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
1111 return _IMP_kernel.ParticleIndexKey___le__(self, *args)
1114 """__hash__(ParticleIndexKey self) -> std::size_t"""
1115 return _IMP_kernel.ParticleIndexKey___hash__(self)
1117 def show(self, *args):
1119 show(ParticleIndexKey self, _ostream out=std::cout)
1120 show(ParticleIndexKey self)
1122 return _IMP_kernel.ParticleIndexKey_show(self, *args)
1124 def add_alias(*args):
1125 """add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
1126 return _IMP_kernel.ParticleIndexKey_add_alias(*args)
1128 if _newclass:add_alias = staticmethod(add_alias)
1129 __swig_getmethods__[
"add_alias"] =
lambda x: add_alias
1131 """get_index(ParticleIndexKey self) -> unsigned int"""
1132 return _IMP_kernel.ParticleIndexKey_get_index(self)
1134 def show_all(*args):
1135 """show_all(_ostream out)"""
1136 return _IMP_kernel.ParticleIndexKey_show_all(*args)
1138 if _newclass:show_all = staticmethod(show_all)
1139 __swig_getmethods__[
"show_all"] =
lambda x: show_all
1140 def get_all_strings():
1141 """get_all_strings() -> IMP::base::Vector< std::string >"""
1142 return _IMP_kernel.ParticleIndexKey_get_all_strings()
1144 if _newclass:get_all_strings = staticmethod(get_all_strings)
1145 __swig_getmethods__[
"get_all_strings"] =
lambda x: get_all_strings
1146 def get_number_unique():
1147 """get_number_unique() -> unsigned int"""
1148 return _IMP_kernel.ParticleIndexKey_get_number_unique()
1150 if _newclass:get_number_unique = staticmethod(get_number_unique)
1151 __swig_getmethods__[
"get_number_unique"] =
lambda x: get_number_unique
1153 """__str__(ParticleIndexKey self) -> std::string"""
1154 return _IMP_kernel.ParticleIndexKey___str__(self)
1157 """__repr__(ParticleIndexKey self) -> std::string"""
1158 return _IMP_kernel.ParticleIndexKey___repr__(self)
1160 __swig_destroy__ = _IMP_kernel.delete_ParticleIndexKey
1161 __del__ =
lambda self :
None;
1162 ParticleIndexKey_swigregister = _IMP_kernel.ParticleIndexKey_swigregister
1163 ParticleIndexKey_swigregister(ParticleIndexKey)
1165 def ParticleIndexKey_add_key(*args):
1166 """ParticleIndexKey_add_key(std::string sc) -> unsigned int"""
1167 return _IMP_kernel.ParticleIndexKey_add_key(*args)
1169 def ParticleIndexKey_get_key_exists(*args):
1170 """ParticleIndexKey_get_key_exists(std::string sc) -> bool"""
1171 return _IMP_kernel.ParticleIndexKey_get_key_exists(*args)
1173 def ParticleIndexKey_add_alias(*args):
1174 """ParticleIndexKey_add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
1175 return _IMP_kernel.ParticleIndexKey_add_alias(*args)
1177 def ParticleIndexKey_show_all(*args):
1178 """ParticleIndexKey_show_all(_ostream out)"""
1179 return _IMP_kernel.ParticleIndexKey_show_all(*args)
1181 def ParticleIndexKey_get_all_strings():
1182 """ParticleIndexKey_get_all_strings() -> IMP::base::Vector< std::string >"""
1183 return _IMP_kernel.ParticleIndexKey_get_all_strings()
1185 def ParticleIndexKey_get_number_unique():
1186 """ParticleIndexKey_get_number_unique() -> unsigned int"""
1187 return _IMP_kernel.ParticleIndexKey_get_number_unique()
1190 """Proxy of C++ IMP::kernel::Key<(4,true)> class"""
1191 __swig_setmethods__ = {}
1192 for _s
in [IMP.base._Value]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1193 __setattr__ =
lambda self, name, value: _swig_setattr(self, ObjectKey, name, value)
1194 __swig_getmethods__ = {}
1195 for _s
in [IMP.base._Value]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1196 __getattr__ =
lambda self, name: _swig_getattr(self, ObjectKey, name)
1197 def __init__(self, *args):
1199 __init__(IMP::kernel::Key<(4,true)> self) -> ObjectKey
1200 __init__(IMP::kernel::Key<(4,true)> self, std::string c) -> ObjectKey
1201 __init__(IMP::kernel::Key<(4,true)> self, unsigned int i) -> ObjectKey
1203 this = _IMP_kernel.new_ObjectKey(*args)
1204 try: self.this.append(this)
1205 except: self.this = this
1207 """add_key(std::string sc) -> unsigned int"""
1208 return _IMP_kernel.ObjectKey_add_key(*args)
1210 if _newclass:add_key = staticmethod(add_key)
1211 __swig_getmethods__[
"add_key"] =
lambda x: add_key
1212 def get_key_exists(*args):
1213 """get_key_exists(std::string sc) -> bool"""
1214 return _IMP_kernel.ObjectKey_get_key_exists(*args)
1216 if _newclass:get_key_exists = staticmethod(get_key_exists)
1217 __swig_getmethods__[
"get_key_exists"] =
lambda x: get_key_exists
1218 def get_string(self):
1219 """get_string(ObjectKey self) -> std::string const"""
1220 return _IMP_kernel.ObjectKey_get_string(self)
1222 def __eq__(self, *args):
1223 """__eq__(ObjectKey self, ObjectKey o) -> bool"""
1224 return _IMP_kernel.ObjectKey___eq__(self, *args)
1226 def __ne__(self, *args):
1227 """__ne__(ObjectKey self, ObjectKey o) -> bool"""
1228 return _IMP_kernel.ObjectKey___ne__(self, *args)
1230 def __lt__(self, *args):
1231 """__lt__(ObjectKey self, ObjectKey o) -> bool"""
1232 return _IMP_kernel.ObjectKey___lt__(self, *args)
1234 def __gt__(self, *args):
1235 """__gt__(ObjectKey self, ObjectKey o) -> bool"""
1236 return _IMP_kernel.ObjectKey___gt__(self, *args)
1238 def __ge__(self, *args):
1239 """__ge__(ObjectKey self, ObjectKey o) -> bool"""
1240 return _IMP_kernel.ObjectKey___ge__(self, *args)
1242 def __le__(self, *args):
1243 """__le__(ObjectKey self, ObjectKey o) -> bool"""
1244 return _IMP_kernel.ObjectKey___le__(self, *args)
1247 """__hash__(ObjectKey self) -> std::size_t"""
1248 return _IMP_kernel.ObjectKey___hash__(self)
1250 def show(self, *args):
1252 show(ObjectKey self, _ostream out=std::cout)
1253 show(ObjectKey self)
1255 return _IMP_kernel.ObjectKey_show(self, *args)
1257 def add_alias(*args):
1258 """add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
1259 return _IMP_kernel.ObjectKey_add_alias(*args)
1261 if _newclass:add_alias = staticmethod(add_alias)
1262 __swig_getmethods__[
"add_alias"] =
lambda x: add_alias
1264 """get_index(ObjectKey self) -> unsigned int"""
1265 return _IMP_kernel.ObjectKey_get_index(self)
1267 def show_all(*args):
1268 """show_all(_ostream out)"""
1269 return _IMP_kernel.ObjectKey_show_all(*args)
1271 if _newclass:show_all = staticmethod(show_all)
1272 __swig_getmethods__[
"show_all"] =
lambda x: show_all
1273 def get_all_strings():
1274 """get_all_strings() -> IMP::base::Vector< std::string >"""
1275 return _IMP_kernel.ObjectKey_get_all_strings()
1277 if _newclass:get_all_strings = staticmethod(get_all_strings)
1278 __swig_getmethods__[
"get_all_strings"] =
lambda x: get_all_strings
1279 def get_number_unique():
1280 """get_number_unique() -> unsigned int"""
1281 return _IMP_kernel.ObjectKey_get_number_unique()
1283 if _newclass:get_number_unique = staticmethod(get_number_unique)
1284 __swig_getmethods__[
"get_number_unique"] =
lambda x: get_number_unique
1286 """__str__(ObjectKey self) -> std::string"""
1287 return _IMP_kernel.ObjectKey___str__(self)
1290 """__repr__(ObjectKey self) -> std::string"""
1291 return _IMP_kernel.ObjectKey___repr__(self)
1293 __swig_destroy__ = _IMP_kernel.delete_ObjectKey
1294 __del__ =
lambda self :
None;
1295 ObjectKey_swigregister = _IMP_kernel.ObjectKey_swigregister
1296 ObjectKey_swigregister(ObjectKey)
1298 def ObjectKey_add_key(*args):
1299 """ObjectKey_add_key(std::string sc) -> unsigned int"""
1300 return _IMP_kernel.ObjectKey_add_key(*args)
1302 def ObjectKey_get_key_exists(*args):
1303 """ObjectKey_get_key_exists(std::string sc) -> bool"""
1304 return _IMP_kernel.ObjectKey_get_key_exists(*args)
1306 def ObjectKey_add_alias(*args):
1307 """ObjectKey_add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
1308 return _IMP_kernel.ObjectKey_add_alias(*args)
1310 def ObjectKey_show_all(*args):
1311 """ObjectKey_show_all(_ostream out)"""
1312 return _IMP_kernel.ObjectKey_show_all(*args)
1314 def ObjectKey_get_all_strings():
1315 """ObjectKey_get_all_strings() -> IMP::base::Vector< std::string >"""
1316 return _IMP_kernel.ObjectKey_get_all_strings()
1318 def ObjectKey_get_number_unique():
1319 """ObjectKey_get_number_unique() -> unsigned int"""
1320 return _IMP_kernel.ObjectKey_get_number_unique()
1323 """Proxy of C++ IMP::kernel::Key<(6,true)> class"""
1324 __swig_setmethods__ = {}
1325 for _s
in [IMP.base._Value]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1326 __setattr__ =
lambda self, name, value: _swig_setattr(self, ParticleIndexesKey, name, value)
1327 __swig_getmethods__ = {}
1328 for _s
in [IMP.base._Value]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1329 __getattr__ =
lambda self, name: _swig_getattr(self, ParticleIndexesKey, name)
1330 def __init__(self, *args):
1332 __init__(IMP::kernel::Key<(6,true)> self) -> ParticleIndexesKey
1333 __init__(IMP::kernel::Key<(6,true)> self, std::string c) -> ParticleIndexesKey
1334 __init__(IMP::kernel::Key<(6,true)> self, unsigned int i) -> ParticleIndexesKey
1336 this = _IMP_kernel.new_ParticleIndexesKey(*args)
1337 try: self.this.append(this)
1338 except: self.this = this
1340 """add_key(std::string sc) -> unsigned int"""
1341 return _IMP_kernel.ParticleIndexesKey_add_key(*args)
1343 if _newclass:add_key = staticmethod(add_key)
1344 __swig_getmethods__[
"add_key"] =
lambda x: add_key
1345 def get_key_exists(*args):
1346 """get_key_exists(std::string sc) -> bool"""
1347 return _IMP_kernel.ParticleIndexesKey_get_key_exists(*args)
1349 if _newclass:get_key_exists = staticmethod(get_key_exists)
1350 __swig_getmethods__[
"get_key_exists"] =
lambda x: get_key_exists
1351 def get_string(self):
1352 """get_string(ParticleIndexesKey self) -> std::string const"""
1353 return _IMP_kernel.ParticleIndexesKey_get_string(self)
1355 def __eq__(self, *args):
1356 """__eq__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
1357 return _IMP_kernel.ParticleIndexesKey___eq__(self, *args)
1359 def __ne__(self, *args):
1360 """__ne__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
1361 return _IMP_kernel.ParticleIndexesKey___ne__(self, *args)
1363 def __lt__(self, *args):
1364 """__lt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
1365 return _IMP_kernel.ParticleIndexesKey___lt__(self, *args)
1367 def __gt__(self, *args):
1368 """__gt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
1369 return _IMP_kernel.ParticleIndexesKey___gt__(self, *args)
1371 def __ge__(self, *args):
1372 """__ge__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
1373 return _IMP_kernel.ParticleIndexesKey___ge__(self, *args)
1375 def __le__(self, *args):
1376 """__le__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
1377 return _IMP_kernel.ParticleIndexesKey___le__(self, *args)
1380 """__hash__(ParticleIndexesKey self) -> std::size_t"""
1381 return _IMP_kernel.ParticleIndexesKey___hash__(self)
1383 def show(self, *args):
1385 show(ParticleIndexesKey self, _ostream out=std::cout)
1386 show(ParticleIndexesKey self)
1388 return _IMP_kernel.ParticleIndexesKey_show(self, *args)
1390 def add_alias(*args):
1391 """add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
1392 return _IMP_kernel.ParticleIndexesKey_add_alias(*args)
1394 if _newclass:add_alias = staticmethod(add_alias)
1395 __swig_getmethods__[
"add_alias"] =
lambda x: add_alias
1397 """get_index(ParticleIndexesKey self) -> unsigned int"""
1398 return _IMP_kernel.ParticleIndexesKey_get_index(self)
1400 def show_all(*args):
1401 """show_all(_ostream out)"""
1402 return _IMP_kernel.ParticleIndexesKey_show_all(*args)
1404 if _newclass:show_all = staticmethod(show_all)
1405 __swig_getmethods__[
"show_all"] =
lambda x: show_all
1406 def get_all_strings():
1407 """get_all_strings() -> IMP::base::Vector< std::string >"""
1408 return _IMP_kernel.ParticleIndexesKey_get_all_strings()
1410 if _newclass:get_all_strings = staticmethod(get_all_strings)
1411 __swig_getmethods__[
"get_all_strings"] =
lambda x: get_all_strings
1412 def get_number_unique():
1413 """get_number_unique() -> unsigned int"""
1414 return _IMP_kernel.ParticleIndexesKey_get_number_unique()
1416 if _newclass:get_number_unique = staticmethod(get_number_unique)
1417 __swig_getmethods__[
"get_number_unique"] =
lambda x: get_number_unique
1419 """__str__(ParticleIndexesKey self) -> std::string"""
1420 return _IMP_kernel.ParticleIndexesKey___str__(self)
1423 """__repr__(ParticleIndexesKey self) -> std::string"""
1424 return _IMP_kernel.ParticleIndexesKey___repr__(self)
1426 __swig_destroy__ = _IMP_kernel.delete_ParticleIndexesKey
1427 __del__ =
lambda self :
None;
1428 ParticleIndexesKey_swigregister = _IMP_kernel.ParticleIndexesKey_swigregister
1429 ParticleIndexesKey_swigregister(ParticleIndexesKey)
1431 def ParticleIndexesKey_add_key(*args):
1432 """ParticleIndexesKey_add_key(std::string sc) -> unsigned int"""
1433 return _IMP_kernel.ParticleIndexesKey_add_key(*args)
1435 def ParticleIndexesKey_get_key_exists(*args):
1436 """ParticleIndexesKey_get_key_exists(std::string sc) -> bool"""
1437 return _IMP_kernel.ParticleIndexesKey_get_key_exists(*args)
1439 def ParticleIndexesKey_add_alias(*args):
1440 """ParticleIndexesKey_add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
1441 return _IMP_kernel.ParticleIndexesKey_add_alias(*args)
1443 def ParticleIndexesKey_show_all(*args):
1444 """ParticleIndexesKey_show_all(_ostream out)"""
1445 return _IMP_kernel.ParticleIndexesKey_show_all(*args)
1447 def ParticleIndexesKey_get_all_strings():
1448 """ParticleIndexesKey_get_all_strings() -> IMP::base::Vector< std::string >"""
1449 return _IMP_kernel.ParticleIndexesKey_get_all_strings()
1451 def ParticleIndexesKey_get_number_unique():
1452 """ParticleIndexesKey_get_number_unique() -> unsigned int"""
1453 return _IMP_kernel.ParticleIndexesKey_get_number_unique()
1456 """Proxy of C++ IMP::base::Index<(IMP::ParticleIndexTag)> class"""
1457 __swig_setmethods__ = {}
1458 for _s
in [IMP.base._Value]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1459 __setattr__ =
lambda self, name, value: _swig_setattr(self, ParticleIndex, name, value)
1460 __swig_getmethods__ = {}
1461 for _s
in [IMP.base._Value]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1462 __getattr__ =
lambda self, name: _swig_getattr(self, ParticleIndex, name)
1463 def __init__(self, *args):
1465 __init__(IMP::base::Index<(IMP::ParticleIndexTag)> self, int i) -> ParticleIndex
1466 __init__(IMP::base::Index<(IMP::ParticleIndexTag)> self) -> ParticleIndex
1468 this = _IMP_kernel.new_ParticleIndex(*args)
1469 try: self.this.append(this)
1470 except: self.this = this
1472 """get_index(ParticleIndex self) -> int"""
1473 return _IMP_kernel.ParticleIndex_get_index(self)
1475 def __eq__(self, *args):
1476 """__eq__(ParticleIndex self, ParticleIndex o) -> bool"""
1477 return _IMP_kernel.ParticleIndex___eq__(self, *args)
1479 def __ne__(self, *args):
1480 """__ne__(ParticleIndex self, ParticleIndex o) -> bool"""
1481 return _IMP_kernel.ParticleIndex___ne__(self, *args)
1483 def __lt__(self, *args):
1484 """__lt__(ParticleIndex self, ParticleIndex o) -> bool"""
1485 return _IMP_kernel.ParticleIndex___lt__(self, *args)
1487 def __gt__(self, *args):
1488 """__gt__(ParticleIndex self, ParticleIndex o) -> bool"""
1489 return _IMP_kernel.ParticleIndex___gt__(self, *args)
1491 def __ge__(self, *args):
1492 """__ge__(ParticleIndex self, ParticleIndex o) -> bool"""
1493 return _IMP_kernel.ParticleIndex___ge__(self, *args)
1495 def __le__(self, *args):
1496 """__le__(ParticleIndex self, ParticleIndex o) -> bool"""
1497 return _IMP_kernel.ParticleIndex___le__(self, *args)
1499 def show(self, *args):
1501 show(ParticleIndex self, _ostream out=std::cout)
1502 show(ParticleIndex self)
1504 return _IMP_kernel.ParticleIndex_show(self, *args)
1507 """__hash__(ParticleIndex self) -> std::size_t"""
1508 return _IMP_kernel.ParticleIndex___hash__(self)
1511 """__str__(ParticleIndex self) -> std::string"""
1512 return _IMP_kernel.ParticleIndex___str__(self)
1515 """__repr__(ParticleIndex self) -> std::string"""
1516 return _IMP_kernel.ParticleIndex___repr__(self)
1518 __swig_destroy__ = _IMP_kernel.delete_ParticleIndex
1519 __del__ =
lambda self :
None;
1520 ParticleIndex_swigregister = _IMP_kernel.ParticleIndex_swigregister
1521 ParticleIndex_swigregister(ParticleIndex)
1531 """Proxy of C++ IMP::kernel::FloatIndex class"""
1532 __swig_setmethods__ = {}
1533 for _s
in [IMP.base._Value]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1534 __setattr__ =
lambda self, name, value: _swig_setattr(self, FloatIndex, name, value)
1535 __swig_getmethods__ = {}
1536 for _s
in [IMP.base._Value]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1537 __getattr__ =
lambda self, name: _swig_getattr(self, FloatIndex, name)
1538 def __init__(self, *args):
1540 __init__(IMP::kernel::FloatIndex self, ParticleIndex i0=ParticleIndex(), FloatKey i1=FloatKey()) -> FloatIndex
1541 __init__(IMP::kernel::FloatIndex self, ParticleIndex i0=ParticleIndex()) -> FloatIndex
1542 __init__(IMP::kernel::FloatIndex self) -> FloatIndex
1544 this = _IMP_kernel.new_FloatIndex(*args)
1545 try: self.this.append(this)
1546 except: self.this = this
1548 """__hash__(FloatIndex self) -> std::size_t"""
1549 return _IMP_kernel.FloatIndex___hash__(self)
1551 def show(self, *args):
1553 show(FloatIndex self, _ostream out=std::cout)
1554 show(FloatIndex self)
1556 return _IMP_kernel.FloatIndex_show(self, *args)
1558 def __eq__(self, *args):
1559 """__eq__(FloatIndex self, FloatIndex o) -> bool"""
1560 return _IMP_kernel.FloatIndex___eq__(self, *args)
1562 def __ne__(self, *args):
1563 """__ne__(FloatIndex self, FloatIndex o) -> bool"""
1564 return _IMP_kernel.FloatIndex___ne__(self, *args)
1566 def __lt__(self, *args):
1567 """__lt__(FloatIndex self, FloatIndex o) -> bool"""
1568 return _IMP_kernel.FloatIndex___lt__(self, *args)
1570 def __gt__(self, *args):
1571 """__gt__(FloatIndex self, FloatIndex o) -> bool"""
1572 return _IMP_kernel.FloatIndex___gt__(self, *args)
1574 def __ge__(self, *args):
1575 """__ge__(FloatIndex self, FloatIndex o) -> bool"""
1576 return _IMP_kernel.FloatIndex___ge__(self, *args)
1578 def __le__(self, *args):
1579 """__le__(FloatIndex self, FloatIndex o) -> bool"""
1580 return _IMP_kernel.FloatIndex___le__(self, *args)
1582 def get_particle(self):
1583 """get_particle(FloatIndex self) -> ParticleIndex const &"""
1584 return _IMP_kernel.FloatIndex_get_particle(self)
1586 def set_particle(self, *args):
1587 """set_particle(FloatIndex self, ParticleIndex const & v)"""
1588 return _IMP_kernel.FloatIndex_set_particle(self, *args)
1591 """get_key(FloatIndex self) -> FloatKey const &"""
1592 return _IMP_kernel.FloatIndex_get_key(self)
1594 def set_key(self, *args):
1595 """set_key(FloatIndex self, FloatKey const & v)"""
1596 return _IMP_kernel.FloatIndex_set_key(self, *args)
1599 """__str__(FloatIndex self) -> std::string"""
1600 return _IMP_kernel.FloatIndex___str__(self)
1603 """__repr__(FloatIndex self) -> std::string"""
1604 return _IMP_kernel.FloatIndex___repr__(self)
1606 __swig_destroy__ = _IMP_kernel.delete_FloatIndex
1607 __del__ =
lambda self :
None;
1608 FloatIndex_swigregister = _IMP_kernel.FloatIndex_swigregister
1609 FloatIndex_swigregister(FloatIndex)
1611 class _ParticleIndexTag(_object):
1612 """Proxy of C++ IMP::kernel::ParticleIndexTag class"""
1613 __swig_setmethods__ = {}
1614 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ParticleIndexTag, name, value)
1615 __swig_getmethods__ = {}
1616 __getattr__ =
lambda self, name: _swig_getattr(self, _ParticleIndexTag, name)
1617 __repr__ = _swig_repr
1619 """__init__(IMP::kernel::ParticleIndexTag self) -> _ParticleIndexTag"""
1620 this = _IMP_kernel.new__ParticleIndexTag()
1621 try: self.this.append(this)
1622 except: self.this = this
1623 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexTag
1624 __del__ =
lambda self :
None;
1625 _ParticleIndexTag_swigregister = _IMP_kernel._ParticleIndexTag_swigregister
1626 _ParticleIndexTag_swigregister(_ParticleIndexTag)
1629 """Proxy of C++ IMP::kernel::ModelObject class"""
1630 __swig_setmethods__ = {}
1631 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1632 __setattr__ =
lambda self, name, value: _swig_setattr(self, ModelObject, name, value)
1633 __swig_getmethods__ = {}
1634 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1635 __getattr__ =
lambda self, name: _swig_getattr(self, ModelObject, name)
1636 def __init__(self, *args):
1637 """__init__(IMP::kernel::ModelObject self, Model m, std::string name) -> ModelObject"""
1638 if self.__class__ == ModelObject:
1642 this = _IMP_kernel.new_ModelObject(_self, *args)
1643 try: self.this.append(this)
1644 except: self.this = this
1645 if self.__class__ != ModelObject:
1647 IMP.base._director_objects.register(self)
1651 __swig_destroy__ = _IMP_kernel.delete_ModelObject
1652 __del__ =
lambda self :
None;
1653 def get_model(self):
1654 """get_model(ModelObject self) -> Model"""
1655 return _IMP_kernel.ModelObject_get_model(self)
1657 def get_inputs(self):
1658 """get_inputs(ModelObject self) -> IMP::kernel::ModelObjectsTemp"""
1659 return _IMP_kernel.ModelObject_get_inputs(self)
1661 def get_outputs(self):
1662 """get_outputs(ModelObject self) -> IMP::kernel::ModelObjectsTemp"""
1663 return _IMP_kernel.ModelObject_get_outputs(self)
1665 def get_interactions(self):
1666 """get_interactions(ModelObject self) -> IMP::kernel::ModelObjectsTemps"""
1667 return _IMP_kernel.ModelObject_get_interactions(self)
1669 def get_has_dependencies(self):
1670 """get_has_dependencies(ModelObject self) -> bool"""
1671 return _IMP_kernel.ModelObject_get_has_dependencies(self)
1673 def set_has_dependencies(self, *args):
1674 """set_has_dependencies(ModelObject self, bool tf)"""
1675 return _IMP_kernel.ModelObject_set_has_dependencies(self, *args)
1677 def set_has_required_score_states(self, *args):
1678 """set_has_required_score_states(ModelObject self, bool tf)"""
1679 return _IMP_kernel.ModelObject_set_has_required_score_states(self, *args)
1681 def get_has_required_score_states(self):
1682 """get_has_required_score_states(ModelObject self) -> bool"""
1683 return _IMP_kernel.ModelObject_get_has_required_score_states(self)
1686 """get_required_score_states(ModelObject self) -> IMP::kernel::ScoreStatesTemp const &"""
1687 return _IMP_kernel.ModelObject_get_required_score_states(self)
1689 def handle_set_has_required_score_states(self, *args):
1690 """handle_set_has_required_score_states(ModelObject self, bool arg0)"""
1691 return _IMP_kernel.ModelObject_handle_set_has_required_score_states(self, *args)
1693 def do_get_inputs(self):
1694 """do_get_inputs(ModelObject self) -> IMP::kernel::ModelObjectsTemp"""
1695 return _IMP_kernel.ModelObject_do_get_inputs(self)
1697 def do_get_outputs(self):
1698 """do_get_outputs(ModelObject self) -> IMP::kernel::ModelObjectsTemp"""
1699 return _IMP_kernel.ModelObject_do_get_outputs(self)
1701 def do_get_interactions(self):
1702 """do_get_interactions(ModelObject self) -> IMP::kernel::ModelObjectsTemps"""
1703 return _IMP_kernel.ModelObject_do_get_interactions(self)
1706 """__str__(ModelObject self) -> std::string"""
1707 return _IMP_kernel.ModelObject___str__(self)
1710 """__repr__(ModelObject self) -> std::string"""
1711 return _IMP_kernel.ModelObject___repr__(self)
1714 return _object_cast_to_ModelObject(o)
1715 get_from = staticmethod(get_from)
1717 def get_type_name(self):
1718 return self.__class__.__name__
1719 def do_show(self, out):
1721 def get_version_info(self):
1722 if"IMP::kernel" ==
"IMP":
1723 return VersionInfo(
"python",
"0")
1725 return IMP.VersionInfo(
"python",
"0")
1727 return _object_cast_to_ModelObject(o)
1728 get_from = staticmethod(get_from)
1730 def __disown__(self):
1732 _IMP_kernel.disown_ModelObject(self)
1733 return weakref_proxy(self)
1734 def do_destroy(self):
1735 """do_destroy(ModelObject self)"""
1736 return _IMP_kernel.ModelObject_do_destroy(self)
1738 ModelObject_swigregister = _IMP_kernel.ModelObject_swigregister
1739 ModelObject_swigregister(ModelObject)
1740 cvar = _IMP_kernel.cvar
1741 NO_MAX = cvar.NO_MAX
1742 BAD_SCORE = cvar.BAD_SCORE
1744 class _ParticleInputs(_object):
1745 """Proxy of C++ IMP::kernel::ParticleInputs class"""
1746 __swig_setmethods__ = {}
1747 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ParticleInputs, name, value)
1748 __swig_getmethods__ = {}
1749 __getattr__ =
lambda self, name: _swig_getattr(self, _ParticleInputs, name)
1750 __repr__ = _swig_repr
1751 def get_inputs(self, *args):
1752 """get_inputs(_ParticleInputs self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
1753 return _IMP_kernel._ParticleInputs_get_inputs(self, *args)
1756 """get_input_containers(_ParticleInputs self, Particle p) -> IMP::kernel::ContainersTemp"""
1757 return _IMP_kernel._ParticleInputs_get_input_containers(self, *args)
1760 """get_input_particles(_ParticleInputs self, Particle p) -> IMP::kernel::ParticlesTemp"""
1761 return _IMP_kernel._ParticleInputs_get_input_particles(self, *args)
1764 """__init__(IMP::kernel::ParticleInputs self) -> _ParticleInputs"""
1765 this = _IMP_kernel.new__ParticleInputs()
1766 try: self.this.append(this)
1767 except: self.this = this
1768 _ParticleInputs_swigregister = _IMP_kernel._ParticleInputs_swigregister
1769 _ParticleInputs_swigregister(_ParticleInputs)
1771 class _ParticleOutputs(_object):
1772 """Proxy of C++ IMP::kernel::ParticleOutputs class"""
1773 __swig_setmethods__ = {}
1774 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ParticleOutputs, name, value)
1775 __swig_getmethods__ = {}
1776 __getattr__ =
lambda self, name: _swig_getattr(self, _ParticleOutputs, name)
1777 __repr__ = _swig_repr
1778 def get_outputs(self, *args):
1779 """get_outputs(_ParticleOutputs self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
1780 return _IMP_kernel._ParticleOutputs_get_outputs(self, *args)
1783 """get_output_containers(_ParticleOutputs self, Particle p) -> IMP::kernel::ContainersTemp"""
1784 return _IMP_kernel._ParticleOutputs_get_output_containers(self, *args)
1787 """get_output_particles(_ParticleOutputs self, Particle p) -> IMP::kernel::ParticlesTemp"""
1788 return _IMP_kernel._ParticleOutputs_get_output_particles(self, *args)
1791 """__init__(IMP::kernel::ParticleOutputs self) -> _ParticleOutputs"""
1792 this = _IMP_kernel.new__ParticleOutputs()
1793 try: self.this.append(this)
1794 except: self.this = this
1795 _ParticleOutputs_swigregister = _IMP_kernel._ParticleOutputs_swigregister
1796 _ParticleOutputs_swigregister(_ParticleOutputs)
1800 """get_input_particles(IMP::kernel::ModelObjectsTemp const & mos) -> IMP::kernel::ParticlesTemp"""
1801 return _IMP_kernel.get_input_particles(*args)
1804 """get_input_containers(IMP::kernel::ModelObjectsTemp const & mos) -> IMP::kernel::ContainersTemp"""
1805 return _IMP_kernel.get_input_containers(*args)
1808 """get_output_particles(IMP::kernel::ModelObjectsTemp const & mos) -> IMP::kernel::ParticlesTemp"""
1809 return _IMP_kernel.get_output_particles(*args)
1812 """get_output_containers(IMP::kernel::ModelObjectsTemp const & mos) -> IMP::kernel::ContainersTemp"""
1813 return _IMP_kernel.get_output_containers(*args)
1815 """Proxy of C++ IMP::kernel::DerivativeAccumulator class"""
1816 __swig_setmethods__ = {}
1817 __setattr__ =
lambda self, name, value: _swig_setattr(self, DerivativeAccumulator, name, value)
1818 __swig_getmethods__ = {}
1819 __getattr__ =
lambda self, name: _swig_getattr(self, DerivativeAccumulator, name)
1820 __repr__ = _swig_repr
1821 def __init__(self, *args):
1823 __init__(IMP::kernel::DerivativeAccumulator self, double weight=1.0) -> DerivativeAccumulator
1824 __init__(IMP::kernel::DerivativeAccumulator self) -> DerivativeAccumulator
1825 __init__(IMP::kernel::DerivativeAccumulator self, DerivativeAccumulator copy, double weight) -> DerivativeAccumulator
1827 this = _IMP_kernel.new_DerivativeAccumulator(*args)
1828 try: self.this.append(this)
1829 except: self.this = this
1830 def __call__(self, *args):
1831 """__call__(DerivativeAccumulator self, double const value) -> double"""
1832 return _IMP_kernel.DerivativeAccumulator___call__(self, *args)
1834 def get_weight(self):
1835 """get_weight(DerivativeAccumulator self) -> double"""
1836 return _IMP_kernel.DerivativeAccumulator_get_weight(self)
1838 def show(self, *args):
1840 show(DerivativeAccumulator self, _ostream out=std::cout)
1841 show(DerivativeAccumulator self)
1843 return _IMP_kernel.DerivativeAccumulator_show(self, *args)
1845 __swig_destroy__ = _IMP_kernel.delete_DerivativeAccumulator
1846 __del__ =
lambda self :
None;
1847 DerivativeAccumulator_swigregister = _IMP_kernel.DerivativeAccumulator_swigregister
1848 DerivativeAccumulator_swigregister(DerivativeAccumulator)
1851 """Proxy of C++ IMP::kernel::EvaluationState class"""
1852 __swig_setmethods__ = {}
1853 __setattr__ =
lambda self, name, value: _swig_setattr(self, EvaluationState, name, value)
1854 __swig_getmethods__ = {}
1855 __getattr__ =
lambda self, name: _swig_getattr(self, EvaluationState, name)
1856 __swig_setmethods__[
"score"] = _IMP_kernel.EvaluationState_score_set
1857 __swig_getmethods__[
"score"] = _IMP_kernel.EvaluationState_score_get
1858 if _newclass:score = _swig_property(_IMP_kernel.EvaluationState_score_get, _IMP_kernel.EvaluationState_score_set)
1859 __swig_setmethods__[
"good"] = _IMP_kernel.EvaluationState_good_set
1860 __swig_getmethods__[
"good"] = _IMP_kernel.EvaluationState_good_get
1861 if _newclass:good = _swig_property(_IMP_kernel.EvaluationState_good_get, _IMP_kernel.EvaluationState_good_set)
1862 def __init__(self, *args):
1864 __init__(IMP::kernel::EvaluationState self, double oscore, bool ogood) -> EvaluationState
1865 __init__(IMP::kernel::EvaluationState self) -> EvaluationState
1867 this = _IMP_kernel.new_EvaluationState(*args)
1868 try: self.this.append(this)
1869 except: self.this = this
1870 def show(self, *args):
1872 show(EvaluationState self, _ostream out=std::cout)
1873 show(EvaluationState self)
1875 return _IMP_kernel.EvaluationState_show(self, *args)
1878 """__str__(EvaluationState self) -> std::string"""
1879 return _IMP_kernel.EvaluationState___str__(self)
1882 """__repr__(EvaluationState self) -> std::string"""
1883 return _IMP_kernel.EvaluationState___repr__(self)
1885 __swig_destroy__ = _IMP_kernel.delete_EvaluationState
1886 __del__ =
lambda self :
None;
1887 EvaluationState_swigregister = _IMP_kernel.EvaluationState_swigregister
1888 EvaluationState_swigregister(EvaluationState)
1891 """Proxy of C++ IMP::kernel::ScoreAccumulator class"""
1892 __swig_setmethods__ = {}
1893 for _s
in [IMP.base._Value]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1894 __setattr__ =
lambda self, name, value: _swig_setattr(self, ScoreAccumulator, name, value)
1895 __swig_getmethods__ = {}
1896 for _s
in [IMP.base._Value]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1897 __getattr__ =
lambda self, name: _swig_getattr(self, ScoreAccumulator, name)
1898 def __init__(self, *args):
1900 __init__(IMP::kernel::ScoreAccumulator self) -> ScoreAccumulator
1901 __init__(IMP::kernel::ScoreAccumulator self, ScoreAccumulator o, Restraint r) -> ScoreAccumulator
1902 __init__(IMP::kernel::ScoreAccumulator self, ScoreAccumulator o, double weight, double local_max) -> ScoreAccumulator
1904 this = _IMP_kernel.new_ScoreAccumulator(*args)
1905 try: self.this.append(this)
1906 except: self.this = this
1907 def add_score(self, *args):
1908 """add_score(ScoreAccumulator self, double score)"""
1909 return _IMP_kernel.ScoreAccumulator_add_score(self, *args)
1911 def get_abort_evaluation(self):
1912 """get_abort_evaluation(ScoreAccumulator self) -> bool"""
1913 return _IMP_kernel.ScoreAccumulator_get_abort_evaluation(self)
1915 def get_is_evaluate_if_below(self):
1916 """get_is_evaluate_if_below(ScoreAccumulator self) -> bool"""
1917 return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_below(self)
1919 def get_is_evaluate_if_good(self):
1920 """get_is_evaluate_if_good(ScoreAccumulator self) -> bool"""
1921 return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_good(self)
1923 def get_maximum(self):
1924 """get_maximum(ScoreAccumulator self) -> double"""
1925 return _IMP_kernel.ScoreAccumulator_get_maximum(self)
1927 def get_derivative_accumulator(self):
1928 """get_derivative_accumulator(ScoreAccumulator self) -> DerivativeAccumulator"""
1929 return _IMP_kernel.ScoreAccumulator_get_derivative_accumulator(self)
1931 def show(self, *args):
1933 show(ScoreAccumulator self, _ostream out=std::cout)
1934 show(ScoreAccumulator self)
1936 return _IMP_kernel.ScoreAccumulator_show(self, *args)
1939 """__str__(ScoreAccumulator self) -> std::string"""
1940 return _IMP_kernel.ScoreAccumulator___str__(self)
1943 """__repr__(ScoreAccumulator self) -> std::string"""
1944 return _IMP_kernel.ScoreAccumulator___repr__(self)
1946 __swig_destroy__ = _IMP_kernel.delete_ScoreAccumulator
1947 __del__ =
lambda self :
None;
1948 ScoreAccumulator_swigregister = _IMP_kernel.ScoreAccumulator_swigregister
1949 ScoreAccumulator_swigregister(ScoreAccumulator)
1952 """Proxy of C++ IMP::kernel::ScoreState class"""
1953 __swig_setmethods__ = {}
1954 for _s
in [ModelObject]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
1955 __setattr__ =
lambda self, name, value: _swig_setattr(self, ScoreState, name, value)
1956 __swig_getmethods__ = {}
1957 for _s
in [ModelObject]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
1958 __getattr__ =
lambda self, name: _swig_getattr(self, ScoreState, name)
1959 def __init__(self, *args):
1960 """__init__(IMP::kernel::ScoreState self, Model m, std::string name) -> ScoreState"""
1961 if self.__class__ == ScoreState:
1965 this = _IMP_kernel.new_ScoreState(_self, *args)
1966 try: self.this.append(this)
1967 except: self.this = this
1968 if self.__class__ != ScoreState:
1970 IMP.base._director_objects.register(self)
1974 def before_evaluate(self):
1975 """before_evaluate(ScoreState self)"""
1976 return _IMP_kernel.ScoreState_before_evaluate(self)
1978 def after_evaluate(self, *args):
1979 """after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
1980 return _IMP_kernel.ScoreState_after_evaluate(self, *args)
1982 def get_has_update_order(self):
1983 """get_has_update_order(ScoreState self) -> bool"""
1984 return _IMP_kernel.ScoreState_get_has_update_order(self)
1987 """get_update_order(ScoreState self) -> unsigned int"""
1988 return _IMP_kernel.ScoreState_get_update_order(self)
1990 def handle_set_has_required_score_states(self, *args):
1991 """handle_set_has_required_score_states(ScoreState self, bool tf)"""
1992 return _IMP_kernel.ScoreState_handle_set_has_required_score_states(self, *args)
1994 def do_before_evaluate(self):
1995 """do_before_evaluate(ScoreState self)"""
1996 return _IMP_kernel.ScoreState_do_before_evaluate(self)
1998 def do_after_evaluate(self, *args):
1999 """do_after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
2000 return _IMP_kernel.ScoreState_do_after_evaluate(self, *args)
2002 __swig_destroy__ = _IMP_kernel.delete_ScoreState
2003 __del__ =
lambda self :
None;
2005 """__str__(ScoreState self) -> std::string"""
2006 return _IMP_kernel.ScoreState___str__(self)
2009 """__repr__(ScoreState self) -> std::string"""
2010 return _IMP_kernel.ScoreState___repr__(self)
2013 return _object_cast_to_ScoreState(o)
2014 get_from = staticmethod(get_from)
2016 def get_type_name(self):
2017 return self.__class__.__name__
2018 def do_show(self, out):
2020 def get_version_info(self):
2021 if"IMP::kernel" ==
"IMP":
2022 return VersionInfo(
"python",
"0")
2024 return IMP.VersionInfo(
"python",
"0")
2026 return _object_cast_to_ScoreState(o)
2027 get_from = staticmethod(get_from)
2029 def __disown__(self):
2031 _IMP_kernel.disown_ScoreState(self)
2032 return weakref_proxy(self)
2033 def do_destroy(self):
2034 """do_destroy(ScoreState self)"""
2035 return _IMP_kernel.ScoreState_do_destroy(self)
2037 def do_get_inputs(self):
2038 """do_get_inputs(ScoreState self) -> IMP::kernel::ModelObjectsTemp"""
2039 return _IMP_kernel.ScoreState_do_get_inputs(self)
2041 def do_get_outputs(self):
2042 """do_get_outputs(ScoreState self) -> IMP::kernel::ModelObjectsTemp"""
2043 return _IMP_kernel.ScoreState_do_get_outputs(self)
2045 def do_get_interactions(self):
2046 """do_get_interactions(ScoreState self) -> IMP::kernel::ModelObjectsTemps"""
2047 return _IMP_kernel.ScoreState_do_get_interactions(self)
2049 ScoreState_swigregister = _IMP_kernel.ScoreState_swigregister
2050 ScoreState_swigregister(ScoreState)
2054 """get_update_order(IMP::kernel::ScoreStatesTemp input) -> IMP::kernel::ScoreStatesTemp"""
2055 return _IMP_kernel.get_update_order(*args)
2057 """Proxy of C++ IMP::kernel::Constraint class"""
2058 __swig_setmethods__ = {}
2059 for _s
in [ScoreState]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
2060 __setattr__ =
lambda self, name, value: _swig_setattr(self, Constraint, name, value)
2061 __swig_getmethods__ = {}
2062 for _s
in [ScoreState]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
2063 __getattr__ =
lambda self, name: _swig_getattr(self, Constraint, name)
2064 def __init__(self, *args):
2066 __init__(IMP::kernel::Constraint self, Model m, std::string name="Constraint %1%") -> Constraint
2067 __init__(IMP::kernel::Constraint self, Model m) -> Constraint
2069 if self.__class__ == Constraint:
2073 this = _IMP_kernel.new_Constraint(_self, *args)
2074 try: self.this.append(this)
2075 except: self.this = this
2076 if self.__class__ != Constraint:
2078 IMP.base._director_objects.register(self)
2082 def do_update_attributes(self):
2083 """do_update_attributes(Constraint self)"""
2084 return _IMP_kernel.Constraint_do_update_attributes(self)
2086 def do_update_derivatives(self, *args):
2087 """do_update_derivatives(Constraint self, DerivativeAccumulator da)"""
2088 return _IMP_kernel.Constraint_do_update_derivatives(self, *args)
2090 def do_before_evaluate(self):
2091 """do_before_evaluate(Constraint self)"""
2092 return _IMP_kernel.Constraint_do_before_evaluate(self)
2094 def do_after_evaluate(self, *args):
2095 """do_after_evaluate(Constraint self, DerivativeAccumulator da)"""
2096 return _IMP_kernel.Constraint_do_after_evaluate(self, *args)
2098 __swig_destroy__ = _IMP_kernel.delete_Constraint
2099 __del__ =
lambda self :
None;
2101 """__str__(Constraint self) -> std::string"""
2102 return _IMP_kernel.Constraint___str__(self)
2105 """__repr__(Constraint self) -> std::string"""
2106 return _IMP_kernel.Constraint___repr__(self)
2109 return _object_cast_to_Constraint(o)
2110 get_from = staticmethod(get_from)
2112 def get_type_name(self):
2113 return self.__class__.__name__
2114 def do_show(self, out):
2116 def get_version_info(self):
2117 if"IMP::kernel" ==
"IMP":
2118 return VersionInfo(
"python",
"0")
2120 return IMP.VersionInfo(
"python",
"0")
2122 return _object_cast_to_Constraint(o)
2123 get_from = staticmethod(get_from)
2125 def __disown__(self):
2127 _IMP_kernel.disown_Constraint(self)
2128 return weakref_proxy(self)
2129 def do_destroy(self):
2130 """do_destroy(Constraint self)"""
2131 return _IMP_kernel.Constraint_do_destroy(self)
2133 def do_get_inputs(self):
2134 """do_get_inputs(Constraint self) -> IMP::kernel::ModelObjectsTemp"""
2135 return _IMP_kernel.Constraint_do_get_inputs(self)
2137 def do_get_outputs(self):
2138 """do_get_outputs(Constraint self) -> IMP::kernel::ModelObjectsTemp"""
2139 return _IMP_kernel.Constraint_do_get_outputs(self)
2141 def do_get_interactions(self):
2142 """do_get_interactions(Constraint self) -> IMP::kernel::ModelObjectsTemps"""
2143 return _IMP_kernel.Constraint_do_get_interactions(self)
2145 Constraint_swigregister = _IMP_kernel.Constraint_swigregister
2146 Constraint_swigregister(Constraint)
2149 """Proxy of C++ IMP::kernel::Container class"""
2150 __swig_setmethods__ = {}
2151 for _s
in [ModelObject]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
2152 __setattr__ =
lambda self, name, value: _swig_setattr(self, Container, name, value)
2153 __swig_getmethods__ = {}
2154 for _s
in [ModelObject]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
2155 __getattr__ =
lambda self, name: _swig_getattr(self, Container, name)
2156 def __init__(self, *args):
2158 __init__(IMP::kernel::Container self, Model m, std::string name="Container %1%") -> Container
2159 __init__(IMP::kernel::Container self, Model m) -> Container
2161 if self.__class__ == Container:
2165 this = _IMP_kernel.new_Container(_self, *args)
2166 try: self.this.append(this)
2167 except: self.this = this
2168 if self.__class__ != Container:
2170 IMP.base._director_objects.register(self)
2174 def do_get_contents_hash(self):
2175 """do_get_contents_hash(Container self) -> std::size_t"""
2176 return _IMP_kernel.Container_do_get_contents_hash(self)
2178 def get_all_possible_indexes(self):
2179 """get_all_possible_indexes(Container self) -> IMP::kernel::ParticleIndexes"""
2180 return _IMP_kernel.Container_get_all_possible_indexes(self)
2182 def get_contents_hash(self):
2183 """get_contents_hash(Container self) -> std::size_t"""
2184 return _IMP_kernel.Container_get_contents_hash(self)
2186 def do_get_outputs(self):
2187 """do_get_outputs(Container self) -> IMP::kernel::ModelObjectsTemp"""
2188 return _IMP_kernel.Container_do_get_outputs(self)
2190 def get_is_decomposable(self):
2191 """get_is_decomposable(Container self) -> bool"""
2192 return _IMP_kernel.Container_get_is_decomposable(self)
2194 def validate_readable(self):
2195 """validate_readable(Container self)"""
2196 return _IMP_kernel.Container_validate_readable(self)
2198 def validate_writable(self):
2199 """validate_writable(Container self)"""
2200 return _IMP_kernel.Container_validate_writable(self)
2202 def set_is_readable(self, *args):
2203 """set_is_readable(Container self, bool tf)"""
2204 return _IMP_kernel.Container_set_is_readable(self, *args)
2206 def set_is_writable(self, *args):
2207 """set_is_writable(Container self, bool tf)"""
2208 return _IMP_kernel.Container_set_is_writable(self, *args)
2210 __swig_destroy__ = _IMP_kernel.delete_Container
2211 __del__ =
lambda self :
None;
2213 """__str__(Container self) -> std::string"""
2214 return _IMP_kernel.Container___str__(self)
2217 """__repr__(Container self) -> std::string"""
2218 return _IMP_kernel.Container___repr__(self)
2221 return _object_cast_to_Container(o)
2222 get_from = staticmethod(get_from)
2224 def get_type_name(self):
2225 return self.__class__.__name__
2226 def do_show(self, out):
2228 def get_version_info(self):
2229 if"IMP::kernel" ==
"IMP":
2230 return VersionInfo(
"python",
"0")
2232 return IMP.VersionInfo(
"python",
"0")
2234 return _object_cast_to_Container(o)
2235 get_from = staticmethod(get_from)
2237 def __disown__(self):
2239 _IMP_kernel.disown_Container(self)
2240 return weakref_proxy(self)
2241 def do_destroy(self):
2242 """do_destroy(Container self)"""
2243 return _IMP_kernel.Container_do_destroy(self)
2245 def handle_set_has_required_score_states(self, *args):
2246 """handle_set_has_required_score_states(Container self, bool arg0)"""
2247 return _IMP_kernel.Container_handle_set_has_required_score_states(self, *args)
2249 def do_get_inputs(self):
2250 """do_get_inputs(Container self) -> IMP::kernel::ModelObjectsTemp"""
2251 return _IMP_kernel.Container_do_get_inputs(self)
2253 def do_get_interactions(self):
2254 """do_get_interactions(Container self) -> IMP::kernel::ModelObjectsTemps"""
2255 return _IMP_kernel.Container_do_get_interactions(self)
2257 Container_swigregister = _IMP_kernel.Container_swigregister
2258 Container_swigregister(Container)
2261 """Proxy of C++ IMP::kernel::Restraint class"""
2262 __swig_setmethods__ = {}
2263 for _s
in [ModelObject]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
2264 __setattr__ =
lambda self, name, value: _swig_setattr(self, Restraint, name, value)
2265 __swig_getmethods__ = {}
2266 for _s
in [ModelObject]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
2267 __getattr__ =
lambda self, name: _swig_getattr(self, Restraint, name)
2268 def __init__(self, *args):
2269 """__init__(IMP::kernel::Restraint self, Model m, std::string name) -> Restraint"""
2270 if self.__class__ == Restraint:
2274 this = _IMP_kernel.new_Restraint(_self, *args)
2275 try: self.this.append(this)
2276 except: self.this = this
2277 if self.__class__ != Restraint:
2279 IMP.base._director_objects.register(self)
2283 def get_score(self):
2284 """get_score(Restraint self) -> double"""
2285 return _IMP_kernel.Restraint_get_score(self)
2287 def evaluate(self, *args):
2288 """evaluate(Restraint self, bool calc_derivs) -> double"""
2289 return _IMP_kernel.Restraint_evaluate(self, *args)
2291 def evaluate_if_good(self, *args):
2292 """evaluate_if_good(Restraint self, bool calc_derivatives) -> double"""
2293 return _IMP_kernel.Restraint_evaluate_if_good(self, *args)
2295 def evaluate_if_below(self, *args):
2296 """evaluate_if_below(Restraint self, bool calc_derivatives, double max) -> double"""
2297 return _IMP_kernel.Restraint_evaluate_if_below(self, *args)
2299 def unprotected_evaluate(self, *args):
2300 """unprotected_evaluate(Restraint self, DerivativeAccumulator da) -> double"""
2301 return _IMP_kernel.Restraint_unprotected_evaluate(self, *args)
2303 def unprotected_evaluate_if_good(self, *args):
2304 """unprotected_evaluate_if_good(Restraint self, DerivativeAccumulator da, double max) -> double"""
2305 return _IMP_kernel.Restraint_unprotected_evaluate_if_good(self, *args)
2307 def unprotected_evaluate_if_below(self, *args):
2308 """unprotected_evaluate_if_below(Restraint self, DerivativeAccumulator da, double max) -> double"""
2309 return _IMP_kernel.Restraint_unprotected_evaluate_if_below(self, *args)
2311 def add_score_and_derivatives(self, *args):
2312 """add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
2313 return _IMP_kernel.Restraint_add_score_and_derivatives(self, *args)
2316 """create_decomposition(Restraint self) -> Restraint"""
2317 return _IMP_kernel.Restraint_create_decomposition(self)
2319 def create_current_decomposition(self):
2320 """create_current_decomposition(Restraint self) -> Restraint"""
2321 return _IMP_kernel.Restraint_create_current_decomposition(self)
2323 def set_weight(self, *args):
2324 """set_weight(Restraint self, IMP::Float weight)"""
2325 return _IMP_kernel.Restraint_set_weight(self, *args)
2327 def get_weight(self):
2328 """get_weight(Restraint self) -> IMP::Float"""
2329 return _IMP_kernel.Restraint_get_weight(self)
2331 def get_maximum_score(self):
2332 """get_maximum_score(Restraint self) -> double"""
2333 return _IMP_kernel.Restraint_get_maximum_score(self)
2335 def set_maximum_score(self, *args):
2336 """set_maximum_score(Restraint self, double s)"""
2337 return _IMP_kernel.Restraint_set_maximum_score(self, *args)
2341 create_scoring_function(Restraint self, double weight=1.0, double max=NO_MAX) -> ScoringFunction
2342 create_scoring_function(Restraint self, double weight=1.0) -> ScoringFunction
2343 create_scoring_function(Restraint self) -> ScoringFunction
2345 return _IMP_kernel.Restraint_create_scoring_function(self, *args)
2347 def set_last_score(self, *args):
2348 """set_last_score(Restraint self, double s)"""
2349 return _IMP_kernel.Restraint_set_last_score(self, *args)
2351 def get_last_score(self):
2352 """get_last_score(Restraint self) -> double"""
2353 return _IMP_kernel.Restraint_get_last_score(self)
2355 def get_was_good(self):
2356 """get_was_good(Restraint self) -> bool"""
2357 return _IMP_kernel.Restraint_get_was_good(self)
2359 __swig_destroy__ = _IMP_kernel.delete_Restraint
2360 __del__ =
lambda self :
None;
2361 def do_create_decomposition(self):
2362 """do_create_decomposition(Restraint self) -> IMP::kernel::Restraints"""
2363 return _IMP_kernel.Restraint_do_create_decomposition(self)
2365 def do_create_current_decomposition(self):
2366 """do_create_current_decomposition(Restraint self) -> IMP::kernel::Restraints"""
2367 return _IMP_kernel.Restraint_do_create_current_decomposition(self)
2369 def do_add_score_and_derivatives(self, *args):
2370 """do_add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
2371 return _IMP_kernel.Restraint_do_add_score_and_derivatives(self, *args)
2373 def do_get_outputs(self):
2374 """do_get_outputs(Restraint self) -> IMP::kernel::ModelObjectsTemp"""
2375 return _IMP_kernel.Restraint_do_get_outputs(self)
2378 """__str__(Restraint self) -> std::string"""
2379 return _IMP_kernel.Restraint___str__(self)
2382 """__repr__(Restraint self) -> std::string"""
2383 return _IMP_kernel.Restraint___repr__(self)
2386 return _object_cast_to_Restraint(o)
2387 get_from = staticmethod(get_from)
2389 def get_type_name(self):
2390 return self.__class__.__name__
2391 def do_show(self, out):
2393 def get_version_info(self):
2394 if"IMP::kernel" ==
"IMP":
2395 return VersionInfo(
"python",
"0")
2397 return IMP.VersionInfo(
"python",
"0")
2399 return _object_cast_to_Restraint(o)
2400 get_from = staticmethod(get_from)
2402 def __disown__(self):
2404 _IMP_kernel.disown_Restraint(self)
2405 return weakref_proxy(self)
2406 def do_destroy(self):
2407 """do_destroy(Restraint self)"""
2408 return _IMP_kernel.Restraint_do_destroy(self)
2410 def handle_set_has_required_score_states(self, *args):
2411 """handle_set_has_required_score_states(Restraint self, bool arg0)"""
2412 return _IMP_kernel.Restraint_handle_set_has_required_score_states(self, *args)
2414 def do_get_inputs(self):
2415 """do_get_inputs(Restraint self) -> IMP::kernel::ModelObjectsTemp"""
2416 return _IMP_kernel.Restraint_do_get_inputs(self)
2418 def do_get_interactions(self):
2419 """do_get_interactions(Restraint self) -> IMP::kernel::ModelObjectsTemps"""
2420 return _IMP_kernel.Restraint_do_get_interactions(self)
2422 Restraint_swigregister = _IMP_kernel.Restraint_swigregister
2423 Restraint_swigregister(Restraint)
2425 class _RestraintsAdaptor(IMP.base._InputAdaptor):
2426 """Proxy of C++ IMP::kernel::RestraintsAdaptor class"""
2427 __swig_setmethods__ = {}
2428 for _s
in [IMP.base._InputAdaptor]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
2429 __setattr__ =
lambda self, name, value: _swig_setattr(self, _RestraintsAdaptor, name, value)
2430 __swig_getmethods__ = {}
2431 for _s
in [IMP.base._InputAdaptor]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
2432 __getattr__ =
lambda self, name: _swig_getattr(self, _RestraintsAdaptor, name)
2433 __repr__ = _swig_repr
2434 def __init__(self, *args):
2436 __init__(IMP::kernel::RestraintsAdaptor self) -> _RestraintsAdaptor
2437 __init__(IMP::kernel::RestraintsAdaptor self, IMP::kernel::Restraints const & sf) -> _RestraintsAdaptor
2438 __init__(IMP::kernel::RestraintsAdaptor self, IMP::kernel::RestraintsTemp const & sf) -> _RestraintsAdaptor
2439 __init__(IMP::kernel::RestraintsAdaptor self, Restraint sf) -> _RestraintsAdaptor
2440 __init__(IMP::kernel::RestraintsAdaptor self, Model sf) -> _RestraintsAdaptor
2441 __init__(IMP::kernel::RestraintsAdaptor self, IMP::kernel::ModelsTemp const & sf) -> _RestraintsAdaptor
2443 this = _IMP_kernel.new__RestraintsAdaptor(*args)
2444 try: self.this.append(this)
2445 except: self.this = this
2446 __swig_destroy__ = _IMP_kernel.delete__RestraintsAdaptor
2447 __del__ =
lambda self :
None;
2448 _RestraintsAdaptor_swigregister = _IMP_kernel._RestraintsAdaptor_swigregister
2449 _RestraintsAdaptor_swigregister(_RestraintsAdaptor)
2452 """Proxy of C++ IMP::kernel::RestraintSet class"""
2453 __swig_setmethods__ = {}
2454 for _s
in [Restraint]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
2455 __setattr__ =
lambda self, name, value: _swig_setattr(self, RestraintSet, name, value)
2456 __swig_getmethods__ = {}
2457 for _s
in [Restraint]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
2458 __getattr__ =
lambda self, name: _swig_getattr(self, RestraintSet, name)
2459 def __init__(self, *args):
2461 __init__(IMP::kernel::RestraintSet self, Model m, double weight, std::string const & name="RestraintSet %1%") -> RestraintSet
2462 __init__(IMP::kernel::RestraintSet self, Model m, double weight) -> RestraintSet
2463 __init__(IMP::kernel::RestraintSet self, Model m, std::string const & name="RestraintSet %1%") -> RestraintSet
2464 __init__(IMP::kernel::RestraintSet self, Model m) -> RestraintSet
2465 __init__(IMP::kernel::RestraintSet self, IMP::kernel::RestraintsTemp const & rs, double weight, std::string const & name="RestraintSet %1%") -> RestraintSet
2466 __init__(IMP::kernel::RestraintSet self, IMP::kernel::RestraintsTemp const & rs, double weight) -> RestraintSet
2468 this = _IMP_kernel.new_RestraintSet(*args)
2469 try: self.this.append(this)
2470 except: self.this = this
2471 def get_version_info(self):
2472 """get_version_info(RestraintSet self) -> VersionInfo"""
2473 return _IMP_kernel.RestraintSet_get_version_info(self)
2475 def remove_restraint(self, *args):
2476 """remove_restraint(RestraintSet self, Restraint d)"""
2477 return _IMP_kernel.RestraintSet_remove_restraint(self, *args)
2479 def remove_restraints(self, *args):
2480 """remove_restraints(RestraintSet self, IMP::kernel::Restraints const & d)"""
2481 return _IMP_kernel.RestraintSet_remove_restraints(self, *args)
2483 def set_restraints(self, *args):
2484 """set_restraints(RestraintSet self, IMP::kernel::Restraints const & ps)"""
2485 return _IMP_kernel.RestraintSet_set_restraints(self, *args)
2487 def set_restraints_order(self, *args):
2488 """set_restraints_order(RestraintSet self, IMP::kernel::Restraints const & objs)"""
2489 return _IMP_kernel.RestraintSet_set_restraints_order(self, *args)
2492 """add_restraint(RestraintSet self, Restraint obj) -> unsigned int"""
2493 return _IMP_kernel.RestraintSet_add_restraint(self, *args)
2496 """add_restraints(RestraintSet self, IMP::kernel::Restraints const & objs)"""
2497 return _IMP_kernel.RestraintSet_add_restraints(self, *args)
2499 def clear_restraints(self):
2500 """clear_restraints(RestraintSet self)"""
2501 return _IMP_kernel.RestraintSet_clear_restraints(self)
2503 def get_number_of_restraints(self):
2504 """get_number_of_restraints(RestraintSet self) -> unsigned int"""
2505 return _IMP_kernel.RestraintSet_get_number_of_restraints(self)
2507 def get_has_restraints(self):
2508 """get_has_restraints(RestraintSet self) -> bool"""
2509 return _IMP_kernel.RestraintSet_get_has_restraints(self)
2511 def get_restraint(self, *args):
2512 """get_restraint(RestraintSet self, unsigned int i) -> Restraint"""
2513 return _IMP_kernel.RestraintSet_get_restraint(self, *args)
2515 def get_restraints(self):
2516 """get_restraints(RestraintSet self) -> IMP::kernel::Restraints"""
2517 return _IMP_kernel.RestraintSet_get_restraints(self)
2519 def reserve_restraints(self, *args):
2520 """reserve_restraints(RestraintSet self, unsigned int sz)"""
2521 return _IMP_kernel.RestraintSet_reserve_restraints(self, *args)
2523 def get_non_sets_and_sets(self):
2524 """get_non_sets_and_sets(RestraintSet self) -> std::pair< IMP::kernel::RestraintsTemp,IMP::kernel::RestraintSetsTemp >"""
2525 return _IMP_kernel.RestraintSet_get_non_sets_and_sets(self)
2527 def do_get_inputs(self):
2528 """do_get_inputs(RestraintSet self) -> IMP::kernel::ModelObjectsTemp"""
2529 return _IMP_kernel.RestraintSet_do_get_inputs(self)
2533 create_scoring_function(RestraintSet self, double weight=1.0, double max=std::numeric_limits< double >::max()) -> ScoringFunction
2534 create_scoring_function(RestraintSet self, double weight=1.0) -> ScoringFunction
2535 create_scoring_function(RestraintSet self) -> ScoringFunction
2537 return _IMP_kernel.RestraintSet_create_scoring_function(self, *args)
2540 """__str__(RestraintSet self) -> std::string"""
2541 return _IMP_kernel.RestraintSet___str__(self)
2544 """__repr__(RestraintSet self) -> std::string"""
2545 return _IMP_kernel.RestraintSet___repr__(self)
2548 return _object_cast_to_RestraintSet(o)
2549 get_from = staticmethod(get_from)
2551 RestraintSet_swigregister = _IMP_kernel.RestraintSet_swigregister
2552 RestraintSet_swigregister(RestraintSet)
2555 def get_restraints(*args):
2556 """get_restraints(IMP::kernel::RestraintsTemp const & rs) -> IMP::kernel::RestraintsTemp"""
2557 return _IMP_kernel.get_restraints(*args)
2558 def _check_particle(p, a):
2559 if (
not p.get_is_active()):
2560 raise ValueError(
"Inactive Particle")
2561 if (type(a)() == a):
2562 raise IndexError(
"Cannot use default Index")
2563 if (
not p.has_attribute(a)):
2564 raise IndexError(
"Particle does not have attribute")
2567 """Proxy of C++ IMP::kernel::Particle class"""
2568 __swig_setmethods__ = {}
2569 for _s
in [ModelObject]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
2570 __setattr__ =
lambda self, name, value: _swig_setattr(self, Particle, name, value)
2571 __swig_getmethods__ = {}
2572 for _s
in [ModelObject]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
2573 __getattr__ =
lambda self, name: _swig_getattr(self, Particle, name)
2574 def get_version_info(self):
2575 """get_version_info(Particle self) -> VersionInfo"""
2576 return _IMP_kernel.Particle_get_version_info(self)
2578 def __init__(self, *args):
2580 __init__(IMP::kernel::Particle self, Model m, std::string name) -> Particle
2581 __init__(IMP::kernel::Particle self, Model m) -> Particle
2583 this = _IMP_kernel.new_Particle(*args)
2584 try: self.this.append(this)
2585 except: self.this = this
2586 def get_float_keys(self):
2587 """get_float_keys(Particle self) -> IMP::kernel::FloatKeys"""
2588 return _IMP_kernel.Particle_get_float_keys(self)
2590 def get_int_keys(self):
2591 """get_int_keys(Particle self) -> IMP::kernel::IntKeys"""
2592 return _IMP_kernel.Particle_get_int_keys(self)
2594 def get_string_keys(self):
2595 """get_string_keys(Particle self) -> IMP::kernel::StringKeys"""
2596 return _IMP_kernel.Particle_get_string_keys(self)
2598 def get_object_keys(self):
2599 """get_object_keys(Particle self) -> IMP::kernel::ObjectKeys"""
2600 return _IMP_kernel.Particle_get_object_keys(self)
2602 def add_cache_attribute(self, *args):
2604 add_cache_attribute(Particle self, FloatKey name, IMP::Float value)
2605 add_cache_attribute(Particle self, IntKey name, IMP::Int value)
2606 add_cache_attribute(Particle self, StringKey name, IMP::String value)
2607 add_cache_attribute(Particle self, ObjectKey name, Object * value)
2608 add_cache_attribute(Particle self, IMP::kernel::WeakObjectKey name, Object * value)
2610 return _IMP_kernel.Particle_add_cache_attribute(self, *args)
2612 def get_weak_object_keys(self):
2613 """get_weak_object_keys(Particle self) -> IMP::kernel::WeakObjectKeys"""
2614 return _IMP_kernel.Particle_get_weak_object_keys(self)
2616 def add_to_derivative(self, *args):
2617 """add_to_derivative(Particle self, FloatKey key, IMP::Float value, DerivativeAccumulator da)"""
2618 return _IMP_kernel.Particle_add_to_derivative(self, *args)
2620 def set_is_optimized(self, *args):
2621 """set_is_optimized(Particle self, FloatKey k, bool tf)"""
2622 return _IMP_kernel.Particle_set_is_optimized(self, *args)
2624 def get_is_optimized(self, *args):
2625 """get_is_optimized(Particle self, FloatKey k) -> bool"""
2626 return _IMP_kernel.Particle_get_is_optimized(self, *args)
2628 def get_derivative(self, *args):
2629 """get_derivative(Particle self, FloatKey name) -> IMP::Float"""
2630 return _IMP_kernel.Particle_get_derivative(self, *args)
2632 def add_attribute(self, *args):
2634 add_attribute(Particle self, FloatKey name, IMP::Float initial_value)
2635 add_attribute(Particle self, IntKey name, IMP::Int initial_value)
2636 add_attribute(Particle self, StringKey name, IMP::String initial_value)
2637 add_attribute(Particle self, ObjectKey name, Object * initial_value)
2638 add_attribute(Particle self, IMP::kernel::WeakObjectKey name, Object * initial_value)
2639 add_attribute(Particle self, FloatKey name, IMP::Float const initial_value, bool optimized)
2640 add_attribute(Particle self, ParticleIndexKey k, Particle v)
2642 return _IMP_kernel.Particle_add_attribute(self, *args)
2644 def has_attribute(self, *args):
2646 has_attribute(Particle self, FloatKey name) -> bool
2647 has_attribute(Particle self, IntKey name) -> bool
2648 has_attribute(Particle self, StringKey name) -> bool
2649 has_attribute(Particle self, ObjectKey name) -> bool
2650 has_attribute(Particle self, IMP::kernel::WeakObjectKey name) -> bool
2651 has_attribute(Particle self, ParticleIndexKey k) -> bool
2653 return _IMP_kernel.Particle_has_attribute(self, *args)
2655 def set_value(self, *args):
2657 set_value(Particle self, FloatKey name, IMP::Float value)
2658 set_value(Particle self, IntKey name, IMP::Int value)
2659 set_value(Particle self, StringKey name, IMP::String value)
2660 set_value(Particle self, ObjectKey name, Object * value)
2661 set_value(Particle self, IMP::kernel::WeakObjectKey name, Object * value)
2662 set_value(Particle self, ParticleIndexKey k, Particle v)
2664 return _IMP_kernel.Particle_set_value(self, *args)
2666 def get_value(self, *args):
2668 get_value(Particle self, FloatKey name) -> IMP::Float
2669 get_value(Particle self, IntKey name) -> IMP::Int
2670 get_value(Particle self, StringKey name) -> IMP::String
2671 get_value(Particle self, ObjectKey name) -> Object
2672 get_value(Particle self, IMP::kernel::WeakObjectKey name) -> Object
2673 get_value(Particle self, ParticleIndexKey k) -> Particle
2675 return _IMP_kernel.Particle_get_value(self, *args)
2677 def remove_attribute(self, *args):
2679 remove_attribute(Particle self, FloatKey name)
2680 remove_attribute(Particle self, IntKey name)
2681 remove_attribute(Particle self, StringKey name)
2682 remove_attribute(Particle self, ObjectKey name)
2683 remove_attribute(Particle self, IMP::kernel::WeakObjectKey name)
2684 remove_attribute(Particle self, ParticleIndexKey k)
2686 return _IMP_kernel.Particle_remove_attribute(self, *args)
2688 def get_particle_keys(self):
2689 """get_particle_keys(Particle self) -> IMP::kernel::ParticleIndexKeys"""
2690 return _IMP_kernel.Particle_get_particle_keys(self)
2692 def show(self, *args):
2694 show(Particle self, _ostream out=std::cout)
2697 return _IMP_kernel.Particle_show(self, *args)
2699 def get_is_active(self):
2700 """get_is_active(Particle self) -> bool"""
2701 return _IMP_kernel.Particle_get_is_active(self)
2704 """get_index(Particle self) -> IMP::kernel::ParticleIndex"""
2705 return _IMP_kernel.Particle_get_index(self)
2707 def __eq__(self, *args):
2709 __eq__(Particle self, Particle o) -> bool
2710 __eq__(Particle self, Decorator d) -> bool
2712 return _IMP_kernel.Particle___eq__(self, *args)
2714 def __ne__(self, *args):
2716 __ne__(Particle self, Particle o) -> bool
2717 __ne__(Particle self, Decorator d) -> bool
2719 return _IMP_kernel.Particle___ne__(self, *args)
2721 def __le__(self, *args):
2723 __le__(Particle self, Particle o) -> bool
2724 __le__(Particle self, Decorator d) -> bool
2726 return _IMP_kernel.Particle___le__(self, *args)
2728 def __lt__(self, *args):
2730 __lt__(Particle self, Particle o) -> bool
2731 __lt__(Particle self, Decorator d) -> bool
2733 return _IMP_kernel.Particle___lt__(self, *args)
2735 def __ge__(self, *args):
2737 __ge__(Particle self, Particle o) -> bool
2738 __ge__(Particle self, Decorator d) -> bool
2740 return _IMP_kernel.Particle___ge__(self, *args)
2742 def __gt__(self, *args):
2744 __gt__(Particle self, Particle o) -> bool
2745 __gt__(Particle self, Decorator d) -> bool
2747 return _IMP_kernel.Particle___gt__(self, *args)
2750 """__str__(Particle self) -> std::string"""
2751 return _IMP_kernel.Particle___str__(self)
2754 """__repr__(Particle self) -> std::string"""
2755 return _IMP_kernel.Particle___repr__(self)
2758 return _object_cast_to_Particle(o)
2759 get_from = staticmethod(get_from)
2761 Particle_swigregister = _IMP_kernel.Particle_swigregister
2762 Particle_swigregister(Particle)
2764 class _ParticleAdaptor(IMP.base._InputAdaptor):
2765 """Proxy of C++ IMP::kernel::ParticleAdaptor class"""
2766 __swig_setmethods__ = {}
2767 for _s
in [IMP.base._InputAdaptor]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
2768 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ParticleAdaptor, name, value)
2769 __swig_getmethods__ = {}
2770 for _s
in [IMP.base._InputAdaptor]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
2771 __getattr__ =
lambda self, name: _swig_getattr(self, _ParticleAdaptor, name)
2772 __repr__ = _swig_repr
2773 def __init__(self, *args):
2775 __init__(IMP::kernel::ParticleAdaptor self) -> _ParticleAdaptor
2776 __init__(IMP::kernel::ParticleAdaptor self, Particle p) -> _ParticleAdaptor
2777 __init__(IMP::kernel::ParticleAdaptor self, Decorator d) -> _ParticleAdaptor
2779 this = _IMP_kernel.new__ParticleAdaptor(*args)
2780 try: self.this.append(this)
2781 except: self.this = this
2782 def get_model(self):
2783 """get_model(_ParticleAdaptor self) -> Model"""
2784 return _IMP_kernel._ParticleAdaptor_get_model(self)
2786 def get_particle_index(self):
2787 """get_particle_index(_ParticleAdaptor self) -> IMP::kernel::ParticleIndex"""
2788 return _IMP_kernel._ParticleAdaptor_get_particle_index(self)
2790 __swig_destroy__ = _IMP_kernel.delete__ParticleAdaptor
2791 __del__ =
lambda self :
None;
2792 _ParticleAdaptor_swigregister = _IMP_kernel._ParticleAdaptor_swigregister
2793 _ParticleAdaptor_swigregister(_ParticleAdaptor)
2795 class _DependencyGraphVertexIndex(_object):
2796 """Proxy of C++ IMP::kernel::DependencyGraphVertexIndex class"""
2797 __swig_setmethods__ = {}
2798 __setattr__ =
lambda self, name, value: _swig_setattr(self, _DependencyGraphVertexIndex, name, value)
2799 __swig_getmethods__ = {}
2800 __getattr__ =
lambda self, name: _swig_getattr(self, _DependencyGraphVertexIndex, name)
2801 __repr__ = _swig_repr
2803 """__init__(IMP::kernel::DependencyGraphVertexIndex self) -> _DependencyGraphVertexIndex"""
2804 this = _IMP_kernel.new__DependencyGraphVertexIndex()
2805 try: self.this.append(this)
2806 except: self.this = this
2807 __swig_destroy__ = _IMP_kernel.delete__DependencyGraphVertexIndex
2808 __del__ =
lambda self :
None;
2809 _DependencyGraphVertexIndex_swigregister = _IMP_kernel._DependencyGraphVertexIndex_swigregister
2810 _DependencyGraphVertexIndex_swigregister(_DependencyGraphVertexIndex)
2813 def show_as_graphviz(*args):
2814 """show_as_graphviz(IMP::kernel::DependencyGraph const & name, TextOutput out)"""
2815 return _IMP_kernel.show_as_graphviz(*args)
2817 def get_vertex_index(*args):
2818 """get_vertex_index(IMP::kernel::DependencyGraph const & g) -> _DependencyGraphVertexIndex"""
2819 return _IMP_kernel.get_vertex_index(*args)
2822 """get_dependency_graph(Model m) -> IMP::kernel::DependencyGraph"""
2823 return _IMP_kernel.get_dependency_graph(*args)
2826 """get_pruned_dependency_graph(Model m) -> IMP::kernel::DependencyGraph"""
2827 return _IMP_kernel.get_pruned_dependency_graph(*args)
2831 get_required_score_states(IMP::kernel::ModelObjectsTemp const & mos, IMP::kernel::ScoreStatesTemp exclude=IMP::kernel::ScoreStatesTemp()) -> IMP::kernel::ScoreStatesTemp
2832 get_required_score_states(IMP::kernel::ModelObjectsTemp const & mos) -> IMP::kernel::ScoreStatesTemp
2833 get_required_score_states(ModelObject p, IMP::kernel::ModelObjectsTemp const & all, IMP::kernel::DependencyGraph const & dg,
2834 _DependencyGraphVertexIndex index) -> IMP::kernel::ScoreStatesTemp
2836 return _IMP_kernel.get_required_score_states(*args)
2840 get_dependent_particles(ModelObject p, IMP::kernel::ModelObjectsTemp const & all, IMP::kernel::DependencyGraph const & dg,
2841 _DependencyGraphVertexIndex index) -> IMP::kernel::ParticlesTemp
2843 return _IMP_kernel.get_dependent_particles(*args)
2847 get_dependent_score_states(ModelObject p, IMP::kernel::ModelObjectsTemp const & all, IMP::kernel::DependencyGraph const & dg,
2848 _DependencyGraphVertexIndex index) -> IMP::kernel::ScoreStatesTemp
2850 return _IMP_kernel.get_dependent_score_states(*args)
2854 get_dependent_restraints(ModelObject p, IMP::kernel::ModelObjectsTemp const & all, IMP::kernel::DependencyGraph const & dg,
2855 _DependencyGraphVertexIndex index) -> IMP::kernel::RestraintsTemp
2856 get_dependent_restraints(Model m, IMP::kernel::ParticleIndex pi) -> IMP::kernel::RestraintsTemp
2858 return _IMP_kernel.get_dependent_restraints(*args)
2860 """Proxy of C++ IMP::kernel::ScoringFunction class"""
2861 __swig_setmethods__ = {}
2862 for _s
in [ModelObject]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
2863 __setattr__ =
lambda self, name, value: _swig_setattr(self, ScoringFunction, name, value)
2864 __swig_getmethods__ = {}
2865 for _s
in [ModelObject]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
2866 __getattr__ =
lambda self, name: _swig_getattr(self, ScoringFunction, name)
2867 def do_add_score_and_derivatives(self, *args):
2868 """do_add_score_and_derivatives(ScoringFunction self, ScoreAccumulator sa, IMP::kernel::ScoreStatesTemp const & ss)"""
2869 return _IMP_kernel.ScoringFunction_do_add_score_and_derivatives(self, *args)
2871 def get_score_accumulator_if_below(self, *args):
2872 """get_score_accumulator_if_below(ScoringFunction self, bool deriv, double max) -> ScoreAccumulator"""
2873 return _IMP_kernel.ScoringFunction_get_score_accumulator_if_below(self, *args)
2875 def get_score_accumulator_if_good(self, *args):
2876 """get_score_accumulator_if_good(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
2877 return _IMP_kernel.ScoringFunction_get_score_accumulator_if_good(self, *args)
2879 def get_score_accumulator(self, *args):
2880 """get_score_accumulator(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
2881 return _IMP_kernel.ScoringFunction_get_score_accumulator(self, *args)
2883 def __init__(self, *args):
2884 """__init__(IMP::kernel::ScoringFunction self, Model m, std::string name) -> ScoringFunction"""
2885 if self.__class__ == ScoringFunction:
2889 this = _IMP_kernel.new_ScoringFunction(_self, *args)
2890 try: self.this.append(this)
2891 except: self.this = this
2892 if self.__class__ != ScoringFunction:
2894 IMP.base._director_objects.register(self)
2898 def do_get_outputs(self):
2899 """do_get_outputs(ScoringFunction self) -> IMP::kernel::ModelObjectsTemp"""
2900 return _IMP_kernel.ScoringFunction_do_get_outputs(self)
2902 def evaluate_if_good(self, *args):
2903 """evaluate_if_good(ScoringFunction self, bool derivatives) -> double"""
2904 return _IMP_kernel.ScoringFunction_evaluate_if_good(self, *args)
2906 def evaluate(self, *args):
2907 """evaluate(ScoringFunction self, bool derivatives) -> double"""
2908 return _IMP_kernel.ScoringFunction_evaluate(self, *args)
2910 def evaluate_if_below(self, *args):
2911 """evaluate_if_below(ScoringFunction self, bool derivatives, double max) -> double"""
2912 return _IMP_kernel.ScoringFunction_evaluate_if_below(self, *args)
2914 def get_had_good_score(self):
2915 """get_had_good_score(ScoringFunction self) -> bool"""
2916 return _IMP_kernel.ScoringFunction_get_had_good_score(self)
2918 def get_last_score(self):
2919 """get_last_score(ScoringFunction self) -> double"""
2920 return _IMP_kernel.ScoringFunction_get_last_score(self)
2923 """create_restraints(ScoringFunction self) -> IMP::kernel::Restraints"""
2924 return _IMP_kernel.ScoringFunction_create_restraints(self)
2927 """__str__(ScoringFunction self) -> std::string"""
2928 return _IMP_kernel.ScoringFunction___str__(self)
2931 """__repr__(ScoringFunction self) -> std::string"""
2932 return _IMP_kernel.ScoringFunction___repr__(self)
2935 return _object_cast_to_ScoringFunction(o)
2936 get_from = staticmethod(get_from)
2938 def get_type_name(self):
2939 return self.__class__.__name__
2940 def do_show(self, out):
2942 def get_version_info(self):
2943 if"IMP::kernel" ==
"IMP":
2944 return VersionInfo(
"python",
"0")
2946 return IMP.VersionInfo(
"python",
"0")
2948 return _object_cast_to_ScoringFunction(o)
2949 get_from = staticmethod(get_from)
2951 __swig_destroy__ = _IMP_kernel.delete_ScoringFunction
2952 __del__ =
lambda self :
None;
2953 def __disown__(self):
2955 _IMP_kernel.disown_ScoringFunction(self)
2956 return weakref_proxy(self)
2957 def do_destroy(self):
2958 """do_destroy(ScoringFunction self)"""
2959 return _IMP_kernel.ScoringFunction_do_destroy(self)
2961 def handle_set_has_required_score_states(self, *args):
2962 """handle_set_has_required_score_states(ScoringFunction self, bool arg0)"""
2963 return _IMP_kernel.ScoringFunction_handle_set_has_required_score_states(self, *args)
2965 def do_get_inputs(self):
2966 """do_get_inputs(ScoringFunction self) -> IMP::kernel::ModelObjectsTemp"""
2967 return _IMP_kernel.ScoringFunction_do_get_inputs(self)
2969 def do_get_interactions(self):
2970 """do_get_interactions(ScoringFunction self) -> IMP::kernel::ModelObjectsTemps"""
2971 return _IMP_kernel.ScoringFunction_do_get_interactions(self)
2973 ScoringFunction_swigregister = _IMP_kernel.ScoringFunction_swigregister
2974 ScoringFunction_swigregister(ScoringFunction)
2979 create_decomposition(IMP::kernel::RestraintsTemp const & rs) -> IMP::kernel::Restraints
2980 create_decomposition(ScoringFunction sf) -> IMP::kernel::ScoringFunctions
2982 return _IMP_kernel.create_decomposition(*args)
2983 class _ScoringFunctionAdaptor(IMP.base._InputAdaptor):
2984 """Proxy of C++ IMP::kernel::ScoringFunctionAdaptor class"""
2985 __swig_setmethods__ = {}
2986 for _s
in [IMP.base._InputAdaptor]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
2987 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ScoringFunctionAdaptor, name, value)
2988 __swig_getmethods__ = {}
2989 for _s
in [IMP.base._InputAdaptor]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
2990 __getattr__ =
lambda self, name: _swig_getattr(self, _ScoringFunctionAdaptor, name)
2991 __repr__ = _swig_repr
2992 def __init__(self, *args):
2994 __init__(IMP::kernel::ScoringFunctionAdaptor self) -> _ScoringFunctionAdaptor
2995 __init__(IMP::kernel::ScoringFunctionAdaptor self, ScoringFunction sf) -> _ScoringFunctionAdaptor
2996 __init__(IMP::kernel::ScoringFunctionAdaptor self, IMP::kernel::RestraintsTemp const & sf) -> _ScoringFunctionAdaptor
2997 __init__(IMP::kernel::ScoringFunctionAdaptor self, IMP::kernel::Restraints const & sf) -> _ScoringFunctionAdaptor
2998 __init__(IMP::kernel::ScoringFunctionAdaptor self, Restraint sf) -> _ScoringFunctionAdaptor
2999 __init__(IMP::kernel::ScoringFunctionAdaptor self, Model sf) -> _ScoringFunctionAdaptor
3001 this = _IMP_kernel.new__ScoringFunctionAdaptor(*args)
3002 try: self.this.append(this)
3003 except: self.this = this
3004 __swig_destroy__ = _IMP_kernel.delete__ScoringFunctionAdaptor
3005 __del__ =
lambda self :
None;
3006 _ScoringFunctionAdaptor_swigregister = _IMP_kernel._ScoringFunctionAdaptor_swigregister
3007 _ScoringFunctionAdaptor_swigregister(_ScoringFunctionAdaptor)
3012 show_restraint_hierarchy(_ScoringFunctionAdaptor rs, _ostream out=std::cout)
3013 show_restraint_hierarchy(_ScoringFunctionAdaptor rs)
3015 return _IMP_kernel.show_restraint_hierarchy(*args)
3017 """Proxy of C++ IMP::kernel::Undecorator class"""
3018 __swig_setmethods__ = {}
3019 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
3020 __setattr__ =
lambda self, name, value: _swig_setattr(self, Undecorator, name, value)
3021 __swig_getmethods__ = {}
3022 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
3023 __getattr__ =
lambda self, name: _swig_getattr(self, Undecorator, name)
3024 def __init__(self, *args):
3025 """__init__(IMP::kernel::Undecorator self, Model m, std::string name) -> Undecorator"""
3026 if self.__class__ == Undecorator:
3030 this = _IMP_kernel.new_Undecorator(_self, *args)
3031 try: self.this.append(this)
3032 except: self.this = this
3033 if self.__class__ != Undecorator:
3035 IMP.base._director_objects.register(self)
3039 def teardown(self, *args):
3040 """teardown(Undecorator self, IMP::kernel::ParticleIndex pi)"""
3041 return _IMP_kernel.Undecorator_teardown(self, *args)
3044 """__str__(Undecorator self) -> std::string"""
3045 return _IMP_kernel.Undecorator___str__(self)
3048 """__repr__(Undecorator self) -> std::string"""
3049 return _IMP_kernel.Undecorator___repr__(self)
3052 return _object_cast_to_Undecorator(o)
3053 get_from = staticmethod(get_from)
3055 def get_type_name(self):
3056 return self.__class__.__name__
3057 def do_show(self, out):
3059 def get_version_info(self):
3060 if"IMP::kernel" ==
"IMP":
3061 return VersionInfo(
"python",
"0")
3063 return IMP.VersionInfo(
"python",
"0")
3065 return _object_cast_to_Undecorator(o)
3066 get_from = staticmethod(get_from)
3068 __swig_destroy__ = _IMP_kernel.delete_Undecorator
3069 __del__ =
lambda self :
None;
3070 def __disown__(self):
3072 _IMP_kernel.disown_Undecorator(self)
3073 return weakref_proxy(self)
3074 def do_destroy(self):
3075 """do_destroy(Undecorator self)"""
3076 return _IMP_kernel.Undecorator_do_destroy(self)
3078 Undecorator_swigregister = _IMP_kernel.Undecorator_swigregister
3079 Undecorator_swigregister(Undecorator)
3082 """Proxy of C++ IMP::kernel::Model class"""
3083 __swig_setmethods__ = {}
3084 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
3085 __setattr__ =
lambda self, name, value: _swig_setattr(self, Model, name, value)
3086 __swig_getmethods__ = {}
3087 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
3088 __getattr__ =
lambda self, name: _swig_getattr(self, Model, name)
3089 def __init__(self, name="Model %1%"):
3091 __init__(IMP::kernel::Model self, std::string name="Model %1%") -> Model
3092 __init__(IMP::kernel::Model self) -> Model
3094 this = _IMP_kernel.new_Model(name)
3095 try: self.this.append(this)
3096 except: self.this = this
3097 def clear_particle_caches(self, *args):
3098 """clear_particle_caches(Model self, IMP::kernel::ParticleIndex pi)"""
3099 return _IMP_kernel.Model_clear_particle_caches(self, *args)
3102 """add_particle(Model self, std::string name) -> IMP::kernel::ParticleIndex"""
3103 return _IMP_kernel.Model_add_particle(self, *args)
3105 def get_particle_name(self, *args):
3106 """get_particle_name(Model self, IMP::kernel::ParticleIndex pi) -> std::string"""
3107 return _IMP_kernel.Model_get_particle_name(self, *args)
3109 def add_undecorator(self, *args):
3110 """add_undecorator(Model self, IMP::kernel::ParticleIndex pi, Undecorator d)"""
3111 return _IMP_kernel.Model_add_undecorator(self, *args)
3113 def remove_score_state(self, *args):
3114 """remove_score_state(Model self, ScoreState d)"""
3115 return _IMP_kernel.Model_remove_score_state(self, *args)
3117 def remove_score_states(self, *args):
3118 """remove_score_states(Model self, IMP::kernel::ScoreStates const & d)"""
3119 return _IMP_kernel.Model_remove_score_states(self, *args)
3121 def set_score_states(self, *args):
3122 """set_score_states(Model self, IMP::kernel::ScoreStates const & ps)"""
3123 return _IMP_kernel.Model_set_score_states(self, *args)
3125 def set_score_states_order(self, *args):
3126 """set_score_states_order(Model self, IMP::kernel::ScoreStates const & objs)"""
3127 return _IMP_kernel.Model_set_score_states_order(self, *args)
3129 def add_score_state(self, *args):
3130 """add_score_state(Model self, ScoreState obj) -> unsigned int"""
3131 return _IMP_kernel.Model_add_score_state(self, *args)
3133 def add_score_states(self, *args):
3134 """add_score_states(Model self, IMP::kernel::ScoreStates const & objs)"""
3135 return _IMP_kernel.Model_add_score_states(self, *args)
3137 def clear_score_states(self):
3138 """clear_score_states(Model self)"""
3139 return _IMP_kernel.Model_clear_score_states(self)
3141 def get_number_of_score_states(self):
3142 """get_number_of_score_states(Model self) -> unsigned int"""
3143 return _IMP_kernel.Model_get_number_of_score_states(self)
3145 def get_has_score_states(self):
3146 """get_has_score_states(Model self) -> bool"""
3147 return _IMP_kernel.Model_get_has_score_states(self)
3149 def get_score_state(self, *args):
3150 """get_score_state(Model self, unsigned int i) -> ScoreState"""
3151 return _IMP_kernel.Model_get_score_state(self, *args)
3153 def get_score_states(self):
3154 """get_score_states(Model self) -> IMP::kernel::ScoreStates"""
3155 return _IMP_kernel.Model_get_score_states(self)
3157 def reserve_score_states(self, *args):
3158 """reserve_score_states(Model self, unsigned int sz)"""
3159 return _IMP_kernel.Model_reserve_score_states(self, *args)
3162 """update(Model self)"""
3163 return _IMP_kernel.Model_update(self)
3165 def add_attribute(self, *args):
3167 add_attribute(Model self, FloatKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Float value)
3168 add_attribute(Model self, IntKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Int value)
3169 add_attribute(Model self, IMP::kernel::IntsKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Ints value)
3170 add_attribute(Model self, StringKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::String value)
3171 add_attribute(Model self, ParticleIndexesKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::kernel::ParticleIndexes value)
3172 add_attribute(Model self, ParticleIndexKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::kernel::ParticleIndex value)
3173 add_attribute(Model self, ObjectKey attribute_key, IMP::kernel::ParticleIndex particle, Object * value)
3174 add_attribute(Model self, IMP::kernel::WeakObjectKey attribute_key, IMP::kernel::ParticleIndex particle, Object * value)
3176 return _IMP_kernel.Model_add_attribute(self, *args)
3178 def remove_attribute(self, *args):
3180 remove_attribute(Model self, FloatKey attribute_key, IMP::kernel::ParticleIndex particle)
3181 remove_attribute(Model self, IntKey attribute_key, IMP::kernel::ParticleIndex particle)
3182 remove_attribute(Model self, IMP::kernel::IntsKey attribute_key, IMP::kernel::ParticleIndex particle)
3183 remove_attribute(Model self, StringKey attribute_key, IMP::kernel::ParticleIndex particle)
3184 remove_attribute(Model self, ParticleIndexesKey attribute_key, IMP::kernel::ParticleIndex particle)
3185 remove_attribute(Model self, ParticleIndexKey attribute_key, IMP::kernel::ParticleIndex particle)
3186 remove_attribute(Model self, ObjectKey attribute_key, IMP::kernel::ParticleIndex particle)
3187 remove_attribute(Model self, IMP::kernel::WeakObjectKey attribute_key, IMP::kernel::ParticleIndex particle)
3189 return _IMP_kernel.Model_remove_attribute(self, *args)
3191 def get_has_attribute(self, *args):
3193 get_has_attribute(Model self, FloatKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3194 get_has_attribute(Model self, IntKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3195 get_has_attribute(Model self, IMP::kernel::IntsKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3196 get_has_attribute(Model self, StringKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3197 get_has_attribute(Model self, ParticleIndexesKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3198 get_has_attribute(Model self, ParticleIndexKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3199 get_has_attribute(Model self, ObjectKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3200 get_has_attribute(Model self, IMP::kernel::WeakObjectKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3202 return _IMP_kernel.Model_get_has_attribute(self, *args)
3204 def set_attribute(self, *args):
3206 set_attribute(Model self, FloatKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Float value)
3207 set_attribute(Model self, IntKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Int value)
3208 set_attribute(Model self, IMP::kernel::IntsKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Ints value)
3209 set_attribute(Model self, StringKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::String value)
3210 set_attribute(Model self, ParticleIndexesKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::kernel::ParticleIndexes value)
3211 set_attribute(Model self, ParticleIndexKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::kernel::ParticleIndex value)
3212 set_attribute(Model self, ObjectKey attribute_key, IMP::kernel::ParticleIndex particle, Object * value)
3213 set_attribute(Model self, IMP::kernel::WeakObjectKey attribute_key, IMP::kernel::ParticleIndex particle, Object * value)
3215 return _IMP_kernel.Model_set_attribute(self, *args)
3217 def get_attribute(self, *args):
3219 get_attribute(Model self, FloatKey attribute_key, IMP::kernel::ParticleIndex particle) -> IMP::Float
3220 get_attribute(Model self, IntKey attribute_key, IMP::kernel::ParticleIndex particle) -> IMP::Int
3221 get_attribute(Model self, IMP::kernel::IntsKey attribute_key, IMP::kernel::ParticleIndex particle) -> IMP::Ints
3222 get_attribute(Model self, StringKey attribute_key, IMP::kernel::ParticleIndex particle) -> IMP::String
3223 get_attribute(Model self, ParticleIndexesKey attribute_key, IMP::kernel::ParticleIndex particle) -> IMP::kernel::ParticleIndexes
3224 get_attribute(Model self, ParticleIndexKey attribute_key, IMP::kernel::ParticleIndex particle) -> IMP::kernel::ParticleIndex
3225 get_attribute(Model self, ObjectKey attribute_key, IMP::kernel::ParticleIndex particle) -> Object
3226 get_attribute(Model self, IMP::kernel::WeakObjectKey attribute_key, IMP::kernel::ParticleIndex particle) -> Object *
3228 return _IMP_kernel.Model_get_attribute(self, *args)
3230 def add_cache_attribute(self, *args):
3232 add_cache_attribute(Model self, FloatKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Float value)
3233 add_cache_attribute(Model self, IntKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Int value)
3234 add_cache_attribute(Model self, IMP::kernel::IntsKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Ints value)
3235 add_cache_attribute(Model self, StringKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::String value)
3236 add_cache_attribute(Model self, ParticleIndexesKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::kernel::ParticleIndexes value)
3237 add_cache_attribute(Model self, ParticleIndexKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::kernel::ParticleIndex value)
3238 add_cache_attribute(Model self, ObjectKey attribute_key, IMP::kernel::ParticleIndex particle, Object * value)
3239 add_cache_attribute(Model self, IMP::kernel::WeakObjectKey attribute_key, IMP::kernel::ParticleIndex particle, Object * value)
3241 return _IMP_kernel.Model_add_cache_attribute(self, *args)
3243 def set_is_optimized(self, *args):
3244 """set_is_optimized(Model self, FloatKey arg2, IMP::kernel::ParticleIndex arg3, bool arg4)"""
3245 return _IMP_kernel.Model_set_is_optimized(self, *args)
3247 def get_particle(self, *args):
3248 """get_particle(Model self, IMP::kernel::ParticleIndex p) -> Particle"""
3249 return _IMP_kernel.Model_get_particle(self, *args)
3251 def get_has_particle(self, *args):
3252 """get_has_particle(Model self, IMP::kernel::ParticleIndex p) -> bool"""
3253 return _IMP_kernel.Model_get_has_particle(self, *args)
3255 def get_particle_indexes(self):
3256 """get_particle_indexes(Model self) -> IMP::kernel::ParticleIndexes"""
3257 return _IMP_kernel.Model_get_particle_indexes(self)
3259 def get_model_objects(self):
3260 """get_model_objects(Model self) -> IMP::kernel::ModelObjectsTemp"""
3261 return _IMP_kernel.Model_get_model_objects(self)
3263 def add_data(self, *args):
3264 """add_data(Model self, IMP::kernel::ModelKey mk, Object o)"""
3265 return _IMP_kernel.Model_add_data(self, *args)
3267 def get_data(self, *args):
3268 """get_data(Model self, IMP::kernel::ModelKey mk) -> Object"""
3269 return _IMP_kernel.Model_get_data(self, *args)
3271 def remove_data(self, *args):
3272 """remove_data(Model self, IMP::kernel::ModelKey mk)"""
3273 return _IMP_kernel.Model_remove_data(self, *args)
3275 def get_has_data(self, *args):
3276 """get_has_data(Model self, IMP::kernel::ModelKey mk) -> bool"""
3277 return _IMP_kernel.Model_get_has_data(self, *args)
3279 def get_version_info(self):
3280 """get_version_info(Model self) -> VersionInfo"""
3281 return _IMP_kernel.Model_get_version_info(self)
3283 def create_model_scoring_function(self):
3284 """create_model_scoring_function(Model self) -> ScoringFunction"""
3285 return _IMP_kernel.Model_create_model_scoring_function(self)
3288 """add_restraint(Model self, Restraint r)"""
3289 return _IMP_kernel.Model_add_restraint(self, *args)
3291 def remove_restraint(self, *args):
3292 """remove_restraint(Model self, Restraint r)"""
3293 return _IMP_kernel.Model_remove_restraint(self, *args)
3295 def get_restraints(self):
3296 """get_restraints(Model self) -> IMP::kernel::RestraintsTemp"""
3297 return _IMP_kernel.Model_get_restraints(self)
3300 """create_scoring_function(Model self) -> ScoringFunction"""
3301 return _IMP_kernel.Model_create_scoring_function(self)
3303 def do_destroy(self):
3304 """do_destroy(Model self)"""
3305 return _IMP_kernel.Model_do_destroy(self)
3307 def get_number_of_restraints(self):
3308 """get_number_of_restraints(Model self) -> unsigned int"""
3309 return _IMP_kernel.Model_get_number_of_restraints(self)
3311 def get_restraint(self, *args):
3312 """get_restraint(Model self, unsigned int i) -> Restraint"""
3313 return _IMP_kernel.Model_get_restraint(self, *args)
3315 def evaluate(self, *args):
3317 evaluate(Model self, bool tf, bool warn=True) -> double
3318 evaluate(Model self, bool tf) -> double
3320 return _IMP_kernel.Model_evaluate(self, *args)
3322 def remove_particle(self, *args):
3324 remove_particle(Model self, IMP::kernel::ParticleIndex pi)
3325 remove_particle(Model self, Particle p)
3327 return _IMP_kernel.Model_remove_particle(self, *args)
3329 def get_number_of_particles(self):
3330 """get_number_of_particles(Model self) -> unsigned int"""
3331 return _IMP_kernel.Model_get_number_of_particles(self)
3334 """get_particles(Model self) -> IMP::kernel::ParticlesTemp"""
3335 return _IMP_kernel.Model_get_particles(self)
3337 def get_root_restraint_set(self):
3338 """get_root_restraint_set(Model self) -> RestraintSet"""
3339 return _IMP_kernel.Model_get_root_restraint_set(self)
3341 def set_maximum_score(self, *args):
3343 set_maximum_score(Model self, Restraint r, double s)
3344 set_maximum_score(Model self, double s)
3346 return _IMP_kernel.Model_set_maximum_score(self, *args)
3348 def get_maximum_score(self, *args):
3350 get_maximum_score(Model self, Restraint r) -> double
3351 get_maximum_score(Model self) -> double
3353 return _IMP_kernel.Model_get_maximum_score(self, *args)
3356 """__str__(Model self) -> std::string"""
3357 return _IMP_kernel.Model___str__(self)
3360 """__repr__(Model self) -> std::string"""
3361 return _IMP_kernel.Model___repr__(self)
3364 return _object_cast_to_Model(o)
3365 get_from = staticmethod(get_from)
3367 Model_swigregister = _IMP_kernel.Model_swigregister
3368 Model_swigregister(Model)
3371 """Proxy of C++ IMP::kernel::Decorator class"""
3372 __swig_setmethods__ = {}
3373 for _s
in [IMP.base._Value]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
3374 __setattr__ =
lambda self, name, value: _swig_setattr(self, Decorator, name, value)
3375 __swig_getmethods__ = {}
3376 for _s
in [IMP.base._Value]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
3377 __getattr__ =
lambda self, name: _swig_getattr(self, Decorator, name)
3378 __repr__ = _swig_repr
3379 def __init__(self, *args):
3380 """__init__(IMP::kernel::Decorator self, _ParticleAdaptor p) -> Decorator"""
3381 this = _IMP_kernel.new_Decorator(*args)
3382 try: self.this.append(this)
3383 except: self.this = this
3384 def __ne__(self, *args):
3385 """__ne__(Decorator self, Object o) -> bool"""
3386 return _IMP_kernel.Decorator___ne__(self, *args)
3388 def __lt__(self, *args):
3389 """__lt__(Decorator self, Object o) -> bool"""
3390 return _IMP_kernel.Decorator___lt__(self, *args)
3392 def __gt__(self, *args):
3393 """__gt__(Decorator self, Object o) -> bool"""
3394 return _IMP_kernel.Decorator___gt__(self, *args)
3396 def __ge__(self, *args):
3397 """__ge__(Decorator self, Object o) -> bool"""
3398 return _IMP_kernel.Decorator___ge__(self, *args)
3400 def __le__(self, *args):
3401 """__le__(Decorator self, Object o) -> bool"""
3402 return _IMP_kernel.Decorator___le__(self, *args)
3404 def get_particle(self):
3405 """get_particle(Decorator self) -> Particle"""
3406 return _IMP_kernel.Decorator_get_particle(self)
3408 def get_particle_index(self):
3409 """get_particle_index(Decorator self) -> IMP::kernel::ParticleIndex"""
3410 return _IMP_kernel.Decorator_get_particle_index(self)
3412 def get_model(self):
3413 """get_model(Decorator self) -> Model"""
3414 return _IMP_kernel.Decorator_get_model(self)
3416 def get_is_valid(self):
3417 """get_is_valid(Decorator self) -> bool"""
3418 return _IMP_kernel.Decorator_get_is_valid(self)
3421 """__hash__(Decorator self) -> std::size_t"""
3422 return _IMP_kernel.Decorator___hash__(self)
3424 def __eq__(self, *args):
3426 __eq__(Decorator self, Object o) -> bool
3427 __eq__(Decorator self, Decorator o) -> bool
3428 __eq__(Decorator self, Particle o) -> bool
3430 return _IMP_kernel.Decorator___eq__(self, *args)
3432 __swig_destroy__ = _IMP_kernel.delete_Decorator
3433 __del__ =
lambda self :
None;
3434 Decorator_swigregister = _IMP_kernel.Decorator_swigregister
3435 Decorator_swigregister(Decorator)
3438 def check_particle(*args):
3439 """check_particle(Particle p)"""
3440 return _IMP_kernel.check_particle(*args)
3442 """Proxy of C++ IMP::kernel::UnaryFunction class"""
3443 __swig_setmethods__ = {}
3444 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
3445 __setattr__ =
lambda self, name, value: _swig_setattr(self, UnaryFunction, name, value)
3446 __swig_getmethods__ = {}
3447 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
3448 __getattr__ =
lambda self, name: _swig_getattr(self, UnaryFunction, name)
3449 def __init__(self, name="UnaryFunction%1%"):
3451 __init__(IMP::kernel::UnaryFunction self, std::string name="UnaryFunction%1%") -> UnaryFunction
3452 __init__(IMP::kernel::UnaryFunction self) -> UnaryFunction
3454 if self.__class__ == UnaryFunction:
3458 this = _IMP_kernel.new_UnaryFunction(_self, name)
3459 try: self.this.append(this)
3460 except: self.this = this
3461 if self.__class__ != UnaryFunction:
3463 IMP.base._director_objects.register(self)
3467 def evaluate(self, *args):
3468 """evaluate(UnaryFunction self, double feature) -> double"""
3469 return _IMP_kernel.UnaryFunction_evaluate(self, *args)
3471 def evaluate_with_derivative(self, *args):
3472 """evaluate_with_derivative(UnaryFunction self, double feature) -> IMP::DerivativePair"""
3473 return _IMP_kernel.UnaryFunction_evaluate_with_derivative(self, *args)
3475 __swig_destroy__ = _IMP_kernel.delete_UnaryFunction
3476 __del__ =
lambda self :
None;
3478 """__str__(UnaryFunction self) -> std::string"""
3479 return _IMP_kernel.UnaryFunction___str__(self)
3482 """__repr__(UnaryFunction self) -> std::string"""
3483 return _IMP_kernel.UnaryFunction___repr__(self)
3486 return _object_cast_to_UnaryFunction(o)
3487 get_from = staticmethod(get_from)
3489 def get_type_name(self):
3490 return self.__class__.__name__
3491 def do_show(self, out):
3493 def get_version_info(self):
3494 if"IMP::kernel" ==
"IMP":
3495 return VersionInfo(
"python",
"0")
3497 return IMP.VersionInfo(
"python",
"0")
3499 return _object_cast_to_UnaryFunction(o)
3500 get_from = staticmethod(get_from)
3502 def __disown__(self):
3504 _IMP_kernel.disown_UnaryFunction(self)
3505 return weakref_proxy(self)
3506 def do_destroy(self):
3507 """do_destroy(UnaryFunction self)"""
3508 return _IMP_kernel.UnaryFunction_do_destroy(self)
3510 UnaryFunction_swigregister = _IMP_kernel.UnaryFunction_swigregister
3511 UnaryFunction_swigregister(UnaryFunction)
3514 """Proxy of C++ IMP::kernel::OptimizerState class"""
3515 __swig_setmethods__ = {}
3516 for _s
in [ModelObject]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
3517 __setattr__ =
lambda self, name, value: _swig_setattr(self, OptimizerState, name, value)
3518 __swig_getmethods__ = {}
3519 for _s
in [ModelObject]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
3520 __getattr__ =
lambda self, name: _swig_getattr(self, OptimizerState, name)
3521 def __init__(self, *args):
3522 """__init__(IMP::kernel::OptimizerState self, Model m, std::string name) -> OptimizerState"""
3523 if self.__class__ == OptimizerState:
3527 this = _IMP_kernel.new_OptimizerState(_self, *args)
3528 try: self.this.append(this)
3529 except: self.this = this
3530 if self.__class__ != OptimizerState:
3532 IMP.base._director_objects.register(self)
3537 """update(OptimizerState self)"""
3538 return _IMP_kernel.OptimizerState_update(self)
3540 def set_is_optimizing(self, *args):
3541 """set_is_optimizing(OptimizerState self, bool arg0)"""
3542 return _IMP_kernel.OptimizerState_set_is_optimizing(self, *args)
3544 def get_optimizer(self):
3545 """get_optimizer(OptimizerState self) -> Optimizer"""
3546 return _IMP_kernel.OptimizerState_get_optimizer(self)
3548 def set_period(self, *args):
3549 """set_period(OptimizerState self, unsigned int p)"""
3550 return _IMP_kernel.OptimizerState_set_period(self, *args)
3552 def get_period(self):
3553 """get_period(OptimizerState self) -> unsigned int"""
3554 return _IMP_kernel.OptimizerState_get_period(self)
3557 """reset(OptimizerState self)"""
3558 return _IMP_kernel.OptimizerState_reset(self)
3560 def update_always(self):
3561 """update_always(OptimizerState self)"""
3562 return _IMP_kernel.OptimizerState_update_always(self)
3564 def get_number_of_updates(self):
3565 """get_number_of_updates(OptimizerState self) -> unsigned int"""
3566 return _IMP_kernel.OptimizerState_get_number_of_updates(self)
3568 def set_number_of_updates(self, *args):
3569 """set_number_of_updates(OptimizerState self, unsigned int n)"""
3570 return _IMP_kernel.OptimizerState_set_number_of_updates(self, *args)
3572 __swig_destroy__ = _IMP_kernel.delete_OptimizerState
3573 __del__ =
lambda self :
None;
3574 def do_update(self, *args):
3575 """do_update(OptimizerState self, unsigned int arg0)"""
3576 return _IMP_kernel.OptimizerState_do_update(self, *args)
3578 def do_set_is_optimizing(self, *args):
3579 """do_set_is_optimizing(OptimizerState self, bool arg0)"""
3580 return _IMP_kernel.OptimizerState_do_set_is_optimizing(self, *args)
3582 def do_get_inputs(self):
3583 """do_get_inputs(OptimizerState self) -> IMP::kernel::ModelObjectsTemp"""
3584 return _IMP_kernel.OptimizerState_do_get_inputs(self)
3586 def do_get_outputs(self):
3587 """do_get_outputs(OptimizerState self) -> IMP::kernel::ModelObjectsTemp"""
3588 return _IMP_kernel.OptimizerState_do_get_outputs(self)
3591 """__str__(OptimizerState self) -> std::string"""
3592 return _IMP_kernel.OptimizerState___str__(self)
3595 """__repr__(OptimizerState self) -> std::string"""
3596 return _IMP_kernel.OptimizerState___repr__(self)
3599 return _object_cast_to_OptimizerState(o)
3600 get_from = staticmethod(get_from)
3602 def get_type_name(self):
3603 return self.__class__.__name__
3604 def do_show(self, out):
3606 def get_version_info(self):
3607 if"IMP::kernel" ==
"IMP":
3608 return VersionInfo(
"python",
"0")
3610 return IMP.VersionInfo(
"python",
"0")
3612 return _object_cast_to_OptimizerState(o)
3613 get_from = staticmethod(get_from)
3615 def __disown__(self):
3617 _IMP_kernel.disown_OptimizerState(self)
3618 return weakref_proxy(self)
3619 def do_destroy(self):
3620 """do_destroy(OptimizerState self)"""
3621 return _IMP_kernel.OptimizerState_do_destroy(self)
3623 def handle_set_has_required_score_states(self, *args):
3624 """handle_set_has_required_score_states(OptimizerState self, bool arg0)"""
3625 return _IMP_kernel.OptimizerState_handle_set_has_required_score_states(self, *args)
3627 def do_get_interactions(self):
3628 """do_get_interactions(OptimizerState self) -> IMP::kernel::ModelObjectsTemps"""
3629 return _IMP_kernel.OptimizerState_do_get_interactions(self)
3631 OptimizerState_swigregister = _IMP_kernel.OptimizerState_swigregister
3632 OptimizerState_swigregister(OptimizerState)
3635 """Proxy of C++ IMP::kernel::Refiner class"""
3636 __swig_setmethods__ = {}
3637 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
3638 __setattr__ =
lambda self, name, value: _swig_setattr(self, Refiner, name, value)
3639 __swig_getmethods__ = {}
3640 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
3641 __getattr__ =
lambda self, name: _swig_getattr(self, Refiner, name)
3642 def __init__(self, name="Refiner %1%", is_by_ref=False):
3644 __init__(IMP::kernel::Refiner self, std::string name="Refiner %1%", bool is_by_ref=False) -> Refiner
3645 __init__(IMP::kernel::Refiner self, std::string name="Refiner %1%") -> Refiner
3646 __init__(IMP::kernel::Refiner self) -> Refiner
3648 if self.__class__ == Refiner:
3652 this = _IMP_kernel.new_Refiner(_self, name, is_by_ref)
3653 try: self.this.append(this)
3654 except: self.this = this
3655 if self.__class__ != Refiner:
3657 IMP.base._director_objects.register(self)
3661 def get_can_refine(self, *args):
3662 """get_can_refine(Refiner self, Particle arg0) -> bool"""
3663 return _IMP_kernel.Refiner_get_can_refine(self, *args)
3665 def get_refined_indexes(self, *args):
3666 """get_refined_indexes(Refiner self, Model m, IMP::kernel::ParticleIndex pi) -> IMP::kernel::ParticleIndexes"""
3667 return _IMP_kernel.Refiner_get_refined_indexes(self, *args)
3669 def get_refined_indexes_by_ref(self, *args):
3670 """get_refined_indexes_by_ref(Refiner self, Model m, IMP::kernel::ParticleIndex pi) -> IMP::kernel::ParticleIndexes const &"""
3671 return _IMP_kernel.Refiner_get_refined_indexes_by_ref(self, *args)
3673 def get_is_by_ref_supported(self):
3674 """get_is_by_ref_supported(Refiner self) -> bool"""
3675 return _IMP_kernel.Refiner_get_is_by_ref_supported(self)
3677 def get_refined(self, *args):
3679 get_refined(Refiner self, Particle a) -> IMP::kernel::ParticlesTemp const
3680 get_refined(Refiner self, Particle a, unsigned int i) -> Particle
3682 return _IMP_kernel.Refiner_get_refined(self, *args)
3684 def get_number_of_refined(self, *args):
3685 """get_number_of_refined(Refiner self, Particle a) -> unsigned int"""
3686 return _IMP_kernel.Refiner_get_number_of_refined(self, *args)
3689 """__str__(Refiner self) -> std::string"""
3690 return _IMP_kernel.Refiner___str__(self)
3693 """__repr__(Refiner self) -> std::string"""
3694 return _IMP_kernel.Refiner___repr__(self)
3697 return _object_cast_to_Refiner(o)
3698 get_from = staticmethod(get_from)
3700 def get_type_name(self):
3701 return self.__class__.__name__
3702 def do_show(self, out):
3704 def get_version_info(self):
3705 if"IMP::kernel" ==
"IMP":
3706 return VersionInfo(
"python",
"0")
3708 return IMP.VersionInfo(
"python",
"0")
3710 return _object_cast_to_Refiner(o)
3711 get_from = staticmethod(get_from)
3713 __swig_destroy__ = _IMP_kernel.delete_Refiner
3714 __del__ =
lambda self :
None;
3715 def __disown__(self):
3717 _IMP_kernel.disown_Refiner(self)
3718 return weakref_proxy(self)
3719 def do_get_inputs(self, *args):
3720 """do_get_inputs(Refiner self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
3721 return _IMP_kernel.Refiner_do_get_inputs(self, *args)
3723 def do_destroy(self):
3724 """do_destroy(Refiner self)"""
3725 return _IMP_kernel.Refiner_do_destroy(self)
3727 Refiner_swigregister = _IMP_kernel.Refiner_swigregister
3728 Refiner_swigregister(Refiner)
3731 """Proxy of C++ IMP::kernel::Optimizer class"""
3732 __swig_setmethods__ = {}
3733 for _s
in [ModelObject]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
3734 __setattr__ =
lambda self, name, value: _swig_setattr(self, Optimizer, name, value)
3735 __swig_getmethods__ = {}
3736 for _s
in [ModelObject]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
3737 __getattr__ =
lambda self, name: _swig_getattr(self, Optimizer, name)
3738 def set_is_optimizing_states(self, *args):
3739 """set_is_optimizing_states(Optimizer self, bool tf)"""
3740 return _IMP_kernel.Optimizer_set_is_optimizing_states(self, *args)
3742 def get_optimizer_state_inputs(self):
3743 """get_optimizer_state_inputs(Optimizer self) -> IMP::kernel::ModelObjectsTemp"""
3744 return _IMP_kernel.Optimizer_get_optimizer_state_inputs(self)
3746 def do_get_inputs(self):
3747 """do_get_inputs(Optimizer self) -> IMP::kernel::ModelObjectsTemp"""
3748 return _IMP_kernel.Optimizer_do_get_inputs(self)
3750 def do_get_outputs(self):
3751 """do_get_outputs(Optimizer self) -> IMP::kernel::ModelObjectsTemp"""
3752 return _IMP_kernel.Optimizer_do_get_outputs(self)
3754 def __init__(self, *args):
3756 __init__(IMP::kernel::Optimizer self, Model m, std::string name="Optimizer %1%") -> Optimizer
3757 __init__(IMP::kernel::Optimizer self, Model m) -> Optimizer
3759 if self.__class__ == Optimizer:
3763 this = _IMP_kernel.new_Optimizer(_self, *args)
3764 try: self.this.append(this)
3765 except: self.this = this
3766 if self.__class__ != Optimizer:
3768 IMP.base._director_objects.register(self)
3772 def optimize(self, *args):
3773 """optimize(Optimizer self, unsigned int max_steps) -> double"""
3774 return _IMP_kernel.Optimizer_optimize(self, *args)
3776 def set_stop_on_good_score(self, *args):
3777 """set_stop_on_good_score(Optimizer self, bool tf)"""
3778 return _IMP_kernel.Optimizer_set_stop_on_good_score(self, *args)
3780 def get_stop_on_good_score(self):
3781 """get_stop_on_good_score(Optimizer self) -> bool"""
3782 return _IMP_kernel.Optimizer_get_stop_on_good_score(self)
3784 def get_last_score(self):
3785 """get_last_score(Optimizer self) -> double"""
3786 return _IMP_kernel.Optimizer_get_last_score(self)
3788 def get_scoring_function(self):
3789 """get_scoring_function(Optimizer self) -> ScoringFunction"""
3790 return _IMP_kernel.Optimizer_get_scoring_function(self)
3792 def remove_optimizer_state(self, *args):
3793 """remove_optimizer_state(Optimizer self, OptimizerState d)"""
3794 return _IMP_kernel.Optimizer_remove_optimizer_state(self, *args)
3796 def remove_optimizer_states(self, *args):
3797 """remove_optimizer_states(Optimizer self, IMP::kernel::OptimizerStates const & d)"""
3798 return _IMP_kernel.Optimizer_remove_optimizer_states(self, *args)
3800 def set_optimizer_states(self, *args):
3801 """set_optimizer_states(Optimizer self, IMP::kernel::OptimizerStates const & ps)"""
3802 return _IMP_kernel.Optimizer_set_optimizer_states(self, *args)
3804 def set_optimizer_states_order(self, *args):
3805 """set_optimizer_states_order(Optimizer self, IMP::kernel::OptimizerStates const & objs)"""
3806 return _IMP_kernel.Optimizer_set_optimizer_states_order(self, *args)
3808 def add_optimizer_state(self, *args):
3809 """add_optimizer_state(Optimizer self, OptimizerState obj) -> unsigned int"""
3810 return _IMP_kernel.Optimizer_add_optimizer_state(self, *args)
3812 def add_optimizer_states(self, *args):
3813 """add_optimizer_states(Optimizer self, IMP::kernel::OptimizerStates const & objs)"""
3814 return _IMP_kernel.Optimizer_add_optimizer_states(self, *args)
3816 def clear_optimizer_states(self):
3817 """clear_optimizer_states(Optimizer self)"""
3818 return _IMP_kernel.Optimizer_clear_optimizer_states(self)
3820 def get_number_of_optimizer_states(self):
3821 """get_number_of_optimizer_states(Optimizer self) -> unsigned int"""
3822 return _IMP_kernel.Optimizer_get_number_of_optimizer_states(self)
3824 def get_has_optimizer_states(self):
3825 """get_has_optimizer_states(Optimizer self) -> bool"""
3826 return _IMP_kernel.Optimizer_get_has_optimizer_states(self)
3828 def get_optimizer_state(self, *args):
3829 """get_optimizer_state(Optimizer self, unsigned int i) -> OptimizerState"""
3830 return _IMP_kernel.Optimizer_get_optimizer_state(self, *args)
3832 def get_optimizer_states(self):
3833 """get_optimizer_states(Optimizer self) -> IMP::kernel::OptimizerStates"""
3834 return _IMP_kernel.Optimizer_get_optimizer_states(self)
3836 def reserve_optimizer_states(self, *args):
3837 """reserve_optimizer_states(Optimizer self, unsigned int sz)"""
3838 return _IMP_kernel.Optimizer_reserve_optimizer_states(self, *args)
3840 def set_scoring_function(self, *args):
3841 """set_scoring_function(Optimizer self, _ScoringFunctionAdaptor sf)"""
3842 return _IMP_kernel.Optimizer_set_scoring_function(self, *args)
3844 __swig_destroy__ = _IMP_kernel.delete_Optimizer
3846 """__del__(IMP::kernel::Optimizer self)"""
3848 IMP.base._director_objects.cleanup()
3853 def do_optimize(self, *args):
3854 """do_optimize(Optimizer self, unsigned int ns) -> double"""
3855 return _IMP_kernel.Optimizer_do_optimize(self, *args)
3857 def update_states(self):
3858 """update_states(Optimizer self)"""
3859 return _IMP_kernel.Optimizer_update_states(self)
3862 """__str__(Optimizer self) -> std::string"""
3863 return _IMP_kernel.Optimizer___str__(self)
3866 """__repr__(Optimizer self) -> std::string"""
3867 return _IMP_kernel.Optimizer___repr__(self)
3870 return _object_cast_to_Optimizer(o)
3871 get_from = staticmethod(get_from)
3873 def get_type_name(self):
3874 return self.__class__.__name__
3875 def do_show(self, out):
3877 def get_version_info(self):
3878 if"IMP::kernel" ==
"IMP":
3879 return VersionInfo(
"python",
"0")
3881 return IMP.VersionInfo(
"python",
"0")
3883 return _object_cast_to_Optimizer(o)
3884 get_from = staticmethod(get_from)
3886 def __disown__(self):
3888 _IMP_kernel.disown_Optimizer(self)
3889 return weakref_proxy(self)
3890 def do_destroy(self):
3891 """do_destroy(Optimizer self)"""
3892 return _IMP_kernel.Optimizer_do_destroy(self)
3894 def handle_set_has_required_score_states(self, *args):
3895 """handle_set_has_required_score_states(Optimizer self, bool arg0)"""
3896 return _IMP_kernel.Optimizer_handle_set_has_required_score_states(self, *args)
3898 def do_get_interactions(self):
3899 """do_get_interactions(Optimizer self) -> IMP::kernel::ModelObjectsTemps"""
3900 return _IMP_kernel.Optimizer_do_get_interactions(self)
3902 Optimizer_swigregister = _IMP_kernel.Optimizer_swigregister
3903 Optimizer_swigregister(Optimizer)
3906 """Proxy of C++ IMP::kernel::AttributeOptimizer class"""
3907 __swig_setmethods__ = {}
3908 for _s
in [Optimizer]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
3909 __setattr__ =
lambda self, name, value: _swig_setattr(self, AttributeOptimizer, name, value)
3910 __swig_getmethods__ = {}
3911 for _s
in [Optimizer]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
3912 __getattr__ =
lambda self, name: _swig_getattr(self, AttributeOptimizer, name)
3913 def __init__(self, *args):
3915 __init__(IMP::kernel::AttributeOptimizer self, Model m, std::string name="Optimizer %1%") -> AttributeOptimizer
3916 __init__(IMP::kernel::AttributeOptimizer self, Model m) -> AttributeOptimizer
3918 if self.__class__ == AttributeOptimizer:
3922 this = _IMP_kernel.new_AttributeOptimizer(_self, *args)
3923 try: self.this.append(this)
3924 except: self.this = this
3925 if self.__class__ != AttributeOptimizer:
3927 IMP.base._director_objects.register(self)
3931 def get_optimized_attributes(self):
3932 """get_optimized_attributes(AttributeOptimizer self) -> IMP::kernel::FloatIndexes"""
3933 return _IMP_kernel.AttributeOptimizer_get_optimized_attributes(self)
3935 def set_value(self, *args):
3936 """set_value(AttributeOptimizer self, FloatIndex fi, double v)"""
3937 return _IMP_kernel.AttributeOptimizer_set_value(self, *args)
3939 def get_value(self, *args):
3940 """get_value(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
3941 return _IMP_kernel.AttributeOptimizer_get_value(self, *args)
3943 def get_derivative(self, *args):
3944 """get_derivative(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
3945 return _IMP_kernel.AttributeOptimizer_get_derivative(self, *args)
3947 def get_width(self, *args):
3948 """get_width(AttributeOptimizer self, FloatKey k) -> double"""
3949 return _IMP_kernel.AttributeOptimizer_get_width(self, *args)
3951 def set_scaled_value(self, *args):
3952 """set_scaled_value(AttributeOptimizer self, FloatIndex fi, IMP::Float v)"""
3953 return _IMP_kernel.AttributeOptimizer_set_scaled_value(self, *args)
3955 def get_scaled_value(self, *args):
3956 """get_scaled_value(AttributeOptimizer self, FloatIndex fi) -> double"""
3957 return _IMP_kernel.AttributeOptimizer_get_scaled_value(self, *args)
3959 def get_scaled_derivative(self, *args):
3960 """get_scaled_derivative(AttributeOptimizer self, FloatIndex fi) -> double"""
3961 return _IMP_kernel.AttributeOptimizer_get_scaled_derivative(self, *args)
3963 def clear_range_cache(self):
3964 """clear_range_cache(AttributeOptimizer self)"""
3965 return _IMP_kernel.AttributeOptimizer_clear_range_cache(self)
3968 """__str__(AttributeOptimizer self) -> std::string"""
3969 return _IMP_kernel.AttributeOptimizer___str__(self)
3972 """__repr__(AttributeOptimizer self) -> std::string"""
3973 return _IMP_kernel.AttributeOptimizer___repr__(self)
3976 return _object_cast_to_AttributeOptimizer(o)
3977 get_from = staticmethod(get_from)
3979 def get_type_name(self):
3980 return self.__class__.__name__
3981 def do_show(self, out):
3983 def get_version_info(self):
3984 if"IMP::kernel" ==
"IMP":
3985 return VersionInfo(
"python",
"0")
3987 return IMP.VersionInfo(
"python",
"0")
3989 return _object_cast_to_AttributeOptimizer(o)
3990 get_from = staticmethod(get_from)
3992 __swig_destroy__ = _IMP_kernel.delete_AttributeOptimizer
3993 __del__ =
lambda self :
None;
3994 def __disown__(self):
3996 _IMP_kernel.disown_AttributeOptimizer(self)
3997 return weakref_proxy(self)
3998 def do_destroy(self):
3999 """do_destroy(AttributeOptimizer self)"""
4000 return _IMP_kernel.AttributeOptimizer_do_destroy(self)
4002 def handle_set_has_required_score_states(self, *args):
4003 """handle_set_has_required_score_states(AttributeOptimizer self, bool arg0)"""
4004 return _IMP_kernel.AttributeOptimizer_handle_set_has_required_score_states(self, *args)
4006 def do_get_inputs(self):
4007 """do_get_inputs(AttributeOptimizer self) -> IMP::kernel::ModelObjectsTemp"""
4008 return _IMP_kernel.AttributeOptimizer_do_get_inputs(self)
4010 def do_get_outputs(self):
4011 """do_get_outputs(AttributeOptimizer self) -> IMP::kernel::ModelObjectsTemp"""
4012 return _IMP_kernel.AttributeOptimizer_do_get_outputs(self)
4014 def do_get_interactions(self):
4015 """do_get_interactions(AttributeOptimizer self) -> IMP::kernel::ModelObjectsTemps"""
4016 return _IMP_kernel.AttributeOptimizer_do_get_interactions(self)
4018 def do_optimize(self, *args):
4019 """do_optimize(AttributeOptimizer self, unsigned int ns) -> double"""
4020 return _IMP_kernel.AttributeOptimizer_do_optimize(self, *args)
4022 AttributeOptimizer_swigregister = _IMP_kernel.AttributeOptimizer_swigregister
4023 AttributeOptimizer_swigregister(AttributeOptimizer)
4026 """Proxy of C++ IMP::kernel::ConfigurationSet class"""
4027 __swig_setmethods__ = {}
4028 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
4029 __setattr__ =
lambda self, name, value: _swig_setattr(self, ConfigurationSet, name, value)
4030 __swig_getmethods__ = {}
4031 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
4032 __getattr__ =
lambda self, name: _swig_getattr(self, ConfigurationSet, name)
4033 def __init__(self, *args):
4035 __init__(IMP::kernel::ConfigurationSet self, Model m, std::string name="ConfigurationSet %1%") -> ConfigurationSet
4036 __init__(IMP::kernel::ConfigurationSet self, Model m) -> ConfigurationSet
4038 this = _IMP_kernel.new_ConfigurationSet(*args)
4039 try: self.this.append(this)
4040 except: self.this = this
4041 def save_configuration(self):
4042 """save_configuration(ConfigurationSet self)"""
4043 return _IMP_kernel.ConfigurationSet_save_configuration(self)
4045 def get_number_of_configurations(self):
4046 """get_number_of_configurations(ConfigurationSet self) -> unsigned int"""
4047 return _IMP_kernel.ConfigurationSet_get_number_of_configurations(self)
4049 def load_configuration(self, *args):
4050 """load_configuration(ConfigurationSet self, int i)"""
4051 return _IMP_kernel.ConfigurationSet_load_configuration(self, *args)
4053 def remove_configuration(self, *args):
4054 """remove_configuration(ConfigurationSet self, unsigned int i)"""
4055 return _IMP_kernel.ConfigurationSet_remove_configuration(self, *args)
4057 def get_model(self):
4058 """get_model(ConfigurationSet self) -> Model"""
4059 return _IMP_kernel.ConfigurationSet_get_model(self)
4061 def get_version_info(self):
4062 """get_version_info(ConfigurationSet self) -> VersionInfo"""
4063 return _IMP_kernel.ConfigurationSet_get_version_info(self)
4066 """__str__(ConfigurationSet self) -> std::string"""
4067 return _IMP_kernel.ConfigurationSet___str__(self)
4070 """__repr__(ConfigurationSet self) -> std::string"""
4071 return _IMP_kernel.ConfigurationSet___repr__(self)
4074 return _object_cast_to_ConfigurationSet(o)
4075 get_from = staticmethod(get_from)
4077 ConfigurationSet_swigregister = _IMP_kernel.ConfigurationSet_swigregister
4078 ConfigurationSet_swigregister(ConfigurationSet)
4081 """Proxy of C++ IMP::kernel::SaveToConfigurationSetOptimizerState class"""
4082 __swig_setmethods__ = {}
4083 for _s
in [OptimizerState]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
4084 __setattr__ =
lambda self, name, value: _swig_setattr(self, SaveToConfigurationSetOptimizerState, name, value)
4085 __swig_getmethods__ = {}
4086 for _s
in [OptimizerState]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
4087 __getattr__ =
lambda self, name: _swig_getattr(self, SaveToConfigurationSetOptimizerState, name)
4088 def __init__(self, *args):
4089 """__init__(IMP::kernel::SaveToConfigurationSetOptimizerState self, ConfigurationSet cs) -> SaveToConfigurationSetOptimizerState"""
4090 this = _IMP_kernel.new_SaveToConfigurationSetOptimizerState(*args)
4091 try: self.this.append(this)
4092 except: self.this = this
4093 def get_version_info(self):
4094 """get_version_info(SaveToConfigurationSetOptimizerState self) -> VersionInfo"""
4095 return _IMP_kernel.SaveToConfigurationSetOptimizerState_get_version_info(self)
4098 """__str__(SaveToConfigurationSetOptimizerState self) -> std::string"""
4099 return _IMP_kernel.SaveToConfigurationSetOptimizerState___str__(self)
4102 """__repr__(SaveToConfigurationSetOptimizerState self) -> std::string"""
4103 return _IMP_kernel.SaveToConfigurationSetOptimizerState___repr__(self)
4106 return _object_cast_to_SaveToConfigurationSetOptimizerState(o)
4107 get_from = staticmethod(get_from)
4109 SaveToConfigurationSetOptimizerState_swigregister = _IMP_kernel.SaveToConfigurationSetOptimizerState_swigregister
4110 SaveToConfigurationSetOptimizerState_swigregister(SaveToConfigurationSetOptimizerState)
4113 """Proxy of C++ IMP::kernel::Configuration class"""
4114 __swig_setmethods__ = {}
4115 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
4116 __setattr__ =
lambda self, name, value: _swig_setattr(self, Configuration, name, value)
4117 __swig_getmethods__ = {}
4118 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
4119 __getattr__ =
lambda self, name: _swig_getattr(self, Configuration, name)
4120 def __init__(self, *args):
4122 __init__(IMP::kernel::Configuration self, Model m, std::string name="Configuration %1%") -> Configuration
4123 __init__(IMP::kernel::Configuration self, Model m) -> Configuration
4124 __init__(IMP::kernel::Configuration self, Model m, Configuration base, std::string name="Configuration %1%") -> Configuration
4125 __init__(IMP::kernel::Configuration self, Model m, Configuration base) -> Configuration
4127 this = _IMP_kernel.new_Configuration(*args)
4128 try: self.this.append(this)
4129 except: self.this = this
4130 def load_configuration(self):
4131 """load_configuration(Configuration self)"""
4132 return _IMP_kernel.Configuration_load_configuration(self)
4134 def swap_configuration(self):
4135 """swap_configuration(Configuration self)"""
4136 return _IMP_kernel.Configuration_swap_configuration(self)
4138 def get_version_info(self):
4139 """get_version_info(Configuration self) -> VersionInfo"""
4140 return _IMP_kernel.Configuration_get_version_info(self)
4143 """__str__(Configuration self) -> std::string"""
4144 return _IMP_kernel.Configuration___str__(self)
4147 """__repr__(Configuration self) -> std::string"""
4148 return _IMP_kernel.Configuration___repr__(self)
4151 return _object_cast_to_Configuration(o)
4152 get_from = staticmethod(get_from)
4154 Configuration_swigregister = _IMP_kernel.Configuration_swigregister
4155 Configuration_swigregister(Configuration)
4158 """Proxy of C++ IMP::kernel::Sampler class"""
4159 __swig_setmethods__ = {}
4160 for _s
in [
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
4161 __setattr__ =
lambda self, name, value: _swig_setattr(self, Sampler, name, value)
4162 __swig_getmethods__ = {}
4163 for _s
in [
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
4164 __getattr__ =
lambda self, name: _swig_getattr(self, Sampler, name)
4165 def __init__(self, *args):
4167 __init__(IMP::kernel::Sampler self, Model m, std::string name="Sampler %1%") -> Sampler
4168 __init__(IMP::kernel::Sampler self, Model m) -> Sampler
4170 if self.__class__ == Sampler:
4174 this = _IMP_kernel.new_Sampler(_self, *args)
4175 try: self.this.append(this)
4176 except: self.this = this
4177 if self.__class__ != Sampler:
4179 IMP.base._director_objects.register(self)
4183 def create_sample(self):
4184 """create_sample(Sampler self) -> ConfigurationSet"""
4185 return _IMP_kernel.Sampler_create_sample(self)
4187 def get_scoring_function(self):
4188 """get_scoring_function(Sampler self) -> ScoringFunction"""
4189 return _IMP_kernel.Sampler_get_scoring_function(self)
4191 def set_scoring_function(self, *args):
4192 """set_scoring_function(Sampler self, _ScoringFunctionAdaptor sf)"""
4193 return _IMP_kernel.Sampler_set_scoring_function(self, *args)
4195 def get_model(self):
4196 """get_model(Sampler self) -> Model"""
4197 return _IMP_kernel.Sampler_get_model(self)
4199 def do_sample(self):
4200 """do_sample(Sampler self) -> ConfigurationSet"""
4201 return _IMP_kernel.Sampler_do_sample(self)
4203 __swig_destroy__ = _IMP_kernel.delete_Sampler
4204 __del__ =
lambda self :
None;
4206 """__str__(Sampler self) -> std::string"""
4207 return _IMP_kernel.Sampler___str__(self)
4210 """__repr__(Sampler self) -> std::string"""
4211 return _IMP_kernel.Sampler___repr__(self)
4214 return _object_cast_to_Sampler(o)
4215 get_from = staticmethod(get_from)
4217 def get_type_name(self):
4218 return self.__class__.__name__
4219 def do_show(self, out):
4221 def get_version_info(self):
4222 if"IMP::kernel" ==
"IMP":
4223 return VersionInfo(
"python",
"0")
4225 return IMP.VersionInfo(
"python",
"0")
4227 return _object_cast_to_Sampler(o)
4228 get_from = staticmethod(get_from)
4230 def __disown__(self):
4232 _IMP_kernel.disown_Sampler(self)
4233 return weakref_proxy(self)
4234 def do_destroy(self):
4235 """do_destroy(Sampler self)"""
4236 return _IMP_kernel.Sampler_do_destroy(self)
4238 Sampler_swigregister = _IMP_kernel.Sampler_swigregister
4239 Sampler_swigregister(Sampler)
4242 """Proxy of C++ IMP::kernel::PairModifier class"""
4243 __swig_setmethods__ = {}
4244 for _s
in [_ParticleInputs,_ParticleOutputs,
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
4245 __setattr__ =
lambda self, name, value: _swig_setattr(self, PairModifier, name, value)
4246 __swig_getmethods__ = {}
4247 for _s
in [_ParticleInputs,_ParticleOutputs,
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
4248 __getattr__ =
lambda self, name: _swig_getattr(self, PairModifier, name)
4249 def __init__(self, name="PairModifier %1%"):
4251 __init__(IMP::kernel::PairModifier self, std::string name="PairModifier %1%") -> PairModifier
4252 __init__(IMP::kernel::PairModifier self) -> PairModifier
4254 if self.__class__ == PairModifier:
4258 this = _IMP_kernel.new_PairModifier(_self, name)
4259 try: self.this.append(this)
4260 except: self.this = this
4261 if self.__class__ != PairModifier:
4263 IMP.base._director_objects.register(self)
4267 def apply(self, *args):
4268 """apply(PairModifier self, IMP::kernel::ParticlePair const & vt)"""
4269 return _IMP_kernel.PairModifier_apply(self, *args)
4271 def apply_index(self, *args):
4272 """apply_index(PairModifier self, Model m, IMP::kernel::ParticleIndexPair const & v)"""
4273 return _IMP_kernel.PairModifier_apply_index(self, *args)
4275 def apply_indexes(self, *args):
4276 """apply_indexes(PairModifier self, Model m, IMP::kernel::ParticleIndexPairs const & o, unsigned int lower_bound, unsigned int upper_bound)"""
4277 return _IMP_kernel.PairModifier_apply_indexes(self, *args)
4280 """__str__(PairModifier self) -> std::string"""
4281 return _IMP_kernel.PairModifier___str__(self)
4284 """__repr__(PairModifier self) -> std::string"""
4285 return _IMP_kernel.PairModifier___repr__(self)
4288 return _object_cast_to_PairModifier(o)
4289 get_from = staticmethod(get_from)
4291 def get_type_name(self):
4292 return self.__class__.__name__
4293 def do_show(self, out):
4295 def get_version_info(self):
4296 if"IMP::kernel" ==
"IMP":
4297 return VersionInfo(
"python",
"0")
4299 return IMP.VersionInfo(
"python",
"0")
4301 return _object_cast_to_PairModifier(o)
4302 get_from = staticmethod(get_from)
4304 __swig_destroy__ = _IMP_kernel.delete_PairModifier
4305 __del__ =
lambda self :
None;
4306 def __disown__(self):
4308 _IMP_kernel.disown_PairModifier(self)
4309 return weakref_proxy(self)
4310 def do_get_inputs(self, *args):
4311 """do_get_inputs(PairModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4312 return _IMP_kernel.PairModifier_do_get_inputs(self, *args)
4314 def do_get_outputs(self, *args):
4315 """do_get_outputs(PairModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4316 return _IMP_kernel.PairModifier_do_get_outputs(self, *args)
4318 def do_destroy(self):
4319 """do_destroy(PairModifier self)"""
4320 return _IMP_kernel.PairModifier_do_destroy(self)
4322 PairModifier_swigregister = _IMP_kernel.PairModifier_swigregister
4323 PairModifier_swigregister(PairModifier)
4326 """Proxy of C++ IMP::kernel::PairScore class"""
4327 __swig_setmethods__ = {}
4328 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
4329 __setattr__ =
lambda self, name, value: _swig_setattr(self, PairScore, name, value)
4330 __swig_getmethods__ = {}
4331 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
4332 __getattr__ =
lambda self, name: _swig_getattr(self, PairScore, name)
4333 def __init__(self, name="PairScore %1%"):
4335 __init__(IMP::kernel::PairScore self, std::string name="PairScore %1%") -> PairScore
4336 __init__(IMP::kernel::PairScore self) -> PairScore
4338 if self.__class__ == PairScore:
4342 this = _IMP_kernel.new_PairScore(_self, name)
4343 try: self.this.append(this)
4344 except: self.this = this
4345 if self.__class__ != PairScore:
4347 IMP.base._director_objects.register(self)
4351 def evaluate(self, *args):
4352 """evaluate(PairScore self, IMP::kernel::ParticlePair const & vt, DerivativeAccumulator da) -> double"""
4353 return _IMP_kernel.PairScore_evaluate(self, *args)
4355 def evaluate_index(self, *args):
4356 """evaluate_index(PairScore self, Model m, IMP::kernel::ParticleIndexPair const & vt, DerivativeAccumulator da) -> double"""
4357 return _IMP_kernel.PairScore_evaluate_index(self, *args)
4359 def evaluate_indexes(self, *args):
4361 evaluate_indexes(PairScore self, Model m, IMP::kernel::ParticleIndexPairs const & o, DerivativeAccumulator da, unsigned int lower_bound,
4362 unsigned int upper_bound) -> double
4364 return _IMP_kernel.PairScore_evaluate_indexes(self, *args)
4366 def evaluate_if_good_index(self, *args):
4367 """evaluate_if_good_index(PairScore self, Model m, IMP::kernel::ParticleIndexPair const & vt, DerivativeAccumulator da, double max) -> double"""
4368 return _IMP_kernel.PairScore_evaluate_if_good_index(self, *args)
4370 def evaluate_if_good_indexes(self, *args):
4372 evaluate_if_good_indexes(PairScore self, Model m, IMP::kernel::ParticleIndexPairs const & o, DerivativeAccumulator da, double max,
4373 unsigned int lower_bound, unsigned int upper_bound) -> double
4375 return _IMP_kernel.PairScore_evaluate_if_good_indexes(self, *args)
4377 def create_current_decomposition(self, *args):
4378 """create_current_decomposition(PairScore self, Model m, IMP::kernel::ParticleIndexPair const & vt) -> IMP::kernel::Restraints"""
4379 return _IMP_kernel.PairScore_create_current_decomposition(self, *args)
4381 def do_create_current_decomposition(self, *args):
4382 """do_create_current_decomposition(PairScore self, Model m, IMP::kernel::ParticleIndexPair const & vt) -> IMP::kernel::Restraints"""
4383 return _IMP_kernel.PairScore_do_create_current_decomposition(self, *args)
4385 __swig_destroy__ = _IMP_kernel.delete_PairScore
4386 __del__ =
lambda self :
None;
4388 """__str__(PairScore self) -> std::string"""
4389 return _IMP_kernel.PairScore___str__(self)
4392 """__repr__(PairScore self) -> std::string"""
4393 return _IMP_kernel.PairScore___repr__(self)
4396 return _object_cast_to_PairScore(o)
4397 get_from = staticmethod(get_from)
4399 def get_type_name(self):
4400 return self.__class__.__name__
4401 def do_show(self, out):
4403 def get_version_info(self):
4404 if"IMP::kernel" ==
"IMP":
4405 return VersionInfo(
"python",
"0")
4407 return IMP.VersionInfo(
"python",
"0")
4409 return _object_cast_to_PairScore(o)
4410 get_from = staticmethod(get_from)
4412 def __disown__(self):
4414 _IMP_kernel.disown_PairScore(self)
4415 return weakref_proxy(self)
4416 def do_get_inputs(self, *args):
4417 """do_get_inputs(PairScore self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4418 return _IMP_kernel.PairScore_do_get_inputs(self, *args)
4420 def do_destroy(self):
4421 """do_destroy(PairScore self)"""
4422 return _IMP_kernel.PairScore_do_destroy(self)
4424 PairScore_swigregister = _IMP_kernel.PairScore_swigregister
4425 PairScore_swigregister(PairScore)
4428 """Proxy of C++ IMP::kernel::PairPredicate class"""
4429 __swig_setmethods__ = {}
4430 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
4431 __setattr__ =
lambda self, name, value: _swig_setattr(self, PairPredicate, name, value)
4432 __swig_getmethods__ = {}
4433 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
4434 __getattr__ =
lambda self, name: _swig_getattr(self, PairPredicate, name)
4435 def __init__(self, name="PairPredicate %1%"):
4437 __init__(IMP::kernel::PairPredicate self, std::string name="PairPredicate %1%") -> PairPredicate
4438 __init__(IMP::kernel::PairPredicate self) -> PairPredicate
4440 if self.__class__ == PairPredicate:
4444 this = _IMP_kernel.new_PairPredicate(_self, name)
4445 try: self.this.append(this)
4446 except: self.this = this
4447 if self.__class__ != PairPredicate:
4449 IMP.base._director_objects.register(self)
4453 def get_value(self, *args):
4455 get_value(PairPredicate self, IMP::kernel::ParticlePair const & vt) -> int
4456 get_value(PairPredicate self, IMP::kernel::ParticlePairsTemp const & o) -> IMP::Ints
4458 return _IMP_kernel.PairPredicate_get_value(self, *args)
4460 def __call__(self, *args):
4461 """__call__(PairPredicate self, Model m, IMP::kernel::ParticleIndexPair const & vt) -> int"""
4462 return _IMP_kernel.PairPredicate___call__(self, *args)
4464 def get_value_index(self, *args):
4466 get_value_index(PairPredicate self, Model m, IMP::kernel::ParticleIndexPair const & vt) -> int
4467 get_value_index(PairPredicate self, Model m, IMP::kernel::ParticleIndexPairs const & o) -> IMP::Ints
4469 return _IMP_kernel.PairPredicate_get_value_index(self, *args)
4471 __swig_destroy__ = _IMP_kernel.delete_PairPredicate
4472 __del__ =
lambda self :
None;
4474 """__str__(PairPredicate self) -> std::string"""
4475 return _IMP_kernel.PairPredicate___str__(self)
4478 """__repr__(PairPredicate self) -> std::string"""
4479 return _IMP_kernel.PairPredicate___repr__(self)
4482 return _object_cast_to_PairPredicate(o)
4483 get_from = staticmethod(get_from)
4485 def get_type_name(self):
4486 return self.__class__.__name__
4487 def do_show(self, out):
4489 def get_version_info(self):
4490 if"IMP::kernel" ==
"IMP":
4491 return VersionInfo(
"python",
"0")
4493 return IMP.VersionInfo(
"python",
"0")
4495 return _object_cast_to_PairPredicate(o)
4496 get_from = staticmethod(get_from)
4498 def __disown__(self):
4500 _IMP_kernel.disown_PairPredicate(self)
4501 return weakref_proxy(self)
4502 def do_get_inputs(self, *args):
4503 """do_get_inputs(PairPredicate self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4504 return _IMP_kernel.PairPredicate_do_get_inputs(self, *args)
4506 def do_destroy(self):
4507 """do_destroy(PairPredicate self)"""
4508 return _IMP_kernel.PairPredicate_do_destroy(self)
4510 PairPredicate_swigregister = _IMP_kernel.PairPredicate_swigregister
4511 PairPredicate_swigregister(PairPredicate)
4514 """Proxy of C++ IMP::kernel::PairContainer class"""
4515 __swig_setmethods__ = {}
4516 for _s
in [Container]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
4517 __setattr__ =
lambda self, name, value: _swig_setattr(self, PairContainer, name, value)
4518 __swig_getmethods__ = {}
4519 for _s
in [Container]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
4520 __getattr__ =
lambda self, name: _swig_getattr(self, PairContainer, name)
4521 def apply_generic(self, *args):
4522 """apply_generic(PairContainer self, PairModifier m)"""
4523 return _IMP_kernel.PairContainer_apply_generic(self, *args)
4525 def apply(self, *args):
4526 """apply(PairContainer self, PairModifier sm)"""
4527 return _IMP_kernel.PairContainer_apply(self, *args)
4529 def get_range_indexes(self):
4530 """get_range_indexes(PairContainer self) -> IMP::kernel::ParticleIndexPairs"""
4531 return _IMP_kernel.PairContainer_get_range_indexes(self)
4533 def get_contents(self):
4534 """get_contents(PairContainer self) -> IMP::kernel::ParticleIndexPairs const &"""
4535 return _IMP_kernel.PairContainer_get_contents(self)
4538 """get_indexes(PairContainer self) -> IMP::kernel::ParticleIndexPairs"""
4539 return _IMP_kernel.PairContainer_get_indexes(self)
4541 def get(self, *args):
4543 get(PairContainer self) -> IMP::kernel::ParticlePairsTemp
4544 get(PairContainer self, unsigned int i) -> IMP::kernel::ParticlePair
4546 return _IMP_kernel.PairContainer_get(self, *args)
4548 def get_number(self):
4549 """get_number(PairContainer self) -> unsigned int"""
4550 return _IMP_kernel.PairContainer_get_number(self)
4552 def get_particle_pairs(self):
4553 """get_particle_pairs(PairContainer self) -> IMP::kernel::ParticlePairsTemp"""
4554 return _IMP_kernel.PairContainer_get_particle_pairs(self)
4556 def get_number_of_particle_pairs(self):
4557 """get_number_of_particle_pairs(PairContainer self) -> unsigned int"""
4558 return _IMP_kernel.PairContainer_get_number_of_particle_pairs(self)
4560 def get_particle_pair(self, *args):
4561 """get_particle_pair(PairContainer self, unsigned int i) -> IMP::kernel::ParticlePair"""
4562 return _IMP_kernel.PairContainer_get_particle_pair(self, *args)
4564 def __init__(self, *args):
4566 __init__(IMP::kernel::PairContainer self, Model m, std::string name="PairContainer %1%") -> PairContainer
4567 __init__(IMP::kernel::PairContainer self, Model m) -> PairContainer
4569 if self.__class__ == PairContainer:
4573 this = _IMP_kernel.new_PairContainer(_self, *args)
4574 try: self.this.append(this)
4575 except: self.this = this
4576 if self.__class__ != PairContainer:
4578 IMP.base._director_objects.register(self)
4582 def do_apply(self, *args):
4583 """do_apply(PairContainer self, PairModifier sm)"""
4584 return _IMP_kernel.PairContainer_do_apply(self, *args)
4586 def do_get_provides_access(self):
4587 """do_get_provides_access(PairContainer self) -> bool"""
4588 return _IMP_kernel.PairContainer_do_get_provides_access(self)
4590 __swig_destroy__ = _IMP_kernel.delete_PairContainer
4591 __del__ =
lambda self :
None;
4593 """__str__(PairContainer self) -> std::string"""
4594 return _IMP_kernel.PairContainer___str__(self)
4597 """__repr__(PairContainer self) -> std::string"""
4598 return _IMP_kernel.PairContainer___repr__(self)
4601 return _object_cast_to_PairContainer(o)
4602 get_from = staticmethod(get_from)
4604 def get_type_name(self):
4605 return self.__class__.__name__
4606 def do_show(self, out):
4608 def get_version_info(self):
4609 if"IMP::kernel" ==
"IMP":
4610 return VersionInfo(
"python",
"0")
4612 return IMP.VersionInfo(
"python",
"0")
4614 return _object_cast_to_PairContainer(o)
4615 get_from = staticmethod(get_from)
4617 def __disown__(self):
4619 _IMP_kernel.disown_PairContainer(self)
4620 return weakref_proxy(self)
4621 def do_destroy(self):
4622 """do_destroy(PairContainer self)"""
4623 return _IMP_kernel.PairContainer_do_destroy(self)
4625 def handle_set_has_required_score_states(self, *args):
4626 """handle_set_has_required_score_states(PairContainer self, bool arg0)"""
4627 return _IMP_kernel.PairContainer_handle_set_has_required_score_states(self, *args)
4629 def do_get_inputs(self):
4630 """do_get_inputs(PairContainer self) -> IMP::kernel::ModelObjectsTemp"""
4631 return _IMP_kernel.PairContainer_do_get_inputs(self)
4633 def do_get_interactions(self):
4634 """do_get_interactions(PairContainer self) -> IMP::kernel::ModelObjectsTemps"""
4635 return _IMP_kernel.PairContainer_do_get_interactions(self)
4637 def do_get_contents_hash(self):
4638 """do_get_contents_hash(PairContainer self) -> std::size_t"""
4639 return _IMP_kernel.PairContainer_do_get_contents_hash(self)
4641 PairContainer_swigregister = _IMP_kernel.PairContainer_swigregister
4642 PairContainer_swigregister(PairContainer)
4644 class _PairContainerAdaptor(IMP.base._InputAdaptor):
4645 """Proxy of C++ IMP::kernel::PairContainerAdaptor class"""
4646 __swig_setmethods__ = {}
4647 for _s
in [IMP.base._InputAdaptor]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
4648 __setattr__ =
lambda self, name, value: _swig_setattr(self, _PairContainerAdaptor, name, value)
4649 __swig_getmethods__ = {}
4650 for _s
in [IMP.base._InputAdaptor]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
4651 __getattr__ =
lambda self, name: _swig_getattr(self, _PairContainerAdaptor, name)
4652 __repr__ = _swig_repr
4653 def __init__(self, *args):
4655 __init__(IMP::kernel::PairContainerAdaptor self) -> _PairContainerAdaptor
4656 __init__(IMP::kernel::PairContainerAdaptor self, PairContainer c) -> _PairContainerAdaptor
4657 __init__(IMP::kernel::PairContainerAdaptor self, IMP::kernel::ParticlePairsTemp const & t) -> _PairContainerAdaptor
4659 this = _IMP_kernel.new__PairContainerAdaptor(*args)
4660 try: self.this.append(this)
4661 except: self.this = this
4662 def set_name_if_default(self, *args):
4663 """set_name_if_default(_PairContainerAdaptor self, std::string name)"""
4664 return _IMP_kernel._PairContainerAdaptor_set_name_if_default(self, *args)
4666 __swig_destroy__ = _IMP_kernel.delete__PairContainerAdaptor
4667 __del__ =
lambda self :
None;
4668 _PairContainerAdaptor_swigregister = _IMP_kernel._PairContainerAdaptor_swigregister
4669 _PairContainerAdaptor_swigregister(_PairContainerAdaptor)
4672 """Proxy of C++ IMP::kernel::QuadModifier class"""
4673 __swig_setmethods__ = {}
4674 for _s
in [_ParticleInputs,_ParticleOutputs,
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
4675 __setattr__ =
lambda self, name, value: _swig_setattr(self, QuadModifier, name, value)
4676 __swig_getmethods__ = {}
4677 for _s
in [_ParticleInputs,_ParticleOutputs,
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
4678 __getattr__ =
lambda self, name: _swig_getattr(self, QuadModifier, name)
4679 def __init__(self, name="QuadModifier %1%"):
4681 __init__(IMP::kernel::QuadModifier self, std::string name="QuadModifier %1%") -> QuadModifier
4682 __init__(IMP::kernel::QuadModifier self) -> QuadModifier
4684 if self.__class__ == QuadModifier:
4688 this = _IMP_kernel.new_QuadModifier(_self, name)
4689 try: self.this.append(this)
4690 except: self.this = this
4691 if self.__class__ != QuadModifier:
4693 IMP.base._director_objects.register(self)
4697 def apply(self, *args):
4698 """apply(QuadModifier self, IMP::kernel::ParticleQuad const & vt)"""
4699 return _IMP_kernel.QuadModifier_apply(self, *args)
4701 def apply_index(self, *args):
4702 """apply_index(QuadModifier self, Model m, IMP::kernel::ParticleIndexQuad const & v)"""
4703 return _IMP_kernel.QuadModifier_apply_index(self, *args)
4705 def apply_indexes(self, *args):
4706 """apply_indexes(QuadModifier self, Model m, IMP::kernel::ParticleIndexQuads const & o, unsigned int lower_bound, unsigned int upper_bound)"""
4707 return _IMP_kernel.QuadModifier_apply_indexes(self, *args)
4710 """__str__(QuadModifier self) -> std::string"""
4711 return _IMP_kernel.QuadModifier___str__(self)
4714 """__repr__(QuadModifier self) -> std::string"""
4715 return _IMP_kernel.QuadModifier___repr__(self)
4718 return _object_cast_to_QuadModifier(o)
4719 get_from = staticmethod(get_from)
4721 def get_type_name(self):
4722 return self.__class__.__name__
4723 def do_show(self, out):
4725 def get_version_info(self):
4726 if"IMP::kernel" ==
"IMP":
4727 return VersionInfo(
"python",
"0")
4729 return IMP.VersionInfo(
"python",
"0")
4731 return _object_cast_to_QuadModifier(o)
4732 get_from = staticmethod(get_from)
4734 __swig_destroy__ = _IMP_kernel.delete_QuadModifier
4735 __del__ =
lambda self :
None;
4736 def __disown__(self):
4738 _IMP_kernel.disown_QuadModifier(self)
4739 return weakref_proxy(self)
4740 def do_get_inputs(self, *args):
4741 """do_get_inputs(QuadModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4742 return _IMP_kernel.QuadModifier_do_get_inputs(self, *args)
4744 def do_get_outputs(self, *args):
4745 """do_get_outputs(QuadModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4746 return _IMP_kernel.QuadModifier_do_get_outputs(self, *args)
4748 def do_destroy(self):
4749 """do_destroy(QuadModifier self)"""
4750 return _IMP_kernel.QuadModifier_do_destroy(self)
4752 QuadModifier_swigregister = _IMP_kernel.QuadModifier_swigregister
4753 QuadModifier_swigregister(QuadModifier)
4756 """Proxy of C++ IMP::kernel::QuadScore class"""
4757 __swig_setmethods__ = {}
4758 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
4759 __setattr__ =
lambda self, name, value: _swig_setattr(self, QuadScore, name, value)
4760 __swig_getmethods__ = {}
4761 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
4762 __getattr__ =
lambda self, name: _swig_getattr(self, QuadScore, name)
4763 def __init__(self, name="QuadScore %1%"):
4765 __init__(IMP::kernel::QuadScore self, std::string name="QuadScore %1%") -> QuadScore
4766 __init__(IMP::kernel::QuadScore self) -> QuadScore
4768 if self.__class__ == QuadScore:
4772 this = _IMP_kernel.new_QuadScore(_self, name)
4773 try: self.this.append(this)
4774 except: self.this = this
4775 if self.__class__ != QuadScore:
4777 IMP.base._director_objects.register(self)
4781 def evaluate(self, *args):
4782 """evaluate(QuadScore self, IMP::kernel::ParticleQuad const & vt, DerivativeAccumulator da) -> double"""
4783 return _IMP_kernel.QuadScore_evaluate(self, *args)
4785 def evaluate_index(self, *args):
4786 """evaluate_index(QuadScore self, Model m, IMP::kernel::ParticleIndexQuad const & vt, DerivativeAccumulator da) -> double"""
4787 return _IMP_kernel.QuadScore_evaluate_index(self, *args)
4789 def evaluate_indexes(self, *args):
4791 evaluate_indexes(QuadScore self, Model m, IMP::kernel::ParticleIndexQuads const & o, DerivativeAccumulator da, unsigned int lower_bound,
4792 unsigned int upper_bound) -> double
4794 return _IMP_kernel.QuadScore_evaluate_indexes(self, *args)
4796 def evaluate_if_good_index(self, *args):
4797 """evaluate_if_good_index(QuadScore self, Model m, IMP::kernel::ParticleIndexQuad const & vt, DerivativeAccumulator da, double max) -> double"""
4798 return _IMP_kernel.QuadScore_evaluate_if_good_index(self, *args)
4800 def evaluate_if_good_indexes(self, *args):
4802 evaluate_if_good_indexes(QuadScore self, Model m, IMP::kernel::ParticleIndexQuads const & o, DerivativeAccumulator da, double max,
4803 unsigned int lower_bound, unsigned int upper_bound) -> double
4805 return _IMP_kernel.QuadScore_evaluate_if_good_indexes(self, *args)
4807 def create_current_decomposition(self, *args):
4808 """create_current_decomposition(QuadScore self, Model m, IMP::kernel::ParticleIndexQuad const & vt) -> IMP::kernel::Restraints"""
4809 return _IMP_kernel.QuadScore_create_current_decomposition(self, *args)
4811 def do_create_current_decomposition(self, *args):
4812 """do_create_current_decomposition(QuadScore self, Model m, IMP::kernel::ParticleIndexQuad const & vt) -> IMP::kernel::Restraints"""
4813 return _IMP_kernel.QuadScore_do_create_current_decomposition(self, *args)
4815 __swig_destroy__ = _IMP_kernel.delete_QuadScore
4816 __del__ =
lambda self :
None;
4818 """__str__(QuadScore self) -> std::string"""
4819 return _IMP_kernel.QuadScore___str__(self)
4822 """__repr__(QuadScore self) -> std::string"""
4823 return _IMP_kernel.QuadScore___repr__(self)
4826 return _object_cast_to_QuadScore(o)
4827 get_from = staticmethod(get_from)
4829 def get_type_name(self):
4830 return self.__class__.__name__
4831 def do_show(self, out):
4833 def get_version_info(self):
4834 if"IMP::kernel" ==
"IMP":
4835 return VersionInfo(
"python",
"0")
4837 return IMP.VersionInfo(
"python",
"0")
4839 return _object_cast_to_QuadScore(o)
4840 get_from = staticmethod(get_from)
4842 def __disown__(self):
4844 _IMP_kernel.disown_QuadScore(self)
4845 return weakref_proxy(self)
4846 def do_get_inputs(self, *args):
4847 """do_get_inputs(QuadScore self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4848 return _IMP_kernel.QuadScore_do_get_inputs(self, *args)
4850 def do_destroy(self):
4851 """do_destroy(QuadScore self)"""
4852 return _IMP_kernel.QuadScore_do_destroy(self)
4854 QuadScore_swigregister = _IMP_kernel.QuadScore_swigregister
4855 QuadScore_swigregister(QuadScore)
4858 """Proxy of C++ IMP::kernel::QuadPredicate class"""
4859 __swig_setmethods__ = {}
4860 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
4861 __setattr__ =
lambda self, name, value: _swig_setattr(self, QuadPredicate, name, value)
4862 __swig_getmethods__ = {}
4863 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
4864 __getattr__ =
lambda self, name: _swig_getattr(self, QuadPredicate, name)
4865 def __init__(self, name="QuadPredicate %1%"):
4867 __init__(IMP::kernel::QuadPredicate self, std::string name="QuadPredicate %1%") -> QuadPredicate
4868 __init__(IMP::kernel::QuadPredicate self) -> QuadPredicate
4870 if self.__class__ == QuadPredicate:
4874 this = _IMP_kernel.new_QuadPredicate(_self, name)
4875 try: self.this.append(this)
4876 except: self.this = this
4877 if self.__class__ != QuadPredicate:
4879 IMP.base._director_objects.register(self)
4883 def get_value(self, *args):
4885 get_value(QuadPredicate self, IMP::kernel::ParticleQuad const & vt) -> int
4886 get_value(QuadPredicate self, IMP::kernel::ParticleQuadsTemp const & o) -> IMP::Ints
4888 return _IMP_kernel.QuadPredicate_get_value(self, *args)
4890 def __call__(self, *args):
4891 """__call__(QuadPredicate self, Model m, IMP::kernel::ParticleIndexQuad const & vt) -> int"""
4892 return _IMP_kernel.QuadPredicate___call__(self, *args)
4894 def get_value_index(self, *args):
4896 get_value_index(QuadPredicate self, Model m, IMP::kernel::ParticleIndexQuad const & vt) -> int
4897 get_value_index(QuadPredicate self, Model m, IMP::kernel::ParticleIndexQuads const & o) -> IMP::Ints
4899 return _IMP_kernel.QuadPredicate_get_value_index(self, *args)
4901 __swig_destroy__ = _IMP_kernel.delete_QuadPredicate
4902 __del__ =
lambda self :
None;
4904 """__str__(QuadPredicate self) -> std::string"""
4905 return _IMP_kernel.QuadPredicate___str__(self)
4908 """__repr__(QuadPredicate self) -> std::string"""
4909 return _IMP_kernel.QuadPredicate___repr__(self)
4912 return _object_cast_to_QuadPredicate(o)
4913 get_from = staticmethod(get_from)
4915 def get_type_name(self):
4916 return self.__class__.__name__
4917 def do_show(self, out):
4919 def get_version_info(self):
4920 if"IMP::kernel" ==
"IMP":
4921 return VersionInfo(
"python",
"0")
4923 return IMP.VersionInfo(
"python",
"0")
4925 return _object_cast_to_QuadPredicate(o)
4926 get_from = staticmethod(get_from)
4928 def __disown__(self):
4930 _IMP_kernel.disown_QuadPredicate(self)
4931 return weakref_proxy(self)
4932 def do_get_inputs(self, *args):
4933 """do_get_inputs(QuadPredicate self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4934 return _IMP_kernel.QuadPredicate_do_get_inputs(self, *args)
4936 def do_destroy(self):
4937 """do_destroy(QuadPredicate self)"""
4938 return _IMP_kernel.QuadPredicate_do_destroy(self)
4940 QuadPredicate_swigregister = _IMP_kernel.QuadPredicate_swigregister
4941 QuadPredicate_swigregister(QuadPredicate)
4944 """Proxy of C++ IMP::kernel::QuadContainer class"""
4945 __swig_setmethods__ = {}
4946 for _s
in [Container]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
4947 __setattr__ =
lambda self, name, value: _swig_setattr(self, QuadContainer, name, value)
4948 __swig_getmethods__ = {}
4949 for _s
in [Container]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
4950 __getattr__ =
lambda self, name: _swig_getattr(self, QuadContainer, name)
4951 def apply_generic(self, *args):
4952 """apply_generic(QuadContainer self, QuadModifier m)"""
4953 return _IMP_kernel.QuadContainer_apply_generic(self, *args)
4955 def apply(self, *args):
4956 """apply(QuadContainer self, QuadModifier sm)"""
4957 return _IMP_kernel.QuadContainer_apply(self, *args)
4959 def get_range_indexes(self):
4960 """get_range_indexes(QuadContainer self) -> IMP::kernel::ParticleIndexQuads"""
4961 return _IMP_kernel.QuadContainer_get_range_indexes(self)
4963 def get_contents(self):
4964 """get_contents(QuadContainer self) -> IMP::kernel::ParticleIndexQuads const &"""
4965 return _IMP_kernel.QuadContainer_get_contents(self)
4968 """get_indexes(QuadContainer self) -> IMP::kernel::ParticleIndexQuads"""
4969 return _IMP_kernel.QuadContainer_get_indexes(self)
4971 def get(self, *args):
4973 get(QuadContainer self) -> IMP::kernel::ParticleQuadsTemp
4974 get(QuadContainer self, unsigned int i) -> IMP::kernel::ParticleQuad
4976 return _IMP_kernel.QuadContainer_get(self, *args)
4978 def get_number(self):
4979 """get_number(QuadContainer self) -> unsigned int"""
4980 return _IMP_kernel.QuadContainer_get_number(self)
4982 def get_particle_quads(self):
4983 """get_particle_quads(QuadContainer self) -> IMP::kernel::ParticleQuadsTemp"""
4984 return _IMP_kernel.QuadContainer_get_particle_quads(self)
4986 def get_number_of_particle_quads(self):
4987 """get_number_of_particle_quads(QuadContainer self) -> unsigned int"""
4988 return _IMP_kernel.QuadContainer_get_number_of_particle_quads(self)
4990 def get_particle_quad(self, *args):
4991 """get_particle_quad(QuadContainer self, unsigned int i) -> IMP::kernel::ParticleQuad"""
4992 return _IMP_kernel.QuadContainer_get_particle_quad(self, *args)
4994 def __init__(self, *args):
4996 __init__(IMP::kernel::QuadContainer self, Model m, std::string name="QuadContainer %1%") -> QuadContainer
4997 __init__(IMP::kernel::QuadContainer self, Model m) -> QuadContainer
4999 if self.__class__ == QuadContainer:
5003 this = _IMP_kernel.new_QuadContainer(_self, *args)
5004 try: self.this.append(this)
5005 except: self.this = this
5006 if self.__class__ != QuadContainer:
5008 IMP.base._director_objects.register(self)
5012 def do_apply(self, *args):
5013 """do_apply(QuadContainer self, QuadModifier sm)"""
5014 return _IMP_kernel.QuadContainer_do_apply(self, *args)
5016 def do_get_provides_access(self):
5017 """do_get_provides_access(QuadContainer self) -> bool"""
5018 return _IMP_kernel.QuadContainer_do_get_provides_access(self)
5020 __swig_destroy__ = _IMP_kernel.delete_QuadContainer
5021 __del__ =
lambda self :
None;
5023 """__str__(QuadContainer self) -> std::string"""
5024 return _IMP_kernel.QuadContainer___str__(self)
5027 """__repr__(QuadContainer self) -> std::string"""
5028 return _IMP_kernel.QuadContainer___repr__(self)
5031 return _object_cast_to_QuadContainer(o)
5032 get_from = staticmethod(get_from)
5034 def get_type_name(self):
5035 return self.__class__.__name__
5036 def do_show(self, out):
5038 def get_version_info(self):
5039 if"IMP::kernel" ==
"IMP":
5040 return VersionInfo(
"python",
"0")
5042 return IMP.VersionInfo(
"python",
"0")
5044 return _object_cast_to_QuadContainer(o)
5045 get_from = staticmethod(get_from)
5047 def __disown__(self):
5049 _IMP_kernel.disown_QuadContainer(self)
5050 return weakref_proxy(self)
5051 def do_destroy(self):
5052 """do_destroy(QuadContainer self)"""
5053 return _IMP_kernel.QuadContainer_do_destroy(self)
5055 def handle_set_has_required_score_states(self, *args):
5056 """handle_set_has_required_score_states(QuadContainer self, bool arg0)"""
5057 return _IMP_kernel.QuadContainer_handle_set_has_required_score_states(self, *args)
5059 def do_get_inputs(self):
5060 """do_get_inputs(QuadContainer self) -> IMP::kernel::ModelObjectsTemp"""
5061 return _IMP_kernel.QuadContainer_do_get_inputs(self)
5063 def do_get_interactions(self):
5064 """do_get_interactions(QuadContainer self) -> IMP::kernel::ModelObjectsTemps"""
5065 return _IMP_kernel.QuadContainer_do_get_interactions(self)
5067 def do_get_contents_hash(self):
5068 """do_get_contents_hash(QuadContainer self) -> std::size_t"""
5069 return _IMP_kernel.QuadContainer_do_get_contents_hash(self)
5071 QuadContainer_swigregister = _IMP_kernel.QuadContainer_swigregister
5072 QuadContainer_swigregister(QuadContainer)
5074 class _QuadContainerAdaptor(IMP.base._InputAdaptor):
5075 """Proxy of C++ IMP::kernel::QuadContainerAdaptor class"""
5076 __swig_setmethods__ = {}
5077 for _s
in [IMP.base._InputAdaptor]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
5078 __setattr__ =
lambda self, name, value: _swig_setattr(self, _QuadContainerAdaptor, name, value)
5079 __swig_getmethods__ = {}
5080 for _s
in [IMP.base._InputAdaptor]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
5081 __getattr__ =
lambda self, name: _swig_getattr(self, _QuadContainerAdaptor, name)
5082 __repr__ = _swig_repr
5083 def __init__(self, *args):
5085 __init__(IMP::kernel::QuadContainerAdaptor self) -> _QuadContainerAdaptor
5086 __init__(IMP::kernel::QuadContainerAdaptor self, QuadContainer c) -> _QuadContainerAdaptor
5087 __init__(IMP::kernel::QuadContainerAdaptor self, IMP::kernel::ParticleQuadsTemp const & t) -> _QuadContainerAdaptor
5089 this = _IMP_kernel.new__QuadContainerAdaptor(*args)
5090 try: self.this.append(this)
5091 except: self.this = this
5092 def set_name_if_default(self, *args):
5093 """set_name_if_default(_QuadContainerAdaptor self, std::string name)"""
5094 return _IMP_kernel._QuadContainerAdaptor_set_name_if_default(self, *args)
5096 __swig_destroy__ = _IMP_kernel.delete__QuadContainerAdaptor
5097 __del__ =
lambda self :
None;
5098 _QuadContainerAdaptor_swigregister = _IMP_kernel._QuadContainerAdaptor_swigregister
5099 _QuadContainerAdaptor_swigregister(_QuadContainerAdaptor)
5102 """Proxy of C++ IMP::kernel::SingletonModifier class"""
5103 __swig_setmethods__ = {}
5104 for _s
in [_ParticleInputs,_ParticleOutputs,
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
5105 __setattr__ =
lambda self, name, value: _swig_setattr(self, SingletonModifier, name, value)
5106 __swig_getmethods__ = {}
5107 for _s
in [_ParticleInputs,_ParticleOutputs,
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
5108 __getattr__ =
lambda self, name: _swig_getattr(self, SingletonModifier, name)
5109 def __init__(self, name="SingletonModifier %1%"):
5111 __init__(IMP::kernel::SingletonModifier self, std::string name="SingletonModifier %1%") -> SingletonModifier
5112 __init__(IMP::kernel::SingletonModifier self) -> SingletonModifier
5114 if self.__class__ == SingletonModifier:
5118 this = _IMP_kernel.new_SingletonModifier(_self, name)
5119 try: self.this.append(this)
5120 except: self.this = this
5121 if self.__class__ != SingletonModifier:
5123 IMP.base._director_objects.register(self)
5127 def apply(self, *args):
5128 """apply(SingletonModifier self, Particle vt)"""
5129 return _IMP_kernel.SingletonModifier_apply(self, *args)
5131 def apply_index(self, *args):
5132 """apply_index(SingletonModifier self, Model m, IMP::kernel::ParticleIndex v)"""
5133 return _IMP_kernel.SingletonModifier_apply_index(self, *args)
5135 def apply_indexes(self, *args):
5136 """apply_indexes(SingletonModifier self, Model m, IMP::kernel::ParticleIndexes const & o, unsigned int lower_bound, unsigned int upper_bound)"""
5137 return _IMP_kernel.SingletonModifier_apply_indexes(self, *args)
5140 """__str__(SingletonModifier self) -> std::string"""
5141 return _IMP_kernel.SingletonModifier___str__(self)
5144 """__repr__(SingletonModifier self) -> std::string"""
5145 return _IMP_kernel.SingletonModifier___repr__(self)
5148 return _object_cast_to_SingletonModifier(o)
5149 get_from = staticmethod(get_from)
5151 def get_type_name(self):
5152 return self.__class__.__name__
5153 def do_show(self, out):
5155 def get_version_info(self):
5156 if"IMP::kernel" ==
"IMP":
5157 return VersionInfo(
"python",
"0")
5159 return IMP.VersionInfo(
"python",
"0")
5161 return _object_cast_to_SingletonModifier(o)
5162 get_from = staticmethod(get_from)
5164 __swig_destroy__ = _IMP_kernel.delete_SingletonModifier
5165 __del__ =
lambda self :
None;
5166 def __disown__(self):
5168 _IMP_kernel.disown_SingletonModifier(self)
5169 return weakref_proxy(self)
5170 def do_get_inputs(self, *args):
5171 """do_get_inputs(SingletonModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5172 return _IMP_kernel.SingletonModifier_do_get_inputs(self, *args)
5174 def do_get_outputs(self, *args):
5175 """do_get_outputs(SingletonModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5176 return _IMP_kernel.SingletonModifier_do_get_outputs(self, *args)
5178 def do_destroy(self):
5179 """do_destroy(SingletonModifier self)"""
5180 return _IMP_kernel.SingletonModifier_do_destroy(self)
5182 SingletonModifier_swigregister = _IMP_kernel.SingletonModifier_swigregister
5183 SingletonModifier_swigregister(SingletonModifier)
5186 """Proxy of C++ IMP::kernel::SingletonScore class"""
5187 __swig_setmethods__ = {}
5188 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
5189 __setattr__ =
lambda self, name, value: _swig_setattr(self, SingletonScore, name, value)
5190 __swig_getmethods__ = {}
5191 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
5192 __getattr__ =
lambda self, name: _swig_getattr(self, SingletonScore, name)
5193 def __init__(self, name="SingletonScore %1%"):
5195 __init__(IMP::kernel::SingletonScore self, std::string name="SingletonScore %1%") -> SingletonScore
5196 __init__(IMP::kernel::SingletonScore self) -> SingletonScore
5198 if self.__class__ == SingletonScore:
5202 this = _IMP_kernel.new_SingletonScore(_self, name)
5203 try: self.this.append(this)
5204 except: self.this = this
5205 if self.__class__ != SingletonScore:
5207 IMP.base._director_objects.register(self)
5211 def evaluate(self, *args):
5212 """evaluate(SingletonScore self, Particle vt, DerivativeAccumulator da) -> double"""
5213 return _IMP_kernel.SingletonScore_evaluate(self, *args)
5215 def evaluate_index(self, *args):
5216 """evaluate_index(SingletonScore self, Model m, IMP::kernel::ParticleIndex vt, DerivativeAccumulator da) -> double"""
5217 return _IMP_kernel.SingletonScore_evaluate_index(self, *args)
5219 def evaluate_indexes(self, *args):
5221 evaluate_indexes(SingletonScore self, Model m, IMP::kernel::ParticleIndexes const & o, DerivativeAccumulator da, unsigned int lower_bound,
5222 unsigned int upper_bound) -> double
5224 return _IMP_kernel.SingletonScore_evaluate_indexes(self, *args)
5226 def evaluate_if_good_index(self, *args):
5227 """evaluate_if_good_index(SingletonScore self, Model m, IMP::kernel::ParticleIndex vt, DerivativeAccumulator da, double max) -> double"""
5228 return _IMP_kernel.SingletonScore_evaluate_if_good_index(self, *args)
5230 def evaluate_if_good_indexes(self, *args):
5232 evaluate_if_good_indexes(SingletonScore self, Model m, IMP::kernel::ParticleIndexes const & o, DerivativeAccumulator da, double max,
5233 unsigned int lower_bound, unsigned int upper_bound) -> double
5235 return _IMP_kernel.SingletonScore_evaluate_if_good_indexes(self, *args)
5237 def create_current_decomposition(self, *args):
5238 """create_current_decomposition(SingletonScore self, Model m, IMP::kernel::ParticleIndex vt) -> IMP::kernel::Restraints"""
5239 return _IMP_kernel.SingletonScore_create_current_decomposition(self, *args)
5241 def do_create_current_decomposition(self, *args):
5242 """do_create_current_decomposition(SingletonScore self, Model m, IMP::kernel::ParticleIndex vt) -> IMP::kernel::Restraints"""
5243 return _IMP_kernel.SingletonScore_do_create_current_decomposition(self, *args)
5245 __swig_destroy__ = _IMP_kernel.delete_SingletonScore
5246 __del__ =
lambda self :
None;
5248 """__str__(SingletonScore self) -> std::string"""
5249 return _IMP_kernel.SingletonScore___str__(self)
5252 """__repr__(SingletonScore self) -> std::string"""
5253 return _IMP_kernel.SingletonScore___repr__(self)
5256 return _object_cast_to_SingletonScore(o)
5257 get_from = staticmethod(get_from)
5259 def get_type_name(self):
5260 return self.__class__.__name__
5261 def do_show(self, out):
5263 def get_version_info(self):
5264 if"IMP::kernel" ==
"IMP":
5265 return VersionInfo(
"python",
"0")
5267 return IMP.VersionInfo(
"python",
"0")
5269 return _object_cast_to_SingletonScore(o)
5270 get_from = staticmethod(get_from)
5272 def __disown__(self):
5274 _IMP_kernel.disown_SingletonScore(self)
5275 return weakref_proxy(self)
5276 def do_get_inputs(self, *args):
5277 """do_get_inputs(SingletonScore self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5278 return _IMP_kernel.SingletonScore_do_get_inputs(self, *args)
5280 def do_destroy(self):
5281 """do_destroy(SingletonScore self)"""
5282 return _IMP_kernel.SingletonScore_do_destroy(self)
5284 SingletonScore_swigregister = _IMP_kernel.SingletonScore_swigregister
5285 SingletonScore_swigregister(SingletonScore)
5288 """Proxy of C++ IMP::kernel::SingletonPredicate class"""
5289 __swig_setmethods__ = {}
5290 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
5291 __setattr__ =
lambda self, name, value: _swig_setattr(self, SingletonPredicate, name, value)
5292 __swig_getmethods__ = {}
5293 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
5294 __getattr__ =
lambda self, name: _swig_getattr(self, SingletonPredicate, name)
5295 def __init__(self, name="SingletonPredicate %1%"):
5297 __init__(IMP::kernel::SingletonPredicate self, std::string name="SingletonPredicate %1%") -> SingletonPredicate
5298 __init__(IMP::kernel::SingletonPredicate self) -> SingletonPredicate
5300 if self.__class__ == SingletonPredicate:
5304 this = _IMP_kernel.new_SingletonPredicate(_self, name)
5305 try: self.this.append(this)
5306 except: self.this = this
5307 if self.__class__ != SingletonPredicate:
5309 IMP.base._director_objects.register(self)
5313 def get_value(self, *args):
5315 get_value(SingletonPredicate self, Particle vt) -> int
5316 get_value(SingletonPredicate self, IMP::kernel::ParticlesTemp const & o) -> IMP::Ints
5318 return _IMP_kernel.SingletonPredicate_get_value(self, *args)
5320 def __call__(self, *args):
5321 """__call__(SingletonPredicate self, Model m, IMP::kernel::ParticleIndex vt) -> int"""
5322 return _IMP_kernel.SingletonPredicate___call__(self, *args)
5324 def get_value_index(self, *args):
5326 get_value_index(SingletonPredicate self, Model m, IMP::kernel::ParticleIndex vt) -> int
5327 get_value_index(SingletonPredicate self, Model m, IMP::kernel::ParticleIndexes const & o) -> IMP::Ints
5329 return _IMP_kernel.SingletonPredicate_get_value_index(self, *args)
5331 __swig_destroy__ = _IMP_kernel.delete_SingletonPredicate
5332 __del__ =
lambda self :
None;
5334 """__str__(SingletonPredicate self) -> std::string"""
5335 return _IMP_kernel.SingletonPredicate___str__(self)
5338 """__repr__(SingletonPredicate self) -> std::string"""
5339 return _IMP_kernel.SingletonPredicate___repr__(self)
5342 return _object_cast_to_SingletonPredicate(o)
5343 get_from = staticmethod(get_from)
5345 def get_type_name(self):
5346 return self.__class__.__name__
5347 def do_show(self, out):
5349 def get_version_info(self):
5350 if"IMP::kernel" ==
"IMP":
5351 return VersionInfo(
"python",
"0")
5353 return IMP.VersionInfo(
"python",
"0")
5355 return _object_cast_to_SingletonPredicate(o)
5356 get_from = staticmethod(get_from)
5358 def __disown__(self):
5360 _IMP_kernel.disown_SingletonPredicate(self)
5361 return weakref_proxy(self)
5362 def do_get_inputs(self, *args):
5363 """do_get_inputs(SingletonPredicate self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5364 return _IMP_kernel.SingletonPredicate_do_get_inputs(self, *args)
5366 def do_destroy(self):
5367 """do_destroy(SingletonPredicate self)"""
5368 return _IMP_kernel.SingletonPredicate_do_destroy(self)
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 apply_generic(self, *args):
5382 """apply_generic(SingletonContainer self, SingletonModifier m)"""
5383 return _IMP_kernel.SingletonContainer_apply_generic(self, *args)
5385 def apply(self, *args):
5386 """apply(SingletonContainer self, SingletonModifier sm)"""
5387 return _IMP_kernel.SingletonContainer_apply(self, *args)
5389 def get_range_indexes(self):
5390 """get_range_indexes(SingletonContainer self) -> IMP::kernel::ParticleIndexes"""
5391 return _IMP_kernel.SingletonContainer_get_range_indexes(self)
5393 def get_contents(self):
5394 """get_contents(SingletonContainer self) -> IMP::kernel::ParticleIndexes const &"""
5395 return _IMP_kernel.SingletonContainer_get_contents(self)
5398 """get_indexes(SingletonContainer self) -> IMP::kernel::ParticleIndexes"""
5399 return _IMP_kernel.SingletonContainer_get_indexes(self)
5401 def get(self, *args):
5403 get(SingletonContainer self) -> IMP::kernel::ParticlesTemp
5404 get(SingletonContainer self, unsigned int i) -> Particle
5406 return _IMP_kernel.SingletonContainer_get(self, *args)
5408 def get_number(self):
5409 """get_number(SingletonContainer self) -> unsigned int"""
5410 return _IMP_kernel.SingletonContainer_get_number(self)
5413 """get_particles(SingletonContainer self) -> IMP::kernel::ParticlesTemp"""
5414 return _IMP_kernel.SingletonContainer_get_particles(self)
5416 def get_number_of_particles(self):
5417 """get_number_of_particles(SingletonContainer self) -> unsigned int"""
5418 return _IMP_kernel.SingletonContainer_get_number_of_particles(self)
5420 def get_particle(self, *args):
5421 """get_particle(SingletonContainer self, unsigned int i) -> Particle"""
5422 return _IMP_kernel.SingletonContainer_get_particle(self, *args)
5424 def __init__(self, *args):
5426 __init__(IMP::kernel::SingletonContainer self, Model m, std::string name="SingletonContainer %1%") -> SingletonContainer
5427 __init__(IMP::kernel::SingletonContainer self, Model m) -> SingletonContainer
5429 if self.__class__ == SingletonContainer:
5433 this = _IMP_kernel.new_SingletonContainer(_self, *args)
5434 try: self.this.append(this)
5435 except: self.this = this
5436 if self.__class__ != SingletonContainer:
5438 IMP.base._director_objects.register(self)
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_destroy(self):
5482 """do_destroy(SingletonContainer self)"""
5483 return _IMP_kernel.SingletonContainer_do_destroy(self)
5485 def handle_set_has_required_score_states(self, *args):
5486 """handle_set_has_required_score_states(SingletonContainer self, bool arg0)"""
5487 return _IMP_kernel.SingletonContainer_handle_set_has_required_score_states(self, *args)
5489 def do_get_inputs(self):
5490 """do_get_inputs(SingletonContainer self) -> IMP::kernel::ModelObjectsTemp"""
5491 return _IMP_kernel.SingletonContainer_do_get_inputs(self)
5493 def do_get_interactions(self):
5494 """do_get_interactions(SingletonContainer self) -> IMP::kernel::ModelObjectsTemps"""
5495 return _IMP_kernel.SingletonContainer_do_get_interactions(self)
5497 def do_get_contents_hash(self):
5498 """do_get_contents_hash(SingletonContainer self) -> std::size_t"""
5499 return _IMP_kernel.SingletonContainer_do_get_contents_hash(self)
5501 SingletonContainer_swigregister = _IMP_kernel.SingletonContainer_swigregister
5502 SingletonContainer_swigregister(SingletonContainer)
5504 class _SingletonContainerAdaptor(IMP.base._InputAdaptor):
5505 """Proxy of C++ IMP::kernel::SingletonContainerAdaptor class"""
5506 __swig_setmethods__ = {}
5507 for _s
in [IMP.base._InputAdaptor]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
5508 __setattr__ =
lambda self, name, value: _swig_setattr(self, _SingletonContainerAdaptor, name, value)
5509 __swig_getmethods__ = {}
5510 for _s
in [IMP.base._InputAdaptor]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
5511 __getattr__ =
lambda self, name: _swig_getattr(self, _SingletonContainerAdaptor, name)
5512 __repr__ = _swig_repr
5513 def __init__(self, *args):
5515 __init__(IMP::kernel::SingletonContainerAdaptor self) -> _SingletonContainerAdaptor
5516 __init__(IMP::kernel::SingletonContainerAdaptor self, SingletonContainer c) -> _SingletonContainerAdaptor
5517 __init__(IMP::kernel::SingletonContainerAdaptor self, IMP::kernel::ParticlesTemp const & t) -> _SingletonContainerAdaptor
5519 this = _IMP_kernel.new__SingletonContainerAdaptor(*args)
5520 try: self.this.append(this)
5521 except: self.this = this
5522 def set_name_if_default(self, *args):
5523 """set_name_if_default(_SingletonContainerAdaptor self, std::string name)"""
5524 return _IMP_kernel._SingletonContainerAdaptor_set_name_if_default(self, *args)
5526 __swig_destroy__ = _IMP_kernel.delete__SingletonContainerAdaptor
5527 __del__ =
lambda self :
None;
5528 _SingletonContainerAdaptor_swigregister = _IMP_kernel._SingletonContainerAdaptor_swigregister
5529 _SingletonContainerAdaptor_swigregister(_SingletonContainerAdaptor)
5532 """Proxy of C++ IMP::kernel::TripletModifier class"""
5533 __swig_setmethods__ = {}
5534 for _s
in [_ParticleInputs,_ParticleOutputs,
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
5535 __setattr__ =
lambda self, name, value: _swig_setattr(self, TripletModifier, name, value)
5536 __swig_getmethods__ = {}
5537 for _s
in [_ParticleInputs,_ParticleOutputs,
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
5538 __getattr__ =
lambda self, name: _swig_getattr(self, TripletModifier, name)
5539 def __init__(self, name="TripletModifier %1%"):
5541 __init__(IMP::kernel::TripletModifier self, std::string name="TripletModifier %1%") -> TripletModifier
5542 __init__(IMP::kernel::TripletModifier self) -> TripletModifier
5544 if self.__class__ == TripletModifier:
5548 this = _IMP_kernel.new_TripletModifier(_self, name)
5549 try: self.this.append(this)
5550 except: self.this = this
5551 if self.__class__ != TripletModifier:
5553 IMP.base._director_objects.register(self)
5557 def apply(self, *args):
5558 """apply(TripletModifier self, IMP::kernel::ParticleTriplet const & vt)"""
5559 return _IMP_kernel.TripletModifier_apply(self, *args)
5561 def apply_index(self, *args):
5562 """apply_index(TripletModifier self, Model m, IMP::kernel::ParticleIndexTriplet const & v)"""
5563 return _IMP_kernel.TripletModifier_apply_index(self, *args)
5565 def apply_indexes(self, *args):
5567 apply_indexes(TripletModifier self, Model m, IMP::kernel::ParticleIndexTriplets const & o, unsigned int lower_bound,
5568 unsigned int upper_bound)
5570 return _IMP_kernel.TripletModifier_apply_indexes(self, *args)
5573 """__str__(TripletModifier self) -> std::string"""
5574 return _IMP_kernel.TripletModifier___str__(self)
5577 """__repr__(TripletModifier self) -> std::string"""
5578 return _IMP_kernel.TripletModifier___repr__(self)
5581 return _object_cast_to_TripletModifier(o)
5582 get_from = staticmethod(get_from)
5584 def get_type_name(self):
5585 return self.__class__.__name__
5586 def do_show(self, out):
5588 def get_version_info(self):
5589 if"IMP::kernel" ==
"IMP":
5590 return VersionInfo(
"python",
"0")
5592 return IMP.VersionInfo(
"python",
"0")
5594 return _object_cast_to_TripletModifier(o)
5595 get_from = staticmethod(get_from)
5597 __swig_destroy__ = _IMP_kernel.delete_TripletModifier
5598 __del__ =
lambda self :
None;
5599 def __disown__(self):
5601 _IMP_kernel.disown_TripletModifier(self)
5602 return weakref_proxy(self)
5603 def do_get_inputs(self, *args):
5604 """do_get_inputs(TripletModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5605 return _IMP_kernel.TripletModifier_do_get_inputs(self, *args)
5607 def do_get_outputs(self, *args):
5608 """do_get_outputs(TripletModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5609 return _IMP_kernel.TripletModifier_do_get_outputs(self, *args)
5611 def do_destroy(self):
5612 """do_destroy(TripletModifier self)"""
5613 return _IMP_kernel.TripletModifier_do_destroy(self)
5615 TripletModifier_swigregister = _IMP_kernel.TripletModifier_swigregister
5616 TripletModifier_swigregister(TripletModifier)
5619 """Proxy of C++ IMP::kernel::TripletScore class"""
5620 __swig_setmethods__ = {}
5621 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
5622 __setattr__ =
lambda self, name, value: _swig_setattr(self, TripletScore, name, value)
5623 __swig_getmethods__ = {}
5624 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
5625 __getattr__ =
lambda self, name: _swig_getattr(self, TripletScore, name)
5626 def __init__(self, name="TripletScore %1%"):
5628 __init__(IMP::kernel::TripletScore self, std::string name="TripletScore %1%") -> TripletScore
5629 __init__(IMP::kernel::TripletScore self) -> TripletScore
5631 if self.__class__ == TripletScore:
5635 this = _IMP_kernel.new_TripletScore(_self, name)
5636 try: self.this.append(this)
5637 except: self.this = this
5638 if self.__class__ != TripletScore:
5640 IMP.base._director_objects.register(self)
5644 def evaluate(self, *args):
5645 """evaluate(TripletScore self, IMP::kernel::ParticleTriplet const & vt, DerivativeAccumulator da) -> double"""
5646 return _IMP_kernel.TripletScore_evaluate(self, *args)
5648 def evaluate_index(self, *args):
5649 """evaluate_index(TripletScore self, Model m, IMP::kernel::ParticleIndexTriplet const & vt, DerivativeAccumulator da) -> double"""
5650 return _IMP_kernel.TripletScore_evaluate_index(self, *args)
5652 def evaluate_indexes(self, *args):
5654 evaluate_indexes(TripletScore self, Model m, IMP::kernel::ParticleIndexTriplets const & o, DerivativeAccumulator da,
5655 unsigned int lower_bound, unsigned int upper_bound) -> double
5657 return _IMP_kernel.TripletScore_evaluate_indexes(self, *args)
5659 def evaluate_if_good_index(self, *args):
5661 evaluate_if_good_index(TripletScore self, Model m, IMP::kernel::ParticleIndexTriplet const & vt, DerivativeAccumulator da,
5662 double max) -> double
5664 return _IMP_kernel.TripletScore_evaluate_if_good_index(self, *args)
5666 def evaluate_if_good_indexes(self, *args):
5668 evaluate_if_good_indexes(TripletScore self, Model m, IMP::kernel::ParticleIndexTriplets const & o, DerivativeAccumulator da,
5669 double max, unsigned int lower_bound, unsigned int upper_bound) -> double
5671 return _IMP_kernel.TripletScore_evaluate_if_good_indexes(self, *args)
5673 def create_current_decomposition(self, *args):
5674 """create_current_decomposition(TripletScore self, Model m, IMP::kernel::ParticleIndexTriplet const & vt) -> IMP::kernel::Restraints"""
5675 return _IMP_kernel.TripletScore_create_current_decomposition(self, *args)
5677 def do_create_current_decomposition(self, *args):
5678 """do_create_current_decomposition(TripletScore self, Model m, IMP::kernel::ParticleIndexTriplet const & vt) -> IMP::kernel::Restraints"""
5679 return _IMP_kernel.TripletScore_do_create_current_decomposition(self, *args)
5681 __swig_destroy__ = _IMP_kernel.delete_TripletScore
5682 __del__ =
lambda self :
None;
5684 """__str__(TripletScore self) -> std::string"""
5685 return _IMP_kernel.TripletScore___str__(self)
5688 """__repr__(TripletScore self) -> std::string"""
5689 return _IMP_kernel.TripletScore___repr__(self)
5692 return _object_cast_to_TripletScore(o)
5693 get_from = staticmethod(get_from)
5695 def get_type_name(self):
5696 return self.__class__.__name__
5697 def do_show(self, out):
5699 def get_version_info(self):
5700 if"IMP::kernel" ==
"IMP":
5701 return VersionInfo(
"python",
"0")
5703 return IMP.VersionInfo(
"python",
"0")
5705 return _object_cast_to_TripletScore(o)
5706 get_from = staticmethod(get_from)
5708 def __disown__(self):
5710 _IMP_kernel.disown_TripletScore(self)
5711 return weakref_proxy(self)
5712 def do_get_inputs(self, *args):
5713 """do_get_inputs(TripletScore self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5714 return _IMP_kernel.TripletScore_do_get_inputs(self, *args)
5716 def do_destroy(self):
5717 """do_destroy(TripletScore self)"""
5718 return _IMP_kernel.TripletScore_do_destroy(self)
5720 TripletScore_swigregister = _IMP_kernel.TripletScore_swigregister
5721 TripletScore_swigregister(TripletScore)
5724 """Proxy of C++ IMP::kernel::TripletPredicate class"""
5725 __swig_setmethods__ = {}
5726 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
5727 __setattr__ =
lambda self, name, value: _swig_setattr(self, TripletPredicate, name, value)
5728 __swig_getmethods__ = {}
5729 for _s
in [_ParticleInputs,
IMP.base.Object]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
5730 __getattr__ =
lambda self, name: _swig_getattr(self, TripletPredicate, name)
5731 def __init__(self, name="TripletPredicate %1%"):
5733 __init__(IMP::kernel::TripletPredicate self, std::string name="TripletPredicate %1%") -> TripletPredicate
5734 __init__(IMP::kernel::TripletPredicate self) -> TripletPredicate
5736 if self.__class__ == TripletPredicate:
5740 this = _IMP_kernel.new_TripletPredicate(_self, name)
5741 try: self.this.append(this)
5742 except: self.this = this
5743 if self.__class__ != TripletPredicate:
5745 IMP.base._director_objects.register(self)
5749 def get_value(self, *args):
5751 get_value(TripletPredicate self, IMP::kernel::ParticleTriplet const & vt) -> int
5752 get_value(TripletPredicate self, IMP::kernel::ParticleTripletsTemp const & o) -> IMP::Ints
5754 return _IMP_kernel.TripletPredicate_get_value(self, *args)
5756 def __call__(self, *args):
5757 """__call__(TripletPredicate self, Model m, IMP::kernel::ParticleIndexTriplet const & vt) -> int"""
5758 return _IMP_kernel.TripletPredicate___call__(self, *args)
5760 def get_value_index(self, *args):
5762 get_value_index(TripletPredicate self, Model m, IMP::kernel::ParticleIndexTriplet const & vt) -> int
5763 get_value_index(TripletPredicate self, Model m, IMP::kernel::ParticleIndexTriplets const & o) -> IMP::Ints
5765 return _IMP_kernel.TripletPredicate_get_value_index(self, *args)
5767 __swig_destroy__ = _IMP_kernel.delete_TripletPredicate
5768 __del__ =
lambda self :
None;
5770 """__str__(TripletPredicate self) -> std::string"""
5771 return _IMP_kernel.TripletPredicate___str__(self)
5774 """__repr__(TripletPredicate self) -> std::string"""
5775 return _IMP_kernel.TripletPredicate___repr__(self)
5778 return _object_cast_to_TripletPredicate(o)
5779 get_from = staticmethod(get_from)
5781 def get_type_name(self):
5782 return self.__class__.__name__
5783 def do_show(self, out):
5785 def get_version_info(self):
5786 if"IMP::kernel" ==
"IMP":
5787 return VersionInfo(
"python",
"0")
5789 return IMP.VersionInfo(
"python",
"0")
5791 return _object_cast_to_TripletPredicate(o)
5792 get_from = staticmethod(get_from)
5794 def __disown__(self):
5796 _IMP_kernel.disown_TripletPredicate(self)
5797 return weakref_proxy(self)
5798 def do_get_inputs(self, *args):
5799 """do_get_inputs(TripletPredicate self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5800 return _IMP_kernel.TripletPredicate_do_get_inputs(self, *args)
5802 def do_destroy(self):
5803 """do_destroy(TripletPredicate self)"""
5804 return _IMP_kernel.TripletPredicate_do_destroy(self)
5806 TripletPredicate_swigregister = _IMP_kernel.TripletPredicate_swigregister
5807 TripletPredicate_swigregister(TripletPredicate)
5810 """Proxy of C++ IMP::kernel::TripletContainer class"""
5811 __swig_setmethods__ = {}
5812 for _s
in [Container]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
5813 __setattr__ =
lambda self, name, value: _swig_setattr(self, TripletContainer, name, value)
5814 __swig_getmethods__ = {}
5815 for _s
in [Container]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
5816 __getattr__ =
lambda self, name: _swig_getattr(self, TripletContainer, name)
5817 def apply_generic(self, *args):
5818 """apply_generic(TripletContainer self, TripletModifier m)"""
5819 return _IMP_kernel.TripletContainer_apply_generic(self, *args)
5821 def apply(self, *args):
5822 """apply(TripletContainer self, TripletModifier sm)"""
5823 return _IMP_kernel.TripletContainer_apply(self, *args)
5825 def get_range_indexes(self):
5826 """get_range_indexes(TripletContainer self) -> IMP::kernel::ParticleIndexTriplets"""
5827 return _IMP_kernel.TripletContainer_get_range_indexes(self)
5829 def get_contents(self):
5830 """get_contents(TripletContainer self) -> IMP::kernel::ParticleIndexTriplets const &"""
5831 return _IMP_kernel.TripletContainer_get_contents(self)
5834 """get_indexes(TripletContainer self) -> IMP::kernel::ParticleIndexTriplets"""
5835 return _IMP_kernel.TripletContainer_get_indexes(self)
5837 def get(self, *args):
5839 get(TripletContainer self) -> IMP::kernel::ParticleTripletsTemp
5840 get(TripletContainer self, unsigned int i) -> IMP::kernel::ParticleTriplet
5842 return _IMP_kernel.TripletContainer_get(self, *args)
5844 def get_number(self):
5845 """get_number(TripletContainer self) -> unsigned int"""
5846 return _IMP_kernel.TripletContainer_get_number(self)
5848 def get_particle_triplets(self):
5849 """get_particle_triplets(TripletContainer self) -> IMP::kernel::ParticleTripletsTemp"""
5850 return _IMP_kernel.TripletContainer_get_particle_triplets(self)
5852 def get_number_of_particle_triplets(self):
5853 """get_number_of_particle_triplets(TripletContainer self) -> unsigned int"""
5854 return _IMP_kernel.TripletContainer_get_number_of_particle_triplets(self)
5856 def get_particle_triplet(self, *args):
5857 """get_particle_triplet(TripletContainer self, unsigned int i) -> IMP::kernel::ParticleTriplet"""
5858 return _IMP_kernel.TripletContainer_get_particle_triplet(self, *args)
5860 def __init__(self, *args):
5862 __init__(IMP::kernel::TripletContainer self, Model m, std::string name="TripletContainer %1%") -> TripletContainer
5863 __init__(IMP::kernel::TripletContainer self, Model m) -> TripletContainer
5865 if self.__class__ == TripletContainer:
5869 this = _IMP_kernel.new_TripletContainer(_self, *args)
5870 try: self.this.append(this)
5871 except: self.this = this
5872 if self.__class__ != TripletContainer:
5874 IMP.base._director_objects.register(self)
5878 def do_apply(self, *args):
5879 """do_apply(TripletContainer self, TripletModifier sm)"""
5880 return _IMP_kernel.TripletContainer_do_apply(self, *args)
5882 def do_get_provides_access(self):
5883 """do_get_provides_access(TripletContainer self) -> bool"""
5884 return _IMP_kernel.TripletContainer_do_get_provides_access(self)
5886 __swig_destroy__ = _IMP_kernel.delete_TripletContainer
5887 __del__ =
lambda self :
None;
5889 """__str__(TripletContainer self) -> std::string"""
5890 return _IMP_kernel.TripletContainer___str__(self)
5893 """__repr__(TripletContainer self) -> std::string"""
5894 return _IMP_kernel.TripletContainer___repr__(self)
5897 return _object_cast_to_TripletContainer(o)
5898 get_from = staticmethod(get_from)
5900 def get_type_name(self):
5901 return self.__class__.__name__
5902 def do_show(self, out):
5904 def get_version_info(self):
5905 if"IMP::kernel" ==
"IMP":
5906 return VersionInfo(
"python",
"0")
5908 return IMP.VersionInfo(
"python",
"0")
5910 return _object_cast_to_TripletContainer(o)
5911 get_from = staticmethod(get_from)
5913 def __disown__(self):
5915 _IMP_kernel.disown_TripletContainer(self)
5916 return weakref_proxy(self)
5917 def do_destroy(self):
5918 """do_destroy(TripletContainer self)"""
5919 return _IMP_kernel.TripletContainer_do_destroy(self)
5921 def handle_set_has_required_score_states(self, *args):
5922 """handle_set_has_required_score_states(TripletContainer self, bool arg0)"""
5923 return _IMP_kernel.TripletContainer_handle_set_has_required_score_states(self, *args)
5925 def do_get_inputs(self):
5926 """do_get_inputs(TripletContainer self) -> IMP::kernel::ModelObjectsTemp"""
5927 return _IMP_kernel.TripletContainer_do_get_inputs(self)
5929 def do_get_interactions(self):
5930 """do_get_interactions(TripletContainer self) -> IMP::kernel::ModelObjectsTemps"""
5931 return _IMP_kernel.TripletContainer_do_get_interactions(self)
5933 def do_get_contents_hash(self):
5934 """do_get_contents_hash(TripletContainer self) -> std::size_t"""
5935 return _IMP_kernel.TripletContainer_do_get_contents_hash(self)
5937 TripletContainer_swigregister = _IMP_kernel.TripletContainer_swigregister
5938 TripletContainer_swigregister(TripletContainer)
5940 class _TripletContainerAdaptor(IMP.base._InputAdaptor):
5941 """Proxy of C++ IMP::kernel::TripletContainerAdaptor class"""
5942 __swig_setmethods__ = {}
5943 for _s
in [IMP.base._InputAdaptor]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
5944 __setattr__ =
lambda self, name, value: _swig_setattr(self, _TripletContainerAdaptor, name, value)
5945 __swig_getmethods__ = {}
5946 for _s
in [IMP.base._InputAdaptor]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
5947 __getattr__ =
lambda self, name: _swig_getattr(self, _TripletContainerAdaptor, name)
5948 __repr__ = _swig_repr
5949 def __init__(self, *args):
5951 __init__(IMP::kernel::TripletContainerAdaptor self) -> _TripletContainerAdaptor
5952 __init__(IMP::kernel::TripletContainerAdaptor self, TripletContainer c) -> _TripletContainerAdaptor
5953 __init__(IMP::kernel::TripletContainerAdaptor self, IMP::kernel::ParticleTripletsTemp const & t) -> _TripletContainerAdaptor
5955 this = _IMP_kernel.new__TripletContainerAdaptor(*args)
5956 try: self.this.append(this)
5957 except: self.this = this
5958 def set_name_if_default(self, *args):
5959 """set_name_if_default(_TripletContainerAdaptor self, std::string name)"""
5960 return _IMP_kernel._TripletContainerAdaptor_set_name_if_default(self, *args)
5962 __swig_destroy__ = _IMP_kernel.delete__TripletContainerAdaptor
5963 __del__ =
lambda self :
None;
5964 _TripletContainerAdaptor_swigregister = _IMP_kernel._TripletContainerAdaptor_swigregister
5965 _TripletContainerAdaptor_swigregister(_TripletContainerAdaptor)
5969 """write_particles_to_buffer(IMP::kernel::ParticlesTemp const & particles, IMP::kernel::FloatKeys const & keys) -> IMP::base::Vector< char >"""
5970 return _IMP_kernel.write_particles_to_buffer(*args)
5974 read_particles_from_buffer(IMP::base::Vector< char > const & buffer, IMP::kernel::ParticlesTemp const & particles,
5975 IMP::kernel::FloatKeys const & keys)
5977 return _IMP_kernel.read_particles_from_buffer(*args)
5980 """get_particles(Model m, IMP::kernel::ParticleIndexes const & ps) -> IMP::kernel::ParticlesTemp"""
5981 return _IMP_kernel.get_particles(*args)
5985 get_indexes(IMP::kernel::ParticlesTemp const & ps) -> IMP::kernel::ParticleIndexes
5986 get_indexes(IMP::kernel::ParticlePairsTemp const & ps) -> IMP::kernel::ParticleIndexPairs
5988 return _IMP_kernel.get_indexes(*args)
5989 class _ParticleIndexAdaptor(_object):
5990 """Proxy of C++ IMP::kernel::ParticleIndexAdaptor class"""
5991 __swig_setmethods__ = {}
5992 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ParticleIndexAdaptor, name, value)
5993 __swig_getmethods__ = {}
5994 __getattr__ =
lambda self, name: _swig_getattr(self, _ParticleIndexAdaptor, name)
5995 __repr__ = _swig_repr
5996 def __init__(self, *args):
5998 __init__(IMP::kernel::ParticleIndexAdaptor self, Particle p) -> _ParticleIndexAdaptor
5999 __init__(IMP::kernel::ParticleIndexAdaptor self, IMP::kernel::ParticleIndex pi) -> _ParticleIndexAdaptor
6000 __init__(IMP::kernel::ParticleIndexAdaptor self, Decorator d) -> _ParticleIndexAdaptor
6002 this = _IMP_kernel.new__ParticleIndexAdaptor(*args)
6003 try: self.this.append(this)
6004 except: self.this = this
6005 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexAdaptor
6006 __del__ =
lambda self :
None;
6007 _ParticleIndexAdaptor_swigregister = _IMP_kernel._ParticleIndexAdaptor_swigregister
6008 _ParticleIndexAdaptor_swigregister(_ParticleIndexAdaptor)
6010 class _ParticleIndexesAdaptor(IMP.base._InputAdaptor):
6011 """Proxy of C++ IMP::kernel::ParticleIndexesAdaptor class"""
6012 __swig_setmethods__ = {}
6013 for _s
in [IMP.base._InputAdaptor]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
6014 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ParticleIndexesAdaptor, name, value)
6015 __swig_getmethods__ = {}
6016 for _s
in [IMP.base._InputAdaptor]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
6017 __getattr__ =
lambda self, name: _swig_getattr(self, _ParticleIndexesAdaptor, name)
6018 __repr__ = _swig_repr
6019 def __init__(self, *args):
6021 __init__(IMP::kernel::ParticleIndexesAdaptor self, IMP::kernel::ParticlesTemp const & ps) -> _ParticleIndexesAdaptor
6022 __init__(IMP::kernel::ParticleIndexesAdaptor self, IMP::kernel::ParticleIndexes const & pi) -> _ParticleIndexesAdaptor
6023 __init__(IMP::kernel::ParticleIndexesAdaptor self) -> _ParticleIndexesAdaptor
6025 this = _IMP_kernel.new__ParticleIndexesAdaptor(*args)
6026 try: self.this.append(this)
6027 except: self.this = this
6028 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexesAdaptor
6029 __del__ =
lambda self :
None;
6030 _ParticleIndexesAdaptor_swigregister = _IMP_kernel._ParticleIndexesAdaptor_swigregister
6031 _ParticleIndexesAdaptor_swigregister(_ParticleIndexesAdaptor)
6033 class _ParticleIndexPairsAdaptor(_object):
6034 """Proxy of C++ IMP::kernel::ParticleIndexPairsAdaptor class"""
6035 __swig_setmethods__ = {}
6036 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ParticleIndexPairsAdaptor, name, value)
6037 __swig_getmethods__ = {}
6038 __getattr__ =
lambda self, name: _swig_getattr(self, _ParticleIndexPairsAdaptor, name)
6039 __repr__ = _swig_repr
6040 def __init__(self, *args):
6042 __init__(IMP::kernel::ParticleIndexPairsAdaptor self, IMP::kernel::ParticlePairsTemp const & ps) -> _ParticleIndexPairsAdaptor
6043 __init__(IMP::kernel::ParticleIndexPairsAdaptor self, IMP::kernel::ParticleIndexPairs const & pi) -> _ParticleIndexPairsAdaptor
6044 __init__(IMP::kernel::ParticleIndexPairsAdaptor self) -> _ParticleIndexPairsAdaptor
6046 this = _IMP_kernel.new__ParticleIndexPairsAdaptor(*args)
6047 try: self.this.append(this)
6048 except: self.this = this
6049 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexPairsAdaptor
6050 __del__ =
lambda self :
None;
6051 _ParticleIndexPairsAdaptor_swigregister = _IMP_kernel._ParticleIndexPairsAdaptor_swigregister
6052 _ParticleIndexPairsAdaptor_swigregister(_ParticleIndexPairsAdaptor)
6055 """Proxy of C++ IMP::kernel::internal::_ConstRestraint class"""
6056 __swig_setmethods__ = {}
6057 for _s
in [Restraint]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
6058 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ConstRestraint, name, value)
6059 __swig_getmethods__ = {}
6060 for _s
in [Restraint]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
6061 __getattr__ =
lambda self, name: _swig_getattr(self, _ConstRestraint, name)
6062 def __init__(self, *args):
6064 __init__(IMP::kernel::internal::_ConstRestraint self, double v, IMP::kernel::ParticlesTemp const ps) -> _ConstRestraint
6065 __init__(IMP::kernel::internal::_ConstRestraint self, Model m, IMP::kernel::ParticleIndexes const & pis, double v) -> _ConstRestraint
6067 this = _IMP_kernel.new__ConstRestraint(*args)
6068 try: self.this.append(this)
6069 except: self.this = this
6070 def get_value(self):
6071 """get_value(_ConstRestraint self) -> double"""
6072 return _IMP_kernel._ConstRestraint_get_value(self)
6074 def do_create_decomposition(self):
6075 """do_create_decomposition(_ConstRestraint self) -> IMP::kernel::Restraints"""
6076 return _IMP_kernel._ConstRestraint_do_create_decomposition(self)
6078 def do_get_inputs(self):
6079 """do_get_inputs(_ConstRestraint self) -> IMP::kernel::ModelObjectsTemp"""
6080 return _IMP_kernel._ConstRestraint_do_get_inputs(self)
6082 def get_version_info(self):
6083 """get_version_info(_ConstRestraint self) -> VersionInfo"""
6084 return _IMP_kernel._ConstRestraint_get_version_info(self)
6087 """__str__(_ConstRestraint self) -> std::string"""
6088 return _IMP_kernel._ConstRestraint___str__(self)
6091 """__repr__(_ConstRestraint self) -> std::string"""
6092 return _IMP_kernel._ConstRestraint___repr__(self)
6095 return _object_cast_to__ConstRestraint(o)
6096 get_from = staticmethod(get_from)
6098 _ConstRestraint_swigregister = _IMP_kernel._ConstRestraint_swigregister
6099 _ConstRestraint_swigregister(_ConstRestraint)
6102 """Proxy of C++ IMP::kernel::internal::_ConstSingletonScore class"""
6103 __swig_setmethods__ = {}
6104 for _s
in [SingletonScore]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
6105 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ConstSingletonScore, name, value)
6106 __swig_getmethods__ = {}
6107 for _s
in [SingletonScore]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
6108 __getattr__ =
lambda self, name: _swig_getattr(self, _ConstSingletonScore, name)
6109 __repr__ = _swig_repr
6110 def __init__(self, *args):
6111 """__init__(IMP::kernel::internal::_ConstSingletonScore self, double v) -> _ConstSingletonScore"""
6112 this = _IMP_kernel.new__ConstSingletonScore(*args)
6113 try: self.this.append(this)
6114 except: self.this = this
6115 def do_get_inputs(self, *args):
6116 """do_get_inputs(_ConstSingletonScore self, Model arg2, IMP::kernel::ParticleIndexes const & arg3) -> IMP::kernel::ModelObjectsTemp"""
6117 return _IMP_kernel._ConstSingletonScore_do_get_inputs(self, *args)
6119 def get_version_info(self):
6120 """get_version_info(_ConstSingletonScore self) -> VersionInfo"""
6121 return _IMP_kernel._ConstSingletonScore_get_version_info(self)
6123 _ConstSingletonScore_swigregister = _IMP_kernel._ConstSingletonScore_swigregister
6124 _ConstSingletonScore_swigregister(_ConstSingletonScore)
6127 """Proxy of C++ IMP::kernel::internal::_ConstPairScore class"""
6128 __swig_setmethods__ = {}
6129 for _s
in [PairScore]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
6130 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ConstPairScore, name, value)
6131 __swig_getmethods__ = {}
6132 for _s
in [PairScore]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
6133 __getattr__ =
lambda self, name: _swig_getattr(self, _ConstPairScore, name)
6134 __repr__ = _swig_repr
6135 def __init__(self, *args):
6136 """__init__(IMP::kernel::internal::_ConstPairScore self, double v) -> _ConstPairScore"""
6137 this = _IMP_kernel.new__ConstPairScore(*args)
6138 try: self.this.append(this)
6139 except: self.this = this
6140 def do_get_inputs(self, *args):
6141 """do_get_inputs(_ConstPairScore self, Model arg2, IMP::kernel::ParticleIndexes const & arg3) -> IMP::kernel::ModelObjectsTemp"""
6142 return _IMP_kernel._ConstPairScore_do_get_inputs(self, *args)
6144 def get_version_info(self):
6145 """get_version_info(_ConstPairScore self) -> VersionInfo"""
6146 return _IMP_kernel._ConstPairScore_get_version_info(self)
6148 _ConstPairScore_swigregister = _IMP_kernel._ConstPairScore_swigregister
6149 _ConstPairScore_swigregister(_ConstPairScore)
6152 """Proxy of C++ IMP::kernel::internal::_TrivialDecorator class"""
6153 __swig_setmethods__ = {}
6154 for _s
in [Decorator]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
6155 __setattr__ =
lambda self, name, value: _swig_setattr(self, _TrivialDecorator, name, value)
6156 __swig_getmethods__ = {}
6157 for _s
in [Decorator]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
6158 __getattr__ =
lambda self, name: _swig_getattr(self, _TrivialDecorator, name)
6159 def __init__(self, *args):
6161 __init__(IMP::kernel::internal::_TrivialDecorator self) -> _TrivialDecorator
6162 __init__(IMP::kernel::internal::_TrivialDecorator self, Model m, ::IMP::kernel::ParticleIndex id) -> _TrivialDecorator
6163 __init__(IMP::kernel::internal::_TrivialDecorator self, _ParticleAdaptor d) -> _TrivialDecorator
6165 this = _IMP_kernel.new__TrivialDecorator(*args)
6166 try: self.this.append(this)
6167 except: self.this = this
6168 def show(self, *args):
6170 show(_TrivialDecorator self, _ostream out=std::cout)
6171 show(_TrivialDecorator self)
6173 return _IMP_kernel._TrivialDecorator_show(self, *args)
6175 def setup_particle(*args):
6177 setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> _TrivialDecorator
6178 setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
6180 return _IMP_kernel._TrivialDecorator_setup_particle(*args)
6182 if _newclass:setup_particle = staticmethod(setup_particle)
6183 __swig_getmethods__[
"setup_particle"] =
lambda x: setup_particle
6184 def get_is_setup(*args):
6186 get_is_setup(_ParticleAdaptor p) -> bool
6187 get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
6189 return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
6191 if _newclass:get_is_setup = staticmethod(get_is_setup)
6192 __swig_getmethods__[
"get_is_setup"] =
lambda x: get_is_setup
6193 def add_attribute(self, *args):
6195 add_attribute(_TrivialDecorator self, FloatKey k, IMP::Float v, bool opt)
6196 add_attribute(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
6197 add_attribute(_TrivialDecorator self, IntKey a0, IMP::Int a1)
6198 add_attribute(_TrivialDecorator self, StringKey a0, IMP::String a1)
6199 add_attribute(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
6200 add_attribute(_TrivialDecorator self, ObjectKey a0, Object a1)
6202 return _IMP_kernel._TrivialDecorator_add_attribute(self, *args)
6204 def get_value(self, *args):
6206 get_value(_TrivialDecorator self, FloatKey a0) -> IMP::Float
6207 get_value(_TrivialDecorator self, IntKey a0) -> IMP::Int
6208 get_value(_TrivialDecorator self, StringKey a0) -> IMP::String
6209 get_value(_TrivialDecorator self, ParticleIndexKey a0) -> Particle
6210 get_value(_TrivialDecorator self, ObjectKey a0) -> Object
6212 return _IMP_kernel._TrivialDecorator_get_value(self, *args)
6214 def set_value(self, *args):
6216 set_value(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
6217 set_value(_TrivialDecorator self, IntKey a0, IMP::Int a1)
6218 set_value(_TrivialDecorator self, StringKey a0, IMP::String a1)
6219 set_value(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
6220 set_value(_TrivialDecorator self, ObjectKey a0, Object a1)
6222 return _IMP_kernel._TrivialDecorator_set_value(self, *args)
6224 def remove_attribute(self, *args):
6226 remove_attribute(_TrivialDecorator self, FloatKey a0)
6227 remove_attribute(_TrivialDecorator self, IntKey a0)
6228 remove_attribute(_TrivialDecorator self, StringKey a0)
6229 remove_attribute(_TrivialDecorator self, ParticleIndexKey a0)
6230 remove_attribute(_TrivialDecorator self, ObjectKey a0)
6232 return _IMP_kernel._TrivialDecorator_remove_attribute(self, *args)
6234 def has_attribute(self, *args):
6236 has_attribute(_TrivialDecorator self, FloatKey a0) -> bool
6237 has_attribute(_TrivialDecorator self, IntKey a0) -> bool
6238 has_attribute(_TrivialDecorator self, StringKey a0) -> bool
6239 has_attribute(_TrivialDecorator self, ParticleIndexKey a0) -> bool
6240 has_attribute(_TrivialDecorator self, ObjectKey a0) -> bool
6242 return _IMP_kernel._TrivialDecorator_has_attribute(self, *args)
6244 def get_derivative(self, *args):
6245 """get_derivative(_TrivialDecorator self, FloatKey a0) -> double"""
6246 return _IMP_kernel._TrivialDecorator_get_derivative(self, *args)
6249 """get_name(_TrivialDecorator self) -> std::string"""
6250 return _IMP_kernel._TrivialDecorator_get_name(self)
6252 def clear_caches(self):
6253 """clear_caches(_TrivialDecorator self)"""
6254 return _IMP_kernel._TrivialDecorator_clear_caches(self)
6256 def set_name(self, *args):
6257 """set_name(_TrivialDecorator self, std::string a0)"""
6258 return _IMP_kernel._TrivialDecorator_set_name(self, *args)
6261 """set_check_level(_TrivialDecorator self, IMP::base::CheckLevel a0)"""
6262 return _IMP_kernel._TrivialDecorator_set_check_level(self, *args)
6264 def add_to_derivative(self, *args):
6265 """add_to_derivative(_TrivialDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6266 return _IMP_kernel._TrivialDecorator_add_to_derivative(self, *args)
6268 def set_is_optimized(self, *args):
6269 """set_is_optimized(_TrivialDecorator self, FloatKey a0, bool a1)"""
6270 return _IMP_kernel._TrivialDecorator_set_is_optimized(self, *args)
6272 def get_is_optimized(self, *args):
6273 """get_is_optimized(_TrivialDecorator self, FloatKey a0) -> bool"""
6274 return _IMP_kernel._TrivialDecorator_get_is_optimized(self, *args)
6277 """get_check_level(_TrivialDecorator self) -> IMP::base::CheckLevel"""
6278 return _IMP_kernel._TrivialDecorator_get_check_level(self)
6280 def __eq__(self, *args):
6282 __eq__(_TrivialDecorator self, _TrivialDecorator o) -> bool
6283 __eq__(_TrivialDecorator self, Particle d) -> bool
6285 return _IMP_kernel._TrivialDecorator___eq__(self, *args)
6287 def __ne__(self, *args):
6289 __ne__(_TrivialDecorator self, _TrivialDecorator o) -> bool
6290 __ne__(_TrivialDecorator self, Particle d) -> bool
6292 return _IMP_kernel._TrivialDecorator___ne__(self, *args)
6294 def __le__(self, *args):
6296 __le__(_TrivialDecorator self, _TrivialDecorator o) -> bool
6297 __le__(_TrivialDecorator self, Particle d) -> bool
6299 return _IMP_kernel._TrivialDecorator___le__(self, *args)
6301 def __lt__(self, *args):
6303 __lt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
6304 __lt__(_TrivialDecorator self, Particle d) -> bool
6306 return _IMP_kernel._TrivialDecorator___lt__(self, *args)
6308 def __ge__(self, *args):
6310 __ge__(_TrivialDecorator self, _TrivialDecorator o) -> bool
6311 __ge__(_TrivialDecorator self, Particle d) -> bool
6313 return _IMP_kernel._TrivialDecorator___ge__(self, *args)
6315 def __gt__(self, *args):
6317 __gt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
6318 __gt__(_TrivialDecorator self, Particle d) -> bool
6320 return _IMP_kernel._TrivialDecorator___gt__(self, *args)
6323 """__str__(_TrivialDecorator self) -> std::string"""
6324 return _IMP_kernel._TrivialDecorator___str__(self)
6327 """__repr__(_TrivialDecorator self) -> std::string"""
6328 return _IMP_kernel._TrivialDecorator___repr__(self)
6330 __swig_destroy__ = _IMP_kernel.delete__TrivialDecorator
6331 __del__ =
lambda self :
None;
6332 _TrivialDecorator_swigregister = _IMP_kernel._TrivialDecorator_swigregister
6333 _TrivialDecorator_swigregister(_TrivialDecorator)
6335 def _TrivialDecorator_setup_particle(*args):
6337 setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> _TrivialDecorator
6338 _TrivialDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
6340 return _IMP_kernel._TrivialDecorator_setup_particle(*args)
6342 def _TrivialDecorator_get_is_setup(*args):
6344 get_is_setup(_ParticleAdaptor p) -> bool
6345 _TrivialDecorator_get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
6347 return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
6349 class _TrivialDerivedDecorator(_TrivialDecorator):
6350 """Proxy of C++ IMP::kernel::internal::_TrivialDerivedDecorator class"""
6351 __swig_setmethods__ = {}
6352 for _s
in [_TrivialDecorator]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
6353 __setattr__ =
lambda self, name, value: _swig_setattr(self, _TrivialDerivedDecorator, name, value)
6354 __swig_getmethods__ = {}
6355 for _s
in [_TrivialDecorator]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
6356 __getattr__ =
lambda self, name: _swig_getattr(self, _TrivialDerivedDecorator, name)
6357 def __init__(self, *args):
6359 __init__(IMP::kernel::internal::_TrivialDerivedDecorator self) -> _TrivialDerivedDecorator
6360 __init__(IMP::kernel::internal::_TrivialDerivedDecorator self, Model m, ::IMP::kernel::ParticleIndex id) -> _TrivialDerivedDecorator
6361 __init__(IMP::kernel::internal::_TrivialDerivedDecorator self, _ParticleAdaptor d) -> _TrivialDerivedDecorator
6363 this = _IMP_kernel.new__TrivialDerivedDecorator(*args)
6364 try: self.this.append(this)
6365 except: self.this = this
6366 def show(self, *args):
6368 show(_TrivialDerivedDecorator self, _ostream out=std::cout)
6369 show(_TrivialDerivedDecorator self)
6371 return _IMP_kernel._TrivialDerivedDecorator_show(self, *args)
6373 def setup_particle(*args):
6375 setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> _TrivialDerivedDecorator
6376 setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
6378 return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
6380 if _newclass:setup_particle = staticmethod(setup_particle)
6381 __swig_getmethods__[
"setup_particle"] =
lambda x: setup_particle
6382 def get_is_setup(*args):
6384 get_is_setup(_ParticleAdaptor p) -> bool
6385 get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
6387 return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
6389 if _newclass:get_is_setup = staticmethod(get_is_setup)
6390 __swig_getmethods__[
"get_is_setup"] =
lambda x: get_is_setup
6391 def add_attribute(self, *args):
6393 add_attribute(_TrivialDerivedDecorator self, FloatKey k, IMP::Float v, bool opt)
6394 add_attribute(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
6395 add_attribute(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
6396 add_attribute(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
6397 add_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
6398 add_attribute(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
6400 return _IMP_kernel._TrivialDerivedDecorator_add_attribute(self, *args)
6402 def get_value(self, *args):
6404 get_value(_TrivialDerivedDecorator self, FloatKey a0) -> IMP::Float
6405 get_value(_TrivialDerivedDecorator self, IntKey a0) -> IMP::Int
6406 get_value(_TrivialDerivedDecorator self, StringKey a0) -> IMP::String
6407 get_value(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> Particle
6408 get_value(_TrivialDerivedDecorator self, ObjectKey a0) -> Object
6410 return _IMP_kernel._TrivialDerivedDecorator_get_value(self, *args)
6412 def set_value(self, *args):
6414 set_value(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
6415 set_value(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
6416 set_value(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
6417 set_value(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
6418 set_value(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
6420 return _IMP_kernel._TrivialDerivedDecorator_set_value(self, *args)
6422 def remove_attribute(self, *args):
6424 remove_attribute(_TrivialDerivedDecorator self, FloatKey a0)
6425 remove_attribute(_TrivialDerivedDecorator self, IntKey a0)
6426 remove_attribute(_TrivialDerivedDecorator self, StringKey a0)
6427 remove_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0)
6428 remove_attribute(_TrivialDerivedDecorator self, ObjectKey a0)
6430 return _IMP_kernel._TrivialDerivedDecorator_remove_attribute(self, *args)
6432 def has_attribute(self, *args):
6434 has_attribute(_TrivialDerivedDecorator self, FloatKey a0) -> bool
6435 has_attribute(_TrivialDerivedDecorator self, IntKey a0) -> bool
6436 has_attribute(_TrivialDerivedDecorator self, StringKey a0) -> bool
6437 has_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> bool
6438 has_attribute(_TrivialDerivedDecorator self, ObjectKey a0) -> bool
6440 return _IMP_kernel._TrivialDerivedDecorator_has_attribute(self, *args)
6442 def get_derivative(self, *args):
6443 """get_derivative(_TrivialDerivedDecorator self, FloatKey a0) -> double"""
6444 return _IMP_kernel._TrivialDerivedDecorator_get_derivative(self, *args)
6447 """get_name(_TrivialDerivedDecorator self) -> std::string"""
6448 return _IMP_kernel._TrivialDerivedDecorator_get_name(self)
6450 def clear_caches(self):
6451 """clear_caches(_TrivialDerivedDecorator self)"""
6452 return _IMP_kernel._TrivialDerivedDecorator_clear_caches(self)
6454 def set_name(self, *args):
6455 """set_name(_TrivialDerivedDecorator self, std::string a0)"""
6456 return _IMP_kernel._TrivialDerivedDecorator_set_name(self, *args)
6459 """set_check_level(_TrivialDerivedDecorator self, IMP::base::CheckLevel a0)"""
6460 return _IMP_kernel._TrivialDerivedDecorator_set_check_level(self, *args)
6462 def add_to_derivative(self, *args):
6463 """add_to_derivative(_TrivialDerivedDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6464 return _IMP_kernel._TrivialDerivedDecorator_add_to_derivative(self, *args)
6466 def set_is_optimized(self, *args):
6467 """set_is_optimized(_TrivialDerivedDecorator self, FloatKey a0, bool a1)"""
6468 return _IMP_kernel._TrivialDerivedDecorator_set_is_optimized(self, *args)
6470 def get_is_optimized(self, *args):
6471 """get_is_optimized(_TrivialDerivedDecorator self, FloatKey a0) -> bool"""
6472 return _IMP_kernel._TrivialDerivedDecorator_get_is_optimized(self, *args)
6475 """get_check_level(_TrivialDerivedDecorator self) -> IMP::base::CheckLevel"""
6476 return _IMP_kernel._TrivialDerivedDecorator_get_check_level(self)
6478 def __eq__(self, *args):
6480 __eq__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
6481 __eq__(_TrivialDerivedDecorator self, Particle d) -> bool
6483 return _IMP_kernel._TrivialDerivedDecorator___eq__(self, *args)
6485 def __ne__(self, *args):
6487 __ne__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
6488 __ne__(_TrivialDerivedDecorator self, Particle d) -> bool
6490 return _IMP_kernel._TrivialDerivedDecorator___ne__(self, *args)
6492 def __le__(self, *args):
6494 __le__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
6495 __le__(_TrivialDerivedDecorator self, Particle d) -> bool
6497 return _IMP_kernel._TrivialDerivedDecorator___le__(self, *args)
6499 def __lt__(self, *args):
6501 __lt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
6502 __lt__(_TrivialDerivedDecorator self, Particle d) -> bool
6504 return _IMP_kernel._TrivialDerivedDecorator___lt__(self, *args)
6506 def __ge__(self, *args):
6508 __ge__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
6509 __ge__(_TrivialDerivedDecorator self, Particle d) -> bool
6511 return _IMP_kernel._TrivialDerivedDecorator___ge__(self, *args)
6513 def __gt__(self, *args):
6515 __gt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
6516 __gt__(_TrivialDerivedDecorator self, Particle d) -> bool
6518 return _IMP_kernel._TrivialDerivedDecorator___gt__(self, *args)
6521 """__str__(_TrivialDerivedDecorator self) -> std::string"""
6522 return _IMP_kernel._TrivialDerivedDecorator___str__(self)
6525 """__repr__(_TrivialDerivedDecorator self) -> std::string"""
6526 return _IMP_kernel._TrivialDerivedDecorator___repr__(self)
6528 __swig_destroy__ = _IMP_kernel.delete__TrivialDerivedDecorator
6529 __del__ =
lambda self :
None;
6530 _TrivialDerivedDecorator_swigregister = _IMP_kernel._TrivialDerivedDecorator_swigregister
6531 _TrivialDerivedDecorator_swigregister(_TrivialDerivedDecorator)
6533 def _TrivialDerivedDecorator_setup_particle(*args):
6535 setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> _TrivialDerivedDecorator
6536 _TrivialDerivedDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
6538 return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
6540 def _TrivialDerivedDecorator_get_is_setup(*args):
6542 get_is_setup(_ParticleAdaptor p) -> bool
6543 _TrivialDerivedDecorator_get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
6545 return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
6547 class _TrivialTraitsDecorator(
Decorator):
6548 """Proxy of C++ IMP::kernel::internal::_TrivialTraitsDecorator class"""
6549 __swig_setmethods__ = {}
6550 for _s
in [Decorator]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
6551 __setattr__ =
lambda self, name, value: _swig_setattr(self, _TrivialTraitsDecorator, name, value)
6552 __swig_getmethods__ = {}
6553 for _s
in [Decorator]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
6554 __getattr__ =
lambda self, name: _swig_getattr(self, _TrivialTraitsDecorator, name)
6555 def get_decorator_traits(self):
6556 """get_decorator_traits(_TrivialTraitsDecorator self) -> StringKey"""
6557 return _IMP_kernel._TrivialTraitsDecorator_get_decorator_traits(self)
6559 def get_default_decorator_traits():
6560 """get_default_decorator_traits() -> StringKey"""
6561 return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
6563 if _newclass:get_default_decorator_traits = staticmethod(get_default_decorator_traits)
6564 __swig_getmethods__[
"get_default_decorator_traits"] =
lambda x: get_default_decorator_traits
6565 def __init__(self, *args):
6567 __init__(IMP::kernel::internal::_TrivialTraitsDecorator self) -> _TrivialTraitsDecorator
6568 __init__(IMP::kernel::internal::_TrivialTraitsDecorator self, Model m, ::IMP::kernel::ParticleIndex id, StringKey tr=get_default_key()) -> _TrivialTraitsDecorator
6569 __init__(IMP::kernel::internal::_TrivialTraitsDecorator self, Model m, ::IMP::kernel::ParticleIndex id) -> _TrivialTraitsDecorator
6570 __init__(IMP::kernel::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d, StringKey tr=get_default_key()) -> _TrivialTraitsDecorator
6571 __init__(IMP::kernel::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d) -> _TrivialTraitsDecorator
6573 this = _IMP_kernel.new__TrivialTraitsDecorator(*args)
6574 try: self.this.append(this)
6575 except: self.this = this
6576 def show(self, *args):
6578 show(_TrivialTraitsDecorator self, _ostream out=std::cout)
6579 show(_TrivialTraitsDecorator self)
6581 return _IMP_kernel._TrivialTraitsDecorator_show(self, *args)
6583 def setup_particle(*args):
6585 setup_particle(Model m, IMP::kernel::ParticleIndex pi, StringKey tr=IMP::kernel::internal::_TrivialTraitsDecorator::get_default_decorator_traits()) -> _TrivialTraitsDecorator
6586 setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> _TrivialTraitsDecorator
6587 setup_particle(_ParticleAdaptor d, StringKey tr=IMP::kernel::internal::_TrivialTraitsDecorator::get_default_decorator_traits()) -> _TrivialTraitsDecorator
6588 setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
6590 return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
6592 if _newclass:setup_particle = staticmethod(setup_particle)
6593 __swig_getmethods__[
"setup_particle"] =
lambda x: setup_particle
6594 def get_is_setup(*args):
6596 get_is_setup(_ParticleAdaptor p, StringKey tr=get_default_key()) -> bool
6597 get_is_setup(_ParticleAdaptor p) -> bool
6598 get_is_setup(Model m, IMP::kernel::ParticleIndex pi, StringKey k=get_default_key()) -> bool
6599 get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
6601 return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
6603 if _newclass:get_is_setup = staticmethod(get_is_setup)
6604 __swig_getmethods__[
"get_is_setup"] =
lambda x: get_is_setup
6605 def get_default_key():
6606 """get_default_key() -> StringKey"""
6607 return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
6609 if _newclass:get_default_key = staticmethod(get_default_key)
6610 __swig_getmethods__[
"get_default_key"] =
lambda x: get_default_key
6611 def add_attribute(self, *args):
6613 add_attribute(_TrivialTraitsDecorator self, FloatKey k, IMP::Float v, bool opt)
6614 add_attribute(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
6615 add_attribute(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
6616 add_attribute(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
6617 add_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
6618 add_attribute(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
6620 return _IMP_kernel._TrivialTraitsDecorator_add_attribute(self, *args)
6622 def get_value(self, *args):
6624 get_value(_TrivialTraitsDecorator self, FloatKey a0) -> IMP::Float
6625 get_value(_TrivialTraitsDecorator self, IntKey a0) -> IMP::Int
6626 get_value(_TrivialTraitsDecorator self, StringKey a0) -> IMP::String
6627 get_value(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> Particle
6628 get_value(_TrivialTraitsDecorator self, ObjectKey a0) -> Object
6630 return _IMP_kernel._TrivialTraitsDecorator_get_value(self, *args)
6632 def set_value(self, *args):
6634 set_value(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
6635 set_value(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
6636 set_value(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
6637 set_value(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
6638 set_value(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
6640 return _IMP_kernel._TrivialTraitsDecorator_set_value(self, *args)
6642 def remove_attribute(self, *args):
6644 remove_attribute(_TrivialTraitsDecorator self, FloatKey a0)
6645 remove_attribute(_TrivialTraitsDecorator self, IntKey a0)
6646 remove_attribute(_TrivialTraitsDecorator self, StringKey a0)
6647 remove_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0)
6648 remove_attribute(_TrivialTraitsDecorator self, ObjectKey a0)
6650 return _IMP_kernel._TrivialTraitsDecorator_remove_attribute(self, *args)
6652 def has_attribute(self, *args):
6654 has_attribute(_TrivialTraitsDecorator self, FloatKey a0) -> bool
6655 has_attribute(_TrivialTraitsDecorator self, IntKey a0) -> bool
6656 has_attribute(_TrivialTraitsDecorator self, StringKey a0) -> bool
6657 has_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> bool
6658 has_attribute(_TrivialTraitsDecorator self, ObjectKey a0) -> bool
6660 return _IMP_kernel._TrivialTraitsDecorator_has_attribute(self, *args)
6662 def get_derivative(self, *args):
6663 """get_derivative(_TrivialTraitsDecorator self, FloatKey a0) -> double"""
6664 return _IMP_kernel._TrivialTraitsDecorator_get_derivative(self, *args)
6667 """get_name(_TrivialTraitsDecorator self) -> std::string"""
6668 return _IMP_kernel._TrivialTraitsDecorator_get_name(self)
6670 def clear_caches(self):
6671 """clear_caches(_TrivialTraitsDecorator self)"""
6672 return _IMP_kernel._TrivialTraitsDecorator_clear_caches(self)
6674 def set_name(self, *args):
6675 """set_name(_TrivialTraitsDecorator self, std::string a0)"""
6676 return _IMP_kernel._TrivialTraitsDecorator_set_name(self, *args)
6679 """set_check_level(_TrivialTraitsDecorator self, IMP::base::CheckLevel a0)"""
6680 return _IMP_kernel._TrivialTraitsDecorator_set_check_level(self, *args)
6682 def add_to_derivative(self, *args):
6683 """add_to_derivative(_TrivialTraitsDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6684 return _IMP_kernel._TrivialTraitsDecorator_add_to_derivative(self, *args)
6686 def set_is_optimized(self, *args):
6687 """set_is_optimized(_TrivialTraitsDecorator self, FloatKey a0, bool a1)"""
6688 return _IMP_kernel._TrivialTraitsDecorator_set_is_optimized(self, *args)
6690 def get_is_optimized(self, *args):
6691 """get_is_optimized(_TrivialTraitsDecorator self, FloatKey a0) -> bool"""
6692 return _IMP_kernel._TrivialTraitsDecorator_get_is_optimized(self, *args)
6695 """get_check_level(_TrivialTraitsDecorator self) -> IMP::base::CheckLevel"""
6696 return _IMP_kernel._TrivialTraitsDecorator_get_check_level(self)
6698 def __eq__(self, *args):
6700 __eq__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
6701 __eq__(_TrivialTraitsDecorator self, Particle d) -> bool
6703 return _IMP_kernel._TrivialTraitsDecorator___eq__(self, *args)
6705 def __ne__(self, *args):
6707 __ne__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
6708 __ne__(_TrivialTraitsDecorator self, Particle d) -> bool
6710 return _IMP_kernel._TrivialTraitsDecorator___ne__(self, *args)
6712 def __le__(self, *args):
6714 __le__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
6715 __le__(_TrivialTraitsDecorator self, Particle d) -> bool
6717 return _IMP_kernel._TrivialTraitsDecorator___le__(self, *args)
6719 def __lt__(self, *args):
6721 __lt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
6722 __lt__(_TrivialTraitsDecorator self, Particle d) -> bool
6724 return _IMP_kernel._TrivialTraitsDecorator___lt__(self, *args)
6726 def __ge__(self, *args):
6728 __ge__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
6729 __ge__(_TrivialTraitsDecorator self, Particle d) -> bool
6731 return _IMP_kernel._TrivialTraitsDecorator___ge__(self, *args)
6733 def __gt__(self, *args):
6735 __gt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
6736 __gt__(_TrivialTraitsDecorator self, Particle d) -> bool
6738 return _IMP_kernel._TrivialTraitsDecorator___gt__(self, *args)
6741 """__str__(_TrivialTraitsDecorator self) -> std::string"""
6742 return _IMP_kernel._TrivialTraitsDecorator___str__(self)
6745 """__repr__(_TrivialTraitsDecorator self) -> std::string"""
6746 return _IMP_kernel._TrivialTraitsDecorator___repr__(self)
6748 __swig_destroy__ = _IMP_kernel.delete__TrivialTraitsDecorator
6749 __del__ =
lambda self :
None;
6750 _TrivialTraitsDecorator_swigregister = _IMP_kernel._TrivialTraitsDecorator_swigregister
6751 _TrivialTraitsDecorator_swigregister(_TrivialTraitsDecorator)
6753 def _TrivialTraitsDecorator_get_default_decorator_traits():
6754 """_TrivialTraitsDecorator_get_default_decorator_traits() -> StringKey"""
6755 return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
6757 def _TrivialTraitsDecorator_setup_particle(*args):
6759 setup_particle(Model m, IMP::kernel::ParticleIndex pi, StringKey tr=IMP::kernel::internal::_TrivialTraitsDecorator::get_default_decorator_traits()) -> _TrivialTraitsDecorator
6760 setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> _TrivialTraitsDecorator
6761 setup_particle(_ParticleAdaptor d, StringKey tr=IMP::kernel::internal::_TrivialTraitsDecorator::get_default_decorator_traits()) -> _TrivialTraitsDecorator
6762 _TrivialTraitsDecorator_setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
6764 return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
6766 def _TrivialTraitsDecorator_get_is_setup(*args):
6768 get_is_setup(_ParticleAdaptor p, StringKey tr=get_default_key()) -> bool
6769 get_is_setup(_ParticleAdaptor p) -> bool
6770 get_is_setup(Model m, IMP::kernel::ParticleIndex pi, StringKey k=get_default_key()) -> bool
6771 _TrivialTraitsDecorator_get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
6773 return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
6775 def _TrivialTraitsDecorator_get_default_key():
6776 """_TrivialTraitsDecorator_get_default_key() -> StringKey"""
6777 return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
6780 def __lshift__(*args):
6782 __lshift__(_ostream out, _TrivialDecorator n) -> _ostream
6783 __lshift__(_ostream out, _TrivialDerivedDecorator n) -> _ostream
6784 __lshift__(_ostream out, _TrivialTraitsDecorator n) -> _ostream
6786 return _IMP_kernel.__lshift__(*args)
6788 """Proxy of C++ IMP::kernel::internal::_ConstOptimizer class"""
6789 __swig_setmethods__ = {}
6790 for _s
in [Optimizer]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
6791 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ConstOptimizer, name, value)
6792 __swig_getmethods__ = {}
6793 for _s
in [Optimizer]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
6794 __getattr__ =
lambda self, name: _swig_getattr(self, _ConstOptimizer, name)
6795 def __init__(self, *args):
6796 """__init__(IMP::kernel::internal::_ConstOptimizer self, Model m) -> _ConstOptimizer"""
6797 this = _IMP_kernel.new__ConstOptimizer(*args)
6798 try: self.this.append(this)
6799 except: self.this = this
6800 def do_optimize(self, *args):
6801 """do_optimize(_ConstOptimizer self, unsigned int max_steps) -> IMP::Float"""
6802 return _IMP_kernel._ConstOptimizer_do_optimize(self, *args)
6804 def get_version_info(self):
6805 """get_version_info(_ConstOptimizer self) -> VersionInfo"""
6806 return _IMP_kernel._ConstOptimizer_get_version_info(self)
6809 """__str__(_ConstOptimizer self) -> std::string"""
6810 return _IMP_kernel._ConstOptimizer___str__(self)
6813 """__repr__(_ConstOptimizer self) -> std::string"""
6814 return _IMP_kernel._ConstOptimizer___repr__(self)
6817 return _object_cast_to__ConstOptimizer(o)
6818 get_from = staticmethod(get_from)
6820 _ConstOptimizer_swigregister = _IMP_kernel._ConstOptimizer_swigregister
6821 _ConstOptimizer_swigregister(_ConstOptimizer)
6824 def get_particle(*args):
6825 """get_particle(Particle p) -> Particle"""
6826 return _IMP_kernel.get_particle(*args)
6828 def _decorator_test(*args):
6829 """_decorator_test(Particle p)"""
6830 return _IMP_kernel._decorator_test(*args)
6832 def _overloaded_decorator(*args):
6834 _overloaded_decorator(_TrivialDecorator a) -> int
6835 _overloaded_decorator(_TrivialDerivedDecorator a) -> int
6837 return _IMP_kernel._overloaded_decorator(*args)
6839 def _take_particles(*args):
6841 _take_particles(IMP::kernel::Particles const & ps) -> unsigned int
6842 _take_particles(Model m, IMP::kernel::Particles const & ps) -> unsigned int
6843 _take_particles(Model m, IMP::kernel::Particles const & ps, TextOutput out) -> unsigned int
6845 return _IMP_kernel._take_particles(*args)
6847 def _give_particles(*args):
6848 """_give_particles(Model m) -> IMP::kernel::Particles const &"""
6849 return _IMP_kernel._give_particles(*args)
6851 def _pass_particles(*args):
6852 """_pass_particles(IMP::kernel::Particles const & ps) -> IMP::kernel::Particles const &"""
6853 return _IMP_kernel._pass_particles(*args)
6855 def _pass_particle(*args):
6856 """_pass_particle(Particle ps) -> Particle"""
6857 return _IMP_kernel._pass_particle(*args)
6859 def _pass_particle_pair(*args):
6860 """_pass_particle_pair(IMP::kernel::ParticlePair const & pp) -> IMP::kernel::ParticlePair const &"""
6861 return _IMP_kernel._pass_particle_pair(*args)
6863 def _give_particles_copy(*args):
6864 """_give_particles_copy(Model m) -> IMP::kernel::Particles"""
6865 return _IMP_kernel._give_particles_copy(*args)
6867 def _pass_float_keys(*args):
6868 """_pass_float_keys(IMP::kernel::FloatKeys const & input) -> IMP::kernel::FloatKeys"""
6869 return _IMP_kernel._pass_float_keys(*args)
6873 _pass(IMP::kernel::Particles const & p) -> IMP::kernel::Particles const
6874 _pass(IMP::kernel::Restraints const & p) -> IMP::kernel::Restraints const &
6876 return _IMP_kernel._pass(*args)
6878 def _pass_decorators(*args):
6879 """_pass_decorators(IMP::kernel::internal::_TrivialDecorators const & p) -> IMP::kernel::internal::_TrivialDecorators const &"""
6880 return _IMP_kernel._pass_decorators(*args)
6882 def _pass_decorator_traits(*args):
6883 """_pass_decorator_traits(IMP::kernel::internal::_TrivialTraitsDecorators const & p) -> IMP::kernel::internal::_TrivialTraitsDecorators const &"""
6884 return _IMP_kernel._pass_decorator_traits(*args)
6886 def _pass_particle_pairs(*args):
6887 """_pass_particle_pairs(IMP::kernel::ParticlePairsTemp const & p) -> IMP::kernel::ParticlePairsTemp"""
6888 return _IMP_kernel._pass_particle_pairs(*args)
6890 def _pass_particle_index_pairs(*args):
6891 """_pass_particle_index_pairs(IMP::kernel::ParticleIndexPairs const & p) -> IMP::kernel::ParticleIndexPairs"""
6892 return _IMP_kernel._pass_particle_index_pairs(*args)
6894 def _pass_model_objects(*args):
6895 """_pass_model_objects(IMP::kernel::ModelObjectsTemp const & p) -> IMP::kernel::ModelObjectsTemp"""
6896 return _IMP_kernel._pass_model_objects(*args)
6898 def _pass_particles_temps(*args):
6899 """_pass_particles_temps(IMP::kernel::ParticlesTemps const & ps) -> IMP::kernel::ParticlesTemps"""
6900 return _IMP_kernel._pass_particles_temps(*args)
6902 def _test_overload(*args):
6904 _test_overload(IMP::kernel::Particles const & ps) -> int
6905 _test_overload(IMP::kernel::Restraints const & ps) -> int
6907 return _IMP_kernel._test_overload(*args)
6909 def _get_range(*args):
6910 """_get_range(Model m, FloatKey k) -> IMP::FloatRange"""
6911 return _IMP_kernel._get_range(*args)
6913 def _create_particles_from_pdb(*args):
6914 """_create_particles_from_pdb(std::string name, Model m) -> IMP::kernel::ParticlesTemp"""
6915 return _IMP_kernel._create_particles_from_pdb(*args)
6917 """Proxy of C++ IMP::kernel::internal::_LogPairScore class"""
6918 __swig_setmethods__ = {}
6919 for _s
in [PairScore]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
6920 __setattr__ =
lambda self, name, value: _swig_setattr(self, _LogPairScore, name, value)
6921 __swig_getmethods__ = {}
6922 for _s
in [PairScore]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
6923 __getattr__ =
lambda self, name: _swig_getattr(self, _LogPairScore, name)
6924 __repr__ = _swig_repr
6926 """__init__(IMP::kernel::internal::_LogPairScore self) -> _LogPairScore"""
6927 this = _IMP_kernel.new__LogPairScore()
6928 try: self.this.append(this)
6929 except: self.this = this
6930 def do_get_inputs(self, *args):
6931 """do_get_inputs(_LogPairScore self, Model arg2, IMP::kernel::ParticleIndexes const & arg3) -> IMP::kernel::ModelObjectsTemp"""
6932 return _IMP_kernel._LogPairScore_do_get_inputs(self, *args)
6934 def get_version_info(self):
6935 """get_version_info(_LogPairScore self) -> VersionInfo"""
6936 return _IMP_kernel._LogPairScore_get_version_info(self)
6938 def get_particle_pairs(self):
6939 """get_particle_pairs(_LogPairScore self) -> IMP::kernel::ParticlePairsTemp"""
6940 return _IMP_kernel._LogPairScore_get_particle_pairs(self)
6943 """clear(_LogPairScore self)"""
6944 return _IMP_kernel._LogPairScore_clear(self)
6946 def get_contains(self, *args):
6947 """get_contains(_LogPairScore self, IMP::kernel::ParticlePair const & pp) -> bool"""
6948 return _IMP_kernel._LogPairScore_get_contains(self, *args)
6950 _LogPairScore_swigregister = _IMP_kernel._LogPairScore_swigregister
6951 _LogPairScore_swigregister(_LogPairScore)
6954 def _overloaded_particles(*args):
6956 _overloaded_particles(Particle arg1)
6957 _overloaded_particles(IMP::kernel::Particles const & arg1)
6958 _overloaded_particles(IMP::kernel::ParticlesTemp const & arg1)
6959 _overloaded_particles(Model arg1, IMP::kernel::ParticleIndexes const & arg2)
6960 _overloaded_particles(IMP::kernel::internal::_TrivialDecorators const & arg1)
6961 _overloaded_particles(_TrivialDecorator arg1)
6963 return _IMP_kernel._overloaded_particles(*args)
6964 class _ImplicitParticles(_object):
6965 """Proxy of C++ IMP::kernel::internal::_ImplicitParticles class"""
6966 __swig_setmethods__ = {}
6967 __setattr__ =
lambda self, name, value: _swig_setattr(self, _ImplicitParticles, name, value)
6968 __swig_getmethods__ = {}
6969 __getattr__ =
lambda self, name: _swig_getattr(self, _ImplicitParticles, name)
6970 __repr__ = _swig_repr
6971 def __init__(self, *args):
6973 __init__(IMP::kernel::internal::_ImplicitParticles self, Particle arg2) -> _ImplicitParticles
6974 __init__(IMP::kernel::internal::_ImplicitParticles self, IMP::kernel::Particles const & arg2) -> _ImplicitParticles
6975 __init__(IMP::kernel::internal::_ImplicitParticles self, IMP::kernel::ParticlesTemp const & arg2) -> _ImplicitParticles
6976 __init__(IMP::kernel::internal::_ImplicitParticles self, Model arg2, IMP::kernel::ParticleIndexes const & arg3) -> _ImplicitParticles
6977 __init__(IMP::kernel::internal::_ImplicitParticles self, IMP::kernel::internal::_TrivialDecorators const & arg2) -> _ImplicitParticles
6978 __init__(IMP::kernel::internal::_ImplicitParticles self, _TrivialDecorator arg2) -> _ImplicitParticles
6980 this = _IMP_kernel.new__ImplicitParticles(*args)
6981 try: self.this.append(this)
6982 except: self.this = this
6983 __swig_destroy__ = _IMP_kernel.delete__ImplicitParticles
6984 __del__ =
lambda self :
None;
6985 _ImplicitParticles_swigregister = _IMP_kernel._ImplicitParticles_swigregister
6986 _ImplicitParticles_swigregister(_ImplicitParticles)
6989 def _implicit_particles(*args):
6990 """_implicit_particles(_ImplicitParticles arg1)"""
6991 return _IMP_kernel._implicit_particles(*args)
6993 def _take_particle_adaptor(*args):
6994 """_take_particle_adaptor(_ParticleAdaptor pa) -> IMP::kernel::ParticleIndex"""
6995 return _IMP_kernel._take_particle_adaptor(*args)
6997 def _take_particle_indexes_adaptor(*args):
6998 """_take_particle_indexes_adaptor(_ParticleIndexesAdaptor pa) -> IMP::kernel::ParticleIndexes"""
6999 return _IMP_kernel._take_particle_indexes_adaptor(*args)
7000 class ScopedSetFloatAttribute(IMP.base._RAII):
7001 """Proxy of C++ IMP::kernel::ScopedSetAttribute<(FloatKey,IMP::Float)> class"""
7002 __swig_setmethods__ = {}
7003 for _s
in [IMP.base._RAII]: __swig_setmethods__.update(getattr(_s,
'__swig_setmethods__',{}))
7004 __setattr__ =
lambda self, name, value: _swig_setattr(self, ScopedSetFloatAttribute, name, value)
7005 __swig_getmethods__ = {}
7006 for _s
in [IMP.base._RAII]: __swig_getmethods__.update(getattr(_s,
'__swig_getmethods__',{}))
7007 __getattr__ =
lambda self, name: _swig_getattr(self, ScopedSetFloatAttribute, name)
7008 def __init__(self, *args):
7010 __init__(IMP::kernel::ScopedSetAttribute<(FloatKey,IMP::Float)> self) -> ScopedSetFloatAttribute
7011 __init__(IMP::kernel::ScopedSetAttribute<(FloatKey,IMP::Float)> self, Particle p, FloatKey key, double const & value) -> ScopedSetFloatAttribute
7013 this = _IMP_kernel.new_ScopedSetFloatAttribute(*args)
7014 try: self.this.append(this)
7015 except: self.this = this
7016 def set(self, *args):
7017 """set(ScopedSetFloatAttribute self, Particle p, FloatKey key, double const & value)"""
7018 return _IMP_kernel.ScopedSetFloatAttribute_set(self, *args)
7021 """reset(ScopedSetFloatAttribute self)"""
7022 return _IMP_kernel.ScopedSetFloatAttribute_reset(self)
7024 __swig_destroy__ = _IMP_kernel.delete_ScopedSetFloatAttribute
7025 __del__ =
lambda self :
None;
7026 def show(self, *args):
7028 show(ScopedSetFloatAttribute self, _ostream out=std::cout)
7029 show(ScopedSetFloatAttribute self)
7031 return _IMP_kernel.ScopedSetFloatAttribute_show(self, *args)
7034 """__str__(ScopedSetFloatAttribute self) -> std::string"""
7035 return _IMP_kernel.ScopedSetFloatAttribute___str__(self)
7038 """__repr__(ScopedSetFloatAttribute self) -> std::string"""
7039 return _IMP_kernel.ScopedSetFloatAttribute___repr__(self)
7041 ScopedSetFloatAttribute_swigregister = _IMP_kernel.ScopedSetFloatAttribute_swigregister
7042 ScopedSetFloatAttribute_swigregister(ScopedSetFloatAttribute)
7051 get_networkx_graph=IMP.base.get_networkx_graph
7052 show_altgraph=IMP.base.show_altgraph
7053 show_graphviz=IMP.base.show_graphviz
7058 USAGE= IMP.base.USAGE
7059 USAGE_AND_INTERNAL= IMP.base.USAGE_AND_INTERNAL
7060 TERSE= IMP.base.TERSE
7061 SILENT= IMP.base.SILENT
7062 VERBOSE= IMP.base.VERBOSE
7063 WARNING= IMP.base.WARNING
7064 PROGRESS= IMP.base.PROGRESS
7065 MEMORY= IMP.base.MEMORY
7066 create_temporary_file= IMP.base.create_temporary_file
7067 create_temporary_file_name= IMP.base.create_temporary_file_name
7068 random_number_generator= IMP.base.random_number_generator
7069 set_log_level=IMP.base.set_log_level
7070 set_log_timer=IMP.base.set_log_timer
7071 get_log_level=IMP.base.get_log_level
7072 add_to_log= IMP.base.add_to_log
7073 set_check_level= IMP.base.set_check_level
7074 get_check_level= IMP.base.get_check_level
7078 if sys.platform ==
'win32' and 'IMP_LD_PATH' in os.environ:
7079 dirs = os.environ[
'IMP_LD_PATH'].split(
":")
7080 pathcomps = os.environ[
'PATH'].split(
";")
7082 if d
not in pathcomps:
7083 os.environ[
'PATH'] = d +
';' + os.environ[
'PATH']
7095 """Allow applications to easily implement commmands.
7096 Typically, an IMP application will use an instance of this class
7097 to provide a consistent interface to multiple distinct commands
7098 from a single binary, rather than providing a potentially large
7101 Each command is implemented with a Python module of the same name
7102 that can be imported from the module (for example, if module_name
7103 is 'IMP.foo', the 'bar' command is provided by the IMP.foo.bar Python
7104 module, which would usually be found as modules/foo/pyext/src/bar.py).
7105 Each such module should have a docstring (__doc__) and a main() method
7106 that takes no arguments (the module should also call its main() method
7107 if it is run directly, i.e. with something like
7108 'if __name__=="__main__": main()'). The encompassing module
7109 ('IMP.foo' in the example) should define _all_commands as a Python
7110 list of all valid commands.
7112 @param short_help A few words that describe the application.
7113 @param long_help Longer text, used in the 'help' command.
7114 @param module_name Name of the module (e.g. 'IMP.foo') that implements
7118 def __init__(self, short_help, long_help, module_name):
7119 self.short_help = short_help
7120 self.long_help = long_help
7121 self.module_name = module_name
7122 self._all_commands = self.import_module()._all_commands
7123 self._progname = os.path.basename(sys.argv[0])
7126 if len(sys.argv) <= 1:
7127 print self.short_help +
" Use '%s help' for help." % self._progname
7129 command = sys.argv[1]
7130 if command
in (
'help',
'--help',
'-h'):
7131 if len(sys.argv) == 3:
7132 self.show_command_help(sys.argv[2])
7135 elif command ==
'--version':
7137 elif command
in self._all_commands:
7138 self.do_command(command)
7140 self.unknown_command(command)
7142 def import_module(self, mod=None):
7143 modname = self.module_name
7145 modname +=
"." + mod
7146 return __import__(modname, {}, {}, [
''])
7148 def unknown_command(self, command):
7149 print "Unknown command: '%s'" % command
7150 print "Use '%s help' for help." % self._progname
7153 def _get_version(self):
7154 return self.import_module().get_module_version()
7156 def show_version(self):
7157 print self._progname +
' ' + self._get_version()
7159 def show_help(self):
7160 ver = self._get_version()
7161 print "%s, version %s." % (self._progname, ver)
7162 print self.long_help +
"""
7164 This program is part of IMP, the Integrative Modeling Platform,
7165 which is Copyright 2007-2014 IMP Inventors.
7166 For additional information about IMP, see <http://integrativemodeling.org>.
7168 Usage: %s <command> [options] [args]
7170 Commands:""" % self._progname
7171 commands = self._all_commands[:] + [
'help']
7173 cmdlen = max([len(c)
for c
in commands])
7176 doc =
'Get help on using %s.' % self._progname
7178 doc = self.import_module(c).__doc__
or "<no help>"
7179 c +=
' ' * (cmdlen - len(c))
7180 print ' ' + c +
' ' + doc
7182 Use "%s help <command>" for detailed help on any command
7183 or "%s --version" to see the version number.""" % (self._progname,
7186 def do_command(self, command):
7187 mod = self.import_module(command)
7188 sys.argv[0] = self._progname +
' ' + command
7192 def show_command_help(self, command):
7193 if command ==
'help':
7195 elif command
in self._all_commands
or command ==
'help':
7196 mod = self.import_module(command)
7197 sys.argv = [self._progname +
' ' + command,
'--help']
7200 self.unknown_command(command)
7207 """IMP-specific subclass of optparse.OptionParser.
7208 This adds options common to all IMP applications
7209 (see IMP::base::setup_from_argv()).
7212 _use_boost_parser =
True
7214 def __init__(self, *args, **kwargs):
7217 kwargs[
'add_help_option'] =
False
7218 kwargs[
'version'] =
None
7220 if 'imp_module' in kwargs:
7221 del kwargs[
'imp_module']
7223 optparse.OptionParser.__init__(self, *args, **kwargs)
7225 if 'epilog' in kwargs:
7227 del kwargs[
'epilog']
7228 optparse.OptionParser.__init__(self, *args, **kwargs)
7234 def _process_long_opt(self, rargs, values):
7235 if self._use_boost_parser:
7237 optparse.OptionParser._process_long_opt(self, rargs, values)
7238 except optparse.BadOptionError, err:
7239 if not hasattr(err,
'opt_str') \
7240 and err.msg.startswith(
'no such option:'):
7241 self.largs.append(err.msg[16:])
7243 self.largs.append(err.opt_str)
7245 optparse.OptionParser._process_long_opt(self, rargs, values)
7246 def _process_short_opts(self, rargs, values):
7247 if self._use_boost_parser:
7249 optparse.OptionParser._process_short_opts(self, rargs, values)
7250 except optparse.BadOptionError, err:
7251 self.largs.append(err.opt_str)
7253 optparse.OptionParser._process_short_opts(self, rargs, values)
7255 def _process_args(self, largs, rargs, values):
7256 if self._use_boost_parser:
7261 dashdash = rargs.index(
'--')
7263 dashdash = len(rargs)
7264 saved_args = rargs[dashdash:]
7265 del rargs[dashdash:]
7266 optparse.OptionParser._process_args(self, largs, rargs, values)
7267 rargs.extend(saved_args)
7269 optparse.OptionParser._process_args(self, largs, rargs, values)
7272 """Parse the command line and return options and positional arguments.
7273 This functions in the same way as the method in the base class
7274 optparse.OptionParser, except that it also processes options common
7275 to all IMP applications (these are not returned in opts, but can be
7276 obtained in the usual way, e.g. by calling
7277 IMP::base::get_string_flag()).
7278 @param[in] num_positional If a positive integer, exactly that
7279 many positional arguments must be specified on the
7280 command line; if a negative integer, that many or
7281 more must be given; if None, any number of positional
7282 arguments can be given.
7287 opts, args = optparse.OptionParser.parse_args(self)
7288 if not self._use_boost_parser:
7290 orig_desc = self.description
7291 orig_usage = self.usage
7293 usage = self.usage.replace(
'%prog ',
'')
7296 if num_positional
is None:
7300 args.append(
'dummy')
7302 numpos = num_positional
7304 self.usage = self.description =
None
7308 self.format_help() \
7309 +
"\nOptions common to all IMP applications:",
7312 self.description = orig_desc
7313 self.usage = orig_usage
7314 if num_positional
is None:
7319 def get_module_version():
7320 """get_module_version() -> std::string const"""
7321 return _IMP_kernel.get_module_version()
7324 """get_example_path(std::string fname) -> std::string"""
7325 return _IMP_kernel.get_example_path(*args)
7328 """get_data_path(std::string fname) -> std::string"""
7329 return _IMP_kernel.get_data_path(*args)
7330 import _version_check
7331 _version_check.check_version(get_module_version())
Restraints create_decomposition(const RestraintsTemp &rs)
Return the decomposition of a list of restraints.
IMP::kernel::PairModifier PairModifier
ParticleIndexes get_indexes(const ParticlesTemp &ps)
IMP::kernel::ModelObject ModelObject
base::Array< 3, base::WeakPointer< Particle >, Particle * > ParticleTriplet
IMP-specific subclass of optparse.OptionParser.
Ints get_index(const kernel::ParticlesTemp &particles, const Subset &subset, const Subsets &excluded)
An input/output exception.
IMP::kernel::ScoreState ScoreState
ParticlesTemp get_output_particles(const ModelObjectsTemp &mos)
Return all the output particles for a given ModelObject.
ScoreStatesTemp get_dependent_score_states(ModelObject *p, const ModelObjectsTemp &all, const DependencyGraph &dg, const DependencyGraphVertexIndex &index)
IMP::kernel::PairScore PairScore
void show_restraint_hierarchy(ScoringFunctionAdaptor rs, std::ostream &out=std::cout)
Print the hierarchy of restraints.
IMP::kernel::DerivativeAccumulator DerivativeAccumulator
IMP::kernel::SingletonContainer SingletonContainer
IMP::kernel::EvaluationState EvaluationState
kernel::Restraints create_restraints(RMF::FileConstHandle fh, kernel::Model *m)
IMP::kernel::Constraint Constraint
IMP::kernel::TripletContainer TripletContainer
IMP::kernel::QuadContainer QuadContainer
void add_restraints(RMF::FileHandle fh, const kernel::Restraints &hs)
IMP::kernel::UnaryFunction UnaryFunction
ParticlesTemp get_particles(kernel::Model *m, const ParticleIndexes &ps)
Make CGAL functionality available to IMP.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
IMP::kernel::ScoringFunction ScoringFunction
base::Array< 4, base::WeakPointer< Particle >, Particle * > ParticleQuad
Low level functionality (logging, error handling, profiling, command line flags etc) that is used by ...
ContainersTemp get_output_containers(const ModelObjectsTemp &mos)
Return all the output particles for a given ModelObject.
IMP::kernel::SingletonPredicate SingletonPredicate
std::string get_data_path(std::string file_name)
Return the full path to installed data.
DependencyGraph get_pruned_dependency_graph(kernel::Model *m)
IMP::kernel::QuadScore QuadScore
base::Array< 2, base::WeakPointer< Particle >, Particle * > ParticlePair
An exception which is thrown when the kernel::Model has attributes with invalid values.
IMP::kernel::Optimizer Optimizer
ParticlesTemp get_input_particles(const ModelObjectsTemp &mos)
Return all the input particles for a given ModelObject.
ParticlesTemp get_dependent_particles(ModelObject *p, const ModelObjectsTemp &all, const DependencyGraph &dg, const DependencyGraphVertexIndex &index)
IMP::kernel::TripletModifier TripletModifier
A class to change and restore log state.
IMP::kernel::QuadModifier QuadModifier
ScoringFunction * create_scoring_function(RestraintType *rs, double weight=1.0, double max=NO_MAX, std::string name=std::string())
DependencyGraph get_dependency_graph(kernel::Model *m)
IMP::kernel::Container Container
IMP::kernel::SingletonModifier SingletonModifier
RestraintsTemp get_dependent_restraints(ModelObject *p, const ModelObjectsTemp &all, const DependencyGraph &dg, const DependencyGraphVertexIndex &index)
void read_particles_from_buffer(const base::Vector< char > &buffer, const ParticlesTemp &particles, const FloatKeys &keys)
load found attributes into the particles
ContainersTemp get_input_containers(const ModelObjectsTemp &mos)
Return all the input particles for a given ModelObject.
IMP::kernel::SaveToConfigurationSetOptimizerState SaveToConfigurationSetOptimizerState
base::Vector< char > write_particles_to_buffer(const ParticlesTemp &particles, const FloatKeys &keys)
return a binary buffer with the data
IMP::kernel::Refiner Refiner
IMP::kernel::ScoreAccumulator ScoreAccumulator
std::string show_graphviz(Graph g)
IMP::kernel::QuadPredicate QuadPredicate
IMP::kernel::TripletScore TripletScore
Common base class for heavy weight IMP objects.
IMP::kernel::Sampler Sampler
def parse_args
Parse the command line and return options and positional arguments.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
Allow applications to easily implement commmands.
void show(Hierarchy h, std::ostream &out=std::cout)
Print out a molecular hierarchy.
IMP::kernel::Particle Particle
IMP::kernel::PairPredicate PairPredicate
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
IMP::kernel::ConfigurationSet ConfigurationSet
IMP::kernel::PairContainer PairContainer
base::Vector< VectorD< D > > get_vertices(const BoundingBoxD< D > &bb)
Return a list of the 8 bounding points for the bounding box.
IMP::kernel::OptimizerState OptimizerState
IMP::kernel::TripletPredicate TripletPredicate
IMP::kernel::Decorator Decorator
Strings setup_from_argv(const Strings &argv, std::string description, std::string positional_description, int num_positional)
IMP::kernel::SingletonScore SingletonScore
void add_particle(RMF::FileHandle fh, kernel::Particle *hs)
CheckLevel get_check_level()
Get the current audit mode.
IMP::kernel::Restraint Restraint
IMP::kernel::RestraintSet RestraintSet
void add_restraint(RMF::FileHandle fh, kernel::Restraint *hs)
ScoreStatesTemp get_required_score_states(ModelObject *p, const ModelObjectsTemp &all, const DependencyGraph &dg, const DependencyGraphVertexIndex &index)
IMP::kernel::Configuration Configuration
ScoreStatesTemp get_update_order(ScoreStatesTemp input)
An exception for an invalid value being passed to IMP.