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(
"FloatsKeys")
1838 _value_types.append(
"FloatsKey")
1842 _plural_types.append(
"IntKeys")
1843 _value_types.append(
"IntKey")
1847 _plural_types.append(
"IntsKeys")
1848 _value_types.append(
"IntsKey")
1852 _plural_types.append(
"StringKeys")
1853 _value_types.append(
"StringKey")
1856 ParticleIndexKeys=list
1857 _plural_types.append(
"ParticleIndexKeys")
1858 _value_types.append(
"ParticleIndexKey")
1861 ParticleIndexesKeys=list
1862 _plural_types.append(
"ParticleIndexesKeys")
1863 _value_types.append(
"ParticleIndexesKey")
1867 _plural_types.append(
"ObjectKeys")
1868 _value_types.append(
"ObjectKey")
1872 _plural_types.append(
"ModelKeys")
1873 _value_types.append(
"ModelKey")
1876 _raii_types.append(
"ScopedSetFloatAttribute")
1879 _object_types.append(
"ScoringFunction")
1882 def _object_cast_to_ScoringFunction(o):
1883 """_object_cast_to_ScoringFunction(Object o) -> ScoringFunction"""
1884 return _IMP_kernel._object_cast_to_ScoringFunction(o)
1886 _object_types.append(
"ModelObject")
1889 def _object_cast_to_ModelObject(o):
1890 """_object_cast_to_ModelObject(Object o) -> ModelObject"""
1891 return _IMP_kernel._object_cast_to_ModelObject(o)
1893 def _TrivialDecorators(l=[]):
1894 return [_TrivialDecorator(x)
for x
in l]
1895 _plural_types.append(
"_TrivialDecorators")
1898 _value_types.append(
"_TrivialDecorator")
1901 def _TrivialDerivedDecorators(l=[]):
1902 return [_TrivialDerivedDecorator(x)
for x
in l]
1903 _plural_types.append(
"_TrivialDerivedDecorators")
1906 _value_types.append(
"_TrivialDerivedDecorator")
1909 def _TrivialTraitsDecorators(l=[]):
1910 return [_TrivialTraitsDecorator(x)
for x
in l]
1911 _plural_types.append(
"_TrivialTraitsDecorators")
1914 _value_types.append(
"_TrivialTraitsDecorator")
1917 _object_types.append(
"_ConstRestraint")
1920 def _object_cast_to__ConstRestraint(o):
1921 """_object_cast_to__ConstRestraint(Object o) -> _ConstRestraint"""
1922 return _IMP_kernel._object_cast_to__ConstRestraint(o)
1924 _object_types.append(
"_ConstOptimizer")
1927 def _object_cast_to__ConstOptimizer(o):
1928 """_object_cast_to__ConstOptimizer(Object o) -> _ConstOptimizer"""
1929 return _IMP_kernel._object_cast_to__ConstOptimizer(o)
1931 """Proxy of C++ IMP::internal::BoostDigraph<(IMP::DependencyGraph,p.IMP::ModelObject,IMP::ShowDependencyGraphVertex)> class."""
1933 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
1934 __repr__ = _swig_repr
1937 """__init__(IMP::internal::BoostDigraph<(IMP::DependencyGraph,p.IMP::ModelObject,IMP::ShowDependencyGraphVertex)> self) -> DependencyGraph"""
1938 this = _IMP_kernel.new_DependencyGraph()
1940 self.this.append(this)
1941 except __builtin__.Exception:
1944 def get_graph(self):
1945 """get_graph(DependencyGraph self) -> IMP::DependencyGraph const &"""
1946 return _IMP_kernel.DependencyGraph_get_graph(self)
1950 """get_vertices(DependencyGraph self) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptors"""
1951 return _IMP_kernel.DependencyGraph_get_vertices(self)
1954 def get_vertex_name(self, i):
1955 """get_vertex_name(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor i) -> ModelObject"""
1956 return _IMP_kernel.DependencyGraph_get_vertex_name(self, i)
1959 def get_in_neighbors(self, v):
1960 """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"""
1961 return _IMP_kernel.DependencyGraph_get_in_neighbors(self, v)
1964 def get_out_neighbors(self, v):
1965 """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"""
1966 return _IMP_kernel.DependencyGraph_get_out_neighbors(self, v)
1971 show_graphviz(DependencyGraph self, _ostream out)
1972 show_graphviz(DependencyGraph self)
1974 return _IMP_kernel.DependencyGraph_show_graphviz(self, *args)
1977 def get_graphviz_string(self):
1978 """get_graphviz_string(DependencyGraph self) -> std::string"""
1979 return _IMP_kernel.DependencyGraph_get_graphviz_string(self)
1982 def add_edge(self, v0, v1):
1983 """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)"""
1984 return _IMP_kernel.DependencyGraph_add_edge(self, v0, v1)
1987 def add_vertex(self, l):
1988 """add_vertex(DependencyGraph self, ModelObject l) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor"""
1989 return _IMP_kernel.DependencyGraph_add_vertex(self, l)
1992 def remove_vertex(self, l):
1993 """remove_vertex(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor l)"""
1994 return _IMP_kernel.DependencyGraph_remove_vertex(self, l)
1996 __swig_destroy__ = _IMP_kernel.delete_DependencyGraph
1997 __del__ =
lambda self:
None
1998 DependencyGraph_swigregister = _IMP_kernel.DependencyGraph_swigregister
1999 DependencyGraph_swigregister(DependencyGraph)
2002 _value_types.append(
"DependencyGraph")
2005 """Proxy of C++ IMP::Key<(0)> class."""
2007 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2009 def __init__(self, *args):
2011 __init__(IMP::Key<(0)> self) -> FloatKey
2012 __init__(IMP::Key<(0)> self, std::string const & c, bool is_implicit_add_permitted=True) -> FloatKey
2013 __init__(IMP::Key<(0)> self, std::string const & c) -> FloatKey
2014 __init__(IMP::Key<(0)> self, unsigned int i) -> FloatKey
2016 this = _IMP_kernel.new_FloatKey(*args)
2018 self.this.append(this)
2019 except __builtin__.Exception:
2023 """add_key(std::string sc) -> unsigned int"""
2024 return _IMP_kernel.FloatKey_add_key(sc)
2026 add_key = staticmethod(add_key)
2028 def get_key_exists(sc):
2029 """get_key_exists(std::string sc) -> bool"""
2030 return _IMP_kernel.FloatKey_get_key_exists(sc)
2032 get_key_exists = staticmethod(get_key_exists)
2034 def get_string(self):
2035 """get_string(FloatKey self) -> std::string const"""
2036 return _IMP_kernel.FloatKey_get_string(self)
2039 def __cmp__(self, o):
2040 """__cmp__(FloatKey self, FloatKey o) -> int"""
2041 return _IMP_kernel.FloatKey___cmp__(self, o)
2044 def __eq__(self, o):
2045 """__eq__(FloatKey self, FloatKey o) -> bool"""
2046 return _IMP_kernel.FloatKey___eq__(self, o)
2049 def __ne__(self, o):
2050 """__ne__(FloatKey self, FloatKey o) -> bool"""
2051 return _IMP_kernel.FloatKey___ne__(self, o)
2054 def __lt__(self, o):
2055 """__lt__(FloatKey self, FloatKey o) -> bool"""
2056 return _IMP_kernel.FloatKey___lt__(self, o)
2059 def __gt__(self, o):
2060 """__gt__(FloatKey self, FloatKey o) -> bool"""
2061 return _IMP_kernel.FloatKey___gt__(self, o)
2064 def __ge__(self, o):
2065 """__ge__(FloatKey self, FloatKey o) -> bool"""
2066 return _IMP_kernel.FloatKey___ge__(self, o)
2069 def __le__(self, o):
2070 """__le__(FloatKey self, FloatKey o) -> bool"""
2071 return _IMP_kernel.FloatKey___le__(self, o)
2075 """__hash__(FloatKey self) -> std::size_t"""
2076 return _IMP_kernel.FloatKey___hash__(self)
2079 def show(self, *args):
2081 show(FloatKey self, _ostream out)
2084 return _IMP_kernel.FloatKey_show(self, *args)
2087 def add_alias(old_key, new_name):
2088 """add_alias(FloatKey old_key, std::string new_name) -> FloatKey"""
2089 return _IMP_kernel.FloatKey_add_alias(old_key, new_name)
2091 add_alias = staticmethod(add_alias)
2093 def get_number_of_keys():
2094 """get_number_of_keys() -> unsigned int"""
2095 return _IMP_kernel.FloatKey_get_number_of_keys()
2097 get_number_of_keys = staticmethod(get_number_of_keys)
2100 """get_index(FloatKey self) -> unsigned int"""
2101 return _IMP_kernel.FloatKey_get_index(self)
2105 """show_all(_ostream out)"""
2106 return _IMP_kernel.FloatKey_show_all(out)
2108 show_all = staticmethod(show_all)
2110 def get_all_strings():
2111 """get_all_strings() -> IMP::Vector< std::string >"""
2112 return _IMP_kernel.FloatKey_get_all_strings()
2114 get_all_strings = staticmethod(get_all_strings)
2116 def get_number_unique():
2117 """get_number_unique() -> unsigned int"""
2118 return _IMP_kernel.FloatKey_get_number_unique()
2120 get_number_unique = staticmethod(get_number_unique)
2123 """__str__(FloatKey self) -> std::string"""
2124 return _IMP_kernel.FloatKey___str__(self)
2128 """__repr__(FloatKey self) -> std::string"""
2129 return _IMP_kernel.FloatKey___repr__(self)
2131 __swig_destroy__ = _IMP_kernel.delete_FloatKey
2132 __del__ =
lambda self:
None
2133 FloatKey_swigregister = _IMP_kernel.FloatKey_swigregister
2134 FloatKey_swigregister(FloatKey)
2136 def FloatKey_add_key(sc):
2137 """FloatKey_add_key(std::string sc) -> unsigned int"""
2138 return _IMP_kernel.FloatKey_add_key(sc)
2140 def FloatKey_get_key_exists(sc):
2141 """FloatKey_get_key_exists(std::string sc) -> bool"""
2142 return _IMP_kernel.FloatKey_get_key_exists(sc)
2144 def FloatKey_add_alias(old_key, new_name):
2145 """FloatKey_add_alias(FloatKey old_key, std::string new_name) -> FloatKey"""
2146 return _IMP_kernel.FloatKey_add_alias(old_key, new_name)
2148 def FloatKey_get_number_of_keys():
2149 """FloatKey_get_number_of_keys() -> unsigned int"""
2150 return _IMP_kernel.FloatKey_get_number_of_keys()
2152 def FloatKey_show_all(out):
2153 """FloatKey_show_all(_ostream out)"""
2154 return _IMP_kernel.FloatKey_show_all(out)
2156 def FloatKey_get_all_strings():
2157 """FloatKey_get_all_strings() -> IMP::Vector< std::string >"""
2158 return _IMP_kernel.FloatKey_get_all_strings()
2160 def FloatKey_get_number_unique():
2161 """FloatKey_get_number_unique() -> unsigned int"""
2162 return _IMP_kernel.FloatKey_get_number_unique()
2165 """Proxy of C++ IMP::Key<(1)> class."""
2167 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2169 def __init__(self, *args):
2171 __init__(IMP::Key<(1)> self) -> IntKey
2172 __init__(IMP::Key<(1)> self, std::string const & c, bool is_implicit_add_permitted=True) -> IntKey
2173 __init__(IMP::Key<(1)> self, std::string const & c) -> IntKey
2174 __init__(IMP::Key<(1)> self, unsigned int i) -> IntKey
2176 this = _IMP_kernel.new_IntKey(*args)
2178 self.this.append(this)
2179 except __builtin__.Exception:
2183 """add_key(std::string sc) -> unsigned int"""
2184 return _IMP_kernel.IntKey_add_key(sc)
2186 add_key = staticmethod(add_key)
2188 def get_key_exists(sc):
2189 """get_key_exists(std::string sc) -> bool"""
2190 return _IMP_kernel.IntKey_get_key_exists(sc)
2192 get_key_exists = staticmethod(get_key_exists)
2194 def get_string(self):
2195 """get_string(IntKey self) -> std::string const"""
2196 return _IMP_kernel.IntKey_get_string(self)
2199 def __cmp__(self, o):
2200 """__cmp__(IntKey self, IntKey o) -> int"""
2201 return _IMP_kernel.IntKey___cmp__(self, o)
2204 def __eq__(self, o):
2205 """__eq__(IntKey self, IntKey o) -> bool"""
2206 return _IMP_kernel.IntKey___eq__(self, o)
2209 def __ne__(self, o):
2210 """__ne__(IntKey self, IntKey o) -> bool"""
2211 return _IMP_kernel.IntKey___ne__(self, o)
2214 def __lt__(self, o):
2215 """__lt__(IntKey self, IntKey o) -> bool"""
2216 return _IMP_kernel.IntKey___lt__(self, o)
2219 def __gt__(self, o):
2220 """__gt__(IntKey self, IntKey o) -> bool"""
2221 return _IMP_kernel.IntKey___gt__(self, o)
2224 def __ge__(self, o):
2225 """__ge__(IntKey self, IntKey o) -> bool"""
2226 return _IMP_kernel.IntKey___ge__(self, o)
2229 def __le__(self, o):
2230 """__le__(IntKey self, IntKey o) -> bool"""
2231 return _IMP_kernel.IntKey___le__(self, o)
2235 """__hash__(IntKey self) -> std::size_t"""
2236 return _IMP_kernel.IntKey___hash__(self)
2239 def show(self, *args):
2241 show(IntKey self, _ostream out)
2244 return _IMP_kernel.IntKey_show(self, *args)
2247 def add_alias(old_key, new_name):
2248 """add_alias(IntKey old_key, std::string new_name) -> IntKey"""
2249 return _IMP_kernel.IntKey_add_alias(old_key, new_name)
2251 add_alias = staticmethod(add_alias)
2253 def get_number_of_keys():
2254 """get_number_of_keys() -> unsigned int"""
2255 return _IMP_kernel.IntKey_get_number_of_keys()
2257 get_number_of_keys = staticmethod(get_number_of_keys)
2260 """get_index(IntKey self) -> unsigned int"""
2261 return _IMP_kernel.IntKey_get_index(self)
2265 """show_all(_ostream out)"""
2266 return _IMP_kernel.IntKey_show_all(out)
2268 show_all = staticmethod(show_all)
2270 def get_all_strings():
2271 """get_all_strings() -> IMP::Vector< std::string >"""
2272 return _IMP_kernel.IntKey_get_all_strings()
2274 get_all_strings = staticmethod(get_all_strings)
2276 def get_number_unique():
2277 """get_number_unique() -> unsigned int"""
2278 return _IMP_kernel.IntKey_get_number_unique()
2280 get_number_unique = staticmethod(get_number_unique)
2283 """__str__(IntKey self) -> std::string"""
2284 return _IMP_kernel.IntKey___str__(self)
2288 """__repr__(IntKey self) -> std::string"""
2289 return _IMP_kernel.IntKey___repr__(self)
2291 __swig_destroy__ = _IMP_kernel.delete_IntKey
2292 __del__ =
lambda self:
None
2293 IntKey_swigregister = _IMP_kernel.IntKey_swigregister
2294 IntKey_swigregister(IntKey)
2296 def IntKey_add_key(sc):
2297 """IntKey_add_key(std::string sc) -> unsigned int"""
2298 return _IMP_kernel.IntKey_add_key(sc)
2300 def IntKey_get_key_exists(sc):
2301 """IntKey_get_key_exists(std::string sc) -> bool"""
2302 return _IMP_kernel.IntKey_get_key_exists(sc)
2304 def IntKey_add_alias(old_key, new_name):
2305 """IntKey_add_alias(IntKey old_key, std::string new_name) -> IntKey"""
2306 return _IMP_kernel.IntKey_add_alias(old_key, new_name)
2308 def IntKey_get_number_of_keys():
2309 """IntKey_get_number_of_keys() -> unsigned int"""
2310 return _IMP_kernel.IntKey_get_number_of_keys()
2312 def IntKey_show_all(out):
2313 """IntKey_show_all(_ostream out)"""
2314 return _IMP_kernel.IntKey_show_all(out)
2316 def IntKey_get_all_strings():
2317 """IntKey_get_all_strings() -> IMP::Vector< std::string >"""
2318 return _IMP_kernel.IntKey_get_all_strings()
2320 def IntKey_get_number_unique():
2321 """IntKey_get_number_unique() -> unsigned int"""
2322 return _IMP_kernel.IntKey_get_number_unique()
2325 """Proxy of C++ IMP::Key<(2)> class."""
2327 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2329 def __init__(self, *args):
2331 __init__(IMP::Key<(2)> self) -> StringKey
2332 __init__(IMP::Key<(2)> self, std::string const & c, bool is_implicit_add_permitted=True) -> StringKey
2333 __init__(IMP::Key<(2)> self, std::string const & c) -> StringKey
2334 __init__(IMP::Key<(2)> self, unsigned int i) -> StringKey
2336 this = _IMP_kernel.new_StringKey(*args)
2338 self.this.append(this)
2339 except __builtin__.Exception:
2343 """add_key(std::string sc) -> unsigned int"""
2344 return _IMP_kernel.StringKey_add_key(sc)
2346 add_key = staticmethod(add_key)
2348 def get_key_exists(sc):
2349 """get_key_exists(std::string sc) -> bool"""
2350 return _IMP_kernel.StringKey_get_key_exists(sc)
2352 get_key_exists = staticmethod(get_key_exists)
2354 def get_string(self):
2355 """get_string(StringKey self) -> std::string const"""
2356 return _IMP_kernel.StringKey_get_string(self)
2359 def __cmp__(self, o):
2360 """__cmp__(StringKey self, StringKey o) -> int"""
2361 return _IMP_kernel.StringKey___cmp__(self, o)
2364 def __eq__(self, o):
2365 """__eq__(StringKey self, StringKey o) -> bool"""
2366 return _IMP_kernel.StringKey___eq__(self, o)
2369 def __ne__(self, o):
2370 """__ne__(StringKey self, StringKey o) -> bool"""
2371 return _IMP_kernel.StringKey___ne__(self, o)
2374 def __lt__(self, o):
2375 """__lt__(StringKey self, StringKey o) -> bool"""
2376 return _IMP_kernel.StringKey___lt__(self, o)
2379 def __gt__(self, o):
2380 """__gt__(StringKey self, StringKey o) -> bool"""
2381 return _IMP_kernel.StringKey___gt__(self, o)
2384 def __ge__(self, o):
2385 """__ge__(StringKey self, StringKey o) -> bool"""
2386 return _IMP_kernel.StringKey___ge__(self, o)
2389 def __le__(self, o):
2390 """__le__(StringKey self, StringKey o) -> bool"""
2391 return _IMP_kernel.StringKey___le__(self, o)
2395 """__hash__(StringKey self) -> std::size_t"""
2396 return _IMP_kernel.StringKey___hash__(self)
2399 def show(self, *args):
2401 show(StringKey self, _ostream out)
2402 show(StringKey self)
2404 return _IMP_kernel.StringKey_show(self, *args)
2407 def add_alias(old_key, new_name):
2408 """add_alias(StringKey old_key, std::string new_name) -> StringKey"""
2409 return _IMP_kernel.StringKey_add_alias(old_key, new_name)
2411 add_alias = staticmethod(add_alias)
2413 def get_number_of_keys():
2414 """get_number_of_keys() -> unsigned int"""
2415 return _IMP_kernel.StringKey_get_number_of_keys()
2417 get_number_of_keys = staticmethod(get_number_of_keys)
2420 """get_index(StringKey self) -> unsigned int"""
2421 return _IMP_kernel.StringKey_get_index(self)
2425 """show_all(_ostream out)"""
2426 return _IMP_kernel.StringKey_show_all(out)
2428 show_all = staticmethod(show_all)
2430 def get_all_strings():
2431 """get_all_strings() -> IMP::Vector< std::string >"""
2432 return _IMP_kernel.StringKey_get_all_strings()
2434 get_all_strings = staticmethod(get_all_strings)
2436 def get_number_unique():
2437 """get_number_unique() -> unsigned int"""
2438 return _IMP_kernel.StringKey_get_number_unique()
2440 get_number_unique = staticmethod(get_number_unique)
2443 """__str__(StringKey self) -> std::string"""
2444 return _IMP_kernel.StringKey___str__(self)
2448 """__repr__(StringKey self) -> std::string"""
2449 return _IMP_kernel.StringKey___repr__(self)
2451 __swig_destroy__ = _IMP_kernel.delete_StringKey
2452 __del__ =
lambda self:
None
2453 StringKey_swigregister = _IMP_kernel.StringKey_swigregister
2454 StringKey_swigregister(StringKey)
2456 def StringKey_add_key(sc):
2457 """StringKey_add_key(std::string sc) -> unsigned int"""
2458 return _IMP_kernel.StringKey_add_key(sc)
2460 def StringKey_get_key_exists(sc):
2461 """StringKey_get_key_exists(std::string sc) -> bool"""
2462 return _IMP_kernel.StringKey_get_key_exists(sc)
2464 def StringKey_add_alias(old_key, new_name):
2465 """StringKey_add_alias(StringKey old_key, std::string new_name) -> StringKey"""
2466 return _IMP_kernel.StringKey_add_alias(old_key, new_name)
2468 def StringKey_get_number_of_keys():
2469 """StringKey_get_number_of_keys() -> unsigned int"""
2470 return _IMP_kernel.StringKey_get_number_of_keys()
2472 def StringKey_show_all(out):
2473 """StringKey_show_all(_ostream out)"""
2474 return _IMP_kernel.StringKey_show_all(out)
2476 def StringKey_get_all_strings():
2477 """StringKey_get_all_strings() -> IMP::Vector< std::string >"""
2478 return _IMP_kernel.StringKey_get_all_strings()
2480 def StringKey_get_number_unique():
2481 """StringKey_get_number_unique() -> unsigned int"""
2482 return _IMP_kernel.StringKey_get_number_unique()
2485 """Proxy of C++ IMP::Key<(3)> class."""
2487 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2489 def __init__(self, *args):
2491 __init__(IMP::Key<(3)> self) -> ParticleIndexKey
2492 __init__(IMP::Key<(3)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleIndexKey
2493 __init__(IMP::Key<(3)> self, std::string const & c) -> ParticleIndexKey
2494 __init__(IMP::Key<(3)> self, unsigned int i) -> ParticleIndexKey
2496 this = _IMP_kernel.new_ParticleIndexKey(*args)
2498 self.this.append(this)
2499 except __builtin__.Exception:
2503 """add_key(std::string sc) -> unsigned int"""
2504 return _IMP_kernel.ParticleIndexKey_add_key(sc)
2506 add_key = staticmethod(add_key)
2508 def get_key_exists(sc):
2509 """get_key_exists(std::string sc) -> bool"""
2510 return _IMP_kernel.ParticleIndexKey_get_key_exists(sc)
2512 get_key_exists = staticmethod(get_key_exists)
2514 def get_string(self):
2515 """get_string(ParticleIndexKey self) -> std::string const"""
2516 return _IMP_kernel.ParticleIndexKey_get_string(self)
2519 def __cmp__(self, o):
2520 """__cmp__(ParticleIndexKey self, ParticleIndexKey o) -> int"""
2521 return _IMP_kernel.ParticleIndexKey___cmp__(self, o)
2524 def __eq__(self, o):
2525 """__eq__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2526 return _IMP_kernel.ParticleIndexKey___eq__(self, o)
2529 def __ne__(self, o):
2530 """__ne__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2531 return _IMP_kernel.ParticleIndexKey___ne__(self, o)
2534 def __lt__(self, o):
2535 """__lt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2536 return _IMP_kernel.ParticleIndexKey___lt__(self, o)
2539 def __gt__(self, o):
2540 """__gt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2541 return _IMP_kernel.ParticleIndexKey___gt__(self, o)
2544 def __ge__(self, o):
2545 """__ge__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2546 return _IMP_kernel.ParticleIndexKey___ge__(self, o)
2549 def __le__(self, o):
2550 """__le__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2551 return _IMP_kernel.ParticleIndexKey___le__(self, o)
2555 """__hash__(ParticleIndexKey self) -> std::size_t"""
2556 return _IMP_kernel.ParticleIndexKey___hash__(self)
2559 def show(self, *args):
2561 show(ParticleIndexKey self, _ostream out)
2562 show(ParticleIndexKey self)
2564 return _IMP_kernel.ParticleIndexKey_show(self, *args)
2567 def add_alias(old_key, new_name):
2568 """add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
2569 return _IMP_kernel.ParticleIndexKey_add_alias(old_key, new_name)
2571 add_alias = staticmethod(add_alias)
2573 def get_number_of_keys():
2574 """get_number_of_keys() -> unsigned int"""
2575 return _IMP_kernel.ParticleIndexKey_get_number_of_keys()
2577 get_number_of_keys = staticmethod(get_number_of_keys)
2580 """get_index(ParticleIndexKey self) -> unsigned int"""
2581 return _IMP_kernel.ParticleIndexKey_get_index(self)
2585 """show_all(_ostream out)"""
2586 return _IMP_kernel.ParticleIndexKey_show_all(out)
2588 show_all = staticmethod(show_all)
2590 def get_all_strings():
2591 """get_all_strings() -> IMP::Vector< std::string >"""
2592 return _IMP_kernel.ParticleIndexKey_get_all_strings()
2594 get_all_strings = staticmethod(get_all_strings)
2596 def get_number_unique():
2597 """get_number_unique() -> unsigned int"""
2598 return _IMP_kernel.ParticleIndexKey_get_number_unique()
2600 get_number_unique = staticmethod(get_number_unique)
2603 """__str__(ParticleIndexKey self) -> std::string"""
2604 return _IMP_kernel.ParticleIndexKey___str__(self)
2608 """__repr__(ParticleIndexKey self) -> std::string"""
2609 return _IMP_kernel.ParticleIndexKey___repr__(self)
2611 __swig_destroy__ = _IMP_kernel.delete_ParticleIndexKey
2612 __del__ =
lambda self:
None
2613 ParticleIndexKey_swigregister = _IMP_kernel.ParticleIndexKey_swigregister
2614 ParticleIndexKey_swigregister(ParticleIndexKey)
2616 def ParticleIndexKey_add_key(sc):
2617 """ParticleIndexKey_add_key(std::string sc) -> unsigned int"""
2618 return _IMP_kernel.ParticleIndexKey_add_key(sc)
2620 def ParticleIndexKey_get_key_exists(sc):
2621 """ParticleIndexKey_get_key_exists(std::string sc) -> bool"""
2622 return _IMP_kernel.ParticleIndexKey_get_key_exists(sc)
2624 def ParticleIndexKey_add_alias(old_key, new_name):
2625 """ParticleIndexKey_add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
2626 return _IMP_kernel.ParticleIndexKey_add_alias(old_key, new_name)
2628 def ParticleIndexKey_get_number_of_keys():
2629 """ParticleIndexKey_get_number_of_keys() -> unsigned int"""
2630 return _IMP_kernel.ParticleIndexKey_get_number_of_keys()
2632 def ParticleIndexKey_show_all(out):
2633 """ParticleIndexKey_show_all(_ostream out)"""
2634 return _IMP_kernel.ParticleIndexKey_show_all(out)
2636 def ParticleIndexKey_get_all_strings():
2637 """ParticleIndexKey_get_all_strings() -> IMP::Vector< std::string >"""
2638 return _IMP_kernel.ParticleIndexKey_get_all_strings()
2640 def ParticleIndexKey_get_number_unique():
2641 """ParticleIndexKey_get_number_unique() -> unsigned int"""
2642 return _IMP_kernel.ParticleIndexKey_get_number_unique()
2645 """Proxy of C++ IMP::Key<(4)> class."""
2647 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2649 def __init__(self, *args):
2651 __init__(IMP::Key<(4)> self) -> ObjectKey
2652 __init__(IMP::Key<(4)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ObjectKey
2653 __init__(IMP::Key<(4)> self, std::string const & c) -> ObjectKey
2654 __init__(IMP::Key<(4)> self, unsigned int i) -> ObjectKey
2656 this = _IMP_kernel.new_ObjectKey(*args)
2658 self.this.append(this)
2659 except __builtin__.Exception:
2663 """add_key(std::string sc) -> unsigned int"""
2664 return _IMP_kernel.ObjectKey_add_key(sc)
2666 add_key = staticmethod(add_key)
2668 def get_key_exists(sc):
2669 """get_key_exists(std::string sc) -> bool"""
2670 return _IMP_kernel.ObjectKey_get_key_exists(sc)
2672 get_key_exists = staticmethod(get_key_exists)
2674 def get_string(self):
2675 """get_string(ObjectKey self) -> std::string const"""
2676 return _IMP_kernel.ObjectKey_get_string(self)
2679 def __cmp__(self, o):
2680 """__cmp__(ObjectKey self, ObjectKey o) -> int"""
2681 return _IMP_kernel.ObjectKey___cmp__(self, o)
2684 def __eq__(self, o):
2685 """__eq__(ObjectKey self, ObjectKey o) -> bool"""
2686 return _IMP_kernel.ObjectKey___eq__(self, o)
2689 def __ne__(self, o):
2690 """__ne__(ObjectKey self, ObjectKey o) -> bool"""
2691 return _IMP_kernel.ObjectKey___ne__(self, o)
2694 def __lt__(self, o):
2695 """__lt__(ObjectKey self, ObjectKey o) -> bool"""
2696 return _IMP_kernel.ObjectKey___lt__(self, o)
2699 def __gt__(self, o):
2700 """__gt__(ObjectKey self, ObjectKey o) -> bool"""
2701 return _IMP_kernel.ObjectKey___gt__(self, o)
2704 def __ge__(self, o):
2705 """__ge__(ObjectKey self, ObjectKey o) -> bool"""
2706 return _IMP_kernel.ObjectKey___ge__(self, o)
2709 def __le__(self, o):
2710 """__le__(ObjectKey self, ObjectKey o) -> bool"""
2711 return _IMP_kernel.ObjectKey___le__(self, o)
2715 """__hash__(ObjectKey self) -> std::size_t"""
2716 return _IMP_kernel.ObjectKey___hash__(self)
2719 def show(self, *args):
2721 show(ObjectKey self, _ostream out)
2722 show(ObjectKey self)
2724 return _IMP_kernel.ObjectKey_show(self, *args)
2727 def add_alias(old_key, new_name):
2728 """add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
2729 return _IMP_kernel.ObjectKey_add_alias(old_key, new_name)
2731 add_alias = staticmethod(add_alias)
2733 def get_number_of_keys():
2734 """get_number_of_keys() -> unsigned int"""
2735 return _IMP_kernel.ObjectKey_get_number_of_keys()
2737 get_number_of_keys = staticmethod(get_number_of_keys)
2740 """get_index(ObjectKey self) -> unsigned int"""
2741 return _IMP_kernel.ObjectKey_get_index(self)
2745 """show_all(_ostream out)"""
2746 return _IMP_kernel.ObjectKey_show_all(out)
2748 show_all = staticmethod(show_all)
2750 def get_all_strings():
2751 """get_all_strings() -> IMP::Vector< std::string >"""
2752 return _IMP_kernel.ObjectKey_get_all_strings()
2754 get_all_strings = staticmethod(get_all_strings)
2756 def get_number_unique():
2757 """get_number_unique() -> unsigned int"""
2758 return _IMP_kernel.ObjectKey_get_number_unique()
2760 get_number_unique = staticmethod(get_number_unique)
2763 """__str__(ObjectKey self) -> std::string"""
2764 return _IMP_kernel.ObjectKey___str__(self)
2768 """__repr__(ObjectKey self) -> std::string"""
2769 return _IMP_kernel.ObjectKey___repr__(self)
2771 __swig_destroy__ = _IMP_kernel.delete_ObjectKey
2772 __del__ =
lambda self:
None
2773 ObjectKey_swigregister = _IMP_kernel.ObjectKey_swigregister
2774 ObjectKey_swigregister(ObjectKey)
2776 def ObjectKey_add_key(sc):
2777 """ObjectKey_add_key(std::string sc) -> unsigned int"""
2778 return _IMP_kernel.ObjectKey_add_key(sc)
2780 def ObjectKey_get_key_exists(sc):
2781 """ObjectKey_get_key_exists(std::string sc) -> bool"""
2782 return _IMP_kernel.ObjectKey_get_key_exists(sc)
2784 def ObjectKey_add_alias(old_key, new_name):
2785 """ObjectKey_add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
2786 return _IMP_kernel.ObjectKey_add_alias(old_key, new_name)
2788 def ObjectKey_get_number_of_keys():
2789 """ObjectKey_get_number_of_keys() -> unsigned int"""
2790 return _IMP_kernel.ObjectKey_get_number_of_keys()
2792 def ObjectKey_show_all(out):
2793 """ObjectKey_show_all(_ostream out)"""
2794 return _IMP_kernel.ObjectKey_show_all(out)
2796 def ObjectKey_get_all_strings():
2797 """ObjectKey_get_all_strings() -> IMP::Vector< std::string >"""
2798 return _IMP_kernel.ObjectKey_get_all_strings()
2800 def ObjectKey_get_number_unique():
2801 """ObjectKey_get_number_unique() -> unsigned int"""
2802 return _IMP_kernel.ObjectKey_get_number_unique()
2805 """Proxy of C++ IMP::Key<(5)> class."""
2807 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2809 def __init__(self, *args):
2811 __init__(IMP::Key<(5)> self) -> IntsKey
2812 __init__(IMP::Key<(5)> self, std::string const & c, bool is_implicit_add_permitted=True) -> IntsKey
2813 __init__(IMP::Key<(5)> self, std::string const & c) -> IntsKey
2814 __init__(IMP::Key<(5)> self, unsigned int i) -> IntsKey
2816 this = _IMP_kernel.new_IntsKey(*args)
2818 self.this.append(this)
2819 except __builtin__.Exception:
2823 """add_key(std::string sc) -> unsigned int"""
2824 return _IMP_kernel.IntsKey_add_key(sc)
2826 add_key = staticmethod(add_key)
2828 def get_key_exists(sc):
2829 """get_key_exists(std::string sc) -> bool"""
2830 return _IMP_kernel.IntsKey_get_key_exists(sc)
2832 get_key_exists = staticmethod(get_key_exists)
2834 def get_string(self):
2835 """get_string(IntsKey self) -> std::string const"""
2836 return _IMP_kernel.IntsKey_get_string(self)
2839 def __cmp__(self, o):
2840 """__cmp__(IntsKey self, IntsKey o) -> int"""
2841 return _IMP_kernel.IntsKey___cmp__(self, o)
2844 def __eq__(self, o):
2845 """__eq__(IntsKey self, IntsKey o) -> bool"""
2846 return _IMP_kernel.IntsKey___eq__(self, o)
2849 def __ne__(self, o):
2850 """__ne__(IntsKey self, IntsKey o) -> bool"""
2851 return _IMP_kernel.IntsKey___ne__(self, o)
2854 def __lt__(self, o):
2855 """__lt__(IntsKey self, IntsKey o) -> bool"""
2856 return _IMP_kernel.IntsKey___lt__(self, o)
2859 def __gt__(self, o):
2860 """__gt__(IntsKey self, IntsKey o) -> bool"""
2861 return _IMP_kernel.IntsKey___gt__(self, o)
2864 def __ge__(self, o):
2865 """__ge__(IntsKey self, IntsKey o) -> bool"""
2866 return _IMP_kernel.IntsKey___ge__(self, o)
2869 def __le__(self, o):
2870 """__le__(IntsKey self, IntsKey o) -> bool"""
2871 return _IMP_kernel.IntsKey___le__(self, o)
2875 """__hash__(IntsKey self) -> std::size_t"""
2876 return _IMP_kernel.IntsKey___hash__(self)
2879 def show(self, *args):
2881 show(IntsKey self, _ostream out)
2884 return _IMP_kernel.IntsKey_show(self, *args)
2887 def add_alias(old_key, new_name):
2888 """add_alias(IntsKey old_key, std::string new_name) -> IntsKey"""
2889 return _IMP_kernel.IntsKey_add_alias(old_key, new_name)
2891 add_alias = staticmethod(add_alias)
2893 def get_number_of_keys():
2894 """get_number_of_keys() -> unsigned int"""
2895 return _IMP_kernel.IntsKey_get_number_of_keys()
2897 get_number_of_keys = staticmethod(get_number_of_keys)
2900 """get_index(IntsKey self) -> unsigned int"""
2901 return _IMP_kernel.IntsKey_get_index(self)
2905 """show_all(_ostream out)"""
2906 return _IMP_kernel.IntsKey_show_all(out)
2908 show_all = staticmethod(show_all)
2910 def get_all_strings():
2911 """get_all_strings() -> IMP::Vector< std::string >"""
2912 return _IMP_kernel.IntsKey_get_all_strings()
2914 get_all_strings = staticmethod(get_all_strings)
2916 def get_number_unique():
2917 """get_number_unique() -> unsigned int"""
2918 return _IMP_kernel.IntsKey_get_number_unique()
2920 get_number_unique = staticmethod(get_number_unique)
2923 """__str__(IntsKey self) -> std::string"""
2924 return _IMP_kernel.IntsKey___str__(self)
2928 """__repr__(IntsKey self) -> std::string"""
2929 return _IMP_kernel.IntsKey___repr__(self)
2931 __swig_destroy__ = _IMP_kernel.delete_IntsKey
2932 __del__ =
lambda self:
None
2933 IntsKey_swigregister = _IMP_kernel.IntsKey_swigregister
2934 IntsKey_swigregister(IntsKey)
2936 def IntsKey_add_key(sc):
2937 """IntsKey_add_key(std::string sc) -> unsigned int"""
2938 return _IMP_kernel.IntsKey_add_key(sc)
2940 def IntsKey_get_key_exists(sc):
2941 """IntsKey_get_key_exists(std::string sc) -> bool"""
2942 return _IMP_kernel.IntsKey_get_key_exists(sc)
2944 def IntsKey_add_alias(old_key, new_name):
2945 """IntsKey_add_alias(IntsKey old_key, std::string new_name) -> IntsKey"""
2946 return _IMP_kernel.IntsKey_add_alias(old_key, new_name)
2948 def IntsKey_get_number_of_keys():
2949 """IntsKey_get_number_of_keys() -> unsigned int"""
2950 return _IMP_kernel.IntsKey_get_number_of_keys()
2952 def IntsKey_show_all(out):
2953 """IntsKey_show_all(_ostream out)"""
2954 return _IMP_kernel.IntsKey_show_all(out)
2956 def IntsKey_get_all_strings():
2957 """IntsKey_get_all_strings() -> IMP::Vector< std::string >"""
2958 return _IMP_kernel.IntsKey_get_all_strings()
2960 def IntsKey_get_number_unique():
2961 """IntsKey_get_number_unique() -> unsigned int"""
2962 return _IMP_kernel.IntsKey_get_number_unique()
2965 """Proxy of C++ IMP::Key<(6)> class."""
2967 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
2969 def __init__(self, *args):
2971 __init__(IMP::Key<(6)> self) -> ParticleIndexesKey
2972 __init__(IMP::Key<(6)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleIndexesKey
2973 __init__(IMP::Key<(6)> self, std::string const & c) -> ParticleIndexesKey
2974 __init__(IMP::Key<(6)> self, unsigned int i) -> ParticleIndexesKey
2976 this = _IMP_kernel.new_ParticleIndexesKey(*args)
2978 self.this.append(this)
2979 except __builtin__.Exception:
2983 """add_key(std::string sc) -> unsigned int"""
2984 return _IMP_kernel.ParticleIndexesKey_add_key(sc)
2986 add_key = staticmethod(add_key)
2988 def get_key_exists(sc):
2989 """get_key_exists(std::string sc) -> bool"""
2990 return _IMP_kernel.ParticleIndexesKey_get_key_exists(sc)
2992 get_key_exists = staticmethod(get_key_exists)
2994 def get_string(self):
2995 """get_string(ParticleIndexesKey self) -> std::string const"""
2996 return _IMP_kernel.ParticleIndexesKey_get_string(self)
2999 def __cmp__(self, o):
3000 """__cmp__(ParticleIndexesKey self, ParticleIndexesKey o) -> int"""
3001 return _IMP_kernel.ParticleIndexesKey___cmp__(self, o)
3004 def __eq__(self, o):
3005 """__eq__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3006 return _IMP_kernel.ParticleIndexesKey___eq__(self, o)
3009 def __ne__(self, o):
3010 """__ne__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3011 return _IMP_kernel.ParticleIndexesKey___ne__(self, o)
3014 def __lt__(self, o):
3015 """__lt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3016 return _IMP_kernel.ParticleIndexesKey___lt__(self, o)
3019 def __gt__(self, o):
3020 """__gt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3021 return _IMP_kernel.ParticleIndexesKey___gt__(self, o)
3024 def __ge__(self, o):
3025 """__ge__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3026 return _IMP_kernel.ParticleIndexesKey___ge__(self, o)
3029 def __le__(self, o):
3030 """__le__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3031 return _IMP_kernel.ParticleIndexesKey___le__(self, o)
3035 """__hash__(ParticleIndexesKey self) -> std::size_t"""
3036 return _IMP_kernel.ParticleIndexesKey___hash__(self)
3039 def show(self, *args):
3041 show(ParticleIndexesKey self, _ostream out)
3042 show(ParticleIndexesKey self)
3044 return _IMP_kernel.ParticleIndexesKey_show(self, *args)
3047 def add_alias(old_key, new_name):
3048 """add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
3049 return _IMP_kernel.ParticleIndexesKey_add_alias(old_key, new_name)
3051 add_alias = staticmethod(add_alias)
3053 def get_number_of_keys():
3054 """get_number_of_keys() -> unsigned int"""
3055 return _IMP_kernel.ParticleIndexesKey_get_number_of_keys()
3057 get_number_of_keys = staticmethod(get_number_of_keys)
3060 """get_index(ParticleIndexesKey self) -> unsigned int"""
3061 return _IMP_kernel.ParticleIndexesKey_get_index(self)
3065 """show_all(_ostream out)"""
3066 return _IMP_kernel.ParticleIndexesKey_show_all(out)
3068 show_all = staticmethod(show_all)
3070 def get_all_strings():
3071 """get_all_strings() -> IMP::Vector< std::string >"""
3072 return _IMP_kernel.ParticleIndexesKey_get_all_strings()
3074 get_all_strings = staticmethod(get_all_strings)
3076 def get_number_unique():
3077 """get_number_unique() -> unsigned int"""
3078 return _IMP_kernel.ParticleIndexesKey_get_number_unique()
3080 get_number_unique = staticmethod(get_number_unique)
3083 """__str__(ParticleIndexesKey self) -> std::string"""
3084 return _IMP_kernel.ParticleIndexesKey___str__(self)
3088 """__repr__(ParticleIndexesKey self) -> std::string"""
3089 return _IMP_kernel.ParticleIndexesKey___repr__(self)
3091 __swig_destroy__ = _IMP_kernel.delete_ParticleIndexesKey
3092 __del__ =
lambda self:
None
3093 ParticleIndexesKey_swigregister = _IMP_kernel.ParticleIndexesKey_swigregister
3094 ParticleIndexesKey_swigregister(ParticleIndexesKey)
3096 def ParticleIndexesKey_add_key(sc):
3097 """ParticleIndexesKey_add_key(std::string sc) -> unsigned int"""
3098 return _IMP_kernel.ParticleIndexesKey_add_key(sc)
3100 def ParticleIndexesKey_get_key_exists(sc):
3101 """ParticleIndexesKey_get_key_exists(std::string sc) -> bool"""
3102 return _IMP_kernel.ParticleIndexesKey_get_key_exists(sc)
3104 def ParticleIndexesKey_add_alias(old_key, new_name):
3105 """ParticleIndexesKey_add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
3106 return _IMP_kernel.ParticleIndexesKey_add_alias(old_key, new_name)
3108 def ParticleIndexesKey_get_number_of_keys():
3109 """ParticleIndexesKey_get_number_of_keys() -> unsigned int"""
3110 return _IMP_kernel.ParticleIndexesKey_get_number_of_keys()
3112 def ParticleIndexesKey_show_all(out):
3113 """ParticleIndexesKey_show_all(_ostream out)"""
3114 return _IMP_kernel.ParticleIndexesKey_show_all(out)
3116 def ParticleIndexesKey_get_all_strings():
3117 """ParticleIndexesKey_get_all_strings() -> IMP::Vector< std::string >"""
3118 return _IMP_kernel.ParticleIndexesKey_get_all_strings()
3120 def ParticleIndexesKey_get_number_unique():
3121 """ParticleIndexesKey_get_number_unique() -> unsigned int"""
3122 return _IMP_kernel.ParticleIndexesKey_get_number_unique()
3125 """Proxy of C++ IMP::Key<(8)> class."""
3127 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3129 def __init__(self, *args):
3131 __init__(IMP::Key<(8)> self) -> ModelKey
3132 __init__(IMP::Key<(8)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ModelKey
3133 __init__(IMP::Key<(8)> self, std::string const & c) -> ModelKey
3134 __init__(IMP::Key<(8)> self, unsigned int i) -> ModelKey
3136 this = _IMP_kernel.new_ModelKey(*args)
3138 self.this.append(this)
3139 except __builtin__.Exception:
3143 """add_key(std::string sc) -> unsigned int"""
3144 return _IMP_kernel.ModelKey_add_key(sc)
3146 add_key = staticmethod(add_key)
3148 def get_key_exists(sc):
3149 """get_key_exists(std::string sc) -> bool"""
3150 return _IMP_kernel.ModelKey_get_key_exists(sc)
3152 get_key_exists = staticmethod(get_key_exists)
3154 def get_string(self):
3155 """get_string(ModelKey self) -> std::string const"""
3156 return _IMP_kernel.ModelKey_get_string(self)
3159 def __cmp__(self, o):
3160 """__cmp__(ModelKey self, ModelKey o) -> int"""
3161 return _IMP_kernel.ModelKey___cmp__(self, o)
3164 def __eq__(self, o):
3165 """__eq__(ModelKey self, ModelKey o) -> bool"""
3166 return _IMP_kernel.ModelKey___eq__(self, o)
3169 def __ne__(self, o):
3170 """__ne__(ModelKey self, ModelKey o) -> bool"""
3171 return _IMP_kernel.ModelKey___ne__(self, o)
3174 def __lt__(self, o):
3175 """__lt__(ModelKey self, ModelKey o) -> bool"""
3176 return _IMP_kernel.ModelKey___lt__(self, o)
3179 def __gt__(self, o):
3180 """__gt__(ModelKey self, ModelKey o) -> bool"""
3181 return _IMP_kernel.ModelKey___gt__(self, o)
3184 def __ge__(self, o):
3185 """__ge__(ModelKey self, ModelKey o) -> bool"""
3186 return _IMP_kernel.ModelKey___ge__(self, o)
3189 def __le__(self, o):
3190 """__le__(ModelKey self, ModelKey o) -> bool"""
3191 return _IMP_kernel.ModelKey___le__(self, o)
3195 """__hash__(ModelKey self) -> std::size_t"""
3196 return _IMP_kernel.ModelKey___hash__(self)
3199 def show(self, *args):
3201 show(ModelKey self, _ostream out)
3204 return _IMP_kernel.ModelKey_show(self, *args)
3207 def add_alias(old_key, new_name):
3208 """add_alias(ModelKey old_key, std::string new_name) -> ModelKey"""
3209 return _IMP_kernel.ModelKey_add_alias(old_key, new_name)
3211 add_alias = staticmethod(add_alias)
3213 def get_number_of_keys():
3214 """get_number_of_keys() -> unsigned int"""
3215 return _IMP_kernel.ModelKey_get_number_of_keys()
3217 get_number_of_keys = staticmethod(get_number_of_keys)
3220 """get_index(ModelKey self) -> unsigned int"""
3221 return _IMP_kernel.ModelKey_get_index(self)
3225 """show_all(_ostream out)"""
3226 return _IMP_kernel.ModelKey_show_all(out)
3228 show_all = staticmethod(show_all)
3230 def get_all_strings():
3231 """get_all_strings() -> IMP::Vector< std::string >"""
3232 return _IMP_kernel.ModelKey_get_all_strings()
3234 get_all_strings = staticmethod(get_all_strings)
3236 def get_number_unique():
3237 """get_number_unique() -> unsigned int"""
3238 return _IMP_kernel.ModelKey_get_number_unique()
3240 get_number_unique = staticmethod(get_number_unique)
3243 """__str__(ModelKey self) -> std::string"""
3244 return _IMP_kernel.ModelKey___str__(self)
3248 """__repr__(ModelKey self) -> std::string"""
3249 return _IMP_kernel.ModelKey___repr__(self)
3251 __swig_destroy__ = _IMP_kernel.delete_ModelKey
3252 __del__ =
lambda self:
None
3253 ModelKey_swigregister = _IMP_kernel.ModelKey_swigregister
3254 ModelKey_swigregister(ModelKey)
3256 def ModelKey_add_key(sc):
3257 """ModelKey_add_key(std::string sc) -> unsigned int"""
3258 return _IMP_kernel.ModelKey_add_key(sc)
3260 def ModelKey_get_key_exists(sc):
3261 """ModelKey_get_key_exists(std::string sc) -> bool"""
3262 return _IMP_kernel.ModelKey_get_key_exists(sc)
3264 def ModelKey_add_alias(old_key, new_name):
3265 """ModelKey_add_alias(ModelKey old_key, std::string new_name) -> ModelKey"""
3266 return _IMP_kernel.ModelKey_add_alias(old_key, new_name)
3268 def ModelKey_get_number_of_keys():
3269 """ModelKey_get_number_of_keys() -> unsigned int"""
3270 return _IMP_kernel.ModelKey_get_number_of_keys()
3272 def ModelKey_show_all(out):
3273 """ModelKey_show_all(_ostream out)"""
3274 return _IMP_kernel.ModelKey_show_all(out)
3276 def ModelKey_get_all_strings():
3277 """ModelKey_get_all_strings() -> IMP::Vector< std::string >"""
3278 return _IMP_kernel.ModelKey_get_all_strings()
3280 def ModelKey_get_number_unique():
3281 """ModelKey_get_number_unique() -> unsigned int"""
3282 return _IMP_kernel.ModelKey_get_number_unique()
3285 """Proxy of C++ IMP::Index<(IMP::ParticleIndexTag)> class."""
3287 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3289 def __init__(self, *args):
3291 __init__(IMP::Index<(IMP::ParticleIndexTag)> self, int i) -> ParticleIndex
3292 __init__(IMP::Index<(IMP::ParticleIndexTag)> self) -> ParticleIndex
3294 this = _IMP_kernel.new_ParticleIndex(*args)
3296 self.this.append(this)
3297 except __builtin__.Exception:
3301 """get_index(ParticleIndex self) -> int"""
3302 return _IMP_kernel.ParticleIndex_get_index(self)
3305 def __cmp__(self, o):
3306 """__cmp__(ParticleIndex self, ParticleIndex o) -> int"""
3307 return _IMP_kernel.ParticleIndex___cmp__(self, o)
3310 def __eq__(self, o):
3311 """__eq__(ParticleIndex self, ParticleIndex o) -> bool"""
3312 return _IMP_kernel.ParticleIndex___eq__(self, o)
3315 def __ne__(self, o):
3316 """__ne__(ParticleIndex self, ParticleIndex o) -> bool"""
3317 return _IMP_kernel.ParticleIndex___ne__(self, o)
3320 def __lt__(self, o):
3321 """__lt__(ParticleIndex self, ParticleIndex o) -> bool"""
3322 return _IMP_kernel.ParticleIndex___lt__(self, o)
3325 def __gt__(self, o):
3326 """__gt__(ParticleIndex self, ParticleIndex o) -> bool"""
3327 return _IMP_kernel.ParticleIndex___gt__(self, o)
3330 def __ge__(self, o):
3331 """__ge__(ParticleIndex self, ParticleIndex o) -> bool"""
3332 return _IMP_kernel.ParticleIndex___ge__(self, o)
3335 def __le__(self, o):
3336 """__le__(ParticleIndex self, ParticleIndex o) -> bool"""
3337 return _IMP_kernel.ParticleIndex___le__(self, o)
3340 def show(self, *args):
3342 show(ParticleIndex self, _ostream out)
3343 show(ParticleIndex self)
3345 return _IMP_kernel.ParticleIndex_show(self, *args)
3349 """__hash__(ParticleIndex self) -> std::size_t"""
3350 return _IMP_kernel.ParticleIndex___hash__(self)
3354 """__str__(ParticleIndex self) -> std::string"""
3355 return _IMP_kernel.ParticleIndex___str__(self)
3359 """__repr__(ParticleIndex self) -> std::string"""
3360 return _IMP_kernel.ParticleIndex___repr__(self)
3362 __swig_destroy__ = _IMP_kernel.delete_ParticleIndex
3363 __del__ =
lambda self:
None
3364 ParticleIndex_swigregister = _IMP_kernel.ParticleIndex_swigregister
3365 ParticleIndex_swigregister(ParticleIndex)
3368 """Proxy of C++ IMP::Key<(10)> class."""
3370 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3372 def __init__(self, *args):
3374 __init__(IMP::Key<(10)> self) -> FloatsKey
3375 __init__(IMP::Key<(10)> self, std::string const & c, bool is_implicit_add_permitted=True) -> FloatsKey
3376 __init__(IMP::Key<(10)> self, std::string const & c) -> FloatsKey
3377 __init__(IMP::Key<(10)> self, unsigned int i) -> FloatsKey
3379 this = _IMP_kernel.new_FloatsKey(*args)
3381 self.this.append(this)
3382 except __builtin__.Exception:
3386 """add_key(std::string sc) -> unsigned int"""
3387 return _IMP_kernel.FloatsKey_add_key(sc)
3389 add_key = staticmethod(add_key)
3391 def get_key_exists(sc):
3392 """get_key_exists(std::string sc) -> bool"""
3393 return _IMP_kernel.FloatsKey_get_key_exists(sc)
3395 get_key_exists = staticmethod(get_key_exists)
3397 def get_string(self):
3398 """get_string(FloatsKey self) -> std::string const"""
3399 return _IMP_kernel.FloatsKey_get_string(self)
3402 def __cmp__(self, o):
3403 """__cmp__(FloatsKey self, FloatsKey o) -> int"""
3404 return _IMP_kernel.FloatsKey___cmp__(self, o)
3407 def __eq__(self, o):
3408 """__eq__(FloatsKey self, FloatsKey o) -> bool"""
3409 return _IMP_kernel.FloatsKey___eq__(self, o)
3412 def __ne__(self, o):
3413 """__ne__(FloatsKey self, FloatsKey o) -> bool"""
3414 return _IMP_kernel.FloatsKey___ne__(self, o)
3417 def __lt__(self, o):
3418 """__lt__(FloatsKey self, FloatsKey o) -> bool"""
3419 return _IMP_kernel.FloatsKey___lt__(self, o)
3422 def __gt__(self, o):
3423 """__gt__(FloatsKey self, FloatsKey o) -> bool"""
3424 return _IMP_kernel.FloatsKey___gt__(self, o)
3427 def __ge__(self, o):
3428 """__ge__(FloatsKey self, FloatsKey o) -> bool"""
3429 return _IMP_kernel.FloatsKey___ge__(self, o)
3432 def __le__(self, o):
3433 """__le__(FloatsKey self, FloatsKey o) -> bool"""
3434 return _IMP_kernel.FloatsKey___le__(self, o)
3438 """__hash__(FloatsKey self) -> std::size_t"""
3439 return _IMP_kernel.FloatsKey___hash__(self)
3442 def show(self, *args):
3444 show(FloatsKey self, _ostream out)
3445 show(FloatsKey self)
3447 return _IMP_kernel.FloatsKey_show(self, *args)
3450 def add_alias(old_key, new_name):
3451 """add_alias(FloatsKey old_key, std::string new_name) -> FloatsKey"""
3452 return _IMP_kernel.FloatsKey_add_alias(old_key, new_name)
3454 add_alias = staticmethod(add_alias)
3456 def get_number_of_keys():
3457 """get_number_of_keys() -> unsigned int"""
3458 return _IMP_kernel.FloatsKey_get_number_of_keys()
3460 get_number_of_keys = staticmethod(get_number_of_keys)
3463 """get_index(FloatsKey self) -> unsigned int"""
3464 return _IMP_kernel.FloatsKey_get_index(self)
3468 """show_all(_ostream out)"""
3469 return _IMP_kernel.FloatsKey_show_all(out)
3471 show_all = staticmethod(show_all)
3473 def get_all_strings():
3474 """get_all_strings() -> IMP::Vector< std::string >"""
3475 return _IMP_kernel.FloatsKey_get_all_strings()
3477 get_all_strings = staticmethod(get_all_strings)
3479 def get_number_unique():
3480 """get_number_unique() -> unsigned int"""
3481 return _IMP_kernel.FloatsKey_get_number_unique()
3483 get_number_unique = staticmethod(get_number_unique)
3486 """__str__(FloatsKey self) -> std::string"""
3487 return _IMP_kernel.FloatsKey___str__(self)
3491 """__repr__(FloatsKey self) -> std::string"""
3492 return _IMP_kernel.FloatsKey___repr__(self)
3494 __swig_destroy__ = _IMP_kernel.delete_FloatsKey
3495 __del__ =
lambda self:
None
3496 FloatsKey_swigregister = _IMP_kernel.FloatsKey_swigregister
3497 FloatsKey_swigregister(FloatsKey)
3499 def FloatsKey_add_key(sc):
3500 """FloatsKey_add_key(std::string sc) -> unsigned int"""
3501 return _IMP_kernel.FloatsKey_add_key(sc)
3503 def FloatsKey_get_key_exists(sc):
3504 """FloatsKey_get_key_exists(std::string sc) -> bool"""
3505 return _IMP_kernel.FloatsKey_get_key_exists(sc)
3507 def FloatsKey_add_alias(old_key, new_name):
3508 """FloatsKey_add_alias(FloatsKey old_key, std::string new_name) -> FloatsKey"""
3509 return _IMP_kernel.FloatsKey_add_alias(old_key, new_name)
3511 def FloatsKey_get_number_of_keys():
3512 """FloatsKey_get_number_of_keys() -> unsigned int"""
3513 return _IMP_kernel.FloatsKey_get_number_of_keys()
3515 def FloatsKey_show_all(out):
3516 """FloatsKey_show_all(_ostream out)"""
3517 return _IMP_kernel.FloatsKey_show_all(out)
3519 def FloatsKey_get_all_strings():
3520 """FloatsKey_get_all_strings() -> IMP::Vector< std::string >"""
3521 return _IMP_kernel.FloatsKey_get_all_strings()
3523 def FloatsKey_get_number_unique():
3524 """FloatsKey_get_number_unique() -> unsigned int"""
3525 return _IMP_kernel.FloatsKey_get_number_unique()
3535 class FloatIndex(_Value):
3536 """Proxy of C++ IMP::FloatIndex class."""
3538 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3540 def __init__(self, *args):
3542 __init__(IMP::FloatIndex self, ParticleIndex i0, FloatKey i1) -> FloatIndex
3543 __init__(IMP::FloatIndex self, ParticleIndex i0) -> FloatIndex
3544 __init__(IMP::FloatIndex self) -> FloatIndex
3546 this = _IMP_kernel.new_FloatIndex(*args)
3548 self.this.append(this)
3549 except __builtin__.Exception:
3553 """__hash__(FloatIndex self) -> std::size_t"""
3554 return _IMP_kernel.FloatIndex___hash__(self)
3557 def show(self, *args):
3559 show(FloatIndex self, _ostream out)
3560 show(FloatIndex self)
3562 return _IMP_kernel.FloatIndex_show(self, *args)
3565 def __cmp__(self, o):
3566 """__cmp__(FloatIndex self, FloatIndex o) -> int"""
3567 return _IMP_kernel.FloatIndex___cmp__(self, o)
3570 def __eq__(self, o):
3571 """__eq__(FloatIndex self, FloatIndex o) -> bool"""
3572 return _IMP_kernel.FloatIndex___eq__(self, o)
3575 def __ne__(self, o):
3576 """__ne__(FloatIndex self, FloatIndex o) -> bool"""
3577 return _IMP_kernel.FloatIndex___ne__(self, o)
3580 def __lt__(self, o):
3581 """__lt__(FloatIndex self, FloatIndex o) -> bool"""
3582 return _IMP_kernel.FloatIndex___lt__(self, o)
3585 def __gt__(self, o):
3586 """__gt__(FloatIndex self, FloatIndex o) -> bool"""
3587 return _IMP_kernel.FloatIndex___gt__(self, o)
3590 def __ge__(self, o):
3591 """__ge__(FloatIndex self, FloatIndex o) -> bool"""
3592 return _IMP_kernel.FloatIndex___ge__(self, o)
3595 def __le__(self, o):
3596 """__le__(FloatIndex self, FloatIndex o) -> bool"""
3597 return _IMP_kernel.FloatIndex___le__(self, o)
3600 def get_particle(self):
3601 """get_particle(FloatIndex self) -> ParticleIndex const &"""
3602 return _IMP_kernel.FloatIndex_get_particle(self)
3605 def set_particle(self, v):
3606 """set_particle(FloatIndex self, ParticleIndex const & v)"""
3607 return _IMP_kernel.FloatIndex_set_particle(self, v)
3611 """get_key(FloatIndex self) -> FloatKey const &"""
3612 return _IMP_kernel.FloatIndex_get_key(self)
3615 def set_key(self, v):
3616 """set_key(FloatIndex self, FloatKey const & v)"""
3617 return _IMP_kernel.FloatIndex_set_key(self, v)
3621 """__str__(FloatIndex self) -> std::string"""
3622 return _IMP_kernel.FloatIndex___str__(self)
3626 """__repr__(FloatIndex self) -> std::string"""
3627 return _IMP_kernel.FloatIndex___repr__(self)
3629 __swig_destroy__ = _IMP_kernel.delete_FloatIndex
3630 __del__ =
lambda self:
None
3631 FloatIndex_swigregister = _IMP_kernel.FloatIndex_swigregister
3632 FloatIndex_swigregister(FloatIndex)
3634 class _ParticleIndexTag(object):
3635 """Proxy of C++ IMP::ParticleIndexTag class."""
3637 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3638 __repr__ = _swig_repr
3641 """__init__(IMP::ParticleIndexTag self) -> _ParticleIndexTag"""
3642 this = _IMP_kernel.new__ParticleIndexTag()
3644 self.this.append(this)
3645 except __builtin__.Exception:
3647 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexTag
3648 __del__ =
lambda self:
None
3649 _ParticleIndexTag_swigregister = _IMP_kernel._ParticleIndexTag_swigregister
3650 _ParticleIndexTag_swigregister(_ParticleIndexTag)
3652 class ModelObject(Object):
3653 """Proxy of C++ IMP::ModelObject class."""
3655 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3657 def __init__(self, m, name):
3658 """__init__(IMP::ModelObject self, Model m, std::string name) -> ModelObject"""
3659 if self.__class__ == ModelObject:
3663 this = _IMP_kernel.new_ModelObject(_self, m, name)
3665 self.this.append(this)
3666 except __builtin__.Exception:
3669 if self.__class__ != ModelObject:
3670 _director_objects.register(self)
3674 __swig_destroy__ = _IMP_kernel.delete_ModelObject
3675 __del__ =
lambda self:
None
3677 def get_model(self):
3678 """get_model(ModelObject self) -> Model"""
3679 return _IMP_kernel.ModelObject_get_model(self)
3682 def get_inputs(self):
3683 """get_inputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3684 return _IMP_kernel.ModelObject_get_inputs(self)
3687 def get_outputs(self):
3688 """get_outputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3689 return _IMP_kernel.ModelObject_get_outputs(self)
3692 def get_interactions(self):
3693 """get_interactions(ModelObject self) -> IMP::ModelObjectsTemps"""
3694 return _IMP_kernel.ModelObject_get_interactions(self)
3697 def get_has_dependencies(self):
3698 """get_has_dependencies(ModelObject self) -> bool"""
3699 return _IMP_kernel.ModelObject_get_has_dependencies(self)
3702 def set_has_dependencies(self, tf):
3703 """set_has_dependencies(ModelObject self, bool tf)"""
3704 return _IMP_kernel.ModelObject_set_has_dependencies(self, tf)
3707 def set_has_required_score_states(self, tf):
3708 """set_has_required_score_states(ModelObject self, bool tf)"""
3709 return _IMP_kernel.ModelObject_set_has_required_score_states(self, tf)
3712 def get_has_required_score_states(self):
3713 """get_has_required_score_states(ModelObject self) -> bool"""
3714 return _IMP_kernel.ModelObject_get_has_required_score_states(self)
3718 """get_required_score_states(ModelObject self) -> IMP::ScoreStatesTemp const &"""
3719 return _IMP_kernel.ModelObject_get_required_score_states(self)
3722 def handle_set_has_required_score_states(self, arg0):
3723 """handle_set_has_required_score_states(ModelObject self, bool arg0)"""
3724 return _IMP_kernel.ModelObject_handle_set_has_required_score_states(self, arg0)
3727 def do_get_inputs(self):
3728 """do_get_inputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3729 return _IMP_kernel.ModelObject_do_get_inputs(self)
3732 def do_get_outputs(self):
3733 """do_get_outputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3734 return _IMP_kernel.ModelObject_do_get_outputs(self)
3737 def do_get_interactions(self):
3738 """do_get_interactions(ModelObject self) -> IMP::ModelObjectsTemps"""
3739 return _IMP_kernel.ModelObject_do_get_interactions(self)
3743 """__str__(ModelObject self) -> std::string"""
3744 return _IMP_kernel.ModelObject___str__(self)
3748 """__repr__(ModelObject self) -> std::string"""
3749 return _IMP_kernel.ModelObject___repr__(self)
3754 return _object_cast_to_ModelObject(o)
3757 def get_type_name(self):
3758 return self.__class__.__name__
3759 def do_show(self, out):
3761 def get_version_info(self):
3763 return VersionInfo(self.__module__,
3770 return _object_cast_to_ModelObject(o)
3772 def __disown__(self):
3774 _IMP_kernel.disown_ModelObject(self)
3775 return weakref_proxy(self)
3777 def do_destroy(self):
3778 """do_destroy(ModelObject self)"""
3779 return _IMP_kernel.ModelObject_do_destroy(self)
3781 ModelObject_swigregister = _IMP_kernel.ModelObject_swigregister
3782 ModelObject_swigregister(ModelObject)
3783 cvar = _IMP_kernel.cvar
3784 NO_MAX = cvar.NO_MAX
3785 BAD_SCORE = cvar.BAD_SCORE
3787 class _ParticleInputs(object):
3788 """Proxy of C++ IMP::ParticleInputs class."""
3790 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3792 def __init__(self, *args, **kwargs):
3793 raise AttributeError(
"No constructor defined - class is abstract")
3794 __repr__ = _swig_repr
3796 def get_inputs(self, m, pis):
3797 """get_inputs(_ParticleInputs self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3798 return _IMP_kernel._ParticleInputs_get_inputs(self, m, pis)
3800 _ParticleInputs_swigregister = _IMP_kernel._ParticleInputs_swigregister
3801 _ParticleInputs_swigregister(_ParticleInputs)
3803 class _ParticleOutputs(object):
3804 """Proxy of C++ IMP::ParticleOutputs class."""
3806 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3808 def __init__(self, *args, **kwargs):
3809 raise AttributeError(
"No constructor defined - class is abstract")
3810 __repr__ = _swig_repr
3812 def get_outputs(self, m, pis):
3813 """get_outputs(_ParticleOutputs self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3814 return _IMP_kernel._ParticleOutputs_get_outputs(self, m, pis)
3816 _ParticleOutputs_swigregister = _IMP_kernel._ParticleOutputs_swigregister
3817 _ParticleOutputs_swigregister(_ParticleOutputs)
3821 """get_input_particles(IMP::ModelObjectsTemp const & mos) -> IMP::ParticlesTemp"""
3822 return _IMP_kernel.get_input_particles(mos)
3825 """get_input_containers(IMP::ModelObjectsTemp const & mos) -> IMP::ContainersTemp"""
3826 return _IMP_kernel.get_input_containers(mos)
3829 """get_output_particles(IMP::ModelObjectsTemp const & mos) -> IMP::ParticlesTemp"""
3830 return _IMP_kernel.get_output_particles(mos)
3833 """get_output_containers(IMP::ModelObjectsTemp const & mos) -> IMP::ContainersTemp"""
3834 return _IMP_kernel.get_output_containers(mos)
3835 class DerivativeAccumulator(object):
3836 """Proxy of C++ IMP::DerivativeAccumulator class."""
3838 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3839 __repr__ = _swig_repr
3841 def __init__(self, *args):
3843 __init__(IMP::DerivativeAccumulator self, double weight=1.0) -> DerivativeAccumulator
3844 __init__(IMP::DerivativeAccumulator self) -> DerivativeAccumulator
3845 __init__(IMP::DerivativeAccumulator self, DerivativeAccumulator copy, double weight) -> DerivativeAccumulator
3847 this = _IMP_kernel.new_DerivativeAccumulator(*args)
3849 self.this.append(this)
3850 except __builtin__.Exception:
3853 def __call__(self, value):
3854 """__call__(DerivativeAccumulator self, double const value) -> double"""
3855 return _IMP_kernel.DerivativeAccumulator___call__(self, value)
3858 def get_weight(self):
3859 """get_weight(DerivativeAccumulator self) -> double"""
3860 return _IMP_kernel.DerivativeAccumulator_get_weight(self)
3863 def show(self, *args):
3865 show(DerivativeAccumulator self, _ostream out)
3866 show(DerivativeAccumulator self)
3868 return _IMP_kernel.DerivativeAccumulator_show(self, *args)
3870 __swig_destroy__ = _IMP_kernel.delete_DerivativeAccumulator
3871 __del__ =
lambda self:
None
3872 DerivativeAccumulator_swigregister = _IMP_kernel.DerivativeAccumulator_swigregister
3873 DerivativeAccumulator_swigregister(DerivativeAccumulator)
3875 class EvaluationState(object):
3876 """Proxy of C++ IMP::EvaluationState class."""
3878 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3879 score = _swig_property(_IMP_kernel.EvaluationState_score_get, _IMP_kernel.EvaluationState_score_set)
3880 good = _swig_property(_IMP_kernel.EvaluationState_good_get, _IMP_kernel.EvaluationState_good_set)
3882 def __init__(self, *args):
3884 __init__(IMP::EvaluationState self, double oscore, bool ogood) -> EvaluationState
3885 __init__(IMP::EvaluationState self) -> EvaluationState
3887 this = _IMP_kernel.new_EvaluationState(*args)
3889 self.this.append(this)
3890 except __builtin__.Exception:
3893 def show(self, *args):
3895 show(EvaluationState self, _ostream out)
3896 show(EvaluationState self)
3898 return _IMP_kernel.EvaluationState_show(self, *args)
3902 """__str__(EvaluationState self) -> std::string"""
3903 return _IMP_kernel.EvaluationState___str__(self)
3907 """__repr__(EvaluationState self) -> std::string"""
3908 return _IMP_kernel.EvaluationState___repr__(self)
3910 __swig_destroy__ = _IMP_kernel.delete_EvaluationState
3911 __del__ =
lambda self:
None
3912 EvaluationState_swigregister = _IMP_kernel.EvaluationState_swigregister
3913 EvaluationState_swigregister(EvaluationState)
3915 class ScoreAccumulator(_Value):
3916 """Proxy of C++ IMP::ScoreAccumulator class."""
3918 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3920 def __init__(self, *args):
3922 __init__(IMP::ScoreAccumulator self) -> ScoreAccumulator
3923 __init__(IMP::ScoreAccumulator self, ScoreAccumulator o, Restraint r) -> ScoreAccumulator
3924 __init__(IMP::ScoreAccumulator self, ScoreAccumulator o, double weight, double local_max) -> ScoreAccumulator
3926 this = _IMP_kernel.new_ScoreAccumulator(*args)
3928 self.this.append(this)
3929 except __builtin__.Exception:
3932 def add_score(self, score):
3933 """add_score(ScoreAccumulator self, double score)"""
3934 return _IMP_kernel.ScoreAccumulator_add_score(self, score)
3937 def get_abort_evaluation(self):
3938 """get_abort_evaluation(ScoreAccumulator self) -> bool"""
3939 return _IMP_kernel.ScoreAccumulator_get_abort_evaluation(self)
3942 def get_is_evaluate_if_below(self):
3943 """get_is_evaluate_if_below(ScoreAccumulator self) -> bool"""
3944 return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_below(self)
3947 def get_is_evaluate_if_good(self):
3948 """get_is_evaluate_if_good(ScoreAccumulator self) -> bool"""
3949 return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_good(self)
3952 def get_maximum(self):
3953 """get_maximum(ScoreAccumulator self) -> double"""
3954 return _IMP_kernel.ScoreAccumulator_get_maximum(self)
3957 def get_derivative_accumulator(self):
3958 """get_derivative_accumulator(ScoreAccumulator self) -> DerivativeAccumulator"""
3959 return _IMP_kernel.ScoreAccumulator_get_derivative_accumulator(self)
3962 def show(self, *args):
3964 show(ScoreAccumulator self, _ostream out)
3965 show(ScoreAccumulator self)
3967 return _IMP_kernel.ScoreAccumulator_show(self, *args)
3971 """__str__(ScoreAccumulator self) -> std::string"""
3972 return _IMP_kernel.ScoreAccumulator___str__(self)
3976 """__repr__(ScoreAccumulator self) -> std::string"""
3977 return _IMP_kernel.ScoreAccumulator___repr__(self)
3979 __swig_destroy__ = _IMP_kernel.delete_ScoreAccumulator
3980 __del__ =
lambda self:
None
3981 ScoreAccumulator_swigregister = _IMP_kernel.ScoreAccumulator_swigregister
3982 ScoreAccumulator_swigregister(ScoreAccumulator)
3984 class ScoreState(ModelObject):
3985 """Proxy of C++ IMP::ScoreState class."""
3987 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
3989 def __init__(self, m, name):
3990 """__init__(IMP::ScoreState self, Model m, std::string name) -> ScoreState"""
3991 if self.__class__ == ScoreState:
3995 this = _IMP_kernel.new_ScoreState(_self, m, name)
3997 self.this.append(this)
3998 except __builtin__.Exception:
4001 if self.__class__ != ScoreState:
4002 _director_objects.register(self)
4007 def before_evaluate(self):
4008 """before_evaluate(ScoreState self)"""
4009 return _IMP_kernel.ScoreState_before_evaluate(self)
4012 def after_evaluate(self, accpt):
4013 """after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
4014 return _IMP_kernel.ScoreState_after_evaluate(self, accpt)
4017 def get_has_update_order(self):
4018 """get_has_update_order(ScoreState self) -> bool"""
4019 return _IMP_kernel.ScoreState_get_has_update_order(self)
4023 """get_update_order(ScoreState self) -> unsigned int"""
4024 return _IMP_kernel.ScoreState_get_update_order(self)
4027 def handle_set_has_required_score_states(self, tf):
4028 """handle_set_has_required_score_states(ScoreState self, bool tf)"""
4029 return _IMP_kernel.ScoreState_handle_set_has_required_score_states(self, tf)
4032 def do_before_evaluate(self):
4033 """do_before_evaluate(ScoreState self)"""
4034 return _IMP_kernel.ScoreState_do_before_evaluate(self)
4037 def do_after_evaluate(self, accpt):
4038 """do_after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
4039 return _IMP_kernel.ScoreState_do_after_evaluate(self, accpt)
4041 __swig_destroy__ = _IMP_kernel.delete_ScoreState
4042 __del__ =
lambda self:
None
4045 """__str__(ScoreState self) -> std::string"""
4046 return _IMP_kernel.ScoreState___str__(self)
4050 """__repr__(ScoreState self) -> std::string"""
4051 return _IMP_kernel.ScoreState___repr__(self)
4056 return _object_cast_to_ScoreState(o)
4059 def get_type_name(self):
4060 return self.__class__.__name__
4061 def do_show(self, out):
4063 def get_version_info(self):
4065 return VersionInfo(self.__module__,
4072 return _object_cast_to_ScoreState(o)
4074 def __disown__(self):
4076 _IMP_kernel.disown_ScoreState(self)
4077 return weakref_proxy(self)
4079 def do_destroy(self):
4080 """do_destroy(ScoreState self)"""
4081 return _IMP_kernel.ScoreState_do_destroy(self)
4084 def do_get_inputs(self):
4085 """do_get_inputs(ScoreState self) -> IMP::ModelObjectsTemp"""
4086 return _IMP_kernel.ScoreState_do_get_inputs(self)
4089 def do_get_outputs(self):
4090 """do_get_outputs(ScoreState self) -> IMP::ModelObjectsTemp"""
4091 return _IMP_kernel.ScoreState_do_get_outputs(self)
4094 def do_get_interactions(self):
4095 """do_get_interactions(ScoreState self) -> IMP::ModelObjectsTemps"""
4096 return _IMP_kernel.ScoreState_do_get_interactions(self)
4098 ScoreState_swigregister = _IMP_kernel.ScoreState_swigregister
4099 ScoreState_swigregister(ScoreState)
4103 """get_update_order(IMP::ScoreStatesTemp input) -> IMP::ScoreStatesTemp"""
4104 return _IMP_kernel.get_update_order(input)
4105 class Constraint(ScoreState):
4106 """Proxy of C++ IMP::Constraint class."""
4108 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4110 def __init__(self, *args):
4112 __init__(IMP::Constraint self, Model m, std::string name) -> Constraint
4113 __init__(IMP::Constraint self, Model m) -> Constraint
4115 if self.__class__ == Constraint:
4119 this = _IMP_kernel.new_Constraint(_self, *args)
4121 self.this.append(this)
4122 except __builtin__.Exception:
4125 if self.__class__ != Constraint:
4126 _director_objects.register(self)
4131 def do_update_attributes(self):
4132 """do_update_attributes(Constraint self)"""
4133 return _IMP_kernel.Constraint_do_update_attributes(self)
4136 def do_update_derivatives(self, da):
4137 """do_update_derivatives(Constraint self, DerivativeAccumulator da)"""
4138 return _IMP_kernel.Constraint_do_update_derivatives(self, da)
4141 def do_before_evaluate(self):
4142 """do_before_evaluate(Constraint self)"""
4143 return _IMP_kernel.Constraint_do_before_evaluate(self)
4146 def do_after_evaluate(self, da):
4147 """do_after_evaluate(Constraint self, DerivativeAccumulator da)"""
4148 return _IMP_kernel.Constraint_do_after_evaluate(self, da)
4150 __swig_destroy__ = _IMP_kernel.delete_Constraint
4151 __del__ =
lambda self:
None
4154 """__str__(Constraint self) -> std::string"""
4155 return _IMP_kernel.Constraint___str__(self)
4159 """__repr__(Constraint self) -> std::string"""
4160 return _IMP_kernel.Constraint___repr__(self)
4165 return _object_cast_to_Constraint(o)
4168 def get_type_name(self):
4169 return self.__class__.__name__
4170 def do_show(self, out):
4172 def get_version_info(self):
4174 return VersionInfo(self.__module__,
4181 return _object_cast_to_Constraint(o)
4183 def __disown__(self):
4185 _IMP_kernel.disown_Constraint(self)
4186 return weakref_proxy(self)
4188 def do_destroy(self):
4189 """do_destroy(Constraint self)"""
4190 return _IMP_kernel.Constraint_do_destroy(self)
4193 def do_get_inputs(self):
4194 """do_get_inputs(Constraint self) -> IMP::ModelObjectsTemp"""
4195 return _IMP_kernel.Constraint_do_get_inputs(self)
4198 def do_get_outputs(self):
4199 """do_get_outputs(Constraint self) -> IMP::ModelObjectsTemp"""
4200 return _IMP_kernel.Constraint_do_get_outputs(self)
4203 def do_get_interactions(self):
4204 """do_get_interactions(Constraint self) -> IMP::ModelObjectsTemps"""
4205 return _IMP_kernel.Constraint_do_get_interactions(self)
4207 Constraint_swigregister = _IMP_kernel.Constraint_swigregister
4208 Constraint_swigregister(Constraint)
4210 class Container(ModelObject):
4211 """Proxy of C++ IMP::Container class."""
4213 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4215 def __init__(self, *args):
4217 __init__(IMP::Container self, Model m, std::string name) -> Container
4218 __init__(IMP::Container self, Model m) -> Container
4220 if self.__class__ == Container:
4224 this = _IMP_kernel.new_Container(_self, *args)
4226 self.this.append(this)
4227 except __builtin__.Exception:
4230 if self.__class__ != Container:
4231 _director_objects.register(self)
4236 def do_get_contents_hash(self):
4237 """do_get_contents_hash(Container self) -> std::size_t"""
4238 return _IMP_kernel.Container_do_get_contents_hash(self)
4241 def get_all_possible_indexes(self):
4242 """get_all_possible_indexes(Container self) -> IMP::ParticleIndexes"""
4243 return _IMP_kernel.Container_get_all_possible_indexes(self)
4246 def get_contents_hash(self):
4247 """get_contents_hash(Container self) -> std::size_t"""
4248 return _IMP_kernel.Container_get_contents_hash(self)
4251 def do_get_outputs(self):
4252 """do_get_outputs(Container self) -> IMP::ModelObjectsTemp"""
4253 return _IMP_kernel.Container_do_get_outputs(self)
4256 def get_is_decomposable(self):
4257 """get_is_decomposable(Container self) -> bool"""
4258 return _IMP_kernel.Container_get_is_decomposable(self)
4261 def validate_readable(self):
4262 """validate_readable(Container self)"""
4263 return _IMP_kernel.Container_validate_readable(self)
4266 def validate_writable(self):
4267 """validate_writable(Container self)"""
4268 return _IMP_kernel.Container_validate_writable(self)
4271 def set_is_readable(self, tf):
4272 """set_is_readable(Container self, bool tf)"""
4273 return _IMP_kernel.Container_set_is_readable(self, tf)
4276 def set_is_writable(self, tf):
4277 """set_is_writable(Container self, bool tf)"""
4278 return _IMP_kernel.Container_set_is_writable(self, tf)
4280 __swig_destroy__ = _IMP_kernel.delete_Container
4281 __del__ =
lambda self:
None
4284 """__str__(Container self) -> std::string"""
4285 return _IMP_kernel.Container___str__(self)
4289 """__repr__(Container self) -> std::string"""
4290 return _IMP_kernel.Container___repr__(self)
4295 return _object_cast_to_Container(o)
4298 def get_type_name(self):
4299 return self.__class__.__name__
4300 def do_show(self, out):
4302 def get_version_info(self):
4304 return VersionInfo(self.__module__,
4311 return _object_cast_to_Container(o)
4313 def __disown__(self):
4315 _IMP_kernel.disown_Container(self)
4316 return weakref_proxy(self)
4318 def do_destroy(self):
4319 """do_destroy(Container self)"""
4320 return _IMP_kernel.Container_do_destroy(self)
4323 def handle_set_has_required_score_states(self, arg0):
4324 """handle_set_has_required_score_states(Container self, bool arg0)"""
4325 return _IMP_kernel.Container_handle_set_has_required_score_states(self, arg0)
4328 def do_get_inputs(self):
4329 """do_get_inputs(Container self) -> IMP::ModelObjectsTemp"""
4330 return _IMP_kernel.Container_do_get_inputs(self)
4333 def do_get_interactions(self):
4334 """do_get_interactions(Container self) -> IMP::ModelObjectsTemps"""
4335 return _IMP_kernel.Container_do_get_interactions(self)
4337 Container_swigregister = _IMP_kernel.Container_swigregister
4338 Container_swigregister(Container)
4340 class RestraintInfo(Object):
4341 """Proxy of C++ IMP::RestraintInfo class."""
4343 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4345 def __init__(self, *args):
4347 __init__(IMP::RestraintInfo self, std::string name) -> RestraintInfo
4348 __init__(IMP::RestraintInfo self) -> RestraintInfo
4350 this = _IMP_kernel.new_RestraintInfo(*args)
4352 self.this.append(this)
4353 except __builtin__.Exception:
4356 def add_int(self, key, value):
4357 """add_int(RestraintInfo self, std::string key, int value)"""
4358 return _IMP_kernel.RestraintInfo_add_int(self, key, value)
4361 def get_number_of_int(self):
4362 """get_number_of_int(RestraintInfo self) -> unsigned int"""
4363 return _IMP_kernel.RestraintInfo_get_number_of_int(self)
4366 def get_int_key(self, i):
4367 """get_int_key(RestraintInfo self, unsigned int i) -> std::string"""
4368 return _IMP_kernel.RestraintInfo_get_int_key(self, i)
4371 def get_int_value(self, i):
4372 """get_int_value(RestraintInfo self, unsigned int i) -> int"""
4373 return _IMP_kernel.RestraintInfo_get_int_value(self, i)
4376 def add_float(self, key, value):
4377 """add_float(RestraintInfo self, std::string key, double value)"""
4378 return _IMP_kernel.RestraintInfo_add_float(self, key, value)
4381 def get_number_of_float(self):
4382 """get_number_of_float(RestraintInfo self) -> unsigned int"""
4383 return _IMP_kernel.RestraintInfo_get_number_of_float(self)
4386 def get_float_key(self, i):
4387 """get_float_key(RestraintInfo self, unsigned int i) -> std::string"""
4388 return _IMP_kernel.RestraintInfo_get_float_key(self, i)
4391 def get_float_value(self, i):
4392 """get_float_value(RestraintInfo self, unsigned int i) -> double"""
4393 return _IMP_kernel.RestraintInfo_get_float_value(self, i)
4396 def add_string(self, key, value):
4397 """add_string(RestraintInfo self, std::string key, std::string value)"""
4398 return _IMP_kernel.RestraintInfo_add_string(self, key, value)
4401 def get_number_of_string(self):
4402 """get_number_of_string(RestraintInfo self) -> unsigned int"""
4403 return _IMP_kernel.RestraintInfo_get_number_of_string(self)
4406 def get_string_key(self, i):
4407 """get_string_key(RestraintInfo self, unsigned int i) -> std::string"""
4408 return _IMP_kernel.RestraintInfo_get_string_key(self, i)
4411 def get_string_value(self, i):
4412 """get_string_value(RestraintInfo self, unsigned int i) -> std::string"""
4413 return _IMP_kernel.RestraintInfo_get_string_value(self, i)
4416 def add_filename(self, key, value):
4417 """add_filename(RestraintInfo self, std::string key, std::string value)"""
4418 return _IMP_kernel.RestraintInfo_add_filename(self, key, value)
4421 def get_number_of_filename(self):
4422 """get_number_of_filename(RestraintInfo self) -> unsigned int"""
4423 return _IMP_kernel.RestraintInfo_get_number_of_filename(self)
4426 def get_filename_key(self, i):
4427 """get_filename_key(RestraintInfo self, unsigned int i) -> std::string"""
4428 return _IMP_kernel.RestraintInfo_get_filename_key(self, i)
4431 def get_filename_value(self, i):
4432 """get_filename_value(RestraintInfo self, unsigned int i) -> std::string"""
4433 return _IMP_kernel.RestraintInfo_get_filename_value(self, i)
4436 def add_floats(self, key, value):
4437 """add_floats(RestraintInfo self, std::string key, IMP::Floats value)"""
4438 return _IMP_kernel.RestraintInfo_add_floats(self, key, value)
4441 def get_number_of_floats(self):
4442 """get_number_of_floats(RestraintInfo self) -> unsigned int"""
4443 return _IMP_kernel.RestraintInfo_get_number_of_floats(self)
4446 def get_floats_key(self, i):
4447 """get_floats_key(RestraintInfo self, unsigned int i) -> std::string"""
4448 return _IMP_kernel.RestraintInfo_get_floats_key(self, i)
4451 def get_floats_value(self, i):
4452 """get_floats_value(RestraintInfo self, unsigned int i) -> IMP::Floats"""
4453 return _IMP_kernel.RestraintInfo_get_floats_value(self, i)
4456 def add_ints(self, key, value):
4457 """add_ints(RestraintInfo self, std::string key, IMP::Ints value)"""
4458 return _IMP_kernel.RestraintInfo_add_ints(self, key, value)
4461 def get_number_of_ints(self):
4462 """get_number_of_ints(RestraintInfo self) -> unsigned int"""
4463 return _IMP_kernel.RestraintInfo_get_number_of_ints(self)
4466 def get_ints_key(self, i):
4467 """get_ints_key(RestraintInfo self, unsigned int i) -> std::string"""
4468 return _IMP_kernel.RestraintInfo_get_ints_key(self, i)
4471 def get_ints_value(self, i):
4472 """get_ints_value(RestraintInfo self, unsigned int i) -> IMP::Ints"""
4473 return _IMP_kernel.RestraintInfo_get_ints_value(self, i)
4476 def add_strings(self, key, value):
4477 """add_strings(RestraintInfo self, std::string key, IMP::Strings value)"""
4478 return _IMP_kernel.RestraintInfo_add_strings(self, key, value)
4481 def get_number_of_strings(self):
4482 """get_number_of_strings(RestraintInfo self) -> unsigned int"""
4483 return _IMP_kernel.RestraintInfo_get_number_of_strings(self)
4486 def get_strings_key(self, i):
4487 """get_strings_key(RestraintInfo self, unsigned int i) -> std::string"""
4488 return _IMP_kernel.RestraintInfo_get_strings_key(self, i)
4491 def get_strings_value(self, i):
4492 """get_strings_value(RestraintInfo self, unsigned int i) -> IMP::Strings"""
4493 return _IMP_kernel.RestraintInfo_get_strings_value(self, i)
4496 def add_filenames(self, key, value):
4497 """add_filenames(RestraintInfo self, std::string key, IMP::Strings value)"""
4498 return _IMP_kernel.RestraintInfo_add_filenames(self, key, value)
4501 def get_number_of_filenames(self):
4502 """get_number_of_filenames(RestraintInfo self) -> unsigned int"""
4503 return _IMP_kernel.RestraintInfo_get_number_of_filenames(self)
4506 def get_filenames_key(self, i):
4507 """get_filenames_key(RestraintInfo self, unsigned int i) -> std::string"""
4508 return _IMP_kernel.RestraintInfo_get_filenames_key(self, i)
4511 def get_filenames_value(self, i):
4512 """get_filenames_value(RestraintInfo self, unsigned int i) -> IMP::Strings"""
4513 return _IMP_kernel.RestraintInfo_get_filenames_value(self, i)
4516 def add_particle_indexes(self, key, value):
4517 """add_particle_indexes(RestraintInfo self, std::string key, IMP::ParticleIndexes value)"""
4518 return _IMP_kernel.RestraintInfo_add_particle_indexes(self, key, value)
4521 def get_number_of_particle_indexes(self):
4522 """get_number_of_particle_indexes(RestraintInfo self) -> unsigned int"""
4523 return _IMP_kernel.RestraintInfo_get_number_of_particle_indexes(self)
4526 def get_particle_indexes_key(self, i):
4527 """get_particle_indexes_key(RestraintInfo self, unsigned int i) -> std::string"""
4528 return _IMP_kernel.RestraintInfo_get_particle_indexes_key(self, i)
4531 def get_particle_indexes_value(self, i):
4532 """get_particle_indexes_value(RestraintInfo self, unsigned int i) -> IMP::ParticleIndexes"""
4533 return _IMP_kernel.RestraintInfo_get_particle_indexes_value(self, i)
4536 def get_version_info(self):
4537 """get_version_info(RestraintInfo self) -> VersionInfo"""
4538 return _IMP_kernel.RestraintInfo_get_version_info(self)
4542 """__str__(RestraintInfo self) -> std::string"""
4543 return _IMP_kernel.RestraintInfo___str__(self)
4547 """__repr__(RestraintInfo self) -> std::string"""
4548 return _IMP_kernel.RestraintInfo___repr__(self)
4553 return _object_cast_to_RestraintInfo(o)
4555 RestraintInfo_swigregister = _IMP_kernel.RestraintInfo_swigregister
4556 RestraintInfo_swigregister(RestraintInfo)
4558 class Restraint(ModelObject):
4559 """Proxy of C++ IMP::Restraint class."""
4561 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4563 def __init__(self, m, name):
4564 """__init__(IMP::Restraint self, Model m, std::string name) -> Restraint"""
4565 if self.__class__ == Restraint:
4569 this = _IMP_kernel.new_Restraint(_self, m, name)
4571 self.this.append(this)
4572 except __builtin__.Exception:
4575 if self.__class__ != Restraint:
4576 _director_objects.register(self)
4581 def get_score(self):
4582 """get_score(Restraint self) -> double"""
4583 return _IMP_kernel.Restraint_get_score(self)
4586 def evaluate(self, calc_derivs):
4587 """evaluate(Restraint self, bool calc_derivs) -> double"""
4588 return _IMP_kernel.Restraint_evaluate(self, calc_derivs)
4591 def evaluate_if_good(self, calc_derivatives):
4592 """evaluate_if_good(Restraint self, bool calc_derivatives) -> double"""
4593 return _IMP_kernel.Restraint_evaluate_if_good(self, calc_derivatives)
4596 def evaluate_if_below(self, calc_derivatives, max):
4597 """evaluate_if_below(Restraint self, bool calc_derivatives, double max) -> double"""
4598 return _IMP_kernel.Restraint_evaluate_if_below(self, calc_derivatives, max)
4601 def unprotected_evaluate(self, da):
4602 """unprotected_evaluate(Restraint self, DerivativeAccumulator da) -> double"""
4603 return _IMP_kernel.Restraint_unprotected_evaluate(self, da)
4606 def unprotected_evaluate_if_good(self, da, max):
4607 """unprotected_evaluate_if_good(Restraint self, DerivativeAccumulator da, double max) -> double"""
4608 return _IMP_kernel.Restraint_unprotected_evaluate_if_good(self, da, max)
4611 def unprotected_evaluate_if_below(self, da, max):
4612 """unprotected_evaluate_if_below(Restraint self, DerivativeAccumulator da, double max) -> double"""
4613 return _IMP_kernel.Restraint_unprotected_evaluate_if_below(self, da, max)
4616 def get_static_info(self):
4617 """get_static_info(Restraint self) -> RestraintInfo"""
4618 return _IMP_kernel.Restraint_get_static_info(self)
4621 def get_dynamic_info(self):
4622 """get_dynamic_info(Restraint self) -> RestraintInfo"""
4623 return _IMP_kernel.Restraint_get_dynamic_info(self)
4626 def add_score_and_derivatives(self, sa):
4627 """add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
4628 return _IMP_kernel.Restraint_add_score_and_derivatives(self, sa)
4632 """create_decomposition(Restraint self) -> Restraint"""
4633 return _IMP_kernel.Restraint_create_decomposition(self)
4636 def create_current_decomposition(self):
4637 """create_current_decomposition(Restraint self) -> Restraint"""
4638 return _IMP_kernel.Restraint_create_current_decomposition(self)
4641 def set_weight(self, weight):
4642 """set_weight(Restraint self, IMP::Float weight)"""
4643 return _IMP_kernel.Restraint_set_weight(self, weight)
4646 def get_weight(self):
4647 """get_weight(Restraint self) -> IMP::Float"""
4648 return _IMP_kernel.Restraint_get_weight(self)
4651 def get_maximum_score(self):
4652 """get_maximum_score(Restraint self) -> double"""
4653 return _IMP_kernel.Restraint_get_maximum_score(self)
4656 def set_maximum_score(self, s):
4657 """set_maximum_score(Restraint self, double s)"""
4658 return _IMP_kernel.Restraint_set_maximum_score(self, s)
4663 create_scoring_function(Restraint self, double weight=1.0, double max) -> ScoringFunction
4664 create_scoring_function(Restraint self, double weight=1.0) -> ScoringFunction
4665 create_scoring_function(Restraint self) -> ScoringFunction
4667 return _IMP_kernel.Restraint_create_scoring_function(self, *args)
4670 def set_last_score(self, s):
4671 """set_last_score(Restraint self, double s)"""
4672 return _IMP_kernel.Restraint_set_last_score(self, s)
4675 def get_last_score(self):
4676 """get_last_score(Restraint self) -> double"""
4677 return _IMP_kernel.Restraint_get_last_score(self)
4680 def get_was_good(self):
4681 """get_was_good(Restraint self) -> bool"""
4682 return _IMP_kernel.Restraint_get_was_good(self)
4684 __swig_destroy__ = _IMP_kernel.delete_Restraint
4685 __del__ =
lambda self:
None
4687 def do_create_decomposition(self):
4688 """do_create_decomposition(Restraint self) -> IMP::Restraints"""
4689 return _IMP_kernel.Restraint_do_create_decomposition(self)
4692 def do_create_current_decomposition(self):
4693 """do_create_current_decomposition(Restraint self) -> IMP::Restraints"""
4694 return _IMP_kernel.Restraint_do_create_current_decomposition(self)
4697 def do_add_score_and_derivatives(self, sa):
4698 """do_add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
4699 return _IMP_kernel.Restraint_do_add_score_and_derivatives(self, sa)
4702 def do_get_outputs(self):
4703 """do_get_outputs(Restraint self) -> IMP::ModelObjectsTemp"""
4704 return _IMP_kernel.Restraint_do_get_outputs(self)
4708 """__str__(Restraint self) -> std::string"""
4709 return _IMP_kernel.Restraint___str__(self)
4713 """__repr__(Restraint self) -> std::string"""
4714 return _IMP_kernel.Restraint___repr__(self)
4719 return _object_cast_to_Restraint(o)
4722 def get_type_name(self):
4723 return self.__class__.__name__
4724 def do_show(self, out):
4726 def get_version_info(self):
4728 return VersionInfo(self.__module__,
4735 return _object_cast_to_Restraint(o)
4737 def __disown__(self):
4739 _IMP_kernel.disown_Restraint(self)
4740 return weakref_proxy(self)
4742 def do_destroy(self):
4743 """do_destroy(Restraint self)"""
4744 return _IMP_kernel.Restraint_do_destroy(self)
4747 def handle_set_has_required_score_states(self, arg0):
4748 """handle_set_has_required_score_states(Restraint self, bool arg0)"""
4749 return _IMP_kernel.Restraint_handle_set_has_required_score_states(self, arg0)
4752 def do_get_inputs(self):
4753 """do_get_inputs(Restraint self) -> IMP::ModelObjectsTemp"""
4754 return _IMP_kernel.Restraint_do_get_inputs(self)
4757 def do_get_interactions(self):
4758 """do_get_interactions(Restraint self) -> IMP::ModelObjectsTemps"""
4759 return _IMP_kernel.Restraint_do_get_interactions(self)
4761 Restraint_swigregister = _IMP_kernel.Restraint_swigregister
4762 Restraint_swigregister(Restraint)
4764 class _RestraintsAdaptor(_InputAdaptor):
4765 """Proxy of C++ IMP::RestraintsAdaptor class."""
4767 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4768 __repr__ = _swig_repr
4770 def __init__(self, *args):
4772 __init__(IMP::RestraintsAdaptor self) -> _RestraintsAdaptor
4773 __init__(IMP::RestraintsAdaptor self, IMP::Restraints const & sf) -> _RestraintsAdaptor
4774 __init__(IMP::RestraintsAdaptor self, IMP::RestraintsTemp const & sf) -> _RestraintsAdaptor
4775 __init__(IMP::RestraintsAdaptor self, Restraint sf) -> _RestraintsAdaptor
4777 this = _IMP_kernel.new__RestraintsAdaptor(*args)
4779 self.this.append(this)
4780 except __builtin__.Exception:
4782 __swig_destroy__ = _IMP_kernel.delete__RestraintsAdaptor
4783 __del__ =
lambda self:
None
4784 _RestraintsAdaptor_swigregister = _IMP_kernel._RestraintsAdaptor_swigregister
4785 _RestraintsAdaptor_swigregister(_RestraintsAdaptor)
4787 class RestraintSet(Restraint):
4788 """Proxy of C++ IMP::RestraintSet class."""
4790 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
4792 def __init__(self, *args):
4794 __init__(IMP::RestraintSet self, Model m, double weight, std::string const & name) -> RestraintSet
4795 __init__(IMP::RestraintSet self, Model m, double weight) -> RestraintSet
4796 __init__(IMP::RestraintSet self, Model m, std::string const & name) -> RestraintSet
4797 __init__(IMP::RestraintSet self, Model m) -> RestraintSet
4798 __init__(IMP::RestraintSet self, IMP::RestraintsTemp const & rs, double weight, std::string const & name) -> RestraintSet
4799 __init__(IMP::RestraintSet self, IMP::RestraintsTemp const & rs, double weight) -> RestraintSet
4801 if self.__class__ == RestraintSet:
4805 this = _IMP_kernel.new_RestraintSet(_self, *args)
4807 self.this.append(this)
4808 except __builtin__.Exception:
4811 if self.__class__ != RestraintSet:
4812 _director_objects.register(self)
4817 def unprotected_evaluate(self, da):
4818 """unprotected_evaluate(RestraintSet self, DerivativeAccumulator da) -> double"""
4819 return _IMP_kernel.RestraintSet_unprotected_evaluate(self, da)
4822 def get_type_name(self):
4823 """get_type_name(RestraintSet self) -> std::string"""
4824 return _IMP_kernel.RestraintSet_get_type_name(self)
4827 def get_version_info(self):
4828 """get_version_info(RestraintSet self) -> VersionInfo"""
4829 return _IMP_kernel.RestraintSet_get_version_info(self)
4832 def remove_restraint(self, d):
4833 """remove_restraint(RestraintSet self, Restraint d)"""
4834 return _IMP_kernel.RestraintSet_remove_restraint(self, d)
4837 def remove_restraints(self, d):
4838 """remove_restraints(RestraintSet self, IMP::Restraints const & d)"""
4839 return _IMP_kernel.RestraintSet_remove_restraints(self, d)
4842 def set_restraints(self, ps):
4843 """set_restraints(RestraintSet self, IMP::Restraints const & ps)"""
4844 return _IMP_kernel.RestraintSet_set_restraints(self, ps)
4847 def set_restraints_order(self, objs):
4848 """set_restraints_order(RestraintSet self, IMP::Restraints const & objs)"""
4849 return _IMP_kernel.RestraintSet_set_restraints_order(self, objs)
4853 """add_restraint(RestraintSet self, Restraint obj) -> unsigned int"""
4854 return _IMP_kernel.RestraintSet_add_restraint(self, obj)
4858 """add_restraints(RestraintSet self, IMP::Restraints const & objs)"""
4859 return _IMP_kernel.RestraintSet_add_restraints(self, objs)
4862 def clear_restraints(self):
4863 """clear_restraints(RestraintSet self)"""
4864 return _IMP_kernel.RestraintSet_clear_restraints(self)
4867 def get_number_of_restraints(self):
4868 """get_number_of_restraints(RestraintSet self) -> unsigned int"""
4869 return _IMP_kernel.RestraintSet_get_number_of_restraints(self)
4872 def get_has_restraints(self):
4873 """get_has_restraints(RestraintSet self) -> bool"""
4874 return _IMP_kernel.RestraintSet_get_has_restraints(self)
4877 def get_restraint(self, i):
4878 """get_restraint(RestraintSet self, unsigned int i) -> Restraint"""
4879 return _IMP_kernel.RestraintSet_get_restraint(self, i)
4882 def get_restraints(self):
4883 """get_restraints(RestraintSet self) -> IMP::Restraints"""
4884 return _IMP_kernel.RestraintSet_get_restraints(self)
4887 def reserve_restraints(self, sz):
4888 """reserve_restraints(RestraintSet self, unsigned int sz)"""
4889 return _IMP_kernel.RestraintSet_reserve_restraints(self, sz)
4892 def get_non_sets_and_sets(self):
4893 """get_non_sets_and_sets(RestraintSet self) -> std::pair< IMP::RestraintsTemp,IMP::RestraintSetsTemp >"""
4894 return _IMP_kernel.RestraintSet_get_non_sets_and_sets(self)
4897 def do_get_inputs(self):
4898 """do_get_inputs(RestraintSet self) -> IMP::ModelObjectsTemp"""
4899 return _IMP_kernel.RestraintSet_do_get_inputs(self)
4904 create_scoring_function(RestraintSet self, double weight=1.0, double max) -> ScoringFunction
4905 create_scoring_function(RestraintSet self, double weight=1.0) -> ScoringFunction
4906 create_scoring_function(RestraintSet self) -> ScoringFunction
4908 return _IMP_kernel.RestraintSet_create_scoring_function(self, *args)
4911 def get_last_score(self):
4912 """get_last_score(RestraintSet self) -> double"""
4913 return _IMP_kernel.RestraintSet_get_last_score(self)
4917 """__str__(RestraintSet self) -> std::string"""
4918 return _IMP_kernel.RestraintSet___str__(self)
4922 """__repr__(RestraintSet self) -> std::string"""
4923 return _IMP_kernel.RestraintSet___repr__(self)
4928 return _object_cast_to_RestraintSet(o)
4931 def get_type_name(self):
4932 return self.__class__.__name__
4933 def do_show(self, out):
4935 def get_version_info(self):
4937 return VersionInfo(self.__module__,
4944 return _object_cast_to_RestraintSet(o)
4946 def __disown__(self):
4948 _IMP_kernel.disown_RestraintSet(self)
4949 return weakref_proxy(self)
4951 def do_destroy(self):
4952 """do_destroy(RestraintSet self)"""
4953 return _IMP_kernel.RestraintSet_do_destroy(self)
4956 def handle_set_has_required_score_states(self, arg0):
4957 """handle_set_has_required_score_states(RestraintSet self, bool arg0)"""
4958 return _IMP_kernel.RestraintSet_handle_set_has_required_score_states(self, arg0)
4961 def do_get_outputs(self):
4962 """do_get_outputs(RestraintSet self) -> IMP::ModelObjectsTemp"""
4963 return _IMP_kernel.RestraintSet_do_get_outputs(self)
4966 def do_get_interactions(self):
4967 """do_get_interactions(RestraintSet self) -> IMP::ModelObjectsTemps"""
4968 return _IMP_kernel.RestraintSet_do_get_interactions(self)
4971 def do_create_decomposition(self):
4972 """do_create_decomposition(RestraintSet self) -> IMP::Restraints"""
4973 return _IMP_kernel.RestraintSet_do_create_decomposition(self)
4976 def do_create_current_decomposition(self):
4977 """do_create_current_decomposition(RestraintSet self) -> IMP::Restraints"""
4978 return _IMP_kernel.RestraintSet_do_create_current_decomposition(self)
4981 def do_add_score_and_derivatives(self, sa):
4982 """do_add_score_and_derivatives(RestraintSet self, ScoreAccumulator sa)"""
4983 return _IMP_kernel.RestraintSet_do_add_score_and_derivatives(self, sa)
4985 RestraintSet_swigregister = _IMP_kernel.RestraintSet_swigregister
4986 RestraintSet_swigregister(RestraintSet)
4989 def get_restraints(rs):
4990 """get_restraints(IMP::RestraintsTemp const & rs) -> IMP::RestraintsTemp"""
4991 return _IMP_kernel.get_restraints(rs)
4993 def _check_particle(p, a):
4994 if (
not p.get_is_active()):
4995 raise ValueError(
"Inactive Particle")
4996 if (type(a)() == a):
4997 raise IndexError(
"Cannot use default Index")
4998 if (
not p.has_attribute(a)):
4999 raise IndexError(
"Particle does not have attribute")
5001 class Particle(ModelObject):
5002 """Proxy of C++ IMP::Particle class."""
5004 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5006 def get_version_info(self):
5007 """get_version_info(Particle self) -> VersionInfo"""
5008 return _IMP_kernel.Particle_get_version_info(self)
5011 def __init__(self, *args):
5013 __init__(IMP::Particle self, Model m, std::string name) -> Particle
5014 __init__(IMP::Particle self, Model m) -> Particle
5016 this = _IMP_kernel.new_Particle(*args)
5018 self.this.append(this)
5019 except __builtin__.Exception:
5022 def get_float_keys(self):
5023 """get_float_keys(Particle self) -> IMP::FloatKeys"""
5024 return _IMP_kernel.Particle_get_float_keys(self)
5027 def get_floats_keys(self):
5028 """get_floats_keys(Particle self) -> IMP::FloatsKeys"""
5029 return _IMP_kernel.Particle_get_floats_keys(self)
5032 def get_int_keys(self):
5033 """get_int_keys(Particle self) -> IMP::IntKeys"""
5034 return _IMP_kernel.Particle_get_int_keys(self)
5037 def get_ints_keys(self):
5038 """get_ints_keys(Particle self) -> IMP::IntsKeys"""
5039 return _IMP_kernel.Particle_get_ints_keys(self)
5042 def get_string_keys(self):
5043 """get_string_keys(Particle self) -> IMP::StringKeys"""
5044 return _IMP_kernel.Particle_get_string_keys(self)
5047 def get_object_keys(self):
5048 """get_object_keys(Particle self) -> IMP::ObjectKeys"""
5049 return _IMP_kernel.Particle_get_object_keys(self)
5052 def add_cache_attribute(self, *args):
5054 add_cache_attribute(Particle self, FloatKey name, IMP::Float value)
5055 add_cache_attribute(Particle self, FloatsKey name, IMP::Floats value)
5056 add_cache_attribute(Particle self, IntKey name, IMP::Int value)
5057 add_cache_attribute(Particle self, IntsKey name, IMP::Ints value)
5058 add_cache_attribute(Particle self, StringKey name, IMP::String value)
5059 add_cache_attribute(Particle self, ObjectKey name, Object value)
5060 add_cache_attribute(Particle self, IMP::WeakObjectKey name, Object value)
5062 return _IMP_kernel.Particle_add_cache_attribute(self, *args)
5065 def get_weak_object_keys(self):
5066 """get_weak_object_keys(Particle self) -> IMP::WeakObjectKeys"""
5067 return _IMP_kernel.Particle_get_weak_object_keys(self)
5070 def add_to_derivative(self, key, value, da):
5071 """add_to_derivative(Particle self, FloatKey key, IMP::Float value, DerivativeAccumulator da)"""
5072 return _IMP_kernel.Particle_add_to_derivative(self, key, value, da)
5075 def set_is_optimized(self, k, tf):
5076 """set_is_optimized(Particle self, FloatKey k, bool tf)"""
5077 return _IMP_kernel.Particle_set_is_optimized(self, k, tf)
5080 def get_is_optimized(self, k):
5081 """get_is_optimized(Particle self, FloatKey k) -> bool"""
5082 return _IMP_kernel.Particle_get_is_optimized(self, k)
5085 def get_derivative(self, k):
5086 """get_derivative(Particle self, FloatKey k) -> IMP::Float"""
5087 return _IMP_kernel.Particle_get_derivative(self, k)
5090 def add_attribute(self, *args):
5092 add_attribute(Particle self, FloatKey name, IMP::Float initial_value)
5093 add_attribute(Particle self, FloatsKey name, IMP::Floats initial_value)
5094 add_attribute(Particle self, IntKey name, IMP::Int initial_value)
5095 add_attribute(Particle self, IntsKey name, IMP::Ints initial_value)
5096 add_attribute(Particle self, StringKey name, IMP::String initial_value)
5097 add_attribute(Particle self, ObjectKey name, Object initial_value)
5098 add_attribute(Particle self, IMP::WeakObjectKey name, Object initial_value)
5099 add_attribute(Particle self, FloatKey name, IMP::Float const initial_value, bool optimized)
5100 add_attribute(Particle self, ParticleIndexKey k, Particle v)
5102 return _IMP_kernel.Particle_add_attribute(self, *args)
5105 def has_attribute(self, *args):
5107 has_attribute(Particle self, FloatKey name) -> bool
5108 has_attribute(Particle self, FloatsKey name) -> bool
5109 has_attribute(Particle self, IntKey name) -> bool
5110 has_attribute(Particle self, IntsKey name) -> bool
5111 has_attribute(Particle self, StringKey name) -> bool
5112 has_attribute(Particle self, ObjectKey name) -> bool
5113 has_attribute(Particle self, IMP::WeakObjectKey name) -> bool
5114 has_attribute(Particle self, ParticleIndexKey k) -> bool
5116 return _IMP_kernel.Particle_has_attribute(self, *args)
5119 def set_value(self, *args):
5121 set_value(Particle self, FloatKey name, IMP::Float value)
5122 set_value(Particle self, FloatsKey name, IMP::Floats value)
5123 set_value(Particle self, IntKey name, IMP::Int value)
5124 set_value(Particle self, IntsKey name, IMP::Ints value)
5125 set_value(Particle self, StringKey name, IMP::String value)
5126 set_value(Particle self, ObjectKey name, Object value)
5127 set_value(Particle self, IMP::WeakObjectKey name, Object value)
5128 set_value(Particle self, ParticleIndexKey k, Particle v)
5130 return _IMP_kernel.Particle_set_value(self, *args)
5133 def get_value(self, *args):
5135 get_value(Particle self, FloatKey name) -> IMP::Float
5136 get_value(Particle self, FloatsKey name) -> IMP::Floats
5137 get_value(Particle self, IntKey name) -> IMP::Int
5138 get_value(Particle self, IntsKey name) -> IMP::Ints
5139 get_value(Particle self, StringKey name) -> IMP::String
5140 get_value(Particle self, ObjectKey name) -> Object
5141 get_value(Particle self, IMP::WeakObjectKey name) -> Object
5142 get_value(Particle self, ParticleIndexKey k) -> Particle
5144 return _IMP_kernel.Particle_get_value(self, *args)
5147 def remove_attribute(self, *args):
5149 remove_attribute(Particle self, FloatKey name)
5150 remove_attribute(Particle self, FloatsKey name)
5151 remove_attribute(Particle self, IntKey name)
5152 remove_attribute(Particle self, IntsKey name)
5153 remove_attribute(Particle self, StringKey name)
5154 remove_attribute(Particle self, ObjectKey name)
5155 remove_attribute(Particle self, IMP::WeakObjectKey name)
5156 remove_attribute(Particle self, ParticleIndexKey k)
5158 return _IMP_kernel.Particle_remove_attribute(self, *args)
5161 def get_particle_keys(self):
5162 """get_particle_keys(Particle self) -> IMP::ParticleIndexKeys"""
5163 return _IMP_kernel.Particle_get_particle_keys(self)
5166 def show(self, *args):
5168 show(Particle self, _ostream out)
5171 return _IMP_kernel.Particle_show(self, *args)
5174 def get_is_active(self):
5175 """get_is_active(Particle self) -> bool"""
5176 return _IMP_kernel.Particle_get_is_active(self)
5180 """get_index(Particle self) -> ParticleIndex"""
5181 return _IMP_kernel.Particle_get_index(self)
5184 def __eq__(self, *args):
5186 __eq__(Particle self, Particle o) -> bool
5187 __eq__(Particle self, Decorator d) -> bool
5189 return _IMP_kernel.Particle___eq__(self, *args)
5192 def __ne__(self, *args):
5194 __ne__(Particle self, Particle o) -> bool
5195 __ne__(Particle self, Decorator d) -> bool
5197 return _IMP_kernel.Particle___ne__(self, *args)
5200 def __le__(self, *args):
5202 __le__(Particle self, Particle o) -> bool
5203 __le__(Particle self, Decorator d) -> bool
5205 return _IMP_kernel.Particle___le__(self, *args)
5208 def __lt__(self, *args):
5210 __lt__(Particle self, Particle o) -> bool
5211 __lt__(Particle self, Decorator d) -> bool
5213 return _IMP_kernel.Particle___lt__(self, *args)
5216 def __ge__(self, *args):
5218 __ge__(Particle self, Particle o) -> bool
5219 __ge__(Particle self, Decorator d) -> bool
5221 return _IMP_kernel.Particle___ge__(self, *args)
5224 def __gt__(self, *args):
5226 __gt__(Particle self, Particle o) -> bool
5227 __gt__(Particle self, Decorator d) -> bool
5229 return _IMP_kernel.Particle___gt__(self, *args)
5232 __hash__ = ModelObject.__hash__
5236 """__str__(Particle self) -> std::string"""
5237 return _IMP_kernel.Particle___str__(self)
5241 """__repr__(Particle self) -> std::string"""
5242 return _IMP_kernel.Particle___repr__(self)
5247 return _object_cast_to_Particle(o)
5249 Particle_swigregister = _IMP_kernel.Particle_swigregister
5250 Particle_swigregister(Particle)
5252 class _ParticleAdaptor(_InputAdaptor):
5253 """Proxy of C++ IMP::ParticleAdaptor class."""
5255 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5256 __repr__ = _swig_repr
5258 def __init__(self, *args):
5260 __init__(IMP::ParticleAdaptor self) -> _ParticleAdaptor
5261 __init__(IMP::ParticleAdaptor self, Particle p) -> _ParticleAdaptor
5262 __init__(IMP::ParticleAdaptor self, Decorator d) -> _ParticleAdaptor
5264 this = _IMP_kernel.new__ParticleAdaptor(*args)
5266 self.this.append(this)
5267 except __builtin__.Exception:
5270 def get_model(self):
5271 """get_model(_ParticleAdaptor self) -> Model"""
5272 return _IMP_kernel._ParticleAdaptor_get_model(self)
5275 def get_particle_index(self):
5276 """get_particle_index(_ParticleAdaptor self) -> ParticleIndex"""
5277 return _IMP_kernel._ParticleAdaptor_get_particle_index(self)
5279 __swig_destroy__ = _IMP_kernel.delete__ParticleAdaptor
5280 __del__ =
lambda self:
None
5281 _ParticleAdaptor_swigregister = _IMP_kernel._ParticleAdaptor_swigregister
5282 _ParticleAdaptor_swigregister(_ParticleAdaptor)
5284 class _DependencyGraphVertexIndex(object):
5285 """Proxy of C++ IMP::DependencyGraphVertexIndex class."""
5287 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5288 __repr__ = _swig_repr
5291 """__init__(IMP::DependencyGraphVertexIndex self) -> _DependencyGraphVertexIndex"""
5292 this = _IMP_kernel.new__DependencyGraphVertexIndex()
5294 self.this.append(this)
5295 except __builtin__.Exception:
5297 __swig_destroy__ = _IMP_kernel.delete__DependencyGraphVertexIndex
5298 __del__ =
lambda self:
None
5299 _DependencyGraphVertexIndex_swigregister = _IMP_kernel._DependencyGraphVertexIndex_swigregister
5300 _DependencyGraphVertexIndex_swigregister(_DependencyGraphVertexIndex)
5303 def show_as_graphviz(name, out):
5304 """show_as_graphviz(IMP::DependencyGraph const & name, TextOutput out)"""
5305 return _IMP_kernel.show_as_graphviz(name, out)
5307 def get_vertex_index(g):
5308 """get_vertex_index(IMP::DependencyGraph const & g) -> _DependencyGraphVertexIndex"""
5309 return _IMP_kernel.get_vertex_index(g)
5312 """get_dependency_graph(Model m) -> IMP::DependencyGraph"""
5313 return _IMP_kernel.get_dependency_graph(m)
5316 """get_pruned_dependency_graph(Model m) -> IMP::DependencyGraph"""
5317 return _IMP_kernel.get_pruned_dependency_graph(m)
5321 get_required_score_states(IMP::ModelObjectsTemp const & mos, IMP::ScoreStatesTemp exclude) -> IMP::ScoreStatesTemp
5322 get_required_score_states(IMP::ModelObjectsTemp const & mos) -> IMP::ScoreStatesTemp
5323 get_required_score_states(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ScoreStatesTemp
5325 return _IMP_kernel.get_required_score_states(*args)
5328 """get_dependent_particles(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ParticlesTemp"""
5329 return _IMP_kernel.get_dependent_particles(p, all, dg, index)
5331 def get_dependent_restraints(m, pi):
5332 """get_dependent_restraints(Model m, ParticleIndex pi) -> IMP::RestraintsTemp"""
5333 return _IMP_kernel.get_dependent_restraints(m, pi)
5334 class ScoringFunction(ModelObject):
5335 """Proxy of C++ IMP::ScoringFunction class."""
5337 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5339 def do_add_score_and_derivatives(self, sa, ss):
5340 """do_add_score_and_derivatives(ScoringFunction self, ScoreAccumulator sa, IMP::ScoreStatesTemp const & ss)"""
5341 return _IMP_kernel.ScoringFunction_do_add_score_and_derivatives(self, sa, ss)
5344 def get_score_accumulator_if_below(self, deriv, max):
5345 """get_score_accumulator_if_below(ScoringFunction self, bool deriv, double max) -> ScoreAccumulator"""
5346 return _IMP_kernel.ScoringFunction_get_score_accumulator_if_below(self, deriv, max)
5349 def get_score_accumulator_if_good(self, deriv):
5350 """get_score_accumulator_if_good(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
5351 return _IMP_kernel.ScoringFunction_get_score_accumulator_if_good(self, deriv)
5354 def get_score_accumulator(self, deriv):
5355 """get_score_accumulator(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
5356 return _IMP_kernel.ScoringFunction_get_score_accumulator(self, deriv)
5359 def __init__(self, m, name):
5360 """__init__(IMP::ScoringFunction self, Model m, std::string name) -> ScoringFunction"""
5361 if self.__class__ == ScoringFunction:
5365 this = _IMP_kernel.new_ScoringFunction(_self, m, name)
5367 self.this.append(this)
5368 except __builtin__.Exception:
5371 if self.__class__ != ScoringFunction:
5372 _director_objects.register(self)
5377 def do_get_outputs(self):
5378 """do_get_outputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
5379 return _IMP_kernel.ScoringFunction_do_get_outputs(self)
5382 def evaluate_if_good(self, derivatives):
5383 """evaluate_if_good(ScoringFunction self, bool derivatives) -> double"""
5384 return _IMP_kernel.ScoringFunction_evaluate_if_good(self, derivatives)
5387 def evaluate(self, derivatives):
5388 """evaluate(ScoringFunction self, bool derivatives) -> double"""
5389 return _IMP_kernel.ScoringFunction_evaluate(self, derivatives)
5392 def evaluate_if_below(self, derivatives, max):
5393 """evaluate_if_below(ScoringFunction self, bool derivatives, double max) -> double"""
5394 return _IMP_kernel.ScoringFunction_evaluate_if_below(self, derivatives, max)
5397 def get_had_good_score(self):
5398 """get_had_good_score(ScoringFunction self) -> bool"""
5399 return _IMP_kernel.ScoringFunction_get_had_good_score(self)
5402 def get_last_score(self):
5403 """get_last_score(ScoringFunction self) -> double"""
5404 return _IMP_kernel.ScoringFunction_get_last_score(self)
5408 """create_restraints(ScoringFunction self) -> IMP::Restraints"""
5409 return _IMP_kernel.ScoringFunction_create_restraints(self)
5413 """__str__(ScoringFunction self) -> std::string"""
5414 return _IMP_kernel.ScoringFunction___str__(self)
5418 """__repr__(ScoringFunction self) -> std::string"""
5419 return _IMP_kernel.ScoringFunction___repr__(self)
5424 return _object_cast_to_ScoringFunction(o)
5427 def get_type_name(self):
5428 return self.__class__.__name__
5429 def do_show(self, out):
5431 def get_version_info(self):
5433 return VersionInfo(self.__module__,
5440 return _object_cast_to_ScoringFunction(o)
5442 __swig_destroy__ = _IMP_kernel.delete_ScoringFunction
5443 __del__ =
lambda self:
None
5444 def __disown__(self):
5446 _IMP_kernel.disown_ScoringFunction(self)
5447 return weakref_proxy(self)
5449 def do_destroy(self):
5450 """do_destroy(ScoringFunction self)"""
5451 return _IMP_kernel.ScoringFunction_do_destroy(self)
5454 def handle_set_has_required_score_states(self, arg0):
5455 """handle_set_has_required_score_states(ScoringFunction self, bool arg0)"""
5456 return _IMP_kernel.ScoringFunction_handle_set_has_required_score_states(self, arg0)
5459 def do_get_inputs(self):
5460 """do_get_inputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
5461 return _IMP_kernel.ScoringFunction_do_get_inputs(self)
5464 def do_get_interactions(self):
5465 """do_get_interactions(ScoringFunction self) -> IMP::ModelObjectsTemps"""
5466 return _IMP_kernel.ScoringFunction_do_get_interactions(self)
5468 ScoringFunction_swigregister = _IMP_kernel.ScoringFunction_swigregister
5469 ScoringFunction_swigregister(ScoringFunction)
5474 create_decomposition(IMP::RestraintsTemp const & rs) -> IMP::Restraints
5475 create_decomposition(ScoringFunction sf) -> IMP::ScoringFunctions
5477 return _IMP_kernel.create_decomposition(*args)
5478 class _ScoringFunctionAdaptor(_InputAdaptor):
5479 """Proxy of C++ IMP::ScoringFunctionAdaptor class."""
5481 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5482 __repr__ = _swig_repr
5484 def __init__(self, *args):
5486 __init__(IMP::ScoringFunctionAdaptor self) -> _ScoringFunctionAdaptor
5487 __init__(IMP::ScoringFunctionAdaptor self, ScoringFunction sf) -> _ScoringFunctionAdaptor
5488 __init__(IMP::ScoringFunctionAdaptor self, IMP::RestraintsTemp const & sf) -> _ScoringFunctionAdaptor
5489 __init__(IMP::ScoringFunctionAdaptor self, IMP::Restraints const & sf) -> _ScoringFunctionAdaptor
5490 __init__(IMP::ScoringFunctionAdaptor self, Restraint sf) -> _ScoringFunctionAdaptor
5492 this = _IMP_kernel.new__ScoringFunctionAdaptor(*args)
5494 self.this.append(this)
5495 except __builtin__.Exception:
5497 __swig_destroy__ = _IMP_kernel.delete__ScoringFunctionAdaptor
5498 __del__ =
lambda self:
None
5499 _ScoringFunctionAdaptor_swigregister = _IMP_kernel._ScoringFunctionAdaptor_swigregister
5500 _ScoringFunctionAdaptor_swigregister(_ScoringFunctionAdaptor)
5505 show_restraint_hierarchy(_ScoringFunctionAdaptor rs, _ostream out)
5506 show_restraint_hierarchy(_ScoringFunctionAdaptor rs)
5508 return _IMP_kernel.show_restraint_hierarchy(*args)
5509 class Undecorator(Object):
5510 """Proxy of C++ IMP::Undecorator class."""
5512 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5514 def __init__(self, m, name):
5515 """__init__(IMP::Undecorator self, Model m, std::string name) -> Undecorator"""
5516 if self.__class__ == Undecorator:
5520 this = _IMP_kernel.new_Undecorator(_self, m, name)
5522 self.this.append(this)
5523 except __builtin__.Exception:
5526 if self.__class__ != Undecorator:
5527 _director_objects.register(self)
5532 def teardown(self, pi):
5533 """teardown(Undecorator self, ParticleIndex pi)"""
5534 return _IMP_kernel.Undecorator_teardown(self, pi)
5538 """__str__(Undecorator self) -> std::string"""
5539 return _IMP_kernel.Undecorator___str__(self)
5543 """__repr__(Undecorator self) -> std::string"""
5544 return _IMP_kernel.Undecorator___repr__(self)
5549 return _object_cast_to_Undecorator(o)
5552 def get_type_name(self):
5553 return self.__class__.__name__
5554 def do_show(self, out):
5556 def get_version_info(self):
5558 return VersionInfo(self.__module__,
5565 return _object_cast_to_Undecorator(o)
5567 __swig_destroy__ = _IMP_kernel.delete_Undecorator
5568 __del__ =
lambda self:
None
5569 def __disown__(self):
5571 _IMP_kernel.disown_Undecorator(self)
5572 return weakref_proxy(self)
5574 def do_destroy(self):
5575 """do_destroy(Undecorator self)"""
5576 return _IMP_kernel.Undecorator_do_destroy(self)
5578 Undecorator_swigregister = _IMP_kernel.Undecorator_swigregister
5579 Undecorator_swigregister(Undecorator)
5581 class Model(Object):
5582 """Proxy of C++ IMP::Model class."""
5584 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5586 def __init__(self, *args):
5588 __init__(IMP::Model self, std::string name) -> Model
5589 __init__(IMP::Model self) -> Model
5591 this = _IMP_kernel.new_Model(*args)
5593 self.this.append(this)
5594 except __builtin__.Exception:
5597 def clear_particle_caches(self, pi):
5598 """clear_particle_caches(Model self, ParticleIndex pi)"""
5599 return _IMP_kernel.Model_clear_particle_caches(self, pi)
5603 """add_particle(Model self, std::string name) -> ParticleIndex"""
5604 return _IMP_kernel.Model_add_particle(self, name)
5607 def get_particle_name(self, pi):
5608 """get_particle_name(Model self, ParticleIndex pi) -> std::string"""
5609 return _IMP_kernel.Model_get_particle_name(self, pi)
5612 def add_undecorator(self, pi, d):
5613 """add_undecorator(Model self, ParticleIndex pi, Undecorator d)"""
5614 return _IMP_kernel.Model_add_undecorator(self, pi, d)
5617 def remove_score_state(self, d):
5618 """remove_score_state(Model self, ScoreState d)"""
5619 return _IMP_kernel.Model_remove_score_state(self, d)
5622 def remove_score_states(self, d):
5623 """remove_score_states(Model self, IMP::ScoreStates const & d)"""
5624 return _IMP_kernel.Model_remove_score_states(self, d)
5627 def set_score_states(self, ps):
5628 """set_score_states(Model self, IMP::ScoreStates const & ps)"""
5629 return _IMP_kernel.Model_set_score_states(self, ps)
5632 def set_score_states_order(self, objs):
5633 """set_score_states_order(Model self, IMP::ScoreStates const & objs)"""
5634 return _IMP_kernel.Model_set_score_states_order(self, objs)
5637 def add_score_state(self, obj):
5638 """add_score_state(Model self, ScoreState obj) -> unsigned int"""
5639 return _IMP_kernel.Model_add_score_state(self, obj)
5642 def add_score_states(self, objs):
5643 """add_score_states(Model self, IMP::ScoreStates const & objs)"""
5644 return _IMP_kernel.Model_add_score_states(self, objs)
5647 def clear_score_states(self):
5648 """clear_score_states(Model self)"""
5649 return _IMP_kernel.Model_clear_score_states(self)
5652 def get_number_of_score_states(self):
5653 """get_number_of_score_states(Model self) -> unsigned int"""
5654 return _IMP_kernel.Model_get_number_of_score_states(self)
5657 def get_has_score_states(self):
5658 """get_has_score_states(Model self) -> bool"""
5659 return _IMP_kernel.Model_get_has_score_states(self)
5662 def get_score_state(self, i):
5663 """get_score_state(Model self, unsigned int i) -> ScoreState"""
5664 return _IMP_kernel.Model_get_score_state(self, i)
5667 def get_score_states(self):
5668 """get_score_states(Model self) -> IMP::ScoreStates"""
5669 return _IMP_kernel.Model_get_score_states(self)
5672 def reserve_score_states(self, sz):
5673 """reserve_score_states(Model self, unsigned int sz)"""
5674 return _IMP_kernel.Model_reserve_score_states(self, sz)
5678 """update(Model self)"""
5679 return _IMP_kernel.Model_update(self)
5682 def add_attribute(self, *args):
5684 add_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5685 add_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
5686 add_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle, IMP::Floats value)
5687 add_attribute(Model self, IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
5688 add_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
5689 add_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
5690 add_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5691 add_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
5692 add_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5694 return _IMP_kernel.Model_add_attribute(self, *args)
5697 def remove_attribute(self, *args):
5699 remove_attribute(Model self, FloatKey attribute_key, ParticleIndex particle)
5700 remove_attribute(Model self, IntKey attribute_key, ParticleIndex particle)
5701 remove_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle)
5702 remove_attribute(Model self, IntsKey attribute_key, ParticleIndex particle)
5703 remove_attribute(Model self, StringKey attribute_key, ParticleIndex particle)
5704 remove_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle)
5705 remove_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle)
5706 remove_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle)
5707 remove_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle)
5709 return _IMP_kernel.Model_remove_attribute(self, *args)
5712 def get_has_attribute(self, *args):
5714 get_has_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> bool
5715 get_has_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> bool
5716 get_has_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle) -> bool
5717 get_has_attribute(Model self, IntsKey attribute_key, ParticleIndex particle) -> bool
5718 get_has_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> bool
5719 get_has_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> bool
5720 get_has_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> bool
5721 get_has_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> bool
5722 get_has_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> bool
5724 return _IMP_kernel.Model_get_has_attribute(self, *args)
5727 def set_attribute(self, *args):
5729 set_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5730 set_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
5731 set_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle, IMP::Floats value)
5732 set_attribute(Model self, IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
5733 set_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
5734 set_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
5735 set_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5736 set_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
5737 set_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5739 return _IMP_kernel.Model_set_attribute(self, *args)
5742 def get_attribute(self, *args):
5744 get_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> IMP::Float
5745 get_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> IMP::Int
5746 get_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle) -> IMP::Floats
5747 get_attribute(Model self, IntsKey attribute_key, ParticleIndex particle) -> IMP::Ints
5748 get_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> IMP::String
5749 get_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> IMP::ParticleIndexes
5750 get_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> ParticleIndex
5751 get_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> Object
5752 get_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> Object
5754 return _IMP_kernel.Model_get_attribute(self, *args)
5757 def add_cache_attribute(self, *args):
5759 add_cache_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5760 add_cache_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
5761 add_cache_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle, IMP::Floats value)
5762 add_cache_attribute(Model self, IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
5763 add_cache_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
5764 add_cache_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
5765 add_cache_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5766 add_cache_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
5767 add_cache_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5769 return _IMP_kernel.Model_add_cache_attribute(self, *args)
5772 def set_is_optimized(self, arg2, arg3, arg4):
5773 """set_is_optimized(Model self, FloatKey arg2, ParticleIndex arg3, bool arg4)"""
5774 return _IMP_kernel.Model_set_is_optimized(self, arg2, arg3, arg4)
5777 def add_to_derivative(self, k, particle, v, da):
5778 """add_to_derivative(Model self, FloatKey k, ParticleIndex particle, double v, DerivativeAccumulator da)"""
5779 return _IMP_kernel.Model_add_to_derivative(self, k, particle, v, da)
5782 def get_particle(self, p):
5783 """get_particle(Model self, ParticleIndex p) -> Particle"""
5784 return _IMP_kernel.Model_get_particle(self, p)
5787 def get_has_particle(self, p):
5788 """get_has_particle(Model self, ParticleIndex p) -> bool"""
5789 return _IMP_kernel.Model_get_has_particle(self, p)
5793 """get_particle_indexes(Model self) -> IMP::ParticleIndexes"""
5794 return _IMP_kernel.Model_get_particle_indexes(self)
5797 def get_model_objects(self):
5798 """get_model_objects(Model self) -> IMP::ModelObjectsTemp"""
5799 return _IMP_kernel.Model_get_model_objects(self)
5802 def remove_particle(self, pi):
5803 """remove_particle(Model self, ParticleIndex pi)"""
5804 return _IMP_kernel.Model_remove_particle(self, pi)
5807 def add_data(self, mk, o):
5808 """add_data(Model self, ModelKey mk, Object o)"""
5809 return _IMP_kernel.Model_add_data(self, mk, o)
5812 def get_data(self, mk):
5813 """get_data(Model self, ModelKey mk) -> Object"""
5814 return _IMP_kernel.Model_get_data(self, mk)
5817 def remove_data(self, mk):
5818 """remove_data(Model self, ModelKey mk)"""
5819 return _IMP_kernel.Model_remove_data(self, mk)
5822 def get_has_data(self, mk):
5823 """get_has_data(Model self, ModelKey mk) -> bool"""
5824 return _IMP_kernel.Model_get_has_data(self, mk)
5827 def get_version_info(self):
5828 """get_version_info(Model self) -> VersionInfo"""
5829 return _IMP_kernel.Model_get_version_info(self)
5832 def do_destroy(self):
5833 """do_destroy(Model self)"""
5834 return _IMP_kernel.Model_do_destroy(self)
5838 """__str__(Model self) -> std::string"""
5839 return _IMP_kernel.Model___str__(self)
5843 """__repr__(Model self) -> std::string"""
5844 return _IMP_kernel.Model___repr__(self)
5849 return _object_cast_to_Model(o)
5852 def _get_ints_numpy(self, k):
5853 return _get_ints_numpy(self, k, self)
5855 def _get_floats_numpy(self, k):
5856 return _get_floats_numpy(self, k, self)
5858 def _get_derivatives_numpy(self, k):
5859 return _get_derivatives_numpy(self, k, self)
5861 def _get_spheres_numpy(self):
5862 return _get_spheres_numpy(self, self)
5864 def _get_sphere_derivatives_numpy(self):
5865 return _get_sphere_derivatives_numpy(self, self)
5867 Model_swigregister = _IMP_kernel.Model_swigregister
5868 Model_swigregister(Model)
5870 class Decorator(_Value):
5871 """Proxy of C++ IMP::Decorator class."""
5873 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5874 __repr__ = _swig_repr
5876 def __init__(self, p):
5877 """__init__(IMP::Decorator self, _ParticleAdaptor p) -> Decorator"""
5878 this = _IMP_kernel.new_Decorator(p)
5880 self.this.append(this)
5881 except __builtin__.Exception:
5884 def __ne__(self, o):
5885 """__ne__(Decorator self, Object o) -> bool"""
5886 return _IMP_kernel.Decorator___ne__(self, o)
5889 def __lt__(self, o):
5890 """__lt__(Decorator self, Object o) -> bool"""
5891 return _IMP_kernel.Decorator___lt__(self, o)
5894 def __gt__(self, o):
5895 """__gt__(Decorator self, Object o) -> bool"""
5896 return _IMP_kernel.Decorator___gt__(self, o)
5899 def __ge__(self, o):
5900 """__ge__(Decorator self, Object o) -> bool"""
5901 return _IMP_kernel.Decorator___ge__(self, o)
5904 def __le__(self, o):
5905 """__le__(Decorator self, Object o) -> bool"""
5906 return _IMP_kernel.Decorator___le__(self, o)
5909 def get_particle(self):
5910 """get_particle(Decorator self) -> Particle"""
5911 return _IMP_kernel.Decorator_get_particle(self)
5914 def get_particle_index(self):
5915 """get_particle_index(Decorator self) -> ParticleIndex"""
5916 return _IMP_kernel.Decorator_get_particle_index(self)
5919 def get_model(self):
5920 """get_model(Decorator self) -> Model"""
5921 return _IMP_kernel.Decorator_get_model(self)
5924 def get_is_valid(self):
5925 """get_is_valid(Decorator self) -> bool"""
5926 return _IMP_kernel.Decorator_get_is_valid(self)
5930 """__hash__(Decorator self) -> std::size_t"""
5931 return _IMP_kernel.Decorator___hash__(self)
5934 def __eq__(self, *args):
5936 __eq__(Decorator self, Object o) -> bool
5937 __eq__(Decorator self, Decorator o) -> bool
5938 __eq__(Decorator self, Particle o) -> bool
5940 return _IMP_kernel.Decorator___eq__(self, *args)
5944 """__bool__(Decorator self) -> bool"""
5945 return _IMP_kernel.Decorator___bool__(self)
5948 __nonzero__ = __bool__
5950 __swig_destroy__ = _IMP_kernel.delete_Decorator
5951 __del__ =
lambda self:
None
5952 Decorator_swigregister = _IMP_kernel.Decorator_swigregister
5953 Decorator_swigregister(Decorator)
5956 def check_particle(m, pi):
5957 """check_particle(Model m, ParticleIndex pi)"""
5958 return _IMP_kernel.check_particle(m, pi)
5959 class UnaryFunction(Object):
5960 """Proxy of C++ IMP::UnaryFunction class."""
5962 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
5964 def __init__(self, *args):
5966 __init__(IMP::UnaryFunction self, std::string name) -> UnaryFunction
5967 __init__(IMP::UnaryFunction self) -> UnaryFunction
5969 if self.__class__ == UnaryFunction:
5973 this = _IMP_kernel.new_UnaryFunction(_self, *args)
5975 self.this.append(this)
5976 except __builtin__.Exception:
5979 if self.__class__ != UnaryFunction:
5980 _director_objects.register(self)
5985 def evaluate(self, feature):
5986 """evaluate(UnaryFunction self, double feature) -> double"""
5987 return _IMP_kernel.UnaryFunction_evaluate(self, feature)
5990 def evaluate_with_derivative(self, feature):
5991 """evaluate_with_derivative(UnaryFunction self, double feature) -> IMP::DerivativePair"""
5992 return _IMP_kernel.UnaryFunction_evaluate_with_derivative(self, feature)
5994 __swig_destroy__ = _IMP_kernel.delete_UnaryFunction
5995 __del__ =
lambda self:
None
5998 """__str__(UnaryFunction self) -> std::string"""
5999 return _IMP_kernel.UnaryFunction___str__(self)
6003 """__repr__(UnaryFunction self) -> std::string"""
6004 return _IMP_kernel.UnaryFunction___repr__(self)
6009 return _object_cast_to_UnaryFunction(o)
6012 def get_type_name(self):
6013 return self.__class__.__name__
6014 def do_show(self, out):
6016 def get_version_info(self):
6018 return VersionInfo(self.__module__,
6025 return _object_cast_to_UnaryFunction(o)
6027 def __disown__(self):
6029 _IMP_kernel.disown_UnaryFunction(self)
6030 return weakref_proxy(self)
6032 def do_destroy(self):
6033 """do_destroy(UnaryFunction self)"""
6034 return _IMP_kernel.UnaryFunction_do_destroy(self)
6036 UnaryFunction_swigregister = _IMP_kernel.UnaryFunction_swigregister
6037 UnaryFunction_swigregister(UnaryFunction)
6039 class OptimizerState(ModelObject):
6040 """Proxy of C++ IMP::OptimizerState class."""
6042 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6044 def __init__(self, m, name):
6045 """__init__(IMP::OptimizerState self, Model m, std::string name) -> OptimizerState"""
6046 if self.__class__ == OptimizerState:
6050 this = _IMP_kernel.new_OptimizerState(_self, m, name)
6052 self.this.append(this)
6053 except __builtin__.Exception:
6056 if self.__class__ != OptimizerState:
6057 _director_objects.register(self)
6063 """update(OptimizerState self)"""
6064 return _IMP_kernel.OptimizerState_update(self)
6067 def set_is_optimizing(self, arg0):
6068 """set_is_optimizing(OptimizerState self, bool arg0)"""
6069 return _IMP_kernel.OptimizerState_set_is_optimizing(self, arg0)
6072 def get_optimizer(self):
6073 """get_optimizer(OptimizerState self) -> Optimizer"""
6074 return _IMP_kernel.OptimizerState_get_optimizer(self)
6077 def set_period(self, p):
6078 """set_period(OptimizerState self, unsigned int p)"""
6079 return _IMP_kernel.OptimizerState_set_period(self, p)
6082 def get_period(self):
6083 """get_period(OptimizerState self) -> unsigned int"""
6084 return _IMP_kernel.OptimizerState_get_period(self)
6088 """reset(OptimizerState self)"""
6089 return _IMP_kernel.OptimizerState_reset(self)
6092 def update_always(self):
6093 """update_always(OptimizerState self)"""
6094 return _IMP_kernel.OptimizerState_update_always(self)
6097 def get_number_of_updates(self):
6098 """get_number_of_updates(OptimizerState self) -> unsigned int"""
6099 return _IMP_kernel.OptimizerState_get_number_of_updates(self)
6102 def set_number_of_updates(self, n):
6103 """set_number_of_updates(OptimizerState self, unsigned int n)"""
6104 return _IMP_kernel.OptimizerState_set_number_of_updates(self, n)
6106 __swig_destroy__ = _IMP_kernel.delete_OptimizerState
6107 __del__ =
lambda self:
None
6109 def do_update(self, arg0):
6110 """do_update(OptimizerState self, unsigned int arg0)"""
6111 return _IMP_kernel.OptimizerState_do_update(self, arg0)
6114 def do_set_is_optimizing(self, arg0):
6115 """do_set_is_optimizing(OptimizerState self, bool arg0)"""
6116 return _IMP_kernel.OptimizerState_do_set_is_optimizing(self, arg0)
6119 def do_get_inputs(self):
6120 """do_get_inputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
6121 return _IMP_kernel.OptimizerState_do_get_inputs(self)
6124 def do_get_outputs(self):
6125 """do_get_outputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
6126 return _IMP_kernel.OptimizerState_do_get_outputs(self)
6130 """__str__(OptimizerState self) -> std::string"""
6131 return _IMP_kernel.OptimizerState___str__(self)
6135 """__repr__(OptimizerState self) -> std::string"""
6136 return _IMP_kernel.OptimizerState___repr__(self)
6141 return _object_cast_to_OptimizerState(o)
6144 def get_type_name(self):
6145 return self.__class__.__name__
6146 def do_show(self, out):
6148 def get_version_info(self):
6150 return VersionInfo(self.__module__,
6157 return _object_cast_to_OptimizerState(o)
6159 def __disown__(self):
6161 _IMP_kernel.disown_OptimizerState(self)
6162 return weakref_proxy(self)
6164 def do_destroy(self):
6165 """do_destroy(OptimizerState self)"""
6166 return _IMP_kernel.OptimizerState_do_destroy(self)
6169 def handle_set_has_required_score_states(self, arg0):
6170 """handle_set_has_required_score_states(OptimizerState self, bool arg0)"""
6171 return _IMP_kernel.OptimizerState_handle_set_has_required_score_states(self, arg0)
6174 def do_get_interactions(self):
6175 """do_get_interactions(OptimizerState self) -> IMP::ModelObjectsTemps"""
6176 return _IMP_kernel.OptimizerState_do_get_interactions(self)
6178 OptimizerState_swigregister = _IMP_kernel.OptimizerState_swigregister
6179 OptimizerState_swigregister(OptimizerState)
6181 class Refiner(_ParticleInputs, Object):
6182 """Proxy of C++ IMP::Refiner class."""
6184 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6186 def __init__(self, *args):
6188 __init__(IMP::Refiner self, std::string name, bool is_by_ref=False) -> Refiner
6189 __init__(IMP::Refiner self, std::string name) -> Refiner
6190 __init__(IMP::Refiner self) -> Refiner
6192 if self.__class__ == Refiner:
6196 this = _IMP_kernel.new_Refiner(_self, *args)
6198 self.this.append(this)
6199 except __builtin__.Exception:
6202 if self.__class__ != Refiner:
6203 _director_objects.register(self)
6208 def get_can_refine(self, arg0):
6209 """get_can_refine(Refiner self, Particle arg0) -> bool"""
6210 return _IMP_kernel.Refiner_get_can_refine(self, arg0)
6213 def get_refined_indexes(self, m, pi):
6214 """get_refined_indexes(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes"""
6215 return _IMP_kernel.Refiner_get_refined_indexes(self, m, pi)
6218 def get_refined_indexes_by_ref(self, m, pi):
6219 """get_refined_indexes_by_ref(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes const &"""
6220 return _IMP_kernel.Refiner_get_refined_indexes_by_ref(self, m, pi)
6223 def get_is_by_ref_supported(self):
6224 """get_is_by_ref_supported(Refiner self) -> bool"""
6225 return _IMP_kernel.Refiner_get_is_by_ref_supported(self)
6228 def get_refined(self, *args):
6230 get_refined(Refiner self, Particle a) -> IMP::ParticlesTemp const
6231 get_refined(Refiner self, Particle a, unsigned int i) -> Particle
6233 return _IMP_kernel.Refiner_get_refined(self, *args)
6236 def get_number_of_refined(self, a):
6237 """get_number_of_refined(Refiner self, Particle a) -> unsigned int"""
6238 return _IMP_kernel.Refiner_get_number_of_refined(self, a)
6242 """__str__(Refiner self) -> std::string"""
6243 return _IMP_kernel.Refiner___str__(self)
6247 """__repr__(Refiner self) -> std::string"""
6248 return _IMP_kernel.Refiner___repr__(self)
6253 return _object_cast_to_Refiner(o)
6256 def get_type_name(self):
6257 return self.__class__.__name__
6258 def do_show(self, out):
6260 def get_version_info(self):
6262 return VersionInfo(self.__module__,
6269 return _object_cast_to_Refiner(o)
6271 __swig_destroy__ = _IMP_kernel.delete_Refiner
6272 __del__ =
lambda self:
None
6273 def __disown__(self):
6275 _IMP_kernel.disown_Refiner(self)
6276 return weakref_proxy(self)
6278 def do_get_inputs(self, m, pis):
6279 """do_get_inputs(Refiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6280 return _IMP_kernel.Refiner_do_get_inputs(self, m, pis)
6283 def do_destroy(self):
6284 """do_destroy(Refiner self)"""
6285 return _IMP_kernel.Refiner_do_destroy(self)
6287 Refiner_swigregister = _IMP_kernel.Refiner_swigregister
6288 Refiner_swigregister(Refiner)
6290 class Optimizer(ModelObject):
6291 """Proxy of C++ IMP::Optimizer class."""
6293 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6295 def set_is_optimizing_states(self, tf):
6296 """set_is_optimizing_states(Optimizer self, bool tf)"""
6297 return _IMP_kernel.Optimizer_set_is_optimizing_states(self, tf)
6300 def get_optimizer_state_inputs(self):
6301 """get_optimizer_state_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
6302 return _IMP_kernel.Optimizer_get_optimizer_state_inputs(self)
6305 def do_get_inputs(self):
6306 """do_get_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
6307 return _IMP_kernel.Optimizer_do_get_inputs(self)
6310 def do_get_outputs(self):
6311 """do_get_outputs(Optimizer self) -> IMP::ModelObjectsTemp"""
6312 return _IMP_kernel.Optimizer_do_get_outputs(self)
6315 def __init__(self, *args):
6317 __init__(IMP::Optimizer self, Model m, std::string name) -> Optimizer
6318 __init__(IMP::Optimizer self, Model m) -> Optimizer
6320 if self.__class__ == Optimizer:
6324 this = _IMP_kernel.new_Optimizer(_self, *args)
6326 self.this.append(this)
6327 except __builtin__.Exception:
6330 if self.__class__ != Optimizer:
6331 _director_objects.register(self)
6336 def optimize(self, max_steps):
6337 """optimize(Optimizer self, unsigned int max_steps) -> double"""
6338 return _IMP_kernel.Optimizer_optimize(self, max_steps)
6341 def set_stop_on_good_score(self, tf):
6342 """set_stop_on_good_score(Optimizer self, bool tf)"""
6343 return _IMP_kernel.Optimizer_set_stop_on_good_score(self, tf)
6346 def get_stop_on_good_score(self):
6347 """get_stop_on_good_score(Optimizer self) -> bool"""
6348 return _IMP_kernel.Optimizer_get_stop_on_good_score(self)
6351 def get_last_score(self):
6352 """get_last_score(Optimizer self) -> double"""
6353 return _IMP_kernel.Optimizer_get_last_score(self)
6356 def get_scoring_function(self):
6357 """get_scoring_function(Optimizer self) -> ScoringFunction"""
6358 return _IMP_kernel.Optimizer_get_scoring_function(self)
6361 def remove_optimizer_state(self, d):
6362 """remove_optimizer_state(Optimizer self, OptimizerState d)"""
6363 return _IMP_kernel.Optimizer_remove_optimizer_state(self, d)
6366 def remove_optimizer_states(self, d):
6367 """remove_optimizer_states(Optimizer self, IMP::OptimizerStates const & d)"""
6368 return _IMP_kernel.Optimizer_remove_optimizer_states(self, d)
6371 def set_optimizer_states(self, ps):
6372 """set_optimizer_states(Optimizer self, IMP::OptimizerStates const & ps)"""
6373 return _IMP_kernel.Optimizer_set_optimizer_states(self, ps)
6376 def set_optimizer_states_order(self, objs):
6377 """set_optimizer_states_order(Optimizer self, IMP::OptimizerStates const & objs)"""
6378 return _IMP_kernel.Optimizer_set_optimizer_states_order(self, objs)
6381 def add_optimizer_state(self, obj):
6382 """add_optimizer_state(Optimizer self, OptimizerState obj) -> unsigned int"""
6383 return _IMP_kernel.Optimizer_add_optimizer_state(self, obj)
6386 def add_optimizer_states(self, objs):
6387 """add_optimizer_states(Optimizer self, IMP::OptimizerStates const & objs)"""
6388 return _IMP_kernel.Optimizer_add_optimizer_states(self, objs)
6391 def clear_optimizer_states(self):
6392 """clear_optimizer_states(Optimizer self)"""
6393 return _IMP_kernel.Optimizer_clear_optimizer_states(self)
6396 def get_number_of_optimizer_states(self):
6397 """get_number_of_optimizer_states(Optimizer self) -> unsigned int"""
6398 return _IMP_kernel.Optimizer_get_number_of_optimizer_states(self)
6401 def get_has_optimizer_states(self):
6402 """get_has_optimizer_states(Optimizer self) -> bool"""
6403 return _IMP_kernel.Optimizer_get_has_optimizer_states(self)
6406 def get_optimizer_state(self, i):
6407 """get_optimizer_state(Optimizer self, unsigned int i) -> OptimizerState"""
6408 return _IMP_kernel.Optimizer_get_optimizer_state(self, i)
6411 def get_optimizer_states(self):
6412 """get_optimizer_states(Optimizer self) -> IMP::OptimizerStates"""
6413 return _IMP_kernel.Optimizer_get_optimizer_states(self)
6416 def reserve_optimizer_states(self, sz):
6417 """reserve_optimizer_states(Optimizer self, unsigned int sz)"""
6418 return _IMP_kernel.Optimizer_reserve_optimizer_states(self, sz)
6421 def set_scoring_function(self, sf):
6422 """set_scoring_function(Optimizer self, _ScoringFunctionAdaptor sf)"""
6423 return _IMP_kernel.Optimizer_set_scoring_function(self, sf)
6425 __swig_destroy__ = _IMP_kernel.delete_Optimizer
6427 """__del__(IMP::Optimizer self)"""
6429 _director_objects.cleanup()
6435 def do_optimize(self, ns):
6436 """do_optimize(Optimizer self, unsigned int ns) -> double"""
6437 return _IMP_kernel.Optimizer_do_optimize(self, ns)
6440 def update_states(self):
6441 """update_states(Optimizer self)"""
6442 return _IMP_kernel.Optimizer_update_states(self)
6446 """__str__(Optimizer self) -> std::string"""
6447 return _IMP_kernel.Optimizer___str__(self)
6451 """__repr__(Optimizer self) -> std::string"""
6452 return _IMP_kernel.Optimizer___repr__(self)
6457 return _object_cast_to_Optimizer(o)
6460 def get_type_name(self):
6461 return self.__class__.__name__
6462 def do_show(self, out):
6464 def get_version_info(self):
6466 return VersionInfo(self.__module__,
6473 return _object_cast_to_Optimizer(o)
6475 def __disown__(self):
6477 _IMP_kernel.disown_Optimizer(self)
6478 return weakref_proxy(self)
6480 def do_destroy(self):
6481 """do_destroy(Optimizer self)"""
6482 return _IMP_kernel.Optimizer_do_destroy(self)
6485 def handle_set_has_required_score_states(self, arg0):
6486 """handle_set_has_required_score_states(Optimizer self, bool arg0)"""
6487 return _IMP_kernel.Optimizer_handle_set_has_required_score_states(self, arg0)
6490 def do_get_interactions(self):
6491 """do_get_interactions(Optimizer self) -> IMP::ModelObjectsTemps"""
6492 return _IMP_kernel.Optimizer_do_get_interactions(self)
6494 Optimizer_swigregister = _IMP_kernel.Optimizer_swigregister
6495 Optimizer_swigregister(Optimizer)
6497 class AttributeOptimizer(Optimizer):
6498 """Proxy of C++ IMP::AttributeOptimizer class."""
6500 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6502 def __init__(self, *args):
6504 __init__(IMP::AttributeOptimizer self, Model m, std::string name) -> AttributeOptimizer
6505 __init__(IMP::AttributeOptimizer self, Model m) -> AttributeOptimizer
6507 if self.__class__ == AttributeOptimizer:
6511 this = _IMP_kernel.new_AttributeOptimizer(_self, *args)
6513 self.this.append(this)
6514 except __builtin__.Exception:
6517 if self.__class__ != AttributeOptimizer:
6518 _director_objects.register(self)
6523 def get_optimized_attributes(self):
6524 """get_optimized_attributes(AttributeOptimizer self) -> IMP::FloatIndexes"""
6525 return _IMP_kernel.AttributeOptimizer_get_optimized_attributes(self)
6528 def set_value(self, fi, v):
6529 """set_value(AttributeOptimizer self, FloatIndex fi, double v)"""
6530 return _IMP_kernel.AttributeOptimizer_set_value(self, fi, v)
6533 def get_value(self, fi):
6534 """get_value(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
6535 return _IMP_kernel.AttributeOptimizer_get_value(self, fi)
6538 def get_derivative(self, fi):
6539 """get_derivative(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
6540 return _IMP_kernel.AttributeOptimizer_get_derivative(self, fi)
6543 def get_width(self, k):
6544 """get_width(AttributeOptimizer self, FloatKey k) -> double"""
6545 return _IMP_kernel.AttributeOptimizer_get_width(self, k)
6548 def set_scaled_value(self, fi, v):
6549 """set_scaled_value(AttributeOptimizer self, FloatIndex fi, IMP::Float v)"""
6550 return _IMP_kernel.AttributeOptimizer_set_scaled_value(self, fi, v)
6553 def get_scaled_value(self, fi):
6554 """get_scaled_value(AttributeOptimizer self, FloatIndex fi) -> double"""
6555 return _IMP_kernel.AttributeOptimizer_get_scaled_value(self, fi)
6558 def get_scaled_derivative(self, fi):
6559 """get_scaled_derivative(AttributeOptimizer self, FloatIndex fi) -> double"""
6560 return _IMP_kernel.AttributeOptimizer_get_scaled_derivative(self, fi)
6563 def clear_range_cache(self):
6564 """clear_range_cache(AttributeOptimizer self)"""
6565 return _IMP_kernel.AttributeOptimizer_clear_range_cache(self)
6569 """__str__(AttributeOptimizer self) -> std::string"""
6570 return _IMP_kernel.AttributeOptimizer___str__(self)
6574 """__repr__(AttributeOptimizer self) -> std::string"""
6575 return _IMP_kernel.AttributeOptimizer___repr__(self)
6580 return _object_cast_to_AttributeOptimizer(o)
6583 def get_type_name(self):
6584 return self.__class__.__name__
6585 def do_show(self, out):
6587 def get_version_info(self):
6589 return VersionInfo(self.__module__,
6596 return _object_cast_to_AttributeOptimizer(o)
6598 __swig_destroy__ = _IMP_kernel.delete_AttributeOptimizer
6599 __del__ =
lambda self:
None
6600 def __disown__(self):
6602 _IMP_kernel.disown_AttributeOptimizer(self)
6603 return weakref_proxy(self)
6605 def do_destroy(self):
6606 """do_destroy(AttributeOptimizer self)"""
6607 return _IMP_kernel.AttributeOptimizer_do_destroy(self)
6610 def handle_set_has_required_score_states(self, arg0):
6611 """handle_set_has_required_score_states(AttributeOptimizer self, bool arg0)"""
6612 return _IMP_kernel.AttributeOptimizer_handle_set_has_required_score_states(self, arg0)
6615 def do_get_inputs(self):
6616 """do_get_inputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
6617 return _IMP_kernel.AttributeOptimizer_do_get_inputs(self)
6620 def do_get_outputs(self):
6621 """do_get_outputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
6622 return _IMP_kernel.AttributeOptimizer_do_get_outputs(self)
6625 def do_get_interactions(self):
6626 """do_get_interactions(AttributeOptimizer self) -> IMP::ModelObjectsTemps"""
6627 return _IMP_kernel.AttributeOptimizer_do_get_interactions(self)
6630 def do_optimize(self, ns):
6631 """do_optimize(AttributeOptimizer self, unsigned int ns) -> double"""
6632 return _IMP_kernel.AttributeOptimizer_do_optimize(self, ns)
6634 AttributeOptimizer_swigregister = _IMP_kernel.AttributeOptimizer_swigregister
6635 AttributeOptimizer_swigregister(AttributeOptimizer)
6637 class ConfigurationSet(Object):
6638 """Proxy of C++ IMP::ConfigurationSet class."""
6640 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6642 def __init__(self, *args):
6644 __init__(IMP::ConfigurationSet self, Model m, std::string name) -> ConfigurationSet
6645 __init__(IMP::ConfigurationSet self, Model m) -> ConfigurationSet
6647 this = _IMP_kernel.new_ConfigurationSet(*args)
6649 self.this.append(this)
6650 except __builtin__.Exception:
6653 def save_configuration(self):
6654 """save_configuration(ConfigurationSet self)"""
6655 return _IMP_kernel.ConfigurationSet_save_configuration(self)
6658 def get_number_of_configurations(self):
6659 """get_number_of_configurations(ConfigurationSet self) -> unsigned int"""
6660 return _IMP_kernel.ConfigurationSet_get_number_of_configurations(self)
6663 def load_configuration(self, i):
6664 """load_configuration(ConfigurationSet self, int i)"""
6665 return _IMP_kernel.ConfigurationSet_load_configuration(self, i)
6668 def remove_configuration(self, i):
6669 """remove_configuration(ConfigurationSet self, unsigned int i)"""
6670 return _IMP_kernel.ConfigurationSet_remove_configuration(self, i)
6673 def get_model(self):
6674 """get_model(ConfigurationSet self) -> Model"""
6675 return _IMP_kernel.ConfigurationSet_get_model(self)
6678 def get_version_info(self):
6679 """get_version_info(ConfigurationSet self) -> VersionInfo"""
6680 return _IMP_kernel.ConfigurationSet_get_version_info(self)
6684 """__str__(ConfigurationSet self) -> std::string"""
6685 return _IMP_kernel.ConfigurationSet___str__(self)
6689 """__repr__(ConfigurationSet self) -> std::string"""
6690 return _IMP_kernel.ConfigurationSet___repr__(self)
6695 return _object_cast_to_ConfigurationSet(o)
6697 ConfigurationSet_swigregister = _IMP_kernel.ConfigurationSet_swigregister
6698 ConfigurationSet_swigregister(ConfigurationSet)
6700 class SaveToConfigurationSetOptimizerState(OptimizerState):
6701 """Proxy of C++ IMP::SaveToConfigurationSetOptimizerState class."""
6703 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6705 def __init__(self, cs):
6706 """__init__(IMP::SaveToConfigurationSetOptimizerState self, ConfigurationSet cs) -> SaveToConfigurationSetOptimizerState"""
6707 this = _IMP_kernel.new_SaveToConfigurationSetOptimizerState(cs)
6709 self.this.append(this)
6710 except __builtin__.Exception:
6713 def get_version_info(self):
6714 """get_version_info(SaveToConfigurationSetOptimizerState self) -> VersionInfo"""
6715 return _IMP_kernel.SaveToConfigurationSetOptimizerState_get_version_info(self)
6719 """__str__(SaveToConfigurationSetOptimizerState self) -> std::string"""
6720 return _IMP_kernel.SaveToConfigurationSetOptimizerState___str__(self)
6724 """__repr__(SaveToConfigurationSetOptimizerState self) -> std::string"""
6725 return _IMP_kernel.SaveToConfigurationSetOptimizerState___repr__(self)
6730 return _object_cast_to_SaveToConfigurationSetOptimizerState(o)
6732 SaveToConfigurationSetOptimizerState_swigregister = _IMP_kernel.SaveToConfigurationSetOptimizerState_swigregister
6733 SaveToConfigurationSetOptimizerState_swigregister(SaveToConfigurationSetOptimizerState)
6735 class Configuration(Object):
6736 """Proxy of C++ IMP::Configuration class."""
6738 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6740 def __init__(self, *args):
6742 __init__(IMP::Configuration self, Model m, std::string name) -> Configuration
6743 __init__(IMP::Configuration self, Model m) -> Configuration
6744 __init__(IMP::Configuration self, Model m, Configuration base, std::string name) -> Configuration
6745 __init__(IMP::Configuration self, Model m, Configuration base) -> Configuration
6747 this = _IMP_kernel.new_Configuration(*args)
6749 self.this.append(this)
6750 except __builtin__.Exception:
6753 def load_configuration(self):
6754 """load_configuration(Configuration self)"""
6755 return _IMP_kernel.Configuration_load_configuration(self)
6758 def swap_configuration(self):
6759 """swap_configuration(Configuration self)"""
6760 return _IMP_kernel.Configuration_swap_configuration(self)
6763 def get_version_info(self):
6764 """get_version_info(Configuration self) -> VersionInfo"""
6765 return _IMP_kernel.Configuration_get_version_info(self)
6769 """__str__(Configuration self) -> std::string"""
6770 return _IMP_kernel.Configuration___str__(self)
6774 """__repr__(Configuration self) -> std::string"""
6775 return _IMP_kernel.Configuration___repr__(self)
6780 return _object_cast_to_Configuration(o)
6782 Configuration_swigregister = _IMP_kernel.Configuration_swigregister
6783 Configuration_swigregister(Configuration)
6785 class Sampler(Object):
6786 """Proxy of C++ IMP::Sampler class."""
6788 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6790 def __init__(self, *args):
6792 __init__(IMP::Sampler self, Model m, std::string name) -> Sampler
6793 __init__(IMP::Sampler self, Model m) -> Sampler
6795 if self.__class__ == Sampler:
6799 this = _IMP_kernel.new_Sampler(_self, *args)
6801 self.this.append(this)
6802 except __builtin__.Exception:
6805 if self.__class__ != Sampler:
6806 _director_objects.register(self)
6811 def create_sample(self):
6812 """create_sample(Sampler self) -> ConfigurationSet"""
6813 return _IMP_kernel.Sampler_create_sample(self)
6816 def get_scoring_function(self):
6817 """get_scoring_function(Sampler self) -> ScoringFunction"""
6818 return _IMP_kernel.Sampler_get_scoring_function(self)
6821 def set_scoring_function(self, sf):
6822 """set_scoring_function(Sampler self, _ScoringFunctionAdaptor sf)"""
6823 return _IMP_kernel.Sampler_set_scoring_function(self, sf)
6826 def get_model(self):
6827 """get_model(Sampler self) -> Model"""
6828 return _IMP_kernel.Sampler_get_model(self)
6831 def do_sample(self):
6832 """do_sample(Sampler self) -> ConfigurationSet"""
6833 return _IMP_kernel.Sampler_do_sample(self)
6835 __swig_destroy__ = _IMP_kernel.delete_Sampler
6836 __del__ =
lambda self:
None
6839 """__str__(Sampler self) -> std::string"""
6840 return _IMP_kernel.Sampler___str__(self)
6844 """__repr__(Sampler self) -> std::string"""
6845 return _IMP_kernel.Sampler___repr__(self)
6850 return _object_cast_to_Sampler(o)
6853 def get_type_name(self):
6854 return self.__class__.__name__
6855 def do_show(self, out):
6857 def get_version_info(self):
6859 return VersionInfo(self.__module__,
6866 return _object_cast_to_Sampler(o)
6868 def __disown__(self):
6870 _IMP_kernel.disown_Sampler(self)
6871 return weakref_proxy(self)
6873 def do_destroy(self):
6874 """do_destroy(Sampler self)"""
6875 return _IMP_kernel.Sampler_do_destroy(self)
6877 Sampler_swigregister = _IMP_kernel.Sampler_swigregister
6878 Sampler_swigregister(Sampler)
6880 class PairModifier(_ParticleInputs, _ParticleOutputs, Object):
6881 """Proxy of C++ IMP::PairModifier class."""
6883 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6885 def __init__(self, *args):
6887 __init__(IMP::PairModifier self, std::string name) -> PairModifier
6888 __init__(IMP::PairModifier self) -> PairModifier
6890 if self.__class__ == PairModifier:
6894 this = _IMP_kernel.new_PairModifier(_self, *args)
6896 self.this.append(this)
6897 except __builtin__.Exception:
6900 if self.__class__ != PairModifier:
6901 _director_objects.register(self)
6906 def apply_index(self, m, v):
6907 """apply_index(PairModifier self, Model m, IMP::ParticleIndexPair const & v)"""
6908 return _IMP_kernel.PairModifier_apply_index(self, m, v)
6911 def apply_indexes(self, m, o, lower_bound, upper_bound):
6912 """apply_indexes(PairModifier self, Model m, IMP::ParticleIndexPairs const & o, unsigned int lower_bound, unsigned int upper_bound)"""
6913 return _IMP_kernel.PairModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
6917 """__str__(PairModifier self) -> std::string"""
6918 return _IMP_kernel.PairModifier___str__(self)
6922 """__repr__(PairModifier self) -> std::string"""
6923 return _IMP_kernel.PairModifier___repr__(self)
6928 return _object_cast_to_PairModifier(o)
6931 def get_type_name(self):
6932 return self.__class__.__name__
6933 def do_show(self, out):
6935 def get_version_info(self):
6937 return VersionInfo(self.__module__,
6944 return _object_cast_to_PairModifier(o)
6946 __swig_destroy__ = _IMP_kernel.delete_PairModifier
6947 __del__ =
lambda self:
None
6948 def __disown__(self):
6950 _IMP_kernel.disown_PairModifier(self)
6951 return weakref_proxy(self)
6953 def do_get_inputs(self, m, pis):
6954 """do_get_inputs(PairModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6955 return _IMP_kernel.PairModifier_do_get_inputs(self, m, pis)
6958 def do_get_outputs(self, m, pis):
6959 """do_get_outputs(PairModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6960 return _IMP_kernel.PairModifier_do_get_outputs(self, m, pis)
6963 def do_destroy(self):
6964 """do_destroy(PairModifier self)"""
6965 return _IMP_kernel.PairModifier_do_destroy(self)
6967 PairModifier_swigregister = _IMP_kernel.PairModifier_swigregister
6968 PairModifier_swigregister(PairModifier)
6970 class PairScore(_ParticleInputs, Object):
6971 """Proxy of C++ IMP::PairScore class."""
6973 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
6975 def __init__(self, *args):
6977 __init__(IMP::PairScore self, std::string name) -> PairScore
6978 __init__(IMP::PairScore self) -> PairScore
6980 if self.__class__ == PairScore:
6984 this = _IMP_kernel.new_PairScore(_self, *args)
6986 self.this.append(this)
6987 except __builtin__.Exception:
6990 if self.__class__ != PairScore:
6991 _director_objects.register(self)
6996 def evaluate_index(self, m, vt, da):
6997 """evaluate_index(PairScore self, Model m, IMP::ParticleIndexPair const & vt, DerivativeAccumulator da) -> double"""
6998 return _IMP_kernel.PairScore_evaluate_index(self, m, vt, da)
7001 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
7002 """evaluate_indexes(PairScore self, Model m, IMP::ParticleIndexPairs const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7003 return _IMP_kernel.PairScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
7006 def evaluate_if_good_index(self, m, vt, da, max):
7007 """evaluate_if_good_index(PairScore self, Model m, IMP::ParticleIndexPair const & vt, DerivativeAccumulator da, double max) -> double"""
7008 return _IMP_kernel.PairScore_evaluate_if_good_index(self, m, vt, da, max)
7011 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
7012 """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"""
7013 return _IMP_kernel.PairScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
7016 def create_current_decomposition(self, m, vt):
7017 """create_current_decomposition(PairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
7018 return _IMP_kernel.PairScore_create_current_decomposition(self, m, vt)
7021 def do_create_current_decomposition(self, m, vt):
7022 """do_create_current_decomposition(PairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
7023 return _IMP_kernel.PairScore_do_create_current_decomposition(self, m, vt)
7025 __swig_destroy__ = _IMP_kernel.delete_PairScore
7026 __del__ =
lambda self:
None
7029 """__str__(PairScore self) -> std::string"""
7030 return _IMP_kernel.PairScore___str__(self)
7034 """__repr__(PairScore self) -> std::string"""
7035 return _IMP_kernel.PairScore___repr__(self)
7040 return _object_cast_to_PairScore(o)
7043 def get_type_name(self):
7044 return self.__class__.__name__
7045 def do_show(self, out):
7047 def get_version_info(self):
7049 return VersionInfo(self.__module__,
7056 return _object_cast_to_PairScore(o)
7058 def __disown__(self):
7060 _IMP_kernel.disown_PairScore(self)
7061 return weakref_proxy(self)
7063 def do_get_inputs(self, m, pis):
7064 """do_get_inputs(PairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7065 return _IMP_kernel.PairScore_do_get_inputs(self, m, pis)
7068 def do_destroy(self):
7069 """do_destroy(PairScore self)"""
7070 return _IMP_kernel.PairScore_do_destroy(self)
7072 PairScore_swigregister = _IMP_kernel.PairScore_swigregister
7073 PairScore_swigregister(PairScore)
7075 class PairPredicate(_ParticleInputs, Object):
7076 """Proxy of C++ IMP::PairPredicate class."""
7078 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7080 def __init__(self, *args):
7082 __init__(IMP::PairPredicate self, std::string name) -> PairPredicate
7083 __init__(IMP::PairPredicate self) -> PairPredicate
7085 if self.__class__ == PairPredicate:
7089 this = _IMP_kernel.new_PairPredicate(_self, *args)
7091 self.this.append(this)
7092 except __builtin__.Exception:
7095 if self.__class__ != PairPredicate:
7096 _director_objects.register(self)
7101 def get_value(self, *args):
7103 get_value(PairPredicate self, IMP::ParticlePair const & vt) -> int
7104 get_value(PairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
7106 return _IMP_kernel.PairPredicate_get_value(self, *args)
7109 def setup_for_get_value_index_in_batch(self, arg0):
7110 """setup_for_get_value_index_in_batch(PairPredicate self, Model arg0)"""
7111 return _IMP_kernel.PairPredicate_setup_for_get_value_index_in_batch(self, arg0)
7114 def get_value_index_in_batch(self, m, vt):
7115 """get_value_index_in_batch(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int"""
7116 return _IMP_kernel.PairPredicate_get_value_index_in_batch(self, m, vt)
7119 def __call__(self, m, vt):
7120 """__call__(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int"""
7121 return _IMP_kernel.PairPredicate___call__(self, m, vt)
7124 def get_value_index(self, *args):
7126 get_value_index(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int
7127 get_value_index(PairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
7129 return _IMP_kernel.PairPredicate_get_value_index(self, *args)
7131 __swig_destroy__ = _IMP_kernel.delete_PairPredicate
7132 __del__ =
lambda self:
None
7135 """__str__(PairPredicate self) -> std::string"""
7136 return _IMP_kernel.PairPredicate___str__(self)
7140 """__repr__(PairPredicate self) -> std::string"""
7141 return _IMP_kernel.PairPredicate___repr__(self)
7146 return _object_cast_to_PairPredicate(o)
7149 def get_type_name(self):
7150 return self.__class__.__name__
7151 def do_show(self, out):
7153 def get_version_info(self):
7155 return VersionInfo(self.__module__,
7162 return _object_cast_to_PairPredicate(o)
7164 def __disown__(self):
7166 _IMP_kernel.disown_PairPredicate(self)
7167 return weakref_proxy(self)
7169 def do_get_inputs(self, m, pis):
7170 """do_get_inputs(PairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7171 return _IMP_kernel.PairPredicate_do_get_inputs(self, m, pis)
7174 def do_destroy(self):
7175 """do_destroy(PairPredicate self)"""
7176 return _IMP_kernel.PairPredicate_do_destroy(self)
7178 PairPredicate_swigregister = _IMP_kernel.PairPredicate_swigregister
7179 PairPredicate_swigregister(PairPredicate)
7181 class PairContainer(Container):
7182 """Proxy of C++ IMP::PairContainer class."""
7184 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7186 def apply_generic(self, m):
7187 """apply_generic(PairContainer self, PairModifier m)"""
7188 return _IMP_kernel.PairContainer_apply_generic(self, m)
7191 def apply(self, sm):
7192 """apply(PairContainer self, PairModifier sm)"""
7193 return _IMP_kernel.PairContainer_apply(self, sm)
7196 def get_range_indexes(self):
7197 """get_range_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
7198 return _IMP_kernel.PairContainer_get_range_indexes(self)
7201 def get_contents(self):
7202 """get_contents(PairContainer self) -> IMP::ParticleIndexPairs const &"""
7203 return _IMP_kernel.PairContainer_get_contents(self)
7207 """get_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
7208 return _IMP_kernel.PairContainer_get_indexes(self)
7211 def get(self, *args):
7213 get(PairContainer self) -> IMP::ParticlePairsTemp
7214 get(PairContainer self, unsigned int i) -> IMP::ParticlePair
7216 return _IMP_kernel.PairContainer_get(self, *args)
7219 def get_number(self):
7220 """get_number(PairContainer self) -> unsigned int"""
7221 return _IMP_kernel.PairContainer_get_number(self)
7224 def get_particle_pairs(self):
7225 """get_particle_pairs(PairContainer self) -> IMP::ParticlePairsTemp"""
7226 return _IMP_kernel.PairContainer_get_particle_pairs(self)
7229 def get_particle_pair(self, i):
7230 """get_particle_pair(PairContainer self, unsigned int i) -> IMP::ParticlePair"""
7231 return _IMP_kernel.PairContainer_get_particle_pair(self, i)
7234 def __init__(self, *args):
7236 __init__(IMP::PairContainer self, Model m, std::string name) -> PairContainer
7237 __init__(IMP::PairContainer self, Model m) -> PairContainer
7239 if self.__class__ == PairContainer:
7243 this = _IMP_kernel.new_PairContainer(_self, *args)
7245 self.this.append(this)
7246 except __builtin__.Exception:
7249 if self.__class__ != PairContainer:
7250 _director_objects.register(self)
7255 def do_apply(self, sm):
7256 """do_apply(PairContainer self, PairModifier sm)"""
7257 return _IMP_kernel.PairContainer_do_apply(self, sm)
7260 def do_get_provides_access(self):
7261 """do_get_provides_access(PairContainer self) -> bool"""
7262 return _IMP_kernel.PairContainer_do_get_provides_access(self)
7264 __swig_destroy__ = _IMP_kernel.delete_PairContainer
7265 __del__ =
lambda self:
None
7268 """__str__(PairContainer self) -> std::string"""
7269 return _IMP_kernel.PairContainer___str__(self)
7273 """__repr__(PairContainer self) -> std::string"""
7274 return _IMP_kernel.PairContainer___repr__(self)
7279 return _object_cast_to_PairContainer(o)
7282 def get_type_name(self):
7283 return self.__class__.__name__
7284 def do_show(self, out):
7286 def get_version_info(self):
7288 return VersionInfo(self.__module__,
7295 return _object_cast_to_PairContainer(o)
7297 def __disown__(self):
7299 _IMP_kernel.disown_PairContainer(self)
7300 return weakref_proxy(self)
7302 def do_destroy(self):
7303 """do_destroy(PairContainer self)"""
7304 return _IMP_kernel.PairContainer_do_destroy(self)
7307 def handle_set_has_required_score_states(self, arg0):
7308 """handle_set_has_required_score_states(PairContainer self, bool arg0)"""
7309 return _IMP_kernel.PairContainer_handle_set_has_required_score_states(self, arg0)
7312 def do_get_inputs(self):
7313 """do_get_inputs(PairContainer self) -> IMP::ModelObjectsTemp"""
7314 return _IMP_kernel.PairContainer_do_get_inputs(self)
7317 def do_get_interactions(self):
7318 """do_get_interactions(PairContainer self) -> IMP::ModelObjectsTemps"""
7319 return _IMP_kernel.PairContainer_do_get_interactions(self)
7322 def do_get_contents_hash(self):
7323 """do_get_contents_hash(PairContainer self) -> std::size_t"""
7324 return _IMP_kernel.PairContainer_do_get_contents_hash(self)
7326 PairContainer_swigregister = _IMP_kernel.PairContainer_swigregister
7327 PairContainer_swigregister(PairContainer)
7329 class _PairContainerAdaptor(_InputAdaptor):
7330 """Proxy of C++ IMP::PairContainerAdaptor class."""
7332 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7333 __repr__ = _swig_repr
7335 def __init__(self, *args):
7337 __init__(IMP::PairContainerAdaptor self) -> _PairContainerAdaptor
7338 __init__(IMP::PairContainerAdaptor self, PairContainer c) -> _PairContainerAdaptor
7339 __init__(IMP::PairContainerAdaptor self, IMP::ParticlePairsTemp const & t) -> _PairContainerAdaptor
7341 this = _IMP_kernel.new__PairContainerAdaptor(*args)
7343 self.this.append(this)
7344 except __builtin__.Exception:
7347 def set_name_if_default(self, name):
7348 """set_name_if_default(_PairContainerAdaptor self, std::string name)"""
7349 return _IMP_kernel._PairContainerAdaptor_set_name_if_default(self, name)
7351 __swig_destroy__ = _IMP_kernel.delete__PairContainerAdaptor
7352 __del__ =
lambda self:
None
7353 _PairContainerAdaptor_swigregister = _IMP_kernel._PairContainerAdaptor_swigregister
7354 _PairContainerAdaptor_swigregister(_PairContainerAdaptor)
7356 class QuadModifier(_ParticleInputs, _ParticleOutputs, Object):
7357 """Proxy of C++ IMP::QuadModifier class."""
7359 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7361 def __init__(self, *args):
7363 __init__(IMP::QuadModifier self, std::string name) -> QuadModifier
7364 __init__(IMP::QuadModifier self) -> QuadModifier
7366 if self.__class__ == QuadModifier:
7370 this = _IMP_kernel.new_QuadModifier(_self, *args)
7372 self.this.append(this)
7373 except __builtin__.Exception:
7376 if self.__class__ != QuadModifier:
7377 _director_objects.register(self)
7382 def apply_index(self, m, v):
7383 """apply_index(QuadModifier self, Model m, IMP::ParticleIndexQuad const & v)"""
7384 return _IMP_kernel.QuadModifier_apply_index(self, m, v)
7387 def apply_indexes(self, m, o, lower_bound, upper_bound):
7388 """apply_indexes(QuadModifier self, Model m, IMP::ParticleIndexQuads const & o, unsigned int lower_bound, unsigned int upper_bound)"""
7389 return _IMP_kernel.QuadModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
7393 """__str__(QuadModifier self) -> std::string"""
7394 return _IMP_kernel.QuadModifier___str__(self)
7398 """__repr__(QuadModifier self) -> std::string"""
7399 return _IMP_kernel.QuadModifier___repr__(self)
7404 return _object_cast_to_QuadModifier(o)
7407 def get_type_name(self):
7408 return self.__class__.__name__
7409 def do_show(self, out):
7411 def get_version_info(self):
7413 return VersionInfo(self.__module__,
7420 return _object_cast_to_QuadModifier(o)
7422 __swig_destroy__ = _IMP_kernel.delete_QuadModifier
7423 __del__ =
lambda self:
None
7424 def __disown__(self):
7426 _IMP_kernel.disown_QuadModifier(self)
7427 return weakref_proxy(self)
7429 def do_get_inputs(self, m, pis):
7430 """do_get_inputs(QuadModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7431 return _IMP_kernel.QuadModifier_do_get_inputs(self, m, pis)
7434 def do_get_outputs(self, m, pis):
7435 """do_get_outputs(QuadModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7436 return _IMP_kernel.QuadModifier_do_get_outputs(self, m, pis)
7439 def do_destroy(self):
7440 """do_destroy(QuadModifier self)"""
7441 return _IMP_kernel.QuadModifier_do_destroy(self)
7443 QuadModifier_swigregister = _IMP_kernel.QuadModifier_swigregister
7444 QuadModifier_swigregister(QuadModifier)
7446 class QuadScore(_ParticleInputs, Object):
7447 """Proxy of C++ IMP::QuadScore class."""
7449 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7451 def __init__(self, *args):
7453 __init__(IMP::QuadScore self, std::string name) -> QuadScore
7454 __init__(IMP::QuadScore self) -> QuadScore
7456 if self.__class__ == QuadScore:
7460 this = _IMP_kernel.new_QuadScore(_self, *args)
7462 self.this.append(this)
7463 except __builtin__.Exception:
7466 if self.__class__ != QuadScore:
7467 _director_objects.register(self)
7472 def evaluate_index(self, m, vt, da):
7473 """evaluate_index(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt, DerivativeAccumulator da) -> double"""
7474 return _IMP_kernel.QuadScore_evaluate_index(self, m, vt, da)
7477 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
7478 """evaluate_indexes(QuadScore self, Model m, IMP::ParticleIndexQuads const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7479 return _IMP_kernel.QuadScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
7482 def evaluate_if_good_index(self, m, vt, da, max):
7483 """evaluate_if_good_index(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt, DerivativeAccumulator da, double max) -> double"""
7484 return _IMP_kernel.QuadScore_evaluate_if_good_index(self, m, vt, da, max)
7487 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
7488 """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"""
7489 return _IMP_kernel.QuadScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
7492 def create_current_decomposition(self, m, vt):
7493 """create_current_decomposition(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
7494 return _IMP_kernel.QuadScore_create_current_decomposition(self, m, vt)
7497 def do_create_current_decomposition(self, m, vt):
7498 """do_create_current_decomposition(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
7499 return _IMP_kernel.QuadScore_do_create_current_decomposition(self, m, vt)
7501 __swig_destroy__ = _IMP_kernel.delete_QuadScore
7502 __del__ =
lambda self:
None
7505 """__str__(QuadScore self) -> std::string"""
7506 return _IMP_kernel.QuadScore___str__(self)
7510 """__repr__(QuadScore self) -> std::string"""
7511 return _IMP_kernel.QuadScore___repr__(self)
7516 return _object_cast_to_QuadScore(o)
7519 def get_type_name(self):
7520 return self.__class__.__name__
7521 def do_show(self, out):
7523 def get_version_info(self):
7525 return VersionInfo(self.__module__,
7532 return _object_cast_to_QuadScore(o)
7534 def __disown__(self):
7536 _IMP_kernel.disown_QuadScore(self)
7537 return weakref_proxy(self)
7539 def do_get_inputs(self, m, pis):
7540 """do_get_inputs(QuadScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7541 return _IMP_kernel.QuadScore_do_get_inputs(self, m, pis)
7544 def do_destroy(self):
7545 """do_destroy(QuadScore self)"""
7546 return _IMP_kernel.QuadScore_do_destroy(self)
7548 QuadScore_swigregister = _IMP_kernel.QuadScore_swigregister
7549 QuadScore_swigregister(QuadScore)
7551 class QuadPredicate(_ParticleInputs, Object):
7552 """Proxy of C++ IMP::QuadPredicate class."""
7554 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7556 def __init__(self, *args):
7558 __init__(IMP::QuadPredicate self, std::string name) -> QuadPredicate
7559 __init__(IMP::QuadPredicate self) -> QuadPredicate
7561 if self.__class__ == QuadPredicate:
7565 this = _IMP_kernel.new_QuadPredicate(_self, *args)
7567 self.this.append(this)
7568 except __builtin__.Exception:
7571 if self.__class__ != QuadPredicate:
7572 _director_objects.register(self)
7577 def get_value(self, *args):
7579 get_value(QuadPredicate self, IMP::ParticleQuad const & vt) -> int
7580 get_value(QuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
7582 return _IMP_kernel.QuadPredicate_get_value(self, *args)
7585 def setup_for_get_value_index_in_batch(self, arg0):
7586 """setup_for_get_value_index_in_batch(QuadPredicate self, Model arg0)"""
7587 return _IMP_kernel.QuadPredicate_setup_for_get_value_index_in_batch(self, arg0)
7590 def get_value_index_in_batch(self, m, vt):
7591 """get_value_index_in_batch(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int"""
7592 return _IMP_kernel.QuadPredicate_get_value_index_in_batch(self, m, vt)
7595 def __call__(self, m, vt):
7596 """__call__(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int"""
7597 return _IMP_kernel.QuadPredicate___call__(self, m, vt)
7600 def get_value_index(self, *args):
7602 get_value_index(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int
7603 get_value_index(QuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
7605 return _IMP_kernel.QuadPredicate_get_value_index(self, *args)
7607 __swig_destroy__ = _IMP_kernel.delete_QuadPredicate
7608 __del__ =
lambda self:
None
7611 """__str__(QuadPredicate self) -> std::string"""
7612 return _IMP_kernel.QuadPredicate___str__(self)
7616 """__repr__(QuadPredicate self) -> std::string"""
7617 return _IMP_kernel.QuadPredicate___repr__(self)
7622 return _object_cast_to_QuadPredicate(o)
7625 def get_type_name(self):
7626 return self.__class__.__name__
7627 def do_show(self, out):
7629 def get_version_info(self):
7631 return VersionInfo(self.__module__,
7638 return _object_cast_to_QuadPredicate(o)
7640 def __disown__(self):
7642 _IMP_kernel.disown_QuadPredicate(self)
7643 return weakref_proxy(self)
7645 def do_get_inputs(self, m, pis):
7646 """do_get_inputs(QuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7647 return _IMP_kernel.QuadPredicate_do_get_inputs(self, m, pis)
7650 def do_destroy(self):
7651 """do_destroy(QuadPredicate self)"""
7652 return _IMP_kernel.QuadPredicate_do_destroy(self)
7654 QuadPredicate_swigregister = _IMP_kernel.QuadPredicate_swigregister
7655 QuadPredicate_swigregister(QuadPredicate)
7657 class QuadContainer(Container):
7658 """Proxy of C++ IMP::QuadContainer class."""
7660 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7662 def apply_generic(self, m):
7663 """apply_generic(QuadContainer self, QuadModifier m)"""
7664 return _IMP_kernel.QuadContainer_apply_generic(self, m)
7667 def apply(self, sm):
7668 """apply(QuadContainer self, QuadModifier sm)"""
7669 return _IMP_kernel.QuadContainer_apply(self, sm)
7672 def get_range_indexes(self):
7673 """get_range_indexes(QuadContainer self) -> IMP::ParticleIndexQuads"""
7674 return _IMP_kernel.QuadContainer_get_range_indexes(self)
7677 def get_contents(self):
7678 """get_contents(QuadContainer self) -> IMP::ParticleIndexQuads const &"""
7679 return _IMP_kernel.QuadContainer_get_contents(self)
7683 """get_indexes(QuadContainer self) -> IMP::ParticleIndexQuads"""
7684 return _IMP_kernel.QuadContainer_get_indexes(self)
7687 def get(self, *args):
7689 get(QuadContainer self) -> IMP::ParticleQuadsTemp
7690 get(QuadContainer self, unsigned int i) -> IMP::ParticleQuad
7692 return _IMP_kernel.QuadContainer_get(self, *args)
7695 def get_number(self):
7696 """get_number(QuadContainer self) -> unsigned int"""
7697 return _IMP_kernel.QuadContainer_get_number(self)
7700 def get_particle_quads(self):
7701 """get_particle_quads(QuadContainer self) -> IMP::ParticleQuadsTemp"""
7702 return _IMP_kernel.QuadContainer_get_particle_quads(self)
7705 def get_particle_quad(self, i):
7706 """get_particle_quad(QuadContainer self, unsigned int i) -> IMP::ParticleQuad"""
7707 return _IMP_kernel.QuadContainer_get_particle_quad(self, i)
7710 def __init__(self, *args):
7712 __init__(IMP::QuadContainer self, Model m, std::string name) -> QuadContainer
7713 __init__(IMP::QuadContainer self, Model m) -> QuadContainer
7715 if self.__class__ == QuadContainer:
7719 this = _IMP_kernel.new_QuadContainer(_self, *args)
7721 self.this.append(this)
7722 except __builtin__.Exception:
7725 if self.__class__ != QuadContainer:
7726 _director_objects.register(self)
7731 def do_apply(self, sm):
7732 """do_apply(QuadContainer self, QuadModifier sm)"""
7733 return _IMP_kernel.QuadContainer_do_apply(self, sm)
7736 def do_get_provides_access(self):
7737 """do_get_provides_access(QuadContainer self) -> bool"""
7738 return _IMP_kernel.QuadContainer_do_get_provides_access(self)
7740 __swig_destroy__ = _IMP_kernel.delete_QuadContainer
7741 __del__ =
lambda self:
None
7744 """__str__(QuadContainer self) -> std::string"""
7745 return _IMP_kernel.QuadContainer___str__(self)
7749 """__repr__(QuadContainer self) -> std::string"""
7750 return _IMP_kernel.QuadContainer___repr__(self)
7755 return _object_cast_to_QuadContainer(o)
7758 def get_type_name(self):
7759 return self.__class__.__name__
7760 def do_show(self, out):
7762 def get_version_info(self):
7764 return VersionInfo(self.__module__,
7771 return _object_cast_to_QuadContainer(o)
7773 def __disown__(self):
7775 _IMP_kernel.disown_QuadContainer(self)
7776 return weakref_proxy(self)
7778 def do_destroy(self):
7779 """do_destroy(QuadContainer self)"""
7780 return _IMP_kernel.QuadContainer_do_destroy(self)
7783 def handle_set_has_required_score_states(self, arg0):
7784 """handle_set_has_required_score_states(QuadContainer self, bool arg0)"""
7785 return _IMP_kernel.QuadContainer_handle_set_has_required_score_states(self, arg0)
7788 def do_get_inputs(self):
7789 """do_get_inputs(QuadContainer self) -> IMP::ModelObjectsTemp"""
7790 return _IMP_kernel.QuadContainer_do_get_inputs(self)
7793 def do_get_interactions(self):
7794 """do_get_interactions(QuadContainer self) -> IMP::ModelObjectsTemps"""
7795 return _IMP_kernel.QuadContainer_do_get_interactions(self)
7798 def do_get_contents_hash(self):
7799 """do_get_contents_hash(QuadContainer self) -> std::size_t"""
7800 return _IMP_kernel.QuadContainer_do_get_contents_hash(self)
7802 QuadContainer_swigregister = _IMP_kernel.QuadContainer_swigregister
7803 QuadContainer_swigregister(QuadContainer)
7805 class _QuadContainerAdaptor(_InputAdaptor):
7806 """Proxy of C++ IMP::QuadContainerAdaptor class."""
7808 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7809 __repr__ = _swig_repr
7811 def __init__(self, *args):
7813 __init__(IMP::QuadContainerAdaptor self) -> _QuadContainerAdaptor
7814 __init__(IMP::QuadContainerAdaptor self, QuadContainer c) -> _QuadContainerAdaptor
7815 __init__(IMP::QuadContainerAdaptor self, IMP::ParticleQuadsTemp const & t) -> _QuadContainerAdaptor
7817 this = _IMP_kernel.new__QuadContainerAdaptor(*args)
7819 self.this.append(this)
7820 except __builtin__.Exception:
7823 def set_name_if_default(self, name):
7824 """set_name_if_default(_QuadContainerAdaptor self, std::string name)"""
7825 return _IMP_kernel._QuadContainerAdaptor_set_name_if_default(self, name)
7827 __swig_destroy__ = _IMP_kernel.delete__QuadContainerAdaptor
7828 __del__ =
lambda self:
None
7829 _QuadContainerAdaptor_swigregister = _IMP_kernel._QuadContainerAdaptor_swigregister
7830 _QuadContainerAdaptor_swigregister(_QuadContainerAdaptor)
7832 class SingletonModifier(_ParticleInputs, _ParticleOutputs, Object):
7833 """Proxy of C++ IMP::SingletonModifier class."""
7835 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7837 def __init__(self, *args):
7839 __init__(IMP::SingletonModifier self, std::string name) -> SingletonModifier
7840 __init__(IMP::SingletonModifier self) -> SingletonModifier
7842 if self.__class__ == SingletonModifier:
7846 this = _IMP_kernel.new_SingletonModifier(_self, *args)
7848 self.this.append(this)
7849 except __builtin__.Exception:
7852 if self.__class__ != SingletonModifier:
7853 _director_objects.register(self)
7858 def apply_index(self, m, v):
7859 """apply_index(SingletonModifier self, Model m, ParticleIndex v)"""
7860 return _IMP_kernel.SingletonModifier_apply_index(self, m, v)
7863 def apply_indexes(self, m, o, lower_bound, upper_bound):
7864 """apply_indexes(SingletonModifier self, Model m, IMP::ParticleIndexes const & o, unsigned int lower_bound, unsigned int upper_bound)"""
7865 return _IMP_kernel.SingletonModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
7869 """__str__(SingletonModifier self) -> std::string"""
7870 return _IMP_kernel.SingletonModifier___str__(self)
7874 """__repr__(SingletonModifier self) -> std::string"""
7875 return _IMP_kernel.SingletonModifier___repr__(self)
7880 return _object_cast_to_SingletonModifier(o)
7883 def get_type_name(self):
7884 return self.__class__.__name__
7885 def do_show(self, out):
7887 def get_version_info(self):
7889 return VersionInfo(self.__module__,
7896 return _object_cast_to_SingletonModifier(o)
7898 __swig_destroy__ = _IMP_kernel.delete_SingletonModifier
7899 __del__ =
lambda self:
None
7900 def __disown__(self):
7902 _IMP_kernel.disown_SingletonModifier(self)
7903 return weakref_proxy(self)
7905 def do_get_inputs(self, m, pis):
7906 """do_get_inputs(SingletonModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7907 return _IMP_kernel.SingletonModifier_do_get_inputs(self, m, pis)
7910 def do_get_outputs(self, m, pis):
7911 """do_get_outputs(SingletonModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7912 return _IMP_kernel.SingletonModifier_do_get_outputs(self, m, pis)
7915 def do_destroy(self):
7916 """do_destroy(SingletonModifier self)"""
7917 return _IMP_kernel.SingletonModifier_do_destroy(self)
7919 SingletonModifier_swigregister = _IMP_kernel.SingletonModifier_swigregister
7920 SingletonModifier_swigregister(SingletonModifier)
7922 class SingletonScore(_ParticleInputs, Object):
7923 """Proxy of C++ IMP::SingletonScore class."""
7925 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
7927 def __init__(self, *args):
7929 __init__(IMP::SingletonScore self, std::string name) -> SingletonScore
7930 __init__(IMP::SingletonScore self) -> SingletonScore
7932 if self.__class__ == SingletonScore:
7936 this = _IMP_kernel.new_SingletonScore(_self, *args)
7938 self.this.append(this)
7939 except __builtin__.Exception:
7942 if self.__class__ != SingletonScore:
7943 _director_objects.register(self)
7948 def evaluate_index(self, m, vt, da):
7949 """evaluate_index(SingletonScore self, Model m, ParticleIndex vt, DerivativeAccumulator da) -> double"""
7950 return _IMP_kernel.SingletonScore_evaluate_index(self, m, vt, da)
7953 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
7954 """evaluate_indexes(SingletonScore self, Model m, IMP::ParticleIndexes const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7955 return _IMP_kernel.SingletonScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
7958 def evaluate_if_good_index(self, m, vt, da, max):
7959 """evaluate_if_good_index(SingletonScore self, Model m, ParticleIndex vt, DerivativeAccumulator da, double max) -> double"""
7960 return _IMP_kernel.SingletonScore_evaluate_if_good_index(self, m, vt, da, max)
7963 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
7964 """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"""
7965 return _IMP_kernel.SingletonScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
7968 def create_current_decomposition(self, m, vt):
7969 """create_current_decomposition(SingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
7970 return _IMP_kernel.SingletonScore_create_current_decomposition(self, m, vt)
7973 def do_create_current_decomposition(self, m, vt):
7974 """do_create_current_decomposition(SingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
7975 return _IMP_kernel.SingletonScore_do_create_current_decomposition(self, m, vt)
7977 __swig_destroy__ = _IMP_kernel.delete_SingletonScore
7978 __del__ =
lambda self:
None
7981 """__str__(SingletonScore self) -> std::string"""
7982 return _IMP_kernel.SingletonScore___str__(self)
7986 """__repr__(SingletonScore self) -> std::string"""
7987 return _IMP_kernel.SingletonScore___repr__(self)
7992 return _object_cast_to_SingletonScore(o)
7995 def get_type_name(self):
7996 return self.__class__.__name__
7997 def do_show(self, out):
7999 def get_version_info(self):
8001 return VersionInfo(self.__module__,
8008 return _object_cast_to_SingletonScore(o)
8010 def __disown__(self):
8012 _IMP_kernel.disown_SingletonScore(self)
8013 return weakref_proxy(self)
8015 def do_get_inputs(self, m, pis):
8016 """do_get_inputs(SingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8017 return _IMP_kernel.SingletonScore_do_get_inputs(self, m, pis)
8020 def do_destroy(self):
8021 """do_destroy(SingletonScore self)"""
8022 return _IMP_kernel.SingletonScore_do_destroy(self)
8024 SingletonScore_swigregister = _IMP_kernel.SingletonScore_swigregister
8025 SingletonScore_swigregister(SingletonScore)
8027 class SingletonPredicate(_ParticleInputs, Object):
8028 """Proxy of C++ IMP::SingletonPredicate class."""
8030 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8032 def __init__(self, *args):
8034 __init__(IMP::SingletonPredicate self, std::string name) -> SingletonPredicate
8035 __init__(IMP::SingletonPredicate self) -> SingletonPredicate
8037 if self.__class__ == SingletonPredicate:
8041 this = _IMP_kernel.new_SingletonPredicate(_self, *args)
8043 self.this.append(this)
8044 except __builtin__.Exception:
8047 if self.__class__ != SingletonPredicate:
8048 _director_objects.register(self)
8053 def get_value(self, *args):
8055 get_value(SingletonPredicate self, Particle vt) -> int
8056 get_value(SingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
8058 return _IMP_kernel.SingletonPredicate_get_value(self, *args)
8061 def setup_for_get_value_index_in_batch(self, arg0):
8062 """setup_for_get_value_index_in_batch(SingletonPredicate self, Model arg0)"""
8063 return _IMP_kernel.SingletonPredicate_setup_for_get_value_index_in_batch(self, arg0)
8066 def get_value_index_in_batch(self, m, vt):
8067 """get_value_index_in_batch(SingletonPredicate self, Model m, ParticleIndex vt) -> int"""
8068 return _IMP_kernel.SingletonPredicate_get_value_index_in_batch(self, m, vt)
8071 def __call__(self, m, vt):
8072 """__call__(SingletonPredicate self, Model m, ParticleIndex vt) -> int"""
8073 return _IMP_kernel.SingletonPredicate___call__(self, m, vt)
8076 def get_value_index(self, *args):
8078 get_value_index(SingletonPredicate self, Model m, ParticleIndex vt) -> int
8079 get_value_index(SingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
8081 return _IMP_kernel.SingletonPredicate_get_value_index(self, *args)
8083 __swig_destroy__ = _IMP_kernel.delete_SingletonPredicate
8084 __del__ =
lambda self:
None
8087 """__str__(SingletonPredicate self) -> std::string"""
8088 return _IMP_kernel.SingletonPredicate___str__(self)
8092 """__repr__(SingletonPredicate self) -> std::string"""
8093 return _IMP_kernel.SingletonPredicate___repr__(self)
8098 return _object_cast_to_SingletonPredicate(o)
8101 def get_type_name(self):
8102 return self.__class__.__name__
8103 def do_show(self, out):
8105 def get_version_info(self):
8107 return VersionInfo(self.__module__,
8114 return _object_cast_to_SingletonPredicate(o)
8116 def __disown__(self):
8118 _IMP_kernel.disown_SingletonPredicate(self)
8119 return weakref_proxy(self)
8121 def do_get_inputs(self, m, pis):
8122 """do_get_inputs(SingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8123 return _IMP_kernel.SingletonPredicate_do_get_inputs(self, m, pis)
8126 def do_destroy(self):
8127 """do_destroy(SingletonPredicate self)"""
8128 return _IMP_kernel.SingletonPredicate_do_destroy(self)
8130 SingletonPredicate_swigregister = _IMP_kernel.SingletonPredicate_swigregister
8131 SingletonPredicate_swigregister(SingletonPredicate)
8133 class SingletonContainer(Container):
8134 """Proxy of C++ IMP::SingletonContainer class."""
8136 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8138 def apply_generic(self, m):
8139 """apply_generic(SingletonContainer self, SingletonModifier m)"""
8140 return _IMP_kernel.SingletonContainer_apply_generic(self, m)
8143 def apply(self, sm):
8144 """apply(SingletonContainer self, SingletonModifier sm)"""
8145 return _IMP_kernel.SingletonContainer_apply(self, sm)
8148 def get_range_indexes(self):
8149 """get_range_indexes(SingletonContainer self) -> IMP::ParticleIndexes"""
8150 return _IMP_kernel.SingletonContainer_get_range_indexes(self)
8153 def get_contents(self):
8154 """get_contents(SingletonContainer self) -> IMP::ParticleIndexes const &"""
8155 return _IMP_kernel.SingletonContainer_get_contents(self)
8159 """get_indexes(SingletonContainer self) -> IMP::ParticleIndexes"""
8160 return _IMP_kernel.SingletonContainer_get_indexes(self)
8163 def get(self, *args):
8165 get(SingletonContainer self) -> IMP::ParticlesTemp
8166 get(SingletonContainer self, unsigned int i) -> Particle
8168 return _IMP_kernel.SingletonContainer_get(self, *args)
8171 def get_number(self):
8172 """get_number(SingletonContainer self) -> unsigned int"""
8173 return _IMP_kernel.SingletonContainer_get_number(self)
8177 """get_particles(SingletonContainer self) -> IMP::ParticlesTemp"""
8178 return _IMP_kernel.SingletonContainer_get_particles(self)
8181 def get_particle(self, i):
8182 """get_particle(SingletonContainer self, unsigned int i) -> Particle"""
8183 return _IMP_kernel.SingletonContainer_get_particle(self, i)
8186 def __init__(self, *args):
8188 __init__(IMP::SingletonContainer self, Model m, std::string name) -> SingletonContainer
8189 __init__(IMP::SingletonContainer self, Model m) -> SingletonContainer
8191 if self.__class__ == SingletonContainer:
8195 this = _IMP_kernel.new_SingletonContainer(_self, *args)
8197 self.this.append(this)
8198 except __builtin__.Exception:
8201 if self.__class__ != SingletonContainer:
8202 _director_objects.register(self)
8207 def do_apply(self, sm):
8208 """do_apply(SingletonContainer self, SingletonModifier sm)"""
8209 return _IMP_kernel.SingletonContainer_do_apply(self, sm)
8212 def do_get_provides_access(self):
8213 """do_get_provides_access(SingletonContainer self) -> bool"""
8214 return _IMP_kernel.SingletonContainer_do_get_provides_access(self)
8216 __swig_destroy__ = _IMP_kernel.delete_SingletonContainer
8217 __del__ =
lambda self:
None
8220 """__str__(SingletonContainer self) -> std::string"""
8221 return _IMP_kernel.SingletonContainer___str__(self)
8225 """__repr__(SingletonContainer self) -> std::string"""
8226 return _IMP_kernel.SingletonContainer___repr__(self)
8231 return _object_cast_to_SingletonContainer(o)
8234 def get_type_name(self):
8235 return self.__class__.__name__
8236 def do_show(self, out):
8238 def get_version_info(self):
8240 return VersionInfo(self.__module__,
8247 return _object_cast_to_SingletonContainer(o)
8249 def __disown__(self):
8251 _IMP_kernel.disown_SingletonContainer(self)
8252 return weakref_proxy(self)
8254 def do_destroy(self):
8255 """do_destroy(SingletonContainer self)"""
8256 return _IMP_kernel.SingletonContainer_do_destroy(self)
8259 def handle_set_has_required_score_states(self, arg0):
8260 """handle_set_has_required_score_states(SingletonContainer self, bool arg0)"""
8261 return _IMP_kernel.SingletonContainer_handle_set_has_required_score_states(self, arg0)
8264 def do_get_inputs(self):
8265 """do_get_inputs(SingletonContainer self) -> IMP::ModelObjectsTemp"""
8266 return _IMP_kernel.SingletonContainer_do_get_inputs(self)
8269 def do_get_interactions(self):
8270 """do_get_interactions(SingletonContainer self) -> IMP::ModelObjectsTemps"""
8271 return _IMP_kernel.SingletonContainer_do_get_interactions(self)
8274 def do_get_contents_hash(self):
8275 """do_get_contents_hash(SingletonContainer self) -> std::size_t"""
8276 return _IMP_kernel.SingletonContainer_do_get_contents_hash(self)
8278 SingletonContainer_swigregister = _IMP_kernel.SingletonContainer_swigregister
8279 SingletonContainer_swigregister(SingletonContainer)
8281 class _SingletonContainerAdaptor(_InputAdaptor):
8282 """Proxy of C++ IMP::SingletonContainerAdaptor class."""
8284 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8285 __repr__ = _swig_repr
8287 def __init__(self, *args):
8289 __init__(IMP::SingletonContainerAdaptor self) -> _SingletonContainerAdaptor
8290 __init__(IMP::SingletonContainerAdaptor self, SingletonContainer c) -> _SingletonContainerAdaptor
8291 __init__(IMP::SingletonContainerAdaptor self, IMP::ParticlesTemp const & t) -> _SingletonContainerAdaptor
8293 this = _IMP_kernel.new__SingletonContainerAdaptor(*args)
8295 self.this.append(this)
8296 except __builtin__.Exception:
8299 def set_name_if_default(self, name):
8300 """set_name_if_default(_SingletonContainerAdaptor self, std::string name)"""
8301 return _IMP_kernel._SingletonContainerAdaptor_set_name_if_default(self, name)
8303 __swig_destroy__ = _IMP_kernel.delete__SingletonContainerAdaptor
8304 __del__ =
lambda self:
None
8305 _SingletonContainerAdaptor_swigregister = _IMP_kernel._SingletonContainerAdaptor_swigregister
8306 _SingletonContainerAdaptor_swigregister(_SingletonContainerAdaptor)
8308 class TripletModifier(_ParticleInputs, _ParticleOutputs, Object):
8309 """Proxy of C++ IMP::TripletModifier class."""
8311 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8313 def __init__(self, *args):
8315 __init__(IMP::TripletModifier self, std::string name) -> TripletModifier
8316 __init__(IMP::TripletModifier self) -> TripletModifier
8318 if self.__class__ == TripletModifier:
8322 this = _IMP_kernel.new_TripletModifier(_self, *args)
8324 self.this.append(this)
8325 except __builtin__.Exception:
8328 if self.__class__ != TripletModifier:
8329 _director_objects.register(self)
8334 def apply_index(self, m, v):
8335 """apply_index(TripletModifier self, Model m, IMP::ParticleIndexTriplet const & v)"""
8336 return _IMP_kernel.TripletModifier_apply_index(self, m, v)
8339 def apply_indexes(self, m, o, lower_bound, upper_bound):
8340 """apply_indexes(TripletModifier self, Model m, IMP::ParticleIndexTriplets const & o, unsigned int lower_bound, unsigned int upper_bound)"""
8341 return _IMP_kernel.TripletModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
8345 """__str__(TripletModifier self) -> std::string"""
8346 return _IMP_kernel.TripletModifier___str__(self)
8350 """__repr__(TripletModifier self) -> std::string"""
8351 return _IMP_kernel.TripletModifier___repr__(self)
8356 return _object_cast_to_TripletModifier(o)
8359 def get_type_name(self):
8360 return self.__class__.__name__
8361 def do_show(self, out):
8363 def get_version_info(self):
8365 return VersionInfo(self.__module__,
8372 return _object_cast_to_TripletModifier(o)
8374 __swig_destroy__ = _IMP_kernel.delete_TripletModifier
8375 __del__ =
lambda self:
None
8376 def __disown__(self):
8378 _IMP_kernel.disown_TripletModifier(self)
8379 return weakref_proxy(self)
8381 def do_get_inputs(self, m, pis):
8382 """do_get_inputs(TripletModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8383 return _IMP_kernel.TripletModifier_do_get_inputs(self, m, pis)
8386 def do_get_outputs(self, m, pis):
8387 """do_get_outputs(TripletModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8388 return _IMP_kernel.TripletModifier_do_get_outputs(self, m, pis)
8391 def do_destroy(self):
8392 """do_destroy(TripletModifier self)"""
8393 return _IMP_kernel.TripletModifier_do_destroy(self)
8395 TripletModifier_swigregister = _IMP_kernel.TripletModifier_swigregister
8396 TripletModifier_swigregister(TripletModifier)
8398 class TripletScore(_ParticleInputs, Object):
8399 """Proxy of C++ IMP::TripletScore class."""
8401 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8403 def __init__(self, *args):
8405 __init__(IMP::TripletScore self, std::string name) -> TripletScore
8406 __init__(IMP::TripletScore self) -> TripletScore
8408 if self.__class__ == TripletScore:
8412 this = _IMP_kernel.new_TripletScore(_self, *args)
8414 self.this.append(this)
8415 except __builtin__.Exception:
8418 if self.__class__ != TripletScore:
8419 _director_objects.register(self)
8424 def evaluate_index(self, m, vt, da):
8425 """evaluate_index(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt, DerivativeAccumulator da) -> double"""
8426 return _IMP_kernel.TripletScore_evaluate_index(self, m, vt, da)
8429 def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
8430 """evaluate_indexes(TripletScore self, Model m, IMP::ParticleIndexTriplets const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
8431 return _IMP_kernel.TripletScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
8434 def evaluate_if_good_index(self, m, vt, da, max):
8435 """evaluate_if_good_index(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt, DerivativeAccumulator da, double max) -> double"""
8436 return _IMP_kernel.TripletScore_evaluate_if_good_index(self, m, vt, da, max)
8439 def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
8440 """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"""
8441 return _IMP_kernel.TripletScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
8444 def create_current_decomposition(self, m, vt):
8445 """create_current_decomposition(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
8446 return _IMP_kernel.TripletScore_create_current_decomposition(self, m, vt)
8449 def do_create_current_decomposition(self, m, vt):
8450 """do_create_current_decomposition(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
8451 return _IMP_kernel.TripletScore_do_create_current_decomposition(self, m, vt)
8453 __swig_destroy__ = _IMP_kernel.delete_TripletScore
8454 __del__ =
lambda self:
None
8457 """__str__(TripletScore self) -> std::string"""
8458 return _IMP_kernel.TripletScore___str__(self)
8462 """__repr__(TripletScore self) -> std::string"""
8463 return _IMP_kernel.TripletScore___repr__(self)
8468 return _object_cast_to_TripletScore(o)
8471 def get_type_name(self):
8472 return self.__class__.__name__
8473 def do_show(self, out):
8475 def get_version_info(self):
8477 return VersionInfo(self.__module__,
8484 return _object_cast_to_TripletScore(o)
8486 def __disown__(self):
8488 _IMP_kernel.disown_TripletScore(self)
8489 return weakref_proxy(self)
8491 def do_get_inputs(self, m, pis):
8492 """do_get_inputs(TripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8493 return _IMP_kernel.TripletScore_do_get_inputs(self, m, pis)
8496 def do_destroy(self):
8497 """do_destroy(TripletScore self)"""
8498 return _IMP_kernel.TripletScore_do_destroy(self)
8500 TripletScore_swigregister = _IMP_kernel.TripletScore_swigregister
8501 TripletScore_swigregister(TripletScore)
8503 class TripletPredicate(_ParticleInputs, Object):
8504 """Proxy of C++ IMP::TripletPredicate class."""
8506 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8508 def __init__(self, *args):
8510 __init__(IMP::TripletPredicate self, std::string name) -> TripletPredicate
8511 __init__(IMP::TripletPredicate self) -> TripletPredicate
8513 if self.__class__ == TripletPredicate:
8517 this = _IMP_kernel.new_TripletPredicate(_self, *args)
8519 self.this.append(this)
8520 except __builtin__.Exception:
8523 if self.__class__ != TripletPredicate:
8524 _director_objects.register(self)
8529 def get_value(self, *args):
8531 get_value(TripletPredicate self, IMP::ParticleTriplet const & vt) -> int
8532 get_value(TripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
8534 return _IMP_kernel.TripletPredicate_get_value(self, *args)
8537 def setup_for_get_value_index_in_batch(self, arg0):
8538 """setup_for_get_value_index_in_batch(TripletPredicate self, Model arg0)"""
8539 return _IMP_kernel.TripletPredicate_setup_for_get_value_index_in_batch(self, arg0)
8542 def get_value_index_in_batch(self, m, vt):
8543 """get_value_index_in_batch(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int"""
8544 return _IMP_kernel.TripletPredicate_get_value_index_in_batch(self, m, vt)
8547 def __call__(self, m, vt):
8548 """__call__(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int"""
8549 return _IMP_kernel.TripletPredicate___call__(self, m, vt)
8552 def get_value_index(self, *args):
8554 get_value_index(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int
8555 get_value_index(TripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
8557 return _IMP_kernel.TripletPredicate_get_value_index(self, *args)
8559 __swig_destroy__ = _IMP_kernel.delete_TripletPredicate
8560 __del__ =
lambda self:
None
8563 """__str__(TripletPredicate self) -> std::string"""
8564 return _IMP_kernel.TripletPredicate___str__(self)
8568 """__repr__(TripletPredicate self) -> std::string"""
8569 return _IMP_kernel.TripletPredicate___repr__(self)
8574 return _object_cast_to_TripletPredicate(o)
8577 def get_type_name(self):
8578 return self.__class__.__name__
8579 def do_show(self, out):
8581 def get_version_info(self):
8583 return VersionInfo(self.__module__,
8590 return _object_cast_to_TripletPredicate(o)
8592 def __disown__(self):
8594 _IMP_kernel.disown_TripletPredicate(self)
8595 return weakref_proxy(self)
8597 def do_get_inputs(self, m, pis):
8598 """do_get_inputs(TripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8599 return _IMP_kernel.TripletPredicate_do_get_inputs(self, m, pis)
8602 def do_destroy(self):
8603 """do_destroy(TripletPredicate self)"""
8604 return _IMP_kernel.TripletPredicate_do_destroy(self)
8606 TripletPredicate_swigregister = _IMP_kernel.TripletPredicate_swigregister
8607 TripletPredicate_swigregister(TripletPredicate)
8609 class TripletContainer(Container):
8610 """Proxy of C++ IMP::TripletContainer class."""
8612 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8614 def apply_generic(self, m):
8615 """apply_generic(TripletContainer self, TripletModifier m)"""
8616 return _IMP_kernel.TripletContainer_apply_generic(self, m)
8619 def apply(self, sm):
8620 """apply(TripletContainer self, TripletModifier sm)"""
8621 return _IMP_kernel.TripletContainer_apply(self, sm)
8624 def get_range_indexes(self):
8625 """get_range_indexes(TripletContainer self) -> IMP::ParticleIndexTriplets"""
8626 return _IMP_kernel.TripletContainer_get_range_indexes(self)
8629 def get_contents(self):
8630 """get_contents(TripletContainer self) -> IMP::ParticleIndexTriplets const &"""
8631 return _IMP_kernel.TripletContainer_get_contents(self)
8635 """get_indexes(TripletContainer self) -> IMP::ParticleIndexTriplets"""
8636 return _IMP_kernel.TripletContainer_get_indexes(self)
8639 def get(self, *args):
8641 get(TripletContainer self) -> IMP::ParticleTripletsTemp
8642 get(TripletContainer self, unsigned int i) -> IMP::ParticleTriplet
8644 return _IMP_kernel.TripletContainer_get(self, *args)
8647 def get_number(self):
8648 """get_number(TripletContainer self) -> unsigned int"""
8649 return _IMP_kernel.TripletContainer_get_number(self)
8652 def get_particle_triplets(self):
8653 """get_particle_triplets(TripletContainer self) -> IMP::ParticleTripletsTemp"""
8654 return _IMP_kernel.TripletContainer_get_particle_triplets(self)
8657 def get_particle_triplet(self, i):
8658 """get_particle_triplet(TripletContainer self, unsigned int i) -> IMP::ParticleTriplet"""
8659 return _IMP_kernel.TripletContainer_get_particle_triplet(self, i)
8662 def __init__(self, *args):
8664 __init__(IMP::TripletContainer self, Model m, std::string name) -> TripletContainer
8665 __init__(IMP::TripletContainer self, Model m) -> TripletContainer
8667 if self.__class__ == TripletContainer:
8671 this = _IMP_kernel.new_TripletContainer(_self, *args)
8673 self.this.append(this)
8674 except __builtin__.Exception:
8677 if self.__class__ != TripletContainer:
8678 _director_objects.register(self)
8683 def do_apply(self, sm):
8684 """do_apply(TripletContainer self, TripletModifier sm)"""
8685 return _IMP_kernel.TripletContainer_do_apply(self, sm)
8688 def do_get_provides_access(self):
8689 """do_get_provides_access(TripletContainer self) -> bool"""
8690 return _IMP_kernel.TripletContainer_do_get_provides_access(self)
8692 __swig_destroy__ = _IMP_kernel.delete_TripletContainer
8693 __del__ =
lambda self:
None
8696 """__str__(TripletContainer self) -> std::string"""
8697 return _IMP_kernel.TripletContainer___str__(self)
8701 """__repr__(TripletContainer self) -> std::string"""
8702 return _IMP_kernel.TripletContainer___repr__(self)
8707 return _object_cast_to_TripletContainer(o)
8710 def get_type_name(self):
8711 return self.__class__.__name__
8712 def do_show(self, out):
8714 def get_version_info(self):
8716 return VersionInfo(self.__module__,
8723 return _object_cast_to_TripletContainer(o)
8725 def __disown__(self):
8727 _IMP_kernel.disown_TripletContainer(self)
8728 return weakref_proxy(self)
8730 def do_destroy(self):
8731 """do_destroy(TripletContainer self)"""
8732 return _IMP_kernel.TripletContainer_do_destroy(self)
8735 def handle_set_has_required_score_states(self, arg0):
8736 """handle_set_has_required_score_states(TripletContainer self, bool arg0)"""
8737 return _IMP_kernel.TripletContainer_handle_set_has_required_score_states(self, arg0)
8740 def do_get_inputs(self):
8741 """do_get_inputs(TripletContainer self) -> IMP::ModelObjectsTemp"""
8742 return _IMP_kernel.TripletContainer_do_get_inputs(self)
8745 def do_get_interactions(self):
8746 """do_get_interactions(TripletContainer self) -> IMP::ModelObjectsTemps"""
8747 return _IMP_kernel.TripletContainer_do_get_interactions(self)
8750 def do_get_contents_hash(self):
8751 """do_get_contents_hash(TripletContainer self) -> std::size_t"""
8752 return _IMP_kernel.TripletContainer_do_get_contents_hash(self)
8754 TripletContainer_swigregister = _IMP_kernel.TripletContainer_swigregister
8755 TripletContainer_swigregister(TripletContainer)
8757 class _TripletContainerAdaptor(_InputAdaptor):
8758 """Proxy of C++ IMP::TripletContainerAdaptor class."""
8760 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8761 __repr__ = _swig_repr
8763 def __init__(self, *args):
8765 __init__(IMP::TripletContainerAdaptor self) -> _TripletContainerAdaptor
8766 __init__(IMP::TripletContainerAdaptor self, TripletContainer c) -> _TripletContainerAdaptor
8767 __init__(IMP::TripletContainerAdaptor self, IMP::ParticleTripletsTemp const & t) -> _TripletContainerAdaptor
8769 this = _IMP_kernel.new__TripletContainerAdaptor(*args)
8771 self.this.append(this)
8772 except __builtin__.Exception:
8775 def set_name_if_default(self, name):
8776 """set_name_if_default(_TripletContainerAdaptor self, std::string name)"""
8777 return _IMP_kernel._TripletContainerAdaptor_set_name_if_default(self, name)
8779 __swig_destroy__ = _IMP_kernel.delete__TripletContainerAdaptor
8780 __del__ =
lambda self:
None
8781 _TripletContainerAdaptor_swigregister = _IMP_kernel._TripletContainerAdaptor_swigregister
8782 _TripletContainerAdaptor_swigregister(_TripletContainerAdaptor)
8786 """write_particles_to_buffer(IMP::ParticlesTemp const & particles, IMP::FloatKeys const & keys) -> IMP::Vector< char >"""
8787 return _IMP_kernel.write_particles_to_buffer(particles, keys)
8790 """read_particles_from_buffer(IMP::Vector< char > const & buffer, IMP::ParticlesTemp const & particles, IMP::FloatKeys const & keys)"""
8791 return _IMP_kernel.read_particles_from_buffer(buffer, particles, keys)
8794 """get_particles(Model m, IMP::ParticleIndexes const & ps) -> IMP::ParticlesTemp"""
8795 return _IMP_kernel.get_particles(m, ps)
8799 get_indexes(IMP::ParticlesTemp const & ps) -> IMP::ParticleIndexes
8800 get_indexes(IMP::ParticlePairsTemp const & ps) -> IMP::ParticleIndexPairs
8802 return _IMP_kernel.get_indexes(*args)
8803 class _ParticleIndexAdaptor(object):
8804 """Proxy of C++ IMP::ParticleIndexAdaptor class."""
8806 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8807 __repr__ = _swig_repr
8809 def __init__(self, *args):
8811 __init__(IMP::ParticleIndexAdaptor self, Particle p) -> _ParticleIndexAdaptor
8812 __init__(IMP::ParticleIndexAdaptor self, ParticleIndex pi) -> _ParticleIndexAdaptor
8813 __init__(IMP::ParticleIndexAdaptor self, Decorator d) -> _ParticleIndexAdaptor
8815 this = _IMP_kernel.new__ParticleIndexAdaptor(*args)
8817 self.this.append(this)
8818 except __builtin__.Exception:
8820 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexAdaptor
8821 __del__ =
lambda self:
None
8822 _ParticleIndexAdaptor_swigregister = _IMP_kernel._ParticleIndexAdaptor_swigregister
8823 _ParticleIndexAdaptor_swigregister(_ParticleIndexAdaptor)
8825 class _ParticleIndexesAdaptor(_InputAdaptor):
8826 """Proxy of C++ IMP::ParticleIndexesAdaptor class."""
8828 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8829 __repr__ = _swig_repr
8831 def __init__(self, *args):
8833 __init__(IMP::ParticleIndexesAdaptor self, IMP::ParticlesTemp const & ps) -> _ParticleIndexesAdaptor
8834 __init__(IMP::ParticleIndexesAdaptor self, IMP::ParticleIndexes const & pi) -> _ParticleIndexesAdaptor
8835 __init__(IMP::ParticleIndexesAdaptor self) -> _ParticleIndexesAdaptor
8837 this = _IMP_kernel.new__ParticleIndexesAdaptor(*args)
8839 self.this.append(this)
8840 except __builtin__.Exception:
8842 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexesAdaptor
8843 __del__ =
lambda self:
None
8844 _ParticleIndexesAdaptor_swigregister = _IMP_kernel._ParticleIndexesAdaptor_swigregister
8845 _ParticleIndexesAdaptor_swigregister(_ParticleIndexesAdaptor)
8847 class _ParticleIndexPairsAdaptor(object):
8848 """Proxy of C++ IMP::ParticleIndexPairsAdaptor class."""
8850 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8851 __repr__ = _swig_repr
8853 def __init__(self, *args):
8855 __init__(IMP::ParticleIndexPairsAdaptor self, IMP::ParticlePairsTemp const & ps) -> _ParticleIndexPairsAdaptor
8856 __init__(IMP::ParticleIndexPairsAdaptor self, IMP::ParticleIndexPairs const & pi) -> _ParticleIndexPairsAdaptor
8857 __init__(IMP::ParticleIndexPairsAdaptor self) -> _ParticleIndexPairsAdaptor
8859 this = _IMP_kernel.new__ParticleIndexPairsAdaptor(*args)
8861 self.this.append(this)
8862 except __builtin__.Exception:
8864 __swig_destroy__ = _IMP_kernel.delete__ParticleIndexPairsAdaptor
8865 __del__ =
lambda self:
None
8866 _ParticleIndexPairsAdaptor_swigregister = _IMP_kernel._ParticleIndexPairsAdaptor_swigregister
8867 _ParticleIndexPairsAdaptor_swigregister(_ParticleIndexPairsAdaptor)
8869 class _ConstRestraint(Restraint):
8870 """Proxy of C++ IMP::internal::_ConstRestraint class."""
8872 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8874 def __init__(self, *args):
8876 __init__(IMP::internal::_ConstRestraint self, double v, IMP::ParticlesTemp const ps) -> _ConstRestraint
8877 __init__(IMP::internal::_ConstRestraint self, Model m, IMP::ParticleIndexes const & pis, double v) -> _ConstRestraint
8879 this = _IMP_kernel.new__ConstRestraint(*args)
8881 self.this.append(this)
8882 except __builtin__.Exception:
8885 def get_value(self):
8886 """get_value(_ConstRestraint self) -> double"""
8887 return _IMP_kernel._ConstRestraint_get_value(self)
8890 def do_create_decomposition(self):
8891 """do_create_decomposition(_ConstRestraint self) -> IMP::Restraints"""
8892 return _IMP_kernel._ConstRestraint_do_create_decomposition(self)
8895 def do_get_inputs(self):
8896 """do_get_inputs(_ConstRestraint self) -> IMP::ModelObjectsTemp"""
8897 return _IMP_kernel._ConstRestraint_do_get_inputs(self)
8900 def get_version_info(self):
8901 """get_version_info(_ConstRestraint self) -> VersionInfo"""
8902 return _IMP_kernel._ConstRestraint_get_version_info(self)
8906 """__str__(_ConstRestraint self) -> std::string"""
8907 return _IMP_kernel._ConstRestraint___str__(self)
8911 """__repr__(_ConstRestraint self) -> std::string"""
8912 return _IMP_kernel._ConstRestraint___repr__(self)
8917 return _object_cast_to__ConstRestraint(o)
8919 _ConstRestraint_swigregister = _IMP_kernel._ConstRestraint_swigregister
8920 _ConstRestraint_swigregister(_ConstRestraint)
8922 class _ConstSingletonScore(SingletonScore):
8923 """Proxy of C++ IMP::internal::_ConstSingletonScore class."""
8925 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8926 __repr__ = _swig_repr
8928 def __init__(self, v):
8929 """__init__(IMP::internal::_ConstSingletonScore self, double v) -> _ConstSingletonScore"""
8930 this = _IMP_kernel.new__ConstSingletonScore(v)
8932 self.this.append(this)
8933 except __builtin__.Exception:
8936 def do_get_inputs(self, arg2, arg3):
8937 """do_get_inputs(_ConstSingletonScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
8938 return _IMP_kernel._ConstSingletonScore_do_get_inputs(self, arg2, arg3)
8941 def get_version_info(self):
8942 """get_version_info(_ConstSingletonScore self) -> VersionInfo"""
8943 return _IMP_kernel._ConstSingletonScore_get_version_info(self)
8945 _ConstSingletonScore_swigregister = _IMP_kernel._ConstSingletonScore_swigregister
8946 _ConstSingletonScore_swigregister(_ConstSingletonScore)
8948 class _ConstPairScore(PairScore):
8949 """Proxy of C++ IMP::internal::_ConstPairScore class."""
8951 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8952 __repr__ = _swig_repr
8954 def __init__(self, v):
8955 """__init__(IMP::internal::_ConstPairScore self, double v) -> _ConstPairScore"""
8956 this = _IMP_kernel.new__ConstPairScore(v)
8958 self.this.append(this)
8959 except __builtin__.Exception:
8962 def do_get_inputs(self, arg2, arg3):
8963 """do_get_inputs(_ConstPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
8964 return _IMP_kernel._ConstPairScore_do_get_inputs(self, arg2, arg3)
8967 def get_version_info(self):
8968 """get_version_info(_ConstPairScore self) -> VersionInfo"""
8969 return _IMP_kernel._ConstPairScore_get_version_info(self)
8971 _ConstPairScore_swigregister = _IMP_kernel._ConstPairScore_swigregister
8972 _ConstPairScore_swigregister(_ConstPairScore)
8974 class _TrivialDecorator(Decorator):
8975 """Proxy of C++ IMP::internal::_TrivialDecorator class."""
8977 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
8979 def __init__(self, *args):
8981 __init__(IMP::internal::_TrivialDecorator self) -> _TrivialDecorator
8982 __init__(IMP::internal::_TrivialDecorator self, Model m, ParticleIndex id) -> _TrivialDecorator
8983 __init__(IMP::internal::_TrivialDecorator self, _ParticleAdaptor d) -> _TrivialDecorator
8985 this = _IMP_kernel.new__TrivialDecorator(*args)
8987 self.this.append(this)
8988 except __builtin__.Exception:
8991 def show(self, *args):
8993 show(_TrivialDecorator self, _ostream out)
8994 show(_TrivialDecorator self)
8996 return _IMP_kernel._TrivialDecorator_show(self, *args)
8999 def setup_particle(*args):
9001 setup_particle(Model m, ParticleIndex pi) -> _TrivialDecorator
9002 setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
9004 return _IMP_kernel._TrivialDecorator_setup_particle(*args)
9006 setup_particle = staticmethod(setup_particle)
9008 def get_is_setup(*args):
9010 get_is_setup(_ParticleAdaptor p) -> bool
9011 get_is_setup(Model m, ParticleIndex pi) -> bool
9013 return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
9015 get_is_setup = staticmethod(get_is_setup)
9017 def add_attribute(self, *args):
9019 add_attribute(_TrivialDecorator self, FloatKey k, IMP::Float v, bool opt)
9020 add_attribute(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
9021 add_attribute(_TrivialDecorator self, IntKey a0, IMP::Int a1)
9022 add_attribute(_TrivialDecorator self, FloatsKey a0, IMP::Floats a1)
9023 add_attribute(_TrivialDecorator self, IntsKey a0, IMP::Ints a1)
9024 add_attribute(_TrivialDecorator self, StringKey a0, IMP::String a1)
9025 add_attribute(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
9026 add_attribute(_TrivialDecorator self, ObjectKey a0, Object a1)
9028 return _IMP_kernel._TrivialDecorator_add_attribute(self, *args)
9031 def get_value(self, *args):
9033 get_value(_TrivialDecorator self, FloatKey a0) -> IMP::Float
9034 get_value(_TrivialDecorator self, IntKey a0) -> IMP::Int
9035 get_value(_TrivialDecorator self, FloatsKey a0) -> IMP::Floats
9036 get_value(_TrivialDecorator self, IntsKey a0) -> IMP::Ints
9037 get_value(_TrivialDecorator self, StringKey a0) -> IMP::String
9038 get_value(_TrivialDecorator self, ParticleIndexKey a0) -> Particle
9039 get_value(_TrivialDecorator self, ObjectKey a0) -> Object
9041 return _IMP_kernel._TrivialDecorator_get_value(self, *args)
9044 def set_value(self, *args):
9046 set_value(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
9047 set_value(_TrivialDecorator self, IntKey a0, IMP::Int a1)
9048 set_value(_TrivialDecorator self, FloatsKey a0, IMP::Floats a1)
9049 set_value(_TrivialDecorator self, IntsKey a0, IMP::Ints a1)
9050 set_value(_TrivialDecorator self, StringKey a0, IMP::String a1)
9051 set_value(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
9052 set_value(_TrivialDecorator self, ObjectKey a0, Object a1)
9054 return _IMP_kernel._TrivialDecorator_set_value(self, *args)
9057 def remove_attribute(self, *args):
9059 remove_attribute(_TrivialDecorator self, FloatKey a0)
9060 remove_attribute(_TrivialDecorator self, IntKey a0)
9061 remove_attribute(_TrivialDecorator self, FloatsKey a0)
9062 remove_attribute(_TrivialDecorator self, IntsKey a0)
9063 remove_attribute(_TrivialDecorator self, StringKey a0)
9064 remove_attribute(_TrivialDecorator self, ParticleIndexKey a0)
9065 remove_attribute(_TrivialDecorator self, ObjectKey a0)
9067 return _IMP_kernel._TrivialDecorator_remove_attribute(self, *args)
9070 def has_attribute(self, *args):
9072 has_attribute(_TrivialDecorator self, FloatKey a0) -> bool
9073 has_attribute(_TrivialDecorator self, IntKey a0) -> bool
9074 has_attribute(_TrivialDecorator self, FloatsKey a0) -> bool
9075 has_attribute(_TrivialDecorator self, IntsKey a0) -> bool
9076 has_attribute(_TrivialDecorator self, StringKey a0) -> bool
9077 has_attribute(_TrivialDecorator self, ParticleIndexKey a0) -> bool
9078 has_attribute(_TrivialDecorator self, ObjectKey a0) -> bool
9080 return _IMP_kernel._TrivialDecorator_has_attribute(self, *args)
9083 def get_derivative(self, a0):
9084 """get_derivative(_TrivialDecorator self, FloatKey a0) -> double"""
9085 return _IMP_kernel._TrivialDecorator_get_derivative(self, a0)
9089 """get_name(_TrivialDecorator self) -> std::string"""
9090 return _IMP_kernel._TrivialDecorator_get_name(self)
9093 def clear_caches(self):
9094 """clear_caches(_TrivialDecorator self)"""
9095 return _IMP_kernel._TrivialDecorator_clear_caches(self)
9098 def set_name(self, a0):
9099 """set_name(_TrivialDecorator self, std::string a0)"""
9100 return _IMP_kernel._TrivialDecorator_set_name(self, a0)
9104 """set_check_level(_TrivialDecorator self, IMP::CheckLevel a0)"""
9105 return _IMP_kernel._TrivialDecorator_set_check_level(self, a0)
9108 def add_to_derivative(self, a0, a1, a2):
9109 """add_to_derivative(_TrivialDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9110 return _IMP_kernel._TrivialDecorator_add_to_derivative(self, a0, a1, a2)
9113 def set_is_optimized(self, a0, a1):
9114 """set_is_optimized(_TrivialDecorator self, FloatKey a0, bool a1)"""
9115 return _IMP_kernel._TrivialDecorator_set_is_optimized(self, a0, a1)
9118 def get_is_optimized(self, a0):
9119 """get_is_optimized(_TrivialDecorator self, FloatKey a0) -> bool"""
9120 return _IMP_kernel._TrivialDecorator_get_is_optimized(self, a0)
9124 """get_check_level(_TrivialDecorator self) -> IMP::CheckLevel"""
9125 return _IMP_kernel._TrivialDecorator_get_check_level(self)
9128 def __eq__(self, *args):
9130 __eq__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9131 __eq__(_TrivialDecorator self, Particle d) -> bool
9133 return _IMP_kernel._TrivialDecorator___eq__(self, *args)
9136 def __ne__(self, *args):
9138 __ne__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9139 __ne__(_TrivialDecorator self, Particle d) -> bool
9141 return _IMP_kernel._TrivialDecorator___ne__(self, *args)
9144 def __le__(self, *args):
9146 __le__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9147 __le__(_TrivialDecorator self, Particle d) -> bool
9149 return _IMP_kernel._TrivialDecorator___le__(self, *args)
9152 def __lt__(self, *args):
9154 __lt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9155 __lt__(_TrivialDecorator self, Particle d) -> bool
9157 return _IMP_kernel._TrivialDecorator___lt__(self, *args)
9160 def __ge__(self, *args):
9162 __ge__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9163 __ge__(_TrivialDecorator self, Particle d) -> bool
9165 return _IMP_kernel._TrivialDecorator___ge__(self, *args)
9168 def __gt__(self, *args):
9170 __gt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9171 __gt__(_TrivialDecorator self, Particle d) -> bool
9173 return _IMP_kernel._TrivialDecorator___gt__(self, *args)
9177 """__hash__(_TrivialDecorator self) -> std::size_t"""
9178 return _IMP_kernel._TrivialDecorator___hash__(self)
9182 """__str__(_TrivialDecorator self) -> std::string"""
9183 return _IMP_kernel._TrivialDecorator___str__(self)
9187 """__repr__(_TrivialDecorator self) -> std::string"""
9188 return _IMP_kernel._TrivialDecorator___repr__(self)
9190 __swig_destroy__ = _IMP_kernel.delete__TrivialDecorator
9191 __del__ =
lambda self:
None
9192 _TrivialDecorator_swigregister = _IMP_kernel._TrivialDecorator_swigregister
9193 _TrivialDecorator_swigregister(_TrivialDecorator)
9195 def _TrivialDecorator_setup_particle(*args):
9197 setup_particle(Model m, ParticleIndex pi) -> _TrivialDecorator
9198 _TrivialDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
9200 return _IMP_kernel._TrivialDecorator_setup_particle(*args)
9202 def _TrivialDecorator_get_is_setup(*args):
9204 get_is_setup(_ParticleAdaptor p) -> bool
9205 _TrivialDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
9207 return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
9209 class _TrivialDerivedDecorator(_TrivialDecorator):
9210 """Proxy of C++ IMP::internal::_TrivialDerivedDecorator class."""
9212 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9214 def __init__(self, *args):
9216 __init__(IMP::internal::_TrivialDerivedDecorator self) -> _TrivialDerivedDecorator
9217 __init__(IMP::internal::_TrivialDerivedDecorator self, Model m, ParticleIndex id) -> _TrivialDerivedDecorator
9218 __init__(IMP::internal::_TrivialDerivedDecorator self, _ParticleAdaptor d) -> _TrivialDerivedDecorator
9220 this = _IMP_kernel.new__TrivialDerivedDecorator(*args)
9222 self.this.append(this)
9223 except __builtin__.Exception:
9226 def show(self, *args):
9228 show(_TrivialDerivedDecorator self, _ostream out)
9229 show(_TrivialDerivedDecorator self)
9231 return _IMP_kernel._TrivialDerivedDecorator_show(self, *args)
9234 def setup_particle(*args):
9236 setup_particle(Model m, ParticleIndex pi) -> _TrivialDerivedDecorator
9237 setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
9239 return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
9241 setup_particle = staticmethod(setup_particle)
9243 def get_is_setup(*args):
9245 get_is_setup(_ParticleAdaptor p) -> bool
9246 get_is_setup(Model m, ParticleIndex pi) -> bool
9248 return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
9250 get_is_setup = staticmethod(get_is_setup)
9252 def add_attribute(self, *args):
9254 add_attribute(_TrivialDerivedDecorator self, FloatKey k, IMP::Float v, bool opt)
9255 add_attribute(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
9256 add_attribute(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
9257 add_attribute(_TrivialDerivedDecorator self, FloatsKey a0, IMP::Floats a1)
9258 add_attribute(_TrivialDerivedDecorator self, IntsKey a0, IMP::Ints a1)
9259 add_attribute(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
9260 add_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
9261 add_attribute(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
9263 return _IMP_kernel._TrivialDerivedDecorator_add_attribute(self, *args)
9266 def get_value(self, *args):
9268 get_value(_TrivialDerivedDecorator self, FloatKey a0) -> IMP::Float
9269 get_value(_TrivialDerivedDecorator self, IntKey a0) -> IMP::Int
9270 get_value(_TrivialDerivedDecorator self, FloatsKey a0) -> IMP::Floats
9271 get_value(_TrivialDerivedDecorator self, IntsKey a0) -> IMP::Ints
9272 get_value(_TrivialDerivedDecorator self, StringKey a0) -> IMP::String
9273 get_value(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> Particle
9274 get_value(_TrivialDerivedDecorator self, ObjectKey a0) -> Object
9276 return _IMP_kernel._TrivialDerivedDecorator_get_value(self, *args)
9279 def set_value(self, *args):
9281 set_value(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
9282 set_value(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
9283 set_value(_TrivialDerivedDecorator self, FloatsKey a0, IMP::Floats a1)
9284 set_value(_TrivialDerivedDecorator self, IntsKey a0, IMP::Ints a1)
9285 set_value(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
9286 set_value(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
9287 set_value(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
9289 return _IMP_kernel._TrivialDerivedDecorator_set_value(self, *args)
9292 def remove_attribute(self, *args):
9294 remove_attribute(_TrivialDerivedDecorator self, FloatKey a0)
9295 remove_attribute(_TrivialDerivedDecorator self, IntKey a0)
9296 remove_attribute(_TrivialDerivedDecorator self, FloatsKey a0)
9297 remove_attribute(_TrivialDerivedDecorator self, IntsKey a0)
9298 remove_attribute(_TrivialDerivedDecorator self, StringKey a0)
9299 remove_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0)
9300 remove_attribute(_TrivialDerivedDecorator self, ObjectKey a0)
9302 return _IMP_kernel._TrivialDerivedDecorator_remove_attribute(self, *args)
9305 def has_attribute(self, *args):
9307 has_attribute(_TrivialDerivedDecorator self, FloatKey a0) -> bool
9308 has_attribute(_TrivialDerivedDecorator self, IntKey a0) -> bool
9309 has_attribute(_TrivialDerivedDecorator self, FloatsKey a0) -> bool
9310 has_attribute(_TrivialDerivedDecorator self, IntsKey a0) -> bool
9311 has_attribute(_TrivialDerivedDecorator self, StringKey a0) -> bool
9312 has_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> bool
9313 has_attribute(_TrivialDerivedDecorator self, ObjectKey a0) -> bool
9315 return _IMP_kernel._TrivialDerivedDecorator_has_attribute(self, *args)
9318 def get_derivative(self, a0):
9319 """get_derivative(_TrivialDerivedDecorator self, FloatKey a0) -> double"""
9320 return _IMP_kernel._TrivialDerivedDecorator_get_derivative(self, a0)
9324 """get_name(_TrivialDerivedDecorator self) -> std::string"""
9325 return _IMP_kernel._TrivialDerivedDecorator_get_name(self)
9328 def clear_caches(self):
9329 """clear_caches(_TrivialDerivedDecorator self)"""
9330 return _IMP_kernel._TrivialDerivedDecorator_clear_caches(self)
9333 def set_name(self, a0):
9334 """set_name(_TrivialDerivedDecorator self, std::string a0)"""
9335 return _IMP_kernel._TrivialDerivedDecorator_set_name(self, a0)
9339 """set_check_level(_TrivialDerivedDecorator self, IMP::CheckLevel a0)"""
9340 return _IMP_kernel._TrivialDerivedDecorator_set_check_level(self, a0)
9343 def add_to_derivative(self, a0, a1, a2):
9344 """add_to_derivative(_TrivialDerivedDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9345 return _IMP_kernel._TrivialDerivedDecorator_add_to_derivative(self, a0, a1, a2)
9348 def set_is_optimized(self, a0, a1):
9349 """set_is_optimized(_TrivialDerivedDecorator self, FloatKey a0, bool a1)"""
9350 return _IMP_kernel._TrivialDerivedDecorator_set_is_optimized(self, a0, a1)
9353 def get_is_optimized(self, a0):
9354 """get_is_optimized(_TrivialDerivedDecorator self, FloatKey a0) -> bool"""
9355 return _IMP_kernel._TrivialDerivedDecorator_get_is_optimized(self, a0)
9359 """get_check_level(_TrivialDerivedDecorator self) -> IMP::CheckLevel"""
9360 return _IMP_kernel._TrivialDerivedDecorator_get_check_level(self)
9363 def __eq__(self, *args):
9365 __eq__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9366 __eq__(_TrivialDerivedDecorator self, Particle d) -> bool
9368 return _IMP_kernel._TrivialDerivedDecorator___eq__(self, *args)
9371 def __ne__(self, *args):
9373 __ne__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9374 __ne__(_TrivialDerivedDecorator self, Particle d) -> bool
9376 return _IMP_kernel._TrivialDerivedDecorator___ne__(self, *args)
9379 def __le__(self, *args):
9381 __le__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9382 __le__(_TrivialDerivedDecorator self, Particle d) -> bool
9384 return _IMP_kernel._TrivialDerivedDecorator___le__(self, *args)
9387 def __lt__(self, *args):
9389 __lt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9390 __lt__(_TrivialDerivedDecorator self, Particle d) -> bool
9392 return _IMP_kernel._TrivialDerivedDecorator___lt__(self, *args)
9395 def __ge__(self, *args):
9397 __ge__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9398 __ge__(_TrivialDerivedDecorator self, Particle d) -> bool
9400 return _IMP_kernel._TrivialDerivedDecorator___ge__(self, *args)
9403 def __gt__(self, *args):
9405 __gt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9406 __gt__(_TrivialDerivedDecorator self, Particle d) -> bool
9408 return _IMP_kernel._TrivialDerivedDecorator___gt__(self, *args)
9412 """__hash__(_TrivialDerivedDecorator self) -> std::size_t"""
9413 return _IMP_kernel._TrivialDerivedDecorator___hash__(self)
9417 """__str__(_TrivialDerivedDecorator self) -> std::string"""
9418 return _IMP_kernel._TrivialDerivedDecorator___str__(self)
9422 """__repr__(_TrivialDerivedDecorator self) -> std::string"""
9423 return _IMP_kernel._TrivialDerivedDecorator___repr__(self)
9425 __swig_destroy__ = _IMP_kernel.delete__TrivialDerivedDecorator
9426 __del__ =
lambda self:
None
9427 _TrivialDerivedDecorator_swigregister = _IMP_kernel._TrivialDerivedDecorator_swigregister
9428 _TrivialDerivedDecorator_swigregister(_TrivialDerivedDecorator)
9430 def _TrivialDerivedDecorator_setup_particle(*args):
9432 setup_particle(Model m, ParticleIndex pi) -> _TrivialDerivedDecorator
9433 _TrivialDerivedDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
9435 return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
9437 def _TrivialDerivedDecorator_get_is_setup(*args):
9439 get_is_setup(_ParticleAdaptor p) -> bool
9440 _TrivialDerivedDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
9442 return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
9444 class _TrivialTraitsDecorator(Decorator):
9445 """Proxy of C++ IMP::internal::_TrivialTraitsDecorator class."""
9447 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9449 def get_decorator_traits(self):
9450 """get_decorator_traits(_TrivialTraitsDecorator self) -> StringKey"""
9451 return _IMP_kernel._TrivialTraitsDecorator_get_decorator_traits(self)
9454 def get_default_decorator_traits():
9455 """get_default_decorator_traits() -> StringKey"""
9456 return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
9458 get_default_decorator_traits = staticmethod(get_default_decorator_traits)
9460 def __init__(self, *args):
9462 __init__(IMP::internal::_TrivialTraitsDecorator self) -> _TrivialTraitsDecorator
9463 __init__(IMP::internal::_TrivialTraitsDecorator self, Model m, ParticleIndex id, StringKey tr) -> _TrivialTraitsDecorator
9464 __init__(IMP::internal::_TrivialTraitsDecorator self, Model m, ParticleIndex id) -> _TrivialTraitsDecorator
9465 __init__(IMP::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
9466 __init__(IMP::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d) -> _TrivialTraitsDecorator
9468 this = _IMP_kernel.new__TrivialTraitsDecorator(*args)
9470 self.this.append(this)
9471 except __builtin__.Exception:
9474 def show(self, *args):
9476 show(_TrivialTraitsDecorator self, _ostream out)
9477 show(_TrivialTraitsDecorator self)
9479 return _IMP_kernel._TrivialTraitsDecorator_show(self, *args)
9482 def setup_particle(*args):
9484 setup_particle(Model m, ParticleIndex pi, StringKey tr) -> _TrivialTraitsDecorator
9485 setup_particle(Model m, ParticleIndex pi) -> _TrivialTraitsDecorator
9486 setup_particle(_ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
9487 setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
9489 return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
9491 setup_particle = staticmethod(setup_particle)
9493 def get_is_setup(*args):
9495 get_is_setup(_ParticleAdaptor p, StringKey tr) -> bool
9496 get_is_setup(_ParticleAdaptor p) -> bool
9497 get_is_setup(Model m, ParticleIndex pi, StringKey k) -> bool
9498 get_is_setup(Model m, ParticleIndex pi) -> bool
9500 return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
9502 get_is_setup = staticmethod(get_is_setup)
9504 def get_default_key():
9505 """get_default_key() -> StringKey"""
9506 return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
9508 get_default_key = staticmethod(get_default_key)
9510 def add_attribute(self, *args):
9512 add_attribute(_TrivialTraitsDecorator self, FloatKey k, IMP::Float v, bool opt)
9513 add_attribute(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
9514 add_attribute(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
9515 add_attribute(_TrivialTraitsDecorator self, FloatsKey a0, IMP::Floats a1)
9516 add_attribute(_TrivialTraitsDecorator self, IntsKey a0, IMP::Ints a1)
9517 add_attribute(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
9518 add_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
9519 add_attribute(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
9521 return _IMP_kernel._TrivialTraitsDecorator_add_attribute(self, *args)
9524 def get_value(self, *args):
9526 get_value(_TrivialTraitsDecorator self, FloatKey a0) -> IMP::Float
9527 get_value(_TrivialTraitsDecorator self, IntKey a0) -> IMP::Int
9528 get_value(_TrivialTraitsDecorator self, FloatsKey a0) -> IMP::Floats
9529 get_value(_TrivialTraitsDecorator self, IntsKey a0) -> IMP::Ints
9530 get_value(_TrivialTraitsDecorator self, StringKey a0) -> IMP::String
9531 get_value(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> Particle
9532 get_value(_TrivialTraitsDecorator self, ObjectKey a0) -> Object
9534 return _IMP_kernel._TrivialTraitsDecorator_get_value(self, *args)
9537 def set_value(self, *args):
9539 set_value(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
9540 set_value(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
9541 set_value(_TrivialTraitsDecorator self, FloatsKey a0, IMP::Floats a1)
9542 set_value(_TrivialTraitsDecorator self, IntsKey a0, IMP::Ints a1)
9543 set_value(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
9544 set_value(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
9545 set_value(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
9547 return _IMP_kernel._TrivialTraitsDecorator_set_value(self, *args)
9550 def remove_attribute(self, *args):
9552 remove_attribute(_TrivialTraitsDecorator self, FloatKey a0)
9553 remove_attribute(_TrivialTraitsDecorator self, IntKey a0)
9554 remove_attribute(_TrivialTraitsDecorator self, FloatsKey a0)
9555 remove_attribute(_TrivialTraitsDecorator self, IntsKey a0)
9556 remove_attribute(_TrivialTraitsDecorator self, StringKey a0)
9557 remove_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0)
9558 remove_attribute(_TrivialTraitsDecorator self, ObjectKey a0)
9560 return _IMP_kernel._TrivialTraitsDecorator_remove_attribute(self, *args)
9563 def has_attribute(self, *args):
9565 has_attribute(_TrivialTraitsDecorator self, FloatKey a0) -> bool
9566 has_attribute(_TrivialTraitsDecorator self, IntKey a0) -> bool
9567 has_attribute(_TrivialTraitsDecorator self, FloatsKey a0) -> bool
9568 has_attribute(_TrivialTraitsDecorator self, IntsKey a0) -> bool
9569 has_attribute(_TrivialTraitsDecorator self, StringKey a0) -> bool
9570 has_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> bool
9571 has_attribute(_TrivialTraitsDecorator self, ObjectKey a0) -> bool
9573 return _IMP_kernel._TrivialTraitsDecorator_has_attribute(self, *args)
9576 def get_derivative(self, a0):
9577 """get_derivative(_TrivialTraitsDecorator self, FloatKey a0) -> double"""
9578 return _IMP_kernel._TrivialTraitsDecorator_get_derivative(self, a0)
9582 """get_name(_TrivialTraitsDecorator self) -> std::string"""
9583 return _IMP_kernel._TrivialTraitsDecorator_get_name(self)
9586 def clear_caches(self):
9587 """clear_caches(_TrivialTraitsDecorator self)"""
9588 return _IMP_kernel._TrivialTraitsDecorator_clear_caches(self)
9591 def set_name(self, a0):
9592 """set_name(_TrivialTraitsDecorator self, std::string a0)"""
9593 return _IMP_kernel._TrivialTraitsDecorator_set_name(self, a0)
9597 """set_check_level(_TrivialTraitsDecorator self, IMP::CheckLevel a0)"""
9598 return _IMP_kernel._TrivialTraitsDecorator_set_check_level(self, a0)
9601 def add_to_derivative(self, a0, a1, a2):
9602 """add_to_derivative(_TrivialTraitsDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9603 return _IMP_kernel._TrivialTraitsDecorator_add_to_derivative(self, a0, a1, a2)
9606 def set_is_optimized(self, a0, a1):
9607 """set_is_optimized(_TrivialTraitsDecorator self, FloatKey a0, bool a1)"""
9608 return _IMP_kernel._TrivialTraitsDecorator_set_is_optimized(self, a0, a1)
9611 def get_is_optimized(self, a0):
9612 """get_is_optimized(_TrivialTraitsDecorator self, FloatKey a0) -> bool"""
9613 return _IMP_kernel._TrivialTraitsDecorator_get_is_optimized(self, a0)
9617 """get_check_level(_TrivialTraitsDecorator self) -> IMP::CheckLevel"""
9618 return _IMP_kernel._TrivialTraitsDecorator_get_check_level(self)
9621 def __eq__(self, *args):
9623 __eq__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9624 __eq__(_TrivialTraitsDecorator self, Particle d) -> bool
9626 return _IMP_kernel._TrivialTraitsDecorator___eq__(self, *args)
9629 def __ne__(self, *args):
9631 __ne__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9632 __ne__(_TrivialTraitsDecorator self, Particle d) -> bool
9634 return _IMP_kernel._TrivialTraitsDecorator___ne__(self, *args)
9637 def __le__(self, *args):
9639 __le__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9640 __le__(_TrivialTraitsDecorator self, Particle d) -> bool
9642 return _IMP_kernel._TrivialTraitsDecorator___le__(self, *args)
9645 def __lt__(self, *args):
9647 __lt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9648 __lt__(_TrivialTraitsDecorator self, Particle d) -> bool
9650 return _IMP_kernel._TrivialTraitsDecorator___lt__(self, *args)
9653 def __ge__(self, *args):
9655 __ge__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9656 __ge__(_TrivialTraitsDecorator self, Particle d) -> bool
9658 return _IMP_kernel._TrivialTraitsDecorator___ge__(self, *args)
9661 def __gt__(self, *args):
9663 __gt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9664 __gt__(_TrivialTraitsDecorator self, Particle d) -> bool
9666 return _IMP_kernel._TrivialTraitsDecorator___gt__(self, *args)
9670 """__hash__(_TrivialTraitsDecorator self) -> std::size_t"""
9671 return _IMP_kernel._TrivialTraitsDecorator___hash__(self)
9675 """__str__(_TrivialTraitsDecorator self) -> std::string"""
9676 return _IMP_kernel._TrivialTraitsDecorator___str__(self)
9680 """__repr__(_TrivialTraitsDecorator self) -> std::string"""
9681 return _IMP_kernel._TrivialTraitsDecorator___repr__(self)
9683 __swig_destroy__ = _IMP_kernel.delete__TrivialTraitsDecorator
9684 __del__ =
lambda self:
None
9685 _TrivialTraitsDecorator_swigregister = _IMP_kernel._TrivialTraitsDecorator_swigregister
9686 _TrivialTraitsDecorator_swigregister(_TrivialTraitsDecorator)
9688 def _TrivialTraitsDecorator_get_default_decorator_traits():
9689 """_TrivialTraitsDecorator_get_default_decorator_traits() -> StringKey"""
9690 return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
9692 def _TrivialTraitsDecorator_setup_particle(*args):
9694 setup_particle(Model m, ParticleIndex pi, StringKey tr) -> _TrivialTraitsDecorator
9695 setup_particle(Model m, ParticleIndex pi) -> _TrivialTraitsDecorator
9696 setup_particle(_ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
9697 _TrivialTraitsDecorator_setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
9699 return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
9701 def _TrivialTraitsDecorator_get_is_setup(*args):
9703 get_is_setup(_ParticleAdaptor p, StringKey tr) -> bool
9704 get_is_setup(_ParticleAdaptor p) -> bool
9705 get_is_setup(Model m, ParticleIndex pi, StringKey k) -> bool
9706 _TrivialTraitsDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
9708 return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
9710 def _TrivialTraitsDecorator_get_default_key():
9711 """_TrivialTraitsDecorator_get_default_key() -> StringKey"""
9712 return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
9715 def __lshift__(*args):
9717 __lshift__(_ostream out, _TrivialDecorator n) -> _ostream
9718 __lshift__(_ostream out, _TrivialDerivedDecorator n) -> _ostream
9719 __lshift__(_ostream out, _TrivialTraitsDecorator n) -> _ostream
9721 return _IMP_kernel.__lshift__(*args)
9722 class _ConstOptimizer(Optimizer):
9723 """Proxy of C++ IMP::internal::_ConstOptimizer class."""
9725 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9727 def __init__(self, m):
9728 """__init__(IMP::internal::_ConstOptimizer self, Model m) -> _ConstOptimizer"""
9729 this = _IMP_kernel.new__ConstOptimizer(m)
9731 self.this.append(this)
9732 except __builtin__.Exception:
9735 def do_optimize(self, max_steps):
9736 """do_optimize(_ConstOptimizer self, unsigned int max_steps) -> IMP::Float"""
9737 return _IMP_kernel._ConstOptimizer_do_optimize(self, max_steps)
9740 def get_version_info(self):
9741 """get_version_info(_ConstOptimizer self) -> VersionInfo"""
9742 return _IMP_kernel._ConstOptimizer_get_version_info(self)
9746 """__str__(_ConstOptimizer self) -> std::string"""
9747 return _IMP_kernel._ConstOptimizer___str__(self)
9751 """__repr__(_ConstOptimizer self) -> std::string"""
9752 return _IMP_kernel._ConstOptimizer___repr__(self)
9757 return _object_cast_to__ConstOptimizer(o)
9759 _ConstOptimizer_swigregister = _IMP_kernel._ConstOptimizer_swigregister
9760 _ConstOptimizer_swigregister(_ConstOptimizer)
9763 def get_particle(p):
9764 """get_particle(Particle p) -> Particle"""
9765 return _IMP_kernel.get_particle(p)
9767 def _decorator_test(p):
9768 """_decorator_test(Particle p)"""
9769 return _IMP_kernel._decorator_test(p)
9771 def _overloaded_decorator(*args):
9773 _overloaded_decorator(_TrivialDecorator a) -> int
9774 _overloaded_decorator(_TrivialDerivedDecorator a) -> int
9776 return _IMP_kernel._overloaded_decorator(*args)
9778 def _take_particles(*args):
9780 _take_particles(IMP::Particles const & ps) -> unsigned int
9781 _take_particles(Model m, IMP::Particles const & ps) -> unsigned int
9782 _take_particles(Model m, IMP::Particles const & ps, TextOutput out) -> unsigned int
9784 return _IMP_kernel._take_particles(*args)
9786 def _give_particles(m):
9787 """_give_particles(Model m) -> IMP::Particles const &"""
9788 return _IMP_kernel._give_particles(m)
9790 def _pass_particles(ps):
9791 """_pass_particles(IMP::Particles const & ps) -> IMP::Particles const &"""
9792 return _IMP_kernel._pass_particles(ps)
9794 def _pass_particle(ps):
9795 """_pass_particle(Particle ps) -> Particle"""
9796 return _IMP_kernel._pass_particle(ps)
9798 def _pass_particle_pair(pp):
9799 """_pass_particle_pair(IMP::ParticlePair const & pp) -> IMP::ParticlePair const &"""
9800 return _IMP_kernel._pass_particle_pair(pp)
9802 def _give_particles_copy(m):
9803 """_give_particles_copy(Model m) -> IMP::Particles"""
9804 return _IMP_kernel._give_particles_copy(m)
9806 def _pass_float_keys(input):
9807 """_pass_float_keys(IMP::FloatKeys const & input) -> IMP::FloatKeys"""
9808 return _IMP_kernel._pass_float_keys(input)
9812 _pass(IMP::Particles const & p) -> IMP::Particles const
9813 _pass(IMP::Restraints const & p) -> IMP::Restraints const &
9815 return _IMP_kernel._pass(*args)
9817 def _pass_decorators(p):
9818 """_pass_decorators(IMP::internal::_TrivialDecorators const & p) -> IMP::internal::_TrivialDecorators const &"""
9819 return _IMP_kernel._pass_decorators(p)
9821 def _pass_decorator_traits(p):
9822 """_pass_decorator_traits(IMP::internal::_TrivialTraitsDecorators const & p) -> IMP::internal::_TrivialTraitsDecorators const &"""
9823 return _IMP_kernel._pass_decorator_traits(p)
9825 def _pass_particle_pairs(p):
9826 """_pass_particle_pairs(IMP::ParticlePairsTemp const & p) -> IMP::ParticlePairsTemp"""
9827 return _IMP_kernel._pass_particle_pairs(p)
9829 def _pass_particle_index_pairs(p):
9830 """_pass_particle_index_pairs(IMP::ParticleIndexPairs const & p) -> IMP::ParticleIndexPairs"""
9831 return _IMP_kernel._pass_particle_index_pairs(p)
9833 def _pass_model_objects(p):
9834 """_pass_model_objects(IMP::ModelObjectsTemp const & p) -> IMP::ModelObjectsTemp"""
9835 return _IMP_kernel._pass_model_objects(p)
9837 def _pass_particles_temps(ps):
9838 """_pass_particles_temps(IMP::ParticlesTemps const & ps) -> IMP::ParticlesTemps"""
9839 return _IMP_kernel._pass_particles_temps(ps)
9841 def _test_overload(*args):
9843 _test_overload(IMP::Particles const & ps) -> int
9844 _test_overload(IMP::Restraints const & ps) -> int
9846 return _IMP_kernel._test_overload(*args)
9848 def _get_range(m, k):
9849 """_get_range(Model m, FloatKey k) -> IMP::FloatRange"""
9850 return _IMP_kernel._get_range(m, k)
9852 def _create_particles_from_pdb(name, m):
9853 """_create_particles_from_pdb(std::string name, Model m) -> IMP::ParticleIndexes"""
9854 return _IMP_kernel._create_particles_from_pdb(name, m)
9855 class _LogPairScore(PairScore):
9856 """Proxy of C++ IMP::internal::_LogPairScore class."""
9858 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9859 __repr__ = _swig_repr
9862 """__init__(IMP::internal::_LogPairScore self) -> _LogPairScore"""
9863 this = _IMP_kernel.new__LogPairScore()
9865 self.this.append(this)
9866 except __builtin__.Exception:
9869 def do_get_inputs(self, arg2, arg3):
9870 """do_get_inputs(_LogPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
9871 return _IMP_kernel._LogPairScore_do_get_inputs(self, arg2, arg3)
9874 def get_version_info(self):
9875 """get_version_info(_LogPairScore self) -> VersionInfo"""
9876 return _IMP_kernel._LogPairScore_get_version_info(self)
9879 def get_particle_pairs(self):
9880 """get_particle_pairs(_LogPairScore self) -> IMP::ParticlePairsTemp"""
9881 return _IMP_kernel._LogPairScore_get_particle_pairs(self)
9885 """clear(_LogPairScore self)"""
9886 return _IMP_kernel._LogPairScore_clear(self)
9889 def get_contains(self, pp):
9890 """get_contains(_LogPairScore self, IMP::ParticlePair const & pp) -> bool"""
9891 return _IMP_kernel._LogPairScore_get_contains(self, pp)
9893 _LogPairScore_swigregister = _IMP_kernel._LogPairScore_swigregister
9894 _LogPairScore_swigregister(_LogPairScore)
9897 def _overloaded_particles(*args):
9899 _overloaded_particles(Particle arg1)
9900 _overloaded_particles(IMP::Particles const & arg1)
9901 _overloaded_particles(IMP::ParticlesTemp const & arg1)
9902 _overloaded_particles(Model arg1, IMP::ParticleIndexes const & arg2)
9903 _overloaded_particles(IMP::internal::_TrivialDecorators const & arg1)
9904 _overloaded_particles(_TrivialDecorator arg1)
9906 return _IMP_kernel._overloaded_particles(*args)
9907 class _ImplicitParticles(object):
9908 """Proxy of C++ IMP::internal::_ImplicitParticles class."""
9910 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9911 __repr__ = _swig_repr
9913 def __init__(self, *args):
9915 __init__(IMP::internal::_ImplicitParticles self, Particle arg2) -> _ImplicitParticles
9916 __init__(IMP::internal::_ImplicitParticles self, IMP::Particles const & arg2) -> _ImplicitParticles
9917 __init__(IMP::internal::_ImplicitParticles self, IMP::ParticlesTemp const & arg2) -> _ImplicitParticles
9918 __init__(IMP::internal::_ImplicitParticles self, Model arg2, IMP::ParticleIndexes const & arg3) -> _ImplicitParticles
9919 __init__(IMP::internal::_ImplicitParticles self, IMP::internal::_TrivialDecorators const & arg2) -> _ImplicitParticles
9920 __init__(IMP::internal::_ImplicitParticles self, _TrivialDecorator arg2) -> _ImplicitParticles
9922 this = _IMP_kernel.new__ImplicitParticles(*args)
9924 self.this.append(this)
9925 except __builtin__.Exception:
9927 __swig_destroy__ = _IMP_kernel.delete__ImplicitParticles
9928 __del__ =
lambda self:
None
9929 _ImplicitParticles_swigregister = _IMP_kernel._ImplicitParticles_swigregister
9930 _ImplicitParticles_swigregister(_ImplicitParticles)
9933 def _implicit_particles(arg1):
9934 """_implicit_particles(_ImplicitParticles arg1)"""
9935 return _IMP_kernel._implicit_particles(arg1)
9937 def _take_particle_adaptor(pa):
9938 """_take_particle_adaptor(_ParticleAdaptor pa) -> ParticleIndex"""
9939 return _IMP_kernel._take_particle_adaptor(pa)
9941 def _take_particle_indexes_adaptor(pa):
9942 """_take_particle_indexes_adaptor(_ParticleIndexesAdaptor pa) -> IMP::ParticleIndexes"""
9943 return _IMP_kernel._take_particle_indexes_adaptor(pa)
9944 class ScopedSetFloatAttribute(_RAII):
9945 """Proxy of C++ IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> class."""
9947 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
9949 def __init__(self, *args):
9951 __init__(IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> self) -> ScopedSetFloatAttribute
9952 __init__(IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> self, Particle p, FloatKey key, double const & value) -> ScopedSetFloatAttribute
9954 this = _IMP_kernel.new_ScopedSetFloatAttribute(*args)
9956 self.this.append(this)
9957 except __builtin__.Exception:
9960 def set(self, p, key, value):
9961 """set(ScopedSetFloatAttribute self, Particle p, FloatKey key, double const & value)"""
9962 return _IMP_kernel.ScopedSetFloatAttribute_set(self, p, key, value)
9966 """reset(ScopedSetFloatAttribute self)"""
9967 return _IMP_kernel.ScopedSetFloatAttribute_reset(self)
9969 __swig_destroy__ = _IMP_kernel.delete_ScopedSetFloatAttribute
9970 __del__ =
lambda self:
None
9972 def show(self, *args):
9974 show(ScopedSetFloatAttribute self, _ostream out)
9975 show(ScopedSetFloatAttribute self)
9977 return _IMP_kernel.ScopedSetFloatAttribute_show(self, *args)
9981 """__str__(ScopedSetFloatAttribute self) -> std::string"""
9982 return _IMP_kernel.ScopedSetFloatAttribute___str__(self)
9986 """__repr__(ScopedSetFloatAttribute self) -> std::string"""
9987 return _IMP_kernel.ScopedSetFloatAttribute___repr__(self)
9989 ScopedSetFloatAttribute_swigregister = _IMP_kernel.ScopedSetFloatAttribute_swigregister
9990 ScopedSetFloatAttribute_swigregister(ScopedSetFloatAttribute)
9993 def _get_module_data_path(module, file_name):
9994 """_get_module_data_path(std::string module, std::string file_name) -> std::string"""
9995 return _IMP_kernel._get_module_data_path(module, file_name)
9997 def _get_module_example_path(module, file_name):
9998 """_get_module_example_path(std::string module, std::string file_name) -> std::string"""
9999 return _IMP_kernel._get_module_example_path(module, file_name)
10008 if sys.platform ==
'win32' and 'IMP_LD_PATH' in os.environ:
10009 dirs = os.environ[
'IMP_LD_PATH'].split(
":")
10010 pathcomps = os.environ[
'PATH'].split(
";")
10012 if d
not in pathcomps:
10013 os.environ[
'PATH'] = d +
';' + os.environ[
'PATH']
10021 """Allow command line tools to easily implement multiple commands.
10022 Typically, an IMP command line tool will use an instance of this class
10023 to provide a consistent interface to multiple distinct commands
10024 from a single binary, rather than providing a potentially large
10025 number of binaries. This is similar to the way a number of common
10026 command line tools outside of IMP function (e.g. Git provides a single
10027 `git` tool which implements multiple commands - `git add`, `git commit`,
10028 `git push` and so on).
10030 Each command is implemented with a Python module of the same name
10031 that can be imported from the module (for example, if `module_name`
10032 is `IMP.foo`, the `bar` command is provided by the `IMP.foo.bar` Python
10033 module, which would usually be found as `modules/foo/pyext/src/bar.py`).
10034 Each such module should have a docstring and a `%main()` method
10035 that takes no arguments (the module should also call its `%main()` method
10036 if it is run directly, i.e. with something like
10037 `if __name__=="__main__": %main()`). The encompassing module
10038 (`IMP.foo` in the example) should define `_all_commands` as a Python
10039 list of all valid commands.
10041 See the `multifit` and `cnmultifit` command line tools for example
10047 @param short_help A few words that describe the command line tool.
10048 @param long_help Longer text, used in the `help` command.
10049 @param module_name Name of the module (e.g. `IMP.foo`) that
10050 implements the commands.
10052 self.short_help = short_help
10053 self.long_help = long_help
10054 self.module_name = module_name
10055 self._all_commands = self.import_module()._all_commands
10056 self._progname = os.path.basename(sys.argv[0])
10059 """Call this method to act upon the user-provided command line"""
10060 if len(sys.argv) <= 1:
10061 print(self.short_help +
" Use '%s help' for help." % self._progname)
10063 command = sys.argv[1]
10064 if command
in (
'help',
'--help',
'-h'):
10065 if len(sys.argv) == 3:
10066 self.show_command_help(sys.argv[2])
10069 elif command ==
'--version':
10070 self.show_version()
10071 elif command
in self._all_commands:
10072 self.do_command(command)
10074 self.unknown_command(command)
10076 def import_module(self, mod=None):
10077 modname = self.module_name
10078 if mod
is not None:
10079 modname +=
"." + mod
10080 return __import__(modname, {}, {}, [
''])
10082 def unknown_command(self, command):
10083 print(
"Unknown command: '%s'" % command)
10084 print(
"Use '%s help' for help." % self._progname)
10087 def _get_version(self):
10090 def show_version(self):
10091 print(self._progname +
' ' + self._get_version())
10093 def show_help(self):
10094 ver = self._get_version()
10095 print(
"%s, version %s." % (self._progname, ver))
10096 print(self.long_help +
"""
10098 This program is part of IMP, the Integrative Modeling Platform,
10099 which is Copyright 2007-2020 IMP Inventors.
10100 For additional information about IMP, see <https://integrativemodeling.org>.
10102 Usage: %s <command> [options] [args]
10104 Commands:""" % self._progname)
10105 commands = self._all_commands[:] + [
'help']
10107 cmdlen = max([len(c)
for c
in commands])
10110 doc =
'Get help on using %s.' % self._progname
10112 doc = self.import_module(c).__doc__
or "<no help>"
10113 c +=
' ' * (cmdlen - len(c))
10114 print(
' ' + c +
' ' + doc)
10116 Use "%s help <command>" for detailed help on any command
10117 or "%s --version" to see the version number.""" % (self._progname,
10120 def do_command(self, command):
10121 mod = self.import_module(command)
10122 sys.argv[0] = self._progname +
' ' + command
10126 def show_command_help(self, command):
10127 if command ==
'help':
10129 elif command
in self._all_commands
or command ==
'help':
10130 mod = self.import_module(command)
10131 sys.argv = [self._progname +
' ' + command,
'--help']
10134 self.unknown_command(command)
10141 g = networkx.DiGraph()
10142 if len(ig.get_vertices()) == 0:
10151 return self.p.get_name()
10153 def __call__(self, name):
10154 return self.p.__call__(name)
10156 for vi
in ig.get_vertices():
10157 n = ig.get_vertex_name(vi)
10158 g.add_node(NodeWrapper(n))
10159 for vi
in ig.get_vertices():
10160 n = ig.get_vertex_name(vi)
10161 for ni
in ig.get_out_neighbors(vi):
10162 nn = ig.get_vertex_name(ni)
10163 g.add_edge(NodeWrapper(n), NodeWrapper(nn))
10170 n0 = name.get_name()
10173 n1 = str(n0).replace(
'"',
'')
10174 n2 = n1.replace(
"\n",
'')
10177 from altgraph
import Graph, Dot
10178 graph = Graph.Graph()
10179 for i, v
in enumerate(g.get_vertices()):
10181 for i, v
in enumerate(g.get_vertices()):
10182 for n
in g.get_out_neighbors(v):
10183 graph.add_edge(v, n)
10184 dot = Dot.Dot(graph)
10185 for i, v
in enumerate(g.get_vertices()):
10186 dot.node_style(i, label=clean(g.get_vertex_name(v)))
10193 st = g.get_graphviz_string()
10194 open(tfn,
"w").write(st)
10197 except ImportError:
10199 sys.stderr.write(
"Cannot run dot on Python 2.3 systems.\n")
10202 print(
"running dot")
10203 sp = subprocess.Popen([
"dot",
"-Tpdf", tfn,
"-o" + tfon])
10207 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")
10210 if platform.system() ==
"Darwin":
10213 cmd = [
"gv",
"acroread",
"xpdf"]
10216 print(
"launching viewer " + c)
10218 subprocess.check_call([c, tfon])
10224 print(
"Could not display file. It is saved at " + tfon)
10234 """Mark a Python module as deprecated.
10235 @note The `module` argument would normally be `__name__`.
10236 @see [deprecation support](@ref deprecation)."""
10238 "Module %s is deprecated. %s\n" % (module, help_message))
10241 """Python decorator to mark a class as deprecated.
10242 @see [deprecation support](@ref deprecation)."""
10244 orig_init = obj.__init__
10247 @functools.wraps(orig_init, (
'__name__',
'__doc__'))
10248 def __init__(obj, *args, **keys):
10250 % (type(obj), help_message))
10251 orig_init(obj, *args, **keys)
10252 obj.__init__ = __init__
10257 """Python decorator to mark a method as deprecated.
10258 @see [deprecation support](@ref deprecation)."""
10259 def out_wrapper(obj):
10260 @functools.wraps(obj)
10261 def wrapper(cls, *args, **keys):
10263 % (obj.__name__, type(cls), help_message))
10264 return obj(cls, *args, **keys)
10269 """Python decorator to mark a function as deprecated.
10270 @see [deprecation support](@ref deprecation)."""
10271 def out_wrapper(obj):
10272 @functools.wraps(obj)
10273 def wrapper(*args, **keys):
10275 % (obj.__name__, help_message))
10276 return obj(*args, **keys)
10280 @contextlib.contextmanager
10282 """Context manager to temporarily allow (or disallow) deprecated code.
10283 @see [deprecation support](@ref deprecation)."""
10290 def _get_all_flags(ntokens):
10291 """_get_all_flags(unsigned int ntokens) -> IMP::Strings"""
10292 return _IMP_kernel._get_all_flags(ntokens)
10294 def _print_internal_help(out, description):
10295 """_print_internal_help(_ostream out, std::string description)"""
10296 return _IMP_kernel._print_internal_help(out, description)
10301 except ImportError:
10302 from .
import _compat_argparse
as argparse
10305 class _PassThroughAction(argparse.Action):
10306 """Pass an argument through to the IMP Boost parser"""
10307 def __call__(self, parser, namespace, values, option_string=None):
10308 parser._boost_command_line.append(option_string)
10310 parser._boost_command_line.append(values)
10313 if option_string
in (
'-h',
'--help',
'--help_advanced',
'--version'):
10314 parser._handle_boost()
10318 """IMP-specific subclass of argparse.ArgumentParser.
10319 This adds options common to all IMP applications
10320 (see IMP::setup_from_argv()).
10323 def __init__(self, *args, **kwargs):
10325 kwargs[
'add_help'] =
False
10326 super(ArgumentParser, self).__init__(*args, **kwargs)
10327 for ntoken
in (0, 1):
10328 flags = _get_all_flags(ntoken)
10330 arg = [
'-h',
'--help']
if f ==
'help' else [
'--' + f]
10331 self.add_argument(*arg, help=argparse.SUPPRESS,
10332 nargs=
None if ntoken
else 0,
10333 action=_PassThroughAction,
10334 default=argparse.SUPPRESS)
10337 """Parse the command line and return optional and positional arguments.
10338 This functions in the same way as the method in the base class
10339 argparse.ArgumentParser, except that it also processes optional
10340 arguments common to all IMP applications (these are not returned
10341 in `args`, but can be obtained in the usual way, e.g. by calling
10342 IMP::get_string_flag()).
10345 self._boost_command_line = [sys.argv[0]]
10346 ret = super(ArgumentParser, self).
parse_args(args, namespace)
10347 if len(self._boost_command_line) > 1:
10348 self._handle_boost()
10351 def _get_description(self):
10352 return self.format_help() +
"\nOptions common to all IMP applications:"
10354 def print_help(self, file=None):
10355 _print_internal_help(file
if file
else sys.stdout,
10356 self._get_description())
10358 def _handle_boost(self):
10360 self._get_description(),
10363 class RandomNumberGenerator(object):
10364 """Proxy of C++ IMP::RandomNumberGenerator class."""
10366 thisown = _swig_property(
lambda x: x.this.own(),
lambda x, v: x.this.own(v), doc=
'The membership flag')
10367 __repr__ = _swig_repr
10370 """seed(RandomNumberGenerator self, ::boost::int32_t x)"""
10371 return _IMP_kernel.RandomNumberGenerator_seed(self, x)
10374 def __call__(self):
10375 """__call__(RandomNumberGenerator self) -> int"""
10376 return _IMP_kernel.RandomNumberGenerator___call__(self)
10379 def __init__(self):
10380 """__init__(IMP::RandomNumberGenerator self) -> RandomNumberGenerator"""
10381 this = _IMP_kernel.new_RandomNumberGenerator()
10383 self.this.append(this)
10384 except __builtin__.Exception:
10386 __swig_destroy__ = _IMP_kernel.delete_RandomNumberGenerator
10387 __del__ =
lambda self:
None
10388 RandomNumberGenerator_swigregister = _IMP_kernel.RandomNumberGenerator_swigregister
10389 RandomNumberGenerator_swigregister(RandomNumberGenerator)
10394 get_random_float_uniform() -> float
10395 get_random_float_uniform(float min, float max) -> float
10397 return _IMP_kernel.get_random_float_uniform(*args)
10401 get_random_double_uniform() -> double
10402 get_random_double_uniform(double min, double max) -> double
10404 return _IMP_kernel.get_random_double_uniform(*args)
10406 def get_random_floats_normal(n, mean=0.0, stddev=1.0):
10408 get_random_floats_normal(unsigned int n, float mean=0.0, float stddev=1.0) -> IMP::Vector< float >
10409 get_random_floats_normal(unsigned int n, float mean=0.0) -> IMP::Vector< float >
10410 get_random_floats_normal(unsigned int n) -> IMP::Vector< float >
10412 return _IMP_kernel.get_random_floats_normal(n, mean, stddev)
10414 def get_random_doubles_normal(n, mean=0.0, stddev=1.0):
10416 get_random_doubles_normal(unsigned int n, double mean=0.0, double stddev=1.0) -> IMP::Vector< double >
10417 get_random_doubles_normal(unsigned int n, double mean=0.0) -> IMP::Vector< double >
10418 get_random_doubles_normal(unsigned int n) -> IMP::Vector< double >
10420 return _IMP_kernel.get_random_doubles_normal(n, mean, stddev)
10422 def get_random_floats_uniform(n):
10423 """get_random_floats_uniform(unsigned int n) -> IMP::Vector< float >"""
10424 return _IMP_kernel.get_random_floats_uniform(n)
10426 def get_random_doubles_uniform(n):
10427 """get_random_doubles_uniform(unsigned int n) -> IMP::Vector< double >"""
10428 return _IMP_kernel.get_random_doubles_uniform(n)
10431 """get_random_seed() -> boost::uint64_t"""
10432 return _IMP_kernel.get_random_seed()
10434 def _get_derivatives_numpy(m, k, m_pyobj):
10435 """_get_derivatives_numpy(Model m, FloatKey k, PyObject * m_pyobj) -> PyObject *"""
10436 return _IMP_kernel._get_derivatives_numpy(m, k, m_pyobj)
10438 def _get_floats_numpy(m, k, m_pyobj):
10439 """_get_floats_numpy(Model m, FloatKey k, PyObject * m_pyobj) -> PyObject *"""
10440 return _IMP_kernel._get_floats_numpy(m, k, m_pyobj)
10442 def _get_ints_numpy(m, k, m_pyobj):
10443 """_get_ints_numpy(Model m, IntKey k, PyObject * m_pyobj) -> PyObject *"""
10444 return _IMP_kernel._get_ints_numpy(m, k, m_pyobj)
10446 def _get_spheres_numpy(m, m_pyobj):
10447 """_get_spheres_numpy(Model m, PyObject * m_pyobj) -> PyObject *"""
10448 return _IMP_kernel._get_spheres_numpy(m, m_pyobj)
10450 def _get_sphere_derivatives_numpy(m, m_pyobj):
10451 """_get_sphere_derivatives_numpy(Model m, PyObject * m_pyobj) -> PyObject *"""
10452 return _IMP_kernel._get_sphere_derivatives_numpy(m, m_pyobj)
10455 """get_module_version() -> std::string const"""
10456 return _IMP_kernel.get_module_version()
10459 """get_example_path(std::string fname) -> std::string"""
10460 return _IMP_kernel.get_example_path(fname)
10463 """get_data_path(std::string fname) -> std::string"""
10464 return _IMP_kernel.get_data_path(fname)
10466 from .
import _version_check
10471 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)
Key< 10 > FloatsKey
The type used to identify float vector attributes in the Particles.
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
Key< 5 > IntsKey
The type used to identify int attributes in the Particles.
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.