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_NUMPY = _IMP_kernel.IMP_KERNEL_HAS_NUMPY
239 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_kernel.IMP_KERNEL_HAS_GPERFTOOLS
240 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
241 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
242 IMPKERNEL_SHOW_WARNINGS = _IMP_kernel.IMPKERNEL_SHOW_WARNINGS
245 class _DirectorObjects(object):
246 """@internal Simple class to keep references to director objects
247 to prevent premature deletion."""
250 def register(self, obj):
251 """Take a reference to a director object; will only work for
252 refcounted C++ classes"""
253 if hasattr(obj,
'get_ref_count'):
254 self._objects.append(obj)
256 """Only drop our reference and allow cleanup by Python if no other
257 Python references exist (we hold 3 references: one in self._objects,
258 one in x, and one in the argument list for getrefcount) *and* no
259 other C++ references exist (the Python object always holds one)"""
260 objs = [x
for x
in self._objects
if sys.getrefcount(x) > 3 \
261 or x.get_ref_count() > 1]
265 def get_object_count(self):
266 """Get number of director objects (useful for testing only)"""
267 return len(self._objects)
268 _director_objects = _DirectorObjects()
270 DEFAULT_CHECK = _IMP_kernel.DEFAULT_CHECK
271 NONE = _IMP_kernel.NONE
272 USAGE = _IMP_kernel.USAGE
273 USAGE_AND_INTERNAL = _IMP_kernel.USAGE_AND_INTERNAL
276 """set_check_level(IMP::CheckLevel tf)"""
277 return _IMP_kernel.set_check_level(tf)
280 """get_check_level() -> IMP::CheckLevel"""
281 return _IMP_kernel.get_check_level()
283 from _IMP_kernel
import Exception, InternalException, ModelException, EventException
284 from _IMP_kernel
import UsageException, IndexException, IOException, ValueException
285 from _IMP_kernel
import TypeException
287 class _ostream(object):
288 """Proxy of C++ std::ostream class."""
290 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
292 def __init__(self, *args, **kwargs):
293 raise AttributeError(
"No constructor defined")
294 __repr__ = _swig_repr
296 def write(self, osa_buf):
297 """write(_ostream self, char const * osa_buf)"""
298 return _IMP_kernel._ostream_write(self, osa_buf)
300 _ostream_swigregister = _IMP_kernel._ostream_swigregister
301 _ostream_swigregister(_ostream)
303 IMP_COMPILER_HAS_OVERRIDE = _IMP_kernel.IMP_COMPILER_HAS_OVERRIDE
304 IMP_COMPILER_HAS_FINAL = _IMP_kernel.IMP_COMPILER_HAS_FINAL
305 IMP_HAS_NOEXCEPT = _IMP_kernel.IMP_HAS_NOEXCEPT
306 IMP_C_OPEN_BINARY = _IMP_kernel.IMP_C_OPEN_BINARY
308 _raii_types.append(
"SetLogState")
311 _raii_types.append(
"SetNumberOfThreads")
314 _raii_types.append(
"SetCheckState")
317 _object_types.append(
"Object")
320 def _object_cast_to_Object(o):
321 """_object_cast_to_Object(Object * o) -> Object"""
322 return _IMP_kernel._object_cast_to_Object(o)
324 _object_types.append(
"_TestObject")
327 def _object_cast_to__TestObject(o):
328 """_object_cast_to__TestObject(Object * o) -> _TestObject"""
329 return _IMP_kernel._object_cast_to__TestObject(o)
332 _plural_types.append(
"VersionInfos")
333 _value_types.append(
"VersionInfo")
336 _raii_types.append(
"CreateLogContext")
339 _raii_types.append(
"WarningContext")
342 _raii_types.append(
"SetLogTarget")
346 _plural_types.append(
"_TestValues")
347 _value_types.append(
"_TestValue")
351 _plural_types.append(
"Floats")
352 _value_types.append(
"Float")
356 _plural_types.append(
"Ints")
357 _value_types.append(
"Int")
361 _plural_types.append(
"Strings")
362 _value_types.append(
"String")
366 _plural_types.append(
"_Protections")
367 _value_types.append(
"_Protection")
369 class _InputAdaptor(object):
370 """Proxy of C++ IMP::InputAdaptor class."""
372 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
374 def __init__(self, *args, **kwargs):
375 raise AttributeError(
"No constructor defined")
376 __repr__ = _swig_repr
377 __swig_destroy__ = _IMP_kernel.delete__InputAdaptor
378 __del__ =
lambda self:
None
379 _InputAdaptor_swigregister = _IMP_kernel._InputAdaptor_swigregister
380 _InputAdaptor_swigregister(_InputAdaptor)
382 class _NonCopyable(object):
383 """Proxy of C++ IMP::NonCopyable class."""
385 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
387 def __init__(self, *args, **kwargs):
388 raise AttributeError(
"No constructor defined")
389 __repr__ = _swig_repr
390 __swig_destroy__ = _IMP_kernel.delete__NonCopyable
391 __del__ =
lambda self:
None
392 _NonCopyable_swigregister = _IMP_kernel._NonCopyable_swigregister
393 _NonCopyable_swigregister(_NonCopyable)
395 class _RAII(_NonCopyable):
396 """Proxy of C++ IMP::RAII class."""
398 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
400 def __init__(self, *args, **kwargs):
401 raise AttributeError(
"No constructor defined")
402 __repr__ = _swig_repr
403 __swig_destroy__ = _IMP_kernel.delete__RAII
404 __del__ =
lambda self:
None
405 _RAII_swigregister = _IMP_kernel._RAII_swigregister
406 _RAII_swigregister(_RAII)
408 class _Value(object):
409 """Proxy of C++ IMP::Value class."""
411 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
413 def __init__(self, *args, **kwargs):
414 raise AttributeError(
"No constructor defined")
415 __repr__ = _swig_repr
416 __swig_destroy__ = _IMP_kernel.delete__Value
417 __del__ =
lambda self:
None
418 _Value_swigregister = _IMP_kernel._Value_swigregister
419 _Value_swigregister(_Value)
423 """get_executable_name() -> std::string"""
424 return _IMP_kernel.get_executable_name()
428 setup_from_argv(IMP::Strings const & argv, std::string description)
429 setup_from_argv(IMP::Strings const & argv, std::string description, std::string positional_description, int num_positional) -> IMP::Strings
431 return _IMP_kernel.setup_from_argv(*args)
434 """add_string_flag(std::string name, std::string default_value, std::string description)"""
435 return _IMP_kernel.add_string_flag(name, default_value, description)
438 """get_string_flag(std::string name) -> std::string"""
439 return _IMP_kernel.get_string_flag(name)
442 """add_int_flag(std::string name, size_t default_value, std::string description)"""
443 return _IMP_kernel.add_int_flag(name, default_value, description)
446 """get_int_flag(std::string name) -> size_t"""
447 return _IMP_kernel.get_int_flag(name)
450 """add_bool_flag(std::string name, std::string description)"""
451 return _IMP_kernel.add_bool_flag(name, description)
454 """get_bool_flag(std::string name) -> bool"""
455 return _IMP_kernel.get_bool_flag(name)
458 """add_float_flag(std::string name, double default_value, std::string description)"""
459 return _IMP_kernel.add_float_flag(name, default_value, description)
462 """get_float_flag(std::string name) -> double"""
463 return _IMP_kernel.get_float_flag(name)
467 write_help(_ostream out)
470 return _IMP_kernel.write_help(*args)
473 """get_is_quick_test() -> bool"""
474 return _IMP_kernel.get_is_quick_test()
475 DEFAULT = _IMP_kernel.DEFAULT
476 SILENT = _IMP_kernel.SILENT
477 WARNING = _IMP_kernel.WARNING
478 PROGRESS = _IMP_kernel.PROGRESS
479 TERSE = _IMP_kernel.TERSE
480 VERBOSE = _IMP_kernel.VERBOSE
481 MEMORY = _IMP_kernel.MEMORY
482 ALL_LOG = _IMP_kernel.ALL_LOG
483 class VersionInfo(_Value):
484 """Proxy of C++ IMP::VersionInfo class."""
486 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
488 def __init__(self, *args):
490 __init__(IMP::VersionInfo self, std::string module, std::string version) -> VersionInfo
491 __init__(IMP::VersionInfo self) -> VersionInfo
493 this = _IMP_kernel.new_VersionInfo(*args)
495 self.this.append(this)
496 except __builtin__.Exception:
499 def get_module(self):
500 """get_module(VersionInfo self) -> std::string"""
501 return _IMP_kernel.VersionInfo_get_module(self)
504 def get_version(self):
505 """get_version(VersionInfo self) -> std::string"""
506 return _IMP_kernel.VersionInfo_get_version(self)
509 def show(self, *args):
511 show(VersionInfo self, _ostream out)
512 show(VersionInfo self)
514 return _IMP_kernel.VersionInfo_show(self, *args)
517 def __cmp__(self, o):
518 """__cmp__(VersionInfo self, VersionInfo o) -> int"""
519 return _IMP_kernel.VersionInfo___cmp__(self, o)
523 """__eq__(VersionInfo self, VersionInfo o) -> bool"""
524 return _IMP_kernel.VersionInfo___eq__(self, o)
528 """__ne__(VersionInfo self, VersionInfo o) -> bool"""
529 return _IMP_kernel.VersionInfo___ne__(self, o)
533 """__lt__(VersionInfo self, VersionInfo o) -> bool"""
534 return _IMP_kernel.VersionInfo___lt__(self, o)
538 """__gt__(VersionInfo self, VersionInfo o) -> bool"""
539 return _IMP_kernel.VersionInfo___gt__(self, o)
543 """__ge__(VersionInfo self, VersionInfo o) -> bool"""
544 return _IMP_kernel.VersionInfo___ge__(self, o)
548 """__le__(VersionInfo self, VersionInfo o) -> bool"""
549 return _IMP_kernel.VersionInfo___le__(self, o)
553 """__str__(VersionInfo self) -> std::string"""
554 return _IMP_kernel.VersionInfo___str__(self)
558 """__repr__(VersionInfo self) -> std::string"""
559 return _IMP_kernel.VersionInfo___repr__(self)
561 __swig_destroy__ = _IMP_kernel.delete_VersionInfo
562 __del__ =
lambda self:
None
563 VersionInfo_swigregister = _IMP_kernel.VersionInfo_swigregister
564 VersionInfo_swigregister(VersionInfo)
566 class TextOutput(_InputAdaptor):
567 """Proxy of C++ IMP::TextOutput class."""
569 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
570 __repr__ = _swig_repr
572 def __init__(self, *args):
574 __init__(IMP::TextOutput self, int arg2) -> TextOutput
575 __init__(IMP::TextOutput self, double arg2) -> TextOutput
576 __init__(IMP::TextOutput self, char const * c, bool append=False) -> TextOutput
577 __init__(IMP::TextOutput self, char const * c) -> TextOutput
578 __init__(IMP::TextOutput self, IMP::TextProxy< std::ostream > p) -> TextOutput
579 __init__(IMP::TextOutput self) -> TextOutput
580 __init__(IMP::TextOutput self, std::string file_name, bool append=False) -> TextOutput
581 __init__(IMP::TextOutput self, std::string file_name) -> TextOutput
583 this = _IMP_kernel.new_TextOutput(*args)
585 self.this.append(this)
586 except __builtin__.Exception:
589 def show(self, *args):
591 show(TextOutput self, _ostream out)
592 show(TextOutput self)
594 return _IMP_kernel.TextOutput_show(self, *args)
598 """get_name(TextOutput self) -> std::string"""
599 return _IMP_kernel.TextOutput_get_name(self)
601 __swig_destroy__ = _IMP_kernel.delete_TextOutput
602 __del__ =
lambda self:
None
603 TextOutput_swigregister = _IMP_kernel.TextOutput_swigregister
604 TextOutput_swigregister(TextOutput)
606 class TextInput(_InputAdaptor):
607 """Proxy of C++ IMP::TextInput class."""
609 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
610 __repr__ = _swig_repr
612 def __init__(self, *args):
614 __init__(IMP::TextInput self, int arg2) -> TextInput
615 __init__(IMP::TextInput self, double arg2) -> TextInput
616 __init__(IMP::TextInput self, char const * c) -> TextInput
617 __init__(IMP::TextInput self, IMP::TextProxy< std::istream > p) -> TextInput
618 __init__(IMP::TextInput self) -> TextInput
619 __init__(IMP::TextInput self, std::string file_name) -> TextInput
621 this = _IMP_kernel.new_TextInput(*args)
623 self.this.append(this)
624 except __builtin__.Exception:
627 def show(self, *args):
629 show(TextInput self, _ostream out)
632 return _IMP_kernel.TextInput_show(self, *args)
636 """get_name(TextInput self) -> std::string"""
637 return _IMP_kernel.TextInput_get_name(self)
639 __swig_destroy__ = _IMP_kernel.delete_TextInput
640 __del__ =
lambda self:
None
641 TextInput_swigregister = _IMP_kernel.TextInput_swigregister
642 TextInput_swigregister(TextInput)
644 class SetLogTarget(_RAII):
645 """Proxy of C++ IMP::SetLogTarget class."""
647 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
649 def __init__(self, *args):
651 __init__(IMP::SetLogTarget self) -> SetLogTarget
652 __init__(IMP::SetLogTarget self, TextOutput to) -> SetLogTarget
654 this = _IMP_kernel.new_SetLogTarget(*args)
656 self.this.append(this)
657 except __builtin__.Exception:
661 """set(SetLogTarget self, TextOutput to)"""
662 return _IMP_kernel.SetLogTarget_set(self, to)
666 """reset(SetLogTarget self)"""
667 return _IMP_kernel.SetLogTarget_reset(self)
669 __swig_destroy__ = _IMP_kernel.delete_SetLogTarget
670 __del__ =
lambda self:
None
672 def show(self, *args):
674 show(SetLogTarget self, _ostream out)
675 show(SetLogTarget self)
677 return _IMP_kernel.SetLogTarget_show(self, *args)
682 def __exit__(self, exc_type, exc_val, exc_tb):
688 """__str__(SetLogTarget self) -> std::string"""
689 return _IMP_kernel.SetLogTarget___str__(self)
693 """__repr__(SetLogTarget self) -> std::string"""
694 return _IMP_kernel.SetLogTarget___repr__(self)
696 SetLogTarget_swigregister = _IMP_kernel.SetLogTarget_swigregister
697 SetLogTarget_swigregister(SetLogTarget)
702 create_temporary_file(std::string prefix, std::string suffix) -> TextOutput
703 create_temporary_file(std::string prefix) -> TextOutput
704 create_temporary_file() -> TextOutput
706 return _IMP_kernel.create_temporary_file(*args)
710 create_temporary_file_name(std::string prefix, std::string suffix) -> std::string
711 create_temporary_file_name(std::string prefix) -> std::string
712 create_temporary_file_name() -> std::string
714 return _IMP_kernel.create_temporary_file_name(*args)
717 """get_relative_path(std::string base, std::string relative) -> std::string"""
718 return _IMP_kernel.get_relative_path(base, relative)
721 """get_absolute_path(std::string file) -> std::string"""
722 return _IMP_kernel.get_absolute_path(file)
724 def push_log_context(functionname, object):
725 """push_log_context(char const * functionname, void const * object)"""
726 return _IMP_kernel.push_log_context(functionname, object)
728 def pop_log_context():
729 """pop_log_context()"""
730 return _IMP_kernel.pop_log_context()
734 add_to_log(std::string to_write)
735 add_to_log(IMP::LogLevel level, std::string to_write)
737 return _IMP_kernel.add_to_log(*args)
740 """set_log_level(IMP::LogLevel l)"""
741 return _IMP_kernel.set_log_level(l)
744 """set_log_timer(bool tb)"""
745 return _IMP_kernel.set_log_timer(tb)
748 """reset_log_timer()"""
749 return _IMP_kernel.reset_log_timer()
752 """get_log_level() -> IMP::LogLevel"""
753 return _IMP_kernel.get_log_level()
756 """set_progress_display(std::string description, unsigned int steps)"""
757 return _IMP_kernel.set_progress_display(description, steps)
761 add_to_progress_display(unsigned int step=1)
762 add_to_progress_display()
764 return _IMP_kernel.add_to_progress_display(step)
765 class Object(_NonCopyable):
766 """Proxy of C++ IMP::Object class."""
768 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
770 def __init__(self, name):
771 """__init__(IMP::Object self, std::string name) -> Object"""
772 if self.__class__ == Object:
776 this = _IMP_kernel.new_Object(_self, name)
778 self.this.append(this)
779 except __builtin__.Exception:
782 if self.__class__ != Object:
783 _director_objects.register(self)
787 __swig_destroy__ = _IMP_kernel.delete_Object
788 __del__ =
lambda self:
None
791 """__hash__(Object self) -> std::size_t"""
792 return _IMP_kernel.Object___hash__(self)
796 """set_log_level(Object self, IMP::LogLevel l)"""
797 return _IMP_kernel.Object_set_log_level(self, l)
801 """set_check_level(Object self, IMP::CheckLevel l)"""
802 return _IMP_kernel.Object_set_check_level(self, l)
806 """get_log_level(Object self) -> IMP::LogLevel"""
807 return _IMP_kernel.Object_get_log_level(self)
811 """get_check_level(Object self) -> IMP::CheckLevel"""
812 return _IMP_kernel.Object_get_check_level(self)
815 def get_version_info(self):
816 """get_version_info(Object self) -> VersionInfo"""
817 return _IMP_kernel.Object_get_version_info(self)
821 """get_name(Object self) -> std::string const &"""
822 return _IMP_kernel.Object_get_name(self)
825 def set_name(self, name):
826 """set_name(Object self, std::string name)"""
827 return _IMP_kernel.Object_set_name(self, name)
830 def get_type_name(self):
831 """get_type_name(Object self) -> std::string"""
832 return _IMP_kernel.Object_get_type_name(self)
835 def set_was_used(self, tf):
836 """set_was_used(Object self, bool tf)"""
837 return _IMP_kernel.Object_set_was_used(self, tf)
840 def show(self, *args):
842 show(Object self, _ostream out)
845 return _IMP_kernel.Object_show(self, *args)
848 def get_string(self):
849 """get_string(Object self) -> std::string"""
850 return _IMP_kernel.Object_get_string(self)
853 def _on_destruction(self):
854 """_on_destruction(Object self)"""
855 return _IMP_kernel.Object__on_destruction(self)
858 def get_is_valid(self):
859 """get_is_valid(Object self) -> bool"""
860 return _IMP_kernel.Object_get_is_valid(self)
863 def get_ref_count(self):
864 """get_ref_count(Object self) -> unsigned int"""
865 return _IMP_kernel.Object_get_ref_count(self)
868 def get_number_of_live_objects():
869 """get_number_of_live_objects() -> unsigned int"""
870 return _IMP_kernel.Object_get_number_of_live_objects()
872 get_number_of_live_objects = staticmethod(get_number_of_live_objects)
874 def get_is_shared(self):
875 """get_is_shared(Object self) -> bool"""
876 return _IMP_kernel.Object_get_is_shared(self)
879 def clear_caches(self):
880 """clear_caches(Object self)"""
881 return _IMP_kernel.Object_clear_caches(self)
884 def do_destroy(self):
885 """do_destroy(Object self)"""
886 return _IMP_kernel.Object_do_destroy(self)
890 """__eq__(Object self, Object o) -> bool"""
891 return _IMP_kernel.Object___eq__(self, o)
895 """__ne__(Object self, Object o) -> bool"""
896 return _IMP_kernel.Object___ne__(self, o)
900 """__le__(Object self, Object o) -> bool"""
901 return _IMP_kernel.Object___le__(self, o)
905 """__lt__(Object self, Object o) -> bool"""
906 return _IMP_kernel.Object___lt__(self, o)
910 """__ge__(Object self, Object o) -> bool"""
911 return _IMP_kernel.Object___ge__(self, o)
915 """__gt__(Object self, Object o) -> bool"""
916 return _IMP_kernel.Object___gt__(self, o)
920 """__str__(Object self) -> std::string"""
921 return _IMP_kernel.Object___str__(self)
925 """__repr__(Object self) -> std::string"""
926 return _IMP_kernel.Object___repr__(self)
931 return _object_cast_to_Object(o)
933 def __disown__(self):
935 _IMP_kernel.disown_Object(self)
936 return weakref_proxy(self)
937 Object_swigregister = _IMP_kernel.Object_swigregister
938 Object_swigregister(Object)
940 def Object_get_number_of_live_objects():
941 """Object_get_number_of_live_objects() -> unsigned int"""
942 return _IMP_kernel.Object_get_number_of_live_objects()
944 class SetLogState(_RAII):
945 """Proxy of C++ IMP::SetLogState class."""
947 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
950 """reset(SetLogState self)"""
951 return _IMP_kernel.SetLogState_reset(self)
953 __swig_destroy__ = _IMP_kernel.delete_SetLogState
954 __del__ =
lambda self:
None
956 def show(self, *args):
958 show(SetLogState self, _ostream out)
959 show(SetLogState self)
961 return _IMP_kernel.SetLogState_show(self, *args)
964 def __init__(self, *args):
966 __init__(IMP::SetLogState self) -> SetLogState
967 __init__(IMP::SetLogState self, Object o, IMP::LogLevel l) -> SetLogState
968 __init__(IMP::SetLogState self, IMP::LogLevel l) -> SetLogState
970 this = _IMP_kernel.new_SetLogState(*args)
972 self.this.append(this)
973 except __builtin__.Exception:
976 def set(self, *args):
978 set(SetLogState self, Object o, IMP::LogLevel l)
979 set(SetLogState self, IMP::LogLevel l)
981 return _IMP_kernel.SetLogState_set(self, *args)
986 def __exit__(self, exc_type, exc_val, exc_tb):
992 """__str__(SetLogState self) -> std::string"""
993 return _IMP_kernel.SetLogState___str__(self)
997 """__repr__(SetLogState self) -> std::string"""
998 return _IMP_kernel.SetLogState___repr__(self)
1000 SetLogState_swigregister = _IMP_kernel.SetLogState_swigregister
1001 SetLogState_swigregister(SetLogState)
1003 class WarningContext(object):
1004 """Proxy of C++ IMP::WarningContext class."""
1006 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1007 data_ = _swig_property(_IMP_kernel.WarningContext_data__get, _IMP_kernel.WarningContext_data__set)
1009 def add_warning(self, key, warning):
1010 """add_warning(WarningContext self, std::string key, std::string warning)"""
1011 return _IMP_kernel.WarningContext_add_warning(self, key, warning)
1014 def clear_warnings(self):
1015 """clear_warnings(WarningContext self)"""
1016 return _IMP_kernel.WarningContext_clear_warnings(self)
1019 def dump_warnings(self):
1020 """dump_warnings(WarningContext self)"""
1021 return _IMP_kernel.WarningContext_dump_warnings(self)
1023 __swig_destroy__ = _IMP_kernel.delete_WarningContext
1024 __del__ =
lambda self:
None
1026 def show(self, *args):
1028 show(WarningContext self, _ostream out)
1029 show(WarningContext self)
1031 return _IMP_kernel.WarningContext_show(self, *args)
1034 def __enter__(self):
1036 def __exit__(self, exc_type, exc_val, exc_tb):
1042 """__str__(WarningContext self) -> std::string"""
1043 return _IMP_kernel.WarningContext___str__(self)
1047 """__repr__(WarningContext self) -> std::string"""
1048 return _IMP_kernel.WarningContext___repr__(self)
1052 """__init__(IMP::WarningContext self) -> WarningContext"""
1053 this = _IMP_kernel.new_WarningContext()
1055 self.this.append(this)
1056 except __builtin__.Exception:
1058 WarningContext_swigregister = _IMP_kernel.WarningContext_swigregister
1059 WarningContext_swigregister(WarningContext)
1061 class CreateLogContext(_RAII):
1062 """Proxy of C++ IMP::CreateLogContext class."""
1064 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1066 def __init__(self, *args):
1068 __init__(IMP::CreateLogContext self, std::string fname, Object object=None) -> CreateLogContext
1069 __init__(IMP::CreateLogContext self, std::string fname) -> CreateLogContext
1070 __init__(IMP::CreateLogContext self) -> CreateLogContext
1071 __init__(IMP::CreateLogContext self, char const * fname, Object object=None) -> CreateLogContext
1072 __init__(IMP::CreateLogContext self, char const * fname) -> CreateLogContext
1074 this = _IMP_kernel.new_CreateLogContext(*args)
1076 self.this.append(this)
1077 except __builtin__.Exception:
1080 def set(self, fname, object=None):
1082 set(CreateLogContext self, char const * fname, Object object=None)
1083 set(CreateLogContext self, char const * fname)
1085 return _IMP_kernel.CreateLogContext_set(self, fname, object)
1089 """reset(CreateLogContext self)"""
1090 return _IMP_kernel.CreateLogContext_reset(self)
1092 __swig_destroy__ = _IMP_kernel.delete_CreateLogContext
1093 __del__ =
lambda self:
None
1095 def show(self, *args):
1097 show(CreateLogContext self, _ostream out)
1098 show(CreateLogContext self)
1100 return _IMP_kernel.CreateLogContext_show(self, *args)
1103 def __enter__(self):
1105 def __exit__(self, exc_type, exc_val, exc_tb):
1111 """__str__(CreateLogContext self) -> std::string"""
1112 return _IMP_kernel.CreateLogContext___str__(self)
1116 """__repr__(CreateLogContext self) -> std::string"""
1117 return _IMP_kernel.CreateLogContext___repr__(self)
1119 CreateLogContext_swigregister = _IMP_kernel.CreateLogContext_swigregister
1120 CreateLogContext_swigregister(CreateLogContext)
1122 class SetCheckState(_RAII):
1123 """Proxy of C++ IMP::SetCheckState class."""
1125 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1128 """reset(SetCheckState self)"""
1129 return _IMP_kernel.SetCheckState_reset(self)
1131 __swig_destroy__ = _IMP_kernel.delete_SetCheckState
1132 __del__ =
lambda self:
None
1134 def show(self, *args):
1136 show(SetCheckState self, _ostream out)
1137 show(SetCheckState self)
1139 return _IMP_kernel.SetCheckState_show(self, *args)
1142 def __init__(self, *args):
1144 __init__(IMP::SetCheckState self) -> SetCheckState
1145 __init__(IMP::SetCheckState self, Object o, IMP::CheckLevel l) -> SetCheckState
1146 __init__(IMP::SetCheckState self, IMP::CheckLevel l) -> SetCheckState
1148 this = _IMP_kernel.new_SetCheckState(*args)
1150 self.this.append(this)
1151 except __builtin__.Exception:
1154 def set(self, *args):
1156 set(SetCheckState self, Object o, IMP::CheckLevel l)
1157 set(SetCheckState self, IMP::CheckLevel l)
1159 return _IMP_kernel.SetCheckState_set(self, *args)
1162 def __enter__(self):
1164 def __exit__(self, exc_type, exc_val, exc_tb):
1170 """__str__(SetCheckState self) -> std::string"""
1171 return _IMP_kernel.SetCheckState___str__(self)
1175 """__repr__(SetCheckState self) -> std::string"""
1176 return _IMP_kernel.SetCheckState___repr__(self)
1178 SetCheckState_swigregister = _IMP_kernel.SetCheckState_swigregister
1179 SetCheckState_swigregister(SetCheckState)
1183 """get_unique_name(std::string templ) -> std::string"""
1184 return _IMP_kernel.get_unique_name(templ)
1185 class _Protection(object):
1186 """Proxy of C++ IMP::internal::_Protection class."""
1188 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1190 def __init__(self, *args, **kwargs):
1191 raise AttributeError(
"No constructor defined")
1193 def show(self, *args):
1195 show(_Protection self, _ostream out)
1196 show(_Protection self)
1198 return _IMP_kernel._Protection_show(self, *args)
1202 """__str__(_Protection self) -> std::string"""
1203 return _IMP_kernel._Protection___str__(self)
1207 """__repr__(_Protection self) -> std::string"""
1208 return _IMP_kernel._Protection___repr__(self)
1210 __swig_destroy__ = _IMP_kernel.delete__Protection
1211 __del__ =
lambda self:
None
1212 _Protection_swigregister = _IMP_kernel._Protection_swigregister
1213 _Protection_swigregister(_Protection)
1218 return _IMP_kernel._test_log()
1220 def _test_intranges(ips):
1221 """_test_intranges(IMP::IntRanges const & ips) -> int"""
1222 return _IMP_kernel._test_intranges(ips)
1224 def _test_intrange(*args):
1226 _test_intrange(IMP::IntRange const & ips) -> IMP::IntRange
1227 _test_intrange() -> IMP::IntRange
1229 return _IMP_kernel._test_intrange(*args)
1232 """_test_ifile(TextInput a) -> std::string"""
1233 return _IMP_kernel._test_ifile(a)
1236 """_test_ofile(TextOutput a) -> std::string"""
1237 return _IMP_kernel._test_ofile(a)
1239 def _test_ifile_overloaded(*args):
1241 _test_ifile_overloaded(TextInput a, int i) -> std::string
1242 _test_ifile_overloaded(TextInput a, std::string st) -> std::string
1244 return _IMP_kernel._test_ifile_overloaded(*args)
1246 def _test_ofile_overloaded(*args):
1248 _test_ofile_overloaded(TextOutput a, int i) -> std::string
1249 _test_ofile_overloaded(TextOutput a, std::string st) -> std::string
1251 return _IMP_kernel._test_ofile_overloaded(*args)
1252 class _TestValue(object):
1253 """Proxy of C++ IMP::internal::_TestValue class."""
1255 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1257 def __init__(self, i):
1258 """__init__(IMP::internal::_TestValue self, int i) -> _TestValue"""
1259 this = _IMP_kernel.new__TestValue(i)
1261 self.this.append(this)
1262 except __builtin__.Exception:
1265 def show(self, *args):
1267 show(_TestValue self, _ostream out)
1268 show(_TestValue self)
1270 return _IMP_kernel._TestValue_show(self, *args)
1273 def __cmp__(self, o):
1274 """__cmp__(_TestValue self, _TestValue o) -> int"""
1275 return _IMP_kernel._TestValue___cmp__(self, o)
1278 def __eq__(self, o):
1279 """__eq__(_TestValue self, _TestValue o) -> bool"""
1280 return _IMP_kernel._TestValue___eq__(self, o)
1283 def __ne__(self, o):
1284 """__ne__(_TestValue self, _TestValue o) -> bool"""
1285 return _IMP_kernel._TestValue___ne__(self, o)
1288 def __lt__(self, o):
1289 """__lt__(_TestValue self, _TestValue o) -> bool"""
1290 return _IMP_kernel._TestValue___lt__(self, o)
1293 def __gt__(self, o):
1294 """__gt__(_TestValue self, _TestValue o) -> bool"""
1295 return _IMP_kernel._TestValue___gt__(self, o)
1298 def __ge__(self, o):
1299 """__ge__(_TestValue self, _TestValue o) -> bool"""
1300 return _IMP_kernel._TestValue___ge__(self, o)
1303 def __le__(self, o):
1304 """__le__(_TestValue self, _TestValue o) -> bool"""
1305 return _IMP_kernel._TestValue___le__(self, o)
1309 """get(_TestValue self) -> int"""
1310 return _IMP_kernel._TestValue_get(self)
1313 def get_float(self):
1314 """get_float(_TestValue self) -> float const &"""
1315 return _IMP_kernel._TestValue_get_float(self)
1318 def get_double(self):
1319 """get_double(_TestValue self) -> double const &"""
1320 return _IMP_kernel._TestValue_get_double(self)
1323 def get_Float(self):
1324 """get_Float(_TestValue self) -> IMP::Float const &"""
1325 return _IMP_kernel._TestValue_get_Float(self)
1329 """get_int(_TestValue self) -> int const &"""
1330 return _IMP_kernel._TestValue_get_int(self)
1334 """get_Int(_TestValue self) -> IMP::Int const &"""
1335 return _IMP_kernel._TestValue_get_Int(self)
1338 def get_string(self):
1339 """get_string(_TestValue self) -> std::string const &"""
1340 return _IMP_kernel._TestValue_get_string(self)
1343 def get_String(self):
1344 """get_String(_TestValue self) -> IMP::String const &"""
1345 return _IMP_kernel._TestValue_get_String(self)
1349 """__str__(_TestValue self) -> std::string"""
1350 return _IMP_kernel._TestValue___str__(self)
1354 """__repr__(_TestValue self) -> std::string"""
1355 return _IMP_kernel._TestValue___repr__(self)
1357 __swig_destroy__ = _IMP_kernel.delete__TestValue
1358 __del__ =
lambda self:
None
1359 _TestValue_swigregister = _IMP_kernel._TestValue_swigregister
1360 _TestValue_swigregister(_TestValue)
1363 def _pass_plain_pair(p):
1364 """_pass_plain_pair(IMP::FloatPair p) -> IMP::FloatPair"""
1365 return _IMP_kernel._pass_plain_pair(p)
1367 def _pass_overloaded_strings(*args):
1369 _pass_overloaded_strings(IMP::Strings const & a, int arg2) -> IMP::Strings
1370 _pass_overloaded_strings(IMP::Strings const & a) -> IMP::Strings
1372 return _IMP_kernel._pass_overloaded_strings(*args)
1375 """_pass_pair(IMP::DerivativePair const & p) -> IMP::DerivativePair"""
1376 return _IMP_kernel._pass_pair(p)
1378 def _pass_floats(input):
1379 """_pass_floats(IMP::Floats const & input) -> IMP::Floats"""
1380 return _IMP_kernel._pass_floats(input)
1382 def _pass_ints(input):
1383 """_pass_ints(IMP::Ints input) -> IMP::Ints"""
1384 return _IMP_kernel._pass_ints(input)
1386 def _pass_ints_list(input):
1387 """_pass_ints_list(IMP::IntsList const & input) -> IMP::IntsList"""
1388 return _IMP_kernel._pass_ints_list(input)
1390 def _pass_ints_lists(input):
1391 """_pass_ints_lists(IMP::IntsLists const & input) -> IMP::IntsLists"""
1392 return _IMP_kernel._pass_ints_lists(input)
1394 def _pass_strings(input):
1395 """_pass_strings(IMP::Strings const & input) -> IMP::Strings const &"""
1396 return _IMP_kernel._pass_strings(input)
1397 class _TestObject(Object):
1398 """Proxy of C++ IMP::internal::_TestObject class."""
1400 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1403 """__init__(IMP::internal::_TestObject self) -> _TestObject"""
1404 this = _IMP_kernel.new__TestObject()
1406 self.this.append(this)
1407 except __builtin__.Exception:
1410 def get_version_info(self):
1411 """get_version_info(_TestObject self) -> VersionInfo"""
1412 return _IMP_kernel._TestObject_get_version_info(self)
1416 """__str__(_TestObject self) -> std::string"""
1417 return _IMP_kernel._TestObject___str__(self)
1421 """__repr__(_TestObject self) -> std::string"""
1422 return _IMP_kernel._TestObject___repr__(self)
1427 return _object_cast_to__TestObject(o)
1429 _TestObject_swigregister = _IMP_kernel._TestObject_swigregister
1430 _TestObject_swigregister(_TestObject)
1434 """get_live_object_names() -> IMP::Strings"""
1435 return _IMP_kernel.get_live_object_names()
1438 """get_live_objects() -> IMP::Objects"""
1439 return _IMP_kernel.get_live_objects()
1442 """set_show_leaked_objects(bool tf)"""
1443 return _IMP_kernel.set_show_leaked_objects(tf)
1446 """set_deprecation_warnings(bool tf)"""
1447 return _IMP_kernel.set_deprecation_warnings(tf)
1450 """set_deprecation_exceptions(bool tf)"""
1451 return _IMP_kernel.set_deprecation_exceptions(tf)
1454 """get_deprecation_exceptions() -> bool"""
1455 return _IMP_kernel.get_deprecation_exceptions()
1458 """handle_use_deprecated(std::string message)"""
1459 return _IMP_kernel.handle_use_deprecated(message)
1462 """get_number_of_threads() -> unsigned int"""
1463 return _IMP_kernel.get_number_of_threads()
1466 """set_number_of_threads(unsigned int n)"""
1467 return _IMP_kernel.set_number_of_threads(n)
1468 class SetNumberOfThreads(_RAII):
1469 """Proxy of C++ IMP::SetNumberOfThreads class."""
1471 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1473 def __init__(self, *args):
1475 __init__(IMP::SetNumberOfThreads self) -> SetNumberOfThreads
1476 __init__(IMP::SetNumberOfThreads self, unsigned int n) -> SetNumberOfThreads
1478 this = _IMP_kernel.new_SetNumberOfThreads(*args)
1480 self.this.append(this)
1481 except __builtin__.Exception:
1485 """set(SetNumberOfThreads self, unsigned int n)"""
1486 return _IMP_kernel.SetNumberOfThreads_set(self, n)
1490 """reset(SetNumberOfThreads self)"""
1491 return _IMP_kernel.SetNumberOfThreads_reset(self)
1493 __swig_destroy__ = _IMP_kernel.delete_SetNumberOfThreads
1494 __del__ =
lambda self:
None
1496 def show(self, *args):
1498 show(SetNumberOfThreads self, _ostream out)
1499 show(SetNumberOfThreads self)
1501 return _IMP_kernel.SetNumberOfThreads_show(self, *args)
1504 def __enter__(self):
1506 def __exit__(self, exc_type, exc_val, exc_tb):
1512 """__str__(SetNumberOfThreads self) -> std::string"""
1513 return _IMP_kernel.SetNumberOfThreads___str__(self)
1517 """__repr__(SetNumberOfThreads self) -> std::string"""
1518 return _IMP_kernel.SetNumberOfThreads___repr__(self)
1520 SetNumberOfThreads_swigregister = _IMP_kernel.SetNumberOfThreads_swigregister
1521 SetNumberOfThreads_swigregister(SetNumberOfThreads)
1525 i_m_p=
"IMP_MODULE_PATH"
1526 if i_m_p
in os.environ.keys():
1527 __path__.insert(0, os.environ[i_m_p])
1529 def _forward_add_attribute(self, name, value, opt=None):
1531 self.get_particle().add_attribute(name, value, opt)
1533 self.get_particle().add_attribute(name, value)
1534 def _forward_get_value(self, name):
1535 self.get_particle().get_value(name)
1536 def _forward_set_value(self, name, value):
1537 self.get_particle().set_value(name, value)
1543 _object_types.append(
"Constraint")
1546 def _object_cast_to_Constraint(o):
1547 """_object_cast_to_Constraint(Object o) -> Constraint"""
1548 return _IMP_kernel._object_cast_to_Constraint(o)
1550 _object_types.append(
"Undecorator")
1553 def _object_cast_to_Undecorator(o):
1554 """_object_cast_to_Undecorator(Object o) -> Undecorator"""
1555 return _IMP_kernel._object_cast_to_Undecorator(o)
1557 _object_types.append(
"Container")
1560 def _object_cast_to_Container(o):
1561 """_object_cast_to_Container(Object o) -> Container"""
1562 return _IMP_kernel._object_cast_to_Container(o)
1564 _object_types.append(
"Optimizer")
1567 def _object_cast_to_Optimizer(o):
1568 """_object_cast_to_Optimizer(Object o) -> Optimizer"""
1569 return _IMP_kernel._object_cast_to_Optimizer(o)
1571 _object_types.append(
"AttributeOptimizer")
1574 def _object_cast_to_AttributeOptimizer(o):
1575 """_object_cast_to_AttributeOptimizer(Object o) -> AttributeOptimizer"""
1576 return _IMP_kernel._object_cast_to_AttributeOptimizer(o)
1578 _object_types.append(
"OptimizerState")
1581 def _object_cast_to_OptimizerState(o):
1582 """_object_cast_to_OptimizerState(Object o) -> OptimizerState"""
1583 return _IMP_kernel._object_cast_to_OptimizerState(o)
1585 _object_types.append(
"PairContainer")
1588 def _object_cast_to_PairContainer(o):
1589 """_object_cast_to_PairContainer(Object o) -> PairContainer"""
1590 return _IMP_kernel._object_cast_to_PairContainer(o)
1592 _object_types.append(
"PairModifier")
1595 def _object_cast_to_PairModifier(o):
1596 """_object_cast_to_PairModifier(Object o) -> PairModifier"""
1597 return _IMP_kernel._object_cast_to_PairModifier(o)
1599 _object_types.append(
"PairScore")
1602 def _object_cast_to_PairScore(o):
1603 """_object_cast_to_PairScore(Object o) -> PairScore"""
1604 return _IMP_kernel._object_cast_to_PairScore(o)
1606 _object_types.append(
"QuadContainer")
1609 def _object_cast_to_QuadContainer(o):
1610 """_object_cast_to_QuadContainer(Object o) -> QuadContainer"""
1611 return _IMP_kernel._object_cast_to_QuadContainer(o)
1613 _object_types.append(
"QuadModifier")
1616 def _object_cast_to_QuadModifier(o):
1617 """_object_cast_to_QuadModifier(Object o) -> QuadModifier"""
1618 return _IMP_kernel._object_cast_to_QuadModifier(o)
1620 _object_types.append(
"QuadScore")
1623 def _object_cast_to_QuadScore(o):
1624 """_object_cast_to_QuadScore(Object o) -> QuadScore"""
1625 return _IMP_kernel._object_cast_to_QuadScore(o)
1627 _object_types.append(
"Refiner")
1630 def _object_cast_to_Refiner(o):
1631 """_object_cast_to_Refiner(Object o) -> Refiner"""
1632 return _IMP_kernel._object_cast_to_Refiner(o)
1634 _object_types.append(
"Restraint")
1637 def _object_cast_to_Restraint(o):
1638 """_object_cast_to_Restraint(Object o) -> Restraint"""
1639 return _IMP_kernel._object_cast_to_Restraint(o)
1641 _object_types.append(
"Sampler")
1644 def _object_cast_to_Sampler(o):
1645 """_object_cast_to_Sampler(Object o) -> Sampler"""
1646 return _IMP_kernel._object_cast_to_Sampler(o)
1648 _object_types.append(
"ScoreState")
1651 def _object_cast_to_ScoreState(o):
1652 """_object_cast_to_ScoreState(Object o) -> ScoreState"""
1653 return _IMP_kernel._object_cast_to_ScoreState(o)
1655 _object_types.append(
"SingletonContainer")
1658 def _object_cast_to_SingletonContainer(o):
1659 """_object_cast_to_SingletonContainer(Object o) -> SingletonContainer"""
1660 return _IMP_kernel._object_cast_to_SingletonContainer(o)
1662 _object_types.append(
"SingletonModifier")
1665 def _object_cast_to_SingletonModifier(o):
1666 """_object_cast_to_SingletonModifier(Object o) -> SingletonModifier"""
1667 return _IMP_kernel._object_cast_to_SingletonModifier(o)
1669 _object_types.append(
"SingletonScore")
1672 def _object_cast_to_SingletonScore(o):
1673 """_object_cast_to_SingletonScore(Object o) -> SingletonScore"""
1674 return _IMP_kernel._object_cast_to_SingletonScore(o)
1676 _object_types.append(
"TripletContainer")
1679 def _object_cast_to_TripletContainer(o):
1680 """_object_cast_to_TripletContainer(Object o) -> TripletContainer"""
1681 return _IMP_kernel._object_cast_to_TripletContainer(o)
1683 _object_types.append(
"TripletModifier")
1686 def _object_cast_to_TripletModifier(o):
1687 """_object_cast_to_TripletModifier(Object o) -> TripletModifier"""
1688 return _IMP_kernel._object_cast_to_TripletModifier(o)
1690 _object_types.append(
"TripletScore")
1693 def _object_cast_to_TripletScore(o):
1694 """_object_cast_to_TripletScore(Object o) -> TripletScore"""
1695 return _IMP_kernel._object_cast_to_TripletScore(o)
1697 _object_types.append(
"UnaryFunction")
1700 def _object_cast_to_UnaryFunction(o):
1701 """_object_cast_to_UnaryFunction(Object o) -> UnaryFunction"""
1702 return _IMP_kernel._object_cast_to_UnaryFunction(o)
1704 _object_types.append(
"RestraintInfo")
1707 def _object_cast_to_RestraintInfo(o):
1708 """_object_cast_to_RestraintInfo(Object o) -> RestraintInfo"""
1709 return _IMP_kernel._object_cast_to_RestraintInfo(o)
1711 _object_types.append(
"ConfigurationSet")
1714 def _object_cast_to_ConfigurationSet(o):
1715 """_object_cast_to_ConfigurationSet(Object o) -> ConfigurationSet"""
1716 return _IMP_kernel._object_cast_to_ConfigurationSet(o)
1718 _object_types.append(
"Configuration")
1721 def _object_cast_to_Configuration(o):
1722 """_object_cast_to_Configuration(Object o) -> Configuration"""
1723 return _IMP_kernel._object_cast_to_Configuration(o)
1725 _object_types.append(
"Model")
1728 def _object_cast_to_Model(o):
1729 """_object_cast_to_Model(Object o) -> Model"""
1730 return _IMP_kernel._object_cast_to_Model(o)
1732 _object_types.append(
"Particle")
1735 def _object_cast_to_Particle(o):
1736 """_object_cast_to_Particle(Object o) -> Particle"""
1737 return _IMP_kernel._object_cast_to_Particle(o)
1739 _object_types.append(
"RestraintSet")
1742 def _object_cast_to_RestraintSet(o):
1743 """_object_cast_to_RestraintSet(Object o) -> RestraintSet"""
1744 return _IMP_kernel._object_cast_to_RestraintSet(o)
1746 ParticlePairsTemp=list
1747 _plural_types.append(
"ParticlePairsTemp")
1748 _value_types.append(
"ParticlePair")
1751 ParticleTripletsTemp=list
1752 _plural_types.append(
"ParticleTripletsTemp")
1753 _value_types.append(
"ParticleTriplet")
1756 ParticleQuadsTemp=list
1757 _plural_types.append(
"ParticleQuadsTemp")
1758 _value_types.append(
"ParticleQuad")
1761 ParticleIndexPairs=list
1762 _plural_types.append(
"ParticleIndexPairs")
1763 _value_types.append(
"ParticleIndexPair")
1766 ParticleIndexTriplets=list
1767 _plural_types.append(
"ParticleIndexTriplets")
1768 _value_types.append(
"ParticleIndexTriplet")
1771 ParticleIndexQuads=list
1772 _plural_types.append(
"ParticleIndexQuads")
1773 _value_types.append(
"ParticleIndexQuad")
1776 _object_types.append(
"SingletonPredicate")
1779 def _object_cast_to_SingletonPredicate(o):
1780 """_object_cast_to_SingletonPredicate(Object o) -> SingletonPredicate"""
1781 return _IMP_kernel._object_cast_to_SingletonPredicate(o)
1783 _object_types.append(
"PairPredicate")
1786 def _object_cast_to_PairPredicate(o):
1787 """_object_cast_to_PairPredicate(Object o) -> PairPredicate"""
1788 return _IMP_kernel._object_cast_to_PairPredicate(o)
1790 _object_types.append(
"TripletPredicate")
1793 def _object_cast_to_TripletPredicate(o):
1794 """_object_cast_to_TripletPredicate(Object o) -> TripletPredicate"""
1795 return _IMP_kernel._object_cast_to_TripletPredicate(o)
1797 _object_types.append(
"QuadPredicate")
1800 def _object_cast_to_QuadPredicate(o):
1801 """_object_cast_to_QuadPredicate(Object o) -> QuadPredicate"""
1802 return _IMP_kernel._object_cast_to_QuadPredicate(o)
1804 _object_types.append(
"SaveToConfigurationSetOptimizerState")
1807 def _object_cast_to_SaveToConfigurationSetOptimizerState(o):
1808 """_object_cast_to_SaveToConfigurationSetOptimizerState(Object o) -> SaveToConfigurationSetOptimizerState"""
1809 return _IMP_kernel._object_cast_to_SaveToConfigurationSetOptimizerState(o)
1811 EvaluationStates=list
1812 _plural_types.append(
"EvaluationStates")
1813 _value_types.append(
"EvaluationState")
1816 ScoreAccumulators=list
1817 _plural_types.append(
"ScoreAccumulators")
1818 _value_types.append(
"ScoreAccumulator")
1821 ParticleIndexes=list
1822 _plural_types.append(
"ParticleIndexes")
1823 _value_types.append(
"ParticleIndex")
1827 _plural_types.append(
"FloatIndexes")
1828 _value_types.append(
"FloatIndex")
1832 _plural_types.append(
"FloatKeys")
1833 _value_types.append(
"FloatKey")
1837 _plural_types.append(
"IntKeys")
1838 _value_types.append(
"IntKey")
1842 _plural_types.append(
"StringKeys")
1843 _value_types.append(
"StringKey")
1846 ParticleIndexKeys=list
1847 _plural_types.append(
"ParticleIndexKeys")
1848 _value_types.append(
"ParticleIndexKey")
1851 ParticleIndexesKeys=list
1852 _plural_types.append(
"ParticleIndexesKeys")
1853 _value_types.append(
"ParticleIndexesKey")
1857 _plural_types.append(
"ObjectKeys")
1858 _value_types.append(
"ObjectKey")
1862 _plural_types.append(
"ModelKeys")
1863 _value_types.append(
"ModelKey")
1866 _raii_types.append(
"ScopedSetFloatAttribute")
1869 _object_types.append(
"ScoringFunction")
1872 def _object_cast_to_ScoringFunction(o):
1873 """_object_cast_to_ScoringFunction(Object o) -> ScoringFunction"""
1874 return _IMP_kernel._object_cast_to_ScoringFunction(o)
1876 _object_types.append(
"ModelObject")
1879 def _object_cast_to_ModelObject(o):
1880 """_object_cast_to_ModelObject(Object o) -> ModelObject"""
1881 return _IMP_kernel._object_cast_to_ModelObject(o)
1883 def _TrivialDecorators(l=[]):
1884 return [_TrivialDecorator(x)
for x
in l]
1885 _plural_types.append(
"_TrivialDecorators")
1888 _value_types.append(
"_TrivialDecorator")
1891 def _TrivialDerivedDecorators(l=[]):
1892 return [_TrivialDerivedDecorator(x)
for x
in l]
1893 _plural_types.append(
"_TrivialDerivedDecorators")
1896 _value_types.append(
"_TrivialDerivedDecorator")
1899 def _TrivialTraitsDecorators(l=[]):
1900 return [_TrivialTraitsDecorator(x)
for x
in l]
1901 _plural_types.append(
"_TrivialTraitsDecorators")
1904 _value_types.append(
"_TrivialTraitsDecorator")
1907 _object_types.append(
"_ConstRestraint")
1910 def _object_cast_to__ConstRestraint(o):
1911 """_object_cast_to__ConstRestraint(Object o) -> _ConstRestraint"""
1912 return _IMP_kernel._object_cast_to__ConstRestraint(o)
1914 _object_types.append(
"_ConstOptimizer")
1917 def _object_cast_to__ConstOptimizer(o):
1918 """_object_cast_to__ConstOptimizer(Object o) -> _ConstOptimizer"""
1919 return _IMP_kernel._object_cast_to__ConstOptimizer(o)
1921 """Proxy of C++ IMP::internal::BoostDigraph<(IMP::DependencyGraph,p.IMP::ModelObject,IMP::ShowDependencyGraphVertex)> class."""
1923 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1924 __repr__ = _swig_repr
1927 """__init__(IMP::internal::BoostDigraph<(IMP::DependencyGraph,p.IMP::ModelObject,IMP::ShowDependencyGraphVertex)> self) -> DependencyGraph"""
1928 this = _IMP_kernel.new_DependencyGraph()
1930 self.this.append(this)
1931 except __builtin__.Exception:
1934 def get_graph(self):
1935 """get_graph(DependencyGraph self) -> IMP::DependencyGraph const &"""
1936 return _IMP_kernel.DependencyGraph_get_graph(self)
1940 """get_vertices(DependencyGraph self) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptors"""
1941 return _IMP_kernel.DependencyGraph_get_vertices(self)
1944 def get_vertex_name(self, i):
1945 """get_vertex_name(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor i) -> ModelObject"""
1946 return _IMP_kernel.DependencyGraph_get_vertex_name(self, i)
1949 def get_in_neighbors(self, v):
1950 """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"""
1951 return _IMP_kernel.DependencyGraph_get_in_neighbors(self, v)
1954 def get_out_neighbors(self, v):
1955 """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"""
1956 return _IMP_kernel.DependencyGraph_get_out_neighbors(self, v)
1961 show_graphviz(DependencyGraph self, _ostream out)
1962 show_graphviz(DependencyGraph self)
1964 return _IMP_kernel.DependencyGraph_show_graphviz(self, *args)
1967 def get_graphviz_string(self):
1968 """get_graphviz_string(DependencyGraph self) -> std::string"""
1969 return _IMP_kernel.DependencyGraph_get_graphviz_string(self)
1972 def add_edge(self, v0, v1):
1973 """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)"""
1974 return _IMP_kernel.DependencyGraph_add_edge(self, v0, v1)
1977 def add_vertex(self, l):
1978 """add_vertex(DependencyGraph self, ModelObject l) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor"""
1979 return _IMP_kernel.DependencyGraph_add_vertex(self, l)
1982 def remove_vertex(self, l):
1983 """remove_vertex(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor l)"""
1984 return _IMP_kernel.DependencyGraph_remove_vertex(self, l)
1986 __swig_destroy__ = _IMP_kernel.delete_DependencyGraph
1987 __del__ =
lambda self:
None
1988 DependencyGraph_swigregister = _IMP_kernel.DependencyGraph_swigregister
1989 DependencyGraph_swigregister(DependencyGraph)
1992 _value_types.append(
"DependencyGraph")
1995 """Proxy of C++ IMP::Key<(0)> class."""
1997 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1999 def __init__(self, *args):
2001 __init__(IMP::Key<(0)> self) -> FloatKey
2002 __init__(IMP::Key<(0)> self, std::string const & c, bool is_implicit_add_permitted=True) -> FloatKey
2003 __init__(IMP::Key<(0)> self, std::string const & c) -> FloatKey
2004 __init__(IMP::Key<(0)> self, unsigned int i) -> FloatKey
2006 this = _IMP_kernel.new_FloatKey(*args)
2008 self.this.append(this)
2009 except __builtin__.Exception:
2013 """add_key(std::string sc) -> unsigned int"""
2014 return _IMP_kernel.FloatKey_add_key(sc)
2016 add_key = staticmethod(add_key)
2018 def get_key_exists(sc):
2019 """get_key_exists(std::string sc) -> bool"""
2020 return _IMP_kernel.FloatKey_get_key_exists(sc)
2022 get_key_exists = staticmethod(get_key_exists)
2024 def get_string(self):
2025 """get_string(FloatKey self) -> std::string const"""
2026 return _IMP_kernel.FloatKey_get_string(self)
2029 def __cmp__(self, o):
2030 """__cmp__(FloatKey self, FloatKey o) -> int"""
2031 return _IMP_kernel.FloatKey___cmp__(self, o)
2034 def __eq__(self, o):
2035 """__eq__(FloatKey self, FloatKey o) -> bool"""
2036 return _IMP_kernel.FloatKey___eq__(self, o)
2039 def __ne__(self, o):
2040 """__ne__(FloatKey self, FloatKey o) -> bool"""
2041 return _IMP_kernel.FloatKey___ne__(self, o)
2044 def __lt__(self, o):
2045 """__lt__(FloatKey self, FloatKey o) -> bool"""
2046 return _IMP_kernel.FloatKey___lt__(self, o)
2049 def __gt__(self, o):
2050 """__gt__(FloatKey self, FloatKey o) -> bool"""
2051 return _IMP_kernel.FloatKey___gt__(self, o)
2054 def __ge__(self, o):
2055 """__ge__(FloatKey self, FloatKey o) -> bool"""
2056 return _IMP_kernel.FloatKey___ge__(self, o)
2059 def __le__(self, o):
2060 """__le__(FloatKey self, FloatKey o) -> bool"""
2061 return _IMP_kernel.FloatKey___le__(self, o)
2065 """__hash__(FloatKey self) -> std::size_t"""
2066 return _IMP_kernel.FloatKey___hash__(self)
2069 def show(self, *args):
2071 show(FloatKey self, _ostream out)
2074 return _IMP_kernel.FloatKey_show(self, *args)
2077 def add_alias(old_key, new_name):
2078 """add_alias(FloatKey old_key, std::string new_name) -> FloatKey"""
2079 return _IMP_kernel.FloatKey_add_alias(old_key, new_name)
2081 add_alias = staticmethod(add_alias)
2083 def get_number_of_keys():
2084 """get_number_of_keys() -> unsigned int"""
2085 return _IMP_kernel.FloatKey_get_number_of_keys()
2087 get_number_of_keys = staticmethod(get_number_of_keys)
2090 """get_index(FloatKey self) -> unsigned int"""
2091 return _IMP_kernel.FloatKey_get_index(self)
2095 """show_all(_ostream out)"""
2096 return _IMP_kernel.FloatKey_show_all(out)
2098 show_all = staticmethod(show_all)
2100 def get_all_strings():
2101 """get_all_strings() -> IMP::Vector< std::string >"""
2102 return _IMP_kernel.FloatKey_get_all_strings()
2104 get_all_strings = staticmethod(get_all_strings)
2106 def get_number_unique():
2107 """get_number_unique() -> unsigned int"""
2108 return _IMP_kernel.FloatKey_get_number_unique()
2110 get_number_unique = staticmethod(get_number_unique)
2113 """__str__(FloatKey self) -> std::string"""
2114 return _IMP_kernel.FloatKey___str__(self)
2118 """__repr__(FloatKey self) -> std::string"""
2119 return _IMP_kernel.FloatKey___repr__(self)
2121 __swig_destroy__ = _IMP_kernel.delete_FloatKey
2122 __del__ =
lambda self:
None
2123 FloatKey_swigregister = _IMP_kernel.FloatKey_swigregister
2124 FloatKey_swigregister(FloatKey)
2126 def FloatKey_add_key(sc):
2127 """FloatKey_add_key(std::string sc) -> unsigned int"""
2128 return _IMP_kernel.FloatKey_add_key(sc)
2130 def FloatKey_get_key_exists(sc):
2131 """FloatKey_get_key_exists(std::string sc) -> bool"""
2132 return _IMP_kernel.FloatKey_get_key_exists(sc)
2134 def FloatKey_add_alias(old_key, new_name):
2135 """FloatKey_add_alias(FloatKey old_key, std::string new_name) -> FloatKey"""
2136 return _IMP_kernel.FloatKey_add_alias(old_key, new_name)
2138 def FloatKey_get_number_of_keys():
2139 """FloatKey_get_number_of_keys() -> unsigned int"""
2140 return _IMP_kernel.FloatKey_get_number_of_keys()
2142 def FloatKey_show_all(out):
2143 """FloatKey_show_all(_ostream out)"""
2144 return _IMP_kernel.FloatKey_show_all(out)
2146 def FloatKey_get_all_strings():
2147 """FloatKey_get_all_strings() -> IMP::Vector< std::string >"""
2148 return _IMP_kernel.FloatKey_get_all_strings()
2150 def FloatKey_get_number_unique():
2151 """FloatKey_get_number_unique() -> unsigned int"""
2152 return _IMP_kernel.FloatKey_get_number_unique()
2155 """Proxy of C++ IMP::Key<(1)> class."""
2157 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2159 def __init__(self, *args):
2161 __init__(IMP::Key<(1)> self) -> IntKey
2162 __init__(IMP::Key<(1)> self, std::string const & c, bool is_implicit_add_permitted=True) -> IntKey
2163 __init__(IMP::Key<(1)> self, std::string const & c) -> IntKey
2164 __init__(IMP::Key<(1)> self, unsigned int i) -> IntKey
2166 this = _IMP_kernel.new_IntKey(*args)
2168 self.this.append(this)
2169 except __builtin__.Exception:
2173 """add_key(std::string sc) -> unsigned int"""
2174 return _IMP_kernel.IntKey_add_key(sc)
2176 add_key = staticmethod(add_key)
2178 def get_key_exists(sc):
2179 """get_key_exists(std::string sc) -> bool"""
2180 return _IMP_kernel.IntKey_get_key_exists(sc)
2182 get_key_exists = staticmethod(get_key_exists)
2184 def get_string(self):
2185 """get_string(IntKey self) -> std::string const"""
2186 return _IMP_kernel.IntKey_get_string(self)
2189 def __cmp__(self, o):
2190 """__cmp__(IntKey self, IntKey o) -> int"""
2191 return _IMP_kernel.IntKey___cmp__(self, o)
2194 def __eq__(self, o):
2195 """__eq__(IntKey self, IntKey o) -> bool"""
2196 return _IMP_kernel.IntKey___eq__(self, o)
2199 def __ne__(self, o):
2200 """__ne__(IntKey self, IntKey o) -> bool"""
2201 return _IMP_kernel.IntKey___ne__(self, o)
2204 def __lt__(self, o):
2205 """__lt__(IntKey self, IntKey o) -> bool"""
2206 return _IMP_kernel.IntKey___lt__(self, o)
2209 def __gt__(self, o):
2210 """__gt__(IntKey self, IntKey o) -> bool"""
2211 return _IMP_kernel.IntKey___gt__(self, o)
2214 def __ge__(self, o):
2215 """__ge__(IntKey self, IntKey o) -> bool"""
2216 return _IMP_kernel.IntKey___ge__(self, o)
2219 def __le__(self, o):
2220 """__le__(IntKey self, IntKey o) -> bool"""
2221 return _IMP_kernel.IntKey___le__(self, o)
2225 """__hash__(IntKey self) -> std::size_t"""
2226 return _IMP_kernel.IntKey___hash__(self)
2229 def show(self, *args):
2231 show(IntKey self, _ostream out)
2234 return _IMP_kernel.IntKey_show(self, *args)
2237 def add_alias(old_key, new_name):
2238 """add_alias(IntKey old_key, std::string new_name) -> IntKey"""
2239 return _IMP_kernel.IntKey_add_alias(old_key, new_name)
2241 add_alias = staticmethod(add_alias)
2243 def get_number_of_keys():
2244 """get_number_of_keys() -> unsigned int"""
2245 return _IMP_kernel.IntKey_get_number_of_keys()
2247 get_number_of_keys = staticmethod(get_number_of_keys)
2250 """get_index(IntKey self) -> unsigned int"""
2251 return _IMP_kernel.IntKey_get_index(self)
2255 """show_all(_ostream out)"""
2256 return _IMP_kernel.IntKey_show_all(out)
2258 show_all = staticmethod(show_all)
2260 def get_all_strings():
2261 """get_all_strings() -> IMP::Vector< std::string >"""
2262 return _IMP_kernel.IntKey_get_all_strings()
2264 get_all_strings = staticmethod(get_all_strings)
2266 def get_number_unique():
2267 """get_number_unique() -> unsigned int"""
2268 return _IMP_kernel.IntKey_get_number_unique()
2270 get_number_unique = staticmethod(get_number_unique)
2273 """__str__(IntKey self) -> std::string"""
2274 return _IMP_kernel.IntKey___str__(self)
2278 """__repr__(IntKey self) -> std::string"""
2279 return _IMP_kernel.IntKey___repr__(self)
2281 __swig_destroy__ = _IMP_kernel.delete_IntKey
2282 __del__ =
lambda self:
None
2283 IntKey_swigregister = _IMP_kernel.IntKey_swigregister
2284 IntKey_swigregister(IntKey)
2286 def IntKey_add_key(sc):
2287 """IntKey_add_key(std::string sc) -> unsigned int"""
2288 return _IMP_kernel.IntKey_add_key(sc)
2290 def IntKey_get_key_exists(sc):
2291 """IntKey_get_key_exists(std::string sc) -> bool"""
2292 return _IMP_kernel.IntKey_get_key_exists(sc)
2294 def IntKey_add_alias(old_key, new_name):
2295 """IntKey_add_alias(IntKey old_key, std::string new_name) -> IntKey"""
2296 return _IMP_kernel.IntKey_add_alias(old_key, new_name)
2298 def IntKey_get_number_of_keys():
2299 """IntKey_get_number_of_keys() -> unsigned int"""
2300 return _IMP_kernel.IntKey_get_number_of_keys()
2302 def IntKey_show_all(out):
2303 """IntKey_show_all(_ostream out)"""
2304 return _IMP_kernel.IntKey_show_all(out)
2306 def IntKey_get_all_strings():
2307 """IntKey_get_all_strings() -> IMP::Vector< std::string >"""
2308 return _IMP_kernel.IntKey_get_all_strings()
2310 def IntKey_get_number_unique():
2311 """IntKey_get_number_unique() -> unsigned int"""
2312 return _IMP_kernel.IntKey_get_number_unique()
2315 """Proxy of C++ IMP::Key<(2)> class."""
2317 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2319 def __init__(self, *args):
2321 __init__(IMP::Key<(2)> self) -> StringKey
2322 __init__(IMP::Key<(2)> self, std::string const & c, bool is_implicit_add_permitted=True) -> StringKey
2323 __init__(IMP::Key<(2)> self, std::string const & c) -> StringKey
2324 __init__(IMP::Key<(2)> self, unsigned int i) -> StringKey
2326 this = _IMP_kernel.new_StringKey(*args)
2328 self.this.append(this)
2329 except __builtin__.Exception:
2333 """add_key(std::string sc) -> unsigned int"""
2334 return _IMP_kernel.StringKey_add_key(sc)
2336 add_key = staticmethod(add_key)
2338 def get_key_exists(sc):
2339 """get_key_exists(std::string sc) -> bool"""
2340 return _IMP_kernel.StringKey_get_key_exists(sc)
2342 get_key_exists = staticmethod(get_key_exists)
2344 def get_string(self):
2345 """get_string(StringKey self) -> std::string const"""
2346 return _IMP_kernel.StringKey_get_string(self)
2349 def __cmp__(self, o):
2350 """__cmp__(StringKey self, StringKey o) -> int"""
2351 return _IMP_kernel.StringKey___cmp__(self, o)
2354 def __eq__(self, o):
2355 """__eq__(StringKey self, StringKey o) -> bool"""
2356 return _IMP_kernel.StringKey___eq__(self, o)
2359 def __ne__(self, o):
2360 """__ne__(StringKey self, StringKey o) -> bool"""
2361 return _IMP_kernel.StringKey___ne__(self, o)
2364 def __lt__(self, o):
2365 """__lt__(StringKey self, StringKey o) -> bool"""
2366 return _IMP_kernel.StringKey___lt__(self, o)
2369 def __gt__(self, o):
2370 """__gt__(StringKey self, StringKey o) -> bool"""
2371 return _IMP_kernel.StringKey___gt__(self, o)
2374 def __ge__(self, o):
2375 """__ge__(StringKey self, StringKey o) -> bool"""
2376 return _IMP_kernel.StringKey___ge__(self, o)
2379 def __le__(self, o):
2380 """__le__(StringKey self, StringKey o) -> bool"""
2381 return _IMP_kernel.StringKey___le__(self, o)
2385 """__hash__(StringKey self) -> std::size_t"""
2386 return _IMP_kernel.StringKey___hash__(self)
2389 def show(self, *args):
2391 show(StringKey self, _ostream out)
2392 show(StringKey self)
2394 return _IMP_kernel.StringKey_show(self, *args)
2397 def add_alias(old_key, new_name):
2398 """add_alias(StringKey old_key, std::string new_name) -> StringKey"""
2399 return _IMP_kernel.StringKey_add_alias(old_key, new_name)
2401 add_alias = staticmethod(add_alias)
2403 def get_number_of_keys():
2404 """get_number_of_keys() -> unsigned int"""
2405 return _IMP_kernel.StringKey_get_number_of_keys()
2407 get_number_of_keys = staticmethod(get_number_of_keys)
2410 """get_index(StringKey self) -> unsigned int"""
2411 return _IMP_kernel.StringKey_get_index(self)
2415 """show_all(_ostream out)"""
2416 return _IMP_kernel.StringKey_show_all(out)
2418 show_all = staticmethod(show_all)
2420 def get_all_strings():
2421 """get_all_strings() -> IMP::Vector< std::string >"""
2422 return _IMP_kernel.StringKey_get_all_strings()
2424 get_all_strings = staticmethod(get_all_strings)
2426 def get_number_unique():
2427 """get_number_unique() -> unsigned int"""
2428 return _IMP_kernel.StringKey_get_number_unique()
2430 get_number_unique = staticmethod(get_number_unique)
2433 """__str__(StringKey self) -> std::string"""
2434 return _IMP_kernel.StringKey___str__(self)
2438 """__repr__(StringKey self) -> std::string"""
2439 return _IMP_kernel.StringKey___repr__(self)
2441 __swig_destroy__ = _IMP_kernel.delete_StringKey
2442 __del__ =
lambda self:
None
2443 StringKey_swigregister = _IMP_kernel.StringKey_swigregister
2444 StringKey_swigregister(StringKey)
2446 def StringKey_add_key(sc):
2447 """StringKey_add_key(std::string sc) -> unsigned int"""
2448 return _IMP_kernel.StringKey_add_key(sc)
2450 def StringKey_get_key_exists(sc):
2451 """StringKey_get_key_exists(std::string sc) -> bool"""
2452 return _IMP_kernel.StringKey_get_key_exists(sc)
2454 def StringKey_add_alias(old_key, new_name):
2455 """StringKey_add_alias(StringKey old_key, std::string new_name) -> StringKey"""
2456 return _IMP_kernel.StringKey_add_alias(old_key, new_name)
2458 def StringKey_get_number_of_keys():
2459 """StringKey_get_number_of_keys() -> unsigned int"""
2460 return _IMP_kernel.StringKey_get_number_of_keys()
2462 def StringKey_show_all(out):
2463 """StringKey_show_all(_ostream out)"""
2464 return _IMP_kernel.StringKey_show_all(out)
2466 def StringKey_get_all_strings():
2467 """StringKey_get_all_strings() -> IMP::Vector< std::string >"""
2468 return _IMP_kernel.StringKey_get_all_strings()
2470 def StringKey_get_number_unique():
2471 """StringKey_get_number_unique() -> unsigned int"""
2472 return _IMP_kernel.StringKey_get_number_unique()
2475 """Proxy of C++ IMP::Key<(3)> class."""
2477 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2479 def __init__(self, *args):
2481 __init__(IMP::Key<(3)> self) -> ParticleIndexKey
2482 __init__(IMP::Key<(3)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleIndexKey
2483 __init__(IMP::Key<(3)> self, std::string const & c) -> ParticleIndexKey
2484 __init__(IMP::Key<(3)> self, unsigned int i) -> ParticleIndexKey
2486 this = _IMP_kernel.new_ParticleIndexKey(*args)
2488 self.this.append(this)
2489 except __builtin__.Exception:
2493 """add_key(std::string sc) -> unsigned int"""
2494 return _IMP_kernel.ParticleIndexKey_add_key(sc)
2496 add_key = staticmethod(add_key)
2498 def get_key_exists(sc):
2499 """get_key_exists(std::string sc) -> bool"""
2500 return _IMP_kernel.ParticleIndexKey_get_key_exists(sc)
2502 get_key_exists = staticmethod(get_key_exists)
2504 def get_string(self):
2505 """get_string(ParticleIndexKey self) -> std::string const"""
2506 return _IMP_kernel.ParticleIndexKey_get_string(self)
2509 def __cmp__(self, o):
2510 """__cmp__(ParticleIndexKey self, ParticleIndexKey o) -> int"""
2511 return _IMP_kernel.ParticleIndexKey___cmp__(self, o)
2514 def __eq__(self, o):
2515 """__eq__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2516 return _IMP_kernel.ParticleIndexKey___eq__(self, o)
2519 def __ne__(self, o):
2520 """__ne__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2521 return _IMP_kernel.ParticleIndexKey___ne__(self, o)
2524 def __lt__(self, o):
2525 """__lt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2526 return _IMP_kernel.ParticleIndexKey___lt__(self, o)
2529 def __gt__(self, o):
2530 """__gt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2531 return _IMP_kernel.ParticleIndexKey___gt__(self, o)
2534 def __ge__(self, o):
2535 """__ge__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2536 return _IMP_kernel.ParticleIndexKey___ge__(self, o)
2539 def __le__(self, o):
2540 """__le__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2541 return _IMP_kernel.ParticleIndexKey___le__(self, o)
2545 """__hash__(ParticleIndexKey self) -> std::size_t"""
2546 return _IMP_kernel.ParticleIndexKey___hash__(self)
2549 def show(self, *args):
2551 show(ParticleIndexKey self, _ostream out)
2552 show(ParticleIndexKey self)
2554 return _IMP_kernel.ParticleIndexKey_show(self, *args)
2557 def add_alias(old_key, new_name):
2558 """add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
2559 return _IMP_kernel.ParticleIndexKey_add_alias(old_key, new_name)
2561 add_alias = staticmethod(add_alias)
2563 def get_number_of_keys():
2564 """get_number_of_keys() -> unsigned int"""
2565 return _IMP_kernel.ParticleIndexKey_get_number_of_keys()
2567 get_number_of_keys = staticmethod(get_number_of_keys)
2570 """get_index(ParticleIndexKey self) -> unsigned int"""
2571 return _IMP_kernel.ParticleIndexKey_get_index(self)
2575 """show_all(_ostream out)"""
2576 return _IMP_kernel.ParticleIndexKey_show_all(out)
2578 show_all = staticmethod(show_all)
2580 def get_all_strings():
2581 """get_all_strings() -> IMP::Vector< std::string >"""
2582 return _IMP_kernel.ParticleIndexKey_get_all_strings()
2584 get_all_strings = staticmethod(get_all_strings)
2586 def get_number_unique():
2587 """get_number_unique() -> unsigned int"""
2588 return _IMP_kernel.ParticleIndexKey_get_number_unique()
2590 get_number_unique = staticmethod(get_number_unique)
2593 """__str__(ParticleIndexKey self) -> std::string"""
2594 return _IMP_kernel.ParticleIndexKey___str__(self)
2598 """__repr__(ParticleIndexKey self) -> std::string"""
2599 return _IMP_kernel.ParticleIndexKey___repr__(self)
2601 __swig_destroy__ = _IMP_kernel.delete_ParticleIndexKey
2602 __del__ =
lambda self:
None
2603 ParticleIndexKey_swigregister = _IMP_kernel.ParticleIndexKey_swigregister
2604 ParticleIndexKey_swigregister(ParticleIndexKey)
2606 def ParticleIndexKey_add_key(sc):
2607 """ParticleIndexKey_add_key(std::string sc) -> unsigned int"""
2608 return _IMP_kernel.ParticleIndexKey_add_key(sc)
2610 def ParticleIndexKey_get_key_exists(sc):
2611 """ParticleIndexKey_get_key_exists(std::string sc) -> bool"""
2612 return _IMP_kernel.ParticleIndexKey_get_key_exists(sc)
2614 def ParticleIndexKey_add_alias(old_key, new_name):
2615 """ParticleIndexKey_add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
2616 return _IMP_kernel.ParticleIndexKey_add_alias(old_key, new_name)
2618 def ParticleIndexKey_get_number_of_keys():
2619 """ParticleIndexKey_get_number_of_keys() -> unsigned int"""
2620 return _IMP_kernel.ParticleIndexKey_get_number_of_keys()
2622 def ParticleIndexKey_show_all(out):
2623 """ParticleIndexKey_show_all(_ostream out)"""
2624 return _IMP_kernel.ParticleIndexKey_show_all(out)
2626 def ParticleIndexKey_get_all_strings():
2627 """ParticleIndexKey_get_all_strings() -> IMP::Vector< std::string >"""
2628 return _IMP_kernel.ParticleIndexKey_get_all_strings()
2630 def ParticleIndexKey_get_number_unique():
2631 """ParticleIndexKey_get_number_unique() -> unsigned int"""
2632 return _IMP_kernel.ParticleIndexKey_get_number_unique()
2635 """Proxy of C++ IMP::Key<(4)> class."""
2637 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2639 def __init__(self, *args):
2641 __init__(IMP::Key<(4)> self) -> ObjectKey
2642 __init__(IMP::Key<(4)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ObjectKey
2643 __init__(IMP::Key<(4)> self, std::string const & c) -> ObjectKey
2644 __init__(IMP::Key<(4)> self, unsigned int i) -> ObjectKey
2646 this = _IMP_kernel.new_ObjectKey(*args)
2648 self.this.append(this)
2649 except __builtin__.Exception:
2653 """add_key(std::string sc) -> unsigned int"""
2654 return _IMP_kernel.ObjectKey_add_key(sc)
2656 add_key = staticmethod(add_key)
2658 def get_key_exists(sc):
2659 """get_key_exists(std::string sc) -> bool"""
2660 return _IMP_kernel.ObjectKey_get_key_exists(sc)
2662 get_key_exists = staticmethod(get_key_exists)
2664 def get_string(self):
2665 """get_string(ObjectKey self) -> std::string const"""
2666 return _IMP_kernel.ObjectKey_get_string(self)
2669 def __cmp__(self, o):
2670 """__cmp__(ObjectKey self, ObjectKey o) -> int"""
2671 return _IMP_kernel.ObjectKey___cmp__(self, o)
2674 def __eq__(self, o):
2675 """__eq__(ObjectKey self, ObjectKey o) -> bool"""
2676 return _IMP_kernel.ObjectKey___eq__(self, o)
2679 def __ne__(self, o):
2680 """__ne__(ObjectKey self, ObjectKey o) -> bool"""
2681 return _IMP_kernel.ObjectKey___ne__(self, o)
2684 def __lt__(self, o):
2685 """__lt__(ObjectKey self, ObjectKey o) -> bool"""
2686 return _IMP_kernel.ObjectKey___lt__(self, o)
2689 def __gt__(self, o):
2690 """__gt__(ObjectKey self, ObjectKey o) -> bool"""
2691 return _IMP_kernel.ObjectKey___gt__(self, o)
2694 def __ge__(self, o):
2695 """__ge__(ObjectKey self, ObjectKey o) -> bool"""
2696 return _IMP_kernel.ObjectKey___ge__(self, o)
2699 def __le__(self, o):
2700 """__le__(ObjectKey self, ObjectKey o) -> bool"""
2701 return _IMP_kernel.ObjectKey___le__(self, o)
2705 """__hash__(ObjectKey self) -> std::size_t"""
2706 return _IMP_kernel.ObjectKey___hash__(self)
2709 def show(self, *args):
2711 show(ObjectKey self, _ostream out)
2712 show(ObjectKey self)
2714 return _IMP_kernel.ObjectKey_show(self, *args)
2717 def add_alias(old_key, new_name):
2718 """add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
2719 return _IMP_kernel.ObjectKey_add_alias(old_key, new_name)
2721 add_alias = staticmethod(add_alias)
2723 def get_number_of_keys():
2724 """get_number_of_keys() -> unsigned int"""
2725 return _IMP_kernel.ObjectKey_get_number_of_keys()
2727 get_number_of_keys = staticmethod(get_number_of_keys)
2730 """get_index(ObjectKey self) -> unsigned int"""
2731 return _IMP_kernel.ObjectKey_get_index(self)
2735 """show_all(_ostream out)"""
2736 return _IMP_kernel.ObjectKey_show_all(out)
2738 show_all = staticmethod(show_all)
2740 def get_all_strings():
2741 """get_all_strings() -> IMP::Vector< std::string >"""
2742 return _IMP_kernel.ObjectKey_get_all_strings()
2744 get_all_strings = staticmethod(get_all_strings)
2746 def get_number_unique():
2747 """get_number_unique() -> unsigned int"""
2748 return _IMP_kernel.ObjectKey_get_number_unique()
2750 get_number_unique = staticmethod(get_number_unique)
2753 """__str__(ObjectKey self) -> std::string"""
2754 return _IMP_kernel.ObjectKey___str__(self)
2758 """__repr__(ObjectKey self) -> std::string"""
2759 return _IMP_kernel.ObjectKey___repr__(self)
2761 __swig_destroy__ = _IMP_kernel.delete_ObjectKey
2762 __del__ =
lambda self:
None
2763 ObjectKey_swigregister = _IMP_kernel.ObjectKey_swigregister
2764 ObjectKey_swigregister(ObjectKey)
2766 def ObjectKey_add_key(sc):
2767 """ObjectKey_add_key(std::string sc) -> unsigned int"""
2768 return _IMP_kernel.ObjectKey_add_key(sc)
2770 def ObjectKey_get_key_exists(sc):
2771 """ObjectKey_get_key_exists(std::string sc) -> bool"""
2772 return _IMP_kernel.ObjectKey_get_key_exists(sc)
2774 def ObjectKey_add_alias(old_key, new_name):
2775 """ObjectKey_add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
2776 return _IMP_kernel.ObjectKey_add_alias(old_key, new_name)
2778 def ObjectKey_get_number_of_keys():
2779 """ObjectKey_get_number_of_keys() -> unsigned int"""
2780 return _IMP_kernel.ObjectKey_get_number_of_keys()
2782 def ObjectKey_show_all(out):
2783 """ObjectKey_show_all(_ostream out)"""
2784 return _IMP_kernel.ObjectKey_show_all(out)
2786 def ObjectKey_get_all_strings():
2787 """ObjectKey_get_all_strings() -> IMP::Vector< std::string >"""
2788 return _IMP_kernel.ObjectKey_get_all_strings()
2790 def ObjectKey_get_number_unique():
2791 """ObjectKey_get_number_unique() -> unsigned int"""
2792 return _IMP_kernel.ObjectKey_get_number_unique()
2795 """Proxy of C++ IMP::Key<(6)> class."""
2797 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2799 def __init__(self, *args):
2801 __init__(IMP::Key<(6)> self) -> ParticleIndexesKey
2802 __init__(IMP::Key<(6)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleIndexesKey
2803 __init__(IMP::Key<(6)> self, std::string const & c) -> ParticleIndexesKey
2804 __init__(IMP::Key<(6)> self, unsigned int i) -> ParticleIndexesKey
2806 this = _IMP_kernel.new_ParticleIndexesKey(*args)
2808 self.this.append(this)
2809 except __builtin__.Exception:
2813 """add_key(std::string sc) -> unsigned int"""
2814 return _IMP_kernel.ParticleIndexesKey_add_key(sc)
2816 add_key = staticmethod(add_key)
2818 def get_key_exists(sc):
2819 """get_key_exists(std::string sc) -> bool"""
2820 return _IMP_kernel.ParticleIndexesKey_get_key_exists(sc)
2822 get_key_exists = staticmethod(get_key_exists)
2824 def get_string(self):
2825 """get_string(ParticleIndexesKey self) -> std::string const"""
2826 return _IMP_kernel.ParticleIndexesKey_get_string(self)
2829 def __cmp__(self, o):
2830 """__cmp__(ParticleIndexesKey self, ParticleIndexesKey o) -> int"""
2831 return _IMP_kernel.ParticleIndexesKey___cmp__(self, o)
2834 def __eq__(self, o):
2835 """__eq__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2836 return _IMP_kernel.ParticleIndexesKey___eq__(self, o)
2839 def __ne__(self, o):
2840 """__ne__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2841 return _IMP_kernel.ParticleIndexesKey___ne__(self, o)
2844 def __lt__(self, o):
2845 """__lt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2846 return _IMP_kernel.ParticleIndexesKey___lt__(self, o)
2849 def __gt__(self, o):
2850 """__gt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2851 return _IMP_kernel.ParticleIndexesKey___gt__(self, o)
2854 def __ge__(self, o):
2855 """__ge__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2856 return _IMP_kernel.ParticleIndexesKey___ge__(self, o)
2859 def __le__(self, o):
2860 """__le__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2861 return _IMP_kernel.ParticleIndexesKey___le__(self, o)
2865 """__hash__(ParticleIndexesKey self) -> std::size_t"""
2866 return _IMP_kernel.ParticleIndexesKey___hash__(self)
2869 def show(self, *args):
2871 show(ParticleIndexesKey self, _ostream out)
2872 show(ParticleIndexesKey self)
2874 return _IMP_kernel.ParticleIndexesKey_show(self, *args)
2877 def add_alias(old_key, new_name):
2878 """add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
2879 return _IMP_kernel.ParticleIndexesKey_add_alias(old_key, new_name)
2881 add_alias = staticmethod(add_alias)
2883 def get_number_of_keys():
2884 """get_number_of_keys() -> unsigned int"""
2885 return _IMP_kernel.ParticleIndexesKey_get_number_of_keys()
2887 get_number_of_keys = staticmethod(get_number_of_keys)
2890 """get_index(ParticleIndexesKey self) -> unsigned int"""
2891 return _IMP_kernel.ParticleIndexesKey_get_index(self)
2895 """show_all(_ostream out)"""
2896 return _IMP_kernel.ParticleIndexesKey_show_all(out)
2898 show_all = staticmethod(show_all)
2900 def get_all_strings():
2901 """get_all_strings() -> IMP::Vector< std::string >"""
2902 return _IMP_kernel.ParticleIndexesKey_get_all_strings()
2904 get_all_strings = staticmethod(get_all_strings)
2906 def get_number_unique():
2907 """get_number_unique() -> unsigned int"""
2908 return _IMP_kernel.ParticleIndexesKey_get_number_unique()
2910 get_number_unique = staticmethod(get_number_unique)
2913 """__str__(ParticleIndexesKey self) -> std::string"""
2914 return _IMP_kernel.ParticleIndexesKey___str__(self)
2918 """__repr__(ParticleIndexesKey self) -> std::string"""
2919 return _IMP_kernel.ParticleIndexesKey___repr__(self)
2921 __swig_destroy__ = _IMP_kernel.delete_ParticleIndexesKey
2922 __del__ =
lambda self:
None
2923 ParticleIndexesKey_swigregister = _IMP_kernel.ParticleIndexesKey_swigregister
2924 ParticleIndexesKey_swigregister(ParticleIndexesKey)
2926 def ParticleIndexesKey_add_key(sc):
2927 """ParticleIndexesKey_add_key(std::string sc) -> unsigned int"""
2928 return _IMP_kernel.ParticleIndexesKey_add_key(sc)
2930 def ParticleIndexesKey_get_key_exists(sc):
2931 """ParticleIndexesKey_get_key_exists(std::string sc) -> bool"""
2932 return _IMP_kernel.ParticleIndexesKey_get_key_exists(sc)
2934 def ParticleIndexesKey_add_alias(old_key, new_name):
2935 """ParticleIndexesKey_add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
2936 return _IMP_kernel.ParticleIndexesKey_add_alias(old_key, new_name)
2938 def ParticleIndexesKey_get_number_of_keys():
2939 """ParticleIndexesKey_get_number_of_keys() -> unsigned int"""
2940 return _IMP_kernel.ParticleIndexesKey_get_number_of_keys()
2942 def ParticleIndexesKey_show_all(out):
2943 """ParticleIndexesKey_show_all(_ostream out)"""
2944 return _IMP_kernel.ParticleIndexesKey_show_all(out)
2946 def ParticleIndexesKey_get_all_strings():
2947 """ParticleIndexesKey_get_all_strings() -> IMP::Vector< std::string >"""
2948 return _IMP_kernel.ParticleIndexesKey_get_all_strings()
2950 def ParticleIndexesKey_get_number_unique():
2951 """ParticleIndexesKey_get_number_unique() -> unsigned int"""
2952 return _IMP_kernel.ParticleIndexesKey_get_number_unique()
2955 """Proxy of C++ IMP::Key<(8)> class."""
2957 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2959 def __init__(self, *args):
2961 __init__(IMP::Key<(8)> self) -> ModelKey
2962 __init__(IMP::Key<(8)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ModelKey
2963 __init__(IMP::Key<(8)> self, std::string const & c) -> ModelKey
2964 __init__(IMP::Key<(8)> self, unsigned int i) -> ModelKey
2966 this = _IMP_kernel.new_ModelKey(*args)
2968 self.this.append(this)
2969 except __builtin__.Exception:
2973 """add_key(std::string sc) -> unsigned int"""
2974 return _IMP_kernel.ModelKey_add_key(sc)
2976 add_key = staticmethod(add_key)
2978 def get_key_exists(sc):
2979 """get_key_exists(std::string sc) -> bool"""
2980 return _IMP_kernel.ModelKey_get_key_exists(sc)
2982 get_key_exists = staticmethod(get_key_exists)
2984 def get_string(self):
2985 """get_string(ModelKey self) -> std::string const"""
2986 return _IMP_kernel.ModelKey_get_string(self)
2989 def __cmp__(self, o):
2990 """__cmp__(ModelKey self, ModelKey o) -> int"""
2991 return _IMP_kernel.ModelKey___cmp__(self, o)
2994 def __eq__(self, o):
2995 """__eq__(ModelKey self, ModelKey o) -> bool"""
2996 return _IMP_kernel.ModelKey___eq__(self, o)
2999 def __ne__(self, o):
3000 """__ne__(ModelKey self, ModelKey o) -> bool"""
3001 return _IMP_kernel.ModelKey___ne__(self, o)
3004 def __lt__(self, o):
3005 """__lt__(ModelKey self, ModelKey o) -> bool"""
3006 return _IMP_kernel.ModelKey___lt__(self, o)
3009 def __gt__(self, o):
3010 """__gt__(ModelKey self, ModelKey o) -> bool"""
3011 return _IMP_kernel.ModelKey___gt__(self, o)
3014 def __ge__(self, o):
3015 """__ge__(ModelKey self, ModelKey o) -> bool"""
3016 return _IMP_kernel.ModelKey___ge__(self, o)
3019 def __le__(self, o):
3020 """__le__(ModelKey self, ModelKey o) -> bool"""
3021 return _IMP_kernel.ModelKey___le__(self, o)
3025 """__hash__(ModelKey self) -> std::size_t"""
3026 return _IMP_kernel.ModelKey___hash__(self)
3029 def show(self, *args):
3031 show(ModelKey self, _ostream out)
3034 return _IMP_kernel.ModelKey_show(self, *args)
3037 def add_alias(old_key, new_name):
3038 """add_alias(ModelKey old_key, std::string new_name) -> ModelKey"""
3039 return _IMP_kernel.ModelKey_add_alias(old_key, new_name)
3041 add_alias = staticmethod(add_alias)
3043 def get_number_of_keys():
3044 """get_number_of_keys() -> unsigned int"""
3045 return _IMP_kernel.ModelKey_get_number_of_keys()
3047 get_number_of_keys = staticmethod(get_number_of_keys)
3050 """get_index(ModelKey self) -> unsigned int"""
3051 return _IMP_kernel.ModelKey_get_index(self)
3055 """show_all(_ostream out)"""
3056 return _IMP_kernel.ModelKey_show_all(out)
3058 show_all = staticmethod(show_all)
3060 def get_all_strings():
3061 """get_all_strings() -> IMP::Vector< std::string >"""
3062 return _IMP_kernel.ModelKey_get_all_strings()
3064 get_all_strings = staticmethod(get_all_strings)
3066 def get_number_unique():
3067 """get_number_unique() -> unsigned int"""
3068 return _IMP_kernel.ModelKey_get_number_unique()
3070 get_number_unique = staticmethod(get_number_unique)
3073 """__str__(ModelKey self) -> std::string"""
3074 return _IMP_kernel.ModelKey___str__(self)
3078 """__repr__(ModelKey self) -> std::string"""
3079 return _IMP_kernel.ModelKey___repr__(self)
3081 __swig_destroy__ = _IMP_kernel.delete_ModelKey
3082 __del__ =
lambda self:
None
3083 ModelKey_swigregister = _IMP_kernel.ModelKey_swigregister
3084 ModelKey_swigregister(ModelKey)
3086 def ModelKey_add_key(sc):
3087 """ModelKey_add_key(std::string sc) -> unsigned int"""
3088 return _IMP_kernel.ModelKey_add_key(sc)
3090 def ModelKey_get_key_exists(sc):
3091 """ModelKey_get_key_exists(std::string sc) -> bool"""
3092 return _IMP_kernel.ModelKey_get_key_exists(sc)
3094 def ModelKey_add_alias(old_key, new_name):
3095 """ModelKey_add_alias(ModelKey old_key, std::string new_name) -> ModelKey"""
3096 return _IMP_kernel.ModelKey_add_alias(old_key, new_name)
3098 def ModelKey_get_number_of_keys():
3099 """ModelKey_get_number_of_keys() -> unsigned int"""
3100 return _IMP_kernel.ModelKey_get_number_of_keys()
3102 def ModelKey_show_all(out):
3103 """ModelKey_show_all(_ostream out)"""
3104 return _IMP_kernel.ModelKey_show_all(out)
3106 def ModelKey_get_all_strings():
3107 """ModelKey_get_all_strings() -> IMP::Vector< std::string >"""
3108 return _IMP_kernel.ModelKey_get_all_strings()
3110 def ModelKey_get_number_unique():
3111 """ModelKey_get_number_unique() -> unsigned int"""
3112 return _IMP_kernel.ModelKey_get_number_unique()
3115 """Proxy of C++ IMP::Index<(IMP::ParticleIndexTag)> class."""
3117 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3119 def __init__(self, *args):
3121 __init__(IMP::Index<(IMP::ParticleIndexTag)> self, int i) -> ParticleIndex
3122 __init__(IMP::Index<(IMP::ParticleIndexTag)> self) -> ParticleIndex
3124 this = _IMP_kernel.new_ParticleIndex(*args)
3126 self.this.append(this)
3127 except __builtin__.Exception:
3131 """get_index(ParticleIndex self) -> int"""
3132 return _IMP_kernel.ParticleIndex_get_index(self)
3135 def __cmp__(self, o):
3136 """__cmp__(ParticleIndex self, ParticleIndex o) -> int"""
3137 return _IMP_kernel.ParticleIndex___cmp__(self, o)
3140 def __eq__(self, o):
3141 """__eq__(ParticleIndex self, ParticleIndex o) -> bool"""
3142 return _IMP_kernel.ParticleIndex___eq__(self, o)
3145 def __ne__(self, o):
3146 """__ne__(ParticleIndex self, ParticleIndex o) -> bool"""
3147 return _IMP_kernel.ParticleIndex___ne__(self, o)
3150 def __lt__(self, o):
3151 """__lt__(ParticleIndex self, ParticleIndex o) -> bool"""
3152 return _IMP_kernel.ParticleIndex___lt__(self, o)
3155 def __gt__(self, o):
3156 """__gt__(ParticleIndex self, ParticleIndex o) -> bool"""
3157 return _IMP_kernel.ParticleIndex___gt__(self, o)
3160 def __ge__(self, o):
3161 """__ge__(ParticleIndex self, ParticleIndex o) -> bool"""
3162 return _IMP_kernel.ParticleIndex___ge__(self, o)
3165 def __le__(self, o):
3166 """__le__(ParticleIndex self, ParticleIndex o) -> bool"""
3167 return _IMP_kernel.ParticleIndex___le__(self, o)
3170 def show(self, *args):
3172 show(ParticleIndex self, _ostream out)
3173 show(ParticleIndex self)
3175 return _IMP_kernel.ParticleIndex_show(self, *args)
3179 """__hash__(ParticleIndex self) -> std::size_t"""
3180 return _IMP_kernel.ParticleIndex___hash__(self)
3184 """__str__(ParticleIndex self) -> std::string"""
3185 return _IMP_kernel.ParticleIndex___str__(self)
3189 """__repr__(ParticleIndex self) -> std::string"""
3190 return _IMP_kernel.ParticleIndex___repr__(self)
3192 __swig_destroy__ = _IMP_kernel.delete_ParticleIndex
3193 __del__ =
lambda self:
None
3194 ParticleIndex_swigregister = _IMP_kernel.ParticleIndex_swigregister
3195 ParticleIndex_swigregister(ParticleIndex)
3205 class FloatIndex(_Value):
3206 """Proxy of C++ IMP::FloatIndex class."""
3208 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3210 def __init__(self, *args):
3212 __init__(IMP::FloatIndex self, ParticleIndex i0, FloatKey i1) -> FloatIndex
3213 __init__(IMP::FloatIndex self, ParticleIndex i0) -> FloatIndex
3214 __init__(IMP::FloatIndex self) -> FloatIndex
3216 this = _IMP_kernel.new_FloatIndex(*args)
3218 self.this.append(this)
3219 except __builtin__.Exception:
3223 """__hash__(FloatIndex self) -> std::size_t"""
3224 return _IMP_kernel.FloatIndex___hash__(self)
3227 def show(self, *args):
3229 show(FloatIndex self, _ostream out)
3230 show(FloatIndex self)
3232 return _IMP_kernel.FloatIndex_show(self, *args)
3235 def __cmp__(self, o):
3236 """__cmp__(FloatIndex self, FloatIndex o) -> int"""
3237 return _IMP_kernel.FloatIndex___cmp__(self, o)
3240 def __eq__(self, o):
3241 """__eq__(FloatIndex self, FloatIndex o) -> bool"""
3242 return _IMP_kernel.FloatIndex___eq__(self, o)
3245 def __ne__(self, o):
3246 """__ne__(FloatIndex self, FloatIndex o) -> bool"""
3247 return _IMP_kernel.FloatIndex___ne__(self, o)
3250 def __lt__(self, o):
3251 """__lt__(FloatIndex self, FloatIndex o) -> bool"""
3252 return _IMP_kernel.FloatIndex___lt__(self, o)
3255 def __gt__(self, o):
3256 """__gt__(FloatIndex self, FloatIndex o) -> bool"""
3257 return _IMP_kernel.FloatIndex___gt__(self, o)
3260 def __ge__(self, o):
3261 """__ge__(FloatIndex self, FloatIndex o) -> bool"""
3262 return _IMP_kernel.FloatIndex___ge__(self, o)
3265 def __le__(self, o):
3266 """__le__(FloatIndex self, FloatIndex o) -> bool"""
3267 return _IMP_kernel.FloatIndex___le__(self, o)
3270 def get_particle(self):
3271 """get_particle(FloatIndex self) -> ParticleIndex const &"""
3272 return _IMP_kernel.FloatIndex_get_particle(self)
3275 def set_particle(self, v):
3276 """set_particle(FloatIndex self, ParticleIndex const & v)"""
3277 return _IMP_kernel.FloatIndex_set_particle(self, v)
3281 """get_key(FloatIndex self) -> FloatKey const &"""
3282 return _IMP_kernel.FloatIndex_get_key(self)
3285 def set_key(self, v):
3286 """set_key(FloatIndex self, FloatKey const & v)"""
3287 return _IMP_kernel.FloatIndex_set_key(self, v)
3291 """__str__(FloatIndex self) -> std::string"""
3292 return _IMP_kernel.FloatIndex___str__(self)
3296 """__repr__(FloatIndex self) -> std::string"""
3297 return _IMP_kernel.FloatIndex___repr__(self)
3299 __swig_destroy__ = _IMP_kernel.delete_FloatIndex
3300 __del__ =
lambda self:
None
3301 FloatIndex_swigregister = _IMP_kernel.FloatIndex_swigregister
3302 FloatIndex_swigregister(FloatIndex)
3304 class _ParticleIndexTag(object):
3305 """Proxy of C++ IMP::ParticleIndexTag class."""
3307 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3308 __repr__ = _swig_repr
3311 """__init__(IMP::ParticleIndexTag self) -> _ParticleIndexTag"""
3312 this = _IMP_kernel.new__ParticleIndexTag()
3314 self.this.append(this)
3315 except __builtin__.Exception:
3317 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexTag
3318 __del__ =
lambda self:
None
3319 _ParticleIndexTag_swigregister = _IMP_kernel._ParticleIndexTag_swigregister
3320 _ParticleIndexTag_swigregister(_ParticleIndexTag)
3322 class ModelObject(Object):
3323 """Proxy of C++ IMP::ModelObject class."""
3325 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3327 def __init__(self, m, name):
3328 """__init__(IMP::ModelObject self, Model m, std::string name) -> ModelObject"""
3329 if self.__class__ == ModelObject:
3333 this = _IMP_kernel.new_ModelObject(_self, m, name)
3335 self.this.append(this)
3336 except __builtin__.Exception:
3339 if self.__class__ != ModelObject:
3340 _director_objects.register(self)
3344 __swig_destroy__ = _IMP_kernel.delete_ModelObject
3345 __del__ =
lambda self:
None
3347 def get_model(self):
3348 """get_model(ModelObject self) -> Model"""
3349 return _IMP_kernel.ModelObject_get_model(self)
3352 def get_inputs(self):
3353 """get_inputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3354 return _IMP_kernel.ModelObject_get_inputs(self)
3357 def get_outputs(self):
3358 """get_outputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3359 return _IMP_kernel.ModelObject_get_outputs(self)
3362 def get_interactions(self):
3363 """get_interactions(ModelObject self) -> IMP::ModelObjectsTemps"""
3364 return _IMP_kernel.ModelObject_get_interactions(self)
3367 def get_has_dependencies(self):
3368 """get_has_dependencies(ModelObject self) -> bool"""
3369 return _IMP_kernel.ModelObject_get_has_dependencies(self)
3372 def set_has_dependencies(self, tf):
3373 """set_has_dependencies(ModelObject self, bool tf)"""
3374 return _IMP_kernel.ModelObject_set_has_dependencies(self, tf)
3377 def set_has_required_score_states(self, tf):
3378 """set_has_required_score_states(ModelObject self, bool tf)"""
3379 return _IMP_kernel.ModelObject_set_has_required_score_states(self, tf)
3382 def get_has_required_score_states(self):
3383 """get_has_required_score_states(ModelObject self) -> bool"""
3384 return _IMP_kernel.ModelObject_get_has_required_score_states(self)
3388 """get_required_score_states(ModelObject self) -> IMP::ScoreStatesTemp const &"""
3389 return _IMP_kernel.ModelObject_get_required_score_states(self)
3392 def handle_set_has_required_score_states(self, arg0):
3393 """handle_set_has_required_score_states(ModelObject self, bool arg0)"""
3394 return _IMP_kernel.ModelObject_handle_set_has_required_score_states(self, arg0)
3397 def do_get_inputs(self):
3398 """do_get_inputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3399 return _IMP_kernel.ModelObject_do_get_inputs(self)
3402 def do_get_outputs(self):
3403 """do_get_outputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3404 return _IMP_kernel.ModelObject_do_get_outputs(self)
3407 def do_get_interactions(self):
3408 """do_get_interactions(ModelObject self) -> IMP::ModelObjectsTemps"""
3409 return _IMP_kernel.ModelObject_do_get_interactions(self)
3413 """__str__(ModelObject self) -> std::string"""
3414 return _IMP_kernel.ModelObject___str__(self)
3418 """__repr__(ModelObject self) -> std::string"""
3419 return _IMP_kernel.ModelObject___repr__(self)
3424 return _object_cast_to_ModelObject(o)
3427 def get_type_name(self):
3428 return self.__class__.__name__
3429 def do_show(self, out):
3431 def get_version_info(self):
3433 return VersionInfo(self.__module__,
3434 __import__(self.__module__).get_module_version())
3437 __import__(self.__module__).get_module_version())
3440 return _object_cast_to_ModelObject(o)
3442 def __disown__(self):
3444 _IMP_kernel.disown_ModelObject(self)
3445 return weakref_proxy(self)
3447 def do_destroy(self):
3448 """do_destroy(ModelObject self)"""
3449 return _IMP_kernel.ModelObject_do_destroy(self)
3451 ModelObject_swigregister = _IMP_kernel.ModelObject_swigregister
3452 ModelObject_swigregister(ModelObject)
3453 cvar = _IMP_kernel.cvar
3454 NO_MAX = cvar.NO_MAX
3455 BAD_SCORE = cvar.BAD_SCORE
3457 class _ParticleInputs(object):
3458 """Proxy of C++ IMP::ParticleInputs class."""
3460 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3462 def __init__(self, *args, **kwargs):
3463 raise AttributeError(
"No constructor defined - class is abstract")
3464 __repr__ = _swig_repr
3466 def get_inputs(self, m, pis):
3467 """get_inputs(_ParticleInputs self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3468 return _IMP_kernel._ParticleInputs_get_inputs(self, m, pis)
3470 _ParticleInputs_swigregister = _IMP_kernel._ParticleInputs_swigregister
3471 _ParticleInputs_swigregister(_ParticleInputs)
3473 class _ParticleOutputs(object):
3474 """Proxy of C++ IMP::ParticleOutputs class."""
3476 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3478 def __init__(self, *args, **kwargs):
3479 raise AttributeError(
"No constructor defined - class is abstract")
3480 __repr__ = _swig_repr
3482 def get_outputs(self, m, pis):
3483 """get_outputs(_ParticleOutputs self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3484 return _IMP_kernel._ParticleOutputs_get_outputs(self, m, pis)
3486 _ParticleOutputs_swigregister = _IMP_kernel._ParticleOutputs_swigregister
3487 _ParticleOutputs_swigregister(_ParticleOutputs)
3491 """get_input_particles(IMP::ModelObjectsTemp const & mos) -> IMP::ParticlesTemp"""
3492 return _IMP_kernel.get_input_particles(mos)
3495 """get_input_containers(IMP::ModelObjectsTemp const & mos) -> IMP::ContainersTemp"""
3496 return _IMP_kernel.get_input_containers(mos)
3499 """get_output_particles(IMP::ModelObjectsTemp const & mos) -> IMP::ParticlesTemp"""
3500 return _IMP_kernel.get_output_particles(mos)
3503 """get_output_containers(IMP::ModelObjectsTemp const & mos) -> IMP::ContainersTemp"""
3504 return _IMP_kernel.get_output_containers(mos)
3505 class DerivativeAccumulator(object):
3506 """Proxy of C++ IMP::DerivativeAccumulator class."""
3508 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3509 __repr__ = _swig_repr
3511 def __init__(self, *args):
3513 __init__(IMP::DerivativeAccumulator self, double weight=1.0) -> DerivativeAccumulator
3514 __init__(IMP::DerivativeAccumulator self) -> DerivativeAccumulator
3515 __init__(IMP::DerivativeAccumulator self, DerivativeAccumulator copy, double weight) -> DerivativeAccumulator
3517 this = _IMP_kernel.new_DerivativeAccumulator(*args)
3519 self.this.append(this)
3520 except __builtin__.Exception:
3523 def __call__(self, value):
3524 """__call__(DerivativeAccumulator self, double const value) -> double"""
3525 return _IMP_kernel.DerivativeAccumulator___call__(self, value)
3528 def get_weight(self):
3529 """get_weight(DerivativeAccumulator self) -> double"""
3530 return _IMP_kernel.DerivativeAccumulator_get_weight(self)
3533 def show(self, *args):
3535 show(DerivativeAccumulator self, _ostream out)
3536 show(DerivativeAccumulator self)
3538 return _IMP_kernel.DerivativeAccumulator_show(self, *args)
3540 __swig_destroy__ = _IMP_kernel.delete_DerivativeAccumulator
3541 __del__ =
lambda self:
None
3542 DerivativeAccumulator_swigregister = _IMP_kernel.DerivativeAccumulator_swigregister
3543 DerivativeAccumulator_swigregister(DerivativeAccumulator)
3545 class EvaluationState(object):
3546 """Proxy of C++ IMP::EvaluationState class."""
3548 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3549 score = _swig_property(_IMP_kernel.EvaluationState_score_get, _IMP_kernel.EvaluationState_score_set)
3550 good = _swig_property(_IMP_kernel.EvaluationState_good_get, _IMP_kernel.EvaluationState_good_set)
3552 def __init__(self, *args):
3554 __init__(IMP::EvaluationState self, double oscore, bool ogood) -> EvaluationState
3555 __init__(IMP::EvaluationState self) -> EvaluationState
3557 this = _IMP_kernel.new_EvaluationState(*args)
3559 self.this.append(this)
3560 except __builtin__.Exception:
3563 def show(self, *args):
3565 show(EvaluationState self, _ostream out)
3566 show(EvaluationState self)
3568 return _IMP_kernel.EvaluationState_show(self, *args)
3572 """__str__(EvaluationState self) -> std::string"""
3573 return _IMP_kernel.EvaluationState___str__(self)
3577 """__repr__(EvaluationState self) -> std::string"""
3578 return _IMP_kernel.EvaluationState___repr__(self)
3580 __swig_destroy__ = _IMP_kernel.delete_EvaluationState
3581 __del__ =
lambda self:
None
3582 EvaluationState_swigregister = _IMP_kernel.EvaluationState_swigregister
3583 EvaluationState_swigregister(EvaluationState)
3585 class ScoreAccumulator(_Value):
3586 """Proxy of C++ IMP::ScoreAccumulator class."""
3588 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3590 def __init__(self, *args):
3592 __init__(IMP::ScoreAccumulator self) -> ScoreAccumulator
3593 __init__(IMP::ScoreAccumulator self, ScoreAccumulator o, Restraint r) -> ScoreAccumulator
3594 __init__(IMP::ScoreAccumulator self, ScoreAccumulator o, double weight, double local_max) -> ScoreAccumulator
3596 this = _IMP_kernel.new_ScoreAccumulator(*args)
3598 self.this.append(this)
3599 except __builtin__.Exception:
3602 def add_score(self, score):
3603 """add_score(ScoreAccumulator self, double score)"""
3604 return _IMP_kernel.ScoreAccumulator_add_score(self, score)
3607 def get_abort_evaluation(self):
3608 """get_abort_evaluation(ScoreAccumulator self) -> bool"""
3609 return _IMP_kernel.ScoreAccumulator_get_abort_evaluation(self)
3612 def get_is_evaluate_if_below(self):
3613 """get_is_evaluate_if_below(ScoreAccumulator self) -> bool"""
3614 return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_below(self)
3617 def get_is_evaluate_if_good(self):
3618 """get_is_evaluate_if_good(ScoreAccumulator self) -> bool"""
3619 return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_good(self)
3622 def get_maximum(self):
3623 """get_maximum(ScoreAccumulator self) -> double"""
3624 return _IMP_kernel.ScoreAccumulator_get_maximum(self)
3627 def get_derivative_accumulator(self):
3628 """get_derivative_accumulator(ScoreAccumulator self) -> DerivativeAccumulator"""
3629 return _IMP_kernel.ScoreAccumulator_get_derivative_accumulator(self)
3632 def show(self, *args):
3634 show(ScoreAccumulator self, _ostream out)
3635 show(ScoreAccumulator self)
3637 return _IMP_kernel.ScoreAccumulator_show(self, *args)
3641 """__str__(ScoreAccumulator self) -> std::string"""
3642 return _IMP_kernel.ScoreAccumulator___str__(self)
3646 """__repr__(ScoreAccumulator self) -> std::string"""
3647 return _IMP_kernel.ScoreAccumulator___repr__(self)
3649 __swig_destroy__ = _IMP_kernel.delete_ScoreAccumulator
3650 __del__ =
lambda self:
None
3651 ScoreAccumulator_swigregister = _IMP_kernel.ScoreAccumulator_swigregister
3652 ScoreAccumulator_swigregister(ScoreAccumulator)
3654 class ScoreState(ModelObject):
3655 """Proxy of C++ IMP::ScoreState class."""
3657 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3659 def __init__(self, m, name):
3660 """__init__(IMP::ScoreState self, Model m, std::string name) -> ScoreState"""
3661 if self.__class__ == ScoreState:
3665 this = _IMP_kernel.new_ScoreState(_self, m, name)
3667 self.this.append(this)
3668 except __builtin__.Exception:
3671 if self.__class__ != ScoreState:
3672 _director_objects.register(self)
3677 def before_evaluate(self):
3678 """before_evaluate(ScoreState self)"""
3679 return _IMP_kernel.ScoreState_before_evaluate(self)
3682 def after_evaluate(self, accpt):
3683 """after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
3684 return _IMP_kernel.ScoreState_after_evaluate(self, accpt)
3687 def get_has_update_order(self):
3688 """get_has_update_order(ScoreState self) -> bool"""
3689 return _IMP_kernel.ScoreState_get_has_update_order(self)
3693 """get_update_order(ScoreState self) -> unsigned int"""
3694 return _IMP_kernel.ScoreState_get_update_order(self)
3697 def handle_set_has_required_score_states(self, tf):
3698 """handle_set_has_required_score_states(ScoreState self, bool tf)"""
3699 return _IMP_kernel.ScoreState_handle_set_has_required_score_states(self, tf)
3702 def do_before_evaluate(self):
3703 """do_before_evaluate(ScoreState self)"""
3704 return _IMP_kernel.ScoreState_do_before_evaluate(self)
3707 def do_after_evaluate(self, accpt):
3708 """do_after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
3709 return _IMP_kernel.ScoreState_do_after_evaluate(self, accpt)
3711 __swig_destroy__ = _IMP_kernel.delete_ScoreState
3712 __del__ =
lambda self:
None
3715 """__str__(ScoreState self) -> std::string"""
3716 return _IMP_kernel.ScoreState___str__(self)
3720 """__repr__(ScoreState self) -> std::string"""
3721 return _IMP_kernel.ScoreState___repr__(self)
3726 return _object_cast_to_ScoreState(o)
3729 def get_type_name(self):
3730 return self.__class__.__name__
3731 def do_show(self, out):
3733 def get_version_info(self):
3735 return VersionInfo(self.__module__,
3736 __import__(self.__module__).get_module_version())
3739 __import__(self.__module__).get_module_version())
3742 return _object_cast_to_ScoreState(o)
3744 def __disown__(self):
3746 _IMP_kernel.disown_ScoreState(self)
3747 return weakref_proxy(self)
3749 def do_destroy(self):
3750 """do_destroy(ScoreState self)"""
3751 return _IMP_kernel.ScoreState_do_destroy(self)
3754 def do_get_inputs(self):
3755 """do_get_inputs(ScoreState self) -> IMP::ModelObjectsTemp"""
3756 return _IMP_kernel.ScoreState_do_get_inputs(self)
3759 def do_get_outputs(self):
3760 """do_get_outputs(ScoreState self) -> IMP::ModelObjectsTemp"""
3761 return _IMP_kernel.ScoreState_do_get_outputs(self)
3764 def do_get_interactions(self):
3765 """do_get_interactions(ScoreState self) -> IMP::ModelObjectsTemps"""
3766 return _IMP_kernel.ScoreState_do_get_interactions(self)
3768 ScoreState_swigregister = _IMP_kernel.ScoreState_swigregister
3769 ScoreState_swigregister(ScoreState)
3773 """get_update_order(IMP::ScoreStatesTemp input) -> IMP::ScoreStatesTemp"""
3774 return _IMP_kernel.get_update_order(input)
3775 class Constraint(ScoreState):
3776 """Proxy of C++ IMP::Constraint class."""
3778 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3780 def __init__(self, *args):
3782 __init__(IMP::Constraint self, Model m, std::string name) -> Constraint
3783 __init__(IMP::Constraint self, Model m) -> Constraint
3785 if self.__class__ == Constraint:
3789 this = _IMP_kernel.new_Constraint(_self, *args)
3791 self.this.append(this)
3792 except __builtin__.Exception:
3795 if self.__class__ != Constraint:
3796 _director_objects.register(self)
3801 def do_update_attributes(self):
3802 """do_update_attributes(Constraint self)"""
3803 return _IMP_kernel.Constraint_do_update_attributes(self)
3806 def do_update_derivatives(self, da):
3807 """do_update_derivatives(Constraint self, DerivativeAccumulator da)"""
3808 return _IMP_kernel.Constraint_do_update_derivatives(self, da)
3811 def do_before_evaluate(self):
3812 """do_before_evaluate(Constraint self)"""
3813 return _IMP_kernel.Constraint_do_before_evaluate(self)
3816 def do_after_evaluate(self, da):
3817 """do_after_evaluate(Constraint self, DerivativeAccumulator da)"""
3818 return _IMP_kernel.Constraint_do_after_evaluate(self, da)
3820 __swig_destroy__ = _IMP_kernel.delete_Constraint
3821 __del__ =
lambda self:
None
3824 """__str__(Constraint self) -> std::string"""
3825 return _IMP_kernel.Constraint___str__(self)
3829 """__repr__(Constraint self) -> std::string"""
3830 return _IMP_kernel.Constraint___repr__(self)
3835 return _object_cast_to_Constraint(o)
3838 def get_type_name(self):
3839 return self.__class__.__name__
3840 def do_show(self, out):
3842 def get_version_info(self):
3844 return VersionInfo(self.__module__,
3845 __import__(self.__module__).get_module_version())
3848 __import__(self.__module__).get_module_version())
3851 return _object_cast_to_Constraint(o)
3853 def __disown__(self):
3855 _IMP_kernel.disown_Constraint(self)
3856 return weakref_proxy(self)
3858 def do_destroy(self):
3859 """do_destroy(Constraint self)"""
3860 return _IMP_kernel.Constraint_do_destroy(self)
3863 def do_get_inputs(self):
3864 """do_get_inputs(Constraint self) -> IMP::ModelObjectsTemp"""
3865 return _IMP_kernel.Constraint_do_get_inputs(self)
3868 def do_get_outputs(self):
3869 """do_get_outputs(Constraint self) -> IMP::ModelObjectsTemp"""
3870 return _IMP_kernel.Constraint_do_get_outputs(self)
3873 def do_get_interactions(self):
3874 """do_get_interactions(Constraint self) -> IMP::ModelObjectsTemps"""
3875 return _IMP_kernel.Constraint_do_get_interactions(self)
3877 Constraint_swigregister = _IMP_kernel.Constraint_swigregister
3878 Constraint_swigregister(Constraint)
3880 class Container(ModelObject):
3881 """Proxy of C++ IMP::Container class."""
3883 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3885 def __init__(self, *args):
3887 __init__(IMP::Container self, Model m, std::string name) -> Container
3888 __init__(IMP::Container self, Model m) -> Container
3890 if self.__class__ == Container:
3894 this = _IMP_kernel.new_Container(_self, *args)
3896 self.this.append(this)
3897 except __builtin__.Exception:
3900 if self.__class__ != Container:
3901 _director_objects.register(self)
3906 def do_get_contents_hash(self):
3907 """do_get_contents_hash(Container self) -> std::size_t"""
3908 return _IMP_kernel.Container_do_get_contents_hash(self)
3911 def get_all_possible_indexes(self):
3912 """get_all_possible_indexes(Container self) -> IMP::ParticleIndexes"""
3913 return _IMP_kernel.Container_get_all_possible_indexes(self)
3916 def get_contents_hash(self):
3917 """get_contents_hash(Container self) -> std::size_t"""
3918 return _IMP_kernel.Container_get_contents_hash(self)
3921 def do_get_outputs(self):
3922 """do_get_outputs(Container self) -> IMP::ModelObjectsTemp"""
3923 return _IMP_kernel.Container_do_get_outputs(self)
3926 def get_is_decomposable(self):
3927 """get_is_decomposable(Container self) -> bool"""
3928 return _IMP_kernel.Container_get_is_decomposable(self)
3931 def validate_readable(self):
3932 """validate_readable(Container self)"""
3933 return _IMP_kernel.Container_validate_readable(self)
3936 def validate_writable(self):
3937 """validate_writable(Container self)"""
3938 return _IMP_kernel.Container_validate_writable(self)
3941 def set_is_readable(self, tf):
3942 """set_is_readable(Container self, bool tf)"""
3943 return _IMP_kernel.Container_set_is_readable(self, tf)
3946 def set_is_writable(self, tf):
3947 """set_is_writable(Container self, bool tf)"""
3948 return _IMP_kernel.Container_set_is_writable(self, tf)
3950 __swig_destroy__ = _IMP_kernel.delete_Container
3951 __del__ =
lambda self:
None
3954 """__str__(Container self) -> std::string"""
3955 return _IMP_kernel.Container___str__(self)
3959 """__repr__(Container self) -> std::string"""
3960 return _IMP_kernel.Container___repr__(self)
3965 return _object_cast_to_Container(o)
3968 def get_type_name(self):
3969 return self.__class__.__name__
3970 def do_show(self, out):
3972 def get_version_info(self):
3974 return VersionInfo(self.__module__,
3975 __import__(self.__module__).get_module_version())
3978 __import__(self.__module__).get_module_version())
3981 return _object_cast_to_Container(o)
3983 def __disown__(self):
3985 _IMP_kernel.disown_Container(self)
3986 return weakref_proxy(self)
3988 def do_destroy(self):
3989 """do_destroy(Container self)"""
3990 return _IMP_kernel.Container_do_destroy(self)
3993 def handle_set_has_required_score_states(self, arg0):
3994 """handle_set_has_required_score_states(Container self, bool arg0)"""
3995 return _IMP_kernel.Container_handle_set_has_required_score_states(self, arg0)
3998 def do_get_inputs(self):
3999 """do_get_inputs(Container self) -> IMP::ModelObjectsTemp"""
4000 return _IMP_kernel.Container_do_get_inputs(self)
4003 def do_get_interactions(self):
4004 """do_get_interactions(Container self) -> IMP::ModelObjectsTemps"""
4005 return _IMP_kernel.Container_do_get_interactions(self)
4007 Container_swigregister = _IMP_kernel.Container_swigregister
4008 Container_swigregister(Container)
4010 class RestraintInfo(Object):
4011 """Proxy of C++ IMP::RestraintInfo class."""
4013 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4015 def __init__(self, *args):
4017 __init__(IMP::RestraintInfo self, std::string name) -> RestraintInfo
4018 __init__(IMP::RestraintInfo self) -> RestraintInfo
4020 this = _IMP_kernel.new_RestraintInfo(*args)
4022 self.this.append(this)
4023 except __builtin__.Exception:
4026 def add_int(self, key, value):
4027 """add_int(RestraintInfo self, std::string key, int value)"""
4028 return _IMP_kernel.RestraintInfo_add_int(self, key, value)
4031 def get_number_of_int(self):
4032 """get_number_of_int(RestraintInfo self) -> unsigned int"""
4033 return _IMP_kernel.RestraintInfo_get_number_of_int(self)
4036 def get_int_key(self, i):
4037 """get_int_key(RestraintInfo self, unsigned int i) -> std::string"""
4038 return _IMP_kernel.RestraintInfo_get_int_key(self, i)
4041 def get_int_value(self, i):
4042 """get_int_value(RestraintInfo self, unsigned int i) -> int"""
4043 return _IMP_kernel.RestraintInfo_get_int_value(self, i)
4046 def add_float(self, key, value):
4047 """add_float(RestraintInfo self, std::string key, double value)"""
4048 return _IMP_kernel.RestraintInfo_add_float(self, key, value)
4051 def get_number_of_float(self):
4052 """get_number_of_float(RestraintInfo self) -> unsigned int"""
4053 return _IMP_kernel.RestraintInfo_get_number_of_float(self)
4056 def get_float_key(self, i):
4057 """get_float_key(RestraintInfo self, unsigned int i) -> std::string"""
4058 return _IMP_kernel.RestraintInfo_get_float_key(self, i)
4061 def get_float_value(self, i):
4062 """get_float_value(RestraintInfo self, unsigned int i) -> double"""
4063 return _IMP_kernel.RestraintInfo_get_float_value(self, i)
4066 def add_string(self, key, value):
4067 """add_string(RestraintInfo self, std::string key, std::string value)"""
4068 return _IMP_kernel.RestraintInfo_add_string(self, key, value)
4071 def get_number_of_string(self):
4072 """get_number_of_string(RestraintInfo self) -> unsigned int"""
4073 return _IMP_kernel.RestraintInfo_get_number_of_string(self)
4076 def get_string_key(self, i):
4077 """get_string_key(RestraintInfo self, unsigned int i) -> std::string"""
4078 return _IMP_kernel.RestraintInfo_get_string_key(self, i)
4081 def get_string_value(self, i):
4082 """get_string_value(RestraintInfo self, unsigned int i) -> std::string"""
4083 return _IMP_kernel.RestraintInfo_get_string_value(self, i)
4086 def add_filename(self, key, value):
4087 """add_filename(RestraintInfo self, std::string key, std::string value)"""
4088 return _IMP_kernel.RestraintInfo_add_filename(self, key, value)
4091 def get_number_of_filename(self):
4092 """get_number_of_filename(RestraintInfo self) -> unsigned int"""
4093 return _IMP_kernel.RestraintInfo_get_number_of_filename(self)
4096 def get_filename_key(self, i):
4097 """get_filename_key(RestraintInfo self, unsigned int i) -> std::string"""
4098 return _IMP_kernel.RestraintInfo_get_filename_key(self, i)
4101 def get_filename_value(self, i):
4102 """get_filename_value(RestraintInfo self, unsigned int i) -> std::string"""
4103 return _IMP_kernel.RestraintInfo_get_filename_value(self, i)
4106 def add_floats(self, key, value):
4107 """add_floats(RestraintInfo self, std::string key, IMP::Floats value)"""
4108 return _IMP_kernel.RestraintInfo_add_floats(self, key, value)
4111 def get_number_of_floats(self):
4112 """get_number_of_floats(RestraintInfo self) -> unsigned int"""
4113 return _IMP_kernel.RestraintInfo_get_number_of_floats(self)
4116 def get_floats_key(self, i):
4117 """get_floats_key(RestraintInfo self, unsigned int i) -> std::string"""
4118 return _IMP_kernel.RestraintInfo_get_floats_key(self, i)
4121 def get_floats_value(self, i):
4122 """get_floats_value(RestraintInfo self, unsigned int i) -> IMP::Floats"""
4123 return _IMP_kernel.RestraintInfo_get_floats_value(self, i)
4126 def add_filenames(self, key, value):
4127 """add_filenames(RestraintInfo self, std::string key, IMP::Strings value)"""
4128 return _IMP_kernel.RestraintInfo_add_filenames(self, key, value)
4131 def get_number_of_filenames(self):
4132 """get_number_of_filenames(RestraintInfo self) -> unsigned int"""
4133 return _IMP_kernel.RestraintInfo_get_number_of_filenames(self)
4136 def get_filenames_key(self, i):
4137 """get_filenames_key(RestraintInfo self, unsigned int i) -> std::string"""
4138 return _IMP_kernel.RestraintInfo_get_filenames_key(self, i)
4141 def get_filenames_value(self, i):
4142 """get_filenames_value(RestraintInfo self, unsigned int i) -> IMP::Strings"""
4143 return _IMP_kernel.RestraintInfo_get_filenames_value(self, i)
4146 def get_version_info(self):
4147 """get_version_info(RestraintInfo self) -> VersionInfo"""
4148 return _IMP_kernel.RestraintInfo_get_version_info(self)
4152 """__str__(RestraintInfo self) -> std::string"""
4153 return _IMP_kernel.RestraintInfo___str__(self)
4157 """__repr__(RestraintInfo self) -> std::string"""
4158 return _IMP_kernel.RestraintInfo___repr__(self)
4163 return _object_cast_to_RestraintInfo(o)
4165 RestraintInfo_swigregister = _IMP_kernel.RestraintInfo_swigregister
4166 RestraintInfo_swigregister(RestraintInfo)
4168 class Restraint(ModelObject):
4169 """Proxy of C++ IMP::Restraint class."""
4171 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4173 def __init__(self, m, name):
4174 """__init__(IMP::Restraint self, Model m, std::string name) -> Restraint"""
4175 if self.__class__ == Restraint:
4179 this = _IMP_kernel.new_Restraint(_self, m, name)
4181 self.this.append(this)
4182 except __builtin__.Exception:
4185 if self.__class__ != Restraint:
4186 _director_objects.register(self)
4191 def get_score(self):
4192 """get_score(Restraint self) -> double"""
4193 return _IMP_kernel.Restraint_get_score(self)
4196 def evaluate(self, calc_derivs):
4197 """evaluate(Restraint self, bool calc_derivs) -> double"""
4198 return _IMP_kernel.Restraint_evaluate(self, calc_derivs)
4201 def evaluate_if_good(self, calc_derivatives):
4202 """evaluate_if_good(Restraint self, bool calc_derivatives) -> double"""
4203 return _IMP_kernel.Restraint_evaluate_if_good(self, calc_derivatives)
4206 def evaluate_if_below(self, calc_derivatives, max):
4207 """evaluate_if_below(Restraint self, bool calc_derivatives, double max) -> double"""
4208 return _IMP_kernel.Restraint_evaluate_if_below(self, calc_derivatives, max)
4211 def unprotected_evaluate(self, da):
4212 """unprotected_evaluate(Restraint self, DerivativeAccumulator da) -> double"""
4213 return _IMP_kernel.Restraint_unprotected_evaluate(self, da)
4216 def unprotected_evaluate_if_good(self, da, max):
4217 """unprotected_evaluate_if_good(Restraint self, DerivativeAccumulator da, double max) -> double"""
4218 return _IMP_kernel.Restraint_unprotected_evaluate_if_good(self, da, max)
4221 def unprotected_evaluate_if_below(self, da, max):
4222 """unprotected_evaluate_if_below(Restraint self, DerivativeAccumulator da, double max) -> double"""
4223 return _IMP_kernel.Restraint_unprotected_evaluate_if_below(self, da, max)
4226 def get_static_info(self):
4227 """get_static_info(Restraint self) -> RestraintInfo"""
4228 return _IMP_kernel.Restraint_get_static_info(self)
4231 def get_dynamic_info(self):
4232 """get_dynamic_info(Restraint self) -> RestraintInfo"""
4233 return _IMP_kernel.Restraint_get_dynamic_info(self)
4236 def add_score_and_derivatives(self, sa):
4237 """add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
4238 return _IMP_kernel.Restraint_add_score_and_derivatives(self, sa)
4242 """create_decomposition(Restraint self) -> Restraint"""
4243 return _IMP_kernel.Restraint_create_decomposition(self)
4246 def create_current_decomposition(self):
4247 """create_current_decomposition(Restraint self) -> Restraint"""
4248 return _IMP_kernel.Restraint_create_current_decomposition(self)
4251 def set_weight(self, weight):
4252 """set_weight(Restraint self, IMP::Float weight)"""
4253 return _IMP_kernel.Restraint_set_weight(self, weight)
4256 def get_weight(self):
4257 """get_weight(Restraint self) -> IMP::Float"""
4258 return _IMP_kernel.Restraint_get_weight(self)
4261 def get_maximum_score(self):
4262 """get_maximum_score(Restraint self) -> double"""
4263 return _IMP_kernel.Restraint_get_maximum_score(self)
4266 def set_maximum_score(self, s):
4267 """set_maximum_score(Restraint self, double s)"""
4268 return _IMP_kernel.Restraint_set_maximum_score(self, s)
4273 create_scoring_function(Restraint self, double weight=1.0, double max) -> ScoringFunction
4274 create_scoring_function(Restraint self, double weight=1.0) -> ScoringFunction
4275 create_scoring_function(Restraint self) -> ScoringFunction
4277 return _IMP_kernel.Restraint_create_scoring_function(self, *args)
4280 def set_last_score(self, s):
4281 """set_last_score(Restraint self, double s)"""
4282 return _IMP_kernel.Restraint_set_last_score(self, s)
4285 def get_last_score(self):
4286 """get_last_score(Restraint self) -> double"""
4287 return _IMP_kernel.Restraint_get_last_score(self)
4290 def get_was_good(self):
4291 """get_was_good(Restraint self) -> bool"""
4292 return _IMP_kernel.Restraint_get_was_good(self)
4294 __swig_destroy__ = _IMP_kernel.delete_Restraint
4295 __del__ =
lambda self:
None
4297 def do_create_decomposition(self):
4298 """do_create_decomposition(Restraint self) -> IMP::Restraints"""
4299 return _IMP_kernel.Restraint_do_create_decomposition(self)
4302 def do_create_current_decomposition(self):
4303 """do_create_current_decomposition(Restraint self) -> IMP::Restraints"""
4304 return _IMP_kernel.Restraint_do_create_current_decomposition(self)
4307 def do_add_score_and_derivatives(self, sa):
4308 """do_add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
4309 return _IMP_kernel.Restraint_do_add_score_and_derivatives(self, sa)
4312 def do_get_outputs(self):
4313 """do_get_outputs(Restraint self) -> IMP::ModelObjectsTemp"""
4314 return _IMP_kernel.Restraint_do_get_outputs(self)
4318 """__str__(Restraint self) -> std::string"""
4319 return _IMP_kernel.Restraint___str__(self)
4323 """__repr__(Restraint self) -> std::string"""
4324 return _IMP_kernel.Restraint___repr__(self)
4329 return _object_cast_to_Restraint(o)
4332 def get_type_name(self):
4333 return self.__class__.__name__
4334 def do_show(self, out):
4336 def get_version_info(self):
4338 return VersionInfo(self.__module__,
4339 __import__(self.__module__).get_module_version())
4342 __import__(self.__module__).get_module_version())
4345 return _object_cast_to_Restraint(o)
4347 def __disown__(self):
4349 _IMP_kernel.disown_Restraint(self)
4350 return weakref_proxy(self)
4352 def do_destroy(self):
4353 """do_destroy(Restraint self)"""
4354 return _IMP_kernel.Restraint_do_destroy(self)
4357 def handle_set_has_required_score_states(self, arg0):
4358 """handle_set_has_required_score_states(Restraint self, bool arg0)"""
4359 return _IMP_kernel.Restraint_handle_set_has_required_score_states(self, arg0)
4362 def do_get_inputs(self):
4363 """do_get_inputs(Restraint self) -> IMP::ModelObjectsTemp"""
4364 return _IMP_kernel.Restraint_do_get_inputs(self)
4367 def do_get_interactions(self):
4368 """do_get_interactions(Restraint self) -> IMP::ModelObjectsTemps"""
4369 return _IMP_kernel.Restraint_do_get_interactions(self)
4371 Restraint_swigregister = _IMP_kernel.Restraint_swigregister
4372 Restraint_swigregister(Restraint)
4374 class _RestraintsAdaptor(_InputAdaptor):
4375 """Proxy of C++ IMP::RestraintsAdaptor class."""
4377 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4378 __repr__ = _swig_repr
4380 def __init__(self, *args):
4382 __init__(IMP::RestraintsAdaptor self) -> _RestraintsAdaptor
4383 __init__(IMP::RestraintsAdaptor self, IMP::Restraints const & sf) -> _RestraintsAdaptor
4384 __init__(IMP::RestraintsAdaptor self, IMP::RestraintsTemp const & sf) -> _RestraintsAdaptor
4385 __init__(IMP::RestraintsAdaptor self, Restraint sf) -> _RestraintsAdaptor
4387 this = _IMP_kernel.new__RestraintsAdaptor(*args)
4389 self.this.append(this)
4390 except __builtin__.Exception:
4392 __swig_destroy__ = _IMP_kernel.delete__RestraintsAdaptor
4393 __del__ =
lambda self:
None
4394 _RestraintsAdaptor_swigregister = _IMP_kernel._RestraintsAdaptor_swigregister
4395 _RestraintsAdaptor_swigregister(_RestraintsAdaptor)
4397 class RestraintSet(Restraint):
4398 """Proxy of C++ IMP::RestraintSet class."""
4400 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4402 def __init__(self, *args):
4404 __init__(IMP::RestraintSet self, Model m, double weight, std::string const & name) -> RestraintSet
4405 __init__(IMP::RestraintSet self, Model m, double weight) -> RestraintSet
4406 __init__(IMP::RestraintSet self, Model m, std::string const & name) -> RestraintSet
4407 __init__(IMP::RestraintSet self, Model m) -> RestraintSet
4408 __init__(IMP::RestraintSet self, IMP::RestraintsTemp const & rs, double weight, std::string const & name) -> RestraintSet
4409 __init__(IMP::RestraintSet self, IMP::RestraintsTemp const & rs, double weight) -> RestraintSet
4411 this = _IMP_kernel.new_RestraintSet(*args)
4413 self.this.append(this)
4414 except __builtin__.Exception:
4417 def get_version_info(self):
4418 """get_version_info(RestraintSet self) -> VersionInfo"""
4419 return _IMP_kernel.RestraintSet_get_version_info(self)
4422 def remove_restraint(self, d):
4423 """remove_restraint(RestraintSet self, Restraint d)"""
4424 return _IMP_kernel.RestraintSet_remove_restraint(self, d)
4427 def remove_restraints(self, d):
4428 """remove_restraints(RestraintSet self, IMP::Restraints const & d)"""
4429 return _IMP_kernel.RestraintSet_remove_restraints(self, d)
4432 def set_restraints(self, ps):
4433 """set_restraints(RestraintSet self, IMP::Restraints const & ps)"""
4434 return _IMP_kernel.RestraintSet_set_restraints(self, ps)
4437 def set_restraints_order(self, objs):
4438 """set_restraints_order(RestraintSet self, IMP::Restraints const & objs)"""
4439 return _IMP_kernel.RestraintSet_set_restraints_order(self, objs)
4443 """add_restraint(RestraintSet self, Restraint obj) -> unsigned int"""
4444 return _IMP_kernel.RestraintSet_add_restraint(self, obj)
4448 """add_restraints(RestraintSet self, IMP::Restraints const & objs)"""
4449 return _IMP_kernel.RestraintSet_add_restraints(self, objs)
4452 def clear_restraints(self):
4453 """clear_restraints(RestraintSet self)"""
4454 return _IMP_kernel.RestraintSet_clear_restraints(self)
4457 def get_number_of_restraints(self):
4458 """get_number_of_restraints(RestraintSet self) -> unsigned int"""
4459 return _IMP_kernel.RestraintSet_get_number_of_restraints(self)
4462 def get_has_restraints(self):
4463 """get_has_restraints(RestraintSet self) -> bool"""
4464 return _IMP_kernel.RestraintSet_get_has_restraints(self)
4467 def get_restraint(self, i):
4468 """get_restraint(RestraintSet self, unsigned int i) -> Restraint"""
4469 return _IMP_kernel.RestraintSet_get_restraint(self, i)
4472 def get_restraints(self):
4473 """get_restraints(RestraintSet self) -> IMP::Restraints"""
4474 return _IMP_kernel.RestraintSet_get_restraints(self)
4477 def reserve_restraints(self, sz):
4478 """reserve_restraints(RestraintSet self, unsigned int sz)"""
4479 return _IMP_kernel.RestraintSet_reserve_restraints(self, sz)
4482 def get_non_sets_and_sets(self):
4483 """get_non_sets_and_sets(RestraintSet self) -> std::pair< IMP::RestraintsTemp,IMP::RestraintSetsTemp >"""
4484 return _IMP_kernel.RestraintSet_get_non_sets_and_sets(self)
4487 def do_get_inputs(self):
4488 """do_get_inputs(RestraintSet self) -> IMP::ModelObjectsTemp"""
4489 return _IMP_kernel.RestraintSet_do_get_inputs(self)
4494 create_scoring_function(RestraintSet self, double weight=1.0, double max) -> ScoringFunction
4495 create_scoring_function(RestraintSet self, double weight=1.0) -> ScoringFunction
4496 create_scoring_function(RestraintSet self) -> ScoringFunction
4498 return _IMP_kernel.RestraintSet_create_scoring_function(self, *args)
4502 """__str__(RestraintSet self) -> std::string"""
4503 return _IMP_kernel.RestraintSet___str__(self)
4507 """__repr__(RestraintSet self) -> std::string"""
4508 return _IMP_kernel.RestraintSet___repr__(self)
4513 return _object_cast_to_RestraintSet(o)
4515 RestraintSet_swigregister = _IMP_kernel.RestraintSet_swigregister
4516 RestraintSet_swigregister(RestraintSet)
4519 def get_restraints(rs):
4520 """get_restraints(IMP::RestraintsTemp const & rs) -> IMP::RestraintsTemp"""
4521 return _IMP_kernel.get_restraints(rs)
4523 def _check_particle(p, a):
4524 if (
not p.get_is_active()):
4525 raise ValueError(
"Inactive Particle")
4526 if (type(a)() == a):
4527 raise IndexError(
"Cannot use default Index")
4528 if (
not p.has_attribute(a)):
4529 raise IndexError(
"Particle does not have attribute")
4531 class Particle(ModelObject):
4532 """Proxy of C++ IMP::Particle class."""
4534 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4536 def get_version_info(self):
4537 """get_version_info(Particle self) -> VersionInfo"""
4538 return _IMP_kernel.Particle_get_version_info(self)
4541 def __init__(self, *args):
4543 __init__(IMP::Particle self, Model m, std::string name) -> Particle
4544 __init__(IMP::Particle self, Model m) -> Particle
4546 this = _IMP_kernel.new_Particle(*args)
4548 self.this.append(this)
4549 except __builtin__.Exception:
4552 def get_float_keys(self):
4553 """get_float_keys(Particle self) -> IMP::FloatKeys"""
4554 return _IMP_kernel.Particle_get_float_keys(self)
4557 def get_int_keys(self):
4558 """get_int_keys(Particle self) -> IMP::IntKeys"""
4559 return _IMP_kernel.Particle_get_int_keys(self)
4562 def get_string_keys(self):
4563 """get_string_keys(Particle self) -> IMP::StringKeys"""
4564 return _IMP_kernel.Particle_get_string_keys(self)
4567 def get_object_keys(self):
4568 """get_object_keys(Particle self) -> IMP::ObjectKeys"""
4569 return _IMP_kernel.Particle_get_object_keys(self)
4572 def add_cache_attribute(self, *args):
4574 add_cache_attribute(Particle self, FloatKey name, IMP::Float value)
4575 add_cache_attribute(Particle self, IntKey name, IMP::Int value)
4576 add_cache_attribute(Particle self, StringKey name, IMP::String value)
4577 add_cache_attribute(Particle self, ObjectKey name, Object value)
4578 add_cache_attribute(Particle self, IMP::WeakObjectKey name, Object value)
4580 return _IMP_kernel.Particle_add_cache_attribute(self, *args)
4583 def get_weak_object_keys(self):
4584 """get_weak_object_keys(Particle self) -> IMP::WeakObjectKeys"""
4585 return _IMP_kernel.Particle_get_weak_object_keys(self)
4588 def add_to_derivative(self, key, value, da):
4589 """add_to_derivative(Particle self, FloatKey key, IMP::Float value, DerivativeAccumulator da)"""
4590 return _IMP_kernel.Particle_add_to_derivative(self, key, value, da)
4593 def set_is_optimized(self, k, tf):
4594 """set_is_optimized(Particle self, FloatKey k, bool tf)"""
4595 return _IMP_kernel.Particle_set_is_optimized(self, k, tf)
4598 def get_is_optimized(self, k):
4599 """get_is_optimized(Particle self, FloatKey k) -> bool"""
4600 return _IMP_kernel.Particle_get_is_optimized(self, k)
4603 def get_derivative(self, k):
4604 """get_derivative(Particle self, FloatKey k) -> IMP::Float"""
4605 return _IMP_kernel.Particle_get_derivative(self, k)
4608 def add_attribute(self, *args):
4610 add_attribute(Particle self, FloatKey name, IMP::Float initial_value)
4611 add_attribute(Particle self, IntKey name, IMP::Int initial_value)
4612 add_attribute(Particle self, StringKey name, IMP::String initial_value)
4613 add_attribute(Particle self, ObjectKey name, Object initial_value)
4614 add_attribute(Particle self, IMP::WeakObjectKey name, Object initial_value)
4615 add_attribute(Particle self, FloatKey name, IMP::Float const initial_value, bool optimized)
4616 add_attribute(Particle self, ParticleIndexKey k, Particle v)
4618 return _IMP_kernel.Particle_add_attribute(self, *args)
4621 def has_attribute(self, *args):
4623 has_attribute(Particle self, FloatKey name) -> bool
4624 has_attribute(Particle self, IntKey name) -> bool
4625 has_attribute(Particle self, StringKey name) -> bool
4626 has_attribute(Particle self, ObjectKey name) -> bool
4627 has_attribute(Particle self, IMP::WeakObjectKey name) -> bool
4628 has_attribute(Particle self, ParticleIndexKey k) -> bool
4630 return _IMP_kernel.Particle_has_attribute(self, *args)
4633 def set_value(self, *args):
4635 set_value(Particle self, FloatKey name, IMP::Float value)
4636 set_value(Particle self, IntKey name, IMP::Int value)
4637 set_value(Particle self, StringKey name, IMP::String value)
4638 set_value(Particle self, ObjectKey name, Object value)
4639 set_value(Particle self, IMP::WeakObjectKey name, Object value)
4640 set_value(Particle self, ParticleIndexKey k, Particle v)
4642 return _IMP_kernel.Particle_set_value(self, *args)
4645 def get_value(self, *args):
4647 get_value(Particle self, FloatKey name) -> IMP::Float
4648 get_value(Particle self, IntKey name) -> IMP::Int
4649 get_value(Particle self, StringKey name) -> IMP::String
4650 get_value(Particle self, ObjectKey name) -> Object
4651 get_value(Particle self, IMP::WeakObjectKey name) -> Object
4652 get_value(Particle self, ParticleIndexKey k) -> Particle
4654 return _IMP_kernel.Particle_get_value(self, *args)
4657 def remove_attribute(self, *args):
4659 remove_attribute(Particle self, FloatKey name)
4660 remove_attribute(Particle self, IntKey name)
4661 remove_attribute(Particle self, StringKey name)
4662 remove_attribute(Particle self, ObjectKey name)
4663 remove_attribute(Particle self, IMP::WeakObjectKey name)
4664 remove_attribute(Particle self, ParticleIndexKey k)
4666 return _IMP_kernel.Particle_remove_attribute(self, *args)
4669 def get_particle_keys(self):
4670 """get_particle_keys(Particle self) -> IMP::ParticleIndexKeys"""
4671 return _IMP_kernel.Particle_get_particle_keys(self)
4674 def show(self, *args):
4676 show(Particle self, _ostream out)
4679 return _IMP_kernel.Particle_show(self, *args)
4682 def get_is_active(self):
4683 """get_is_active(Particle self) -> bool"""
4684 return _IMP_kernel.Particle_get_is_active(self)
4688 """get_index(Particle self) -> ParticleIndex"""
4689 return _IMP_kernel.Particle_get_index(self)
4692 def __eq__(self, *args):
4694 __eq__(Particle self, Particle o) -> bool
4695 __eq__(Particle self, Decorator d) -> bool
4697 return _IMP_kernel.Particle___eq__(self, *args)
4700 def __ne__(self, *args):
4702 __ne__(Particle self, Particle o) -> bool
4703 __ne__(Particle self, Decorator d) -> bool
4705 return _IMP_kernel.Particle___ne__(self, *args)
4708 def __le__(self, *args):
4710 __le__(Particle self, Particle o) -> bool
4711 __le__(Particle self, Decorator d) -> bool
4713 return _IMP_kernel.Particle___le__(self, *args)
4716 def __lt__(self, *args):
4718 __lt__(Particle self, Particle o) -> bool
4719 __lt__(Particle self, Decorator d) -> bool
4721 return _IMP_kernel.Particle___lt__(self, *args)
4724 def __ge__(self, *args):
4726 __ge__(Particle self, Particle o) -> bool
4727 __ge__(Particle self, Decorator d) -> bool
4729 return _IMP_kernel.Particle___ge__(self, *args)
4732 def __gt__(self, *args):
4734 __gt__(Particle self, Particle o) -> bool
4735 __gt__(Particle self, Decorator d) -> bool
4737 return _IMP_kernel.Particle___gt__(self, *args)
4740 __hash__ = ModelObject.__hash__
4744 """__str__(Particle self) -> std::string"""
4745 return _IMP_kernel.Particle___str__(self)
4749 """__repr__(Particle self) -> std::string"""
4750 return _IMP_kernel.Particle___repr__(self)
4755 return _object_cast_to_Particle(o)
4757 Particle_swigregister = _IMP_kernel.Particle_swigregister
4758 Particle_swigregister(Particle)
4760 class _ParticleAdaptor(_InputAdaptor):
4761 """Proxy of C++ IMP::ParticleAdaptor class."""
4763 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4764 __repr__ = _swig_repr
4766 def __init__(self, *args):
4768 __init__(IMP::ParticleAdaptor self) -> _ParticleAdaptor
4769 __init__(IMP::ParticleAdaptor self, Particle p) -> _ParticleAdaptor
4770 __init__(IMP::ParticleAdaptor self, Decorator d) -> _ParticleAdaptor
4772 this = _IMP_kernel.new__ParticleAdaptor(*args)
4774 self.this.append(this)
4775 except __builtin__.Exception:
4778 def get_model(self):
4779 """get_model(_ParticleAdaptor self) -> Model"""
4780 return _IMP_kernel._ParticleAdaptor_get_model(self)
4783 def get_particle_index(self):
4784 """get_particle_index(_ParticleAdaptor self) -> ParticleIndex"""
4785 return _IMP_kernel._ParticleAdaptor_get_particle_index(self)
4787 __swig_destroy__ = _IMP_kernel.delete__ParticleAdaptor
4788 __del__ =
lambda self:
None
4789 _ParticleAdaptor_swigregister = _IMP_kernel._ParticleAdaptor_swigregister
4790 _ParticleAdaptor_swigregister(_ParticleAdaptor)
4792 class _DependencyGraphVertexIndex(object):
4793 """Proxy of C++ IMP::DependencyGraphVertexIndex class."""
4795 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4796 __repr__ = _swig_repr
4799 """__init__(IMP::DependencyGraphVertexIndex self) -> _DependencyGraphVertexIndex"""
4800 this = _IMP_kernel.new__DependencyGraphVertexIndex()
4802 self.this.append(this)
4803 except __builtin__.Exception:
4805 __swig_destroy__ = _IMP_kernel.delete__DependencyGraphVertexIndex
4806 __del__ =
lambda self:
None
4807 _DependencyGraphVertexIndex_swigregister = _IMP_kernel._DependencyGraphVertexIndex_swigregister
4808 _DependencyGraphVertexIndex_swigregister(_DependencyGraphVertexIndex)
4811 def show_as_graphviz(name, out):
4812 """show_as_graphviz(IMP::DependencyGraph const & name, TextOutput out)"""
4813 return _IMP_kernel.show_as_graphviz(name, out)
4815 def get_vertex_index(g):
4816 """get_vertex_index(IMP::DependencyGraph const & g) -> _DependencyGraphVertexIndex"""
4817 return _IMP_kernel.get_vertex_index(g)
4820 """get_dependency_graph(Model m) -> IMP::DependencyGraph"""
4821 return _IMP_kernel.get_dependency_graph(m)
4824 """get_pruned_dependency_graph(Model m) -> IMP::DependencyGraph"""
4825 return _IMP_kernel.get_pruned_dependency_graph(m)
4829 get_required_score_states(IMP::ModelObjectsTemp const & mos, IMP::ScoreStatesTemp exclude) -> IMP::ScoreStatesTemp
4830 get_required_score_states(IMP::ModelObjectsTemp const & mos) -> IMP::ScoreStatesTemp
4831 get_required_score_states(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ScoreStatesTemp
4833 return _IMP_kernel.get_required_score_states(*args)
4836 """get_dependent_particles(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ParticlesTemp"""
4837 return _IMP_kernel.get_dependent_particles(p, all, dg, index)
4839 def get_dependent_restraints(m, pi):
4840 """get_dependent_restraints(Model m, ParticleIndex pi) -> IMP::RestraintsTemp"""
4841 return _IMP_kernel.get_dependent_restraints(m, pi)
4842 class ScoringFunction(ModelObject):
4843 """Proxy of C++ IMP::ScoringFunction class."""
4845 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4847 def do_add_score_and_derivatives(self, sa, ss):
4848 """do_add_score_and_derivatives(ScoringFunction self, ScoreAccumulator sa, IMP::ScoreStatesTemp const & ss)"""
4849 return _IMP_kernel.ScoringFunction_do_add_score_and_derivatives(self, sa, ss)
4852 def get_score_accumulator_if_below(self, deriv, max):
4853 """get_score_accumulator_if_below(ScoringFunction self, bool deriv, double max) -> ScoreAccumulator"""
4854 return _IMP_kernel.ScoringFunction_get_score_accumulator_if_below(self, deriv, max)
4857 def get_score_accumulator_if_good(self, deriv):
4858 """get_score_accumulator_if_good(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
4859 return _IMP_kernel.ScoringFunction_get_score_accumulator_if_good(self, deriv)
4862 def get_score_accumulator(self, deriv):
4863 """get_score_accumulator(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
4864 return _IMP_kernel.ScoringFunction_get_score_accumulator(self, deriv)
4867 def __init__(self, m, name):
4868 """__init__(IMP::ScoringFunction self, Model m, std::string name) -> ScoringFunction"""
4869 if self.__class__ == ScoringFunction:
4873 this = _IMP_kernel.new_ScoringFunction(_self, m, name)
4875 self.this.append(this)
4876 except __builtin__.Exception:
4879 if self.__class__ != ScoringFunction:
4880 _director_objects.register(self)
4885 def do_get_outputs(self):
4886 """do_get_outputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
4887 return _IMP_kernel.ScoringFunction_do_get_outputs(self)
4890 def evaluate_if_good(self, derivatives):
4891 """evaluate_if_good(ScoringFunction self, bool derivatives) -> double"""
4892 return _IMP_kernel.ScoringFunction_evaluate_if_good(self, derivatives)
4895 def evaluate(self, derivatives):
4896 """evaluate(ScoringFunction self, bool derivatives) -> double"""
4897 return _IMP_kernel.ScoringFunction_evaluate(self, derivatives)
4900 def evaluate_if_below(self, derivatives, max):
4901 """evaluate_if_below(ScoringFunction self, bool derivatives, double max) -> double"""
4902 return _IMP_kernel.ScoringFunction_evaluate_if_below(self, derivatives, max)
4905 def get_had_good_score(self):
4906 """get_had_good_score(ScoringFunction self) -> bool"""
4907 return _IMP_kernel.ScoringFunction_get_had_good_score(self)
4910 def get_last_score(self):
4911 """get_last_score(ScoringFunction self) -> double"""
4912 return _IMP_kernel.ScoringFunction_get_last_score(self)
4916 """create_restraints(ScoringFunction self) -> IMP::Restraints"""
4917 return _IMP_kernel.ScoringFunction_create_restraints(self)
4921 """__str__(ScoringFunction self) -> std::string"""
4922 return _IMP_kernel.ScoringFunction___str__(self)
4926 """__repr__(ScoringFunction self) -> std::string"""
4927 return _IMP_kernel.ScoringFunction___repr__(self)
4932 return _object_cast_to_ScoringFunction(o)
4935 def get_type_name(self):
4936 return self.__class__.__name__
4937 def do_show(self, out):
4939 def get_version_info(self):
4941 return VersionInfo(self.__module__,
4942 __import__(self.__module__).get_module_version())
4945 __import__(self.__module__).get_module_version())
4948 return _object_cast_to_ScoringFunction(o)
4950 __swig_destroy__ = _IMP_kernel.delete_ScoringFunction
4951 __del__ =
lambda self:
None
4952 def __disown__(self):
4954 _IMP_kernel.disown_ScoringFunction(self)
4955 return weakref_proxy(self)
4957 def do_destroy(self):
4958 """do_destroy(ScoringFunction self)"""
4959 return _IMP_kernel.ScoringFunction_do_destroy(self)
4962 def handle_set_has_required_score_states(self, arg0):
4963 """handle_set_has_required_score_states(ScoringFunction self, bool arg0)"""
4964 return _IMP_kernel.ScoringFunction_handle_set_has_required_score_states(self, arg0)
4967 def do_get_inputs(self):
4968 """do_get_inputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
4969 return _IMP_kernel.ScoringFunction_do_get_inputs(self)
4972 def do_get_interactions(self):
4973 """do_get_interactions(ScoringFunction self) -> IMP::ModelObjectsTemps"""
4974 return _IMP_kernel.ScoringFunction_do_get_interactions(self)
4976 ScoringFunction_swigregister = _IMP_kernel.ScoringFunction_swigregister
4977 ScoringFunction_swigregister(ScoringFunction)
4982 create_decomposition(IMP::RestraintsTemp const & rs) -> IMP::Restraints
4983 create_decomposition(ScoringFunction sf) -> IMP::ScoringFunctions
4985 return _IMP_kernel.create_decomposition(*args)
4986 class _ScoringFunctionAdaptor(_InputAdaptor):
4987 """Proxy of C++ IMP::ScoringFunctionAdaptor class."""
4989 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4990 __repr__ = _swig_repr
4992 def __init__(self, *args):
4994 __init__(IMP::ScoringFunctionAdaptor self) -> _ScoringFunctionAdaptor
4995 __init__(IMP::ScoringFunctionAdaptor self, ScoringFunction sf) -> _ScoringFunctionAdaptor
4996 __init__(IMP::ScoringFunctionAdaptor self, IMP::RestraintsTemp const & sf) -> _ScoringFunctionAdaptor
4997 __init__(IMP::ScoringFunctionAdaptor self, IMP::Restraints const & sf) -> _ScoringFunctionAdaptor
4998 __init__(IMP::ScoringFunctionAdaptor self, Restraint sf) -> _ScoringFunctionAdaptor
5000 this = _IMP_kernel.new__ScoringFunctionAdaptor(*args)
5002 self.this.append(this)
5003 except __builtin__.Exception:
5005 __swig_destroy__ = _IMP_kernel.delete__ScoringFunctionAdaptor
5006 __del__ =
lambda self:
None
5007 _ScoringFunctionAdaptor_swigregister = _IMP_kernel._ScoringFunctionAdaptor_swigregister
5008 _ScoringFunctionAdaptor_swigregister(_ScoringFunctionAdaptor)
5013 show_restraint_hierarchy(_ScoringFunctionAdaptor rs, _ostream out)
5014 show_restraint_hierarchy(_ScoringFunctionAdaptor rs)
5016 return _IMP_kernel.show_restraint_hierarchy(*args)
5017 class Undecorator(Object):
5018 """Proxy of C++ IMP::Undecorator class."""
5020 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5022 def __init__(self, m, name):
5023 """__init__(IMP::Undecorator self, Model m, std::string name) -> Undecorator"""
5024 if self.__class__ == Undecorator:
5028 this = _IMP_kernel.new_Undecorator(_self, m, name)
5030 self.this.append(this)
5031 except __builtin__.Exception:
5034 if self.__class__ != Undecorator:
5035 _director_objects.register(self)
5040 def teardown(self, pi):
5041 """teardown(Undecorator self, ParticleIndex pi)"""
5042 return _IMP_kernel.Undecorator_teardown(self, pi)
5046 """__str__(Undecorator self) -> std::string"""
5047 return _IMP_kernel.Undecorator___str__(self)
5051 """__repr__(Undecorator self) -> std::string"""
5052 return _IMP_kernel.Undecorator___repr__(self)
5057 return _object_cast_to_Undecorator(o)
5060 def get_type_name(self):
5061 return self.__class__.__name__
5062 def do_show(self, out):
5064 def get_version_info(self):
5066 return VersionInfo(self.__module__,
5067 __import__(self.__module__).get_module_version())
5070 __import__(self.__module__).get_module_version())
5073 return _object_cast_to_Undecorator(o)
5075 __swig_destroy__ = _IMP_kernel.delete_Undecorator
5076 __del__ =
lambda self:
None
5077 def __disown__(self):
5079 _IMP_kernel.disown_Undecorator(self)
5080 return weakref_proxy(self)
5082 def do_destroy(self):
5083 """do_destroy(Undecorator self)"""
5084 return _IMP_kernel.Undecorator_do_destroy(self)
5086 Undecorator_swigregister = _IMP_kernel.Undecorator_swigregister
5087 Undecorator_swigregister(Undecorator)
5089 class Model(Object):
5090 """Proxy of C++ IMP::Model class."""
5092 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5094 def __init__(self, *args):
5096 __init__(IMP::Model self, std::string name) -> Model
5097 __init__(IMP::Model self) -> Model
5099 this = _IMP_kernel.new_Model(*args)
5101 self.this.append(this)
5102 except __builtin__.Exception:
5105 def clear_particle_caches(self, pi):
5106 """clear_particle_caches(Model self, ParticleIndex pi)"""
5107 return _IMP_kernel.Model_clear_particle_caches(self, pi)
5111 """add_particle(Model self, std::string name) -> ParticleIndex"""
5112 return _IMP_kernel.Model_add_particle(self, name)
5115 def get_particle_name(self, pi):
5116 """get_particle_name(Model self, ParticleIndex pi) -> std::string"""
5117 return _IMP_kernel.Model_get_particle_name(self, pi)
5120 def add_undecorator(self, pi, d):
5121 """add_undecorator(Model self, ParticleIndex pi, Undecorator d)"""
5122 return _IMP_kernel.Model_add_undecorator(self, pi, d)
5125 def remove_score_state(self, d):
5126 """remove_score_state(Model self, ScoreState d)"""
5127 return _IMP_kernel.Model_remove_score_state(self, d)
5130 def remove_score_states(self, d):
5131 """remove_score_states(Model self, IMP::ScoreStates const & d)"""
5132 return _IMP_kernel.Model_remove_score_states(self, d)
5135 def set_score_states(self, ps):
5136 """set_score_states(Model self, IMP::ScoreStates const & ps)"""
5137 return _IMP_kernel.Model_set_score_states(self, ps)
5140 def set_score_states_order(self, objs):
5141 """set_score_states_order(Model self, IMP::ScoreStates const & objs)"""
5142 return _IMP_kernel.Model_set_score_states_order(self, objs)
5145 def add_score_state(self, obj):
5146 """add_score_state(Model self, ScoreState obj) -> unsigned int"""
5147 return _IMP_kernel.Model_add_score_state(self, obj)
5150 def add_score_states(self, objs):
5151 """add_score_states(Model self, IMP::ScoreStates const & objs)"""
5152 return _IMP_kernel.Model_add_score_states(self, objs)
5155 def clear_score_states(self):
5156 """clear_score_states(Model self)"""
5157 return _IMP_kernel.Model_clear_score_states(self)
5160 def get_number_of_score_states(self):
5161 """get_number_of_score_states(Model self) -> unsigned int"""
5162 return _IMP_kernel.Model_get_number_of_score_states(self)
5165 def get_has_score_states(self):
5166 """get_has_score_states(Model self) -> bool"""
5167 return _IMP_kernel.Model_get_has_score_states(self)
5170 def get_score_state(self, i):
5171 """get_score_state(Model self, unsigned int i) -> ScoreState"""
5172 return _IMP_kernel.Model_get_score_state(self, i)
5175 def get_score_states(self):
5176 """get_score_states(Model self) -> IMP::ScoreStates"""
5177 return _IMP_kernel.Model_get_score_states(self)
5180 def reserve_score_states(self, sz):
5181 """reserve_score_states(Model self, unsigned int sz)"""
5182 return _IMP_kernel.Model_reserve_score_states(self, sz)
5186 """update(Model self)"""
5187 return _IMP_kernel.Model_update(self)
5190 def add_attribute(self, *args):
5192 add_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5193 add_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
5194 add_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
5195 add_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
5196 add_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
5197 add_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5198 add_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
5199 add_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5201 return _IMP_kernel.Model_add_attribute(self, *args)
5204 def remove_attribute(self, *args):
5206 remove_attribute(Model self, FloatKey attribute_key, ParticleIndex particle)
5207 remove_attribute(Model self, IntKey attribute_key, ParticleIndex particle)
5208 remove_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle)
5209 remove_attribute(Model self, StringKey attribute_key, ParticleIndex particle)
5210 remove_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle)
5211 remove_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle)
5212 remove_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle)
5213 remove_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle)
5215 return _IMP_kernel.Model_remove_attribute(self, *args)
5218 def get_has_attribute(self, *args):
5220 get_has_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> bool
5221 get_has_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> bool
5222 get_has_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle) -> bool
5223 get_has_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> bool
5224 get_has_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> bool
5225 get_has_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> bool
5226 get_has_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> bool
5227 get_has_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> bool
5229 return _IMP_kernel.Model_get_has_attribute(self, *args)
5232 def set_attribute(self, *args):
5234 set_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5235 set_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
5236 set_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
5237 set_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
5238 set_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
5239 set_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5240 set_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
5241 set_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5243 return _IMP_kernel.Model_set_attribute(self, *args)
5246 def get_attribute(self, *args):
5248 get_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> IMP::Float
5249 get_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> IMP::Int
5250 get_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle) -> IMP::Ints
5251 get_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> IMP::String
5252 get_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> IMP::ParticleIndexes
5253 get_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> ParticleIndex
5254 get_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> Object
5255 get_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> Object
5257 return _IMP_kernel.Model_get_attribute(self, *args)
5260 def add_cache_attribute(self, *args):
5262 add_cache_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5263 add_cache_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
5264 add_cache_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
5265 add_cache_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
5266 add_cache_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
5267 add_cache_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5268 add_cache_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
5269 add_cache_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5271 return _IMP_kernel.Model_add_cache_attribute(self, *args)
5274 def set_is_optimized(self, arg2, arg3, arg4):
5275 """set_is_optimized(Model self, FloatKey arg2, ParticleIndex arg3, bool arg4)"""
5276 return _IMP_kernel.Model_set_is_optimized(self, arg2, arg3, arg4)
5279 def add_to_derivative(self, k, particle, v, da):
5280 """add_to_derivative(Model self, FloatKey k, ParticleIndex particle, double v, DerivativeAccumulator da)"""
5281 return _IMP_kernel.Model_add_to_derivative(self, k, particle, v, da)
5284 def get_particle(self, p):
5285 """get_particle(Model self, ParticleIndex p) -> Particle"""
5286 return _IMP_kernel.Model_get_particle(self, p)
5289 def get_has_particle(self, p):
5290 """get_has_particle(Model self, ParticleIndex p) -> bool"""
5291 return _IMP_kernel.Model_get_has_particle(self, p)
5295 """get_particle_indexes(Model self) -> IMP::ParticleIndexes"""
5296 return _IMP_kernel.Model_get_particle_indexes(self)
5299 def get_model_objects(self):
5300 """get_model_objects(Model self) -> IMP::ModelObjectsTemp"""
5301 return _IMP_kernel.Model_get_model_objects(self)
5304 def remove_particle(self, pi):
5305 """remove_particle(Model self, ParticleIndex pi)"""
5306 return _IMP_kernel.Model_remove_particle(self, pi)
5309 def add_data(self, mk, o):
5310 """add_data(Model self, ModelKey mk, Object o)"""
5311 return _IMP_kernel.Model_add_data(self, mk, o)
5314 def get_data(self, mk):
5315 """get_data(Model self, ModelKey mk) -> Object"""
5316 return _IMP_kernel.Model_get_data(self, mk)
5319 def remove_data(self, mk):
5320 """remove_data(Model self, ModelKey mk)"""
5321 return _IMP_kernel.Model_remove_data(self, mk)
5324 def get_has_data(self, mk):
5325 """get_has_data(Model self, ModelKey mk) -> bool"""
5326 return _IMP_kernel.Model_get_has_data(self, mk)
5329 def get_version_info(self):
5330 """get_version_info(Model self) -> VersionInfo"""
5331 return _IMP_kernel.Model_get_version_info(self)
5334 def do_destroy(self):
5335 """do_destroy(Model self)"""
5336 return _IMP_kernel.Model_do_destroy(self)
5340 """__str__(Model self) -> std::string"""
5341 return _IMP_kernel.Model___str__(self)
5345 """__repr__(Model self) -> std::string"""
5346 return _IMP_kernel.Model___repr__(self)
5351 return _object_cast_to_Model(o)
5354 def _get_ints_numpy(self, k):
5355 return _get_ints_numpy(self, k, self)
5357 def _get_floats_numpy(self, k):
5358 return _get_floats_numpy(self, k, self)
5360 def _get_derivatives_numpy(self, k):
5361 return _get_derivatives_numpy(self, k, self)
5363 def _get_spheres_numpy(self):
5364 return _get_spheres_numpy(self, self)
5366 def _get_sphere_derivatives_numpy(self):
5367 return _get_sphere_derivatives_numpy(self, self)
5369 Model_swigregister = _IMP_kernel.Model_swigregister
5370 Model_swigregister(Model)
5372 class Decorator(_Value):
5373 """Proxy of C++ IMP::Decorator class."""
5375 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5376 __repr__ = _swig_repr
5378 def __init__(self, p):
5379 """__init__(IMP::Decorator self, _ParticleAdaptor p) -> Decorator"""
5380 this = _IMP_kernel.new_Decorator(p)
5382 self.this.append(this)
5383 except __builtin__.Exception:
5386 def __ne__(self, o):
5387 """__ne__(Decorator self, Object o) -> bool"""
5388 return _IMP_kernel.Decorator___ne__(self, o)
5391 def __lt__(self, o):
5392 """__lt__(Decorator self, Object o) -> bool"""
5393 return _IMP_kernel.Decorator___lt__(self, o)
5396 def __gt__(self, o):
5397 """__gt__(Decorator self, Object o) -> bool"""
5398 return _IMP_kernel.Decorator___gt__(self, o)
5401 def __ge__(self, o):
5402 """__ge__(Decorator self, Object o) -> bool"""
5403 return _IMP_kernel.Decorator___ge__(self, o)
5406 def __le__(self, o):
5407 """__le__(Decorator self, Object o) -> bool"""
5408 return _IMP_kernel.Decorator___le__(self, o)
5411 def get_particle(self):
5412 """get_particle(Decorator self) -> Particle"""
5413 return _IMP_kernel.Decorator_get_particle(self)
5416 def get_particle_index(self):
5417 """get_particle_index(Decorator self) -> ParticleIndex"""
5418 return _IMP_kernel.Decorator_get_particle_index(self)
5421 def get_model(self):
5422 """get_model(Decorator self) -> Model"""
5423 return _IMP_kernel.Decorator_get_model(self)
5426 def get_is_valid(self):
5427 """get_is_valid(Decorator self) -> bool"""
5428 return _IMP_kernel.Decorator_get_is_valid(self)
5432 """__hash__(Decorator self) -> std::size_t"""
5433 return _IMP_kernel.Decorator___hash__(self)
5436 def __eq__(self, *args):
5438 __eq__(Decorator self, Object o) -> bool
5439 __eq__(Decorator self, Decorator o) -> bool
5440 __eq__(Decorator self, Particle o) -> bool
5442 return _IMP_kernel.Decorator___eq__(self, *args)
5446 """__bool__(Decorator self) -> bool"""
5447 return _IMP_kernel.Decorator___bool__(self)
5450 __nonzero__ = __bool__
5452 __swig_destroy__ = _IMP_kernel.delete_Decorator
5453 __del__ =
lambda self:
None
5454 Decorator_swigregister = _IMP_kernel.Decorator_swigregister
5455 Decorator_swigregister(Decorator)
5458 def check_particle(m, pi):
5459 """check_particle(Model m, ParticleIndex pi)"""
5460 return _IMP_kernel.check_particle(m, pi)
5461 class UnaryFunction(Object):
5462 """Proxy of C++ IMP::UnaryFunction class."""
5464 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5466 def __init__(self, *args):
5468 __init__(IMP::UnaryFunction self, std::string name) -> UnaryFunction
5469 __init__(IMP::UnaryFunction self) -> UnaryFunction
5471 if self.__class__ == UnaryFunction:
5475 this = _IMP_kernel.new_UnaryFunction(_self, *args)
5477 self.this.append(this)
5478 except __builtin__.Exception:
5481 if self.__class__ != UnaryFunction:
5482 _director_objects.register(self)
5487 def evaluate(self, feature):
5488 """evaluate(UnaryFunction self, double feature) -> double"""
5489 return _IMP_kernel.UnaryFunction_evaluate(self, feature)
5492 def evaluate_with_derivative(self, feature):
5493 """evaluate_with_derivative(UnaryFunction self, double feature) -> IMP::DerivativePair"""
5494 return _IMP_kernel.UnaryFunction_evaluate_with_derivative(self, feature)
5496 __swig_destroy__ = _IMP_kernel.delete_UnaryFunction
5497 __del__ =
lambda self:
None
5500 """__str__(UnaryFunction self) -> std::string"""
5501 return _IMP_kernel.UnaryFunction___str__(self)
5505 """__repr__(UnaryFunction self) -> std::string"""
5506 return _IMP_kernel.UnaryFunction___repr__(self)
5511 return _object_cast_to_UnaryFunction(o)
5514 def get_type_name(self):
5515 return self.__class__.__name__
5516 def do_show(self, out):
5518 def get_version_info(self):
5520 return VersionInfo(self.__module__,
5521 __import__(self.__module__).get_module_version())
5524 __import__(self.__module__).get_module_version())
5527 return _object_cast_to_UnaryFunction(o)
5529 def __disown__(self):
5531 _IMP_kernel.disown_UnaryFunction(self)
5532 return weakref_proxy(self)
5534 def do_destroy(self):
5535 """do_destroy(UnaryFunction self)"""
5536 return _IMP_kernel.UnaryFunction_do_destroy(self)
5538 UnaryFunction_swigregister = _IMP_kernel.UnaryFunction_swigregister
5539 UnaryFunction_swigregister(UnaryFunction)
5541 class OptimizerState(ModelObject):
5542 """Proxy of C++ IMP::OptimizerState class."""
5544 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5546 def __init__(self, m, name):
5547 """__init__(IMP::OptimizerState self, Model m, std::string name) -> OptimizerState"""
5548 if self.__class__ == OptimizerState:
5552 this = _IMP_kernel.new_OptimizerState(_self, m, name)
5554 self.this.append(this)
5555 except __builtin__.Exception:
5558 if self.__class__ != OptimizerState:
5559 _director_objects.register(self)
5565 """update(OptimizerState self)"""
5566 return _IMP_kernel.OptimizerState_update(self)
5569 def set_is_optimizing(self, arg0):
5570 """set_is_optimizing(OptimizerState self, bool arg0)"""
5571 return _IMP_kernel.OptimizerState_set_is_optimizing(self, arg0)
5574 def get_optimizer(self):
5575 """get_optimizer(OptimizerState self) -> Optimizer"""
5576 return _IMP_kernel.OptimizerState_get_optimizer(self)
5579 def set_period(self, p):
5580 """set_period(OptimizerState self, unsigned int p)"""
5581 return _IMP_kernel.OptimizerState_set_period(self, p)
5584 def get_period(self):
5585 """get_period(OptimizerState self) -> unsigned int"""
5586 return _IMP_kernel.OptimizerState_get_period(self)
5590 """reset(OptimizerState self)"""
5591 return _IMP_kernel.OptimizerState_reset(self)
5594 def update_always(self):
5595 """update_always(OptimizerState self)"""
5596 return _IMP_kernel.OptimizerState_update_always(self)
5599 def get_number_of_updates(self):
5600 """get_number_of_updates(OptimizerState self) -> unsigned int"""
5601 return _IMP_kernel.OptimizerState_get_number_of_updates(self)
5604 def set_number_of_updates(self, n):
5605 """set_number_of_updates(OptimizerState self, unsigned int n)"""
5606 return _IMP_kernel.OptimizerState_set_number_of_updates(self, n)
5608 __swig_destroy__ = _IMP_kernel.delete_OptimizerState
5609 __del__ =
lambda self:
None
5611 def do_update(self, arg0):
5612 """do_update(OptimizerState self, unsigned int arg0)"""
5613 return _IMP_kernel.OptimizerState_do_update(self, arg0)
5616 def do_set_is_optimizing(self, arg0):
5617 """do_set_is_optimizing(OptimizerState self, bool arg0)"""
5618 return _IMP_kernel.OptimizerState_do_set_is_optimizing(self, arg0)
5621 def do_get_inputs(self):
5622 """do_get_inputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
5623 return _IMP_kernel.OptimizerState_do_get_inputs(self)
5626 def do_get_outputs(self):
5627 """do_get_outputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
5628 return _IMP_kernel.OptimizerState_do_get_outputs(self)
5632 """__str__(OptimizerState self) -> std::string"""
5633 return _IMP_kernel.OptimizerState___str__(self)
5637 """__repr__(OptimizerState self) -> std::string"""
5638 return _IMP_kernel.OptimizerState___repr__(self)
5643 return _object_cast_to_OptimizerState(o)
5646 def get_type_name(self):
5647 return self.__class__.__name__
5648 def do_show(self, out):
5650 def get_version_info(self):
5652 return VersionInfo(self.__module__,
5653 __import__(self.__module__).get_module_version())
5656 __import__(self.__module__).get_module_version())
5659 return _object_cast_to_OptimizerState(o)
5661 def __disown__(self):
5663 _IMP_kernel.disown_OptimizerState(self)
5664 return weakref_proxy(self)
5666 def do_destroy(self):
5667 """do_destroy(OptimizerState self)"""
5668 return _IMP_kernel.OptimizerState_do_destroy(self)
5671 def handle_set_has_required_score_states(self, arg0):
5672 """handle_set_has_required_score_states(OptimizerState self, bool arg0)"""
5673 return _IMP_kernel.OptimizerState_handle_set_has_required_score_states(self, arg0)
5676 def do_get_interactions(self):
5677 """do_get_interactions(OptimizerState self) -> IMP::ModelObjectsTemps"""
5678 return _IMP_kernel.OptimizerState_do_get_interactions(self)
5680 OptimizerState_swigregister = _IMP_kernel.OptimizerState_swigregister
5681 OptimizerState_swigregister(OptimizerState)
5683 class Refiner(_ParticleInputs, Object):
5684 """Proxy of C++ IMP::Refiner class."""
5686 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5688 def __init__(self, *args):
5690 __init__(IMP::Refiner self, std::string name, bool is_by_ref=False) -> Refiner
5691 __init__(IMP::Refiner self, std::string name) -> Refiner
5692 __init__(IMP::Refiner self) -> Refiner
5694 if self.__class__ == Refiner:
5698 this = _IMP_kernel.new_Refiner(_self, *args)
5700 self.this.append(this)
5701 except __builtin__.Exception:
5704 if self.__class__ != Refiner:
5705 _director_objects.register(self)
5710 def get_can_refine(self, arg0):
5711 """get_can_refine(Refiner self, Particle arg0) -> bool"""
5712 return _IMP_kernel.Refiner_get_can_refine(self, arg0)
5715 def get_refined_indexes(self, m, pi):
5716 """get_refined_indexes(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes"""
5717 return _IMP_kernel.Refiner_get_refined_indexes(self, m, pi)
5720 def get_refined_indexes_by_ref(self, m, pi):
5721 """get_refined_indexes_by_ref(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes const &"""
5722 return _IMP_kernel.Refiner_get_refined_indexes_by_ref(self, m, pi)
5725 def get_is_by_ref_supported(self):
5726 """get_is_by_ref_supported(Refiner self) -> bool"""
5727 return _IMP_kernel.Refiner_get_is_by_ref_supported(self)
5730 def get_refined(self, *args):
5732 get_refined(Refiner self, Particle a) -> IMP::ParticlesTemp const
5733 get_refined(Refiner self, Particle a, unsigned int i) -> Particle
5735 return _IMP_kernel.Refiner_get_refined(self, *args)
5738 def get_number_of_refined(self, a):
5739 """get_number_of_refined(Refiner self, Particle a) -> unsigned int"""
5740 return _IMP_kernel.Refiner_get_number_of_refined(self, a)
5744 """__str__(Refiner self) -> std::string"""
5745 return _IMP_kernel.Refiner___str__(self)
5749 """__repr__(Refiner self) -> std::string"""
5750 return _IMP_kernel.Refiner___repr__(self)
5755 return _object_cast_to_Refiner(o)
5758 def get_type_name(self):
5759 return self.__class__.__name__
5760 def do_show(self, out):
5762 def get_version_info(self):
5764 return VersionInfo(self.__module__,
5765 __import__(self.__module__).get_module_version())
5768 __import__(self.__module__).get_module_version())
5771 return _object_cast_to_Refiner(o)
5773 __swig_destroy__ = _IMP_kernel.delete_Refiner
5774 __del__ =
lambda self:
None
5775 def __disown__(self):
5777 _IMP_kernel.disown_Refiner(self)
5778 return weakref_proxy(self)
5780 def do_get_inputs(self, m, pis):
5781 """do_get_inputs(Refiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5782 return _IMP_kernel.Refiner_do_get_inputs(self, m, pis)
5785 def do_destroy(self):
5786 """do_destroy(Refiner self)"""
5787 return _IMP_kernel.Refiner_do_destroy(self)
5789 Refiner_swigregister = _IMP_kernel.Refiner_swigregister
5790 Refiner_swigregister(Refiner)
5792 class Optimizer(ModelObject):
5793 """Proxy of C++ IMP::Optimizer class."""
5795 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5797 def set_is_optimizing_states(self, tf):
5798 """set_is_optimizing_states(Optimizer self, bool tf)"""
5799 return _IMP_kernel.Optimizer_set_is_optimizing_states(self, tf)
5802 def get_optimizer_state_inputs(self):
5803 """get_optimizer_state_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5804 return _IMP_kernel.Optimizer_get_optimizer_state_inputs(self)
5807 def do_get_inputs(self):
5808 """do_get_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5809 return _IMP_kernel.Optimizer_do_get_inputs(self)
5812 def do_get_outputs(self):
5813 """do_get_outputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5814 return _IMP_kernel.Optimizer_do_get_outputs(self)
5817 def __init__(self, *args):
5819 __init__(IMP::Optimizer self, Model m, std::string name) -> Optimizer
5820 __init__(IMP::Optimizer self, Model m) -> Optimizer
5822 if self.__class__ == Optimizer:
5826 this = _IMP_kernel.new_Optimizer(_self, *args)
5828 self.this.append(this)
5829 except __builtin__.Exception:
5832 if self.__class__ != Optimizer:
5833 _director_objects.register(self)
5838 def optimize(self, max_steps):
5839 """optimize(Optimizer self, unsigned int max_steps) -> double"""
5840 return _IMP_kernel.Optimizer_optimize(self, max_steps)
5843 def set_stop_on_good_score(self, tf):
5844 """set_stop_on_good_score(Optimizer self, bool tf)"""
5845 return _IMP_kernel.Optimizer_set_stop_on_good_score(self, tf)
5848 def get_stop_on_good_score(self):
5849 """get_stop_on_good_score(Optimizer self) -> bool"""
5850 return _IMP_kernel.Optimizer_get_stop_on_good_score(self)
5853 def get_last_score(self):
5854 """get_last_score(Optimizer self) -> double"""
5855 return _IMP_kernel.Optimizer_get_last_score(self)
5858 def get_scoring_function(self):
5859 """get_scoring_function(Optimizer self) -> ScoringFunction"""
5860 return _IMP_kernel.Optimizer_get_scoring_function(self)
5863 def remove_optimizer_state(self, d):
5864 """remove_optimizer_state(Optimizer self, OptimizerState d)"""
5865 return _IMP_kernel.Optimizer_remove_optimizer_state(self, d)
5868 def remove_optimizer_states(self, d):
5869 """remove_optimizer_states(Optimizer self, IMP::OptimizerStates const & d)"""
5870 return _IMP_kernel.Optimizer_remove_optimizer_states(self, d)
5873 def set_optimizer_states(self, ps):
5874 """set_optimizer_states(Optimizer self, IMP::OptimizerStates const & ps)"""
5875 return _IMP_kernel.Optimizer_set_optimizer_states(self, ps)
5878 def set_optimizer_states_order(self, objs):
5879 """set_optimizer_states_order(Optimizer self, IMP::OptimizerStates const & objs)"""
5880 return _IMP_kernel.Optimizer_set_optimizer_states_order(self, objs)
5883 def add_optimizer_state(self, obj):
5884 """add_optimizer_state(Optimizer self, OptimizerState obj) -> unsigned int"""
5885 return _IMP_kernel.Optimizer_add_optimizer_state(self, obj)
5888 def add_optimizer_states(self, objs):
5889 """add_optimizer_states(Optimizer self, IMP::OptimizerStates const & objs)"""
5890 return _IMP_kernel.Optimizer_add_optimizer_states(self, objs)
5893 def clear_optimizer_states(self):
5894 """clear_optimizer_states(Optimizer self)"""
5895 return _IMP_kernel.Optimizer_clear_optimizer_states(self)
5898 def get_number_of_optimizer_states(self):
5899 """get_number_of_optimizer_states(Optimizer self) -> unsigned int"""
5900 return _IMP_kernel.Optimizer_get_number_of_optimizer_states(self)
5903 def get_has_optimizer_states(self):
5904 """get_has_optimizer_states(Optimizer self) -> bool"""
5905 return _IMP_kernel.Optimizer_get_has_optimizer_states(self)
5908 def get_optimizer_state(self, i):
5909 """get_optimizer_state(Optimizer self, unsigned int i) -> OptimizerState"""
5910 return _IMP_kernel.Optimizer_get_optimizer_state(self, i)
5913 def get_optimizer_states(self):
5914 """get_optimizer_states(Optimizer self) -> IMP::OptimizerStates"""
5915 return _IMP_kernel.Optimizer_get_optimizer_states(self)
5918 def reserve_optimizer_states(self, sz):
5919 """reserve_optimizer_states(Optimizer self, unsigned int sz)"""
5920 return _IMP_kernel.Optimizer_reserve_optimizer_states(self, sz)
5923 def set_scoring_function(self, sf):
5924 """set_scoring_function(Optimizer self, _ScoringFunctionAdaptor sf)"""
5925 return _IMP_kernel.Optimizer_set_scoring_function(self, sf)
5927 __swig_destroy__ = _IMP_kernel.delete_Optimizer
5929 """__del__(IMP::Optimizer self)"""
5931 _director_objects.cleanup()
5937 def do_optimize(self, ns):
5938 """do_optimize(Optimizer self, unsigned int ns) -> double"""
5939 return _IMP_kernel.Optimizer_do_optimize(self, ns)
5942 def update_states(self):
5943 """update_states(Optimizer self)"""
5944 return _IMP_kernel.Optimizer_update_states(self)
5948 """__str__(Optimizer self) -> std::string"""
5949 return _IMP_kernel.Optimizer___str__(self)
5953 """__repr__(Optimizer self) -> std::string"""
5954 return _IMP_kernel.Optimizer___repr__(self)
5959 return _object_cast_to_Optimizer(o)
5962 def get_type_name(self):
5963 return self.__class__.__name__
5964 def do_show(self, out):
5966 def get_version_info(self):
5968 return VersionInfo(self.__module__,
5969 __import__(self.__module__).get_module_version())
5972 __import__(self.__module__).get_module_version())
5975 return _object_cast_to_Optimizer(o)
5977 def __disown__(self):
5979 _IMP_kernel.disown_Optimizer(self)
5980 return weakref_proxy(self)
5982 def do_destroy(self):
5983 """do_destroy(Optimizer self)"""
5984 return _IMP_kernel.Optimizer_do_destroy(self)
5987 def handle_set_has_required_score_states(self, arg0):
5988 """handle_set_has_required_score_states(Optimizer self, bool arg0)"""
5989 return _IMP_kernel.Optimizer_handle_set_has_required_score_states(self, arg0)
5992 def do_get_interactions(self):
5993 """do_get_interactions(Optimizer self) -> IMP::ModelObjectsTemps"""
5994 return _IMP_kernel.Optimizer_do_get_interactions(self)
5996 Optimizer_swigregister = _IMP_kernel.Optimizer_swigregister
5997 Optimizer_swigregister(Optimizer)
5999 class AttributeOptimizer(Optimizer):
6000 """Proxy of C++ IMP::AttributeOptimizer class."""
6002 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6004 def __init__(self, *args):
6006 __init__(IMP::AttributeOptimizer self, Model m, std::string name) -> AttributeOptimizer
6007 __init__(IMP::AttributeOptimizer self, Model m) -> AttributeOptimizer
6009 if self.__class__ == AttributeOptimizer:
6013 this = _IMP_kernel.new_AttributeOptimizer(_self, *args)
6015 self.this.append(this)
6016 except __builtin__.Exception:
6019 if self.__class__ != AttributeOptimizer:
6020 _director_objects.register(self)
6025 def get_optimized_attributes(self):
6026 """get_optimized_attributes(AttributeOptimizer self) -> IMP::FloatIndexes"""
6027 return _IMP_kernel.AttributeOptimizer_get_optimized_attributes(self)
6030 def set_value(self, fi, v):
6031 """set_value(AttributeOptimizer self, FloatIndex fi, double v)"""
6032 return _IMP_kernel.AttributeOptimizer_set_value(self, fi, v)
6035 def get_value(self, fi):
6036 """get_value(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
6037 return _IMP_kernel.AttributeOptimizer_get_value(self, fi)
6040 def get_derivative(self, fi):
6041 """get_derivative(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
6042 return _IMP_kernel.AttributeOptimizer_get_derivative(self, fi)
6045 def get_width(self, k):
6046 """get_width(AttributeOptimizer self, FloatKey k) -> double"""
6047 return _IMP_kernel.AttributeOptimizer_get_width(self, k)
6050 def set_scaled_value(self, fi, v):
6051 """set_scaled_value(AttributeOptimizer self, FloatIndex fi, IMP::Float v)"""
6052 return _IMP_kernel.AttributeOptimizer_set_scaled_value(self, fi, v)
6055 def get_scaled_value(self, fi):
6056 """get_scaled_value(AttributeOptimizer self, FloatIndex fi) -> double"""
6057 return _IMP_kernel.AttributeOptimizer_get_scaled_value(self, fi)
6060 def get_scaled_derivative(self, fi):
6061 """get_scaled_derivative(AttributeOptimizer self, FloatIndex fi) -> double"""
6062 return _IMP_kernel.AttributeOptimizer_get_scaled_derivative(self, fi)
6065 def clear_range_cache(self):
6066 """clear_range_cache(AttributeOptimizer self)"""
6067 return _IMP_kernel.AttributeOptimizer_clear_range_cache(self)
6071 """__str__(AttributeOptimizer self) -> std::string"""
6072 return _IMP_kernel.AttributeOptimizer___str__(self)
6076 """__repr__(AttributeOptimizer self) -> std::string"""
6077 return _IMP_kernel.AttributeOptimizer___repr__(self)
6082 return _object_cast_to_AttributeOptimizer(o)
6085 def get_type_name(self):
6086 return self.__class__.__name__
6087 def do_show(self, out):
6089 def get_version_info(self):
6091 return VersionInfo(self.__module__,
6092 __import__(self.__module__).get_module_version())
6095 __import__(self.__module__).get_module_version())
6098 return _object_cast_to_AttributeOptimizer(o)
6100 __swig_destroy__ = _IMP_kernel.delete_AttributeOptimizer
6101 __del__ =
lambda self:
None
6102 def __disown__(self):
6104 _IMP_kernel.disown_AttributeOptimizer(self)
6105 return weakref_proxy(self)
6107 def do_destroy(self):
6108 """do_destroy(AttributeOptimizer self)"""
6109 return _IMP_kernel.AttributeOptimizer_do_destroy(self)
6112 def handle_set_has_required_score_states(self, arg0):
6113 """handle_set_has_required_score_states(AttributeOptimizer self, bool arg0)"""
6114 return _IMP_kernel.AttributeOptimizer_handle_set_has_required_score_states(self, arg0)
6117 def do_get_inputs(self):
6118 """do_get_inputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
6119 return _IMP_kernel.AttributeOptimizer_do_get_inputs(self)
6122 def do_get_outputs(self):
6123 """do_get_outputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
6124 return _IMP_kernel.AttributeOptimizer_do_get_outputs(self)
6127 def do_get_interactions(self):
6128 """do_get_interactions(AttributeOptimizer self) -> IMP::ModelObjectsTemps"""
6129 return _IMP_kernel.AttributeOptimizer_do_get_interactions(self)
6132 def do_optimize(self, ns):
6133 """do_optimize(AttributeOptimizer self, unsigned int ns) -> double"""
6134 return _IMP_kernel.AttributeOptimizer_do_optimize(self, ns)
6136 AttributeOptimizer_swigregister = _IMP_kernel.AttributeOptimizer_swigregister
6137 AttributeOptimizer_swigregister(AttributeOptimizer)
6139 class ConfigurationSet(Object):
6140 """Proxy of C++ IMP::ConfigurationSet class."""
6142 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6144 def __init__(self, *args):
6146 __init__(IMP::ConfigurationSet self, Model m, std::string name) -> ConfigurationSet
6147 __init__(IMP::ConfigurationSet self, Model m) -> ConfigurationSet
6149 this = _IMP_kernel.new_ConfigurationSet(*args)
6151 self.this.append(this)
6152 except __builtin__.Exception:
6155 def save_configuration(self):
6156 """save_configuration(ConfigurationSet self)"""
6157 return _IMP_kernel.ConfigurationSet_save_configuration(self)
6160 def get_number_of_configurations(self):
6161 """get_number_of_configurations(ConfigurationSet self) -> unsigned int"""
6162 return _IMP_kernel.ConfigurationSet_get_number_of_configurations(self)
6165 def load_configuration(self, i):
6166 """load_configuration(ConfigurationSet self, int i)"""
6167 return _IMP_kernel.ConfigurationSet_load_configuration(self, i)
6170 def remove_configuration(self, i):
6171 """remove_configuration(ConfigurationSet self, unsigned int i)"""
6172 return _IMP_kernel.ConfigurationSet_remove_configuration(self, i)
6175 def get_model(self):
6176 """get_model(ConfigurationSet self) -> Model"""
6177 return _IMP_kernel.ConfigurationSet_get_model(self)
6180 def get_version_info(self):
6181 """get_version_info(ConfigurationSet self) -> VersionInfo"""
6182 return _IMP_kernel.ConfigurationSet_get_version_info(self)
6186 """__str__(ConfigurationSet self) -> std::string"""
6187 return _IMP_kernel.ConfigurationSet___str__(self)
6191 """__repr__(ConfigurationSet self) -> std::string"""
6192 return _IMP_kernel.ConfigurationSet___repr__(self)
6197 return _object_cast_to_ConfigurationSet(o)
6199 ConfigurationSet_swigregister = _IMP_kernel.ConfigurationSet_swigregister
6200 ConfigurationSet_swigregister(ConfigurationSet)
6202 class SaveToConfigurationSetOptimizerState(OptimizerState):
6203 """Proxy of C++ IMP::SaveToConfigurationSetOptimizerState class."""
6205 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6207 def __init__(self, cs):
6208 """__init__(IMP::SaveToConfigurationSetOptimizerState self, ConfigurationSet cs) -> SaveToConfigurationSetOptimizerState"""
6209 this = _IMP_kernel.new_SaveToConfigurationSetOptimizerState(cs)
6211 self.this.append(this)
6212 except __builtin__.Exception:
6215 def get_version_info(self):
6216 """get_version_info(SaveToConfigurationSetOptimizerState self) -> VersionInfo"""
6217 return _IMP_kernel.SaveToConfigurationSetOptimizerState_get_version_info(self)
6221 """__str__(SaveToConfigurationSetOptimizerState self) -> std::string"""
6222 return _IMP_kernel.SaveToConfigurationSetOptimizerState___str__(self)
6226 """__repr__(SaveToConfigurationSetOptimizerState self) -> std::string"""
6227 return _IMP_kernel.SaveToConfigurationSetOptimizerState___repr__(self)
6232 return _object_cast_to_SaveToConfigurationSetOptimizerState(o)
6234 SaveToConfigurationSetOptimizerState_swigregister = _IMP_kernel.SaveToConfigurationSetOptimizerState_swigregister
6235 SaveToConfigurationSetOptimizerState_swigregister(SaveToConfigurationSetOptimizerState)
6237 class Configuration(Object):
6238 """Proxy of C++ IMP::Configuration class."""
6240 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6242 def __init__(self, *args):
6244 __init__(IMP::Configuration self, Model m, std::string name) -> Configuration
6245 __init__(IMP::Configuration self, Model m) -> Configuration
6246 __init__(IMP::Configuration self, Model m, Configuration base, std::string name) -> Configuration
6247 __init__(IMP::Configuration self, Model m, Configuration base) -> Configuration
6249 this = _IMP_kernel.new_Configuration(*args)
6251 self.this.append(this)
6252 except __builtin__.Exception:
6255 def load_configuration(self):
6256 """load_configuration(Configuration self)"""
6257 return _IMP_kernel.Configuration_load_configuration(self)
6260 def swap_configuration(self):
6261 """swap_configuration(Configuration self)"""
6262 return _IMP_kernel.Configuration_swap_configuration(self)
6265 def get_version_info(self):
6266 """get_version_info(Configuration self) -> VersionInfo"""
6267 return _IMP_kernel.Configuration_get_version_info(self)
6271 """__str__(Configuration self) -> std::string"""
6272 return _IMP_kernel.Configuration___str__(self)
6276 """__repr__(Configuration self) -> std::string"""
6277 return _IMP_kernel.Configuration___repr__(self)
6282 return _object_cast_to_Configuration(o)
6284 Configuration_swigregister = _IMP_kernel.Configuration_swigregister
6285 Configuration_swigregister(Configuration)
6287 class Sampler(Object):
6288 """Proxy of C++ IMP::Sampler class."""
6290 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6292 def __init__(self, *args):
6294 __init__(IMP::Sampler self, Model m, std::string name) -> Sampler
6295 __init__(IMP::Sampler self, Model m) -> Sampler
6297 if self.__class__ == Sampler:
6301 this = _IMP_kernel.new_Sampler(_self, *args)
6303 self.this.append(this)
6304 except __builtin__.Exception:
6307 if self.__class__ != Sampler:
6308 _director_objects.register(self)
6313 def create_sample(self):
6314 """create_sample(Sampler self) -> ConfigurationSet"""
6315 return _IMP_kernel.Sampler_create_sample(self)
6318 def get_scoring_function(self):
6319 """get_scoring_function(Sampler self) -> ScoringFunction"""
6320 return _IMP_kernel.Sampler_get_scoring_function(self)
6323 def set_scoring_function(self, sf):
6324 """set_scoring_function(Sampler self, _ScoringFunctionAdaptor sf)"""
6325 return _IMP_kernel.Sampler_set_scoring_function(self, sf)
6328 def get_model(self):
6329 """get_model(Sampler self) -> Model"""
6330 return _IMP_kernel.Sampler_get_model(self)
6333 def do_sample(self):
6334 """do_sample(Sampler self) -> ConfigurationSet"""
6335 return _IMP_kernel.Sampler_do_sample(self)
6337 __swig_destroy__ = _IMP_kernel.delete_Sampler
6338 __del__ =
lambda self:
None
6341 """__str__(Sampler self) -> std::string"""
6342 return _IMP_kernel.Sampler___str__(self)
6346 """__repr__(Sampler self) -> std::string"""
6347 return _IMP_kernel.Sampler___repr__(self)
6352 return _object_cast_to_Sampler(o)
6355 def get_type_name(self):
6356 return self.__class__.__name__
6357 def do_show(self, out):
6359 def get_version_info(self):
6361 return VersionInfo(self.__module__,
6362 __import__(self.__module__).get_module_version())
6365 __import__(self.__module__).get_module_version())
6368 return _object_cast_to_Sampler(o)
6370 def __disown__(self):
6372 _IMP_kernel.disown_Sampler(self)
6373 return weakref_proxy(self)
6375 def do_destroy(self):
6376 """do_destroy(Sampler self)"""
6377 return _IMP_kernel.Sampler_do_destroy(self)
6379 Sampler_swigregister = _IMP_kernel.Sampler_swigregister
6380 Sampler_swigregister(Sampler)
6382 class PairModifier(_ParticleInputs, _ParticleOutputs, Object):
6383 """Proxy of C++ IMP::PairModifier class."""
6385 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6387 def __init__(self, *args):
6389 __init__(IMP::PairModifier self, std::string name) -> PairModifier
6390 __init__(IMP::PairModifier self) -> PairModifier
6392 if self.__class__ == PairModifier:
6396 this = _IMP_kernel.new_PairModifier(_self, *args)
6398 self.this.append(this)
6399 except __builtin__.Exception:
6402 if self.__class__ != PairModifier:
6403 _director_objects.register(self)
6408 def apply_index(self, m, v):
6409 """apply_index(PairModifier self, Model m, IMP::ParticleIndexPair const & v)"""
6410 return _IMP_kernel.PairModifier_apply_index(self, m, v)
6413 def apply_indexes(self, m, o, lower_bound, upper_bound):
6414 """apply_indexes(PairModifier self, Model m, IMP::ParticleIndexPairs const & o, unsigned int lower_bound, unsigned int upper_bound)"""
6415 return _IMP_kernel.PairModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
6419 """__str__(PairModifier self) -> std::string"""
6420 return _IMP_kernel.PairModifier___str__(self)
6424 """__repr__(PairModifier self) -> std::string"""
6425 return _IMP_kernel.PairModifier___repr__(self)
6430 return _object_cast_to_PairModifier(o)
6433 def get_type_name(self):
6434 return self.__class__.__name__
6435 def do_show(self, out):
6437 def get_version_info(self):
6439 return VersionInfo(self.__module__,
6440 __import__(self.__module__).get_module_version())
6443 __import__(self.__module__).get_module_version())
6446 return _object_cast_to_PairModifier(o)
6448 __swig_destroy__ = _IMP_kernel.delete_PairModifier
6449 __del__ =
lambda self:
None
6450 def __disown__(self):
6452 _IMP_kernel.disown_PairModifier(self)
6453 return weakref_proxy(self)
6455 def do_get_inputs(self, m, pis):
6456 """do_get_inputs(PairModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6457 return _IMP_kernel.PairModifier_do_get_inputs(self, m, pis)
6460 def do_get_outputs(self, m, pis):
6461 """do_get_outputs(PairModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6462 return _IMP_kernel.PairModifier_do_get_outputs(self, m, pis)
6465 def do_destroy(self):
6466 """do_destroy(PairModifier self)"""
6467 return _IMP_kernel.PairModifier_do_destroy(self)
6469 PairModifier_swigregister = _IMP_kernel.PairModifier_swigregister
6470 PairModifier_swigregister(PairModifier)
6472 class PairScore(_ParticleInputs, Object):
6473 """Proxy of C++ IMP::PairScore class."""
6475 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6477 def __init__(self, *args):
6479 __init__(IMP::PairScore self, std::string name) -> PairScore
6480 __init__(IMP::PairScore self) -> PairScore
6482 if self.__class__ == PairScore:
6486 this = _IMP_kernel.new_PairScore(_self, *args)
6488 self.this.append(this)
6489 except __builtin__.Exception:
6492 if self.__class__ != PairScore:
6493 _director_objects.register(self)
6498 def evaluate_index(self, m, vt, da):
6499 """evaluate_index(PairScore self, Model m, IMP::ParticleIndexPair const & vt, DerivativeAccumulator da) -> double"""
6500 return _IMP_kernel.PairScore_evaluate_index(self, m, vt, da)
6503 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
6504 """evaluate_indexes(PairScore self, Model m, IMP::ParticleIndexPairs const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
6505 return _IMP_kernel.PairScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
6508 def evaluate_if_good_index(self, m, vt, da, max):
6509 """evaluate_if_good_index(PairScore self, Model m, IMP::ParticleIndexPair const & vt, DerivativeAccumulator da, double max) -> double"""
6510 return _IMP_kernel.PairScore_evaluate_if_good_index(self, m, vt, da, max)
6513 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
6514 """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"""
6515 return _IMP_kernel.PairScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
6518 def create_current_decomposition(self, m, vt):
6519 """create_current_decomposition(PairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
6520 return _IMP_kernel.PairScore_create_current_decomposition(self, m, vt)
6523 def do_create_current_decomposition(self, m, vt):
6524 """do_create_current_decomposition(PairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
6525 return _IMP_kernel.PairScore_do_create_current_decomposition(self, m, vt)
6527 __swig_destroy__ = _IMP_kernel.delete_PairScore
6528 __del__ =
lambda self:
None
6531 """__str__(PairScore self) -> std::string"""
6532 return _IMP_kernel.PairScore___str__(self)
6536 """__repr__(PairScore self) -> std::string"""
6537 return _IMP_kernel.PairScore___repr__(self)
6542 return _object_cast_to_PairScore(o)
6545 def get_type_name(self):
6546 return self.__class__.__name__
6547 def do_show(self, out):
6549 def get_version_info(self):
6551 return VersionInfo(self.__module__,
6552 __import__(self.__module__).get_module_version())
6555 __import__(self.__module__).get_module_version())
6558 return _object_cast_to_PairScore(o)
6560 def __disown__(self):
6562 _IMP_kernel.disown_PairScore(self)
6563 return weakref_proxy(self)
6565 def do_get_inputs(self, m, pis):
6566 """do_get_inputs(PairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6567 return _IMP_kernel.PairScore_do_get_inputs(self, m, pis)
6570 def do_destroy(self):
6571 """do_destroy(PairScore self)"""
6572 return _IMP_kernel.PairScore_do_destroy(self)
6574 PairScore_swigregister = _IMP_kernel.PairScore_swigregister
6575 PairScore_swigregister(PairScore)
6577 class PairPredicate(_ParticleInputs, Object):
6578 """Proxy of C++ IMP::PairPredicate class."""
6580 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6582 def __init__(self, *args):
6584 __init__(IMP::PairPredicate self, std::string name) -> PairPredicate
6585 __init__(IMP::PairPredicate self) -> PairPredicate
6587 if self.__class__ == PairPredicate:
6591 this = _IMP_kernel.new_PairPredicate(_self, *args)
6593 self.this.append(this)
6594 except __builtin__.Exception:
6597 if self.__class__ != PairPredicate:
6598 _director_objects.register(self)
6603 def get_value(self, *args):
6605 get_value(PairPredicate self, IMP::ParticlePair const & vt) -> int
6606 get_value(PairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
6608 return _IMP_kernel.PairPredicate_get_value(self, *args)
6611 def setup_for_get_value_index_in_batch(self, arg0):
6612 """setup_for_get_value_index_in_batch(PairPredicate self, Model arg0)"""
6613 return _IMP_kernel.PairPredicate_setup_for_get_value_index_in_batch(self, arg0)
6616 def get_value_index_in_batch(self, m, vt):
6617 """get_value_index_in_batch(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int"""
6618 return _IMP_kernel.PairPredicate_get_value_index_in_batch(self, m, vt)
6621 def __call__(self, m, vt):
6622 """__call__(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int"""
6623 return _IMP_kernel.PairPredicate___call__(self, m, vt)
6626 def get_value_index(self, *args):
6628 get_value_index(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int
6629 get_value_index(PairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
6631 return _IMP_kernel.PairPredicate_get_value_index(self, *args)
6633 __swig_destroy__ = _IMP_kernel.delete_PairPredicate
6634 __del__ =
lambda self:
None
6637 """__str__(PairPredicate self) -> std::string"""
6638 return _IMP_kernel.PairPredicate___str__(self)
6642 """__repr__(PairPredicate self) -> std::string"""
6643 return _IMP_kernel.PairPredicate___repr__(self)
6648 return _object_cast_to_PairPredicate(o)
6651 def get_type_name(self):
6652 return self.__class__.__name__
6653 def do_show(self, out):
6655 def get_version_info(self):
6657 return VersionInfo(self.__module__,
6658 __import__(self.__module__).get_module_version())
6661 __import__(self.__module__).get_module_version())
6664 return _object_cast_to_PairPredicate(o)
6666 def __disown__(self):
6668 _IMP_kernel.disown_PairPredicate(self)
6669 return weakref_proxy(self)
6671 def do_get_inputs(self, m, pis):
6672 """do_get_inputs(PairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6673 return _IMP_kernel.PairPredicate_do_get_inputs(self, m, pis)
6676 def do_destroy(self):
6677 """do_destroy(PairPredicate self)"""
6678 return _IMP_kernel.PairPredicate_do_destroy(self)
6680 PairPredicate_swigregister = _IMP_kernel.PairPredicate_swigregister
6681 PairPredicate_swigregister(PairPredicate)
6683 class PairContainer(Container):
6684 """Proxy of C++ IMP::PairContainer class."""
6686 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6688 def apply_generic(self, m):
6689 """apply_generic(PairContainer self, PairModifier m)"""
6690 return _IMP_kernel.PairContainer_apply_generic(self, m)
6693 def apply(self, sm):
6694 """apply(PairContainer self, PairModifier sm)"""
6695 return _IMP_kernel.PairContainer_apply(self, sm)
6698 def get_range_indexes(self):
6699 """get_range_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
6700 return _IMP_kernel.PairContainer_get_range_indexes(self)
6703 def get_contents(self):
6704 """get_contents(PairContainer self) -> IMP::ParticleIndexPairs const &"""
6705 return _IMP_kernel.PairContainer_get_contents(self)
6709 """get_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
6710 return _IMP_kernel.PairContainer_get_indexes(self)
6713 def get(self, *args):
6715 get(PairContainer self) -> IMP::ParticlePairsTemp
6716 get(PairContainer self, unsigned int i) -> IMP::ParticlePair
6718 return _IMP_kernel.PairContainer_get(self, *args)
6721 def get_number(self):
6722 """get_number(PairContainer self) -> unsigned int"""
6723 return _IMP_kernel.PairContainer_get_number(self)
6726 def get_particle_pairs(self):
6727 """get_particle_pairs(PairContainer self) -> IMP::ParticlePairsTemp"""
6728 return _IMP_kernel.PairContainer_get_particle_pairs(self)
6731 def get_particle_pair(self, i):
6732 """get_particle_pair(PairContainer self, unsigned int i) -> IMP::ParticlePair"""
6733 return _IMP_kernel.PairContainer_get_particle_pair(self, i)
6736 def __init__(self, *args):
6738 __init__(IMP::PairContainer self, Model m, std::string name) -> PairContainer
6739 __init__(IMP::PairContainer self, Model m) -> PairContainer
6741 if self.__class__ == PairContainer:
6745 this = _IMP_kernel.new_PairContainer(_self, *args)
6747 self.this.append(this)
6748 except __builtin__.Exception:
6751 if self.__class__ != PairContainer:
6752 _director_objects.register(self)
6757 def do_apply(self, sm):
6758 """do_apply(PairContainer self, PairModifier sm)"""
6759 return _IMP_kernel.PairContainer_do_apply(self, sm)
6762 def do_get_provides_access(self):
6763 """do_get_provides_access(PairContainer self) -> bool"""
6764 return _IMP_kernel.PairContainer_do_get_provides_access(self)
6766 __swig_destroy__ = _IMP_kernel.delete_PairContainer
6767 __del__ =
lambda self:
None
6770 """__str__(PairContainer self) -> std::string"""
6771 return _IMP_kernel.PairContainer___str__(self)
6775 """__repr__(PairContainer self) -> std::string"""
6776 return _IMP_kernel.PairContainer___repr__(self)
6781 return _object_cast_to_PairContainer(o)
6784 def get_type_name(self):
6785 return self.__class__.__name__
6786 def do_show(self, out):
6788 def get_version_info(self):
6790 return VersionInfo(self.__module__,
6791 __import__(self.__module__).get_module_version())
6794 __import__(self.__module__).get_module_version())
6797 return _object_cast_to_PairContainer(o)
6799 def __disown__(self):
6801 _IMP_kernel.disown_PairContainer(self)
6802 return weakref_proxy(self)
6804 def do_destroy(self):
6805 """do_destroy(PairContainer self)"""
6806 return _IMP_kernel.PairContainer_do_destroy(self)
6809 def handle_set_has_required_score_states(self, arg0):
6810 """handle_set_has_required_score_states(PairContainer self, bool arg0)"""
6811 return _IMP_kernel.PairContainer_handle_set_has_required_score_states(self, arg0)
6814 def do_get_inputs(self):
6815 """do_get_inputs(PairContainer self) -> IMP::ModelObjectsTemp"""
6816 return _IMP_kernel.PairContainer_do_get_inputs(self)
6819 def do_get_interactions(self):
6820 """do_get_interactions(PairContainer self) -> IMP::ModelObjectsTemps"""
6821 return _IMP_kernel.PairContainer_do_get_interactions(self)
6824 def do_get_contents_hash(self):
6825 """do_get_contents_hash(PairContainer self) -> std::size_t"""
6826 return _IMP_kernel.PairContainer_do_get_contents_hash(self)
6828 PairContainer_swigregister = _IMP_kernel.PairContainer_swigregister
6829 PairContainer_swigregister(PairContainer)
6831 class _PairContainerAdaptor(_InputAdaptor):
6832 """Proxy of C++ IMP::PairContainerAdaptor class."""
6834 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6835 __repr__ = _swig_repr
6837 def __init__(self, *args):
6839 __init__(IMP::PairContainerAdaptor self) -> _PairContainerAdaptor
6840 __init__(IMP::PairContainerAdaptor self, PairContainer c) -> _PairContainerAdaptor
6841 __init__(IMP::PairContainerAdaptor self, IMP::ParticlePairsTemp const & t) -> _PairContainerAdaptor
6843 this = _IMP_kernel.new__PairContainerAdaptor(*args)
6845 self.this.append(this)
6846 except __builtin__.Exception:
6849 def set_name_if_default(self, name):
6850 """set_name_if_default(_PairContainerAdaptor self, std::string name)"""
6851 return _IMP_kernel._PairContainerAdaptor_set_name_if_default(self, name)
6853 __swig_destroy__ = _IMP_kernel.delete__PairContainerAdaptor
6854 __del__ =
lambda self:
None
6855 _PairContainerAdaptor_swigregister = _IMP_kernel._PairContainerAdaptor_swigregister
6856 _PairContainerAdaptor_swigregister(_PairContainerAdaptor)
6858 class QuadModifier(_ParticleInputs, _ParticleOutputs, Object):
6859 """Proxy of C++ IMP::QuadModifier class."""
6861 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6863 def __init__(self, *args):
6865 __init__(IMP::QuadModifier self, std::string name) -> QuadModifier
6866 __init__(IMP::QuadModifier self) -> QuadModifier
6868 if self.__class__ == QuadModifier:
6872 this = _IMP_kernel.new_QuadModifier(_self, *args)
6874 self.this.append(this)
6875 except __builtin__.Exception:
6878 if self.__class__ != QuadModifier:
6879 _director_objects.register(self)
6884 def apply_index(self, m, v):
6885 """apply_index(QuadModifier self, Model m, IMP::ParticleIndexQuad const & v)"""
6886 return _IMP_kernel.QuadModifier_apply_index(self, m, v)
6889 def apply_indexes(self, m, o, lower_bound, upper_bound):
6890 """apply_indexes(QuadModifier self, Model m, IMP::ParticleIndexQuads const & o, unsigned int lower_bound, unsigned int upper_bound)"""
6891 return _IMP_kernel.QuadModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
6895 """__str__(QuadModifier self) -> std::string"""
6896 return _IMP_kernel.QuadModifier___str__(self)
6900 """__repr__(QuadModifier self) -> std::string"""
6901 return _IMP_kernel.QuadModifier___repr__(self)
6906 return _object_cast_to_QuadModifier(o)
6909 def get_type_name(self):
6910 return self.__class__.__name__
6911 def do_show(self, out):
6913 def get_version_info(self):
6915 return VersionInfo(self.__module__,
6916 __import__(self.__module__).get_module_version())
6919 __import__(self.__module__).get_module_version())
6922 return _object_cast_to_QuadModifier(o)
6924 __swig_destroy__ = _IMP_kernel.delete_QuadModifier
6925 __del__ =
lambda self:
None
6926 def __disown__(self):
6928 _IMP_kernel.disown_QuadModifier(self)
6929 return weakref_proxy(self)
6931 def do_get_inputs(self, m, pis):
6932 """do_get_inputs(QuadModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6933 return _IMP_kernel.QuadModifier_do_get_inputs(self, m, pis)
6936 def do_get_outputs(self, m, pis):
6937 """do_get_outputs(QuadModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6938 return _IMP_kernel.QuadModifier_do_get_outputs(self, m, pis)
6941 def do_destroy(self):
6942 """do_destroy(QuadModifier self)"""
6943 return _IMP_kernel.QuadModifier_do_destroy(self)
6945 QuadModifier_swigregister = _IMP_kernel.QuadModifier_swigregister
6946 QuadModifier_swigregister(QuadModifier)
6948 class QuadScore(_ParticleInputs, Object):
6949 """Proxy of C++ IMP::QuadScore class."""
6951 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6953 def __init__(self, *args):
6955 __init__(IMP::QuadScore self, std::string name) -> QuadScore
6956 __init__(IMP::QuadScore self) -> QuadScore
6958 if self.__class__ == QuadScore:
6962 this = _IMP_kernel.new_QuadScore(_self, *args)
6964 self.this.append(this)
6965 except __builtin__.Exception:
6968 if self.__class__ != QuadScore:
6969 _director_objects.register(self)
6974 def evaluate_index(self, m, vt, da):
6975 """evaluate_index(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt, DerivativeAccumulator da) -> double"""
6976 return _IMP_kernel.QuadScore_evaluate_index(self, m, vt, da)
6979 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
6980 """evaluate_indexes(QuadScore self, Model m, IMP::ParticleIndexQuads const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
6981 return _IMP_kernel.QuadScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
6984 def evaluate_if_good_index(self, m, vt, da, max):
6985 """evaluate_if_good_index(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt, DerivativeAccumulator da, double max) -> double"""
6986 return _IMP_kernel.QuadScore_evaluate_if_good_index(self, m, vt, da, max)
6989 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
6990 """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"""
6991 return _IMP_kernel.QuadScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
6994 def create_current_decomposition(self, m, vt):
6995 """create_current_decomposition(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
6996 return _IMP_kernel.QuadScore_create_current_decomposition(self, m, vt)
6999 def do_create_current_decomposition(self, m, vt):
7000 """do_create_current_decomposition(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
7001 return _IMP_kernel.QuadScore_do_create_current_decomposition(self, m, vt)
7003 __swig_destroy__ = _IMP_kernel.delete_QuadScore
7004 __del__ =
lambda self:
None
7007 """__str__(QuadScore self) -> std::string"""
7008 return _IMP_kernel.QuadScore___str__(self)
7012 """__repr__(QuadScore self) -> std::string"""
7013 return _IMP_kernel.QuadScore___repr__(self)
7018 return _object_cast_to_QuadScore(o)
7021 def get_type_name(self):
7022 return self.__class__.__name__
7023 def do_show(self, out):
7025 def get_version_info(self):
7027 return VersionInfo(self.__module__,
7028 __import__(self.__module__).get_module_version())
7031 __import__(self.__module__).get_module_version())
7034 return _object_cast_to_QuadScore(o)
7036 def __disown__(self):
7038 _IMP_kernel.disown_QuadScore(self)
7039 return weakref_proxy(self)
7041 def do_get_inputs(self, m, pis):
7042 """do_get_inputs(QuadScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7043 return _IMP_kernel.QuadScore_do_get_inputs(self, m, pis)
7046 def do_destroy(self):
7047 """do_destroy(QuadScore self)"""
7048 return _IMP_kernel.QuadScore_do_destroy(self)
7050 QuadScore_swigregister = _IMP_kernel.QuadScore_swigregister
7051 QuadScore_swigregister(QuadScore)
7053 class QuadPredicate(_ParticleInputs, Object):
7054 """Proxy of C++ IMP::QuadPredicate class."""
7056 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7058 def __init__(self, *args):
7060 __init__(IMP::QuadPredicate self, std::string name) -> QuadPredicate
7061 __init__(IMP::QuadPredicate self) -> QuadPredicate
7063 if self.__class__ == QuadPredicate:
7067 this = _IMP_kernel.new_QuadPredicate(_self, *args)
7069 self.this.append(this)
7070 except __builtin__.Exception:
7073 if self.__class__ != QuadPredicate:
7074 _director_objects.register(self)
7079 def get_value(self, *args):
7081 get_value(QuadPredicate self, IMP::ParticleQuad const & vt) -> int
7082 get_value(QuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
7084 return _IMP_kernel.QuadPredicate_get_value(self, *args)
7087 def setup_for_get_value_index_in_batch(self, arg0):
7088 """setup_for_get_value_index_in_batch(QuadPredicate self, Model arg0)"""
7089 return _IMP_kernel.QuadPredicate_setup_for_get_value_index_in_batch(self, arg0)
7092 def get_value_index_in_batch(self, m, vt):
7093 """get_value_index_in_batch(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int"""
7094 return _IMP_kernel.QuadPredicate_get_value_index_in_batch(self, m, vt)
7097 def __call__(self, m, vt):
7098 """__call__(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int"""
7099 return _IMP_kernel.QuadPredicate___call__(self, m, vt)
7102 def get_value_index(self, *args):
7104 get_value_index(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int
7105 get_value_index(QuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
7107 return _IMP_kernel.QuadPredicate_get_value_index(self, *args)
7109 __swig_destroy__ = _IMP_kernel.delete_QuadPredicate
7110 __del__ =
lambda self:
None
7113 """__str__(QuadPredicate self) -> std::string"""
7114 return _IMP_kernel.QuadPredicate___str__(self)
7118 """__repr__(QuadPredicate self) -> std::string"""
7119 return _IMP_kernel.QuadPredicate___repr__(self)
7124 return _object_cast_to_QuadPredicate(o)
7127 def get_type_name(self):
7128 return self.__class__.__name__
7129 def do_show(self, out):
7131 def get_version_info(self):
7133 return VersionInfo(self.__module__,
7134 __import__(self.__module__).get_module_version())
7137 __import__(self.__module__).get_module_version())
7140 return _object_cast_to_QuadPredicate(o)
7142 def __disown__(self):
7144 _IMP_kernel.disown_QuadPredicate(self)
7145 return weakref_proxy(self)
7147 def do_get_inputs(self, m, pis):
7148 """do_get_inputs(QuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7149 return _IMP_kernel.QuadPredicate_do_get_inputs(self, m, pis)
7152 def do_destroy(self):
7153 """do_destroy(QuadPredicate self)"""
7154 return _IMP_kernel.QuadPredicate_do_destroy(self)
7156 QuadPredicate_swigregister = _IMP_kernel.QuadPredicate_swigregister
7157 QuadPredicate_swigregister(QuadPredicate)
7159 class QuadContainer(Container):
7160 """Proxy of C++ IMP::QuadContainer class."""
7162 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7164 def apply_generic(self, m):
7165 """apply_generic(QuadContainer self, QuadModifier m)"""
7166 return _IMP_kernel.QuadContainer_apply_generic(self, m)
7169 def apply(self, sm):
7170 """apply(QuadContainer self, QuadModifier sm)"""
7171 return _IMP_kernel.QuadContainer_apply(self, sm)
7174 def get_range_indexes(self):
7175 """get_range_indexes(QuadContainer self) -> IMP::ParticleIndexQuads"""
7176 return _IMP_kernel.QuadContainer_get_range_indexes(self)
7179 def get_contents(self):
7180 """get_contents(QuadContainer self) -> IMP::ParticleIndexQuads const &"""
7181 return _IMP_kernel.QuadContainer_get_contents(self)
7185 """get_indexes(QuadContainer self) -> IMP::ParticleIndexQuads"""
7186 return _IMP_kernel.QuadContainer_get_indexes(self)
7189 def get(self, *args):
7191 get(QuadContainer self) -> IMP::ParticleQuadsTemp
7192 get(QuadContainer self, unsigned int i) -> IMP::ParticleQuad
7194 return _IMP_kernel.QuadContainer_get(self, *args)
7197 def get_number(self):
7198 """get_number(QuadContainer self) -> unsigned int"""
7199 return _IMP_kernel.QuadContainer_get_number(self)
7202 def get_particle_quads(self):
7203 """get_particle_quads(QuadContainer self) -> IMP::ParticleQuadsTemp"""
7204 return _IMP_kernel.QuadContainer_get_particle_quads(self)
7207 def get_particle_quad(self, i):
7208 """get_particle_quad(QuadContainer self, unsigned int i) -> IMP::ParticleQuad"""
7209 return _IMP_kernel.QuadContainer_get_particle_quad(self, i)
7212 def __init__(self, *args):
7214 __init__(IMP::QuadContainer self, Model m, std::string name) -> QuadContainer
7215 __init__(IMP::QuadContainer self, Model m) -> QuadContainer
7217 if self.__class__ == QuadContainer:
7221 this = _IMP_kernel.new_QuadContainer(_self, *args)
7223 self.this.append(this)
7224 except __builtin__.Exception:
7227 if self.__class__ != QuadContainer:
7228 _director_objects.register(self)
7233 def do_apply(self, sm):
7234 """do_apply(QuadContainer self, QuadModifier sm)"""
7235 return _IMP_kernel.QuadContainer_do_apply(self, sm)
7238 def do_get_provides_access(self):
7239 """do_get_provides_access(QuadContainer self) -> bool"""
7240 return _IMP_kernel.QuadContainer_do_get_provides_access(self)
7242 __swig_destroy__ = _IMP_kernel.delete_QuadContainer
7243 __del__ =
lambda self:
None
7246 """__str__(QuadContainer self) -> std::string"""
7247 return _IMP_kernel.QuadContainer___str__(self)
7251 """__repr__(QuadContainer self) -> std::string"""
7252 return _IMP_kernel.QuadContainer___repr__(self)
7257 return _object_cast_to_QuadContainer(o)
7260 def get_type_name(self):
7261 return self.__class__.__name__
7262 def do_show(self, out):
7264 def get_version_info(self):
7266 return VersionInfo(self.__module__,
7267 __import__(self.__module__).get_module_version())
7270 __import__(self.__module__).get_module_version())
7273 return _object_cast_to_QuadContainer(o)
7275 def __disown__(self):
7277 _IMP_kernel.disown_QuadContainer(self)
7278 return weakref_proxy(self)
7280 def do_destroy(self):
7281 """do_destroy(QuadContainer self)"""
7282 return _IMP_kernel.QuadContainer_do_destroy(self)
7285 def handle_set_has_required_score_states(self, arg0):
7286 """handle_set_has_required_score_states(QuadContainer self, bool arg0)"""
7287 return _IMP_kernel.QuadContainer_handle_set_has_required_score_states(self, arg0)
7290 def do_get_inputs(self):
7291 """do_get_inputs(QuadContainer self) -> IMP::ModelObjectsTemp"""
7292 return _IMP_kernel.QuadContainer_do_get_inputs(self)
7295 def do_get_interactions(self):
7296 """do_get_interactions(QuadContainer self) -> IMP::ModelObjectsTemps"""
7297 return _IMP_kernel.QuadContainer_do_get_interactions(self)
7300 def do_get_contents_hash(self):
7301 """do_get_contents_hash(QuadContainer self) -> std::size_t"""
7302 return _IMP_kernel.QuadContainer_do_get_contents_hash(self)
7304 QuadContainer_swigregister = _IMP_kernel.QuadContainer_swigregister
7305 QuadContainer_swigregister(QuadContainer)
7307 class _QuadContainerAdaptor(_InputAdaptor):
7308 """Proxy of C++ IMP::QuadContainerAdaptor class."""
7310 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7311 __repr__ = _swig_repr
7313 def __init__(self, *args):
7315 __init__(IMP::QuadContainerAdaptor self) -> _QuadContainerAdaptor
7316 __init__(IMP::QuadContainerAdaptor self, QuadContainer c) -> _QuadContainerAdaptor
7317 __init__(IMP::QuadContainerAdaptor self, IMP::ParticleQuadsTemp const & t) -> _QuadContainerAdaptor
7319 this = _IMP_kernel.new__QuadContainerAdaptor(*args)
7321 self.this.append(this)
7322 except __builtin__.Exception:
7325 def set_name_if_default(self, name):
7326 """set_name_if_default(_QuadContainerAdaptor self, std::string name)"""
7327 return _IMP_kernel._QuadContainerAdaptor_set_name_if_default(self, name)
7329 __swig_destroy__ = _IMP_kernel.delete__QuadContainerAdaptor
7330 __del__ =
lambda self:
None
7331 _QuadContainerAdaptor_swigregister = _IMP_kernel._QuadContainerAdaptor_swigregister
7332 _QuadContainerAdaptor_swigregister(_QuadContainerAdaptor)
7334 class SingletonModifier(_ParticleInputs, _ParticleOutputs, Object):
7335 """Proxy of C++ IMP::SingletonModifier class."""
7337 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7339 def __init__(self, *args):
7341 __init__(IMP::SingletonModifier self, std::string name) -> SingletonModifier
7342 __init__(IMP::SingletonModifier self) -> SingletonModifier
7344 if self.__class__ == SingletonModifier:
7348 this = _IMP_kernel.new_SingletonModifier(_self, *args)
7350 self.this.append(this)
7351 except __builtin__.Exception:
7354 if self.__class__ != SingletonModifier:
7355 _director_objects.register(self)
7360 def apply_index(self, m, v):
7361 """apply_index(SingletonModifier self, Model m, ParticleIndex v)"""
7362 return _IMP_kernel.SingletonModifier_apply_index(self, m, v)
7365 def apply_indexes(self, m, o, lower_bound, upper_bound):
7366 """apply_indexes(SingletonModifier self, Model m, IMP::ParticleIndexes const & o, unsigned int lower_bound, unsigned int upper_bound)"""
7367 return _IMP_kernel.SingletonModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
7371 """__str__(SingletonModifier self) -> std::string"""
7372 return _IMP_kernel.SingletonModifier___str__(self)
7376 """__repr__(SingletonModifier self) -> std::string"""
7377 return _IMP_kernel.SingletonModifier___repr__(self)
7382 return _object_cast_to_SingletonModifier(o)
7385 def get_type_name(self):
7386 return self.__class__.__name__
7387 def do_show(self, out):
7389 def get_version_info(self):
7391 return VersionInfo(self.__module__,
7392 __import__(self.__module__).get_module_version())
7395 __import__(self.__module__).get_module_version())
7398 return _object_cast_to_SingletonModifier(o)
7400 __swig_destroy__ = _IMP_kernel.delete_SingletonModifier
7401 __del__ =
lambda self:
None
7402 def __disown__(self):
7404 _IMP_kernel.disown_SingletonModifier(self)
7405 return weakref_proxy(self)
7407 def do_get_inputs(self, m, pis):
7408 """do_get_inputs(SingletonModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7409 return _IMP_kernel.SingletonModifier_do_get_inputs(self, m, pis)
7412 def do_get_outputs(self, m, pis):
7413 """do_get_outputs(SingletonModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7414 return _IMP_kernel.SingletonModifier_do_get_outputs(self, m, pis)
7417 def do_destroy(self):
7418 """do_destroy(SingletonModifier self)"""
7419 return _IMP_kernel.SingletonModifier_do_destroy(self)
7421 SingletonModifier_swigregister = _IMP_kernel.SingletonModifier_swigregister
7422 SingletonModifier_swigregister(SingletonModifier)
7424 class SingletonScore(_ParticleInputs, Object):
7425 """Proxy of C++ IMP::SingletonScore class."""
7427 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7429 def __init__(self, *args):
7431 __init__(IMP::SingletonScore self, std::string name) -> SingletonScore
7432 __init__(IMP::SingletonScore self) -> SingletonScore
7434 if self.__class__ == SingletonScore:
7438 this = _IMP_kernel.new_SingletonScore(_self, *args)
7440 self.this.append(this)
7441 except __builtin__.Exception:
7444 if self.__class__ != SingletonScore:
7445 _director_objects.register(self)
7450 def evaluate_index(self, m, vt, da):
7451 """evaluate_index(SingletonScore self, Model m, ParticleIndex vt, DerivativeAccumulator da) -> double"""
7452 return _IMP_kernel.SingletonScore_evaluate_index(self, m, vt, da)
7455 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
7456 """evaluate_indexes(SingletonScore self, Model m, IMP::ParticleIndexes const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7457 return _IMP_kernel.SingletonScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
7460 def evaluate_if_good_index(self, m, vt, da, max):
7461 """evaluate_if_good_index(SingletonScore self, Model m, ParticleIndex vt, DerivativeAccumulator da, double max) -> double"""
7462 return _IMP_kernel.SingletonScore_evaluate_if_good_index(self, m, vt, da, max)
7465 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
7466 """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"""
7467 return _IMP_kernel.SingletonScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
7470 def create_current_decomposition(self, m, vt):
7471 """create_current_decomposition(SingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
7472 return _IMP_kernel.SingletonScore_create_current_decomposition(self, m, vt)
7475 def do_create_current_decomposition(self, m, vt):
7476 """do_create_current_decomposition(SingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
7477 return _IMP_kernel.SingletonScore_do_create_current_decomposition(self, m, vt)
7479 __swig_destroy__ = _IMP_kernel.delete_SingletonScore
7480 __del__ =
lambda self:
None
7483 """__str__(SingletonScore self) -> std::string"""
7484 return _IMP_kernel.SingletonScore___str__(self)
7488 """__repr__(SingletonScore self) -> std::string"""
7489 return _IMP_kernel.SingletonScore___repr__(self)
7494 return _object_cast_to_SingletonScore(o)
7497 def get_type_name(self):
7498 return self.__class__.__name__
7499 def do_show(self, out):
7501 def get_version_info(self):
7503 return VersionInfo(self.__module__,
7504 __import__(self.__module__).get_module_version())
7507 __import__(self.__module__).get_module_version())
7510 return _object_cast_to_SingletonScore(o)
7512 def __disown__(self):
7514 _IMP_kernel.disown_SingletonScore(self)
7515 return weakref_proxy(self)
7517 def do_get_inputs(self, m, pis):
7518 """do_get_inputs(SingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7519 return _IMP_kernel.SingletonScore_do_get_inputs(self, m, pis)
7522 def do_destroy(self):
7523 """do_destroy(SingletonScore self)"""
7524 return _IMP_kernel.SingletonScore_do_destroy(self)
7526 SingletonScore_swigregister = _IMP_kernel.SingletonScore_swigregister
7527 SingletonScore_swigregister(SingletonScore)
7529 class SingletonPredicate(_ParticleInputs, Object):
7530 """Proxy of C++ IMP::SingletonPredicate class."""
7532 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7534 def __init__(self, *args):
7536 __init__(IMP::SingletonPredicate self, std::string name) -> SingletonPredicate
7537 __init__(IMP::SingletonPredicate self) -> SingletonPredicate
7539 if self.__class__ == SingletonPredicate:
7543 this = _IMP_kernel.new_SingletonPredicate(_self, *args)
7545 self.this.append(this)
7546 except __builtin__.Exception:
7549 if self.__class__ != SingletonPredicate:
7550 _director_objects.register(self)
7555 def get_value(self, *args):
7557 get_value(SingletonPredicate self, Particle vt) -> int
7558 get_value(SingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
7560 return _IMP_kernel.SingletonPredicate_get_value(self, *args)
7563 def setup_for_get_value_index_in_batch(self, arg0):
7564 """setup_for_get_value_index_in_batch(SingletonPredicate self, Model arg0)"""
7565 return _IMP_kernel.SingletonPredicate_setup_for_get_value_index_in_batch(self, arg0)
7568 def get_value_index_in_batch(self, m, vt):
7569 """get_value_index_in_batch(SingletonPredicate self, Model m, ParticleIndex vt) -> int"""
7570 return _IMP_kernel.SingletonPredicate_get_value_index_in_batch(self, m, vt)
7573 def __call__(self, m, vt):
7574 """__call__(SingletonPredicate self, Model m, ParticleIndex vt) -> int"""
7575 return _IMP_kernel.SingletonPredicate___call__(self, m, vt)
7578 def get_value_index(self, *args):
7580 get_value_index(SingletonPredicate self, Model m, ParticleIndex vt) -> int
7581 get_value_index(SingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
7583 return _IMP_kernel.SingletonPredicate_get_value_index(self, *args)
7585 __swig_destroy__ = _IMP_kernel.delete_SingletonPredicate
7586 __del__ =
lambda self:
None
7589 """__str__(SingletonPredicate self) -> std::string"""
7590 return _IMP_kernel.SingletonPredicate___str__(self)
7594 """__repr__(SingletonPredicate self) -> std::string"""
7595 return _IMP_kernel.SingletonPredicate___repr__(self)
7600 return _object_cast_to_SingletonPredicate(o)
7603 def get_type_name(self):
7604 return self.__class__.__name__
7605 def do_show(self, out):
7607 def get_version_info(self):
7609 return VersionInfo(self.__module__,
7610 __import__(self.__module__).get_module_version())
7613 __import__(self.__module__).get_module_version())
7616 return _object_cast_to_SingletonPredicate(o)
7618 def __disown__(self):
7620 _IMP_kernel.disown_SingletonPredicate(self)
7621 return weakref_proxy(self)
7623 def do_get_inputs(self, m, pis):
7624 """do_get_inputs(SingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7625 return _IMP_kernel.SingletonPredicate_do_get_inputs(self, m, pis)
7628 def do_destroy(self):
7629 """do_destroy(SingletonPredicate self)"""
7630 return _IMP_kernel.SingletonPredicate_do_destroy(self)
7632 SingletonPredicate_swigregister = _IMP_kernel.SingletonPredicate_swigregister
7633 SingletonPredicate_swigregister(SingletonPredicate)
7635 class SingletonContainer(Container):
7636 """Proxy of C++ IMP::SingletonContainer class."""
7638 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7640 def apply_generic(self, m):
7641 """apply_generic(SingletonContainer self, SingletonModifier m)"""
7642 return _IMP_kernel.SingletonContainer_apply_generic(self, m)
7645 def apply(self, sm):
7646 """apply(SingletonContainer self, SingletonModifier sm)"""
7647 return _IMP_kernel.SingletonContainer_apply(self, sm)
7650 def get_range_indexes(self):
7651 """get_range_indexes(SingletonContainer self) -> IMP::ParticleIndexes"""
7652 return _IMP_kernel.SingletonContainer_get_range_indexes(self)
7655 def get_contents(self):
7656 """get_contents(SingletonContainer self) -> IMP::ParticleIndexes const &"""
7657 return _IMP_kernel.SingletonContainer_get_contents(self)
7661 """get_indexes(SingletonContainer self) -> IMP::ParticleIndexes"""
7662 return _IMP_kernel.SingletonContainer_get_indexes(self)
7665 def get(self, *args):
7667 get(SingletonContainer self) -> IMP::ParticlesTemp
7668 get(SingletonContainer self, unsigned int i) -> Particle
7670 return _IMP_kernel.SingletonContainer_get(self, *args)
7673 def get_number(self):
7674 """get_number(SingletonContainer self) -> unsigned int"""
7675 return _IMP_kernel.SingletonContainer_get_number(self)
7679 """get_particles(SingletonContainer self) -> IMP::ParticlesTemp"""
7680 return _IMP_kernel.SingletonContainer_get_particles(self)
7683 def get_particle(self, i):
7684 """get_particle(SingletonContainer self, unsigned int i) -> Particle"""
7685 return _IMP_kernel.SingletonContainer_get_particle(self, i)
7688 def __init__(self, *args):
7690 __init__(IMP::SingletonContainer self, Model m, std::string name) -> SingletonContainer
7691 __init__(IMP::SingletonContainer self, Model m) -> SingletonContainer
7693 if self.__class__ == SingletonContainer:
7697 this = _IMP_kernel.new_SingletonContainer(_self, *args)
7699 self.this.append(this)
7700 except __builtin__.Exception:
7703 if self.__class__ != SingletonContainer:
7704 _director_objects.register(self)
7709 def do_apply(self, sm):
7710 """do_apply(SingletonContainer self, SingletonModifier sm)"""
7711 return _IMP_kernel.SingletonContainer_do_apply(self, sm)
7714 def do_get_provides_access(self):
7715 """do_get_provides_access(SingletonContainer self) -> bool"""
7716 return _IMP_kernel.SingletonContainer_do_get_provides_access(self)
7718 __swig_destroy__ = _IMP_kernel.delete_SingletonContainer
7719 __del__ =
lambda self:
None
7722 """__str__(SingletonContainer self) -> std::string"""
7723 return _IMP_kernel.SingletonContainer___str__(self)
7727 """__repr__(SingletonContainer self) -> std::string"""
7728 return _IMP_kernel.SingletonContainer___repr__(self)
7733 return _object_cast_to_SingletonContainer(o)
7736 def get_type_name(self):
7737 return self.__class__.__name__
7738 def do_show(self, out):
7740 def get_version_info(self):
7742 return VersionInfo(self.__module__,
7743 __import__(self.__module__).get_module_version())
7746 __import__(self.__module__).get_module_version())
7749 return _object_cast_to_SingletonContainer(o)
7751 def __disown__(self):
7753 _IMP_kernel.disown_SingletonContainer(self)
7754 return weakref_proxy(self)
7756 def do_destroy(self):
7757 """do_destroy(SingletonContainer self)"""
7758 return _IMP_kernel.SingletonContainer_do_destroy(self)
7761 def handle_set_has_required_score_states(self, arg0):
7762 """handle_set_has_required_score_states(SingletonContainer self, bool arg0)"""
7763 return _IMP_kernel.SingletonContainer_handle_set_has_required_score_states(self, arg0)
7766 def do_get_inputs(self):
7767 """do_get_inputs(SingletonContainer self) -> IMP::ModelObjectsTemp"""
7768 return _IMP_kernel.SingletonContainer_do_get_inputs(self)
7771 def do_get_interactions(self):
7772 """do_get_interactions(SingletonContainer self) -> IMP::ModelObjectsTemps"""
7773 return _IMP_kernel.SingletonContainer_do_get_interactions(self)
7776 def do_get_contents_hash(self):
7777 """do_get_contents_hash(SingletonContainer self) -> std::size_t"""
7778 return _IMP_kernel.SingletonContainer_do_get_contents_hash(self)
7780 SingletonContainer_swigregister = _IMP_kernel.SingletonContainer_swigregister
7781 SingletonContainer_swigregister(SingletonContainer)
7783 class _SingletonContainerAdaptor(_InputAdaptor):
7784 """Proxy of C++ IMP::SingletonContainerAdaptor class."""
7786 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7787 __repr__ = _swig_repr
7789 def __init__(self, *args):
7791 __init__(IMP::SingletonContainerAdaptor self) -> _SingletonContainerAdaptor
7792 __init__(IMP::SingletonContainerAdaptor self, SingletonContainer c) -> _SingletonContainerAdaptor
7793 __init__(IMP::SingletonContainerAdaptor self, IMP::ParticlesTemp const & t) -> _SingletonContainerAdaptor
7795 this = _IMP_kernel.new__SingletonContainerAdaptor(*args)
7797 self.this.append(this)
7798 except __builtin__.Exception:
7801 def set_name_if_default(self, name):
7802 """set_name_if_default(_SingletonContainerAdaptor self, std::string name)"""
7803 return _IMP_kernel._SingletonContainerAdaptor_set_name_if_default(self, name)
7805 __swig_destroy__ = _IMP_kernel.delete__SingletonContainerAdaptor
7806 __del__ =
lambda self:
None
7807 _SingletonContainerAdaptor_swigregister = _IMP_kernel._SingletonContainerAdaptor_swigregister
7808 _SingletonContainerAdaptor_swigregister(_SingletonContainerAdaptor)
7810 class TripletModifier(_ParticleInputs, _ParticleOutputs, Object):
7811 """Proxy of C++ IMP::TripletModifier class."""
7813 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7815 def __init__(self, *args):
7817 __init__(IMP::TripletModifier self, std::string name) -> TripletModifier
7818 __init__(IMP::TripletModifier self) -> TripletModifier
7820 if self.__class__ == TripletModifier:
7824 this = _IMP_kernel.new_TripletModifier(_self, *args)
7826 self.this.append(this)
7827 except __builtin__.Exception:
7830 if self.__class__ != TripletModifier:
7831 _director_objects.register(self)
7836 def apply_index(self, m, v):
7837 """apply_index(TripletModifier self, Model m, IMP::ParticleIndexTriplet const & v)"""
7838 return _IMP_kernel.TripletModifier_apply_index(self, m, v)
7841 def apply_indexes(self, m, o, lower_bound, upper_bound):
7842 """apply_indexes(TripletModifier self, Model m, IMP::ParticleIndexTriplets const & o, unsigned int lower_bound, unsigned int upper_bound)"""
7843 return _IMP_kernel.TripletModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
7847 """__str__(TripletModifier self) -> std::string"""
7848 return _IMP_kernel.TripletModifier___str__(self)
7852 """__repr__(TripletModifier self) -> std::string"""
7853 return _IMP_kernel.TripletModifier___repr__(self)
7858 return _object_cast_to_TripletModifier(o)
7861 def get_type_name(self):
7862 return self.__class__.__name__
7863 def do_show(self, out):
7865 def get_version_info(self):
7867 return VersionInfo(self.__module__,
7868 __import__(self.__module__).get_module_version())
7871 __import__(self.__module__).get_module_version())
7874 return _object_cast_to_TripletModifier(o)
7876 __swig_destroy__ = _IMP_kernel.delete_TripletModifier
7877 __del__ =
lambda self:
None
7878 def __disown__(self):
7880 _IMP_kernel.disown_TripletModifier(self)
7881 return weakref_proxy(self)
7883 def do_get_inputs(self, m, pis):
7884 """do_get_inputs(TripletModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7885 return _IMP_kernel.TripletModifier_do_get_inputs(self, m, pis)
7888 def do_get_outputs(self, m, pis):
7889 """do_get_outputs(TripletModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7890 return _IMP_kernel.TripletModifier_do_get_outputs(self, m, pis)
7893 def do_destroy(self):
7894 """do_destroy(TripletModifier self)"""
7895 return _IMP_kernel.TripletModifier_do_destroy(self)
7897 TripletModifier_swigregister = _IMP_kernel.TripletModifier_swigregister
7898 TripletModifier_swigregister(TripletModifier)
7900 class TripletScore(_ParticleInputs, Object):
7901 """Proxy of C++ IMP::TripletScore class."""
7903 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7905 def __init__(self, *args):
7907 __init__(IMP::TripletScore self, std::string name) -> TripletScore
7908 __init__(IMP::TripletScore self) -> TripletScore
7910 if self.__class__ == TripletScore:
7914 this = _IMP_kernel.new_TripletScore(_self, *args)
7916 self.this.append(this)
7917 except __builtin__.Exception:
7920 if self.__class__ != TripletScore:
7921 _director_objects.register(self)
7926 def evaluate_index(self, m, vt, da):
7927 """evaluate_index(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt, DerivativeAccumulator da) -> double"""
7928 return _IMP_kernel.TripletScore_evaluate_index(self, m, vt, da)
7931 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
7932 """evaluate_indexes(TripletScore self, Model m, IMP::ParticleIndexTriplets const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7933 return _IMP_kernel.TripletScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
7936 def evaluate_if_good_index(self, m, vt, da, max):
7937 """evaluate_if_good_index(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt, DerivativeAccumulator da, double max) -> double"""
7938 return _IMP_kernel.TripletScore_evaluate_if_good_index(self, m, vt, da, max)
7941 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
7942 """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"""
7943 return _IMP_kernel.TripletScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
7946 def create_current_decomposition(self, m, vt):
7947 """create_current_decomposition(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
7948 return _IMP_kernel.TripletScore_create_current_decomposition(self, m, vt)
7951 def do_create_current_decomposition(self, m, vt):
7952 """do_create_current_decomposition(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
7953 return _IMP_kernel.TripletScore_do_create_current_decomposition(self, m, vt)
7955 __swig_destroy__ = _IMP_kernel.delete_TripletScore
7956 __del__ =
lambda self:
None
7959 """__str__(TripletScore self) -> std::string"""
7960 return _IMP_kernel.TripletScore___str__(self)
7964 """__repr__(TripletScore self) -> std::string"""
7965 return _IMP_kernel.TripletScore___repr__(self)
7970 return _object_cast_to_TripletScore(o)
7973 def get_type_name(self):
7974 return self.__class__.__name__
7975 def do_show(self, out):
7977 def get_version_info(self):
7979 return VersionInfo(self.__module__,
7980 __import__(self.__module__).get_module_version())
7983 __import__(self.__module__).get_module_version())
7986 return _object_cast_to_TripletScore(o)
7988 def __disown__(self):
7990 _IMP_kernel.disown_TripletScore(self)
7991 return weakref_proxy(self)
7993 def do_get_inputs(self, m, pis):
7994 """do_get_inputs(TripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7995 return _IMP_kernel.TripletScore_do_get_inputs(self, m, pis)
7998 def do_destroy(self):
7999 """do_destroy(TripletScore self)"""
8000 return _IMP_kernel.TripletScore_do_destroy(self)
8002 TripletScore_swigregister = _IMP_kernel.TripletScore_swigregister
8003 TripletScore_swigregister(TripletScore)
8005 class TripletPredicate(_ParticleInputs, Object):
8006 """Proxy of C++ IMP::TripletPredicate class."""
8008 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8010 def __init__(self, *args):
8012 __init__(IMP::TripletPredicate self, std::string name) -> TripletPredicate
8013 __init__(IMP::TripletPredicate self) -> TripletPredicate
8015 if self.__class__ == TripletPredicate:
8019 this = _IMP_kernel.new_TripletPredicate(_self, *args)
8021 self.this.append(this)
8022 except __builtin__.Exception:
8025 if self.__class__ != TripletPredicate:
8026 _director_objects.register(self)
8031 def get_value(self, *args):
8033 get_value(TripletPredicate self, IMP::ParticleTriplet const & vt) -> int
8034 get_value(TripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
8036 return _IMP_kernel.TripletPredicate_get_value(self, *args)
8039 def setup_for_get_value_index_in_batch(self, arg0):
8040 """setup_for_get_value_index_in_batch(TripletPredicate self, Model arg0)"""
8041 return _IMP_kernel.TripletPredicate_setup_for_get_value_index_in_batch(self, arg0)
8044 def get_value_index_in_batch(self, m, vt):
8045 """get_value_index_in_batch(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int"""
8046 return _IMP_kernel.TripletPredicate_get_value_index_in_batch(self, m, vt)
8049 def __call__(self, m, vt):
8050 """__call__(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int"""
8051 return _IMP_kernel.TripletPredicate___call__(self, m, vt)
8054 def get_value_index(self, *args):
8056 get_value_index(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int
8057 get_value_index(TripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
8059 return _IMP_kernel.TripletPredicate_get_value_index(self, *args)
8061 __swig_destroy__ = _IMP_kernel.delete_TripletPredicate
8062 __del__ =
lambda self:
None
8065 """__str__(TripletPredicate self) -> std::string"""
8066 return _IMP_kernel.TripletPredicate___str__(self)
8070 """__repr__(TripletPredicate self) -> std::string"""
8071 return _IMP_kernel.TripletPredicate___repr__(self)
8076 return _object_cast_to_TripletPredicate(o)
8079 def get_type_name(self):
8080 return self.__class__.__name__
8081 def do_show(self, out):
8083 def get_version_info(self):
8085 return VersionInfo(self.__module__,
8086 __import__(self.__module__).get_module_version())
8089 __import__(self.__module__).get_module_version())
8092 return _object_cast_to_TripletPredicate(o)
8094 def __disown__(self):
8096 _IMP_kernel.disown_TripletPredicate(self)
8097 return weakref_proxy(self)
8099 def do_get_inputs(self, m, pis):
8100 """do_get_inputs(TripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8101 return _IMP_kernel.TripletPredicate_do_get_inputs(self, m, pis)
8104 def do_destroy(self):
8105 """do_destroy(TripletPredicate self)"""
8106 return _IMP_kernel.TripletPredicate_do_destroy(self)
8108 TripletPredicate_swigregister = _IMP_kernel.TripletPredicate_swigregister
8109 TripletPredicate_swigregister(TripletPredicate)
8111 class TripletContainer(Container):
8112 """Proxy of C++ IMP::TripletContainer class."""
8114 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8116 def apply_generic(self, m):
8117 """apply_generic(TripletContainer self, TripletModifier m)"""
8118 return _IMP_kernel.TripletContainer_apply_generic(self, m)
8121 def apply(self, sm):
8122 """apply(TripletContainer self, TripletModifier sm)"""
8123 return _IMP_kernel.TripletContainer_apply(self, sm)
8126 def get_range_indexes(self):
8127 """get_range_indexes(TripletContainer self) -> IMP::ParticleIndexTriplets"""
8128 return _IMP_kernel.TripletContainer_get_range_indexes(self)
8131 def get_contents(self):
8132 """get_contents(TripletContainer self) -> IMP::ParticleIndexTriplets const &"""
8133 return _IMP_kernel.TripletContainer_get_contents(self)
8137 """get_indexes(TripletContainer self) -> IMP::ParticleIndexTriplets"""
8138 return _IMP_kernel.TripletContainer_get_indexes(self)
8141 def get(self, *args):
8143 get(TripletContainer self) -> IMP::ParticleTripletsTemp
8144 get(TripletContainer self, unsigned int i) -> IMP::ParticleTriplet
8146 return _IMP_kernel.TripletContainer_get(self, *args)
8149 def get_number(self):
8150 """get_number(TripletContainer self) -> unsigned int"""
8151 return _IMP_kernel.TripletContainer_get_number(self)
8154 def get_particle_triplets(self):
8155 """get_particle_triplets(TripletContainer self) -> IMP::ParticleTripletsTemp"""
8156 return _IMP_kernel.TripletContainer_get_particle_triplets(self)
8159 def get_particle_triplet(self, i):
8160 """get_particle_triplet(TripletContainer self, unsigned int i) -> IMP::ParticleTriplet"""
8161 return _IMP_kernel.TripletContainer_get_particle_triplet(self, i)
8164 def __init__(self, *args):
8166 __init__(IMP::TripletContainer self, Model m, std::string name) -> TripletContainer
8167 __init__(IMP::TripletContainer self, Model m) -> TripletContainer
8169 if self.__class__ == TripletContainer:
8173 this = _IMP_kernel.new_TripletContainer(_self, *args)
8175 self.this.append(this)
8176 except __builtin__.Exception:
8179 if self.__class__ != TripletContainer:
8180 _director_objects.register(self)
8185 def do_apply(self, sm):
8186 """do_apply(TripletContainer self, TripletModifier sm)"""
8187 return _IMP_kernel.TripletContainer_do_apply(self, sm)
8190 def do_get_provides_access(self):
8191 """do_get_provides_access(TripletContainer self) -> bool"""
8192 return _IMP_kernel.TripletContainer_do_get_provides_access(self)
8194 __swig_destroy__ = _IMP_kernel.delete_TripletContainer
8195 __del__ =
lambda self:
None
8198 """__str__(TripletContainer self) -> std::string"""
8199 return _IMP_kernel.TripletContainer___str__(self)
8203 """__repr__(TripletContainer self) -> std::string"""
8204 return _IMP_kernel.TripletContainer___repr__(self)
8209 return _object_cast_to_TripletContainer(o)
8212 def get_type_name(self):
8213 return self.__class__.__name__
8214 def do_show(self, out):
8216 def get_version_info(self):
8218 return VersionInfo(self.__module__,
8219 __import__(self.__module__).get_module_version())
8222 __import__(self.__module__).get_module_version())
8225 return _object_cast_to_TripletContainer(o)
8227 def __disown__(self):
8229 _IMP_kernel.disown_TripletContainer(self)
8230 return weakref_proxy(self)
8232 def do_destroy(self):
8233 """do_destroy(TripletContainer self)"""
8234 return _IMP_kernel.TripletContainer_do_destroy(self)
8237 def handle_set_has_required_score_states(self, arg0):
8238 """handle_set_has_required_score_states(TripletContainer self, bool arg0)"""
8239 return _IMP_kernel.TripletContainer_handle_set_has_required_score_states(self, arg0)
8242 def do_get_inputs(self):
8243 """do_get_inputs(TripletContainer self) -> IMP::ModelObjectsTemp"""
8244 return _IMP_kernel.TripletContainer_do_get_inputs(self)
8247 def do_get_interactions(self):
8248 """do_get_interactions(TripletContainer self) -> IMP::ModelObjectsTemps"""
8249 return _IMP_kernel.TripletContainer_do_get_interactions(self)
8252 def do_get_contents_hash(self):
8253 """do_get_contents_hash(TripletContainer self) -> std::size_t"""
8254 return _IMP_kernel.TripletContainer_do_get_contents_hash(self)
8256 TripletContainer_swigregister = _IMP_kernel.TripletContainer_swigregister
8257 TripletContainer_swigregister(TripletContainer)
8259 class _TripletContainerAdaptor(_InputAdaptor):
8260 """Proxy of C++ IMP::TripletContainerAdaptor class."""
8262 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8263 __repr__ = _swig_repr
8265 def __init__(self, *args):
8267 __init__(IMP::TripletContainerAdaptor self) -> _TripletContainerAdaptor
8268 __init__(IMP::TripletContainerAdaptor self, TripletContainer c) -> _TripletContainerAdaptor
8269 __init__(IMP::TripletContainerAdaptor self, IMP::ParticleTripletsTemp const & t) -> _TripletContainerAdaptor
8271 this = _IMP_kernel.new__TripletContainerAdaptor(*args)
8273 self.this.append(this)
8274 except __builtin__.Exception:
8277 def set_name_if_default(self, name):
8278 """set_name_if_default(_TripletContainerAdaptor self, std::string name)"""
8279 return _IMP_kernel._TripletContainerAdaptor_set_name_if_default(self, name)
8281 __swig_destroy__ = _IMP_kernel.delete__TripletContainerAdaptor
8282 __del__ =
lambda self:
None
8283 _TripletContainerAdaptor_swigregister = _IMP_kernel._TripletContainerAdaptor_swigregister
8284 _TripletContainerAdaptor_swigregister(_TripletContainerAdaptor)
8288 """write_particles_to_buffer(IMP::ParticlesTemp const & particles, IMP::FloatKeys const & keys) -> IMP::Vector< char >"""
8289 return _IMP_kernel.write_particles_to_buffer(particles, keys)
8292 """read_particles_from_buffer(IMP::Vector< char > const & buffer, IMP::ParticlesTemp const & particles, IMP::FloatKeys const & keys)"""
8293 return _IMP_kernel.read_particles_from_buffer(buffer, particles, keys)
8296 """get_particles(Model m, IMP::ParticleIndexes const & ps) -> IMP::ParticlesTemp"""
8297 return _IMP_kernel.get_particles(m, ps)
8301 get_indexes(IMP::ParticlesTemp const & ps) -> IMP::ParticleIndexes
8302 get_indexes(IMP::ParticlePairsTemp const & ps) -> IMP::ParticleIndexPairs
8304 return _IMP_kernel.get_indexes(*args)
8305 class _ParticleIndexAdaptor(object):
8306 """Proxy of C++ IMP::ParticleIndexAdaptor class."""
8308 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8309 __repr__ = _swig_repr
8311 def __init__(self, *args):
8313 __init__(IMP::ParticleIndexAdaptor self, Particle p) -> _ParticleIndexAdaptor
8314 __init__(IMP::ParticleIndexAdaptor self, ParticleIndex pi) -> _ParticleIndexAdaptor
8315 __init__(IMP::ParticleIndexAdaptor self, Decorator d) -> _ParticleIndexAdaptor
8317 this = _IMP_kernel.new__ParticleIndexAdaptor(*args)
8319 self.this.append(this)
8320 except __builtin__.Exception:
8322 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexAdaptor
8323 __del__ =
lambda self:
None
8324 _ParticleIndexAdaptor_swigregister = _IMP_kernel._ParticleIndexAdaptor_swigregister
8325 _ParticleIndexAdaptor_swigregister(_ParticleIndexAdaptor)
8327 class _ParticleIndexesAdaptor(_InputAdaptor):
8328 """Proxy of C++ IMP::ParticleIndexesAdaptor class."""
8330 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8331 __repr__ = _swig_repr
8333 def __init__(self, *args):
8335 __init__(IMP::ParticleIndexesAdaptor self, IMP::ParticlesTemp const & ps) -> _ParticleIndexesAdaptor
8336 __init__(IMP::ParticleIndexesAdaptor self, IMP::ParticleIndexes const & pi) -> _ParticleIndexesAdaptor
8337 __init__(IMP::ParticleIndexesAdaptor self) -> _ParticleIndexesAdaptor
8339 this = _IMP_kernel.new__ParticleIndexesAdaptor(*args)
8341 self.this.append(this)
8342 except __builtin__.Exception:
8344 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexesAdaptor
8345 __del__ =
lambda self:
None
8346 _ParticleIndexesAdaptor_swigregister = _IMP_kernel._ParticleIndexesAdaptor_swigregister
8347 _ParticleIndexesAdaptor_swigregister(_ParticleIndexesAdaptor)
8349 class _ParticleIndexPairsAdaptor(object):
8350 """Proxy of C++ IMP::ParticleIndexPairsAdaptor class."""
8352 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8353 __repr__ = _swig_repr
8355 def __init__(self, *args):
8357 __init__(IMP::ParticleIndexPairsAdaptor self, IMP::ParticlePairsTemp const & ps) -> _ParticleIndexPairsAdaptor
8358 __init__(IMP::ParticleIndexPairsAdaptor self, IMP::ParticleIndexPairs const & pi) -> _ParticleIndexPairsAdaptor
8359 __init__(IMP::ParticleIndexPairsAdaptor self) -> _ParticleIndexPairsAdaptor
8361 this = _IMP_kernel.new__ParticleIndexPairsAdaptor(*args)
8363 self.this.append(this)
8364 except __builtin__.Exception:
8366 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexPairsAdaptor
8367 __del__ =
lambda self:
None
8368 _ParticleIndexPairsAdaptor_swigregister = _IMP_kernel._ParticleIndexPairsAdaptor_swigregister
8369 _ParticleIndexPairsAdaptor_swigregister(_ParticleIndexPairsAdaptor)
8371 class _ConstRestraint(Restraint):
8372 """Proxy of C++ IMP::internal::_ConstRestraint class."""
8374 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8376 def __init__(self, *args):
8378 __init__(IMP::internal::_ConstRestraint self, double v, IMP::ParticlesTemp const ps) -> _ConstRestraint
8379 __init__(IMP::internal::_ConstRestraint self, Model m, IMP::ParticleIndexes const & pis, double v) -> _ConstRestraint
8381 this = _IMP_kernel.new__ConstRestraint(*args)
8383 self.this.append(this)
8384 except __builtin__.Exception:
8387 def get_value(self):
8388 """get_value(_ConstRestraint self) -> double"""
8389 return _IMP_kernel._ConstRestraint_get_value(self)
8392 def do_create_decomposition(self):
8393 """do_create_decomposition(_ConstRestraint self) -> IMP::Restraints"""
8394 return _IMP_kernel._ConstRestraint_do_create_decomposition(self)
8397 def do_get_inputs(self):
8398 """do_get_inputs(_ConstRestraint self) -> IMP::ModelObjectsTemp"""
8399 return _IMP_kernel._ConstRestraint_do_get_inputs(self)
8402 def get_version_info(self):
8403 """get_version_info(_ConstRestraint self) -> VersionInfo"""
8404 return _IMP_kernel._ConstRestraint_get_version_info(self)
8408 """__str__(_ConstRestraint self) -> std::string"""
8409 return _IMP_kernel._ConstRestraint___str__(self)
8413 """__repr__(_ConstRestraint self) -> std::string"""
8414 return _IMP_kernel._ConstRestraint___repr__(self)
8419 return _object_cast_to__ConstRestraint(o)
8421 _ConstRestraint_swigregister = _IMP_kernel._ConstRestraint_swigregister
8422 _ConstRestraint_swigregister(_ConstRestraint)
8424 class _ConstSingletonScore(SingletonScore):
8425 """Proxy of C++ IMP::internal::_ConstSingletonScore class."""
8427 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8428 __repr__ = _swig_repr
8430 def __init__(self, v):
8431 """__init__(IMP::internal::_ConstSingletonScore self, double v) -> _ConstSingletonScore"""
8432 this = _IMP_kernel.new__ConstSingletonScore(v)
8434 self.this.append(this)
8435 except __builtin__.Exception:
8438 def do_get_inputs(self, arg2, arg3):
8439 """do_get_inputs(_ConstSingletonScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
8440 return _IMP_kernel._ConstSingletonScore_do_get_inputs(self, arg2, arg3)
8443 def get_version_info(self):
8444 """get_version_info(_ConstSingletonScore self) -> VersionInfo"""
8445 return _IMP_kernel._ConstSingletonScore_get_version_info(self)
8447 _ConstSingletonScore_swigregister = _IMP_kernel._ConstSingletonScore_swigregister
8448 _ConstSingletonScore_swigregister(_ConstSingletonScore)
8450 class _ConstPairScore(PairScore):
8451 """Proxy of C++ IMP::internal::_ConstPairScore class."""
8453 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8454 __repr__ = _swig_repr
8456 def __init__(self, v):
8457 """__init__(IMP::internal::_ConstPairScore self, double v) -> _ConstPairScore"""
8458 this = _IMP_kernel.new__ConstPairScore(v)
8460 self.this.append(this)
8461 except __builtin__.Exception:
8464 def do_get_inputs(self, arg2, arg3):
8465 """do_get_inputs(_ConstPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
8466 return _IMP_kernel._ConstPairScore_do_get_inputs(self, arg2, arg3)
8469 def get_version_info(self):
8470 """get_version_info(_ConstPairScore self) -> VersionInfo"""
8471 return _IMP_kernel._ConstPairScore_get_version_info(self)
8473 _ConstPairScore_swigregister = _IMP_kernel._ConstPairScore_swigregister
8474 _ConstPairScore_swigregister(_ConstPairScore)
8476 class _TrivialDecorator(Decorator):
8477 """Proxy of C++ IMP::internal::_TrivialDecorator class."""
8479 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8481 def __init__(self, *args):
8483 __init__(IMP::internal::_TrivialDecorator self) -> _TrivialDecorator
8484 __init__(IMP::internal::_TrivialDecorator self, Model m, ParticleIndex id) -> _TrivialDecorator
8485 __init__(IMP::internal::_TrivialDecorator self, _ParticleAdaptor d) -> _TrivialDecorator
8487 this = _IMP_kernel.new__TrivialDecorator(*args)
8489 self.this.append(this)
8490 except __builtin__.Exception:
8493 def show(self, *args):
8495 show(_TrivialDecorator self, _ostream out)
8496 show(_TrivialDecorator self)
8498 return _IMP_kernel._TrivialDecorator_show(self, *args)
8501 def setup_particle(*args):
8503 setup_particle(Model m, ParticleIndex pi) -> _TrivialDecorator
8504 setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
8506 return _IMP_kernel._TrivialDecorator_setup_particle(*args)
8508 setup_particle = staticmethod(setup_particle)
8510 def get_is_setup(*args):
8512 get_is_setup(_ParticleAdaptor p) -> bool
8513 get_is_setup(Model m, ParticleIndex pi) -> bool
8515 return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
8517 get_is_setup = staticmethod(get_is_setup)
8519 def add_attribute(self, *args):
8521 add_attribute(_TrivialDecorator self, FloatKey k, IMP::Float v, bool opt)
8522 add_attribute(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
8523 add_attribute(_TrivialDecorator self, IntKey a0, IMP::Int a1)
8524 add_attribute(_TrivialDecorator self, StringKey a0, IMP::String a1)
8525 add_attribute(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
8526 add_attribute(_TrivialDecorator self, ObjectKey a0, Object a1)
8528 return _IMP_kernel._TrivialDecorator_add_attribute(self, *args)
8531 def get_value(self, *args):
8533 get_value(_TrivialDecorator self, FloatKey a0) -> IMP::Float
8534 get_value(_TrivialDecorator self, IntKey a0) -> IMP::Int
8535 get_value(_TrivialDecorator self, StringKey a0) -> IMP::String
8536 get_value(_TrivialDecorator self, ParticleIndexKey a0) -> Particle
8537 get_value(_TrivialDecorator self, ObjectKey a0) -> Object
8539 return _IMP_kernel._TrivialDecorator_get_value(self, *args)
8542 def set_value(self, *args):
8544 set_value(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
8545 set_value(_TrivialDecorator self, IntKey a0, IMP::Int a1)
8546 set_value(_TrivialDecorator self, StringKey a0, IMP::String a1)
8547 set_value(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
8548 set_value(_TrivialDecorator self, ObjectKey a0, Object a1)
8550 return _IMP_kernel._TrivialDecorator_set_value(self, *args)
8553 def remove_attribute(self, *args):
8555 remove_attribute(_TrivialDecorator self, FloatKey a0)
8556 remove_attribute(_TrivialDecorator self, IntKey a0)
8557 remove_attribute(_TrivialDecorator self, StringKey a0)
8558 remove_attribute(_TrivialDecorator self, ParticleIndexKey a0)
8559 remove_attribute(_TrivialDecorator self, ObjectKey a0)
8561 return _IMP_kernel._TrivialDecorator_remove_attribute(self, *args)
8564 def has_attribute(self, *args):
8566 has_attribute(_TrivialDecorator self, FloatKey a0) -> bool
8567 has_attribute(_TrivialDecorator self, IntKey a0) -> bool
8568 has_attribute(_TrivialDecorator self, StringKey a0) -> bool
8569 has_attribute(_TrivialDecorator self, ParticleIndexKey a0) -> bool
8570 has_attribute(_TrivialDecorator self, ObjectKey a0) -> bool
8572 return _IMP_kernel._TrivialDecorator_has_attribute(self, *args)
8575 def get_derivative(self, a0):
8576 """get_derivative(_TrivialDecorator self, FloatKey a0) -> double"""
8577 return _IMP_kernel._TrivialDecorator_get_derivative(self, a0)
8581 """get_name(_TrivialDecorator self) -> std::string"""
8582 return _IMP_kernel._TrivialDecorator_get_name(self)
8585 def clear_caches(self):
8586 """clear_caches(_TrivialDecorator self)"""
8587 return _IMP_kernel._TrivialDecorator_clear_caches(self)
8590 def set_name(self, a0):
8591 """set_name(_TrivialDecorator self, std::string a0)"""
8592 return _IMP_kernel._TrivialDecorator_set_name(self, a0)
8596 """set_check_level(_TrivialDecorator self, IMP::CheckLevel a0)"""
8597 return _IMP_kernel._TrivialDecorator_set_check_level(self, a0)
8600 def add_to_derivative(self, a0, a1, a2):
8601 """add_to_derivative(_TrivialDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8602 return _IMP_kernel._TrivialDecorator_add_to_derivative(self, a0, a1, a2)
8605 def set_is_optimized(self, a0, a1):
8606 """set_is_optimized(_TrivialDecorator self, FloatKey a0, bool a1)"""
8607 return _IMP_kernel._TrivialDecorator_set_is_optimized(self, a0, a1)
8610 def get_is_optimized(self, a0):
8611 """get_is_optimized(_TrivialDecorator self, FloatKey a0) -> bool"""
8612 return _IMP_kernel._TrivialDecorator_get_is_optimized(self, a0)
8616 """get_check_level(_TrivialDecorator self) -> IMP::CheckLevel"""
8617 return _IMP_kernel._TrivialDecorator_get_check_level(self)
8620 def __eq__(self, *args):
8622 __eq__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8623 __eq__(_TrivialDecorator self, Particle d) -> bool
8625 return _IMP_kernel._TrivialDecorator___eq__(self, *args)
8628 def __ne__(self, *args):
8630 __ne__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8631 __ne__(_TrivialDecorator self, Particle d) -> bool
8633 return _IMP_kernel._TrivialDecorator___ne__(self, *args)
8636 def __le__(self, *args):
8638 __le__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8639 __le__(_TrivialDecorator self, Particle d) -> bool
8641 return _IMP_kernel._TrivialDecorator___le__(self, *args)
8644 def __lt__(self, *args):
8646 __lt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8647 __lt__(_TrivialDecorator self, Particle d) -> bool
8649 return _IMP_kernel._TrivialDecorator___lt__(self, *args)
8652 def __ge__(self, *args):
8654 __ge__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8655 __ge__(_TrivialDecorator self, Particle d) -> bool
8657 return _IMP_kernel._TrivialDecorator___ge__(self, *args)
8660 def __gt__(self, *args):
8662 __gt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8663 __gt__(_TrivialDecorator self, Particle d) -> bool
8665 return _IMP_kernel._TrivialDecorator___gt__(self, *args)
8669 """__hash__(_TrivialDecorator self) -> std::size_t"""
8670 return _IMP_kernel._TrivialDecorator___hash__(self)
8674 """__str__(_TrivialDecorator self) -> std::string"""
8675 return _IMP_kernel._TrivialDecorator___str__(self)
8679 """__repr__(_TrivialDecorator self) -> std::string"""
8680 return _IMP_kernel._TrivialDecorator___repr__(self)
8682 __swig_destroy__ = _IMP_kernel.delete__TrivialDecorator
8683 __del__ =
lambda self:
None
8684 _TrivialDecorator_swigregister = _IMP_kernel._TrivialDecorator_swigregister
8685 _TrivialDecorator_swigregister(_TrivialDecorator)
8687 def _TrivialDecorator_setup_particle(*args):
8689 setup_particle(Model m, ParticleIndex pi) -> _TrivialDecorator
8690 _TrivialDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
8692 return _IMP_kernel._TrivialDecorator_setup_particle(*args)
8694 def _TrivialDecorator_get_is_setup(*args):
8696 get_is_setup(_ParticleAdaptor p) -> bool
8697 _TrivialDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
8699 return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
8701 class _TrivialDerivedDecorator(_TrivialDecorator):
8702 """Proxy of C++ IMP::internal::_TrivialDerivedDecorator class."""
8704 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8706 def __init__(self, *args):
8708 __init__(IMP::internal::_TrivialDerivedDecorator self) -> _TrivialDerivedDecorator
8709 __init__(IMP::internal::_TrivialDerivedDecorator self, Model m, ParticleIndex id) -> _TrivialDerivedDecorator
8710 __init__(IMP::internal::_TrivialDerivedDecorator self, _ParticleAdaptor d) -> _TrivialDerivedDecorator
8712 this = _IMP_kernel.new__TrivialDerivedDecorator(*args)
8714 self.this.append(this)
8715 except __builtin__.Exception:
8718 def show(self, *args):
8720 show(_TrivialDerivedDecorator self, _ostream out)
8721 show(_TrivialDerivedDecorator self)
8723 return _IMP_kernel._TrivialDerivedDecorator_show(self, *args)
8726 def setup_particle(*args):
8728 setup_particle(Model m, ParticleIndex pi) -> _TrivialDerivedDecorator
8729 setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
8731 return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
8733 setup_particle = staticmethod(setup_particle)
8735 def get_is_setup(*args):
8737 get_is_setup(_ParticleAdaptor p) -> bool
8738 get_is_setup(Model m, ParticleIndex pi) -> bool
8740 return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
8742 get_is_setup = staticmethod(get_is_setup)
8744 def add_attribute(self, *args):
8746 add_attribute(_TrivialDerivedDecorator self, FloatKey k, IMP::Float v, bool opt)
8747 add_attribute(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
8748 add_attribute(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
8749 add_attribute(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
8750 add_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
8751 add_attribute(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
8753 return _IMP_kernel._TrivialDerivedDecorator_add_attribute(self, *args)
8756 def get_value(self, *args):
8758 get_value(_TrivialDerivedDecorator self, FloatKey a0) -> IMP::Float
8759 get_value(_TrivialDerivedDecorator self, IntKey a0) -> IMP::Int
8760 get_value(_TrivialDerivedDecorator self, StringKey a0) -> IMP::String
8761 get_value(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> Particle
8762 get_value(_TrivialDerivedDecorator self, ObjectKey a0) -> Object
8764 return _IMP_kernel._TrivialDerivedDecorator_get_value(self, *args)
8767 def set_value(self, *args):
8769 set_value(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
8770 set_value(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
8771 set_value(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
8772 set_value(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
8773 set_value(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
8775 return _IMP_kernel._TrivialDerivedDecorator_set_value(self, *args)
8778 def remove_attribute(self, *args):
8780 remove_attribute(_TrivialDerivedDecorator self, FloatKey a0)
8781 remove_attribute(_TrivialDerivedDecorator self, IntKey a0)
8782 remove_attribute(_TrivialDerivedDecorator self, StringKey a0)
8783 remove_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0)
8784 remove_attribute(_TrivialDerivedDecorator self, ObjectKey a0)
8786 return _IMP_kernel._TrivialDerivedDecorator_remove_attribute(self, *args)
8789 def has_attribute(self, *args):
8791 has_attribute(_TrivialDerivedDecorator self, FloatKey a0) -> bool
8792 has_attribute(_TrivialDerivedDecorator self, IntKey a0) -> bool
8793 has_attribute(_TrivialDerivedDecorator self, StringKey a0) -> bool
8794 has_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> bool
8795 has_attribute(_TrivialDerivedDecorator self, ObjectKey a0) -> bool
8797 return _IMP_kernel._TrivialDerivedDecorator_has_attribute(self, *args)
8800 def get_derivative(self, a0):
8801 """get_derivative(_TrivialDerivedDecorator self, FloatKey a0) -> double"""
8802 return _IMP_kernel._TrivialDerivedDecorator_get_derivative(self, a0)
8806 """get_name(_TrivialDerivedDecorator self) -> std::string"""
8807 return _IMP_kernel._TrivialDerivedDecorator_get_name(self)
8810 def clear_caches(self):
8811 """clear_caches(_TrivialDerivedDecorator self)"""
8812 return _IMP_kernel._TrivialDerivedDecorator_clear_caches(self)
8815 def set_name(self, a0):
8816 """set_name(_TrivialDerivedDecorator self, std::string a0)"""
8817 return _IMP_kernel._TrivialDerivedDecorator_set_name(self, a0)
8821 """set_check_level(_TrivialDerivedDecorator self, IMP::CheckLevel a0)"""
8822 return _IMP_kernel._TrivialDerivedDecorator_set_check_level(self, a0)
8825 def add_to_derivative(self, a0, a1, a2):
8826 """add_to_derivative(_TrivialDerivedDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8827 return _IMP_kernel._TrivialDerivedDecorator_add_to_derivative(self, a0, a1, a2)
8830 def set_is_optimized(self, a0, a1):
8831 """set_is_optimized(_TrivialDerivedDecorator self, FloatKey a0, bool a1)"""
8832 return _IMP_kernel._TrivialDerivedDecorator_set_is_optimized(self, a0, a1)
8835 def get_is_optimized(self, a0):
8836 """get_is_optimized(_TrivialDerivedDecorator self, FloatKey a0) -> bool"""
8837 return _IMP_kernel._TrivialDerivedDecorator_get_is_optimized(self, a0)
8841 """get_check_level(_TrivialDerivedDecorator self) -> IMP::CheckLevel"""
8842 return _IMP_kernel._TrivialDerivedDecorator_get_check_level(self)
8845 def __eq__(self, *args):
8847 __eq__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8848 __eq__(_TrivialDerivedDecorator self, Particle d) -> bool
8850 return _IMP_kernel._TrivialDerivedDecorator___eq__(self, *args)
8853 def __ne__(self, *args):
8855 __ne__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8856 __ne__(_TrivialDerivedDecorator self, Particle d) -> bool
8858 return _IMP_kernel._TrivialDerivedDecorator___ne__(self, *args)
8861 def __le__(self, *args):
8863 __le__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8864 __le__(_TrivialDerivedDecorator self, Particle d) -> bool
8866 return _IMP_kernel._TrivialDerivedDecorator___le__(self, *args)
8869 def __lt__(self, *args):
8871 __lt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8872 __lt__(_TrivialDerivedDecorator self, Particle d) -> bool
8874 return _IMP_kernel._TrivialDerivedDecorator___lt__(self, *args)
8877 def __ge__(self, *args):
8879 __ge__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8880 __ge__(_TrivialDerivedDecorator self, Particle d) -> bool
8882 return _IMP_kernel._TrivialDerivedDecorator___ge__(self, *args)
8885 def __gt__(self, *args):
8887 __gt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8888 __gt__(_TrivialDerivedDecorator self, Particle d) -> bool
8890 return _IMP_kernel._TrivialDerivedDecorator___gt__(self, *args)
8894 """__hash__(_TrivialDerivedDecorator self) -> std::size_t"""
8895 return _IMP_kernel._TrivialDerivedDecorator___hash__(self)
8899 """__str__(_TrivialDerivedDecorator self) -> std::string"""
8900 return _IMP_kernel._TrivialDerivedDecorator___str__(self)
8904 """__repr__(_TrivialDerivedDecorator self) -> std::string"""
8905 return _IMP_kernel._TrivialDerivedDecorator___repr__(self)
8907 __swig_destroy__ = _IMP_kernel.delete__TrivialDerivedDecorator
8908 __del__ =
lambda self:
None
8909 _TrivialDerivedDecorator_swigregister = _IMP_kernel._TrivialDerivedDecorator_swigregister
8910 _TrivialDerivedDecorator_swigregister(_TrivialDerivedDecorator)
8912 def _TrivialDerivedDecorator_setup_particle(*args):
8914 setup_particle(Model m, ParticleIndex pi) -> _TrivialDerivedDecorator
8915 _TrivialDerivedDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
8917 return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
8919 def _TrivialDerivedDecorator_get_is_setup(*args):
8921 get_is_setup(_ParticleAdaptor p) -> bool
8922 _TrivialDerivedDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
8924 return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
8926 class _TrivialTraitsDecorator(Decorator):
8927 """Proxy of C++ IMP::internal::_TrivialTraitsDecorator class."""
8929 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8931 def get_decorator_traits(self):
8932 """get_decorator_traits(_TrivialTraitsDecorator self) -> StringKey"""
8933 return _IMP_kernel._TrivialTraitsDecorator_get_decorator_traits(self)
8936 def get_default_decorator_traits():
8937 """get_default_decorator_traits() -> StringKey"""
8938 return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
8940 get_default_decorator_traits = staticmethod(get_default_decorator_traits)
8942 def __init__(self, *args):
8944 __init__(IMP::internal::_TrivialTraitsDecorator self) -> _TrivialTraitsDecorator
8945 __init__(IMP::internal::_TrivialTraitsDecorator self, Model m, ParticleIndex id, StringKey tr) -> _TrivialTraitsDecorator
8946 __init__(IMP::internal::_TrivialTraitsDecorator self, Model m, ParticleIndex id) -> _TrivialTraitsDecorator
8947 __init__(IMP::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
8948 __init__(IMP::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d) -> _TrivialTraitsDecorator
8950 this = _IMP_kernel.new__TrivialTraitsDecorator(*args)
8952 self.this.append(this)
8953 except __builtin__.Exception:
8956 def show(self, *args):
8958 show(_TrivialTraitsDecorator self, _ostream out)
8959 show(_TrivialTraitsDecorator self)
8961 return _IMP_kernel._TrivialTraitsDecorator_show(self, *args)
8964 def setup_particle(*args):
8966 setup_particle(Model m, ParticleIndex pi, StringKey tr) -> _TrivialTraitsDecorator
8967 setup_particle(Model m, ParticleIndex pi) -> _TrivialTraitsDecorator
8968 setup_particle(_ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
8969 setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
8971 return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
8973 setup_particle = staticmethod(setup_particle)
8975 def get_is_setup(*args):
8977 get_is_setup(_ParticleAdaptor p, StringKey tr) -> bool
8978 get_is_setup(_ParticleAdaptor p) -> bool
8979 get_is_setup(Model m, ParticleIndex pi, StringKey k) -> bool
8980 get_is_setup(Model m, ParticleIndex pi) -> bool
8982 return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
8984 get_is_setup = staticmethod(get_is_setup)
8986 def get_default_key():
8987 """get_default_key() -> StringKey"""
8988 return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
8990 get_default_key = staticmethod(get_default_key)
8992 def add_attribute(self, *args):
8994 add_attribute(_TrivialTraitsDecorator self, FloatKey k, IMP::Float v, bool opt)
8995 add_attribute(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
8996 add_attribute(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
8997 add_attribute(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
8998 add_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
8999 add_attribute(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
9001 return _IMP_kernel._TrivialTraitsDecorator_add_attribute(self, *args)
9004 def get_value(self, *args):
9006 get_value(_TrivialTraitsDecorator self, FloatKey a0) -> IMP::Float
9007 get_value(_TrivialTraitsDecorator self, IntKey a0) -> IMP::Int
9008 get_value(_TrivialTraitsDecorator self, StringKey a0) -> IMP::String
9009 get_value(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> Particle
9010 get_value(_TrivialTraitsDecorator self, ObjectKey a0) -> Object
9012 return _IMP_kernel._TrivialTraitsDecorator_get_value(self, *args)
9015 def set_value(self, *args):
9017 set_value(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
9018 set_value(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
9019 set_value(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
9020 set_value(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
9021 set_value(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
9023 return _IMP_kernel._TrivialTraitsDecorator_set_value(self, *args)
9026 def remove_attribute(self, *args):
9028 remove_attribute(_TrivialTraitsDecorator self, FloatKey a0)
9029 remove_attribute(_TrivialTraitsDecorator self, IntKey a0)
9030 remove_attribute(_TrivialTraitsDecorator self, StringKey a0)
9031 remove_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0)
9032 remove_attribute(_TrivialTraitsDecorator self, ObjectKey a0)
9034 return _IMP_kernel._TrivialTraitsDecorator_remove_attribute(self, *args)
9037 def has_attribute(self, *args):
9039 has_attribute(_TrivialTraitsDecorator self, FloatKey a0) -> bool
9040 has_attribute(_TrivialTraitsDecorator self, IntKey a0) -> bool
9041 has_attribute(_TrivialTraitsDecorator self, StringKey a0) -> bool
9042 has_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> bool
9043 has_attribute(_TrivialTraitsDecorator self, ObjectKey a0) -> bool
9045 return _IMP_kernel._TrivialTraitsDecorator_has_attribute(self, *args)
9048 def get_derivative(self, a0):
9049 """get_derivative(_TrivialTraitsDecorator self, FloatKey a0) -> double"""
9050 return _IMP_kernel._TrivialTraitsDecorator_get_derivative(self, a0)
9054 """get_name(_TrivialTraitsDecorator self) -> std::string"""
9055 return _IMP_kernel._TrivialTraitsDecorator_get_name(self)
9058 def clear_caches(self):
9059 """clear_caches(_TrivialTraitsDecorator self)"""
9060 return _IMP_kernel._TrivialTraitsDecorator_clear_caches(self)
9063 def set_name(self, a0):
9064 """set_name(_TrivialTraitsDecorator self, std::string a0)"""
9065 return _IMP_kernel._TrivialTraitsDecorator_set_name(self, a0)
9069 """set_check_level(_TrivialTraitsDecorator self, IMP::CheckLevel a0)"""
9070 return _IMP_kernel._TrivialTraitsDecorator_set_check_level(self, a0)
9073 def add_to_derivative(self, a0, a1, a2):
9074 """add_to_derivative(_TrivialTraitsDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9075 return _IMP_kernel._TrivialTraitsDecorator_add_to_derivative(self, a0, a1, a2)
9078 def set_is_optimized(self, a0, a1):
9079 """set_is_optimized(_TrivialTraitsDecorator self, FloatKey a0, bool a1)"""
9080 return _IMP_kernel._TrivialTraitsDecorator_set_is_optimized(self, a0, a1)
9083 def get_is_optimized(self, a0):
9084 """get_is_optimized(_TrivialTraitsDecorator self, FloatKey a0) -> bool"""
9085 return _IMP_kernel._TrivialTraitsDecorator_get_is_optimized(self, a0)
9089 """get_check_level(_TrivialTraitsDecorator self) -> IMP::CheckLevel"""
9090 return _IMP_kernel._TrivialTraitsDecorator_get_check_level(self)
9093 def __eq__(self, *args):
9095 __eq__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9096 __eq__(_TrivialTraitsDecorator self, Particle d) -> bool
9098 return _IMP_kernel._TrivialTraitsDecorator___eq__(self, *args)
9101 def __ne__(self, *args):
9103 __ne__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9104 __ne__(_TrivialTraitsDecorator self, Particle d) -> bool
9106 return _IMP_kernel._TrivialTraitsDecorator___ne__(self, *args)
9109 def __le__(self, *args):
9111 __le__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9112 __le__(_TrivialTraitsDecorator self, Particle d) -> bool
9114 return _IMP_kernel._TrivialTraitsDecorator___le__(self, *args)
9117 def __lt__(self, *args):
9119 __lt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9120 __lt__(_TrivialTraitsDecorator self, Particle d) -> bool
9122 return _IMP_kernel._TrivialTraitsDecorator___lt__(self, *args)
9125 def __ge__(self, *args):
9127 __ge__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9128 __ge__(_TrivialTraitsDecorator self, Particle d) -> bool
9130 return _IMP_kernel._TrivialTraitsDecorator___ge__(self, *args)
9133 def __gt__(self, *args):
9135 __gt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9136 __gt__(_TrivialTraitsDecorator self, Particle d) -> bool
9138 return _IMP_kernel._TrivialTraitsDecorator___gt__(self, *args)
9142 """__hash__(_TrivialTraitsDecorator self) -> std::size_t"""
9143 return _IMP_kernel._TrivialTraitsDecorator___hash__(self)
9147 """__str__(_TrivialTraitsDecorator self) -> std::string"""
9148 return _IMP_kernel._TrivialTraitsDecorator___str__(self)
9152 """__repr__(_TrivialTraitsDecorator self) -> std::string"""
9153 return _IMP_kernel._TrivialTraitsDecorator___repr__(self)
9155 __swig_destroy__ = _IMP_kernel.delete__TrivialTraitsDecorator
9156 __del__ =
lambda self:
None
9157 _TrivialTraitsDecorator_swigregister = _IMP_kernel._TrivialTraitsDecorator_swigregister
9158 _TrivialTraitsDecorator_swigregister(_TrivialTraitsDecorator)
9160 def _TrivialTraitsDecorator_get_default_decorator_traits():
9161 """_TrivialTraitsDecorator_get_default_decorator_traits() -> StringKey"""
9162 return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
9164 def _TrivialTraitsDecorator_setup_particle(*args):
9166 setup_particle(Model m, ParticleIndex pi, StringKey tr) -> _TrivialTraitsDecorator
9167 setup_particle(Model m, ParticleIndex pi) -> _TrivialTraitsDecorator
9168 setup_particle(_ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
9169 _TrivialTraitsDecorator_setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
9171 return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
9173 def _TrivialTraitsDecorator_get_is_setup(*args):
9175 get_is_setup(_ParticleAdaptor p, StringKey tr) -> bool
9176 get_is_setup(_ParticleAdaptor p) -> bool
9177 get_is_setup(Model m, ParticleIndex pi, StringKey k) -> bool
9178 _TrivialTraitsDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
9180 return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
9182 def _TrivialTraitsDecorator_get_default_key():
9183 """_TrivialTraitsDecorator_get_default_key() -> StringKey"""
9184 return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
9187 def __lshift__(*args):
9189 __lshift__(_ostream out, _TrivialDecorator n) -> _ostream
9190 __lshift__(_ostream out, _TrivialDerivedDecorator n) -> _ostream
9191 __lshift__(_ostream out, _TrivialTraitsDecorator n) -> _ostream
9193 return _IMP_kernel.__lshift__(*args)
9194 class _ConstOptimizer(Optimizer):
9195 """Proxy of C++ IMP::internal::_ConstOptimizer class."""
9197 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9199 def __init__(self, m):
9200 """__init__(IMP::internal::_ConstOptimizer self, Model m) -> _ConstOptimizer"""
9201 this = _IMP_kernel.new__ConstOptimizer(m)
9203 self.this.append(this)
9204 except __builtin__.Exception:
9207 def do_optimize(self, max_steps):
9208 """do_optimize(_ConstOptimizer self, unsigned int max_steps) -> IMP::Float"""
9209 return _IMP_kernel._ConstOptimizer_do_optimize(self, max_steps)
9212 def get_version_info(self):
9213 """get_version_info(_ConstOptimizer self) -> VersionInfo"""
9214 return _IMP_kernel._ConstOptimizer_get_version_info(self)
9218 """__str__(_ConstOptimizer self) -> std::string"""
9219 return _IMP_kernel._ConstOptimizer___str__(self)
9223 """__repr__(_ConstOptimizer self) -> std::string"""
9224 return _IMP_kernel._ConstOptimizer___repr__(self)
9229 return _object_cast_to__ConstOptimizer(o)
9231 _ConstOptimizer_swigregister = _IMP_kernel._ConstOptimizer_swigregister
9232 _ConstOptimizer_swigregister(_ConstOptimizer)
9235 def get_particle(p):
9236 """get_particle(Particle p) -> Particle"""
9237 return _IMP_kernel.get_particle(p)
9239 def _decorator_test(p):
9240 """_decorator_test(Particle p)"""
9241 return _IMP_kernel._decorator_test(p)
9243 def _overloaded_decorator(*args):
9245 _overloaded_decorator(_TrivialDecorator a) -> int
9246 _overloaded_decorator(_TrivialDerivedDecorator a) -> int
9248 return _IMP_kernel._overloaded_decorator(*args)
9250 def _take_particles(*args):
9252 _take_particles(IMP::Particles const & ps) -> unsigned int
9253 _take_particles(Model m, IMP::Particles const & ps) -> unsigned int
9254 _take_particles(Model m, IMP::Particles const & ps, TextOutput out) -> unsigned int
9256 return _IMP_kernel._take_particles(*args)
9258 def _give_particles(m):
9259 """_give_particles(Model m) -> IMP::Particles const &"""
9260 return _IMP_kernel._give_particles(m)
9262 def _pass_particles(ps):
9263 """_pass_particles(IMP::Particles const & ps) -> IMP::Particles const &"""
9264 return _IMP_kernel._pass_particles(ps)
9266 def _pass_particle(ps):
9267 """_pass_particle(Particle ps) -> Particle"""
9268 return _IMP_kernel._pass_particle(ps)
9270 def _pass_particle_pair(pp):
9271 """_pass_particle_pair(IMP::ParticlePair const & pp) -> IMP::ParticlePair const &"""
9272 return _IMP_kernel._pass_particle_pair(pp)
9274 def _give_particles_copy(m):
9275 """_give_particles_copy(Model m) -> IMP::Particles"""
9276 return _IMP_kernel._give_particles_copy(m)
9278 def _pass_float_keys(input):
9279 """_pass_float_keys(IMP::FloatKeys const & input) -> IMP::FloatKeys"""
9280 return _IMP_kernel._pass_float_keys(input)
9284 _pass(IMP::Particles const & p) -> IMP::Particles const
9285 _pass(IMP::Restraints const & p) -> IMP::Restraints const &
9287 return _IMP_kernel._pass(*args)
9289 def _pass_decorators(p):
9290 """_pass_decorators(IMP::internal::_TrivialDecorators const & p) -> IMP::internal::_TrivialDecorators const &"""
9291 return _IMP_kernel._pass_decorators(p)
9293 def _pass_decorator_traits(p):
9294 """_pass_decorator_traits(IMP::internal::_TrivialTraitsDecorators const & p) -> IMP::internal::_TrivialTraitsDecorators const &"""
9295 return _IMP_kernel._pass_decorator_traits(p)
9297 def _pass_particle_pairs(p):
9298 """_pass_particle_pairs(IMP::ParticlePairsTemp const & p) -> IMP::ParticlePairsTemp"""
9299 return _IMP_kernel._pass_particle_pairs(p)
9301 def _pass_particle_index_pairs(p):
9302 """_pass_particle_index_pairs(IMP::ParticleIndexPairs const & p) -> IMP::ParticleIndexPairs"""
9303 return _IMP_kernel._pass_particle_index_pairs(p)
9305 def _pass_model_objects(p):
9306 """_pass_model_objects(IMP::ModelObjectsTemp const & p) -> IMP::ModelObjectsTemp"""
9307 return _IMP_kernel._pass_model_objects(p)
9309 def _pass_particles_temps(ps):
9310 """_pass_particles_temps(IMP::ParticlesTemps const & ps) -> IMP::ParticlesTemps"""
9311 return _IMP_kernel._pass_particles_temps(ps)
9313 def _test_overload(*args):
9315 _test_overload(IMP::Particles const & ps) -> int
9316 _test_overload(IMP::Restraints const & ps) -> int
9318 return _IMP_kernel._test_overload(*args)
9320 def _get_range(m, k):
9321 """_get_range(Model m, FloatKey k) -> IMP::FloatRange"""
9322 return _IMP_kernel._get_range(m, k)
9324 def _create_particles_from_pdb(name, m):
9325 """_create_particles_from_pdb(std::string name, Model m) -> IMP::ParticleIndexes"""
9326 return _IMP_kernel._create_particles_from_pdb(name, m)
9327 class _LogPairScore(PairScore):
9328 """Proxy of C++ IMP::internal::_LogPairScore class."""
9330 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9331 __repr__ = _swig_repr
9334 """__init__(IMP::internal::_LogPairScore self) -> _LogPairScore"""
9335 this = _IMP_kernel.new__LogPairScore()
9337 self.this.append(this)
9338 except __builtin__.Exception:
9341 def do_get_inputs(self, arg2, arg3):
9342 """do_get_inputs(_LogPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
9343 return _IMP_kernel._LogPairScore_do_get_inputs(self, arg2, arg3)
9346 def get_version_info(self):
9347 """get_version_info(_LogPairScore self) -> VersionInfo"""
9348 return _IMP_kernel._LogPairScore_get_version_info(self)
9351 def get_particle_pairs(self):
9352 """get_particle_pairs(_LogPairScore self) -> IMP::ParticlePairsTemp"""
9353 return _IMP_kernel._LogPairScore_get_particle_pairs(self)
9357 """clear(_LogPairScore self)"""
9358 return _IMP_kernel._LogPairScore_clear(self)
9361 def get_contains(self, pp):
9362 """get_contains(_LogPairScore self, IMP::ParticlePair const & pp) -> bool"""
9363 return _IMP_kernel._LogPairScore_get_contains(self, pp)
9365 _LogPairScore_swigregister = _IMP_kernel._LogPairScore_swigregister
9366 _LogPairScore_swigregister(_LogPairScore)
9369 def _overloaded_particles(*args):
9371 _overloaded_particles(Particle arg1)
9372 _overloaded_particles(IMP::Particles const & arg1)
9373 _overloaded_particles(IMP::ParticlesTemp const & arg1)
9374 _overloaded_particles(Model arg1, IMP::ParticleIndexes const & arg2)
9375 _overloaded_particles(IMP::internal::_TrivialDecorators const & arg1)
9376 _overloaded_particles(_TrivialDecorator arg1)
9378 return _IMP_kernel._overloaded_particles(*args)
9379 class _ImplicitParticles(object):
9380 """Proxy of C++ IMP::internal::_ImplicitParticles class."""
9382 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9383 __repr__ = _swig_repr
9385 def __init__(self, *args):
9387 __init__(IMP::internal::_ImplicitParticles self, Particle arg2) -> _ImplicitParticles
9388 __init__(IMP::internal::_ImplicitParticles self, IMP::Particles const & arg2) -> _ImplicitParticles
9389 __init__(IMP::internal::_ImplicitParticles self, IMP::ParticlesTemp const & arg2) -> _ImplicitParticles
9390 __init__(IMP::internal::_ImplicitParticles self, Model arg2, IMP::ParticleIndexes const & arg3) -> _ImplicitParticles
9391 __init__(IMP::internal::_ImplicitParticles self, IMP::internal::_TrivialDecorators const & arg2) -> _ImplicitParticles
9392 __init__(IMP::internal::_ImplicitParticles self, _TrivialDecorator arg2) -> _ImplicitParticles
9394 this = _IMP_kernel.new__ImplicitParticles(*args)
9396 self.this.append(this)
9397 except __builtin__.Exception:
9399 __swig_destroy__ = _IMP_kernel.delete__ImplicitParticles
9400 __del__ =
lambda self:
None
9401 _ImplicitParticles_swigregister = _IMP_kernel._ImplicitParticles_swigregister
9402 _ImplicitParticles_swigregister(_ImplicitParticles)
9405 def _implicit_particles(arg1):
9406 """_implicit_particles(_ImplicitParticles arg1)"""
9407 return _IMP_kernel._implicit_particles(arg1)
9409 def _take_particle_adaptor(pa):
9410 """_take_particle_adaptor(_ParticleAdaptor pa) -> ParticleIndex"""
9411 return _IMP_kernel._take_particle_adaptor(pa)
9413 def _take_particle_indexes_adaptor(pa):
9414 """_take_particle_indexes_adaptor(_ParticleIndexesAdaptor pa) -> IMP::ParticleIndexes"""
9415 return _IMP_kernel._take_particle_indexes_adaptor(pa)
9416 class ScopedSetFloatAttribute(_RAII):
9417 """Proxy of C++ IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> class."""
9419 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9421 def __init__(self, *args):
9423 __init__(IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> self) -> ScopedSetFloatAttribute
9424 __init__(IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> self, Particle p, FloatKey key, double const & value) -> ScopedSetFloatAttribute
9426 this = _IMP_kernel.new_ScopedSetFloatAttribute(*args)
9428 self.this.append(this)
9429 except __builtin__.Exception:
9432 def set(self, p, key, value):
9433 """set(ScopedSetFloatAttribute self, Particle p, FloatKey key, double const & value)"""
9434 return _IMP_kernel.ScopedSetFloatAttribute_set(self, p, key, value)
9438 """reset(ScopedSetFloatAttribute self)"""
9439 return _IMP_kernel.ScopedSetFloatAttribute_reset(self)
9441 __swig_destroy__ = _IMP_kernel.delete_ScopedSetFloatAttribute
9442 __del__ =
lambda self:
None
9444 def show(self, *args):
9446 show(ScopedSetFloatAttribute self, _ostream out)
9447 show(ScopedSetFloatAttribute self)
9449 return _IMP_kernel.ScopedSetFloatAttribute_show(self, *args)
9453 """__str__(ScopedSetFloatAttribute self) -> std::string"""
9454 return _IMP_kernel.ScopedSetFloatAttribute___str__(self)
9458 """__repr__(ScopedSetFloatAttribute self) -> std::string"""
9459 return _IMP_kernel.ScopedSetFloatAttribute___repr__(self)
9461 ScopedSetFloatAttribute_swigregister = _IMP_kernel.ScopedSetFloatAttribute_swigregister
9462 ScopedSetFloatAttribute_swigregister(ScopedSetFloatAttribute)
9472 if sys.platform ==
'win32' and 'IMP_LD_PATH' in os.environ:
9473 dirs = os.environ[
'IMP_LD_PATH'].split(
":")
9474 pathcomps = os.environ[
'PATH'].split(
";")
9476 if d
not in pathcomps:
9477 os.environ[
'PATH'] = d +
';' + os.environ[
'PATH']
9485 """Allow command line tools to easily implement multiple commands.
9486 Typically, an IMP command line tool will use an instance of this class
9487 to provide a consistent interface to multiple distinct commands
9488 from a single binary, rather than providing a potentially large
9489 number of binaries. This is similar to the way a number of common
9490 command line tools outside of IMP function (e.g. Git provides a single
9491 `git` tool which implements multiple commands - `git add`, `git commit`,
9492 `git push` and so on).
9494 Each command is implemented with a Python module of the same name
9495 that can be imported from the module (for example, if `module_name`
9496 is `IMP.foo`, the `bar` command is provided by the `IMP.foo.bar` Python
9497 module, which would usually be found as `modules/foo/pyext/src/bar.py`).
9498 Each such module should have a docstring and a `%main()` method
9499 that takes no arguments (the module should also call its `%main()` method
9500 if it is run directly, i.e. with something like
9501 `if __name__=="__main__": %main()`). The encompassing module
9502 (`IMP.foo` in the example) should define `_all_commands` as a Python
9503 list of all valid commands.
9505 See the `multifit` and `cnmultifit` command line tools for example
9509 def __init__(self, short_help, long_help, module_name):
9511 @param short_help A few words that describe the command line tool.
9512 @param long_help Longer text, used in the `help` command.
9513 @param module_name Name of the module (e.g. `IMP.foo`) that
9514 implements the commands.
9516 self.short_help = short_help
9517 self.long_help = long_help
9518 self.module_name = module_name
9519 self._all_commands = self.import_module()._all_commands
9520 self._progname = os.path.basename(sys.argv[0])
9523 """Call this method to act upon the user-provided command line"""
9524 if len(sys.argv) <= 1:
9525 print(self.short_help +
" Use '%s help' for help." % self._progname)
9527 command = sys.argv[1]
9528 if command
in (
'help',
'--help',
'-h'):
9529 if len(sys.argv) == 3:
9530 self.show_command_help(sys.argv[2])
9533 elif command ==
'--version':
9535 elif command
in self._all_commands:
9536 self.do_command(command)
9538 self.unknown_command(command)
9540 def import_module(self, mod=None):
9541 modname = self.module_name
9543 modname +=
"." + mod
9544 return __import__(modname, {}, {}, [
''])
9546 def unknown_command(self, command):
9547 print(
"Unknown command: '%s'" % command)
9548 print(
"Use '%s help' for help." % self._progname)
9551 def _get_version(self):
9552 return self.import_module().get_module_version()
9554 def show_version(self):
9555 print(self._progname +
' ' + self._get_version())
9557 def show_help(self):
9558 ver = self._get_version()
9559 print(
"%s, version %s." % (self._progname, ver))
9560 print(self.long_help +
"""
9562 This program is part of IMP, the Integrative Modeling Platform,
9563 which is Copyright 2007-2019 IMP Inventors.
9564 For additional information about IMP, see <https://integrativemodeling.org>.
9566 Usage: %s <command> [options] [args]
9568 Commands:""" % self._progname)
9569 commands = self._all_commands[:] + [
'help']
9571 cmdlen = max([len(c)
for c
in commands])
9574 doc =
'Get help on using %s.' % self._progname
9576 doc = self.import_module(c).__doc__
or "<no help>"
9577 c +=
' ' * (cmdlen - len(c))
9578 print(
' ' + c +
' ' + doc)
9580 Use "%s help <command>" for detailed help on any command
9581 or "%s --version" to see the version number.""" % (self._progname,
9584 def do_command(self, command):
9585 mod = self.import_module(command)
9586 sys.argv[0] = self._progname +
' ' + command
9590 def show_command_help(self, command):
9591 if command ==
'help':
9593 elif command
in self._all_commands
or command ==
'help':
9594 mod = self.import_module(command)
9595 sys.argv = [self._progname +
' ' + command,
'--help']
9598 self.unknown_command(command)
9605 g = networkx.DiGraph()
9606 if len(ig.get_vertices()) == 0:
9615 return self.p.get_name()
9617 def __call__(self, name):
9618 return self.p.__call__(name)
9620 for vi
in ig.get_vertices():
9621 n = ig.get_vertex_name(vi)
9622 g.add_node(NodeWrapper(n))
9623 for vi
in ig.get_vertices():
9624 n = ig.get_vertex_name(vi)
9625 for ni
in ig.get_out_neighbors(vi):
9626 nn = ig.get_vertex_name(ni)
9627 g.add_edge(NodeWrapper(n), NodeWrapper(nn))
9634 n0 = name.get_name()
9637 n1 = str(n0).replace(
'"',
'')
9638 n2 = n1.replace(
"\n",
'')
9641 from altgraph
import Graph, Dot
9642 graph = Graph.Graph()
9643 for i, v
in enumerate(g.get_vertices()):
9645 for i, v
in enumerate(g.get_vertices()):
9646 for n
in g.get_out_neighbors(v):
9647 graph.add_edge(v, n)
9648 dot = Dot.Dot(graph)
9649 for i, v
in enumerate(g.get_vertices()):
9650 dot.node_style(i, label=clean(g.get_vertex_name(v)))
9657 st = g.get_graphviz_string()
9658 open(tfn,
"w").write(st)
9663 sys.stderr.write(
"Cannot run dot on Python 2.3 systems.\n")
9666 print(
"running dot")
9667 sp = subprocess.Popen([
"dot",
"-Tpdf", tfn,
"-o" + tfon])
9671 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")
9674 if platform.system() ==
"Darwin":
9677 cmd = [
"gv",
"acroread",
"xpdf"]
9680 print(
"launching viewer " + c)
9682 subprocess.check_call([c, tfon])
9688 print(
"Could not display file. It is saved at " + tfon)
9698 """Mark a Python module as deprecated.
9699 @note The `module` argument would normally be `__name__`.
9700 @see [deprecation support](@ref deprecation)."""
9702 "Module %s is deprecated. %s\n" % (module, help_message))
9705 """Python decorator to mark a class as deprecated.
9706 @see [deprecation support](@ref deprecation)."""
9708 orig_init = obj.__init__
9711 @functools.wraps(orig_init, (
'__name__',
'__doc__'))
9712 def __init__(obj, *args, **keys):
9714 % (type(obj), help_message))
9715 orig_init(obj, *args, **keys)
9716 obj.__init__ = __init__
9721 """Python decorator to mark a method as deprecated.
9722 @see [deprecation support](@ref deprecation)."""
9723 def out_wrapper(obj):
9724 @functools.wraps(obj)
9725 def wrapper(cls, *args, **keys):
9727 % (obj.__name__, type(cls), help_message))
9728 return obj(cls, *args, **keys)
9733 """Python decorator to mark a function as deprecated.
9734 @see [deprecation support](@ref deprecation)."""
9735 def out_wrapper(obj):
9736 @functools.wraps(obj)
9737 def wrapper(*args, **keys):
9739 % (obj.__name__, help_message))
9740 return obj(*args, **keys)
9744 @contextlib.contextmanager
9746 """Context manager to temporarily allow (or disallow) deprecated code.
9747 @see [deprecation support](@ref deprecation)."""
9754 def _get_all_flags(ntokens):
9755 """_get_all_flags(unsigned int ntokens) -> IMP::Strings"""
9756 return _IMP_kernel._get_all_flags(ntokens)
9758 def _print_internal_help(out, description):
9759 """_print_internal_help(_ostream out, std::string description)"""
9760 return _IMP_kernel._print_internal_help(out, description)
9766 from .
import _compat_argparse
as argparse
9769 class _PassThroughAction(argparse.Action):
9770 """Pass an argument through to the IMP Boost parser"""
9771 def __call__(self, parser, namespace, values, option_string=None):
9772 parser._boost_command_line.append(option_string)
9774 parser._boost_command_line.append(values)
9777 if option_string
in (
'-h',
'--help',
'--help_advanced',
'--version'):
9778 parser._handle_boost()
9782 """IMP-specific subclass of argparse.ArgumentParser.
9783 This adds options common to all IMP applications
9784 (see IMP::setup_from_argv()).
9787 def __init__(self, *args, **kwargs):
9789 kwargs[
'add_help'] =
False
9790 super(ArgumentParser, self).__init__(*args, **kwargs)
9791 for ntoken
in (0, 1):
9792 flags = _get_all_flags(ntoken)
9794 arg = [
'-h',
'--help']
if f ==
'help' else [
'--' + f]
9795 self.add_argument(*arg, help=argparse.SUPPRESS,
9796 nargs=
None if ntoken
else 0,
9797 action=_PassThroughAction,
9798 default=argparse.SUPPRESS)
9801 """Parse the command line and return optional and positional arguments.
9802 This functions in the same way as the method in the base class
9803 argparse.ArgumentParser, except that it also processes optional
9804 arguments common to all IMP applications (these are not returned
9805 in `args`, but can be obtained in the usual way, e.g. by calling
9806 IMP::get_string_flag()).
9809 self._boost_command_line = [sys.argv[0]]
9810 ret = super(ArgumentParser, self).
parse_args(args, namespace)
9811 if len(self._boost_command_line) > 1:
9812 self._handle_boost()
9815 def _get_description(self):
9816 return self.format_help() +
"\nOptions common to all IMP applications:"
9818 def print_help(self, file=None):
9819 _print_internal_help(file
if file
else sys.stdout,
9820 self._get_description())
9822 def _handle_boost(self):
9824 self._get_description(),
9827 class RandomNumberGenerator(object):
9828 """Proxy of C++ IMP::RandomNumberGenerator class."""
9830 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9831 __repr__ = _swig_repr
9834 """seed(RandomNumberGenerator self, ::boost::int32_t x)"""
9835 return _IMP_kernel.RandomNumberGenerator_seed(self, x)
9839 """__call__(RandomNumberGenerator self) -> int"""
9840 return _IMP_kernel.RandomNumberGenerator___call__(self)
9844 """__init__(IMP::RandomNumberGenerator self) -> RandomNumberGenerator"""
9845 this = _IMP_kernel.new_RandomNumberGenerator()
9847 self.this.append(this)
9848 except __builtin__.Exception:
9850 __swig_destroy__ = _IMP_kernel.delete_RandomNumberGenerator
9851 __del__ =
lambda self:
None
9852 RandomNumberGenerator_swigregister = _IMP_kernel.RandomNumberGenerator_swigregister
9853 RandomNumberGenerator_swigregister(RandomNumberGenerator)
9858 get_random_float_uniform() -> float
9859 get_random_float_uniform(float min, float max) -> float
9861 return _IMP_kernel.get_random_float_uniform(*args)
9865 get_random_double_uniform() -> double
9866 get_random_double_uniform(double min, double max) -> double
9868 return _IMP_kernel.get_random_double_uniform(*args)
9870 def get_random_floats_normal(n, mean=0.0, stddev=1.0):
9872 get_random_floats_normal(unsigned int n, float mean=0.0, float stddev=1.0) -> IMP::Vector< float >
9873 get_random_floats_normal(unsigned int n, float mean=0.0) -> IMP::Vector< float >
9874 get_random_floats_normal(unsigned int n) -> IMP::Vector< float >
9876 return _IMP_kernel.get_random_floats_normal(n, mean, stddev)
9878 def get_random_doubles_normal(n, mean=0.0, stddev=1.0):
9880 get_random_doubles_normal(unsigned int n, double mean=0.0, double stddev=1.0) -> IMP::Vector< double >
9881 get_random_doubles_normal(unsigned int n, double mean=0.0) -> IMP::Vector< double >
9882 get_random_doubles_normal(unsigned int n) -> IMP::Vector< double >
9884 return _IMP_kernel.get_random_doubles_normal(n, mean, stddev)
9886 def get_random_floats_uniform(n):
9887 """get_random_floats_uniform(unsigned int n) -> IMP::Vector< float >"""
9888 return _IMP_kernel.get_random_floats_uniform(n)
9890 def get_random_doubles_uniform(n):
9891 """get_random_doubles_uniform(unsigned int n) -> IMP::Vector< double >"""
9892 return _IMP_kernel.get_random_doubles_uniform(n)
9895 """get_random_seed() -> boost::uint64_t"""
9896 return _IMP_kernel.get_random_seed()
9898 def _get_derivatives_numpy(m, k, m_pyobj):
9899 """_get_derivatives_numpy(Model m, FloatKey k, PyObject * m_pyobj) -> PyObject *"""
9900 return _IMP_kernel._get_derivatives_numpy(m, k, m_pyobj)
9902 def _get_floats_numpy(m, k, m_pyobj):
9903 """_get_floats_numpy(Model m, FloatKey k, PyObject * m_pyobj) -> PyObject *"""
9904 return _IMP_kernel._get_floats_numpy(m, k, m_pyobj)
9906 def _get_ints_numpy(m, k, m_pyobj):
9907 """_get_ints_numpy(Model m, IntKey k, PyObject * m_pyobj) -> PyObject *"""
9908 return _IMP_kernel._get_ints_numpy(m, k, m_pyobj)
9910 def _get_spheres_numpy(m, m_pyobj):
9911 """_get_spheres_numpy(Model m, PyObject * m_pyobj) -> PyObject *"""
9912 return _IMP_kernel._get_spheres_numpy(m, m_pyobj)
9914 def _get_sphere_derivatives_numpy(m, m_pyobj):
9915 """_get_sphere_derivatives_numpy(Model m, PyObject * m_pyobj) -> PyObject *"""
9916 return _IMP_kernel._get_sphere_derivatives_numpy(m, m_pyobj)
9918 def get_module_version():
9919 """get_module_version() -> std::string const"""
9920 return _IMP_kernel.get_module_version()
9923 """get_example_path(std::string fname) -> std::string"""
9924 return _IMP_kernel.get_example_path(fname)
9927 """get_data_path(std::string fname) -> std::string"""
9928 return _IMP_kernel.get_data_path(fname)
9930 from .
import _version_check
9931 _version_check.check_version(get_module_version())
9932 __version__ = get_module_version()
9935 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.
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.
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.
def parse_args
Parse the command line and return optional and positional arguments.
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.
IMP-specific subclass of argparse.ArgumentParser.
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.