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)
222 _IMP_kernel.IMP_DEBUG_swigconstant(_IMP_kernel)
223 IMP_DEBUG = _IMP_kernel.IMP_DEBUG
225 _IMP_kernel.IMP_RELEASE_swigconstant(_IMP_kernel)
226 IMP_RELEASE = _IMP_kernel.IMP_RELEASE
228 _IMP_kernel.IMP_SILENT_swigconstant(_IMP_kernel)
229 IMP_SILENT = _IMP_kernel.IMP_SILENT
231 _IMP_kernel.IMP_PROGRESS_swigconstant(_IMP_kernel)
232 IMP_PROGRESS = _IMP_kernel.IMP_PROGRESS
234 _IMP_kernel.IMP_TERSE_swigconstant(_IMP_kernel)
235 IMP_TERSE = _IMP_kernel.IMP_TERSE
237 _IMP_kernel.IMP_VERBOSE_swigconstant(_IMP_kernel)
238 IMP_VERBOSE = _IMP_kernel.IMP_VERBOSE
240 _IMP_kernel.IMP_MEMORY_swigconstant(_IMP_kernel)
241 IMP_MEMORY = _IMP_kernel.IMP_MEMORY
243 _IMP_kernel.IMP_NONE_swigconstant(_IMP_kernel)
244 IMP_NONE = _IMP_kernel.IMP_NONE
246 _IMP_kernel.IMP_USAGE_swigconstant(_IMP_kernel)
247 IMP_USAGE = _IMP_kernel.IMP_USAGE
249 _IMP_kernel.IMP_INTERNAL_swigconstant(_IMP_kernel)
250 IMP_INTERNAL = _IMP_kernel.IMP_INTERNAL
252 _IMP_kernel.IMP_KERNEL_HAS_LOG4CXX_swigconstant(_IMP_kernel)
253 IMP_KERNEL_HAS_LOG4CXX = _IMP_kernel.IMP_KERNEL_HAS_LOG4CXX
255 _IMP_kernel.IMP_COMPILER_HAS_AUTO_swigconstant(_IMP_kernel)
256 IMP_COMPILER_HAS_AUTO = _IMP_kernel.IMP_COMPILER_HAS_AUTO
258 _IMP_kernel.IMP_COMPILER_HAS_DEBUG_VECTOR_swigconstant(_IMP_kernel)
259 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_kernel.IMP_COMPILER_HAS_DEBUG_VECTOR
261 _IMP_kernel.IMP_KERNEL_HAS_BOOST_RANDOM_swigconstant(_IMP_kernel)
262 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_kernel.IMP_KERNEL_HAS_BOOST_RANDOM
264 _IMP_kernel.IMP_KERNEL_HAS_GPERFTOOLS_swigconstant(_IMP_kernel)
265 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_kernel.IMP_KERNEL_HAS_GPERFTOOLS
267 _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_kernel)
268 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
270 _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_kernel)
271 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
273 _IMP_kernel.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_kernel)
274 IMPKERNEL_SHOW_WARNINGS = _IMP_kernel.IMPKERNEL_SHOW_WARNINGS
276 class _DirectorObjects(object):
277 """@internal Simple class to keep references to director objects
278 to prevent premature deletion."""
281 def register(self, obj):
282 """Take a reference to a director object; will only work for
283 refcounted C++ classes"""
284 if hasattr(obj,
'get_ref_count'):
285 self._objects.append(obj)
287 """Only drop our reference and allow cleanup by Python if no other
288 Python references exist (we hold 3 references: one in self._objects,
289 one in x, and one in the argument list for getrefcount) *and* no
290 other C++ references exist (the Python object always holds one)"""
291 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
292 or x.get_ref_count() > 1]
296 def get_object_count(self):
297 """Get number of director objects (useful for testing only)"""
298 return len(self._objects)
299 _director_objects = _DirectorObjects()
302 _IMP_kernel.DEFAULT_CHECK_swigconstant(_IMP_kernel)
303 DEFAULT_CHECK = _IMP_kernel.DEFAULT_CHECK
305 _IMP_kernel.NONE_swigconstant(_IMP_kernel)
306 NONE = _IMP_kernel.NONE
308 _IMP_kernel.USAGE_swigconstant(_IMP_kernel)
309 USAGE = _IMP_kernel.USAGE
311 _IMP_kernel.USAGE_AND_INTERNAL_swigconstant(_IMP_kernel)
312 USAGE_AND_INTERNAL = _IMP_kernel.USAGE_AND_INTERNAL
315 """set_check_level(IMP::CheckLevel tf)"""
316 return _IMP_kernel.set_check_level(tf)
319 """get_check_level() -> IMP::CheckLevel"""
320 return _IMP_kernel.get_check_level()
321 from _IMP_kernel
import Exception, InternalException, ModelException, EventException
322 from _IMP_kernel
import UsageException, IndexException, IOException, ValueException
323 from _IMP_kernel
import TypeException
325 class _ostream(object):
326 """Proxy of C++ std::ostream class"""
327 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
329 def __init__(self, *args, **kwargs):
330 raise AttributeError(
"No constructor defined")
331 __repr__ = _swig_repr
333 def write(self, osa_buf):
334 """write(_ostream self, char const * osa_buf)"""
335 return _IMP_kernel._ostream_write(self, osa_buf)
337 _ostream_swigregister = _IMP_kernel._ostream_swigregister
338 _ostream_swigregister(_ostream)
341 _IMP_kernel.IMP_COMPILER_HAS_OVERRIDE_swigconstant(_IMP_kernel)
342 IMP_COMPILER_HAS_OVERRIDE = _IMP_kernel.IMP_COMPILER_HAS_OVERRIDE
344 _IMP_kernel.IMP_COMPILER_HAS_FINAL_swigconstant(_IMP_kernel)
345 IMP_COMPILER_HAS_FINAL = _IMP_kernel.IMP_COMPILER_HAS_FINAL
347 _IMP_kernel.IMP_HAS_NOEXCEPT_swigconstant(_IMP_kernel)
348 IMP_HAS_NOEXCEPT = _IMP_kernel.IMP_HAS_NOEXCEPT
349 _raii_types.append(
"SetLogState")
351 _raii_types.append(
"SetNumberOfThreads")
353 _raii_types.append(
"SetCheckState")
355 _object_types.append(
"Object")
358 def _object_cast_to_Object(o):
359 """_object_cast_to_Object(Object * o) -> Object"""
360 return _IMP_kernel._object_cast_to_Object(o)
361 _object_types.append(
"_TestObject")
364 def _object_cast_to__TestObject(o):
365 """_object_cast_to__TestObject(Object * o) -> _TestObject"""
366 return _IMP_kernel._object_cast_to__TestObject(o)
368 _plural_types.append(
"VersionInfos")
369 _value_types.append(
"VersionInfo")
371 _raii_types.append(
"CreateLogContext")
373 _raii_types.append(
"WarningContext")
375 _raii_types.append(
"SetLogTarget")
378 _plural_types.append(
"_TestValues")
379 _value_types.append(
"_TestValue")
382 _plural_types.append(
"Floats")
383 _value_types.append(
"Float")
386 _plural_types.append(
"Ints")
387 _value_types.append(
"Int")
390 _plural_types.append(
"Strings")
391 _value_types.append(
"String")
394 _plural_types.append(
"_Protections")
395 _value_types.append(
"_Protection")
397 class _InputAdaptor(object):
398 """Proxy of C++ IMP::InputAdaptor class"""
399 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
401 def __init__(self, *args, **kwargs):
402 raise AttributeError(
"No constructor defined")
403 __repr__ = _swig_repr
404 __swig_destroy__ = _IMP_kernel.delete__InputAdaptor
405 __del__ =
lambda self:
None
406 _InputAdaptor_swigregister = _IMP_kernel._InputAdaptor_swigregister
407 _InputAdaptor_swigregister(_InputAdaptor)
409 class _NonCopyable(object):
410 """Proxy of C++ IMP::NonCopyable class"""
411 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
413 def __init__(self, *args, **kwargs):
414 raise AttributeError(
"No constructor defined")
415 __repr__ = _swig_repr
416 __swig_destroy__ = _IMP_kernel.delete__NonCopyable
417 __del__ =
lambda self:
None
418 _NonCopyable_swigregister = _IMP_kernel._NonCopyable_swigregister
419 _NonCopyable_swigregister(_NonCopyable)
421 class _RAII(_NonCopyable):
422 """Proxy of C++ IMP::RAII class"""
423 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
425 def __init__(self, *args, **kwargs):
426 raise AttributeError(
"No constructor defined")
427 __repr__ = _swig_repr
428 __swig_destroy__ = _IMP_kernel.delete__RAII
429 __del__ =
lambda self:
None
430 _RAII_swigregister = _IMP_kernel._RAII_swigregister
431 _RAII_swigregister(_RAII)
433 class _Value(object):
434 """Proxy of C++ IMP::Value class"""
435 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
437 def __init__(self, *args, **kwargs):
438 raise AttributeError(
"No constructor defined")
439 __repr__ = _swig_repr
440 __swig_destroy__ = _IMP_kernel.delete__Value
441 __del__ =
lambda self:
None
442 _Value_swigregister = _IMP_kernel._Value_swigregister
443 _Value_swigregister(_Value)
447 """get_executable_name() -> std::string"""
448 return _IMP_kernel.get_executable_name()
452 setup_from_argv(IMP::Strings const & argv, std::string description)
453 setup_from_argv(IMP::Strings const & argv, std::string description, std::string positional_description, int num_positional) -> IMP::Strings
455 return _IMP_kernel.setup_from_argv(*args)
458 """add_string_flag(std::string name, std::string default_value, std::string description)"""
459 return _IMP_kernel.add_string_flag(name, default_value, description)
462 """get_string_flag(std::string name) -> std::string"""
463 return _IMP_kernel.get_string_flag(name)
466 """add_int_flag(std::string name, size_t default_value, std::string description)"""
467 return _IMP_kernel.add_int_flag(name, default_value, description)
470 """get_int_flag(std::string name) -> size_t"""
471 return _IMP_kernel.get_int_flag(name)
474 """add_bool_flag(std::string name, std::string description)"""
475 return _IMP_kernel.add_bool_flag(name, description)
478 """get_bool_flag(std::string name) -> bool"""
479 return _IMP_kernel.get_bool_flag(name)
482 """add_float_flag(std::string name, double default_value, std::string description)"""
483 return _IMP_kernel.add_float_flag(name, default_value, description)
486 """get_float_flag(std::string name) -> double"""
487 return _IMP_kernel.get_float_flag(name)
491 write_help(_ostream out)
494 return _IMP_kernel.write_help(*args)
497 """get_is_quick_test() -> bool"""
498 return _IMP_kernel.get_is_quick_test()
500 _IMP_kernel.DEFAULT_swigconstant(_IMP_kernel)
501 DEFAULT = _IMP_kernel.DEFAULT
503 _IMP_kernel.SILENT_swigconstant(_IMP_kernel)
504 SILENT = _IMP_kernel.SILENT
506 _IMP_kernel.WARNING_swigconstant(_IMP_kernel)
507 WARNING = _IMP_kernel.WARNING
509 _IMP_kernel.PROGRESS_swigconstant(_IMP_kernel)
510 PROGRESS = _IMP_kernel.PROGRESS
512 _IMP_kernel.TERSE_swigconstant(_IMP_kernel)
513 TERSE = _IMP_kernel.TERSE
515 _IMP_kernel.VERBOSE_swigconstant(_IMP_kernel)
516 VERBOSE = _IMP_kernel.VERBOSE
518 _IMP_kernel.MEMORY_swigconstant(_IMP_kernel)
519 MEMORY = _IMP_kernel.MEMORY
521 _IMP_kernel.ALL_LOG_swigconstant(_IMP_kernel)
522 ALL_LOG = _IMP_kernel.ALL_LOG
524 _IMP_kernel.NO_STATISTICS_swigconstant(_IMP_kernel)
525 NO_STATISTICS = _IMP_kernel.NO_STATISTICS
527 _IMP_kernel.ALL_STATISTICS_swigconstant(_IMP_kernel)
528 ALL_STATISTICS = _IMP_kernel.ALL_STATISTICS
529 class VersionInfo(_Value):
530 """Proxy of C++ IMP::VersionInfo class"""
531 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
533 def __init__(self, *args):
535 __init__(IMP::VersionInfo self, std::string module, std::string version) -> VersionInfo
536 __init__(IMP::VersionInfo self) -> VersionInfo
538 this = _IMP_kernel.new_VersionInfo(*args)
540 self.this.append(this)
544 def get_module(self):
545 """get_module(VersionInfo self) -> std::string"""
546 return _IMP_kernel.VersionInfo_get_module(self)
549 def get_version(self):
550 """get_version(VersionInfo self) -> std::string"""
551 return _IMP_kernel.VersionInfo_get_version(self)
554 def show(self, *args):
556 show(VersionInfo self, _ostream out)
557 show(VersionInfo self)
559 return _IMP_kernel.VersionInfo_show(self, *args)
562 def __cmp__(self, o):
563 """__cmp__(VersionInfo self, VersionInfo o) -> int"""
564 return _IMP_kernel.VersionInfo___cmp__(self, o)
568 """__eq__(VersionInfo self, VersionInfo o) -> bool"""
569 return _IMP_kernel.VersionInfo___eq__(self, o)
573 """__ne__(VersionInfo self, VersionInfo o) -> bool"""
574 return _IMP_kernel.VersionInfo___ne__(self, o)
578 """__lt__(VersionInfo self, VersionInfo o) -> bool"""
579 return _IMP_kernel.VersionInfo___lt__(self, o)
583 """__gt__(VersionInfo self, VersionInfo o) -> bool"""
584 return _IMP_kernel.VersionInfo___gt__(self, o)
588 """__ge__(VersionInfo self, VersionInfo o) -> bool"""
589 return _IMP_kernel.VersionInfo___ge__(self, o)
593 """__le__(VersionInfo self, VersionInfo o) -> bool"""
594 return _IMP_kernel.VersionInfo___le__(self, o)
598 """__str__(VersionInfo self) -> std::string"""
599 return _IMP_kernel.VersionInfo___str__(self)
603 """__repr__(VersionInfo self) -> std::string"""
604 return _IMP_kernel.VersionInfo___repr__(self)
606 __swig_destroy__ = _IMP_kernel.delete_VersionInfo
607 __del__ =
lambda self:
None
608 VersionInfo_swigregister = _IMP_kernel.VersionInfo_swigregister
609 VersionInfo_swigregister(VersionInfo)
611 class TextOutput(_InputAdaptor):
612 """Proxy of C++ IMP::TextOutput class"""
613 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
614 __repr__ = _swig_repr
616 def __init__(self, *args):
618 __init__(IMP::TextOutput self, int arg2) -> TextOutput
619 __init__(IMP::TextOutput self, double arg2) -> TextOutput
620 __init__(IMP::TextOutput self, char const * c, bool append=False) -> TextOutput
621 __init__(IMP::TextOutput self, char const * c) -> TextOutput
622 __init__(IMP::TextOutput self, IMP::TextProxy< std::ostream > p) -> TextOutput
623 __init__(IMP::TextOutput self) -> TextOutput
624 __init__(IMP::TextOutput self, std::string file_name, bool append=False) -> TextOutput
625 __init__(IMP::TextOutput self, std::string file_name) -> TextOutput
627 this = _IMP_kernel.new_TextOutput(*args)
629 self.this.append(this)
633 def show(self, *args):
635 show(TextOutput self, _ostream out)
636 show(TextOutput self)
638 return _IMP_kernel.TextOutput_show(self, *args)
642 """get_name(TextOutput self) -> std::string"""
643 return _IMP_kernel.TextOutput_get_name(self)
645 __swig_destroy__ = _IMP_kernel.delete_TextOutput
646 __del__ =
lambda self:
None
647 TextOutput_swigregister = _IMP_kernel.TextOutput_swigregister
648 TextOutput_swigregister(TextOutput)
650 class TextInput(_InputAdaptor):
651 """Proxy of C++ IMP::TextInput class"""
652 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
653 __repr__ = _swig_repr
655 def __init__(self, *args):
657 __init__(IMP::TextInput self, int arg2) -> TextInput
658 __init__(IMP::TextInput self, double arg2) -> TextInput
659 __init__(IMP::TextInput self, char const * c) -> TextInput
660 __init__(IMP::TextInput self, IMP::TextProxy< std::istream > p) -> TextInput
661 __init__(IMP::TextInput self) -> TextInput
662 __init__(IMP::TextInput self, std::string file_name) -> TextInput
664 this = _IMP_kernel.new_TextInput(*args)
666 self.this.append(this)
670 def show(self, *args):
672 show(TextInput self, _ostream out)
675 return _IMP_kernel.TextInput_show(self, *args)
679 """get_name(TextInput self) -> std::string"""
680 return _IMP_kernel.TextInput_get_name(self)
682 __swig_destroy__ = _IMP_kernel.delete_TextInput
683 __del__ =
lambda self:
None
684 TextInput_swigregister = _IMP_kernel.TextInput_swigregister
685 TextInput_swigregister(TextInput)
687 class SetLogTarget(_RAII):
688 """Proxy of C++ IMP::SetLogTarget class"""
689 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
691 def __init__(self, *args):
693 __init__(IMP::SetLogTarget self) -> SetLogTarget
694 __init__(IMP::SetLogTarget self, TextOutput to) -> SetLogTarget
696 this = _IMP_kernel.new_SetLogTarget(*args)
698 self.this.append(this)
703 """set(SetLogTarget self, TextOutput to)"""
704 return _IMP_kernel.SetLogTarget_set(self, to)
708 """reset(SetLogTarget self)"""
709 return _IMP_kernel.SetLogTarget_reset(self)
711 __swig_destroy__ = _IMP_kernel.delete_SetLogTarget
712 __del__ =
lambda self:
None
714 def show(self, *args):
716 show(SetLogTarget self, _ostream out)
717 show(SetLogTarget self)
719 return _IMP_kernel.SetLogTarget_show(self, *args)
723 def __exit__(self, exc_type, exc_val, exc_tb):
729 """__str__(SetLogTarget self) -> std::string"""
730 return _IMP_kernel.SetLogTarget___str__(self)
734 """__repr__(SetLogTarget self) -> std::string"""
735 return _IMP_kernel.SetLogTarget___repr__(self)
737 SetLogTarget_swigregister = _IMP_kernel.SetLogTarget_swigregister
738 SetLogTarget_swigregister(SetLogTarget)
743 create_temporary_file(std::string prefix, std::string suffix) -> TextOutput
744 create_temporary_file(std::string prefix) -> TextOutput
745 create_temporary_file() -> TextOutput
747 return _IMP_kernel.create_temporary_file(*args)
751 create_temporary_file_name(std::string prefix, std::string suffix) -> std::string
752 create_temporary_file_name(std::string prefix) -> std::string
753 create_temporary_file_name() -> std::string
755 return _IMP_kernel.create_temporary_file_name(*args)
758 """get_relative_path(std::string base, std::string relative) -> std::string"""
759 return _IMP_kernel.get_relative_path(base, relative)
761 def push_log_context(functionname, object):
762 """push_log_context(char const * functionname, void const * object)"""
763 return _IMP_kernel.push_log_context(functionname, object)
765 def pop_log_context():
766 """pop_log_context()"""
767 return _IMP_kernel.pop_log_context()
771 add_to_log(std::string to_write)
772 add_to_log(IMP::LogLevel level, std::string to_write)
774 return _IMP_kernel.add_to_log(*args)
777 """set_log_level(IMP::LogLevel l)"""
778 return _IMP_kernel.set_log_level(l)
781 """set_log_timer(bool tb)"""
782 return _IMP_kernel.set_log_timer(tb)
785 """reset_log_timer()"""
786 return _IMP_kernel.reset_log_timer()
789 """get_log_level() -> IMP::LogLevel"""
790 return _IMP_kernel.get_log_level()
793 """set_progress_display(std::string description, unsigned int steps)"""
794 return _IMP_kernel.set_progress_display(description, steps)
798 add_to_progress_display(unsigned int step=1)
799 add_to_progress_display()
801 return _IMP_kernel.add_to_progress_display(step)
802 class Object(_NonCopyable):
803 """Proxy of C++ IMP::Object class"""
804 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
806 def __init__(self, name):
807 """__init__(IMP::Object self, std::string name) -> Object"""
808 if self.__class__ == Object:
812 this = _IMP_kernel.new_Object(_self, name)
814 self.this.append(this)
817 if self.__class__ != Object:
818 _director_objects.register(self)
822 __swig_destroy__ = _IMP_kernel.delete_Object
823 __del__ =
lambda self:
None
826 """__hash__(Object self) -> std::size_t"""
827 return _IMP_kernel.Object___hash__(self)
831 """set_log_level(Object self, IMP::LogLevel l)"""
832 return _IMP_kernel.Object_set_log_level(self, l)
836 """set_check_level(Object self, IMP::CheckLevel l)"""
837 return _IMP_kernel.Object_set_check_level(self, l)
841 """get_log_level(Object self) -> IMP::LogLevel"""
842 return _IMP_kernel.Object_get_log_level(self)
846 """get_check_level(Object self) -> IMP::CheckLevel"""
847 return _IMP_kernel.Object_get_check_level(self)
850 def get_version_info(self):
851 """get_version_info(Object self) -> VersionInfo"""
852 return _IMP_kernel.Object_get_version_info(self)
856 """get_name(Object self) -> std::string const &"""
857 return _IMP_kernel.Object_get_name(self)
860 def set_name(self, name):
861 """set_name(Object self, std::string name)"""
862 return _IMP_kernel.Object_set_name(self, name)
865 def get_type_name(self):
866 """get_type_name(Object self) -> std::string"""
867 return _IMP_kernel.Object_get_type_name(self)
870 def set_was_used(self, tf):
871 """set_was_used(Object self, bool tf)"""
872 return _IMP_kernel.Object_set_was_used(self, tf)
875 def show(self, *args):
877 show(Object self, _ostream out)
880 return _IMP_kernel.Object_show(self, *args)
883 def get_string(self):
884 """get_string(Object self) -> std::string"""
885 return _IMP_kernel.Object_get_string(self)
888 def _on_destruction(self):
889 """_on_destruction(Object self)"""
890 return _IMP_kernel.Object__on_destruction(self)
893 def get_is_valid(self):
894 """get_is_valid(Object self) -> bool"""
895 return _IMP_kernel.Object_get_is_valid(self)
898 def get_ref_count(self):
899 """get_ref_count(Object self) -> unsigned int"""
900 return _IMP_kernel.Object_get_ref_count(self)
903 def get_number_of_live_objects():
904 """get_number_of_live_objects() -> unsigned int"""
905 return _IMP_kernel.Object_get_number_of_live_objects()
907 get_number_of_live_objects = staticmethod(get_number_of_live_objects)
909 def get_is_shared(self):
910 """get_is_shared(Object self) -> bool"""
911 return _IMP_kernel.Object_get_is_shared(self)
914 def clear_caches(self):
915 """clear_caches(Object self)"""
916 return _IMP_kernel.Object_clear_caches(self)
919 def do_destroy(self):
920 """do_destroy(Object self)"""
921 return _IMP_kernel.Object_do_destroy(self)
925 """__eq__(Object self, Object o) -> bool"""
926 return _IMP_kernel.Object___eq__(self, o)
930 """__ne__(Object self, Object o) -> bool"""
931 return _IMP_kernel.Object___ne__(self, o)
935 """__le__(Object self, Object o) -> bool"""
936 return _IMP_kernel.Object___le__(self, o)
940 """__lt__(Object self, Object o) -> bool"""
941 return _IMP_kernel.Object___lt__(self, o)
945 """__ge__(Object self, Object o) -> bool"""
946 return _IMP_kernel.Object___ge__(self, o)
950 """__gt__(Object self, Object o) -> bool"""
951 return _IMP_kernel.Object___gt__(self, o)
955 """__str__(Object self) -> std::string"""
956 return _IMP_kernel.Object___str__(self)
960 """__repr__(Object self) -> std::string"""
961 return _IMP_kernel.Object___repr__(self)
964 return _object_cast_to_Object(o)
965 get_from = staticmethod(get_from)
967 def __disown__(self):
969 _IMP_kernel.disown_Object(self)
970 return weakref_proxy(self)
971 Object_swigregister = _IMP_kernel.Object_swigregister
972 Object_swigregister(Object)
974 def Object_get_number_of_live_objects():
975 """Object_get_number_of_live_objects() -> unsigned int"""
976 return _IMP_kernel.Object_get_number_of_live_objects()
978 class SetLogState(_RAII):
979 """Proxy of C++ IMP::SetLogState class"""
980 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
983 """reset(SetLogState self)"""
984 return _IMP_kernel.SetLogState_reset(self)
986 __swig_destroy__ = _IMP_kernel.delete_SetLogState
987 __del__ =
lambda self:
None
989 def show(self, *args):
991 show(SetLogState self, _ostream out)
992 show(SetLogState self)
994 return _IMP_kernel.SetLogState_show(self, *args)
997 def __init__(self, *args):
999 __init__(IMP::SetLogState self) -> SetLogState
1000 __init__(IMP::SetLogState self, Object o, IMP::LogLevel l) -> SetLogState
1001 __init__(IMP::SetLogState self, IMP::LogLevel l) -> SetLogState
1003 this = _IMP_kernel.new_SetLogState(*args)
1005 self.this.append(this)
1009 def set(self, *args):
1011 set(SetLogState self, Object o, IMP::LogLevel l)
1012 set(SetLogState self, IMP::LogLevel l)
1014 return _IMP_kernel.SetLogState_set(self, *args)
1016 def __enter__(self):
1018 def __exit__(self, exc_type, exc_val, exc_tb):
1024 """__str__(SetLogState self) -> std::string"""
1025 return _IMP_kernel.SetLogState___str__(self)
1029 """__repr__(SetLogState self) -> std::string"""
1030 return _IMP_kernel.SetLogState___repr__(self)
1032 SetLogState_swigregister = _IMP_kernel.SetLogState_swigregister
1033 SetLogState_swigregister(SetLogState)
1035 class WarningContext(object):
1036 """Proxy of C++ IMP::WarningContext class"""
1037 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1038 data_ = _swig_property(_IMP_kernel.WarningContext_data__get, _IMP_kernel.WarningContext_data__set)
1040 def add_warning(self, key, warning):
1041 """add_warning(WarningContext self, std::string key, std::string warning)"""
1042 return _IMP_kernel.WarningContext_add_warning(self, key, warning)
1045 def clear_warnings(self):
1046 """clear_warnings(WarningContext self)"""
1047 return _IMP_kernel.WarningContext_clear_warnings(self)
1050 def dump_warnings(self):
1051 """dump_warnings(WarningContext self)"""
1052 return _IMP_kernel.WarningContext_dump_warnings(self)
1054 __swig_destroy__ = _IMP_kernel.delete_WarningContext
1055 __del__ =
lambda self:
None
1057 def show(self, *args):
1059 show(WarningContext self, _ostream out)
1060 show(WarningContext self)
1062 return _IMP_kernel.WarningContext_show(self, *args)
1064 def __enter__(self):
1066 def __exit__(self, exc_type, exc_val, exc_tb):
1072 """__str__(WarningContext self) -> std::string"""
1073 return _IMP_kernel.WarningContext___str__(self)
1077 """__repr__(WarningContext self) -> std::string"""
1078 return _IMP_kernel.WarningContext___repr__(self)
1082 """__init__(IMP::WarningContext self) -> WarningContext"""
1083 this = _IMP_kernel.new_WarningContext()
1085 self.this.append(this)
1088 WarningContext_swigregister = _IMP_kernel.WarningContext_swigregister
1089 WarningContext_swigregister(WarningContext)
1091 class CreateLogContext(_RAII):
1092 """Proxy of C++ IMP::CreateLogContext class"""
1093 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1095 def __init__(self, *args):
1097 __init__(IMP::CreateLogContext self, std::string fname, Object object=None) -> CreateLogContext
1098 __init__(IMP::CreateLogContext self, std::string fname) -> CreateLogContext
1099 __init__(IMP::CreateLogContext self) -> CreateLogContext
1100 __init__(IMP::CreateLogContext self, char const * fname, Object object=None) -> CreateLogContext
1101 __init__(IMP::CreateLogContext self, char const * fname) -> CreateLogContext
1103 this = _IMP_kernel.new_CreateLogContext(*args)
1105 self.this.append(this)
1109 def set(self, fname, object=None):
1111 set(CreateLogContext self, char const * fname, Object object=None)
1112 set(CreateLogContext self, char const * fname)
1114 return _IMP_kernel.CreateLogContext_set(self, fname, object)
1118 """reset(CreateLogContext self)"""
1119 return _IMP_kernel.CreateLogContext_reset(self)
1121 __swig_destroy__ = _IMP_kernel.delete_CreateLogContext
1122 __del__ =
lambda self:
None
1124 def show(self, *args):
1126 show(CreateLogContext self, _ostream out)
1127 show(CreateLogContext self)
1129 return _IMP_kernel.CreateLogContext_show(self, *args)
1131 def __enter__(self):
1133 def __exit__(self, exc_type, exc_val, exc_tb):
1139 """__str__(CreateLogContext self) -> std::string"""
1140 return _IMP_kernel.CreateLogContext___str__(self)
1144 """__repr__(CreateLogContext self) -> std::string"""
1145 return _IMP_kernel.CreateLogContext___repr__(self)
1147 CreateLogContext_swigregister = _IMP_kernel.CreateLogContext_swigregister
1148 CreateLogContext_swigregister(CreateLogContext)
1150 class SetCheckState(_RAII):
1151 """Proxy of C++ IMP::SetCheckState class"""
1152 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1155 """reset(SetCheckState self)"""
1156 return _IMP_kernel.SetCheckState_reset(self)
1158 __swig_destroy__ = _IMP_kernel.delete_SetCheckState
1159 __del__ =
lambda self:
None
1161 def show(self, *args):
1163 show(SetCheckState self, _ostream out)
1164 show(SetCheckState self)
1166 return _IMP_kernel.SetCheckState_show(self, *args)
1169 def __init__(self, *args):
1171 __init__(IMP::SetCheckState self) -> SetCheckState
1172 __init__(IMP::SetCheckState self, Object o, IMP::CheckLevel l) -> SetCheckState
1173 __init__(IMP::SetCheckState self, IMP::CheckLevel l) -> SetCheckState
1175 this = _IMP_kernel.new_SetCheckState(*args)
1177 self.this.append(this)
1181 def set(self, *args):
1183 set(SetCheckState self, Object o, IMP::CheckLevel l)
1184 set(SetCheckState self, IMP::CheckLevel l)
1186 return _IMP_kernel.SetCheckState_set(self, *args)
1188 def __enter__(self):
1190 def __exit__(self, exc_type, exc_val, exc_tb):
1196 """__str__(SetCheckState self) -> std::string"""
1197 return _IMP_kernel.SetCheckState___str__(self)
1201 """__repr__(SetCheckState self) -> std::string"""
1202 return _IMP_kernel.SetCheckState___repr__(self)
1204 SetCheckState_swigregister = _IMP_kernel.SetCheckState_swigregister
1205 SetCheckState_swigregister(SetCheckState)
1209 """get_unique_name(std::string templ) -> std::string"""
1210 return _IMP_kernel.get_unique_name(templ)
1211 class _Protection(object):
1212 """Proxy of C++ IMP::internal::_Protection class"""
1213 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1215 def __init__(self, *args, **kwargs):
1216 raise AttributeError(
"No constructor defined")
1218 def show(self, *args):
1220 show(_Protection self, _ostream out)
1221 show(_Protection self)
1223 return _IMP_kernel._Protection_show(self, *args)
1227 """__str__(_Protection self) -> std::string"""
1228 return _IMP_kernel._Protection___str__(self)
1232 """__repr__(_Protection self) -> std::string"""
1233 return _IMP_kernel._Protection___repr__(self)
1235 __swig_destroy__ = _IMP_kernel.delete__Protection
1236 __del__ =
lambda self:
None
1237 _Protection_swigregister = _IMP_kernel._Protection_swigregister
1238 _Protection_swigregister(_Protection)
1243 return _IMP_kernel._test_log()
1245 def _test_intranges(ips):
1246 """_test_intranges(IMP::IntRanges const & ips) -> int"""
1247 return _IMP_kernel._test_intranges(ips)
1249 def _test_intrange(*args):
1251 _test_intrange(IMP::IntRange const & ips) -> IMP::IntRange
1252 _test_intrange() -> IMP::IntRange
1254 return _IMP_kernel._test_intrange(*args)
1257 """_test_ifile(TextInput a) -> std::string"""
1258 return _IMP_kernel._test_ifile(a)
1261 """_test_ofile(TextOutput a) -> std::string"""
1262 return _IMP_kernel._test_ofile(a)
1264 def _test_ifile_overloaded(*args):
1266 _test_ifile_overloaded(TextInput a, int i) -> std::string
1267 _test_ifile_overloaded(TextInput a, std::string st) -> std::string
1269 return _IMP_kernel._test_ifile_overloaded(*args)
1271 def _test_ofile_overloaded(*args):
1273 _test_ofile_overloaded(TextOutput a, int i) -> std::string
1274 _test_ofile_overloaded(TextOutput a, std::string st) -> std::string
1276 return _IMP_kernel._test_ofile_overloaded(*args)
1277 class _TestValue(object):
1278 """Proxy of C++ IMP::internal::_TestValue class"""
1279 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1281 def __init__(self, i):
1282 """__init__(IMP::internal::_TestValue self, int i) -> _TestValue"""
1283 this = _IMP_kernel.new__TestValue(i)
1285 self.this.append(this)
1289 def show(self, *args):
1291 show(_TestValue self, _ostream out)
1292 show(_TestValue self)
1294 return _IMP_kernel._TestValue_show(self, *args)
1297 def __cmp__(self, o):
1298 """__cmp__(_TestValue self, _TestValue o) -> int"""
1299 return _IMP_kernel._TestValue___cmp__(self, o)
1302 def __eq__(self, o):
1303 """__eq__(_TestValue self, _TestValue o) -> bool"""
1304 return _IMP_kernel._TestValue___eq__(self, o)
1307 def __ne__(self, o):
1308 """__ne__(_TestValue self, _TestValue o) -> bool"""
1309 return _IMP_kernel._TestValue___ne__(self, o)
1312 def __lt__(self, o):
1313 """__lt__(_TestValue self, _TestValue o) -> bool"""
1314 return _IMP_kernel._TestValue___lt__(self, o)
1317 def __gt__(self, o):
1318 """__gt__(_TestValue self, _TestValue o) -> bool"""
1319 return _IMP_kernel._TestValue___gt__(self, o)
1322 def __ge__(self, o):
1323 """__ge__(_TestValue self, _TestValue o) -> bool"""
1324 return _IMP_kernel._TestValue___ge__(self, o)
1327 def __le__(self, o):
1328 """__le__(_TestValue self, _TestValue o) -> bool"""
1329 return _IMP_kernel._TestValue___le__(self, o)
1333 """get(_TestValue self) -> int"""
1334 return _IMP_kernel._TestValue_get(self)
1337 def get_float(self):
1338 """get_float(_TestValue self) -> float const &"""
1339 return _IMP_kernel._TestValue_get_float(self)
1342 def get_double(self):
1343 """get_double(_TestValue self) -> double const &"""
1344 return _IMP_kernel._TestValue_get_double(self)
1347 def get_Float(self):
1348 """get_Float(_TestValue self) -> IMP::Float const &"""
1349 return _IMP_kernel._TestValue_get_Float(self)
1353 """get_int(_TestValue self) -> int const &"""
1354 return _IMP_kernel._TestValue_get_int(self)
1358 """get_Int(_TestValue self) -> IMP::Int const &"""
1359 return _IMP_kernel._TestValue_get_Int(self)
1362 def get_string(self):
1363 """get_string(_TestValue self) -> std::string const &"""
1364 return _IMP_kernel._TestValue_get_string(self)
1367 def get_String(self):
1368 """get_String(_TestValue self) -> IMP::String const &"""
1369 return _IMP_kernel._TestValue_get_String(self)
1373 """__str__(_TestValue self) -> std::string"""
1374 return _IMP_kernel._TestValue___str__(self)
1378 """__repr__(_TestValue self) -> std::string"""
1379 return _IMP_kernel._TestValue___repr__(self)
1381 __swig_destroy__ = _IMP_kernel.delete__TestValue
1382 __del__ =
lambda self:
None
1383 _TestValue_swigregister = _IMP_kernel._TestValue_swigregister
1384 _TestValue_swigregister(_TestValue)
1387 def _pass_plain_pair(p):
1388 """_pass_plain_pair(IMP::FloatPair p) -> IMP::FloatPair"""
1389 return _IMP_kernel._pass_plain_pair(p)
1391 def _pass_overloaded_strings(*args):
1393 _pass_overloaded_strings(IMP::Strings const & a, int arg2) -> IMP::Strings
1394 _pass_overloaded_strings(IMP::Strings const & a) -> IMP::Strings
1396 return _IMP_kernel._pass_overloaded_strings(*args)
1399 """_pass_pair(IMP::DerivativePair const & p) -> IMP::DerivativePair"""
1400 return _IMP_kernel._pass_pair(p)
1402 def _pass_floats(input):
1403 """_pass_floats(IMP::Floats const & input) -> IMP::Floats"""
1404 return _IMP_kernel._pass_floats(input)
1406 def _pass_ints(input):
1407 """_pass_ints(IMP::Ints input) -> IMP::Ints"""
1408 return _IMP_kernel._pass_ints(input)
1410 def _pass_ints_list(input):
1411 """_pass_ints_list(IMP::IntsList const & input) -> IMP::IntsList"""
1412 return _IMP_kernel._pass_ints_list(input)
1414 def _pass_ints_lists(input):
1415 """_pass_ints_lists(IMP::IntsLists const & input) -> IMP::IntsLists"""
1416 return _IMP_kernel._pass_ints_lists(input)
1418 def _pass_strings(input):
1419 """_pass_strings(IMP::Strings const & input) -> IMP::Strings const &"""
1420 return _IMP_kernel._pass_strings(input)
1421 class _TestObject(Object):
1422 """Proxy of C++ IMP::internal::_TestObject class"""
1423 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1426 """__init__(IMP::internal::_TestObject self) -> _TestObject"""
1427 this = _IMP_kernel.new__TestObject()
1429 self.this.append(this)
1433 def get_version_info(self):
1434 """get_version_info(_TestObject self) -> VersionInfo"""
1435 return _IMP_kernel._TestObject_get_version_info(self)
1439 """__str__(_TestObject self) -> std::string"""
1440 return _IMP_kernel._TestObject___str__(self)
1444 """__repr__(_TestObject self) -> std::string"""
1445 return _IMP_kernel._TestObject___repr__(self)
1448 return _object_cast_to__TestObject(o)
1449 get_from = staticmethod(get_from)
1451 _TestObject_swigregister = _IMP_kernel._TestObject_swigregister
1452 _TestObject_swigregister(_TestObject)
1456 """get_live_object_names() -> IMP::Strings"""
1457 return _IMP_kernel.get_live_object_names()
1460 """get_live_objects() -> IMP::Objects"""
1461 return _IMP_kernel.get_live_objects()
1464 """set_show_leaked_objects(bool tf)"""
1465 return _IMP_kernel.set_show_leaked_objects(tf)
1468 """set_deprecation_warnings(bool tf)"""
1469 return _IMP_kernel.set_deprecation_warnings(tf)
1472 """set_deprecation_exceptions(bool tf)"""
1473 return _IMP_kernel.set_deprecation_exceptions(tf)
1476 """get_deprecation_exceptions() -> bool"""
1477 return _IMP_kernel.get_deprecation_exceptions()
1480 """handle_use_deprecated(std::string message)"""
1481 return _IMP_kernel.handle_use_deprecated(message)
1484 """get_number_of_threads() -> unsigned int"""
1485 return _IMP_kernel.get_number_of_threads()
1488 """set_number_of_threads(unsigned int n)"""
1489 return _IMP_kernel.set_number_of_threads(n)
1490 class SetNumberOfThreads(_RAII):
1491 """Proxy of C++ IMP::SetNumberOfThreads class"""
1492 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1494 def __init__(self, *args):
1496 __init__(IMP::SetNumberOfThreads self) -> SetNumberOfThreads
1497 __init__(IMP::SetNumberOfThreads self, unsigned int n) -> SetNumberOfThreads
1499 this = _IMP_kernel.new_SetNumberOfThreads(*args)
1501 self.this.append(this)
1506 """set(SetNumberOfThreads self, unsigned int n)"""
1507 return _IMP_kernel.SetNumberOfThreads_set(self, n)
1511 """reset(SetNumberOfThreads self)"""
1512 return _IMP_kernel.SetNumberOfThreads_reset(self)
1514 __swig_destroy__ = _IMP_kernel.delete_SetNumberOfThreads
1515 __del__ =
lambda self:
None
1517 def show(self, *args):
1519 show(SetNumberOfThreads self, _ostream out)
1520 show(SetNumberOfThreads self)
1522 return _IMP_kernel.SetNumberOfThreads_show(self, *args)
1524 def __enter__(self):
1526 def __exit__(self, exc_type, exc_val, exc_tb):
1532 """__str__(SetNumberOfThreads self) -> std::string"""
1533 return _IMP_kernel.SetNumberOfThreads___str__(self)
1537 """__repr__(SetNumberOfThreads self) -> std::string"""
1538 return _IMP_kernel.SetNumberOfThreads___repr__(self)
1540 SetNumberOfThreads_swigregister = _IMP_kernel.SetNumberOfThreads_swigregister
1541 SetNumberOfThreads_swigregister(SetNumberOfThreads)
1545 """clear_statistics()"""
1546 return _IMP_kernel.clear_statistics()
1549 """show_timings(TextOutput out)"""
1550 return _IMP_kernel.show_timings(out)
1552 """Proxy of C++ IMP::Timer class"""
1553 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1554 __repr__ = _swig_repr
1556 def __init__(self, *args):
1558 __init__(IMP::Timer self, Object object, std::string const & operation) -> Timer
1559 __init__(IMP::Timer self, Object object, char const * operation) -> Timer
1560 __init__(IMP::Timer self, std::string operation) -> Timer
1562 this = _IMP_kernel.new_Timer(*args)
1564 self.this.append(this)
1567 __swig_destroy__ = _IMP_kernel.delete_Timer
1568 __del__ =
lambda self:
None
1569 Timer_swigregister = _IMP_kernel.Timer_swigregister
1570 Timer_swigregister(Timer)
1574 """set_statistics_level(IMP::StatisticsLevel l)"""
1575 return _IMP_kernel.set_statistics_level(l)
1580 base = kernel = __import__(
'IMP')
1583 i_m_p=
"IMP_MODULE_PATH"
1584 if i_m_p
in os.environ.keys():
1585 __path__.insert(0, os.environ[i_m_p])
1587 def _forward_add_attribute(self, name, value, opt=None):
1589 self.get_particle().add_attribute(name, value, opt)
1591 self.get_particle().add_attribute(name, value)
1592 def _forward_get_value(self, name):
1593 self.get_particle().get_value(name)
1594 def _forward_set_value(self, name, value):
1595 self.get_particle().set_value(name, value)
1599 _object_types.append(
"Constraint")
1602 def _object_cast_to_Constraint(o):
1603 """_object_cast_to_Constraint(Object o) -> Constraint"""
1604 return _IMP_kernel._object_cast_to_Constraint(o)
1605 _object_types.append(
"Undecorator")
1608 def _object_cast_to_Undecorator(o):
1609 """_object_cast_to_Undecorator(Object o) -> Undecorator"""
1610 return _IMP_kernel._object_cast_to_Undecorator(o)
1611 _object_types.append(
"Container")
1614 def _object_cast_to_Container(o):
1615 """_object_cast_to_Container(Object o) -> Container"""
1616 return _IMP_kernel._object_cast_to_Container(o)
1617 _object_types.append(
"Optimizer")
1620 def _object_cast_to_Optimizer(o):
1621 """_object_cast_to_Optimizer(Object o) -> Optimizer"""
1622 return _IMP_kernel._object_cast_to_Optimizer(o)
1623 _object_types.append(
"AttributeOptimizer")
1626 def _object_cast_to_AttributeOptimizer(o):
1627 """_object_cast_to_AttributeOptimizer(Object o) -> AttributeOptimizer"""
1628 return _IMP_kernel._object_cast_to_AttributeOptimizer(o)
1629 _object_types.append(
"OptimizerState")
1632 def _object_cast_to_OptimizerState(o):
1633 """_object_cast_to_OptimizerState(Object o) -> OptimizerState"""
1634 return _IMP_kernel._object_cast_to_OptimizerState(o)
1635 _object_types.append(
"PairContainer")
1638 def _object_cast_to_PairContainer(o):
1639 """_object_cast_to_PairContainer(Object o) -> PairContainer"""
1640 return _IMP_kernel._object_cast_to_PairContainer(o)
1641 _object_types.append(
"PairModifier")
1644 def _object_cast_to_PairModifier(o):
1645 """_object_cast_to_PairModifier(Object o) -> PairModifier"""
1646 return _IMP_kernel._object_cast_to_PairModifier(o)
1647 _object_types.append(
"PairScore")
1650 def _object_cast_to_PairScore(o):
1651 """_object_cast_to_PairScore(Object o) -> PairScore"""
1652 return _IMP_kernel._object_cast_to_PairScore(o)
1653 _object_types.append(
"QuadContainer")
1656 def _object_cast_to_QuadContainer(o):
1657 """_object_cast_to_QuadContainer(Object o) -> QuadContainer"""
1658 return _IMP_kernel._object_cast_to_QuadContainer(o)
1659 _object_types.append(
"QuadModifier")
1662 def _object_cast_to_QuadModifier(o):
1663 """_object_cast_to_QuadModifier(Object o) -> QuadModifier"""
1664 return _IMP_kernel._object_cast_to_QuadModifier(o)
1665 _object_types.append(
"QuadScore")
1668 def _object_cast_to_QuadScore(o):
1669 """_object_cast_to_QuadScore(Object o) -> QuadScore"""
1670 return _IMP_kernel._object_cast_to_QuadScore(o)
1671 _object_types.append(
"Refiner")
1674 def _object_cast_to_Refiner(o):
1675 """_object_cast_to_Refiner(Object o) -> Refiner"""
1676 return _IMP_kernel._object_cast_to_Refiner(o)
1677 _object_types.append(
"Restraint")
1680 def _object_cast_to_Restraint(o):
1681 """_object_cast_to_Restraint(Object o) -> Restraint"""
1682 return _IMP_kernel._object_cast_to_Restraint(o)
1683 _object_types.append(
"Sampler")
1686 def _object_cast_to_Sampler(o):
1687 """_object_cast_to_Sampler(Object o) -> Sampler"""
1688 return _IMP_kernel._object_cast_to_Sampler(o)
1689 _object_types.append(
"ScoreState")
1692 def _object_cast_to_ScoreState(o):
1693 """_object_cast_to_ScoreState(Object o) -> ScoreState"""
1694 return _IMP_kernel._object_cast_to_ScoreState(o)
1695 _object_types.append(
"SingletonContainer")
1698 def _object_cast_to_SingletonContainer(o):
1699 """_object_cast_to_SingletonContainer(Object o) -> SingletonContainer"""
1700 return _IMP_kernel._object_cast_to_SingletonContainer(o)
1701 _object_types.append(
"SingletonModifier")
1704 def _object_cast_to_SingletonModifier(o):
1705 """_object_cast_to_SingletonModifier(Object o) -> SingletonModifier"""
1706 return _IMP_kernel._object_cast_to_SingletonModifier(o)
1707 _object_types.append(
"SingletonScore")
1710 def _object_cast_to_SingletonScore(o):
1711 """_object_cast_to_SingletonScore(Object o) -> SingletonScore"""
1712 return _IMP_kernel._object_cast_to_SingletonScore(o)
1713 _object_types.append(
"TripletContainer")
1716 def _object_cast_to_TripletContainer(o):
1717 """_object_cast_to_TripletContainer(Object o) -> TripletContainer"""
1718 return _IMP_kernel._object_cast_to_TripletContainer(o)
1719 _object_types.append(
"TripletModifier")
1722 def _object_cast_to_TripletModifier(o):
1723 """_object_cast_to_TripletModifier(Object o) -> TripletModifier"""
1724 return _IMP_kernel._object_cast_to_TripletModifier(o)
1725 _object_types.append(
"TripletScore")
1728 def _object_cast_to_TripletScore(o):
1729 """_object_cast_to_TripletScore(Object o) -> TripletScore"""
1730 return _IMP_kernel._object_cast_to_TripletScore(o)
1731 _object_types.append(
"UnaryFunction")
1734 def _object_cast_to_UnaryFunction(o):
1735 """_object_cast_to_UnaryFunction(Object o) -> UnaryFunction"""
1736 return _IMP_kernel._object_cast_to_UnaryFunction(o)
1737 _object_types.append(
"ConfigurationSet")
1740 def _object_cast_to_ConfigurationSet(o):
1741 """_object_cast_to_ConfigurationSet(Object o) -> ConfigurationSet"""
1742 return _IMP_kernel._object_cast_to_ConfigurationSet(o)
1743 _object_types.append(
"Configuration")
1746 def _object_cast_to_Configuration(o):
1747 """_object_cast_to_Configuration(Object o) -> Configuration"""
1748 return _IMP_kernel._object_cast_to_Configuration(o)
1749 _object_types.append(
"Model")
1752 def _object_cast_to_Model(o):
1753 """_object_cast_to_Model(Object o) -> Model"""
1754 return _IMP_kernel._object_cast_to_Model(o)
1755 _object_types.append(
"Particle")
1758 def _object_cast_to_Particle(o):
1759 """_object_cast_to_Particle(Object o) -> Particle"""
1760 return _IMP_kernel._object_cast_to_Particle(o)
1761 _object_types.append(
"RestraintSet")
1764 def _object_cast_to_RestraintSet(o):
1765 """_object_cast_to_RestraintSet(Object o) -> RestraintSet"""
1766 return _IMP_kernel._object_cast_to_RestraintSet(o)
1767 ParticlePairsTemp=list
1768 _plural_types.append(
"ParticlePairsTemp")
1769 _value_types.append(
"ParticlePair")
1771 ParticleTripletsTemp=list
1772 _plural_types.append(
"ParticleTripletsTemp")
1773 _value_types.append(
"ParticleTriplet")
1775 ParticleQuadsTemp=list
1776 _plural_types.append(
"ParticleQuadsTemp")
1777 _value_types.append(
"ParticleQuad")
1779 ParticleIndexPairs=list
1780 _plural_types.append(
"ParticleIndexPairs")
1781 _value_types.append(
"ParticleIndexPair")
1783 ParticleIndexTriplets=list
1784 _plural_types.append(
"ParticleIndexTriplets")
1785 _value_types.append(
"ParticleIndexTriplet")
1787 ParticleIndexQuads=list
1788 _plural_types.append(
"ParticleIndexQuads")
1789 _value_types.append(
"ParticleIndexQuad")
1791 _object_types.append(
"SingletonPredicate")
1794 def _object_cast_to_SingletonPredicate(o):
1795 """_object_cast_to_SingletonPredicate(Object o) -> SingletonPredicate"""
1796 return _IMP_kernel._object_cast_to_SingletonPredicate(o)
1797 _object_types.append(
"PairPredicate")
1800 def _object_cast_to_PairPredicate(o):
1801 """_object_cast_to_PairPredicate(Object o) -> PairPredicate"""
1802 return _IMP_kernel._object_cast_to_PairPredicate(o)
1803 _object_types.append(
"TripletPredicate")
1806 def _object_cast_to_TripletPredicate(o):
1807 """_object_cast_to_TripletPredicate(Object o) -> TripletPredicate"""
1808 return _IMP_kernel._object_cast_to_TripletPredicate(o)
1809 _object_types.append(
"QuadPredicate")
1812 def _object_cast_to_QuadPredicate(o):
1813 """_object_cast_to_QuadPredicate(Object o) -> QuadPredicate"""
1814 return _IMP_kernel._object_cast_to_QuadPredicate(o)
1815 _object_types.append(
"SaveToConfigurationSetOptimizerState")
1818 def _object_cast_to_SaveToConfigurationSetOptimizerState(o):
1819 """_object_cast_to_SaveToConfigurationSetOptimizerState(Object o) -> SaveToConfigurationSetOptimizerState"""
1820 return _IMP_kernel._object_cast_to_SaveToConfigurationSetOptimizerState(o)
1821 EvaluationStates=list
1822 _plural_types.append(
"EvaluationStates")
1823 _value_types.append(
"EvaluationState")
1825 ScoreAccumulators=list
1826 _plural_types.append(
"ScoreAccumulators")
1827 _value_types.append(
"ScoreAccumulator")
1829 ParticleIndexes=list
1830 _plural_types.append(
"ParticleIndexes")
1831 _value_types.append(
"ParticleIndex")
1834 _plural_types.append(
"FloatIndexes")
1835 _value_types.append(
"FloatIndex")
1838 _plural_types.append(
"FloatKeys")
1839 _value_types.append(
"FloatKey")
1842 _plural_types.append(
"IntKeys")
1843 _value_types.append(
"IntKey")
1846 _plural_types.append(
"StringKeys")
1847 _value_types.append(
"StringKey")
1849 ParticleIndexKeys=list
1850 _plural_types.append(
"ParticleIndexKeys")
1851 _value_types.append(
"ParticleIndexKey")
1853 ParticleIndexesKeys=list
1854 _plural_types.append(
"ParticleIndexesKeys")
1855 _value_types.append(
"ParticleIndexesKey")
1858 _plural_types.append(
"ObjectKeys")
1859 _value_types.append(
"ObjectKey")
1862 _plural_types.append(
"ModelKeys")
1863 _value_types.append(
"ModelKey")
1865 _raii_types.append(
"ScopedSetFloatAttribute")
1867 _object_types.append(
"ScoringFunction")
1870 def _object_cast_to_ScoringFunction(o):
1871 """_object_cast_to_ScoringFunction(Object o) -> ScoringFunction"""
1872 return _IMP_kernel._object_cast_to_ScoringFunction(o)
1873 _object_types.append(
"ModelObject")
1876 def _object_cast_to_ModelObject(o):
1877 """_object_cast_to_ModelObject(Object o) -> ModelObject"""
1878 return _IMP_kernel._object_cast_to_ModelObject(o)
1879 def _TrivialDecorators(l=[]):
1880 return [_TrivialDecorator(x)
for x
in l]
1881 _plural_types.append(
"_TrivialDecorators")
1883 _value_types.append(
"_TrivialDecorator")
1885 def _TrivialDerivedDecorators(l=[]):
1886 return [_TrivialDerivedDecorator(x)
for x
in l]
1887 _plural_types.append(
"_TrivialDerivedDecorators")
1889 _value_types.append(
"_TrivialDerivedDecorator")
1891 def _TrivialTraitsDecorators(l=[]):
1892 return [_TrivialTraitsDecorator(x)
for x
in l]
1893 _plural_types.append(
"_TrivialTraitsDecorators")
1895 _value_types.append(
"_TrivialTraitsDecorator")
1897 _object_types.append(
"_ConstRestraint")
1900 def _object_cast_to__ConstRestraint(o):
1901 """_object_cast_to__ConstRestraint(Object o) -> _ConstRestraint"""
1902 return _IMP_kernel._object_cast_to__ConstRestraint(o)
1903 _object_types.append(
"_ConstOptimizer")
1906 def _object_cast_to__ConstOptimizer(o):
1907 """_object_cast_to__ConstOptimizer(Object o) -> _ConstOptimizer"""
1908 return _IMP_kernel._object_cast_to__ConstOptimizer(o)
1910 """Proxy of C++ IMP::internal::BoostDigraph<(IMP::DependencyGraph,p.IMP::ModelObject,IMP::ShowDependencyGraphVertex)> class"""
1911 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1912 __repr__ = _swig_repr
1915 """__init__(IMP::internal::BoostDigraph<(IMP::DependencyGraph,p.IMP::ModelObject,IMP::ShowDependencyGraphVertex)> self) -> DependencyGraph"""
1916 this = _IMP_kernel.new_DependencyGraph()
1918 self.this.append(this)
1922 def get_graph(self):
1923 """get_graph(DependencyGraph self) -> IMP::DependencyGraph const &"""
1924 return _IMP_kernel.DependencyGraph_get_graph(self)
1928 """get_vertices(DependencyGraph self) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptors"""
1929 return _IMP_kernel.DependencyGraph_get_vertices(self)
1932 def get_vertex_name(self, i):
1933 """get_vertex_name(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor i) -> ModelObject"""
1934 return _IMP_kernel.DependencyGraph_get_vertex_name(self, i)
1937 def get_in_neighbors(self, v):
1938 """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"""
1939 return _IMP_kernel.DependencyGraph_get_in_neighbors(self, v)
1942 def get_out_neighbors(self, v):
1943 """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"""
1944 return _IMP_kernel.DependencyGraph_get_out_neighbors(self, v)
1949 show_graphviz(DependencyGraph self, _ostream out)
1950 show_graphviz(DependencyGraph self)
1952 return _IMP_kernel.DependencyGraph_show_graphviz(self, *args)
1955 def get_graphviz_string(self):
1956 """get_graphviz_string(DependencyGraph self) -> std::string"""
1957 return _IMP_kernel.DependencyGraph_get_graphviz_string(self)
1960 def add_edge(self, v0, v1):
1961 """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)"""
1962 return _IMP_kernel.DependencyGraph_add_edge(self, v0, v1)
1965 def add_vertex(self, l):
1966 """add_vertex(DependencyGraph self, ModelObject l) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor"""
1967 return _IMP_kernel.DependencyGraph_add_vertex(self, l)
1970 def remove_vertex(self, l):
1971 """remove_vertex(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor l)"""
1972 return _IMP_kernel.DependencyGraph_remove_vertex(self, l)
1974 __swig_destroy__ = _IMP_kernel.delete_DependencyGraph
1975 __del__ =
lambda self:
None
1976 DependencyGraph_swigregister = _IMP_kernel.DependencyGraph_swigregister
1977 DependencyGraph_swigregister(DependencyGraph)
1979 _value_types.append(
"DependencyGraph")
1982 """Proxy of C++ IMP::Key<(0,true)> class"""
1983 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1985 def __init__(self, *args):
1987 __init__(IMP::Key<(0,true)> self) -> FloatKey
1988 __init__(IMP::Key<(0,true)> self, std::string c) -> FloatKey
1989 __init__(IMP::Key<(0,true)> self, unsigned int i) -> FloatKey
1991 this = _IMP_kernel.new_FloatKey(*args)
1993 self.this.append(this)
1998 """add_key(std::string sc) -> unsigned int"""
1999 return _IMP_kernel.FloatKey_add_key(sc)
2001 add_key = staticmethod(add_key)
2003 def get_key_exists(sc):
2004 """get_key_exists(std::string sc) -> bool"""
2005 return _IMP_kernel.FloatKey_get_key_exists(sc)
2007 get_key_exists = staticmethod(get_key_exists)
2009 def get_string(self):
2010 """get_string(FloatKey self) -> std::string const"""
2011 return _IMP_kernel.FloatKey_get_string(self)
2014 def __cmp__(self, o):
2015 """__cmp__(FloatKey self, FloatKey o) -> int"""
2016 return _IMP_kernel.FloatKey___cmp__(self, o)
2019 def __eq__(self, o):
2020 """__eq__(FloatKey self, FloatKey o) -> bool"""
2021 return _IMP_kernel.FloatKey___eq__(self, o)
2024 def __ne__(self, o):
2025 """__ne__(FloatKey self, FloatKey o) -> bool"""
2026 return _IMP_kernel.FloatKey___ne__(self, o)
2029 def __lt__(self, o):
2030 """__lt__(FloatKey self, FloatKey o) -> bool"""
2031 return _IMP_kernel.FloatKey___lt__(self, o)
2034 def __gt__(self, o):
2035 """__gt__(FloatKey self, FloatKey o) -> bool"""
2036 return _IMP_kernel.FloatKey___gt__(self, o)
2039 def __ge__(self, o):
2040 """__ge__(FloatKey self, FloatKey o) -> bool"""
2041 return _IMP_kernel.FloatKey___ge__(self, o)
2044 def __le__(self, o):
2045 """__le__(FloatKey self, FloatKey o) -> bool"""
2046 return _IMP_kernel.FloatKey___le__(self, o)
2050 """__hash__(FloatKey self) -> std::size_t"""
2051 return _IMP_kernel.FloatKey___hash__(self)
2054 def show(self, *args):
2056 show(FloatKey self, _ostream out)
2059 return _IMP_kernel.FloatKey_show(self, *args)
2062 def add_alias(old_key, new_name):
2063 """add_alias(FloatKey old_key, std::string new_name) -> FloatKey"""
2064 return _IMP_kernel.FloatKey_add_alias(old_key, new_name)
2066 add_alias = staticmethod(add_alias)
2069 """get_index(FloatKey self) -> unsigned int"""
2070 return _IMP_kernel.FloatKey_get_index(self)
2074 """show_all(_ostream out)"""
2075 return _IMP_kernel.FloatKey_show_all(out)
2077 show_all = staticmethod(show_all)
2079 def get_all_strings():
2080 """get_all_strings() -> IMP::Vector< std::string >"""
2081 return _IMP_kernel.FloatKey_get_all_strings()
2083 get_all_strings = staticmethod(get_all_strings)
2085 def get_number_unique():
2086 """get_number_unique() -> unsigned int"""
2087 return _IMP_kernel.FloatKey_get_number_unique()
2089 get_number_unique = staticmethod(get_number_unique)
2092 """__str__(FloatKey self) -> std::string"""
2093 return _IMP_kernel.FloatKey___str__(self)
2097 """__repr__(FloatKey self) -> std::string"""
2098 return _IMP_kernel.FloatKey___repr__(self)
2100 __swig_destroy__ = _IMP_kernel.delete_FloatKey
2101 __del__ =
lambda self:
None
2102 FloatKey_swigregister = _IMP_kernel.FloatKey_swigregister
2103 FloatKey_swigregister(FloatKey)
2105 def FloatKey_add_key(sc):
2106 """FloatKey_add_key(std::string sc) -> unsigned int"""
2107 return _IMP_kernel.FloatKey_add_key(sc)
2109 def FloatKey_get_key_exists(sc):
2110 """FloatKey_get_key_exists(std::string sc) -> bool"""
2111 return _IMP_kernel.FloatKey_get_key_exists(sc)
2113 def FloatKey_add_alias(old_key, new_name):
2114 """FloatKey_add_alias(FloatKey old_key, std::string new_name) -> FloatKey"""
2115 return _IMP_kernel.FloatKey_add_alias(old_key, new_name)
2117 def FloatKey_show_all(out):
2118 """FloatKey_show_all(_ostream out)"""
2119 return _IMP_kernel.FloatKey_show_all(out)
2121 def FloatKey_get_all_strings():
2122 """FloatKey_get_all_strings() -> IMP::Vector< std::string >"""
2123 return _IMP_kernel.FloatKey_get_all_strings()
2125 def FloatKey_get_number_unique():
2126 """FloatKey_get_number_unique() -> unsigned int"""
2127 return _IMP_kernel.FloatKey_get_number_unique()
2130 """Proxy of C++ IMP::Key<(1,true)> class"""
2131 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2133 def __init__(self, *args):
2135 __init__(IMP::Key<(1,true)> self) -> IntKey
2136 __init__(IMP::Key<(1,true)> self, std::string c) -> IntKey
2137 __init__(IMP::Key<(1,true)> self, unsigned int i) -> IntKey
2139 this = _IMP_kernel.new_IntKey(*args)
2141 self.this.append(this)
2146 """add_key(std::string sc) -> unsigned int"""
2147 return _IMP_kernel.IntKey_add_key(sc)
2149 add_key = staticmethod(add_key)
2151 def get_key_exists(sc):
2152 """get_key_exists(std::string sc) -> bool"""
2153 return _IMP_kernel.IntKey_get_key_exists(sc)
2155 get_key_exists = staticmethod(get_key_exists)
2157 def get_string(self):
2158 """get_string(IntKey self) -> std::string const"""
2159 return _IMP_kernel.IntKey_get_string(self)
2162 def __cmp__(self, o):
2163 """__cmp__(IntKey self, IntKey o) -> int"""
2164 return _IMP_kernel.IntKey___cmp__(self, o)
2167 def __eq__(self, o):
2168 """__eq__(IntKey self, IntKey o) -> bool"""
2169 return _IMP_kernel.IntKey___eq__(self, o)
2172 def __ne__(self, o):
2173 """__ne__(IntKey self, IntKey o) -> bool"""
2174 return _IMP_kernel.IntKey___ne__(self, o)
2177 def __lt__(self, o):
2178 """__lt__(IntKey self, IntKey o) -> bool"""
2179 return _IMP_kernel.IntKey___lt__(self, o)
2182 def __gt__(self, o):
2183 """__gt__(IntKey self, IntKey o) -> bool"""
2184 return _IMP_kernel.IntKey___gt__(self, o)
2187 def __ge__(self, o):
2188 """__ge__(IntKey self, IntKey o) -> bool"""
2189 return _IMP_kernel.IntKey___ge__(self, o)
2192 def __le__(self, o):
2193 """__le__(IntKey self, IntKey o) -> bool"""
2194 return _IMP_kernel.IntKey___le__(self, o)
2198 """__hash__(IntKey self) -> std::size_t"""
2199 return _IMP_kernel.IntKey___hash__(self)
2202 def show(self, *args):
2204 show(IntKey self, _ostream out)
2207 return _IMP_kernel.IntKey_show(self, *args)
2210 def add_alias(old_key, new_name):
2211 """add_alias(IntKey old_key, std::string new_name) -> IntKey"""
2212 return _IMP_kernel.IntKey_add_alias(old_key, new_name)
2214 add_alias = staticmethod(add_alias)
2217 """get_index(IntKey self) -> unsigned int"""
2218 return _IMP_kernel.IntKey_get_index(self)
2222 """show_all(_ostream out)"""
2223 return _IMP_kernel.IntKey_show_all(out)
2225 show_all = staticmethod(show_all)
2227 def get_all_strings():
2228 """get_all_strings() -> IMP::Vector< std::string >"""
2229 return _IMP_kernel.IntKey_get_all_strings()
2231 get_all_strings = staticmethod(get_all_strings)
2233 def get_number_unique():
2234 """get_number_unique() -> unsigned int"""
2235 return _IMP_kernel.IntKey_get_number_unique()
2237 get_number_unique = staticmethod(get_number_unique)
2240 """__str__(IntKey self) -> std::string"""
2241 return _IMP_kernel.IntKey___str__(self)
2245 """__repr__(IntKey self) -> std::string"""
2246 return _IMP_kernel.IntKey___repr__(self)
2248 __swig_destroy__ = _IMP_kernel.delete_IntKey
2249 __del__ =
lambda self:
None
2250 IntKey_swigregister = _IMP_kernel.IntKey_swigregister
2251 IntKey_swigregister(IntKey)
2253 def IntKey_add_key(sc):
2254 """IntKey_add_key(std::string sc) -> unsigned int"""
2255 return _IMP_kernel.IntKey_add_key(sc)
2257 def IntKey_get_key_exists(sc):
2258 """IntKey_get_key_exists(std::string sc) -> bool"""
2259 return _IMP_kernel.IntKey_get_key_exists(sc)
2261 def IntKey_add_alias(old_key, new_name):
2262 """IntKey_add_alias(IntKey old_key, std::string new_name) -> IntKey"""
2263 return _IMP_kernel.IntKey_add_alias(old_key, new_name)
2265 def IntKey_show_all(out):
2266 """IntKey_show_all(_ostream out)"""
2267 return _IMP_kernel.IntKey_show_all(out)
2269 def IntKey_get_all_strings():
2270 """IntKey_get_all_strings() -> IMP::Vector< std::string >"""
2271 return _IMP_kernel.IntKey_get_all_strings()
2273 def IntKey_get_number_unique():
2274 """IntKey_get_number_unique() -> unsigned int"""
2275 return _IMP_kernel.IntKey_get_number_unique()
2278 """Proxy of C++ IMP::Key<(2,true)> class"""
2279 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2281 def __init__(self, *args):
2283 __init__(IMP::Key<(2,true)> self) -> StringKey
2284 __init__(IMP::Key<(2,true)> self, std::string c) -> StringKey
2285 __init__(IMP::Key<(2,true)> self, unsigned int i) -> StringKey
2287 this = _IMP_kernel.new_StringKey(*args)
2289 self.this.append(this)
2294 """add_key(std::string sc) -> unsigned int"""
2295 return _IMP_kernel.StringKey_add_key(sc)
2297 add_key = staticmethod(add_key)
2299 def get_key_exists(sc):
2300 """get_key_exists(std::string sc) -> bool"""
2301 return _IMP_kernel.StringKey_get_key_exists(sc)
2303 get_key_exists = staticmethod(get_key_exists)
2305 def get_string(self):
2306 """get_string(StringKey self) -> std::string const"""
2307 return _IMP_kernel.StringKey_get_string(self)
2310 def __cmp__(self, o):
2311 """__cmp__(StringKey self, StringKey o) -> int"""
2312 return _IMP_kernel.StringKey___cmp__(self, o)
2315 def __eq__(self, o):
2316 """__eq__(StringKey self, StringKey o) -> bool"""
2317 return _IMP_kernel.StringKey___eq__(self, o)
2320 def __ne__(self, o):
2321 """__ne__(StringKey self, StringKey o) -> bool"""
2322 return _IMP_kernel.StringKey___ne__(self, o)
2325 def __lt__(self, o):
2326 """__lt__(StringKey self, StringKey o) -> bool"""
2327 return _IMP_kernel.StringKey___lt__(self, o)
2330 def __gt__(self, o):
2331 """__gt__(StringKey self, StringKey o) -> bool"""
2332 return _IMP_kernel.StringKey___gt__(self, o)
2335 def __ge__(self, o):
2336 """__ge__(StringKey self, StringKey o) -> bool"""
2337 return _IMP_kernel.StringKey___ge__(self, o)
2340 def __le__(self, o):
2341 """__le__(StringKey self, StringKey o) -> bool"""
2342 return _IMP_kernel.StringKey___le__(self, o)
2346 """__hash__(StringKey self) -> std::size_t"""
2347 return _IMP_kernel.StringKey___hash__(self)
2350 def show(self, *args):
2352 show(StringKey self, _ostream out)
2353 show(StringKey self)
2355 return _IMP_kernel.StringKey_show(self, *args)
2358 def add_alias(old_key, new_name):
2359 """add_alias(StringKey old_key, std::string new_name) -> StringKey"""
2360 return _IMP_kernel.StringKey_add_alias(old_key, new_name)
2362 add_alias = staticmethod(add_alias)
2365 """get_index(StringKey self) -> unsigned int"""
2366 return _IMP_kernel.StringKey_get_index(self)
2370 """show_all(_ostream out)"""
2371 return _IMP_kernel.StringKey_show_all(out)
2373 show_all = staticmethod(show_all)
2375 def get_all_strings():
2376 """get_all_strings() -> IMP::Vector< std::string >"""
2377 return _IMP_kernel.StringKey_get_all_strings()
2379 get_all_strings = staticmethod(get_all_strings)
2381 def get_number_unique():
2382 """get_number_unique() -> unsigned int"""
2383 return _IMP_kernel.StringKey_get_number_unique()
2385 get_number_unique = staticmethod(get_number_unique)
2388 """__str__(StringKey self) -> std::string"""
2389 return _IMP_kernel.StringKey___str__(self)
2393 """__repr__(StringKey self) -> std::string"""
2394 return _IMP_kernel.StringKey___repr__(self)
2396 __swig_destroy__ = _IMP_kernel.delete_StringKey
2397 __del__ =
lambda self:
None
2398 StringKey_swigregister = _IMP_kernel.StringKey_swigregister
2399 StringKey_swigregister(StringKey)
2401 def StringKey_add_key(sc):
2402 """StringKey_add_key(std::string sc) -> unsigned int"""
2403 return _IMP_kernel.StringKey_add_key(sc)
2405 def StringKey_get_key_exists(sc):
2406 """StringKey_get_key_exists(std::string sc) -> bool"""
2407 return _IMP_kernel.StringKey_get_key_exists(sc)
2409 def StringKey_add_alias(old_key, new_name):
2410 """StringKey_add_alias(StringKey old_key, std::string new_name) -> StringKey"""
2411 return _IMP_kernel.StringKey_add_alias(old_key, new_name)
2413 def StringKey_show_all(out):
2414 """StringKey_show_all(_ostream out)"""
2415 return _IMP_kernel.StringKey_show_all(out)
2417 def StringKey_get_all_strings():
2418 """StringKey_get_all_strings() -> IMP::Vector< std::string >"""
2419 return _IMP_kernel.StringKey_get_all_strings()
2421 def StringKey_get_number_unique():
2422 """StringKey_get_number_unique() -> unsigned int"""
2423 return _IMP_kernel.StringKey_get_number_unique()
2426 """Proxy of C++ IMP::Key<(3,true)> class"""
2427 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2429 def __init__(self, *args):
2431 __init__(IMP::Key<(3,true)> self) -> ParticleIndexKey
2432 __init__(IMP::Key<(3,true)> self, std::string c) -> ParticleIndexKey
2433 __init__(IMP::Key<(3,true)> self, unsigned int i) -> ParticleIndexKey
2435 this = _IMP_kernel.new_ParticleIndexKey(*args)
2437 self.this.append(this)
2442 """add_key(std::string sc) -> unsigned int"""
2443 return _IMP_kernel.ParticleIndexKey_add_key(sc)
2445 add_key = staticmethod(add_key)
2447 def get_key_exists(sc):
2448 """get_key_exists(std::string sc) -> bool"""
2449 return _IMP_kernel.ParticleIndexKey_get_key_exists(sc)
2451 get_key_exists = staticmethod(get_key_exists)
2453 def get_string(self):
2454 """get_string(ParticleIndexKey self) -> std::string const"""
2455 return _IMP_kernel.ParticleIndexKey_get_string(self)
2458 def __cmp__(self, o):
2459 """__cmp__(ParticleIndexKey self, ParticleIndexKey o) -> int"""
2460 return _IMP_kernel.ParticleIndexKey___cmp__(self, o)
2463 def __eq__(self, o):
2464 """__eq__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2465 return _IMP_kernel.ParticleIndexKey___eq__(self, o)
2468 def __ne__(self, o):
2469 """__ne__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2470 return _IMP_kernel.ParticleIndexKey___ne__(self, o)
2473 def __lt__(self, o):
2474 """__lt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2475 return _IMP_kernel.ParticleIndexKey___lt__(self, o)
2478 def __gt__(self, o):
2479 """__gt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2480 return _IMP_kernel.ParticleIndexKey___gt__(self, o)
2483 def __ge__(self, o):
2484 """__ge__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2485 return _IMP_kernel.ParticleIndexKey___ge__(self, o)
2488 def __le__(self, o):
2489 """__le__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2490 return _IMP_kernel.ParticleIndexKey___le__(self, o)
2494 """__hash__(ParticleIndexKey self) -> std::size_t"""
2495 return _IMP_kernel.ParticleIndexKey___hash__(self)
2498 def show(self, *args):
2500 show(ParticleIndexKey self, _ostream out)
2501 show(ParticleIndexKey self)
2503 return _IMP_kernel.ParticleIndexKey_show(self, *args)
2506 def add_alias(old_key, new_name):
2507 """add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
2508 return _IMP_kernel.ParticleIndexKey_add_alias(old_key, new_name)
2510 add_alias = staticmethod(add_alias)
2513 """get_index(ParticleIndexKey self) -> unsigned int"""
2514 return _IMP_kernel.ParticleIndexKey_get_index(self)
2518 """show_all(_ostream out)"""
2519 return _IMP_kernel.ParticleIndexKey_show_all(out)
2521 show_all = staticmethod(show_all)
2523 def get_all_strings():
2524 """get_all_strings() -> IMP::Vector< std::string >"""
2525 return _IMP_kernel.ParticleIndexKey_get_all_strings()
2527 get_all_strings = staticmethod(get_all_strings)
2529 def get_number_unique():
2530 """get_number_unique() -> unsigned int"""
2531 return _IMP_kernel.ParticleIndexKey_get_number_unique()
2533 get_number_unique = staticmethod(get_number_unique)
2536 """__str__(ParticleIndexKey self) -> std::string"""
2537 return _IMP_kernel.ParticleIndexKey___str__(self)
2541 """__repr__(ParticleIndexKey self) -> std::string"""
2542 return _IMP_kernel.ParticleIndexKey___repr__(self)
2544 __swig_destroy__ = _IMP_kernel.delete_ParticleIndexKey
2545 __del__ =
lambda self:
None
2546 ParticleIndexKey_swigregister = _IMP_kernel.ParticleIndexKey_swigregister
2547 ParticleIndexKey_swigregister(ParticleIndexKey)
2549 def ParticleIndexKey_add_key(sc):
2550 """ParticleIndexKey_add_key(std::string sc) -> unsigned int"""
2551 return _IMP_kernel.ParticleIndexKey_add_key(sc)
2553 def ParticleIndexKey_get_key_exists(sc):
2554 """ParticleIndexKey_get_key_exists(std::string sc) -> bool"""
2555 return _IMP_kernel.ParticleIndexKey_get_key_exists(sc)
2557 def ParticleIndexKey_add_alias(old_key, new_name):
2558 """ParticleIndexKey_add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
2559 return _IMP_kernel.ParticleIndexKey_add_alias(old_key, new_name)
2561 def ParticleIndexKey_show_all(out):
2562 """ParticleIndexKey_show_all(_ostream out)"""
2563 return _IMP_kernel.ParticleIndexKey_show_all(out)
2565 def ParticleIndexKey_get_all_strings():
2566 """ParticleIndexKey_get_all_strings() -> IMP::Vector< std::string >"""
2567 return _IMP_kernel.ParticleIndexKey_get_all_strings()
2569 def ParticleIndexKey_get_number_unique():
2570 """ParticleIndexKey_get_number_unique() -> unsigned int"""
2571 return _IMP_kernel.ParticleIndexKey_get_number_unique()
2574 """Proxy of C++ IMP::Key<(4,true)> class"""
2575 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2577 def __init__(self, *args):
2579 __init__(IMP::Key<(4,true)> self) -> ObjectKey
2580 __init__(IMP::Key<(4,true)> self, std::string c) -> ObjectKey
2581 __init__(IMP::Key<(4,true)> self, unsigned int i) -> ObjectKey
2583 this = _IMP_kernel.new_ObjectKey(*args)
2585 self.this.append(this)
2590 """add_key(std::string sc) -> unsigned int"""
2591 return _IMP_kernel.ObjectKey_add_key(sc)
2593 add_key = staticmethod(add_key)
2595 def get_key_exists(sc):
2596 """get_key_exists(std::string sc) -> bool"""
2597 return _IMP_kernel.ObjectKey_get_key_exists(sc)
2599 get_key_exists = staticmethod(get_key_exists)
2601 def get_string(self):
2602 """get_string(ObjectKey self) -> std::string const"""
2603 return _IMP_kernel.ObjectKey_get_string(self)
2606 def __cmp__(self, o):
2607 """__cmp__(ObjectKey self, ObjectKey o) -> int"""
2608 return _IMP_kernel.ObjectKey___cmp__(self, o)
2611 def __eq__(self, o):
2612 """__eq__(ObjectKey self, ObjectKey o) -> bool"""
2613 return _IMP_kernel.ObjectKey___eq__(self, o)
2616 def __ne__(self, o):
2617 """__ne__(ObjectKey self, ObjectKey o) -> bool"""
2618 return _IMP_kernel.ObjectKey___ne__(self, o)
2621 def __lt__(self, o):
2622 """__lt__(ObjectKey self, ObjectKey o) -> bool"""
2623 return _IMP_kernel.ObjectKey___lt__(self, o)
2626 def __gt__(self, o):
2627 """__gt__(ObjectKey self, ObjectKey o) -> bool"""
2628 return _IMP_kernel.ObjectKey___gt__(self, o)
2631 def __ge__(self, o):
2632 """__ge__(ObjectKey self, ObjectKey o) -> bool"""
2633 return _IMP_kernel.ObjectKey___ge__(self, o)
2636 def __le__(self, o):
2637 """__le__(ObjectKey self, ObjectKey o) -> bool"""
2638 return _IMP_kernel.ObjectKey___le__(self, o)
2642 """__hash__(ObjectKey self) -> std::size_t"""
2643 return _IMP_kernel.ObjectKey___hash__(self)
2646 def show(self, *args):
2648 show(ObjectKey self, _ostream out)
2649 show(ObjectKey self)
2651 return _IMP_kernel.ObjectKey_show(self, *args)
2654 def add_alias(old_key, new_name):
2655 """add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
2656 return _IMP_kernel.ObjectKey_add_alias(old_key, new_name)
2658 add_alias = staticmethod(add_alias)
2661 """get_index(ObjectKey self) -> unsigned int"""
2662 return _IMP_kernel.ObjectKey_get_index(self)
2666 """show_all(_ostream out)"""
2667 return _IMP_kernel.ObjectKey_show_all(out)
2669 show_all = staticmethod(show_all)
2671 def get_all_strings():
2672 """get_all_strings() -> IMP::Vector< std::string >"""
2673 return _IMP_kernel.ObjectKey_get_all_strings()
2675 get_all_strings = staticmethod(get_all_strings)
2677 def get_number_unique():
2678 """get_number_unique() -> unsigned int"""
2679 return _IMP_kernel.ObjectKey_get_number_unique()
2681 get_number_unique = staticmethod(get_number_unique)
2684 """__str__(ObjectKey self) -> std::string"""
2685 return _IMP_kernel.ObjectKey___str__(self)
2689 """__repr__(ObjectKey self) -> std::string"""
2690 return _IMP_kernel.ObjectKey___repr__(self)
2692 __swig_destroy__ = _IMP_kernel.delete_ObjectKey
2693 __del__ =
lambda self:
None
2694 ObjectKey_swigregister = _IMP_kernel.ObjectKey_swigregister
2695 ObjectKey_swigregister(ObjectKey)
2697 def ObjectKey_add_key(sc):
2698 """ObjectKey_add_key(std::string sc) -> unsigned int"""
2699 return _IMP_kernel.ObjectKey_add_key(sc)
2701 def ObjectKey_get_key_exists(sc):
2702 """ObjectKey_get_key_exists(std::string sc) -> bool"""
2703 return _IMP_kernel.ObjectKey_get_key_exists(sc)
2705 def ObjectKey_add_alias(old_key, new_name):
2706 """ObjectKey_add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
2707 return _IMP_kernel.ObjectKey_add_alias(old_key, new_name)
2709 def ObjectKey_show_all(out):
2710 """ObjectKey_show_all(_ostream out)"""
2711 return _IMP_kernel.ObjectKey_show_all(out)
2713 def ObjectKey_get_all_strings():
2714 """ObjectKey_get_all_strings() -> IMP::Vector< std::string >"""
2715 return _IMP_kernel.ObjectKey_get_all_strings()
2717 def ObjectKey_get_number_unique():
2718 """ObjectKey_get_number_unique() -> unsigned int"""
2719 return _IMP_kernel.ObjectKey_get_number_unique()
2722 """Proxy of C++ IMP::Key<(6,true)> class"""
2723 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2725 def __init__(self, *args):
2727 __init__(IMP::Key<(6,true)> self) -> ParticleIndexesKey
2728 __init__(IMP::Key<(6,true)> self, std::string c) -> ParticleIndexesKey
2729 __init__(IMP::Key<(6,true)> self, unsigned int i) -> ParticleIndexesKey
2731 this = _IMP_kernel.new_ParticleIndexesKey(*args)
2733 self.this.append(this)
2738 """add_key(std::string sc) -> unsigned int"""
2739 return _IMP_kernel.ParticleIndexesKey_add_key(sc)
2741 add_key = staticmethod(add_key)
2743 def get_key_exists(sc):
2744 """get_key_exists(std::string sc) -> bool"""
2745 return _IMP_kernel.ParticleIndexesKey_get_key_exists(sc)
2747 get_key_exists = staticmethod(get_key_exists)
2749 def get_string(self):
2750 """get_string(ParticleIndexesKey self) -> std::string const"""
2751 return _IMP_kernel.ParticleIndexesKey_get_string(self)
2754 def __cmp__(self, o):
2755 """__cmp__(ParticleIndexesKey self, ParticleIndexesKey o) -> int"""
2756 return _IMP_kernel.ParticleIndexesKey___cmp__(self, o)
2759 def __eq__(self, o):
2760 """__eq__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2761 return _IMP_kernel.ParticleIndexesKey___eq__(self, o)
2764 def __ne__(self, o):
2765 """__ne__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2766 return _IMP_kernel.ParticleIndexesKey___ne__(self, o)
2769 def __lt__(self, o):
2770 """__lt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2771 return _IMP_kernel.ParticleIndexesKey___lt__(self, o)
2774 def __gt__(self, o):
2775 """__gt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2776 return _IMP_kernel.ParticleIndexesKey___gt__(self, o)
2779 def __ge__(self, o):
2780 """__ge__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2781 return _IMP_kernel.ParticleIndexesKey___ge__(self, o)
2784 def __le__(self, o):
2785 """__le__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2786 return _IMP_kernel.ParticleIndexesKey___le__(self, o)
2790 """__hash__(ParticleIndexesKey self) -> std::size_t"""
2791 return _IMP_kernel.ParticleIndexesKey___hash__(self)
2794 def show(self, *args):
2796 show(ParticleIndexesKey self, _ostream out)
2797 show(ParticleIndexesKey self)
2799 return _IMP_kernel.ParticleIndexesKey_show(self, *args)
2802 def add_alias(old_key, new_name):
2803 """add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
2804 return _IMP_kernel.ParticleIndexesKey_add_alias(old_key, new_name)
2806 add_alias = staticmethod(add_alias)
2809 """get_index(ParticleIndexesKey self) -> unsigned int"""
2810 return _IMP_kernel.ParticleIndexesKey_get_index(self)
2814 """show_all(_ostream out)"""
2815 return _IMP_kernel.ParticleIndexesKey_show_all(out)
2817 show_all = staticmethod(show_all)
2819 def get_all_strings():
2820 """get_all_strings() -> IMP::Vector< std::string >"""
2821 return _IMP_kernel.ParticleIndexesKey_get_all_strings()
2823 get_all_strings = staticmethod(get_all_strings)
2825 def get_number_unique():
2826 """get_number_unique() -> unsigned int"""
2827 return _IMP_kernel.ParticleIndexesKey_get_number_unique()
2829 get_number_unique = staticmethod(get_number_unique)
2832 """__str__(ParticleIndexesKey self) -> std::string"""
2833 return _IMP_kernel.ParticleIndexesKey___str__(self)
2837 """__repr__(ParticleIndexesKey self) -> std::string"""
2838 return _IMP_kernel.ParticleIndexesKey___repr__(self)
2840 __swig_destroy__ = _IMP_kernel.delete_ParticleIndexesKey
2841 __del__ =
lambda self:
None
2842 ParticleIndexesKey_swigregister = _IMP_kernel.ParticleIndexesKey_swigregister
2843 ParticleIndexesKey_swigregister(ParticleIndexesKey)
2845 def ParticleIndexesKey_add_key(sc):
2846 """ParticleIndexesKey_add_key(std::string sc) -> unsigned int"""
2847 return _IMP_kernel.ParticleIndexesKey_add_key(sc)
2849 def ParticleIndexesKey_get_key_exists(sc):
2850 """ParticleIndexesKey_get_key_exists(std::string sc) -> bool"""
2851 return _IMP_kernel.ParticleIndexesKey_get_key_exists(sc)
2853 def ParticleIndexesKey_add_alias(old_key, new_name):
2854 """ParticleIndexesKey_add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
2855 return _IMP_kernel.ParticleIndexesKey_add_alias(old_key, new_name)
2857 def ParticleIndexesKey_show_all(out):
2858 """ParticleIndexesKey_show_all(_ostream out)"""
2859 return _IMP_kernel.ParticleIndexesKey_show_all(out)
2861 def ParticleIndexesKey_get_all_strings():
2862 """ParticleIndexesKey_get_all_strings() -> IMP::Vector< std::string >"""
2863 return _IMP_kernel.ParticleIndexesKey_get_all_strings()
2865 def ParticleIndexesKey_get_number_unique():
2866 """ParticleIndexesKey_get_number_unique() -> unsigned int"""
2867 return _IMP_kernel.ParticleIndexesKey_get_number_unique()
2870 """Proxy of C++ IMP::Key<(8,true)> class"""
2871 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2873 def __init__(self, *args):
2875 __init__(IMP::Key<(8,true)> self) -> ModelKey
2876 __init__(IMP::Key<(8,true)> self, std::string c) -> ModelKey
2877 __init__(IMP::Key<(8,true)> self, unsigned int i) -> ModelKey
2879 this = _IMP_kernel.new_ModelKey(*args)
2881 self.this.append(this)
2886 """add_key(std::string sc) -> unsigned int"""
2887 return _IMP_kernel.ModelKey_add_key(sc)
2889 add_key = staticmethod(add_key)
2891 def get_key_exists(sc):
2892 """get_key_exists(std::string sc) -> bool"""
2893 return _IMP_kernel.ModelKey_get_key_exists(sc)
2895 get_key_exists = staticmethod(get_key_exists)
2897 def get_string(self):
2898 """get_string(ModelKey self) -> std::string const"""
2899 return _IMP_kernel.ModelKey_get_string(self)
2902 def __cmp__(self, o):
2903 """__cmp__(ModelKey self, ModelKey o) -> int"""
2904 return _IMP_kernel.ModelKey___cmp__(self, o)
2907 def __eq__(self, o):
2908 """__eq__(ModelKey self, ModelKey o) -> bool"""
2909 return _IMP_kernel.ModelKey___eq__(self, o)
2912 def __ne__(self, o):
2913 """__ne__(ModelKey self, ModelKey o) -> bool"""
2914 return _IMP_kernel.ModelKey___ne__(self, o)
2917 def __lt__(self, o):
2918 """__lt__(ModelKey self, ModelKey o) -> bool"""
2919 return _IMP_kernel.ModelKey___lt__(self, o)
2922 def __gt__(self, o):
2923 """__gt__(ModelKey self, ModelKey o) -> bool"""
2924 return _IMP_kernel.ModelKey___gt__(self, o)
2927 def __ge__(self, o):
2928 """__ge__(ModelKey self, ModelKey o) -> bool"""
2929 return _IMP_kernel.ModelKey___ge__(self, o)
2932 def __le__(self, o):
2933 """__le__(ModelKey self, ModelKey o) -> bool"""
2934 return _IMP_kernel.ModelKey___le__(self, o)
2938 """__hash__(ModelKey self) -> std::size_t"""
2939 return _IMP_kernel.ModelKey___hash__(self)
2942 def show(self, *args):
2944 show(ModelKey self, _ostream out)
2947 return _IMP_kernel.ModelKey_show(self, *args)
2950 def add_alias(old_key, new_name):
2951 """add_alias(ModelKey old_key, std::string new_name) -> ModelKey"""
2952 return _IMP_kernel.ModelKey_add_alias(old_key, new_name)
2954 add_alias = staticmethod(add_alias)
2957 """get_index(ModelKey self) -> unsigned int"""
2958 return _IMP_kernel.ModelKey_get_index(self)
2962 """show_all(_ostream out)"""
2963 return _IMP_kernel.ModelKey_show_all(out)
2965 show_all = staticmethod(show_all)
2967 def get_all_strings():
2968 """get_all_strings() -> IMP::Vector< std::string >"""
2969 return _IMP_kernel.ModelKey_get_all_strings()
2971 get_all_strings = staticmethod(get_all_strings)
2973 def get_number_unique():
2974 """get_number_unique() -> unsigned int"""
2975 return _IMP_kernel.ModelKey_get_number_unique()
2977 get_number_unique = staticmethod(get_number_unique)
2980 """__str__(ModelKey self) -> std::string"""
2981 return _IMP_kernel.ModelKey___str__(self)
2985 """__repr__(ModelKey self) -> std::string"""
2986 return _IMP_kernel.ModelKey___repr__(self)
2988 __swig_destroy__ = _IMP_kernel.delete_ModelKey
2989 __del__ =
lambda self:
None
2990 ModelKey_swigregister = _IMP_kernel.ModelKey_swigregister
2991 ModelKey_swigregister(ModelKey)
2993 def ModelKey_add_key(sc):
2994 """ModelKey_add_key(std::string sc) -> unsigned int"""
2995 return _IMP_kernel.ModelKey_add_key(sc)
2997 def ModelKey_get_key_exists(sc):
2998 """ModelKey_get_key_exists(std::string sc) -> bool"""
2999 return _IMP_kernel.ModelKey_get_key_exists(sc)
3001 def ModelKey_add_alias(old_key, new_name):
3002 """ModelKey_add_alias(ModelKey old_key, std::string new_name) -> ModelKey"""
3003 return _IMP_kernel.ModelKey_add_alias(old_key, new_name)
3005 def ModelKey_show_all(out):
3006 """ModelKey_show_all(_ostream out)"""
3007 return _IMP_kernel.ModelKey_show_all(out)
3009 def ModelKey_get_all_strings():
3010 """ModelKey_get_all_strings() -> IMP::Vector< std::string >"""
3011 return _IMP_kernel.ModelKey_get_all_strings()
3013 def ModelKey_get_number_unique():
3014 """ModelKey_get_number_unique() -> unsigned int"""
3015 return _IMP_kernel.ModelKey_get_number_unique()
3018 """Proxy of C++ IMP::Index<(IMP::ParticleIndexTag)> class"""
3019 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3021 def __init__(self, *args):
3023 __init__(IMP::Index<(IMP::ParticleIndexTag)> self, int i) -> ParticleIndex
3024 __init__(IMP::Index<(IMP::ParticleIndexTag)> self) -> ParticleIndex
3026 this = _IMP_kernel.new_ParticleIndex(*args)
3028 self.this.append(this)
3033 """get_index(ParticleIndex self) -> int"""
3034 return _IMP_kernel.ParticleIndex_get_index(self)
3037 def __cmp__(self, o):
3038 """__cmp__(ParticleIndex self, ParticleIndex o) -> int"""
3039 return _IMP_kernel.ParticleIndex___cmp__(self, o)
3042 def __eq__(self, o):
3043 """__eq__(ParticleIndex self, ParticleIndex o) -> bool"""
3044 return _IMP_kernel.ParticleIndex___eq__(self, o)
3047 def __ne__(self, o):
3048 """__ne__(ParticleIndex self, ParticleIndex o) -> bool"""
3049 return _IMP_kernel.ParticleIndex___ne__(self, o)
3052 def __lt__(self, o):
3053 """__lt__(ParticleIndex self, ParticleIndex o) -> bool"""
3054 return _IMP_kernel.ParticleIndex___lt__(self, o)
3057 def __gt__(self, o):
3058 """__gt__(ParticleIndex self, ParticleIndex o) -> bool"""
3059 return _IMP_kernel.ParticleIndex___gt__(self, o)
3062 def __ge__(self, o):
3063 """__ge__(ParticleIndex self, ParticleIndex o) -> bool"""
3064 return _IMP_kernel.ParticleIndex___ge__(self, o)
3067 def __le__(self, o):
3068 """__le__(ParticleIndex self, ParticleIndex o) -> bool"""
3069 return _IMP_kernel.ParticleIndex___le__(self, o)
3072 def show(self, *args):
3074 show(ParticleIndex self, _ostream out)
3075 show(ParticleIndex self)
3077 return _IMP_kernel.ParticleIndex_show(self, *args)
3081 """__hash__(ParticleIndex self) -> std::size_t"""
3082 return _IMP_kernel.ParticleIndex___hash__(self)
3086 """__str__(ParticleIndex self) -> std::string"""
3087 return _IMP_kernel.ParticleIndex___str__(self)
3091 """__repr__(ParticleIndex self) -> std::string"""
3092 return _IMP_kernel.ParticleIndex___repr__(self)
3094 __swig_destroy__ = _IMP_kernel.delete_ParticleIndex
3095 __del__ =
lambda self:
None
3096 ParticleIndex_swigregister = _IMP_kernel.ParticleIndex_swigregister
3097 ParticleIndex_swigregister(ParticleIndex)
3106 class FloatIndex(_Value):
3107 """Proxy of C++ IMP::FloatIndex class"""
3108 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3110 def __init__(self, *args):
3112 __init__(IMP::FloatIndex self, ParticleIndex i0, FloatKey i1) -> FloatIndex
3113 __init__(IMP::FloatIndex self, ParticleIndex i0) -> FloatIndex
3114 __init__(IMP::FloatIndex self) -> FloatIndex
3116 this = _IMP_kernel.new_FloatIndex(*args)
3118 self.this.append(this)
3123 """__hash__(FloatIndex self) -> std::size_t"""
3124 return _IMP_kernel.FloatIndex___hash__(self)
3127 def show(self, *args):
3129 show(FloatIndex self, _ostream out)
3130 show(FloatIndex self)
3132 return _IMP_kernel.FloatIndex_show(self, *args)
3135 def __cmp__(self, o):
3136 """__cmp__(FloatIndex self, FloatIndex o) -> int"""
3137 return _IMP_kernel.FloatIndex___cmp__(self, o)
3140 def __eq__(self, o):
3141 """__eq__(FloatIndex self, FloatIndex o) -> bool"""
3142 return _IMP_kernel.FloatIndex___eq__(self, o)
3145 def __ne__(self, o):
3146 """__ne__(FloatIndex self, FloatIndex o) -> bool"""
3147 return _IMP_kernel.FloatIndex___ne__(self, o)
3150 def __lt__(self, o):
3151 """__lt__(FloatIndex self, FloatIndex o) -> bool"""
3152 return _IMP_kernel.FloatIndex___lt__(self, o)
3155 def __gt__(self, o):
3156 """__gt__(FloatIndex self, FloatIndex o) -> bool"""
3157 return _IMP_kernel.FloatIndex___gt__(self, o)
3160 def __ge__(self, o):
3161 """__ge__(FloatIndex self, FloatIndex o) -> bool"""
3162 return _IMP_kernel.FloatIndex___ge__(self, o)
3165 def __le__(self, o):
3166 """__le__(FloatIndex self, FloatIndex o) -> bool"""
3167 return _IMP_kernel.FloatIndex___le__(self, o)
3170 def get_particle(self):
3171 """get_particle(FloatIndex self) -> ParticleIndex const &"""
3172 return _IMP_kernel.FloatIndex_get_particle(self)
3175 def set_particle(self, v):
3176 """set_particle(FloatIndex self, ParticleIndex const & v)"""
3177 return _IMP_kernel.FloatIndex_set_particle(self, v)
3181 """get_key(FloatIndex self) -> FloatKey const &"""
3182 return _IMP_kernel.FloatIndex_get_key(self)
3185 def set_key(self, v):
3186 """set_key(FloatIndex self, FloatKey const & v)"""
3187 return _IMP_kernel.FloatIndex_set_key(self, v)
3191 """__str__(FloatIndex self) -> std::string"""
3192 return _IMP_kernel.FloatIndex___str__(self)
3196 """__repr__(FloatIndex self) -> std::string"""
3197 return _IMP_kernel.FloatIndex___repr__(self)
3199 __swig_destroy__ = _IMP_kernel.delete_FloatIndex
3200 __del__ =
lambda self:
None
3201 FloatIndex_swigregister = _IMP_kernel.FloatIndex_swigregister
3202 FloatIndex_swigregister(FloatIndex)
3204 class _ParticleIndexTag(object):
3205 """Proxy of C++ IMP::ParticleIndexTag class"""
3206 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3207 __repr__ = _swig_repr
3210 """__init__(IMP::ParticleIndexTag self) -> _ParticleIndexTag"""
3211 this = _IMP_kernel.new__ParticleIndexTag()
3213 self.this.append(this)
3216 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexTag
3217 __del__ =
lambda self:
None
3218 _ParticleIndexTag_swigregister = _IMP_kernel._ParticleIndexTag_swigregister
3219 _ParticleIndexTag_swigregister(_ParticleIndexTag)
3221 class ModelObject(Object):
3222 """Proxy of C++ IMP::ModelObject class"""
3223 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3225 def __init__(self, m, name):
3226 """__init__(IMP::ModelObject self, Model m, std::string name) -> ModelObject"""
3227 if self.__class__ == ModelObject:
3231 this = _IMP_kernel.new_ModelObject(_self, m, name)
3233 self.this.append(this)
3236 if self.__class__ != ModelObject:
3237 _director_objects.register(self)
3241 __swig_destroy__ = _IMP_kernel.delete_ModelObject
3242 __del__ =
lambda self:
None
3244 def get_model(self):
3245 """get_model(ModelObject self) -> Model"""
3246 return _IMP_kernel.ModelObject_get_model(self)
3249 def get_inputs(self):
3250 """get_inputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3251 return _IMP_kernel.ModelObject_get_inputs(self)
3254 def get_outputs(self):
3255 """get_outputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3256 return _IMP_kernel.ModelObject_get_outputs(self)
3259 def get_interactions(self):
3260 """get_interactions(ModelObject self) -> IMP::ModelObjectsTemps"""
3261 return _IMP_kernel.ModelObject_get_interactions(self)
3264 def get_has_dependencies(self):
3265 """get_has_dependencies(ModelObject self) -> bool"""
3266 return _IMP_kernel.ModelObject_get_has_dependencies(self)
3269 def set_has_dependencies(self, tf):
3270 """set_has_dependencies(ModelObject self, bool tf)"""
3271 return _IMP_kernel.ModelObject_set_has_dependencies(self, tf)
3274 def set_has_required_score_states(self, tf):
3275 """set_has_required_score_states(ModelObject self, bool tf)"""
3276 return _IMP_kernel.ModelObject_set_has_required_score_states(self, tf)
3279 def get_has_required_score_states(self):
3280 """get_has_required_score_states(ModelObject self) -> bool"""
3281 return _IMP_kernel.ModelObject_get_has_required_score_states(self)
3285 """get_required_score_states(ModelObject self) -> IMP::ScoreStatesTemp const &"""
3286 return _IMP_kernel.ModelObject_get_required_score_states(self)
3289 def handle_set_has_required_score_states(self, arg0):
3290 """handle_set_has_required_score_states(ModelObject self, bool arg0)"""
3291 return _IMP_kernel.ModelObject_handle_set_has_required_score_states(self, arg0)
3294 def do_get_inputs(self):
3295 """do_get_inputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3296 return _IMP_kernel.ModelObject_do_get_inputs(self)
3299 def do_get_outputs(self):
3300 """do_get_outputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3301 return _IMP_kernel.ModelObject_do_get_outputs(self)
3304 def do_get_interactions(self):
3305 """do_get_interactions(ModelObject self) -> IMP::ModelObjectsTemps"""
3306 return _IMP_kernel.ModelObject_do_get_interactions(self)
3310 """__str__(ModelObject self) -> std::string"""
3311 return _IMP_kernel.ModelObject___str__(self)
3315 """__repr__(ModelObject self) -> std::string"""
3316 return _IMP_kernel.ModelObject___repr__(self)
3319 return _object_cast_to_ModelObject(o)
3320 get_from = staticmethod(get_from)
3322 def get_type_name(self):
3323 return self.__class__.__name__
3324 def do_show(self, out):
3326 def get_version_info(self):
3328 return VersionInfo(self.__module__,
3329 __import__(self.__module__).get_module_version())
3332 __import__(self.__module__).get_module_version())
3334 return _object_cast_to_ModelObject(o)
3335 get_from = staticmethod(get_from)
3337 def __disown__(self):
3339 _IMP_kernel.disown_ModelObject(self)
3340 return weakref_proxy(self)
3342 def do_destroy(self):
3343 """do_destroy(ModelObject self)"""
3344 return _IMP_kernel.ModelObject_do_destroy(self)
3346 ModelObject_swigregister = _IMP_kernel.ModelObject_swigregister
3347 ModelObject_swigregister(ModelObject)
3348 cvar = _IMP_kernel.cvar
3349 NO_MAX = cvar.NO_MAX
3350 BAD_SCORE = cvar.BAD_SCORE
3352 class _ParticleInputs(object):
3353 """Proxy of C++ IMP::ParticleInputs class"""
3354 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3356 def __init__(self, *args, **kwargs):
3357 raise AttributeError(
"No constructor defined - class is abstract")
3358 __repr__ = _swig_repr
3360 def get_inputs(self, m, pis):
3361 """get_inputs(_ParticleInputs self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3362 return _IMP_kernel._ParticleInputs_get_inputs(self, m, pis)
3364 _ParticleInputs_swigregister = _IMP_kernel._ParticleInputs_swigregister
3365 _ParticleInputs_swigregister(_ParticleInputs)
3367 class _ParticleOutputs(object):
3368 """Proxy of C++ IMP::ParticleOutputs class"""
3369 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3371 def __init__(self, *args, **kwargs):
3372 raise AttributeError(
"No constructor defined - class is abstract")
3373 __repr__ = _swig_repr
3375 def get_outputs(self, m, pis):
3376 """get_outputs(_ParticleOutputs self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3377 return _IMP_kernel._ParticleOutputs_get_outputs(self, m, pis)
3379 _ParticleOutputs_swigregister = _IMP_kernel._ParticleOutputs_swigregister
3380 _ParticleOutputs_swigregister(_ParticleOutputs)
3384 """get_input_particles(IMP::ModelObjectsTemp const & mos) -> IMP::ParticlesTemp"""
3385 return _IMP_kernel.get_input_particles(mos)
3388 """get_input_containers(IMP::ModelObjectsTemp const & mos) -> IMP::ContainersTemp"""
3389 return _IMP_kernel.get_input_containers(mos)
3392 """get_output_particles(IMP::ModelObjectsTemp const & mos) -> IMP::ParticlesTemp"""
3393 return _IMP_kernel.get_output_particles(mos)
3396 """get_output_containers(IMP::ModelObjectsTemp const & mos) -> IMP::ContainersTemp"""
3397 return _IMP_kernel.get_output_containers(mos)
3398 class DerivativeAccumulator(object):
3399 """Proxy of C++ IMP::DerivativeAccumulator class"""
3400 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3401 __repr__ = _swig_repr
3403 def __init__(self, *args):
3405 __init__(IMP::DerivativeAccumulator self, double weight=1.0) -> DerivativeAccumulator
3406 __init__(IMP::DerivativeAccumulator self) -> DerivativeAccumulator
3407 __init__(IMP::DerivativeAccumulator self, DerivativeAccumulator copy, double weight) -> DerivativeAccumulator
3409 this = _IMP_kernel.new_DerivativeAccumulator(*args)
3411 self.this.append(this)
3415 def __call__(self, value):
3416 """__call__(DerivativeAccumulator self, double const value) -> double"""
3417 return _IMP_kernel.DerivativeAccumulator___call__(self, value)
3420 def get_weight(self):
3421 """get_weight(DerivativeAccumulator self) -> double"""
3422 return _IMP_kernel.DerivativeAccumulator_get_weight(self)
3425 def show(self, *args):
3427 show(DerivativeAccumulator self, _ostream out)
3428 show(DerivativeAccumulator self)
3430 return _IMP_kernel.DerivativeAccumulator_show(self, *args)
3432 __swig_destroy__ = _IMP_kernel.delete_DerivativeAccumulator
3433 __del__ =
lambda self:
None
3434 DerivativeAccumulator_swigregister = _IMP_kernel.DerivativeAccumulator_swigregister
3435 DerivativeAccumulator_swigregister(DerivativeAccumulator)
3437 class EvaluationState(object):
3438 """Proxy of C++ IMP::EvaluationState class"""
3439 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3440 score = _swig_property(_IMP_kernel.EvaluationState_score_get, _IMP_kernel.EvaluationState_score_set)
3441 good = _swig_property(_IMP_kernel.EvaluationState_good_get, _IMP_kernel.EvaluationState_good_set)
3443 def __init__(self, *args):
3445 __init__(IMP::EvaluationState self, double oscore, bool ogood) -> EvaluationState
3446 __init__(IMP::EvaluationState self) -> EvaluationState
3448 this = _IMP_kernel.new_EvaluationState(*args)
3450 self.this.append(this)
3454 def show(self, *args):
3456 show(EvaluationState self, _ostream out)
3457 show(EvaluationState self)
3459 return _IMP_kernel.EvaluationState_show(self, *args)
3463 """__str__(EvaluationState self) -> std::string"""
3464 return _IMP_kernel.EvaluationState___str__(self)
3468 """__repr__(EvaluationState self) -> std::string"""
3469 return _IMP_kernel.EvaluationState___repr__(self)
3471 __swig_destroy__ = _IMP_kernel.delete_EvaluationState
3472 __del__ =
lambda self:
None
3473 EvaluationState_swigregister = _IMP_kernel.EvaluationState_swigregister
3474 EvaluationState_swigregister(EvaluationState)
3476 class ScoreAccumulator(_Value):
3477 """Proxy of C++ IMP::ScoreAccumulator class"""
3478 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3480 def __init__(self, *args):
3482 __init__(IMP::ScoreAccumulator self) -> ScoreAccumulator
3483 __init__(IMP::ScoreAccumulator self, ScoreAccumulator o, Restraint r) -> ScoreAccumulator
3484 __init__(IMP::ScoreAccumulator self, ScoreAccumulator o, double weight, double local_max) -> ScoreAccumulator
3486 this = _IMP_kernel.new_ScoreAccumulator(*args)
3488 self.this.append(this)
3492 def add_score(self, score):
3493 """add_score(ScoreAccumulator self, double score)"""
3494 return _IMP_kernel.ScoreAccumulator_add_score(self, score)
3497 def get_abort_evaluation(self):
3498 """get_abort_evaluation(ScoreAccumulator self) -> bool"""
3499 return _IMP_kernel.ScoreAccumulator_get_abort_evaluation(self)
3502 def get_is_evaluate_if_below(self):
3503 """get_is_evaluate_if_below(ScoreAccumulator self) -> bool"""
3504 return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_below(self)
3507 def get_is_evaluate_if_good(self):
3508 """get_is_evaluate_if_good(ScoreAccumulator self) -> bool"""
3509 return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_good(self)
3512 def get_maximum(self):
3513 """get_maximum(ScoreAccumulator self) -> double"""
3514 return _IMP_kernel.ScoreAccumulator_get_maximum(self)
3517 def get_derivative_accumulator(self):
3518 """get_derivative_accumulator(ScoreAccumulator self) -> DerivativeAccumulator"""
3519 return _IMP_kernel.ScoreAccumulator_get_derivative_accumulator(self)
3522 def show(self, *args):
3524 show(ScoreAccumulator self, _ostream out)
3525 show(ScoreAccumulator self)
3527 return _IMP_kernel.ScoreAccumulator_show(self, *args)
3531 """__str__(ScoreAccumulator self) -> std::string"""
3532 return _IMP_kernel.ScoreAccumulator___str__(self)
3536 """__repr__(ScoreAccumulator self) -> std::string"""
3537 return _IMP_kernel.ScoreAccumulator___repr__(self)
3539 __swig_destroy__ = _IMP_kernel.delete_ScoreAccumulator
3540 __del__ =
lambda self:
None
3541 ScoreAccumulator_swigregister = _IMP_kernel.ScoreAccumulator_swigregister
3542 ScoreAccumulator_swigregister(ScoreAccumulator)
3544 class ScoreState(ModelObject):
3545 """Proxy of C++ IMP::ScoreState class"""
3546 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3548 def __init__(self, m, name):
3549 """__init__(IMP::ScoreState self, Model m, std::string name) -> ScoreState"""
3550 if self.__class__ == ScoreState:
3554 this = _IMP_kernel.new_ScoreState(_self, m, name)
3556 self.this.append(this)
3559 if self.__class__ != ScoreState:
3560 _director_objects.register(self)
3565 def before_evaluate(self):
3566 """before_evaluate(ScoreState self)"""
3567 return _IMP_kernel.ScoreState_before_evaluate(self)
3570 def after_evaluate(self, accpt):
3571 """after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
3572 return _IMP_kernel.ScoreState_after_evaluate(self, accpt)
3575 def get_has_update_order(self):
3576 """get_has_update_order(ScoreState self) -> bool"""
3577 return _IMP_kernel.ScoreState_get_has_update_order(self)
3581 """get_update_order(ScoreState self) -> unsigned int"""
3582 return _IMP_kernel.ScoreState_get_update_order(self)
3585 def handle_set_has_required_score_states(self, tf):
3586 """handle_set_has_required_score_states(ScoreState self, bool tf)"""
3587 return _IMP_kernel.ScoreState_handle_set_has_required_score_states(self, tf)
3590 def do_before_evaluate(self):
3591 """do_before_evaluate(ScoreState self)"""
3592 return _IMP_kernel.ScoreState_do_before_evaluate(self)
3595 def do_after_evaluate(self, accpt):
3596 """do_after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
3597 return _IMP_kernel.ScoreState_do_after_evaluate(self, accpt)
3599 __swig_destroy__ = _IMP_kernel.delete_ScoreState
3600 __del__ =
lambda self:
None
3603 """__str__(ScoreState self) -> std::string"""
3604 return _IMP_kernel.ScoreState___str__(self)
3608 """__repr__(ScoreState self) -> std::string"""
3609 return _IMP_kernel.ScoreState___repr__(self)
3612 return _object_cast_to_ScoreState(o)
3613 get_from = staticmethod(get_from)
3615 def get_type_name(self):
3616 return self.__class__.__name__
3617 def do_show(self, out):
3619 def get_version_info(self):
3621 return VersionInfo(self.__module__,
3622 __import__(self.__module__).get_module_version())
3625 __import__(self.__module__).get_module_version())
3627 return _object_cast_to_ScoreState(o)
3628 get_from = staticmethod(get_from)
3630 def __disown__(self):
3632 _IMP_kernel.disown_ScoreState(self)
3633 return weakref_proxy(self)
3635 def do_destroy(self):
3636 """do_destroy(ScoreState self)"""
3637 return _IMP_kernel.ScoreState_do_destroy(self)
3640 def do_get_inputs(self):
3641 """do_get_inputs(ScoreState self) -> IMP::ModelObjectsTemp"""
3642 return _IMP_kernel.ScoreState_do_get_inputs(self)
3645 def do_get_outputs(self):
3646 """do_get_outputs(ScoreState self) -> IMP::ModelObjectsTemp"""
3647 return _IMP_kernel.ScoreState_do_get_outputs(self)
3650 def do_get_interactions(self):
3651 """do_get_interactions(ScoreState self) -> IMP::ModelObjectsTemps"""
3652 return _IMP_kernel.ScoreState_do_get_interactions(self)
3654 ScoreState_swigregister = _IMP_kernel.ScoreState_swigregister
3655 ScoreState_swigregister(ScoreState)
3659 """get_update_order(IMP::ScoreStatesTemp input) -> IMP::ScoreStatesTemp"""
3660 return _IMP_kernel.get_update_order(input)
3661 class Constraint(ScoreState):
3662 """Proxy of C++ IMP::Constraint class"""
3663 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3665 def __init__(self, *args):
3667 __init__(IMP::Constraint self, Model m, std::string name) -> Constraint
3668 __init__(IMP::Constraint self, Model m) -> Constraint
3670 if self.__class__ == Constraint:
3674 this = _IMP_kernel.new_Constraint(_self, *args)
3676 self.this.append(this)
3679 if self.__class__ != Constraint:
3680 _director_objects.register(self)
3685 def do_update_attributes(self):
3686 """do_update_attributes(Constraint self)"""
3687 return _IMP_kernel.Constraint_do_update_attributes(self)
3690 def do_update_derivatives(self, da):
3691 """do_update_derivatives(Constraint self, DerivativeAccumulator da)"""
3692 return _IMP_kernel.Constraint_do_update_derivatives(self, da)
3695 def do_before_evaluate(self):
3696 """do_before_evaluate(Constraint self)"""
3697 return _IMP_kernel.Constraint_do_before_evaluate(self)
3700 def do_after_evaluate(self, da):
3701 """do_after_evaluate(Constraint self, DerivativeAccumulator da)"""
3702 return _IMP_kernel.Constraint_do_after_evaluate(self, da)
3704 __swig_destroy__ = _IMP_kernel.delete_Constraint
3705 __del__ =
lambda self:
None
3708 """__str__(Constraint self) -> std::string"""
3709 return _IMP_kernel.Constraint___str__(self)
3713 """__repr__(Constraint self) -> std::string"""
3714 return _IMP_kernel.Constraint___repr__(self)
3717 return _object_cast_to_Constraint(o)
3718 get_from = staticmethod(get_from)
3720 def get_type_name(self):
3721 return self.__class__.__name__
3722 def do_show(self, out):
3724 def get_version_info(self):
3726 return VersionInfo(self.__module__,
3727 __import__(self.__module__).get_module_version())
3730 __import__(self.__module__).get_module_version())
3732 return _object_cast_to_Constraint(o)
3733 get_from = staticmethod(get_from)
3735 def __disown__(self):
3737 _IMP_kernel.disown_Constraint(self)
3738 return weakref_proxy(self)
3740 def do_destroy(self):
3741 """do_destroy(Constraint self)"""
3742 return _IMP_kernel.Constraint_do_destroy(self)
3745 def do_get_inputs(self):
3746 """do_get_inputs(Constraint self) -> IMP::ModelObjectsTemp"""
3747 return _IMP_kernel.Constraint_do_get_inputs(self)
3750 def do_get_outputs(self):
3751 """do_get_outputs(Constraint self) -> IMP::ModelObjectsTemp"""
3752 return _IMP_kernel.Constraint_do_get_outputs(self)
3755 def do_get_interactions(self):
3756 """do_get_interactions(Constraint self) -> IMP::ModelObjectsTemps"""
3757 return _IMP_kernel.Constraint_do_get_interactions(self)
3759 Constraint_swigregister = _IMP_kernel.Constraint_swigregister
3760 Constraint_swigregister(Constraint)
3762 class Container(ModelObject):
3763 """Proxy of C++ IMP::Container class"""
3764 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3766 def __init__(self, *args):
3768 __init__(IMP::Container self, Model m, std::string name) -> Container
3769 __init__(IMP::Container self, Model m) -> Container
3771 if self.__class__ == Container:
3775 this = _IMP_kernel.new_Container(_self, *args)
3777 self.this.append(this)
3780 if self.__class__ != Container:
3781 _director_objects.register(self)
3786 def do_get_contents_hash(self):
3787 """do_get_contents_hash(Container self) -> std::size_t"""
3788 return _IMP_kernel.Container_do_get_contents_hash(self)
3791 def get_all_possible_indexes(self):
3792 """get_all_possible_indexes(Container self) -> IMP::ParticleIndexes"""
3793 return _IMP_kernel.Container_get_all_possible_indexes(self)
3796 def get_contents_hash(self):
3797 """get_contents_hash(Container self) -> std::size_t"""
3798 return _IMP_kernel.Container_get_contents_hash(self)
3801 def do_get_outputs(self):
3802 """do_get_outputs(Container self) -> IMP::ModelObjectsTemp"""
3803 return _IMP_kernel.Container_do_get_outputs(self)
3806 def get_is_decomposable(self):
3807 """get_is_decomposable(Container self) -> bool"""
3808 return _IMP_kernel.Container_get_is_decomposable(self)
3811 def validate_readable(self):
3812 """validate_readable(Container self)"""
3813 return _IMP_kernel.Container_validate_readable(self)
3816 def validate_writable(self):
3817 """validate_writable(Container self)"""
3818 return _IMP_kernel.Container_validate_writable(self)
3821 def set_is_readable(self, tf):
3822 """set_is_readable(Container self, bool tf)"""
3823 return _IMP_kernel.Container_set_is_readable(self, tf)
3826 def set_is_writable(self, tf):
3827 """set_is_writable(Container self, bool tf)"""
3828 return _IMP_kernel.Container_set_is_writable(self, tf)
3830 __swig_destroy__ = _IMP_kernel.delete_Container
3831 __del__ =
lambda self:
None
3834 """__str__(Container self) -> std::string"""
3835 return _IMP_kernel.Container___str__(self)
3839 """__repr__(Container self) -> std::string"""
3840 return _IMP_kernel.Container___repr__(self)
3843 return _object_cast_to_Container(o)
3844 get_from = staticmethod(get_from)
3846 def get_type_name(self):
3847 return self.__class__.__name__
3848 def do_show(self, out):
3850 def get_version_info(self):
3852 return VersionInfo(self.__module__,
3853 __import__(self.__module__).get_module_version())
3856 __import__(self.__module__).get_module_version())
3858 return _object_cast_to_Container(o)
3859 get_from = staticmethod(get_from)
3861 def __disown__(self):
3863 _IMP_kernel.disown_Container(self)
3864 return weakref_proxy(self)
3866 def do_destroy(self):
3867 """do_destroy(Container self)"""
3868 return _IMP_kernel.Container_do_destroy(self)
3871 def handle_set_has_required_score_states(self, arg0):
3872 """handle_set_has_required_score_states(Container self, bool arg0)"""
3873 return _IMP_kernel.Container_handle_set_has_required_score_states(self, arg0)
3876 def do_get_inputs(self):
3877 """do_get_inputs(Container self) -> IMP::ModelObjectsTemp"""
3878 return _IMP_kernel.Container_do_get_inputs(self)
3881 def do_get_interactions(self):
3882 """do_get_interactions(Container self) -> IMP::ModelObjectsTemps"""
3883 return _IMP_kernel.Container_do_get_interactions(self)
3885 Container_swigregister = _IMP_kernel.Container_swigregister
3886 Container_swigregister(Container)
3888 class Restraint(ModelObject):
3889 """Proxy of C++ IMP::Restraint class"""
3890 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3892 def __init__(self, m, name):
3893 """__init__(IMP::Restraint self, Model m, std::string name) -> Restraint"""
3894 if self.__class__ == Restraint:
3898 this = _IMP_kernel.new_Restraint(_self, m, name)
3900 self.this.append(this)
3903 if self.__class__ != Restraint:
3904 _director_objects.register(self)
3909 def get_score(self):
3910 """get_score(Restraint self) -> double"""
3911 return _IMP_kernel.Restraint_get_score(self)
3914 def evaluate(self, calc_derivs):
3915 """evaluate(Restraint self, bool calc_derivs) -> double"""
3916 return _IMP_kernel.Restraint_evaluate(self, calc_derivs)
3919 def evaluate_if_good(self, calc_derivatives):
3920 """evaluate_if_good(Restraint self, bool calc_derivatives) -> double"""
3921 return _IMP_kernel.Restraint_evaluate_if_good(self, calc_derivatives)
3924 def evaluate_if_below(self, calc_derivatives, max):
3925 """evaluate_if_below(Restraint self, bool calc_derivatives, double max) -> double"""
3926 return _IMP_kernel.Restraint_evaluate_if_below(self, calc_derivatives, max)
3929 def unprotected_evaluate(self, da):
3930 """unprotected_evaluate(Restraint self, DerivativeAccumulator da) -> double"""
3931 return _IMP_kernel.Restraint_unprotected_evaluate(self, da)
3934 def unprotected_evaluate_if_good(self, da, max):
3935 """unprotected_evaluate_if_good(Restraint self, DerivativeAccumulator da, double max) -> double"""
3936 return _IMP_kernel.Restraint_unprotected_evaluate_if_good(self, da, max)
3939 def unprotected_evaluate_if_below(self, da, max):
3940 """unprotected_evaluate_if_below(Restraint self, DerivativeAccumulator da, double max) -> double"""
3941 return _IMP_kernel.Restraint_unprotected_evaluate_if_below(self, da, max)
3944 def add_score_and_derivatives(self, sa):
3945 """add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
3946 return _IMP_kernel.Restraint_add_score_and_derivatives(self, sa)
3950 """create_decomposition(Restraint self) -> Restraint"""
3951 return _IMP_kernel.Restraint_create_decomposition(self)
3954 def create_current_decomposition(self):
3955 """create_current_decomposition(Restraint self) -> Restraint"""
3956 return _IMP_kernel.Restraint_create_current_decomposition(self)
3959 def set_weight(self, weight):
3960 """set_weight(Restraint self, IMP::Float weight)"""
3961 return _IMP_kernel.Restraint_set_weight(self, weight)
3964 def get_weight(self):
3965 """get_weight(Restraint self) -> IMP::Float"""
3966 return _IMP_kernel.Restraint_get_weight(self)
3969 def get_maximum_score(self):
3970 """get_maximum_score(Restraint self) -> double"""
3971 return _IMP_kernel.Restraint_get_maximum_score(self)
3974 def set_maximum_score(self, s):
3975 """set_maximum_score(Restraint self, double s)"""
3976 return _IMP_kernel.Restraint_set_maximum_score(self, s)
3981 create_scoring_function(Restraint self, double weight=1.0, double max) -> ScoringFunction
3982 create_scoring_function(Restraint self, double weight=1.0) -> ScoringFunction
3983 create_scoring_function(Restraint self) -> ScoringFunction
3985 return _IMP_kernel.Restraint_create_scoring_function(self, *args)
3988 def set_last_score(self, s):
3989 """set_last_score(Restraint self, double s)"""
3990 return _IMP_kernel.Restraint_set_last_score(self, s)
3993 def get_last_score(self):
3994 """get_last_score(Restraint self) -> double"""
3995 return _IMP_kernel.Restraint_get_last_score(self)
3998 def get_was_good(self):
3999 """get_was_good(Restraint self) -> bool"""
4000 return _IMP_kernel.Restraint_get_was_good(self)
4002 __swig_destroy__ = _IMP_kernel.delete_Restraint
4003 __del__ =
lambda self:
None
4005 def do_create_decomposition(self):
4006 """do_create_decomposition(Restraint self) -> IMP::Restraints"""
4007 return _IMP_kernel.Restraint_do_create_decomposition(self)
4010 def do_create_current_decomposition(self):
4011 """do_create_current_decomposition(Restraint self) -> IMP::Restraints"""
4012 return _IMP_kernel.Restraint_do_create_current_decomposition(self)
4015 def do_add_score_and_derivatives(self, sa):
4016 """do_add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
4017 return _IMP_kernel.Restraint_do_add_score_and_derivatives(self, sa)
4020 def do_get_outputs(self):
4021 """do_get_outputs(Restraint self) -> IMP::ModelObjectsTemp"""
4022 return _IMP_kernel.Restraint_do_get_outputs(self)
4026 """__str__(Restraint self) -> std::string"""
4027 return _IMP_kernel.Restraint___str__(self)
4031 """__repr__(Restraint self) -> std::string"""
4032 return _IMP_kernel.Restraint___repr__(self)
4035 return _object_cast_to_Restraint(o)
4036 get_from = staticmethod(get_from)
4038 def get_type_name(self):
4039 return self.__class__.__name__
4040 def do_show(self, out):
4042 def get_version_info(self):
4044 return VersionInfo(self.__module__,
4045 __import__(self.__module__).get_module_version())
4048 __import__(self.__module__).get_module_version())
4050 return _object_cast_to_Restraint(o)
4051 get_from = staticmethod(get_from)
4053 def __disown__(self):
4055 _IMP_kernel.disown_Restraint(self)
4056 return weakref_proxy(self)
4058 def do_destroy(self):
4059 """do_destroy(Restraint self)"""
4060 return _IMP_kernel.Restraint_do_destroy(self)
4063 def handle_set_has_required_score_states(self, arg0):
4064 """handle_set_has_required_score_states(Restraint self, bool arg0)"""
4065 return _IMP_kernel.Restraint_handle_set_has_required_score_states(self, arg0)
4068 def do_get_inputs(self):
4069 """do_get_inputs(Restraint self) -> IMP::ModelObjectsTemp"""
4070 return _IMP_kernel.Restraint_do_get_inputs(self)
4073 def do_get_interactions(self):
4074 """do_get_interactions(Restraint self) -> IMP::ModelObjectsTemps"""
4075 return _IMP_kernel.Restraint_do_get_interactions(self)
4077 Restraint_swigregister = _IMP_kernel.Restraint_swigregister
4078 Restraint_swigregister(Restraint)
4080 class _RestraintsAdaptor(_InputAdaptor):
4081 """Proxy of C++ IMP::RestraintsAdaptor class"""
4082 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4083 __repr__ = _swig_repr
4085 def __init__(self, *args):
4087 __init__(IMP::RestraintsAdaptor self) -> _RestraintsAdaptor
4088 __init__(IMP::RestraintsAdaptor self, IMP::Restraints const & sf) -> _RestraintsAdaptor
4089 __init__(IMP::RestraintsAdaptor self, IMP::RestraintsTemp const & sf) -> _RestraintsAdaptor
4090 __init__(IMP::RestraintsAdaptor self, Restraint sf) -> _RestraintsAdaptor
4091 __init__(IMP::RestraintsAdaptor self, Model sf) -> _RestraintsAdaptor
4092 __init__(IMP::RestraintsAdaptor self, IMP::ModelsTemp const & sf) -> _RestraintsAdaptor
4094 this = _IMP_kernel.new__RestraintsAdaptor(*args)
4096 self.this.append(this)
4099 __swig_destroy__ = _IMP_kernel.delete__RestraintsAdaptor
4100 __del__ =
lambda self:
None
4101 _RestraintsAdaptor_swigregister = _IMP_kernel._RestraintsAdaptor_swigregister
4102 _RestraintsAdaptor_swigregister(_RestraintsAdaptor)
4104 class RestraintSet(Restraint):
4105 """Proxy of C++ IMP::RestraintSet class"""
4106 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4108 def __init__(self, *args):
4110 __init__(IMP::RestraintSet self, Model m, double weight, std::string const & name) -> RestraintSet
4111 __init__(IMP::RestraintSet self, Model m, double weight) -> RestraintSet
4112 __init__(IMP::RestraintSet self, Model m, std::string const & name) -> RestraintSet
4113 __init__(IMP::RestraintSet self, Model m) -> RestraintSet
4114 __init__(IMP::RestraintSet self, IMP::RestraintsTemp const & rs, double weight, std::string const & name) -> RestraintSet
4115 __init__(IMP::RestraintSet self, IMP::RestraintsTemp const & rs, double weight) -> RestraintSet
4117 this = _IMP_kernel.new_RestraintSet(*args)
4119 self.this.append(this)
4123 def get_version_info(self):
4124 """get_version_info(RestraintSet self) -> VersionInfo"""
4125 return _IMP_kernel.RestraintSet_get_version_info(self)
4128 def remove_restraint(self, d):
4129 """remove_restraint(RestraintSet self, Restraint d)"""
4130 return _IMP_kernel.RestraintSet_remove_restraint(self, d)
4133 def remove_restraints(self, d):
4134 """remove_restraints(RestraintSet self, IMP::Restraints const & d)"""
4135 return _IMP_kernel.RestraintSet_remove_restraints(self, d)
4138 def set_restraints(self, ps):
4139 """set_restraints(RestraintSet self, IMP::Restraints const & ps)"""
4140 return _IMP_kernel.RestraintSet_set_restraints(self, ps)
4143 def set_restraints_order(self, objs):
4144 """set_restraints_order(RestraintSet self, IMP::Restraints const & objs)"""
4145 return _IMP_kernel.RestraintSet_set_restraints_order(self, objs)
4149 """add_restraint(RestraintSet self, Restraint obj) -> unsigned int"""
4150 return _IMP_kernel.RestraintSet_add_restraint(self, obj)
4154 """add_restraints(RestraintSet self, IMP::Restraints const & objs)"""
4155 return _IMP_kernel.RestraintSet_add_restraints(self, objs)
4158 def clear_restraints(self):
4159 """clear_restraints(RestraintSet self)"""
4160 return _IMP_kernel.RestraintSet_clear_restraints(self)
4163 def get_number_of_restraints(self):
4164 """get_number_of_restraints(RestraintSet self) -> unsigned int"""
4165 return _IMP_kernel.RestraintSet_get_number_of_restraints(self)
4168 def get_has_restraints(self):
4169 """get_has_restraints(RestraintSet self) -> bool"""
4170 return _IMP_kernel.RestraintSet_get_has_restraints(self)
4173 def get_restraint(self, i):
4174 """get_restraint(RestraintSet self, unsigned int i) -> Restraint"""
4175 return _IMP_kernel.RestraintSet_get_restraint(self, i)
4178 def get_restraints(self):
4179 """get_restraints(RestraintSet self) -> IMP::Restraints"""
4180 return _IMP_kernel.RestraintSet_get_restraints(self)
4183 def reserve_restraints(self, sz):
4184 """reserve_restraints(RestraintSet self, unsigned int sz)"""
4185 return _IMP_kernel.RestraintSet_reserve_restraints(self, sz)
4188 def get_non_sets_and_sets(self):
4189 """get_non_sets_and_sets(RestraintSet self) -> std::pair< IMP::RestraintsTemp,IMP::RestraintSetsTemp >"""
4190 return _IMP_kernel.RestraintSet_get_non_sets_and_sets(self)
4193 def do_get_inputs(self):
4194 """do_get_inputs(RestraintSet self) -> IMP::ModelObjectsTemp"""
4195 return _IMP_kernel.RestraintSet_do_get_inputs(self)
4200 create_scoring_function(RestraintSet self, double weight=1.0, double max) -> ScoringFunction
4201 create_scoring_function(RestraintSet self, double weight=1.0) -> ScoringFunction
4202 create_scoring_function(RestraintSet self) -> ScoringFunction
4204 return _IMP_kernel.RestraintSet_create_scoring_function(self, *args)
4208 """__str__(RestraintSet self) -> std::string"""
4209 return _IMP_kernel.RestraintSet___str__(self)
4213 """__repr__(RestraintSet self) -> std::string"""
4214 return _IMP_kernel.RestraintSet___repr__(self)
4217 return _object_cast_to_RestraintSet(o)
4218 get_from = staticmethod(get_from)
4220 RestraintSet_swigregister = _IMP_kernel.RestraintSet_swigregister
4221 RestraintSet_swigregister(RestraintSet)
4224 def get_restraints(rs):
4225 """get_restraints(IMP::RestraintsTemp const & rs) -> IMP::RestraintsTemp"""
4226 return _IMP_kernel.get_restraints(rs)
4227 def _check_particle(p, a):
4228 if (
not p.get_is_active()):
4229 raise ValueError(
"Inactive Particle")
4230 if (type(a)() == a):
4231 raise IndexError(
"Cannot use default Index")
4232 if (
not p.has_attribute(a)):
4233 raise IndexError(
"Particle does not have attribute")
4235 class Particle(ModelObject):
4236 """Proxy of C++ IMP::Particle class"""
4237 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4239 def get_version_info(self):
4240 """get_version_info(Particle self) -> VersionInfo"""
4241 return _IMP_kernel.Particle_get_version_info(self)
4244 def __init__(self, *args):
4246 __init__(IMP::Particle self, Model m, std::string name) -> Particle
4247 __init__(IMP::Particle self, Model m) -> Particle
4249 this = _IMP_kernel.new_Particle(*args)
4251 self.this.append(this)
4255 def get_float_keys(self):
4256 """get_float_keys(Particle self) -> IMP::FloatKeys"""
4257 return _IMP_kernel.Particle_get_float_keys(self)
4260 def get_int_keys(self):
4261 """get_int_keys(Particle self) -> IMP::IntKeys"""
4262 return _IMP_kernel.Particle_get_int_keys(self)
4265 def get_string_keys(self):
4266 """get_string_keys(Particle self) -> IMP::StringKeys"""
4267 return _IMP_kernel.Particle_get_string_keys(self)
4270 def get_object_keys(self):
4271 """get_object_keys(Particle self) -> IMP::ObjectKeys"""
4272 return _IMP_kernel.Particle_get_object_keys(self)
4275 def add_cache_attribute(self, *args):
4277 add_cache_attribute(Particle self, FloatKey name, IMP::Float value)
4278 add_cache_attribute(Particle self, IntKey name, IMP::Int value)
4279 add_cache_attribute(Particle self, StringKey name, IMP::String value)
4280 add_cache_attribute(Particle self, ObjectKey name, Object value)
4281 add_cache_attribute(Particle self, IMP::WeakObjectKey name, Object value)
4283 return _IMP_kernel.Particle_add_cache_attribute(self, *args)
4286 def get_weak_object_keys(self):
4287 """get_weak_object_keys(Particle self) -> IMP::WeakObjectKeys"""
4288 return _IMP_kernel.Particle_get_weak_object_keys(self)
4291 def add_to_derivative(self, key, value, da):
4292 """add_to_derivative(Particle self, FloatKey key, IMP::Float value, DerivativeAccumulator da)"""
4293 return _IMP_kernel.Particle_add_to_derivative(self, key, value, da)
4296 def set_is_optimized(self, k, tf):
4297 """set_is_optimized(Particle self, FloatKey k, bool tf)"""
4298 return _IMP_kernel.Particle_set_is_optimized(self, k, tf)
4301 def get_is_optimized(self, k):
4302 """get_is_optimized(Particle self, FloatKey k) -> bool"""
4303 return _IMP_kernel.Particle_get_is_optimized(self, k)
4306 def get_derivative(self, name):
4307 """get_derivative(Particle self, FloatKey name) -> IMP::Float"""
4308 return _IMP_kernel.Particle_get_derivative(self, name)
4311 def add_attribute(self, *args):
4313 add_attribute(Particle self, FloatKey name, IMP::Float initial_value)
4314 add_attribute(Particle self, IntKey name, IMP::Int initial_value)
4315 add_attribute(Particle self, StringKey name, IMP::String initial_value)
4316 add_attribute(Particle self, ObjectKey name, Object initial_value)
4317 add_attribute(Particle self, IMP::WeakObjectKey name, Object initial_value)
4318 add_attribute(Particle self, FloatKey name, IMP::Float const initial_value, bool optimized)
4319 add_attribute(Particle self, ParticleIndexKey k, Particle v)
4321 return _IMP_kernel.Particle_add_attribute(self, *args)
4324 def has_attribute(self, *args):
4326 has_attribute(Particle self, FloatKey name) -> bool
4327 has_attribute(Particle self, IntKey name) -> bool
4328 has_attribute(Particle self, StringKey name) -> bool
4329 has_attribute(Particle self, ObjectKey name) -> bool
4330 has_attribute(Particle self, IMP::WeakObjectKey name) -> bool
4331 has_attribute(Particle self, ParticleIndexKey k) -> bool
4333 return _IMP_kernel.Particle_has_attribute(self, *args)
4336 def set_value(self, *args):
4338 set_value(Particle self, FloatKey name, IMP::Float value)
4339 set_value(Particle self, IntKey name, IMP::Int value)
4340 set_value(Particle self, StringKey name, IMP::String value)
4341 set_value(Particle self, ObjectKey name, Object value)
4342 set_value(Particle self, IMP::WeakObjectKey name, Object value)
4343 set_value(Particle self, ParticleIndexKey k, Particle v)
4345 return _IMP_kernel.Particle_set_value(self, *args)
4348 def get_value(self, *args):
4350 get_value(Particle self, FloatKey name) -> IMP::Float
4351 get_value(Particle self, IntKey name) -> IMP::Int
4352 get_value(Particle self, StringKey name) -> IMP::String
4353 get_value(Particle self, ObjectKey name) -> Object
4354 get_value(Particle self, IMP::WeakObjectKey name) -> Object
4355 get_value(Particle self, ParticleIndexKey k) -> Particle
4357 return _IMP_kernel.Particle_get_value(self, *args)
4360 def remove_attribute(self, *args):
4362 remove_attribute(Particle self, FloatKey name)
4363 remove_attribute(Particle self, IntKey name)
4364 remove_attribute(Particle self, StringKey name)
4365 remove_attribute(Particle self, ObjectKey name)
4366 remove_attribute(Particle self, IMP::WeakObjectKey name)
4367 remove_attribute(Particle self, ParticleIndexKey k)
4369 return _IMP_kernel.Particle_remove_attribute(self, *args)
4372 def get_particle_keys(self):
4373 """get_particle_keys(Particle self) -> IMP::ParticleIndexKeys"""
4374 return _IMP_kernel.Particle_get_particle_keys(self)
4377 def show(self, *args):
4379 show(Particle self, _ostream out)
4382 return _IMP_kernel.Particle_show(self, *args)
4385 def get_is_active(self):
4386 """get_is_active(Particle self) -> bool"""
4387 return _IMP_kernel.Particle_get_is_active(self)
4391 """get_index(Particle self) -> ParticleIndex"""
4392 return _IMP_kernel.Particle_get_index(self)
4395 def __eq__(self, *args):
4397 __eq__(Particle self, Particle o) -> bool
4398 __eq__(Particle self, Decorator d) -> bool
4400 return _IMP_kernel.Particle___eq__(self, *args)
4403 def __ne__(self, *args):
4405 __ne__(Particle self, Particle o) -> bool
4406 __ne__(Particle self, Decorator d) -> bool
4408 return _IMP_kernel.Particle___ne__(self, *args)
4411 def __le__(self, *args):
4413 __le__(Particle self, Particle o) -> bool
4414 __le__(Particle self, Decorator d) -> bool
4416 return _IMP_kernel.Particle___le__(self, *args)
4419 def __lt__(self, *args):
4421 __lt__(Particle self, Particle o) -> bool
4422 __lt__(Particle self, Decorator d) -> bool
4424 return _IMP_kernel.Particle___lt__(self, *args)
4427 def __ge__(self, *args):
4429 __ge__(Particle self, Particle o) -> bool
4430 __ge__(Particle self, Decorator d) -> bool
4432 return _IMP_kernel.Particle___ge__(self, *args)
4435 def __gt__(self, *args):
4437 __gt__(Particle self, Particle o) -> bool
4438 __gt__(Particle self, Decorator d) -> bool
4440 return _IMP_kernel.Particle___gt__(self, *args)
4442 __hash__ = ModelObject.__hash__
4446 """__str__(Particle self) -> std::string"""
4447 return _IMP_kernel.Particle___str__(self)
4451 """__repr__(Particle self) -> std::string"""
4452 return _IMP_kernel.Particle___repr__(self)
4455 return _object_cast_to_Particle(o)
4456 get_from = staticmethod(get_from)
4458 Particle_swigregister = _IMP_kernel.Particle_swigregister
4459 Particle_swigregister(Particle)
4461 class _ParticleAdaptor(_InputAdaptor):
4462 """Proxy of C++ IMP::ParticleAdaptor class"""
4463 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4464 __repr__ = _swig_repr
4466 def __init__(self, *args):
4468 __init__(IMP::ParticleAdaptor self) -> _ParticleAdaptor
4469 __init__(IMP::ParticleAdaptor self, Particle p) -> _ParticleAdaptor
4470 __init__(IMP::ParticleAdaptor self, Decorator d) -> _ParticleAdaptor
4472 this = _IMP_kernel.new__ParticleAdaptor(*args)
4474 self.this.append(this)
4478 def get_model(self):
4479 """get_model(_ParticleAdaptor self) -> Model"""
4480 return _IMP_kernel._ParticleAdaptor_get_model(self)
4483 def get_particle_index(self):
4484 """get_particle_index(_ParticleAdaptor self) -> ParticleIndex"""
4485 return _IMP_kernel._ParticleAdaptor_get_particle_index(self)
4487 __swig_destroy__ = _IMP_kernel.delete__ParticleAdaptor
4488 __del__ =
lambda self:
None
4489 _ParticleAdaptor_swigregister = _IMP_kernel._ParticleAdaptor_swigregister
4490 _ParticleAdaptor_swigregister(_ParticleAdaptor)
4492 class _DependencyGraphVertexIndex(object):
4493 """Proxy of C++ IMP::DependencyGraphVertexIndex class"""
4494 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4495 __repr__ = _swig_repr
4498 """__init__(IMP::DependencyGraphVertexIndex self) -> _DependencyGraphVertexIndex"""
4499 this = _IMP_kernel.new__DependencyGraphVertexIndex()
4501 self.this.append(this)
4504 __swig_destroy__ = _IMP_kernel.delete__DependencyGraphVertexIndex
4505 __del__ =
lambda self:
None
4506 _DependencyGraphVertexIndex_swigregister = _IMP_kernel._DependencyGraphVertexIndex_swigregister
4507 _DependencyGraphVertexIndex_swigregister(_DependencyGraphVertexIndex)
4510 def show_as_graphviz(name, out):
4511 """show_as_graphviz(IMP::DependencyGraph const & name, TextOutput out)"""
4512 return _IMP_kernel.show_as_graphviz(name, out)
4514 def get_vertex_index(g):
4515 """get_vertex_index(IMP::DependencyGraph const & g) -> _DependencyGraphVertexIndex"""
4516 return _IMP_kernel.get_vertex_index(g)
4519 """get_dependency_graph(Model m) -> IMP::DependencyGraph"""
4520 return _IMP_kernel.get_dependency_graph(m)
4523 """get_pruned_dependency_graph(Model m) -> IMP::DependencyGraph"""
4524 return _IMP_kernel.get_pruned_dependency_graph(m)
4528 get_required_score_states(IMP::ModelObjectsTemp const & mos, IMP::ScoreStatesTemp exclude) -> IMP::ScoreStatesTemp
4529 get_required_score_states(IMP::ModelObjectsTemp const & mos) -> IMP::ScoreStatesTemp
4530 get_required_score_states(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ScoreStatesTemp
4532 return _IMP_kernel.get_required_score_states(*args)
4535 """get_dependent_particles(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ParticlesTemp"""
4536 return _IMP_kernel.get_dependent_particles(p, all, dg, index)
4538 def get_dependent_restraints(m, pi):
4539 """get_dependent_restraints(Model m, ParticleIndex pi) -> IMP::RestraintsTemp"""
4540 return _IMP_kernel.get_dependent_restraints(m, pi)
4541 class ScoringFunction(ModelObject):
4542 """Proxy of C++ IMP::ScoringFunction class"""
4543 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4545 def do_add_score_and_derivatives(self, sa, ss):
4546 """do_add_score_and_derivatives(ScoringFunction self, ScoreAccumulator sa, IMP::ScoreStatesTemp const & ss)"""
4547 return _IMP_kernel.ScoringFunction_do_add_score_and_derivatives(self, sa, ss)
4550 def get_score_accumulator_if_below(self, deriv, max):
4551 """get_score_accumulator_if_below(ScoringFunction self, bool deriv, double max) -> ScoreAccumulator"""
4552 return _IMP_kernel.ScoringFunction_get_score_accumulator_if_below(self, deriv, max)
4555 def get_score_accumulator_if_good(self, deriv):
4556 """get_score_accumulator_if_good(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
4557 return _IMP_kernel.ScoringFunction_get_score_accumulator_if_good(self, deriv)
4560 def get_score_accumulator(self, deriv):
4561 """get_score_accumulator(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
4562 return _IMP_kernel.ScoringFunction_get_score_accumulator(self, deriv)
4565 def __init__(self, m, name):
4566 """__init__(IMP::ScoringFunction self, Model m, std::string name) -> ScoringFunction"""
4567 if self.__class__ == ScoringFunction:
4571 this = _IMP_kernel.new_ScoringFunction(_self, m, name)
4573 self.this.append(this)
4576 if self.__class__ != ScoringFunction:
4577 _director_objects.register(self)
4582 def do_get_outputs(self):
4583 """do_get_outputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
4584 return _IMP_kernel.ScoringFunction_do_get_outputs(self)
4587 def evaluate_if_good(self, derivatives):
4588 """evaluate_if_good(ScoringFunction self, bool derivatives) -> double"""
4589 return _IMP_kernel.ScoringFunction_evaluate_if_good(self, derivatives)
4592 def evaluate(self, derivatives):
4593 """evaluate(ScoringFunction self, bool derivatives) -> double"""
4594 return _IMP_kernel.ScoringFunction_evaluate(self, derivatives)
4597 def evaluate_if_below(self, derivatives, max):
4598 """evaluate_if_below(ScoringFunction self, bool derivatives, double max) -> double"""
4599 return _IMP_kernel.ScoringFunction_evaluate_if_below(self, derivatives, max)
4602 def get_had_good_score(self):
4603 """get_had_good_score(ScoringFunction self) -> bool"""
4604 return _IMP_kernel.ScoringFunction_get_had_good_score(self)
4607 def get_last_score(self):
4608 """get_last_score(ScoringFunction self) -> double"""
4609 return _IMP_kernel.ScoringFunction_get_last_score(self)
4613 """create_restraints(ScoringFunction self) -> IMP::Restraints"""
4614 return _IMP_kernel.ScoringFunction_create_restraints(self)
4618 """__str__(ScoringFunction self) -> std::string"""
4619 return _IMP_kernel.ScoringFunction___str__(self)
4623 """__repr__(ScoringFunction self) -> std::string"""
4624 return _IMP_kernel.ScoringFunction___repr__(self)
4627 return _object_cast_to_ScoringFunction(o)
4628 get_from = staticmethod(get_from)
4630 def get_type_name(self):
4631 return self.__class__.__name__
4632 def do_show(self, out):
4634 def get_version_info(self):
4636 return VersionInfo(self.__module__,
4637 __import__(self.__module__).get_module_version())
4640 __import__(self.__module__).get_module_version())
4642 return _object_cast_to_ScoringFunction(o)
4643 get_from = staticmethod(get_from)
4645 __swig_destroy__ = _IMP_kernel.delete_ScoringFunction
4646 __del__ =
lambda self:
None
4647 def __disown__(self):
4649 _IMP_kernel.disown_ScoringFunction(self)
4650 return weakref_proxy(self)
4652 def do_destroy(self):
4653 """do_destroy(ScoringFunction self)"""
4654 return _IMP_kernel.ScoringFunction_do_destroy(self)
4657 def handle_set_has_required_score_states(self, arg0):
4658 """handle_set_has_required_score_states(ScoringFunction self, bool arg0)"""
4659 return _IMP_kernel.ScoringFunction_handle_set_has_required_score_states(self, arg0)
4662 def do_get_inputs(self):
4663 """do_get_inputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
4664 return _IMP_kernel.ScoringFunction_do_get_inputs(self)
4667 def do_get_interactions(self):
4668 """do_get_interactions(ScoringFunction self) -> IMP::ModelObjectsTemps"""
4669 return _IMP_kernel.ScoringFunction_do_get_interactions(self)
4671 ScoringFunction_swigregister = _IMP_kernel.ScoringFunction_swigregister
4672 ScoringFunction_swigregister(ScoringFunction)
4677 create_decomposition(IMP::RestraintsTemp const & rs) -> IMP::Restraints
4678 create_decomposition(ScoringFunction sf) -> IMP::ScoringFunctions
4680 return _IMP_kernel.create_decomposition(*args)
4681 class _ScoringFunctionAdaptor(_InputAdaptor):
4682 """Proxy of C++ IMP::ScoringFunctionAdaptor class"""
4683 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4684 __repr__ = _swig_repr
4686 def __init__(self, *args):
4688 __init__(IMP::ScoringFunctionAdaptor self) -> _ScoringFunctionAdaptor
4689 __init__(IMP::ScoringFunctionAdaptor self, ScoringFunction sf) -> _ScoringFunctionAdaptor
4690 __init__(IMP::ScoringFunctionAdaptor self, IMP::RestraintsTemp const & sf) -> _ScoringFunctionAdaptor
4691 __init__(IMP::ScoringFunctionAdaptor self, IMP::Restraints const & sf) -> _ScoringFunctionAdaptor
4692 __init__(IMP::ScoringFunctionAdaptor self, Restraint sf) -> _ScoringFunctionAdaptor
4693 __init__(IMP::ScoringFunctionAdaptor self, Model sf) -> _ScoringFunctionAdaptor
4695 this = _IMP_kernel.new__ScoringFunctionAdaptor(*args)
4697 self.this.append(this)
4700 __swig_destroy__ = _IMP_kernel.delete__ScoringFunctionAdaptor
4701 __del__ =
lambda self:
None
4702 _ScoringFunctionAdaptor_swigregister = _IMP_kernel._ScoringFunctionAdaptor_swigregister
4703 _ScoringFunctionAdaptor_swigregister(_ScoringFunctionAdaptor)
4708 show_restraint_hierarchy(_ScoringFunctionAdaptor rs, _ostream out)
4709 show_restraint_hierarchy(_ScoringFunctionAdaptor rs)
4711 return _IMP_kernel.show_restraint_hierarchy(*args)
4712 class Undecorator(Object):
4713 """Proxy of C++ IMP::Undecorator class"""
4714 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4716 def __init__(self, m, name):
4717 """__init__(IMP::Undecorator self, Model m, std::string name) -> Undecorator"""
4718 if self.__class__ == Undecorator:
4722 this = _IMP_kernel.new_Undecorator(_self, m, name)
4724 self.this.append(this)
4727 if self.__class__ != Undecorator:
4728 _director_objects.register(self)
4733 def teardown(self, pi):
4734 """teardown(Undecorator self, ParticleIndex pi)"""
4735 return _IMP_kernel.Undecorator_teardown(self, pi)
4739 """__str__(Undecorator self) -> std::string"""
4740 return _IMP_kernel.Undecorator___str__(self)
4744 """__repr__(Undecorator self) -> std::string"""
4745 return _IMP_kernel.Undecorator___repr__(self)
4748 return _object_cast_to_Undecorator(o)
4749 get_from = staticmethod(get_from)
4751 def get_type_name(self):
4752 return self.__class__.__name__
4753 def do_show(self, out):
4755 def get_version_info(self):
4757 return VersionInfo(self.__module__,
4758 __import__(self.__module__).get_module_version())
4761 __import__(self.__module__).get_module_version())
4763 return _object_cast_to_Undecorator(o)
4764 get_from = staticmethod(get_from)
4766 __swig_destroy__ = _IMP_kernel.delete_Undecorator
4767 __del__ =
lambda self:
None
4768 def __disown__(self):
4770 _IMP_kernel.disown_Undecorator(self)
4771 return weakref_proxy(self)
4773 def do_destroy(self):
4774 """do_destroy(Undecorator self)"""
4775 return _IMP_kernel.Undecorator_do_destroy(self)
4777 Undecorator_swigregister = _IMP_kernel.Undecorator_swigregister
4778 Undecorator_swigregister(Undecorator)
4780 class Model(Object):
4781 """Proxy of C++ IMP::Model class"""
4782 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4784 def __init__(self, *args):
4786 __init__(IMP::Model self, std::string name) -> Model
4787 __init__(IMP::Model self) -> Model
4789 this = _IMP_kernel.new_Model(*args)
4791 self.this.append(this)
4795 def clear_particle_caches(self, pi):
4796 """clear_particle_caches(Model self, ParticleIndex pi)"""
4797 return _IMP_kernel.Model_clear_particle_caches(self, pi)
4801 """add_particle(Model self, std::string name) -> ParticleIndex"""
4802 return _IMP_kernel.Model_add_particle(self, name)
4805 def get_particle_name(self, pi):
4806 """get_particle_name(Model self, ParticleIndex pi) -> std::string"""
4807 return _IMP_kernel.Model_get_particle_name(self, pi)
4810 def add_undecorator(self, pi, d):
4811 """add_undecorator(Model self, ParticleIndex pi, Undecorator d)"""
4812 return _IMP_kernel.Model_add_undecorator(self, pi, d)
4815 def remove_score_state(self, d):
4816 """remove_score_state(Model self, ScoreState d)"""
4817 return _IMP_kernel.Model_remove_score_state(self, d)
4820 def remove_score_states(self, d):
4821 """remove_score_states(Model self, IMP::ScoreStates const & d)"""
4822 return _IMP_kernel.Model_remove_score_states(self, d)
4825 def set_score_states(self, ps):
4826 """set_score_states(Model self, IMP::ScoreStates const & ps)"""
4827 return _IMP_kernel.Model_set_score_states(self, ps)
4830 def set_score_states_order(self, objs):
4831 """set_score_states_order(Model self, IMP::ScoreStates const & objs)"""
4832 return _IMP_kernel.Model_set_score_states_order(self, objs)
4835 def add_score_state(self, obj):
4836 """add_score_state(Model self, ScoreState obj) -> unsigned int"""
4837 return _IMP_kernel.Model_add_score_state(self, obj)
4840 def add_score_states(self, objs):
4841 """add_score_states(Model self, IMP::ScoreStates const & objs)"""
4842 return _IMP_kernel.Model_add_score_states(self, objs)
4845 def clear_score_states(self):
4846 """clear_score_states(Model self)"""
4847 return _IMP_kernel.Model_clear_score_states(self)
4850 def get_number_of_score_states(self):
4851 """get_number_of_score_states(Model self) -> unsigned int"""
4852 return _IMP_kernel.Model_get_number_of_score_states(self)
4855 def get_has_score_states(self):
4856 """get_has_score_states(Model self) -> bool"""
4857 return _IMP_kernel.Model_get_has_score_states(self)
4860 def get_score_state(self, i):
4861 """get_score_state(Model self, unsigned int i) -> ScoreState"""
4862 return _IMP_kernel.Model_get_score_state(self, i)
4865 def get_score_states(self):
4866 """get_score_states(Model self) -> IMP::ScoreStates"""
4867 return _IMP_kernel.Model_get_score_states(self)
4870 def reserve_score_states(self, sz):
4871 """reserve_score_states(Model self, unsigned int sz)"""
4872 return _IMP_kernel.Model_reserve_score_states(self, sz)
4876 """update(Model self)"""
4877 return _IMP_kernel.Model_update(self)
4880 def add_attribute(self, *args):
4882 add_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
4883 add_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
4884 add_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
4885 add_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
4886 add_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
4887 add_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
4888 add_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
4889 add_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
4891 return _IMP_kernel.Model_add_attribute(self, *args)
4894 def remove_attribute(self, *args):
4896 remove_attribute(Model self, FloatKey attribute_key, ParticleIndex particle)
4897 remove_attribute(Model self, IntKey attribute_key, ParticleIndex particle)
4898 remove_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle)
4899 remove_attribute(Model self, StringKey attribute_key, ParticleIndex particle)
4900 remove_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle)
4901 remove_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle)
4902 remove_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle)
4903 remove_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle)
4905 return _IMP_kernel.Model_remove_attribute(self, *args)
4908 def get_has_attribute(self, *args):
4910 get_has_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> bool
4911 get_has_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> bool
4912 get_has_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle) -> bool
4913 get_has_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> bool
4914 get_has_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> bool
4915 get_has_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> bool
4916 get_has_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> bool
4917 get_has_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> bool
4919 return _IMP_kernel.Model_get_has_attribute(self, *args)
4922 def set_attribute(self, *args):
4924 set_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
4925 set_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
4926 set_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
4927 set_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
4928 set_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
4929 set_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
4930 set_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
4931 set_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
4933 return _IMP_kernel.Model_set_attribute(self, *args)
4936 def get_attribute(self, *args):
4938 get_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> IMP::Float
4939 get_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> IMP::Int
4940 get_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle) -> IMP::Ints
4941 get_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> IMP::String
4942 get_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> IMP::ParticleIndexes
4943 get_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> ParticleIndex
4944 get_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> Object
4945 get_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> Object
4947 return _IMP_kernel.Model_get_attribute(self, *args)
4950 def add_cache_attribute(self, *args):
4952 add_cache_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
4953 add_cache_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
4954 add_cache_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
4955 add_cache_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
4956 add_cache_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
4957 add_cache_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
4958 add_cache_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
4959 add_cache_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
4961 return _IMP_kernel.Model_add_cache_attribute(self, *args)
4964 def set_is_optimized(self, arg2, arg3, arg4):
4965 """set_is_optimized(Model self, FloatKey arg2, ParticleIndex arg3, bool arg4)"""
4966 return _IMP_kernel.Model_set_is_optimized(self, arg2, arg3, arg4)
4969 def add_to_derivative(self, k, particle, v, da):
4970 """add_to_derivative(Model self, FloatKey k, ParticleIndex particle, double v, DerivativeAccumulator da)"""
4971 return _IMP_kernel.Model_add_to_derivative(self, k, particle, v, da)
4974 def get_particle(self, p):
4975 """get_particle(Model self, ParticleIndex p) -> Particle"""
4976 return _IMP_kernel.Model_get_particle(self, p)
4979 def get_has_particle(self, p):
4980 """get_has_particle(Model self, ParticleIndex p) -> bool"""
4981 return _IMP_kernel.Model_get_has_particle(self, p)
4984 def get_particle_indexes(self):
4985 """get_particle_indexes(Model self) -> IMP::ParticleIndexes"""
4986 return _IMP_kernel.Model_get_particle_indexes(self)
4989 def get_model_objects(self):
4990 """get_model_objects(Model self) -> IMP::ModelObjectsTemp"""
4991 return _IMP_kernel.Model_get_model_objects(self)
4994 def remove_particle(self, pi):
4995 """remove_particle(Model self, ParticleIndex pi)"""
4996 return _IMP_kernel.Model_remove_particle(self, pi)
4999 def add_data(self, mk, o):
5000 """add_data(Model self, ModelKey mk, Object o)"""
5001 return _IMP_kernel.Model_add_data(self, mk, o)
5004 def get_data(self, mk):
5005 """get_data(Model self, ModelKey mk) -> Object"""
5006 return _IMP_kernel.Model_get_data(self, mk)
5009 def remove_data(self, mk):
5010 """remove_data(Model self, ModelKey mk)"""
5011 return _IMP_kernel.Model_remove_data(self, mk)
5014 def get_has_data(self, mk):
5015 """get_has_data(Model self, ModelKey mk) -> bool"""
5016 return _IMP_kernel.Model_get_has_data(self, mk)
5019 def get_version_info(self):
5020 """get_version_info(Model self) -> VersionInfo"""
5021 return _IMP_kernel.Model_get_version_info(self)
5024 def create_model_scoring_function(self):
5025 """create_model_scoring_function(Model self) -> ScoringFunction"""
5026 return _IMP_kernel.Model_create_model_scoring_function(self)
5030 """add_restraint(Model self, Restraint r)"""
5031 return _IMP_kernel.Model_add_restraint(self, r)
5034 def do_destroy(self):
5035 """do_destroy(Model self)"""
5036 return _IMP_kernel.Model_do_destroy(self)
5039 def evaluate(self, tf, warn=True):
5041 evaluate(Model self, bool tf, bool warn=True) -> double
5042 evaluate(Model self, bool tf) -> double
5044 return _IMP_kernel.Model_evaluate(self, tf, warn)
5047 def get_root_restraint_set(self):
5048 """get_root_restraint_set(Model self) -> RestraintSet"""
5049 return _IMP_kernel.Model_get_root_restraint_set(self)
5053 """__str__(Model self) -> std::string"""
5054 return _IMP_kernel.Model___str__(self)
5058 """__repr__(Model self) -> std::string"""
5059 return _IMP_kernel.Model___repr__(self)
5062 return _object_cast_to_Model(o)
5063 get_from = staticmethod(get_from)
5065 Model_swigregister = _IMP_kernel.Model_swigregister
5066 Model_swigregister(Model)
5068 class Decorator(_Value):
5069 """Proxy of C++ IMP::Decorator class"""
5070 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5071 __repr__ = _swig_repr
5073 def __init__(self, p):
5074 """__init__(IMP::Decorator self, _ParticleAdaptor p) -> Decorator"""
5075 this = _IMP_kernel.new_Decorator(p)
5077 self.this.append(this)
5081 def __ne__(self, o):
5082 """__ne__(Decorator self, Object o) -> bool"""
5083 return _IMP_kernel.Decorator___ne__(self, o)
5086 def __lt__(self, o):
5087 """__lt__(Decorator self, Object o) -> bool"""
5088 return _IMP_kernel.Decorator___lt__(self, o)
5091 def __gt__(self, o):
5092 """__gt__(Decorator self, Object o) -> bool"""
5093 return _IMP_kernel.Decorator___gt__(self, o)
5096 def __ge__(self, o):
5097 """__ge__(Decorator self, Object o) -> bool"""
5098 return _IMP_kernel.Decorator___ge__(self, o)
5101 def __le__(self, o):
5102 """__le__(Decorator self, Object o) -> bool"""
5103 return _IMP_kernel.Decorator___le__(self, o)
5106 def get_particle(self):
5107 """get_particle(Decorator self) -> Particle"""
5108 return _IMP_kernel.Decorator_get_particle(self)
5111 def get_particle_index(self):
5112 """get_particle_index(Decorator self) -> ParticleIndex"""
5113 return _IMP_kernel.Decorator_get_particle_index(self)
5116 def get_model(self):
5117 """get_model(Decorator self) -> Model"""
5118 return _IMP_kernel.Decorator_get_model(self)
5121 def get_is_valid(self):
5122 """get_is_valid(Decorator self) -> bool"""
5123 return _IMP_kernel.Decorator_get_is_valid(self)
5127 """__hash__(Decorator self) -> std::size_t"""
5128 return _IMP_kernel.Decorator___hash__(self)
5131 def __eq__(self, *args):
5133 __eq__(Decorator self, Object o) -> bool
5134 __eq__(Decorator self, Decorator o) -> bool
5135 __eq__(Decorator self, Particle o) -> bool
5137 return _IMP_kernel.Decorator___eq__(self, *args)
5139 __swig_destroy__ = _IMP_kernel.delete_Decorator
5140 __del__ =
lambda self:
None
5141 Decorator_swigregister = _IMP_kernel.Decorator_swigregister
5142 Decorator_swigregister(Decorator)
5145 def check_particle(*args):
5147 check_particle(Model m, ParticleIndex pi)
5148 check_particle(Particle p)
5150 return _IMP_kernel.check_particle(*args)
5151 class UnaryFunction(Object):
5152 """Proxy of C++ IMP::UnaryFunction class"""
5153 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5155 def __init__(self, *args):
5157 __init__(IMP::UnaryFunction self, std::string name) -> UnaryFunction
5158 __init__(IMP::UnaryFunction self) -> UnaryFunction
5160 if self.__class__ == UnaryFunction:
5164 this = _IMP_kernel.new_UnaryFunction(_self, *args)
5166 self.this.append(this)
5169 if self.__class__ != UnaryFunction:
5170 _director_objects.register(self)
5175 def evaluate(self, feature):
5176 """evaluate(UnaryFunction self, double feature) -> double"""
5177 return _IMP_kernel.UnaryFunction_evaluate(self, feature)
5180 def evaluate_with_derivative(self, feature):
5181 """evaluate_with_derivative(UnaryFunction self, double feature) -> IMP::DerivativePair"""
5182 return _IMP_kernel.UnaryFunction_evaluate_with_derivative(self, feature)
5184 __swig_destroy__ = _IMP_kernel.delete_UnaryFunction
5185 __del__ =
lambda self:
None
5188 """__str__(UnaryFunction self) -> std::string"""
5189 return _IMP_kernel.UnaryFunction___str__(self)
5193 """__repr__(UnaryFunction self) -> std::string"""
5194 return _IMP_kernel.UnaryFunction___repr__(self)
5197 return _object_cast_to_UnaryFunction(o)
5198 get_from = staticmethod(get_from)
5200 def get_type_name(self):
5201 return self.__class__.__name__
5202 def do_show(self, out):
5204 def get_version_info(self):
5206 return VersionInfo(self.__module__,
5207 __import__(self.__module__).get_module_version())
5210 __import__(self.__module__).get_module_version())
5212 return _object_cast_to_UnaryFunction(o)
5213 get_from = staticmethod(get_from)
5215 def __disown__(self):
5217 _IMP_kernel.disown_UnaryFunction(self)
5218 return weakref_proxy(self)
5220 def do_destroy(self):
5221 """do_destroy(UnaryFunction self)"""
5222 return _IMP_kernel.UnaryFunction_do_destroy(self)
5224 UnaryFunction_swigregister = _IMP_kernel.UnaryFunction_swigregister
5225 UnaryFunction_swigregister(UnaryFunction)
5227 class OptimizerState(ModelObject):
5228 """Proxy of C++ IMP::OptimizerState class"""
5229 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5231 def __init__(self, m, name):
5232 """__init__(IMP::OptimizerState self, Model m, std::string name) -> OptimizerState"""
5233 if self.__class__ == OptimizerState:
5237 this = _IMP_kernel.new_OptimizerState(_self, m, name)
5239 self.this.append(this)
5242 if self.__class__ != OptimizerState:
5243 _director_objects.register(self)
5249 """update(OptimizerState self)"""
5250 return _IMP_kernel.OptimizerState_update(self)
5253 def set_is_optimizing(self, arg0):
5254 """set_is_optimizing(OptimizerState self, bool arg0)"""
5255 return _IMP_kernel.OptimizerState_set_is_optimizing(self, arg0)
5258 def get_optimizer(self):
5259 """get_optimizer(OptimizerState self) -> Optimizer"""
5260 return _IMP_kernel.OptimizerState_get_optimizer(self)
5263 def set_period(self, p):
5264 """set_period(OptimizerState self, unsigned int p)"""
5265 return _IMP_kernel.OptimizerState_set_period(self, p)
5268 def get_period(self):
5269 """get_period(OptimizerState self) -> unsigned int"""
5270 return _IMP_kernel.OptimizerState_get_period(self)
5274 """reset(OptimizerState self)"""
5275 return _IMP_kernel.OptimizerState_reset(self)
5278 def update_always(self):
5279 """update_always(OptimizerState self)"""
5280 return _IMP_kernel.OptimizerState_update_always(self)
5283 def get_number_of_updates(self):
5284 """get_number_of_updates(OptimizerState self) -> unsigned int"""
5285 return _IMP_kernel.OptimizerState_get_number_of_updates(self)
5288 def set_number_of_updates(self, n):
5289 """set_number_of_updates(OptimizerState self, unsigned int n)"""
5290 return _IMP_kernel.OptimizerState_set_number_of_updates(self, n)
5292 __swig_destroy__ = _IMP_kernel.delete_OptimizerState
5293 __del__ =
lambda self:
None
5295 def do_update(self, arg0):
5296 """do_update(OptimizerState self, unsigned int arg0)"""
5297 return _IMP_kernel.OptimizerState_do_update(self, arg0)
5300 def do_set_is_optimizing(self, arg0):
5301 """do_set_is_optimizing(OptimizerState self, bool arg0)"""
5302 return _IMP_kernel.OptimizerState_do_set_is_optimizing(self, arg0)
5305 def do_get_inputs(self):
5306 """do_get_inputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
5307 return _IMP_kernel.OptimizerState_do_get_inputs(self)
5310 def do_get_outputs(self):
5311 """do_get_outputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
5312 return _IMP_kernel.OptimizerState_do_get_outputs(self)
5316 """__str__(OptimizerState self) -> std::string"""
5317 return _IMP_kernel.OptimizerState___str__(self)
5321 """__repr__(OptimizerState self) -> std::string"""
5322 return _IMP_kernel.OptimizerState___repr__(self)
5325 return _object_cast_to_OptimizerState(o)
5326 get_from = staticmethod(get_from)
5328 def get_type_name(self):
5329 return self.__class__.__name__
5330 def do_show(self, out):
5332 def get_version_info(self):
5334 return VersionInfo(self.__module__,
5335 __import__(self.__module__).get_module_version())
5338 __import__(self.__module__).get_module_version())
5340 return _object_cast_to_OptimizerState(o)
5341 get_from = staticmethod(get_from)
5343 def __disown__(self):
5345 _IMP_kernel.disown_OptimizerState(self)
5346 return weakref_proxy(self)
5348 def do_destroy(self):
5349 """do_destroy(OptimizerState self)"""
5350 return _IMP_kernel.OptimizerState_do_destroy(self)
5353 def handle_set_has_required_score_states(self, arg0):
5354 """handle_set_has_required_score_states(OptimizerState self, bool arg0)"""
5355 return _IMP_kernel.OptimizerState_handle_set_has_required_score_states(self, arg0)
5358 def do_get_interactions(self):
5359 """do_get_interactions(OptimizerState self) -> IMP::ModelObjectsTemps"""
5360 return _IMP_kernel.OptimizerState_do_get_interactions(self)
5362 OptimizerState_swigregister = _IMP_kernel.OptimizerState_swigregister
5363 OptimizerState_swigregister(OptimizerState)
5365 class Refiner(_ParticleInputs, Object):
5366 """Proxy of C++ IMP::Refiner class"""
5367 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5369 def __init__(self, *args):
5371 __init__(IMP::Refiner self, std::string name, bool is_by_ref=False) -> Refiner
5372 __init__(IMP::Refiner self, std::string name) -> Refiner
5373 __init__(IMP::Refiner self) -> Refiner
5375 if self.__class__ == Refiner:
5379 this = _IMP_kernel.new_Refiner(_self, *args)
5381 self.this.append(this)
5384 if self.__class__ != Refiner:
5385 _director_objects.register(self)
5390 def get_can_refine(self, arg0):
5391 """get_can_refine(Refiner self, Particle arg0) -> bool"""
5392 return _IMP_kernel.Refiner_get_can_refine(self, arg0)
5395 def get_refined_indexes(self, m, pi):
5396 """get_refined_indexes(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes"""
5397 return _IMP_kernel.Refiner_get_refined_indexes(self, m, pi)
5400 def get_refined_indexes_by_ref(self, m, pi):
5401 """get_refined_indexes_by_ref(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes const &"""
5402 return _IMP_kernel.Refiner_get_refined_indexes_by_ref(self, m, pi)
5405 def get_is_by_ref_supported(self):
5406 """get_is_by_ref_supported(Refiner self) -> bool"""
5407 return _IMP_kernel.Refiner_get_is_by_ref_supported(self)
5410 def get_refined(self, *args):
5412 get_refined(Refiner self, Particle a) -> IMP::ParticlesTemp const
5413 get_refined(Refiner self, Particle a, unsigned int i) -> Particle
5415 return _IMP_kernel.Refiner_get_refined(self, *args)
5418 def get_number_of_refined(self, a):
5419 """get_number_of_refined(Refiner self, Particle a) -> unsigned int"""
5420 return _IMP_kernel.Refiner_get_number_of_refined(self, a)
5424 """__str__(Refiner self) -> std::string"""
5425 return _IMP_kernel.Refiner___str__(self)
5429 """__repr__(Refiner self) -> std::string"""
5430 return _IMP_kernel.Refiner___repr__(self)
5433 return _object_cast_to_Refiner(o)
5434 get_from = staticmethod(get_from)
5436 def get_type_name(self):
5437 return self.__class__.__name__
5438 def do_show(self, out):
5440 def get_version_info(self):
5442 return VersionInfo(self.__module__,
5443 __import__(self.__module__).get_module_version())
5446 __import__(self.__module__).get_module_version())
5448 return _object_cast_to_Refiner(o)
5449 get_from = staticmethod(get_from)
5451 __swig_destroy__ = _IMP_kernel.delete_Refiner
5452 __del__ =
lambda self:
None
5453 def __disown__(self):
5455 _IMP_kernel.disown_Refiner(self)
5456 return weakref_proxy(self)
5458 def do_get_inputs(self, m, pis):
5459 """do_get_inputs(Refiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5460 return _IMP_kernel.Refiner_do_get_inputs(self, m, pis)
5463 def do_destroy(self):
5464 """do_destroy(Refiner self)"""
5465 return _IMP_kernel.Refiner_do_destroy(self)
5467 Refiner_swigregister = _IMP_kernel.Refiner_swigregister
5468 Refiner_swigregister(Refiner)
5470 class Optimizer(ModelObject):
5471 """Proxy of C++ IMP::Optimizer class"""
5472 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5474 def set_is_optimizing_states(self, tf):
5475 """set_is_optimizing_states(Optimizer self, bool tf)"""
5476 return _IMP_kernel.Optimizer_set_is_optimizing_states(self, tf)
5479 def get_optimizer_state_inputs(self):
5480 """get_optimizer_state_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5481 return _IMP_kernel.Optimizer_get_optimizer_state_inputs(self)
5484 def do_get_inputs(self):
5485 """do_get_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5486 return _IMP_kernel.Optimizer_do_get_inputs(self)
5489 def do_get_outputs(self):
5490 """do_get_outputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5491 return _IMP_kernel.Optimizer_do_get_outputs(self)
5494 def __init__(self, *args):
5496 __init__(IMP::Optimizer self, Model m, std::string name) -> Optimizer
5497 __init__(IMP::Optimizer self, Model m) -> Optimizer
5499 if self.__class__ == Optimizer:
5503 this = _IMP_kernel.new_Optimizer(_self, *args)
5505 self.this.append(this)
5508 if self.__class__ != Optimizer:
5509 _director_objects.register(self)
5514 def optimize(self, max_steps):
5515 """optimize(Optimizer self, unsigned int max_steps) -> double"""
5516 return _IMP_kernel.Optimizer_optimize(self, max_steps)
5519 def set_stop_on_good_score(self, tf):
5520 """set_stop_on_good_score(Optimizer self, bool tf)"""
5521 return _IMP_kernel.Optimizer_set_stop_on_good_score(self, tf)
5524 def get_stop_on_good_score(self):
5525 """get_stop_on_good_score(Optimizer self) -> bool"""
5526 return _IMP_kernel.Optimizer_get_stop_on_good_score(self)
5529 def get_last_score(self):
5530 """get_last_score(Optimizer self) -> double"""
5531 return _IMP_kernel.Optimizer_get_last_score(self)
5534 def get_scoring_function(self):
5535 """get_scoring_function(Optimizer self) -> ScoringFunction"""
5536 return _IMP_kernel.Optimizer_get_scoring_function(self)
5539 def remove_optimizer_state(self, d):
5540 """remove_optimizer_state(Optimizer self, OptimizerState d)"""
5541 return _IMP_kernel.Optimizer_remove_optimizer_state(self, d)
5544 def remove_optimizer_states(self, d):
5545 """remove_optimizer_states(Optimizer self, IMP::OptimizerStates const & d)"""
5546 return _IMP_kernel.Optimizer_remove_optimizer_states(self, d)
5549 def set_optimizer_states(self, ps):
5550 """set_optimizer_states(Optimizer self, IMP::OptimizerStates const & ps)"""
5551 return _IMP_kernel.Optimizer_set_optimizer_states(self, ps)
5554 def set_optimizer_states_order(self, objs):
5555 """set_optimizer_states_order(Optimizer self, IMP::OptimizerStates const & objs)"""
5556 return _IMP_kernel.Optimizer_set_optimizer_states_order(self, objs)
5559 def add_optimizer_state(self, obj):
5560 """add_optimizer_state(Optimizer self, OptimizerState obj) -> unsigned int"""
5561 return _IMP_kernel.Optimizer_add_optimizer_state(self, obj)
5564 def add_optimizer_states(self, objs):
5565 """add_optimizer_states(Optimizer self, IMP::OptimizerStates const & objs)"""
5566 return _IMP_kernel.Optimizer_add_optimizer_states(self, objs)
5569 def clear_optimizer_states(self):
5570 """clear_optimizer_states(Optimizer self)"""
5571 return _IMP_kernel.Optimizer_clear_optimizer_states(self)
5574 def get_number_of_optimizer_states(self):
5575 """get_number_of_optimizer_states(Optimizer self) -> unsigned int"""
5576 return _IMP_kernel.Optimizer_get_number_of_optimizer_states(self)
5579 def get_has_optimizer_states(self):
5580 """get_has_optimizer_states(Optimizer self) -> bool"""
5581 return _IMP_kernel.Optimizer_get_has_optimizer_states(self)
5584 def get_optimizer_state(self, i):
5585 """get_optimizer_state(Optimizer self, unsigned int i) -> OptimizerState"""
5586 return _IMP_kernel.Optimizer_get_optimizer_state(self, i)
5589 def get_optimizer_states(self):
5590 """get_optimizer_states(Optimizer self) -> IMP::OptimizerStates"""
5591 return _IMP_kernel.Optimizer_get_optimizer_states(self)
5594 def reserve_optimizer_states(self, sz):
5595 """reserve_optimizer_states(Optimizer self, unsigned int sz)"""
5596 return _IMP_kernel.Optimizer_reserve_optimizer_states(self, sz)
5599 def set_scoring_function(self, sf):
5600 """set_scoring_function(Optimizer self, _ScoringFunctionAdaptor sf)"""
5601 return _IMP_kernel.Optimizer_set_scoring_function(self, sf)
5603 __swig_destroy__ = _IMP_kernel.delete_Optimizer
5605 """__del__(IMP::Optimizer self)"""
5606 _director_objects.cleanup()
5612 def do_optimize(self, ns):
5613 """do_optimize(Optimizer self, unsigned int ns) -> double"""
5614 return _IMP_kernel.Optimizer_do_optimize(self, ns)
5617 def update_states(self):
5618 """update_states(Optimizer self)"""
5619 return _IMP_kernel.Optimizer_update_states(self)
5623 """__str__(Optimizer self) -> std::string"""
5624 return _IMP_kernel.Optimizer___str__(self)
5628 """__repr__(Optimizer self) -> std::string"""
5629 return _IMP_kernel.Optimizer___repr__(self)
5632 return _object_cast_to_Optimizer(o)
5633 get_from = staticmethod(get_from)
5635 def get_type_name(self):
5636 return self.__class__.__name__
5637 def do_show(self, out):
5639 def get_version_info(self):
5641 return VersionInfo(self.__module__,
5642 __import__(self.__module__).get_module_version())
5645 __import__(self.__module__).get_module_version())
5647 return _object_cast_to_Optimizer(o)
5648 get_from = staticmethod(get_from)
5650 def __disown__(self):
5652 _IMP_kernel.disown_Optimizer(self)
5653 return weakref_proxy(self)
5655 def do_destroy(self):
5656 """do_destroy(Optimizer self)"""
5657 return _IMP_kernel.Optimizer_do_destroy(self)
5660 def handle_set_has_required_score_states(self, arg0):
5661 """handle_set_has_required_score_states(Optimizer self, bool arg0)"""
5662 return _IMP_kernel.Optimizer_handle_set_has_required_score_states(self, arg0)
5665 def do_get_interactions(self):
5666 """do_get_interactions(Optimizer self) -> IMP::ModelObjectsTemps"""
5667 return _IMP_kernel.Optimizer_do_get_interactions(self)
5669 Optimizer_swigregister = _IMP_kernel.Optimizer_swigregister
5670 Optimizer_swigregister(Optimizer)
5672 class AttributeOptimizer(Optimizer):
5673 """Proxy of C++ IMP::AttributeOptimizer class"""
5674 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5676 def __init__(self, *args):
5678 __init__(IMP::AttributeOptimizer self, Model m, std::string name) -> AttributeOptimizer
5679 __init__(IMP::AttributeOptimizer self, Model m) -> AttributeOptimizer
5681 if self.__class__ == AttributeOptimizer:
5685 this = _IMP_kernel.new_AttributeOptimizer(_self, *args)
5687 self.this.append(this)
5690 if self.__class__ != AttributeOptimizer:
5691 _director_objects.register(self)
5696 def get_optimized_attributes(self):
5697 """get_optimized_attributes(AttributeOptimizer self) -> IMP::FloatIndexes"""
5698 return _IMP_kernel.AttributeOptimizer_get_optimized_attributes(self)
5701 def set_value(self, fi, v):
5702 """set_value(AttributeOptimizer self, FloatIndex fi, double v)"""
5703 return _IMP_kernel.AttributeOptimizer_set_value(self, fi, v)
5706 def get_value(self, fi):
5707 """get_value(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
5708 return _IMP_kernel.AttributeOptimizer_get_value(self, fi)
5711 def get_derivative(self, fi):
5712 """get_derivative(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
5713 return _IMP_kernel.AttributeOptimizer_get_derivative(self, fi)
5716 def get_width(self, k):
5717 """get_width(AttributeOptimizer self, FloatKey k) -> double"""
5718 return _IMP_kernel.AttributeOptimizer_get_width(self, k)
5721 def set_scaled_value(self, fi, v):
5722 """set_scaled_value(AttributeOptimizer self, FloatIndex fi, IMP::Float v)"""
5723 return _IMP_kernel.AttributeOptimizer_set_scaled_value(self, fi, v)
5726 def get_scaled_value(self, fi):
5727 """get_scaled_value(AttributeOptimizer self, FloatIndex fi) -> double"""
5728 return _IMP_kernel.AttributeOptimizer_get_scaled_value(self, fi)
5731 def get_scaled_derivative(self, fi):
5732 """get_scaled_derivative(AttributeOptimizer self, FloatIndex fi) -> double"""
5733 return _IMP_kernel.AttributeOptimizer_get_scaled_derivative(self, fi)
5736 def clear_range_cache(self):
5737 """clear_range_cache(AttributeOptimizer self)"""
5738 return _IMP_kernel.AttributeOptimizer_clear_range_cache(self)
5742 """__str__(AttributeOptimizer self) -> std::string"""
5743 return _IMP_kernel.AttributeOptimizer___str__(self)
5747 """__repr__(AttributeOptimizer self) -> std::string"""
5748 return _IMP_kernel.AttributeOptimizer___repr__(self)
5751 return _object_cast_to_AttributeOptimizer(o)
5752 get_from = staticmethod(get_from)
5754 def get_type_name(self):
5755 return self.__class__.__name__
5756 def do_show(self, out):
5758 def get_version_info(self):
5760 return VersionInfo(self.__module__,
5761 __import__(self.__module__).get_module_version())
5764 __import__(self.__module__).get_module_version())
5766 return _object_cast_to_AttributeOptimizer(o)
5767 get_from = staticmethod(get_from)
5769 __swig_destroy__ = _IMP_kernel.delete_AttributeOptimizer
5770 __del__ =
lambda self:
None
5771 def __disown__(self):
5773 _IMP_kernel.disown_AttributeOptimizer(self)
5774 return weakref_proxy(self)
5776 def do_destroy(self):
5777 """do_destroy(AttributeOptimizer self)"""
5778 return _IMP_kernel.AttributeOptimizer_do_destroy(self)
5781 def handle_set_has_required_score_states(self, arg0):
5782 """handle_set_has_required_score_states(AttributeOptimizer self, bool arg0)"""
5783 return _IMP_kernel.AttributeOptimizer_handle_set_has_required_score_states(self, arg0)
5786 def do_get_inputs(self):
5787 """do_get_inputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
5788 return _IMP_kernel.AttributeOptimizer_do_get_inputs(self)
5791 def do_get_outputs(self):
5792 """do_get_outputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
5793 return _IMP_kernel.AttributeOptimizer_do_get_outputs(self)
5796 def do_get_interactions(self):
5797 """do_get_interactions(AttributeOptimizer self) -> IMP::ModelObjectsTemps"""
5798 return _IMP_kernel.AttributeOptimizer_do_get_interactions(self)
5801 def do_optimize(self, ns):
5802 """do_optimize(AttributeOptimizer self, unsigned int ns) -> double"""
5803 return _IMP_kernel.AttributeOptimizer_do_optimize(self, ns)
5805 AttributeOptimizer_swigregister = _IMP_kernel.AttributeOptimizer_swigregister
5806 AttributeOptimizer_swigregister(AttributeOptimizer)
5808 class ConfigurationSet(Object):
5809 """Proxy of C++ IMP::ConfigurationSet class"""
5810 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5812 def __init__(self, *args):
5814 __init__(IMP::ConfigurationSet self, Model m, std::string name) -> ConfigurationSet
5815 __init__(IMP::ConfigurationSet self, Model m) -> ConfigurationSet
5817 this = _IMP_kernel.new_ConfigurationSet(*args)
5819 self.this.append(this)
5823 def save_configuration(self):
5824 """save_configuration(ConfigurationSet self)"""
5825 return _IMP_kernel.ConfigurationSet_save_configuration(self)
5828 def get_number_of_configurations(self):
5829 """get_number_of_configurations(ConfigurationSet self) -> unsigned int"""
5830 return _IMP_kernel.ConfigurationSet_get_number_of_configurations(self)
5833 def load_configuration(self, i):
5834 """load_configuration(ConfigurationSet self, int i)"""
5835 return _IMP_kernel.ConfigurationSet_load_configuration(self, i)
5838 def remove_configuration(self, i):
5839 """remove_configuration(ConfigurationSet self, unsigned int i)"""
5840 return _IMP_kernel.ConfigurationSet_remove_configuration(self, i)
5843 def get_model(self):
5844 """get_model(ConfigurationSet self) -> Model"""
5845 return _IMP_kernel.ConfigurationSet_get_model(self)
5848 def get_version_info(self):
5849 """get_version_info(ConfigurationSet self) -> VersionInfo"""
5850 return _IMP_kernel.ConfigurationSet_get_version_info(self)
5854 """__str__(ConfigurationSet self) -> std::string"""
5855 return _IMP_kernel.ConfigurationSet___str__(self)
5859 """__repr__(ConfigurationSet self) -> std::string"""
5860 return _IMP_kernel.ConfigurationSet___repr__(self)
5863 return _object_cast_to_ConfigurationSet(o)
5864 get_from = staticmethod(get_from)
5866 ConfigurationSet_swigregister = _IMP_kernel.ConfigurationSet_swigregister
5867 ConfigurationSet_swigregister(ConfigurationSet)
5869 class SaveToConfigurationSetOptimizerState(OptimizerState):
5870 """Proxy of C++ IMP::SaveToConfigurationSetOptimizerState class"""
5871 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5873 def __init__(self, cs):
5874 """__init__(IMP::SaveToConfigurationSetOptimizerState self, ConfigurationSet cs) -> SaveToConfigurationSetOptimizerState"""
5875 this = _IMP_kernel.new_SaveToConfigurationSetOptimizerState(cs)
5877 self.this.append(this)
5881 def get_version_info(self):
5882 """get_version_info(SaveToConfigurationSetOptimizerState self) -> VersionInfo"""
5883 return _IMP_kernel.SaveToConfigurationSetOptimizerState_get_version_info(self)
5887 """__str__(SaveToConfigurationSetOptimizerState self) -> std::string"""
5888 return _IMP_kernel.SaveToConfigurationSetOptimizerState___str__(self)
5892 """__repr__(SaveToConfigurationSetOptimizerState self) -> std::string"""
5893 return _IMP_kernel.SaveToConfigurationSetOptimizerState___repr__(self)
5896 return _object_cast_to_SaveToConfigurationSetOptimizerState(o)
5897 get_from = staticmethod(get_from)
5899 SaveToConfigurationSetOptimizerState_swigregister = _IMP_kernel.SaveToConfigurationSetOptimizerState_swigregister
5900 SaveToConfigurationSetOptimizerState_swigregister(SaveToConfigurationSetOptimizerState)
5902 class Configuration(Object):
5903 """Proxy of C++ IMP::Configuration class"""
5904 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5906 def __init__(self, *args):
5908 __init__(IMP::Configuration self, Model m, std::string name) -> Configuration
5909 __init__(IMP::Configuration self, Model m) -> Configuration
5910 __init__(IMP::Configuration self, Model m, Configuration base, std::string name) -> Configuration
5911 __init__(IMP::Configuration self, Model m, Configuration base) -> Configuration
5913 this = _IMP_kernel.new_Configuration(*args)
5915 self.this.append(this)
5919 def load_configuration(self):
5920 """load_configuration(Configuration self)"""
5921 return _IMP_kernel.Configuration_load_configuration(self)
5924 def swap_configuration(self):
5925 """swap_configuration(Configuration self)"""
5926 return _IMP_kernel.Configuration_swap_configuration(self)
5929 def get_version_info(self):
5930 """get_version_info(Configuration self) -> VersionInfo"""
5931 return _IMP_kernel.Configuration_get_version_info(self)
5935 """__str__(Configuration self) -> std::string"""
5936 return _IMP_kernel.Configuration___str__(self)
5940 """__repr__(Configuration self) -> std::string"""
5941 return _IMP_kernel.Configuration___repr__(self)
5944 return _object_cast_to_Configuration(o)
5945 get_from = staticmethod(get_from)
5947 Configuration_swigregister = _IMP_kernel.Configuration_swigregister
5948 Configuration_swigregister(Configuration)
5950 class Sampler(Object):
5951 """Proxy of C++ IMP::Sampler class"""
5952 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5954 def __init__(self, *args):
5956 __init__(IMP::Sampler self, Model m, std::string name) -> Sampler
5957 __init__(IMP::Sampler self, Model m) -> Sampler
5959 if self.__class__ == Sampler:
5963 this = _IMP_kernel.new_Sampler(_self, *args)
5965 self.this.append(this)
5968 if self.__class__ != Sampler:
5969 _director_objects.register(self)
5974 def create_sample(self):
5975 """create_sample(Sampler self) -> ConfigurationSet"""
5976 return _IMP_kernel.Sampler_create_sample(self)
5979 def get_scoring_function(self):
5980 """get_scoring_function(Sampler self) -> ScoringFunction"""
5981 return _IMP_kernel.Sampler_get_scoring_function(self)
5984 def set_scoring_function(self, sf):
5985 """set_scoring_function(Sampler self, _ScoringFunctionAdaptor sf)"""
5986 return _IMP_kernel.Sampler_set_scoring_function(self, sf)
5989 def get_model(self):
5990 """get_model(Sampler self) -> Model"""
5991 return _IMP_kernel.Sampler_get_model(self)
5994 def do_sample(self):
5995 """do_sample(Sampler self) -> ConfigurationSet"""
5996 return _IMP_kernel.Sampler_do_sample(self)
5998 __swig_destroy__ = _IMP_kernel.delete_Sampler
5999 __del__ =
lambda self:
None
6002 """__str__(Sampler self) -> std::string"""
6003 return _IMP_kernel.Sampler___str__(self)
6007 """__repr__(Sampler self) -> std::string"""
6008 return _IMP_kernel.Sampler___repr__(self)
6011 return _object_cast_to_Sampler(o)
6012 get_from = staticmethod(get_from)
6014 def get_type_name(self):
6015 return self.__class__.__name__
6016 def do_show(self, out):
6018 def get_version_info(self):
6020 return VersionInfo(self.__module__,
6021 __import__(self.__module__).get_module_version())
6024 __import__(self.__module__).get_module_version())
6026 return _object_cast_to_Sampler(o)
6027 get_from = staticmethod(get_from)
6029 def __disown__(self):
6031 _IMP_kernel.disown_Sampler(self)
6032 return weakref_proxy(self)
6034 def do_destroy(self):
6035 """do_destroy(Sampler self)"""
6036 return _IMP_kernel.Sampler_do_destroy(self)
6038 Sampler_swigregister = _IMP_kernel.Sampler_swigregister
6039 Sampler_swigregister(Sampler)
6041 class PairModifier(_ParticleInputs, _ParticleOutputs, Object):
6042 """Proxy of C++ IMP::PairModifier class"""
6043 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6045 def __init__(self, *args):
6047 __init__(IMP::PairModifier self, std::string name) -> PairModifier
6048 __init__(IMP::PairModifier self) -> PairModifier
6050 if self.__class__ == PairModifier:
6054 this = _IMP_kernel.new_PairModifier(_self, *args)
6056 self.this.append(this)
6059 if self.__class__ != PairModifier:
6060 _director_objects.register(self)
6065 def apply(self, vt):
6066 """apply(PairModifier self, IMP::ParticlePair const & vt)"""
6067 return _IMP_kernel.PairModifier_apply(self, vt)
6070 def apply_index(self, m, v):
6071 """apply_index(PairModifier self, Model m, IMP::ParticleIndexPair const & v)"""
6072 return _IMP_kernel.PairModifier_apply_index(self, m, v)
6075 def apply_indexes(self, m, o, lower_bound, upper_bound):
6076 """apply_indexes(PairModifier self, Model m, IMP::ParticleIndexPairs const & o, unsigned int lower_bound, unsigned int upper_bound)"""
6077 return _IMP_kernel.PairModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
6081 """__str__(PairModifier self) -> std::string"""
6082 return _IMP_kernel.PairModifier___str__(self)
6086 """__repr__(PairModifier self) -> std::string"""
6087 return _IMP_kernel.PairModifier___repr__(self)
6090 return _object_cast_to_PairModifier(o)
6091 get_from = staticmethod(get_from)
6093 def get_type_name(self):
6094 return self.__class__.__name__
6095 def do_show(self, out):
6097 def get_version_info(self):
6099 return VersionInfo(self.__module__,
6100 __import__(self.__module__).get_module_version())
6103 __import__(self.__module__).get_module_version())
6105 return _object_cast_to_PairModifier(o)
6106 get_from = staticmethod(get_from)
6108 __swig_destroy__ = _IMP_kernel.delete_PairModifier
6109 __del__ =
lambda self:
None
6110 def __disown__(self):
6112 _IMP_kernel.disown_PairModifier(self)
6113 return weakref_proxy(self)
6115 def do_get_inputs(self, m, pis):
6116 """do_get_inputs(PairModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6117 return _IMP_kernel.PairModifier_do_get_inputs(self, m, pis)
6120 def do_get_outputs(self, m, pis):
6121 """do_get_outputs(PairModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6122 return _IMP_kernel.PairModifier_do_get_outputs(self, m, pis)
6125 def do_destroy(self):
6126 """do_destroy(PairModifier self)"""
6127 return _IMP_kernel.PairModifier_do_destroy(self)
6129 PairModifier_swigregister = _IMP_kernel.PairModifier_swigregister
6130 PairModifier_swigregister(PairModifier)
6132 class PairScore(_ParticleInputs, Object):
6133 """Proxy of C++ IMP::PairScore class"""
6134 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6136 def __init__(self, *args):
6138 __init__(IMP::PairScore self, std::string name) -> PairScore
6139 __init__(IMP::PairScore self) -> PairScore
6141 if self.__class__ == PairScore:
6145 this = _IMP_kernel.new_PairScore(_self, *args)
6147 self.this.append(this)
6150 if self.__class__ != PairScore:
6151 _director_objects.register(self)
6156 def evaluate_index(self, m, vt, da):
6157 """evaluate_index(PairScore self, Model m, IMP::ParticleIndexPair const & vt, DerivativeAccumulator da) -> double"""
6158 return _IMP_kernel.PairScore_evaluate_index(self, m, vt, da)
6161 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
6162 """evaluate_indexes(PairScore self, Model m, IMP::ParticleIndexPairs const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
6163 return _IMP_kernel.PairScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
6166 def evaluate_if_good_index(self, m, vt, da, max):
6167 """evaluate_if_good_index(PairScore self, Model m, IMP::ParticleIndexPair const & vt, DerivativeAccumulator da, double max) -> double"""
6168 return _IMP_kernel.PairScore_evaluate_if_good_index(self, m, vt, da, max)
6171 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
6172 """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"""
6173 return _IMP_kernel.PairScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
6176 def create_current_decomposition(self, m, vt):
6177 """create_current_decomposition(PairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
6178 return _IMP_kernel.PairScore_create_current_decomposition(self, m, vt)
6181 def do_create_current_decomposition(self, m, vt):
6182 """do_create_current_decomposition(PairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
6183 return _IMP_kernel.PairScore_do_create_current_decomposition(self, m, vt)
6185 __swig_destroy__ = _IMP_kernel.delete_PairScore
6186 __del__ =
lambda self:
None
6189 """__str__(PairScore self) -> std::string"""
6190 return _IMP_kernel.PairScore___str__(self)
6194 """__repr__(PairScore self) -> std::string"""
6195 return _IMP_kernel.PairScore___repr__(self)
6198 return _object_cast_to_PairScore(o)
6199 get_from = staticmethod(get_from)
6201 def get_type_name(self):
6202 return self.__class__.__name__
6203 def do_show(self, out):
6205 def get_version_info(self):
6207 return VersionInfo(self.__module__,
6208 __import__(self.__module__).get_module_version())
6211 __import__(self.__module__).get_module_version())
6213 return _object_cast_to_PairScore(o)
6214 get_from = staticmethod(get_from)
6216 def __disown__(self):
6218 _IMP_kernel.disown_PairScore(self)
6219 return weakref_proxy(self)
6221 def do_get_inputs(self, m, pis):
6222 """do_get_inputs(PairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6223 return _IMP_kernel.PairScore_do_get_inputs(self, m, pis)
6226 def do_destroy(self):
6227 """do_destroy(PairScore self)"""
6228 return _IMP_kernel.PairScore_do_destroy(self)
6230 PairScore_swigregister = _IMP_kernel.PairScore_swigregister
6231 PairScore_swigregister(PairScore)
6233 class PairPredicate(_ParticleInputs, Object):
6234 """Proxy of C++ IMP::PairPredicate class"""
6235 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6237 def __init__(self, *args):
6239 __init__(IMP::PairPredicate self, std::string name) -> PairPredicate
6240 __init__(IMP::PairPredicate self) -> PairPredicate
6242 if self.__class__ == PairPredicate:
6246 this = _IMP_kernel.new_PairPredicate(_self, *args)
6248 self.this.append(this)
6251 if self.__class__ != PairPredicate:
6252 _director_objects.register(self)
6257 def get_value(self, *args):
6259 get_value(PairPredicate self, IMP::ParticlePair const & vt) -> int
6260 get_value(PairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
6262 return _IMP_kernel.PairPredicate_get_value(self, *args)
6265 def __call__(self, m, vt):
6266 """__call__(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int"""
6267 return _IMP_kernel.PairPredicate___call__(self, m, vt)
6270 def get_value_index(self, *args):
6272 get_value_index(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int
6273 get_value_index(PairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
6275 return _IMP_kernel.PairPredicate_get_value_index(self, *args)
6277 __swig_destroy__ = _IMP_kernel.delete_PairPredicate
6278 __del__ =
lambda self:
None
6281 """__str__(PairPredicate self) -> std::string"""
6282 return _IMP_kernel.PairPredicate___str__(self)
6286 """__repr__(PairPredicate self) -> std::string"""
6287 return _IMP_kernel.PairPredicate___repr__(self)
6290 return _object_cast_to_PairPredicate(o)
6291 get_from = staticmethod(get_from)
6293 def get_type_name(self):
6294 return self.__class__.__name__
6295 def do_show(self, out):
6297 def get_version_info(self):
6299 return VersionInfo(self.__module__,
6300 __import__(self.__module__).get_module_version())
6303 __import__(self.__module__).get_module_version())
6305 return _object_cast_to_PairPredicate(o)
6306 get_from = staticmethod(get_from)
6308 def __disown__(self):
6310 _IMP_kernel.disown_PairPredicate(self)
6311 return weakref_proxy(self)
6313 def do_get_inputs(self, m, pis):
6314 """do_get_inputs(PairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6315 return _IMP_kernel.PairPredicate_do_get_inputs(self, m, pis)
6318 def do_destroy(self):
6319 """do_destroy(PairPredicate self)"""
6320 return _IMP_kernel.PairPredicate_do_destroy(self)
6322 PairPredicate_swigregister = _IMP_kernel.PairPredicate_swigregister
6323 PairPredicate_swigregister(PairPredicate)
6325 class PairContainer(Container):
6326 """Proxy of C++ IMP::PairContainer class"""
6327 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6329 def apply_generic(self, m):
6330 """apply_generic(PairContainer self, PairModifier m)"""
6331 return _IMP_kernel.PairContainer_apply_generic(self, m)
6334 def apply(self, sm):
6335 """apply(PairContainer self, PairModifier sm)"""
6336 return _IMP_kernel.PairContainer_apply(self, sm)
6339 def get_range_indexes(self):
6340 """get_range_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
6341 return _IMP_kernel.PairContainer_get_range_indexes(self)
6344 def get_contents(self):
6345 """get_contents(PairContainer self) -> IMP::ParticleIndexPairs const &"""
6346 return _IMP_kernel.PairContainer_get_contents(self)
6350 """get_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
6351 return _IMP_kernel.PairContainer_get_indexes(self)
6354 def get(self, *args):
6356 get(PairContainer self) -> IMP::ParticlePairsTemp
6357 get(PairContainer self, unsigned int i) -> IMP::ParticlePair
6359 return _IMP_kernel.PairContainer_get(self, *args)
6362 def get_number(self):
6363 """get_number(PairContainer self) -> unsigned int"""
6364 return _IMP_kernel.PairContainer_get_number(self)
6367 def get_particle_pairs(self):
6368 """get_particle_pairs(PairContainer self) -> IMP::ParticlePairsTemp"""
6369 return _IMP_kernel.PairContainer_get_particle_pairs(self)
6372 def get_particle_pair(self, i):
6373 """get_particle_pair(PairContainer self, unsigned int i) -> IMP::ParticlePair"""
6374 return _IMP_kernel.PairContainer_get_particle_pair(self, i)
6377 def __init__(self, *args):
6379 __init__(IMP::PairContainer self, Model m, std::string name) -> PairContainer
6380 __init__(IMP::PairContainer self, Model m) -> PairContainer
6382 if self.__class__ == PairContainer:
6386 this = _IMP_kernel.new_PairContainer(_self, *args)
6388 self.this.append(this)
6391 if self.__class__ != PairContainer:
6392 _director_objects.register(self)
6397 def do_apply(self, sm):
6398 """do_apply(PairContainer self, PairModifier sm)"""
6399 return _IMP_kernel.PairContainer_do_apply(self, sm)
6402 def do_get_provides_access(self):
6403 """do_get_provides_access(PairContainer self) -> bool"""
6404 return _IMP_kernel.PairContainer_do_get_provides_access(self)
6406 __swig_destroy__ = _IMP_kernel.delete_PairContainer
6407 __del__ =
lambda self:
None
6410 """__str__(PairContainer self) -> std::string"""
6411 return _IMP_kernel.PairContainer___str__(self)
6415 """__repr__(PairContainer self) -> std::string"""
6416 return _IMP_kernel.PairContainer___repr__(self)
6419 return _object_cast_to_PairContainer(o)
6420 get_from = staticmethod(get_from)
6422 def get_type_name(self):
6423 return self.__class__.__name__
6424 def do_show(self, out):
6426 def get_version_info(self):
6428 return VersionInfo(self.__module__,
6429 __import__(self.__module__).get_module_version())
6432 __import__(self.__module__).get_module_version())
6434 return _object_cast_to_PairContainer(o)
6435 get_from = staticmethod(get_from)
6437 def __disown__(self):
6439 _IMP_kernel.disown_PairContainer(self)
6440 return weakref_proxy(self)
6442 def do_destroy(self):
6443 """do_destroy(PairContainer self)"""
6444 return _IMP_kernel.PairContainer_do_destroy(self)
6447 def handle_set_has_required_score_states(self, arg0):
6448 """handle_set_has_required_score_states(PairContainer self, bool arg0)"""
6449 return _IMP_kernel.PairContainer_handle_set_has_required_score_states(self, arg0)
6452 def do_get_inputs(self):
6453 """do_get_inputs(PairContainer self) -> IMP::ModelObjectsTemp"""
6454 return _IMP_kernel.PairContainer_do_get_inputs(self)
6457 def do_get_interactions(self):
6458 """do_get_interactions(PairContainer self) -> IMP::ModelObjectsTemps"""
6459 return _IMP_kernel.PairContainer_do_get_interactions(self)
6462 def do_get_contents_hash(self):
6463 """do_get_contents_hash(PairContainer self) -> std::size_t"""
6464 return _IMP_kernel.PairContainer_do_get_contents_hash(self)
6466 PairContainer_swigregister = _IMP_kernel.PairContainer_swigregister
6467 PairContainer_swigregister(PairContainer)
6469 class _PairContainerAdaptor(_InputAdaptor):
6470 """Proxy of C++ IMP::PairContainerAdaptor class"""
6471 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6472 __repr__ = _swig_repr
6474 def __init__(self, *args):
6476 __init__(IMP::PairContainerAdaptor self) -> _PairContainerAdaptor
6477 __init__(IMP::PairContainerAdaptor self, PairContainer c) -> _PairContainerAdaptor
6478 __init__(IMP::PairContainerAdaptor self, IMP::ParticlePairsTemp const & t) -> _PairContainerAdaptor
6480 this = _IMP_kernel.new__PairContainerAdaptor(*args)
6482 self.this.append(this)
6486 def set_name_if_default(self, name):
6487 """set_name_if_default(_PairContainerAdaptor self, std::string name)"""
6488 return _IMP_kernel._PairContainerAdaptor_set_name_if_default(self, name)
6490 __swig_destroy__ = _IMP_kernel.delete__PairContainerAdaptor
6491 __del__ =
lambda self:
None
6492 _PairContainerAdaptor_swigregister = _IMP_kernel._PairContainerAdaptor_swigregister
6493 _PairContainerAdaptor_swigregister(_PairContainerAdaptor)
6495 class QuadModifier(_ParticleInputs, _ParticleOutputs, Object):
6496 """Proxy of C++ IMP::QuadModifier class"""
6497 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6499 def __init__(self, *args):
6501 __init__(IMP::QuadModifier self, std::string name) -> QuadModifier
6502 __init__(IMP::QuadModifier self) -> QuadModifier
6504 if self.__class__ == QuadModifier:
6508 this = _IMP_kernel.new_QuadModifier(_self, *args)
6510 self.this.append(this)
6513 if self.__class__ != QuadModifier:
6514 _director_objects.register(self)
6519 def apply(self, vt):
6520 """apply(QuadModifier self, IMP::ParticleQuad const & vt)"""
6521 return _IMP_kernel.QuadModifier_apply(self, vt)
6524 def apply_index(self, m, v):
6525 """apply_index(QuadModifier self, Model m, IMP::ParticleIndexQuad const & v)"""
6526 return _IMP_kernel.QuadModifier_apply_index(self, m, v)
6529 def apply_indexes(self, m, o, lower_bound, upper_bound):
6530 """apply_indexes(QuadModifier self, Model m, IMP::ParticleIndexQuads const & o, unsigned int lower_bound, unsigned int upper_bound)"""
6531 return _IMP_kernel.QuadModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
6535 """__str__(QuadModifier self) -> std::string"""
6536 return _IMP_kernel.QuadModifier___str__(self)
6540 """__repr__(QuadModifier self) -> std::string"""
6541 return _IMP_kernel.QuadModifier___repr__(self)
6544 return _object_cast_to_QuadModifier(o)
6545 get_from = staticmethod(get_from)
6547 def get_type_name(self):
6548 return self.__class__.__name__
6549 def do_show(self, out):
6551 def get_version_info(self):
6553 return VersionInfo(self.__module__,
6554 __import__(self.__module__).get_module_version())
6557 __import__(self.__module__).get_module_version())
6559 return _object_cast_to_QuadModifier(o)
6560 get_from = staticmethod(get_from)
6562 __swig_destroy__ = _IMP_kernel.delete_QuadModifier
6563 __del__ =
lambda self:
None
6564 def __disown__(self):
6566 _IMP_kernel.disown_QuadModifier(self)
6567 return weakref_proxy(self)
6569 def do_get_inputs(self, m, pis):
6570 """do_get_inputs(QuadModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6571 return _IMP_kernel.QuadModifier_do_get_inputs(self, m, pis)
6574 def do_get_outputs(self, m, pis):
6575 """do_get_outputs(QuadModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6576 return _IMP_kernel.QuadModifier_do_get_outputs(self, m, pis)
6579 def do_destroy(self):
6580 """do_destroy(QuadModifier self)"""
6581 return _IMP_kernel.QuadModifier_do_destroy(self)
6583 QuadModifier_swigregister = _IMP_kernel.QuadModifier_swigregister
6584 QuadModifier_swigregister(QuadModifier)
6586 class QuadScore(_ParticleInputs, Object):
6587 """Proxy of C++ IMP::QuadScore class"""
6588 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6590 def __init__(self, *args):
6592 __init__(IMP::QuadScore self, std::string name) -> QuadScore
6593 __init__(IMP::QuadScore self) -> QuadScore
6595 if self.__class__ == QuadScore:
6599 this = _IMP_kernel.new_QuadScore(_self, *args)
6601 self.this.append(this)
6604 if self.__class__ != QuadScore:
6605 _director_objects.register(self)
6610 def evaluate_index(self, m, vt, da):
6611 """evaluate_index(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt, DerivativeAccumulator da) -> double"""
6612 return _IMP_kernel.QuadScore_evaluate_index(self, m, vt, da)
6615 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
6616 """evaluate_indexes(QuadScore self, Model m, IMP::ParticleIndexQuads const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
6617 return _IMP_kernel.QuadScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
6620 def evaluate_if_good_index(self, m, vt, da, max):
6621 """evaluate_if_good_index(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt, DerivativeAccumulator da, double max) -> double"""
6622 return _IMP_kernel.QuadScore_evaluate_if_good_index(self, m, vt, da, max)
6625 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
6626 """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"""
6627 return _IMP_kernel.QuadScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
6630 def create_current_decomposition(self, m, vt):
6631 """create_current_decomposition(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
6632 return _IMP_kernel.QuadScore_create_current_decomposition(self, m, vt)
6635 def do_create_current_decomposition(self, m, vt):
6636 """do_create_current_decomposition(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
6637 return _IMP_kernel.QuadScore_do_create_current_decomposition(self, m, vt)
6639 __swig_destroy__ = _IMP_kernel.delete_QuadScore
6640 __del__ =
lambda self:
None
6643 """__str__(QuadScore self) -> std::string"""
6644 return _IMP_kernel.QuadScore___str__(self)
6648 """__repr__(QuadScore self) -> std::string"""
6649 return _IMP_kernel.QuadScore___repr__(self)
6652 return _object_cast_to_QuadScore(o)
6653 get_from = staticmethod(get_from)
6655 def get_type_name(self):
6656 return self.__class__.__name__
6657 def do_show(self, out):
6659 def get_version_info(self):
6661 return VersionInfo(self.__module__,
6662 __import__(self.__module__).get_module_version())
6665 __import__(self.__module__).get_module_version())
6667 return _object_cast_to_QuadScore(o)
6668 get_from = staticmethod(get_from)
6670 def __disown__(self):
6672 _IMP_kernel.disown_QuadScore(self)
6673 return weakref_proxy(self)
6675 def do_get_inputs(self, m, pis):
6676 """do_get_inputs(QuadScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6677 return _IMP_kernel.QuadScore_do_get_inputs(self, m, pis)
6680 def do_destroy(self):
6681 """do_destroy(QuadScore self)"""
6682 return _IMP_kernel.QuadScore_do_destroy(self)
6684 QuadScore_swigregister = _IMP_kernel.QuadScore_swigregister
6685 QuadScore_swigregister(QuadScore)
6687 class QuadPredicate(_ParticleInputs, Object):
6688 """Proxy of C++ IMP::QuadPredicate class"""
6689 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6691 def __init__(self, *args):
6693 __init__(IMP::QuadPredicate self, std::string name) -> QuadPredicate
6694 __init__(IMP::QuadPredicate self) -> QuadPredicate
6696 if self.__class__ == QuadPredicate:
6700 this = _IMP_kernel.new_QuadPredicate(_self, *args)
6702 self.this.append(this)
6705 if self.__class__ != QuadPredicate:
6706 _director_objects.register(self)
6711 def get_value(self, *args):
6713 get_value(QuadPredicate self, IMP::ParticleQuad const & vt) -> int
6714 get_value(QuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
6716 return _IMP_kernel.QuadPredicate_get_value(self, *args)
6719 def __call__(self, m, vt):
6720 """__call__(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int"""
6721 return _IMP_kernel.QuadPredicate___call__(self, m, vt)
6724 def get_value_index(self, *args):
6726 get_value_index(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int
6727 get_value_index(QuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
6729 return _IMP_kernel.QuadPredicate_get_value_index(self, *args)
6731 __swig_destroy__ = _IMP_kernel.delete_QuadPredicate
6732 __del__ =
lambda self:
None
6735 """__str__(QuadPredicate self) -> std::string"""
6736 return _IMP_kernel.QuadPredicate___str__(self)
6740 """__repr__(QuadPredicate self) -> std::string"""
6741 return _IMP_kernel.QuadPredicate___repr__(self)
6744 return _object_cast_to_QuadPredicate(o)
6745 get_from = staticmethod(get_from)
6747 def get_type_name(self):
6748 return self.__class__.__name__
6749 def do_show(self, out):
6751 def get_version_info(self):
6753 return VersionInfo(self.__module__,
6754 __import__(self.__module__).get_module_version())
6757 __import__(self.__module__).get_module_version())
6759 return _object_cast_to_QuadPredicate(o)
6760 get_from = staticmethod(get_from)
6762 def __disown__(self):
6764 _IMP_kernel.disown_QuadPredicate(self)
6765 return weakref_proxy(self)
6767 def do_get_inputs(self, m, pis):
6768 """do_get_inputs(QuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6769 return _IMP_kernel.QuadPredicate_do_get_inputs(self, m, pis)
6772 def do_destroy(self):
6773 """do_destroy(QuadPredicate self)"""
6774 return _IMP_kernel.QuadPredicate_do_destroy(self)
6776 QuadPredicate_swigregister = _IMP_kernel.QuadPredicate_swigregister
6777 QuadPredicate_swigregister(QuadPredicate)
6779 class QuadContainer(Container):
6780 """Proxy of C++ IMP::QuadContainer class"""
6781 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6783 def apply_generic(self, m):
6784 """apply_generic(QuadContainer self, QuadModifier m)"""
6785 return _IMP_kernel.QuadContainer_apply_generic(self, m)
6788 def apply(self, sm):
6789 """apply(QuadContainer self, QuadModifier sm)"""
6790 return _IMP_kernel.QuadContainer_apply(self, sm)
6793 def get_range_indexes(self):
6794 """get_range_indexes(QuadContainer self) -> IMP::ParticleIndexQuads"""
6795 return _IMP_kernel.QuadContainer_get_range_indexes(self)
6798 def get_contents(self):
6799 """get_contents(QuadContainer self) -> IMP::ParticleIndexQuads const &"""
6800 return _IMP_kernel.QuadContainer_get_contents(self)
6804 """get_indexes(QuadContainer self) -> IMP::ParticleIndexQuads"""
6805 return _IMP_kernel.QuadContainer_get_indexes(self)
6808 def get(self, *args):
6810 get(QuadContainer self) -> IMP::ParticleQuadsTemp
6811 get(QuadContainer self, unsigned int i) -> IMP::ParticleQuad
6813 return _IMP_kernel.QuadContainer_get(self, *args)
6816 def get_number(self):
6817 """get_number(QuadContainer self) -> unsigned int"""
6818 return _IMP_kernel.QuadContainer_get_number(self)
6821 def get_particle_quads(self):
6822 """get_particle_quads(QuadContainer self) -> IMP::ParticleQuadsTemp"""
6823 return _IMP_kernel.QuadContainer_get_particle_quads(self)
6826 def get_particle_quad(self, i):
6827 """get_particle_quad(QuadContainer self, unsigned int i) -> IMP::ParticleQuad"""
6828 return _IMP_kernel.QuadContainer_get_particle_quad(self, i)
6831 def __init__(self, *args):
6833 __init__(IMP::QuadContainer self, Model m, std::string name) -> QuadContainer
6834 __init__(IMP::QuadContainer self, Model m) -> QuadContainer
6836 if self.__class__ == QuadContainer:
6840 this = _IMP_kernel.new_QuadContainer(_self, *args)
6842 self.this.append(this)
6845 if self.__class__ != QuadContainer:
6846 _director_objects.register(self)
6851 def do_apply(self, sm):
6852 """do_apply(QuadContainer self, QuadModifier sm)"""
6853 return _IMP_kernel.QuadContainer_do_apply(self, sm)
6856 def do_get_provides_access(self):
6857 """do_get_provides_access(QuadContainer self) -> bool"""
6858 return _IMP_kernel.QuadContainer_do_get_provides_access(self)
6860 __swig_destroy__ = _IMP_kernel.delete_QuadContainer
6861 __del__ =
lambda self:
None
6864 """__str__(QuadContainer self) -> std::string"""
6865 return _IMP_kernel.QuadContainer___str__(self)
6869 """__repr__(QuadContainer self) -> std::string"""
6870 return _IMP_kernel.QuadContainer___repr__(self)
6873 return _object_cast_to_QuadContainer(o)
6874 get_from = staticmethod(get_from)
6876 def get_type_name(self):
6877 return self.__class__.__name__
6878 def do_show(self, out):
6880 def get_version_info(self):
6882 return VersionInfo(self.__module__,
6883 __import__(self.__module__).get_module_version())
6886 __import__(self.__module__).get_module_version())
6888 return _object_cast_to_QuadContainer(o)
6889 get_from = staticmethod(get_from)
6891 def __disown__(self):
6893 _IMP_kernel.disown_QuadContainer(self)
6894 return weakref_proxy(self)
6896 def do_destroy(self):
6897 """do_destroy(QuadContainer self)"""
6898 return _IMP_kernel.QuadContainer_do_destroy(self)
6901 def handle_set_has_required_score_states(self, arg0):
6902 """handle_set_has_required_score_states(QuadContainer self, bool arg0)"""
6903 return _IMP_kernel.QuadContainer_handle_set_has_required_score_states(self, arg0)
6906 def do_get_inputs(self):
6907 """do_get_inputs(QuadContainer self) -> IMP::ModelObjectsTemp"""
6908 return _IMP_kernel.QuadContainer_do_get_inputs(self)
6911 def do_get_interactions(self):
6912 """do_get_interactions(QuadContainer self) -> IMP::ModelObjectsTemps"""
6913 return _IMP_kernel.QuadContainer_do_get_interactions(self)
6916 def do_get_contents_hash(self):
6917 """do_get_contents_hash(QuadContainer self) -> std::size_t"""
6918 return _IMP_kernel.QuadContainer_do_get_contents_hash(self)
6920 QuadContainer_swigregister = _IMP_kernel.QuadContainer_swigregister
6921 QuadContainer_swigregister(QuadContainer)
6923 class _QuadContainerAdaptor(_InputAdaptor):
6924 """Proxy of C++ IMP::QuadContainerAdaptor class"""
6925 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6926 __repr__ = _swig_repr
6928 def __init__(self, *args):
6930 __init__(IMP::QuadContainerAdaptor self) -> _QuadContainerAdaptor
6931 __init__(IMP::QuadContainerAdaptor self, QuadContainer c) -> _QuadContainerAdaptor
6932 __init__(IMP::QuadContainerAdaptor self, IMP::ParticleQuadsTemp const & t) -> _QuadContainerAdaptor
6934 this = _IMP_kernel.new__QuadContainerAdaptor(*args)
6936 self.this.append(this)
6940 def set_name_if_default(self, name):
6941 """set_name_if_default(_QuadContainerAdaptor self, std::string name)"""
6942 return _IMP_kernel._QuadContainerAdaptor_set_name_if_default(self, name)
6944 __swig_destroy__ = _IMP_kernel.delete__QuadContainerAdaptor
6945 __del__ =
lambda self:
None
6946 _QuadContainerAdaptor_swigregister = _IMP_kernel._QuadContainerAdaptor_swigregister
6947 _QuadContainerAdaptor_swigregister(_QuadContainerAdaptor)
6949 class SingletonModifier(_ParticleInputs, _ParticleOutputs, Object):
6950 """Proxy of C++ IMP::SingletonModifier class"""
6951 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6953 def __init__(self, *args):
6955 __init__(IMP::SingletonModifier self, std::string name) -> SingletonModifier
6956 __init__(IMP::SingletonModifier self) -> SingletonModifier
6958 if self.__class__ == SingletonModifier:
6962 this = _IMP_kernel.new_SingletonModifier(_self, *args)
6964 self.this.append(this)
6967 if self.__class__ != SingletonModifier:
6968 _director_objects.register(self)
6973 def apply(self, vt):
6974 """apply(SingletonModifier self, Particle vt)"""
6975 return _IMP_kernel.SingletonModifier_apply(self, vt)
6978 def apply_index(self, m, v):
6979 """apply_index(SingletonModifier self, Model m, ParticleIndex v)"""
6980 return _IMP_kernel.SingletonModifier_apply_index(self, m, v)
6983 def apply_indexes(self, m, o, lower_bound, upper_bound):
6984 """apply_indexes(SingletonModifier self, Model m, IMP::ParticleIndexes const & o, unsigned int lower_bound, unsigned int upper_bound)"""
6985 return _IMP_kernel.SingletonModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
6989 """__str__(SingletonModifier self) -> std::string"""
6990 return _IMP_kernel.SingletonModifier___str__(self)
6994 """__repr__(SingletonModifier self) -> std::string"""
6995 return _IMP_kernel.SingletonModifier___repr__(self)
6998 return _object_cast_to_SingletonModifier(o)
6999 get_from = staticmethod(get_from)
7001 def get_type_name(self):
7002 return self.__class__.__name__
7003 def do_show(self, out):
7005 def get_version_info(self):
7007 return VersionInfo(self.__module__,
7008 __import__(self.__module__).get_module_version())
7011 __import__(self.__module__).get_module_version())
7013 return _object_cast_to_SingletonModifier(o)
7014 get_from = staticmethod(get_from)
7016 __swig_destroy__ = _IMP_kernel.delete_SingletonModifier
7017 __del__ =
lambda self:
None
7018 def __disown__(self):
7020 _IMP_kernel.disown_SingletonModifier(self)
7021 return weakref_proxy(self)
7023 def do_get_inputs(self, m, pis):
7024 """do_get_inputs(SingletonModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7025 return _IMP_kernel.SingletonModifier_do_get_inputs(self, m, pis)
7028 def do_get_outputs(self, m, pis):
7029 """do_get_outputs(SingletonModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7030 return _IMP_kernel.SingletonModifier_do_get_outputs(self, m, pis)
7033 def do_destroy(self):
7034 """do_destroy(SingletonModifier self)"""
7035 return _IMP_kernel.SingletonModifier_do_destroy(self)
7037 SingletonModifier_swigregister = _IMP_kernel.SingletonModifier_swigregister
7038 SingletonModifier_swigregister(SingletonModifier)
7040 class SingletonScore(_ParticleInputs, Object):
7041 """Proxy of C++ IMP::SingletonScore class"""
7042 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7044 def __init__(self, *args):
7046 __init__(IMP::SingletonScore self, std::string name) -> SingletonScore
7047 __init__(IMP::SingletonScore self) -> SingletonScore
7049 if self.__class__ == SingletonScore:
7053 this = _IMP_kernel.new_SingletonScore(_self, *args)
7055 self.this.append(this)
7058 if self.__class__ != SingletonScore:
7059 _director_objects.register(self)
7064 def evaluate_index(self, m, vt, da):
7065 """evaluate_index(SingletonScore self, Model m, ParticleIndex vt, DerivativeAccumulator da) -> double"""
7066 return _IMP_kernel.SingletonScore_evaluate_index(self, m, vt, da)
7069 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
7070 """evaluate_indexes(SingletonScore self, Model m, IMP::ParticleIndexes const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7071 return _IMP_kernel.SingletonScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
7074 def evaluate_if_good_index(self, m, vt, da, max):
7075 """evaluate_if_good_index(SingletonScore self, Model m, ParticleIndex vt, DerivativeAccumulator da, double max) -> double"""
7076 return _IMP_kernel.SingletonScore_evaluate_if_good_index(self, m, vt, da, max)
7079 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
7080 """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"""
7081 return _IMP_kernel.SingletonScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
7084 def create_current_decomposition(self, m, vt):
7085 """create_current_decomposition(SingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
7086 return _IMP_kernel.SingletonScore_create_current_decomposition(self, m, vt)
7089 def do_create_current_decomposition(self, m, vt):
7090 """do_create_current_decomposition(SingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
7091 return _IMP_kernel.SingletonScore_do_create_current_decomposition(self, m, vt)
7093 __swig_destroy__ = _IMP_kernel.delete_SingletonScore
7094 __del__ =
lambda self:
None
7097 """__str__(SingletonScore self) -> std::string"""
7098 return _IMP_kernel.SingletonScore___str__(self)
7102 """__repr__(SingletonScore self) -> std::string"""
7103 return _IMP_kernel.SingletonScore___repr__(self)
7106 return _object_cast_to_SingletonScore(o)
7107 get_from = staticmethod(get_from)
7109 def get_type_name(self):
7110 return self.__class__.__name__
7111 def do_show(self, out):
7113 def get_version_info(self):
7115 return VersionInfo(self.__module__,
7116 __import__(self.__module__).get_module_version())
7119 __import__(self.__module__).get_module_version())
7121 return _object_cast_to_SingletonScore(o)
7122 get_from = staticmethod(get_from)
7124 def __disown__(self):
7126 _IMP_kernel.disown_SingletonScore(self)
7127 return weakref_proxy(self)
7129 def do_get_inputs(self, m, pis):
7130 """do_get_inputs(SingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7131 return _IMP_kernel.SingletonScore_do_get_inputs(self, m, pis)
7134 def do_destroy(self):
7135 """do_destroy(SingletonScore self)"""
7136 return _IMP_kernel.SingletonScore_do_destroy(self)
7138 SingletonScore_swigregister = _IMP_kernel.SingletonScore_swigregister
7139 SingletonScore_swigregister(SingletonScore)
7141 class SingletonPredicate(_ParticleInputs, Object):
7142 """Proxy of C++ IMP::SingletonPredicate class"""
7143 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7145 def __init__(self, *args):
7147 __init__(IMP::SingletonPredicate self, std::string name) -> SingletonPredicate
7148 __init__(IMP::SingletonPredicate self) -> SingletonPredicate
7150 if self.__class__ == SingletonPredicate:
7154 this = _IMP_kernel.new_SingletonPredicate(_self, *args)
7156 self.this.append(this)
7159 if self.__class__ != SingletonPredicate:
7160 _director_objects.register(self)
7165 def get_value(self, *args):
7167 get_value(SingletonPredicate self, Particle vt) -> int
7168 get_value(SingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
7170 return _IMP_kernel.SingletonPredicate_get_value(self, *args)
7173 def __call__(self, m, vt):
7174 """__call__(SingletonPredicate self, Model m, ParticleIndex vt) -> int"""
7175 return _IMP_kernel.SingletonPredicate___call__(self, m, vt)
7178 def get_value_index(self, *args):
7180 get_value_index(SingletonPredicate self, Model m, ParticleIndex vt) -> int
7181 get_value_index(SingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
7183 return _IMP_kernel.SingletonPredicate_get_value_index(self, *args)
7185 __swig_destroy__ = _IMP_kernel.delete_SingletonPredicate
7186 __del__ =
lambda self:
None
7189 """__str__(SingletonPredicate self) -> std::string"""
7190 return _IMP_kernel.SingletonPredicate___str__(self)
7194 """__repr__(SingletonPredicate self) -> std::string"""
7195 return _IMP_kernel.SingletonPredicate___repr__(self)
7198 return _object_cast_to_SingletonPredicate(o)
7199 get_from = staticmethod(get_from)
7201 def get_type_name(self):
7202 return self.__class__.__name__
7203 def do_show(self, out):
7205 def get_version_info(self):
7207 return VersionInfo(self.__module__,
7208 __import__(self.__module__).get_module_version())
7211 __import__(self.__module__).get_module_version())
7213 return _object_cast_to_SingletonPredicate(o)
7214 get_from = staticmethod(get_from)
7216 def __disown__(self):
7218 _IMP_kernel.disown_SingletonPredicate(self)
7219 return weakref_proxy(self)
7221 def do_get_inputs(self, m, pis):
7222 """do_get_inputs(SingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7223 return _IMP_kernel.SingletonPredicate_do_get_inputs(self, m, pis)
7226 def do_destroy(self):
7227 """do_destroy(SingletonPredicate self)"""
7228 return _IMP_kernel.SingletonPredicate_do_destroy(self)
7230 SingletonPredicate_swigregister = _IMP_kernel.SingletonPredicate_swigregister
7231 SingletonPredicate_swigregister(SingletonPredicate)
7233 class SingletonContainer(Container):
7234 """Proxy of C++ IMP::SingletonContainer class"""
7235 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7237 def apply_generic(self, m):
7238 """apply_generic(SingletonContainer self, SingletonModifier m)"""
7239 return _IMP_kernel.SingletonContainer_apply_generic(self, m)
7242 def apply(self, sm):
7243 """apply(SingletonContainer self, SingletonModifier sm)"""
7244 return _IMP_kernel.SingletonContainer_apply(self, sm)
7247 def get_range_indexes(self):
7248 """get_range_indexes(SingletonContainer self) -> IMP::ParticleIndexes"""
7249 return _IMP_kernel.SingletonContainer_get_range_indexes(self)
7252 def get_contents(self):
7253 """get_contents(SingletonContainer self) -> IMP::ParticleIndexes const &"""
7254 return _IMP_kernel.SingletonContainer_get_contents(self)
7258 """get_indexes(SingletonContainer self) -> IMP::ParticleIndexes"""
7259 return _IMP_kernel.SingletonContainer_get_indexes(self)
7262 def get(self, *args):
7264 get(SingletonContainer self) -> IMP::ParticlesTemp
7265 get(SingletonContainer self, unsigned int i) -> Particle
7267 return _IMP_kernel.SingletonContainer_get(self, *args)
7270 def get_number(self):
7271 """get_number(SingletonContainer self) -> unsigned int"""
7272 return _IMP_kernel.SingletonContainer_get_number(self)
7276 """get_particles(SingletonContainer self) -> IMP::ParticlesTemp"""
7277 return _IMP_kernel.SingletonContainer_get_particles(self)
7280 def get_particle(self, i):
7281 """get_particle(SingletonContainer self, unsigned int i) -> Particle"""
7282 return _IMP_kernel.SingletonContainer_get_particle(self, i)
7285 def __init__(self, *args):
7287 __init__(IMP::SingletonContainer self, Model m, std::string name) -> SingletonContainer
7288 __init__(IMP::SingletonContainer self, Model m) -> SingletonContainer
7290 if self.__class__ == SingletonContainer:
7294 this = _IMP_kernel.new_SingletonContainer(_self, *args)
7296 self.this.append(this)
7299 if self.__class__ != SingletonContainer:
7300 _director_objects.register(self)
7305 def do_apply(self, sm):
7306 """do_apply(SingletonContainer self, SingletonModifier sm)"""
7307 return _IMP_kernel.SingletonContainer_do_apply(self, sm)
7310 def do_get_provides_access(self):
7311 """do_get_provides_access(SingletonContainer self) -> bool"""
7312 return _IMP_kernel.SingletonContainer_do_get_provides_access(self)
7314 __swig_destroy__ = _IMP_kernel.delete_SingletonContainer
7315 __del__ =
lambda self:
None
7318 """__str__(SingletonContainer self) -> std::string"""
7319 return _IMP_kernel.SingletonContainer___str__(self)
7323 """__repr__(SingletonContainer self) -> std::string"""
7324 return _IMP_kernel.SingletonContainer___repr__(self)
7327 return _object_cast_to_SingletonContainer(o)
7328 get_from = staticmethod(get_from)
7330 def get_type_name(self):
7331 return self.__class__.__name__
7332 def do_show(self, out):
7334 def get_version_info(self):
7336 return VersionInfo(self.__module__,
7337 __import__(self.__module__).get_module_version())
7340 __import__(self.__module__).get_module_version())
7342 return _object_cast_to_SingletonContainer(o)
7343 get_from = staticmethod(get_from)
7345 def __disown__(self):
7347 _IMP_kernel.disown_SingletonContainer(self)
7348 return weakref_proxy(self)
7350 def do_destroy(self):
7351 """do_destroy(SingletonContainer self)"""
7352 return _IMP_kernel.SingletonContainer_do_destroy(self)
7355 def handle_set_has_required_score_states(self, arg0):
7356 """handle_set_has_required_score_states(SingletonContainer self, bool arg0)"""
7357 return _IMP_kernel.SingletonContainer_handle_set_has_required_score_states(self, arg0)
7360 def do_get_inputs(self):
7361 """do_get_inputs(SingletonContainer self) -> IMP::ModelObjectsTemp"""
7362 return _IMP_kernel.SingletonContainer_do_get_inputs(self)
7365 def do_get_interactions(self):
7366 """do_get_interactions(SingletonContainer self) -> IMP::ModelObjectsTemps"""
7367 return _IMP_kernel.SingletonContainer_do_get_interactions(self)
7370 def do_get_contents_hash(self):
7371 """do_get_contents_hash(SingletonContainer self) -> std::size_t"""
7372 return _IMP_kernel.SingletonContainer_do_get_contents_hash(self)
7374 SingletonContainer_swigregister = _IMP_kernel.SingletonContainer_swigregister
7375 SingletonContainer_swigregister(SingletonContainer)
7377 class _SingletonContainerAdaptor(_InputAdaptor):
7378 """Proxy of C++ IMP::SingletonContainerAdaptor class"""
7379 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7380 __repr__ = _swig_repr
7382 def __init__(self, *args):
7384 __init__(IMP::SingletonContainerAdaptor self) -> _SingletonContainerAdaptor
7385 __init__(IMP::SingletonContainerAdaptor self, SingletonContainer c) -> _SingletonContainerAdaptor
7386 __init__(IMP::SingletonContainerAdaptor self, IMP::ParticlesTemp const & t) -> _SingletonContainerAdaptor
7388 this = _IMP_kernel.new__SingletonContainerAdaptor(*args)
7390 self.this.append(this)
7394 def set_name_if_default(self, name):
7395 """set_name_if_default(_SingletonContainerAdaptor self, std::string name)"""
7396 return _IMP_kernel._SingletonContainerAdaptor_set_name_if_default(self, name)
7398 __swig_destroy__ = _IMP_kernel.delete__SingletonContainerAdaptor
7399 __del__ =
lambda self:
None
7400 _SingletonContainerAdaptor_swigregister = _IMP_kernel._SingletonContainerAdaptor_swigregister
7401 _SingletonContainerAdaptor_swigregister(_SingletonContainerAdaptor)
7403 class TripletModifier(_ParticleInputs, _ParticleOutputs, Object):
7404 """Proxy of C++ IMP::TripletModifier class"""
7405 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7407 def __init__(self, *args):
7409 __init__(IMP::TripletModifier self, std::string name) -> TripletModifier
7410 __init__(IMP::TripletModifier self) -> TripletModifier
7412 if self.__class__ == TripletModifier:
7416 this = _IMP_kernel.new_TripletModifier(_self, *args)
7418 self.this.append(this)
7421 if self.__class__ != TripletModifier:
7422 _director_objects.register(self)
7427 def apply(self, vt):
7428 """apply(TripletModifier self, IMP::ParticleTriplet const & vt)"""
7429 return _IMP_kernel.TripletModifier_apply(self, vt)
7432 def apply_index(self, m, v):
7433 """apply_index(TripletModifier self, Model m, IMP::ParticleIndexTriplet const & v)"""
7434 return _IMP_kernel.TripletModifier_apply_index(self, m, v)
7437 def apply_indexes(self, m, o, lower_bound, upper_bound):
7438 """apply_indexes(TripletModifier self, Model m, IMP::ParticleIndexTriplets const & o, unsigned int lower_bound, unsigned int upper_bound)"""
7439 return _IMP_kernel.TripletModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
7443 """__str__(TripletModifier self) -> std::string"""
7444 return _IMP_kernel.TripletModifier___str__(self)
7448 """__repr__(TripletModifier self) -> std::string"""
7449 return _IMP_kernel.TripletModifier___repr__(self)
7452 return _object_cast_to_TripletModifier(o)
7453 get_from = staticmethod(get_from)
7455 def get_type_name(self):
7456 return self.__class__.__name__
7457 def do_show(self, out):
7459 def get_version_info(self):
7461 return VersionInfo(self.__module__,
7462 __import__(self.__module__).get_module_version())
7465 __import__(self.__module__).get_module_version())
7467 return _object_cast_to_TripletModifier(o)
7468 get_from = staticmethod(get_from)
7470 __swig_destroy__ = _IMP_kernel.delete_TripletModifier
7471 __del__ =
lambda self:
None
7472 def __disown__(self):
7474 _IMP_kernel.disown_TripletModifier(self)
7475 return weakref_proxy(self)
7477 def do_get_inputs(self, m, pis):
7478 """do_get_inputs(TripletModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7479 return _IMP_kernel.TripletModifier_do_get_inputs(self, m, pis)
7482 def do_get_outputs(self, m, pis):
7483 """do_get_outputs(TripletModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7484 return _IMP_kernel.TripletModifier_do_get_outputs(self, m, pis)
7487 def do_destroy(self):
7488 """do_destroy(TripletModifier self)"""
7489 return _IMP_kernel.TripletModifier_do_destroy(self)
7491 TripletModifier_swigregister = _IMP_kernel.TripletModifier_swigregister
7492 TripletModifier_swigregister(TripletModifier)
7494 class TripletScore(_ParticleInputs, Object):
7495 """Proxy of C++ IMP::TripletScore class"""
7496 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7498 def __init__(self, *args):
7500 __init__(IMP::TripletScore self, std::string name) -> TripletScore
7501 __init__(IMP::TripletScore self) -> TripletScore
7503 if self.__class__ == TripletScore:
7507 this = _IMP_kernel.new_TripletScore(_self, *args)
7509 self.this.append(this)
7512 if self.__class__ != TripletScore:
7513 _director_objects.register(self)
7518 def evaluate_index(self, m, vt, da):
7519 """evaluate_index(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt, DerivativeAccumulator da) -> double"""
7520 return _IMP_kernel.TripletScore_evaluate_index(self, m, vt, da)
7523 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
7524 """evaluate_indexes(TripletScore self, Model m, IMP::ParticleIndexTriplets const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7525 return _IMP_kernel.TripletScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
7528 def evaluate_if_good_index(self, m, vt, da, max):
7529 """evaluate_if_good_index(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt, DerivativeAccumulator da, double max) -> double"""
7530 return _IMP_kernel.TripletScore_evaluate_if_good_index(self, m, vt, da, max)
7533 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
7534 """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"""
7535 return _IMP_kernel.TripletScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
7538 def create_current_decomposition(self, m, vt):
7539 """create_current_decomposition(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
7540 return _IMP_kernel.TripletScore_create_current_decomposition(self, m, vt)
7543 def do_create_current_decomposition(self, m, vt):
7544 """do_create_current_decomposition(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
7545 return _IMP_kernel.TripletScore_do_create_current_decomposition(self, m, vt)
7547 __swig_destroy__ = _IMP_kernel.delete_TripletScore
7548 __del__ =
lambda self:
None
7551 """__str__(TripletScore self) -> std::string"""
7552 return _IMP_kernel.TripletScore___str__(self)
7556 """__repr__(TripletScore self) -> std::string"""
7557 return _IMP_kernel.TripletScore___repr__(self)
7560 return _object_cast_to_TripletScore(o)
7561 get_from = staticmethod(get_from)
7563 def get_type_name(self):
7564 return self.__class__.__name__
7565 def do_show(self, out):
7567 def get_version_info(self):
7569 return VersionInfo(self.__module__,
7570 __import__(self.__module__).get_module_version())
7573 __import__(self.__module__).get_module_version())
7575 return _object_cast_to_TripletScore(o)
7576 get_from = staticmethod(get_from)
7578 def __disown__(self):
7580 _IMP_kernel.disown_TripletScore(self)
7581 return weakref_proxy(self)
7583 def do_get_inputs(self, m, pis):
7584 """do_get_inputs(TripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7585 return _IMP_kernel.TripletScore_do_get_inputs(self, m, pis)
7588 def do_destroy(self):
7589 """do_destroy(TripletScore self)"""
7590 return _IMP_kernel.TripletScore_do_destroy(self)
7592 TripletScore_swigregister = _IMP_kernel.TripletScore_swigregister
7593 TripletScore_swigregister(TripletScore)
7595 class TripletPredicate(_ParticleInputs, Object):
7596 """Proxy of C++ IMP::TripletPredicate class"""
7597 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7599 def __init__(self, *args):
7601 __init__(IMP::TripletPredicate self, std::string name) -> TripletPredicate
7602 __init__(IMP::TripletPredicate self) -> TripletPredicate
7604 if self.__class__ == TripletPredicate:
7608 this = _IMP_kernel.new_TripletPredicate(_self, *args)
7610 self.this.append(this)
7613 if self.__class__ != TripletPredicate:
7614 _director_objects.register(self)
7619 def get_value(self, *args):
7621 get_value(TripletPredicate self, IMP::ParticleTriplet const & vt) -> int
7622 get_value(TripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
7624 return _IMP_kernel.TripletPredicate_get_value(self, *args)
7627 def __call__(self, m, vt):
7628 """__call__(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int"""
7629 return _IMP_kernel.TripletPredicate___call__(self, m, vt)
7632 def get_value_index(self, *args):
7634 get_value_index(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int
7635 get_value_index(TripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
7637 return _IMP_kernel.TripletPredicate_get_value_index(self, *args)
7639 __swig_destroy__ = _IMP_kernel.delete_TripletPredicate
7640 __del__ =
lambda self:
None
7643 """__str__(TripletPredicate self) -> std::string"""
7644 return _IMP_kernel.TripletPredicate___str__(self)
7648 """__repr__(TripletPredicate self) -> std::string"""
7649 return _IMP_kernel.TripletPredicate___repr__(self)
7652 return _object_cast_to_TripletPredicate(o)
7653 get_from = staticmethod(get_from)
7655 def get_type_name(self):
7656 return self.__class__.__name__
7657 def do_show(self, out):
7659 def get_version_info(self):
7661 return VersionInfo(self.__module__,
7662 __import__(self.__module__).get_module_version())
7665 __import__(self.__module__).get_module_version())
7667 return _object_cast_to_TripletPredicate(o)
7668 get_from = staticmethod(get_from)
7670 def __disown__(self):
7672 _IMP_kernel.disown_TripletPredicate(self)
7673 return weakref_proxy(self)
7675 def do_get_inputs(self, m, pis):
7676 """do_get_inputs(TripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7677 return _IMP_kernel.TripletPredicate_do_get_inputs(self, m, pis)
7680 def do_destroy(self):
7681 """do_destroy(TripletPredicate self)"""
7682 return _IMP_kernel.TripletPredicate_do_destroy(self)
7684 TripletPredicate_swigregister = _IMP_kernel.TripletPredicate_swigregister
7685 TripletPredicate_swigregister(TripletPredicate)
7687 class TripletContainer(Container):
7688 """Proxy of C++ IMP::TripletContainer class"""
7689 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7691 def apply_generic(self, m):
7692 """apply_generic(TripletContainer self, TripletModifier m)"""
7693 return _IMP_kernel.TripletContainer_apply_generic(self, m)
7696 def apply(self, sm):
7697 """apply(TripletContainer self, TripletModifier sm)"""
7698 return _IMP_kernel.TripletContainer_apply(self, sm)
7701 def get_range_indexes(self):
7702 """get_range_indexes(TripletContainer self) -> IMP::ParticleIndexTriplets"""
7703 return _IMP_kernel.TripletContainer_get_range_indexes(self)
7706 def get_contents(self):
7707 """get_contents(TripletContainer self) -> IMP::ParticleIndexTriplets const &"""
7708 return _IMP_kernel.TripletContainer_get_contents(self)
7712 """get_indexes(TripletContainer self) -> IMP::ParticleIndexTriplets"""
7713 return _IMP_kernel.TripletContainer_get_indexes(self)
7716 def get(self, *args):
7718 get(TripletContainer self) -> IMP::ParticleTripletsTemp
7719 get(TripletContainer self, unsigned int i) -> IMP::ParticleTriplet
7721 return _IMP_kernel.TripletContainer_get(self, *args)
7724 def get_number(self):
7725 """get_number(TripletContainer self) -> unsigned int"""
7726 return _IMP_kernel.TripletContainer_get_number(self)
7729 def get_particle_triplets(self):
7730 """get_particle_triplets(TripletContainer self) -> IMP::ParticleTripletsTemp"""
7731 return _IMP_kernel.TripletContainer_get_particle_triplets(self)
7734 def get_particle_triplet(self, i):
7735 """get_particle_triplet(TripletContainer self, unsigned int i) -> IMP::ParticleTriplet"""
7736 return _IMP_kernel.TripletContainer_get_particle_triplet(self, i)
7739 def __init__(self, *args):
7741 __init__(IMP::TripletContainer self, Model m, std::string name) -> TripletContainer
7742 __init__(IMP::TripletContainer self, Model m) -> TripletContainer
7744 if self.__class__ == TripletContainer:
7748 this = _IMP_kernel.new_TripletContainer(_self, *args)
7750 self.this.append(this)
7753 if self.__class__ != TripletContainer:
7754 _director_objects.register(self)
7759 def do_apply(self, sm):
7760 """do_apply(TripletContainer self, TripletModifier sm)"""
7761 return _IMP_kernel.TripletContainer_do_apply(self, sm)
7764 def do_get_provides_access(self):
7765 """do_get_provides_access(TripletContainer self) -> bool"""
7766 return _IMP_kernel.TripletContainer_do_get_provides_access(self)
7768 __swig_destroy__ = _IMP_kernel.delete_TripletContainer
7769 __del__ =
lambda self:
None
7772 """__str__(TripletContainer self) -> std::string"""
7773 return _IMP_kernel.TripletContainer___str__(self)
7777 """__repr__(TripletContainer self) -> std::string"""
7778 return _IMP_kernel.TripletContainer___repr__(self)
7781 return _object_cast_to_TripletContainer(o)
7782 get_from = staticmethod(get_from)
7784 def get_type_name(self):
7785 return self.__class__.__name__
7786 def do_show(self, out):
7788 def get_version_info(self):
7790 return VersionInfo(self.__module__,
7791 __import__(self.__module__).get_module_version())
7794 __import__(self.__module__).get_module_version())
7796 return _object_cast_to_TripletContainer(o)
7797 get_from = staticmethod(get_from)
7799 def __disown__(self):
7801 _IMP_kernel.disown_TripletContainer(self)
7802 return weakref_proxy(self)
7804 def do_destroy(self):
7805 """do_destroy(TripletContainer self)"""
7806 return _IMP_kernel.TripletContainer_do_destroy(self)
7809 def handle_set_has_required_score_states(self, arg0):
7810 """handle_set_has_required_score_states(TripletContainer self, bool arg0)"""
7811 return _IMP_kernel.TripletContainer_handle_set_has_required_score_states(self, arg0)
7814 def do_get_inputs(self):
7815 """do_get_inputs(TripletContainer self) -> IMP::ModelObjectsTemp"""
7816 return _IMP_kernel.TripletContainer_do_get_inputs(self)
7819 def do_get_interactions(self):
7820 """do_get_interactions(TripletContainer self) -> IMP::ModelObjectsTemps"""
7821 return _IMP_kernel.TripletContainer_do_get_interactions(self)
7824 def do_get_contents_hash(self):
7825 """do_get_contents_hash(TripletContainer self) -> std::size_t"""
7826 return _IMP_kernel.TripletContainer_do_get_contents_hash(self)
7828 TripletContainer_swigregister = _IMP_kernel.TripletContainer_swigregister
7829 TripletContainer_swigregister(TripletContainer)
7831 class _TripletContainerAdaptor(_InputAdaptor):
7832 """Proxy of C++ IMP::TripletContainerAdaptor class"""
7833 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7834 __repr__ = _swig_repr
7836 def __init__(self, *args):
7838 __init__(IMP::TripletContainerAdaptor self) -> _TripletContainerAdaptor
7839 __init__(IMP::TripletContainerAdaptor self, TripletContainer c) -> _TripletContainerAdaptor
7840 __init__(IMP::TripletContainerAdaptor self, IMP::ParticleTripletsTemp const & t) -> _TripletContainerAdaptor
7842 this = _IMP_kernel.new__TripletContainerAdaptor(*args)
7844 self.this.append(this)
7848 def set_name_if_default(self, name):
7849 """set_name_if_default(_TripletContainerAdaptor self, std::string name)"""
7850 return _IMP_kernel._TripletContainerAdaptor_set_name_if_default(self, name)
7852 __swig_destroy__ = _IMP_kernel.delete__TripletContainerAdaptor
7853 __del__ =
lambda self:
None
7854 _TripletContainerAdaptor_swigregister = _IMP_kernel._TripletContainerAdaptor_swigregister
7855 _TripletContainerAdaptor_swigregister(_TripletContainerAdaptor)
7859 """write_particles_to_buffer(IMP::ParticlesTemp const & particles, IMP::FloatKeys const & keys) -> IMP::Vector< char >"""
7860 return _IMP_kernel.write_particles_to_buffer(particles, keys)
7863 """read_particles_from_buffer(IMP::Vector< char > const & buffer, IMP::ParticlesTemp const & particles, IMP::FloatKeys const & keys)"""
7864 return _IMP_kernel.read_particles_from_buffer(buffer, particles, keys)
7867 """get_particles(Model m, IMP::ParticleIndexes const & ps) -> IMP::ParticlesTemp"""
7868 return _IMP_kernel.get_particles(m, ps)
7872 get_indexes(IMP::ParticlesTemp const & ps) -> IMP::ParticleIndexes
7873 get_indexes(IMP::ParticlePairsTemp const & ps) -> IMP::ParticleIndexPairs
7875 return _IMP_kernel.get_indexes(*args)
7876 class _ParticleIndexAdaptor(object):
7877 """Proxy of C++ IMP::ParticleIndexAdaptor class"""
7878 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7879 __repr__ = _swig_repr
7881 def __init__(self, *args):
7883 __init__(IMP::ParticleIndexAdaptor self, Particle p) -> _ParticleIndexAdaptor
7884 __init__(IMP::ParticleIndexAdaptor self, ParticleIndex pi) -> _ParticleIndexAdaptor
7885 __init__(IMP::ParticleIndexAdaptor self, Decorator d) -> _ParticleIndexAdaptor
7887 this = _IMP_kernel.new__ParticleIndexAdaptor(*args)
7889 self.this.append(this)
7892 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexAdaptor
7893 __del__ =
lambda self:
None
7894 _ParticleIndexAdaptor_swigregister = _IMP_kernel._ParticleIndexAdaptor_swigregister
7895 _ParticleIndexAdaptor_swigregister(_ParticleIndexAdaptor)
7897 class _ParticleIndexesAdaptor(_InputAdaptor):
7898 """Proxy of C++ IMP::ParticleIndexesAdaptor class"""
7899 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7900 __repr__ = _swig_repr
7902 def __init__(self, *args):
7904 __init__(IMP::ParticleIndexesAdaptor self, IMP::ParticlesTemp const & ps) -> _ParticleIndexesAdaptor
7905 __init__(IMP::ParticleIndexesAdaptor self, IMP::ParticleIndexes const & pi) -> _ParticleIndexesAdaptor
7906 __init__(IMP::ParticleIndexesAdaptor self) -> _ParticleIndexesAdaptor
7908 this = _IMP_kernel.new__ParticleIndexesAdaptor(*args)
7910 self.this.append(this)
7913 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexesAdaptor
7914 __del__ =
lambda self:
None
7915 _ParticleIndexesAdaptor_swigregister = _IMP_kernel._ParticleIndexesAdaptor_swigregister
7916 _ParticleIndexesAdaptor_swigregister(_ParticleIndexesAdaptor)
7918 class _ParticleIndexPairsAdaptor(object):
7919 """Proxy of C++ IMP::ParticleIndexPairsAdaptor class"""
7920 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7921 __repr__ = _swig_repr
7923 def __init__(self, *args):
7925 __init__(IMP::ParticleIndexPairsAdaptor self, IMP::ParticlePairsTemp const & ps) -> _ParticleIndexPairsAdaptor
7926 __init__(IMP::ParticleIndexPairsAdaptor self, IMP::ParticleIndexPairs const & pi) -> _ParticleIndexPairsAdaptor
7927 __init__(IMP::ParticleIndexPairsAdaptor self) -> _ParticleIndexPairsAdaptor
7929 this = _IMP_kernel.new__ParticleIndexPairsAdaptor(*args)
7931 self.this.append(this)
7934 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexPairsAdaptor
7935 __del__ =
lambda self:
None
7936 _ParticleIndexPairsAdaptor_swigregister = _IMP_kernel._ParticleIndexPairsAdaptor_swigregister
7937 _ParticleIndexPairsAdaptor_swigregister(_ParticleIndexPairsAdaptor)
7939 class _ConstRestraint(Restraint):
7940 """Proxy of C++ IMP::internal::_ConstRestraint class"""
7941 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7943 def __init__(self, *args):
7945 __init__(IMP::internal::_ConstRestraint self, double v, IMP::ParticlesTemp const ps) -> _ConstRestraint
7946 __init__(IMP::internal::_ConstRestraint self, Model m, IMP::ParticleIndexes const & pis, double v) -> _ConstRestraint
7948 this = _IMP_kernel.new__ConstRestraint(*args)
7950 self.this.append(this)
7954 def get_value(self):
7955 """get_value(_ConstRestraint self) -> double"""
7956 return _IMP_kernel._ConstRestraint_get_value(self)
7959 def do_create_decomposition(self):
7960 """do_create_decomposition(_ConstRestraint self) -> IMP::Restraints"""
7961 return _IMP_kernel._ConstRestraint_do_create_decomposition(self)
7964 def do_get_inputs(self):
7965 """do_get_inputs(_ConstRestraint self) -> IMP::ModelObjectsTemp"""
7966 return _IMP_kernel._ConstRestraint_do_get_inputs(self)
7969 def get_version_info(self):
7970 """get_version_info(_ConstRestraint self) -> VersionInfo"""
7971 return _IMP_kernel._ConstRestraint_get_version_info(self)
7975 """__str__(_ConstRestraint self) -> std::string"""
7976 return _IMP_kernel._ConstRestraint___str__(self)
7980 """__repr__(_ConstRestraint self) -> std::string"""
7981 return _IMP_kernel._ConstRestraint___repr__(self)
7984 return _object_cast_to__ConstRestraint(o)
7985 get_from = staticmethod(get_from)
7987 _ConstRestraint_swigregister = _IMP_kernel._ConstRestraint_swigregister
7988 _ConstRestraint_swigregister(_ConstRestraint)
7990 class _ConstSingletonScore(SingletonScore):
7991 """Proxy of C++ IMP::internal::_ConstSingletonScore class"""
7992 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7993 __repr__ = _swig_repr
7995 def __init__(self, v):
7996 """__init__(IMP::internal::_ConstSingletonScore self, double v) -> _ConstSingletonScore"""
7997 this = _IMP_kernel.new__ConstSingletonScore(v)
7999 self.this.append(this)
8003 def do_get_inputs(self, arg2, arg3):
8004 """do_get_inputs(_ConstSingletonScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
8005 return _IMP_kernel._ConstSingletonScore_do_get_inputs(self, arg2, arg3)
8008 def get_version_info(self):
8009 """get_version_info(_ConstSingletonScore self) -> VersionInfo"""
8010 return _IMP_kernel._ConstSingletonScore_get_version_info(self)
8012 _ConstSingletonScore_swigregister = _IMP_kernel._ConstSingletonScore_swigregister
8013 _ConstSingletonScore_swigregister(_ConstSingletonScore)
8015 class _ConstPairScore(PairScore):
8016 """Proxy of C++ IMP::internal::_ConstPairScore class"""
8017 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8018 __repr__ = _swig_repr
8020 def __init__(self, v):
8021 """__init__(IMP::internal::_ConstPairScore self, double v) -> _ConstPairScore"""
8022 this = _IMP_kernel.new__ConstPairScore(v)
8024 self.this.append(this)
8028 def do_get_inputs(self, arg2, arg3):
8029 """do_get_inputs(_ConstPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
8030 return _IMP_kernel._ConstPairScore_do_get_inputs(self, arg2, arg3)
8033 def get_version_info(self):
8034 """get_version_info(_ConstPairScore self) -> VersionInfo"""
8035 return _IMP_kernel._ConstPairScore_get_version_info(self)
8037 _ConstPairScore_swigregister = _IMP_kernel._ConstPairScore_swigregister
8038 _ConstPairScore_swigregister(_ConstPairScore)
8040 class _TrivialDecorator(Decorator):
8041 """Proxy of C++ IMP::internal::_TrivialDecorator class"""
8042 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8044 def __init__(self, *args):
8046 __init__(IMP::internal::_TrivialDecorator self) -> _TrivialDecorator
8047 __init__(IMP::internal::_TrivialDecorator self, Model m, ParticleIndex id) -> _TrivialDecorator
8048 __init__(IMP::internal::_TrivialDecorator self, _ParticleAdaptor d) -> _TrivialDecorator
8050 this = _IMP_kernel.new__TrivialDecorator(*args)
8052 self.this.append(this)
8056 def show(self, *args):
8058 show(_TrivialDecorator self, _ostream out)
8059 show(_TrivialDecorator self)
8061 return _IMP_kernel._TrivialDecorator_show(self, *args)
8064 def setup_particle(*args):
8066 setup_particle(Model m, ParticleIndex pi) -> _TrivialDecorator
8067 setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
8069 return _IMP_kernel._TrivialDecorator_setup_particle(*args)
8071 setup_particle = staticmethod(setup_particle)
8073 def get_is_setup(*args):
8075 get_is_setup(_ParticleAdaptor p) -> bool
8076 get_is_setup(Model m, ParticleIndex pi) -> bool
8078 return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
8080 get_is_setup = staticmethod(get_is_setup)
8082 def add_attribute(self, *args):
8084 add_attribute(_TrivialDecorator self, FloatKey k, IMP::Float v, bool opt)
8085 add_attribute(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
8086 add_attribute(_TrivialDecorator self, IntKey a0, IMP::Int a1)
8087 add_attribute(_TrivialDecorator self, StringKey a0, IMP::String a1)
8088 add_attribute(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
8089 add_attribute(_TrivialDecorator self, ObjectKey a0, Object a1)
8091 return _IMP_kernel._TrivialDecorator_add_attribute(self, *args)
8094 def get_value(self, *args):
8096 get_value(_TrivialDecorator self, FloatKey a0) -> IMP::Float
8097 get_value(_TrivialDecorator self, IntKey a0) -> IMP::Int
8098 get_value(_TrivialDecorator self, StringKey a0) -> IMP::String
8099 get_value(_TrivialDecorator self, ParticleIndexKey a0) -> Particle
8100 get_value(_TrivialDecorator self, ObjectKey a0) -> Object
8102 return _IMP_kernel._TrivialDecorator_get_value(self, *args)
8105 def set_value(self, *args):
8107 set_value(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
8108 set_value(_TrivialDecorator self, IntKey a0, IMP::Int a1)
8109 set_value(_TrivialDecorator self, StringKey a0, IMP::String a1)
8110 set_value(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
8111 set_value(_TrivialDecorator self, ObjectKey a0, Object a1)
8113 return _IMP_kernel._TrivialDecorator_set_value(self, *args)
8116 def remove_attribute(self, *args):
8118 remove_attribute(_TrivialDecorator self, FloatKey a0)
8119 remove_attribute(_TrivialDecorator self, IntKey a0)
8120 remove_attribute(_TrivialDecorator self, StringKey a0)
8121 remove_attribute(_TrivialDecorator self, ParticleIndexKey a0)
8122 remove_attribute(_TrivialDecorator self, ObjectKey a0)
8124 return _IMP_kernel._TrivialDecorator_remove_attribute(self, *args)
8127 def has_attribute(self, *args):
8129 has_attribute(_TrivialDecorator self, FloatKey a0) -> bool
8130 has_attribute(_TrivialDecorator self, IntKey a0) -> bool
8131 has_attribute(_TrivialDecorator self, StringKey a0) -> bool
8132 has_attribute(_TrivialDecorator self, ParticleIndexKey a0) -> bool
8133 has_attribute(_TrivialDecorator self, ObjectKey a0) -> bool
8135 return _IMP_kernel._TrivialDecorator_has_attribute(self, *args)
8138 def get_derivative(self, a0):
8139 """get_derivative(_TrivialDecorator self, FloatKey a0) -> double"""
8140 return _IMP_kernel._TrivialDecorator_get_derivative(self, a0)
8144 """get_name(_TrivialDecorator self) -> std::string"""
8145 return _IMP_kernel._TrivialDecorator_get_name(self)
8148 def clear_caches(self):
8149 """clear_caches(_TrivialDecorator self)"""
8150 return _IMP_kernel._TrivialDecorator_clear_caches(self)
8153 def set_name(self, a0):
8154 """set_name(_TrivialDecorator self, std::string a0)"""
8155 return _IMP_kernel._TrivialDecorator_set_name(self, a0)
8159 """set_check_level(_TrivialDecorator self, IMP::CheckLevel a0)"""
8160 return _IMP_kernel._TrivialDecorator_set_check_level(self, a0)
8163 def add_to_derivative(self, a0, a1, a2):
8164 """add_to_derivative(_TrivialDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8165 return _IMP_kernel._TrivialDecorator_add_to_derivative(self, a0, a1, a2)
8168 def set_is_optimized(self, a0, a1):
8169 """set_is_optimized(_TrivialDecorator self, FloatKey a0, bool a1)"""
8170 return _IMP_kernel._TrivialDecorator_set_is_optimized(self, a0, a1)
8173 def get_is_optimized(self, a0):
8174 """get_is_optimized(_TrivialDecorator self, FloatKey a0) -> bool"""
8175 return _IMP_kernel._TrivialDecorator_get_is_optimized(self, a0)
8179 """get_check_level(_TrivialDecorator self) -> IMP::CheckLevel"""
8180 return _IMP_kernel._TrivialDecorator_get_check_level(self)
8183 def __eq__(self, *args):
8185 __eq__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8186 __eq__(_TrivialDecorator self, Particle d) -> bool
8188 return _IMP_kernel._TrivialDecorator___eq__(self, *args)
8191 def __ne__(self, *args):
8193 __ne__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8194 __ne__(_TrivialDecorator self, Particle d) -> bool
8196 return _IMP_kernel._TrivialDecorator___ne__(self, *args)
8199 def __le__(self, *args):
8201 __le__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8202 __le__(_TrivialDecorator self, Particle d) -> bool
8204 return _IMP_kernel._TrivialDecorator___le__(self, *args)
8207 def __lt__(self, *args):
8209 __lt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8210 __lt__(_TrivialDecorator self, Particle d) -> bool
8212 return _IMP_kernel._TrivialDecorator___lt__(self, *args)
8215 def __ge__(self, *args):
8217 __ge__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8218 __ge__(_TrivialDecorator self, Particle d) -> bool
8220 return _IMP_kernel._TrivialDecorator___ge__(self, *args)
8223 def __gt__(self, *args):
8225 __gt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8226 __gt__(_TrivialDecorator self, Particle d) -> bool
8228 return _IMP_kernel._TrivialDecorator___gt__(self, *args)
8232 """__hash__(_TrivialDecorator self) -> std::size_t"""
8233 return _IMP_kernel._TrivialDecorator___hash__(self)
8237 """__str__(_TrivialDecorator self) -> std::string"""
8238 return _IMP_kernel._TrivialDecorator___str__(self)
8242 """__repr__(_TrivialDecorator self) -> std::string"""
8243 return _IMP_kernel._TrivialDecorator___repr__(self)
8245 __swig_destroy__ = _IMP_kernel.delete__TrivialDecorator
8246 __del__ =
lambda self:
None
8247 _TrivialDecorator_swigregister = _IMP_kernel._TrivialDecorator_swigregister
8248 _TrivialDecorator_swigregister(_TrivialDecorator)
8250 def _TrivialDecorator_setup_particle(*args):
8252 setup_particle(Model m, ParticleIndex pi) -> _TrivialDecorator
8253 _TrivialDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
8255 return _IMP_kernel._TrivialDecorator_setup_particle(*args)
8257 def _TrivialDecorator_get_is_setup(*args):
8259 get_is_setup(_ParticleAdaptor p) -> bool
8260 _TrivialDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
8262 return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
8264 class _TrivialDerivedDecorator(_TrivialDecorator):
8265 """Proxy of C++ IMP::internal::_TrivialDerivedDecorator class"""
8266 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8268 def __init__(self, *args):
8270 __init__(IMP::internal::_TrivialDerivedDecorator self) -> _TrivialDerivedDecorator
8271 __init__(IMP::internal::_TrivialDerivedDecorator self, Model m, ParticleIndex id) -> _TrivialDerivedDecorator
8272 __init__(IMP::internal::_TrivialDerivedDecorator self, _ParticleAdaptor d) -> _TrivialDerivedDecorator
8274 this = _IMP_kernel.new__TrivialDerivedDecorator(*args)
8276 self.this.append(this)
8280 def show(self, *args):
8282 show(_TrivialDerivedDecorator self, _ostream out)
8283 show(_TrivialDerivedDecorator self)
8285 return _IMP_kernel._TrivialDerivedDecorator_show(self, *args)
8288 def setup_particle(*args):
8290 setup_particle(Model m, ParticleIndex pi) -> _TrivialDerivedDecorator
8291 setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
8293 return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
8295 setup_particle = staticmethod(setup_particle)
8297 def get_is_setup(*args):
8299 get_is_setup(_ParticleAdaptor p) -> bool
8300 get_is_setup(Model m, ParticleIndex pi) -> bool
8302 return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
8304 get_is_setup = staticmethod(get_is_setup)
8306 def add_attribute(self, *args):
8308 add_attribute(_TrivialDerivedDecorator self, FloatKey k, IMP::Float v, bool opt)
8309 add_attribute(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
8310 add_attribute(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
8311 add_attribute(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
8312 add_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
8313 add_attribute(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
8315 return _IMP_kernel._TrivialDerivedDecorator_add_attribute(self, *args)
8318 def get_value(self, *args):
8320 get_value(_TrivialDerivedDecorator self, FloatKey a0) -> IMP::Float
8321 get_value(_TrivialDerivedDecorator self, IntKey a0) -> IMP::Int
8322 get_value(_TrivialDerivedDecorator self, StringKey a0) -> IMP::String
8323 get_value(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> Particle
8324 get_value(_TrivialDerivedDecorator self, ObjectKey a0) -> Object
8326 return _IMP_kernel._TrivialDerivedDecorator_get_value(self, *args)
8329 def set_value(self, *args):
8331 set_value(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
8332 set_value(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
8333 set_value(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
8334 set_value(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
8335 set_value(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
8337 return _IMP_kernel._TrivialDerivedDecorator_set_value(self, *args)
8340 def remove_attribute(self, *args):
8342 remove_attribute(_TrivialDerivedDecorator self, FloatKey a0)
8343 remove_attribute(_TrivialDerivedDecorator self, IntKey a0)
8344 remove_attribute(_TrivialDerivedDecorator self, StringKey a0)
8345 remove_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0)
8346 remove_attribute(_TrivialDerivedDecorator self, ObjectKey a0)
8348 return _IMP_kernel._TrivialDerivedDecorator_remove_attribute(self, *args)
8351 def has_attribute(self, *args):
8353 has_attribute(_TrivialDerivedDecorator self, FloatKey a0) -> bool
8354 has_attribute(_TrivialDerivedDecorator self, IntKey a0) -> bool
8355 has_attribute(_TrivialDerivedDecorator self, StringKey a0) -> bool
8356 has_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> bool
8357 has_attribute(_TrivialDerivedDecorator self, ObjectKey a0) -> bool
8359 return _IMP_kernel._TrivialDerivedDecorator_has_attribute(self, *args)
8362 def get_derivative(self, a0):
8363 """get_derivative(_TrivialDerivedDecorator self, FloatKey a0) -> double"""
8364 return _IMP_kernel._TrivialDerivedDecorator_get_derivative(self, a0)
8368 """get_name(_TrivialDerivedDecorator self) -> std::string"""
8369 return _IMP_kernel._TrivialDerivedDecorator_get_name(self)
8372 def clear_caches(self):
8373 """clear_caches(_TrivialDerivedDecorator self)"""
8374 return _IMP_kernel._TrivialDerivedDecorator_clear_caches(self)
8377 def set_name(self, a0):
8378 """set_name(_TrivialDerivedDecorator self, std::string a0)"""
8379 return _IMP_kernel._TrivialDerivedDecorator_set_name(self, a0)
8383 """set_check_level(_TrivialDerivedDecorator self, IMP::CheckLevel a0)"""
8384 return _IMP_kernel._TrivialDerivedDecorator_set_check_level(self, a0)
8387 def add_to_derivative(self, a0, a1, a2):
8388 """add_to_derivative(_TrivialDerivedDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8389 return _IMP_kernel._TrivialDerivedDecorator_add_to_derivative(self, a0, a1, a2)
8392 def set_is_optimized(self, a0, a1):
8393 """set_is_optimized(_TrivialDerivedDecorator self, FloatKey a0, bool a1)"""
8394 return _IMP_kernel._TrivialDerivedDecorator_set_is_optimized(self, a0, a1)
8397 def get_is_optimized(self, a0):
8398 """get_is_optimized(_TrivialDerivedDecorator self, FloatKey a0) -> bool"""
8399 return _IMP_kernel._TrivialDerivedDecorator_get_is_optimized(self, a0)
8403 """get_check_level(_TrivialDerivedDecorator self) -> IMP::CheckLevel"""
8404 return _IMP_kernel._TrivialDerivedDecorator_get_check_level(self)
8407 def __eq__(self, *args):
8409 __eq__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8410 __eq__(_TrivialDerivedDecorator self, Particle d) -> bool
8412 return _IMP_kernel._TrivialDerivedDecorator___eq__(self, *args)
8415 def __ne__(self, *args):
8417 __ne__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8418 __ne__(_TrivialDerivedDecorator self, Particle d) -> bool
8420 return _IMP_kernel._TrivialDerivedDecorator___ne__(self, *args)
8423 def __le__(self, *args):
8425 __le__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8426 __le__(_TrivialDerivedDecorator self, Particle d) -> bool
8428 return _IMP_kernel._TrivialDerivedDecorator___le__(self, *args)
8431 def __lt__(self, *args):
8433 __lt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8434 __lt__(_TrivialDerivedDecorator self, Particle d) -> bool
8436 return _IMP_kernel._TrivialDerivedDecorator___lt__(self, *args)
8439 def __ge__(self, *args):
8441 __ge__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8442 __ge__(_TrivialDerivedDecorator self, Particle d) -> bool
8444 return _IMP_kernel._TrivialDerivedDecorator___ge__(self, *args)
8447 def __gt__(self, *args):
8449 __gt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8450 __gt__(_TrivialDerivedDecorator self, Particle d) -> bool
8452 return _IMP_kernel._TrivialDerivedDecorator___gt__(self, *args)
8456 """__hash__(_TrivialDerivedDecorator self) -> std::size_t"""
8457 return _IMP_kernel._TrivialDerivedDecorator___hash__(self)
8461 """__str__(_TrivialDerivedDecorator self) -> std::string"""
8462 return _IMP_kernel._TrivialDerivedDecorator___str__(self)
8466 """__repr__(_TrivialDerivedDecorator self) -> std::string"""
8467 return _IMP_kernel._TrivialDerivedDecorator___repr__(self)
8469 __swig_destroy__ = _IMP_kernel.delete__TrivialDerivedDecorator
8470 __del__ =
lambda self:
None
8471 _TrivialDerivedDecorator_swigregister = _IMP_kernel._TrivialDerivedDecorator_swigregister
8472 _TrivialDerivedDecorator_swigregister(_TrivialDerivedDecorator)
8474 def _TrivialDerivedDecorator_setup_particle(*args):
8476 setup_particle(Model m, ParticleIndex pi) -> _TrivialDerivedDecorator
8477 _TrivialDerivedDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
8479 return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
8481 def _TrivialDerivedDecorator_get_is_setup(*args):
8483 get_is_setup(_ParticleAdaptor p) -> bool
8484 _TrivialDerivedDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
8486 return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
8488 class _TrivialTraitsDecorator(Decorator):
8489 """Proxy of C++ IMP::internal::_TrivialTraitsDecorator class"""
8490 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8492 def get_decorator_traits(self):
8493 """get_decorator_traits(_TrivialTraitsDecorator self) -> StringKey"""
8494 return _IMP_kernel._TrivialTraitsDecorator_get_decorator_traits(self)
8497 def get_default_decorator_traits():
8498 """get_default_decorator_traits() -> StringKey"""
8499 return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
8501 get_default_decorator_traits = staticmethod(get_default_decorator_traits)
8503 def __init__(self, *args):
8505 __init__(IMP::internal::_TrivialTraitsDecorator self) -> _TrivialTraitsDecorator
8506 __init__(IMP::internal::_TrivialTraitsDecorator self, Model m, ParticleIndex id, StringKey tr) -> _TrivialTraitsDecorator
8507 __init__(IMP::internal::_TrivialTraitsDecorator self, Model m, ParticleIndex id) -> _TrivialTraitsDecorator
8508 __init__(IMP::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
8509 __init__(IMP::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d) -> _TrivialTraitsDecorator
8511 this = _IMP_kernel.new__TrivialTraitsDecorator(*args)
8513 self.this.append(this)
8517 def show(self, *args):
8519 show(_TrivialTraitsDecorator self, _ostream out)
8520 show(_TrivialTraitsDecorator self)
8522 return _IMP_kernel._TrivialTraitsDecorator_show(self, *args)
8525 def setup_particle(*args):
8527 setup_particle(Model m, ParticleIndex pi, StringKey tr) -> _TrivialTraitsDecorator
8528 setup_particle(Model m, ParticleIndex pi) -> _TrivialTraitsDecorator
8529 setup_particle(_ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
8530 setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
8532 return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
8534 setup_particle = staticmethod(setup_particle)
8536 def get_is_setup(*args):
8538 get_is_setup(_ParticleAdaptor p, StringKey tr) -> bool
8539 get_is_setup(_ParticleAdaptor p) -> bool
8540 get_is_setup(Model m, ParticleIndex pi, StringKey k) -> bool
8541 get_is_setup(Model m, ParticleIndex pi) -> bool
8543 return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
8545 get_is_setup = staticmethod(get_is_setup)
8547 def get_default_key():
8548 """get_default_key() -> StringKey"""
8549 return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
8551 get_default_key = staticmethod(get_default_key)
8553 def add_attribute(self, *args):
8555 add_attribute(_TrivialTraitsDecorator self, FloatKey k, IMP::Float v, bool opt)
8556 add_attribute(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
8557 add_attribute(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
8558 add_attribute(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
8559 add_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
8560 add_attribute(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
8562 return _IMP_kernel._TrivialTraitsDecorator_add_attribute(self, *args)
8565 def get_value(self, *args):
8567 get_value(_TrivialTraitsDecorator self, FloatKey a0) -> IMP::Float
8568 get_value(_TrivialTraitsDecorator self, IntKey a0) -> IMP::Int
8569 get_value(_TrivialTraitsDecorator self, StringKey a0) -> IMP::String
8570 get_value(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> Particle
8571 get_value(_TrivialTraitsDecorator self, ObjectKey a0) -> Object
8573 return _IMP_kernel._TrivialTraitsDecorator_get_value(self, *args)
8576 def set_value(self, *args):
8578 set_value(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
8579 set_value(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
8580 set_value(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
8581 set_value(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
8582 set_value(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
8584 return _IMP_kernel._TrivialTraitsDecorator_set_value(self, *args)
8587 def remove_attribute(self, *args):
8589 remove_attribute(_TrivialTraitsDecorator self, FloatKey a0)
8590 remove_attribute(_TrivialTraitsDecorator self, IntKey a0)
8591 remove_attribute(_TrivialTraitsDecorator self, StringKey a0)
8592 remove_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0)
8593 remove_attribute(_TrivialTraitsDecorator self, ObjectKey a0)
8595 return _IMP_kernel._TrivialTraitsDecorator_remove_attribute(self, *args)
8598 def has_attribute(self, *args):
8600 has_attribute(_TrivialTraitsDecorator self, FloatKey a0) -> bool
8601 has_attribute(_TrivialTraitsDecorator self, IntKey a0) -> bool
8602 has_attribute(_TrivialTraitsDecorator self, StringKey a0) -> bool
8603 has_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> bool
8604 has_attribute(_TrivialTraitsDecorator self, ObjectKey a0) -> bool
8606 return _IMP_kernel._TrivialTraitsDecorator_has_attribute(self, *args)
8609 def get_derivative(self, a0):
8610 """get_derivative(_TrivialTraitsDecorator self, FloatKey a0) -> double"""
8611 return _IMP_kernel._TrivialTraitsDecorator_get_derivative(self, a0)
8615 """get_name(_TrivialTraitsDecorator self) -> std::string"""
8616 return _IMP_kernel._TrivialTraitsDecorator_get_name(self)
8619 def clear_caches(self):
8620 """clear_caches(_TrivialTraitsDecorator self)"""
8621 return _IMP_kernel._TrivialTraitsDecorator_clear_caches(self)
8624 def set_name(self, a0):
8625 """set_name(_TrivialTraitsDecorator self, std::string a0)"""
8626 return _IMP_kernel._TrivialTraitsDecorator_set_name(self, a0)
8630 """set_check_level(_TrivialTraitsDecorator self, IMP::CheckLevel a0)"""
8631 return _IMP_kernel._TrivialTraitsDecorator_set_check_level(self, a0)
8634 def add_to_derivative(self, a0, a1, a2):
8635 """add_to_derivative(_TrivialTraitsDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8636 return _IMP_kernel._TrivialTraitsDecorator_add_to_derivative(self, a0, a1, a2)
8639 def set_is_optimized(self, a0, a1):
8640 """set_is_optimized(_TrivialTraitsDecorator self, FloatKey a0, bool a1)"""
8641 return _IMP_kernel._TrivialTraitsDecorator_set_is_optimized(self, a0, a1)
8644 def get_is_optimized(self, a0):
8645 """get_is_optimized(_TrivialTraitsDecorator self, FloatKey a0) -> bool"""
8646 return _IMP_kernel._TrivialTraitsDecorator_get_is_optimized(self, a0)
8650 """get_check_level(_TrivialTraitsDecorator self) -> IMP::CheckLevel"""
8651 return _IMP_kernel._TrivialTraitsDecorator_get_check_level(self)
8654 def __eq__(self, *args):
8656 __eq__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
8657 __eq__(_TrivialTraitsDecorator self, Particle d) -> bool
8659 return _IMP_kernel._TrivialTraitsDecorator___eq__(self, *args)
8662 def __ne__(self, *args):
8664 __ne__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
8665 __ne__(_TrivialTraitsDecorator self, Particle d) -> bool
8667 return _IMP_kernel._TrivialTraitsDecorator___ne__(self, *args)
8670 def __le__(self, *args):
8672 __le__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
8673 __le__(_TrivialTraitsDecorator self, Particle d) -> bool
8675 return _IMP_kernel._TrivialTraitsDecorator___le__(self, *args)
8678 def __lt__(self, *args):
8680 __lt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
8681 __lt__(_TrivialTraitsDecorator self, Particle d) -> bool
8683 return _IMP_kernel._TrivialTraitsDecorator___lt__(self, *args)
8686 def __ge__(self, *args):
8688 __ge__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
8689 __ge__(_TrivialTraitsDecorator self, Particle d) -> bool
8691 return _IMP_kernel._TrivialTraitsDecorator___ge__(self, *args)
8694 def __gt__(self, *args):
8696 __gt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
8697 __gt__(_TrivialTraitsDecorator self, Particle d) -> bool
8699 return _IMP_kernel._TrivialTraitsDecorator___gt__(self, *args)
8703 """__hash__(_TrivialTraitsDecorator self) -> std::size_t"""
8704 return _IMP_kernel._TrivialTraitsDecorator___hash__(self)
8708 """__str__(_TrivialTraitsDecorator self) -> std::string"""
8709 return _IMP_kernel._TrivialTraitsDecorator___str__(self)
8713 """__repr__(_TrivialTraitsDecorator self) -> std::string"""
8714 return _IMP_kernel._TrivialTraitsDecorator___repr__(self)
8716 __swig_destroy__ = _IMP_kernel.delete__TrivialTraitsDecorator
8717 __del__ =
lambda self:
None
8718 _TrivialTraitsDecorator_swigregister = _IMP_kernel._TrivialTraitsDecorator_swigregister
8719 _TrivialTraitsDecorator_swigregister(_TrivialTraitsDecorator)
8721 def _TrivialTraitsDecorator_get_default_decorator_traits():
8722 """_TrivialTraitsDecorator_get_default_decorator_traits() -> StringKey"""
8723 return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
8725 def _TrivialTraitsDecorator_setup_particle(*args):
8727 setup_particle(Model m, ParticleIndex pi, StringKey tr) -> _TrivialTraitsDecorator
8728 setup_particle(Model m, ParticleIndex pi) -> _TrivialTraitsDecorator
8729 setup_particle(_ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
8730 _TrivialTraitsDecorator_setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
8732 return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
8734 def _TrivialTraitsDecorator_get_is_setup(*args):
8736 get_is_setup(_ParticleAdaptor p, StringKey tr) -> bool
8737 get_is_setup(_ParticleAdaptor p) -> bool
8738 get_is_setup(Model m, ParticleIndex pi, StringKey k) -> bool
8739 _TrivialTraitsDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
8741 return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
8743 def _TrivialTraitsDecorator_get_default_key():
8744 """_TrivialTraitsDecorator_get_default_key() -> StringKey"""
8745 return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
8748 def __lshift__(*args):
8750 __lshift__(_ostream out, _TrivialDecorator n) -> _ostream
8751 __lshift__(_ostream out, _TrivialDerivedDecorator n) -> _ostream
8752 __lshift__(_ostream out, _TrivialTraitsDecorator n) -> _ostream
8754 return _IMP_kernel.__lshift__(*args)
8755 class _ConstOptimizer(Optimizer):
8756 """Proxy of C++ IMP::internal::_ConstOptimizer class"""
8757 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8759 def __init__(self, m):
8760 """__init__(IMP::internal::_ConstOptimizer self, Model m) -> _ConstOptimizer"""
8761 this = _IMP_kernel.new__ConstOptimizer(m)
8763 self.this.append(this)
8767 def do_optimize(self, max_steps):
8768 """do_optimize(_ConstOptimizer self, unsigned int max_steps) -> IMP::Float"""
8769 return _IMP_kernel._ConstOptimizer_do_optimize(self, max_steps)
8772 def get_version_info(self):
8773 """get_version_info(_ConstOptimizer self) -> VersionInfo"""
8774 return _IMP_kernel._ConstOptimizer_get_version_info(self)
8778 """__str__(_ConstOptimizer self) -> std::string"""
8779 return _IMP_kernel._ConstOptimizer___str__(self)
8783 """__repr__(_ConstOptimizer self) -> std::string"""
8784 return _IMP_kernel._ConstOptimizer___repr__(self)
8787 return _object_cast_to__ConstOptimizer(o)
8788 get_from = staticmethod(get_from)
8790 _ConstOptimizer_swigregister = _IMP_kernel._ConstOptimizer_swigregister
8791 _ConstOptimizer_swigregister(_ConstOptimizer)
8794 def get_particle(p):
8795 """get_particle(Particle p) -> Particle"""
8796 return _IMP_kernel.get_particle(p)
8798 def _decorator_test(p):
8799 """_decorator_test(Particle p)"""
8800 return _IMP_kernel._decorator_test(p)
8802 def _overloaded_decorator(*args):
8804 _overloaded_decorator(_TrivialDecorator a) -> int
8805 _overloaded_decorator(_TrivialDerivedDecorator a) -> int
8807 return _IMP_kernel._overloaded_decorator(*args)
8809 def _take_particles(*args):
8811 _take_particles(IMP::Particles const & ps) -> unsigned int
8812 _take_particles(Model m, IMP::Particles const & ps) -> unsigned int
8813 _take_particles(Model m, IMP::Particles const & ps, TextOutput out) -> unsigned int
8815 return _IMP_kernel._take_particles(*args)
8817 def _give_particles(m):
8818 """_give_particles(Model m) -> IMP::Particles const &"""
8819 return _IMP_kernel._give_particles(m)
8821 def _pass_particles(ps):
8822 """_pass_particles(IMP::Particles const & ps) -> IMP::Particles const &"""
8823 return _IMP_kernel._pass_particles(ps)
8825 def _pass_particle(ps):
8826 """_pass_particle(Particle ps) -> Particle"""
8827 return _IMP_kernel._pass_particle(ps)
8829 def _pass_particle_pair(pp):
8830 """_pass_particle_pair(IMP::ParticlePair const & pp) -> IMP::ParticlePair const &"""
8831 return _IMP_kernel._pass_particle_pair(pp)
8833 def _give_particles_copy(m):
8834 """_give_particles_copy(Model m) -> IMP::Particles"""
8835 return _IMP_kernel._give_particles_copy(m)
8837 def _pass_float_keys(input):
8838 """_pass_float_keys(IMP::FloatKeys const & input) -> IMP::FloatKeys"""
8839 return _IMP_kernel._pass_float_keys(input)
8843 _pass(IMP::Particles const & p) -> IMP::Particles const
8844 _pass(IMP::Restraints const & p) -> IMP::Restraints const &
8846 return _IMP_kernel._pass(*args)
8848 def _pass_decorators(p):
8849 """_pass_decorators(IMP::internal::_TrivialDecorators const & p) -> IMP::internal::_TrivialDecorators const &"""
8850 return _IMP_kernel._pass_decorators(p)
8852 def _pass_decorator_traits(p):
8853 """_pass_decorator_traits(IMP::internal::_TrivialTraitsDecorators const & p) -> IMP::internal::_TrivialTraitsDecorators const &"""
8854 return _IMP_kernel._pass_decorator_traits(p)
8856 def _pass_particle_pairs(p):
8857 """_pass_particle_pairs(IMP::ParticlePairsTemp const & p) -> IMP::ParticlePairsTemp"""
8858 return _IMP_kernel._pass_particle_pairs(p)
8860 def _pass_particle_index_pairs(p):
8861 """_pass_particle_index_pairs(IMP::ParticleIndexPairs const & p) -> IMP::ParticleIndexPairs"""
8862 return _IMP_kernel._pass_particle_index_pairs(p)
8864 def _pass_model_objects(p):
8865 """_pass_model_objects(IMP::ModelObjectsTemp const & p) -> IMP::ModelObjectsTemp"""
8866 return _IMP_kernel._pass_model_objects(p)
8868 def _pass_particles_temps(ps):
8869 """_pass_particles_temps(IMP::ParticlesTemps const & ps) -> IMP::ParticlesTemps"""
8870 return _IMP_kernel._pass_particles_temps(ps)
8872 def _test_overload(*args):
8874 _test_overload(IMP::Particles const & ps) -> int
8875 _test_overload(IMP::Restraints const & ps) -> int
8877 return _IMP_kernel._test_overload(*args)
8879 def _get_range(m, k):
8880 """_get_range(Model m, FloatKey k) -> IMP::FloatRange"""
8881 return _IMP_kernel._get_range(m, k)
8883 def _create_particles_from_pdb(name, m):
8884 """_create_particles_from_pdb(std::string name, Model m) -> IMP::ParticleIndexes"""
8885 return _IMP_kernel._create_particles_from_pdb(name, m)
8886 class _LogPairScore(PairScore):
8887 """Proxy of C++ IMP::internal::_LogPairScore class"""
8888 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8889 __repr__ = _swig_repr
8892 """__init__(IMP::internal::_LogPairScore self) -> _LogPairScore"""
8893 this = _IMP_kernel.new__LogPairScore()
8895 self.this.append(this)
8899 def do_get_inputs(self, arg2, arg3):
8900 """do_get_inputs(_LogPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
8901 return _IMP_kernel._LogPairScore_do_get_inputs(self, arg2, arg3)
8904 def get_version_info(self):
8905 """get_version_info(_LogPairScore self) -> VersionInfo"""
8906 return _IMP_kernel._LogPairScore_get_version_info(self)
8909 def get_particle_pairs(self):
8910 """get_particle_pairs(_LogPairScore self) -> IMP::ParticlePairsTemp"""
8911 return _IMP_kernel._LogPairScore_get_particle_pairs(self)
8915 """clear(_LogPairScore self)"""
8916 return _IMP_kernel._LogPairScore_clear(self)
8919 def get_contains(self, pp):
8920 """get_contains(_LogPairScore self, IMP::ParticlePair const & pp) -> bool"""
8921 return _IMP_kernel._LogPairScore_get_contains(self, pp)
8923 _LogPairScore_swigregister = _IMP_kernel._LogPairScore_swigregister
8924 _LogPairScore_swigregister(_LogPairScore)
8927 def _overloaded_particles(*args):
8929 _overloaded_particles(Particle arg1)
8930 _overloaded_particles(IMP::Particles const & arg1)
8931 _overloaded_particles(IMP::ParticlesTemp const & arg1)
8932 _overloaded_particles(Model arg1, IMP::ParticleIndexes const & arg2)
8933 _overloaded_particles(IMP::internal::_TrivialDecorators const & arg1)
8934 _overloaded_particles(_TrivialDecorator arg1)
8936 return _IMP_kernel._overloaded_particles(*args)
8937 class _ImplicitParticles(object):
8938 """Proxy of C++ IMP::internal::_ImplicitParticles class"""
8939 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8940 __repr__ = _swig_repr
8942 def __init__(self, *args):
8944 __init__(IMP::internal::_ImplicitParticles self, Particle arg2) -> _ImplicitParticles
8945 __init__(IMP::internal::_ImplicitParticles self, IMP::Particles const & arg2) -> _ImplicitParticles
8946 __init__(IMP::internal::_ImplicitParticles self, IMP::ParticlesTemp const & arg2) -> _ImplicitParticles
8947 __init__(IMP::internal::_ImplicitParticles self, Model arg2, IMP::ParticleIndexes const & arg3) -> _ImplicitParticles
8948 __init__(IMP::internal::_ImplicitParticles self, IMP::internal::_TrivialDecorators const & arg2) -> _ImplicitParticles
8949 __init__(IMP::internal::_ImplicitParticles self, _TrivialDecorator arg2) -> _ImplicitParticles
8951 this = _IMP_kernel.new__ImplicitParticles(*args)
8953 self.this.append(this)
8956 __swig_destroy__ = _IMP_kernel.delete__ImplicitParticles
8957 __del__ =
lambda self:
None
8958 _ImplicitParticles_swigregister = _IMP_kernel._ImplicitParticles_swigregister
8959 _ImplicitParticles_swigregister(_ImplicitParticles)
8962 def _implicit_particles(arg1):
8963 """_implicit_particles(_ImplicitParticles arg1)"""
8964 return _IMP_kernel._implicit_particles(arg1)
8966 def _take_particle_adaptor(pa):
8967 """_take_particle_adaptor(_ParticleAdaptor pa) -> ParticleIndex"""
8968 return _IMP_kernel._take_particle_adaptor(pa)
8970 def _take_particle_indexes_adaptor(pa):
8971 """_take_particle_indexes_adaptor(_ParticleIndexesAdaptor pa) -> IMP::ParticleIndexes"""
8972 return _IMP_kernel._take_particle_indexes_adaptor(pa)
8973 class ScopedSetFloatAttribute(_RAII):
8974 """Proxy of C++ IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> class"""
8975 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8977 def __init__(self, *args):
8979 __init__(IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> self) -> ScopedSetFloatAttribute
8980 __init__(IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> self, Particle p, FloatKey key, double const & value) -> ScopedSetFloatAttribute
8982 this = _IMP_kernel.new_ScopedSetFloatAttribute(*args)
8984 self.this.append(this)
8988 def set(self, p, key, value):
8989 """set(ScopedSetFloatAttribute self, Particle p, FloatKey key, double const & value)"""
8990 return _IMP_kernel.ScopedSetFloatAttribute_set(self, p, key, value)
8994 """reset(ScopedSetFloatAttribute self)"""
8995 return _IMP_kernel.ScopedSetFloatAttribute_reset(self)
8997 __swig_destroy__ = _IMP_kernel.delete_ScopedSetFloatAttribute
8998 __del__ =
lambda self:
None
9000 def show(self, *args):
9002 show(ScopedSetFloatAttribute self, _ostream out)
9003 show(ScopedSetFloatAttribute self)
9005 return _IMP_kernel.ScopedSetFloatAttribute_show(self, *args)
9009 """__str__(ScopedSetFloatAttribute self) -> std::string"""
9010 return _IMP_kernel.ScopedSetFloatAttribute___str__(self)
9014 """__repr__(ScopedSetFloatAttribute self) -> std::string"""
9015 return _IMP_kernel.ScopedSetFloatAttribute___repr__(self)
9017 ScopedSetFloatAttribute_swigregister = _IMP_kernel.ScopedSetFloatAttribute_swigregister
9018 ScopedSetFloatAttribute_swigregister(ScopedSetFloatAttribute)
9027 if sys.platform ==
'win32' and 'IMP_LD_PATH' in os.environ:
9028 dirs = os.environ[
'IMP_LD_PATH'].split(
":")
9029 pathcomps = os.environ[
'PATH'].split(
";")
9031 if d
not in pathcomps:
9032 os.environ[
'PATH'] = d +
';' + os.environ[
'PATH']
9038 """Allow command line tools to easily implement multiple commmands.
9039 Typically, an IMP comand line tool will use an instance of this class
9040 to provide a consistent interface to multiple distinct commands
9041 from a single binary, rather than providing a potentially large
9042 number of binaries. This is similar to the way a number of common
9043 command line tools outside of %IMP function (e.g. Git provides a single
9044 `git` tool which implements multiple commands - `git add`, `git commit`,
9045 `git push` and so on).
9047 Each command is implemented with a Python module of the same name
9048 that can be imported from the module (for example, if `module_name`
9049 is `IMP.foo`, the `bar` command is provided by the `IMP.foo.bar` Python
9050 module, which would usually be found as `modules/foo/pyext/src/bar.py`).
9051 Each such module should have a docstring and a `%main()` method
9052 that takes no arguments (the module should also call its `%main()` method
9053 if it is run directly, i.e. with something like
9054 `if __name__=="__main__": %main()`). The encompassing module
9055 (`IMP.foo` in the example) should define `_all_commands` as a Python
9056 list of all valid commands.
9058 See the `multifit` and `cnmultifit` command line tools for example
9062 def __init__(self, short_help, long_help, module_name):
9064 @param short_help A few words that describe the command line tool.
9065 @param long_help Longer text, used in the `help` command.
9066 @param module_name Name of the module (e.g. `IMP.foo`) that
9067 implements the commands.
9069 self.short_help = short_help
9070 self.long_help = long_help
9071 self.module_name = module_name
9072 self._all_commands = self.import_module()._all_commands
9073 self._progname = os.path.basename(sys.argv[0])
9076 """Call this method to act upon the user-provided command line"""
9077 if len(sys.argv) <= 1:
9078 print(self.short_help +
" Use '%s help' for help." % self._progname)
9080 command = sys.argv[1]
9081 if command
in (
'help',
'--help',
'-h'):
9082 if len(sys.argv) == 3:
9083 self.show_command_help(sys.argv[2])
9086 elif command ==
'--version':
9088 elif command
in self._all_commands:
9089 self.do_command(command)
9091 self.unknown_command(command)
9093 def import_module(self, mod=None):
9094 modname = self.module_name
9096 modname +=
"." + mod
9097 return __import__(modname, {}, {}, [
''])
9099 def unknown_command(self, command):
9100 print(
"Unknown command: '%s'" % command)
9101 print(
"Use '%s help' for help." % self._progname)
9104 def _get_version(self):
9105 return self.import_module().get_module_version()
9107 def show_version(self):
9108 print(self._progname +
' ' + self._get_version())
9110 def show_help(self):
9111 ver = self._get_version()
9112 print(
"%s, version %s." % (self._progname, ver))
9113 print(self.long_help +
"""
9115 This program is part of IMP, the Integrative Modeling Platform,
9116 which is Copyright 2007-2015 IMP Inventors.
9117 For additional information about IMP, see <http://integrativemodeling.org>.
9119 Usage: %s <command> [options] [args]
9121 Commands:""" % self._progname)
9122 commands = self._all_commands[:] + [
'help']
9124 cmdlen = max([len(c)
for c
in commands])
9127 doc =
'Get help on using %s.' % self._progname
9129 doc = self.import_module(c).__doc__
or "<no help>"
9130 c +=
' ' * (cmdlen - len(c))
9131 print(
' ' + c +
' ' + doc)
9133 Use "%s help <command>" for detailed help on any command
9134 or "%s --version" to see the version number.""" % (self._progname,
9137 def do_command(self, command):
9138 mod = self.import_module(command)
9139 sys.argv[0] = self._progname +
' ' + command
9143 def show_command_help(self, command):
9144 if command ==
'help':
9146 elif command
in self._all_commands
or command ==
'help':
9147 mod = self.import_module(command)
9148 sys.argv = [self._progname +
' ' + command,
'--help']
9151 self.unknown_command(command)
9158 """IMP-specific subclass of optparse.OptionParser.
9159 This adds options common to all IMP applications
9160 (see IMP::setup_from_argv()).
9163 _use_boost_parser =
True
9165 def __init__(self, *args, **kwargs):
9168 kwargs[
'add_help_option'] =
False
9169 kwargs[
'version'] =
None
9171 if 'imp_module' in kwargs:
9172 del kwargs[
'imp_module']
9174 optparse.OptionParser.__init__(self, *args, **kwargs)
9176 if 'epilog' in kwargs:
9178 del kwargs[
'epilog']
9179 optparse.OptionParser.__init__(self, *args, **kwargs)
9185 def _process_long_opt(self, rargs, values):
9186 if self._use_boost_parser:
9188 optparse.OptionParser._process_long_opt(self, rargs, values)
9189 except optparse.BadOptionError
as err:
9190 if not hasattr(err,
'opt_str') \
9191 and err.msg.startswith(
'no such option:'):
9192 self.largs.append(err.msg[16:])
9194 self.largs.append(err.opt_str)
9196 optparse.OptionParser._process_long_opt(self, rargs, values)
9197 def _process_short_opts(self, rargs, values):
9198 if self._use_boost_parser:
9200 optparse.OptionParser._process_short_opts(self, rargs, values)
9201 except optparse.BadOptionError
as err:
9202 self.largs.append(err.opt_str)
9204 optparse.OptionParser._process_short_opts(self, rargs, values)
9206 def _process_args(self, largs, rargs, values):
9207 if self._use_boost_parser:
9212 dashdash = rargs.index(
'--')
9214 dashdash = len(rargs)
9215 saved_args = rargs[dashdash:]
9216 del rargs[dashdash:]
9217 optparse.OptionParser._process_args(self, largs, rargs, values)
9218 rargs.extend(saved_args)
9220 optparse.OptionParser._process_args(self, largs, rargs, values)
9223 """Parse the command line and return options and positional arguments.
9224 This functions in the same way as the method in the base class
9225 optparse.OptionParser, except that it also processes options common
9226 to all IMP applications (these are not returned in opts, but can be
9227 obtained in the usual way, e.g. by calling
9228 IMP::get_string_flag()).
9229 @param[in] num_positional If a positive integer, exactly that
9230 many positional arguments must be specified on the
9231 command line; if a negative integer, that many or
9232 more must be given; if None, any number of positional
9233 arguments can be given.
9237 opts, args = optparse.OptionParser.parse_args(self)
9238 if not self._use_boost_parser:
9240 orig_desc = self.description
9241 orig_usage = self.usage
9243 usage = self.usage.replace(
'%prog ',
'')
9246 if num_positional
is None:
9250 args.append(
'dummy')
9252 numpos = num_positional
9254 self.usage = self.description =
None
9258 self.format_help() \
9259 +
"\nOptions common to all IMP applications:",
9262 self.description = orig_desc
9263 self.usage = orig_usage
9264 if num_positional
is None:
9270 g = networkx.DiGraph()
9271 if len(ig.get_vertices()) == 0:
9276 def __init__(self, p):
9280 return self.p.get_name()
9282 def __call__(self, name):
9283 return self.p.__call__(name)
9285 for vi
in ig.get_vertices():
9286 n = ig.get_vertex_name(vi)
9287 g.add_node(NodeWrapper(n))
9288 for vi
in ig.get_vertices():
9289 n = ig.get_vertex_name(vi)
9290 for ni
in ig.get_out_neighbors(vi):
9291 nn = ig.get_vertex_name(ni)
9292 g.add_edge(NodeWrapper(n), NodeWrapper(nn))
9299 n0 = name.get_name()
9302 n1 = str(n0).replace(
'"',
'')
9303 n2 = n1.replace(
"\n",
'')
9306 from altgraph
import Graph, Dot
9307 graph = Graph.Graph()
9308 for i, v
in enumerate(g.get_vertices()):
9310 for i, v
in enumerate(g.get_vertices()):
9311 for n
in g.get_out_neighbors(v):
9312 graph.add_edge(v, n)
9313 dot = Dot.Dot(graph)
9314 for i, v
in enumerate(g.get_vertices()):
9315 dot.node_style(i, label=clean(g.get_vertex_name(v)))
9322 st = g.get_graphviz_string()
9323 open(tfn,
"w").write(st)
9328 sys.stderr.write(
"Cannot run dot on Python 2.3 systems.\n")
9331 print(
"running dot")
9332 sp = subprocess.Popen([
"dot",
"-Tpdf", tfn,
"-o" + tfon])
9336 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")
9339 if platform.system() ==
"Darwin":
9342 cmd = [
"gv",
"acroread",
"xpdf"]
9345 print(
"launching viewer " + c)
9347 subprocess.check_call([c, tfon])
9353 print(
"Could not display file. It is saved at " + tfon)
9361 """Mark a Python module as deprecated.
9362 @note The `module` argument would normally be `__name__`.
9363 @see [deprecation support](@ref deprecation)."""
9365 "Module %s is deprecated. %s" % (module, help_message))
9368 """Python decorator to mark a class as deprecated.
9369 @see [deprecation support](@ref deprecation)."""
9371 orig_init = obj.__init__
9374 @functools.wraps(orig_init, (
'__name__',
'__doc__'))
9375 def __init__(obj, *args, **keys):
9377 % (type(obj), help_message))
9378 orig_init(obj, *args, **keys)
9379 obj.__init__ = __init__
9384 """Python decorator to mark a method as deprecated.
9385 @see [deprecation support](@ref deprecation)."""
9386 def out_wrapper(obj):
9387 @functools.wraps(obj)
9388 def wrapper(cls, *args, **keys):
9390 % (obj.__name__, type(cls), help_message))
9391 return obj(cls, *args, **keys)
9396 """Python decorator to mark a function as deprecated.
9397 @see [deprecation support](@ref deprecation)."""
9398 def out_wrapper(obj):
9399 @functools.wraps(obj)
9400 def wrapper(*args, **keys):
9402 % (obj.__name__, help_message))
9403 return obj(*args, **keys)
9407 @contextlib.contextmanager
9409 """Context manager to temporarily allow (or disallow) deprecated code.
9410 @see [deprecation support](@ref deprecation)."""
9416 class RandomNumberGenerator(object):
9417 """Proxy of C++ IMP::RandomNumberGenerator class"""
9418 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9419 __repr__ = _swig_repr
9422 """seed(RandomNumberGenerator self, ::boost::int32_t x)"""
9423 return _IMP_kernel.RandomNumberGenerator_seed(self, x)
9427 """__call__(RandomNumberGenerator self) -> int"""
9428 return _IMP_kernel.RandomNumberGenerator___call__(self)
9432 """__init__(IMP::RandomNumberGenerator self) -> RandomNumberGenerator"""
9433 this = _IMP_kernel.new_RandomNumberGenerator()
9435 self.this.append(this)
9438 __swig_destroy__ = _IMP_kernel.delete_RandomNumberGenerator
9439 __del__ =
lambda self:
None
9440 RandomNumberGenerator_swigregister = _IMP_kernel.RandomNumberGenerator_swigregister
9441 RandomNumberGenerator_swigregister(RandomNumberGenerator)
9446 get_random_float_uniform() -> float
9447 get_random_float_uniform(float min, float max) -> float
9449 return _IMP_kernel.get_random_float_uniform(*args)
9453 get_random_double_uniform() -> double
9454 get_random_double_uniform(double min, double max) -> double
9456 return _IMP_kernel.get_random_double_uniform(*args)
9458 def get_random_floats_normal(n, mean=0.0, stddev=1.0):
9460 get_random_floats_normal(unsigned int n, float mean=0.0, float stddev=1.0) -> IMP::Vector< float >
9461 get_random_floats_normal(unsigned int n, float mean=0.0) -> IMP::Vector< float >
9462 get_random_floats_normal(unsigned int n) -> IMP::Vector< float >
9464 return _IMP_kernel.get_random_floats_normal(n, mean, stddev)
9466 def get_random_doubles_normal(n, mean=0.0, stddev=1.0):
9468 get_random_doubles_normal(unsigned int n, double mean=0.0, double stddev=1.0) -> IMP::Vector< double >
9469 get_random_doubles_normal(unsigned int n, double mean=0.0) -> IMP::Vector< double >
9470 get_random_doubles_normal(unsigned int n) -> IMP::Vector< double >
9472 return _IMP_kernel.get_random_doubles_normal(n, mean, stddev)
9474 def get_random_floats_uniform(n):
9475 """get_random_floats_uniform(unsigned int n) -> IMP::Vector< float >"""
9476 return _IMP_kernel.get_random_floats_uniform(n)
9478 def get_random_doubles_uniform(n):
9479 """get_random_doubles_uniform(unsigned int n) -> IMP::Vector< double >"""
9480 return _IMP_kernel.get_random_doubles_uniform(n)
9483 """get_random_seed() -> boost::uint64_t"""
9484 return _IMP_kernel.get_random_seed()
9486 def get_module_version():
9487 """get_module_version() -> std::string const"""
9488 return _IMP_kernel.get_module_version()
9491 """get_example_path(std::string fname) -> std::string"""
9492 return _IMP_kernel.get_example_path(fname)
9495 """get_data_path(std::string fname) -> std::string"""
9496 return _IMP_kernel.get_data_path(fname)
9497 from .
import _version_check
9498 _version_check.check_version(get_module_version())
9499 __version__ = get_module_version()
9502 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 commmands.
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::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)
void show(Hierarchy h, std::ostream &out=std::cout)
Print out a molecular hierarchy.
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.