10 from __future__
import print_function, division, absolute_import
15 from sys
import version_info
16 if version_info >= (2, 6, 0):
17 def swig_import_helper():
18 from os.path
import dirname
22 fp, pathname, description = imp.find_module(
'_IMP_kernel', [dirname(__file__)])
28 _mod = imp.load_module(
'_IMP_kernel', fp, pathname, description)
32 _IMP_kernel = swig_import_helper()
33 del swig_import_helper
38 _swig_property = property
43 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
44 if (name ==
"thisown"):
45 return self.this.own(value)
47 if type(value).__name__ ==
'SwigPyObject':
48 self.__dict__[name] = value
50 method = class_type.__swig_setmethods__.get(name,
None)
52 return method(self, value)
54 object.__setattr__(self, name, value)
56 raise AttributeError(
"You cannot add attributes to %s" % self)
59 def _swig_setattr(self, class_type, name, value):
60 return _swig_setattr_nondynamic(self, class_type, name, value, 0)
63 def _swig_getattr_nondynamic(self, class_type, name, static=1):
64 if (name ==
"thisown"):
65 return self.this.own()
66 method = class_type.__swig_getmethods__.get(name,
None)
70 return object.__getattr__(self, name)
72 raise AttributeError(name)
74 def _swig_getattr(self, class_type, name):
75 return _swig_getattr_nondynamic(self, class_type, name, 0)
80 strthis =
"proxy of " + self.this.__repr__()
83 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
88 except AttributeError:
95 def _swig_setattr_nondynamic_method(set):
96 def set_attr(self, name, value):
97 if (name ==
"thisown"):
98 return self.this.own(value)
99 if hasattr(self, name)
or (name ==
"this"):
100 set(self, name, value)
102 raise AttributeError(
"You cannot add attributes to %s" % self)
108 weakref_proxy = weakref.proxy
110 weakref_proxy =
lambda x: x
113 class IMP_KERNEL_SwigPyIterator(object):
114 """Proxy of C++ swig::IMP_KERNEL_SwigPyIterator class"""
115 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
117 def __init__(self, *args, **kwargs):
118 raise AttributeError(
"No constructor defined - class is abstract")
119 __repr__ = _swig_repr
120 __swig_destroy__ = _IMP_kernel.delete_IMP_KERNEL_SwigPyIterator
121 __del__ =
lambda self:
None
124 """value(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
125 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_value(self)
130 incr(IMP_KERNEL_SwigPyIterator self, size_t n=1) -> IMP_KERNEL_SwigPyIterator
131 incr(IMP_KERNEL_SwigPyIterator self) -> IMP_KERNEL_SwigPyIterator
133 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_incr(self, n)
138 decr(IMP_KERNEL_SwigPyIterator self, size_t n=1) -> IMP_KERNEL_SwigPyIterator
139 decr(IMP_KERNEL_SwigPyIterator self) -> IMP_KERNEL_SwigPyIterator
141 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_decr(self, n)
144 def distance(self, x):
145 """distance(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> ptrdiff_t"""
146 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_distance(self, x)
150 """equal(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
151 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_equal(self, x)
155 """copy(IMP_KERNEL_SwigPyIterator self) -> IMP_KERNEL_SwigPyIterator"""
156 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_copy(self)
160 """next(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
161 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_next(self)
165 """__next__(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
166 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___next__(self)
170 """previous(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
171 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_previous(self)
174 def advance(self, n):
175 """advance(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
176 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_advance(self, n)
180 """__eq__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
181 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___eq__(self, x)
185 """__ne__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
186 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___ne__(self, x)
189 def __iadd__(self, n):
190 """__iadd__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
191 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___iadd__(self, n)
194 def __isub__(self, n):
195 """__isub__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
196 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___isub__(self, n)
199 def __add__(self, n):
200 """__add__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
201 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___add__(self, n)
204 def __sub__(self, *args):
206 __sub__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator
207 __sub__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> ptrdiff_t
209 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___sub__(self, *args)
213 IMP_KERNEL_SwigPyIterator_swigregister = _IMP_kernel.IMP_KERNEL_SwigPyIterator_swigregister
214 IMP_KERNEL_SwigPyIterator_swigregister(IMP_KERNEL_SwigPyIterator)
223 _IMP_kernel.IMP_DEBUG_swigconstant(_IMP_kernel)
224 IMP_DEBUG = _IMP_kernel.IMP_DEBUG
226 _IMP_kernel.IMP_RELEASE_swigconstant(_IMP_kernel)
227 IMP_RELEASE = _IMP_kernel.IMP_RELEASE
229 _IMP_kernel.IMP_SILENT_swigconstant(_IMP_kernel)
230 IMP_SILENT = _IMP_kernel.IMP_SILENT
232 _IMP_kernel.IMP_PROGRESS_swigconstant(_IMP_kernel)
233 IMP_PROGRESS = _IMP_kernel.IMP_PROGRESS
235 _IMP_kernel.IMP_TERSE_swigconstant(_IMP_kernel)
236 IMP_TERSE = _IMP_kernel.IMP_TERSE
238 _IMP_kernel.IMP_VERBOSE_swigconstant(_IMP_kernel)
239 IMP_VERBOSE = _IMP_kernel.IMP_VERBOSE
241 _IMP_kernel.IMP_MEMORY_swigconstant(_IMP_kernel)
242 IMP_MEMORY = _IMP_kernel.IMP_MEMORY
244 _IMP_kernel.IMP_NONE_swigconstant(_IMP_kernel)
245 IMP_NONE = _IMP_kernel.IMP_NONE
247 _IMP_kernel.IMP_USAGE_swigconstant(_IMP_kernel)
248 IMP_USAGE = _IMP_kernel.IMP_USAGE
250 _IMP_kernel.IMP_INTERNAL_swigconstant(_IMP_kernel)
251 IMP_INTERNAL = _IMP_kernel.IMP_INTERNAL
253 _IMP_kernel.IMP_KERNEL_HAS_LOG4CXX_swigconstant(_IMP_kernel)
254 IMP_KERNEL_HAS_LOG4CXX = _IMP_kernel.IMP_KERNEL_HAS_LOG4CXX
256 _IMP_kernel.IMP_COMPILER_HAS_AUTO_swigconstant(_IMP_kernel)
257 IMP_COMPILER_HAS_AUTO = _IMP_kernel.IMP_COMPILER_HAS_AUTO
259 _IMP_kernel.IMP_COMPILER_HAS_DEBUG_VECTOR_swigconstant(_IMP_kernel)
260 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_kernel.IMP_COMPILER_HAS_DEBUG_VECTOR
262 _IMP_kernel.IMP_COMPILER_HAS_UNIQUE_PTR_swigconstant(_IMP_kernel)
263 IMP_COMPILER_HAS_UNIQUE_PTR = _IMP_kernel.IMP_COMPILER_HAS_UNIQUE_PTR
265 _IMP_kernel.IMP_KERNEL_HAS_BOOST_RANDOM_swigconstant(_IMP_kernel)
266 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_kernel.IMP_KERNEL_HAS_BOOST_RANDOM
268 _IMP_kernel.IMP_KERNEL_HAS_NUMPY_swigconstant(_IMP_kernel)
269 IMP_KERNEL_HAS_NUMPY = _IMP_kernel.IMP_KERNEL_HAS_NUMPY
271 _IMP_kernel.IMP_KERNEL_HAS_GPERFTOOLS_swigconstant(_IMP_kernel)
272 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_kernel.IMP_KERNEL_HAS_GPERFTOOLS
274 _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_kernel)
275 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
277 _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_kernel)
278 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
280 _IMP_kernel.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_kernel)
281 IMPKERNEL_SHOW_WARNINGS = _IMP_kernel.IMPKERNEL_SHOW_WARNINGS
284 class _DirectorObjects(object):
285 """@internal Simple class to keep references to director objects
286 to prevent premature deletion."""
289 def register(self, obj):
290 """Take a reference to a director object; will only work for
291 refcounted C++ classes"""
292 if hasattr(obj,
'get_ref_count'):
293 self._objects.append(obj)
295 """Only drop our reference and allow cleanup by Python if no other
296 Python references exist (we hold 3 references: one in self._objects,
297 one in x, and one in the argument list for getrefcount) *and* no
298 other C++ references exist (the Python object always holds one)"""
299 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
300 or x.get_ref_count() > 1]
304 def get_object_count(self):
305 """Get number of director objects (useful for testing only)"""
306 return len(self._objects)
307 _director_objects = _DirectorObjects()
310 _IMP_kernel.DEFAULT_CHECK_swigconstant(_IMP_kernel)
311 DEFAULT_CHECK = _IMP_kernel.DEFAULT_CHECK
313 _IMP_kernel.NONE_swigconstant(_IMP_kernel)
314 NONE = _IMP_kernel.NONE
316 _IMP_kernel.USAGE_swigconstant(_IMP_kernel)
317 USAGE = _IMP_kernel.USAGE
319 _IMP_kernel.USAGE_AND_INTERNAL_swigconstant(_IMP_kernel)
320 USAGE_AND_INTERNAL = _IMP_kernel.USAGE_AND_INTERNAL
323 """set_check_level(IMP::CheckLevel tf)"""
324 return _IMP_kernel.set_check_level(tf)
327 """get_check_level() -> IMP::CheckLevel"""
328 return _IMP_kernel.get_check_level()
330 from _IMP_kernel
import Exception, InternalException, ModelException, EventException
331 from _IMP_kernel
import UsageException, IndexException, IOException, ValueException
332 from _IMP_kernel
import TypeException
334 class _ostream(object):
335 """Proxy of C++ std::ostream class"""
336 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
338 def __init__(self, *args, **kwargs):
339 raise AttributeError(
"No constructor defined")
340 __repr__ = _swig_repr
342 def write(self, osa_buf):
343 """write(_ostream self, char const * osa_buf)"""
344 return _IMP_kernel._ostream_write(self, osa_buf)
346 _ostream_swigregister = _IMP_kernel._ostream_swigregister
347 _ostream_swigregister(_ostream)
350 _IMP_kernel.IMP_COMPILER_HAS_OVERRIDE_swigconstant(_IMP_kernel)
351 IMP_COMPILER_HAS_OVERRIDE = _IMP_kernel.IMP_COMPILER_HAS_OVERRIDE
353 _IMP_kernel.IMP_COMPILER_HAS_FINAL_swigconstant(_IMP_kernel)
354 IMP_COMPILER_HAS_FINAL = _IMP_kernel.IMP_COMPILER_HAS_FINAL
356 _IMP_kernel.IMP_HAS_NOEXCEPT_swigconstant(_IMP_kernel)
357 IMP_HAS_NOEXCEPT = _IMP_kernel.IMP_HAS_NOEXCEPT
359 _IMP_kernel.IMP_C_OPEN_BINARY_swigconstant(_IMP_kernel)
360 IMP_C_OPEN_BINARY = _IMP_kernel.IMP_C_OPEN_BINARY
362 _raii_types.append(
"SetLogState")
365 _raii_types.append(
"SetNumberOfThreads")
368 _raii_types.append(
"SetCheckState")
371 _object_types.append(
"Object")
374 def _object_cast_to_Object(o):
375 """_object_cast_to_Object(Object * o) -> Object"""
376 return _IMP_kernel._object_cast_to_Object(o)
378 _object_types.append(
"_TestObject")
381 def _object_cast_to__TestObject(o):
382 """_object_cast_to__TestObject(Object * o) -> _TestObject"""
383 return _IMP_kernel._object_cast_to__TestObject(o)
386 _plural_types.append(
"VersionInfos")
387 _value_types.append(
"VersionInfo")
390 _raii_types.append(
"CreateLogContext")
393 _raii_types.append(
"WarningContext")
396 _raii_types.append(
"SetLogTarget")
400 _plural_types.append(
"_TestValues")
401 _value_types.append(
"_TestValue")
405 _plural_types.append(
"Floats")
406 _value_types.append(
"Float")
410 _plural_types.append(
"Ints")
411 _value_types.append(
"Int")
415 _plural_types.append(
"Strings")
416 _value_types.append(
"String")
420 _plural_types.append(
"_Protections")
421 _value_types.append(
"_Protection")
423 class _InputAdaptor(object):
424 """Proxy of C++ IMP::InputAdaptor class"""
425 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
427 def __init__(self, *args, **kwargs):
428 raise AttributeError(
"No constructor defined")
429 __repr__ = _swig_repr
430 __swig_destroy__ = _IMP_kernel.delete__InputAdaptor
431 __del__ =
lambda self:
None
432 _InputAdaptor_swigregister = _IMP_kernel._InputAdaptor_swigregister
433 _InputAdaptor_swigregister(_InputAdaptor)
435 class _NonCopyable(object):
436 """Proxy of C++ IMP::NonCopyable class"""
437 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
439 def __init__(self, *args, **kwargs):
440 raise AttributeError(
"No constructor defined")
441 __repr__ = _swig_repr
442 __swig_destroy__ = _IMP_kernel.delete__NonCopyable
443 __del__ =
lambda self:
None
444 _NonCopyable_swigregister = _IMP_kernel._NonCopyable_swigregister
445 _NonCopyable_swigregister(_NonCopyable)
447 class _RAII(_NonCopyable):
448 """Proxy of C++ IMP::RAII class"""
449 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
451 def __init__(self, *args, **kwargs):
452 raise AttributeError(
"No constructor defined")
453 __repr__ = _swig_repr
454 __swig_destroy__ = _IMP_kernel.delete__RAII
455 __del__ =
lambda self:
None
456 _RAII_swigregister = _IMP_kernel._RAII_swigregister
457 _RAII_swigregister(_RAII)
459 class _Value(object):
460 """Proxy of C++ IMP::Value class"""
461 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
463 def __init__(self, *args, **kwargs):
464 raise AttributeError(
"No constructor defined")
465 __repr__ = _swig_repr
466 __swig_destroy__ = _IMP_kernel.delete__Value
467 __del__ =
lambda self:
None
468 _Value_swigregister = _IMP_kernel._Value_swigregister
469 _Value_swigregister(_Value)
473 """get_executable_name() -> std::string"""
474 return _IMP_kernel.get_executable_name()
478 setup_from_argv(IMP::Strings const & argv, std::string description)
479 setup_from_argv(IMP::Strings const & argv, std::string description, std::string positional_description, int num_positional) -> IMP::Strings
481 return _IMP_kernel.setup_from_argv(*args)
484 """add_string_flag(std::string name, std::string default_value, std::string description)"""
485 return _IMP_kernel.add_string_flag(name, default_value, description)
488 """get_string_flag(std::string name) -> std::string"""
489 return _IMP_kernel.get_string_flag(name)
492 """add_int_flag(std::string name, size_t default_value, std::string description)"""
493 return _IMP_kernel.add_int_flag(name, default_value, description)
496 """get_int_flag(std::string name) -> size_t"""
497 return _IMP_kernel.get_int_flag(name)
500 """add_bool_flag(std::string name, std::string description)"""
501 return _IMP_kernel.add_bool_flag(name, description)
504 """get_bool_flag(std::string name) -> bool"""
505 return _IMP_kernel.get_bool_flag(name)
508 """add_float_flag(std::string name, double default_value, std::string description)"""
509 return _IMP_kernel.add_float_flag(name, default_value, description)
512 """get_float_flag(std::string name) -> double"""
513 return _IMP_kernel.get_float_flag(name)
517 write_help(_ostream out)
520 return _IMP_kernel.write_help(*args)
523 """get_is_quick_test() -> bool"""
524 return _IMP_kernel.get_is_quick_test()
526 _IMP_kernel.DEFAULT_swigconstant(_IMP_kernel)
527 DEFAULT = _IMP_kernel.DEFAULT
529 _IMP_kernel.SILENT_swigconstant(_IMP_kernel)
530 SILENT = _IMP_kernel.SILENT
532 _IMP_kernel.WARNING_swigconstant(_IMP_kernel)
533 WARNING = _IMP_kernel.WARNING
535 _IMP_kernel.PROGRESS_swigconstant(_IMP_kernel)
536 PROGRESS = _IMP_kernel.PROGRESS
538 _IMP_kernel.TERSE_swigconstant(_IMP_kernel)
539 TERSE = _IMP_kernel.TERSE
541 _IMP_kernel.VERBOSE_swigconstant(_IMP_kernel)
542 VERBOSE = _IMP_kernel.VERBOSE
544 _IMP_kernel.MEMORY_swigconstant(_IMP_kernel)
545 MEMORY = _IMP_kernel.MEMORY
547 _IMP_kernel.ALL_LOG_swigconstant(_IMP_kernel)
548 ALL_LOG = _IMP_kernel.ALL_LOG
549 class VersionInfo(_Value):
550 """Proxy of C++ IMP::VersionInfo class"""
551 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
553 def __init__(self, *args):
555 __init__(IMP::VersionInfo self, std::string module, std::string version) -> VersionInfo
556 __init__(IMP::VersionInfo self) -> VersionInfo
558 this = _IMP_kernel.new_VersionInfo(*args)
560 self.this.append(this)
564 def get_module(self):
565 """get_module(VersionInfo self) -> std::string"""
566 return _IMP_kernel.VersionInfo_get_module(self)
569 def get_version(self):
570 """get_version(VersionInfo self) -> std::string"""
571 return _IMP_kernel.VersionInfo_get_version(self)
574 def show(self, *args):
576 show(VersionInfo self, _ostream out)
577 show(VersionInfo self)
579 return _IMP_kernel.VersionInfo_show(self, *args)
582 def __cmp__(self, o):
583 """__cmp__(VersionInfo self, VersionInfo o) -> int"""
584 return _IMP_kernel.VersionInfo___cmp__(self, o)
588 """__eq__(VersionInfo self, VersionInfo o) -> bool"""
589 return _IMP_kernel.VersionInfo___eq__(self, o)
593 """__ne__(VersionInfo self, VersionInfo o) -> bool"""
594 return _IMP_kernel.VersionInfo___ne__(self, o)
598 """__lt__(VersionInfo self, VersionInfo o) -> bool"""
599 return _IMP_kernel.VersionInfo___lt__(self, o)
603 """__gt__(VersionInfo self, VersionInfo o) -> bool"""
604 return _IMP_kernel.VersionInfo___gt__(self, o)
608 """__ge__(VersionInfo self, VersionInfo o) -> bool"""
609 return _IMP_kernel.VersionInfo___ge__(self, o)
613 """__le__(VersionInfo self, VersionInfo o) -> bool"""
614 return _IMP_kernel.VersionInfo___le__(self, o)
618 """__str__(VersionInfo self) -> std::string"""
619 return _IMP_kernel.VersionInfo___str__(self)
623 """__repr__(VersionInfo self) -> std::string"""
624 return _IMP_kernel.VersionInfo___repr__(self)
626 __swig_destroy__ = _IMP_kernel.delete_VersionInfo
627 __del__ =
lambda self:
None
628 VersionInfo_swigregister = _IMP_kernel.VersionInfo_swigregister
629 VersionInfo_swigregister(VersionInfo)
631 class TextOutput(_InputAdaptor):
632 """Proxy of C++ IMP::TextOutput class"""
633 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
634 __repr__ = _swig_repr
636 def __init__(self, *args):
638 __init__(IMP::TextOutput self, int arg2) -> TextOutput
639 __init__(IMP::TextOutput self, double arg2) -> TextOutput
640 __init__(IMP::TextOutput self, char const * c, bool append=False) -> TextOutput
641 __init__(IMP::TextOutput self, char const * c) -> TextOutput
642 __init__(IMP::TextOutput self, IMP::TextProxy< std::ostream > p) -> TextOutput
643 __init__(IMP::TextOutput self) -> TextOutput
644 __init__(IMP::TextOutput self, std::string file_name, bool append=False) -> TextOutput
645 __init__(IMP::TextOutput self, std::string file_name) -> TextOutput
647 this = _IMP_kernel.new_TextOutput(*args)
649 self.this.append(this)
653 def show(self, *args):
655 show(TextOutput self, _ostream out)
656 show(TextOutput self)
658 return _IMP_kernel.TextOutput_show(self, *args)
662 """get_name(TextOutput self) -> std::string"""
663 return _IMP_kernel.TextOutput_get_name(self)
665 __swig_destroy__ = _IMP_kernel.delete_TextOutput
666 __del__ =
lambda self:
None
667 TextOutput_swigregister = _IMP_kernel.TextOutput_swigregister
668 TextOutput_swigregister(TextOutput)
670 class TextInput(_InputAdaptor):
671 """Proxy of C++ IMP::TextInput class"""
672 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
673 __repr__ = _swig_repr
675 def __init__(self, *args):
677 __init__(IMP::TextInput self, int arg2) -> TextInput
678 __init__(IMP::TextInput self, double arg2) -> TextInput
679 __init__(IMP::TextInput self, char const * c) -> TextInput
680 __init__(IMP::TextInput self, IMP::TextProxy< std::istream > p) -> TextInput
681 __init__(IMP::TextInput self) -> TextInput
682 __init__(IMP::TextInput self, std::string file_name) -> TextInput
684 this = _IMP_kernel.new_TextInput(*args)
686 self.this.append(this)
690 def show(self, *args):
692 show(TextInput self, _ostream out)
695 return _IMP_kernel.TextInput_show(self, *args)
699 """get_name(TextInput self) -> std::string"""
700 return _IMP_kernel.TextInput_get_name(self)
702 __swig_destroy__ = _IMP_kernel.delete_TextInput
703 __del__ =
lambda self:
None
704 TextInput_swigregister = _IMP_kernel.TextInput_swigregister
705 TextInput_swigregister(TextInput)
707 class SetLogTarget(_RAII):
708 """Proxy of C++ IMP::SetLogTarget class"""
709 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
711 def __init__(self, *args):
713 __init__(IMP::SetLogTarget self) -> SetLogTarget
714 __init__(IMP::SetLogTarget self, TextOutput to) -> SetLogTarget
716 this = _IMP_kernel.new_SetLogTarget(*args)
718 self.this.append(this)
723 """set(SetLogTarget self, TextOutput to)"""
724 return _IMP_kernel.SetLogTarget_set(self, to)
728 """reset(SetLogTarget self)"""
729 return _IMP_kernel.SetLogTarget_reset(self)
731 __swig_destroy__ = _IMP_kernel.delete_SetLogTarget
732 __del__ =
lambda self:
None
734 def show(self, *args):
736 show(SetLogTarget self, _ostream out)
737 show(SetLogTarget self)
739 return _IMP_kernel.SetLogTarget_show(self, *args)
744 def __exit__(self, exc_type, exc_val, exc_tb):
750 """__str__(SetLogTarget self) -> std::string"""
751 return _IMP_kernel.SetLogTarget___str__(self)
755 """__repr__(SetLogTarget self) -> std::string"""
756 return _IMP_kernel.SetLogTarget___repr__(self)
758 SetLogTarget_swigregister = _IMP_kernel.SetLogTarget_swigregister
759 SetLogTarget_swigregister(SetLogTarget)
764 create_temporary_file(std::string prefix, std::string suffix) -> TextOutput
765 create_temporary_file(std::string prefix) -> TextOutput
766 create_temporary_file() -> TextOutput
768 return _IMP_kernel.create_temporary_file(*args)
772 create_temporary_file_name(std::string prefix, std::string suffix) -> std::string
773 create_temporary_file_name(std::string prefix) -> std::string
774 create_temporary_file_name() -> std::string
776 return _IMP_kernel.create_temporary_file_name(*args)
779 """get_relative_path(std::string base, std::string relative) -> std::string"""
780 return _IMP_kernel.get_relative_path(base, relative)
783 """get_absolute_path(std::string file) -> std::string"""
784 return _IMP_kernel.get_absolute_path(file)
786 def push_log_context(functionname, object):
787 """push_log_context(char const * functionname, void const * object)"""
788 return _IMP_kernel.push_log_context(functionname, object)
790 def pop_log_context():
791 """pop_log_context()"""
792 return _IMP_kernel.pop_log_context()
796 add_to_log(std::string to_write)
797 add_to_log(IMP::LogLevel level, std::string to_write)
799 return _IMP_kernel.add_to_log(*args)
802 """set_log_level(IMP::LogLevel l)"""
803 return _IMP_kernel.set_log_level(l)
806 """set_log_timer(bool tb)"""
807 return _IMP_kernel.set_log_timer(tb)
810 """reset_log_timer()"""
811 return _IMP_kernel.reset_log_timer()
814 """get_log_level() -> IMP::LogLevel"""
815 return _IMP_kernel.get_log_level()
818 """set_progress_display(std::string description, unsigned int steps)"""
819 return _IMP_kernel.set_progress_display(description, steps)
823 add_to_progress_display(unsigned int step=1)
824 add_to_progress_display()
826 return _IMP_kernel.add_to_progress_display(step)
827 class Object(_NonCopyable):
828 """Proxy of C++ IMP::Object class"""
829 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
831 def __init__(self, name):
832 """__init__(IMP::Object self, std::string name) -> Object"""
833 if self.__class__ == Object:
837 this = _IMP_kernel.new_Object(_self, name)
839 self.this.append(this)
843 if self.__class__ != Object:
844 _director_objects.register(self)
848 __swig_destroy__ = _IMP_kernel.delete_Object
849 __del__ =
lambda self:
None
852 """__hash__(Object self) -> std::size_t"""
853 return _IMP_kernel.Object___hash__(self)
857 """set_log_level(Object self, IMP::LogLevel l)"""
858 return _IMP_kernel.Object_set_log_level(self, l)
862 """set_check_level(Object self, IMP::CheckLevel l)"""
863 return _IMP_kernel.Object_set_check_level(self, l)
867 """get_log_level(Object self) -> IMP::LogLevel"""
868 return _IMP_kernel.Object_get_log_level(self)
872 """get_check_level(Object self) -> IMP::CheckLevel"""
873 return _IMP_kernel.Object_get_check_level(self)
876 def get_version_info(self):
877 """get_version_info(Object self) -> VersionInfo"""
878 return _IMP_kernel.Object_get_version_info(self)
882 """get_name(Object self) -> std::string const &"""
883 return _IMP_kernel.Object_get_name(self)
886 def set_name(self, name):
887 """set_name(Object self, std::string name)"""
888 return _IMP_kernel.Object_set_name(self, name)
891 def get_type_name(self):
892 """get_type_name(Object self) -> std::string"""
893 return _IMP_kernel.Object_get_type_name(self)
896 def set_was_used(self, tf):
897 """set_was_used(Object self, bool tf)"""
898 return _IMP_kernel.Object_set_was_used(self, tf)
901 def show(self, *args):
903 show(Object self, _ostream out)
906 return _IMP_kernel.Object_show(self, *args)
909 def get_string(self):
910 """get_string(Object self) -> std::string"""
911 return _IMP_kernel.Object_get_string(self)
914 def _on_destruction(self):
915 """_on_destruction(Object self)"""
916 return _IMP_kernel.Object__on_destruction(self)
919 def get_is_valid(self):
920 """get_is_valid(Object self) -> bool"""
921 return _IMP_kernel.Object_get_is_valid(self)
924 def get_ref_count(self):
925 """get_ref_count(Object self) -> unsigned int"""
926 return _IMP_kernel.Object_get_ref_count(self)
929 def get_number_of_live_objects():
930 """get_number_of_live_objects() -> unsigned int"""
931 return _IMP_kernel.Object_get_number_of_live_objects()
933 get_number_of_live_objects = staticmethod(get_number_of_live_objects)
935 def get_is_shared(self):
936 """get_is_shared(Object self) -> bool"""
937 return _IMP_kernel.Object_get_is_shared(self)
940 def clear_caches(self):
941 """clear_caches(Object self)"""
942 return _IMP_kernel.Object_clear_caches(self)
945 def do_destroy(self):
946 """do_destroy(Object self)"""
947 return _IMP_kernel.Object_do_destroy(self)
951 """__eq__(Object self, Object o) -> bool"""
952 return _IMP_kernel.Object___eq__(self, o)
956 """__ne__(Object self, Object o) -> bool"""
957 return _IMP_kernel.Object___ne__(self, o)
961 """__le__(Object self, Object o) -> bool"""
962 return _IMP_kernel.Object___le__(self, o)
966 """__lt__(Object self, Object o) -> bool"""
967 return _IMP_kernel.Object___lt__(self, o)
971 """__ge__(Object self, Object o) -> bool"""
972 return _IMP_kernel.Object___ge__(self, o)
976 """__gt__(Object self, Object o) -> bool"""
977 return _IMP_kernel.Object___gt__(self, o)
981 """__str__(Object self) -> std::string"""
982 return _IMP_kernel.Object___str__(self)
986 """__repr__(Object self) -> std::string"""
987 return _IMP_kernel.Object___repr__(self)
992 return _object_cast_to_Object(o)
994 def __disown__(self):
996 _IMP_kernel.disown_Object(self)
997 return weakref_proxy(self)
998 Object_swigregister = _IMP_kernel.Object_swigregister
999 Object_swigregister(Object)
1001 def Object_get_number_of_live_objects():
1002 """Object_get_number_of_live_objects() -> unsigned int"""
1003 return _IMP_kernel.Object_get_number_of_live_objects()
1005 class SetLogState(_RAII):
1006 """Proxy of C++ IMP::SetLogState class"""
1007 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1010 """reset(SetLogState self)"""
1011 return _IMP_kernel.SetLogState_reset(self)
1013 __swig_destroy__ = _IMP_kernel.delete_SetLogState
1014 __del__ =
lambda self:
None
1016 def show(self, *args):
1018 show(SetLogState self, _ostream out)
1019 show(SetLogState self)
1021 return _IMP_kernel.SetLogState_show(self, *args)
1024 def __init__(self, *args):
1026 __init__(IMP::SetLogState self) -> SetLogState
1027 __init__(IMP::SetLogState self, Object o, IMP::LogLevel l) -> SetLogState
1028 __init__(IMP::SetLogState self, IMP::LogLevel l) -> SetLogState
1030 this = _IMP_kernel.new_SetLogState(*args)
1032 self.this.append(this)
1036 def set(self, *args):
1038 set(SetLogState self, Object o, IMP::LogLevel l)
1039 set(SetLogState self, IMP::LogLevel l)
1041 return _IMP_kernel.SetLogState_set(self, *args)
1044 def __enter__(self):
1046 def __exit__(self, exc_type, exc_val, exc_tb):
1052 """__str__(SetLogState self) -> std::string"""
1053 return _IMP_kernel.SetLogState___str__(self)
1057 """__repr__(SetLogState self) -> std::string"""
1058 return _IMP_kernel.SetLogState___repr__(self)
1060 SetLogState_swigregister = _IMP_kernel.SetLogState_swigregister
1061 SetLogState_swigregister(SetLogState)
1063 class WarningContext(object):
1064 """Proxy of C++ IMP::WarningContext class"""
1065 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1066 data_ = _swig_property(_IMP_kernel.WarningContext_data__get, _IMP_kernel.WarningContext_data__set)
1068 def add_warning(self, key, warning):
1069 """add_warning(WarningContext self, std::string key, std::string warning)"""
1070 return _IMP_kernel.WarningContext_add_warning(self, key, warning)
1073 def clear_warnings(self):
1074 """clear_warnings(WarningContext self)"""
1075 return _IMP_kernel.WarningContext_clear_warnings(self)
1078 def dump_warnings(self):
1079 """dump_warnings(WarningContext self)"""
1080 return _IMP_kernel.WarningContext_dump_warnings(self)
1082 __swig_destroy__ = _IMP_kernel.delete_WarningContext
1083 __del__ =
lambda self:
None
1085 def show(self, *args):
1087 show(WarningContext self, _ostream out)
1088 show(WarningContext self)
1090 return _IMP_kernel.WarningContext_show(self, *args)
1093 def __enter__(self):
1095 def __exit__(self, exc_type, exc_val, exc_tb):
1101 """__str__(WarningContext self) -> std::string"""
1102 return _IMP_kernel.WarningContext___str__(self)
1106 """__repr__(WarningContext self) -> std::string"""
1107 return _IMP_kernel.WarningContext___repr__(self)
1111 """__init__(IMP::WarningContext self) -> WarningContext"""
1112 this = _IMP_kernel.new_WarningContext()
1114 self.this.append(this)
1117 WarningContext_swigregister = _IMP_kernel.WarningContext_swigregister
1118 WarningContext_swigregister(WarningContext)
1120 class CreateLogContext(_RAII):
1121 """Proxy of C++ IMP::CreateLogContext class"""
1122 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1124 def __init__(self, *args):
1126 __init__(IMP::CreateLogContext self, std::string fname, Object object=None) -> CreateLogContext
1127 __init__(IMP::CreateLogContext self, std::string fname) -> CreateLogContext
1128 __init__(IMP::CreateLogContext self) -> CreateLogContext
1129 __init__(IMP::CreateLogContext self, char const * fname, Object object=None) -> CreateLogContext
1130 __init__(IMP::CreateLogContext self, char const * fname) -> CreateLogContext
1132 this = _IMP_kernel.new_CreateLogContext(*args)
1134 self.this.append(this)
1138 def set(self, fname, object=None):
1140 set(CreateLogContext self, char const * fname, Object object=None)
1141 set(CreateLogContext self, char const * fname)
1143 return _IMP_kernel.CreateLogContext_set(self, fname, object)
1147 """reset(CreateLogContext self)"""
1148 return _IMP_kernel.CreateLogContext_reset(self)
1150 __swig_destroy__ = _IMP_kernel.delete_CreateLogContext
1151 __del__ =
lambda self:
None
1153 def show(self, *args):
1155 show(CreateLogContext self, _ostream out)
1156 show(CreateLogContext self)
1158 return _IMP_kernel.CreateLogContext_show(self, *args)
1161 def __enter__(self):
1163 def __exit__(self, exc_type, exc_val, exc_tb):
1169 """__str__(CreateLogContext self) -> std::string"""
1170 return _IMP_kernel.CreateLogContext___str__(self)
1174 """__repr__(CreateLogContext self) -> std::string"""
1175 return _IMP_kernel.CreateLogContext___repr__(self)
1177 CreateLogContext_swigregister = _IMP_kernel.CreateLogContext_swigregister
1178 CreateLogContext_swigregister(CreateLogContext)
1180 class SetCheckState(_RAII):
1181 """Proxy of C++ IMP::SetCheckState class"""
1182 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1185 """reset(SetCheckState self)"""
1186 return _IMP_kernel.SetCheckState_reset(self)
1188 __swig_destroy__ = _IMP_kernel.delete_SetCheckState
1189 __del__ =
lambda self:
None
1191 def show(self, *args):
1193 show(SetCheckState self, _ostream out)
1194 show(SetCheckState self)
1196 return _IMP_kernel.SetCheckState_show(self, *args)
1199 def __init__(self, *args):
1201 __init__(IMP::SetCheckState self) -> SetCheckState
1202 __init__(IMP::SetCheckState self, Object o, IMP::CheckLevel l) -> SetCheckState
1203 __init__(IMP::SetCheckState self, IMP::CheckLevel l) -> SetCheckState
1205 this = _IMP_kernel.new_SetCheckState(*args)
1207 self.this.append(this)
1211 def set(self, *args):
1213 set(SetCheckState self, Object o, IMP::CheckLevel l)
1214 set(SetCheckState self, IMP::CheckLevel l)
1216 return _IMP_kernel.SetCheckState_set(self, *args)
1219 def __enter__(self):
1221 def __exit__(self, exc_type, exc_val, exc_tb):
1227 """__str__(SetCheckState self) -> std::string"""
1228 return _IMP_kernel.SetCheckState___str__(self)
1232 """__repr__(SetCheckState self) -> std::string"""
1233 return _IMP_kernel.SetCheckState___repr__(self)
1235 SetCheckState_swigregister = _IMP_kernel.SetCheckState_swigregister
1236 SetCheckState_swigregister(SetCheckState)
1240 """get_unique_name(std::string templ) -> std::string"""
1241 return _IMP_kernel.get_unique_name(templ)
1242 class _Protection(object):
1243 """Proxy of C++ IMP::internal::_Protection class"""
1244 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1246 def __init__(self, *args, **kwargs):
1247 raise AttributeError(
"No constructor defined")
1249 def show(self, *args):
1251 show(_Protection self, _ostream out)
1252 show(_Protection self)
1254 return _IMP_kernel._Protection_show(self, *args)
1258 """__str__(_Protection self) -> std::string"""
1259 return _IMP_kernel._Protection___str__(self)
1263 """__repr__(_Protection self) -> std::string"""
1264 return _IMP_kernel._Protection___repr__(self)
1266 __swig_destroy__ = _IMP_kernel.delete__Protection
1267 __del__ =
lambda self:
None
1268 _Protection_swigregister = _IMP_kernel._Protection_swigregister
1269 _Protection_swigregister(_Protection)
1274 return _IMP_kernel._test_log()
1276 def _test_intranges(ips):
1277 """_test_intranges(IMP::IntRanges const & ips) -> int"""
1278 return _IMP_kernel._test_intranges(ips)
1280 def _test_intrange(*args):
1282 _test_intrange(IMP::IntRange const & ips) -> IMP::IntRange
1283 _test_intrange() -> IMP::IntRange
1285 return _IMP_kernel._test_intrange(*args)
1288 """_test_ifile(TextInput a) -> std::string"""
1289 return _IMP_kernel._test_ifile(a)
1292 """_test_ofile(TextOutput a) -> std::string"""
1293 return _IMP_kernel._test_ofile(a)
1295 def _test_ifile_overloaded(*args):
1297 _test_ifile_overloaded(TextInput a, int i) -> std::string
1298 _test_ifile_overloaded(TextInput a, std::string st) -> std::string
1300 return _IMP_kernel._test_ifile_overloaded(*args)
1302 def _test_ofile_overloaded(*args):
1304 _test_ofile_overloaded(TextOutput a, int i) -> std::string
1305 _test_ofile_overloaded(TextOutput a, std::string st) -> std::string
1307 return _IMP_kernel._test_ofile_overloaded(*args)
1308 class _TestValue(object):
1309 """Proxy of C++ IMP::internal::_TestValue class"""
1310 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1312 def __init__(self, i):
1313 """__init__(IMP::internal::_TestValue self, int i) -> _TestValue"""
1314 this = _IMP_kernel.new__TestValue(i)
1316 self.this.append(this)
1320 def show(self, *args):
1322 show(_TestValue self, _ostream out)
1323 show(_TestValue self)
1325 return _IMP_kernel._TestValue_show(self, *args)
1328 def __cmp__(self, o):
1329 """__cmp__(_TestValue self, _TestValue o) -> int"""
1330 return _IMP_kernel._TestValue___cmp__(self, o)
1333 def __eq__(self, o):
1334 """__eq__(_TestValue self, _TestValue o) -> bool"""
1335 return _IMP_kernel._TestValue___eq__(self, o)
1338 def __ne__(self, o):
1339 """__ne__(_TestValue self, _TestValue o) -> bool"""
1340 return _IMP_kernel._TestValue___ne__(self, o)
1343 def __lt__(self, o):
1344 """__lt__(_TestValue self, _TestValue o) -> bool"""
1345 return _IMP_kernel._TestValue___lt__(self, o)
1348 def __gt__(self, o):
1349 """__gt__(_TestValue self, _TestValue o) -> bool"""
1350 return _IMP_kernel._TestValue___gt__(self, o)
1353 def __ge__(self, o):
1354 """__ge__(_TestValue self, _TestValue o) -> bool"""
1355 return _IMP_kernel._TestValue___ge__(self, o)
1358 def __le__(self, o):
1359 """__le__(_TestValue self, _TestValue o) -> bool"""
1360 return _IMP_kernel._TestValue___le__(self, o)
1364 """get(_TestValue self) -> int"""
1365 return _IMP_kernel._TestValue_get(self)
1368 def get_float(self):
1369 """get_float(_TestValue self) -> float const &"""
1370 return _IMP_kernel._TestValue_get_float(self)
1373 def get_double(self):
1374 """get_double(_TestValue self) -> double const &"""
1375 return _IMP_kernel._TestValue_get_double(self)
1378 def get_Float(self):
1379 """get_Float(_TestValue self) -> IMP::Float const &"""
1380 return _IMP_kernel._TestValue_get_Float(self)
1384 """get_int(_TestValue self) -> int const &"""
1385 return _IMP_kernel._TestValue_get_int(self)
1389 """get_Int(_TestValue self) -> IMP::Int const &"""
1390 return _IMP_kernel._TestValue_get_Int(self)
1393 def get_string(self):
1394 """get_string(_TestValue self) -> std::string const &"""
1395 return _IMP_kernel._TestValue_get_string(self)
1398 def get_String(self):
1399 """get_String(_TestValue self) -> IMP::String const &"""
1400 return _IMP_kernel._TestValue_get_String(self)
1404 """__str__(_TestValue self) -> std::string"""
1405 return _IMP_kernel._TestValue___str__(self)
1409 """__repr__(_TestValue self) -> std::string"""
1410 return _IMP_kernel._TestValue___repr__(self)
1412 __swig_destroy__ = _IMP_kernel.delete__TestValue
1413 __del__ =
lambda self:
None
1414 _TestValue_swigregister = _IMP_kernel._TestValue_swigregister
1415 _TestValue_swigregister(_TestValue)
1418 def _pass_plain_pair(p):
1419 """_pass_plain_pair(IMP::FloatPair p) -> IMP::FloatPair"""
1420 return _IMP_kernel._pass_plain_pair(p)
1422 def _pass_overloaded_strings(*args):
1424 _pass_overloaded_strings(IMP::Strings const & a, int arg2) -> IMP::Strings
1425 _pass_overloaded_strings(IMP::Strings const & a) -> IMP::Strings
1427 return _IMP_kernel._pass_overloaded_strings(*args)
1430 """_pass_pair(IMP::DerivativePair const & p) -> IMP::DerivativePair"""
1431 return _IMP_kernel._pass_pair(p)
1433 def _pass_floats(input):
1434 """_pass_floats(IMP::Floats const & input) -> IMP::Floats"""
1435 return _IMP_kernel._pass_floats(input)
1437 def _pass_ints(input):
1438 """_pass_ints(IMP::Ints input) -> IMP::Ints"""
1439 return _IMP_kernel._pass_ints(input)
1441 def _pass_ints_list(input):
1442 """_pass_ints_list(IMP::IntsList const & input) -> IMP::IntsList"""
1443 return _IMP_kernel._pass_ints_list(input)
1445 def _pass_ints_lists(input):
1446 """_pass_ints_lists(IMP::IntsLists const & input) -> IMP::IntsLists"""
1447 return _IMP_kernel._pass_ints_lists(input)
1449 def _pass_strings(input):
1450 """_pass_strings(IMP::Strings const & input) -> IMP::Strings const &"""
1451 return _IMP_kernel._pass_strings(input)
1452 class _TestObject(Object):
1453 """Proxy of C++ IMP::internal::_TestObject class"""
1454 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1457 """__init__(IMP::internal::_TestObject self) -> _TestObject"""
1458 this = _IMP_kernel.new__TestObject()
1460 self.this.append(this)
1464 def get_version_info(self):
1465 """get_version_info(_TestObject self) -> VersionInfo"""
1466 return _IMP_kernel._TestObject_get_version_info(self)
1470 """__str__(_TestObject self) -> std::string"""
1471 return _IMP_kernel._TestObject___str__(self)
1475 """__repr__(_TestObject self) -> std::string"""
1476 return _IMP_kernel._TestObject___repr__(self)
1481 return _object_cast_to__TestObject(o)
1483 _TestObject_swigregister = _IMP_kernel._TestObject_swigregister
1484 _TestObject_swigregister(_TestObject)
1488 """get_live_object_names() -> IMP::Strings"""
1489 return _IMP_kernel.get_live_object_names()
1492 """get_live_objects() -> IMP::Objects"""
1493 return _IMP_kernel.get_live_objects()
1496 """set_show_leaked_objects(bool tf)"""
1497 return _IMP_kernel.set_show_leaked_objects(tf)
1500 """set_deprecation_warnings(bool tf)"""
1501 return _IMP_kernel.set_deprecation_warnings(tf)
1504 """set_deprecation_exceptions(bool tf)"""
1505 return _IMP_kernel.set_deprecation_exceptions(tf)
1508 """get_deprecation_exceptions() -> bool"""
1509 return _IMP_kernel.get_deprecation_exceptions()
1512 """handle_use_deprecated(std::string message)"""
1513 return _IMP_kernel.handle_use_deprecated(message)
1516 """get_number_of_threads() -> unsigned int"""
1517 return _IMP_kernel.get_number_of_threads()
1520 """set_number_of_threads(unsigned int n)"""
1521 return _IMP_kernel.set_number_of_threads(n)
1522 class SetNumberOfThreads(_RAII):
1523 """Proxy of C++ IMP::SetNumberOfThreads class"""
1524 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1526 def __init__(self, *args):
1528 __init__(IMP::SetNumberOfThreads self) -> SetNumberOfThreads
1529 __init__(IMP::SetNumberOfThreads self, unsigned int n) -> SetNumberOfThreads
1531 this = _IMP_kernel.new_SetNumberOfThreads(*args)
1533 self.this.append(this)
1538 """set(SetNumberOfThreads self, unsigned int n)"""
1539 return _IMP_kernel.SetNumberOfThreads_set(self, n)
1543 """reset(SetNumberOfThreads self)"""
1544 return _IMP_kernel.SetNumberOfThreads_reset(self)
1546 __swig_destroy__ = _IMP_kernel.delete_SetNumberOfThreads
1547 __del__ =
lambda self:
None
1549 def show(self, *args):
1551 show(SetNumberOfThreads self, _ostream out)
1552 show(SetNumberOfThreads self)
1554 return _IMP_kernel.SetNumberOfThreads_show(self, *args)
1557 def __enter__(self):
1559 def __exit__(self, exc_type, exc_val, exc_tb):
1565 """__str__(SetNumberOfThreads self) -> std::string"""
1566 return _IMP_kernel.SetNumberOfThreads___str__(self)
1570 """__repr__(SetNumberOfThreads self) -> std::string"""
1571 return _IMP_kernel.SetNumberOfThreads___repr__(self)
1573 SetNumberOfThreads_swigregister = _IMP_kernel.SetNumberOfThreads_swigregister
1574 SetNumberOfThreads_swigregister(SetNumberOfThreads)
1578 i_m_p=
"IMP_MODULE_PATH"
1579 if i_m_p
in os.environ.keys():
1580 __path__.insert(0, os.environ[i_m_p])
1582 def _forward_add_attribute(self, name, value, opt=None):
1584 self.get_particle().add_attribute(name, value, opt)
1586 self.get_particle().add_attribute(name, value)
1587 def _forward_get_value(self, name):
1588 self.get_particle().get_value(name)
1589 def _forward_set_value(self, name, value):
1590 self.get_particle().set_value(name, value)
1596 _object_types.append(
"Constraint")
1599 def _object_cast_to_Constraint(o):
1600 """_object_cast_to_Constraint(Object o) -> Constraint"""
1601 return _IMP_kernel._object_cast_to_Constraint(o)
1603 _object_types.append(
"Undecorator")
1606 def _object_cast_to_Undecorator(o):
1607 """_object_cast_to_Undecorator(Object o) -> Undecorator"""
1608 return _IMP_kernel._object_cast_to_Undecorator(o)
1610 _object_types.append(
"Container")
1613 def _object_cast_to_Container(o):
1614 """_object_cast_to_Container(Object o) -> Container"""
1615 return _IMP_kernel._object_cast_to_Container(o)
1617 _object_types.append(
"Optimizer")
1620 def _object_cast_to_Optimizer(o):
1621 """_object_cast_to_Optimizer(Object o) -> Optimizer"""
1622 return _IMP_kernel._object_cast_to_Optimizer(o)
1624 _object_types.append(
"AttributeOptimizer")
1627 def _object_cast_to_AttributeOptimizer(o):
1628 """_object_cast_to_AttributeOptimizer(Object o) -> AttributeOptimizer"""
1629 return _IMP_kernel._object_cast_to_AttributeOptimizer(o)
1631 _object_types.append(
"OptimizerState")
1634 def _object_cast_to_OptimizerState(o):
1635 """_object_cast_to_OptimizerState(Object o) -> OptimizerState"""
1636 return _IMP_kernel._object_cast_to_OptimizerState(o)
1638 _object_types.append(
"PairContainer")
1641 def _object_cast_to_PairContainer(o):
1642 """_object_cast_to_PairContainer(Object o) -> PairContainer"""
1643 return _IMP_kernel._object_cast_to_PairContainer(o)
1645 _object_types.append(
"PairModifier")
1648 def _object_cast_to_PairModifier(o):
1649 """_object_cast_to_PairModifier(Object o) -> PairModifier"""
1650 return _IMP_kernel._object_cast_to_PairModifier(o)
1652 _object_types.append(
"PairScore")
1655 def _object_cast_to_PairScore(o):
1656 """_object_cast_to_PairScore(Object o) -> PairScore"""
1657 return _IMP_kernel._object_cast_to_PairScore(o)
1659 _object_types.append(
"QuadContainer")
1662 def _object_cast_to_QuadContainer(o):
1663 """_object_cast_to_QuadContainer(Object o) -> QuadContainer"""
1664 return _IMP_kernel._object_cast_to_QuadContainer(o)
1666 _object_types.append(
"QuadModifier")
1669 def _object_cast_to_QuadModifier(o):
1670 """_object_cast_to_QuadModifier(Object o) -> QuadModifier"""
1671 return _IMP_kernel._object_cast_to_QuadModifier(o)
1673 _object_types.append(
"QuadScore")
1676 def _object_cast_to_QuadScore(o):
1677 """_object_cast_to_QuadScore(Object o) -> QuadScore"""
1678 return _IMP_kernel._object_cast_to_QuadScore(o)
1680 _object_types.append(
"Refiner")
1683 def _object_cast_to_Refiner(o):
1684 """_object_cast_to_Refiner(Object o) -> Refiner"""
1685 return _IMP_kernel._object_cast_to_Refiner(o)
1687 _object_types.append(
"Restraint")
1690 def _object_cast_to_Restraint(o):
1691 """_object_cast_to_Restraint(Object o) -> Restraint"""
1692 return _IMP_kernel._object_cast_to_Restraint(o)
1694 _object_types.append(
"Sampler")
1697 def _object_cast_to_Sampler(o):
1698 """_object_cast_to_Sampler(Object o) -> Sampler"""
1699 return _IMP_kernel._object_cast_to_Sampler(o)
1701 _object_types.append(
"ScoreState")
1704 def _object_cast_to_ScoreState(o):
1705 """_object_cast_to_ScoreState(Object o) -> ScoreState"""
1706 return _IMP_kernel._object_cast_to_ScoreState(o)
1708 _object_types.append(
"SingletonContainer")
1711 def _object_cast_to_SingletonContainer(o):
1712 """_object_cast_to_SingletonContainer(Object o) -> SingletonContainer"""
1713 return _IMP_kernel._object_cast_to_SingletonContainer(o)
1715 _object_types.append(
"SingletonModifier")
1718 def _object_cast_to_SingletonModifier(o):
1719 """_object_cast_to_SingletonModifier(Object o) -> SingletonModifier"""
1720 return _IMP_kernel._object_cast_to_SingletonModifier(o)
1722 _object_types.append(
"SingletonScore")
1725 def _object_cast_to_SingletonScore(o):
1726 """_object_cast_to_SingletonScore(Object o) -> SingletonScore"""
1727 return _IMP_kernel._object_cast_to_SingletonScore(o)
1729 _object_types.append(
"TripletContainer")
1732 def _object_cast_to_TripletContainer(o):
1733 """_object_cast_to_TripletContainer(Object o) -> TripletContainer"""
1734 return _IMP_kernel._object_cast_to_TripletContainer(o)
1736 _object_types.append(
"TripletModifier")
1739 def _object_cast_to_TripletModifier(o):
1740 """_object_cast_to_TripletModifier(Object o) -> TripletModifier"""
1741 return _IMP_kernel._object_cast_to_TripletModifier(o)
1743 _object_types.append(
"TripletScore")
1746 def _object_cast_to_TripletScore(o):
1747 """_object_cast_to_TripletScore(Object o) -> TripletScore"""
1748 return _IMP_kernel._object_cast_to_TripletScore(o)
1750 _object_types.append(
"UnaryFunction")
1753 def _object_cast_to_UnaryFunction(o):
1754 """_object_cast_to_UnaryFunction(Object o) -> UnaryFunction"""
1755 return _IMP_kernel._object_cast_to_UnaryFunction(o)
1757 _object_types.append(
"RestraintInfo")
1760 def _object_cast_to_RestraintInfo(o):
1761 """_object_cast_to_RestraintInfo(Object o) -> RestraintInfo"""
1762 return _IMP_kernel._object_cast_to_RestraintInfo(o)
1764 _object_types.append(
"ConfigurationSet")
1767 def _object_cast_to_ConfigurationSet(o):
1768 """_object_cast_to_ConfigurationSet(Object o) -> ConfigurationSet"""
1769 return _IMP_kernel._object_cast_to_ConfigurationSet(o)
1771 _object_types.append(
"Configuration")
1774 def _object_cast_to_Configuration(o):
1775 """_object_cast_to_Configuration(Object o) -> Configuration"""
1776 return _IMP_kernel._object_cast_to_Configuration(o)
1778 _object_types.append(
"Model")
1781 def _object_cast_to_Model(o):
1782 """_object_cast_to_Model(Object o) -> Model"""
1783 return _IMP_kernel._object_cast_to_Model(o)
1785 _object_types.append(
"Particle")
1788 def _object_cast_to_Particle(o):
1789 """_object_cast_to_Particle(Object o) -> Particle"""
1790 return _IMP_kernel._object_cast_to_Particle(o)
1792 _object_types.append(
"RestraintSet")
1795 def _object_cast_to_RestraintSet(o):
1796 """_object_cast_to_RestraintSet(Object o) -> RestraintSet"""
1797 return _IMP_kernel._object_cast_to_RestraintSet(o)
1799 ParticlePairsTemp=list
1800 _plural_types.append(
"ParticlePairsTemp")
1801 _value_types.append(
"ParticlePair")
1804 ParticleTripletsTemp=list
1805 _plural_types.append(
"ParticleTripletsTemp")
1806 _value_types.append(
"ParticleTriplet")
1809 ParticleQuadsTemp=list
1810 _plural_types.append(
"ParticleQuadsTemp")
1811 _value_types.append(
"ParticleQuad")
1814 ParticleIndexPairs=list
1815 _plural_types.append(
"ParticleIndexPairs")
1816 _value_types.append(
"ParticleIndexPair")
1819 ParticleIndexTriplets=list
1820 _plural_types.append(
"ParticleIndexTriplets")
1821 _value_types.append(
"ParticleIndexTriplet")
1824 ParticleIndexQuads=list
1825 _plural_types.append(
"ParticleIndexQuads")
1826 _value_types.append(
"ParticleIndexQuad")
1829 _object_types.append(
"SingletonPredicate")
1832 def _object_cast_to_SingletonPredicate(o):
1833 """_object_cast_to_SingletonPredicate(Object o) -> SingletonPredicate"""
1834 return _IMP_kernel._object_cast_to_SingletonPredicate(o)
1836 _object_types.append(
"PairPredicate")
1839 def _object_cast_to_PairPredicate(o):
1840 """_object_cast_to_PairPredicate(Object o) -> PairPredicate"""
1841 return _IMP_kernel._object_cast_to_PairPredicate(o)
1843 _object_types.append(
"TripletPredicate")
1846 def _object_cast_to_TripletPredicate(o):
1847 """_object_cast_to_TripletPredicate(Object o) -> TripletPredicate"""
1848 return _IMP_kernel._object_cast_to_TripletPredicate(o)
1850 _object_types.append(
"QuadPredicate")
1853 def _object_cast_to_QuadPredicate(o):
1854 """_object_cast_to_QuadPredicate(Object o) -> QuadPredicate"""
1855 return _IMP_kernel._object_cast_to_QuadPredicate(o)
1857 _object_types.append(
"SaveToConfigurationSetOptimizerState")
1860 def _object_cast_to_SaveToConfigurationSetOptimizerState(o):
1861 """_object_cast_to_SaveToConfigurationSetOptimizerState(Object o) -> SaveToConfigurationSetOptimizerState"""
1862 return _IMP_kernel._object_cast_to_SaveToConfigurationSetOptimizerState(o)
1864 EvaluationStates=list
1865 _plural_types.append(
"EvaluationStates")
1866 _value_types.append(
"EvaluationState")
1869 ScoreAccumulators=list
1870 _plural_types.append(
"ScoreAccumulators")
1871 _value_types.append(
"ScoreAccumulator")
1874 ParticleIndexes=list
1875 _plural_types.append(
"ParticleIndexes")
1876 _value_types.append(
"ParticleIndex")
1880 _plural_types.append(
"FloatIndexes")
1881 _value_types.append(
"FloatIndex")
1885 _plural_types.append(
"FloatKeys")
1886 _value_types.append(
"FloatKey")
1890 _plural_types.append(
"FloatsKeys")
1891 _value_types.append(
"FloatsKey")
1895 _plural_types.append(
"IntKeys")
1896 _value_types.append(
"IntKey")
1900 _plural_types.append(
"IntsKeys")
1901 _value_types.append(
"IntsKey")
1905 _plural_types.append(
"StringKeys")
1906 _value_types.append(
"StringKey")
1909 ParticleIndexKeys=list
1910 _plural_types.append(
"ParticleIndexKeys")
1911 _value_types.append(
"ParticleIndexKey")
1914 ParticleIndexesKeys=list
1915 _plural_types.append(
"ParticleIndexesKeys")
1916 _value_types.append(
"ParticleIndexesKey")
1920 _plural_types.append(
"ObjectKeys")
1921 _value_types.append(
"ObjectKey")
1925 _plural_types.append(
"ModelKeys")
1926 _value_types.append(
"ModelKey")
1930 _plural_types.append(
"TriggerKeys")
1931 _value_types.append(
"TriggerKey")
1934 _raii_types.append(
"ScopedSetFloatAttribute")
1937 _object_types.append(
"ScoringFunction")
1940 def _object_cast_to_ScoringFunction(o):
1941 """_object_cast_to_ScoringFunction(Object o) -> ScoringFunction"""
1942 return _IMP_kernel._object_cast_to_ScoringFunction(o)
1944 _object_types.append(
"ModelObject")
1947 def _object_cast_to_ModelObject(o):
1948 """_object_cast_to_ModelObject(Object o) -> ModelObject"""
1949 return _IMP_kernel._object_cast_to_ModelObject(o)
1951 def _TrivialDecorators(l=[]):
1952 return [_TrivialDecorator(x)
for x
in l]
1953 _plural_types.append(
"_TrivialDecorators")
1956 _value_types.append(
"_TrivialDecorator")
1959 def _TrivialDerivedDecorators(l=[]):
1960 return [_TrivialDerivedDecorator(x)
for x
in l]
1961 _plural_types.append(
"_TrivialDerivedDecorators")
1964 _value_types.append(
"_TrivialDerivedDecorator")
1967 def _TrivialTraitsDecorators(l=[]):
1968 return [_TrivialTraitsDecorator(x)
for x
in l]
1969 _plural_types.append(
"_TrivialTraitsDecorators")
1972 _value_types.append(
"_TrivialTraitsDecorator")
1975 _object_types.append(
"_ConstRestraint")
1978 def _object_cast_to__ConstRestraint(o):
1979 """_object_cast_to__ConstRestraint(Object o) -> _ConstRestraint"""
1980 return _IMP_kernel._object_cast_to__ConstRestraint(o)
1982 _object_types.append(
"_ConstOptimizer")
1985 def _object_cast_to__ConstOptimizer(o):
1986 """_object_cast_to__ConstOptimizer(Object o) -> _ConstOptimizer"""
1987 return _IMP_kernel._object_cast_to__ConstOptimizer(o)
1989 """Proxy of C++ IMP::internal::BoostDigraph<(IMP::DependencyGraph,p.IMP::ModelObject,IMP::ShowDependencyGraphVertex)> class"""
1990 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1991 __repr__ = _swig_repr
1994 """__init__(IMP::internal::BoostDigraph<(IMP::DependencyGraph,p.IMP::ModelObject,IMP::ShowDependencyGraphVertex)> self) -> DependencyGraph"""
1995 this = _IMP_kernel.new_DependencyGraph()
1997 self.this.append(this)
2001 def get_graph(self):
2002 """get_graph(DependencyGraph self) -> IMP::DependencyGraph const &"""
2003 return _IMP_kernel.DependencyGraph_get_graph(self)
2007 """get_vertices(DependencyGraph self) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptors"""
2008 return _IMP_kernel.DependencyGraph_get_vertices(self)
2011 def get_vertex_name(self, i):
2012 """get_vertex_name(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor i) -> ModelObject"""
2013 return _IMP_kernel.DependencyGraph_get_vertex_name(self, i)
2016 def get_in_neighbors(self, v):
2017 """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"""
2018 return _IMP_kernel.DependencyGraph_get_in_neighbors(self, v)
2021 def get_out_neighbors(self, v):
2022 """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"""
2023 return _IMP_kernel.DependencyGraph_get_out_neighbors(self, v)
2028 show_graphviz(DependencyGraph self, _ostream out)
2029 show_graphviz(DependencyGraph self)
2031 return _IMP_kernel.DependencyGraph_show_graphviz(self, *args)
2034 def get_graphviz_string(self):
2035 """get_graphviz_string(DependencyGraph self) -> std::string"""
2036 return _IMP_kernel.DependencyGraph_get_graphviz_string(self)
2039 def add_edge(self, v0, v1):
2040 """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)"""
2041 return _IMP_kernel.DependencyGraph_add_edge(self, v0, v1)
2044 def add_vertex(self, l):
2045 """add_vertex(DependencyGraph self, ModelObject l) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor"""
2046 return _IMP_kernel.DependencyGraph_add_vertex(self, l)
2049 def remove_vertex(self, l):
2050 """remove_vertex(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor l)"""
2051 return _IMP_kernel.DependencyGraph_remove_vertex(self, l)
2053 __swig_destroy__ = _IMP_kernel.delete_DependencyGraph
2054 __del__ =
lambda self:
None
2055 DependencyGraph_swigregister = _IMP_kernel.DependencyGraph_swigregister
2056 DependencyGraph_swigregister(DependencyGraph)
2059 _value_types.append(
"DependencyGraph")
2062 """Proxy of C++ IMP::Key<(0)> class"""
2063 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2065 def __init__(self, *args):
2067 __init__(IMP::Key<(0)> self) -> FloatKey
2068 __init__(IMP::Key<(0)> self, std::string const & c, bool is_implicit_add_permitted=True) -> FloatKey
2069 __init__(IMP::Key<(0)> self, std::string const & c) -> FloatKey
2070 __init__(IMP::Key<(0)> self, unsigned int i) -> FloatKey
2072 this = _IMP_kernel.new_FloatKey(*args)
2074 self.this.append(this)
2079 """add_key(std::string sc) -> unsigned int"""
2080 return _IMP_kernel.FloatKey_add_key(sc)
2082 add_key = staticmethod(add_key)
2084 def get_key_exists(sc):
2085 """get_key_exists(std::string sc) -> bool"""
2086 return _IMP_kernel.FloatKey_get_key_exists(sc)
2088 get_key_exists = staticmethod(get_key_exists)
2090 def get_string(self):
2091 """get_string(FloatKey self) -> std::string const"""
2092 return _IMP_kernel.FloatKey_get_string(self)
2095 def __cmp__(self, o):
2096 """__cmp__(FloatKey self, FloatKey o) -> int"""
2097 return _IMP_kernel.FloatKey___cmp__(self, o)
2100 def __eq__(self, o):
2101 """__eq__(FloatKey self, FloatKey o) -> bool"""
2102 return _IMP_kernel.FloatKey___eq__(self, o)
2105 def __ne__(self, o):
2106 """__ne__(FloatKey self, FloatKey o) -> bool"""
2107 return _IMP_kernel.FloatKey___ne__(self, o)
2110 def __lt__(self, o):
2111 """__lt__(FloatKey self, FloatKey o) -> bool"""
2112 return _IMP_kernel.FloatKey___lt__(self, o)
2115 def __gt__(self, o):
2116 """__gt__(FloatKey self, FloatKey o) -> bool"""
2117 return _IMP_kernel.FloatKey___gt__(self, o)
2120 def __ge__(self, o):
2121 """__ge__(FloatKey self, FloatKey o) -> bool"""
2122 return _IMP_kernel.FloatKey___ge__(self, o)
2125 def __le__(self, o):
2126 """__le__(FloatKey self, FloatKey o) -> bool"""
2127 return _IMP_kernel.FloatKey___le__(self, o)
2131 """__hash__(FloatKey self) -> std::size_t"""
2132 return _IMP_kernel.FloatKey___hash__(self)
2135 def show(self, *args):
2137 show(FloatKey self, _ostream out)
2140 return _IMP_kernel.FloatKey_show(self, *args)
2143 def add_alias(old_key, new_name):
2144 """add_alias(FloatKey old_key, std::string new_name) -> FloatKey"""
2145 return _IMP_kernel.FloatKey_add_alias(old_key, new_name)
2147 add_alias = staticmethod(add_alias)
2149 def get_number_of_keys():
2150 """get_number_of_keys() -> unsigned int"""
2151 return _IMP_kernel.FloatKey_get_number_of_keys()
2153 get_number_of_keys = staticmethod(get_number_of_keys)
2156 """get_index(FloatKey self) -> unsigned int"""
2157 return _IMP_kernel.FloatKey_get_index(self)
2161 """show_all(_ostream out)"""
2162 return _IMP_kernel.FloatKey_show_all(out)
2164 show_all = staticmethod(show_all)
2166 def get_all_strings():
2167 """get_all_strings() -> IMP::Vector< std::string >"""
2168 return _IMP_kernel.FloatKey_get_all_strings()
2170 get_all_strings = staticmethod(get_all_strings)
2172 def get_number_unique():
2173 """get_number_unique() -> unsigned int"""
2174 return _IMP_kernel.FloatKey_get_number_unique()
2176 get_number_unique = staticmethod(get_number_unique)
2179 """__str__(FloatKey self) -> std::string"""
2180 return _IMP_kernel.FloatKey___str__(self)
2184 """__repr__(FloatKey self) -> std::string"""
2185 return _IMP_kernel.FloatKey___repr__(self)
2187 __swig_destroy__ = _IMP_kernel.delete_FloatKey
2188 __del__ =
lambda self:
None
2189 FloatKey_swigregister = _IMP_kernel.FloatKey_swigregister
2190 FloatKey_swigregister(FloatKey)
2192 def FloatKey_add_key(sc):
2193 """FloatKey_add_key(std::string sc) -> unsigned int"""
2194 return _IMP_kernel.FloatKey_add_key(sc)
2196 def FloatKey_get_key_exists(sc):
2197 """FloatKey_get_key_exists(std::string sc) -> bool"""
2198 return _IMP_kernel.FloatKey_get_key_exists(sc)
2200 def FloatKey_add_alias(old_key, new_name):
2201 """FloatKey_add_alias(FloatKey old_key, std::string new_name) -> FloatKey"""
2202 return _IMP_kernel.FloatKey_add_alias(old_key, new_name)
2204 def FloatKey_get_number_of_keys():
2205 """FloatKey_get_number_of_keys() -> unsigned int"""
2206 return _IMP_kernel.FloatKey_get_number_of_keys()
2208 def FloatKey_show_all(out):
2209 """FloatKey_show_all(_ostream out)"""
2210 return _IMP_kernel.FloatKey_show_all(out)
2212 def FloatKey_get_all_strings():
2213 """FloatKey_get_all_strings() -> IMP::Vector< std::string >"""
2214 return _IMP_kernel.FloatKey_get_all_strings()
2216 def FloatKey_get_number_unique():
2217 """FloatKey_get_number_unique() -> unsigned int"""
2218 return _IMP_kernel.FloatKey_get_number_unique()
2221 """Proxy of C++ IMP::Key<(1)> class"""
2222 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2224 def __init__(self, *args):
2226 __init__(IMP::Key<(1)> self) -> IntKey
2227 __init__(IMP::Key<(1)> self, std::string const & c, bool is_implicit_add_permitted=True) -> IntKey
2228 __init__(IMP::Key<(1)> self, std::string const & c) -> IntKey
2229 __init__(IMP::Key<(1)> self, unsigned int i) -> IntKey
2231 this = _IMP_kernel.new_IntKey(*args)
2233 self.this.append(this)
2238 """add_key(std::string sc) -> unsigned int"""
2239 return _IMP_kernel.IntKey_add_key(sc)
2241 add_key = staticmethod(add_key)
2243 def get_key_exists(sc):
2244 """get_key_exists(std::string sc) -> bool"""
2245 return _IMP_kernel.IntKey_get_key_exists(sc)
2247 get_key_exists = staticmethod(get_key_exists)
2249 def get_string(self):
2250 """get_string(IntKey self) -> std::string const"""
2251 return _IMP_kernel.IntKey_get_string(self)
2254 def __cmp__(self, o):
2255 """__cmp__(IntKey self, IntKey o) -> int"""
2256 return _IMP_kernel.IntKey___cmp__(self, o)
2259 def __eq__(self, o):
2260 """__eq__(IntKey self, IntKey o) -> bool"""
2261 return _IMP_kernel.IntKey___eq__(self, o)
2264 def __ne__(self, o):
2265 """__ne__(IntKey self, IntKey o) -> bool"""
2266 return _IMP_kernel.IntKey___ne__(self, o)
2269 def __lt__(self, o):
2270 """__lt__(IntKey self, IntKey o) -> bool"""
2271 return _IMP_kernel.IntKey___lt__(self, o)
2274 def __gt__(self, o):
2275 """__gt__(IntKey self, IntKey o) -> bool"""
2276 return _IMP_kernel.IntKey___gt__(self, o)
2279 def __ge__(self, o):
2280 """__ge__(IntKey self, IntKey o) -> bool"""
2281 return _IMP_kernel.IntKey___ge__(self, o)
2284 def __le__(self, o):
2285 """__le__(IntKey self, IntKey o) -> bool"""
2286 return _IMP_kernel.IntKey___le__(self, o)
2290 """__hash__(IntKey self) -> std::size_t"""
2291 return _IMP_kernel.IntKey___hash__(self)
2294 def show(self, *args):
2296 show(IntKey self, _ostream out)
2299 return _IMP_kernel.IntKey_show(self, *args)
2302 def add_alias(old_key, new_name):
2303 """add_alias(IntKey old_key, std::string new_name) -> IntKey"""
2304 return _IMP_kernel.IntKey_add_alias(old_key, new_name)
2306 add_alias = staticmethod(add_alias)
2308 def get_number_of_keys():
2309 """get_number_of_keys() -> unsigned int"""
2310 return _IMP_kernel.IntKey_get_number_of_keys()
2312 get_number_of_keys = staticmethod(get_number_of_keys)
2315 """get_index(IntKey self) -> unsigned int"""
2316 return _IMP_kernel.IntKey_get_index(self)
2320 """show_all(_ostream out)"""
2321 return _IMP_kernel.IntKey_show_all(out)
2323 show_all = staticmethod(show_all)
2325 def get_all_strings():
2326 """get_all_strings() -> IMP::Vector< std::string >"""
2327 return _IMP_kernel.IntKey_get_all_strings()
2329 get_all_strings = staticmethod(get_all_strings)
2331 def get_number_unique():
2332 """get_number_unique() -> unsigned int"""
2333 return _IMP_kernel.IntKey_get_number_unique()
2335 get_number_unique = staticmethod(get_number_unique)
2338 """__str__(IntKey self) -> std::string"""
2339 return _IMP_kernel.IntKey___str__(self)
2343 """__repr__(IntKey self) -> std::string"""
2344 return _IMP_kernel.IntKey___repr__(self)
2346 __swig_destroy__ = _IMP_kernel.delete_IntKey
2347 __del__ =
lambda self:
None
2348 IntKey_swigregister = _IMP_kernel.IntKey_swigregister
2349 IntKey_swigregister(IntKey)
2351 def IntKey_add_key(sc):
2352 """IntKey_add_key(std::string sc) -> unsigned int"""
2353 return _IMP_kernel.IntKey_add_key(sc)
2355 def IntKey_get_key_exists(sc):
2356 """IntKey_get_key_exists(std::string sc) -> bool"""
2357 return _IMP_kernel.IntKey_get_key_exists(sc)
2359 def IntKey_add_alias(old_key, new_name):
2360 """IntKey_add_alias(IntKey old_key, std::string new_name) -> IntKey"""
2361 return _IMP_kernel.IntKey_add_alias(old_key, new_name)
2363 def IntKey_get_number_of_keys():
2364 """IntKey_get_number_of_keys() -> unsigned int"""
2365 return _IMP_kernel.IntKey_get_number_of_keys()
2367 def IntKey_show_all(out):
2368 """IntKey_show_all(_ostream out)"""
2369 return _IMP_kernel.IntKey_show_all(out)
2371 def IntKey_get_all_strings():
2372 """IntKey_get_all_strings() -> IMP::Vector< std::string >"""
2373 return _IMP_kernel.IntKey_get_all_strings()
2375 def IntKey_get_number_unique():
2376 """IntKey_get_number_unique() -> unsigned int"""
2377 return _IMP_kernel.IntKey_get_number_unique()
2380 """Proxy of C++ IMP::Key<(2)> class"""
2381 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2383 def __init__(self, *args):
2385 __init__(IMP::Key<(2)> self) -> StringKey
2386 __init__(IMP::Key<(2)> self, std::string const & c, bool is_implicit_add_permitted=True) -> StringKey
2387 __init__(IMP::Key<(2)> self, std::string const & c) -> StringKey
2388 __init__(IMP::Key<(2)> self, unsigned int i) -> StringKey
2390 this = _IMP_kernel.new_StringKey(*args)
2392 self.this.append(this)
2397 """add_key(std::string sc) -> unsigned int"""
2398 return _IMP_kernel.StringKey_add_key(sc)
2400 add_key = staticmethod(add_key)
2402 def get_key_exists(sc):
2403 """get_key_exists(std::string sc) -> bool"""
2404 return _IMP_kernel.StringKey_get_key_exists(sc)
2406 get_key_exists = staticmethod(get_key_exists)
2408 def get_string(self):
2409 """get_string(StringKey self) -> std::string const"""
2410 return _IMP_kernel.StringKey_get_string(self)
2413 def __cmp__(self, o):
2414 """__cmp__(StringKey self, StringKey o) -> int"""
2415 return _IMP_kernel.StringKey___cmp__(self, o)
2418 def __eq__(self, o):
2419 """__eq__(StringKey self, StringKey o) -> bool"""
2420 return _IMP_kernel.StringKey___eq__(self, o)
2423 def __ne__(self, o):
2424 """__ne__(StringKey self, StringKey o) -> bool"""
2425 return _IMP_kernel.StringKey___ne__(self, o)
2428 def __lt__(self, o):
2429 """__lt__(StringKey self, StringKey o) -> bool"""
2430 return _IMP_kernel.StringKey___lt__(self, o)
2433 def __gt__(self, o):
2434 """__gt__(StringKey self, StringKey o) -> bool"""
2435 return _IMP_kernel.StringKey___gt__(self, o)
2438 def __ge__(self, o):
2439 """__ge__(StringKey self, StringKey o) -> bool"""
2440 return _IMP_kernel.StringKey___ge__(self, o)
2443 def __le__(self, o):
2444 """__le__(StringKey self, StringKey o) -> bool"""
2445 return _IMP_kernel.StringKey___le__(self, o)
2449 """__hash__(StringKey self) -> std::size_t"""
2450 return _IMP_kernel.StringKey___hash__(self)
2453 def show(self, *args):
2455 show(StringKey self, _ostream out)
2456 show(StringKey self)
2458 return _IMP_kernel.StringKey_show(self, *args)
2461 def add_alias(old_key, new_name):
2462 """add_alias(StringKey old_key, std::string new_name) -> StringKey"""
2463 return _IMP_kernel.StringKey_add_alias(old_key, new_name)
2465 add_alias = staticmethod(add_alias)
2467 def get_number_of_keys():
2468 """get_number_of_keys() -> unsigned int"""
2469 return _IMP_kernel.StringKey_get_number_of_keys()
2471 get_number_of_keys = staticmethod(get_number_of_keys)
2474 """get_index(StringKey self) -> unsigned int"""
2475 return _IMP_kernel.StringKey_get_index(self)
2479 """show_all(_ostream out)"""
2480 return _IMP_kernel.StringKey_show_all(out)
2482 show_all = staticmethod(show_all)
2484 def get_all_strings():
2485 """get_all_strings() -> IMP::Vector< std::string >"""
2486 return _IMP_kernel.StringKey_get_all_strings()
2488 get_all_strings = staticmethod(get_all_strings)
2490 def get_number_unique():
2491 """get_number_unique() -> unsigned int"""
2492 return _IMP_kernel.StringKey_get_number_unique()
2494 get_number_unique = staticmethod(get_number_unique)
2497 """__str__(StringKey self) -> std::string"""
2498 return _IMP_kernel.StringKey___str__(self)
2502 """__repr__(StringKey self) -> std::string"""
2503 return _IMP_kernel.StringKey___repr__(self)
2505 __swig_destroy__ = _IMP_kernel.delete_StringKey
2506 __del__ =
lambda self:
None
2507 StringKey_swigregister = _IMP_kernel.StringKey_swigregister
2508 StringKey_swigregister(StringKey)
2510 def StringKey_add_key(sc):
2511 """StringKey_add_key(std::string sc) -> unsigned int"""
2512 return _IMP_kernel.StringKey_add_key(sc)
2514 def StringKey_get_key_exists(sc):
2515 """StringKey_get_key_exists(std::string sc) -> bool"""
2516 return _IMP_kernel.StringKey_get_key_exists(sc)
2518 def StringKey_add_alias(old_key, new_name):
2519 """StringKey_add_alias(StringKey old_key, std::string new_name) -> StringKey"""
2520 return _IMP_kernel.StringKey_add_alias(old_key, new_name)
2522 def StringKey_get_number_of_keys():
2523 """StringKey_get_number_of_keys() -> unsigned int"""
2524 return _IMP_kernel.StringKey_get_number_of_keys()
2526 def StringKey_show_all(out):
2527 """StringKey_show_all(_ostream out)"""
2528 return _IMP_kernel.StringKey_show_all(out)
2530 def StringKey_get_all_strings():
2531 """StringKey_get_all_strings() -> IMP::Vector< std::string >"""
2532 return _IMP_kernel.StringKey_get_all_strings()
2534 def StringKey_get_number_unique():
2535 """StringKey_get_number_unique() -> unsigned int"""
2536 return _IMP_kernel.StringKey_get_number_unique()
2539 """Proxy of C++ IMP::Key<(3)> class"""
2540 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2542 def __init__(self, *args):
2544 __init__(IMP::Key<(3)> self) -> ParticleIndexKey
2545 __init__(IMP::Key<(3)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleIndexKey
2546 __init__(IMP::Key<(3)> self, std::string const & c) -> ParticleIndexKey
2547 __init__(IMP::Key<(3)> self, unsigned int i) -> ParticleIndexKey
2549 this = _IMP_kernel.new_ParticleIndexKey(*args)
2551 self.this.append(this)
2556 """add_key(std::string sc) -> unsigned int"""
2557 return _IMP_kernel.ParticleIndexKey_add_key(sc)
2559 add_key = staticmethod(add_key)
2561 def get_key_exists(sc):
2562 """get_key_exists(std::string sc) -> bool"""
2563 return _IMP_kernel.ParticleIndexKey_get_key_exists(sc)
2565 get_key_exists = staticmethod(get_key_exists)
2567 def get_string(self):
2568 """get_string(ParticleIndexKey self) -> std::string const"""
2569 return _IMP_kernel.ParticleIndexKey_get_string(self)
2572 def __cmp__(self, o):
2573 """__cmp__(ParticleIndexKey self, ParticleIndexKey o) -> int"""
2574 return _IMP_kernel.ParticleIndexKey___cmp__(self, o)
2577 def __eq__(self, o):
2578 """__eq__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2579 return _IMP_kernel.ParticleIndexKey___eq__(self, o)
2582 def __ne__(self, o):
2583 """__ne__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2584 return _IMP_kernel.ParticleIndexKey___ne__(self, o)
2587 def __lt__(self, o):
2588 """__lt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2589 return _IMP_kernel.ParticleIndexKey___lt__(self, o)
2592 def __gt__(self, o):
2593 """__gt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2594 return _IMP_kernel.ParticleIndexKey___gt__(self, o)
2597 def __ge__(self, o):
2598 """__ge__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2599 return _IMP_kernel.ParticleIndexKey___ge__(self, o)
2602 def __le__(self, o):
2603 """__le__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2604 return _IMP_kernel.ParticleIndexKey___le__(self, o)
2608 """__hash__(ParticleIndexKey self) -> std::size_t"""
2609 return _IMP_kernel.ParticleIndexKey___hash__(self)
2612 def show(self, *args):
2614 show(ParticleIndexKey self, _ostream out)
2615 show(ParticleIndexKey self)
2617 return _IMP_kernel.ParticleIndexKey_show(self, *args)
2620 def add_alias(old_key, new_name):
2621 """add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
2622 return _IMP_kernel.ParticleIndexKey_add_alias(old_key, new_name)
2624 add_alias = staticmethod(add_alias)
2626 def get_number_of_keys():
2627 """get_number_of_keys() -> unsigned int"""
2628 return _IMP_kernel.ParticleIndexKey_get_number_of_keys()
2630 get_number_of_keys = staticmethod(get_number_of_keys)
2633 """get_index(ParticleIndexKey self) -> unsigned int"""
2634 return _IMP_kernel.ParticleIndexKey_get_index(self)
2638 """show_all(_ostream out)"""
2639 return _IMP_kernel.ParticleIndexKey_show_all(out)
2641 show_all = staticmethod(show_all)
2643 def get_all_strings():
2644 """get_all_strings() -> IMP::Vector< std::string >"""
2645 return _IMP_kernel.ParticleIndexKey_get_all_strings()
2647 get_all_strings = staticmethod(get_all_strings)
2649 def get_number_unique():
2650 """get_number_unique() -> unsigned int"""
2651 return _IMP_kernel.ParticleIndexKey_get_number_unique()
2653 get_number_unique = staticmethod(get_number_unique)
2656 """__str__(ParticleIndexKey self) -> std::string"""
2657 return _IMP_kernel.ParticleIndexKey___str__(self)
2661 """__repr__(ParticleIndexKey self) -> std::string"""
2662 return _IMP_kernel.ParticleIndexKey___repr__(self)
2664 __swig_destroy__ = _IMP_kernel.delete_ParticleIndexKey
2665 __del__ =
lambda self:
None
2666 ParticleIndexKey_swigregister = _IMP_kernel.ParticleIndexKey_swigregister
2667 ParticleIndexKey_swigregister(ParticleIndexKey)
2669 def ParticleIndexKey_add_key(sc):
2670 """ParticleIndexKey_add_key(std::string sc) -> unsigned int"""
2671 return _IMP_kernel.ParticleIndexKey_add_key(sc)
2673 def ParticleIndexKey_get_key_exists(sc):
2674 """ParticleIndexKey_get_key_exists(std::string sc) -> bool"""
2675 return _IMP_kernel.ParticleIndexKey_get_key_exists(sc)
2677 def ParticleIndexKey_add_alias(old_key, new_name):
2678 """ParticleIndexKey_add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
2679 return _IMP_kernel.ParticleIndexKey_add_alias(old_key, new_name)
2681 def ParticleIndexKey_get_number_of_keys():
2682 """ParticleIndexKey_get_number_of_keys() -> unsigned int"""
2683 return _IMP_kernel.ParticleIndexKey_get_number_of_keys()
2685 def ParticleIndexKey_show_all(out):
2686 """ParticleIndexKey_show_all(_ostream out)"""
2687 return _IMP_kernel.ParticleIndexKey_show_all(out)
2689 def ParticleIndexKey_get_all_strings():
2690 """ParticleIndexKey_get_all_strings() -> IMP::Vector< std::string >"""
2691 return _IMP_kernel.ParticleIndexKey_get_all_strings()
2693 def ParticleIndexKey_get_number_unique():
2694 """ParticleIndexKey_get_number_unique() -> unsigned int"""
2695 return _IMP_kernel.ParticleIndexKey_get_number_unique()
2698 """Proxy of C++ IMP::Key<(4)> class"""
2699 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2701 def __init__(self, *args):
2703 __init__(IMP::Key<(4)> self) -> ObjectKey
2704 __init__(IMP::Key<(4)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ObjectKey
2705 __init__(IMP::Key<(4)> self, std::string const & c) -> ObjectKey
2706 __init__(IMP::Key<(4)> self, unsigned int i) -> ObjectKey
2708 this = _IMP_kernel.new_ObjectKey(*args)
2710 self.this.append(this)
2715 """add_key(std::string sc) -> unsigned int"""
2716 return _IMP_kernel.ObjectKey_add_key(sc)
2718 add_key = staticmethod(add_key)
2720 def get_key_exists(sc):
2721 """get_key_exists(std::string sc) -> bool"""
2722 return _IMP_kernel.ObjectKey_get_key_exists(sc)
2724 get_key_exists = staticmethod(get_key_exists)
2726 def get_string(self):
2727 """get_string(ObjectKey self) -> std::string const"""
2728 return _IMP_kernel.ObjectKey_get_string(self)
2731 def __cmp__(self, o):
2732 """__cmp__(ObjectKey self, ObjectKey o) -> int"""
2733 return _IMP_kernel.ObjectKey___cmp__(self, o)
2736 def __eq__(self, o):
2737 """__eq__(ObjectKey self, ObjectKey o) -> bool"""
2738 return _IMP_kernel.ObjectKey___eq__(self, o)
2741 def __ne__(self, o):
2742 """__ne__(ObjectKey self, ObjectKey o) -> bool"""
2743 return _IMP_kernel.ObjectKey___ne__(self, o)
2746 def __lt__(self, o):
2747 """__lt__(ObjectKey self, ObjectKey o) -> bool"""
2748 return _IMP_kernel.ObjectKey___lt__(self, o)
2751 def __gt__(self, o):
2752 """__gt__(ObjectKey self, ObjectKey o) -> bool"""
2753 return _IMP_kernel.ObjectKey___gt__(self, o)
2756 def __ge__(self, o):
2757 """__ge__(ObjectKey self, ObjectKey o) -> bool"""
2758 return _IMP_kernel.ObjectKey___ge__(self, o)
2761 def __le__(self, o):
2762 """__le__(ObjectKey self, ObjectKey o) -> bool"""
2763 return _IMP_kernel.ObjectKey___le__(self, o)
2767 """__hash__(ObjectKey self) -> std::size_t"""
2768 return _IMP_kernel.ObjectKey___hash__(self)
2771 def show(self, *args):
2773 show(ObjectKey self, _ostream out)
2774 show(ObjectKey self)
2776 return _IMP_kernel.ObjectKey_show(self, *args)
2779 def add_alias(old_key, new_name):
2780 """add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
2781 return _IMP_kernel.ObjectKey_add_alias(old_key, new_name)
2783 add_alias = staticmethod(add_alias)
2785 def get_number_of_keys():
2786 """get_number_of_keys() -> unsigned int"""
2787 return _IMP_kernel.ObjectKey_get_number_of_keys()
2789 get_number_of_keys = staticmethod(get_number_of_keys)
2792 """get_index(ObjectKey self) -> unsigned int"""
2793 return _IMP_kernel.ObjectKey_get_index(self)
2797 """show_all(_ostream out)"""
2798 return _IMP_kernel.ObjectKey_show_all(out)
2800 show_all = staticmethod(show_all)
2802 def get_all_strings():
2803 """get_all_strings() -> IMP::Vector< std::string >"""
2804 return _IMP_kernel.ObjectKey_get_all_strings()
2806 get_all_strings = staticmethod(get_all_strings)
2808 def get_number_unique():
2809 """get_number_unique() -> unsigned int"""
2810 return _IMP_kernel.ObjectKey_get_number_unique()
2812 get_number_unique = staticmethod(get_number_unique)
2815 """__str__(ObjectKey self) -> std::string"""
2816 return _IMP_kernel.ObjectKey___str__(self)
2820 """__repr__(ObjectKey self) -> std::string"""
2821 return _IMP_kernel.ObjectKey___repr__(self)
2823 __swig_destroy__ = _IMP_kernel.delete_ObjectKey
2824 __del__ =
lambda self:
None
2825 ObjectKey_swigregister = _IMP_kernel.ObjectKey_swigregister
2826 ObjectKey_swigregister(ObjectKey)
2828 def ObjectKey_add_key(sc):
2829 """ObjectKey_add_key(std::string sc) -> unsigned int"""
2830 return _IMP_kernel.ObjectKey_add_key(sc)
2832 def ObjectKey_get_key_exists(sc):
2833 """ObjectKey_get_key_exists(std::string sc) -> bool"""
2834 return _IMP_kernel.ObjectKey_get_key_exists(sc)
2836 def ObjectKey_add_alias(old_key, new_name):
2837 """ObjectKey_add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
2838 return _IMP_kernel.ObjectKey_add_alias(old_key, new_name)
2840 def ObjectKey_get_number_of_keys():
2841 """ObjectKey_get_number_of_keys() -> unsigned int"""
2842 return _IMP_kernel.ObjectKey_get_number_of_keys()
2844 def ObjectKey_show_all(out):
2845 """ObjectKey_show_all(_ostream out)"""
2846 return _IMP_kernel.ObjectKey_show_all(out)
2848 def ObjectKey_get_all_strings():
2849 """ObjectKey_get_all_strings() -> IMP::Vector< std::string >"""
2850 return _IMP_kernel.ObjectKey_get_all_strings()
2852 def ObjectKey_get_number_unique():
2853 """ObjectKey_get_number_unique() -> unsigned int"""
2854 return _IMP_kernel.ObjectKey_get_number_unique()
2857 """Proxy of C++ IMP::Key<(5)> class"""
2858 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2860 def __init__(self, *args):
2862 __init__(IMP::Key<(5)> self) -> IntsKey
2863 __init__(IMP::Key<(5)> self, std::string const & c, bool is_implicit_add_permitted=True) -> IntsKey
2864 __init__(IMP::Key<(5)> self, std::string const & c) -> IntsKey
2865 __init__(IMP::Key<(5)> self, unsigned int i) -> IntsKey
2867 this = _IMP_kernel.new_IntsKey(*args)
2869 self.this.append(this)
2874 """add_key(std::string sc) -> unsigned int"""
2875 return _IMP_kernel.IntsKey_add_key(sc)
2877 add_key = staticmethod(add_key)
2879 def get_key_exists(sc):
2880 """get_key_exists(std::string sc) -> bool"""
2881 return _IMP_kernel.IntsKey_get_key_exists(sc)
2883 get_key_exists = staticmethod(get_key_exists)
2885 def get_string(self):
2886 """get_string(IntsKey self) -> std::string const"""
2887 return _IMP_kernel.IntsKey_get_string(self)
2890 def __cmp__(self, o):
2891 """__cmp__(IntsKey self, IntsKey o) -> int"""
2892 return _IMP_kernel.IntsKey___cmp__(self, o)
2895 def __eq__(self, o):
2896 """__eq__(IntsKey self, IntsKey o) -> bool"""
2897 return _IMP_kernel.IntsKey___eq__(self, o)
2900 def __ne__(self, o):
2901 """__ne__(IntsKey self, IntsKey o) -> bool"""
2902 return _IMP_kernel.IntsKey___ne__(self, o)
2905 def __lt__(self, o):
2906 """__lt__(IntsKey self, IntsKey o) -> bool"""
2907 return _IMP_kernel.IntsKey___lt__(self, o)
2910 def __gt__(self, o):
2911 """__gt__(IntsKey self, IntsKey o) -> bool"""
2912 return _IMP_kernel.IntsKey___gt__(self, o)
2915 def __ge__(self, o):
2916 """__ge__(IntsKey self, IntsKey o) -> bool"""
2917 return _IMP_kernel.IntsKey___ge__(self, o)
2920 def __le__(self, o):
2921 """__le__(IntsKey self, IntsKey o) -> bool"""
2922 return _IMP_kernel.IntsKey___le__(self, o)
2926 """__hash__(IntsKey self) -> std::size_t"""
2927 return _IMP_kernel.IntsKey___hash__(self)
2930 def show(self, *args):
2932 show(IntsKey self, _ostream out)
2935 return _IMP_kernel.IntsKey_show(self, *args)
2938 def add_alias(old_key, new_name):
2939 """add_alias(IntsKey old_key, std::string new_name) -> IntsKey"""
2940 return _IMP_kernel.IntsKey_add_alias(old_key, new_name)
2942 add_alias = staticmethod(add_alias)
2944 def get_number_of_keys():
2945 """get_number_of_keys() -> unsigned int"""
2946 return _IMP_kernel.IntsKey_get_number_of_keys()
2948 get_number_of_keys = staticmethod(get_number_of_keys)
2951 """get_index(IntsKey self) -> unsigned int"""
2952 return _IMP_kernel.IntsKey_get_index(self)
2956 """show_all(_ostream out)"""
2957 return _IMP_kernel.IntsKey_show_all(out)
2959 show_all = staticmethod(show_all)
2961 def get_all_strings():
2962 """get_all_strings() -> IMP::Vector< std::string >"""
2963 return _IMP_kernel.IntsKey_get_all_strings()
2965 get_all_strings = staticmethod(get_all_strings)
2967 def get_number_unique():
2968 """get_number_unique() -> unsigned int"""
2969 return _IMP_kernel.IntsKey_get_number_unique()
2971 get_number_unique = staticmethod(get_number_unique)
2974 """__str__(IntsKey self) -> std::string"""
2975 return _IMP_kernel.IntsKey___str__(self)
2979 """__repr__(IntsKey self) -> std::string"""
2980 return _IMP_kernel.IntsKey___repr__(self)
2982 __swig_destroy__ = _IMP_kernel.delete_IntsKey
2983 __del__ =
lambda self:
None
2984 IntsKey_swigregister = _IMP_kernel.IntsKey_swigregister
2985 IntsKey_swigregister(IntsKey)
2987 def IntsKey_add_key(sc):
2988 """IntsKey_add_key(std::string sc) -> unsigned int"""
2989 return _IMP_kernel.IntsKey_add_key(sc)
2991 def IntsKey_get_key_exists(sc):
2992 """IntsKey_get_key_exists(std::string sc) -> bool"""
2993 return _IMP_kernel.IntsKey_get_key_exists(sc)
2995 def IntsKey_add_alias(old_key, new_name):
2996 """IntsKey_add_alias(IntsKey old_key, std::string new_name) -> IntsKey"""
2997 return _IMP_kernel.IntsKey_add_alias(old_key, new_name)
2999 def IntsKey_get_number_of_keys():
3000 """IntsKey_get_number_of_keys() -> unsigned int"""
3001 return _IMP_kernel.IntsKey_get_number_of_keys()
3003 def IntsKey_show_all(out):
3004 """IntsKey_show_all(_ostream out)"""
3005 return _IMP_kernel.IntsKey_show_all(out)
3007 def IntsKey_get_all_strings():
3008 """IntsKey_get_all_strings() -> IMP::Vector< std::string >"""
3009 return _IMP_kernel.IntsKey_get_all_strings()
3011 def IntsKey_get_number_unique():
3012 """IntsKey_get_number_unique() -> unsigned int"""
3013 return _IMP_kernel.IntsKey_get_number_unique()
3016 """Proxy of C++ IMP::Key<(6)> class"""
3017 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3019 def __init__(self, *args):
3021 __init__(IMP::Key<(6)> self) -> ParticleIndexesKey
3022 __init__(IMP::Key<(6)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleIndexesKey
3023 __init__(IMP::Key<(6)> self, std::string const & c) -> ParticleIndexesKey
3024 __init__(IMP::Key<(6)> self, unsigned int i) -> ParticleIndexesKey
3026 this = _IMP_kernel.new_ParticleIndexesKey(*args)
3028 self.this.append(this)
3033 """add_key(std::string sc) -> unsigned int"""
3034 return _IMP_kernel.ParticleIndexesKey_add_key(sc)
3036 add_key = staticmethod(add_key)
3038 def get_key_exists(sc):
3039 """get_key_exists(std::string sc) -> bool"""
3040 return _IMP_kernel.ParticleIndexesKey_get_key_exists(sc)
3042 get_key_exists = staticmethod(get_key_exists)
3044 def get_string(self):
3045 """get_string(ParticleIndexesKey self) -> std::string const"""
3046 return _IMP_kernel.ParticleIndexesKey_get_string(self)
3049 def __cmp__(self, o):
3050 """__cmp__(ParticleIndexesKey self, ParticleIndexesKey o) -> int"""
3051 return _IMP_kernel.ParticleIndexesKey___cmp__(self, o)
3054 def __eq__(self, o):
3055 """__eq__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3056 return _IMP_kernel.ParticleIndexesKey___eq__(self, o)
3059 def __ne__(self, o):
3060 """__ne__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3061 return _IMP_kernel.ParticleIndexesKey___ne__(self, o)
3064 def __lt__(self, o):
3065 """__lt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3066 return _IMP_kernel.ParticleIndexesKey___lt__(self, o)
3069 def __gt__(self, o):
3070 """__gt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3071 return _IMP_kernel.ParticleIndexesKey___gt__(self, o)
3074 def __ge__(self, o):
3075 """__ge__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3076 return _IMP_kernel.ParticleIndexesKey___ge__(self, o)
3079 def __le__(self, o):
3080 """__le__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3081 return _IMP_kernel.ParticleIndexesKey___le__(self, o)
3085 """__hash__(ParticleIndexesKey self) -> std::size_t"""
3086 return _IMP_kernel.ParticleIndexesKey___hash__(self)
3089 def show(self, *args):
3091 show(ParticleIndexesKey self, _ostream out)
3092 show(ParticleIndexesKey self)
3094 return _IMP_kernel.ParticleIndexesKey_show(self, *args)
3097 def add_alias(old_key, new_name):
3098 """add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
3099 return _IMP_kernel.ParticleIndexesKey_add_alias(old_key, new_name)
3101 add_alias = staticmethod(add_alias)
3103 def get_number_of_keys():
3104 """get_number_of_keys() -> unsigned int"""
3105 return _IMP_kernel.ParticleIndexesKey_get_number_of_keys()
3107 get_number_of_keys = staticmethod(get_number_of_keys)
3110 """get_index(ParticleIndexesKey self) -> unsigned int"""
3111 return _IMP_kernel.ParticleIndexesKey_get_index(self)
3115 """show_all(_ostream out)"""
3116 return _IMP_kernel.ParticleIndexesKey_show_all(out)
3118 show_all = staticmethod(show_all)
3120 def get_all_strings():
3121 """get_all_strings() -> IMP::Vector< std::string >"""
3122 return _IMP_kernel.ParticleIndexesKey_get_all_strings()
3124 get_all_strings = staticmethod(get_all_strings)
3126 def get_number_unique():
3127 """get_number_unique() -> unsigned int"""
3128 return _IMP_kernel.ParticleIndexesKey_get_number_unique()
3130 get_number_unique = staticmethod(get_number_unique)
3133 """__str__(ParticleIndexesKey self) -> std::string"""
3134 return _IMP_kernel.ParticleIndexesKey___str__(self)
3138 """__repr__(ParticleIndexesKey self) -> std::string"""
3139 return _IMP_kernel.ParticleIndexesKey___repr__(self)
3141 __swig_destroy__ = _IMP_kernel.delete_ParticleIndexesKey
3142 __del__ =
lambda self:
None
3143 ParticleIndexesKey_swigregister = _IMP_kernel.ParticleIndexesKey_swigregister
3144 ParticleIndexesKey_swigregister(ParticleIndexesKey)
3146 def ParticleIndexesKey_add_key(sc):
3147 """ParticleIndexesKey_add_key(std::string sc) -> unsigned int"""
3148 return _IMP_kernel.ParticleIndexesKey_add_key(sc)
3150 def ParticleIndexesKey_get_key_exists(sc):
3151 """ParticleIndexesKey_get_key_exists(std::string sc) -> bool"""
3152 return _IMP_kernel.ParticleIndexesKey_get_key_exists(sc)
3154 def ParticleIndexesKey_add_alias(old_key, new_name):
3155 """ParticleIndexesKey_add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
3156 return _IMP_kernel.ParticleIndexesKey_add_alias(old_key, new_name)
3158 def ParticleIndexesKey_get_number_of_keys():
3159 """ParticleIndexesKey_get_number_of_keys() -> unsigned int"""
3160 return _IMP_kernel.ParticleIndexesKey_get_number_of_keys()
3162 def ParticleIndexesKey_show_all(out):
3163 """ParticleIndexesKey_show_all(_ostream out)"""
3164 return _IMP_kernel.ParticleIndexesKey_show_all(out)
3166 def ParticleIndexesKey_get_all_strings():
3167 """ParticleIndexesKey_get_all_strings() -> IMP::Vector< std::string >"""
3168 return _IMP_kernel.ParticleIndexesKey_get_all_strings()
3170 def ParticleIndexesKey_get_number_unique():
3171 """ParticleIndexesKey_get_number_unique() -> unsigned int"""
3172 return _IMP_kernel.ParticleIndexesKey_get_number_unique()
3175 """Proxy of C++ IMP::Key<(8)> class"""
3176 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3178 def __init__(self, *args):
3180 __init__(IMP::Key<(8)> self) -> ModelKey
3181 __init__(IMP::Key<(8)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ModelKey
3182 __init__(IMP::Key<(8)> self, std::string const & c) -> ModelKey
3183 __init__(IMP::Key<(8)> self, unsigned int i) -> ModelKey
3185 this = _IMP_kernel.new_ModelKey(*args)
3187 self.this.append(this)
3192 """add_key(std::string sc) -> unsigned int"""
3193 return _IMP_kernel.ModelKey_add_key(sc)
3195 add_key = staticmethod(add_key)
3197 def get_key_exists(sc):
3198 """get_key_exists(std::string sc) -> bool"""
3199 return _IMP_kernel.ModelKey_get_key_exists(sc)
3201 get_key_exists = staticmethod(get_key_exists)
3203 def get_string(self):
3204 """get_string(ModelKey self) -> std::string const"""
3205 return _IMP_kernel.ModelKey_get_string(self)
3208 def __cmp__(self, o):
3209 """__cmp__(ModelKey self, ModelKey o) -> int"""
3210 return _IMP_kernel.ModelKey___cmp__(self, o)
3213 def __eq__(self, o):
3214 """__eq__(ModelKey self, ModelKey o) -> bool"""
3215 return _IMP_kernel.ModelKey___eq__(self, o)
3218 def __ne__(self, o):
3219 """__ne__(ModelKey self, ModelKey o) -> bool"""
3220 return _IMP_kernel.ModelKey___ne__(self, o)
3223 def __lt__(self, o):
3224 """__lt__(ModelKey self, ModelKey o) -> bool"""
3225 return _IMP_kernel.ModelKey___lt__(self, o)
3228 def __gt__(self, o):
3229 """__gt__(ModelKey self, ModelKey o) -> bool"""
3230 return _IMP_kernel.ModelKey___gt__(self, o)
3233 def __ge__(self, o):
3234 """__ge__(ModelKey self, ModelKey o) -> bool"""
3235 return _IMP_kernel.ModelKey___ge__(self, o)
3238 def __le__(self, o):
3239 """__le__(ModelKey self, ModelKey o) -> bool"""
3240 return _IMP_kernel.ModelKey___le__(self, o)
3244 """__hash__(ModelKey self) -> std::size_t"""
3245 return _IMP_kernel.ModelKey___hash__(self)
3248 def show(self, *args):
3250 show(ModelKey self, _ostream out)
3253 return _IMP_kernel.ModelKey_show(self, *args)
3256 def add_alias(old_key, new_name):
3257 """add_alias(ModelKey old_key, std::string new_name) -> ModelKey"""
3258 return _IMP_kernel.ModelKey_add_alias(old_key, new_name)
3260 add_alias = staticmethod(add_alias)
3262 def get_number_of_keys():
3263 """get_number_of_keys() -> unsigned int"""
3264 return _IMP_kernel.ModelKey_get_number_of_keys()
3266 get_number_of_keys = staticmethod(get_number_of_keys)
3269 """get_index(ModelKey self) -> unsigned int"""
3270 return _IMP_kernel.ModelKey_get_index(self)
3274 """show_all(_ostream out)"""
3275 return _IMP_kernel.ModelKey_show_all(out)
3277 show_all = staticmethod(show_all)
3279 def get_all_strings():
3280 """get_all_strings() -> IMP::Vector< std::string >"""
3281 return _IMP_kernel.ModelKey_get_all_strings()
3283 get_all_strings = staticmethod(get_all_strings)
3285 def get_number_unique():
3286 """get_number_unique() -> unsigned int"""
3287 return _IMP_kernel.ModelKey_get_number_unique()
3289 get_number_unique = staticmethod(get_number_unique)
3292 """__str__(ModelKey self) -> std::string"""
3293 return _IMP_kernel.ModelKey___str__(self)
3297 """__repr__(ModelKey self) -> std::string"""
3298 return _IMP_kernel.ModelKey___repr__(self)
3300 __swig_destroy__ = _IMP_kernel.delete_ModelKey
3301 __del__ =
lambda self:
None
3302 ModelKey_swigregister = _IMP_kernel.ModelKey_swigregister
3303 ModelKey_swigregister(ModelKey)
3305 def ModelKey_add_key(sc):
3306 """ModelKey_add_key(std::string sc) -> unsigned int"""
3307 return _IMP_kernel.ModelKey_add_key(sc)
3309 def ModelKey_get_key_exists(sc):
3310 """ModelKey_get_key_exists(std::string sc) -> bool"""
3311 return _IMP_kernel.ModelKey_get_key_exists(sc)
3313 def ModelKey_add_alias(old_key, new_name):
3314 """ModelKey_add_alias(ModelKey old_key, std::string new_name) -> ModelKey"""
3315 return _IMP_kernel.ModelKey_add_alias(old_key, new_name)
3317 def ModelKey_get_number_of_keys():
3318 """ModelKey_get_number_of_keys() -> unsigned int"""
3319 return _IMP_kernel.ModelKey_get_number_of_keys()
3321 def ModelKey_show_all(out):
3322 """ModelKey_show_all(_ostream out)"""
3323 return _IMP_kernel.ModelKey_show_all(out)
3325 def ModelKey_get_all_strings():
3326 """ModelKey_get_all_strings() -> IMP::Vector< std::string >"""
3327 return _IMP_kernel.ModelKey_get_all_strings()
3329 def ModelKey_get_number_unique():
3330 """ModelKey_get_number_unique() -> unsigned int"""
3331 return _IMP_kernel.ModelKey_get_number_unique()
3334 """Proxy of C++ IMP::Key<(11)> class"""
3335 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3337 def __init__(self, *args):
3339 __init__(IMP::Key<(11)> self) -> TriggerKey
3340 __init__(IMP::Key<(11)> self, std::string const & c, bool is_implicit_add_permitted=True) -> TriggerKey
3341 __init__(IMP::Key<(11)> self, std::string const & c) -> TriggerKey
3342 __init__(IMP::Key<(11)> self, unsigned int i) -> TriggerKey
3344 this = _IMP_kernel.new_TriggerKey(*args)
3346 self.this.append(this)
3351 """add_key(std::string sc) -> unsigned int"""
3352 return _IMP_kernel.TriggerKey_add_key(sc)
3354 add_key = staticmethod(add_key)
3356 def get_key_exists(sc):
3357 """get_key_exists(std::string sc) -> bool"""
3358 return _IMP_kernel.TriggerKey_get_key_exists(sc)
3360 get_key_exists = staticmethod(get_key_exists)
3362 def get_string(self):
3363 """get_string(TriggerKey self) -> std::string const"""
3364 return _IMP_kernel.TriggerKey_get_string(self)
3367 def __cmp__(self, o):
3368 """__cmp__(TriggerKey self, TriggerKey o) -> int"""
3369 return _IMP_kernel.TriggerKey___cmp__(self, o)
3372 def __eq__(self, o):
3373 """__eq__(TriggerKey self, TriggerKey o) -> bool"""
3374 return _IMP_kernel.TriggerKey___eq__(self, o)
3377 def __ne__(self, o):
3378 """__ne__(TriggerKey self, TriggerKey o) -> bool"""
3379 return _IMP_kernel.TriggerKey___ne__(self, o)
3382 def __lt__(self, o):
3383 """__lt__(TriggerKey self, TriggerKey o) -> bool"""
3384 return _IMP_kernel.TriggerKey___lt__(self, o)
3387 def __gt__(self, o):
3388 """__gt__(TriggerKey self, TriggerKey o) -> bool"""
3389 return _IMP_kernel.TriggerKey___gt__(self, o)
3392 def __ge__(self, o):
3393 """__ge__(TriggerKey self, TriggerKey o) -> bool"""
3394 return _IMP_kernel.TriggerKey___ge__(self, o)
3397 def __le__(self, o):
3398 """__le__(TriggerKey self, TriggerKey o) -> bool"""
3399 return _IMP_kernel.TriggerKey___le__(self, o)
3403 """__hash__(TriggerKey self) -> std::size_t"""
3404 return _IMP_kernel.TriggerKey___hash__(self)
3407 def show(self, *args):
3409 show(TriggerKey self, _ostream out)
3410 show(TriggerKey self)
3412 return _IMP_kernel.TriggerKey_show(self, *args)
3415 def add_alias(old_key, new_name):
3416 """add_alias(TriggerKey old_key, std::string new_name) -> TriggerKey"""
3417 return _IMP_kernel.TriggerKey_add_alias(old_key, new_name)
3419 add_alias = staticmethod(add_alias)
3421 def get_number_of_keys():
3422 """get_number_of_keys() -> unsigned int"""
3423 return _IMP_kernel.TriggerKey_get_number_of_keys()
3425 get_number_of_keys = staticmethod(get_number_of_keys)
3428 """get_index(TriggerKey self) -> unsigned int"""
3429 return _IMP_kernel.TriggerKey_get_index(self)
3433 """show_all(_ostream out)"""
3434 return _IMP_kernel.TriggerKey_show_all(out)
3436 show_all = staticmethod(show_all)
3438 def get_all_strings():
3439 """get_all_strings() -> IMP::Vector< std::string >"""
3440 return _IMP_kernel.TriggerKey_get_all_strings()
3442 get_all_strings = staticmethod(get_all_strings)
3444 def get_number_unique():
3445 """get_number_unique() -> unsigned int"""
3446 return _IMP_kernel.TriggerKey_get_number_unique()
3448 get_number_unique = staticmethod(get_number_unique)
3451 """__str__(TriggerKey self) -> std::string"""
3452 return _IMP_kernel.TriggerKey___str__(self)
3456 """__repr__(TriggerKey self) -> std::string"""
3457 return _IMP_kernel.TriggerKey___repr__(self)
3459 __swig_destroy__ = _IMP_kernel.delete_TriggerKey
3460 __del__ =
lambda self:
None
3461 TriggerKey_swigregister = _IMP_kernel.TriggerKey_swigregister
3462 TriggerKey_swigregister(TriggerKey)
3464 def TriggerKey_add_key(sc):
3465 """TriggerKey_add_key(std::string sc) -> unsigned int"""
3466 return _IMP_kernel.TriggerKey_add_key(sc)
3468 def TriggerKey_get_key_exists(sc):
3469 """TriggerKey_get_key_exists(std::string sc) -> bool"""
3470 return _IMP_kernel.TriggerKey_get_key_exists(sc)
3472 def TriggerKey_add_alias(old_key, new_name):
3473 """TriggerKey_add_alias(TriggerKey old_key, std::string new_name) -> TriggerKey"""
3474 return _IMP_kernel.TriggerKey_add_alias(old_key, new_name)
3476 def TriggerKey_get_number_of_keys():
3477 """TriggerKey_get_number_of_keys() -> unsigned int"""
3478 return _IMP_kernel.TriggerKey_get_number_of_keys()
3480 def TriggerKey_show_all(out):
3481 """TriggerKey_show_all(_ostream out)"""
3482 return _IMP_kernel.TriggerKey_show_all(out)
3484 def TriggerKey_get_all_strings():
3485 """TriggerKey_get_all_strings() -> IMP::Vector< std::string >"""
3486 return _IMP_kernel.TriggerKey_get_all_strings()
3488 def TriggerKey_get_number_unique():
3489 """TriggerKey_get_number_unique() -> unsigned int"""
3490 return _IMP_kernel.TriggerKey_get_number_unique()
3493 """Proxy of C++ IMP::Index<(IMP::ParticleIndexTag)> class"""
3494 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3496 def __init__(self, *args):
3498 __init__(IMP::Index<(IMP::ParticleIndexTag)> self, int i) -> ParticleIndex
3499 __init__(IMP::Index<(IMP::ParticleIndexTag)> self) -> ParticleIndex
3501 this = _IMP_kernel.new_ParticleIndex(*args)
3503 self.this.append(this)
3508 """get_index(ParticleIndex self) -> int"""
3509 return _IMP_kernel.ParticleIndex_get_index(self)
3512 def __cmp__(self, o):
3513 """__cmp__(ParticleIndex self, ParticleIndex o) -> int"""
3514 return _IMP_kernel.ParticleIndex___cmp__(self, o)
3517 def __eq__(self, o):
3518 """__eq__(ParticleIndex self, ParticleIndex o) -> bool"""
3519 return _IMP_kernel.ParticleIndex___eq__(self, o)
3522 def __ne__(self, o):
3523 """__ne__(ParticleIndex self, ParticleIndex o) -> bool"""
3524 return _IMP_kernel.ParticleIndex___ne__(self, o)
3527 def __lt__(self, o):
3528 """__lt__(ParticleIndex self, ParticleIndex o) -> bool"""
3529 return _IMP_kernel.ParticleIndex___lt__(self, o)
3532 def __gt__(self, o):
3533 """__gt__(ParticleIndex self, ParticleIndex o) -> bool"""
3534 return _IMP_kernel.ParticleIndex___gt__(self, o)
3537 def __ge__(self, o):
3538 """__ge__(ParticleIndex self, ParticleIndex o) -> bool"""
3539 return _IMP_kernel.ParticleIndex___ge__(self, o)
3542 def __le__(self, o):
3543 """__le__(ParticleIndex self, ParticleIndex o) -> bool"""
3544 return _IMP_kernel.ParticleIndex___le__(self, o)
3547 def show(self, *args):
3549 show(ParticleIndex self, _ostream out)
3550 show(ParticleIndex self)
3552 return _IMP_kernel.ParticleIndex_show(self, *args)
3556 """__hash__(ParticleIndex self) -> std::size_t"""
3557 return _IMP_kernel.ParticleIndex___hash__(self)
3561 """__str__(ParticleIndex self) -> std::string"""
3562 return _IMP_kernel.ParticleIndex___str__(self)
3566 """__repr__(ParticleIndex self) -> std::string"""
3567 return _IMP_kernel.ParticleIndex___repr__(self)
3569 __swig_destroy__ = _IMP_kernel.delete_ParticleIndex
3570 __del__ =
lambda self:
None
3571 ParticleIndex_swigregister = _IMP_kernel.ParticleIndex_swigregister
3572 ParticleIndex_swigregister(ParticleIndex)
3575 """Proxy of C++ IMP::Key<(10)> class"""
3576 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3578 def __init__(self, *args):
3580 __init__(IMP::Key<(10)> self) -> FloatsKey
3581 __init__(IMP::Key<(10)> self, std::string const & c, bool is_implicit_add_permitted=True) -> FloatsKey
3582 __init__(IMP::Key<(10)> self, std::string const & c) -> FloatsKey
3583 __init__(IMP::Key<(10)> self, unsigned int i) -> FloatsKey
3585 this = _IMP_kernel.new_FloatsKey(*args)
3587 self.this.append(this)
3592 """add_key(std::string sc) -> unsigned int"""
3593 return _IMP_kernel.FloatsKey_add_key(sc)
3595 add_key = staticmethod(add_key)
3597 def get_key_exists(sc):
3598 """get_key_exists(std::string sc) -> bool"""
3599 return _IMP_kernel.FloatsKey_get_key_exists(sc)
3601 get_key_exists = staticmethod(get_key_exists)
3603 def get_string(self):
3604 """get_string(FloatsKey self) -> std::string const"""
3605 return _IMP_kernel.FloatsKey_get_string(self)
3608 def __cmp__(self, o):
3609 """__cmp__(FloatsKey self, FloatsKey o) -> int"""
3610 return _IMP_kernel.FloatsKey___cmp__(self, o)
3613 def __eq__(self, o):
3614 """__eq__(FloatsKey self, FloatsKey o) -> bool"""
3615 return _IMP_kernel.FloatsKey___eq__(self, o)
3618 def __ne__(self, o):
3619 """__ne__(FloatsKey self, FloatsKey o) -> bool"""
3620 return _IMP_kernel.FloatsKey___ne__(self, o)
3623 def __lt__(self, o):
3624 """__lt__(FloatsKey self, FloatsKey o) -> bool"""
3625 return _IMP_kernel.FloatsKey___lt__(self, o)
3628 def __gt__(self, o):
3629 """__gt__(FloatsKey self, FloatsKey o) -> bool"""
3630 return _IMP_kernel.FloatsKey___gt__(self, o)
3633 def __ge__(self, o):
3634 """__ge__(FloatsKey self, FloatsKey o) -> bool"""
3635 return _IMP_kernel.FloatsKey___ge__(self, o)
3638 def __le__(self, o):
3639 """__le__(FloatsKey self, FloatsKey o) -> bool"""
3640 return _IMP_kernel.FloatsKey___le__(self, o)
3644 """__hash__(FloatsKey self) -> std::size_t"""
3645 return _IMP_kernel.FloatsKey___hash__(self)
3648 def show(self, *args):
3650 show(FloatsKey self, _ostream out)
3651 show(FloatsKey self)
3653 return _IMP_kernel.FloatsKey_show(self, *args)
3656 def add_alias(old_key, new_name):
3657 """add_alias(FloatsKey old_key, std::string new_name) -> FloatsKey"""
3658 return _IMP_kernel.FloatsKey_add_alias(old_key, new_name)
3660 add_alias = staticmethod(add_alias)
3662 def get_number_of_keys():
3663 """get_number_of_keys() -> unsigned int"""
3664 return _IMP_kernel.FloatsKey_get_number_of_keys()
3666 get_number_of_keys = staticmethod(get_number_of_keys)
3669 """get_index(FloatsKey self) -> unsigned int"""
3670 return _IMP_kernel.FloatsKey_get_index(self)
3674 """show_all(_ostream out)"""
3675 return _IMP_kernel.FloatsKey_show_all(out)
3677 show_all = staticmethod(show_all)
3679 def get_all_strings():
3680 """get_all_strings() -> IMP::Vector< std::string >"""
3681 return _IMP_kernel.FloatsKey_get_all_strings()
3683 get_all_strings = staticmethod(get_all_strings)
3685 def get_number_unique():
3686 """get_number_unique() -> unsigned int"""
3687 return _IMP_kernel.FloatsKey_get_number_unique()
3689 get_number_unique = staticmethod(get_number_unique)
3692 """__str__(FloatsKey self) -> std::string"""
3693 return _IMP_kernel.FloatsKey___str__(self)
3697 """__repr__(FloatsKey self) -> std::string"""
3698 return _IMP_kernel.FloatsKey___repr__(self)
3700 __swig_destroy__ = _IMP_kernel.delete_FloatsKey
3701 __del__ =
lambda self:
None
3702 FloatsKey_swigregister = _IMP_kernel.FloatsKey_swigregister
3703 FloatsKey_swigregister(FloatsKey)
3705 def FloatsKey_add_key(sc):
3706 """FloatsKey_add_key(std::string sc) -> unsigned int"""
3707 return _IMP_kernel.FloatsKey_add_key(sc)
3709 def FloatsKey_get_key_exists(sc):
3710 """FloatsKey_get_key_exists(std::string sc) -> bool"""
3711 return _IMP_kernel.FloatsKey_get_key_exists(sc)
3713 def FloatsKey_add_alias(old_key, new_name):
3714 """FloatsKey_add_alias(FloatsKey old_key, std::string new_name) -> FloatsKey"""
3715 return _IMP_kernel.FloatsKey_add_alias(old_key, new_name)
3717 def FloatsKey_get_number_of_keys():
3718 """FloatsKey_get_number_of_keys() -> unsigned int"""
3719 return _IMP_kernel.FloatsKey_get_number_of_keys()
3721 def FloatsKey_show_all(out):
3722 """FloatsKey_show_all(_ostream out)"""
3723 return _IMP_kernel.FloatsKey_show_all(out)
3725 def FloatsKey_get_all_strings():
3726 """FloatsKey_get_all_strings() -> IMP::Vector< std::string >"""
3727 return _IMP_kernel.FloatsKey_get_all_strings()
3729 def FloatsKey_get_number_unique():
3730 """FloatsKey_get_number_unique() -> unsigned int"""
3731 return _IMP_kernel.FloatsKey_get_number_unique()
3741 class FloatIndex(_Value):
3742 """Proxy of C++ IMP::FloatIndex class"""
3743 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3745 def __init__(self, *args):
3747 __init__(IMP::FloatIndex self, ParticleIndex i0, FloatKey i1) -> FloatIndex
3748 __init__(IMP::FloatIndex self, ParticleIndex i0) -> FloatIndex
3749 __init__(IMP::FloatIndex self) -> FloatIndex
3751 this = _IMP_kernel.new_FloatIndex(*args)
3753 self.this.append(this)
3758 """__hash__(FloatIndex self) -> std::size_t"""
3759 return _IMP_kernel.FloatIndex___hash__(self)
3762 def show(self, *args):
3764 show(FloatIndex self, _ostream out)
3765 show(FloatIndex self)
3767 return _IMP_kernel.FloatIndex_show(self, *args)
3770 def __cmp__(self, o):
3771 """__cmp__(FloatIndex self, FloatIndex o) -> int"""
3772 return _IMP_kernel.FloatIndex___cmp__(self, o)
3775 def __eq__(self, o):
3776 """__eq__(FloatIndex self, FloatIndex o) -> bool"""
3777 return _IMP_kernel.FloatIndex___eq__(self, o)
3780 def __ne__(self, o):
3781 """__ne__(FloatIndex self, FloatIndex o) -> bool"""
3782 return _IMP_kernel.FloatIndex___ne__(self, o)
3785 def __lt__(self, o):
3786 """__lt__(FloatIndex self, FloatIndex o) -> bool"""
3787 return _IMP_kernel.FloatIndex___lt__(self, o)
3790 def __gt__(self, o):
3791 """__gt__(FloatIndex self, FloatIndex o) -> bool"""
3792 return _IMP_kernel.FloatIndex___gt__(self, o)
3795 def __ge__(self, o):
3796 """__ge__(FloatIndex self, FloatIndex o) -> bool"""
3797 return _IMP_kernel.FloatIndex___ge__(self, o)
3800 def __le__(self, o):
3801 """__le__(FloatIndex self, FloatIndex o) -> bool"""
3802 return _IMP_kernel.FloatIndex___le__(self, o)
3805 def get_particle(self):
3806 """get_particle(FloatIndex self) -> ParticleIndex const &"""
3807 return _IMP_kernel.FloatIndex_get_particle(self)
3810 def set_particle(self, v):
3811 """set_particle(FloatIndex self, ParticleIndex const & v)"""
3812 return _IMP_kernel.FloatIndex_set_particle(self, v)
3816 """get_key(FloatIndex self) -> FloatKey const &"""
3817 return _IMP_kernel.FloatIndex_get_key(self)
3820 def set_key(self, v):
3821 """set_key(FloatIndex self, FloatKey const & v)"""
3822 return _IMP_kernel.FloatIndex_set_key(self, v)
3826 """__str__(FloatIndex self) -> std::string"""
3827 return _IMP_kernel.FloatIndex___str__(self)
3831 """__repr__(FloatIndex self) -> std::string"""
3832 return _IMP_kernel.FloatIndex___repr__(self)
3834 __swig_destroy__ = _IMP_kernel.delete_FloatIndex
3835 __del__ =
lambda self:
None
3836 FloatIndex_swigregister = _IMP_kernel.FloatIndex_swigregister
3837 FloatIndex_swigregister(FloatIndex)
3839 class _ParticleIndexTag(object):
3840 """Proxy of C++ IMP::ParticleIndexTag class"""
3841 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3842 __repr__ = _swig_repr
3845 """__init__(IMP::ParticleIndexTag self) -> _ParticleIndexTag"""
3846 this = _IMP_kernel.new__ParticleIndexTag()
3848 self.this.append(this)
3851 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexTag
3852 __del__ =
lambda self:
None
3853 _ParticleIndexTag_swigregister = _IMP_kernel._ParticleIndexTag_swigregister
3854 _ParticleIndexTag_swigregister(_ParticleIndexTag)
3856 class ModelObject(Object):
3857 """Proxy of C++ IMP::ModelObject class"""
3858 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3860 def __init__(self, m, name):
3861 """__init__(IMP::ModelObject self, Model m, std::string name) -> ModelObject"""
3862 if self.__class__ == ModelObject:
3866 this = _IMP_kernel.new_ModelObject(_self, m, name)
3868 self.this.append(this)
3872 if self.__class__ != ModelObject:
3873 _director_objects.register(self)
3877 __swig_destroy__ = _IMP_kernel.delete_ModelObject
3878 __del__ =
lambda self:
None
3880 def get_model(self):
3881 """get_model(ModelObject self) -> Model"""
3882 return _IMP_kernel.ModelObject_get_model(self)
3885 def get_inputs(self):
3886 """get_inputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3887 return _IMP_kernel.ModelObject_get_inputs(self)
3890 def get_outputs(self):
3891 """get_outputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3892 return _IMP_kernel.ModelObject_get_outputs(self)
3895 def get_interactions(self):
3896 """get_interactions(ModelObject self) -> IMP::ModelObjectsTemps"""
3897 return _IMP_kernel.ModelObject_get_interactions(self)
3900 def get_has_dependencies(self):
3901 """get_has_dependencies(ModelObject self) -> bool"""
3902 return _IMP_kernel.ModelObject_get_has_dependencies(self)
3905 def set_has_dependencies(self, tf):
3906 """set_has_dependencies(ModelObject self, bool tf)"""
3907 return _IMP_kernel.ModelObject_set_has_dependencies(self, tf)
3910 def set_has_required_score_states(self, tf):
3911 """set_has_required_score_states(ModelObject self, bool tf)"""
3912 return _IMP_kernel.ModelObject_set_has_required_score_states(self, tf)
3915 def get_has_required_score_states(self):
3916 """get_has_required_score_states(ModelObject self) -> bool"""
3917 return _IMP_kernel.ModelObject_get_has_required_score_states(self)
3920 def get_required_score_states(self):
3921 """get_required_score_states(ModelObject self) -> IMP::ScoreStatesTemp const &"""
3922 return _IMP_kernel.ModelObject_get_required_score_states(self)
3925 def handle_set_has_required_score_states(self, arg0):
3926 """handle_set_has_required_score_states(ModelObject self, bool arg0)"""
3927 return _IMP_kernel.ModelObject_handle_set_has_required_score_states(self, arg0)
3930 def do_get_inputs(self):
3931 """do_get_inputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3932 return _IMP_kernel.ModelObject_do_get_inputs(self)
3935 def do_get_outputs(self):
3936 """do_get_outputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3937 return _IMP_kernel.ModelObject_do_get_outputs(self)
3940 def do_get_interactions(self):
3941 """do_get_interactions(ModelObject self) -> IMP::ModelObjectsTemps"""
3942 return _IMP_kernel.ModelObject_do_get_interactions(self)
3946 """__str__(ModelObject self) -> std::string"""
3947 return _IMP_kernel.ModelObject___str__(self)
3951 """__repr__(ModelObject self) -> std::string"""
3952 return _IMP_kernel.ModelObject___repr__(self)
3957 return _object_cast_to_ModelObject(o)
3960 def get_type_name(self):
3961 return self.__class__.__name__
3962 def do_show(self, out):
3964 def get_version_info(self):
3966 return VersionInfo(self.__module__,
3973 return _object_cast_to_ModelObject(o)
3975 def __disown__(self):
3977 _IMP_kernel.disown_ModelObject(self)
3978 return weakref_proxy(self)
3980 def do_destroy(self):
3981 """do_destroy(ModelObject self)"""
3982 return _IMP_kernel.ModelObject_do_destroy(self)
3984 ModelObject_swigregister = _IMP_kernel.ModelObject_swigregister
3985 ModelObject_swigregister(ModelObject)
3986 cvar = _IMP_kernel.cvar
3987 NO_MAX = cvar.NO_MAX
3988 BAD_SCORE = cvar.BAD_SCORE
3990 class _ParticleInputs(object):
3991 """Proxy of C++ IMP::ParticleInputs class"""
3992 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3994 def __init__(self, *args, **kwargs):
3995 raise AttributeError(
"No constructor defined - class is abstract")
3996 __repr__ = _swig_repr
3998 def get_inputs(self, m, pis):
3999 """get_inputs(_ParticleInputs self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4000 return _IMP_kernel._ParticleInputs_get_inputs(self, m, pis)
4002 _ParticleInputs_swigregister = _IMP_kernel._ParticleInputs_swigregister
4003 _ParticleInputs_swigregister(_ParticleInputs)
4005 class _ParticleOutputs(object):
4006 """Proxy of C++ IMP::ParticleOutputs class"""
4007 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4009 def __init__(self, *args, **kwargs):
4010 raise AttributeError(
"No constructor defined - class is abstract")
4011 __repr__ = _swig_repr
4013 def get_outputs(self, m, pis):
4014 """get_outputs(_ParticleOutputs self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4015 return _IMP_kernel._ParticleOutputs_get_outputs(self, m, pis)
4017 _ParticleOutputs_swigregister = _IMP_kernel._ParticleOutputs_swigregister
4018 _ParticleOutputs_swigregister(_ParticleOutputs)
4022 """get_input_particles(IMP::ModelObjectsTemp const & mos) -> IMP::ParticlesTemp"""
4023 return _IMP_kernel.get_input_particles(mos)
4026 """get_input_containers(IMP::ModelObjectsTemp const & mos) -> IMP::ContainersTemp"""
4027 return _IMP_kernel.get_input_containers(mos)
4030 """get_output_particles(IMP::ModelObjectsTemp const & mos) -> IMP::ParticlesTemp"""
4031 return _IMP_kernel.get_output_particles(mos)
4034 """get_output_containers(IMP::ModelObjectsTemp const & mos) -> IMP::ContainersTemp"""
4035 return _IMP_kernel.get_output_containers(mos)
4036 class DerivativeAccumulator(object):
4037 """Proxy of C++ IMP::DerivativeAccumulator class"""
4038 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4039 __repr__ = _swig_repr
4041 def __init__(self, *args):
4043 __init__(IMP::DerivativeAccumulator self, double weight=1.0) -> DerivativeAccumulator
4044 __init__(IMP::DerivativeAccumulator self) -> DerivativeAccumulator
4045 __init__(IMP::DerivativeAccumulator self, DerivativeAccumulator copy, double weight) -> DerivativeAccumulator
4047 this = _IMP_kernel.new_DerivativeAccumulator(*args)
4049 self.this.append(this)
4053 def __call__(self, value):
4054 """__call__(DerivativeAccumulator self, double const value) -> double"""
4055 return _IMP_kernel.DerivativeAccumulator___call__(self, value)
4058 def get_weight(self):
4059 """get_weight(DerivativeAccumulator self) -> double"""
4060 return _IMP_kernel.DerivativeAccumulator_get_weight(self)
4063 def show(self, *args):
4065 show(DerivativeAccumulator self, _ostream out)
4066 show(DerivativeAccumulator self)
4068 return _IMP_kernel.DerivativeAccumulator_show(self, *args)
4070 __swig_destroy__ = _IMP_kernel.delete_DerivativeAccumulator
4071 __del__ =
lambda self:
None
4072 DerivativeAccumulator_swigregister = _IMP_kernel.DerivativeAccumulator_swigregister
4073 DerivativeAccumulator_swigregister(DerivativeAccumulator)
4075 class EvaluationState(object):
4076 """Proxy of C++ IMP::EvaluationState class"""
4077 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4078 score = _swig_property(_IMP_kernel.EvaluationState_score_get, _IMP_kernel.EvaluationState_score_set)
4079 good = _swig_property(_IMP_kernel.EvaluationState_good_get, _IMP_kernel.EvaluationState_good_set)
4081 def __init__(self, *args):
4083 __init__(IMP::EvaluationState self, double oscore, bool ogood) -> EvaluationState
4084 __init__(IMP::EvaluationState self) -> EvaluationState
4086 this = _IMP_kernel.new_EvaluationState(*args)
4088 self.this.append(this)
4092 def show(self, *args):
4094 show(EvaluationState self, _ostream out)
4095 show(EvaluationState self)
4097 return _IMP_kernel.EvaluationState_show(self, *args)
4101 """__str__(EvaluationState self) -> std::string"""
4102 return _IMP_kernel.EvaluationState___str__(self)
4106 """__repr__(EvaluationState self) -> std::string"""
4107 return _IMP_kernel.EvaluationState___repr__(self)
4109 __swig_destroy__ = _IMP_kernel.delete_EvaluationState
4110 __del__ =
lambda self:
None
4111 EvaluationState_swigregister = _IMP_kernel.EvaluationState_swigregister
4112 EvaluationState_swigregister(EvaluationState)
4114 class ScoreAccumulator(_Value):
4115 """Proxy of C++ IMP::ScoreAccumulator class"""
4116 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4118 def __init__(self, *args):
4120 __init__(IMP::ScoreAccumulator self) -> ScoreAccumulator
4121 __init__(IMP::ScoreAccumulator self, ScoreAccumulator o, Restraint r) -> ScoreAccumulator
4122 __init__(IMP::ScoreAccumulator self, ScoreAccumulator o, double weight, double local_max) -> ScoreAccumulator
4124 this = _IMP_kernel.new_ScoreAccumulator(*args)
4126 self.this.append(this)
4130 def add_score(self, score):
4131 """add_score(ScoreAccumulator self, double score)"""
4132 return _IMP_kernel.ScoreAccumulator_add_score(self, score)
4135 def get_abort_evaluation(self):
4136 """get_abort_evaluation(ScoreAccumulator self) -> bool"""
4137 return _IMP_kernel.ScoreAccumulator_get_abort_evaluation(self)
4140 def get_is_evaluate_if_below(self):
4141 """get_is_evaluate_if_below(ScoreAccumulator self) -> bool"""
4142 return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_below(self)
4145 def get_is_evaluate_if_good(self):
4146 """get_is_evaluate_if_good(ScoreAccumulator self) -> bool"""
4147 return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_good(self)
4150 def get_maximum(self):
4151 """get_maximum(ScoreAccumulator self) -> double"""
4152 return _IMP_kernel.ScoreAccumulator_get_maximum(self)
4155 def get_derivative_accumulator(self):
4156 """get_derivative_accumulator(ScoreAccumulator self) -> DerivativeAccumulator"""
4157 return _IMP_kernel.ScoreAccumulator_get_derivative_accumulator(self)
4160 def show(self, *args):
4162 show(ScoreAccumulator self, _ostream out)
4163 show(ScoreAccumulator self)
4165 return _IMP_kernel.ScoreAccumulator_show(self, *args)
4169 """__str__(ScoreAccumulator self) -> std::string"""
4170 return _IMP_kernel.ScoreAccumulator___str__(self)
4174 """__repr__(ScoreAccumulator self) -> std::string"""
4175 return _IMP_kernel.ScoreAccumulator___repr__(self)
4177 __swig_destroy__ = _IMP_kernel.delete_ScoreAccumulator
4178 __del__ =
lambda self:
None
4179 ScoreAccumulator_swigregister = _IMP_kernel.ScoreAccumulator_swigregister
4180 ScoreAccumulator_swigregister(ScoreAccumulator)
4182 class ScoreState(ModelObject):
4183 """Proxy of C++ IMP::ScoreState class"""
4184 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4186 def set_can_skip(self, can_skip):
4187 """set_can_skip(ScoreState self, bool can_skip)"""
4188 return _IMP_kernel.ScoreState_set_can_skip(self, can_skip)
4191 def __init__(self, m, name):
4192 """__init__(IMP::ScoreState self, Model m, std::string name) -> ScoreState"""
4193 if self.__class__ == ScoreState:
4197 this = _IMP_kernel.new_ScoreState(_self, m, name)
4199 self.this.append(this)
4203 if self.__class__ != ScoreState:
4204 _director_objects.register(self)
4209 def before_evaluate(self):
4210 """before_evaluate(ScoreState self)"""
4211 return _IMP_kernel.ScoreState_before_evaluate(self)
4214 def after_evaluate(self, accpt):
4215 """after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
4216 return _IMP_kernel.ScoreState_after_evaluate(self, accpt)
4219 def get_can_skip(self):
4220 """get_can_skip(ScoreState self) -> bool"""
4221 return _IMP_kernel.ScoreState_get_can_skip(self)
4224 def get_has_update_order(self):
4225 """get_has_update_order(ScoreState self) -> bool"""
4226 return _IMP_kernel.ScoreState_get_has_update_order(self)
4230 """get_update_order(ScoreState self) -> unsigned int"""
4231 return _IMP_kernel.ScoreState_get_update_order(self)
4234 def handle_set_has_required_score_states(self, tf):
4235 """handle_set_has_required_score_states(ScoreState self, bool tf)"""
4236 return _IMP_kernel.ScoreState_handle_set_has_required_score_states(self, tf)
4239 def do_before_evaluate(self):
4240 """do_before_evaluate(ScoreState self)"""
4241 return _IMP_kernel.ScoreState_do_before_evaluate(self)
4244 def do_after_evaluate(self, accpt):
4245 """do_after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
4246 return _IMP_kernel.ScoreState_do_after_evaluate(self, accpt)
4248 __swig_destroy__ = _IMP_kernel.delete_ScoreState
4249 __del__ =
lambda self:
None
4252 """__str__(ScoreState self) -> std::string"""
4253 return _IMP_kernel.ScoreState___str__(self)
4257 """__repr__(ScoreState self) -> std::string"""
4258 return _IMP_kernel.ScoreState___repr__(self)
4263 return _object_cast_to_ScoreState(o)
4266 def get_type_name(self):
4267 return self.__class__.__name__
4268 def do_show(self, out):
4270 def get_version_info(self):
4272 return VersionInfo(self.__module__,
4279 return _object_cast_to_ScoreState(o)
4281 def __disown__(self):
4283 _IMP_kernel.disown_ScoreState(self)
4284 return weakref_proxy(self)
4286 def do_destroy(self):
4287 """do_destroy(ScoreState self)"""
4288 return _IMP_kernel.ScoreState_do_destroy(self)
4291 def do_get_inputs(self):
4292 """do_get_inputs(ScoreState self) -> IMP::ModelObjectsTemp"""
4293 return _IMP_kernel.ScoreState_do_get_inputs(self)
4296 def do_get_outputs(self):
4297 """do_get_outputs(ScoreState self) -> IMP::ModelObjectsTemp"""
4298 return _IMP_kernel.ScoreState_do_get_outputs(self)
4301 def do_get_interactions(self):
4302 """do_get_interactions(ScoreState self) -> IMP::ModelObjectsTemps"""
4303 return _IMP_kernel.ScoreState_do_get_interactions(self)
4305 ScoreState_swigregister = _IMP_kernel.ScoreState_swigregister
4306 ScoreState_swigregister(ScoreState)
4310 """get_update_order(IMP::ScoreStatesTemp input) -> IMP::ScoreStatesTemp"""
4311 return _IMP_kernel.get_update_order(input)
4312 class Constraint(ScoreState):
4313 """Proxy of C++ IMP::Constraint class"""
4314 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4316 def __init__(self, *args):
4318 __init__(IMP::Constraint self, Model m, std::string name) -> Constraint
4319 __init__(IMP::Constraint self, Model m) -> Constraint
4321 if self.__class__ == Constraint:
4325 this = _IMP_kernel.new_Constraint(_self, *args)
4327 self.this.append(this)
4331 if self.__class__ != Constraint:
4332 _director_objects.register(self)
4337 def do_update_attributes(self):
4338 """do_update_attributes(Constraint self)"""
4339 return _IMP_kernel.Constraint_do_update_attributes(self)
4342 def do_update_derivatives(self, da):
4343 """do_update_derivatives(Constraint self, DerivativeAccumulator da)"""
4344 return _IMP_kernel.Constraint_do_update_derivatives(self, da)
4347 def do_before_evaluate(self):
4348 """do_before_evaluate(Constraint self)"""
4349 return _IMP_kernel.Constraint_do_before_evaluate(self)
4352 def do_after_evaluate(self, da):
4353 """do_after_evaluate(Constraint self, DerivativeAccumulator da)"""
4354 return _IMP_kernel.Constraint_do_after_evaluate(self, da)
4356 __swig_destroy__ = _IMP_kernel.delete_Constraint
4357 __del__ =
lambda self:
None
4360 """__str__(Constraint self) -> std::string"""
4361 return _IMP_kernel.Constraint___str__(self)
4365 """__repr__(Constraint self) -> std::string"""
4366 return _IMP_kernel.Constraint___repr__(self)
4371 return _object_cast_to_Constraint(o)
4374 def get_type_name(self):
4375 return self.__class__.__name__
4376 def do_show(self, out):
4378 def get_version_info(self):
4380 return VersionInfo(self.__module__,
4387 return _object_cast_to_Constraint(o)
4389 def __disown__(self):
4391 _IMP_kernel.disown_Constraint(self)
4392 return weakref_proxy(self)
4394 def do_destroy(self):
4395 """do_destroy(Constraint self)"""
4396 return _IMP_kernel.Constraint_do_destroy(self)
4399 def do_get_inputs(self):
4400 """do_get_inputs(Constraint self) -> IMP::ModelObjectsTemp"""
4401 return _IMP_kernel.Constraint_do_get_inputs(self)
4404 def do_get_outputs(self):
4405 """do_get_outputs(Constraint self) -> IMP::ModelObjectsTemp"""
4406 return _IMP_kernel.Constraint_do_get_outputs(self)
4409 def do_get_interactions(self):
4410 """do_get_interactions(Constraint self) -> IMP::ModelObjectsTemps"""
4411 return _IMP_kernel.Constraint_do_get_interactions(self)
4413 Constraint_swigregister = _IMP_kernel.Constraint_swigregister
4414 Constraint_swigregister(Constraint)
4416 class Container(ModelObject):
4417 """Proxy of C++ IMP::Container class"""
4418 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4420 def __init__(self, *args):
4422 __init__(IMP::Container self, Model m, std::string name) -> Container
4423 __init__(IMP::Container self, Model m) -> Container
4425 if self.__class__ == Container:
4429 this = _IMP_kernel.new_Container(_self, *args)
4431 self.this.append(this)
4435 if self.__class__ != Container:
4436 _director_objects.register(self)
4441 def do_get_contents_hash(self):
4442 """do_get_contents_hash(Container self) -> std::size_t"""
4443 return _IMP_kernel.Container_do_get_contents_hash(self)
4446 def get_all_possible_indexes(self):
4447 """get_all_possible_indexes(Container self) -> IMP::ParticleIndexes"""
4448 return _IMP_kernel.Container_get_all_possible_indexes(self)
4451 def get_contents_hash(self):
4452 """get_contents_hash(Container self) -> std::size_t"""
4453 return _IMP_kernel.Container_get_contents_hash(self)
4456 def do_get_outputs(self):
4457 """do_get_outputs(Container self) -> IMP::ModelObjectsTemp"""
4458 return _IMP_kernel.Container_do_get_outputs(self)
4461 def get_is_decomposable(self):
4462 """get_is_decomposable(Container self) -> bool"""
4463 return _IMP_kernel.Container_get_is_decomposable(self)
4466 def validate_readable(self):
4467 """validate_readable(Container self)"""
4468 return _IMP_kernel.Container_validate_readable(self)
4471 def validate_writable(self):
4472 """validate_writable(Container self)"""
4473 return _IMP_kernel.Container_validate_writable(self)
4476 def set_is_readable(self, tf):
4477 """set_is_readable(Container self, bool tf)"""
4478 return _IMP_kernel.Container_set_is_readable(self, tf)
4481 def set_is_writable(self, tf):
4482 """set_is_writable(Container self, bool tf)"""
4483 return _IMP_kernel.Container_set_is_writable(self, tf)
4485 __swig_destroy__ = _IMP_kernel.delete_Container
4486 __del__ =
lambda self:
None
4489 """__str__(Container self) -> std::string"""
4490 return _IMP_kernel.Container___str__(self)
4494 """__repr__(Container self) -> std::string"""
4495 return _IMP_kernel.Container___repr__(self)
4500 return _object_cast_to_Container(o)
4503 def get_type_name(self):
4504 return self.__class__.__name__
4505 def do_show(self, out):
4507 def get_version_info(self):
4509 return VersionInfo(self.__module__,
4516 return _object_cast_to_Container(o)
4518 def __disown__(self):
4520 _IMP_kernel.disown_Container(self)
4521 return weakref_proxy(self)
4523 def do_destroy(self):
4524 """do_destroy(Container self)"""
4525 return _IMP_kernel.Container_do_destroy(self)
4528 def handle_set_has_required_score_states(self, arg0):
4529 """handle_set_has_required_score_states(Container self, bool arg0)"""
4530 return _IMP_kernel.Container_handle_set_has_required_score_states(self, arg0)
4533 def do_get_inputs(self):
4534 """do_get_inputs(Container self) -> IMP::ModelObjectsTemp"""
4535 return _IMP_kernel.Container_do_get_inputs(self)
4538 def do_get_interactions(self):
4539 """do_get_interactions(Container self) -> IMP::ModelObjectsTemps"""
4540 return _IMP_kernel.Container_do_get_interactions(self)
4542 Container_swigregister = _IMP_kernel.Container_swigregister
4543 Container_swigregister(Container)
4545 class RestraintInfo(Object):
4546 """Proxy of C++ IMP::RestraintInfo class"""
4547 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4549 def __init__(self, *args):
4551 __init__(IMP::RestraintInfo self, std::string name) -> RestraintInfo
4552 __init__(IMP::RestraintInfo self) -> RestraintInfo
4554 this = _IMP_kernel.new_RestraintInfo(*args)
4556 self.this.append(this)
4560 def add_int(self, key, value):
4561 """add_int(RestraintInfo self, std::string key, int value)"""
4562 return _IMP_kernel.RestraintInfo_add_int(self, key, value)
4565 def get_number_of_int(self):
4566 """get_number_of_int(RestraintInfo self) -> unsigned int"""
4567 return _IMP_kernel.RestraintInfo_get_number_of_int(self)
4570 def get_int_key(self, i):
4571 """get_int_key(RestraintInfo self, unsigned int i) -> std::string"""
4572 return _IMP_kernel.RestraintInfo_get_int_key(self, i)
4575 def get_int_value(self, i):
4576 """get_int_value(RestraintInfo self, unsigned int i) -> int"""
4577 return _IMP_kernel.RestraintInfo_get_int_value(self, i)
4580 def add_float(self, key, value):
4581 """add_float(RestraintInfo self, std::string key, double value)"""
4582 return _IMP_kernel.RestraintInfo_add_float(self, key, value)
4585 def get_number_of_float(self):
4586 """get_number_of_float(RestraintInfo self) -> unsigned int"""
4587 return _IMP_kernel.RestraintInfo_get_number_of_float(self)
4590 def get_float_key(self, i):
4591 """get_float_key(RestraintInfo self, unsigned int i) -> std::string"""
4592 return _IMP_kernel.RestraintInfo_get_float_key(self, i)
4595 def get_float_value(self, i):
4596 """get_float_value(RestraintInfo self, unsigned int i) -> double"""
4597 return _IMP_kernel.RestraintInfo_get_float_value(self, i)
4600 def add_string(self, key, value):
4601 """add_string(RestraintInfo self, std::string key, std::string value)"""
4602 return _IMP_kernel.RestraintInfo_add_string(self, key, value)
4605 def get_number_of_string(self):
4606 """get_number_of_string(RestraintInfo self) -> unsigned int"""
4607 return _IMP_kernel.RestraintInfo_get_number_of_string(self)
4610 def get_string_key(self, i):
4611 """get_string_key(RestraintInfo self, unsigned int i) -> std::string"""
4612 return _IMP_kernel.RestraintInfo_get_string_key(self, i)
4615 def get_string_value(self, i):
4616 """get_string_value(RestraintInfo self, unsigned int i) -> std::string"""
4617 return _IMP_kernel.RestraintInfo_get_string_value(self, i)
4620 def add_filename(self, key, value):
4621 """add_filename(RestraintInfo self, std::string key, std::string value)"""
4622 return _IMP_kernel.RestraintInfo_add_filename(self, key, value)
4625 def get_number_of_filename(self):
4626 """get_number_of_filename(RestraintInfo self) -> unsigned int"""
4627 return _IMP_kernel.RestraintInfo_get_number_of_filename(self)
4630 def get_filename_key(self, i):
4631 """get_filename_key(RestraintInfo self, unsigned int i) -> std::string"""
4632 return _IMP_kernel.RestraintInfo_get_filename_key(self, i)
4635 def get_filename_value(self, i):
4636 """get_filename_value(RestraintInfo self, unsigned int i) -> std::string"""
4637 return _IMP_kernel.RestraintInfo_get_filename_value(self, i)
4640 def add_floats(self, key, value):
4641 """add_floats(RestraintInfo self, std::string key, IMP::Floats value)"""
4642 return _IMP_kernel.RestraintInfo_add_floats(self, key, value)
4645 def get_number_of_floats(self):
4646 """get_number_of_floats(RestraintInfo self) -> unsigned int"""
4647 return _IMP_kernel.RestraintInfo_get_number_of_floats(self)
4650 def get_floats_key(self, i):
4651 """get_floats_key(RestraintInfo self, unsigned int i) -> std::string"""
4652 return _IMP_kernel.RestraintInfo_get_floats_key(self, i)
4655 def get_floats_value(self, i):
4656 """get_floats_value(RestraintInfo self, unsigned int i) -> IMP::Floats"""
4657 return _IMP_kernel.RestraintInfo_get_floats_value(self, i)
4660 def add_ints(self, key, value):
4661 """add_ints(RestraintInfo self, std::string key, IMP::Ints value)"""
4662 return _IMP_kernel.RestraintInfo_add_ints(self, key, value)
4665 def get_number_of_ints(self):
4666 """get_number_of_ints(RestraintInfo self) -> unsigned int"""
4667 return _IMP_kernel.RestraintInfo_get_number_of_ints(self)
4670 def get_ints_key(self, i):
4671 """get_ints_key(RestraintInfo self, unsigned int i) -> std::string"""
4672 return _IMP_kernel.RestraintInfo_get_ints_key(self, i)
4675 def get_ints_value(self, i):
4676 """get_ints_value(RestraintInfo self, unsigned int i) -> IMP::Ints"""
4677 return _IMP_kernel.RestraintInfo_get_ints_value(self, i)
4680 def add_strings(self, key, value):
4681 """add_strings(RestraintInfo self, std::string key, IMP::Strings value)"""
4682 return _IMP_kernel.RestraintInfo_add_strings(self, key, value)
4685 def get_number_of_strings(self):
4686 """get_number_of_strings(RestraintInfo self) -> unsigned int"""
4687 return _IMP_kernel.RestraintInfo_get_number_of_strings(self)
4690 def get_strings_key(self, i):
4691 """get_strings_key(RestraintInfo self, unsigned int i) -> std::string"""
4692 return _IMP_kernel.RestraintInfo_get_strings_key(self, i)
4695 def get_strings_value(self, i):
4696 """get_strings_value(RestraintInfo self, unsigned int i) -> IMP::Strings"""
4697 return _IMP_kernel.RestraintInfo_get_strings_value(self, i)
4700 def add_filenames(self, key, value):
4701 """add_filenames(RestraintInfo self, std::string key, IMP::Strings value)"""
4702 return _IMP_kernel.RestraintInfo_add_filenames(self, key, value)
4705 def get_number_of_filenames(self):
4706 """get_number_of_filenames(RestraintInfo self) -> unsigned int"""
4707 return _IMP_kernel.RestraintInfo_get_number_of_filenames(self)
4710 def get_filenames_key(self, i):
4711 """get_filenames_key(RestraintInfo self, unsigned int i) -> std::string"""
4712 return _IMP_kernel.RestraintInfo_get_filenames_key(self, i)
4715 def get_filenames_value(self, i):
4716 """get_filenames_value(RestraintInfo self, unsigned int i) -> IMP::Strings"""
4717 return _IMP_kernel.RestraintInfo_get_filenames_value(self, i)
4720 def add_particle_indexes(self, key, value):
4721 """add_particle_indexes(RestraintInfo self, std::string key, IMP::ParticleIndexes value)"""
4722 return _IMP_kernel.RestraintInfo_add_particle_indexes(self, key, value)
4725 def get_number_of_particle_indexes(self):
4726 """get_number_of_particle_indexes(RestraintInfo self) -> unsigned int"""
4727 return _IMP_kernel.RestraintInfo_get_number_of_particle_indexes(self)
4730 def get_particle_indexes_key(self, i):
4731 """get_particle_indexes_key(RestraintInfo self, unsigned int i) -> std::string"""
4732 return _IMP_kernel.RestraintInfo_get_particle_indexes_key(self, i)
4735 def get_particle_indexes_value(self, i):
4736 """get_particle_indexes_value(RestraintInfo self, unsigned int i) -> IMP::ParticleIndexes"""
4737 return _IMP_kernel.RestraintInfo_get_particle_indexes_value(self, i)
4740 def get_version_info(self):
4741 """get_version_info(RestraintInfo self) -> VersionInfo"""
4742 return _IMP_kernel.RestraintInfo_get_version_info(self)
4746 """__str__(RestraintInfo self) -> std::string"""
4747 return _IMP_kernel.RestraintInfo___str__(self)
4751 """__repr__(RestraintInfo self) -> std::string"""
4752 return _IMP_kernel.RestraintInfo___repr__(self)
4757 return _object_cast_to_RestraintInfo(o)
4759 RestraintInfo_swigregister = _IMP_kernel.RestraintInfo_swigregister
4760 RestraintInfo_swigregister(RestraintInfo)
4762 class Restraint(ModelObject):
4763 """Proxy of C++ IMP::Restraint class"""
4764 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4766 def __init__(self, m, name):
4767 """__init__(IMP::Restraint self, Model m, std::string name) -> Restraint"""
4768 if self.__class__ == Restraint:
4772 this = _IMP_kernel.new_Restraint(_self, m, name)
4774 self.this.append(this)
4778 if self.__class__ != Restraint:
4779 _director_objects.register(self)
4784 def get_score(self):
4785 """get_score(Restraint self) -> double"""
4786 return _IMP_kernel.Restraint_get_score(self)
4789 def evaluate(self, calc_derivs):
4790 """evaluate(Restraint self, bool calc_derivs) -> double"""
4791 return _IMP_kernel.Restraint_evaluate(self, calc_derivs)
4794 def evaluate_moved(self, calc_derivs, moved_pis, reset_pis):
4795 """evaluate_moved(Restraint self, bool calc_derivs, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
4796 return _IMP_kernel.Restraint_evaluate_moved(self, calc_derivs, moved_pis, reset_pis)
4799 def evaluate_moved_if_below(self, calc_derivatives, moved_pis, reset_pis, max):
4800 """evaluate_moved_if_below(Restraint self, bool calc_derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, double max) -> double"""
4801 return _IMP_kernel.Restraint_evaluate_moved_if_below(self, calc_derivatives, moved_pis, reset_pis, max)
4804 def evaluate_moved_if_good(self, calc_derivatives, moved_pis, reset_pis):
4805 """evaluate_moved_if_good(Restraint self, bool calc_derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
4806 return _IMP_kernel.Restraint_evaluate_moved_if_good(self, calc_derivatives, moved_pis, reset_pis)
4809 def evaluate_if_good(self, calc_derivatives):
4810 """evaluate_if_good(Restraint self, bool calc_derivatives) -> double"""
4811 return _IMP_kernel.Restraint_evaluate_if_good(self, calc_derivatives)
4814 def evaluate_if_below(self, calc_derivatives, max):
4815 """evaluate_if_below(Restraint self, bool calc_derivatives, double max) -> double"""
4816 return _IMP_kernel.Restraint_evaluate_if_below(self, calc_derivatives, max)
4819 def unprotected_evaluate(self, da):
4820 """unprotected_evaluate(Restraint self, DerivativeAccumulator da) -> double"""
4821 return _IMP_kernel.Restraint_unprotected_evaluate(self, da)
4824 def unprotected_evaluate_moved(self, da, moved_pis, reset_pis):
4825 """unprotected_evaluate_moved(Restraint self, DerivativeAccumulator da, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
4826 return _IMP_kernel.Restraint_unprotected_evaluate_moved(self, da, moved_pis, reset_pis)
4829 def unprotected_evaluate_if_good(self, da, max):
4830 """unprotected_evaluate_if_good(Restraint self, DerivativeAccumulator da, double max) -> double"""
4831 return _IMP_kernel.Restraint_unprotected_evaluate_if_good(self, da, max)
4834 def unprotected_evaluate_if_below(self, da, max):
4835 """unprotected_evaluate_if_below(Restraint self, DerivativeAccumulator da, double max) -> double"""
4836 return _IMP_kernel.Restraint_unprotected_evaluate_if_below(self, da, max)
4839 def unprotected_evaluate_moved_if_below(self, da, moved_pis, reset_pis, max):
4840 """unprotected_evaluate_moved_if_below(Restraint self, DerivativeAccumulator da, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, double max) -> double"""
4841 return _IMP_kernel.Restraint_unprotected_evaluate_moved_if_below(self, da, moved_pis, reset_pis, max)
4844 def unprotected_evaluate_moved_if_good(self, da, moved_pis, reset_pis, max):
4845 """unprotected_evaluate_moved_if_good(Restraint self, DerivativeAccumulator da, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, double max) -> double"""
4846 return _IMP_kernel.Restraint_unprotected_evaluate_moved_if_good(self, da, moved_pis, reset_pis, max)
4849 def get_static_info(self):
4850 """get_static_info(Restraint self) -> RestraintInfo"""
4851 return _IMP_kernel.Restraint_get_static_info(self)
4854 def get_dynamic_info(self):
4855 """get_dynamic_info(Restraint self) -> RestraintInfo"""
4856 return _IMP_kernel.Restraint_get_dynamic_info(self)
4859 def add_score_and_derivatives(self, sa):
4860 """add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
4861 return _IMP_kernel.Restraint_add_score_and_derivatives(self, sa)
4864 def add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis):
4865 """add_score_and_derivatives_moved(Restraint self, ScoreAccumulator sa, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
4866 return _IMP_kernel.Restraint_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis)
4870 """create_decomposition(Restraint self) -> Restraint"""
4871 return _IMP_kernel.Restraint_create_decomposition(self)
4874 def create_current_decomposition(self):
4875 """create_current_decomposition(Restraint self) -> Restraint"""
4876 return _IMP_kernel.Restraint_create_current_decomposition(self)
4879 def set_weight(self, weight):
4880 """set_weight(Restraint self, IMP::Float weight)"""
4881 return _IMP_kernel.Restraint_set_weight(self, weight)
4884 def get_weight(self):
4885 """get_weight(Restraint self) -> IMP::Float"""
4886 return _IMP_kernel.Restraint_get_weight(self)
4889 def get_maximum_score(self):
4890 """get_maximum_score(Restraint self) -> double"""
4891 return _IMP_kernel.Restraint_get_maximum_score(self)
4894 def set_maximum_score(self, s):
4895 """set_maximum_score(Restraint self, double s)"""
4896 return _IMP_kernel.Restraint_set_maximum_score(self, s)
4901 create_scoring_function(Restraint self, double weight=1.0, double max) -> ScoringFunction
4902 create_scoring_function(Restraint self, double weight=1.0) -> ScoringFunction
4903 create_scoring_function(Restraint self) -> ScoringFunction
4905 return _IMP_kernel.Restraint_create_scoring_function(self, *args)
4908 def set_last_score(self, s):
4909 """set_last_score(Restraint self, double s)"""
4910 return _IMP_kernel.Restraint_set_last_score(self, s)
4913 def set_last_last_score(self, s):
4914 """set_last_last_score(Restraint self, double s)"""
4915 return _IMP_kernel.Restraint_set_last_last_score(self, s)
4918 def get_last_score(self):
4919 """get_last_score(Restraint self) -> double"""
4920 return _IMP_kernel.Restraint_get_last_score(self)
4923 def get_last_last_score(self):
4924 """get_last_last_score(Restraint self) -> double"""
4925 return _IMP_kernel.Restraint_get_last_last_score(self)
4928 def get_was_good(self):
4929 """get_was_good(Restraint self) -> bool"""
4930 return _IMP_kernel.Restraint_get_was_good(self)
4932 __swig_destroy__ = _IMP_kernel.delete_Restraint
4933 __del__ =
lambda self:
None
4935 def do_create_decomposition(self):
4936 """do_create_decomposition(Restraint self) -> IMP::Restraints"""
4937 return _IMP_kernel.Restraint_do_create_decomposition(self)
4940 def do_create_current_decomposition(self):
4941 """do_create_current_decomposition(Restraint self) -> IMP::Restraints"""
4942 return _IMP_kernel.Restraint_do_create_current_decomposition(self)
4945 def do_add_score_and_derivatives(self, sa):
4946 """do_add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
4947 return _IMP_kernel.Restraint_do_add_score_and_derivatives(self, sa)
4950 def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis):
4951 """do_add_score_and_derivatives_moved(Restraint self, ScoreAccumulator sa, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
4952 return _IMP_kernel.Restraint_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis)
4955 def do_get_outputs(self):
4956 """do_get_outputs(Restraint self) -> IMP::ModelObjectsTemp"""
4957 return _IMP_kernel.Restraint_do_get_outputs(self)
4961 """__str__(Restraint self) -> std::string"""
4962 return _IMP_kernel.Restraint___str__(self)
4966 """__repr__(Restraint self) -> std::string"""
4967 return _IMP_kernel.Restraint___repr__(self)
4972 return _object_cast_to_Restraint(o)
4975 def get_type_name(self):
4976 return self.__class__.__name__
4977 def do_show(self, out):
4979 def get_version_info(self):
4981 return VersionInfo(self.__module__,
4988 return _object_cast_to_Restraint(o)
4990 def __disown__(self):
4992 _IMP_kernel.disown_Restraint(self)
4993 return weakref_proxy(self)
4995 def do_destroy(self):
4996 """do_destroy(Restraint self)"""
4997 return _IMP_kernel.Restraint_do_destroy(self)
5000 def handle_set_has_required_score_states(self, arg0):
5001 """handle_set_has_required_score_states(Restraint self, bool arg0)"""
5002 return _IMP_kernel.Restraint_handle_set_has_required_score_states(self, arg0)
5005 def do_get_inputs(self):
5006 """do_get_inputs(Restraint self) -> IMP::ModelObjectsTemp"""
5007 return _IMP_kernel.Restraint_do_get_inputs(self)
5010 def do_get_interactions(self):
5011 """do_get_interactions(Restraint self) -> IMP::ModelObjectsTemps"""
5012 return _IMP_kernel.Restraint_do_get_interactions(self)
5014 Restraint_swigregister = _IMP_kernel.Restraint_swigregister
5015 Restraint_swigregister(Restraint)
5017 class _RestraintsAdaptor(_InputAdaptor):
5018 """Proxy of C++ IMP::RestraintsAdaptor class"""
5019 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5020 __repr__ = _swig_repr
5022 def __init__(self, *args):
5024 __init__(IMP::RestraintsAdaptor self) -> _RestraintsAdaptor
5025 __init__(IMP::RestraintsAdaptor self, IMP::Restraints const & sf) -> _RestraintsAdaptor
5026 __init__(IMP::RestraintsAdaptor self, IMP::RestraintsTemp const & sf) -> _RestraintsAdaptor
5027 __init__(IMP::RestraintsAdaptor self, Restraint sf) -> _RestraintsAdaptor
5029 this = _IMP_kernel.new__RestraintsAdaptor(*args)
5031 self.this.append(this)
5034 __swig_destroy__ = _IMP_kernel.delete__RestraintsAdaptor
5035 __del__ =
lambda self:
None
5036 _RestraintsAdaptor_swigregister = _IMP_kernel._RestraintsAdaptor_swigregister
5037 _RestraintsAdaptor_swigregister(_RestraintsAdaptor)
5039 class RestraintSet(Restraint):
5040 """Proxy of C++ IMP::RestraintSet class"""
5041 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5043 def __init__(self, *args):
5045 __init__(IMP::RestraintSet self, Model m, double weight, std::string const & name) -> RestraintSet
5046 __init__(IMP::RestraintSet self, Model m, double weight) -> RestraintSet
5047 __init__(IMP::RestraintSet self, Model m, std::string const & name) -> RestraintSet
5048 __init__(IMP::RestraintSet self, Model m) -> RestraintSet
5049 __init__(IMP::RestraintSet self, IMP::RestraintsTemp const & rs, double weight, std::string const & name) -> RestraintSet
5050 __init__(IMP::RestraintSet self, IMP::RestraintsTemp const & rs, double weight) -> RestraintSet
5052 if self.__class__ == RestraintSet:
5056 this = _IMP_kernel.new_RestraintSet(_self, *args)
5058 self.this.append(this)
5062 if self.__class__ != RestraintSet:
5063 _director_objects.register(self)
5068 def unprotected_evaluate(self, da):
5069 """unprotected_evaluate(RestraintSet self, DerivativeAccumulator da) -> double"""
5070 return _IMP_kernel.RestraintSet_unprotected_evaluate(self, da)
5073 def get_type_name(self):
5074 """get_type_name(RestraintSet self) -> std::string"""
5075 return _IMP_kernel.RestraintSet_get_type_name(self)
5078 def get_version_info(self):
5079 """get_version_info(RestraintSet self) -> VersionInfo"""
5080 return _IMP_kernel.RestraintSet_get_version_info(self)
5083 def remove_restraint(self, d):
5084 """remove_restraint(RestraintSet self, Restraint d)"""
5085 return _IMP_kernel.RestraintSet_remove_restraint(self, d)
5088 def remove_restraints(self, d):
5089 """remove_restraints(RestraintSet self, IMP::Restraints const & d)"""
5090 return _IMP_kernel.RestraintSet_remove_restraints(self, d)
5093 def set_restraints(self, ps):
5094 """set_restraints(RestraintSet self, IMP::Restraints const & ps)"""
5095 return _IMP_kernel.RestraintSet_set_restraints(self, ps)
5098 def set_restraints_order(self, objs):
5099 """set_restraints_order(RestraintSet self, IMP::Restraints const & objs)"""
5100 return _IMP_kernel.RestraintSet_set_restraints_order(self, objs)
5104 """add_restraint(RestraintSet self, Restraint obj) -> unsigned int"""
5105 return _IMP_kernel.RestraintSet_add_restraint(self, obj)
5109 """add_restraints(RestraintSet self, IMP::Restraints const & objs)"""
5110 return _IMP_kernel.RestraintSet_add_restraints(self, objs)
5113 def clear_restraints(self):
5114 """clear_restraints(RestraintSet self)"""
5115 return _IMP_kernel.RestraintSet_clear_restraints(self)
5118 def get_number_of_restraints(self):
5119 """get_number_of_restraints(RestraintSet self) -> unsigned int"""
5120 return _IMP_kernel.RestraintSet_get_number_of_restraints(self)
5123 def get_has_restraints(self):
5124 """get_has_restraints(RestraintSet self) -> bool"""
5125 return _IMP_kernel.RestraintSet_get_has_restraints(self)
5128 def get_restraint(self, i):
5129 """get_restraint(RestraintSet self, unsigned int i) -> Restraint"""
5130 return _IMP_kernel.RestraintSet_get_restraint(self, i)
5133 def get_restraints(self):
5134 """get_restraints(RestraintSet self) -> IMP::Restraints"""
5135 return _IMP_kernel.RestraintSet_get_restraints(self)
5138 def reserve_restraints(self, sz):
5139 """reserve_restraints(RestraintSet self, unsigned int sz)"""
5140 return _IMP_kernel.RestraintSet_reserve_restraints(self, sz)
5143 def get_non_sets_and_sets(self):
5144 """get_non_sets_and_sets(RestraintSet self) -> std::pair< IMP::RestraintsTemp,IMP::RestraintSetsTemp >"""
5145 return _IMP_kernel.RestraintSet_get_non_sets_and_sets(self)
5148 def do_get_inputs(self):
5149 """do_get_inputs(RestraintSet self) -> IMP::ModelObjectsTemp"""
5150 return _IMP_kernel.RestraintSet_do_get_inputs(self)
5155 create_scoring_function(RestraintSet self, double weight=1.0, double max) -> ScoringFunction
5156 create_scoring_function(RestraintSet self, double weight=1.0) -> ScoringFunction
5157 create_scoring_function(RestraintSet self) -> ScoringFunction
5159 return _IMP_kernel.RestraintSet_create_scoring_function(self, *args)
5162 def get_last_score(self):
5163 """get_last_score(RestraintSet self) -> double"""
5164 return _IMP_kernel.RestraintSet_get_last_score(self)
5167 def get_last_last_score(self):
5168 """get_last_last_score(RestraintSet self) -> double"""
5169 return _IMP_kernel.RestraintSet_get_last_last_score(self)
5173 """__str__(RestraintSet self) -> std::string"""
5174 return _IMP_kernel.RestraintSet___str__(self)
5178 """__repr__(RestraintSet self) -> std::string"""
5179 return _IMP_kernel.RestraintSet___repr__(self)
5184 return _object_cast_to_RestraintSet(o)
5187 def get_type_name(self):
5188 return self.__class__.__name__
5189 def do_show(self, out):
5191 def get_version_info(self):
5193 return VersionInfo(self.__module__,
5200 return _object_cast_to_RestraintSet(o)
5202 def __disown__(self):
5204 _IMP_kernel.disown_RestraintSet(self)
5205 return weakref_proxy(self)
5207 def do_destroy(self):
5208 """do_destroy(RestraintSet self)"""
5209 return _IMP_kernel.RestraintSet_do_destroy(self)
5212 def handle_set_has_required_score_states(self, arg0):
5213 """handle_set_has_required_score_states(RestraintSet self, bool arg0)"""
5214 return _IMP_kernel.RestraintSet_handle_set_has_required_score_states(self, arg0)
5217 def do_get_outputs(self):
5218 """do_get_outputs(RestraintSet self) -> IMP::ModelObjectsTemp"""
5219 return _IMP_kernel.RestraintSet_do_get_outputs(self)
5222 def do_get_interactions(self):
5223 """do_get_interactions(RestraintSet self) -> IMP::ModelObjectsTemps"""
5224 return _IMP_kernel.RestraintSet_do_get_interactions(self)
5227 def do_create_decomposition(self):
5228 """do_create_decomposition(RestraintSet self) -> IMP::Restraints"""
5229 return _IMP_kernel.RestraintSet_do_create_decomposition(self)
5232 def do_create_current_decomposition(self):
5233 """do_create_current_decomposition(RestraintSet self) -> IMP::Restraints"""
5234 return _IMP_kernel.RestraintSet_do_create_current_decomposition(self)
5237 def do_add_score_and_derivatives(self, sa):
5238 """do_add_score_and_derivatives(RestraintSet self, ScoreAccumulator sa)"""
5239 return _IMP_kernel.RestraintSet_do_add_score_and_derivatives(self, sa)
5242 def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis):
5243 """do_add_score_and_derivatives_moved(RestraintSet self, ScoreAccumulator sa, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
5244 return _IMP_kernel.RestraintSet_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis)
5246 RestraintSet_swigregister = _IMP_kernel.RestraintSet_swigregister
5247 RestraintSet_swigregister(RestraintSet)
5250 def get_restraints(rs):
5251 """get_restraints(IMP::RestraintsTemp const & rs) -> IMP::RestraintsTemp"""
5252 return _IMP_kernel.get_restraints(rs)
5254 def _check_particle(p, a):
5255 if (
not p.get_is_active()):
5256 raise ValueError(
"Inactive Particle")
5257 if (type(a)() == a):
5258 raise IndexError(
"Cannot use default Index")
5259 if (
not p.has_attribute(a)):
5260 raise IndexError(
"Particle does not have attribute")
5262 class Particle(ModelObject):
5263 """Proxy of C++ IMP::Particle class"""
5264 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5266 def get_version_info(self):
5267 """get_version_info(Particle self) -> VersionInfo"""
5268 return _IMP_kernel.Particle_get_version_info(self)
5271 def __init__(self, *args):
5273 __init__(IMP::Particle self, Model m, std::string name) -> Particle
5274 __init__(IMP::Particle self, Model m) -> Particle
5276 this = _IMP_kernel.new_Particle(*args)
5278 self.this.append(this)
5282 def get_float_keys(self):
5283 """get_float_keys(Particle self) -> IMP::FloatKeys"""
5284 return _IMP_kernel.Particle_get_float_keys(self)
5287 def get_floats_keys(self):
5288 """get_floats_keys(Particle self) -> IMP::FloatsKeys"""
5289 return _IMP_kernel.Particle_get_floats_keys(self)
5292 def get_int_keys(self):
5293 """get_int_keys(Particle self) -> IMP::IntKeys"""
5294 return _IMP_kernel.Particle_get_int_keys(self)
5297 def get_ints_keys(self):
5298 """get_ints_keys(Particle self) -> IMP::IntsKeys"""
5299 return _IMP_kernel.Particle_get_ints_keys(self)
5302 def get_string_keys(self):
5303 """get_string_keys(Particle self) -> IMP::StringKeys"""
5304 return _IMP_kernel.Particle_get_string_keys(self)
5307 def get_object_keys(self):
5308 """get_object_keys(Particle self) -> IMP::ObjectKeys"""
5309 return _IMP_kernel.Particle_get_object_keys(self)
5312 def add_cache_attribute(self, *args):
5314 add_cache_attribute(Particle self, FloatKey name, IMP::Float value)
5315 add_cache_attribute(Particle self, FloatsKey name, IMP::Floats value)
5316 add_cache_attribute(Particle self, IntKey name, IMP::Int value)
5317 add_cache_attribute(Particle self, IntsKey name, IMP::Ints value)
5318 add_cache_attribute(Particle self, StringKey name, IMP::String value)
5319 add_cache_attribute(Particle self, ObjectKey name, Object value)
5320 add_cache_attribute(Particle self, IMP::WeakObjectKey name, Object value)
5322 return _IMP_kernel.Particle_add_cache_attribute(self, *args)
5325 def get_weak_object_keys(self):
5326 """get_weak_object_keys(Particle self) -> IMP::WeakObjectKeys"""
5327 return _IMP_kernel.Particle_get_weak_object_keys(self)
5330 def add_to_derivative(self, key, value, da):
5331 """add_to_derivative(Particle self, FloatKey key, IMP::Float value, DerivativeAccumulator da)"""
5332 return _IMP_kernel.Particle_add_to_derivative(self, key, value, da)
5335 def set_is_optimized(self, k, tf):
5336 """set_is_optimized(Particle self, FloatKey k, bool tf)"""
5337 return _IMP_kernel.Particle_set_is_optimized(self, k, tf)
5340 def get_is_optimized(self, k):
5341 """get_is_optimized(Particle self, FloatKey k) -> bool"""
5342 return _IMP_kernel.Particle_get_is_optimized(self, k)
5345 def get_derivative(self, k):
5346 """get_derivative(Particle self, FloatKey k) -> IMP::Float"""
5347 return _IMP_kernel.Particle_get_derivative(self, k)
5350 def add_attribute(self, *args):
5352 add_attribute(Particle self, FloatKey name, IMP::Float initial_value)
5353 add_attribute(Particle self, FloatsKey name, IMP::Floats initial_value)
5354 add_attribute(Particle self, IntKey name, IMP::Int initial_value)
5355 add_attribute(Particle self, IntsKey name, IMP::Ints initial_value)
5356 add_attribute(Particle self, StringKey name, IMP::String initial_value)
5357 add_attribute(Particle self, ObjectKey name, Object initial_value)
5358 add_attribute(Particle self, IMP::WeakObjectKey name, Object initial_value)
5359 add_attribute(Particle self, FloatKey name, IMP::Float const initial_value, bool optimized)
5360 add_attribute(Particle self, ParticleIndexKey k, Particle v)
5362 return _IMP_kernel.Particle_add_attribute(self, *args)
5365 def has_attribute(self, *args):
5367 has_attribute(Particle self, FloatKey name) -> bool
5368 has_attribute(Particle self, FloatsKey name) -> bool
5369 has_attribute(Particle self, IntKey name) -> bool
5370 has_attribute(Particle self, IntsKey name) -> bool
5371 has_attribute(Particle self, StringKey name) -> bool
5372 has_attribute(Particle self, ObjectKey name) -> bool
5373 has_attribute(Particle self, IMP::WeakObjectKey name) -> bool
5374 has_attribute(Particle self, ParticleIndexKey k) -> bool
5376 return _IMP_kernel.Particle_has_attribute(self, *args)
5379 def set_value(self, *args):
5381 set_value(Particle self, FloatKey name, IMP::Float value)
5382 set_value(Particle self, FloatsKey name, IMP::Floats value)
5383 set_value(Particle self, IntKey name, IMP::Int value)
5384 set_value(Particle self, IntsKey name, IMP::Ints value)
5385 set_value(Particle self, StringKey name, IMP::String value)
5386 set_value(Particle self, ObjectKey name, Object value)
5387 set_value(Particle self, IMP::WeakObjectKey name, Object value)
5388 set_value(Particle self, ParticleIndexKey k, Particle v)
5390 return _IMP_kernel.Particle_set_value(self, *args)
5393 def get_value(self, *args):
5395 get_value(Particle self, FloatKey name) -> IMP::Float
5396 get_value(Particle self, FloatsKey name) -> IMP::Floats
5397 get_value(Particle self, IntKey name) -> IMP::Int
5398 get_value(Particle self, IntsKey name) -> IMP::Ints
5399 get_value(Particle self, StringKey name) -> IMP::String
5400 get_value(Particle self, ObjectKey name) -> Object
5401 get_value(Particle self, IMP::WeakObjectKey name) -> Object
5402 get_value(Particle self, ParticleIndexKey k) -> Particle
5404 return _IMP_kernel.Particle_get_value(self, *args)
5407 def remove_attribute(self, *args):
5409 remove_attribute(Particle self, FloatKey name)
5410 remove_attribute(Particle self, FloatsKey name)
5411 remove_attribute(Particle self, IntKey name)
5412 remove_attribute(Particle self, IntsKey name)
5413 remove_attribute(Particle self, StringKey name)
5414 remove_attribute(Particle self, ObjectKey name)
5415 remove_attribute(Particle self, IMP::WeakObjectKey name)
5416 remove_attribute(Particle self, ParticleIndexKey k)
5418 return _IMP_kernel.Particle_remove_attribute(self, *args)
5421 def get_particle_keys(self):
5422 """get_particle_keys(Particle self) -> IMP::ParticleIndexKeys"""
5423 return _IMP_kernel.Particle_get_particle_keys(self)
5426 def show(self, *args):
5428 show(Particle self, _ostream out)
5431 return _IMP_kernel.Particle_show(self, *args)
5434 def get_is_active(self):
5435 """get_is_active(Particle self) -> bool"""
5436 return _IMP_kernel.Particle_get_is_active(self)
5440 """get_index(Particle self) -> ParticleIndex"""
5441 return _IMP_kernel.Particle_get_index(self)
5444 def __eq__(self, *args):
5446 __eq__(Particle self, Particle o) -> bool
5447 __eq__(Particle self, Decorator d) -> bool
5449 return _IMP_kernel.Particle___eq__(self, *args)
5452 def __ne__(self, *args):
5454 __ne__(Particle self, Particle o) -> bool
5455 __ne__(Particle self, Decorator d) -> bool
5457 return _IMP_kernel.Particle___ne__(self, *args)
5460 def __le__(self, *args):
5462 __le__(Particle self, Particle o) -> bool
5463 __le__(Particle self, Decorator d) -> bool
5465 return _IMP_kernel.Particle___le__(self, *args)
5468 def __lt__(self, *args):
5470 __lt__(Particle self, Particle o) -> bool
5471 __lt__(Particle self, Decorator d) -> bool
5473 return _IMP_kernel.Particle___lt__(self, *args)
5476 def __ge__(self, *args):
5478 __ge__(Particle self, Particle o) -> bool
5479 __ge__(Particle self, Decorator d) -> bool
5481 return _IMP_kernel.Particle___ge__(self, *args)
5484 def __gt__(self, *args):
5486 __gt__(Particle self, Particle o) -> bool
5487 __gt__(Particle self, Decorator d) -> bool
5489 return _IMP_kernel.Particle___gt__(self, *args)
5492 __hash__ = ModelObject.__hash__
5496 """__str__(Particle self) -> std::string"""
5497 return _IMP_kernel.Particle___str__(self)
5501 """__repr__(Particle self) -> std::string"""
5502 return _IMP_kernel.Particle___repr__(self)
5507 return _object_cast_to_Particle(o)
5509 Particle_swigregister = _IMP_kernel.Particle_swigregister
5510 Particle_swigregister(Particle)
5512 class _ParticleAdaptor(_InputAdaptor):
5513 """Proxy of C++ IMP::ParticleAdaptor class"""
5514 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5515 __repr__ = _swig_repr
5517 def __init__(self, *args):
5519 __init__(IMP::ParticleAdaptor self) -> _ParticleAdaptor
5520 __init__(IMP::ParticleAdaptor self, Particle p) -> _ParticleAdaptor
5521 __init__(IMP::ParticleAdaptor self, Decorator d) -> _ParticleAdaptor
5523 this = _IMP_kernel.new__ParticleAdaptor(*args)
5525 self.this.append(this)
5529 def get_model(self):
5530 """get_model(_ParticleAdaptor self) -> Model"""
5531 return _IMP_kernel._ParticleAdaptor_get_model(self)
5534 def get_particle_index(self):
5535 """get_particle_index(_ParticleAdaptor self) -> ParticleIndex"""
5536 return _IMP_kernel._ParticleAdaptor_get_particle_index(self)
5538 __swig_destroy__ = _IMP_kernel.delete__ParticleAdaptor
5539 __del__ =
lambda self:
None
5540 _ParticleAdaptor_swigregister = _IMP_kernel._ParticleAdaptor_swigregister
5541 _ParticleAdaptor_swigregister(_ParticleAdaptor)
5543 class _DependencyGraphVertexIndex(object):
5544 """Proxy of C++ IMP::DependencyGraphVertexIndex class"""
5545 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5546 __repr__ = _swig_repr
5549 """__init__(IMP::DependencyGraphVertexIndex self) -> _DependencyGraphVertexIndex"""
5550 this = _IMP_kernel.new__DependencyGraphVertexIndex()
5552 self.this.append(this)
5555 __swig_destroy__ = _IMP_kernel.delete__DependencyGraphVertexIndex
5556 __del__ =
lambda self:
None
5557 _DependencyGraphVertexIndex_swigregister = _IMP_kernel._DependencyGraphVertexIndex_swigregister
5558 _DependencyGraphVertexIndex_swigregister(_DependencyGraphVertexIndex)
5561 def show_as_graphviz(name, out):
5562 """show_as_graphviz(IMP::DependencyGraph const & name, TextOutput out)"""
5563 return _IMP_kernel.show_as_graphviz(name, out)
5565 def get_vertex_index(g):
5566 """get_vertex_index(IMP::DependencyGraph const & g) -> _DependencyGraphVertexIndex"""
5567 return _IMP_kernel.get_vertex_index(g)
5570 """get_dependency_graph(Model m) -> IMP::DependencyGraph"""
5571 return _IMP_kernel.get_dependency_graph(m)
5574 """get_pruned_dependency_graph(Model m) -> IMP::DependencyGraph"""
5575 return _IMP_kernel.get_pruned_dependency_graph(m)
5577 def get_dependent_restraints(m, pi):
5578 """get_dependent_restraints(Model m, ParticleIndex pi) -> IMP::RestraintsTemp"""
5579 return _IMP_kernel.get_dependent_restraints(m, pi)
5581 def get_dependent_score_states(m, pi):
5582 """get_dependent_score_states(Model m, ParticleIndex pi) -> IMP::ScoreStatesTemp"""
5583 return _IMP_kernel.get_dependent_score_states(m, pi)
5585 def get_required_score_states(*args):
5587 get_required_score_states(IMP::ModelObjectsTemp const & mos, IMP::ScoreStatesTemp exclude) -> IMP::ScoreStatesTemp
5588 get_required_score_states(IMP::ModelObjectsTemp const & mos) -> IMP::ScoreStatesTemp
5589 get_required_score_states(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ScoreStatesTemp
5590 get_required_score_states(Model m, ParticleIndex pi) -> IMP::ScoreStatesTemp
5592 return _IMP_kernel.get_required_score_states(*args)
5594 def get_dependent_particles(*args):
5596 get_dependent_particles(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ParticlesTemp
5597 get_dependent_particles(Model m, ParticleIndex pi) -> IMP::ParticlesTemp
5599 return _IMP_kernel.get_dependent_particles(*args)
5600 class ScoringFunction(ModelObject):
5601 """Proxy of C++ IMP::ScoringFunction class"""
5602 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5604 def do_add_score_and_derivatives(self, sa, ss):
5605 """do_add_score_and_derivatives(ScoringFunction self, ScoreAccumulator sa, IMP::ScoreStatesTemp const & ss)"""
5606 return _IMP_kernel.ScoringFunction_do_add_score_and_derivatives(self, sa, ss)
5609 def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss):
5610 """do_add_score_and_derivatives_moved(ScoringFunction self, ScoreAccumulator sa, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, IMP::ScoreStatesTemp const & ss)"""
5611 return _IMP_kernel.ScoringFunction_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss)
5614 def get_score_accumulator_if_below(self, deriv, max):
5615 """get_score_accumulator_if_below(ScoringFunction self, bool deriv, double max) -> ScoreAccumulator"""
5616 return _IMP_kernel.ScoringFunction_get_score_accumulator_if_below(self, deriv, max)
5619 def get_score_accumulator_if_good(self, deriv):
5620 """get_score_accumulator_if_good(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
5621 return _IMP_kernel.ScoringFunction_get_score_accumulator_if_good(self, deriv)
5624 def get_score_accumulator(self, deriv):
5625 """get_score_accumulator(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
5626 return _IMP_kernel.ScoringFunction_get_score_accumulator(self, deriv)
5629 def __init__(self, m, name):
5630 """__init__(IMP::ScoringFunction self, Model m, std::string name) -> ScoringFunction"""
5631 if self.__class__ == ScoringFunction:
5635 this = _IMP_kernel.new_ScoringFunction(_self, m, name)
5637 self.this.append(this)
5641 if self.__class__ != ScoringFunction:
5642 _director_objects.register(self)
5647 def do_get_outputs(self):
5648 """do_get_outputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
5649 return _IMP_kernel.ScoringFunction_do_get_outputs(self)
5652 def evaluate_if_good(self, derivatives):
5653 """evaluate_if_good(ScoringFunction self, bool derivatives) -> double"""
5654 return _IMP_kernel.ScoringFunction_evaluate_if_good(self, derivatives)
5657 def evaluate(self, derivatives):
5658 """evaluate(ScoringFunction self, bool derivatives) -> double"""
5659 return _IMP_kernel.ScoringFunction_evaluate(self, derivatives)
5662 def evaluate_moved(self, derivatives, moved_pis, reset_pis):
5663 """evaluate_moved(ScoringFunction self, bool derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
5664 return _IMP_kernel.ScoringFunction_evaluate_moved(self, derivatives, moved_pis, reset_pis)
5667 def evaluate_moved_if_below(self, derivatives, moved_pis, reset_pis, max):
5668 """evaluate_moved_if_below(ScoringFunction self, bool derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, double max) -> double"""
5669 return _IMP_kernel.ScoringFunction_evaluate_moved_if_below(self, derivatives, moved_pis, reset_pis, max)
5672 def evaluate_moved_if_good(self, derivatives, moved_pis, reset_pis):
5673 """evaluate_moved_if_good(ScoringFunction self, bool derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
5674 return _IMP_kernel.ScoringFunction_evaluate_moved_if_good(self, derivatives, moved_pis, reset_pis)
5677 def evaluate_if_below(self, derivatives, max):
5678 """evaluate_if_below(ScoringFunction self, bool derivatives, double max) -> double"""
5679 return _IMP_kernel.ScoringFunction_evaluate_if_below(self, derivatives, max)
5682 def get_had_good_score(self):
5683 """get_had_good_score(ScoringFunction self) -> bool"""
5684 return _IMP_kernel.ScoringFunction_get_had_good_score(self)
5687 def get_last_score(self):
5688 """get_last_score(ScoringFunction self) -> double"""
5689 return _IMP_kernel.ScoringFunction_get_last_score(self)
5693 """create_restraints(ScoringFunction self) -> IMP::Restraints"""
5694 return _IMP_kernel.ScoringFunction_create_restraints(self)
5698 """__str__(ScoringFunction self) -> std::string"""
5699 return _IMP_kernel.ScoringFunction___str__(self)
5703 """__repr__(ScoringFunction self) -> std::string"""
5704 return _IMP_kernel.ScoringFunction___repr__(self)
5709 return _object_cast_to_ScoringFunction(o)
5712 def get_type_name(self):
5713 return self.__class__.__name__
5714 def do_show(self, out):
5716 def get_version_info(self):
5718 return VersionInfo(self.__module__,
5725 return _object_cast_to_ScoringFunction(o)
5727 __swig_destroy__ = _IMP_kernel.delete_ScoringFunction
5728 __del__ =
lambda self:
None
5729 def __disown__(self):
5731 _IMP_kernel.disown_ScoringFunction(self)
5732 return weakref_proxy(self)
5734 def do_destroy(self):
5735 """do_destroy(ScoringFunction self)"""
5736 return _IMP_kernel.ScoringFunction_do_destroy(self)
5739 def handle_set_has_required_score_states(self, arg0):
5740 """handle_set_has_required_score_states(ScoringFunction self, bool arg0)"""
5741 return _IMP_kernel.ScoringFunction_handle_set_has_required_score_states(self, arg0)
5744 def do_get_inputs(self):
5745 """do_get_inputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
5746 return _IMP_kernel.ScoringFunction_do_get_inputs(self)
5749 def do_get_interactions(self):
5750 """do_get_interactions(ScoringFunction self) -> IMP::ModelObjectsTemps"""
5751 return _IMP_kernel.ScoringFunction_do_get_interactions(self)
5753 ScoringFunction_swigregister = _IMP_kernel.ScoringFunction_swigregister
5754 ScoringFunction_swigregister(ScoringFunction)
5759 create_decomposition(IMP::RestraintsTemp const & rs) -> IMP::Restraints
5760 create_decomposition(ScoringFunction sf) -> IMP::ScoringFunctions
5762 return _IMP_kernel.create_decomposition(*args)
5763 class _ScoringFunctionAdaptor(_InputAdaptor):
5764 """Proxy of C++ IMP::ScoringFunctionAdaptor class"""
5765 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5766 __repr__ = _swig_repr
5768 def __init__(self, *args):
5770 __init__(IMP::ScoringFunctionAdaptor self) -> _ScoringFunctionAdaptor
5771 __init__(IMP::ScoringFunctionAdaptor self, ScoringFunction sf) -> _ScoringFunctionAdaptor
5772 __init__(IMP::ScoringFunctionAdaptor self, IMP::RestraintsTemp const & sf) -> _ScoringFunctionAdaptor
5773 __init__(IMP::ScoringFunctionAdaptor self, IMP::Restraints const & sf) -> _ScoringFunctionAdaptor
5774 __init__(IMP::ScoringFunctionAdaptor self, Restraint sf) -> _ScoringFunctionAdaptor
5776 this = _IMP_kernel.new__ScoringFunctionAdaptor(*args)
5778 self.this.append(this)
5781 __swig_destroy__ = _IMP_kernel.delete__ScoringFunctionAdaptor
5782 __del__ =
lambda self:
None
5783 _ScoringFunctionAdaptor_swigregister = _IMP_kernel._ScoringFunctionAdaptor_swigregister
5784 _ScoringFunctionAdaptor_swigregister(_ScoringFunctionAdaptor)
5789 show_restraint_hierarchy(_ScoringFunctionAdaptor rs, _ostream out)
5790 show_restraint_hierarchy(_ScoringFunctionAdaptor rs)
5792 return _IMP_kernel.show_restraint_hierarchy(*args)
5793 class Undecorator(Object):
5794 """Proxy of C++ IMP::Undecorator class"""
5795 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5797 def __init__(self, m, name):
5798 """__init__(IMP::Undecorator self, Model m, std::string name) -> Undecorator"""
5799 if self.__class__ == Undecorator:
5803 this = _IMP_kernel.new_Undecorator(_self, m, name)
5805 self.this.append(this)
5809 if self.__class__ != Undecorator:
5810 _director_objects.register(self)
5815 def teardown(self, pi):
5816 """teardown(Undecorator self, ParticleIndex pi)"""
5817 return _IMP_kernel.Undecorator_teardown(self, pi)
5821 """__str__(Undecorator self) -> std::string"""
5822 return _IMP_kernel.Undecorator___str__(self)
5826 """__repr__(Undecorator self) -> std::string"""
5827 return _IMP_kernel.Undecorator___repr__(self)
5832 return _object_cast_to_Undecorator(o)
5835 def get_type_name(self):
5836 return self.__class__.__name__
5837 def do_show(self, out):
5839 def get_version_info(self):
5841 return VersionInfo(self.__module__,
5848 return _object_cast_to_Undecorator(o)
5850 __swig_destroy__ = _IMP_kernel.delete_Undecorator
5851 __del__ =
lambda self:
None
5852 def __disown__(self):
5854 _IMP_kernel.disown_Undecorator(self)
5855 return weakref_proxy(self)
5857 def do_destroy(self):
5858 """do_destroy(Undecorator self)"""
5859 return _IMP_kernel.Undecorator_do_destroy(self)
5861 Undecorator_swigregister = _IMP_kernel.Undecorator_swigregister
5862 Undecorator_swigregister(Undecorator)
5864 class Model(Object):
5865 """Proxy of C++ IMP::Model class"""
5866 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5868 def __init__(self, *args):
5870 __init__(IMP::Model self, std::string name) -> Model
5871 __init__(IMP::Model self) -> Model
5873 this = _IMP_kernel.new_Model(*args)
5875 self.this.append(this)
5879 def clear_particle_caches(self, pi):
5880 """clear_particle_caches(Model self, ParticleIndex pi)"""
5881 return _IMP_kernel.Model_clear_particle_caches(self, pi)
5885 """add_particle(Model self, std::string name) -> ParticleIndex"""
5886 return _IMP_kernel.Model_add_particle(self, name)
5889 def get_particle_name(self, pi):
5890 """get_particle_name(Model self, ParticleIndex pi) -> std::string"""
5891 return _IMP_kernel.Model_get_particle_name(self, pi)
5894 def add_undecorator(self, pi, d):
5895 """add_undecorator(Model self, ParticleIndex pi, Undecorator d)"""
5896 return _IMP_kernel.Model_add_undecorator(self, pi, d)
5899 def remove_score_state(self, d):
5900 """remove_score_state(Model self, ScoreState d)"""
5901 return _IMP_kernel.Model_remove_score_state(self, d)
5904 def remove_score_states(self, d):
5905 """remove_score_states(Model self, IMP::ScoreStates const & d)"""
5906 return _IMP_kernel.Model_remove_score_states(self, d)
5909 def set_score_states(self, ps):
5910 """set_score_states(Model self, IMP::ScoreStates const & ps)"""
5911 return _IMP_kernel.Model_set_score_states(self, ps)
5914 def set_score_states_order(self, objs):
5915 """set_score_states_order(Model self, IMP::ScoreStates const & objs)"""
5916 return _IMP_kernel.Model_set_score_states_order(self, objs)
5919 def add_score_state(self, obj):
5920 """add_score_state(Model self, ScoreState obj) -> unsigned int"""
5921 return _IMP_kernel.Model_add_score_state(self, obj)
5924 def add_score_states(self, objs):
5925 """add_score_states(Model self, IMP::ScoreStates const & objs)"""
5926 return _IMP_kernel.Model_add_score_states(self, objs)
5929 def clear_score_states(self):
5930 """clear_score_states(Model self)"""
5931 return _IMP_kernel.Model_clear_score_states(self)
5934 def get_number_of_score_states(self):
5935 """get_number_of_score_states(Model self) -> unsigned int"""
5936 return _IMP_kernel.Model_get_number_of_score_states(self)
5939 def get_has_score_states(self):
5940 """get_has_score_states(Model self) -> bool"""
5941 return _IMP_kernel.Model_get_has_score_states(self)
5944 def get_score_state(self, i):
5945 """get_score_state(Model self, unsigned int i) -> ScoreState"""
5946 return _IMP_kernel.Model_get_score_state(self, i)
5949 def get_score_states(self):
5950 """get_score_states(Model self) -> IMP::ScoreStates"""
5951 return _IMP_kernel.Model_get_score_states(self)
5954 def reserve_score_states(self, sz):
5955 """reserve_score_states(Model self, unsigned int sz)"""
5956 return _IMP_kernel.Model_reserve_score_states(self, sz)
5960 """update(Model self)"""
5961 return _IMP_kernel.Model_update(self)
5964 def add_attribute(self, *args):
5966 add_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5967 add_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
5968 add_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle, IMP::Floats value)
5969 add_attribute(Model self, IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
5970 add_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
5971 add_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
5972 add_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5973 add_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
5974 add_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5976 return _IMP_kernel.Model_add_attribute(self, *args)
5979 def remove_attribute(self, *args):
5981 remove_attribute(Model self, FloatKey attribute_key, ParticleIndex particle)
5982 remove_attribute(Model self, IntKey attribute_key, ParticleIndex particle)
5983 remove_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle)
5984 remove_attribute(Model self, IntsKey attribute_key, ParticleIndex particle)
5985 remove_attribute(Model self, StringKey attribute_key, ParticleIndex particle)
5986 remove_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle)
5987 remove_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle)
5988 remove_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle)
5989 remove_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle)
5991 return _IMP_kernel.Model_remove_attribute(self, *args)
5994 def get_has_attribute(self, *args):
5996 get_has_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> bool
5997 get_has_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> bool
5998 get_has_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle) -> bool
5999 get_has_attribute(Model self, IntsKey attribute_key, ParticleIndex particle) -> bool
6000 get_has_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> bool
6001 get_has_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> bool
6002 get_has_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> bool
6003 get_has_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> bool
6004 get_has_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> bool
6006 return _IMP_kernel.Model_get_has_attribute(self, *args)
6009 def set_attribute(self, *args):
6011 set_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
6012 set_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
6013 set_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle, IMP::Floats value)
6014 set_attribute(Model self, IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
6015 set_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
6016 set_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
6017 set_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
6018 set_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
6019 set_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
6021 return _IMP_kernel.Model_set_attribute(self, *args)
6024 def get_attribute(self, *args):
6026 get_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> IMP::Float
6027 get_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> IMP::Int
6028 get_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle) -> IMP::Floats
6029 get_attribute(Model self, IntsKey attribute_key, ParticleIndex particle) -> IMP::Ints
6030 get_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> IMP::String
6031 get_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> IMP::ParticleIndexes
6032 get_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> ParticleIndex
6033 get_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> Object
6034 get_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> Object
6036 return _IMP_kernel.Model_get_attribute(self, *args)
6039 def add_cache_attribute(self, *args):
6041 add_cache_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
6042 add_cache_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
6043 add_cache_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle, IMP::Floats value)
6044 add_cache_attribute(Model self, IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
6045 add_cache_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
6046 add_cache_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
6047 add_cache_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
6048 add_cache_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
6049 add_cache_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
6051 return _IMP_kernel.Model_add_cache_attribute(self, *args)
6054 def set_is_optimized(self, arg2, arg3, arg4):
6055 """set_is_optimized(Model self, FloatKey arg2, ParticleIndex arg3, bool arg4)"""
6056 return _IMP_kernel.Model_set_is_optimized(self, arg2, arg3, arg4)
6059 def add_to_derivative(self, k, particle, v, da):
6060 """add_to_derivative(Model self, FloatKey k, ParticleIndex particle, double v, DerivativeAccumulator da)"""
6061 return _IMP_kernel.Model_add_to_derivative(self, k, particle, v, da)
6064 def get_particle(self, p):
6065 """get_particle(Model self, ParticleIndex p) -> Particle"""
6066 return _IMP_kernel.Model_get_particle(self, p)
6069 def get_has_particle(self, p):
6070 """get_has_particle(Model self, ParticleIndex p) -> bool"""
6071 return _IMP_kernel.Model_get_has_particle(self, p)
6075 """get_particle_indexes(Model self) -> IMP::ParticleIndexes"""
6076 return _IMP_kernel.Model_get_particle_indexes(self)
6079 def get_model_objects(self):
6080 """get_model_objects(Model self) -> IMP::ModelObjectsTemp"""
6081 return _IMP_kernel.Model_get_model_objects(self)
6084 def remove_particle(self, pi):
6085 """remove_particle(Model self, ParticleIndex pi)"""
6086 return _IMP_kernel.Model_remove_particle(self, pi)
6089 def add_data(self, mk, o):
6090 """add_data(Model self, ModelKey mk, Object o)"""
6091 return _IMP_kernel.Model_add_data(self, mk, o)
6094 def get_data(self, mk):
6095 """get_data(Model self, ModelKey mk) -> Object"""
6096 return _IMP_kernel.Model_get_data(self, mk)
6099 def remove_data(self, mk):
6100 """remove_data(Model self, ModelKey mk)"""
6101 return _IMP_kernel.Model_remove_data(self, mk)
6104 def get_has_data(self, mk):
6105 """get_has_data(Model self, ModelKey mk) -> bool"""
6106 return _IMP_kernel.Model_get_has_data(self, mk)
6110 """get_age(Model self) -> unsigned int"""
6111 return _IMP_kernel.Model_get_age(self)
6114 def get_trigger_last_updated(self, tk):
6115 """get_trigger_last_updated(Model self, TriggerKey tk) -> unsigned int"""
6116 return _IMP_kernel.Model_get_trigger_last_updated(self, tk)
6119 def set_trigger_updated(self, tk):
6120 """set_trigger_updated(Model self, TriggerKey tk)"""
6121 return _IMP_kernel.Model_set_trigger_updated(self, tk)
6124 def get_dependencies_updated(self):
6125 """get_dependencies_updated(Model self) -> unsigned int"""
6126 return _IMP_kernel.Model_get_dependencies_updated(self)
6129 def get_version_info(self):
6130 """get_version_info(Model self) -> VersionInfo"""
6131 return _IMP_kernel.Model_get_version_info(self)
6134 def do_destroy(self):
6135 """do_destroy(Model self)"""
6136 return _IMP_kernel.Model_do_destroy(self)
6140 """__str__(Model self) -> std::string"""
6141 return _IMP_kernel.Model___str__(self)
6145 """__repr__(Model self) -> std::string"""
6146 return _IMP_kernel.Model___repr__(self)
6151 return _object_cast_to_Model(o)
6155 """Get the model's attribute array for IntKey k as a NumPy array.
6156 The array is indexed by ParticleIndex; particles that don't have
6157 this attribute will either be off the end of the array or will have
6159 This is a NumPy view that shares memory with the Model. Thus,
6160 any changes to values in this list will be reflected in the Model.
6161 Also, if the Model attribute array moves in memory (e.g. if particles
6162 or attributes are added) this array will be invalidated, so it is
6163 unsafe to keep it around long term.
6165 return _get_ints_numpy(self, k, self)
6168 """Get the model's attribute array for FloatKey k as a NumPy array.
6169 See Model::get_ints_numpy() for more details."""
6170 return _get_floats_numpy(self, k, self)
6173 """Get the model's attribute derivatives array for FloatKey k
6174 as a NumPy array. See Model::get_ints_numpy() for more details."""
6175 return _get_derivatives_numpy(self, k, self)
6178 """Get the model's XYZR attribute arrays as NumPy arrays.
6179 The attribute arrays for Cartesian coordinates and radii are
6180 stored separately from those for other FloatKeys. This function
6181 returns a tuple of two NumPy arrays, the first of coordinates and
6182 the second of radii. See Model::get_ints_numpy() for more details."""
6183 return _get_spheres_numpy(self, self)
6186 """Get the model's XYZR attribute derivatives arrays as NumPy arrays.
6187 See Model::get_ints_numpy() for more details."""
6188 return _get_sphere_derivatives_numpy(self, self)
6190 Model_swigregister = _IMP_kernel.Model_swigregister
6191 Model_swigregister(Model)
6194 """Proxy of C++ IMP::Decorator class"""
6195 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6196 __repr__ = _swig_repr
6198 def __init__(self, p):
6199 """__init__(IMP::Decorator self, _ParticleAdaptor p) -> Decorator"""
6200 this = _IMP_kernel.new_Decorator(p)
6202 self.this.append(this)
6206 def __ne__(self, o):
6207 """__ne__(Decorator self, Object o) -> bool"""
6208 return _IMP_kernel.Decorator___ne__(self, o)
6211 def __lt__(self, o):
6212 """__lt__(Decorator self, Object o) -> bool"""
6213 return _IMP_kernel.Decorator___lt__(self, o)
6216 def __gt__(self, o):
6217 """__gt__(Decorator self, Object o) -> bool"""
6218 return _IMP_kernel.Decorator___gt__(self, o)
6221 def __ge__(self, o):
6222 """__ge__(Decorator self, Object o) -> bool"""
6223 return _IMP_kernel.Decorator___ge__(self, o)
6226 def __le__(self, o):
6227 """__le__(Decorator self, Object o) -> bool"""
6228 return _IMP_kernel.Decorator___le__(self, o)
6232 """get_particle(Decorator self) -> Particle"""
6233 return _IMP_kernel.Decorator_get_particle(self)
6236 def get_particle_index(self):
6237 """get_particle_index(Decorator self) -> ParticleIndex"""
6238 return _IMP_kernel.Decorator_get_particle_index(self)
6241 def get_model(self):
6242 """get_model(Decorator self) -> Model"""
6243 return _IMP_kernel.Decorator_get_model(self)
6246 def get_is_valid(self):
6247 """get_is_valid(Decorator self) -> bool"""
6248 return _IMP_kernel.Decorator_get_is_valid(self)
6252 """__hash__(Decorator self) -> std::size_t"""
6253 return _IMP_kernel.Decorator___hash__(self)
6256 def __eq__(self, *args):
6258 __eq__(Decorator self, Object o) -> bool
6259 __eq__(Decorator self, Decorator o) -> bool
6260 __eq__(Decorator self, Particle o) -> bool
6262 return _IMP_kernel.Decorator___eq__(self, *args)
6266 """__bool__(Decorator self) -> bool"""
6267 return _IMP_kernel.Decorator___bool__(self)
6270 __nonzero__ = __bool__
6272 __swig_destroy__ = _IMP_kernel.delete_Decorator
6273 __del__ =
lambda self:
None
6274 Decorator_swigregister = _IMP_kernel.Decorator_swigregister
6275 Decorator_swigregister(Decorator)
6278 def check_particle(m, pi):
6279 """check_particle(Model m, ParticleIndex pi)"""
6280 return _IMP_kernel.check_particle(m, pi)
6282 """Proxy of C++ IMP::UnaryFunction class"""
6283 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6285 def __init__(self, *args):
6287 __init__(IMP::UnaryFunction self, std::string name) -> UnaryFunction
6288 __init__(IMP::UnaryFunction self) -> UnaryFunction
6290 if self.__class__ == UnaryFunction:
6294 this = _IMP_kernel.new_UnaryFunction(_self, *args)
6296 self.this.append(this)
6300 if self.__class__ != UnaryFunction:
6301 _director_objects.register(self)
6306 def evaluate(self, feature):
6307 """evaluate(UnaryFunction self, double feature) -> double"""
6308 return _IMP_kernel.UnaryFunction_evaluate(self, feature)
6311 def evaluate_with_derivative(self, feature):
6312 """evaluate_with_derivative(UnaryFunction self, double feature) -> IMP::DerivativePair"""
6313 return _IMP_kernel.UnaryFunction_evaluate_with_derivative(self, feature)
6315 __swig_destroy__ = _IMP_kernel.delete_UnaryFunction
6316 __del__ =
lambda self:
None
6319 """__str__(UnaryFunction self) -> std::string"""
6320 return _IMP_kernel.UnaryFunction___str__(self)
6324 """__repr__(UnaryFunction self) -> std::string"""
6325 return _IMP_kernel.UnaryFunction___repr__(self)
6330 return _object_cast_to_UnaryFunction(o)
6333 def get_type_name(self):
6334 return self.__class__.__name__
6335 def do_show(self, out):
6339 return VersionInfo(self.__module__,
6346 return _object_cast_to_UnaryFunction(o)
6348 def __disown__(self):
6350 _IMP_kernel.disown_UnaryFunction(self)
6351 return weakref_proxy(self)
6354 """do_destroy(UnaryFunction self)"""
6355 return _IMP_kernel.UnaryFunction_do_destroy(self)
6357 UnaryFunction_swigregister = _IMP_kernel.UnaryFunction_swigregister
6358 UnaryFunction_swigregister(UnaryFunction)
6360 class OptimizerState(ModelObject):
6361 """Proxy of C++ IMP::OptimizerState class"""
6362 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6364 def __init__(self, m, name):
6365 """__init__(IMP::OptimizerState self, Model m, std::string name) -> OptimizerState"""
6366 if self.__class__ == OptimizerState:
6370 this = _IMP_kernel.new_OptimizerState(_self, m, name)
6372 self.this.append(this)
6376 if self.__class__ != OptimizerState:
6377 _director_objects.register(self)
6383 """update(OptimizerState self)"""
6384 return _IMP_kernel.OptimizerState_update(self)
6387 def set_is_optimizing(self, arg0):
6388 """set_is_optimizing(OptimizerState self, bool arg0)"""
6389 return _IMP_kernel.OptimizerState_set_is_optimizing(self, arg0)
6392 def get_optimizer(self):
6393 """get_optimizer(OptimizerState self) -> Optimizer"""
6394 return _IMP_kernel.OptimizerState_get_optimizer(self)
6397 def set_period(self, p):
6398 """set_period(OptimizerState self, unsigned int p)"""
6399 return _IMP_kernel.OptimizerState_set_period(self, p)
6402 def get_period(self):
6403 """get_period(OptimizerState self) -> unsigned int"""
6404 return _IMP_kernel.OptimizerState_get_period(self)
6408 """reset(OptimizerState self)"""
6409 return _IMP_kernel.OptimizerState_reset(self)
6412 def update_always(self):
6413 """update_always(OptimizerState self)"""
6414 return _IMP_kernel.OptimizerState_update_always(self)
6417 def get_number_of_updates(self):
6418 """get_number_of_updates(OptimizerState self) -> unsigned int"""
6419 return _IMP_kernel.OptimizerState_get_number_of_updates(self)
6422 def set_number_of_updates(self, n):
6423 """set_number_of_updates(OptimizerState self, unsigned int n)"""
6424 return _IMP_kernel.OptimizerState_set_number_of_updates(self, n)
6426 __swig_destroy__ = _IMP_kernel.delete_OptimizerState
6427 __del__ =
lambda self:
None
6429 def do_update(self, arg0):
6430 """do_update(OptimizerState self, unsigned int arg0)"""
6431 return _IMP_kernel.OptimizerState_do_update(self, arg0)
6434 def do_set_is_optimizing(self, arg0):
6435 """do_set_is_optimizing(OptimizerState self, bool arg0)"""
6436 return _IMP_kernel.OptimizerState_do_set_is_optimizing(self, arg0)
6439 def do_get_inputs(self):
6440 """do_get_inputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
6441 return _IMP_kernel.OptimizerState_do_get_inputs(self)
6444 def do_get_outputs(self):
6445 """do_get_outputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
6446 return _IMP_kernel.OptimizerState_do_get_outputs(self)
6450 """__str__(OptimizerState self) -> std::string"""
6451 return _IMP_kernel.OptimizerState___str__(self)
6455 """__repr__(OptimizerState self) -> std::string"""
6456 return _IMP_kernel.OptimizerState___repr__(self)
6461 return _object_cast_to_OptimizerState(o)
6464 def get_type_name(self):
6465 return self.__class__.__name__
6466 def do_show(self, out):
6470 return VersionInfo(self.__module__,
6477 return _object_cast_to_OptimizerState(o)
6479 def __disown__(self):
6481 _IMP_kernel.disown_OptimizerState(self)
6482 return weakref_proxy(self)
6485 """do_destroy(OptimizerState self)"""
6486 return _IMP_kernel.OptimizerState_do_destroy(self)
6489 def handle_set_has_required_score_states(self, arg0):
6490 """handle_set_has_required_score_states(OptimizerState self, bool arg0)"""
6491 return _IMP_kernel.OptimizerState_handle_set_has_required_score_states(self, arg0)
6494 def do_get_interactions(self):
6495 """do_get_interactions(OptimizerState self) -> IMP::ModelObjectsTemps"""
6496 return _IMP_kernel.OptimizerState_do_get_interactions(self)
6498 OptimizerState_swigregister = _IMP_kernel.OptimizerState_swigregister
6499 OptimizerState_swigregister(OptimizerState)
6501 class Refiner(_ParticleInputs,
Object):
6502 """Proxy of C++ IMP::Refiner class"""
6503 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6505 def __init__(self, *args):
6507 __init__(IMP::Refiner self, std::string name, bool is_by_ref=False) -> Refiner
6508 __init__(IMP::Refiner self, std::string name) -> Refiner
6509 __init__(IMP::Refiner self) -> Refiner
6511 if self.__class__ == Refiner:
6515 this = _IMP_kernel.new_Refiner(_self, *args)
6517 self.this.append(this)
6521 if self.__class__ != Refiner:
6522 _director_objects.register(self)
6527 def get_can_refine(self, arg0):
6528 """get_can_refine(Refiner self, Particle arg0) -> bool"""
6529 return _IMP_kernel.Refiner_get_can_refine(self, arg0)
6532 def get_refined_indexes(self, m, pi):
6533 """get_refined_indexes(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes"""
6534 return _IMP_kernel.Refiner_get_refined_indexes(self, m, pi)
6537 def get_refined_indexes_by_ref(self, m, pi):
6538 """get_refined_indexes_by_ref(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes const &"""
6539 return _IMP_kernel.Refiner_get_refined_indexes_by_ref(self, m, pi)
6542 def get_is_by_ref_supported(self):
6543 """get_is_by_ref_supported(Refiner self) -> bool"""
6544 return _IMP_kernel.Refiner_get_is_by_ref_supported(self)
6547 def get_refined(self, *args):
6549 get_refined(Refiner self, Particle a) -> IMP::ParticlesTemp const
6550 get_refined(Refiner self, Particle a, unsigned int i) -> Particle
6552 return _IMP_kernel.Refiner_get_refined(self, *args)
6555 def get_number_of_refined(self, a):
6556 """get_number_of_refined(Refiner self, Particle a) -> unsigned int"""
6557 return _IMP_kernel.Refiner_get_number_of_refined(self, a)
6561 """__str__(Refiner self) -> std::string"""
6562 return _IMP_kernel.Refiner___str__(self)
6566 """__repr__(Refiner self) -> std::string"""
6567 return _IMP_kernel.Refiner___repr__(self)
6572 return _object_cast_to_Refiner(o)
6575 def get_type_name(self):
6576 return self.__class__.__name__
6577 def do_show(self, out):
6581 return VersionInfo(self.__module__,
6588 return _object_cast_to_Refiner(o)
6590 __swig_destroy__ = _IMP_kernel.delete_Refiner
6591 __del__ =
lambda self:
None
6592 def __disown__(self):
6594 _IMP_kernel.disown_Refiner(self)
6595 return weakref_proxy(self)
6597 def do_get_inputs(self, m, pis):
6598 """do_get_inputs(Refiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6599 return _IMP_kernel.Refiner_do_get_inputs(self, m, pis)
6603 """do_destroy(Refiner self)"""
6604 return _IMP_kernel.Refiner_do_destroy(self)
6606 Refiner_swigregister = _IMP_kernel.Refiner_swigregister
6607 Refiner_swigregister(Refiner)
6609 class Optimizer(ModelObject):
6610 """Proxy of C++ IMP::Optimizer class"""
6611 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6613 def set_is_optimizing_states(self, tf):
6614 """set_is_optimizing_states(Optimizer self, bool tf)"""
6615 return _IMP_kernel.Optimizer_set_is_optimizing_states(self, tf)
6618 def get_optimizer_state_inputs(self):
6619 """get_optimizer_state_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
6620 return _IMP_kernel.Optimizer_get_optimizer_state_inputs(self)
6623 def do_get_inputs(self):
6624 """do_get_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
6625 return _IMP_kernel.Optimizer_do_get_inputs(self)
6628 def do_get_outputs(self):
6629 """do_get_outputs(Optimizer self) -> IMP::ModelObjectsTemp"""
6630 return _IMP_kernel.Optimizer_do_get_outputs(self)
6633 def __init__(self, *args):
6635 __init__(IMP::Optimizer self, Model m, std::string name) -> Optimizer
6636 __init__(IMP::Optimizer self, Model m) -> Optimizer
6638 if self.__class__ == Optimizer:
6642 this = _IMP_kernel.new_Optimizer(_self, *args)
6644 self.this.append(this)
6648 if self.__class__ != Optimizer:
6649 _director_objects.register(self)
6654 def optimize(self, max_steps):
6655 """optimize(Optimizer self, unsigned int max_steps) -> double"""
6656 return _IMP_kernel.Optimizer_optimize(self, max_steps)
6659 def set_stop_on_good_score(self, tf):
6660 """set_stop_on_good_score(Optimizer self, bool tf)"""
6661 return _IMP_kernel.Optimizer_set_stop_on_good_score(self, tf)
6664 def get_stop_on_good_score(self):
6665 """get_stop_on_good_score(Optimizer self) -> bool"""
6666 return _IMP_kernel.Optimizer_get_stop_on_good_score(self)
6669 def get_last_score(self):
6670 """get_last_score(Optimizer self) -> double"""
6671 return _IMP_kernel.Optimizer_get_last_score(self)
6674 def get_scoring_function(self):
6675 """get_scoring_function(Optimizer self) -> ScoringFunction"""
6676 return _IMP_kernel.Optimizer_get_scoring_function(self)
6679 def remove_optimizer_state(self, d):
6680 """remove_optimizer_state(Optimizer self, OptimizerState d)"""
6681 return _IMP_kernel.Optimizer_remove_optimizer_state(self, d)
6684 def remove_optimizer_states(self, d):
6685 """remove_optimizer_states(Optimizer self, IMP::OptimizerStates const & d)"""
6686 return _IMP_kernel.Optimizer_remove_optimizer_states(self, d)
6689 def set_optimizer_states(self, ps):
6690 """set_optimizer_states(Optimizer self, IMP::OptimizerStates const & ps)"""
6691 return _IMP_kernel.Optimizer_set_optimizer_states(self, ps)
6694 def set_optimizer_states_order(self, objs):
6695 """set_optimizer_states_order(Optimizer self, IMP::OptimizerStates const & objs)"""
6696 return _IMP_kernel.Optimizer_set_optimizer_states_order(self, objs)
6699 def add_optimizer_state(self, obj):
6700 """add_optimizer_state(Optimizer self, OptimizerState obj) -> unsigned int"""
6701 return _IMP_kernel.Optimizer_add_optimizer_state(self, obj)
6704 def add_optimizer_states(self, objs):
6705 """add_optimizer_states(Optimizer self, IMP::OptimizerStates const & objs)"""
6706 return _IMP_kernel.Optimizer_add_optimizer_states(self, objs)
6709 def clear_optimizer_states(self):
6710 """clear_optimizer_states(Optimizer self)"""
6711 return _IMP_kernel.Optimizer_clear_optimizer_states(self)
6714 def get_number_of_optimizer_states(self):
6715 """get_number_of_optimizer_states(Optimizer self) -> unsigned int"""
6716 return _IMP_kernel.Optimizer_get_number_of_optimizer_states(self)
6719 def get_has_optimizer_states(self):
6720 """get_has_optimizer_states(Optimizer self) -> bool"""
6721 return _IMP_kernel.Optimizer_get_has_optimizer_states(self)
6724 def get_optimizer_state(self, i):
6725 """get_optimizer_state(Optimizer self, unsigned int i) -> OptimizerState"""
6726 return _IMP_kernel.Optimizer_get_optimizer_state(self, i)
6729 def get_optimizer_states(self):
6730 """get_optimizer_states(Optimizer self) -> IMP::OptimizerStates"""
6731 return _IMP_kernel.Optimizer_get_optimizer_states(self)
6734 def reserve_optimizer_states(self, sz):
6735 """reserve_optimizer_states(Optimizer self, unsigned int sz)"""
6736 return _IMP_kernel.Optimizer_reserve_optimizer_states(self, sz)
6739 def set_scoring_function(self, sf):
6740 """set_scoring_function(Optimizer self, _ScoringFunctionAdaptor sf)"""
6741 return _IMP_kernel.Optimizer_set_scoring_function(self, sf)
6743 __swig_destroy__ = _IMP_kernel.delete_Optimizer
6745 """__del__(IMP::Optimizer self)"""
6747 _director_objects.cleanup()
6753 def do_optimize(self, ns):
6754 """do_optimize(Optimizer self, unsigned int ns) -> double"""
6755 return _IMP_kernel.Optimizer_do_optimize(self, ns)
6758 def update_states(self):
6759 """update_states(Optimizer self)"""
6760 return _IMP_kernel.Optimizer_update_states(self)
6764 """__str__(Optimizer self) -> std::string"""
6765 return _IMP_kernel.Optimizer___str__(self)
6769 """__repr__(Optimizer self) -> std::string"""
6770 return _IMP_kernel.Optimizer___repr__(self)
6775 return _object_cast_to_Optimizer(o)
6778 def get_type_name(self):
6779 return self.__class__.__name__
6780 def do_show(self, out):
6784 return VersionInfo(self.__module__,
6791 return _object_cast_to_Optimizer(o)
6793 def __disown__(self):
6795 _IMP_kernel.disown_Optimizer(self)
6796 return weakref_proxy(self)
6799 """do_destroy(Optimizer self)"""
6800 return _IMP_kernel.Optimizer_do_destroy(self)
6803 def handle_set_has_required_score_states(self, arg0):
6804 """handle_set_has_required_score_states(Optimizer self, bool arg0)"""
6805 return _IMP_kernel.Optimizer_handle_set_has_required_score_states(self, arg0)
6808 def do_get_interactions(self):
6809 """do_get_interactions(Optimizer self) -> IMP::ModelObjectsTemps"""
6810 return _IMP_kernel.Optimizer_do_get_interactions(self)
6812 Optimizer_swigregister = _IMP_kernel.Optimizer_swigregister
6813 Optimizer_swigregister(Optimizer)
6815 class AttributeOptimizer(Optimizer):
6816 """Proxy of C++ IMP::AttributeOptimizer class"""
6817 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6819 def __init__(self, *args):
6821 __init__(IMP::AttributeOptimizer self, Model m, std::string name) -> AttributeOptimizer
6822 __init__(IMP::AttributeOptimizer self, Model m) -> AttributeOptimizer
6824 if self.__class__ == AttributeOptimizer:
6828 this = _IMP_kernel.new_AttributeOptimizer(_self, *args)
6830 self.this.append(this)
6834 if self.__class__ != AttributeOptimizer:
6835 _director_objects.register(self)
6840 def get_optimized_attributes(self):
6841 """get_optimized_attributes(AttributeOptimizer self) -> IMP::FloatIndexes"""
6842 return _IMP_kernel.AttributeOptimizer_get_optimized_attributes(self)
6845 def set_value(self, fi, v):
6846 """set_value(AttributeOptimizer self, FloatIndex fi, double v)"""
6847 return _IMP_kernel.AttributeOptimizer_set_value(self, fi, v)
6850 def get_value(self, fi):
6851 """get_value(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
6852 return _IMP_kernel.AttributeOptimizer_get_value(self, fi)
6855 def get_derivative(self, fi):
6856 """get_derivative(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
6857 return _IMP_kernel.AttributeOptimizer_get_derivative(self, fi)
6860 def get_width(self, k):
6861 """get_width(AttributeOptimizer self, FloatKey k) -> double"""
6862 return _IMP_kernel.AttributeOptimizer_get_width(self, k)
6865 def set_scaled_value(self, fi, v):
6866 """set_scaled_value(AttributeOptimizer self, FloatIndex fi, IMP::Float v)"""
6867 return _IMP_kernel.AttributeOptimizer_set_scaled_value(self, fi, v)
6870 def get_scaled_value(self, fi):
6871 """get_scaled_value(AttributeOptimizer self, FloatIndex fi) -> double"""
6872 return _IMP_kernel.AttributeOptimizer_get_scaled_value(self, fi)
6875 def get_scaled_derivative(self, fi):
6876 """get_scaled_derivative(AttributeOptimizer self, FloatIndex fi) -> double"""
6877 return _IMP_kernel.AttributeOptimizer_get_scaled_derivative(self, fi)
6880 def clear_range_cache(self):
6881 """clear_range_cache(AttributeOptimizer self)"""
6882 return _IMP_kernel.AttributeOptimizer_clear_range_cache(self)
6886 """__str__(AttributeOptimizer self) -> std::string"""
6887 return _IMP_kernel.AttributeOptimizer___str__(self)
6891 """__repr__(AttributeOptimizer self) -> std::string"""
6892 return _IMP_kernel.AttributeOptimizer___repr__(self)
6897 return _object_cast_to_AttributeOptimizer(o)
6900 def get_type_name(self):
6901 return self.__class__.__name__
6902 def do_show(self, out):
6906 return VersionInfo(self.__module__,
6913 return _object_cast_to_AttributeOptimizer(o)
6915 __swig_destroy__ = _IMP_kernel.delete_AttributeOptimizer
6916 __del__ =
lambda self:
None
6917 def __disown__(self):
6919 _IMP_kernel.disown_AttributeOptimizer(self)
6920 return weakref_proxy(self)
6923 """do_destroy(AttributeOptimizer self)"""
6924 return _IMP_kernel.AttributeOptimizer_do_destroy(self)
6927 def handle_set_has_required_score_states(self, arg0):
6928 """handle_set_has_required_score_states(AttributeOptimizer self, bool arg0)"""
6929 return _IMP_kernel.AttributeOptimizer_handle_set_has_required_score_states(self, arg0)
6932 def do_get_inputs(self):
6933 """do_get_inputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
6934 return _IMP_kernel.AttributeOptimizer_do_get_inputs(self)
6937 def do_get_outputs(self):
6938 """do_get_outputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
6939 return _IMP_kernel.AttributeOptimizer_do_get_outputs(self)
6942 def do_get_interactions(self):
6943 """do_get_interactions(AttributeOptimizer self) -> IMP::ModelObjectsTemps"""
6944 return _IMP_kernel.AttributeOptimizer_do_get_interactions(self)
6947 def do_optimize(self, ns):
6948 """do_optimize(AttributeOptimizer self, unsigned int ns) -> double"""
6949 return _IMP_kernel.AttributeOptimizer_do_optimize(self, ns)
6951 AttributeOptimizer_swigregister = _IMP_kernel.AttributeOptimizer_swigregister
6952 AttributeOptimizer_swigregister(AttributeOptimizer)
6954 class ConfigurationSet(
Object):
6955 """Proxy of C++ IMP::ConfigurationSet class"""
6956 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6958 def __init__(self, *args):
6960 __init__(IMP::ConfigurationSet self, Model m, std::string name) -> ConfigurationSet
6961 __init__(IMP::ConfigurationSet self, Model m) -> ConfigurationSet
6963 this = _IMP_kernel.new_ConfigurationSet(*args)
6965 self.this.append(this)
6969 def save_configuration(self):
6970 """save_configuration(ConfigurationSet self)"""
6971 return _IMP_kernel.ConfigurationSet_save_configuration(self)
6974 def get_number_of_configurations(self):
6975 """get_number_of_configurations(ConfigurationSet self) -> unsigned int"""
6976 return _IMP_kernel.ConfigurationSet_get_number_of_configurations(self)
6979 def load_configuration(self, i):
6980 """load_configuration(ConfigurationSet self, int i)"""
6981 return _IMP_kernel.ConfigurationSet_load_configuration(self, i)
6984 def remove_configuration(self, i):
6985 """remove_configuration(ConfigurationSet self, unsigned int i)"""
6986 return _IMP_kernel.ConfigurationSet_remove_configuration(self, i)
6989 def get_model(self):
6990 """get_model(ConfigurationSet self) -> Model"""
6991 return _IMP_kernel.ConfigurationSet_get_model(self)
6995 """get_version_info(ConfigurationSet self) -> VersionInfo"""
6996 return _IMP_kernel.ConfigurationSet_get_version_info(self)
7000 """__str__(ConfigurationSet self) -> std::string"""
7001 return _IMP_kernel.ConfigurationSet___str__(self)
7005 """__repr__(ConfigurationSet self) -> std::string"""
7006 return _IMP_kernel.ConfigurationSet___repr__(self)
7011 return _object_cast_to_ConfigurationSet(o)
7013 ConfigurationSet_swigregister = _IMP_kernel.ConfigurationSet_swigregister
7014 ConfigurationSet_swigregister(ConfigurationSet)
7016 class SaveToConfigurationSetOptimizerState(OptimizerState):
7017 """Proxy of C++ IMP::SaveToConfigurationSetOptimizerState class"""
7018 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7020 def __init__(self, cs):
7021 """__init__(IMP::SaveToConfigurationSetOptimizerState self, ConfigurationSet cs) -> SaveToConfigurationSetOptimizerState"""
7022 this = _IMP_kernel.new_SaveToConfigurationSetOptimizerState(cs)
7024 self.this.append(this)
7029 """get_version_info(SaveToConfigurationSetOptimizerState self) -> VersionInfo"""
7030 return _IMP_kernel.SaveToConfigurationSetOptimizerState_get_version_info(self)
7034 """__str__(SaveToConfigurationSetOptimizerState self) -> std::string"""
7035 return _IMP_kernel.SaveToConfigurationSetOptimizerState___str__(self)
7039 """__repr__(SaveToConfigurationSetOptimizerState self) -> std::string"""
7040 return _IMP_kernel.SaveToConfigurationSetOptimizerState___repr__(self)
7045 return _object_cast_to_SaveToConfigurationSetOptimizerState(o)
7047 SaveToConfigurationSetOptimizerState_swigregister = _IMP_kernel.SaveToConfigurationSetOptimizerState_swigregister
7048 SaveToConfigurationSetOptimizerState_swigregister(SaveToConfigurationSetOptimizerState)
7050 class Configuration(
Object):
7051 """Proxy of C++ IMP::Configuration class"""
7052 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7054 def __init__(self, *args):
7056 __init__(IMP::Configuration self, Model m, std::string name) -> Configuration
7057 __init__(IMP::Configuration self, Model m) -> Configuration
7058 __init__(IMP::Configuration self, Model m, Configuration base, std::string name) -> Configuration
7059 __init__(IMP::Configuration self, Model m, Configuration base) -> Configuration
7061 this = _IMP_kernel.new_Configuration(*args)
7063 self.this.append(this)
7067 def load_configuration(self):
7068 """load_configuration(Configuration self)"""
7069 return _IMP_kernel.Configuration_load_configuration(self)
7072 def swap_configuration(self):
7073 """swap_configuration(Configuration self)"""
7074 return _IMP_kernel.Configuration_swap_configuration(self)
7078 """get_version_info(Configuration self) -> VersionInfo"""
7079 return _IMP_kernel.Configuration_get_version_info(self)
7083 """__str__(Configuration self) -> std::string"""
7084 return _IMP_kernel.Configuration___str__(self)
7088 """__repr__(Configuration self) -> std::string"""
7089 return _IMP_kernel.Configuration___repr__(self)
7094 return _object_cast_to_Configuration(o)
7096 Configuration_swigregister = _IMP_kernel.Configuration_swigregister
7097 Configuration_swigregister(Configuration)
7100 """Proxy of C++ IMP::Sampler class"""
7101 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7103 def __init__(self, *args):
7105 __init__(IMP::Sampler self, Model m, std::string name) -> Sampler
7106 __init__(IMP::Sampler self, Model m) -> Sampler
7108 if self.__class__ == Sampler:
7112 this = _IMP_kernel.new_Sampler(_self, *args)
7114 self.this.append(this)
7118 if self.__class__ != Sampler:
7119 _director_objects.register(self)
7124 def create_sample(self):
7125 """create_sample(Sampler self) -> ConfigurationSet"""
7126 return _IMP_kernel.Sampler_create_sample(self)
7129 def get_scoring_function(self):
7130 """get_scoring_function(Sampler self) -> ScoringFunction"""
7131 return _IMP_kernel.Sampler_get_scoring_function(self)
7134 def set_scoring_function(self, sf):
7135 """set_scoring_function(Sampler self, _ScoringFunctionAdaptor sf)"""
7136 return _IMP_kernel.Sampler_set_scoring_function(self, sf)
7139 def get_model(self):
7140 """get_model(Sampler self) -> Model"""
7141 return _IMP_kernel.Sampler_get_model(self)
7144 def do_sample(self):
7145 """do_sample(Sampler self) -> ConfigurationSet"""
7146 return _IMP_kernel.Sampler_do_sample(self)
7148 __swig_destroy__ = _IMP_kernel.delete_Sampler
7149 __del__ =
lambda self:
None
7152 """__str__(Sampler self) -> std::string"""
7153 return _IMP_kernel.Sampler___str__(self)
7157 """__repr__(Sampler self) -> std::string"""
7158 return _IMP_kernel.Sampler___repr__(self)
7163 return _object_cast_to_Sampler(o)
7166 def get_type_name(self):
7167 return self.__class__.__name__
7168 def do_show(self, out):
7172 return VersionInfo(self.__module__,
7179 return _object_cast_to_Sampler(o)
7181 def __disown__(self):
7183 _IMP_kernel.disown_Sampler(self)
7184 return weakref_proxy(self)
7187 """do_destroy(Sampler self)"""
7188 return _IMP_kernel.Sampler_do_destroy(self)
7190 Sampler_swigregister = _IMP_kernel.Sampler_swigregister
7191 Sampler_swigregister(Sampler)
7193 class PairModifier(_ParticleInputs, _ParticleOutputs,
Object):
7194 """Proxy of C++ IMP::PairModifier class"""
7195 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7197 def __init__(self, *args):
7199 __init__(IMP::PairModifier self, std::string name) -> PairModifier
7200 __init__(IMP::PairModifier self) -> PairModifier
7202 if self.__class__ == PairModifier:
7206 this = _IMP_kernel.new_PairModifier(_self, *args)
7208 self.this.append(this)
7212 if self.__class__ != PairModifier:
7213 _director_objects.register(self)
7218 def apply_index(self, m, v):
7219 """apply_index(PairModifier self, Model m, IMP::ParticleIndexPair const & v)"""
7220 return _IMP_kernel.PairModifier_apply_index(self, m, v)
7223 def apply_indexes(self, m, o, lower_bound, upper_bound):
7224 """apply_indexes(PairModifier self, Model m, IMP::ParticleIndexPairs const & o, unsigned int lower_bound, unsigned int upper_bound)"""
7225 return _IMP_kernel.PairModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
7228 def apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis):
7229 """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)"""
7230 return _IMP_kernel.PairModifier_apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis)
7234 """__str__(PairModifier self) -> std::string"""
7235 return _IMP_kernel.PairModifier___str__(self)
7239 """__repr__(PairModifier self) -> std::string"""
7240 return _IMP_kernel.PairModifier___repr__(self)
7245 return _object_cast_to_PairModifier(o)
7248 def get_type_name(self):
7249 return self.__class__.__name__
7250 def do_show(self, out):
7254 return VersionInfo(self.__module__,
7261 return _object_cast_to_PairModifier(o)
7263 __swig_destroy__ = _IMP_kernel.delete_PairModifier
7264 __del__ =
lambda self:
None
7265 def __disown__(self):
7267 _IMP_kernel.disown_PairModifier(self)
7268 return weakref_proxy(self)
7270 def do_get_inputs(self, m, pis):
7271 """do_get_inputs(PairModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7272 return _IMP_kernel.PairModifier_do_get_inputs(self, m, pis)
7275 def do_get_outputs(self, m, pis):
7276 """do_get_outputs(PairModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7277 return _IMP_kernel.PairModifier_do_get_outputs(self, m, pis)
7281 """do_destroy(PairModifier self)"""
7282 return _IMP_kernel.PairModifier_do_destroy(self)
7284 PairModifier_swigregister = _IMP_kernel.PairModifier_swigregister
7285 PairModifier_swigregister(PairModifier)
7287 class PairScore(_ParticleInputs,
Object):
7288 """Proxy of C++ IMP::PairScore class"""
7289 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7291 def __init__(self, *args):
7293 __init__(IMP::PairScore self, std::string name) -> PairScore
7294 __init__(IMP::PairScore self) -> PairScore
7296 if self.__class__ == PairScore:
7300 this = _IMP_kernel.new_PairScore(_self, *args)
7302 self.this.append(this)
7306 if self.__class__ != PairScore:
7307 _director_objects.register(self)
7312 def evaluate_index(self, m, vt, da):
7313 """evaluate_index(PairScore self, Model m, IMP::ParticleIndexPair const & vt, DerivativeAccumulator da) -> double"""
7314 return _IMP_kernel.PairScore_evaluate_index(self, m, vt, da)
7317 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
7318 """evaluate_indexes(PairScore self, Model m, IMP::ParticleIndexPairs const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7319 return _IMP_kernel.PairScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
7322 def evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score):
7323 """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"""
7324 return _IMP_kernel.PairScore_evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score)
7327 def evaluate_indexes_delta(self, m, o, da, indexes, score):
7328 """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"""
7329 return _IMP_kernel.PairScore_evaluate_indexes_delta(self, m, o, da, indexes, score)
7332 def evaluate_if_good_index(self, m, vt, da, max):
7333 """evaluate_if_good_index(PairScore self, Model m, IMP::ParticleIndexPair const & vt, DerivativeAccumulator da, double max) -> double"""
7334 return _IMP_kernel.PairScore_evaluate_if_good_index(self, m, vt, da, max)
7337 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
7338 """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"""
7339 return _IMP_kernel.PairScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
7342 def create_current_decomposition(self, m, vt):
7343 """create_current_decomposition(PairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
7344 return _IMP_kernel.PairScore_create_current_decomposition(self, m, vt)
7347 def do_create_current_decomposition(self, m, vt):
7348 """do_create_current_decomposition(PairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
7349 return _IMP_kernel.PairScore_do_create_current_decomposition(self, m, vt)
7351 __swig_destroy__ = _IMP_kernel.delete_PairScore
7352 __del__ =
lambda self:
None
7355 """__str__(PairScore self) -> std::string"""
7356 return _IMP_kernel.PairScore___str__(self)
7360 """__repr__(PairScore self) -> std::string"""
7361 return _IMP_kernel.PairScore___repr__(self)
7366 return _object_cast_to_PairScore(o)
7369 def get_type_name(self):
7370 return self.__class__.__name__
7371 def do_show(self, out):
7375 return VersionInfo(self.__module__,
7382 return _object_cast_to_PairScore(o)
7384 def __disown__(self):
7386 _IMP_kernel.disown_PairScore(self)
7387 return weakref_proxy(self)
7389 def do_get_inputs(self, m, pis):
7390 """do_get_inputs(PairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7391 return _IMP_kernel.PairScore_do_get_inputs(self, m, pis)
7395 """do_destroy(PairScore self)"""
7396 return _IMP_kernel.PairScore_do_destroy(self)
7398 PairScore_swigregister = _IMP_kernel.PairScore_swigregister
7399 PairScore_swigregister(PairScore)
7401 class PairPredicate(_ParticleInputs,
Object):
7402 """Proxy of C++ IMP::PairPredicate class"""
7403 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7405 def __init__(self, *args):
7407 __init__(IMP::PairPredicate self, std::string name) -> PairPredicate
7408 __init__(IMP::PairPredicate self) -> PairPredicate
7410 if self.__class__ == PairPredicate:
7414 this = _IMP_kernel.new_PairPredicate(_self, *args)
7416 self.this.append(this)
7420 if self.__class__ != PairPredicate:
7421 _director_objects.register(self)
7426 def setup_for_get_value_index_in_batch(self, arg0):
7427 """setup_for_get_value_index_in_batch(PairPredicate self, Model arg0)"""
7428 return _IMP_kernel.PairPredicate_setup_for_get_value_index_in_batch(self, arg0)
7431 def get_value_index_in_batch(self, m, vt):
7432 """get_value_index_in_batch(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int"""
7433 return _IMP_kernel.PairPredicate_get_value_index_in_batch(self, m, vt)
7436 def __call__(self, m, vt):
7437 """__call__(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int"""
7438 return _IMP_kernel.PairPredicate___call__(self, m, vt)
7441 def get_value_index(self, *args):
7443 get_value_index(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int
7444 get_value_index(PairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
7446 return _IMP_kernel.PairPredicate_get_value_index(self, *args)
7448 __swig_destroy__ = _IMP_kernel.delete_PairPredicate
7449 __del__ =
lambda self:
None
7452 """__str__(PairPredicate self) -> std::string"""
7453 return _IMP_kernel.PairPredicate___str__(self)
7457 """__repr__(PairPredicate self) -> std::string"""
7458 return _IMP_kernel.PairPredicate___repr__(self)
7463 return _object_cast_to_PairPredicate(o)
7466 def get_type_name(self):
7467 return self.__class__.__name__
7468 def do_show(self, out):
7472 return VersionInfo(self.__module__,
7479 return _object_cast_to_PairPredicate(o)
7481 def __disown__(self):
7483 _IMP_kernel.disown_PairPredicate(self)
7484 return weakref_proxy(self)
7486 def do_get_inputs(self, m, pis):
7487 """do_get_inputs(PairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7488 return _IMP_kernel.PairPredicate_do_get_inputs(self, m, pis)
7492 """do_destroy(PairPredicate self)"""
7493 return _IMP_kernel.PairPredicate_do_destroy(self)
7495 PairPredicate_swigregister = _IMP_kernel.PairPredicate_swigregister
7496 PairPredicate_swigregister(PairPredicate)
7498 class PairContainer(Container):
7499 """Proxy of C++ IMP::PairContainer class"""
7500 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7502 def apply_generic(self, m):
7503 """apply_generic(PairContainer self, PairModifier m)"""
7504 return _IMP_kernel.PairContainer_apply_generic(self, m)
7507 def apply_generic_moved(self, m, moved_pis, reset_pis):
7508 """apply_generic_moved(PairContainer self, PairModifier m, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
7509 return _IMP_kernel.PairContainer_apply_generic_moved(self, m, moved_pis, reset_pis)
7512 def apply(self, sm):
7513 """apply(PairContainer self, PairModifier sm)"""
7514 return _IMP_kernel.PairContainer_apply(self, sm)
7517 def apply_moved(self, sm, moved_pis, reset_pis):
7518 """apply_moved(PairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
7519 return _IMP_kernel.PairContainer_apply_moved(self, sm, moved_pis, reset_pis)
7522 def get_range_indexes(self):
7523 """get_range_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
7524 return _IMP_kernel.PairContainer_get_range_indexes(self)
7527 def get_contents(self):
7528 """get_contents(PairContainer self) -> IMP::ParticleIndexPairs const &"""
7529 return _IMP_kernel.PairContainer_get_contents(self)
7533 """get_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
7534 return _IMP_kernel.PairContainer_get_indexes(self)
7537 def get(self, *args):
7539 get(PairContainer self) -> IMP::ParticlePairsTemp
7540 get(PairContainer self, unsigned int i) -> IMP::ParticlePair
7542 return _IMP_kernel.PairContainer_get(self, *args)
7545 def get_number(self):
7546 """get_number(PairContainer self) -> unsigned int"""
7547 return _IMP_kernel.PairContainer_get_number(self)
7550 def __init__(self, *args):
7552 __init__(IMP::PairContainer self, Model m, std::string name) -> PairContainer
7553 __init__(IMP::PairContainer self, Model m) -> PairContainer
7555 if self.__class__ == PairContainer:
7559 this = _IMP_kernel.new_PairContainer(_self, *args)
7561 self.this.append(this)
7565 if self.__class__ != PairContainer:
7566 _director_objects.register(self)
7571 def do_apply(self, sm):
7572 """do_apply(PairContainer self, PairModifier sm)"""
7573 return _IMP_kernel.PairContainer_do_apply(self, sm)
7576 def do_apply_moved(self, sm, moved_pis, reset_pis):
7577 """do_apply_moved(PairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
7578 return _IMP_kernel.PairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
7581 def do_get_provides_access(self):
7582 """do_get_provides_access(PairContainer self) -> bool"""
7583 return _IMP_kernel.PairContainer_do_get_provides_access(self)
7585 __swig_destroy__ = _IMP_kernel.delete_PairContainer
7586 __del__ =
lambda self:
None
7589 """__str__(PairContainer self) -> std::string"""
7590 return _IMP_kernel.PairContainer___str__(self)
7594 """__repr__(PairContainer self) -> std::string"""
7595 return _IMP_kernel.PairContainer___repr__(self)
7600 return _object_cast_to_PairContainer(o)
7603 def get_type_name(self):
7604 return self.__class__.__name__
7605 def do_show(self, out):
7609 return VersionInfo(self.__module__,
7616 return _object_cast_to_PairContainer(o)
7618 def __disown__(self):
7620 _IMP_kernel.disown_PairContainer(self)
7621 return weakref_proxy(self)
7624 """do_destroy(PairContainer self)"""
7625 return _IMP_kernel.PairContainer_do_destroy(self)
7628 def handle_set_has_required_score_states(self, arg0):
7629 """handle_set_has_required_score_states(PairContainer self, bool arg0)"""
7630 return _IMP_kernel.PairContainer_handle_set_has_required_score_states(self, arg0)
7633 def do_get_inputs(self):
7634 """do_get_inputs(PairContainer self) -> IMP::ModelObjectsTemp"""
7635 return _IMP_kernel.PairContainer_do_get_inputs(self)
7638 def do_get_interactions(self):
7639 """do_get_interactions(PairContainer self) -> IMP::ModelObjectsTemps"""
7640 return _IMP_kernel.PairContainer_do_get_interactions(self)
7643 def do_get_contents_hash(self):
7644 """do_get_contents_hash(PairContainer self) -> std::size_t"""
7645 return _IMP_kernel.PairContainer_do_get_contents_hash(self)
7647 PairContainer_swigregister = _IMP_kernel.PairContainer_swigregister
7648 PairContainer_swigregister(PairContainer)
7650 class _PairContainerAdaptor(_InputAdaptor):
7651 """Proxy of C++ IMP::PairContainerAdaptor class"""
7652 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7653 __repr__ = _swig_repr
7655 def __init__(self, *args):
7657 __init__(IMP::PairContainerAdaptor self) -> _PairContainerAdaptor
7658 __init__(IMP::PairContainerAdaptor self, PairContainer c) -> _PairContainerAdaptor
7659 __init__(IMP::PairContainerAdaptor self, IMP::ParticlePairsTemp const & t) -> _PairContainerAdaptor
7661 this = _IMP_kernel.new__PairContainerAdaptor(*args)
7663 self.this.append(this)
7667 def set_name_if_default(self, name):
7668 """set_name_if_default(_PairContainerAdaptor self, std::string name)"""
7669 return _IMP_kernel._PairContainerAdaptor_set_name_if_default(self, name)
7671 __swig_destroy__ = _IMP_kernel.delete__PairContainerAdaptor
7672 __del__ =
lambda self:
None
7673 _PairContainerAdaptor_swigregister = _IMP_kernel._PairContainerAdaptor_swigregister
7674 _PairContainerAdaptor_swigregister(_PairContainerAdaptor)
7676 class QuadModifier(_ParticleInputs, _ParticleOutputs,
Object):
7677 """Proxy of C++ IMP::QuadModifier class"""
7678 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7680 def __init__(self, *args):
7682 __init__(IMP::QuadModifier self, std::string name) -> QuadModifier
7683 __init__(IMP::QuadModifier self) -> QuadModifier
7685 if self.__class__ == QuadModifier:
7689 this = _IMP_kernel.new_QuadModifier(_self, *args)
7691 self.this.append(this)
7695 if self.__class__ != QuadModifier:
7696 _director_objects.register(self)
7701 def apply_index(self, m, v):
7702 """apply_index(QuadModifier self, Model m, IMP::ParticleIndexQuad const & v)"""
7703 return _IMP_kernel.QuadModifier_apply_index(self, m, v)
7706 def apply_indexes(self, m, o, lower_bound, upper_bound):
7707 """apply_indexes(QuadModifier self, Model m, IMP::ParticleIndexQuads const & o, unsigned int lower_bound, unsigned int upper_bound)"""
7708 return _IMP_kernel.QuadModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
7711 def apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis):
7712 """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)"""
7713 return _IMP_kernel.QuadModifier_apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis)
7717 """__str__(QuadModifier self) -> std::string"""
7718 return _IMP_kernel.QuadModifier___str__(self)
7722 """__repr__(QuadModifier self) -> std::string"""
7723 return _IMP_kernel.QuadModifier___repr__(self)
7728 return _object_cast_to_QuadModifier(o)
7731 def get_type_name(self):
7732 return self.__class__.__name__
7733 def do_show(self, out):
7737 return VersionInfo(self.__module__,
7744 return _object_cast_to_QuadModifier(o)
7746 __swig_destroy__ = _IMP_kernel.delete_QuadModifier
7747 __del__ =
lambda self:
None
7748 def __disown__(self):
7750 _IMP_kernel.disown_QuadModifier(self)
7751 return weakref_proxy(self)
7753 def do_get_inputs(self, m, pis):
7754 """do_get_inputs(QuadModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7755 return _IMP_kernel.QuadModifier_do_get_inputs(self, m, pis)
7758 def do_get_outputs(self, m, pis):
7759 """do_get_outputs(QuadModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7760 return _IMP_kernel.QuadModifier_do_get_outputs(self, m, pis)
7764 """do_destroy(QuadModifier self)"""
7765 return _IMP_kernel.QuadModifier_do_destroy(self)
7767 QuadModifier_swigregister = _IMP_kernel.QuadModifier_swigregister
7768 QuadModifier_swigregister(QuadModifier)
7770 class QuadScore(_ParticleInputs,
Object):
7771 """Proxy of C++ IMP::QuadScore class"""
7772 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7774 def __init__(self, *args):
7776 __init__(IMP::QuadScore self, std::string name) -> QuadScore
7777 __init__(IMP::QuadScore self) -> QuadScore
7779 if self.__class__ == QuadScore:
7783 this = _IMP_kernel.new_QuadScore(_self, *args)
7785 self.this.append(this)
7789 if self.__class__ != QuadScore:
7790 _director_objects.register(self)
7795 def evaluate_index(self, m, vt, da):
7796 """evaluate_index(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt, DerivativeAccumulator da) -> double"""
7797 return _IMP_kernel.QuadScore_evaluate_index(self, m, vt, da)
7800 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
7801 """evaluate_indexes(QuadScore self, Model m, IMP::ParticleIndexQuads const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7802 return _IMP_kernel.QuadScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
7805 def evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score):
7806 """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"""
7807 return _IMP_kernel.QuadScore_evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score)
7810 def evaluate_indexes_delta(self, m, o, da, indexes, score):
7811 """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"""
7812 return _IMP_kernel.QuadScore_evaluate_indexes_delta(self, m, o, da, indexes, score)
7815 def evaluate_if_good_index(self, m, vt, da, max):
7816 """evaluate_if_good_index(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt, DerivativeAccumulator da, double max) -> double"""
7817 return _IMP_kernel.QuadScore_evaluate_if_good_index(self, m, vt, da, max)
7820 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
7821 """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"""
7822 return _IMP_kernel.QuadScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
7825 def create_current_decomposition(self, m, vt):
7826 """create_current_decomposition(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
7827 return _IMP_kernel.QuadScore_create_current_decomposition(self, m, vt)
7830 def do_create_current_decomposition(self, m, vt):
7831 """do_create_current_decomposition(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
7832 return _IMP_kernel.QuadScore_do_create_current_decomposition(self, m, vt)
7834 __swig_destroy__ = _IMP_kernel.delete_QuadScore
7835 __del__ =
lambda self:
None
7838 """__str__(QuadScore self) -> std::string"""
7839 return _IMP_kernel.QuadScore___str__(self)
7843 """__repr__(QuadScore self) -> std::string"""
7844 return _IMP_kernel.QuadScore___repr__(self)
7849 return _object_cast_to_QuadScore(o)
7852 def get_type_name(self):
7853 return self.__class__.__name__
7854 def do_show(self, out):
7858 return VersionInfo(self.__module__,
7865 return _object_cast_to_QuadScore(o)
7867 def __disown__(self):
7869 _IMP_kernel.disown_QuadScore(self)
7870 return weakref_proxy(self)
7872 def do_get_inputs(self, m, pis):
7873 """do_get_inputs(QuadScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7874 return _IMP_kernel.QuadScore_do_get_inputs(self, m, pis)
7878 """do_destroy(QuadScore self)"""
7879 return _IMP_kernel.QuadScore_do_destroy(self)
7881 QuadScore_swigregister = _IMP_kernel.QuadScore_swigregister
7882 QuadScore_swigregister(QuadScore)
7884 class QuadPredicate(_ParticleInputs,
Object):
7885 """Proxy of C++ IMP::QuadPredicate class"""
7886 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7888 def __init__(self, *args):
7890 __init__(IMP::QuadPredicate self, std::string name) -> QuadPredicate
7891 __init__(IMP::QuadPredicate self) -> QuadPredicate
7893 if self.__class__ == QuadPredicate:
7897 this = _IMP_kernel.new_QuadPredicate(_self, *args)
7899 self.this.append(this)
7903 if self.__class__ != QuadPredicate:
7904 _director_objects.register(self)
7909 def setup_for_get_value_index_in_batch(self, arg0):
7910 """setup_for_get_value_index_in_batch(QuadPredicate self, Model arg0)"""
7911 return _IMP_kernel.QuadPredicate_setup_for_get_value_index_in_batch(self, arg0)
7914 def get_value_index_in_batch(self, m, vt):
7915 """get_value_index_in_batch(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int"""
7916 return _IMP_kernel.QuadPredicate_get_value_index_in_batch(self, m, vt)
7919 def __call__(self, m, vt):
7920 """__call__(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int"""
7921 return _IMP_kernel.QuadPredicate___call__(self, m, vt)
7924 def get_value_index(self, *args):
7926 get_value_index(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int
7927 get_value_index(QuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
7929 return _IMP_kernel.QuadPredicate_get_value_index(self, *args)
7931 __swig_destroy__ = _IMP_kernel.delete_QuadPredicate
7932 __del__ =
lambda self:
None
7935 """__str__(QuadPredicate self) -> std::string"""
7936 return _IMP_kernel.QuadPredicate___str__(self)
7940 """__repr__(QuadPredicate self) -> std::string"""
7941 return _IMP_kernel.QuadPredicate___repr__(self)
7946 return _object_cast_to_QuadPredicate(o)
7949 def get_type_name(self):
7950 return self.__class__.__name__
7951 def do_show(self, out):
7955 return VersionInfo(self.__module__,
7962 return _object_cast_to_QuadPredicate(o)
7964 def __disown__(self):
7966 _IMP_kernel.disown_QuadPredicate(self)
7967 return weakref_proxy(self)
7969 def do_get_inputs(self, m, pis):
7970 """do_get_inputs(QuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7971 return _IMP_kernel.QuadPredicate_do_get_inputs(self, m, pis)
7975 """do_destroy(QuadPredicate self)"""
7976 return _IMP_kernel.QuadPredicate_do_destroy(self)
7978 QuadPredicate_swigregister = _IMP_kernel.QuadPredicate_swigregister
7979 QuadPredicate_swigregister(QuadPredicate)
7981 class QuadContainer(Container):
7982 """Proxy of C++ IMP::QuadContainer class"""
7983 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7985 def apply_generic(self, m):
7986 """apply_generic(QuadContainer self, QuadModifier m)"""
7987 return _IMP_kernel.QuadContainer_apply_generic(self, m)
7990 def apply_generic_moved(self, m, moved_pis, reset_pis):
7991 """apply_generic_moved(QuadContainer self, QuadModifier m, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
7992 return _IMP_kernel.QuadContainer_apply_generic_moved(self, m, moved_pis, reset_pis)
7995 def apply(self, sm):
7996 """apply(QuadContainer self, QuadModifier sm)"""
7997 return _IMP_kernel.QuadContainer_apply(self, sm)
8000 def apply_moved(self, sm, moved_pis, reset_pis):
8001 """apply_moved(QuadContainer self, QuadModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
8002 return _IMP_kernel.QuadContainer_apply_moved(self, sm, moved_pis, reset_pis)
8005 def get_range_indexes(self):
8006 """get_range_indexes(QuadContainer self) -> IMP::ParticleIndexQuads"""
8007 return _IMP_kernel.QuadContainer_get_range_indexes(self)
8010 def get_contents(self):
8011 """get_contents(QuadContainer self) -> IMP::ParticleIndexQuads const &"""
8012 return _IMP_kernel.QuadContainer_get_contents(self)
8016 """get_indexes(QuadContainer self) -> IMP::ParticleIndexQuads"""
8017 return _IMP_kernel.QuadContainer_get_indexes(self)
8020 def get(self, *args):
8022 get(QuadContainer self) -> IMP::ParticleQuadsTemp
8023 get(QuadContainer self, unsigned int i) -> IMP::ParticleQuad
8025 return _IMP_kernel.QuadContainer_get(self, *args)
8028 def get_number(self):
8029 """get_number(QuadContainer self) -> unsigned int"""
8030 return _IMP_kernel.QuadContainer_get_number(self)
8033 def __init__(self, *args):
8035 __init__(IMP::QuadContainer self, Model m, std::string name) -> QuadContainer
8036 __init__(IMP::QuadContainer self, Model m) -> QuadContainer
8038 if self.__class__ == QuadContainer:
8042 this = _IMP_kernel.new_QuadContainer(_self, *args)
8044 self.this.append(this)
8048 if self.__class__ != QuadContainer:
8049 _director_objects.register(self)
8054 def do_apply(self, sm):
8055 """do_apply(QuadContainer self, QuadModifier sm)"""
8056 return _IMP_kernel.QuadContainer_do_apply(self, sm)
8059 def do_apply_moved(self, sm, moved_pis, reset_pis):
8060 """do_apply_moved(QuadContainer self, QuadModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
8061 return _IMP_kernel.QuadContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
8064 def do_get_provides_access(self):
8065 """do_get_provides_access(QuadContainer self) -> bool"""
8066 return _IMP_kernel.QuadContainer_do_get_provides_access(self)
8068 __swig_destroy__ = _IMP_kernel.delete_QuadContainer
8069 __del__ =
lambda self:
None
8072 """__str__(QuadContainer self) -> std::string"""
8073 return _IMP_kernel.QuadContainer___str__(self)
8077 """__repr__(QuadContainer self) -> std::string"""
8078 return _IMP_kernel.QuadContainer___repr__(self)
8083 return _object_cast_to_QuadContainer(o)
8086 def get_type_name(self):
8087 return self.__class__.__name__
8088 def do_show(self, out):
8092 return VersionInfo(self.__module__,
8099 return _object_cast_to_QuadContainer(o)
8101 def __disown__(self):
8103 _IMP_kernel.disown_QuadContainer(self)
8104 return weakref_proxy(self)
8107 """do_destroy(QuadContainer self)"""
8108 return _IMP_kernel.QuadContainer_do_destroy(self)
8111 def handle_set_has_required_score_states(self, arg0):
8112 """handle_set_has_required_score_states(QuadContainer self, bool arg0)"""
8113 return _IMP_kernel.QuadContainer_handle_set_has_required_score_states(self, arg0)
8116 def do_get_inputs(self):
8117 """do_get_inputs(QuadContainer self) -> IMP::ModelObjectsTemp"""
8118 return _IMP_kernel.QuadContainer_do_get_inputs(self)
8121 def do_get_interactions(self):
8122 """do_get_interactions(QuadContainer self) -> IMP::ModelObjectsTemps"""
8123 return _IMP_kernel.QuadContainer_do_get_interactions(self)
8126 def do_get_contents_hash(self):
8127 """do_get_contents_hash(QuadContainer self) -> std::size_t"""
8128 return _IMP_kernel.QuadContainer_do_get_contents_hash(self)
8130 QuadContainer_swigregister = _IMP_kernel.QuadContainer_swigregister
8131 QuadContainer_swigregister(QuadContainer)
8133 class _QuadContainerAdaptor(_InputAdaptor):
8134 """Proxy of C++ IMP::QuadContainerAdaptor class"""
8135 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8136 __repr__ = _swig_repr
8138 def __init__(self, *args):
8140 __init__(IMP::QuadContainerAdaptor self) -> _QuadContainerAdaptor
8141 __init__(IMP::QuadContainerAdaptor self, QuadContainer c) -> _QuadContainerAdaptor
8142 __init__(IMP::QuadContainerAdaptor self, IMP::ParticleQuadsTemp const & t) -> _QuadContainerAdaptor
8144 this = _IMP_kernel.new__QuadContainerAdaptor(*args)
8146 self.this.append(this)
8150 def set_name_if_default(self, name):
8151 """set_name_if_default(_QuadContainerAdaptor self, std::string name)"""
8152 return _IMP_kernel._QuadContainerAdaptor_set_name_if_default(self, name)
8154 __swig_destroy__ = _IMP_kernel.delete__QuadContainerAdaptor
8155 __del__ =
lambda self:
None
8156 _QuadContainerAdaptor_swigregister = _IMP_kernel._QuadContainerAdaptor_swigregister
8157 _QuadContainerAdaptor_swigregister(_QuadContainerAdaptor)
8159 class SingletonModifier(_ParticleInputs, _ParticleOutputs,
Object):
8160 """Proxy of C++ IMP::SingletonModifier class"""
8161 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8163 def __init__(self, *args):
8165 __init__(IMP::SingletonModifier self, std::string name) -> SingletonModifier
8166 __init__(IMP::SingletonModifier self) -> SingletonModifier
8168 if self.__class__ == SingletonModifier:
8172 this = _IMP_kernel.new_SingletonModifier(_self, *args)
8174 self.this.append(this)
8178 if self.__class__ != SingletonModifier:
8179 _director_objects.register(self)
8184 def apply_index(self, m, v):
8185 """apply_index(SingletonModifier self, Model m, ParticleIndex v)"""
8186 return _IMP_kernel.SingletonModifier_apply_index(self, m, v)
8189 def apply_indexes(self, m, o, lower_bound, upper_bound):
8190 """apply_indexes(SingletonModifier self, Model m, IMP::ParticleIndexes const & o, unsigned int lower_bound, unsigned int upper_bound)"""
8191 return _IMP_kernel.SingletonModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
8194 def apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis):
8195 """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)"""
8196 return _IMP_kernel.SingletonModifier_apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis)
8200 """__str__(SingletonModifier self) -> std::string"""
8201 return _IMP_kernel.SingletonModifier___str__(self)
8205 """__repr__(SingletonModifier self) -> std::string"""
8206 return _IMP_kernel.SingletonModifier___repr__(self)
8211 return _object_cast_to_SingletonModifier(o)
8214 def get_type_name(self):
8215 return self.__class__.__name__
8216 def do_show(self, out):
8220 return VersionInfo(self.__module__,
8227 return _object_cast_to_SingletonModifier(o)
8229 __swig_destroy__ = _IMP_kernel.delete_SingletonModifier
8230 __del__ =
lambda self:
None
8231 def __disown__(self):
8233 _IMP_kernel.disown_SingletonModifier(self)
8234 return weakref_proxy(self)
8236 def do_get_inputs(self, m, pis):
8237 """do_get_inputs(SingletonModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8238 return _IMP_kernel.SingletonModifier_do_get_inputs(self, m, pis)
8241 def do_get_outputs(self, m, pis):
8242 """do_get_outputs(SingletonModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8243 return _IMP_kernel.SingletonModifier_do_get_outputs(self, m, pis)
8247 """do_destroy(SingletonModifier self)"""
8248 return _IMP_kernel.SingletonModifier_do_destroy(self)
8250 SingletonModifier_swigregister = _IMP_kernel.SingletonModifier_swigregister
8251 SingletonModifier_swigregister(SingletonModifier)
8253 class SingletonScore(_ParticleInputs,
Object):
8254 """Proxy of C++ IMP::SingletonScore class"""
8255 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8257 def __init__(self, *args):
8259 __init__(IMP::SingletonScore self, std::string name) -> SingletonScore
8260 __init__(IMP::SingletonScore self) -> SingletonScore
8262 if self.__class__ == SingletonScore:
8266 this = _IMP_kernel.new_SingletonScore(_self, *args)
8268 self.this.append(this)
8272 if self.__class__ != SingletonScore:
8273 _director_objects.register(self)
8278 def evaluate_index(self, m, vt, da):
8279 """evaluate_index(SingletonScore self, Model m, ParticleIndex vt, DerivativeAccumulator da) -> double"""
8280 return _IMP_kernel.SingletonScore_evaluate_index(self, m, vt, da)
8283 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
8284 """evaluate_indexes(SingletonScore self, Model m, IMP::ParticleIndexes const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
8285 return _IMP_kernel.SingletonScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
8288 def evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score):
8289 """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"""
8290 return _IMP_kernel.SingletonScore_evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score)
8293 def evaluate_indexes_delta(self, m, o, da, indexes, score):
8294 """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"""
8295 return _IMP_kernel.SingletonScore_evaluate_indexes_delta(self, m, o, da, indexes, score)
8298 def evaluate_if_good_index(self, m, vt, da, max):
8299 """evaluate_if_good_index(SingletonScore self, Model m, ParticleIndex vt, DerivativeAccumulator da, double max) -> double"""
8300 return _IMP_kernel.SingletonScore_evaluate_if_good_index(self, m, vt, da, max)
8303 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
8304 """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"""
8305 return _IMP_kernel.SingletonScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
8308 def create_current_decomposition(self, m, vt):
8309 """create_current_decomposition(SingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
8310 return _IMP_kernel.SingletonScore_create_current_decomposition(self, m, vt)
8313 def do_create_current_decomposition(self, m, vt):
8314 """do_create_current_decomposition(SingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
8315 return _IMP_kernel.SingletonScore_do_create_current_decomposition(self, m, vt)
8317 __swig_destroy__ = _IMP_kernel.delete_SingletonScore
8318 __del__ =
lambda self:
None
8321 """__str__(SingletonScore self) -> std::string"""
8322 return _IMP_kernel.SingletonScore___str__(self)
8326 """__repr__(SingletonScore self) -> std::string"""
8327 return _IMP_kernel.SingletonScore___repr__(self)
8332 return _object_cast_to_SingletonScore(o)
8335 def get_type_name(self):
8336 return self.__class__.__name__
8337 def do_show(self, out):
8341 return VersionInfo(self.__module__,
8348 return _object_cast_to_SingletonScore(o)
8350 def __disown__(self):
8352 _IMP_kernel.disown_SingletonScore(self)
8353 return weakref_proxy(self)
8355 def do_get_inputs(self, m, pis):
8356 """do_get_inputs(SingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8357 return _IMP_kernel.SingletonScore_do_get_inputs(self, m, pis)
8361 """do_destroy(SingletonScore self)"""
8362 return _IMP_kernel.SingletonScore_do_destroy(self)
8364 SingletonScore_swigregister = _IMP_kernel.SingletonScore_swigregister
8365 SingletonScore_swigregister(SingletonScore)
8367 class SingletonPredicate(_ParticleInputs,
Object):
8368 """Proxy of C++ IMP::SingletonPredicate class"""
8369 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8371 def __init__(self, *args):
8373 __init__(IMP::SingletonPredicate self, std::string name) -> SingletonPredicate
8374 __init__(IMP::SingletonPredicate self) -> SingletonPredicate
8376 if self.__class__ == SingletonPredicate:
8380 this = _IMP_kernel.new_SingletonPredicate(_self, *args)
8382 self.this.append(this)
8386 if self.__class__ != SingletonPredicate:
8387 _director_objects.register(self)
8392 def setup_for_get_value_index_in_batch(self, arg0):
8393 """setup_for_get_value_index_in_batch(SingletonPredicate self, Model arg0)"""
8394 return _IMP_kernel.SingletonPredicate_setup_for_get_value_index_in_batch(self, arg0)
8397 def get_value_index_in_batch(self, m, vt):
8398 """get_value_index_in_batch(SingletonPredicate self, Model m, ParticleIndex vt) -> int"""
8399 return _IMP_kernel.SingletonPredicate_get_value_index_in_batch(self, m, vt)
8402 def __call__(self, m, vt):
8403 """__call__(SingletonPredicate self, Model m, ParticleIndex vt) -> int"""
8404 return _IMP_kernel.SingletonPredicate___call__(self, m, vt)
8407 def get_value_index(self, *args):
8409 get_value_index(SingletonPredicate self, Model m, ParticleIndex vt) -> int
8410 get_value_index(SingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
8412 return _IMP_kernel.SingletonPredicate_get_value_index(self, *args)
8414 __swig_destroy__ = _IMP_kernel.delete_SingletonPredicate
8415 __del__ =
lambda self:
None
8418 """__str__(SingletonPredicate self) -> std::string"""
8419 return _IMP_kernel.SingletonPredicate___str__(self)
8423 """__repr__(SingletonPredicate self) -> std::string"""
8424 return _IMP_kernel.SingletonPredicate___repr__(self)
8429 return _object_cast_to_SingletonPredicate(o)
8432 def get_type_name(self):
8433 return self.__class__.__name__
8434 def do_show(self, out):
8438 return VersionInfo(self.__module__,
8445 return _object_cast_to_SingletonPredicate(o)
8447 def __disown__(self):
8449 _IMP_kernel.disown_SingletonPredicate(self)
8450 return weakref_proxy(self)
8452 def do_get_inputs(self, m, pis):
8453 """do_get_inputs(SingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8454 return _IMP_kernel.SingletonPredicate_do_get_inputs(self, m, pis)
8458 """do_destroy(SingletonPredicate self)"""
8459 return _IMP_kernel.SingletonPredicate_do_destroy(self)
8461 SingletonPredicate_swigregister = _IMP_kernel.SingletonPredicate_swigregister
8462 SingletonPredicate_swigregister(SingletonPredicate)
8464 class SingletonContainer(Container):
8465 """Proxy of C++ IMP::SingletonContainer class"""
8466 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8468 def apply_generic(self, m):
8469 """apply_generic(SingletonContainer self, SingletonModifier m)"""
8470 return _IMP_kernel.SingletonContainer_apply_generic(self, m)
8473 def apply_generic_moved(self, m, moved_pis, reset_pis):
8474 """apply_generic_moved(SingletonContainer self, SingletonModifier m, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
8475 return _IMP_kernel.SingletonContainer_apply_generic_moved(self, m, moved_pis, reset_pis)
8478 def apply(self, sm):
8479 """apply(SingletonContainer self, SingletonModifier sm)"""
8480 return _IMP_kernel.SingletonContainer_apply(self, sm)
8483 def apply_moved(self, sm, moved_pis, reset_pis):
8484 """apply_moved(SingletonContainer self, SingletonModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
8485 return _IMP_kernel.SingletonContainer_apply_moved(self, sm, moved_pis, reset_pis)
8488 def get_range_indexes(self):
8489 """get_range_indexes(SingletonContainer self) -> IMP::ParticleIndexes"""
8490 return _IMP_kernel.SingletonContainer_get_range_indexes(self)
8493 def get_contents(self):
8494 """get_contents(SingletonContainer self) -> IMP::ParticleIndexes const &"""
8495 return _IMP_kernel.SingletonContainer_get_contents(self)
8499 """get_indexes(SingletonContainer self) -> IMP::ParticleIndexes"""
8500 return _IMP_kernel.SingletonContainer_get_indexes(self)
8503 def get(self, *args):
8505 get(SingletonContainer self) -> IMP::ParticlesTemp
8506 get(SingletonContainer self, unsigned int i) -> Particle
8508 return _IMP_kernel.SingletonContainer_get(self, *args)
8511 def get_number(self):
8512 """get_number(SingletonContainer self) -> unsigned int"""
8513 return _IMP_kernel.SingletonContainer_get_number(self)
8516 def __init__(self, *args):
8518 __init__(IMP::SingletonContainer self, Model m, std::string name) -> SingletonContainer
8519 __init__(IMP::SingletonContainer self, Model m) -> SingletonContainer
8521 if self.__class__ == SingletonContainer:
8525 this = _IMP_kernel.new_SingletonContainer(_self, *args)
8527 self.this.append(this)
8531 if self.__class__ != SingletonContainer:
8532 _director_objects.register(self)
8537 def do_apply(self, sm):
8538 """do_apply(SingletonContainer self, SingletonModifier sm)"""
8539 return _IMP_kernel.SingletonContainer_do_apply(self, sm)
8542 def do_apply_moved(self, sm, moved_pis, reset_pis):
8543 """do_apply_moved(SingletonContainer self, SingletonModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
8544 return _IMP_kernel.SingletonContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
8547 def do_get_provides_access(self):
8548 """do_get_provides_access(SingletonContainer self) -> bool"""
8549 return _IMP_kernel.SingletonContainer_do_get_provides_access(self)
8551 __swig_destroy__ = _IMP_kernel.delete_SingletonContainer
8552 __del__ =
lambda self:
None
8555 """__str__(SingletonContainer self) -> std::string"""
8556 return _IMP_kernel.SingletonContainer___str__(self)
8560 """__repr__(SingletonContainer self) -> std::string"""
8561 return _IMP_kernel.SingletonContainer___repr__(self)
8566 return _object_cast_to_SingletonContainer(o)
8569 def get_type_name(self):
8570 return self.__class__.__name__
8571 def do_show(self, out):
8575 return VersionInfo(self.__module__,
8582 return _object_cast_to_SingletonContainer(o)
8584 def __disown__(self):
8586 _IMP_kernel.disown_SingletonContainer(self)
8587 return weakref_proxy(self)
8590 """do_destroy(SingletonContainer self)"""
8591 return _IMP_kernel.SingletonContainer_do_destroy(self)
8594 def handle_set_has_required_score_states(self, arg0):
8595 """handle_set_has_required_score_states(SingletonContainer self, bool arg0)"""
8596 return _IMP_kernel.SingletonContainer_handle_set_has_required_score_states(self, arg0)
8599 def do_get_inputs(self):
8600 """do_get_inputs(SingletonContainer self) -> IMP::ModelObjectsTemp"""
8601 return _IMP_kernel.SingletonContainer_do_get_inputs(self)
8604 def do_get_interactions(self):
8605 """do_get_interactions(SingletonContainer self) -> IMP::ModelObjectsTemps"""
8606 return _IMP_kernel.SingletonContainer_do_get_interactions(self)
8609 def do_get_contents_hash(self):
8610 """do_get_contents_hash(SingletonContainer self) -> std::size_t"""
8611 return _IMP_kernel.SingletonContainer_do_get_contents_hash(self)
8613 SingletonContainer_swigregister = _IMP_kernel.SingletonContainer_swigregister
8614 SingletonContainer_swigregister(SingletonContainer)
8616 class _SingletonContainerAdaptor(_InputAdaptor):
8617 """Proxy of C++ IMP::SingletonContainerAdaptor class"""
8618 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8619 __repr__ = _swig_repr
8621 def __init__(self, *args):
8623 __init__(IMP::SingletonContainerAdaptor self) -> _SingletonContainerAdaptor
8624 __init__(IMP::SingletonContainerAdaptor self, SingletonContainer c) -> _SingletonContainerAdaptor
8625 __init__(IMP::SingletonContainerAdaptor self, IMP::ParticlesTemp const & t) -> _SingletonContainerAdaptor
8627 this = _IMP_kernel.new__SingletonContainerAdaptor(*args)
8629 self.this.append(this)
8633 def set_name_if_default(self, name):
8634 """set_name_if_default(_SingletonContainerAdaptor self, std::string name)"""
8635 return _IMP_kernel._SingletonContainerAdaptor_set_name_if_default(self, name)
8637 __swig_destroy__ = _IMP_kernel.delete__SingletonContainerAdaptor
8638 __del__ =
lambda self:
None
8639 _SingletonContainerAdaptor_swigregister = _IMP_kernel._SingletonContainerAdaptor_swigregister
8640 _SingletonContainerAdaptor_swigregister(_SingletonContainerAdaptor)
8642 class TripletModifier(_ParticleInputs, _ParticleOutputs,
Object):
8643 """Proxy of C++ IMP::TripletModifier class"""
8644 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8646 def __init__(self, *args):
8648 __init__(IMP::TripletModifier self, std::string name) -> TripletModifier
8649 __init__(IMP::TripletModifier self) -> TripletModifier
8651 if self.__class__ == TripletModifier:
8655 this = _IMP_kernel.new_TripletModifier(_self, *args)
8657 self.this.append(this)
8661 if self.__class__ != TripletModifier:
8662 _director_objects.register(self)
8667 def apply_index(self, m, v):
8668 """apply_index(TripletModifier self, Model m, IMP::ParticleIndexTriplet const & v)"""
8669 return _IMP_kernel.TripletModifier_apply_index(self, m, v)
8672 def apply_indexes(self, m, o, lower_bound, upper_bound):
8673 """apply_indexes(TripletModifier self, Model m, IMP::ParticleIndexTriplets const & o, unsigned int lower_bound, unsigned int upper_bound)"""
8674 return _IMP_kernel.TripletModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
8677 def apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis):
8678 """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)"""
8679 return _IMP_kernel.TripletModifier_apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis)
8683 """__str__(TripletModifier self) -> std::string"""
8684 return _IMP_kernel.TripletModifier___str__(self)
8688 """__repr__(TripletModifier self) -> std::string"""
8689 return _IMP_kernel.TripletModifier___repr__(self)
8694 return _object_cast_to_TripletModifier(o)
8697 def get_type_name(self):
8698 return self.__class__.__name__
8699 def do_show(self, out):
8703 return VersionInfo(self.__module__,
8710 return _object_cast_to_TripletModifier(o)
8712 __swig_destroy__ = _IMP_kernel.delete_TripletModifier
8713 __del__ =
lambda self:
None
8714 def __disown__(self):
8716 _IMP_kernel.disown_TripletModifier(self)
8717 return weakref_proxy(self)
8719 def do_get_inputs(self, m, pis):
8720 """do_get_inputs(TripletModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8721 return _IMP_kernel.TripletModifier_do_get_inputs(self, m, pis)
8724 def do_get_outputs(self, m, pis):
8725 """do_get_outputs(TripletModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8726 return _IMP_kernel.TripletModifier_do_get_outputs(self, m, pis)
8730 """do_destroy(TripletModifier self)"""
8731 return _IMP_kernel.TripletModifier_do_destroy(self)
8733 TripletModifier_swigregister = _IMP_kernel.TripletModifier_swigregister
8734 TripletModifier_swigregister(TripletModifier)
8736 class TripletScore(_ParticleInputs,
Object):
8737 """Proxy of C++ IMP::TripletScore class"""
8738 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8740 def __init__(self, *args):
8742 __init__(IMP::TripletScore self, std::string name) -> TripletScore
8743 __init__(IMP::TripletScore self) -> TripletScore
8745 if self.__class__ == TripletScore:
8749 this = _IMP_kernel.new_TripletScore(_self, *args)
8751 self.this.append(this)
8755 if self.__class__ != TripletScore:
8756 _director_objects.register(self)
8761 def evaluate_index(self, m, vt, da):
8762 """evaluate_index(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt, DerivativeAccumulator da) -> double"""
8763 return _IMP_kernel.TripletScore_evaluate_index(self, m, vt, da)
8766 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
8767 """evaluate_indexes(TripletScore self, Model m, IMP::ParticleIndexTriplets const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
8768 return _IMP_kernel.TripletScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
8771 def evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score):
8772 """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"""
8773 return _IMP_kernel.TripletScore_evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score)
8776 def evaluate_indexes_delta(self, m, o, da, indexes, score):
8777 """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"""
8778 return _IMP_kernel.TripletScore_evaluate_indexes_delta(self, m, o, da, indexes, score)
8781 def evaluate_if_good_index(self, m, vt, da, max):
8782 """evaluate_if_good_index(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt, DerivativeAccumulator da, double max) -> double"""
8783 return _IMP_kernel.TripletScore_evaluate_if_good_index(self, m, vt, da, max)
8786 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
8787 """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"""
8788 return _IMP_kernel.TripletScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
8791 def create_current_decomposition(self, m, vt):
8792 """create_current_decomposition(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
8793 return _IMP_kernel.TripletScore_create_current_decomposition(self, m, vt)
8796 def do_create_current_decomposition(self, m, vt):
8797 """do_create_current_decomposition(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
8798 return _IMP_kernel.TripletScore_do_create_current_decomposition(self, m, vt)
8800 __swig_destroy__ = _IMP_kernel.delete_TripletScore
8801 __del__ =
lambda self:
None
8804 """__str__(TripletScore self) -> std::string"""
8805 return _IMP_kernel.TripletScore___str__(self)
8809 """__repr__(TripletScore self) -> std::string"""
8810 return _IMP_kernel.TripletScore___repr__(self)
8815 return _object_cast_to_TripletScore(o)
8818 def get_type_name(self):
8819 return self.__class__.__name__
8820 def do_show(self, out):
8824 return VersionInfo(self.__module__,
8831 return _object_cast_to_TripletScore(o)
8833 def __disown__(self):
8835 _IMP_kernel.disown_TripletScore(self)
8836 return weakref_proxy(self)
8838 def do_get_inputs(self, m, pis):
8839 """do_get_inputs(TripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8840 return _IMP_kernel.TripletScore_do_get_inputs(self, m, pis)
8844 """do_destroy(TripletScore self)"""
8845 return _IMP_kernel.TripletScore_do_destroy(self)
8847 TripletScore_swigregister = _IMP_kernel.TripletScore_swigregister
8848 TripletScore_swigregister(TripletScore)
8850 class TripletPredicate(_ParticleInputs,
Object):
8851 """Proxy of C++ IMP::TripletPredicate class"""
8852 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8854 def __init__(self, *args):
8856 __init__(IMP::TripletPredicate self, std::string name) -> TripletPredicate
8857 __init__(IMP::TripletPredicate self) -> TripletPredicate
8859 if self.__class__ == TripletPredicate:
8863 this = _IMP_kernel.new_TripletPredicate(_self, *args)
8865 self.this.append(this)
8869 if self.__class__ != TripletPredicate:
8870 _director_objects.register(self)
8875 def setup_for_get_value_index_in_batch(self, arg0):
8876 """setup_for_get_value_index_in_batch(TripletPredicate self, Model arg0)"""
8877 return _IMP_kernel.TripletPredicate_setup_for_get_value_index_in_batch(self, arg0)
8880 def get_value_index_in_batch(self, m, vt):
8881 """get_value_index_in_batch(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int"""
8882 return _IMP_kernel.TripletPredicate_get_value_index_in_batch(self, m, vt)
8885 def __call__(self, m, vt):
8886 """__call__(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int"""
8887 return _IMP_kernel.TripletPredicate___call__(self, m, vt)
8890 def get_value_index(self, *args):
8892 get_value_index(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int
8893 get_value_index(TripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
8895 return _IMP_kernel.TripletPredicate_get_value_index(self, *args)
8897 __swig_destroy__ = _IMP_kernel.delete_TripletPredicate
8898 __del__ =
lambda self:
None
8901 """__str__(TripletPredicate self) -> std::string"""
8902 return _IMP_kernel.TripletPredicate___str__(self)
8906 """__repr__(TripletPredicate self) -> std::string"""
8907 return _IMP_kernel.TripletPredicate___repr__(self)
8912 return _object_cast_to_TripletPredicate(o)
8915 def get_type_name(self):
8916 return self.__class__.__name__
8917 def do_show(self, out):
8921 return VersionInfo(self.__module__,
8928 return _object_cast_to_TripletPredicate(o)
8930 def __disown__(self):
8932 _IMP_kernel.disown_TripletPredicate(self)
8933 return weakref_proxy(self)
8935 def do_get_inputs(self, m, pis):
8936 """do_get_inputs(TripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8937 return _IMP_kernel.TripletPredicate_do_get_inputs(self, m, pis)
8941 """do_destroy(TripletPredicate self)"""
8942 return _IMP_kernel.TripletPredicate_do_destroy(self)
8944 TripletPredicate_swigregister = _IMP_kernel.TripletPredicate_swigregister
8945 TripletPredicate_swigregister(TripletPredicate)
8947 class TripletContainer(Container):
8948 """Proxy of C++ IMP::TripletContainer class"""
8949 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8951 def apply_generic(self, m):
8952 """apply_generic(TripletContainer self, TripletModifier m)"""
8953 return _IMP_kernel.TripletContainer_apply_generic(self, m)
8956 def apply_generic_moved(self, m, moved_pis, reset_pis):
8957 """apply_generic_moved(TripletContainer self, TripletModifier m, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
8958 return _IMP_kernel.TripletContainer_apply_generic_moved(self, m, moved_pis, reset_pis)
8961 def apply(self, sm):
8962 """apply(TripletContainer self, TripletModifier sm)"""
8963 return _IMP_kernel.TripletContainer_apply(self, sm)
8966 def apply_moved(self, sm, moved_pis, reset_pis):
8967 """apply_moved(TripletContainer self, TripletModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
8968 return _IMP_kernel.TripletContainer_apply_moved(self, sm, moved_pis, reset_pis)
8971 def get_range_indexes(self):
8972 """get_range_indexes(TripletContainer self) -> IMP::ParticleIndexTriplets"""
8973 return _IMP_kernel.TripletContainer_get_range_indexes(self)
8976 def get_contents(self):
8977 """get_contents(TripletContainer self) -> IMP::ParticleIndexTriplets const &"""
8978 return _IMP_kernel.TripletContainer_get_contents(self)
8982 """get_indexes(TripletContainer self) -> IMP::ParticleIndexTriplets"""
8983 return _IMP_kernel.TripletContainer_get_indexes(self)
8986 def get(self, *args):
8988 get(TripletContainer self) -> IMP::ParticleTripletsTemp
8989 get(TripletContainer self, unsigned int i) -> IMP::ParticleTriplet
8991 return _IMP_kernel.TripletContainer_get(self, *args)
8994 def get_number(self):
8995 """get_number(TripletContainer self) -> unsigned int"""
8996 return _IMP_kernel.TripletContainer_get_number(self)
8999 def __init__(self, *args):
9001 __init__(IMP::TripletContainer self, Model m, std::string name) -> TripletContainer
9002 __init__(IMP::TripletContainer self, Model m) -> TripletContainer
9004 if self.__class__ == TripletContainer:
9008 this = _IMP_kernel.new_TripletContainer(_self, *args)
9010 self.this.append(this)
9014 if self.__class__ != TripletContainer:
9015 _director_objects.register(self)
9020 def do_apply(self, sm):
9021 """do_apply(TripletContainer self, TripletModifier sm)"""
9022 return _IMP_kernel.TripletContainer_do_apply(self, sm)
9025 def do_apply_moved(self, sm, moved_pis, reset_pis):
9026 """do_apply_moved(TripletContainer self, TripletModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
9027 return _IMP_kernel.TripletContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
9030 def do_get_provides_access(self):
9031 """do_get_provides_access(TripletContainer self) -> bool"""
9032 return _IMP_kernel.TripletContainer_do_get_provides_access(self)
9034 __swig_destroy__ = _IMP_kernel.delete_TripletContainer
9035 __del__ =
lambda self:
None
9038 """__str__(TripletContainer self) -> std::string"""
9039 return _IMP_kernel.TripletContainer___str__(self)
9043 """__repr__(TripletContainer self) -> std::string"""
9044 return _IMP_kernel.TripletContainer___repr__(self)
9049 return _object_cast_to_TripletContainer(o)
9052 def get_type_name(self):
9053 return self.__class__.__name__
9054 def do_show(self, out):
9058 return VersionInfo(self.__module__,
9065 return _object_cast_to_TripletContainer(o)
9067 def __disown__(self):
9069 _IMP_kernel.disown_TripletContainer(self)
9070 return weakref_proxy(self)
9073 """do_destroy(TripletContainer self)"""
9074 return _IMP_kernel.TripletContainer_do_destroy(self)
9077 def handle_set_has_required_score_states(self, arg0):
9078 """handle_set_has_required_score_states(TripletContainer self, bool arg0)"""
9079 return _IMP_kernel.TripletContainer_handle_set_has_required_score_states(self, arg0)
9082 def do_get_inputs(self):
9083 """do_get_inputs(TripletContainer self) -> IMP::ModelObjectsTemp"""
9084 return _IMP_kernel.TripletContainer_do_get_inputs(self)
9087 def do_get_interactions(self):
9088 """do_get_interactions(TripletContainer self) -> IMP::ModelObjectsTemps"""
9089 return _IMP_kernel.TripletContainer_do_get_interactions(self)
9092 def do_get_contents_hash(self):
9093 """do_get_contents_hash(TripletContainer self) -> std::size_t"""
9094 return _IMP_kernel.TripletContainer_do_get_contents_hash(self)
9096 TripletContainer_swigregister = _IMP_kernel.TripletContainer_swigregister
9097 TripletContainer_swigregister(TripletContainer)
9099 class _TripletContainerAdaptor(_InputAdaptor):
9100 """Proxy of C++ IMP::TripletContainerAdaptor class"""
9101 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9102 __repr__ = _swig_repr
9104 def __init__(self, *args):
9106 __init__(IMP::TripletContainerAdaptor self) -> _TripletContainerAdaptor
9107 __init__(IMP::TripletContainerAdaptor self, TripletContainer c) -> _TripletContainerAdaptor
9108 __init__(IMP::TripletContainerAdaptor self, IMP::ParticleTripletsTemp const & t) -> _TripletContainerAdaptor
9110 this = _IMP_kernel.new__TripletContainerAdaptor(*args)
9112 self.this.append(this)
9116 def set_name_if_default(self, name):
9117 """set_name_if_default(_TripletContainerAdaptor self, std::string name)"""
9118 return _IMP_kernel._TripletContainerAdaptor_set_name_if_default(self, name)
9120 __swig_destroy__ = _IMP_kernel.delete__TripletContainerAdaptor
9121 __del__ =
lambda self:
None
9122 _TripletContainerAdaptor_swigregister = _IMP_kernel._TripletContainerAdaptor_swigregister
9123 _TripletContainerAdaptor_swigregister(_TripletContainerAdaptor)
9127 """write_particles_to_buffer(IMP::ParticlesTemp const & particles, IMP::FloatKeys const & keys) -> IMP::Vector< char >"""
9128 return _IMP_kernel.write_particles_to_buffer(particles, keys)
9131 """read_particles_from_buffer(IMP::Vector< char > const & buffer, IMP::ParticlesTemp const & particles, IMP::FloatKeys const & keys)"""
9132 return _IMP_kernel.read_particles_from_buffer(buffer, particles, keys)
9135 """get_particles(Model m, IMP::ParticleIndexes const & ps) -> IMP::ParticlesTemp"""
9136 return _IMP_kernel.get_particles(m, ps)
9140 get_indexes(IMP::ParticlesTemp const & ps) -> IMP::ParticleIndexes
9141 get_indexes(IMP::ParticlePairsTemp const & ps) -> IMP::ParticleIndexPairs
9143 return _IMP_kernel.get_indexes(*args)
9144 class _ParticleIndexAdaptor(object):
9145 """Proxy of C++ IMP::ParticleIndexAdaptor class"""
9146 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9147 __repr__ = _swig_repr
9149 def __init__(self, *args):
9151 __init__(IMP::ParticleIndexAdaptor self, Particle p) -> _ParticleIndexAdaptor
9152 __init__(IMP::ParticleIndexAdaptor self, ParticleIndex pi) -> _ParticleIndexAdaptor
9153 __init__(IMP::ParticleIndexAdaptor self, Decorator d) -> _ParticleIndexAdaptor
9155 this = _IMP_kernel.new__ParticleIndexAdaptor(*args)
9157 self.this.append(this)
9160 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexAdaptor
9161 __del__ =
lambda self:
None
9162 _ParticleIndexAdaptor_swigregister = _IMP_kernel._ParticleIndexAdaptor_swigregister
9163 _ParticleIndexAdaptor_swigregister(_ParticleIndexAdaptor)
9165 class _ParticleIndexesAdaptor(_InputAdaptor):
9166 """Proxy of C++ IMP::ParticleIndexesAdaptor class"""
9167 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9168 __repr__ = _swig_repr
9170 def __init__(self, *args):
9172 __init__(IMP::ParticleIndexesAdaptor self, IMP::ParticlesTemp const & ps) -> _ParticleIndexesAdaptor
9173 __init__(IMP::ParticleIndexesAdaptor self, IMP::ParticleIndexes const & pi) -> _ParticleIndexesAdaptor
9174 __init__(IMP::ParticleIndexesAdaptor self) -> _ParticleIndexesAdaptor
9176 this = _IMP_kernel.new__ParticleIndexesAdaptor(*args)
9178 self.this.append(this)
9181 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexesAdaptor
9182 __del__ =
lambda self:
None
9183 _ParticleIndexesAdaptor_swigregister = _IMP_kernel._ParticleIndexesAdaptor_swigregister
9184 _ParticleIndexesAdaptor_swigregister(_ParticleIndexesAdaptor)
9186 class _ParticleIndexPairsAdaptor(object):
9187 """Proxy of C++ IMP::ParticleIndexPairsAdaptor class"""
9188 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9189 __repr__ = _swig_repr
9191 def __init__(self, *args):
9193 __init__(IMP::ParticleIndexPairsAdaptor self, IMP::ParticlePairsTemp const & ps) -> _ParticleIndexPairsAdaptor
9194 __init__(IMP::ParticleIndexPairsAdaptor self, IMP::ParticleIndexPairs const & pi) -> _ParticleIndexPairsAdaptor
9195 __init__(IMP::ParticleIndexPairsAdaptor self) -> _ParticleIndexPairsAdaptor
9197 this = _IMP_kernel.new__ParticleIndexPairsAdaptor(*args)
9199 self.this.append(this)
9202 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexPairsAdaptor
9203 __del__ =
lambda self:
None
9204 _ParticleIndexPairsAdaptor_swigregister = _IMP_kernel._ParticleIndexPairsAdaptor_swigregister
9205 _ParticleIndexPairsAdaptor_swigregister(_ParticleIndexPairsAdaptor)
9207 class _ConstRestraint(Restraint):
9208 """Proxy of C++ IMP::internal::_ConstRestraint class"""
9209 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9211 def __init__(self, *args):
9213 __init__(IMP::internal::_ConstRestraint self, double v, IMP::ParticlesTemp const ps) -> _ConstRestraint
9214 __init__(IMP::internal::_ConstRestraint self, Model m, IMP::ParticleIndexes const & pis, double v) -> _ConstRestraint
9216 this = _IMP_kernel.new__ConstRestraint(*args)
9218 self.this.append(this)
9222 def get_value(self):
9223 """get_value(_ConstRestraint self) -> double"""
9224 return _IMP_kernel._ConstRestraint_get_value(self)
9227 def do_create_decomposition(self):
9228 """do_create_decomposition(_ConstRestraint self) -> IMP::Restraints"""
9229 return _IMP_kernel._ConstRestraint_do_create_decomposition(self)
9232 def do_get_inputs(self):
9233 """do_get_inputs(_ConstRestraint self) -> IMP::ModelObjectsTemp"""
9234 return _IMP_kernel._ConstRestraint_do_get_inputs(self)
9238 """get_version_info(_ConstRestraint self) -> VersionInfo"""
9239 return _IMP_kernel._ConstRestraint_get_version_info(self)
9243 """__str__(_ConstRestraint self) -> std::string"""
9244 return _IMP_kernel._ConstRestraint___str__(self)
9248 """__repr__(_ConstRestraint self) -> std::string"""
9249 return _IMP_kernel._ConstRestraint___repr__(self)
9254 return _object_cast_to__ConstRestraint(o)
9256 _ConstRestraint_swigregister = _IMP_kernel._ConstRestraint_swigregister
9257 _ConstRestraint_swigregister(_ConstRestraint)
9259 class _ConstSingletonScore(SingletonScore):
9260 """Proxy of C++ IMP::internal::_ConstSingletonScore class"""
9261 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9262 __repr__ = _swig_repr
9264 def __init__(self, v):
9265 """__init__(IMP::internal::_ConstSingletonScore self, double v) -> _ConstSingletonScore"""
9266 this = _IMP_kernel.new__ConstSingletonScore(v)
9268 self.this.append(this)
9272 def do_get_inputs(self, arg2, arg3):
9273 """do_get_inputs(_ConstSingletonScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
9274 return _IMP_kernel._ConstSingletonScore_do_get_inputs(self, arg2, arg3)
9278 """get_version_info(_ConstSingletonScore self) -> VersionInfo"""
9279 return _IMP_kernel._ConstSingletonScore_get_version_info(self)
9281 _ConstSingletonScore_swigregister = _IMP_kernel._ConstSingletonScore_swigregister
9282 _ConstSingletonScore_swigregister(_ConstSingletonScore)
9284 class _ConstPairScore(PairScore):
9285 """Proxy of C++ IMP::internal::_ConstPairScore class"""
9286 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9287 __repr__ = _swig_repr
9289 def __init__(self, v):
9290 """__init__(IMP::internal::_ConstPairScore self, double v) -> _ConstPairScore"""
9291 this = _IMP_kernel.new__ConstPairScore(v)
9293 self.this.append(this)
9297 def do_get_inputs(self, arg2, arg3):
9298 """do_get_inputs(_ConstPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
9299 return _IMP_kernel._ConstPairScore_do_get_inputs(self, arg2, arg3)
9303 """get_version_info(_ConstPairScore self) -> VersionInfo"""
9304 return _IMP_kernel._ConstPairScore_get_version_info(self)
9306 _ConstPairScore_swigregister = _IMP_kernel._ConstPairScore_swigregister
9307 _ConstPairScore_swigregister(_ConstPairScore)
9309 class _TrivialDecorator(Decorator):
9310 """Proxy of C++ IMP::internal::_TrivialDecorator class"""
9311 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9313 def __init__(self, *args):
9315 __init__(IMP::internal::_TrivialDecorator self) -> _TrivialDecorator
9316 __init__(IMP::internal::_TrivialDecorator self, Model m, ParticleIndex id) -> _TrivialDecorator
9317 __init__(IMP::internal::_TrivialDecorator self, _ParticleAdaptor d) -> _TrivialDecorator
9319 this = _IMP_kernel.new__TrivialDecorator(*args)
9321 self.this.append(this)
9325 def show(self, *args):
9327 show(_TrivialDecorator self, _ostream out)
9328 show(_TrivialDecorator self)
9330 return _IMP_kernel._TrivialDecorator_show(self, *args)
9333 def setup_particle(*args):
9335 setup_particle(Model m, ParticleIndex pi) -> _TrivialDecorator
9336 setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
9338 return _IMP_kernel._TrivialDecorator_setup_particle(*args)
9340 setup_particle = staticmethod(setup_particle)
9342 def get_is_setup(*args):
9344 get_is_setup(_ParticleAdaptor p) -> bool
9345 get_is_setup(Model m, ParticleIndex pi) -> bool
9347 return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
9349 get_is_setup = staticmethod(get_is_setup)
9353 add_attribute(_TrivialDecorator self, FloatKey k, IMP::Float v, bool opt)
9354 add_attribute(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
9355 add_attribute(_TrivialDecorator self, IntKey a0, IMP::Int a1)
9356 add_attribute(_TrivialDecorator self, FloatsKey a0, IMP::Floats a1)
9357 add_attribute(_TrivialDecorator self, IntsKey a0, IMP::Ints a1)
9358 add_attribute(_TrivialDecorator self, StringKey a0, IMP::String a1)
9359 add_attribute(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
9360 add_attribute(_TrivialDecorator self, ObjectKey a0, Object a1)
9362 return _IMP_kernel._TrivialDecorator_add_attribute(self, *args)
9365 def get_value(self, *args):
9367 get_value(_TrivialDecorator self, FloatKey a0) -> IMP::Float
9368 get_value(_TrivialDecorator self, IntKey a0) -> IMP::Int
9369 get_value(_TrivialDecorator self, FloatsKey a0) -> IMP::Floats
9370 get_value(_TrivialDecorator self, IntsKey a0) -> IMP::Ints
9371 get_value(_TrivialDecorator self, StringKey a0) -> IMP::String
9372 get_value(_TrivialDecorator self, ParticleIndexKey a0) -> Particle
9373 get_value(_TrivialDecorator self, ObjectKey a0) -> Object
9375 return _IMP_kernel._TrivialDecorator_get_value(self, *args)
9378 def set_value(self, *args):
9380 set_value(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
9381 set_value(_TrivialDecorator self, IntKey a0, IMP::Int a1)
9382 set_value(_TrivialDecorator self, FloatsKey a0, IMP::Floats a1)
9383 set_value(_TrivialDecorator self, IntsKey a0, IMP::Ints a1)
9384 set_value(_TrivialDecorator self, StringKey a0, IMP::String a1)
9385 set_value(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
9386 set_value(_TrivialDecorator self, ObjectKey a0, Object a1)
9388 return _IMP_kernel._TrivialDecorator_set_value(self, *args)
9393 remove_attribute(_TrivialDecorator self, FloatKey a0)
9394 remove_attribute(_TrivialDecorator self, IntKey a0)
9395 remove_attribute(_TrivialDecorator self, FloatsKey a0)
9396 remove_attribute(_TrivialDecorator self, IntsKey a0)
9397 remove_attribute(_TrivialDecorator self, StringKey a0)
9398 remove_attribute(_TrivialDecorator self, ParticleIndexKey a0)
9399 remove_attribute(_TrivialDecorator self, ObjectKey a0)
9401 return _IMP_kernel._TrivialDecorator_remove_attribute(self, *args)
9404 def has_attribute(self, *args):
9406 has_attribute(_TrivialDecorator self, FloatKey a0) -> bool
9407 has_attribute(_TrivialDecorator self, IntKey a0) -> bool
9408 has_attribute(_TrivialDecorator self, FloatsKey a0) -> bool
9409 has_attribute(_TrivialDecorator self, IntsKey a0) -> bool
9410 has_attribute(_TrivialDecorator self, StringKey a0) -> bool
9411 has_attribute(_TrivialDecorator self, ParticleIndexKey a0) -> bool
9412 has_attribute(_TrivialDecorator self, ObjectKey a0) -> bool
9414 return _IMP_kernel._TrivialDecorator_has_attribute(self, *args)
9417 def get_derivative(self, a0):
9418 """get_derivative(_TrivialDecorator self, FloatKey a0) -> double"""
9419 return _IMP_kernel._TrivialDecorator_get_derivative(self, a0)
9423 """get_name(_TrivialDecorator self) -> std::string"""
9424 return _IMP_kernel._TrivialDecorator_get_name(self)
9428 """clear_caches(_TrivialDecorator self)"""
9429 return _IMP_kernel._TrivialDecorator_clear_caches(self)
9432 def set_name(self, a0):
9433 """set_name(_TrivialDecorator self, std::string a0)"""
9434 return _IMP_kernel._TrivialDecorator_set_name(self, a0)
9438 """set_check_level(_TrivialDecorator self, IMP::CheckLevel a0)"""
9439 return _IMP_kernel._TrivialDecorator_set_check_level(self, a0)
9442 def add_to_derivative(self, a0, a1, a2):
9443 """add_to_derivative(_TrivialDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9444 return _IMP_kernel._TrivialDecorator_add_to_derivative(self, a0, a1, a2)
9448 """set_is_optimized(_TrivialDecorator self, FloatKey a0, bool a1)"""
9449 return _IMP_kernel._TrivialDecorator_set_is_optimized(self, a0, a1)
9452 def get_is_optimized(self, a0):
9453 """get_is_optimized(_TrivialDecorator self, FloatKey a0) -> bool"""
9454 return _IMP_kernel._TrivialDecorator_get_is_optimized(self, a0)
9457 def get_check_level(self):
9458 """get_check_level(_TrivialDecorator self) -> IMP::CheckLevel"""
9459 return _IMP_kernel._TrivialDecorator_get_check_level(self)
9462 def __eq__(self, *args):
9464 __eq__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9465 __eq__(_TrivialDecorator self, Particle d) -> bool
9467 return _IMP_kernel._TrivialDecorator___eq__(self, *args)
9470 def __ne__(self, *args):
9472 __ne__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9473 __ne__(_TrivialDecorator self, Particle d) -> bool
9475 return _IMP_kernel._TrivialDecorator___ne__(self, *args)
9478 def __le__(self, *args):
9480 __le__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9481 __le__(_TrivialDecorator self, Particle d) -> bool
9483 return _IMP_kernel._TrivialDecorator___le__(self, *args)
9486 def __lt__(self, *args):
9488 __lt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9489 __lt__(_TrivialDecorator self, Particle d) -> bool
9491 return _IMP_kernel._TrivialDecorator___lt__(self, *args)
9494 def __ge__(self, *args):
9496 __ge__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9497 __ge__(_TrivialDecorator self, Particle d) -> bool
9499 return _IMP_kernel._TrivialDecorator___ge__(self, *args)
9502 def __gt__(self, *args):
9504 __gt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9505 __gt__(_TrivialDecorator self, Particle d) -> bool
9507 return _IMP_kernel._TrivialDecorator___gt__(self, *args)
9511 """__hash__(_TrivialDecorator self) -> std::size_t"""
9512 return _IMP_kernel._TrivialDecorator___hash__(self)
9516 """__str__(_TrivialDecorator self) -> std::string"""
9517 return _IMP_kernel._TrivialDecorator___str__(self)
9521 """__repr__(_TrivialDecorator self) -> std::string"""
9522 return _IMP_kernel._TrivialDecorator___repr__(self)
9524 __swig_destroy__ = _IMP_kernel.delete__TrivialDecorator
9525 __del__ =
lambda self:
None
9526 _TrivialDecorator_swigregister = _IMP_kernel._TrivialDecorator_swigregister
9527 _TrivialDecorator_swigregister(_TrivialDecorator)
9529 def _TrivialDecorator_setup_particle(*args):
9531 setup_particle(Model m, ParticleIndex pi) -> _TrivialDecorator
9532 _TrivialDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
9534 return _IMP_kernel._TrivialDecorator_setup_particle(*args)
9536 def _TrivialDecorator_get_is_setup(*args):
9538 get_is_setup(_ParticleAdaptor p) -> bool
9539 _TrivialDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
9541 return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
9543 class _TrivialDerivedDecorator(_TrivialDecorator):
9544 """Proxy of C++ IMP::internal::_TrivialDerivedDecorator class"""
9545 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9547 def __init__(self, *args):
9549 __init__(IMP::internal::_TrivialDerivedDecorator self) -> _TrivialDerivedDecorator
9550 __init__(IMP::internal::_TrivialDerivedDecorator self, Model m, ParticleIndex id) -> _TrivialDerivedDecorator
9551 __init__(IMP::internal::_TrivialDerivedDecorator self, _ParticleAdaptor d) -> _TrivialDerivedDecorator
9553 this = _IMP_kernel.new__TrivialDerivedDecorator(*args)
9555 self.this.append(this)
9559 def show(self, *args):
9561 show(_TrivialDerivedDecorator self, _ostream out)
9562 show(_TrivialDerivedDecorator self)
9564 return _IMP_kernel._TrivialDerivedDecorator_show(self, *args)
9567 def setup_particle(*args):
9569 setup_particle(Model m, ParticleIndex pi) -> _TrivialDerivedDecorator
9570 setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
9572 return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
9574 setup_particle = staticmethod(setup_particle)
9576 def get_is_setup(*args):
9578 get_is_setup(_ParticleAdaptor p) -> bool
9579 get_is_setup(Model m, ParticleIndex pi) -> bool
9581 return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
9583 get_is_setup = staticmethod(get_is_setup)
9587 add_attribute(_TrivialDerivedDecorator self, FloatKey k, IMP::Float v, bool opt)
9588 add_attribute(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
9589 add_attribute(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
9590 add_attribute(_TrivialDerivedDecorator self, FloatsKey a0, IMP::Floats a1)
9591 add_attribute(_TrivialDerivedDecorator self, IntsKey a0, IMP::Ints a1)
9592 add_attribute(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
9593 add_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
9594 add_attribute(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
9596 return _IMP_kernel._TrivialDerivedDecorator_add_attribute(self, *args)
9599 def get_value(self, *args):
9601 get_value(_TrivialDerivedDecorator self, FloatKey a0) -> IMP::Float
9602 get_value(_TrivialDerivedDecorator self, IntKey a0) -> IMP::Int
9603 get_value(_TrivialDerivedDecorator self, FloatsKey a0) -> IMP::Floats
9604 get_value(_TrivialDerivedDecorator self, IntsKey a0) -> IMP::Ints
9605 get_value(_TrivialDerivedDecorator self, StringKey a0) -> IMP::String
9606 get_value(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> Particle
9607 get_value(_TrivialDerivedDecorator self, ObjectKey a0) -> Object
9609 return _IMP_kernel._TrivialDerivedDecorator_get_value(self, *args)
9612 def set_value(self, *args):
9614 set_value(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
9615 set_value(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
9616 set_value(_TrivialDerivedDecorator self, FloatsKey a0, IMP::Floats a1)
9617 set_value(_TrivialDerivedDecorator self, IntsKey a0, IMP::Ints a1)
9618 set_value(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
9619 set_value(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
9620 set_value(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
9622 return _IMP_kernel._TrivialDerivedDecorator_set_value(self, *args)
9627 remove_attribute(_TrivialDerivedDecorator self, FloatKey a0)
9628 remove_attribute(_TrivialDerivedDecorator self, IntKey a0)
9629 remove_attribute(_TrivialDerivedDecorator self, FloatsKey a0)
9630 remove_attribute(_TrivialDerivedDecorator self, IntsKey a0)
9631 remove_attribute(_TrivialDerivedDecorator self, StringKey a0)
9632 remove_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0)
9633 remove_attribute(_TrivialDerivedDecorator self, ObjectKey a0)
9635 return _IMP_kernel._TrivialDerivedDecorator_remove_attribute(self, *args)
9638 def has_attribute(self, *args):
9640 has_attribute(_TrivialDerivedDecorator self, FloatKey a0) -> bool
9641 has_attribute(_TrivialDerivedDecorator self, IntKey a0) -> bool
9642 has_attribute(_TrivialDerivedDecorator self, FloatsKey a0) -> bool
9643 has_attribute(_TrivialDerivedDecorator self, IntsKey a0) -> bool
9644 has_attribute(_TrivialDerivedDecorator self, StringKey a0) -> bool
9645 has_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> bool
9646 has_attribute(_TrivialDerivedDecorator self, ObjectKey a0) -> bool
9648 return _IMP_kernel._TrivialDerivedDecorator_has_attribute(self, *args)
9651 def get_derivative(self, a0):
9652 """get_derivative(_TrivialDerivedDecorator self, FloatKey a0) -> double"""
9653 return _IMP_kernel._TrivialDerivedDecorator_get_derivative(self, a0)
9657 """get_name(_TrivialDerivedDecorator self) -> std::string"""
9658 return _IMP_kernel._TrivialDerivedDecorator_get_name(self)
9662 """clear_caches(_TrivialDerivedDecorator self)"""
9663 return _IMP_kernel._TrivialDerivedDecorator_clear_caches(self)
9666 def set_name(self, a0):
9667 """set_name(_TrivialDerivedDecorator self, std::string a0)"""
9668 return _IMP_kernel._TrivialDerivedDecorator_set_name(self, a0)
9672 """set_check_level(_TrivialDerivedDecorator self, IMP::CheckLevel a0)"""
9673 return _IMP_kernel._TrivialDerivedDecorator_set_check_level(self, a0)
9676 def add_to_derivative(self, a0, a1, a2):
9677 """add_to_derivative(_TrivialDerivedDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9678 return _IMP_kernel._TrivialDerivedDecorator_add_to_derivative(self, a0, a1, a2)
9682 """set_is_optimized(_TrivialDerivedDecorator self, FloatKey a0, bool a1)"""
9683 return _IMP_kernel._TrivialDerivedDecorator_set_is_optimized(self, a0, a1)
9686 def get_is_optimized(self, a0):
9687 """get_is_optimized(_TrivialDerivedDecorator self, FloatKey a0) -> bool"""
9688 return _IMP_kernel._TrivialDerivedDecorator_get_is_optimized(self, a0)
9691 def get_check_level(self):
9692 """get_check_level(_TrivialDerivedDecorator self) -> IMP::CheckLevel"""
9693 return _IMP_kernel._TrivialDerivedDecorator_get_check_level(self)
9696 def __eq__(self, *args):
9698 __eq__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9699 __eq__(_TrivialDerivedDecorator self, Particle d) -> bool
9701 return _IMP_kernel._TrivialDerivedDecorator___eq__(self, *args)
9704 def __ne__(self, *args):
9706 __ne__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9707 __ne__(_TrivialDerivedDecorator self, Particle d) -> bool
9709 return _IMP_kernel._TrivialDerivedDecorator___ne__(self, *args)
9712 def __le__(self, *args):
9714 __le__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9715 __le__(_TrivialDerivedDecorator self, Particle d) -> bool
9717 return _IMP_kernel._TrivialDerivedDecorator___le__(self, *args)
9720 def __lt__(self, *args):
9722 __lt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9723 __lt__(_TrivialDerivedDecorator self, Particle d) -> bool
9725 return _IMP_kernel._TrivialDerivedDecorator___lt__(self, *args)
9728 def __ge__(self, *args):
9730 __ge__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9731 __ge__(_TrivialDerivedDecorator self, Particle d) -> bool
9733 return _IMP_kernel._TrivialDerivedDecorator___ge__(self, *args)
9736 def __gt__(self, *args):
9738 __gt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9739 __gt__(_TrivialDerivedDecorator self, Particle d) -> bool
9741 return _IMP_kernel._TrivialDerivedDecorator___gt__(self, *args)
9745 """__hash__(_TrivialDerivedDecorator self) -> std::size_t"""
9746 return _IMP_kernel._TrivialDerivedDecorator___hash__(self)
9750 """__str__(_TrivialDerivedDecorator self) -> std::string"""
9751 return _IMP_kernel._TrivialDerivedDecorator___str__(self)
9755 """__repr__(_TrivialDerivedDecorator self) -> std::string"""
9756 return _IMP_kernel._TrivialDerivedDecorator___repr__(self)
9758 __swig_destroy__ = _IMP_kernel.delete__TrivialDerivedDecorator
9759 __del__ =
lambda self:
None
9760 _TrivialDerivedDecorator_swigregister = _IMP_kernel._TrivialDerivedDecorator_swigregister
9761 _TrivialDerivedDecorator_swigregister(_TrivialDerivedDecorator)
9763 def _TrivialDerivedDecorator_setup_particle(*args):
9765 setup_particle(Model m, ParticleIndex pi) -> _TrivialDerivedDecorator
9766 _TrivialDerivedDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
9768 return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
9770 def _TrivialDerivedDecorator_get_is_setup(*args):
9772 get_is_setup(_ParticleAdaptor p) -> bool
9773 _TrivialDerivedDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
9775 return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
9777 class _TrivialTraitsDecorator(Decorator):
9778 """Proxy of C++ IMP::internal::_TrivialTraitsDecorator class"""
9779 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9781 def get_decorator_traits(self):
9782 """get_decorator_traits(_TrivialTraitsDecorator self) -> StringKey"""
9783 return _IMP_kernel._TrivialTraitsDecorator_get_decorator_traits(self)
9786 def get_default_decorator_traits():
9787 """get_default_decorator_traits() -> StringKey"""
9788 return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
9790 get_default_decorator_traits = staticmethod(get_default_decorator_traits)
9792 def __init__(self, *args):
9794 __init__(IMP::internal::_TrivialTraitsDecorator self) -> _TrivialTraitsDecorator
9795 __init__(IMP::internal::_TrivialTraitsDecorator self, Model m, ParticleIndex id, StringKey tr) -> _TrivialTraitsDecorator
9796 __init__(IMP::internal::_TrivialTraitsDecorator self, Model m, ParticleIndex id) -> _TrivialTraitsDecorator
9797 __init__(IMP::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
9798 __init__(IMP::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d) -> _TrivialTraitsDecorator
9800 this = _IMP_kernel.new__TrivialTraitsDecorator(*args)
9802 self.this.append(this)
9806 def show(self, *args):
9808 show(_TrivialTraitsDecorator self, _ostream out)
9809 show(_TrivialTraitsDecorator self)
9811 return _IMP_kernel._TrivialTraitsDecorator_show(self, *args)
9814 def setup_particle(*args):
9816 setup_particle(Model m, ParticleIndex pi, StringKey tr) -> _TrivialTraitsDecorator
9817 setup_particle(Model m, ParticleIndex pi) -> _TrivialTraitsDecorator
9818 setup_particle(_ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
9819 setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
9821 return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
9823 setup_particle = staticmethod(setup_particle)
9825 def get_is_setup(*args):
9827 get_is_setup(_ParticleAdaptor p, StringKey tr) -> bool
9828 get_is_setup(_ParticleAdaptor p) -> bool
9829 get_is_setup(Model m, ParticleIndex pi, StringKey k) -> bool
9830 get_is_setup(Model m, ParticleIndex pi) -> bool
9832 return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
9834 get_is_setup = staticmethod(get_is_setup)
9836 def get_default_key():
9837 """get_default_key() -> StringKey"""
9838 return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
9840 get_default_key = staticmethod(get_default_key)
9844 add_attribute(_TrivialTraitsDecorator self, FloatKey k, IMP::Float v, bool opt)
9845 add_attribute(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
9846 add_attribute(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
9847 add_attribute(_TrivialTraitsDecorator self, FloatsKey a0, IMP::Floats a1)
9848 add_attribute(_TrivialTraitsDecorator self, IntsKey a0, IMP::Ints a1)
9849 add_attribute(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
9850 add_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
9851 add_attribute(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
9853 return _IMP_kernel._TrivialTraitsDecorator_add_attribute(self, *args)
9856 def get_value(self, *args):
9858 get_value(_TrivialTraitsDecorator self, FloatKey a0) -> IMP::Float
9859 get_value(_TrivialTraitsDecorator self, IntKey a0) -> IMP::Int
9860 get_value(_TrivialTraitsDecorator self, FloatsKey a0) -> IMP::Floats
9861 get_value(_TrivialTraitsDecorator self, IntsKey a0) -> IMP::Ints
9862 get_value(_TrivialTraitsDecorator self, StringKey a0) -> IMP::String
9863 get_value(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> Particle
9864 get_value(_TrivialTraitsDecorator self, ObjectKey a0) -> Object
9866 return _IMP_kernel._TrivialTraitsDecorator_get_value(self, *args)
9869 def set_value(self, *args):
9871 set_value(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
9872 set_value(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
9873 set_value(_TrivialTraitsDecorator self, FloatsKey a0, IMP::Floats a1)
9874 set_value(_TrivialTraitsDecorator self, IntsKey a0, IMP::Ints a1)
9875 set_value(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
9876 set_value(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
9877 set_value(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
9879 return _IMP_kernel._TrivialTraitsDecorator_set_value(self, *args)
9884 remove_attribute(_TrivialTraitsDecorator self, FloatKey a0)
9885 remove_attribute(_TrivialTraitsDecorator self, IntKey a0)
9886 remove_attribute(_TrivialTraitsDecorator self, FloatsKey a0)
9887 remove_attribute(_TrivialTraitsDecorator self, IntsKey a0)
9888 remove_attribute(_TrivialTraitsDecorator self, StringKey a0)
9889 remove_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0)
9890 remove_attribute(_TrivialTraitsDecorator self, ObjectKey a0)
9892 return _IMP_kernel._TrivialTraitsDecorator_remove_attribute(self, *args)
9895 def has_attribute(self, *args):
9897 has_attribute(_TrivialTraitsDecorator self, FloatKey a0) -> bool
9898 has_attribute(_TrivialTraitsDecorator self, IntKey a0) -> bool
9899 has_attribute(_TrivialTraitsDecorator self, FloatsKey a0) -> bool
9900 has_attribute(_TrivialTraitsDecorator self, IntsKey a0) -> bool
9901 has_attribute(_TrivialTraitsDecorator self, StringKey a0) -> bool
9902 has_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> bool
9903 has_attribute(_TrivialTraitsDecorator self, ObjectKey a0) -> bool
9905 return _IMP_kernel._TrivialTraitsDecorator_has_attribute(self, *args)
9908 def get_derivative(self, a0):
9909 """get_derivative(_TrivialTraitsDecorator self, FloatKey a0) -> double"""
9910 return _IMP_kernel._TrivialTraitsDecorator_get_derivative(self, a0)
9914 """get_name(_TrivialTraitsDecorator self) -> std::string"""
9915 return _IMP_kernel._TrivialTraitsDecorator_get_name(self)
9919 """clear_caches(_TrivialTraitsDecorator self)"""
9920 return _IMP_kernel._TrivialTraitsDecorator_clear_caches(self)
9923 def set_name(self, a0):
9924 """set_name(_TrivialTraitsDecorator self, std::string a0)"""
9925 return _IMP_kernel._TrivialTraitsDecorator_set_name(self, a0)
9929 """set_check_level(_TrivialTraitsDecorator self, IMP::CheckLevel a0)"""
9930 return _IMP_kernel._TrivialTraitsDecorator_set_check_level(self, a0)
9933 def add_to_derivative(self, a0, a1, a2):
9934 """add_to_derivative(_TrivialTraitsDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9935 return _IMP_kernel._TrivialTraitsDecorator_add_to_derivative(self, a0, a1, a2)
9939 """set_is_optimized(_TrivialTraitsDecorator self, FloatKey a0, bool a1)"""
9940 return _IMP_kernel._TrivialTraitsDecorator_set_is_optimized(self, a0, a1)
9943 def get_is_optimized(self, a0):
9944 """get_is_optimized(_TrivialTraitsDecorator self, FloatKey a0) -> bool"""
9945 return _IMP_kernel._TrivialTraitsDecorator_get_is_optimized(self, a0)
9948 def get_check_level(self):
9949 """get_check_level(_TrivialTraitsDecorator self) -> IMP::CheckLevel"""
9950 return _IMP_kernel._TrivialTraitsDecorator_get_check_level(self)
9953 def __eq__(self, *args):
9955 __eq__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9956 __eq__(_TrivialTraitsDecorator self, Particle d) -> bool
9958 return _IMP_kernel._TrivialTraitsDecorator___eq__(self, *args)
9961 def __ne__(self, *args):
9963 __ne__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9964 __ne__(_TrivialTraitsDecorator self, Particle d) -> bool
9966 return _IMP_kernel._TrivialTraitsDecorator___ne__(self, *args)
9969 def __le__(self, *args):
9971 __le__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9972 __le__(_TrivialTraitsDecorator self, Particle d) -> bool
9974 return _IMP_kernel._TrivialTraitsDecorator___le__(self, *args)
9977 def __lt__(self, *args):
9979 __lt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9980 __lt__(_TrivialTraitsDecorator self, Particle d) -> bool
9982 return _IMP_kernel._TrivialTraitsDecorator___lt__(self, *args)
9985 def __ge__(self, *args):
9987 __ge__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9988 __ge__(_TrivialTraitsDecorator self, Particle d) -> bool
9990 return _IMP_kernel._TrivialTraitsDecorator___ge__(self, *args)
9993 def __gt__(self, *args):
9995 __gt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9996 __gt__(_TrivialTraitsDecorator self, Particle d) -> bool
9998 return _IMP_kernel._TrivialTraitsDecorator___gt__(self, *args)
10001 def __hash__(self):
10002 """__hash__(_TrivialTraitsDecorator self) -> std::size_t"""
10003 return _IMP_kernel._TrivialTraitsDecorator___hash__(self)
10007 """__str__(_TrivialTraitsDecorator self) -> std::string"""
10008 return _IMP_kernel._TrivialTraitsDecorator___str__(self)
10011 def __repr__(self):
10012 """__repr__(_TrivialTraitsDecorator self) -> std::string"""
10013 return _IMP_kernel._TrivialTraitsDecorator___repr__(self)
10015 __swig_destroy__ = _IMP_kernel.delete__TrivialTraitsDecorator
10016 __del__ =
lambda self:
None
10017 _TrivialTraitsDecorator_swigregister = _IMP_kernel._TrivialTraitsDecorator_swigregister
10018 _TrivialTraitsDecorator_swigregister(_TrivialTraitsDecorator)
10020 def _TrivialTraitsDecorator_get_default_decorator_traits():
10021 """_TrivialTraitsDecorator_get_default_decorator_traits() -> StringKey"""
10022 return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
10024 def _TrivialTraitsDecorator_setup_particle(*args):
10026 setup_particle(Model m, ParticleIndex pi, StringKey tr) -> _TrivialTraitsDecorator
10027 setup_particle(Model m, ParticleIndex pi) -> _TrivialTraitsDecorator
10028 setup_particle(_ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
10029 _TrivialTraitsDecorator_setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
10031 return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
10033 def _TrivialTraitsDecorator_get_is_setup(*args):
10035 get_is_setup(_ParticleAdaptor p, StringKey tr) -> bool
10036 get_is_setup(_ParticleAdaptor p) -> bool
10037 get_is_setup(Model m, ParticleIndex pi, StringKey k) -> bool
10038 _TrivialTraitsDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
10040 return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
10042 def _TrivialTraitsDecorator_get_default_key():
10043 """_TrivialTraitsDecorator_get_default_key() -> StringKey"""
10044 return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
10047 def __lshift__(*args):
10049 __lshift__(_ostream out, _TrivialDecorator n) -> _ostream
10050 __lshift__(_ostream out, _TrivialDerivedDecorator n) -> _ostream
10051 __lshift__(_ostream out, _TrivialTraitsDecorator n) -> _ostream
10053 return _IMP_kernel.__lshift__(*args)
10054 class _ConstOptimizer(Optimizer):
10055 """Proxy of C++ IMP::internal::_ConstOptimizer class"""
10056 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
10058 def __init__(self, m):
10059 """__init__(IMP::internal::_ConstOptimizer self, Model m) -> _ConstOptimizer"""
10060 this = _IMP_kernel.new__ConstOptimizer(m)
10062 self.this.append(this)
10066 def do_optimize(self, max_steps):
10067 """do_optimize(_ConstOptimizer self, unsigned int max_steps) -> IMP::Float"""
10068 return _IMP_kernel._ConstOptimizer_do_optimize(self, max_steps)
10072 """get_version_info(_ConstOptimizer self) -> VersionInfo"""
10073 return _IMP_kernel._ConstOptimizer_get_version_info(self)
10077 """__str__(_ConstOptimizer self) -> std::string"""
10078 return _IMP_kernel._ConstOptimizer___str__(self)
10081 def __repr__(self):
10082 """__repr__(_ConstOptimizer self) -> std::string"""
10083 return _IMP_kernel._ConstOptimizer___repr__(self)
10088 return _object_cast_to__ConstOptimizer(o)
10090 _ConstOptimizer_swigregister = _IMP_kernel._ConstOptimizer_swigregister
10091 _ConstOptimizer_swigregister(_ConstOptimizer)
10095 """get_particle(Particle p) -> Particle"""
10096 return _IMP_kernel.get_particle(p)
10098 def _decorator_test(p):
10099 """_decorator_test(Particle p)"""
10100 return _IMP_kernel._decorator_test(p)
10102 def _overloaded_decorator(*args):
10104 _overloaded_decorator(_TrivialDecorator a) -> int
10105 _overloaded_decorator(_TrivialDerivedDecorator a) -> int
10107 return _IMP_kernel._overloaded_decorator(*args)
10109 def _take_particles(*args):
10111 _take_particles(IMP::Particles const & ps) -> unsigned int
10112 _take_particles(Model m, IMP::Particles const & ps) -> unsigned int
10113 _take_particles(Model m, IMP::Particles const & ps, TextOutput out) -> unsigned int
10115 return _IMP_kernel._take_particles(*args)
10117 def _give_particles(m):
10118 """_give_particles(Model m) -> IMP::Particles const &"""
10119 return _IMP_kernel._give_particles(m)
10121 def _pass_particles(ps):
10122 """_pass_particles(IMP::Particles const & ps) -> IMP::Particles const &"""
10123 return _IMP_kernel._pass_particles(ps)
10125 def _pass_particle(ps):
10126 """_pass_particle(Particle ps) -> Particle"""
10127 return _IMP_kernel._pass_particle(ps)
10129 def _pass_particle_pair(pp):
10130 """_pass_particle_pair(IMP::ParticlePair const & pp) -> IMP::ParticlePair const &"""
10131 return _IMP_kernel._pass_particle_pair(pp)
10133 def _give_particles_copy(m):
10134 """_give_particles_copy(Model m) -> IMP::Particles"""
10135 return _IMP_kernel._give_particles_copy(m)
10137 def _pass_float_keys(input):
10138 """_pass_float_keys(IMP::FloatKeys const & input) -> IMP::FloatKeys"""
10139 return _IMP_kernel._pass_float_keys(input)
10143 _pass(IMP::Particles const & p) -> IMP::Particles const
10144 _pass(IMP::Restraints const & p) -> IMP::Restraints const &
10146 return _IMP_kernel._pass(*args)
10148 def _pass_decorators(p):
10149 """_pass_decorators(IMP::internal::_TrivialDecorators const & p) -> IMP::internal::_TrivialDecorators const &"""
10150 return _IMP_kernel._pass_decorators(p)
10152 def _pass_decorator_traits(p):
10153 """_pass_decorator_traits(IMP::internal::_TrivialTraitsDecorators const & p) -> IMP::internal::_TrivialTraitsDecorators const &"""
10154 return _IMP_kernel._pass_decorator_traits(p)
10156 def _pass_particle_pairs(p):
10157 """_pass_particle_pairs(IMP::ParticlePairsTemp const & p) -> IMP::ParticlePairsTemp"""
10158 return _IMP_kernel._pass_particle_pairs(p)
10160 def _pass_particle_index_pairs(p):
10161 """_pass_particle_index_pairs(IMP::ParticleIndexPairs const & p) -> IMP::ParticleIndexPairs"""
10162 return _IMP_kernel._pass_particle_index_pairs(p)
10164 def _pass_model_objects(p):
10165 """_pass_model_objects(IMP::ModelObjectsTemp const & p) -> IMP::ModelObjectsTemp"""
10166 return _IMP_kernel._pass_model_objects(p)
10168 def _pass_particles_temps(ps):
10169 """_pass_particles_temps(IMP::ParticlesTemps const & ps) -> IMP::ParticlesTemps"""
10170 return _IMP_kernel._pass_particles_temps(ps)
10172 def _test_overload(*args):
10174 _test_overload(IMP::Particles const & ps) -> int
10175 _test_overload(IMP::Restraints const & ps) -> int
10177 return _IMP_kernel._test_overload(*args)
10179 def _get_range(m, k):
10180 """_get_range(Model m, FloatKey k) -> IMP::FloatRange"""
10181 return _IMP_kernel._get_range(m, k)
10183 def _create_particles_from_pdb(name, m):
10184 """_create_particles_from_pdb(std::string name, Model m) -> IMP::ParticleIndexes"""
10185 return _IMP_kernel._create_particles_from_pdb(name, m)
10186 class _LogPairScore(PairScore):
10187 """Proxy of C++ IMP::internal::_LogPairScore class"""
10188 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
10189 __repr__ = _swig_repr
10191 def __init__(self):
10192 """__init__(IMP::internal::_LogPairScore self) -> _LogPairScore"""
10193 this = _IMP_kernel.new__LogPairScore()
10195 self.this.append(this)
10199 def do_get_inputs(self, arg2, arg3):
10200 """do_get_inputs(_LogPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
10201 return _IMP_kernel._LogPairScore_do_get_inputs(self, arg2, arg3)
10205 """get_version_info(_LogPairScore self) -> VersionInfo"""
10206 return _IMP_kernel._LogPairScore_get_version_info(self)
10209 def get_particle_pairs(self):
10210 """get_particle_pairs(_LogPairScore self) -> IMP::ParticlePairsTemp"""
10211 return _IMP_kernel._LogPairScore_get_particle_pairs(self)
10215 """clear(_LogPairScore self)"""
10216 return _IMP_kernel._LogPairScore_clear(self)
10219 def get_contains(self, pp):
10220 """get_contains(_LogPairScore self, IMP::ParticlePair const & pp) -> bool"""
10221 return _IMP_kernel._LogPairScore_get_contains(self, pp)
10223 _LogPairScore_swigregister = _IMP_kernel._LogPairScore_swigregister
10224 _LogPairScore_swigregister(_LogPairScore)
10227 def _overloaded_particles(*args):
10229 _overloaded_particles(Particle arg1)
10230 _overloaded_particles(IMP::Particles const & arg1)
10231 _overloaded_particles(IMP::ParticlesTemp const & arg1)
10232 _overloaded_particles(Model arg1, IMP::ParticleIndexes const & arg2)
10233 _overloaded_particles(IMP::internal::_TrivialDecorators const & arg1)
10234 _overloaded_particles(_TrivialDecorator arg1)
10236 return _IMP_kernel._overloaded_particles(*args)
10237 class _ImplicitParticles(object):
10238 """Proxy of C++ IMP::internal::_ImplicitParticles class"""
10239 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
10240 __repr__ = _swig_repr
10242 def __init__(self, *args):
10244 __init__(IMP::internal::_ImplicitParticles self, Particle arg2) -> _ImplicitParticles
10245 __init__(IMP::internal::_ImplicitParticles self, IMP::Particles const & arg2) -> _ImplicitParticles
10246 __init__(IMP::internal::_ImplicitParticles self, IMP::ParticlesTemp const & arg2) -> _ImplicitParticles
10247 __init__(IMP::internal::_ImplicitParticles self, Model arg2, IMP::ParticleIndexes const & arg3) -> _ImplicitParticles
10248 __init__(IMP::internal::_ImplicitParticles self, IMP::internal::_TrivialDecorators const & arg2) -> _ImplicitParticles
10249 __init__(IMP::internal::_ImplicitParticles self, _TrivialDecorator arg2) -> _ImplicitParticles
10251 this = _IMP_kernel.new__ImplicitParticles(*args)
10253 self.this.append(this)
10256 __swig_destroy__ = _IMP_kernel.delete__ImplicitParticles
10257 __del__ =
lambda self:
None
10258 _ImplicitParticles_swigregister = _IMP_kernel._ImplicitParticles_swigregister
10259 _ImplicitParticles_swigregister(_ImplicitParticles)
10262 def _implicit_particles(arg1):
10263 """_implicit_particles(_ImplicitParticles arg1)"""
10264 return _IMP_kernel._implicit_particles(arg1)
10266 def _take_particle_adaptor(pa):
10267 """_take_particle_adaptor(_ParticleAdaptor pa) -> ParticleIndex"""
10268 return _IMP_kernel._take_particle_adaptor(pa)
10270 def _take_particle_indexes_adaptor(pa):
10271 """_take_particle_indexes_adaptor(_ParticleIndexesAdaptor pa) -> IMP::ParticleIndexes"""
10272 return _IMP_kernel._take_particle_indexes_adaptor(pa)
10273 class ScopedSetFloatAttribute(_RAII):
10274 """Proxy of C++ IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> class"""
10275 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
10277 def __init__(self, *args):
10279 __init__(IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> self) -> ScopedSetFloatAttribute
10280 __init__(IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> self, Particle p, FloatKey key, double const & value) -> ScopedSetFloatAttribute
10282 this = _IMP_kernel.new_ScopedSetFloatAttribute(*args)
10284 self.this.append(this)
10288 def set(self, p, key, value):
10289 """set(ScopedSetFloatAttribute self, Particle p, FloatKey key, double const & value)"""
10290 return _IMP_kernel.ScopedSetFloatAttribute_set(self, p, key, value)
10294 """reset(ScopedSetFloatAttribute self)"""
10295 return _IMP_kernel.ScopedSetFloatAttribute_reset(self)
10297 __swig_destroy__ = _IMP_kernel.delete_ScopedSetFloatAttribute
10298 __del__ =
lambda self:
None
10300 def show(self, *args):
10302 show(ScopedSetFloatAttribute self, _ostream out)
10303 show(ScopedSetFloatAttribute self)
10305 return _IMP_kernel.ScopedSetFloatAttribute_show(self, *args)
10309 """__str__(ScopedSetFloatAttribute self) -> std::string"""
10310 return _IMP_kernel.ScopedSetFloatAttribute___str__(self)
10313 def __repr__(self):
10314 """__repr__(ScopedSetFloatAttribute self) -> std::string"""
10315 return _IMP_kernel.ScopedSetFloatAttribute___repr__(self)
10317 ScopedSetFloatAttribute_swigregister = _IMP_kernel.ScopedSetFloatAttribute_swigregister
10318 ScopedSetFloatAttribute_swigregister(ScopedSetFloatAttribute)
10321 def _get_module_data_path(module, file_name):
10322 """_get_module_data_path(std::string module, std::string file_name) -> std::string"""
10323 return _IMP_kernel._get_module_data_path(module, file_name)
10325 def _get_module_example_path(module, file_name):
10326 """_get_module_example_path(std::string module, std::string file_name) -> std::string"""
10327 return _IMP_kernel._get_module_example_path(module, file_name)
10336 if sys.platform ==
'win32' and 'IMP_LD_PATH' in os.environ:
10337 dirs = os.environ[
'IMP_LD_PATH'].split(
":")
10338 pathcomps = os.environ[
'PATH'].split(
";")
10340 if d
not in pathcomps:
10341 os.environ[
'PATH'] = d +
';' + os.environ[
'PATH']
10349 """Allow command line tools to easily implement multiple commands.
10350 Typically, an IMP command line tool will use an instance of this class
10351 to provide a consistent interface to multiple distinct commands
10352 from a single binary, rather than providing a potentially large
10353 number of binaries. This is similar to the way a number of common
10354 command line tools outside of IMP function (e.g. Git provides a single
10355 `git` tool which implements multiple commands - `git add`, `git commit`,
10356 `git push` and so on).
10358 Each command is implemented with a Python module of the same name
10359 that can be imported from the module (for example, if `module_name`
10360 is `IMP.foo`, the `bar` command is provided by the `IMP.foo.bar` Python
10361 module, which would usually be found as `modules/foo/pyext/src/bar.py`).
10362 Each such module should have a docstring and a `%main()` method
10363 that takes no arguments (the module should also call its `%main()` method
10364 if it is run directly, i.e. with something like
10365 `if __name__=="__main__": %main()`). The encompassing module
10366 (`IMP.foo` in the example) should define `_all_commands` as a Python
10367 list of all valid commands.
10369 See the `multifit` and `cnmultifit` command line tools for example
10375 @param short_help A few words that describe the command line tool.
10376 @param long_help Longer text, used in the `help` command.
10377 @param module_name Name of the module (e.g. `IMP.foo`) that
10378 implements the commands.
10380 self.short_help = short_help
10381 self.long_help = long_help
10382 self.module_name = module_name
10383 self._all_commands = self.import_module()._all_commands
10384 self._progname = os.path.basename(sys.argv[0])
10387 """Call this method to act upon the user-provided command line"""
10388 if len(sys.argv) <= 1:
10389 print(self.short_help +
" Use '%s help' for help." % self._progname)
10391 command = sys.argv[1]
10392 if command
in (
'help',
'--help',
'-h'):
10393 if len(sys.argv) == 3:
10394 self.show_command_help(sys.argv[2])
10397 elif command ==
'--version':
10398 self.show_version()
10399 elif command
in self._all_commands:
10400 self.do_command(command)
10402 self.unknown_command(command)
10404 def import_module(self, mod=None):
10405 modname = self.module_name
10406 if mod
is not None:
10407 modname +=
"." + mod
10408 return __import__(modname, {}, {}, [
''])
10410 def unknown_command(self, command):
10411 print(
"Unknown command: '%s'" % command)
10412 print(
"Use '%s help' for help." % self._progname)
10415 def _get_version(self):
10418 def show_version(self):
10419 print(self._progname +
' ' + self._get_version())
10421 def show_help(self):
10422 ver = self._get_version()
10423 print(
"%s, version %s." % (self._progname, ver))
10424 print(self.long_help +
"""
10426 This program is part of IMP, the Integrative Modeling Platform,
10427 which is Copyright 2007-2021 IMP Inventors.
10428 For additional information about IMP, see <https://integrativemodeling.org>.
10430 Usage: %s <command> [options] [args]
10432 Commands:""" % self._progname)
10433 commands = self._all_commands[:] + [
'help']
10435 cmdlen = max([len(c)
for c
in commands])
10438 doc =
'Get help on using %s.' % self._progname
10440 doc = self.import_module(c).__doc__
or "<no help>"
10441 c +=
' ' * (cmdlen - len(c))
10442 print(
' ' + c +
' ' + doc)
10444 Use "%s help <command>" for detailed help on any command
10445 or "%s --version" to see the version number.""" % (self._progname,
10448 def do_command(self, command):
10449 mod = self.import_module(command)
10450 sys.argv[0] = self._progname +
' ' + command
10454 def show_command_help(self, command):
10455 if command ==
'help':
10457 elif command
in self._all_commands
or command ==
'help':
10458 mod = self.import_module(command)
10459 sys.argv = [self._progname +
' ' + command,
'--help']
10462 self.unknown_command(command)
10469 g = networkx.DiGraph()
10470 if len(ig.get_vertices()) == 0:
10479 return self.p.get_name()
10481 def __call__(self, name):
10482 return self.p.__call__(name)
10484 for vi
in ig.get_vertices():
10485 n = ig.get_vertex_name(vi)
10486 g.add_node(NodeWrapper(n))
10487 for vi
in ig.get_vertices():
10488 n = ig.get_vertex_name(vi)
10489 for ni
in ig.get_out_neighbors(vi):
10490 nn = ig.get_vertex_name(ni)
10491 g.add_edge(NodeWrapper(n), NodeWrapper(nn))
10498 n0 = name.get_name()
10501 n1 = str(n0).replace(
'"',
'')
10502 n2 = n1.replace(
"\n",
'')
10505 from altgraph
import Graph, Dot
10506 graph = Graph.Graph()
10507 for i, v
in enumerate(g.get_vertices()):
10509 for i, v
in enumerate(g.get_vertices()):
10510 for n
in g.get_out_neighbors(v):
10511 graph.add_edge(v, n)
10512 dot = Dot.Dot(graph)
10513 for i, v
in enumerate(g.get_vertices()):
10514 dot.node_style(i, label=clean(g.get_vertex_name(v)))
10521 st = g.get_graphviz_string()
10522 open(tfn,
"w").write(st)
10525 except ImportError:
10527 sys.stderr.write(
"Cannot run dot on Python 2.3 systems.\n")
10530 print(
"running dot")
10531 sp = subprocess.Popen([
"dot",
"-Tpdf", tfn,
"-o" + tfon])
10535 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")
10538 if platform.system() ==
"Darwin":
10541 cmd = [
"gv",
"acroread",
"xpdf"]
10544 print(
"launching viewer " + c)
10546 subprocess.check_call([c, tfon])
10552 print(
"Could not display file. It is saved at " + tfon)
10562 """Mark a Python module as deprecated.
10563 @note The `module` argument would normally be `__name__`.
10564 @see [deprecation support](@ref deprecation)."""
10566 "Module %s is deprecated. %s\n" % (module, help_message))
10569 """Python decorator to mark a class as deprecated.
10570 @see [deprecation support](@ref deprecation)."""
10572 orig_init = obj.__init__
10575 @functools.wraps(orig_init, (
'__name__',
'__doc__'))
10576 def __init__(obj, *args, **keys):
10578 % (type(obj), help_message))
10579 orig_init(obj, *args, **keys)
10580 obj.__init__ = __init__
10585 """Python decorator to mark a method as deprecated.
10586 @see [deprecation support](@ref deprecation)."""
10587 def out_wrapper(obj):
10588 @functools.wraps(obj)
10589 def wrapper(cls, *args, **keys):
10591 % (obj.__name__, type(cls), help_message))
10592 return obj(cls, *args, **keys)
10597 """Python decorator to mark a function as deprecated.
10598 @see [deprecation support](@ref deprecation)."""
10599 def out_wrapper(obj):
10600 @functools.wraps(obj)
10601 def wrapper(*args, **keys):
10603 % (obj.__name__, help_message))
10604 return obj(*args, **keys)
10608 @contextlib.contextmanager
10610 """Context manager to temporarily allow (or disallow) deprecated code.
10611 @see [deprecation support](@ref deprecation)."""
10618 def _get_all_flags(ntokens):
10619 """_get_all_flags(unsigned int ntokens) -> IMP::Strings"""
10620 return _IMP_kernel._get_all_flags(ntokens)
10622 def _print_internal_help(out, description):
10623 """_print_internal_help(_ostream out, std::string description)"""
10624 return _IMP_kernel._print_internal_help(out, description)
10630 class _PassThroughAction(argparse.Action):
10631 """Pass an argument through to the IMP Boost parser"""
10632 def __call__(self, parser, namespace, values, option_string=None):
10633 parser._boost_command_line.append(option_string)
10635 parser._boost_command_line.append(values)
10638 if option_string
in (
'-h',
'--help',
'--help_advanced',
'--version'):
10639 parser._handle_boost()
10643 """IMP-specific subclass of argparse.ArgumentParser.
10644 This adds options common to all IMP applications
10645 (see IMP::setup_from_argv()).
10648 def __init__(self, *args, **kwargs):
10650 kwargs[
'add_help'] =
False
10651 super(ArgumentParser, self).__init__(*args, **kwargs)
10652 for ntoken
in (0, 1):
10653 flags = _get_all_flags(ntoken)
10655 arg = [
'-h',
'--help']
if f ==
'help' else [
'--' + f]
10656 self.add_argument(*arg, help=argparse.SUPPRESS,
10657 nargs=
None if ntoken
else 0,
10658 action=_PassThroughAction,
10659 default=argparse.SUPPRESS)
10662 """Parse the command line and return optional and positional arguments.
10663 This functions in the same way as the method in the base class
10664 argparse.ArgumentParser, except that it also processes optional
10665 arguments common to all IMP applications (these are not returned
10666 in `args`, but can be obtained in the usual way, e.g. by calling
10667 IMP::get_string_flag()).
10670 self._boost_command_line = [sys.argv[0]]
10671 ret = super(ArgumentParser, self).
parse_args(args, namespace)
10672 if len(self._boost_command_line) > 1:
10673 self._handle_boost()
10676 def _get_description(self):
10677 return self.format_help() +
"\nOptions common to all IMP applications:"
10679 def print_help(self, file=None):
10680 _print_internal_help(file
if file
else sys.stdout,
10681 self._get_description())
10683 def _handle_boost(self):
10685 self._get_description(),
10688 class RandomNumberGenerator(object):
10689 """Proxy of C++ IMP::RandomNumberGenerator class"""
10690 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
10691 __repr__ = _swig_repr
10694 """seed(RandomNumberGenerator self, ::boost::int32_t x)"""
10695 return _IMP_kernel.RandomNumberGenerator_seed(self, x)
10698 def __call__(self):
10699 """__call__(RandomNumberGenerator self) -> int"""
10700 return _IMP_kernel.RandomNumberGenerator___call__(self)
10703 def __init__(self):
10704 """__init__(IMP::RandomNumberGenerator self) -> RandomNumberGenerator"""
10705 this = _IMP_kernel.new_RandomNumberGenerator()
10707 self.this.append(this)
10710 __swig_destroy__ = _IMP_kernel.delete_RandomNumberGenerator
10711 __del__ =
lambda self:
None
10712 RandomNumberGenerator_swigregister = _IMP_kernel.RandomNumberGenerator_swigregister
10713 RandomNumberGenerator_swigregister(RandomNumberGenerator)
10718 get_random_float_uniform() -> float
10719 get_random_float_uniform(float min, float max) -> float
10721 return _IMP_kernel.get_random_float_uniform(*args)
10725 get_random_double_uniform() -> double
10726 get_random_double_uniform(double min, double max) -> double
10728 return _IMP_kernel.get_random_double_uniform(*args)
10730 def get_random_floats_normal(n, mean=0.0, stddev=1.0):
10732 get_random_floats_normal(unsigned int n, float mean=0.0, float stddev=1.0) -> IMP::Vector< float >
10733 get_random_floats_normal(unsigned int n, float mean=0.0) -> IMP::Vector< float >
10734 get_random_floats_normal(unsigned int n) -> IMP::Vector< float >
10736 return _IMP_kernel.get_random_floats_normal(n, mean, stddev)
10738 def get_random_doubles_normal(n, mean=0.0, stddev=1.0):
10740 get_random_doubles_normal(unsigned int n, double mean=0.0, double stddev=1.0) -> IMP::Vector< double >
10741 get_random_doubles_normal(unsigned int n, double mean=0.0) -> IMP::Vector< double >
10742 get_random_doubles_normal(unsigned int n) -> IMP::Vector< double >
10744 return _IMP_kernel.get_random_doubles_normal(n, mean, stddev)
10746 def get_random_floats_uniform(n):
10747 """get_random_floats_uniform(unsigned int n) -> IMP::Vector< float >"""
10748 return _IMP_kernel.get_random_floats_uniform(n)
10750 def get_random_doubles_uniform(n):
10751 """get_random_doubles_uniform(unsigned int n) -> IMP::Vector< double >"""
10752 return _IMP_kernel.get_random_doubles_uniform(n)
10755 """get_random_seed() -> boost::uint64_t"""
10756 return _IMP_kernel.get_random_seed()
10758 def _get_derivatives_numpy(m, k, m_pyobj):
10759 """_get_derivatives_numpy(Model m, FloatKey k, PyObject * m_pyobj) -> PyObject *"""
10760 return _IMP_kernel._get_derivatives_numpy(m, k, m_pyobj)
10762 def _get_floats_numpy(m, k, m_pyobj):
10763 """_get_floats_numpy(Model m, FloatKey k, PyObject * m_pyobj) -> PyObject *"""
10764 return _IMP_kernel._get_floats_numpy(m, k, m_pyobj)
10766 def _get_ints_numpy(m, k, m_pyobj):
10767 """_get_ints_numpy(Model m, IntKey k, PyObject * m_pyobj) -> PyObject *"""
10768 return _IMP_kernel._get_ints_numpy(m, k, m_pyobj)
10770 def _get_spheres_numpy(m, m_pyobj):
10771 """_get_spheres_numpy(Model m, PyObject * m_pyobj) -> PyObject *"""
10772 return _IMP_kernel._get_spheres_numpy(m, m_pyobj)
10774 def _get_sphere_derivatives_numpy(m, m_pyobj):
10775 """_get_sphere_derivatives_numpy(Model m, PyObject * m_pyobj) -> PyObject *"""
10776 return _IMP_kernel._get_sphere_derivatives_numpy(m, m_pyobj)
10780 ParticleIndex = numpy.int32
10781 except ImportError:
10786 """get_module_version() -> std::string const"""
10787 return _IMP_kernel.get_module_version()
10790 """get_example_path(std::string fname) -> std::string"""
10791 return _IMP_kernel.get_example_path(fname)
10794 """get_data_path(std::string fname) -> std::string"""
10795 return _IMP_kernel.get_data_path(fname)
10797 from .
import _version_check
10802 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.
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.
virtual ::IMP::VersionInfo get_version_info() const
Get information about the module and version of the object.
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.