10 from __future__
import print_function, division, absolute_import
15 from sys
import version_info
as _swig_python_version_info
16 if _swig_python_version_info >= (2, 7, 0):
17 def swig_import_helper():
19 pkg = __name__.rpartition(
'.')[0]
20 mname =
'.'.join((pkg,
'_IMP_kernel')).lstrip(
'.')
22 return importlib.import_module(mname)
24 return importlib.import_module(
'_IMP_kernel')
25 _IMP_kernel = swig_import_helper()
26 del swig_import_helper
27 elif _swig_python_version_info >= (2, 6, 0):
28 def swig_import_helper():
29 from os.path
import dirname
33 fp, pathname, description = imp.find_module(
'_IMP_kernel', [dirname(__file__)])
39 _mod = imp.load_module(
'_IMP_kernel', fp, pathname, description)
43 _IMP_kernel = swig_import_helper()
44 del swig_import_helper
47 del _swig_python_version_info
49 _swig_property = property
54 import builtins
as __builtin__
58 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
59 if (name ==
"thisown"):
60 return self.this.own(value)
62 if type(value).__name__ ==
'SwigPyObject':
63 self.__dict__[name] = value
65 method = class_type.__swig_setmethods__.get(name,
None)
67 return method(self, value)
69 object.__setattr__(self, name, value)
71 raise AttributeError(
"You cannot add attributes to %s" % self)
74 def _swig_setattr(self, class_type, name, value):
75 return _swig_setattr_nondynamic(self, class_type, name, value, 0)
78 def _swig_getattr(self, class_type, name):
79 if (name ==
"thisown"):
80 return self.this.own()
81 method = class_type.__swig_getmethods__.get(name,
None)
84 raise AttributeError(
"'%s' object has no attribute '%s'" % (class_type.__name__, name))
89 strthis =
"proxy of " + self.this.__repr__()
90 except __builtin__.Exception:
92 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
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
109 except __builtin__.Exception:
110 weakref_proxy =
lambda x: x
113 class IMP_KERNEL_SwigPyIterator(object):
114 """Proxy of C++ swig::IMP_KERNEL_SwigPyIterator class."""
116 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
118 def __init__(self, *args, **kwargs):
119 raise AttributeError(
"No constructor defined - class is abstract")
120 __repr__ = _swig_repr
121 __swig_destroy__ = _IMP_kernel.delete_IMP_KERNEL_SwigPyIterator
122 __del__ =
lambda self:
None
125 """value(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
126 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_value(self)
131 incr(IMP_KERNEL_SwigPyIterator self, size_t n=1) -> IMP_KERNEL_SwigPyIterator
132 incr(IMP_KERNEL_SwigPyIterator self) -> IMP_KERNEL_SwigPyIterator
134 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_incr(self, n)
139 decr(IMP_KERNEL_SwigPyIterator self, size_t n=1) -> IMP_KERNEL_SwigPyIterator
140 decr(IMP_KERNEL_SwigPyIterator self) -> IMP_KERNEL_SwigPyIterator
142 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_decr(self, n)
145 def distance(self, x):
146 """distance(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> ptrdiff_t"""
147 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_distance(self, x)
151 """equal(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
152 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_equal(self, x)
156 """copy(IMP_KERNEL_SwigPyIterator self) -> IMP_KERNEL_SwigPyIterator"""
157 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_copy(self)
161 """next(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
162 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_next(self)
166 """__next__(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
167 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___next__(self)
171 """previous(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
172 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_previous(self)
175 def advance(self, n):
176 """advance(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
177 return _IMP_kernel.IMP_KERNEL_SwigPyIterator_advance(self, n)
181 """__eq__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
182 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___eq__(self, x)
186 """__ne__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
187 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___ne__(self, x)
190 def __iadd__(self, n):
191 """__iadd__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
192 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___iadd__(self, n)
195 def __isub__(self, n):
196 """__isub__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
197 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___isub__(self, n)
200 def __add__(self, n):
201 """__add__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
202 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___add__(self, n)
205 def __sub__(self, *args):
207 __sub__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator
208 __sub__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> ptrdiff_t
210 return _IMP_kernel.IMP_KERNEL_SwigPyIterator___sub__(self, *args)
214 IMP_KERNEL_SwigPyIterator_swigregister = _IMP_kernel.IMP_KERNEL_SwigPyIterator_swigregister
215 IMP_KERNEL_SwigPyIterator_swigregister(IMP_KERNEL_SwigPyIterator)
223 IMP_DEBUG = _IMP_kernel.IMP_DEBUG
224 IMP_RELEASE = _IMP_kernel.IMP_RELEASE
225 IMP_SILENT = _IMP_kernel.IMP_SILENT
226 IMP_PROGRESS = _IMP_kernel.IMP_PROGRESS
227 IMP_TERSE = _IMP_kernel.IMP_TERSE
228 IMP_VERBOSE = _IMP_kernel.IMP_VERBOSE
229 IMP_MEMORY = _IMP_kernel.IMP_MEMORY
230 IMP_NONE = _IMP_kernel.IMP_NONE
231 IMP_USAGE = _IMP_kernel.IMP_USAGE
232 IMP_INTERNAL = _IMP_kernel.IMP_INTERNAL
233 IMP_KERNEL_HAS_LOG4CXX = _IMP_kernel.IMP_KERNEL_HAS_LOG4CXX
234 IMP_COMPILER_HAS_AUTO = _IMP_kernel.IMP_COMPILER_HAS_AUTO
235 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_kernel.IMP_COMPILER_HAS_DEBUG_VECTOR
236 IMP_COMPILER_HAS_UNIQUE_PTR = _IMP_kernel.IMP_COMPILER_HAS_UNIQUE_PTR
237 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_kernel.IMP_KERNEL_HAS_BOOST_RANDOM
238 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_kernel.IMP_KERNEL_HAS_GPERFTOOLS
239 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
240 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
241 IMPKERNEL_SHOW_WARNINGS = _IMP_kernel.IMPKERNEL_SHOW_WARNINGS
244 class _DirectorObjects(object):
245 """@internal Simple class to keep references to director objects
246 to prevent premature deletion."""
249 def register(self, obj):
250 """Take a reference to a director object; will only work for
251 refcounted C++ classes"""
252 if hasattr(obj,
'get_ref_count'):
253 self._objects.append(obj)
255 """Only drop our reference and allow cleanup by Python if no other
256 Python references exist (we hold 3 references: one in self._objects,
257 one in x, and one in the argument list for getrefcount) *and* no
258 other C++ references exist (the Python object always holds one)"""
259 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
260 or x.get_ref_count() > 1]
264 def get_object_count(self):
265 """Get number of director objects (useful for testing only)"""
266 return len(self._objects)
267 _director_objects = _DirectorObjects()
269 DEFAULT_CHECK = _IMP_kernel.DEFAULT_CHECK
270 NONE = _IMP_kernel.NONE
271 USAGE = _IMP_kernel.USAGE
272 USAGE_AND_INTERNAL = _IMP_kernel.USAGE_AND_INTERNAL
275 """set_check_level(IMP::CheckLevel tf)"""
276 return _IMP_kernel.set_check_level(tf)
279 """get_check_level() -> IMP::CheckLevel"""
280 return _IMP_kernel.get_check_level()
282 from _IMP_kernel
import Exception, InternalException, ModelException, EventException
283 from _IMP_kernel
import UsageException, IndexException, IOException, ValueException
284 from _IMP_kernel
import TypeException
286 class _ostream(object):
287 """Proxy of C++ std::ostream class."""
289 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
291 def __init__(self, *args, **kwargs):
292 raise AttributeError(
"No constructor defined")
293 __repr__ = _swig_repr
295 def write(self, osa_buf):
296 """write(_ostream self, char const * osa_buf)"""
297 return _IMP_kernel._ostream_write(self, osa_buf)
299 _ostream_swigregister = _IMP_kernel._ostream_swigregister
300 _ostream_swigregister(_ostream)
302 IMP_COMPILER_HAS_OVERRIDE = _IMP_kernel.IMP_COMPILER_HAS_OVERRIDE
303 IMP_COMPILER_HAS_FINAL = _IMP_kernel.IMP_COMPILER_HAS_FINAL
304 IMP_HAS_NOEXCEPT = _IMP_kernel.IMP_HAS_NOEXCEPT
305 IMP_C_OPEN_BINARY = _IMP_kernel.IMP_C_OPEN_BINARY
307 _raii_types.append(
"SetLogState")
310 _raii_types.append(
"SetNumberOfThreads")
313 _raii_types.append(
"SetCheckState")
316 _object_types.append(
"Object")
319 def _object_cast_to_Object(o):
320 """_object_cast_to_Object(Object * o) -> Object"""
321 return _IMP_kernel._object_cast_to_Object(o)
323 _object_types.append(
"_TestObject")
326 def _object_cast_to__TestObject(o):
327 """_object_cast_to__TestObject(Object * o) -> _TestObject"""
328 return _IMP_kernel._object_cast_to__TestObject(o)
331 _plural_types.append(
"VersionInfos")
332 _value_types.append(
"VersionInfo")
335 _raii_types.append(
"CreateLogContext")
338 _raii_types.append(
"WarningContext")
341 _raii_types.append(
"SetLogTarget")
345 _plural_types.append(
"_TestValues")
346 _value_types.append(
"_TestValue")
350 _plural_types.append(
"Floats")
351 _value_types.append(
"Float")
355 _plural_types.append(
"Ints")
356 _value_types.append(
"Int")
360 _plural_types.append(
"Strings")
361 _value_types.append(
"String")
365 _plural_types.append(
"_Protections")
366 _value_types.append(
"_Protection")
368 class _InputAdaptor(object):
369 """Proxy of C++ IMP::InputAdaptor class."""
371 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
373 def __init__(self, *args, **kwargs):
374 raise AttributeError(
"No constructor defined")
375 __repr__ = _swig_repr
376 __swig_destroy__ = _IMP_kernel.delete__InputAdaptor
377 __del__ =
lambda self:
None
378 _InputAdaptor_swigregister = _IMP_kernel._InputAdaptor_swigregister
379 _InputAdaptor_swigregister(_InputAdaptor)
381 class _NonCopyable(object):
382 """Proxy of C++ IMP::NonCopyable class."""
384 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
386 def __init__(self, *args, **kwargs):
387 raise AttributeError(
"No constructor defined")
388 __repr__ = _swig_repr
389 __swig_destroy__ = _IMP_kernel.delete__NonCopyable
390 __del__ =
lambda self:
None
391 _NonCopyable_swigregister = _IMP_kernel._NonCopyable_swigregister
392 _NonCopyable_swigregister(_NonCopyable)
394 class _RAII(_NonCopyable):
395 """Proxy of C++ IMP::RAII class."""
397 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
399 def __init__(self, *args, **kwargs):
400 raise AttributeError(
"No constructor defined")
401 __repr__ = _swig_repr
402 __swig_destroy__ = _IMP_kernel.delete__RAII
403 __del__ =
lambda self:
None
404 _RAII_swigregister = _IMP_kernel._RAII_swigregister
405 _RAII_swigregister(_RAII)
407 class _Value(object):
408 """Proxy of C++ IMP::Value class."""
410 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
412 def __init__(self, *args, **kwargs):
413 raise AttributeError(
"No constructor defined")
414 __repr__ = _swig_repr
415 __swig_destroy__ = _IMP_kernel.delete__Value
416 __del__ =
lambda self:
None
417 _Value_swigregister = _IMP_kernel._Value_swigregister
418 _Value_swigregister(_Value)
422 """get_executable_name() -> std::string"""
423 return _IMP_kernel.get_executable_name()
427 setup_from_argv(IMP::Strings const & argv, std::string description)
428 setup_from_argv(IMP::Strings const & argv, std::string description, std::string positional_description, int num_positional) -> IMP::Strings
430 return _IMP_kernel.setup_from_argv(*args)
433 """add_string_flag(std::string name, std::string default_value, std::string description)"""
434 return _IMP_kernel.add_string_flag(name, default_value, description)
437 """get_string_flag(std::string name) -> std::string"""
438 return _IMP_kernel.get_string_flag(name)
441 """add_int_flag(std::string name, size_t default_value, std::string description)"""
442 return _IMP_kernel.add_int_flag(name, default_value, description)
445 """get_int_flag(std::string name) -> size_t"""
446 return _IMP_kernel.get_int_flag(name)
449 """add_bool_flag(std::string name, std::string description)"""
450 return _IMP_kernel.add_bool_flag(name, description)
453 """get_bool_flag(std::string name) -> bool"""
454 return _IMP_kernel.get_bool_flag(name)
457 """add_float_flag(std::string name, double default_value, std::string description)"""
458 return _IMP_kernel.add_float_flag(name, default_value, description)
461 """get_float_flag(std::string name) -> double"""
462 return _IMP_kernel.get_float_flag(name)
466 write_help(_ostream out)
469 return _IMP_kernel.write_help(*args)
472 """get_is_quick_test() -> bool"""
473 return _IMP_kernel.get_is_quick_test()
474 DEFAULT = _IMP_kernel.DEFAULT
475 SILENT = _IMP_kernel.SILENT
476 WARNING = _IMP_kernel.WARNING
477 PROGRESS = _IMP_kernel.PROGRESS
478 TERSE = _IMP_kernel.TERSE
479 VERBOSE = _IMP_kernel.VERBOSE
480 MEMORY = _IMP_kernel.MEMORY
481 ALL_LOG = _IMP_kernel.ALL_LOG
482 class VersionInfo(_Value):
483 """Proxy of C++ IMP::VersionInfo class."""
485 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
487 def __init__(self, *args):
489 __init__(IMP::VersionInfo self, std::string module, std::string version) -> VersionInfo
490 __init__(IMP::VersionInfo self) -> VersionInfo
492 this = _IMP_kernel.new_VersionInfo(*args)
494 self.this.append(this)
495 except __builtin__.Exception:
498 def get_module(self):
499 """get_module(VersionInfo self) -> std::string"""
500 return _IMP_kernel.VersionInfo_get_module(self)
503 def get_version(self):
504 """get_version(VersionInfo self) -> std::string"""
505 return _IMP_kernel.VersionInfo_get_version(self)
508 def show(self, *args):
510 show(VersionInfo self, _ostream out)
511 show(VersionInfo self)
513 return _IMP_kernel.VersionInfo_show(self, *args)
516 def __cmp__(self, o):
517 """__cmp__(VersionInfo self, VersionInfo o) -> int"""
518 return _IMP_kernel.VersionInfo___cmp__(self, o)
522 """__eq__(VersionInfo self, VersionInfo o) -> bool"""
523 return _IMP_kernel.VersionInfo___eq__(self, o)
527 """__ne__(VersionInfo self, VersionInfo o) -> bool"""
528 return _IMP_kernel.VersionInfo___ne__(self, o)
532 """__lt__(VersionInfo self, VersionInfo o) -> bool"""
533 return _IMP_kernel.VersionInfo___lt__(self, o)
537 """__gt__(VersionInfo self, VersionInfo o) -> bool"""
538 return _IMP_kernel.VersionInfo___gt__(self, o)
542 """__ge__(VersionInfo self, VersionInfo o) -> bool"""
543 return _IMP_kernel.VersionInfo___ge__(self, o)
547 """__le__(VersionInfo self, VersionInfo o) -> bool"""
548 return _IMP_kernel.VersionInfo___le__(self, o)
552 """__str__(VersionInfo self) -> std::string"""
553 return _IMP_kernel.VersionInfo___str__(self)
557 """__repr__(VersionInfo self) -> std::string"""
558 return _IMP_kernel.VersionInfo___repr__(self)
560 __swig_destroy__ = _IMP_kernel.delete_VersionInfo
561 __del__ =
lambda self:
None
562 VersionInfo_swigregister = _IMP_kernel.VersionInfo_swigregister
563 VersionInfo_swigregister(VersionInfo)
565 class TextOutput(_InputAdaptor):
566 """Proxy of C++ IMP::TextOutput class."""
568 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
569 __repr__ = _swig_repr
571 def __init__(self, *args):
573 __init__(IMP::TextOutput self, int arg2) -> TextOutput
574 __init__(IMP::TextOutput self, double arg2) -> TextOutput
575 __init__(IMP::TextOutput self, char const * c, bool append=False) -> TextOutput
576 __init__(IMP::TextOutput self, char const * c) -> TextOutput
577 __init__(IMP::TextOutput self, IMP::TextProxy< std::ostream > p) -> TextOutput
578 __init__(IMP::TextOutput self) -> TextOutput
579 __init__(IMP::TextOutput self, std::string file_name, bool append=False) -> TextOutput
580 __init__(IMP::TextOutput self, std::string file_name) -> TextOutput
582 this = _IMP_kernel.new_TextOutput(*args)
584 self.this.append(this)
585 except __builtin__.Exception:
588 def show(self, *args):
590 show(TextOutput self, _ostream out)
591 show(TextOutput self)
593 return _IMP_kernel.TextOutput_show(self, *args)
597 """get_name(TextOutput self) -> std::string"""
598 return _IMP_kernel.TextOutput_get_name(self)
600 __swig_destroy__ = _IMP_kernel.delete_TextOutput
601 __del__ =
lambda self:
None
602 TextOutput_swigregister = _IMP_kernel.TextOutput_swigregister
603 TextOutput_swigregister(TextOutput)
605 class TextInput(_InputAdaptor):
606 """Proxy of C++ IMP::TextInput class."""
608 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
609 __repr__ = _swig_repr
611 def __init__(self, *args):
613 __init__(IMP::TextInput self, int arg2) -> TextInput
614 __init__(IMP::TextInput self, double arg2) -> TextInput
615 __init__(IMP::TextInput self, char const * c) -> TextInput
616 __init__(IMP::TextInput self, IMP::TextProxy< std::istream > p) -> TextInput
617 __init__(IMP::TextInput self) -> TextInput
618 __init__(IMP::TextInput self, std::string file_name) -> TextInput
620 this = _IMP_kernel.new_TextInput(*args)
622 self.this.append(this)
623 except __builtin__.Exception:
626 def show(self, *args):
628 show(TextInput self, _ostream out)
631 return _IMP_kernel.TextInput_show(self, *args)
635 """get_name(TextInput self) -> std::string"""
636 return _IMP_kernel.TextInput_get_name(self)
638 __swig_destroy__ = _IMP_kernel.delete_TextInput
639 __del__ =
lambda self:
None
640 TextInput_swigregister = _IMP_kernel.TextInput_swigregister
641 TextInput_swigregister(TextInput)
643 class SetLogTarget(_RAII):
644 """Proxy of C++ IMP::SetLogTarget class."""
646 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
648 def __init__(self, *args):
650 __init__(IMP::SetLogTarget self) -> SetLogTarget
651 __init__(IMP::SetLogTarget self, TextOutput to) -> SetLogTarget
653 this = _IMP_kernel.new_SetLogTarget(*args)
655 self.this.append(this)
656 except __builtin__.Exception:
660 """set(SetLogTarget self, TextOutput to)"""
661 return _IMP_kernel.SetLogTarget_set(self, to)
665 """reset(SetLogTarget self)"""
666 return _IMP_kernel.SetLogTarget_reset(self)
668 __swig_destroy__ = _IMP_kernel.delete_SetLogTarget
669 __del__ =
lambda self:
None
671 def show(self, *args):
673 show(SetLogTarget self, _ostream out)
674 show(SetLogTarget self)
676 return _IMP_kernel.SetLogTarget_show(self, *args)
681 def __exit__(self, exc_type, exc_val, exc_tb):
687 """__str__(SetLogTarget self) -> std::string"""
688 return _IMP_kernel.SetLogTarget___str__(self)
692 """__repr__(SetLogTarget self) -> std::string"""
693 return _IMP_kernel.SetLogTarget___repr__(self)
695 SetLogTarget_swigregister = _IMP_kernel.SetLogTarget_swigregister
696 SetLogTarget_swigregister(SetLogTarget)
701 create_temporary_file(std::string prefix, std::string suffix) -> TextOutput
702 create_temporary_file(std::string prefix) -> TextOutput
703 create_temporary_file() -> TextOutput
705 return _IMP_kernel.create_temporary_file(*args)
709 create_temporary_file_name(std::string prefix, std::string suffix) -> std::string
710 create_temporary_file_name(std::string prefix) -> std::string
711 create_temporary_file_name() -> std::string
713 return _IMP_kernel.create_temporary_file_name(*args)
716 """get_relative_path(std::string base, std::string relative) -> std::string"""
717 return _IMP_kernel.get_relative_path(base, relative)
720 """get_absolute_path(std::string file) -> std::string"""
721 return _IMP_kernel.get_absolute_path(file)
723 def push_log_context(functionname, object):
724 """push_log_context(char const * functionname, void const * object)"""
725 return _IMP_kernel.push_log_context(functionname, object)
727 def pop_log_context():
728 """pop_log_context()"""
729 return _IMP_kernel.pop_log_context()
733 add_to_log(std::string to_write)
734 add_to_log(IMP::LogLevel level, std::string to_write)
736 return _IMP_kernel.add_to_log(*args)
739 """set_log_level(IMP::LogLevel l)"""
740 return _IMP_kernel.set_log_level(l)
743 """set_log_timer(bool tb)"""
744 return _IMP_kernel.set_log_timer(tb)
747 """reset_log_timer()"""
748 return _IMP_kernel.reset_log_timer()
751 """get_log_level() -> IMP::LogLevel"""
752 return _IMP_kernel.get_log_level()
755 """set_progress_display(std::string description, unsigned int steps)"""
756 return _IMP_kernel.set_progress_display(description, steps)
760 add_to_progress_display(unsigned int step=1)
761 add_to_progress_display()
763 return _IMP_kernel.add_to_progress_display(step)
764 class Object(_NonCopyable):
765 """Proxy of C++ IMP::Object class."""
767 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
769 def __init__(self, name):
770 """__init__(IMP::Object self, std::string name) -> Object"""
771 if self.__class__ == Object:
775 this = _IMP_kernel.new_Object(_self, name)
777 self.this.append(this)
778 except __builtin__.Exception:
781 if self.__class__ != Object:
782 _director_objects.register(self)
786 __swig_destroy__ = _IMP_kernel.delete_Object
787 __del__ =
lambda self:
None
790 """__hash__(Object self) -> std::size_t"""
791 return _IMP_kernel.Object___hash__(self)
795 """set_log_level(Object self, IMP::LogLevel l)"""
796 return _IMP_kernel.Object_set_log_level(self, l)
800 """set_check_level(Object self, IMP::CheckLevel l)"""
801 return _IMP_kernel.Object_set_check_level(self, l)
805 """get_log_level(Object self) -> IMP::LogLevel"""
806 return _IMP_kernel.Object_get_log_level(self)
810 """get_check_level(Object self) -> IMP::CheckLevel"""
811 return _IMP_kernel.Object_get_check_level(self)
814 def get_version_info(self):
815 """get_version_info(Object self) -> VersionInfo"""
816 return _IMP_kernel.Object_get_version_info(self)
820 """get_name(Object self) -> std::string const &"""
821 return _IMP_kernel.Object_get_name(self)
824 def set_name(self, name):
825 """set_name(Object self, std::string name)"""
826 return _IMP_kernel.Object_set_name(self, name)
829 def get_type_name(self):
830 """get_type_name(Object self) -> std::string"""
831 return _IMP_kernel.Object_get_type_name(self)
834 def set_was_used(self, tf):
835 """set_was_used(Object self, bool tf)"""
836 return _IMP_kernel.Object_set_was_used(self, tf)
839 def show(self, *args):
841 show(Object self, _ostream out)
844 return _IMP_kernel.Object_show(self, *args)
847 def get_string(self):
848 """get_string(Object self) -> std::string"""
849 return _IMP_kernel.Object_get_string(self)
852 def _on_destruction(self):
853 """_on_destruction(Object self)"""
854 return _IMP_kernel.Object__on_destruction(self)
857 def get_is_valid(self):
858 """get_is_valid(Object self) -> bool"""
859 return _IMP_kernel.Object_get_is_valid(self)
862 def get_ref_count(self):
863 """get_ref_count(Object self) -> unsigned int"""
864 return _IMP_kernel.Object_get_ref_count(self)
867 def get_number_of_live_objects():
868 """get_number_of_live_objects() -> unsigned int"""
869 return _IMP_kernel.Object_get_number_of_live_objects()
871 get_number_of_live_objects = staticmethod(get_number_of_live_objects)
873 def get_is_shared(self):
874 """get_is_shared(Object self) -> bool"""
875 return _IMP_kernel.Object_get_is_shared(self)
878 def clear_caches(self):
879 """clear_caches(Object self)"""
880 return _IMP_kernel.Object_clear_caches(self)
883 def do_destroy(self):
884 """do_destroy(Object self)"""
885 return _IMP_kernel.Object_do_destroy(self)
889 """__eq__(Object self, Object o) -> bool"""
890 return _IMP_kernel.Object___eq__(self, o)
894 """__ne__(Object self, Object o) -> bool"""
895 return _IMP_kernel.Object___ne__(self, o)
899 """__le__(Object self, Object o) -> bool"""
900 return _IMP_kernel.Object___le__(self, o)
904 """__lt__(Object self, Object o) -> bool"""
905 return _IMP_kernel.Object___lt__(self, o)
909 """__ge__(Object self, Object o) -> bool"""
910 return _IMP_kernel.Object___ge__(self, o)
914 """__gt__(Object self, Object o) -> bool"""
915 return _IMP_kernel.Object___gt__(self, o)
919 """__str__(Object self) -> std::string"""
920 return _IMP_kernel.Object___str__(self)
924 """__repr__(Object self) -> std::string"""
925 return _IMP_kernel.Object___repr__(self)
930 return _object_cast_to_Object(o)
932 def __disown__(self):
934 _IMP_kernel.disown_Object(self)
935 return weakref_proxy(self)
936 Object_swigregister = _IMP_kernel.Object_swigregister
937 Object_swigregister(Object)
939 def Object_get_number_of_live_objects():
940 """Object_get_number_of_live_objects() -> unsigned int"""
941 return _IMP_kernel.Object_get_number_of_live_objects()
943 class SetLogState(_RAII):
944 """Proxy of C++ IMP::SetLogState class."""
946 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
949 """reset(SetLogState self)"""
950 return _IMP_kernel.SetLogState_reset(self)
952 __swig_destroy__ = _IMP_kernel.delete_SetLogState
953 __del__ =
lambda self:
None
955 def show(self, *args):
957 show(SetLogState self, _ostream out)
958 show(SetLogState self)
960 return _IMP_kernel.SetLogState_show(self, *args)
963 def __init__(self, *args):
965 __init__(IMP::SetLogState self) -> SetLogState
966 __init__(IMP::SetLogState self, Object o, IMP::LogLevel l) -> SetLogState
967 __init__(IMP::SetLogState self, IMP::LogLevel l) -> SetLogState
969 this = _IMP_kernel.new_SetLogState(*args)
971 self.this.append(this)
972 except __builtin__.Exception:
975 def set(self, *args):
977 set(SetLogState self, Object o, IMP::LogLevel l)
978 set(SetLogState self, IMP::LogLevel l)
980 return _IMP_kernel.SetLogState_set(self, *args)
985 def __exit__(self, exc_type, exc_val, exc_tb):
991 """__str__(SetLogState self) -> std::string"""
992 return _IMP_kernel.SetLogState___str__(self)
996 """__repr__(SetLogState self) -> std::string"""
997 return _IMP_kernel.SetLogState___repr__(self)
999 SetLogState_swigregister = _IMP_kernel.SetLogState_swigregister
1000 SetLogState_swigregister(SetLogState)
1002 class WarningContext(object):
1003 """Proxy of C++ IMP::WarningContext class."""
1005 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1006 data_ = _swig_property(_IMP_kernel.WarningContext_data__get, _IMP_kernel.WarningContext_data__set)
1008 def add_warning(self, key, warning):
1009 """add_warning(WarningContext self, std::string key, std::string warning)"""
1010 return _IMP_kernel.WarningContext_add_warning(self, key, warning)
1013 def clear_warnings(self):
1014 """clear_warnings(WarningContext self)"""
1015 return _IMP_kernel.WarningContext_clear_warnings(self)
1018 def dump_warnings(self):
1019 """dump_warnings(WarningContext self)"""
1020 return _IMP_kernel.WarningContext_dump_warnings(self)
1022 __swig_destroy__ = _IMP_kernel.delete_WarningContext
1023 __del__ =
lambda self:
None
1025 def show(self, *args):
1027 show(WarningContext self, _ostream out)
1028 show(WarningContext self)
1030 return _IMP_kernel.WarningContext_show(self, *args)
1033 def __enter__(self):
1035 def __exit__(self, exc_type, exc_val, exc_tb):
1041 """__str__(WarningContext self) -> std::string"""
1042 return _IMP_kernel.WarningContext___str__(self)
1046 """__repr__(WarningContext self) -> std::string"""
1047 return _IMP_kernel.WarningContext___repr__(self)
1051 """__init__(IMP::WarningContext self) -> WarningContext"""
1052 this = _IMP_kernel.new_WarningContext()
1054 self.this.append(this)
1055 except __builtin__.Exception:
1057 WarningContext_swigregister = _IMP_kernel.WarningContext_swigregister
1058 WarningContext_swigregister(WarningContext)
1060 class CreateLogContext(_RAII):
1061 """Proxy of C++ IMP::CreateLogContext class."""
1063 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1065 def __init__(self, *args):
1067 __init__(IMP::CreateLogContext self, std::string fname, Object object=None) -> CreateLogContext
1068 __init__(IMP::CreateLogContext self, std::string fname) -> CreateLogContext
1069 __init__(IMP::CreateLogContext self) -> CreateLogContext
1070 __init__(IMP::CreateLogContext self, char const * fname, Object object=None) -> CreateLogContext
1071 __init__(IMP::CreateLogContext self, char const * fname) -> CreateLogContext
1073 this = _IMP_kernel.new_CreateLogContext(*args)
1075 self.this.append(this)
1076 except __builtin__.Exception:
1079 def set(self, fname, object=None):
1081 set(CreateLogContext self, char const * fname, Object object=None)
1082 set(CreateLogContext self, char const * fname)
1084 return _IMP_kernel.CreateLogContext_set(self, fname, object)
1088 """reset(CreateLogContext self)"""
1089 return _IMP_kernel.CreateLogContext_reset(self)
1091 __swig_destroy__ = _IMP_kernel.delete_CreateLogContext
1092 __del__ =
lambda self:
None
1094 def show(self, *args):
1096 show(CreateLogContext self, _ostream out)
1097 show(CreateLogContext self)
1099 return _IMP_kernel.CreateLogContext_show(self, *args)
1102 def __enter__(self):
1104 def __exit__(self, exc_type, exc_val, exc_tb):
1110 """__str__(CreateLogContext self) -> std::string"""
1111 return _IMP_kernel.CreateLogContext___str__(self)
1115 """__repr__(CreateLogContext self) -> std::string"""
1116 return _IMP_kernel.CreateLogContext___repr__(self)
1118 CreateLogContext_swigregister = _IMP_kernel.CreateLogContext_swigregister
1119 CreateLogContext_swigregister(CreateLogContext)
1121 class SetCheckState(_RAII):
1122 """Proxy of C++ IMP::SetCheckState class."""
1124 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1127 """reset(SetCheckState self)"""
1128 return _IMP_kernel.SetCheckState_reset(self)
1130 __swig_destroy__ = _IMP_kernel.delete_SetCheckState
1131 __del__ =
lambda self:
None
1133 def show(self, *args):
1135 show(SetCheckState self, _ostream out)
1136 show(SetCheckState self)
1138 return _IMP_kernel.SetCheckState_show(self, *args)
1141 def __init__(self, *args):
1143 __init__(IMP::SetCheckState self) -> SetCheckState
1144 __init__(IMP::SetCheckState self, Object o, IMP::CheckLevel l) -> SetCheckState
1145 __init__(IMP::SetCheckState self, IMP::CheckLevel l) -> SetCheckState
1147 this = _IMP_kernel.new_SetCheckState(*args)
1149 self.this.append(this)
1150 except __builtin__.Exception:
1153 def set(self, *args):
1155 set(SetCheckState self, Object o, IMP::CheckLevel l)
1156 set(SetCheckState self, IMP::CheckLevel l)
1158 return _IMP_kernel.SetCheckState_set(self, *args)
1161 def __enter__(self):
1163 def __exit__(self, exc_type, exc_val, exc_tb):
1169 """__str__(SetCheckState self) -> std::string"""
1170 return _IMP_kernel.SetCheckState___str__(self)
1174 """__repr__(SetCheckState self) -> std::string"""
1175 return _IMP_kernel.SetCheckState___repr__(self)
1177 SetCheckState_swigregister = _IMP_kernel.SetCheckState_swigregister
1178 SetCheckState_swigregister(SetCheckState)
1182 """get_unique_name(std::string templ) -> std::string"""
1183 return _IMP_kernel.get_unique_name(templ)
1184 class _Protection(object):
1185 """Proxy of C++ IMP::internal::_Protection class."""
1187 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1189 def __init__(self, *args, **kwargs):
1190 raise AttributeError(
"No constructor defined")
1192 def show(self, *args):
1194 show(_Protection self, _ostream out)
1195 show(_Protection self)
1197 return _IMP_kernel._Protection_show(self, *args)
1201 """__str__(_Protection self) -> std::string"""
1202 return _IMP_kernel._Protection___str__(self)
1206 """__repr__(_Protection self) -> std::string"""
1207 return _IMP_kernel._Protection___repr__(self)
1209 __swig_destroy__ = _IMP_kernel.delete__Protection
1210 __del__ =
lambda self:
None
1211 _Protection_swigregister = _IMP_kernel._Protection_swigregister
1212 _Protection_swigregister(_Protection)
1217 return _IMP_kernel._test_log()
1219 def _test_intranges(ips):
1220 """_test_intranges(IMP::IntRanges const & ips) -> int"""
1221 return _IMP_kernel._test_intranges(ips)
1223 def _test_intrange(*args):
1225 _test_intrange(IMP::IntRange const & ips) -> IMP::IntRange
1226 _test_intrange() -> IMP::IntRange
1228 return _IMP_kernel._test_intrange(*args)
1231 """_test_ifile(TextInput a) -> std::string"""
1232 return _IMP_kernel._test_ifile(a)
1235 """_test_ofile(TextOutput a) -> std::string"""
1236 return _IMP_kernel._test_ofile(a)
1238 def _test_ifile_overloaded(*args):
1240 _test_ifile_overloaded(TextInput a, int i) -> std::string
1241 _test_ifile_overloaded(TextInput a, std::string st) -> std::string
1243 return _IMP_kernel._test_ifile_overloaded(*args)
1245 def _test_ofile_overloaded(*args):
1247 _test_ofile_overloaded(TextOutput a, int i) -> std::string
1248 _test_ofile_overloaded(TextOutput a, std::string st) -> std::string
1250 return _IMP_kernel._test_ofile_overloaded(*args)
1251 class _TestValue(object):
1252 """Proxy of C++ IMP::internal::_TestValue class."""
1254 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1256 def __init__(self, i):
1257 """__init__(IMP::internal::_TestValue self, int i) -> _TestValue"""
1258 this = _IMP_kernel.new__TestValue(i)
1260 self.this.append(this)
1261 except __builtin__.Exception:
1264 def show(self, *args):
1266 show(_TestValue self, _ostream out)
1267 show(_TestValue self)
1269 return _IMP_kernel._TestValue_show(self, *args)
1272 def __cmp__(self, o):
1273 """__cmp__(_TestValue self, _TestValue o) -> int"""
1274 return _IMP_kernel._TestValue___cmp__(self, o)
1277 def __eq__(self, o):
1278 """__eq__(_TestValue self, _TestValue o) -> bool"""
1279 return _IMP_kernel._TestValue___eq__(self, o)
1282 def __ne__(self, o):
1283 """__ne__(_TestValue self, _TestValue o) -> bool"""
1284 return _IMP_kernel._TestValue___ne__(self, o)
1287 def __lt__(self, o):
1288 """__lt__(_TestValue self, _TestValue o) -> bool"""
1289 return _IMP_kernel._TestValue___lt__(self, o)
1292 def __gt__(self, o):
1293 """__gt__(_TestValue self, _TestValue o) -> bool"""
1294 return _IMP_kernel._TestValue___gt__(self, o)
1297 def __ge__(self, o):
1298 """__ge__(_TestValue self, _TestValue o) -> bool"""
1299 return _IMP_kernel._TestValue___ge__(self, o)
1302 def __le__(self, o):
1303 """__le__(_TestValue self, _TestValue o) -> bool"""
1304 return _IMP_kernel._TestValue___le__(self, o)
1308 """get(_TestValue self) -> int"""
1309 return _IMP_kernel._TestValue_get(self)
1312 def get_float(self):
1313 """get_float(_TestValue self) -> float const &"""
1314 return _IMP_kernel._TestValue_get_float(self)
1317 def get_double(self):
1318 """get_double(_TestValue self) -> double const &"""
1319 return _IMP_kernel._TestValue_get_double(self)
1322 def get_Float(self):
1323 """get_Float(_TestValue self) -> IMP::Float const &"""
1324 return _IMP_kernel._TestValue_get_Float(self)
1328 """get_int(_TestValue self) -> int const &"""
1329 return _IMP_kernel._TestValue_get_int(self)
1333 """get_Int(_TestValue self) -> IMP::Int const &"""
1334 return _IMP_kernel._TestValue_get_Int(self)
1337 def get_string(self):
1338 """get_string(_TestValue self) -> std::string const &"""
1339 return _IMP_kernel._TestValue_get_string(self)
1342 def get_String(self):
1343 """get_String(_TestValue self) -> IMP::String const &"""
1344 return _IMP_kernel._TestValue_get_String(self)
1348 """__str__(_TestValue self) -> std::string"""
1349 return _IMP_kernel._TestValue___str__(self)
1353 """__repr__(_TestValue self) -> std::string"""
1354 return _IMP_kernel._TestValue___repr__(self)
1356 __swig_destroy__ = _IMP_kernel.delete__TestValue
1357 __del__ =
lambda self:
None
1358 _TestValue_swigregister = _IMP_kernel._TestValue_swigregister
1359 _TestValue_swigregister(_TestValue)
1362 def _pass_plain_pair(p):
1363 """_pass_plain_pair(IMP::FloatPair p) -> IMP::FloatPair"""
1364 return _IMP_kernel._pass_plain_pair(p)
1366 def _pass_overloaded_strings(*args):
1368 _pass_overloaded_strings(IMP::Strings const & a, int arg2) -> IMP::Strings
1369 _pass_overloaded_strings(IMP::Strings const & a) -> IMP::Strings
1371 return _IMP_kernel._pass_overloaded_strings(*args)
1374 """_pass_pair(IMP::DerivativePair const & p) -> IMP::DerivativePair"""
1375 return _IMP_kernel._pass_pair(p)
1377 def _pass_floats(input):
1378 """_pass_floats(IMP::Floats const & input) -> IMP::Floats"""
1379 return _IMP_kernel._pass_floats(input)
1381 def _pass_ints(input):
1382 """_pass_ints(IMP::Ints input) -> IMP::Ints"""
1383 return _IMP_kernel._pass_ints(input)
1385 def _pass_ints_list(input):
1386 """_pass_ints_list(IMP::IntsList const & input) -> IMP::IntsList"""
1387 return _IMP_kernel._pass_ints_list(input)
1389 def _pass_ints_lists(input):
1390 """_pass_ints_lists(IMP::IntsLists const & input) -> IMP::IntsLists"""
1391 return _IMP_kernel._pass_ints_lists(input)
1393 def _pass_strings(input):
1394 """_pass_strings(IMP::Strings const & input) -> IMP::Strings const &"""
1395 return _IMP_kernel._pass_strings(input)
1396 class _TestObject(Object):
1397 """Proxy of C++ IMP::internal::_TestObject class."""
1399 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1402 """__init__(IMP::internal::_TestObject self) -> _TestObject"""
1403 this = _IMP_kernel.new__TestObject()
1405 self.this.append(this)
1406 except __builtin__.Exception:
1409 def get_version_info(self):
1410 """get_version_info(_TestObject self) -> VersionInfo"""
1411 return _IMP_kernel._TestObject_get_version_info(self)
1415 """__str__(_TestObject self) -> std::string"""
1416 return _IMP_kernel._TestObject___str__(self)
1420 """__repr__(_TestObject self) -> std::string"""
1421 return _IMP_kernel._TestObject___repr__(self)
1426 return _object_cast_to__TestObject(o)
1428 _TestObject_swigregister = _IMP_kernel._TestObject_swigregister
1429 _TestObject_swigregister(_TestObject)
1433 """get_live_object_names() -> IMP::Strings"""
1434 return _IMP_kernel.get_live_object_names()
1437 """get_live_objects() -> IMP::Objects"""
1438 return _IMP_kernel.get_live_objects()
1441 """set_show_leaked_objects(bool tf)"""
1442 return _IMP_kernel.set_show_leaked_objects(tf)
1445 """set_deprecation_warnings(bool tf)"""
1446 return _IMP_kernel.set_deprecation_warnings(tf)
1449 """set_deprecation_exceptions(bool tf)"""
1450 return _IMP_kernel.set_deprecation_exceptions(tf)
1453 """get_deprecation_exceptions() -> bool"""
1454 return _IMP_kernel.get_deprecation_exceptions()
1457 """handle_use_deprecated(std::string message)"""
1458 return _IMP_kernel.handle_use_deprecated(message)
1461 """get_number_of_threads() -> unsigned int"""
1462 return _IMP_kernel.get_number_of_threads()
1465 """set_number_of_threads(unsigned int n)"""
1466 return _IMP_kernel.set_number_of_threads(n)
1467 class SetNumberOfThreads(_RAII):
1468 """Proxy of C++ IMP::SetNumberOfThreads class."""
1470 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1472 def __init__(self, *args):
1474 __init__(IMP::SetNumberOfThreads self) -> SetNumberOfThreads
1475 __init__(IMP::SetNumberOfThreads self, unsigned int n) -> SetNumberOfThreads
1477 this = _IMP_kernel.new_SetNumberOfThreads(*args)
1479 self.this.append(this)
1480 except __builtin__.Exception:
1484 """set(SetNumberOfThreads self, unsigned int n)"""
1485 return _IMP_kernel.SetNumberOfThreads_set(self, n)
1489 """reset(SetNumberOfThreads self)"""
1490 return _IMP_kernel.SetNumberOfThreads_reset(self)
1492 __swig_destroy__ = _IMP_kernel.delete_SetNumberOfThreads
1493 __del__ =
lambda self:
None
1495 def show(self, *args):
1497 show(SetNumberOfThreads self, _ostream out)
1498 show(SetNumberOfThreads self)
1500 return _IMP_kernel.SetNumberOfThreads_show(self, *args)
1503 def __enter__(self):
1505 def __exit__(self, exc_type, exc_val, exc_tb):
1511 """__str__(SetNumberOfThreads self) -> std::string"""
1512 return _IMP_kernel.SetNumberOfThreads___str__(self)
1516 """__repr__(SetNumberOfThreads self) -> std::string"""
1517 return _IMP_kernel.SetNumberOfThreads___repr__(self)
1519 SetNumberOfThreads_swigregister = _IMP_kernel.SetNumberOfThreads_swigregister
1520 SetNumberOfThreads_swigregister(SetNumberOfThreads)
1524 i_m_p=
"IMP_MODULE_PATH"
1525 if i_m_p
in os.environ.keys():
1526 __path__.insert(0, os.environ[i_m_p])
1528 def _forward_add_attribute(self, name, value, opt=None):
1530 self.get_particle().add_attribute(name, value, opt)
1532 self.get_particle().add_attribute(name, value)
1533 def _forward_get_value(self, name):
1534 self.get_particle().get_value(name)
1535 def _forward_set_value(self, name, value):
1536 self.get_particle().set_value(name, value)
1542 _object_types.append(
"Constraint")
1545 def _object_cast_to_Constraint(o):
1546 """_object_cast_to_Constraint(Object o) -> Constraint"""
1547 return _IMP_kernel._object_cast_to_Constraint(o)
1549 _object_types.append(
"Undecorator")
1552 def _object_cast_to_Undecorator(o):
1553 """_object_cast_to_Undecorator(Object o) -> Undecorator"""
1554 return _IMP_kernel._object_cast_to_Undecorator(o)
1556 _object_types.append(
"Container")
1559 def _object_cast_to_Container(o):
1560 """_object_cast_to_Container(Object o) -> Container"""
1561 return _IMP_kernel._object_cast_to_Container(o)
1563 _object_types.append(
"Optimizer")
1566 def _object_cast_to_Optimizer(o):
1567 """_object_cast_to_Optimizer(Object o) -> Optimizer"""
1568 return _IMP_kernel._object_cast_to_Optimizer(o)
1570 _object_types.append(
"AttributeOptimizer")
1573 def _object_cast_to_AttributeOptimizer(o):
1574 """_object_cast_to_AttributeOptimizer(Object o) -> AttributeOptimizer"""
1575 return _IMP_kernel._object_cast_to_AttributeOptimizer(o)
1577 _object_types.append(
"OptimizerState")
1580 def _object_cast_to_OptimizerState(o):
1581 """_object_cast_to_OptimizerState(Object o) -> OptimizerState"""
1582 return _IMP_kernel._object_cast_to_OptimizerState(o)
1584 _object_types.append(
"PairContainer")
1587 def _object_cast_to_PairContainer(o):
1588 """_object_cast_to_PairContainer(Object o) -> PairContainer"""
1589 return _IMP_kernel._object_cast_to_PairContainer(o)
1591 _object_types.append(
"PairModifier")
1594 def _object_cast_to_PairModifier(o):
1595 """_object_cast_to_PairModifier(Object o) -> PairModifier"""
1596 return _IMP_kernel._object_cast_to_PairModifier(o)
1598 _object_types.append(
"PairScore")
1601 def _object_cast_to_PairScore(o):
1602 """_object_cast_to_PairScore(Object o) -> PairScore"""
1603 return _IMP_kernel._object_cast_to_PairScore(o)
1605 _object_types.append(
"QuadContainer")
1608 def _object_cast_to_QuadContainer(o):
1609 """_object_cast_to_QuadContainer(Object o) -> QuadContainer"""
1610 return _IMP_kernel._object_cast_to_QuadContainer(o)
1612 _object_types.append(
"QuadModifier")
1615 def _object_cast_to_QuadModifier(o):
1616 """_object_cast_to_QuadModifier(Object o) -> QuadModifier"""
1617 return _IMP_kernel._object_cast_to_QuadModifier(o)
1619 _object_types.append(
"QuadScore")
1622 def _object_cast_to_QuadScore(o):
1623 """_object_cast_to_QuadScore(Object o) -> QuadScore"""
1624 return _IMP_kernel._object_cast_to_QuadScore(o)
1626 _object_types.append(
"Refiner")
1629 def _object_cast_to_Refiner(o):
1630 """_object_cast_to_Refiner(Object o) -> Refiner"""
1631 return _IMP_kernel._object_cast_to_Refiner(o)
1633 _object_types.append(
"Restraint")
1636 def _object_cast_to_Restraint(o):
1637 """_object_cast_to_Restraint(Object o) -> Restraint"""
1638 return _IMP_kernel._object_cast_to_Restraint(o)
1640 _object_types.append(
"Sampler")
1643 def _object_cast_to_Sampler(o):
1644 """_object_cast_to_Sampler(Object o) -> Sampler"""
1645 return _IMP_kernel._object_cast_to_Sampler(o)
1647 _object_types.append(
"ScoreState")
1650 def _object_cast_to_ScoreState(o):
1651 """_object_cast_to_ScoreState(Object o) -> ScoreState"""
1652 return _IMP_kernel._object_cast_to_ScoreState(o)
1654 _object_types.append(
"SingletonContainer")
1657 def _object_cast_to_SingletonContainer(o):
1658 """_object_cast_to_SingletonContainer(Object o) -> SingletonContainer"""
1659 return _IMP_kernel._object_cast_to_SingletonContainer(o)
1661 _object_types.append(
"SingletonModifier")
1664 def _object_cast_to_SingletonModifier(o):
1665 """_object_cast_to_SingletonModifier(Object o) -> SingletonModifier"""
1666 return _IMP_kernel._object_cast_to_SingletonModifier(o)
1668 _object_types.append(
"SingletonScore")
1671 def _object_cast_to_SingletonScore(o):
1672 """_object_cast_to_SingletonScore(Object o) -> SingletonScore"""
1673 return _IMP_kernel._object_cast_to_SingletonScore(o)
1675 _object_types.append(
"TripletContainer")
1678 def _object_cast_to_TripletContainer(o):
1679 """_object_cast_to_TripletContainer(Object o) -> TripletContainer"""
1680 return _IMP_kernel._object_cast_to_TripletContainer(o)
1682 _object_types.append(
"TripletModifier")
1685 def _object_cast_to_TripletModifier(o):
1686 """_object_cast_to_TripletModifier(Object o) -> TripletModifier"""
1687 return _IMP_kernel._object_cast_to_TripletModifier(o)
1689 _object_types.append(
"TripletScore")
1692 def _object_cast_to_TripletScore(o):
1693 """_object_cast_to_TripletScore(Object o) -> TripletScore"""
1694 return _IMP_kernel._object_cast_to_TripletScore(o)
1696 _object_types.append(
"UnaryFunction")
1699 def _object_cast_to_UnaryFunction(o):
1700 """_object_cast_to_UnaryFunction(Object o) -> UnaryFunction"""
1701 return _IMP_kernel._object_cast_to_UnaryFunction(o)
1703 _object_types.append(
"RestraintInfo")
1706 def _object_cast_to_RestraintInfo(o):
1707 """_object_cast_to_RestraintInfo(Object o) -> RestraintInfo"""
1708 return _IMP_kernel._object_cast_to_RestraintInfo(o)
1710 _object_types.append(
"ConfigurationSet")
1713 def _object_cast_to_ConfigurationSet(o):
1714 """_object_cast_to_ConfigurationSet(Object o) -> ConfigurationSet"""
1715 return _IMP_kernel._object_cast_to_ConfigurationSet(o)
1717 _object_types.append(
"Configuration")
1720 def _object_cast_to_Configuration(o):
1721 """_object_cast_to_Configuration(Object o) -> Configuration"""
1722 return _IMP_kernel._object_cast_to_Configuration(o)
1724 _object_types.append(
"Model")
1727 def _object_cast_to_Model(o):
1728 """_object_cast_to_Model(Object o) -> Model"""
1729 return _IMP_kernel._object_cast_to_Model(o)
1731 _object_types.append(
"Particle")
1734 def _object_cast_to_Particle(o):
1735 """_object_cast_to_Particle(Object o) -> Particle"""
1736 return _IMP_kernel._object_cast_to_Particle(o)
1738 _object_types.append(
"RestraintSet")
1741 def _object_cast_to_RestraintSet(o):
1742 """_object_cast_to_RestraintSet(Object o) -> RestraintSet"""
1743 return _IMP_kernel._object_cast_to_RestraintSet(o)
1745 ParticlePairsTemp=list
1746 _plural_types.append(
"ParticlePairsTemp")
1747 _value_types.append(
"ParticlePair")
1750 ParticleTripletsTemp=list
1751 _plural_types.append(
"ParticleTripletsTemp")
1752 _value_types.append(
"ParticleTriplet")
1755 ParticleQuadsTemp=list
1756 _plural_types.append(
"ParticleQuadsTemp")
1757 _value_types.append(
"ParticleQuad")
1760 ParticleIndexPairs=list
1761 _plural_types.append(
"ParticleIndexPairs")
1762 _value_types.append(
"ParticleIndexPair")
1765 ParticleIndexTriplets=list
1766 _plural_types.append(
"ParticleIndexTriplets")
1767 _value_types.append(
"ParticleIndexTriplet")
1770 ParticleIndexQuads=list
1771 _plural_types.append(
"ParticleIndexQuads")
1772 _value_types.append(
"ParticleIndexQuad")
1775 _object_types.append(
"SingletonPredicate")
1778 def _object_cast_to_SingletonPredicate(o):
1779 """_object_cast_to_SingletonPredicate(Object o) -> SingletonPredicate"""
1780 return _IMP_kernel._object_cast_to_SingletonPredicate(o)
1782 _object_types.append(
"PairPredicate")
1785 def _object_cast_to_PairPredicate(o):
1786 """_object_cast_to_PairPredicate(Object o) -> PairPredicate"""
1787 return _IMP_kernel._object_cast_to_PairPredicate(o)
1789 _object_types.append(
"TripletPredicate")
1792 def _object_cast_to_TripletPredicate(o):
1793 """_object_cast_to_TripletPredicate(Object o) -> TripletPredicate"""
1794 return _IMP_kernel._object_cast_to_TripletPredicate(o)
1796 _object_types.append(
"QuadPredicate")
1799 def _object_cast_to_QuadPredicate(o):
1800 """_object_cast_to_QuadPredicate(Object o) -> QuadPredicate"""
1801 return _IMP_kernel._object_cast_to_QuadPredicate(o)
1803 _object_types.append(
"SaveToConfigurationSetOptimizerState")
1806 def _object_cast_to_SaveToConfigurationSetOptimizerState(o):
1807 """_object_cast_to_SaveToConfigurationSetOptimizerState(Object o) -> SaveToConfigurationSetOptimizerState"""
1808 return _IMP_kernel._object_cast_to_SaveToConfigurationSetOptimizerState(o)
1810 EvaluationStates=list
1811 _plural_types.append(
"EvaluationStates")
1812 _value_types.append(
"EvaluationState")
1815 ScoreAccumulators=list
1816 _plural_types.append(
"ScoreAccumulators")
1817 _value_types.append(
"ScoreAccumulator")
1820 ParticleIndexes=list
1821 _plural_types.append(
"ParticleIndexes")
1822 _value_types.append(
"ParticleIndex")
1826 _plural_types.append(
"FloatIndexes")
1827 _value_types.append(
"FloatIndex")
1831 _plural_types.append(
"FloatKeys")
1832 _value_types.append(
"FloatKey")
1836 _plural_types.append(
"IntKeys")
1837 _value_types.append(
"IntKey")
1841 _plural_types.append(
"StringKeys")
1842 _value_types.append(
"StringKey")
1845 ParticleIndexKeys=list
1846 _plural_types.append(
"ParticleIndexKeys")
1847 _value_types.append(
"ParticleIndexKey")
1850 ParticleIndexesKeys=list
1851 _plural_types.append(
"ParticleIndexesKeys")
1852 _value_types.append(
"ParticleIndexesKey")
1856 _plural_types.append(
"ObjectKeys")
1857 _value_types.append(
"ObjectKey")
1861 _plural_types.append(
"ModelKeys")
1862 _value_types.append(
"ModelKey")
1865 _raii_types.append(
"ScopedSetFloatAttribute")
1868 _object_types.append(
"ScoringFunction")
1871 def _object_cast_to_ScoringFunction(o):
1872 """_object_cast_to_ScoringFunction(Object o) -> ScoringFunction"""
1873 return _IMP_kernel._object_cast_to_ScoringFunction(o)
1875 _object_types.append(
"ModelObject")
1878 def _object_cast_to_ModelObject(o):
1879 """_object_cast_to_ModelObject(Object o) -> ModelObject"""
1880 return _IMP_kernel._object_cast_to_ModelObject(o)
1882 def _TrivialDecorators(l=[]):
1883 return [_TrivialDecorator(x)
for x
in l]
1884 _plural_types.append(
"_TrivialDecorators")
1887 _value_types.append(
"_TrivialDecorator")
1890 def _TrivialDerivedDecorators(l=[]):
1891 return [_TrivialDerivedDecorator(x)
for x
in l]
1892 _plural_types.append(
"_TrivialDerivedDecorators")
1895 _value_types.append(
"_TrivialDerivedDecorator")
1898 def _TrivialTraitsDecorators(l=[]):
1899 return [_TrivialTraitsDecorator(x)
for x
in l]
1900 _plural_types.append(
"_TrivialTraitsDecorators")
1903 _value_types.append(
"_TrivialTraitsDecorator")
1906 _object_types.append(
"_ConstRestraint")
1909 def _object_cast_to__ConstRestraint(o):
1910 """_object_cast_to__ConstRestraint(Object o) -> _ConstRestraint"""
1911 return _IMP_kernel._object_cast_to__ConstRestraint(o)
1913 _object_types.append(
"_ConstOptimizer")
1916 def _object_cast_to__ConstOptimizer(o):
1917 """_object_cast_to__ConstOptimizer(Object o) -> _ConstOptimizer"""
1918 return _IMP_kernel._object_cast_to__ConstOptimizer(o)
1920 """Proxy of C++ IMP::internal::BoostDigraph<(IMP::DependencyGraph,p.IMP::ModelObject,IMP::ShowDependencyGraphVertex)> class."""
1922 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1923 __repr__ = _swig_repr
1926 """__init__(IMP::internal::BoostDigraph<(IMP::DependencyGraph,p.IMP::ModelObject,IMP::ShowDependencyGraphVertex)> self) -> DependencyGraph"""
1927 this = _IMP_kernel.new_DependencyGraph()
1929 self.this.append(this)
1930 except __builtin__.Exception:
1933 def get_graph(self):
1934 """get_graph(DependencyGraph self) -> IMP::DependencyGraph const &"""
1935 return _IMP_kernel.DependencyGraph_get_graph(self)
1939 """get_vertices(DependencyGraph self) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptors"""
1940 return _IMP_kernel.DependencyGraph_get_vertices(self)
1943 def get_vertex_name(self, i):
1944 """get_vertex_name(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor i) -> ModelObject"""
1945 return _IMP_kernel.DependencyGraph_get_vertex_name(self, i)
1948 def get_in_neighbors(self, v):
1949 """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"""
1950 return _IMP_kernel.DependencyGraph_get_in_neighbors(self, v)
1953 def get_out_neighbors(self, v):
1954 """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"""
1955 return _IMP_kernel.DependencyGraph_get_out_neighbors(self, v)
1960 show_graphviz(DependencyGraph self, _ostream out)
1961 show_graphviz(DependencyGraph self)
1963 return _IMP_kernel.DependencyGraph_show_graphviz(self, *args)
1966 def get_graphviz_string(self):
1967 """get_graphviz_string(DependencyGraph self) -> std::string"""
1968 return _IMP_kernel.DependencyGraph_get_graphviz_string(self)
1971 def add_edge(self, v0, v1):
1972 """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)"""
1973 return _IMP_kernel.DependencyGraph_add_edge(self, v0, v1)
1976 def add_vertex(self, l):
1977 """add_vertex(DependencyGraph self, ModelObject l) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor"""
1978 return _IMP_kernel.DependencyGraph_add_vertex(self, l)
1981 def remove_vertex(self, l):
1982 """remove_vertex(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor l)"""
1983 return _IMP_kernel.DependencyGraph_remove_vertex(self, l)
1985 __swig_destroy__ = _IMP_kernel.delete_DependencyGraph
1986 __del__ =
lambda self:
None
1987 DependencyGraph_swigregister = _IMP_kernel.DependencyGraph_swigregister
1988 DependencyGraph_swigregister(DependencyGraph)
1991 _value_types.append(
"DependencyGraph")
1994 """Proxy of C++ IMP::Key<(0)> class."""
1996 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1998 def __init__(self, *args):
2000 __init__(IMP::Key<(0)> self) -> FloatKey
2001 __init__(IMP::Key<(0)> self, std::string const & c, bool is_implicit_add_permitted=True) -> FloatKey
2002 __init__(IMP::Key<(0)> self, std::string const & c) -> FloatKey
2003 __init__(IMP::Key<(0)> self, unsigned int i) -> FloatKey
2005 this = _IMP_kernel.new_FloatKey(*args)
2007 self.this.append(this)
2008 except __builtin__.Exception:
2012 """add_key(std::string sc) -> unsigned int"""
2013 return _IMP_kernel.FloatKey_add_key(sc)
2015 add_key = staticmethod(add_key)
2017 def get_key_exists(sc):
2018 """get_key_exists(std::string sc) -> bool"""
2019 return _IMP_kernel.FloatKey_get_key_exists(sc)
2021 get_key_exists = staticmethod(get_key_exists)
2023 def get_string(self):
2024 """get_string(FloatKey self) -> std::string const"""
2025 return _IMP_kernel.FloatKey_get_string(self)
2028 def __cmp__(self, o):
2029 """__cmp__(FloatKey self, FloatKey o) -> int"""
2030 return _IMP_kernel.FloatKey___cmp__(self, o)
2033 def __eq__(self, o):
2034 """__eq__(FloatKey self, FloatKey o) -> bool"""
2035 return _IMP_kernel.FloatKey___eq__(self, o)
2038 def __ne__(self, o):
2039 """__ne__(FloatKey self, FloatKey o) -> bool"""
2040 return _IMP_kernel.FloatKey___ne__(self, o)
2043 def __lt__(self, o):
2044 """__lt__(FloatKey self, FloatKey o) -> bool"""
2045 return _IMP_kernel.FloatKey___lt__(self, o)
2048 def __gt__(self, o):
2049 """__gt__(FloatKey self, FloatKey o) -> bool"""
2050 return _IMP_kernel.FloatKey___gt__(self, o)
2053 def __ge__(self, o):
2054 """__ge__(FloatKey self, FloatKey o) -> bool"""
2055 return _IMP_kernel.FloatKey___ge__(self, o)
2058 def __le__(self, o):
2059 """__le__(FloatKey self, FloatKey o) -> bool"""
2060 return _IMP_kernel.FloatKey___le__(self, o)
2064 """__hash__(FloatKey self) -> std::size_t"""
2065 return _IMP_kernel.FloatKey___hash__(self)
2068 def show(self, *args):
2070 show(FloatKey self, _ostream out)
2073 return _IMP_kernel.FloatKey_show(self, *args)
2076 def add_alias(old_key, new_name):
2077 """add_alias(FloatKey old_key, std::string new_name) -> FloatKey"""
2078 return _IMP_kernel.FloatKey_add_alias(old_key, new_name)
2080 add_alias = staticmethod(add_alias)
2082 def get_number_of_keys():
2083 """get_number_of_keys() -> unsigned int"""
2084 return _IMP_kernel.FloatKey_get_number_of_keys()
2086 get_number_of_keys = staticmethod(get_number_of_keys)
2089 """get_index(FloatKey self) -> unsigned int"""
2090 return _IMP_kernel.FloatKey_get_index(self)
2094 """show_all(_ostream out)"""
2095 return _IMP_kernel.FloatKey_show_all(out)
2097 show_all = staticmethod(show_all)
2099 def get_all_strings():
2100 """get_all_strings() -> IMP::Vector< std::string >"""
2101 return _IMP_kernel.FloatKey_get_all_strings()
2103 get_all_strings = staticmethod(get_all_strings)
2105 def get_number_unique():
2106 """get_number_unique() -> unsigned int"""
2107 return _IMP_kernel.FloatKey_get_number_unique()
2109 get_number_unique = staticmethod(get_number_unique)
2112 """__str__(FloatKey self) -> std::string"""
2113 return _IMP_kernel.FloatKey___str__(self)
2117 """__repr__(FloatKey self) -> std::string"""
2118 return _IMP_kernel.FloatKey___repr__(self)
2120 __swig_destroy__ = _IMP_kernel.delete_FloatKey
2121 __del__ =
lambda self:
None
2122 FloatKey_swigregister = _IMP_kernel.FloatKey_swigregister
2123 FloatKey_swigregister(FloatKey)
2125 def FloatKey_add_key(sc):
2126 """FloatKey_add_key(std::string sc) -> unsigned int"""
2127 return _IMP_kernel.FloatKey_add_key(sc)
2129 def FloatKey_get_key_exists(sc):
2130 """FloatKey_get_key_exists(std::string sc) -> bool"""
2131 return _IMP_kernel.FloatKey_get_key_exists(sc)
2133 def FloatKey_add_alias(old_key, new_name):
2134 """FloatKey_add_alias(FloatKey old_key, std::string new_name) -> FloatKey"""
2135 return _IMP_kernel.FloatKey_add_alias(old_key, new_name)
2137 def FloatKey_get_number_of_keys():
2138 """FloatKey_get_number_of_keys() -> unsigned int"""
2139 return _IMP_kernel.FloatKey_get_number_of_keys()
2141 def FloatKey_show_all(out):
2142 """FloatKey_show_all(_ostream out)"""
2143 return _IMP_kernel.FloatKey_show_all(out)
2145 def FloatKey_get_all_strings():
2146 """FloatKey_get_all_strings() -> IMP::Vector< std::string >"""
2147 return _IMP_kernel.FloatKey_get_all_strings()
2149 def FloatKey_get_number_unique():
2150 """FloatKey_get_number_unique() -> unsigned int"""
2151 return _IMP_kernel.FloatKey_get_number_unique()
2154 """Proxy of C++ IMP::Key<(1)> class."""
2156 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2158 def __init__(self, *args):
2160 __init__(IMP::Key<(1)> self) -> IntKey
2161 __init__(IMP::Key<(1)> self, std::string const & c, bool is_implicit_add_permitted=True) -> IntKey
2162 __init__(IMP::Key<(1)> self, std::string const & c) -> IntKey
2163 __init__(IMP::Key<(1)> self, unsigned int i) -> IntKey
2165 this = _IMP_kernel.new_IntKey(*args)
2167 self.this.append(this)
2168 except __builtin__.Exception:
2172 """add_key(std::string sc) -> unsigned int"""
2173 return _IMP_kernel.IntKey_add_key(sc)
2175 add_key = staticmethod(add_key)
2177 def get_key_exists(sc):
2178 """get_key_exists(std::string sc) -> bool"""
2179 return _IMP_kernel.IntKey_get_key_exists(sc)
2181 get_key_exists = staticmethod(get_key_exists)
2183 def get_string(self):
2184 """get_string(IntKey self) -> std::string const"""
2185 return _IMP_kernel.IntKey_get_string(self)
2188 def __cmp__(self, o):
2189 """__cmp__(IntKey self, IntKey o) -> int"""
2190 return _IMP_kernel.IntKey___cmp__(self, o)
2193 def __eq__(self, o):
2194 """__eq__(IntKey self, IntKey o) -> bool"""
2195 return _IMP_kernel.IntKey___eq__(self, o)
2198 def __ne__(self, o):
2199 """__ne__(IntKey self, IntKey o) -> bool"""
2200 return _IMP_kernel.IntKey___ne__(self, o)
2203 def __lt__(self, o):
2204 """__lt__(IntKey self, IntKey o) -> bool"""
2205 return _IMP_kernel.IntKey___lt__(self, o)
2208 def __gt__(self, o):
2209 """__gt__(IntKey self, IntKey o) -> bool"""
2210 return _IMP_kernel.IntKey___gt__(self, o)
2213 def __ge__(self, o):
2214 """__ge__(IntKey self, IntKey o) -> bool"""
2215 return _IMP_kernel.IntKey___ge__(self, o)
2218 def __le__(self, o):
2219 """__le__(IntKey self, IntKey o) -> bool"""
2220 return _IMP_kernel.IntKey___le__(self, o)
2224 """__hash__(IntKey self) -> std::size_t"""
2225 return _IMP_kernel.IntKey___hash__(self)
2228 def show(self, *args):
2230 show(IntKey self, _ostream out)
2233 return _IMP_kernel.IntKey_show(self, *args)
2236 def add_alias(old_key, new_name):
2237 """add_alias(IntKey old_key, std::string new_name) -> IntKey"""
2238 return _IMP_kernel.IntKey_add_alias(old_key, new_name)
2240 add_alias = staticmethod(add_alias)
2242 def get_number_of_keys():
2243 """get_number_of_keys() -> unsigned int"""
2244 return _IMP_kernel.IntKey_get_number_of_keys()
2246 get_number_of_keys = staticmethod(get_number_of_keys)
2249 """get_index(IntKey self) -> unsigned int"""
2250 return _IMP_kernel.IntKey_get_index(self)
2254 """show_all(_ostream out)"""
2255 return _IMP_kernel.IntKey_show_all(out)
2257 show_all = staticmethod(show_all)
2259 def get_all_strings():
2260 """get_all_strings() -> IMP::Vector< std::string >"""
2261 return _IMP_kernel.IntKey_get_all_strings()
2263 get_all_strings = staticmethod(get_all_strings)
2265 def get_number_unique():
2266 """get_number_unique() -> unsigned int"""
2267 return _IMP_kernel.IntKey_get_number_unique()
2269 get_number_unique = staticmethod(get_number_unique)
2272 """__str__(IntKey self) -> std::string"""
2273 return _IMP_kernel.IntKey___str__(self)
2277 """__repr__(IntKey self) -> std::string"""
2278 return _IMP_kernel.IntKey___repr__(self)
2280 __swig_destroy__ = _IMP_kernel.delete_IntKey
2281 __del__ =
lambda self:
None
2282 IntKey_swigregister = _IMP_kernel.IntKey_swigregister
2283 IntKey_swigregister(IntKey)
2285 def IntKey_add_key(sc):
2286 """IntKey_add_key(std::string sc) -> unsigned int"""
2287 return _IMP_kernel.IntKey_add_key(sc)
2289 def IntKey_get_key_exists(sc):
2290 """IntKey_get_key_exists(std::string sc) -> bool"""
2291 return _IMP_kernel.IntKey_get_key_exists(sc)
2293 def IntKey_add_alias(old_key, new_name):
2294 """IntKey_add_alias(IntKey old_key, std::string new_name) -> IntKey"""
2295 return _IMP_kernel.IntKey_add_alias(old_key, new_name)
2297 def IntKey_get_number_of_keys():
2298 """IntKey_get_number_of_keys() -> unsigned int"""
2299 return _IMP_kernel.IntKey_get_number_of_keys()
2301 def IntKey_show_all(out):
2302 """IntKey_show_all(_ostream out)"""
2303 return _IMP_kernel.IntKey_show_all(out)
2305 def IntKey_get_all_strings():
2306 """IntKey_get_all_strings() -> IMP::Vector< std::string >"""
2307 return _IMP_kernel.IntKey_get_all_strings()
2309 def IntKey_get_number_unique():
2310 """IntKey_get_number_unique() -> unsigned int"""
2311 return _IMP_kernel.IntKey_get_number_unique()
2314 """Proxy of C++ IMP::Key<(2)> class."""
2316 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2318 def __init__(self, *args):
2320 __init__(IMP::Key<(2)> self) -> StringKey
2321 __init__(IMP::Key<(2)> self, std::string const & c, bool is_implicit_add_permitted=True) -> StringKey
2322 __init__(IMP::Key<(2)> self, std::string const & c) -> StringKey
2323 __init__(IMP::Key<(2)> self, unsigned int i) -> StringKey
2325 this = _IMP_kernel.new_StringKey(*args)
2327 self.this.append(this)
2328 except __builtin__.Exception:
2332 """add_key(std::string sc) -> unsigned int"""
2333 return _IMP_kernel.StringKey_add_key(sc)
2335 add_key = staticmethod(add_key)
2337 def get_key_exists(sc):
2338 """get_key_exists(std::string sc) -> bool"""
2339 return _IMP_kernel.StringKey_get_key_exists(sc)
2341 get_key_exists = staticmethod(get_key_exists)
2343 def get_string(self):
2344 """get_string(StringKey self) -> std::string const"""
2345 return _IMP_kernel.StringKey_get_string(self)
2348 def __cmp__(self, o):
2349 """__cmp__(StringKey self, StringKey o) -> int"""
2350 return _IMP_kernel.StringKey___cmp__(self, o)
2353 def __eq__(self, o):
2354 """__eq__(StringKey self, StringKey o) -> bool"""
2355 return _IMP_kernel.StringKey___eq__(self, o)
2358 def __ne__(self, o):
2359 """__ne__(StringKey self, StringKey o) -> bool"""
2360 return _IMP_kernel.StringKey___ne__(self, o)
2363 def __lt__(self, o):
2364 """__lt__(StringKey self, StringKey o) -> bool"""
2365 return _IMP_kernel.StringKey___lt__(self, o)
2368 def __gt__(self, o):
2369 """__gt__(StringKey self, StringKey o) -> bool"""
2370 return _IMP_kernel.StringKey___gt__(self, o)
2373 def __ge__(self, o):
2374 """__ge__(StringKey self, StringKey o) -> bool"""
2375 return _IMP_kernel.StringKey___ge__(self, o)
2378 def __le__(self, o):
2379 """__le__(StringKey self, StringKey o) -> bool"""
2380 return _IMP_kernel.StringKey___le__(self, o)
2384 """__hash__(StringKey self) -> std::size_t"""
2385 return _IMP_kernel.StringKey___hash__(self)
2388 def show(self, *args):
2390 show(StringKey self, _ostream out)
2391 show(StringKey self)
2393 return _IMP_kernel.StringKey_show(self, *args)
2396 def add_alias(old_key, new_name):
2397 """add_alias(StringKey old_key, std::string new_name) -> StringKey"""
2398 return _IMP_kernel.StringKey_add_alias(old_key, new_name)
2400 add_alias = staticmethod(add_alias)
2402 def get_number_of_keys():
2403 """get_number_of_keys() -> unsigned int"""
2404 return _IMP_kernel.StringKey_get_number_of_keys()
2406 get_number_of_keys = staticmethod(get_number_of_keys)
2409 """get_index(StringKey self) -> unsigned int"""
2410 return _IMP_kernel.StringKey_get_index(self)
2414 """show_all(_ostream out)"""
2415 return _IMP_kernel.StringKey_show_all(out)
2417 show_all = staticmethod(show_all)
2419 def get_all_strings():
2420 """get_all_strings() -> IMP::Vector< std::string >"""
2421 return _IMP_kernel.StringKey_get_all_strings()
2423 get_all_strings = staticmethod(get_all_strings)
2425 def get_number_unique():
2426 """get_number_unique() -> unsigned int"""
2427 return _IMP_kernel.StringKey_get_number_unique()
2429 get_number_unique = staticmethod(get_number_unique)
2432 """__str__(StringKey self) -> std::string"""
2433 return _IMP_kernel.StringKey___str__(self)
2437 """__repr__(StringKey self) -> std::string"""
2438 return _IMP_kernel.StringKey___repr__(self)
2440 __swig_destroy__ = _IMP_kernel.delete_StringKey
2441 __del__ =
lambda self:
None
2442 StringKey_swigregister = _IMP_kernel.StringKey_swigregister
2443 StringKey_swigregister(StringKey)
2445 def StringKey_add_key(sc):
2446 """StringKey_add_key(std::string sc) -> unsigned int"""
2447 return _IMP_kernel.StringKey_add_key(sc)
2449 def StringKey_get_key_exists(sc):
2450 """StringKey_get_key_exists(std::string sc) -> bool"""
2451 return _IMP_kernel.StringKey_get_key_exists(sc)
2453 def StringKey_add_alias(old_key, new_name):
2454 """StringKey_add_alias(StringKey old_key, std::string new_name) -> StringKey"""
2455 return _IMP_kernel.StringKey_add_alias(old_key, new_name)
2457 def StringKey_get_number_of_keys():
2458 """StringKey_get_number_of_keys() -> unsigned int"""
2459 return _IMP_kernel.StringKey_get_number_of_keys()
2461 def StringKey_show_all(out):
2462 """StringKey_show_all(_ostream out)"""
2463 return _IMP_kernel.StringKey_show_all(out)
2465 def StringKey_get_all_strings():
2466 """StringKey_get_all_strings() -> IMP::Vector< std::string >"""
2467 return _IMP_kernel.StringKey_get_all_strings()
2469 def StringKey_get_number_unique():
2470 """StringKey_get_number_unique() -> unsigned int"""
2471 return _IMP_kernel.StringKey_get_number_unique()
2474 """Proxy of C++ IMP::Key<(3)> class."""
2476 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2478 def __init__(self, *args):
2480 __init__(IMP::Key<(3)> self) -> ParticleIndexKey
2481 __init__(IMP::Key<(3)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleIndexKey
2482 __init__(IMP::Key<(3)> self, std::string const & c) -> ParticleIndexKey
2483 __init__(IMP::Key<(3)> self, unsigned int i) -> ParticleIndexKey
2485 this = _IMP_kernel.new_ParticleIndexKey(*args)
2487 self.this.append(this)
2488 except __builtin__.Exception:
2492 """add_key(std::string sc) -> unsigned int"""
2493 return _IMP_kernel.ParticleIndexKey_add_key(sc)
2495 add_key = staticmethod(add_key)
2497 def get_key_exists(sc):
2498 """get_key_exists(std::string sc) -> bool"""
2499 return _IMP_kernel.ParticleIndexKey_get_key_exists(sc)
2501 get_key_exists = staticmethod(get_key_exists)
2503 def get_string(self):
2504 """get_string(ParticleIndexKey self) -> std::string const"""
2505 return _IMP_kernel.ParticleIndexKey_get_string(self)
2508 def __cmp__(self, o):
2509 """__cmp__(ParticleIndexKey self, ParticleIndexKey o) -> int"""
2510 return _IMP_kernel.ParticleIndexKey___cmp__(self, o)
2513 def __eq__(self, o):
2514 """__eq__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2515 return _IMP_kernel.ParticleIndexKey___eq__(self, o)
2518 def __ne__(self, o):
2519 """__ne__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2520 return _IMP_kernel.ParticleIndexKey___ne__(self, o)
2523 def __lt__(self, o):
2524 """__lt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2525 return _IMP_kernel.ParticleIndexKey___lt__(self, o)
2528 def __gt__(self, o):
2529 """__gt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2530 return _IMP_kernel.ParticleIndexKey___gt__(self, o)
2533 def __ge__(self, o):
2534 """__ge__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2535 return _IMP_kernel.ParticleIndexKey___ge__(self, o)
2538 def __le__(self, o):
2539 """__le__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2540 return _IMP_kernel.ParticleIndexKey___le__(self, o)
2544 """__hash__(ParticleIndexKey self) -> std::size_t"""
2545 return _IMP_kernel.ParticleIndexKey___hash__(self)
2548 def show(self, *args):
2550 show(ParticleIndexKey self, _ostream out)
2551 show(ParticleIndexKey self)
2553 return _IMP_kernel.ParticleIndexKey_show(self, *args)
2556 def add_alias(old_key, new_name):
2557 """add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
2558 return _IMP_kernel.ParticleIndexKey_add_alias(old_key, new_name)
2560 add_alias = staticmethod(add_alias)
2562 def get_number_of_keys():
2563 """get_number_of_keys() -> unsigned int"""
2564 return _IMP_kernel.ParticleIndexKey_get_number_of_keys()
2566 get_number_of_keys = staticmethod(get_number_of_keys)
2569 """get_index(ParticleIndexKey self) -> unsigned int"""
2570 return _IMP_kernel.ParticleIndexKey_get_index(self)
2574 """show_all(_ostream out)"""
2575 return _IMP_kernel.ParticleIndexKey_show_all(out)
2577 show_all = staticmethod(show_all)
2579 def get_all_strings():
2580 """get_all_strings() -> IMP::Vector< std::string >"""
2581 return _IMP_kernel.ParticleIndexKey_get_all_strings()
2583 get_all_strings = staticmethod(get_all_strings)
2585 def get_number_unique():
2586 """get_number_unique() -> unsigned int"""
2587 return _IMP_kernel.ParticleIndexKey_get_number_unique()
2589 get_number_unique = staticmethod(get_number_unique)
2592 """__str__(ParticleIndexKey self) -> std::string"""
2593 return _IMP_kernel.ParticleIndexKey___str__(self)
2597 """__repr__(ParticleIndexKey self) -> std::string"""
2598 return _IMP_kernel.ParticleIndexKey___repr__(self)
2600 __swig_destroy__ = _IMP_kernel.delete_ParticleIndexKey
2601 __del__ =
lambda self:
None
2602 ParticleIndexKey_swigregister = _IMP_kernel.ParticleIndexKey_swigregister
2603 ParticleIndexKey_swigregister(ParticleIndexKey)
2605 def ParticleIndexKey_add_key(sc):
2606 """ParticleIndexKey_add_key(std::string sc) -> unsigned int"""
2607 return _IMP_kernel.ParticleIndexKey_add_key(sc)
2609 def ParticleIndexKey_get_key_exists(sc):
2610 """ParticleIndexKey_get_key_exists(std::string sc) -> bool"""
2611 return _IMP_kernel.ParticleIndexKey_get_key_exists(sc)
2613 def ParticleIndexKey_add_alias(old_key, new_name):
2614 """ParticleIndexKey_add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
2615 return _IMP_kernel.ParticleIndexKey_add_alias(old_key, new_name)
2617 def ParticleIndexKey_get_number_of_keys():
2618 """ParticleIndexKey_get_number_of_keys() -> unsigned int"""
2619 return _IMP_kernel.ParticleIndexKey_get_number_of_keys()
2621 def ParticleIndexKey_show_all(out):
2622 """ParticleIndexKey_show_all(_ostream out)"""
2623 return _IMP_kernel.ParticleIndexKey_show_all(out)
2625 def ParticleIndexKey_get_all_strings():
2626 """ParticleIndexKey_get_all_strings() -> IMP::Vector< std::string >"""
2627 return _IMP_kernel.ParticleIndexKey_get_all_strings()
2629 def ParticleIndexKey_get_number_unique():
2630 """ParticleIndexKey_get_number_unique() -> unsigned int"""
2631 return _IMP_kernel.ParticleIndexKey_get_number_unique()
2634 """Proxy of C++ IMP::Key<(4)> class."""
2636 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2638 def __init__(self, *args):
2640 __init__(IMP::Key<(4)> self) -> ObjectKey
2641 __init__(IMP::Key<(4)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ObjectKey
2642 __init__(IMP::Key<(4)> self, std::string const & c) -> ObjectKey
2643 __init__(IMP::Key<(4)> self, unsigned int i) -> ObjectKey
2645 this = _IMP_kernel.new_ObjectKey(*args)
2647 self.this.append(this)
2648 except __builtin__.Exception:
2652 """add_key(std::string sc) -> unsigned int"""
2653 return _IMP_kernel.ObjectKey_add_key(sc)
2655 add_key = staticmethod(add_key)
2657 def get_key_exists(sc):
2658 """get_key_exists(std::string sc) -> bool"""
2659 return _IMP_kernel.ObjectKey_get_key_exists(sc)
2661 get_key_exists = staticmethod(get_key_exists)
2663 def get_string(self):
2664 """get_string(ObjectKey self) -> std::string const"""
2665 return _IMP_kernel.ObjectKey_get_string(self)
2668 def __cmp__(self, o):
2669 """__cmp__(ObjectKey self, ObjectKey o) -> int"""
2670 return _IMP_kernel.ObjectKey___cmp__(self, o)
2673 def __eq__(self, o):
2674 """__eq__(ObjectKey self, ObjectKey o) -> bool"""
2675 return _IMP_kernel.ObjectKey___eq__(self, o)
2678 def __ne__(self, o):
2679 """__ne__(ObjectKey self, ObjectKey o) -> bool"""
2680 return _IMP_kernel.ObjectKey___ne__(self, o)
2683 def __lt__(self, o):
2684 """__lt__(ObjectKey self, ObjectKey o) -> bool"""
2685 return _IMP_kernel.ObjectKey___lt__(self, o)
2688 def __gt__(self, o):
2689 """__gt__(ObjectKey self, ObjectKey o) -> bool"""
2690 return _IMP_kernel.ObjectKey___gt__(self, o)
2693 def __ge__(self, o):
2694 """__ge__(ObjectKey self, ObjectKey o) -> bool"""
2695 return _IMP_kernel.ObjectKey___ge__(self, o)
2698 def __le__(self, o):
2699 """__le__(ObjectKey self, ObjectKey o) -> bool"""
2700 return _IMP_kernel.ObjectKey___le__(self, o)
2704 """__hash__(ObjectKey self) -> std::size_t"""
2705 return _IMP_kernel.ObjectKey___hash__(self)
2708 def show(self, *args):
2710 show(ObjectKey self, _ostream out)
2711 show(ObjectKey self)
2713 return _IMP_kernel.ObjectKey_show(self, *args)
2716 def add_alias(old_key, new_name):
2717 """add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
2718 return _IMP_kernel.ObjectKey_add_alias(old_key, new_name)
2720 add_alias = staticmethod(add_alias)
2722 def get_number_of_keys():
2723 """get_number_of_keys() -> unsigned int"""
2724 return _IMP_kernel.ObjectKey_get_number_of_keys()
2726 get_number_of_keys = staticmethod(get_number_of_keys)
2729 """get_index(ObjectKey self) -> unsigned int"""
2730 return _IMP_kernel.ObjectKey_get_index(self)
2734 """show_all(_ostream out)"""
2735 return _IMP_kernel.ObjectKey_show_all(out)
2737 show_all = staticmethod(show_all)
2739 def get_all_strings():
2740 """get_all_strings() -> IMP::Vector< std::string >"""
2741 return _IMP_kernel.ObjectKey_get_all_strings()
2743 get_all_strings = staticmethod(get_all_strings)
2745 def get_number_unique():
2746 """get_number_unique() -> unsigned int"""
2747 return _IMP_kernel.ObjectKey_get_number_unique()
2749 get_number_unique = staticmethod(get_number_unique)
2752 """__str__(ObjectKey self) -> std::string"""
2753 return _IMP_kernel.ObjectKey___str__(self)
2757 """__repr__(ObjectKey self) -> std::string"""
2758 return _IMP_kernel.ObjectKey___repr__(self)
2760 __swig_destroy__ = _IMP_kernel.delete_ObjectKey
2761 __del__ =
lambda self:
None
2762 ObjectKey_swigregister = _IMP_kernel.ObjectKey_swigregister
2763 ObjectKey_swigregister(ObjectKey)
2765 def ObjectKey_add_key(sc):
2766 """ObjectKey_add_key(std::string sc) -> unsigned int"""
2767 return _IMP_kernel.ObjectKey_add_key(sc)
2769 def ObjectKey_get_key_exists(sc):
2770 """ObjectKey_get_key_exists(std::string sc) -> bool"""
2771 return _IMP_kernel.ObjectKey_get_key_exists(sc)
2773 def ObjectKey_add_alias(old_key, new_name):
2774 """ObjectKey_add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
2775 return _IMP_kernel.ObjectKey_add_alias(old_key, new_name)
2777 def ObjectKey_get_number_of_keys():
2778 """ObjectKey_get_number_of_keys() -> unsigned int"""
2779 return _IMP_kernel.ObjectKey_get_number_of_keys()
2781 def ObjectKey_show_all(out):
2782 """ObjectKey_show_all(_ostream out)"""
2783 return _IMP_kernel.ObjectKey_show_all(out)
2785 def ObjectKey_get_all_strings():
2786 """ObjectKey_get_all_strings() -> IMP::Vector< std::string >"""
2787 return _IMP_kernel.ObjectKey_get_all_strings()
2789 def ObjectKey_get_number_unique():
2790 """ObjectKey_get_number_unique() -> unsigned int"""
2791 return _IMP_kernel.ObjectKey_get_number_unique()
2794 """Proxy of C++ IMP::Key<(6)> class."""
2796 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2798 def __init__(self, *args):
2800 __init__(IMP::Key<(6)> self) -> ParticleIndexesKey
2801 __init__(IMP::Key<(6)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleIndexesKey
2802 __init__(IMP::Key<(6)> self, std::string const & c) -> ParticleIndexesKey
2803 __init__(IMP::Key<(6)> self, unsigned int i) -> ParticleIndexesKey
2805 this = _IMP_kernel.new_ParticleIndexesKey(*args)
2807 self.this.append(this)
2808 except __builtin__.Exception:
2812 """add_key(std::string sc) -> unsigned int"""
2813 return _IMP_kernel.ParticleIndexesKey_add_key(sc)
2815 add_key = staticmethod(add_key)
2817 def get_key_exists(sc):
2818 """get_key_exists(std::string sc) -> bool"""
2819 return _IMP_kernel.ParticleIndexesKey_get_key_exists(sc)
2821 get_key_exists = staticmethod(get_key_exists)
2823 def get_string(self):
2824 """get_string(ParticleIndexesKey self) -> std::string const"""
2825 return _IMP_kernel.ParticleIndexesKey_get_string(self)
2828 def __cmp__(self, o):
2829 """__cmp__(ParticleIndexesKey self, ParticleIndexesKey o) -> int"""
2830 return _IMP_kernel.ParticleIndexesKey___cmp__(self, o)
2833 def __eq__(self, o):
2834 """__eq__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2835 return _IMP_kernel.ParticleIndexesKey___eq__(self, o)
2838 def __ne__(self, o):
2839 """__ne__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2840 return _IMP_kernel.ParticleIndexesKey___ne__(self, o)
2843 def __lt__(self, o):
2844 """__lt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2845 return _IMP_kernel.ParticleIndexesKey___lt__(self, o)
2848 def __gt__(self, o):
2849 """__gt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2850 return _IMP_kernel.ParticleIndexesKey___gt__(self, o)
2853 def __ge__(self, o):
2854 """__ge__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2855 return _IMP_kernel.ParticleIndexesKey___ge__(self, o)
2858 def __le__(self, o):
2859 """__le__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2860 return _IMP_kernel.ParticleIndexesKey___le__(self, o)
2864 """__hash__(ParticleIndexesKey self) -> std::size_t"""
2865 return _IMP_kernel.ParticleIndexesKey___hash__(self)
2868 def show(self, *args):
2870 show(ParticleIndexesKey self, _ostream out)
2871 show(ParticleIndexesKey self)
2873 return _IMP_kernel.ParticleIndexesKey_show(self, *args)
2876 def add_alias(old_key, new_name):
2877 """add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
2878 return _IMP_kernel.ParticleIndexesKey_add_alias(old_key, new_name)
2880 add_alias = staticmethod(add_alias)
2882 def get_number_of_keys():
2883 """get_number_of_keys() -> unsigned int"""
2884 return _IMP_kernel.ParticleIndexesKey_get_number_of_keys()
2886 get_number_of_keys = staticmethod(get_number_of_keys)
2889 """get_index(ParticleIndexesKey self) -> unsigned int"""
2890 return _IMP_kernel.ParticleIndexesKey_get_index(self)
2894 """show_all(_ostream out)"""
2895 return _IMP_kernel.ParticleIndexesKey_show_all(out)
2897 show_all = staticmethod(show_all)
2899 def get_all_strings():
2900 """get_all_strings() -> IMP::Vector< std::string >"""
2901 return _IMP_kernel.ParticleIndexesKey_get_all_strings()
2903 get_all_strings = staticmethod(get_all_strings)
2905 def get_number_unique():
2906 """get_number_unique() -> unsigned int"""
2907 return _IMP_kernel.ParticleIndexesKey_get_number_unique()
2909 get_number_unique = staticmethod(get_number_unique)
2912 """__str__(ParticleIndexesKey self) -> std::string"""
2913 return _IMP_kernel.ParticleIndexesKey___str__(self)
2917 """__repr__(ParticleIndexesKey self) -> std::string"""
2918 return _IMP_kernel.ParticleIndexesKey___repr__(self)
2920 __swig_destroy__ = _IMP_kernel.delete_ParticleIndexesKey
2921 __del__ =
lambda self:
None
2922 ParticleIndexesKey_swigregister = _IMP_kernel.ParticleIndexesKey_swigregister
2923 ParticleIndexesKey_swigregister(ParticleIndexesKey)
2925 def ParticleIndexesKey_add_key(sc):
2926 """ParticleIndexesKey_add_key(std::string sc) -> unsigned int"""
2927 return _IMP_kernel.ParticleIndexesKey_add_key(sc)
2929 def ParticleIndexesKey_get_key_exists(sc):
2930 """ParticleIndexesKey_get_key_exists(std::string sc) -> bool"""
2931 return _IMP_kernel.ParticleIndexesKey_get_key_exists(sc)
2933 def ParticleIndexesKey_add_alias(old_key, new_name):
2934 """ParticleIndexesKey_add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
2935 return _IMP_kernel.ParticleIndexesKey_add_alias(old_key, new_name)
2937 def ParticleIndexesKey_get_number_of_keys():
2938 """ParticleIndexesKey_get_number_of_keys() -> unsigned int"""
2939 return _IMP_kernel.ParticleIndexesKey_get_number_of_keys()
2941 def ParticleIndexesKey_show_all(out):
2942 """ParticleIndexesKey_show_all(_ostream out)"""
2943 return _IMP_kernel.ParticleIndexesKey_show_all(out)
2945 def ParticleIndexesKey_get_all_strings():
2946 """ParticleIndexesKey_get_all_strings() -> IMP::Vector< std::string >"""
2947 return _IMP_kernel.ParticleIndexesKey_get_all_strings()
2949 def ParticleIndexesKey_get_number_unique():
2950 """ParticleIndexesKey_get_number_unique() -> unsigned int"""
2951 return _IMP_kernel.ParticleIndexesKey_get_number_unique()
2954 """Proxy of C++ IMP::Key<(8)> class."""
2956 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2958 def __init__(self, *args):
2960 __init__(IMP::Key<(8)> self) -> ModelKey
2961 __init__(IMP::Key<(8)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ModelKey
2962 __init__(IMP::Key<(8)> self, std::string const & c) -> ModelKey
2963 __init__(IMP::Key<(8)> self, unsigned int i) -> ModelKey
2965 this = _IMP_kernel.new_ModelKey(*args)
2967 self.this.append(this)
2968 except __builtin__.Exception:
2972 """add_key(std::string sc) -> unsigned int"""
2973 return _IMP_kernel.ModelKey_add_key(sc)
2975 add_key = staticmethod(add_key)
2977 def get_key_exists(sc):
2978 """get_key_exists(std::string sc) -> bool"""
2979 return _IMP_kernel.ModelKey_get_key_exists(sc)
2981 get_key_exists = staticmethod(get_key_exists)
2983 def get_string(self):
2984 """get_string(ModelKey self) -> std::string const"""
2985 return _IMP_kernel.ModelKey_get_string(self)
2988 def __cmp__(self, o):
2989 """__cmp__(ModelKey self, ModelKey o) -> int"""
2990 return _IMP_kernel.ModelKey___cmp__(self, o)
2993 def __eq__(self, o):
2994 """__eq__(ModelKey self, ModelKey o) -> bool"""
2995 return _IMP_kernel.ModelKey___eq__(self, o)
2998 def __ne__(self, o):
2999 """__ne__(ModelKey self, ModelKey o) -> bool"""
3000 return _IMP_kernel.ModelKey___ne__(self, o)
3003 def __lt__(self, o):
3004 """__lt__(ModelKey self, ModelKey o) -> bool"""
3005 return _IMP_kernel.ModelKey___lt__(self, o)
3008 def __gt__(self, o):
3009 """__gt__(ModelKey self, ModelKey o) -> bool"""
3010 return _IMP_kernel.ModelKey___gt__(self, o)
3013 def __ge__(self, o):
3014 """__ge__(ModelKey self, ModelKey o) -> bool"""
3015 return _IMP_kernel.ModelKey___ge__(self, o)
3018 def __le__(self, o):
3019 """__le__(ModelKey self, ModelKey o) -> bool"""
3020 return _IMP_kernel.ModelKey___le__(self, o)
3024 """__hash__(ModelKey self) -> std::size_t"""
3025 return _IMP_kernel.ModelKey___hash__(self)
3028 def show(self, *args):
3030 show(ModelKey self, _ostream out)
3033 return _IMP_kernel.ModelKey_show(self, *args)
3036 def add_alias(old_key, new_name):
3037 """add_alias(ModelKey old_key, std::string new_name) -> ModelKey"""
3038 return _IMP_kernel.ModelKey_add_alias(old_key, new_name)
3040 add_alias = staticmethod(add_alias)
3042 def get_number_of_keys():
3043 """get_number_of_keys() -> unsigned int"""
3044 return _IMP_kernel.ModelKey_get_number_of_keys()
3046 get_number_of_keys = staticmethod(get_number_of_keys)
3049 """get_index(ModelKey self) -> unsigned int"""
3050 return _IMP_kernel.ModelKey_get_index(self)
3054 """show_all(_ostream out)"""
3055 return _IMP_kernel.ModelKey_show_all(out)
3057 show_all = staticmethod(show_all)
3059 def get_all_strings():
3060 """get_all_strings() -> IMP::Vector< std::string >"""
3061 return _IMP_kernel.ModelKey_get_all_strings()
3063 get_all_strings = staticmethod(get_all_strings)
3065 def get_number_unique():
3066 """get_number_unique() -> unsigned int"""
3067 return _IMP_kernel.ModelKey_get_number_unique()
3069 get_number_unique = staticmethod(get_number_unique)
3072 """__str__(ModelKey self) -> std::string"""
3073 return _IMP_kernel.ModelKey___str__(self)
3077 """__repr__(ModelKey self) -> std::string"""
3078 return _IMP_kernel.ModelKey___repr__(self)
3080 __swig_destroy__ = _IMP_kernel.delete_ModelKey
3081 __del__ =
lambda self:
None
3082 ModelKey_swigregister = _IMP_kernel.ModelKey_swigregister
3083 ModelKey_swigregister(ModelKey)
3085 def ModelKey_add_key(sc):
3086 """ModelKey_add_key(std::string sc) -> unsigned int"""
3087 return _IMP_kernel.ModelKey_add_key(sc)
3089 def ModelKey_get_key_exists(sc):
3090 """ModelKey_get_key_exists(std::string sc) -> bool"""
3091 return _IMP_kernel.ModelKey_get_key_exists(sc)
3093 def ModelKey_add_alias(old_key, new_name):
3094 """ModelKey_add_alias(ModelKey old_key, std::string new_name) -> ModelKey"""
3095 return _IMP_kernel.ModelKey_add_alias(old_key, new_name)
3097 def ModelKey_get_number_of_keys():
3098 """ModelKey_get_number_of_keys() -> unsigned int"""
3099 return _IMP_kernel.ModelKey_get_number_of_keys()
3101 def ModelKey_show_all(out):
3102 """ModelKey_show_all(_ostream out)"""
3103 return _IMP_kernel.ModelKey_show_all(out)
3105 def ModelKey_get_all_strings():
3106 """ModelKey_get_all_strings() -> IMP::Vector< std::string >"""
3107 return _IMP_kernel.ModelKey_get_all_strings()
3109 def ModelKey_get_number_unique():
3110 """ModelKey_get_number_unique() -> unsigned int"""
3111 return _IMP_kernel.ModelKey_get_number_unique()
3114 """Proxy of C++ IMP::Index<(IMP::ParticleIndexTag)> class."""
3116 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3118 def __init__(self, *args):
3120 __init__(IMP::Index<(IMP::ParticleIndexTag)> self, int i) -> ParticleIndex
3121 __init__(IMP::Index<(IMP::ParticleIndexTag)> self) -> ParticleIndex
3123 this = _IMP_kernel.new_ParticleIndex(*args)
3125 self.this.append(this)
3126 except __builtin__.Exception:
3130 """get_index(ParticleIndex self) -> int"""
3131 return _IMP_kernel.ParticleIndex_get_index(self)
3134 def __cmp__(self, o):
3135 """__cmp__(ParticleIndex self, ParticleIndex o) -> int"""
3136 return _IMP_kernel.ParticleIndex___cmp__(self, o)
3139 def __eq__(self, o):
3140 """__eq__(ParticleIndex self, ParticleIndex o) -> bool"""
3141 return _IMP_kernel.ParticleIndex___eq__(self, o)
3144 def __ne__(self, o):
3145 """__ne__(ParticleIndex self, ParticleIndex o) -> bool"""
3146 return _IMP_kernel.ParticleIndex___ne__(self, o)
3149 def __lt__(self, o):
3150 """__lt__(ParticleIndex self, ParticleIndex o) -> bool"""
3151 return _IMP_kernel.ParticleIndex___lt__(self, o)
3154 def __gt__(self, o):
3155 """__gt__(ParticleIndex self, ParticleIndex o) -> bool"""
3156 return _IMP_kernel.ParticleIndex___gt__(self, o)
3159 def __ge__(self, o):
3160 """__ge__(ParticleIndex self, ParticleIndex o) -> bool"""
3161 return _IMP_kernel.ParticleIndex___ge__(self, o)
3164 def __le__(self, o):
3165 """__le__(ParticleIndex self, ParticleIndex o) -> bool"""
3166 return _IMP_kernel.ParticleIndex___le__(self, o)
3169 def show(self, *args):
3171 show(ParticleIndex self, _ostream out)
3172 show(ParticleIndex self)
3174 return _IMP_kernel.ParticleIndex_show(self, *args)
3178 """__hash__(ParticleIndex self) -> std::size_t"""
3179 return _IMP_kernel.ParticleIndex___hash__(self)
3183 """__str__(ParticleIndex self) -> std::string"""
3184 return _IMP_kernel.ParticleIndex___str__(self)
3188 """__repr__(ParticleIndex self) -> std::string"""
3189 return _IMP_kernel.ParticleIndex___repr__(self)
3191 __swig_destroy__ = _IMP_kernel.delete_ParticleIndex
3192 __del__ =
lambda self:
None
3193 ParticleIndex_swigregister = _IMP_kernel.ParticleIndex_swigregister
3194 ParticleIndex_swigregister(ParticleIndex)
3204 class FloatIndex(_Value):
3205 """Proxy of C++ IMP::FloatIndex class."""
3207 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3209 def __init__(self, *args):
3211 __init__(IMP::FloatIndex self, ParticleIndex i0, FloatKey i1) -> FloatIndex
3212 __init__(IMP::FloatIndex self, ParticleIndex i0) -> FloatIndex
3213 __init__(IMP::FloatIndex self) -> FloatIndex
3215 this = _IMP_kernel.new_FloatIndex(*args)
3217 self.this.append(this)
3218 except __builtin__.Exception:
3222 """__hash__(FloatIndex self) -> std::size_t"""
3223 return _IMP_kernel.FloatIndex___hash__(self)
3226 def show(self, *args):
3228 show(FloatIndex self, _ostream out)
3229 show(FloatIndex self)
3231 return _IMP_kernel.FloatIndex_show(self, *args)
3234 def __cmp__(self, o):
3235 """__cmp__(FloatIndex self, FloatIndex o) -> int"""
3236 return _IMP_kernel.FloatIndex___cmp__(self, o)
3239 def __eq__(self, o):
3240 """__eq__(FloatIndex self, FloatIndex o) -> bool"""
3241 return _IMP_kernel.FloatIndex___eq__(self, o)
3244 def __ne__(self, o):
3245 """__ne__(FloatIndex self, FloatIndex o) -> bool"""
3246 return _IMP_kernel.FloatIndex___ne__(self, o)
3249 def __lt__(self, o):
3250 """__lt__(FloatIndex self, FloatIndex o) -> bool"""
3251 return _IMP_kernel.FloatIndex___lt__(self, o)
3254 def __gt__(self, o):
3255 """__gt__(FloatIndex self, FloatIndex o) -> bool"""
3256 return _IMP_kernel.FloatIndex___gt__(self, o)
3259 def __ge__(self, o):
3260 """__ge__(FloatIndex self, FloatIndex o) -> bool"""
3261 return _IMP_kernel.FloatIndex___ge__(self, o)
3264 def __le__(self, o):
3265 """__le__(FloatIndex self, FloatIndex o) -> bool"""
3266 return _IMP_kernel.FloatIndex___le__(self, o)
3269 def get_particle(self):
3270 """get_particle(FloatIndex self) -> ParticleIndex const &"""
3271 return _IMP_kernel.FloatIndex_get_particle(self)
3274 def set_particle(self, v):
3275 """set_particle(FloatIndex self, ParticleIndex const & v)"""
3276 return _IMP_kernel.FloatIndex_set_particle(self, v)
3280 """get_key(FloatIndex self) -> FloatKey const &"""
3281 return _IMP_kernel.FloatIndex_get_key(self)
3284 def set_key(self, v):
3285 """set_key(FloatIndex self, FloatKey const & v)"""
3286 return _IMP_kernel.FloatIndex_set_key(self, v)
3290 """__str__(FloatIndex self) -> std::string"""
3291 return _IMP_kernel.FloatIndex___str__(self)
3295 """__repr__(FloatIndex self) -> std::string"""
3296 return _IMP_kernel.FloatIndex___repr__(self)
3298 __swig_destroy__ = _IMP_kernel.delete_FloatIndex
3299 __del__ =
lambda self:
None
3300 FloatIndex_swigregister = _IMP_kernel.FloatIndex_swigregister
3301 FloatIndex_swigregister(FloatIndex)
3303 class _ParticleIndexTag(object):
3304 """Proxy of C++ IMP::ParticleIndexTag class."""
3306 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3307 __repr__ = _swig_repr
3310 """__init__(IMP::ParticleIndexTag self) -> _ParticleIndexTag"""
3311 this = _IMP_kernel.new__ParticleIndexTag()
3313 self.this.append(this)
3314 except __builtin__.Exception:
3316 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexTag
3317 __del__ =
lambda self:
None
3318 _ParticleIndexTag_swigregister = _IMP_kernel._ParticleIndexTag_swigregister
3319 _ParticleIndexTag_swigregister(_ParticleIndexTag)
3321 class ModelObject(Object):
3322 """Proxy of C++ IMP::ModelObject class."""
3324 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3326 def __init__(self, m, name):
3327 """__init__(IMP::ModelObject self, Model m, std::string name) -> ModelObject"""
3328 if self.__class__ == ModelObject:
3332 this = _IMP_kernel.new_ModelObject(_self, m, name)
3334 self.this.append(this)
3335 except __builtin__.Exception:
3338 if self.__class__ != ModelObject:
3339 _director_objects.register(self)
3343 __swig_destroy__ = _IMP_kernel.delete_ModelObject
3344 __del__ =
lambda self:
None
3346 def get_model(self):
3347 """get_model(ModelObject self) -> Model"""
3348 return _IMP_kernel.ModelObject_get_model(self)
3351 def get_inputs(self):
3352 """get_inputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3353 return _IMP_kernel.ModelObject_get_inputs(self)
3356 def get_outputs(self):
3357 """get_outputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3358 return _IMP_kernel.ModelObject_get_outputs(self)
3361 def get_interactions(self):
3362 """get_interactions(ModelObject self) -> IMP::ModelObjectsTemps"""
3363 return _IMP_kernel.ModelObject_get_interactions(self)
3366 def get_has_dependencies(self):
3367 """get_has_dependencies(ModelObject self) -> bool"""
3368 return _IMP_kernel.ModelObject_get_has_dependencies(self)
3371 def set_has_dependencies(self, tf):
3372 """set_has_dependencies(ModelObject self, bool tf)"""
3373 return _IMP_kernel.ModelObject_set_has_dependencies(self, tf)
3376 def set_has_required_score_states(self, tf):
3377 """set_has_required_score_states(ModelObject self, bool tf)"""
3378 return _IMP_kernel.ModelObject_set_has_required_score_states(self, tf)
3381 def get_has_required_score_states(self):
3382 """get_has_required_score_states(ModelObject self) -> bool"""
3383 return _IMP_kernel.ModelObject_get_has_required_score_states(self)
3387 """get_required_score_states(ModelObject self) -> IMP::ScoreStatesTemp const &"""
3388 return _IMP_kernel.ModelObject_get_required_score_states(self)
3391 def handle_set_has_required_score_states(self, arg0):
3392 """handle_set_has_required_score_states(ModelObject self, bool arg0)"""
3393 return _IMP_kernel.ModelObject_handle_set_has_required_score_states(self, arg0)
3396 def do_get_inputs(self):
3397 """do_get_inputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3398 return _IMP_kernel.ModelObject_do_get_inputs(self)
3401 def do_get_outputs(self):
3402 """do_get_outputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3403 return _IMP_kernel.ModelObject_do_get_outputs(self)
3406 def do_get_interactions(self):
3407 """do_get_interactions(ModelObject self) -> IMP::ModelObjectsTemps"""
3408 return _IMP_kernel.ModelObject_do_get_interactions(self)
3412 """__str__(ModelObject self) -> std::string"""
3413 return _IMP_kernel.ModelObject___str__(self)
3417 """__repr__(ModelObject self) -> std::string"""
3418 return _IMP_kernel.ModelObject___repr__(self)
3423 return _object_cast_to_ModelObject(o)
3426 def get_type_name(self):
3427 return self.__class__.__name__
3428 def do_show(self, out):
3430 def get_version_info(self):
3432 return VersionInfo(self.__module__,
3433 __import__(self.__module__).get_module_version())
3436 __import__(self.__module__).get_module_version())
3439 return _object_cast_to_ModelObject(o)
3441 def __disown__(self):
3443 _IMP_kernel.disown_ModelObject(self)
3444 return weakref_proxy(self)
3446 def do_destroy(self):
3447 """do_destroy(ModelObject self)"""
3448 return _IMP_kernel.ModelObject_do_destroy(self)
3450 ModelObject_swigregister = _IMP_kernel.ModelObject_swigregister
3451 ModelObject_swigregister(ModelObject)
3452 cvar = _IMP_kernel.cvar
3453 NO_MAX = cvar.NO_MAX
3454 BAD_SCORE = cvar.BAD_SCORE
3456 class _ParticleInputs(object):
3457 """Proxy of C++ IMP::ParticleInputs class."""
3459 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3461 def __init__(self, *args, **kwargs):
3462 raise AttributeError(
"No constructor defined - class is abstract")
3463 __repr__ = _swig_repr
3465 def get_inputs(self, m, pis):
3466 """get_inputs(_ParticleInputs self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3467 return _IMP_kernel._ParticleInputs_get_inputs(self, m, pis)
3469 _ParticleInputs_swigregister = _IMP_kernel._ParticleInputs_swigregister
3470 _ParticleInputs_swigregister(_ParticleInputs)
3472 class _ParticleOutputs(object):
3473 """Proxy of C++ IMP::ParticleOutputs class."""
3475 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3477 def __init__(self, *args, **kwargs):
3478 raise AttributeError(
"No constructor defined - class is abstract")
3479 __repr__ = _swig_repr
3481 def get_outputs(self, m, pis):
3482 """get_outputs(_ParticleOutputs self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3483 return _IMP_kernel._ParticleOutputs_get_outputs(self, m, pis)
3485 _ParticleOutputs_swigregister = _IMP_kernel._ParticleOutputs_swigregister
3486 _ParticleOutputs_swigregister(_ParticleOutputs)
3490 """get_input_particles(IMP::ModelObjectsTemp const & mos) -> IMP::ParticlesTemp"""
3491 return _IMP_kernel.get_input_particles(mos)
3494 """get_input_containers(IMP::ModelObjectsTemp const & mos) -> IMP::ContainersTemp"""
3495 return _IMP_kernel.get_input_containers(mos)
3498 """get_output_particles(IMP::ModelObjectsTemp const & mos) -> IMP::ParticlesTemp"""
3499 return _IMP_kernel.get_output_particles(mos)
3502 """get_output_containers(IMP::ModelObjectsTemp const & mos) -> IMP::ContainersTemp"""
3503 return _IMP_kernel.get_output_containers(mos)
3504 class DerivativeAccumulator(object):
3505 """Proxy of C++ IMP::DerivativeAccumulator class."""
3507 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3508 __repr__ = _swig_repr
3510 def __init__(self, *args):
3512 __init__(IMP::DerivativeAccumulator self, double weight=1.0) -> DerivativeAccumulator
3513 __init__(IMP::DerivativeAccumulator self) -> DerivativeAccumulator
3514 __init__(IMP::DerivativeAccumulator self, DerivativeAccumulator copy, double weight) -> DerivativeAccumulator
3516 this = _IMP_kernel.new_DerivativeAccumulator(*args)
3518 self.this.append(this)
3519 except __builtin__.Exception:
3522 def __call__(self, value):
3523 """__call__(DerivativeAccumulator self, double const value) -> double"""
3524 return _IMP_kernel.DerivativeAccumulator___call__(self, value)
3527 def get_weight(self):
3528 """get_weight(DerivativeAccumulator self) -> double"""
3529 return _IMP_kernel.DerivativeAccumulator_get_weight(self)
3532 def show(self, *args):
3534 show(DerivativeAccumulator self, _ostream out)
3535 show(DerivativeAccumulator self)
3537 return _IMP_kernel.DerivativeAccumulator_show(self, *args)
3539 __swig_destroy__ = _IMP_kernel.delete_DerivativeAccumulator
3540 __del__ =
lambda self:
None
3541 DerivativeAccumulator_swigregister = _IMP_kernel.DerivativeAccumulator_swigregister
3542 DerivativeAccumulator_swigregister(DerivativeAccumulator)
3544 class EvaluationState(object):
3545 """Proxy of C++ IMP::EvaluationState class."""
3547 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3548 score = _swig_property(_IMP_kernel.EvaluationState_score_get, _IMP_kernel.EvaluationState_score_set)
3549 good = _swig_property(_IMP_kernel.EvaluationState_good_get, _IMP_kernel.EvaluationState_good_set)
3551 def __init__(self, *args):
3553 __init__(IMP::EvaluationState self, double oscore, bool ogood) -> EvaluationState
3554 __init__(IMP::EvaluationState self) -> EvaluationState
3556 this = _IMP_kernel.new_EvaluationState(*args)
3558 self.this.append(this)
3559 except __builtin__.Exception:
3562 def show(self, *args):
3564 show(EvaluationState self, _ostream out)
3565 show(EvaluationState self)
3567 return _IMP_kernel.EvaluationState_show(self, *args)
3571 """__str__(EvaluationState self) -> std::string"""
3572 return _IMP_kernel.EvaluationState___str__(self)
3576 """__repr__(EvaluationState self) -> std::string"""
3577 return _IMP_kernel.EvaluationState___repr__(self)
3579 __swig_destroy__ = _IMP_kernel.delete_EvaluationState
3580 __del__ =
lambda self:
None
3581 EvaluationState_swigregister = _IMP_kernel.EvaluationState_swigregister
3582 EvaluationState_swigregister(EvaluationState)
3584 class ScoreAccumulator(_Value):
3585 """Proxy of C++ IMP::ScoreAccumulator class."""
3587 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3589 def __init__(self, *args):
3591 __init__(IMP::ScoreAccumulator self) -> ScoreAccumulator
3592 __init__(IMP::ScoreAccumulator self, ScoreAccumulator o, Restraint r) -> ScoreAccumulator
3593 __init__(IMP::ScoreAccumulator self, ScoreAccumulator o, double weight, double local_max) -> ScoreAccumulator
3595 this = _IMP_kernel.new_ScoreAccumulator(*args)
3597 self.this.append(this)
3598 except __builtin__.Exception:
3601 def add_score(self, score):
3602 """add_score(ScoreAccumulator self, double score)"""
3603 return _IMP_kernel.ScoreAccumulator_add_score(self, score)
3606 def get_abort_evaluation(self):
3607 """get_abort_evaluation(ScoreAccumulator self) -> bool"""
3608 return _IMP_kernel.ScoreAccumulator_get_abort_evaluation(self)
3611 def get_is_evaluate_if_below(self):
3612 """get_is_evaluate_if_below(ScoreAccumulator self) -> bool"""
3613 return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_below(self)
3616 def get_is_evaluate_if_good(self):
3617 """get_is_evaluate_if_good(ScoreAccumulator self) -> bool"""
3618 return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_good(self)
3621 def get_maximum(self):
3622 """get_maximum(ScoreAccumulator self) -> double"""
3623 return _IMP_kernel.ScoreAccumulator_get_maximum(self)
3626 def get_derivative_accumulator(self):
3627 """get_derivative_accumulator(ScoreAccumulator self) -> DerivativeAccumulator"""
3628 return _IMP_kernel.ScoreAccumulator_get_derivative_accumulator(self)
3631 def show(self, *args):
3633 show(ScoreAccumulator self, _ostream out)
3634 show(ScoreAccumulator self)
3636 return _IMP_kernel.ScoreAccumulator_show(self, *args)
3640 """__str__(ScoreAccumulator self) -> std::string"""
3641 return _IMP_kernel.ScoreAccumulator___str__(self)
3645 """__repr__(ScoreAccumulator self) -> std::string"""
3646 return _IMP_kernel.ScoreAccumulator___repr__(self)
3648 __swig_destroy__ = _IMP_kernel.delete_ScoreAccumulator
3649 __del__ =
lambda self:
None
3650 ScoreAccumulator_swigregister = _IMP_kernel.ScoreAccumulator_swigregister
3651 ScoreAccumulator_swigregister(ScoreAccumulator)
3653 class ScoreState(ModelObject):
3654 """Proxy of C++ IMP::ScoreState class."""
3656 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3658 def __init__(self, m, name):
3659 """__init__(IMP::ScoreState self, Model m, std::string name) -> ScoreState"""
3660 if self.__class__ == ScoreState:
3664 this = _IMP_kernel.new_ScoreState(_self, m, name)
3666 self.this.append(this)
3667 except __builtin__.Exception:
3670 if self.__class__ != ScoreState:
3671 _director_objects.register(self)
3676 def before_evaluate(self):
3677 """before_evaluate(ScoreState self)"""
3678 return _IMP_kernel.ScoreState_before_evaluate(self)
3681 def after_evaluate(self, accpt):
3682 """after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
3683 return _IMP_kernel.ScoreState_after_evaluate(self, accpt)
3686 def get_has_update_order(self):
3687 """get_has_update_order(ScoreState self) -> bool"""
3688 return _IMP_kernel.ScoreState_get_has_update_order(self)
3692 """get_update_order(ScoreState self) -> unsigned int"""
3693 return _IMP_kernel.ScoreState_get_update_order(self)
3696 def handle_set_has_required_score_states(self, tf):
3697 """handle_set_has_required_score_states(ScoreState self, bool tf)"""
3698 return _IMP_kernel.ScoreState_handle_set_has_required_score_states(self, tf)
3701 def do_before_evaluate(self):
3702 """do_before_evaluate(ScoreState self)"""
3703 return _IMP_kernel.ScoreState_do_before_evaluate(self)
3706 def do_after_evaluate(self, accpt):
3707 """do_after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
3708 return _IMP_kernel.ScoreState_do_after_evaluate(self, accpt)
3710 __swig_destroy__ = _IMP_kernel.delete_ScoreState
3711 __del__ =
lambda self:
None
3714 """__str__(ScoreState self) -> std::string"""
3715 return _IMP_kernel.ScoreState___str__(self)
3719 """__repr__(ScoreState self) -> std::string"""
3720 return _IMP_kernel.ScoreState___repr__(self)
3725 return _object_cast_to_ScoreState(o)
3728 def get_type_name(self):
3729 return self.__class__.__name__
3730 def do_show(self, out):
3732 def get_version_info(self):
3734 return VersionInfo(self.__module__,
3735 __import__(self.__module__).get_module_version())
3738 __import__(self.__module__).get_module_version())
3741 return _object_cast_to_ScoreState(o)
3743 def __disown__(self):
3745 _IMP_kernel.disown_ScoreState(self)
3746 return weakref_proxy(self)
3748 def do_destroy(self):
3749 """do_destroy(ScoreState self)"""
3750 return _IMP_kernel.ScoreState_do_destroy(self)
3753 def do_get_inputs(self):
3754 """do_get_inputs(ScoreState self) -> IMP::ModelObjectsTemp"""
3755 return _IMP_kernel.ScoreState_do_get_inputs(self)
3758 def do_get_outputs(self):
3759 """do_get_outputs(ScoreState self) -> IMP::ModelObjectsTemp"""
3760 return _IMP_kernel.ScoreState_do_get_outputs(self)
3763 def do_get_interactions(self):
3764 """do_get_interactions(ScoreState self) -> IMP::ModelObjectsTemps"""
3765 return _IMP_kernel.ScoreState_do_get_interactions(self)
3767 ScoreState_swigregister = _IMP_kernel.ScoreState_swigregister
3768 ScoreState_swigregister(ScoreState)
3772 """get_update_order(IMP::ScoreStatesTemp input) -> IMP::ScoreStatesTemp"""
3773 return _IMP_kernel.get_update_order(input)
3774 class Constraint(ScoreState):
3775 """Proxy of C++ IMP::Constraint class."""
3777 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3779 def __init__(self, *args):
3781 __init__(IMP::Constraint self, Model m, std::string name) -> Constraint
3782 __init__(IMP::Constraint self, Model m) -> Constraint
3784 if self.__class__ == Constraint:
3788 this = _IMP_kernel.new_Constraint(_self, *args)
3790 self.this.append(this)
3791 except __builtin__.Exception:
3794 if self.__class__ != Constraint:
3795 _director_objects.register(self)
3800 def do_update_attributes(self):
3801 """do_update_attributes(Constraint self)"""
3802 return _IMP_kernel.Constraint_do_update_attributes(self)
3805 def do_update_derivatives(self, da):
3806 """do_update_derivatives(Constraint self, DerivativeAccumulator da)"""
3807 return _IMP_kernel.Constraint_do_update_derivatives(self, da)
3810 def do_before_evaluate(self):
3811 """do_before_evaluate(Constraint self)"""
3812 return _IMP_kernel.Constraint_do_before_evaluate(self)
3815 def do_after_evaluate(self, da):
3816 """do_after_evaluate(Constraint self, DerivativeAccumulator da)"""
3817 return _IMP_kernel.Constraint_do_after_evaluate(self, da)
3819 __swig_destroy__ = _IMP_kernel.delete_Constraint
3820 __del__ =
lambda self:
None
3823 """__str__(Constraint self) -> std::string"""
3824 return _IMP_kernel.Constraint___str__(self)
3828 """__repr__(Constraint self) -> std::string"""
3829 return _IMP_kernel.Constraint___repr__(self)
3834 return _object_cast_to_Constraint(o)
3837 def get_type_name(self):
3838 return self.__class__.__name__
3839 def do_show(self, out):
3841 def get_version_info(self):
3843 return VersionInfo(self.__module__,
3844 __import__(self.__module__).get_module_version())
3847 __import__(self.__module__).get_module_version())
3850 return _object_cast_to_Constraint(o)
3852 def __disown__(self):
3854 _IMP_kernel.disown_Constraint(self)
3855 return weakref_proxy(self)
3857 def do_destroy(self):
3858 """do_destroy(Constraint self)"""
3859 return _IMP_kernel.Constraint_do_destroy(self)
3862 def do_get_inputs(self):
3863 """do_get_inputs(Constraint self) -> IMP::ModelObjectsTemp"""
3864 return _IMP_kernel.Constraint_do_get_inputs(self)
3867 def do_get_outputs(self):
3868 """do_get_outputs(Constraint self) -> IMP::ModelObjectsTemp"""
3869 return _IMP_kernel.Constraint_do_get_outputs(self)
3872 def do_get_interactions(self):
3873 """do_get_interactions(Constraint self) -> IMP::ModelObjectsTemps"""
3874 return _IMP_kernel.Constraint_do_get_interactions(self)
3876 Constraint_swigregister = _IMP_kernel.Constraint_swigregister
3877 Constraint_swigregister(Constraint)
3879 class Container(ModelObject):
3880 """Proxy of C++ IMP::Container class."""
3882 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3884 def __init__(self, *args):
3886 __init__(IMP::Container self, Model m, std::string name) -> Container
3887 __init__(IMP::Container self, Model m) -> Container
3889 if self.__class__ == Container:
3893 this = _IMP_kernel.new_Container(_self, *args)
3895 self.this.append(this)
3896 except __builtin__.Exception:
3899 if self.__class__ != Container:
3900 _director_objects.register(self)
3905 def do_get_contents_hash(self):
3906 """do_get_contents_hash(Container self) -> std::size_t"""
3907 return _IMP_kernel.Container_do_get_contents_hash(self)
3910 def get_all_possible_indexes(self):
3911 """get_all_possible_indexes(Container self) -> IMP::ParticleIndexes"""
3912 return _IMP_kernel.Container_get_all_possible_indexes(self)
3915 def get_contents_hash(self):
3916 """get_contents_hash(Container self) -> std::size_t"""
3917 return _IMP_kernel.Container_get_contents_hash(self)
3920 def do_get_outputs(self):
3921 """do_get_outputs(Container self) -> IMP::ModelObjectsTemp"""
3922 return _IMP_kernel.Container_do_get_outputs(self)
3925 def get_is_decomposable(self):
3926 """get_is_decomposable(Container self) -> bool"""
3927 return _IMP_kernel.Container_get_is_decomposable(self)
3930 def validate_readable(self):
3931 """validate_readable(Container self)"""
3932 return _IMP_kernel.Container_validate_readable(self)
3935 def validate_writable(self):
3936 """validate_writable(Container self)"""
3937 return _IMP_kernel.Container_validate_writable(self)
3940 def set_is_readable(self, tf):
3941 """set_is_readable(Container self, bool tf)"""
3942 return _IMP_kernel.Container_set_is_readable(self, tf)
3945 def set_is_writable(self, tf):
3946 """set_is_writable(Container self, bool tf)"""
3947 return _IMP_kernel.Container_set_is_writable(self, tf)
3949 __swig_destroy__ = _IMP_kernel.delete_Container
3950 __del__ =
lambda self:
None
3953 """__str__(Container self) -> std::string"""
3954 return _IMP_kernel.Container___str__(self)
3958 """__repr__(Container self) -> std::string"""
3959 return _IMP_kernel.Container___repr__(self)
3964 return _object_cast_to_Container(o)
3967 def get_type_name(self):
3968 return self.__class__.__name__
3969 def do_show(self, out):
3971 def get_version_info(self):
3973 return VersionInfo(self.__module__,
3974 __import__(self.__module__).get_module_version())
3977 __import__(self.__module__).get_module_version())
3980 return _object_cast_to_Container(o)
3982 def __disown__(self):
3984 _IMP_kernel.disown_Container(self)
3985 return weakref_proxy(self)
3987 def do_destroy(self):
3988 """do_destroy(Container self)"""
3989 return _IMP_kernel.Container_do_destroy(self)
3992 def handle_set_has_required_score_states(self, arg0):
3993 """handle_set_has_required_score_states(Container self, bool arg0)"""
3994 return _IMP_kernel.Container_handle_set_has_required_score_states(self, arg0)
3997 def do_get_inputs(self):
3998 """do_get_inputs(Container self) -> IMP::ModelObjectsTemp"""
3999 return _IMP_kernel.Container_do_get_inputs(self)
4002 def do_get_interactions(self):
4003 """do_get_interactions(Container self) -> IMP::ModelObjectsTemps"""
4004 return _IMP_kernel.Container_do_get_interactions(self)
4006 Container_swigregister = _IMP_kernel.Container_swigregister
4007 Container_swigregister(Container)
4009 class RestraintInfo(Object):
4010 """Proxy of C++ IMP::RestraintInfo class."""
4012 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4014 def __init__(self, *args):
4016 __init__(IMP::RestraintInfo self, std::string name) -> RestraintInfo
4017 __init__(IMP::RestraintInfo self) -> RestraintInfo
4019 this = _IMP_kernel.new_RestraintInfo(*args)
4021 self.this.append(this)
4022 except __builtin__.Exception:
4025 def add_int(self, key, value):
4026 """add_int(RestraintInfo self, std::string key, int value)"""
4027 return _IMP_kernel.RestraintInfo_add_int(self, key, value)
4030 def get_number_of_int(self):
4031 """get_number_of_int(RestraintInfo self) -> unsigned int"""
4032 return _IMP_kernel.RestraintInfo_get_number_of_int(self)
4035 def get_int_key(self, i):
4036 """get_int_key(RestraintInfo self, unsigned int i) -> std::string"""
4037 return _IMP_kernel.RestraintInfo_get_int_key(self, i)
4040 def get_int_value(self, i):
4041 """get_int_value(RestraintInfo self, unsigned int i) -> int"""
4042 return _IMP_kernel.RestraintInfo_get_int_value(self, i)
4045 def add_float(self, key, value):
4046 """add_float(RestraintInfo self, std::string key, double value)"""
4047 return _IMP_kernel.RestraintInfo_add_float(self, key, value)
4050 def get_number_of_float(self):
4051 """get_number_of_float(RestraintInfo self) -> unsigned int"""
4052 return _IMP_kernel.RestraintInfo_get_number_of_float(self)
4055 def get_float_key(self, i):
4056 """get_float_key(RestraintInfo self, unsigned int i) -> std::string"""
4057 return _IMP_kernel.RestraintInfo_get_float_key(self, i)
4060 def get_float_value(self, i):
4061 """get_float_value(RestraintInfo self, unsigned int i) -> double"""
4062 return _IMP_kernel.RestraintInfo_get_float_value(self, i)
4065 def add_string(self, key, value):
4066 """add_string(RestraintInfo self, std::string key, std::string value)"""
4067 return _IMP_kernel.RestraintInfo_add_string(self, key, value)
4070 def get_number_of_string(self):
4071 """get_number_of_string(RestraintInfo self) -> unsigned int"""
4072 return _IMP_kernel.RestraintInfo_get_number_of_string(self)
4075 def get_string_key(self, i):
4076 """get_string_key(RestraintInfo self, unsigned int i) -> std::string"""
4077 return _IMP_kernel.RestraintInfo_get_string_key(self, i)
4080 def get_string_value(self, i):
4081 """get_string_value(RestraintInfo self, unsigned int i) -> std::string"""
4082 return _IMP_kernel.RestraintInfo_get_string_value(self, i)
4085 def add_filename(self, key, value):
4086 """add_filename(RestraintInfo self, std::string key, std::string value)"""
4087 return _IMP_kernel.RestraintInfo_add_filename(self, key, value)
4090 def get_number_of_filename(self):
4091 """get_number_of_filename(RestraintInfo self) -> unsigned int"""
4092 return _IMP_kernel.RestraintInfo_get_number_of_filename(self)
4095 def get_filename_key(self, i):
4096 """get_filename_key(RestraintInfo self, unsigned int i) -> std::string"""
4097 return _IMP_kernel.RestraintInfo_get_filename_key(self, i)
4100 def get_filename_value(self, i):
4101 """get_filename_value(RestraintInfo self, unsigned int i) -> std::string"""
4102 return _IMP_kernel.RestraintInfo_get_filename_value(self, i)
4105 def add_floats(self, key, value):
4106 """add_floats(RestraintInfo self, std::string key, IMP::Floats value)"""
4107 return _IMP_kernel.RestraintInfo_add_floats(self, key, value)
4110 def get_number_of_floats(self):
4111 """get_number_of_floats(RestraintInfo self) -> unsigned int"""
4112 return _IMP_kernel.RestraintInfo_get_number_of_floats(self)
4115 def get_floats_key(self, i):
4116 """get_floats_key(RestraintInfo self, unsigned int i) -> std::string"""
4117 return _IMP_kernel.RestraintInfo_get_floats_key(self, i)
4120 def get_floats_value(self, i):
4121 """get_floats_value(RestraintInfo self, unsigned int i) -> IMP::Floats"""
4122 return _IMP_kernel.RestraintInfo_get_floats_value(self, i)
4125 def add_filenames(self, key, value):
4126 """add_filenames(RestraintInfo self, std::string key, IMP::Strings value)"""
4127 return _IMP_kernel.RestraintInfo_add_filenames(self, key, value)
4130 def get_number_of_filenames(self):
4131 """get_number_of_filenames(RestraintInfo self) -> unsigned int"""
4132 return _IMP_kernel.RestraintInfo_get_number_of_filenames(self)
4135 def get_filenames_key(self, i):
4136 """get_filenames_key(RestraintInfo self, unsigned int i) -> std::string"""
4137 return _IMP_kernel.RestraintInfo_get_filenames_key(self, i)
4140 def get_filenames_value(self, i):
4141 """get_filenames_value(RestraintInfo self, unsigned int i) -> IMP::Strings"""
4142 return _IMP_kernel.RestraintInfo_get_filenames_value(self, i)
4145 def get_version_info(self):
4146 """get_version_info(RestraintInfo self) -> VersionInfo"""
4147 return _IMP_kernel.RestraintInfo_get_version_info(self)
4151 """__str__(RestraintInfo self) -> std::string"""
4152 return _IMP_kernel.RestraintInfo___str__(self)
4156 """__repr__(RestraintInfo self) -> std::string"""
4157 return _IMP_kernel.RestraintInfo___repr__(self)
4162 return _object_cast_to_RestraintInfo(o)
4164 RestraintInfo_swigregister = _IMP_kernel.RestraintInfo_swigregister
4165 RestraintInfo_swigregister(RestraintInfo)
4167 class Restraint(ModelObject):
4168 """Proxy of C++ IMP::Restraint class."""
4170 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4172 def __init__(self, m, name):
4173 """__init__(IMP::Restraint self, Model m, std::string name) -> Restraint"""
4174 if self.__class__ == Restraint:
4178 this = _IMP_kernel.new_Restraint(_self, m, name)
4180 self.this.append(this)
4181 except __builtin__.Exception:
4184 if self.__class__ != Restraint:
4185 _director_objects.register(self)
4190 def get_score(self):
4191 """get_score(Restraint self) -> double"""
4192 return _IMP_kernel.Restraint_get_score(self)
4195 def evaluate(self, calc_derivs):
4196 """evaluate(Restraint self, bool calc_derivs) -> double"""
4197 return _IMP_kernel.Restraint_evaluate(self, calc_derivs)
4200 def evaluate_if_good(self, calc_derivatives):
4201 """evaluate_if_good(Restraint self, bool calc_derivatives) -> double"""
4202 return _IMP_kernel.Restraint_evaluate_if_good(self, calc_derivatives)
4205 def evaluate_if_below(self, calc_derivatives, max):
4206 """evaluate_if_below(Restraint self, bool calc_derivatives, double max) -> double"""
4207 return _IMP_kernel.Restraint_evaluate_if_below(self, calc_derivatives, max)
4210 def unprotected_evaluate(self, da):
4211 """unprotected_evaluate(Restraint self, DerivativeAccumulator da) -> double"""
4212 return _IMP_kernel.Restraint_unprotected_evaluate(self, da)
4215 def unprotected_evaluate_if_good(self, da, max):
4216 """unprotected_evaluate_if_good(Restraint self, DerivativeAccumulator da, double max) -> double"""
4217 return _IMP_kernel.Restraint_unprotected_evaluate_if_good(self, da, max)
4220 def unprotected_evaluate_if_below(self, da, max):
4221 """unprotected_evaluate_if_below(Restraint self, DerivativeAccumulator da, double max) -> double"""
4222 return _IMP_kernel.Restraint_unprotected_evaluate_if_below(self, da, max)
4225 def get_static_info(self):
4226 """get_static_info(Restraint self) -> RestraintInfo"""
4227 return _IMP_kernel.Restraint_get_static_info(self)
4230 def get_dynamic_info(self):
4231 """get_dynamic_info(Restraint self) -> RestraintInfo"""
4232 return _IMP_kernel.Restraint_get_dynamic_info(self)
4235 def add_score_and_derivatives(self, sa):
4236 """add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
4237 return _IMP_kernel.Restraint_add_score_and_derivatives(self, sa)
4241 """create_decomposition(Restraint self) -> Restraint"""
4242 return _IMP_kernel.Restraint_create_decomposition(self)
4245 def create_current_decomposition(self):
4246 """create_current_decomposition(Restraint self) -> Restraint"""
4247 return _IMP_kernel.Restraint_create_current_decomposition(self)
4250 def set_weight(self, weight):
4251 """set_weight(Restraint self, IMP::Float weight)"""
4252 return _IMP_kernel.Restraint_set_weight(self, weight)
4255 def get_weight(self):
4256 """get_weight(Restraint self) -> IMP::Float"""
4257 return _IMP_kernel.Restraint_get_weight(self)
4260 def get_maximum_score(self):
4261 """get_maximum_score(Restraint self) -> double"""
4262 return _IMP_kernel.Restraint_get_maximum_score(self)
4265 def set_maximum_score(self, s):
4266 """set_maximum_score(Restraint self, double s)"""
4267 return _IMP_kernel.Restraint_set_maximum_score(self, s)
4272 create_scoring_function(Restraint self, double weight=1.0, double max) -> ScoringFunction
4273 create_scoring_function(Restraint self, double weight=1.0) -> ScoringFunction
4274 create_scoring_function(Restraint self) -> ScoringFunction
4276 return _IMP_kernel.Restraint_create_scoring_function(self, *args)
4279 def set_last_score(self, s):
4280 """set_last_score(Restraint self, double s)"""
4281 return _IMP_kernel.Restraint_set_last_score(self, s)
4284 def get_last_score(self):
4285 """get_last_score(Restraint self) -> double"""
4286 return _IMP_kernel.Restraint_get_last_score(self)
4289 def get_was_good(self):
4290 """get_was_good(Restraint self) -> bool"""
4291 return _IMP_kernel.Restraint_get_was_good(self)
4293 __swig_destroy__ = _IMP_kernel.delete_Restraint
4294 __del__ =
lambda self:
None
4296 def do_create_decomposition(self):
4297 """do_create_decomposition(Restraint self) -> IMP::Restraints"""
4298 return _IMP_kernel.Restraint_do_create_decomposition(self)
4301 def do_create_current_decomposition(self):
4302 """do_create_current_decomposition(Restraint self) -> IMP::Restraints"""
4303 return _IMP_kernel.Restraint_do_create_current_decomposition(self)
4306 def do_add_score_and_derivatives(self, sa):
4307 """do_add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
4308 return _IMP_kernel.Restraint_do_add_score_and_derivatives(self, sa)
4311 def do_get_outputs(self):
4312 """do_get_outputs(Restraint self) -> IMP::ModelObjectsTemp"""
4313 return _IMP_kernel.Restraint_do_get_outputs(self)
4317 """__str__(Restraint self) -> std::string"""
4318 return _IMP_kernel.Restraint___str__(self)
4322 """__repr__(Restraint self) -> std::string"""
4323 return _IMP_kernel.Restraint___repr__(self)
4328 return _object_cast_to_Restraint(o)
4331 def get_type_name(self):
4332 return self.__class__.__name__
4333 def do_show(self, out):
4335 def get_version_info(self):
4337 return VersionInfo(self.__module__,
4338 __import__(self.__module__).get_module_version())
4341 __import__(self.__module__).get_module_version())
4344 return _object_cast_to_Restraint(o)
4346 def __disown__(self):
4348 _IMP_kernel.disown_Restraint(self)
4349 return weakref_proxy(self)
4351 def do_destroy(self):
4352 """do_destroy(Restraint self)"""
4353 return _IMP_kernel.Restraint_do_destroy(self)
4356 def handle_set_has_required_score_states(self, arg0):
4357 """handle_set_has_required_score_states(Restraint self, bool arg0)"""
4358 return _IMP_kernel.Restraint_handle_set_has_required_score_states(self, arg0)
4361 def do_get_inputs(self):
4362 """do_get_inputs(Restraint self) -> IMP::ModelObjectsTemp"""
4363 return _IMP_kernel.Restraint_do_get_inputs(self)
4366 def do_get_interactions(self):
4367 """do_get_interactions(Restraint self) -> IMP::ModelObjectsTemps"""
4368 return _IMP_kernel.Restraint_do_get_interactions(self)
4370 Restraint_swigregister = _IMP_kernel.Restraint_swigregister
4371 Restraint_swigregister(Restraint)
4373 class _RestraintsAdaptor(_InputAdaptor):
4374 """Proxy of C++ IMP::RestraintsAdaptor class."""
4376 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4377 __repr__ = _swig_repr
4379 def __init__(self, *args):
4381 __init__(IMP::RestraintsAdaptor self) -> _RestraintsAdaptor
4382 __init__(IMP::RestraintsAdaptor self, IMP::Restraints const & sf) -> _RestraintsAdaptor
4383 __init__(IMP::RestraintsAdaptor self, IMP::RestraintsTemp const & sf) -> _RestraintsAdaptor
4384 __init__(IMP::RestraintsAdaptor self, Restraint sf) -> _RestraintsAdaptor
4386 this = _IMP_kernel.new__RestraintsAdaptor(*args)
4388 self.this.append(this)
4389 except __builtin__.Exception:
4391 __swig_destroy__ = _IMP_kernel.delete__RestraintsAdaptor
4392 __del__ =
lambda self:
None
4393 _RestraintsAdaptor_swigregister = _IMP_kernel._RestraintsAdaptor_swigregister
4394 _RestraintsAdaptor_swigregister(_RestraintsAdaptor)
4396 class RestraintSet(Restraint):
4397 """Proxy of C++ IMP::RestraintSet class."""
4399 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4401 def __init__(self, *args):
4403 __init__(IMP::RestraintSet self, Model m, double weight, std::string const & name) -> RestraintSet
4404 __init__(IMP::RestraintSet self, Model m, double weight) -> RestraintSet
4405 __init__(IMP::RestraintSet self, Model m, std::string const & name) -> RestraintSet
4406 __init__(IMP::RestraintSet self, Model m) -> RestraintSet
4407 __init__(IMP::RestraintSet self, IMP::RestraintsTemp const & rs, double weight, std::string const & name) -> RestraintSet
4408 __init__(IMP::RestraintSet self, IMP::RestraintsTemp const & rs, double weight) -> RestraintSet
4410 this = _IMP_kernel.new_RestraintSet(*args)
4412 self.this.append(this)
4413 except __builtin__.Exception:
4416 def get_version_info(self):
4417 """get_version_info(RestraintSet self) -> VersionInfo"""
4418 return _IMP_kernel.RestraintSet_get_version_info(self)
4421 def remove_restraint(self, d):
4422 """remove_restraint(RestraintSet self, Restraint d)"""
4423 return _IMP_kernel.RestraintSet_remove_restraint(self, d)
4426 def remove_restraints(self, d):
4427 """remove_restraints(RestraintSet self, IMP::Restraints const & d)"""
4428 return _IMP_kernel.RestraintSet_remove_restraints(self, d)
4431 def set_restraints(self, ps):
4432 """set_restraints(RestraintSet self, IMP::Restraints const & ps)"""
4433 return _IMP_kernel.RestraintSet_set_restraints(self, ps)
4436 def set_restraints_order(self, objs):
4437 """set_restraints_order(RestraintSet self, IMP::Restraints const & objs)"""
4438 return _IMP_kernel.RestraintSet_set_restraints_order(self, objs)
4442 """add_restraint(RestraintSet self, Restraint obj) -> unsigned int"""
4443 return _IMP_kernel.RestraintSet_add_restraint(self, obj)
4447 """add_restraints(RestraintSet self, IMP::Restraints const & objs)"""
4448 return _IMP_kernel.RestraintSet_add_restraints(self, objs)
4451 def clear_restraints(self):
4452 """clear_restraints(RestraintSet self)"""
4453 return _IMP_kernel.RestraintSet_clear_restraints(self)
4456 def get_number_of_restraints(self):
4457 """get_number_of_restraints(RestraintSet self) -> unsigned int"""
4458 return _IMP_kernel.RestraintSet_get_number_of_restraints(self)
4461 def get_has_restraints(self):
4462 """get_has_restraints(RestraintSet self) -> bool"""
4463 return _IMP_kernel.RestraintSet_get_has_restraints(self)
4466 def get_restraint(self, i):
4467 """get_restraint(RestraintSet self, unsigned int i) -> Restraint"""
4468 return _IMP_kernel.RestraintSet_get_restraint(self, i)
4471 def get_restraints(self):
4472 """get_restraints(RestraintSet self) -> IMP::Restraints"""
4473 return _IMP_kernel.RestraintSet_get_restraints(self)
4476 def reserve_restraints(self, sz):
4477 """reserve_restraints(RestraintSet self, unsigned int sz)"""
4478 return _IMP_kernel.RestraintSet_reserve_restraints(self, sz)
4481 def get_non_sets_and_sets(self):
4482 """get_non_sets_and_sets(RestraintSet self) -> std::pair< IMP::RestraintsTemp,IMP::RestraintSetsTemp >"""
4483 return _IMP_kernel.RestraintSet_get_non_sets_and_sets(self)
4486 def do_get_inputs(self):
4487 """do_get_inputs(RestraintSet self) -> IMP::ModelObjectsTemp"""
4488 return _IMP_kernel.RestraintSet_do_get_inputs(self)
4493 create_scoring_function(RestraintSet self, double weight=1.0, double max) -> ScoringFunction
4494 create_scoring_function(RestraintSet self, double weight=1.0) -> ScoringFunction
4495 create_scoring_function(RestraintSet self) -> ScoringFunction
4497 return _IMP_kernel.RestraintSet_create_scoring_function(self, *args)
4501 """__str__(RestraintSet self) -> std::string"""
4502 return _IMP_kernel.RestraintSet___str__(self)
4506 """__repr__(RestraintSet self) -> std::string"""
4507 return _IMP_kernel.RestraintSet___repr__(self)
4512 return _object_cast_to_RestraintSet(o)
4514 RestraintSet_swigregister = _IMP_kernel.RestraintSet_swigregister
4515 RestraintSet_swigregister(RestraintSet)
4518 def get_restraints(rs):
4519 """get_restraints(IMP::RestraintsTemp const & rs) -> IMP::RestraintsTemp"""
4520 return _IMP_kernel.get_restraints(rs)
4522 def _check_particle(p, a):
4523 if (
not p.get_is_active()):
4524 raise ValueError(
"Inactive Particle")
4525 if (type(a)() == a):
4526 raise IndexError(
"Cannot use default Index")
4527 if (
not p.has_attribute(a)):
4528 raise IndexError(
"Particle does not have attribute")
4530 class Particle(ModelObject):
4531 """Proxy of C++ IMP::Particle class."""
4533 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4535 def get_version_info(self):
4536 """get_version_info(Particle self) -> VersionInfo"""
4537 return _IMP_kernel.Particle_get_version_info(self)
4540 def __init__(self, *args):
4542 __init__(IMP::Particle self, Model m, std::string name) -> Particle
4543 __init__(IMP::Particle self, Model m) -> Particle
4545 this = _IMP_kernel.new_Particle(*args)
4547 self.this.append(this)
4548 except __builtin__.Exception:
4551 def get_float_keys(self):
4552 """get_float_keys(Particle self) -> IMP::FloatKeys"""
4553 return _IMP_kernel.Particle_get_float_keys(self)
4556 def get_int_keys(self):
4557 """get_int_keys(Particle self) -> IMP::IntKeys"""
4558 return _IMP_kernel.Particle_get_int_keys(self)
4561 def get_string_keys(self):
4562 """get_string_keys(Particle self) -> IMP::StringKeys"""
4563 return _IMP_kernel.Particle_get_string_keys(self)
4566 def get_object_keys(self):
4567 """get_object_keys(Particle self) -> IMP::ObjectKeys"""
4568 return _IMP_kernel.Particle_get_object_keys(self)
4571 def add_cache_attribute(self, *args):
4573 add_cache_attribute(Particle self, FloatKey name, IMP::Float value)
4574 add_cache_attribute(Particle self, IntKey name, IMP::Int value)
4575 add_cache_attribute(Particle self, StringKey name, IMP::String value)
4576 add_cache_attribute(Particle self, ObjectKey name, Object value)
4577 add_cache_attribute(Particle self, IMP::WeakObjectKey name, Object value)
4579 return _IMP_kernel.Particle_add_cache_attribute(self, *args)
4582 def get_weak_object_keys(self):
4583 """get_weak_object_keys(Particle self) -> IMP::WeakObjectKeys"""
4584 return _IMP_kernel.Particle_get_weak_object_keys(self)
4587 def add_to_derivative(self, key, value, da):
4588 """add_to_derivative(Particle self, FloatKey key, IMP::Float value, DerivativeAccumulator da)"""
4589 return _IMP_kernel.Particle_add_to_derivative(self, key, value, da)
4592 def set_is_optimized(self, k, tf):
4593 """set_is_optimized(Particle self, FloatKey k, bool tf)"""
4594 return _IMP_kernel.Particle_set_is_optimized(self, k, tf)
4597 def get_is_optimized(self, k):
4598 """get_is_optimized(Particle self, FloatKey k) -> bool"""
4599 return _IMP_kernel.Particle_get_is_optimized(self, k)
4602 def get_derivative(self, k):
4603 """get_derivative(Particle self, FloatKey k) -> IMP::Float"""
4604 return _IMP_kernel.Particle_get_derivative(self, k)
4607 def add_attribute(self, *args):
4609 add_attribute(Particle self, FloatKey name, IMP::Float initial_value)
4610 add_attribute(Particle self, IntKey name, IMP::Int initial_value)
4611 add_attribute(Particle self, StringKey name, IMP::String initial_value)
4612 add_attribute(Particle self, ObjectKey name, Object initial_value)
4613 add_attribute(Particle self, IMP::WeakObjectKey name, Object initial_value)
4614 add_attribute(Particle self, FloatKey name, IMP::Float const initial_value, bool optimized)
4615 add_attribute(Particle self, ParticleIndexKey k, Particle v)
4617 return _IMP_kernel.Particle_add_attribute(self, *args)
4620 def has_attribute(self, *args):
4622 has_attribute(Particle self, FloatKey name) -> bool
4623 has_attribute(Particle self, IntKey name) -> bool
4624 has_attribute(Particle self, StringKey name) -> bool
4625 has_attribute(Particle self, ObjectKey name) -> bool
4626 has_attribute(Particle self, IMP::WeakObjectKey name) -> bool
4627 has_attribute(Particle self, ParticleIndexKey k) -> bool
4629 return _IMP_kernel.Particle_has_attribute(self, *args)
4632 def set_value(self, *args):
4634 set_value(Particle self, FloatKey name, IMP::Float value)
4635 set_value(Particle self, IntKey name, IMP::Int value)
4636 set_value(Particle self, StringKey name, IMP::String value)
4637 set_value(Particle self, ObjectKey name, Object value)
4638 set_value(Particle self, IMP::WeakObjectKey name, Object value)
4639 set_value(Particle self, ParticleIndexKey k, Particle v)
4641 return _IMP_kernel.Particle_set_value(self, *args)
4644 def get_value(self, *args):
4646 get_value(Particle self, FloatKey name) -> IMP::Float
4647 get_value(Particle self, IntKey name) -> IMP::Int
4648 get_value(Particle self, StringKey name) -> IMP::String
4649 get_value(Particle self, ObjectKey name) -> Object
4650 get_value(Particle self, IMP::WeakObjectKey name) -> Object
4651 get_value(Particle self, ParticleIndexKey k) -> Particle
4653 return _IMP_kernel.Particle_get_value(self, *args)
4656 def remove_attribute(self, *args):
4658 remove_attribute(Particle self, FloatKey name)
4659 remove_attribute(Particle self, IntKey name)
4660 remove_attribute(Particle self, StringKey name)
4661 remove_attribute(Particle self, ObjectKey name)
4662 remove_attribute(Particle self, IMP::WeakObjectKey name)
4663 remove_attribute(Particle self, ParticleIndexKey k)
4665 return _IMP_kernel.Particle_remove_attribute(self, *args)
4668 def get_particle_keys(self):
4669 """get_particle_keys(Particle self) -> IMP::ParticleIndexKeys"""
4670 return _IMP_kernel.Particle_get_particle_keys(self)
4673 def show(self, *args):
4675 show(Particle self, _ostream out)
4678 return _IMP_kernel.Particle_show(self, *args)
4681 def get_is_active(self):
4682 """get_is_active(Particle self) -> bool"""
4683 return _IMP_kernel.Particle_get_is_active(self)
4687 """get_index(Particle self) -> ParticleIndex"""
4688 return _IMP_kernel.Particle_get_index(self)
4691 def __eq__(self, *args):
4693 __eq__(Particle self, Particle o) -> bool
4694 __eq__(Particle self, Decorator d) -> bool
4696 return _IMP_kernel.Particle___eq__(self, *args)
4699 def __ne__(self, *args):
4701 __ne__(Particle self, Particle o) -> bool
4702 __ne__(Particle self, Decorator d) -> bool
4704 return _IMP_kernel.Particle___ne__(self, *args)
4707 def __le__(self, *args):
4709 __le__(Particle self, Particle o) -> bool
4710 __le__(Particle self, Decorator d) -> bool
4712 return _IMP_kernel.Particle___le__(self, *args)
4715 def __lt__(self, *args):
4717 __lt__(Particle self, Particle o) -> bool
4718 __lt__(Particle self, Decorator d) -> bool
4720 return _IMP_kernel.Particle___lt__(self, *args)
4723 def __ge__(self, *args):
4725 __ge__(Particle self, Particle o) -> bool
4726 __ge__(Particle self, Decorator d) -> bool
4728 return _IMP_kernel.Particle___ge__(self, *args)
4731 def __gt__(self, *args):
4733 __gt__(Particle self, Particle o) -> bool
4734 __gt__(Particle self, Decorator d) -> bool
4736 return _IMP_kernel.Particle___gt__(self, *args)
4739 __hash__ = ModelObject.__hash__
4743 """__str__(Particle self) -> std::string"""
4744 return _IMP_kernel.Particle___str__(self)
4748 """__repr__(Particle self) -> std::string"""
4749 return _IMP_kernel.Particle___repr__(self)
4754 return _object_cast_to_Particle(o)
4756 Particle_swigregister = _IMP_kernel.Particle_swigregister
4757 Particle_swigregister(Particle)
4759 class _ParticleAdaptor(_InputAdaptor):
4760 """Proxy of C++ IMP::ParticleAdaptor class."""
4762 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4763 __repr__ = _swig_repr
4765 def __init__(self, *args):
4767 __init__(IMP::ParticleAdaptor self) -> _ParticleAdaptor
4768 __init__(IMP::ParticleAdaptor self, Particle p) -> _ParticleAdaptor
4769 __init__(IMP::ParticleAdaptor self, Decorator d) -> _ParticleAdaptor
4771 this = _IMP_kernel.new__ParticleAdaptor(*args)
4773 self.this.append(this)
4774 except __builtin__.Exception:
4777 def get_model(self):
4778 """get_model(_ParticleAdaptor self) -> Model"""
4779 return _IMP_kernel._ParticleAdaptor_get_model(self)
4782 def get_particle_index(self):
4783 """get_particle_index(_ParticleAdaptor self) -> ParticleIndex"""
4784 return _IMP_kernel._ParticleAdaptor_get_particle_index(self)
4786 __swig_destroy__ = _IMP_kernel.delete__ParticleAdaptor
4787 __del__ =
lambda self:
None
4788 _ParticleAdaptor_swigregister = _IMP_kernel._ParticleAdaptor_swigregister
4789 _ParticleAdaptor_swigregister(_ParticleAdaptor)
4791 class _DependencyGraphVertexIndex(object):
4792 """Proxy of C++ IMP::DependencyGraphVertexIndex class."""
4794 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4795 __repr__ = _swig_repr
4798 """__init__(IMP::DependencyGraphVertexIndex self) -> _DependencyGraphVertexIndex"""
4799 this = _IMP_kernel.new__DependencyGraphVertexIndex()
4801 self.this.append(this)
4802 except __builtin__.Exception:
4804 __swig_destroy__ = _IMP_kernel.delete__DependencyGraphVertexIndex
4805 __del__ =
lambda self:
None
4806 _DependencyGraphVertexIndex_swigregister = _IMP_kernel._DependencyGraphVertexIndex_swigregister
4807 _DependencyGraphVertexIndex_swigregister(_DependencyGraphVertexIndex)
4810 def show_as_graphviz(name, out):
4811 """show_as_graphviz(IMP::DependencyGraph const & name, TextOutput out)"""
4812 return _IMP_kernel.show_as_graphviz(name, out)
4814 def get_vertex_index(g):
4815 """get_vertex_index(IMP::DependencyGraph const & g) -> _DependencyGraphVertexIndex"""
4816 return _IMP_kernel.get_vertex_index(g)
4819 """get_dependency_graph(Model m) -> IMP::DependencyGraph"""
4820 return _IMP_kernel.get_dependency_graph(m)
4823 """get_pruned_dependency_graph(Model m) -> IMP::DependencyGraph"""
4824 return _IMP_kernel.get_pruned_dependency_graph(m)
4828 get_required_score_states(IMP::ModelObjectsTemp const & mos, IMP::ScoreStatesTemp exclude) -> IMP::ScoreStatesTemp
4829 get_required_score_states(IMP::ModelObjectsTemp const & mos) -> IMP::ScoreStatesTemp
4830 get_required_score_states(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ScoreStatesTemp
4832 return _IMP_kernel.get_required_score_states(*args)
4835 """get_dependent_particles(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ParticlesTemp"""
4836 return _IMP_kernel.get_dependent_particles(p, all, dg, index)
4838 def get_dependent_restraints(m, pi):
4839 """get_dependent_restraints(Model m, ParticleIndex pi) -> IMP::RestraintsTemp"""
4840 return _IMP_kernel.get_dependent_restraints(m, pi)
4841 class ScoringFunction(ModelObject):
4842 """Proxy of C++ IMP::ScoringFunction class."""
4844 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4846 def do_add_score_and_derivatives(self, sa, ss):
4847 """do_add_score_and_derivatives(ScoringFunction self, ScoreAccumulator sa, IMP::ScoreStatesTemp const & ss)"""
4848 return _IMP_kernel.ScoringFunction_do_add_score_and_derivatives(self, sa, ss)
4851 def get_score_accumulator_if_below(self, deriv, max):
4852 """get_score_accumulator_if_below(ScoringFunction self, bool deriv, double max) -> ScoreAccumulator"""
4853 return _IMP_kernel.ScoringFunction_get_score_accumulator_if_below(self, deriv, max)
4856 def get_score_accumulator_if_good(self, deriv):
4857 """get_score_accumulator_if_good(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
4858 return _IMP_kernel.ScoringFunction_get_score_accumulator_if_good(self, deriv)
4861 def get_score_accumulator(self, deriv):
4862 """get_score_accumulator(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
4863 return _IMP_kernel.ScoringFunction_get_score_accumulator(self, deriv)
4866 def __init__(self, m, name):
4867 """__init__(IMP::ScoringFunction self, Model m, std::string name) -> ScoringFunction"""
4868 if self.__class__ == ScoringFunction:
4872 this = _IMP_kernel.new_ScoringFunction(_self, m, name)
4874 self.this.append(this)
4875 except __builtin__.Exception:
4878 if self.__class__ != ScoringFunction:
4879 _director_objects.register(self)
4884 def do_get_outputs(self):
4885 """do_get_outputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
4886 return _IMP_kernel.ScoringFunction_do_get_outputs(self)
4889 def evaluate_if_good(self, derivatives):
4890 """evaluate_if_good(ScoringFunction self, bool derivatives) -> double"""
4891 return _IMP_kernel.ScoringFunction_evaluate_if_good(self, derivatives)
4894 def evaluate(self, derivatives):
4895 """evaluate(ScoringFunction self, bool derivatives) -> double"""
4896 return _IMP_kernel.ScoringFunction_evaluate(self, derivatives)
4899 def evaluate_if_below(self, derivatives, max):
4900 """evaluate_if_below(ScoringFunction self, bool derivatives, double max) -> double"""
4901 return _IMP_kernel.ScoringFunction_evaluate_if_below(self, derivatives, max)
4904 def get_had_good_score(self):
4905 """get_had_good_score(ScoringFunction self) -> bool"""
4906 return _IMP_kernel.ScoringFunction_get_had_good_score(self)
4909 def get_last_score(self):
4910 """get_last_score(ScoringFunction self) -> double"""
4911 return _IMP_kernel.ScoringFunction_get_last_score(self)
4915 """create_restraints(ScoringFunction self) -> IMP::Restraints"""
4916 return _IMP_kernel.ScoringFunction_create_restraints(self)
4920 """__str__(ScoringFunction self) -> std::string"""
4921 return _IMP_kernel.ScoringFunction___str__(self)
4925 """__repr__(ScoringFunction self) -> std::string"""
4926 return _IMP_kernel.ScoringFunction___repr__(self)
4931 return _object_cast_to_ScoringFunction(o)
4934 def get_type_name(self):
4935 return self.__class__.__name__
4936 def do_show(self, out):
4938 def get_version_info(self):
4940 return VersionInfo(self.__module__,
4941 __import__(self.__module__).get_module_version())
4944 __import__(self.__module__).get_module_version())
4947 return _object_cast_to_ScoringFunction(o)
4949 __swig_destroy__ = _IMP_kernel.delete_ScoringFunction
4950 __del__ =
lambda self:
None
4951 def __disown__(self):
4953 _IMP_kernel.disown_ScoringFunction(self)
4954 return weakref_proxy(self)
4956 def do_destroy(self):
4957 """do_destroy(ScoringFunction self)"""
4958 return _IMP_kernel.ScoringFunction_do_destroy(self)
4961 def handle_set_has_required_score_states(self, arg0):
4962 """handle_set_has_required_score_states(ScoringFunction self, bool arg0)"""
4963 return _IMP_kernel.ScoringFunction_handle_set_has_required_score_states(self, arg0)
4966 def do_get_inputs(self):
4967 """do_get_inputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
4968 return _IMP_kernel.ScoringFunction_do_get_inputs(self)
4971 def do_get_interactions(self):
4972 """do_get_interactions(ScoringFunction self) -> IMP::ModelObjectsTemps"""
4973 return _IMP_kernel.ScoringFunction_do_get_interactions(self)
4975 ScoringFunction_swigregister = _IMP_kernel.ScoringFunction_swigregister
4976 ScoringFunction_swigregister(ScoringFunction)
4981 create_decomposition(IMP::RestraintsTemp const & rs) -> IMP::Restraints
4982 create_decomposition(ScoringFunction sf) -> IMP::ScoringFunctions
4984 return _IMP_kernel.create_decomposition(*args)
4985 class _ScoringFunctionAdaptor(_InputAdaptor):
4986 """Proxy of C++ IMP::ScoringFunctionAdaptor class."""
4988 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4989 __repr__ = _swig_repr
4991 def __init__(self, *args):
4993 __init__(IMP::ScoringFunctionAdaptor self) -> _ScoringFunctionAdaptor
4994 __init__(IMP::ScoringFunctionAdaptor self, ScoringFunction sf) -> _ScoringFunctionAdaptor
4995 __init__(IMP::ScoringFunctionAdaptor self, IMP::RestraintsTemp const & sf) -> _ScoringFunctionAdaptor
4996 __init__(IMP::ScoringFunctionAdaptor self, IMP::Restraints const & sf) -> _ScoringFunctionAdaptor
4997 __init__(IMP::ScoringFunctionAdaptor self, Restraint sf) -> _ScoringFunctionAdaptor
4999 this = _IMP_kernel.new__ScoringFunctionAdaptor(*args)
5001 self.this.append(this)
5002 except __builtin__.Exception:
5004 __swig_destroy__ = _IMP_kernel.delete__ScoringFunctionAdaptor
5005 __del__ =
lambda self:
None
5006 _ScoringFunctionAdaptor_swigregister = _IMP_kernel._ScoringFunctionAdaptor_swigregister
5007 _ScoringFunctionAdaptor_swigregister(_ScoringFunctionAdaptor)
5012 show_restraint_hierarchy(_ScoringFunctionAdaptor rs, _ostream out)
5013 show_restraint_hierarchy(_ScoringFunctionAdaptor rs)
5015 return _IMP_kernel.show_restraint_hierarchy(*args)
5016 class Undecorator(Object):
5017 """Proxy of C++ IMP::Undecorator class."""
5019 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5021 def __init__(self, m, name):
5022 """__init__(IMP::Undecorator self, Model m, std::string name) -> Undecorator"""
5023 if self.__class__ == Undecorator:
5027 this = _IMP_kernel.new_Undecorator(_self, m, name)
5029 self.this.append(this)
5030 except __builtin__.Exception:
5033 if self.__class__ != Undecorator:
5034 _director_objects.register(self)
5039 def teardown(self, pi):
5040 """teardown(Undecorator self, ParticleIndex pi)"""
5041 return _IMP_kernel.Undecorator_teardown(self, pi)
5045 """__str__(Undecorator self) -> std::string"""
5046 return _IMP_kernel.Undecorator___str__(self)
5050 """__repr__(Undecorator self) -> std::string"""
5051 return _IMP_kernel.Undecorator___repr__(self)
5056 return _object_cast_to_Undecorator(o)
5059 def get_type_name(self):
5060 return self.__class__.__name__
5061 def do_show(self, out):
5063 def get_version_info(self):
5065 return VersionInfo(self.__module__,
5066 __import__(self.__module__).get_module_version())
5069 __import__(self.__module__).get_module_version())
5072 return _object_cast_to_Undecorator(o)
5074 __swig_destroy__ = _IMP_kernel.delete_Undecorator
5075 __del__ =
lambda self:
None
5076 def __disown__(self):
5078 _IMP_kernel.disown_Undecorator(self)
5079 return weakref_proxy(self)
5081 def do_destroy(self):
5082 """do_destroy(Undecorator self)"""
5083 return _IMP_kernel.Undecorator_do_destroy(self)
5085 Undecorator_swigregister = _IMP_kernel.Undecorator_swigregister
5086 Undecorator_swigregister(Undecorator)
5088 class Model(Object):
5089 """Proxy of C++ IMP::Model class."""
5091 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5093 def __init__(self, *args):
5095 __init__(IMP::Model self, std::string name) -> Model
5096 __init__(IMP::Model self) -> Model
5098 this = _IMP_kernel.new_Model(*args)
5100 self.this.append(this)
5101 except __builtin__.Exception:
5104 def clear_particle_caches(self, pi):
5105 """clear_particle_caches(Model self, ParticleIndex pi)"""
5106 return _IMP_kernel.Model_clear_particle_caches(self, pi)
5110 """add_particle(Model self, std::string name) -> ParticleIndex"""
5111 return _IMP_kernel.Model_add_particle(self, name)
5114 def get_particle_name(self, pi):
5115 """get_particle_name(Model self, ParticleIndex pi) -> std::string"""
5116 return _IMP_kernel.Model_get_particle_name(self, pi)
5119 def add_undecorator(self, pi, d):
5120 """add_undecorator(Model self, ParticleIndex pi, Undecorator d)"""
5121 return _IMP_kernel.Model_add_undecorator(self, pi, d)
5124 def remove_score_state(self, d):
5125 """remove_score_state(Model self, ScoreState d)"""
5126 return _IMP_kernel.Model_remove_score_state(self, d)
5129 def remove_score_states(self, d):
5130 """remove_score_states(Model self, IMP::ScoreStates const & d)"""
5131 return _IMP_kernel.Model_remove_score_states(self, d)
5134 def set_score_states(self, ps):
5135 """set_score_states(Model self, IMP::ScoreStates const & ps)"""
5136 return _IMP_kernel.Model_set_score_states(self, ps)
5139 def set_score_states_order(self, objs):
5140 """set_score_states_order(Model self, IMP::ScoreStates const & objs)"""
5141 return _IMP_kernel.Model_set_score_states_order(self, objs)
5144 def add_score_state(self, obj):
5145 """add_score_state(Model self, ScoreState obj) -> unsigned int"""
5146 return _IMP_kernel.Model_add_score_state(self, obj)
5149 def add_score_states(self, objs):
5150 """add_score_states(Model self, IMP::ScoreStates const & objs)"""
5151 return _IMP_kernel.Model_add_score_states(self, objs)
5154 def clear_score_states(self):
5155 """clear_score_states(Model self)"""
5156 return _IMP_kernel.Model_clear_score_states(self)
5159 def get_number_of_score_states(self):
5160 """get_number_of_score_states(Model self) -> unsigned int"""
5161 return _IMP_kernel.Model_get_number_of_score_states(self)
5164 def get_has_score_states(self):
5165 """get_has_score_states(Model self) -> bool"""
5166 return _IMP_kernel.Model_get_has_score_states(self)
5169 def get_score_state(self, i):
5170 """get_score_state(Model self, unsigned int i) -> ScoreState"""
5171 return _IMP_kernel.Model_get_score_state(self, i)
5174 def get_score_states(self):
5175 """get_score_states(Model self) -> IMP::ScoreStates"""
5176 return _IMP_kernel.Model_get_score_states(self)
5179 def reserve_score_states(self, sz):
5180 """reserve_score_states(Model self, unsigned int sz)"""
5181 return _IMP_kernel.Model_reserve_score_states(self, sz)
5185 """update(Model self)"""
5186 return _IMP_kernel.Model_update(self)
5189 def add_attribute(self, *args):
5191 add_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5192 add_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
5193 add_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
5194 add_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
5195 add_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
5196 add_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5197 add_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
5198 add_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5200 return _IMP_kernel.Model_add_attribute(self, *args)
5203 def remove_attribute(self, *args):
5205 remove_attribute(Model self, FloatKey attribute_key, ParticleIndex particle)
5206 remove_attribute(Model self, IntKey attribute_key, ParticleIndex particle)
5207 remove_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle)
5208 remove_attribute(Model self, StringKey attribute_key, ParticleIndex particle)
5209 remove_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle)
5210 remove_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle)
5211 remove_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle)
5212 remove_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle)
5214 return _IMP_kernel.Model_remove_attribute(self, *args)
5217 def get_has_attribute(self, *args):
5219 get_has_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> bool
5220 get_has_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> bool
5221 get_has_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle) -> bool
5222 get_has_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> bool
5223 get_has_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> bool
5224 get_has_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> bool
5225 get_has_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> bool
5226 get_has_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> bool
5228 return _IMP_kernel.Model_get_has_attribute(self, *args)
5231 def set_attribute(self, *args):
5233 set_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5234 set_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
5235 set_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
5236 set_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
5237 set_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
5238 set_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5239 set_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
5240 set_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5242 return _IMP_kernel.Model_set_attribute(self, *args)
5245 def get_attribute(self, *args):
5247 get_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> IMP::Float
5248 get_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> IMP::Int
5249 get_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle) -> IMP::Ints
5250 get_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> IMP::String
5251 get_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> IMP::ParticleIndexes
5252 get_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> ParticleIndex
5253 get_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> Object
5254 get_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> Object
5256 return _IMP_kernel.Model_get_attribute(self, *args)
5259 def add_cache_attribute(self, *args):
5261 add_cache_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5262 add_cache_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
5263 add_cache_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
5264 add_cache_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
5265 add_cache_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
5266 add_cache_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5267 add_cache_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
5268 add_cache_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5270 return _IMP_kernel.Model_add_cache_attribute(self, *args)
5273 def set_is_optimized(self, arg2, arg3, arg4):
5274 """set_is_optimized(Model self, FloatKey arg2, ParticleIndex arg3, bool arg4)"""
5275 return _IMP_kernel.Model_set_is_optimized(self, arg2, arg3, arg4)
5278 def add_to_derivative(self, k, particle, v, da):
5279 """add_to_derivative(Model self, FloatKey k, ParticleIndex particle, double v, DerivativeAccumulator da)"""
5280 return _IMP_kernel.Model_add_to_derivative(self, k, particle, v, da)
5283 def get_particle(self, p):
5284 """get_particle(Model self, ParticleIndex p) -> Particle"""
5285 return _IMP_kernel.Model_get_particle(self, p)
5288 def get_has_particle(self, p):
5289 """get_has_particle(Model self, ParticleIndex p) -> bool"""
5290 return _IMP_kernel.Model_get_has_particle(self, p)
5294 """get_particle_indexes(Model self) -> IMP::ParticleIndexes"""
5295 return _IMP_kernel.Model_get_particle_indexes(self)
5298 def get_model_objects(self):
5299 """get_model_objects(Model self) -> IMP::ModelObjectsTemp"""
5300 return _IMP_kernel.Model_get_model_objects(self)
5303 def remove_particle(self, pi):
5304 """remove_particle(Model self, ParticleIndex pi)"""
5305 return _IMP_kernel.Model_remove_particle(self, pi)
5308 def add_data(self, mk, o):
5309 """add_data(Model self, ModelKey mk, Object o)"""
5310 return _IMP_kernel.Model_add_data(self, mk, o)
5313 def get_data(self, mk):
5314 """get_data(Model self, ModelKey mk) -> Object"""
5315 return _IMP_kernel.Model_get_data(self, mk)
5318 def remove_data(self, mk):
5319 """remove_data(Model self, ModelKey mk)"""
5320 return _IMP_kernel.Model_remove_data(self, mk)
5323 def get_has_data(self, mk):
5324 """get_has_data(Model self, ModelKey mk) -> bool"""
5325 return _IMP_kernel.Model_get_has_data(self, mk)
5328 def get_version_info(self):
5329 """get_version_info(Model self) -> VersionInfo"""
5330 return _IMP_kernel.Model_get_version_info(self)
5333 def do_destroy(self):
5334 """do_destroy(Model self)"""
5335 return _IMP_kernel.Model_do_destroy(self)
5339 """__str__(Model self) -> std::string"""
5340 return _IMP_kernel.Model___str__(self)
5344 """__repr__(Model self) -> std::string"""
5345 return _IMP_kernel.Model___repr__(self)
5350 return _object_cast_to_Model(o)
5352 Model_swigregister = _IMP_kernel.Model_swigregister
5353 Model_swigregister(Model)
5355 class Decorator(_Value):
5356 """Proxy of C++ IMP::Decorator class."""
5358 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5359 __repr__ = _swig_repr
5361 def __init__(self, p):
5362 """__init__(IMP::Decorator self, _ParticleAdaptor p) -> Decorator"""
5363 this = _IMP_kernel.new_Decorator(p)
5365 self.this.append(this)
5366 except __builtin__.Exception:
5369 def __ne__(self, o):
5370 """__ne__(Decorator self, Object o) -> bool"""
5371 return _IMP_kernel.Decorator___ne__(self, o)
5374 def __lt__(self, o):
5375 """__lt__(Decorator self, Object o) -> bool"""
5376 return _IMP_kernel.Decorator___lt__(self, o)
5379 def __gt__(self, o):
5380 """__gt__(Decorator self, Object o) -> bool"""
5381 return _IMP_kernel.Decorator___gt__(self, o)
5384 def __ge__(self, o):
5385 """__ge__(Decorator self, Object o) -> bool"""
5386 return _IMP_kernel.Decorator___ge__(self, o)
5389 def __le__(self, o):
5390 """__le__(Decorator self, Object o) -> bool"""
5391 return _IMP_kernel.Decorator___le__(self, o)
5394 def get_particle(self):
5395 """get_particle(Decorator self) -> Particle"""
5396 return _IMP_kernel.Decorator_get_particle(self)
5399 def get_particle_index(self):
5400 """get_particle_index(Decorator self) -> ParticleIndex"""
5401 return _IMP_kernel.Decorator_get_particle_index(self)
5404 def get_model(self):
5405 """get_model(Decorator self) -> Model"""
5406 return _IMP_kernel.Decorator_get_model(self)
5409 def get_is_valid(self):
5410 """get_is_valid(Decorator self) -> bool"""
5411 return _IMP_kernel.Decorator_get_is_valid(self)
5415 """__hash__(Decorator self) -> std::size_t"""
5416 return _IMP_kernel.Decorator___hash__(self)
5419 def __eq__(self, *args):
5421 __eq__(Decorator self, Object o) -> bool
5422 __eq__(Decorator self, Decorator o) -> bool
5423 __eq__(Decorator self, Particle o) -> bool
5425 return _IMP_kernel.Decorator___eq__(self, *args)
5429 """__bool__(Decorator self) -> bool"""
5430 return _IMP_kernel.Decorator___bool__(self)
5433 __nonzero__ = __bool__
5435 __swig_destroy__ = _IMP_kernel.delete_Decorator
5436 __del__ =
lambda self:
None
5437 Decorator_swigregister = _IMP_kernel.Decorator_swigregister
5438 Decorator_swigregister(Decorator)
5441 def check_particle(m, pi):
5442 """check_particle(Model m, ParticleIndex pi)"""
5443 return _IMP_kernel.check_particle(m, pi)
5444 class UnaryFunction(Object):
5445 """Proxy of C++ IMP::UnaryFunction class."""
5447 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5449 def __init__(self, *args):
5451 __init__(IMP::UnaryFunction self, std::string name) -> UnaryFunction
5452 __init__(IMP::UnaryFunction self) -> UnaryFunction
5454 if self.__class__ == UnaryFunction:
5458 this = _IMP_kernel.new_UnaryFunction(_self, *args)
5460 self.this.append(this)
5461 except __builtin__.Exception:
5464 if self.__class__ != UnaryFunction:
5465 _director_objects.register(self)
5470 def evaluate(self, feature):
5471 """evaluate(UnaryFunction self, double feature) -> double"""
5472 return _IMP_kernel.UnaryFunction_evaluate(self, feature)
5475 def evaluate_with_derivative(self, feature):
5476 """evaluate_with_derivative(UnaryFunction self, double feature) -> IMP::DerivativePair"""
5477 return _IMP_kernel.UnaryFunction_evaluate_with_derivative(self, feature)
5479 __swig_destroy__ = _IMP_kernel.delete_UnaryFunction
5480 __del__ =
lambda self:
None
5483 """__str__(UnaryFunction self) -> std::string"""
5484 return _IMP_kernel.UnaryFunction___str__(self)
5488 """__repr__(UnaryFunction self) -> std::string"""
5489 return _IMP_kernel.UnaryFunction___repr__(self)
5494 return _object_cast_to_UnaryFunction(o)
5497 def get_type_name(self):
5498 return self.__class__.__name__
5499 def do_show(self, out):
5501 def get_version_info(self):
5503 return VersionInfo(self.__module__,
5504 __import__(self.__module__).get_module_version())
5507 __import__(self.__module__).get_module_version())
5510 return _object_cast_to_UnaryFunction(o)
5512 def __disown__(self):
5514 _IMP_kernel.disown_UnaryFunction(self)
5515 return weakref_proxy(self)
5517 def do_destroy(self):
5518 """do_destroy(UnaryFunction self)"""
5519 return _IMP_kernel.UnaryFunction_do_destroy(self)
5521 UnaryFunction_swigregister = _IMP_kernel.UnaryFunction_swigregister
5522 UnaryFunction_swigregister(UnaryFunction)
5524 class OptimizerState(ModelObject):
5525 """Proxy of C++ IMP::OptimizerState class."""
5527 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5529 def __init__(self, m, name):
5530 """__init__(IMP::OptimizerState self, Model m, std::string name) -> OptimizerState"""
5531 if self.__class__ == OptimizerState:
5535 this = _IMP_kernel.new_OptimizerState(_self, m, name)
5537 self.this.append(this)
5538 except __builtin__.Exception:
5541 if self.__class__ != OptimizerState:
5542 _director_objects.register(self)
5548 """update(OptimizerState self)"""
5549 return _IMP_kernel.OptimizerState_update(self)
5552 def set_is_optimizing(self, arg0):
5553 """set_is_optimizing(OptimizerState self, bool arg0)"""
5554 return _IMP_kernel.OptimizerState_set_is_optimizing(self, arg0)
5557 def get_optimizer(self):
5558 """get_optimizer(OptimizerState self) -> Optimizer"""
5559 return _IMP_kernel.OptimizerState_get_optimizer(self)
5562 def set_period(self, p):
5563 """set_period(OptimizerState self, unsigned int p)"""
5564 return _IMP_kernel.OptimizerState_set_period(self, p)
5567 def get_period(self):
5568 """get_period(OptimizerState self) -> unsigned int"""
5569 return _IMP_kernel.OptimizerState_get_period(self)
5573 """reset(OptimizerState self)"""
5574 return _IMP_kernel.OptimizerState_reset(self)
5577 def update_always(self):
5578 """update_always(OptimizerState self)"""
5579 return _IMP_kernel.OptimizerState_update_always(self)
5582 def get_number_of_updates(self):
5583 """get_number_of_updates(OptimizerState self) -> unsigned int"""
5584 return _IMP_kernel.OptimizerState_get_number_of_updates(self)
5587 def set_number_of_updates(self, n):
5588 """set_number_of_updates(OptimizerState self, unsigned int n)"""
5589 return _IMP_kernel.OptimizerState_set_number_of_updates(self, n)
5591 __swig_destroy__ = _IMP_kernel.delete_OptimizerState
5592 __del__ =
lambda self:
None
5594 def do_update(self, arg0):
5595 """do_update(OptimizerState self, unsigned int arg0)"""
5596 return _IMP_kernel.OptimizerState_do_update(self, arg0)
5599 def do_set_is_optimizing(self, arg0):
5600 """do_set_is_optimizing(OptimizerState self, bool arg0)"""
5601 return _IMP_kernel.OptimizerState_do_set_is_optimizing(self, arg0)
5604 def do_get_inputs(self):
5605 """do_get_inputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
5606 return _IMP_kernel.OptimizerState_do_get_inputs(self)
5609 def do_get_outputs(self):
5610 """do_get_outputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
5611 return _IMP_kernel.OptimizerState_do_get_outputs(self)
5615 """__str__(OptimizerState self) -> std::string"""
5616 return _IMP_kernel.OptimizerState___str__(self)
5620 """__repr__(OptimizerState self) -> std::string"""
5621 return _IMP_kernel.OptimizerState___repr__(self)
5626 return _object_cast_to_OptimizerState(o)
5629 def get_type_name(self):
5630 return self.__class__.__name__
5631 def do_show(self, out):
5633 def get_version_info(self):
5635 return VersionInfo(self.__module__,
5636 __import__(self.__module__).get_module_version())
5639 __import__(self.__module__).get_module_version())
5642 return _object_cast_to_OptimizerState(o)
5644 def __disown__(self):
5646 _IMP_kernel.disown_OptimizerState(self)
5647 return weakref_proxy(self)
5649 def do_destroy(self):
5650 """do_destroy(OptimizerState self)"""
5651 return _IMP_kernel.OptimizerState_do_destroy(self)
5654 def handle_set_has_required_score_states(self, arg0):
5655 """handle_set_has_required_score_states(OptimizerState self, bool arg0)"""
5656 return _IMP_kernel.OptimizerState_handle_set_has_required_score_states(self, arg0)
5659 def do_get_interactions(self):
5660 """do_get_interactions(OptimizerState self) -> IMP::ModelObjectsTemps"""
5661 return _IMP_kernel.OptimizerState_do_get_interactions(self)
5663 OptimizerState_swigregister = _IMP_kernel.OptimizerState_swigregister
5664 OptimizerState_swigregister(OptimizerState)
5666 class Refiner(_ParticleInputs, Object):
5667 """Proxy of C++ IMP::Refiner class."""
5669 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5671 def __init__(self, *args):
5673 __init__(IMP::Refiner self, std::string name, bool is_by_ref=False) -> Refiner
5674 __init__(IMP::Refiner self, std::string name) -> Refiner
5675 __init__(IMP::Refiner self) -> Refiner
5677 if self.__class__ == Refiner:
5681 this = _IMP_kernel.new_Refiner(_self, *args)
5683 self.this.append(this)
5684 except __builtin__.Exception:
5687 if self.__class__ != Refiner:
5688 _director_objects.register(self)
5693 def get_can_refine(self, arg0):
5694 """get_can_refine(Refiner self, Particle arg0) -> bool"""
5695 return _IMP_kernel.Refiner_get_can_refine(self, arg0)
5698 def get_refined_indexes(self, m, pi):
5699 """get_refined_indexes(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes"""
5700 return _IMP_kernel.Refiner_get_refined_indexes(self, m, pi)
5703 def get_refined_indexes_by_ref(self, m, pi):
5704 """get_refined_indexes_by_ref(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes const &"""
5705 return _IMP_kernel.Refiner_get_refined_indexes_by_ref(self, m, pi)
5708 def get_is_by_ref_supported(self):
5709 """get_is_by_ref_supported(Refiner self) -> bool"""
5710 return _IMP_kernel.Refiner_get_is_by_ref_supported(self)
5713 def get_refined(self, *args):
5715 get_refined(Refiner self, Particle a) -> IMP::ParticlesTemp const
5716 get_refined(Refiner self, Particle a, unsigned int i) -> Particle
5718 return _IMP_kernel.Refiner_get_refined(self, *args)
5721 def get_number_of_refined(self, a):
5722 """get_number_of_refined(Refiner self, Particle a) -> unsigned int"""
5723 return _IMP_kernel.Refiner_get_number_of_refined(self, a)
5727 """__str__(Refiner self) -> std::string"""
5728 return _IMP_kernel.Refiner___str__(self)
5732 """__repr__(Refiner self) -> std::string"""
5733 return _IMP_kernel.Refiner___repr__(self)
5738 return _object_cast_to_Refiner(o)
5741 def get_type_name(self):
5742 return self.__class__.__name__
5743 def do_show(self, out):
5745 def get_version_info(self):
5747 return VersionInfo(self.__module__,
5748 __import__(self.__module__).get_module_version())
5751 __import__(self.__module__).get_module_version())
5754 return _object_cast_to_Refiner(o)
5756 __swig_destroy__ = _IMP_kernel.delete_Refiner
5757 __del__ =
lambda self:
None
5758 def __disown__(self):
5760 _IMP_kernel.disown_Refiner(self)
5761 return weakref_proxy(self)
5763 def do_get_inputs(self, m, pis):
5764 """do_get_inputs(Refiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5765 return _IMP_kernel.Refiner_do_get_inputs(self, m, pis)
5768 def do_destroy(self):
5769 """do_destroy(Refiner self)"""
5770 return _IMP_kernel.Refiner_do_destroy(self)
5772 Refiner_swigregister = _IMP_kernel.Refiner_swigregister
5773 Refiner_swigregister(Refiner)
5775 class Optimizer(ModelObject):
5776 """Proxy of C++ IMP::Optimizer class."""
5778 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5780 def set_is_optimizing_states(self, tf):
5781 """set_is_optimizing_states(Optimizer self, bool tf)"""
5782 return _IMP_kernel.Optimizer_set_is_optimizing_states(self, tf)
5785 def get_optimizer_state_inputs(self):
5786 """get_optimizer_state_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5787 return _IMP_kernel.Optimizer_get_optimizer_state_inputs(self)
5790 def do_get_inputs(self):
5791 """do_get_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5792 return _IMP_kernel.Optimizer_do_get_inputs(self)
5795 def do_get_outputs(self):
5796 """do_get_outputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5797 return _IMP_kernel.Optimizer_do_get_outputs(self)
5800 def __init__(self, *args):
5802 __init__(IMP::Optimizer self, Model m, std::string name) -> Optimizer
5803 __init__(IMP::Optimizer self, Model m) -> Optimizer
5805 if self.__class__ == Optimizer:
5809 this = _IMP_kernel.new_Optimizer(_self, *args)
5811 self.this.append(this)
5812 except __builtin__.Exception:
5815 if self.__class__ != Optimizer:
5816 _director_objects.register(self)
5821 def optimize(self, max_steps):
5822 """optimize(Optimizer self, unsigned int max_steps) -> double"""
5823 return _IMP_kernel.Optimizer_optimize(self, max_steps)
5826 def set_stop_on_good_score(self, tf):
5827 """set_stop_on_good_score(Optimizer self, bool tf)"""
5828 return _IMP_kernel.Optimizer_set_stop_on_good_score(self, tf)
5831 def get_stop_on_good_score(self):
5832 """get_stop_on_good_score(Optimizer self) -> bool"""
5833 return _IMP_kernel.Optimizer_get_stop_on_good_score(self)
5836 def get_last_score(self):
5837 """get_last_score(Optimizer self) -> double"""
5838 return _IMP_kernel.Optimizer_get_last_score(self)
5841 def get_scoring_function(self):
5842 """get_scoring_function(Optimizer self) -> ScoringFunction"""
5843 return _IMP_kernel.Optimizer_get_scoring_function(self)
5846 def remove_optimizer_state(self, d):
5847 """remove_optimizer_state(Optimizer self, OptimizerState d)"""
5848 return _IMP_kernel.Optimizer_remove_optimizer_state(self, d)
5851 def remove_optimizer_states(self, d):
5852 """remove_optimizer_states(Optimizer self, IMP::OptimizerStates const & d)"""
5853 return _IMP_kernel.Optimizer_remove_optimizer_states(self, d)
5856 def set_optimizer_states(self, ps):
5857 """set_optimizer_states(Optimizer self, IMP::OptimizerStates const & ps)"""
5858 return _IMP_kernel.Optimizer_set_optimizer_states(self, ps)
5861 def set_optimizer_states_order(self, objs):
5862 """set_optimizer_states_order(Optimizer self, IMP::OptimizerStates const & objs)"""
5863 return _IMP_kernel.Optimizer_set_optimizer_states_order(self, objs)
5866 def add_optimizer_state(self, obj):
5867 """add_optimizer_state(Optimizer self, OptimizerState obj) -> unsigned int"""
5868 return _IMP_kernel.Optimizer_add_optimizer_state(self, obj)
5871 def add_optimizer_states(self, objs):
5872 """add_optimizer_states(Optimizer self, IMP::OptimizerStates const & objs)"""
5873 return _IMP_kernel.Optimizer_add_optimizer_states(self, objs)
5876 def clear_optimizer_states(self):
5877 """clear_optimizer_states(Optimizer self)"""
5878 return _IMP_kernel.Optimizer_clear_optimizer_states(self)
5881 def get_number_of_optimizer_states(self):
5882 """get_number_of_optimizer_states(Optimizer self) -> unsigned int"""
5883 return _IMP_kernel.Optimizer_get_number_of_optimizer_states(self)
5886 def get_has_optimizer_states(self):
5887 """get_has_optimizer_states(Optimizer self) -> bool"""
5888 return _IMP_kernel.Optimizer_get_has_optimizer_states(self)
5891 def get_optimizer_state(self, i):
5892 """get_optimizer_state(Optimizer self, unsigned int i) -> OptimizerState"""
5893 return _IMP_kernel.Optimizer_get_optimizer_state(self, i)
5896 def get_optimizer_states(self):
5897 """get_optimizer_states(Optimizer self) -> IMP::OptimizerStates"""
5898 return _IMP_kernel.Optimizer_get_optimizer_states(self)
5901 def reserve_optimizer_states(self, sz):
5902 """reserve_optimizer_states(Optimizer self, unsigned int sz)"""
5903 return _IMP_kernel.Optimizer_reserve_optimizer_states(self, sz)
5906 def set_scoring_function(self, sf):
5907 """set_scoring_function(Optimizer self, _ScoringFunctionAdaptor sf)"""
5908 return _IMP_kernel.Optimizer_set_scoring_function(self, sf)
5910 __swig_destroy__ = _IMP_kernel.delete_Optimizer
5912 """__del__(IMP::Optimizer self)"""
5914 _director_objects.cleanup()
5920 def do_optimize(self, ns):
5921 """do_optimize(Optimizer self, unsigned int ns) -> double"""
5922 return _IMP_kernel.Optimizer_do_optimize(self, ns)
5925 def update_states(self):
5926 """update_states(Optimizer self)"""
5927 return _IMP_kernel.Optimizer_update_states(self)
5931 """__str__(Optimizer self) -> std::string"""
5932 return _IMP_kernel.Optimizer___str__(self)
5936 """__repr__(Optimizer self) -> std::string"""
5937 return _IMP_kernel.Optimizer___repr__(self)
5942 return _object_cast_to_Optimizer(o)
5945 def get_type_name(self):
5946 return self.__class__.__name__
5947 def do_show(self, out):
5949 def get_version_info(self):
5951 return VersionInfo(self.__module__,
5952 __import__(self.__module__).get_module_version())
5955 __import__(self.__module__).get_module_version())
5958 return _object_cast_to_Optimizer(o)
5960 def __disown__(self):
5962 _IMP_kernel.disown_Optimizer(self)
5963 return weakref_proxy(self)
5965 def do_destroy(self):
5966 """do_destroy(Optimizer self)"""
5967 return _IMP_kernel.Optimizer_do_destroy(self)
5970 def handle_set_has_required_score_states(self, arg0):
5971 """handle_set_has_required_score_states(Optimizer self, bool arg0)"""
5972 return _IMP_kernel.Optimizer_handle_set_has_required_score_states(self, arg0)
5975 def do_get_interactions(self):
5976 """do_get_interactions(Optimizer self) -> IMP::ModelObjectsTemps"""
5977 return _IMP_kernel.Optimizer_do_get_interactions(self)
5979 Optimizer_swigregister = _IMP_kernel.Optimizer_swigregister
5980 Optimizer_swigregister(Optimizer)
5982 class AttributeOptimizer(Optimizer):
5983 """Proxy of C++ IMP::AttributeOptimizer class."""
5985 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5987 def __init__(self, *args):
5989 __init__(IMP::AttributeOptimizer self, Model m, std::string name) -> AttributeOptimizer
5990 __init__(IMP::AttributeOptimizer self, Model m) -> AttributeOptimizer
5992 if self.__class__ == AttributeOptimizer:
5996 this = _IMP_kernel.new_AttributeOptimizer(_self, *args)
5998 self.this.append(this)
5999 except __builtin__.Exception:
6002 if self.__class__ != AttributeOptimizer:
6003 _director_objects.register(self)
6008 def get_optimized_attributes(self):
6009 """get_optimized_attributes(AttributeOptimizer self) -> IMP::FloatIndexes"""
6010 return _IMP_kernel.AttributeOptimizer_get_optimized_attributes(self)
6013 def set_value(self, fi, v):
6014 """set_value(AttributeOptimizer self, FloatIndex fi, double v)"""
6015 return _IMP_kernel.AttributeOptimizer_set_value(self, fi, v)
6018 def get_value(self, fi):
6019 """get_value(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
6020 return _IMP_kernel.AttributeOptimizer_get_value(self, fi)
6023 def get_derivative(self, fi):
6024 """get_derivative(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
6025 return _IMP_kernel.AttributeOptimizer_get_derivative(self, fi)
6028 def get_width(self, k):
6029 """get_width(AttributeOptimizer self, FloatKey k) -> double"""
6030 return _IMP_kernel.AttributeOptimizer_get_width(self, k)
6033 def set_scaled_value(self, fi, v):
6034 """set_scaled_value(AttributeOptimizer self, FloatIndex fi, IMP::Float v)"""
6035 return _IMP_kernel.AttributeOptimizer_set_scaled_value(self, fi, v)
6038 def get_scaled_value(self, fi):
6039 """get_scaled_value(AttributeOptimizer self, FloatIndex fi) -> double"""
6040 return _IMP_kernel.AttributeOptimizer_get_scaled_value(self, fi)
6043 def get_scaled_derivative(self, fi):
6044 """get_scaled_derivative(AttributeOptimizer self, FloatIndex fi) -> double"""
6045 return _IMP_kernel.AttributeOptimizer_get_scaled_derivative(self, fi)
6048 def clear_range_cache(self):
6049 """clear_range_cache(AttributeOptimizer self)"""
6050 return _IMP_kernel.AttributeOptimizer_clear_range_cache(self)
6054 """__str__(AttributeOptimizer self) -> std::string"""
6055 return _IMP_kernel.AttributeOptimizer___str__(self)
6059 """__repr__(AttributeOptimizer self) -> std::string"""
6060 return _IMP_kernel.AttributeOptimizer___repr__(self)
6065 return _object_cast_to_AttributeOptimizer(o)
6068 def get_type_name(self):
6069 return self.__class__.__name__
6070 def do_show(self, out):
6072 def get_version_info(self):
6074 return VersionInfo(self.__module__,
6075 __import__(self.__module__).get_module_version())
6078 __import__(self.__module__).get_module_version())
6081 return _object_cast_to_AttributeOptimizer(o)
6083 __swig_destroy__ = _IMP_kernel.delete_AttributeOptimizer
6084 __del__ =
lambda self:
None
6085 def __disown__(self):
6087 _IMP_kernel.disown_AttributeOptimizer(self)
6088 return weakref_proxy(self)
6090 def do_destroy(self):
6091 """do_destroy(AttributeOptimizer self)"""
6092 return _IMP_kernel.AttributeOptimizer_do_destroy(self)
6095 def handle_set_has_required_score_states(self, arg0):
6096 """handle_set_has_required_score_states(AttributeOptimizer self, bool arg0)"""
6097 return _IMP_kernel.AttributeOptimizer_handle_set_has_required_score_states(self, arg0)
6100 def do_get_inputs(self):
6101 """do_get_inputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
6102 return _IMP_kernel.AttributeOptimizer_do_get_inputs(self)
6105 def do_get_outputs(self):
6106 """do_get_outputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
6107 return _IMP_kernel.AttributeOptimizer_do_get_outputs(self)
6110 def do_get_interactions(self):
6111 """do_get_interactions(AttributeOptimizer self) -> IMP::ModelObjectsTemps"""
6112 return _IMP_kernel.AttributeOptimizer_do_get_interactions(self)
6115 def do_optimize(self, ns):
6116 """do_optimize(AttributeOptimizer self, unsigned int ns) -> double"""
6117 return _IMP_kernel.AttributeOptimizer_do_optimize(self, ns)
6119 AttributeOptimizer_swigregister = _IMP_kernel.AttributeOptimizer_swigregister
6120 AttributeOptimizer_swigregister(AttributeOptimizer)
6122 class ConfigurationSet(Object):
6123 """Proxy of C++ IMP::ConfigurationSet class."""
6125 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6127 def __init__(self, *args):
6129 __init__(IMP::ConfigurationSet self, Model m, std::string name) -> ConfigurationSet
6130 __init__(IMP::ConfigurationSet self, Model m) -> ConfigurationSet
6132 this = _IMP_kernel.new_ConfigurationSet(*args)
6134 self.this.append(this)
6135 except __builtin__.Exception:
6138 def save_configuration(self):
6139 """save_configuration(ConfigurationSet self)"""
6140 return _IMP_kernel.ConfigurationSet_save_configuration(self)
6143 def get_number_of_configurations(self):
6144 """get_number_of_configurations(ConfigurationSet self) -> unsigned int"""
6145 return _IMP_kernel.ConfigurationSet_get_number_of_configurations(self)
6148 def load_configuration(self, i):
6149 """load_configuration(ConfigurationSet self, int i)"""
6150 return _IMP_kernel.ConfigurationSet_load_configuration(self, i)
6153 def remove_configuration(self, i):
6154 """remove_configuration(ConfigurationSet self, unsigned int i)"""
6155 return _IMP_kernel.ConfigurationSet_remove_configuration(self, i)
6158 def get_model(self):
6159 """get_model(ConfigurationSet self) -> Model"""
6160 return _IMP_kernel.ConfigurationSet_get_model(self)
6163 def get_version_info(self):
6164 """get_version_info(ConfigurationSet self) -> VersionInfo"""
6165 return _IMP_kernel.ConfigurationSet_get_version_info(self)
6169 """__str__(ConfigurationSet self) -> std::string"""
6170 return _IMP_kernel.ConfigurationSet___str__(self)
6174 """__repr__(ConfigurationSet self) -> std::string"""
6175 return _IMP_kernel.ConfigurationSet___repr__(self)
6180 return _object_cast_to_ConfigurationSet(o)
6182 ConfigurationSet_swigregister = _IMP_kernel.ConfigurationSet_swigregister
6183 ConfigurationSet_swigregister(ConfigurationSet)
6185 class SaveToConfigurationSetOptimizerState(OptimizerState):
6186 """Proxy of C++ IMP::SaveToConfigurationSetOptimizerState class."""
6188 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6190 def __init__(self, cs):
6191 """__init__(IMP::SaveToConfigurationSetOptimizerState self, ConfigurationSet cs) -> SaveToConfigurationSetOptimizerState"""
6192 this = _IMP_kernel.new_SaveToConfigurationSetOptimizerState(cs)
6194 self.this.append(this)
6195 except __builtin__.Exception:
6198 def get_version_info(self):
6199 """get_version_info(SaveToConfigurationSetOptimizerState self) -> VersionInfo"""
6200 return _IMP_kernel.SaveToConfigurationSetOptimizerState_get_version_info(self)
6204 """__str__(SaveToConfigurationSetOptimizerState self) -> std::string"""
6205 return _IMP_kernel.SaveToConfigurationSetOptimizerState___str__(self)
6209 """__repr__(SaveToConfigurationSetOptimizerState self) -> std::string"""
6210 return _IMP_kernel.SaveToConfigurationSetOptimizerState___repr__(self)
6215 return _object_cast_to_SaveToConfigurationSetOptimizerState(o)
6217 SaveToConfigurationSetOptimizerState_swigregister = _IMP_kernel.SaveToConfigurationSetOptimizerState_swigregister
6218 SaveToConfigurationSetOptimizerState_swigregister(SaveToConfigurationSetOptimizerState)
6220 class Configuration(Object):
6221 """Proxy of C++ IMP::Configuration class."""
6223 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6225 def __init__(self, *args):
6227 __init__(IMP::Configuration self, Model m, std::string name) -> Configuration
6228 __init__(IMP::Configuration self, Model m) -> Configuration
6229 __init__(IMP::Configuration self, Model m, Configuration base, std::string name) -> Configuration
6230 __init__(IMP::Configuration self, Model m, Configuration base) -> Configuration
6232 this = _IMP_kernel.new_Configuration(*args)
6234 self.this.append(this)
6235 except __builtin__.Exception:
6238 def load_configuration(self):
6239 """load_configuration(Configuration self)"""
6240 return _IMP_kernel.Configuration_load_configuration(self)
6243 def swap_configuration(self):
6244 """swap_configuration(Configuration self)"""
6245 return _IMP_kernel.Configuration_swap_configuration(self)
6248 def get_version_info(self):
6249 """get_version_info(Configuration self) -> VersionInfo"""
6250 return _IMP_kernel.Configuration_get_version_info(self)
6254 """__str__(Configuration self) -> std::string"""
6255 return _IMP_kernel.Configuration___str__(self)
6259 """__repr__(Configuration self) -> std::string"""
6260 return _IMP_kernel.Configuration___repr__(self)
6265 return _object_cast_to_Configuration(o)
6267 Configuration_swigregister = _IMP_kernel.Configuration_swigregister
6268 Configuration_swigregister(Configuration)
6270 class Sampler(Object):
6271 """Proxy of C++ IMP::Sampler class."""
6273 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6275 def __init__(self, *args):
6277 __init__(IMP::Sampler self, Model m, std::string name) -> Sampler
6278 __init__(IMP::Sampler self, Model m) -> Sampler
6280 if self.__class__ == Sampler:
6284 this = _IMP_kernel.new_Sampler(_self, *args)
6286 self.this.append(this)
6287 except __builtin__.Exception:
6290 if self.__class__ != Sampler:
6291 _director_objects.register(self)
6296 def create_sample(self):
6297 """create_sample(Sampler self) -> ConfigurationSet"""
6298 return _IMP_kernel.Sampler_create_sample(self)
6301 def get_scoring_function(self):
6302 """get_scoring_function(Sampler self) -> ScoringFunction"""
6303 return _IMP_kernel.Sampler_get_scoring_function(self)
6306 def set_scoring_function(self, sf):
6307 """set_scoring_function(Sampler self, _ScoringFunctionAdaptor sf)"""
6308 return _IMP_kernel.Sampler_set_scoring_function(self, sf)
6311 def get_model(self):
6312 """get_model(Sampler self) -> Model"""
6313 return _IMP_kernel.Sampler_get_model(self)
6316 def do_sample(self):
6317 """do_sample(Sampler self) -> ConfigurationSet"""
6318 return _IMP_kernel.Sampler_do_sample(self)
6320 __swig_destroy__ = _IMP_kernel.delete_Sampler
6321 __del__ =
lambda self:
None
6324 """__str__(Sampler self) -> std::string"""
6325 return _IMP_kernel.Sampler___str__(self)
6329 """__repr__(Sampler self) -> std::string"""
6330 return _IMP_kernel.Sampler___repr__(self)
6335 return _object_cast_to_Sampler(o)
6338 def get_type_name(self):
6339 return self.__class__.__name__
6340 def do_show(self, out):
6342 def get_version_info(self):
6344 return VersionInfo(self.__module__,
6345 __import__(self.__module__).get_module_version())
6348 __import__(self.__module__).get_module_version())
6351 return _object_cast_to_Sampler(o)
6353 def __disown__(self):
6355 _IMP_kernel.disown_Sampler(self)
6356 return weakref_proxy(self)
6358 def do_destroy(self):
6359 """do_destroy(Sampler self)"""
6360 return _IMP_kernel.Sampler_do_destroy(self)
6362 Sampler_swigregister = _IMP_kernel.Sampler_swigregister
6363 Sampler_swigregister(Sampler)
6365 class PairModifier(_ParticleInputs, _ParticleOutputs, Object):
6366 """Proxy of C++ IMP::PairModifier class."""
6368 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6370 def __init__(self, *args):
6372 __init__(IMP::PairModifier self, std::string name) -> PairModifier
6373 __init__(IMP::PairModifier self) -> PairModifier
6375 if self.__class__ == PairModifier:
6379 this = _IMP_kernel.new_PairModifier(_self, *args)
6381 self.this.append(this)
6382 except __builtin__.Exception:
6385 if self.__class__ != PairModifier:
6386 _director_objects.register(self)
6391 def apply_index(self, m, v):
6392 """apply_index(PairModifier self, Model m, IMP::ParticleIndexPair const & v)"""
6393 return _IMP_kernel.PairModifier_apply_index(self, m, v)
6396 def apply_indexes(self, m, o, lower_bound, upper_bound):
6397 """apply_indexes(PairModifier self, Model m, IMP::ParticleIndexPairs const & o, unsigned int lower_bound, unsigned int upper_bound)"""
6398 return _IMP_kernel.PairModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
6402 """__str__(PairModifier self) -> std::string"""
6403 return _IMP_kernel.PairModifier___str__(self)
6407 """__repr__(PairModifier self) -> std::string"""
6408 return _IMP_kernel.PairModifier___repr__(self)
6413 return _object_cast_to_PairModifier(o)
6416 def get_type_name(self):
6417 return self.__class__.__name__
6418 def do_show(self, out):
6420 def get_version_info(self):
6422 return VersionInfo(self.__module__,
6423 __import__(self.__module__).get_module_version())
6426 __import__(self.__module__).get_module_version())
6429 return _object_cast_to_PairModifier(o)
6431 __swig_destroy__ = _IMP_kernel.delete_PairModifier
6432 __del__ =
lambda self:
None
6433 def __disown__(self):
6435 _IMP_kernel.disown_PairModifier(self)
6436 return weakref_proxy(self)
6438 def do_get_inputs(self, m, pis):
6439 """do_get_inputs(PairModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6440 return _IMP_kernel.PairModifier_do_get_inputs(self, m, pis)
6443 def do_get_outputs(self, m, pis):
6444 """do_get_outputs(PairModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6445 return _IMP_kernel.PairModifier_do_get_outputs(self, m, pis)
6448 def do_destroy(self):
6449 """do_destroy(PairModifier self)"""
6450 return _IMP_kernel.PairModifier_do_destroy(self)
6452 PairModifier_swigregister = _IMP_kernel.PairModifier_swigregister
6453 PairModifier_swigregister(PairModifier)
6455 class PairScore(_ParticleInputs, Object):
6456 """Proxy of C++ IMP::PairScore class."""
6458 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6460 def __init__(self, *args):
6462 __init__(IMP::PairScore self, std::string name) -> PairScore
6463 __init__(IMP::PairScore self) -> PairScore
6465 if self.__class__ == PairScore:
6469 this = _IMP_kernel.new_PairScore(_self, *args)
6471 self.this.append(this)
6472 except __builtin__.Exception:
6475 if self.__class__ != PairScore:
6476 _director_objects.register(self)
6481 def evaluate_index(self, m, vt, da):
6482 """evaluate_index(PairScore self, Model m, IMP::ParticleIndexPair const & vt, DerivativeAccumulator da) -> double"""
6483 return _IMP_kernel.PairScore_evaluate_index(self, m, vt, da)
6486 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
6487 """evaluate_indexes(PairScore self, Model m, IMP::ParticleIndexPairs const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
6488 return _IMP_kernel.PairScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
6491 def evaluate_if_good_index(self, m, vt, da, max):
6492 """evaluate_if_good_index(PairScore self, Model m, IMP::ParticleIndexPair const & vt, DerivativeAccumulator da, double max) -> double"""
6493 return _IMP_kernel.PairScore_evaluate_if_good_index(self, m, vt, da, max)
6496 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
6497 """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"""
6498 return _IMP_kernel.PairScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
6501 def create_current_decomposition(self, m, vt):
6502 """create_current_decomposition(PairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
6503 return _IMP_kernel.PairScore_create_current_decomposition(self, m, vt)
6506 def do_create_current_decomposition(self, m, vt):
6507 """do_create_current_decomposition(PairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
6508 return _IMP_kernel.PairScore_do_create_current_decomposition(self, m, vt)
6510 __swig_destroy__ = _IMP_kernel.delete_PairScore
6511 __del__ =
lambda self:
None
6514 """__str__(PairScore self) -> std::string"""
6515 return _IMP_kernel.PairScore___str__(self)
6519 """__repr__(PairScore self) -> std::string"""
6520 return _IMP_kernel.PairScore___repr__(self)
6525 return _object_cast_to_PairScore(o)
6528 def get_type_name(self):
6529 return self.__class__.__name__
6530 def do_show(self, out):
6532 def get_version_info(self):
6534 return VersionInfo(self.__module__,
6535 __import__(self.__module__).get_module_version())
6538 __import__(self.__module__).get_module_version())
6541 return _object_cast_to_PairScore(o)
6543 def __disown__(self):
6545 _IMP_kernel.disown_PairScore(self)
6546 return weakref_proxy(self)
6548 def do_get_inputs(self, m, pis):
6549 """do_get_inputs(PairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6550 return _IMP_kernel.PairScore_do_get_inputs(self, m, pis)
6553 def do_destroy(self):
6554 """do_destroy(PairScore self)"""
6555 return _IMP_kernel.PairScore_do_destroy(self)
6557 PairScore_swigregister = _IMP_kernel.PairScore_swigregister
6558 PairScore_swigregister(PairScore)
6560 class PairPredicate(_ParticleInputs, Object):
6561 """Proxy of C++ IMP::PairPredicate class."""
6563 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6565 def __init__(self, *args):
6567 __init__(IMP::PairPredicate self, std::string name) -> PairPredicate
6568 __init__(IMP::PairPredicate self) -> PairPredicate
6570 if self.__class__ == PairPredicate:
6574 this = _IMP_kernel.new_PairPredicate(_self, *args)
6576 self.this.append(this)
6577 except __builtin__.Exception:
6580 if self.__class__ != PairPredicate:
6581 _director_objects.register(self)
6586 def get_value(self, *args):
6588 get_value(PairPredicate self, IMP::ParticlePair const & vt) -> int
6589 get_value(PairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
6591 return _IMP_kernel.PairPredicate_get_value(self, *args)
6594 def setup_for_get_value_index_in_batch(self, arg0):
6595 """setup_for_get_value_index_in_batch(PairPredicate self, Model arg0)"""
6596 return _IMP_kernel.PairPredicate_setup_for_get_value_index_in_batch(self, arg0)
6599 def get_value_index_in_batch(self, m, vt):
6600 """get_value_index_in_batch(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int"""
6601 return _IMP_kernel.PairPredicate_get_value_index_in_batch(self, m, vt)
6604 def __call__(self, m, vt):
6605 """__call__(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int"""
6606 return _IMP_kernel.PairPredicate___call__(self, m, vt)
6609 def get_value_index(self, *args):
6611 get_value_index(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int
6612 get_value_index(PairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
6614 return _IMP_kernel.PairPredicate_get_value_index(self, *args)
6616 __swig_destroy__ = _IMP_kernel.delete_PairPredicate
6617 __del__ =
lambda self:
None
6620 """__str__(PairPredicate self) -> std::string"""
6621 return _IMP_kernel.PairPredicate___str__(self)
6625 """__repr__(PairPredicate self) -> std::string"""
6626 return _IMP_kernel.PairPredicate___repr__(self)
6631 return _object_cast_to_PairPredicate(o)
6634 def get_type_name(self):
6635 return self.__class__.__name__
6636 def do_show(self, out):
6638 def get_version_info(self):
6640 return VersionInfo(self.__module__,
6641 __import__(self.__module__).get_module_version())
6644 __import__(self.__module__).get_module_version())
6647 return _object_cast_to_PairPredicate(o)
6649 def __disown__(self):
6651 _IMP_kernel.disown_PairPredicate(self)
6652 return weakref_proxy(self)
6654 def do_get_inputs(self, m, pis):
6655 """do_get_inputs(PairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6656 return _IMP_kernel.PairPredicate_do_get_inputs(self, m, pis)
6659 def do_destroy(self):
6660 """do_destroy(PairPredicate self)"""
6661 return _IMP_kernel.PairPredicate_do_destroy(self)
6663 PairPredicate_swigregister = _IMP_kernel.PairPredicate_swigregister
6664 PairPredicate_swigregister(PairPredicate)
6666 class PairContainer(Container):
6667 """Proxy of C++ IMP::PairContainer class."""
6669 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6671 def apply_generic(self, m):
6672 """apply_generic(PairContainer self, PairModifier m)"""
6673 return _IMP_kernel.PairContainer_apply_generic(self, m)
6676 def apply(self, sm):
6677 """apply(PairContainer self, PairModifier sm)"""
6678 return _IMP_kernel.PairContainer_apply(self, sm)
6681 def get_range_indexes(self):
6682 """get_range_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
6683 return _IMP_kernel.PairContainer_get_range_indexes(self)
6686 def get_contents(self):
6687 """get_contents(PairContainer self) -> IMP::ParticleIndexPairs const &"""
6688 return _IMP_kernel.PairContainer_get_contents(self)
6692 """get_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
6693 return _IMP_kernel.PairContainer_get_indexes(self)
6696 def get(self, *args):
6698 get(PairContainer self) -> IMP::ParticlePairsTemp
6699 get(PairContainer self, unsigned int i) -> IMP::ParticlePair
6701 return _IMP_kernel.PairContainer_get(self, *args)
6704 def get_number(self):
6705 """get_number(PairContainer self) -> unsigned int"""
6706 return _IMP_kernel.PairContainer_get_number(self)
6709 def get_particle_pairs(self):
6710 """get_particle_pairs(PairContainer self) -> IMP::ParticlePairsTemp"""
6711 return _IMP_kernel.PairContainer_get_particle_pairs(self)
6714 def get_particle_pair(self, i):
6715 """get_particle_pair(PairContainer self, unsigned int i) -> IMP::ParticlePair"""
6716 return _IMP_kernel.PairContainer_get_particle_pair(self, i)
6719 def __init__(self, *args):
6721 __init__(IMP::PairContainer self, Model m, std::string name) -> PairContainer
6722 __init__(IMP::PairContainer self, Model m) -> PairContainer
6724 if self.__class__ == PairContainer:
6728 this = _IMP_kernel.new_PairContainer(_self, *args)
6730 self.this.append(this)
6731 except __builtin__.Exception:
6734 if self.__class__ != PairContainer:
6735 _director_objects.register(self)
6740 def do_apply(self, sm):
6741 """do_apply(PairContainer self, PairModifier sm)"""
6742 return _IMP_kernel.PairContainer_do_apply(self, sm)
6745 def do_get_provides_access(self):
6746 """do_get_provides_access(PairContainer self) -> bool"""
6747 return _IMP_kernel.PairContainer_do_get_provides_access(self)
6749 __swig_destroy__ = _IMP_kernel.delete_PairContainer
6750 __del__ =
lambda self:
None
6753 """__str__(PairContainer self) -> std::string"""
6754 return _IMP_kernel.PairContainer___str__(self)
6758 """__repr__(PairContainer self) -> std::string"""
6759 return _IMP_kernel.PairContainer___repr__(self)
6764 return _object_cast_to_PairContainer(o)
6767 def get_type_name(self):
6768 return self.__class__.__name__
6769 def do_show(self, out):
6771 def get_version_info(self):
6773 return VersionInfo(self.__module__,
6774 __import__(self.__module__).get_module_version())
6777 __import__(self.__module__).get_module_version())
6780 return _object_cast_to_PairContainer(o)
6782 def __disown__(self):
6784 _IMP_kernel.disown_PairContainer(self)
6785 return weakref_proxy(self)
6787 def do_destroy(self):
6788 """do_destroy(PairContainer self)"""
6789 return _IMP_kernel.PairContainer_do_destroy(self)
6792 def handle_set_has_required_score_states(self, arg0):
6793 """handle_set_has_required_score_states(PairContainer self, bool arg0)"""
6794 return _IMP_kernel.PairContainer_handle_set_has_required_score_states(self, arg0)
6797 def do_get_inputs(self):
6798 """do_get_inputs(PairContainer self) -> IMP::ModelObjectsTemp"""
6799 return _IMP_kernel.PairContainer_do_get_inputs(self)
6802 def do_get_interactions(self):
6803 """do_get_interactions(PairContainer self) -> IMP::ModelObjectsTemps"""
6804 return _IMP_kernel.PairContainer_do_get_interactions(self)
6807 def do_get_contents_hash(self):
6808 """do_get_contents_hash(PairContainer self) -> std::size_t"""
6809 return _IMP_kernel.PairContainer_do_get_contents_hash(self)
6811 PairContainer_swigregister = _IMP_kernel.PairContainer_swigregister
6812 PairContainer_swigregister(PairContainer)
6814 class _PairContainerAdaptor(_InputAdaptor):
6815 """Proxy of C++ IMP::PairContainerAdaptor class."""
6817 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6818 __repr__ = _swig_repr
6820 def __init__(self, *args):
6822 __init__(IMP::PairContainerAdaptor self) -> _PairContainerAdaptor
6823 __init__(IMP::PairContainerAdaptor self, PairContainer c) -> _PairContainerAdaptor
6824 __init__(IMP::PairContainerAdaptor self, IMP::ParticlePairsTemp const & t) -> _PairContainerAdaptor
6826 this = _IMP_kernel.new__PairContainerAdaptor(*args)
6828 self.this.append(this)
6829 except __builtin__.Exception:
6832 def set_name_if_default(self, name):
6833 """set_name_if_default(_PairContainerAdaptor self, std::string name)"""
6834 return _IMP_kernel._PairContainerAdaptor_set_name_if_default(self, name)
6836 __swig_destroy__ = _IMP_kernel.delete__PairContainerAdaptor
6837 __del__ =
lambda self:
None
6838 _PairContainerAdaptor_swigregister = _IMP_kernel._PairContainerAdaptor_swigregister
6839 _PairContainerAdaptor_swigregister(_PairContainerAdaptor)
6841 class QuadModifier(_ParticleInputs, _ParticleOutputs, Object):
6842 """Proxy of C++ IMP::QuadModifier class."""
6844 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6846 def __init__(self, *args):
6848 __init__(IMP::QuadModifier self, std::string name) -> QuadModifier
6849 __init__(IMP::QuadModifier self) -> QuadModifier
6851 if self.__class__ == QuadModifier:
6855 this = _IMP_kernel.new_QuadModifier(_self, *args)
6857 self.this.append(this)
6858 except __builtin__.Exception:
6861 if self.__class__ != QuadModifier:
6862 _director_objects.register(self)
6867 def apply_index(self, m, v):
6868 """apply_index(QuadModifier self, Model m, IMP::ParticleIndexQuad const & v)"""
6869 return _IMP_kernel.QuadModifier_apply_index(self, m, v)
6872 def apply_indexes(self, m, o, lower_bound, upper_bound):
6873 """apply_indexes(QuadModifier self, Model m, IMP::ParticleIndexQuads const & o, unsigned int lower_bound, unsigned int upper_bound)"""
6874 return _IMP_kernel.QuadModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
6878 """__str__(QuadModifier self) -> std::string"""
6879 return _IMP_kernel.QuadModifier___str__(self)
6883 """__repr__(QuadModifier self) -> std::string"""
6884 return _IMP_kernel.QuadModifier___repr__(self)
6889 return _object_cast_to_QuadModifier(o)
6892 def get_type_name(self):
6893 return self.__class__.__name__
6894 def do_show(self, out):
6896 def get_version_info(self):
6898 return VersionInfo(self.__module__,
6899 __import__(self.__module__).get_module_version())
6902 __import__(self.__module__).get_module_version())
6905 return _object_cast_to_QuadModifier(o)
6907 __swig_destroy__ = _IMP_kernel.delete_QuadModifier
6908 __del__ =
lambda self:
None
6909 def __disown__(self):
6911 _IMP_kernel.disown_QuadModifier(self)
6912 return weakref_proxy(self)
6914 def do_get_inputs(self, m, pis):
6915 """do_get_inputs(QuadModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6916 return _IMP_kernel.QuadModifier_do_get_inputs(self, m, pis)
6919 def do_get_outputs(self, m, pis):
6920 """do_get_outputs(QuadModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6921 return _IMP_kernel.QuadModifier_do_get_outputs(self, m, pis)
6924 def do_destroy(self):
6925 """do_destroy(QuadModifier self)"""
6926 return _IMP_kernel.QuadModifier_do_destroy(self)
6928 QuadModifier_swigregister = _IMP_kernel.QuadModifier_swigregister
6929 QuadModifier_swigregister(QuadModifier)
6931 class QuadScore(_ParticleInputs, Object):
6932 """Proxy of C++ IMP::QuadScore class."""
6934 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6936 def __init__(self, *args):
6938 __init__(IMP::QuadScore self, std::string name) -> QuadScore
6939 __init__(IMP::QuadScore self) -> QuadScore
6941 if self.__class__ == QuadScore:
6945 this = _IMP_kernel.new_QuadScore(_self, *args)
6947 self.this.append(this)
6948 except __builtin__.Exception:
6951 if self.__class__ != QuadScore:
6952 _director_objects.register(self)
6957 def evaluate_index(self, m, vt, da):
6958 """evaluate_index(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt, DerivativeAccumulator da) -> double"""
6959 return _IMP_kernel.QuadScore_evaluate_index(self, m, vt, da)
6962 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
6963 """evaluate_indexes(QuadScore self, Model m, IMP::ParticleIndexQuads const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
6964 return _IMP_kernel.QuadScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
6967 def evaluate_if_good_index(self, m, vt, da, max):
6968 """evaluate_if_good_index(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt, DerivativeAccumulator da, double max) -> double"""
6969 return _IMP_kernel.QuadScore_evaluate_if_good_index(self, m, vt, da, max)
6972 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
6973 """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"""
6974 return _IMP_kernel.QuadScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
6977 def create_current_decomposition(self, m, vt):
6978 """create_current_decomposition(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
6979 return _IMP_kernel.QuadScore_create_current_decomposition(self, m, vt)
6982 def do_create_current_decomposition(self, m, vt):
6983 """do_create_current_decomposition(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
6984 return _IMP_kernel.QuadScore_do_create_current_decomposition(self, m, vt)
6986 __swig_destroy__ = _IMP_kernel.delete_QuadScore
6987 __del__ =
lambda self:
None
6990 """__str__(QuadScore self) -> std::string"""
6991 return _IMP_kernel.QuadScore___str__(self)
6995 """__repr__(QuadScore self) -> std::string"""
6996 return _IMP_kernel.QuadScore___repr__(self)
7001 return _object_cast_to_QuadScore(o)
7004 def get_type_name(self):
7005 return self.__class__.__name__
7006 def do_show(self, out):
7008 def get_version_info(self):
7010 return VersionInfo(self.__module__,
7011 __import__(self.__module__).get_module_version())
7014 __import__(self.__module__).get_module_version())
7017 return _object_cast_to_QuadScore(o)
7019 def __disown__(self):
7021 _IMP_kernel.disown_QuadScore(self)
7022 return weakref_proxy(self)
7024 def do_get_inputs(self, m, pis):
7025 """do_get_inputs(QuadScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7026 return _IMP_kernel.QuadScore_do_get_inputs(self, m, pis)
7029 def do_destroy(self):
7030 """do_destroy(QuadScore self)"""
7031 return _IMP_kernel.QuadScore_do_destroy(self)
7033 QuadScore_swigregister = _IMP_kernel.QuadScore_swigregister
7034 QuadScore_swigregister(QuadScore)
7036 class QuadPredicate(_ParticleInputs, Object):
7037 """Proxy of C++ IMP::QuadPredicate class."""
7039 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7041 def __init__(self, *args):
7043 __init__(IMP::QuadPredicate self, std::string name) -> QuadPredicate
7044 __init__(IMP::QuadPredicate self) -> QuadPredicate
7046 if self.__class__ == QuadPredicate:
7050 this = _IMP_kernel.new_QuadPredicate(_self, *args)
7052 self.this.append(this)
7053 except __builtin__.Exception:
7056 if self.__class__ != QuadPredicate:
7057 _director_objects.register(self)
7062 def get_value(self, *args):
7064 get_value(QuadPredicate self, IMP::ParticleQuad const & vt) -> int
7065 get_value(QuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
7067 return _IMP_kernel.QuadPredicate_get_value(self, *args)
7070 def setup_for_get_value_index_in_batch(self, arg0):
7071 """setup_for_get_value_index_in_batch(QuadPredicate self, Model arg0)"""
7072 return _IMP_kernel.QuadPredicate_setup_for_get_value_index_in_batch(self, arg0)
7075 def get_value_index_in_batch(self, m, vt):
7076 """get_value_index_in_batch(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int"""
7077 return _IMP_kernel.QuadPredicate_get_value_index_in_batch(self, m, vt)
7080 def __call__(self, m, vt):
7081 """__call__(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int"""
7082 return _IMP_kernel.QuadPredicate___call__(self, m, vt)
7085 def get_value_index(self, *args):
7087 get_value_index(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int
7088 get_value_index(QuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
7090 return _IMP_kernel.QuadPredicate_get_value_index(self, *args)
7092 __swig_destroy__ = _IMP_kernel.delete_QuadPredicate
7093 __del__ =
lambda self:
None
7096 """__str__(QuadPredicate self) -> std::string"""
7097 return _IMP_kernel.QuadPredicate___str__(self)
7101 """__repr__(QuadPredicate self) -> std::string"""
7102 return _IMP_kernel.QuadPredicate___repr__(self)
7107 return _object_cast_to_QuadPredicate(o)
7110 def get_type_name(self):
7111 return self.__class__.__name__
7112 def do_show(self, out):
7114 def get_version_info(self):
7116 return VersionInfo(self.__module__,
7117 __import__(self.__module__).get_module_version())
7120 __import__(self.__module__).get_module_version())
7123 return _object_cast_to_QuadPredicate(o)
7125 def __disown__(self):
7127 _IMP_kernel.disown_QuadPredicate(self)
7128 return weakref_proxy(self)
7130 def do_get_inputs(self, m, pis):
7131 """do_get_inputs(QuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7132 return _IMP_kernel.QuadPredicate_do_get_inputs(self, m, pis)
7135 def do_destroy(self):
7136 """do_destroy(QuadPredicate self)"""
7137 return _IMP_kernel.QuadPredicate_do_destroy(self)
7139 QuadPredicate_swigregister = _IMP_kernel.QuadPredicate_swigregister
7140 QuadPredicate_swigregister(QuadPredicate)
7142 class QuadContainer(Container):
7143 """Proxy of C++ IMP::QuadContainer class."""
7145 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7147 def apply_generic(self, m):
7148 """apply_generic(QuadContainer self, QuadModifier m)"""
7149 return _IMP_kernel.QuadContainer_apply_generic(self, m)
7152 def apply(self, sm):
7153 """apply(QuadContainer self, QuadModifier sm)"""
7154 return _IMP_kernel.QuadContainer_apply(self, sm)
7157 def get_range_indexes(self):
7158 """get_range_indexes(QuadContainer self) -> IMP::ParticleIndexQuads"""
7159 return _IMP_kernel.QuadContainer_get_range_indexes(self)
7162 def get_contents(self):
7163 """get_contents(QuadContainer self) -> IMP::ParticleIndexQuads const &"""
7164 return _IMP_kernel.QuadContainer_get_contents(self)
7168 """get_indexes(QuadContainer self) -> IMP::ParticleIndexQuads"""
7169 return _IMP_kernel.QuadContainer_get_indexes(self)
7172 def get(self, *args):
7174 get(QuadContainer self) -> IMP::ParticleQuadsTemp
7175 get(QuadContainer self, unsigned int i) -> IMP::ParticleQuad
7177 return _IMP_kernel.QuadContainer_get(self, *args)
7180 def get_number(self):
7181 """get_number(QuadContainer self) -> unsigned int"""
7182 return _IMP_kernel.QuadContainer_get_number(self)
7185 def get_particle_quads(self):
7186 """get_particle_quads(QuadContainer self) -> IMP::ParticleQuadsTemp"""
7187 return _IMP_kernel.QuadContainer_get_particle_quads(self)
7190 def get_particle_quad(self, i):
7191 """get_particle_quad(QuadContainer self, unsigned int i) -> IMP::ParticleQuad"""
7192 return _IMP_kernel.QuadContainer_get_particle_quad(self, i)
7195 def __init__(self, *args):
7197 __init__(IMP::QuadContainer self, Model m, std::string name) -> QuadContainer
7198 __init__(IMP::QuadContainer self, Model m) -> QuadContainer
7200 if self.__class__ == QuadContainer:
7204 this = _IMP_kernel.new_QuadContainer(_self, *args)
7206 self.this.append(this)
7207 except __builtin__.Exception:
7210 if self.__class__ != QuadContainer:
7211 _director_objects.register(self)
7216 def do_apply(self, sm):
7217 """do_apply(QuadContainer self, QuadModifier sm)"""
7218 return _IMP_kernel.QuadContainer_do_apply(self, sm)
7221 def do_get_provides_access(self):
7222 """do_get_provides_access(QuadContainer self) -> bool"""
7223 return _IMP_kernel.QuadContainer_do_get_provides_access(self)
7225 __swig_destroy__ = _IMP_kernel.delete_QuadContainer
7226 __del__ =
lambda self:
None
7229 """__str__(QuadContainer self) -> std::string"""
7230 return _IMP_kernel.QuadContainer___str__(self)
7234 """__repr__(QuadContainer self) -> std::string"""
7235 return _IMP_kernel.QuadContainer___repr__(self)
7240 return _object_cast_to_QuadContainer(o)
7243 def get_type_name(self):
7244 return self.__class__.__name__
7245 def do_show(self, out):
7247 def get_version_info(self):
7249 return VersionInfo(self.__module__,
7250 __import__(self.__module__).get_module_version())
7253 __import__(self.__module__).get_module_version())
7256 return _object_cast_to_QuadContainer(o)
7258 def __disown__(self):
7260 _IMP_kernel.disown_QuadContainer(self)
7261 return weakref_proxy(self)
7263 def do_destroy(self):
7264 """do_destroy(QuadContainer self)"""
7265 return _IMP_kernel.QuadContainer_do_destroy(self)
7268 def handle_set_has_required_score_states(self, arg0):
7269 """handle_set_has_required_score_states(QuadContainer self, bool arg0)"""
7270 return _IMP_kernel.QuadContainer_handle_set_has_required_score_states(self, arg0)
7273 def do_get_inputs(self):
7274 """do_get_inputs(QuadContainer self) -> IMP::ModelObjectsTemp"""
7275 return _IMP_kernel.QuadContainer_do_get_inputs(self)
7278 def do_get_interactions(self):
7279 """do_get_interactions(QuadContainer self) -> IMP::ModelObjectsTemps"""
7280 return _IMP_kernel.QuadContainer_do_get_interactions(self)
7283 def do_get_contents_hash(self):
7284 """do_get_contents_hash(QuadContainer self) -> std::size_t"""
7285 return _IMP_kernel.QuadContainer_do_get_contents_hash(self)
7287 QuadContainer_swigregister = _IMP_kernel.QuadContainer_swigregister
7288 QuadContainer_swigregister(QuadContainer)
7290 class _QuadContainerAdaptor(_InputAdaptor):
7291 """Proxy of C++ IMP::QuadContainerAdaptor class."""
7293 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7294 __repr__ = _swig_repr
7296 def __init__(self, *args):
7298 __init__(IMP::QuadContainerAdaptor self) -> _QuadContainerAdaptor
7299 __init__(IMP::QuadContainerAdaptor self, QuadContainer c) -> _QuadContainerAdaptor
7300 __init__(IMP::QuadContainerAdaptor self, IMP::ParticleQuadsTemp const & t) -> _QuadContainerAdaptor
7302 this = _IMP_kernel.new__QuadContainerAdaptor(*args)
7304 self.this.append(this)
7305 except __builtin__.Exception:
7308 def set_name_if_default(self, name):
7309 """set_name_if_default(_QuadContainerAdaptor self, std::string name)"""
7310 return _IMP_kernel._QuadContainerAdaptor_set_name_if_default(self, name)
7312 __swig_destroy__ = _IMP_kernel.delete__QuadContainerAdaptor
7313 __del__ =
lambda self:
None
7314 _QuadContainerAdaptor_swigregister = _IMP_kernel._QuadContainerAdaptor_swigregister
7315 _QuadContainerAdaptor_swigregister(_QuadContainerAdaptor)
7317 class SingletonModifier(_ParticleInputs, _ParticleOutputs, Object):
7318 """Proxy of C++ IMP::SingletonModifier class."""
7320 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7322 def __init__(self, *args):
7324 __init__(IMP::SingletonModifier self, std::string name) -> SingletonModifier
7325 __init__(IMP::SingletonModifier self) -> SingletonModifier
7327 if self.__class__ == SingletonModifier:
7331 this = _IMP_kernel.new_SingletonModifier(_self, *args)
7333 self.this.append(this)
7334 except __builtin__.Exception:
7337 if self.__class__ != SingletonModifier:
7338 _director_objects.register(self)
7343 def apply_index(self, m, v):
7344 """apply_index(SingletonModifier self, Model m, ParticleIndex v)"""
7345 return _IMP_kernel.SingletonModifier_apply_index(self, m, v)
7348 def apply_indexes(self, m, o, lower_bound, upper_bound):
7349 """apply_indexes(SingletonModifier self, Model m, IMP::ParticleIndexes const & o, unsigned int lower_bound, unsigned int upper_bound)"""
7350 return _IMP_kernel.SingletonModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
7354 """__str__(SingletonModifier self) -> std::string"""
7355 return _IMP_kernel.SingletonModifier___str__(self)
7359 """__repr__(SingletonModifier self) -> std::string"""
7360 return _IMP_kernel.SingletonModifier___repr__(self)
7365 return _object_cast_to_SingletonModifier(o)
7368 def get_type_name(self):
7369 return self.__class__.__name__
7370 def do_show(self, out):
7372 def get_version_info(self):
7374 return VersionInfo(self.__module__,
7375 __import__(self.__module__).get_module_version())
7378 __import__(self.__module__).get_module_version())
7381 return _object_cast_to_SingletonModifier(o)
7383 __swig_destroy__ = _IMP_kernel.delete_SingletonModifier
7384 __del__ =
lambda self:
None
7385 def __disown__(self):
7387 _IMP_kernel.disown_SingletonModifier(self)
7388 return weakref_proxy(self)
7390 def do_get_inputs(self, m, pis):
7391 """do_get_inputs(SingletonModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7392 return _IMP_kernel.SingletonModifier_do_get_inputs(self, m, pis)
7395 def do_get_outputs(self, m, pis):
7396 """do_get_outputs(SingletonModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7397 return _IMP_kernel.SingletonModifier_do_get_outputs(self, m, pis)
7400 def do_destroy(self):
7401 """do_destroy(SingletonModifier self)"""
7402 return _IMP_kernel.SingletonModifier_do_destroy(self)
7404 SingletonModifier_swigregister = _IMP_kernel.SingletonModifier_swigregister
7405 SingletonModifier_swigregister(SingletonModifier)
7407 class SingletonScore(_ParticleInputs, Object):
7408 """Proxy of C++ IMP::SingletonScore class."""
7410 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7412 def __init__(self, *args):
7414 __init__(IMP::SingletonScore self, std::string name) -> SingletonScore
7415 __init__(IMP::SingletonScore self) -> SingletonScore
7417 if self.__class__ == SingletonScore:
7421 this = _IMP_kernel.new_SingletonScore(_self, *args)
7423 self.this.append(this)
7424 except __builtin__.Exception:
7427 if self.__class__ != SingletonScore:
7428 _director_objects.register(self)
7433 def evaluate_index(self, m, vt, da):
7434 """evaluate_index(SingletonScore self, Model m, ParticleIndex vt, DerivativeAccumulator da) -> double"""
7435 return _IMP_kernel.SingletonScore_evaluate_index(self, m, vt, da)
7438 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
7439 """evaluate_indexes(SingletonScore self, Model m, IMP::ParticleIndexes const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7440 return _IMP_kernel.SingletonScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
7443 def evaluate_if_good_index(self, m, vt, da, max):
7444 """evaluate_if_good_index(SingletonScore self, Model m, ParticleIndex vt, DerivativeAccumulator da, double max) -> double"""
7445 return _IMP_kernel.SingletonScore_evaluate_if_good_index(self, m, vt, da, max)
7448 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
7449 """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"""
7450 return _IMP_kernel.SingletonScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
7453 def create_current_decomposition(self, m, vt):
7454 """create_current_decomposition(SingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
7455 return _IMP_kernel.SingletonScore_create_current_decomposition(self, m, vt)
7458 def do_create_current_decomposition(self, m, vt):
7459 """do_create_current_decomposition(SingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
7460 return _IMP_kernel.SingletonScore_do_create_current_decomposition(self, m, vt)
7462 __swig_destroy__ = _IMP_kernel.delete_SingletonScore
7463 __del__ =
lambda self:
None
7466 """__str__(SingletonScore self) -> std::string"""
7467 return _IMP_kernel.SingletonScore___str__(self)
7471 """__repr__(SingletonScore self) -> std::string"""
7472 return _IMP_kernel.SingletonScore___repr__(self)
7477 return _object_cast_to_SingletonScore(o)
7480 def get_type_name(self):
7481 return self.__class__.__name__
7482 def do_show(self, out):
7484 def get_version_info(self):
7486 return VersionInfo(self.__module__,
7487 __import__(self.__module__).get_module_version())
7490 __import__(self.__module__).get_module_version())
7493 return _object_cast_to_SingletonScore(o)
7495 def __disown__(self):
7497 _IMP_kernel.disown_SingletonScore(self)
7498 return weakref_proxy(self)
7500 def do_get_inputs(self, m, pis):
7501 """do_get_inputs(SingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7502 return _IMP_kernel.SingletonScore_do_get_inputs(self, m, pis)
7505 def do_destroy(self):
7506 """do_destroy(SingletonScore self)"""
7507 return _IMP_kernel.SingletonScore_do_destroy(self)
7509 SingletonScore_swigregister = _IMP_kernel.SingletonScore_swigregister
7510 SingletonScore_swigregister(SingletonScore)
7512 class SingletonPredicate(_ParticleInputs, Object):
7513 """Proxy of C++ IMP::SingletonPredicate class."""
7515 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7517 def __init__(self, *args):
7519 __init__(IMP::SingletonPredicate self, std::string name) -> SingletonPredicate
7520 __init__(IMP::SingletonPredicate self) -> SingletonPredicate
7522 if self.__class__ == SingletonPredicate:
7526 this = _IMP_kernel.new_SingletonPredicate(_self, *args)
7528 self.this.append(this)
7529 except __builtin__.Exception:
7532 if self.__class__ != SingletonPredicate:
7533 _director_objects.register(self)
7538 def get_value(self, *args):
7540 get_value(SingletonPredicate self, Particle vt) -> int
7541 get_value(SingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
7543 return _IMP_kernel.SingletonPredicate_get_value(self, *args)
7546 def setup_for_get_value_index_in_batch(self, arg0):
7547 """setup_for_get_value_index_in_batch(SingletonPredicate self, Model arg0)"""
7548 return _IMP_kernel.SingletonPredicate_setup_for_get_value_index_in_batch(self, arg0)
7551 def get_value_index_in_batch(self, m, vt):
7552 """get_value_index_in_batch(SingletonPredicate self, Model m, ParticleIndex vt) -> int"""
7553 return _IMP_kernel.SingletonPredicate_get_value_index_in_batch(self, m, vt)
7556 def __call__(self, m, vt):
7557 """__call__(SingletonPredicate self, Model m, ParticleIndex vt) -> int"""
7558 return _IMP_kernel.SingletonPredicate___call__(self, m, vt)
7561 def get_value_index(self, *args):
7563 get_value_index(SingletonPredicate self, Model m, ParticleIndex vt) -> int
7564 get_value_index(SingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
7566 return _IMP_kernel.SingletonPredicate_get_value_index(self, *args)
7568 __swig_destroy__ = _IMP_kernel.delete_SingletonPredicate
7569 __del__ =
lambda self:
None
7572 """__str__(SingletonPredicate self) -> std::string"""
7573 return _IMP_kernel.SingletonPredicate___str__(self)
7577 """__repr__(SingletonPredicate self) -> std::string"""
7578 return _IMP_kernel.SingletonPredicate___repr__(self)
7583 return _object_cast_to_SingletonPredicate(o)
7586 def get_type_name(self):
7587 return self.__class__.__name__
7588 def do_show(self, out):
7590 def get_version_info(self):
7592 return VersionInfo(self.__module__,
7593 __import__(self.__module__).get_module_version())
7596 __import__(self.__module__).get_module_version())
7599 return _object_cast_to_SingletonPredicate(o)
7601 def __disown__(self):
7603 _IMP_kernel.disown_SingletonPredicate(self)
7604 return weakref_proxy(self)
7606 def do_get_inputs(self, m, pis):
7607 """do_get_inputs(SingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7608 return _IMP_kernel.SingletonPredicate_do_get_inputs(self, m, pis)
7611 def do_destroy(self):
7612 """do_destroy(SingletonPredicate self)"""
7613 return _IMP_kernel.SingletonPredicate_do_destroy(self)
7615 SingletonPredicate_swigregister = _IMP_kernel.SingletonPredicate_swigregister
7616 SingletonPredicate_swigregister(SingletonPredicate)
7618 class SingletonContainer(Container):
7619 """Proxy of C++ IMP::SingletonContainer class."""
7621 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7623 def apply_generic(self, m):
7624 """apply_generic(SingletonContainer self, SingletonModifier m)"""
7625 return _IMP_kernel.SingletonContainer_apply_generic(self, m)
7628 def apply(self, sm):
7629 """apply(SingletonContainer self, SingletonModifier sm)"""
7630 return _IMP_kernel.SingletonContainer_apply(self, sm)
7633 def get_range_indexes(self):
7634 """get_range_indexes(SingletonContainer self) -> IMP::ParticleIndexes"""
7635 return _IMP_kernel.SingletonContainer_get_range_indexes(self)
7638 def get_contents(self):
7639 """get_contents(SingletonContainer self) -> IMP::ParticleIndexes const &"""
7640 return _IMP_kernel.SingletonContainer_get_contents(self)
7644 """get_indexes(SingletonContainer self) -> IMP::ParticleIndexes"""
7645 return _IMP_kernel.SingletonContainer_get_indexes(self)
7648 def get(self, *args):
7650 get(SingletonContainer self) -> IMP::ParticlesTemp
7651 get(SingletonContainer self, unsigned int i) -> Particle
7653 return _IMP_kernel.SingletonContainer_get(self, *args)
7656 def get_number(self):
7657 """get_number(SingletonContainer self) -> unsigned int"""
7658 return _IMP_kernel.SingletonContainer_get_number(self)
7662 """get_particles(SingletonContainer self) -> IMP::ParticlesTemp"""
7663 return _IMP_kernel.SingletonContainer_get_particles(self)
7666 def get_particle(self, i):
7667 """get_particle(SingletonContainer self, unsigned int i) -> Particle"""
7668 return _IMP_kernel.SingletonContainer_get_particle(self, i)
7671 def __init__(self, *args):
7673 __init__(IMP::SingletonContainer self, Model m, std::string name) -> SingletonContainer
7674 __init__(IMP::SingletonContainer self, Model m) -> SingletonContainer
7676 if self.__class__ == SingletonContainer:
7680 this = _IMP_kernel.new_SingletonContainer(_self, *args)
7682 self.this.append(this)
7683 except __builtin__.Exception:
7686 if self.__class__ != SingletonContainer:
7687 _director_objects.register(self)
7692 def do_apply(self, sm):
7693 """do_apply(SingletonContainer self, SingletonModifier sm)"""
7694 return _IMP_kernel.SingletonContainer_do_apply(self, sm)
7697 def do_get_provides_access(self):
7698 """do_get_provides_access(SingletonContainer self) -> bool"""
7699 return _IMP_kernel.SingletonContainer_do_get_provides_access(self)
7701 __swig_destroy__ = _IMP_kernel.delete_SingletonContainer
7702 __del__ =
lambda self:
None
7705 """__str__(SingletonContainer self) -> std::string"""
7706 return _IMP_kernel.SingletonContainer___str__(self)
7710 """__repr__(SingletonContainer self) -> std::string"""
7711 return _IMP_kernel.SingletonContainer___repr__(self)
7716 return _object_cast_to_SingletonContainer(o)
7719 def get_type_name(self):
7720 return self.__class__.__name__
7721 def do_show(self, out):
7723 def get_version_info(self):
7725 return VersionInfo(self.__module__,
7726 __import__(self.__module__).get_module_version())
7729 __import__(self.__module__).get_module_version())
7732 return _object_cast_to_SingletonContainer(o)
7734 def __disown__(self):
7736 _IMP_kernel.disown_SingletonContainer(self)
7737 return weakref_proxy(self)
7739 def do_destroy(self):
7740 """do_destroy(SingletonContainer self)"""
7741 return _IMP_kernel.SingletonContainer_do_destroy(self)
7744 def handle_set_has_required_score_states(self, arg0):
7745 """handle_set_has_required_score_states(SingletonContainer self, bool arg0)"""
7746 return _IMP_kernel.SingletonContainer_handle_set_has_required_score_states(self, arg0)
7749 def do_get_inputs(self):
7750 """do_get_inputs(SingletonContainer self) -> IMP::ModelObjectsTemp"""
7751 return _IMP_kernel.SingletonContainer_do_get_inputs(self)
7754 def do_get_interactions(self):
7755 """do_get_interactions(SingletonContainer self) -> IMP::ModelObjectsTemps"""
7756 return _IMP_kernel.SingletonContainer_do_get_interactions(self)
7759 def do_get_contents_hash(self):
7760 """do_get_contents_hash(SingletonContainer self) -> std::size_t"""
7761 return _IMP_kernel.SingletonContainer_do_get_contents_hash(self)
7763 SingletonContainer_swigregister = _IMP_kernel.SingletonContainer_swigregister
7764 SingletonContainer_swigregister(SingletonContainer)
7766 class _SingletonContainerAdaptor(_InputAdaptor):
7767 """Proxy of C++ IMP::SingletonContainerAdaptor class."""
7769 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7770 __repr__ = _swig_repr
7772 def __init__(self, *args):
7774 __init__(IMP::SingletonContainerAdaptor self) -> _SingletonContainerAdaptor
7775 __init__(IMP::SingletonContainerAdaptor self, SingletonContainer c) -> _SingletonContainerAdaptor
7776 __init__(IMP::SingletonContainerAdaptor self, IMP::ParticlesTemp const & t) -> _SingletonContainerAdaptor
7778 this = _IMP_kernel.new__SingletonContainerAdaptor(*args)
7780 self.this.append(this)
7781 except __builtin__.Exception:
7784 def set_name_if_default(self, name):
7785 """set_name_if_default(_SingletonContainerAdaptor self, std::string name)"""
7786 return _IMP_kernel._SingletonContainerAdaptor_set_name_if_default(self, name)
7788 __swig_destroy__ = _IMP_kernel.delete__SingletonContainerAdaptor
7789 __del__ =
lambda self:
None
7790 _SingletonContainerAdaptor_swigregister = _IMP_kernel._SingletonContainerAdaptor_swigregister
7791 _SingletonContainerAdaptor_swigregister(_SingletonContainerAdaptor)
7793 class TripletModifier(_ParticleInputs, _ParticleOutputs, Object):
7794 """Proxy of C++ IMP::TripletModifier class."""
7796 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7798 def __init__(self, *args):
7800 __init__(IMP::TripletModifier self, std::string name) -> TripletModifier
7801 __init__(IMP::TripletModifier self) -> TripletModifier
7803 if self.__class__ == TripletModifier:
7807 this = _IMP_kernel.new_TripletModifier(_self, *args)
7809 self.this.append(this)
7810 except __builtin__.Exception:
7813 if self.__class__ != TripletModifier:
7814 _director_objects.register(self)
7819 def apply_index(self, m, v):
7820 """apply_index(TripletModifier self, Model m, IMP::ParticleIndexTriplet const & v)"""
7821 return _IMP_kernel.TripletModifier_apply_index(self, m, v)
7824 def apply_indexes(self, m, o, lower_bound, upper_bound):
7825 """apply_indexes(TripletModifier self, Model m, IMP::ParticleIndexTriplets const & o, unsigned int lower_bound, unsigned int upper_bound)"""
7826 return _IMP_kernel.TripletModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
7830 """__str__(TripletModifier self) -> std::string"""
7831 return _IMP_kernel.TripletModifier___str__(self)
7835 """__repr__(TripletModifier self) -> std::string"""
7836 return _IMP_kernel.TripletModifier___repr__(self)
7841 return _object_cast_to_TripletModifier(o)
7844 def get_type_name(self):
7845 return self.__class__.__name__
7846 def do_show(self, out):
7848 def get_version_info(self):
7850 return VersionInfo(self.__module__,
7851 __import__(self.__module__).get_module_version())
7854 __import__(self.__module__).get_module_version())
7857 return _object_cast_to_TripletModifier(o)
7859 __swig_destroy__ = _IMP_kernel.delete_TripletModifier
7860 __del__ =
lambda self:
None
7861 def __disown__(self):
7863 _IMP_kernel.disown_TripletModifier(self)
7864 return weakref_proxy(self)
7866 def do_get_inputs(self, m, pis):
7867 """do_get_inputs(TripletModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7868 return _IMP_kernel.TripletModifier_do_get_inputs(self, m, pis)
7871 def do_get_outputs(self, m, pis):
7872 """do_get_outputs(TripletModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7873 return _IMP_kernel.TripletModifier_do_get_outputs(self, m, pis)
7876 def do_destroy(self):
7877 """do_destroy(TripletModifier self)"""
7878 return _IMP_kernel.TripletModifier_do_destroy(self)
7880 TripletModifier_swigregister = _IMP_kernel.TripletModifier_swigregister
7881 TripletModifier_swigregister(TripletModifier)
7883 class TripletScore(_ParticleInputs, Object):
7884 """Proxy of C++ IMP::TripletScore class."""
7886 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7888 def __init__(self, *args):
7890 __init__(IMP::TripletScore self, std::string name) -> TripletScore
7891 __init__(IMP::TripletScore self) -> TripletScore
7893 if self.__class__ == TripletScore:
7897 this = _IMP_kernel.new_TripletScore(_self, *args)
7899 self.this.append(this)
7900 except __builtin__.Exception:
7903 if self.__class__ != TripletScore:
7904 _director_objects.register(self)
7909 def evaluate_index(self, m, vt, da):
7910 """evaluate_index(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt, DerivativeAccumulator da) -> double"""
7911 return _IMP_kernel.TripletScore_evaluate_index(self, m, vt, da)
7914 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
7915 """evaluate_indexes(TripletScore self, Model m, IMP::ParticleIndexTriplets const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7916 return _IMP_kernel.TripletScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
7919 def evaluate_if_good_index(self, m, vt, da, max):
7920 """evaluate_if_good_index(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt, DerivativeAccumulator da, double max) -> double"""
7921 return _IMP_kernel.TripletScore_evaluate_if_good_index(self, m, vt, da, max)
7924 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
7925 """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"""
7926 return _IMP_kernel.TripletScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
7929 def create_current_decomposition(self, m, vt):
7930 """create_current_decomposition(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
7931 return _IMP_kernel.TripletScore_create_current_decomposition(self, m, vt)
7934 def do_create_current_decomposition(self, m, vt):
7935 """do_create_current_decomposition(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
7936 return _IMP_kernel.TripletScore_do_create_current_decomposition(self, m, vt)
7938 __swig_destroy__ = _IMP_kernel.delete_TripletScore
7939 __del__ =
lambda self:
None
7942 """__str__(TripletScore self) -> std::string"""
7943 return _IMP_kernel.TripletScore___str__(self)
7947 """__repr__(TripletScore self) -> std::string"""
7948 return _IMP_kernel.TripletScore___repr__(self)
7953 return _object_cast_to_TripletScore(o)
7956 def get_type_name(self):
7957 return self.__class__.__name__
7958 def do_show(self, out):
7960 def get_version_info(self):
7962 return VersionInfo(self.__module__,
7963 __import__(self.__module__).get_module_version())
7966 __import__(self.__module__).get_module_version())
7969 return _object_cast_to_TripletScore(o)
7971 def __disown__(self):
7973 _IMP_kernel.disown_TripletScore(self)
7974 return weakref_proxy(self)
7976 def do_get_inputs(self, m, pis):
7977 """do_get_inputs(TripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7978 return _IMP_kernel.TripletScore_do_get_inputs(self, m, pis)
7981 def do_destroy(self):
7982 """do_destroy(TripletScore self)"""
7983 return _IMP_kernel.TripletScore_do_destroy(self)
7985 TripletScore_swigregister = _IMP_kernel.TripletScore_swigregister
7986 TripletScore_swigregister(TripletScore)
7988 class TripletPredicate(_ParticleInputs, Object):
7989 """Proxy of C++ IMP::TripletPredicate class."""
7991 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7993 def __init__(self, *args):
7995 __init__(IMP::TripletPredicate self, std::string name) -> TripletPredicate
7996 __init__(IMP::TripletPredicate self) -> TripletPredicate
7998 if self.__class__ == TripletPredicate:
8002 this = _IMP_kernel.new_TripletPredicate(_self, *args)
8004 self.this.append(this)
8005 except __builtin__.Exception:
8008 if self.__class__ != TripletPredicate:
8009 _director_objects.register(self)
8014 def get_value(self, *args):
8016 get_value(TripletPredicate self, IMP::ParticleTriplet const & vt) -> int
8017 get_value(TripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
8019 return _IMP_kernel.TripletPredicate_get_value(self, *args)
8022 def setup_for_get_value_index_in_batch(self, arg0):
8023 """setup_for_get_value_index_in_batch(TripletPredicate self, Model arg0)"""
8024 return _IMP_kernel.TripletPredicate_setup_for_get_value_index_in_batch(self, arg0)
8027 def get_value_index_in_batch(self, m, vt):
8028 """get_value_index_in_batch(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int"""
8029 return _IMP_kernel.TripletPredicate_get_value_index_in_batch(self, m, vt)
8032 def __call__(self, m, vt):
8033 """__call__(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int"""
8034 return _IMP_kernel.TripletPredicate___call__(self, m, vt)
8037 def get_value_index(self, *args):
8039 get_value_index(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int
8040 get_value_index(TripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
8042 return _IMP_kernel.TripletPredicate_get_value_index(self, *args)
8044 __swig_destroy__ = _IMP_kernel.delete_TripletPredicate
8045 __del__ =
lambda self:
None
8048 """__str__(TripletPredicate self) -> std::string"""
8049 return _IMP_kernel.TripletPredicate___str__(self)
8053 """__repr__(TripletPredicate self) -> std::string"""
8054 return _IMP_kernel.TripletPredicate___repr__(self)
8059 return _object_cast_to_TripletPredicate(o)
8062 def get_type_name(self):
8063 return self.__class__.__name__
8064 def do_show(self, out):
8066 def get_version_info(self):
8068 return VersionInfo(self.__module__,
8069 __import__(self.__module__).get_module_version())
8072 __import__(self.__module__).get_module_version())
8075 return _object_cast_to_TripletPredicate(o)
8077 def __disown__(self):
8079 _IMP_kernel.disown_TripletPredicate(self)
8080 return weakref_proxy(self)
8082 def do_get_inputs(self, m, pis):
8083 """do_get_inputs(TripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8084 return _IMP_kernel.TripletPredicate_do_get_inputs(self, m, pis)
8087 def do_destroy(self):
8088 """do_destroy(TripletPredicate self)"""
8089 return _IMP_kernel.TripletPredicate_do_destroy(self)
8091 TripletPredicate_swigregister = _IMP_kernel.TripletPredicate_swigregister
8092 TripletPredicate_swigregister(TripletPredicate)
8094 class TripletContainer(Container):
8095 """Proxy of C++ IMP::TripletContainer class."""
8097 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8099 def apply_generic(self, m):
8100 """apply_generic(TripletContainer self, TripletModifier m)"""
8101 return _IMP_kernel.TripletContainer_apply_generic(self, m)
8104 def apply(self, sm):
8105 """apply(TripletContainer self, TripletModifier sm)"""
8106 return _IMP_kernel.TripletContainer_apply(self, sm)
8109 def get_range_indexes(self):
8110 """get_range_indexes(TripletContainer self) -> IMP::ParticleIndexTriplets"""
8111 return _IMP_kernel.TripletContainer_get_range_indexes(self)
8114 def get_contents(self):
8115 """get_contents(TripletContainer self) -> IMP::ParticleIndexTriplets const &"""
8116 return _IMP_kernel.TripletContainer_get_contents(self)
8120 """get_indexes(TripletContainer self) -> IMP::ParticleIndexTriplets"""
8121 return _IMP_kernel.TripletContainer_get_indexes(self)
8124 def get(self, *args):
8126 get(TripletContainer self) -> IMP::ParticleTripletsTemp
8127 get(TripletContainer self, unsigned int i) -> IMP::ParticleTriplet
8129 return _IMP_kernel.TripletContainer_get(self, *args)
8132 def get_number(self):
8133 """get_number(TripletContainer self) -> unsigned int"""
8134 return _IMP_kernel.TripletContainer_get_number(self)
8137 def get_particle_triplets(self):
8138 """get_particle_triplets(TripletContainer self) -> IMP::ParticleTripletsTemp"""
8139 return _IMP_kernel.TripletContainer_get_particle_triplets(self)
8142 def get_particle_triplet(self, i):
8143 """get_particle_triplet(TripletContainer self, unsigned int i) -> IMP::ParticleTriplet"""
8144 return _IMP_kernel.TripletContainer_get_particle_triplet(self, i)
8147 def __init__(self, *args):
8149 __init__(IMP::TripletContainer self, Model m, std::string name) -> TripletContainer
8150 __init__(IMP::TripletContainer self, Model m) -> TripletContainer
8152 if self.__class__ == TripletContainer:
8156 this = _IMP_kernel.new_TripletContainer(_self, *args)
8158 self.this.append(this)
8159 except __builtin__.Exception:
8162 if self.__class__ != TripletContainer:
8163 _director_objects.register(self)
8168 def do_apply(self, sm):
8169 """do_apply(TripletContainer self, TripletModifier sm)"""
8170 return _IMP_kernel.TripletContainer_do_apply(self, sm)
8173 def do_get_provides_access(self):
8174 """do_get_provides_access(TripletContainer self) -> bool"""
8175 return _IMP_kernel.TripletContainer_do_get_provides_access(self)
8177 __swig_destroy__ = _IMP_kernel.delete_TripletContainer
8178 __del__ =
lambda self:
None
8181 """__str__(TripletContainer self) -> std::string"""
8182 return _IMP_kernel.TripletContainer___str__(self)
8186 """__repr__(TripletContainer self) -> std::string"""
8187 return _IMP_kernel.TripletContainer___repr__(self)
8192 return _object_cast_to_TripletContainer(o)
8195 def get_type_name(self):
8196 return self.__class__.__name__
8197 def do_show(self, out):
8199 def get_version_info(self):
8201 return VersionInfo(self.__module__,
8202 __import__(self.__module__).get_module_version())
8205 __import__(self.__module__).get_module_version())
8208 return _object_cast_to_TripletContainer(o)
8210 def __disown__(self):
8212 _IMP_kernel.disown_TripletContainer(self)
8213 return weakref_proxy(self)
8215 def do_destroy(self):
8216 """do_destroy(TripletContainer self)"""
8217 return _IMP_kernel.TripletContainer_do_destroy(self)
8220 def handle_set_has_required_score_states(self, arg0):
8221 """handle_set_has_required_score_states(TripletContainer self, bool arg0)"""
8222 return _IMP_kernel.TripletContainer_handle_set_has_required_score_states(self, arg0)
8225 def do_get_inputs(self):
8226 """do_get_inputs(TripletContainer self) -> IMP::ModelObjectsTemp"""
8227 return _IMP_kernel.TripletContainer_do_get_inputs(self)
8230 def do_get_interactions(self):
8231 """do_get_interactions(TripletContainer self) -> IMP::ModelObjectsTemps"""
8232 return _IMP_kernel.TripletContainer_do_get_interactions(self)
8235 def do_get_contents_hash(self):
8236 """do_get_contents_hash(TripletContainer self) -> std::size_t"""
8237 return _IMP_kernel.TripletContainer_do_get_contents_hash(self)
8239 TripletContainer_swigregister = _IMP_kernel.TripletContainer_swigregister
8240 TripletContainer_swigregister(TripletContainer)
8242 class _TripletContainerAdaptor(_InputAdaptor):
8243 """Proxy of C++ IMP::TripletContainerAdaptor class."""
8245 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8246 __repr__ = _swig_repr
8248 def __init__(self, *args):
8250 __init__(IMP::TripletContainerAdaptor self) -> _TripletContainerAdaptor
8251 __init__(IMP::TripletContainerAdaptor self, TripletContainer c) -> _TripletContainerAdaptor
8252 __init__(IMP::TripletContainerAdaptor self, IMP::ParticleTripletsTemp const & t) -> _TripletContainerAdaptor
8254 this = _IMP_kernel.new__TripletContainerAdaptor(*args)
8256 self.this.append(this)
8257 except __builtin__.Exception:
8260 def set_name_if_default(self, name):
8261 """set_name_if_default(_TripletContainerAdaptor self, std::string name)"""
8262 return _IMP_kernel._TripletContainerAdaptor_set_name_if_default(self, name)
8264 __swig_destroy__ = _IMP_kernel.delete__TripletContainerAdaptor
8265 __del__ =
lambda self:
None
8266 _TripletContainerAdaptor_swigregister = _IMP_kernel._TripletContainerAdaptor_swigregister
8267 _TripletContainerAdaptor_swigregister(_TripletContainerAdaptor)
8271 """write_particles_to_buffer(IMP::ParticlesTemp const & particles, IMP::FloatKeys const & keys) -> IMP::Vector< char >"""
8272 return _IMP_kernel.write_particles_to_buffer(particles, keys)
8275 """read_particles_from_buffer(IMP::Vector< char > const & buffer, IMP::ParticlesTemp const & particles, IMP::FloatKeys const & keys)"""
8276 return _IMP_kernel.read_particles_from_buffer(buffer, particles, keys)
8279 """get_particles(Model m, IMP::ParticleIndexes const & ps) -> IMP::ParticlesTemp"""
8280 return _IMP_kernel.get_particles(m, ps)
8284 get_indexes(IMP::ParticlesTemp const & ps) -> IMP::ParticleIndexes
8285 get_indexes(IMP::ParticlePairsTemp const & ps) -> IMP::ParticleIndexPairs
8287 return _IMP_kernel.get_indexes(*args)
8288 class _ParticleIndexAdaptor(object):
8289 """Proxy of C++ IMP::ParticleIndexAdaptor class."""
8291 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8292 __repr__ = _swig_repr
8294 def __init__(self, *args):
8296 __init__(IMP::ParticleIndexAdaptor self, Particle p) -> _ParticleIndexAdaptor
8297 __init__(IMP::ParticleIndexAdaptor self, ParticleIndex pi) -> _ParticleIndexAdaptor
8298 __init__(IMP::ParticleIndexAdaptor self, Decorator d) -> _ParticleIndexAdaptor
8300 this = _IMP_kernel.new__ParticleIndexAdaptor(*args)
8302 self.this.append(this)
8303 except __builtin__.Exception:
8305 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexAdaptor
8306 __del__ =
lambda self:
None
8307 _ParticleIndexAdaptor_swigregister = _IMP_kernel._ParticleIndexAdaptor_swigregister
8308 _ParticleIndexAdaptor_swigregister(_ParticleIndexAdaptor)
8310 class _ParticleIndexesAdaptor(_InputAdaptor):
8311 """Proxy of C++ IMP::ParticleIndexesAdaptor class."""
8313 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8314 __repr__ = _swig_repr
8316 def __init__(self, *args):
8318 __init__(IMP::ParticleIndexesAdaptor self, IMP::ParticlesTemp const & ps) -> _ParticleIndexesAdaptor
8319 __init__(IMP::ParticleIndexesAdaptor self, IMP::ParticleIndexes const & pi) -> _ParticleIndexesAdaptor
8320 __init__(IMP::ParticleIndexesAdaptor self) -> _ParticleIndexesAdaptor
8322 this = _IMP_kernel.new__ParticleIndexesAdaptor(*args)
8324 self.this.append(this)
8325 except __builtin__.Exception:
8327 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexesAdaptor
8328 __del__ =
lambda self:
None
8329 _ParticleIndexesAdaptor_swigregister = _IMP_kernel._ParticleIndexesAdaptor_swigregister
8330 _ParticleIndexesAdaptor_swigregister(_ParticleIndexesAdaptor)
8332 class _ParticleIndexPairsAdaptor(object):
8333 """Proxy of C++ IMP::ParticleIndexPairsAdaptor class."""
8335 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8336 __repr__ = _swig_repr
8338 def __init__(self, *args):
8340 __init__(IMP::ParticleIndexPairsAdaptor self, IMP::ParticlePairsTemp const & ps) -> _ParticleIndexPairsAdaptor
8341 __init__(IMP::ParticleIndexPairsAdaptor self, IMP::ParticleIndexPairs const & pi) -> _ParticleIndexPairsAdaptor
8342 __init__(IMP::ParticleIndexPairsAdaptor self) -> _ParticleIndexPairsAdaptor
8344 this = _IMP_kernel.new__ParticleIndexPairsAdaptor(*args)
8346 self.this.append(this)
8347 except __builtin__.Exception:
8349 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexPairsAdaptor
8350 __del__ =
lambda self:
None
8351 _ParticleIndexPairsAdaptor_swigregister = _IMP_kernel._ParticleIndexPairsAdaptor_swigregister
8352 _ParticleIndexPairsAdaptor_swigregister(_ParticleIndexPairsAdaptor)
8354 class _ConstRestraint(Restraint):
8355 """Proxy of C++ IMP::internal::_ConstRestraint class."""
8357 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8359 def __init__(self, *args):
8361 __init__(IMP::internal::_ConstRestraint self, double v, IMP::ParticlesTemp const ps) -> _ConstRestraint
8362 __init__(IMP::internal::_ConstRestraint self, Model m, IMP::ParticleIndexes const & pis, double v) -> _ConstRestraint
8364 this = _IMP_kernel.new__ConstRestraint(*args)
8366 self.this.append(this)
8367 except __builtin__.Exception:
8370 def get_value(self):
8371 """get_value(_ConstRestraint self) -> double"""
8372 return _IMP_kernel._ConstRestraint_get_value(self)
8375 def do_create_decomposition(self):
8376 """do_create_decomposition(_ConstRestraint self) -> IMP::Restraints"""
8377 return _IMP_kernel._ConstRestraint_do_create_decomposition(self)
8380 def do_get_inputs(self):
8381 """do_get_inputs(_ConstRestraint self) -> IMP::ModelObjectsTemp"""
8382 return _IMP_kernel._ConstRestraint_do_get_inputs(self)
8385 def get_version_info(self):
8386 """get_version_info(_ConstRestraint self) -> VersionInfo"""
8387 return _IMP_kernel._ConstRestraint_get_version_info(self)
8391 """__str__(_ConstRestraint self) -> std::string"""
8392 return _IMP_kernel._ConstRestraint___str__(self)
8396 """__repr__(_ConstRestraint self) -> std::string"""
8397 return _IMP_kernel._ConstRestraint___repr__(self)
8402 return _object_cast_to__ConstRestraint(o)
8404 _ConstRestraint_swigregister = _IMP_kernel._ConstRestraint_swigregister
8405 _ConstRestraint_swigregister(_ConstRestraint)
8407 class _ConstSingletonScore(SingletonScore):
8408 """Proxy of C++ IMP::internal::_ConstSingletonScore class."""
8410 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8411 __repr__ = _swig_repr
8413 def __init__(self, v):
8414 """__init__(IMP::internal::_ConstSingletonScore self, double v) -> _ConstSingletonScore"""
8415 this = _IMP_kernel.new__ConstSingletonScore(v)
8417 self.this.append(this)
8418 except __builtin__.Exception:
8421 def do_get_inputs(self, arg2, arg3):
8422 """do_get_inputs(_ConstSingletonScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
8423 return _IMP_kernel._ConstSingletonScore_do_get_inputs(self, arg2, arg3)
8426 def get_version_info(self):
8427 """get_version_info(_ConstSingletonScore self) -> VersionInfo"""
8428 return _IMP_kernel._ConstSingletonScore_get_version_info(self)
8430 _ConstSingletonScore_swigregister = _IMP_kernel._ConstSingletonScore_swigregister
8431 _ConstSingletonScore_swigregister(_ConstSingletonScore)
8433 class _ConstPairScore(PairScore):
8434 """Proxy of C++ IMP::internal::_ConstPairScore class."""
8436 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8437 __repr__ = _swig_repr
8439 def __init__(self, v):
8440 """__init__(IMP::internal::_ConstPairScore self, double v) -> _ConstPairScore"""
8441 this = _IMP_kernel.new__ConstPairScore(v)
8443 self.this.append(this)
8444 except __builtin__.Exception:
8447 def do_get_inputs(self, arg2, arg3):
8448 """do_get_inputs(_ConstPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
8449 return _IMP_kernel._ConstPairScore_do_get_inputs(self, arg2, arg3)
8452 def get_version_info(self):
8453 """get_version_info(_ConstPairScore self) -> VersionInfo"""
8454 return _IMP_kernel._ConstPairScore_get_version_info(self)
8456 _ConstPairScore_swigregister = _IMP_kernel._ConstPairScore_swigregister
8457 _ConstPairScore_swigregister(_ConstPairScore)
8459 class _TrivialDecorator(Decorator):
8460 """Proxy of C++ IMP::internal::_TrivialDecorator class."""
8462 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8464 def __init__(self, *args):
8466 __init__(IMP::internal::_TrivialDecorator self) -> _TrivialDecorator
8467 __init__(IMP::internal::_TrivialDecorator self, Model m, ParticleIndex id) -> _TrivialDecorator
8468 __init__(IMP::internal::_TrivialDecorator self, _ParticleAdaptor d) -> _TrivialDecorator
8470 this = _IMP_kernel.new__TrivialDecorator(*args)
8472 self.this.append(this)
8473 except __builtin__.Exception:
8476 def show(self, *args):
8478 show(_TrivialDecorator self, _ostream out)
8479 show(_TrivialDecorator self)
8481 return _IMP_kernel._TrivialDecorator_show(self, *args)
8484 def setup_particle(*args):
8486 setup_particle(Model m, ParticleIndex pi) -> _TrivialDecorator
8487 setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
8489 return _IMP_kernel._TrivialDecorator_setup_particle(*args)
8491 setup_particle = staticmethod(setup_particle)
8493 def get_is_setup(*args):
8495 get_is_setup(_ParticleAdaptor p) -> bool
8496 get_is_setup(Model m, ParticleIndex pi) -> bool
8498 return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
8500 get_is_setup = staticmethod(get_is_setup)
8502 def add_attribute(self, *args):
8504 add_attribute(_TrivialDecorator self, FloatKey k, IMP::Float v, bool opt)
8505 add_attribute(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
8506 add_attribute(_TrivialDecorator self, IntKey a0, IMP::Int a1)
8507 add_attribute(_TrivialDecorator self, StringKey a0, IMP::String a1)
8508 add_attribute(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
8509 add_attribute(_TrivialDecorator self, ObjectKey a0, Object a1)
8511 return _IMP_kernel._TrivialDecorator_add_attribute(self, *args)
8514 def get_value(self, *args):
8516 get_value(_TrivialDecorator self, FloatKey a0) -> IMP::Float
8517 get_value(_TrivialDecorator self, IntKey a0) -> IMP::Int
8518 get_value(_TrivialDecorator self, StringKey a0) -> IMP::String
8519 get_value(_TrivialDecorator self, ParticleIndexKey a0) -> Particle
8520 get_value(_TrivialDecorator self, ObjectKey a0) -> Object
8522 return _IMP_kernel._TrivialDecorator_get_value(self, *args)
8525 def set_value(self, *args):
8527 set_value(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
8528 set_value(_TrivialDecorator self, IntKey a0, IMP::Int a1)
8529 set_value(_TrivialDecorator self, StringKey a0, IMP::String a1)
8530 set_value(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
8531 set_value(_TrivialDecorator self, ObjectKey a0, Object a1)
8533 return _IMP_kernel._TrivialDecorator_set_value(self, *args)
8536 def remove_attribute(self, *args):
8538 remove_attribute(_TrivialDecorator self, FloatKey a0)
8539 remove_attribute(_TrivialDecorator self, IntKey a0)
8540 remove_attribute(_TrivialDecorator self, StringKey a0)
8541 remove_attribute(_TrivialDecorator self, ParticleIndexKey a0)
8542 remove_attribute(_TrivialDecorator self, ObjectKey a0)
8544 return _IMP_kernel._TrivialDecorator_remove_attribute(self, *args)
8547 def has_attribute(self, *args):
8549 has_attribute(_TrivialDecorator self, FloatKey a0) -> bool
8550 has_attribute(_TrivialDecorator self, IntKey a0) -> bool
8551 has_attribute(_TrivialDecorator self, StringKey a0) -> bool
8552 has_attribute(_TrivialDecorator self, ParticleIndexKey a0) -> bool
8553 has_attribute(_TrivialDecorator self, ObjectKey a0) -> bool
8555 return _IMP_kernel._TrivialDecorator_has_attribute(self, *args)
8558 def get_derivative(self, a0):
8559 """get_derivative(_TrivialDecorator self, FloatKey a0) -> double"""
8560 return _IMP_kernel._TrivialDecorator_get_derivative(self, a0)
8564 """get_name(_TrivialDecorator self) -> std::string"""
8565 return _IMP_kernel._TrivialDecorator_get_name(self)
8568 def clear_caches(self):
8569 """clear_caches(_TrivialDecorator self)"""
8570 return _IMP_kernel._TrivialDecorator_clear_caches(self)
8573 def set_name(self, a0):
8574 """set_name(_TrivialDecorator self, std::string a0)"""
8575 return _IMP_kernel._TrivialDecorator_set_name(self, a0)
8579 """set_check_level(_TrivialDecorator self, IMP::CheckLevel a0)"""
8580 return _IMP_kernel._TrivialDecorator_set_check_level(self, a0)
8583 def add_to_derivative(self, a0, a1, a2):
8584 """add_to_derivative(_TrivialDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8585 return _IMP_kernel._TrivialDecorator_add_to_derivative(self, a0, a1, a2)
8588 def set_is_optimized(self, a0, a1):
8589 """set_is_optimized(_TrivialDecorator self, FloatKey a0, bool a1)"""
8590 return _IMP_kernel._TrivialDecorator_set_is_optimized(self, a0, a1)
8593 def get_is_optimized(self, a0):
8594 """get_is_optimized(_TrivialDecorator self, FloatKey a0) -> bool"""
8595 return _IMP_kernel._TrivialDecorator_get_is_optimized(self, a0)
8599 """get_check_level(_TrivialDecorator self) -> IMP::CheckLevel"""
8600 return _IMP_kernel._TrivialDecorator_get_check_level(self)
8603 def __eq__(self, *args):
8605 __eq__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8606 __eq__(_TrivialDecorator self, Particle d) -> bool
8608 return _IMP_kernel._TrivialDecorator___eq__(self, *args)
8611 def __ne__(self, *args):
8613 __ne__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8614 __ne__(_TrivialDecorator self, Particle d) -> bool
8616 return _IMP_kernel._TrivialDecorator___ne__(self, *args)
8619 def __le__(self, *args):
8621 __le__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8622 __le__(_TrivialDecorator self, Particle d) -> bool
8624 return _IMP_kernel._TrivialDecorator___le__(self, *args)
8627 def __lt__(self, *args):
8629 __lt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8630 __lt__(_TrivialDecorator self, Particle d) -> bool
8632 return _IMP_kernel._TrivialDecorator___lt__(self, *args)
8635 def __ge__(self, *args):
8637 __ge__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8638 __ge__(_TrivialDecorator self, Particle d) -> bool
8640 return _IMP_kernel._TrivialDecorator___ge__(self, *args)
8643 def __gt__(self, *args):
8645 __gt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8646 __gt__(_TrivialDecorator self, Particle d) -> bool
8648 return _IMP_kernel._TrivialDecorator___gt__(self, *args)
8652 """__hash__(_TrivialDecorator self) -> std::size_t"""
8653 return _IMP_kernel._TrivialDecorator___hash__(self)
8657 """__str__(_TrivialDecorator self) -> std::string"""
8658 return _IMP_kernel._TrivialDecorator___str__(self)
8662 """__repr__(_TrivialDecorator self) -> std::string"""
8663 return _IMP_kernel._TrivialDecorator___repr__(self)
8665 __swig_destroy__ = _IMP_kernel.delete__TrivialDecorator
8666 __del__ =
lambda self:
None
8667 _TrivialDecorator_swigregister = _IMP_kernel._TrivialDecorator_swigregister
8668 _TrivialDecorator_swigregister(_TrivialDecorator)
8670 def _TrivialDecorator_setup_particle(*args):
8672 setup_particle(Model m, ParticleIndex pi) -> _TrivialDecorator
8673 _TrivialDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
8675 return _IMP_kernel._TrivialDecorator_setup_particle(*args)
8677 def _TrivialDecorator_get_is_setup(*args):
8679 get_is_setup(_ParticleAdaptor p) -> bool
8680 _TrivialDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
8682 return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
8684 class _TrivialDerivedDecorator(_TrivialDecorator):
8685 """Proxy of C++ IMP::internal::_TrivialDerivedDecorator class."""
8687 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8689 def __init__(self, *args):
8691 __init__(IMP::internal::_TrivialDerivedDecorator self) -> _TrivialDerivedDecorator
8692 __init__(IMP::internal::_TrivialDerivedDecorator self, Model m, ParticleIndex id) -> _TrivialDerivedDecorator
8693 __init__(IMP::internal::_TrivialDerivedDecorator self, _ParticleAdaptor d) -> _TrivialDerivedDecorator
8695 this = _IMP_kernel.new__TrivialDerivedDecorator(*args)
8697 self.this.append(this)
8698 except __builtin__.Exception:
8701 def show(self, *args):
8703 show(_TrivialDerivedDecorator self, _ostream out)
8704 show(_TrivialDerivedDecorator self)
8706 return _IMP_kernel._TrivialDerivedDecorator_show(self, *args)
8709 def setup_particle(*args):
8711 setup_particle(Model m, ParticleIndex pi) -> _TrivialDerivedDecorator
8712 setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
8714 return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
8716 setup_particle = staticmethod(setup_particle)
8718 def get_is_setup(*args):
8720 get_is_setup(_ParticleAdaptor p) -> bool
8721 get_is_setup(Model m, ParticleIndex pi) -> bool
8723 return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
8725 get_is_setup = staticmethod(get_is_setup)
8727 def add_attribute(self, *args):
8729 add_attribute(_TrivialDerivedDecorator self, FloatKey k, IMP::Float v, bool opt)
8730 add_attribute(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
8731 add_attribute(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
8732 add_attribute(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
8733 add_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
8734 add_attribute(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
8736 return _IMP_kernel._TrivialDerivedDecorator_add_attribute(self, *args)
8739 def get_value(self, *args):
8741 get_value(_TrivialDerivedDecorator self, FloatKey a0) -> IMP::Float
8742 get_value(_TrivialDerivedDecorator self, IntKey a0) -> IMP::Int
8743 get_value(_TrivialDerivedDecorator self, StringKey a0) -> IMP::String
8744 get_value(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> Particle
8745 get_value(_TrivialDerivedDecorator self, ObjectKey a0) -> Object
8747 return _IMP_kernel._TrivialDerivedDecorator_get_value(self, *args)
8750 def set_value(self, *args):
8752 set_value(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
8753 set_value(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
8754 set_value(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
8755 set_value(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
8756 set_value(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
8758 return _IMP_kernel._TrivialDerivedDecorator_set_value(self, *args)
8761 def remove_attribute(self, *args):
8763 remove_attribute(_TrivialDerivedDecorator self, FloatKey a0)
8764 remove_attribute(_TrivialDerivedDecorator self, IntKey a0)
8765 remove_attribute(_TrivialDerivedDecorator self, StringKey a0)
8766 remove_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0)
8767 remove_attribute(_TrivialDerivedDecorator self, ObjectKey a0)
8769 return _IMP_kernel._TrivialDerivedDecorator_remove_attribute(self, *args)
8772 def has_attribute(self, *args):
8774 has_attribute(_TrivialDerivedDecorator self, FloatKey a0) -> bool
8775 has_attribute(_TrivialDerivedDecorator self, IntKey a0) -> bool
8776 has_attribute(_TrivialDerivedDecorator self, StringKey a0) -> bool
8777 has_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> bool
8778 has_attribute(_TrivialDerivedDecorator self, ObjectKey a0) -> bool
8780 return _IMP_kernel._TrivialDerivedDecorator_has_attribute(self, *args)
8783 def get_derivative(self, a0):
8784 """get_derivative(_TrivialDerivedDecorator self, FloatKey a0) -> double"""
8785 return _IMP_kernel._TrivialDerivedDecorator_get_derivative(self, a0)
8789 """get_name(_TrivialDerivedDecorator self) -> std::string"""
8790 return _IMP_kernel._TrivialDerivedDecorator_get_name(self)
8793 def clear_caches(self):
8794 """clear_caches(_TrivialDerivedDecorator self)"""
8795 return _IMP_kernel._TrivialDerivedDecorator_clear_caches(self)
8798 def set_name(self, a0):
8799 """set_name(_TrivialDerivedDecorator self, std::string a0)"""
8800 return _IMP_kernel._TrivialDerivedDecorator_set_name(self, a0)
8804 """set_check_level(_TrivialDerivedDecorator self, IMP::CheckLevel a0)"""
8805 return _IMP_kernel._TrivialDerivedDecorator_set_check_level(self, a0)
8808 def add_to_derivative(self, a0, a1, a2):
8809 """add_to_derivative(_TrivialDerivedDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8810 return _IMP_kernel._TrivialDerivedDecorator_add_to_derivative(self, a0, a1, a2)
8813 def set_is_optimized(self, a0, a1):
8814 """set_is_optimized(_TrivialDerivedDecorator self, FloatKey a0, bool a1)"""
8815 return _IMP_kernel._TrivialDerivedDecorator_set_is_optimized(self, a0, a1)
8818 def get_is_optimized(self, a0):
8819 """get_is_optimized(_TrivialDerivedDecorator self, FloatKey a0) -> bool"""
8820 return _IMP_kernel._TrivialDerivedDecorator_get_is_optimized(self, a0)
8824 """get_check_level(_TrivialDerivedDecorator self) -> IMP::CheckLevel"""
8825 return _IMP_kernel._TrivialDerivedDecorator_get_check_level(self)
8828 def __eq__(self, *args):
8830 __eq__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8831 __eq__(_TrivialDerivedDecorator self, Particle d) -> bool
8833 return _IMP_kernel._TrivialDerivedDecorator___eq__(self, *args)
8836 def __ne__(self, *args):
8838 __ne__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8839 __ne__(_TrivialDerivedDecorator self, Particle d) -> bool
8841 return _IMP_kernel._TrivialDerivedDecorator___ne__(self, *args)
8844 def __le__(self, *args):
8846 __le__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8847 __le__(_TrivialDerivedDecorator self, Particle d) -> bool
8849 return _IMP_kernel._TrivialDerivedDecorator___le__(self, *args)
8852 def __lt__(self, *args):
8854 __lt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8855 __lt__(_TrivialDerivedDecorator self, Particle d) -> bool
8857 return _IMP_kernel._TrivialDerivedDecorator___lt__(self, *args)
8860 def __ge__(self, *args):
8862 __ge__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8863 __ge__(_TrivialDerivedDecorator self, Particle d) -> bool
8865 return _IMP_kernel._TrivialDerivedDecorator___ge__(self, *args)
8868 def __gt__(self, *args):
8870 __gt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8871 __gt__(_TrivialDerivedDecorator self, Particle d) -> bool
8873 return _IMP_kernel._TrivialDerivedDecorator___gt__(self, *args)
8877 """__hash__(_TrivialDerivedDecorator self) -> std::size_t"""
8878 return _IMP_kernel._TrivialDerivedDecorator___hash__(self)
8882 """__str__(_TrivialDerivedDecorator self) -> std::string"""
8883 return _IMP_kernel._TrivialDerivedDecorator___str__(self)
8887 """__repr__(_TrivialDerivedDecorator self) -> std::string"""
8888 return _IMP_kernel._TrivialDerivedDecorator___repr__(self)
8890 __swig_destroy__ = _IMP_kernel.delete__TrivialDerivedDecorator
8891 __del__ =
lambda self:
None
8892 _TrivialDerivedDecorator_swigregister = _IMP_kernel._TrivialDerivedDecorator_swigregister
8893 _TrivialDerivedDecorator_swigregister(_TrivialDerivedDecorator)
8895 def _TrivialDerivedDecorator_setup_particle(*args):
8897 setup_particle(Model m, ParticleIndex pi) -> _TrivialDerivedDecorator
8898 _TrivialDerivedDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
8900 return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
8902 def _TrivialDerivedDecorator_get_is_setup(*args):
8904 get_is_setup(_ParticleAdaptor p) -> bool
8905 _TrivialDerivedDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
8907 return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
8909 class _TrivialTraitsDecorator(Decorator):
8910 """Proxy of C++ IMP::internal::_TrivialTraitsDecorator class."""
8912 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8914 def get_decorator_traits(self):
8915 """get_decorator_traits(_TrivialTraitsDecorator self) -> StringKey"""
8916 return _IMP_kernel._TrivialTraitsDecorator_get_decorator_traits(self)
8919 def get_default_decorator_traits():
8920 """get_default_decorator_traits() -> StringKey"""
8921 return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
8923 get_default_decorator_traits = staticmethod(get_default_decorator_traits)
8925 def __init__(self, *args):
8927 __init__(IMP::internal::_TrivialTraitsDecorator self) -> _TrivialTraitsDecorator
8928 __init__(IMP::internal::_TrivialTraitsDecorator self, Model m, ParticleIndex id, StringKey tr) -> _TrivialTraitsDecorator
8929 __init__(IMP::internal::_TrivialTraitsDecorator self, Model m, ParticleIndex id) -> _TrivialTraitsDecorator
8930 __init__(IMP::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
8931 __init__(IMP::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d) -> _TrivialTraitsDecorator
8933 this = _IMP_kernel.new__TrivialTraitsDecorator(*args)
8935 self.this.append(this)
8936 except __builtin__.Exception:
8939 def show(self, *args):
8941 show(_TrivialTraitsDecorator self, _ostream out)
8942 show(_TrivialTraitsDecorator self)
8944 return _IMP_kernel._TrivialTraitsDecorator_show(self, *args)
8947 def setup_particle(*args):
8949 setup_particle(Model m, ParticleIndex pi, StringKey tr) -> _TrivialTraitsDecorator
8950 setup_particle(Model m, ParticleIndex pi) -> _TrivialTraitsDecorator
8951 setup_particle(_ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
8952 setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
8954 return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
8956 setup_particle = staticmethod(setup_particle)
8958 def get_is_setup(*args):
8960 get_is_setup(_ParticleAdaptor p, StringKey tr) -> bool
8961 get_is_setup(_ParticleAdaptor p) -> bool
8962 get_is_setup(Model m, ParticleIndex pi, StringKey k) -> bool
8963 get_is_setup(Model m, ParticleIndex pi) -> bool
8965 return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
8967 get_is_setup = staticmethod(get_is_setup)
8969 def get_default_key():
8970 """get_default_key() -> StringKey"""
8971 return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
8973 get_default_key = staticmethod(get_default_key)
8975 def add_attribute(self, *args):
8977 add_attribute(_TrivialTraitsDecorator self, FloatKey k, IMP::Float v, bool opt)
8978 add_attribute(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
8979 add_attribute(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
8980 add_attribute(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
8981 add_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
8982 add_attribute(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
8984 return _IMP_kernel._TrivialTraitsDecorator_add_attribute(self, *args)
8987 def get_value(self, *args):
8989 get_value(_TrivialTraitsDecorator self, FloatKey a0) -> IMP::Float
8990 get_value(_TrivialTraitsDecorator self, IntKey a0) -> IMP::Int
8991 get_value(_TrivialTraitsDecorator self, StringKey a0) -> IMP::String
8992 get_value(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> Particle
8993 get_value(_TrivialTraitsDecorator self, ObjectKey a0) -> Object
8995 return _IMP_kernel._TrivialTraitsDecorator_get_value(self, *args)
8998 def set_value(self, *args):
9000 set_value(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
9001 set_value(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
9002 set_value(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
9003 set_value(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
9004 set_value(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
9006 return _IMP_kernel._TrivialTraitsDecorator_set_value(self, *args)
9009 def remove_attribute(self, *args):
9011 remove_attribute(_TrivialTraitsDecorator self, FloatKey a0)
9012 remove_attribute(_TrivialTraitsDecorator self, IntKey a0)
9013 remove_attribute(_TrivialTraitsDecorator self, StringKey a0)
9014 remove_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0)
9015 remove_attribute(_TrivialTraitsDecorator self, ObjectKey a0)
9017 return _IMP_kernel._TrivialTraitsDecorator_remove_attribute(self, *args)
9020 def has_attribute(self, *args):
9022 has_attribute(_TrivialTraitsDecorator self, FloatKey a0) -> bool
9023 has_attribute(_TrivialTraitsDecorator self, IntKey a0) -> bool
9024 has_attribute(_TrivialTraitsDecorator self, StringKey a0) -> bool
9025 has_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> bool
9026 has_attribute(_TrivialTraitsDecorator self, ObjectKey a0) -> bool
9028 return _IMP_kernel._TrivialTraitsDecorator_has_attribute(self, *args)
9031 def get_derivative(self, a0):
9032 """get_derivative(_TrivialTraitsDecorator self, FloatKey a0) -> double"""
9033 return _IMP_kernel._TrivialTraitsDecorator_get_derivative(self, a0)
9037 """get_name(_TrivialTraitsDecorator self) -> std::string"""
9038 return _IMP_kernel._TrivialTraitsDecorator_get_name(self)
9041 def clear_caches(self):
9042 """clear_caches(_TrivialTraitsDecorator self)"""
9043 return _IMP_kernel._TrivialTraitsDecorator_clear_caches(self)
9046 def set_name(self, a0):
9047 """set_name(_TrivialTraitsDecorator self, std::string a0)"""
9048 return _IMP_kernel._TrivialTraitsDecorator_set_name(self, a0)
9052 """set_check_level(_TrivialTraitsDecorator self, IMP::CheckLevel a0)"""
9053 return _IMP_kernel._TrivialTraitsDecorator_set_check_level(self, a0)
9056 def add_to_derivative(self, a0, a1, a2):
9057 """add_to_derivative(_TrivialTraitsDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9058 return _IMP_kernel._TrivialTraitsDecorator_add_to_derivative(self, a0, a1, a2)
9061 def set_is_optimized(self, a0, a1):
9062 """set_is_optimized(_TrivialTraitsDecorator self, FloatKey a0, bool a1)"""
9063 return _IMP_kernel._TrivialTraitsDecorator_set_is_optimized(self, a0, a1)
9066 def get_is_optimized(self, a0):
9067 """get_is_optimized(_TrivialTraitsDecorator self, FloatKey a0) -> bool"""
9068 return _IMP_kernel._TrivialTraitsDecorator_get_is_optimized(self, a0)
9072 """get_check_level(_TrivialTraitsDecorator self) -> IMP::CheckLevel"""
9073 return _IMP_kernel._TrivialTraitsDecorator_get_check_level(self)
9076 def __eq__(self, *args):
9078 __eq__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9079 __eq__(_TrivialTraitsDecorator self, Particle d) -> bool
9081 return _IMP_kernel._TrivialTraitsDecorator___eq__(self, *args)
9084 def __ne__(self, *args):
9086 __ne__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9087 __ne__(_TrivialTraitsDecorator self, Particle d) -> bool
9089 return _IMP_kernel._TrivialTraitsDecorator___ne__(self, *args)
9092 def __le__(self, *args):
9094 __le__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9095 __le__(_TrivialTraitsDecorator self, Particle d) -> bool
9097 return _IMP_kernel._TrivialTraitsDecorator___le__(self, *args)
9100 def __lt__(self, *args):
9102 __lt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9103 __lt__(_TrivialTraitsDecorator self, Particle d) -> bool
9105 return _IMP_kernel._TrivialTraitsDecorator___lt__(self, *args)
9108 def __ge__(self, *args):
9110 __ge__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9111 __ge__(_TrivialTraitsDecorator self, Particle d) -> bool
9113 return _IMP_kernel._TrivialTraitsDecorator___ge__(self, *args)
9116 def __gt__(self, *args):
9118 __gt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9119 __gt__(_TrivialTraitsDecorator self, Particle d) -> bool
9121 return _IMP_kernel._TrivialTraitsDecorator___gt__(self, *args)
9125 """__hash__(_TrivialTraitsDecorator self) -> std::size_t"""
9126 return _IMP_kernel._TrivialTraitsDecorator___hash__(self)
9130 """__str__(_TrivialTraitsDecorator self) -> std::string"""
9131 return _IMP_kernel._TrivialTraitsDecorator___str__(self)
9135 """__repr__(_TrivialTraitsDecorator self) -> std::string"""
9136 return _IMP_kernel._TrivialTraitsDecorator___repr__(self)
9138 __swig_destroy__ = _IMP_kernel.delete__TrivialTraitsDecorator
9139 __del__ =
lambda self:
None
9140 _TrivialTraitsDecorator_swigregister = _IMP_kernel._TrivialTraitsDecorator_swigregister
9141 _TrivialTraitsDecorator_swigregister(_TrivialTraitsDecorator)
9143 def _TrivialTraitsDecorator_get_default_decorator_traits():
9144 """_TrivialTraitsDecorator_get_default_decorator_traits() -> StringKey"""
9145 return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
9147 def _TrivialTraitsDecorator_setup_particle(*args):
9149 setup_particle(Model m, ParticleIndex pi, StringKey tr) -> _TrivialTraitsDecorator
9150 setup_particle(Model m, ParticleIndex pi) -> _TrivialTraitsDecorator
9151 setup_particle(_ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
9152 _TrivialTraitsDecorator_setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
9154 return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
9156 def _TrivialTraitsDecorator_get_is_setup(*args):
9158 get_is_setup(_ParticleAdaptor p, StringKey tr) -> bool
9159 get_is_setup(_ParticleAdaptor p) -> bool
9160 get_is_setup(Model m, ParticleIndex pi, StringKey k) -> bool
9161 _TrivialTraitsDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
9163 return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
9165 def _TrivialTraitsDecorator_get_default_key():
9166 """_TrivialTraitsDecorator_get_default_key() -> StringKey"""
9167 return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
9170 def __lshift__(*args):
9172 __lshift__(_ostream out, _TrivialDecorator n) -> _ostream
9173 __lshift__(_ostream out, _TrivialDerivedDecorator n) -> _ostream
9174 __lshift__(_ostream out, _TrivialTraitsDecorator n) -> _ostream
9176 return _IMP_kernel.__lshift__(*args)
9177 class _ConstOptimizer(Optimizer):
9178 """Proxy of C++ IMP::internal::_ConstOptimizer class."""
9180 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9182 def __init__(self, m):
9183 """__init__(IMP::internal::_ConstOptimizer self, Model m) -> _ConstOptimizer"""
9184 this = _IMP_kernel.new__ConstOptimizer(m)
9186 self.this.append(this)
9187 except __builtin__.Exception:
9190 def do_optimize(self, max_steps):
9191 """do_optimize(_ConstOptimizer self, unsigned int max_steps) -> IMP::Float"""
9192 return _IMP_kernel._ConstOptimizer_do_optimize(self, max_steps)
9195 def get_version_info(self):
9196 """get_version_info(_ConstOptimizer self) -> VersionInfo"""
9197 return _IMP_kernel._ConstOptimizer_get_version_info(self)
9201 """__str__(_ConstOptimizer self) -> std::string"""
9202 return _IMP_kernel._ConstOptimizer___str__(self)
9206 """__repr__(_ConstOptimizer self) -> std::string"""
9207 return _IMP_kernel._ConstOptimizer___repr__(self)
9212 return _object_cast_to__ConstOptimizer(o)
9214 _ConstOptimizer_swigregister = _IMP_kernel._ConstOptimizer_swigregister
9215 _ConstOptimizer_swigregister(_ConstOptimizer)
9218 def get_particle(p):
9219 """get_particle(Particle p) -> Particle"""
9220 return _IMP_kernel.get_particle(p)
9222 def _decorator_test(p):
9223 """_decorator_test(Particle p)"""
9224 return _IMP_kernel._decorator_test(p)
9226 def _overloaded_decorator(*args):
9228 _overloaded_decorator(_TrivialDecorator a) -> int
9229 _overloaded_decorator(_TrivialDerivedDecorator a) -> int
9231 return _IMP_kernel._overloaded_decorator(*args)
9233 def _take_particles(*args):
9235 _take_particles(IMP::Particles const & ps) -> unsigned int
9236 _take_particles(Model m, IMP::Particles const & ps) -> unsigned int
9237 _take_particles(Model m, IMP::Particles const & ps, TextOutput out) -> unsigned int
9239 return _IMP_kernel._take_particles(*args)
9241 def _give_particles(m):
9242 """_give_particles(Model m) -> IMP::Particles const &"""
9243 return _IMP_kernel._give_particles(m)
9245 def _pass_particles(ps):
9246 """_pass_particles(IMP::Particles const & ps) -> IMP::Particles const &"""
9247 return _IMP_kernel._pass_particles(ps)
9249 def _pass_particle(ps):
9250 """_pass_particle(Particle ps) -> Particle"""
9251 return _IMP_kernel._pass_particle(ps)
9253 def _pass_particle_pair(pp):
9254 """_pass_particle_pair(IMP::ParticlePair const & pp) -> IMP::ParticlePair const &"""
9255 return _IMP_kernel._pass_particle_pair(pp)
9257 def _give_particles_copy(m):
9258 """_give_particles_copy(Model m) -> IMP::Particles"""
9259 return _IMP_kernel._give_particles_copy(m)
9261 def _pass_float_keys(input):
9262 """_pass_float_keys(IMP::FloatKeys const & input) -> IMP::FloatKeys"""
9263 return _IMP_kernel._pass_float_keys(input)
9267 _pass(IMP::Particles const & p) -> IMP::Particles const
9268 _pass(IMP::Restraints const & p) -> IMP::Restraints const &
9270 return _IMP_kernel._pass(*args)
9272 def _pass_decorators(p):
9273 """_pass_decorators(IMP::internal::_TrivialDecorators const & p) -> IMP::internal::_TrivialDecorators const &"""
9274 return _IMP_kernel._pass_decorators(p)
9276 def _pass_decorator_traits(p):
9277 """_pass_decorator_traits(IMP::internal::_TrivialTraitsDecorators const & p) -> IMP::internal::_TrivialTraitsDecorators const &"""
9278 return _IMP_kernel._pass_decorator_traits(p)
9280 def _pass_particle_pairs(p):
9281 """_pass_particle_pairs(IMP::ParticlePairsTemp const & p) -> IMP::ParticlePairsTemp"""
9282 return _IMP_kernel._pass_particle_pairs(p)
9284 def _pass_particle_index_pairs(p):
9285 """_pass_particle_index_pairs(IMP::ParticleIndexPairs const & p) -> IMP::ParticleIndexPairs"""
9286 return _IMP_kernel._pass_particle_index_pairs(p)
9288 def _pass_model_objects(p):
9289 """_pass_model_objects(IMP::ModelObjectsTemp const & p) -> IMP::ModelObjectsTemp"""
9290 return _IMP_kernel._pass_model_objects(p)
9292 def _pass_particles_temps(ps):
9293 """_pass_particles_temps(IMP::ParticlesTemps const & ps) -> IMP::ParticlesTemps"""
9294 return _IMP_kernel._pass_particles_temps(ps)
9296 def _test_overload(*args):
9298 _test_overload(IMP::Particles const & ps) -> int
9299 _test_overload(IMP::Restraints const & ps) -> int
9301 return _IMP_kernel._test_overload(*args)
9303 def _get_range(m, k):
9304 """_get_range(Model m, FloatKey k) -> IMP::FloatRange"""
9305 return _IMP_kernel._get_range(m, k)
9307 def _create_particles_from_pdb(name, m):
9308 """_create_particles_from_pdb(std::string name, Model m) -> IMP::ParticleIndexes"""
9309 return _IMP_kernel._create_particles_from_pdb(name, m)
9310 class _LogPairScore(PairScore):
9311 """Proxy of C++ IMP::internal::_LogPairScore class."""
9313 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9314 __repr__ = _swig_repr
9317 """__init__(IMP::internal::_LogPairScore self) -> _LogPairScore"""
9318 this = _IMP_kernel.new__LogPairScore()
9320 self.this.append(this)
9321 except __builtin__.Exception:
9324 def do_get_inputs(self, arg2, arg3):
9325 """do_get_inputs(_LogPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
9326 return _IMP_kernel._LogPairScore_do_get_inputs(self, arg2, arg3)
9329 def get_version_info(self):
9330 """get_version_info(_LogPairScore self) -> VersionInfo"""
9331 return _IMP_kernel._LogPairScore_get_version_info(self)
9334 def get_particle_pairs(self):
9335 """get_particle_pairs(_LogPairScore self) -> IMP::ParticlePairsTemp"""
9336 return _IMP_kernel._LogPairScore_get_particle_pairs(self)
9340 """clear(_LogPairScore self)"""
9341 return _IMP_kernel._LogPairScore_clear(self)
9344 def get_contains(self, pp):
9345 """get_contains(_LogPairScore self, IMP::ParticlePair const & pp) -> bool"""
9346 return _IMP_kernel._LogPairScore_get_contains(self, pp)
9348 _LogPairScore_swigregister = _IMP_kernel._LogPairScore_swigregister
9349 _LogPairScore_swigregister(_LogPairScore)
9352 def _overloaded_particles(*args):
9354 _overloaded_particles(Particle arg1)
9355 _overloaded_particles(IMP::Particles const & arg1)
9356 _overloaded_particles(IMP::ParticlesTemp const & arg1)
9357 _overloaded_particles(Model arg1, IMP::ParticleIndexes const & arg2)
9358 _overloaded_particles(IMP::internal::_TrivialDecorators const & arg1)
9359 _overloaded_particles(_TrivialDecorator arg1)
9361 return _IMP_kernel._overloaded_particles(*args)
9362 class _ImplicitParticles(object):
9363 """Proxy of C++ IMP::internal::_ImplicitParticles class."""
9365 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9366 __repr__ = _swig_repr
9368 def __init__(self, *args):
9370 __init__(IMP::internal::_ImplicitParticles self, Particle arg2) -> _ImplicitParticles
9371 __init__(IMP::internal::_ImplicitParticles self, IMP::Particles const & arg2) -> _ImplicitParticles
9372 __init__(IMP::internal::_ImplicitParticles self, IMP::ParticlesTemp const & arg2) -> _ImplicitParticles
9373 __init__(IMP::internal::_ImplicitParticles self, Model arg2, IMP::ParticleIndexes const & arg3) -> _ImplicitParticles
9374 __init__(IMP::internal::_ImplicitParticles self, IMP::internal::_TrivialDecorators const & arg2) -> _ImplicitParticles
9375 __init__(IMP::internal::_ImplicitParticles self, _TrivialDecorator arg2) -> _ImplicitParticles
9377 this = _IMP_kernel.new__ImplicitParticles(*args)
9379 self.this.append(this)
9380 except __builtin__.Exception:
9382 __swig_destroy__ = _IMP_kernel.delete__ImplicitParticles
9383 __del__ =
lambda self:
None
9384 _ImplicitParticles_swigregister = _IMP_kernel._ImplicitParticles_swigregister
9385 _ImplicitParticles_swigregister(_ImplicitParticles)
9388 def _implicit_particles(arg1):
9389 """_implicit_particles(_ImplicitParticles arg1)"""
9390 return _IMP_kernel._implicit_particles(arg1)
9392 def _take_particle_adaptor(pa):
9393 """_take_particle_adaptor(_ParticleAdaptor pa) -> ParticleIndex"""
9394 return _IMP_kernel._take_particle_adaptor(pa)
9396 def _take_particle_indexes_adaptor(pa):
9397 """_take_particle_indexes_adaptor(_ParticleIndexesAdaptor pa) -> IMP::ParticleIndexes"""
9398 return _IMP_kernel._take_particle_indexes_adaptor(pa)
9399 class ScopedSetFloatAttribute(_RAII):
9400 """Proxy of C++ IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> class."""
9402 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9404 def __init__(self, *args):
9406 __init__(IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> self) -> ScopedSetFloatAttribute
9407 __init__(IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> self, Particle p, FloatKey key, double const & value) -> ScopedSetFloatAttribute
9409 this = _IMP_kernel.new_ScopedSetFloatAttribute(*args)
9411 self.this.append(this)
9412 except __builtin__.Exception:
9415 def set(self, p, key, value):
9416 """set(ScopedSetFloatAttribute self, Particle p, FloatKey key, double const & value)"""
9417 return _IMP_kernel.ScopedSetFloatAttribute_set(self, p, key, value)
9421 """reset(ScopedSetFloatAttribute self)"""
9422 return _IMP_kernel.ScopedSetFloatAttribute_reset(self)
9424 __swig_destroy__ = _IMP_kernel.delete_ScopedSetFloatAttribute
9425 __del__ =
lambda self:
None
9427 def show(self, *args):
9429 show(ScopedSetFloatAttribute self, _ostream out)
9430 show(ScopedSetFloatAttribute self)
9432 return _IMP_kernel.ScopedSetFloatAttribute_show(self, *args)
9436 """__str__(ScopedSetFloatAttribute self) -> std::string"""
9437 return _IMP_kernel.ScopedSetFloatAttribute___str__(self)
9441 """__repr__(ScopedSetFloatAttribute self) -> std::string"""
9442 return _IMP_kernel.ScopedSetFloatAttribute___repr__(self)
9444 ScopedSetFloatAttribute_swigregister = _IMP_kernel.ScopedSetFloatAttribute_swigregister
9445 ScopedSetFloatAttribute_swigregister(ScopedSetFloatAttribute)
9455 if sys.platform ==
'win32' and 'IMP_LD_PATH' in os.environ:
9456 dirs = os.environ[
'IMP_LD_PATH'].split(
":")
9457 pathcomps = os.environ[
'PATH'].split(
";")
9459 if d
not in pathcomps:
9460 os.environ[
'PATH'] = d +
';' + os.environ[
'PATH']
9468 """Allow command line tools to easily implement multiple commands.
9469 Typically, an IMP command line tool will use an instance of this class
9470 to provide a consistent interface to multiple distinct commands
9471 from a single binary, rather than providing a potentially large
9472 number of binaries. This is similar to the way a number of common
9473 command line tools outside of IMP function (e.g. Git provides a single
9474 `git` tool which implements multiple commands - `git add`, `git commit`,
9475 `git push` and so on).
9477 Each command is implemented with a Python module of the same name
9478 that can be imported from the module (for example, if `module_name`
9479 is `IMP.foo`, the `bar` command is provided by the `IMP.foo.bar` Python
9480 module, which would usually be found as `modules/foo/pyext/src/bar.py`).
9481 Each such module should have a docstring and a `%main()` method
9482 that takes no arguments (the module should also call its `%main()` method
9483 if it is run directly, i.e. with something like
9484 `if __name__=="__main__": %main()`). The encompassing module
9485 (`IMP.foo` in the example) should define `_all_commands` as a Python
9486 list of all valid commands.
9488 See the `multifit` and `cnmultifit` command line tools for example
9492 def __init__(self, short_help, long_help, module_name):
9494 @param short_help A few words that describe the command line tool.
9495 @param long_help Longer text, used in the `help` command.
9496 @param module_name Name of the module (e.g. `IMP.foo`) that
9497 implements the commands.
9499 self.short_help = short_help
9500 self.long_help = long_help
9501 self.module_name = module_name
9502 self._all_commands = self.import_module()._all_commands
9503 self._progname = os.path.basename(sys.argv[0])
9506 """Call this method to act upon the user-provided command line"""
9507 if len(sys.argv) <= 1:
9508 print(self.short_help +
" Use '%s help' for help." % self._progname)
9510 command = sys.argv[1]
9511 if command
in (
'help',
'--help',
'-h'):
9512 if len(sys.argv) == 3:
9513 self.show_command_help(sys.argv[2])
9516 elif command ==
'--version':
9518 elif command
in self._all_commands:
9519 self.do_command(command)
9521 self.unknown_command(command)
9523 def import_module(self, mod=None):
9524 modname = self.module_name
9526 modname +=
"." + mod
9527 return __import__(modname, {}, {}, [
''])
9529 def unknown_command(self, command):
9530 print(
"Unknown command: '%s'" % command)
9531 print(
"Use '%s help' for help." % self._progname)
9534 def _get_version(self):
9535 return self.import_module().get_module_version()
9537 def show_version(self):
9538 print(self._progname +
' ' + self._get_version())
9540 def show_help(self):
9541 ver = self._get_version()
9542 print(
"%s, version %s." % (self._progname, ver))
9543 print(self.long_help +
"""
9545 This program is part of IMP, the Integrative Modeling Platform,
9546 which is Copyright 2007-2018 IMP Inventors.
9547 For additional information about IMP, see <https://integrativemodeling.org>.
9549 Usage: %s <command> [options] [args]
9551 Commands:""" % self._progname)
9552 commands = self._all_commands[:] + [
'help']
9554 cmdlen = max([len(c)
for c
in commands])
9557 doc =
'Get help on using %s.' % self._progname
9559 doc = self.import_module(c).__doc__
or "<no help>"
9560 c +=
' ' * (cmdlen - len(c))
9561 print(
' ' + c +
' ' + doc)
9563 Use "%s help <command>" for detailed help on any command
9564 or "%s --version" to see the version number.""" % (self._progname,
9567 def do_command(self, command):
9568 mod = self.import_module(command)
9569 sys.argv[0] = self._progname +
' ' + command
9573 def show_command_help(self, command):
9574 if command ==
'help':
9576 elif command
in self._all_commands
or command ==
'help':
9577 mod = self.import_module(command)
9578 sys.argv = [self._progname +
' ' + command,
'--help']
9581 self.unknown_command(command)
9590 """IMP-specific subclass of optparse.OptionParser.
9591 This adds options common to all IMP applications
9592 (see IMP::setup_from_argv()).
9595 _use_boost_parser =
True
9597 def __init__(self, *args, **kwargs):
9600 kwargs[
'add_help_option'] =
False
9601 kwargs[
'version'] =
None
9603 if 'imp_module' in kwargs:
9604 del kwargs[
'imp_module']
9606 optparse.OptionParser.__init__(self, *args, **kwargs)
9608 if 'epilog' in kwargs:
9610 del kwargs[
'epilog']
9611 optparse.OptionParser.__init__(self, *args, **kwargs)
9617 def _process_long_opt(self, rargs, values):
9618 if self._use_boost_parser:
9620 optparse.OptionParser._process_long_opt(self, rargs, values)
9621 except optparse.BadOptionError
as err:
9622 if not hasattr(err,
'opt_str') \
9623 and err.msg.startswith(
'no such option:'):
9624 self.largs.append(err.msg[16:])
9626 self.largs.append(err.opt_str)
9628 optparse.OptionParser._process_long_opt(self, rargs, values)
9629 def _process_short_opts(self, rargs, values):
9630 if self._use_boost_parser:
9632 optparse.OptionParser._process_short_opts(self, rargs, values)
9633 except optparse.BadOptionError
as err:
9634 self.largs.append(err.opt_str)
9636 optparse.OptionParser._process_short_opts(self, rargs, values)
9638 def _process_args(self, largs, rargs, values):
9639 if self._use_boost_parser:
9644 dashdash = rargs.index(
'--')
9646 dashdash = len(rargs)
9647 saved_args = rargs[dashdash:]
9648 del rargs[dashdash:]
9649 optparse.OptionParser._process_args(self, largs, rargs, values)
9650 rargs.extend(saved_args)
9652 optparse.OptionParser._process_args(self, largs, rargs, values)
9655 """Parse the command line and return options and positional arguments.
9656 This functions in the same way as the method in the base class
9657 optparse.OptionParser, except that it also processes options common
9658 to all IMP applications (these are not returned in opts, but can be
9659 obtained in the usual way, e.g. by calling
9660 IMP::get_string_flag()).
9661 @param[in] num_positional If a positive integer, exactly that
9662 many positional arguments must be specified on the
9663 command line; if a negative integer, that many or
9664 more must be given; if None, any number of positional
9665 arguments can be given.
9669 opts, args = optparse.OptionParser.parse_args(self)
9670 if not self._use_boost_parser:
9672 orig_desc = self.description
9673 orig_usage = self.usage
9675 usage = self.usage.replace(
'%prog ',
'')
9678 if num_positional
is None:
9682 args.append(
'dummy')
9684 numpos = num_positional
9686 self.usage = self.description =
None
9690 self.format_help() \
9691 +
"\nOptions common to all IMP applications:",
9694 self.description = orig_desc
9695 self.usage = orig_usage
9696 if num_positional
is None:
9704 g = networkx.DiGraph()
9705 if len(ig.get_vertices()) == 0:
9710 def __init__(self, p):
9714 return self.p.get_name()
9716 def __call__(self, name):
9717 return self.p.__call__(name)
9719 for vi
in ig.get_vertices():
9720 n = ig.get_vertex_name(vi)
9721 g.add_node(NodeWrapper(n))
9722 for vi
in ig.get_vertices():
9723 n = ig.get_vertex_name(vi)
9724 for ni
in ig.get_out_neighbors(vi):
9725 nn = ig.get_vertex_name(ni)
9726 g.add_edge(NodeWrapper(n), NodeWrapper(nn))
9733 n0 = name.get_name()
9736 n1 = str(n0).replace(
'"',
'')
9737 n2 = n1.replace(
"\n",
'')
9740 from altgraph
import Graph, Dot
9741 graph = Graph.Graph()
9742 for i, v
in enumerate(g.get_vertices()):
9744 for i, v
in enumerate(g.get_vertices()):
9745 for n
in g.get_out_neighbors(v):
9746 graph.add_edge(v, n)
9747 dot = Dot.Dot(graph)
9748 for i, v
in enumerate(g.get_vertices()):
9749 dot.node_style(i, label=clean(g.get_vertex_name(v)))
9756 st = g.get_graphviz_string()
9757 open(tfn,
"w").write(st)
9762 sys.stderr.write(
"Cannot run dot on Python 2.3 systems.\n")
9765 print(
"running dot")
9766 sp = subprocess.Popen([
"dot",
"-Tpdf", tfn,
"-o" + tfon])
9770 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")
9773 if platform.system() ==
"Darwin":
9776 cmd = [
"gv",
"acroread",
"xpdf"]
9779 print(
"launching viewer " + c)
9781 subprocess.check_call([c, tfon])
9787 print(
"Could not display file. It is saved at " + tfon)
9797 """Mark a Python module as deprecated.
9798 @note The `module` argument would normally be `__name__`.
9799 @see [deprecation support](@ref deprecation)."""
9801 "Module %s is deprecated. %s\n" % (module, help_message))
9804 """Python decorator to mark a class as deprecated.
9805 @see [deprecation support](@ref deprecation)."""
9807 orig_init = obj.__init__
9810 @functools.wraps(orig_init, (
'__name__',
'__doc__'))
9811 def __init__(obj, *args, **keys):
9813 % (type(obj), help_message))
9814 orig_init(obj, *args, **keys)
9815 obj.__init__ = __init__
9820 """Python decorator to mark a method as deprecated.
9821 @see [deprecation support](@ref deprecation)."""
9822 def out_wrapper(obj):
9823 @functools.wraps(obj)
9824 def wrapper(cls, *args, **keys):
9826 % (obj.__name__, type(cls), help_message))
9827 return obj(cls, *args, **keys)
9832 """Python decorator to mark a function as deprecated.
9833 @see [deprecation support](@ref deprecation)."""
9834 def out_wrapper(obj):
9835 @functools.wraps(obj)
9836 def wrapper(*args, **keys):
9838 % (obj.__name__, help_message))
9839 return obj(*args, **keys)
9843 @contextlib.contextmanager
9845 """Context manager to temporarily allow (or disallow) deprecated code.
9846 @see [deprecation support](@ref deprecation)."""
9852 class RandomNumberGenerator(object):
9853 """Proxy of C++ IMP::RandomNumberGenerator class."""
9855 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9856 __repr__ = _swig_repr
9859 """seed(RandomNumberGenerator self, ::boost::int32_t x)"""
9860 return _IMP_kernel.RandomNumberGenerator_seed(self, x)
9864 """__call__(RandomNumberGenerator self) -> int"""
9865 return _IMP_kernel.RandomNumberGenerator___call__(self)
9869 """__init__(IMP::RandomNumberGenerator self) -> RandomNumberGenerator"""
9870 this = _IMP_kernel.new_RandomNumberGenerator()
9872 self.this.append(this)
9873 except __builtin__.Exception:
9875 __swig_destroy__ = _IMP_kernel.delete_RandomNumberGenerator
9876 __del__ =
lambda self:
None
9877 RandomNumberGenerator_swigregister = _IMP_kernel.RandomNumberGenerator_swigregister
9878 RandomNumberGenerator_swigregister(RandomNumberGenerator)
9883 get_random_float_uniform() -> float
9884 get_random_float_uniform(float min, float max) -> float
9886 return _IMP_kernel.get_random_float_uniform(*args)
9890 get_random_double_uniform() -> double
9891 get_random_double_uniform(double min, double max) -> double
9893 return _IMP_kernel.get_random_double_uniform(*args)
9895 def get_random_floats_normal(n, mean=0.0, stddev=1.0):
9897 get_random_floats_normal(unsigned int n, float mean=0.0, float stddev=1.0) -> IMP::Vector< float >
9898 get_random_floats_normal(unsigned int n, float mean=0.0) -> IMP::Vector< float >
9899 get_random_floats_normal(unsigned int n) -> IMP::Vector< float >
9901 return _IMP_kernel.get_random_floats_normal(n, mean, stddev)
9903 def get_random_doubles_normal(n, mean=0.0, stddev=1.0):
9905 get_random_doubles_normal(unsigned int n, double mean=0.0, double stddev=1.0) -> IMP::Vector< double >
9906 get_random_doubles_normal(unsigned int n, double mean=0.0) -> IMP::Vector< double >
9907 get_random_doubles_normal(unsigned int n) -> IMP::Vector< double >
9909 return _IMP_kernel.get_random_doubles_normal(n, mean, stddev)
9911 def get_random_floats_uniform(n):
9912 """get_random_floats_uniform(unsigned int n) -> IMP::Vector< float >"""
9913 return _IMP_kernel.get_random_floats_uniform(n)
9915 def get_random_doubles_uniform(n):
9916 """get_random_doubles_uniform(unsigned int n) -> IMP::Vector< double >"""
9917 return _IMP_kernel.get_random_doubles_uniform(n)
9920 """get_random_seed() -> boost::uint64_t"""
9921 return _IMP_kernel.get_random_seed()
9923 def get_module_version():
9924 """get_module_version() -> std::string const"""
9925 return _IMP_kernel.get_module_version()
9928 """get_example_path(std::string fname) -> std::string"""
9929 return _IMP_kernel.get_example_path(fname)
9932 """get_data_path(std::string fname) -> std::string"""
9933 return _IMP_kernel.get_data_path(fname)
9935 from .
import _version_check
9936 _version_check.check_version(get_module_version())
9937 __version__ = get_module_version()
9940 random_number_generator = cvar.random_number_generator
void add_int_flag(std::string name, size_t default_value, std::string description)
Allow command line tools to easily implement multiple commands.
CheckLevel get_check_level()
Get the current audit mode.
Key< 0 > FloatKey
The type used to identify float attributes in the Particles.
def allow_deprecated
Context manager to temporarily allow (or disallow) deprecated code.
std::string get_unique_name(std::string templ)
Return a unique name produced from the string.
DependencyGraph get_dependency_graph(Model *m)
Objects get_live_objects()
Return pointers to all live objects.
Vector< char > write_particles_to_buffer(const ParticlesTemp &particles, const FloatKeys &keys)
return a binary buffer with the data
def main
Call this method to act upon the user-provided command line.
boost::graph DependencyGraph
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.
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)
Key< 6 > ParticleIndexesKey
The type used to identify a particle attribute in the Particles.
Array< 3, WeakPointer< Particle >, Particle * > ParticleTriplet
ContainersTemp get_output_containers(const ModelObjectsTemp &mos)
Return all the output particles for a given ModelObject.
void add_particle(RMF::FileHandle fh, Particle *hs)
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())
void write_help(std::ostream &out=std::cerr)
Key< 2 > StringKey
The type used to identify string attributes in the Particles.
size_t get_int_flag(std::string name)
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.
Key< 3 > ParticleIndexKey
The type used to identify a particle attribute in the Particles.
Strings get_live_object_names()
Return the names of all live objects.
void add_to_progress_display(unsigned int step=1)
Set the current progress.
void add_float_flag(std::string name, double default_value, std::string description)
Ints get_index(const ParticlesTemp &particles, const Subset &subset, const Subsets &excluded)
ParticleIndexes get_particle_indexes(ParticlesTemp const &particles)
def deprecated_method
Python decorator to mark a method as deprecated.
void reset_log_timer()
Reset the log timer.
void add_restraints(RMF::FileHandle fh, const Restraints &hs)
void add_to_log(LogLevel level, std::string to_write)
Write a string to the log, for Python.
Key< 1 > IntKey
The type used to identify int attributes in the Particles.
Version and module information for Objects.
Restraints create_decomposition(const RestraintsTemp &rs)
Return the decomposition of a list of restraints.
std::string get_relative_path(std::string base, std::string relative)
Return a path to a file relative to another file.
void set_deprecation_exceptions(bool tf)
Toggle whether an exception is thrown when a deprecated method is used.
Key< 4 > ObjectKey
The type used to identify an Object attribute.
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
std::string get_absolute_path(std::string file)
Convert a possibly relative path to an absolute path.
std::string get_executable_name()
Return the name of the current executable.
void set_log_level(LogLevel l)
Set the current global log level.
unsigned int get_number_of_threads()
float get_random_float_uniform()
Return a uniformly distributed float number in range [0..1)
def deprecated_object
Python decorator to mark a class as deprecated.
ParticlesTemp get_input_particles(const ModelObjectsTemp &mos)
Return all the input particles for a given ModelObject.
void set_show_leaked_objects(bool tf)
Set whether to complain about objects not being properly cleaned up.
bool get_deprecation_exceptions()
Get whether an exception is thrown when a deprecated method is used.
void set_log_timer(bool tb)
Set whether log messages are tagged with the current log time.
void show_restraint_hierarchy(ScoringFunctionAdaptor rs, std::ostream &out=std::cout)
Print the hierarchy of restraints.
DependencyGraph get_pruned_dependency_graph(Model *m)
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
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< 8 > ModelKey
The type used to identify data stored directly in the model.
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.