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_GPERFTOOLS_swigconstant(_IMP_kernel)
269 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_kernel.IMP_KERNEL_HAS_GPERFTOOLS
271 _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_kernel)
272 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
274 _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_kernel)
275 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
277 _IMP_kernel.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_kernel)
278 IMPKERNEL_SHOW_WARNINGS = _IMP_kernel.IMPKERNEL_SHOW_WARNINGS
281 class _DirectorObjects(object):
282 """@internal Simple class to keep references to director objects
283 to prevent premature deletion."""
286 def register(self, obj):
287 """Take a reference to a director object; will only work for
288 refcounted C++ classes"""
289 if hasattr(obj,
'get_ref_count'):
290 self._objects.append(obj)
292 """Only drop our reference and allow cleanup by Python if no other
293 Python references exist (we hold 3 references: one in self._objects,
294 one in x, and one in the argument list for getrefcount) *and* no
295 other C++ references exist (the Python object always holds one)"""
296 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
297 or x.get_ref_count() > 1]
301 def get_object_count(self):
302 """Get number of director objects (useful for testing only)"""
303 return len(self._objects)
304 _director_objects = _DirectorObjects()
307 _IMP_kernel.DEFAULT_CHECK_swigconstant(_IMP_kernel)
308 DEFAULT_CHECK = _IMP_kernel.DEFAULT_CHECK
310 _IMP_kernel.NONE_swigconstant(_IMP_kernel)
311 NONE = _IMP_kernel.NONE
313 _IMP_kernel.USAGE_swigconstant(_IMP_kernel)
314 USAGE = _IMP_kernel.USAGE
316 _IMP_kernel.USAGE_AND_INTERNAL_swigconstant(_IMP_kernel)
317 USAGE_AND_INTERNAL = _IMP_kernel.USAGE_AND_INTERNAL
320 """set_check_level(IMP::CheckLevel tf)"""
321 return _IMP_kernel.set_check_level(tf)
324 """get_check_level() -> IMP::CheckLevel"""
325 return _IMP_kernel.get_check_level()
327 from _IMP_kernel
import Exception, InternalException, ModelException, EventException
328 from _IMP_kernel
import UsageException, IndexException, IOException, ValueException
329 from _IMP_kernel
import TypeException
331 class _ostream(object):
332 """Proxy of C++ std::ostream class"""
333 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
335 def __init__(self, *args, **kwargs):
336 raise AttributeError(
"No constructor defined")
337 __repr__ = _swig_repr
339 def write(self, osa_buf):
340 """write(_ostream self, char const * osa_buf)"""
341 return _IMP_kernel._ostream_write(self, osa_buf)
343 _ostream_swigregister = _IMP_kernel._ostream_swigregister
344 _ostream_swigregister(_ostream)
347 _IMP_kernel.IMP_COMPILER_HAS_OVERRIDE_swigconstant(_IMP_kernel)
348 IMP_COMPILER_HAS_OVERRIDE = _IMP_kernel.IMP_COMPILER_HAS_OVERRIDE
350 _IMP_kernel.IMP_COMPILER_HAS_FINAL_swigconstant(_IMP_kernel)
351 IMP_COMPILER_HAS_FINAL = _IMP_kernel.IMP_COMPILER_HAS_FINAL
353 _IMP_kernel.IMP_HAS_NOEXCEPT_swigconstant(_IMP_kernel)
354 IMP_HAS_NOEXCEPT = _IMP_kernel.IMP_HAS_NOEXCEPT
356 _raii_types.append(
"SetLogState")
359 _raii_types.append(
"SetNumberOfThreads")
362 _raii_types.append(
"SetCheckState")
365 _object_types.append(
"Object")
368 def _object_cast_to_Object(o):
369 """_object_cast_to_Object(Object * o) -> Object"""
370 return _IMP_kernel._object_cast_to_Object(o)
372 _object_types.append(
"_TestObject")
375 def _object_cast_to__TestObject(o):
376 """_object_cast_to__TestObject(Object * o) -> _TestObject"""
377 return _IMP_kernel._object_cast_to__TestObject(o)
380 _plural_types.append(
"VersionInfos")
381 _value_types.append(
"VersionInfo")
384 _raii_types.append(
"CreateLogContext")
387 _raii_types.append(
"WarningContext")
390 _raii_types.append(
"SetLogTarget")
394 _plural_types.append(
"_TestValues")
395 _value_types.append(
"_TestValue")
399 _plural_types.append(
"Floats")
400 _value_types.append(
"Float")
404 _plural_types.append(
"Ints")
405 _value_types.append(
"Int")
409 _plural_types.append(
"Strings")
410 _value_types.append(
"String")
414 _plural_types.append(
"_Protections")
415 _value_types.append(
"_Protection")
417 class _InputAdaptor(object):
418 """Proxy of C++ IMP::InputAdaptor class"""
419 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
421 def __init__(self, *args, **kwargs):
422 raise AttributeError(
"No constructor defined")
423 __repr__ = _swig_repr
424 __swig_destroy__ = _IMP_kernel.delete__InputAdaptor
425 __del__ =
lambda self:
None
426 _InputAdaptor_swigregister = _IMP_kernel._InputAdaptor_swigregister
427 _InputAdaptor_swigregister(_InputAdaptor)
429 class _NonCopyable(object):
430 """Proxy of C++ IMP::NonCopyable class"""
431 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
433 def __init__(self, *args, **kwargs):
434 raise AttributeError(
"No constructor defined")
435 __repr__ = _swig_repr
436 __swig_destroy__ = _IMP_kernel.delete__NonCopyable
437 __del__ =
lambda self:
None
438 _NonCopyable_swigregister = _IMP_kernel._NonCopyable_swigregister
439 _NonCopyable_swigregister(_NonCopyable)
441 class _RAII(_NonCopyable):
442 """Proxy of C++ IMP::RAII class"""
443 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
445 def __init__(self, *args, **kwargs):
446 raise AttributeError(
"No constructor defined")
447 __repr__ = _swig_repr
448 __swig_destroy__ = _IMP_kernel.delete__RAII
449 __del__ =
lambda self:
None
450 _RAII_swigregister = _IMP_kernel._RAII_swigregister
451 _RAII_swigregister(_RAII)
453 class _Value(object):
454 """Proxy of C++ IMP::Value class"""
455 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
457 def __init__(self, *args, **kwargs):
458 raise AttributeError(
"No constructor defined")
459 __repr__ = _swig_repr
460 __swig_destroy__ = _IMP_kernel.delete__Value
461 __del__ =
lambda self:
None
462 _Value_swigregister = _IMP_kernel._Value_swigregister
463 _Value_swigregister(_Value)
467 """get_executable_name() -> std::string"""
468 return _IMP_kernel.get_executable_name()
472 setup_from_argv(IMP::Strings const & argv, std::string description)
473 setup_from_argv(IMP::Strings const & argv, std::string description, std::string positional_description, int num_positional) -> IMP::Strings
475 return _IMP_kernel.setup_from_argv(*args)
478 """add_string_flag(std::string name, std::string default_value, std::string description)"""
479 return _IMP_kernel.add_string_flag(name, default_value, description)
482 """get_string_flag(std::string name) -> std::string"""
483 return _IMP_kernel.get_string_flag(name)
486 """add_int_flag(std::string name, size_t default_value, std::string description)"""
487 return _IMP_kernel.add_int_flag(name, default_value, description)
490 """get_int_flag(std::string name) -> size_t"""
491 return _IMP_kernel.get_int_flag(name)
494 """add_bool_flag(std::string name, std::string description)"""
495 return _IMP_kernel.add_bool_flag(name, description)
498 """get_bool_flag(std::string name) -> bool"""
499 return _IMP_kernel.get_bool_flag(name)
502 """add_float_flag(std::string name, double default_value, std::string description)"""
503 return _IMP_kernel.add_float_flag(name, default_value, description)
506 """get_float_flag(std::string name) -> double"""
507 return _IMP_kernel.get_float_flag(name)
511 write_help(_ostream out)
514 return _IMP_kernel.write_help(*args)
517 """get_is_quick_test() -> bool"""
518 return _IMP_kernel.get_is_quick_test()
520 _IMP_kernel.DEFAULT_swigconstant(_IMP_kernel)
521 DEFAULT = _IMP_kernel.DEFAULT
523 _IMP_kernel.SILENT_swigconstant(_IMP_kernel)
524 SILENT = _IMP_kernel.SILENT
526 _IMP_kernel.WARNING_swigconstant(_IMP_kernel)
527 WARNING = _IMP_kernel.WARNING
529 _IMP_kernel.PROGRESS_swigconstant(_IMP_kernel)
530 PROGRESS = _IMP_kernel.PROGRESS
532 _IMP_kernel.TERSE_swigconstant(_IMP_kernel)
533 TERSE = _IMP_kernel.TERSE
535 _IMP_kernel.VERBOSE_swigconstant(_IMP_kernel)
536 VERBOSE = _IMP_kernel.VERBOSE
538 _IMP_kernel.MEMORY_swigconstant(_IMP_kernel)
539 MEMORY = _IMP_kernel.MEMORY
541 _IMP_kernel.ALL_LOG_swigconstant(_IMP_kernel)
542 ALL_LOG = _IMP_kernel.ALL_LOG
544 _IMP_kernel.NO_STATISTICS_swigconstant(_IMP_kernel)
545 NO_STATISTICS = _IMP_kernel.NO_STATISTICS
547 _IMP_kernel.ALL_STATISTICS_swigconstant(_IMP_kernel)
548 ALL_STATISTICS = _IMP_kernel.ALL_STATISTICS
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)
782 def push_log_context(functionname, object):
783 """push_log_context(char const * functionname, void const * object)"""
784 return _IMP_kernel.push_log_context(functionname, object)
786 def pop_log_context():
787 """pop_log_context()"""
788 return _IMP_kernel.pop_log_context()
792 add_to_log(std::string to_write)
793 add_to_log(IMP::LogLevel level, std::string to_write)
795 return _IMP_kernel.add_to_log(*args)
798 """set_log_level(IMP::LogLevel l)"""
799 return _IMP_kernel.set_log_level(l)
802 """set_log_timer(bool tb)"""
803 return _IMP_kernel.set_log_timer(tb)
806 """reset_log_timer()"""
807 return _IMP_kernel.reset_log_timer()
810 """get_log_level() -> IMP::LogLevel"""
811 return _IMP_kernel.get_log_level()
814 """set_progress_display(std::string description, unsigned int steps)"""
815 return _IMP_kernel.set_progress_display(description, steps)
819 add_to_progress_display(unsigned int step=1)
820 add_to_progress_display()
822 return _IMP_kernel.add_to_progress_display(step)
823 class Object(_NonCopyable):
824 """Proxy of C++ IMP::Object class"""
825 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
827 def __init__(self, name):
828 """__init__(IMP::Object self, std::string name) -> Object"""
829 if self.__class__ == Object:
833 this = _IMP_kernel.new_Object(_self, name)
835 self.this.append(this)
839 if self.__class__ != Object:
840 _director_objects.register(self)
844 __swig_destroy__ = _IMP_kernel.delete_Object
845 __del__ =
lambda self:
None
848 """__hash__(Object self) -> std::size_t"""
849 return _IMP_kernel.Object___hash__(self)
853 """set_log_level(Object self, IMP::LogLevel l)"""
854 return _IMP_kernel.Object_set_log_level(self, l)
858 """set_check_level(Object self, IMP::CheckLevel l)"""
859 return _IMP_kernel.Object_set_check_level(self, l)
863 """get_log_level(Object self) -> IMP::LogLevel"""
864 return _IMP_kernel.Object_get_log_level(self)
868 """get_check_level(Object self) -> IMP::CheckLevel"""
869 return _IMP_kernel.Object_get_check_level(self)
872 def get_version_info(self):
873 """get_version_info(Object self) -> VersionInfo"""
874 return _IMP_kernel.Object_get_version_info(self)
878 """get_name(Object self) -> std::string const &"""
879 return _IMP_kernel.Object_get_name(self)
882 def set_name(self, name):
883 """set_name(Object self, std::string name)"""
884 return _IMP_kernel.Object_set_name(self, name)
887 def get_type_name(self):
888 """get_type_name(Object self) -> std::string"""
889 return _IMP_kernel.Object_get_type_name(self)
892 def set_was_used(self, tf):
893 """set_was_used(Object self, bool tf)"""
894 return _IMP_kernel.Object_set_was_used(self, tf)
897 def show(self, *args):
899 show(Object self, _ostream out)
902 return _IMP_kernel.Object_show(self, *args)
905 def get_string(self):
906 """get_string(Object self) -> std::string"""
907 return _IMP_kernel.Object_get_string(self)
910 def _on_destruction(self):
911 """_on_destruction(Object self)"""
912 return _IMP_kernel.Object__on_destruction(self)
915 def get_is_valid(self):
916 """get_is_valid(Object self) -> bool"""
917 return _IMP_kernel.Object_get_is_valid(self)
920 def get_ref_count(self):
921 """get_ref_count(Object self) -> unsigned int"""
922 return _IMP_kernel.Object_get_ref_count(self)
925 def get_number_of_live_objects():
926 """get_number_of_live_objects() -> unsigned int"""
927 return _IMP_kernel.Object_get_number_of_live_objects()
929 get_number_of_live_objects = staticmethod(get_number_of_live_objects)
931 def get_is_shared(self):
932 """get_is_shared(Object self) -> bool"""
933 return _IMP_kernel.Object_get_is_shared(self)
936 def clear_caches(self):
937 """clear_caches(Object self)"""
938 return _IMP_kernel.Object_clear_caches(self)
941 def do_destroy(self):
942 """do_destroy(Object self)"""
943 return _IMP_kernel.Object_do_destroy(self)
947 """__eq__(Object self, Object o) -> bool"""
948 return _IMP_kernel.Object___eq__(self, o)
952 """__ne__(Object self, Object o) -> bool"""
953 return _IMP_kernel.Object___ne__(self, o)
957 """__le__(Object self, Object o) -> bool"""
958 return _IMP_kernel.Object___le__(self, o)
962 """__lt__(Object self, Object o) -> bool"""
963 return _IMP_kernel.Object___lt__(self, o)
967 """__ge__(Object self, Object o) -> bool"""
968 return _IMP_kernel.Object___ge__(self, o)
972 """__gt__(Object self, Object o) -> bool"""
973 return _IMP_kernel.Object___gt__(self, o)
977 """__str__(Object self) -> std::string"""
978 return _IMP_kernel.Object___str__(self)
982 """__repr__(Object self) -> std::string"""
983 return _IMP_kernel.Object___repr__(self)
988 return _object_cast_to_Object(o)
990 def __disown__(self):
992 _IMP_kernel.disown_Object(self)
993 return weakref_proxy(self)
994 Object_swigregister = _IMP_kernel.Object_swigregister
995 Object_swigregister(Object)
997 def Object_get_number_of_live_objects():
998 """Object_get_number_of_live_objects() -> unsigned int"""
999 return _IMP_kernel.Object_get_number_of_live_objects()
1001 class SetLogState(_RAII):
1002 """Proxy of C++ IMP::SetLogState class"""
1003 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1006 """reset(SetLogState self)"""
1007 return _IMP_kernel.SetLogState_reset(self)
1009 __swig_destroy__ = _IMP_kernel.delete_SetLogState
1010 __del__ =
lambda self:
None
1012 def show(self, *args):
1014 show(SetLogState self, _ostream out)
1015 show(SetLogState self)
1017 return _IMP_kernel.SetLogState_show(self, *args)
1020 def __init__(self, *args):
1022 __init__(IMP::SetLogState self) -> SetLogState
1023 __init__(IMP::SetLogState self, Object o, IMP::LogLevel l) -> SetLogState
1024 __init__(IMP::SetLogState self, IMP::LogLevel l) -> SetLogState
1026 this = _IMP_kernel.new_SetLogState(*args)
1028 self.this.append(this)
1032 def set(self, *args):
1034 set(SetLogState self, Object o, IMP::LogLevel l)
1035 set(SetLogState self, IMP::LogLevel l)
1037 return _IMP_kernel.SetLogState_set(self, *args)
1040 def __enter__(self):
1042 def __exit__(self, exc_type, exc_val, exc_tb):
1048 """__str__(SetLogState self) -> std::string"""
1049 return _IMP_kernel.SetLogState___str__(self)
1053 """__repr__(SetLogState self) -> std::string"""
1054 return _IMP_kernel.SetLogState___repr__(self)
1056 SetLogState_swigregister = _IMP_kernel.SetLogState_swigregister
1057 SetLogState_swigregister(SetLogState)
1059 class WarningContext(object):
1060 """Proxy of C++ IMP::WarningContext class"""
1061 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1062 data_ = _swig_property(_IMP_kernel.WarningContext_data__get, _IMP_kernel.WarningContext_data__set)
1064 def add_warning(self, key, warning):
1065 """add_warning(WarningContext self, std::string key, std::string warning)"""
1066 return _IMP_kernel.WarningContext_add_warning(self, key, warning)
1069 def clear_warnings(self):
1070 """clear_warnings(WarningContext self)"""
1071 return _IMP_kernel.WarningContext_clear_warnings(self)
1074 def dump_warnings(self):
1075 """dump_warnings(WarningContext self)"""
1076 return _IMP_kernel.WarningContext_dump_warnings(self)
1078 __swig_destroy__ = _IMP_kernel.delete_WarningContext
1079 __del__ =
lambda self:
None
1081 def show(self, *args):
1083 show(WarningContext self, _ostream out)
1084 show(WarningContext self)
1086 return _IMP_kernel.WarningContext_show(self, *args)
1089 def __enter__(self):
1091 def __exit__(self, exc_type, exc_val, exc_tb):
1097 """__str__(WarningContext self) -> std::string"""
1098 return _IMP_kernel.WarningContext___str__(self)
1102 """__repr__(WarningContext self) -> std::string"""
1103 return _IMP_kernel.WarningContext___repr__(self)
1107 """__init__(IMP::WarningContext self) -> WarningContext"""
1108 this = _IMP_kernel.new_WarningContext()
1110 self.this.append(this)
1113 WarningContext_swigregister = _IMP_kernel.WarningContext_swigregister
1114 WarningContext_swigregister(WarningContext)
1116 class CreateLogContext(_RAII):
1117 """Proxy of C++ IMP::CreateLogContext class"""
1118 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1120 def __init__(self, *args):
1122 __init__(IMP::CreateLogContext self, std::string fname, Object object=None) -> CreateLogContext
1123 __init__(IMP::CreateLogContext self, std::string fname) -> CreateLogContext
1124 __init__(IMP::CreateLogContext self) -> CreateLogContext
1125 __init__(IMP::CreateLogContext self, char const * fname, Object object=None) -> CreateLogContext
1126 __init__(IMP::CreateLogContext self, char const * fname) -> CreateLogContext
1128 this = _IMP_kernel.new_CreateLogContext(*args)
1130 self.this.append(this)
1134 def set(self, fname, object=None):
1136 set(CreateLogContext self, char const * fname, Object object=None)
1137 set(CreateLogContext self, char const * fname)
1139 return _IMP_kernel.CreateLogContext_set(self, fname, object)
1143 """reset(CreateLogContext self)"""
1144 return _IMP_kernel.CreateLogContext_reset(self)
1146 __swig_destroy__ = _IMP_kernel.delete_CreateLogContext
1147 __del__ =
lambda self:
None
1149 def show(self, *args):
1151 show(CreateLogContext self, _ostream out)
1152 show(CreateLogContext self)
1154 return _IMP_kernel.CreateLogContext_show(self, *args)
1157 def __enter__(self):
1159 def __exit__(self, exc_type, exc_val, exc_tb):
1165 """__str__(CreateLogContext self) -> std::string"""
1166 return _IMP_kernel.CreateLogContext___str__(self)
1170 """__repr__(CreateLogContext self) -> std::string"""
1171 return _IMP_kernel.CreateLogContext___repr__(self)
1173 CreateLogContext_swigregister = _IMP_kernel.CreateLogContext_swigregister
1174 CreateLogContext_swigregister(CreateLogContext)
1176 class SetCheckState(_RAII):
1177 """Proxy of C++ IMP::SetCheckState class"""
1178 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1181 """reset(SetCheckState self)"""
1182 return _IMP_kernel.SetCheckState_reset(self)
1184 __swig_destroy__ = _IMP_kernel.delete_SetCheckState
1185 __del__ =
lambda self:
None
1187 def show(self, *args):
1189 show(SetCheckState self, _ostream out)
1190 show(SetCheckState self)
1192 return _IMP_kernel.SetCheckState_show(self, *args)
1195 def __init__(self, *args):
1197 __init__(IMP::SetCheckState self) -> SetCheckState
1198 __init__(IMP::SetCheckState self, Object o, IMP::CheckLevel l) -> SetCheckState
1199 __init__(IMP::SetCheckState self, IMP::CheckLevel l) -> SetCheckState
1201 this = _IMP_kernel.new_SetCheckState(*args)
1203 self.this.append(this)
1207 def set(self, *args):
1209 set(SetCheckState self, Object o, IMP::CheckLevel l)
1210 set(SetCheckState self, IMP::CheckLevel l)
1212 return _IMP_kernel.SetCheckState_set(self, *args)
1215 def __enter__(self):
1217 def __exit__(self, exc_type, exc_val, exc_tb):
1223 """__str__(SetCheckState self) -> std::string"""
1224 return _IMP_kernel.SetCheckState___str__(self)
1228 """__repr__(SetCheckState self) -> std::string"""
1229 return _IMP_kernel.SetCheckState___repr__(self)
1231 SetCheckState_swigregister = _IMP_kernel.SetCheckState_swigregister
1232 SetCheckState_swigregister(SetCheckState)
1236 """get_unique_name(std::string templ) -> std::string"""
1237 return _IMP_kernel.get_unique_name(templ)
1238 class _Protection(object):
1239 """Proxy of C++ IMP::internal::_Protection class"""
1240 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1242 def __init__(self, *args, **kwargs):
1243 raise AttributeError(
"No constructor defined")
1245 def show(self, *args):
1247 show(_Protection self, _ostream out)
1248 show(_Protection self)
1250 return _IMP_kernel._Protection_show(self, *args)
1254 """__str__(_Protection self) -> std::string"""
1255 return _IMP_kernel._Protection___str__(self)
1259 """__repr__(_Protection self) -> std::string"""
1260 return _IMP_kernel._Protection___repr__(self)
1262 __swig_destroy__ = _IMP_kernel.delete__Protection
1263 __del__ =
lambda self:
None
1264 _Protection_swigregister = _IMP_kernel._Protection_swigregister
1265 _Protection_swigregister(_Protection)
1270 return _IMP_kernel._test_log()
1272 def _test_intranges(ips):
1273 """_test_intranges(IMP::IntRanges const & ips) -> int"""
1274 return _IMP_kernel._test_intranges(ips)
1276 def _test_intrange(*args):
1278 _test_intrange(IMP::IntRange const & ips) -> IMP::IntRange
1279 _test_intrange() -> IMP::IntRange
1281 return _IMP_kernel._test_intrange(*args)
1284 """_test_ifile(TextInput a) -> std::string"""
1285 return _IMP_kernel._test_ifile(a)
1288 """_test_ofile(TextOutput a) -> std::string"""
1289 return _IMP_kernel._test_ofile(a)
1291 def _test_ifile_overloaded(*args):
1293 _test_ifile_overloaded(TextInput a, int i) -> std::string
1294 _test_ifile_overloaded(TextInput a, std::string st) -> std::string
1296 return _IMP_kernel._test_ifile_overloaded(*args)
1298 def _test_ofile_overloaded(*args):
1300 _test_ofile_overloaded(TextOutput a, int i) -> std::string
1301 _test_ofile_overloaded(TextOutput a, std::string st) -> std::string
1303 return _IMP_kernel._test_ofile_overloaded(*args)
1304 class _TestValue(object):
1305 """Proxy of C++ IMP::internal::_TestValue class"""
1306 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1308 def __init__(self, i):
1309 """__init__(IMP::internal::_TestValue self, int i) -> _TestValue"""
1310 this = _IMP_kernel.new__TestValue(i)
1312 self.this.append(this)
1316 def show(self, *args):
1318 show(_TestValue self, _ostream out)
1319 show(_TestValue self)
1321 return _IMP_kernel._TestValue_show(self, *args)
1324 def __cmp__(self, o):
1325 """__cmp__(_TestValue self, _TestValue o) -> int"""
1326 return _IMP_kernel._TestValue___cmp__(self, o)
1329 def __eq__(self, o):
1330 """__eq__(_TestValue self, _TestValue o) -> bool"""
1331 return _IMP_kernel._TestValue___eq__(self, o)
1334 def __ne__(self, o):
1335 """__ne__(_TestValue self, _TestValue o) -> bool"""
1336 return _IMP_kernel._TestValue___ne__(self, o)
1339 def __lt__(self, o):
1340 """__lt__(_TestValue self, _TestValue o) -> bool"""
1341 return _IMP_kernel._TestValue___lt__(self, o)
1344 def __gt__(self, o):
1345 """__gt__(_TestValue self, _TestValue o) -> bool"""
1346 return _IMP_kernel._TestValue___gt__(self, o)
1349 def __ge__(self, o):
1350 """__ge__(_TestValue self, _TestValue o) -> bool"""
1351 return _IMP_kernel._TestValue___ge__(self, o)
1354 def __le__(self, o):
1355 """__le__(_TestValue self, _TestValue o) -> bool"""
1356 return _IMP_kernel._TestValue___le__(self, o)
1360 """get(_TestValue self) -> int"""
1361 return _IMP_kernel._TestValue_get(self)
1364 def get_float(self):
1365 """get_float(_TestValue self) -> float const &"""
1366 return _IMP_kernel._TestValue_get_float(self)
1369 def get_double(self):
1370 """get_double(_TestValue self) -> double const &"""
1371 return _IMP_kernel._TestValue_get_double(self)
1374 def get_Float(self):
1375 """get_Float(_TestValue self) -> IMP::Float const &"""
1376 return _IMP_kernel._TestValue_get_Float(self)
1380 """get_int(_TestValue self) -> int const &"""
1381 return _IMP_kernel._TestValue_get_int(self)
1385 """get_Int(_TestValue self) -> IMP::Int const &"""
1386 return _IMP_kernel._TestValue_get_Int(self)
1389 def get_string(self):
1390 """get_string(_TestValue self) -> std::string const &"""
1391 return _IMP_kernel._TestValue_get_string(self)
1394 def get_String(self):
1395 """get_String(_TestValue self) -> IMP::String const &"""
1396 return _IMP_kernel._TestValue_get_String(self)
1400 """__str__(_TestValue self) -> std::string"""
1401 return _IMP_kernel._TestValue___str__(self)
1405 """__repr__(_TestValue self) -> std::string"""
1406 return _IMP_kernel._TestValue___repr__(self)
1408 __swig_destroy__ = _IMP_kernel.delete__TestValue
1409 __del__ =
lambda self:
None
1410 _TestValue_swigregister = _IMP_kernel._TestValue_swigregister
1411 _TestValue_swigregister(_TestValue)
1414 def _pass_plain_pair(p):
1415 """_pass_plain_pair(IMP::FloatPair p) -> IMP::FloatPair"""
1416 return _IMP_kernel._pass_plain_pair(p)
1418 def _pass_overloaded_strings(*args):
1420 _pass_overloaded_strings(IMP::Strings const & a, int arg2) -> IMP::Strings
1421 _pass_overloaded_strings(IMP::Strings const & a) -> IMP::Strings
1423 return _IMP_kernel._pass_overloaded_strings(*args)
1426 """_pass_pair(IMP::DerivativePair const & p) -> IMP::DerivativePair"""
1427 return _IMP_kernel._pass_pair(p)
1429 def _pass_floats(input):
1430 """_pass_floats(IMP::Floats const & input) -> IMP::Floats"""
1431 return _IMP_kernel._pass_floats(input)
1433 def _pass_ints(input):
1434 """_pass_ints(IMP::Ints input) -> IMP::Ints"""
1435 return _IMP_kernel._pass_ints(input)
1437 def _pass_ints_list(input):
1438 """_pass_ints_list(IMP::IntsList const & input) -> IMP::IntsList"""
1439 return _IMP_kernel._pass_ints_list(input)
1441 def _pass_ints_lists(input):
1442 """_pass_ints_lists(IMP::IntsLists const & input) -> IMP::IntsLists"""
1443 return _IMP_kernel._pass_ints_lists(input)
1445 def _pass_strings(input):
1446 """_pass_strings(IMP::Strings const & input) -> IMP::Strings const &"""
1447 return _IMP_kernel._pass_strings(input)
1448 class _TestObject(Object):
1449 """Proxy of C++ IMP::internal::_TestObject class"""
1450 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1453 """__init__(IMP::internal::_TestObject self) -> _TestObject"""
1454 this = _IMP_kernel.new__TestObject()
1456 self.this.append(this)
1460 def get_version_info(self):
1461 """get_version_info(_TestObject self) -> VersionInfo"""
1462 return _IMP_kernel._TestObject_get_version_info(self)
1466 """__str__(_TestObject self) -> std::string"""
1467 return _IMP_kernel._TestObject___str__(self)
1471 """__repr__(_TestObject self) -> std::string"""
1472 return _IMP_kernel._TestObject___repr__(self)
1477 return _object_cast_to__TestObject(o)
1479 _TestObject_swigregister = _IMP_kernel._TestObject_swigregister
1480 _TestObject_swigregister(_TestObject)
1484 """get_live_object_names() -> IMP::Strings"""
1485 return _IMP_kernel.get_live_object_names()
1488 """get_live_objects() -> IMP::Objects"""
1489 return _IMP_kernel.get_live_objects()
1492 """set_show_leaked_objects(bool tf)"""
1493 return _IMP_kernel.set_show_leaked_objects(tf)
1496 """set_deprecation_warnings(bool tf)"""
1497 return _IMP_kernel.set_deprecation_warnings(tf)
1500 """set_deprecation_exceptions(bool tf)"""
1501 return _IMP_kernel.set_deprecation_exceptions(tf)
1504 """get_deprecation_exceptions() -> bool"""
1505 return _IMP_kernel.get_deprecation_exceptions()
1508 """handle_use_deprecated(std::string message)"""
1509 return _IMP_kernel.handle_use_deprecated(message)
1512 """get_number_of_threads() -> unsigned int"""
1513 return _IMP_kernel.get_number_of_threads()
1516 """set_number_of_threads(unsigned int n)"""
1517 return _IMP_kernel.set_number_of_threads(n)
1518 class SetNumberOfThreads(_RAII):
1519 """Proxy of C++ IMP::SetNumberOfThreads class"""
1520 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1522 def __init__(self, *args):
1524 __init__(IMP::SetNumberOfThreads self) -> SetNumberOfThreads
1525 __init__(IMP::SetNumberOfThreads self, unsigned int n) -> SetNumberOfThreads
1527 this = _IMP_kernel.new_SetNumberOfThreads(*args)
1529 self.this.append(this)
1534 """set(SetNumberOfThreads self, unsigned int n)"""
1535 return _IMP_kernel.SetNumberOfThreads_set(self, n)
1539 """reset(SetNumberOfThreads self)"""
1540 return _IMP_kernel.SetNumberOfThreads_reset(self)
1542 __swig_destroy__ = _IMP_kernel.delete_SetNumberOfThreads
1543 __del__ =
lambda self:
None
1545 def show(self, *args):
1547 show(SetNumberOfThreads self, _ostream out)
1548 show(SetNumberOfThreads self)
1550 return _IMP_kernel.SetNumberOfThreads_show(self, *args)
1553 def __enter__(self):
1555 def __exit__(self, exc_type, exc_val, exc_tb):
1561 """__str__(SetNumberOfThreads self) -> std::string"""
1562 return _IMP_kernel.SetNumberOfThreads___str__(self)
1566 """__repr__(SetNumberOfThreads self) -> std::string"""
1567 return _IMP_kernel.SetNumberOfThreads___repr__(self)
1569 SetNumberOfThreads_swigregister = _IMP_kernel.SetNumberOfThreads_swigregister
1570 SetNumberOfThreads_swigregister(SetNumberOfThreads)
1574 """clear_statistics()"""
1575 return _IMP_kernel.clear_statistics()
1578 """show_timings(TextOutput out)"""
1579 return _IMP_kernel.show_timings(out)
1581 """Proxy of C++ IMP::Timer class"""
1582 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1583 __repr__ = _swig_repr
1585 def __init__(self, *args):
1587 __init__(IMP::Timer self, Object object, std::string const & operation) -> Timer
1588 __init__(IMP::Timer self, Object object, char const * operation) -> Timer
1589 __init__(IMP::Timer self, std::string operation) -> Timer
1591 this = _IMP_kernel.new_Timer(*args)
1593 self.this.append(this)
1596 __swig_destroy__ = _IMP_kernel.delete_Timer
1597 __del__ =
lambda self:
None
1598 Timer_swigregister = _IMP_kernel.Timer_swigregister
1599 Timer_swigregister(Timer)
1603 """set_statistics_level(IMP::StatisticsLevel l)"""
1604 return _IMP_kernel.set_statistics_level(l)
1607 i_m_p=
"IMP_MODULE_PATH"
1608 if i_m_p
in os.environ.keys():
1609 __path__.insert(0, os.environ[i_m_p])
1611 def _forward_add_attribute(self, name, value, opt=None):
1613 self.get_particle().add_attribute(name, value, opt)
1615 self.get_particle().add_attribute(name, value)
1616 def _forward_get_value(self, name):
1617 self.get_particle().get_value(name)
1618 def _forward_set_value(self, name, value):
1619 self.get_particle().set_value(name, value)
1625 _object_types.append(
"Constraint")
1628 def _object_cast_to_Constraint(o):
1629 """_object_cast_to_Constraint(Object o) -> Constraint"""
1630 return _IMP_kernel._object_cast_to_Constraint(o)
1632 _object_types.append(
"Undecorator")
1635 def _object_cast_to_Undecorator(o):
1636 """_object_cast_to_Undecorator(Object o) -> Undecorator"""
1637 return _IMP_kernel._object_cast_to_Undecorator(o)
1639 _object_types.append(
"Container")
1642 def _object_cast_to_Container(o):
1643 """_object_cast_to_Container(Object o) -> Container"""
1644 return _IMP_kernel._object_cast_to_Container(o)
1646 _object_types.append(
"Optimizer")
1649 def _object_cast_to_Optimizer(o):
1650 """_object_cast_to_Optimizer(Object o) -> Optimizer"""
1651 return _IMP_kernel._object_cast_to_Optimizer(o)
1653 _object_types.append(
"AttributeOptimizer")
1656 def _object_cast_to_AttributeOptimizer(o):
1657 """_object_cast_to_AttributeOptimizer(Object o) -> AttributeOptimizer"""
1658 return _IMP_kernel._object_cast_to_AttributeOptimizer(o)
1660 _object_types.append(
"OptimizerState")
1663 def _object_cast_to_OptimizerState(o):
1664 """_object_cast_to_OptimizerState(Object o) -> OptimizerState"""
1665 return _IMP_kernel._object_cast_to_OptimizerState(o)
1667 _object_types.append(
"PairContainer")
1670 def _object_cast_to_PairContainer(o):
1671 """_object_cast_to_PairContainer(Object o) -> PairContainer"""
1672 return _IMP_kernel._object_cast_to_PairContainer(o)
1674 _object_types.append(
"PairModifier")
1677 def _object_cast_to_PairModifier(o):
1678 """_object_cast_to_PairModifier(Object o) -> PairModifier"""
1679 return _IMP_kernel._object_cast_to_PairModifier(o)
1681 _object_types.append(
"PairScore")
1684 def _object_cast_to_PairScore(o):
1685 """_object_cast_to_PairScore(Object o) -> PairScore"""
1686 return _IMP_kernel._object_cast_to_PairScore(o)
1688 _object_types.append(
"QuadContainer")
1691 def _object_cast_to_QuadContainer(o):
1692 """_object_cast_to_QuadContainer(Object o) -> QuadContainer"""
1693 return _IMP_kernel._object_cast_to_QuadContainer(o)
1695 _object_types.append(
"QuadModifier")
1698 def _object_cast_to_QuadModifier(o):
1699 """_object_cast_to_QuadModifier(Object o) -> QuadModifier"""
1700 return _IMP_kernel._object_cast_to_QuadModifier(o)
1702 _object_types.append(
"QuadScore")
1705 def _object_cast_to_QuadScore(o):
1706 """_object_cast_to_QuadScore(Object o) -> QuadScore"""
1707 return _IMP_kernel._object_cast_to_QuadScore(o)
1709 _object_types.append(
"Refiner")
1712 def _object_cast_to_Refiner(o):
1713 """_object_cast_to_Refiner(Object o) -> Refiner"""
1714 return _IMP_kernel._object_cast_to_Refiner(o)
1716 _object_types.append(
"Restraint")
1719 def _object_cast_to_Restraint(o):
1720 """_object_cast_to_Restraint(Object o) -> Restraint"""
1721 return _IMP_kernel._object_cast_to_Restraint(o)
1723 _object_types.append(
"Sampler")
1726 def _object_cast_to_Sampler(o):
1727 """_object_cast_to_Sampler(Object o) -> Sampler"""
1728 return _IMP_kernel._object_cast_to_Sampler(o)
1730 _object_types.append(
"ScoreState")
1733 def _object_cast_to_ScoreState(o):
1734 """_object_cast_to_ScoreState(Object o) -> ScoreState"""
1735 return _IMP_kernel._object_cast_to_ScoreState(o)
1737 _object_types.append(
"SingletonContainer")
1740 def _object_cast_to_SingletonContainer(o):
1741 """_object_cast_to_SingletonContainer(Object o) -> SingletonContainer"""
1742 return _IMP_kernel._object_cast_to_SingletonContainer(o)
1744 _object_types.append(
"SingletonModifier")
1747 def _object_cast_to_SingletonModifier(o):
1748 """_object_cast_to_SingletonModifier(Object o) -> SingletonModifier"""
1749 return _IMP_kernel._object_cast_to_SingletonModifier(o)
1751 _object_types.append(
"SingletonScore")
1754 def _object_cast_to_SingletonScore(o):
1755 """_object_cast_to_SingletonScore(Object o) -> SingletonScore"""
1756 return _IMP_kernel._object_cast_to_SingletonScore(o)
1758 _object_types.append(
"TripletContainer")
1761 def _object_cast_to_TripletContainer(o):
1762 """_object_cast_to_TripletContainer(Object o) -> TripletContainer"""
1763 return _IMP_kernel._object_cast_to_TripletContainer(o)
1765 _object_types.append(
"TripletModifier")
1768 def _object_cast_to_TripletModifier(o):
1769 """_object_cast_to_TripletModifier(Object o) -> TripletModifier"""
1770 return _IMP_kernel._object_cast_to_TripletModifier(o)
1772 _object_types.append(
"TripletScore")
1775 def _object_cast_to_TripletScore(o):
1776 """_object_cast_to_TripletScore(Object o) -> TripletScore"""
1777 return _IMP_kernel._object_cast_to_TripletScore(o)
1779 _object_types.append(
"UnaryFunction")
1782 def _object_cast_to_UnaryFunction(o):
1783 """_object_cast_to_UnaryFunction(Object o) -> UnaryFunction"""
1784 return _IMP_kernel._object_cast_to_UnaryFunction(o)
1786 _object_types.append(
"ConfigurationSet")
1789 def _object_cast_to_ConfigurationSet(o):
1790 """_object_cast_to_ConfigurationSet(Object o) -> ConfigurationSet"""
1791 return _IMP_kernel._object_cast_to_ConfigurationSet(o)
1793 _object_types.append(
"Configuration")
1796 def _object_cast_to_Configuration(o):
1797 """_object_cast_to_Configuration(Object o) -> Configuration"""
1798 return _IMP_kernel._object_cast_to_Configuration(o)
1800 _object_types.append(
"Model")
1803 def _object_cast_to_Model(o):
1804 """_object_cast_to_Model(Object o) -> Model"""
1805 return _IMP_kernel._object_cast_to_Model(o)
1807 _object_types.append(
"Particle")
1810 def _object_cast_to_Particle(o):
1811 """_object_cast_to_Particle(Object o) -> Particle"""
1812 return _IMP_kernel._object_cast_to_Particle(o)
1814 _object_types.append(
"RestraintSet")
1817 def _object_cast_to_RestraintSet(o):
1818 """_object_cast_to_RestraintSet(Object o) -> RestraintSet"""
1819 return _IMP_kernel._object_cast_to_RestraintSet(o)
1821 ParticlePairsTemp=list
1822 _plural_types.append(
"ParticlePairsTemp")
1823 _value_types.append(
"ParticlePair")
1826 ParticleTripletsTemp=list
1827 _plural_types.append(
"ParticleTripletsTemp")
1828 _value_types.append(
"ParticleTriplet")
1831 ParticleQuadsTemp=list
1832 _plural_types.append(
"ParticleQuadsTemp")
1833 _value_types.append(
"ParticleQuad")
1836 ParticleIndexPairs=list
1837 _plural_types.append(
"ParticleIndexPairs")
1838 _value_types.append(
"ParticleIndexPair")
1841 ParticleIndexTriplets=list
1842 _plural_types.append(
"ParticleIndexTriplets")
1843 _value_types.append(
"ParticleIndexTriplet")
1846 ParticleIndexQuads=list
1847 _plural_types.append(
"ParticleIndexQuads")
1848 _value_types.append(
"ParticleIndexQuad")
1851 _object_types.append(
"SingletonPredicate")
1854 def _object_cast_to_SingletonPredicate(o):
1855 """_object_cast_to_SingletonPredicate(Object o) -> SingletonPredicate"""
1856 return _IMP_kernel._object_cast_to_SingletonPredicate(o)
1858 _object_types.append(
"PairPredicate")
1861 def _object_cast_to_PairPredicate(o):
1862 """_object_cast_to_PairPredicate(Object o) -> PairPredicate"""
1863 return _IMP_kernel._object_cast_to_PairPredicate(o)
1865 _object_types.append(
"TripletPredicate")
1868 def _object_cast_to_TripletPredicate(o):
1869 """_object_cast_to_TripletPredicate(Object o) -> TripletPredicate"""
1870 return _IMP_kernel._object_cast_to_TripletPredicate(o)
1872 _object_types.append(
"QuadPredicate")
1875 def _object_cast_to_QuadPredicate(o):
1876 """_object_cast_to_QuadPredicate(Object o) -> QuadPredicate"""
1877 return _IMP_kernel._object_cast_to_QuadPredicate(o)
1879 _object_types.append(
"SaveToConfigurationSetOptimizerState")
1882 def _object_cast_to_SaveToConfigurationSetOptimizerState(o):
1883 """_object_cast_to_SaveToConfigurationSetOptimizerState(Object o) -> SaveToConfigurationSetOptimizerState"""
1884 return _IMP_kernel._object_cast_to_SaveToConfigurationSetOptimizerState(o)
1886 EvaluationStates=list
1887 _plural_types.append(
"EvaluationStates")
1888 _value_types.append(
"EvaluationState")
1891 ScoreAccumulators=list
1892 _plural_types.append(
"ScoreAccumulators")
1893 _value_types.append(
"ScoreAccumulator")
1896 ParticleIndexes=list
1897 _plural_types.append(
"ParticleIndexes")
1898 _value_types.append(
"ParticleIndex")
1902 _plural_types.append(
"FloatIndexes")
1903 _value_types.append(
"FloatIndex")
1907 _plural_types.append(
"FloatKeys")
1908 _value_types.append(
"FloatKey")
1912 _plural_types.append(
"IntKeys")
1913 _value_types.append(
"IntKey")
1917 _plural_types.append(
"StringKeys")
1918 _value_types.append(
"StringKey")
1921 ParticleIndexKeys=list
1922 _plural_types.append(
"ParticleIndexKeys")
1923 _value_types.append(
"ParticleIndexKey")
1926 ParticleIndexesKeys=list
1927 _plural_types.append(
"ParticleIndexesKeys")
1928 _value_types.append(
"ParticleIndexesKey")
1932 _plural_types.append(
"ObjectKeys")
1933 _value_types.append(
"ObjectKey")
1937 _plural_types.append(
"ModelKeys")
1938 _value_types.append(
"ModelKey")
1941 _raii_types.append(
"ScopedSetFloatAttribute")
1944 _object_types.append(
"ScoringFunction")
1947 def _object_cast_to_ScoringFunction(o):
1948 """_object_cast_to_ScoringFunction(Object o) -> ScoringFunction"""
1949 return _IMP_kernel._object_cast_to_ScoringFunction(o)
1951 _object_types.append(
"ModelObject")
1954 def _object_cast_to_ModelObject(o):
1955 """_object_cast_to_ModelObject(Object o) -> ModelObject"""
1956 return _IMP_kernel._object_cast_to_ModelObject(o)
1958 def _TrivialDecorators(l=[]):
1959 return [_TrivialDecorator(x)
for x
in l]
1960 _plural_types.append(
"_TrivialDecorators")
1963 _value_types.append(
"_TrivialDecorator")
1966 def _TrivialDerivedDecorators(l=[]):
1967 return [_TrivialDerivedDecorator(x)
for x
in l]
1968 _plural_types.append(
"_TrivialDerivedDecorators")
1971 _value_types.append(
"_TrivialDerivedDecorator")
1974 def _TrivialTraitsDecorators(l=[]):
1975 return [_TrivialTraitsDecorator(x)
for x
in l]
1976 _plural_types.append(
"_TrivialTraitsDecorators")
1979 _value_types.append(
"_TrivialTraitsDecorator")
1982 _object_types.append(
"_ConstRestraint")
1985 def _object_cast_to__ConstRestraint(o):
1986 """_object_cast_to__ConstRestraint(Object o) -> _ConstRestraint"""
1987 return _IMP_kernel._object_cast_to__ConstRestraint(o)
1989 _object_types.append(
"_ConstOptimizer")
1992 def _object_cast_to__ConstOptimizer(o):
1993 """_object_cast_to__ConstOptimizer(Object o) -> _ConstOptimizer"""
1994 return _IMP_kernel._object_cast_to__ConstOptimizer(o)
1996 """Proxy of C++ IMP::internal::BoostDigraph<(IMP::DependencyGraph,p.IMP::ModelObject,IMP::ShowDependencyGraphVertex)> class"""
1997 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1998 __repr__ = _swig_repr
2001 """__init__(IMP::internal::BoostDigraph<(IMP::DependencyGraph,p.IMP::ModelObject,IMP::ShowDependencyGraphVertex)> self) -> DependencyGraph"""
2002 this = _IMP_kernel.new_DependencyGraph()
2004 self.this.append(this)
2008 def get_graph(self):
2009 """get_graph(DependencyGraph self) -> IMP::DependencyGraph const &"""
2010 return _IMP_kernel.DependencyGraph_get_graph(self)
2014 """get_vertices(DependencyGraph self) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptors"""
2015 return _IMP_kernel.DependencyGraph_get_vertices(self)
2018 def get_vertex_name(self, i):
2019 """get_vertex_name(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor i) -> ModelObject"""
2020 return _IMP_kernel.DependencyGraph_get_vertex_name(self, i)
2023 def get_in_neighbors(self, v):
2024 """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"""
2025 return _IMP_kernel.DependencyGraph_get_in_neighbors(self, v)
2028 def get_out_neighbors(self, v):
2029 """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"""
2030 return _IMP_kernel.DependencyGraph_get_out_neighbors(self, v)
2035 show_graphviz(DependencyGraph self, _ostream out)
2036 show_graphviz(DependencyGraph self)
2038 return _IMP_kernel.DependencyGraph_show_graphviz(self, *args)
2041 def get_graphviz_string(self):
2042 """get_graphviz_string(DependencyGraph self) -> std::string"""
2043 return _IMP_kernel.DependencyGraph_get_graphviz_string(self)
2046 def add_edge(self, v0, v1):
2047 """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)"""
2048 return _IMP_kernel.DependencyGraph_add_edge(self, v0, v1)
2051 def add_vertex(self, l):
2052 """add_vertex(DependencyGraph self, ModelObject l) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor"""
2053 return _IMP_kernel.DependencyGraph_add_vertex(self, l)
2056 def remove_vertex(self, l):
2057 """remove_vertex(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor l)"""
2058 return _IMP_kernel.DependencyGraph_remove_vertex(self, l)
2060 __swig_destroy__ = _IMP_kernel.delete_DependencyGraph
2061 __del__ =
lambda self:
None
2062 DependencyGraph_swigregister = _IMP_kernel.DependencyGraph_swigregister
2063 DependencyGraph_swigregister(DependencyGraph)
2066 _value_types.append(
"DependencyGraph")
2069 """Proxy of C++ IMP::Key<(0,true)> class"""
2070 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2072 def __init__(self, *args):
2074 __init__(IMP::Key<(0,true)> self) -> FloatKey
2075 __init__(IMP::Key<(0,true)> self, std::string c) -> FloatKey
2076 __init__(IMP::Key<(0,true)> self, unsigned int i) -> FloatKey
2078 this = _IMP_kernel.new_FloatKey(*args)
2080 self.this.append(this)
2085 """add_key(std::string sc) -> unsigned int"""
2086 return _IMP_kernel.FloatKey_add_key(sc)
2088 add_key = staticmethod(add_key)
2090 def get_key_exists(sc):
2091 """get_key_exists(std::string sc) -> bool"""
2092 return _IMP_kernel.FloatKey_get_key_exists(sc)
2094 get_key_exists = staticmethod(get_key_exists)
2096 def get_string(self):
2097 """get_string(FloatKey self) -> std::string const"""
2098 return _IMP_kernel.FloatKey_get_string(self)
2101 def __cmp__(self, o):
2102 """__cmp__(FloatKey self, FloatKey o) -> int"""
2103 return _IMP_kernel.FloatKey___cmp__(self, o)
2106 def __eq__(self, o):
2107 """__eq__(FloatKey self, FloatKey o) -> bool"""
2108 return _IMP_kernel.FloatKey___eq__(self, o)
2111 def __ne__(self, o):
2112 """__ne__(FloatKey self, FloatKey o) -> bool"""
2113 return _IMP_kernel.FloatKey___ne__(self, o)
2116 def __lt__(self, o):
2117 """__lt__(FloatKey self, FloatKey o) -> bool"""
2118 return _IMP_kernel.FloatKey___lt__(self, o)
2121 def __gt__(self, o):
2122 """__gt__(FloatKey self, FloatKey o) -> bool"""
2123 return _IMP_kernel.FloatKey___gt__(self, o)
2126 def __ge__(self, o):
2127 """__ge__(FloatKey self, FloatKey o) -> bool"""
2128 return _IMP_kernel.FloatKey___ge__(self, o)
2131 def __le__(self, o):
2132 """__le__(FloatKey self, FloatKey o) -> bool"""
2133 return _IMP_kernel.FloatKey___le__(self, o)
2137 """__hash__(FloatKey self) -> std::size_t"""
2138 return _IMP_kernel.FloatKey___hash__(self)
2141 def show(self, *args):
2143 show(FloatKey self, _ostream out)
2146 return _IMP_kernel.FloatKey_show(self, *args)
2149 def add_alias(old_key, new_name):
2150 """add_alias(FloatKey old_key, std::string new_name) -> FloatKey"""
2151 return _IMP_kernel.FloatKey_add_alias(old_key, new_name)
2153 add_alias = staticmethod(add_alias)
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_show_all(out):
2205 """FloatKey_show_all(_ostream out)"""
2206 return _IMP_kernel.FloatKey_show_all(out)
2208 def FloatKey_get_all_strings():
2209 """FloatKey_get_all_strings() -> IMP::Vector< std::string >"""
2210 return _IMP_kernel.FloatKey_get_all_strings()
2212 def FloatKey_get_number_unique():
2213 """FloatKey_get_number_unique() -> unsigned int"""
2214 return _IMP_kernel.FloatKey_get_number_unique()
2217 """Proxy of C++ IMP::Key<(1,true)> class"""
2218 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2220 def __init__(self, *args):
2222 __init__(IMP::Key<(1,true)> self) -> IntKey
2223 __init__(IMP::Key<(1,true)> self, std::string c) -> IntKey
2224 __init__(IMP::Key<(1,true)> self, unsigned int i) -> IntKey
2226 this = _IMP_kernel.new_IntKey(*args)
2228 self.this.append(this)
2233 """add_key(std::string sc) -> unsigned int"""
2234 return _IMP_kernel.IntKey_add_key(sc)
2236 add_key = staticmethod(add_key)
2238 def get_key_exists(sc):
2239 """get_key_exists(std::string sc) -> bool"""
2240 return _IMP_kernel.IntKey_get_key_exists(sc)
2242 get_key_exists = staticmethod(get_key_exists)
2244 def get_string(self):
2245 """get_string(IntKey self) -> std::string const"""
2246 return _IMP_kernel.IntKey_get_string(self)
2249 def __cmp__(self, o):
2250 """__cmp__(IntKey self, IntKey o) -> int"""
2251 return _IMP_kernel.IntKey___cmp__(self, o)
2254 def __eq__(self, o):
2255 """__eq__(IntKey self, IntKey o) -> bool"""
2256 return _IMP_kernel.IntKey___eq__(self, o)
2259 def __ne__(self, o):
2260 """__ne__(IntKey self, IntKey o) -> bool"""
2261 return _IMP_kernel.IntKey___ne__(self, o)
2264 def __lt__(self, o):
2265 """__lt__(IntKey self, IntKey o) -> bool"""
2266 return _IMP_kernel.IntKey___lt__(self, o)
2269 def __gt__(self, o):
2270 """__gt__(IntKey self, IntKey o) -> bool"""
2271 return _IMP_kernel.IntKey___gt__(self, o)
2274 def __ge__(self, o):
2275 """__ge__(IntKey self, IntKey o) -> bool"""
2276 return _IMP_kernel.IntKey___ge__(self, o)
2279 def __le__(self, o):
2280 """__le__(IntKey self, IntKey o) -> bool"""
2281 return _IMP_kernel.IntKey___le__(self, o)
2285 """__hash__(IntKey self) -> std::size_t"""
2286 return _IMP_kernel.IntKey___hash__(self)
2289 def show(self, *args):
2291 show(IntKey self, _ostream out)
2294 return _IMP_kernel.IntKey_show(self, *args)
2297 def add_alias(old_key, new_name):
2298 """add_alias(IntKey old_key, std::string new_name) -> IntKey"""
2299 return _IMP_kernel.IntKey_add_alias(old_key, new_name)
2301 add_alias = staticmethod(add_alias)
2304 """get_index(IntKey self) -> unsigned int"""
2305 return _IMP_kernel.IntKey_get_index(self)
2309 """show_all(_ostream out)"""
2310 return _IMP_kernel.IntKey_show_all(out)
2312 show_all = staticmethod(show_all)
2314 def get_all_strings():
2315 """get_all_strings() -> IMP::Vector< std::string >"""
2316 return _IMP_kernel.IntKey_get_all_strings()
2318 get_all_strings = staticmethod(get_all_strings)
2320 def get_number_unique():
2321 """get_number_unique() -> unsigned int"""
2322 return _IMP_kernel.IntKey_get_number_unique()
2324 get_number_unique = staticmethod(get_number_unique)
2327 """__str__(IntKey self) -> std::string"""
2328 return _IMP_kernel.IntKey___str__(self)
2332 """__repr__(IntKey self) -> std::string"""
2333 return _IMP_kernel.IntKey___repr__(self)
2335 __swig_destroy__ = _IMP_kernel.delete_IntKey
2336 __del__ =
lambda self:
None
2337 IntKey_swigregister = _IMP_kernel.IntKey_swigregister
2338 IntKey_swigregister(IntKey)
2340 def IntKey_add_key(sc):
2341 """IntKey_add_key(std::string sc) -> unsigned int"""
2342 return _IMP_kernel.IntKey_add_key(sc)
2344 def IntKey_get_key_exists(sc):
2345 """IntKey_get_key_exists(std::string sc) -> bool"""
2346 return _IMP_kernel.IntKey_get_key_exists(sc)
2348 def IntKey_add_alias(old_key, new_name):
2349 """IntKey_add_alias(IntKey old_key, std::string new_name) -> IntKey"""
2350 return _IMP_kernel.IntKey_add_alias(old_key, new_name)
2352 def IntKey_show_all(out):
2353 """IntKey_show_all(_ostream out)"""
2354 return _IMP_kernel.IntKey_show_all(out)
2356 def IntKey_get_all_strings():
2357 """IntKey_get_all_strings() -> IMP::Vector< std::string >"""
2358 return _IMP_kernel.IntKey_get_all_strings()
2360 def IntKey_get_number_unique():
2361 """IntKey_get_number_unique() -> unsigned int"""
2362 return _IMP_kernel.IntKey_get_number_unique()
2365 """Proxy of C++ IMP::Key<(2,true)> class"""
2366 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2368 def __init__(self, *args):
2370 __init__(IMP::Key<(2,true)> self) -> StringKey
2371 __init__(IMP::Key<(2,true)> self, std::string c) -> StringKey
2372 __init__(IMP::Key<(2,true)> self, unsigned int i) -> StringKey
2374 this = _IMP_kernel.new_StringKey(*args)
2376 self.this.append(this)
2381 """add_key(std::string sc) -> unsigned int"""
2382 return _IMP_kernel.StringKey_add_key(sc)
2384 add_key = staticmethod(add_key)
2386 def get_key_exists(sc):
2387 """get_key_exists(std::string sc) -> bool"""
2388 return _IMP_kernel.StringKey_get_key_exists(sc)
2390 get_key_exists = staticmethod(get_key_exists)
2392 def get_string(self):
2393 """get_string(StringKey self) -> std::string const"""
2394 return _IMP_kernel.StringKey_get_string(self)
2397 def __cmp__(self, o):
2398 """__cmp__(StringKey self, StringKey o) -> int"""
2399 return _IMP_kernel.StringKey___cmp__(self, o)
2402 def __eq__(self, o):
2403 """__eq__(StringKey self, StringKey o) -> bool"""
2404 return _IMP_kernel.StringKey___eq__(self, o)
2407 def __ne__(self, o):
2408 """__ne__(StringKey self, StringKey o) -> bool"""
2409 return _IMP_kernel.StringKey___ne__(self, o)
2412 def __lt__(self, o):
2413 """__lt__(StringKey self, StringKey o) -> bool"""
2414 return _IMP_kernel.StringKey___lt__(self, o)
2417 def __gt__(self, o):
2418 """__gt__(StringKey self, StringKey o) -> bool"""
2419 return _IMP_kernel.StringKey___gt__(self, o)
2422 def __ge__(self, o):
2423 """__ge__(StringKey self, StringKey o) -> bool"""
2424 return _IMP_kernel.StringKey___ge__(self, o)
2427 def __le__(self, o):
2428 """__le__(StringKey self, StringKey o) -> bool"""
2429 return _IMP_kernel.StringKey___le__(self, o)
2433 """__hash__(StringKey self) -> std::size_t"""
2434 return _IMP_kernel.StringKey___hash__(self)
2437 def show(self, *args):
2439 show(StringKey self, _ostream out)
2440 show(StringKey self)
2442 return _IMP_kernel.StringKey_show(self, *args)
2445 def add_alias(old_key, new_name):
2446 """add_alias(StringKey old_key, std::string new_name) -> StringKey"""
2447 return _IMP_kernel.StringKey_add_alias(old_key, new_name)
2449 add_alias = staticmethod(add_alias)
2452 """get_index(StringKey self) -> unsigned int"""
2453 return _IMP_kernel.StringKey_get_index(self)
2457 """show_all(_ostream out)"""
2458 return _IMP_kernel.StringKey_show_all(out)
2460 show_all = staticmethod(show_all)
2462 def get_all_strings():
2463 """get_all_strings() -> IMP::Vector< std::string >"""
2464 return _IMP_kernel.StringKey_get_all_strings()
2466 get_all_strings = staticmethod(get_all_strings)
2468 def get_number_unique():
2469 """get_number_unique() -> unsigned int"""
2470 return _IMP_kernel.StringKey_get_number_unique()
2472 get_number_unique = staticmethod(get_number_unique)
2475 """__str__(StringKey self) -> std::string"""
2476 return _IMP_kernel.StringKey___str__(self)
2480 """__repr__(StringKey self) -> std::string"""
2481 return _IMP_kernel.StringKey___repr__(self)
2483 __swig_destroy__ = _IMP_kernel.delete_StringKey
2484 __del__ =
lambda self:
None
2485 StringKey_swigregister = _IMP_kernel.StringKey_swigregister
2486 StringKey_swigregister(StringKey)
2488 def StringKey_add_key(sc):
2489 """StringKey_add_key(std::string sc) -> unsigned int"""
2490 return _IMP_kernel.StringKey_add_key(sc)
2492 def StringKey_get_key_exists(sc):
2493 """StringKey_get_key_exists(std::string sc) -> bool"""
2494 return _IMP_kernel.StringKey_get_key_exists(sc)
2496 def StringKey_add_alias(old_key, new_name):
2497 """StringKey_add_alias(StringKey old_key, std::string new_name) -> StringKey"""
2498 return _IMP_kernel.StringKey_add_alias(old_key, new_name)
2500 def StringKey_show_all(out):
2501 """StringKey_show_all(_ostream out)"""
2502 return _IMP_kernel.StringKey_show_all(out)
2504 def StringKey_get_all_strings():
2505 """StringKey_get_all_strings() -> IMP::Vector< std::string >"""
2506 return _IMP_kernel.StringKey_get_all_strings()
2508 def StringKey_get_number_unique():
2509 """StringKey_get_number_unique() -> unsigned int"""
2510 return _IMP_kernel.StringKey_get_number_unique()
2513 """Proxy of C++ IMP::Key<(3,true)> class"""
2514 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2516 def __init__(self, *args):
2518 __init__(IMP::Key<(3,true)> self) -> ParticleIndexKey
2519 __init__(IMP::Key<(3,true)> self, std::string c) -> ParticleIndexKey
2520 __init__(IMP::Key<(3,true)> self, unsigned int i) -> ParticleIndexKey
2522 this = _IMP_kernel.new_ParticleIndexKey(*args)
2524 self.this.append(this)
2529 """add_key(std::string sc) -> unsigned int"""
2530 return _IMP_kernel.ParticleIndexKey_add_key(sc)
2532 add_key = staticmethod(add_key)
2534 def get_key_exists(sc):
2535 """get_key_exists(std::string sc) -> bool"""
2536 return _IMP_kernel.ParticleIndexKey_get_key_exists(sc)
2538 get_key_exists = staticmethod(get_key_exists)
2540 def get_string(self):
2541 """get_string(ParticleIndexKey self) -> std::string const"""
2542 return _IMP_kernel.ParticleIndexKey_get_string(self)
2545 def __cmp__(self, o):
2546 """__cmp__(ParticleIndexKey self, ParticleIndexKey o) -> int"""
2547 return _IMP_kernel.ParticleIndexKey___cmp__(self, o)
2550 def __eq__(self, o):
2551 """__eq__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2552 return _IMP_kernel.ParticleIndexKey___eq__(self, o)
2555 def __ne__(self, o):
2556 """__ne__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2557 return _IMP_kernel.ParticleIndexKey___ne__(self, o)
2560 def __lt__(self, o):
2561 """__lt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2562 return _IMP_kernel.ParticleIndexKey___lt__(self, o)
2565 def __gt__(self, o):
2566 """__gt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2567 return _IMP_kernel.ParticleIndexKey___gt__(self, o)
2570 def __ge__(self, o):
2571 """__ge__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2572 return _IMP_kernel.ParticleIndexKey___ge__(self, o)
2575 def __le__(self, o):
2576 """__le__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2577 return _IMP_kernel.ParticleIndexKey___le__(self, o)
2581 """__hash__(ParticleIndexKey self) -> std::size_t"""
2582 return _IMP_kernel.ParticleIndexKey___hash__(self)
2585 def show(self, *args):
2587 show(ParticleIndexKey self, _ostream out)
2588 show(ParticleIndexKey self)
2590 return _IMP_kernel.ParticleIndexKey_show(self, *args)
2593 def add_alias(old_key, new_name):
2594 """add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
2595 return _IMP_kernel.ParticleIndexKey_add_alias(old_key, new_name)
2597 add_alias = staticmethod(add_alias)
2600 """get_index(ParticleIndexKey self) -> unsigned int"""
2601 return _IMP_kernel.ParticleIndexKey_get_index(self)
2605 """show_all(_ostream out)"""
2606 return _IMP_kernel.ParticleIndexKey_show_all(out)
2608 show_all = staticmethod(show_all)
2610 def get_all_strings():
2611 """get_all_strings() -> IMP::Vector< std::string >"""
2612 return _IMP_kernel.ParticleIndexKey_get_all_strings()
2614 get_all_strings = staticmethod(get_all_strings)
2616 def get_number_unique():
2617 """get_number_unique() -> unsigned int"""
2618 return _IMP_kernel.ParticleIndexKey_get_number_unique()
2620 get_number_unique = staticmethod(get_number_unique)
2623 """__str__(ParticleIndexKey self) -> std::string"""
2624 return _IMP_kernel.ParticleIndexKey___str__(self)
2628 """__repr__(ParticleIndexKey self) -> std::string"""
2629 return _IMP_kernel.ParticleIndexKey___repr__(self)
2631 __swig_destroy__ = _IMP_kernel.delete_ParticleIndexKey
2632 __del__ =
lambda self:
None
2633 ParticleIndexKey_swigregister = _IMP_kernel.ParticleIndexKey_swigregister
2634 ParticleIndexKey_swigregister(ParticleIndexKey)
2636 def ParticleIndexKey_add_key(sc):
2637 """ParticleIndexKey_add_key(std::string sc) -> unsigned int"""
2638 return _IMP_kernel.ParticleIndexKey_add_key(sc)
2640 def ParticleIndexKey_get_key_exists(sc):
2641 """ParticleIndexKey_get_key_exists(std::string sc) -> bool"""
2642 return _IMP_kernel.ParticleIndexKey_get_key_exists(sc)
2644 def ParticleIndexKey_add_alias(old_key, new_name):
2645 """ParticleIndexKey_add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
2646 return _IMP_kernel.ParticleIndexKey_add_alias(old_key, new_name)
2648 def ParticleIndexKey_show_all(out):
2649 """ParticleIndexKey_show_all(_ostream out)"""
2650 return _IMP_kernel.ParticleIndexKey_show_all(out)
2652 def ParticleIndexKey_get_all_strings():
2653 """ParticleIndexKey_get_all_strings() -> IMP::Vector< std::string >"""
2654 return _IMP_kernel.ParticleIndexKey_get_all_strings()
2656 def ParticleIndexKey_get_number_unique():
2657 """ParticleIndexKey_get_number_unique() -> unsigned int"""
2658 return _IMP_kernel.ParticleIndexKey_get_number_unique()
2661 """Proxy of C++ IMP::Key<(4,true)> class"""
2662 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2664 def __init__(self, *args):
2666 __init__(IMP::Key<(4,true)> self) -> ObjectKey
2667 __init__(IMP::Key<(4,true)> self, std::string c) -> ObjectKey
2668 __init__(IMP::Key<(4,true)> self, unsigned int i) -> ObjectKey
2670 this = _IMP_kernel.new_ObjectKey(*args)
2672 self.this.append(this)
2677 """add_key(std::string sc) -> unsigned int"""
2678 return _IMP_kernel.ObjectKey_add_key(sc)
2680 add_key = staticmethod(add_key)
2682 def get_key_exists(sc):
2683 """get_key_exists(std::string sc) -> bool"""
2684 return _IMP_kernel.ObjectKey_get_key_exists(sc)
2686 get_key_exists = staticmethod(get_key_exists)
2688 def get_string(self):
2689 """get_string(ObjectKey self) -> std::string const"""
2690 return _IMP_kernel.ObjectKey_get_string(self)
2693 def __cmp__(self, o):
2694 """__cmp__(ObjectKey self, ObjectKey o) -> int"""
2695 return _IMP_kernel.ObjectKey___cmp__(self, o)
2698 def __eq__(self, o):
2699 """__eq__(ObjectKey self, ObjectKey o) -> bool"""
2700 return _IMP_kernel.ObjectKey___eq__(self, o)
2703 def __ne__(self, o):
2704 """__ne__(ObjectKey self, ObjectKey o) -> bool"""
2705 return _IMP_kernel.ObjectKey___ne__(self, o)
2708 def __lt__(self, o):
2709 """__lt__(ObjectKey self, ObjectKey o) -> bool"""
2710 return _IMP_kernel.ObjectKey___lt__(self, o)
2713 def __gt__(self, o):
2714 """__gt__(ObjectKey self, ObjectKey o) -> bool"""
2715 return _IMP_kernel.ObjectKey___gt__(self, o)
2718 def __ge__(self, o):
2719 """__ge__(ObjectKey self, ObjectKey o) -> bool"""
2720 return _IMP_kernel.ObjectKey___ge__(self, o)
2723 def __le__(self, o):
2724 """__le__(ObjectKey self, ObjectKey o) -> bool"""
2725 return _IMP_kernel.ObjectKey___le__(self, o)
2729 """__hash__(ObjectKey self) -> std::size_t"""
2730 return _IMP_kernel.ObjectKey___hash__(self)
2733 def show(self, *args):
2735 show(ObjectKey self, _ostream out)
2736 show(ObjectKey self)
2738 return _IMP_kernel.ObjectKey_show(self, *args)
2741 def add_alias(old_key, new_name):
2742 """add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
2743 return _IMP_kernel.ObjectKey_add_alias(old_key, new_name)
2745 add_alias = staticmethod(add_alias)
2748 """get_index(ObjectKey self) -> unsigned int"""
2749 return _IMP_kernel.ObjectKey_get_index(self)
2753 """show_all(_ostream out)"""
2754 return _IMP_kernel.ObjectKey_show_all(out)
2756 show_all = staticmethod(show_all)
2758 def get_all_strings():
2759 """get_all_strings() -> IMP::Vector< std::string >"""
2760 return _IMP_kernel.ObjectKey_get_all_strings()
2762 get_all_strings = staticmethod(get_all_strings)
2764 def get_number_unique():
2765 """get_number_unique() -> unsigned int"""
2766 return _IMP_kernel.ObjectKey_get_number_unique()
2768 get_number_unique = staticmethod(get_number_unique)
2771 """__str__(ObjectKey self) -> std::string"""
2772 return _IMP_kernel.ObjectKey___str__(self)
2776 """__repr__(ObjectKey self) -> std::string"""
2777 return _IMP_kernel.ObjectKey___repr__(self)
2779 __swig_destroy__ = _IMP_kernel.delete_ObjectKey
2780 __del__ =
lambda self:
None
2781 ObjectKey_swigregister = _IMP_kernel.ObjectKey_swigregister
2782 ObjectKey_swigregister(ObjectKey)
2784 def ObjectKey_add_key(sc):
2785 """ObjectKey_add_key(std::string sc) -> unsigned int"""
2786 return _IMP_kernel.ObjectKey_add_key(sc)
2788 def ObjectKey_get_key_exists(sc):
2789 """ObjectKey_get_key_exists(std::string sc) -> bool"""
2790 return _IMP_kernel.ObjectKey_get_key_exists(sc)
2792 def ObjectKey_add_alias(old_key, new_name):
2793 """ObjectKey_add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
2794 return _IMP_kernel.ObjectKey_add_alias(old_key, new_name)
2796 def ObjectKey_show_all(out):
2797 """ObjectKey_show_all(_ostream out)"""
2798 return _IMP_kernel.ObjectKey_show_all(out)
2800 def ObjectKey_get_all_strings():
2801 """ObjectKey_get_all_strings() -> IMP::Vector< std::string >"""
2802 return _IMP_kernel.ObjectKey_get_all_strings()
2804 def ObjectKey_get_number_unique():
2805 """ObjectKey_get_number_unique() -> unsigned int"""
2806 return _IMP_kernel.ObjectKey_get_number_unique()
2809 """Proxy of C++ IMP::Key<(6,true)> class"""
2810 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2812 def __init__(self, *args):
2814 __init__(IMP::Key<(6,true)> self) -> ParticleIndexesKey
2815 __init__(IMP::Key<(6,true)> self, std::string c) -> ParticleIndexesKey
2816 __init__(IMP::Key<(6,true)> self, unsigned int i) -> ParticleIndexesKey
2818 this = _IMP_kernel.new_ParticleIndexesKey(*args)
2820 self.this.append(this)
2825 """add_key(std::string sc) -> unsigned int"""
2826 return _IMP_kernel.ParticleIndexesKey_add_key(sc)
2828 add_key = staticmethod(add_key)
2830 def get_key_exists(sc):
2831 """get_key_exists(std::string sc) -> bool"""
2832 return _IMP_kernel.ParticleIndexesKey_get_key_exists(sc)
2834 get_key_exists = staticmethod(get_key_exists)
2836 def get_string(self):
2837 """get_string(ParticleIndexesKey self) -> std::string const"""
2838 return _IMP_kernel.ParticleIndexesKey_get_string(self)
2841 def __cmp__(self, o):
2842 """__cmp__(ParticleIndexesKey self, ParticleIndexesKey o) -> int"""
2843 return _IMP_kernel.ParticleIndexesKey___cmp__(self, o)
2846 def __eq__(self, o):
2847 """__eq__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2848 return _IMP_kernel.ParticleIndexesKey___eq__(self, o)
2851 def __ne__(self, o):
2852 """__ne__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2853 return _IMP_kernel.ParticleIndexesKey___ne__(self, o)
2856 def __lt__(self, o):
2857 """__lt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2858 return _IMP_kernel.ParticleIndexesKey___lt__(self, o)
2861 def __gt__(self, o):
2862 """__gt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2863 return _IMP_kernel.ParticleIndexesKey___gt__(self, o)
2866 def __ge__(self, o):
2867 """__ge__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2868 return _IMP_kernel.ParticleIndexesKey___ge__(self, o)
2871 def __le__(self, o):
2872 """__le__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2873 return _IMP_kernel.ParticleIndexesKey___le__(self, o)
2877 """__hash__(ParticleIndexesKey self) -> std::size_t"""
2878 return _IMP_kernel.ParticleIndexesKey___hash__(self)
2881 def show(self, *args):
2883 show(ParticleIndexesKey self, _ostream out)
2884 show(ParticleIndexesKey self)
2886 return _IMP_kernel.ParticleIndexesKey_show(self, *args)
2889 def add_alias(old_key, new_name):
2890 """add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
2891 return _IMP_kernel.ParticleIndexesKey_add_alias(old_key, new_name)
2893 add_alias = staticmethod(add_alias)
2896 """get_index(ParticleIndexesKey self) -> unsigned int"""
2897 return _IMP_kernel.ParticleIndexesKey_get_index(self)
2901 """show_all(_ostream out)"""
2902 return _IMP_kernel.ParticleIndexesKey_show_all(out)
2904 show_all = staticmethod(show_all)
2906 def get_all_strings():
2907 """get_all_strings() -> IMP::Vector< std::string >"""
2908 return _IMP_kernel.ParticleIndexesKey_get_all_strings()
2910 get_all_strings = staticmethod(get_all_strings)
2912 def get_number_unique():
2913 """get_number_unique() -> unsigned int"""
2914 return _IMP_kernel.ParticleIndexesKey_get_number_unique()
2916 get_number_unique = staticmethod(get_number_unique)
2919 """__str__(ParticleIndexesKey self) -> std::string"""
2920 return _IMP_kernel.ParticleIndexesKey___str__(self)
2924 """__repr__(ParticleIndexesKey self) -> std::string"""
2925 return _IMP_kernel.ParticleIndexesKey___repr__(self)
2927 __swig_destroy__ = _IMP_kernel.delete_ParticleIndexesKey
2928 __del__ =
lambda self:
None
2929 ParticleIndexesKey_swigregister = _IMP_kernel.ParticleIndexesKey_swigregister
2930 ParticleIndexesKey_swigregister(ParticleIndexesKey)
2932 def ParticleIndexesKey_add_key(sc):
2933 """ParticleIndexesKey_add_key(std::string sc) -> unsigned int"""
2934 return _IMP_kernel.ParticleIndexesKey_add_key(sc)
2936 def ParticleIndexesKey_get_key_exists(sc):
2937 """ParticleIndexesKey_get_key_exists(std::string sc) -> bool"""
2938 return _IMP_kernel.ParticleIndexesKey_get_key_exists(sc)
2940 def ParticleIndexesKey_add_alias(old_key, new_name):
2941 """ParticleIndexesKey_add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
2942 return _IMP_kernel.ParticleIndexesKey_add_alias(old_key, new_name)
2944 def ParticleIndexesKey_show_all(out):
2945 """ParticleIndexesKey_show_all(_ostream out)"""
2946 return _IMP_kernel.ParticleIndexesKey_show_all(out)
2948 def ParticleIndexesKey_get_all_strings():
2949 """ParticleIndexesKey_get_all_strings() -> IMP::Vector< std::string >"""
2950 return _IMP_kernel.ParticleIndexesKey_get_all_strings()
2952 def ParticleIndexesKey_get_number_unique():
2953 """ParticleIndexesKey_get_number_unique() -> unsigned int"""
2954 return _IMP_kernel.ParticleIndexesKey_get_number_unique()
2957 """Proxy of C++ IMP::Key<(8,true)> class"""
2958 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2960 def __init__(self, *args):
2962 __init__(IMP::Key<(8,true)> self) -> ModelKey
2963 __init__(IMP::Key<(8,true)> self, std::string c) -> ModelKey
2964 __init__(IMP::Key<(8,true)> self, unsigned int i) -> ModelKey
2966 this = _IMP_kernel.new_ModelKey(*args)
2968 self.this.append(this)
2973 """add_key(std::string sc) -> unsigned int"""
2974 return _IMP_kernel.ModelKey_add_key(sc)
2976 add_key = staticmethod(add_key)
2978 def get_key_exists(sc):
2979 """get_key_exists(std::string sc) -> bool"""
2980 return _IMP_kernel.ModelKey_get_key_exists(sc)
2982 get_key_exists = staticmethod(get_key_exists)
2984 def get_string(self):
2985 """get_string(ModelKey self) -> std::string const"""
2986 return _IMP_kernel.ModelKey_get_string(self)
2989 def __cmp__(self, o):
2990 """__cmp__(ModelKey self, ModelKey o) -> int"""
2991 return _IMP_kernel.ModelKey___cmp__(self, o)
2994 def __eq__(self, o):
2995 """__eq__(ModelKey self, ModelKey o) -> bool"""
2996 return _IMP_kernel.ModelKey___eq__(self, o)
2999 def __ne__(self, o):
3000 """__ne__(ModelKey self, ModelKey o) -> bool"""
3001 return _IMP_kernel.ModelKey___ne__(self, o)
3004 def __lt__(self, o):
3005 """__lt__(ModelKey self, ModelKey o) -> bool"""
3006 return _IMP_kernel.ModelKey___lt__(self, o)
3009 def __gt__(self, o):
3010 """__gt__(ModelKey self, ModelKey o) -> bool"""
3011 return _IMP_kernel.ModelKey___gt__(self, o)
3014 def __ge__(self, o):
3015 """__ge__(ModelKey self, ModelKey o) -> bool"""
3016 return _IMP_kernel.ModelKey___ge__(self, o)
3019 def __le__(self, o):
3020 """__le__(ModelKey self, ModelKey o) -> bool"""
3021 return _IMP_kernel.ModelKey___le__(self, o)
3025 """__hash__(ModelKey self) -> std::size_t"""
3026 return _IMP_kernel.ModelKey___hash__(self)
3029 def show(self, *args):
3031 show(ModelKey self, _ostream out)
3034 return _IMP_kernel.ModelKey_show(self, *args)
3037 def add_alias(old_key, new_name):
3038 """add_alias(ModelKey old_key, std::string new_name) -> ModelKey"""
3039 return _IMP_kernel.ModelKey_add_alias(old_key, new_name)
3041 add_alias = staticmethod(add_alias)
3044 """get_index(ModelKey self) -> unsigned int"""
3045 return _IMP_kernel.ModelKey_get_index(self)
3049 """show_all(_ostream out)"""
3050 return _IMP_kernel.ModelKey_show_all(out)
3052 show_all = staticmethod(show_all)
3054 def get_all_strings():
3055 """get_all_strings() -> IMP::Vector< std::string >"""
3056 return _IMP_kernel.ModelKey_get_all_strings()
3058 get_all_strings = staticmethod(get_all_strings)
3060 def get_number_unique():
3061 """get_number_unique() -> unsigned int"""
3062 return _IMP_kernel.ModelKey_get_number_unique()
3064 get_number_unique = staticmethod(get_number_unique)
3067 """__str__(ModelKey self) -> std::string"""
3068 return _IMP_kernel.ModelKey___str__(self)
3072 """__repr__(ModelKey self) -> std::string"""
3073 return _IMP_kernel.ModelKey___repr__(self)
3075 __swig_destroy__ = _IMP_kernel.delete_ModelKey
3076 __del__ =
lambda self:
None
3077 ModelKey_swigregister = _IMP_kernel.ModelKey_swigregister
3078 ModelKey_swigregister(ModelKey)
3080 def ModelKey_add_key(sc):
3081 """ModelKey_add_key(std::string sc) -> unsigned int"""
3082 return _IMP_kernel.ModelKey_add_key(sc)
3084 def ModelKey_get_key_exists(sc):
3085 """ModelKey_get_key_exists(std::string sc) -> bool"""
3086 return _IMP_kernel.ModelKey_get_key_exists(sc)
3088 def ModelKey_add_alias(old_key, new_name):
3089 """ModelKey_add_alias(ModelKey old_key, std::string new_name) -> ModelKey"""
3090 return _IMP_kernel.ModelKey_add_alias(old_key, new_name)
3092 def ModelKey_show_all(out):
3093 """ModelKey_show_all(_ostream out)"""
3094 return _IMP_kernel.ModelKey_show_all(out)
3096 def ModelKey_get_all_strings():
3097 """ModelKey_get_all_strings() -> IMP::Vector< std::string >"""
3098 return _IMP_kernel.ModelKey_get_all_strings()
3100 def ModelKey_get_number_unique():
3101 """ModelKey_get_number_unique() -> unsigned int"""
3102 return _IMP_kernel.ModelKey_get_number_unique()
3105 """Proxy of C++ IMP::Index<(IMP::ParticleIndexTag)> class"""
3106 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3108 def __init__(self, *args):
3110 __init__(IMP::Index<(IMP::ParticleIndexTag)> self, int i) -> ParticleIndex
3111 __init__(IMP::Index<(IMP::ParticleIndexTag)> self) -> ParticleIndex
3113 this = _IMP_kernel.new_ParticleIndex(*args)
3115 self.this.append(this)
3120 """get_index(ParticleIndex self) -> int"""
3121 return _IMP_kernel.ParticleIndex_get_index(self)
3124 def __cmp__(self, o):
3125 """__cmp__(ParticleIndex self, ParticleIndex o) -> int"""
3126 return _IMP_kernel.ParticleIndex___cmp__(self, o)
3129 def __eq__(self, o):
3130 """__eq__(ParticleIndex self, ParticleIndex o) -> bool"""
3131 return _IMP_kernel.ParticleIndex___eq__(self, o)
3134 def __ne__(self, o):
3135 """__ne__(ParticleIndex self, ParticleIndex o) -> bool"""
3136 return _IMP_kernel.ParticleIndex___ne__(self, o)
3139 def __lt__(self, o):
3140 """__lt__(ParticleIndex self, ParticleIndex o) -> bool"""
3141 return _IMP_kernel.ParticleIndex___lt__(self, o)
3144 def __gt__(self, o):
3145 """__gt__(ParticleIndex self, ParticleIndex o) -> bool"""
3146 return _IMP_kernel.ParticleIndex___gt__(self, o)
3149 def __ge__(self, o):
3150 """__ge__(ParticleIndex self, ParticleIndex o) -> bool"""
3151 return _IMP_kernel.ParticleIndex___ge__(self, o)
3154 def __le__(self, o):
3155 """__le__(ParticleIndex self, ParticleIndex o) -> bool"""
3156 return _IMP_kernel.ParticleIndex___le__(self, o)
3159 def show(self, *args):
3161 show(ParticleIndex self, _ostream out)
3162 show(ParticleIndex self)
3164 return _IMP_kernel.ParticleIndex_show(self, *args)
3168 """__hash__(ParticleIndex self) -> std::size_t"""
3169 return _IMP_kernel.ParticleIndex___hash__(self)
3173 """__str__(ParticleIndex self) -> std::string"""
3174 return _IMP_kernel.ParticleIndex___str__(self)
3178 """__repr__(ParticleIndex self) -> std::string"""
3179 return _IMP_kernel.ParticleIndex___repr__(self)
3181 __swig_destroy__ = _IMP_kernel.delete_ParticleIndex
3182 __del__ =
lambda self:
None
3183 ParticleIndex_swigregister = _IMP_kernel.ParticleIndex_swigregister
3184 ParticleIndex_swigregister(ParticleIndex)
3194 class FloatIndex(_Value):
3195 """Proxy of C++ IMP::FloatIndex class"""
3196 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3198 def __init__(self, *args):
3200 __init__(IMP::FloatIndex self, ParticleIndex i0, FloatKey i1) -> FloatIndex
3201 __init__(IMP::FloatIndex self, ParticleIndex i0) -> FloatIndex
3202 __init__(IMP::FloatIndex self) -> FloatIndex
3204 this = _IMP_kernel.new_FloatIndex(*args)
3206 self.this.append(this)
3211 """__hash__(FloatIndex self) -> std::size_t"""
3212 return _IMP_kernel.FloatIndex___hash__(self)
3215 def show(self, *args):
3217 show(FloatIndex self, _ostream out)
3218 show(FloatIndex self)
3220 return _IMP_kernel.FloatIndex_show(self, *args)
3223 def __cmp__(self, o):
3224 """__cmp__(FloatIndex self, FloatIndex o) -> int"""
3225 return _IMP_kernel.FloatIndex___cmp__(self, o)
3228 def __eq__(self, o):
3229 """__eq__(FloatIndex self, FloatIndex o) -> bool"""
3230 return _IMP_kernel.FloatIndex___eq__(self, o)
3233 def __ne__(self, o):
3234 """__ne__(FloatIndex self, FloatIndex o) -> bool"""
3235 return _IMP_kernel.FloatIndex___ne__(self, o)
3238 def __lt__(self, o):
3239 """__lt__(FloatIndex self, FloatIndex o) -> bool"""
3240 return _IMP_kernel.FloatIndex___lt__(self, o)
3243 def __gt__(self, o):
3244 """__gt__(FloatIndex self, FloatIndex o) -> bool"""
3245 return _IMP_kernel.FloatIndex___gt__(self, o)
3248 def __ge__(self, o):
3249 """__ge__(FloatIndex self, FloatIndex o) -> bool"""
3250 return _IMP_kernel.FloatIndex___ge__(self, o)
3253 def __le__(self, o):
3254 """__le__(FloatIndex self, FloatIndex o) -> bool"""
3255 return _IMP_kernel.FloatIndex___le__(self, o)
3258 def get_particle(self):
3259 """get_particle(FloatIndex self) -> ParticleIndex const &"""
3260 return _IMP_kernel.FloatIndex_get_particle(self)
3263 def set_particle(self, v):
3264 """set_particle(FloatIndex self, ParticleIndex const & v)"""
3265 return _IMP_kernel.FloatIndex_set_particle(self, v)
3269 """get_key(FloatIndex self) -> FloatKey const &"""
3270 return _IMP_kernel.FloatIndex_get_key(self)
3273 def set_key(self, v):
3274 """set_key(FloatIndex self, FloatKey const & v)"""
3275 return _IMP_kernel.FloatIndex_set_key(self, v)
3279 """__str__(FloatIndex self) -> std::string"""
3280 return _IMP_kernel.FloatIndex___str__(self)
3284 """__repr__(FloatIndex self) -> std::string"""
3285 return _IMP_kernel.FloatIndex___repr__(self)
3287 __swig_destroy__ = _IMP_kernel.delete_FloatIndex
3288 __del__ =
lambda self:
None
3289 FloatIndex_swigregister = _IMP_kernel.FloatIndex_swigregister
3290 FloatIndex_swigregister(FloatIndex)
3292 class _ParticleIndexTag(object):
3293 """Proxy of C++ IMP::ParticleIndexTag class"""
3294 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3295 __repr__ = _swig_repr
3298 """__init__(IMP::ParticleIndexTag self) -> _ParticleIndexTag"""
3299 this = _IMP_kernel.new__ParticleIndexTag()
3301 self.this.append(this)
3304 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexTag
3305 __del__ =
lambda self:
None
3306 _ParticleIndexTag_swigregister = _IMP_kernel._ParticleIndexTag_swigregister
3307 _ParticleIndexTag_swigregister(_ParticleIndexTag)
3309 class ModelObject(Object):
3310 """Proxy of C++ IMP::ModelObject class"""
3311 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3313 def __init__(self, m, name):
3314 """__init__(IMP::ModelObject self, Model m, std::string name) -> ModelObject"""
3315 if self.__class__ == ModelObject:
3319 this = _IMP_kernel.new_ModelObject(_self, m, name)
3321 self.this.append(this)
3325 if self.__class__ != ModelObject:
3326 _director_objects.register(self)
3330 __swig_destroy__ = _IMP_kernel.delete_ModelObject
3331 __del__ =
lambda self:
None
3333 def get_model(self):
3334 """get_model(ModelObject self) -> Model"""
3335 return _IMP_kernel.ModelObject_get_model(self)
3338 def get_inputs(self):
3339 """get_inputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3340 return _IMP_kernel.ModelObject_get_inputs(self)
3343 def get_outputs(self):
3344 """get_outputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3345 return _IMP_kernel.ModelObject_get_outputs(self)
3348 def get_interactions(self):
3349 """get_interactions(ModelObject self) -> IMP::ModelObjectsTemps"""
3350 return _IMP_kernel.ModelObject_get_interactions(self)
3353 def get_has_dependencies(self):
3354 """get_has_dependencies(ModelObject self) -> bool"""
3355 return _IMP_kernel.ModelObject_get_has_dependencies(self)
3358 def set_has_dependencies(self, tf):
3359 """set_has_dependencies(ModelObject self, bool tf)"""
3360 return _IMP_kernel.ModelObject_set_has_dependencies(self, tf)
3363 def set_has_required_score_states(self, tf):
3364 """set_has_required_score_states(ModelObject self, bool tf)"""
3365 return _IMP_kernel.ModelObject_set_has_required_score_states(self, tf)
3368 def get_has_required_score_states(self):
3369 """get_has_required_score_states(ModelObject self) -> bool"""
3370 return _IMP_kernel.ModelObject_get_has_required_score_states(self)
3374 """get_required_score_states(ModelObject self) -> IMP::ScoreStatesTemp const &"""
3375 return _IMP_kernel.ModelObject_get_required_score_states(self)
3378 def handle_set_has_required_score_states(self, arg0):
3379 """handle_set_has_required_score_states(ModelObject self, bool arg0)"""
3380 return _IMP_kernel.ModelObject_handle_set_has_required_score_states(self, arg0)
3383 def do_get_inputs(self):
3384 """do_get_inputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3385 return _IMP_kernel.ModelObject_do_get_inputs(self)
3388 def do_get_outputs(self):
3389 """do_get_outputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3390 return _IMP_kernel.ModelObject_do_get_outputs(self)
3393 def do_get_interactions(self):
3394 """do_get_interactions(ModelObject self) -> IMP::ModelObjectsTemps"""
3395 return _IMP_kernel.ModelObject_do_get_interactions(self)
3399 """__str__(ModelObject self) -> std::string"""
3400 return _IMP_kernel.ModelObject___str__(self)
3404 """__repr__(ModelObject self) -> std::string"""
3405 return _IMP_kernel.ModelObject___repr__(self)
3410 return _object_cast_to_ModelObject(o)
3413 def get_type_name(self):
3414 return self.__class__.__name__
3415 def do_show(self, out):
3417 def get_version_info(self):
3419 return VersionInfo(self.__module__,
3420 __import__(self.__module__).get_module_version())
3423 __import__(self.__module__).get_module_version())
3426 return _object_cast_to_ModelObject(o)
3428 def __disown__(self):
3430 _IMP_kernel.disown_ModelObject(self)
3431 return weakref_proxy(self)
3433 def do_destroy(self):
3434 """do_destroy(ModelObject self)"""
3435 return _IMP_kernel.ModelObject_do_destroy(self)
3437 ModelObject_swigregister = _IMP_kernel.ModelObject_swigregister
3438 ModelObject_swigregister(ModelObject)
3439 cvar = _IMP_kernel.cvar
3440 NO_MAX = cvar.NO_MAX
3441 BAD_SCORE = cvar.BAD_SCORE
3443 class _ParticleInputs(object):
3444 """Proxy of C++ IMP::ParticleInputs class"""
3445 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3447 def __init__(self, *args, **kwargs):
3448 raise AttributeError(
"No constructor defined - class is abstract")
3449 __repr__ = _swig_repr
3451 def get_inputs(self, m, pis):
3452 """get_inputs(_ParticleInputs self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3453 return _IMP_kernel._ParticleInputs_get_inputs(self, m, pis)
3455 _ParticleInputs_swigregister = _IMP_kernel._ParticleInputs_swigregister
3456 _ParticleInputs_swigregister(_ParticleInputs)
3458 class _ParticleOutputs(object):
3459 """Proxy of C++ IMP::ParticleOutputs class"""
3460 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3462 def __init__(self, *args, **kwargs):
3463 raise AttributeError(
"No constructor defined - class is abstract")
3464 __repr__ = _swig_repr
3466 def get_outputs(self, m, pis):
3467 """get_outputs(_ParticleOutputs self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3468 return _IMP_kernel._ParticleOutputs_get_outputs(self, m, pis)
3470 _ParticleOutputs_swigregister = _IMP_kernel._ParticleOutputs_swigregister
3471 _ParticleOutputs_swigregister(_ParticleOutputs)
3475 """get_input_particles(IMP::ModelObjectsTemp const & mos) -> IMP::ParticlesTemp"""
3476 return _IMP_kernel.get_input_particles(mos)
3479 """get_input_containers(IMP::ModelObjectsTemp const & mos) -> IMP::ContainersTemp"""
3480 return _IMP_kernel.get_input_containers(mos)
3483 """get_output_particles(IMP::ModelObjectsTemp const & mos) -> IMP::ParticlesTemp"""
3484 return _IMP_kernel.get_output_particles(mos)
3487 """get_output_containers(IMP::ModelObjectsTemp const & mos) -> IMP::ContainersTemp"""
3488 return _IMP_kernel.get_output_containers(mos)
3489 class DerivativeAccumulator(object):
3490 """Proxy of C++ IMP::DerivativeAccumulator class"""
3491 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3492 __repr__ = _swig_repr
3494 def __init__(self, *args):
3496 __init__(IMP::DerivativeAccumulator self, double weight=1.0) -> DerivativeAccumulator
3497 __init__(IMP::DerivativeAccumulator self) -> DerivativeAccumulator
3498 __init__(IMP::DerivativeAccumulator self, DerivativeAccumulator copy, double weight) -> DerivativeAccumulator
3500 this = _IMP_kernel.new_DerivativeAccumulator(*args)
3502 self.this.append(this)
3506 def __call__(self, value):
3507 """__call__(DerivativeAccumulator self, double const value) -> double"""
3508 return _IMP_kernel.DerivativeAccumulator___call__(self, value)
3511 def get_weight(self):
3512 """get_weight(DerivativeAccumulator self) -> double"""
3513 return _IMP_kernel.DerivativeAccumulator_get_weight(self)
3516 def show(self, *args):
3518 show(DerivativeAccumulator self, _ostream out)
3519 show(DerivativeAccumulator self)
3521 return _IMP_kernel.DerivativeAccumulator_show(self, *args)
3523 __swig_destroy__ = _IMP_kernel.delete_DerivativeAccumulator
3524 __del__ =
lambda self:
None
3525 DerivativeAccumulator_swigregister = _IMP_kernel.DerivativeAccumulator_swigregister
3526 DerivativeAccumulator_swigregister(DerivativeAccumulator)
3528 class EvaluationState(object):
3529 """Proxy of C++ IMP::EvaluationState class"""
3530 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3531 score = _swig_property(_IMP_kernel.EvaluationState_score_get, _IMP_kernel.EvaluationState_score_set)
3532 good = _swig_property(_IMP_kernel.EvaluationState_good_get, _IMP_kernel.EvaluationState_good_set)
3534 def __init__(self, *args):
3536 __init__(IMP::EvaluationState self, double oscore, bool ogood) -> EvaluationState
3537 __init__(IMP::EvaluationState self) -> EvaluationState
3539 this = _IMP_kernel.new_EvaluationState(*args)
3541 self.this.append(this)
3545 def show(self, *args):
3547 show(EvaluationState self, _ostream out)
3548 show(EvaluationState self)
3550 return _IMP_kernel.EvaluationState_show(self, *args)
3554 """__str__(EvaluationState self) -> std::string"""
3555 return _IMP_kernel.EvaluationState___str__(self)
3559 """__repr__(EvaluationState self) -> std::string"""
3560 return _IMP_kernel.EvaluationState___repr__(self)
3562 __swig_destroy__ = _IMP_kernel.delete_EvaluationState
3563 __del__ =
lambda self:
None
3564 EvaluationState_swigregister = _IMP_kernel.EvaluationState_swigregister
3565 EvaluationState_swigregister(EvaluationState)
3567 class ScoreAccumulator(_Value):
3568 """Proxy of C++ IMP::ScoreAccumulator class"""
3569 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3571 def __init__(self, *args):
3573 __init__(IMP::ScoreAccumulator self) -> ScoreAccumulator
3574 __init__(IMP::ScoreAccumulator self, ScoreAccumulator o, Restraint r) -> ScoreAccumulator
3575 __init__(IMP::ScoreAccumulator self, ScoreAccumulator o, double weight, double local_max) -> ScoreAccumulator
3577 this = _IMP_kernel.new_ScoreAccumulator(*args)
3579 self.this.append(this)
3583 def add_score(self, score):
3584 """add_score(ScoreAccumulator self, double score)"""
3585 return _IMP_kernel.ScoreAccumulator_add_score(self, score)
3588 def get_abort_evaluation(self):
3589 """get_abort_evaluation(ScoreAccumulator self) -> bool"""
3590 return _IMP_kernel.ScoreAccumulator_get_abort_evaluation(self)
3593 def get_is_evaluate_if_below(self):
3594 """get_is_evaluate_if_below(ScoreAccumulator self) -> bool"""
3595 return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_below(self)
3598 def get_is_evaluate_if_good(self):
3599 """get_is_evaluate_if_good(ScoreAccumulator self) -> bool"""
3600 return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_good(self)
3603 def get_maximum(self):
3604 """get_maximum(ScoreAccumulator self) -> double"""
3605 return _IMP_kernel.ScoreAccumulator_get_maximum(self)
3608 def get_derivative_accumulator(self):
3609 """get_derivative_accumulator(ScoreAccumulator self) -> DerivativeAccumulator"""
3610 return _IMP_kernel.ScoreAccumulator_get_derivative_accumulator(self)
3613 def show(self, *args):
3615 show(ScoreAccumulator self, _ostream out)
3616 show(ScoreAccumulator self)
3618 return _IMP_kernel.ScoreAccumulator_show(self, *args)
3622 """__str__(ScoreAccumulator self) -> std::string"""
3623 return _IMP_kernel.ScoreAccumulator___str__(self)
3627 """__repr__(ScoreAccumulator self) -> std::string"""
3628 return _IMP_kernel.ScoreAccumulator___repr__(self)
3630 __swig_destroy__ = _IMP_kernel.delete_ScoreAccumulator
3631 __del__ =
lambda self:
None
3632 ScoreAccumulator_swigregister = _IMP_kernel.ScoreAccumulator_swigregister
3633 ScoreAccumulator_swigregister(ScoreAccumulator)
3635 class ScoreState(ModelObject):
3636 """Proxy of C++ IMP::ScoreState class"""
3637 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3639 def __init__(self, m, name):
3640 """__init__(IMP::ScoreState self, Model m, std::string name) -> ScoreState"""
3641 if self.__class__ == ScoreState:
3645 this = _IMP_kernel.new_ScoreState(_self, m, name)
3647 self.this.append(this)
3651 if self.__class__ != ScoreState:
3652 _director_objects.register(self)
3657 def before_evaluate(self):
3658 """before_evaluate(ScoreState self)"""
3659 return _IMP_kernel.ScoreState_before_evaluate(self)
3662 def after_evaluate(self, accpt):
3663 """after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
3664 return _IMP_kernel.ScoreState_after_evaluate(self, accpt)
3667 def get_has_update_order(self):
3668 """get_has_update_order(ScoreState self) -> bool"""
3669 return _IMP_kernel.ScoreState_get_has_update_order(self)
3673 """get_update_order(ScoreState self) -> unsigned int"""
3674 return _IMP_kernel.ScoreState_get_update_order(self)
3677 def handle_set_has_required_score_states(self, tf):
3678 """handle_set_has_required_score_states(ScoreState self, bool tf)"""
3679 return _IMP_kernel.ScoreState_handle_set_has_required_score_states(self, tf)
3682 def do_before_evaluate(self):
3683 """do_before_evaluate(ScoreState self)"""
3684 return _IMP_kernel.ScoreState_do_before_evaluate(self)
3687 def do_after_evaluate(self, accpt):
3688 """do_after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
3689 return _IMP_kernel.ScoreState_do_after_evaluate(self, accpt)
3691 __swig_destroy__ = _IMP_kernel.delete_ScoreState
3692 __del__ =
lambda self:
None
3695 """__str__(ScoreState self) -> std::string"""
3696 return _IMP_kernel.ScoreState___str__(self)
3700 """__repr__(ScoreState self) -> std::string"""
3701 return _IMP_kernel.ScoreState___repr__(self)
3706 return _object_cast_to_ScoreState(o)
3709 def get_type_name(self):
3710 return self.__class__.__name__
3711 def do_show(self, out):
3713 def get_version_info(self):
3715 return VersionInfo(self.__module__,
3716 __import__(self.__module__).get_module_version())
3719 __import__(self.__module__).get_module_version())
3722 return _object_cast_to_ScoreState(o)
3724 def __disown__(self):
3726 _IMP_kernel.disown_ScoreState(self)
3727 return weakref_proxy(self)
3729 def do_destroy(self):
3730 """do_destroy(ScoreState self)"""
3731 return _IMP_kernel.ScoreState_do_destroy(self)
3734 def do_get_inputs(self):
3735 """do_get_inputs(ScoreState self) -> IMP::ModelObjectsTemp"""
3736 return _IMP_kernel.ScoreState_do_get_inputs(self)
3739 def do_get_outputs(self):
3740 """do_get_outputs(ScoreState self) -> IMP::ModelObjectsTemp"""
3741 return _IMP_kernel.ScoreState_do_get_outputs(self)
3744 def do_get_interactions(self):
3745 """do_get_interactions(ScoreState self) -> IMP::ModelObjectsTemps"""
3746 return _IMP_kernel.ScoreState_do_get_interactions(self)
3748 ScoreState_swigregister = _IMP_kernel.ScoreState_swigregister
3749 ScoreState_swigregister(ScoreState)
3753 """get_update_order(IMP::ScoreStatesTemp input) -> IMP::ScoreStatesTemp"""
3754 return _IMP_kernel.get_update_order(input)
3755 class Constraint(ScoreState):
3756 """Proxy of C++ IMP::Constraint class"""
3757 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3759 def __init__(self, *args):
3761 __init__(IMP::Constraint self, Model m, std::string name) -> Constraint
3762 __init__(IMP::Constraint self, Model m) -> Constraint
3764 if self.__class__ == Constraint:
3768 this = _IMP_kernel.new_Constraint(_self, *args)
3770 self.this.append(this)
3774 if self.__class__ != Constraint:
3775 _director_objects.register(self)
3780 def do_update_attributes(self):
3781 """do_update_attributes(Constraint self)"""
3782 return _IMP_kernel.Constraint_do_update_attributes(self)
3785 def do_update_derivatives(self, da):
3786 """do_update_derivatives(Constraint self, DerivativeAccumulator da)"""
3787 return _IMP_kernel.Constraint_do_update_derivatives(self, da)
3790 def do_before_evaluate(self):
3791 """do_before_evaluate(Constraint self)"""
3792 return _IMP_kernel.Constraint_do_before_evaluate(self)
3795 def do_after_evaluate(self, da):
3796 """do_after_evaluate(Constraint self, DerivativeAccumulator da)"""
3797 return _IMP_kernel.Constraint_do_after_evaluate(self, da)
3799 __swig_destroy__ = _IMP_kernel.delete_Constraint
3800 __del__ =
lambda self:
None
3803 """__str__(Constraint self) -> std::string"""
3804 return _IMP_kernel.Constraint___str__(self)
3808 """__repr__(Constraint self) -> std::string"""
3809 return _IMP_kernel.Constraint___repr__(self)
3814 return _object_cast_to_Constraint(o)
3817 def get_type_name(self):
3818 return self.__class__.__name__
3819 def do_show(self, out):
3821 def get_version_info(self):
3823 return VersionInfo(self.__module__,
3824 __import__(self.__module__).get_module_version())
3827 __import__(self.__module__).get_module_version())
3830 return _object_cast_to_Constraint(o)
3832 def __disown__(self):
3834 _IMP_kernel.disown_Constraint(self)
3835 return weakref_proxy(self)
3837 def do_destroy(self):
3838 """do_destroy(Constraint self)"""
3839 return _IMP_kernel.Constraint_do_destroy(self)
3842 def do_get_inputs(self):
3843 """do_get_inputs(Constraint self) -> IMP::ModelObjectsTemp"""
3844 return _IMP_kernel.Constraint_do_get_inputs(self)
3847 def do_get_outputs(self):
3848 """do_get_outputs(Constraint self) -> IMP::ModelObjectsTemp"""
3849 return _IMP_kernel.Constraint_do_get_outputs(self)
3852 def do_get_interactions(self):
3853 """do_get_interactions(Constraint self) -> IMP::ModelObjectsTemps"""
3854 return _IMP_kernel.Constraint_do_get_interactions(self)
3856 Constraint_swigregister = _IMP_kernel.Constraint_swigregister
3857 Constraint_swigregister(Constraint)
3859 class Container(ModelObject):
3860 """Proxy of C++ IMP::Container class"""
3861 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3863 def __init__(self, *args):
3865 __init__(IMP::Container self, Model m, std::string name) -> Container
3866 __init__(IMP::Container self, Model m) -> Container
3868 if self.__class__ == Container:
3872 this = _IMP_kernel.new_Container(_self, *args)
3874 self.this.append(this)
3878 if self.__class__ != Container:
3879 _director_objects.register(self)
3884 def do_get_contents_hash(self):
3885 """do_get_contents_hash(Container self) -> std::size_t"""
3886 return _IMP_kernel.Container_do_get_contents_hash(self)
3889 def get_all_possible_indexes(self):
3890 """get_all_possible_indexes(Container self) -> IMP::ParticleIndexes"""
3891 return _IMP_kernel.Container_get_all_possible_indexes(self)
3894 def get_contents_hash(self):
3895 """get_contents_hash(Container self) -> std::size_t"""
3896 return _IMP_kernel.Container_get_contents_hash(self)
3899 def do_get_outputs(self):
3900 """do_get_outputs(Container self) -> IMP::ModelObjectsTemp"""
3901 return _IMP_kernel.Container_do_get_outputs(self)
3904 def get_is_decomposable(self):
3905 """get_is_decomposable(Container self) -> bool"""
3906 return _IMP_kernel.Container_get_is_decomposable(self)
3909 def validate_readable(self):
3910 """validate_readable(Container self)"""
3911 return _IMP_kernel.Container_validate_readable(self)
3914 def validate_writable(self):
3915 """validate_writable(Container self)"""
3916 return _IMP_kernel.Container_validate_writable(self)
3919 def set_is_readable(self, tf):
3920 """set_is_readable(Container self, bool tf)"""
3921 return _IMP_kernel.Container_set_is_readable(self, tf)
3924 def set_is_writable(self, tf):
3925 """set_is_writable(Container self, bool tf)"""
3926 return _IMP_kernel.Container_set_is_writable(self, tf)
3928 __swig_destroy__ = _IMP_kernel.delete_Container
3929 __del__ =
lambda self:
None
3932 """__str__(Container self) -> std::string"""
3933 return _IMP_kernel.Container___str__(self)
3937 """__repr__(Container self) -> std::string"""
3938 return _IMP_kernel.Container___repr__(self)
3943 return _object_cast_to_Container(o)
3946 def get_type_name(self):
3947 return self.__class__.__name__
3948 def do_show(self, out):
3950 def get_version_info(self):
3952 return VersionInfo(self.__module__,
3953 __import__(self.__module__).get_module_version())
3956 __import__(self.__module__).get_module_version())
3959 return _object_cast_to_Container(o)
3961 def __disown__(self):
3963 _IMP_kernel.disown_Container(self)
3964 return weakref_proxy(self)
3966 def do_destroy(self):
3967 """do_destroy(Container self)"""
3968 return _IMP_kernel.Container_do_destroy(self)
3971 def handle_set_has_required_score_states(self, arg0):
3972 """handle_set_has_required_score_states(Container self, bool arg0)"""
3973 return _IMP_kernel.Container_handle_set_has_required_score_states(self, arg0)
3976 def do_get_inputs(self):
3977 """do_get_inputs(Container self) -> IMP::ModelObjectsTemp"""
3978 return _IMP_kernel.Container_do_get_inputs(self)
3981 def do_get_interactions(self):
3982 """do_get_interactions(Container self) -> IMP::ModelObjectsTemps"""
3983 return _IMP_kernel.Container_do_get_interactions(self)
3985 Container_swigregister = _IMP_kernel.Container_swigregister
3986 Container_swigregister(Container)
3988 class Restraint(ModelObject):
3989 """Proxy of C++ IMP::Restraint class"""
3990 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3992 def __init__(self, m, name):
3993 """__init__(IMP::Restraint self, Model m, std::string name) -> Restraint"""
3994 if self.__class__ == Restraint:
3998 this = _IMP_kernel.new_Restraint(_self, m, name)
4000 self.this.append(this)
4004 if self.__class__ != Restraint:
4005 _director_objects.register(self)
4010 def get_score(self):
4011 """get_score(Restraint self) -> double"""
4012 return _IMP_kernel.Restraint_get_score(self)
4015 def evaluate(self, calc_derivs):
4016 """evaluate(Restraint self, bool calc_derivs) -> double"""
4017 return _IMP_kernel.Restraint_evaluate(self, calc_derivs)
4020 def evaluate_if_good(self, calc_derivatives):
4021 """evaluate_if_good(Restraint self, bool calc_derivatives) -> double"""
4022 return _IMP_kernel.Restraint_evaluate_if_good(self, calc_derivatives)
4025 def evaluate_if_below(self, calc_derivatives, max):
4026 """evaluate_if_below(Restraint self, bool calc_derivatives, double max) -> double"""
4027 return _IMP_kernel.Restraint_evaluate_if_below(self, calc_derivatives, max)
4030 def unprotected_evaluate(self, da):
4031 """unprotected_evaluate(Restraint self, DerivativeAccumulator da) -> double"""
4032 return _IMP_kernel.Restraint_unprotected_evaluate(self, da)
4035 def unprotected_evaluate_if_good(self, da, max):
4036 """unprotected_evaluate_if_good(Restraint self, DerivativeAccumulator da, double max) -> double"""
4037 return _IMP_kernel.Restraint_unprotected_evaluate_if_good(self, da, max)
4040 def unprotected_evaluate_if_below(self, da, max):
4041 """unprotected_evaluate_if_below(Restraint self, DerivativeAccumulator da, double max) -> double"""
4042 return _IMP_kernel.Restraint_unprotected_evaluate_if_below(self, da, max)
4045 def add_score_and_derivatives(self, sa):
4046 """add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
4047 return _IMP_kernel.Restraint_add_score_and_derivatives(self, sa)
4051 """create_decomposition(Restraint self) -> Restraint"""
4052 return _IMP_kernel.Restraint_create_decomposition(self)
4055 def create_current_decomposition(self):
4056 """create_current_decomposition(Restraint self) -> Restraint"""
4057 return _IMP_kernel.Restraint_create_current_decomposition(self)
4060 def set_weight(self, weight):
4061 """set_weight(Restraint self, IMP::Float weight)"""
4062 return _IMP_kernel.Restraint_set_weight(self, weight)
4065 def get_weight(self):
4066 """get_weight(Restraint self) -> IMP::Float"""
4067 return _IMP_kernel.Restraint_get_weight(self)
4070 def get_maximum_score(self):
4071 """get_maximum_score(Restraint self) -> double"""
4072 return _IMP_kernel.Restraint_get_maximum_score(self)
4075 def set_maximum_score(self, s):
4076 """set_maximum_score(Restraint self, double s)"""
4077 return _IMP_kernel.Restraint_set_maximum_score(self, s)
4082 create_scoring_function(Restraint self, double weight=1.0, double max) -> ScoringFunction
4083 create_scoring_function(Restraint self, double weight=1.0) -> ScoringFunction
4084 create_scoring_function(Restraint self) -> ScoringFunction
4086 return _IMP_kernel.Restraint_create_scoring_function(self, *args)
4089 def set_last_score(self, s):
4090 """set_last_score(Restraint self, double s)"""
4091 return _IMP_kernel.Restraint_set_last_score(self, s)
4094 def get_last_score(self):
4095 """get_last_score(Restraint self) -> double"""
4096 return _IMP_kernel.Restraint_get_last_score(self)
4099 def get_was_good(self):
4100 """get_was_good(Restraint self) -> bool"""
4101 return _IMP_kernel.Restraint_get_was_good(self)
4103 __swig_destroy__ = _IMP_kernel.delete_Restraint
4104 __del__ =
lambda self:
None
4106 def do_create_decomposition(self):
4107 """do_create_decomposition(Restraint self) -> IMP::Restraints"""
4108 return _IMP_kernel.Restraint_do_create_decomposition(self)
4111 def do_create_current_decomposition(self):
4112 """do_create_current_decomposition(Restraint self) -> IMP::Restraints"""
4113 return _IMP_kernel.Restraint_do_create_current_decomposition(self)
4116 def do_add_score_and_derivatives(self, sa):
4117 """do_add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
4118 return _IMP_kernel.Restraint_do_add_score_and_derivatives(self, sa)
4121 def do_get_outputs(self):
4122 """do_get_outputs(Restraint self) -> IMP::ModelObjectsTemp"""
4123 return _IMP_kernel.Restraint_do_get_outputs(self)
4127 """__str__(Restraint self) -> std::string"""
4128 return _IMP_kernel.Restraint___str__(self)
4132 """__repr__(Restraint self) -> std::string"""
4133 return _IMP_kernel.Restraint___repr__(self)
4138 return _object_cast_to_Restraint(o)
4141 def get_type_name(self):
4142 return self.__class__.__name__
4143 def do_show(self, out):
4145 def get_version_info(self):
4147 return VersionInfo(self.__module__,
4148 __import__(self.__module__).get_module_version())
4151 __import__(self.__module__).get_module_version())
4154 return _object_cast_to_Restraint(o)
4156 def __disown__(self):
4158 _IMP_kernel.disown_Restraint(self)
4159 return weakref_proxy(self)
4161 def do_destroy(self):
4162 """do_destroy(Restraint self)"""
4163 return _IMP_kernel.Restraint_do_destroy(self)
4166 def handle_set_has_required_score_states(self, arg0):
4167 """handle_set_has_required_score_states(Restraint self, bool arg0)"""
4168 return _IMP_kernel.Restraint_handle_set_has_required_score_states(self, arg0)
4171 def do_get_inputs(self):
4172 """do_get_inputs(Restraint self) -> IMP::ModelObjectsTemp"""
4173 return _IMP_kernel.Restraint_do_get_inputs(self)
4176 def do_get_interactions(self):
4177 """do_get_interactions(Restraint self) -> IMP::ModelObjectsTemps"""
4178 return _IMP_kernel.Restraint_do_get_interactions(self)
4180 Restraint_swigregister = _IMP_kernel.Restraint_swigregister
4181 Restraint_swigregister(Restraint)
4183 class _RestraintsAdaptor(_InputAdaptor):
4184 """Proxy of C++ IMP::RestraintsAdaptor class"""
4185 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4186 __repr__ = _swig_repr
4188 def __init__(self, *args):
4190 __init__(IMP::RestraintsAdaptor self) -> _RestraintsAdaptor
4191 __init__(IMP::RestraintsAdaptor self, IMP::Restraints const & sf) -> _RestraintsAdaptor
4192 __init__(IMP::RestraintsAdaptor self, IMP::RestraintsTemp const & sf) -> _RestraintsAdaptor
4193 __init__(IMP::RestraintsAdaptor self, Restraint sf) -> _RestraintsAdaptor
4195 this = _IMP_kernel.new__RestraintsAdaptor(*args)
4197 self.this.append(this)
4200 __swig_destroy__ = _IMP_kernel.delete__RestraintsAdaptor
4201 __del__ =
lambda self:
None
4202 _RestraintsAdaptor_swigregister = _IMP_kernel._RestraintsAdaptor_swigregister
4203 _RestraintsAdaptor_swigregister(_RestraintsAdaptor)
4205 class RestraintSet(Restraint):
4206 """Proxy of C++ IMP::RestraintSet class"""
4207 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4209 def __init__(self, *args):
4211 __init__(IMP::RestraintSet self, Model m, double weight, std::string const & name) -> RestraintSet
4212 __init__(IMP::RestraintSet self, Model m, double weight) -> RestraintSet
4213 __init__(IMP::RestraintSet self, Model m, std::string const & name) -> RestraintSet
4214 __init__(IMP::RestraintSet self, Model m) -> RestraintSet
4215 __init__(IMP::RestraintSet self, IMP::RestraintsTemp const & rs, double weight, std::string const & name) -> RestraintSet
4216 __init__(IMP::RestraintSet self, IMP::RestraintsTemp const & rs, double weight) -> RestraintSet
4218 this = _IMP_kernel.new_RestraintSet(*args)
4220 self.this.append(this)
4224 def get_version_info(self):
4225 """get_version_info(RestraintSet self) -> VersionInfo"""
4226 return _IMP_kernel.RestraintSet_get_version_info(self)
4229 def remove_restraint(self, d):
4230 """remove_restraint(RestraintSet self, Restraint d)"""
4231 return _IMP_kernel.RestraintSet_remove_restraint(self, d)
4234 def remove_restraints(self, d):
4235 """remove_restraints(RestraintSet self, IMP::Restraints const & d)"""
4236 return _IMP_kernel.RestraintSet_remove_restraints(self, d)
4239 def set_restraints(self, ps):
4240 """set_restraints(RestraintSet self, IMP::Restraints const & ps)"""
4241 return _IMP_kernel.RestraintSet_set_restraints(self, ps)
4244 def set_restraints_order(self, objs):
4245 """set_restraints_order(RestraintSet self, IMP::Restraints const & objs)"""
4246 return _IMP_kernel.RestraintSet_set_restraints_order(self, objs)
4250 """add_restraint(RestraintSet self, Restraint obj) -> unsigned int"""
4251 return _IMP_kernel.RestraintSet_add_restraint(self, obj)
4255 """add_restraints(RestraintSet self, IMP::Restraints const & objs)"""
4256 return _IMP_kernel.RestraintSet_add_restraints(self, objs)
4259 def clear_restraints(self):
4260 """clear_restraints(RestraintSet self)"""
4261 return _IMP_kernel.RestraintSet_clear_restraints(self)
4264 def get_number_of_restraints(self):
4265 """get_number_of_restraints(RestraintSet self) -> unsigned int"""
4266 return _IMP_kernel.RestraintSet_get_number_of_restraints(self)
4269 def get_has_restraints(self):
4270 """get_has_restraints(RestraintSet self) -> bool"""
4271 return _IMP_kernel.RestraintSet_get_has_restraints(self)
4274 def get_restraint(self, i):
4275 """get_restraint(RestraintSet self, unsigned int i) -> Restraint"""
4276 return _IMP_kernel.RestraintSet_get_restraint(self, i)
4279 def get_restraints(self):
4280 """get_restraints(RestraintSet self) -> IMP::Restraints"""
4281 return _IMP_kernel.RestraintSet_get_restraints(self)
4284 def reserve_restraints(self, sz):
4285 """reserve_restraints(RestraintSet self, unsigned int sz)"""
4286 return _IMP_kernel.RestraintSet_reserve_restraints(self, sz)
4289 def get_non_sets_and_sets(self):
4290 """get_non_sets_and_sets(RestraintSet self) -> std::pair< IMP::RestraintsTemp,IMP::RestraintSetsTemp >"""
4291 return _IMP_kernel.RestraintSet_get_non_sets_and_sets(self)
4294 def do_get_inputs(self):
4295 """do_get_inputs(RestraintSet self) -> IMP::ModelObjectsTemp"""
4296 return _IMP_kernel.RestraintSet_do_get_inputs(self)
4301 create_scoring_function(RestraintSet self, double weight=1.0, double max) -> ScoringFunction
4302 create_scoring_function(RestraintSet self, double weight=1.0) -> ScoringFunction
4303 create_scoring_function(RestraintSet self) -> ScoringFunction
4305 return _IMP_kernel.RestraintSet_create_scoring_function(self, *args)
4309 """__str__(RestraintSet self) -> std::string"""
4310 return _IMP_kernel.RestraintSet___str__(self)
4314 """__repr__(RestraintSet self) -> std::string"""
4315 return _IMP_kernel.RestraintSet___repr__(self)
4320 return _object_cast_to_RestraintSet(o)
4322 RestraintSet_swigregister = _IMP_kernel.RestraintSet_swigregister
4323 RestraintSet_swigregister(RestraintSet)
4326 def get_restraints(rs):
4327 """get_restraints(IMP::RestraintsTemp const & rs) -> IMP::RestraintsTemp"""
4328 return _IMP_kernel.get_restraints(rs)
4330 def _check_particle(p, a):
4331 if (
not p.get_is_active()):
4332 raise ValueError(
"Inactive Particle")
4333 if (type(a)() == a):
4334 raise IndexError(
"Cannot use default Index")
4335 if (
not p.has_attribute(a)):
4336 raise IndexError(
"Particle does not have attribute")
4338 class Particle(ModelObject):
4339 """Proxy of C++ IMP::Particle class"""
4340 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4342 def get_version_info(self):
4343 """get_version_info(Particle self) -> VersionInfo"""
4344 return _IMP_kernel.Particle_get_version_info(self)
4347 def __init__(self, *args):
4349 __init__(IMP::Particle self, Model m, std::string name) -> Particle
4350 __init__(IMP::Particle self, Model m) -> Particle
4352 this = _IMP_kernel.new_Particle(*args)
4354 self.this.append(this)
4358 def get_float_keys(self):
4359 """get_float_keys(Particle self) -> IMP::FloatKeys"""
4360 return _IMP_kernel.Particle_get_float_keys(self)
4363 def get_int_keys(self):
4364 """get_int_keys(Particle self) -> IMP::IntKeys"""
4365 return _IMP_kernel.Particle_get_int_keys(self)
4368 def get_string_keys(self):
4369 """get_string_keys(Particle self) -> IMP::StringKeys"""
4370 return _IMP_kernel.Particle_get_string_keys(self)
4373 def get_object_keys(self):
4374 """get_object_keys(Particle self) -> IMP::ObjectKeys"""
4375 return _IMP_kernel.Particle_get_object_keys(self)
4378 def add_cache_attribute(self, *args):
4380 add_cache_attribute(Particle self, FloatKey name, IMP::Float value)
4381 add_cache_attribute(Particle self, IntKey name, IMP::Int value)
4382 add_cache_attribute(Particle self, StringKey name, IMP::String value)
4383 add_cache_attribute(Particle self, ObjectKey name, Object value)
4384 add_cache_attribute(Particle self, IMP::WeakObjectKey name, Object value)
4386 return _IMP_kernel.Particle_add_cache_attribute(self, *args)
4389 def get_weak_object_keys(self):
4390 """get_weak_object_keys(Particle self) -> IMP::WeakObjectKeys"""
4391 return _IMP_kernel.Particle_get_weak_object_keys(self)
4394 def add_to_derivative(self, key, value, da):
4395 """add_to_derivative(Particle self, FloatKey key, IMP::Float value, DerivativeAccumulator da)"""
4396 return _IMP_kernel.Particle_add_to_derivative(self, key, value, da)
4399 def set_is_optimized(self, k, tf):
4400 """set_is_optimized(Particle self, FloatKey k, bool tf)"""
4401 return _IMP_kernel.Particle_set_is_optimized(self, k, tf)
4404 def get_is_optimized(self, k):
4405 """get_is_optimized(Particle self, FloatKey k) -> bool"""
4406 return _IMP_kernel.Particle_get_is_optimized(self, k)
4409 def get_derivative(self, name):
4410 """get_derivative(Particle self, FloatKey name) -> IMP::Float"""
4411 return _IMP_kernel.Particle_get_derivative(self, name)
4414 def add_attribute(self, *args):
4416 add_attribute(Particle self, FloatKey name, IMP::Float initial_value)
4417 add_attribute(Particle self, IntKey name, IMP::Int initial_value)
4418 add_attribute(Particle self, StringKey name, IMP::String initial_value)
4419 add_attribute(Particle self, ObjectKey name, Object initial_value)
4420 add_attribute(Particle self, IMP::WeakObjectKey name, Object initial_value)
4421 add_attribute(Particle self, FloatKey name, IMP::Float const initial_value, bool optimized)
4422 add_attribute(Particle self, ParticleIndexKey k, Particle v)
4424 return _IMP_kernel.Particle_add_attribute(self, *args)
4427 def has_attribute(self, *args):
4429 has_attribute(Particle self, FloatKey name) -> bool
4430 has_attribute(Particle self, IntKey name) -> bool
4431 has_attribute(Particle self, StringKey name) -> bool
4432 has_attribute(Particle self, ObjectKey name) -> bool
4433 has_attribute(Particle self, IMP::WeakObjectKey name) -> bool
4434 has_attribute(Particle self, ParticleIndexKey k) -> bool
4436 return _IMP_kernel.Particle_has_attribute(self, *args)
4439 def set_value(self, *args):
4441 set_value(Particle self, FloatKey name, IMP::Float value)
4442 set_value(Particle self, IntKey name, IMP::Int value)
4443 set_value(Particle self, StringKey name, IMP::String value)
4444 set_value(Particle self, ObjectKey name, Object value)
4445 set_value(Particle self, IMP::WeakObjectKey name, Object value)
4446 set_value(Particle self, ParticleIndexKey k, Particle v)
4448 return _IMP_kernel.Particle_set_value(self, *args)
4451 def get_value(self, *args):
4453 get_value(Particle self, FloatKey name) -> IMP::Float
4454 get_value(Particle self, IntKey name) -> IMP::Int
4455 get_value(Particle self, StringKey name) -> IMP::String
4456 get_value(Particle self, ObjectKey name) -> Object
4457 get_value(Particle self, IMP::WeakObjectKey name) -> Object
4458 get_value(Particle self, ParticleIndexKey k) -> Particle
4460 return _IMP_kernel.Particle_get_value(self, *args)
4463 def remove_attribute(self, *args):
4465 remove_attribute(Particle self, FloatKey name)
4466 remove_attribute(Particle self, IntKey name)
4467 remove_attribute(Particle self, StringKey name)
4468 remove_attribute(Particle self, ObjectKey name)
4469 remove_attribute(Particle self, IMP::WeakObjectKey name)
4470 remove_attribute(Particle self, ParticleIndexKey k)
4472 return _IMP_kernel.Particle_remove_attribute(self, *args)
4475 def get_particle_keys(self):
4476 """get_particle_keys(Particle self) -> IMP::ParticleIndexKeys"""
4477 return _IMP_kernel.Particle_get_particle_keys(self)
4480 def show(self, *args):
4482 show(Particle self, _ostream out)
4485 return _IMP_kernel.Particle_show(self, *args)
4488 def get_is_active(self):
4489 """get_is_active(Particle self) -> bool"""
4490 return _IMP_kernel.Particle_get_is_active(self)
4494 """get_index(Particle self) -> ParticleIndex"""
4495 return _IMP_kernel.Particle_get_index(self)
4498 def __eq__(self, *args):
4500 __eq__(Particle self, Particle o) -> bool
4501 __eq__(Particle self, Decorator d) -> bool
4503 return _IMP_kernel.Particle___eq__(self, *args)
4506 def __ne__(self, *args):
4508 __ne__(Particle self, Particle o) -> bool
4509 __ne__(Particle self, Decorator d) -> bool
4511 return _IMP_kernel.Particle___ne__(self, *args)
4514 def __le__(self, *args):
4516 __le__(Particle self, Particle o) -> bool
4517 __le__(Particle self, Decorator d) -> bool
4519 return _IMP_kernel.Particle___le__(self, *args)
4522 def __lt__(self, *args):
4524 __lt__(Particle self, Particle o) -> bool
4525 __lt__(Particle self, Decorator d) -> bool
4527 return _IMP_kernel.Particle___lt__(self, *args)
4530 def __ge__(self, *args):
4532 __ge__(Particle self, Particle o) -> bool
4533 __ge__(Particle self, Decorator d) -> bool
4535 return _IMP_kernel.Particle___ge__(self, *args)
4538 def __gt__(self, *args):
4540 __gt__(Particle self, Particle o) -> bool
4541 __gt__(Particle self, Decorator d) -> bool
4543 return _IMP_kernel.Particle___gt__(self, *args)
4546 __hash__ = ModelObject.__hash__
4550 """__str__(Particle self) -> std::string"""
4551 return _IMP_kernel.Particle___str__(self)
4555 """__repr__(Particle self) -> std::string"""
4556 return _IMP_kernel.Particle___repr__(self)
4561 return _object_cast_to_Particle(o)
4563 Particle_swigregister = _IMP_kernel.Particle_swigregister
4564 Particle_swigregister(Particle)
4566 class _ParticleAdaptor(_InputAdaptor):
4567 """Proxy of C++ IMP::ParticleAdaptor class"""
4568 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4569 __repr__ = _swig_repr
4571 def __init__(self, *args):
4573 __init__(IMP::ParticleAdaptor self) -> _ParticleAdaptor
4574 __init__(IMP::ParticleAdaptor self, Particle p) -> _ParticleAdaptor
4575 __init__(IMP::ParticleAdaptor self, Decorator d) -> _ParticleAdaptor
4577 this = _IMP_kernel.new__ParticleAdaptor(*args)
4579 self.this.append(this)
4583 def get_model(self):
4584 """get_model(_ParticleAdaptor self) -> Model"""
4585 return _IMP_kernel._ParticleAdaptor_get_model(self)
4588 def get_particle_index(self):
4589 """get_particle_index(_ParticleAdaptor self) -> ParticleIndex"""
4590 return _IMP_kernel._ParticleAdaptor_get_particle_index(self)
4592 __swig_destroy__ = _IMP_kernel.delete__ParticleAdaptor
4593 __del__ =
lambda self:
None
4594 _ParticleAdaptor_swigregister = _IMP_kernel._ParticleAdaptor_swigregister
4595 _ParticleAdaptor_swigregister(_ParticleAdaptor)
4597 class _DependencyGraphVertexIndex(object):
4598 """Proxy of C++ IMP::DependencyGraphVertexIndex class"""
4599 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4600 __repr__ = _swig_repr
4603 """__init__(IMP::DependencyGraphVertexIndex self) -> _DependencyGraphVertexIndex"""
4604 this = _IMP_kernel.new__DependencyGraphVertexIndex()
4606 self.this.append(this)
4609 __swig_destroy__ = _IMP_kernel.delete__DependencyGraphVertexIndex
4610 __del__ =
lambda self:
None
4611 _DependencyGraphVertexIndex_swigregister = _IMP_kernel._DependencyGraphVertexIndex_swigregister
4612 _DependencyGraphVertexIndex_swigregister(_DependencyGraphVertexIndex)
4615 def show_as_graphviz(name, out):
4616 """show_as_graphviz(IMP::DependencyGraph const & name, TextOutput out)"""
4617 return _IMP_kernel.show_as_graphviz(name, out)
4619 def get_vertex_index(g):
4620 """get_vertex_index(IMP::DependencyGraph const & g) -> _DependencyGraphVertexIndex"""
4621 return _IMP_kernel.get_vertex_index(g)
4624 """get_dependency_graph(Model m) -> IMP::DependencyGraph"""
4625 return _IMP_kernel.get_dependency_graph(m)
4628 """get_pruned_dependency_graph(Model m) -> IMP::DependencyGraph"""
4629 return _IMP_kernel.get_pruned_dependency_graph(m)
4633 get_required_score_states(IMP::ModelObjectsTemp const & mos, IMP::ScoreStatesTemp exclude) -> IMP::ScoreStatesTemp
4634 get_required_score_states(IMP::ModelObjectsTemp const & mos) -> IMP::ScoreStatesTemp
4635 get_required_score_states(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ScoreStatesTemp
4637 return _IMP_kernel.get_required_score_states(*args)
4640 """get_dependent_particles(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ParticlesTemp"""
4641 return _IMP_kernel.get_dependent_particles(p, all, dg, index)
4643 def get_dependent_restraints(m, pi):
4644 """get_dependent_restraints(Model m, ParticleIndex pi) -> IMP::RestraintsTemp"""
4645 return _IMP_kernel.get_dependent_restraints(m, pi)
4646 class ScoringFunction(ModelObject):
4647 """Proxy of C++ IMP::ScoringFunction class"""
4648 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4650 def do_add_score_and_derivatives(self, sa, ss):
4651 """do_add_score_and_derivatives(ScoringFunction self, ScoreAccumulator sa, IMP::ScoreStatesTemp const & ss)"""
4652 return _IMP_kernel.ScoringFunction_do_add_score_and_derivatives(self, sa, ss)
4655 def get_score_accumulator_if_below(self, deriv, max):
4656 """get_score_accumulator_if_below(ScoringFunction self, bool deriv, double max) -> ScoreAccumulator"""
4657 return _IMP_kernel.ScoringFunction_get_score_accumulator_if_below(self, deriv, max)
4660 def get_score_accumulator_if_good(self, deriv):
4661 """get_score_accumulator_if_good(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
4662 return _IMP_kernel.ScoringFunction_get_score_accumulator_if_good(self, deriv)
4665 def get_score_accumulator(self, deriv):
4666 """get_score_accumulator(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
4667 return _IMP_kernel.ScoringFunction_get_score_accumulator(self, deriv)
4670 def __init__(self, m, name):
4671 """__init__(IMP::ScoringFunction self, Model m, std::string name) -> ScoringFunction"""
4672 if self.__class__ == ScoringFunction:
4676 this = _IMP_kernel.new_ScoringFunction(_self, m, name)
4678 self.this.append(this)
4682 if self.__class__ != ScoringFunction:
4683 _director_objects.register(self)
4688 def do_get_outputs(self):
4689 """do_get_outputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
4690 return _IMP_kernel.ScoringFunction_do_get_outputs(self)
4693 def evaluate_if_good(self, derivatives):
4694 """evaluate_if_good(ScoringFunction self, bool derivatives) -> double"""
4695 return _IMP_kernel.ScoringFunction_evaluate_if_good(self, derivatives)
4698 def evaluate(self, derivatives):
4699 """evaluate(ScoringFunction self, bool derivatives) -> double"""
4700 return _IMP_kernel.ScoringFunction_evaluate(self, derivatives)
4703 def evaluate_if_below(self, derivatives, max):
4704 """evaluate_if_below(ScoringFunction self, bool derivatives, double max) -> double"""
4705 return _IMP_kernel.ScoringFunction_evaluate_if_below(self, derivatives, max)
4708 def get_had_good_score(self):
4709 """get_had_good_score(ScoringFunction self) -> bool"""
4710 return _IMP_kernel.ScoringFunction_get_had_good_score(self)
4713 def get_last_score(self):
4714 """get_last_score(ScoringFunction self) -> double"""
4715 return _IMP_kernel.ScoringFunction_get_last_score(self)
4719 """create_restraints(ScoringFunction self) -> IMP::Restraints"""
4720 return _IMP_kernel.ScoringFunction_create_restraints(self)
4724 """__str__(ScoringFunction self) -> std::string"""
4725 return _IMP_kernel.ScoringFunction___str__(self)
4729 """__repr__(ScoringFunction self) -> std::string"""
4730 return _IMP_kernel.ScoringFunction___repr__(self)
4735 return _object_cast_to_ScoringFunction(o)
4738 def get_type_name(self):
4739 return self.__class__.__name__
4740 def do_show(self, out):
4742 def get_version_info(self):
4744 return VersionInfo(self.__module__,
4745 __import__(self.__module__).get_module_version())
4748 __import__(self.__module__).get_module_version())
4751 return _object_cast_to_ScoringFunction(o)
4753 __swig_destroy__ = _IMP_kernel.delete_ScoringFunction
4754 __del__ =
lambda self:
None
4755 def __disown__(self):
4757 _IMP_kernel.disown_ScoringFunction(self)
4758 return weakref_proxy(self)
4760 def do_destroy(self):
4761 """do_destroy(ScoringFunction self)"""
4762 return _IMP_kernel.ScoringFunction_do_destroy(self)
4765 def handle_set_has_required_score_states(self, arg0):
4766 """handle_set_has_required_score_states(ScoringFunction self, bool arg0)"""
4767 return _IMP_kernel.ScoringFunction_handle_set_has_required_score_states(self, arg0)
4770 def do_get_inputs(self):
4771 """do_get_inputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
4772 return _IMP_kernel.ScoringFunction_do_get_inputs(self)
4775 def do_get_interactions(self):
4776 """do_get_interactions(ScoringFunction self) -> IMP::ModelObjectsTemps"""
4777 return _IMP_kernel.ScoringFunction_do_get_interactions(self)
4779 ScoringFunction_swigregister = _IMP_kernel.ScoringFunction_swigregister
4780 ScoringFunction_swigregister(ScoringFunction)
4785 create_decomposition(IMP::RestraintsTemp const & rs) -> IMP::Restraints
4786 create_decomposition(ScoringFunction sf) -> IMP::ScoringFunctions
4788 return _IMP_kernel.create_decomposition(*args)
4789 class _ScoringFunctionAdaptor(_InputAdaptor):
4790 """Proxy of C++ IMP::ScoringFunctionAdaptor class"""
4791 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4792 __repr__ = _swig_repr
4794 def __init__(self, *args):
4796 __init__(IMP::ScoringFunctionAdaptor self) -> _ScoringFunctionAdaptor
4797 __init__(IMP::ScoringFunctionAdaptor self, ScoringFunction sf) -> _ScoringFunctionAdaptor
4798 __init__(IMP::ScoringFunctionAdaptor self, IMP::RestraintsTemp const & sf) -> _ScoringFunctionAdaptor
4799 __init__(IMP::ScoringFunctionAdaptor self, IMP::Restraints const & sf) -> _ScoringFunctionAdaptor
4800 __init__(IMP::ScoringFunctionAdaptor self, Restraint sf) -> _ScoringFunctionAdaptor
4802 this = _IMP_kernel.new__ScoringFunctionAdaptor(*args)
4804 self.this.append(this)
4807 __swig_destroy__ = _IMP_kernel.delete__ScoringFunctionAdaptor
4808 __del__ =
lambda self:
None
4809 _ScoringFunctionAdaptor_swigregister = _IMP_kernel._ScoringFunctionAdaptor_swigregister
4810 _ScoringFunctionAdaptor_swigregister(_ScoringFunctionAdaptor)
4815 show_restraint_hierarchy(_ScoringFunctionAdaptor rs, _ostream out)
4816 show_restraint_hierarchy(_ScoringFunctionAdaptor rs)
4818 return _IMP_kernel.show_restraint_hierarchy(*args)
4819 class Undecorator(Object):
4820 """Proxy of C++ IMP::Undecorator class"""
4821 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4823 def __init__(self, m, name):
4824 """__init__(IMP::Undecorator self, Model m, std::string name) -> Undecorator"""
4825 if self.__class__ == Undecorator:
4829 this = _IMP_kernel.new_Undecorator(_self, m, name)
4831 self.this.append(this)
4835 if self.__class__ != Undecorator:
4836 _director_objects.register(self)
4841 def teardown(self, pi):
4842 """teardown(Undecorator self, ParticleIndex pi)"""
4843 return _IMP_kernel.Undecorator_teardown(self, pi)
4847 """__str__(Undecorator self) -> std::string"""
4848 return _IMP_kernel.Undecorator___str__(self)
4852 """__repr__(Undecorator self) -> std::string"""
4853 return _IMP_kernel.Undecorator___repr__(self)
4858 return _object_cast_to_Undecorator(o)
4861 def get_type_name(self):
4862 return self.__class__.__name__
4863 def do_show(self, out):
4865 def get_version_info(self):
4867 return VersionInfo(self.__module__,
4868 __import__(self.__module__).get_module_version())
4871 __import__(self.__module__).get_module_version())
4874 return _object_cast_to_Undecorator(o)
4876 __swig_destroy__ = _IMP_kernel.delete_Undecorator
4877 __del__ =
lambda self:
None
4878 def __disown__(self):
4880 _IMP_kernel.disown_Undecorator(self)
4881 return weakref_proxy(self)
4883 def do_destroy(self):
4884 """do_destroy(Undecorator self)"""
4885 return _IMP_kernel.Undecorator_do_destroy(self)
4887 Undecorator_swigregister = _IMP_kernel.Undecorator_swigregister
4888 Undecorator_swigregister(Undecorator)
4890 class Model(Object):
4891 """Proxy of C++ IMP::Model class"""
4892 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4894 def __init__(self, *args):
4896 __init__(IMP::Model self, std::string name) -> Model
4897 __init__(IMP::Model self) -> Model
4899 this = _IMP_kernel.new_Model(*args)
4901 self.this.append(this)
4905 def clear_particle_caches(self, pi):
4906 """clear_particle_caches(Model self, ParticleIndex pi)"""
4907 return _IMP_kernel.Model_clear_particle_caches(self, pi)
4911 """add_particle(Model self, std::string name) -> ParticleIndex"""
4912 return _IMP_kernel.Model_add_particle(self, name)
4915 def get_particle_name(self, pi):
4916 """get_particle_name(Model self, ParticleIndex pi) -> std::string"""
4917 return _IMP_kernel.Model_get_particle_name(self, pi)
4920 def add_undecorator(self, pi, d):
4921 """add_undecorator(Model self, ParticleIndex pi, Undecorator d)"""
4922 return _IMP_kernel.Model_add_undecorator(self, pi, d)
4925 def remove_score_state(self, d):
4926 """remove_score_state(Model self, ScoreState d)"""
4927 return _IMP_kernel.Model_remove_score_state(self, d)
4930 def remove_score_states(self, d):
4931 """remove_score_states(Model self, IMP::ScoreStates const & d)"""
4932 return _IMP_kernel.Model_remove_score_states(self, d)
4935 def set_score_states(self, ps):
4936 """set_score_states(Model self, IMP::ScoreStates const & ps)"""
4937 return _IMP_kernel.Model_set_score_states(self, ps)
4940 def set_score_states_order(self, objs):
4941 """set_score_states_order(Model self, IMP::ScoreStates const & objs)"""
4942 return _IMP_kernel.Model_set_score_states_order(self, objs)
4945 def add_score_state(self, obj):
4946 """add_score_state(Model self, ScoreState obj) -> unsigned int"""
4947 return _IMP_kernel.Model_add_score_state(self, obj)
4950 def add_score_states(self, objs):
4951 """add_score_states(Model self, IMP::ScoreStates const & objs)"""
4952 return _IMP_kernel.Model_add_score_states(self, objs)
4955 def clear_score_states(self):
4956 """clear_score_states(Model self)"""
4957 return _IMP_kernel.Model_clear_score_states(self)
4960 def get_number_of_score_states(self):
4961 """get_number_of_score_states(Model self) -> unsigned int"""
4962 return _IMP_kernel.Model_get_number_of_score_states(self)
4965 def get_has_score_states(self):
4966 """get_has_score_states(Model self) -> bool"""
4967 return _IMP_kernel.Model_get_has_score_states(self)
4970 def get_score_state(self, i):
4971 """get_score_state(Model self, unsigned int i) -> ScoreState"""
4972 return _IMP_kernel.Model_get_score_state(self, i)
4975 def get_score_states(self):
4976 """get_score_states(Model self) -> IMP::ScoreStates"""
4977 return _IMP_kernel.Model_get_score_states(self)
4980 def reserve_score_states(self, sz):
4981 """reserve_score_states(Model self, unsigned int sz)"""
4982 return _IMP_kernel.Model_reserve_score_states(self, sz)
4986 """update(Model self)"""
4987 return _IMP_kernel.Model_update(self)
4990 def add_attribute(self, *args):
4992 add_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
4993 add_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
4994 add_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
4995 add_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
4996 add_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
4997 add_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
4998 add_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
4999 add_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5001 return _IMP_kernel.Model_add_attribute(self, *args)
5004 def remove_attribute(self, *args):
5006 remove_attribute(Model self, FloatKey attribute_key, ParticleIndex particle)
5007 remove_attribute(Model self, IntKey attribute_key, ParticleIndex particle)
5008 remove_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle)
5009 remove_attribute(Model self, StringKey attribute_key, ParticleIndex particle)
5010 remove_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle)
5011 remove_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle)
5012 remove_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle)
5013 remove_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle)
5015 return _IMP_kernel.Model_remove_attribute(self, *args)
5018 def get_has_attribute(self, *args):
5020 get_has_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> bool
5021 get_has_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> bool
5022 get_has_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle) -> bool
5023 get_has_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> bool
5024 get_has_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> bool
5025 get_has_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> bool
5026 get_has_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> bool
5027 get_has_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> bool
5029 return _IMP_kernel.Model_get_has_attribute(self, *args)
5032 def set_attribute(self, *args):
5034 set_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5035 set_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
5036 set_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
5037 set_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
5038 set_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
5039 set_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5040 set_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
5041 set_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5043 return _IMP_kernel.Model_set_attribute(self, *args)
5046 def get_attribute(self, *args):
5048 get_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> IMP::Float
5049 get_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> IMP::Int
5050 get_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle) -> IMP::Ints
5051 get_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> IMP::String
5052 get_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> IMP::ParticleIndexes
5053 get_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> ParticleIndex
5054 get_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> Object
5055 get_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> Object
5057 return _IMP_kernel.Model_get_attribute(self, *args)
5060 def add_cache_attribute(self, *args):
5062 add_cache_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5063 add_cache_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
5064 add_cache_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
5065 add_cache_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
5066 add_cache_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
5067 add_cache_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5068 add_cache_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
5069 add_cache_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5071 return _IMP_kernel.Model_add_cache_attribute(self, *args)
5074 def set_is_optimized(self, arg2, arg3, arg4):
5075 """set_is_optimized(Model self, FloatKey arg2, ParticleIndex arg3, bool arg4)"""
5076 return _IMP_kernel.Model_set_is_optimized(self, arg2, arg3, arg4)
5079 def add_to_derivative(self, k, particle, v, da):
5080 """add_to_derivative(Model self, FloatKey k, ParticleIndex particle, double v, DerivativeAccumulator da)"""
5081 return _IMP_kernel.Model_add_to_derivative(self, k, particle, v, da)
5084 def get_particle(self, p):
5085 """get_particle(Model self, ParticleIndex p) -> Particle"""
5086 return _IMP_kernel.Model_get_particle(self, p)
5089 def get_has_particle(self, p):
5090 """get_has_particle(Model self, ParticleIndex p) -> bool"""
5091 return _IMP_kernel.Model_get_has_particle(self, p)
5094 def get_particle_indexes(self):
5095 """get_particle_indexes(Model self) -> IMP::ParticleIndexes"""
5096 return _IMP_kernel.Model_get_particle_indexes(self)
5099 def get_model_objects(self):
5100 """get_model_objects(Model self) -> IMP::ModelObjectsTemp"""
5101 return _IMP_kernel.Model_get_model_objects(self)
5104 def remove_particle(self, pi):
5105 """remove_particle(Model self, ParticleIndex pi)"""
5106 return _IMP_kernel.Model_remove_particle(self, pi)
5109 def add_data(self, mk, o):
5110 """add_data(Model self, ModelKey mk, Object o)"""
5111 return _IMP_kernel.Model_add_data(self, mk, o)
5114 def get_data(self, mk):
5115 """get_data(Model self, ModelKey mk) -> Object"""
5116 return _IMP_kernel.Model_get_data(self, mk)
5119 def remove_data(self, mk):
5120 """remove_data(Model self, ModelKey mk)"""
5121 return _IMP_kernel.Model_remove_data(self, mk)
5124 def get_has_data(self, mk):
5125 """get_has_data(Model self, ModelKey mk) -> bool"""
5126 return _IMP_kernel.Model_get_has_data(self, mk)
5129 def get_version_info(self):
5130 """get_version_info(Model self) -> VersionInfo"""
5131 return _IMP_kernel.Model_get_version_info(self)
5134 def do_destroy(self):
5135 """do_destroy(Model self)"""
5136 return _IMP_kernel.Model_do_destroy(self)
5140 """__str__(Model self) -> std::string"""
5141 return _IMP_kernel.Model___str__(self)
5145 """__repr__(Model self) -> std::string"""
5146 return _IMP_kernel.Model___repr__(self)
5151 return _object_cast_to_Model(o)
5153 Model_swigregister = _IMP_kernel.Model_swigregister
5154 Model_swigregister(Model)
5156 class Decorator(_Value):
5157 """Proxy of C++ IMP::Decorator class"""
5158 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5159 __repr__ = _swig_repr
5161 def __init__(self, p):
5162 """__init__(IMP::Decorator self, _ParticleAdaptor p) -> Decorator"""
5163 this = _IMP_kernel.new_Decorator(p)
5165 self.this.append(this)
5169 def __ne__(self, o):
5170 """__ne__(Decorator self, Object o) -> bool"""
5171 return _IMP_kernel.Decorator___ne__(self, o)
5174 def __lt__(self, o):
5175 """__lt__(Decorator self, Object o) -> bool"""
5176 return _IMP_kernel.Decorator___lt__(self, o)
5179 def __gt__(self, o):
5180 """__gt__(Decorator self, Object o) -> bool"""
5181 return _IMP_kernel.Decorator___gt__(self, o)
5184 def __ge__(self, o):
5185 """__ge__(Decorator self, Object o) -> bool"""
5186 return _IMP_kernel.Decorator___ge__(self, o)
5189 def __le__(self, o):
5190 """__le__(Decorator self, Object o) -> bool"""
5191 return _IMP_kernel.Decorator___le__(self, o)
5194 def get_particle(self):
5195 """get_particle(Decorator self) -> Particle"""
5196 return _IMP_kernel.Decorator_get_particle(self)
5199 def get_particle_index(self):
5200 """get_particle_index(Decorator self) -> ParticleIndex"""
5201 return _IMP_kernel.Decorator_get_particle_index(self)
5204 def get_model(self):
5205 """get_model(Decorator self) -> Model"""
5206 return _IMP_kernel.Decorator_get_model(self)
5209 def get_is_valid(self):
5210 """get_is_valid(Decorator self) -> bool"""
5211 return _IMP_kernel.Decorator_get_is_valid(self)
5215 """__hash__(Decorator self) -> std::size_t"""
5216 return _IMP_kernel.Decorator___hash__(self)
5219 def __eq__(self, *args):
5221 __eq__(Decorator self, Object o) -> bool
5222 __eq__(Decorator self, Decorator o) -> bool
5223 __eq__(Decorator self, Particle o) -> bool
5225 return _IMP_kernel.Decorator___eq__(self, *args)
5229 """__bool__(Decorator self) -> bool"""
5230 return _IMP_kernel.Decorator___bool__(self)
5233 __nonzero__ = __bool__
5235 __swig_destroy__ = _IMP_kernel.delete_Decorator
5236 __del__ =
lambda self:
None
5237 Decorator_swigregister = _IMP_kernel.Decorator_swigregister
5238 Decorator_swigregister(Decorator)
5241 def check_particle(m, pi):
5242 """check_particle(Model m, ParticleIndex pi)"""
5243 return _IMP_kernel.check_particle(m, pi)
5244 class UnaryFunction(Object):
5245 """Proxy of C++ IMP::UnaryFunction class"""
5246 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5248 def __init__(self, *args):
5250 __init__(IMP::UnaryFunction self, std::string name) -> UnaryFunction
5251 __init__(IMP::UnaryFunction self) -> UnaryFunction
5253 if self.__class__ == UnaryFunction:
5257 this = _IMP_kernel.new_UnaryFunction(_self, *args)
5259 self.this.append(this)
5263 if self.__class__ != UnaryFunction:
5264 _director_objects.register(self)
5269 def evaluate(self, feature):
5270 """evaluate(UnaryFunction self, double feature) -> double"""
5271 return _IMP_kernel.UnaryFunction_evaluate(self, feature)
5274 def evaluate_with_derivative(self, feature):
5275 """evaluate_with_derivative(UnaryFunction self, double feature) -> IMP::DerivativePair"""
5276 return _IMP_kernel.UnaryFunction_evaluate_with_derivative(self, feature)
5278 __swig_destroy__ = _IMP_kernel.delete_UnaryFunction
5279 __del__ =
lambda self:
None
5282 """__str__(UnaryFunction self) -> std::string"""
5283 return _IMP_kernel.UnaryFunction___str__(self)
5287 """__repr__(UnaryFunction self) -> std::string"""
5288 return _IMP_kernel.UnaryFunction___repr__(self)
5293 return _object_cast_to_UnaryFunction(o)
5296 def get_type_name(self):
5297 return self.__class__.__name__
5298 def do_show(self, out):
5300 def get_version_info(self):
5302 return VersionInfo(self.__module__,
5303 __import__(self.__module__).get_module_version())
5306 __import__(self.__module__).get_module_version())
5309 return _object_cast_to_UnaryFunction(o)
5311 def __disown__(self):
5313 _IMP_kernel.disown_UnaryFunction(self)
5314 return weakref_proxy(self)
5316 def do_destroy(self):
5317 """do_destroy(UnaryFunction self)"""
5318 return _IMP_kernel.UnaryFunction_do_destroy(self)
5320 UnaryFunction_swigregister = _IMP_kernel.UnaryFunction_swigregister
5321 UnaryFunction_swigregister(UnaryFunction)
5323 class OptimizerState(ModelObject):
5324 """Proxy of C++ IMP::OptimizerState class"""
5325 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5327 def __init__(self, m, name):
5328 """__init__(IMP::OptimizerState self, Model m, std::string name) -> OptimizerState"""
5329 if self.__class__ == OptimizerState:
5333 this = _IMP_kernel.new_OptimizerState(_self, m, name)
5335 self.this.append(this)
5339 if self.__class__ != OptimizerState:
5340 _director_objects.register(self)
5346 """update(OptimizerState self)"""
5347 return _IMP_kernel.OptimizerState_update(self)
5350 def set_is_optimizing(self, arg0):
5351 """set_is_optimizing(OptimizerState self, bool arg0)"""
5352 return _IMP_kernel.OptimizerState_set_is_optimizing(self, arg0)
5355 def get_optimizer(self):
5356 """get_optimizer(OptimizerState self) -> Optimizer"""
5357 return _IMP_kernel.OptimizerState_get_optimizer(self)
5360 def set_period(self, p):
5361 """set_period(OptimizerState self, unsigned int p)"""
5362 return _IMP_kernel.OptimizerState_set_period(self, p)
5365 def get_period(self):
5366 """get_period(OptimizerState self) -> unsigned int"""
5367 return _IMP_kernel.OptimizerState_get_period(self)
5371 """reset(OptimizerState self)"""
5372 return _IMP_kernel.OptimizerState_reset(self)
5375 def update_always(self):
5376 """update_always(OptimizerState self)"""
5377 return _IMP_kernel.OptimizerState_update_always(self)
5380 def get_number_of_updates(self):
5381 """get_number_of_updates(OptimizerState self) -> unsigned int"""
5382 return _IMP_kernel.OptimizerState_get_number_of_updates(self)
5385 def set_number_of_updates(self, n):
5386 """set_number_of_updates(OptimizerState self, unsigned int n)"""
5387 return _IMP_kernel.OptimizerState_set_number_of_updates(self, n)
5389 __swig_destroy__ = _IMP_kernel.delete_OptimizerState
5390 __del__ =
lambda self:
None
5392 def do_update(self, arg0):
5393 """do_update(OptimizerState self, unsigned int arg0)"""
5394 return _IMP_kernel.OptimizerState_do_update(self, arg0)
5397 def do_set_is_optimizing(self, arg0):
5398 """do_set_is_optimizing(OptimizerState self, bool arg0)"""
5399 return _IMP_kernel.OptimizerState_do_set_is_optimizing(self, arg0)
5402 def do_get_inputs(self):
5403 """do_get_inputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
5404 return _IMP_kernel.OptimizerState_do_get_inputs(self)
5407 def do_get_outputs(self):
5408 """do_get_outputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
5409 return _IMP_kernel.OptimizerState_do_get_outputs(self)
5413 """__str__(OptimizerState self) -> std::string"""
5414 return _IMP_kernel.OptimizerState___str__(self)
5418 """__repr__(OptimizerState self) -> std::string"""
5419 return _IMP_kernel.OptimizerState___repr__(self)
5424 return _object_cast_to_OptimizerState(o)
5427 def get_type_name(self):
5428 return self.__class__.__name__
5429 def do_show(self, out):
5431 def get_version_info(self):
5433 return VersionInfo(self.__module__,
5434 __import__(self.__module__).get_module_version())
5437 __import__(self.__module__).get_module_version())
5440 return _object_cast_to_OptimizerState(o)
5442 def __disown__(self):
5444 _IMP_kernel.disown_OptimizerState(self)
5445 return weakref_proxy(self)
5447 def do_destroy(self):
5448 """do_destroy(OptimizerState self)"""
5449 return _IMP_kernel.OptimizerState_do_destroy(self)
5452 def handle_set_has_required_score_states(self, arg0):
5453 """handle_set_has_required_score_states(OptimizerState self, bool arg0)"""
5454 return _IMP_kernel.OptimizerState_handle_set_has_required_score_states(self, arg0)
5457 def do_get_interactions(self):
5458 """do_get_interactions(OptimizerState self) -> IMP::ModelObjectsTemps"""
5459 return _IMP_kernel.OptimizerState_do_get_interactions(self)
5461 OptimizerState_swigregister = _IMP_kernel.OptimizerState_swigregister
5462 OptimizerState_swigregister(OptimizerState)
5464 class Refiner(_ParticleInputs, Object):
5465 """Proxy of C++ IMP::Refiner class"""
5466 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5468 def __init__(self, *args):
5470 __init__(IMP::Refiner self, std::string name, bool is_by_ref=False) -> Refiner
5471 __init__(IMP::Refiner self, std::string name) -> Refiner
5472 __init__(IMP::Refiner self) -> Refiner
5474 if self.__class__ == Refiner:
5478 this = _IMP_kernel.new_Refiner(_self, *args)
5480 self.this.append(this)
5484 if self.__class__ != Refiner:
5485 _director_objects.register(self)
5490 def get_can_refine(self, arg0):
5491 """get_can_refine(Refiner self, Particle arg0) -> bool"""
5492 return _IMP_kernel.Refiner_get_can_refine(self, arg0)
5495 def get_refined_indexes(self, m, pi):
5496 """get_refined_indexes(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes"""
5497 return _IMP_kernel.Refiner_get_refined_indexes(self, m, pi)
5500 def get_refined_indexes_by_ref(self, m, pi):
5501 """get_refined_indexes_by_ref(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes const &"""
5502 return _IMP_kernel.Refiner_get_refined_indexes_by_ref(self, m, pi)
5505 def get_is_by_ref_supported(self):
5506 """get_is_by_ref_supported(Refiner self) -> bool"""
5507 return _IMP_kernel.Refiner_get_is_by_ref_supported(self)
5510 def get_refined(self, *args):
5512 get_refined(Refiner self, Particle a) -> IMP::ParticlesTemp const
5513 get_refined(Refiner self, Particle a, unsigned int i) -> Particle
5515 return _IMP_kernel.Refiner_get_refined(self, *args)
5518 def get_number_of_refined(self, a):
5519 """get_number_of_refined(Refiner self, Particle a) -> unsigned int"""
5520 return _IMP_kernel.Refiner_get_number_of_refined(self, a)
5524 """__str__(Refiner self) -> std::string"""
5525 return _IMP_kernel.Refiner___str__(self)
5529 """__repr__(Refiner self) -> std::string"""
5530 return _IMP_kernel.Refiner___repr__(self)
5535 return _object_cast_to_Refiner(o)
5538 def get_type_name(self):
5539 return self.__class__.__name__
5540 def do_show(self, out):
5542 def get_version_info(self):
5544 return VersionInfo(self.__module__,
5545 __import__(self.__module__).get_module_version())
5548 __import__(self.__module__).get_module_version())
5551 return _object_cast_to_Refiner(o)
5553 __swig_destroy__ = _IMP_kernel.delete_Refiner
5554 __del__ =
lambda self:
None
5555 def __disown__(self):
5557 _IMP_kernel.disown_Refiner(self)
5558 return weakref_proxy(self)
5560 def do_get_inputs(self, m, pis):
5561 """do_get_inputs(Refiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5562 return _IMP_kernel.Refiner_do_get_inputs(self, m, pis)
5565 def do_destroy(self):
5566 """do_destroy(Refiner self)"""
5567 return _IMP_kernel.Refiner_do_destroy(self)
5569 Refiner_swigregister = _IMP_kernel.Refiner_swigregister
5570 Refiner_swigregister(Refiner)
5572 class Optimizer(ModelObject):
5573 """Proxy of C++ IMP::Optimizer class"""
5574 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5576 def set_is_optimizing_states(self, tf):
5577 """set_is_optimizing_states(Optimizer self, bool tf)"""
5578 return _IMP_kernel.Optimizer_set_is_optimizing_states(self, tf)
5581 def get_optimizer_state_inputs(self):
5582 """get_optimizer_state_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5583 return _IMP_kernel.Optimizer_get_optimizer_state_inputs(self)
5586 def do_get_inputs(self):
5587 """do_get_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5588 return _IMP_kernel.Optimizer_do_get_inputs(self)
5591 def do_get_outputs(self):
5592 """do_get_outputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5593 return _IMP_kernel.Optimizer_do_get_outputs(self)
5596 def __init__(self, *args):
5598 __init__(IMP::Optimizer self, Model m, std::string name) -> Optimizer
5599 __init__(IMP::Optimizer self, Model m) -> Optimizer
5601 if self.__class__ == Optimizer:
5605 this = _IMP_kernel.new_Optimizer(_self, *args)
5607 self.this.append(this)
5611 if self.__class__ != Optimizer:
5612 _director_objects.register(self)
5617 def optimize(self, max_steps):
5618 """optimize(Optimizer self, unsigned int max_steps) -> double"""
5619 return _IMP_kernel.Optimizer_optimize(self, max_steps)
5622 def set_stop_on_good_score(self, tf):
5623 """set_stop_on_good_score(Optimizer self, bool tf)"""
5624 return _IMP_kernel.Optimizer_set_stop_on_good_score(self, tf)
5627 def get_stop_on_good_score(self):
5628 """get_stop_on_good_score(Optimizer self) -> bool"""
5629 return _IMP_kernel.Optimizer_get_stop_on_good_score(self)
5632 def get_last_score(self):
5633 """get_last_score(Optimizer self) -> double"""
5634 return _IMP_kernel.Optimizer_get_last_score(self)
5637 def get_scoring_function(self):
5638 """get_scoring_function(Optimizer self) -> ScoringFunction"""
5639 return _IMP_kernel.Optimizer_get_scoring_function(self)
5642 def remove_optimizer_state(self, d):
5643 """remove_optimizer_state(Optimizer self, OptimizerState d)"""
5644 return _IMP_kernel.Optimizer_remove_optimizer_state(self, d)
5647 def remove_optimizer_states(self, d):
5648 """remove_optimizer_states(Optimizer self, IMP::OptimizerStates const & d)"""
5649 return _IMP_kernel.Optimizer_remove_optimizer_states(self, d)
5652 def set_optimizer_states(self, ps):
5653 """set_optimizer_states(Optimizer self, IMP::OptimizerStates const & ps)"""
5654 return _IMP_kernel.Optimizer_set_optimizer_states(self, ps)
5657 def set_optimizer_states_order(self, objs):
5658 """set_optimizer_states_order(Optimizer self, IMP::OptimizerStates const & objs)"""
5659 return _IMP_kernel.Optimizer_set_optimizer_states_order(self, objs)
5662 def add_optimizer_state(self, obj):
5663 """add_optimizer_state(Optimizer self, OptimizerState obj) -> unsigned int"""
5664 return _IMP_kernel.Optimizer_add_optimizer_state(self, obj)
5667 def add_optimizer_states(self, objs):
5668 """add_optimizer_states(Optimizer self, IMP::OptimizerStates const & objs)"""
5669 return _IMP_kernel.Optimizer_add_optimizer_states(self, objs)
5672 def clear_optimizer_states(self):
5673 """clear_optimizer_states(Optimizer self)"""
5674 return _IMP_kernel.Optimizer_clear_optimizer_states(self)
5677 def get_number_of_optimizer_states(self):
5678 """get_number_of_optimizer_states(Optimizer self) -> unsigned int"""
5679 return _IMP_kernel.Optimizer_get_number_of_optimizer_states(self)
5682 def get_has_optimizer_states(self):
5683 """get_has_optimizer_states(Optimizer self) -> bool"""
5684 return _IMP_kernel.Optimizer_get_has_optimizer_states(self)
5687 def get_optimizer_state(self, i):
5688 """get_optimizer_state(Optimizer self, unsigned int i) -> OptimizerState"""
5689 return _IMP_kernel.Optimizer_get_optimizer_state(self, i)
5692 def get_optimizer_states(self):
5693 """get_optimizer_states(Optimizer self) -> IMP::OptimizerStates"""
5694 return _IMP_kernel.Optimizer_get_optimizer_states(self)
5697 def reserve_optimizer_states(self, sz):
5698 """reserve_optimizer_states(Optimizer self, unsigned int sz)"""
5699 return _IMP_kernel.Optimizer_reserve_optimizer_states(self, sz)
5702 def set_scoring_function(self, sf):
5703 """set_scoring_function(Optimizer self, _ScoringFunctionAdaptor sf)"""
5704 return _IMP_kernel.Optimizer_set_scoring_function(self, sf)
5706 __swig_destroy__ = _IMP_kernel.delete_Optimizer
5708 """__del__(IMP::Optimizer self)"""
5710 _director_objects.cleanup()
5716 def do_optimize(self, ns):
5717 """do_optimize(Optimizer self, unsigned int ns) -> double"""
5718 return _IMP_kernel.Optimizer_do_optimize(self, ns)
5721 def update_states(self):
5722 """update_states(Optimizer self)"""
5723 return _IMP_kernel.Optimizer_update_states(self)
5727 """__str__(Optimizer self) -> std::string"""
5728 return _IMP_kernel.Optimizer___str__(self)
5732 """__repr__(Optimizer self) -> std::string"""
5733 return _IMP_kernel.Optimizer___repr__(self)
5738 return _object_cast_to_Optimizer(o)
5741 def get_type_name(self):
5742 return self.__class__.__name__
5743 def do_show(self, out):
5745 def get_version_info(self):
5747 return VersionInfo(self.__module__,
5748 __import__(self.__module__).get_module_version())
5751 __import__(self.__module__).get_module_version())
5754 return _object_cast_to_Optimizer(o)
5756 def __disown__(self):
5758 _IMP_kernel.disown_Optimizer(self)
5759 return weakref_proxy(self)
5761 def do_destroy(self):
5762 """do_destroy(Optimizer self)"""
5763 return _IMP_kernel.Optimizer_do_destroy(self)
5766 def handle_set_has_required_score_states(self, arg0):
5767 """handle_set_has_required_score_states(Optimizer self, bool arg0)"""
5768 return _IMP_kernel.Optimizer_handle_set_has_required_score_states(self, arg0)
5771 def do_get_interactions(self):
5772 """do_get_interactions(Optimizer self) -> IMP::ModelObjectsTemps"""
5773 return _IMP_kernel.Optimizer_do_get_interactions(self)
5775 Optimizer_swigregister = _IMP_kernel.Optimizer_swigregister
5776 Optimizer_swigregister(Optimizer)
5778 class AttributeOptimizer(Optimizer):
5779 """Proxy of C++ IMP::AttributeOptimizer class"""
5780 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5782 def __init__(self, *args):
5784 __init__(IMP::AttributeOptimizer self, Model m, std::string name) -> AttributeOptimizer
5785 __init__(IMP::AttributeOptimizer self, Model m) -> AttributeOptimizer
5787 if self.__class__ == AttributeOptimizer:
5791 this = _IMP_kernel.new_AttributeOptimizer(_self, *args)
5793 self.this.append(this)
5797 if self.__class__ != AttributeOptimizer:
5798 _director_objects.register(self)
5803 def get_optimized_attributes(self):
5804 """get_optimized_attributes(AttributeOptimizer self) -> IMP::FloatIndexes"""
5805 return _IMP_kernel.AttributeOptimizer_get_optimized_attributes(self)
5808 def set_value(self, fi, v):
5809 """set_value(AttributeOptimizer self, FloatIndex fi, double v)"""
5810 return _IMP_kernel.AttributeOptimizer_set_value(self, fi, v)
5813 def get_value(self, fi):
5814 """get_value(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
5815 return _IMP_kernel.AttributeOptimizer_get_value(self, fi)
5818 def get_derivative(self, fi):
5819 """get_derivative(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
5820 return _IMP_kernel.AttributeOptimizer_get_derivative(self, fi)
5823 def get_width(self, k):
5824 """get_width(AttributeOptimizer self, FloatKey k) -> double"""
5825 return _IMP_kernel.AttributeOptimizer_get_width(self, k)
5828 def set_scaled_value(self, fi, v):
5829 """set_scaled_value(AttributeOptimizer self, FloatIndex fi, IMP::Float v)"""
5830 return _IMP_kernel.AttributeOptimizer_set_scaled_value(self, fi, v)
5833 def get_scaled_value(self, fi):
5834 """get_scaled_value(AttributeOptimizer self, FloatIndex fi) -> double"""
5835 return _IMP_kernel.AttributeOptimizer_get_scaled_value(self, fi)
5838 def get_scaled_derivative(self, fi):
5839 """get_scaled_derivative(AttributeOptimizer self, FloatIndex fi) -> double"""
5840 return _IMP_kernel.AttributeOptimizer_get_scaled_derivative(self, fi)
5843 def clear_range_cache(self):
5844 """clear_range_cache(AttributeOptimizer self)"""
5845 return _IMP_kernel.AttributeOptimizer_clear_range_cache(self)
5849 """__str__(AttributeOptimizer self) -> std::string"""
5850 return _IMP_kernel.AttributeOptimizer___str__(self)
5854 """__repr__(AttributeOptimizer self) -> std::string"""
5855 return _IMP_kernel.AttributeOptimizer___repr__(self)
5860 return _object_cast_to_AttributeOptimizer(o)
5863 def get_type_name(self):
5864 return self.__class__.__name__
5865 def do_show(self, out):
5867 def get_version_info(self):
5869 return VersionInfo(self.__module__,
5870 __import__(self.__module__).get_module_version())
5873 __import__(self.__module__).get_module_version())
5876 return _object_cast_to_AttributeOptimizer(o)
5878 __swig_destroy__ = _IMP_kernel.delete_AttributeOptimizer
5879 __del__ =
lambda self:
None
5880 def __disown__(self):
5882 _IMP_kernel.disown_AttributeOptimizer(self)
5883 return weakref_proxy(self)
5885 def do_destroy(self):
5886 """do_destroy(AttributeOptimizer self)"""
5887 return _IMP_kernel.AttributeOptimizer_do_destroy(self)
5890 def handle_set_has_required_score_states(self, arg0):
5891 """handle_set_has_required_score_states(AttributeOptimizer self, bool arg0)"""
5892 return _IMP_kernel.AttributeOptimizer_handle_set_has_required_score_states(self, arg0)
5895 def do_get_inputs(self):
5896 """do_get_inputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
5897 return _IMP_kernel.AttributeOptimizer_do_get_inputs(self)
5900 def do_get_outputs(self):
5901 """do_get_outputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
5902 return _IMP_kernel.AttributeOptimizer_do_get_outputs(self)
5905 def do_get_interactions(self):
5906 """do_get_interactions(AttributeOptimizer self) -> IMP::ModelObjectsTemps"""
5907 return _IMP_kernel.AttributeOptimizer_do_get_interactions(self)
5910 def do_optimize(self, ns):
5911 """do_optimize(AttributeOptimizer self, unsigned int ns) -> double"""
5912 return _IMP_kernel.AttributeOptimizer_do_optimize(self, ns)
5914 AttributeOptimizer_swigregister = _IMP_kernel.AttributeOptimizer_swigregister
5915 AttributeOptimizer_swigregister(AttributeOptimizer)
5917 class ConfigurationSet(Object):
5918 """Proxy of C++ IMP::ConfigurationSet class"""
5919 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5921 def __init__(self, *args):
5923 __init__(IMP::ConfigurationSet self, Model m, std::string name) -> ConfigurationSet
5924 __init__(IMP::ConfigurationSet self, Model m) -> ConfigurationSet
5926 this = _IMP_kernel.new_ConfigurationSet(*args)
5928 self.this.append(this)
5932 def save_configuration(self):
5933 """save_configuration(ConfigurationSet self)"""
5934 return _IMP_kernel.ConfigurationSet_save_configuration(self)
5937 def get_number_of_configurations(self):
5938 """get_number_of_configurations(ConfigurationSet self) -> unsigned int"""
5939 return _IMP_kernel.ConfigurationSet_get_number_of_configurations(self)
5942 def load_configuration(self, i):
5943 """load_configuration(ConfigurationSet self, int i)"""
5944 return _IMP_kernel.ConfigurationSet_load_configuration(self, i)
5947 def remove_configuration(self, i):
5948 """remove_configuration(ConfigurationSet self, unsigned int i)"""
5949 return _IMP_kernel.ConfigurationSet_remove_configuration(self, i)
5952 def get_model(self):
5953 """get_model(ConfigurationSet self) -> Model"""
5954 return _IMP_kernel.ConfigurationSet_get_model(self)
5957 def get_version_info(self):
5958 """get_version_info(ConfigurationSet self) -> VersionInfo"""
5959 return _IMP_kernel.ConfigurationSet_get_version_info(self)
5963 """__str__(ConfigurationSet self) -> std::string"""
5964 return _IMP_kernel.ConfigurationSet___str__(self)
5968 """__repr__(ConfigurationSet self) -> std::string"""
5969 return _IMP_kernel.ConfigurationSet___repr__(self)
5974 return _object_cast_to_ConfigurationSet(o)
5976 ConfigurationSet_swigregister = _IMP_kernel.ConfigurationSet_swigregister
5977 ConfigurationSet_swigregister(ConfigurationSet)
5979 class SaveToConfigurationSetOptimizerState(OptimizerState):
5980 """Proxy of C++ IMP::SaveToConfigurationSetOptimizerState class"""
5981 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5983 def __init__(self, cs):
5984 """__init__(IMP::SaveToConfigurationSetOptimizerState self, ConfigurationSet cs) -> SaveToConfigurationSetOptimizerState"""
5985 this = _IMP_kernel.new_SaveToConfigurationSetOptimizerState(cs)
5987 self.this.append(this)
5991 def get_version_info(self):
5992 """get_version_info(SaveToConfigurationSetOptimizerState self) -> VersionInfo"""
5993 return _IMP_kernel.SaveToConfigurationSetOptimizerState_get_version_info(self)
5997 """__str__(SaveToConfigurationSetOptimizerState self) -> std::string"""
5998 return _IMP_kernel.SaveToConfigurationSetOptimizerState___str__(self)
6002 """__repr__(SaveToConfigurationSetOptimizerState self) -> std::string"""
6003 return _IMP_kernel.SaveToConfigurationSetOptimizerState___repr__(self)
6008 return _object_cast_to_SaveToConfigurationSetOptimizerState(o)
6010 SaveToConfigurationSetOptimizerState_swigregister = _IMP_kernel.SaveToConfigurationSetOptimizerState_swigregister
6011 SaveToConfigurationSetOptimizerState_swigregister(SaveToConfigurationSetOptimizerState)
6013 class Configuration(Object):
6014 """Proxy of C++ IMP::Configuration class"""
6015 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6017 def __init__(self, *args):
6019 __init__(IMP::Configuration self, Model m, std::string name) -> Configuration
6020 __init__(IMP::Configuration self, Model m) -> Configuration
6021 __init__(IMP::Configuration self, Model m, Configuration base, std::string name) -> Configuration
6022 __init__(IMP::Configuration self, Model m, Configuration base) -> Configuration
6024 this = _IMP_kernel.new_Configuration(*args)
6026 self.this.append(this)
6030 def load_configuration(self):
6031 """load_configuration(Configuration self)"""
6032 return _IMP_kernel.Configuration_load_configuration(self)
6035 def swap_configuration(self):
6036 """swap_configuration(Configuration self)"""
6037 return _IMP_kernel.Configuration_swap_configuration(self)
6040 def get_version_info(self):
6041 """get_version_info(Configuration self) -> VersionInfo"""
6042 return _IMP_kernel.Configuration_get_version_info(self)
6046 """__str__(Configuration self) -> std::string"""
6047 return _IMP_kernel.Configuration___str__(self)
6051 """__repr__(Configuration self) -> std::string"""
6052 return _IMP_kernel.Configuration___repr__(self)
6057 return _object_cast_to_Configuration(o)
6059 Configuration_swigregister = _IMP_kernel.Configuration_swigregister
6060 Configuration_swigregister(Configuration)
6062 class Sampler(Object):
6063 """Proxy of C++ IMP::Sampler class"""
6064 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6066 def __init__(self, *args):
6068 __init__(IMP::Sampler self, Model m, std::string name) -> Sampler
6069 __init__(IMP::Sampler self, Model m) -> Sampler
6071 if self.__class__ == Sampler:
6075 this = _IMP_kernel.new_Sampler(_self, *args)
6077 self.this.append(this)
6081 if self.__class__ != Sampler:
6082 _director_objects.register(self)
6087 def create_sample(self):
6088 """create_sample(Sampler self) -> ConfigurationSet"""
6089 return _IMP_kernel.Sampler_create_sample(self)
6092 def get_scoring_function(self):
6093 """get_scoring_function(Sampler self) -> ScoringFunction"""
6094 return _IMP_kernel.Sampler_get_scoring_function(self)
6097 def set_scoring_function(self, sf):
6098 """set_scoring_function(Sampler self, _ScoringFunctionAdaptor sf)"""
6099 return _IMP_kernel.Sampler_set_scoring_function(self, sf)
6102 def get_model(self):
6103 """get_model(Sampler self) -> Model"""
6104 return _IMP_kernel.Sampler_get_model(self)
6107 def do_sample(self):
6108 """do_sample(Sampler self) -> ConfigurationSet"""
6109 return _IMP_kernel.Sampler_do_sample(self)
6111 __swig_destroy__ = _IMP_kernel.delete_Sampler
6112 __del__ =
lambda self:
None
6115 """__str__(Sampler self) -> std::string"""
6116 return _IMP_kernel.Sampler___str__(self)
6120 """__repr__(Sampler self) -> std::string"""
6121 return _IMP_kernel.Sampler___repr__(self)
6126 return _object_cast_to_Sampler(o)
6129 def get_type_name(self):
6130 return self.__class__.__name__
6131 def do_show(self, out):
6133 def get_version_info(self):
6135 return VersionInfo(self.__module__,
6136 __import__(self.__module__).get_module_version())
6139 __import__(self.__module__).get_module_version())
6142 return _object_cast_to_Sampler(o)
6144 def __disown__(self):
6146 _IMP_kernel.disown_Sampler(self)
6147 return weakref_proxy(self)
6149 def do_destroy(self):
6150 """do_destroy(Sampler self)"""
6151 return _IMP_kernel.Sampler_do_destroy(self)
6153 Sampler_swigregister = _IMP_kernel.Sampler_swigregister
6154 Sampler_swigregister(Sampler)
6156 class PairModifier(_ParticleInputs, _ParticleOutputs, Object):
6157 """Proxy of C++ IMP::PairModifier class"""
6158 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6160 def __init__(self, *args):
6162 __init__(IMP::PairModifier self, std::string name) -> PairModifier
6163 __init__(IMP::PairModifier self) -> PairModifier
6165 if self.__class__ == PairModifier:
6169 this = _IMP_kernel.new_PairModifier(_self, *args)
6171 self.this.append(this)
6175 if self.__class__ != PairModifier:
6176 _director_objects.register(self)
6181 def apply_index(self, m, v):
6182 """apply_index(PairModifier self, Model m, IMP::ParticleIndexPair const & v)"""
6183 return _IMP_kernel.PairModifier_apply_index(self, m, v)
6186 def apply_indexes(self, m, o, lower_bound, upper_bound):
6187 """apply_indexes(PairModifier self, Model m, IMP::ParticleIndexPairs const & o, unsigned int lower_bound, unsigned int upper_bound)"""
6188 return _IMP_kernel.PairModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
6192 """__str__(PairModifier self) -> std::string"""
6193 return _IMP_kernel.PairModifier___str__(self)
6197 """__repr__(PairModifier self) -> std::string"""
6198 return _IMP_kernel.PairModifier___repr__(self)
6203 return _object_cast_to_PairModifier(o)
6206 def get_type_name(self):
6207 return self.__class__.__name__
6208 def do_show(self, out):
6210 def get_version_info(self):
6212 return VersionInfo(self.__module__,
6213 __import__(self.__module__).get_module_version())
6216 __import__(self.__module__).get_module_version())
6219 return _object_cast_to_PairModifier(o)
6221 __swig_destroy__ = _IMP_kernel.delete_PairModifier
6222 __del__ =
lambda self:
None
6223 def __disown__(self):
6225 _IMP_kernel.disown_PairModifier(self)
6226 return weakref_proxy(self)
6228 def do_get_inputs(self, m, pis):
6229 """do_get_inputs(PairModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6230 return _IMP_kernel.PairModifier_do_get_inputs(self, m, pis)
6233 def do_get_outputs(self, m, pis):
6234 """do_get_outputs(PairModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6235 return _IMP_kernel.PairModifier_do_get_outputs(self, m, pis)
6238 def do_destroy(self):
6239 """do_destroy(PairModifier self)"""
6240 return _IMP_kernel.PairModifier_do_destroy(self)
6242 PairModifier_swigregister = _IMP_kernel.PairModifier_swigregister
6243 PairModifier_swigregister(PairModifier)
6245 class PairScore(_ParticleInputs, Object):
6246 """Proxy of C++ IMP::PairScore class"""
6247 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6249 def __init__(self, *args):
6251 __init__(IMP::PairScore self, std::string name) -> PairScore
6252 __init__(IMP::PairScore self) -> PairScore
6254 if self.__class__ == PairScore:
6258 this = _IMP_kernel.new_PairScore(_self, *args)
6260 self.this.append(this)
6264 if self.__class__ != PairScore:
6265 _director_objects.register(self)
6270 def evaluate_index(self, m, vt, da):
6271 """evaluate_index(PairScore self, Model m, IMP::ParticleIndexPair const & vt, DerivativeAccumulator da) -> double"""
6272 return _IMP_kernel.PairScore_evaluate_index(self, m, vt, da)
6275 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
6276 """evaluate_indexes(PairScore self, Model m, IMP::ParticleIndexPairs const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
6277 return _IMP_kernel.PairScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
6280 def evaluate_if_good_index(self, m, vt, da, max):
6281 """evaluate_if_good_index(PairScore self, Model m, IMP::ParticleIndexPair const & vt, DerivativeAccumulator da, double max) -> double"""
6282 return _IMP_kernel.PairScore_evaluate_if_good_index(self, m, vt, da, max)
6285 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
6286 """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"""
6287 return _IMP_kernel.PairScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
6290 def create_current_decomposition(self, m, vt):
6291 """create_current_decomposition(PairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
6292 return _IMP_kernel.PairScore_create_current_decomposition(self, m, vt)
6295 def do_create_current_decomposition(self, m, vt):
6296 """do_create_current_decomposition(PairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
6297 return _IMP_kernel.PairScore_do_create_current_decomposition(self, m, vt)
6299 __swig_destroy__ = _IMP_kernel.delete_PairScore
6300 __del__ =
lambda self:
None
6303 """__str__(PairScore self) -> std::string"""
6304 return _IMP_kernel.PairScore___str__(self)
6308 """__repr__(PairScore self) -> std::string"""
6309 return _IMP_kernel.PairScore___repr__(self)
6314 return _object_cast_to_PairScore(o)
6317 def get_type_name(self):
6318 return self.__class__.__name__
6319 def do_show(self, out):
6321 def get_version_info(self):
6323 return VersionInfo(self.__module__,
6324 __import__(self.__module__).get_module_version())
6327 __import__(self.__module__).get_module_version())
6330 return _object_cast_to_PairScore(o)
6332 def __disown__(self):
6334 _IMP_kernel.disown_PairScore(self)
6335 return weakref_proxy(self)
6337 def do_get_inputs(self, m, pis):
6338 """do_get_inputs(PairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6339 return _IMP_kernel.PairScore_do_get_inputs(self, m, pis)
6342 def do_destroy(self):
6343 """do_destroy(PairScore self)"""
6344 return _IMP_kernel.PairScore_do_destroy(self)
6346 PairScore_swigregister = _IMP_kernel.PairScore_swigregister
6347 PairScore_swigregister(PairScore)
6349 class PairPredicate(_ParticleInputs, Object):
6350 """Proxy of C++ IMP::PairPredicate class"""
6351 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6353 def __init__(self, *args):
6355 __init__(IMP::PairPredicate self, std::string name) -> PairPredicate
6356 __init__(IMP::PairPredicate self) -> PairPredicate
6358 if self.__class__ == PairPredicate:
6362 this = _IMP_kernel.new_PairPredicate(_self, *args)
6364 self.this.append(this)
6368 if self.__class__ != PairPredicate:
6369 _director_objects.register(self)
6374 def get_value(self, *args):
6376 get_value(PairPredicate self, IMP::ParticlePair const & vt) -> int
6377 get_value(PairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
6379 return _IMP_kernel.PairPredicate_get_value(self, *args)
6382 def __call__(self, m, vt):
6383 """__call__(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int"""
6384 return _IMP_kernel.PairPredicate___call__(self, m, vt)
6387 def get_value_index(self, *args):
6389 get_value_index(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int
6390 get_value_index(PairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
6392 return _IMP_kernel.PairPredicate_get_value_index(self, *args)
6394 __swig_destroy__ = _IMP_kernel.delete_PairPredicate
6395 __del__ =
lambda self:
None
6398 """__str__(PairPredicate self) -> std::string"""
6399 return _IMP_kernel.PairPredicate___str__(self)
6403 """__repr__(PairPredicate self) -> std::string"""
6404 return _IMP_kernel.PairPredicate___repr__(self)
6409 return _object_cast_to_PairPredicate(o)
6412 def get_type_name(self):
6413 return self.__class__.__name__
6414 def do_show(self, out):
6416 def get_version_info(self):
6418 return VersionInfo(self.__module__,
6419 __import__(self.__module__).get_module_version())
6422 __import__(self.__module__).get_module_version())
6425 return _object_cast_to_PairPredicate(o)
6427 def __disown__(self):
6429 _IMP_kernel.disown_PairPredicate(self)
6430 return weakref_proxy(self)
6432 def do_get_inputs(self, m, pis):
6433 """do_get_inputs(PairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6434 return _IMP_kernel.PairPredicate_do_get_inputs(self, m, pis)
6437 def do_destroy(self):
6438 """do_destroy(PairPredicate self)"""
6439 return _IMP_kernel.PairPredicate_do_destroy(self)
6441 PairPredicate_swigregister = _IMP_kernel.PairPredicate_swigregister
6442 PairPredicate_swigregister(PairPredicate)
6444 class PairContainer(Container):
6445 """Proxy of C++ IMP::PairContainer class"""
6446 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6448 def apply_generic(self, m):
6449 """apply_generic(PairContainer self, PairModifier m)"""
6450 return _IMP_kernel.PairContainer_apply_generic(self, m)
6453 def apply(self, sm):
6454 """apply(PairContainer self, PairModifier sm)"""
6455 return _IMP_kernel.PairContainer_apply(self, sm)
6458 def get_range_indexes(self):
6459 """get_range_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
6460 return _IMP_kernel.PairContainer_get_range_indexes(self)
6463 def get_contents(self):
6464 """get_contents(PairContainer self) -> IMP::ParticleIndexPairs const &"""
6465 return _IMP_kernel.PairContainer_get_contents(self)
6469 """get_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
6470 return _IMP_kernel.PairContainer_get_indexes(self)
6473 def get(self, *args):
6475 get(PairContainer self) -> IMP::ParticlePairsTemp
6476 get(PairContainer self, unsigned int i) -> IMP::ParticlePair
6478 return _IMP_kernel.PairContainer_get(self, *args)
6481 def get_number(self):
6482 """get_number(PairContainer self) -> unsigned int"""
6483 return _IMP_kernel.PairContainer_get_number(self)
6486 def get_particle_pairs(self):
6487 """get_particle_pairs(PairContainer self) -> IMP::ParticlePairsTemp"""
6488 return _IMP_kernel.PairContainer_get_particle_pairs(self)
6491 def get_particle_pair(self, i):
6492 """get_particle_pair(PairContainer self, unsigned int i) -> IMP::ParticlePair"""
6493 return _IMP_kernel.PairContainer_get_particle_pair(self, i)
6496 def __init__(self, *args):
6498 __init__(IMP::PairContainer self, Model m, std::string name) -> PairContainer
6499 __init__(IMP::PairContainer self, Model m) -> PairContainer
6501 if self.__class__ == PairContainer:
6505 this = _IMP_kernel.new_PairContainer(_self, *args)
6507 self.this.append(this)
6511 if self.__class__ != PairContainer:
6512 _director_objects.register(self)
6517 def do_apply(self, sm):
6518 """do_apply(PairContainer self, PairModifier sm)"""
6519 return _IMP_kernel.PairContainer_do_apply(self, sm)
6522 def do_get_provides_access(self):
6523 """do_get_provides_access(PairContainer self) -> bool"""
6524 return _IMP_kernel.PairContainer_do_get_provides_access(self)
6526 __swig_destroy__ = _IMP_kernel.delete_PairContainer
6527 __del__ =
lambda self:
None
6530 """__str__(PairContainer self) -> std::string"""
6531 return _IMP_kernel.PairContainer___str__(self)
6535 """__repr__(PairContainer self) -> std::string"""
6536 return _IMP_kernel.PairContainer___repr__(self)
6541 return _object_cast_to_PairContainer(o)
6544 def get_type_name(self):
6545 return self.__class__.__name__
6546 def do_show(self, out):
6548 def get_version_info(self):
6550 return VersionInfo(self.__module__,
6551 __import__(self.__module__).get_module_version())
6554 __import__(self.__module__).get_module_version())
6557 return _object_cast_to_PairContainer(o)
6559 def __disown__(self):
6561 _IMP_kernel.disown_PairContainer(self)
6562 return weakref_proxy(self)
6564 def do_destroy(self):
6565 """do_destroy(PairContainer self)"""
6566 return _IMP_kernel.PairContainer_do_destroy(self)
6569 def handle_set_has_required_score_states(self, arg0):
6570 """handle_set_has_required_score_states(PairContainer self, bool arg0)"""
6571 return _IMP_kernel.PairContainer_handle_set_has_required_score_states(self, arg0)
6574 def do_get_inputs(self):
6575 """do_get_inputs(PairContainer self) -> IMP::ModelObjectsTemp"""
6576 return _IMP_kernel.PairContainer_do_get_inputs(self)
6579 def do_get_interactions(self):
6580 """do_get_interactions(PairContainer self) -> IMP::ModelObjectsTemps"""
6581 return _IMP_kernel.PairContainer_do_get_interactions(self)
6584 def do_get_contents_hash(self):
6585 """do_get_contents_hash(PairContainer self) -> std::size_t"""
6586 return _IMP_kernel.PairContainer_do_get_contents_hash(self)
6588 PairContainer_swigregister = _IMP_kernel.PairContainer_swigregister
6589 PairContainer_swigregister(PairContainer)
6591 class _PairContainerAdaptor(_InputAdaptor):
6592 """Proxy of C++ IMP::PairContainerAdaptor class"""
6593 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6594 __repr__ = _swig_repr
6596 def __init__(self, *args):
6598 __init__(IMP::PairContainerAdaptor self) -> _PairContainerAdaptor
6599 __init__(IMP::PairContainerAdaptor self, PairContainer c) -> _PairContainerAdaptor
6600 __init__(IMP::PairContainerAdaptor self, IMP::ParticlePairsTemp const & t) -> _PairContainerAdaptor
6602 this = _IMP_kernel.new__PairContainerAdaptor(*args)
6604 self.this.append(this)
6608 def set_name_if_default(self, name):
6609 """set_name_if_default(_PairContainerAdaptor self, std::string name)"""
6610 return _IMP_kernel._PairContainerAdaptor_set_name_if_default(self, name)
6612 __swig_destroy__ = _IMP_kernel.delete__PairContainerAdaptor
6613 __del__ =
lambda self:
None
6614 _PairContainerAdaptor_swigregister = _IMP_kernel._PairContainerAdaptor_swigregister
6615 _PairContainerAdaptor_swigregister(_PairContainerAdaptor)
6617 class QuadModifier(_ParticleInputs, _ParticleOutputs, Object):
6618 """Proxy of C++ IMP::QuadModifier class"""
6619 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6621 def __init__(self, *args):
6623 __init__(IMP::QuadModifier self, std::string name) -> QuadModifier
6624 __init__(IMP::QuadModifier self) -> QuadModifier
6626 if self.__class__ == QuadModifier:
6630 this = _IMP_kernel.new_QuadModifier(_self, *args)
6632 self.this.append(this)
6636 if self.__class__ != QuadModifier:
6637 _director_objects.register(self)
6642 def apply_index(self, m, v):
6643 """apply_index(QuadModifier self, Model m, IMP::ParticleIndexQuad const & v)"""
6644 return _IMP_kernel.QuadModifier_apply_index(self, m, v)
6647 def apply_indexes(self, m, o, lower_bound, upper_bound):
6648 """apply_indexes(QuadModifier self, Model m, IMP::ParticleIndexQuads const & o, unsigned int lower_bound, unsigned int upper_bound)"""
6649 return _IMP_kernel.QuadModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
6653 """__str__(QuadModifier self) -> std::string"""
6654 return _IMP_kernel.QuadModifier___str__(self)
6658 """__repr__(QuadModifier self) -> std::string"""
6659 return _IMP_kernel.QuadModifier___repr__(self)
6664 return _object_cast_to_QuadModifier(o)
6667 def get_type_name(self):
6668 return self.__class__.__name__
6669 def do_show(self, out):
6671 def get_version_info(self):
6673 return VersionInfo(self.__module__,
6674 __import__(self.__module__).get_module_version())
6677 __import__(self.__module__).get_module_version())
6680 return _object_cast_to_QuadModifier(o)
6682 __swig_destroy__ = _IMP_kernel.delete_QuadModifier
6683 __del__ =
lambda self:
None
6684 def __disown__(self):
6686 _IMP_kernel.disown_QuadModifier(self)
6687 return weakref_proxy(self)
6689 def do_get_inputs(self, m, pis):
6690 """do_get_inputs(QuadModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6691 return _IMP_kernel.QuadModifier_do_get_inputs(self, m, pis)
6694 def do_get_outputs(self, m, pis):
6695 """do_get_outputs(QuadModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6696 return _IMP_kernel.QuadModifier_do_get_outputs(self, m, pis)
6699 def do_destroy(self):
6700 """do_destroy(QuadModifier self)"""
6701 return _IMP_kernel.QuadModifier_do_destroy(self)
6703 QuadModifier_swigregister = _IMP_kernel.QuadModifier_swigregister
6704 QuadModifier_swigregister(QuadModifier)
6706 class QuadScore(_ParticleInputs, Object):
6707 """Proxy of C++ IMP::QuadScore class"""
6708 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6710 def __init__(self, *args):
6712 __init__(IMP::QuadScore self, std::string name) -> QuadScore
6713 __init__(IMP::QuadScore self) -> QuadScore
6715 if self.__class__ == QuadScore:
6719 this = _IMP_kernel.new_QuadScore(_self, *args)
6721 self.this.append(this)
6725 if self.__class__ != QuadScore:
6726 _director_objects.register(self)
6731 def evaluate_index(self, m, vt, da):
6732 """evaluate_index(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt, DerivativeAccumulator da) -> double"""
6733 return _IMP_kernel.QuadScore_evaluate_index(self, m, vt, da)
6736 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
6737 """evaluate_indexes(QuadScore self, Model m, IMP::ParticleIndexQuads const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
6738 return _IMP_kernel.QuadScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
6741 def evaluate_if_good_index(self, m, vt, da, max):
6742 """evaluate_if_good_index(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt, DerivativeAccumulator da, double max) -> double"""
6743 return _IMP_kernel.QuadScore_evaluate_if_good_index(self, m, vt, da, max)
6746 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
6747 """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"""
6748 return _IMP_kernel.QuadScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
6751 def create_current_decomposition(self, m, vt):
6752 """create_current_decomposition(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
6753 return _IMP_kernel.QuadScore_create_current_decomposition(self, m, vt)
6756 def do_create_current_decomposition(self, m, vt):
6757 """do_create_current_decomposition(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
6758 return _IMP_kernel.QuadScore_do_create_current_decomposition(self, m, vt)
6760 __swig_destroy__ = _IMP_kernel.delete_QuadScore
6761 __del__ =
lambda self:
None
6764 """__str__(QuadScore self) -> std::string"""
6765 return _IMP_kernel.QuadScore___str__(self)
6769 """__repr__(QuadScore self) -> std::string"""
6770 return _IMP_kernel.QuadScore___repr__(self)
6775 return _object_cast_to_QuadScore(o)
6778 def get_type_name(self):
6779 return self.__class__.__name__
6780 def do_show(self, out):
6782 def get_version_info(self):
6784 return VersionInfo(self.__module__,
6785 __import__(self.__module__).get_module_version())
6788 __import__(self.__module__).get_module_version())
6791 return _object_cast_to_QuadScore(o)
6793 def __disown__(self):
6795 _IMP_kernel.disown_QuadScore(self)
6796 return weakref_proxy(self)
6798 def do_get_inputs(self, m, pis):
6799 """do_get_inputs(QuadScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6800 return _IMP_kernel.QuadScore_do_get_inputs(self, m, pis)
6803 def do_destroy(self):
6804 """do_destroy(QuadScore self)"""
6805 return _IMP_kernel.QuadScore_do_destroy(self)
6807 QuadScore_swigregister = _IMP_kernel.QuadScore_swigregister
6808 QuadScore_swigregister(QuadScore)
6810 class QuadPredicate(_ParticleInputs, Object):
6811 """Proxy of C++ IMP::QuadPredicate class"""
6812 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6814 def __init__(self, *args):
6816 __init__(IMP::QuadPredicate self, std::string name) -> QuadPredicate
6817 __init__(IMP::QuadPredicate self) -> QuadPredicate
6819 if self.__class__ == QuadPredicate:
6823 this = _IMP_kernel.new_QuadPredicate(_self, *args)
6825 self.this.append(this)
6829 if self.__class__ != QuadPredicate:
6830 _director_objects.register(self)
6835 def get_value(self, *args):
6837 get_value(QuadPredicate self, IMP::ParticleQuad const & vt) -> int
6838 get_value(QuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
6840 return _IMP_kernel.QuadPredicate_get_value(self, *args)
6843 def __call__(self, m, vt):
6844 """__call__(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int"""
6845 return _IMP_kernel.QuadPredicate___call__(self, m, vt)
6848 def get_value_index(self, *args):
6850 get_value_index(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int
6851 get_value_index(QuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
6853 return _IMP_kernel.QuadPredicate_get_value_index(self, *args)
6855 __swig_destroy__ = _IMP_kernel.delete_QuadPredicate
6856 __del__ =
lambda self:
None
6859 """__str__(QuadPredicate self) -> std::string"""
6860 return _IMP_kernel.QuadPredicate___str__(self)
6864 """__repr__(QuadPredicate self) -> std::string"""
6865 return _IMP_kernel.QuadPredicate___repr__(self)
6870 return _object_cast_to_QuadPredicate(o)
6873 def get_type_name(self):
6874 return self.__class__.__name__
6875 def do_show(self, out):
6877 def get_version_info(self):
6879 return VersionInfo(self.__module__,
6880 __import__(self.__module__).get_module_version())
6883 __import__(self.__module__).get_module_version())
6886 return _object_cast_to_QuadPredicate(o)
6888 def __disown__(self):
6890 _IMP_kernel.disown_QuadPredicate(self)
6891 return weakref_proxy(self)
6893 def do_get_inputs(self, m, pis):
6894 """do_get_inputs(QuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6895 return _IMP_kernel.QuadPredicate_do_get_inputs(self, m, pis)
6898 def do_destroy(self):
6899 """do_destroy(QuadPredicate self)"""
6900 return _IMP_kernel.QuadPredicate_do_destroy(self)
6902 QuadPredicate_swigregister = _IMP_kernel.QuadPredicate_swigregister
6903 QuadPredicate_swigregister(QuadPredicate)
6905 class QuadContainer(Container):
6906 """Proxy of C++ IMP::QuadContainer class"""
6907 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6909 def apply_generic(self, m):
6910 """apply_generic(QuadContainer self, QuadModifier m)"""
6911 return _IMP_kernel.QuadContainer_apply_generic(self, m)
6914 def apply(self, sm):
6915 """apply(QuadContainer self, QuadModifier sm)"""
6916 return _IMP_kernel.QuadContainer_apply(self, sm)
6919 def get_range_indexes(self):
6920 """get_range_indexes(QuadContainer self) -> IMP::ParticleIndexQuads"""
6921 return _IMP_kernel.QuadContainer_get_range_indexes(self)
6924 def get_contents(self):
6925 """get_contents(QuadContainer self) -> IMP::ParticleIndexQuads const &"""
6926 return _IMP_kernel.QuadContainer_get_contents(self)
6930 """get_indexes(QuadContainer self) -> IMP::ParticleIndexQuads"""
6931 return _IMP_kernel.QuadContainer_get_indexes(self)
6934 def get(self, *args):
6936 get(QuadContainer self) -> IMP::ParticleQuadsTemp
6937 get(QuadContainer self, unsigned int i) -> IMP::ParticleQuad
6939 return _IMP_kernel.QuadContainer_get(self, *args)
6942 def get_number(self):
6943 """get_number(QuadContainer self) -> unsigned int"""
6944 return _IMP_kernel.QuadContainer_get_number(self)
6947 def get_particle_quads(self):
6948 """get_particle_quads(QuadContainer self) -> IMP::ParticleQuadsTemp"""
6949 return _IMP_kernel.QuadContainer_get_particle_quads(self)
6952 def get_particle_quad(self, i):
6953 """get_particle_quad(QuadContainer self, unsigned int i) -> IMP::ParticleQuad"""
6954 return _IMP_kernel.QuadContainer_get_particle_quad(self, i)
6957 def __init__(self, *args):
6959 __init__(IMP::QuadContainer self, Model m, std::string name) -> QuadContainer
6960 __init__(IMP::QuadContainer self, Model m) -> QuadContainer
6962 if self.__class__ == QuadContainer:
6966 this = _IMP_kernel.new_QuadContainer(_self, *args)
6968 self.this.append(this)
6972 if self.__class__ != QuadContainer:
6973 _director_objects.register(self)
6978 def do_apply(self, sm):
6979 """do_apply(QuadContainer self, QuadModifier sm)"""
6980 return _IMP_kernel.QuadContainer_do_apply(self, sm)
6983 def do_get_provides_access(self):
6984 """do_get_provides_access(QuadContainer self) -> bool"""
6985 return _IMP_kernel.QuadContainer_do_get_provides_access(self)
6987 __swig_destroy__ = _IMP_kernel.delete_QuadContainer
6988 __del__ =
lambda self:
None
6991 """__str__(QuadContainer self) -> std::string"""
6992 return _IMP_kernel.QuadContainer___str__(self)
6996 """__repr__(QuadContainer self) -> std::string"""
6997 return _IMP_kernel.QuadContainer___repr__(self)
7002 return _object_cast_to_QuadContainer(o)
7005 def get_type_name(self):
7006 return self.__class__.__name__
7007 def do_show(self, out):
7009 def get_version_info(self):
7011 return VersionInfo(self.__module__,
7012 __import__(self.__module__).get_module_version())
7015 __import__(self.__module__).get_module_version())
7018 return _object_cast_to_QuadContainer(o)
7020 def __disown__(self):
7022 _IMP_kernel.disown_QuadContainer(self)
7023 return weakref_proxy(self)
7025 def do_destroy(self):
7026 """do_destroy(QuadContainer self)"""
7027 return _IMP_kernel.QuadContainer_do_destroy(self)
7030 def handle_set_has_required_score_states(self, arg0):
7031 """handle_set_has_required_score_states(QuadContainer self, bool arg0)"""
7032 return _IMP_kernel.QuadContainer_handle_set_has_required_score_states(self, arg0)
7035 def do_get_inputs(self):
7036 """do_get_inputs(QuadContainer self) -> IMP::ModelObjectsTemp"""
7037 return _IMP_kernel.QuadContainer_do_get_inputs(self)
7040 def do_get_interactions(self):
7041 """do_get_interactions(QuadContainer self) -> IMP::ModelObjectsTemps"""
7042 return _IMP_kernel.QuadContainer_do_get_interactions(self)
7045 def do_get_contents_hash(self):
7046 """do_get_contents_hash(QuadContainer self) -> std::size_t"""
7047 return _IMP_kernel.QuadContainer_do_get_contents_hash(self)
7049 QuadContainer_swigregister = _IMP_kernel.QuadContainer_swigregister
7050 QuadContainer_swigregister(QuadContainer)
7052 class _QuadContainerAdaptor(_InputAdaptor):
7053 """Proxy of C++ IMP::QuadContainerAdaptor class"""
7054 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7055 __repr__ = _swig_repr
7057 def __init__(self, *args):
7059 __init__(IMP::QuadContainerAdaptor self) -> _QuadContainerAdaptor
7060 __init__(IMP::QuadContainerAdaptor self, QuadContainer c) -> _QuadContainerAdaptor
7061 __init__(IMP::QuadContainerAdaptor self, IMP::ParticleQuadsTemp const & t) -> _QuadContainerAdaptor
7063 this = _IMP_kernel.new__QuadContainerAdaptor(*args)
7065 self.this.append(this)
7069 def set_name_if_default(self, name):
7070 """set_name_if_default(_QuadContainerAdaptor self, std::string name)"""
7071 return _IMP_kernel._QuadContainerAdaptor_set_name_if_default(self, name)
7073 __swig_destroy__ = _IMP_kernel.delete__QuadContainerAdaptor
7074 __del__ =
lambda self:
None
7075 _QuadContainerAdaptor_swigregister = _IMP_kernel._QuadContainerAdaptor_swigregister
7076 _QuadContainerAdaptor_swigregister(_QuadContainerAdaptor)
7078 class SingletonModifier(_ParticleInputs, _ParticleOutputs, Object):
7079 """Proxy of C++ IMP::SingletonModifier class"""
7080 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7082 def __init__(self, *args):
7084 __init__(IMP::SingletonModifier self, std::string name) -> SingletonModifier
7085 __init__(IMP::SingletonModifier self) -> SingletonModifier
7087 if self.__class__ == SingletonModifier:
7091 this = _IMP_kernel.new_SingletonModifier(_self, *args)
7093 self.this.append(this)
7097 if self.__class__ != SingletonModifier:
7098 _director_objects.register(self)
7103 def apply_index(self, m, v):
7104 """apply_index(SingletonModifier self, Model m, ParticleIndex v)"""
7105 return _IMP_kernel.SingletonModifier_apply_index(self, m, v)
7108 def apply_indexes(self, m, o, lower_bound, upper_bound):
7109 """apply_indexes(SingletonModifier self, Model m, IMP::ParticleIndexes const & o, unsigned int lower_bound, unsigned int upper_bound)"""
7110 return _IMP_kernel.SingletonModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
7114 """__str__(SingletonModifier self) -> std::string"""
7115 return _IMP_kernel.SingletonModifier___str__(self)
7119 """__repr__(SingletonModifier self) -> std::string"""
7120 return _IMP_kernel.SingletonModifier___repr__(self)
7125 return _object_cast_to_SingletonModifier(o)
7128 def get_type_name(self):
7129 return self.__class__.__name__
7130 def do_show(self, out):
7132 def get_version_info(self):
7134 return VersionInfo(self.__module__,
7135 __import__(self.__module__).get_module_version())
7138 __import__(self.__module__).get_module_version())
7141 return _object_cast_to_SingletonModifier(o)
7143 __swig_destroy__ = _IMP_kernel.delete_SingletonModifier
7144 __del__ =
lambda self:
None
7145 def __disown__(self):
7147 _IMP_kernel.disown_SingletonModifier(self)
7148 return weakref_proxy(self)
7150 def do_get_inputs(self, m, pis):
7151 """do_get_inputs(SingletonModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7152 return _IMP_kernel.SingletonModifier_do_get_inputs(self, m, pis)
7155 def do_get_outputs(self, m, pis):
7156 """do_get_outputs(SingletonModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7157 return _IMP_kernel.SingletonModifier_do_get_outputs(self, m, pis)
7160 def do_destroy(self):
7161 """do_destroy(SingletonModifier self)"""
7162 return _IMP_kernel.SingletonModifier_do_destroy(self)
7164 SingletonModifier_swigregister = _IMP_kernel.SingletonModifier_swigregister
7165 SingletonModifier_swigregister(SingletonModifier)
7167 class SingletonScore(_ParticleInputs, Object):
7168 """Proxy of C++ IMP::SingletonScore class"""
7169 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7171 def __init__(self, *args):
7173 __init__(IMP::SingletonScore self, std::string name) -> SingletonScore
7174 __init__(IMP::SingletonScore self) -> SingletonScore
7176 if self.__class__ == SingletonScore:
7180 this = _IMP_kernel.new_SingletonScore(_self, *args)
7182 self.this.append(this)
7186 if self.__class__ != SingletonScore:
7187 _director_objects.register(self)
7192 def evaluate_index(self, m, vt, da):
7193 """evaluate_index(SingletonScore self, Model m, ParticleIndex vt, DerivativeAccumulator da) -> double"""
7194 return _IMP_kernel.SingletonScore_evaluate_index(self, m, vt, da)
7197 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
7198 """evaluate_indexes(SingletonScore self, Model m, IMP::ParticleIndexes const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7199 return _IMP_kernel.SingletonScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
7202 def evaluate_if_good_index(self, m, vt, da, max):
7203 """evaluate_if_good_index(SingletonScore self, Model m, ParticleIndex vt, DerivativeAccumulator da, double max) -> double"""
7204 return _IMP_kernel.SingletonScore_evaluate_if_good_index(self, m, vt, da, max)
7207 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
7208 """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"""
7209 return _IMP_kernel.SingletonScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
7212 def create_current_decomposition(self, m, vt):
7213 """create_current_decomposition(SingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
7214 return _IMP_kernel.SingletonScore_create_current_decomposition(self, m, vt)
7217 def do_create_current_decomposition(self, m, vt):
7218 """do_create_current_decomposition(SingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
7219 return _IMP_kernel.SingletonScore_do_create_current_decomposition(self, m, vt)
7221 __swig_destroy__ = _IMP_kernel.delete_SingletonScore
7222 __del__ =
lambda self:
None
7225 """__str__(SingletonScore self) -> std::string"""
7226 return _IMP_kernel.SingletonScore___str__(self)
7230 """__repr__(SingletonScore self) -> std::string"""
7231 return _IMP_kernel.SingletonScore___repr__(self)
7236 return _object_cast_to_SingletonScore(o)
7239 def get_type_name(self):
7240 return self.__class__.__name__
7241 def do_show(self, out):
7243 def get_version_info(self):
7245 return VersionInfo(self.__module__,
7246 __import__(self.__module__).get_module_version())
7249 __import__(self.__module__).get_module_version())
7252 return _object_cast_to_SingletonScore(o)
7254 def __disown__(self):
7256 _IMP_kernel.disown_SingletonScore(self)
7257 return weakref_proxy(self)
7259 def do_get_inputs(self, m, pis):
7260 """do_get_inputs(SingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7261 return _IMP_kernel.SingletonScore_do_get_inputs(self, m, pis)
7264 def do_destroy(self):
7265 """do_destroy(SingletonScore self)"""
7266 return _IMP_kernel.SingletonScore_do_destroy(self)
7268 SingletonScore_swigregister = _IMP_kernel.SingletonScore_swigregister
7269 SingletonScore_swigregister(SingletonScore)
7271 class SingletonPredicate(_ParticleInputs, Object):
7272 """Proxy of C++ IMP::SingletonPredicate class"""
7273 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7275 def __init__(self, *args):
7277 __init__(IMP::SingletonPredicate self, std::string name) -> SingletonPredicate
7278 __init__(IMP::SingletonPredicate self) -> SingletonPredicate
7280 if self.__class__ == SingletonPredicate:
7284 this = _IMP_kernel.new_SingletonPredicate(_self, *args)
7286 self.this.append(this)
7290 if self.__class__ != SingletonPredicate:
7291 _director_objects.register(self)
7296 def get_value(self, *args):
7298 get_value(SingletonPredicate self, Particle vt) -> int
7299 get_value(SingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
7301 return _IMP_kernel.SingletonPredicate_get_value(self, *args)
7304 def __call__(self, m, vt):
7305 """__call__(SingletonPredicate self, Model m, ParticleIndex vt) -> int"""
7306 return _IMP_kernel.SingletonPredicate___call__(self, m, vt)
7309 def get_value_index(self, *args):
7311 get_value_index(SingletonPredicate self, Model m, ParticleIndex vt) -> int
7312 get_value_index(SingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
7314 return _IMP_kernel.SingletonPredicate_get_value_index(self, *args)
7316 __swig_destroy__ = _IMP_kernel.delete_SingletonPredicate
7317 __del__ =
lambda self:
None
7320 """__str__(SingletonPredicate self) -> std::string"""
7321 return _IMP_kernel.SingletonPredicate___str__(self)
7325 """__repr__(SingletonPredicate self) -> std::string"""
7326 return _IMP_kernel.SingletonPredicate___repr__(self)
7331 return _object_cast_to_SingletonPredicate(o)
7334 def get_type_name(self):
7335 return self.__class__.__name__
7336 def do_show(self, out):
7338 def get_version_info(self):
7340 return VersionInfo(self.__module__,
7341 __import__(self.__module__).get_module_version())
7344 __import__(self.__module__).get_module_version())
7347 return _object_cast_to_SingletonPredicate(o)
7349 def __disown__(self):
7351 _IMP_kernel.disown_SingletonPredicate(self)
7352 return weakref_proxy(self)
7354 def do_get_inputs(self, m, pis):
7355 """do_get_inputs(SingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7356 return _IMP_kernel.SingletonPredicate_do_get_inputs(self, m, pis)
7359 def do_destroy(self):
7360 """do_destroy(SingletonPredicate self)"""
7361 return _IMP_kernel.SingletonPredicate_do_destroy(self)
7363 SingletonPredicate_swigregister = _IMP_kernel.SingletonPredicate_swigregister
7364 SingletonPredicate_swigregister(SingletonPredicate)
7366 class SingletonContainer(Container):
7367 """Proxy of C++ IMP::SingletonContainer class"""
7368 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7370 def apply_generic(self, m):
7371 """apply_generic(SingletonContainer self, SingletonModifier m)"""
7372 return _IMP_kernel.SingletonContainer_apply_generic(self, m)
7375 def apply(self, sm):
7376 """apply(SingletonContainer self, SingletonModifier sm)"""
7377 return _IMP_kernel.SingletonContainer_apply(self, sm)
7380 def get_range_indexes(self):
7381 """get_range_indexes(SingletonContainer self) -> IMP::ParticleIndexes"""
7382 return _IMP_kernel.SingletonContainer_get_range_indexes(self)
7385 def get_contents(self):
7386 """get_contents(SingletonContainer self) -> IMP::ParticleIndexes const &"""
7387 return _IMP_kernel.SingletonContainer_get_contents(self)
7391 """get_indexes(SingletonContainer self) -> IMP::ParticleIndexes"""
7392 return _IMP_kernel.SingletonContainer_get_indexes(self)
7395 def get(self, *args):
7397 get(SingletonContainer self) -> IMP::ParticlesTemp
7398 get(SingletonContainer self, unsigned int i) -> Particle
7400 return _IMP_kernel.SingletonContainer_get(self, *args)
7403 def get_number(self):
7404 """get_number(SingletonContainer self) -> unsigned int"""
7405 return _IMP_kernel.SingletonContainer_get_number(self)
7409 """get_particles(SingletonContainer self) -> IMP::ParticlesTemp"""
7410 return _IMP_kernel.SingletonContainer_get_particles(self)
7413 def get_particle(self, i):
7414 """get_particle(SingletonContainer self, unsigned int i) -> Particle"""
7415 return _IMP_kernel.SingletonContainer_get_particle(self, i)
7418 def __init__(self, *args):
7420 __init__(IMP::SingletonContainer self, Model m, std::string name) -> SingletonContainer
7421 __init__(IMP::SingletonContainer self, Model m) -> SingletonContainer
7423 if self.__class__ == SingletonContainer:
7427 this = _IMP_kernel.new_SingletonContainer(_self, *args)
7429 self.this.append(this)
7433 if self.__class__ != SingletonContainer:
7434 _director_objects.register(self)
7439 def do_apply(self, sm):
7440 """do_apply(SingletonContainer self, SingletonModifier sm)"""
7441 return _IMP_kernel.SingletonContainer_do_apply(self, sm)
7444 def do_get_provides_access(self):
7445 """do_get_provides_access(SingletonContainer self) -> bool"""
7446 return _IMP_kernel.SingletonContainer_do_get_provides_access(self)
7448 __swig_destroy__ = _IMP_kernel.delete_SingletonContainer
7449 __del__ =
lambda self:
None
7452 """__str__(SingletonContainer self) -> std::string"""
7453 return _IMP_kernel.SingletonContainer___str__(self)
7457 """__repr__(SingletonContainer self) -> std::string"""
7458 return _IMP_kernel.SingletonContainer___repr__(self)
7463 return _object_cast_to_SingletonContainer(o)
7466 def get_type_name(self):
7467 return self.__class__.__name__
7468 def do_show(self, out):
7470 def get_version_info(self):
7472 return VersionInfo(self.__module__,
7473 __import__(self.__module__).get_module_version())
7476 __import__(self.__module__).get_module_version())
7479 return _object_cast_to_SingletonContainer(o)
7481 def __disown__(self):
7483 _IMP_kernel.disown_SingletonContainer(self)
7484 return weakref_proxy(self)
7486 def do_destroy(self):
7487 """do_destroy(SingletonContainer self)"""
7488 return _IMP_kernel.SingletonContainer_do_destroy(self)
7491 def handle_set_has_required_score_states(self, arg0):
7492 """handle_set_has_required_score_states(SingletonContainer self, bool arg0)"""
7493 return _IMP_kernel.SingletonContainer_handle_set_has_required_score_states(self, arg0)
7496 def do_get_inputs(self):
7497 """do_get_inputs(SingletonContainer self) -> IMP::ModelObjectsTemp"""
7498 return _IMP_kernel.SingletonContainer_do_get_inputs(self)
7501 def do_get_interactions(self):
7502 """do_get_interactions(SingletonContainer self) -> IMP::ModelObjectsTemps"""
7503 return _IMP_kernel.SingletonContainer_do_get_interactions(self)
7506 def do_get_contents_hash(self):
7507 """do_get_contents_hash(SingletonContainer self) -> std::size_t"""
7508 return _IMP_kernel.SingletonContainer_do_get_contents_hash(self)
7510 SingletonContainer_swigregister = _IMP_kernel.SingletonContainer_swigregister
7511 SingletonContainer_swigregister(SingletonContainer)
7513 class _SingletonContainerAdaptor(_InputAdaptor):
7514 """Proxy of C++ IMP::SingletonContainerAdaptor class"""
7515 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7516 __repr__ = _swig_repr
7518 def __init__(self, *args):
7520 __init__(IMP::SingletonContainerAdaptor self) -> _SingletonContainerAdaptor
7521 __init__(IMP::SingletonContainerAdaptor self, SingletonContainer c) -> _SingletonContainerAdaptor
7522 __init__(IMP::SingletonContainerAdaptor self, IMP::ParticlesTemp const & t) -> _SingletonContainerAdaptor
7524 this = _IMP_kernel.new__SingletonContainerAdaptor(*args)
7526 self.this.append(this)
7530 def set_name_if_default(self, name):
7531 """set_name_if_default(_SingletonContainerAdaptor self, std::string name)"""
7532 return _IMP_kernel._SingletonContainerAdaptor_set_name_if_default(self, name)
7534 __swig_destroy__ = _IMP_kernel.delete__SingletonContainerAdaptor
7535 __del__ =
lambda self:
None
7536 _SingletonContainerAdaptor_swigregister = _IMP_kernel._SingletonContainerAdaptor_swigregister
7537 _SingletonContainerAdaptor_swigregister(_SingletonContainerAdaptor)
7539 class TripletModifier(_ParticleInputs, _ParticleOutputs, Object):
7540 """Proxy of C++ IMP::TripletModifier class"""
7541 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7543 def __init__(self, *args):
7545 __init__(IMP::TripletModifier self, std::string name) -> TripletModifier
7546 __init__(IMP::TripletModifier self) -> TripletModifier
7548 if self.__class__ == TripletModifier:
7552 this = _IMP_kernel.new_TripletModifier(_self, *args)
7554 self.this.append(this)
7558 if self.__class__ != TripletModifier:
7559 _director_objects.register(self)
7564 def apply_index(self, m, v):
7565 """apply_index(TripletModifier self, Model m, IMP::ParticleIndexTriplet const & v)"""
7566 return _IMP_kernel.TripletModifier_apply_index(self, m, v)
7569 def apply_indexes(self, m, o, lower_bound, upper_bound):
7570 """apply_indexes(TripletModifier self, Model m, IMP::ParticleIndexTriplets const & o, unsigned int lower_bound, unsigned int upper_bound)"""
7571 return _IMP_kernel.TripletModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
7575 """__str__(TripletModifier self) -> std::string"""
7576 return _IMP_kernel.TripletModifier___str__(self)
7580 """__repr__(TripletModifier self) -> std::string"""
7581 return _IMP_kernel.TripletModifier___repr__(self)
7586 return _object_cast_to_TripletModifier(o)
7589 def get_type_name(self):
7590 return self.__class__.__name__
7591 def do_show(self, out):
7593 def get_version_info(self):
7595 return VersionInfo(self.__module__,
7596 __import__(self.__module__).get_module_version())
7599 __import__(self.__module__).get_module_version())
7602 return _object_cast_to_TripletModifier(o)
7604 __swig_destroy__ = _IMP_kernel.delete_TripletModifier
7605 __del__ =
lambda self:
None
7606 def __disown__(self):
7608 _IMP_kernel.disown_TripletModifier(self)
7609 return weakref_proxy(self)
7611 def do_get_inputs(self, m, pis):
7612 """do_get_inputs(TripletModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7613 return _IMP_kernel.TripletModifier_do_get_inputs(self, m, pis)
7616 def do_get_outputs(self, m, pis):
7617 """do_get_outputs(TripletModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7618 return _IMP_kernel.TripletModifier_do_get_outputs(self, m, pis)
7621 def do_destroy(self):
7622 """do_destroy(TripletModifier self)"""
7623 return _IMP_kernel.TripletModifier_do_destroy(self)
7625 TripletModifier_swigregister = _IMP_kernel.TripletModifier_swigregister
7626 TripletModifier_swigregister(TripletModifier)
7628 class TripletScore(_ParticleInputs, Object):
7629 """Proxy of C++ IMP::TripletScore class"""
7630 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7632 def __init__(self, *args):
7634 __init__(IMP::TripletScore self, std::string name) -> TripletScore
7635 __init__(IMP::TripletScore self) -> TripletScore
7637 if self.__class__ == TripletScore:
7641 this = _IMP_kernel.new_TripletScore(_self, *args)
7643 self.this.append(this)
7647 if self.__class__ != TripletScore:
7648 _director_objects.register(self)
7653 def evaluate_index(self, m, vt, da):
7654 """evaluate_index(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt, DerivativeAccumulator da) -> double"""
7655 return _IMP_kernel.TripletScore_evaluate_index(self, m, vt, da)
7658 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
7659 """evaluate_indexes(TripletScore self, Model m, IMP::ParticleIndexTriplets const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7660 return _IMP_kernel.TripletScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
7663 def evaluate_if_good_index(self, m, vt, da, max):
7664 """evaluate_if_good_index(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt, DerivativeAccumulator da, double max) -> double"""
7665 return _IMP_kernel.TripletScore_evaluate_if_good_index(self, m, vt, da, max)
7668 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
7669 """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"""
7670 return _IMP_kernel.TripletScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
7673 def create_current_decomposition(self, m, vt):
7674 """create_current_decomposition(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
7675 return _IMP_kernel.TripletScore_create_current_decomposition(self, m, vt)
7678 def do_create_current_decomposition(self, m, vt):
7679 """do_create_current_decomposition(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
7680 return _IMP_kernel.TripletScore_do_create_current_decomposition(self, m, vt)
7682 __swig_destroy__ = _IMP_kernel.delete_TripletScore
7683 __del__ =
lambda self:
None
7686 """__str__(TripletScore self) -> std::string"""
7687 return _IMP_kernel.TripletScore___str__(self)
7691 """__repr__(TripletScore self) -> std::string"""
7692 return _IMP_kernel.TripletScore___repr__(self)
7697 return _object_cast_to_TripletScore(o)
7700 def get_type_name(self):
7701 return self.__class__.__name__
7702 def do_show(self, out):
7704 def get_version_info(self):
7706 return VersionInfo(self.__module__,
7707 __import__(self.__module__).get_module_version())
7710 __import__(self.__module__).get_module_version())
7713 return _object_cast_to_TripletScore(o)
7715 def __disown__(self):
7717 _IMP_kernel.disown_TripletScore(self)
7718 return weakref_proxy(self)
7720 def do_get_inputs(self, m, pis):
7721 """do_get_inputs(TripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7722 return _IMP_kernel.TripletScore_do_get_inputs(self, m, pis)
7725 def do_destroy(self):
7726 """do_destroy(TripletScore self)"""
7727 return _IMP_kernel.TripletScore_do_destroy(self)
7729 TripletScore_swigregister = _IMP_kernel.TripletScore_swigregister
7730 TripletScore_swigregister(TripletScore)
7732 class TripletPredicate(_ParticleInputs, Object):
7733 """Proxy of C++ IMP::TripletPredicate class"""
7734 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7736 def __init__(self, *args):
7738 __init__(IMP::TripletPredicate self, std::string name) -> TripletPredicate
7739 __init__(IMP::TripletPredicate self) -> TripletPredicate
7741 if self.__class__ == TripletPredicate:
7745 this = _IMP_kernel.new_TripletPredicate(_self, *args)
7747 self.this.append(this)
7751 if self.__class__ != TripletPredicate:
7752 _director_objects.register(self)
7757 def get_value(self, *args):
7759 get_value(TripletPredicate self, IMP::ParticleTriplet const & vt) -> int
7760 get_value(TripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
7762 return _IMP_kernel.TripletPredicate_get_value(self, *args)
7765 def __call__(self, m, vt):
7766 """__call__(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int"""
7767 return _IMP_kernel.TripletPredicate___call__(self, m, vt)
7770 def get_value_index(self, *args):
7772 get_value_index(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int
7773 get_value_index(TripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
7775 return _IMP_kernel.TripletPredicate_get_value_index(self, *args)
7777 __swig_destroy__ = _IMP_kernel.delete_TripletPredicate
7778 __del__ =
lambda self:
None
7781 """__str__(TripletPredicate self) -> std::string"""
7782 return _IMP_kernel.TripletPredicate___str__(self)
7786 """__repr__(TripletPredicate self) -> std::string"""
7787 return _IMP_kernel.TripletPredicate___repr__(self)
7792 return _object_cast_to_TripletPredicate(o)
7795 def get_type_name(self):
7796 return self.__class__.__name__
7797 def do_show(self, out):
7799 def get_version_info(self):
7801 return VersionInfo(self.__module__,
7802 __import__(self.__module__).get_module_version())
7805 __import__(self.__module__).get_module_version())
7808 return _object_cast_to_TripletPredicate(o)
7810 def __disown__(self):
7812 _IMP_kernel.disown_TripletPredicate(self)
7813 return weakref_proxy(self)
7815 def do_get_inputs(self, m, pis):
7816 """do_get_inputs(TripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7817 return _IMP_kernel.TripletPredicate_do_get_inputs(self, m, pis)
7820 def do_destroy(self):
7821 """do_destroy(TripletPredicate self)"""
7822 return _IMP_kernel.TripletPredicate_do_destroy(self)
7824 TripletPredicate_swigregister = _IMP_kernel.TripletPredicate_swigregister
7825 TripletPredicate_swigregister(TripletPredicate)
7827 class TripletContainer(Container):
7828 """Proxy of C++ IMP::TripletContainer class"""
7829 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7831 def apply_generic(self, m):
7832 """apply_generic(TripletContainer self, TripletModifier m)"""
7833 return _IMP_kernel.TripletContainer_apply_generic(self, m)
7836 def apply(self, sm):
7837 """apply(TripletContainer self, TripletModifier sm)"""
7838 return _IMP_kernel.TripletContainer_apply(self, sm)
7841 def get_range_indexes(self):
7842 """get_range_indexes(TripletContainer self) -> IMP::ParticleIndexTriplets"""
7843 return _IMP_kernel.TripletContainer_get_range_indexes(self)
7846 def get_contents(self):
7847 """get_contents(TripletContainer self) -> IMP::ParticleIndexTriplets const &"""
7848 return _IMP_kernel.TripletContainer_get_contents(self)
7852 """get_indexes(TripletContainer self) -> IMP::ParticleIndexTriplets"""
7853 return _IMP_kernel.TripletContainer_get_indexes(self)
7856 def get(self, *args):
7858 get(TripletContainer self) -> IMP::ParticleTripletsTemp
7859 get(TripletContainer self, unsigned int i) -> IMP::ParticleTriplet
7861 return _IMP_kernel.TripletContainer_get(self, *args)
7864 def get_number(self):
7865 """get_number(TripletContainer self) -> unsigned int"""
7866 return _IMP_kernel.TripletContainer_get_number(self)
7869 def get_particle_triplets(self):
7870 """get_particle_triplets(TripletContainer self) -> IMP::ParticleTripletsTemp"""
7871 return _IMP_kernel.TripletContainer_get_particle_triplets(self)
7874 def get_particle_triplet(self, i):
7875 """get_particle_triplet(TripletContainer self, unsigned int i) -> IMP::ParticleTriplet"""
7876 return _IMP_kernel.TripletContainer_get_particle_triplet(self, i)
7879 def __init__(self, *args):
7881 __init__(IMP::TripletContainer self, Model m, std::string name) -> TripletContainer
7882 __init__(IMP::TripletContainer self, Model m) -> TripletContainer
7884 if self.__class__ == TripletContainer:
7888 this = _IMP_kernel.new_TripletContainer(_self, *args)
7890 self.this.append(this)
7894 if self.__class__ != TripletContainer:
7895 _director_objects.register(self)
7900 def do_apply(self, sm):
7901 """do_apply(TripletContainer self, TripletModifier sm)"""
7902 return _IMP_kernel.TripletContainer_do_apply(self, sm)
7905 def do_get_provides_access(self):
7906 """do_get_provides_access(TripletContainer self) -> bool"""
7907 return _IMP_kernel.TripletContainer_do_get_provides_access(self)
7909 __swig_destroy__ = _IMP_kernel.delete_TripletContainer
7910 __del__ =
lambda self:
None
7913 """__str__(TripletContainer self) -> std::string"""
7914 return _IMP_kernel.TripletContainer___str__(self)
7918 """__repr__(TripletContainer self) -> std::string"""
7919 return _IMP_kernel.TripletContainer___repr__(self)
7924 return _object_cast_to_TripletContainer(o)
7927 def get_type_name(self):
7928 return self.__class__.__name__
7929 def do_show(self, out):
7931 def get_version_info(self):
7933 return VersionInfo(self.__module__,
7934 __import__(self.__module__).get_module_version())
7937 __import__(self.__module__).get_module_version())
7940 return _object_cast_to_TripletContainer(o)
7942 def __disown__(self):
7944 _IMP_kernel.disown_TripletContainer(self)
7945 return weakref_proxy(self)
7947 def do_destroy(self):
7948 """do_destroy(TripletContainer self)"""
7949 return _IMP_kernel.TripletContainer_do_destroy(self)
7952 def handle_set_has_required_score_states(self, arg0):
7953 """handle_set_has_required_score_states(TripletContainer self, bool arg0)"""
7954 return _IMP_kernel.TripletContainer_handle_set_has_required_score_states(self, arg0)
7957 def do_get_inputs(self):
7958 """do_get_inputs(TripletContainer self) -> IMP::ModelObjectsTemp"""
7959 return _IMP_kernel.TripletContainer_do_get_inputs(self)
7962 def do_get_interactions(self):
7963 """do_get_interactions(TripletContainer self) -> IMP::ModelObjectsTemps"""
7964 return _IMP_kernel.TripletContainer_do_get_interactions(self)
7967 def do_get_contents_hash(self):
7968 """do_get_contents_hash(TripletContainer self) -> std::size_t"""
7969 return _IMP_kernel.TripletContainer_do_get_contents_hash(self)
7971 TripletContainer_swigregister = _IMP_kernel.TripletContainer_swigregister
7972 TripletContainer_swigregister(TripletContainer)
7974 class _TripletContainerAdaptor(_InputAdaptor):
7975 """Proxy of C++ IMP::TripletContainerAdaptor class"""
7976 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7977 __repr__ = _swig_repr
7979 def __init__(self, *args):
7981 __init__(IMP::TripletContainerAdaptor self) -> _TripletContainerAdaptor
7982 __init__(IMP::TripletContainerAdaptor self, TripletContainer c) -> _TripletContainerAdaptor
7983 __init__(IMP::TripletContainerAdaptor self, IMP::ParticleTripletsTemp const & t) -> _TripletContainerAdaptor
7985 this = _IMP_kernel.new__TripletContainerAdaptor(*args)
7987 self.this.append(this)
7991 def set_name_if_default(self, name):
7992 """set_name_if_default(_TripletContainerAdaptor self, std::string name)"""
7993 return _IMP_kernel._TripletContainerAdaptor_set_name_if_default(self, name)
7995 __swig_destroy__ = _IMP_kernel.delete__TripletContainerAdaptor
7996 __del__ =
lambda self:
None
7997 _TripletContainerAdaptor_swigregister = _IMP_kernel._TripletContainerAdaptor_swigregister
7998 _TripletContainerAdaptor_swigregister(_TripletContainerAdaptor)
8002 """write_particles_to_buffer(IMP::ParticlesTemp const & particles, IMP::FloatKeys const & keys) -> IMP::Vector< char >"""
8003 return _IMP_kernel.write_particles_to_buffer(particles, keys)
8006 """read_particles_from_buffer(IMP::Vector< char > const & buffer, IMP::ParticlesTemp const & particles, IMP::FloatKeys const & keys)"""
8007 return _IMP_kernel.read_particles_from_buffer(buffer, particles, keys)
8010 """get_particles(Model m, IMP::ParticleIndexes const & ps) -> IMP::ParticlesTemp"""
8011 return _IMP_kernel.get_particles(m, ps)
8015 get_indexes(IMP::ParticlesTemp const & ps) -> IMP::ParticleIndexes
8016 get_indexes(IMP::ParticlePairsTemp const & ps) -> IMP::ParticleIndexPairs
8018 return _IMP_kernel.get_indexes(*args)
8019 class _ParticleIndexAdaptor(object):
8020 """Proxy of C++ IMP::ParticleIndexAdaptor class"""
8021 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8022 __repr__ = _swig_repr
8024 def __init__(self, *args):
8026 __init__(IMP::ParticleIndexAdaptor self, Particle p) -> _ParticleIndexAdaptor
8027 __init__(IMP::ParticleIndexAdaptor self, ParticleIndex pi) -> _ParticleIndexAdaptor
8028 __init__(IMP::ParticleIndexAdaptor self, Decorator d) -> _ParticleIndexAdaptor
8030 this = _IMP_kernel.new__ParticleIndexAdaptor(*args)
8032 self.this.append(this)
8035 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexAdaptor
8036 __del__ =
lambda self:
None
8037 _ParticleIndexAdaptor_swigregister = _IMP_kernel._ParticleIndexAdaptor_swigregister
8038 _ParticleIndexAdaptor_swigregister(_ParticleIndexAdaptor)
8040 class _ParticleIndexesAdaptor(_InputAdaptor):
8041 """Proxy of C++ IMP::ParticleIndexesAdaptor class"""
8042 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8043 __repr__ = _swig_repr
8045 def __init__(self, *args):
8047 __init__(IMP::ParticleIndexesAdaptor self, IMP::ParticlesTemp const & ps) -> _ParticleIndexesAdaptor
8048 __init__(IMP::ParticleIndexesAdaptor self, IMP::ParticleIndexes const & pi) -> _ParticleIndexesAdaptor
8049 __init__(IMP::ParticleIndexesAdaptor self) -> _ParticleIndexesAdaptor
8051 this = _IMP_kernel.new__ParticleIndexesAdaptor(*args)
8053 self.this.append(this)
8056 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexesAdaptor
8057 __del__ =
lambda self:
None
8058 _ParticleIndexesAdaptor_swigregister = _IMP_kernel._ParticleIndexesAdaptor_swigregister
8059 _ParticleIndexesAdaptor_swigregister(_ParticleIndexesAdaptor)
8061 class _ParticleIndexPairsAdaptor(object):
8062 """Proxy of C++ IMP::ParticleIndexPairsAdaptor class"""
8063 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8064 __repr__ = _swig_repr
8066 def __init__(self, *args):
8068 __init__(IMP::ParticleIndexPairsAdaptor self, IMP::ParticlePairsTemp const & ps) -> _ParticleIndexPairsAdaptor
8069 __init__(IMP::ParticleIndexPairsAdaptor self, IMP::ParticleIndexPairs const & pi) -> _ParticleIndexPairsAdaptor
8070 __init__(IMP::ParticleIndexPairsAdaptor self) -> _ParticleIndexPairsAdaptor
8072 this = _IMP_kernel.new__ParticleIndexPairsAdaptor(*args)
8074 self.this.append(this)
8077 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexPairsAdaptor
8078 __del__ =
lambda self:
None
8079 _ParticleIndexPairsAdaptor_swigregister = _IMP_kernel._ParticleIndexPairsAdaptor_swigregister
8080 _ParticleIndexPairsAdaptor_swigregister(_ParticleIndexPairsAdaptor)
8082 class _ConstRestraint(Restraint):
8083 """Proxy of C++ IMP::internal::_ConstRestraint class"""
8084 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8086 def __init__(self, *args):
8088 __init__(IMP::internal::_ConstRestraint self, double v, IMP::ParticlesTemp const ps) -> _ConstRestraint
8089 __init__(IMP::internal::_ConstRestraint self, Model m, IMP::ParticleIndexes const & pis, double v) -> _ConstRestraint
8091 this = _IMP_kernel.new__ConstRestraint(*args)
8093 self.this.append(this)
8097 def get_value(self):
8098 """get_value(_ConstRestraint self) -> double"""
8099 return _IMP_kernel._ConstRestraint_get_value(self)
8102 def do_create_decomposition(self):
8103 """do_create_decomposition(_ConstRestraint self) -> IMP::Restraints"""
8104 return _IMP_kernel._ConstRestraint_do_create_decomposition(self)
8107 def do_get_inputs(self):
8108 """do_get_inputs(_ConstRestraint self) -> IMP::ModelObjectsTemp"""
8109 return _IMP_kernel._ConstRestraint_do_get_inputs(self)
8112 def get_version_info(self):
8113 """get_version_info(_ConstRestraint self) -> VersionInfo"""
8114 return _IMP_kernel._ConstRestraint_get_version_info(self)
8118 """__str__(_ConstRestraint self) -> std::string"""
8119 return _IMP_kernel._ConstRestraint___str__(self)
8123 """__repr__(_ConstRestraint self) -> std::string"""
8124 return _IMP_kernel._ConstRestraint___repr__(self)
8129 return _object_cast_to__ConstRestraint(o)
8131 _ConstRestraint_swigregister = _IMP_kernel._ConstRestraint_swigregister
8132 _ConstRestraint_swigregister(_ConstRestraint)
8134 class _ConstSingletonScore(SingletonScore):
8135 """Proxy of C++ IMP::internal::_ConstSingletonScore class"""
8136 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8137 __repr__ = _swig_repr
8139 def __init__(self, v):
8140 """__init__(IMP::internal::_ConstSingletonScore self, double v) -> _ConstSingletonScore"""
8141 this = _IMP_kernel.new__ConstSingletonScore(v)
8143 self.this.append(this)
8147 def do_get_inputs(self, arg2, arg3):
8148 """do_get_inputs(_ConstSingletonScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
8149 return _IMP_kernel._ConstSingletonScore_do_get_inputs(self, arg2, arg3)
8152 def get_version_info(self):
8153 """get_version_info(_ConstSingletonScore self) -> VersionInfo"""
8154 return _IMP_kernel._ConstSingletonScore_get_version_info(self)
8156 _ConstSingletonScore_swigregister = _IMP_kernel._ConstSingletonScore_swigregister
8157 _ConstSingletonScore_swigregister(_ConstSingletonScore)
8159 class _ConstPairScore(PairScore):
8160 """Proxy of C++ IMP::internal::_ConstPairScore class"""
8161 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8162 __repr__ = _swig_repr
8164 def __init__(self, v):
8165 """__init__(IMP::internal::_ConstPairScore self, double v) -> _ConstPairScore"""
8166 this = _IMP_kernel.new__ConstPairScore(v)
8168 self.this.append(this)
8172 def do_get_inputs(self, arg2, arg3):
8173 """do_get_inputs(_ConstPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
8174 return _IMP_kernel._ConstPairScore_do_get_inputs(self, arg2, arg3)
8177 def get_version_info(self):
8178 """get_version_info(_ConstPairScore self) -> VersionInfo"""
8179 return _IMP_kernel._ConstPairScore_get_version_info(self)
8181 _ConstPairScore_swigregister = _IMP_kernel._ConstPairScore_swigregister
8182 _ConstPairScore_swigregister(_ConstPairScore)
8184 class _TrivialDecorator(Decorator):
8185 """Proxy of C++ IMP::internal::_TrivialDecorator class"""
8186 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8188 def __init__(self, *args):
8190 __init__(IMP::internal::_TrivialDecorator self) -> _TrivialDecorator
8191 __init__(IMP::internal::_TrivialDecorator self, Model m, ParticleIndex id) -> _TrivialDecorator
8192 __init__(IMP::internal::_TrivialDecorator self, _ParticleAdaptor d) -> _TrivialDecorator
8194 this = _IMP_kernel.new__TrivialDecorator(*args)
8196 self.this.append(this)
8200 def show(self, *args):
8202 show(_TrivialDecorator self, _ostream out)
8203 show(_TrivialDecorator self)
8205 return _IMP_kernel._TrivialDecorator_show(self, *args)
8208 def setup_particle(*args):
8210 setup_particle(Model m, ParticleIndex pi) -> _TrivialDecorator
8211 setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
8213 return _IMP_kernel._TrivialDecorator_setup_particle(*args)
8215 setup_particle = staticmethod(setup_particle)
8217 def get_is_setup(*args):
8219 get_is_setup(_ParticleAdaptor p) -> bool
8220 get_is_setup(Model m, ParticleIndex pi) -> bool
8222 return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
8224 get_is_setup = staticmethod(get_is_setup)
8226 def add_attribute(self, *args):
8228 add_attribute(_TrivialDecorator self, FloatKey k, IMP::Float v, bool opt)
8229 add_attribute(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
8230 add_attribute(_TrivialDecorator self, IntKey a0, IMP::Int a1)
8231 add_attribute(_TrivialDecorator self, StringKey a0, IMP::String a1)
8232 add_attribute(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
8233 add_attribute(_TrivialDecorator self, ObjectKey a0, Object a1)
8235 return _IMP_kernel._TrivialDecorator_add_attribute(self, *args)
8238 def get_value(self, *args):
8240 get_value(_TrivialDecorator self, FloatKey a0) -> IMP::Float
8241 get_value(_TrivialDecorator self, IntKey a0) -> IMP::Int
8242 get_value(_TrivialDecorator self, StringKey a0) -> IMP::String
8243 get_value(_TrivialDecorator self, ParticleIndexKey a0) -> Particle
8244 get_value(_TrivialDecorator self, ObjectKey a0) -> Object
8246 return _IMP_kernel._TrivialDecorator_get_value(self, *args)
8249 def set_value(self, *args):
8251 set_value(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
8252 set_value(_TrivialDecorator self, IntKey a0, IMP::Int a1)
8253 set_value(_TrivialDecorator self, StringKey a0, IMP::String a1)
8254 set_value(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
8255 set_value(_TrivialDecorator self, ObjectKey a0, Object a1)
8257 return _IMP_kernel._TrivialDecorator_set_value(self, *args)
8260 def remove_attribute(self, *args):
8262 remove_attribute(_TrivialDecorator self, FloatKey a0)
8263 remove_attribute(_TrivialDecorator self, IntKey a0)
8264 remove_attribute(_TrivialDecorator self, StringKey a0)
8265 remove_attribute(_TrivialDecorator self, ParticleIndexKey a0)
8266 remove_attribute(_TrivialDecorator self, ObjectKey a0)
8268 return _IMP_kernel._TrivialDecorator_remove_attribute(self, *args)
8271 def has_attribute(self, *args):
8273 has_attribute(_TrivialDecorator self, FloatKey a0) -> bool
8274 has_attribute(_TrivialDecorator self, IntKey a0) -> bool
8275 has_attribute(_TrivialDecorator self, StringKey a0) -> bool
8276 has_attribute(_TrivialDecorator self, ParticleIndexKey a0) -> bool
8277 has_attribute(_TrivialDecorator self, ObjectKey a0) -> bool
8279 return _IMP_kernel._TrivialDecorator_has_attribute(self, *args)
8282 def get_derivative(self, a0):
8283 """get_derivative(_TrivialDecorator self, FloatKey a0) -> double"""
8284 return _IMP_kernel._TrivialDecorator_get_derivative(self, a0)
8288 """get_name(_TrivialDecorator self) -> std::string"""
8289 return _IMP_kernel._TrivialDecorator_get_name(self)
8292 def clear_caches(self):
8293 """clear_caches(_TrivialDecorator self)"""
8294 return _IMP_kernel._TrivialDecorator_clear_caches(self)
8297 def set_name(self, a0):
8298 """set_name(_TrivialDecorator self, std::string a0)"""
8299 return _IMP_kernel._TrivialDecorator_set_name(self, a0)
8303 """set_check_level(_TrivialDecorator self, IMP::CheckLevel a0)"""
8304 return _IMP_kernel._TrivialDecorator_set_check_level(self, a0)
8307 def add_to_derivative(self, a0, a1, a2):
8308 """add_to_derivative(_TrivialDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8309 return _IMP_kernel._TrivialDecorator_add_to_derivative(self, a0, a1, a2)
8312 def set_is_optimized(self, a0, a1):
8313 """set_is_optimized(_TrivialDecorator self, FloatKey a0, bool a1)"""
8314 return _IMP_kernel._TrivialDecorator_set_is_optimized(self, a0, a1)
8317 def get_is_optimized(self, a0):
8318 """get_is_optimized(_TrivialDecorator self, FloatKey a0) -> bool"""
8319 return _IMP_kernel._TrivialDecorator_get_is_optimized(self, a0)
8323 """get_check_level(_TrivialDecorator self) -> IMP::CheckLevel"""
8324 return _IMP_kernel._TrivialDecorator_get_check_level(self)
8327 def __eq__(self, *args):
8329 __eq__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8330 __eq__(_TrivialDecorator self, Particle d) -> bool
8332 return _IMP_kernel._TrivialDecorator___eq__(self, *args)
8335 def __ne__(self, *args):
8337 __ne__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8338 __ne__(_TrivialDecorator self, Particle d) -> bool
8340 return _IMP_kernel._TrivialDecorator___ne__(self, *args)
8343 def __le__(self, *args):
8345 __le__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8346 __le__(_TrivialDecorator self, Particle d) -> bool
8348 return _IMP_kernel._TrivialDecorator___le__(self, *args)
8351 def __lt__(self, *args):
8353 __lt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8354 __lt__(_TrivialDecorator self, Particle d) -> bool
8356 return _IMP_kernel._TrivialDecorator___lt__(self, *args)
8359 def __ge__(self, *args):
8361 __ge__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8362 __ge__(_TrivialDecorator self, Particle d) -> bool
8364 return _IMP_kernel._TrivialDecorator___ge__(self, *args)
8367 def __gt__(self, *args):
8369 __gt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8370 __gt__(_TrivialDecorator self, Particle d) -> bool
8372 return _IMP_kernel._TrivialDecorator___gt__(self, *args)
8376 """__hash__(_TrivialDecorator self) -> std::size_t"""
8377 return _IMP_kernel._TrivialDecorator___hash__(self)
8381 """__str__(_TrivialDecorator self) -> std::string"""
8382 return _IMP_kernel._TrivialDecorator___str__(self)
8386 """__repr__(_TrivialDecorator self) -> std::string"""
8387 return _IMP_kernel._TrivialDecorator___repr__(self)
8389 __swig_destroy__ = _IMP_kernel.delete__TrivialDecorator
8390 __del__ =
lambda self:
None
8391 _TrivialDecorator_swigregister = _IMP_kernel._TrivialDecorator_swigregister
8392 _TrivialDecorator_swigregister(_TrivialDecorator)
8394 def _TrivialDecorator_setup_particle(*args):
8396 setup_particle(Model m, ParticleIndex pi) -> _TrivialDecorator
8397 _TrivialDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
8399 return _IMP_kernel._TrivialDecorator_setup_particle(*args)
8401 def _TrivialDecorator_get_is_setup(*args):
8403 get_is_setup(_ParticleAdaptor p) -> bool
8404 _TrivialDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
8406 return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
8408 class _TrivialDerivedDecorator(_TrivialDecorator):
8409 """Proxy of C++ IMP::internal::_TrivialDerivedDecorator class"""
8410 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8412 def __init__(self, *args):
8414 __init__(IMP::internal::_TrivialDerivedDecorator self) -> _TrivialDerivedDecorator
8415 __init__(IMP::internal::_TrivialDerivedDecorator self, Model m, ParticleIndex id) -> _TrivialDerivedDecorator
8416 __init__(IMP::internal::_TrivialDerivedDecorator self, _ParticleAdaptor d) -> _TrivialDerivedDecorator
8418 this = _IMP_kernel.new__TrivialDerivedDecorator(*args)
8420 self.this.append(this)
8424 def show(self, *args):
8426 show(_TrivialDerivedDecorator self, _ostream out)
8427 show(_TrivialDerivedDecorator self)
8429 return _IMP_kernel._TrivialDerivedDecorator_show(self, *args)
8432 def setup_particle(*args):
8434 setup_particle(Model m, ParticleIndex pi) -> _TrivialDerivedDecorator
8435 setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
8437 return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
8439 setup_particle = staticmethod(setup_particle)
8441 def get_is_setup(*args):
8443 get_is_setup(_ParticleAdaptor p) -> bool
8444 get_is_setup(Model m, ParticleIndex pi) -> bool
8446 return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
8448 get_is_setup = staticmethod(get_is_setup)
8450 def add_attribute(self, *args):
8452 add_attribute(_TrivialDerivedDecorator self, FloatKey k, IMP::Float v, bool opt)
8453 add_attribute(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
8454 add_attribute(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
8455 add_attribute(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
8456 add_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
8457 add_attribute(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
8459 return _IMP_kernel._TrivialDerivedDecorator_add_attribute(self, *args)
8462 def get_value(self, *args):
8464 get_value(_TrivialDerivedDecorator self, FloatKey a0) -> IMP::Float
8465 get_value(_TrivialDerivedDecorator self, IntKey a0) -> IMP::Int
8466 get_value(_TrivialDerivedDecorator self, StringKey a0) -> IMP::String
8467 get_value(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> Particle
8468 get_value(_TrivialDerivedDecorator self, ObjectKey a0) -> Object
8470 return _IMP_kernel._TrivialDerivedDecorator_get_value(self, *args)
8473 def set_value(self, *args):
8475 set_value(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
8476 set_value(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
8477 set_value(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
8478 set_value(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
8479 set_value(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
8481 return _IMP_kernel._TrivialDerivedDecorator_set_value(self, *args)
8484 def remove_attribute(self, *args):
8486 remove_attribute(_TrivialDerivedDecorator self, FloatKey a0)
8487 remove_attribute(_TrivialDerivedDecorator self, IntKey a0)
8488 remove_attribute(_TrivialDerivedDecorator self, StringKey a0)
8489 remove_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0)
8490 remove_attribute(_TrivialDerivedDecorator self, ObjectKey a0)
8492 return _IMP_kernel._TrivialDerivedDecorator_remove_attribute(self, *args)
8495 def has_attribute(self, *args):
8497 has_attribute(_TrivialDerivedDecorator self, FloatKey a0) -> bool
8498 has_attribute(_TrivialDerivedDecorator self, IntKey a0) -> bool
8499 has_attribute(_TrivialDerivedDecorator self, StringKey a0) -> bool
8500 has_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> bool
8501 has_attribute(_TrivialDerivedDecorator self, ObjectKey a0) -> bool
8503 return _IMP_kernel._TrivialDerivedDecorator_has_attribute(self, *args)
8506 def get_derivative(self, a0):
8507 """get_derivative(_TrivialDerivedDecorator self, FloatKey a0) -> double"""
8508 return _IMP_kernel._TrivialDerivedDecorator_get_derivative(self, a0)
8512 """get_name(_TrivialDerivedDecorator self) -> std::string"""
8513 return _IMP_kernel._TrivialDerivedDecorator_get_name(self)
8516 def clear_caches(self):
8517 """clear_caches(_TrivialDerivedDecorator self)"""
8518 return _IMP_kernel._TrivialDerivedDecorator_clear_caches(self)
8521 def set_name(self, a0):
8522 """set_name(_TrivialDerivedDecorator self, std::string a0)"""
8523 return _IMP_kernel._TrivialDerivedDecorator_set_name(self, a0)
8527 """set_check_level(_TrivialDerivedDecorator self, IMP::CheckLevel a0)"""
8528 return _IMP_kernel._TrivialDerivedDecorator_set_check_level(self, a0)
8531 def add_to_derivative(self, a0, a1, a2):
8532 """add_to_derivative(_TrivialDerivedDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8533 return _IMP_kernel._TrivialDerivedDecorator_add_to_derivative(self, a0, a1, a2)
8536 def set_is_optimized(self, a0, a1):
8537 """set_is_optimized(_TrivialDerivedDecorator self, FloatKey a0, bool a1)"""
8538 return _IMP_kernel._TrivialDerivedDecorator_set_is_optimized(self, a0, a1)
8541 def get_is_optimized(self, a0):
8542 """get_is_optimized(_TrivialDerivedDecorator self, FloatKey a0) -> bool"""
8543 return _IMP_kernel._TrivialDerivedDecorator_get_is_optimized(self, a0)
8547 """get_check_level(_TrivialDerivedDecorator self) -> IMP::CheckLevel"""
8548 return _IMP_kernel._TrivialDerivedDecorator_get_check_level(self)
8551 def __eq__(self, *args):
8553 __eq__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8554 __eq__(_TrivialDerivedDecorator self, Particle d) -> bool
8556 return _IMP_kernel._TrivialDerivedDecorator___eq__(self, *args)
8559 def __ne__(self, *args):
8561 __ne__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8562 __ne__(_TrivialDerivedDecorator self, Particle d) -> bool
8564 return _IMP_kernel._TrivialDerivedDecorator___ne__(self, *args)
8567 def __le__(self, *args):
8569 __le__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8570 __le__(_TrivialDerivedDecorator self, Particle d) -> bool
8572 return _IMP_kernel._TrivialDerivedDecorator___le__(self, *args)
8575 def __lt__(self, *args):
8577 __lt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8578 __lt__(_TrivialDerivedDecorator self, Particle d) -> bool
8580 return _IMP_kernel._TrivialDerivedDecorator___lt__(self, *args)
8583 def __ge__(self, *args):
8585 __ge__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8586 __ge__(_TrivialDerivedDecorator self, Particle d) -> bool
8588 return _IMP_kernel._TrivialDerivedDecorator___ge__(self, *args)
8591 def __gt__(self, *args):
8593 __gt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8594 __gt__(_TrivialDerivedDecorator self, Particle d) -> bool
8596 return _IMP_kernel._TrivialDerivedDecorator___gt__(self, *args)
8600 """__hash__(_TrivialDerivedDecorator self) -> std::size_t"""
8601 return _IMP_kernel._TrivialDerivedDecorator___hash__(self)
8605 """__str__(_TrivialDerivedDecorator self) -> std::string"""
8606 return _IMP_kernel._TrivialDerivedDecorator___str__(self)
8610 """__repr__(_TrivialDerivedDecorator self) -> std::string"""
8611 return _IMP_kernel._TrivialDerivedDecorator___repr__(self)
8613 __swig_destroy__ = _IMP_kernel.delete__TrivialDerivedDecorator
8614 __del__ =
lambda self:
None
8615 _TrivialDerivedDecorator_swigregister = _IMP_kernel._TrivialDerivedDecorator_swigregister
8616 _TrivialDerivedDecorator_swigregister(_TrivialDerivedDecorator)
8618 def _TrivialDerivedDecorator_setup_particle(*args):
8620 setup_particle(Model m, ParticleIndex pi) -> _TrivialDerivedDecorator
8621 _TrivialDerivedDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
8623 return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
8625 def _TrivialDerivedDecorator_get_is_setup(*args):
8627 get_is_setup(_ParticleAdaptor p) -> bool
8628 _TrivialDerivedDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
8630 return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
8632 class _TrivialTraitsDecorator(Decorator):
8633 """Proxy of C++ IMP::internal::_TrivialTraitsDecorator class"""
8634 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8636 def get_decorator_traits(self):
8637 """get_decorator_traits(_TrivialTraitsDecorator self) -> StringKey"""
8638 return _IMP_kernel._TrivialTraitsDecorator_get_decorator_traits(self)
8641 def get_default_decorator_traits():
8642 """get_default_decorator_traits() -> StringKey"""
8643 return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
8645 get_default_decorator_traits = staticmethod(get_default_decorator_traits)
8647 def __init__(self, *args):
8649 __init__(IMP::internal::_TrivialTraitsDecorator self) -> _TrivialTraitsDecorator
8650 __init__(IMP::internal::_TrivialTraitsDecorator self, Model m, ParticleIndex id, StringKey tr) -> _TrivialTraitsDecorator
8651 __init__(IMP::internal::_TrivialTraitsDecorator self, Model m, ParticleIndex id) -> _TrivialTraitsDecorator
8652 __init__(IMP::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
8653 __init__(IMP::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d) -> _TrivialTraitsDecorator
8655 this = _IMP_kernel.new__TrivialTraitsDecorator(*args)
8657 self.this.append(this)
8661 def show(self, *args):
8663 show(_TrivialTraitsDecorator self, _ostream out)
8664 show(_TrivialTraitsDecorator self)
8666 return _IMP_kernel._TrivialTraitsDecorator_show(self, *args)
8669 def setup_particle(*args):
8671 setup_particle(Model m, ParticleIndex pi, StringKey tr) -> _TrivialTraitsDecorator
8672 setup_particle(Model m, ParticleIndex pi) -> _TrivialTraitsDecorator
8673 setup_particle(_ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
8674 setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
8676 return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
8678 setup_particle = staticmethod(setup_particle)
8680 def get_is_setup(*args):
8682 get_is_setup(_ParticleAdaptor p, StringKey tr) -> bool
8683 get_is_setup(_ParticleAdaptor p) -> bool
8684 get_is_setup(Model m, ParticleIndex pi, StringKey k) -> bool
8685 get_is_setup(Model m, ParticleIndex pi) -> bool
8687 return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
8689 get_is_setup = staticmethod(get_is_setup)
8691 def get_default_key():
8692 """get_default_key() -> StringKey"""
8693 return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
8695 get_default_key = staticmethod(get_default_key)
8697 def add_attribute(self, *args):
8699 add_attribute(_TrivialTraitsDecorator self, FloatKey k, IMP::Float v, bool opt)
8700 add_attribute(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
8701 add_attribute(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
8702 add_attribute(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
8703 add_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
8704 add_attribute(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
8706 return _IMP_kernel._TrivialTraitsDecorator_add_attribute(self, *args)
8709 def get_value(self, *args):
8711 get_value(_TrivialTraitsDecorator self, FloatKey a0) -> IMP::Float
8712 get_value(_TrivialTraitsDecorator self, IntKey a0) -> IMP::Int
8713 get_value(_TrivialTraitsDecorator self, StringKey a0) -> IMP::String
8714 get_value(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> Particle
8715 get_value(_TrivialTraitsDecorator self, ObjectKey a0) -> Object
8717 return _IMP_kernel._TrivialTraitsDecorator_get_value(self, *args)
8720 def set_value(self, *args):
8722 set_value(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
8723 set_value(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
8724 set_value(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
8725 set_value(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
8726 set_value(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
8728 return _IMP_kernel._TrivialTraitsDecorator_set_value(self, *args)
8731 def remove_attribute(self, *args):
8733 remove_attribute(_TrivialTraitsDecorator self, FloatKey a0)
8734 remove_attribute(_TrivialTraitsDecorator self, IntKey a0)
8735 remove_attribute(_TrivialTraitsDecorator self, StringKey a0)
8736 remove_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0)
8737 remove_attribute(_TrivialTraitsDecorator self, ObjectKey a0)
8739 return _IMP_kernel._TrivialTraitsDecorator_remove_attribute(self, *args)
8742 def has_attribute(self, *args):
8744 has_attribute(_TrivialTraitsDecorator self, FloatKey a0) -> bool
8745 has_attribute(_TrivialTraitsDecorator self, IntKey a0) -> bool
8746 has_attribute(_TrivialTraitsDecorator self, StringKey a0) -> bool
8747 has_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> bool
8748 has_attribute(_TrivialTraitsDecorator self, ObjectKey a0) -> bool
8750 return _IMP_kernel._TrivialTraitsDecorator_has_attribute(self, *args)
8753 def get_derivative(self, a0):
8754 """get_derivative(_TrivialTraitsDecorator self, FloatKey a0) -> double"""
8755 return _IMP_kernel._TrivialTraitsDecorator_get_derivative(self, a0)
8759 """get_name(_TrivialTraitsDecorator self) -> std::string"""
8760 return _IMP_kernel._TrivialTraitsDecorator_get_name(self)
8763 def clear_caches(self):
8764 """clear_caches(_TrivialTraitsDecorator self)"""
8765 return _IMP_kernel._TrivialTraitsDecorator_clear_caches(self)
8768 def set_name(self, a0):
8769 """set_name(_TrivialTraitsDecorator self, std::string a0)"""
8770 return _IMP_kernel._TrivialTraitsDecorator_set_name(self, a0)
8774 """set_check_level(_TrivialTraitsDecorator self, IMP::CheckLevel a0)"""
8775 return _IMP_kernel._TrivialTraitsDecorator_set_check_level(self, a0)
8778 def add_to_derivative(self, a0, a1, a2):
8779 """add_to_derivative(_TrivialTraitsDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8780 return _IMP_kernel._TrivialTraitsDecorator_add_to_derivative(self, a0, a1, a2)
8783 def set_is_optimized(self, a0, a1):
8784 """set_is_optimized(_TrivialTraitsDecorator self, FloatKey a0, bool a1)"""
8785 return _IMP_kernel._TrivialTraitsDecorator_set_is_optimized(self, a0, a1)
8788 def get_is_optimized(self, a0):
8789 """get_is_optimized(_TrivialTraitsDecorator self, FloatKey a0) -> bool"""
8790 return _IMP_kernel._TrivialTraitsDecorator_get_is_optimized(self, a0)
8794 """get_check_level(_TrivialTraitsDecorator self) -> IMP::CheckLevel"""
8795 return _IMP_kernel._TrivialTraitsDecorator_get_check_level(self)
8798 def __eq__(self, *args):
8800 __eq__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
8801 __eq__(_TrivialTraitsDecorator self, Particle d) -> bool
8803 return _IMP_kernel._TrivialTraitsDecorator___eq__(self, *args)
8806 def __ne__(self, *args):
8808 __ne__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
8809 __ne__(_TrivialTraitsDecorator self, Particle d) -> bool
8811 return _IMP_kernel._TrivialTraitsDecorator___ne__(self, *args)
8814 def __le__(self, *args):
8816 __le__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
8817 __le__(_TrivialTraitsDecorator self, Particle d) -> bool
8819 return _IMP_kernel._TrivialTraitsDecorator___le__(self, *args)
8822 def __lt__(self, *args):
8824 __lt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
8825 __lt__(_TrivialTraitsDecorator self, Particle d) -> bool
8827 return _IMP_kernel._TrivialTraitsDecorator___lt__(self, *args)
8830 def __ge__(self, *args):
8832 __ge__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
8833 __ge__(_TrivialTraitsDecorator self, Particle d) -> bool
8835 return _IMP_kernel._TrivialTraitsDecorator___ge__(self, *args)
8838 def __gt__(self, *args):
8840 __gt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
8841 __gt__(_TrivialTraitsDecorator self, Particle d) -> bool
8843 return _IMP_kernel._TrivialTraitsDecorator___gt__(self, *args)
8847 """__hash__(_TrivialTraitsDecorator self) -> std::size_t"""
8848 return _IMP_kernel._TrivialTraitsDecorator___hash__(self)
8852 """__str__(_TrivialTraitsDecorator self) -> std::string"""
8853 return _IMP_kernel._TrivialTraitsDecorator___str__(self)
8857 """__repr__(_TrivialTraitsDecorator self) -> std::string"""
8858 return _IMP_kernel._TrivialTraitsDecorator___repr__(self)
8860 __swig_destroy__ = _IMP_kernel.delete__TrivialTraitsDecorator
8861 __del__ =
lambda self:
None
8862 _TrivialTraitsDecorator_swigregister = _IMP_kernel._TrivialTraitsDecorator_swigregister
8863 _TrivialTraitsDecorator_swigregister(_TrivialTraitsDecorator)
8865 def _TrivialTraitsDecorator_get_default_decorator_traits():
8866 """_TrivialTraitsDecorator_get_default_decorator_traits() -> StringKey"""
8867 return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
8869 def _TrivialTraitsDecorator_setup_particle(*args):
8871 setup_particle(Model m, ParticleIndex pi, StringKey tr) -> _TrivialTraitsDecorator
8872 setup_particle(Model m, ParticleIndex pi) -> _TrivialTraitsDecorator
8873 setup_particle(_ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
8874 _TrivialTraitsDecorator_setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
8876 return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
8878 def _TrivialTraitsDecorator_get_is_setup(*args):
8880 get_is_setup(_ParticleAdaptor p, StringKey tr) -> bool
8881 get_is_setup(_ParticleAdaptor p) -> bool
8882 get_is_setup(Model m, ParticleIndex pi, StringKey k) -> bool
8883 _TrivialTraitsDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
8885 return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
8887 def _TrivialTraitsDecorator_get_default_key():
8888 """_TrivialTraitsDecorator_get_default_key() -> StringKey"""
8889 return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
8892 def __lshift__(*args):
8894 __lshift__(_ostream out, _TrivialDecorator n) -> _ostream
8895 __lshift__(_ostream out, _TrivialDerivedDecorator n) -> _ostream
8896 __lshift__(_ostream out, _TrivialTraitsDecorator n) -> _ostream
8898 return _IMP_kernel.__lshift__(*args)
8899 class _ConstOptimizer(Optimizer):
8900 """Proxy of C++ IMP::internal::_ConstOptimizer class"""
8901 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8903 def __init__(self, m):
8904 """__init__(IMP::internal::_ConstOptimizer self, Model m) -> _ConstOptimizer"""
8905 this = _IMP_kernel.new__ConstOptimizer(m)
8907 self.this.append(this)
8911 def do_optimize(self, max_steps):
8912 """do_optimize(_ConstOptimizer self, unsigned int max_steps) -> IMP::Float"""
8913 return _IMP_kernel._ConstOptimizer_do_optimize(self, max_steps)
8916 def get_version_info(self):
8917 """get_version_info(_ConstOptimizer self) -> VersionInfo"""
8918 return _IMP_kernel._ConstOptimizer_get_version_info(self)
8922 """__str__(_ConstOptimizer self) -> std::string"""
8923 return _IMP_kernel._ConstOptimizer___str__(self)
8927 """__repr__(_ConstOptimizer self) -> std::string"""
8928 return _IMP_kernel._ConstOptimizer___repr__(self)
8933 return _object_cast_to__ConstOptimizer(o)
8935 _ConstOptimizer_swigregister = _IMP_kernel._ConstOptimizer_swigregister
8936 _ConstOptimizer_swigregister(_ConstOptimizer)
8939 def get_particle(p):
8940 """get_particle(Particle p) -> Particle"""
8941 return _IMP_kernel.get_particle(p)
8943 def _decorator_test(p):
8944 """_decorator_test(Particle p)"""
8945 return _IMP_kernel._decorator_test(p)
8947 def _overloaded_decorator(*args):
8949 _overloaded_decorator(_TrivialDecorator a) -> int
8950 _overloaded_decorator(_TrivialDerivedDecorator a) -> int
8952 return _IMP_kernel._overloaded_decorator(*args)
8954 def _take_particles(*args):
8956 _take_particles(IMP::Particles const & ps) -> unsigned int
8957 _take_particles(Model m, IMP::Particles const & ps) -> unsigned int
8958 _take_particles(Model m, IMP::Particles const & ps, TextOutput out) -> unsigned int
8960 return _IMP_kernel._take_particles(*args)
8962 def _give_particles(m):
8963 """_give_particles(Model m) -> IMP::Particles const &"""
8964 return _IMP_kernel._give_particles(m)
8966 def _pass_particles(ps):
8967 """_pass_particles(IMP::Particles const & ps) -> IMP::Particles const &"""
8968 return _IMP_kernel._pass_particles(ps)
8970 def _pass_particle(ps):
8971 """_pass_particle(Particle ps) -> Particle"""
8972 return _IMP_kernel._pass_particle(ps)
8974 def _pass_particle_pair(pp):
8975 """_pass_particle_pair(IMP::ParticlePair const & pp) -> IMP::ParticlePair const &"""
8976 return _IMP_kernel._pass_particle_pair(pp)
8978 def _give_particles_copy(m):
8979 """_give_particles_copy(Model m) -> IMP::Particles"""
8980 return _IMP_kernel._give_particles_copy(m)
8982 def _pass_float_keys(input):
8983 """_pass_float_keys(IMP::FloatKeys const & input) -> IMP::FloatKeys"""
8984 return _IMP_kernel._pass_float_keys(input)
8988 _pass(IMP::Particles const & p) -> IMP::Particles const
8989 _pass(IMP::Restraints const & p) -> IMP::Restraints const &
8991 return _IMP_kernel._pass(*args)
8993 def _pass_decorators(p):
8994 """_pass_decorators(IMP::internal::_TrivialDecorators const & p) -> IMP::internal::_TrivialDecorators const &"""
8995 return _IMP_kernel._pass_decorators(p)
8997 def _pass_decorator_traits(p):
8998 """_pass_decorator_traits(IMP::internal::_TrivialTraitsDecorators const & p) -> IMP::internal::_TrivialTraitsDecorators const &"""
8999 return _IMP_kernel._pass_decorator_traits(p)
9001 def _pass_particle_pairs(p):
9002 """_pass_particle_pairs(IMP::ParticlePairsTemp const & p) -> IMP::ParticlePairsTemp"""
9003 return _IMP_kernel._pass_particle_pairs(p)
9005 def _pass_particle_index_pairs(p):
9006 """_pass_particle_index_pairs(IMP::ParticleIndexPairs const & p) -> IMP::ParticleIndexPairs"""
9007 return _IMP_kernel._pass_particle_index_pairs(p)
9009 def _pass_model_objects(p):
9010 """_pass_model_objects(IMP::ModelObjectsTemp const & p) -> IMP::ModelObjectsTemp"""
9011 return _IMP_kernel._pass_model_objects(p)
9013 def _pass_particles_temps(ps):
9014 """_pass_particles_temps(IMP::ParticlesTemps const & ps) -> IMP::ParticlesTemps"""
9015 return _IMP_kernel._pass_particles_temps(ps)
9017 def _test_overload(*args):
9019 _test_overload(IMP::Particles const & ps) -> int
9020 _test_overload(IMP::Restraints const & ps) -> int
9022 return _IMP_kernel._test_overload(*args)
9024 def _get_range(m, k):
9025 """_get_range(Model m, FloatKey k) -> IMP::FloatRange"""
9026 return _IMP_kernel._get_range(m, k)
9028 def _create_particles_from_pdb(name, m):
9029 """_create_particles_from_pdb(std::string name, Model m) -> IMP::ParticleIndexes"""
9030 return _IMP_kernel._create_particles_from_pdb(name, m)
9031 class _LogPairScore(PairScore):
9032 """Proxy of C++ IMP::internal::_LogPairScore class"""
9033 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9034 __repr__ = _swig_repr
9037 """__init__(IMP::internal::_LogPairScore self) -> _LogPairScore"""
9038 this = _IMP_kernel.new__LogPairScore()
9040 self.this.append(this)
9044 def do_get_inputs(self, arg2, arg3):
9045 """do_get_inputs(_LogPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
9046 return _IMP_kernel._LogPairScore_do_get_inputs(self, arg2, arg3)
9049 def get_version_info(self):
9050 """get_version_info(_LogPairScore self) -> VersionInfo"""
9051 return _IMP_kernel._LogPairScore_get_version_info(self)
9054 def get_particle_pairs(self):
9055 """get_particle_pairs(_LogPairScore self) -> IMP::ParticlePairsTemp"""
9056 return _IMP_kernel._LogPairScore_get_particle_pairs(self)
9060 """clear(_LogPairScore self)"""
9061 return _IMP_kernel._LogPairScore_clear(self)
9064 def get_contains(self, pp):
9065 """get_contains(_LogPairScore self, IMP::ParticlePair const & pp) -> bool"""
9066 return _IMP_kernel._LogPairScore_get_contains(self, pp)
9068 _LogPairScore_swigregister = _IMP_kernel._LogPairScore_swigregister
9069 _LogPairScore_swigregister(_LogPairScore)
9072 def _overloaded_particles(*args):
9074 _overloaded_particles(Particle arg1)
9075 _overloaded_particles(IMP::Particles const & arg1)
9076 _overloaded_particles(IMP::ParticlesTemp const & arg1)
9077 _overloaded_particles(Model arg1, IMP::ParticleIndexes const & arg2)
9078 _overloaded_particles(IMP::internal::_TrivialDecorators const & arg1)
9079 _overloaded_particles(_TrivialDecorator arg1)
9081 return _IMP_kernel._overloaded_particles(*args)
9082 class _ImplicitParticles(object):
9083 """Proxy of C++ IMP::internal::_ImplicitParticles class"""
9084 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9085 __repr__ = _swig_repr
9087 def __init__(self, *args):
9089 __init__(IMP::internal::_ImplicitParticles self, Particle arg2) -> _ImplicitParticles
9090 __init__(IMP::internal::_ImplicitParticles self, IMP::Particles const & arg2) -> _ImplicitParticles
9091 __init__(IMP::internal::_ImplicitParticles self, IMP::ParticlesTemp const & arg2) -> _ImplicitParticles
9092 __init__(IMP::internal::_ImplicitParticles self, Model arg2, IMP::ParticleIndexes const & arg3) -> _ImplicitParticles
9093 __init__(IMP::internal::_ImplicitParticles self, IMP::internal::_TrivialDecorators const & arg2) -> _ImplicitParticles
9094 __init__(IMP::internal::_ImplicitParticles self, _TrivialDecorator arg2) -> _ImplicitParticles
9096 this = _IMP_kernel.new__ImplicitParticles(*args)
9098 self.this.append(this)
9101 __swig_destroy__ = _IMP_kernel.delete__ImplicitParticles
9102 __del__ =
lambda self:
None
9103 _ImplicitParticles_swigregister = _IMP_kernel._ImplicitParticles_swigregister
9104 _ImplicitParticles_swigregister(_ImplicitParticles)
9107 def _implicit_particles(arg1):
9108 """_implicit_particles(_ImplicitParticles arg1)"""
9109 return _IMP_kernel._implicit_particles(arg1)
9111 def _take_particle_adaptor(pa):
9112 """_take_particle_adaptor(_ParticleAdaptor pa) -> ParticleIndex"""
9113 return _IMP_kernel._take_particle_adaptor(pa)
9115 def _take_particle_indexes_adaptor(pa):
9116 """_take_particle_indexes_adaptor(_ParticleIndexesAdaptor pa) -> IMP::ParticleIndexes"""
9117 return _IMP_kernel._take_particle_indexes_adaptor(pa)
9118 class ScopedSetFloatAttribute(_RAII):
9119 """Proxy of C++ IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> class"""
9120 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9122 def __init__(self, *args):
9124 __init__(IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> self) -> ScopedSetFloatAttribute
9125 __init__(IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> self, Particle p, FloatKey key, double const & value) -> ScopedSetFloatAttribute
9127 this = _IMP_kernel.new_ScopedSetFloatAttribute(*args)
9129 self.this.append(this)
9133 def set(self, p, key, value):
9134 """set(ScopedSetFloatAttribute self, Particle p, FloatKey key, double const & value)"""
9135 return _IMP_kernel.ScopedSetFloatAttribute_set(self, p, key, value)
9139 """reset(ScopedSetFloatAttribute self)"""
9140 return _IMP_kernel.ScopedSetFloatAttribute_reset(self)
9142 __swig_destroy__ = _IMP_kernel.delete_ScopedSetFloatAttribute
9143 __del__ =
lambda self:
None
9145 def show(self, *args):
9147 show(ScopedSetFloatAttribute self, _ostream out)
9148 show(ScopedSetFloatAttribute self)
9150 return _IMP_kernel.ScopedSetFloatAttribute_show(self, *args)
9154 """__str__(ScopedSetFloatAttribute self) -> std::string"""
9155 return _IMP_kernel.ScopedSetFloatAttribute___str__(self)
9159 """__repr__(ScopedSetFloatAttribute self) -> std::string"""
9160 return _IMP_kernel.ScopedSetFloatAttribute___repr__(self)
9162 ScopedSetFloatAttribute_swigregister = _IMP_kernel.ScopedSetFloatAttribute_swigregister
9163 ScopedSetFloatAttribute_swigregister(ScopedSetFloatAttribute)
9173 if sys.platform ==
'win32' and 'IMP_LD_PATH' in os.environ:
9174 dirs = os.environ[
'IMP_LD_PATH'].split(
":")
9175 pathcomps = os.environ[
'PATH'].split(
";")
9177 if d
not in pathcomps:
9178 os.environ[
'PATH'] = d +
';' + os.environ[
'PATH']
9186 """Allow command line tools to easily implement multiple commands.
9187 Typically, an IMP command line tool will use an instance of this class
9188 to provide a consistent interface to multiple distinct commands
9189 from a single binary, rather than providing a potentially large
9190 number of binaries. This is similar to the way a number of common
9191 command line tools outside of %IMP function (e.g. Git provides a single
9192 `git` tool which implements multiple commands - `git add`, `git commit`,
9193 `git push` and so on).
9195 Each command is implemented with a Python module of the same name
9196 that can be imported from the module (for example, if `module_name`
9197 is `IMP.foo`, the `bar` command is provided by the `IMP.foo.bar` Python
9198 module, which would usually be found as `modules/foo/pyext/src/bar.py`).
9199 Each such module should have a docstring and a `%main()` method
9200 that takes no arguments (the module should also call its `%main()` method
9201 if it is run directly, i.e. with something like
9202 `if __name__=="__main__": %main()`). The encompassing module
9203 (`IMP.foo` in the example) should define `_all_commands` as a Python
9204 list of all valid commands.
9206 See the `multifit` and `cnmultifit` command line tools for example
9210 def __init__(self, short_help, long_help, module_name):
9212 @param short_help A few words that describe the command line tool.
9213 @param long_help Longer text, used in the `help` command.
9214 @param module_name Name of the module (e.g. `IMP.foo`) that
9215 implements the commands.
9217 self.short_help = short_help
9218 self.long_help = long_help
9219 self.module_name = module_name
9220 self._all_commands = self.import_module()._all_commands
9221 self._progname = os.path.basename(sys.argv[0])
9224 """Call this method to act upon the user-provided command line"""
9225 if len(sys.argv) <= 1:
9226 print(self.short_help +
" Use '%s help' for help." % self._progname)
9228 command = sys.argv[1]
9229 if command
in (
'help',
'--help',
'-h'):
9230 if len(sys.argv) == 3:
9231 self.show_command_help(sys.argv[2])
9234 elif command ==
'--version':
9236 elif command
in self._all_commands:
9237 self.do_command(command)
9239 self.unknown_command(command)
9241 def import_module(self, mod=None):
9242 modname = self.module_name
9244 modname +=
"." + mod
9245 return __import__(modname, {}, {}, [
''])
9247 def unknown_command(self, command):
9248 print(
"Unknown command: '%s'" % command)
9249 print(
"Use '%s help' for help." % self._progname)
9252 def _get_version(self):
9253 return self.import_module().get_module_version()
9255 def show_version(self):
9256 print(self._progname +
' ' + self._get_version())
9258 def show_help(self):
9259 ver = self._get_version()
9260 print(
"%s, version %s." % (self._progname, ver))
9261 print(self.long_help +
"""
9263 This program is part of IMP, the Integrative Modeling Platform,
9264 which is Copyright 2007-2016 IMP Inventors.
9265 For additional information about IMP, see <http://integrativemodeling.org>.
9267 Usage: %s <command> [options] [args]
9269 Commands:""" % self._progname)
9270 commands = self._all_commands[:] + [
'help']
9272 cmdlen = max([len(c)
for c
in commands])
9275 doc =
'Get help on using %s.' % self._progname
9277 doc = self.import_module(c).__doc__
or "<no help>"
9278 c +=
' ' * (cmdlen - len(c))
9279 print(
' ' + c +
' ' + doc)
9281 Use "%s help <command>" for detailed help on any command
9282 or "%s --version" to see the version number.""" % (self._progname,
9285 def do_command(self, command):
9286 mod = self.import_module(command)
9287 sys.argv[0] = self._progname +
' ' + command
9291 def show_command_help(self, command):
9292 if command ==
'help':
9294 elif command
in self._all_commands
or command ==
'help':
9295 mod = self.import_module(command)
9296 sys.argv = [self._progname +
' ' + command,
'--help']
9299 self.unknown_command(command)
9308 """IMP-specific subclass of optparse.OptionParser.
9309 This adds options common to all IMP applications
9310 (see IMP::setup_from_argv()).
9313 _use_boost_parser =
True
9315 def __init__(self, *args, **kwargs):
9318 kwargs[
'add_help_option'] =
False
9319 kwargs[
'version'] =
None
9321 if 'imp_module' in kwargs:
9322 del kwargs[
'imp_module']
9324 optparse.OptionParser.__init__(self, *args, **kwargs)
9326 if 'epilog' in kwargs:
9328 del kwargs[
'epilog']
9329 optparse.OptionParser.__init__(self, *args, **kwargs)
9335 def _process_long_opt(self, rargs, values):
9336 if self._use_boost_parser:
9338 optparse.OptionParser._process_long_opt(self, rargs, values)
9339 except optparse.BadOptionError
as err:
9340 if not hasattr(err,
'opt_str') \
9341 and err.msg.startswith(
'no such option:'):
9342 self.largs.append(err.msg[16:])
9344 self.largs.append(err.opt_str)
9346 optparse.OptionParser._process_long_opt(self, rargs, values)
9347 def _process_short_opts(self, rargs, values):
9348 if self._use_boost_parser:
9350 optparse.OptionParser._process_short_opts(self, rargs, values)
9351 except optparse.BadOptionError
as err:
9352 self.largs.append(err.opt_str)
9354 optparse.OptionParser._process_short_opts(self, rargs, values)
9356 def _process_args(self, largs, rargs, values):
9357 if self._use_boost_parser:
9362 dashdash = rargs.index(
'--')
9364 dashdash = len(rargs)
9365 saved_args = rargs[dashdash:]
9366 del rargs[dashdash:]
9367 optparse.OptionParser._process_args(self, largs, rargs, values)
9368 rargs.extend(saved_args)
9370 optparse.OptionParser._process_args(self, largs, rargs, values)
9373 """Parse the command line and return options and positional arguments.
9374 This functions in the same way as the method in the base class
9375 optparse.OptionParser, except that it also processes options common
9376 to all IMP applications (these are not returned in opts, but can be
9377 obtained in the usual way, e.g. by calling
9378 IMP::get_string_flag()).
9379 @param[in] num_positional If a positive integer, exactly that
9380 many positional arguments must be specified on the
9381 command line; if a negative integer, that many or
9382 more must be given; if None, any number of positional
9383 arguments can be given.
9387 opts, args = optparse.OptionParser.parse_args(self)
9388 if not self._use_boost_parser:
9390 orig_desc = self.description
9391 orig_usage = self.usage
9393 usage = self.usage.replace(
'%prog ',
'')
9396 if num_positional
is None:
9400 args.append(
'dummy')
9402 numpos = num_positional
9404 self.usage = self.description =
None
9408 self.format_help() \
9409 +
"\nOptions common to all IMP applications:",
9412 self.description = orig_desc
9413 self.usage = orig_usage
9414 if num_positional
is None:
9422 g = networkx.DiGraph()
9423 if len(ig.get_vertices()) == 0:
9428 def __init__(self, p):
9432 return self.p.get_name()
9434 def __call__(self, name):
9435 return self.p.__call__(name)
9437 for vi
in ig.get_vertices():
9438 n = ig.get_vertex_name(vi)
9439 g.add_node(NodeWrapper(n))
9440 for vi
in ig.get_vertices():
9441 n = ig.get_vertex_name(vi)
9442 for ni
in ig.get_out_neighbors(vi):
9443 nn = ig.get_vertex_name(ni)
9444 g.add_edge(NodeWrapper(n), NodeWrapper(nn))
9451 n0 = name.get_name()
9454 n1 = str(n0).replace(
'"',
'')
9455 n2 = n1.replace(
"\n",
'')
9458 from altgraph
import Graph, Dot
9459 graph = Graph.Graph()
9460 for i, v
in enumerate(g.get_vertices()):
9462 for i, v
in enumerate(g.get_vertices()):
9463 for n
in g.get_out_neighbors(v):
9464 graph.add_edge(v, n)
9465 dot = Dot.Dot(graph)
9466 for i, v
in enumerate(g.get_vertices()):
9467 dot.node_style(i, label=clean(g.get_vertex_name(v)))
9474 st = g.get_graphviz_string()
9475 open(tfn,
"w").write(st)
9480 sys.stderr.write(
"Cannot run dot on Python 2.3 systems.\n")
9483 print(
"running dot")
9484 sp = subprocess.Popen([
"dot",
"-Tpdf", tfn,
"-o" + tfon])
9488 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")
9491 if platform.system() ==
"Darwin":
9494 cmd = [
"gv",
"acroread",
"xpdf"]
9497 print(
"launching viewer " + c)
9499 subprocess.check_call([c, tfon])
9505 print(
"Could not display file. It is saved at " + tfon)
9515 """Mark a Python module as deprecated.
9516 @note The `module` argument would normally be `__name__`.
9517 @see [deprecation support](@ref deprecation)."""
9519 "Module %s is deprecated. %s\n" % (module, help_message))
9522 """Python decorator to mark a class as deprecated.
9523 @see [deprecation support](@ref deprecation)."""
9525 orig_init = obj.__init__
9528 @functools.wraps(orig_init, (
'__name__',
'__doc__'))
9529 def __init__(obj, *args, **keys):
9531 % (type(obj), help_message))
9532 orig_init(obj, *args, **keys)
9533 obj.__init__ = __init__
9538 """Python decorator to mark a method as deprecated.
9539 @see [deprecation support](@ref deprecation)."""
9540 def out_wrapper(obj):
9541 @functools.wraps(obj)
9542 def wrapper(cls, *args, **keys):
9544 % (obj.__name__, type(cls), help_message))
9545 return obj(cls, *args, **keys)
9550 """Python decorator to mark a function as deprecated.
9551 @see [deprecation support](@ref deprecation)."""
9552 def out_wrapper(obj):
9553 @functools.wraps(obj)
9554 def wrapper(*args, **keys):
9556 % (obj.__name__, help_message))
9557 return obj(*args, **keys)
9561 @contextlib.contextmanager
9563 """Context manager to temporarily allow (or disallow) deprecated code.
9564 @see [deprecation support](@ref deprecation)."""
9570 class RandomNumberGenerator(object):
9571 """Proxy of C++ IMP::RandomNumberGenerator class"""
9572 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9573 __repr__ = _swig_repr
9576 """seed(RandomNumberGenerator self, ::boost::int32_t x)"""
9577 return _IMP_kernel.RandomNumberGenerator_seed(self, x)
9581 """__call__(RandomNumberGenerator self) -> int"""
9582 return _IMP_kernel.RandomNumberGenerator___call__(self)
9586 """__init__(IMP::RandomNumberGenerator self) -> RandomNumberGenerator"""
9587 this = _IMP_kernel.new_RandomNumberGenerator()
9589 self.this.append(this)
9592 __swig_destroy__ = _IMP_kernel.delete_RandomNumberGenerator
9593 __del__ =
lambda self:
None
9594 RandomNumberGenerator_swigregister = _IMP_kernel.RandomNumberGenerator_swigregister
9595 RandomNumberGenerator_swigregister(RandomNumberGenerator)
9600 get_random_float_uniform() -> float
9601 get_random_float_uniform(float min, float max) -> float
9603 return _IMP_kernel.get_random_float_uniform(*args)
9607 get_random_double_uniform() -> double
9608 get_random_double_uniform(double min, double max) -> double
9610 return _IMP_kernel.get_random_double_uniform(*args)
9612 def get_random_floats_normal(n, mean=0.0, stddev=1.0):
9614 get_random_floats_normal(unsigned int n, float mean=0.0, float stddev=1.0) -> IMP::Vector< float >
9615 get_random_floats_normal(unsigned int n, float mean=0.0) -> IMP::Vector< float >
9616 get_random_floats_normal(unsigned int n) -> IMP::Vector< float >
9618 return _IMP_kernel.get_random_floats_normal(n, mean, stddev)
9620 def get_random_doubles_normal(n, mean=0.0, stddev=1.0):
9622 get_random_doubles_normal(unsigned int n, double mean=0.0, double stddev=1.0) -> IMP::Vector< double >
9623 get_random_doubles_normal(unsigned int n, double mean=0.0) -> IMP::Vector< double >
9624 get_random_doubles_normal(unsigned int n) -> IMP::Vector< double >
9626 return _IMP_kernel.get_random_doubles_normal(n, mean, stddev)
9628 def get_random_floats_uniform(n):
9629 """get_random_floats_uniform(unsigned int n) -> IMP::Vector< float >"""
9630 return _IMP_kernel.get_random_floats_uniform(n)
9632 def get_random_doubles_uniform(n):
9633 """get_random_doubles_uniform(unsigned int n) -> IMP::Vector< double >"""
9634 return _IMP_kernel.get_random_doubles_uniform(n)
9637 """get_random_seed() -> boost::uint64_t"""
9638 return _IMP_kernel.get_random_seed()
9640 def get_module_version():
9641 """get_module_version() -> std::string const"""
9642 return _IMP_kernel.get_module_version()
9645 """get_example_path(std::string fname) -> std::string"""
9646 return _IMP_kernel.get_example_path(fname)
9649 """get_data_path(std::string fname) -> std::string"""
9650 return _IMP_kernel.get_data_path(fname)
9652 from .
import _version_check
9653 _version_check.check_version(get_module_version())
9654 __version__ = get_module_version()
9657 random_number_generator = cvar.random_number_generator
Key< 4, true > ObjectKey
The type used to identify an Object attribute.
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.
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)
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
void show_timings(TextOutput out)
def main
Call this method to act upon the user-provided command line.
boost::graph DependencyGraph
A 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.
ParticlesTemp get_dependent_particles(ModelObject *p, const ModelObjectsTemp &all, const DependencyGraph &dg, const DependencyGraphVertexIndex &index)
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.
Key< 8, true > ModelKey
The type used to identify data stored directly in the model.
Array< 4, WeakPointer< Particle >, Particle * > ParticleQuad
bool get_bool_flag(std::string name)
void handle_use_deprecated(std::string message)
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.
def parse_args
Parse the command line and return options and positional arguments.
Index< ParticleIndexTag > ParticleIndex
ParticlesTemp get_particles(Model *m, const ParticleIndexes &ps)
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)
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.
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="")
ParticlesTemp get_output_particles(const ModelObjectsTemp &mos)
Return all the output particles for a given ModelObject.
IMP-specific subclass of optparse.OptionParser.
ScoringFunction * create_scoring_function(RestraintType *rs, double weight=1.0, double max=NO_MAX, std::string name=std::string())
Key< 1, true > IntKey
The type used to identify int attributes in the Particles.
void write_help(std::ostream &out=std::cerr)
size_t get_int_flag(std::string name)
void add_restraint(RMF::FileHandle fh, Restraint *hs)
ScoreStatesTemp get_required_score_states(ModelObject *p, const ModelObjectsTemp &all, const DependencyGraph &dg, const DependencyGraphVertexIndex &index)
boost::uint64_t get_random_seed()
Return the initial random seed.
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_float_flag(std::string name, double default_value, std::string description)
Ints get_index(const ParticlesTemp &particles, const Subset &subset, const Subsets &excluded)
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.
Key< 3, true > ParticleIndexKey
The type used to identify a particle attribute in the Particles.
Version and module information for Objects.
Key< 0, true > FloatKey
The type used to identify float attributes in the Particles.
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.
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
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.
Key< 6, true > ParticleIndexesKey
The type used to identify a particle attribute in the Particles.
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.
void set_statistics_level(StatisticsLevel l)
Array< 2, WeakPointer< Particle >, Particle * > ParticlePair
Restraints create_restraints(RMF::FileConstHandle fh, Model *m)
std::string show_graphviz(Graph g)
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< 2, true > StringKey
The type used to identify string attributes in the Particles.
void show_altgraph(Graph g)
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)
void read_particles_from_buffer(const Vector< char > &buffer, const ParticlesTemp &particles, const FloatKeys &keys)
load found attributes into the particles
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 create_temporary_file_name(std::string prefix="imp_temp", std::string suffix="")
Create a temporary file.