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__,
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__,
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__,
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__,
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_ints(self, key, value):
4127 """add_ints(RestraintInfo self, std::string key, IMP::Ints value)"""
4128 return _IMP_kernel.RestraintInfo_add_ints(self, key, value)
4131 def get_number_of_ints(self):
4132 """get_number_of_ints(RestraintInfo self) -> unsigned int"""
4133 return _IMP_kernel.RestraintInfo_get_number_of_ints(self)
4136 def get_ints_key(self, i):
4137 """get_ints_key(RestraintInfo self, unsigned int i) -> std::string"""
4138 return _IMP_kernel.RestraintInfo_get_ints_key(self, i)
4141 def get_ints_value(self, i):
4142 """get_ints_value(RestraintInfo self, unsigned int i) -> IMP::Ints"""
4143 return _IMP_kernel.RestraintInfo_get_ints_value(self, i)
4146 def add_strings(self, key, value):
4147 """add_strings(RestraintInfo self, std::string key, IMP::Strings value)"""
4148 return _IMP_kernel.RestraintInfo_add_strings(self, key, value)
4151 def get_number_of_strings(self):
4152 """get_number_of_strings(RestraintInfo self) -> unsigned int"""
4153 return _IMP_kernel.RestraintInfo_get_number_of_strings(self)
4156 def get_strings_key(self, i):
4157 """get_strings_key(RestraintInfo self, unsigned int i) -> std::string"""
4158 return _IMP_kernel.RestraintInfo_get_strings_key(self, i)
4161 def get_strings_value(self, i):
4162 """get_strings_value(RestraintInfo self, unsigned int i) -> IMP::Strings"""
4163 return _IMP_kernel.RestraintInfo_get_strings_value(self, i)
4166 def add_filenames(self, key, value):
4167 """add_filenames(RestraintInfo self, std::string key, IMP::Strings value)"""
4168 return _IMP_kernel.RestraintInfo_add_filenames(self, key, value)
4171 def get_number_of_filenames(self):
4172 """get_number_of_filenames(RestraintInfo self) -> unsigned int"""
4173 return _IMP_kernel.RestraintInfo_get_number_of_filenames(self)
4176 def get_filenames_key(self, i):
4177 """get_filenames_key(RestraintInfo self, unsigned int i) -> std::string"""
4178 return _IMP_kernel.RestraintInfo_get_filenames_key(self, i)
4181 def get_filenames_value(self, i):
4182 """get_filenames_value(RestraintInfo self, unsigned int i) -> IMP::Strings"""
4183 return _IMP_kernel.RestraintInfo_get_filenames_value(self, i)
4186 def add_particle_indexes(self, key, value):
4187 """add_particle_indexes(RestraintInfo self, std::string key, IMP::ParticleIndexes value)"""
4188 return _IMP_kernel.RestraintInfo_add_particle_indexes(self, key, value)
4191 def get_number_of_particle_indexes(self):
4192 """get_number_of_particle_indexes(RestraintInfo self) -> unsigned int"""
4193 return _IMP_kernel.RestraintInfo_get_number_of_particle_indexes(self)
4196 def get_particle_indexes_key(self, i):
4197 """get_particle_indexes_key(RestraintInfo self, unsigned int i) -> std::string"""
4198 return _IMP_kernel.RestraintInfo_get_particle_indexes_key(self, i)
4201 def get_particle_indexes_value(self, i):
4202 """get_particle_indexes_value(RestraintInfo self, unsigned int i) -> IMP::ParticleIndexes"""
4203 return _IMP_kernel.RestraintInfo_get_particle_indexes_value(self, i)
4206 def get_version_info(self):
4207 """get_version_info(RestraintInfo self) -> VersionInfo"""
4208 return _IMP_kernel.RestraintInfo_get_version_info(self)
4212 """__str__(RestraintInfo self) -> std::string"""
4213 return _IMP_kernel.RestraintInfo___str__(self)
4217 """__repr__(RestraintInfo self) -> std::string"""
4218 return _IMP_kernel.RestraintInfo___repr__(self)
4223 return _object_cast_to_RestraintInfo(o)
4225 RestraintInfo_swigregister = _IMP_kernel.RestraintInfo_swigregister
4226 RestraintInfo_swigregister(RestraintInfo)
4228 class Restraint(ModelObject):
4229 """Proxy of C++ IMP::Restraint class."""
4231 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4233 def __init__(self, m, name):
4234 """__init__(IMP::Restraint self, Model m, std::string name) -> Restraint"""
4235 if self.__class__ == Restraint:
4239 this = _IMP_kernel.new_Restraint(_self, m, name)
4241 self.this.append(this)
4242 except __builtin__.Exception:
4245 if self.__class__ != Restraint:
4246 _director_objects.register(self)
4251 def get_score(self):
4252 """get_score(Restraint self) -> double"""
4253 return _IMP_kernel.Restraint_get_score(self)
4256 def evaluate(self, calc_derivs):
4257 """evaluate(Restraint self, bool calc_derivs) -> double"""
4258 return _IMP_kernel.Restraint_evaluate(self, calc_derivs)
4261 def evaluate_if_good(self, calc_derivatives):
4262 """evaluate_if_good(Restraint self, bool calc_derivatives) -> double"""
4263 return _IMP_kernel.Restraint_evaluate_if_good(self, calc_derivatives)
4266 def evaluate_if_below(self, calc_derivatives, max):
4267 """evaluate_if_below(Restraint self, bool calc_derivatives, double max) -> double"""
4268 return _IMP_kernel.Restraint_evaluate_if_below(self, calc_derivatives, max)
4271 def unprotected_evaluate(self, da):
4272 """unprotected_evaluate(Restraint self, DerivativeAccumulator da) -> double"""
4273 return _IMP_kernel.Restraint_unprotected_evaluate(self, da)
4276 def unprotected_evaluate_if_good(self, da, max):
4277 """unprotected_evaluate_if_good(Restraint self, DerivativeAccumulator da, double max) -> double"""
4278 return _IMP_kernel.Restraint_unprotected_evaluate_if_good(self, da, max)
4281 def unprotected_evaluate_if_below(self, da, max):
4282 """unprotected_evaluate_if_below(Restraint self, DerivativeAccumulator da, double max) -> double"""
4283 return _IMP_kernel.Restraint_unprotected_evaluate_if_below(self, da, max)
4286 def get_static_info(self):
4287 """get_static_info(Restraint self) -> RestraintInfo"""
4288 return _IMP_kernel.Restraint_get_static_info(self)
4291 def get_dynamic_info(self):
4292 """get_dynamic_info(Restraint self) -> RestraintInfo"""
4293 return _IMP_kernel.Restraint_get_dynamic_info(self)
4296 def add_score_and_derivatives(self, sa):
4297 """add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
4298 return _IMP_kernel.Restraint_add_score_and_derivatives(self, sa)
4302 """create_decomposition(Restraint self) -> Restraint"""
4303 return _IMP_kernel.Restraint_create_decomposition(self)
4306 def create_current_decomposition(self):
4307 """create_current_decomposition(Restraint self) -> Restraint"""
4308 return _IMP_kernel.Restraint_create_current_decomposition(self)
4311 def set_weight(self, weight):
4312 """set_weight(Restraint self, IMP::Float weight)"""
4313 return _IMP_kernel.Restraint_set_weight(self, weight)
4316 def get_weight(self):
4317 """get_weight(Restraint self) -> IMP::Float"""
4318 return _IMP_kernel.Restraint_get_weight(self)
4321 def get_maximum_score(self):
4322 """get_maximum_score(Restraint self) -> double"""
4323 return _IMP_kernel.Restraint_get_maximum_score(self)
4326 def set_maximum_score(self, s):
4327 """set_maximum_score(Restraint self, double s)"""
4328 return _IMP_kernel.Restraint_set_maximum_score(self, s)
4333 create_scoring_function(Restraint self, double weight=1.0, double max) -> ScoringFunction
4334 create_scoring_function(Restraint self, double weight=1.0) -> ScoringFunction
4335 create_scoring_function(Restraint self) -> ScoringFunction
4337 return _IMP_kernel.Restraint_create_scoring_function(self, *args)
4340 def set_last_score(self, s):
4341 """set_last_score(Restraint self, double s)"""
4342 return _IMP_kernel.Restraint_set_last_score(self, s)
4345 def get_last_score(self):
4346 """get_last_score(Restraint self) -> double"""
4347 return _IMP_kernel.Restraint_get_last_score(self)
4350 def get_was_good(self):
4351 """get_was_good(Restraint self) -> bool"""
4352 return _IMP_kernel.Restraint_get_was_good(self)
4354 __swig_destroy__ = _IMP_kernel.delete_Restraint
4355 __del__ =
lambda self:
None
4357 def do_create_decomposition(self):
4358 """do_create_decomposition(Restraint self) -> IMP::Restraints"""
4359 return _IMP_kernel.Restraint_do_create_decomposition(self)
4362 def do_create_current_decomposition(self):
4363 """do_create_current_decomposition(Restraint self) -> IMP::Restraints"""
4364 return _IMP_kernel.Restraint_do_create_current_decomposition(self)
4367 def do_add_score_and_derivatives(self, sa):
4368 """do_add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
4369 return _IMP_kernel.Restraint_do_add_score_and_derivatives(self, sa)
4372 def do_get_outputs(self):
4373 """do_get_outputs(Restraint self) -> IMP::ModelObjectsTemp"""
4374 return _IMP_kernel.Restraint_do_get_outputs(self)
4378 """__str__(Restraint self) -> std::string"""
4379 return _IMP_kernel.Restraint___str__(self)
4383 """__repr__(Restraint self) -> std::string"""
4384 return _IMP_kernel.Restraint___repr__(self)
4389 return _object_cast_to_Restraint(o)
4392 def get_type_name(self):
4393 return self.__class__.__name__
4394 def do_show(self, out):
4396 def get_version_info(self):
4398 return VersionInfo(self.__module__,
4405 return _object_cast_to_Restraint(o)
4407 def __disown__(self):
4409 _IMP_kernel.disown_Restraint(self)
4410 return weakref_proxy(self)
4412 def do_destroy(self):
4413 """do_destroy(Restraint self)"""
4414 return _IMP_kernel.Restraint_do_destroy(self)
4417 def handle_set_has_required_score_states(self, arg0):
4418 """handle_set_has_required_score_states(Restraint self, bool arg0)"""
4419 return _IMP_kernel.Restraint_handle_set_has_required_score_states(self, arg0)
4422 def do_get_inputs(self):
4423 """do_get_inputs(Restraint self) -> IMP::ModelObjectsTemp"""
4424 return _IMP_kernel.Restraint_do_get_inputs(self)
4427 def do_get_interactions(self):
4428 """do_get_interactions(Restraint self) -> IMP::ModelObjectsTemps"""
4429 return _IMP_kernel.Restraint_do_get_interactions(self)
4431 Restraint_swigregister = _IMP_kernel.Restraint_swigregister
4432 Restraint_swigregister(Restraint)
4434 class _RestraintsAdaptor(_InputAdaptor):
4435 """Proxy of C++ IMP::RestraintsAdaptor class."""
4437 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4438 __repr__ = _swig_repr
4440 def __init__(self, *args):
4442 __init__(IMP::RestraintsAdaptor self) -> _RestraintsAdaptor
4443 __init__(IMP::RestraintsAdaptor self, IMP::Restraints const & sf) -> _RestraintsAdaptor
4444 __init__(IMP::RestraintsAdaptor self, IMP::RestraintsTemp const & sf) -> _RestraintsAdaptor
4445 __init__(IMP::RestraintsAdaptor self, Restraint sf) -> _RestraintsAdaptor
4447 this = _IMP_kernel.new__RestraintsAdaptor(*args)
4449 self.this.append(this)
4450 except __builtin__.Exception:
4452 __swig_destroy__ = _IMP_kernel.delete__RestraintsAdaptor
4453 __del__ =
lambda self:
None
4454 _RestraintsAdaptor_swigregister = _IMP_kernel._RestraintsAdaptor_swigregister
4455 _RestraintsAdaptor_swigregister(_RestraintsAdaptor)
4457 class RestraintSet(Restraint):
4458 """Proxy of C++ IMP::RestraintSet class."""
4460 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4462 def __init__(self, *args):
4464 __init__(IMP::RestraintSet self, Model m, double weight, std::string const & name) -> RestraintSet
4465 __init__(IMP::RestraintSet self, Model m, double weight) -> RestraintSet
4466 __init__(IMP::RestraintSet self, Model m, std::string const & name) -> RestraintSet
4467 __init__(IMP::RestraintSet self, Model m) -> RestraintSet
4468 __init__(IMP::RestraintSet self, IMP::RestraintsTemp const & rs, double weight, std::string const & name) -> RestraintSet
4469 __init__(IMP::RestraintSet self, IMP::RestraintsTemp const & rs, double weight) -> RestraintSet
4471 if self.__class__ == RestraintSet:
4475 this = _IMP_kernel.new_RestraintSet(_self, *args)
4477 self.this.append(this)
4478 except __builtin__.Exception:
4481 if self.__class__ != RestraintSet:
4482 _director_objects.register(self)
4487 def unprotected_evaluate(self, da):
4488 """unprotected_evaluate(RestraintSet self, DerivativeAccumulator da) -> double"""
4489 return _IMP_kernel.RestraintSet_unprotected_evaluate(self, da)
4492 def get_type_name(self):
4493 """get_type_name(RestraintSet self) -> std::string"""
4494 return _IMP_kernel.RestraintSet_get_type_name(self)
4497 def get_version_info(self):
4498 """get_version_info(RestraintSet self) -> VersionInfo"""
4499 return _IMP_kernel.RestraintSet_get_version_info(self)
4502 def remove_restraint(self, d):
4503 """remove_restraint(RestraintSet self, Restraint d)"""
4504 return _IMP_kernel.RestraintSet_remove_restraint(self, d)
4507 def remove_restraints(self, d):
4508 """remove_restraints(RestraintSet self, IMP::Restraints const & d)"""
4509 return _IMP_kernel.RestraintSet_remove_restraints(self, d)
4512 def set_restraints(self, ps):
4513 """set_restraints(RestraintSet self, IMP::Restraints const & ps)"""
4514 return _IMP_kernel.RestraintSet_set_restraints(self, ps)
4517 def set_restraints_order(self, objs):
4518 """set_restraints_order(RestraintSet self, IMP::Restraints const & objs)"""
4519 return _IMP_kernel.RestraintSet_set_restraints_order(self, objs)
4523 """add_restraint(RestraintSet self, Restraint obj) -> unsigned int"""
4524 return _IMP_kernel.RestraintSet_add_restraint(self, obj)
4528 """add_restraints(RestraintSet self, IMP::Restraints const & objs)"""
4529 return _IMP_kernel.RestraintSet_add_restraints(self, objs)
4532 def clear_restraints(self):
4533 """clear_restraints(RestraintSet self)"""
4534 return _IMP_kernel.RestraintSet_clear_restraints(self)
4537 def get_number_of_restraints(self):
4538 """get_number_of_restraints(RestraintSet self) -> unsigned int"""
4539 return _IMP_kernel.RestraintSet_get_number_of_restraints(self)
4542 def get_has_restraints(self):
4543 """get_has_restraints(RestraintSet self) -> bool"""
4544 return _IMP_kernel.RestraintSet_get_has_restraints(self)
4547 def get_restraint(self, i):
4548 """get_restraint(RestraintSet self, unsigned int i) -> Restraint"""
4549 return _IMP_kernel.RestraintSet_get_restraint(self, i)
4552 def get_restraints(self):
4553 """get_restraints(RestraintSet self) -> IMP::Restraints"""
4554 return _IMP_kernel.RestraintSet_get_restraints(self)
4557 def reserve_restraints(self, sz):
4558 """reserve_restraints(RestraintSet self, unsigned int sz)"""
4559 return _IMP_kernel.RestraintSet_reserve_restraints(self, sz)
4562 def get_non_sets_and_sets(self):
4563 """get_non_sets_and_sets(RestraintSet self) -> std::pair< IMP::RestraintsTemp,IMP::RestraintSetsTemp >"""
4564 return _IMP_kernel.RestraintSet_get_non_sets_and_sets(self)
4567 def do_get_inputs(self):
4568 """do_get_inputs(RestraintSet self) -> IMP::ModelObjectsTemp"""
4569 return _IMP_kernel.RestraintSet_do_get_inputs(self)
4574 create_scoring_function(RestraintSet self, double weight=1.0, double max) -> ScoringFunction
4575 create_scoring_function(RestraintSet self, double weight=1.0) -> ScoringFunction
4576 create_scoring_function(RestraintSet self) -> ScoringFunction
4578 return _IMP_kernel.RestraintSet_create_scoring_function(self, *args)
4581 def get_last_score(self):
4582 """get_last_score(RestraintSet self) -> double"""
4583 return _IMP_kernel.RestraintSet_get_last_score(self)
4587 """__str__(RestraintSet self) -> std::string"""
4588 return _IMP_kernel.RestraintSet___str__(self)
4592 """__repr__(RestraintSet self) -> std::string"""
4593 return _IMP_kernel.RestraintSet___repr__(self)
4598 return _object_cast_to_RestraintSet(o)
4601 def get_type_name(self):
4602 return self.__class__.__name__
4603 def do_show(self, out):
4605 def get_version_info(self):
4607 return VersionInfo(self.__module__,
4614 return _object_cast_to_RestraintSet(o)
4616 def __disown__(self):
4618 _IMP_kernel.disown_RestraintSet(self)
4619 return weakref_proxy(self)
4621 def do_destroy(self):
4622 """do_destroy(RestraintSet self)"""
4623 return _IMP_kernel.RestraintSet_do_destroy(self)
4626 def handle_set_has_required_score_states(self, arg0):
4627 """handle_set_has_required_score_states(RestraintSet self, bool arg0)"""
4628 return _IMP_kernel.RestraintSet_handle_set_has_required_score_states(self, arg0)
4631 def do_get_outputs(self):
4632 """do_get_outputs(RestraintSet self) -> IMP::ModelObjectsTemp"""
4633 return _IMP_kernel.RestraintSet_do_get_outputs(self)
4636 def do_get_interactions(self):
4637 """do_get_interactions(RestraintSet self) -> IMP::ModelObjectsTemps"""
4638 return _IMP_kernel.RestraintSet_do_get_interactions(self)
4641 def do_create_decomposition(self):
4642 """do_create_decomposition(RestraintSet self) -> IMP::Restraints"""
4643 return _IMP_kernel.RestraintSet_do_create_decomposition(self)
4646 def do_create_current_decomposition(self):
4647 """do_create_current_decomposition(RestraintSet self) -> IMP::Restraints"""
4648 return _IMP_kernel.RestraintSet_do_create_current_decomposition(self)
4651 def do_add_score_and_derivatives(self, sa):
4652 """do_add_score_and_derivatives(RestraintSet self, ScoreAccumulator sa)"""
4653 return _IMP_kernel.RestraintSet_do_add_score_and_derivatives(self, sa)
4655 RestraintSet_swigregister = _IMP_kernel.RestraintSet_swigregister
4656 RestraintSet_swigregister(RestraintSet)
4659 def get_restraints(rs):
4660 """get_restraints(IMP::RestraintsTemp const & rs) -> IMP::RestraintsTemp"""
4661 return _IMP_kernel.get_restraints(rs)
4663 def _check_particle(p, a):
4664 if (
not p.get_is_active()):
4665 raise ValueError(
"Inactive Particle")
4666 if (type(a)() == a):
4667 raise IndexError(
"Cannot use default Index")
4668 if (
not p.has_attribute(a)):
4669 raise IndexError(
"Particle does not have attribute")
4671 class Particle(ModelObject):
4672 """Proxy of C++ IMP::Particle class."""
4674 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4676 def get_version_info(self):
4677 """get_version_info(Particle self) -> VersionInfo"""
4678 return _IMP_kernel.Particle_get_version_info(self)
4681 def __init__(self, *args):
4683 __init__(IMP::Particle self, Model m, std::string name) -> Particle
4684 __init__(IMP::Particle self, Model m) -> Particle
4686 this = _IMP_kernel.new_Particle(*args)
4688 self.this.append(this)
4689 except __builtin__.Exception:
4692 def get_float_keys(self):
4693 """get_float_keys(Particle self) -> IMP::FloatKeys"""
4694 return _IMP_kernel.Particle_get_float_keys(self)
4697 def get_int_keys(self):
4698 """get_int_keys(Particle self) -> IMP::IntKeys"""
4699 return _IMP_kernel.Particle_get_int_keys(self)
4702 def get_string_keys(self):
4703 """get_string_keys(Particle self) -> IMP::StringKeys"""
4704 return _IMP_kernel.Particle_get_string_keys(self)
4707 def get_object_keys(self):
4708 """get_object_keys(Particle self) -> IMP::ObjectKeys"""
4709 return _IMP_kernel.Particle_get_object_keys(self)
4712 def add_cache_attribute(self, *args):
4714 add_cache_attribute(Particle self, FloatKey name, IMP::Float value)
4715 add_cache_attribute(Particle self, IntKey name, IMP::Int value)
4716 add_cache_attribute(Particle self, StringKey name, IMP::String value)
4717 add_cache_attribute(Particle self, ObjectKey name, Object value)
4718 add_cache_attribute(Particle self, IMP::WeakObjectKey name, Object value)
4720 return _IMP_kernel.Particle_add_cache_attribute(self, *args)
4723 def get_weak_object_keys(self):
4724 """get_weak_object_keys(Particle self) -> IMP::WeakObjectKeys"""
4725 return _IMP_kernel.Particle_get_weak_object_keys(self)
4728 def add_to_derivative(self, key, value, da):
4729 """add_to_derivative(Particle self, FloatKey key, IMP::Float value, DerivativeAccumulator da)"""
4730 return _IMP_kernel.Particle_add_to_derivative(self, key, value, da)
4733 def set_is_optimized(self, k, tf):
4734 """set_is_optimized(Particle self, FloatKey k, bool tf)"""
4735 return _IMP_kernel.Particle_set_is_optimized(self, k, tf)
4738 def get_is_optimized(self, k):
4739 """get_is_optimized(Particle self, FloatKey k) -> bool"""
4740 return _IMP_kernel.Particle_get_is_optimized(self, k)
4743 def get_derivative(self, k):
4744 """get_derivative(Particle self, FloatKey k) -> IMP::Float"""
4745 return _IMP_kernel.Particle_get_derivative(self, k)
4748 def add_attribute(self, *args):
4750 add_attribute(Particle self, FloatKey name, IMP::Float initial_value)
4751 add_attribute(Particle self, IntKey name, IMP::Int initial_value)
4752 add_attribute(Particle self, StringKey name, IMP::String initial_value)
4753 add_attribute(Particle self, ObjectKey name, Object initial_value)
4754 add_attribute(Particle self, IMP::WeakObjectKey name, Object initial_value)
4755 add_attribute(Particle self, FloatKey name, IMP::Float const initial_value, bool optimized)
4756 add_attribute(Particle self, ParticleIndexKey k, Particle v)
4758 return _IMP_kernel.Particle_add_attribute(self, *args)
4761 def has_attribute(self, *args):
4763 has_attribute(Particle self, FloatKey name) -> bool
4764 has_attribute(Particle self, IntKey name) -> bool
4765 has_attribute(Particle self, StringKey name) -> bool
4766 has_attribute(Particle self, ObjectKey name) -> bool
4767 has_attribute(Particle self, IMP::WeakObjectKey name) -> bool
4768 has_attribute(Particle self, ParticleIndexKey k) -> bool
4770 return _IMP_kernel.Particle_has_attribute(self, *args)
4773 def set_value(self, *args):
4775 set_value(Particle self, FloatKey name, IMP::Float value)
4776 set_value(Particle self, IntKey name, IMP::Int value)
4777 set_value(Particle self, StringKey name, IMP::String value)
4778 set_value(Particle self, ObjectKey name, Object value)
4779 set_value(Particle self, IMP::WeakObjectKey name, Object value)
4780 set_value(Particle self, ParticleIndexKey k, Particle v)
4782 return _IMP_kernel.Particle_set_value(self, *args)
4785 def get_value(self, *args):
4787 get_value(Particle self, FloatKey name) -> IMP::Float
4788 get_value(Particle self, IntKey name) -> IMP::Int
4789 get_value(Particle self, StringKey name) -> IMP::String
4790 get_value(Particle self, ObjectKey name) -> Object
4791 get_value(Particle self, IMP::WeakObjectKey name) -> Object
4792 get_value(Particle self, ParticleIndexKey k) -> Particle
4794 return _IMP_kernel.Particle_get_value(self, *args)
4797 def remove_attribute(self, *args):
4799 remove_attribute(Particle self, FloatKey name)
4800 remove_attribute(Particle self, IntKey name)
4801 remove_attribute(Particle self, StringKey name)
4802 remove_attribute(Particle self, ObjectKey name)
4803 remove_attribute(Particle self, IMP::WeakObjectKey name)
4804 remove_attribute(Particle self, ParticleIndexKey k)
4806 return _IMP_kernel.Particle_remove_attribute(self, *args)
4809 def get_particle_keys(self):
4810 """get_particle_keys(Particle self) -> IMP::ParticleIndexKeys"""
4811 return _IMP_kernel.Particle_get_particle_keys(self)
4814 def show(self, *args):
4816 show(Particle self, _ostream out)
4819 return _IMP_kernel.Particle_show(self, *args)
4822 def get_is_active(self):
4823 """get_is_active(Particle self) -> bool"""
4824 return _IMP_kernel.Particle_get_is_active(self)
4828 """get_index(Particle self) -> ParticleIndex"""
4829 return _IMP_kernel.Particle_get_index(self)
4832 def __eq__(self, *args):
4834 __eq__(Particle self, Particle o) -> bool
4835 __eq__(Particle self, Decorator d) -> bool
4837 return _IMP_kernel.Particle___eq__(self, *args)
4840 def __ne__(self, *args):
4842 __ne__(Particle self, Particle o) -> bool
4843 __ne__(Particle self, Decorator d) -> bool
4845 return _IMP_kernel.Particle___ne__(self, *args)
4848 def __le__(self, *args):
4850 __le__(Particle self, Particle o) -> bool
4851 __le__(Particle self, Decorator d) -> bool
4853 return _IMP_kernel.Particle___le__(self, *args)
4856 def __lt__(self, *args):
4858 __lt__(Particle self, Particle o) -> bool
4859 __lt__(Particle self, Decorator d) -> bool
4861 return _IMP_kernel.Particle___lt__(self, *args)
4864 def __ge__(self, *args):
4866 __ge__(Particle self, Particle o) -> bool
4867 __ge__(Particle self, Decorator d) -> bool
4869 return _IMP_kernel.Particle___ge__(self, *args)
4872 def __gt__(self, *args):
4874 __gt__(Particle self, Particle o) -> bool
4875 __gt__(Particle self, Decorator d) -> bool
4877 return _IMP_kernel.Particle___gt__(self, *args)
4880 __hash__ = ModelObject.__hash__
4884 """__str__(Particle self) -> std::string"""
4885 return _IMP_kernel.Particle___str__(self)
4889 """__repr__(Particle self) -> std::string"""
4890 return _IMP_kernel.Particle___repr__(self)
4895 return _object_cast_to_Particle(o)
4897 Particle_swigregister = _IMP_kernel.Particle_swigregister
4898 Particle_swigregister(Particle)
4900 class _ParticleAdaptor(_InputAdaptor):
4901 """Proxy of C++ IMP::ParticleAdaptor class."""
4903 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4904 __repr__ = _swig_repr
4906 def __init__(self, *args):
4908 __init__(IMP::ParticleAdaptor self) -> _ParticleAdaptor
4909 __init__(IMP::ParticleAdaptor self, Particle p) -> _ParticleAdaptor
4910 __init__(IMP::ParticleAdaptor self, Decorator d) -> _ParticleAdaptor
4912 this = _IMP_kernel.new__ParticleAdaptor(*args)
4914 self.this.append(this)
4915 except __builtin__.Exception:
4918 def get_model(self):
4919 """get_model(_ParticleAdaptor self) -> Model"""
4920 return _IMP_kernel._ParticleAdaptor_get_model(self)
4923 def get_particle_index(self):
4924 """get_particle_index(_ParticleAdaptor self) -> ParticleIndex"""
4925 return _IMP_kernel._ParticleAdaptor_get_particle_index(self)
4927 __swig_destroy__ = _IMP_kernel.delete__ParticleAdaptor
4928 __del__ =
lambda self:
None
4929 _ParticleAdaptor_swigregister = _IMP_kernel._ParticleAdaptor_swigregister
4930 _ParticleAdaptor_swigregister(_ParticleAdaptor)
4932 class _DependencyGraphVertexIndex(object):
4933 """Proxy of C++ IMP::DependencyGraphVertexIndex class."""
4935 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4936 __repr__ = _swig_repr
4939 """__init__(IMP::DependencyGraphVertexIndex self) -> _DependencyGraphVertexIndex"""
4940 this = _IMP_kernel.new__DependencyGraphVertexIndex()
4942 self.this.append(this)
4943 except __builtin__.Exception:
4945 __swig_destroy__ = _IMP_kernel.delete__DependencyGraphVertexIndex
4946 __del__ =
lambda self:
None
4947 _DependencyGraphVertexIndex_swigregister = _IMP_kernel._DependencyGraphVertexIndex_swigregister
4948 _DependencyGraphVertexIndex_swigregister(_DependencyGraphVertexIndex)
4951 def show_as_graphviz(name, out):
4952 """show_as_graphviz(IMP::DependencyGraph const & name, TextOutput out)"""
4953 return _IMP_kernel.show_as_graphviz(name, out)
4955 def get_vertex_index(g):
4956 """get_vertex_index(IMP::DependencyGraph const & g) -> _DependencyGraphVertexIndex"""
4957 return _IMP_kernel.get_vertex_index(g)
4960 """get_dependency_graph(Model m) -> IMP::DependencyGraph"""
4961 return _IMP_kernel.get_dependency_graph(m)
4964 """get_pruned_dependency_graph(Model m) -> IMP::DependencyGraph"""
4965 return _IMP_kernel.get_pruned_dependency_graph(m)
4969 get_required_score_states(IMP::ModelObjectsTemp const & mos, IMP::ScoreStatesTemp exclude) -> IMP::ScoreStatesTemp
4970 get_required_score_states(IMP::ModelObjectsTemp const & mos) -> IMP::ScoreStatesTemp
4971 get_required_score_states(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ScoreStatesTemp
4973 return _IMP_kernel.get_required_score_states(*args)
4976 """get_dependent_particles(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ParticlesTemp"""
4977 return _IMP_kernel.get_dependent_particles(p, all, dg, index)
4979 def get_dependent_restraints(m, pi):
4980 """get_dependent_restraints(Model m, ParticleIndex pi) -> IMP::RestraintsTemp"""
4981 return _IMP_kernel.get_dependent_restraints(m, pi)
4982 class ScoringFunction(ModelObject):
4983 """Proxy of C++ IMP::ScoringFunction class."""
4985 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4987 def do_add_score_and_derivatives(self, sa, ss):
4988 """do_add_score_and_derivatives(ScoringFunction self, ScoreAccumulator sa, IMP::ScoreStatesTemp const & ss)"""
4989 return _IMP_kernel.ScoringFunction_do_add_score_and_derivatives(self, sa, ss)
4992 def get_score_accumulator_if_below(self, deriv, max):
4993 """get_score_accumulator_if_below(ScoringFunction self, bool deriv, double max) -> ScoreAccumulator"""
4994 return _IMP_kernel.ScoringFunction_get_score_accumulator_if_below(self, deriv, max)
4997 def get_score_accumulator_if_good(self, deriv):
4998 """get_score_accumulator_if_good(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
4999 return _IMP_kernel.ScoringFunction_get_score_accumulator_if_good(self, deriv)
5002 def get_score_accumulator(self, deriv):
5003 """get_score_accumulator(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
5004 return _IMP_kernel.ScoringFunction_get_score_accumulator(self, deriv)
5007 def __init__(self, m, name):
5008 """__init__(IMP::ScoringFunction self, Model m, std::string name) -> ScoringFunction"""
5009 if self.__class__ == ScoringFunction:
5013 this = _IMP_kernel.new_ScoringFunction(_self, m, name)
5015 self.this.append(this)
5016 except __builtin__.Exception:
5019 if self.__class__ != ScoringFunction:
5020 _director_objects.register(self)
5025 def do_get_outputs(self):
5026 """do_get_outputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
5027 return _IMP_kernel.ScoringFunction_do_get_outputs(self)
5030 def evaluate_if_good(self, derivatives):
5031 """evaluate_if_good(ScoringFunction self, bool derivatives) -> double"""
5032 return _IMP_kernel.ScoringFunction_evaluate_if_good(self, derivatives)
5035 def evaluate(self, derivatives):
5036 """evaluate(ScoringFunction self, bool derivatives) -> double"""
5037 return _IMP_kernel.ScoringFunction_evaluate(self, derivatives)
5040 def evaluate_if_below(self, derivatives, max):
5041 """evaluate_if_below(ScoringFunction self, bool derivatives, double max) -> double"""
5042 return _IMP_kernel.ScoringFunction_evaluate_if_below(self, derivatives, max)
5045 def get_had_good_score(self):
5046 """get_had_good_score(ScoringFunction self) -> bool"""
5047 return _IMP_kernel.ScoringFunction_get_had_good_score(self)
5050 def get_last_score(self):
5051 """get_last_score(ScoringFunction self) -> double"""
5052 return _IMP_kernel.ScoringFunction_get_last_score(self)
5056 """create_restraints(ScoringFunction self) -> IMP::Restraints"""
5057 return _IMP_kernel.ScoringFunction_create_restraints(self)
5061 """__str__(ScoringFunction self) -> std::string"""
5062 return _IMP_kernel.ScoringFunction___str__(self)
5066 """__repr__(ScoringFunction self) -> std::string"""
5067 return _IMP_kernel.ScoringFunction___repr__(self)
5072 return _object_cast_to_ScoringFunction(o)
5075 def get_type_name(self):
5076 return self.__class__.__name__
5077 def do_show(self, out):
5079 def get_version_info(self):
5081 return VersionInfo(self.__module__,
5088 return _object_cast_to_ScoringFunction(o)
5090 __swig_destroy__ = _IMP_kernel.delete_ScoringFunction
5091 __del__ =
lambda self:
None
5092 def __disown__(self):
5094 _IMP_kernel.disown_ScoringFunction(self)
5095 return weakref_proxy(self)
5097 def do_destroy(self):
5098 """do_destroy(ScoringFunction self)"""
5099 return _IMP_kernel.ScoringFunction_do_destroy(self)
5102 def handle_set_has_required_score_states(self, arg0):
5103 """handle_set_has_required_score_states(ScoringFunction self, bool arg0)"""
5104 return _IMP_kernel.ScoringFunction_handle_set_has_required_score_states(self, arg0)
5107 def do_get_inputs(self):
5108 """do_get_inputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
5109 return _IMP_kernel.ScoringFunction_do_get_inputs(self)
5112 def do_get_interactions(self):
5113 """do_get_interactions(ScoringFunction self) -> IMP::ModelObjectsTemps"""
5114 return _IMP_kernel.ScoringFunction_do_get_interactions(self)
5116 ScoringFunction_swigregister = _IMP_kernel.ScoringFunction_swigregister
5117 ScoringFunction_swigregister(ScoringFunction)
5122 create_decomposition(IMP::RestraintsTemp const & rs) -> IMP::Restraints
5123 create_decomposition(ScoringFunction sf) -> IMP::ScoringFunctions
5125 return _IMP_kernel.create_decomposition(*args)
5126 class _ScoringFunctionAdaptor(_InputAdaptor):
5127 """Proxy of C++ IMP::ScoringFunctionAdaptor class."""
5129 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5130 __repr__ = _swig_repr
5132 def __init__(self, *args):
5134 __init__(IMP::ScoringFunctionAdaptor self) -> _ScoringFunctionAdaptor
5135 __init__(IMP::ScoringFunctionAdaptor self, ScoringFunction sf) -> _ScoringFunctionAdaptor
5136 __init__(IMP::ScoringFunctionAdaptor self, IMP::RestraintsTemp const & sf) -> _ScoringFunctionAdaptor
5137 __init__(IMP::ScoringFunctionAdaptor self, IMP::Restraints const & sf) -> _ScoringFunctionAdaptor
5138 __init__(IMP::ScoringFunctionAdaptor self, Restraint sf) -> _ScoringFunctionAdaptor
5140 this = _IMP_kernel.new__ScoringFunctionAdaptor(*args)
5142 self.this.append(this)
5143 except __builtin__.Exception:
5145 __swig_destroy__ = _IMP_kernel.delete__ScoringFunctionAdaptor
5146 __del__ =
lambda self:
None
5147 _ScoringFunctionAdaptor_swigregister = _IMP_kernel._ScoringFunctionAdaptor_swigregister
5148 _ScoringFunctionAdaptor_swigregister(_ScoringFunctionAdaptor)
5153 show_restraint_hierarchy(_ScoringFunctionAdaptor rs, _ostream out)
5154 show_restraint_hierarchy(_ScoringFunctionAdaptor rs)
5156 return _IMP_kernel.show_restraint_hierarchy(*args)
5157 class Undecorator(Object):
5158 """Proxy of C++ IMP::Undecorator class."""
5160 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5162 def __init__(self, m, name):
5163 """__init__(IMP::Undecorator self, Model m, std::string name) -> Undecorator"""
5164 if self.__class__ == Undecorator:
5168 this = _IMP_kernel.new_Undecorator(_self, m, name)
5170 self.this.append(this)
5171 except __builtin__.Exception:
5174 if self.__class__ != Undecorator:
5175 _director_objects.register(self)
5180 def teardown(self, pi):
5181 """teardown(Undecorator self, ParticleIndex pi)"""
5182 return _IMP_kernel.Undecorator_teardown(self, pi)
5186 """__str__(Undecorator self) -> std::string"""
5187 return _IMP_kernel.Undecorator___str__(self)
5191 """__repr__(Undecorator self) -> std::string"""
5192 return _IMP_kernel.Undecorator___repr__(self)
5197 return _object_cast_to_Undecorator(o)
5200 def get_type_name(self):
5201 return self.__class__.__name__
5202 def do_show(self, out):
5204 def get_version_info(self):
5206 return VersionInfo(self.__module__,
5213 return _object_cast_to_Undecorator(o)
5215 __swig_destroy__ = _IMP_kernel.delete_Undecorator
5216 __del__ =
lambda self:
None
5217 def __disown__(self):
5219 _IMP_kernel.disown_Undecorator(self)
5220 return weakref_proxy(self)
5222 def do_destroy(self):
5223 """do_destroy(Undecorator self)"""
5224 return _IMP_kernel.Undecorator_do_destroy(self)
5226 Undecorator_swigregister = _IMP_kernel.Undecorator_swigregister
5227 Undecorator_swigregister(Undecorator)
5229 class Model(Object):
5230 """Proxy of C++ IMP::Model class."""
5232 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5234 def __init__(self, *args):
5236 __init__(IMP::Model self, std::string name) -> Model
5237 __init__(IMP::Model self) -> Model
5239 this = _IMP_kernel.new_Model(*args)
5241 self.this.append(this)
5242 except __builtin__.Exception:
5245 def clear_particle_caches(self, pi):
5246 """clear_particle_caches(Model self, ParticleIndex pi)"""
5247 return _IMP_kernel.Model_clear_particle_caches(self, pi)
5251 """add_particle(Model self, std::string name) -> ParticleIndex"""
5252 return _IMP_kernel.Model_add_particle(self, name)
5255 def get_particle_name(self, pi):
5256 """get_particle_name(Model self, ParticleIndex pi) -> std::string"""
5257 return _IMP_kernel.Model_get_particle_name(self, pi)
5260 def add_undecorator(self, pi, d):
5261 """add_undecorator(Model self, ParticleIndex pi, Undecorator d)"""
5262 return _IMP_kernel.Model_add_undecorator(self, pi, d)
5265 def remove_score_state(self, d):
5266 """remove_score_state(Model self, ScoreState d)"""
5267 return _IMP_kernel.Model_remove_score_state(self, d)
5270 def remove_score_states(self, d):
5271 """remove_score_states(Model self, IMP::ScoreStates const & d)"""
5272 return _IMP_kernel.Model_remove_score_states(self, d)
5275 def set_score_states(self, ps):
5276 """set_score_states(Model self, IMP::ScoreStates const & ps)"""
5277 return _IMP_kernel.Model_set_score_states(self, ps)
5280 def set_score_states_order(self, objs):
5281 """set_score_states_order(Model self, IMP::ScoreStates const & objs)"""
5282 return _IMP_kernel.Model_set_score_states_order(self, objs)
5285 def add_score_state(self, obj):
5286 """add_score_state(Model self, ScoreState obj) -> unsigned int"""
5287 return _IMP_kernel.Model_add_score_state(self, obj)
5290 def add_score_states(self, objs):
5291 """add_score_states(Model self, IMP::ScoreStates const & objs)"""
5292 return _IMP_kernel.Model_add_score_states(self, objs)
5295 def clear_score_states(self):
5296 """clear_score_states(Model self)"""
5297 return _IMP_kernel.Model_clear_score_states(self)
5300 def get_number_of_score_states(self):
5301 """get_number_of_score_states(Model self) -> unsigned int"""
5302 return _IMP_kernel.Model_get_number_of_score_states(self)
5305 def get_has_score_states(self):
5306 """get_has_score_states(Model self) -> bool"""
5307 return _IMP_kernel.Model_get_has_score_states(self)
5310 def get_score_state(self, i):
5311 """get_score_state(Model self, unsigned int i) -> ScoreState"""
5312 return _IMP_kernel.Model_get_score_state(self, i)
5315 def get_score_states(self):
5316 """get_score_states(Model self) -> IMP::ScoreStates"""
5317 return _IMP_kernel.Model_get_score_states(self)
5320 def reserve_score_states(self, sz):
5321 """reserve_score_states(Model self, unsigned int sz)"""
5322 return _IMP_kernel.Model_reserve_score_states(self, sz)
5326 """update(Model self)"""
5327 return _IMP_kernel.Model_update(self)
5330 def add_attribute(self, *args):
5332 add_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5333 add_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
5334 add_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
5335 add_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
5336 add_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
5337 add_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5338 add_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
5339 add_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5341 return _IMP_kernel.Model_add_attribute(self, *args)
5344 def remove_attribute(self, *args):
5346 remove_attribute(Model self, FloatKey attribute_key, ParticleIndex particle)
5347 remove_attribute(Model self, IntKey attribute_key, ParticleIndex particle)
5348 remove_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle)
5349 remove_attribute(Model self, StringKey attribute_key, ParticleIndex particle)
5350 remove_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle)
5351 remove_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle)
5352 remove_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle)
5353 remove_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle)
5355 return _IMP_kernel.Model_remove_attribute(self, *args)
5358 def get_has_attribute(self, *args):
5360 get_has_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> bool
5361 get_has_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> bool
5362 get_has_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle) -> bool
5363 get_has_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> bool
5364 get_has_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> bool
5365 get_has_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> bool
5366 get_has_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> bool
5367 get_has_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> bool
5369 return _IMP_kernel.Model_get_has_attribute(self, *args)
5372 def set_attribute(self, *args):
5374 set_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5375 set_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
5376 set_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
5377 set_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
5378 set_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
5379 set_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5380 set_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
5381 set_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5383 return _IMP_kernel.Model_set_attribute(self, *args)
5386 def get_attribute(self, *args):
5388 get_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> IMP::Float
5389 get_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> IMP::Int
5390 get_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle) -> IMP::Ints
5391 get_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> IMP::String
5392 get_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> IMP::ParticleIndexes
5393 get_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> ParticleIndex
5394 get_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> Object
5395 get_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> Object
5397 return _IMP_kernel.Model_get_attribute(self, *args)
5400 def add_cache_attribute(self, *args):
5402 add_cache_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5403 add_cache_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
5404 add_cache_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
5405 add_cache_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
5406 add_cache_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
5407 add_cache_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5408 add_cache_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
5409 add_cache_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5411 return _IMP_kernel.Model_add_cache_attribute(self, *args)
5414 def set_is_optimized(self, arg2, arg3, arg4):
5415 """set_is_optimized(Model self, FloatKey arg2, ParticleIndex arg3, bool arg4)"""
5416 return _IMP_kernel.Model_set_is_optimized(self, arg2, arg3, arg4)
5419 def add_to_derivative(self, k, particle, v, da):
5420 """add_to_derivative(Model self, FloatKey k, ParticleIndex particle, double v, DerivativeAccumulator da)"""
5421 return _IMP_kernel.Model_add_to_derivative(self, k, particle, v, da)
5424 def get_particle(self, p):
5425 """get_particle(Model self, ParticleIndex p) -> Particle"""
5426 return _IMP_kernel.Model_get_particle(self, p)
5429 def get_has_particle(self, p):
5430 """get_has_particle(Model self, ParticleIndex p) -> bool"""
5431 return _IMP_kernel.Model_get_has_particle(self, p)
5435 """get_particle_indexes(Model self) -> IMP::ParticleIndexes"""
5436 return _IMP_kernel.Model_get_particle_indexes(self)
5439 def get_model_objects(self):
5440 """get_model_objects(Model self) -> IMP::ModelObjectsTemp"""
5441 return _IMP_kernel.Model_get_model_objects(self)
5444 def remove_particle(self, pi):
5445 """remove_particle(Model self, ParticleIndex pi)"""
5446 return _IMP_kernel.Model_remove_particle(self, pi)
5449 def add_data(self, mk, o):
5450 """add_data(Model self, ModelKey mk, Object o)"""
5451 return _IMP_kernel.Model_add_data(self, mk, o)
5454 def get_data(self, mk):
5455 """get_data(Model self, ModelKey mk) -> Object"""
5456 return _IMP_kernel.Model_get_data(self, mk)
5459 def remove_data(self, mk):
5460 """remove_data(Model self, ModelKey mk)"""
5461 return _IMP_kernel.Model_remove_data(self, mk)
5464 def get_has_data(self, mk):
5465 """get_has_data(Model self, ModelKey mk) -> bool"""
5466 return _IMP_kernel.Model_get_has_data(self, mk)
5469 def get_version_info(self):
5470 """get_version_info(Model self) -> VersionInfo"""
5471 return _IMP_kernel.Model_get_version_info(self)
5474 def do_destroy(self):
5475 """do_destroy(Model self)"""
5476 return _IMP_kernel.Model_do_destroy(self)
5480 """__str__(Model self) -> std::string"""
5481 return _IMP_kernel.Model___str__(self)
5485 """__repr__(Model self) -> std::string"""
5486 return _IMP_kernel.Model___repr__(self)
5491 return _object_cast_to_Model(o)
5494 def _get_ints_numpy(self, k):
5495 return _get_ints_numpy(self, k, self)
5497 def _get_floats_numpy(self, k):
5498 return _get_floats_numpy(self, k, self)
5500 def _get_derivatives_numpy(self, k):
5501 return _get_derivatives_numpy(self, k, self)
5503 def _get_spheres_numpy(self):
5504 return _get_spheres_numpy(self, self)
5506 def _get_sphere_derivatives_numpy(self):
5507 return _get_sphere_derivatives_numpy(self, self)
5509 Model_swigregister = _IMP_kernel.Model_swigregister
5510 Model_swigregister(Model)
5512 class Decorator(_Value):
5513 """Proxy of C++ IMP::Decorator class."""
5515 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5516 __repr__ = _swig_repr
5518 def __init__(self, p):
5519 """__init__(IMP::Decorator self, _ParticleAdaptor p) -> Decorator"""
5520 this = _IMP_kernel.new_Decorator(p)
5522 self.this.append(this)
5523 except __builtin__.Exception:
5526 def __ne__(self, o):
5527 """__ne__(Decorator self, Object o) -> bool"""
5528 return _IMP_kernel.Decorator___ne__(self, o)
5531 def __lt__(self, o):
5532 """__lt__(Decorator self, Object o) -> bool"""
5533 return _IMP_kernel.Decorator___lt__(self, o)
5536 def __gt__(self, o):
5537 """__gt__(Decorator self, Object o) -> bool"""
5538 return _IMP_kernel.Decorator___gt__(self, o)
5541 def __ge__(self, o):
5542 """__ge__(Decorator self, Object o) -> bool"""
5543 return _IMP_kernel.Decorator___ge__(self, o)
5546 def __le__(self, o):
5547 """__le__(Decorator self, Object o) -> bool"""
5548 return _IMP_kernel.Decorator___le__(self, o)
5551 def get_particle(self):
5552 """get_particle(Decorator self) -> Particle"""
5553 return _IMP_kernel.Decorator_get_particle(self)
5556 def get_particle_index(self):
5557 """get_particle_index(Decorator self) -> ParticleIndex"""
5558 return _IMP_kernel.Decorator_get_particle_index(self)
5561 def get_model(self):
5562 """get_model(Decorator self) -> Model"""
5563 return _IMP_kernel.Decorator_get_model(self)
5566 def get_is_valid(self):
5567 """get_is_valid(Decorator self) -> bool"""
5568 return _IMP_kernel.Decorator_get_is_valid(self)
5572 """__hash__(Decorator self) -> std::size_t"""
5573 return _IMP_kernel.Decorator___hash__(self)
5576 def __eq__(self, *args):
5578 __eq__(Decorator self, Object o) -> bool
5579 __eq__(Decorator self, Decorator o) -> bool
5580 __eq__(Decorator self, Particle o) -> bool
5582 return _IMP_kernel.Decorator___eq__(self, *args)
5586 """__bool__(Decorator self) -> bool"""
5587 return _IMP_kernel.Decorator___bool__(self)
5590 __nonzero__ = __bool__
5592 __swig_destroy__ = _IMP_kernel.delete_Decorator
5593 __del__ =
lambda self:
None
5594 Decorator_swigregister = _IMP_kernel.Decorator_swigregister
5595 Decorator_swigregister(Decorator)
5598 def check_particle(m, pi):
5599 """check_particle(Model m, ParticleIndex pi)"""
5600 return _IMP_kernel.check_particle(m, pi)
5601 class UnaryFunction(Object):
5602 """Proxy of C++ IMP::UnaryFunction class."""
5604 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5606 def __init__(self, *args):
5608 __init__(IMP::UnaryFunction self, std::string name) -> UnaryFunction
5609 __init__(IMP::UnaryFunction self) -> UnaryFunction
5611 if self.__class__ == UnaryFunction:
5615 this = _IMP_kernel.new_UnaryFunction(_self, *args)
5617 self.this.append(this)
5618 except __builtin__.Exception:
5621 if self.__class__ != UnaryFunction:
5622 _director_objects.register(self)
5627 def evaluate(self, feature):
5628 """evaluate(UnaryFunction self, double feature) -> double"""
5629 return _IMP_kernel.UnaryFunction_evaluate(self, feature)
5632 def evaluate_with_derivative(self, feature):
5633 """evaluate_with_derivative(UnaryFunction self, double feature) -> IMP::DerivativePair"""
5634 return _IMP_kernel.UnaryFunction_evaluate_with_derivative(self, feature)
5636 __swig_destroy__ = _IMP_kernel.delete_UnaryFunction
5637 __del__ =
lambda self:
None
5640 """__str__(UnaryFunction self) -> std::string"""
5641 return _IMP_kernel.UnaryFunction___str__(self)
5645 """__repr__(UnaryFunction self) -> std::string"""
5646 return _IMP_kernel.UnaryFunction___repr__(self)
5651 return _object_cast_to_UnaryFunction(o)
5654 def get_type_name(self):
5655 return self.__class__.__name__
5656 def do_show(self, out):
5658 def get_version_info(self):
5660 return VersionInfo(self.__module__,
5667 return _object_cast_to_UnaryFunction(o)
5669 def __disown__(self):
5671 _IMP_kernel.disown_UnaryFunction(self)
5672 return weakref_proxy(self)
5674 def do_destroy(self):
5675 """do_destroy(UnaryFunction self)"""
5676 return _IMP_kernel.UnaryFunction_do_destroy(self)
5678 UnaryFunction_swigregister = _IMP_kernel.UnaryFunction_swigregister
5679 UnaryFunction_swigregister(UnaryFunction)
5681 class OptimizerState(ModelObject):
5682 """Proxy of C++ IMP::OptimizerState class."""
5684 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5686 def __init__(self, m, name):
5687 """__init__(IMP::OptimizerState self, Model m, std::string name) -> OptimizerState"""
5688 if self.__class__ == OptimizerState:
5692 this = _IMP_kernel.new_OptimizerState(_self, m, name)
5694 self.this.append(this)
5695 except __builtin__.Exception:
5698 if self.__class__ != OptimizerState:
5699 _director_objects.register(self)
5705 """update(OptimizerState self)"""
5706 return _IMP_kernel.OptimizerState_update(self)
5709 def set_is_optimizing(self, arg0):
5710 """set_is_optimizing(OptimizerState self, bool arg0)"""
5711 return _IMP_kernel.OptimizerState_set_is_optimizing(self, arg0)
5714 def get_optimizer(self):
5715 """get_optimizer(OptimizerState self) -> Optimizer"""
5716 return _IMP_kernel.OptimizerState_get_optimizer(self)
5719 def set_period(self, p):
5720 """set_period(OptimizerState self, unsigned int p)"""
5721 return _IMP_kernel.OptimizerState_set_period(self, p)
5724 def get_period(self):
5725 """get_period(OptimizerState self) -> unsigned int"""
5726 return _IMP_kernel.OptimizerState_get_period(self)
5730 """reset(OptimizerState self)"""
5731 return _IMP_kernel.OptimizerState_reset(self)
5734 def update_always(self):
5735 """update_always(OptimizerState self)"""
5736 return _IMP_kernel.OptimizerState_update_always(self)
5739 def get_number_of_updates(self):
5740 """get_number_of_updates(OptimizerState self) -> unsigned int"""
5741 return _IMP_kernel.OptimizerState_get_number_of_updates(self)
5744 def set_number_of_updates(self, n):
5745 """set_number_of_updates(OptimizerState self, unsigned int n)"""
5746 return _IMP_kernel.OptimizerState_set_number_of_updates(self, n)
5748 __swig_destroy__ = _IMP_kernel.delete_OptimizerState
5749 __del__ =
lambda self:
None
5751 def do_update(self, arg0):
5752 """do_update(OptimizerState self, unsigned int arg0)"""
5753 return _IMP_kernel.OptimizerState_do_update(self, arg0)
5756 def do_set_is_optimizing(self, arg0):
5757 """do_set_is_optimizing(OptimizerState self, bool arg0)"""
5758 return _IMP_kernel.OptimizerState_do_set_is_optimizing(self, arg0)
5761 def do_get_inputs(self):
5762 """do_get_inputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
5763 return _IMP_kernel.OptimizerState_do_get_inputs(self)
5766 def do_get_outputs(self):
5767 """do_get_outputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
5768 return _IMP_kernel.OptimizerState_do_get_outputs(self)
5772 """__str__(OptimizerState self) -> std::string"""
5773 return _IMP_kernel.OptimizerState___str__(self)
5777 """__repr__(OptimizerState self) -> std::string"""
5778 return _IMP_kernel.OptimizerState___repr__(self)
5783 return _object_cast_to_OptimizerState(o)
5786 def get_type_name(self):
5787 return self.__class__.__name__
5788 def do_show(self, out):
5790 def get_version_info(self):
5792 return VersionInfo(self.__module__,
5799 return _object_cast_to_OptimizerState(o)
5801 def __disown__(self):
5803 _IMP_kernel.disown_OptimizerState(self)
5804 return weakref_proxy(self)
5806 def do_destroy(self):
5807 """do_destroy(OptimizerState self)"""
5808 return _IMP_kernel.OptimizerState_do_destroy(self)
5811 def handle_set_has_required_score_states(self, arg0):
5812 """handle_set_has_required_score_states(OptimizerState self, bool arg0)"""
5813 return _IMP_kernel.OptimizerState_handle_set_has_required_score_states(self, arg0)
5816 def do_get_interactions(self):
5817 """do_get_interactions(OptimizerState self) -> IMP::ModelObjectsTemps"""
5818 return _IMP_kernel.OptimizerState_do_get_interactions(self)
5820 OptimizerState_swigregister = _IMP_kernel.OptimizerState_swigregister
5821 OptimizerState_swigregister(OptimizerState)
5823 class Refiner(_ParticleInputs, Object):
5824 """Proxy of C++ IMP::Refiner class."""
5826 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5828 def __init__(self, *args):
5830 __init__(IMP::Refiner self, std::string name, bool is_by_ref=False) -> Refiner
5831 __init__(IMP::Refiner self, std::string name) -> Refiner
5832 __init__(IMP::Refiner self) -> Refiner
5834 if self.__class__ == Refiner:
5838 this = _IMP_kernel.new_Refiner(_self, *args)
5840 self.this.append(this)
5841 except __builtin__.Exception:
5844 if self.__class__ != Refiner:
5845 _director_objects.register(self)
5850 def get_can_refine(self, arg0):
5851 """get_can_refine(Refiner self, Particle arg0) -> bool"""
5852 return _IMP_kernel.Refiner_get_can_refine(self, arg0)
5855 def get_refined_indexes(self, m, pi):
5856 """get_refined_indexes(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes"""
5857 return _IMP_kernel.Refiner_get_refined_indexes(self, m, pi)
5860 def get_refined_indexes_by_ref(self, m, pi):
5861 """get_refined_indexes_by_ref(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes const &"""
5862 return _IMP_kernel.Refiner_get_refined_indexes_by_ref(self, m, pi)
5865 def get_is_by_ref_supported(self):
5866 """get_is_by_ref_supported(Refiner self) -> bool"""
5867 return _IMP_kernel.Refiner_get_is_by_ref_supported(self)
5870 def get_refined(self, *args):
5872 get_refined(Refiner self, Particle a) -> IMP::ParticlesTemp const
5873 get_refined(Refiner self, Particle a, unsigned int i) -> Particle
5875 return _IMP_kernel.Refiner_get_refined(self, *args)
5878 def get_number_of_refined(self, a):
5879 """get_number_of_refined(Refiner self, Particle a) -> unsigned int"""
5880 return _IMP_kernel.Refiner_get_number_of_refined(self, a)
5884 """__str__(Refiner self) -> std::string"""
5885 return _IMP_kernel.Refiner___str__(self)
5889 """__repr__(Refiner self) -> std::string"""
5890 return _IMP_kernel.Refiner___repr__(self)
5895 return _object_cast_to_Refiner(o)
5898 def get_type_name(self):
5899 return self.__class__.__name__
5900 def do_show(self, out):
5902 def get_version_info(self):
5904 return VersionInfo(self.__module__,
5911 return _object_cast_to_Refiner(o)
5913 __swig_destroy__ = _IMP_kernel.delete_Refiner
5914 __del__ =
lambda self:
None
5915 def __disown__(self):
5917 _IMP_kernel.disown_Refiner(self)
5918 return weakref_proxy(self)
5920 def do_get_inputs(self, m, pis):
5921 """do_get_inputs(Refiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5922 return _IMP_kernel.Refiner_do_get_inputs(self, m, pis)
5925 def do_destroy(self):
5926 """do_destroy(Refiner self)"""
5927 return _IMP_kernel.Refiner_do_destroy(self)
5929 Refiner_swigregister = _IMP_kernel.Refiner_swigregister
5930 Refiner_swigregister(Refiner)
5932 class Optimizer(ModelObject):
5933 """Proxy of C++ IMP::Optimizer class."""
5935 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5937 def set_is_optimizing_states(self, tf):
5938 """set_is_optimizing_states(Optimizer self, bool tf)"""
5939 return _IMP_kernel.Optimizer_set_is_optimizing_states(self, tf)
5942 def get_optimizer_state_inputs(self):
5943 """get_optimizer_state_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5944 return _IMP_kernel.Optimizer_get_optimizer_state_inputs(self)
5947 def do_get_inputs(self):
5948 """do_get_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5949 return _IMP_kernel.Optimizer_do_get_inputs(self)
5952 def do_get_outputs(self):
5953 """do_get_outputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5954 return _IMP_kernel.Optimizer_do_get_outputs(self)
5957 def __init__(self, *args):
5959 __init__(IMP::Optimizer self, Model m, std::string name) -> Optimizer
5960 __init__(IMP::Optimizer self, Model m) -> Optimizer
5962 if self.__class__ == Optimizer:
5966 this = _IMP_kernel.new_Optimizer(_self, *args)
5968 self.this.append(this)
5969 except __builtin__.Exception:
5972 if self.__class__ != Optimizer:
5973 _director_objects.register(self)
5978 def optimize(self, max_steps):
5979 """optimize(Optimizer self, unsigned int max_steps) -> double"""
5980 return _IMP_kernel.Optimizer_optimize(self, max_steps)
5983 def set_stop_on_good_score(self, tf):
5984 """set_stop_on_good_score(Optimizer self, bool tf)"""
5985 return _IMP_kernel.Optimizer_set_stop_on_good_score(self, tf)
5988 def get_stop_on_good_score(self):
5989 """get_stop_on_good_score(Optimizer self) -> bool"""
5990 return _IMP_kernel.Optimizer_get_stop_on_good_score(self)
5993 def get_last_score(self):
5994 """get_last_score(Optimizer self) -> double"""
5995 return _IMP_kernel.Optimizer_get_last_score(self)
5998 def get_scoring_function(self):
5999 """get_scoring_function(Optimizer self) -> ScoringFunction"""
6000 return _IMP_kernel.Optimizer_get_scoring_function(self)
6003 def remove_optimizer_state(self, d):
6004 """remove_optimizer_state(Optimizer self, OptimizerState d)"""
6005 return _IMP_kernel.Optimizer_remove_optimizer_state(self, d)
6008 def remove_optimizer_states(self, d):
6009 """remove_optimizer_states(Optimizer self, IMP::OptimizerStates const & d)"""
6010 return _IMP_kernel.Optimizer_remove_optimizer_states(self, d)
6013 def set_optimizer_states(self, ps):
6014 """set_optimizer_states(Optimizer self, IMP::OptimizerStates const & ps)"""
6015 return _IMP_kernel.Optimizer_set_optimizer_states(self, ps)
6018 def set_optimizer_states_order(self, objs):
6019 """set_optimizer_states_order(Optimizer self, IMP::OptimizerStates const & objs)"""
6020 return _IMP_kernel.Optimizer_set_optimizer_states_order(self, objs)
6023 def add_optimizer_state(self, obj):
6024 """add_optimizer_state(Optimizer self, OptimizerState obj) -> unsigned int"""
6025 return _IMP_kernel.Optimizer_add_optimizer_state(self, obj)
6028 def add_optimizer_states(self, objs):
6029 """add_optimizer_states(Optimizer self, IMP::OptimizerStates const & objs)"""
6030 return _IMP_kernel.Optimizer_add_optimizer_states(self, objs)
6033 def clear_optimizer_states(self):
6034 """clear_optimizer_states(Optimizer self)"""
6035 return _IMP_kernel.Optimizer_clear_optimizer_states(self)
6038 def get_number_of_optimizer_states(self):
6039 """get_number_of_optimizer_states(Optimizer self) -> unsigned int"""
6040 return _IMP_kernel.Optimizer_get_number_of_optimizer_states(self)
6043 def get_has_optimizer_states(self):
6044 """get_has_optimizer_states(Optimizer self) -> bool"""
6045 return _IMP_kernel.Optimizer_get_has_optimizer_states(self)
6048 def get_optimizer_state(self, i):
6049 """get_optimizer_state(Optimizer self, unsigned int i) -> OptimizerState"""
6050 return _IMP_kernel.Optimizer_get_optimizer_state(self, i)
6053 def get_optimizer_states(self):
6054 """get_optimizer_states(Optimizer self) -> IMP::OptimizerStates"""
6055 return _IMP_kernel.Optimizer_get_optimizer_states(self)
6058 def reserve_optimizer_states(self, sz):
6059 """reserve_optimizer_states(Optimizer self, unsigned int sz)"""
6060 return _IMP_kernel.Optimizer_reserve_optimizer_states(self, sz)
6063 def set_scoring_function(self, sf):
6064 """set_scoring_function(Optimizer self, _ScoringFunctionAdaptor sf)"""
6065 return _IMP_kernel.Optimizer_set_scoring_function(self, sf)
6067 __swig_destroy__ = _IMP_kernel.delete_Optimizer
6069 """__del__(IMP::Optimizer self)"""
6071 _director_objects.cleanup()
6077 def do_optimize(self, ns):
6078 """do_optimize(Optimizer self, unsigned int ns) -> double"""
6079 return _IMP_kernel.Optimizer_do_optimize(self, ns)
6082 def update_states(self):
6083 """update_states(Optimizer self)"""
6084 return _IMP_kernel.Optimizer_update_states(self)
6088 """__str__(Optimizer self) -> std::string"""
6089 return _IMP_kernel.Optimizer___str__(self)
6093 """__repr__(Optimizer self) -> std::string"""
6094 return _IMP_kernel.Optimizer___repr__(self)
6099 return _object_cast_to_Optimizer(o)
6102 def get_type_name(self):
6103 return self.__class__.__name__
6104 def do_show(self, out):
6106 def get_version_info(self):
6108 return VersionInfo(self.__module__,
6115 return _object_cast_to_Optimizer(o)
6117 def __disown__(self):
6119 _IMP_kernel.disown_Optimizer(self)
6120 return weakref_proxy(self)
6122 def do_destroy(self):
6123 """do_destroy(Optimizer self)"""
6124 return _IMP_kernel.Optimizer_do_destroy(self)
6127 def handle_set_has_required_score_states(self, arg0):
6128 """handle_set_has_required_score_states(Optimizer self, bool arg0)"""
6129 return _IMP_kernel.Optimizer_handle_set_has_required_score_states(self, arg0)
6132 def do_get_interactions(self):
6133 """do_get_interactions(Optimizer self) -> IMP::ModelObjectsTemps"""
6134 return _IMP_kernel.Optimizer_do_get_interactions(self)
6136 Optimizer_swigregister = _IMP_kernel.Optimizer_swigregister
6137 Optimizer_swigregister(Optimizer)
6139 class AttributeOptimizer(Optimizer):
6140 """Proxy of C++ IMP::AttributeOptimizer 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::AttributeOptimizer self, Model m, std::string name) -> AttributeOptimizer
6147 __init__(IMP::AttributeOptimizer self, Model m) -> AttributeOptimizer
6149 if self.__class__ == AttributeOptimizer:
6153 this = _IMP_kernel.new_AttributeOptimizer(_self, *args)
6155 self.this.append(this)
6156 except __builtin__.Exception:
6159 if self.__class__ != AttributeOptimizer:
6160 _director_objects.register(self)
6165 def get_optimized_attributes(self):
6166 """get_optimized_attributes(AttributeOptimizer self) -> IMP::FloatIndexes"""
6167 return _IMP_kernel.AttributeOptimizer_get_optimized_attributes(self)
6170 def set_value(self, fi, v):
6171 """set_value(AttributeOptimizer self, FloatIndex fi, double v)"""
6172 return _IMP_kernel.AttributeOptimizer_set_value(self, fi, v)
6175 def get_value(self, fi):
6176 """get_value(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
6177 return _IMP_kernel.AttributeOptimizer_get_value(self, fi)
6180 def get_derivative(self, fi):
6181 """get_derivative(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
6182 return _IMP_kernel.AttributeOptimizer_get_derivative(self, fi)
6185 def get_width(self, k):
6186 """get_width(AttributeOptimizer self, FloatKey k) -> double"""
6187 return _IMP_kernel.AttributeOptimizer_get_width(self, k)
6190 def set_scaled_value(self, fi, v):
6191 """set_scaled_value(AttributeOptimizer self, FloatIndex fi, IMP::Float v)"""
6192 return _IMP_kernel.AttributeOptimizer_set_scaled_value(self, fi, v)
6195 def get_scaled_value(self, fi):
6196 """get_scaled_value(AttributeOptimizer self, FloatIndex fi) -> double"""
6197 return _IMP_kernel.AttributeOptimizer_get_scaled_value(self, fi)
6200 def get_scaled_derivative(self, fi):
6201 """get_scaled_derivative(AttributeOptimizer self, FloatIndex fi) -> double"""
6202 return _IMP_kernel.AttributeOptimizer_get_scaled_derivative(self, fi)
6205 def clear_range_cache(self):
6206 """clear_range_cache(AttributeOptimizer self)"""
6207 return _IMP_kernel.AttributeOptimizer_clear_range_cache(self)
6211 """__str__(AttributeOptimizer self) -> std::string"""
6212 return _IMP_kernel.AttributeOptimizer___str__(self)
6216 """__repr__(AttributeOptimizer self) -> std::string"""
6217 return _IMP_kernel.AttributeOptimizer___repr__(self)
6222 return _object_cast_to_AttributeOptimizer(o)
6225 def get_type_name(self):
6226 return self.__class__.__name__
6227 def do_show(self, out):
6229 def get_version_info(self):
6231 return VersionInfo(self.__module__,
6238 return _object_cast_to_AttributeOptimizer(o)
6240 __swig_destroy__ = _IMP_kernel.delete_AttributeOptimizer
6241 __del__ =
lambda self:
None
6242 def __disown__(self):
6244 _IMP_kernel.disown_AttributeOptimizer(self)
6245 return weakref_proxy(self)
6247 def do_destroy(self):
6248 """do_destroy(AttributeOptimizer self)"""
6249 return _IMP_kernel.AttributeOptimizer_do_destroy(self)
6252 def handle_set_has_required_score_states(self, arg0):
6253 """handle_set_has_required_score_states(AttributeOptimizer self, bool arg0)"""
6254 return _IMP_kernel.AttributeOptimizer_handle_set_has_required_score_states(self, arg0)
6257 def do_get_inputs(self):
6258 """do_get_inputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
6259 return _IMP_kernel.AttributeOptimizer_do_get_inputs(self)
6262 def do_get_outputs(self):
6263 """do_get_outputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
6264 return _IMP_kernel.AttributeOptimizer_do_get_outputs(self)
6267 def do_get_interactions(self):
6268 """do_get_interactions(AttributeOptimizer self) -> IMP::ModelObjectsTemps"""
6269 return _IMP_kernel.AttributeOptimizer_do_get_interactions(self)
6272 def do_optimize(self, ns):
6273 """do_optimize(AttributeOptimizer self, unsigned int ns) -> double"""
6274 return _IMP_kernel.AttributeOptimizer_do_optimize(self, ns)
6276 AttributeOptimizer_swigregister = _IMP_kernel.AttributeOptimizer_swigregister
6277 AttributeOptimizer_swigregister(AttributeOptimizer)
6279 class ConfigurationSet(Object):
6280 """Proxy of C++ IMP::ConfigurationSet class."""
6282 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6284 def __init__(self, *args):
6286 __init__(IMP::ConfigurationSet self, Model m, std::string name) -> ConfigurationSet
6287 __init__(IMP::ConfigurationSet self, Model m) -> ConfigurationSet
6289 this = _IMP_kernel.new_ConfigurationSet(*args)
6291 self.this.append(this)
6292 except __builtin__.Exception:
6295 def save_configuration(self):
6296 """save_configuration(ConfigurationSet self)"""
6297 return _IMP_kernel.ConfigurationSet_save_configuration(self)
6300 def get_number_of_configurations(self):
6301 """get_number_of_configurations(ConfigurationSet self) -> unsigned int"""
6302 return _IMP_kernel.ConfigurationSet_get_number_of_configurations(self)
6305 def load_configuration(self, i):
6306 """load_configuration(ConfigurationSet self, int i)"""
6307 return _IMP_kernel.ConfigurationSet_load_configuration(self, i)
6310 def remove_configuration(self, i):
6311 """remove_configuration(ConfigurationSet self, unsigned int i)"""
6312 return _IMP_kernel.ConfigurationSet_remove_configuration(self, i)
6315 def get_model(self):
6316 """get_model(ConfigurationSet self) -> Model"""
6317 return _IMP_kernel.ConfigurationSet_get_model(self)
6320 def get_version_info(self):
6321 """get_version_info(ConfigurationSet self) -> VersionInfo"""
6322 return _IMP_kernel.ConfigurationSet_get_version_info(self)
6326 """__str__(ConfigurationSet self) -> std::string"""
6327 return _IMP_kernel.ConfigurationSet___str__(self)
6331 """__repr__(ConfigurationSet self) -> std::string"""
6332 return _IMP_kernel.ConfigurationSet___repr__(self)
6337 return _object_cast_to_ConfigurationSet(o)
6339 ConfigurationSet_swigregister = _IMP_kernel.ConfigurationSet_swigregister
6340 ConfigurationSet_swigregister(ConfigurationSet)
6342 class SaveToConfigurationSetOptimizerState(OptimizerState):
6343 """Proxy of C++ IMP::SaveToConfigurationSetOptimizerState class."""
6345 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6347 def __init__(self, cs):
6348 """__init__(IMP::SaveToConfigurationSetOptimizerState self, ConfigurationSet cs) -> SaveToConfigurationSetOptimizerState"""
6349 this = _IMP_kernel.new_SaveToConfigurationSetOptimizerState(cs)
6351 self.this.append(this)
6352 except __builtin__.Exception:
6355 def get_version_info(self):
6356 """get_version_info(SaveToConfigurationSetOptimizerState self) -> VersionInfo"""
6357 return _IMP_kernel.SaveToConfigurationSetOptimizerState_get_version_info(self)
6361 """__str__(SaveToConfigurationSetOptimizerState self) -> std::string"""
6362 return _IMP_kernel.SaveToConfigurationSetOptimizerState___str__(self)
6366 """__repr__(SaveToConfigurationSetOptimizerState self) -> std::string"""
6367 return _IMP_kernel.SaveToConfigurationSetOptimizerState___repr__(self)
6372 return _object_cast_to_SaveToConfigurationSetOptimizerState(o)
6374 SaveToConfigurationSetOptimizerState_swigregister = _IMP_kernel.SaveToConfigurationSetOptimizerState_swigregister
6375 SaveToConfigurationSetOptimizerState_swigregister(SaveToConfigurationSetOptimizerState)
6377 class Configuration(Object):
6378 """Proxy of C++ IMP::Configuration class."""
6380 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6382 def __init__(self, *args):
6384 __init__(IMP::Configuration self, Model m, std::string name) -> Configuration
6385 __init__(IMP::Configuration self, Model m) -> Configuration
6386 __init__(IMP::Configuration self, Model m, Configuration base, std::string name) -> Configuration
6387 __init__(IMP::Configuration self, Model m, Configuration base) -> Configuration
6389 this = _IMP_kernel.new_Configuration(*args)
6391 self.this.append(this)
6392 except __builtin__.Exception:
6395 def load_configuration(self):
6396 """load_configuration(Configuration self)"""
6397 return _IMP_kernel.Configuration_load_configuration(self)
6400 def swap_configuration(self):
6401 """swap_configuration(Configuration self)"""
6402 return _IMP_kernel.Configuration_swap_configuration(self)
6405 def get_version_info(self):
6406 """get_version_info(Configuration self) -> VersionInfo"""
6407 return _IMP_kernel.Configuration_get_version_info(self)
6411 """__str__(Configuration self) -> std::string"""
6412 return _IMP_kernel.Configuration___str__(self)
6416 """__repr__(Configuration self) -> std::string"""
6417 return _IMP_kernel.Configuration___repr__(self)
6422 return _object_cast_to_Configuration(o)
6424 Configuration_swigregister = _IMP_kernel.Configuration_swigregister
6425 Configuration_swigregister(Configuration)
6427 class Sampler(Object):
6428 """Proxy of C++ IMP::Sampler class."""
6430 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6432 def __init__(self, *args):
6434 __init__(IMP::Sampler self, Model m, std::string name) -> Sampler
6435 __init__(IMP::Sampler self, Model m) -> Sampler
6437 if self.__class__ == Sampler:
6441 this = _IMP_kernel.new_Sampler(_self, *args)
6443 self.this.append(this)
6444 except __builtin__.Exception:
6447 if self.__class__ != Sampler:
6448 _director_objects.register(self)
6453 def create_sample(self):
6454 """create_sample(Sampler self) -> ConfigurationSet"""
6455 return _IMP_kernel.Sampler_create_sample(self)
6458 def get_scoring_function(self):
6459 """get_scoring_function(Sampler self) -> ScoringFunction"""
6460 return _IMP_kernel.Sampler_get_scoring_function(self)
6463 def set_scoring_function(self, sf):
6464 """set_scoring_function(Sampler self, _ScoringFunctionAdaptor sf)"""
6465 return _IMP_kernel.Sampler_set_scoring_function(self, sf)
6468 def get_model(self):
6469 """get_model(Sampler self) -> Model"""
6470 return _IMP_kernel.Sampler_get_model(self)
6473 def do_sample(self):
6474 """do_sample(Sampler self) -> ConfigurationSet"""
6475 return _IMP_kernel.Sampler_do_sample(self)
6477 __swig_destroy__ = _IMP_kernel.delete_Sampler
6478 __del__ =
lambda self:
None
6481 """__str__(Sampler self) -> std::string"""
6482 return _IMP_kernel.Sampler___str__(self)
6486 """__repr__(Sampler self) -> std::string"""
6487 return _IMP_kernel.Sampler___repr__(self)
6492 return _object_cast_to_Sampler(o)
6495 def get_type_name(self):
6496 return self.__class__.__name__
6497 def do_show(self, out):
6499 def get_version_info(self):
6501 return VersionInfo(self.__module__,
6508 return _object_cast_to_Sampler(o)
6510 def __disown__(self):
6512 _IMP_kernel.disown_Sampler(self)
6513 return weakref_proxy(self)
6515 def do_destroy(self):
6516 """do_destroy(Sampler self)"""
6517 return _IMP_kernel.Sampler_do_destroy(self)
6519 Sampler_swigregister = _IMP_kernel.Sampler_swigregister
6520 Sampler_swigregister(Sampler)
6522 class PairModifier(_ParticleInputs, _ParticleOutputs, Object):
6523 """Proxy of C++ IMP::PairModifier class."""
6525 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6527 def __init__(self, *args):
6529 __init__(IMP::PairModifier self, std::string name) -> PairModifier
6530 __init__(IMP::PairModifier self) -> PairModifier
6532 if self.__class__ == PairModifier:
6536 this = _IMP_kernel.new_PairModifier(_self, *args)
6538 self.this.append(this)
6539 except __builtin__.Exception:
6542 if self.__class__ != PairModifier:
6543 _director_objects.register(self)
6548 def apply_index(self, m, v):
6549 """apply_index(PairModifier self, Model m, IMP::ParticleIndexPair const & v)"""
6550 return _IMP_kernel.PairModifier_apply_index(self, m, v)
6553 def apply_indexes(self, m, o, lower_bound, upper_bound):
6554 """apply_indexes(PairModifier self, Model m, IMP::ParticleIndexPairs const & o, unsigned int lower_bound, unsigned int upper_bound)"""
6555 return _IMP_kernel.PairModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
6559 """__str__(PairModifier self) -> std::string"""
6560 return _IMP_kernel.PairModifier___str__(self)
6564 """__repr__(PairModifier self) -> std::string"""
6565 return _IMP_kernel.PairModifier___repr__(self)
6570 return _object_cast_to_PairModifier(o)
6573 def get_type_name(self):
6574 return self.__class__.__name__
6575 def do_show(self, out):
6577 def get_version_info(self):
6579 return VersionInfo(self.__module__,
6586 return _object_cast_to_PairModifier(o)
6588 __swig_destroy__ = _IMP_kernel.delete_PairModifier
6589 __del__ =
lambda self:
None
6590 def __disown__(self):
6592 _IMP_kernel.disown_PairModifier(self)
6593 return weakref_proxy(self)
6595 def do_get_inputs(self, m, pis):
6596 """do_get_inputs(PairModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6597 return _IMP_kernel.PairModifier_do_get_inputs(self, m, pis)
6600 def do_get_outputs(self, m, pis):
6601 """do_get_outputs(PairModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6602 return _IMP_kernel.PairModifier_do_get_outputs(self, m, pis)
6605 def do_destroy(self):
6606 """do_destroy(PairModifier self)"""
6607 return _IMP_kernel.PairModifier_do_destroy(self)
6609 PairModifier_swigregister = _IMP_kernel.PairModifier_swigregister
6610 PairModifier_swigregister(PairModifier)
6612 class PairScore(_ParticleInputs, Object):
6613 """Proxy of C++ IMP::PairScore class."""
6615 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6617 def __init__(self, *args):
6619 __init__(IMP::PairScore self, std::string name) -> PairScore
6620 __init__(IMP::PairScore self) -> PairScore
6622 if self.__class__ == PairScore:
6626 this = _IMP_kernel.new_PairScore(_self, *args)
6628 self.this.append(this)
6629 except __builtin__.Exception:
6632 if self.__class__ != PairScore:
6633 _director_objects.register(self)
6638 def evaluate_index(self, m, vt, da):
6639 """evaluate_index(PairScore self, Model m, IMP::ParticleIndexPair const & vt, DerivativeAccumulator da) -> double"""
6640 return _IMP_kernel.PairScore_evaluate_index(self, m, vt, da)
6643 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
6644 """evaluate_indexes(PairScore self, Model m, IMP::ParticleIndexPairs const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
6645 return _IMP_kernel.PairScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
6648 def evaluate_if_good_index(self, m, vt, da, max):
6649 """evaluate_if_good_index(PairScore self, Model m, IMP::ParticleIndexPair const & vt, DerivativeAccumulator da, double max) -> double"""
6650 return _IMP_kernel.PairScore_evaluate_if_good_index(self, m, vt, da, max)
6653 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
6654 """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"""
6655 return _IMP_kernel.PairScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
6658 def create_current_decomposition(self, m, vt):
6659 """create_current_decomposition(PairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
6660 return _IMP_kernel.PairScore_create_current_decomposition(self, m, vt)
6663 def do_create_current_decomposition(self, m, vt):
6664 """do_create_current_decomposition(PairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
6665 return _IMP_kernel.PairScore_do_create_current_decomposition(self, m, vt)
6667 __swig_destroy__ = _IMP_kernel.delete_PairScore
6668 __del__ =
lambda self:
None
6671 """__str__(PairScore self) -> std::string"""
6672 return _IMP_kernel.PairScore___str__(self)
6676 """__repr__(PairScore self) -> std::string"""
6677 return _IMP_kernel.PairScore___repr__(self)
6682 return _object_cast_to_PairScore(o)
6685 def get_type_name(self):
6686 return self.__class__.__name__
6687 def do_show(self, out):
6689 def get_version_info(self):
6691 return VersionInfo(self.__module__,
6698 return _object_cast_to_PairScore(o)
6700 def __disown__(self):
6702 _IMP_kernel.disown_PairScore(self)
6703 return weakref_proxy(self)
6705 def do_get_inputs(self, m, pis):
6706 """do_get_inputs(PairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6707 return _IMP_kernel.PairScore_do_get_inputs(self, m, pis)
6710 def do_destroy(self):
6711 """do_destroy(PairScore self)"""
6712 return _IMP_kernel.PairScore_do_destroy(self)
6714 PairScore_swigregister = _IMP_kernel.PairScore_swigregister
6715 PairScore_swigregister(PairScore)
6717 class PairPredicate(_ParticleInputs, Object):
6718 """Proxy of C++ IMP::PairPredicate class."""
6720 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6722 def __init__(self, *args):
6724 __init__(IMP::PairPredicate self, std::string name) -> PairPredicate
6725 __init__(IMP::PairPredicate self) -> PairPredicate
6727 if self.__class__ == PairPredicate:
6731 this = _IMP_kernel.new_PairPredicate(_self, *args)
6733 self.this.append(this)
6734 except __builtin__.Exception:
6737 if self.__class__ != PairPredicate:
6738 _director_objects.register(self)
6743 def get_value(self, *args):
6745 get_value(PairPredicate self, IMP::ParticlePair const & vt) -> int
6746 get_value(PairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
6748 return _IMP_kernel.PairPredicate_get_value(self, *args)
6751 def setup_for_get_value_index_in_batch(self, arg0):
6752 """setup_for_get_value_index_in_batch(PairPredicate self, Model arg0)"""
6753 return _IMP_kernel.PairPredicate_setup_for_get_value_index_in_batch(self, arg0)
6756 def get_value_index_in_batch(self, m, vt):
6757 """get_value_index_in_batch(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int"""
6758 return _IMP_kernel.PairPredicate_get_value_index_in_batch(self, m, vt)
6761 def __call__(self, m, vt):
6762 """__call__(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int"""
6763 return _IMP_kernel.PairPredicate___call__(self, m, vt)
6766 def get_value_index(self, *args):
6768 get_value_index(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int
6769 get_value_index(PairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
6771 return _IMP_kernel.PairPredicate_get_value_index(self, *args)
6773 __swig_destroy__ = _IMP_kernel.delete_PairPredicate
6774 __del__ =
lambda self:
None
6777 """__str__(PairPredicate self) -> std::string"""
6778 return _IMP_kernel.PairPredicate___str__(self)
6782 """__repr__(PairPredicate self) -> std::string"""
6783 return _IMP_kernel.PairPredicate___repr__(self)
6788 return _object_cast_to_PairPredicate(o)
6791 def get_type_name(self):
6792 return self.__class__.__name__
6793 def do_show(self, out):
6795 def get_version_info(self):
6797 return VersionInfo(self.__module__,
6804 return _object_cast_to_PairPredicate(o)
6806 def __disown__(self):
6808 _IMP_kernel.disown_PairPredicate(self)
6809 return weakref_proxy(self)
6811 def do_get_inputs(self, m, pis):
6812 """do_get_inputs(PairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6813 return _IMP_kernel.PairPredicate_do_get_inputs(self, m, pis)
6816 def do_destroy(self):
6817 """do_destroy(PairPredicate self)"""
6818 return _IMP_kernel.PairPredicate_do_destroy(self)
6820 PairPredicate_swigregister = _IMP_kernel.PairPredicate_swigregister
6821 PairPredicate_swigregister(PairPredicate)
6823 class PairContainer(Container):
6824 """Proxy of C++ IMP::PairContainer class."""
6826 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6828 def apply_generic(self, m):
6829 """apply_generic(PairContainer self, PairModifier m)"""
6830 return _IMP_kernel.PairContainer_apply_generic(self, m)
6833 def apply(self, sm):
6834 """apply(PairContainer self, PairModifier sm)"""
6835 return _IMP_kernel.PairContainer_apply(self, sm)
6838 def get_range_indexes(self):
6839 """get_range_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
6840 return _IMP_kernel.PairContainer_get_range_indexes(self)
6843 def get_contents(self):
6844 """get_contents(PairContainer self) -> IMP::ParticleIndexPairs const &"""
6845 return _IMP_kernel.PairContainer_get_contents(self)
6849 """get_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
6850 return _IMP_kernel.PairContainer_get_indexes(self)
6853 def get(self, *args):
6855 get(PairContainer self) -> IMP::ParticlePairsTemp
6856 get(PairContainer self, unsigned int i) -> IMP::ParticlePair
6858 return _IMP_kernel.PairContainer_get(self, *args)
6861 def get_number(self):
6862 """get_number(PairContainer self) -> unsigned int"""
6863 return _IMP_kernel.PairContainer_get_number(self)
6866 def get_particle_pairs(self):
6867 """get_particle_pairs(PairContainer self) -> IMP::ParticlePairsTemp"""
6868 return _IMP_kernel.PairContainer_get_particle_pairs(self)
6871 def get_particle_pair(self, i):
6872 """get_particle_pair(PairContainer self, unsigned int i) -> IMP::ParticlePair"""
6873 return _IMP_kernel.PairContainer_get_particle_pair(self, i)
6876 def __init__(self, *args):
6878 __init__(IMP::PairContainer self, Model m, std::string name) -> PairContainer
6879 __init__(IMP::PairContainer self, Model m) -> PairContainer
6881 if self.__class__ == PairContainer:
6885 this = _IMP_kernel.new_PairContainer(_self, *args)
6887 self.this.append(this)
6888 except __builtin__.Exception:
6891 if self.__class__ != PairContainer:
6892 _director_objects.register(self)
6897 def do_apply(self, sm):
6898 """do_apply(PairContainer self, PairModifier sm)"""
6899 return _IMP_kernel.PairContainer_do_apply(self, sm)
6902 def do_get_provides_access(self):
6903 """do_get_provides_access(PairContainer self) -> bool"""
6904 return _IMP_kernel.PairContainer_do_get_provides_access(self)
6906 __swig_destroy__ = _IMP_kernel.delete_PairContainer
6907 __del__ =
lambda self:
None
6910 """__str__(PairContainer self) -> std::string"""
6911 return _IMP_kernel.PairContainer___str__(self)
6915 """__repr__(PairContainer self) -> std::string"""
6916 return _IMP_kernel.PairContainer___repr__(self)
6921 return _object_cast_to_PairContainer(o)
6924 def get_type_name(self):
6925 return self.__class__.__name__
6926 def do_show(self, out):
6928 def get_version_info(self):
6930 return VersionInfo(self.__module__,
6937 return _object_cast_to_PairContainer(o)
6939 def __disown__(self):
6941 _IMP_kernel.disown_PairContainer(self)
6942 return weakref_proxy(self)
6944 def do_destroy(self):
6945 """do_destroy(PairContainer self)"""
6946 return _IMP_kernel.PairContainer_do_destroy(self)
6949 def handle_set_has_required_score_states(self, arg0):
6950 """handle_set_has_required_score_states(PairContainer self, bool arg0)"""
6951 return _IMP_kernel.PairContainer_handle_set_has_required_score_states(self, arg0)
6954 def do_get_inputs(self):
6955 """do_get_inputs(PairContainer self) -> IMP::ModelObjectsTemp"""
6956 return _IMP_kernel.PairContainer_do_get_inputs(self)
6959 def do_get_interactions(self):
6960 """do_get_interactions(PairContainer self) -> IMP::ModelObjectsTemps"""
6961 return _IMP_kernel.PairContainer_do_get_interactions(self)
6964 def do_get_contents_hash(self):
6965 """do_get_contents_hash(PairContainer self) -> std::size_t"""
6966 return _IMP_kernel.PairContainer_do_get_contents_hash(self)
6968 PairContainer_swigregister = _IMP_kernel.PairContainer_swigregister
6969 PairContainer_swigregister(PairContainer)
6971 class _PairContainerAdaptor(_InputAdaptor):
6972 """Proxy of C++ IMP::PairContainerAdaptor class."""
6974 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6975 __repr__ = _swig_repr
6977 def __init__(self, *args):
6979 __init__(IMP::PairContainerAdaptor self) -> _PairContainerAdaptor
6980 __init__(IMP::PairContainerAdaptor self, PairContainer c) -> _PairContainerAdaptor
6981 __init__(IMP::PairContainerAdaptor self, IMP::ParticlePairsTemp const & t) -> _PairContainerAdaptor
6983 this = _IMP_kernel.new__PairContainerAdaptor(*args)
6985 self.this.append(this)
6986 except __builtin__.Exception:
6989 def set_name_if_default(self, name):
6990 """set_name_if_default(_PairContainerAdaptor self, std::string name)"""
6991 return _IMP_kernel._PairContainerAdaptor_set_name_if_default(self, name)
6993 __swig_destroy__ = _IMP_kernel.delete__PairContainerAdaptor
6994 __del__ =
lambda self:
None
6995 _PairContainerAdaptor_swigregister = _IMP_kernel._PairContainerAdaptor_swigregister
6996 _PairContainerAdaptor_swigregister(_PairContainerAdaptor)
6998 class QuadModifier(_ParticleInputs, _ParticleOutputs, Object):
6999 """Proxy of C++ IMP::QuadModifier class."""
7001 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7003 def __init__(self, *args):
7005 __init__(IMP::QuadModifier self, std::string name) -> QuadModifier
7006 __init__(IMP::QuadModifier self) -> QuadModifier
7008 if self.__class__ == QuadModifier:
7012 this = _IMP_kernel.new_QuadModifier(_self, *args)
7014 self.this.append(this)
7015 except __builtin__.Exception:
7018 if self.__class__ != QuadModifier:
7019 _director_objects.register(self)
7024 def apply_index(self, m, v):
7025 """apply_index(QuadModifier self, Model m, IMP::ParticleIndexQuad const & v)"""
7026 return _IMP_kernel.QuadModifier_apply_index(self, m, v)
7029 def apply_indexes(self, m, o, lower_bound, upper_bound):
7030 """apply_indexes(QuadModifier self, Model m, IMP::ParticleIndexQuads const & o, unsigned int lower_bound, unsigned int upper_bound)"""
7031 return _IMP_kernel.QuadModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
7035 """__str__(QuadModifier self) -> std::string"""
7036 return _IMP_kernel.QuadModifier___str__(self)
7040 """__repr__(QuadModifier self) -> std::string"""
7041 return _IMP_kernel.QuadModifier___repr__(self)
7046 return _object_cast_to_QuadModifier(o)
7049 def get_type_name(self):
7050 return self.__class__.__name__
7051 def do_show(self, out):
7053 def get_version_info(self):
7055 return VersionInfo(self.__module__,
7062 return _object_cast_to_QuadModifier(o)
7064 __swig_destroy__ = _IMP_kernel.delete_QuadModifier
7065 __del__ =
lambda self:
None
7066 def __disown__(self):
7068 _IMP_kernel.disown_QuadModifier(self)
7069 return weakref_proxy(self)
7071 def do_get_inputs(self, m, pis):
7072 """do_get_inputs(QuadModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7073 return _IMP_kernel.QuadModifier_do_get_inputs(self, m, pis)
7076 def do_get_outputs(self, m, pis):
7077 """do_get_outputs(QuadModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7078 return _IMP_kernel.QuadModifier_do_get_outputs(self, m, pis)
7081 def do_destroy(self):
7082 """do_destroy(QuadModifier self)"""
7083 return _IMP_kernel.QuadModifier_do_destroy(self)
7085 QuadModifier_swigregister = _IMP_kernel.QuadModifier_swigregister
7086 QuadModifier_swigregister(QuadModifier)
7088 class QuadScore(_ParticleInputs, Object):
7089 """Proxy of C++ IMP::QuadScore class."""
7091 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7093 def __init__(self, *args):
7095 __init__(IMP::QuadScore self, std::string name) -> QuadScore
7096 __init__(IMP::QuadScore self) -> QuadScore
7098 if self.__class__ == QuadScore:
7102 this = _IMP_kernel.new_QuadScore(_self, *args)
7104 self.this.append(this)
7105 except __builtin__.Exception:
7108 if self.__class__ != QuadScore:
7109 _director_objects.register(self)
7114 def evaluate_index(self, m, vt, da):
7115 """evaluate_index(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt, DerivativeAccumulator da) -> double"""
7116 return _IMP_kernel.QuadScore_evaluate_index(self, m, vt, da)
7119 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
7120 """evaluate_indexes(QuadScore self, Model m, IMP::ParticleIndexQuads const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7121 return _IMP_kernel.QuadScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
7124 def evaluate_if_good_index(self, m, vt, da, max):
7125 """evaluate_if_good_index(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt, DerivativeAccumulator da, double max) -> double"""
7126 return _IMP_kernel.QuadScore_evaluate_if_good_index(self, m, vt, da, max)
7129 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
7130 """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"""
7131 return _IMP_kernel.QuadScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
7134 def create_current_decomposition(self, m, vt):
7135 """create_current_decomposition(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
7136 return _IMP_kernel.QuadScore_create_current_decomposition(self, m, vt)
7139 def do_create_current_decomposition(self, m, vt):
7140 """do_create_current_decomposition(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
7141 return _IMP_kernel.QuadScore_do_create_current_decomposition(self, m, vt)
7143 __swig_destroy__ = _IMP_kernel.delete_QuadScore
7144 __del__ =
lambda self:
None
7147 """__str__(QuadScore self) -> std::string"""
7148 return _IMP_kernel.QuadScore___str__(self)
7152 """__repr__(QuadScore self) -> std::string"""
7153 return _IMP_kernel.QuadScore___repr__(self)
7158 return _object_cast_to_QuadScore(o)
7161 def get_type_name(self):
7162 return self.__class__.__name__
7163 def do_show(self, out):
7165 def get_version_info(self):
7167 return VersionInfo(self.__module__,
7174 return _object_cast_to_QuadScore(o)
7176 def __disown__(self):
7178 _IMP_kernel.disown_QuadScore(self)
7179 return weakref_proxy(self)
7181 def do_get_inputs(self, m, pis):
7182 """do_get_inputs(QuadScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7183 return _IMP_kernel.QuadScore_do_get_inputs(self, m, pis)
7186 def do_destroy(self):
7187 """do_destroy(QuadScore self)"""
7188 return _IMP_kernel.QuadScore_do_destroy(self)
7190 QuadScore_swigregister = _IMP_kernel.QuadScore_swigregister
7191 QuadScore_swigregister(QuadScore)
7193 class QuadPredicate(_ParticleInputs, Object):
7194 """Proxy of C++ IMP::QuadPredicate class."""
7196 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7198 def __init__(self, *args):
7200 __init__(IMP::QuadPredicate self, std::string name) -> QuadPredicate
7201 __init__(IMP::QuadPredicate self) -> QuadPredicate
7203 if self.__class__ == QuadPredicate:
7207 this = _IMP_kernel.new_QuadPredicate(_self, *args)
7209 self.this.append(this)
7210 except __builtin__.Exception:
7213 if self.__class__ != QuadPredicate:
7214 _director_objects.register(self)
7219 def get_value(self, *args):
7221 get_value(QuadPredicate self, IMP::ParticleQuad const & vt) -> int
7222 get_value(QuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
7224 return _IMP_kernel.QuadPredicate_get_value(self, *args)
7227 def setup_for_get_value_index_in_batch(self, arg0):
7228 """setup_for_get_value_index_in_batch(QuadPredicate self, Model arg0)"""
7229 return _IMP_kernel.QuadPredicate_setup_for_get_value_index_in_batch(self, arg0)
7232 def get_value_index_in_batch(self, m, vt):
7233 """get_value_index_in_batch(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int"""
7234 return _IMP_kernel.QuadPredicate_get_value_index_in_batch(self, m, vt)
7237 def __call__(self, m, vt):
7238 """__call__(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int"""
7239 return _IMP_kernel.QuadPredicate___call__(self, m, vt)
7242 def get_value_index(self, *args):
7244 get_value_index(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int
7245 get_value_index(QuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
7247 return _IMP_kernel.QuadPredicate_get_value_index(self, *args)
7249 __swig_destroy__ = _IMP_kernel.delete_QuadPredicate
7250 __del__ =
lambda self:
None
7253 """__str__(QuadPredicate self) -> std::string"""
7254 return _IMP_kernel.QuadPredicate___str__(self)
7258 """__repr__(QuadPredicate self) -> std::string"""
7259 return _IMP_kernel.QuadPredicate___repr__(self)
7264 return _object_cast_to_QuadPredicate(o)
7267 def get_type_name(self):
7268 return self.__class__.__name__
7269 def do_show(self, out):
7271 def get_version_info(self):
7273 return VersionInfo(self.__module__,
7280 return _object_cast_to_QuadPredicate(o)
7282 def __disown__(self):
7284 _IMP_kernel.disown_QuadPredicate(self)
7285 return weakref_proxy(self)
7287 def do_get_inputs(self, m, pis):
7288 """do_get_inputs(QuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7289 return _IMP_kernel.QuadPredicate_do_get_inputs(self, m, pis)
7292 def do_destroy(self):
7293 """do_destroy(QuadPredicate self)"""
7294 return _IMP_kernel.QuadPredicate_do_destroy(self)
7296 QuadPredicate_swigregister = _IMP_kernel.QuadPredicate_swigregister
7297 QuadPredicate_swigregister(QuadPredicate)
7299 class QuadContainer(Container):
7300 """Proxy of C++ IMP::QuadContainer class."""
7302 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7304 def apply_generic(self, m):
7305 """apply_generic(QuadContainer self, QuadModifier m)"""
7306 return _IMP_kernel.QuadContainer_apply_generic(self, m)
7309 def apply(self, sm):
7310 """apply(QuadContainer self, QuadModifier sm)"""
7311 return _IMP_kernel.QuadContainer_apply(self, sm)
7314 def get_range_indexes(self):
7315 """get_range_indexes(QuadContainer self) -> IMP::ParticleIndexQuads"""
7316 return _IMP_kernel.QuadContainer_get_range_indexes(self)
7319 def get_contents(self):
7320 """get_contents(QuadContainer self) -> IMP::ParticleIndexQuads const &"""
7321 return _IMP_kernel.QuadContainer_get_contents(self)
7325 """get_indexes(QuadContainer self) -> IMP::ParticleIndexQuads"""
7326 return _IMP_kernel.QuadContainer_get_indexes(self)
7329 def get(self, *args):
7331 get(QuadContainer self) -> IMP::ParticleQuadsTemp
7332 get(QuadContainer self, unsigned int i) -> IMP::ParticleQuad
7334 return _IMP_kernel.QuadContainer_get(self, *args)
7337 def get_number(self):
7338 """get_number(QuadContainer self) -> unsigned int"""
7339 return _IMP_kernel.QuadContainer_get_number(self)
7342 def get_particle_quads(self):
7343 """get_particle_quads(QuadContainer self) -> IMP::ParticleQuadsTemp"""
7344 return _IMP_kernel.QuadContainer_get_particle_quads(self)
7347 def get_particle_quad(self, i):
7348 """get_particle_quad(QuadContainer self, unsigned int i) -> IMP::ParticleQuad"""
7349 return _IMP_kernel.QuadContainer_get_particle_quad(self, i)
7352 def __init__(self, *args):
7354 __init__(IMP::QuadContainer self, Model m, std::string name) -> QuadContainer
7355 __init__(IMP::QuadContainer self, Model m) -> QuadContainer
7357 if self.__class__ == QuadContainer:
7361 this = _IMP_kernel.new_QuadContainer(_self, *args)
7363 self.this.append(this)
7364 except __builtin__.Exception:
7367 if self.__class__ != QuadContainer:
7368 _director_objects.register(self)
7373 def do_apply(self, sm):
7374 """do_apply(QuadContainer self, QuadModifier sm)"""
7375 return _IMP_kernel.QuadContainer_do_apply(self, sm)
7378 def do_get_provides_access(self):
7379 """do_get_provides_access(QuadContainer self) -> bool"""
7380 return _IMP_kernel.QuadContainer_do_get_provides_access(self)
7382 __swig_destroy__ = _IMP_kernel.delete_QuadContainer
7383 __del__ =
lambda self:
None
7386 """__str__(QuadContainer self) -> std::string"""
7387 return _IMP_kernel.QuadContainer___str__(self)
7391 """__repr__(QuadContainer self) -> std::string"""
7392 return _IMP_kernel.QuadContainer___repr__(self)
7397 return _object_cast_to_QuadContainer(o)
7400 def get_type_name(self):
7401 return self.__class__.__name__
7402 def do_show(self, out):
7404 def get_version_info(self):
7406 return VersionInfo(self.__module__,
7413 return _object_cast_to_QuadContainer(o)
7415 def __disown__(self):
7417 _IMP_kernel.disown_QuadContainer(self)
7418 return weakref_proxy(self)
7420 def do_destroy(self):
7421 """do_destroy(QuadContainer self)"""
7422 return _IMP_kernel.QuadContainer_do_destroy(self)
7425 def handle_set_has_required_score_states(self, arg0):
7426 """handle_set_has_required_score_states(QuadContainer self, bool arg0)"""
7427 return _IMP_kernel.QuadContainer_handle_set_has_required_score_states(self, arg0)
7430 def do_get_inputs(self):
7431 """do_get_inputs(QuadContainer self) -> IMP::ModelObjectsTemp"""
7432 return _IMP_kernel.QuadContainer_do_get_inputs(self)
7435 def do_get_interactions(self):
7436 """do_get_interactions(QuadContainer self) -> IMP::ModelObjectsTemps"""
7437 return _IMP_kernel.QuadContainer_do_get_interactions(self)
7440 def do_get_contents_hash(self):
7441 """do_get_contents_hash(QuadContainer self) -> std::size_t"""
7442 return _IMP_kernel.QuadContainer_do_get_contents_hash(self)
7444 QuadContainer_swigregister = _IMP_kernel.QuadContainer_swigregister
7445 QuadContainer_swigregister(QuadContainer)
7447 class _QuadContainerAdaptor(_InputAdaptor):
7448 """Proxy of C++ IMP::QuadContainerAdaptor class."""
7450 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7451 __repr__ = _swig_repr
7453 def __init__(self, *args):
7455 __init__(IMP::QuadContainerAdaptor self) -> _QuadContainerAdaptor
7456 __init__(IMP::QuadContainerAdaptor self, QuadContainer c) -> _QuadContainerAdaptor
7457 __init__(IMP::QuadContainerAdaptor self, IMP::ParticleQuadsTemp const & t) -> _QuadContainerAdaptor
7459 this = _IMP_kernel.new__QuadContainerAdaptor(*args)
7461 self.this.append(this)
7462 except __builtin__.Exception:
7465 def set_name_if_default(self, name):
7466 """set_name_if_default(_QuadContainerAdaptor self, std::string name)"""
7467 return _IMP_kernel._QuadContainerAdaptor_set_name_if_default(self, name)
7469 __swig_destroy__ = _IMP_kernel.delete__QuadContainerAdaptor
7470 __del__ =
lambda self:
None
7471 _QuadContainerAdaptor_swigregister = _IMP_kernel._QuadContainerAdaptor_swigregister
7472 _QuadContainerAdaptor_swigregister(_QuadContainerAdaptor)
7474 class SingletonModifier(_ParticleInputs, _ParticleOutputs, Object):
7475 """Proxy of C++ IMP::SingletonModifier class."""
7477 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7479 def __init__(self, *args):
7481 __init__(IMP::SingletonModifier self, std::string name) -> SingletonModifier
7482 __init__(IMP::SingletonModifier self) -> SingletonModifier
7484 if self.__class__ == SingletonModifier:
7488 this = _IMP_kernel.new_SingletonModifier(_self, *args)
7490 self.this.append(this)
7491 except __builtin__.Exception:
7494 if self.__class__ != SingletonModifier:
7495 _director_objects.register(self)
7500 def apply_index(self, m, v):
7501 """apply_index(SingletonModifier self, Model m, ParticleIndex v)"""
7502 return _IMP_kernel.SingletonModifier_apply_index(self, m, v)
7505 def apply_indexes(self, m, o, lower_bound, upper_bound):
7506 """apply_indexes(SingletonModifier self, Model m, IMP::ParticleIndexes const & o, unsigned int lower_bound, unsigned int upper_bound)"""
7507 return _IMP_kernel.SingletonModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
7511 """__str__(SingletonModifier self) -> std::string"""
7512 return _IMP_kernel.SingletonModifier___str__(self)
7516 """__repr__(SingletonModifier self) -> std::string"""
7517 return _IMP_kernel.SingletonModifier___repr__(self)
7522 return _object_cast_to_SingletonModifier(o)
7525 def get_type_name(self):
7526 return self.__class__.__name__
7527 def do_show(self, out):
7529 def get_version_info(self):
7531 return VersionInfo(self.__module__,
7538 return _object_cast_to_SingletonModifier(o)
7540 __swig_destroy__ = _IMP_kernel.delete_SingletonModifier
7541 __del__ =
lambda self:
None
7542 def __disown__(self):
7544 _IMP_kernel.disown_SingletonModifier(self)
7545 return weakref_proxy(self)
7547 def do_get_inputs(self, m, pis):
7548 """do_get_inputs(SingletonModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7549 return _IMP_kernel.SingletonModifier_do_get_inputs(self, m, pis)
7552 def do_get_outputs(self, m, pis):
7553 """do_get_outputs(SingletonModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7554 return _IMP_kernel.SingletonModifier_do_get_outputs(self, m, pis)
7557 def do_destroy(self):
7558 """do_destroy(SingletonModifier self)"""
7559 return _IMP_kernel.SingletonModifier_do_destroy(self)
7561 SingletonModifier_swigregister = _IMP_kernel.SingletonModifier_swigregister
7562 SingletonModifier_swigregister(SingletonModifier)
7564 class SingletonScore(_ParticleInputs, Object):
7565 """Proxy of C++ IMP::SingletonScore class."""
7567 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7569 def __init__(self, *args):
7571 __init__(IMP::SingletonScore self, std::string name) -> SingletonScore
7572 __init__(IMP::SingletonScore self) -> SingletonScore
7574 if self.__class__ == SingletonScore:
7578 this = _IMP_kernel.new_SingletonScore(_self, *args)
7580 self.this.append(this)
7581 except __builtin__.Exception:
7584 if self.__class__ != SingletonScore:
7585 _director_objects.register(self)
7590 def evaluate_index(self, m, vt, da):
7591 """evaluate_index(SingletonScore self, Model m, ParticleIndex vt, DerivativeAccumulator da) -> double"""
7592 return _IMP_kernel.SingletonScore_evaluate_index(self, m, vt, da)
7595 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
7596 """evaluate_indexes(SingletonScore self, Model m, IMP::ParticleIndexes const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7597 return _IMP_kernel.SingletonScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
7600 def evaluate_if_good_index(self, m, vt, da, max):
7601 """evaluate_if_good_index(SingletonScore self, Model m, ParticleIndex vt, DerivativeAccumulator da, double max) -> double"""
7602 return _IMP_kernel.SingletonScore_evaluate_if_good_index(self, m, vt, da, max)
7605 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
7606 """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"""
7607 return _IMP_kernel.SingletonScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
7610 def create_current_decomposition(self, m, vt):
7611 """create_current_decomposition(SingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
7612 return _IMP_kernel.SingletonScore_create_current_decomposition(self, m, vt)
7615 def do_create_current_decomposition(self, m, vt):
7616 """do_create_current_decomposition(SingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
7617 return _IMP_kernel.SingletonScore_do_create_current_decomposition(self, m, vt)
7619 __swig_destroy__ = _IMP_kernel.delete_SingletonScore
7620 __del__ =
lambda self:
None
7623 """__str__(SingletonScore self) -> std::string"""
7624 return _IMP_kernel.SingletonScore___str__(self)
7628 """__repr__(SingletonScore self) -> std::string"""
7629 return _IMP_kernel.SingletonScore___repr__(self)
7634 return _object_cast_to_SingletonScore(o)
7637 def get_type_name(self):
7638 return self.__class__.__name__
7639 def do_show(self, out):
7641 def get_version_info(self):
7643 return VersionInfo(self.__module__,
7650 return _object_cast_to_SingletonScore(o)
7652 def __disown__(self):
7654 _IMP_kernel.disown_SingletonScore(self)
7655 return weakref_proxy(self)
7657 def do_get_inputs(self, m, pis):
7658 """do_get_inputs(SingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7659 return _IMP_kernel.SingletonScore_do_get_inputs(self, m, pis)
7662 def do_destroy(self):
7663 """do_destroy(SingletonScore self)"""
7664 return _IMP_kernel.SingletonScore_do_destroy(self)
7666 SingletonScore_swigregister = _IMP_kernel.SingletonScore_swigregister
7667 SingletonScore_swigregister(SingletonScore)
7669 class SingletonPredicate(_ParticleInputs, Object):
7670 """Proxy of C++ IMP::SingletonPredicate class."""
7672 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7674 def __init__(self, *args):
7676 __init__(IMP::SingletonPredicate self, std::string name) -> SingletonPredicate
7677 __init__(IMP::SingletonPredicate self) -> SingletonPredicate
7679 if self.__class__ == SingletonPredicate:
7683 this = _IMP_kernel.new_SingletonPredicate(_self, *args)
7685 self.this.append(this)
7686 except __builtin__.Exception:
7689 if self.__class__ != SingletonPredicate:
7690 _director_objects.register(self)
7695 def get_value(self, *args):
7697 get_value(SingletonPredicate self, Particle vt) -> int
7698 get_value(SingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
7700 return _IMP_kernel.SingletonPredicate_get_value(self, *args)
7703 def setup_for_get_value_index_in_batch(self, arg0):
7704 """setup_for_get_value_index_in_batch(SingletonPredicate self, Model arg0)"""
7705 return _IMP_kernel.SingletonPredicate_setup_for_get_value_index_in_batch(self, arg0)
7708 def get_value_index_in_batch(self, m, vt):
7709 """get_value_index_in_batch(SingletonPredicate self, Model m, ParticleIndex vt) -> int"""
7710 return _IMP_kernel.SingletonPredicate_get_value_index_in_batch(self, m, vt)
7713 def __call__(self, m, vt):
7714 """__call__(SingletonPredicate self, Model m, ParticleIndex vt) -> int"""
7715 return _IMP_kernel.SingletonPredicate___call__(self, m, vt)
7718 def get_value_index(self, *args):
7720 get_value_index(SingletonPredicate self, Model m, ParticleIndex vt) -> int
7721 get_value_index(SingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
7723 return _IMP_kernel.SingletonPredicate_get_value_index(self, *args)
7725 __swig_destroy__ = _IMP_kernel.delete_SingletonPredicate
7726 __del__ =
lambda self:
None
7729 """__str__(SingletonPredicate self) -> std::string"""
7730 return _IMP_kernel.SingletonPredicate___str__(self)
7734 """__repr__(SingletonPredicate self) -> std::string"""
7735 return _IMP_kernel.SingletonPredicate___repr__(self)
7740 return _object_cast_to_SingletonPredicate(o)
7743 def get_type_name(self):
7744 return self.__class__.__name__
7745 def do_show(self, out):
7747 def get_version_info(self):
7749 return VersionInfo(self.__module__,
7756 return _object_cast_to_SingletonPredicate(o)
7758 def __disown__(self):
7760 _IMP_kernel.disown_SingletonPredicate(self)
7761 return weakref_proxy(self)
7763 def do_get_inputs(self, m, pis):
7764 """do_get_inputs(SingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7765 return _IMP_kernel.SingletonPredicate_do_get_inputs(self, m, pis)
7768 def do_destroy(self):
7769 """do_destroy(SingletonPredicate self)"""
7770 return _IMP_kernel.SingletonPredicate_do_destroy(self)
7772 SingletonPredicate_swigregister = _IMP_kernel.SingletonPredicate_swigregister
7773 SingletonPredicate_swigregister(SingletonPredicate)
7775 class SingletonContainer(Container):
7776 """Proxy of C++ IMP::SingletonContainer class."""
7778 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7780 def apply_generic(self, m):
7781 """apply_generic(SingletonContainer self, SingletonModifier m)"""
7782 return _IMP_kernel.SingletonContainer_apply_generic(self, m)
7785 def apply(self, sm):
7786 """apply(SingletonContainer self, SingletonModifier sm)"""
7787 return _IMP_kernel.SingletonContainer_apply(self, sm)
7790 def get_range_indexes(self):
7791 """get_range_indexes(SingletonContainer self) -> IMP::ParticleIndexes"""
7792 return _IMP_kernel.SingletonContainer_get_range_indexes(self)
7795 def get_contents(self):
7796 """get_contents(SingletonContainer self) -> IMP::ParticleIndexes const &"""
7797 return _IMP_kernel.SingletonContainer_get_contents(self)
7801 """get_indexes(SingletonContainer self) -> IMP::ParticleIndexes"""
7802 return _IMP_kernel.SingletonContainer_get_indexes(self)
7805 def get(self, *args):
7807 get(SingletonContainer self) -> IMP::ParticlesTemp
7808 get(SingletonContainer self, unsigned int i) -> Particle
7810 return _IMP_kernel.SingletonContainer_get(self, *args)
7813 def get_number(self):
7814 """get_number(SingletonContainer self) -> unsigned int"""
7815 return _IMP_kernel.SingletonContainer_get_number(self)
7819 """get_particles(SingletonContainer self) -> IMP::ParticlesTemp"""
7820 return _IMP_kernel.SingletonContainer_get_particles(self)
7823 def get_particle(self, i):
7824 """get_particle(SingletonContainer self, unsigned int i) -> Particle"""
7825 return _IMP_kernel.SingletonContainer_get_particle(self, i)
7828 def __init__(self, *args):
7830 __init__(IMP::SingletonContainer self, Model m, std::string name) -> SingletonContainer
7831 __init__(IMP::SingletonContainer self, Model m) -> SingletonContainer
7833 if self.__class__ == SingletonContainer:
7837 this = _IMP_kernel.new_SingletonContainer(_self, *args)
7839 self.this.append(this)
7840 except __builtin__.Exception:
7843 if self.__class__ != SingletonContainer:
7844 _director_objects.register(self)
7849 def do_apply(self, sm):
7850 """do_apply(SingletonContainer self, SingletonModifier sm)"""
7851 return _IMP_kernel.SingletonContainer_do_apply(self, sm)
7854 def do_get_provides_access(self):
7855 """do_get_provides_access(SingletonContainer self) -> bool"""
7856 return _IMP_kernel.SingletonContainer_do_get_provides_access(self)
7858 __swig_destroy__ = _IMP_kernel.delete_SingletonContainer
7859 __del__ =
lambda self:
None
7862 """__str__(SingletonContainer self) -> std::string"""
7863 return _IMP_kernel.SingletonContainer___str__(self)
7867 """__repr__(SingletonContainer self) -> std::string"""
7868 return _IMP_kernel.SingletonContainer___repr__(self)
7873 return _object_cast_to_SingletonContainer(o)
7876 def get_type_name(self):
7877 return self.__class__.__name__
7878 def do_show(self, out):
7880 def get_version_info(self):
7882 return VersionInfo(self.__module__,
7889 return _object_cast_to_SingletonContainer(o)
7891 def __disown__(self):
7893 _IMP_kernel.disown_SingletonContainer(self)
7894 return weakref_proxy(self)
7896 def do_destroy(self):
7897 """do_destroy(SingletonContainer self)"""
7898 return _IMP_kernel.SingletonContainer_do_destroy(self)
7901 def handle_set_has_required_score_states(self, arg0):
7902 """handle_set_has_required_score_states(SingletonContainer self, bool arg0)"""
7903 return _IMP_kernel.SingletonContainer_handle_set_has_required_score_states(self, arg0)
7906 def do_get_inputs(self):
7907 """do_get_inputs(SingletonContainer self) -> IMP::ModelObjectsTemp"""
7908 return _IMP_kernel.SingletonContainer_do_get_inputs(self)
7911 def do_get_interactions(self):
7912 """do_get_interactions(SingletonContainer self) -> IMP::ModelObjectsTemps"""
7913 return _IMP_kernel.SingletonContainer_do_get_interactions(self)
7916 def do_get_contents_hash(self):
7917 """do_get_contents_hash(SingletonContainer self) -> std::size_t"""
7918 return _IMP_kernel.SingletonContainer_do_get_contents_hash(self)
7920 SingletonContainer_swigregister = _IMP_kernel.SingletonContainer_swigregister
7921 SingletonContainer_swigregister(SingletonContainer)
7923 class _SingletonContainerAdaptor(_InputAdaptor):
7924 """Proxy of C++ IMP::SingletonContainerAdaptor class."""
7926 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7927 __repr__ = _swig_repr
7929 def __init__(self, *args):
7931 __init__(IMP::SingletonContainerAdaptor self) -> _SingletonContainerAdaptor
7932 __init__(IMP::SingletonContainerAdaptor self, SingletonContainer c) -> _SingletonContainerAdaptor
7933 __init__(IMP::SingletonContainerAdaptor self, IMP::ParticlesTemp const & t) -> _SingletonContainerAdaptor
7935 this = _IMP_kernel.new__SingletonContainerAdaptor(*args)
7937 self.this.append(this)
7938 except __builtin__.Exception:
7941 def set_name_if_default(self, name):
7942 """set_name_if_default(_SingletonContainerAdaptor self, std::string name)"""
7943 return _IMP_kernel._SingletonContainerAdaptor_set_name_if_default(self, name)
7945 __swig_destroy__ = _IMP_kernel.delete__SingletonContainerAdaptor
7946 __del__ =
lambda self:
None
7947 _SingletonContainerAdaptor_swigregister = _IMP_kernel._SingletonContainerAdaptor_swigregister
7948 _SingletonContainerAdaptor_swigregister(_SingletonContainerAdaptor)
7950 class TripletModifier(_ParticleInputs, _ParticleOutputs, Object):
7951 """Proxy of C++ IMP::TripletModifier class."""
7953 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7955 def __init__(self, *args):
7957 __init__(IMP::TripletModifier self, std::string name) -> TripletModifier
7958 __init__(IMP::TripletModifier self) -> TripletModifier
7960 if self.__class__ == TripletModifier:
7964 this = _IMP_kernel.new_TripletModifier(_self, *args)
7966 self.this.append(this)
7967 except __builtin__.Exception:
7970 if self.__class__ != TripletModifier:
7971 _director_objects.register(self)
7976 def apply_index(self, m, v):
7977 """apply_index(TripletModifier self, Model m, IMP::ParticleIndexTriplet const & v)"""
7978 return _IMP_kernel.TripletModifier_apply_index(self, m, v)
7981 def apply_indexes(self, m, o, lower_bound, upper_bound):
7982 """apply_indexes(TripletModifier self, Model m, IMP::ParticleIndexTriplets const & o, unsigned int lower_bound, unsigned int upper_bound)"""
7983 return _IMP_kernel.TripletModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
7987 """__str__(TripletModifier self) -> std::string"""
7988 return _IMP_kernel.TripletModifier___str__(self)
7992 """__repr__(TripletModifier self) -> std::string"""
7993 return _IMP_kernel.TripletModifier___repr__(self)
7998 return _object_cast_to_TripletModifier(o)
8001 def get_type_name(self):
8002 return self.__class__.__name__
8003 def do_show(self, out):
8005 def get_version_info(self):
8007 return VersionInfo(self.__module__,
8014 return _object_cast_to_TripletModifier(o)
8016 __swig_destroy__ = _IMP_kernel.delete_TripletModifier
8017 __del__ =
lambda self:
None
8018 def __disown__(self):
8020 _IMP_kernel.disown_TripletModifier(self)
8021 return weakref_proxy(self)
8023 def do_get_inputs(self, m, pis):
8024 """do_get_inputs(TripletModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8025 return _IMP_kernel.TripletModifier_do_get_inputs(self, m, pis)
8028 def do_get_outputs(self, m, pis):
8029 """do_get_outputs(TripletModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8030 return _IMP_kernel.TripletModifier_do_get_outputs(self, m, pis)
8033 def do_destroy(self):
8034 """do_destroy(TripletModifier self)"""
8035 return _IMP_kernel.TripletModifier_do_destroy(self)
8037 TripletModifier_swigregister = _IMP_kernel.TripletModifier_swigregister
8038 TripletModifier_swigregister(TripletModifier)
8040 class TripletScore(_ParticleInputs, Object):
8041 """Proxy of C++ IMP::TripletScore class."""
8043 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8045 def __init__(self, *args):
8047 __init__(IMP::TripletScore self, std::string name) -> TripletScore
8048 __init__(IMP::TripletScore self) -> TripletScore
8050 if self.__class__ == TripletScore:
8054 this = _IMP_kernel.new_TripletScore(_self, *args)
8056 self.this.append(this)
8057 except __builtin__.Exception:
8060 if self.__class__ != TripletScore:
8061 _director_objects.register(self)
8066 def evaluate_index(self, m, vt, da):
8067 """evaluate_index(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt, DerivativeAccumulator da) -> double"""
8068 return _IMP_kernel.TripletScore_evaluate_index(self, m, vt, da)
8071 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
8072 """evaluate_indexes(TripletScore self, Model m, IMP::ParticleIndexTriplets const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
8073 return _IMP_kernel.TripletScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
8076 def evaluate_if_good_index(self, m, vt, da, max):
8077 """evaluate_if_good_index(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt, DerivativeAccumulator da, double max) -> double"""
8078 return _IMP_kernel.TripletScore_evaluate_if_good_index(self, m, vt, da, max)
8081 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
8082 """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"""
8083 return _IMP_kernel.TripletScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
8086 def create_current_decomposition(self, m, vt):
8087 """create_current_decomposition(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
8088 return _IMP_kernel.TripletScore_create_current_decomposition(self, m, vt)
8091 def do_create_current_decomposition(self, m, vt):
8092 """do_create_current_decomposition(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
8093 return _IMP_kernel.TripletScore_do_create_current_decomposition(self, m, vt)
8095 __swig_destroy__ = _IMP_kernel.delete_TripletScore
8096 __del__ =
lambda self:
None
8099 """__str__(TripletScore self) -> std::string"""
8100 return _IMP_kernel.TripletScore___str__(self)
8104 """__repr__(TripletScore self) -> std::string"""
8105 return _IMP_kernel.TripletScore___repr__(self)
8110 return _object_cast_to_TripletScore(o)
8113 def get_type_name(self):
8114 return self.__class__.__name__
8115 def do_show(self, out):
8117 def get_version_info(self):
8119 return VersionInfo(self.__module__,
8126 return _object_cast_to_TripletScore(o)
8128 def __disown__(self):
8130 _IMP_kernel.disown_TripletScore(self)
8131 return weakref_proxy(self)
8133 def do_get_inputs(self, m, pis):
8134 """do_get_inputs(TripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8135 return _IMP_kernel.TripletScore_do_get_inputs(self, m, pis)
8138 def do_destroy(self):
8139 """do_destroy(TripletScore self)"""
8140 return _IMP_kernel.TripletScore_do_destroy(self)
8142 TripletScore_swigregister = _IMP_kernel.TripletScore_swigregister
8143 TripletScore_swigregister(TripletScore)
8145 class TripletPredicate(_ParticleInputs, Object):
8146 """Proxy of C++ IMP::TripletPredicate class."""
8148 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8150 def __init__(self, *args):
8152 __init__(IMP::TripletPredicate self, std::string name) -> TripletPredicate
8153 __init__(IMP::TripletPredicate self) -> TripletPredicate
8155 if self.__class__ == TripletPredicate:
8159 this = _IMP_kernel.new_TripletPredicate(_self, *args)
8161 self.this.append(this)
8162 except __builtin__.Exception:
8165 if self.__class__ != TripletPredicate:
8166 _director_objects.register(self)
8171 def get_value(self, *args):
8173 get_value(TripletPredicate self, IMP::ParticleTriplet const & vt) -> int
8174 get_value(TripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
8176 return _IMP_kernel.TripletPredicate_get_value(self, *args)
8179 def setup_for_get_value_index_in_batch(self, arg0):
8180 """setup_for_get_value_index_in_batch(TripletPredicate self, Model arg0)"""
8181 return _IMP_kernel.TripletPredicate_setup_for_get_value_index_in_batch(self, arg0)
8184 def get_value_index_in_batch(self, m, vt):
8185 """get_value_index_in_batch(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int"""
8186 return _IMP_kernel.TripletPredicate_get_value_index_in_batch(self, m, vt)
8189 def __call__(self, m, vt):
8190 """__call__(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int"""
8191 return _IMP_kernel.TripletPredicate___call__(self, m, vt)
8194 def get_value_index(self, *args):
8196 get_value_index(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int
8197 get_value_index(TripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
8199 return _IMP_kernel.TripletPredicate_get_value_index(self, *args)
8201 __swig_destroy__ = _IMP_kernel.delete_TripletPredicate
8202 __del__ =
lambda self:
None
8205 """__str__(TripletPredicate self) -> std::string"""
8206 return _IMP_kernel.TripletPredicate___str__(self)
8210 """__repr__(TripletPredicate self) -> std::string"""
8211 return _IMP_kernel.TripletPredicate___repr__(self)
8216 return _object_cast_to_TripletPredicate(o)
8219 def get_type_name(self):
8220 return self.__class__.__name__
8221 def do_show(self, out):
8223 def get_version_info(self):
8225 return VersionInfo(self.__module__,
8232 return _object_cast_to_TripletPredicate(o)
8234 def __disown__(self):
8236 _IMP_kernel.disown_TripletPredicate(self)
8237 return weakref_proxy(self)
8239 def do_get_inputs(self, m, pis):
8240 """do_get_inputs(TripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8241 return _IMP_kernel.TripletPredicate_do_get_inputs(self, m, pis)
8244 def do_destroy(self):
8245 """do_destroy(TripletPredicate self)"""
8246 return _IMP_kernel.TripletPredicate_do_destroy(self)
8248 TripletPredicate_swigregister = _IMP_kernel.TripletPredicate_swigregister
8249 TripletPredicate_swigregister(TripletPredicate)
8251 class TripletContainer(Container):
8252 """Proxy of C++ IMP::TripletContainer class."""
8254 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8256 def apply_generic(self, m):
8257 """apply_generic(TripletContainer self, TripletModifier m)"""
8258 return _IMP_kernel.TripletContainer_apply_generic(self, m)
8261 def apply(self, sm):
8262 """apply(TripletContainer self, TripletModifier sm)"""
8263 return _IMP_kernel.TripletContainer_apply(self, sm)
8266 def get_range_indexes(self):
8267 """get_range_indexes(TripletContainer self) -> IMP::ParticleIndexTriplets"""
8268 return _IMP_kernel.TripletContainer_get_range_indexes(self)
8271 def get_contents(self):
8272 """get_contents(TripletContainer self) -> IMP::ParticleIndexTriplets const &"""
8273 return _IMP_kernel.TripletContainer_get_contents(self)
8277 """get_indexes(TripletContainer self) -> IMP::ParticleIndexTriplets"""
8278 return _IMP_kernel.TripletContainer_get_indexes(self)
8281 def get(self, *args):
8283 get(TripletContainer self) -> IMP::ParticleTripletsTemp
8284 get(TripletContainer self, unsigned int i) -> IMP::ParticleTriplet
8286 return _IMP_kernel.TripletContainer_get(self, *args)
8289 def get_number(self):
8290 """get_number(TripletContainer self) -> unsigned int"""
8291 return _IMP_kernel.TripletContainer_get_number(self)
8294 def get_particle_triplets(self):
8295 """get_particle_triplets(TripletContainer self) -> IMP::ParticleTripletsTemp"""
8296 return _IMP_kernel.TripletContainer_get_particle_triplets(self)
8299 def get_particle_triplet(self, i):
8300 """get_particle_triplet(TripletContainer self, unsigned int i) -> IMP::ParticleTriplet"""
8301 return _IMP_kernel.TripletContainer_get_particle_triplet(self, i)
8304 def __init__(self, *args):
8306 __init__(IMP::TripletContainer self, Model m, std::string name) -> TripletContainer
8307 __init__(IMP::TripletContainer self, Model m) -> TripletContainer
8309 if self.__class__ == TripletContainer:
8313 this = _IMP_kernel.new_TripletContainer(_self, *args)
8315 self.this.append(this)
8316 except __builtin__.Exception:
8319 if self.__class__ != TripletContainer:
8320 _director_objects.register(self)
8325 def do_apply(self, sm):
8326 """do_apply(TripletContainer self, TripletModifier sm)"""
8327 return _IMP_kernel.TripletContainer_do_apply(self, sm)
8330 def do_get_provides_access(self):
8331 """do_get_provides_access(TripletContainer self) -> bool"""
8332 return _IMP_kernel.TripletContainer_do_get_provides_access(self)
8334 __swig_destroy__ = _IMP_kernel.delete_TripletContainer
8335 __del__ =
lambda self:
None
8338 """__str__(TripletContainer self) -> std::string"""
8339 return _IMP_kernel.TripletContainer___str__(self)
8343 """__repr__(TripletContainer self) -> std::string"""
8344 return _IMP_kernel.TripletContainer___repr__(self)
8349 return _object_cast_to_TripletContainer(o)
8352 def get_type_name(self):
8353 return self.__class__.__name__
8354 def do_show(self, out):
8356 def get_version_info(self):
8358 return VersionInfo(self.__module__,
8365 return _object_cast_to_TripletContainer(o)
8367 def __disown__(self):
8369 _IMP_kernel.disown_TripletContainer(self)
8370 return weakref_proxy(self)
8372 def do_destroy(self):
8373 """do_destroy(TripletContainer self)"""
8374 return _IMP_kernel.TripletContainer_do_destroy(self)
8377 def handle_set_has_required_score_states(self, arg0):
8378 """handle_set_has_required_score_states(TripletContainer self, bool arg0)"""
8379 return _IMP_kernel.TripletContainer_handle_set_has_required_score_states(self, arg0)
8382 def do_get_inputs(self):
8383 """do_get_inputs(TripletContainer self) -> IMP::ModelObjectsTemp"""
8384 return _IMP_kernel.TripletContainer_do_get_inputs(self)
8387 def do_get_interactions(self):
8388 """do_get_interactions(TripletContainer self) -> IMP::ModelObjectsTemps"""
8389 return _IMP_kernel.TripletContainer_do_get_interactions(self)
8392 def do_get_contents_hash(self):
8393 """do_get_contents_hash(TripletContainer self) -> std::size_t"""
8394 return _IMP_kernel.TripletContainer_do_get_contents_hash(self)
8396 TripletContainer_swigregister = _IMP_kernel.TripletContainer_swigregister
8397 TripletContainer_swigregister(TripletContainer)
8399 class _TripletContainerAdaptor(_InputAdaptor):
8400 """Proxy of C++ IMP::TripletContainerAdaptor class."""
8402 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8403 __repr__ = _swig_repr
8405 def __init__(self, *args):
8407 __init__(IMP::TripletContainerAdaptor self) -> _TripletContainerAdaptor
8408 __init__(IMP::TripletContainerAdaptor self, TripletContainer c) -> _TripletContainerAdaptor
8409 __init__(IMP::TripletContainerAdaptor self, IMP::ParticleTripletsTemp const & t) -> _TripletContainerAdaptor
8411 this = _IMP_kernel.new__TripletContainerAdaptor(*args)
8413 self.this.append(this)
8414 except __builtin__.Exception:
8417 def set_name_if_default(self, name):
8418 """set_name_if_default(_TripletContainerAdaptor self, std::string name)"""
8419 return _IMP_kernel._TripletContainerAdaptor_set_name_if_default(self, name)
8421 __swig_destroy__ = _IMP_kernel.delete__TripletContainerAdaptor
8422 __del__ =
lambda self:
None
8423 _TripletContainerAdaptor_swigregister = _IMP_kernel._TripletContainerAdaptor_swigregister
8424 _TripletContainerAdaptor_swigregister(_TripletContainerAdaptor)
8428 """write_particles_to_buffer(IMP::ParticlesTemp const & particles, IMP::FloatKeys const & keys) -> IMP::Vector< char >"""
8429 return _IMP_kernel.write_particles_to_buffer(particles, keys)
8432 """read_particles_from_buffer(IMP::Vector< char > const & buffer, IMP::ParticlesTemp const & particles, IMP::FloatKeys const & keys)"""
8433 return _IMP_kernel.read_particles_from_buffer(buffer, particles, keys)
8436 """get_particles(Model m, IMP::ParticleIndexes const & ps) -> IMP::ParticlesTemp"""
8437 return _IMP_kernel.get_particles(m, ps)
8441 get_indexes(IMP::ParticlesTemp const & ps) -> IMP::ParticleIndexes
8442 get_indexes(IMP::ParticlePairsTemp const & ps) -> IMP::ParticleIndexPairs
8444 return _IMP_kernel.get_indexes(*args)
8445 class _ParticleIndexAdaptor(object):
8446 """Proxy of C++ IMP::ParticleIndexAdaptor class."""
8448 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8449 __repr__ = _swig_repr
8451 def __init__(self, *args):
8453 __init__(IMP::ParticleIndexAdaptor self, Particle p) -> _ParticleIndexAdaptor
8454 __init__(IMP::ParticleIndexAdaptor self, ParticleIndex pi) -> _ParticleIndexAdaptor
8455 __init__(IMP::ParticleIndexAdaptor self, Decorator d) -> _ParticleIndexAdaptor
8457 this = _IMP_kernel.new__ParticleIndexAdaptor(*args)
8459 self.this.append(this)
8460 except __builtin__.Exception:
8462 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexAdaptor
8463 __del__ =
lambda self:
None
8464 _ParticleIndexAdaptor_swigregister = _IMP_kernel._ParticleIndexAdaptor_swigregister
8465 _ParticleIndexAdaptor_swigregister(_ParticleIndexAdaptor)
8467 class _ParticleIndexesAdaptor(_InputAdaptor):
8468 """Proxy of C++ IMP::ParticleIndexesAdaptor class."""
8470 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8471 __repr__ = _swig_repr
8473 def __init__(self, *args):
8475 __init__(IMP::ParticleIndexesAdaptor self, IMP::ParticlesTemp const & ps) -> _ParticleIndexesAdaptor
8476 __init__(IMP::ParticleIndexesAdaptor self, IMP::ParticleIndexes const & pi) -> _ParticleIndexesAdaptor
8477 __init__(IMP::ParticleIndexesAdaptor self) -> _ParticleIndexesAdaptor
8479 this = _IMP_kernel.new__ParticleIndexesAdaptor(*args)
8481 self.this.append(this)
8482 except __builtin__.Exception:
8484 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexesAdaptor
8485 __del__ =
lambda self:
None
8486 _ParticleIndexesAdaptor_swigregister = _IMP_kernel._ParticleIndexesAdaptor_swigregister
8487 _ParticleIndexesAdaptor_swigregister(_ParticleIndexesAdaptor)
8489 class _ParticleIndexPairsAdaptor(object):
8490 """Proxy of C++ IMP::ParticleIndexPairsAdaptor class."""
8492 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8493 __repr__ = _swig_repr
8495 def __init__(self, *args):
8497 __init__(IMP::ParticleIndexPairsAdaptor self, IMP::ParticlePairsTemp const & ps) -> _ParticleIndexPairsAdaptor
8498 __init__(IMP::ParticleIndexPairsAdaptor self, IMP::ParticleIndexPairs const & pi) -> _ParticleIndexPairsAdaptor
8499 __init__(IMP::ParticleIndexPairsAdaptor self) -> _ParticleIndexPairsAdaptor
8501 this = _IMP_kernel.new__ParticleIndexPairsAdaptor(*args)
8503 self.this.append(this)
8504 except __builtin__.Exception:
8506 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexPairsAdaptor
8507 __del__ =
lambda self:
None
8508 _ParticleIndexPairsAdaptor_swigregister = _IMP_kernel._ParticleIndexPairsAdaptor_swigregister
8509 _ParticleIndexPairsAdaptor_swigregister(_ParticleIndexPairsAdaptor)
8511 class _ConstRestraint(Restraint):
8512 """Proxy of C++ IMP::internal::_ConstRestraint class."""
8514 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8516 def __init__(self, *args):
8518 __init__(IMP::internal::_ConstRestraint self, double v, IMP::ParticlesTemp const ps) -> _ConstRestraint
8519 __init__(IMP::internal::_ConstRestraint self, Model m, IMP::ParticleIndexes const & pis, double v) -> _ConstRestraint
8521 this = _IMP_kernel.new__ConstRestraint(*args)
8523 self.this.append(this)
8524 except __builtin__.Exception:
8527 def get_value(self):
8528 """get_value(_ConstRestraint self) -> double"""
8529 return _IMP_kernel._ConstRestraint_get_value(self)
8532 def do_create_decomposition(self):
8533 """do_create_decomposition(_ConstRestraint self) -> IMP::Restraints"""
8534 return _IMP_kernel._ConstRestraint_do_create_decomposition(self)
8537 def do_get_inputs(self):
8538 """do_get_inputs(_ConstRestraint self) -> IMP::ModelObjectsTemp"""
8539 return _IMP_kernel._ConstRestraint_do_get_inputs(self)
8542 def get_version_info(self):
8543 """get_version_info(_ConstRestraint self) -> VersionInfo"""
8544 return _IMP_kernel._ConstRestraint_get_version_info(self)
8548 """__str__(_ConstRestraint self) -> std::string"""
8549 return _IMP_kernel._ConstRestraint___str__(self)
8553 """__repr__(_ConstRestraint self) -> std::string"""
8554 return _IMP_kernel._ConstRestraint___repr__(self)
8559 return _object_cast_to__ConstRestraint(o)
8561 _ConstRestraint_swigregister = _IMP_kernel._ConstRestraint_swigregister
8562 _ConstRestraint_swigregister(_ConstRestraint)
8564 class _ConstSingletonScore(SingletonScore):
8565 """Proxy of C++ IMP::internal::_ConstSingletonScore class."""
8567 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8568 __repr__ = _swig_repr
8570 def __init__(self, v):
8571 """__init__(IMP::internal::_ConstSingletonScore self, double v) -> _ConstSingletonScore"""
8572 this = _IMP_kernel.new__ConstSingletonScore(v)
8574 self.this.append(this)
8575 except __builtin__.Exception:
8578 def do_get_inputs(self, arg2, arg3):
8579 """do_get_inputs(_ConstSingletonScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
8580 return _IMP_kernel._ConstSingletonScore_do_get_inputs(self, arg2, arg3)
8583 def get_version_info(self):
8584 """get_version_info(_ConstSingletonScore self) -> VersionInfo"""
8585 return _IMP_kernel._ConstSingletonScore_get_version_info(self)
8587 _ConstSingletonScore_swigregister = _IMP_kernel._ConstSingletonScore_swigregister
8588 _ConstSingletonScore_swigregister(_ConstSingletonScore)
8590 class _ConstPairScore(PairScore):
8591 """Proxy of C++ IMP::internal::_ConstPairScore class."""
8593 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8594 __repr__ = _swig_repr
8596 def __init__(self, v):
8597 """__init__(IMP::internal::_ConstPairScore self, double v) -> _ConstPairScore"""
8598 this = _IMP_kernel.new__ConstPairScore(v)
8600 self.this.append(this)
8601 except __builtin__.Exception:
8604 def do_get_inputs(self, arg2, arg3):
8605 """do_get_inputs(_ConstPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
8606 return _IMP_kernel._ConstPairScore_do_get_inputs(self, arg2, arg3)
8609 def get_version_info(self):
8610 """get_version_info(_ConstPairScore self) -> VersionInfo"""
8611 return _IMP_kernel._ConstPairScore_get_version_info(self)
8613 _ConstPairScore_swigregister = _IMP_kernel._ConstPairScore_swigregister
8614 _ConstPairScore_swigregister(_ConstPairScore)
8616 class _TrivialDecorator(Decorator):
8617 """Proxy of C++ IMP::internal::_TrivialDecorator class."""
8619 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8621 def __init__(self, *args):
8623 __init__(IMP::internal::_TrivialDecorator self) -> _TrivialDecorator
8624 __init__(IMP::internal::_TrivialDecorator self, Model m, ParticleIndex id) -> _TrivialDecorator
8625 __init__(IMP::internal::_TrivialDecorator self, _ParticleAdaptor d) -> _TrivialDecorator
8627 this = _IMP_kernel.new__TrivialDecorator(*args)
8629 self.this.append(this)
8630 except __builtin__.Exception:
8633 def show(self, *args):
8635 show(_TrivialDecorator self, _ostream out)
8636 show(_TrivialDecorator self)
8638 return _IMP_kernel._TrivialDecorator_show(self, *args)
8641 def setup_particle(*args):
8643 setup_particle(Model m, ParticleIndex pi) -> _TrivialDecorator
8644 setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
8646 return _IMP_kernel._TrivialDecorator_setup_particle(*args)
8648 setup_particle = staticmethod(setup_particle)
8650 def get_is_setup(*args):
8652 get_is_setup(_ParticleAdaptor p) -> bool
8653 get_is_setup(Model m, ParticleIndex pi) -> bool
8655 return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
8657 get_is_setup = staticmethod(get_is_setup)
8659 def add_attribute(self, *args):
8661 add_attribute(_TrivialDecorator self, FloatKey k, IMP::Float v, bool opt)
8662 add_attribute(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
8663 add_attribute(_TrivialDecorator self, IntKey a0, IMP::Int a1)
8664 add_attribute(_TrivialDecorator self, StringKey a0, IMP::String a1)
8665 add_attribute(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
8666 add_attribute(_TrivialDecorator self, ObjectKey a0, Object a1)
8668 return _IMP_kernel._TrivialDecorator_add_attribute(self, *args)
8671 def get_value(self, *args):
8673 get_value(_TrivialDecorator self, FloatKey a0) -> IMP::Float
8674 get_value(_TrivialDecorator self, IntKey a0) -> IMP::Int
8675 get_value(_TrivialDecorator self, StringKey a0) -> IMP::String
8676 get_value(_TrivialDecorator self, ParticleIndexKey a0) -> Particle
8677 get_value(_TrivialDecorator self, ObjectKey a0) -> Object
8679 return _IMP_kernel._TrivialDecorator_get_value(self, *args)
8682 def set_value(self, *args):
8684 set_value(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
8685 set_value(_TrivialDecorator self, IntKey a0, IMP::Int a1)
8686 set_value(_TrivialDecorator self, StringKey a0, IMP::String a1)
8687 set_value(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
8688 set_value(_TrivialDecorator self, ObjectKey a0, Object a1)
8690 return _IMP_kernel._TrivialDecorator_set_value(self, *args)
8693 def remove_attribute(self, *args):
8695 remove_attribute(_TrivialDecorator self, FloatKey a0)
8696 remove_attribute(_TrivialDecorator self, IntKey a0)
8697 remove_attribute(_TrivialDecorator self, StringKey a0)
8698 remove_attribute(_TrivialDecorator self, ParticleIndexKey a0)
8699 remove_attribute(_TrivialDecorator self, ObjectKey a0)
8701 return _IMP_kernel._TrivialDecorator_remove_attribute(self, *args)
8704 def has_attribute(self, *args):
8706 has_attribute(_TrivialDecorator self, FloatKey a0) -> bool
8707 has_attribute(_TrivialDecorator self, IntKey a0) -> bool
8708 has_attribute(_TrivialDecorator self, StringKey a0) -> bool
8709 has_attribute(_TrivialDecorator self, ParticleIndexKey a0) -> bool
8710 has_attribute(_TrivialDecorator self, ObjectKey a0) -> bool
8712 return _IMP_kernel._TrivialDecorator_has_attribute(self, *args)
8715 def get_derivative(self, a0):
8716 """get_derivative(_TrivialDecorator self, FloatKey a0) -> double"""
8717 return _IMP_kernel._TrivialDecorator_get_derivative(self, a0)
8721 """get_name(_TrivialDecorator self) -> std::string"""
8722 return _IMP_kernel._TrivialDecorator_get_name(self)
8725 def clear_caches(self):
8726 """clear_caches(_TrivialDecorator self)"""
8727 return _IMP_kernel._TrivialDecorator_clear_caches(self)
8730 def set_name(self, a0):
8731 """set_name(_TrivialDecorator self, std::string a0)"""
8732 return _IMP_kernel._TrivialDecorator_set_name(self, a0)
8736 """set_check_level(_TrivialDecorator self, IMP::CheckLevel a0)"""
8737 return _IMP_kernel._TrivialDecorator_set_check_level(self, a0)
8740 def add_to_derivative(self, a0, a1, a2):
8741 """add_to_derivative(_TrivialDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8742 return _IMP_kernel._TrivialDecorator_add_to_derivative(self, a0, a1, a2)
8745 def set_is_optimized(self, a0, a1):
8746 """set_is_optimized(_TrivialDecorator self, FloatKey a0, bool a1)"""
8747 return _IMP_kernel._TrivialDecorator_set_is_optimized(self, a0, a1)
8750 def get_is_optimized(self, a0):
8751 """get_is_optimized(_TrivialDecorator self, FloatKey a0) -> bool"""
8752 return _IMP_kernel._TrivialDecorator_get_is_optimized(self, a0)
8756 """get_check_level(_TrivialDecorator self) -> IMP::CheckLevel"""
8757 return _IMP_kernel._TrivialDecorator_get_check_level(self)
8760 def __eq__(self, *args):
8762 __eq__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8763 __eq__(_TrivialDecorator self, Particle d) -> bool
8765 return _IMP_kernel._TrivialDecorator___eq__(self, *args)
8768 def __ne__(self, *args):
8770 __ne__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8771 __ne__(_TrivialDecorator self, Particle d) -> bool
8773 return _IMP_kernel._TrivialDecorator___ne__(self, *args)
8776 def __le__(self, *args):
8778 __le__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8779 __le__(_TrivialDecorator self, Particle d) -> bool
8781 return _IMP_kernel._TrivialDecorator___le__(self, *args)
8784 def __lt__(self, *args):
8786 __lt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8787 __lt__(_TrivialDecorator self, Particle d) -> bool
8789 return _IMP_kernel._TrivialDecorator___lt__(self, *args)
8792 def __ge__(self, *args):
8794 __ge__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8795 __ge__(_TrivialDecorator self, Particle d) -> bool
8797 return _IMP_kernel._TrivialDecorator___ge__(self, *args)
8800 def __gt__(self, *args):
8802 __gt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8803 __gt__(_TrivialDecorator self, Particle d) -> bool
8805 return _IMP_kernel._TrivialDecorator___gt__(self, *args)
8809 """__hash__(_TrivialDecorator self) -> std::size_t"""
8810 return _IMP_kernel._TrivialDecorator___hash__(self)
8814 """__str__(_TrivialDecorator self) -> std::string"""
8815 return _IMP_kernel._TrivialDecorator___str__(self)
8819 """__repr__(_TrivialDecorator self) -> std::string"""
8820 return _IMP_kernel._TrivialDecorator___repr__(self)
8822 __swig_destroy__ = _IMP_kernel.delete__TrivialDecorator
8823 __del__ =
lambda self:
None
8824 _TrivialDecorator_swigregister = _IMP_kernel._TrivialDecorator_swigregister
8825 _TrivialDecorator_swigregister(_TrivialDecorator)
8827 def _TrivialDecorator_setup_particle(*args):
8829 setup_particle(Model m, ParticleIndex pi) -> _TrivialDecorator
8830 _TrivialDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
8832 return _IMP_kernel._TrivialDecorator_setup_particle(*args)
8834 def _TrivialDecorator_get_is_setup(*args):
8836 get_is_setup(_ParticleAdaptor p) -> bool
8837 _TrivialDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
8839 return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
8841 class _TrivialDerivedDecorator(_TrivialDecorator):
8842 """Proxy of C++ IMP::internal::_TrivialDerivedDecorator class."""
8844 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8846 def __init__(self, *args):
8848 __init__(IMP::internal::_TrivialDerivedDecorator self) -> _TrivialDerivedDecorator
8849 __init__(IMP::internal::_TrivialDerivedDecorator self, Model m, ParticleIndex id) -> _TrivialDerivedDecorator
8850 __init__(IMP::internal::_TrivialDerivedDecorator self, _ParticleAdaptor d) -> _TrivialDerivedDecorator
8852 this = _IMP_kernel.new__TrivialDerivedDecorator(*args)
8854 self.this.append(this)
8855 except __builtin__.Exception:
8858 def show(self, *args):
8860 show(_TrivialDerivedDecorator self, _ostream out)
8861 show(_TrivialDerivedDecorator self)
8863 return _IMP_kernel._TrivialDerivedDecorator_show(self, *args)
8866 def setup_particle(*args):
8868 setup_particle(Model m, ParticleIndex pi) -> _TrivialDerivedDecorator
8869 setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
8871 return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
8873 setup_particle = staticmethod(setup_particle)
8875 def get_is_setup(*args):
8877 get_is_setup(_ParticleAdaptor p) -> bool
8878 get_is_setup(Model m, ParticleIndex pi) -> bool
8880 return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
8882 get_is_setup = staticmethod(get_is_setup)
8884 def add_attribute(self, *args):
8886 add_attribute(_TrivialDerivedDecorator self, FloatKey k, IMP::Float v, bool opt)
8887 add_attribute(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
8888 add_attribute(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
8889 add_attribute(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
8890 add_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
8891 add_attribute(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
8893 return _IMP_kernel._TrivialDerivedDecorator_add_attribute(self, *args)
8896 def get_value(self, *args):
8898 get_value(_TrivialDerivedDecorator self, FloatKey a0) -> IMP::Float
8899 get_value(_TrivialDerivedDecorator self, IntKey a0) -> IMP::Int
8900 get_value(_TrivialDerivedDecorator self, StringKey a0) -> IMP::String
8901 get_value(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> Particle
8902 get_value(_TrivialDerivedDecorator self, ObjectKey a0) -> Object
8904 return _IMP_kernel._TrivialDerivedDecorator_get_value(self, *args)
8907 def set_value(self, *args):
8909 set_value(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
8910 set_value(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
8911 set_value(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
8912 set_value(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
8913 set_value(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
8915 return _IMP_kernel._TrivialDerivedDecorator_set_value(self, *args)
8918 def remove_attribute(self, *args):
8920 remove_attribute(_TrivialDerivedDecorator self, FloatKey a0)
8921 remove_attribute(_TrivialDerivedDecorator self, IntKey a0)
8922 remove_attribute(_TrivialDerivedDecorator self, StringKey a0)
8923 remove_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0)
8924 remove_attribute(_TrivialDerivedDecorator self, ObjectKey a0)
8926 return _IMP_kernel._TrivialDerivedDecorator_remove_attribute(self, *args)
8929 def has_attribute(self, *args):
8931 has_attribute(_TrivialDerivedDecorator self, FloatKey a0) -> bool
8932 has_attribute(_TrivialDerivedDecorator self, IntKey a0) -> bool
8933 has_attribute(_TrivialDerivedDecorator self, StringKey a0) -> bool
8934 has_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> bool
8935 has_attribute(_TrivialDerivedDecorator self, ObjectKey a0) -> bool
8937 return _IMP_kernel._TrivialDerivedDecorator_has_attribute(self, *args)
8940 def get_derivative(self, a0):
8941 """get_derivative(_TrivialDerivedDecorator self, FloatKey a0) -> double"""
8942 return _IMP_kernel._TrivialDerivedDecorator_get_derivative(self, a0)
8946 """get_name(_TrivialDerivedDecorator self) -> std::string"""
8947 return _IMP_kernel._TrivialDerivedDecorator_get_name(self)
8950 def clear_caches(self):
8951 """clear_caches(_TrivialDerivedDecorator self)"""
8952 return _IMP_kernel._TrivialDerivedDecorator_clear_caches(self)
8955 def set_name(self, a0):
8956 """set_name(_TrivialDerivedDecorator self, std::string a0)"""
8957 return _IMP_kernel._TrivialDerivedDecorator_set_name(self, a0)
8961 """set_check_level(_TrivialDerivedDecorator self, IMP::CheckLevel a0)"""
8962 return _IMP_kernel._TrivialDerivedDecorator_set_check_level(self, a0)
8965 def add_to_derivative(self, a0, a1, a2):
8966 """add_to_derivative(_TrivialDerivedDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8967 return _IMP_kernel._TrivialDerivedDecorator_add_to_derivative(self, a0, a1, a2)
8970 def set_is_optimized(self, a0, a1):
8971 """set_is_optimized(_TrivialDerivedDecorator self, FloatKey a0, bool a1)"""
8972 return _IMP_kernel._TrivialDerivedDecorator_set_is_optimized(self, a0, a1)
8975 def get_is_optimized(self, a0):
8976 """get_is_optimized(_TrivialDerivedDecorator self, FloatKey a0) -> bool"""
8977 return _IMP_kernel._TrivialDerivedDecorator_get_is_optimized(self, a0)
8981 """get_check_level(_TrivialDerivedDecorator self) -> IMP::CheckLevel"""
8982 return _IMP_kernel._TrivialDerivedDecorator_get_check_level(self)
8985 def __eq__(self, *args):
8987 __eq__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8988 __eq__(_TrivialDerivedDecorator self, Particle d) -> bool
8990 return _IMP_kernel._TrivialDerivedDecorator___eq__(self, *args)
8993 def __ne__(self, *args):
8995 __ne__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8996 __ne__(_TrivialDerivedDecorator self, Particle d) -> bool
8998 return _IMP_kernel._TrivialDerivedDecorator___ne__(self, *args)
9001 def __le__(self, *args):
9003 __le__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9004 __le__(_TrivialDerivedDecorator self, Particle d) -> bool
9006 return _IMP_kernel._TrivialDerivedDecorator___le__(self, *args)
9009 def __lt__(self, *args):
9011 __lt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9012 __lt__(_TrivialDerivedDecorator self, Particle d) -> bool
9014 return _IMP_kernel._TrivialDerivedDecorator___lt__(self, *args)
9017 def __ge__(self, *args):
9019 __ge__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9020 __ge__(_TrivialDerivedDecorator self, Particle d) -> bool
9022 return _IMP_kernel._TrivialDerivedDecorator___ge__(self, *args)
9025 def __gt__(self, *args):
9027 __gt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9028 __gt__(_TrivialDerivedDecorator self, Particle d) -> bool
9030 return _IMP_kernel._TrivialDerivedDecorator___gt__(self, *args)
9034 """__hash__(_TrivialDerivedDecorator self) -> std::size_t"""
9035 return _IMP_kernel._TrivialDerivedDecorator___hash__(self)
9039 """__str__(_TrivialDerivedDecorator self) -> std::string"""
9040 return _IMP_kernel._TrivialDerivedDecorator___str__(self)
9044 """__repr__(_TrivialDerivedDecorator self) -> std::string"""
9045 return _IMP_kernel._TrivialDerivedDecorator___repr__(self)
9047 __swig_destroy__ = _IMP_kernel.delete__TrivialDerivedDecorator
9048 __del__ =
lambda self:
None
9049 _TrivialDerivedDecorator_swigregister = _IMP_kernel._TrivialDerivedDecorator_swigregister
9050 _TrivialDerivedDecorator_swigregister(_TrivialDerivedDecorator)
9052 def _TrivialDerivedDecorator_setup_particle(*args):
9054 setup_particle(Model m, ParticleIndex pi) -> _TrivialDerivedDecorator
9055 _TrivialDerivedDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
9057 return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
9059 def _TrivialDerivedDecorator_get_is_setup(*args):
9061 get_is_setup(_ParticleAdaptor p) -> bool
9062 _TrivialDerivedDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
9064 return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
9066 class _TrivialTraitsDecorator(Decorator):
9067 """Proxy of C++ IMP::internal::_TrivialTraitsDecorator class."""
9069 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9071 def get_decorator_traits(self):
9072 """get_decorator_traits(_TrivialTraitsDecorator self) -> StringKey"""
9073 return _IMP_kernel._TrivialTraitsDecorator_get_decorator_traits(self)
9076 def get_default_decorator_traits():
9077 """get_default_decorator_traits() -> StringKey"""
9078 return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
9080 get_default_decorator_traits = staticmethod(get_default_decorator_traits)
9082 def __init__(self, *args):
9084 __init__(IMP::internal::_TrivialTraitsDecorator self) -> _TrivialTraitsDecorator
9085 __init__(IMP::internal::_TrivialTraitsDecorator self, Model m, ParticleIndex id, StringKey tr) -> _TrivialTraitsDecorator
9086 __init__(IMP::internal::_TrivialTraitsDecorator self, Model m, ParticleIndex id) -> _TrivialTraitsDecorator
9087 __init__(IMP::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
9088 __init__(IMP::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d) -> _TrivialTraitsDecorator
9090 this = _IMP_kernel.new__TrivialTraitsDecorator(*args)
9092 self.this.append(this)
9093 except __builtin__.Exception:
9096 def show(self, *args):
9098 show(_TrivialTraitsDecorator self, _ostream out)
9099 show(_TrivialTraitsDecorator self)
9101 return _IMP_kernel._TrivialTraitsDecorator_show(self, *args)
9104 def setup_particle(*args):
9106 setup_particle(Model m, ParticleIndex pi, StringKey tr) -> _TrivialTraitsDecorator
9107 setup_particle(Model m, ParticleIndex pi) -> _TrivialTraitsDecorator
9108 setup_particle(_ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
9109 setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
9111 return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
9113 setup_particle = staticmethod(setup_particle)
9115 def get_is_setup(*args):
9117 get_is_setup(_ParticleAdaptor p, StringKey tr) -> bool
9118 get_is_setup(_ParticleAdaptor p) -> bool
9119 get_is_setup(Model m, ParticleIndex pi, StringKey k) -> bool
9120 get_is_setup(Model m, ParticleIndex pi) -> bool
9122 return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
9124 get_is_setup = staticmethod(get_is_setup)
9126 def get_default_key():
9127 """get_default_key() -> StringKey"""
9128 return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
9130 get_default_key = staticmethod(get_default_key)
9132 def add_attribute(self, *args):
9134 add_attribute(_TrivialTraitsDecorator self, FloatKey k, IMP::Float v, bool opt)
9135 add_attribute(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
9136 add_attribute(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
9137 add_attribute(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
9138 add_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
9139 add_attribute(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
9141 return _IMP_kernel._TrivialTraitsDecorator_add_attribute(self, *args)
9144 def get_value(self, *args):
9146 get_value(_TrivialTraitsDecorator self, FloatKey a0) -> IMP::Float
9147 get_value(_TrivialTraitsDecorator self, IntKey a0) -> IMP::Int
9148 get_value(_TrivialTraitsDecorator self, StringKey a0) -> IMP::String
9149 get_value(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> Particle
9150 get_value(_TrivialTraitsDecorator self, ObjectKey a0) -> Object
9152 return _IMP_kernel._TrivialTraitsDecorator_get_value(self, *args)
9155 def set_value(self, *args):
9157 set_value(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
9158 set_value(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
9159 set_value(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
9160 set_value(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
9161 set_value(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
9163 return _IMP_kernel._TrivialTraitsDecorator_set_value(self, *args)
9166 def remove_attribute(self, *args):
9168 remove_attribute(_TrivialTraitsDecorator self, FloatKey a0)
9169 remove_attribute(_TrivialTraitsDecorator self, IntKey a0)
9170 remove_attribute(_TrivialTraitsDecorator self, StringKey a0)
9171 remove_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0)
9172 remove_attribute(_TrivialTraitsDecorator self, ObjectKey a0)
9174 return _IMP_kernel._TrivialTraitsDecorator_remove_attribute(self, *args)
9177 def has_attribute(self, *args):
9179 has_attribute(_TrivialTraitsDecorator self, FloatKey a0) -> bool
9180 has_attribute(_TrivialTraitsDecorator self, IntKey a0) -> bool
9181 has_attribute(_TrivialTraitsDecorator self, StringKey a0) -> bool
9182 has_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> bool
9183 has_attribute(_TrivialTraitsDecorator self, ObjectKey a0) -> bool
9185 return _IMP_kernel._TrivialTraitsDecorator_has_attribute(self, *args)
9188 def get_derivative(self, a0):
9189 """get_derivative(_TrivialTraitsDecorator self, FloatKey a0) -> double"""
9190 return _IMP_kernel._TrivialTraitsDecorator_get_derivative(self, a0)
9194 """get_name(_TrivialTraitsDecorator self) -> std::string"""
9195 return _IMP_kernel._TrivialTraitsDecorator_get_name(self)
9198 def clear_caches(self):
9199 """clear_caches(_TrivialTraitsDecorator self)"""
9200 return _IMP_kernel._TrivialTraitsDecorator_clear_caches(self)
9203 def set_name(self, a0):
9204 """set_name(_TrivialTraitsDecorator self, std::string a0)"""
9205 return _IMP_kernel._TrivialTraitsDecorator_set_name(self, a0)
9209 """set_check_level(_TrivialTraitsDecorator self, IMP::CheckLevel a0)"""
9210 return _IMP_kernel._TrivialTraitsDecorator_set_check_level(self, a0)
9213 def add_to_derivative(self, a0, a1, a2):
9214 """add_to_derivative(_TrivialTraitsDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9215 return _IMP_kernel._TrivialTraitsDecorator_add_to_derivative(self, a0, a1, a2)
9218 def set_is_optimized(self, a0, a1):
9219 """set_is_optimized(_TrivialTraitsDecorator self, FloatKey a0, bool a1)"""
9220 return _IMP_kernel._TrivialTraitsDecorator_set_is_optimized(self, a0, a1)
9223 def get_is_optimized(self, a0):
9224 """get_is_optimized(_TrivialTraitsDecorator self, FloatKey a0) -> bool"""
9225 return _IMP_kernel._TrivialTraitsDecorator_get_is_optimized(self, a0)
9229 """get_check_level(_TrivialTraitsDecorator self) -> IMP::CheckLevel"""
9230 return _IMP_kernel._TrivialTraitsDecorator_get_check_level(self)
9233 def __eq__(self, *args):
9235 __eq__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9236 __eq__(_TrivialTraitsDecorator self, Particle d) -> bool
9238 return _IMP_kernel._TrivialTraitsDecorator___eq__(self, *args)
9241 def __ne__(self, *args):
9243 __ne__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9244 __ne__(_TrivialTraitsDecorator self, Particle d) -> bool
9246 return _IMP_kernel._TrivialTraitsDecorator___ne__(self, *args)
9249 def __le__(self, *args):
9251 __le__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9252 __le__(_TrivialTraitsDecorator self, Particle d) -> bool
9254 return _IMP_kernel._TrivialTraitsDecorator___le__(self, *args)
9257 def __lt__(self, *args):
9259 __lt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9260 __lt__(_TrivialTraitsDecorator self, Particle d) -> bool
9262 return _IMP_kernel._TrivialTraitsDecorator___lt__(self, *args)
9265 def __ge__(self, *args):
9267 __ge__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9268 __ge__(_TrivialTraitsDecorator self, Particle d) -> bool
9270 return _IMP_kernel._TrivialTraitsDecorator___ge__(self, *args)
9273 def __gt__(self, *args):
9275 __gt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9276 __gt__(_TrivialTraitsDecorator self, Particle d) -> bool
9278 return _IMP_kernel._TrivialTraitsDecorator___gt__(self, *args)
9282 """__hash__(_TrivialTraitsDecorator self) -> std::size_t"""
9283 return _IMP_kernel._TrivialTraitsDecorator___hash__(self)
9287 """__str__(_TrivialTraitsDecorator self) -> std::string"""
9288 return _IMP_kernel._TrivialTraitsDecorator___str__(self)
9292 """__repr__(_TrivialTraitsDecorator self) -> std::string"""
9293 return _IMP_kernel._TrivialTraitsDecorator___repr__(self)
9295 __swig_destroy__ = _IMP_kernel.delete__TrivialTraitsDecorator
9296 __del__ =
lambda self:
None
9297 _TrivialTraitsDecorator_swigregister = _IMP_kernel._TrivialTraitsDecorator_swigregister
9298 _TrivialTraitsDecorator_swigregister(_TrivialTraitsDecorator)
9300 def _TrivialTraitsDecorator_get_default_decorator_traits():
9301 """_TrivialTraitsDecorator_get_default_decorator_traits() -> StringKey"""
9302 return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
9304 def _TrivialTraitsDecorator_setup_particle(*args):
9306 setup_particle(Model m, ParticleIndex pi, StringKey tr) -> _TrivialTraitsDecorator
9307 setup_particle(Model m, ParticleIndex pi) -> _TrivialTraitsDecorator
9308 setup_particle(_ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
9309 _TrivialTraitsDecorator_setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
9311 return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
9313 def _TrivialTraitsDecorator_get_is_setup(*args):
9315 get_is_setup(_ParticleAdaptor p, StringKey tr) -> bool
9316 get_is_setup(_ParticleAdaptor p) -> bool
9317 get_is_setup(Model m, ParticleIndex pi, StringKey k) -> bool
9318 _TrivialTraitsDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
9320 return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
9322 def _TrivialTraitsDecorator_get_default_key():
9323 """_TrivialTraitsDecorator_get_default_key() -> StringKey"""
9324 return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
9327 def __lshift__(*args):
9329 __lshift__(_ostream out, _TrivialDecorator n) -> _ostream
9330 __lshift__(_ostream out, _TrivialDerivedDecorator n) -> _ostream
9331 __lshift__(_ostream out, _TrivialTraitsDecorator n) -> _ostream
9333 return _IMP_kernel.__lshift__(*args)
9334 class _ConstOptimizer(Optimizer):
9335 """Proxy of C++ IMP::internal::_ConstOptimizer class."""
9337 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9339 def __init__(self, m):
9340 """__init__(IMP::internal::_ConstOptimizer self, Model m) -> _ConstOptimizer"""
9341 this = _IMP_kernel.new__ConstOptimizer(m)
9343 self.this.append(this)
9344 except __builtin__.Exception:
9347 def do_optimize(self, max_steps):
9348 """do_optimize(_ConstOptimizer self, unsigned int max_steps) -> IMP::Float"""
9349 return _IMP_kernel._ConstOptimizer_do_optimize(self, max_steps)
9352 def get_version_info(self):
9353 """get_version_info(_ConstOptimizer self) -> VersionInfo"""
9354 return _IMP_kernel._ConstOptimizer_get_version_info(self)
9358 """__str__(_ConstOptimizer self) -> std::string"""
9359 return _IMP_kernel._ConstOptimizer___str__(self)
9363 """__repr__(_ConstOptimizer self) -> std::string"""
9364 return _IMP_kernel._ConstOptimizer___repr__(self)
9369 return _object_cast_to__ConstOptimizer(o)
9371 _ConstOptimizer_swigregister = _IMP_kernel._ConstOptimizer_swigregister
9372 _ConstOptimizer_swigregister(_ConstOptimizer)
9375 def get_particle(p):
9376 """get_particle(Particle p) -> Particle"""
9377 return _IMP_kernel.get_particle(p)
9379 def _decorator_test(p):
9380 """_decorator_test(Particle p)"""
9381 return _IMP_kernel._decorator_test(p)
9383 def _overloaded_decorator(*args):
9385 _overloaded_decorator(_TrivialDecorator a) -> int
9386 _overloaded_decorator(_TrivialDerivedDecorator a) -> int
9388 return _IMP_kernel._overloaded_decorator(*args)
9390 def _take_particles(*args):
9392 _take_particles(IMP::Particles const & ps) -> unsigned int
9393 _take_particles(Model m, IMP::Particles const & ps) -> unsigned int
9394 _take_particles(Model m, IMP::Particles const & ps, TextOutput out) -> unsigned int
9396 return _IMP_kernel._take_particles(*args)
9398 def _give_particles(m):
9399 """_give_particles(Model m) -> IMP::Particles const &"""
9400 return _IMP_kernel._give_particles(m)
9402 def _pass_particles(ps):
9403 """_pass_particles(IMP::Particles const & ps) -> IMP::Particles const &"""
9404 return _IMP_kernel._pass_particles(ps)
9406 def _pass_particle(ps):
9407 """_pass_particle(Particle ps) -> Particle"""
9408 return _IMP_kernel._pass_particle(ps)
9410 def _pass_particle_pair(pp):
9411 """_pass_particle_pair(IMP::ParticlePair const & pp) -> IMP::ParticlePair const &"""
9412 return _IMP_kernel._pass_particle_pair(pp)
9414 def _give_particles_copy(m):
9415 """_give_particles_copy(Model m) -> IMP::Particles"""
9416 return _IMP_kernel._give_particles_copy(m)
9418 def _pass_float_keys(input):
9419 """_pass_float_keys(IMP::FloatKeys const & input) -> IMP::FloatKeys"""
9420 return _IMP_kernel._pass_float_keys(input)
9424 _pass(IMP::Particles const & p) -> IMP::Particles const
9425 _pass(IMP::Restraints const & p) -> IMP::Restraints const &
9427 return _IMP_kernel._pass(*args)
9429 def _pass_decorators(p):
9430 """_pass_decorators(IMP::internal::_TrivialDecorators const & p) -> IMP::internal::_TrivialDecorators const &"""
9431 return _IMP_kernel._pass_decorators(p)
9433 def _pass_decorator_traits(p):
9434 """_pass_decorator_traits(IMP::internal::_TrivialTraitsDecorators const & p) -> IMP::internal::_TrivialTraitsDecorators const &"""
9435 return _IMP_kernel._pass_decorator_traits(p)
9437 def _pass_particle_pairs(p):
9438 """_pass_particle_pairs(IMP::ParticlePairsTemp const & p) -> IMP::ParticlePairsTemp"""
9439 return _IMP_kernel._pass_particle_pairs(p)
9441 def _pass_particle_index_pairs(p):
9442 """_pass_particle_index_pairs(IMP::ParticleIndexPairs const & p) -> IMP::ParticleIndexPairs"""
9443 return _IMP_kernel._pass_particle_index_pairs(p)
9445 def _pass_model_objects(p):
9446 """_pass_model_objects(IMP::ModelObjectsTemp const & p) -> IMP::ModelObjectsTemp"""
9447 return _IMP_kernel._pass_model_objects(p)
9449 def _pass_particles_temps(ps):
9450 """_pass_particles_temps(IMP::ParticlesTemps const & ps) -> IMP::ParticlesTemps"""
9451 return _IMP_kernel._pass_particles_temps(ps)
9453 def _test_overload(*args):
9455 _test_overload(IMP::Particles const & ps) -> int
9456 _test_overload(IMP::Restraints const & ps) -> int
9458 return _IMP_kernel._test_overload(*args)
9460 def _get_range(m, k):
9461 """_get_range(Model m, FloatKey k) -> IMP::FloatRange"""
9462 return _IMP_kernel._get_range(m, k)
9464 def _create_particles_from_pdb(name, m):
9465 """_create_particles_from_pdb(std::string name, Model m) -> IMP::ParticleIndexes"""
9466 return _IMP_kernel._create_particles_from_pdb(name, m)
9467 class _LogPairScore(PairScore):
9468 """Proxy of C++ IMP::internal::_LogPairScore class."""
9470 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9471 __repr__ = _swig_repr
9474 """__init__(IMP::internal::_LogPairScore self) -> _LogPairScore"""
9475 this = _IMP_kernel.new__LogPairScore()
9477 self.this.append(this)
9478 except __builtin__.Exception:
9481 def do_get_inputs(self, arg2, arg3):
9482 """do_get_inputs(_LogPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
9483 return _IMP_kernel._LogPairScore_do_get_inputs(self, arg2, arg3)
9486 def get_version_info(self):
9487 """get_version_info(_LogPairScore self) -> VersionInfo"""
9488 return _IMP_kernel._LogPairScore_get_version_info(self)
9491 def get_particle_pairs(self):
9492 """get_particle_pairs(_LogPairScore self) -> IMP::ParticlePairsTemp"""
9493 return _IMP_kernel._LogPairScore_get_particle_pairs(self)
9497 """clear(_LogPairScore self)"""
9498 return _IMP_kernel._LogPairScore_clear(self)
9501 def get_contains(self, pp):
9502 """get_contains(_LogPairScore self, IMP::ParticlePair const & pp) -> bool"""
9503 return _IMP_kernel._LogPairScore_get_contains(self, pp)
9505 _LogPairScore_swigregister = _IMP_kernel._LogPairScore_swigregister
9506 _LogPairScore_swigregister(_LogPairScore)
9509 def _overloaded_particles(*args):
9511 _overloaded_particles(Particle arg1)
9512 _overloaded_particles(IMP::Particles const & arg1)
9513 _overloaded_particles(IMP::ParticlesTemp const & arg1)
9514 _overloaded_particles(Model arg1, IMP::ParticleIndexes const & arg2)
9515 _overloaded_particles(IMP::internal::_TrivialDecorators const & arg1)
9516 _overloaded_particles(_TrivialDecorator arg1)
9518 return _IMP_kernel._overloaded_particles(*args)
9519 class _ImplicitParticles(object):
9520 """Proxy of C++ IMP::internal::_ImplicitParticles class."""
9522 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9523 __repr__ = _swig_repr
9525 def __init__(self, *args):
9527 __init__(IMP::internal::_ImplicitParticles self, Particle arg2) -> _ImplicitParticles
9528 __init__(IMP::internal::_ImplicitParticles self, IMP::Particles const & arg2) -> _ImplicitParticles
9529 __init__(IMP::internal::_ImplicitParticles self, IMP::ParticlesTemp const & arg2) -> _ImplicitParticles
9530 __init__(IMP::internal::_ImplicitParticles self, Model arg2, IMP::ParticleIndexes const & arg3) -> _ImplicitParticles
9531 __init__(IMP::internal::_ImplicitParticles self, IMP::internal::_TrivialDecorators const & arg2) -> _ImplicitParticles
9532 __init__(IMP::internal::_ImplicitParticles self, _TrivialDecorator arg2) -> _ImplicitParticles
9534 this = _IMP_kernel.new__ImplicitParticles(*args)
9536 self.this.append(this)
9537 except __builtin__.Exception:
9539 __swig_destroy__ = _IMP_kernel.delete__ImplicitParticles
9540 __del__ =
lambda self:
None
9541 _ImplicitParticles_swigregister = _IMP_kernel._ImplicitParticles_swigregister
9542 _ImplicitParticles_swigregister(_ImplicitParticles)
9545 def _implicit_particles(arg1):
9546 """_implicit_particles(_ImplicitParticles arg1)"""
9547 return _IMP_kernel._implicit_particles(arg1)
9549 def _take_particle_adaptor(pa):
9550 """_take_particle_adaptor(_ParticleAdaptor pa) -> ParticleIndex"""
9551 return _IMP_kernel._take_particle_adaptor(pa)
9553 def _take_particle_indexes_adaptor(pa):
9554 """_take_particle_indexes_adaptor(_ParticleIndexesAdaptor pa) -> IMP::ParticleIndexes"""
9555 return _IMP_kernel._take_particle_indexes_adaptor(pa)
9556 class ScopedSetFloatAttribute(_RAII):
9557 """Proxy of C++ IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> class."""
9559 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9561 def __init__(self, *args):
9563 __init__(IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> self) -> ScopedSetFloatAttribute
9564 __init__(IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> self, Particle p, FloatKey key, double const & value) -> ScopedSetFloatAttribute
9566 this = _IMP_kernel.new_ScopedSetFloatAttribute(*args)
9568 self.this.append(this)
9569 except __builtin__.Exception:
9572 def set(self, p, key, value):
9573 """set(ScopedSetFloatAttribute self, Particle p, FloatKey key, double const & value)"""
9574 return _IMP_kernel.ScopedSetFloatAttribute_set(self, p, key, value)
9578 """reset(ScopedSetFloatAttribute self)"""
9579 return _IMP_kernel.ScopedSetFloatAttribute_reset(self)
9581 __swig_destroy__ = _IMP_kernel.delete_ScopedSetFloatAttribute
9582 __del__ =
lambda self:
None
9584 def show(self, *args):
9586 show(ScopedSetFloatAttribute self, _ostream out)
9587 show(ScopedSetFloatAttribute self)
9589 return _IMP_kernel.ScopedSetFloatAttribute_show(self, *args)
9593 """__str__(ScopedSetFloatAttribute self) -> std::string"""
9594 return _IMP_kernel.ScopedSetFloatAttribute___str__(self)
9598 """__repr__(ScopedSetFloatAttribute self) -> std::string"""
9599 return _IMP_kernel.ScopedSetFloatAttribute___repr__(self)
9601 ScopedSetFloatAttribute_swigregister = _IMP_kernel.ScopedSetFloatAttribute_swigregister
9602 ScopedSetFloatAttribute_swigregister(ScopedSetFloatAttribute)
9605 def _get_module_data_path(module, file_name):
9606 """_get_module_data_path(std::string module, std::string file_name) -> std::string"""
9607 return _IMP_kernel._get_module_data_path(module, file_name)
9609 def _get_module_example_path(module, file_name):
9610 """_get_module_example_path(std::string module, std::string file_name) -> std::string"""
9611 return _IMP_kernel._get_module_example_path(module, file_name)
9620 if sys.platform ==
'win32' and 'IMP_LD_PATH' in os.environ:
9621 dirs = os.environ[
'IMP_LD_PATH'].split(
":")
9622 pathcomps = os.environ[
'PATH'].split(
";")
9624 if d
not in pathcomps:
9625 os.environ[
'PATH'] = d +
';' + os.environ[
'PATH']
9633 """Allow command line tools to easily implement multiple commands.
9634 Typically, an IMP command line tool will use an instance of this class
9635 to provide a consistent interface to multiple distinct commands
9636 from a single binary, rather than providing a potentially large
9637 number of binaries. This is similar to the way a number of common
9638 command line tools outside of IMP function (e.g. Git provides a single
9639 `git` tool which implements multiple commands - `git add`, `git commit`,
9640 `git push` and so on).
9642 Each command is implemented with a Python module of the same name
9643 that can be imported from the module (for example, if `module_name`
9644 is `IMP.foo`, the `bar` command is provided by the `IMP.foo.bar` Python
9645 module, which would usually be found as `modules/foo/pyext/src/bar.py`).
9646 Each such module should have a docstring and a `%main()` method
9647 that takes no arguments (the module should also call its `%main()` method
9648 if it is run directly, i.e. with something like
9649 `if __name__=="__main__": %main()`). The encompassing module
9650 (`IMP.foo` in the example) should define `_all_commands` as a Python
9651 list of all valid commands.
9653 See the `multifit` and `cnmultifit` command line tools for example
9657 def __init__(self, short_help, long_help, module_name):
9659 @param short_help A few words that describe the command line tool.
9660 @param long_help Longer text, used in the `help` command.
9661 @param module_name Name of the module (e.g. `IMP.foo`) that
9662 implements the commands.
9664 self.short_help = short_help
9665 self.long_help = long_help
9666 self.module_name = module_name
9667 self._all_commands = self.import_module()._all_commands
9668 self._progname = os.path.basename(sys.argv[0])
9671 """Call this method to act upon the user-provided command line"""
9672 if len(sys.argv) <= 1:
9673 print(self.short_help +
" Use '%s help' for help." % self._progname)
9675 command = sys.argv[1]
9676 if command
in (
'help',
'--help',
'-h'):
9677 if len(sys.argv) == 3:
9678 self.show_command_help(sys.argv[2])
9681 elif command ==
'--version':
9683 elif command
in self._all_commands:
9684 self.do_command(command)
9686 self.unknown_command(command)
9688 def import_module(self, mod=None):
9689 modname = self.module_name
9691 modname +=
"." + mod
9692 return __import__(modname, {}, {}, [
''])
9694 def unknown_command(self, command):
9695 print(
"Unknown command: '%s'" % command)
9696 print(
"Use '%s help' for help." % self._progname)
9699 def _get_version(self):
9702 def show_version(self):
9703 print(self._progname +
' ' + self._get_version())
9705 def show_help(self):
9706 ver = self._get_version()
9707 print(
"%s, version %s." % (self._progname, ver))
9708 print(self.long_help +
"""
9710 This program is part of IMP, the Integrative Modeling Platform,
9711 which is Copyright 2007-2020 IMP Inventors.
9712 For additional information about IMP, see <https://integrativemodeling.org>.
9714 Usage: %s <command> [options] [args]
9716 Commands:""" % self._progname)
9717 commands = self._all_commands[:] + [
'help']
9719 cmdlen = max([len(c)
for c
in commands])
9722 doc =
'Get help on using %s.' % self._progname
9724 doc = self.import_module(c).__doc__
or "<no help>"
9725 c +=
' ' * (cmdlen - len(c))
9726 print(
' ' + c +
' ' + doc)
9728 Use "%s help <command>" for detailed help on any command
9729 or "%s --version" to see the version number.""" % (self._progname,
9732 def do_command(self, command):
9733 mod = self.import_module(command)
9734 sys.argv[0] = self._progname +
' ' + command
9738 def show_command_help(self, command):
9739 if command ==
'help':
9741 elif command
in self._all_commands
or command ==
'help':
9742 mod = self.import_module(command)
9743 sys.argv = [self._progname +
' ' + command,
'--help']
9746 self.unknown_command(command)
9753 g = networkx.DiGraph()
9754 if len(ig.get_vertices()) == 0:
9763 return self.p.get_name()
9765 def __call__(self, name):
9766 return self.p.__call__(name)
9768 for vi
in ig.get_vertices():
9769 n = ig.get_vertex_name(vi)
9770 g.add_node(NodeWrapper(n))
9771 for vi
in ig.get_vertices():
9772 n = ig.get_vertex_name(vi)
9773 for ni
in ig.get_out_neighbors(vi):
9774 nn = ig.get_vertex_name(ni)
9775 g.add_edge(NodeWrapper(n), NodeWrapper(nn))
9782 n0 = name.get_name()
9785 n1 = str(n0).replace(
'"',
'')
9786 n2 = n1.replace(
"\n",
'')
9789 from altgraph
import Graph, Dot
9790 graph = Graph.Graph()
9791 for i, v
in enumerate(g.get_vertices()):
9793 for i, v
in enumerate(g.get_vertices()):
9794 for n
in g.get_out_neighbors(v):
9795 graph.add_edge(v, n)
9796 dot = Dot.Dot(graph)
9797 for i, v
in enumerate(g.get_vertices()):
9798 dot.node_style(i, label=clean(g.get_vertex_name(v)))
9805 st = g.get_graphviz_string()
9806 open(tfn,
"w").write(st)
9811 sys.stderr.write(
"Cannot run dot on Python 2.3 systems.\n")
9814 print(
"running dot")
9815 sp = subprocess.Popen([
"dot",
"-Tpdf", tfn,
"-o" + tfon])
9819 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")
9822 if platform.system() ==
"Darwin":
9825 cmd = [
"gv",
"acroread",
"xpdf"]
9828 print(
"launching viewer " + c)
9830 subprocess.check_call([c, tfon])
9836 print(
"Could not display file. It is saved at " + tfon)
9846 """Mark a Python module as deprecated.
9847 @note The `module` argument would normally be `__name__`.
9848 @see [deprecation support](@ref deprecation)."""
9850 "Module %s is deprecated. %s\n" % (module, help_message))
9853 """Python decorator to mark a class as deprecated.
9854 @see [deprecation support](@ref deprecation)."""
9856 orig_init = obj.__init__
9859 @functools.wraps(orig_init, (
'__name__',
'__doc__'))
9860 def __init__(obj, *args, **keys):
9862 % (type(obj), help_message))
9863 orig_init(obj, *args, **keys)
9864 obj.__init__ = __init__
9869 """Python decorator to mark a method as deprecated.
9870 @see [deprecation support](@ref deprecation)."""
9871 def out_wrapper(obj):
9872 @functools.wraps(obj)
9873 def wrapper(cls, *args, **keys):
9875 % (obj.__name__, type(cls), help_message))
9876 return obj(cls, *args, **keys)
9881 """Python decorator to mark a function as deprecated.
9882 @see [deprecation support](@ref deprecation)."""
9883 def out_wrapper(obj):
9884 @functools.wraps(obj)
9885 def wrapper(*args, **keys):
9887 % (obj.__name__, help_message))
9888 return obj(*args, **keys)
9892 @contextlib.contextmanager
9894 """Context manager to temporarily allow (or disallow) deprecated code.
9895 @see [deprecation support](@ref deprecation)."""
9902 def _get_all_flags(ntokens):
9903 """_get_all_flags(unsigned int ntokens) -> IMP::Strings"""
9904 return _IMP_kernel._get_all_flags(ntokens)
9906 def _print_internal_help(out, description):
9907 """_print_internal_help(_ostream out, std::string description)"""
9908 return _IMP_kernel._print_internal_help(out, description)
9914 from .
import _compat_argparse
as argparse
9917 class _PassThroughAction(argparse.Action):
9918 """Pass an argument through to the IMP Boost parser"""
9919 def __call__(self, parser, namespace, values, option_string=None):
9920 parser._boost_command_line.append(option_string)
9922 parser._boost_command_line.append(values)
9925 if option_string
in (
'-h',
'--help',
'--help_advanced',
'--version'):
9926 parser._handle_boost()
9930 """IMP-specific subclass of argparse.ArgumentParser.
9931 This adds options common to all IMP applications
9932 (see IMP::setup_from_argv()).
9935 def __init__(self, *args, **kwargs):
9937 kwargs[
'add_help'] =
False
9938 super(ArgumentParser, self).__init__(*args, **kwargs)
9939 for ntoken
in (0, 1):
9940 flags = _get_all_flags(ntoken)
9942 arg = [
'-h',
'--help']
if f ==
'help' else [
'--' + f]
9943 self.add_argument(*arg, help=argparse.SUPPRESS,
9944 nargs=
None if ntoken
else 0,
9945 action=_PassThroughAction,
9946 default=argparse.SUPPRESS)
9949 """Parse the command line and return optional and positional arguments.
9950 This functions in the same way as the method in the base class
9951 argparse.ArgumentParser, except that it also processes optional
9952 arguments common to all IMP applications (these are not returned
9953 in `args`, but can be obtained in the usual way, e.g. by calling
9954 IMP::get_string_flag()).
9957 self._boost_command_line = [sys.argv[0]]
9958 ret = super(ArgumentParser, self).
parse_args(args, namespace)
9959 if len(self._boost_command_line) > 1:
9960 self._handle_boost()
9963 def _get_description(self):
9964 return self.format_help() +
"\nOptions common to all IMP applications:"
9966 def print_help(self, file=None):
9967 _print_internal_help(file
if file
else sys.stdout,
9968 self._get_description())
9970 def _handle_boost(self):
9972 self._get_description(),
9975 class RandomNumberGenerator(object):
9976 """Proxy of C++ IMP::RandomNumberGenerator class."""
9978 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9979 __repr__ = _swig_repr
9982 """seed(RandomNumberGenerator self, ::boost::int32_t x)"""
9983 return _IMP_kernel.RandomNumberGenerator_seed(self, x)
9987 """__call__(RandomNumberGenerator self) -> int"""
9988 return _IMP_kernel.RandomNumberGenerator___call__(self)
9992 """__init__(IMP::RandomNumberGenerator self) -> RandomNumberGenerator"""
9993 this = _IMP_kernel.new_RandomNumberGenerator()
9995 self.this.append(this)
9996 except __builtin__.Exception:
9998 __swig_destroy__ = _IMP_kernel.delete_RandomNumberGenerator
9999 __del__ =
lambda self:
None
10000 RandomNumberGenerator_swigregister = _IMP_kernel.RandomNumberGenerator_swigregister
10001 RandomNumberGenerator_swigregister(RandomNumberGenerator)
10006 get_random_float_uniform() -> float
10007 get_random_float_uniform(float min, float max) -> float
10009 return _IMP_kernel.get_random_float_uniform(*args)
10013 get_random_double_uniform() -> double
10014 get_random_double_uniform(double min, double max) -> double
10016 return _IMP_kernel.get_random_double_uniform(*args)
10018 def get_random_floats_normal(n, mean=0.0, stddev=1.0):
10020 get_random_floats_normal(unsigned int n, float mean=0.0, float stddev=1.0) -> IMP::Vector< float >
10021 get_random_floats_normal(unsigned int n, float mean=0.0) -> IMP::Vector< float >
10022 get_random_floats_normal(unsigned int n) -> IMP::Vector< float >
10024 return _IMP_kernel.get_random_floats_normal(n, mean, stddev)
10026 def get_random_doubles_normal(n, mean=0.0, stddev=1.0):
10028 get_random_doubles_normal(unsigned int n, double mean=0.0, double stddev=1.0) -> IMP::Vector< double >
10029 get_random_doubles_normal(unsigned int n, double mean=0.0) -> IMP::Vector< double >
10030 get_random_doubles_normal(unsigned int n) -> IMP::Vector< double >
10032 return _IMP_kernel.get_random_doubles_normal(n, mean, stddev)
10034 def get_random_floats_uniform(n):
10035 """get_random_floats_uniform(unsigned int n) -> IMP::Vector< float >"""
10036 return _IMP_kernel.get_random_floats_uniform(n)
10038 def get_random_doubles_uniform(n):
10039 """get_random_doubles_uniform(unsigned int n) -> IMP::Vector< double >"""
10040 return _IMP_kernel.get_random_doubles_uniform(n)
10043 """get_random_seed() -> boost::uint64_t"""
10044 return _IMP_kernel.get_random_seed()
10046 def _get_derivatives_numpy(m, k, m_pyobj):
10047 """_get_derivatives_numpy(Model m, FloatKey k, PyObject * m_pyobj) -> PyObject *"""
10048 return _IMP_kernel._get_derivatives_numpy(m, k, m_pyobj)
10050 def _get_floats_numpy(m, k, m_pyobj):
10051 """_get_floats_numpy(Model m, FloatKey k, PyObject * m_pyobj) -> PyObject *"""
10052 return _IMP_kernel._get_floats_numpy(m, k, m_pyobj)
10054 def _get_ints_numpy(m, k, m_pyobj):
10055 """_get_ints_numpy(Model m, IntKey k, PyObject * m_pyobj) -> PyObject *"""
10056 return _IMP_kernel._get_ints_numpy(m, k, m_pyobj)
10058 def _get_spheres_numpy(m, m_pyobj):
10059 """_get_spheres_numpy(Model m, PyObject * m_pyobj) -> PyObject *"""
10060 return _IMP_kernel._get_spheres_numpy(m, m_pyobj)
10062 def _get_sphere_derivatives_numpy(m, m_pyobj):
10063 """_get_sphere_derivatives_numpy(Model m, PyObject * m_pyobj) -> PyObject *"""
10064 return _IMP_kernel._get_sphere_derivatives_numpy(m, m_pyobj)
10067 """get_module_version() -> std::string const"""
10068 return _IMP_kernel.get_module_version()
10071 """get_example_path(std::string fname) -> std::string"""
10072 return _IMP_kernel.get_example_path(fname)
10075 """get_data_path(std::string fname) -> std::string"""
10076 return _IMP_kernel.get_data_path(fname)
10078 from .
import _version_check
10083 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 get_module_version()
Return the version of this module, as a string.
std::string create_temporary_file_name(std::string prefix="imp_temp", std::string suffix="")
Create a temporary file.