11 from __future__
import print_function, division, absolute_import
17 from sys
import version_info
18 if version_info >= (2, 6, 0):
19 def swig_import_helper():
20 from os.path
import dirname
24 fp, pathname, description = imp.find_module(
'_IMP_kernel', [dirname(__file__)])
30 _mod = imp.load_module(
'_IMP_kernel', fp, pathname, description)
34 _IMP_kernel = swig_import_helper()
35 del swig_import_helper
40 _swig_property = property
45 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
46 if (name ==
"thisown"):
47 return self.this.own(value)
49 if type(value).__name__ ==
'SwigPyObject':
50 self.__dict__[name] = value
52 method = class_type.__swig_setmethods__.get(name,
None)
54 return method(self, value)
56 object.__setattr__(self, name, value)
58 raise AttributeError(
"You cannot add attributes to %s" % self)
61 def _swig_setattr(self, class_type, name, value):
62 return _swig_setattr_nondynamic(self, class_type, name, value, 0)
65 def _swig_getattr_nondynamic(self, class_type, name, static=1):
66 if (name ==
"thisown"):
67 return self.this.own()
68 method = class_type.__swig_getmethods__.get(name,
None)
72 return object.__getattr__(self, name)
74 raise AttributeError(name)
76 def _swig_getattr(self, class_type, name):
77 return _swig_getattr_nondynamic(self, class_type, name, 0)
82 strthis =
"proxy of " + self.this.__repr__()
85 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
90 except AttributeError:
97 def _swig_setattr_nondynamic_method(set):
98 def set_attr(self, name, value):
99 if (name ==
"thisown"):
100 return self.this.own(value)
101 if hasattr(self, name)
or (name ==
"this"):
102 set(self, name, value)
104 raise AttributeError(
"You cannot add attributes to %s" % self)
110 weakref_proxy = weakref.proxy
112 weakref_proxy =
lambda x: x
115 class IMP_KERNEL_SwigPyIterator(object):
116 """Proxy of C++ swig::IMP_KERNEL_SwigPyIterator class"""
117 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
119 def __init__(self, *args, **kwargs):
120 raise AttributeError(
"No constructor defined - class is abstract")
121 __repr__ = _swig_repr
122 __swig_destroy__ = _IMP_kernel.delete_IMP_KERNEL_SwigPyIterator
123 __del__ =
lambda self:
None
126 """value(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
127 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_value(self)
132 incr(IMP_KERNEL_SwigPyIterator self, size_t n=1) -> IMP_KERNEL_SwigPyIterator
133 incr(IMP_KERNEL_SwigPyIterator self) -> IMP_KERNEL_SwigPyIterator
135 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_incr(self, n)
140 decr(IMP_KERNEL_SwigPyIterator self, size_t n=1) -> IMP_KERNEL_SwigPyIterator
141 decr(IMP_KERNEL_SwigPyIterator self) -> IMP_KERNEL_SwigPyIterator
143 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_decr(self, n)
146 def distance(self, x):
147 """distance(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> ptrdiff_t"""
148 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_distance(self, x)
152 """equal(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
153 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_equal(self, x)
157 """copy(IMP_KERNEL_SwigPyIterator self) -> IMP_KERNEL_SwigPyIterator"""
158 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_copy(self)
162 """next(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
163 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_next(self)
167 """__next__(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
168 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___next__(self)
172 """previous(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
173 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_previous(self)
176 def advance(self, n):
177 """advance(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
178 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_advance(self, n)
182 """__eq__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
183 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___eq__(self, x)
187 """__ne__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
188 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___ne__(self, x)
191 def __iadd__(self, n):
192 """__iadd__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
193 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___iadd__(self, n)
196 def __isub__(self, n):
197 """__isub__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
198 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___isub__(self, n)
201 def __add__(self, n):
202 """__add__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
203 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___add__(self, n)
206 def __sub__(self, *args):
208 __sub__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator
209 __sub__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> ptrdiff_t
211 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___sub__(self, *args)
215 IMP_KERNEL_SwigPyIterator_swigregister = _IMP_kernel.IMP_KERNEL_SwigPyIterator_swigregister
216 IMP_KERNEL_SwigPyIterator_swigregister(IMP_KERNEL_SwigPyIterator)
225 _IMP_kernel.IMP_DEBUG_swigconstant(_IMP_kernel)
226 IMP_DEBUG = _IMP_kernel.IMP_DEBUG
228 _IMP_kernel.IMP_RELEASE_swigconstant(_IMP_kernel)
229 IMP_RELEASE = _IMP_kernel.IMP_RELEASE
231 _IMP_kernel.IMP_SILENT_swigconstant(_IMP_kernel)
232 IMP_SILENT = _IMP_kernel.IMP_SILENT
234 _IMP_kernel.IMP_PROGRESS_swigconstant(_IMP_kernel)
235 IMP_PROGRESS = _IMP_kernel.IMP_PROGRESS
237 _IMP_kernel.IMP_TERSE_swigconstant(_IMP_kernel)
238 IMP_TERSE = _IMP_kernel.IMP_TERSE
240 _IMP_kernel.IMP_VERBOSE_swigconstant(_IMP_kernel)
241 IMP_VERBOSE = _IMP_kernel.IMP_VERBOSE
243 _IMP_kernel.IMP_MEMORY_swigconstant(_IMP_kernel)
244 IMP_MEMORY = _IMP_kernel.IMP_MEMORY
246 _IMP_kernel.IMP_NONE_swigconstant(_IMP_kernel)
247 IMP_NONE = _IMP_kernel.IMP_NONE
249 _IMP_kernel.IMP_USAGE_swigconstant(_IMP_kernel)
250 IMP_USAGE = _IMP_kernel.IMP_USAGE
252 _IMP_kernel.IMP_INTERNAL_swigconstant(_IMP_kernel)
253 IMP_INTERNAL = _IMP_kernel.IMP_INTERNAL
255 _IMP_kernel.IMP_KERNEL_HAS_LOG4CXX_swigconstant(_IMP_kernel)
256 IMP_KERNEL_HAS_LOG4CXX = _IMP_kernel.IMP_KERNEL_HAS_LOG4CXX
258 _IMP_kernel.IMP_COMPILER_HAS_DEBUG_VECTOR_swigconstant(_IMP_kernel)
259 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_kernel.IMP_COMPILER_HAS_DEBUG_VECTOR
261 _IMP_kernel.IMP_COMPILER_HAS_RANDOM_SHUFFLE_swigconstant(_IMP_kernel)
262 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_kernel.IMP_COMPILER_HAS_RANDOM_SHUFFLE
264 _IMP_kernel.IMP_COMPILER_HAS_THREE_WAY_swigconstant(_IMP_kernel)
265 IMP_COMPILER_HAS_THREE_WAY = _IMP_kernel.IMP_COMPILER_HAS_THREE_WAY
267 _IMP_kernel.IMP_KERNEL_HAS_BOOST_RANDOM_swigconstant(_IMP_kernel)
268 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_kernel.IMP_KERNEL_HAS_BOOST_RANDOM
270 _IMP_kernel.IMP_KERNEL_HAS_NUMPY_swigconstant(_IMP_kernel)
271 IMP_KERNEL_HAS_NUMPY = _IMP_kernel.IMP_KERNEL_HAS_NUMPY
273 _IMP_kernel.IMP_KERNEL_HAS_GPERFTOOLS_swigconstant(_IMP_kernel)
274 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_kernel.IMP_KERNEL_HAS_GPERFTOOLS
276 _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_kernel)
277 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
279 _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_kernel)
280 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
282 _IMP_kernel.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_kernel)
283 IMPKERNEL_SHOW_WARNINGS = _IMP_kernel.IMPKERNEL_SHOW_WARNINGS
286 class _DirectorObjects(object):
287 """@internal Simple class to keep references to director objects
288 to prevent premature deletion."""
291 def register(self, obj):
292 """Take a reference to a director object; will only work for
293 refcounted C++ classes"""
294 if hasattr(obj,
'get_ref_count'):
295 self._objects.append(obj)
297 """Only drop our reference and allow cleanup by Python if no other
298 Python references exist (we hold 3 references: one in self._objects,
299 one in x, and one in the argument list for getrefcount) *and* no
300 other C++ references exist (the Python object always holds one)"""
301 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
302 or x.get_ref_count() > 1]
306 def get_object_count(self):
307 """Get number of director objects (useful for testing only)"""
308 return len(self._objects)
309 _director_objects = _DirectorObjects()
312 _IMP_kernel.DEFAULT_CHECK_swigconstant(_IMP_kernel)
313 DEFAULT_CHECK = _IMP_kernel.DEFAULT_CHECK
315 _IMP_kernel.NONE_swigconstant(_IMP_kernel)
316 NONE = _IMP_kernel.NONE
318 _IMP_kernel.USAGE_swigconstant(_IMP_kernel)
319 USAGE = _IMP_kernel.USAGE
321 _IMP_kernel.USAGE_AND_INTERNAL_swigconstant(_IMP_kernel)
322 USAGE_AND_INTERNAL = _IMP_kernel.USAGE_AND_INTERNAL
325 """set_check_level(IMP::CheckLevel tf)"""
326 return _IMP_kernel.set_check_level(tf)
329 """get_check_level() -> IMP::CheckLevel"""
330 return _IMP_kernel.get_check_level()
332 from _IMP_kernel
import Exception, InternalException, ModelException, EventException
333 from _IMP_kernel
import UsageException, IndexException, IOException, ValueException
334 from _IMP_kernel
import TypeException
336 class _ostream(object):
337 """Proxy of C++ std::ostream class"""
338 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
340 def __init__(self, *args, **kwargs):
341 raise AttributeError(
"No constructor defined")
342 __repr__ = _swig_repr
344 def write(self, osa_buf):
345 """write(_ostream self, char const * osa_buf)"""
346 return _IMP_kernel._ostream_write(self, osa_buf)
348 _ostream_swigregister = _IMP_kernel._ostream_swigregister
349 _ostream_swigregister(_ostream)
352 _IMP_kernel.IMP_HAS_NOEXCEPT_swigconstant(_IMP_kernel)
353 IMP_HAS_NOEXCEPT = _IMP_kernel.IMP_HAS_NOEXCEPT
355 _IMP_kernel.IMP_C_OPEN_BINARY_swigconstant(_IMP_kernel)
356 IMP_C_OPEN_BINARY = _IMP_kernel.IMP_C_OPEN_BINARY
358 _raii_types.append(
"SetLogState")
361 _raii_types.append(
"SetNumberOfThreads")
364 _raii_types.append(
"SetCheckState")
367 _object_types.append(
"Object")
370 def _object_cast_to_Object(o):
371 """_object_cast_to_Object(Object * o) -> Object"""
372 return _IMP_kernel._object_cast_to_Object(o)
374 _object_types.append(
"_TestObject")
377 def _object_cast_to__TestObject(o):
378 """_object_cast_to__TestObject(Object * o) -> _TestObject"""
379 return _IMP_kernel._object_cast_to__TestObject(o)
382 _plural_types.append(
"VersionInfos")
383 _value_types.append(
"VersionInfo")
386 _raii_types.append(
"CreateLogContext")
389 _raii_types.append(
"WarningContext")
392 _raii_types.append(
"SetLogTarget")
396 _plural_types.append(
"_TestValues")
397 _value_types.append(
"_TestValue")
401 _plural_types.append(
"Floats")
402 _value_types.append(
"Float")
406 _plural_types.append(
"Ints")
407 _value_types.append(
"Int")
411 _plural_types.append(
"Strings")
412 _value_types.append(
"String")
416 _plural_types.append(
"_Protections")
417 _value_types.append(
"_Protection")
419 class _InputAdaptor(object):
420 """Proxy of C++ IMP::InputAdaptor class"""
421 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
423 def __init__(self, *args, **kwargs):
424 raise AttributeError(
"No constructor defined")
425 __repr__ = _swig_repr
426 __swig_destroy__ = _IMP_kernel.delete__InputAdaptor
427 __del__ =
lambda self:
None
428 _InputAdaptor_swigregister = _IMP_kernel._InputAdaptor_swigregister
429 _InputAdaptor_swigregister(_InputAdaptor)
431 class _NonCopyable(object):
432 """Proxy of C++ IMP::NonCopyable class"""
433 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
435 def __init__(self, *args, **kwargs):
436 raise AttributeError(
"No constructor defined")
437 __repr__ = _swig_repr
438 __swig_destroy__ = _IMP_kernel.delete__NonCopyable
439 __del__ =
lambda self:
None
440 _NonCopyable_swigregister = _IMP_kernel._NonCopyable_swigregister
441 _NonCopyable_swigregister(_NonCopyable)
443 class _RAII(_NonCopyable):
444 """Proxy of C++ IMP::RAII class"""
445 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
447 def __init__(self, *args, **kwargs):
448 raise AttributeError(
"No constructor defined")
449 __repr__ = _swig_repr
450 __swig_destroy__ = _IMP_kernel.delete__RAII
451 __del__ =
lambda self:
None
452 _RAII_swigregister = _IMP_kernel._RAII_swigregister
453 _RAII_swigregister(_RAII)
455 class _Value(object):
456 """Proxy of C++ IMP::Value class"""
457 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
459 def __init__(self, *args, **kwargs):
460 raise AttributeError(
"No constructor defined")
461 __repr__ = _swig_repr
462 __swig_destroy__ = _IMP_kernel.delete__Value
463 __del__ =
lambda self:
None
464 _Value_swigregister = _IMP_kernel._Value_swigregister
465 _Value_swigregister(_Value)
469 """get_executable_name() -> std::string"""
470 return _IMP_kernel.get_executable_name()
474 setup_from_argv(IMP::Strings const & argv, std::string description)
475 setup_from_argv(IMP::Strings const & argv, std::string description, std::string positional_description, int num_positional) -> IMP::Strings
477 return _IMP_kernel.setup_from_argv(*args)
480 """add_string_flag(std::string name, std::string default_value, std::string description)"""
481 return _IMP_kernel.add_string_flag(name, default_value, description)
484 """get_string_flag(std::string name) -> std::string"""
485 return _IMP_kernel.get_string_flag(name)
488 """add_int_flag(std::string name, size_t default_value, std::string description)"""
489 return _IMP_kernel.add_int_flag(name, default_value, description)
492 """get_int_flag(std::string name) -> size_t"""
493 return _IMP_kernel.get_int_flag(name)
496 """add_bool_flag(std::string name, std::string description)"""
497 return _IMP_kernel.add_bool_flag(name, description)
500 """get_bool_flag(std::string name) -> bool"""
501 return _IMP_kernel.get_bool_flag(name)
504 """add_float_flag(std::string name, double default_value, std::string description)"""
505 return _IMP_kernel.add_float_flag(name, default_value, description)
508 """get_float_flag(std::string name) -> double"""
509 return _IMP_kernel.get_float_flag(name)
513 write_help(_ostream out)
516 return _IMP_kernel.write_help(*args)
519 """get_is_quick_test() -> bool"""
520 return _IMP_kernel.get_is_quick_test()
522 _IMP_kernel.DEFAULT_swigconstant(_IMP_kernel)
523 DEFAULT = _IMP_kernel.DEFAULT
525 _IMP_kernel.SILENT_swigconstant(_IMP_kernel)
526 SILENT = _IMP_kernel.SILENT
528 _IMP_kernel.WARNING_swigconstant(_IMP_kernel)
529 WARNING = _IMP_kernel.WARNING
531 _IMP_kernel.PROGRESS_swigconstant(_IMP_kernel)
532 PROGRESS = _IMP_kernel.PROGRESS
534 _IMP_kernel.TERSE_swigconstant(_IMP_kernel)
535 TERSE = _IMP_kernel.TERSE
537 _IMP_kernel.VERBOSE_swigconstant(_IMP_kernel)
538 VERBOSE = _IMP_kernel.VERBOSE
540 _IMP_kernel.MEMORY_swigconstant(_IMP_kernel)
541 MEMORY = _IMP_kernel.MEMORY
543 _IMP_kernel.ALL_LOG_swigconstant(_IMP_kernel)
544 ALL_LOG = _IMP_kernel.ALL_LOG
545 class VersionInfo(_Value):
546 """Proxy of C++ IMP::VersionInfo class"""
547 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
549 def __init__(self, *args):
551 __init__(IMP::VersionInfo self, std::string module, std::string version) -> VersionInfo
552 __init__(IMP::VersionInfo self) -> VersionInfo
554 this = _IMP_kernel.new_VersionInfo(*args)
556 self.this.append(this)
560 def get_module(self):
561 """get_module(VersionInfo self) -> std::string"""
562 return _IMP_kernel.VersionInfo_get_module(self)
565 def get_version(self):
566 """get_version(VersionInfo self) -> std::string"""
567 return _IMP_kernel.VersionInfo_get_version(self)
570 def show(self, *args):
572 show(VersionInfo self, _ostream out)
573 show(VersionInfo self)
575 return _IMP_kernel.VersionInfo_show(self, *args)
578 def __cmp__(self, o):
579 """__cmp__(VersionInfo self, VersionInfo o) -> int"""
580 return _IMP_kernel.VersionInfo___cmp__(self, o)
584 """__eq__(VersionInfo self, VersionInfo o) -> bool"""
585 return _IMP_kernel.VersionInfo___eq__(self, o)
589 """__ne__(VersionInfo self, VersionInfo o) -> bool"""
590 return _IMP_kernel.VersionInfo___ne__(self, o)
594 """__lt__(VersionInfo self, VersionInfo o) -> bool"""
595 return _IMP_kernel.VersionInfo___lt__(self, o)
599 """__gt__(VersionInfo self, VersionInfo o) -> bool"""
600 return _IMP_kernel.VersionInfo___gt__(self, o)
604 """__ge__(VersionInfo self, VersionInfo o) -> bool"""
605 return _IMP_kernel.VersionInfo___ge__(self, o)
609 """__le__(VersionInfo self, VersionInfo o) -> bool"""
610 return _IMP_kernel.VersionInfo___le__(self, o)
614 """__str__(VersionInfo self) -> std::string"""
615 return _IMP_kernel.VersionInfo___str__(self)
619 """__repr__(VersionInfo self) -> std::string"""
620 return _IMP_kernel.VersionInfo___repr__(self)
622 __swig_destroy__ = _IMP_kernel.delete_VersionInfo
623 __del__ =
lambda self:
None
624 VersionInfo_swigregister = _IMP_kernel.VersionInfo_swigregister
625 VersionInfo_swigregister(VersionInfo)
627 class TextOutput(_InputAdaptor):
628 """Proxy of C++ IMP::TextOutput class"""
629 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
630 __repr__ = _swig_repr
632 def __init__(self, *args):
634 __init__(IMP::TextOutput self, int arg2) -> TextOutput
635 __init__(IMP::TextOutput self, double arg2) -> TextOutput
636 __init__(IMP::TextOutput self, char const * c, bool append=False) -> TextOutput
637 __init__(IMP::TextOutput self, char const * c) -> TextOutput
638 __init__(IMP::TextOutput self, IMP::TextProxy< std::ostream > p) -> TextOutput
639 __init__(IMP::TextOutput self) -> TextOutput
640 __init__(IMP::TextOutput self, std::string file_name, bool append=False) -> TextOutput
641 __init__(IMP::TextOutput self, std::string file_name) -> TextOutput
643 this = _IMP_kernel.new_TextOutput(*args)
645 self.this.append(this)
649 def show(self, *args):
651 show(TextOutput self, _ostream out)
652 show(TextOutput self)
654 return _IMP_kernel.TextOutput_show(self, *args)
658 """get_name(TextOutput self) -> std::string"""
659 return _IMP_kernel.TextOutput_get_name(self)
661 __swig_destroy__ = _IMP_kernel.delete_TextOutput
662 __del__ =
lambda self:
None
663 TextOutput_swigregister = _IMP_kernel.TextOutput_swigregister
664 TextOutput_swigregister(TextOutput)
666 class TextInput(_InputAdaptor):
667 """Proxy of C++ IMP::TextInput class"""
668 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
669 __repr__ = _swig_repr
671 def __init__(self, *args):
673 __init__(IMP::TextInput self, int arg2) -> TextInput
674 __init__(IMP::TextInput self, double arg2) -> TextInput
675 __init__(IMP::TextInput self, char const * c) -> TextInput
676 __init__(IMP::TextInput self, IMP::TextProxy< std::istream > p) -> TextInput
677 __init__(IMP::TextInput self) -> TextInput
678 __init__(IMP::TextInput self, std::string file_name) -> TextInput
680 this = _IMP_kernel.new_TextInput(*args)
682 self.this.append(this)
686 def show(self, *args):
688 show(TextInput self, _ostream out)
691 return _IMP_kernel.TextInput_show(self, *args)
695 """get_name(TextInput self) -> std::string"""
696 return _IMP_kernel.TextInput_get_name(self)
698 __swig_destroy__ = _IMP_kernel.delete_TextInput
699 __del__ =
lambda self:
None
700 TextInput_swigregister = _IMP_kernel.TextInput_swigregister
701 TextInput_swigregister(TextInput)
703 class SetLogTarget(_RAII):
704 """Proxy of C++ IMP::SetLogTarget class"""
705 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
707 def __init__(self, *args):
709 __init__(IMP::SetLogTarget self) -> SetLogTarget
710 __init__(IMP::SetLogTarget self, TextOutput to) -> SetLogTarget
712 this = _IMP_kernel.new_SetLogTarget(*args)
714 self.this.append(this)
719 """set(SetLogTarget self, TextOutput to)"""
720 return _IMP_kernel.SetLogTarget_set(self, to)
724 """reset(SetLogTarget self)"""
725 return _IMP_kernel.SetLogTarget_reset(self)
727 __swig_destroy__ = _IMP_kernel.delete_SetLogTarget
728 __del__ =
lambda self:
None
730 def show(self, *args):
732 show(SetLogTarget self, _ostream out)
733 show(SetLogTarget self)
735 return _IMP_kernel.SetLogTarget_show(self, *args)
740 def __exit__(self, exc_type, exc_val, exc_tb):
746 """__str__(SetLogTarget self) -> std::string"""
747 return _IMP_kernel.SetLogTarget___str__(self)
751 """__repr__(SetLogTarget self) -> std::string"""
752 return _IMP_kernel.SetLogTarget___repr__(self)
754 SetLogTarget_swigregister = _IMP_kernel.SetLogTarget_swigregister
755 SetLogTarget_swigregister(SetLogTarget)
760 create_temporary_file(std::string prefix, std::string suffix) -> TextOutput
761 create_temporary_file(std::string prefix) -> TextOutput
762 create_temporary_file() -> TextOutput
764 return _IMP_kernel.create_temporary_file(*args)
768 create_temporary_file_name(std::string prefix, std::string suffix) -> std::string
769 create_temporary_file_name(std::string prefix) -> std::string
770 create_temporary_file_name() -> std::string
772 return _IMP_kernel.create_temporary_file_name(*args)
775 """get_relative_path(std::string base, std::string relative) -> std::string"""
776 return _IMP_kernel.get_relative_path(base, relative)
779 """get_absolute_path(std::string file) -> std::string"""
780 return _IMP_kernel.get_absolute_path(file)
782 def push_log_context(functionname, object):
783 """push_log_context(char const * functionname, void const * object)"""
784 return _IMP_kernel.push_log_context(functionname, object)
786 def pop_log_context():
787 """pop_log_context()"""
788 return _IMP_kernel.pop_log_context()
792 add_to_log(std::string to_write)
793 add_to_log(IMP::LogLevel level, std::string to_write)
795 return _IMP_kernel.add_to_log(*args)
798 """set_log_level(IMP::LogLevel l)"""
799 return _IMP_kernel.set_log_level(l)
802 """set_log_timer(bool tb)"""
803 return _IMP_kernel.set_log_timer(tb)
806 """reset_log_timer()"""
807 return _IMP_kernel.reset_log_timer()
810 """get_log_level() -> IMP::LogLevel"""
811 return _IMP_kernel.get_log_level()
814 """set_progress_display(std::string description, unsigned int steps)"""
815 return _IMP_kernel.set_progress_display(description, steps)
819 add_to_progress_display(unsigned int step=1)
820 add_to_progress_display()
822 return _IMP_kernel.add_to_progress_display(step)
823 class Object(_NonCopyable):
824 """Proxy of C++ IMP::Object class"""
825 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
827 def __init__(self, name):
828 """__init__(IMP::Object self, std::string name) -> Object"""
829 if self.__class__ == Object:
833 this = _IMP_kernel.new_Object(_self, name)
835 self.this.append(this)
839 if self.__class__ != Object:
840 _director_objects.register(self)
844 __swig_destroy__ = _IMP_kernel.delete_Object
845 __del__ =
lambda self:
None
848 """__hash__(Object self) -> std::size_t"""
849 return _IMP_kernel.Object___hash__(self)
853 """set_log_level(Object self, IMP::LogLevel l)"""
854 return _IMP_kernel.Object_set_log_level(self, l)
858 """set_check_level(Object self, IMP::CheckLevel l)"""
859 return _IMP_kernel.Object_set_check_level(self, l)
863 """get_log_level(Object self) -> IMP::LogLevel"""
864 return _IMP_kernel.Object_get_log_level(self)
868 """get_check_level(Object self) -> IMP::CheckLevel"""
869 return _IMP_kernel.Object_get_check_level(self)
872 def get_version_info(self):
873 """get_version_info(Object self) -> VersionInfo"""
874 return _IMP_kernel.Object_get_version_info(self)
878 """get_name(Object self) -> std::string const &"""
879 return _IMP_kernel.Object_get_name(self)
882 def set_name(self, name):
883 """set_name(Object self, std::string name)"""
884 return _IMP_kernel.Object_set_name(self, name)
887 def get_type_name(self):
888 """get_type_name(Object self) -> std::string"""
889 return _IMP_kernel.Object_get_type_name(self)
892 def set_was_used(self, tf):
893 """set_was_used(Object self, bool tf)"""
894 return _IMP_kernel.Object_set_was_used(self, tf)
897 def show(self, *args):
899 show(Object self, _ostream out)
902 return _IMP_kernel.Object_show(self, *args)
905 def get_string(self):
906 """get_string(Object self) -> std::string"""
907 return _IMP_kernel.Object_get_string(self)
910 def _on_destruction(self):
911 """_on_destruction(Object self)"""
912 return _IMP_kernel.Object__on_destruction(self)
915 def get_is_valid(self):
916 """get_is_valid(Object self) -> bool"""
917 return _IMP_kernel.Object_get_is_valid(self)
920 def get_ref_count(self):
921 """get_ref_count(Object self) -> unsigned int"""
922 return _IMP_kernel.Object_get_ref_count(self)
925 def get_number_of_live_objects():
926 """get_number_of_live_objects() -> unsigned int"""
927 return _IMP_kernel.Object_get_number_of_live_objects()
929 get_number_of_live_objects = staticmethod(get_number_of_live_objects)
931 def get_is_shared(self):
932 """get_is_shared(Object self) -> bool"""
933 return _IMP_kernel.Object_get_is_shared(self)
936 def clear_caches(self):
937 """clear_caches(Object self)"""
938 return _IMP_kernel.Object_clear_caches(self)
941 def do_destroy(self):
942 """do_destroy(Object self)"""
943 return _IMP_kernel.Object_do_destroy(self)
947 """__eq__(Object self, Object o) -> bool"""
948 return _IMP_kernel.Object___eq__(self, o)
952 """__ne__(Object self, Object o) -> bool"""
953 return _IMP_kernel.Object___ne__(self, o)
957 """__le__(Object self, Object o) -> bool"""
958 return _IMP_kernel.Object___le__(self, o)
962 """__lt__(Object self, Object o) -> bool"""
963 return _IMP_kernel.Object___lt__(self, o)
967 """__ge__(Object self, Object o) -> bool"""
968 return _IMP_kernel.Object___ge__(self, o)
972 """__gt__(Object self, Object o) -> bool"""
973 return _IMP_kernel.Object___gt__(self, o)
977 """__str__(Object self) -> std::string"""
978 return _IMP_kernel.Object___str__(self)
982 """__repr__(Object self) -> std::string"""
983 return _IMP_kernel.Object___repr__(self)
988 return _object_cast_to_Object(o)
990 def __disown__(self):
992 _IMP_kernel.disown_Object(self)
993 return weakref_proxy(self)
994 Object_swigregister = _IMP_kernel.Object_swigregister
995 Object_swigregister(Object)
997 def Object_get_number_of_live_objects():
998 """Object_get_number_of_live_objects() -> unsigned int"""
999 return _IMP_kernel.Object_get_number_of_live_objects()
1001 class SetLogState(_RAII):
1002 """Proxy of C++ IMP::SetLogState class"""
1003 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1006 """reset(SetLogState self)"""
1007 return _IMP_kernel.SetLogState_reset(self)
1009 __swig_destroy__ = _IMP_kernel.delete_SetLogState
1010 __del__ =
lambda self:
None
1012 def show(self, *args):
1014 show(SetLogState self, _ostream out)
1015 show(SetLogState self)
1017 return _IMP_kernel.SetLogState_show(self, *args)
1020 def __init__(self, *args):
1022 __init__(IMP::SetLogState self) -> SetLogState
1023 __init__(IMP::SetLogState self, Object o, IMP::LogLevel l) -> SetLogState
1024 __init__(IMP::SetLogState self, IMP::LogLevel l) -> SetLogState
1026 this = _IMP_kernel.new_SetLogState(*args)
1028 self.this.append(this)
1032 def set(self, *args):
1034 set(SetLogState self, Object o, IMP::LogLevel l)
1035 set(SetLogState self, IMP::LogLevel l)
1037 return _IMP_kernel.SetLogState_set(self, *args)
1040 def __enter__(self):
1042 def __exit__(self, exc_type, exc_val, exc_tb):
1048 """__str__(SetLogState self) -> std::string"""
1049 return _IMP_kernel.SetLogState___str__(self)
1053 """__repr__(SetLogState self) -> std::string"""
1054 return _IMP_kernel.SetLogState___repr__(self)
1056 SetLogState_swigregister = _IMP_kernel.SetLogState_swigregister
1057 SetLogState_swigregister(SetLogState)
1059 class WarningContext(object):
1060 """Proxy of C++ IMP::WarningContext class"""
1061 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1062 data_ = _swig_property(_IMP_kernel.WarningContext_data__get, _IMP_kernel.WarningContext_data__set)
1064 def add_warning(self, key, warning):
1065 """add_warning(WarningContext self, std::string key, std::string warning)"""
1066 return _IMP_kernel.WarningContext_add_warning(self, key, warning)
1069 def clear_warnings(self):
1070 """clear_warnings(WarningContext self)"""
1071 return _IMP_kernel.WarningContext_clear_warnings(self)
1074 def dump_warnings(self):
1075 """dump_warnings(WarningContext self)"""
1076 return _IMP_kernel.WarningContext_dump_warnings(self)
1078 __swig_destroy__ = _IMP_kernel.delete_WarningContext
1079 __del__ =
lambda self:
None
1081 def show(self, *args):
1083 show(WarningContext self, _ostream out)
1084 show(WarningContext self)
1086 return _IMP_kernel.WarningContext_show(self, *args)
1089 def __enter__(self):
1091 def __exit__(self, exc_type, exc_val, exc_tb):
1097 """__str__(WarningContext self) -> std::string"""
1098 return _IMP_kernel.WarningContext___str__(self)
1102 """__repr__(WarningContext self) -> std::string"""
1103 return _IMP_kernel.WarningContext___repr__(self)
1107 """__init__(IMP::WarningContext self) -> WarningContext"""
1108 this = _IMP_kernel.new_WarningContext()
1110 self.this.append(this)
1113 WarningContext_swigregister = _IMP_kernel.WarningContext_swigregister
1114 WarningContext_swigregister(WarningContext)
1116 class CreateLogContext(_RAII):
1117 """Proxy of C++ IMP::CreateLogContext class"""
1118 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1120 def __init__(self, *args):
1122 __init__(IMP::CreateLogContext self, std::string fname, Object object=None) -> CreateLogContext
1123 __init__(IMP::CreateLogContext self, std::string fname) -> CreateLogContext
1124 __init__(IMP::CreateLogContext self) -> CreateLogContext
1125 __init__(IMP::CreateLogContext self, char const * fname, Object object=None) -> CreateLogContext
1126 __init__(IMP::CreateLogContext self, char const * fname) -> CreateLogContext
1128 this = _IMP_kernel.new_CreateLogContext(*args)
1130 self.this.append(this)
1134 def set(self, fname, object=None):
1136 set(CreateLogContext self, char const * fname, Object object=None)
1137 set(CreateLogContext self, char const * fname)
1139 return _IMP_kernel.CreateLogContext_set(self, fname, object)
1143 """reset(CreateLogContext self)"""
1144 return _IMP_kernel.CreateLogContext_reset(self)
1146 __swig_destroy__ = _IMP_kernel.delete_CreateLogContext
1147 __del__ =
lambda self:
None
1149 def show(self, *args):
1151 show(CreateLogContext self, _ostream out)
1152 show(CreateLogContext self)
1154 return _IMP_kernel.CreateLogContext_show(self, *args)
1157 def __enter__(self):
1159 def __exit__(self, exc_type, exc_val, exc_tb):
1165 """__str__(CreateLogContext self) -> std::string"""
1166 return _IMP_kernel.CreateLogContext___str__(self)
1170 """__repr__(CreateLogContext self) -> std::string"""
1171 return _IMP_kernel.CreateLogContext___repr__(self)
1173 CreateLogContext_swigregister = _IMP_kernel.CreateLogContext_swigregister
1174 CreateLogContext_swigregister(CreateLogContext)
1176 class SetCheckState(_RAII):
1177 """Proxy of C++ IMP::SetCheckState class"""
1178 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1181 """reset(SetCheckState self)"""
1182 return _IMP_kernel.SetCheckState_reset(self)
1184 __swig_destroy__ = _IMP_kernel.delete_SetCheckState
1185 __del__ =
lambda self:
None
1187 def show(self, *args):
1189 show(SetCheckState self, _ostream out)
1190 show(SetCheckState self)
1192 return _IMP_kernel.SetCheckState_show(self, *args)
1195 def __init__(self, *args):
1197 __init__(IMP::SetCheckState self) -> SetCheckState
1198 __init__(IMP::SetCheckState self, Object o, IMP::CheckLevel l) -> SetCheckState
1199 __init__(IMP::SetCheckState self, IMP::CheckLevel l) -> SetCheckState
1201 this = _IMP_kernel.new_SetCheckState(*args)
1203 self.this.append(this)
1207 def set(self, *args):
1209 set(SetCheckState self, Object o, IMP::CheckLevel l)
1210 set(SetCheckState self, IMP::CheckLevel l)
1212 return _IMP_kernel.SetCheckState_set(self, *args)
1215 def __enter__(self):
1217 def __exit__(self, exc_type, exc_val, exc_tb):
1223 """__str__(SetCheckState self) -> std::string"""
1224 return _IMP_kernel.SetCheckState___str__(self)
1228 """__repr__(SetCheckState self) -> std::string"""
1229 return _IMP_kernel.SetCheckState___repr__(self)
1231 SetCheckState_swigregister = _IMP_kernel.SetCheckState_swigregister
1232 SetCheckState_swigregister(SetCheckState)
1236 """get_unique_name(std::string templ) -> std::string"""
1237 return _IMP_kernel.get_unique_name(templ)
1238 class _Protection(object):
1239 """Proxy of C++ IMP::internal::_Protection class"""
1240 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1242 def __init__(self, *args, **kwargs):
1243 raise AttributeError(
"No constructor defined")
1245 def show(self, *args):
1247 show(_Protection self, _ostream out)
1248 show(_Protection self)
1250 return _IMP_kernel._Protection_show(self, *args)
1254 """__str__(_Protection self) -> std::string"""
1255 return _IMP_kernel._Protection___str__(self)
1259 """__repr__(_Protection self) -> std::string"""
1260 return _IMP_kernel._Protection___repr__(self)
1262 __swig_destroy__ = _IMP_kernel.delete__Protection
1263 __del__ =
lambda self:
None
1264 _Protection_swigregister = _IMP_kernel._Protection_swigregister
1265 _Protection_swigregister(_Protection)
1270 return _IMP_kernel._test_log()
1272 def _test_intranges(ips):
1273 """_test_intranges(IMP::IntRanges const & ips) -> int"""
1274 return _IMP_kernel._test_intranges(ips)
1276 def _test_intrange(*args):
1278 _test_intrange(IMP::IntRange const & ips) -> IMP::IntRange
1279 _test_intrange() -> IMP::IntRange
1281 return _IMP_kernel._test_intrange(*args)
1284 """_test_ifile(TextInput a) -> std::string"""
1285 return _IMP_kernel._test_ifile(a)
1288 """_test_ofile(TextOutput a) -> std::string"""
1289 return _IMP_kernel._test_ofile(a)
1291 def _test_ifile_overloaded(*args):
1293 _test_ifile_overloaded(TextInput a, int i) -> std::string
1294 _test_ifile_overloaded(TextInput a, std::string st) -> std::string
1296 return _IMP_kernel._test_ifile_overloaded(*args)
1298 def _test_ofile_overloaded(*args):
1300 _test_ofile_overloaded(TextOutput a, int i) -> std::string
1301 _test_ofile_overloaded(TextOutput a, std::string st) -> std::string
1303 return _IMP_kernel._test_ofile_overloaded(*args)
1304 class _TestValue(object):
1305 """Proxy of C++ IMP::internal::_TestValue class"""
1306 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1308 def __init__(self, i):
1309 """__init__(IMP::internal::_TestValue self, int i) -> _TestValue"""
1310 this = _IMP_kernel.new__TestValue(i)
1312 self.this.append(this)
1316 def show(self, *args):
1318 show(_TestValue self, _ostream out)
1319 show(_TestValue self)
1321 return _IMP_kernel._TestValue_show(self, *args)
1324 def __cmp__(self, o):
1325 """__cmp__(_TestValue self, _TestValue o) -> int"""
1326 return _IMP_kernel._TestValue___cmp__(self, o)
1329 def __eq__(self, o):
1330 """__eq__(_TestValue self, _TestValue o) -> bool"""
1331 return _IMP_kernel._TestValue___eq__(self, o)
1334 def __ne__(self, o):
1335 """__ne__(_TestValue self, _TestValue o) -> bool"""
1336 return _IMP_kernel._TestValue___ne__(self, o)
1339 def __lt__(self, o):
1340 """__lt__(_TestValue self, _TestValue o) -> bool"""
1341 return _IMP_kernel._TestValue___lt__(self, o)
1344 def __gt__(self, o):
1345 """__gt__(_TestValue self, _TestValue o) -> bool"""
1346 return _IMP_kernel._TestValue___gt__(self, o)
1349 def __ge__(self, o):
1350 """__ge__(_TestValue self, _TestValue o) -> bool"""
1351 return _IMP_kernel._TestValue___ge__(self, o)
1354 def __le__(self, o):
1355 """__le__(_TestValue self, _TestValue o) -> bool"""
1356 return _IMP_kernel._TestValue___le__(self, o)
1360 """get(_TestValue self) -> int"""
1361 return _IMP_kernel._TestValue_get(self)
1364 def get_float(self):
1365 """get_float(_TestValue self) -> float const &"""
1366 return _IMP_kernel._TestValue_get_float(self)
1369 def get_double(self):
1370 """get_double(_TestValue self) -> double const &"""
1371 return _IMP_kernel._TestValue_get_double(self)
1374 def get_Float(self):
1375 """get_Float(_TestValue self) -> IMP::Float const &"""
1376 return _IMP_kernel._TestValue_get_Float(self)
1380 """get_int(_TestValue self) -> int const &"""
1381 return _IMP_kernel._TestValue_get_int(self)
1385 """get_Int(_TestValue self) -> IMP::Int const &"""
1386 return _IMP_kernel._TestValue_get_Int(self)
1389 def get_string(self):
1390 """get_string(_TestValue self) -> std::string const &"""
1391 return _IMP_kernel._TestValue_get_string(self)
1394 def get_String(self):
1395 """get_String(_TestValue self) -> IMP::String const &"""
1396 return _IMP_kernel._TestValue_get_String(self)
1400 """__str__(_TestValue self) -> std::string"""
1401 return _IMP_kernel._TestValue___str__(self)
1405 """__repr__(_TestValue self) -> std::string"""
1406 return _IMP_kernel._TestValue___repr__(self)
1408 __swig_destroy__ = _IMP_kernel.delete__TestValue
1409 __del__ =
lambda self:
None
1410 _TestValue_swigregister = _IMP_kernel._TestValue_swigregister
1411 _TestValue_swigregister(_TestValue)
1414 def _pass_plain_pair(p):
1415 """_pass_plain_pair(IMP::FloatPair p) -> IMP::FloatPair"""
1416 return _IMP_kernel._pass_plain_pair(p)
1418 def _pass_overloaded_strings(*args):
1420 _pass_overloaded_strings(IMP::Strings const & a, int arg2) -> IMP::Strings
1421 _pass_overloaded_strings(IMP::Strings const & a) -> IMP::Strings
1423 return _IMP_kernel._pass_overloaded_strings(*args)
1426 """_pass_pair(IMP::DerivativePair const & p) -> IMP::DerivativePair"""
1427 return _IMP_kernel._pass_pair(p)
1429 def _pass_floats(input):
1430 """_pass_floats(IMP::Floats const & input) -> IMP::Floats"""
1431 return _IMP_kernel._pass_floats(input)
1433 def _pass_ints(input):
1434 """_pass_ints(IMP::Ints input) -> IMP::Ints"""
1435 return _IMP_kernel._pass_ints(input)
1437 def _pass_ints_list(input):
1438 """_pass_ints_list(IMP::IntsList const & input) -> IMP::IntsList"""
1439 return _IMP_kernel._pass_ints_list(input)
1441 def _pass_ints_lists(input):
1442 """_pass_ints_lists(IMP::IntsLists const & input) -> IMP::IntsLists"""
1443 return _IMP_kernel._pass_ints_lists(input)
1445 def _pass_strings(input):
1446 """_pass_strings(IMP::Strings const & input) -> IMP::Strings const &"""
1447 return _IMP_kernel._pass_strings(input)
1448 class _TestObject(Object):
1449 """Proxy of C++ IMP::internal::_TestObject class"""
1450 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1453 """__init__(IMP::internal::_TestObject self) -> _TestObject"""
1454 this = _IMP_kernel.new__TestObject()
1456 self.this.append(this)
1460 def get_version_info(self):
1461 """get_version_info(_TestObject self) -> VersionInfo"""
1462 return _IMP_kernel._TestObject_get_version_info(self)
1466 """__str__(_TestObject self) -> std::string"""
1467 return _IMP_kernel._TestObject___str__(self)
1471 """__repr__(_TestObject self) -> std::string"""
1472 return _IMP_kernel._TestObject___repr__(self)
1477 return _object_cast_to__TestObject(o)
1479 _TestObject_swigregister = _IMP_kernel._TestObject_swigregister
1480 _TestObject_swigregister(_TestObject)
1484 """get_live_object_names() -> IMP::Strings"""
1485 return _IMP_kernel.get_live_object_names()
1488 """get_live_objects() -> IMP::Objects"""
1489 return _IMP_kernel.get_live_objects()
1492 """set_show_leaked_objects(bool tf)"""
1493 return _IMP_kernel.set_show_leaked_objects(tf)
1496 """set_deprecation_warnings(bool tf)"""
1497 return _IMP_kernel.set_deprecation_warnings(tf)
1500 """set_deprecation_exceptions(bool tf)"""
1501 return _IMP_kernel.set_deprecation_exceptions(tf)
1504 """get_deprecation_exceptions() -> bool"""
1505 return _IMP_kernel.get_deprecation_exceptions()
1508 """handle_use_deprecated(std::string message)"""
1509 return _IMP_kernel.handle_use_deprecated(message)
1512 """get_number_of_threads() -> unsigned int"""
1513 return _IMP_kernel.get_number_of_threads()
1516 """set_number_of_threads(unsigned int n)"""
1517 return _IMP_kernel.set_number_of_threads(n)
1518 class SetNumberOfThreads(_RAII):
1519 """Proxy of C++ IMP::SetNumberOfThreads class"""
1520 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1522 def __init__(self, *args):
1524 __init__(IMP::SetNumberOfThreads self) -> SetNumberOfThreads
1525 __init__(IMP::SetNumberOfThreads self, unsigned int n) -> SetNumberOfThreads
1527 this = _IMP_kernel.new_SetNumberOfThreads(*args)
1529 self.this.append(this)
1534 """set(SetNumberOfThreads self, unsigned int n)"""
1535 return _IMP_kernel.SetNumberOfThreads_set(self, n)
1539 """reset(SetNumberOfThreads self)"""
1540 return _IMP_kernel.SetNumberOfThreads_reset(self)
1542 __swig_destroy__ = _IMP_kernel.delete_SetNumberOfThreads
1543 __del__ =
lambda self:
None
1545 def show(self, *args):
1547 show(SetNumberOfThreads self, _ostream out)
1548 show(SetNumberOfThreads self)
1550 return _IMP_kernel.SetNumberOfThreads_show(self, *args)
1553 def __enter__(self):
1555 def __exit__(self, exc_type, exc_val, exc_tb):
1561 """__str__(SetNumberOfThreads self) -> std::string"""
1562 return _IMP_kernel.SetNumberOfThreads___str__(self)
1566 """__repr__(SetNumberOfThreads self) -> std::string"""
1567 return _IMP_kernel.SetNumberOfThreads___repr__(self)
1569 SetNumberOfThreads_swigregister = _IMP_kernel.SetNumberOfThreads_swigregister
1570 SetNumberOfThreads_swigregister(SetNumberOfThreads)
1574 i_m_p=
"IMP_MODULE_PATH"
1575 if i_m_p
in os.environ.keys():
1576 __path__.insert(0, os.environ[i_m_p])
1578 def _forward_add_attribute(self, name, value, opt=None):
1580 self.get_particle().add_attribute(name, value, opt)
1582 self.get_particle().add_attribute(name, value)
1583 def _forward_get_value(self, name):
1584 self.get_particle().get_value(name)
1585 def _forward_set_value(self, name, value):
1586 self.get_particle().set_value(name, value)
1592 _object_types.append(
"Constraint")
1595 def _object_cast_to_Constraint(o):
1596 """_object_cast_to_Constraint(Object o) -> Constraint"""
1597 return _IMP_kernel._object_cast_to_Constraint(o)
1599 _object_types.append(
"Undecorator")
1602 def _object_cast_to_Undecorator(o):
1603 """_object_cast_to_Undecorator(Object o) -> Undecorator"""
1604 return _IMP_kernel._object_cast_to_Undecorator(o)
1606 _object_types.append(
"Container")
1609 def _object_cast_to_Container(o):
1610 """_object_cast_to_Container(Object o) -> Container"""
1611 return _IMP_kernel._object_cast_to_Container(o)
1613 _object_types.append(
"Optimizer")
1616 def _object_cast_to_Optimizer(o):
1617 """_object_cast_to_Optimizer(Object o) -> Optimizer"""
1618 return _IMP_kernel._object_cast_to_Optimizer(o)
1620 _object_types.append(
"AttributeOptimizer")
1623 def _object_cast_to_AttributeOptimizer(o):
1624 """_object_cast_to_AttributeOptimizer(Object o) -> AttributeOptimizer"""
1625 return _IMP_kernel._object_cast_to_AttributeOptimizer(o)
1627 _object_types.append(
"OptimizerState")
1630 def _object_cast_to_OptimizerState(o):
1631 """_object_cast_to_OptimizerState(Object o) -> OptimizerState"""
1632 return _IMP_kernel._object_cast_to_OptimizerState(o)
1634 _object_types.append(
"PairContainer")
1637 def _object_cast_to_PairContainer(o):
1638 """_object_cast_to_PairContainer(Object o) -> PairContainer"""
1639 return _IMP_kernel._object_cast_to_PairContainer(o)
1641 _object_types.append(
"PairModifier")
1644 def _object_cast_to_PairModifier(o):
1645 """_object_cast_to_PairModifier(Object o) -> PairModifier"""
1646 return _IMP_kernel._object_cast_to_PairModifier(o)
1648 _object_types.append(
"PairScore")
1651 def _object_cast_to_PairScore(o):
1652 """_object_cast_to_PairScore(Object o) -> PairScore"""
1653 return _IMP_kernel._object_cast_to_PairScore(o)
1655 _object_types.append(
"QuadContainer")
1658 def _object_cast_to_QuadContainer(o):
1659 """_object_cast_to_QuadContainer(Object o) -> QuadContainer"""
1660 return _IMP_kernel._object_cast_to_QuadContainer(o)
1662 _object_types.append(
"QuadModifier")
1665 def _object_cast_to_QuadModifier(o):
1666 """_object_cast_to_QuadModifier(Object o) -> QuadModifier"""
1667 return _IMP_kernel._object_cast_to_QuadModifier(o)
1669 _object_types.append(
"QuadScore")
1672 def _object_cast_to_QuadScore(o):
1673 """_object_cast_to_QuadScore(Object o) -> QuadScore"""
1674 return _IMP_kernel._object_cast_to_QuadScore(o)
1676 _object_types.append(
"Refiner")
1679 def _object_cast_to_Refiner(o):
1680 """_object_cast_to_Refiner(Object o) -> Refiner"""
1681 return _IMP_kernel._object_cast_to_Refiner(o)
1683 _object_types.append(
"Restraint")
1686 def _object_cast_to_Restraint(o):
1687 """_object_cast_to_Restraint(Object o) -> Restraint"""
1688 return _IMP_kernel._object_cast_to_Restraint(o)
1690 _object_types.append(
"Sampler")
1693 def _object_cast_to_Sampler(o):
1694 """_object_cast_to_Sampler(Object o) -> Sampler"""
1695 return _IMP_kernel._object_cast_to_Sampler(o)
1697 _object_types.append(
"ScoreState")
1700 def _object_cast_to_ScoreState(o):
1701 """_object_cast_to_ScoreState(Object o) -> ScoreState"""
1702 return _IMP_kernel._object_cast_to_ScoreState(o)
1704 _object_types.append(
"SingletonContainer")
1707 def _object_cast_to_SingletonContainer(o):
1708 """_object_cast_to_SingletonContainer(Object o) -> SingletonContainer"""
1709 return _IMP_kernel._object_cast_to_SingletonContainer(o)
1711 _object_types.append(
"SingletonModifier")
1714 def _object_cast_to_SingletonModifier(o):
1715 """_object_cast_to_SingletonModifier(Object o) -> SingletonModifier"""
1716 return _IMP_kernel._object_cast_to_SingletonModifier(o)
1718 _object_types.append(
"SingletonScore")
1721 def _object_cast_to_SingletonScore(o):
1722 """_object_cast_to_SingletonScore(Object o) -> SingletonScore"""
1723 return _IMP_kernel._object_cast_to_SingletonScore(o)
1725 _object_types.append(
"TripletContainer")
1728 def _object_cast_to_TripletContainer(o):
1729 """_object_cast_to_TripletContainer(Object o) -> TripletContainer"""
1730 return _IMP_kernel._object_cast_to_TripletContainer(o)
1732 _object_types.append(
"TripletModifier")
1735 def _object_cast_to_TripletModifier(o):
1736 """_object_cast_to_TripletModifier(Object o) -> TripletModifier"""
1737 return _IMP_kernel._object_cast_to_TripletModifier(o)
1739 _object_types.append(
"TripletScore")
1742 def _object_cast_to_TripletScore(o):
1743 """_object_cast_to_TripletScore(Object o) -> TripletScore"""
1744 return _IMP_kernel._object_cast_to_TripletScore(o)
1746 _object_types.append(
"UnaryFunction")
1749 def _object_cast_to_UnaryFunction(o):
1750 """_object_cast_to_UnaryFunction(Object o) -> UnaryFunction"""
1751 return _IMP_kernel._object_cast_to_UnaryFunction(o)
1753 _object_types.append(
"RestraintInfo")
1756 def _object_cast_to_RestraintInfo(o):
1757 """_object_cast_to_RestraintInfo(Object o) -> RestraintInfo"""
1758 return _IMP_kernel._object_cast_to_RestraintInfo(o)
1760 _object_types.append(
"ConfigurationSet")
1763 def _object_cast_to_ConfigurationSet(o):
1764 """_object_cast_to_ConfigurationSet(Object o) -> ConfigurationSet"""
1765 return _IMP_kernel._object_cast_to_ConfigurationSet(o)
1767 _object_types.append(
"Configuration")
1770 def _object_cast_to_Configuration(o):
1771 """_object_cast_to_Configuration(Object o) -> Configuration"""
1772 return _IMP_kernel._object_cast_to_Configuration(o)
1774 _object_types.append(
"Model")
1777 def _object_cast_to_Model(o):
1778 """_object_cast_to_Model(Object o) -> Model"""
1779 return _IMP_kernel._object_cast_to_Model(o)
1781 _object_types.append(
"Particle")
1784 def _object_cast_to_Particle(o):
1785 """_object_cast_to_Particle(Object o) -> Particle"""
1786 return _IMP_kernel._object_cast_to_Particle(o)
1788 _object_types.append(
"RestraintSet")
1791 def _object_cast_to_RestraintSet(o):
1792 """_object_cast_to_RestraintSet(Object o) -> RestraintSet"""
1793 return _IMP_kernel._object_cast_to_RestraintSet(o)
1795 ParticlePairsTemp=list
1796 _plural_types.append(
"ParticlePairsTemp")
1797 _value_types.append(
"ParticlePair")
1800 ParticleTripletsTemp=list
1801 _plural_types.append(
"ParticleTripletsTemp")
1802 _value_types.append(
"ParticleTriplet")
1805 ParticleQuadsTemp=list
1806 _plural_types.append(
"ParticleQuadsTemp")
1807 _value_types.append(
"ParticleQuad")
1810 ParticleIndexPairs=list
1811 _plural_types.append(
"ParticleIndexPairs")
1812 _value_types.append(
"ParticleIndexPair")
1815 ParticleIndexTriplets=list
1816 _plural_types.append(
"ParticleIndexTriplets")
1817 _value_types.append(
"ParticleIndexTriplet")
1820 ParticleIndexQuads=list
1821 _plural_types.append(
"ParticleIndexQuads")
1822 _value_types.append(
"ParticleIndexQuad")
1825 _object_types.append(
"SingletonPredicate")
1828 def _object_cast_to_SingletonPredicate(o):
1829 """_object_cast_to_SingletonPredicate(Object o) -> SingletonPredicate"""
1830 return _IMP_kernel._object_cast_to_SingletonPredicate(o)
1832 _object_types.append(
"PairPredicate")
1835 def _object_cast_to_PairPredicate(o):
1836 """_object_cast_to_PairPredicate(Object o) -> PairPredicate"""
1837 return _IMP_kernel._object_cast_to_PairPredicate(o)
1839 _object_types.append(
"TripletPredicate")
1842 def _object_cast_to_TripletPredicate(o):
1843 """_object_cast_to_TripletPredicate(Object o) -> TripletPredicate"""
1844 return _IMP_kernel._object_cast_to_TripletPredicate(o)
1846 _object_types.append(
"QuadPredicate")
1849 def _object_cast_to_QuadPredicate(o):
1850 """_object_cast_to_QuadPredicate(Object o) -> QuadPredicate"""
1851 return _IMP_kernel._object_cast_to_QuadPredicate(o)
1853 _object_types.append(
"SaveToConfigurationSetOptimizerState")
1856 def _object_cast_to_SaveToConfigurationSetOptimizerState(o):
1857 """_object_cast_to_SaveToConfigurationSetOptimizerState(Object o) -> SaveToConfigurationSetOptimizerState"""
1858 return _IMP_kernel._object_cast_to_SaveToConfigurationSetOptimizerState(o)
1860 EvaluationStates=list
1861 _plural_types.append(
"EvaluationStates")
1862 _value_types.append(
"EvaluationState")
1865 ScoreAccumulators=list
1866 _plural_types.append(
"ScoreAccumulators")
1867 _value_types.append(
"ScoreAccumulator")
1870 ParticleIndexes=list
1871 _plural_types.append(
"ParticleIndexes")
1872 _value_types.append(
"ParticleIndex")
1876 _plural_types.append(
"FloatIndexes")
1877 _value_types.append(
"FloatIndex")
1881 _plural_types.append(
"FloatKeys")
1882 _value_types.append(
"FloatKey")
1886 _plural_types.append(
"FloatsKeys")
1887 _value_types.append(
"FloatsKey")
1891 _plural_types.append(
"IntKeys")
1892 _value_types.append(
"IntKey")
1896 _plural_types.append(
"IntsKeys")
1897 _value_types.append(
"IntsKey")
1901 _plural_types.append(
"StringKeys")
1902 _value_types.append(
"StringKey")
1905 ParticleIndexKeys=list
1906 _plural_types.append(
"ParticleIndexKeys")
1907 _value_types.append(
"ParticleIndexKey")
1910 ParticleIndexesKeys=list
1911 _plural_types.append(
"ParticleIndexesKeys")
1912 _value_types.append(
"ParticleIndexesKey")
1916 _plural_types.append(
"ObjectKeys")
1917 _value_types.append(
"ObjectKey")
1921 _plural_types.append(
"ModelKeys")
1922 _value_types.append(
"ModelKey")
1926 _plural_types.append(
"TriggerKeys")
1927 _value_types.append(
"TriggerKey")
1930 _raii_types.append(
"ScopedSetFloatAttribute")
1933 _object_types.append(
"ScoringFunction")
1936 def _object_cast_to_ScoringFunction(o):
1937 """_object_cast_to_ScoringFunction(Object o) -> ScoringFunction"""
1938 return _IMP_kernel._object_cast_to_ScoringFunction(o)
1940 _object_types.append(
"ModelObject")
1943 def _object_cast_to_ModelObject(o):
1944 """_object_cast_to_ModelObject(Object o) -> ModelObject"""
1945 return _IMP_kernel._object_cast_to_ModelObject(o)
1947 def _TrivialDecorators(l=[]):
1948 return [_TrivialDecorator(x)
for x
in l]
1949 _plural_types.append(
"_TrivialDecorators")
1952 _value_types.append(
"_TrivialDecorator")
1955 def _TrivialDerivedDecorators(l=[]):
1956 return [_TrivialDerivedDecorator(x)
for x
in l]
1957 _plural_types.append(
"_TrivialDerivedDecorators")
1960 _value_types.append(
"_TrivialDerivedDecorator")
1963 def _TrivialTraitsDecorators(l=[]):
1964 return [_TrivialTraitsDecorator(x)
for x
in l]
1965 _plural_types.append(
"_TrivialTraitsDecorators")
1968 _value_types.append(
"_TrivialTraitsDecorator")
1971 _object_types.append(
"_ConstRestraint")
1974 def _object_cast_to__ConstRestraint(o):
1975 """_object_cast_to__ConstRestraint(Object o) -> _ConstRestraint"""
1976 return _IMP_kernel._object_cast_to__ConstRestraint(o)
1978 _object_types.append(
"_ConstOptimizer")
1981 def _object_cast_to__ConstOptimizer(o):
1982 """_object_cast_to__ConstOptimizer(Object o) -> _ConstOptimizer"""
1983 return _IMP_kernel._object_cast_to__ConstOptimizer(o)
1985 """Proxy of C++ IMP::internal::BoostDigraph<(IMP::DependencyGraph,p.IMP::ModelObject,IMP::ShowDependencyGraphVertex)> class"""
1986 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1987 __repr__ = _swig_repr
1990 """__init__(IMP::internal::BoostDigraph<(IMP::DependencyGraph,p.IMP::ModelObject,IMP::ShowDependencyGraphVertex)> self) -> DependencyGraph"""
1991 this = _IMP_kernel.new_DependencyGraph()
1993 self.this.append(this)
1997 def get_graph(self):
1998 """get_graph(DependencyGraph self) -> IMP::DependencyGraph const &"""
1999 return _IMP_kernel.DependencyGraph_get_graph(self)
2003 """get_vertices(DependencyGraph self) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptors"""
2004 return _IMP_kernel.DependencyGraph_get_vertices(self)
2007 def get_vertex_name(self, i):
2008 """get_vertex_name(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor i) -> ModelObject"""
2009 return _IMP_kernel.DependencyGraph_get_vertex_name(self, i)
2012 def get_in_neighbors(self, v):
2013 """get_in_neighbors(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor v) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptors"""
2014 return _IMP_kernel.DependencyGraph_get_in_neighbors(self, v)
2017 def get_out_neighbors(self, v):
2018 """get_out_neighbors(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor v) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptors"""
2019 return _IMP_kernel.DependencyGraph_get_out_neighbors(self, v)
2024 show_graphviz(DependencyGraph self, _ostream out)
2025 show_graphviz(DependencyGraph self)
2027 return _IMP_kernel.DependencyGraph_show_graphviz(self, *args)
2030 def get_graphviz_string(self):
2031 """get_graphviz_string(DependencyGraph self) -> std::string"""
2032 return _IMP_kernel.DependencyGraph_get_graphviz_string(self)
2035 def add_edge(self, v0, v1):
2036 """add_edge(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor v0, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor v1)"""
2037 return _IMP_kernel.DependencyGraph_add_edge(self, v0, v1)
2040 def add_vertex(self, l):
2041 """add_vertex(DependencyGraph self, ModelObject l) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor"""
2042 return _IMP_kernel.DependencyGraph_add_vertex(self, l)
2045 def remove_vertex(self, l):
2046 """remove_vertex(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor l)"""
2047 return _IMP_kernel.DependencyGraph_remove_vertex(self, l)
2049 __swig_destroy__ = _IMP_kernel.delete_DependencyGraph
2050 __del__ =
lambda self:
None
2051 DependencyGraph_swigregister = _IMP_kernel.DependencyGraph_swigregister
2052 DependencyGraph_swigregister(DependencyGraph)
2055 _value_types.append(
"DependencyGraph")
2058 """Proxy of C++ IMP::Key<(0)> class"""
2059 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2061 def __init__(self, *args):
2063 __init__(IMP::Key<(0)> self) -> FloatKey
2064 __init__(IMP::Key<(0)> self, std::string const & c, bool is_implicit_add_permitted=True) -> FloatKey
2065 __init__(IMP::Key<(0)> self, std::string const & c) -> FloatKey
2066 __init__(IMP::Key<(0)> self, unsigned int i) -> FloatKey
2068 this = _IMP_kernel.new_FloatKey(*args)
2070 self.this.append(this)
2075 """add_key(std::string sc) -> unsigned int"""
2076 return _IMP_kernel.FloatKey_add_key(sc)
2078 add_key = staticmethod(add_key)
2080 def get_key_exists(sc):
2081 """get_key_exists(std::string sc) -> bool"""
2082 return _IMP_kernel.FloatKey_get_key_exists(sc)
2084 get_key_exists = staticmethod(get_key_exists)
2086 def get_string(self):
2087 """get_string(FloatKey self) -> std::string const"""
2088 return _IMP_kernel.FloatKey_get_string(self)
2091 def __cmp__(self, o):
2092 """__cmp__(FloatKey self, FloatKey o) -> int"""
2093 return _IMP_kernel.FloatKey___cmp__(self, o)
2096 def __eq__(self, o):
2097 """__eq__(FloatKey self, FloatKey o) -> bool"""
2098 return _IMP_kernel.FloatKey___eq__(self, o)
2101 def __ne__(self, o):
2102 """__ne__(FloatKey self, FloatKey o) -> bool"""
2103 return _IMP_kernel.FloatKey___ne__(self, o)
2106 def __lt__(self, o):
2107 """__lt__(FloatKey self, FloatKey o) -> bool"""
2108 return _IMP_kernel.FloatKey___lt__(self, o)
2111 def __gt__(self, o):
2112 """__gt__(FloatKey self, FloatKey o) -> bool"""
2113 return _IMP_kernel.FloatKey___gt__(self, o)
2116 def __ge__(self, o):
2117 """__ge__(FloatKey self, FloatKey o) -> bool"""
2118 return _IMP_kernel.FloatKey___ge__(self, o)
2121 def __le__(self, o):
2122 """__le__(FloatKey self, FloatKey o) -> bool"""
2123 return _IMP_kernel.FloatKey___le__(self, o)
2127 """__hash__(FloatKey self) -> std::size_t"""
2128 return _IMP_kernel.FloatKey___hash__(self)
2131 def show(self, *args):
2133 show(FloatKey self, _ostream out)
2136 return _IMP_kernel.FloatKey_show(self, *args)
2139 def add_alias(old_key, new_name):
2140 """add_alias(FloatKey old_key, std::string new_name) -> FloatKey"""
2141 return _IMP_kernel.FloatKey_add_alias(old_key, new_name)
2143 add_alias = staticmethod(add_alias)
2145 def get_number_of_keys():
2146 """get_number_of_keys() -> unsigned int"""
2147 return _IMP_kernel.FloatKey_get_number_of_keys()
2149 get_number_of_keys = staticmethod(get_number_of_keys)
2152 """get_index(FloatKey self) -> unsigned int"""
2153 return _IMP_kernel.FloatKey_get_index(self)
2157 """show_all(_ostream out)"""
2158 return _IMP_kernel.FloatKey_show_all(out)
2160 show_all = staticmethod(show_all)
2162 def get_all_strings():
2163 """get_all_strings() -> IMP::Vector< std::string >"""
2164 return _IMP_kernel.FloatKey_get_all_strings()
2166 get_all_strings = staticmethod(get_all_strings)
2168 def get_number_unique():
2169 """get_number_unique() -> unsigned int"""
2170 return _IMP_kernel.FloatKey_get_number_unique()
2172 get_number_unique = staticmethod(get_number_unique)
2175 """__str__(FloatKey self) -> std::string"""
2176 return _IMP_kernel.FloatKey___str__(self)
2180 """__repr__(FloatKey self) -> std::string"""
2181 return _IMP_kernel.FloatKey___repr__(self)
2183 __swig_destroy__ = _IMP_kernel.delete_FloatKey
2184 __del__ =
lambda self:
None
2185 FloatKey_swigregister = _IMP_kernel.FloatKey_swigregister
2186 FloatKey_swigregister(FloatKey)
2188 def FloatKey_add_key(sc):
2189 """FloatKey_add_key(std::string sc) -> unsigned int"""
2190 return _IMP_kernel.FloatKey_add_key(sc)
2192 def FloatKey_get_key_exists(sc):
2193 """FloatKey_get_key_exists(std::string sc) -> bool"""
2194 return _IMP_kernel.FloatKey_get_key_exists(sc)
2196 def FloatKey_add_alias(old_key, new_name):
2197 """FloatKey_add_alias(FloatKey old_key, std::string new_name) -> FloatKey"""
2198 return _IMP_kernel.FloatKey_add_alias(old_key, new_name)
2200 def FloatKey_get_number_of_keys():
2201 """FloatKey_get_number_of_keys() -> unsigned int"""
2202 return _IMP_kernel.FloatKey_get_number_of_keys()
2204 def FloatKey_show_all(out):
2205 """FloatKey_show_all(_ostream out)"""
2206 return _IMP_kernel.FloatKey_show_all(out)
2208 def FloatKey_get_all_strings():
2209 """FloatKey_get_all_strings() -> IMP::Vector< std::string >"""
2210 return _IMP_kernel.FloatKey_get_all_strings()
2212 def FloatKey_get_number_unique():
2213 """FloatKey_get_number_unique() -> unsigned int"""
2214 return _IMP_kernel.FloatKey_get_number_unique()
2217 """Proxy of C++ IMP::Key<(1)> class"""
2218 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2220 def __init__(self, *args):
2222 __init__(IMP::Key<(1)> self) -> IntKey
2223 __init__(IMP::Key<(1)> self, std::string const & c, bool is_implicit_add_permitted=True) -> IntKey
2224 __init__(IMP::Key<(1)> self, std::string const & c) -> IntKey
2225 __init__(IMP::Key<(1)> self, unsigned int i) -> IntKey
2227 this = _IMP_kernel.new_IntKey(*args)
2229 self.this.append(this)
2234 """add_key(std::string sc) -> unsigned int"""
2235 return _IMP_kernel.IntKey_add_key(sc)
2237 add_key = staticmethod(add_key)
2239 def get_key_exists(sc):
2240 """get_key_exists(std::string sc) -> bool"""
2241 return _IMP_kernel.IntKey_get_key_exists(sc)
2243 get_key_exists = staticmethod(get_key_exists)
2245 def get_string(self):
2246 """get_string(IntKey self) -> std::string const"""
2247 return _IMP_kernel.IntKey_get_string(self)
2250 def __cmp__(self, o):
2251 """__cmp__(IntKey self, IntKey o) -> int"""
2252 return _IMP_kernel.IntKey___cmp__(self, o)
2255 def __eq__(self, o):
2256 """__eq__(IntKey self, IntKey o) -> bool"""
2257 return _IMP_kernel.IntKey___eq__(self, o)
2260 def __ne__(self, o):
2261 """__ne__(IntKey self, IntKey o) -> bool"""
2262 return _IMP_kernel.IntKey___ne__(self, o)
2265 def __lt__(self, o):
2266 """__lt__(IntKey self, IntKey o) -> bool"""
2267 return _IMP_kernel.IntKey___lt__(self, o)
2270 def __gt__(self, o):
2271 """__gt__(IntKey self, IntKey o) -> bool"""
2272 return _IMP_kernel.IntKey___gt__(self, o)
2275 def __ge__(self, o):
2276 """__ge__(IntKey self, IntKey o) -> bool"""
2277 return _IMP_kernel.IntKey___ge__(self, o)
2280 def __le__(self, o):
2281 """__le__(IntKey self, IntKey o) -> bool"""
2282 return _IMP_kernel.IntKey___le__(self, o)
2286 """__hash__(IntKey self) -> std::size_t"""
2287 return _IMP_kernel.IntKey___hash__(self)
2290 def show(self, *args):
2292 show(IntKey self, _ostream out)
2295 return _IMP_kernel.IntKey_show(self, *args)
2298 def add_alias(old_key, new_name):
2299 """add_alias(IntKey old_key, std::string new_name) -> IntKey"""
2300 return _IMP_kernel.IntKey_add_alias(old_key, new_name)
2302 add_alias = staticmethod(add_alias)
2304 def get_number_of_keys():
2305 """get_number_of_keys() -> unsigned int"""
2306 return _IMP_kernel.IntKey_get_number_of_keys()
2308 get_number_of_keys = staticmethod(get_number_of_keys)
2311 """get_index(IntKey self) -> unsigned int"""
2312 return _IMP_kernel.IntKey_get_index(self)
2316 """show_all(_ostream out)"""
2317 return _IMP_kernel.IntKey_show_all(out)
2319 show_all = staticmethod(show_all)
2321 def get_all_strings():
2322 """get_all_strings() -> IMP::Vector< std::string >"""
2323 return _IMP_kernel.IntKey_get_all_strings()
2325 get_all_strings = staticmethod(get_all_strings)
2327 def get_number_unique():
2328 """get_number_unique() -> unsigned int"""
2329 return _IMP_kernel.IntKey_get_number_unique()
2331 get_number_unique = staticmethod(get_number_unique)
2334 """__str__(IntKey self) -> std::string"""
2335 return _IMP_kernel.IntKey___str__(self)
2339 """__repr__(IntKey self) -> std::string"""
2340 return _IMP_kernel.IntKey___repr__(self)
2342 __swig_destroy__ = _IMP_kernel.delete_IntKey
2343 __del__ =
lambda self:
None
2344 IntKey_swigregister = _IMP_kernel.IntKey_swigregister
2345 IntKey_swigregister(IntKey)
2347 def IntKey_add_key(sc):
2348 """IntKey_add_key(std::string sc) -> unsigned int"""
2349 return _IMP_kernel.IntKey_add_key(sc)
2351 def IntKey_get_key_exists(sc):
2352 """IntKey_get_key_exists(std::string sc) -> bool"""
2353 return _IMP_kernel.IntKey_get_key_exists(sc)
2355 def IntKey_add_alias(old_key, new_name):
2356 """IntKey_add_alias(IntKey old_key, std::string new_name) -> IntKey"""
2357 return _IMP_kernel.IntKey_add_alias(old_key, new_name)
2359 def IntKey_get_number_of_keys():
2360 """IntKey_get_number_of_keys() -> unsigned int"""
2361 return _IMP_kernel.IntKey_get_number_of_keys()
2363 def IntKey_show_all(out):
2364 """IntKey_show_all(_ostream out)"""
2365 return _IMP_kernel.IntKey_show_all(out)
2367 def IntKey_get_all_strings():
2368 """IntKey_get_all_strings() -> IMP::Vector< std::string >"""
2369 return _IMP_kernel.IntKey_get_all_strings()
2371 def IntKey_get_number_unique():
2372 """IntKey_get_number_unique() -> unsigned int"""
2373 return _IMP_kernel.IntKey_get_number_unique()
2376 """Proxy of C++ IMP::Key<(2)> class"""
2377 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2379 def __init__(self, *args):
2381 __init__(IMP::Key<(2)> self) -> StringKey
2382 __init__(IMP::Key<(2)> self, std::string const & c, bool is_implicit_add_permitted=True) -> StringKey
2383 __init__(IMP::Key<(2)> self, std::string const & c) -> StringKey
2384 __init__(IMP::Key<(2)> self, unsigned int i) -> StringKey
2386 this = _IMP_kernel.new_StringKey(*args)
2388 self.this.append(this)
2393 """add_key(std::string sc) -> unsigned int"""
2394 return _IMP_kernel.StringKey_add_key(sc)
2396 add_key = staticmethod(add_key)
2398 def get_key_exists(sc):
2399 """get_key_exists(std::string sc) -> bool"""
2400 return _IMP_kernel.StringKey_get_key_exists(sc)
2402 get_key_exists = staticmethod(get_key_exists)
2404 def get_string(self):
2405 """get_string(StringKey self) -> std::string const"""
2406 return _IMP_kernel.StringKey_get_string(self)
2409 def __cmp__(self, o):
2410 """__cmp__(StringKey self, StringKey o) -> int"""
2411 return _IMP_kernel.StringKey___cmp__(self, o)
2414 def __eq__(self, o):
2415 """__eq__(StringKey self, StringKey o) -> bool"""
2416 return _IMP_kernel.StringKey___eq__(self, o)
2419 def __ne__(self, o):
2420 """__ne__(StringKey self, StringKey o) -> bool"""
2421 return _IMP_kernel.StringKey___ne__(self, o)
2424 def __lt__(self, o):
2425 """__lt__(StringKey self, StringKey o) -> bool"""
2426 return _IMP_kernel.StringKey___lt__(self, o)
2429 def __gt__(self, o):
2430 """__gt__(StringKey self, StringKey o) -> bool"""
2431 return _IMP_kernel.StringKey___gt__(self, o)
2434 def __ge__(self, o):
2435 """__ge__(StringKey self, StringKey o) -> bool"""
2436 return _IMP_kernel.StringKey___ge__(self, o)
2439 def __le__(self, o):
2440 """__le__(StringKey self, StringKey o) -> bool"""
2441 return _IMP_kernel.StringKey___le__(self, o)
2445 """__hash__(StringKey self) -> std::size_t"""
2446 return _IMP_kernel.StringKey___hash__(self)
2449 def show(self, *args):
2451 show(StringKey self, _ostream out)
2452 show(StringKey self)
2454 return _IMP_kernel.StringKey_show(self, *args)
2457 def add_alias(old_key, new_name):
2458 """add_alias(StringKey old_key, std::string new_name) -> StringKey"""
2459 return _IMP_kernel.StringKey_add_alias(old_key, new_name)
2461 add_alias = staticmethod(add_alias)
2463 def get_number_of_keys():
2464 """get_number_of_keys() -> unsigned int"""
2465 return _IMP_kernel.StringKey_get_number_of_keys()
2467 get_number_of_keys = staticmethod(get_number_of_keys)
2470 """get_index(StringKey self) -> unsigned int"""
2471 return _IMP_kernel.StringKey_get_index(self)
2475 """show_all(_ostream out)"""
2476 return _IMP_kernel.StringKey_show_all(out)
2478 show_all = staticmethod(show_all)
2480 def get_all_strings():
2481 """get_all_strings() -> IMP::Vector< std::string >"""
2482 return _IMP_kernel.StringKey_get_all_strings()
2484 get_all_strings = staticmethod(get_all_strings)
2486 def get_number_unique():
2487 """get_number_unique() -> unsigned int"""
2488 return _IMP_kernel.StringKey_get_number_unique()
2490 get_number_unique = staticmethod(get_number_unique)
2493 """__str__(StringKey self) -> std::string"""
2494 return _IMP_kernel.StringKey___str__(self)
2498 """__repr__(StringKey self) -> std::string"""
2499 return _IMP_kernel.StringKey___repr__(self)
2501 __swig_destroy__ = _IMP_kernel.delete_StringKey
2502 __del__ =
lambda self:
None
2503 StringKey_swigregister = _IMP_kernel.StringKey_swigregister
2504 StringKey_swigregister(StringKey)
2506 def StringKey_add_key(sc):
2507 """StringKey_add_key(std::string sc) -> unsigned int"""
2508 return _IMP_kernel.StringKey_add_key(sc)
2510 def StringKey_get_key_exists(sc):
2511 """StringKey_get_key_exists(std::string sc) -> bool"""
2512 return _IMP_kernel.StringKey_get_key_exists(sc)
2514 def StringKey_add_alias(old_key, new_name):
2515 """StringKey_add_alias(StringKey old_key, std::string new_name) -> StringKey"""
2516 return _IMP_kernel.StringKey_add_alias(old_key, new_name)
2518 def StringKey_get_number_of_keys():
2519 """StringKey_get_number_of_keys() -> unsigned int"""
2520 return _IMP_kernel.StringKey_get_number_of_keys()
2522 def StringKey_show_all(out):
2523 """StringKey_show_all(_ostream out)"""
2524 return _IMP_kernel.StringKey_show_all(out)
2526 def StringKey_get_all_strings():
2527 """StringKey_get_all_strings() -> IMP::Vector< std::string >"""
2528 return _IMP_kernel.StringKey_get_all_strings()
2530 def StringKey_get_number_unique():
2531 """StringKey_get_number_unique() -> unsigned int"""
2532 return _IMP_kernel.StringKey_get_number_unique()
2535 """Proxy of C++ IMP::Key<(3)> class"""
2536 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2538 def __init__(self, *args):
2540 __init__(IMP::Key<(3)> self) -> ParticleIndexKey
2541 __init__(IMP::Key<(3)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleIndexKey
2542 __init__(IMP::Key<(3)> self, std::string const & c) -> ParticleIndexKey
2543 __init__(IMP::Key<(3)> self, unsigned int i) -> ParticleIndexKey
2545 this = _IMP_kernel.new_ParticleIndexKey(*args)
2547 self.this.append(this)
2552 """add_key(std::string sc) -> unsigned int"""
2553 return _IMP_kernel.ParticleIndexKey_add_key(sc)
2555 add_key = staticmethod(add_key)
2557 def get_key_exists(sc):
2558 """get_key_exists(std::string sc) -> bool"""
2559 return _IMP_kernel.ParticleIndexKey_get_key_exists(sc)
2561 get_key_exists = staticmethod(get_key_exists)
2563 def get_string(self):
2564 """get_string(ParticleIndexKey self) -> std::string const"""
2565 return _IMP_kernel.ParticleIndexKey_get_string(self)
2568 def __cmp__(self, o):
2569 """__cmp__(ParticleIndexKey self, ParticleIndexKey o) -> int"""
2570 return _IMP_kernel.ParticleIndexKey___cmp__(self, o)
2573 def __eq__(self, o):
2574 """__eq__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2575 return _IMP_kernel.ParticleIndexKey___eq__(self, o)
2578 def __ne__(self, o):
2579 """__ne__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2580 return _IMP_kernel.ParticleIndexKey___ne__(self, o)
2583 def __lt__(self, o):
2584 """__lt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2585 return _IMP_kernel.ParticleIndexKey___lt__(self, o)
2588 def __gt__(self, o):
2589 """__gt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2590 return _IMP_kernel.ParticleIndexKey___gt__(self, o)
2593 def __ge__(self, o):
2594 """__ge__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2595 return _IMP_kernel.ParticleIndexKey___ge__(self, o)
2598 def __le__(self, o):
2599 """__le__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2600 return _IMP_kernel.ParticleIndexKey___le__(self, o)
2604 """__hash__(ParticleIndexKey self) -> std::size_t"""
2605 return _IMP_kernel.ParticleIndexKey___hash__(self)
2608 def show(self, *args):
2610 show(ParticleIndexKey self, _ostream out)
2611 show(ParticleIndexKey self)
2613 return _IMP_kernel.ParticleIndexKey_show(self, *args)
2616 def add_alias(old_key, new_name):
2617 """add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
2618 return _IMP_kernel.ParticleIndexKey_add_alias(old_key, new_name)
2620 add_alias = staticmethod(add_alias)
2622 def get_number_of_keys():
2623 """get_number_of_keys() -> unsigned int"""
2624 return _IMP_kernel.ParticleIndexKey_get_number_of_keys()
2626 get_number_of_keys = staticmethod(get_number_of_keys)
2629 """get_index(ParticleIndexKey self) -> unsigned int"""
2630 return _IMP_kernel.ParticleIndexKey_get_index(self)
2634 """show_all(_ostream out)"""
2635 return _IMP_kernel.ParticleIndexKey_show_all(out)
2637 show_all = staticmethod(show_all)
2639 def get_all_strings():
2640 """get_all_strings() -> IMP::Vector< std::string >"""
2641 return _IMP_kernel.ParticleIndexKey_get_all_strings()
2643 get_all_strings = staticmethod(get_all_strings)
2645 def get_number_unique():
2646 """get_number_unique() -> unsigned int"""
2647 return _IMP_kernel.ParticleIndexKey_get_number_unique()
2649 get_number_unique = staticmethod(get_number_unique)
2652 """__str__(ParticleIndexKey self) -> std::string"""
2653 return _IMP_kernel.ParticleIndexKey___str__(self)
2657 """__repr__(ParticleIndexKey self) -> std::string"""
2658 return _IMP_kernel.ParticleIndexKey___repr__(self)
2660 __swig_destroy__ = _IMP_kernel.delete_ParticleIndexKey
2661 __del__ =
lambda self:
None
2662 ParticleIndexKey_swigregister = _IMP_kernel.ParticleIndexKey_swigregister
2663 ParticleIndexKey_swigregister(ParticleIndexKey)
2665 def ParticleIndexKey_add_key(sc):
2666 """ParticleIndexKey_add_key(std::string sc) -> unsigned int"""
2667 return _IMP_kernel.ParticleIndexKey_add_key(sc)
2669 def ParticleIndexKey_get_key_exists(sc):
2670 """ParticleIndexKey_get_key_exists(std::string sc) -> bool"""
2671 return _IMP_kernel.ParticleIndexKey_get_key_exists(sc)
2673 def ParticleIndexKey_add_alias(old_key, new_name):
2674 """ParticleIndexKey_add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
2675 return _IMP_kernel.ParticleIndexKey_add_alias(old_key, new_name)
2677 def ParticleIndexKey_get_number_of_keys():
2678 """ParticleIndexKey_get_number_of_keys() -> unsigned int"""
2679 return _IMP_kernel.ParticleIndexKey_get_number_of_keys()
2681 def ParticleIndexKey_show_all(out):
2682 """ParticleIndexKey_show_all(_ostream out)"""
2683 return _IMP_kernel.ParticleIndexKey_show_all(out)
2685 def ParticleIndexKey_get_all_strings():
2686 """ParticleIndexKey_get_all_strings() -> IMP::Vector< std::string >"""
2687 return _IMP_kernel.ParticleIndexKey_get_all_strings()
2689 def ParticleIndexKey_get_number_unique():
2690 """ParticleIndexKey_get_number_unique() -> unsigned int"""
2691 return _IMP_kernel.ParticleIndexKey_get_number_unique()
2694 """Proxy of C++ IMP::Key<(4)> class"""
2695 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2697 def __init__(self, *args):
2699 __init__(IMP::Key<(4)> self) -> ObjectKey
2700 __init__(IMP::Key<(4)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ObjectKey
2701 __init__(IMP::Key<(4)> self, std::string const & c) -> ObjectKey
2702 __init__(IMP::Key<(4)> self, unsigned int i) -> ObjectKey
2704 this = _IMP_kernel.new_ObjectKey(*args)
2706 self.this.append(this)
2711 """add_key(std::string sc) -> unsigned int"""
2712 return _IMP_kernel.ObjectKey_add_key(sc)
2714 add_key = staticmethod(add_key)
2716 def get_key_exists(sc):
2717 """get_key_exists(std::string sc) -> bool"""
2718 return _IMP_kernel.ObjectKey_get_key_exists(sc)
2720 get_key_exists = staticmethod(get_key_exists)
2722 def get_string(self):
2723 """get_string(ObjectKey self) -> std::string const"""
2724 return _IMP_kernel.ObjectKey_get_string(self)
2727 def __cmp__(self, o):
2728 """__cmp__(ObjectKey self, ObjectKey o) -> int"""
2729 return _IMP_kernel.ObjectKey___cmp__(self, o)
2732 def __eq__(self, o):
2733 """__eq__(ObjectKey self, ObjectKey o) -> bool"""
2734 return _IMP_kernel.ObjectKey___eq__(self, o)
2737 def __ne__(self, o):
2738 """__ne__(ObjectKey self, ObjectKey o) -> bool"""
2739 return _IMP_kernel.ObjectKey___ne__(self, o)
2742 def __lt__(self, o):
2743 """__lt__(ObjectKey self, ObjectKey o) -> bool"""
2744 return _IMP_kernel.ObjectKey___lt__(self, o)
2747 def __gt__(self, o):
2748 """__gt__(ObjectKey self, ObjectKey o) -> bool"""
2749 return _IMP_kernel.ObjectKey___gt__(self, o)
2752 def __ge__(self, o):
2753 """__ge__(ObjectKey self, ObjectKey o) -> bool"""
2754 return _IMP_kernel.ObjectKey___ge__(self, o)
2757 def __le__(self, o):
2758 """__le__(ObjectKey self, ObjectKey o) -> bool"""
2759 return _IMP_kernel.ObjectKey___le__(self, o)
2763 """__hash__(ObjectKey self) -> std::size_t"""
2764 return _IMP_kernel.ObjectKey___hash__(self)
2767 def show(self, *args):
2769 show(ObjectKey self, _ostream out)
2770 show(ObjectKey self)
2772 return _IMP_kernel.ObjectKey_show(self, *args)
2775 def add_alias(old_key, new_name):
2776 """add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
2777 return _IMP_kernel.ObjectKey_add_alias(old_key, new_name)
2779 add_alias = staticmethod(add_alias)
2781 def get_number_of_keys():
2782 """get_number_of_keys() -> unsigned int"""
2783 return _IMP_kernel.ObjectKey_get_number_of_keys()
2785 get_number_of_keys = staticmethod(get_number_of_keys)
2788 """get_index(ObjectKey self) -> unsigned int"""
2789 return _IMP_kernel.ObjectKey_get_index(self)
2793 """show_all(_ostream out)"""
2794 return _IMP_kernel.ObjectKey_show_all(out)
2796 show_all = staticmethod(show_all)
2798 def get_all_strings():
2799 """get_all_strings() -> IMP::Vector< std::string >"""
2800 return _IMP_kernel.ObjectKey_get_all_strings()
2802 get_all_strings = staticmethod(get_all_strings)
2804 def get_number_unique():
2805 """get_number_unique() -> unsigned int"""
2806 return _IMP_kernel.ObjectKey_get_number_unique()
2808 get_number_unique = staticmethod(get_number_unique)
2811 """__str__(ObjectKey self) -> std::string"""
2812 return _IMP_kernel.ObjectKey___str__(self)
2816 """__repr__(ObjectKey self) -> std::string"""
2817 return _IMP_kernel.ObjectKey___repr__(self)
2819 __swig_destroy__ = _IMP_kernel.delete_ObjectKey
2820 __del__ =
lambda self:
None
2821 ObjectKey_swigregister = _IMP_kernel.ObjectKey_swigregister
2822 ObjectKey_swigregister(ObjectKey)
2824 def ObjectKey_add_key(sc):
2825 """ObjectKey_add_key(std::string sc) -> unsigned int"""
2826 return _IMP_kernel.ObjectKey_add_key(sc)
2828 def ObjectKey_get_key_exists(sc):
2829 """ObjectKey_get_key_exists(std::string sc) -> bool"""
2830 return _IMP_kernel.ObjectKey_get_key_exists(sc)
2832 def ObjectKey_add_alias(old_key, new_name):
2833 """ObjectKey_add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
2834 return _IMP_kernel.ObjectKey_add_alias(old_key, new_name)
2836 def ObjectKey_get_number_of_keys():
2837 """ObjectKey_get_number_of_keys() -> unsigned int"""
2838 return _IMP_kernel.ObjectKey_get_number_of_keys()
2840 def ObjectKey_show_all(out):
2841 """ObjectKey_show_all(_ostream out)"""
2842 return _IMP_kernel.ObjectKey_show_all(out)
2844 def ObjectKey_get_all_strings():
2845 """ObjectKey_get_all_strings() -> IMP::Vector< std::string >"""
2846 return _IMP_kernel.ObjectKey_get_all_strings()
2848 def ObjectKey_get_number_unique():
2849 """ObjectKey_get_number_unique() -> unsigned int"""
2850 return _IMP_kernel.ObjectKey_get_number_unique()
2853 """Proxy of C++ IMP::Key<(5)> class"""
2854 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2856 def __init__(self, *args):
2858 __init__(IMP::Key<(5)> self) -> IntsKey
2859 __init__(IMP::Key<(5)> self, std::string const & c, bool is_implicit_add_permitted=True) -> IntsKey
2860 __init__(IMP::Key<(5)> self, std::string const & c) -> IntsKey
2861 __init__(IMP::Key<(5)> self, unsigned int i) -> IntsKey
2863 this = _IMP_kernel.new_IntsKey(*args)
2865 self.this.append(this)
2870 """add_key(std::string sc) -> unsigned int"""
2871 return _IMP_kernel.IntsKey_add_key(sc)
2873 add_key = staticmethod(add_key)
2875 def get_key_exists(sc):
2876 """get_key_exists(std::string sc) -> bool"""
2877 return _IMP_kernel.IntsKey_get_key_exists(sc)
2879 get_key_exists = staticmethod(get_key_exists)
2881 def get_string(self):
2882 """get_string(IntsKey self) -> std::string const"""
2883 return _IMP_kernel.IntsKey_get_string(self)
2886 def __cmp__(self, o):
2887 """__cmp__(IntsKey self, IntsKey o) -> int"""
2888 return _IMP_kernel.IntsKey___cmp__(self, o)
2891 def __eq__(self, o):
2892 """__eq__(IntsKey self, IntsKey o) -> bool"""
2893 return _IMP_kernel.IntsKey___eq__(self, o)
2896 def __ne__(self, o):
2897 """__ne__(IntsKey self, IntsKey o) -> bool"""
2898 return _IMP_kernel.IntsKey___ne__(self, o)
2901 def __lt__(self, o):
2902 """__lt__(IntsKey self, IntsKey o) -> bool"""
2903 return _IMP_kernel.IntsKey___lt__(self, o)
2906 def __gt__(self, o):
2907 """__gt__(IntsKey self, IntsKey o) -> bool"""
2908 return _IMP_kernel.IntsKey___gt__(self, o)
2911 def __ge__(self, o):
2912 """__ge__(IntsKey self, IntsKey o) -> bool"""
2913 return _IMP_kernel.IntsKey___ge__(self, o)
2916 def __le__(self, o):
2917 """__le__(IntsKey self, IntsKey o) -> bool"""
2918 return _IMP_kernel.IntsKey___le__(self, o)
2922 """__hash__(IntsKey self) -> std::size_t"""
2923 return _IMP_kernel.IntsKey___hash__(self)
2926 def show(self, *args):
2928 show(IntsKey self, _ostream out)
2931 return _IMP_kernel.IntsKey_show(self, *args)
2934 def add_alias(old_key, new_name):
2935 """add_alias(IntsKey old_key, std::string new_name) -> IntsKey"""
2936 return _IMP_kernel.IntsKey_add_alias(old_key, new_name)
2938 add_alias = staticmethod(add_alias)
2940 def get_number_of_keys():
2941 """get_number_of_keys() -> unsigned int"""
2942 return _IMP_kernel.IntsKey_get_number_of_keys()
2944 get_number_of_keys = staticmethod(get_number_of_keys)
2947 """get_index(IntsKey self) -> unsigned int"""
2948 return _IMP_kernel.IntsKey_get_index(self)
2952 """show_all(_ostream out)"""
2953 return _IMP_kernel.IntsKey_show_all(out)
2955 show_all = staticmethod(show_all)
2957 def get_all_strings():
2958 """get_all_strings() -> IMP::Vector< std::string >"""
2959 return _IMP_kernel.IntsKey_get_all_strings()
2961 get_all_strings = staticmethod(get_all_strings)
2963 def get_number_unique():
2964 """get_number_unique() -> unsigned int"""
2965 return _IMP_kernel.IntsKey_get_number_unique()
2967 get_number_unique = staticmethod(get_number_unique)
2970 """__str__(IntsKey self) -> std::string"""
2971 return _IMP_kernel.IntsKey___str__(self)
2975 """__repr__(IntsKey self) -> std::string"""
2976 return _IMP_kernel.IntsKey___repr__(self)
2978 __swig_destroy__ = _IMP_kernel.delete_IntsKey
2979 __del__ =
lambda self:
None
2980 IntsKey_swigregister = _IMP_kernel.IntsKey_swigregister
2981 IntsKey_swigregister(IntsKey)
2983 def IntsKey_add_key(sc):
2984 """IntsKey_add_key(std::string sc) -> unsigned int"""
2985 return _IMP_kernel.IntsKey_add_key(sc)
2987 def IntsKey_get_key_exists(sc):
2988 """IntsKey_get_key_exists(std::string sc) -> bool"""
2989 return _IMP_kernel.IntsKey_get_key_exists(sc)
2991 def IntsKey_add_alias(old_key, new_name):
2992 """IntsKey_add_alias(IntsKey old_key, std::string new_name) -> IntsKey"""
2993 return _IMP_kernel.IntsKey_add_alias(old_key, new_name)
2995 def IntsKey_get_number_of_keys():
2996 """IntsKey_get_number_of_keys() -> unsigned int"""
2997 return _IMP_kernel.IntsKey_get_number_of_keys()
2999 def IntsKey_show_all(out):
3000 """IntsKey_show_all(_ostream out)"""
3001 return _IMP_kernel.IntsKey_show_all(out)
3003 def IntsKey_get_all_strings():
3004 """IntsKey_get_all_strings() -> IMP::Vector< std::string >"""
3005 return _IMP_kernel.IntsKey_get_all_strings()
3007 def IntsKey_get_number_unique():
3008 """IntsKey_get_number_unique() -> unsigned int"""
3009 return _IMP_kernel.IntsKey_get_number_unique()
3012 """Proxy of C++ IMP::Key<(6)> class"""
3013 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3015 def __init__(self, *args):
3017 __init__(IMP::Key<(6)> self) -> ParticleIndexesKey
3018 __init__(IMP::Key<(6)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleIndexesKey
3019 __init__(IMP::Key<(6)> self, std::string const & c) -> ParticleIndexesKey
3020 __init__(IMP::Key<(6)> self, unsigned int i) -> ParticleIndexesKey
3022 this = _IMP_kernel.new_ParticleIndexesKey(*args)
3024 self.this.append(this)
3029 """add_key(std::string sc) -> unsigned int"""
3030 return _IMP_kernel.ParticleIndexesKey_add_key(sc)
3032 add_key = staticmethod(add_key)
3034 def get_key_exists(sc):
3035 """get_key_exists(std::string sc) -> bool"""
3036 return _IMP_kernel.ParticleIndexesKey_get_key_exists(sc)
3038 get_key_exists = staticmethod(get_key_exists)
3040 def get_string(self):
3041 """get_string(ParticleIndexesKey self) -> std::string const"""
3042 return _IMP_kernel.ParticleIndexesKey_get_string(self)
3045 def __cmp__(self, o):
3046 """__cmp__(ParticleIndexesKey self, ParticleIndexesKey o) -> int"""
3047 return _IMP_kernel.ParticleIndexesKey___cmp__(self, o)
3050 def __eq__(self, o):
3051 """__eq__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3052 return _IMP_kernel.ParticleIndexesKey___eq__(self, o)
3055 def __ne__(self, o):
3056 """__ne__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3057 return _IMP_kernel.ParticleIndexesKey___ne__(self, o)
3060 def __lt__(self, o):
3061 """__lt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3062 return _IMP_kernel.ParticleIndexesKey___lt__(self, o)
3065 def __gt__(self, o):
3066 """__gt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3067 return _IMP_kernel.ParticleIndexesKey___gt__(self, o)
3070 def __ge__(self, o):
3071 """__ge__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3072 return _IMP_kernel.ParticleIndexesKey___ge__(self, o)
3075 def __le__(self, o):
3076 """__le__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3077 return _IMP_kernel.ParticleIndexesKey___le__(self, o)
3081 """__hash__(ParticleIndexesKey self) -> std::size_t"""
3082 return _IMP_kernel.ParticleIndexesKey___hash__(self)
3085 def show(self, *args):
3087 show(ParticleIndexesKey self, _ostream out)
3088 show(ParticleIndexesKey self)
3090 return _IMP_kernel.ParticleIndexesKey_show(self, *args)
3093 def add_alias(old_key, new_name):
3094 """add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
3095 return _IMP_kernel.ParticleIndexesKey_add_alias(old_key, new_name)
3097 add_alias = staticmethod(add_alias)
3099 def get_number_of_keys():
3100 """get_number_of_keys() -> unsigned int"""
3101 return _IMP_kernel.ParticleIndexesKey_get_number_of_keys()
3103 get_number_of_keys = staticmethod(get_number_of_keys)
3106 """get_index(ParticleIndexesKey self) -> unsigned int"""
3107 return _IMP_kernel.ParticleIndexesKey_get_index(self)
3111 """show_all(_ostream out)"""
3112 return _IMP_kernel.ParticleIndexesKey_show_all(out)
3114 show_all = staticmethod(show_all)
3116 def get_all_strings():
3117 """get_all_strings() -> IMP::Vector< std::string >"""
3118 return _IMP_kernel.ParticleIndexesKey_get_all_strings()
3120 get_all_strings = staticmethod(get_all_strings)
3122 def get_number_unique():
3123 """get_number_unique() -> unsigned int"""
3124 return _IMP_kernel.ParticleIndexesKey_get_number_unique()
3126 get_number_unique = staticmethod(get_number_unique)
3129 """__str__(ParticleIndexesKey self) -> std::string"""
3130 return _IMP_kernel.ParticleIndexesKey___str__(self)
3134 """__repr__(ParticleIndexesKey self) -> std::string"""
3135 return _IMP_kernel.ParticleIndexesKey___repr__(self)
3137 __swig_destroy__ = _IMP_kernel.delete_ParticleIndexesKey
3138 __del__ =
lambda self:
None
3139 ParticleIndexesKey_swigregister = _IMP_kernel.ParticleIndexesKey_swigregister
3140 ParticleIndexesKey_swigregister(ParticleIndexesKey)
3142 def ParticleIndexesKey_add_key(sc):
3143 """ParticleIndexesKey_add_key(std::string sc) -> unsigned int"""
3144 return _IMP_kernel.ParticleIndexesKey_add_key(sc)
3146 def ParticleIndexesKey_get_key_exists(sc):
3147 """ParticleIndexesKey_get_key_exists(std::string sc) -> bool"""
3148 return _IMP_kernel.ParticleIndexesKey_get_key_exists(sc)
3150 def ParticleIndexesKey_add_alias(old_key, new_name):
3151 """ParticleIndexesKey_add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
3152 return _IMP_kernel.ParticleIndexesKey_add_alias(old_key, new_name)
3154 def ParticleIndexesKey_get_number_of_keys():
3155 """ParticleIndexesKey_get_number_of_keys() -> unsigned int"""
3156 return _IMP_kernel.ParticleIndexesKey_get_number_of_keys()
3158 def ParticleIndexesKey_show_all(out):
3159 """ParticleIndexesKey_show_all(_ostream out)"""
3160 return _IMP_kernel.ParticleIndexesKey_show_all(out)
3162 def ParticleIndexesKey_get_all_strings():
3163 """ParticleIndexesKey_get_all_strings() -> IMP::Vector< std::string >"""
3164 return _IMP_kernel.ParticleIndexesKey_get_all_strings()
3166 def ParticleIndexesKey_get_number_unique():
3167 """ParticleIndexesKey_get_number_unique() -> unsigned int"""
3168 return _IMP_kernel.ParticleIndexesKey_get_number_unique()
3171 """Proxy of C++ IMP::Key<(8)> class"""
3172 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3174 def __init__(self, *args):
3176 __init__(IMP::Key<(8)> self) -> ModelKey
3177 __init__(IMP::Key<(8)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ModelKey
3178 __init__(IMP::Key<(8)> self, std::string const & c) -> ModelKey
3179 __init__(IMP::Key<(8)> self, unsigned int i) -> ModelKey
3181 this = _IMP_kernel.new_ModelKey(*args)
3183 self.this.append(this)
3188 """add_key(std::string sc) -> unsigned int"""
3189 return _IMP_kernel.ModelKey_add_key(sc)
3191 add_key = staticmethod(add_key)
3193 def get_key_exists(sc):
3194 """get_key_exists(std::string sc) -> bool"""
3195 return _IMP_kernel.ModelKey_get_key_exists(sc)
3197 get_key_exists = staticmethod(get_key_exists)
3199 def get_string(self):
3200 """get_string(ModelKey self) -> std::string const"""
3201 return _IMP_kernel.ModelKey_get_string(self)
3204 def __cmp__(self, o):
3205 """__cmp__(ModelKey self, ModelKey o) -> int"""
3206 return _IMP_kernel.ModelKey___cmp__(self, o)
3209 def __eq__(self, o):
3210 """__eq__(ModelKey self, ModelKey o) -> bool"""
3211 return _IMP_kernel.ModelKey___eq__(self, o)
3214 def __ne__(self, o):
3215 """__ne__(ModelKey self, ModelKey o) -> bool"""
3216 return _IMP_kernel.ModelKey___ne__(self, o)
3219 def __lt__(self, o):
3220 """__lt__(ModelKey self, ModelKey o) -> bool"""
3221 return _IMP_kernel.ModelKey___lt__(self, o)
3224 def __gt__(self, o):
3225 """__gt__(ModelKey self, ModelKey o) -> bool"""
3226 return _IMP_kernel.ModelKey___gt__(self, o)
3229 def __ge__(self, o):
3230 """__ge__(ModelKey self, ModelKey o) -> bool"""
3231 return _IMP_kernel.ModelKey___ge__(self, o)
3234 def __le__(self, o):
3235 """__le__(ModelKey self, ModelKey o) -> bool"""
3236 return _IMP_kernel.ModelKey___le__(self, o)
3240 """__hash__(ModelKey self) -> std::size_t"""
3241 return _IMP_kernel.ModelKey___hash__(self)
3244 def show(self, *args):
3246 show(ModelKey self, _ostream out)
3249 return _IMP_kernel.ModelKey_show(self, *args)
3252 def add_alias(old_key, new_name):
3253 """add_alias(ModelKey old_key, std::string new_name) -> ModelKey"""
3254 return _IMP_kernel.ModelKey_add_alias(old_key, new_name)
3256 add_alias = staticmethod(add_alias)
3258 def get_number_of_keys():
3259 """get_number_of_keys() -> unsigned int"""
3260 return _IMP_kernel.ModelKey_get_number_of_keys()
3262 get_number_of_keys = staticmethod(get_number_of_keys)
3265 """get_index(ModelKey self) -> unsigned int"""
3266 return _IMP_kernel.ModelKey_get_index(self)
3270 """show_all(_ostream out)"""
3271 return _IMP_kernel.ModelKey_show_all(out)
3273 show_all = staticmethod(show_all)
3275 def get_all_strings():
3276 """get_all_strings() -> IMP::Vector< std::string >"""
3277 return _IMP_kernel.ModelKey_get_all_strings()
3279 get_all_strings = staticmethod(get_all_strings)
3281 def get_number_unique():
3282 """get_number_unique() -> unsigned int"""
3283 return _IMP_kernel.ModelKey_get_number_unique()
3285 get_number_unique = staticmethod(get_number_unique)
3288 """__str__(ModelKey self) -> std::string"""
3289 return _IMP_kernel.ModelKey___str__(self)
3293 """__repr__(ModelKey self) -> std::string"""
3294 return _IMP_kernel.ModelKey___repr__(self)
3296 __swig_destroy__ = _IMP_kernel.delete_ModelKey
3297 __del__ =
lambda self:
None
3298 ModelKey_swigregister = _IMP_kernel.ModelKey_swigregister
3299 ModelKey_swigregister(ModelKey)
3301 def ModelKey_add_key(sc):
3302 """ModelKey_add_key(std::string sc) -> unsigned int"""
3303 return _IMP_kernel.ModelKey_add_key(sc)
3305 def ModelKey_get_key_exists(sc):
3306 """ModelKey_get_key_exists(std::string sc) -> bool"""
3307 return _IMP_kernel.ModelKey_get_key_exists(sc)
3309 def ModelKey_add_alias(old_key, new_name):
3310 """ModelKey_add_alias(ModelKey old_key, std::string new_name) -> ModelKey"""
3311 return _IMP_kernel.ModelKey_add_alias(old_key, new_name)
3313 def ModelKey_get_number_of_keys():
3314 """ModelKey_get_number_of_keys() -> unsigned int"""
3315 return _IMP_kernel.ModelKey_get_number_of_keys()
3317 def ModelKey_show_all(out):
3318 """ModelKey_show_all(_ostream out)"""
3319 return _IMP_kernel.ModelKey_show_all(out)
3321 def ModelKey_get_all_strings():
3322 """ModelKey_get_all_strings() -> IMP::Vector< std::string >"""
3323 return _IMP_kernel.ModelKey_get_all_strings()
3325 def ModelKey_get_number_unique():
3326 """ModelKey_get_number_unique() -> unsigned int"""
3327 return _IMP_kernel.ModelKey_get_number_unique()
3330 """Proxy of C++ IMP::Key<(11)> class"""
3331 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3333 def __init__(self, *args):
3335 __init__(IMP::Key<(11)> self) -> TriggerKey
3336 __init__(IMP::Key<(11)> self, std::string const & c, bool is_implicit_add_permitted=True) -> TriggerKey
3337 __init__(IMP::Key<(11)> self, std::string const & c) -> TriggerKey
3338 __init__(IMP::Key<(11)> self, unsigned int i) -> TriggerKey
3340 this = _IMP_kernel.new_TriggerKey(*args)
3342 self.this.append(this)
3347 """add_key(std::string sc) -> unsigned int"""
3348 return _IMP_kernel.TriggerKey_add_key(sc)
3350 add_key = staticmethod(add_key)
3352 def get_key_exists(sc):
3353 """get_key_exists(std::string sc) -> bool"""
3354 return _IMP_kernel.TriggerKey_get_key_exists(sc)
3356 get_key_exists = staticmethod(get_key_exists)
3358 def get_string(self):
3359 """get_string(TriggerKey self) -> std::string const"""
3360 return _IMP_kernel.TriggerKey_get_string(self)
3363 def __cmp__(self, o):
3364 """__cmp__(TriggerKey self, TriggerKey o) -> int"""
3365 return _IMP_kernel.TriggerKey___cmp__(self, o)
3368 def __eq__(self, o):
3369 """__eq__(TriggerKey self, TriggerKey o) -> bool"""
3370 return _IMP_kernel.TriggerKey___eq__(self, o)
3373 def __ne__(self, o):
3374 """__ne__(TriggerKey self, TriggerKey o) -> bool"""
3375 return _IMP_kernel.TriggerKey___ne__(self, o)
3378 def __lt__(self, o):
3379 """__lt__(TriggerKey self, TriggerKey o) -> bool"""
3380 return _IMP_kernel.TriggerKey___lt__(self, o)
3383 def __gt__(self, o):
3384 """__gt__(TriggerKey self, TriggerKey o) -> bool"""
3385 return _IMP_kernel.TriggerKey___gt__(self, o)
3388 def __ge__(self, o):
3389 """__ge__(TriggerKey self, TriggerKey o) -> bool"""
3390 return _IMP_kernel.TriggerKey___ge__(self, o)
3393 def __le__(self, o):
3394 """__le__(TriggerKey self, TriggerKey o) -> bool"""
3395 return _IMP_kernel.TriggerKey___le__(self, o)
3399 """__hash__(TriggerKey self) -> std::size_t"""
3400 return _IMP_kernel.TriggerKey___hash__(self)
3403 def show(self, *args):
3405 show(TriggerKey self, _ostream out)
3406 show(TriggerKey self)
3408 return _IMP_kernel.TriggerKey_show(self, *args)
3411 def add_alias(old_key, new_name):
3412 """add_alias(TriggerKey old_key, std::string new_name) -> TriggerKey"""
3413 return _IMP_kernel.TriggerKey_add_alias(old_key, new_name)
3415 add_alias = staticmethod(add_alias)
3417 def get_number_of_keys():
3418 """get_number_of_keys() -> unsigned int"""
3419 return _IMP_kernel.TriggerKey_get_number_of_keys()
3421 get_number_of_keys = staticmethod(get_number_of_keys)
3424 """get_index(TriggerKey self) -> unsigned int"""
3425 return _IMP_kernel.TriggerKey_get_index(self)
3429 """show_all(_ostream out)"""
3430 return _IMP_kernel.TriggerKey_show_all(out)
3432 show_all = staticmethod(show_all)
3434 def get_all_strings():
3435 """get_all_strings() -> IMP::Vector< std::string >"""
3436 return _IMP_kernel.TriggerKey_get_all_strings()
3438 get_all_strings = staticmethod(get_all_strings)
3440 def get_number_unique():
3441 """get_number_unique() -> unsigned int"""
3442 return _IMP_kernel.TriggerKey_get_number_unique()
3444 get_number_unique = staticmethod(get_number_unique)
3447 """__str__(TriggerKey self) -> std::string"""
3448 return _IMP_kernel.TriggerKey___str__(self)
3452 """__repr__(TriggerKey self) -> std::string"""
3453 return _IMP_kernel.TriggerKey___repr__(self)
3455 __swig_destroy__ = _IMP_kernel.delete_TriggerKey
3456 __del__ =
lambda self:
None
3457 TriggerKey_swigregister = _IMP_kernel.TriggerKey_swigregister
3458 TriggerKey_swigregister(TriggerKey)
3460 def TriggerKey_add_key(sc):
3461 """TriggerKey_add_key(std::string sc) -> unsigned int"""
3462 return _IMP_kernel.TriggerKey_add_key(sc)
3464 def TriggerKey_get_key_exists(sc):
3465 """TriggerKey_get_key_exists(std::string sc) -> bool"""
3466 return _IMP_kernel.TriggerKey_get_key_exists(sc)
3468 def TriggerKey_add_alias(old_key, new_name):
3469 """TriggerKey_add_alias(TriggerKey old_key, std::string new_name) -> TriggerKey"""
3470 return _IMP_kernel.TriggerKey_add_alias(old_key, new_name)
3472 def TriggerKey_get_number_of_keys():
3473 """TriggerKey_get_number_of_keys() -> unsigned int"""
3474 return _IMP_kernel.TriggerKey_get_number_of_keys()
3476 def TriggerKey_show_all(out):
3477 """TriggerKey_show_all(_ostream out)"""
3478 return _IMP_kernel.TriggerKey_show_all(out)
3480 def TriggerKey_get_all_strings():
3481 """TriggerKey_get_all_strings() -> IMP::Vector< std::string >"""
3482 return _IMP_kernel.TriggerKey_get_all_strings()
3484 def TriggerKey_get_number_unique():
3485 """TriggerKey_get_number_unique() -> unsigned int"""
3486 return _IMP_kernel.TriggerKey_get_number_unique()
3489 """Proxy of C++ IMP::Index<(IMP::ParticleIndexTag)> class"""
3490 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3492 def __init__(self, *args):
3494 __init__(IMP::Index<(IMP::ParticleIndexTag)> self, int i) -> ParticleIndex
3495 __init__(IMP::Index<(IMP::ParticleIndexTag)> self) -> ParticleIndex
3497 this = _IMP_kernel.new_ParticleIndex(*args)
3499 self.this.append(this)
3504 """get_index(ParticleIndex self) -> int"""
3505 return _IMP_kernel.ParticleIndex_get_index(self)
3508 def __cmp__(self, o):
3509 """__cmp__(ParticleIndex self, ParticleIndex o) -> int"""
3510 return _IMP_kernel.ParticleIndex___cmp__(self, o)
3513 def __eq__(self, o):
3514 """__eq__(ParticleIndex self, ParticleIndex o) -> bool"""
3515 return _IMP_kernel.ParticleIndex___eq__(self, o)
3518 def __ne__(self, o):
3519 """__ne__(ParticleIndex self, ParticleIndex o) -> bool"""
3520 return _IMP_kernel.ParticleIndex___ne__(self, o)
3523 def __lt__(self, o):
3524 """__lt__(ParticleIndex self, ParticleIndex o) -> bool"""
3525 return _IMP_kernel.ParticleIndex___lt__(self, o)
3528 def __gt__(self, o):
3529 """__gt__(ParticleIndex self, ParticleIndex o) -> bool"""
3530 return _IMP_kernel.ParticleIndex___gt__(self, o)
3533 def __ge__(self, o):
3534 """__ge__(ParticleIndex self, ParticleIndex o) -> bool"""
3535 return _IMP_kernel.ParticleIndex___ge__(self, o)
3538 def __le__(self, o):
3539 """__le__(ParticleIndex self, ParticleIndex o) -> bool"""
3540 return _IMP_kernel.ParticleIndex___le__(self, o)
3543 def show(self, *args):
3545 show(ParticleIndex self, _ostream out)
3546 show(ParticleIndex self)
3548 return _IMP_kernel.ParticleIndex_show(self, *args)
3552 """__hash__(ParticleIndex self) -> std::size_t"""
3553 return _IMP_kernel.ParticleIndex___hash__(self)
3557 """__str__(ParticleIndex self) -> std::string"""
3558 return _IMP_kernel.ParticleIndex___str__(self)
3562 """__repr__(ParticleIndex self) -> std::string"""
3563 return _IMP_kernel.ParticleIndex___repr__(self)
3565 __swig_destroy__ = _IMP_kernel.delete_ParticleIndex
3566 __del__ =
lambda self:
None
3567 ParticleIndex_swigregister = _IMP_kernel.ParticleIndex_swigregister
3568 ParticleIndex_swigregister(ParticleIndex)
3571 """Proxy of C++ IMP::Key<(10)> class"""
3572 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3574 def __init__(self, *args):
3576 __init__(IMP::Key<(10)> self) -> FloatsKey
3577 __init__(IMP::Key<(10)> self, std::string const & c, bool is_implicit_add_permitted=True) -> FloatsKey
3578 __init__(IMP::Key<(10)> self, std::string const & c) -> FloatsKey
3579 __init__(IMP::Key<(10)> self, unsigned int i) -> FloatsKey
3581 this = _IMP_kernel.new_FloatsKey(*args)
3583 self.this.append(this)
3588 """add_key(std::string sc) -> unsigned int"""
3589 return _IMP_kernel.FloatsKey_add_key(sc)
3591 add_key = staticmethod(add_key)
3593 def get_key_exists(sc):
3594 """get_key_exists(std::string sc) -> bool"""
3595 return _IMP_kernel.FloatsKey_get_key_exists(sc)
3597 get_key_exists = staticmethod(get_key_exists)
3599 def get_string(self):
3600 """get_string(FloatsKey self) -> std::string const"""
3601 return _IMP_kernel.FloatsKey_get_string(self)
3604 def __cmp__(self, o):
3605 """__cmp__(FloatsKey self, FloatsKey o) -> int"""
3606 return _IMP_kernel.FloatsKey___cmp__(self, o)
3609 def __eq__(self, o):
3610 """__eq__(FloatsKey self, FloatsKey o) -> bool"""
3611 return _IMP_kernel.FloatsKey___eq__(self, o)
3614 def __ne__(self, o):
3615 """__ne__(FloatsKey self, FloatsKey o) -> bool"""
3616 return _IMP_kernel.FloatsKey___ne__(self, o)
3619 def __lt__(self, o):
3620 """__lt__(FloatsKey self, FloatsKey o) -> bool"""
3621 return _IMP_kernel.FloatsKey___lt__(self, o)
3624 def __gt__(self, o):
3625 """__gt__(FloatsKey self, FloatsKey o) -> bool"""
3626 return _IMP_kernel.FloatsKey___gt__(self, o)
3629 def __ge__(self, o):
3630 """__ge__(FloatsKey self, FloatsKey o) -> bool"""
3631 return _IMP_kernel.FloatsKey___ge__(self, o)
3634 def __le__(self, o):
3635 """__le__(FloatsKey self, FloatsKey o) -> bool"""
3636 return _IMP_kernel.FloatsKey___le__(self, o)
3640 """__hash__(FloatsKey self) -> std::size_t"""
3641 return _IMP_kernel.FloatsKey___hash__(self)
3644 def show(self, *args):
3646 show(FloatsKey self, _ostream out)
3647 show(FloatsKey self)
3649 return _IMP_kernel.FloatsKey_show(self, *args)
3652 def add_alias(old_key, new_name):
3653 """add_alias(FloatsKey old_key, std::string new_name) -> FloatsKey"""
3654 return _IMP_kernel.FloatsKey_add_alias(old_key, new_name)
3656 add_alias = staticmethod(add_alias)
3658 def get_number_of_keys():
3659 """get_number_of_keys() -> unsigned int"""
3660 return _IMP_kernel.FloatsKey_get_number_of_keys()
3662 get_number_of_keys = staticmethod(get_number_of_keys)
3665 """get_index(FloatsKey self) -> unsigned int"""
3666 return _IMP_kernel.FloatsKey_get_index(self)
3670 """show_all(_ostream out)"""
3671 return _IMP_kernel.FloatsKey_show_all(out)
3673 show_all = staticmethod(show_all)
3675 def get_all_strings():
3676 """get_all_strings() -> IMP::Vector< std::string >"""
3677 return _IMP_kernel.FloatsKey_get_all_strings()
3679 get_all_strings = staticmethod(get_all_strings)
3681 def get_number_unique():
3682 """get_number_unique() -> unsigned int"""
3683 return _IMP_kernel.FloatsKey_get_number_unique()
3685 get_number_unique = staticmethod(get_number_unique)
3688 """__str__(FloatsKey self) -> std::string"""
3689 return _IMP_kernel.FloatsKey___str__(self)
3693 """__repr__(FloatsKey self) -> std::string"""
3694 return _IMP_kernel.FloatsKey___repr__(self)
3696 __swig_destroy__ = _IMP_kernel.delete_FloatsKey
3697 __del__ =
lambda self:
None
3698 FloatsKey_swigregister = _IMP_kernel.FloatsKey_swigregister
3699 FloatsKey_swigregister(FloatsKey)
3701 def FloatsKey_add_key(sc):
3702 """FloatsKey_add_key(std::string sc) -> unsigned int"""
3703 return _IMP_kernel.FloatsKey_add_key(sc)
3705 def FloatsKey_get_key_exists(sc):
3706 """FloatsKey_get_key_exists(std::string sc) -> bool"""
3707 return _IMP_kernel.FloatsKey_get_key_exists(sc)
3709 def FloatsKey_add_alias(old_key, new_name):
3710 """FloatsKey_add_alias(FloatsKey old_key, std::string new_name) -> FloatsKey"""
3711 return _IMP_kernel.FloatsKey_add_alias(old_key, new_name)
3713 def FloatsKey_get_number_of_keys():
3714 """FloatsKey_get_number_of_keys() -> unsigned int"""
3715 return _IMP_kernel.FloatsKey_get_number_of_keys()
3717 def FloatsKey_show_all(out):
3718 """FloatsKey_show_all(_ostream out)"""
3719 return _IMP_kernel.FloatsKey_show_all(out)
3721 def FloatsKey_get_all_strings():
3722 """FloatsKey_get_all_strings() -> IMP::Vector< std::string >"""
3723 return _IMP_kernel.FloatsKey_get_all_strings()
3725 def FloatsKey_get_number_unique():
3726 """FloatsKey_get_number_unique() -> unsigned int"""
3727 return _IMP_kernel.FloatsKey_get_number_unique()
3737 class FloatIndex(_Value):
3738 """Proxy of C++ IMP::FloatIndex class"""
3739 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3741 def __init__(self, *args):
3743 __init__(IMP::FloatIndex self, ParticleIndex i0, FloatKey i1) -> FloatIndex
3744 __init__(IMP::FloatIndex self, ParticleIndex i0) -> FloatIndex
3745 __init__(IMP::FloatIndex self) -> FloatIndex
3747 this = _IMP_kernel.new_FloatIndex(*args)
3749 self.this.append(this)
3754 """__hash__(FloatIndex self) -> std::size_t"""
3755 return _IMP_kernel.FloatIndex___hash__(self)
3758 def show(self, *args):
3760 show(FloatIndex self, _ostream out)
3761 show(FloatIndex self)
3763 return _IMP_kernel.FloatIndex_show(self, *args)
3766 def __cmp__(self, o):
3767 """__cmp__(FloatIndex self, FloatIndex o) -> int"""
3768 return _IMP_kernel.FloatIndex___cmp__(self, o)
3771 def __eq__(self, o):
3772 """__eq__(FloatIndex self, FloatIndex o) -> bool"""
3773 return _IMP_kernel.FloatIndex___eq__(self, o)
3776 def __ne__(self, o):
3777 """__ne__(FloatIndex self, FloatIndex o) -> bool"""
3778 return _IMP_kernel.FloatIndex___ne__(self, o)
3781 def __lt__(self, o):
3782 """__lt__(FloatIndex self, FloatIndex o) -> bool"""
3783 return _IMP_kernel.FloatIndex___lt__(self, o)
3786 def __gt__(self, o):
3787 """__gt__(FloatIndex self, FloatIndex o) -> bool"""
3788 return _IMP_kernel.FloatIndex___gt__(self, o)
3791 def __ge__(self, o):
3792 """__ge__(FloatIndex self, FloatIndex o) -> bool"""
3793 return _IMP_kernel.FloatIndex___ge__(self, o)
3796 def __le__(self, o):
3797 """__le__(FloatIndex self, FloatIndex o) -> bool"""
3798 return _IMP_kernel.FloatIndex___le__(self, o)
3801 def get_particle(self):
3802 """get_particle(FloatIndex self) -> ParticleIndex const &"""
3803 return _IMP_kernel.FloatIndex_get_particle(self)
3806 def set_particle(self, v):
3807 """set_particle(FloatIndex self, ParticleIndex const & v)"""
3808 return _IMP_kernel.FloatIndex_set_particle(self, v)
3812 """get_key(FloatIndex self) -> FloatKey const &"""
3813 return _IMP_kernel.FloatIndex_get_key(self)
3816 def set_key(self, v):
3817 """set_key(FloatIndex self, FloatKey const & v)"""
3818 return _IMP_kernel.FloatIndex_set_key(self, v)
3822 """__str__(FloatIndex self) -> std::string"""
3823 return _IMP_kernel.FloatIndex___str__(self)
3827 """__repr__(FloatIndex self) -> std::string"""
3828 return _IMP_kernel.FloatIndex___repr__(self)
3830 __swig_destroy__ = _IMP_kernel.delete_FloatIndex
3831 __del__ =
lambda self:
None
3832 FloatIndex_swigregister = _IMP_kernel.FloatIndex_swigregister
3833 FloatIndex_swigregister(FloatIndex)
3835 class _ParticleIndexTag(object):
3836 """Proxy of C++ IMP::ParticleIndexTag class"""
3837 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3838 __repr__ = _swig_repr
3841 """__init__(IMP::ParticleIndexTag self) -> _ParticleIndexTag"""
3842 this = _IMP_kernel.new__ParticleIndexTag()
3844 self.this.append(this)
3847 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexTag
3848 __del__ =
lambda self:
None
3849 _ParticleIndexTag_swigregister = _IMP_kernel._ParticleIndexTag_swigregister
3850 _ParticleIndexTag_swigregister(_ParticleIndexTag)
3852 class ModelObject(Object):
3853 """Proxy of C++ IMP::ModelObject class"""
3854 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3856 def __init__(self, m, name):
3857 """__init__(IMP::ModelObject self, Model m, std::string name) -> ModelObject"""
3858 if self.__class__ == ModelObject:
3862 this = _IMP_kernel.new_ModelObject(_self, m, name)
3864 self.this.append(this)
3868 if self.__class__ != ModelObject:
3869 _director_objects.register(self)
3873 __swig_destroy__ = _IMP_kernel.delete_ModelObject
3874 __del__ =
lambda self:
None
3876 def get_model(self):
3877 """get_model(ModelObject self) -> Model"""
3878 return _IMP_kernel.ModelObject_get_model(self)
3881 def get_inputs(self):
3882 """get_inputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3883 return _IMP_kernel.ModelObject_get_inputs(self)
3886 def get_outputs(self):
3887 """get_outputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3888 return _IMP_kernel.ModelObject_get_outputs(self)
3891 def get_interactions(self):
3892 """get_interactions(ModelObject self) -> IMP::ModelObjectsTemps"""
3893 return _IMP_kernel.ModelObject_get_interactions(self)
3896 def get_has_dependencies(self):
3897 """get_has_dependencies(ModelObject self) -> bool"""
3898 return _IMP_kernel.ModelObject_get_has_dependencies(self)
3901 def set_has_dependencies(self, tf):
3902 """set_has_dependencies(ModelObject self, bool tf)"""
3903 return _IMP_kernel.ModelObject_set_has_dependencies(self, tf)
3906 def set_has_required_score_states(self, tf):
3907 """set_has_required_score_states(ModelObject self, bool tf)"""
3908 return _IMP_kernel.ModelObject_set_has_required_score_states(self, tf)
3911 def get_has_required_score_states(self):
3912 """get_has_required_score_states(ModelObject self) -> bool"""
3913 return _IMP_kernel.ModelObject_get_has_required_score_states(self)
3916 def get_required_score_states(self):
3917 """get_required_score_states(ModelObject self) -> IMP::ScoreStatesTemp const &"""
3918 return _IMP_kernel.ModelObject_get_required_score_states(self)
3921 def handle_set_has_required_score_states(self, arg0):
3922 """handle_set_has_required_score_states(ModelObject self, bool arg0)"""
3923 return _IMP_kernel.ModelObject_handle_set_has_required_score_states(self, arg0)
3926 def do_get_inputs(self):
3927 """do_get_inputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3928 return _IMP_kernel.ModelObject_do_get_inputs(self)
3931 def do_get_outputs(self):
3932 """do_get_outputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3933 return _IMP_kernel.ModelObject_do_get_outputs(self)
3936 def do_get_interactions(self):
3937 """do_get_interactions(ModelObject self) -> IMP::ModelObjectsTemps"""
3938 return _IMP_kernel.ModelObject_do_get_interactions(self)
3942 """__str__(ModelObject self) -> std::string"""
3943 return _IMP_kernel.ModelObject___str__(self)
3947 """__repr__(ModelObject self) -> std::string"""
3948 return _IMP_kernel.ModelObject___repr__(self)
3953 return _object_cast_to_ModelObject(o)
3956 def get_type_name(self):
3957 return self.__class__.__name__
3958 def do_show(self, out):
3960 def get_version_info(self):
3962 return VersionInfo(self.__module__,
3969 return _object_cast_to_ModelObject(o)
3971 def __disown__(self):
3973 _IMP_kernel.disown_ModelObject(self)
3974 return weakref_proxy(self)
3976 def do_destroy(self):
3977 """do_destroy(ModelObject self)"""
3978 return _IMP_kernel.ModelObject_do_destroy(self)
3980 ModelObject_swigregister = _IMP_kernel.ModelObject_swigregister
3981 ModelObject_swigregister(ModelObject)
3982 cvar = _IMP_kernel.cvar
3983 NO_MAX = cvar.NO_MAX
3984 BAD_SCORE = cvar.BAD_SCORE
3986 class _ParticleInputs(object):
3987 """Proxy of C++ IMP::ParticleInputs class"""
3988 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3990 def __init__(self, *args, **kwargs):
3991 raise AttributeError(
"No constructor defined - class is abstract")
3992 __repr__ = _swig_repr
3994 def get_inputs(self, m, pis):
3995 """get_inputs(_ParticleInputs self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3996 return _IMP_kernel._ParticleInputs_get_inputs(self, m, pis)
3998 _ParticleInputs_swigregister = _IMP_kernel._ParticleInputs_swigregister
3999 _ParticleInputs_swigregister(_ParticleInputs)
4001 class _ParticleOutputs(object):
4002 """Proxy of C++ IMP::ParticleOutputs class"""
4003 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4005 def __init__(self, *args, **kwargs):
4006 raise AttributeError(
"No constructor defined - class is abstract")
4007 __repr__ = _swig_repr
4009 def get_outputs(self, m, pis):
4010 """get_outputs(_ParticleOutputs self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4011 return _IMP_kernel._ParticleOutputs_get_outputs(self, m, pis)
4013 _ParticleOutputs_swigregister = _IMP_kernel._ParticleOutputs_swigregister
4014 _ParticleOutputs_swigregister(_ParticleOutputs)
4018 """get_input_particles(IMP::ModelObjectsTemp const & mos) -> IMP::ParticlesTemp"""
4019 return _IMP_kernel.get_input_particles(mos)
4022 """get_input_containers(IMP::ModelObjectsTemp const & mos) -> IMP::ContainersTemp"""
4023 return _IMP_kernel.get_input_containers(mos)
4026 """get_output_particles(IMP::ModelObjectsTemp const & mos) -> IMP::ParticlesTemp"""
4027 return _IMP_kernel.get_output_particles(mos)
4030 """get_output_containers(IMP::ModelObjectsTemp const & mos) -> IMP::ContainersTemp"""
4031 return _IMP_kernel.get_output_containers(mos)
4032 class DerivativeAccumulator(object):
4033 """Proxy of C++ IMP::DerivativeAccumulator class"""
4034 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4035 __repr__ = _swig_repr
4037 def __init__(self, *args):
4039 __init__(IMP::DerivativeAccumulator self, double weight=1.0) -> DerivativeAccumulator
4040 __init__(IMP::DerivativeAccumulator self) -> DerivativeAccumulator
4041 __init__(IMP::DerivativeAccumulator self, DerivativeAccumulator copy, double weight) -> DerivativeAccumulator
4043 this = _IMP_kernel.new_DerivativeAccumulator(*args)
4045 self.this.append(this)
4049 def __call__(self, value):
4050 """__call__(DerivativeAccumulator self, double const value) -> double"""
4051 return _IMP_kernel.DerivativeAccumulator___call__(self, value)
4054 def get_weight(self):
4055 """get_weight(DerivativeAccumulator self) -> double"""
4056 return _IMP_kernel.DerivativeAccumulator_get_weight(self)
4059 def show(self, *args):
4061 show(DerivativeAccumulator self, _ostream out)
4062 show(DerivativeAccumulator self)
4064 return _IMP_kernel.DerivativeAccumulator_show(self, *args)
4066 __swig_destroy__ = _IMP_kernel.delete_DerivativeAccumulator
4067 __del__ =
lambda self:
None
4068 DerivativeAccumulator_swigregister = _IMP_kernel.DerivativeAccumulator_swigregister
4069 DerivativeAccumulator_swigregister(DerivativeAccumulator)
4071 class EvaluationState(object):
4072 """Proxy of C++ IMP::EvaluationState class"""
4073 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4074 score = _swig_property(_IMP_kernel.EvaluationState_score_get, _IMP_kernel.EvaluationState_score_set)
4075 good = _swig_property(_IMP_kernel.EvaluationState_good_get, _IMP_kernel.EvaluationState_good_set)
4077 def __init__(self, *args):
4079 __init__(IMP::EvaluationState self, double oscore, bool ogood) -> EvaluationState
4080 __init__(IMP::EvaluationState self) -> EvaluationState
4082 this = _IMP_kernel.new_EvaluationState(*args)
4084 self.this.append(this)
4088 def show(self, *args):
4090 show(EvaluationState self, _ostream out)
4091 show(EvaluationState self)
4093 return _IMP_kernel.EvaluationState_show(self, *args)
4097 """__str__(EvaluationState self) -> std::string"""
4098 return _IMP_kernel.EvaluationState___str__(self)
4102 """__repr__(EvaluationState self) -> std::string"""
4103 return _IMP_kernel.EvaluationState___repr__(self)
4105 __swig_destroy__ = _IMP_kernel.delete_EvaluationState
4106 __del__ =
lambda self:
None
4107 EvaluationState_swigregister = _IMP_kernel.EvaluationState_swigregister
4108 EvaluationState_swigregister(EvaluationState)
4110 class ScoreAccumulator(_Value):
4111 """Proxy of C++ IMP::ScoreAccumulator class"""
4112 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4114 def __init__(self, *args):
4116 __init__(IMP::ScoreAccumulator self) -> ScoreAccumulator
4117 __init__(IMP::ScoreAccumulator self, ScoreAccumulator o, Restraint r) -> ScoreAccumulator
4118 __init__(IMP::ScoreAccumulator self, ScoreAccumulator o, double weight, double local_max) -> ScoreAccumulator
4120 this = _IMP_kernel.new_ScoreAccumulator(*args)
4122 self.this.append(this)
4126 def add_score(self, score):
4127 """add_score(ScoreAccumulator self, double score)"""
4128 return _IMP_kernel.ScoreAccumulator_add_score(self, score)
4131 def get_abort_evaluation(self):
4132 """get_abort_evaluation(ScoreAccumulator self) -> bool"""
4133 return _IMP_kernel.ScoreAccumulator_get_abort_evaluation(self)
4136 def get_is_evaluate_if_below(self):
4137 """get_is_evaluate_if_below(ScoreAccumulator self) -> bool"""
4138 return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_below(self)
4141 def get_is_evaluate_if_good(self):
4142 """get_is_evaluate_if_good(ScoreAccumulator self) -> bool"""
4143 return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_good(self)
4146 def get_maximum(self):
4147 """get_maximum(ScoreAccumulator self) -> double"""
4148 return _IMP_kernel.ScoreAccumulator_get_maximum(self)
4151 def get_derivative_accumulator(self):
4152 """get_derivative_accumulator(ScoreAccumulator self) -> DerivativeAccumulator"""
4153 return _IMP_kernel.ScoreAccumulator_get_derivative_accumulator(self)
4156 def show(self, *args):
4158 show(ScoreAccumulator self, _ostream out)
4159 show(ScoreAccumulator self)
4161 return _IMP_kernel.ScoreAccumulator_show(self, *args)
4165 """__str__(ScoreAccumulator self) -> std::string"""
4166 return _IMP_kernel.ScoreAccumulator___str__(self)
4170 """__repr__(ScoreAccumulator self) -> std::string"""
4171 return _IMP_kernel.ScoreAccumulator___repr__(self)
4173 __swig_destroy__ = _IMP_kernel.delete_ScoreAccumulator
4174 __del__ =
lambda self:
None
4175 ScoreAccumulator_swigregister = _IMP_kernel.ScoreAccumulator_swigregister
4176 ScoreAccumulator_swigregister(ScoreAccumulator)
4178 class ScoreState(ModelObject):
4179 """Proxy of C++ IMP::ScoreState class"""
4180 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4182 def set_can_skip(self, can_skip):
4183 """set_can_skip(ScoreState self, bool can_skip)"""
4184 return _IMP_kernel.ScoreState_set_can_skip(self, can_skip)
4187 def __init__(self, m, name):
4188 """__init__(IMP::ScoreState self, Model m, std::string name) -> ScoreState"""
4189 if self.__class__ == ScoreState:
4193 this = _IMP_kernel.new_ScoreState(_self, m, name)
4195 self.this.append(this)
4199 if self.__class__ != ScoreState:
4200 _director_objects.register(self)
4205 def before_evaluate(self):
4206 """before_evaluate(ScoreState self)"""
4207 return _IMP_kernel.ScoreState_before_evaluate(self)
4210 def after_evaluate(self, accpt):
4211 """after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
4212 return _IMP_kernel.ScoreState_after_evaluate(self, accpt)
4215 def get_can_skip(self):
4216 """get_can_skip(ScoreState self) -> bool"""
4217 return _IMP_kernel.ScoreState_get_can_skip(self)
4220 def get_has_update_order(self):
4221 """get_has_update_order(ScoreState self) -> bool"""
4222 return _IMP_kernel.ScoreState_get_has_update_order(self)
4226 """get_update_order(ScoreState self) -> unsigned int"""
4227 return _IMP_kernel.ScoreState_get_update_order(self)
4230 def handle_set_has_required_score_states(self, tf):
4231 """handle_set_has_required_score_states(ScoreState self, bool tf)"""
4232 return _IMP_kernel.ScoreState_handle_set_has_required_score_states(self, tf)
4235 def do_before_evaluate(self):
4236 """do_before_evaluate(ScoreState self)"""
4237 return _IMP_kernel.ScoreState_do_before_evaluate(self)
4240 def do_after_evaluate(self, accpt):
4241 """do_after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
4242 return _IMP_kernel.ScoreState_do_after_evaluate(self, accpt)
4244 __swig_destroy__ = _IMP_kernel.delete_ScoreState
4245 __del__ =
lambda self:
None
4248 """__str__(ScoreState self) -> std::string"""
4249 return _IMP_kernel.ScoreState___str__(self)
4253 """__repr__(ScoreState self) -> std::string"""
4254 return _IMP_kernel.ScoreState___repr__(self)
4259 return _object_cast_to_ScoreState(o)
4262 def get_type_name(self):
4263 return self.__class__.__name__
4264 def do_show(self, out):
4266 def get_version_info(self):
4268 return VersionInfo(self.__module__,
4275 return _object_cast_to_ScoreState(o)
4277 def __disown__(self):
4279 _IMP_kernel.disown_ScoreState(self)
4280 return weakref_proxy(self)
4282 def do_destroy(self):
4283 """do_destroy(ScoreState self)"""
4284 return _IMP_kernel.ScoreState_do_destroy(self)
4287 def do_get_inputs(self):
4288 """do_get_inputs(ScoreState self) -> IMP::ModelObjectsTemp"""
4289 return _IMP_kernel.ScoreState_do_get_inputs(self)
4292 def do_get_outputs(self):
4293 """do_get_outputs(ScoreState self) -> IMP::ModelObjectsTemp"""
4294 return _IMP_kernel.ScoreState_do_get_outputs(self)
4297 def do_get_interactions(self):
4298 """do_get_interactions(ScoreState self) -> IMP::ModelObjectsTemps"""
4299 return _IMP_kernel.ScoreState_do_get_interactions(self)
4301 ScoreState_swigregister = _IMP_kernel.ScoreState_swigregister
4302 ScoreState_swigregister(ScoreState)
4306 """get_update_order(IMP::ScoreStatesTemp input) -> IMP::ScoreStatesTemp"""
4307 return _IMP_kernel.get_update_order(input)
4308 class Constraint(ScoreState):
4309 """Proxy of C++ IMP::Constraint class"""
4310 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4312 def __init__(self, *args):
4314 __init__(IMP::Constraint self, Model m, std::string name) -> Constraint
4315 __init__(IMP::Constraint self, Model m) -> Constraint
4317 if self.__class__ == Constraint:
4321 this = _IMP_kernel.new_Constraint(_self, *args)
4323 self.this.append(this)
4327 if self.__class__ != Constraint:
4328 _director_objects.register(self)
4333 def do_update_attributes(self):
4334 """do_update_attributes(Constraint self)"""
4335 return _IMP_kernel.Constraint_do_update_attributes(self)
4338 def do_update_derivatives(self, da):
4339 """do_update_derivatives(Constraint self, DerivativeAccumulator da)"""
4340 return _IMP_kernel.Constraint_do_update_derivatives(self, da)
4343 def do_before_evaluate(self):
4344 """do_before_evaluate(Constraint self)"""
4345 return _IMP_kernel.Constraint_do_before_evaluate(self)
4348 def do_after_evaluate(self, da):
4349 """do_after_evaluate(Constraint self, DerivativeAccumulator da)"""
4350 return _IMP_kernel.Constraint_do_after_evaluate(self, da)
4352 __swig_destroy__ = _IMP_kernel.delete_Constraint
4353 __del__ =
lambda self:
None
4356 """__str__(Constraint self) -> std::string"""
4357 return _IMP_kernel.Constraint___str__(self)
4361 """__repr__(Constraint self) -> std::string"""
4362 return _IMP_kernel.Constraint___repr__(self)
4367 return _object_cast_to_Constraint(o)
4370 def get_type_name(self):
4371 return self.__class__.__name__
4372 def do_show(self, out):
4374 def get_version_info(self):
4376 return VersionInfo(self.__module__,
4383 return _object_cast_to_Constraint(o)
4385 def __disown__(self):
4387 _IMP_kernel.disown_Constraint(self)
4388 return weakref_proxy(self)
4390 def do_destroy(self):
4391 """do_destroy(Constraint self)"""
4392 return _IMP_kernel.Constraint_do_destroy(self)
4395 def do_get_inputs(self):
4396 """do_get_inputs(Constraint self) -> IMP::ModelObjectsTemp"""
4397 return _IMP_kernel.Constraint_do_get_inputs(self)
4400 def do_get_outputs(self):
4401 """do_get_outputs(Constraint self) -> IMP::ModelObjectsTemp"""
4402 return _IMP_kernel.Constraint_do_get_outputs(self)
4405 def do_get_interactions(self):
4406 """do_get_interactions(Constraint self) -> IMP::ModelObjectsTemps"""
4407 return _IMP_kernel.Constraint_do_get_interactions(self)
4409 Constraint_swigregister = _IMP_kernel.Constraint_swigregister
4410 Constraint_swigregister(Constraint)
4412 class Container(ModelObject):
4413 """Proxy of C++ IMP::Container class"""
4414 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4416 def __init__(self, *args):
4418 __init__(IMP::Container self, Model m, std::string name) -> Container
4419 __init__(IMP::Container self, Model m) -> Container
4421 if self.__class__ == Container:
4425 this = _IMP_kernel.new_Container(_self, *args)
4427 self.this.append(this)
4431 if self.__class__ != Container:
4432 _director_objects.register(self)
4437 def do_get_contents_hash(self):
4438 """do_get_contents_hash(Container self) -> std::size_t"""
4439 return _IMP_kernel.Container_do_get_contents_hash(self)
4442 def get_all_possible_indexes(self):
4443 """get_all_possible_indexes(Container self) -> IMP::ParticleIndexes"""
4444 return _IMP_kernel.Container_get_all_possible_indexes(self)
4447 def get_contents_hash(self):
4448 """get_contents_hash(Container self) -> std::size_t"""
4449 return _IMP_kernel.Container_get_contents_hash(self)
4452 def do_get_outputs(self):
4453 """do_get_outputs(Container self) -> IMP::ModelObjectsTemp"""
4454 return _IMP_kernel.Container_do_get_outputs(self)
4457 def get_is_decomposable(self):
4458 """get_is_decomposable(Container self) -> bool"""
4459 return _IMP_kernel.Container_get_is_decomposable(self)
4462 def validate_readable(self):
4463 """validate_readable(Container self)"""
4464 return _IMP_kernel.Container_validate_readable(self)
4467 def validate_writable(self):
4468 """validate_writable(Container self)"""
4469 return _IMP_kernel.Container_validate_writable(self)
4472 def set_is_readable(self, tf):
4473 """set_is_readable(Container self, bool tf)"""
4474 return _IMP_kernel.Container_set_is_readable(self, tf)
4477 def set_is_writable(self, tf):
4478 """set_is_writable(Container self, bool tf)"""
4479 return _IMP_kernel.Container_set_is_writable(self, tf)
4481 __swig_destroy__ = _IMP_kernel.delete_Container
4482 __del__ =
lambda self:
None
4485 """__str__(Container self) -> std::string"""
4486 return _IMP_kernel.Container___str__(self)
4490 """__repr__(Container self) -> std::string"""
4491 return _IMP_kernel.Container___repr__(self)
4496 return _object_cast_to_Container(o)
4499 def get_type_name(self):
4500 return self.__class__.__name__
4501 def do_show(self, out):
4503 def get_version_info(self):
4505 return VersionInfo(self.__module__,
4512 return _object_cast_to_Container(o)
4514 def __disown__(self):
4516 _IMP_kernel.disown_Container(self)
4517 return weakref_proxy(self)
4519 def do_destroy(self):
4520 """do_destroy(Container self)"""
4521 return _IMP_kernel.Container_do_destroy(self)
4524 def handle_set_has_required_score_states(self, arg0):
4525 """handle_set_has_required_score_states(Container self, bool arg0)"""
4526 return _IMP_kernel.Container_handle_set_has_required_score_states(self, arg0)
4529 def do_get_inputs(self):
4530 """do_get_inputs(Container self) -> IMP::ModelObjectsTemp"""
4531 return _IMP_kernel.Container_do_get_inputs(self)
4534 def do_get_interactions(self):
4535 """do_get_interactions(Container self) -> IMP::ModelObjectsTemps"""
4536 return _IMP_kernel.Container_do_get_interactions(self)
4538 Container_swigregister = _IMP_kernel.Container_swigregister
4539 Container_swigregister(Container)
4541 class RestraintInfo(Object):
4542 """Proxy of C++ IMP::RestraintInfo class"""
4543 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4545 def __init__(self, *args):
4547 __init__(IMP::RestraintInfo self, std::string name) -> RestraintInfo
4548 __init__(IMP::RestraintInfo self) -> RestraintInfo
4550 this = _IMP_kernel.new_RestraintInfo(*args)
4552 self.this.append(this)
4556 def add_int(self, key, value):
4557 """add_int(RestraintInfo self, std::string key, int value)"""
4558 return _IMP_kernel.RestraintInfo_add_int(self, key, value)
4561 def get_number_of_int(self):
4562 """get_number_of_int(RestraintInfo self) -> unsigned int"""
4563 return _IMP_kernel.RestraintInfo_get_number_of_int(self)
4566 def get_int_key(self, i):
4567 """get_int_key(RestraintInfo self, unsigned int i) -> std::string"""
4568 return _IMP_kernel.RestraintInfo_get_int_key(self, i)
4571 def get_int_value(self, i):
4572 """get_int_value(RestraintInfo self, unsigned int i) -> int"""
4573 return _IMP_kernel.RestraintInfo_get_int_value(self, i)
4576 def add_float(self, key, value):
4577 """add_float(RestraintInfo self, std::string key, double value)"""
4578 return _IMP_kernel.RestraintInfo_add_float(self, key, value)
4581 def get_number_of_float(self):
4582 """get_number_of_float(RestraintInfo self) -> unsigned int"""
4583 return _IMP_kernel.RestraintInfo_get_number_of_float(self)
4586 def get_float_key(self, i):
4587 """get_float_key(RestraintInfo self, unsigned int i) -> std::string"""
4588 return _IMP_kernel.RestraintInfo_get_float_key(self, i)
4591 def get_float_value(self, i):
4592 """get_float_value(RestraintInfo self, unsigned int i) -> double"""
4593 return _IMP_kernel.RestraintInfo_get_float_value(self, i)
4596 def add_string(self, key, value):
4597 """add_string(RestraintInfo self, std::string key, std::string value)"""
4598 return _IMP_kernel.RestraintInfo_add_string(self, key, value)
4601 def get_number_of_string(self):
4602 """get_number_of_string(RestraintInfo self) -> unsigned int"""
4603 return _IMP_kernel.RestraintInfo_get_number_of_string(self)
4606 def get_string_key(self, i):
4607 """get_string_key(RestraintInfo self, unsigned int i) -> std::string"""
4608 return _IMP_kernel.RestraintInfo_get_string_key(self, i)
4611 def get_string_value(self, i):
4612 """get_string_value(RestraintInfo self, unsigned int i) -> std::string"""
4613 return _IMP_kernel.RestraintInfo_get_string_value(self, i)
4616 def add_filename(self, key, value):
4617 """add_filename(RestraintInfo self, std::string key, std::string value)"""
4618 return _IMP_kernel.RestraintInfo_add_filename(self, key, value)
4621 def get_number_of_filename(self):
4622 """get_number_of_filename(RestraintInfo self) -> unsigned int"""
4623 return _IMP_kernel.RestraintInfo_get_number_of_filename(self)
4626 def get_filename_key(self, i):
4627 """get_filename_key(RestraintInfo self, unsigned int i) -> std::string"""
4628 return _IMP_kernel.RestraintInfo_get_filename_key(self, i)
4631 def get_filename_value(self, i):
4632 """get_filename_value(RestraintInfo self, unsigned int i) -> std::string"""
4633 return _IMP_kernel.RestraintInfo_get_filename_value(self, i)
4636 def add_floats(self, key, value):
4637 """add_floats(RestraintInfo self, std::string key, IMP::Floats value)"""
4638 return _IMP_kernel.RestraintInfo_add_floats(self, key, value)
4641 def get_number_of_floats(self):
4642 """get_number_of_floats(RestraintInfo self) -> unsigned int"""
4643 return _IMP_kernel.RestraintInfo_get_number_of_floats(self)
4646 def get_floats_key(self, i):
4647 """get_floats_key(RestraintInfo self, unsigned int i) -> std::string"""
4648 return _IMP_kernel.RestraintInfo_get_floats_key(self, i)
4651 def get_floats_value(self, i):
4652 """get_floats_value(RestraintInfo self, unsigned int i) -> IMP::Floats"""
4653 return _IMP_kernel.RestraintInfo_get_floats_value(self, i)
4656 def add_ints(self, key, value):
4657 """add_ints(RestraintInfo self, std::string key, IMP::Ints value)"""
4658 return _IMP_kernel.RestraintInfo_add_ints(self, key, value)
4661 def get_number_of_ints(self):
4662 """get_number_of_ints(RestraintInfo self) -> unsigned int"""
4663 return _IMP_kernel.RestraintInfo_get_number_of_ints(self)
4666 def get_ints_key(self, i):
4667 """get_ints_key(RestraintInfo self, unsigned int i) -> std::string"""
4668 return _IMP_kernel.RestraintInfo_get_ints_key(self, i)
4671 def get_ints_value(self, i):
4672 """get_ints_value(RestraintInfo self, unsigned int i) -> IMP::Ints"""
4673 return _IMP_kernel.RestraintInfo_get_ints_value(self, i)
4676 def add_strings(self, key, value):
4677 """add_strings(RestraintInfo self, std::string key, IMP::Strings value)"""
4678 return _IMP_kernel.RestraintInfo_add_strings(self, key, value)
4681 def get_number_of_strings(self):
4682 """get_number_of_strings(RestraintInfo self) -> unsigned int"""
4683 return _IMP_kernel.RestraintInfo_get_number_of_strings(self)
4686 def get_strings_key(self, i):
4687 """get_strings_key(RestraintInfo self, unsigned int i) -> std::string"""
4688 return _IMP_kernel.RestraintInfo_get_strings_key(self, i)
4691 def get_strings_value(self, i):
4692 """get_strings_value(RestraintInfo self, unsigned int i) -> IMP::Strings"""
4693 return _IMP_kernel.RestraintInfo_get_strings_value(self, i)
4696 def add_filenames(self, key, value):
4697 """add_filenames(RestraintInfo self, std::string key, IMP::Strings value)"""
4698 return _IMP_kernel.RestraintInfo_add_filenames(self, key, value)
4701 def get_number_of_filenames(self):
4702 """get_number_of_filenames(RestraintInfo self) -> unsigned int"""
4703 return _IMP_kernel.RestraintInfo_get_number_of_filenames(self)
4706 def get_filenames_key(self, i):
4707 """get_filenames_key(RestraintInfo self, unsigned int i) -> std::string"""
4708 return _IMP_kernel.RestraintInfo_get_filenames_key(self, i)
4711 def get_filenames_value(self, i):
4712 """get_filenames_value(RestraintInfo self, unsigned int i) -> IMP::Strings"""
4713 return _IMP_kernel.RestraintInfo_get_filenames_value(self, i)
4716 def add_particle_indexes(self, key, value):
4717 """add_particle_indexes(RestraintInfo self, std::string key, IMP::ParticleIndexes value)"""
4718 return _IMP_kernel.RestraintInfo_add_particle_indexes(self, key, value)
4721 def get_number_of_particle_indexes(self):
4722 """get_number_of_particle_indexes(RestraintInfo self) -> unsigned int"""
4723 return _IMP_kernel.RestraintInfo_get_number_of_particle_indexes(self)
4726 def get_particle_indexes_key(self, i):
4727 """get_particle_indexes_key(RestraintInfo self, unsigned int i) -> std::string"""
4728 return _IMP_kernel.RestraintInfo_get_particle_indexes_key(self, i)
4731 def get_particle_indexes_value(self, i):
4732 """get_particle_indexes_value(RestraintInfo self, unsigned int i) -> IMP::ParticleIndexes"""
4733 return _IMP_kernel.RestraintInfo_get_particle_indexes_value(self, i)
4736 def get_version_info(self):
4737 """get_version_info(RestraintInfo self) -> VersionInfo"""
4738 return _IMP_kernel.RestraintInfo_get_version_info(self)
4742 """__str__(RestraintInfo self) -> std::string"""
4743 return _IMP_kernel.RestraintInfo___str__(self)
4747 """__repr__(RestraintInfo self) -> std::string"""
4748 return _IMP_kernel.RestraintInfo___repr__(self)
4753 return _object_cast_to_RestraintInfo(o)
4755 RestraintInfo_swigregister = _IMP_kernel.RestraintInfo_swigregister
4756 RestraintInfo_swigregister(RestraintInfo)
4758 class Restraint(ModelObject):
4759 """Proxy of C++ IMP::Restraint class"""
4760 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4762 def __init__(self, m, name):
4763 """__init__(IMP::Restraint self, Model m, std::string name) -> Restraint"""
4764 if self.__class__ == Restraint:
4768 this = _IMP_kernel.new_Restraint(_self, m, name)
4770 self.this.append(this)
4774 if self.__class__ != Restraint:
4775 _director_objects.register(self)
4780 def get_score(self):
4781 """get_score(Restraint self) -> double"""
4782 return _IMP_kernel.Restraint_get_score(self)
4785 def evaluate(self, calc_derivs):
4786 """evaluate(Restraint self, bool calc_derivs) -> double"""
4787 return _IMP_kernel.Restraint_evaluate(self, calc_derivs)
4790 def evaluate_moved(self, calc_derivs, moved_pis, reset_pis):
4791 """evaluate_moved(Restraint self, bool calc_derivs, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
4792 return _IMP_kernel.Restraint_evaluate_moved(self, calc_derivs, moved_pis, reset_pis)
4795 def evaluate_moved_if_below(self, calc_derivatives, moved_pis, reset_pis, max):
4796 """evaluate_moved_if_below(Restraint self, bool calc_derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, double max) -> double"""
4797 return _IMP_kernel.Restraint_evaluate_moved_if_below(self, calc_derivatives, moved_pis, reset_pis, max)
4800 def evaluate_moved_if_good(self, calc_derivatives, moved_pis, reset_pis):
4801 """evaluate_moved_if_good(Restraint self, bool calc_derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
4802 return _IMP_kernel.Restraint_evaluate_moved_if_good(self, calc_derivatives, moved_pis, reset_pis)
4805 def evaluate_if_good(self, calc_derivatives):
4806 """evaluate_if_good(Restraint self, bool calc_derivatives) -> double"""
4807 return _IMP_kernel.Restraint_evaluate_if_good(self, calc_derivatives)
4810 def evaluate_if_below(self, calc_derivatives, max):
4811 """evaluate_if_below(Restraint self, bool calc_derivatives, double max) -> double"""
4812 return _IMP_kernel.Restraint_evaluate_if_below(self, calc_derivatives, max)
4815 def unprotected_evaluate(self, da):
4816 """unprotected_evaluate(Restraint self, DerivativeAccumulator da) -> double"""
4817 return _IMP_kernel.Restraint_unprotected_evaluate(self, da)
4820 def unprotected_evaluate_moved(self, da, moved_pis, reset_pis):
4821 """unprotected_evaluate_moved(Restraint self, DerivativeAccumulator da, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
4822 return _IMP_kernel.Restraint_unprotected_evaluate_moved(self, da, moved_pis, reset_pis)
4825 def unprotected_evaluate_if_good(self, da, max):
4826 """unprotected_evaluate_if_good(Restraint self, DerivativeAccumulator da, double max) -> double"""
4827 return _IMP_kernel.Restraint_unprotected_evaluate_if_good(self, da, max)
4830 def unprotected_evaluate_if_below(self, da, max):
4831 """unprotected_evaluate_if_below(Restraint self, DerivativeAccumulator da, double max) -> double"""
4832 return _IMP_kernel.Restraint_unprotected_evaluate_if_below(self, da, max)
4835 def unprotected_evaluate_moved_if_below(self, da, moved_pis, reset_pis, max):
4836 """unprotected_evaluate_moved_if_below(Restraint self, DerivativeAccumulator da, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, double max) -> double"""
4837 return _IMP_kernel.Restraint_unprotected_evaluate_moved_if_below(self, da, moved_pis, reset_pis, max)
4840 def unprotected_evaluate_moved_if_good(self, da, moved_pis, reset_pis, max):
4841 """unprotected_evaluate_moved_if_good(Restraint self, DerivativeAccumulator da, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, double max) -> double"""
4842 return _IMP_kernel.Restraint_unprotected_evaluate_moved_if_good(self, da, moved_pis, reset_pis, max)
4845 def get_static_info(self):
4846 """get_static_info(Restraint self) -> RestraintInfo"""
4847 return _IMP_kernel.Restraint_get_static_info(self)
4850 def get_dynamic_info(self):
4851 """get_dynamic_info(Restraint self) -> RestraintInfo"""
4852 return _IMP_kernel.Restraint_get_dynamic_info(self)
4855 def add_score_and_derivatives(self, sa):
4856 """add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
4857 return _IMP_kernel.Restraint_add_score_and_derivatives(self, sa)
4860 def add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis):
4861 """add_score_and_derivatives_moved(Restraint self, ScoreAccumulator sa, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
4862 return _IMP_kernel.Restraint_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis)
4866 """create_decomposition(Restraint self) -> Restraint"""
4867 return _IMP_kernel.Restraint_create_decomposition(self)
4870 def create_current_decomposition(self):
4871 """create_current_decomposition(Restraint self) -> Restraint"""
4872 return _IMP_kernel.Restraint_create_current_decomposition(self)
4875 def set_weight(self, weight):
4876 """set_weight(Restraint self, IMP::Float weight)"""
4877 return _IMP_kernel.Restraint_set_weight(self, weight)
4880 def get_weight(self):
4881 """get_weight(Restraint self) -> IMP::Float"""
4882 return _IMP_kernel.Restraint_get_weight(self)
4885 def get_maximum_score(self):
4886 """get_maximum_score(Restraint self) -> double"""
4887 return _IMP_kernel.Restraint_get_maximum_score(self)
4890 def set_maximum_score(self, s):
4891 """set_maximum_score(Restraint self, double s)"""
4892 return _IMP_kernel.Restraint_set_maximum_score(self, s)
4897 create_scoring_function(Restraint self, double weight=1.0, double max) -> ScoringFunction
4898 create_scoring_function(Restraint self, double weight=1.0) -> ScoringFunction
4899 create_scoring_function(Restraint self) -> ScoringFunction
4901 return _IMP_kernel.Restraint_create_scoring_function(self, *args)
4904 def set_last_score(self, s):
4905 """set_last_score(Restraint self, double s)"""
4906 return _IMP_kernel.Restraint_set_last_score(self, s)
4909 def set_last_last_score(self, s):
4910 """set_last_last_score(Restraint self, double s)"""
4911 return _IMP_kernel.Restraint_set_last_last_score(self, s)
4914 def get_last_score(self):
4915 """get_last_score(Restraint self) -> double"""
4916 return _IMP_kernel.Restraint_get_last_score(self)
4919 def get_last_last_score(self):
4920 """get_last_last_score(Restraint self) -> double"""
4921 return _IMP_kernel.Restraint_get_last_last_score(self)
4924 def get_was_good(self):
4925 """get_was_good(Restraint self) -> bool"""
4926 return _IMP_kernel.Restraint_get_was_good(self)
4928 __swig_destroy__ = _IMP_kernel.delete_Restraint
4929 __del__ =
lambda self:
None
4931 def do_create_decomposition(self):
4932 """do_create_decomposition(Restraint self) -> IMP::Restraints"""
4933 return _IMP_kernel.Restraint_do_create_decomposition(self)
4936 def do_create_current_decomposition(self):
4937 """do_create_current_decomposition(Restraint self) -> IMP::Restraints"""
4938 return _IMP_kernel.Restraint_do_create_current_decomposition(self)
4941 def do_add_score_and_derivatives(self, sa):
4942 """do_add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
4943 return _IMP_kernel.Restraint_do_add_score_and_derivatives(self, sa)
4946 def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis):
4947 """do_add_score_and_derivatives_moved(Restraint self, ScoreAccumulator sa, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
4948 return _IMP_kernel.Restraint_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis)
4951 def do_get_outputs(self):
4952 """do_get_outputs(Restraint self) -> IMP::ModelObjectsTemp"""
4953 return _IMP_kernel.Restraint_do_get_outputs(self)
4957 """__str__(Restraint self) -> std::string"""
4958 return _IMP_kernel.Restraint___str__(self)
4962 """__repr__(Restraint self) -> std::string"""
4963 return _IMP_kernel.Restraint___repr__(self)
4968 return _object_cast_to_Restraint(o)
4971 def get_type_name(self):
4972 return self.__class__.__name__
4973 def do_show(self, out):
4975 def get_version_info(self):
4977 return VersionInfo(self.__module__,
4984 return _object_cast_to_Restraint(o)
4986 def __disown__(self):
4988 _IMP_kernel.disown_Restraint(self)
4989 return weakref_proxy(self)
4991 def do_destroy(self):
4992 """do_destroy(Restraint self)"""
4993 return _IMP_kernel.Restraint_do_destroy(self)
4996 def handle_set_has_required_score_states(self, arg0):
4997 """handle_set_has_required_score_states(Restraint self, bool arg0)"""
4998 return _IMP_kernel.Restraint_handle_set_has_required_score_states(self, arg0)
5001 def do_get_inputs(self):
5002 """do_get_inputs(Restraint self) -> IMP::ModelObjectsTemp"""
5003 return _IMP_kernel.Restraint_do_get_inputs(self)
5006 def do_get_interactions(self):
5007 """do_get_interactions(Restraint self) -> IMP::ModelObjectsTemps"""
5008 return _IMP_kernel.Restraint_do_get_interactions(self)
5010 Restraint_swigregister = _IMP_kernel.Restraint_swigregister
5011 Restraint_swigregister(Restraint)
5013 class _RestraintsAdaptor(_InputAdaptor):
5014 """Proxy of C++ IMP::RestraintsAdaptor class"""
5015 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5016 __repr__ = _swig_repr
5018 def __init__(self, *args):
5020 __init__(IMP::RestraintsAdaptor self) -> _RestraintsAdaptor
5021 __init__(IMP::RestraintsAdaptor self, IMP::Restraints const & sf) -> _RestraintsAdaptor
5022 __init__(IMP::RestraintsAdaptor self, IMP::RestraintsTemp const & sf) -> _RestraintsAdaptor
5023 __init__(IMP::RestraintsAdaptor self, Restraint sf) -> _RestraintsAdaptor
5025 this = _IMP_kernel.new__RestraintsAdaptor(*args)
5027 self.this.append(this)
5030 __swig_destroy__ = _IMP_kernel.delete__RestraintsAdaptor
5031 __del__ =
lambda self:
None
5032 _RestraintsAdaptor_swigregister = _IMP_kernel._RestraintsAdaptor_swigregister
5033 _RestraintsAdaptor_swigregister(_RestraintsAdaptor)
5035 class RestraintSet(Restraint):
5036 """Proxy of C++ IMP::RestraintSet class"""
5037 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5039 def __init__(self, *args):
5041 __init__(IMP::RestraintSet self, Model m, double weight, std::string const & name) -> RestraintSet
5042 __init__(IMP::RestraintSet self, Model m, double weight) -> RestraintSet
5043 __init__(IMP::RestraintSet self, Model m, std::string const & name) -> RestraintSet
5044 __init__(IMP::RestraintSet self, Model m) -> RestraintSet
5045 __init__(IMP::RestraintSet self, IMP::RestraintsTemp const & rs, double weight, std::string const & name) -> RestraintSet
5046 __init__(IMP::RestraintSet self, IMP::RestraintsTemp const & rs, double weight) -> RestraintSet
5048 if self.__class__ == RestraintSet:
5052 this = _IMP_kernel.new_RestraintSet(_self, *args)
5054 self.this.append(this)
5058 if self.__class__ != RestraintSet:
5059 _director_objects.register(self)
5064 def unprotected_evaluate(self, da):
5065 """unprotected_evaluate(RestraintSet self, DerivativeAccumulator da) -> double"""
5066 return _IMP_kernel.RestraintSet_unprotected_evaluate(self, da)
5069 def get_type_name(self):
5070 """get_type_name(RestraintSet self) -> std::string"""
5071 return _IMP_kernel.RestraintSet_get_type_name(self)
5074 def get_version_info(self):
5075 """get_version_info(RestraintSet self) -> VersionInfo"""
5076 return _IMP_kernel.RestraintSet_get_version_info(self)
5079 def remove_restraint(self, d):
5080 """remove_restraint(RestraintSet self, Restraint d)"""
5081 return _IMP_kernel.RestraintSet_remove_restraint(self, d)
5084 def remove_restraints(self, d):
5085 """remove_restraints(RestraintSet self, IMP::Restraints const & d)"""
5086 return _IMP_kernel.RestraintSet_remove_restraints(self, d)
5089 def set_restraints(self, ps):
5090 """set_restraints(RestraintSet self, IMP::Restraints const & ps)"""
5091 return _IMP_kernel.RestraintSet_set_restraints(self, ps)
5094 def set_restraints_order(self, objs):
5095 """set_restraints_order(RestraintSet self, IMP::Restraints const & objs)"""
5096 return _IMP_kernel.RestraintSet_set_restraints_order(self, objs)
5100 """add_restraint(RestraintSet self, Restraint obj) -> unsigned int"""
5101 return _IMP_kernel.RestraintSet_add_restraint(self, obj)
5105 """add_restraints(RestraintSet self, IMP::Restraints const & objs)"""
5106 return _IMP_kernel.RestraintSet_add_restraints(self, objs)
5109 def clear_restraints(self):
5110 """clear_restraints(RestraintSet self)"""
5111 return _IMP_kernel.RestraintSet_clear_restraints(self)
5114 def get_number_of_restraints(self):
5115 """get_number_of_restraints(RestraintSet self) -> unsigned int"""
5116 return _IMP_kernel.RestraintSet_get_number_of_restraints(self)
5119 def get_has_restraints(self):
5120 """get_has_restraints(RestraintSet self) -> bool"""
5121 return _IMP_kernel.RestraintSet_get_has_restraints(self)
5124 def get_restraint(self, i):
5125 """get_restraint(RestraintSet self, unsigned int i) -> Restraint"""
5126 return _IMP_kernel.RestraintSet_get_restraint(self, i)
5129 def get_restraints(self):
5130 """get_restraints(RestraintSet self) -> IMP::Restraints"""
5131 return _IMP_kernel.RestraintSet_get_restraints(self)
5134 def reserve_restraints(self, sz):
5135 """reserve_restraints(RestraintSet self, unsigned int sz)"""
5136 return _IMP_kernel.RestraintSet_reserve_restraints(self, sz)
5139 def get_non_sets_and_sets(self):
5140 """get_non_sets_and_sets(RestraintSet self) -> std::pair< IMP::RestraintsTemp,IMP::RestraintSetsTemp >"""
5141 return _IMP_kernel.RestraintSet_get_non_sets_and_sets(self)
5144 def do_get_inputs(self):
5145 """do_get_inputs(RestraintSet self) -> IMP::ModelObjectsTemp"""
5146 return _IMP_kernel.RestraintSet_do_get_inputs(self)
5151 create_scoring_function(RestraintSet self, double weight=1.0, double max) -> ScoringFunction
5152 create_scoring_function(RestraintSet self, double weight=1.0) -> ScoringFunction
5153 create_scoring_function(RestraintSet self) -> ScoringFunction
5155 return _IMP_kernel.RestraintSet_create_scoring_function(self, *args)
5158 def get_last_score(self):
5159 """get_last_score(RestraintSet self) -> double"""
5160 return _IMP_kernel.RestraintSet_get_last_score(self)
5163 def get_last_last_score(self):
5164 """get_last_last_score(RestraintSet self) -> double"""
5165 return _IMP_kernel.RestraintSet_get_last_last_score(self)
5169 """__str__(RestraintSet self) -> std::string"""
5170 return _IMP_kernel.RestraintSet___str__(self)
5174 """__repr__(RestraintSet self) -> std::string"""
5175 return _IMP_kernel.RestraintSet___repr__(self)
5180 return _object_cast_to_RestraintSet(o)
5183 def get_type_name(self):
5184 return self.__class__.__name__
5185 def do_show(self, out):
5187 def get_version_info(self):
5189 return VersionInfo(self.__module__,
5196 return _object_cast_to_RestraintSet(o)
5198 def __disown__(self):
5200 _IMP_kernel.disown_RestraintSet(self)
5201 return weakref_proxy(self)
5203 def do_destroy(self):
5204 """do_destroy(RestraintSet self)"""
5205 return _IMP_kernel.RestraintSet_do_destroy(self)
5208 def handle_set_has_required_score_states(self, arg0):
5209 """handle_set_has_required_score_states(RestraintSet self, bool arg0)"""
5210 return _IMP_kernel.RestraintSet_handle_set_has_required_score_states(self, arg0)
5213 def do_get_outputs(self):
5214 """do_get_outputs(RestraintSet self) -> IMP::ModelObjectsTemp"""
5215 return _IMP_kernel.RestraintSet_do_get_outputs(self)
5218 def do_get_interactions(self):
5219 """do_get_interactions(RestraintSet self) -> IMP::ModelObjectsTemps"""
5220 return _IMP_kernel.RestraintSet_do_get_interactions(self)
5223 def do_create_decomposition(self):
5224 """do_create_decomposition(RestraintSet self) -> IMP::Restraints"""
5225 return _IMP_kernel.RestraintSet_do_create_decomposition(self)
5228 def do_create_current_decomposition(self):
5229 """do_create_current_decomposition(RestraintSet self) -> IMP::Restraints"""
5230 return _IMP_kernel.RestraintSet_do_create_current_decomposition(self)
5233 def do_add_score_and_derivatives(self, sa):
5234 """do_add_score_and_derivatives(RestraintSet self, ScoreAccumulator sa)"""
5235 return _IMP_kernel.RestraintSet_do_add_score_and_derivatives(self, sa)
5238 def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis):
5239 """do_add_score_and_derivatives_moved(RestraintSet self, ScoreAccumulator sa, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
5240 return _IMP_kernel.RestraintSet_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis)
5242 RestraintSet_swigregister = _IMP_kernel.RestraintSet_swigregister
5243 RestraintSet_swigregister(RestraintSet)
5246 def get_restraints(rs):
5247 """get_restraints(IMP::RestraintsTemp const & rs) -> IMP::RestraintsTemp"""
5248 return _IMP_kernel.get_restraints(rs)
5250 def _check_particle(p, a):
5251 if (
not p.get_is_active()):
5252 raise ValueError(
"Inactive Particle")
5253 if (type(a)() == a):
5254 raise IndexError(
"Cannot use default Index")
5255 if (
not p.has_attribute(a)):
5256 raise IndexError(
"Particle does not have attribute")
5258 class Particle(ModelObject):
5259 """Proxy of C++ IMP::Particle class"""
5260 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5262 def get_version_info(self):
5263 """get_version_info(Particle self) -> VersionInfo"""
5264 return _IMP_kernel.Particle_get_version_info(self)
5267 def __init__(self, *args):
5269 __init__(IMP::Particle self, Model m, std::string name) -> Particle
5270 __init__(IMP::Particle self, Model m) -> Particle
5272 this = _IMP_kernel.new_Particle(*args)
5274 self.this.append(this)
5278 def get_float_keys(self):
5279 """get_float_keys(Particle self) -> IMP::FloatKeys"""
5280 return _IMP_kernel.Particle_get_float_keys(self)
5283 def get_floats_keys(self):
5284 """get_floats_keys(Particle self) -> IMP::FloatsKeys"""
5285 return _IMP_kernel.Particle_get_floats_keys(self)
5288 def get_int_keys(self):
5289 """get_int_keys(Particle self) -> IMP::IntKeys"""
5290 return _IMP_kernel.Particle_get_int_keys(self)
5293 def get_ints_keys(self):
5294 """get_ints_keys(Particle self) -> IMP::IntsKeys"""
5295 return _IMP_kernel.Particle_get_ints_keys(self)
5298 def get_string_keys(self):
5299 """get_string_keys(Particle self) -> IMP::StringKeys"""
5300 return _IMP_kernel.Particle_get_string_keys(self)
5303 def get_object_keys(self):
5304 """get_object_keys(Particle self) -> IMP::ObjectKeys"""
5305 return _IMP_kernel.Particle_get_object_keys(self)
5308 def add_cache_attribute(self, *args):
5310 add_cache_attribute(Particle self, FloatKey name, IMP::Float value)
5311 add_cache_attribute(Particle self, FloatsKey name, IMP::Floats value)
5312 add_cache_attribute(Particle self, IntKey name, IMP::Int value)
5313 add_cache_attribute(Particle self, IntsKey name, IMP::Ints value)
5314 add_cache_attribute(Particle self, StringKey name, IMP::String value)
5315 add_cache_attribute(Particle self, ObjectKey name, Object value)
5316 add_cache_attribute(Particle self, IMP::WeakObjectKey name, Object value)
5318 return _IMP_kernel.Particle_add_cache_attribute(self, *args)
5321 def get_weak_object_keys(self):
5322 """get_weak_object_keys(Particle self) -> IMP::WeakObjectKeys"""
5323 return _IMP_kernel.Particle_get_weak_object_keys(self)
5326 def add_to_derivative(self, key, value, da):
5327 """add_to_derivative(Particle self, FloatKey key, IMP::Float value, DerivativeAccumulator da)"""
5328 return _IMP_kernel.Particle_add_to_derivative(self, key, value, da)
5331 def set_is_optimized(self, k, tf):
5332 """set_is_optimized(Particle self, FloatKey k, bool tf)"""
5333 return _IMP_kernel.Particle_set_is_optimized(self, k, tf)
5336 def get_is_optimized(self, k):
5337 """get_is_optimized(Particle self, FloatKey k) -> bool"""
5338 return _IMP_kernel.Particle_get_is_optimized(self, k)
5341 def get_derivative(self, k):
5342 """get_derivative(Particle self, FloatKey k) -> IMP::Float"""
5343 return _IMP_kernel.Particle_get_derivative(self, k)
5346 def add_attribute(self, *args):
5348 add_attribute(Particle self, FloatKey name, IMP::Float initial_value)
5349 add_attribute(Particle self, FloatsKey name, IMP::Floats initial_value)
5350 add_attribute(Particle self, IntKey name, IMP::Int initial_value)
5351 add_attribute(Particle self, IntsKey name, IMP::Ints initial_value)
5352 add_attribute(Particle self, StringKey name, IMP::String initial_value)
5353 add_attribute(Particle self, ObjectKey name, Object initial_value)
5354 add_attribute(Particle self, IMP::WeakObjectKey name, Object initial_value)
5355 add_attribute(Particle self, FloatKey name, IMP::Float const initial_value, bool optimized)
5356 add_attribute(Particle self, ParticleIndexKey k, Particle v)
5358 return _IMP_kernel.Particle_add_attribute(self, *args)
5361 def has_attribute(self, *args):
5363 has_attribute(Particle self, FloatKey name) -> bool
5364 has_attribute(Particle self, FloatsKey name) -> bool
5365 has_attribute(Particle self, IntKey name) -> bool
5366 has_attribute(Particle self, IntsKey name) -> bool
5367 has_attribute(Particle self, StringKey name) -> bool
5368 has_attribute(Particle self, ObjectKey name) -> bool
5369 has_attribute(Particle self, IMP::WeakObjectKey name) -> bool
5370 has_attribute(Particle self, ParticleIndexKey k) -> bool
5372 return _IMP_kernel.Particle_has_attribute(self, *args)
5375 def set_value(self, *args):
5377 set_value(Particle self, FloatKey name, IMP::Float value)
5378 set_value(Particle self, FloatsKey name, IMP::Floats value)
5379 set_value(Particle self, IntKey name, IMP::Int value)
5380 set_value(Particle self, IntsKey name, IMP::Ints value)
5381 set_value(Particle self, StringKey name, IMP::String value)
5382 set_value(Particle self, ObjectKey name, Object value)
5383 set_value(Particle self, IMP::WeakObjectKey name, Object value)
5384 set_value(Particle self, ParticleIndexKey k, Particle v)
5386 return _IMP_kernel.Particle_set_value(self, *args)
5389 def get_value(self, *args):
5391 get_value(Particle self, FloatKey name) -> IMP::Float
5392 get_value(Particle self, FloatsKey name) -> IMP::Floats
5393 get_value(Particle self, IntKey name) -> IMP::Int
5394 get_value(Particle self, IntsKey name) -> IMP::Ints
5395 get_value(Particle self, StringKey name) -> IMP::String
5396 get_value(Particle self, ObjectKey name) -> Object
5397 get_value(Particle self, IMP::WeakObjectKey name) -> Object
5398 get_value(Particle self, ParticleIndexKey k) -> Particle
5400 return _IMP_kernel.Particle_get_value(self, *args)
5403 def remove_attribute(self, *args):
5405 remove_attribute(Particle self, FloatKey name)
5406 remove_attribute(Particle self, FloatsKey name)
5407 remove_attribute(Particle self, IntKey name)
5408 remove_attribute(Particle self, IntsKey name)
5409 remove_attribute(Particle self, StringKey name)
5410 remove_attribute(Particle self, ObjectKey name)
5411 remove_attribute(Particle self, IMP::WeakObjectKey name)
5412 remove_attribute(Particle self, ParticleIndexKey k)
5414 return _IMP_kernel.Particle_remove_attribute(self, *args)
5417 def get_particle_keys(self):
5418 """get_particle_keys(Particle self) -> IMP::ParticleIndexKeys"""
5419 return _IMP_kernel.Particle_get_particle_keys(self)
5422 def show(self, *args):
5424 show(Particle self, _ostream out)
5427 return _IMP_kernel.Particle_show(self, *args)
5430 def get_is_active(self):
5431 """get_is_active(Particle self) -> bool"""
5432 return _IMP_kernel.Particle_get_is_active(self)
5436 """get_index(Particle self) -> ParticleIndex"""
5437 return _IMP_kernel.Particle_get_index(self)
5440 def __eq__(self, *args):
5442 __eq__(Particle self, Particle o) -> bool
5443 __eq__(Particle self, Decorator d) -> bool
5445 return _IMP_kernel.Particle___eq__(self, *args)
5448 def __ne__(self, *args):
5450 __ne__(Particle self, Particle o) -> bool
5451 __ne__(Particle self, Decorator d) -> bool
5453 return _IMP_kernel.Particle___ne__(self, *args)
5456 def __le__(self, *args):
5458 __le__(Particle self, Particle o) -> bool
5459 __le__(Particle self, Decorator d) -> bool
5461 return _IMP_kernel.Particle___le__(self, *args)
5464 def __lt__(self, *args):
5466 __lt__(Particle self, Particle o) -> bool
5467 __lt__(Particle self, Decorator d) -> bool
5469 return _IMP_kernel.Particle___lt__(self, *args)
5472 def __ge__(self, *args):
5474 __ge__(Particle self, Particle o) -> bool
5475 __ge__(Particle self, Decorator d) -> bool
5477 return _IMP_kernel.Particle___ge__(self, *args)
5480 def __gt__(self, *args):
5482 __gt__(Particle self, Particle o) -> bool
5483 __gt__(Particle self, Decorator d) -> bool
5485 return _IMP_kernel.Particle___gt__(self, *args)
5488 __hash__ = ModelObject.__hash__
5492 """__str__(Particle self) -> std::string"""
5493 return _IMP_kernel.Particle___str__(self)
5497 """__repr__(Particle self) -> std::string"""
5498 return _IMP_kernel.Particle___repr__(self)
5503 return _object_cast_to_Particle(o)
5505 Particle_swigregister = _IMP_kernel.Particle_swigregister
5506 Particle_swigregister(Particle)
5508 class _ParticleAdaptor(_InputAdaptor):
5509 """Proxy of C++ IMP::ParticleAdaptor class"""
5510 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5511 __repr__ = _swig_repr
5513 def __init__(self, *args):
5515 __init__(IMP::ParticleAdaptor self) -> _ParticleAdaptor
5516 __init__(IMP::ParticleAdaptor self, Particle p) -> _ParticleAdaptor
5517 __init__(IMP::ParticleAdaptor self, Decorator d) -> _ParticleAdaptor
5519 this = _IMP_kernel.new__ParticleAdaptor(*args)
5521 self.this.append(this)
5525 def get_model(self):
5526 """get_model(_ParticleAdaptor self) -> Model"""
5527 return _IMP_kernel._ParticleAdaptor_get_model(self)
5530 def get_particle_index(self):
5531 """get_particle_index(_ParticleAdaptor self) -> ParticleIndex"""
5532 return _IMP_kernel._ParticleAdaptor_get_particle_index(self)
5534 __swig_destroy__ = _IMP_kernel.delete__ParticleAdaptor
5535 __del__ =
lambda self:
None
5536 _ParticleAdaptor_swigregister = _IMP_kernel._ParticleAdaptor_swigregister
5537 _ParticleAdaptor_swigregister(_ParticleAdaptor)
5539 class _DependencyGraphVertexIndex(object):
5540 """Proxy of C++ IMP::DependencyGraphVertexIndex class"""
5541 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5542 __repr__ = _swig_repr
5545 """__init__(IMP::DependencyGraphVertexIndex self) -> _DependencyGraphVertexIndex"""
5546 this = _IMP_kernel.new__DependencyGraphVertexIndex()
5548 self.this.append(this)
5551 __swig_destroy__ = _IMP_kernel.delete__DependencyGraphVertexIndex
5552 __del__ =
lambda self:
None
5553 _DependencyGraphVertexIndex_swigregister = _IMP_kernel._DependencyGraphVertexIndex_swigregister
5554 _DependencyGraphVertexIndex_swigregister(_DependencyGraphVertexIndex)
5557 def show_as_graphviz(name, out):
5558 """show_as_graphviz(IMP::DependencyGraph const & name, TextOutput out)"""
5559 return _IMP_kernel.show_as_graphviz(name, out)
5561 def get_vertex_index(g):
5562 """get_vertex_index(IMP::DependencyGraph const & g) -> _DependencyGraphVertexIndex"""
5563 return _IMP_kernel.get_vertex_index(g)
5566 """get_dependency_graph(Model m) -> IMP::DependencyGraph"""
5567 return _IMP_kernel.get_dependency_graph(m)
5570 """get_pruned_dependency_graph(Model m) -> IMP::DependencyGraph"""
5571 return _IMP_kernel.get_pruned_dependency_graph(m)
5573 def get_dependent_restraints(m, pi):
5574 """get_dependent_restraints(Model m, ParticleIndex pi) -> IMP::RestraintsTemp"""
5575 return _IMP_kernel.get_dependent_restraints(m, pi)
5577 def get_dependent_score_states(m, pi):
5578 """get_dependent_score_states(Model m, ParticleIndex pi) -> IMP::ScoreStatesTemp"""
5579 return _IMP_kernel.get_dependent_score_states(m, pi)
5581 def get_required_score_states(*args):
5583 get_required_score_states(IMP::ModelObjectsTemp const & mos, IMP::ScoreStatesTemp exclude) -> IMP::ScoreStatesTemp
5584 get_required_score_states(IMP::ModelObjectsTemp const & mos) -> IMP::ScoreStatesTemp
5585 get_required_score_states(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ScoreStatesTemp
5586 get_required_score_states(Model m, ParticleIndex pi) -> IMP::ScoreStatesTemp
5588 return _IMP_kernel.get_required_score_states(*args)
5590 def get_dependent_particles(*args):
5592 get_dependent_particles(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ParticlesTemp
5593 get_dependent_particles(Model m, ParticleIndex pi) -> IMP::ParticlesTemp
5595 return _IMP_kernel.get_dependent_particles(*args)
5596 class ScoringFunction(ModelObject):
5597 """Proxy of C++ IMP::ScoringFunction class"""
5598 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5600 def do_add_score_and_derivatives(self, sa, ss):
5601 """do_add_score_and_derivatives(ScoringFunction self, ScoreAccumulator sa, IMP::ScoreStatesTemp const & ss)"""
5602 return _IMP_kernel.ScoringFunction_do_add_score_and_derivatives(self, sa, ss)
5605 def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss):
5606 """do_add_score_and_derivatives_moved(ScoringFunction self, ScoreAccumulator sa, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, IMP::ScoreStatesTemp const & ss)"""
5607 return _IMP_kernel.ScoringFunction_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss)
5610 def get_score_accumulator_if_below(self, deriv, max):
5611 """get_score_accumulator_if_below(ScoringFunction self, bool deriv, double max) -> ScoreAccumulator"""
5612 return _IMP_kernel.ScoringFunction_get_score_accumulator_if_below(self, deriv, max)
5615 def get_score_accumulator_if_good(self, deriv):
5616 """get_score_accumulator_if_good(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
5617 return _IMP_kernel.ScoringFunction_get_score_accumulator_if_good(self, deriv)
5620 def get_score_accumulator(self, deriv):
5621 """get_score_accumulator(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
5622 return _IMP_kernel.ScoringFunction_get_score_accumulator(self, deriv)
5625 def __init__(self, m, name):
5626 """__init__(IMP::ScoringFunction self, Model m, std::string name) -> ScoringFunction"""
5627 if self.__class__ == ScoringFunction:
5631 this = _IMP_kernel.new_ScoringFunction(_self, m, name)
5633 self.this.append(this)
5637 if self.__class__ != ScoringFunction:
5638 _director_objects.register(self)
5643 def do_get_outputs(self):
5644 """do_get_outputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
5645 return _IMP_kernel.ScoringFunction_do_get_outputs(self)
5648 def evaluate_if_good(self, derivatives):
5649 """evaluate_if_good(ScoringFunction self, bool derivatives) -> double"""
5650 return _IMP_kernel.ScoringFunction_evaluate_if_good(self, derivatives)
5653 def evaluate(self, derivatives):
5654 """evaluate(ScoringFunction self, bool derivatives) -> double"""
5655 return _IMP_kernel.ScoringFunction_evaluate(self, derivatives)
5658 def evaluate_moved(self, derivatives, moved_pis, reset_pis):
5659 """evaluate_moved(ScoringFunction self, bool derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
5660 return _IMP_kernel.ScoringFunction_evaluate_moved(self, derivatives, moved_pis, reset_pis)
5663 def evaluate_moved_if_below(self, derivatives, moved_pis, reset_pis, max):
5664 """evaluate_moved_if_below(ScoringFunction self, bool derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, double max) -> double"""
5665 return _IMP_kernel.ScoringFunction_evaluate_moved_if_below(self, derivatives, moved_pis, reset_pis, max)
5668 def evaluate_moved_if_good(self, derivatives, moved_pis, reset_pis):
5669 """evaluate_moved_if_good(ScoringFunction self, bool derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
5670 return _IMP_kernel.ScoringFunction_evaluate_moved_if_good(self, derivatives, moved_pis, reset_pis)
5673 def evaluate_if_below(self, derivatives, max):
5674 """evaluate_if_below(ScoringFunction self, bool derivatives, double max) -> double"""
5675 return _IMP_kernel.ScoringFunction_evaluate_if_below(self, derivatives, max)
5678 def get_had_good_score(self):
5679 """get_had_good_score(ScoringFunction self) -> bool"""
5680 return _IMP_kernel.ScoringFunction_get_had_good_score(self)
5683 def get_last_score(self):
5684 """get_last_score(ScoringFunction self) -> double"""
5685 return _IMP_kernel.ScoringFunction_get_last_score(self)
5689 """create_restraints(ScoringFunction self) -> IMP::Restraints"""
5690 return _IMP_kernel.ScoringFunction_create_restraints(self)
5694 """__str__(ScoringFunction self) -> std::string"""
5695 return _IMP_kernel.ScoringFunction___str__(self)
5699 """__repr__(ScoringFunction self) -> std::string"""
5700 return _IMP_kernel.ScoringFunction___repr__(self)
5705 return _object_cast_to_ScoringFunction(o)
5708 def get_type_name(self):
5709 return self.__class__.__name__
5710 def do_show(self, out):
5712 def get_version_info(self):
5714 return VersionInfo(self.__module__,
5721 return _object_cast_to_ScoringFunction(o)
5723 __swig_destroy__ = _IMP_kernel.delete_ScoringFunction
5724 __del__ =
lambda self:
None
5725 def __disown__(self):
5727 _IMP_kernel.disown_ScoringFunction(self)
5728 return weakref_proxy(self)
5730 def do_destroy(self):
5731 """do_destroy(ScoringFunction self)"""
5732 return _IMP_kernel.ScoringFunction_do_destroy(self)
5735 def handle_set_has_required_score_states(self, arg0):
5736 """handle_set_has_required_score_states(ScoringFunction self, bool arg0)"""
5737 return _IMP_kernel.ScoringFunction_handle_set_has_required_score_states(self, arg0)
5740 def do_get_inputs(self):
5741 """do_get_inputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
5742 return _IMP_kernel.ScoringFunction_do_get_inputs(self)
5745 def do_get_interactions(self):
5746 """do_get_interactions(ScoringFunction self) -> IMP::ModelObjectsTemps"""
5747 return _IMP_kernel.ScoringFunction_do_get_interactions(self)
5749 ScoringFunction_swigregister = _IMP_kernel.ScoringFunction_swigregister
5750 ScoringFunction_swigregister(ScoringFunction)
5755 create_decomposition(IMP::RestraintsTemp const & rs) -> IMP::Restraints
5756 create_decomposition(ScoringFunction sf) -> IMP::ScoringFunctions
5758 return _IMP_kernel.create_decomposition(*args)
5759 class _ScoringFunctionAdaptor(_InputAdaptor):
5760 """Proxy of C++ IMP::ScoringFunctionAdaptor class"""
5761 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5762 __repr__ = _swig_repr
5764 def __init__(self, *args):
5766 __init__(IMP::ScoringFunctionAdaptor self) -> _ScoringFunctionAdaptor
5767 __init__(IMP::ScoringFunctionAdaptor self, ScoringFunction sf) -> _ScoringFunctionAdaptor
5768 __init__(IMP::ScoringFunctionAdaptor self, IMP::RestraintsTemp const & sf) -> _ScoringFunctionAdaptor
5769 __init__(IMP::ScoringFunctionAdaptor self, IMP::Restraints const & sf) -> _ScoringFunctionAdaptor
5770 __init__(IMP::ScoringFunctionAdaptor self, Restraint sf) -> _ScoringFunctionAdaptor
5772 this = _IMP_kernel.new__ScoringFunctionAdaptor(*args)
5774 self.this.append(this)
5777 __swig_destroy__ = _IMP_kernel.delete__ScoringFunctionAdaptor
5778 __del__ =
lambda self:
None
5779 _ScoringFunctionAdaptor_swigregister = _IMP_kernel._ScoringFunctionAdaptor_swigregister
5780 _ScoringFunctionAdaptor_swigregister(_ScoringFunctionAdaptor)
5785 show_restraint_hierarchy(_ScoringFunctionAdaptor rs, _ostream out)
5786 show_restraint_hierarchy(_ScoringFunctionAdaptor rs)
5788 return _IMP_kernel.show_restraint_hierarchy(*args)
5789 class Undecorator(Object):
5790 """Proxy of C++ IMP::Undecorator class"""
5791 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5793 def __init__(self, m, name):
5794 """__init__(IMP::Undecorator self, Model m, std::string name) -> Undecorator"""
5795 if self.__class__ == Undecorator:
5799 this = _IMP_kernel.new_Undecorator(_self, m, name)
5801 self.this.append(this)
5805 if self.__class__ != Undecorator:
5806 _director_objects.register(self)
5811 def teardown(self, pi):
5812 """teardown(Undecorator self, ParticleIndex pi)"""
5813 return _IMP_kernel.Undecorator_teardown(self, pi)
5817 """__str__(Undecorator self) -> std::string"""
5818 return _IMP_kernel.Undecorator___str__(self)
5822 """__repr__(Undecorator self) -> std::string"""
5823 return _IMP_kernel.Undecorator___repr__(self)
5828 return _object_cast_to_Undecorator(o)
5831 def get_type_name(self):
5832 return self.__class__.__name__
5833 def do_show(self, out):
5835 def get_version_info(self):
5837 return VersionInfo(self.__module__,
5844 return _object_cast_to_Undecorator(o)
5846 __swig_destroy__ = _IMP_kernel.delete_Undecorator
5847 __del__ =
lambda self:
None
5848 def __disown__(self):
5850 _IMP_kernel.disown_Undecorator(self)
5851 return weakref_proxy(self)
5853 def do_destroy(self):
5854 """do_destroy(Undecorator self)"""
5855 return _IMP_kernel.Undecorator_do_destroy(self)
5857 Undecorator_swigregister = _IMP_kernel.Undecorator_swigregister
5858 Undecorator_swigregister(Undecorator)
5860 class Model(Object):
5861 """Proxy of C++ IMP::Model class"""
5862 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5864 def __init__(self, *args):
5866 __init__(IMP::Model self, std::string name) -> Model
5867 __init__(IMP::Model self) -> Model
5869 this = _IMP_kernel.new_Model(*args)
5871 self.this.append(this)
5875 def clear_particle_caches(self, pi):
5876 """clear_particle_caches(Model self, ParticleIndex pi)"""
5877 return _IMP_kernel.Model_clear_particle_caches(self, pi)
5881 """add_particle(Model self, std::string name) -> ParticleIndex"""
5882 return _IMP_kernel.Model_add_particle(self, name)
5885 def get_particle_name(self, pi):
5886 """get_particle_name(Model self, ParticleIndex pi) -> std::string"""
5887 return _IMP_kernel.Model_get_particle_name(self, pi)
5890 def add_undecorator(self, pi, d):
5891 """add_undecorator(Model self, ParticleIndex pi, Undecorator d)"""
5892 return _IMP_kernel.Model_add_undecorator(self, pi, d)
5895 def get_dependent_restraints_uncached(self, pi):
5896 """get_dependent_restraints_uncached(Model self, ParticleIndex pi) -> IMP::RestraintsTemp"""
5897 return _IMP_kernel.Model_get_dependent_restraints_uncached(self, pi)
5900 def get_dependent_particles_uncached(self, pi):
5901 """get_dependent_particles_uncached(Model self, ParticleIndex pi) -> IMP::ParticlesTemp"""
5902 return _IMP_kernel.Model_get_dependent_particles_uncached(self, pi)
5905 def get_dependent_score_states_uncached(self, pi):
5906 """get_dependent_score_states_uncached(Model self, ParticleIndex pi) -> IMP::ScoreStatesTemp"""
5907 return _IMP_kernel.Model_get_dependent_score_states_uncached(self, pi)
5910 def remove_score_state(self, d):
5911 """remove_score_state(Model self, ScoreState d)"""
5912 return _IMP_kernel.Model_remove_score_state(self, d)
5915 def remove_score_states(self, d):
5916 """remove_score_states(Model self, IMP::ScoreStates const & d)"""
5917 return _IMP_kernel.Model_remove_score_states(self, d)
5920 def set_score_states(self, ps):
5921 """set_score_states(Model self, IMP::ScoreStates const & ps)"""
5922 return _IMP_kernel.Model_set_score_states(self, ps)
5925 def set_score_states_order(self, objs):
5926 """set_score_states_order(Model self, IMP::ScoreStates const & objs)"""
5927 return _IMP_kernel.Model_set_score_states_order(self, objs)
5930 def add_score_state(self, obj):
5931 """add_score_state(Model self, ScoreState obj) -> unsigned int"""
5932 return _IMP_kernel.Model_add_score_state(self, obj)
5935 def add_score_states(self, objs):
5936 """add_score_states(Model self, IMP::ScoreStates const & objs)"""
5937 return _IMP_kernel.Model_add_score_states(self, objs)
5940 def clear_score_states(self):
5941 """clear_score_states(Model self)"""
5942 return _IMP_kernel.Model_clear_score_states(self)
5945 def get_number_of_score_states(self):
5946 """get_number_of_score_states(Model self) -> unsigned int"""
5947 return _IMP_kernel.Model_get_number_of_score_states(self)
5950 def get_has_score_states(self):
5951 """get_has_score_states(Model self) -> bool"""
5952 return _IMP_kernel.Model_get_has_score_states(self)
5955 def get_score_state(self, i):
5956 """get_score_state(Model self, unsigned int i) -> ScoreState"""
5957 return _IMP_kernel.Model_get_score_state(self, i)
5960 def get_score_states(self):
5961 """get_score_states(Model self) -> IMP::ScoreStates"""
5962 return _IMP_kernel.Model_get_score_states(self)
5965 def reserve_score_states(self, sz):
5966 """reserve_score_states(Model self, unsigned int sz)"""
5967 return _IMP_kernel.Model_reserve_score_states(self, sz)
5971 """update(Model self)"""
5972 return _IMP_kernel.Model_update(self)
5975 def add_attribute(self, *args):
5977 add_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5978 add_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
5979 add_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle, IMP::Floats value)
5980 add_attribute(Model self, IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
5981 add_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
5982 add_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
5983 add_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5984 add_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
5985 add_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5987 return _IMP_kernel.Model_add_attribute(self, *args)
5990 def remove_attribute(self, *args):
5992 remove_attribute(Model self, FloatKey attribute_key, ParticleIndex particle)
5993 remove_attribute(Model self, IntKey attribute_key, ParticleIndex particle)
5994 remove_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle)
5995 remove_attribute(Model self, IntsKey attribute_key, ParticleIndex particle)
5996 remove_attribute(Model self, StringKey attribute_key, ParticleIndex particle)
5997 remove_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle)
5998 remove_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle)
5999 remove_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle)
6000 remove_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle)
6002 return _IMP_kernel.Model_remove_attribute(self, *args)
6005 def get_has_attribute(self, *args):
6007 get_has_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> bool
6008 get_has_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> bool
6009 get_has_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle) -> bool
6010 get_has_attribute(Model self, IntsKey attribute_key, ParticleIndex particle) -> bool
6011 get_has_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> bool
6012 get_has_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> bool
6013 get_has_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> bool
6014 get_has_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> bool
6015 get_has_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> bool
6017 return _IMP_kernel.Model_get_has_attribute(self, *args)
6020 def set_attribute(self, *args):
6022 set_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
6023 set_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
6024 set_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle, IMP::Floats value)
6025 set_attribute(Model self, IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
6026 set_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
6027 set_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
6028 set_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
6029 set_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
6030 set_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
6032 return _IMP_kernel.Model_set_attribute(self, *args)
6035 def get_attribute(self, *args):
6037 get_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> IMP::Float
6038 get_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> IMP::Int
6039 get_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle) -> IMP::Floats
6040 get_attribute(Model self, IntsKey attribute_key, ParticleIndex particle) -> IMP::Ints
6041 get_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> IMP::String
6042 get_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> IMP::ParticleIndexes
6043 get_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> ParticleIndex
6044 get_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> Object
6045 get_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> Object
6047 return _IMP_kernel.Model_get_attribute(self, *args)
6050 def add_cache_attribute(self, *args):
6052 add_cache_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
6053 add_cache_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
6054 add_cache_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle, IMP::Floats value)
6055 add_cache_attribute(Model self, IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
6056 add_cache_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
6057 add_cache_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
6058 add_cache_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
6059 add_cache_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
6060 add_cache_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
6062 return _IMP_kernel.Model_add_cache_attribute(self, *args)
6065 def set_is_optimized(self, arg2, arg3, arg4):
6066 """set_is_optimized(Model self, FloatKey arg2, ParticleIndex arg3, bool arg4)"""
6067 return _IMP_kernel.Model_set_is_optimized(self, arg2, arg3, arg4)
6070 def add_to_derivative(self, k, particle, v, da):
6071 """add_to_derivative(Model self, FloatKey k, ParticleIndex particle, double v, DerivativeAccumulator da)"""
6072 return _IMP_kernel.Model_add_to_derivative(self, k, particle, v, da)
6075 def get_particle(self, p):
6076 """get_particle(Model self, ParticleIndex p) -> Particle"""
6077 return _IMP_kernel.Model_get_particle(self, p)
6080 def get_has_particle(self, p):
6081 """get_has_particle(Model self, ParticleIndex p) -> bool"""
6082 return _IMP_kernel.Model_get_has_particle(self, p)
6086 """get_particle_indexes(Model self) -> IMP::ParticleIndexes"""
6087 return _IMP_kernel.Model_get_particle_indexes(self)
6090 def get_model_objects(self):
6091 """get_model_objects(Model self) -> IMP::ModelObjectsTemp"""
6092 return _IMP_kernel.Model_get_model_objects(self)
6095 def remove_particle(self, pi):
6096 """remove_particle(Model self, ParticleIndex pi)"""
6097 return _IMP_kernel.Model_remove_particle(self, pi)
6100 def add_data(self, mk, o):
6101 """add_data(Model self, ModelKey mk, Object o)"""
6102 return _IMP_kernel.Model_add_data(self, mk, o)
6105 def get_data(self, mk):
6106 """get_data(Model self, ModelKey mk) -> Object"""
6107 return _IMP_kernel.Model_get_data(self, mk)
6110 def remove_data(self, mk):
6111 """remove_data(Model self, ModelKey mk)"""
6112 return _IMP_kernel.Model_remove_data(self, mk)
6115 def get_has_data(self, mk):
6116 """get_has_data(Model self, ModelKey mk) -> bool"""
6117 return _IMP_kernel.Model_get_has_data(self, mk)
6121 """get_age(Model self) -> unsigned int"""
6122 return _IMP_kernel.Model_get_age(self)
6125 def get_trigger_last_updated(self, tk):
6126 """get_trigger_last_updated(Model self, TriggerKey tk) -> unsigned int"""
6127 return _IMP_kernel.Model_get_trigger_last_updated(self, tk)
6130 def set_trigger_updated(self, tk):
6131 """set_trigger_updated(Model self, TriggerKey tk)"""
6132 return _IMP_kernel.Model_set_trigger_updated(self, tk)
6135 def get_dependencies_updated(self):
6136 """get_dependencies_updated(Model self) -> unsigned int"""
6137 return _IMP_kernel.Model_get_dependencies_updated(self)
6140 def save_dependencies(self):
6141 """save_dependencies(Model self)"""
6142 return _IMP_kernel.Model_save_dependencies(self)
6145 def restore_dependencies(self):
6146 """restore_dependencies(Model self)"""
6147 return _IMP_kernel.Model_restore_dependencies(self)
6150 def get_particles_size(self):
6151 """get_particles_size(Model self) -> unsigned int"""
6152 return _IMP_kernel.Model_get_particles_size(self)
6155 def get_version_info(self):
6156 """get_version_info(Model self) -> VersionInfo"""
6157 return _IMP_kernel.Model_get_version_info(self)
6160 def do_destroy(self):
6161 """do_destroy(Model self)"""
6162 return _IMP_kernel.Model_do_destroy(self)
6166 """__str__(Model self) -> std::string"""
6167 return _IMP_kernel.Model___str__(self)
6171 """__repr__(Model self) -> std::string"""
6172 return _IMP_kernel.Model___repr__(self)
6177 return _object_cast_to_Model(o)
6181 """Get the model's attribute array for IntKey k as a NumPy array.
6182 The array is indexed by ParticleIndex; particles that don't have
6183 this attribute will either be off the end of the array or will have
6185 This is a NumPy view that shares memory with the Model. Thus,
6186 any changes to values in this list will be reflected in the Model.
6187 Also, if the Model attribute array moves in memory (e.g. if particles
6188 or attributes are added) this array will be invalidated, so it is
6189 unsafe to keep it around long term.
6191 return _get_ints_numpy(self, k, self)
6194 """Get the model's attribute array for FloatKey k as a NumPy array.
6195 See Model::get_ints_numpy() for more details."""
6196 return _get_floats_numpy(self, k, self)
6199 """Get the model's attribute derivatives array for FloatKey k
6200 as a NumPy array. See Model::get_ints_numpy() for more details."""
6201 return _get_derivatives_numpy(self, k, self)
6204 """Get the model's XYZR attribute arrays as NumPy arrays.
6205 The attribute arrays for Cartesian coordinates and radii are
6206 stored separately from those for other FloatKeys. This function
6207 returns a tuple of two NumPy arrays, the first of coordinates and
6208 the second of radii. See Model::get_ints_numpy() for more details."""
6209 return _get_spheres_numpy(self, self)
6212 """Get the model's XYZR attribute derivatives arrays as NumPy arrays.
6213 See Model::get_ints_numpy() for more details."""
6214 return _get_sphere_derivatives_numpy(self, self)
6216 Model_swigregister = _IMP_kernel.Model_swigregister
6217 Model_swigregister(Model)
6220 """Proxy of C++ IMP::Decorator class"""
6221 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6222 __repr__ = _swig_repr
6224 def __init__(self, p):
6225 """__init__(IMP::Decorator self, _ParticleAdaptor p) -> Decorator"""
6226 this = _IMP_kernel.new_Decorator(p)
6228 self.this.append(this)
6232 def __ne__(self, o):
6233 """__ne__(Decorator self, Object o) -> bool"""
6234 return _IMP_kernel.Decorator___ne__(self, o)
6237 def __lt__(self, o):
6238 """__lt__(Decorator self, Object o) -> bool"""
6239 return _IMP_kernel.Decorator___lt__(self, o)
6242 def __gt__(self, o):
6243 """__gt__(Decorator self, Object o) -> bool"""
6244 return _IMP_kernel.Decorator___gt__(self, o)
6247 def __ge__(self, o):
6248 """__ge__(Decorator self, Object o) -> bool"""
6249 return _IMP_kernel.Decorator___ge__(self, o)
6252 def __le__(self, o):
6253 """__le__(Decorator self, Object o) -> bool"""
6254 return _IMP_kernel.Decorator___le__(self, o)
6258 """get_particle(Decorator self) -> Particle"""
6259 return _IMP_kernel.Decorator_get_particle(self)
6262 def get_particle_index(self):
6263 """get_particle_index(Decorator self) -> ParticleIndex"""
6264 return _IMP_kernel.Decorator_get_particle_index(self)
6267 def get_model(self):
6268 """get_model(Decorator self) -> Model"""
6269 return _IMP_kernel.Decorator_get_model(self)
6272 def get_is_valid(self):
6273 """get_is_valid(Decorator self) -> bool"""
6274 return _IMP_kernel.Decorator_get_is_valid(self)
6278 """__hash__(Decorator self) -> std::size_t"""
6279 return _IMP_kernel.Decorator___hash__(self)
6282 def __eq__(self, *args):
6284 __eq__(Decorator self, Object o) -> bool
6285 __eq__(Decorator self, Decorator o) -> bool
6286 __eq__(Decorator self, Particle o) -> bool
6288 return _IMP_kernel.Decorator___eq__(self, *args)
6292 """__bool__(Decorator self) -> bool"""
6293 return _IMP_kernel.Decorator___bool__(self)
6296 __nonzero__ = __bool__
6298 __swig_destroy__ = _IMP_kernel.delete_Decorator
6299 __del__ =
lambda self:
None
6300 Decorator_swigregister = _IMP_kernel.Decorator_swigregister
6301 Decorator_swigregister(Decorator)
6304 def check_particle(m, pi):
6305 """check_particle(Model m, ParticleIndex pi)"""
6306 return _IMP_kernel.check_particle(m, pi)
6308 """Proxy of C++ IMP::UnaryFunction class"""
6309 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6311 def __init__(self, *args):
6313 __init__(IMP::UnaryFunction self, std::string name) -> UnaryFunction
6314 __init__(IMP::UnaryFunction self) -> UnaryFunction
6316 if self.__class__ == UnaryFunction:
6320 this = _IMP_kernel.new_UnaryFunction(_self, *args)
6322 self.this.append(this)
6326 if self.__class__ != UnaryFunction:
6327 _director_objects.register(self)
6332 def evaluate(self, feature):
6333 """evaluate(UnaryFunction self, double feature) -> double"""
6334 return _IMP_kernel.UnaryFunction_evaluate(self, feature)
6337 def evaluate_with_derivative(self, feature):
6338 """evaluate_with_derivative(UnaryFunction self, double feature) -> IMP::DerivativePair"""
6339 return _IMP_kernel.UnaryFunction_evaluate_with_derivative(self, feature)
6341 __swig_destroy__ = _IMP_kernel.delete_UnaryFunction
6342 __del__ =
lambda self:
None
6345 """__str__(UnaryFunction self) -> std::string"""
6346 return _IMP_kernel.UnaryFunction___str__(self)
6350 """__repr__(UnaryFunction self) -> std::string"""
6351 return _IMP_kernel.UnaryFunction___repr__(self)
6356 return _object_cast_to_UnaryFunction(o)
6359 def get_type_name(self):
6360 return self.__class__.__name__
6361 def do_show(self, out):
6365 return VersionInfo(self.__module__,
6372 return _object_cast_to_UnaryFunction(o)
6374 def __disown__(self):
6376 _IMP_kernel.disown_UnaryFunction(self)
6377 return weakref_proxy(self)
6380 """do_destroy(UnaryFunction self)"""
6381 return _IMP_kernel.UnaryFunction_do_destroy(self)
6383 UnaryFunction_swigregister = _IMP_kernel.UnaryFunction_swigregister
6384 UnaryFunction_swigregister(UnaryFunction)
6386 class OptimizerState(ModelObject):
6387 """Proxy of C++ IMP::OptimizerState class"""
6388 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6390 def __init__(self, m, name):
6391 """__init__(IMP::OptimizerState self, Model m, std::string name) -> OptimizerState"""
6392 if self.__class__ == OptimizerState:
6396 this = _IMP_kernel.new_OptimizerState(_self, m, name)
6398 self.this.append(this)
6402 if self.__class__ != OptimizerState:
6403 _director_objects.register(self)
6409 """update(OptimizerState self)"""
6410 return _IMP_kernel.OptimizerState_update(self)
6413 def set_is_optimizing(self, arg0):
6414 """set_is_optimizing(OptimizerState self, bool arg0)"""
6415 return _IMP_kernel.OptimizerState_set_is_optimizing(self, arg0)
6418 def get_optimizer(self):
6419 """get_optimizer(OptimizerState self) -> Optimizer"""
6420 return _IMP_kernel.OptimizerState_get_optimizer(self)
6423 def set_period(self, p):
6424 """set_period(OptimizerState self, unsigned int p)"""
6425 return _IMP_kernel.OptimizerState_set_period(self, p)
6428 def get_period(self):
6429 """get_period(OptimizerState self) -> unsigned int"""
6430 return _IMP_kernel.OptimizerState_get_period(self)
6434 """reset(OptimizerState self)"""
6435 return _IMP_kernel.OptimizerState_reset(self)
6438 def update_always(self):
6439 """update_always(OptimizerState self)"""
6440 return _IMP_kernel.OptimizerState_update_always(self)
6443 def get_number_of_updates(self):
6444 """get_number_of_updates(OptimizerState self) -> unsigned int"""
6445 return _IMP_kernel.OptimizerState_get_number_of_updates(self)
6448 def set_number_of_updates(self, n):
6449 """set_number_of_updates(OptimizerState self, unsigned int n)"""
6450 return _IMP_kernel.OptimizerState_set_number_of_updates(self, n)
6452 __swig_destroy__ = _IMP_kernel.delete_OptimizerState
6453 __del__ =
lambda self:
None
6455 def do_update(self, arg0):
6456 """do_update(OptimizerState self, unsigned int arg0)"""
6457 return _IMP_kernel.OptimizerState_do_update(self, arg0)
6460 def do_set_is_optimizing(self, arg0):
6461 """do_set_is_optimizing(OptimizerState self, bool arg0)"""
6462 return _IMP_kernel.OptimizerState_do_set_is_optimizing(self, arg0)
6465 def do_get_inputs(self):
6466 """do_get_inputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
6467 return _IMP_kernel.OptimizerState_do_get_inputs(self)
6470 def do_get_outputs(self):
6471 """do_get_outputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
6472 return _IMP_kernel.OptimizerState_do_get_outputs(self)
6476 """__str__(OptimizerState self) -> std::string"""
6477 return _IMP_kernel.OptimizerState___str__(self)
6481 """__repr__(OptimizerState self) -> std::string"""
6482 return _IMP_kernel.OptimizerState___repr__(self)
6487 return _object_cast_to_OptimizerState(o)
6490 def get_type_name(self):
6491 return self.__class__.__name__
6492 def do_show(self, out):
6496 return VersionInfo(self.__module__,
6503 return _object_cast_to_OptimizerState(o)
6505 def __disown__(self):
6507 _IMP_kernel.disown_OptimizerState(self)
6508 return weakref_proxy(self)
6511 """do_destroy(OptimizerState self)"""
6512 return _IMP_kernel.OptimizerState_do_destroy(self)
6515 def handle_set_has_required_score_states(self, arg0):
6516 """handle_set_has_required_score_states(OptimizerState self, bool arg0)"""
6517 return _IMP_kernel.OptimizerState_handle_set_has_required_score_states(self, arg0)
6520 def do_get_interactions(self):
6521 """do_get_interactions(OptimizerState self) -> IMP::ModelObjectsTemps"""
6522 return _IMP_kernel.OptimizerState_do_get_interactions(self)
6524 OptimizerState_swigregister = _IMP_kernel.OptimizerState_swigregister
6525 OptimizerState_swigregister(OptimizerState)
6527 class Refiner(_ParticleInputs,
Object):
6528 """Proxy of C++ IMP::Refiner class"""
6529 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6531 def __init__(self, *args):
6533 __init__(IMP::Refiner self, std::string name, bool is_by_ref=False) -> Refiner
6534 __init__(IMP::Refiner self, std::string name) -> Refiner
6535 __init__(IMP::Refiner self) -> Refiner
6537 if self.__class__ == Refiner:
6541 this = _IMP_kernel.new_Refiner(_self, *args)
6543 self.this.append(this)
6547 if self.__class__ != Refiner:
6548 _director_objects.register(self)
6553 def get_can_refine(self, arg0):
6554 """get_can_refine(Refiner self, Particle arg0) -> bool"""
6555 return _IMP_kernel.Refiner_get_can_refine(self, arg0)
6558 def get_refined_indexes(self, m, pi):
6559 """get_refined_indexes(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes"""
6560 return _IMP_kernel.Refiner_get_refined_indexes(self, m, pi)
6563 def get_refined_indexes_by_ref(self, m, pi):
6564 """get_refined_indexes_by_ref(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes const &"""
6565 return _IMP_kernel.Refiner_get_refined_indexes_by_ref(self, m, pi)
6568 def get_is_by_ref_supported(self):
6569 """get_is_by_ref_supported(Refiner self) -> bool"""
6570 return _IMP_kernel.Refiner_get_is_by_ref_supported(self)
6573 def get_refined(self, *args):
6575 get_refined(Refiner self, Particle a) -> IMP::ParticlesTemp const
6576 get_refined(Refiner self, Particle a, unsigned int i) -> Particle
6578 return _IMP_kernel.Refiner_get_refined(self, *args)
6581 def get_number_of_refined(self, a):
6582 """get_number_of_refined(Refiner self, Particle a) -> unsigned int"""
6583 return _IMP_kernel.Refiner_get_number_of_refined(self, a)
6587 """__str__(Refiner self) -> std::string"""
6588 return _IMP_kernel.Refiner___str__(self)
6592 """__repr__(Refiner self) -> std::string"""
6593 return _IMP_kernel.Refiner___repr__(self)
6598 return _object_cast_to_Refiner(o)
6601 def get_type_name(self):
6602 return self.__class__.__name__
6603 def do_show(self, out):
6607 return VersionInfo(self.__module__,
6614 return _object_cast_to_Refiner(o)
6616 __swig_destroy__ = _IMP_kernel.delete_Refiner
6617 __del__ =
lambda self:
None
6618 def __disown__(self):
6620 _IMP_kernel.disown_Refiner(self)
6621 return weakref_proxy(self)
6623 def do_get_inputs(self, m, pis):
6624 """do_get_inputs(Refiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6625 return _IMP_kernel.Refiner_do_get_inputs(self, m, pis)
6629 """do_destroy(Refiner self)"""
6630 return _IMP_kernel.Refiner_do_destroy(self)
6632 Refiner_swigregister = _IMP_kernel.Refiner_swigregister
6633 Refiner_swigregister(Refiner)
6635 class Optimizer(ModelObject):
6636 """Proxy of C++ IMP::Optimizer class"""
6637 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6639 def set_is_optimizing_states(self, tf):
6640 """set_is_optimizing_states(Optimizer self, bool tf)"""
6641 return _IMP_kernel.Optimizer_set_is_optimizing_states(self, tf)
6644 def get_optimizer_state_inputs(self):
6645 """get_optimizer_state_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
6646 return _IMP_kernel.Optimizer_get_optimizer_state_inputs(self)
6649 def do_get_inputs(self):
6650 """do_get_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
6651 return _IMP_kernel.Optimizer_do_get_inputs(self)
6654 def do_get_outputs(self):
6655 """do_get_outputs(Optimizer self) -> IMP::ModelObjectsTemp"""
6656 return _IMP_kernel.Optimizer_do_get_outputs(self)
6659 def __init__(self, *args):
6661 __init__(IMP::Optimizer self, Model m, std::string name) -> Optimizer
6662 __init__(IMP::Optimizer self, Model m) -> Optimizer
6664 if self.__class__ == Optimizer:
6668 this = _IMP_kernel.new_Optimizer(_self, *args)
6670 self.this.append(this)
6674 if self.__class__ != Optimizer:
6675 _director_objects.register(self)
6680 def optimize(self, max_steps):
6681 """optimize(Optimizer self, unsigned int max_steps) -> double"""
6682 return _IMP_kernel.Optimizer_optimize(self, max_steps)
6685 def set_stop_on_good_score(self, tf):
6686 """set_stop_on_good_score(Optimizer self, bool tf)"""
6687 return _IMP_kernel.Optimizer_set_stop_on_good_score(self, tf)
6690 def get_stop_on_good_score(self):
6691 """get_stop_on_good_score(Optimizer self) -> bool"""
6692 return _IMP_kernel.Optimizer_get_stop_on_good_score(self)
6695 def get_last_score(self):
6696 """get_last_score(Optimizer self) -> double"""
6697 return _IMP_kernel.Optimizer_get_last_score(self)
6700 def get_scoring_function(self):
6701 """get_scoring_function(Optimizer self) -> ScoringFunction"""
6702 return _IMP_kernel.Optimizer_get_scoring_function(self)
6705 def remove_optimizer_state(self, d):
6706 """remove_optimizer_state(Optimizer self, OptimizerState d)"""
6707 return _IMP_kernel.Optimizer_remove_optimizer_state(self, d)
6710 def remove_optimizer_states(self, d):
6711 """remove_optimizer_states(Optimizer self, IMP::OptimizerStates const & d)"""
6712 return _IMP_kernel.Optimizer_remove_optimizer_states(self, d)
6715 def set_optimizer_states(self, ps):
6716 """set_optimizer_states(Optimizer self, IMP::OptimizerStates const & ps)"""
6717 return _IMP_kernel.Optimizer_set_optimizer_states(self, ps)
6720 def set_optimizer_states_order(self, objs):
6721 """set_optimizer_states_order(Optimizer self, IMP::OptimizerStates const & objs)"""
6722 return _IMP_kernel.Optimizer_set_optimizer_states_order(self, objs)
6725 def add_optimizer_state(self, obj):
6726 """add_optimizer_state(Optimizer self, OptimizerState obj) -> unsigned int"""
6727 return _IMP_kernel.Optimizer_add_optimizer_state(self, obj)
6730 def add_optimizer_states(self, objs):
6731 """add_optimizer_states(Optimizer self, IMP::OptimizerStates const & objs)"""
6732 return _IMP_kernel.Optimizer_add_optimizer_states(self, objs)
6735 def clear_optimizer_states(self):
6736 """clear_optimizer_states(Optimizer self)"""
6737 return _IMP_kernel.Optimizer_clear_optimizer_states(self)
6740 def get_number_of_optimizer_states(self):
6741 """get_number_of_optimizer_states(Optimizer self) -> unsigned int"""
6742 return _IMP_kernel.Optimizer_get_number_of_optimizer_states(self)
6745 def get_has_optimizer_states(self):
6746 """get_has_optimizer_states(Optimizer self) -> bool"""
6747 return _IMP_kernel.Optimizer_get_has_optimizer_states(self)
6750 def get_optimizer_state(self, i):
6751 """get_optimizer_state(Optimizer self, unsigned int i) -> OptimizerState"""
6752 return _IMP_kernel.Optimizer_get_optimizer_state(self, i)
6755 def get_optimizer_states(self):
6756 """get_optimizer_states(Optimizer self) -> IMP::OptimizerStates"""
6757 return _IMP_kernel.Optimizer_get_optimizer_states(self)
6760 def reserve_optimizer_states(self, sz):
6761 """reserve_optimizer_states(Optimizer self, unsigned int sz)"""
6762 return _IMP_kernel.Optimizer_reserve_optimizer_states(self, sz)
6765 def set_scoring_function(self, sf):
6766 """set_scoring_function(Optimizer self, _ScoringFunctionAdaptor sf)"""
6767 return _IMP_kernel.Optimizer_set_scoring_function(self, sf)
6769 __swig_destroy__ = _IMP_kernel.delete_Optimizer
6771 """__del__(IMP::Optimizer self)"""
6773 _director_objects.cleanup()
6779 def do_optimize(self, ns):
6780 """do_optimize(Optimizer self, unsigned int ns) -> double"""
6781 return _IMP_kernel.Optimizer_do_optimize(self, ns)
6784 def update_states(self):
6785 """update_states(Optimizer self)"""
6786 return _IMP_kernel.Optimizer_update_states(self)
6790 """__str__(Optimizer self) -> std::string"""
6791 return _IMP_kernel.Optimizer___str__(self)
6795 """__repr__(Optimizer self) -> std::string"""
6796 return _IMP_kernel.Optimizer___repr__(self)
6801 return _object_cast_to_Optimizer(o)
6804 def get_type_name(self):
6805 return self.__class__.__name__
6806 def do_show(self, out):
6810 return VersionInfo(self.__module__,
6817 return _object_cast_to_Optimizer(o)
6819 def __disown__(self):
6821 _IMP_kernel.disown_Optimizer(self)
6822 return weakref_proxy(self)
6825 """do_destroy(Optimizer self)"""
6826 return _IMP_kernel.Optimizer_do_destroy(self)
6829 def handle_set_has_required_score_states(self, arg0):
6830 """handle_set_has_required_score_states(Optimizer self, bool arg0)"""
6831 return _IMP_kernel.Optimizer_handle_set_has_required_score_states(self, arg0)
6834 def do_get_interactions(self):
6835 """do_get_interactions(Optimizer self) -> IMP::ModelObjectsTemps"""
6836 return _IMP_kernel.Optimizer_do_get_interactions(self)
6838 Optimizer_swigregister = _IMP_kernel.Optimizer_swigregister
6839 Optimizer_swigregister(Optimizer)
6841 class AttributeOptimizer(Optimizer):
6842 """Proxy of C++ IMP::AttributeOptimizer class"""
6843 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6845 def __init__(self, *args):
6847 __init__(IMP::AttributeOptimizer self, Model m, std::string name) -> AttributeOptimizer
6848 __init__(IMP::AttributeOptimizer self, Model m) -> AttributeOptimizer
6850 if self.__class__ == AttributeOptimizer:
6854 this = _IMP_kernel.new_AttributeOptimizer(_self, *args)
6856 self.this.append(this)
6860 if self.__class__ != AttributeOptimizer:
6861 _director_objects.register(self)
6866 def get_optimized_attributes(self):
6867 """get_optimized_attributes(AttributeOptimizer self) -> IMP::FloatIndexes"""
6868 return _IMP_kernel.AttributeOptimizer_get_optimized_attributes(self)
6871 def set_value(self, fi, v):
6872 """set_value(AttributeOptimizer self, FloatIndex fi, double v)"""
6873 return _IMP_kernel.AttributeOptimizer_set_value(self, fi, v)
6876 def get_value(self, fi):
6877 """get_value(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
6878 return _IMP_kernel.AttributeOptimizer_get_value(self, fi)
6881 def get_derivative(self, fi):
6882 """get_derivative(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
6883 return _IMP_kernel.AttributeOptimizer_get_derivative(self, fi)
6886 def get_width(self, k):
6887 """get_width(AttributeOptimizer self, FloatKey k) -> double"""
6888 return _IMP_kernel.AttributeOptimizer_get_width(self, k)
6891 def set_scaled_value(self, fi, v):
6892 """set_scaled_value(AttributeOptimizer self, FloatIndex fi, IMP::Float v)"""
6893 return _IMP_kernel.AttributeOptimizer_set_scaled_value(self, fi, v)
6896 def get_scaled_value(self, fi):
6897 """get_scaled_value(AttributeOptimizer self, FloatIndex fi) -> double"""
6898 return _IMP_kernel.AttributeOptimizer_get_scaled_value(self, fi)
6901 def get_scaled_derivative(self, fi):
6902 """get_scaled_derivative(AttributeOptimizer self, FloatIndex fi) -> double"""
6903 return _IMP_kernel.AttributeOptimizer_get_scaled_derivative(self, fi)
6906 def clear_range_cache(self):
6907 """clear_range_cache(AttributeOptimizer self)"""
6908 return _IMP_kernel.AttributeOptimizer_clear_range_cache(self)
6912 """__str__(AttributeOptimizer self) -> std::string"""
6913 return _IMP_kernel.AttributeOptimizer___str__(self)
6917 """__repr__(AttributeOptimizer self) -> std::string"""
6918 return _IMP_kernel.AttributeOptimizer___repr__(self)
6923 return _object_cast_to_AttributeOptimizer(o)
6926 def get_type_name(self):
6927 return self.__class__.__name__
6928 def do_show(self, out):
6932 return VersionInfo(self.__module__,
6939 return _object_cast_to_AttributeOptimizer(o)
6941 __swig_destroy__ = _IMP_kernel.delete_AttributeOptimizer
6942 __del__ =
lambda self:
None
6943 def __disown__(self):
6945 _IMP_kernel.disown_AttributeOptimizer(self)
6946 return weakref_proxy(self)
6949 """do_destroy(AttributeOptimizer self)"""
6950 return _IMP_kernel.AttributeOptimizer_do_destroy(self)
6953 def handle_set_has_required_score_states(self, arg0):
6954 """handle_set_has_required_score_states(AttributeOptimizer self, bool arg0)"""
6955 return _IMP_kernel.AttributeOptimizer_handle_set_has_required_score_states(self, arg0)
6958 def do_get_inputs(self):
6959 """do_get_inputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
6960 return _IMP_kernel.AttributeOptimizer_do_get_inputs(self)
6963 def do_get_outputs(self):
6964 """do_get_outputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
6965 return _IMP_kernel.AttributeOptimizer_do_get_outputs(self)
6968 def do_get_interactions(self):
6969 """do_get_interactions(AttributeOptimizer self) -> IMP::ModelObjectsTemps"""
6970 return _IMP_kernel.AttributeOptimizer_do_get_interactions(self)
6973 def do_optimize(self, ns):
6974 """do_optimize(AttributeOptimizer self, unsigned int ns) -> double"""
6975 return _IMP_kernel.AttributeOptimizer_do_optimize(self, ns)
6977 AttributeOptimizer_swigregister = _IMP_kernel.AttributeOptimizer_swigregister
6978 AttributeOptimizer_swigregister(AttributeOptimizer)
6980 class ConfigurationSet(
Object):
6981 """Proxy of C++ IMP::ConfigurationSet class"""
6982 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6984 def __init__(self, *args):
6986 __init__(IMP::ConfigurationSet self, Model m, std::string name) -> ConfigurationSet
6987 __init__(IMP::ConfigurationSet self, Model m) -> ConfigurationSet
6989 this = _IMP_kernel.new_ConfigurationSet(*args)
6991 self.this.append(this)
6995 def save_configuration(self):
6996 """save_configuration(ConfigurationSet self)"""
6997 return _IMP_kernel.ConfigurationSet_save_configuration(self)
7000 def get_number_of_configurations(self):
7001 """get_number_of_configurations(ConfigurationSet self) -> unsigned int"""
7002 return _IMP_kernel.ConfigurationSet_get_number_of_configurations(self)
7005 def load_configuration(self, i):
7006 """load_configuration(ConfigurationSet self, int i)"""
7007 return _IMP_kernel.ConfigurationSet_load_configuration(self, i)
7010 def remove_configuration(self, i):
7011 """remove_configuration(ConfigurationSet self, unsigned int i)"""
7012 return _IMP_kernel.ConfigurationSet_remove_configuration(self, i)
7015 def get_model(self):
7016 """get_model(ConfigurationSet self) -> Model"""
7017 return _IMP_kernel.ConfigurationSet_get_model(self)
7021 """get_version_info(ConfigurationSet self) -> VersionInfo"""
7022 return _IMP_kernel.ConfigurationSet_get_version_info(self)
7026 """__str__(ConfigurationSet self) -> std::string"""
7027 return _IMP_kernel.ConfigurationSet___str__(self)
7031 """__repr__(ConfigurationSet self) -> std::string"""
7032 return _IMP_kernel.ConfigurationSet___repr__(self)
7037 return _object_cast_to_ConfigurationSet(o)
7039 ConfigurationSet_swigregister = _IMP_kernel.ConfigurationSet_swigregister
7040 ConfigurationSet_swigregister(ConfigurationSet)
7042 class SaveToConfigurationSetOptimizerState(OptimizerState):
7043 """Proxy of C++ IMP::SaveToConfigurationSetOptimizerState class"""
7044 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7046 def __init__(self, cs):
7047 """__init__(IMP::SaveToConfigurationSetOptimizerState self, ConfigurationSet cs) -> SaveToConfigurationSetOptimizerState"""
7048 this = _IMP_kernel.new_SaveToConfigurationSetOptimizerState(cs)
7050 self.this.append(this)
7055 """get_version_info(SaveToConfigurationSetOptimizerState self) -> VersionInfo"""
7056 return _IMP_kernel.SaveToConfigurationSetOptimizerState_get_version_info(self)
7060 """__str__(SaveToConfigurationSetOptimizerState self) -> std::string"""
7061 return _IMP_kernel.SaveToConfigurationSetOptimizerState___str__(self)
7065 """__repr__(SaveToConfigurationSetOptimizerState self) -> std::string"""
7066 return _IMP_kernel.SaveToConfigurationSetOptimizerState___repr__(self)
7071 return _object_cast_to_SaveToConfigurationSetOptimizerState(o)
7073 SaveToConfigurationSetOptimizerState_swigregister = _IMP_kernel.SaveToConfigurationSetOptimizerState_swigregister
7074 SaveToConfigurationSetOptimizerState_swigregister(SaveToConfigurationSetOptimizerState)
7076 class Configuration(
Object):
7077 """Proxy of C++ IMP::Configuration class"""
7078 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7080 def __init__(self, *args):
7082 __init__(IMP::Configuration self, Model m, std::string name) -> Configuration
7083 __init__(IMP::Configuration self, Model m) -> Configuration
7084 __init__(IMP::Configuration self, Model m, Configuration base, std::string name) -> Configuration
7085 __init__(IMP::Configuration self, Model m, Configuration base) -> Configuration
7087 this = _IMP_kernel.new_Configuration(*args)
7089 self.this.append(this)
7093 def load_configuration(self):
7094 """load_configuration(Configuration self)"""
7095 return _IMP_kernel.Configuration_load_configuration(self)
7098 def swap_configuration(self):
7099 """swap_configuration(Configuration self)"""
7100 return _IMP_kernel.Configuration_swap_configuration(self)
7104 """get_version_info(Configuration self) -> VersionInfo"""
7105 return _IMP_kernel.Configuration_get_version_info(self)
7109 """__str__(Configuration self) -> std::string"""
7110 return _IMP_kernel.Configuration___str__(self)
7114 """__repr__(Configuration self) -> std::string"""
7115 return _IMP_kernel.Configuration___repr__(self)
7120 return _object_cast_to_Configuration(o)
7122 Configuration_swigregister = _IMP_kernel.Configuration_swigregister
7123 Configuration_swigregister(Configuration)
7126 """Proxy of C++ IMP::Sampler class"""
7127 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7129 def __init__(self, *args):
7131 __init__(IMP::Sampler self, Model m, std::string name) -> Sampler
7132 __init__(IMP::Sampler self, Model m) -> Sampler
7134 if self.__class__ == Sampler:
7138 this = _IMP_kernel.new_Sampler(_self, *args)
7140 self.this.append(this)
7144 if self.__class__ != Sampler:
7145 _director_objects.register(self)
7150 def create_sample(self):
7151 """create_sample(Sampler self) -> ConfigurationSet"""
7152 return _IMP_kernel.Sampler_create_sample(self)
7155 def get_scoring_function(self):
7156 """get_scoring_function(Sampler self) -> ScoringFunction"""
7157 return _IMP_kernel.Sampler_get_scoring_function(self)
7160 def set_scoring_function(self, sf):
7161 """set_scoring_function(Sampler self, _ScoringFunctionAdaptor sf)"""
7162 return _IMP_kernel.Sampler_set_scoring_function(self, sf)
7165 def get_model(self):
7166 """get_model(Sampler self) -> Model"""
7167 return _IMP_kernel.Sampler_get_model(self)
7170 def do_sample(self):
7171 """do_sample(Sampler self) -> ConfigurationSet"""
7172 return _IMP_kernel.Sampler_do_sample(self)
7174 __swig_destroy__ = _IMP_kernel.delete_Sampler
7175 __del__ =
lambda self:
None
7178 """__str__(Sampler self) -> std::string"""
7179 return _IMP_kernel.Sampler___str__(self)
7183 """__repr__(Sampler self) -> std::string"""
7184 return _IMP_kernel.Sampler___repr__(self)
7189 return _object_cast_to_Sampler(o)
7192 def get_type_name(self):
7193 return self.__class__.__name__
7194 def do_show(self, out):
7198 return VersionInfo(self.__module__,
7205 return _object_cast_to_Sampler(o)
7207 def __disown__(self):
7209 _IMP_kernel.disown_Sampler(self)
7210 return weakref_proxy(self)
7213 """do_destroy(Sampler self)"""
7214 return _IMP_kernel.Sampler_do_destroy(self)
7216 Sampler_swigregister = _IMP_kernel.Sampler_swigregister
7217 Sampler_swigregister(Sampler)
7219 class PairModifier(_ParticleInputs, _ParticleOutputs,
Object):
7220 """Proxy of C++ IMP::PairModifier class"""
7221 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7223 def __init__(self, *args):
7225 __init__(IMP::PairModifier self, std::string name) -> PairModifier
7226 __init__(IMP::PairModifier self) -> PairModifier
7228 if self.__class__ == PairModifier:
7232 this = _IMP_kernel.new_PairModifier(_self, *args)
7234 self.this.append(this)
7238 if self.__class__ != PairModifier:
7239 _director_objects.register(self)
7244 def apply_index(self, m, v):
7245 """apply_index(PairModifier self, Model m, IMP::ParticleIndexPair const & v)"""
7246 return _IMP_kernel.PairModifier_apply_index(self, m, v)
7249 def apply_indexes(self, m, o, lower_bound, upper_bound):
7250 """apply_indexes(PairModifier self, Model m, IMP::ParticleIndexPairs const & o, unsigned int lower_bound, unsigned int upper_bound)"""
7251 return _IMP_kernel.PairModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
7254 def apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis):
7255 """apply_indexes_moved(PairModifier self, Model m, IMP::ParticleIndexPairs const & o, unsigned int lower_bound, unsigned int upper_bound, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
7256 return _IMP_kernel.PairModifier_apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis)
7260 """__str__(PairModifier self) -> std::string"""
7261 return _IMP_kernel.PairModifier___str__(self)
7265 """__repr__(PairModifier self) -> std::string"""
7266 return _IMP_kernel.PairModifier___repr__(self)
7271 return _object_cast_to_PairModifier(o)
7274 def get_type_name(self):
7275 return self.__class__.__name__
7276 def do_show(self, out):
7280 return VersionInfo(self.__module__,
7287 return _object_cast_to_PairModifier(o)
7289 __swig_destroy__ = _IMP_kernel.delete_PairModifier
7290 __del__ =
lambda self:
None
7291 def __disown__(self):
7293 _IMP_kernel.disown_PairModifier(self)
7294 return weakref_proxy(self)
7296 def do_get_inputs(self, m, pis):
7297 """do_get_inputs(PairModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7298 return _IMP_kernel.PairModifier_do_get_inputs(self, m, pis)
7301 def do_get_outputs(self, m, pis):
7302 """do_get_outputs(PairModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7303 return _IMP_kernel.PairModifier_do_get_outputs(self, m, pis)
7307 """do_destroy(PairModifier self)"""
7308 return _IMP_kernel.PairModifier_do_destroy(self)
7310 PairModifier_swigregister = _IMP_kernel.PairModifier_swigregister
7311 PairModifier_swigregister(PairModifier)
7313 class PairScore(_ParticleInputs,
Object):
7314 """Proxy of C++ IMP::PairScore class"""
7315 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7317 def __init__(self, *args):
7319 __init__(IMP::PairScore self, std::string name) -> PairScore
7320 __init__(IMP::PairScore self) -> PairScore
7322 if self.__class__ == PairScore:
7326 this = _IMP_kernel.new_PairScore(_self, *args)
7328 self.this.append(this)
7332 if self.__class__ != PairScore:
7333 _director_objects.register(self)
7338 def evaluate_index(self, m, vt, da):
7339 """evaluate_index(PairScore self, Model m, IMP::ParticleIndexPair const & vt, DerivativeAccumulator da) -> double"""
7340 return _IMP_kernel.PairScore_evaluate_index(self, m, vt, da)
7343 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
7344 """evaluate_indexes(PairScore self, Model m, IMP::ParticleIndexPairs const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7345 return _IMP_kernel.PairScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
7348 def evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score):
7349 """evaluate_indexes_scores(PairScore self, Model m, IMP::ParticleIndexPairs const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score) -> double"""
7350 return _IMP_kernel.PairScore_evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score)
7353 def evaluate_indexes_delta(self, m, o, da, indexes, score):
7354 """evaluate_indexes_delta(PairScore self, Model m, IMP::ParticleIndexPairs const & o, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score) -> double"""
7355 return _IMP_kernel.PairScore_evaluate_indexes_delta(self, m, o, da, indexes, score)
7358 def evaluate_if_good_index(self, m, vt, da, max):
7359 """evaluate_if_good_index(PairScore self, Model m, IMP::ParticleIndexPair const & vt, DerivativeAccumulator da, double max) -> double"""
7360 return _IMP_kernel.PairScore_evaluate_if_good_index(self, m, vt, da, max)
7363 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
7364 """evaluate_if_good_indexes(PairScore self, Model m, IMP::ParticleIndexPairs const & o, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7365 return _IMP_kernel.PairScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
7368 def create_current_decomposition(self, m, vt):
7369 """create_current_decomposition(PairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
7370 return _IMP_kernel.PairScore_create_current_decomposition(self, m, vt)
7373 def do_create_current_decomposition(self, m, vt):
7374 """do_create_current_decomposition(PairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
7375 return _IMP_kernel.PairScore_do_create_current_decomposition(self, m, vt)
7377 __swig_destroy__ = _IMP_kernel.delete_PairScore
7378 __del__ =
lambda self:
None
7381 """__str__(PairScore self) -> std::string"""
7382 return _IMP_kernel.PairScore___str__(self)
7386 """__repr__(PairScore self) -> std::string"""
7387 return _IMP_kernel.PairScore___repr__(self)
7392 return _object_cast_to_PairScore(o)
7395 def get_type_name(self):
7396 return self.__class__.__name__
7397 def do_show(self, out):
7401 return VersionInfo(self.__module__,
7408 return _object_cast_to_PairScore(o)
7410 def __disown__(self):
7412 _IMP_kernel.disown_PairScore(self)
7413 return weakref_proxy(self)
7415 def do_get_inputs(self, m, pis):
7416 """do_get_inputs(PairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7417 return _IMP_kernel.PairScore_do_get_inputs(self, m, pis)
7421 """do_destroy(PairScore self)"""
7422 return _IMP_kernel.PairScore_do_destroy(self)
7424 PairScore_swigregister = _IMP_kernel.PairScore_swigregister
7425 PairScore_swigregister(PairScore)
7427 class PairPredicate(_ParticleInputs,
Object):
7428 """Proxy of C++ IMP::PairPredicate class"""
7429 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7431 def __init__(self, *args):
7433 __init__(IMP::PairPredicate self, std::string name) -> PairPredicate
7434 __init__(IMP::PairPredicate self) -> PairPredicate
7436 if self.__class__ == PairPredicate:
7440 this = _IMP_kernel.new_PairPredicate(_self, *args)
7442 self.this.append(this)
7446 if self.__class__ != PairPredicate:
7447 _director_objects.register(self)
7452 def setup_for_get_value_index_in_batch(self, arg0):
7453 """setup_for_get_value_index_in_batch(PairPredicate self, Model arg0)"""
7454 return _IMP_kernel.PairPredicate_setup_for_get_value_index_in_batch(self, arg0)
7457 def get_value_index_in_batch(self, m, vt):
7458 """get_value_index_in_batch(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int"""
7459 return _IMP_kernel.PairPredicate_get_value_index_in_batch(self, m, vt)
7462 def __call__(self, m, vt):
7463 """__call__(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int"""
7464 return _IMP_kernel.PairPredicate___call__(self, m, vt)
7467 def get_value_index(self, *args):
7469 get_value_index(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int
7470 get_value_index(PairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
7472 return _IMP_kernel.PairPredicate_get_value_index(self, *args)
7474 __swig_destroy__ = _IMP_kernel.delete_PairPredicate
7475 __del__ =
lambda self:
None
7478 """__str__(PairPredicate self) -> std::string"""
7479 return _IMP_kernel.PairPredicate___str__(self)
7483 """__repr__(PairPredicate self) -> std::string"""
7484 return _IMP_kernel.PairPredicate___repr__(self)
7489 return _object_cast_to_PairPredicate(o)
7492 def get_type_name(self):
7493 return self.__class__.__name__
7494 def do_show(self, out):
7498 return VersionInfo(self.__module__,
7505 return _object_cast_to_PairPredicate(o)
7507 def __disown__(self):
7509 _IMP_kernel.disown_PairPredicate(self)
7510 return weakref_proxy(self)
7512 def do_get_inputs(self, m, pis):
7513 """do_get_inputs(PairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7514 return _IMP_kernel.PairPredicate_do_get_inputs(self, m, pis)
7518 """do_destroy(PairPredicate self)"""
7519 return _IMP_kernel.PairPredicate_do_destroy(self)
7521 PairPredicate_swigregister = _IMP_kernel.PairPredicate_swigregister
7522 PairPredicate_swigregister(PairPredicate)
7524 class PairContainer(Container):
7525 """Proxy of C++ IMP::PairContainer class"""
7526 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7528 def apply_generic(self, m):
7529 """apply_generic(PairContainer self, PairModifier m)"""
7530 return _IMP_kernel.PairContainer_apply_generic(self, m)
7533 def apply_generic_moved(self, m, moved_pis, reset_pis):
7534 """apply_generic_moved(PairContainer self, PairModifier m, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
7535 return _IMP_kernel.PairContainer_apply_generic_moved(self, m, moved_pis, reset_pis)
7538 def apply(self, sm):
7539 """apply(PairContainer self, PairModifier sm)"""
7540 return _IMP_kernel.PairContainer_apply(self, sm)
7543 def apply_moved(self, sm, moved_pis, reset_pis):
7544 """apply_moved(PairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
7545 return _IMP_kernel.PairContainer_apply_moved(self, sm, moved_pis, reset_pis)
7548 def get_range_indexes(self):
7549 """get_range_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
7550 return _IMP_kernel.PairContainer_get_range_indexes(self)
7553 def get_contents(self):
7554 """get_contents(PairContainer self) -> IMP::ParticleIndexPairs const &"""
7555 return _IMP_kernel.PairContainer_get_contents(self)
7559 """get_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
7560 return _IMP_kernel.PairContainer_get_indexes(self)
7563 def get(self, *args):
7565 get(PairContainer self) -> IMP::ParticlePairsTemp
7566 get(PairContainer self, unsigned int i) -> IMP::ParticlePair
7568 return _IMP_kernel.PairContainer_get(self, *args)
7571 def get_number(self):
7572 """get_number(PairContainer self) -> unsigned int"""
7573 return _IMP_kernel.PairContainer_get_number(self)
7576 def __init__(self, *args):
7578 __init__(IMP::PairContainer self, Model m, std::string name) -> PairContainer
7579 __init__(IMP::PairContainer self, Model m) -> PairContainer
7581 if self.__class__ == PairContainer:
7585 this = _IMP_kernel.new_PairContainer(_self, *args)
7587 self.this.append(this)
7591 if self.__class__ != PairContainer:
7592 _director_objects.register(self)
7597 def do_apply(self, sm):
7598 """do_apply(PairContainer self, PairModifier sm)"""
7599 return _IMP_kernel.PairContainer_do_apply(self, sm)
7602 def do_apply_moved(self, sm, moved_pis, reset_pis):
7603 """do_apply_moved(PairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
7604 return _IMP_kernel.PairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
7607 def do_get_provides_access(self):
7608 """do_get_provides_access(PairContainer self) -> bool"""
7609 return _IMP_kernel.PairContainer_do_get_provides_access(self)
7611 __swig_destroy__ = _IMP_kernel.delete_PairContainer
7612 __del__ =
lambda self:
None
7615 """__str__(PairContainer self) -> std::string"""
7616 return _IMP_kernel.PairContainer___str__(self)
7620 """__repr__(PairContainer self) -> std::string"""
7621 return _IMP_kernel.PairContainer___repr__(self)
7626 return _object_cast_to_PairContainer(o)
7629 def get_type_name(self):
7630 return self.__class__.__name__
7631 def do_show(self, out):
7635 return VersionInfo(self.__module__,
7642 return _object_cast_to_PairContainer(o)
7644 def __disown__(self):
7646 _IMP_kernel.disown_PairContainer(self)
7647 return weakref_proxy(self)
7650 """do_destroy(PairContainer self)"""
7651 return _IMP_kernel.PairContainer_do_destroy(self)
7654 def handle_set_has_required_score_states(self, arg0):
7655 """handle_set_has_required_score_states(PairContainer self, bool arg0)"""
7656 return _IMP_kernel.PairContainer_handle_set_has_required_score_states(self, arg0)
7659 def do_get_inputs(self):
7660 """do_get_inputs(PairContainer self) -> IMP::ModelObjectsTemp"""
7661 return _IMP_kernel.PairContainer_do_get_inputs(self)
7664 def do_get_interactions(self):
7665 """do_get_interactions(PairContainer self) -> IMP::ModelObjectsTemps"""
7666 return _IMP_kernel.PairContainer_do_get_interactions(self)
7669 def do_get_contents_hash(self):
7670 """do_get_contents_hash(PairContainer self) -> std::size_t"""
7671 return _IMP_kernel.PairContainer_do_get_contents_hash(self)
7673 PairContainer_swigregister = _IMP_kernel.PairContainer_swigregister
7674 PairContainer_swigregister(PairContainer)
7676 class _PairContainerAdaptor(_InputAdaptor):
7677 """Proxy of C++ IMP::PairContainerAdaptor class"""
7678 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7679 __repr__ = _swig_repr
7681 def __init__(self, *args):
7683 __init__(IMP::PairContainerAdaptor self) -> _PairContainerAdaptor
7684 __init__(IMP::PairContainerAdaptor self, PairContainer c) -> _PairContainerAdaptor
7685 __init__(IMP::PairContainerAdaptor self, IMP::ParticlePairsTemp const & t) -> _PairContainerAdaptor
7687 this = _IMP_kernel.new__PairContainerAdaptor(*args)
7689 self.this.append(this)
7693 def set_name_if_default(self, name):
7694 """set_name_if_default(_PairContainerAdaptor self, std::string name)"""
7695 return _IMP_kernel._PairContainerAdaptor_set_name_if_default(self, name)
7697 __swig_destroy__ = _IMP_kernel.delete__PairContainerAdaptor
7698 __del__ =
lambda self:
None
7699 _PairContainerAdaptor_swigregister = _IMP_kernel._PairContainerAdaptor_swigregister
7700 _PairContainerAdaptor_swigregister(_PairContainerAdaptor)
7702 class QuadModifier(_ParticleInputs, _ParticleOutputs,
Object):
7703 """Proxy of C++ IMP::QuadModifier class"""
7704 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7706 def __init__(self, *args):
7708 __init__(IMP::QuadModifier self, std::string name) -> QuadModifier
7709 __init__(IMP::QuadModifier self) -> QuadModifier
7711 if self.__class__ == QuadModifier:
7715 this = _IMP_kernel.new_QuadModifier(_self, *args)
7717 self.this.append(this)
7721 if self.__class__ != QuadModifier:
7722 _director_objects.register(self)
7727 def apply_index(self, m, v):
7728 """apply_index(QuadModifier self, Model m, IMP::ParticleIndexQuad const & v)"""
7729 return _IMP_kernel.QuadModifier_apply_index(self, m, v)
7732 def apply_indexes(self, m, o, lower_bound, upper_bound):
7733 """apply_indexes(QuadModifier self, Model m, IMP::ParticleIndexQuads const & o, unsigned int lower_bound, unsigned int upper_bound)"""
7734 return _IMP_kernel.QuadModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
7737 def apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis):
7738 """apply_indexes_moved(QuadModifier self, Model m, IMP::ParticleIndexQuads const & o, unsigned int lower_bound, unsigned int upper_bound, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
7739 return _IMP_kernel.QuadModifier_apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis)
7743 """__str__(QuadModifier self) -> std::string"""
7744 return _IMP_kernel.QuadModifier___str__(self)
7748 """__repr__(QuadModifier self) -> std::string"""
7749 return _IMP_kernel.QuadModifier___repr__(self)
7754 return _object_cast_to_QuadModifier(o)
7757 def get_type_name(self):
7758 return self.__class__.__name__
7759 def do_show(self, out):
7763 return VersionInfo(self.__module__,
7770 return _object_cast_to_QuadModifier(o)
7772 __swig_destroy__ = _IMP_kernel.delete_QuadModifier
7773 __del__ =
lambda self:
None
7774 def __disown__(self):
7776 _IMP_kernel.disown_QuadModifier(self)
7777 return weakref_proxy(self)
7779 def do_get_inputs(self, m, pis):
7780 """do_get_inputs(QuadModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7781 return _IMP_kernel.QuadModifier_do_get_inputs(self, m, pis)
7784 def do_get_outputs(self, m, pis):
7785 """do_get_outputs(QuadModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7786 return _IMP_kernel.QuadModifier_do_get_outputs(self, m, pis)
7790 """do_destroy(QuadModifier self)"""
7791 return _IMP_kernel.QuadModifier_do_destroy(self)
7793 QuadModifier_swigregister = _IMP_kernel.QuadModifier_swigregister
7794 QuadModifier_swigregister(QuadModifier)
7796 class QuadScore(_ParticleInputs,
Object):
7797 """Proxy of C++ IMP::QuadScore class"""
7798 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7800 def __init__(self, *args):
7802 __init__(IMP::QuadScore self, std::string name) -> QuadScore
7803 __init__(IMP::QuadScore self) -> QuadScore
7805 if self.__class__ == QuadScore:
7809 this = _IMP_kernel.new_QuadScore(_self, *args)
7811 self.this.append(this)
7815 if self.__class__ != QuadScore:
7816 _director_objects.register(self)
7821 def evaluate_index(self, m, vt, da):
7822 """evaluate_index(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt, DerivativeAccumulator da) -> double"""
7823 return _IMP_kernel.QuadScore_evaluate_index(self, m, vt, da)
7826 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
7827 """evaluate_indexes(QuadScore self, Model m, IMP::ParticleIndexQuads const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7828 return _IMP_kernel.QuadScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
7831 def evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score):
7832 """evaluate_indexes_scores(QuadScore self, Model m, IMP::ParticleIndexQuads const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score) -> double"""
7833 return _IMP_kernel.QuadScore_evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score)
7836 def evaluate_indexes_delta(self, m, o, da, indexes, score):
7837 """evaluate_indexes_delta(QuadScore self, Model m, IMP::ParticleIndexQuads const & o, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score) -> double"""
7838 return _IMP_kernel.QuadScore_evaluate_indexes_delta(self, m, o, da, indexes, score)
7841 def evaluate_if_good_index(self, m, vt, da, max):
7842 """evaluate_if_good_index(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt, DerivativeAccumulator da, double max) -> double"""
7843 return _IMP_kernel.QuadScore_evaluate_if_good_index(self, m, vt, da, max)
7846 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
7847 """evaluate_if_good_indexes(QuadScore self, Model m, IMP::ParticleIndexQuads const & o, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7848 return _IMP_kernel.QuadScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
7851 def create_current_decomposition(self, m, vt):
7852 """create_current_decomposition(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
7853 return _IMP_kernel.QuadScore_create_current_decomposition(self, m, vt)
7856 def do_create_current_decomposition(self, m, vt):
7857 """do_create_current_decomposition(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
7858 return _IMP_kernel.QuadScore_do_create_current_decomposition(self, m, vt)
7860 __swig_destroy__ = _IMP_kernel.delete_QuadScore
7861 __del__ =
lambda self:
None
7864 """__str__(QuadScore self) -> std::string"""
7865 return _IMP_kernel.QuadScore___str__(self)
7869 """__repr__(QuadScore self) -> std::string"""
7870 return _IMP_kernel.QuadScore___repr__(self)
7875 return _object_cast_to_QuadScore(o)
7878 def get_type_name(self):
7879 return self.__class__.__name__
7880 def do_show(self, out):
7884 return VersionInfo(self.__module__,
7891 return _object_cast_to_QuadScore(o)
7893 def __disown__(self):
7895 _IMP_kernel.disown_QuadScore(self)
7896 return weakref_proxy(self)
7898 def do_get_inputs(self, m, pis):
7899 """do_get_inputs(QuadScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7900 return _IMP_kernel.QuadScore_do_get_inputs(self, m, pis)
7904 """do_destroy(QuadScore self)"""
7905 return _IMP_kernel.QuadScore_do_destroy(self)
7907 QuadScore_swigregister = _IMP_kernel.QuadScore_swigregister
7908 QuadScore_swigregister(QuadScore)
7910 class QuadPredicate(_ParticleInputs,
Object):
7911 """Proxy of C++ IMP::QuadPredicate class"""
7912 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7914 def __init__(self, *args):
7916 __init__(IMP::QuadPredicate self, std::string name) -> QuadPredicate
7917 __init__(IMP::QuadPredicate self) -> QuadPredicate
7919 if self.__class__ == QuadPredicate:
7923 this = _IMP_kernel.new_QuadPredicate(_self, *args)
7925 self.this.append(this)
7929 if self.__class__ != QuadPredicate:
7930 _director_objects.register(self)
7935 def setup_for_get_value_index_in_batch(self, arg0):
7936 """setup_for_get_value_index_in_batch(QuadPredicate self, Model arg0)"""
7937 return _IMP_kernel.QuadPredicate_setup_for_get_value_index_in_batch(self, arg0)
7940 def get_value_index_in_batch(self, m, vt):
7941 """get_value_index_in_batch(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int"""
7942 return _IMP_kernel.QuadPredicate_get_value_index_in_batch(self, m, vt)
7945 def __call__(self, m, vt):
7946 """__call__(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int"""
7947 return _IMP_kernel.QuadPredicate___call__(self, m, vt)
7950 def get_value_index(self, *args):
7952 get_value_index(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int
7953 get_value_index(QuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
7955 return _IMP_kernel.QuadPredicate_get_value_index(self, *args)
7957 __swig_destroy__ = _IMP_kernel.delete_QuadPredicate
7958 __del__ =
lambda self:
None
7961 """__str__(QuadPredicate self) -> std::string"""
7962 return _IMP_kernel.QuadPredicate___str__(self)
7966 """__repr__(QuadPredicate self) -> std::string"""
7967 return _IMP_kernel.QuadPredicate___repr__(self)
7972 return _object_cast_to_QuadPredicate(o)
7975 def get_type_name(self):
7976 return self.__class__.__name__
7977 def do_show(self, out):
7981 return VersionInfo(self.__module__,
7988 return _object_cast_to_QuadPredicate(o)
7990 def __disown__(self):
7992 _IMP_kernel.disown_QuadPredicate(self)
7993 return weakref_proxy(self)
7995 def do_get_inputs(self, m, pis):
7996 """do_get_inputs(QuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7997 return _IMP_kernel.QuadPredicate_do_get_inputs(self, m, pis)
8001 """do_destroy(QuadPredicate self)"""
8002 return _IMP_kernel.QuadPredicate_do_destroy(self)
8004 QuadPredicate_swigregister = _IMP_kernel.QuadPredicate_swigregister
8005 QuadPredicate_swigregister(QuadPredicate)
8007 class QuadContainer(Container):
8008 """Proxy of C++ IMP::QuadContainer class"""
8009 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8011 def apply_generic(self, m):
8012 """apply_generic(QuadContainer self, QuadModifier m)"""
8013 return _IMP_kernel.QuadContainer_apply_generic(self, m)
8016 def apply_generic_moved(self, m, moved_pis, reset_pis):
8017 """apply_generic_moved(QuadContainer self, QuadModifier m, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
8018 return _IMP_kernel.QuadContainer_apply_generic_moved(self, m, moved_pis, reset_pis)
8021 def apply(self, sm):
8022 """apply(QuadContainer self, QuadModifier sm)"""
8023 return _IMP_kernel.QuadContainer_apply(self, sm)
8026 def apply_moved(self, sm, moved_pis, reset_pis):
8027 """apply_moved(QuadContainer self, QuadModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
8028 return _IMP_kernel.QuadContainer_apply_moved(self, sm, moved_pis, reset_pis)
8031 def get_range_indexes(self):
8032 """get_range_indexes(QuadContainer self) -> IMP::ParticleIndexQuads"""
8033 return _IMP_kernel.QuadContainer_get_range_indexes(self)
8036 def get_contents(self):
8037 """get_contents(QuadContainer self) -> IMP::ParticleIndexQuads const &"""
8038 return _IMP_kernel.QuadContainer_get_contents(self)
8042 """get_indexes(QuadContainer self) -> IMP::ParticleIndexQuads"""
8043 return _IMP_kernel.QuadContainer_get_indexes(self)
8046 def get(self, *args):
8048 get(QuadContainer self) -> IMP::ParticleQuadsTemp
8049 get(QuadContainer self, unsigned int i) -> IMP::ParticleQuad
8051 return _IMP_kernel.QuadContainer_get(self, *args)
8054 def get_number(self):
8055 """get_number(QuadContainer self) -> unsigned int"""
8056 return _IMP_kernel.QuadContainer_get_number(self)
8059 def __init__(self, *args):
8061 __init__(IMP::QuadContainer self, Model m, std::string name) -> QuadContainer
8062 __init__(IMP::QuadContainer self, Model m) -> QuadContainer
8064 if self.__class__ == QuadContainer:
8068 this = _IMP_kernel.new_QuadContainer(_self, *args)
8070 self.this.append(this)
8074 if self.__class__ != QuadContainer:
8075 _director_objects.register(self)
8080 def do_apply(self, sm):
8081 """do_apply(QuadContainer self, QuadModifier sm)"""
8082 return _IMP_kernel.QuadContainer_do_apply(self, sm)
8085 def do_apply_moved(self, sm, moved_pis, reset_pis):
8086 """do_apply_moved(QuadContainer self, QuadModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
8087 return _IMP_kernel.QuadContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
8090 def do_get_provides_access(self):
8091 """do_get_provides_access(QuadContainer self) -> bool"""
8092 return _IMP_kernel.QuadContainer_do_get_provides_access(self)
8094 __swig_destroy__ = _IMP_kernel.delete_QuadContainer
8095 __del__ =
lambda self:
None
8098 """__str__(QuadContainer self) -> std::string"""
8099 return _IMP_kernel.QuadContainer___str__(self)
8103 """__repr__(QuadContainer self) -> std::string"""
8104 return _IMP_kernel.QuadContainer___repr__(self)
8109 return _object_cast_to_QuadContainer(o)
8112 def get_type_name(self):
8113 return self.__class__.__name__
8114 def do_show(self, out):
8118 return VersionInfo(self.__module__,
8125 return _object_cast_to_QuadContainer(o)
8127 def __disown__(self):
8129 _IMP_kernel.disown_QuadContainer(self)
8130 return weakref_proxy(self)
8133 """do_destroy(QuadContainer self)"""
8134 return _IMP_kernel.QuadContainer_do_destroy(self)
8137 def handle_set_has_required_score_states(self, arg0):
8138 """handle_set_has_required_score_states(QuadContainer self, bool arg0)"""
8139 return _IMP_kernel.QuadContainer_handle_set_has_required_score_states(self, arg0)
8142 def do_get_inputs(self):
8143 """do_get_inputs(QuadContainer self) -> IMP::ModelObjectsTemp"""
8144 return _IMP_kernel.QuadContainer_do_get_inputs(self)
8147 def do_get_interactions(self):
8148 """do_get_interactions(QuadContainer self) -> IMP::ModelObjectsTemps"""
8149 return _IMP_kernel.QuadContainer_do_get_interactions(self)
8152 def do_get_contents_hash(self):
8153 """do_get_contents_hash(QuadContainer self) -> std::size_t"""
8154 return _IMP_kernel.QuadContainer_do_get_contents_hash(self)
8156 QuadContainer_swigregister = _IMP_kernel.QuadContainer_swigregister
8157 QuadContainer_swigregister(QuadContainer)
8159 class _QuadContainerAdaptor(_InputAdaptor):
8160 """Proxy of C++ IMP::QuadContainerAdaptor class"""
8161 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8162 __repr__ = _swig_repr
8164 def __init__(self, *args):
8166 __init__(IMP::QuadContainerAdaptor self) -> _QuadContainerAdaptor
8167 __init__(IMP::QuadContainerAdaptor self, QuadContainer c) -> _QuadContainerAdaptor
8168 __init__(IMP::QuadContainerAdaptor self, IMP::ParticleQuadsTemp const & t) -> _QuadContainerAdaptor
8170 this = _IMP_kernel.new__QuadContainerAdaptor(*args)
8172 self.this.append(this)
8176 def set_name_if_default(self, name):
8177 """set_name_if_default(_QuadContainerAdaptor self, std::string name)"""
8178 return _IMP_kernel._QuadContainerAdaptor_set_name_if_default(self, name)
8180 __swig_destroy__ = _IMP_kernel.delete__QuadContainerAdaptor
8181 __del__ =
lambda self:
None
8182 _QuadContainerAdaptor_swigregister = _IMP_kernel._QuadContainerAdaptor_swigregister
8183 _QuadContainerAdaptor_swigregister(_QuadContainerAdaptor)
8185 class SingletonModifier(_ParticleInputs, _ParticleOutputs,
Object):
8186 """Proxy of C++ IMP::SingletonModifier class"""
8187 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8189 def __init__(self, *args):
8191 __init__(IMP::SingletonModifier self, std::string name) -> SingletonModifier
8192 __init__(IMP::SingletonModifier self) -> SingletonModifier
8194 if self.__class__ == SingletonModifier:
8198 this = _IMP_kernel.new_SingletonModifier(_self, *args)
8200 self.this.append(this)
8204 if self.__class__ != SingletonModifier:
8205 _director_objects.register(self)
8210 def apply_index(self, m, v):
8211 """apply_index(SingletonModifier self, Model m, ParticleIndex v)"""
8212 return _IMP_kernel.SingletonModifier_apply_index(self, m, v)
8215 def apply_indexes(self, m, o, lower_bound, upper_bound):
8216 """apply_indexes(SingletonModifier self, Model m, IMP::ParticleIndexes const & o, unsigned int lower_bound, unsigned int upper_bound)"""
8217 return _IMP_kernel.SingletonModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
8220 def apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis):
8221 """apply_indexes_moved(SingletonModifier self, Model m, IMP::ParticleIndexes const & o, unsigned int lower_bound, unsigned int upper_bound, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
8222 return _IMP_kernel.SingletonModifier_apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis)
8226 """__str__(SingletonModifier self) -> std::string"""
8227 return _IMP_kernel.SingletonModifier___str__(self)
8231 """__repr__(SingletonModifier self) -> std::string"""
8232 return _IMP_kernel.SingletonModifier___repr__(self)
8237 return _object_cast_to_SingletonModifier(o)
8240 def get_type_name(self):
8241 return self.__class__.__name__
8242 def do_show(self, out):
8246 return VersionInfo(self.__module__,
8253 return _object_cast_to_SingletonModifier(o)
8255 __swig_destroy__ = _IMP_kernel.delete_SingletonModifier
8256 __del__ =
lambda self:
None
8257 def __disown__(self):
8259 _IMP_kernel.disown_SingletonModifier(self)
8260 return weakref_proxy(self)
8262 def do_get_inputs(self, m, pis):
8263 """do_get_inputs(SingletonModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8264 return _IMP_kernel.SingletonModifier_do_get_inputs(self, m, pis)
8267 def do_get_outputs(self, m, pis):
8268 """do_get_outputs(SingletonModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8269 return _IMP_kernel.SingletonModifier_do_get_outputs(self, m, pis)
8273 """do_destroy(SingletonModifier self)"""
8274 return _IMP_kernel.SingletonModifier_do_destroy(self)
8276 SingletonModifier_swigregister = _IMP_kernel.SingletonModifier_swigregister
8277 SingletonModifier_swigregister(SingletonModifier)
8279 class SingletonScore(_ParticleInputs,
Object):
8280 """Proxy of C++ IMP::SingletonScore class"""
8281 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8283 def __init__(self, *args):
8285 __init__(IMP::SingletonScore self, std::string name) -> SingletonScore
8286 __init__(IMP::SingletonScore self) -> SingletonScore
8288 if self.__class__ == SingletonScore:
8292 this = _IMP_kernel.new_SingletonScore(_self, *args)
8294 self.this.append(this)
8298 if self.__class__ != SingletonScore:
8299 _director_objects.register(self)
8304 def evaluate_index(self, m, vt, da):
8305 """evaluate_index(SingletonScore self, Model m, ParticleIndex vt, DerivativeAccumulator da) -> double"""
8306 return _IMP_kernel.SingletonScore_evaluate_index(self, m, vt, da)
8309 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
8310 """evaluate_indexes(SingletonScore self, Model m, IMP::ParticleIndexes const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
8311 return _IMP_kernel.SingletonScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
8314 def evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score):
8315 """evaluate_indexes_scores(SingletonScore self, Model m, IMP::ParticleIndexes const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score) -> double"""
8316 return _IMP_kernel.SingletonScore_evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score)
8319 def evaluate_indexes_delta(self, m, o, da, indexes, score):
8320 """evaluate_indexes_delta(SingletonScore self, Model m, IMP::ParticleIndexes const & o, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score) -> double"""
8321 return _IMP_kernel.SingletonScore_evaluate_indexes_delta(self, m, o, da, indexes, score)
8324 def evaluate_if_good_index(self, m, vt, da, max):
8325 """evaluate_if_good_index(SingletonScore self, Model m, ParticleIndex vt, DerivativeAccumulator da, double max) -> double"""
8326 return _IMP_kernel.SingletonScore_evaluate_if_good_index(self, m, vt, da, max)
8329 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
8330 """evaluate_if_good_indexes(SingletonScore self, Model m, IMP::ParticleIndexes const & o, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound) -> double"""
8331 return _IMP_kernel.SingletonScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
8334 def create_current_decomposition(self, m, vt):
8335 """create_current_decomposition(SingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
8336 return _IMP_kernel.SingletonScore_create_current_decomposition(self, m, vt)
8339 def do_create_current_decomposition(self, m, vt):
8340 """do_create_current_decomposition(SingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
8341 return _IMP_kernel.SingletonScore_do_create_current_decomposition(self, m, vt)
8343 __swig_destroy__ = _IMP_kernel.delete_SingletonScore
8344 __del__ =
lambda self:
None
8347 """__str__(SingletonScore self) -> std::string"""
8348 return _IMP_kernel.SingletonScore___str__(self)
8352 """__repr__(SingletonScore self) -> std::string"""
8353 return _IMP_kernel.SingletonScore___repr__(self)
8358 return _object_cast_to_SingletonScore(o)
8361 def get_type_name(self):
8362 return self.__class__.__name__
8363 def do_show(self, out):
8367 return VersionInfo(self.__module__,
8374 return _object_cast_to_SingletonScore(o)
8376 def __disown__(self):
8378 _IMP_kernel.disown_SingletonScore(self)
8379 return weakref_proxy(self)
8381 def do_get_inputs(self, m, pis):
8382 """do_get_inputs(SingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8383 return _IMP_kernel.SingletonScore_do_get_inputs(self, m, pis)
8387 """do_destroy(SingletonScore self)"""
8388 return _IMP_kernel.SingletonScore_do_destroy(self)
8390 SingletonScore_swigregister = _IMP_kernel.SingletonScore_swigregister
8391 SingletonScore_swigregister(SingletonScore)
8393 class SingletonPredicate(_ParticleInputs,
Object):
8394 """Proxy of C++ IMP::SingletonPredicate class"""
8395 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8397 def __init__(self, *args):
8399 __init__(IMP::SingletonPredicate self, std::string name) -> SingletonPredicate
8400 __init__(IMP::SingletonPredicate self) -> SingletonPredicate
8402 if self.__class__ == SingletonPredicate:
8406 this = _IMP_kernel.new_SingletonPredicate(_self, *args)
8408 self.this.append(this)
8412 if self.__class__ != SingletonPredicate:
8413 _director_objects.register(self)
8418 def setup_for_get_value_index_in_batch(self, arg0):
8419 """setup_for_get_value_index_in_batch(SingletonPredicate self, Model arg0)"""
8420 return _IMP_kernel.SingletonPredicate_setup_for_get_value_index_in_batch(self, arg0)
8423 def get_value_index_in_batch(self, m, vt):
8424 """get_value_index_in_batch(SingletonPredicate self, Model m, ParticleIndex vt) -> int"""
8425 return _IMP_kernel.SingletonPredicate_get_value_index_in_batch(self, m, vt)
8428 def __call__(self, m, vt):
8429 """__call__(SingletonPredicate self, Model m, ParticleIndex vt) -> int"""
8430 return _IMP_kernel.SingletonPredicate___call__(self, m, vt)
8433 def get_value_index(self, *args):
8435 get_value_index(SingletonPredicate self, Model m, ParticleIndex vt) -> int
8436 get_value_index(SingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
8438 return _IMP_kernel.SingletonPredicate_get_value_index(self, *args)
8440 __swig_destroy__ = _IMP_kernel.delete_SingletonPredicate
8441 __del__ =
lambda self:
None
8444 """__str__(SingletonPredicate self) -> std::string"""
8445 return _IMP_kernel.SingletonPredicate___str__(self)
8449 """__repr__(SingletonPredicate self) -> std::string"""
8450 return _IMP_kernel.SingletonPredicate___repr__(self)
8455 return _object_cast_to_SingletonPredicate(o)
8458 def get_type_name(self):
8459 return self.__class__.__name__
8460 def do_show(self, out):
8464 return VersionInfo(self.__module__,
8471 return _object_cast_to_SingletonPredicate(o)
8473 def __disown__(self):
8475 _IMP_kernel.disown_SingletonPredicate(self)
8476 return weakref_proxy(self)
8478 def do_get_inputs(self, m, pis):
8479 """do_get_inputs(SingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8480 return _IMP_kernel.SingletonPredicate_do_get_inputs(self, m, pis)
8484 """do_destroy(SingletonPredicate self)"""
8485 return _IMP_kernel.SingletonPredicate_do_destroy(self)
8487 SingletonPredicate_swigregister = _IMP_kernel.SingletonPredicate_swigregister
8488 SingletonPredicate_swigregister(SingletonPredicate)
8490 class SingletonContainer(Container):
8491 """Proxy of C++ IMP::SingletonContainer class"""
8492 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8494 def apply_generic(self, m):
8495 """apply_generic(SingletonContainer self, SingletonModifier m)"""
8496 return _IMP_kernel.SingletonContainer_apply_generic(self, m)
8499 def apply_generic_moved(self, m, moved_pis, reset_pis):
8500 """apply_generic_moved(SingletonContainer self, SingletonModifier m, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
8501 return _IMP_kernel.SingletonContainer_apply_generic_moved(self, m, moved_pis, reset_pis)
8504 def apply(self, sm):
8505 """apply(SingletonContainer self, SingletonModifier sm)"""
8506 return _IMP_kernel.SingletonContainer_apply(self, sm)
8509 def apply_moved(self, sm, moved_pis, reset_pis):
8510 """apply_moved(SingletonContainer self, SingletonModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
8511 return _IMP_kernel.SingletonContainer_apply_moved(self, sm, moved_pis, reset_pis)
8514 def get_range_indexes(self):
8515 """get_range_indexes(SingletonContainer self) -> IMP::ParticleIndexes"""
8516 return _IMP_kernel.SingletonContainer_get_range_indexes(self)
8519 def get_contents(self):
8520 """get_contents(SingletonContainer self) -> IMP::ParticleIndexes const &"""
8521 return _IMP_kernel.SingletonContainer_get_contents(self)
8525 """get_indexes(SingletonContainer self) -> IMP::ParticleIndexes"""
8526 return _IMP_kernel.SingletonContainer_get_indexes(self)
8529 def get(self, *args):
8531 get(SingletonContainer self) -> IMP::ParticlesTemp
8532 get(SingletonContainer self, unsigned int i) -> Particle
8534 return _IMP_kernel.SingletonContainer_get(self, *args)
8537 def get_number(self):
8538 """get_number(SingletonContainer self) -> unsigned int"""
8539 return _IMP_kernel.SingletonContainer_get_number(self)
8542 def __init__(self, *args):
8544 __init__(IMP::SingletonContainer self, Model m, std::string name) -> SingletonContainer
8545 __init__(IMP::SingletonContainer self, Model m) -> SingletonContainer
8547 if self.__class__ == SingletonContainer:
8551 this = _IMP_kernel.new_SingletonContainer(_self, *args)
8553 self.this.append(this)
8557 if self.__class__ != SingletonContainer:
8558 _director_objects.register(self)
8563 def do_apply(self, sm):
8564 """do_apply(SingletonContainer self, SingletonModifier sm)"""
8565 return _IMP_kernel.SingletonContainer_do_apply(self, sm)
8568 def do_apply_moved(self, sm, moved_pis, reset_pis):
8569 """do_apply_moved(SingletonContainer self, SingletonModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
8570 return _IMP_kernel.SingletonContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
8573 def do_get_provides_access(self):
8574 """do_get_provides_access(SingletonContainer self) -> bool"""
8575 return _IMP_kernel.SingletonContainer_do_get_provides_access(self)
8577 __swig_destroy__ = _IMP_kernel.delete_SingletonContainer
8578 __del__ =
lambda self:
None
8581 """__str__(SingletonContainer self) -> std::string"""
8582 return _IMP_kernel.SingletonContainer___str__(self)
8586 """__repr__(SingletonContainer self) -> std::string"""
8587 return _IMP_kernel.SingletonContainer___repr__(self)
8592 return _object_cast_to_SingletonContainer(o)
8595 def get_type_name(self):
8596 return self.__class__.__name__
8597 def do_show(self, out):
8601 return VersionInfo(self.__module__,
8608 return _object_cast_to_SingletonContainer(o)
8610 def __disown__(self):
8612 _IMP_kernel.disown_SingletonContainer(self)
8613 return weakref_proxy(self)
8616 """do_destroy(SingletonContainer self)"""
8617 return _IMP_kernel.SingletonContainer_do_destroy(self)
8620 def handle_set_has_required_score_states(self, arg0):
8621 """handle_set_has_required_score_states(SingletonContainer self, bool arg0)"""
8622 return _IMP_kernel.SingletonContainer_handle_set_has_required_score_states(self, arg0)
8625 def do_get_inputs(self):
8626 """do_get_inputs(SingletonContainer self) -> IMP::ModelObjectsTemp"""
8627 return _IMP_kernel.SingletonContainer_do_get_inputs(self)
8630 def do_get_interactions(self):
8631 """do_get_interactions(SingletonContainer self) -> IMP::ModelObjectsTemps"""
8632 return _IMP_kernel.SingletonContainer_do_get_interactions(self)
8635 def do_get_contents_hash(self):
8636 """do_get_contents_hash(SingletonContainer self) -> std::size_t"""
8637 return _IMP_kernel.SingletonContainer_do_get_contents_hash(self)
8639 SingletonContainer_swigregister = _IMP_kernel.SingletonContainer_swigregister
8640 SingletonContainer_swigregister(SingletonContainer)
8642 class _SingletonContainerAdaptor(_InputAdaptor):
8643 """Proxy of C++ IMP::SingletonContainerAdaptor class"""
8644 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8645 __repr__ = _swig_repr
8647 def __init__(self, *args):
8649 __init__(IMP::SingletonContainerAdaptor self) -> _SingletonContainerAdaptor
8650 __init__(IMP::SingletonContainerAdaptor self, SingletonContainer c) -> _SingletonContainerAdaptor
8651 __init__(IMP::SingletonContainerAdaptor self, IMP::ParticlesTemp const & t) -> _SingletonContainerAdaptor
8653 this = _IMP_kernel.new__SingletonContainerAdaptor(*args)
8655 self.this.append(this)
8659 def set_name_if_default(self, name):
8660 """set_name_if_default(_SingletonContainerAdaptor self, std::string name)"""
8661 return _IMP_kernel._SingletonContainerAdaptor_set_name_if_default(self, name)
8663 __swig_destroy__ = _IMP_kernel.delete__SingletonContainerAdaptor
8664 __del__ =
lambda self:
None
8665 _SingletonContainerAdaptor_swigregister = _IMP_kernel._SingletonContainerAdaptor_swigregister
8666 _SingletonContainerAdaptor_swigregister(_SingletonContainerAdaptor)
8668 class TripletModifier(_ParticleInputs, _ParticleOutputs,
Object):
8669 """Proxy of C++ IMP::TripletModifier class"""
8670 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8672 def __init__(self, *args):
8674 __init__(IMP::TripletModifier self, std::string name) -> TripletModifier
8675 __init__(IMP::TripletModifier self) -> TripletModifier
8677 if self.__class__ == TripletModifier:
8681 this = _IMP_kernel.new_TripletModifier(_self, *args)
8683 self.this.append(this)
8687 if self.__class__ != TripletModifier:
8688 _director_objects.register(self)
8693 def apply_index(self, m, v):
8694 """apply_index(TripletModifier self, Model m, IMP::ParticleIndexTriplet const & v)"""
8695 return _IMP_kernel.TripletModifier_apply_index(self, m, v)
8698 def apply_indexes(self, m, o, lower_bound, upper_bound):
8699 """apply_indexes(TripletModifier self, Model m, IMP::ParticleIndexTriplets const & o, unsigned int lower_bound, unsigned int upper_bound)"""
8700 return _IMP_kernel.TripletModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
8703 def apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis):
8704 """apply_indexes_moved(TripletModifier self, Model m, IMP::ParticleIndexTriplets const & o, unsigned int lower_bound, unsigned int upper_bound, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
8705 return _IMP_kernel.TripletModifier_apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis)
8709 """__str__(TripletModifier self) -> std::string"""
8710 return _IMP_kernel.TripletModifier___str__(self)
8714 """__repr__(TripletModifier self) -> std::string"""
8715 return _IMP_kernel.TripletModifier___repr__(self)
8720 return _object_cast_to_TripletModifier(o)
8723 def get_type_name(self):
8724 return self.__class__.__name__
8725 def do_show(self, out):
8729 return VersionInfo(self.__module__,
8736 return _object_cast_to_TripletModifier(o)
8738 __swig_destroy__ = _IMP_kernel.delete_TripletModifier
8739 __del__ =
lambda self:
None
8740 def __disown__(self):
8742 _IMP_kernel.disown_TripletModifier(self)
8743 return weakref_proxy(self)
8745 def do_get_inputs(self, m, pis):
8746 """do_get_inputs(TripletModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8747 return _IMP_kernel.TripletModifier_do_get_inputs(self, m, pis)
8750 def do_get_outputs(self, m, pis):
8751 """do_get_outputs(TripletModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8752 return _IMP_kernel.TripletModifier_do_get_outputs(self, m, pis)
8756 """do_destroy(TripletModifier self)"""
8757 return _IMP_kernel.TripletModifier_do_destroy(self)
8759 TripletModifier_swigregister = _IMP_kernel.TripletModifier_swigregister
8760 TripletModifier_swigregister(TripletModifier)
8762 class TripletScore(_ParticleInputs,
Object):
8763 """Proxy of C++ IMP::TripletScore class"""
8764 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8766 def __init__(self, *args):
8768 __init__(IMP::TripletScore self, std::string name) -> TripletScore
8769 __init__(IMP::TripletScore self) -> TripletScore
8771 if self.__class__ == TripletScore:
8775 this = _IMP_kernel.new_TripletScore(_self, *args)
8777 self.this.append(this)
8781 if self.__class__ != TripletScore:
8782 _director_objects.register(self)
8787 def evaluate_index(self, m, vt, da):
8788 """evaluate_index(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt, DerivativeAccumulator da) -> double"""
8789 return _IMP_kernel.TripletScore_evaluate_index(self, m, vt, da)
8792 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
8793 """evaluate_indexes(TripletScore self, Model m, IMP::ParticleIndexTriplets const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
8794 return _IMP_kernel.TripletScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
8797 def evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score):
8798 """evaluate_indexes_scores(TripletScore self, Model m, IMP::ParticleIndexTriplets const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score) -> double"""
8799 return _IMP_kernel.TripletScore_evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score)
8802 def evaluate_indexes_delta(self, m, o, da, indexes, score):
8803 """evaluate_indexes_delta(TripletScore self, Model m, IMP::ParticleIndexTriplets const & o, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score) -> double"""
8804 return _IMP_kernel.TripletScore_evaluate_indexes_delta(self, m, o, da, indexes, score)
8807 def evaluate_if_good_index(self, m, vt, da, max):
8808 """evaluate_if_good_index(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt, DerivativeAccumulator da, double max) -> double"""
8809 return _IMP_kernel.TripletScore_evaluate_if_good_index(self, m, vt, da, max)
8812 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
8813 """evaluate_if_good_indexes(TripletScore self, Model m, IMP::ParticleIndexTriplets const & o, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound) -> double"""
8814 return _IMP_kernel.TripletScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
8817 def create_current_decomposition(self, m, vt):
8818 """create_current_decomposition(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
8819 return _IMP_kernel.TripletScore_create_current_decomposition(self, m, vt)
8822 def do_create_current_decomposition(self, m, vt):
8823 """do_create_current_decomposition(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
8824 return _IMP_kernel.TripletScore_do_create_current_decomposition(self, m, vt)
8826 __swig_destroy__ = _IMP_kernel.delete_TripletScore
8827 __del__ =
lambda self:
None
8830 """__str__(TripletScore self) -> std::string"""
8831 return _IMP_kernel.TripletScore___str__(self)
8835 """__repr__(TripletScore self) -> std::string"""
8836 return _IMP_kernel.TripletScore___repr__(self)
8841 return _object_cast_to_TripletScore(o)
8844 def get_type_name(self):
8845 return self.__class__.__name__
8846 def do_show(self, out):
8850 return VersionInfo(self.__module__,
8857 return _object_cast_to_TripletScore(o)
8859 def __disown__(self):
8861 _IMP_kernel.disown_TripletScore(self)
8862 return weakref_proxy(self)
8864 def do_get_inputs(self, m, pis):
8865 """do_get_inputs(TripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8866 return _IMP_kernel.TripletScore_do_get_inputs(self, m, pis)
8870 """do_destroy(TripletScore self)"""
8871 return _IMP_kernel.TripletScore_do_destroy(self)
8873 TripletScore_swigregister = _IMP_kernel.TripletScore_swigregister
8874 TripletScore_swigregister(TripletScore)
8876 class TripletPredicate(_ParticleInputs,
Object):
8877 """Proxy of C++ IMP::TripletPredicate class"""
8878 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8880 def __init__(self, *args):
8882 __init__(IMP::TripletPredicate self, std::string name) -> TripletPredicate
8883 __init__(IMP::TripletPredicate self) -> TripletPredicate
8885 if self.__class__ == TripletPredicate:
8889 this = _IMP_kernel.new_TripletPredicate(_self, *args)
8891 self.this.append(this)
8895 if self.__class__ != TripletPredicate:
8896 _director_objects.register(self)
8901 def setup_for_get_value_index_in_batch(self, arg0):
8902 """setup_for_get_value_index_in_batch(TripletPredicate self, Model arg0)"""
8903 return _IMP_kernel.TripletPredicate_setup_for_get_value_index_in_batch(self, arg0)
8906 def get_value_index_in_batch(self, m, vt):
8907 """get_value_index_in_batch(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int"""
8908 return _IMP_kernel.TripletPredicate_get_value_index_in_batch(self, m, vt)
8911 def __call__(self, m, vt):
8912 """__call__(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int"""
8913 return _IMP_kernel.TripletPredicate___call__(self, m, vt)
8916 def get_value_index(self, *args):
8918 get_value_index(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int
8919 get_value_index(TripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
8921 return _IMP_kernel.TripletPredicate_get_value_index(self, *args)
8923 __swig_destroy__ = _IMP_kernel.delete_TripletPredicate
8924 __del__ =
lambda self:
None
8927 """__str__(TripletPredicate self) -> std::string"""
8928 return _IMP_kernel.TripletPredicate___str__(self)
8932 """__repr__(TripletPredicate self) -> std::string"""
8933 return _IMP_kernel.TripletPredicate___repr__(self)
8938 return _object_cast_to_TripletPredicate(o)
8941 def get_type_name(self):
8942 return self.__class__.__name__
8943 def do_show(self, out):
8947 return VersionInfo(self.__module__,
8954 return _object_cast_to_TripletPredicate(o)
8956 def __disown__(self):
8958 _IMP_kernel.disown_TripletPredicate(self)
8959 return weakref_proxy(self)
8961 def do_get_inputs(self, m, pis):
8962 """do_get_inputs(TripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8963 return _IMP_kernel.TripletPredicate_do_get_inputs(self, m, pis)
8967 """do_destroy(TripletPredicate self)"""
8968 return _IMP_kernel.TripletPredicate_do_destroy(self)
8970 TripletPredicate_swigregister = _IMP_kernel.TripletPredicate_swigregister
8971 TripletPredicate_swigregister(TripletPredicate)
8973 class TripletContainer(Container):
8974 """Proxy of C++ IMP::TripletContainer class"""
8975 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8977 def apply_generic(self, m):
8978 """apply_generic(TripletContainer self, TripletModifier m)"""
8979 return _IMP_kernel.TripletContainer_apply_generic(self, m)
8982 def apply_generic_moved(self, m, moved_pis, reset_pis):
8983 """apply_generic_moved(TripletContainer self, TripletModifier m, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
8984 return _IMP_kernel.TripletContainer_apply_generic_moved(self, m, moved_pis, reset_pis)
8987 def apply(self, sm):
8988 """apply(TripletContainer self, TripletModifier sm)"""
8989 return _IMP_kernel.TripletContainer_apply(self, sm)
8992 def apply_moved(self, sm, moved_pis, reset_pis):
8993 """apply_moved(TripletContainer self, TripletModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
8994 return _IMP_kernel.TripletContainer_apply_moved(self, sm, moved_pis, reset_pis)
8997 def get_range_indexes(self):
8998 """get_range_indexes(TripletContainer self) -> IMP::ParticleIndexTriplets"""
8999 return _IMP_kernel.TripletContainer_get_range_indexes(self)
9002 def get_contents(self):
9003 """get_contents(TripletContainer self) -> IMP::ParticleIndexTriplets const &"""
9004 return _IMP_kernel.TripletContainer_get_contents(self)
9008 """get_indexes(TripletContainer self) -> IMP::ParticleIndexTriplets"""
9009 return _IMP_kernel.TripletContainer_get_indexes(self)
9012 def get(self, *args):
9014 get(TripletContainer self) -> IMP::ParticleTripletsTemp
9015 get(TripletContainer self, unsigned int i) -> IMP::ParticleTriplet
9017 return _IMP_kernel.TripletContainer_get(self, *args)
9020 def get_number(self):
9021 """get_number(TripletContainer self) -> unsigned int"""
9022 return _IMP_kernel.TripletContainer_get_number(self)
9025 def __init__(self, *args):
9027 __init__(IMP::TripletContainer self, Model m, std::string name) -> TripletContainer
9028 __init__(IMP::TripletContainer self, Model m) -> TripletContainer
9030 if self.__class__ == TripletContainer:
9034 this = _IMP_kernel.new_TripletContainer(_self, *args)
9036 self.this.append(this)
9040 if self.__class__ != TripletContainer:
9041 _director_objects.register(self)
9046 def do_apply(self, sm):
9047 """do_apply(TripletContainer self, TripletModifier sm)"""
9048 return _IMP_kernel.TripletContainer_do_apply(self, sm)
9051 def do_apply_moved(self, sm, moved_pis, reset_pis):
9052 """do_apply_moved(TripletContainer self, TripletModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
9053 return _IMP_kernel.TripletContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
9056 def do_get_provides_access(self):
9057 """do_get_provides_access(TripletContainer self) -> bool"""
9058 return _IMP_kernel.TripletContainer_do_get_provides_access(self)
9060 __swig_destroy__ = _IMP_kernel.delete_TripletContainer
9061 __del__ =
lambda self:
None
9064 """__str__(TripletContainer self) -> std::string"""
9065 return _IMP_kernel.TripletContainer___str__(self)
9069 """__repr__(TripletContainer self) -> std::string"""
9070 return _IMP_kernel.TripletContainer___repr__(self)
9075 return _object_cast_to_TripletContainer(o)
9078 def get_type_name(self):
9079 return self.__class__.__name__
9080 def do_show(self, out):
9084 return VersionInfo(self.__module__,
9091 return _object_cast_to_TripletContainer(o)
9093 def __disown__(self):
9095 _IMP_kernel.disown_TripletContainer(self)
9096 return weakref_proxy(self)
9099 """do_destroy(TripletContainer self)"""
9100 return _IMP_kernel.TripletContainer_do_destroy(self)
9103 def handle_set_has_required_score_states(self, arg0):
9104 """handle_set_has_required_score_states(TripletContainer self, bool arg0)"""
9105 return _IMP_kernel.TripletContainer_handle_set_has_required_score_states(self, arg0)
9108 def do_get_inputs(self):
9109 """do_get_inputs(TripletContainer self) -> IMP::ModelObjectsTemp"""
9110 return _IMP_kernel.TripletContainer_do_get_inputs(self)
9113 def do_get_interactions(self):
9114 """do_get_interactions(TripletContainer self) -> IMP::ModelObjectsTemps"""
9115 return _IMP_kernel.TripletContainer_do_get_interactions(self)
9118 def do_get_contents_hash(self):
9119 """do_get_contents_hash(TripletContainer self) -> std::size_t"""
9120 return _IMP_kernel.TripletContainer_do_get_contents_hash(self)
9122 TripletContainer_swigregister = _IMP_kernel.TripletContainer_swigregister
9123 TripletContainer_swigregister(TripletContainer)
9125 class _TripletContainerAdaptor(_InputAdaptor):
9126 """Proxy of C++ IMP::TripletContainerAdaptor class"""
9127 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9128 __repr__ = _swig_repr
9130 def __init__(self, *args):
9132 __init__(IMP::TripletContainerAdaptor self) -> _TripletContainerAdaptor
9133 __init__(IMP::TripletContainerAdaptor self, TripletContainer c) -> _TripletContainerAdaptor
9134 __init__(IMP::TripletContainerAdaptor self, IMP::ParticleTripletsTemp const & t) -> _TripletContainerAdaptor
9136 this = _IMP_kernel.new__TripletContainerAdaptor(*args)
9138 self.this.append(this)
9142 def set_name_if_default(self, name):
9143 """set_name_if_default(_TripletContainerAdaptor self, std::string name)"""
9144 return _IMP_kernel._TripletContainerAdaptor_set_name_if_default(self, name)
9146 __swig_destroy__ = _IMP_kernel.delete__TripletContainerAdaptor
9147 __del__ =
lambda self:
None
9148 _TripletContainerAdaptor_swigregister = _IMP_kernel._TripletContainerAdaptor_swigregister
9149 _TripletContainerAdaptor_swigregister(_TripletContainerAdaptor)
9153 """write_particles_to_buffer(IMP::ParticlesTemp const & particles, IMP::FloatKeys const & keys) -> IMP::Vector< char >"""
9154 return _IMP_kernel.write_particles_to_buffer(particles, keys)
9157 """read_particles_from_buffer(IMP::Vector< char > const & buffer, IMP::ParticlesTemp const & particles, IMP::FloatKeys const & keys)"""
9158 return _IMP_kernel.read_particles_from_buffer(buffer, particles, keys)
9161 """get_particles(Model m, IMP::ParticleIndexes const & ps) -> IMP::ParticlesTemp"""
9162 return _IMP_kernel.get_particles(m, ps)
9166 get_indexes(IMP::ParticlesTemp const & ps) -> IMP::ParticleIndexes
9167 get_indexes(IMP::ParticlePairsTemp const & ps) -> IMP::ParticleIndexPairs
9169 return _IMP_kernel.get_indexes(*args)
9170 class _ParticleIndexAdaptor(object):
9171 """Proxy of C++ IMP::ParticleIndexAdaptor class"""
9172 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9173 __repr__ = _swig_repr
9175 def __init__(self, *args):
9177 __init__(IMP::ParticleIndexAdaptor self, Particle p) -> _ParticleIndexAdaptor
9178 __init__(IMP::ParticleIndexAdaptor self, ParticleIndex pi) -> _ParticleIndexAdaptor
9179 __init__(IMP::ParticleIndexAdaptor self, Decorator d) -> _ParticleIndexAdaptor
9181 this = _IMP_kernel.new__ParticleIndexAdaptor(*args)
9183 self.this.append(this)
9186 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexAdaptor
9187 __del__ =
lambda self:
None
9188 _ParticleIndexAdaptor_swigregister = _IMP_kernel._ParticleIndexAdaptor_swigregister
9189 _ParticleIndexAdaptor_swigregister(_ParticleIndexAdaptor)
9191 class _ParticleIndexesAdaptor(_InputAdaptor):
9192 """Proxy of C++ IMP::ParticleIndexesAdaptor class"""
9193 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9194 __repr__ = _swig_repr
9196 def __init__(self, *args):
9198 __init__(IMP::ParticleIndexesAdaptor self, IMP::ParticlesTemp const & ps) -> _ParticleIndexesAdaptor
9199 __init__(IMP::ParticleIndexesAdaptor self, IMP::ParticleIndexes const & pi) -> _ParticleIndexesAdaptor
9200 __init__(IMP::ParticleIndexesAdaptor self) -> _ParticleIndexesAdaptor
9202 this = _IMP_kernel.new__ParticleIndexesAdaptor(*args)
9204 self.this.append(this)
9207 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexesAdaptor
9208 __del__ =
lambda self:
None
9209 _ParticleIndexesAdaptor_swigregister = _IMP_kernel._ParticleIndexesAdaptor_swigregister
9210 _ParticleIndexesAdaptor_swigregister(_ParticleIndexesAdaptor)
9212 class _ParticleIndexPairsAdaptor(object):
9213 """Proxy of C++ IMP::ParticleIndexPairsAdaptor class"""
9214 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9215 __repr__ = _swig_repr
9217 def __init__(self, *args):
9219 __init__(IMP::ParticleIndexPairsAdaptor self, IMP::ParticlePairsTemp const & ps) -> _ParticleIndexPairsAdaptor
9220 __init__(IMP::ParticleIndexPairsAdaptor self, IMP::ParticleIndexPairs const & pi) -> _ParticleIndexPairsAdaptor
9221 __init__(IMP::ParticleIndexPairsAdaptor self) -> _ParticleIndexPairsAdaptor
9223 this = _IMP_kernel.new__ParticleIndexPairsAdaptor(*args)
9225 self.this.append(this)
9228 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexPairsAdaptor
9229 __del__ =
lambda self:
None
9230 _ParticleIndexPairsAdaptor_swigregister = _IMP_kernel._ParticleIndexPairsAdaptor_swigregister
9231 _ParticleIndexPairsAdaptor_swigregister(_ParticleIndexPairsAdaptor)
9233 class _ConstRestraint(Restraint):
9234 """Proxy of C++ IMP::internal::_ConstRestraint class"""
9235 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9237 def __init__(self, *args):
9239 __init__(IMP::internal::_ConstRestraint self, double v, IMP::ParticlesTemp const ps) -> _ConstRestraint
9240 __init__(IMP::internal::_ConstRestraint self, Model m, IMP::ParticleIndexes const & pis, double v) -> _ConstRestraint
9242 this = _IMP_kernel.new__ConstRestraint(*args)
9244 self.this.append(this)
9248 def get_value(self):
9249 """get_value(_ConstRestraint self) -> double"""
9250 return _IMP_kernel._ConstRestraint_get_value(self)
9253 def do_create_decomposition(self):
9254 """do_create_decomposition(_ConstRestraint self) -> IMP::Restraints"""
9255 return _IMP_kernel._ConstRestraint_do_create_decomposition(self)
9258 def do_get_inputs(self):
9259 """do_get_inputs(_ConstRestraint self) -> IMP::ModelObjectsTemp"""
9260 return _IMP_kernel._ConstRestraint_do_get_inputs(self)
9264 """get_version_info(_ConstRestraint self) -> VersionInfo"""
9265 return _IMP_kernel._ConstRestraint_get_version_info(self)
9269 """__str__(_ConstRestraint self) -> std::string"""
9270 return _IMP_kernel._ConstRestraint___str__(self)
9274 """__repr__(_ConstRestraint self) -> std::string"""
9275 return _IMP_kernel._ConstRestraint___repr__(self)
9280 return _object_cast_to__ConstRestraint(o)
9282 _ConstRestraint_swigregister = _IMP_kernel._ConstRestraint_swigregister
9283 _ConstRestraint_swigregister(_ConstRestraint)
9285 class _ConstSingletonScore(SingletonScore):
9286 """Proxy of C++ IMP::internal::_ConstSingletonScore class"""
9287 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9288 __repr__ = _swig_repr
9290 def __init__(self, v):
9291 """__init__(IMP::internal::_ConstSingletonScore self, double v) -> _ConstSingletonScore"""
9292 this = _IMP_kernel.new__ConstSingletonScore(v)
9294 self.this.append(this)
9298 def do_get_inputs(self, arg2, arg3):
9299 """do_get_inputs(_ConstSingletonScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
9300 return _IMP_kernel._ConstSingletonScore_do_get_inputs(self, arg2, arg3)
9304 """get_version_info(_ConstSingletonScore self) -> VersionInfo"""
9305 return _IMP_kernel._ConstSingletonScore_get_version_info(self)
9307 _ConstSingletonScore_swigregister = _IMP_kernel._ConstSingletonScore_swigregister
9308 _ConstSingletonScore_swigregister(_ConstSingletonScore)
9310 class _ConstPairScore(PairScore):
9311 """Proxy of C++ IMP::internal::_ConstPairScore class"""
9312 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9313 __repr__ = _swig_repr
9315 def __init__(self, v):
9316 """__init__(IMP::internal::_ConstPairScore self, double v) -> _ConstPairScore"""
9317 this = _IMP_kernel.new__ConstPairScore(v)
9319 self.this.append(this)
9323 def do_get_inputs(self, arg2, arg3):
9324 """do_get_inputs(_ConstPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
9325 return _IMP_kernel._ConstPairScore_do_get_inputs(self, arg2, arg3)
9329 """get_version_info(_ConstPairScore self) -> VersionInfo"""
9330 return _IMP_kernel._ConstPairScore_get_version_info(self)
9332 _ConstPairScore_swigregister = _IMP_kernel._ConstPairScore_swigregister
9333 _ConstPairScore_swigregister(_ConstPairScore)
9335 class _TrivialDecorator(Decorator):
9336 """Proxy of C++ IMP::internal::_TrivialDecorator class"""
9337 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9339 def __init__(self, *args):
9341 __init__(IMP::internal::_TrivialDecorator self) -> _TrivialDecorator
9342 __init__(IMP::internal::_TrivialDecorator self, Model m, ParticleIndex id) -> _TrivialDecorator
9343 __init__(IMP::internal::_TrivialDecorator self, _ParticleAdaptor d) -> _TrivialDecorator
9345 this = _IMP_kernel.new__TrivialDecorator(*args)
9347 self.this.append(this)
9351 def show(self, *args):
9353 show(_TrivialDecorator self, _ostream out)
9354 show(_TrivialDecorator self)
9356 return _IMP_kernel._TrivialDecorator_show(self, *args)
9359 def setup_particle(*args):
9361 setup_particle(Model m, ParticleIndex pi) -> _TrivialDecorator
9362 setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
9364 return _IMP_kernel._TrivialDecorator_setup_particle(*args)
9366 setup_particle = staticmethod(setup_particle)
9368 def get_is_setup(*args):
9370 get_is_setup(_ParticleAdaptor p) -> bool
9371 get_is_setup(Model m, ParticleIndex pi) -> bool
9373 return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
9375 get_is_setup = staticmethod(get_is_setup)
9379 add_attribute(_TrivialDecorator self, FloatKey k, IMP::Float v, bool opt)
9380 add_attribute(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
9381 add_attribute(_TrivialDecorator self, IntKey a0, IMP::Int a1)
9382 add_attribute(_TrivialDecorator self, FloatsKey a0, IMP::Floats a1)
9383 add_attribute(_TrivialDecorator self, IntsKey a0, IMP::Ints a1)
9384 add_attribute(_TrivialDecorator self, StringKey a0, IMP::String a1)
9385 add_attribute(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
9386 add_attribute(_TrivialDecorator self, ObjectKey a0, Object a1)
9388 return _IMP_kernel._TrivialDecorator_add_attribute(self, *args)
9391 def get_value(self, *args):
9393 get_value(_TrivialDecorator self, FloatKey a0) -> IMP::Float
9394 get_value(_TrivialDecorator self, IntKey a0) -> IMP::Int
9395 get_value(_TrivialDecorator self, FloatsKey a0) -> IMP::Floats
9396 get_value(_TrivialDecorator self, IntsKey a0) -> IMP::Ints
9397 get_value(_TrivialDecorator self, StringKey a0) -> IMP::String
9398 get_value(_TrivialDecorator self, ParticleIndexKey a0) -> Particle
9399 get_value(_TrivialDecorator self, ObjectKey a0) -> Object
9401 return _IMP_kernel._TrivialDecorator_get_value(self, *args)
9404 def set_value(self, *args):
9406 set_value(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
9407 set_value(_TrivialDecorator self, IntKey a0, IMP::Int a1)
9408 set_value(_TrivialDecorator self, FloatsKey a0, IMP::Floats a1)
9409 set_value(_TrivialDecorator self, IntsKey a0, IMP::Ints a1)
9410 set_value(_TrivialDecorator self, StringKey a0, IMP::String a1)
9411 set_value(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
9412 set_value(_TrivialDecorator self, ObjectKey a0, Object a1)
9414 return _IMP_kernel._TrivialDecorator_set_value(self, *args)
9419 remove_attribute(_TrivialDecorator self, FloatKey a0)
9420 remove_attribute(_TrivialDecorator self, IntKey a0)
9421 remove_attribute(_TrivialDecorator self, FloatsKey a0)
9422 remove_attribute(_TrivialDecorator self, IntsKey a0)
9423 remove_attribute(_TrivialDecorator self, StringKey a0)
9424 remove_attribute(_TrivialDecorator self, ParticleIndexKey a0)
9425 remove_attribute(_TrivialDecorator self, ObjectKey a0)
9427 return _IMP_kernel._TrivialDecorator_remove_attribute(self, *args)
9430 def has_attribute(self, *args):
9432 has_attribute(_TrivialDecorator self, FloatKey a0) -> bool
9433 has_attribute(_TrivialDecorator self, IntKey a0) -> bool
9434 has_attribute(_TrivialDecorator self, FloatsKey a0) -> bool
9435 has_attribute(_TrivialDecorator self, IntsKey a0) -> bool
9436 has_attribute(_TrivialDecorator self, StringKey a0) -> bool
9437 has_attribute(_TrivialDecorator self, ParticleIndexKey a0) -> bool
9438 has_attribute(_TrivialDecorator self, ObjectKey a0) -> bool
9440 return _IMP_kernel._TrivialDecorator_has_attribute(self, *args)
9443 def get_derivative(self, a0):
9444 """get_derivative(_TrivialDecorator self, FloatKey a0) -> double"""
9445 return _IMP_kernel._TrivialDecorator_get_derivative(self, a0)
9449 """get_name(_TrivialDecorator self) -> std::string"""
9450 return _IMP_kernel._TrivialDecorator_get_name(self)
9454 """clear_caches(_TrivialDecorator self)"""
9455 return _IMP_kernel._TrivialDecorator_clear_caches(self)
9458 def set_name(self, a0):
9459 """set_name(_TrivialDecorator self, std::string a0)"""
9460 return _IMP_kernel._TrivialDecorator_set_name(self, a0)
9464 """set_check_level(_TrivialDecorator self, IMP::CheckLevel a0)"""
9465 return _IMP_kernel._TrivialDecorator_set_check_level(self, a0)
9468 def add_to_derivative(self, a0, a1, a2):
9469 """add_to_derivative(_TrivialDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9470 return _IMP_kernel._TrivialDecorator_add_to_derivative(self, a0, a1, a2)
9474 """set_is_optimized(_TrivialDecorator self, FloatKey a0, bool a1)"""
9475 return _IMP_kernel._TrivialDecorator_set_is_optimized(self, a0, a1)
9478 def get_is_optimized(self, a0):
9479 """get_is_optimized(_TrivialDecorator self, FloatKey a0) -> bool"""
9480 return _IMP_kernel._TrivialDecorator_get_is_optimized(self, a0)
9483 def get_check_level(self):
9484 """get_check_level(_TrivialDecorator self) -> IMP::CheckLevel"""
9485 return _IMP_kernel._TrivialDecorator_get_check_level(self)
9488 def __eq__(self, *args):
9490 __eq__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9491 __eq__(_TrivialDecorator self, Particle d) -> bool
9493 return _IMP_kernel._TrivialDecorator___eq__(self, *args)
9496 def __ne__(self, *args):
9498 __ne__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9499 __ne__(_TrivialDecorator self, Particle d) -> bool
9501 return _IMP_kernel._TrivialDecorator___ne__(self, *args)
9504 def __le__(self, *args):
9506 __le__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9507 __le__(_TrivialDecorator self, Particle d) -> bool
9509 return _IMP_kernel._TrivialDecorator___le__(self, *args)
9512 def __lt__(self, *args):
9514 __lt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9515 __lt__(_TrivialDecorator self, Particle d) -> bool
9517 return _IMP_kernel._TrivialDecorator___lt__(self, *args)
9520 def __ge__(self, *args):
9522 __ge__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9523 __ge__(_TrivialDecorator self, Particle d) -> bool
9525 return _IMP_kernel._TrivialDecorator___ge__(self, *args)
9528 def __gt__(self, *args):
9530 __gt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9531 __gt__(_TrivialDecorator self, Particle d) -> bool
9533 return _IMP_kernel._TrivialDecorator___gt__(self, *args)
9537 """__hash__(_TrivialDecorator self) -> std::size_t"""
9538 return _IMP_kernel._TrivialDecorator___hash__(self)
9542 """__str__(_TrivialDecorator self) -> std::string"""
9543 return _IMP_kernel._TrivialDecorator___str__(self)
9547 """__repr__(_TrivialDecorator self) -> std::string"""
9548 return _IMP_kernel._TrivialDecorator___repr__(self)
9550 __swig_destroy__ = _IMP_kernel.delete__TrivialDecorator
9551 __del__ =
lambda self:
None
9552 _TrivialDecorator_swigregister = _IMP_kernel._TrivialDecorator_swigregister
9553 _TrivialDecorator_swigregister(_TrivialDecorator)
9555 def _TrivialDecorator_setup_particle(*args):
9557 setup_particle(Model m, ParticleIndex pi) -> _TrivialDecorator
9558 _TrivialDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
9560 return _IMP_kernel._TrivialDecorator_setup_particle(*args)
9562 def _TrivialDecorator_get_is_setup(*args):
9564 get_is_setup(_ParticleAdaptor p) -> bool
9565 _TrivialDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
9567 return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
9569 class _TrivialDerivedDecorator(_TrivialDecorator):
9570 """Proxy of C++ IMP::internal::_TrivialDerivedDecorator class"""
9571 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9573 def __init__(self, *args):
9575 __init__(IMP::internal::_TrivialDerivedDecorator self) -> _TrivialDerivedDecorator
9576 __init__(IMP::internal::_TrivialDerivedDecorator self, Model m, ParticleIndex id) -> _TrivialDerivedDecorator
9577 __init__(IMP::internal::_TrivialDerivedDecorator self, _ParticleAdaptor d) -> _TrivialDerivedDecorator
9579 this = _IMP_kernel.new__TrivialDerivedDecorator(*args)
9581 self.this.append(this)
9585 def show(self, *args):
9587 show(_TrivialDerivedDecorator self, _ostream out)
9588 show(_TrivialDerivedDecorator self)
9590 return _IMP_kernel._TrivialDerivedDecorator_show(self, *args)
9593 def setup_particle(*args):
9595 setup_particle(Model m, ParticleIndex pi) -> _TrivialDerivedDecorator
9596 setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
9598 return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
9600 setup_particle = staticmethod(setup_particle)
9602 def get_is_setup(*args):
9604 get_is_setup(_ParticleAdaptor p) -> bool
9605 get_is_setup(Model m, ParticleIndex pi) -> bool
9607 return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
9609 get_is_setup = staticmethod(get_is_setup)
9613 add_attribute(_TrivialDerivedDecorator self, FloatKey k, IMP::Float v, bool opt)
9614 add_attribute(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
9615 add_attribute(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
9616 add_attribute(_TrivialDerivedDecorator self, FloatsKey a0, IMP::Floats a1)
9617 add_attribute(_TrivialDerivedDecorator self, IntsKey a0, IMP::Ints a1)
9618 add_attribute(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
9619 add_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
9620 add_attribute(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
9622 return _IMP_kernel._TrivialDerivedDecorator_add_attribute(self, *args)
9625 def get_value(self, *args):
9627 get_value(_TrivialDerivedDecorator self, FloatKey a0) -> IMP::Float
9628 get_value(_TrivialDerivedDecorator self, IntKey a0) -> IMP::Int
9629 get_value(_TrivialDerivedDecorator self, FloatsKey a0) -> IMP::Floats
9630 get_value(_TrivialDerivedDecorator self, IntsKey a0) -> IMP::Ints
9631 get_value(_TrivialDerivedDecorator self, StringKey a0) -> IMP::String
9632 get_value(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> Particle
9633 get_value(_TrivialDerivedDecorator self, ObjectKey a0) -> Object
9635 return _IMP_kernel._TrivialDerivedDecorator_get_value(self, *args)
9638 def set_value(self, *args):
9640 set_value(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
9641 set_value(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
9642 set_value(_TrivialDerivedDecorator self, FloatsKey a0, IMP::Floats a1)
9643 set_value(_TrivialDerivedDecorator self, IntsKey a0, IMP::Ints a1)
9644 set_value(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
9645 set_value(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
9646 set_value(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
9648 return _IMP_kernel._TrivialDerivedDecorator_set_value(self, *args)
9653 remove_attribute(_TrivialDerivedDecorator self, FloatKey a0)
9654 remove_attribute(_TrivialDerivedDecorator self, IntKey a0)
9655 remove_attribute(_TrivialDerivedDecorator self, FloatsKey a0)
9656 remove_attribute(_TrivialDerivedDecorator self, IntsKey a0)
9657 remove_attribute(_TrivialDerivedDecorator self, StringKey a0)
9658 remove_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0)
9659 remove_attribute(_TrivialDerivedDecorator self, ObjectKey a0)
9661 return _IMP_kernel._TrivialDerivedDecorator_remove_attribute(self, *args)
9664 def has_attribute(self, *args):
9666 has_attribute(_TrivialDerivedDecorator self, FloatKey a0) -> bool
9667 has_attribute(_TrivialDerivedDecorator self, IntKey a0) -> bool
9668 has_attribute(_TrivialDerivedDecorator self, FloatsKey a0) -> bool
9669 has_attribute(_TrivialDerivedDecorator self, IntsKey a0) -> bool
9670 has_attribute(_TrivialDerivedDecorator self, StringKey a0) -> bool
9671 has_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> bool
9672 has_attribute(_TrivialDerivedDecorator self, ObjectKey a0) -> bool
9674 return _IMP_kernel._TrivialDerivedDecorator_has_attribute(self, *args)
9677 def get_derivative(self, a0):
9678 """get_derivative(_TrivialDerivedDecorator self, FloatKey a0) -> double"""
9679 return _IMP_kernel._TrivialDerivedDecorator_get_derivative(self, a0)
9683 """get_name(_TrivialDerivedDecorator self) -> std::string"""
9684 return _IMP_kernel._TrivialDerivedDecorator_get_name(self)
9688 """clear_caches(_TrivialDerivedDecorator self)"""
9689 return _IMP_kernel._TrivialDerivedDecorator_clear_caches(self)
9692 def set_name(self, a0):
9693 """set_name(_TrivialDerivedDecorator self, std::string a0)"""
9694 return _IMP_kernel._TrivialDerivedDecorator_set_name(self, a0)
9698 """set_check_level(_TrivialDerivedDecorator self, IMP::CheckLevel a0)"""
9699 return _IMP_kernel._TrivialDerivedDecorator_set_check_level(self, a0)
9702 def add_to_derivative(self, a0, a1, a2):
9703 """add_to_derivative(_TrivialDerivedDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9704 return _IMP_kernel._TrivialDerivedDecorator_add_to_derivative(self, a0, a1, a2)
9708 """set_is_optimized(_TrivialDerivedDecorator self, FloatKey a0, bool a1)"""
9709 return _IMP_kernel._TrivialDerivedDecorator_set_is_optimized(self, a0, a1)
9712 def get_is_optimized(self, a0):
9713 """get_is_optimized(_TrivialDerivedDecorator self, FloatKey a0) -> bool"""
9714 return _IMP_kernel._TrivialDerivedDecorator_get_is_optimized(self, a0)
9717 def get_check_level(self):
9718 """get_check_level(_TrivialDerivedDecorator self) -> IMP::CheckLevel"""
9719 return _IMP_kernel._TrivialDerivedDecorator_get_check_level(self)
9722 def __eq__(self, *args):
9724 __eq__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9725 __eq__(_TrivialDerivedDecorator self, Particle d) -> bool
9727 return _IMP_kernel._TrivialDerivedDecorator___eq__(self, *args)
9730 def __ne__(self, *args):
9732 __ne__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9733 __ne__(_TrivialDerivedDecorator self, Particle d) -> bool
9735 return _IMP_kernel._TrivialDerivedDecorator___ne__(self, *args)
9738 def __le__(self, *args):
9740 __le__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9741 __le__(_TrivialDerivedDecorator self, Particle d) -> bool
9743 return _IMP_kernel._TrivialDerivedDecorator___le__(self, *args)
9746 def __lt__(self, *args):
9748 __lt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9749 __lt__(_TrivialDerivedDecorator self, Particle d) -> bool
9751 return _IMP_kernel._TrivialDerivedDecorator___lt__(self, *args)
9754 def __ge__(self, *args):
9756 __ge__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9757 __ge__(_TrivialDerivedDecorator self, Particle d) -> bool
9759 return _IMP_kernel._TrivialDerivedDecorator___ge__(self, *args)
9762 def __gt__(self, *args):
9764 __gt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9765 __gt__(_TrivialDerivedDecorator self, Particle d) -> bool
9767 return _IMP_kernel._TrivialDerivedDecorator___gt__(self, *args)
9771 """__hash__(_TrivialDerivedDecorator self) -> std::size_t"""
9772 return _IMP_kernel._TrivialDerivedDecorator___hash__(self)
9776 """__str__(_TrivialDerivedDecorator self) -> std::string"""
9777 return _IMP_kernel._TrivialDerivedDecorator___str__(self)
9781 """__repr__(_TrivialDerivedDecorator self) -> std::string"""
9782 return _IMP_kernel._TrivialDerivedDecorator___repr__(self)
9784 __swig_destroy__ = _IMP_kernel.delete__TrivialDerivedDecorator
9785 __del__ =
lambda self:
None
9786 _TrivialDerivedDecorator_swigregister = _IMP_kernel._TrivialDerivedDecorator_swigregister
9787 _TrivialDerivedDecorator_swigregister(_TrivialDerivedDecorator)
9789 def _TrivialDerivedDecorator_setup_particle(*args):
9791 setup_particle(Model m, ParticleIndex pi) -> _TrivialDerivedDecorator
9792 _TrivialDerivedDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
9794 return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
9796 def _TrivialDerivedDecorator_get_is_setup(*args):
9798 get_is_setup(_ParticleAdaptor p) -> bool
9799 _TrivialDerivedDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
9801 return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
9803 class _TrivialTraitsDecorator(Decorator):
9804 """Proxy of C++ IMP::internal::_TrivialTraitsDecorator class"""
9805 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9807 def get_decorator_traits(self):
9808 """get_decorator_traits(_TrivialTraitsDecorator self) -> StringKey"""
9809 return _IMP_kernel._TrivialTraitsDecorator_get_decorator_traits(self)
9812 def get_default_decorator_traits():
9813 """get_default_decorator_traits() -> StringKey"""
9814 return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
9816 get_default_decorator_traits = staticmethod(get_default_decorator_traits)
9818 def __init__(self, *args):
9820 __init__(IMP::internal::_TrivialTraitsDecorator self) -> _TrivialTraitsDecorator
9821 __init__(IMP::internal::_TrivialTraitsDecorator self, Model m, ParticleIndex id, StringKey tr) -> _TrivialTraitsDecorator
9822 __init__(IMP::internal::_TrivialTraitsDecorator self, Model m, ParticleIndex id) -> _TrivialTraitsDecorator
9823 __init__(IMP::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
9824 __init__(IMP::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d) -> _TrivialTraitsDecorator
9826 this = _IMP_kernel.new__TrivialTraitsDecorator(*args)
9828 self.this.append(this)
9832 def show(self, *args):
9834 show(_TrivialTraitsDecorator self, _ostream out)
9835 show(_TrivialTraitsDecorator self)
9837 return _IMP_kernel._TrivialTraitsDecorator_show(self, *args)
9840 def setup_particle(*args):
9842 setup_particle(Model m, ParticleIndex pi, StringKey tr) -> _TrivialTraitsDecorator
9843 setup_particle(Model m, ParticleIndex pi) -> _TrivialTraitsDecorator
9844 setup_particle(_ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
9845 setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
9847 return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
9849 setup_particle = staticmethod(setup_particle)
9851 def get_is_setup(*args):
9853 get_is_setup(_ParticleAdaptor p, StringKey tr) -> bool
9854 get_is_setup(_ParticleAdaptor p) -> bool
9855 get_is_setup(Model m, ParticleIndex pi, StringKey k) -> bool
9856 get_is_setup(Model m, ParticleIndex pi) -> bool
9858 return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
9860 get_is_setup = staticmethod(get_is_setup)
9862 def get_default_key():
9863 """get_default_key() -> StringKey"""
9864 return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
9866 get_default_key = staticmethod(get_default_key)
9870 add_attribute(_TrivialTraitsDecorator self, FloatKey k, IMP::Float v, bool opt)
9871 add_attribute(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
9872 add_attribute(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
9873 add_attribute(_TrivialTraitsDecorator self, FloatsKey a0, IMP::Floats a1)
9874 add_attribute(_TrivialTraitsDecorator self, IntsKey a0, IMP::Ints a1)
9875 add_attribute(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
9876 add_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
9877 add_attribute(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
9879 return _IMP_kernel._TrivialTraitsDecorator_add_attribute(self, *args)
9882 def get_value(self, *args):
9884 get_value(_TrivialTraitsDecorator self, FloatKey a0) -> IMP::Float
9885 get_value(_TrivialTraitsDecorator self, IntKey a0) -> IMP::Int
9886 get_value(_TrivialTraitsDecorator self, FloatsKey a0) -> IMP::Floats
9887 get_value(_TrivialTraitsDecorator self, IntsKey a0) -> IMP::Ints
9888 get_value(_TrivialTraitsDecorator self, StringKey a0) -> IMP::String
9889 get_value(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> Particle
9890 get_value(_TrivialTraitsDecorator self, ObjectKey a0) -> Object
9892 return _IMP_kernel._TrivialTraitsDecorator_get_value(self, *args)
9895 def set_value(self, *args):
9897 set_value(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
9898 set_value(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
9899 set_value(_TrivialTraitsDecorator self, FloatsKey a0, IMP::Floats a1)
9900 set_value(_TrivialTraitsDecorator self, IntsKey a0, IMP::Ints a1)
9901 set_value(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
9902 set_value(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
9903 set_value(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
9905 return _IMP_kernel._TrivialTraitsDecorator_set_value(self, *args)
9910 remove_attribute(_TrivialTraitsDecorator self, FloatKey a0)
9911 remove_attribute(_TrivialTraitsDecorator self, IntKey a0)
9912 remove_attribute(_TrivialTraitsDecorator self, FloatsKey a0)
9913 remove_attribute(_TrivialTraitsDecorator self, IntsKey a0)
9914 remove_attribute(_TrivialTraitsDecorator self, StringKey a0)
9915 remove_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0)
9916 remove_attribute(_TrivialTraitsDecorator self, ObjectKey a0)
9918 return _IMP_kernel._TrivialTraitsDecorator_remove_attribute(self, *args)
9921 def has_attribute(self, *args):
9923 has_attribute(_TrivialTraitsDecorator self, FloatKey a0) -> bool
9924 has_attribute(_TrivialTraitsDecorator self, IntKey a0) -> bool
9925 has_attribute(_TrivialTraitsDecorator self, FloatsKey a0) -> bool
9926 has_attribute(_TrivialTraitsDecorator self, IntsKey a0) -> bool
9927 has_attribute(_TrivialTraitsDecorator self, StringKey a0) -> bool
9928 has_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> bool
9929 has_attribute(_TrivialTraitsDecorator self, ObjectKey a0) -> bool
9931 return _IMP_kernel._TrivialTraitsDecorator_has_attribute(self, *args)
9934 def get_derivative(self, a0):
9935 """get_derivative(_TrivialTraitsDecorator self, FloatKey a0) -> double"""
9936 return _IMP_kernel._TrivialTraitsDecorator_get_derivative(self, a0)
9940 """get_name(_TrivialTraitsDecorator self) -> std::string"""
9941 return _IMP_kernel._TrivialTraitsDecorator_get_name(self)
9945 """clear_caches(_TrivialTraitsDecorator self)"""
9946 return _IMP_kernel._TrivialTraitsDecorator_clear_caches(self)
9949 def set_name(self, a0):
9950 """set_name(_TrivialTraitsDecorator self, std::string a0)"""
9951 return _IMP_kernel._TrivialTraitsDecorator_set_name(self, a0)
9955 """set_check_level(_TrivialTraitsDecorator self, IMP::CheckLevel a0)"""
9956 return _IMP_kernel._TrivialTraitsDecorator_set_check_level(self, a0)
9959 def add_to_derivative(self, a0, a1, a2):
9960 """add_to_derivative(_TrivialTraitsDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9961 return _IMP_kernel._TrivialTraitsDecorator_add_to_derivative(self, a0, a1, a2)
9965 """set_is_optimized(_TrivialTraitsDecorator self, FloatKey a0, bool a1)"""
9966 return _IMP_kernel._TrivialTraitsDecorator_set_is_optimized(self, a0, a1)
9969 def get_is_optimized(self, a0):
9970 """get_is_optimized(_TrivialTraitsDecorator self, FloatKey a0) -> bool"""
9971 return _IMP_kernel._TrivialTraitsDecorator_get_is_optimized(self, a0)
9974 def get_check_level(self):
9975 """get_check_level(_TrivialTraitsDecorator self) -> IMP::CheckLevel"""
9976 return _IMP_kernel._TrivialTraitsDecorator_get_check_level(self)
9979 def __eq__(self, *args):
9981 __eq__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9982 __eq__(_TrivialTraitsDecorator self, Particle d) -> bool
9984 return _IMP_kernel._TrivialTraitsDecorator___eq__(self, *args)
9987 def __ne__(self, *args):
9989 __ne__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9990 __ne__(_TrivialTraitsDecorator self, Particle d) -> bool
9992 return _IMP_kernel._TrivialTraitsDecorator___ne__(self, *args)
9995 def __le__(self, *args):
9997 __le__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9998 __le__(_TrivialTraitsDecorator self, Particle d) -> bool
10000 return _IMP_kernel._TrivialTraitsDecorator___le__(self, *args)
10003 def __lt__(self, *args):
10005 __lt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
10006 __lt__(_TrivialTraitsDecorator self, Particle d) -> bool
10008 return _IMP_kernel._TrivialTraitsDecorator___lt__(self, *args)
10011 def __ge__(self, *args):
10013 __ge__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
10014 __ge__(_TrivialTraitsDecorator self, Particle d) -> bool
10016 return _IMP_kernel._TrivialTraitsDecorator___ge__(self, *args)
10019 def __gt__(self, *args):
10021 __gt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
10022 __gt__(_TrivialTraitsDecorator self, Particle d) -> bool
10024 return _IMP_kernel._TrivialTraitsDecorator___gt__(self, *args)
10027 def __hash__(self):
10028 """__hash__(_TrivialTraitsDecorator self) -> std::size_t"""
10029 return _IMP_kernel._TrivialTraitsDecorator___hash__(self)
10033 """__str__(_TrivialTraitsDecorator self) -> std::string"""
10034 return _IMP_kernel._TrivialTraitsDecorator___str__(self)
10037 def __repr__(self):
10038 """__repr__(_TrivialTraitsDecorator self) -> std::string"""
10039 return _IMP_kernel._TrivialTraitsDecorator___repr__(self)
10041 __swig_destroy__ = _IMP_kernel.delete__TrivialTraitsDecorator
10042 __del__ =
lambda self:
None
10043 _TrivialTraitsDecorator_swigregister = _IMP_kernel._TrivialTraitsDecorator_swigregister
10044 _TrivialTraitsDecorator_swigregister(_TrivialTraitsDecorator)
10046 def _TrivialTraitsDecorator_get_default_decorator_traits():
10047 """_TrivialTraitsDecorator_get_default_decorator_traits() -> StringKey"""
10048 return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
10050 def _TrivialTraitsDecorator_setup_particle(*args):
10052 setup_particle(Model m, ParticleIndex pi, StringKey tr) -> _TrivialTraitsDecorator
10053 setup_particle(Model m, ParticleIndex pi) -> _TrivialTraitsDecorator
10054 setup_particle(_ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
10055 _TrivialTraitsDecorator_setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
10057 return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
10059 def _TrivialTraitsDecorator_get_is_setup(*args):
10061 get_is_setup(_ParticleAdaptor p, StringKey tr) -> bool
10062 get_is_setup(_ParticleAdaptor p) -> bool
10063 get_is_setup(Model m, ParticleIndex pi, StringKey k) -> bool
10064 _TrivialTraitsDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
10066 return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
10068 def _TrivialTraitsDecorator_get_default_key():
10069 """_TrivialTraitsDecorator_get_default_key() -> StringKey"""
10070 return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
10073 def __lshift__(*args):
10075 __lshift__(_ostream out, _TrivialDecorator n) -> _ostream
10076 __lshift__(_ostream out, _TrivialDerivedDecorator n) -> _ostream
10077 __lshift__(_ostream out, _TrivialTraitsDecorator n) -> _ostream
10079 return _IMP_kernel.__lshift__(*args)
10080 class _ConstOptimizer(Optimizer):
10081 """Proxy of C++ IMP::internal::_ConstOptimizer class"""
10082 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
10084 def __init__(self, m):
10085 """__init__(IMP::internal::_ConstOptimizer self, Model m) -> _ConstOptimizer"""
10086 this = _IMP_kernel.new__ConstOptimizer(m)
10088 self.this.append(this)
10092 def do_optimize(self, max_steps):
10093 """do_optimize(_ConstOptimizer self, unsigned int max_steps) -> IMP::Float"""
10094 return _IMP_kernel._ConstOptimizer_do_optimize(self, max_steps)
10098 """get_version_info(_ConstOptimizer self) -> VersionInfo"""
10099 return _IMP_kernel._ConstOptimizer_get_version_info(self)
10103 """__str__(_ConstOptimizer self) -> std::string"""
10104 return _IMP_kernel._ConstOptimizer___str__(self)
10107 def __repr__(self):
10108 """__repr__(_ConstOptimizer self) -> std::string"""
10109 return _IMP_kernel._ConstOptimizer___repr__(self)
10114 return _object_cast_to__ConstOptimizer(o)
10116 _ConstOptimizer_swigregister = _IMP_kernel._ConstOptimizer_swigregister
10117 _ConstOptimizer_swigregister(_ConstOptimizer)
10121 """get_particle(Particle p) -> Particle"""
10122 return _IMP_kernel.get_particle(p)
10124 def _decorator_test(p):
10125 """_decorator_test(Particle p)"""
10126 return _IMP_kernel._decorator_test(p)
10128 def _overloaded_decorator(*args):
10130 _overloaded_decorator(_TrivialDecorator a) -> int
10131 _overloaded_decorator(_TrivialDerivedDecorator a) -> int
10133 return _IMP_kernel._overloaded_decorator(*args)
10135 def _take_particles(*args):
10137 _take_particles(IMP::Particles const & ps) -> unsigned int
10138 _take_particles(Model m, IMP::Particles const & ps) -> unsigned int
10139 _take_particles(Model m, IMP::Particles const & ps, TextOutput out) -> unsigned int
10141 return _IMP_kernel._take_particles(*args)
10143 def _give_particles(m):
10144 """_give_particles(Model m) -> IMP::Particles const &"""
10145 return _IMP_kernel._give_particles(m)
10147 def _pass_particles(ps):
10148 """_pass_particles(IMP::Particles const & ps) -> IMP::Particles const &"""
10149 return _IMP_kernel._pass_particles(ps)
10151 def _pass_particle(ps):
10152 """_pass_particle(Particle ps) -> Particle"""
10153 return _IMP_kernel._pass_particle(ps)
10155 def _pass_particle_pair(pp):
10156 """_pass_particle_pair(IMP::ParticlePair const & pp) -> IMP::ParticlePair const &"""
10157 return _IMP_kernel._pass_particle_pair(pp)
10159 def _give_particles_copy(m):
10160 """_give_particles_copy(Model m) -> IMP::Particles"""
10161 return _IMP_kernel._give_particles_copy(m)
10163 def _pass_float_keys(input):
10164 """_pass_float_keys(IMP::FloatKeys const & input) -> IMP::FloatKeys"""
10165 return _IMP_kernel._pass_float_keys(input)
10169 _pass(IMP::Particles const & p) -> IMP::Particles const
10170 _pass(IMP::Restraints const & p) -> IMP::Restraints const &
10172 return _IMP_kernel._pass(*args)
10174 def _pass_decorators(p):
10175 """_pass_decorators(IMP::internal::_TrivialDecorators const & p) -> IMP::internal::_TrivialDecorators const &"""
10176 return _IMP_kernel._pass_decorators(p)
10178 def _pass_decorator_traits(p):
10179 """_pass_decorator_traits(IMP::internal::_TrivialTraitsDecorators const & p) -> IMP::internal::_TrivialTraitsDecorators const &"""
10180 return _IMP_kernel._pass_decorator_traits(p)
10182 def _pass_particle_pairs(p):
10183 """_pass_particle_pairs(IMP::ParticlePairsTemp const & p) -> IMP::ParticlePairsTemp"""
10184 return _IMP_kernel._pass_particle_pairs(p)
10186 def _pass_particle_index_pairs(p):
10187 """_pass_particle_index_pairs(IMP::ParticleIndexPairs const & p) -> IMP::ParticleIndexPairs"""
10188 return _IMP_kernel._pass_particle_index_pairs(p)
10190 def _pass_model_objects(p):
10191 """_pass_model_objects(IMP::ModelObjectsTemp const & p) -> IMP::ModelObjectsTemp"""
10192 return _IMP_kernel._pass_model_objects(p)
10194 def _pass_particles_temps(ps):
10195 """_pass_particles_temps(IMP::ParticlesTemps const & ps) -> IMP::ParticlesTemps"""
10196 return _IMP_kernel._pass_particles_temps(ps)
10198 def _test_overload(*args):
10200 _test_overload(IMP::Particles const & ps) -> int
10201 _test_overload(IMP::Restraints const & ps) -> int
10203 return _IMP_kernel._test_overload(*args)
10205 def _get_range(m, k):
10206 """_get_range(Model m, FloatKey k) -> IMP::FloatRange"""
10207 return _IMP_kernel._get_range(m, k)
10209 def _create_particles_from_pdb(name, m):
10210 """_create_particles_from_pdb(std::string name, Model m) -> IMP::ParticleIndexes"""
10211 return _IMP_kernel._create_particles_from_pdb(name, m)
10212 class _LogPairScore(PairScore):
10213 """Proxy of C++ IMP::internal::_LogPairScore class"""
10214 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
10215 __repr__ = _swig_repr
10217 def __init__(self):
10218 """__init__(IMP::internal::_LogPairScore self) -> _LogPairScore"""
10219 this = _IMP_kernel.new__LogPairScore()
10221 self.this.append(this)
10225 def do_get_inputs(self, arg2, arg3):
10226 """do_get_inputs(_LogPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
10227 return _IMP_kernel._LogPairScore_do_get_inputs(self, arg2, arg3)
10231 """get_version_info(_LogPairScore self) -> VersionInfo"""
10232 return _IMP_kernel._LogPairScore_get_version_info(self)
10235 def get_particle_pairs(self):
10236 """get_particle_pairs(_LogPairScore self) -> IMP::ParticlePairsTemp"""
10237 return _IMP_kernel._LogPairScore_get_particle_pairs(self)
10241 """clear(_LogPairScore self)"""
10242 return _IMP_kernel._LogPairScore_clear(self)
10245 def get_contains(self, pp):
10246 """get_contains(_LogPairScore self, IMP::ParticlePair const & pp) -> bool"""
10247 return _IMP_kernel._LogPairScore_get_contains(self, pp)
10249 _LogPairScore_swigregister = _IMP_kernel._LogPairScore_swigregister
10250 _LogPairScore_swigregister(_LogPairScore)
10253 def _overloaded_particles(*args):
10255 _overloaded_particles(Particle arg1)
10256 _overloaded_particles(IMP::Particles const & arg1)
10257 _overloaded_particles(IMP::ParticlesTemp const & arg1)
10258 _overloaded_particles(Model arg1, IMP::ParticleIndexes const & arg2)
10259 _overloaded_particles(IMP::internal::_TrivialDecorators const & arg1)
10260 _overloaded_particles(_TrivialDecorator arg1)
10262 return _IMP_kernel._overloaded_particles(*args)
10263 class _ImplicitParticles(object):
10264 """Proxy of C++ IMP::internal::_ImplicitParticles class"""
10265 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
10266 __repr__ = _swig_repr
10268 def __init__(self, *args):
10270 __init__(IMP::internal::_ImplicitParticles self, Particle arg2) -> _ImplicitParticles
10271 __init__(IMP::internal::_ImplicitParticles self, IMP::Particles const & arg2) -> _ImplicitParticles
10272 __init__(IMP::internal::_ImplicitParticles self, IMP::ParticlesTemp const & arg2) -> _ImplicitParticles
10273 __init__(IMP::internal::_ImplicitParticles self, Model arg2, IMP::ParticleIndexes const & arg3) -> _ImplicitParticles
10274 __init__(IMP::internal::_ImplicitParticles self, IMP::internal::_TrivialDecorators const & arg2) -> _ImplicitParticles
10275 __init__(IMP::internal::_ImplicitParticles self, _TrivialDecorator arg2) -> _ImplicitParticles
10277 this = _IMP_kernel.new__ImplicitParticles(*args)
10279 self.this.append(this)
10282 __swig_destroy__ = _IMP_kernel.delete__ImplicitParticles
10283 __del__ =
lambda self:
None
10284 _ImplicitParticles_swigregister = _IMP_kernel._ImplicitParticles_swigregister
10285 _ImplicitParticles_swigregister(_ImplicitParticles)
10288 def _implicit_particles(arg1):
10289 """_implicit_particles(_ImplicitParticles arg1)"""
10290 return _IMP_kernel._implicit_particles(arg1)
10292 def _take_particle_adaptor(pa):
10293 """_take_particle_adaptor(_ParticleAdaptor pa) -> ParticleIndex"""
10294 return _IMP_kernel._take_particle_adaptor(pa)
10296 def _take_particle_indexes_adaptor(pa):
10297 """_take_particle_indexes_adaptor(_ParticleIndexesAdaptor pa) -> IMP::ParticleIndexes"""
10298 return _IMP_kernel._take_particle_indexes_adaptor(pa)
10299 class ScopedSetFloatAttribute(_RAII):
10300 """Proxy of C++ IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> class"""
10301 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
10303 def __init__(self, *args):
10305 __init__(IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> self) -> ScopedSetFloatAttribute
10306 __init__(IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> self, Particle p, FloatKey key, double const & value) -> ScopedSetFloatAttribute
10308 this = _IMP_kernel.new_ScopedSetFloatAttribute(*args)
10310 self.this.append(this)
10314 def set(self, p, key, value):
10315 """set(ScopedSetFloatAttribute self, Particle p, FloatKey key, double const & value)"""
10316 return _IMP_kernel.ScopedSetFloatAttribute_set(self, p, key, value)
10320 """reset(ScopedSetFloatAttribute self)"""
10321 return _IMP_kernel.ScopedSetFloatAttribute_reset(self)
10323 __swig_destroy__ = _IMP_kernel.delete_ScopedSetFloatAttribute
10324 __del__ =
lambda self:
None
10326 def show(self, *args):
10328 show(ScopedSetFloatAttribute self, _ostream out)
10329 show(ScopedSetFloatAttribute self)
10331 return _IMP_kernel.ScopedSetFloatAttribute_show(self, *args)
10335 """__str__(ScopedSetFloatAttribute self) -> std::string"""
10336 return _IMP_kernel.ScopedSetFloatAttribute___str__(self)
10339 def __repr__(self):
10340 """__repr__(ScopedSetFloatAttribute self) -> std::string"""
10341 return _IMP_kernel.ScopedSetFloatAttribute___repr__(self)
10343 ScopedSetFloatAttribute_swigregister = _IMP_kernel.ScopedSetFloatAttribute_swigregister
10344 ScopedSetFloatAttribute_swigregister(ScopedSetFloatAttribute)
10347 def _get_module_data_path(module, file_name):
10348 """_get_module_data_path(std::string module, std::string file_name) -> std::string"""
10349 return _IMP_kernel._get_module_data_path(module, file_name)
10351 def _get_module_example_path(module, file_name):
10352 """_get_module_example_path(std::string module, std::string file_name) -> std::string"""
10353 return _IMP_kernel._get_module_example_path(module, file_name)
10362 if sys.platform ==
'win32' and 'IMP_LD_PATH' in os.environ:
10363 dirs = os.environ[
'IMP_LD_PATH'].split(
":")
10364 pathcomps = os.environ[
'PATH'].split(
";")
10366 if d
not in pathcomps:
10367 os.environ[
'PATH'] = d +
';' + os.environ[
'PATH']
10375 """Allow command line tools to easily implement multiple commands.
10376 Typically, an IMP command line tool will use an instance of this class
10377 to provide a consistent interface to multiple distinct commands
10378 from a single binary, rather than providing a potentially large
10379 number of binaries. This is similar to the way a number of common
10380 command line tools outside of IMP function (e.g. Git provides a single
10381 `git` tool which implements multiple commands - `git add`, `git commit`,
10382 `git push` and so on).
10384 Each command is implemented with a Python module of the same name
10385 that can be imported from the module (for example, if `module_name`
10386 is `IMP.foo`, the `bar` command is provided by the `IMP.foo.bar` Python
10387 module, which would usually be found as `modules/foo/pyext/src/bar.py`).
10388 Each such module should have a docstring and a `%main()` method
10389 that takes no arguments (the module should also call its `%main()` method
10390 if it is run directly, i.e. with something like
10391 `if __name__=="__main__": %main()`). The encompassing module
10392 (`IMP.foo` in the example) should define `_all_commands` as a Python
10393 list of all valid commands.
10395 See the `multifit` and `cnmultifit` command line tools for example
10401 @param short_help A few words that describe the command line tool.
10402 @param long_help Longer text, used in the `help` command.
10403 @param module_name Name of the module (e.g. `IMP.foo`) that
10404 implements the commands.
10406 self.short_help = short_help
10407 self.long_help = long_help
10408 self.module_name = module_name
10409 self._all_commands = self.import_module()._all_commands
10410 self._progname = os.path.basename(sys.argv[0])
10413 """Call this method to act upon the user-provided command line"""
10414 if len(sys.argv) <= 1:
10415 print(self.short_help +
" Use '%s help' for help." % self._progname)
10417 command = sys.argv[1]
10418 if command
in (
'help',
'--help',
'-h'):
10419 if len(sys.argv) == 3:
10420 self.show_command_help(sys.argv[2])
10423 elif command ==
'--version':
10424 self.show_version()
10425 elif command
in self._all_commands:
10426 self.do_command(command)
10428 self.unknown_command(command)
10430 def import_module(self, mod=None):
10431 modname = self.module_name
10432 if mod
is not None:
10433 modname +=
"." + mod
10434 return __import__(modname, {}, {}, [
''])
10436 def unknown_command(self, command):
10437 print(
"Unknown command: '%s'" % command)
10438 print(
"Use '%s help' for help." % self._progname)
10441 def _get_version(self):
10444 def show_version(self):
10445 print(self._progname +
' ' + self._get_version())
10447 def show_help(self):
10448 ver = self._get_version()
10449 print(
"%s, version %s." % (self._progname, ver))
10450 print(self.long_help +
"""
10452 This program is part of IMP, the Integrative Modeling Platform,
10453 which is Copyright 2007-2022 IMP Inventors.
10454 For additional information about IMP, see <https://integrativemodeling.org>.
10456 Usage: %s <command> [options] [args]
10458 Commands:""" % self._progname)
10459 commands = self._all_commands[:] + [
'help']
10461 cmdlen = max([len(c)
for c
in commands])
10464 doc =
'Get help on using %s.' % self._progname
10466 doc = self.import_module(c).__doc__
or "<no help>"
10467 c +=
' ' * (cmdlen - len(c))
10468 print(
' ' + c +
' ' + doc)
10470 Use "%s help <command>" for detailed help on any command
10471 or "%s --version" to see the version number.""" % (self._progname,
10474 def do_command(self, command):
10475 mod = self.import_module(command)
10476 sys.argv[0] = self._progname +
' ' + command
10480 def show_command_help(self, command):
10481 if command ==
'help':
10483 elif command
in self._all_commands
or command ==
'help':
10484 mod = self.import_module(command)
10485 sys.argv = [self._progname +
' ' + command,
'--help']
10488 self.unknown_command(command)
10495 g = networkx.DiGraph()
10496 if len(ig.get_vertices()) == 0:
10505 return self.p.get_name()
10507 def __call__(self, name):
10508 return self.p.__call__(name)
10510 for vi
in ig.get_vertices():
10511 n = ig.get_vertex_name(vi)
10512 g.add_node(NodeWrapper(n))
10513 for vi
in ig.get_vertices():
10514 n = ig.get_vertex_name(vi)
10515 for ni
in ig.get_out_neighbors(vi):
10516 nn = ig.get_vertex_name(ni)
10517 g.add_edge(NodeWrapper(n), NodeWrapper(nn))
10524 n0 = name.get_name()
10527 n1 = str(n0).replace(
'"',
'')
10528 n2 = n1.replace(
"\n",
'')
10531 from altgraph
import Graph, Dot
10532 graph = Graph.Graph()
10533 for i, v
in enumerate(g.get_vertices()):
10535 for i, v
in enumerate(g.get_vertices()):
10536 for n
in g.get_out_neighbors(v):
10537 graph.add_edge(v, n)
10538 dot = Dot.Dot(graph)
10539 for i, v
in enumerate(g.get_vertices()):
10540 dot.node_style(i, label=clean(g.get_vertex_name(v)))
10547 st = g.get_graphviz_string()
10548 open(tfn,
"w").write(st)
10551 except ImportError:
10553 sys.stderr.write(
"Cannot run dot on Python 2.3 systems.\n")
10556 print(
"running dot")
10557 sp = subprocess.Popen([
"dot",
"-Tpdf", tfn,
"-o" + tfon])
10561 sys.stderr.write(
"The dot command from the graphviz package was not found. Please make sure it is in the PATH passed to IMP.\n")
10564 if platform.system() ==
"Darwin":
10567 cmd = [
"gv",
"acroread",
"xpdf"]
10570 print(
"launching viewer " + c)
10572 subprocess.check_call([c, tfon])
10578 print(
"Could not display file. It is saved at " + tfon)
10588 """Mark a Python module as deprecated.
10589 @note The `module` argument would normally be `__name__`.
10590 @see [deprecation support](@ref deprecation)."""
10592 "Module %s is deprecated. %s\n" % (module, help_message))
10595 """Python decorator to mark a class as deprecated.
10596 @see [deprecation support](@ref deprecation)."""
10598 orig_init = obj.__init__
10601 @functools.wraps(orig_init, (
'__name__',
'__doc__'))
10602 def __init__(obj, *args, **keys):
10604 % (type(obj), help_message))
10605 orig_init(obj, *args, **keys)
10606 obj.__init__ = __init__
10611 """Python decorator to mark a method as deprecated.
10612 @see [deprecation support](@ref deprecation)."""
10613 def out_wrapper(obj):
10614 @functools.wraps(obj)
10615 def wrapper(cls, *args, **keys):
10617 % (obj.__name__, type(cls), help_message))
10618 return obj(cls, *args, **keys)
10623 """Python decorator to mark a function as deprecated.
10624 @see [deprecation support](@ref deprecation)."""
10625 def out_wrapper(obj):
10626 @functools.wraps(obj)
10627 def wrapper(*args, **keys):
10629 % (obj.__name__, help_message))
10630 return obj(*args, **keys)
10634 @contextlib.contextmanager
10636 """Context manager to temporarily allow (or disallow) deprecated code.
10637 @see [deprecation support](@ref deprecation)."""
10644 def _get_all_flags(ntokens):
10645 """_get_all_flags(unsigned int ntokens) -> IMP::Strings"""
10646 return _IMP_kernel._get_all_flags(ntokens)
10648 def _print_internal_help(out, description):
10649 """_print_internal_help(_ostream out, std::string description)"""
10650 return _IMP_kernel._print_internal_help(out, description)
10656 class _PassThroughAction(argparse.Action):
10657 """Pass an argument through to the IMP Boost parser"""
10658 def __call__(self, parser, namespace, values, option_string=None):
10659 parser._boost_command_line.append(option_string)
10661 parser._boost_command_line.append(values)
10664 if option_string
in (
'-h',
'--help',
'--help_advanced',
'--version'):
10665 parser._handle_boost()
10669 """IMP-specific subclass of argparse.ArgumentParser.
10670 This adds options common to all IMP applications
10671 (see IMP::setup_from_argv()).
10674 def __init__(self, *args, **kwargs):
10676 kwargs[
'add_help'] =
False
10677 super(ArgumentParser, self).__init__(*args, **kwargs)
10678 for ntoken
in (0, 1):
10679 flags = _get_all_flags(ntoken)
10681 arg = [
'-h',
'--help']
if f ==
'help' else [
'--' + f]
10682 self.add_argument(*arg, help=argparse.SUPPRESS,
10683 nargs=
None if ntoken
else 0,
10684 action=_PassThroughAction,
10685 default=argparse.SUPPRESS)
10688 """Parse the command line and return optional and positional arguments.
10689 This functions in the same way as the method in the base class
10690 argparse.ArgumentParser, except that it also processes optional
10691 arguments common to all IMP applications (these are not returned
10692 in `args`, but can be obtained in the usual way, e.g. by calling
10693 IMP::get_string_flag()).
10696 self._boost_command_line = [sys.argv[0]]
10697 ret = super(ArgumentParser, self).
parse_args(args, namespace)
10698 if len(self._boost_command_line) > 1:
10699 self._handle_boost()
10702 def _get_description(self):
10703 return self.format_help() +
"\nOptions common to all IMP applications:"
10705 def print_help(self, file=None):
10706 _print_internal_help(file
if file
else sys.stdout,
10707 self._get_description())
10709 def _handle_boost(self):
10711 self._get_description(),
10714 class RandomNumberGenerator(object):
10715 """Proxy of C++ IMP::RandomNumberGenerator class"""
10716 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
10717 __repr__ = _swig_repr
10720 """seed(RandomNumberGenerator self, ::boost::int32_t x)"""
10721 return _IMP_kernel.RandomNumberGenerator_seed(self, x)
10724 def __call__(self):
10725 """__call__(RandomNumberGenerator self) -> int"""
10726 return _IMP_kernel.RandomNumberGenerator___call__(self)
10729 def __init__(self):
10730 """__init__(IMP::RandomNumberGenerator self) -> RandomNumberGenerator"""
10731 this = _IMP_kernel.new_RandomNumberGenerator()
10733 self.this.append(this)
10736 __swig_destroy__ = _IMP_kernel.delete_RandomNumberGenerator
10737 __del__ =
lambda self:
None
10738 RandomNumberGenerator_swigregister = _IMP_kernel.RandomNumberGenerator_swigregister
10739 RandomNumberGenerator_swigregister(RandomNumberGenerator)
10744 get_random_float_uniform() -> float
10745 get_random_float_uniform(float min, float max) -> float
10747 return _IMP_kernel.get_random_float_uniform(*args)
10751 get_random_double_uniform() -> double
10752 get_random_double_uniform(double min, double max) -> double
10754 return _IMP_kernel.get_random_double_uniform(*args)
10756 def get_random_floats_normal(n, mean=0.0, stddev=1.0):
10758 get_random_floats_normal(unsigned int n, float mean=0.0, float stddev=1.0) -> IMP::Vector< float >
10759 get_random_floats_normal(unsigned int n, float mean=0.0) -> IMP::Vector< float >
10760 get_random_floats_normal(unsigned int n) -> IMP::Vector< float >
10762 return _IMP_kernel.get_random_floats_normal(n, mean, stddev)
10764 def get_random_doubles_normal(n, mean=0.0, stddev=1.0):
10766 get_random_doubles_normal(unsigned int n, double mean=0.0, double stddev=1.0) -> IMP::Vector< double >
10767 get_random_doubles_normal(unsigned int n, double mean=0.0) -> IMP::Vector< double >
10768 get_random_doubles_normal(unsigned int n) -> IMP::Vector< double >
10770 return _IMP_kernel.get_random_doubles_normal(n, mean, stddev)
10772 def get_random_floats_uniform(n):
10773 """get_random_floats_uniform(unsigned int n) -> IMP::Vector< float >"""
10774 return _IMP_kernel.get_random_floats_uniform(n)
10776 def get_random_doubles_uniform(n):
10777 """get_random_doubles_uniform(unsigned int n) -> IMP::Vector< double >"""
10778 return _IMP_kernel.get_random_doubles_uniform(n)
10781 """get_random_seed() -> boost::uint64_t"""
10782 return _IMP_kernel.get_random_seed()
10784 def _get_derivatives_numpy(m, k, m_pyobj):
10785 """_get_derivatives_numpy(Model m, FloatKey k, PyObject * m_pyobj) -> PyObject *"""
10786 return _IMP_kernel._get_derivatives_numpy(m, k, m_pyobj)
10788 def _get_floats_numpy(m, k, m_pyobj):
10789 """_get_floats_numpy(Model m, FloatKey k, PyObject * m_pyobj) -> PyObject *"""
10790 return _IMP_kernel._get_floats_numpy(m, k, m_pyobj)
10792 def _get_ints_numpy(m, k, m_pyobj):
10793 """_get_ints_numpy(Model m, IntKey k, PyObject * m_pyobj) -> PyObject *"""
10794 return _IMP_kernel._get_ints_numpy(m, k, m_pyobj)
10796 def _get_spheres_numpy(m, m_pyobj):
10797 """_get_spheres_numpy(Model m, PyObject * m_pyobj) -> PyObject *"""
10798 return _IMP_kernel._get_spheres_numpy(m, m_pyobj)
10800 def _get_sphere_derivatives_numpy(m, m_pyobj):
10801 """_get_sphere_derivatives_numpy(Model m, PyObject * m_pyobj) -> PyObject *"""
10802 return _IMP_kernel._get_sphere_derivatives_numpy(m, m_pyobj)
10806 ParticleIndex = numpy.int32
10807 except ImportError:
10812 """get_module_version() -> std::string const"""
10813 return _IMP_kernel.get_module_version()
10816 """get_example_path(std::string fname) -> std::string"""
10817 return _IMP_kernel.get_example_path(fname)
10820 """get_data_path(std::string fname) -> std::string"""
10821 return _IMP_kernel.get_data_path(fname)
10823 from .
import _version_check
10828 random_number_generator = cvar.random_number_generator
Particle * get_particle(ParticleIndex p) const
Get the particle from an index.
def get_ints_numpy
Get the model's attribute array for IntKey k as a NumPy array.
void add_int_flag(std::string name, size_t default_value, std::string description)
Allow command line tools to easily implement multiple commands.
CheckLevel get_check_level()
Get the current audit mode.
Key< 11 > TriggerKey
The type used to identify changed model properties.
Key< 0 > FloatKey
The type used to identify float attributes in the Particles.
def allow_deprecated
Context manager to temporarily allow (or disallow) deprecated code.
std::string get_unique_name(std::string templ)
Return a unique name produced from the string.
DependencyGraph get_dependency_graph(Model *m)
def get_floats_numpy
Get the model's attribute array for FloatKey k as a NumPy array.
Objects get_live_objects()
Return pointers to all live objects.
Vector< char > write_particles_to_buffer(const ParticlesTemp &particles, const FloatKeys &keys)
return a binary buffer with the data
def main
Call this method to act upon the user-provided command line.
boost::graph DependencyGraph
Directed graph on the interactions between the various objects in the model.
ContainersTemp get_input_containers(const ModelObjectsTemp &mos)
Return all the input particles for a given ModelObject.
def deprecated_module
Mark a Python module as deprecated.
Vector< VectorD< D > > get_vertices(const BoundingBoxD< D > &bb)
Return a list of the 2^D bounding points for the bounding box.
Array< 4, WeakPointer< Particle >, Particle * > ParticleQuad
bool get_bool_flag(std::string name)
void handle_use_deprecated(std::string message)
Break in this method in gdb to find deprecated uses at runtime.
void set_progress_display(std::string description, unsigned int steps)
Set up the progress bar with the passed description.
def deprecated_function
Python decorator to mark a function as deprecated.
virtual ::IMP::VersionInfo get_version_info() const override
Get information about the module and version of the object.
void remove_attribute(TypeKey attribute_key, ParticleIndex particle)
remove particle attribute with the specied key
Index< ParticleIndexTag > ParticleIndex
ParticlesTemp get_particles(Model *m, const ParticleIndexes &ps)
Get the particles from a list of indexes.
Key< 6 > ParticleIndexesKey
The type used to identify a particle attribute in the Particles.
Array< 3, WeakPointer< Particle >, Particle * > ParticleTriplet
ContainersTemp get_output_containers(const ModelObjectsTemp &mos)
Return all the output particles for a given ModelObject.
void add_particle(RMF::FileHandle fh, Particle *hs)
virtual void clear_caches()
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
void add_string_flag(std::string name, std::string default_value, std::string description)
LogLevel get_log_level()
Get the currently active global log level.
def get_sphere_derivatives_numpy
Get the model's XYZR attribute derivatives arrays as NumPy arrays.
void set_deprecation_warnings(bool tf)
Toggle printing of warnings on using deprecated classes.
TextOutput create_temporary_file(std::string prefix="imp_temp", std::string suffix="")
Create a temporary file. The path can be extracted from the TextOutput.
ParticlesTemp get_output_particles(const ModelObjectsTemp &mos)
Return all the output particles for a given ModelObject.
ScoringFunction * create_scoring_function(RestraintType *rs, double weight=1.0, double max=NO_MAX, std::string name=std::string())
Create a ScoringFunction on a single restraint.
void write_help(std::ostream &out=std::cerr)
Key< 2 > StringKey
The type used to identify string attributes in the Particles.
size_t get_int_flag(std::string name)
Key< 10 > FloatsKey
The type used to identify float vector attributes in the Particles.
void add_restraint(RMF::FileHandle fh, Restraint *hs)
boost::uint64_t get_random_seed()
Return the initial random seed.
Key< 3 > ParticleIndexKey
The type used to identify a particle attribute in the Particles.
Strings get_live_object_names()
Return the names of all live objects.
void add_to_progress_display(unsigned int step=1)
Set the current progress.
void add_attribute(TypeKey attribute_key, ParticleIndex particle, Type value)
add particle atribute with the specied key and initial value
void add_float_flag(std::string name, double default_value, std::string description)
virtual void do_destroy()
Ints get_index(const ParticlesTemp &particles, const Subset &subset, const Subsets &excluded)
Common base class for heavy weight IMP objects.
ParticleIndexes get_particle_indexes(ParticlesTemp const &particles)
def deprecated_method
Python decorator to mark a method as deprecated.
void reset_log_timer()
Reset the log timer.
void add_restraints(RMF::FileHandle fh, const Restraints &hs)
void add_to_log(LogLevel level, std::string to_write)
Write a string to the log, for Python.
def parse_args
Parse the command line and return optional and positional arguments.
void set_is_optimized(TypeKey attribute_key, ParticleIndex particle, bool true_or_false)
Key< 1 > IntKey
The type used to identify int attributes in the Particles.
Version and module information for Objects.
Restraints create_decomposition(const RestraintsTemp &rs)
Return the decomposition of a list of restraints.
std::string get_relative_path(std::string base, std::string relative)
Return a path to a file relative to another file.
void set_deprecation_exceptions(bool tf)
Toggle whether an exception is thrown when a deprecated method is used.
def get_spheres_numpy
Get the model's XYZR attribute arrays as NumPy arrays.
Key< 4 > ObjectKey
The type used to identify an Object attribute.
Interface to specialized Particle types (e.g. atoms)
IMP-specific subclass of argparse.ArgumentParser.
def get_derivatives_numpy
Get the model's attribute derivatives array for FloatKey k as a NumPy array.
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
std::string get_absolute_path(std::string file)
Convert a possibly relative path to an absolute path.
std::string get_executable_name()
Return the name of the current executable.
void set_log_level(LogLevel l)
Set the current global log level.
unsigned int get_number_of_threads()
float get_random_float_uniform()
Return a uniformly distributed float number in range [0..1)
def deprecated_object
Python decorator to mark a class as deprecated.
ParticlesTemp get_input_particles(const ModelObjectsTemp &mos)
Return all the input particles for a given ModelObject.
void set_show_leaked_objects(bool tf)
Set whether to complain about objects not being properly cleaned up.
bool get_deprecation_exceptions()
Get whether an exception is thrown when a deprecated method is used.
void set_log_timer(bool tb)
Set whether log messages are tagged with the current log time.
void show_restraint_hierarchy(ScoringFunctionAdaptor rs, std::ostream &out=std::cout)
Print the hierarchy of restraints.
DependencyGraph get_pruned_dependency_graph(Model *m)
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
Object(std::string name)
Construct an object with the given name.
Array< 2, WeakPointer< Particle >, Particle * > ParticlePair
Key< 5 > IntsKey
The type used to identify int attributes in the Particles.
Restraints create_restraints(RMF::FileConstHandle fh, Model *m)
std::string show_graphviz(Graph g)
void set_check_level(CheckLevel l)
std::string get_string_flag(std::string name)
networkx::DiGraph get_networkx_graph(Graph g)
double get_random_double_uniform()
Return a uniformly distributed double number in range [0..1)
Key< 8 > ModelKey
The type used to identify data stored directly in the model.
void show_altgraph(Graph g)
void update()
Sometimes it is useful to be able to make sure the model is up to date.
void setup_from_argv(int argc, char **argv, std::string description)
Parse the command line flags and return the positional arguments.
void add_bool_flag(std::string name, std::string description)
ParticleIndexes get_indexes(const ParticlesTemp &ps)
Get the indexes from a list of particles.
void read_particles_from_buffer(const Vector< char > &buffer, const ParticlesTemp &particles, const FloatKeys &keys)
load found attributes into the particles
Abstract single variable functor class for score functions.
void set_number_of_threads(unsigned int n)
double get_float_flag(std::string name)
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
ScoreStatesTemp get_update_order(ScoreStatesTemp input)
std::string get_module_version()
Return the version of this module, as a string.
std::string create_temporary_file_name(std::string prefix="imp_temp", std::string suffix="")
Create a temporary file.