IMP logo
IMP Reference Guide  2.14.0
The Integrative Modeling Platform
__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 3.0.10
3 #
4 # Do not make changes to this file unless you know what you are doing--modify
5 # the SWIG interface file instead.
6 
7 # This wrapper is part of IMP,
8 # Copyright 2007-2020 IMP Inventors. All rights reserved.
9 
10 from __future__ import print_function, division, absolute_import
11 
12 
13 
14 
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():
18  import importlib
19  pkg = __name__.rpartition('.')[0]
20  mname = '.'.join((pkg, '_IMP_kernel')).lstrip('.')
21  try:
22  return importlib.import_module(mname)
23  except ImportError:
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
30  import imp
31  fp = None
32  try:
33  fp, pathname, description = imp.find_module('_IMP_kernel', [dirname(__file__)])
34  except ImportError:
35  import _IMP_kernel
36  return _IMP_kernel
37  if fp is not None:
38  try:
39  _mod = imp.load_module('_IMP_kernel', fp, pathname, description)
40  finally:
41  fp.close()
42  return _mod
43  _IMP_kernel = swig_import_helper()
44  del swig_import_helper
45 else:
46  import _IMP_kernel
47 del _swig_python_version_info
48 try:
49  _swig_property = property
50 except NameError:
51  pass # Python < 2.2 doesn't have 'property'.
52 
53 try:
54  import builtins as __builtin__
55 except ImportError:
56  import __builtin__
57 
58 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
59  if (name == "thisown"):
60  return self.this.own(value)
61  if (name == "this"):
62  if type(value).__name__ == 'SwigPyObject':
63  self.__dict__[name] = value
64  return
65  method = class_type.__swig_setmethods__.get(name, None)
66  if method:
67  return method(self, value)
68  if (not static):
69  object.__setattr__(self, name, value)
70  else:
71  raise AttributeError("You cannot add attributes to %s" % self)
72 
73 
74 def _swig_setattr(self, class_type, name, value):
75  return _swig_setattr_nondynamic(self, class_type, name, value, 0)
76 
77 
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)
82  if method:
83  return method(self)
84  raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
85 
86 
87 def _swig_repr(self):
88  try:
89  strthis = "proxy of " + self.this.__repr__()
90  except __builtin__.Exception:
91  strthis = ""
92  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
93 
94 
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)
101  else:
102  raise AttributeError("You cannot add attributes to %s" % self)
103  return set_attr
104 
105 
106 try:
107  import weakref
108  weakref_proxy = weakref.proxy
109 except __builtin__.Exception:
110  weakref_proxy = lambda x: x
111 
112 
113 class IMP_KERNEL_SwigPyIterator(object):
114  """Proxy of C++ swig::IMP_KERNEL_SwigPyIterator class."""
115 
116  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
117 
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
123 
124  def value(self):
125  """value(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
126  return _IMP_kernel.IMP_KERNEL_SwigPyIterator_value(self)
127 
128 
129  def incr(self, n=1):
130  """
131  incr(IMP_KERNEL_SwigPyIterator self, size_t n=1) -> IMP_KERNEL_SwigPyIterator
132  incr(IMP_KERNEL_SwigPyIterator self) -> IMP_KERNEL_SwigPyIterator
133  """
134  return _IMP_kernel.IMP_KERNEL_SwigPyIterator_incr(self, n)
135 
136 
137  def decr(self, n=1):
138  """
139  decr(IMP_KERNEL_SwigPyIterator self, size_t n=1) -> IMP_KERNEL_SwigPyIterator
140  decr(IMP_KERNEL_SwigPyIterator self) -> IMP_KERNEL_SwigPyIterator
141  """
142  return _IMP_kernel.IMP_KERNEL_SwigPyIterator_decr(self, n)
143 
144 
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)
148 
149 
150  def equal(self, x):
151  """equal(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
152  return _IMP_kernel.IMP_KERNEL_SwigPyIterator_equal(self, x)
153 
154 
155  def copy(self):
156  """copy(IMP_KERNEL_SwigPyIterator self) -> IMP_KERNEL_SwigPyIterator"""
157  return _IMP_kernel.IMP_KERNEL_SwigPyIterator_copy(self)
158 
159 
160  def next(self):
161  """next(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
162  return _IMP_kernel.IMP_KERNEL_SwigPyIterator_next(self)
163 
164 
165  def __next__(self):
166  """__next__(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
167  return _IMP_kernel.IMP_KERNEL_SwigPyIterator___next__(self)
168 
169 
170  def previous(self):
171  """previous(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
172  return _IMP_kernel.IMP_KERNEL_SwigPyIterator_previous(self)
173 
174 
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)
178 
179 
180  def __eq__(self, x):
181  """__eq__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
182  return _IMP_kernel.IMP_KERNEL_SwigPyIterator___eq__(self, x)
183 
184 
185  def __ne__(self, x):
186  """__ne__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
187  return _IMP_kernel.IMP_KERNEL_SwigPyIterator___ne__(self, x)
188 
189 
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)
193 
194 
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)
198 
199 
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)
203 
204 
205  def __sub__(self, *args):
206  """
207  __sub__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator
208  __sub__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> ptrdiff_t
209  """
210  return _IMP_kernel.IMP_KERNEL_SwigPyIterator___sub__(self, *args)
211 
212  def __iter__(self):
213  return self
214 IMP_KERNEL_SwigPyIterator_swigregister = _IMP_kernel.IMP_KERNEL_SwigPyIterator_swigregister
215 IMP_KERNEL_SwigPyIterator_swigregister(IMP_KERNEL_SwigPyIterator)
216 
217 
218 _value_types=[]
219 _object_types=[]
220 _raii_types=[]
221 _plural_types=[]
222 
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
243 
244 import sys
245 class _DirectorObjects(object):
246  """@internal Simple class to keep references to director objects
247  to prevent premature deletion."""
248  def __init__(self):
249  self._objects = []
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)
255  def cleanup(self):
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]
262 # Do in two steps so the references are kept until the end of the
263 # function (deleting references may trigger a fresh call to this method)
264  self._objects = objs
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()
269 
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
274 
275 def set_check_level(tf):
276  """set_check_level(IMP::CheckLevel tf)"""
277  return _IMP_kernel.set_check_level(tf)
278 
279 def get_check_level():
280  """get_check_level() -> IMP::CheckLevel"""
281  return _IMP_kernel.get_check_level()
282 
283 from _IMP_kernel import Exception, InternalException, ModelException, EventException
284 from _IMP_kernel import UsageException, IndexException, IOException, ValueException
285 from _IMP_kernel import TypeException
286 
287 class _ostream(object):
288  """Proxy of C++ std::ostream class."""
289 
290  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
291 
292  def __init__(self, *args, **kwargs):
293  raise AttributeError("No constructor defined")
294  __repr__ = _swig_repr
295 
296  def write(self, osa_buf):
297  """write(_ostream self, char const * osa_buf)"""
298  return _IMP_kernel._ostream_write(self, osa_buf)
299 
300 _ostream_swigregister = _IMP_kernel._ostream_swigregister
301 _ostream_swigregister(_ostream)
302 
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
307 
308 _raii_types.append("SetLogState")
309 
310 
311 _raii_types.append("SetNumberOfThreads")
312 
313 
314 _raii_types.append("SetCheckState")
315 
316 
317 _object_types.append("Object")
318 
319 
320 def _object_cast_to_Object(o):
321  """_object_cast_to_Object(Object * o) -> Object"""
322  return _IMP_kernel._object_cast_to_Object(o)
323 
324 _object_types.append("_TestObject")
325 
326 
327 def _object_cast_to__TestObject(o):
328  """_object_cast_to__TestObject(Object * o) -> _TestObject"""
329  return _IMP_kernel._object_cast_to__TestObject(o)
330 
331 VersionInfos=list
332 _plural_types.append("VersionInfos")
333 _value_types.append("VersionInfo")
334 
335 
336 _raii_types.append("CreateLogContext")
337 
338 
339 _raii_types.append("WarningContext")
340 
341 
342 _raii_types.append("SetLogTarget")
343 
344 
345 _TestValues=list
346 _plural_types.append("_TestValues")
347 _value_types.append("_TestValue")
348 
349 
350 Floats=list
351 _plural_types.append("Floats")
352 _value_types.append("Float")
353 
354 
355 Ints=list
356 _plural_types.append("Ints")
357 _value_types.append("Int")
358 
359 
360 Strings=list
361 _plural_types.append("Strings")
362 _value_types.append("String")
363 
364 
365 _Protections=list
366 _plural_types.append("_Protections")
367 _value_types.append("_Protection")
368 
369 class _InputAdaptor(object):
370  """Proxy of C++ IMP::InputAdaptor class."""
371 
372  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
373 
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)
381 
382 class _NonCopyable(object):
383  """Proxy of C++ IMP::NonCopyable class."""
384 
385  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
386 
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)
394 
395 class _RAII(_NonCopyable):
396  """Proxy of C++ IMP::RAII class."""
397 
398  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
399 
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)
407 
408 class _Value(object):
409  """Proxy of C++ IMP::Value class."""
410 
411  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
412 
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)
420 
421 
422 def get_executable_name():
423  """get_executable_name() -> std::string"""
424  return _IMP_kernel.get_executable_name()
425 
426 def setup_from_argv(*args):
427  """
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
430  """
431  return _IMP_kernel.setup_from_argv(*args)
432 
433 def add_string_flag(name, default_value, description):
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)
436 
437 def get_string_flag(name):
438  """get_string_flag(std::string name) -> std::string"""
439  return _IMP_kernel.get_string_flag(name)
440 
441 def add_int_flag(name, default_value, description):
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)
444 
445 def get_int_flag(name):
446  """get_int_flag(std::string name) -> size_t"""
447  return _IMP_kernel.get_int_flag(name)
448 
449 def add_bool_flag(name, description):
450  """add_bool_flag(std::string name, std::string description)"""
451  return _IMP_kernel.add_bool_flag(name, description)
452 
453 def get_bool_flag(name):
454  """get_bool_flag(std::string name) -> bool"""
455  return _IMP_kernel.get_bool_flag(name)
456 
457 def add_float_flag(name, default_value, description):
458  """add_float_flag(std::string name, double default_value, std::string description)"""
459  return _IMP_kernel.add_float_flag(name, default_value, description)
460 
461 def get_float_flag(name):
462  """get_float_flag(std::string name) -> double"""
463  return _IMP_kernel.get_float_flag(name)
464 
465 def write_help(*args):
466  """
467  write_help(_ostream out)
468  write_help()
469  """
470  return _IMP_kernel.write_help(*args)
471 
472 def get_is_quick_test():
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."""
485 
486  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
487 
488  def __init__(self, *args):
489  """
490  __init__(IMP::VersionInfo self, std::string module, std::string version) -> VersionInfo
491  __init__(IMP::VersionInfo self) -> VersionInfo
492  """
493  this = _IMP_kernel.new_VersionInfo(*args)
494  try:
495  self.this.append(this)
496  except __builtin__.Exception:
497  self.this = this
498 
499  def get_module(self):
500  """get_module(VersionInfo self) -> std::string"""
501  return _IMP_kernel.VersionInfo_get_module(self)
502 
503 
504  def get_version(self):
505  """get_version(VersionInfo self) -> std::string"""
506  return _IMP_kernel.VersionInfo_get_version(self)
507 
508 
509  def show(self, *args):
510  """
511  show(VersionInfo self, _ostream out)
512  show(VersionInfo self)
513  """
514  return _IMP_kernel.VersionInfo_show(self, *args)
515 
516 
517  def __cmp__(self, o):
518  """__cmp__(VersionInfo self, VersionInfo o) -> int"""
519  return _IMP_kernel.VersionInfo___cmp__(self, o)
520 
521 
522  def __eq__(self, o):
523  """__eq__(VersionInfo self, VersionInfo o) -> bool"""
524  return _IMP_kernel.VersionInfo___eq__(self, o)
525 
526 
527  def __ne__(self, o):
528  """__ne__(VersionInfo self, VersionInfo o) -> bool"""
529  return _IMP_kernel.VersionInfo___ne__(self, o)
530 
531 
532  def __lt__(self, o):
533  """__lt__(VersionInfo self, VersionInfo o) -> bool"""
534  return _IMP_kernel.VersionInfo___lt__(self, o)
535 
536 
537  def __gt__(self, o):
538  """__gt__(VersionInfo self, VersionInfo o) -> bool"""
539  return _IMP_kernel.VersionInfo___gt__(self, o)
540 
541 
542  def __ge__(self, o):
543  """__ge__(VersionInfo self, VersionInfo o) -> bool"""
544  return _IMP_kernel.VersionInfo___ge__(self, o)
545 
546 
547  def __le__(self, o):
548  """__le__(VersionInfo self, VersionInfo o) -> bool"""
549  return _IMP_kernel.VersionInfo___le__(self, o)
550 
551 
552  def __str__(self):
553  """__str__(VersionInfo self) -> std::string"""
554  return _IMP_kernel.VersionInfo___str__(self)
555 
556 
557  def __repr__(self):
558  """__repr__(VersionInfo self) -> std::string"""
559  return _IMP_kernel.VersionInfo___repr__(self)
560 
561  __swig_destroy__ = _IMP_kernel.delete_VersionInfo
562  __del__ = lambda self: None
563 VersionInfo_swigregister = _IMP_kernel.VersionInfo_swigregister
564 VersionInfo_swigregister(VersionInfo)
565 
566 class TextOutput(_InputAdaptor):
567  """Proxy of C++ IMP::TextOutput class."""
568 
569  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
570  __repr__ = _swig_repr
571 
572  def __init__(self, *args):
573  """
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
582  """
583  this = _IMP_kernel.new_TextOutput(*args)
584  try:
585  self.this.append(this)
586  except __builtin__.Exception:
587  self.this = this
588 
589  def show(self, *args):
590  """
591  show(TextOutput self, _ostream out)
592  show(TextOutput self)
593  """
594  return _IMP_kernel.TextOutput_show(self, *args)
595 
596 
597  def get_name(self):
598  """get_name(TextOutput self) -> std::string"""
599  return _IMP_kernel.TextOutput_get_name(self)
600 
601  __swig_destroy__ = _IMP_kernel.delete_TextOutput
602  __del__ = lambda self: None
603 TextOutput_swigregister = _IMP_kernel.TextOutput_swigregister
604 TextOutput_swigregister(TextOutput)
605 
606 class TextInput(_InputAdaptor):
607  """Proxy of C++ IMP::TextInput class."""
608 
609  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
610  __repr__ = _swig_repr
611 
612  def __init__(self, *args):
613  """
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
620  """
621  this = _IMP_kernel.new_TextInput(*args)
622  try:
623  self.this.append(this)
624  except __builtin__.Exception:
625  self.this = this
626 
627  def show(self, *args):
628  """
629  show(TextInput self, _ostream out)
630  show(TextInput self)
631  """
632  return _IMP_kernel.TextInput_show(self, *args)
633 
634 
635  def get_name(self):
636  """get_name(TextInput self) -> std::string"""
637  return _IMP_kernel.TextInput_get_name(self)
638 
639  __swig_destroy__ = _IMP_kernel.delete_TextInput
640  __del__ = lambda self: None
641 TextInput_swigregister = _IMP_kernel.TextInput_swigregister
642 TextInput_swigregister(TextInput)
643 
644 class SetLogTarget(_RAII):
645  """Proxy of C++ IMP::SetLogTarget class."""
646 
647  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
648 
649  def __init__(self, *args):
650  """
651  __init__(IMP::SetLogTarget self) -> SetLogTarget
652  __init__(IMP::SetLogTarget self, TextOutput to) -> SetLogTarget
653  """
654  this = _IMP_kernel.new_SetLogTarget(*args)
655  try:
656  self.this.append(this)
657  except __builtin__.Exception:
658  self.this = this
659 
660  def set(self, to):
661  """set(SetLogTarget self, TextOutput to)"""
662  return _IMP_kernel.SetLogTarget_set(self, to)
663 
664 
665  def reset(self):
666  """reset(SetLogTarget self)"""
667  return _IMP_kernel.SetLogTarget_reset(self)
668 
669  __swig_destroy__ = _IMP_kernel.delete_SetLogTarget
670  __del__ = lambda self: None
671 
672  def show(self, *args):
673  """
674  show(SetLogTarget self, _ostream out)
675  show(SetLogTarget self)
676  """
677  return _IMP_kernel.SetLogTarget_show(self, *args)
678 
679 
680  def __enter__(self):
681  return self
682  def __exit__(self, exc_type, exc_val, exc_tb):
683  self.reset()
684  return False
685 
686 
687  def __str__(self):
688  """__str__(SetLogTarget self) -> std::string"""
689  return _IMP_kernel.SetLogTarget___str__(self)
690 
691 
692  def __repr__(self):
693  """__repr__(SetLogTarget self) -> std::string"""
694  return _IMP_kernel.SetLogTarget___repr__(self)
695 
696 SetLogTarget_swigregister = _IMP_kernel.SetLogTarget_swigregister
697 SetLogTarget_swigregister(SetLogTarget)
698 
699 
700 def create_temporary_file(*args):
701  """
702  create_temporary_file(std::string prefix, std::string suffix) -> TextOutput
703  create_temporary_file(std::string prefix) -> TextOutput
704  create_temporary_file() -> TextOutput
705  """
706  return _IMP_kernel.create_temporary_file(*args)
707 
708 def create_temporary_file_name(*args):
709  """
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
713  """
714  return _IMP_kernel.create_temporary_file_name(*args)
715 
716 def get_relative_path(base, relative):
717  """get_relative_path(std::string base, std::string relative) -> std::string"""
718  return _IMP_kernel.get_relative_path(base, relative)
719 
720 def get_absolute_path(file):
721  """get_absolute_path(std::string file) -> std::string"""
722  return _IMP_kernel.get_absolute_path(file)
723 
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)
727 
728 def pop_log_context():
729  """pop_log_context()"""
730  return _IMP_kernel.pop_log_context()
731 
732 def add_to_log(*args):
733  """
734  add_to_log(std::string to_write)
735  add_to_log(IMP::LogLevel level, std::string to_write)
736  """
737  return _IMP_kernel.add_to_log(*args)
738 
739 def set_log_level(l):
740  """set_log_level(IMP::LogLevel l)"""
741  return _IMP_kernel.set_log_level(l)
742 
743 def set_log_timer(tb):
744  """set_log_timer(bool tb)"""
745  return _IMP_kernel.set_log_timer(tb)
746 
747 def reset_log_timer():
748  """reset_log_timer()"""
749  return _IMP_kernel.reset_log_timer()
750 
751 def get_log_level():
752  """get_log_level() -> IMP::LogLevel"""
753  return _IMP_kernel.get_log_level()
754 
755 def set_progress_display(description, steps):
756  """set_progress_display(std::string description, unsigned int steps)"""
757  return _IMP_kernel.set_progress_display(description, steps)
758 
759 def add_to_progress_display(step=1):
760  """
761  add_to_progress_display(unsigned int step=1)
762  add_to_progress_display()
763  """
764  return _IMP_kernel.add_to_progress_display(step)
765 class Object(_NonCopyable):
766  """Proxy of C++ IMP::Object class."""
767 
768  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
769 
770  def __init__(self, name):
771  """__init__(IMP::Object self, std::string name) -> Object"""
772  if self.__class__ == Object:
773  _self = None
774  else:
775  _self = self
776  this = _IMP_kernel.new_Object(_self, name)
777  try:
778  self.this.append(this)
779  except __builtin__.Exception:
780  self.this = this
781 
782  if self.__class__ != Object:
783  _director_objects.register(self)
784 
785 
786 
787  __swig_destroy__ = _IMP_kernel.delete_Object
788  __del__ = lambda self: None
789 
790  def __hash__(self):
791  """__hash__(Object self) -> std::size_t"""
792  return _IMP_kernel.Object___hash__(self)
793 
794 
795  def set_log_level(self, l):
796  """set_log_level(Object self, IMP::LogLevel l)"""
797  return _IMP_kernel.Object_set_log_level(self, l)
798 
799 
800  def set_check_level(self, l):
801  """set_check_level(Object self, IMP::CheckLevel l)"""
802  return _IMP_kernel.Object_set_check_level(self, l)
803 
804 
805  def get_log_level(self):
806  """get_log_level(Object self) -> IMP::LogLevel"""
807  return _IMP_kernel.Object_get_log_level(self)
808 
809 
810  def get_check_level(self):
811  """get_check_level(Object self) -> IMP::CheckLevel"""
812  return _IMP_kernel.Object_get_check_level(self)
813 
814 
815  def get_version_info(self):
816  """get_version_info(Object self) -> VersionInfo"""
817  return _IMP_kernel.Object_get_version_info(self)
818 
819 
820  def get_name(self):
821  """get_name(Object self) -> std::string const &"""
822  return _IMP_kernel.Object_get_name(self)
823 
824 
825  def set_name(self, name):
826  """set_name(Object self, std::string name)"""
827  return _IMP_kernel.Object_set_name(self, name)
828 
829 
830  def get_type_name(self):
831  """get_type_name(Object self) -> std::string"""
832  return _IMP_kernel.Object_get_type_name(self)
833 
834 
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)
838 
839 
840  def show(self, *args):
841  """
842  show(Object self, _ostream out)
843  show(Object self)
844  """
845  return _IMP_kernel.Object_show(self, *args)
846 
847 
848  def get_string(self):
849  """get_string(Object self) -> std::string"""
850  return _IMP_kernel.Object_get_string(self)
851 
852 
853  def _on_destruction(self):
854  """_on_destruction(Object self)"""
855  return _IMP_kernel.Object__on_destruction(self)
856 
857 
858  def get_is_valid(self):
859  """get_is_valid(Object self) -> bool"""
860  return _IMP_kernel.Object_get_is_valid(self)
861 
862 
863  def get_ref_count(self):
864  """get_ref_count(Object self) -> unsigned int"""
865  return _IMP_kernel.Object_get_ref_count(self)
866 
867 
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()
871 
872  get_number_of_live_objects = staticmethod(get_number_of_live_objects)
873 
874  def get_is_shared(self):
875  """get_is_shared(Object self) -> bool"""
876  return _IMP_kernel.Object_get_is_shared(self)
877 
878 
879  def clear_caches(self):
880  """clear_caches(Object self)"""
881  return _IMP_kernel.Object_clear_caches(self)
882 
883 
884  def do_destroy(self):
885  """do_destroy(Object self)"""
886  return _IMP_kernel.Object_do_destroy(self)
887 
888 
889  def __eq__(self, o):
890  """__eq__(Object self, Object o) -> bool"""
891  return _IMP_kernel.Object___eq__(self, o)
892 
893 
894  def __ne__(self, o):
895  """__ne__(Object self, Object o) -> bool"""
896  return _IMP_kernel.Object___ne__(self, o)
897 
898 
899  def __le__(self, o):
900  """__le__(Object self, Object o) -> bool"""
901  return _IMP_kernel.Object___le__(self, o)
902 
903 
904  def __lt__(self, o):
905  """__lt__(Object self, Object o) -> bool"""
906  return _IMP_kernel.Object___lt__(self, o)
907 
908 
909  def __ge__(self, o):
910  """__ge__(Object self, Object o) -> bool"""
911  return _IMP_kernel.Object___ge__(self, o)
912 
913 
914  def __gt__(self, o):
915  """__gt__(Object self, Object o) -> bool"""
916  return _IMP_kernel.Object___gt__(self, o)
917 
918 
919  def __str__(self):
920  """__str__(Object self) -> std::string"""
921  return _IMP_kernel.Object___str__(self)
922 
923 
924  def __repr__(self):
925  """__repr__(Object self) -> std::string"""
926  return _IMP_kernel.Object___repr__(self)
927 
928 
929  @staticmethod
930  def get_from(o):
931  return _object_cast_to_Object(o)
932 
933  def __disown__(self):
934  self.this.disown()
935  _IMP_kernel.disown_Object(self)
936  return weakref_proxy(self)
937 Object_swigregister = _IMP_kernel.Object_swigregister
938 Object_swigregister(Object)
939 
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()
943 
944 class SetLogState(_RAII):
945  """Proxy of C++ IMP::SetLogState class."""
946 
947  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
948 
949  def reset(self):
950  """reset(SetLogState self)"""
951  return _IMP_kernel.SetLogState_reset(self)
952 
953  __swig_destroy__ = _IMP_kernel.delete_SetLogState
954  __del__ = lambda self: None
955 
956  def show(self, *args):
957  """
958  show(SetLogState self, _ostream out)
959  show(SetLogState self)
960  """
961  return _IMP_kernel.SetLogState_show(self, *args)
962 
963 
964  def __init__(self, *args):
965  """
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
969  """
970  this = _IMP_kernel.new_SetLogState(*args)
971  try:
972  self.this.append(this)
973  except __builtin__.Exception:
974  self.this = this
975 
976  def set(self, *args):
977  """
978  set(SetLogState self, Object o, IMP::LogLevel l)
979  set(SetLogState self, IMP::LogLevel l)
980  """
981  return _IMP_kernel.SetLogState_set(self, *args)
982 
983 
984  def __enter__(self):
985  return self
986  def __exit__(self, exc_type, exc_val, exc_tb):
987  self.reset()
988  return False
989 
990 
991  def __str__(self):
992  """__str__(SetLogState self) -> std::string"""
993  return _IMP_kernel.SetLogState___str__(self)
994 
995 
996  def __repr__(self):
997  """__repr__(SetLogState self) -> std::string"""
998  return _IMP_kernel.SetLogState___repr__(self)
999 
1000 SetLogState_swigregister = _IMP_kernel.SetLogState_swigregister
1001 SetLogState_swigregister(SetLogState)
1002 
1003 class WarningContext(object):
1004  """Proxy of C++ IMP::WarningContext class."""
1005 
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)
1008 
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)
1012 
1013 
1014  def clear_warnings(self):
1015  """clear_warnings(WarningContext self)"""
1016  return _IMP_kernel.WarningContext_clear_warnings(self)
1017 
1018 
1019  def dump_warnings(self):
1020  """dump_warnings(WarningContext self)"""
1021  return _IMP_kernel.WarningContext_dump_warnings(self)
1022 
1023  __swig_destroy__ = _IMP_kernel.delete_WarningContext
1024  __del__ = lambda self: None
1025 
1026  def show(self, *args):
1027  """
1028  show(WarningContext self, _ostream out)
1029  show(WarningContext self)
1030  """
1031  return _IMP_kernel.WarningContext_show(self, *args)
1032 
1033 
1034  def __enter__(self):
1035  return self
1036  def __exit__(self, exc_type, exc_val, exc_tb):
1037  self.reset()
1038  return False
1039 
1040 
1041  def __str__(self):
1042  """__str__(WarningContext self) -> std::string"""
1043  return _IMP_kernel.WarningContext___str__(self)
1044 
1045 
1046  def __repr__(self):
1047  """__repr__(WarningContext self) -> std::string"""
1048  return _IMP_kernel.WarningContext___repr__(self)
1049 
1050 
1051  def __init__(self):
1052  """__init__(IMP::WarningContext self) -> WarningContext"""
1053  this = _IMP_kernel.new_WarningContext()
1054  try:
1055  self.this.append(this)
1056  except __builtin__.Exception:
1057  self.this = this
1058 WarningContext_swigregister = _IMP_kernel.WarningContext_swigregister
1059 WarningContext_swigregister(WarningContext)
1060 
1061 class CreateLogContext(_RAII):
1062  """Proxy of C++ IMP::CreateLogContext class."""
1063 
1064  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1065 
1066  def __init__(self, *args):
1067  """
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
1073  """
1074  this = _IMP_kernel.new_CreateLogContext(*args)
1075  try:
1076  self.this.append(this)
1077  except __builtin__.Exception:
1078  self.this = this
1079 
1080  def set(self, fname, object=None):
1081  """
1082  set(CreateLogContext self, char const * fname, Object object=None)
1083  set(CreateLogContext self, char const * fname)
1084  """
1085  return _IMP_kernel.CreateLogContext_set(self, fname, object)
1086 
1087 
1088  def reset(self):
1089  """reset(CreateLogContext self)"""
1090  return _IMP_kernel.CreateLogContext_reset(self)
1091 
1092  __swig_destroy__ = _IMP_kernel.delete_CreateLogContext
1093  __del__ = lambda self: None
1094 
1095  def show(self, *args):
1096  """
1097  show(CreateLogContext self, _ostream out)
1098  show(CreateLogContext self)
1099  """
1100  return _IMP_kernel.CreateLogContext_show(self, *args)
1101 
1102 
1103  def __enter__(self):
1104  return self
1105  def __exit__(self, exc_type, exc_val, exc_tb):
1106  self.reset()
1107  return False
1108 
1109 
1110  def __str__(self):
1111  """__str__(CreateLogContext self) -> std::string"""
1112  return _IMP_kernel.CreateLogContext___str__(self)
1113 
1114 
1115  def __repr__(self):
1116  """__repr__(CreateLogContext self) -> std::string"""
1117  return _IMP_kernel.CreateLogContext___repr__(self)
1118 
1119 CreateLogContext_swigregister = _IMP_kernel.CreateLogContext_swigregister
1120 CreateLogContext_swigregister(CreateLogContext)
1121 
1122 class SetCheckState(_RAII):
1123  """Proxy of C++ IMP::SetCheckState class."""
1124 
1125  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1126 
1127  def reset(self):
1128  """reset(SetCheckState self)"""
1129  return _IMP_kernel.SetCheckState_reset(self)
1130 
1131  __swig_destroy__ = _IMP_kernel.delete_SetCheckState
1132  __del__ = lambda self: None
1133 
1134  def show(self, *args):
1135  """
1136  show(SetCheckState self, _ostream out)
1137  show(SetCheckState self)
1138  """
1139  return _IMP_kernel.SetCheckState_show(self, *args)
1140 
1141 
1142  def __init__(self, *args):
1143  """
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
1147  """
1148  this = _IMP_kernel.new_SetCheckState(*args)
1149  try:
1150  self.this.append(this)
1151  except __builtin__.Exception:
1152  self.this = this
1153 
1154  def set(self, *args):
1155  """
1156  set(SetCheckState self, Object o, IMP::CheckLevel l)
1157  set(SetCheckState self, IMP::CheckLevel l)
1158  """
1159  return _IMP_kernel.SetCheckState_set(self, *args)
1160 
1161 
1162  def __enter__(self):
1163  return self
1164  def __exit__(self, exc_type, exc_val, exc_tb):
1165  self.reset()
1166  return False
1167 
1168 
1169  def __str__(self):
1170  """__str__(SetCheckState self) -> std::string"""
1171  return _IMP_kernel.SetCheckState___str__(self)
1172 
1173 
1174  def __repr__(self):
1175  """__repr__(SetCheckState self) -> std::string"""
1176  return _IMP_kernel.SetCheckState___repr__(self)
1177 
1178 SetCheckState_swigregister = _IMP_kernel.SetCheckState_swigregister
1179 SetCheckState_swigregister(SetCheckState)
1180 
1181 
1182 def get_unique_name(templ):
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."""
1187 
1188  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1189 
1190  def __init__(self, *args, **kwargs):
1191  raise AttributeError("No constructor defined")
1192 
1193  def show(self, *args):
1194  """
1195  show(_Protection self, _ostream out)
1196  show(_Protection self)
1197  """
1198  return _IMP_kernel._Protection_show(self, *args)
1199 
1200 
1201  def __str__(self):
1202  """__str__(_Protection self) -> std::string"""
1203  return _IMP_kernel._Protection___str__(self)
1204 
1205 
1206  def __repr__(self):
1207  """__repr__(_Protection self) -> std::string"""
1208  return _IMP_kernel._Protection___repr__(self)
1209 
1210  __swig_destroy__ = _IMP_kernel.delete__Protection
1211  __del__ = lambda self: None
1212 _Protection_swigregister = _IMP_kernel._Protection_swigregister
1213 _Protection_swigregister(_Protection)
1214 
1215 
1216 def _test_log():
1217  """_test_log()"""
1218  return _IMP_kernel._test_log()
1219 
1220 def _test_intranges(ips):
1221  """_test_intranges(IMP::IntRanges const & ips) -> int"""
1222  return _IMP_kernel._test_intranges(ips)
1223 
1224 def _test_intrange(*args):
1225  """
1226  _test_intrange(IMP::IntRange const & ips) -> IMP::IntRange
1227  _test_intrange() -> IMP::IntRange
1228  """
1229  return _IMP_kernel._test_intrange(*args)
1230 
1231 def _test_ifile(a):
1232  """_test_ifile(TextInput a) -> std::string"""
1233  return _IMP_kernel._test_ifile(a)
1234 
1235 def _test_ofile(a):
1236  """_test_ofile(TextOutput a) -> std::string"""
1237  return _IMP_kernel._test_ofile(a)
1238 
1239 def _test_ifile_overloaded(*args):
1240  """
1241  _test_ifile_overloaded(TextInput a, int i) -> std::string
1242  _test_ifile_overloaded(TextInput a, std::string st) -> std::string
1243  """
1244  return _IMP_kernel._test_ifile_overloaded(*args)
1245 
1246 def _test_ofile_overloaded(*args):
1247  """
1248  _test_ofile_overloaded(TextOutput a, int i) -> std::string
1249  _test_ofile_overloaded(TextOutput a, std::string st) -> std::string
1250  """
1251  return _IMP_kernel._test_ofile_overloaded(*args)
1252 class _TestValue(object):
1253  """Proxy of C++ IMP::internal::_TestValue class."""
1254 
1255  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1256 
1257  def __init__(self, i):
1258  """__init__(IMP::internal::_TestValue self, int i) -> _TestValue"""
1259  this = _IMP_kernel.new__TestValue(i)
1260  try:
1261  self.this.append(this)
1262  except __builtin__.Exception:
1263  self.this = this
1264 
1265  def show(self, *args):
1266  """
1267  show(_TestValue self, _ostream out)
1268  show(_TestValue self)
1269  """
1270  return _IMP_kernel._TestValue_show(self, *args)
1271 
1272 
1273  def __cmp__(self, o):
1274  """__cmp__(_TestValue self, _TestValue o) -> int"""
1275  return _IMP_kernel._TestValue___cmp__(self, o)
1276 
1277 
1278  def __eq__(self, o):
1279  """__eq__(_TestValue self, _TestValue o) -> bool"""
1280  return _IMP_kernel._TestValue___eq__(self, o)
1281 
1282 
1283  def __ne__(self, o):
1284  """__ne__(_TestValue self, _TestValue o) -> bool"""
1285  return _IMP_kernel._TestValue___ne__(self, o)
1286 
1287 
1288  def __lt__(self, o):
1289  """__lt__(_TestValue self, _TestValue o) -> bool"""
1290  return _IMP_kernel._TestValue___lt__(self, o)
1291 
1292 
1293  def __gt__(self, o):
1294  """__gt__(_TestValue self, _TestValue o) -> bool"""
1295  return _IMP_kernel._TestValue___gt__(self, o)
1296 
1297 
1298  def __ge__(self, o):
1299  """__ge__(_TestValue self, _TestValue o) -> bool"""
1300  return _IMP_kernel._TestValue___ge__(self, o)
1301 
1302 
1303  def __le__(self, o):
1304  """__le__(_TestValue self, _TestValue o) -> bool"""
1305  return _IMP_kernel._TestValue___le__(self, o)
1306 
1307 
1308  def get(self):
1309  """get(_TestValue self) -> int"""
1310  return _IMP_kernel._TestValue_get(self)
1311 
1312 
1313  def get_float(self):
1314  """get_float(_TestValue self) -> float const &"""
1315  return _IMP_kernel._TestValue_get_float(self)
1316 
1317 
1318  def get_double(self):
1319  """get_double(_TestValue self) -> double const &"""
1320  return _IMP_kernel._TestValue_get_double(self)
1321 
1322 
1323  def get_Float(self):
1324  """get_Float(_TestValue self) -> IMP::Float const &"""
1325  return _IMP_kernel._TestValue_get_Float(self)
1326 
1327 
1328  def get_int(self):
1329  """get_int(_TestValue self) -> int const &"""
1330  return _IMP_kernel._TestValue_get_int(self)
1331 
1332 
1333  def get_Int(self):
1334  """get_Int(_TestValue self) -> IMP::Int const &"""
1335  return _IMP_kernel._TestValue_get_Int(self)
1336 
1337 
1338  def get_string(self):
1339  """get_string(_TestValue self) -> std::string const &"""
1340  return _IMP_kernel._TestValue_get_string(self)
1341 
1342 
1343  def get_String(self):
1344  """get_String(_TestValue self) -> IMP::String const &"""
1345  return _IMP_kernel._TestValue_get_String(self)
1346 
1347 
1348  def __str__(self):
1349  """__str__(_TestValue self) -> std::string"""
1350  return _IMP_kernel._TestValue___str__(self)
1351 
1352 
1353  def __repr__(self):
1354  """__repr__(_TestValue self) -> std::string"""
1355  return _IMP_kernel._TestValue___repr__(self)
1356 
1357  __swig_destroy__ = _IMP_kernel.delete__TestValue
1358  __del__ = lambda self: None
1359 _TestValue_swigregister = _IMP_kernel._TestValue_swigregister
1360 _TestValue_swigregister(_TestValue)
1361 
1362 
1363 def _pass_plain_pair(p):
1364  """_pass_plain_pair(IMP::FloatPair p) -> IMP::FloatPair"""
1365  return _IMP_kernel._pass_plain_pair(p)
1366 
1367 def _pass_overloaded_strings(*args):
1368  """
1369  _pass_overloaded_strings(IMP::Strings const & a, int arg2) -> IMP::Strings
1370  _pass_overloaded_strings(IMP::Strings const & a) -> IMP::Strings
1371  """
1372  return _IMP_kernel._pass_overloaded_strings(*args)
1373 
1374 def _pass_pair(p):
1375  """_pass_pair(IMP::DerivativePair const & p) -> IMP::DerivativePair"""
1376  return _IMP_kernel._pass_pair(p)
1377 
1378 def _pass_floats(input):
1379  """_pass_floats(IMP::Floats const & input) -> IMP::Floats"""
1380  return _IMP_kernel._pass_floats(input)
1381 
1382 def _pass_ints(input):
1383  """_pass_ints(IMP::Ints input) -> IMP::Ints"""
1384  return _IMP_kernel._pass_ints(input)
1385 
1386 def _pass_ints_list(input):
1387  """_pass_ints_list(IMP::IntsList const & input) -> IMP::IntsList"""
1388  return _IMP_kernel._pass_ints_list(input)
1389 
1390 def _pass_ints_lists(input):
1391  """_pass_ints_lists(IMP::IntsLists const & input) -> IMP::IntsLists"""
1392  return _IMP_kernel._pass_ints_lists(input)
1393 
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."""
1399 
1400  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1401 
1402  def __init__(self):
1403  """__init__(IMP::internal::_TestObject self) -> _TestObject"""
1404  this = _IMP_kernel.new__TestObject()
1405  try:
1406  self.this.append(this)
1407  except __builtin__.Exception:
1408  self.this = this
1409 
1410  def get_version_info(self):
1411  """get_version_info(_TestObject self) -> VersionInfo"""
1412  return _IMP_kernel._TestObject_get_version_info(self)
1413 
1414 
1415  def __str__(self):
1416  """__str__(_TestObject self) -> std::string"""
1417  return _IMP_kernel._TestObject___str__(self)
1418 
1419 
1420  def __repr__(self):
1421  """__repr__(_TestObject self) -> std::string"""
1422  return _IMP_kernel._TestObject___repr__(self)
1423 
1424 
1425  @staticmethod
1426  def get_from(o):
1427  return _object_cast_to__TestObject(o)
1428 
1429 _TestObject_swigregister = _IMP_kernel._TestObject_swigregister
1430 _TestObject_swigregister(_TestObject)
1431 
1432 
1433 def get_live_object_names():
1434  """get_live_object_names() -> IMP::Strings"""
1435  return _IMP_kernel.get_live_object_names()
1436 
1437 def get_live_objects():
1438  """get_live_objects() -> IMP::Objects"""
1439  return _IMP_kernel.get_live_objects()
1440 
1441 def set_show_leaked_objects(tf):
1442  """set_show_leaked_objects(bool tf)"""
1443  return _IMP_kernel.set_show_leaked_objects(tf)
1444 
1445 def set_deprecation_warnings(tf):
1446  """set_deprecation_warnings(bool tf)"""
1447  return _IMP_kernel.set_deprecation_warnings(tf)
1448 
1450  """set_deprecation_exceptions(bool tf)"""
1451  return _IMP_kernel.set_deprecation_exceptions(tf)
1452 
1454  """get_deprecation_exceptions() -> bool"""
1455  return _IMP_kernel.get_deprecation_exceptions()
1456 
1457 def handle_use_deprecated(message):
1458  """handle_use_deprecated(std::string message)"""
1459  return _IMP_kernel.handle_use_deprecated(message)
1460 
1461 def get_number_of_threads():
1462  """get_number_of_threads() -> unsigned int"""
1463  return _IMP_kernel.get_number_of_threads()
1464 
1465 def set_number_of_threads(n):
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."""
1470 
1471  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1472 
1473  def __init__(self, *args):
1474  """
1475  __init__(IMP::SetNumberOfThreads self) -> SetNumberOfThreads
1476  __init__(IMP::SetNumberOfThreads self, unsigned int n) -> SetNumberOfThreads
1477  """
1478  this = _IMP_kernel.new_SetNumberOfThreads(*args)
1479  try:
1480  self.this.append(this)
1481  except __builtin__.Exception:
1482  self.this = this
1483 
1484  def set(self, n):
1485  """set(SetNumberOfThreads self, unsigned int n)"""
1486  return _IMP_kernel.SetNumberOfThreads_set(self, n)
1487 
1488 
1489  def reset(self):
1490  """reset(SetNumberOfThreads self)"""
1491  return _IMP_kernel.SetNumberOfThreads_reset(self)
1492 
1493  __swig_destroy__ = _IMP_kernel.delete_SetNumberOfThreads
1494  __del__ = lambda self: None
1495 
1496  def show(self, *args):
1497  """
1498  show(SetNumberOfThreads self, _ostream out)
1499  show(SetNumberOfThreads self)
1500  """
1501  return _IMP_kernel.SetNumberOfThreads_show(self, *args)
1502 
1503 
1504  def __enter__(self):
1505  return self
1506  def __exit__(self, exc_type, exc_val, exc_tb):
1507  self.reset()
1508  return False
1509 
1510 
1511  def __str__(self):
1512  """__str__(SetNumberOfThreads self) -> std::string"""
1513  return _IMP_kernel.SetNumberOfThreads___str__(self)
1514 
1515 
1516  def __repr__(self):
1517  """__repr__(SetNumberOfThreads self) -> std::string"""
1518  return _IMP_kernel.SetNumberOfThreads___repr__(self)
1519 
1520 SetNumberOfThreads_swigregister = _IMP_kernel.SetNumberOfThreads_swigregister
1521 SetNumberOfThreads_swigregister(SetNumberOfThreads)
1522 
1523 
1524 import os
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])
1528 
1529 def _forward_add_attribute(self, name, value, opt=None):
1530  if opt is not None:
1531  self.get_particle().add_attribute(name, value, opt)
1532  else:
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)
1538 
1539 
1540 build="release"
1541 
1542 
1543 _object_types.append("Constraint")
1544 
1545 
1546 def _object_cast_to_Constraint(o):
1547  """_object_cast_to_Constraint(Object o) -> Constraint"""
1548  return _IMP_kernel._object_cast_to_Constraint(o)
1549 
1550 _object_types.append("Undecorator")
1551 
1552 
1553 def _object_cast_to_Undecorator(o):
1554  """_object_cast_to_Undecorator(Object o) -> Undecorator"""
1555  return _IMP_kernel._object_cast_to_Undecorator(o)
1556 
1557 _object_types.append("Container")
1558 
1559 
1560 def _object_cast_to_Container(o):
1561  """_object_cast_to_Container(Object o) -> Container"""
1562  return _IMP_kernel._object_cast_to_Container(o)
1563 
1564 _object_types.append("Optimizer")
1565 
1566 
1567 def _object_cast_to_Optimizer(o):
1568  """_object_cast_to_Optimizer(Object o) -> Optimizer"""
1569  return _IMP_kernel._object_cast_to_Optimizer(o)
1570 
1571 _object_types.append("AttributeOptimizer")
1572 
1573 
1574 def _object_cast_to_AttributeOptimizer(o):
1575  """_object_cast_to_AttributeOptimizer(Object o) -> AttributeOptimizer"""
1576  return _IMP_kernel._object_cast_to_AttributeOptimizer(o)
1577 
1578 _object_types.append("OptimizerState")
1579 
1580 
1581 def _object_cast_to_OptimizerState(o):
1582  """_object_cast_to_OptimizerState(Object o) -> OptimizerState"""
1583  return _IMP_kernel._object_cast_to_OptimizerState(o)
1584 
1585 _object_types.append("PairContainer")
1586 
1587 
1588 def _object_cast_to_PairContainer(o):
1589  """_object_cast_to_PairContainer(Object o) -> PairContainer"""
1590  return _IMP_kernel._object_cast_to_PairContainer(o)
1591 
1592 _object_types.append("PairModifier")
1593 
1594 
1595 def _object_cast_to_PairModifier(o):
1596  """_object_cast_to_PairModifier(Object o) -> PairModifier"""
1597  return _IMP_kernel._object_cast_to_PairModifier(o)
1598 
1599 _object_types.append("PairScore")
1600 
1601 
1602 def _object_cast_to_PairScore(o):
1603  """_object_cast_to_PairScore(Object o) -> PairScore"""
1604  return _IMP_kernel._object_cast_to_PairScore(o)
1605 
1606 _object_types.append("QuadContainer")
1607 
1608 
1609 def _object_cast_to_QuadContainer(o):
1610  """_object_cast_to_QuadContainer(Object o) -> QuadContainer"""
1611  return _IMP_kernel._object_cast_to_QuadContainer(o)
1612 
1613 _object_types.append("QuadModifier")
1614 
1615 
1616 def _object_cast_to_QuadModifier(o):
1617  """_object_cast_to_QuadModifier(Object o) -> QuadModifier"""
1618  return _IMP_kernel._object_cast_to_QuadModifier(o)
1619 
1620 _object_types.append("QuadScore")
1621 
1622 
1623 def _object_cast_to_QuadScore(o):
1624  """_object_cast_to_QuadScore(Object o) -> QuadScore"""
1625  return _IMP_kernel._object_cast_to_QuadScore(o)
1626 
1627 _object_types.append("Refiner")
1628 
1629 
1630 def _object_cast_to_Refiner(o):
1631  """_object_cast_to_Refiner(Object o) -> Refiner"""
1632  return _IMP_kernel._object_cast_to_Refiner(o)
1633 
1634 _object_types.append("Restraint")
1635 
1636 
1637 def _object_cast_to_Restraint(o):
1638  """_object_cast_to_Restraint(Object o) -> Restraint"""
1639  return _IMP_kernel._object_cast_to_Restraint(o)
1640 
1641 _object_types.append("Sampler")
1642 
1643 
1644 def _object_cast_to_Sampler(o):
1645  """_object_cast_to_Sampler(Object o) -> Sampler"""
1646  return _IMP_kernel._object_cast_to_Sampler(o)
1647 
1648 _object_types.append("ScoreState")
1649 
1650 
1651 def _object_cast_to_ScoreState(o):
1652  """_object_cast_to_ScoreState(Object o) -> ScoreState"""
1653  return _IMP_kernel._object_cast_to_ScoreState(o)
1654 
1655 _object_types.append("SingletonContainer")
1656 
1657 
1658 def _object_cast_to_SingletonContainer(o):
1659  """_object_cast_to_SingletonContainer(Object o) -> SingletonContainer"""
1660  return _IMP_kernel._object_cast_to_SingletonContainer(o)
1661 
1662 _object_types.append("SingletonModifier")
1663 
1664 
1665 def _object_cast_to_SingletonModifier(o):
1666  """_object_cast_to_SingletonModifier(Object o) -> SingletonModifier"""
1667  return _IMP_kernel._object_cast_to_SingletonModifier(o)
1668 
1669 _object_types.append("SingletonScore")
1670 
1671 
1672 def _object_cast_to_SingletonScore(o):
1673  """_object_cast_to_SingletonScore(Object o) -> SingletonScore"""
1674  return _IMP_kernel._object_cast_to_SingletonScore(o)
1675 
1676 _object_types.append("TripletContainer")
1677 
1678 
1679 def _object_cast_to_TripletContainer(o):
1680  """_object_cast_to_TripletContainer(Object o) -> TripletContainer"""
1681  return _IMP_kernel._object_cast_to_TripletContainer(o)
1682 
1683 _object_types.append("TripletModifier")
1684 
1685 
1686 def _object_cast_to_TripletModifier(o):
1687  """_object_cast_to_TripletModifier(Object o) -> TripletModifier"""
1688  return _IMP_kernel._object_cast_to_TripletModifier(o)
1689 
1690 _object_types.append("TripletScore")
1691 
1692 
1693 def _object_cast_to_TripletScore(o):
1694  """_object_cast_to_TripletScore(Object o) -> TripletScore"""
1695  return _IMP_kernel._object_cast_to_TripletScore(o)
1696 
1697 _object_types.append("UnaryFunction")
1698 
1699 
1700 def _object_cast_to_UnaryFunction(o):
1701  """_object_cast_to_UnaryFunction(Object o) -> UnaryFunction"""
1702  return _IMP_kernel._object_cast_to_UnaryFunction(o)
1703 
1704 _object_types.append("RestraintInfo")
1705 
1706 
1707 def _object_cast_to_RestraintInfo(o):
1708  """_object_cast_to_RestraintInfo(Object o) -> RestraintInfo"""
1709  return _IMP_kernel._object_cast_to_RestraintInfo(o)
1710 
1711 _object_types.append("ConfigurationSet")
1712 
1713 
1714 def _object_cast_to_ConfigurationSet(o):
1715  """_object_cast_to_ConfigurationSet(Object o) -> ConfigurationSet"""
1716  return _IMP_kernel._object_cast_to_ConfigurationSet(o)
1717 
1718 _object_types.append("Configuration")
1719 
1720 
1721 def _object_cast_to_Configuration(o):
1722  """_object_cast_to_Configuration(Object o) -> Configuration"""
1723  return _IMP_kernel._object_cast_to_Configuration(o)
1724 
1725 _object_types.append("Model")
1726 
1727 
1728 def _object_cast_to_Model(o):
1729  """_object_cast_to_Model(Object o) -> Model"""
1730  return _IMP_kernel._object_cast_to_Model(o)
1731 
1732 _object_types.append("Particle")
1733 
1734 
1735 def _object_cast_to_Particle(o):
1736  """_object_cast_to_Particle(Object o) -> Particle"""
1737  return _IMP_kernel._object_cast_to_Particle(o)
1738 
1739 _object_types.append("RestraintSet")
1740 
1741 
1742 def _object_cast_to_RestraintSet(o):
1743  """_object_cast_to_RestraintSet(Object o) -> RestraintSet"""
1744  return _IMP_kernel._object_cast_to_RestraintSet(o)
1745 
1746 ParticlePairsTemp=list
1747 _plural_types.append("ParticlePairsTemp")
1748 _value_types.append("ParticlePair")
1749 
1750 
1751 ParticleTripletsTemp=list
1752 _plural_types.append("ParticleTripletsTemp")
1753 _value_types.append("ParticleTriplet")
1754 
1755 
1756 ParticleQuadsTemp=list
1757 _plural_types.append("ParticleQuadsTemp")
1758 _value_types.append("ParticleQuad")
1759 
1760 
1761 ParticleIndexPairs=list
1762 _plural_types.append("ParticleIndexPairs")
1763 _value_types.append("ParticleIndexPair")
1764 
1765 
1766 ParticleIndexTriplets=list
1767 _plural_types.append("ParticleIndexTriplets")
1768 _value_types.append("ParticleIndexTriplet")
1769 
1770 
1771 ParticleIndexQuads=list
1772 _plural_types.append("ParticleIndexQuads")
1773 _value_types.append("ParticleIndexQuad")
1774 
1775 
1776 _object_types.append("SingletonPredicate")
1777 
1778 
1779 def _object_cast_to_SingletonPredicate(o):
1780  """_object_cast_to_SingletonPredicate(Object o) -> SingletonPredicate"""
1781  return _IMP_kernel._object_cast_to_SingletonPredicate(o)
1782 
1783 _object_types.append("PairPredicate")
1784 
1785 
1786 def _object_cast_to_PairPredicate(o):
1787  """_object_cast_to_PairPredicate(Object o) -> PairPredicate"""
1788  return _IMP_kernel._object_cast_to_PairPredicate(o)
1789 
1790 _object_types.append("TripletPredicate")
1791 
1792 
1793 def _object_cast_to_TripletPredicate(o):
1794  """_object_cast_to_TripletPredicate(Object o) -> TripletPredicate"""
1795  return _IMP_kernel._object_cast_to_TripletPredicate(o)
1796 
1797 _object_types.append("QuadPredicate")
1798 
1799 
1800 def _object_cast_to_QuadPredicate(o):
1801  """_object_cast_to_QuadPredicate(Object o) -> QuadPredicate"""
1802  return _IMP_kernel._object_cast_to_QuadPredicate(o)
1803 
1804 _object_types.append("SaveToConfigurationSetOptimizerState")
1805 
1806 
1807 def _object_cast_to_SaveToConfigurationSetOptimizerState(o):
1808  """_object_cast_to_SaveToConfigurationSetOptimizerState(Object o) -> SaveToConfigurationSetOptimizerState"""
1809  return _IMP_kernel._object_cast_to_SaveToConfigurationSetOptimizerState(o)
1810 
1811 EvaluationStates=list
1812 _plural_types.append("EvaluationStates")
1813 _value_types.append("EvaluationState")
1814 
1815 
1816 ScoreAccumulators=list
1817 _plural_types.append("ScoreAccumulators")
1818 _value_types.append("ScoreAccumulator")
1819 
1820 
1821 ParticleIndexes=list
1822 _plural_types.append("ParticleIndexes")
1823 _value_types.append("ParticleIndex")
1824 
1825 
1826 FloatIndexes=list
1827 _plural_types.append("FloatIndexes")
1828 _value_types.append("FloatIndex")
1829 
1830 
1831 FloatKeys=list
1832 _plural_types.append("FloatKeys")
1833 _value_types.append("FloatKey")
1834 
1835 
1836 FloatsKeys=list
1837 _plural_types.append("FloatsKeys")
1838 _value_types.append("FloatsKey")
1839 
1840 
1841 IntKeys=list
1842 _plural_types.append("IntKeys")
1843 _value_types.append("IntKey")
1844 
1845 
1846 IntsKeys=list
1847 _plural_types.append("IntsKeys")
1848 _value_types.append("IntsKey")
1849 
1850 
1851 StringKeys=list
1852 _plural_types.append("StringKeys")
1853 _value_types.append("StringKey")
1854 
1855 
1856 ParticleIndexKeys=list
1857 _plural_types.append("ParticleIndexKeys")
1858 _value_types.append("ParticleIndexKey")
1859 
1860 
1861 ParticleIndexesKeys=list
1862 _plural_types.append("ParticleIndexesKeys")
1863 _value_types.append("ParticleIndexesKey")
1864 
1865 
1866 ObjectKeys=list
1867 _plural_types.append("ObjectKeys")
1868 _value_types.append("ObjectKey")
1869 
1870 
1871 ModelKeys=list
1872 _plural_types.append("ModelKeys")
1873 _value_types.append("ModelKey")
1874 
1875 
1876 _raii_types.append("ScopedSetFloatAttribute")
1877 
1878 
1879 _object_types.append("ScoringFunction")
1880 
1881 
1882 def _object_cast_to_ScoringFunction(o):
1883  """_object_cast_to_ScoringFunction(Object o) -> ScoringFunction"""
1884  return _IMP_kernel._object_cast_to_ScoringFunction(o)
1885 
1886 _object_types.append("ModelObject")
1887 
1888 
1889 def _object_cast_to_ModelObject(o):
1890  """_object_cast_to_ModelObject(Object o) -> ModelObject"""
1891  return _IMP_kernel._object_cast_to_ModelObject(o)
1892 
1893 def _TrivialDecorators(l=[]):
1894  return [_TrivialDecorator(x) for x in l]
1895 _plural_types.append("_TrivialDecorators")
1896 
1897 
1898 _value_types.append("_TrivialDecorator")
1899 
1900 
1901 def _TrivialDerivedDecorators(l=[]):
1902  return [_TrivialDerivedDecorator(x) for x in l]
1903 _plural_types.append("_TrivialDerivedDecorators")
1904 
1905 
1906 _value_types.append("_TrivialDerivedDecorator")
1907 
1908 
1909 def _TrivialTraitsDecorators(l=[]):
1910  return [_TrivialTraitsDecorator(x) for x in l]
1911 _plural_types.append("_TrivialTraitsDecorators")
1912 
1913 
1914 _value_types.append("_TrivialTraitsDecorator")
1915 
1916 
1917 _object_types.append("_ConstRestraint")
1918 
1919 
1920 def _object_cast_to__ConstRestraint(o):
1921  """_object_cast_to__ConstRestraint(Object o) -> _ConstRestraint"""
1922  return _IMP_kernel._object_cast_to__ConstRestraint(o)
1923 
1924 _object_types.append("_ConstOptimizer")
1925 
1926 
1927 def _object_cast_to__ConstOptimizer(o):
1928  """_object_cast_to__ConstOptimizer(Object o) -> _ConstOptimizer"""
1929  return _IMP_kernel._object_cast_to__ConstOptimizer(o)
1930 class DependencyGraph(Object):
1931  """Proxy of C++ IMP::internal::BoostDigraph<(IMP::DependencyGraph,p.IMP::ModelObject,IMP::ShowDependencyGraphVertex)> class."""
1932 
1933  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1934  __repr__ = _swig_repr
1935 
1936  def __init__(self):
1937  """__init__(IMP::internal::BoostDigraph<(IMP::DependencyGraph,p.IMP::ModelObject,IMP::ShowDependencyGraphVertex)> self) -> DependencyGraph"""
1938  this = _IMP_kernel.new_DependencyGraph()
1939  try:
1940  self.this.append(this)
1941  except __builtin__.Exception:
1942  self.this = this
1943 
1944  def get_graph(self):
1945  """get_graph(DependencyGraph self) -> IMP::DependencyGraph const &"""
1946  return _IMP_kernel.DependencyGraph_get_graph(self)
1947 
1948 
1949  def get_vertices(self):
1950  """get_vertices(DependencyGraph self) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptors"""
1951  return _IMP_kernel.DependencyGraph_get_vertices(self)
1952 
1953 
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)
1957 
1958 
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)
1962 
1963 
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)
1967 
1968 
1969  def show_graphviz(self, *args):
1970  """
1971  show_graphviz(DependencyGraph self, _ostream out)
1972  show_graphviz(DependencyGraph self)
1973  """
1974  return _IMP_kernel.DependencyGraph_show_graphviz(self, *args)
1975 
1976 
1977  def get_graphviz_string(self):
1978  """get_graphviz_string(DependencyGraph self) -> std::string"""
1979  return _IMP_kernel.DependencyGraph_get_graphviz_string(self)
1980 
1981 
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)
1985 
1986 
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)
1990 
1991 
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)
1995 
1996  __swig_destroy__ = _IMP_kernel.delete_DependencyGraph
1997  __del__ = lambda self: None
1998 DependencyGraph_swigregister = _IMP_kernel.DependencyGraph_swigregister
1999 DependencyGraph_swigregister(DependencyGraph)
2000 
2001 
2002 _value_types.append("DependencyGraph")
2003 
2004 class FloatKey(_Value):
2005  """Proxy of C++ IMP::Key<(0)> class."""
2006 
2007  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2008 
2009  def __init__(self, *args):
2010  """
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
2015  """
2016  this = _IMP_kernel.new_FloatKey(*args)
2017  try:
2018  self.this.append(this)
2019  except __builtin__.Exception:
2020  self.this = this
2021 
2022  def add_key(sc):
2023  """add_key(std::string sc) -> unsigned int"""
2024  return _IMP_kernel.FloatKey_add_key(sc)
2025 
2026  add_key = staticmethod(add_key)
2027 
2028  def get_key_exists(sc):
2029  """get_key_exists(std::string sc) -> bool"""
2030  return _IMP_kernel.FloatKey_get_key_exists(sc)
2031 
2032  get_key_exists = staticmethod(get_key_exists)
2033 
2034  def get_string(self):
2035  """get_string(FloatKey self) -> std::string const"""
2036  return _IMP_kernel.FloatKey_get_string(self)
2037 
2038 
2039  def __cmp__(self, o):
2040  """__cmp__(FloatKey self, FloatKey o) -> int"""
2041  return _IMP_kernel.FloatKey___cmp__(self, o)
2042 
2043 
2044  def __eq__(self, o):
2045  """__eq__(FloatKey self, FloatKey o) -> bool"""
2046  return _IMP_kernel.FloatKey___eq__(self, o)
2047 
2048 
2049  def __ne__(self, o):
2050  """__ne__(FloatKey self, FloatKey o) -> bool"""
2051  return _IMP_kernel.FloatKey___ne__(self, o)
2052 
2053 
2054  def __lt__(self, o):
2055  """__lt__(FloatKey self, FloatKey o) -> bool"""
2056  return _IMP_kernel.FloatKey___lt__(self, o)
2057 
2058 
2059  def __gt__(self, o):
2060  """__gt__(FloatKey self, FloatKey o) -> bool"""
2061  return _IMP_kernel.FloatKey___gt__(self, o)
2062 
2063 
2064  def __ge__(self, o):
2065  """__ge__(FloatKey self, FloatKey o) -> bool"""
2066  return _IMP_kernel.FloatKey___ge__(self, o)
2067 
2068 
2069  def __le__(self, o):
2070  """__le__(FloatKey self, FloatKey o) -> bool"""
2071  return _IMP_kernel.FloatKey___le__(self, o)
2072 
2073 
2074  def __hash__(self):
2075  """__hash__(FloatKey self) -> std::size_t"""
2076  return _IMP_kernel.FloatKey___hash__(self)
2077 
2078 
2079  def show(self, *args):
2080  """
2081  show(FloatKey self, _ostream out)
2082  show(FloatKey self)
2083  """
2084  return _IMP_kernel.FloatKey_show(self, *args)
2085 
2086 
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)
2090 
2091  add_alias = staticmethod(add_alias)
2092 
2093  def get_number_of_keys():
2094  """get_number_of_keys() -> unsigned int"""
2095  return _IMP_kernel.FloatKey_get_number_of_keys()
2096 
2097  get_number_of_keys = staticmethod(get_number_of_keys)
2098 
2099  def get_index(self):
2100  """get_index(FloatKey self) -> unsigned int"""
2101  return _IMP_kernel.FloatKey_get_index(self)
2102 
2103 
2104  def show_all(out):
2105  """show_all(_ostream out)"""
2106  return _IMP_kernel.FloatKey_show_all(out)
2107 
2108  show_all = staticmethod(show_all)
2109 
2110  def get_all_strings():
2111  """get_all_strings() -> IMP::Vector< std::string >"""
2112  return _IMP_kernel.FloatKey_get_all_strings()
2113 
2114  get_all_strings = staticmethod(get_all_strings)
2115 
2116  def get_number_unique():
2117  """get_number_unique() -> unsigned int"""
2118  return _IMP_kernel.FloatKey_get_number_unique()
2119 
2120  get_number_unique = staticmethod(get_number_unique)
2121 
2122  def __str__(self):
2123  """__str__(FloatKey self) -> std::string"""
2124  return _IMP_kernel.FloatKey___str__(self)
2125 
2126 
2127  def __repr__(self):
2128  """__repr__(FloatKey self) -> std::string"""
2129  return _IMP_kernel.FloatKey___repr__(self)
2130 
2131  __swig_destroy__ = _IMP_kernel.delete_FloatKey
2132  __del__ = lambda self: None
2133 FloatKey_swigregister = _IMP_kernel.FloatKey_swigregister
2134 FloatKey_swigregister(FloatKey)
2135 
2136 def FloatKey_add_key(sc):
2137  """FloatKey_add_key(std::string sc) -> unsigned int"""
2138  return _IMP_kernel.FloatKey_add_key(sc)
2139 
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)
2143 
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)
2147 
2148 def FloatKey_get_number_of_keys():
2149  """FloatKey_get_number_of_keys() -> unsigned int"""
2150  return _IMP_kernel.FloatKey_get_number_of_keys()
2151 
2152 def FloatKey_show_all(out):
2153  """FloatKey_show_all(_ostream out)"""
2154  return _IMP_kernel.FloatKey_show_all(out)
2155 
2156 def FloatKey_get_all_strings():
2157  """FloatKey_get_all_strings() -> IMP::Vector< std::string >"""
2158  return _IMP_kernel.FloatKey_get_all_strings()
2159 
2160 def FloatKey_get_number_unique():
2161  """FloatKey_get_number_unique() -> unsigned int"""
2162  return _IMP_kernel.FloatKey_get_number_unique()
2163 
2164 class IntKey(_Value):
2165  """Proxy of C++ IMP::Key<(1)> class."""
2166 
2167  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2168 
2169  def __init__(self, *args):
2170  """
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
2175  """
2176  this = _IMP_kernel.new_IntKey(*args)
2177  try:
2178  self.this.append(this)
2179  except __builtin__.Exception:
2180  self.this = this
2181 
2182  def add_key(sc):
2183  """add_key(std::string sc) -> unsigned int"""
2184  return _IMP_kernel.IntKey_add_key(sc)
2185 
2186  add_key = staticmethod(add_key)
2187 
2188  def get_key_exists(sc):
2189  """get_key_exists(std::string sc) -> bool"""
2190  return _IMP_kernel.IntKey_get_key_exists(sc)
2191 
2192  get_key_exists = staticmethod(get_key_exists)
2193 
2194  def get_string(self):
2195  """get_string(IntKey self) -> std::string const"""
2196  return _IMP_kernel.IntKey_get_string(self)
2197 
2198 
2199  def __cmp__(self, o):
2200  """__cmp__(IntKey self, IntKey o) -> int"""
2201  return _IMP_kernel.IntKey___cmp__(self, o)
2202 
2203 
2204  def __eq__(self, o):
2205  """__eq__(IntKey self, IntKey o) -> bool"""
2206  return _IMP_kernel.IntKey___eq__(self, o)
2207 
2208 
2209  def __ne__(self, o):
2210  """__ne__(IntKey self, IntKey o) -> bool"""
2211  return _IMP_kernel.IntKey___ne__(self, o)
2212 
2213 
2214  def __lt__(self, o):
2215  """__lt__(IntKey self, IntKey o) -> bool"""
2216  return _IMP_kernel.IntKey___lt__(self, o)
2217 
2218 
2219  def __gt__(self, o):
2220  """__gt__(IntKey self, IntKey o) -> bool"""
2221  return _IMP_kernel.IntKey___gt__(self, o)
2222 
2223 
2224  def __ge__(self, o):
2225  """__ge__(IntKey self, IntKey o) -> bool"""
2226  return _IMP_kernel.IntKey___ge__(self, o)
2227 
2228 
2229  def __le__(self, o):
2230  """__le__(IntKey self, IntKey o) -> bool"""
2231  return _IMP_kernel.IntKey___le__(self, o)
2232 
2233 
2234  def __hash__(self):
2235  """__hash__(IntKey self) -> std::size_t"""
2236  return _IMP_kernel.IntKey___hash__(self)
2237 
2238 
2239  def show(self, *args):
2240  """
2241  show(IntKey self, _ostream out)
2242  show(IntKey self)
2243  """
2244  return _IMP_kernel.IntKey_show(self, *args)
2245 
2246 
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)
2250 
2251  add_alias = staticmethod(add_alias)
2252 
2253  def get_number_of_keys():
2254  """get_number_of_keys() -> unsigned int"""
2255  return _IMP_kernel.IntKey_get_number_of_keys()
2256 
2257  get_number_of_keys = staticmethod(get_number_of_keys)
2258 
2259  def get_index(self):
2260  """get_index(IntKey self) -> unsigned int"""
2261  return _IMP_kernel.IntKey_get_index(self)
2262 
2263 
2264  def show_all(out):
2265  """show_all(_ostream out)"""
2266  return _IMP_kernel.IntKey_show_all(out)
2267 
2268  show_all = staticmethod(show_all)
2269 
2270  def get_all_strings():
2271  """get_all_strings() -> IMP::Vector< std::string >"""
2272  return _IMP_kernel.IntKey_get_all_strings()
2273 
2274  get_all_strings = staticmethod(get_all_strings)
2275 
2276  def get_number_unique():
2277  """get_number_unique() -> unsigned int"""
2278  return _IMP_kernel.IntKey_get_number_unique()
2279 
2280  get_number_unique = staticmethod(get_number_unique)
2281 
2282  def __str__(self):
2283  """__str__(IntKey self) -> std::string"""
2284  return _IMP_kernel.IntKey___str__(self)
2285 
2286 
2287  def __repr__(self):
2288  """__repr__(IntKey self) -> std::string"""
2289  return _IMP_kernel.IntKey___repr__(self)
2290 
2291  __swig_destroy__ = _IMP_kernel.delete_IntKey
2292  __del__ = lambda self: None
2293 IntKey_swigregister = _IMP_kernel.IntKey_swigregister
2294 IntKey_swigregister(IntKey)
2295 
2296 def IntKey_add_key(sc):
2297  """IntKey_add_key(std::string sc) -> unsigned int"""
2298  return _IMP_kernel.IntKey_add_key(sc)
2299 
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)
2303 
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)
2307 
2308 def IntKey_get_number_of_keys():
2309  """IntKey_get_number_of_keys() -> unsigned int"""
2310  return _IMP_kernel.IntKey_get_number_of_keys()
2311 
2312 def IntKey_show_all(out):
2313  """IntKey_show_all(_ostream out)"""
2314  return _IMP_kernel.IntKey_show_all(out)
2315 
2316 def IntKey_get_all_strings():
2317  """IntKey_get_all_strings() -> IMP::Vector< std::string >"""
2318  return _IMP_kernel.IntKey_get_all_strings()
2319 
2320 def IntKey_get_number_unique():
2321  """IntKey_get_number_unique() -> unsigned int"""
2322  return _IMP_kernel.IntKey_get_number_unique()
2323 
2324 class StringKey(_Value):
2325  """Proxy of C++ IMP::Key<(2)> class."""
2326 
2327  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2328 
2329  def __init__(self, *args):
2330  """
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
2335  """
2336  this = _IMP_kernel.new_StringKey(*args)
2337  try:
2338  self.this.append(this)
2339  except __builtin__.Exception:
2340  self.this = this
2341 
2342  def add_key(sc):
2343  """add_key(std::string sc) -> unsigned int"""
2344  return _IMP_kernel.StringKey_add_key(sc)
2345 
2346  add_key = staticmethod(add_key)
2347 
2348  def get_key_exists(sc):
2349  """get_key_exists(std::string sc) -> bool"""
2350  return _IMP_kernel.StringKey_get_key_exists(sc)
2351 
2352  get_key_exists = staticmethod(get_key_exists)
2353 
2354  def get_string(self):
2355  """get_string(StringKey self) -> std::string const"""
2356  return _IMP_kernel.StringKey_get_string(self)
2357 
2358 
2359  def __cmp__(self, o):
2360  """__cmp__(StringKey self, StringKey o) -> int"""
2361  return _IMP_kernel.StringKey___cmp__(self, o)
2362 
2363 
2364  def __eq__(self, o):
2365  """__eq__(StringKey self, StringKey o) -> bool"""
2366  return _IMP_kernel.StringKey___eq__(self, o)
2367 
2368 
2369  def __ne__(self, o):
2370  """__ne__(StringKey self, StringKey o) -> bool"""
2371  return _IMP_kernel.StringKey___ne__(self, o)
2372 
2373 
2374  def __lt__(self, o):
2375  """__lt__(StringKey self, StringKey o) -> bool"""
2376  return _IMP_kernel.StringKey___lt__(self, o)
2377 
2378 
2379  def __gt__(self, o):
2380  """__gt__(StringKey self, StringKey o) -> bool"""
2381  return _IMP_kernel.StringKey___gt__(self, o)
2382 
2383 
2384  def __ge__(self, o):
2385  """__ge__(StringKey self, StringKey o) -> bool"""
2386  return _IMP_kernel.StringKey___ge__(self, o)
2387 
2388 
2389  def __le__(self, o):
2390  """__le__(StringKey self, StringKey o) -> bool"""
2391  return _IMP_kernel.StringKey___le__(self, o)
2392 
2393 
2394  def __hash__(self):
2395  """__hash__(StringKey self) -> std::size_t"""
2396  return _IMP_kernel.StringKey___hash__(self)
2397 
2398 
2399  def show(self, *args):
2400  """
2401  show(StringKey self, _ostream out)
2402  show(StringKey self)
2403  """
2404  return _IMP_kernel.StringKey_show(self, *args)
2405 
2406 
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)
2410 
2411  add_alias = staticmethod(add_alias)
2412 
2413  def get_number_of_keys():
2414  """get_number_of_keys() -> unsigned int"""
2415  return _IMP_kernel.StringKey_get_number_of_keys()
2416 
2417  get_number_of_keys = staticmethod(get_number_of_keys)
2418 
2419  def get_index(self):
2420  """get_index(StringKey self) -> unsigned int"""
2421  return _IMP_kernel.StringKey_get_index(self)
2422 
2423 
2424  def show_all(out):
2425  """show_all(_ostream out)"""
2426  return _IMP_kernel.StringKey_show_all(out)
2427 
2428  show_all = staticmethod(show_all)
2429 
2430  def get_all_strings():
2431  """get_all_strings() -> IMP::Vector< std::string >"""
2432  return _IMP_kernel.StringKey_get_all_strings()
2433 
2434  get_all_strings = staticmethod(get_all_strings)
2435 
2436  def get_number_unique():
2437  """get_number_unique() -> unsigned int"""
2438  return _IMP_kernel.StringKey_get_number_unique()
2439 
2440  get_number_unique = staticmethod(get_number_unique)
2441 
2442  def __str__(self):
2443  """__str__(StringKey self) -> std::string"""
2444  return _IMP_kernel.StringKey___str__(self)
2445 
2446 
2447  def __repr__(self):
2448  """__repr__(StringKey self) -> std::string"""
2449  return _IMP_kernel.StringKey___repr__(self)
2450 
2451  __swig_destroy__ = _IMP_kernel.delete_StringKey
2452  __del__ = lambda self: None
2453 StringKey_swigregister = _IMP_kernel.StringKey_swigregister
2454 StringKey_swigregister(StringKey)
2455 
2456 def StringKey_add_key(sc):
2457  """StringKey_add_key(std::string sc) -> unsigned int"""
2458  return _IMP_kernel.StringKey_add_key(sc)
2459 
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)
2463 
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)
2467 
2468 def StringKey_get_number_of_keys():
2469  """StringKey_get_number_of_keys() -> unsigned int"""
2470  return _IMP_kernel.StringKey_get_number_of_keys()
2471 
2472 def StringKey_show_all(out):
2473  """StringKey_show_all(_ostream out)"""
2474  return _IMP_kernel.StringKey_show_all(out)
2475 
2476 def StringKey_get_all_strings():
2477  """StringKey_get_all_strings() -> IMP::Vector< std::string >"""
2478  return _IMP_kernel.StringKey_get_all_strings()
2479 
2480 def StringKey_get_number_unique():
2481  """StringKey_get_number_unique() -> unsigned int"""
2482  return _IMP_kernel.StringKey_get_number_unique()
2483 
2484 class ParticleIndexKey(_Value):
2485  """Proxy of C++ IMP::Key<(3)> class."""
2486 
2487  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2488 
2489  def __init__(self, *args):
2490  """
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
2495  """
2496  this = _IMP_kernel.new_ParticleIndexKey(*args)
2497  try:
2498  self.this.append(this)
2499  except __builtin__.Exception:
2500  self.this = this
2501 
2502  def add_key(sc):
2503  """add_key(std::string sc) -> unsigned int"""
2504  return _IMP_kernel.ParticleIndexKey_add_key(sc)
2505 
2506  add_key = staticmethod(add_key)
2507 
2508  def get_key_exists(sc):
2509  """get_key_exists(std::string sc) -> bool"""
2510  return _IMP_kernel.ParticleIndexKey_get_key_exists(sc)
2511 
2512  get_key_exists = staticmethod(get_key_exists)
2513 
2514  def get_string(self):
2515  """get_string(ParticleIndexKey self) -> std::string const"""
2516  return _IMP_kernel.ParticleIndexKey_get_string(self)
2517 
2518 
2519  def __cmp__(self, o):
2520  """__cmp__(ParticleIndexKey self, ParticleIndexKey o) -> int"""
2521  return _IMP_kernel.ParticleIndexKey___cmp__(self, o)
2522 
2523 
2524  def __eq__(self, o):
2525  """__eq__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2526  return _IMP_kernel.ParticleIndexKey___eq__(self, o)
2527 
2528 
2529  def __ne__(self, o):
2530  """__ne__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2531  return _IMP_kernel.ParticleIndexKey___ne__(self, o)
2532 
2533 
2534  def __lt__(self, o):
2535  """__lt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2536  return _IMP_kernel.ParticleIndexKey___lt__(self, o)
2537 
2538 
2539  def __gt__(self, o):
2540  """__gt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2541  return _IMP_kernel.ParticleIndexKey___gt__(self, o)
2542 
2543 
2544  def __ge__(self, o):
2545  """__ge__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2546  return _IMP_kernel.ParticleIndexKey___ge__(self, o)
2547 
2548 
2549  def __le__(self, o):
2550  """__le__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2551  return _IMP_kernel.ParticleIndexKey___le__(self, o)
2552 
2553 
2554  def __hash__(self):
2555  """__hash__(ParticleIndexKey self) -> std::size_t"""
2556  return _IMP_kernel.ParticleIndexKey___hash__(self)
2557 
2558 
2559  def show(self, *args):
2560  """
2561  show(ParticleIndexKey self, _ostream out)
2562  show(ParticleIndexKey self)
2563  """
2564  return _IMP_kernel.ParticleIndexKey_show(self, *args)
2565 
2566 
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)
2570 
2571  add_alias = staticmethod(add_alias)
2572 
2573  def get_number_of_keys():
2574  """get_number_of_keys() -> unsigned int"""
2575  return _IMP_kernel.ParticleIndexKey_get_number_of_keys()
2576 
2577  get_number_of_keys = staticmethod(get_number_of_keys)
2578 
2579  def get_index(self):
2580  """get_index(ParticleIndexKey self) -> unsigned int"""
2581  return _IMP_kernel.ParticleIndexKey_get_index(self)
2582 
2583 
2584  def show_all(out):
2585  """show_all(_ostream out)"""
2586  return _IMP_kernel.ParticleIndexKey_show_all(out)
2587 
2588  show_all = staticmethod(show_all)
2589 
2590  def get_all_strings():
2591  """get_all_strings() -> IMP::Vector< std::string >"""
2592  return _IMP_kernel.ParticleIndexKey_get_all_strings()
2593 
2594  get_all_strings = staticmethod(get_all_strings)
2595 
2596  def get_number_unique():
2597  """get_number_unique() -> unsigned int"""
2598  return _IMP_kernel.ParticleIndexKey_get_number_unique()
2599 
2600  get_number_unique = staticmethod(get_number_unique)
2601 
2602  def __str__(self):
2603  """__str__(ParticleIndexKey self) -> std::string"""
2604  return _IMP_kernel.ParticleIndexKey___str__(self)
2605 
2606 
2607  def __repr__(self):
2608  """__repr__(ParticleIndexKey self) -> std::string"""
2609  return _IMP_kernel.ParticleIndexKey___repr__(self)
2610 
2611  __swig_destroy__ = _IMP_kernel.delete_ParticleIndexKey
2612  __del__ = lambda self: None
2613 ParticleIndexKey_swigregister = _IMP_kernel.ParticleIndexKey_swigregister
2614 ParticleIndexKey_swigregister(ParticleIndexKey)
2615 
2616 def ParticleIndexKey_add_key(sc):
2617  """ParticleIndexKey_add_key(std::string sc) -> unsigned int"""
2618  return _IMP_kernel.ParticleIndexKey_add_key(sc)
2619 
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)
2623 
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)
2627 
2628 def ParticleIndexKey_get_number_of_keys():
2629  """ParticleIndexKey_get_number_of_keys() -> unsigned int"""
2630  return _IMP_kernel.ParticleIndexKey_get_number_of_keys()
2631 
2632 def ParticleIndexKey_show_all(out):
2633  """ParticleIndexKey_show_all(_ostream out)"""
2634  return _IMP_kernel.ParticleIndexKey_show_all(out)
2635 
2636 def ParticleIndexKey_get_all_strings():
2637  """ParticleIndexKey_get_all_strings() -> IMP::Vector< std::string >"""
2638  return _IMP_kernel.ParticleIndexKey_get_all_strings()
2639 
2640 def ParticleIndexKey_get_number_unique():
2641  """ParticleIndexKey_get_number_unique() -> unsigned int"""
2642  return _IMP_kernel.ParticleIndexKey_get_number_unique()
2643 
2644 class ObjectKey(_Value):
2645  """Proxy of C++ IMP::Key<(4)> class."""
2646 
2647  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2648 
2649  def __init__(self, *args):
2650  """
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
2655  """
2656  this = _IMP_kernel.new_ObjectKey(*args)
2657  try:
2658  self.this.append(this)
2659  except __builtin__.Exception:
2660  self.this = this
2661 
2662  def add_key(sc):
2663  """add_key(std::string sc) -> unsigned int"""
2664  return _IMP_kernel.ObjectKey_add_key(sc)
2665 
2666  add_key = staticmethod(add_key)
2667 
2668  def get_key_exists(sc):
2669  """get_key_exists(std::string sc) -> bool"""
2670  return _IMP_kernel.ObjectKey_get_key_exists(sc)
2671 
2672  get_key_exists = staticmethod(get_key_exists)
2673 
2674  def get_string(self):
2675  """get_string(ObjectKey self) -> std::string const"""
2676  return _IMP_kernel.ObjectKey_get_string(self)
2677 
2678 
2679  def __cmp__(self, o):
2680  """__cmp__(ObjectKey self, ObjectKey o) -> int"""
2681  return _IMP_kernel.ObjectKey___cmp__(self, o)
2682 
2683 
2684  def __eq__(self, o):
2685  """__eq__(ObjectKey self, ObjectKey o) -> bool"""
2686  return _IMP_kernel.ObjectKey___eq__(self, o)
2687 
2688 
2689  def __ne__(self, o):
2690  """__ne__(ObjectKey self, ObjectKey o) -> bool"""
2691  return _IMP_kernel.ObjectKey___ne__(self, o)
2692 
2693 
2694  def __lt__(self, o):
2695  """__lt__(ObjectKey self, ObjectKey o) -> bool"""
2696  return _IMP_kernel.ObjectKey___lt__(self, o)
2697 
2698 
2699  def __gt__(self, o):
2700  """__gt__(ObjectKey self, ObjectKey o) -> bool"""
2701  return _IMP_kernel.ObjectKey___gt__(self, o)
2702 
2703 
2704  def __ge__(self, o):
2705  """__ge__(ObjectKey self, ObjectKey o) -> bool"""
2706  return _IMP_kernel.ObjectKey___ge__(self, o)
2707 
2708 
2709  def __le__(self, o):
2710  """__le__(ObjectKey self, ObjectKey o) -> bool"""
2711  return _IMP_kernel.ObjectKey___le__(self, o)
2712 
2713 
2714  def __hash__(self):
2715  """__hash__(ObjectKey self) -> std::size_t"""
2716  return _IMP_kernel.ObjectKey___hash__(self)
2717 
2718 
2719  def show(self, *args):
2720  """
2721  show(ObjectKey self, _ostream out)
2722  show(ObjectKey self)
2723  """
2724  return _IMP_kernel.ObjectKey_show(self, *args)
2725 
2726 
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)
2730 
2731  add_alias = staticmethod(add_alias)
2732 
2733  def get_number_of_keys():
2734  """get_number_of_keys() -> unsigned int"""
2735  return _IMP_kernel.ObjectKey_get_number_of_keys()
2736 
2737  get_number_of_keys = staticmethod(get_number_of_keys)
2738 
2739  def get_index(self):
2740  """get_index(ObjectKey self) -> unsigned int"""
2741  return _IMP_kernel.ObjectKey_get_index(self)
2742 
2743 
2744  def show_all(out):
2745  """show_all(_ostream out)"""
2746  return _IMP_kernel.ObjectKey_show_all(out)
2747 
2748  show_all = staticmethod(show_all)
2749 
2750  def get_all_strings():
2751  """get_all_strings() -> IMP::Vector< std::string >"""
2752  return _IMP_kernel.ObjectKey_get_all_strings()
2753 
2754  get_all_strings = staticmethod(get_all_strings)
2755 
2756  def get_number_unique():
2757  """get_number_unique() -> unsigned int"""
2758  return _IMP_kernel.ObjectKey_get_number_unique()
2759 
2760  get_number_unique = staticmethod(get_number_unique)
2761 
2762  def __str__(self):
2763  """__str__(ObjectKey self) -> std::string"""
2764  return _IMP_kernel.ObjectKey___str__(self)
2765 
2766 
2767  def __repr__(self):
2768  """__repr__(ObjectKey self) -> std::string"""
2769  return _IMP_kernel.ObjectKey___repr__(self)
2770 
2771  __swig_destroy__ = _IMP_kernel.delete_ObjectKey
2772  __del__ = lambda self: None
2773 ObjectKey_swigregister = _IMP_kernel.ObjectKey_swigregister
2774 ObjectKey_swigregister(ObjectKey)
2775 
2776 def ObjectKey_add_key(sc):
2777  """ObjectKey_add_key(std::string sc) -> unsigned int"""
2778  return _IMP_kernel.ObjectKey_add_key(sc)
2779 
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)
2783 
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)
2787 
2788 def ObjectKey_get_number_of_keys():
2789  """ObjectKey_get_number_of_keys() -> unsigned int"""
2790  return _IMP_kernel.ObjectKey_get_number_of_keys()
2791 
2792 def ObjectKey_show_all(out):
2793  """ObjectKey_show_all(_ostream out)"""
2794  return _IMP_kernel.ObjectKey_show_all(out)
2795 
2796 def ObjectKey_get_all_strings():
2797  """ObjectKey_get_all_strings() -> IMP::Vector< std::string >"""
2798  return _IMP_kernel.ObjectKey_get_all_strings()
2799 
2800 def ObjectKey_get_number_unique():
2801  """ObjectKey_get_number_unique() -> unsigned int"""
2802  return _IMP_kernel.ObjectKey_get_number_unique()
2803 
2804 class IntsKey(_Value):
2805  """Proxy of C++ IMP::Key<(5)> class."""
2806 
2807  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2808 
2809  def __init__(self, *args):
2810  """
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
2815  """
2816  this = _IMP_kernel.new_IntsKey(*args)
2817  try:
2818  self.this.append(this)
2819  except __builtin__.Exception:
2820  self.this = this
2821 
2822  def add_key(sc):
2823  """add_key(std::string sc) -> unsigned int"""
2824  return _IMP_kernel.IntsKey_add_key(sc)
2825 
2826  add_key = staticmethod(add_key)
2827 
2828  def get_key_exists(sc):
2829  """get_key_exists(std::string sc) -> bool"""
2830  return _IMP_kernel.IntsKey_get_key_exists(sc)
2831 
2832  get_key_exists = staticmethod(get_key_exists)
2833 
2834  def get_string(self):
2835  """get_string(IntsKey self) -> std::string const"""
2836  return _IMP_kernel.IntsKey_get_string(self)
2837 
2838 
2839  def __cmp__(self, o):
2840  """__cmp__(IntsKey self, IntsKey o) -> int"""
2841  return _IMP_kernel.IntsKey___cmp__(self, o)
2842 
2843 
2844  def __eq__(self, o):
2845  """__eq__(IntsKey self, IntsKey o) -> bool"""
2846  return _IMP_kernel.IntsKey___eq__(self, o)
2847 
2848 
2849  def __ne__(self, o):
2850  """__ne__(IntsKey self, IntsKey o) -> bool"""
2851  return _IMP_kernel.IntsKey___ne__(self, o)
2852 
2853 
2854  def __lt__(self, o):
2855  """__lt__(IntsKey self, IntsKey o) -> bool"""
2856  return _IMP_kernel.IntsKey___lt__(self, o)
2857 
2858 
2859  def __gt__(self, o):
2860  """__gt__(IntsKey self, IntsKey o) -> bool"""
2861  return _IMP_kernel.IntsKey___gt__(self, o)
2862 
2863 
2864  def __ge__(self, o):
2865  """__ge__(IntsKey self, IntsKey o) -> bool"""
2866  return _IMP_kernel.IntsKey___ge__(self, o)
2867 
2868 
2869  def __le__(self, o):
2870  """__le__(IntsKey self, IntsKey o) -> bool"""
2871  return _IMP_kernel.IntsKey___le__(self, o)
2872 
2873 
2874  def __hash__(self):
2875  """__hash__(IntsKey self) -> std::size_t"""
2876  return _IMP_kernel.IntsKey___hash__(self)
2877 
2878 
2879  def show(self, *args):
2880  """
2881  show(IntsKey self, _ostream out)
2882  show(IntsKey self)
2883  """
2884  return _IMP_kernel.IntsKey_show(self, *args)
2885 
2886 
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)
2890 
2891  add_alias = staticmethod(add_alias)
2892 
2893  def get_number_of_keys():
2894  """get_number_of_keys() -> unsigned int"""
2895  return _IMP_kernel.IntsKey_get_number_of_keys()
2896 
2897  get_number_of_keys = staticmethod(get_number_of_keys)
2898 
2899  def get_index(self):
2900  """get_index(IntsKey self) -> unsigned int"""
2901  return _IMP_kernel.IntsKey_get_index(self)
2902 
2903 
2904  def show_all(out):
2905  """show_all(_ostream out)"""
2906  return _IMP_kernel.IntsKey_show_all(out)
2907 
2908  show_all = staticmethod(show_all)
2909 
2910  def get_all_strings():
2911  """get_all_strings() -> IMP::Vector< std::string >"""
2912  return _IMP_kernel.IntsKey_get_all_strings()
2913 
2914  get_all_strings = staticmethod(get_all_strings)
2915 
2916  def get_number_unique():
2917  """get_number_unique() -> unsigned int"""
2918  return _IMP_kernel.IntsKey_get_number_unique()
2919 
2920  get_number_unique = staticmethod(get_number_unique)
2921 
2922  def __str__(self):
2923  """__str__(IntsKey self) -> std::string"""
2924  return _IMP_kernel.IntsKey___str__(self)
2925 
2926 
2927  def __repr__(self):
2928  """__repr__(IntsKey self) -> std::string"""
2929  return _IMP_kernel.IntsKey___repr__(self)
2930 
2931  __swig_destroy__ = _IMP_kernel.delete_IntsKey
2932  __del__ = lambda self: None
2933 IntsKey_swigregister = _IMP_kernel.IntsKey_swigregister
2934 IntsKey_swigregister(IntsKey)
2935 
2936 def IntsKey_add_key(sc):
2937  """IntsKey_add_key(std::string sc) -> unsigned int"""
2938  return _IMP_kernel.IntsKey_add_key(sc)
2939 
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)
2943 
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)
2947 
2948 def IntsKey_get_number_of_keys():
2949  """IntsKey_get_number_of_keys() -> unsigned int"""
2950  return _IMP_kernel.IntsKey_get_number_of_keys()
2951 
2952 def IntsKey_show_all(out):
2953  """IntsKey_show_all(_ostream out)"""
2954  return _IMP_kernel.IntsKey_show_all(out)
2955 
2956 def IntsKey_get_all_strings():
2957  """IntsKey_get_all_strings() -> IMP::Vector< std::string >"""
2958  return _IMP_kernel.IntsKey_get_all_strings()
2959 
2960 def IntsKey_get_number_unique():
2961  """IntsKey_get_number_unique() -> unsigned int"""
2962  return _IMP_kernel.IntsKey_get_number_unique()
2963 
2964 class ParticleIndexesKey(_Value):
2965  """Proxy of C++ IMP::Key<(6)> class."""
2966 
2967  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2968 
2969  def __init__(self, *args):
2970  """
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
2975  """
2976  this = _IMP_kernel.new_ParticleIndexesKey(*args)
2977  try:
2978  self.this.append(this)
2979  except __builtin__.Exception:
2980  self.this = this
2981 
2982  def add_key(sc):
2983  """add_key(std::string sc) -> unsigned int"""
2984  return _IMP_kernel.ParticleIndexesKey_add_key(sc)
2985 
2986  add_key = staticmethod(add_key)
2987 
2988  def get_key_exists(sc):
2989  """get_key_exists(std::string sc) -> bool"""
2990  return _IMP_kernel.ParticleIndexesKey_get_key_exists(sc)
2991 
2992  get_key_exists = staticmethod(get_key_exists)
2993 
2994  def get_string(self):
2995  """get_string(ParticleIndexesKey self) -> std::string const"""
2996  return _IMP_kernel.ParticleIndexesKey_get_string(self)
2997 
2998 
2999  def __cmp__(self, o):
3000  """__cmp__(ParticleIndexesKey self, ParticleIndexesKey o) -> int"""
3001  return _IMP_kernel.ParticleIndexesKey___cmp__(self, o)
3002 
3003 
3004  def __eq__(self, o):
3005  """__eq__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3006  return _IMP_kernel.ParticleIndexesKey___eq__(self, o)
3007 
3008 
3009  def __ne__(self, o):
3010  """__ne__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3011  return _IMP_kernel.ParticleIndexesKey___ne__(self, o)
3012 
3013 
3014  def __lt__(self, o):
3015  """__lt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3016  return _IMP_kernel.ParticleIndexesKey___lt__(self, o)
3017 
3018 
3019  def __gt__(self, o):
3020  """__gt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3021  return _IMP_kernel.ParticleIndexesKey___gt__(self, o)
3022 
3023 
3024  def __ge__(self, o):
3025  """__ge__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3026  return _IMP_kernel.ParticleIndexesKey___ge__(self, o)
3027 
3028 
3029  def __le__(self, o):
3030  """__le__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3031  return _IMP_kernel.ParticleIndexesKey___le__(self, o)
3032 
3033 
3034  def __hash__(self):
3035  """__hash__(ParticleIndexesKey self) -> std::size_t"""
3036  return _IMP_kernel.ParticleIndexesKey___hash__(self)
3037 
3038 
3039  def show(self, *args):
3040  """
3041  show(ParticleIndexesKey self, _ostream out)
3042  show(ParticleIndexesKey self)
3043  """
3044  return _IMP_kernel.ParticleIndexesKey_show(self, *args)
3045 
3046 
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)
3050 
3051  add_alias = staticmethod(add_alias)
3052 
3053  def get_number_of_keys():
3054  """get_number_of_keys() -> unsigned int"""
3055  return _IMP_kernel.ParticleIndexesKey_get_number_of_keys()
3056 
3057  get_number_of_keys = staticmethod(get_number_of_keys)
3058 
3059  def get_index(self):
3060  """get_index(ParticleIndexesKey self) -> unsigned int"""
3061  return _IMP_kernel.ParticleIndexesKey_get_index(self)
3062 
3063 
3064  def show_all(out):
3065  """show_all(_ostream out)"""
3066  return _IMP_kernel.ParticleIndexesKey_show_all(out)
3067 
3068  show_all = staticmethod(show_all)
3069 
3070  def get_all_strings():
3071  """get_all_strings() -> IMP::Vector< std::string >"""
3072  return _IMP_kernel.ParticleIndexesKey_get_all_strings()
3073 
3074  get_all_strings = staticmethod(get_all_strings)
3075 
3076  def get_number_unique():
3077  """get_number_unique() -> unsigned int"""
3078  return _IMP_kernel.ParticleIndexesKey_get_number_unique()
3079 
3080  get_number_unique = staticmethod(get_number_unique)
3081 
3082  def __str__(self):
3083  """__str__(ParticleIndexesKey self) -> std::string"""
3084  return _IMP_kernel.ParticleIndexesKey___str__(self)
3085 
3086 
3087  def __repr__(self):
3088  """__repr__(ParticleIndexesKey self) -> std::string"""
3089  return _IMP_kernel.ParticleIndexesKey___repr__(self)
3090 
3091  __swig_destroy__ = _IMP_kernel.delete_ParticleIndexesKey
3092  __del__ = lambda self: None
3093 ParticleIndexesKey_swigregister = _IMP_kernel.ParticleIndexesKey_swigregister
3094 ParticleIndexesKey_swigregister(ParticleIndexesKey)
3095 
3096 def ParticleIndexesKey_add_key(sc):
3097  """ParticleIndexesKey_add_key(std::string sc) -> unsigned int"""
3098  return _IMP_kernel.ParticleIndexesKey_add_key(sc)
3099 
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)
3103 
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)
3107 
3108 def ParticleIndexesKey_get_number_of_keys():
3109  """ParticleIndexesKey_get_number_of_keys() -> unsigned int"""
3110  return _IMP_kernel.ParticleIndexesKey_get_number_of_keys()
3111 
3112 def ParticleIndexesKey_show_all(out):
3113  """ParticleIndexesKey_show_all(_ostream out)"""
3114  return _IMP_kernel.ParticleIndexesKey_show_all(out)
3115 
3116 def ParticleIndexesKey_get_all_strings():
3117  """ParticleIndexesKey_get_all_strings() -> IMP::Vector< std::string >"""
3118  return _IMP_kernel.ParticleIndexesKey_get_all_strings()
3119 
3120 def ParticleIndexesKey_get_number_unique():
3121  """ParticleIndexesKey_get_number_unique() -> unsigned int"""
3122  return _IMP_kernel.ParticleIndexesKey_get_number_unique()
3123 
3124 class ModelKey(_Value):
3125  """Proxy of C++ IMP::Key<(8)> class."""
3126 
3127  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3128 
3129  def __init__(self, *args):
3130  """
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
3135  """
3136  this = _IMP_kernel.new_ModelKey(*args)
3137  try:
3138  self.this.append(this)
3139  except __builtin__.Exception:
3140  self.this = this
3141 
3142  def add_key(sc):
3143  """add_key(std::string sc) -> unsigned int"""
3144  return _IMP_kernel.ModelKey_add_key(sc)
3145 
3146  add_key = staticmethod(add_key)
3147 
3148  def get_key_exists(sc):
3149  """get_key_exists(std::string sc) -> bool"""
3150  return _IMP_kernel.ModelKey_get_key_exists(sc)
3151 
3152  get_key_exists = staticmethod(get_key_exists)
3153 
3154  def get_string(self):
3155  """get_string(ModelKey self) -> std::string const"""
3156  return _IMP_kernel.ModelKey_get_string(self)
3157 
3158 
3159  def __cmp__(self, o):
3160  """__cmp__(ModelKey self, ModelKey o) -> int"""
3161  return _IMP_kernel.ModelKey___cmp__(self, o)
3162 
3163 
3164  def __eq__(self, o):
3165  """__eq__(ModelKey self, ModelKey o) -> bool"""
3166  return _IMP_kernel.ModelKey___eq__(self, o)
3167 
3168 
3169  def __ne__(self, o):
3170  """__ne__(ModelKey self, ModelKey o) -> bool"""
3171  return _IMP_kernel.ModelKey___ne__(self, o)
3172 
3173 
3174  def __lt__(self, o):
3175  """__lt__(ModelKey self, ModelKey o) -> bool"""
3176  return _IMP_kernel.ModelKey___lt__(self, o)
3177 
3178 
3179  def __gt__(self, o):
3180  """__gt__(ModelKey self, ModelKey o) -> bool"""
3181  return _IMP_kernel.ModelKey___gt__(self, o)
3182 
3183 
3184  def __ge__(self, o):
3185  """__ge__(ModelKey self, ModelKey o) -> bool"""
3186  return _IMP_kernel.ModelKey___ge__(self, o)
3187 
3188 
3189  def __le__(self, o):
3190  """__le__(ModelKey self, ModelKey o) -> bool"""
3191  return _IMP_kernel.ModelKey___le__(self, o)
3192 
3193 
3194  def __hash__(self):
3195  """__hash__(ModelKey self) -> std::size_t"""
3196  return _IMP_kernel.ModelKey___hash__(self)
3197 
3198 
3199  def show(self, *args):
3200  """
3201  show(ModelKey self, _ostream out)
3202  show(ModelKey self)
3203  """
3204  return _IMP_kernel.ModelKey_show(self, *args)
3205 
3206 
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)
3210 
3211  add_alias = staticmethod(add_alias)
3212 
3213  def get_number_of_keys():
3214  """get_number_of_keys() -> unsigned int"""
3215  return _IMP_kernel.ModelKey_get_number_of_keys()
3216 
3217  get_number_of_keys = staticmethod(get_number_of_keys)
3218 
3219  def get_index(self):
3220  """get_index(ModelKey self) -> unsigned int"""
3221  return _IMP_kernel.ModelKey_get_index(self)
3222 
3223 
3224  def show_all(out):
3225  """show_all(_ostream out)"""
3226  return _IMP_kernel.ModelKey_show_all(out)
3227 
3228  show_all = staticmethod(show_all)
3229 
3230  def get_all_strings():
3231  """get_all_strings() -> IMP::Vector< std::string >"""
3232  return _IMP_kernel.ModelKey_get_all_strings()
3233 
3234  get_all_strings = staticmethod(get_all_strings)
3235 
3236  def get_number_unique():
3237  """get_number_unique() -> unsigned int"""
3238  return _IMP_kernel.ModelKey_get_number_unique()
3239 
3240  get_number_unique = staticmethod(get_number_unique)
3241 
3242  def __str__(self):
3243  """__str__(ModelKey self) -> std::string"""
3244  return _IMP_kernel.ModelKey___str__(self)
3245 
3246 
3247  def __repr__(self):
3248  """__repr__(ModelKey self) -> std::string"""
3249  return _IMP_kernel.ModelKey___repr__(self)
3250 
3251  __swig_destroy__ = _IMP_kernel.delete_ModelKey
3252  __del__ = lambda self: None
3253 ModelKey_swigregister = _IMP_kernel.ModelKey_swigregister
3254 ModelKey_swigregister(ModelKey)
3255 
3256 def ModelKey_add_key(sc):
3257  """ModelKey_add_key(std::string sc) -> unsigned int"""
3258  return _IMP_kernel.ModelKey_add_key(sc)
3259 
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)
3263 
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)
3267 
3268 def ModelKey_get_number_of_keys():
3269  """ModelKey_get_number_of_keys() -> unsigned int"""
3270  return _IMP_kernel.ModelKey_get_number_of_keys()
3271 
3272 def ModelKey_show_all(out):
3273  """ModelKey_show_all(_ostream out)"""
3274  return _IMP_kernel.ModelKey_show_all(out)
3275 
3276 def ModelKey_get_all_strings():
3277  """ModelKey_get_all_strings() -> IMP::Vector< std::string >"""
3278  return _IMP_kernel.ModelKey_get_all_strings()
3279 
3280 def ModelKey_get_number_unique():
3281  """ModelKey_get_number_unique() -> unsigned int"""
3282  return _IMP_kernel.ModelKey_get_number_unique()
3283 
3284 class ParticleIndex(_Value):
3285  """Proxy of C++ IMP::Index<(IMP::ParticleIndexTag)> class."""
3286 
3287  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3288 
3289  def __init__(self, *args):
3290  """
3291  __init__(IMP::Index<(IMP::ParticleIndexTag)> self, int i) -> ParticleIndex
3292  __init__(IMP::Index<(IMP::ParticleIndexTag)> self) -> ParticleIndex
3293  """
3294  this = _IMP_kernel.new_ParticleIndex(*args)
3295  try:
3296  self.this.append(this)
3297  except __builtin__.Exception:
3298  self.this = this
3299 
3300  def get_index(self):
3301  """get_index(ParticleIndex self) -> int"""
3302  return _IMP_kernel.ParticleIndex_get_index(self)
3303 
3304 
3305  def __cmp__(self, o):
3306  """__cmp__(ParticleIndex self, ParticleIndex o) -> int"""
3307  return _IMP_kernel.ParticleIndex___cmp__(self, o)
3308 
3309 
3310  def __eq__(self, o):
3311  """__eq__(ParticleIndex self, ParticleIndex o) -> bool"""
3312  return _IMP_kernel.ParticleIndex___eq__(self, o)
3313 
3314 
3315  def __ne__(self, o):
3316  """__ne__(ParticleIndex self, ParticleIndex o) -> bool"""
3317  return _IMP_kernel.ParticleIndex___ne__(self, o)
3318 
3319 
3320  def __lt__(self, o):
3321  """__lt__(ParticleIndex self, ParticleIndex o) -> bool"""
3322  return _IMP_kernel.ParticleIndex___lt__(self, o)
3323 
3324 
3325  def __gt__(self, o):
3326  """__gt__(ParticleIndex self, ParticleIndex o) -> bool"""
3327  return _IMP_kernel.ParticleIndex___gt__(self, o)
3328 
3329 
3330  def __ge__(self, o):
3331  """__ge__(ParticleIndex self, ParticleIndex o) -> bool"""
3332  return _IMP_kernel.ParticleIndex___ge__(self, o)
3333 
3334 
3335  def __le__(self, o):
3336  """__le__(ParticleIndex self, ParticleIndex o) -> bool"""
3337  return _IMP_kernel.ParticleIndex___le__(self, o)
3338 
3339 
3340  def show(self, *args):
3341  """
3342  show(ParticleIndex self, _ostream out)
3343  show(ParticleIndex self)
3344  """
3345  return _IMP_kernel.ParticleIndex_show(self, *args)
3346 
3347 
3348  def __hash__(self):
3349  """__hash__(ParticleIndex self) -> std::size_t"""
3350  return _IMP_kernel.ParticleIndex___hash__(self)
3351 
3352 
3353  def __str__(self):
3354  """__str__(ParticleIndex self) -> std::string"""
3355  return _IMP_kernel.ParticleIndex___str__(self)
3356 
3357 
3358  def __repr__(self):
3359  """__repr__(ParticleIndex self) -> std::string"""
3360  return _IMP_kernel.ParticleIndex___repr__(self)
3361 
3362  __swig_destroy__ = _IMP_kernel.delete_ParticleIndex
3363  __del__ = lambda self: None
3364 ParticleIndex_swigregister = _IMP_kernel.ParticleIndex_swigregister
3365 ParticleIndex_swigregister(ParticleIndex)
3366 
3367 class FloatsKey(_Value):
3368  """Proxy of C++ IMP::Key<(10)> class."""
3369 
3370  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3371 
3372  def __init__(self, *args):
3373  """
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
3378  """
3379  this = _IMP_kernel.new_FloatsKey(*args)
3380  try:
3381  self.this.append(this)
3382  except __builtin__.Exception:
3383  self.this = this
3384 
3385  def add_key(sc):
3386  """add_key(std::string sc) -> unsigned int"""
3387  return _IMP_kernel.FloatsKey_add_key(sc)
3388 
3389  add_key = staticmethod(add_key)
3390 
3391  def get_key_exists(sc):
3392  """get_key_exists(std::string sc) -> bool"""
3393  return _IMP_kernel.FloatsKey_get_key_exists(sc)
3394 
3395  get_key_exists = staticmethod(get_key_exists)
3396 
3397  def get_string(self):
3398  """get_string(FloatsKey self) -> std::string const"""
3399  return _IMP_kernel.FloatsKey_get_string(self)
3400 
3401 
3402  def __cmp__(self, o):
3403  """__cmp__(FloatsKey self, FloatsKey o) -> int"""
3404  return _IMP_kernel.FloatsKey___cmp__(self, o)
3405 
3406 
3407  def __eq__(self, o):
3408  """__eq__(FloatsKey self, FloatsKey o) -> bool"""
3409  return _IMP_kernel.FloatsKey___eq__(self, o)
3410 
3411 
3412  def __ne__(self, o):
3413  """__ne__(FloatsKey self, FloatsKey o) -> bool"""
3414  return _IMP_kernel.FloatsKey___ne__(self, o)
3415 
3416 
3417  def __lt__(self, o):
3418  """__lt__(FloatsKey self, FloatsKey o) -> bool"""
3419  return _IMP_kernel.FloatsKey___lt__(self, o)
3420 
3421 
3422  def __gt__(self, o):
3423  """__gt__(FloatsKey self, FloatsKey o) -> bool"""
3424  return _IMP_kernel.FloatsKey___gt__(self, o)
3425 
3426 
3427  def __ge__(self, o):
3428  """__ge__(FloatsKey self, FloatsKey o) -> bool"""
3429  return _IMP_kernel.FloatsKey___ge__(self, o)
3430 
3431 
3432  def __le__(self, o):
3433  """__le__(FloatsKey self, FloatsKey o) -> bool"""
3434  return _IMP_kernel.FloatsKey___le__(self, o)
3435 
3436 
3437  def __hash__(self):
3438  """__hash__(FloatsKey self) -> std::size_t"""
3439  return _IMP_kernel.FloatsKey___hash__(self)
3440 
3441 
3442  def show(self, *args):
3443  """
3444  show(FloatsKey self, _ostream out)
3445  show(FloatsKey self)
3446  """
3447  return _IMP_kernel.FloatsKey_show(self, *args)
3448 
3449 
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)
3453 
3454  add_alias = staticmethod(add_alias)
3455 
3456  def get_number_of_keys():
3457  """get_number_of_keys() -> unsigned int"""
3458  return _IMP_kernel.FloatsKey_get_number_of_keys()
3459 
3460  get_number_of_keys = staticmethod(get_number_of_keys)
3461 
3462  def get_index(self):
3463  """get_index(FloatsKey self) -> unsigned int"""
3464  return _IMP_kernel.FloatsKey_get_index(self)
3465 
3466 
3467  def show_all(out):
3468  """show_all(_ostream out)"""
3469  return _IMP_kernel.FloatsKey_show_all(out)
3470 
3471  show_all = staticmethod(show_all)
3472 
3473  def get_all_strings():
3474  """get_all_strings() -> IMP::Vector< std::string >"""
3475  return _IMP_kernel.FloatsKey_get_all_strings()
3476 
3477  get_all_strings = staticmethod(get_all_strings)
3478 
3479  def get_number_unique():
3480  """get_number_unique() -> unsigned int"""
3481  return _IMP_kernel.FloatsKey_get_number_unique()
3482 
3483  get_number_unique = staticmethod(get_number_unique)
3484 
3485  def __str__(self):
3486  """__str__(FloatsKey self) -> std::string"""
3487  return _IMP_kernel.FloatsKey___str__(self)
3488 
3489 
3490  def __repr__(self):
3491  """__repr__(FloatsKey self) -> std::string"""
3492  return _IMP_kernel.FloatsKey___repr__(self)
3493 
3494  __swig_destroy__ = _IMP_kernel.delete_FloatsKey
3495  __del__ = lambda self: None
3496 FloatsKey_swigregister = _IMP_kernel.FloatsKey_swigregister
3497 FloatsKey_swigregister(FloatsKey)
3498 
3499 def FloatsKey_add_key(sc):
3500  """FloatsKey_add_key(std::string sc) -> unsigned int"""
3501  return _IMP_kernel.FloatsKey_add_key(sc)
3502 
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)
3506 
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)
3510 
3511 def FloatsKey_get_number_of_keys():
3512  """FloatsKey_get_number_of_keys() -> unsigned int"""
3513  return _IMP_kernel.FloatsKey_get_number_of_keys()
3514 
3515 def FloatsKey_show_all(out):
3516  """FloatsKey_show_all(_ostream out)"""
3517  return _IMP_kernel.FloatsKey_show_all(out)
3518 
3519 def FloatsKey_get_all_strings():
3520  """FloatsKey_get_all_strings() -> IMP::Vector< std::string >"""
3521  return _IMP_kernel.FloatsKey_get_all_strings()
3522 
3523 def FloatsKey_get_number_unique():
3524  """FloatsKey_get_number_unique() -> unsigned int"""
3525  return _IMP_kernel.FloatsKey_get_number_unique()
3526 
3527 
3528 def ParticlePair(a, b):
3529  return (a,b)
3530 def ParticleTriplet(a, b, c):
3531  return (a,b,c)
3532 def ParticleQuad(a, b, c, d):
3533  return (a,b,c,d)
3534 
3535 class FloatIndex(_Value):
3536  """Proxy of C++ IMP::FloatIndex class."""
3537 
3538  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3539 
3540  def __init__(self, *args):
3541  """
3542  __init__(IMP::FloatIndex self, ParticleIndex i0, FloatKey i1) -> FloatIndex
3543  __init__(IMP::FloatIndex self, ParticleIndex i0) -> FloatIndex
3544  __init__(IMP::FloatIndex self) -> FloatIndex
3545  """
3546  this = _IMP_kernel.new_FloatIndex(*args)
3547  try:
3548  self.this.append(this)
3549  except __builtin__.Exception:
3550  self.this = this
3551 
3552  def __hash__(self):
3553  """__hash__(FloatIndex self) -> std::size_t"""
3554  return _IMP_kernel.FloatIndex___hash__(self)
3555 
3556 
3557  def show(self, *args):
3558  """
3559  show(FloatIndex self, _ostream out)
3560  show(FloatIndex self)
3561  """
3562  return _IMP_kernel.FloatIndex_show(self, *args)
3563 
3564 
3565  def __cmp__(self, o):
3566  """__cmp__(FloatIndex self, FloatIndex o) -> int"""
3567  return _IMP_kernel.FloatIndex___cmp__(self, o)
3568 
3569 
3570  def __eq__(self, o):
3571  """__eq__(FloatIndex self, FloatIndex o) -> bool"""
3572  return _IMP_kernel.FloatIndex___eq__(self, o)
3573 
3574 
3575  def __ne__(self, o):
3576  """__ne__(FloatIndex self, FloatIndex o) -> bool"""
3577  return _IMP_kernel.FloatIndex___ne__(self, o)
3578 
3579 
3580  def __lt__(self, o):
3581  """__lt__(FloatIndex self, FloatIndex o) -> bool"""
3582  return _IMP_kernel.FloatIndex___lt__(self, o)
3583 
3584 
3585  def __gt__(self, o):
3586  """__gt__(FloatIndex self, FloatIndex o) -> bool"""
3587  return _IMP_kernel.FloatIndex___gt__(self, o)
3588 
3589 
3590  def __ge__(self, o):
3591  """__ge__(FloatIndex self, FloatIndex o) -> bool"""
3592  return _IMP_kernel.FloatIndex___ge__(self, o)
3593 
3594 
3595  def __le__(self, o):
3596  """__le__(FloatIndex self, FloatIndex o) -> bool"""
3597  return _IMP_kernel.FloatIndex___le__(self, o)
3598 
3599 
3600  def get_particle(self):
3601  """get_particle(FloatIndex self) -> ParticleIndex const &"""
3602  return _IMP_kernel.FloatIndex_get_particle(self)
3603 
3604 
3605  def set_particle(self, v):
3606  """set_particle(FloatIndex self, ParticleIndex const & v)"""
3607  return _IMP_kernel.FloatIndex_set_particle(self, v)
3608 
3609 
3610  def get_key(self):
3611  """get_key(FloatIndex self) -> FloatKey const &"""
3612  return _IMP_kernel.FloatIndex_get_key(self)
3613 
3614 
3615  def set_key(self, v):
3616  """set_key(FloatIndex self, FloatKey const & v)"""
3617  return _IMP_kernel.FloatIndex_set_key(self, v)
3618 
3619 
3620  def __str__(self):
3621  """__str__(FloatIndex self) -> std::string"""
3622  return _IMP_kernel.FloatIndex___str__(self)
3623 
3624 
3625  def __repr__(self):
3626  """__repr__(FloatIndex self) -> std::string"""
3627  return _IMP_kernel.FloatIndex___repr__(self)
3628 
3629  __swig_destroy__ = _IMP_kernel.delete_FloatIndex
3630  __del__ = lambda self: None
3631 FloatIndex_swigregister = _IMP_kernel.FloatIndex_swigregister
3632 FloatIndex_swigregister(FloatIndex)
3633 
3634 class _ParticleIndexTag(object):
3635  """Proxy of C++ IMP::ParticleIndexTag class."""
3636 
3637  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3638  __repr__ = _swig_repr
3639 
3640  def __init__(self):
3641  """__init__(IMP::ParticleIndexTag self) -> _ParticleIndexTag"""
3642  this = _IMP_kernel.new__ParticleIndexTag()
3643  try:
3644  self.this.append(this)
3645  except __builtin__.Exception:
3646  self.this = this
3647  __swig_destroy__ = _IMP_kernel.delete__ParticleIndexTag
3648  __del__ = lambda self: None
3649 _ParticleIndexTag_swigregister = _IMP_kernel._ParticleIndexTag_swigregister
3650 _ParticleIndexTag_swigregister(_ParticleIndexTag)
3651 
3652 class ModelObject(Object):
3653  """Proxy of C++ IMP::ModelObject class."""
3654 
3655  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3656 
3657  def __init__(self, m, name):
3658  """__init__(IMP::ModelObject self, Model m, std::string name) -> ModelObject"""
3659  if self.__class__ == ModelObject:
3660  _self = None
3661  else:
3662  _self = self
3663  this = _IMP_kernel.new_ModelObject(_self, m, name)
3664  try:
3665  self.this.append(this)
3666  except __builtin__.Exception:
3667  self.this = this
3668 
3669  if self.__class__ != ModelObject:
3670  _director_objects.register(self)
3671 
3672 
3673 
3674  __swig_destroy__ = _IMP_kernel.delete_ModelObject
3675  __del__ = lambda self: None
3676 
3677  def get_model(self):
3678  """get_model(ModelObject self) -> Model"""
3679  return _IMP_kernel.ModelObject_get_model(self)
3680 
3681 
3682  def get_inputs(self):
3683  """get_inputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3684  return _IMP_kernel.ModelObject_get_inputs(self)
3685 
3686 
3687  def get_outputs(self):
3688  """get_outputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3689  return _IMP_kernel.ModelObject_get_outputs(self)
3690 
3691 
3692  def get_interactions(self):
3693  """get_interactions(ModelObject self) -> IMP::ModelObjectsTemps"""
3694  return _IMP_kernel.ModelObject_get_interactions(self)
3695 
3696 
3697  def get_has_dependencies(self):
3698  """get_has_dependencies(ModelObject self) -> bool"""
3699  return _IMP_kernel.ModelObject_get_has_dependencies(self)
3700 
3701 
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)
3705 
3706 
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)
3710 
3711 
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)
3715 
3716 
3717  def get_required_score_states(self):
3718  """get_required_score_states(ModelObject self) -> IMP::ScoreStatesTemp const &"""
3719  return _IMP_kernel.ModelObject_get_required_score_states(self)
3720 
3721 
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)
3725 
3726 
3727  def do_get_inputs(self):
3728  """do_get_inputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3729  return _IMP_kernel.ModelObject_do_get_inputs(self)
3730 
3731 
3732  def do_get_outputs(self):
3733  """do_get_outputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3734  return _IMP_kernel.ModelObject_do_get_outputs(self)
3735 
3736 
3737  def do_get_interactions(self):
3738  """do_get_interactions(ModelObject self) -> IMP::ModelObjectsTemps"""
3739  return _IMP_kernel.ModelObject_do_get_interactions(self)
3740 
3741 
3742  def __str__(self):
3743  """__str__(ModelObject self) -> std::string"""
3744  return _IMP_kernel.ModelObject___str__(self)
3745 
3746 
3747  def __repr__(self):
3748  """__repr__(ModelObject self) -> std::string"""
3749  return _IMP_kernel.ModelObject___repr__(self)
3750 
3751 
3752  @staticmethod
3753  def get_from(o):
3754  return _object_cast_to_ModelObject(o)
3755 
3756 
3757  def get_type_name(self):
3758  return self.__class__.__name__
3759  def do_show(self, out):
3760  pass
3761  def get_version_info(self):
3762  if"IMP" == "IMP":
3763  return VersionInfo(self.__module__,
3764  __import__(self.__module__).get_module_version())
3765  else:
3766  return IMP.VersionInfo(self.__module__,
3767  __import__(self.__module__).get_module_version())
3768  @staticmethod
3769  def get_from(o):
3770  return _object_cast_to_ModelObject(o)
3771 
3772  def __disown__(self):
3773  self.this.disown()
3774  _IMP_kernel.disown_ModelObject(self)
3775  return weakref_proxy(self)
3776 
3777  def do_destroy(self):
3778  """do_destroy(ModelObject self)"""
3779  return _IMP_kernel.ModelObject_do_destroy(self)
3780 
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
3786 
3787 class _ParticleInputs(object):
3788  """Proxy of C++ IMP::ParticleInputs class."""
3789 
3790  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3791 
3792  def __init__(self, *args, **kwargs):
3793  raise AttributeError("No constructor defined - class is abstract")
3794  __repr__ = _swig_repr
3795 
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)
3799 
3800 _ParticleInputs_swigregister = _IMP_kernel._ParticleInputs_swigregister
3801 _ParticleInputs_swigregister(_ParticleInputs)
3802 
3803 class _ParticleOutputs(object):
3804  """Proxy of C++ IMP::ParticleOutputs class."""
3805 
3806  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3807 
3808  def __init__(self, *args, **kwargs):
3809  raise AttributeError("No constructor defined - class is abstract")
3810  __repr__ = _swig_repr
3811 
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)
3815 
3816 _ParticleOutputs_swigregister = _IMP_kernel._ParticleOutputs_swigregister
3817 _ParticleOutputs_swigregister(_ParticleOutputs)
3818 
3819 
3820 def get_input_particles(mos):
3821  """get_input_particles(IMP::ModelObjectsTemp const & mos) -> IMP::ParticlesTemp"""
3822  return _IMP_kernel.get_input_particles(mos)
3823 
3824 def get_input_containers(mos):
3825  """get_input_containers(IMP::ModelObjectsTemp const & mos) -> IMP::ContainersTemp"""
3826  return _IMP_kernel.get_input_containers(mos)
3827 
3828 def get_output_particles(mos):
3829  """get_output_particles(IMP::ModelObjectsTemp const & mos) -> IMP::ParticlesTemp"""
3830  return _IMP_kernel.get_output_particles(mos)
3831 
3832 def get_output_containers(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."""
3837 
3838  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3839  __repr__ = _swig_repr
3840 
3841  def __init__(self, *args):
3842  """
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
3846  """
3847  this = _IMP_kernel.new_DerivativeAccumulator(*args)
3848  try:
3849  self.this.append(this)
3850  except __builtin__.Exception:
3851  self.this = this
3852 
3853  def __call__(self, value):
3854  """__call__(DerivativeAccumulator self, double const value) -> double"""
3855  return _IMP_kernel.DerivativeAccumulator___call__(self, value)
3856 
3857 
3858  def get_weight(self):
3859  """get_weight(DerivativeAccumulator self) -> double"""
3860  return _IMP_kernel.DerivativeAccumulator_get_weight(self)
3861 
3862 
3863  def show(self, *args):
3864  """
3865  show(DerivativeAccumulator self, _ostream out)
3866  show(DerivativeAccumulator self)
3867  """
3868  return _IMP_kernel.DerivativeAccumulator_show(self, *args)
3869 
3870  __swig_destroy__ = _IMP_kernel.delete_DerivativeAccumulator
3871  __del__ = lambda self: None
3872 DerivativeAccumulator_swigregister = _IMP_kernel.DerivativeAccumulator_swigregister
3873 DerivativeAccumulator_swigregister(DerivativeAccumulator)
3874 
3875 class EvaluationState(object):
3876  """Proxy of C++ IMP::EvaluationState class."""
3877 
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)
3881 
3882  def __init__(self, *args):
3883  """
3884  __init__(IMP::EvaluationState self, double oscore, bool ogood) -> EvaluationState
3885  __init__(IMP::EvaluationState self) -> EvaluationState
3886  """
3887  this = _IMP_kernel.new_EvaluationState(*args)
3888  try:
3889  self.this.append(this)
3890  except __builtin__.Exception:
3891  self.this = this
3892 
3893  def show(self, *args):
3894  """
3895  show(EvaluationState self, _ostream out)
3896  show(EvaluationState self)
3897  """
3898  return _IMP_kernel.EvaluationState_show(self, *args)
3899 
3900 
3901  def __str__(self):
3902  """__str__(EvaluationState self) -> std::string"""
3903  return _IMP_kernel.EvaluationState___str__(self)
3904 
3905 
3906  def __repr__(self):
3907  """__repr__(EvaluationState self) -> std::string"""
3908  return _IMP_kernel.EvaluationState___repr__(self)
3909 
3910  __swig_destroy__ = _IMP_kernel.delete_EvaluationState
3911  __del__ = lambda self: None
3912 EvaluationState_swigregister = _IMP_kernel.EvaluationState_swigregister
3913 EvaluationState_swigregister(EvaluationState)
3914 
3915 class ScoreAccumulator(_Value):
3916  """Proxy of C++ IMP::ScoreAccumulator class."""
3917 
3918  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3919 
3920  def __init__(self, *args):
3921  """
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
3925  """
3926  this = _IMP_kernel.new_ScoreAccumulator(*args)
3927  try:
3928  self.this.append(this)
3929  except __builtin__.Exception:
3930  self.this = this
3931 
3932  def add_score(self, score):
3933  """add_score(ScoreAccumulator self, double score)"""
3934  return _IMP_kernel.ScoreAccumulator_add_score(self, score)
3935 
3936 
3937  def get_abort_evaluation(self):
3938  """get_abort_evaluation(ScoreAccumulator self) -> bool"""
3939  return _IMP_kernel.ScoreAccumulator_get_abort_evaluation(self)
3940 
3941 
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)
3945 
3946 
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)
3950 
3951 
3952  def get_maximum(self):
3953  """get_maximum(ScoreAccumulator self) -> double"""
3954  return _IMP_kernel.ScoreAccumulator_get_maximum(self)
3955 
3956 
3957  def get_derivative_accumulator(self):
3958  """get_derivative_accumulator(ScoreAccumulator self) -> DerivativeAccumulator"""
3959  return _IMP_kernel.ScoreAccumulator_get_derivative_accumulator(self)
3960 
3961 
3962  def show(self, *args):
3963  """
3964  show(ScoreAccumulator self, _ostream out)
3965  show(ScoreAccumulator self)
3966  """
3967  return _IMP_kernel.ScoreAccumulator_show(self, *args)
3968 
3969 
3970  def __str__(self):
3971  """__str__(ScoreAccumulator self) -> std::string"""
3972  return _IMP_kernel.ScoreAccumulator___str__(self)
3973 
3974 
3975  def __repr__(self):
3976  """__repr__(ScoreAccumulator self) -> std::string"""
3977  return _IMP_kernel.ScoreAccumulator___repr__(self)
3978 
3979  __swig_destroy__ = _IMP_kernel.delete_ScoreAccumulator
3980  __del__ = lambda self: None
3981 ScoreAccumulator_swigregister = _IMP_kernel.ScoreAccumulator_swigregister
3982 ScoreAccumulator_swigregister(ScoreAccumulator)
3983 
3984 class ScoreState(ModelObject):
3985  """Proxy of C++ IMP::ScoreState class."""
3986 
3987  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3988 
3989  def __init__(self, m, name):
3990  """__init__(IMP::ScoreState self, Model m, std::string name) -> ScoreState"""
3991  if self.__class__ == ScoreState:
3992  _self = None
3993  else:
3994  _self = self
3995  this = _IMP_kernel.new_ScoreState(_self, m, name)
3996  try:
3997  self.this.append(this)
3998  except __builtin__.Exception:
3999  self.this = this
4000 
4001  if self.__class__ != ScoreState:
4002  _director_objects.register(self)
4003 
4004 
4005 
4006 
4007  def before_evaluate(self):
4008  """before_evaluate(ScoreState self)"""
4009  return _IMP_kernel.ScoreState_before_evaluate(self)
4010 
4011 
4012  def after_evaluate(self, accpt):
4013  """after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
4014  return _IMP_kernel.ScoreState_after_evaluate(self, accpt)
4015 
4016 
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)
4020 
4021 
4022  def get_update_order(self):
4023  """get_update_order(ScoreState self) -> unsigned int"""
4024  return _IMP_kernel.ScoreState_get_update_order(self)
4025 
4026 
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)
4030 
4031 
4032  def do_before_evaluate(self):
4033  """do_before_evaluate(ScoreState self)"""
4034  return _IMP_kernel.ScoreState_do_before_evaluate(self)
4035 
4036 
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)
4040 
4041  __swig_destroy__ = _IMP_kernel.delete_ScoreState
4042  __del__ = lambda self: None
4043 
4044  def __str__(self):
4045  """__str__(ScoreState self) -> std::string"""
4046  return _IMP_kernel.ScoreState___str__(self)
4047 
4048 
4049  def __repr__(self):
4050  """__repr__(ScoreState self) -> std::string"""
4051  return _IMP_kernel.ScoreState___repr__(self)
4052 
4053 
4054  @staticmethod
4055  def get_from(o):
4056  return _object_cast_to_ScoreState(o)
4057 
4058 
4059  def get_type_name(self):
4060  return self.__class__.__name__
4061  def do_show(self, out):
4062  pass
4063  def get_version_info(self):
4064  if"IMP" == "IMP":
4065  return VersionInfo(self.__module__,
4066  __import__(self.__module__).get_module_version())
4067  else:
4068  return IMP.VersionInfo(self.__module__,
4069  __import__(self.__module__).get_module_version())
4070  @staticmethod
4071  def get_from(o):
4072  return _object_cast_to_ScoreState(o)
4073 
4074  def __disown__(self):
4075  self.this.disown()
4076  _IMP_kernel.disown_ScoreState(self)
4077  return weakref_proxy(self)
4078 
4079  def do_destroy(self):
4080  """do_destroy(ScoreState self)"""
4081  return _IMP_kernel.ScoreState_do_destroy(self)
4082 
4083 
4084  def do_get_inputs(self):
4085  """do_get_inputs(ScoreState self) -> IMP::ModelObjectsTemp"""
4086  return _IMP_kernel.ScoreState_do_get_inputs(self)
4087 
4088 
4089  def do_get_outputs(self):
4090  """do_get_outputs(ScoreState self) -> IMP::ModelObjectsTemp"""
4091  return _IMP_kernel.ScoreState_do_get_outputs(self)
4092 
4093 
4094  def do_get_interactions(self):
4095  """do_get_interactions(ScoreState self) -> IMP::ModelObjectsTemps"""
4096  return _IMP_kernel.ScoreState_do_get_interactions(self)
4097 
4098 ScoreState_swigregister = _IMP_kernel.ScoreState_swigregister
4099 ScoreState_swigregister(ScoreState)
4100 
4101 
4102 def get_update_order(input):
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."""
4107 
4108  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4109 
4110  def __init__(self, *args):
4111  """
4112  __init__(IMP::Constraint self, Model m, std::string name) -> Constraint
4113  __init__(IMP::Constraint self, Model m) -> Constraint
4114  """
4115  if self.__class__ == Constraint:
4116  _self = None
4117  else:
4118  _self = self
4119  this = _IMP_kernel.new_Constraint(_self, *args)
4120  try:
4121  self.this.append(this)
4122  except __builtin__.Exception:
4123  self.this = this
4124 
4125  if self.__class__ != Constraint:
4126  _director_objects.register(self)
4127 
4128 
4129 
4130 
4131  def do_update_attributes(self):
4132  """do_update_attributes(Constraint self)"""
4133  return _IMP_kernel.Constraint_do_update_attributes(self)
4134 
4135 
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)
4139 
4140 
4141  def do_before_evaluate(self):
4142  """do_before_evaluate(Constraint self)"""
4143  return _IMP_kernel.Constraint_do_before_evaluate(self)
4144 
4145 
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)
4149 
4150  __swig_destroy__ = _IMP_kernel.delete_Constraint
4151  __del__ = lambda self: None
4152 
4153  def __str__(self):
4154  """__str__(Constraint self) -> std::string"""
4155  return _IMP_kernel.Constraint___str__(self)
4156 
4157 
4158  def __repr__(self):
4159  """__repr__(Constraint self) -> std::string"""
4160  return _IMP_kernel.Constraint___repr__(self)
4161 
4162 
4163  @staticmethod
4164  def get_from(o):
4165  return _object_cast_to_Constraint(o)
4166 
4167 
4168  def get_type_name(self):
4169  return self.__class__.__name__
4170  def do_show(self, out):
4171  pass
4172  def get_version_info(self):
4173  if"IMP" == "IMP":
4174  return VersionInfo(self.__module__,
4175  __import__(self.__module__).get_module_version())
4176  else:
4177  return IMP.VersionInfo(self.__module__,
4178  __import__(self.__module__).get_module_version())
4179  @staticmethod
4180  def get_from(o):
4181  return _object_cast_to_Constraint(o)
4182 
4183  def __disown__(self):
4184  self.this.disown()
4185  _IMP_kernel.disown_Constraint(self)
4186  return weakref_proxy(self)
4187 
4188  def do_destroy(self):
4189  """do_destroy(Constraint self)"""
4190  return _IMP_kernel.Constraint_do_destroy(self)
4191 
4192 
4193  def do_get_inputs(self):
4194  """do_get_inputs(Constraint self) -> IMP::ModelObjectsTemp"""
4195  return _IMP_kernel.Constraint_do_get_inputs(self)
4196 
4197 
4198  def do_get_outputs(self):
4199  """do_get_outputs(Constraint self) -> IMP::ModelObjectsTemp"""
4200  return _IMP_kernel.Constraint_do_get_outputs(self)
4201 
4202 
4203  def do_get_interactions(self):
4204  """do_get_interactions(Constraint self) -> IMP::ModelObjectsTemps"""
4205  return _IMP_kernel.Constraint_do_get_interactions(self)
4206 
4207 Constraint_swigregister = _IMP_kernel.Constraint_swigregister
4208 Constraint_swigregister(Constraint)
4209 
4210 class Container(ModelObject):
4211  """Proxy of C++ IMP::Container class."""
4212 
4213  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4214 
4215  def __init__(self, *args):
4216  """
4217  __init__(IMP::Container self, Model m, std::string name) -> Container
4218  __init__(IMP::Container self, Model m) -> Container
4219  """
4220  if self.__class__ == Container:
4221  _self = None
4222  else:
4223  _self = self
4224  this = _IMP_kernel.new_Container(_self, *args)
4225  try:
4226  self.this.append(this)
4227  except __builtin__.Exception:
4228  self.this = this
4229 
4230  if self.__class__ != Container:
4231  _director_objects.register(self)
4232 
4233 
4234 
4235 
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)
4239 
4240 
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)
4244 
4245 
4246  def get_contents_hash(self):
4247  """get_contents_hash(Container self) -> std::size_t"""
4248  return _IMP_kernel.Container_get_contents_hash(self)
4249 
4250 
4251  def do_get_outputs(self):
4252  """do_get_outputs(Container self) -> IMP::ModelObjectsTemp"""
4253  return _IMP_kernel.Container_do_get_outputs(self)
4254 
4255 
4256  def get_is_decomposable(self):
4257  """get_is_decomposable(Container self) -> bool"""
4258  return _IMP_kernel.Container_get_is_decomposable(self)
4259 
4260 
4261  def validate_readable(self):
4262  """validate_readable(Container self)"""
4263  return _IMP_kernel.Container_validate_readable(self)
4264 
4265 
4266  def validate_writable(self):
4267  """validate_writable(Container self)"""
4268  return _IMP_kernel.Container_validate_writable(self)
4269 
4270 
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)
4274 
4275 
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)
4279 
4280  __swig_destroy__ = _IMP_kernel.delete_Container
4281  __del__ = lambda self: None
4282 
4283  def __str__(self):
4284  """__str__(Container self) -> std::string"""
4285  return _IMP_kernel.Container___str__(self)
4286 
4287 
4288  def __repr__(self):
4289  """__repr__(Container self) -> std::string"""
4290  return _IMP_kernel.Container___repr__(self)
4291 
4292 
4293  @staticmethod
4294  def get_from(o):
4295  return _object_cast_to_Container(o)
4296 
4297 
4298  def get_type_name(self):
4299  return self.__class__.__name__
4300  def do_show(self, out):
4301  pass
4302  def get_version_info(self):
4303  if"IMP" == "IMP":
4304  return VersionInfo(self.__module__,
4305  __import__(self.__module__).get_module_version())
4306  else:
4307  return IMP.VersionInfo(self.__module__,
4308  __import__(self.__module__).get_module_version())
4309  @staticmethod
4310  def get_from(o):
4311  return _object_cast_to_Container(o)
4312 
4313  def __disown__(self):
4314  self.this.disown()
4315  _IMP_kernel.disown_Container(self)
4316  return weakref_proxy(self)
4317 
4318  def do_destroy(self):
4319  """do_destroy(Container self)"""
4320  return _IMP_kernel.Container_do_destroy(self)
4321 
4322 
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)
4326 
4327 
4328  def do_get_inputs(self):
4329  """do_get_inputs(Container self) -> IMP::ModelObjectsTemp"""
4330  return _IMP_kernel.Container_do_get_inputs(self)
4331 
4332 
4333  def do_get_interactions(self):
4334  """do_get_interactions(Container self) -> IMP::ModelObjectsTemps"""
4335  return _IMP_kernel.Container_do_get_interactions(self)
4336 
4337 Container_swigregister = _IMP_kernel.Container_swigregister
4338 Container_swigregister(Container)
4339 
4340 class RestraintInfo(Object):
4341  """Proxy of C++ IMP::RestraintInfo class."""
4342 
4343  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4344 
4345  def __init__(self, *args):
4346  """
4347  __init__(IMP::RestraintInfo self, std::string name) -> RestraintInfo
4348  __init__(IMP::RestraintInfo self) -> RestraintInfo
4349  """
4350  this = _IMP_kernel.new_RestraintInfo(*args)
4351  try:
4352  self.this.append(this)
4353  except __builtin__.Exception:
4354  self.this = this
4355 
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)
4359 
4360 
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)
4364 
4365 
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)
4369 
4370 
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)
4374 
4375 
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)
4379 
4380 
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)
4384 
4385 
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)
4389 
4390 
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)
4394 
4395 
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)
4399 
4400 
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)
4404 
4405 
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)
4409 
4410 
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)
4414 
4415 
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)
4419 
4420 
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)
4424 
4425 
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)
4429 
4430 
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)
4434 
4435 
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)
4439 
4440 
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)
4444 
4445 
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)
4449 
4450 
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)
4454 
4455 
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)
4459 
4460 
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)
4464 
4465 
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)
4469 
4470 
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)
4474 
4475 
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)
4479 
4480 
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)
4484 
4485 
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)
4489 
4490 
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)
4494 
4495 
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)
4499 
4500 
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)
4504 
4505 
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)
4509 
4510 
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)
4514 
4515 
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)
4519 
4520 
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)
4524 
4525 
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)
4529 
4530 
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)
4534 
4535 
4536  def get_version_info(self):
4537  """get_version_info(RestraintInfo self) -> VersionInfo"""
4538  return _IMP_kernel.RestraintInfo_get_version_info(self)
4539 
4540 
4541  def __str__(self):
4542  """__str__(RestraintInfo self) -> std::string"""
4543  return _IMP_kernel.RestraintInfo___str__(self)
4544 
4545 
4546  def __repr__(self):
4547  """__repr__(RestraintInfo self) -> std::string"""
4548  return _IMP_kernel.RestraintInfo___repr__(self)
4549 
4550 
4551  @staticmethod
4552  def get_from(o):
4553  return _object_cast_to_RestraintInfo(o)
4554 
4555 RestraintInfo_swigregister = _IMP_kernel.RestraintInfo_swigregister
4556 RestraintInfo_swigregister(RestraintInfo)
4557 
4558 class Restraint(ModelObject):
4559  """Proxy of C++ IMP::Restraint class."""
4560 
4561  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4562 
4563  def __init__(self, m, name):
4564  """__init__(IMP::Restraint self, Model m, std::string name) -> Restraint"""
4565  if self.__class__ == Restraint:
4566  _self = None
4567  else:
4568  _self = self
4569  this = _IMP_kernel.new_Restraint(_self, m, name)
4570  try:
4571  self.this.append(this)
4572  except __builtin__.Exception:
4573  self.this = this
4574 
4575  if self.__class__ != Restraint:
4576  _director_objects.register(self)
4577 
4578 
4579 
4580 
4581  def get_score(self):
4582  """get_score(Restraint self) -> double"""
4583  return _IMP_kernel.Restraint_get_score(self)
4584 
4585 
4586  def evaluate(self, calc_derivs):
4587  """evaluate(Restraint self, bool calc_derivs) -> double"""
4588  return _IMP_kernel.Restraint_evaluate(self, calc_derivs)
4589 
4590 
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)
4594 
4595 
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)
4599 
4600 
4601  def unprotected_evaluate(self, da):
4602  """unprotected_evaluate(Restraint self, DerivativeAccumulator da) -> double"""
4603  return _IMP_kernel.Restraint_unprotected_evaluate(self, da)
4604 
4605 
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)
4609 
4610 
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)
4614 
4615 
4616  def get_static_info(self):
4617  """get_static_info(Restraint self) -> RestraintInfo"""
4618  return _IMP_kernel.Restraint_get_static_info(self)
4619 
4620 
4621  def get_dynamic_info(self):
4622  """get_dynamic_info(Restraint self) -> RestraintInfo"""
4623  return _IMP_kernel.Restraint_get_dynamic_info(self)
4624 
4625 
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)
4629 
4630 
4631  def create_decomposition(self):
4632  """create_decomposition(Restraint self) -> Restraint"""
4633  return _IMP_kernel.Restraint_create_decomposition(self)
4634 
4635 
4636  def create_current_decomposition(self):
4637  """create_current_decomposition(Restraint self) -> Restraint"""
4638  return _IMP_kernel.Restraint_create_current_decomposition(self)
4639 
4640 
4641  def set_weight(self, weight):
4642  """set_weight(Restraint self, IMP::Float weight)"""
4643  return _IMP_kernel.Restraint_set_weight(self, weight)
4644 
4645 
4646  def get_weight(self):
4647  """get_weight(Restraint self) -> IMP::Float"""
4648  return _IMP_kernel.Restraint_get_weight(self)
4649 
4650 
4651  def get_maximum_score(self):
4652  """get_maximum_score(Restraint self) -> double"""
4653  return _IMP_kernel.Restraint_get_maximum_score(self)
4654 
4655 
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)
4659 
4660 
4661  def create_scoring_function(self, *args):
4662  """
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
4666  """
4667  return _IMP_kernel.Restraint_create_scoring_function(self, *args)
4668 
4669 
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)
4673 
4674 
4675  def get_last_score(self):
4676  """get_last_score(Restraint self) -> double"""
4677  return _IMP_kernel.Restraint_get_last_score(self)
4678 
4679 
4680  def get_was_good(self):
4681  """get_was_good(Restraint self) -> bool"""
4682  return _IMP_kernel.Restraint_get_was_good(self)
4683 
4684  __swig_destroy__ = _IMP_kernel.delete_Restraint
4685  __del__ = lambda self: None
4686 
4687  def do_create_decomposition(self):
4688  """do_create_decomposition(Restraint self) -> IMP::Restraints"""
4689  return _IMP_kernel.Restraint_do_create_decomposition(self)
4690 
4691 
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)
4695 
4696 
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)
4700 
4701 
4702  def do_get_outputs(self):
4703  """do_get_outputs(Restraint self) -> IMP::ModelObjectsTemp"""
4704  return _IMP_kernel.Restraint_do_get_outputs(self)
4705 
4706 
4707  def __str__(self):
4708  """__str__(Restraint self) -> std::string"""
4709  return _IMP_kernel.Restraint___str__(self)
4710 
4711 
4712  def __repr__(self):
4713  """__repr__(Restraint self) -> std::string"""
4714  return _IMP_kernel.Restraint___repr__(self)
4715 
4716 
4717  @staticmethod
4718  def get_from(o):
4719  return _object_cast_to_Restraint(o)
4720 
4721 
4722  def get_type_name(self):
4723  return self.__class__.__name__
4724  def do_show(self, out):
4725  pass
4726  def get_version_info(self):
4727  if"IMP" == "IMP":
4728  return VersionInfo(self.__module__,
4729  __import__(self.__module__).get_module_version())
4730  else:
4731  return IMP.VersionInfo(self.__module__,
4732  __import__(self.__module__).get_module_version())
4733  @staticmethod
4734  def get_from(o):
4735  return _object_cast_to_Restraint(o)
4736 
4737  def __disown__(self):
4738  self.this.disown()
4739  _IMP_kernel.disown_Restraint(self)
4740  return weakref_proxy(self)
4741 
4742  def do_destroy(self):
4743  """do_destroy(Restraint self)"""
4744  return _IMP_kernel.Restraint_do_destroy(self)
4745 
4746 
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)
4750 
4751 
4752  def do_get_inputs(self):
4753  """do_get_inputs(Restraint self) -> IMP::ModelObjectsTemp"""
4754  return _IMP_kernel.Restraint_do_get_inputs(self)
4755 
4756 
4757  def do_get_interactions(self):
4758  """do_get_interactions(Restraint self) -> IMP::ModelObjectsTemps"""
4759  return _IMP_kernel.Restraint_do_get_interactions(self)
4760 
4761 Restraint_swigregister = _IMP_kernel.Restraint_swigregister
4762 Restraint_swigregister(Restraint)
4763 
4764 class _RestraintsAdaptor(_InputAdaptor):
4765  """Proxy of C++ IMP::RestraintsAdaptor class."""
4766 
4767  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4768  __repr__ = _swig_repr
4769 
4770  def __init__(self, *args):
4771  """
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
4776  """
4777  this = _IMP_kernel.new__RestraintsAdaptor(*args)
4778  try:
4779  self.this.append(this)
4780  except __builtin__.Exception:
4781  self.this = this
4782  __swig_destroy__ = _IMP_kernel.delete__RestraintsAdaptor
4783  __del__ = lambda self: None
4784 _RestraintsAdaptor_swigregister = _IMP_kernel._RestraintsAdaptor_swigregister
4785 _RestraintsAdaptor_swigregister(_RestraintsAdaptor)
4786 
4787 class RestraintSet(Restraint):
4788  """Proxy of C++ IMP::RestraintSet class."""
4789 
4790  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4791 
4792  def __init__(self, *args):
4793  """
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
4800  """
4801  if self.__class__ == RestraintSet:
4802  _self = None
4803  else:
4804  _self = self
4805  this = _IMP_kernel.new_RestraintSet(_self, *args)
4806  try:
4807  self.this.append(this)
4808  except __builtin__.Exception:
4809  self.this = this
4810 
4811  if self.__class__ != RestraintSet:
4812  _director_objects.register(self)
4813 
4814 
4815 
4816 
4817  def unprotected_evaluate(self, da):
4818  """unprotected_evaluate(RestraintSet self, DerivativeAccumulator da) -> double"""
4819  return _IMP_kernel.RestraintSet_unprotected_evaluate(self, da)
4820 
4821 
4822  def get_type_name(self):
4823  """get_type_name(RestraintSet self) -> std::string"""
4824  return _IMP_kernel.RestraintSet_get_type_name(self)
4825 
4826 
4827  def get_version_info(self):
4828  """get_version_info(RestraintSet self) -> VersionInfo"""
4829  return _IMP_kernel.RestraintSet_get_version_info(self)
4830 
4831 
4832  def remove_restraint(self, d):
4833  """remove_restraint(RestraintSet self, Restraint d)"""
4834  return _IMP_kernel.RestraintSet_remove_restraint(self, d)
4835 
4836 
4837  def remove_restraints(self, d):
4838  """remove_restraints(RestraintSet self, IMP::Restraints const & d)"""
4839  return _IMP_kernel.RestraintSet_remove_restraints(self, d)
4840 
4841 
4842  def set_restraints(self, ps):
4843  """set_restraints(RestraintSet self, IMP::Restraints const & ps)"""
4844  return _IMP_kernel.RestraintSet_set_restraints(self, ps)
4845 
4846 
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)
4850 
4851 
4852  def add_restraint(self, obj):
4853  """add_restraint(RestraintSet self, Restraint obj) -> unsigned int"""
4854  return _IMP_kernel.RestraintSet_add_restraint(self, obj)
4855 
4856 
4857  def add_restraints(self, objs):
4858  """add_restraints(RestraintSet self, IMP::Restraints const & objs)"""
4859  return _IMP_kernel.RestraintSet_add_restraints(self, objs)
4860 
4861 
4862  def clear_restraints(self):
4863  """clear_restraints(RestraintSet self)"""
4864  return _IMP_kernel.RestraintSet_clear_restraints(self)
4865 
4866 
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)
4870 
4871 
4872  def get_has_restraints(self):
4873  """get_has_restraints(RestraintSet self) -> bool"""
4874  return _IMP_kernel.RestraintSet_get_has_restraints(self)
4875 
4876 
4877  def get_restraint(self, i):
4878  """get_restraint(RestraintSet self, unsigned int i) -> Restraint"""
4879  return _IMP_kernel.RestraintSet_get_restraint(self, i)
4880 
4881 
4882  def get_restraints(self):
4883  """get_restraints(RestraintSet self) -> IMP::Restraints"""
4884  return _IMP_kernel.RestraintSet_get_restraints(self)
4885 
4886 
4887  def reserve_restraints(self, sz):
4888  """reserve_restraints(RestraintSet self, unsigned int sz)"""
4889  return _IMP_kernel.RestraintSet_reserve_restraints(self, sz)
4890 
4891 
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)
4895 
4896 
4897  def do_get_inputs(self):
4898  """do_get_inputs(RestraintSet self) -> IMP::ModelObjectsTemp"""
4899  return _IMP_kernel.RestraintSet_do_get_inputs(self)
4900 
4901 
4902  def create_scoring_function(self, *args):
4903  """
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
4907  """
4908  return _IMP_kernel.RestraintSet_create_scoring_function(self, *args)
4909 
4910 
4911  def get_last_score(self):
4912  """get_last_score(RestraintSet self) -> double"""
4913  return _IMP_kernel.RestraintSet_get_last_score(self)
4914 
4915 
4916  def __str__(self):
4917  """__str__(RestraintSet self) -> std::string"""
4918  return _IMP_kernel.RestraintSet___str__(self)
4919 
4920 
4921  def __repr__(self):
4922  """__repr__(RestraintSet self) -> std::string"""
4923  return _IMP_kernel.RestraintSet___repr__(self)
4924 
4925 
4926  @staticmethod
4927  def get_from(o):
4928  return _object_cast_to_RestraintSet(o)
4929 
4930 
4931  def get_type_name(self):
4932  return self.__class__.__name__
4933  def do_show(self, out):
4934  pass
4935  def get_version_info(self):
4936  if"IMP" == "IMP":
4937  return VersionInfo(self.__module__,
4938  __import__(self.__module__).get_module_version())
4939  else:
4940  return IMP.VersionInfo(self.__module__,
4941  __import__(self.__module__).get_module_version())
4942  @staticmethod
4943  def get_from(o):
4944  return _object_cast_to_RestraintSet(o)
4945 
4946  def __disown__(self):
4947  self.this.disown()
4948  _IMP_kernel.disown_RestraintSet(self)
4949  return weakref_proxy(self)
4950 
4951  def do_destroy(self):
4952  """do_destroy(RestraintSet self)"""
4953  return _IMP_kernel.RestraintSet_do_destroy(self)
4954 
4955 
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)
4959 
4960 
4961  def do_get_outputs(self):
4962  """do_get_outputs(RestraintSet self) -> IMP::ModelObjectsTemp"""
4963  return _IMP_kernel.RestraintSet_do_get_outputs(self)
4964 
4965 
4966  def do_get_interactions(self):
4967  """do_get_interactions(RestraintSet self) -> IMP::ModelObjectsTemps"""
4968  return _IMP_kernel.RestraintSet_do_get_interactions(self)
4969 
4970 
4971  def do_create_decomposition(self):
4972  """do_create_decomposition(RestraintSet self) -> IMP::Restraints"""
4973  return _IMP_kernel.RestraintSet_do_create_decomposition(self)
4974 
4975 
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)
4979 
4980 
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)
4984 
4985 RestraintSet_swigregister = _IMP_kernel.RestraintSet_swigregister
4986 RestraintSet_swigregister(RestraintSet)
4987 
4988 
4989 def get_restraints(rs):
4990  """get_restraints(IMP::RestraintsTemp const & rs) -> IMP::RestraintsTemp"""
4991  return _IMP_kernel.get_restraints(rs)
4992 
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")
5000 
5001 class Particle(ModelObject):
5002  """Proxy of C++ IMP::Particle class."""
5003 
5004  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5005 
5006  def get_version_info(self):
5007  """get_version_info(Particle self) -> VersionInfo"""
5008  return _IMP_kernel.Particle_get_version_info(self)
5009 
5010 
5011  def __init__(self, *args):
5012  """
5013  __init__(IMP::Particle self, Model m, std::string name) -> Particle
5014  __init__(IMP::Particle self, Model m) -> Particle
5015  """
5016  this = _IMP_kernel.new_Particle(*args)
5017  try:
5018  self.this.append(this)
5019  except __builtin__.Exception:
5020  self.this = this
5021 
5022  def get_float_keys(self):
5023  """get_float_keys(Particle self) -> IMP::FloatKeys"""
5024  return _IMP_kernel.Particle_get_float_keys(self)
5025 
5026 
5027  def get_floats_keys(self):
5028  """get_floats_keys(Particle self) -> IMP::FloatsKeys"""
5029  return _IMP_kernel.Particle_get_floats_keys(self)
5030 
5031 
5032  def get_int_keys(self):
5033  """get_int_keys(Particle self) -> IMP::IntKeys"""
5034  return _IMP_kernel.Particle_get_int_keys(self)
5035 
5036 
5037  def get_ints_keys(self):
5038  """get_ints_keys(Particle self) -> IMP::IntsKeys"""
5039  return _IMP_kernel.Particle_get_ints_keys(self)
5040 
5041 
5042  def get_string_keys(self):
5043  """get_string_keys(Particle self) -> IMP::StringKeys"""
5044  return _IMP_kernel.Particle_get_string_keys(self)
5045 
5046 
5047  def get_object_keys(self):
5048  """get_object_keys(Particle self) -> IMP::ObjectKeys"""
5049  return _IMP_kernel.Particle_get_object_keys(self)
5050 
5051 
5052  def add_cache_attribute(self, *args):
5053  """
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)
5061  """
5062  return _IMP_kernel.Particle_add_cache_attribute(self, *args)
5063 
5064 
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)
5068 
5069 
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)
5073 
5074 
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)
5078 
5079 
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)
5083 
5084 
5085  def get_derivative(self, k):
5086  """get_derivative(Particle self, FloatKey k) -> IMP::Float"""
5087  return _IMP_kernel.Particle_get_derivative(self, k)
5088 
5089 
5090  def add_attribute(self, *args):
5091  """
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)
5101  """
5102  return _IMP_kernel.Particle_add_attribute(self, *args)
5103 
5104 
5105  def has_attribute(self, *args):
5106  """
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
5115  """
5116  return _IMP_kernel.Particle_has_attribute(self, *args)
5117 
5118 
5119  def set_value(self, *args):
5120  """
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)
5129  """
5130  return _IMP_kernel.Particle_set_value(self, *args)
5131 
5132 
5133  def get_value(self, *args):
5134  """
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
5143  """
5144  return _IMP_kernel.Particle_get_value(self, *args)
5145 
5146 
5147  def remove_attribute(self, *args):
5148  """
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)
5157  """
5158  return _IMP_kernel.Particle_remove_attribute(self, *args)
5159 
5160 
5161  def get_particle_keys(self):
5162  """get_particle_keys(Particle self) -> IMP::ParticleIndexKeys"""
5163  return _IMP_kernel.Particle_get_particle_keys(self)
5164 
5165 
5166  def show(self, *args):
5167  """
5168  show(Particle self, _ostream out)
5169  show(Particle self)
5170  """
5171  return _IMP_kernel.Particle_show(self, *args)
5172 
5173 
5174  def get_is_active(self):
5175  """get_is_active(Particle self) -> bool"""
5176  return _IMP_kernel.Particle_get_is_active(self)
5177 
5178 
5179  def get_index(self):
5180  """get_index(Particle self) -> ParticleIndex"""
5181  return _IMP_kernel.Particle_get_index(self)
5182 
5183 
5184  def __eq__(self, *args):
5185  """
5186  __eq__(Particle self, Particle o) -> bool
5187  __eq__(Particle self, Decorator d) -> bool
5188  """
5189  return _IMP_kernel.Particle___eq__(self, *args)
5190 
5191 
5192  def __ne__(self, *args):
5193  """
5194  __ne__(Particle self, Particle o) -> bool
5195  __ne__(Particle self, Decorator d) -> bool
5196  """
5197  return _IMP_kernel.Particle___ne__(self, *args)
5198 
5199 
5200  def __le__(self, *args):
5201  """
5202  __le__(Particle self, Particle o) -> bool
5203  __le__(Particle self, Decorator d) -> bool
5204  """
5205  return _IMP_kernel.Particle___le__(self, *args)
5206 
5207 
5208  def __lt__(self, *args):
5209  """
5210  __lt__(Particle self, Particle o) -> bool
5211  __lt__(Particle self, Decorator d) -> bool
5212  """
5213  return _IMP_kernel.Particle___lt__(self, *args)
5214 
5215 
5216  def __ge__(self, *args):
5217  """
5218  __ge__(Particle self, Particle o) -> bool
5219  __ge__(Particle self, Decorator d) -> bool
5220  """
5221  return _IMP_kernel.Particle___ge__(self, *args)
5222 
5223 
5224  def __gt__(self, *args):
5225  """
5226  __gt__(Particle self, Particle o) -> bool
5227  __gt__(Particle self, Decorator d) -> bool
5228  """
5229  return _IMP_kernel.Particle___gt__(self, *args)
5230 
5231 
5232  __hash__ = ModelObject.__hash__
5233 
5234 
5235  def __str__(self):
5236  """__str__(Particle self) -> std::string"""
5237  return _IMP_kernel.Particle___str__(self)
5238 
5239 
5240  def __repr__(self):
5241  """__repr__(Particle self) -> std::string"""
5242  return _IMP_kernel.Particle___repr__(self)
5243 
5244 
5245  @staticmethod
5246  def get_from(o):
5247  return _object_cast_to_Particle(o)
5248 
5249 Particle_swigregister = _IMP_kernel.Particle_swigregister
5250 Particle_swigregister(Particle)
5251 
5252 class _ParticleAdaptor(_InputAdaptor):
5253  """Proxy of C++ IMP::ParticleAdaptor class."""
5254 
5255  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5256  __repr__ = _swig_repr
5257 
5258  def __init__(self, *args):
5259  """
5260  __init__(IMP::ParticleAdaptor self) -> _ParticleAdaptor
5261  __init__(IMP::ParticleAdaptor self, Particle p) -> _ParticleAdaptor
5262  __init__(IMP::ParticleAdaptor self, Decorator d) -> _ParticleAdaptor
5263  """
5264  this = _IMP_kernel.new__ParticleAdaptor(*args)
5265  try:
5266  self.this.append(this)
5267  except __builtin__.Exception:
5268  self.this = this
5269 
5270  def get_model(self):
5271  """get_model(_ParticleAdaptor self) -> Model"""
5272  return _IMP_kernel._ParticleAdaptor_get_model(self)
5273 
5274 
5275  def get_particle_index(self):
5276  """get_particle_index(_ParticleAdaptor self) -> ParticleIndex"""
5277  return _IMP_kernel._ParticleAdaptor_get_particle_index(self)
5278 
5279  __swig_destroy__ = _IMP_kernel.delete__ParticleAdaptor
5280  __del__ = lambda self: None
5281 _ParticleAdaptor_swigregister = _IMP_kernel._ParticleAdaptor_swigregister
5282 _ParticleAdaptor_swigregister(_ParticleAdaptor)
5283 
5284 class _DependencyGraphVertexIndex(object):
5285  """Proxy of C++ IMP::DependencyGraphVertexIndex class."""
5286 
5287  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5288  __repr__ = _swig_repr
5289 
5290  def __init__(self):
5291  """__init__(IMP::DependencyGraphVertexIndex self) -> _DependencyGraphVertexIndex"""
5292  this = _IMP_kernel.new__DependencyGraphVertexIndex()
5293  try:
5294  self.this.append(this)
5295  except __builtin__.Exception:
5296  self.this = this
5297  __swig_destroy__ = _IMP_kernel.delete__DependencyGraphVertexIndex
5298  __del__ = lambda self: None
5299 _DependencyGraphVertexIndex_swigregister = _IMP_kernel._DependencyGraphVertexIndex_swigregister
5300 _DependencyGraphVertexIndex_swigregister(_DependencyGraphVertexIndex)
5301 
5302 
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)
5306 
5307 def get_vertex_index(g):
5308  """get_vertex_index(IMP::DependencyGraph const & g) -> _DependencyGraphVertexIndex"""
5309  return _IMP_kernel.get_vertex_index(g)
5310 
5311 def get_dependency_graph(m):
5312  """get_dependency_graph(Model m) -> IMP::DependencyGraph"""
5313  return _IMP_kernel.get_dependency_graph(m)
5314 
5316  """get_pruned_dependency_graph(Model m) -> IMP::DependencyGraph"""
5317  return _IMP_kernel.get_pruned_dependency_graph(m)
5318 
5319 def get_required_score_states(*args):
5320  """
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
5324  """
5325  return _IMP_kernel.get_required_score_states(*args)
5326 
5327 def get_dependent_particles(p, all, dg, index):
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)
5330 
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."""
5336 
5337  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5338 
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)
5342 
5343 
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)
5347 
5348 
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)
5352 
5353 
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)
5357 
5358 
5359  def __init__(self, m, name):
5360  """__init__(IMP::ScoringFunction self, Model m, std::string name) -> ScoringFunction"""
5361  if self.__class__ == ScoringFunction:
5362  _self = None
5363  else:
5364  _self = self
5365  this = _IMP_kernel.new_ScoringFunction(_self, m, name)
5366  try:
5367  self.this.append(this)
5368  except __builtin__.Exception:
5369  self.this = this
5370 
5371  if self.__class__ != ScoringFunction:
5372  _director_objects.register(self)
5373 
5374 
5375 
5376 
5377  def do_get_outputs(self):
5378  """do_get_outputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
5379  return _IMP_kernel.ScoringFunction_do_get_outputs(self)
5380 
5381 
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)
5385 
5386 
5387  def evaluate(self, derivatives):
5388  """evaluate(ScoringFunction self, bool derivatives) -> double"""
5389  return _IMP_kernel.ScoringFunction_evaluate(self, derivatives)
5390 
5391 
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)
5395 
5396 
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)
5400 
5401 
5402  def get_last_score(self):
5403  """get_last_score(ScoringFunction self) -> double"""
5404  return _IMP_kernel.ScoringFunction_get_last_score(self)
5405 
5406 
5407  def create_restraints(self):
5408  """create_restraints(ScoringFunction self) -> IMP::Restraints"""
5409  return _IMP_kernel.ScoringFunction_create_restraints(self)
5410 
5411 
5412  def __str__(self):
5413  """__str__(ScoringFunction self) -> std::string"""
5414  return _IMP_kernel.ScoringFunction___str__(self)
5415 
5416 
5417  def __repr__(self):
5418  """__repr__(ScoringFunction self) -> std::string"""
5419  return _IMP_kernel.ScoringFunction___repr__(self)
5420 
5421 
5422  @staticmethod
5423  def get_from(o):
5424  return _object_cast_to_ScoringFunction(o)
5425 
5426 
5427  def get_type_name(self):
5428  return self.__class__.__name__
5429  def do_show(self, out):
5430  pass
5431  def get_version_info(self):
5432  if"IMP" == "IMP":
5433  return VersionInfo(self.__module__,
5434  __import__(self.__module__).get_module_version())
5435  else:
5436  return IMP.VersionInfo(self.__module__,
5437  __import__(self.__module__).get_module_version())
5438  @staticmethod
5439  def get_from(o):
5440  return _object_cast_to_ScoringFunction(o)
5441 
5442  __swig_destroy__ = _IMP_kernel.delete_ScoringFunction
5443  __del__ = lambda self: None
5444  def __disown__(self):
5445  self.this.disown()
5446  _IMP_kernel.disown_ScoringFunction(self)
5447  return weakref_proxy(self)
5448 
5449  def do_destroy(self):
5450  """do_destroy(ScoringFunction self)"""
5451  return _IMP_kernel.ScoringFunction_do_destroy(self)
5452 
5453 
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)
5457 
5458 
5459  def do_get_inputs(self):
5460  """do_get_inputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
5461  return _IMP_kernel.ScoringFunction_do_get_inputs(self)
5462 
5463 
5464  def do_get_interactions(self):
5465  """do_get_interactions(ScoringFunction self) -> IMP::ModelObjectsTemps"""
5466  return _IMP_kernel.ScoringFunction_do_get_interactions(self)
5467 
5468 ScoringFunction_swigregister = _IMP_kernel.ScoringFunction_swigregister
5469 ScoringFunction_swigregister(ScoringFunction)
5470 
5471 
5472 def create_decomposition(*args):
5473  """
5474  create_decomposition(IMP::RestraintsTemp const & rs) -> IMP::Restraints
5475  create_decomposition(ScoringFunction sf) -> IMP::ScoringFunctions
5476  """
5477  return _IMP_kernel.create_decomposition(*args)
5478 class _ScoringFunctionAdaptor(_InputAdaptor):
5479  """Proxy of C++ IMP::ScoringFunctionAdaptor class."""
5480 
5481  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5482  __repr__ = _swig_repr
5483 
5484  def __init__(self, *args):
5485  """
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
5491  """
5492  this = _IMP_kernel.new__ScoringFunctionAdaptor(*args)
5493  try:
5494  self.this.append(this)
5495  except __builtin__.Exception:
5496  self.this = this
5497  __swig_destroy__ = _IMP_kernel.delete__ScoringFunctionAdaptor
5498  __del__ = lambda self: None
5499 _ScoringFunctionAdaptor_swigregister = _IMP_kernel._ScoringFunctionAdaptor_swigregister
5500 _ScoringFunctionAdaptor_swigregister(_ScoringFunctionAdaptor)
5501 
5502 
5503 def show_restraint_hierarchy(*args):
5504  """
5505  show_restraint_hierarchy(_ScoringFunctionAdaptor rs, _ostream out)
5506  show_restraint_hierarchy(_ScoringFunctionAdaptor rs)
5507  """
5508  return _IMP_kernel.show_restraint_hierarchy(*args)
5509 class Undecorator(Object):
5510  """Proxy of C++ IMP::Undecorator class."""
5511 
5512  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5513 
5514  def __init__(self, m, name):
5515  """__init__(IMP::Undecorator self, Model m, std::string name) -> Undecorator"""
5516  if self.__class__ == Undecorator:
5517  _self = None
5518  else:
5519  _self = self
5520  this = _IMP_kernel.new_Undecorator(_self, m, name)
5521  try:
5522  self.this.append(this)
5523  except __builtin__.Exception:
5524  self.this = this
5525 
5526  if self.__class__ != Undecorator:
5527  _director_objects.register(self)
5528 
5529 
5530 
5531 
5532  def teardown(self, pi):
5533  """teardown(Undecorator self, ParticleIndex pi)"""
5534  return _IMP_kernel.Undecorator_teardown(self, pi)
5535 
5536 
5537  def __str__(self):
5538  """__str__(Undecorator self) -> std::string"""
5539  return _IMP_kernel.Undecorator___str__(self)
5540 
5541 
5542  def __repr__(self):
5543  """__repr__(Undecorator self) -> std::string"""
5544  return _IMP_kernel.Undecorator___repr__(self)
5545 
5546 
5547  @staticmethod
5548  def get_from(o):
5549  return _object_cast_to_Undecorator(o)
5550 
5551 
5552  def get_type_name(self):
5553  return self.__class__.__name__
5554  def do_show(self, out):
5555  pass
5556  def get_version_info(self):
5557  if"IMP" == "IMP":
5558  return VersionInfo(self.__module__,
5559  __import__(self.__module__).get_module_version())
5560  else:
5561  return IMP.VersionInfo(self.__module__,
5562  __import__(self.__module__).get_module_version())
5563  @staticmethod
5564  def get_from(o):
5565  return _object_cast_to_Undecorator(o)
5566 
5567  __swig_destroy__ = _IMP_kernel.delete_Undecorator
5568  __del__ = lambda self: None
5569  def __disown__(self):
5570  self.this.disown()
5571  _IMP_kernel.disown_Undecorator(self)
5572  return weakref_proxy(self)
5573 
5574  def do_destroy(self):
5575  """do_destroy(Undecorator self)"""
5576  return _IMP_kernel.Undecorator_do_destroy(self)
5577 
5578 Undecorator_swigregister = _IMP_kernel.Undecorator_swigregister
5579 Undecorator_swigregister(Undecorator)
5580 
5581 class Model(Object):
5582  """Proxy of C++ IMP::Model class."""
5583 
5584  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5585 
5586  def __init__(self, *args):
5587  """
5588  __init__(IMP::Model self, std::string name) -> Model
5589  __init__(IMP::Model self) -> Model
5590  """
5591  this = _IMP_kernel.new_Model(*args)
5592  try:
5593  self.this.append(this)
5594  except __builtin__.Exception:
5595  self.this = this
5596 
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)
5600 
5601 
5602  def add_particle(self, name):
5603  """add_particle(Model self, std::string name) -> ParticleIndex"""
5604  return _IMP_kernel.Model_add_particle(self, name)
5605 
5606 
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)
5610 
5611 
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)
5615 
5616 
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)
5620 
5621 
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)
5625 
5626 
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)
5630 
5631 
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)
5635 
5636 
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)
5640 
5641 
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)
5645 
5646 
5647  def clear_score_states(self):
5648  """clear_score_states(Model self)"""
5649  return _IMP_kernel.Model_clear_score_states(self)
5650 
5651 
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)
5655 
5656 
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)
5660 
5661 
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)
5665 
5666 
5667  def get_score_states(self):
5668  """get_score_states(Model self) -> IMP::ScoreStates"""
5669  return _IMP_kernel.Model_get_score_states(self)
5670 
5671 
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)
5675 
5676 
5677  def update(self):
5678  """update(Model self)"""
5679  return _IMP_kernel.Model_update(self)
5680 
5681 
5682  def add_attribute(self, *args):
5683  """
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)
5693  """
5694  return _IMP_kernel.Model_add_attribute(self, *args)
5695 
5696 
5697  def remove_attribute(self, *args):
5698  """
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)
5708  """
5709  return _IMP_kernel.Model_remove_attribute(self, *args)
5710 
5711 
5712  def get_has_attribute(self, *args):
5713  """
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
5723  """
5724  return _IMP_kernel.Model_get_has_attribute(self, *args)
5725 
5726 
5727  def set_attribute(self, *args):
5728  """
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)
5738  """
5739  return _IMP_kernel.Model_set_attribute(self, *args)
5740 
5741 
5742  def get_attribute(self, *args):
5743  """
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
5753  """
5754  return _IMP_kernel.Model_get_attribute(self, *args)
5755 
5756 
5757  def add_cache_attribute(self, *args):
5758  """
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)
5768  """
5769  return _IMP_kernel.Model_add_cache_attribute(self, *args)
5770 
5771 
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)
5775 
5776 
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)
5780 
5781 
5782  def get_particle(self, p):
5783  """get_particle(Model self, ParticleIndex p) -> Particle"""
5784  return _IMP_kernel.Model_get_particle(self, p)
5785 
5786 
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)
5790 
5791 
5792  def get_particle_indexes(self):
5793  """get_particle_indexes(Model self) -> IMP::ParticleIndexes"""
5794  return _IMP_kernel.Model_get_particle_indexes(self)
5795 
5796 
5797  def get_model_objects(self):
5798  """get_model_objects(Model self) -> IMP::ModelObjectsTemp"""
5799  return _IMP_kernel.Model_get_model_objects(self)
5800 
5801 
5802  def remove_particle(self, pi):
5803  """remove_particle(Model self, ParticleIndex pi)"""
5804  return _IMP_kernel.Model_remove_particle(self, pi)
5805 
5806 
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)
5810 
5811 
5812  def get_data(self, mk):
5813  """get_data(Model self, ModelKey mk) -> Object"""
5814  return _IMP_kernel.Model_get_data(self, mk)
5815 
5816 
5817  def remove_data(self, mk):
5818  """remove_data(Model self, ModelKey mk)"""
5819  return _IMP_kernel.Model_remove_data(self, mk)
5820 
5821 
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)
5825 
5826 
5827  def get_version_info(self):
5828  """get_version_info(Model self) -> VersionInfo"""
5829  return _IMP_kernel.Model_get_version_info(self)
5830 
5831 
5832  def do_destroy(self):
5833  """do_destroy(Model self)"""
5834  return _IMP_kernel.Model_do_destroy(self)
5835 
5836 
5837  def __str__(self):
5838  """__str__(Model self) -> std::string"""
5839  return _IMP_kernel.Model___str__(self)
5840 
5841 
5842  def __repr__(self):
5843  """__repr__(Model self) -> std::string"""
5844  return _IMP_kernel.Model___repr__(self)
5845 
5846 
5847  @staticmethod
5848  def get_from(o):
5849  return _object_cast_to_Model(o)
5850 
5851 
5852  def _get_ints_numpy(self, k):
5853  return _get_ints_numpy(self, k, self)
5854 
5855  def _get_floats_numpy(self, k):
5856  return _get_floats_numpy(self, k, self)
5857 
5858  def _get_derivatives_numpy(self, k):
5859  return _get_derivatives_numpy(self, k, self)
5860 
5861  def _get_spheres_numpy(self):
5862  return _get_spheres_numpy(self, self)
5863 
5864  def _get_sphere_derivatives_numpy(self):
5865  return _get_sphere_derivatives_numpy(self, self)
5866 
5867 Model_swigregister = _IMP_kernel.Model_swigregister
5868 Model_swigregister(Model)
5869 
5870 class Decorator(_Value):
5871  """Proxy of C++ IMP::Decorator class."""
5872 
5873  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5874  __repr__ = _swig_repr
5875 
5876  def __init__(self, p):
5877  """__init__(IMP::Decorator self, _ParticleAdaptor p) -> Decorator"""
5878  this = _IMP_kernel.new_Decorator(p)
5879  try:
5880  self.this.append(this)
5881  except __builtin__.Exception:
5882  self.this = this
5883 
5884  def __ne__(self, o):
5885  """__ne__(Decorator self, Object o) -> bool"""
5886  return _IMP_kernel.Decorator___ne__(self, o)
5887 
5888 
5889  def __lt__(self, o):
5890  """__lt__(Decorator self, Object o) -> bool"""
5891  return _IMP_kernel.Decorator___lt__(self, o)
5892 
5893 
5894  def __gt__(self, o):
5895  """__gt__(Decorator self, Object o) -> bool"""
5896  return _IMP_kernel.Decorator___gt__(self, o)
5897 
5898 
5899  def __ge__(self, o):
5900  """__ge__(Decorator self, Object o) -> bool"""
5901  return _IMP_kernel.Decorator___ge__(self, o)
5902 
5903 
5904  def __le__(self, o):
5905  """__le__(Decorator self, Object o) -> bool"""
5906  return _IMP_kernel.Decorator___le__(self, o)
5907 
5908 
5909  def get_particle(self):
5910  """get_particle(Decorator self) -> Particle"""
5911  return _IMP_kernel.Decorator_get_particle(self)
5912 
5913 
5914  def get_particle_index(self):
5915  """get_particle_index(Decorator self) -> ParticleIndex"""
5916  return _IMP_kernel.Decorator_get_particle_index(self)
5917 
5918 
5919  def get_model(self):
5920  """get_model(Decorator self) -> Model"""
5921  return _IMP_kernel.Decorator_get_model(self)
5922 
5923 
5924  def get_is_valid(self):
5925  """get_is_valid(Decorator self) -> bool"""
5926  return _IMP_kernel.Decorator_get_is_valid(self)
5927 
5928 
5929  def __hash__(self):
5930  """__hash__(Decorator self) -> std::size_t"""
5931  return _IMP_kernel.Decorator___hash__(self)
5932 
5933 
5934  def __eq__(self, *args):
5935  """
5936  __eq__(Decorator self, Object o) -> bool
5937  __eq__(Decorator self, Decorator o) -> bool
5938  __eq__(Decorator self, Particle o) -> bool
5939  """
5940  return _IMP_kernel.Decorator___eq__(self, *args)
5941 
5942 
5943  def __bool__(self):
5944  """__bool__(Decorator self) -> bool"""
5945  return _IMP_kernel.Decorator___bool__(self)
5946 
5947 
5948  __nonzero__ = __bool__
5949 
5950  __swig_destroy__ = _IMP_kernel.delete_Decorator
5951  __del__ = lambda self: None
5952 Decorator_swigregister = _IMP_kernel.Decorator_swigregister
5953 Decorator_swigregister(Decorator)
5954 
5955 
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."""
5961 
5962  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5963 
5964  def __init__(self, *args):
5965  """
5966  __init__(IMP::UnaryFunction self, std::string name) -> UnaryFunction
5967  __init__(IMP::UnaryFunction self) -> UnaryFunction
5968  """
5969  if self.__class__ == UnaryFunction:
5970  _self = None
5971  else:
5972  _self = self
5973  this = _IMP_kernel.new_UnaryFunction(_self, *args)
5974  try:
5975  self.this.append(this)
5976  except __builtin__.Exception:
5977  self.this = this
5978 
5979  if self.__class__ != UnaryFunction:
5980  _director_objects.register(self)
5981 
5982 
5983 
5984 
5985  def evaluate(self, feature):
5986  """evaluate(UnaryFunction self, double feature) -> double"""
5987  return _IMP_kernel.UnaryFunction_evaluate(self, feature)
5988 
5989 
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)
5993 
5994  __swig_destroy__ = _IMP_kernel.delete_UnaryFunction
5995  __del__ = lambda self: None
5996 
5997  def __str__(self):
5998  """__str__(UnaryFunction self) -> std::string"""
5999  return _IMP_kernel.UnaryFunction___str__(self)
6000 
6001 
6002  def __repr__(self):
6003  """__repr__(UnaryFunction self) -> std::string"""
6004  return _IMP_kernel.UnaryFunction___repr__(self)
6005 
6006 
6007  @staticmethod
6008  def get_from(o):
6009  return _object_cast_to_UnaryFunction(o)
6010 
6011 
6012  def get_type_name(self):
6013  return self.__class__.__name__
6014  def do_show(self, out):
6015  pass
6016  def get_version_info(self):
6017  if"IMP" == "IMP":
6018  return VersionInfo(self.__module__,
6019  __import__(self.__module__).get_module_version())
6020  else:
6021  return IMP.VersionInfo(self.__module__,
6022  __import__(self.__module__).get_module_version())
6023  @staticmethod
6024  def get_from(o):
6025  return _object_cast_to_UnaryFunction(o)
6026 
6027  def __disown__(self):
6028  self.this.disown()
6029  _IMP_kernel.disown_UnaryFunction(self)
6030  return weakref_proxy(self)
6031 
6032  def do_destroy(self):
6033  """do_destroy(UnaryFunction self)"""
6034  return _IMP_kernel.UnaryFunction_do_destroy(self)
6035 
6036 UnaryFunction_swigregister = _IMP_kernel.UnaryFunction_swigregister
6037 UnaryFunction_swigregister(UnaryFunction)
6038 
6039 class OptimizerState(ModelObject):
6040  """Proxy of C++ IMP::OptimizerState class."""
6041 
6042  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6043 
6044  def __init__(self, m, name):
6045  """__init__(IMP::OptimizerState self, Model m, std::string name) -> OptimizerState"""
6046  if self.__class__ == OptimizerState:
6047  _self = None
6048  else:
6049  _self = self
6050  this = _IMP_kernel.new_OptimizerState(_self, m, name)
6051  try:
6052  self.this.append(this)
6053  except __builtin__.Exception:
6054  self.this = this
6055 
6056  if self.__class__ != OptimizerState:
6057  _director_objects.register(self)
6058 
6059 
6060 
6061 
6062  def update(self):
6063  """update(OptimizerState self)"""
6064  return _IMP_kernel.OptimizerState_update(self)
6065 
6066 
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)
6070 
6071 
6072  def get_optimizer(self):
6073  """get_optimizer(OptimizerState self) -> Optimizer"""
6074  return _IMP_kernel.OptimizerState_get_optimizer(self)
6075 
6076 
6077  def set_period(self, p):
6078  """set_period(OptimizerState self, unsigned int p)"""
6079  return _IMP_kernel.OptimizerState_set_period(self, p)
6080 
6081 
6082  def get_period(self):
6083  """get_period(OptimizerState self) -> unsigned int"""
6084  return _IMP_kernel.OptimizerState_get_period(self)
6085 
6086 
6087  def reset(self):
6088  """reset(OptimizerState self)"""
6089  return _IMP_kernel.OptimizerState_reset(self)
6090 
6091 
6092  def update_always(self):
6093  """update_always(OptimizerState self)"""
6094  return _IMP_kernel.OptimizerState_update_always(self)
6095 
6096 
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)
6100 
6101 
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)
6105 
6106  __swig_destroy__ = _IMP_kernel.delete_OptimizerState
6107  __del__ = lambda self: None
6108 
6109  def do_update(self, arg0):
6110  """do_update(OptimizerState self, unsigned int arg0)"""
6111  return _IMP_kernel.OptimizerState_do_update(self, arg0)
6112 
6113 
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)
6117 
6118 
6119  def do_get_inputs(self):
6120  """do_get_inputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
6121  return _IMP_kernel.OptimizerState_do_get_inputs(self)
6122 
6123 
6124  def do_get_outputs(self):
6125  """do_get_outputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
6126  return _IMP_kernel.OptimizerState_do_get_outputs(self)
6127 
6128 
6129  def __str__(self):
6130  """__str__(OptimizerState self) -> std::string"""
6131  return _IMP_kernel.OptimizerState___str__(self)
6132 
6133 
6134  def __repr__(self):
6135  """__repr__(OptimizerState self) -> std::string"""
6136  return _IMP_kernel.OptimizerState___repr__(self)
6137 
6138 
6139  @staticmethod
6140  def get_from(o):
6141  return _object_cast_to_OptimizerState(o)
6142 
6143 
6144  def get_type_name(self):
6145  return self.__class__.__name__
6146  def do_show(self, out):
6147  pass
6148  def get_version_info(self):
6149  if"IMP" == "IMP":
6150  return VersionInfo(self.__module__,
6151  __import__(self.__module__).get_module_version())
6152  else:
6153  return IMP.VersionInfo(self.__module__,
6154  __import__(self.__module__).get_module_version())
6155  @staticmethod
6156  def get_from(o):
6157  return _object_cast_to_OptimizerState(o)
6158 
6159  def __disown__(self):
6160  self.this.disown()
6161  _IMP_kernel.disown_OptimizerState(self)
6162  return weakref_proxy(self)
6163 
6164  def do_destroy(self):
6165  """do_destroy(OptimizerState self)"""
6166  return _IMP_kernel.OptimizerState_do_destroy(self)
6167 
6168 
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)
6172 
6173 
6174  def do_get_interactions(self):
6175  """do_get_interactions(OptimizerState self) -> IMP::ModelObjectsTemps"""
6176  return _IMP_kernel.OptimizerState_do_get_interactions(self)
6177 
6178 OptimizerState_swigregister = _IMP_kernel.OptimizerState_swigregister
6179 OptimizerState_swigregister(OptimizerState)
6180 
6181 class Refiner(_ParticleInputs, Object):
6182  """Proxy of C++ IMP::Refiner class."""
6183 
6184  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6185 
6186  def __init__(self, *args):
6187  """
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
6191  """
6192  if self.__class__ == Refiner:
6193  _self = None
6194  else:
6195  _self = self
6196  this = _IMP_kernel.new_Refiner(_self, *args)
6197  try:
6198  self.this.append(this)
6199  except __builtin__.Exception:
6200  self.this = this
6201 
6202  if self.__class__ != Refiner:
6203  _director_objects.register(self)
6204 
6205 
6206 
6207 
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)
6211 
6212 
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)
6216 
6217 
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)
6221 
6222 
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)
6226 
6227 
6228  def get_refined(self, *args):
6229  """
6230  get_refined(Refiner self, Particle a) -> IMP::ParticlesTemp const
6231  get_refined(Refiner self, Particle a, unsigned int i) -> Particle
6232  """
6233  return _IMP_kernel.Refiner_get_refined(self, *args)
6234 
6235 
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)
6239 
6240 
6241  def __str__(self):
6242  """__str__(Refiner self) -> std::string"""
6243  return _IMP_kernel.Refiner___str__(self)
6244 
6245 
6246  def __repr__(self):
6247  """__repr__(Refiner self) -> std::string"""
6248  return _IMP_kernel.Refiner___repr__(self)
6249 
6250 
6251  @staticmethod
6252  def get_from(o):
6253  return _object_cast_to_Refiner(o)
6254 
6255 
6256  def get_type_name(self):
6257  return self.__class__.__name__
6258  def do_show(self, out):
6259  pass
6260  def get_version_info(self):
6261  if"IMP" == "IMP":
6262  return VersionInfo(self.__module__,
6263  __import__(self.__module__).get_module_version())
6264  else:
6265  return IMP.VersionInfo(self.__module__,
6266  __import__(self.__module__).get_module_version())
6267  @staticmethod
6268  def get_from(o):
6269  return _object_cast_to_Refiner(o)
6270 
6271  __swig_destroy__ = _IMP_kernel.delete_Refiner
6272  __del__ = lambda self: None
6273  def __disown__(self):
6274  self.this.disown()
6275  _IMP_kernel.disown_Refiner(self)
6276  return weakref_proxy(self)
6277 
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)
6281 
6282 
6283  def do_destroy(self):
6284  """do_destroy(Refiner self)"""
6285  return _IMP_kernel.Refiner_do_destroy(self)
6286 
6287 Refiner_swigregister = _IMP_kernel.Refiner_swigregister
6288 Refiner_swigregister(Refiner)
6289 
6290 class Optimizer(ModelObject):
6291  """Proxy of C++ IMP::Optimizer class."""
6292 
6293  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6294 
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)
6298 
6299 
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)
6303 
6304 
6305  def do_get_inputs(self):
6306  """do_get_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
6307  return _IMP_kernel.Optimizer_do_get_inputs(self)
6308 
6309 
6310  def do_get_outputs(self):
6311  """do_get_outputs(Optimizer self) -> IMP::ModelObjectsTemp"""
6312  return _IMP_kernel.Optimizer_do_get_outputs(self)
6313 
6314 
6315  def __init__(self, *args):
6316  """
6317  __init__(IMP::Optimizer self, Model m, std::string name) -> Optimizer
6318  __init__(IMP::Optimizer self, Model m) -> Optimizer
6319  """
6320  if self.__class__ == Optimizer:
6321  _self = None
6322  else:
6323  _self = self
6324  this = _IMP_kernel.new_Optimizer(_self, *args)
6325  try:
6326  self.this.append(this)
6327  except __builtin__.Exception:
6328  self.this = this
6329 
6330  if self.__class__ != Optimizer:
6331  _director_objects.register(self)
6332 
6333 
6334 
6335 
6336  def optimize(self, max_steps):
6337  """optimize(Optimizer self, unsigned int max_steps) -> double"""
6338  return _IMP_kernel.Optimizer_optimize(self, max_steps)
6339 
6340 
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)
6344 
6345 
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)
6349 
6350 
6351  def get_last_score(self):
6352  """get_last_score(Optimizer self) -> double"""
6353  return _IMP_kernel.Optimizer_get_last_score(self)
6354 
6355 
6356  def get_scoring_function(self):
6357  """get_scoring_function(Optimizer self) -> ScoringFunction"""
6358  return _IMP_kernel.Optimizer_get_scoring_function(self)
6359 
6360 
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)
6364 
6365 
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)
6369 
6370 
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)
6374 
6375 
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)
6379 
6380 
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)
6384 
6385 
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)
6389 
6390 
6391  def clear_optimizer_states(self):
6392  """clear_optimizer_states(Optimizer self)"""
6393  return _IMP_kernel.Optimizer_clear_optimizer_states(self)
6394 
6395 
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)
6399 
6400 
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)
6404 
6405 
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)
6409 
6410 
6411  def get_optimizer_states(self):
6412  """get_optimizer_states(Optimizer self) -> IMP::OptimizerStates"""
6413  return _IMP_kernel.Optimizer_get_optimizer_states(self)
6414 
6415 
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)
6419 
6420 
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)
6424 
6425  __swig_destroy__ = _IMP_kernel.delete_Optimizer
6426  def __del__(self):
6427  """__del__(IMP::Optimizer self)"""
6428 
6429  _director_objects.cleanup()
6430 
6431 
6432  pass
6433 
6434 
6435  def do_optimize(self, ns):
6436  """do_optimize(Optimizer self, unsigned int ns) -> double"""
6437  return _IMP_kernel.Optimizer_do_optimize(self, ns)
6438 
6439 
6440  def update_states(self):
6441  """update_states(Optimizer self)"""
6442  return _IMP_kernel.Optimizer_update_states(self)
6443 
6444 
6445  def __str__(self):
6446  """__str__(Optimizer self) -> std::string"""
6447  return _IMP_kernel.Optimizer___str__(self)
6448 
6449 
6450  def __repr__(self):
6451  """__repr__(Optimizer self) -> std::string"""
6452  return _IMP_kernel.Optimizer___repr__(self)
6453 
6454 
6455  @staticmethod
6456  def get_from(o):
6457  return _object_cast_to_Optimizer(o)
6458 
6459 
6460  def get_type_name(self):
6461  return self.__class__.__name__
6462  def do_show(self, out):
6463  pass
6464  def get_version_info(self):
6465  if"IMP" == "IMP":
6466  return VersionInfo(self.__module__,
6467  __import__(self.__module__).get_module_version())
6468  else:
6469  return IMP.VersionInfo(self.__module__,
6470  __import__(self.__module__).get_module_version())
6471  @staticmethod
6472  def get_from(o):
6473  return _object_cast_to_Optimizer(o)
6474 
6475  def __disown__(self):
6476  self.this.disown()
6477  _IMP_kernel.disown_Optimizer(self)
6478  return weakref_proxy(self)
6479 
6480  def do_destroy(self):
6481  """do_destroy(Optimizer self)"""
6482  return _IMP_kernel.Optimizer_do_destroy(self)
6483 
6484 
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)
6488 
6489 
6490  def do_get_interactions(self):
6491  """do_get_interactions(Optimizer self) -> IMP::ModelObjectsTemps"""
6492  return _IMP_kernel.Optimizer_do_get_interactions(self)
6493 
6494 Optimizer_swigregister = _IMP_kernel.Optimizer_swigregister
6495 Optimizer_swigregister(Optimizer)
6496 
6497 class AttributeOptimizer(Optimizer):
6498  """Proxy of C++ IMP::AttributeOptimizer class."""
6499 
6500  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6501 
6502  def __init__(self, *args):
6503  """
6504  __init__(IMP::AttributeOptimizer self, Model m, std::string name) -> AttributeOptimizer
6505  __init__(IMP::AttributeOptimizer self, Model m) -> AttributeOptimizer
6506  """
6507  if self.__class__ == AttributeOptimizer:
6508  _self = None
6509  else:
6510  _self = self
6511  this = _IMP_kernel.new_AttributeOptimizer(_self, *args)
6512  try:
6513  self.this.append(this)
6514  except __builtin__.Exception:
6515  self.this = this
6516 
6517  if self.__class__ != AttributeOptimizer:
6518  _director_objects.register(self)
6519 
6520 
6521 
6522 
6523  def get_optimized_attributes(self):
6524  """get_optimized_attributes(AttributeOptimizer self) -> IMP::FloatIndexes"""
6525  return _IMP_kernel.AttributeOptimizer_get_optimized_attributes(self)
6526 
6527 
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)
6531 
6532 
6533  def get_value(self, fi):
6534  """get_value(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
6535  return _IMP_kernel.AttributeOptimizer_get_value(self, fi)
6536 
6537 
6538  def get_derivative(self, fi):
6539  """get_derivative(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
6540  return _IMP_kernel.AttributeOptimizer_get_derivative(self, fi)
6541 
6542 
6543  def get_width(self, k):
6544  """get_width(AttributeOptimizer self, FloatKey k) -> double"""
6545  return _IMP_kernel.AttributeOptimizer_get_width(self, k)
6546 
6547 
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)
6551 
6552 
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)
6556 
6557 
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)
6561 
6562 
6563  def clear_range_cache(self):
6564  """clear_range_cache(AttributeOptimizer self)"""
6565  return _IMP_kernel.AttributeOptimizer_clear_range_cache(self)
6566 
6567 
6568  def __str__(self):
6569  """__str__(AttributeOptimizer self) -> std::string"""
6570  return _IMP_kernel.AttributeOptimizer___str__(self)
6571 
6572 
6573  def __repr__(self):
6574  """__repr__(AttributeOptimizer self) -> std::string"""
6575  return _IMP_kernel.AttributeOptimizer___repr__(self)
6576 
6577 
6578  @staticmethod
6579  def get_from(o):
6580  return _object_cast_to_AttributeOptimizer(o)
6581 
6582 
6583  def get_type_name(self):
6584  return self.__class__.__name__
6585  def do_show(self, out):
6586  pass
6587  def get_version_info(self):
6588  if"IMP" == "IMP":
6589  return VersionInfo(self.__module__,
6590  __import__(self.__module__).get_module_version())
6591  else:
6592  return IMP.VersionInfo(self.__module__,
6593  __import__(self.__module__).get_module_version())
6594  @staticmethod
6595  def get_from(o):
6596  return _object_cast_to_AttributeOptimizer(o)
6597 
6598  __swig_destroy__ = _IMP_kernel.delete_AttributeOptimizer
6599  __del__ = lambda self: None
6600  def __disown__(self):
6601  self.this.disown()
6602  _IMP_kernel.disown_AttributeOptimizer(self)
6603  return weakref_proxy(self)
6604 
6605  def do_destroy(self):
6606  """do_destroy(AttributeOptimizer self)"""
6607  return _IMP_kernel.AttributeOptimizer_do_destroy(self)
6608 
6609 
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)
6613 
6614 
6615  def do_get_inputs(self):
6616  """do_get_inputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
6617  return _IMP_kernel.AttributeOptimizer_do_get_inputs(self)
6618 
6619 
6620  def do_get_outputs(self):
6621  """do_get_outputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
6622  return _IMP_kernel.AttributeOptimizer_do_get_outputs(self)
6623 
6624 
6625  def do_get_interactions(self):
6626  """do_get_interactions(AttributeOptimizer self) -> IMP::ModelObjectsTemps"""
6627  return _IMP_kernel.AttributeOptimizer_do_get_interactions(self)
6628 
6629 
6630  def do_optimize(self, ns):
6631  """do_optimize(AttributeOptimizer self, unsigned int ns) -> double"""
6632  return _IMP_kernel.AttributeOptimizer_do_optimize(self, ns)
6633 
6634 AttributeOptimizer_swigregister = _IMP_kernel.AttributeOptimizer_swigregister
6635 AttributeOptimizer_swigregister(AttributeOptimizer)
6636 
6637 class ConfigurationSet(Object):
6638  """Proxy of C++ IMP::ConfigurationSet class."""
6639 
6640  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6641 
6642  def __init__(self, *args):
6643  """
6644  __init__(IMP::ConfigurationSet self, Model m, std::string name) -> ConfigurationSet
6645  __init__(IMP::ConfigurationSet self, Model m) -> ConfigurationSet
6646  """
6647  this = _IMP_kernel.new_ConfigurationSet(*args)
6648  try:
6649  self.this.append(this)
6650  except __builtin__.Exception:
6651  self.this = this
6652 
6653  def save_configuration(self):
6654  """save_configuration(ConfigurationSet self)"""
6655  return _IMP_kernel.ConfigurationSet_save_configuration(self)
6656 
6657 
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)
6661 
6662 
6663  def load_configuration(self, i):
6664  """load_configuration(ConfigurationSet self, int i)"""
6665  return _IMP_kernel.ConfigurationSet_load_configuration(self, i)
6666 
6667 
6668  def remove_configuration(self, i):
6669  """remove_configuration(ConfigurationSet self, unsigned int i)"""
6670  return _IMP_kernel.ConfigurationSet_remove_configuration(self, i)
6671 
6672 
6673  def get_model(self):
6674  """get_model(ConfigurationSet self) -> Model"""
6675  return _IMP_kernel.ConfigurationSet_get_model(self)
6676 
6677 
6678  def get_version_info(self):
6679  """get_version_info(ConfigurationSet self) -> VersionInfo"""
6680  return _IMP_kernel.ConfigurationSet_get_version_info(self)
6681 
6682 
6683  def __str__(self):
6684  """__str__(ConfigurationSet self) -> std::string"""
6685  return _IMP_kernel.ConfigurationSet___str__(self)
6686 
6687 
6688  def __repr__(self):
6689  """__repr__(ConfigurationSet self) -> std::string"""
6690  return _IMP_kernel.ConfigurationSet___repr__(self)
6691 
6692 
6693  @staticmethod
6694  def get_from(o):
6695  return _object_cast_to_ConfigurationSet(o)
6696 
6697 ConfigurationSet_swigregister = _IMP_kernel.ConfigurationSet_swigregister
6698 ConfigurationSet_swigregister(ConfigurationSet)
6699 
6700 class SaveToConfigurationSetOptimizerState(OptimizerState):
6701  """Proxy of C++ IMP::SaveToConfigurationSetOptimizerState class."""
6702 
6703  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6704 
6705  def __init__(self, cs):
6706  """__init__(IMP::SaveToConfigurationSetOptimizerState self, ConfigurationSet cs) -> SaveToConfigurationSetOptimizerState"""
6707  this = _IMP_kernel.new_SaveToConfigurationSetOptimizerState(cs)
6708  try:
6709  self.this.append(this)
6710  except __builtin__.Exception:
6711  self.this = this
6712 
6713  def get_version_info(self):
6714  """get_version_info(SaveToConfigurationSetOptimizerState self) -> VersionInfo"""
6715  return _IMP_kernel.SaveToConfigurationSetOptimizerState_get_version_info(self)
6716 
6717 
6718  def __str__(self):
6719  """__str__(SaveToConfigurationSetOptimizerState self) -> std::string"""
6720  return _IMP_kernel.SaveToConfigurationSetOptimizerState___str__(self)
6721 
6722 
6723  def __repr__(self):
6724  """__repr__(SaveToConfigurationSetOptimizerState self) -> std::string"""
6725  return _IMP_kernel.SaveToConfigurationSetOptimizerState___repr__(self)
6726 
6727 
6728  @staticmethod
6729  def get_from(o):
6730  return _object_cast_to_SaveToConfigurationSetOptimizerState(o)
6731 
6732 SaveToConfigurationSetOptimizerState_swigregister = _IMP_kernel.SaveToConfigurationSetOptimizerState_swigregister
6733 SaveToConfigurationSetOptimizerState_swigregister(SaveToConfigurationSetOptimizerState)
6734 
6735 class Configuration(Object):
6736  """Proxy of C++ IMP::Configuration class."""
6737 
6738  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6739 
6740  def __init__(self, *args):
6741  """
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
6746  """
6747  this = _IMP_kernel.new_Configuration(*args)
6748  try:
6749  self.this.append(this)
6750  except __builtin__.Exception:
6751  self.this = this
6752 
6753  def load_configuration(self):
6754  """load_configuration(Configuration self)"""
6755  return _IMP_kernel.Configuration_load_configuration(self)
6756 
6757 
6758  def swap_configuration(self):
6759  """swap_configuration(Configuration self)"""
6760  return _IMP_kernel.Configuration_swap_configuration(self)
6761 
6762 
6763  def get_version_info(self):
6764  """get_version_info(Configuration self) -> VersionInfo"""
6765  return _IMP_kernel.Configuration_get_version_info(self)
6766 
6767 
6768  def __str__(self):
6769  """__str__(Configuration self) -> std::string"""
6770  return _IMP_kernel.Configuration___str__(self)
6771 
6772 
6773  def __repr__(self):
6774  """__repr__(Configuration self) -> std::string"""
6775  return _IMP_kernel.Configuration___repr__(self)
6776 
6777 
6778  @staticmethod
6779  def get_from(o):
6780  return _object_cast_to_Configuration(o)
6781 
6782 Configuration_swigregister = _IMP_kernel.Configuration_swigregister
6783 Configuration_swigregister(Configuration)
6784 
6785 class Sampler(Object):
6786  """Proxy of C++ IMP::Sampler class."""
6787 
6788  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6789 
6790  def __init__(self, *args):
6791  """
6792  __init__(IMP::Sampler self, Model m, std::string name) -> Sampler
6793  __init__(IMP::Sampler self, Model m) -> Sampler
6794  """
6795  if self.__class__ == Sampler:
6796  _self = None
6797  else:
6798  _self = self
6799  this = _IMP_kernel.new_Sampler(_self, *args)
6800  try:
6801  self.this.append(this)
6802  except __builtin__.Exception:
6803  self.this = this
6804 
6805  if self.__class__ != Sampler:
6806  _director_objects.register(self)
6807 
6808 
6809 
6810 
6811  def create_sample(self):
6812  """create_sample(Sampler self) -> ConfigurationSet"""
6813  return _IMP_kernel.Sampler_create_sample(self)
6814 
6815 
6816  def get_scoring_function(self):
6817  """get_scoring_function(Sampler self) -> ScoringFunction"""
6818  return _IMP_kernel.Sampler_get_scoring_function(self)
6819 
6820 
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)
6824 
6825 
6826  def get_model(self):
6827  """get_model(Sampler self) -> Model"""
6828  return _IMP_kernel.Sampler_get_model(self)
6829 
6830 
6831  def do_sample(self):
6832  """do_sample(Sampler self) -> ConfigurationSet"""
6833  return _IMP_kernel.Sampler_do_sample(self)
6834 
6835  __swig_destroy__ = _IMP_kernel.delete_Sampler
6836  __del__ = lambda self: None
6837 
6838  def __str__(self):
6839  """__str__(Sampler self) -> std::string"""
6840  return _IMP_kernel.Sampler___str__(self)
6841 
6842 
6843  def __repr__(self):
6844  """__repr__(Sampler self) -> std::string"""
6845  return _IMP_kernel.Sampler___repr__(self)
6846 
6847 
6848  @staticmethod
6849  def get_from(o):
6850  return _object_cast_to_Sampler(o)
6851 
6852 
6853  def get_type_name(self):
6854  return self.__class__.__name__
6855  def do_show(self, out):
6856  pass
6857  def get_version_info(self):
6858  if"IMP" == "IMP":
6859  return VersionInfo(self.__module__,
6860  __import__(self.__module__).get_module_version())
6861  else:
6862  return IMP.VersionInfo(self.__module__,
6863  __import__(self.__module__).get_module_version())
6864  @staticmethod
6865  def get_from(o):
6866  return _object_cast_to_Sampler(o)
6867 
6868  def __disown__(self):
6869  self.this.disown()
6870  _IMP_kernel.disown_Sampler(self)
6871  return weakref_proxy(self)
6872 
6873  def do_destroy(self):
6874  """do_destroy(Sampler self)"""
6875  return _IMP_kernel.Sampler_do_destroy(self)
6876 
6877 Sampler_swigregister = _IMP_kernel.Sampler_swigregister
6878 Sampler_swigregister(Sampler)
6879 
6880 class PairModifier(_ParticleInputs, _ParticleOutputs, Object):
6881  """Proxy of C++ IMP::PairModifier class."""
6882 
6883  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6884 
6885  def __init__(self, *args):
6886  """
6887  __init__(IMP::PairModifier self, std::string name) -> PairModifier
6888  __init__(IMP::PairModifier self) -> PairModifier
6889  """
6890  if self.__class__ == PairModifier:
6891  _self = None
6892  else:
6893  _self = self
6894  this = _IMP_kernel.new_PairModifier(_self, *args)
6895  try:
6896  self.this.append(this)
6897  except __builtin__.Exception:
6898  self.this = this
6899 
6900  if self.__class__ != PairModifier:
6901  _director_objects.register(self)
6902 
6903 
6904 
6905 
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)
6909 
6910 
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)
6914 
6915 
6916  def __str__(self):
6917  """__str__(PairModifier self) -> std::string"""
6918  return _IMP_kernel.PairModifier___str__(self)
6919 
6920 
6921  def __repr__(self):
6922  """__repr__(PairModifier self) -> std::string"""
6923  return _IMP_kernel.PairModifier___repr__(self)
6924 
6925 
6926  @staticmethod
6927  def get_from(o):
6928  return _object_cast_to_PairModifier(o)
6929 
6930 
6931  def get_type_name(self):
6932  return self.__class__.__name__
6933  def do_show(self, out):
6934  pass
6935  def get_version_info(self):
6936  if"IMP" == "IMP":
6937  return VersionInfo(self.__module__,
6938  __import__(self.__module__).get_module_version())
6939  else:
6940  return IMP.VersionInfo(self.__module__,
6941  __import__(self.__module__).get_module_version())
6942  @staticmethod
6943  def get_from(o):
6944  return _object_cast_to_PairModifier(o)
6945 
6946  __swig_destroy__ = _IMP_kernel.delete_PairModifier
6947  __del__ = lambda self: None
6948  def __disown__(self):
6949  self.this.disown()
6950  _IMP_kernel.disown_PairModifier(self)
6951  return weakref_proxy(self)
6952 
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)
6956 
6957 
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)
6961 
6962 
6963  def do_destroy(self):
6964  """do_destroy(PairModifier self)"""
6965  return _IMP_kernel.PairModifier_do_destroy(self)
6966 
6967 PairModifier_swigregister = _IMP_kernel.PairModifier_swigregister
6968 PairModifier_swigregister(PairModifier)
6969 
6970 class PairScore(_ParticleInputs, Object):
6971  """Proxy of C++ IMP::PairScore class."""
6972 
6973  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6974 
6975  def __init__(self, *args):
6976  """
6977  __init__(IMP::PairScore self, std::string name) -> PairScore
6978  __init__(IMP::PairScore self) -> PairScore
6979  """
6980  if self.__class__ == PairScore:
6981  _self = None
6982  else:
6983  _self = self
6984  this = _IMP_kernel.new_PairScore(_self, *args)
6985  try:
6986  self.this.append(this)
6987  except __builtin__.Exception:
6988  self.this = this
6989 
6990  if self.__class__ != PairScore:
6991  _director_objects.register(self)
6992 
6993 
6994 
6995 
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)
6999 
7000 
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)
7004 
7005 
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)
7009 
7010 
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)
7014 
7015 
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)
7019 
7020 
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)
7024 
7025  __swig_destroy__ = _IMP_kernel.delete_PairScore
7026  __del__ = lambda self: None
7027 
7028  def __str__(self):
7029  """__str__(PairScore self) -> std::string"""
7030  return _IMP_kernel.PairScore___str__(self)
7031 
7032 
7033  def __repr__(self):
7034  """__repr__(PairScore self) -> std::string"""
7035  return _IMP_kernel.PairScore___repr__(self)
7036 
7037 
7038  @staticmethod
7039  def get_from(o):
7040  return _object_cast_to_PairScore(o)
7041 
7042 
7043  def get_type_name(self):
7044  return self.__class__.__name__
7045  def do_show(self, out):
7046  pass
7047  def get_version_info(self):
7048  if"IMP" == "IMP":
7049  return VersionInfo(self.__module__,
7050  __import__(self.__module__).get_module_version())
7051  else:
7052  return IMP.VersionInfo(self.__module__,
7053  __import__(self.__module__).get_module_version())
7054  @staticmethod
7055  def get_from(o):
7056  return _object_cast_to_PairScore(o)
7057 
7058  def __disown__(self):
7059  self.this.disown()
7060  _IMP_kernel.disown_PairScore(self)
7061  return weakref_proxy(self)
7062 
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)
7066 
7067 
7068  def do_destroy(self):
7069  """do_destroy(PairScore self)"""
7070  return _IMP_kernel.PairScore_do_destroy(self)
7071 
7072 PairScore_swigregister = _IMP_kernel.PairScore_swigregister
7073 PairScore_swigregister(PairScore)
7074 
7075 class PairPredicate(_ParticleInputs, Object):
7076  """Proxy of C++ IMP::PairPredicate class."""
7077 
7078  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7079 
7080  def __init__(self, *args):
7081  """
7082  __init__(IMP::PairPredicate self, std::string name) -> PairPredicate
7083  __init__(IMP::PairPredicate self) -> PairPredicate
7084  """
7085  if self.__class__ == PairPredicate:
7086  _self = None
7087  else:
7088  _self = self
7089  this = _IMP_kernel.new_PairPredicate(_self, *args)
7090  try:
7091  self.this.append(this)
7092  except __builtin__.Exception:
7093  self.this = this
7094 
7095  if self.__class__ != PairPredicate:
7096  _director_objects.register(self)
7097 
7098 
7099 
7100 
7101  def get_value(self, *args):
7102  """
7103  get_value(PairPredicate self, IMP::ParticlePair const & vt) -> int
7104  get_value(PairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
7105  """
7106  return _IMP_kernel.PairPredicate_get_value(self, *args)
7107 
7108 
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)
7112 
7113 
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)
7117 
7118 
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)
7122 
7123 
7124  def get_value_index(self, *args):
7125  """
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
7128  """
7129  return _IMP_kernel.PairPredicate_get_value_index(self, *args)
7130 
7131  __swig_destroy__ = _IMP_kernel.delete_PairPredicate
7132  __del__ = lambda self: None
7133 
7134  def __str__(self):
7135  """__str__(PairPredicate self) -> std::string"""
7136  return _IMP_kernel.PairPredicate___str__(self)
7137 
7138 
7139  def __repr__(self):
7140  """__repr__(PairPredicate self) -> std::string"""
7141  return _IMP_kernel.PairPredicate___repr__(self)
7142 
7143 
7144  @staticmethod
7145  def get_from(o):
7146  return _object_cast_to_PairPredicate(o)
7147 
7148 
7149  def get_type_name(self):
7150  return self.__class__.__name__
7151  def do_show(self, out):
7152  pass
7153  def get_version_info(self):
7154  if"IMP" == "IMP":
7155  return VersionInfo(self.__module__,
7156  __import__(self.__module__).get_module_version())
7157  else:
7158  return IMP.VersionInfo(self.__module__,
7159  __import__(self.__module__).get_module_version())
7160  @staticmethod
7161  def get_from(o):
7162  return _object_cast_to_PairPredicate(o)
7163 
7164  def __disown__(self):
7165  self.this.disown()
7166  _IMP_kernel.disown_PairPredicate(self)
7167  return weakref_proxy(self)
7168 
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)
7172 
7173 
7174  def do_destroy(self):
7175  """do_destroy(PairPredicate self)"""
7176  return _IMP_kernel.PairPredicate_do_destroy(self)
7177 
7178 PairPredicate_swigregister = _IMP_kernel.PairPredicate_swigregister
7179 PairPredicate_swigregister(PairPredicate)
7180 
7181 class PairContainer(Container):
7182  """Proxy of C++ IMP::PairContainer class."""
7183 
7184  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7185 
7186  def apply_generic(self, m):
7187  """apply_generic(PairContainer self, PairModifier m)"""
7188  return _IMP_kernel.PairContainer_apply_generic(self, m)
7189 
7190 
7191  def apply(self, sm):
7192  """apply(PairContainer self, PairModifier sm)"""
7193  return _IMP_kernel.PairContainer_apply(self, sm)
7194 
7195 
7196  def get_range_indexes(self):
7197  """get_range_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
7198  return _IMP_kernel.PairContainer_get_range_indexes(self)
7199 
7200 
7201  def get_contents(self):
7202  """get_contents(PairContainer self) -> IMP::ParticleIndexPairs const &"""
7203  return _IMP_kernel.PairContainer_get_contents(self)
7204 
7205 
7206  def get_indexes(self):
7207  """get_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
7208  return _IMP_kernel.PairContainer_get_indexes(self)
7209 
7210 
7211  def get(self, *args):
7212  """
7213  get(PairContainer self) -> IMP::ParticlePairsTemp
7214  get(PairContainer self, unsigned int i) -> IMP::ParticlePair
7215  """
7216  return _IMP_kernel.PairContainer_get(self, *args)
7217 
7218 
7219  def get_number(self):
7220  """get_number(PairContainer self) -> unsigned int"""
7221  return _IMP_kernel.PairContainer_get_number(self)
7222 
7223 
7224  def get_particle_pairs(self):
7225  """get_particle_pairs(PairContainer self) -> IMP::ParticlePairsTemp"""
7226  return _IMP_kernel.PairContainer_get_particle_pairs(self)
7227 
7228 
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)
7232 
7233 
7234  def __init__(self, *args):
7235  """
7236  __init__(IMP::PairContainer self, Model m, std::string name) -> PairContainer
7237  __init__(IMP::PairContainer self, Model m) -> PairContainer
7238  """
7239  if self.__class__ == PairContainer:
7240  _self = None
7241  else:
7242  _self = self
7243  this = _IMP_kernel.new_PairContainer(_self, *args)
7244  try:
7245  self.this.append(this)
7246  except __builtin__.Exception:
7247  self.this = this
7248 
7249  if self.__class__ != PairContainer:
7250  _director_objects.register(self)
7251 
7252 
7253 
7254 
7255  def do_apply(self, sm):
7256  """do_apply(PairContainer self, PairModifier sm)"""
7257  return _IMP_kernel.PairContainer_do_apply(self, sm)
7258 
7259 
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)
7263 
7264  __swig_destroy__ = _IMP_kernel.delete_PairContainer
7265  __del__ = lambda self: None
7266 
7267  def __str__(self):
7268  """__str__(PairContainer self) -> std::string"""
7269  return _IMP_kernel.PairContainer___str__(self)
7270 
7271 
7272  def __repr__(self):
7273  """__repr__(PairContainer self) -> std::string"""
7274  return _IMP_kernel.PairContainer___repr__(self)
7275 
7276 
7277  @staticmethod
7278  def get_from(o):
7279  return _object_cast_to_PairContainer(o)
7280 
7281 
7282  def get_type_name(self):
7283  return self.__class__.__name__
7284  def do_show(self, out):
7285  pass
7286  def get_version_info(self):
7287  if"IMP" == "IMP":
7288  return VersionInfo(self.__module__,
7289  __import__(self.__module__).get_module_version())
7290  else:
7291  return IMP.VersionInfo(self.__module__,
7292  __import__(self.__module__).get_module_version())
7293  @staticmethod
7294  def get_from(o):
7295  return _object_cast_to_PairContainer(o)
7296 
7297  def __disown__(self):
7298  self.this.disown()
7299  _IMP_kernel.disown_PairContainer(self)
7300  return weakref_proxy(self)
7301 
7302  def do_destroy(self):
7303  """do_destroy(PairContainer self)"""
7304  return _IMP_kernel.PairContainer_do_destroy(self)
7305 
7306 
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)
7310 
7311 
7312  def do_get_inputs(self):
7313  """do_get_inputs(PairContainer self) -> IMP::ModelObjectsTemp"""
7314  return _IMP_kernel.PairContainer_do_get_inputs(self)
7315 
7316 
7317  def do_get_interactions(self):
7318  """do_get_interactions(PairContainer self) -> IMP::ModelObjectsTemps"""
7319  return _IMP_kernel.PairContainer_do_get_interactions(self)
7320 
7321 
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)
7325 
7326 PairContainer_swigregister = _IMP_kernel.PairContainer_swigregister
7327 PairContainer_swigregister(PairContainer)
7328 
7329 class _PairContainerAdaptor(_InputAdaptor):
7330  """Proxy of C++ IMP::PairContainerAdaptor class."""
7331 
7332  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7333  __repr__ = _swig_repr
7334 
7335  def __init__(self, *args):
7336  """
7337  __init__(IMP::PairContainerAdaptor self) -> _PairContainerAdaptor
7338  __init__(IMP::PairContainerAdaptor self, PairContainer c) -> _PairContainerAdaptor
7339  __init__(IMP::PairContainerAdaptor self, IMP::ParticlePairsTemp const & t) -> _PairContainerAdaptor
7340  """
7341  this = _IMP_kernel.new__PairContainerAdaptor(*args)
7342  try:
7343  self.this.append(this)
7344  except __builtin__.Exception:
7345  self.this = this
7346 
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)
7350 
7351  __swig_destroy__ = _IMP_kernel.delete__PairContainerAdaptor
7352  __del__ = lambda self: None
7353 _PairContainerAdaptor_swigregister = _IMP_kernel._PairContainerAdaptor_swigregister
7354 _PairContainerAdaptor_swigregister(_PairContainerAdaptor)
7355 
7356 class QuadModifier(_ParticleInputs, _ParticleOutputs, Object):
7357  """Proxy of C++ IMP::QuadModifier class."""
7358 
7359  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7360 
7361  def __init__(self, *args):
7362  """
7363  __init__(IMP::QuadModifier self, std::string name) -> QuadModifier
7364  __init__(IMP::QuadModifier self) -> QuadModifier
7365  """
7366  if self.__class__ == QuadModifier:
7367  _self = None
7368  else:
7369  _self = self
7370  this = _IMP_kernel.new_QuadModifier(_self, *args)
7371  try:
7372  self.this.append(this)
7373  except __builtin__.Exception:
7374  self.this = this
7375 
7376  if self.__class__ != QuadModifier:
7377  _director_objects.register(self)
7378 
7379 
7380 
7381 
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)
7385 
7386 
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)
7390 
7391 
7392  def __str__(self):
7393  """__str__(QuadModifier self) -> std::string"""
7394  return _IMP_kernel.QuadModifier___str__(self)
7395 
7396 
7397  def __repr__(self):
7398  """__repr__(QuadModifier self) -> std::string"""
7399  return _IMP_kernel.QuadModifier___repr__(self)
7400 
7401 
7402  @staticmethod
7403  def get_from(o):
7404  return _object_cast_to_QuadModifier(o)
7405 
7406 
7407  def get_type_name(self):
7408  return self.__class__.__name__
7409  def do_show(self, out):
7410  pass
7411  def get_version_info(self):
7412  if"IMP" == "IMP":
7413  return VersionInfo(self.__module__,
7414  __import__(self.__module__).get_module_version())
7415  else:
7416  return IMP.VersionInfo(self.__module__,
7417  __import__(self.__module__).get_module_version())
7418  @staticmethod
7419  def get_from(o):
7420  return _object_cast_to_QuadModifier(o)
7421 
7422  __swig_destroy__ = _IMP_kernel.delete_QuadModifier
7423  __del__ = lambda self: None
7424  def __disown__(self):
7425  self.this.disown()
7426  _IMP_kernel.disown_QuadModifier(self)
7427  return weakref_proxy(self)
7428 
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)
7432 
7433 
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)
7437 
7438 
7439  def do_destroy(self):
7440  """do_destroy(QuadModifier self)"""
7441  return _IMP_kernel.QuadModifier_do_destroy(self)
7442 
7443 QuadModifier_swigregister = _IMP_kernel.QuadModifier_swigregister
7444 QuadModifier_swigregister(QuadModifier)
7445 
7446 class QuadScore(_ParticleInputs, Object):
7447  """Proxy of C++ IMP::QuadScore class."""
7448 
7449  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7450 
7451  def __init__(self, *args):
7452  """
7453  __init__(IMP::QuadScore self, std::string name) -> QuadScore
7454  __init__(IMP::QuadScore self) -> QuadScore
7455  """
7456  if self.__class__ == QuadScore:
7457  _self = None
7458  else:
7459  _self = self
7460  this = _IMP_kernel.new_QuadScore(_self, *args)
7461  try:
7462  self.this.append(this)
7463  except __builtin__.Exception:
7464  self.this = this
7465 
7466  if self.__class__ != QuadScore:
7467  _director_objects.register(self)
7468 
7469 
7470 
7471 
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)
7475 
7476 
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)
7480 
7481 
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)
7485 
7486 
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)
7490 
7491 
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)
7495 
7496 
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)
7500 
7501  __swig_destroy__ = _IMP_kernel.delete_QuadScore
7502  __del__ = lambda self: None
7503 
7504  def __str__(self):
7505  """__str__(QuadScore self) -> std::string"""
7506  return _IMP_kernel.QuadScore___str__(self)
7507 
7508 
7509  def __repr__(self):
7510  """__repr__(QuadScore self) -> std::string"""
7511  return _IMP_kernel.QuadScore___repr__(self)
7512 
7513 
7514  @staticmethod
7515  def get_from(o):
7516  return _object_cast_to_QuadScore(o)
7517 
7518 
7519  def get_type_name(self):
7520  return self.__class__.__name__
7521  def do_show(self, out):
7522  pass
7523  def get_version_info(self):
7524  if"IMP" == "IMP":
7525  return VersionInfo(self.__module__,
7526  __import__(self.__module__).get_module_version())
7527  else:
7528  return IMP.VersionInfo(self.__module__,
7529  __import__(self.__module__).get_module_version())
7530  @staticmethod
7531  def get_from(o):
7532  return _object_cast_to_QuadScore(o)
7533 
7534  def __disown__(self):
7535  self.this.disown()
7536  _IMP_kernel.disown_QuadScore(self)
7537  return weakref_proxy(self)
7538 
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)
7542 
7543 
7544  def do_destroy(self):
7545  """do_destroy(QuadScore self)"""
7546  return _IMP_kernel.QuadScore_do_destroy(self)
7547 
7548 QuadScore_swigregister = _IMP_kernel.QuadScore_swigregister
7549 QuadScore_swigregister(QuadScore)
7550 
7551 class QuadPredicate(_ParticleInputs, Object):
7552  """Proxy of C++ IMP::QuadPredicate class."""
7553 
7554  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7555 
7556  def __init__(self, *args):
7557  """
7558  __init__(IMP::QuadPredicate self, std::string name) -> QuadPredicate
7559  __init__(IMP::QuadPredicate self) -> QuadPredicate
7560  """
7561  if self.__class__ == QuadPredicate:
7562  _self = None
7563  else:
7564  _self = self
7565  this = _IMP_kernel.new_QuadPredicate(_self, *args)
7566  try:
7567  self.this.append(this)
7568  except __builtin__.Exception:
7569  self.this = this
7570 
7571  if self.__class__ != QuadPredicate:
7572  _director_objects.register(self)
7573 
7574 
7575 
7576 
7577  def get_value(self, *args):
7578  """
7579  get_value(QuadPredicate self, IMP::ParticleQuad const & vt) -> int
7580  get_value(QuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
7581  """
7582  return _IMP_kernel.QuadPredicate_get_value(self, *args)
7583 
7584 
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)
7588 
7589 
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)
7593 
7594 
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)
7598 
7599 
7600  def get_value_index(self, *args):
7601  """
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
7604  """
7605  return _IMP_kernel.QuadPredicate_get_value_index(self, *args)
7606 
7607  __swig_destroy__ = _IMP_kernel.delete_QuadPredicate
7608  __del__ = lambda self: None
7609 
7610  def __str__(self):
7611  """__str__(QuadPredicate self) -> std::string"""
7612  return _IMP_kernel.QuadPredicate___str__(self)
7613 
7614 
7615  def __repr__(self):
7616  """__repr__(QuadPredicate self) -> std::string"""
7617  return _IMP_kernel.QuadPredicate___repr__(self)
7618 
7619 
7620  @staticmethod
7621  def get_from(o):
7622  return _object_cast_to_QuadPredicate(o)
7623 
7624 
7625  def get_type_name(self):
7626  return self.__class__.__name__
7627  def do_show(self, out):
7628  pass
7629  def get_version_info(self):
7630  if"IMP" == "IMP":
7631  return VersionInfo(self.__module__,
7632  __import__(self.__module__).get_module_version())
7633  else:
7634  return IMP.VersionInfo(self.__module__,
7635  __import__(self.__module__).get_module_version())
7636  @staticmethod
7637  def get_from(o):
7638  return _object_cast_to_QuadPredicate(o)
7639 
7640  def __disown__(self):
7641  self.this.disown()
7642  _IMP_kernel.disown_QuadPredicate(self)
7643  return weakref_proxy(self)
7644 
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)
7648 
7649 
7650  def do_destroy(self):
7651  """do_destroy(QuadPredicate self)"""
7652  return _IMP_kernel.QuadPredicate_do_destroy(self)
7653 
7654 QuadPredicate_swigregister = _IMP_kernel.QuadPredicate_swigregister
7655 QuadPredicate_swigregister(QuadPredicate)
7656 
7657 class QuadContainer(Container):
7658  """Proxy of C++ IMP::QuadContainer class."""
7659 
7660  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7661 
7662  def apply_generic(self, m):
7663  """apply_generic(QuadContainer self, QuadModifier m)"""
7664  return _IMP_kernel.QuadContainer_apply_generic(self, m)
7665 
7666 
7667  def apply(self, sm):
7668  """apply(QuadContainer self, QuadModifier sm)"""
7669  return _IMP_kernel.QuadContainer_apply(self, sm)
7670 
7671 
7672  def get_range_indexes(self):
7673  """get_range_indexes(QuadContainer self) -> IMP::ParticleIndexQuads"""
7674  return _IMP_kernel.QuadContainer_get_range_indexes(self)
7675 
7676 
7677  def get_contents(self):
7678  """get_contents(QuadContainer self) -> IMP::ParticleIndexQuads const &"""
7679  return _IMP_kernel.QuadContainer_get_contents(self)
7680 
7681 
7682  def get_indexes(self):
7683  """get_indexes(QuadContainer self) -> IMP::ParticleIndexQuads"""
7684  return _IMP_kernel.QuadContainer_get_indexes(self)
7685 
7686 
7687  def get(self, *args):
7688  """
7689  get(QuadContainer self) -> IMP::ParticleQuadsTemp
7690  get(QuadContainer self, unsigned int i) -> IMP::ParticleQuad
7691  """
7692  return _IMP_kernel.QuadContainer_get(self, *args)
7693 
7694 
7695  def get_number(self):
7696  """get_number(QuadContainer self) -> unsigned int"""
7697  return _IMP_kernel.QuadContainer_get_number(self)
7698 
7699 
7700  def get_particle_quads(self):
7701  """get_particle_quads(QuadContainer self) -> IMP::ParticleQuadsTemp"""
7702  return _IMP_kernel.QuadContainer_get_particle_quads(self)
7703 
7704 
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)
7708 
7709 
7710  def __init__(self, *args):
7711  """
7712  __init__(IMP::QuadContainer self, Model m, std::string name) -> QuadContainer
7713  __init__(IMP::QuadContainer self, Model m) -> QuadContainer
7714  """
7715  if self.__class__ == QuadContainer:
7716  _self = None
7717  else:
7718  _self = self
7719  this = _IMP_kernel.new_QuadContainer(_self, *args)
7720  try:
7721  self.this.append(this)
7722  except __builtin__.Exception:
7723  self.this = this
7724 
7725  if self.__class__ != QuadContainer:
7726  _director_objects.register(self)
7727 
7728 
7729 
7730 
7731  def do_apply(self, sm):
7732  """do_apply(QuadContainer self, QuadModifier sm)"""
7733  return _IMP_kernel.QuadContainer_do_apply(self, sm)
7734 
7735 
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)
7739 
7740  __swig_destroy__ = _IMP_kernel.delete_QuadContainer
7741  __del__ = lambda self: None
7742 
7743  def __str__(self):
7744  """__str__(QuadContainer self) -> std::string"""
7745  return _IMP_kernel.QuadContainer___str__(self)
7746 
7747 
7748  def __repr__(self):
7749  """__repr__(QuadContainer self) -> std::string"""
7750  return _IMP_kernel.QuadContainer___repr__(self)
7751 
7752 
7753  @staticmethod
7754  def get_from(o):
7755  return _object_cast_to_QuadContainer(o)
7756 
7757 
7758  def get_type_name(self):
7759  return self.__class__.__name__
7760  def do_show(self, out):
7761  pass
7762  def get_version_info(self):
7763  if"IMP" == "IMP":
7764  return VersionInfo(self.__module__,
7765  __import__(self.__module__).get_module_version())
7766  else:
7767  return IMP.VersionInfo(self.__module__,
7768  __import__(self.__module__).get_module_version())
7769  @staticmethod
7770  def get_from(o):
7771  return _object_cast_to_QuadContainer(o)
7772 
7773  def __disown__(self):
7774  self.this.disown()
7775  _IMP_kernel.disown_QuadContainer(self)
7776  return weakref_proxy(self)
7777 
7778  def do_destroy(self):
7779  """do_destroy(QuadContainer self)"""
7780  return _IMP_kernel.QuadContainer_do_destroy(self)
7781 
7782 
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)
7786 
7787 
7788  def do_get_inputs(self):
7789  """do_get_inputs(QuadContainer self) -> IMP::ModelObjectsTemp"""
7790  return _IMP_kernel.QuadContainer_do_get_inputs(self)
7791 
7792 
7793  def do_get_interactions(self):
7794  """do_get_interactions(QuadContainer self) -> IMP::ModelObjectsTemps"""
7795  return _IMP_kernel.QuadContainer_do_get_interactions(self)
7796 
7797 
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)
7801 
7802 QuadContainer_swigregister = _IMP_kernel.QuadContainer_swigregister
7803 QuadContainer_swigregister(QuadContainer)
7804 
7805 class _QuadContainerAdaptor(_InputAdaptor):
7806  """Proxy of C++ IMP::QuadContainerAdaptor class."""
7807 
7808  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7809  __repr__ = _swig_repr
7810 
7811  def __init__(self, *args):
7812  """
7813  __init__(IMP::QuadContainerAdaptor self) -> _QuadContainerAdaptor
7814  __init__(IMP::QuadContainerAdaptor self, QuadContainer c) -> _QuadContainerAdaptor
7815  __init__(IMP::QuadContainerAdaptor self, IMP::ParticleQuadsTemp const & t) -> _QuadContainerAdaptor
7816  """
7817  this = _IMP_kernel.new__QuadContainerAdaptor(*args)
7818  try:
7819  self.this.append(this)
7820  except __builtin__.Exception:
7821  self.this = this
7822 
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)
7826 
7827  __swig_destroy__ = _IMP_kernel.delete__QuadContainerAdaptor
7828  __del__ = lambda self: None
7829 _QuadContainerAdaptor_swigregister = _IMP_kernel._QuadContainerAdaptor_swigregister
7830 _QuadContainerAdaptor_swigregister(_QuadContainerAdaptor)
7831 
7832 class SingletonModifier(_ParticleInputs, _ParticleOutputs, Object):
7833  """Proxy of C++ IMP::SingletonModifier class."""
7834 
7835  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7836 
7837  def __init__(self, *args):
7838  """
7839  __init__(IMP::SingletonModifier self, std::string name) -> SingletonModifier
7840  __init__(IMP::SingletonModifier self) -> SingletonModifier
7841  """
7842  if self.__class__ == SingletonModifier:
7843  _self = None
7844  else:
7845  _self = self
7846  this = _IMP_kernel.new_SingletonModifier(_self, *args)
7847  try:
7848  self.this.append(this)
7849  except __builtin__.Exception:
7850  self.this = this
7851 
7852  if self.__class__ != SingletonModifier:
7853  _director_objects.register(self)
7854 
7855 
7856 
7857 
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)
7861 
7862 
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)
7866 
7867 
7868  def __str__(self):
7869  """__str__(SingletonModifier self) -> std::string"""
7870  return _IMP_kernel.SingletonModifier___str__(self)
7871 
7872 
7873  def __repr__(self):
7874  """__repr__(SingletonModifier self) -> std::string"""
7875  return _IMP_kernel.SingletonModifier___repr__(self)
7876 
7877 
7878  @staticmethod
7879  def get_from(o):
7880  return _object_cast_to_SingletonModifier(o)
7881 
7882 
7883  def get_type_name(self):
7884  return self.__class__.__name__
7885  def do_show(self, out):
7886  pass
7887  def get_version_info(self):
7888  if"IMP" == "IMP":
7889  return VersionInfo(self.__module__,
7890  __import__(self.__module__).get_module_version())
7891  else:
7892  return IMP.VersionInfo(self.__module__,
7893  __import__(self.__module__).get_module_version())
7894  @staticmethod
7895  def get_from(o):
7896  return _object_cast_to_SingletonModifier(o)
7897 
7898  __swig_destroy__ = _IMP_kernel.delete_SingletonModifier
7899  __del__ = lambda self: None
7900  def __disown__(self):
7901  self.this.disown()
7902  _IMP_kernel.disown_SingletonModifier(self)
7903  return weakref_proxy(self)
7904 
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)
7908 
7909 
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)
7913 
7914 
7915  def do_destroy(self):
7916  """do_destroy(SingletonModifier self)"""
7917  return _IMP_kernel.SingletonModifier_do_destroy(self)
7918 
7919 SingletonModifier_swigregister = _IMP_kernel.SingletonModifier_swigregister
7920 SingletonModifier_swigregister(SingletonModifier)
7921 
7922 class SingletonScore(_ParticleInputs, Object):
7923  """Proxy of C++ IMP::SingletonScore class."""
7924 
7925  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7926 
7927  def __init__(self, *args):
7928  """
7929  __init__(IMP::SingletonScore self, std::string name) -> SingletonScore
7930  __init__(IMP::SingletonScore self) -> SingletonScore
7931  """
7932  if self.__class__ == SingletonScore:
7933  _self = None
7934  else:
7935  _self = self
7936  this = _IMP_kernel.new_SingletonScore(_self, *args)
7937  try:
7938  self.this.append(this)
7939  except __builtin__.Exception:
7940  self.this = this
7941 
7942  if self.__class__ != SingletonScore:
7943  _director_objects.register(self)
7944 
7945 
7946 
7947 
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)
7951 
7952 
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)
7956 
7957 
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)
7961 
7962 
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)
7966 
7967 
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)
7971 
7972 
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)
7976 
7977  __swig_destroy__ = _IMP_kernel.delete_SingletonScore
7978  __del__ = lambda self: None
7979 
7980  def __str__(self):
7981  """__str__(SingletonScore self) -> std::string"""
7982  return _IMP_kernel.SingletonScore___str__(self)
7983 
7984 
7985  def __repr__(self):
7986  """__repr__(SingletonScore self) -> std::string"""
7987  return _IMP_kernel.SingletonScore___repr__(self)
7988 
7989 
7990  @staticmethod
7991  def get_from(o):
7992  return _object_cast_to_SingletonScore(o)
7993 
7994 
7995  def get_type_name(self):
7996  return self.__class__.__name__
7997  def do_show(self, out):
7998  pass
7999  def get_version_info(self):
8000  if"IMP" == "IMP":
8001  return VersionInfo(self.__module__,
8002  __import__(self.__module__).get_module_version())
8003  else:
8004  return IMP.VersionInfo(self.__module__,
8005  __import__(self.__module__).get_module_version())
8006  @staticmethod
8007  def get_from(o):
8008  return _object_cast_to_SingletonScore(o)
8009 
8010  def __disown__(self):
8011  self.this.disown()
8012  _IMP_kernel.disown_SingletonScore(self)
8013  return weakref_proxy(self)
8014 
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)
8018 
8019 
8020  def do_destroy(self):
8021  """do_destroy(SingletonScore self)"""
8022  return _IMP_kernel.SingletonScore_do_destroy(self)
8023 
8024 SingletonScore_swigregister = _IMP_kernel.SingletonScore_swigregister
8025 SingletonScore_swigregister(SingletonScore)
8026 
8027 class SingletonPredicate(_ParticleInputs, Object):
8028  """Proxy of C++ IMP::SingletonPredicate class."""
8029 
8030  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8031 
8032  def __init__(self, *args):
8033  """
8034  __init__(IMP::SingletonPredicate self, std::string name) -> SingletonPredicate
8035  __init__(IMP::SingletonPredicate self) -> SingletonPredicate
8036  """
8037  if self.__class__ == SingletonPredicate:
8038  _self = None
8039  else:
8040  _self = self
8041  this = _IMP_kernel.new_SingletonPredicate(_self, *args)
8042  try:
8043  self.this.append(this)
8044  except __builtin__.Exception:
8045  self.this = this
8046 
8047  if self.__class__ != SingletonPredicate:
8048  _director_objects.register(self)
8049 
8050 
8051 
8052 
8053  def get_value(self, *args):
8054  """
8055  get_value(SingletonPredicate self, Particle vt) -> int
8056  get_value(SingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
8057  """
8058  return _IMP_kernel.SingletonPredicate_get_value(self, *args)
8059 
8060 
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)
8064 
8065 
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)
8069 
8070 
8071  def __call__(self, m, vt):
8072  """__call__(SingletonPredicate self, Model m, ParticleIndex vt) -> int"""
8073  return _IMP_kernel.SingletonPredicate___call__(self, m, vt)
8074 
8075 
8076  def get_value_index(self, *args):
8077  """
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
8080  """
8081  return _IMP_kernel.SingletonPredicate_get_value_index(self, *args)
8082 
8083  __swig_destroy__ = _IMP_kernel.delete_SingletonPredicate
8084  __del__ = lambda self: None
8085 
8086  def __str__(self):
8087  """__str__(SingletonPredicate self) -> std::string"""
8088  return _IMP_kernel.SingletonPredicate___str__(self)
8089 
8090 
8091  def __repr__(self):
8092  """__repr__(SingletonPredicate self) -> std::string"""
8093  return _IMP_kernel.SingletonPredicate___repr__(self)
8094 
8095 
8096  @staticmethod
8097  def get_from(o):
8098  return _object_cast_to_SingletonPredicate(o)
8099 
8100 
8101  def get_type_name(self):
8102  return self.__class__.__name__
8103  def do_show(self, out):
8104  pass
8105  def get_version_info(self):
8106  if"IMP" == "IMP":
8107  return VersionInfo(self.__module__,
8108  __import__(self.__module__).get_module_version())
8109  else:
8110  return IMP.VersionInfo(self.__module__,
8111  __import__(self.__module__).get_module_version())
8112  @staticmethod
8113  def get_from(o):
8114  return _object_cast_to_SingletonPredicate(o)
8115 
8116  def __disown__(self):
8117  self.this.disown()
8118  _IMP_kernel.disown_SingletonPredicate(self)
8119  return weakref_proxy(self)
8120 
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)
8124 
8125 
8126  def do_destroy(self):
8127  """do_destroy(SingletonPredicate self)"""
8128  return _IMP_kernel.SingletonPredicate_do_destroy(self)
8129 
8130 SingletonPredicate_swigregister = _IMP_kernel.SingletonPredicate_swigregister
8131 SingletonPredicate_swigregister(SingletonPredicate)
8132 
8133 class SingletonContainer(Container):
8134  """Proxy of C++ IMP::SingletonContainer class."""
8135 
8136  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8137 
8138  def apply_generic(self, m):
8139  """apply_generic(SingletonContainer self, SingletonModifier m)"""
8140  return _IMP_kernel.SingletonContainer_apply_generic(self, m)
8141 
8142 
8143  def apply(self, sm):
8144  """apply(SingletonContainer self, SingletonModifier sm)"""
8145  return _IMP_kernel.SingletonContainer_apply(self, sm)
8146 
8147 
8148  def get_range_indexes(self):
8149  """get_range_indexes(SingletonContainer self) -> IMP::ParticleIndexes"""
8150  return _IMP_kernel.SingletonContainer_get_range_indexes(self)
8151 
8152 
8153  def get_contents(self):
8154  """get_contents(SingletonContainer self) -> IMP::ParticleIndexes const &"""
8155  return _IMP_kernel.SingletonContainer_get_contents(self)
8156 
8157 
8158  def get_indexes(self):
8159  """get_indexes(SingletonContainer self) -> IMP::ParticleIndexes"""
8160  return _IMP_kernel.SingletonContainer_get_indexes(self)
8161 
8162 
8163  def get(self, *args):
8164  """
8165  get(SingletonContainer self) -> IMP::ParticlesTemp
8166  get(SingletonContainer self, unsigned int i) -> Particle
8167  """
8168  return _IMP_kernel.SingletonContainer_get(self, *args)
8169 
8170 
8171  def get_number(self):
8172  """get_number(SingletonContainer self) -> unsigned int"""
8173  return _IMP_kernel.SingletonContainer_get_number(self)
8174 
8175 
8176  def get_particles(self):
8177  """get_particles(SingletonContainer self) -> IMP::ParticlesTemp"""
8178  return _IMP_kernel.SingletonContainer_get_particles(self)
8179 
8180 
8181  def get_particle(self, i):
8182  """get_particle(SingletonContainer self, unsigned int i) -> Particle"""
8183  return _IMP_kernel.SingletonContainer_get_particle(self, i)
8184 
8185 
8186  def __init__(self, *args):
8187  """
8188  __init__(IMP::SingletonContainer self, Model m, std::string name) -> SingletonContainer
8189  __init__(IMP::SingletonContainer self, Model m) -> SingletonContainer
8190  """
8191  if self.__class__ == SingletonContainer:
8192  _self = None
8193  else:
8194  _self = self
8195  this = _IMP_kernel.new_SingletonContainer(_self, *args)
8196  try:
8197  self.this.append(this)
8198  except __builtin__.Exception:
8199  self.this = this
8200 
8201  if self.__class__ != SingletonContainer:
8202  _director_objects.register(self)
8203 
8204 
8205 
8206 
8207  def do_apply(self, sm):
8208  """do_apply(SingletonContainer self, SingletonModifier sm)"""
8209  return _IMP_kernel.SingletonContainer_do_apply(self, sm)
8210 
8211 
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)
8215 
8216  __swig_destroy__ = _IMP_kernel.delete_SingletonContainer
8217  __del__ = lambda self: None
8218 
8219  def __str__(self):
8220  """__str__(SingletonContainer self) -> std::string"""
8221  return _IMP_kernel.SingletonContainer___str__(self)
8222 
8223 
8224  def __repr__(self):
8225  """__repr__(SingletonContainer self) -> std::string"""
8226  return _IMP_kernel.SingletonContainer___repr__(self)
8227 
8228 
8229  @staticmethod
8230  def get_from(o):
8231  return _object_cast_to_SingletonContainer(o)
8232 
8233 
8234  def get_type_name(self):
8235  return self.__class__.__name__
8236  def do_show(self, out):
8237  pass
8238  def get_version_info(self):
8239  if"IMP" == "IMP":
8240  return VersionInfo(self.__module__,
8241  __import__(self.__module__).get_module_version())
8242  else:
8243  return IMP.VersionInfo(self.__module__,
8244  __import__(self.__module__).get_module_version())
8245  @staticmethod
8246  def get_from(o):
8247  return _object_cast_to_SingletonContainer(o)
8248 
8249  def __disown__(self):
8250  self.this.disown()
8251  _IMP_kernel.disown_SingletonContainer(self)
8252  return weakref_proxy(self)
8253 
8254  def do_destroy(self):
8255  """do_destroy(SingletonContainer self)"""
8256  return _IMP_kernel.SingletonContainer_do_destroy(self)
8257 
8258 
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)
8262 
8263 
8264  def do_get_inputs(self):
8265  """do_get_inputs(SingletonContainer self) -> IMP::ModelObjectsTemp"""
8266  return _IMP_kernel.SingletonContainer_do_get_inputs(self)
8267 
8268 
8269  def do_get_interactions(self):
8270  """do_get_interactions(SingletonContainer self) -> IMP::ModelObjectsTemps"""
8271  return _IMP_kernel.SingletonContainer_do_get_interactions(self)
8272 
8273 
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)
8277 
8278 SingletonContainer_swigregister = _IMP_kernel.SingletonContainer_swigregister
8279 SingletonContainer_swigregister(SingletonContainer)
8280 
8281 class _SingletonContainerAdaptor(_InputAdaptor):
8282  """Proxy of C++ IMP::SingletonContainerAdaptor class."""
8283 
8284  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8285  __repr__ = _swig_repr
8286 
8287  def __init__(self, *args):
8288  """
8289  __init__(IMP::SingletonContainerAdaptor self) -> _SingletonContainerAdaptor
8290  __init__(IMP::SingletonContainerAdaptor self, SingletonContainer c) -> _SingletonContainerAdaptor
8291  __init__(IMP::SingletonContainerAdaptor self, IMP::ParticlesTemp const & t) -> _SingletonContainerAdaptor
8292  """
8293  this = _IMP_kernel.new__SingletonContainerAdaptor(*args)
8294  try:
8295  self.this.append(this)
8296  except __builtin__.Exception:
8297  self.this = this
8298 
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)
8302 
8303  __swig_destroy__ = _IMP_kernel.delete__SingletonContainerAdaptor
8304  __del__ = lambda self: None
8305 _SingletonContainerAdaptor_swigregister = _IMP_kernel._SingletonContainerAdaptor_swigregister
8306 _SingletonContainerAdaptor_swigregister(_SingletonContainerAdaptor)
8307 
8308 class TripletModifier(_ParticleInputs, _ParticleOutputs, Object):
8309  """Proxy of C++ IMP::TripletModifier class."""
8310 
8311  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8312 
8313  def __init__(self, *args):
8314  """
8315  __init__(IMP::TripletModifier self, std::string name) -> TripletModifier
8316  __init__(IMP::TripletModifier self) -> TripletModifier
8317  """
8318  if self.__class__ == TripletModifier:
8319  _self = None
8320  else:
8321  _self = self
8322  this = _IMP_kernel.new_TripletModifier(_self, *args)
8323  try:
8324  self.this.append(this)
8325  except __builtin__.Exception:
8326  self.this = this
8327 
8328  if self.__class__ != TripletModifier:
8329  _director_objects.register(self)
8330 
8331 
8332 
8333 
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)
8337 
8338 
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)
8342 
8343 
8344  def __str__(self):
8345  """__str__(TripletModifier self) -> std::string"""
8346  return _IMP_kernel.TripletModifier___str__(self)
8347 
8348 
8349  def __repr__(self):
8350  """__repr__(TripletModifier self) -> std::string"""
8351  return _IMP_kernel.TripletModifier___repr__(self)
8352 
8353 
8354  @staticmethod
8355  def get_from(o):
8356  return _object_cast_to_TripletModifier(o)
8357 
8358 
8359  def get_type_name(self):
8360  return self.__class__.__name__
8361  def do_show(self, out):
8362  pass
8363  def get_version_info(self):
8364  if"IMP" == "IMP":
8365  return VersionInfo(self.__module__,
8366  __import__(self.__module__).get_module_version())
8367  else:
8368  return IMP.VersionInfo(self.__module__,
8369  __import__(self.__module__).get_module_version())
8370  @staticmethod
8371  def get_from(o):
8372  return _object_cast_to_TripletModifier(o)
8373 
8374  __swig_destroy__ = _IMP_kernel.delete_TripletModifier
8375  __del__ = lambda self: None
8376  def __disown__(self):
8377  self.this.disown()
8378  _IMP_kernel.disown_TripletModifier(self)
8379  return weakref_proxy(self)
8380 
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)
8384 
8385 
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)
8389 
8390 
8391  def do_destroy(self):
8392  """do_destroy(TripletModifier self)"""
8393  return _IMP_kernel.TripletModifier_do_destroy(self)
8394 
8395 TripletModifier_swigregister = _IMP_kernel.TripletModifier_swigregister
8396 TripletModifier_swigregister(TripletModifier)
8397 
8398 class TripletScore(_ParticleInputs, Object):
8399  """Proxy of C++ IMP::TripletScore class."""
8400 
8401  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8402 
8403  def __init__(self, *args):
8404  """
8405  __init__(IMP::TripletScore self, std::string name) -> TripletScore
8406  __init__(IMP::TripletScore self) -> TripletScore
8407  """
8408  if self.__class__ == TripletScore:
8409  _self = None
8410  else:
8411  _self = self
8412  this = _IMP_kernel.new_TripletScore(_self, *args)
8413  try:
8414  self.this.append(this)
8415  except __builtin__.Exception:
8416  self.this = this
8417 
8418  if self.__class__ != TripletScore:
8419  _director_objects.register(self)
8420 
8421 
8422 
8423 
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)
8427 
8428 
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)
8432 
8433 
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)
8437 
8438 
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)
8442 
8443 
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)
8447 
8448 
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)
8452 
8453  __swig_destroy__ = _IMP_kernel.delete_TripletScore
8454  __del__ = lambda self: None
8455 
8456  def __str__(self):
8457  """__str__(TripletScore self) -> std::string"""
8458  return _IMP_kernel.TripletScore___str__(self)
8459 
8460 
8461  def __repr__(self):
8462  """__repr__(TripletScore self) -> std::string"""
8463  return _IMP_kernel.TripletScore___repr__(self)
8464 
8465 
8466  @staticmethod
8467  def get_from(o):
8468  return _object_cast_to_TripletScore(o)
8469 
8470 
8471  def get_type_name(self):
8472  return self.__class__.__name__
8473  def do_show(self, out):
8474  pass
8475  def get_version_info(self):
8476  if"IMP" == "IMP":
8477  return VersionInfo(self.__module__,
8478  __import__(self.__module__).get_module_version())
8479  else:
8480  return IMP.VersionInfo(self.__module__,
8481  __import__(self.__module__).get_module_version())
8482  @staticmethod
8483  def get_from(o):
8484  return _object_cast_to_TripletScore(o)
8485 
8486  def __disown__(self):
8487  self.this.disown()
8488  _IMP_kernel.disown_TripletScore(self)
8489  return weakref_proxy(self)
8490 
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)
8494 
8495 
8496  def do_destroy(self):
8497  """do_destroy(TripletScore self)"""
8498  return _IMP_kernel.TripletScore_do_destroy(self)
8499 
8500 TripletScore_swigregister = _IMP_kernel.TripletScore_swigregister
8501 TripletScore_swigregister(TripletScore)
8502 
8503 class TripletPredicate(_ParticleInputs, Object):
8504  """Proxy of C++ IMP::TripletPredicate class."""
8505 
8506  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8507 
8508  def __init__(self, *args):
8509  """
8510  __init__(IMP::TripletPredicate self, std::string name) -> TripletPredicate
8511  __init__(IMP::TripletPredicate self) -> TripletPredicate
8512  """
8513  if self.__class__ == TripletPredicate:
8514  _self = None
8515  else:
8516  _self = self
8517  this = _IMP_kernel.new_TripletPredicate(_self, *args)
8518  try:
8519  self.this.append(this)
8520  except __builtin__.Exception:
8521  self.this = this
8522 
8523  if self.__class__ != TripletPredicate:
8524  _director_objects.register(self)
8525 
8526 
8527 
8528 
8529  def get_value(self, *args):
8530  """
8531  get_value(TripletPredicate self, IMP::ParticleTriplet const & vt) -> int
8532  get_value(TripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
8533  """
8534  return _IMP_kernel.TripletPredicate_get_value(self, *args)
8535 
8536 
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)
8540 
8541 
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)
8545 
8546 
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)
8550 
8551 
8552  def get_value_index(self, *args):
8553  """
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
8556  """
8557  return _IMP_kernel.TripletPredicate_get_value_index(self, *args)
8558 
8559  __swig_destroy__ = _IMP_kernel.delete_TripletPredicate
8560  __del__ = lambda self: None
8561 
8562  def __str__(self):
8563  """__str__(TripletPredicate self) -> std::string"""
8564  return _IMP_kernel.TripletPredicate___str__(self)
8565 
8566 
8567  def __repr__(self):
8568  """__repr__(TripletPredicate self) -> std::string"""
8569  return _IMP_kernel.TripletPredicate___repr__(self)
8570 
8571 
8572  @staticmethod
8573  def get_from(o):
8574  return _object_cast_to_TripletPredicate(o)
8575 
8576 
8577  def get_type_name(self):
8578  return self.__class__.__name__
8579  def do_show(self, out):
8580  pass
8581  def get_version_info(self):
8582  if"IMP" == "IMP":
8583  return VersionInfo(self.__module__,
8584  __import__(self.__module__).get_module_version())
8585  else:
8586  return IMP.VersionInfo(self.__module__,
8587  __import__(self.__module__).get_module_version())
8588  @staticmethod
8589  def get_from(o):
8590  return _object_cast_to_TripletPredicate(o)
8591 
8592  def __disown__(self):
8593  self.this.disown()
8594  _IMP_kernel.disown_TripletPredicate(self)
8595  return weakref_proxy(self)
8596 
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)
8600 
8601 
8602  def do_destroy(self):
8603  """do_destroy(TripletPredicate self)"""
8604  return _IMP_kernel.TripletPredicate_do_destroy(self)
8605 
8606 TripletPredicate_swigregister = _IMP_kernel.TripletPredicate_swigregister
8607 TripletPredicate_swigregister(TripletPredicate)
8608 
8609 class TripletContainer(Container):
8610  """Proxy of C++ IMP::TripletContainer class."""
8611 
8612  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8613 
8614  def apply_generic(self, m):
8615  """apply_generic(TripletContainer self, TripletModifier m)"""
8616  return _IMP_kernel.TripletContainer_apply_generic(self, m)
8617 
8618 
8619  def apply(self, sm):
8620  """apply(TripletContainer self, TripletModifier sm)"""
8621  return _IMP_kernel.TripletContainer_apply(self, sm)
8622 
8623 
8624  def get_range_indexes(self):
8625  """get_range_indexes(TripletContainer self) -> IMP::ParticleIndexTriplets"""
8626  return _IMP_kernel.TripletContainer_get_range_indexes(self)
8627 
8628 
8629  def get_contents(self):
8630  """get_contents(TripletContainer self) -> IMP::ParticleIndexTriplets const &"""
8631  return _IMP_kernel.TripletContainer_get_contents(self)
8632 
8633 
8634  def get_indexes(self):
8635  """get_indexes(TripletContainer self) -> IMP::ParticleIndexTriplets"""
8636  return _IMP_kernel.TripletContainer_get_indexes(self)
8637 
8638 
8639  def get(self, *args):
8640  """
8641  get(TripletContainer self) -> IMP::ParticleTripletsTemp
8642  get(TripletContainer self, unsigned int i) -> IMP::ParticleTriplet
8643  """
8644  return _IMP_kernel.TripletContainer_get(self, *args)
8645 
8646 
8647  def get_number(self):
8648  """get_number(TripletContainer self) -> unsigned int"""
8649  return _IMP_kernel.TripletContainer_get_number(self)
8650 
8651 
8652  def get_particle_triplets(self):
8653  """get_particle_triplets(TripletContainer self) -> IMP::ParticleTripletsTemp"""
8654  return _IMP_kernel.TripletContainer_get_particle_triplets(self)
8655 
8656 
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)
8660 
8661 
8662  def __init__(self, *args):
8663  """
8664  __init__(IMP::TripletContainer self, Model m, std::string name) -> TripletContainer
8665  __init__(IMP::TripletContainer self, Model m) -> TripletContainer
8666  """
8667  if self.__class__ == TripletContainer:
8668  _self = None
8669  else:
8670  _self = self
8671  this = _IMP_kernel.new_TripletContainer(_self, *args)
8672  try:
8673  self.this.append(this)
8674  except __builtin__.Exception:
8675  self.this = this
8676 
8677  if self.__class__ != TripletContainer:
8678  _director_objects.register(self)
8679 
8680 
8681 
8682 
8683  def do_apply(self, sm):
8684  """do_apply(TripletContainer self, TripletModifier sm)"""
8685  return _IMP_kernel.TripletContainer_do_apply(self, sm)
8686 
8687 
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)
8691 
8692  __swig_destroy__ = _IMP_kernel.delete_TripletContainer
8693  __del__ = lambda self: None
8694 
8695  def __str__(self):
8696  """__str__(TripletContainer self) -> std::string"""
8697  return _IMP_kernel.TripletContainer___str__(self)
8698 
8699 
8700  def __repr__(self):
8701  """__repr__(TripletContainer self) -> std::string"""
8702  return _IMP_kernel.TripletContainer___repr__(self)
8703 
8704 
8705  @staticmethod
8706  def get_from(o):
8707  return _object_cast_to_TripletContainer(o)
8708 
8709 
8710  def get_type_name(self):
8711  return self.__class__.__name__
8712  def do_show(self, out):
8713  pass
8714  def get_version_info(self):
8715  if"IMP" == "IMP":
8716  return VersionInfo(self.__module__,
8717  __import__(self.__module__).get_module_version())
8718  else:
8719  return IMP.VersionInfo(self.__module__,
8720  __import__(self.__module__).get_module_version())
8721  @staticmethod
8722  def get_from(o):
8723  return _object_cast_to_TripletContainer(o)
8724 
8725  def __disown__(self):
8726  self.this.disown()
8727  _IMP_kernel.disown_TripletContainer(self)
8728  return weakref_proxy(self)
8729 
8730  def do_destroy(self):
8731  """do_destroy(TripletContainer self)"""
8732  return _IMP_kernel.TripletContainer_do_destroy(self)
8733 
8734 
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)
8738 
8739 
8740  def do_get_inputs(self):
8741  """do_get_inputs(TripletContainer self) -> IMP::ModelObjectsTemp"""
8742  return _IMP_kernel.TripletContainer_do_get_inputs(self)
8743 
8744 
8745  def do_get_interactions(self):
8746  """do_get_interactions(TripletContainer self) -> IMP::ModelObjectsTemps"""
8747  return _IMP_kernel.TripletContainer_do_get_interactions(self)
8748 
8749 
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)
8753 
8754 TripletContainer_swigregister = _IMP_kernel.TripletContainer_swigregister
8755 TripletContainer_swigregister(TripletContainer)
8756 
8757 class _TripletContainerAdaptor(_InputAdaptor):
8758  """Proxy of C++ IMP::TripletContainerAdaptor class."""
8759 
8760  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8761  __repr__ = _swig_repr
8762 
8763  def __init__(self, *args):
8764  """
8765  __init__(IMP::TripletContainerAdaptor self) -> _TripletContainerAdaptor
8766  __init__(IMP::TripletContainerAdaptor self, TripletContainer c) -> _TripletContainerAdaptor
8767  __init__(IMP::TripletContainerAdaptor self, IMP::ParticleTripletsTemp const & t) -> _TripletContainerAdaptor
8768  """
8769  this = _IMP_kernel.new__TripletContainerAdaptor(*args)
8770  try:
8771  self.this.append(this)
8772  except __builtin__.Exception:
8773  self.this = this
8774 
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)
8778 
8779  __swig_destroy__ = _IMP_kernel.delete__TripletContainerAdaptor
8780  __del__ = lambda self: None
8781 _TripletContainerAdaptor_swigregister = _IMP_kernel._TripletContainerAdaptor_swigregister
8782 _TripletContainerAdaptor_swigregister(_TripletContainerAdaptor)
8783 
8784 
8785 def write_particles_to_buffer(particles, keys):
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)
8788 
8789 def read_particles_from_buffer(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)
8792 
8793 def get_particles(m, ps):
8794  """get_particles(Model m, IMP::ParticleIndexes const & ps) -> IMP::ParticlesTemp"""
8795  return _IMP_kernel.get_particles(m, ps)
8796 
8797 def get_indexes(*args):
8798  """
8799  get_indexes(IMP::ParticlesTemp const & ps) -> IMP::ParticleIndexes
8800  get_indexes(IMP::ParticlePairsTemp const & ps) -> IMP::ParticleIndexPairs
8801  """
8802  return _IMP_kernel.get_indexes(*args)
8803 class _ParticleIndexAdaptor(object):
8804  """Proxy of C++ IMP::ParticleIndexAdaptor class."""
8805 
8806  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8807  __repr__ = _swig_repr
8808 
8809  def __init__(self, *args):
8810  """
8811  __init__(IMP::ParticleIndexAdaptor self, Particle p) -> _ParticleIndexAdaptor
8812  __init__(IMP::ParticleIndexAdaptor self, ParticleIndex pi) -> _ParticleIndexAdaptor
8813  __init__(IMP::ParticleIndexAdaptor self, Decorator d) -> _ParticleIndexAdaptor
8814  """
8815  this = _IMP_kernel.new__ParticleIndexAdaptor(*args)
8816  try:
8817  self.this.append(this)
8818  except __builtin__.Exception:
8819  self.this = this
8820  __swig_destroy__ = _IMP_kernel.delete__ParticleIndexAdaptor
8821  __del__ = lambda self: None
8822 _ParticleIndexAdaptor_swigregister = _IMP_kernel._ParticleIndexAdaptor_swigregister
8823 _ParticleIndexAdaptor_swigregister(_ParticleIndexAdaptor)
8824 
8825 class _ParticleIndexesAdaptor(_InputAdaptor):
8826  """Proxy of C++ IMP::ParticleIndexesAdaptor class."""
8827 
8828  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8829  __repr__ = _swig_repr
8830 
8831  def __init__(self, *args):
8832  """
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
8836  """
8837  this = _IMP_kernel.new__ParticleIndexesAdaptor(*args)
8838  try:
8839  self.this.append(this)
8840  except __builtin__.Exception:
8841  self.this = this
8842  __swig_destroy__ = _IMP_kernel.delete__ParticleIndexesAdaptor
8843  __del__ = lambda self: None
8844 _ParticleIndexesAdaptor_swigregister = _IMP_kernel._ParticleIndexesAdaptor_swigregister
8845 _ParticleIndexesAdaptor_swigregister(_ParticleIndexesAdaptor)
8846 
8847 class _ParticleIndexPairsAdaptor(object):
8848  """Proxy of C++ IMP::ParticleIndexPairsAdaptor class."""
8849 
8850  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8851  __repr__ = _swig_repr
8852 
8853  def __init__(self, *args):
8854  """
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
8858  """
8859  this = _IMP_kernel.new__ParticleIndexPairsAdaptor(*args)
8860  try:
8861  self.this.append(this)
8862  except __builtin__.Exception:
8863  self.this = this
8864  __swig_destroy__ = _IMP_kernel.delete__ParticleIndexPairsAdaptor
8865  __del__ = lambda self: None
8866 _ParticleIndexPairsAdaptor_swigregister = _IMP_kernel._ParticleIndexPairsAdaptor_swigregister
8867 _ParticleIndexPairsAdaptor_swigregister(_ParticleIndexPairsAdaptor)
8868 
8869 class _ConstRestraint(Restraint):
8870  """Proxy of C++ IMP::internal::_ConstRestraint class."""
8871 
8872  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8873 
8874  def __init__(self, *args):
8875  """
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
8878  """
8879  this = _IMP_kernel.new__ConstRestraint(*args)
8880  try:
8881  self.this.append(this)
8882  except __builtin__.Exception:
8883  self.this = this
8884 
8885  def get_value(self):
8886  """get_value(_ConstRestraint self) -> double"""
8887  return _IMP_kernel._ConstRestraint_get_value(self)
8888 
8889 
8890  def do_create_decomposition(self):
8891  """do_create_decomposition(_ConstRestraint self) -> IMP::Restraints"""
8892  return _IMP_kernel._ConstRestraint_do_create_decomposition(self)
8893 
8894 
8895  def do_get_inputs(self):
8896  """do_get_inputs(_ConstRestraint self) -> IMP::ModelObjectsTemp"""
8897  return _IMP_kernel._ConstRestraint_do_get_inputs(self)
8898 
8899 
8900  def get_version_info(self):
8901  """get_version_info(_ConstRestraint self) -> VersionInfo"""
8902  return _IMP_kernel._ConstRestraint_get_version_info(self)
8903 
8904 
8905  def __str__(self):
8906  """__str__(_ConstRestraint self) -> std::string"""
8907  return _IMP_kernel._ConstRestraint___str__(self)
8908 
8909 
8910  def __repr__(self):
8911  """__repr__(_ConstRestraint self) -> std::string"""
8912  return _IMP_kernel._ConstRestraint___repr__(self)
8913 
8914 
8915  @staticmethod
8916  def get_from(o):
8917  return _object_cast_to__ConstRestraint(o)
8918 
8919 _ConstRestraint_swigregister = _IMP_kernel._ConstRestraint_swigregister
8920 _ConstRestraint_swigregister(_ConstRestraint)
8921 
8922 class _ConstSingletonScore(SingletonScore):
8923  """Proxy of C++ IMP::internal::_ConstSingletonScore class."""
8924 
8925  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8926  __repr__ = _swig_repr
8927 
8928  def __init__(self, v):
8929  """__init__(IMP::internal::_ConstSingletonScore self, double v) -> _ConstSingletonScore"""
8930  this = _IMP_kernel.new__ConstSingletonScore(v)
8931  try:
8932  self.this.append(this)
8933  except __builtin__.Exception:
8934  self.this = this
8935 
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)
8939 
8940 
8941  def get_version_info(self):
8942  """get_version_info(_ConstSingletonScore self) -> VersionInfo"""
8943  return _IMP_kernel._ConstSingletonScore_get_version_info(self)
8944 
8945 _ConstSingletonScore_swigregister = _IMP_kernel._ConstSingletonScore_swigregister
8946 _ConstSingletonScore_swigregister(_ConstSingletonScore)
8947 
8948 class _ConstPairScore(PairScore):
8949  """Proxy of C++ IMP::internal::_ConstPairScore class."""
8950 
8951  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8952  __repr__ = _swig_repr
8953 
8954  def __init__(self, v):
8955  """__init__(IMP::internal::_ConstPairScore self, double v) -> _ConstPairScore"""
8956  this = _IMP_kernel.new__ConstPairScore(v)
8957  try:
8958  self.this.append(this)
8959  except __builtin__.Exception:
8960  self.this = this
8961 
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)
8965 
8966 
8967  def get_version_info(self):
8968  """get_version_info(_ConstPairScore self) -> VersionInfo"""
8969  return _IMP_kernel._ConstPairScore_get_version_info(self)
8970 
8971 _ConstPairScore_swigregister = _IMP_kernel._ConstPairScore_swigregister
8972 _ConstPairScore_swigregister(_ConstPairScore)
8973 
8974 class _TrivialDecorator(Decorator):
8975  """Proxy of C++ IMP::internal::_TrivialDecorator class."""
8976 
8977  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8978 
8979  def __init__(self, *args):
8980  """
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
8984  """
8985  this = _IMP_kernel.new__TrivialDecorator(*args)
8986  try:
8987  self.this.append(this)
8988  except __builtin__.Exception:
8989  self.this = this
8990 
8991  def show(self, *args):
8992  """
8993  show(_TrivialDecorator self, _ostream out)
8994  show(_TrivialDecorator self)
8995  """
8996  return _IMP_kernel._TrivialDecorator_show(self, *args)
8997 
8998 
8999  def setup_particle(*args):
9000  """
9001  setup_particle(Model m, ParticleIndex pi) -> _TrivialDecorator
9002  setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
9003  """
9004  return _IMP_kernel._TrivialDecorator_setup_particle(*args)
9005 
9006  setup_particle = staticmethod(setup_particle)
9007 
9008  def get_is_setup(*args):
9009  """
9010  get_is_setup(_ParticleAdaptor p) -> bool
9011  get_is_setup(Model m, ParticleIndex pi) -> bool
9012  """
9013  return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
9014 
9015  get_is_setup = staticmethod(get_is_setup)
9016 
9017  def add_attribute(self, *args):
9018  """
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)
9027  """
9028  return _IMP_kernel._TrivialDecorator_add_attribute(self, *args)
9029 
9030 
9031  def get_value(self, *args):
9032  """
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
9040  """
9041  return _IMP_kernel._TrivialDecorator_get_value(self, *args)
9042 
9043 
9044  def set_value(self, *args):
9045  """
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)
9053  """
9054  return _IMP_kernel._TrivialDecorator_set_value(self, *args)
9055 
9056 
9057  def remove_attribute(self, *args):
9058  """
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)
9066  """
9067  return _IMP_kernel._TrivialDecorator_remove_attribute(self, *args)
9068 
9069 
9070  def has_attribute(self, *args):
9071  """
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
9079  """
9080  return _IMP_kernel._TrivialDecorator_has_attribute(self, *args)
9081 
9082 
9083  def get_derivative(self, a0):
9084  """get_derivative(_TrivialDecorator self, FloatKey a0) -> double"""
9085  return _IMP_kernel._TrivialDecorator_get_derivative(self, a0)
9086 
9087 
9088  def get_name(self):
9089  """get_name(_TrivialDecorator self) -> std::string"""
9090  return _IMP_kernel._TrivialDecorator_get_name(self)
9091 
9092 
9093  def clear_caches(self):
9094  """clear_caches(_TrivialDecorator self)"""
9095  return _IMP_kernel._TrivialDecorator_clear_caches(self)
9096 
9097 
9098  def set_name(self, a0):
9099  """set_name(_TrivialDecorator self, std::string a0)"""
9100  return _IMP_kernel._TrivialDecorator_set_name(self, a0)
9101 
9102 
9103  def set_check_level(self, a0):
9104  """set_check_level(_TrivialDecorator self, IMP::CheckLevel a0)"""
9105  return _IMP_kernel._TrivialDecorator_set_check_level(self, a0)
9106 
9107 
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)
9111 
9112 
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)
9116 
9117 
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)
9121 
9122 
9123  def get_check_level(self):
9124  """get_check_level(_TrivialDecorator self) -> IMP::CheckLevel"""
9125  return _IMP_kernel._TrivialDecorator_get_check_level(self)
9126 
9127 
9128  def __eq__(self, *args):
9129  """
9130  __eq__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9131  __eq__(_TrivialDecorator self, Particle d) -> bool
9132  """
9133  return _IMP_kernel._TrivialDecorator___eq__(self, *args)
9134 
9135 
9136  def __ne__(self, *args):
9137  """
9138  __ne__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9139  __ne__(_TrivialDecorator self, Particle d) -> bool
9140  """
9141  return _IMP_kernel._TrivialDecorator___ne__(self, *args)
9142 
9143 
9144  def __le__(self, *args):
9145  """
9146  __le__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9147  __le__(_TrivialDecorator self, Particle d) -> bool
9148  """
9149  return _IMP_kernel._TrivialDecorator___le__(self, *args)
9150 
9151 
9152  def __lt__(self, *args):
9153  """
9154  __lt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9155  __lt__(_TrivialDecorator self, Particle d) -> bool
9156  """
9157  return _IMP_kernel._TrivialDecorator___lt__(self, *args)
9158 
9159 
9160  def __ge__(self, *args):
9161  """
9162  __ge__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9163  __ge__(_TrivialDecorator self, Particle d) -> bool
9164  """
9165  return _IMP_kernel._TrivialDecorator___ge__(self, *args)
9166 
9167 
9168  def __gt__(self, *args):
9169  """
9170  __gt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
9171  __gt__(_TrivialDecorator self, Particle d) -> bool
9172  """
9173  return _IMP_kernel._TrivialDecorator___gt__(self, *args)
9174 
9175 
9176  def __hash__(self):
9177  """__hash__(_TrivialDecorator self) -> std::size_t"""
9178  return _IMP_kernel._TrivialDecorator___hash__(self)
9179 
9180 
9181  def __str__(self):
9182  """__str__(_TrivialDecorator self) -> std::string"""
9183  return _IMP_kernel._TrivialDecorator___str__(self)
9184 
9185 
9186  def __repr__(self):
9187  """__repr__(_TrivialDecorator self) -> std::string"""
9188  return _IMP_kernel._TrivialDecorator___repr__(self)
9189 
9190  __swig_destroy__ = _IMP_kernel.delete__TrivialDecorator
9191  __del__ = lambda self: None
9192 _TrivialDecorator_swigregister = _IMP_kernel._TrivialDecorator_swigregister
9193 _TrivialDecorator_swigregister(_TrivialDecorator)
9194 
9195 def _TrivialDecorator_setup_particle(*args):
9196  """
9197  setup_particle(Model m, ParticleIndex pi) -> _TrivialDecorator
9198  _TrivialDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
9199  """
9200  return _IMP_kernel._TrivialDecorator_setup_particle(*args)
9201 
9202 def _TrivialDecorator_get_is_setup(*args):
9203  """
9204  get_is_setup(_ParticleAdaptor p) -> bool
9205  _TrivialDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
9206  """
9207  return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
9208 
9209 class _TrivialDerivedDecorator(_TrivialDecorator):
9210  """Proxy of C++ IMP::internal::_TrivialDerivedDecorator class."""
9211 
9212  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
9213 
9214  def __init__(self, *args):
9215  """
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
9219  """
9220  this = _IMP_kernel.new__TrivialDerivedDecorator(*args)
9221  try:
9222  self.this.append(this)
9223  except __builtin__.Exception:
9224  self.this = this
9225 
9226  def show(self, *args):
9227  """
9228  show(_TrivialDerivedDecorator self, _ostream out)
9229  show(_TrivialDerivedDecorator self)
9230  """
9231  return _IMP_kernel._TrivialDerivedDecorator_show(self, *args)
9232 
9233 
9234  def setup_particle(*args):
9235  """
9236  setup_particle(Model m, ParticleIndex pi) -> _TrivialDerivedDecorator
9237  setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
9238  """
9239  return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
9240 
9241  setup_particle = staticmethod(setup_particle)
9242 
9243  def get_is_setup(*args):
9244  """
9245  get_is_setup(_ParticleAdaptor p) -> bool
9246  get_is_setup(Model m, ParticleIndex pi) -> bool
9247  """
9248  return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
9249 
9250  get_is_setup = staticmethod(get_is_setup)
9251 
9252  def add_attribute(self, *args):
9253  """
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)
9262  """
9263  return _IMP_kernel._TrivialDerivedDecorator_add_attribute(self, *args)
9264 
9265 
9266  def get_value(self, *args):
9267  """
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
9275  """
9276  return _IMP_kernel._TrivialDerivedDecorator_get_value(self, *args)
9277 
9278 
9279  def set_value(self, *args):
9280  """
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)
9288  """
9289  return _IMP_kernel._TrivialDerivedDecorator_set_value(self, *args)
9290 
9291 
9292  def remove_attribute(self, *args):
9293  """
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)
9301  """
9302  return _IMP_kernel._TrivialDerivedDecorator_remove_attribute(self, *args)
9303 
9304 
9305  def has_attribute(self, *args):
9306  """
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
9314  """
9315  return _IMP_kernel._TrivialDerivedDecorator_has_attribute(self, *args)
9316 
9317 
9318  def get_derivative(self, a0):
9319  """get_derivative(_TrivialDerivedDecorator self, FloatKey a0) -> double"""
9320  return _IMP_kernel._TrivialDerivedDecorator_get_derivative(self, a0)
9321 
9322 
9323  def get_name(self):
9324  """get_name(_TrivialDerivedDecorator self) -> std::string"""
9325  return _IMP_kernel._TrivialDerivedDecorator_get_name(self)
9326 
9327 
9328  def clear_caches(self):
9329  """clear_caches(_TrivialDerivedDecorator self)"""
9330  return _IMP_kernel._TrivialDerivedDecorator_clear_caches(self)
9331 
9332 
9333  def set_name(self, a0):
9334  """set_name(_TrivialDerivedDecorator self, std::string a0)"""
9335  return _IMP_kernel._TrivialDerivedDecorator_set_name(self, a0)
9336 
9337 
9338  def set_check_level(self, a0):
9339  """set_check_level(_TrivialDerivedDecorator self, IMP::CheckLevel a0)"""
9340  return _IMP_kernel._TrivialDerivedDecorator_set_check_level(self, a0)
9341 
9342 
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)
9346 
9347 
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)
9351 
9352 
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)
9356 
9357 
9358  def get_check_level(self):
9359  """get_check_level(_TrivialDerivedDecorator self) -> IMP::CheckLevel"""
9360  return _IMP_kernel._TrivialDerivedDecorator_get_check_level(self)
9361 
9362 
9363  def __eq__(self, *args):
9364  """
9365  __eq__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9366  __eq__(_TrivialDerivedDecorator self, Particle d) -> bool
9367  """
9368  return _IMP_kernel._TrivialDerivedDecorator___eq__(self, *args)
9369 
9370 
9371  def __ne__(self, *args):
9372  """
9373  __ne__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9374  __ne__(_TrivialDerivedDecorator self, Particle d) -> bool
9375  """
9376  return _IMP_kernel._TrivialDerivedDecorator___ne__(self, *args)
9377 
9378 
9379  def __le__(self, *args):
9380  """
9381  __le__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9382  __le__(_TrivialDerivedDecorator self, Particle d) -> bool
9383  """
9384  return _IMP_kernel._TrivialDerivedDecorator___le__(self, *args)
9385 
9386 
9387  def __lt__(self, *args):
9388  """
9389  __lt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9390  __lt__(_TrivialDerivedDecorator self, Particle d) -> bool
9391  """
9392  return _IMP_kernel._TrivialDerivedDecorator___lt__(self, *args)
9393 
9394 
9395  def __ge__(self, *args):
9396  """
9397  __ge__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9398  __ge__(_TrivialDerivedDecorator self, Particle d) -> bool
9399  """
9400  return _IMP_kernel._TrivialDerivedDecorator___ge__(self, *args)
9401 
9402 
9403  def __gt__(self, *args):
9404  """
9405  __gt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9406  __gt__(_TrivialDerivedDecorator self, Particle d) -> bool
9407  """
9408  return _IMP_kernel._TrivialDerivedDecorator___gt__(self, *args)
9409 
9410 
9411  def __hash__(self):
9412  """__hash__(_TrivialDerivedDecorator self) -> std::size_t"""
9413  return _IMP_kernel._TrivialDerivedDecorator___hash__(self)
9414 
9415 
9416  def __str__(self):
9417  """__str__(_TrivialDerivedDecorator self) -> std::string"""
9418  return _IMP_kernel._TrivialDerivedDecorator___str__(self)
9419 
9420 
9421  def __repr__(self):
9422  """__repr__(_TrivialDerivedDecorator self) -> std::string"""
9423  return _IMP_kernel._TrivialDerivedDecorator___repr__(self)
9424 
9425  __swig_destroy__ = _IMP_kernel.delete__TrivialDerivedDecorator
9426  __del__ = lambda self: None
9427 _TrivialDerivedDecorator_swigregister = _IMP_kernel._TrivialDerivedDecorator_swigregister
9428 _TrivialDerivedDecorator_swigregister(_TrivialDerivedDecorator)
9429 
9430 def _TrivialDerivedDecorator_setup_particle(*args):
9431  """
9432  setup_particle(Model m, ParticleIndex pi) -> _TrivialDerivedDecorator
9433  _TrivialDerivedDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
9434  """
9435  return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
9436 
9437 def _TrivialDerivedDecorator_get_is_setup(*args):
9438  """
9439  get_is_setup(_ParticleAdaptor p) -> bool
9440  _TrivialDerivedDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
9441  """
9442  return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
9443 
9444 class _TrivialTraitsDecorator(Decorator):
9445  """Proxy of C++ IMP::internal::_TrivialTraitsDecorator class."""
9446 
9447  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
9448 
9449  def get_decorator_traits(self):
9450  """get_decorator_traits(_TrivialTraitsDecorator self) -> StringKey"""
9451  return _IMP_kernel._TrivialTraitsDecorator_get_decorator_traits(self)
9452 
9453 
9454  def get_default_decorator_traits():
9455  """get_default_decorator_traits() -> StringKey"""
9456  return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
9457 
9458  get_default_decorator_traits = staticmethod(get_default_decorator_traits)
9459 
9460  def __init__(self, *args):
9461  """
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
9467  """
9468  this = _IMP_kernel.new__TrivialTraitsDecorator(*args)
9469  try:
9470  self.this.append(this)
9471  except __builtin__.Exception:
9472  self.this = this
9473 
9474  def show(self, *args):
9475  """
9476  show(_TrivialTraitsDecorator self, _ostream out)
9477  show(_TrivialTraitsDecorator self)
9478  """
9479  return _IMP_kernel._TrivialTraitsDecorator_show(self, *args)
9480 
9481 
9482  def setup_particle(*args):
9483  """
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
9488  """
9489  return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
9490 
9491  setup_particle = staticmethod(setup_particle)
9492 
9493  def get_is_setup(*args):
9494  """
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
9499  """
9500  return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
9501 
9502  get_is_setup = staticmethod(get_is_setup)
9503 
9504  def get_default_key():
9505  """get_default_key() -> StringKey"""
9506  return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
9507 
9508  get_default_key = staticmethod(get_default_key)
9509 
9510  def add_attribute(self, *args):
9511  """
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)
9520  """
9521  return _IMP_kernel._TrivialTraitsDecorator_add_attribute(self, *args)
9522 
9523 
9524  def get_value(self, *args):
9525  """
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
9533  """
9534  return _IMP_kernel._TrivialTraitsDecorator_get_value(self, *args)
9535 
9536 
9537  def set_value(self, *args):
9538  """
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)
9546  """
9547  return _IMP_kernel._TrivialTraitsDecorator_set_value(self, *args)
9548 
9549 
9550  def remove_attribute(self, *args):
9551  """
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)
9559  """
9560  return _IMP_kernel._TrivialTraitsDecorator_remove_attribute(self, *args)
9561 
9562 
9563  def has_attribute(self, *args):
9564  """
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
9572  """
9573  return _IMP_kernel._TrivialTraitsDecorator_has_attribute(self, *args)
9574 
9575 
9576  def get_derivative(self, a0):
9577  """get_derivative(_TrivialTraitsDecorator self, FloatKey a0) -> double"""
9578  return _IMP_kernel._TrivialTraitsDecorator_get_derivative(self, a0)
9579 
9580 
9581  def get_name(self):
9582  """get_name(_TrivialTraitsDecorator self) -> std::string"""
9583  return _IMP_kernel._TrivialTraitsDecorator_get_name(self)
9584 
9585 
9586  def clear_caches(self):
9587  """clear_caches(_TrivialTraitsDecorator self)"""
9588  return _IMP_kernel._TrivialTraitsDecorator_clear_caches(self)
9589 
9590 
9591  def set_name(self, a0):
9592  """set_name(_TrivialTraitsDecorator self, std::string a0)"""
9593  return _IMP_kernel._TrivialTraitsDecorator_set_name(self, a0)
9594 
9595 
9596  def set_check_level(self, a0):
9597  """set_check_level(_TrivialTraitsDecorator self, IMP::CheckLevel a0)"""
9598  return _IMP_kernel._TrivialTraitsDecorator_set_check_level(self, a0)
9599 
9600 
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)
9604 
9605 
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)
9609 
9610 
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)
9614 
9615 
9616  def get_check_level(self):
9617  """get_check_level(_TrivialTraitsDecorator self) -> IMP::CheckLevel"""
9618  return _IMP_kernel._TrivialTraitsDecorator_get_check_level(self)
9619 
9620 
9621  def __eq__(self, *args):
9622  """
9623  __eq__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9624  __eq__(_TrivialTraitsDecorator self, Particle d) -> bool
9625  """
9626  return _IMP_kernel._TrivialTraitsDecorator___eq__(self, *args)
9627 
9628 
9629  def __ne__(self, *args):
9630  """
9631  __ne__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9632  __ne__(_TrivialTraitsDecorator self, Particle d) -> bool
9633  """
9634  return _IMP_kernel._TrivialTraitsDecorator___ne__(self, *args)
9635 
9636 
9637  def __le__(self, *args):
9638  """
9639  __le__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9640  __le__(_TrivialTraitsDecorator self, Particle d) -> bool
9641  """
9642  return _IMP_kernel._TrivialTraitsDecorator___le__(self, *args)
9643 
9644 
9645  def __lt__(self, *args):
9646  """
9647  __lt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9648  __lt__(_TrivialTraitsDecorator self, Particle d) -> bool
9649  """
9650  return _IMP_kernel._TrivialTraitsDecorator___lt__(self, *args)
9651 
9652 
9653  def __ge__(self, *args):
9654  """
9655  __ge__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9656  __ge__(_TrivialTraitsDecorator self, Particle d) -> bool
9657  """
9658  return _IMP_kernel._TrivialTraitsDecorator___ge__(self, *args)
9659 
9660 
9661  def __gt__(self, *args):
9662  """
9663  __gt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9664  __gt__(_TrivialTraitsDecorator self, Particle d) -> bool
9665  """
9666  return _IMP_kernel._TrivialTraitsDecorator___gt__(self, *args)
9667 
9668 
9669  def __hash__(self):
9670  """__hash__(_TrivialTraitsDecorator self) -> std::size_t"""
9671  return _IMP_kernel._TrivialTraitsDecorator___hash__(self)
9672 
9673 
9674  def __str__(self):
9675  """__str__(_TrivialTraitsDecorator self) -> std::string"""
9676  return _IMP_kernel._TrivialTraitsDecorator___str__(self)
9677 
9678 
9679  def __repr__(self):
9680  """__repr__(_TrivialTraitsDecorator self) -> std::string"""
9681  return _IMP_kernel._TrivialTraitsDecorator___repr__(self)
9682 
9683  __swig_destroy__ = _IMP_kernel.delete__TrivialTraitsDecorator
9684  __del__ = lambda self: None
9685 _TrivialTraitsDecorator_swigregister = _IMP_kernel._TrivialTraitsDecorator_swigregister
9686 _TrivialTraitsDecorator_swigregister(_TrivialTraitsDecorator)
9687 
9688 def _TrivialTraitsDecorator_get_default_decorator_traits():
9689  """_TrivialTraitsDecorator_get_default_decorator_traits() -> StringKey"""
9690  return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
9691 
9692 def _TrivialTraitsDecorator_setup_particle(*args):
9693  """
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
9698  """
9699  return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
9700 
9701 def _TrivialTraitsDecorator_get_is_setup(*args):
9702  """
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
9707  """
9708  return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
9709 
9710 def _TrivialTraitsDecorator_get_default_key():
9711  """_TrivialTraitsDecorator_get_default_key() -> StringKey"""
9712  return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
9713 
9714 
9715 def __lshift__(*args):
9716  """
9717  __lshift__(_ostream out, _TrivialDecorator n) -> _ostream
9718  __lshift__(_ostream out, _TrivialDerivedDecorator n) -> _ostream
9719  __lshift__(_ostream out, _TrivialTraitsDecorator n) -> _ostream
9720  """
9721  return _IMP_kernel.__lshift__(*args)
9722 class _ConstOptimizer(Optimizer):
9723  """Proxy of C++ IMP::internal::_ConstOptimizer class."""
9724 
9725  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
9726 
9727  def __init__(self, m):
9728  """__init__(IMP::internal::_ConstOptimizer self, Model m) -> _ConstOptimizer"""
9729  this = _IMP_kernel.new__ConstOptimizer(m)
9730  try:
9731  self.this.append(this)
9732  except __builtin__.Exception:
9733  self.this = this
9734 
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)
9738 
9739 
9740  def get_version_info(self):
9741  """get_version_info(_ConstOptimizer self) -> VersionInfo"""
9742  return _IMP_kernel._ConstOptimizer_get_version_info(self)
9743 
9744 
9745  def __str__(self):
9746  """__str__(_ConstOptimizer self) -> std::string"""
9747  return _IMP_kernel._ConstOptimizer___str__(self)
9748 
9749 
9750  def __repr__(self):
9751  """__repr__(_ConstOptimizer self) -> std::string"""
9752  return _IMP_kernel._ConstOptimizer___repr__(self)
9753 
9754 
9755  @staticmethod
9756  def get_from(o):
9757  return _object_cast_to__ConstOptimizer(o)
9758 
9759 _ConstOptimizer_swigregister = _IMP_kernel._ConstOptimizer_swigregister
9760 _ConstOptimizer_swigregister(_ConstOptimizer)
9761 
9762 
9763 def get_particle(p):
9764  """get_particle(Particle p) -> Particle"""
9765  return _IMP_kernel.get_particle(p)
9766 
9767 def _decorator_test(p):
9768  """_decorator_test(Particle p)"""
9769  return _IMP_kernel._decorator_test(p)
9770 
9771 def _overloaded_decorator(*args):
9772  """
9773  _overloaded_decorator(_TrivialDecorator a) -> int
9774  _overloaded_decorator(_TrivialDerivedDecorator a) -> int
9775  """
9776  return _IMP_kernel._overloaded_decorator(*args)
9777 
9778 def _take_particles(*args):
9779  """
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
9783  """
9784  return _IMP_kernel._take_particles(*args)
9785 
9786 def _give_particles(m):
9787  """_give_particles(Model m) -> IMP::Particles const &"""
9788  return _IMP_kernel._give_particles(m)
9789 
9790 def _pass_particles(ps):
9791  """_pass_particles(IMP::Particles const & ps) -> IMP::Particles const &"""
9792  return _IMP_kernel._pass_particles(ps)
9793 
9794 def _pass_particle(ps):
9795  """_pass_particle(Particle ps) -> Particle"""
9796  return _IMP_kernel._pass_particle(ps)
9797 
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)
9801 
9802 def _give_particles_copy(m):
9803  """_give_particles_copy(Model m) -> IMP::Particles"""
9804  return _IMP_kernel._give_particles_copy(m)
9805 
9806 def _pass_float_keys(input):
9807  """_pass_float_keys(IMP::FloatKeys const & input) -> IMP::FloatKeys"""
9808  return _IMP_kernel._pass_float_keys(input)
9809 
9810 def _pass(*args):
9811  """
9812  _pass(IMP::Particles const & p) -> IMP::Particles const
9813  _pass(IMP::Restraints const & p) -> IMP::Restraints const &
9814  """
9815  return _IMP_kernel._pass(*args)
9816 
9817 def _pass_decorators(p):
9818  """_pass_decorators(IMP::internal::_TrivialDecorators const & p) -> IMP::internal::_TrivialDecorators const &"""
9819  return _IMP_kernel._pass_decorators(p)
9820 
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)
9824 
9825 def _pass_particle_pairs(p):
9826  """_pass_particle_pairs(IMP::ParticlePairsTemp const & p) -> IMP::ParticlePairsTemp"""
9827  return _IMP_kernel._pass_particle_pairs(p)
9828 
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)
9832 
9833 def _pass_model_objects(p):
9834  """_pass_model_objects(IMP::ModelObjectsTemp const & p) -> IMP::ModelObjectsTemp"""
9835  return _IMP_kernel._pass_model_objects(p)
9836 
9837 def _pass_particles_temps(ps):
9838  """_pass_particles_temps(IMP::ParticlesTemps const & ps) -> IMP::ParticlesTemps"""
9839  return _IMP_kernel._pass_particles_temps(ps)
9840 
9841 def _test_overload(*args):
9842  """
9843  _test_overload(IMP::Particles const & ps) -> int
9844  _test_overload(IMP::Restraints const & ps) -> int
9845  """
9846  return _IMP_kernel._test_overload(*args)
9847 
9848 def _get_range(m, k):
9849  """_get_range(Model m, FloatKey k) -> IMP::FloatRange"""
9850  return _IMP_kernel._get_range(m, k)
9851 
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."""
9857 
9858  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
9859  __repr__ = _swig_repr
9860 
9861  def __init__(self):
9862  """__init__(IMP::internal::_LogPairScore self) -> _LogPairScore"""
9863  this = _IMP_kernel.new__LogPairScore()
9864  try:
9865  self.this.append(this)
9866  except __builtin__.Exception:
9867  self.this = this
9868 
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)
9872 
9873 
9874  def get_version_info(self):
9875  """get_version_info(_LogPairScore self) -> VersionInfo"""
9876  return _IMP_kernel._LogPairScore_get_version_info(self)
9877 
9878 
9879  def get_particle_pairs(self):
9880  """get_particle_pairs(_LogPairScore self) -> IMP::ParticlePairsTemp"""
9881  return _IMP_kernel._LogPairScore_get_particle_pairs(self)
9882 
9883 
9884  def clear(self):
9885  """clear(_LogPairScore self)"""
9886  return _IMP_kernel._LogPairScore_clear(self)
9887 
9888 
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)
9892 
9893 _LogPairScore_swigregister = _IMP_kernel._LogPairScore_swigregister
9894 _LogPairScore_swigregister(_LogPairScore)
9895 
9896 
9897 def _overloaded_particles(*args):
9898  """
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)
9905  """
9906  return _IMP_kernel._overloaded_particles(*args)
9907 class _ImplicitParticles(object):
9908  """Proxy of C++ IMP::internal::_ImplicitParticles class."""
9909 
9910  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
9911  __repr__ = _swig_repr
9912 
9913  def __init__(self, *args):
9914  """
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
9921  """
9922  this = _IMP_kernel.new__ImplicitParticles(*args)
9923  try:
9924  self.this.append(this)
9925  except __builtin__.Exception:
9926  self.this = this
9927  __swig_destroy__ = _IMP_kernel.delete__ImplicitParticles
9928  __del__ = lambda self: None
9929 _ImplicitParticles_swigregister = _IMP_kernel._ImplicitParticles_swigregister
9930 _ImplicitParticles_swigregister(_ImplicitParticles)
9931 
9932 
9933 def _implicit_particles(arg1):
9934  """_implicit_particles(_ImplicitParticles arg1)"""
9935  return _IMP_kernel._implicit_particles(arg1)
9936 
9937 def _take_particle_adaptor(pa):
9938  """_take_particle_adaptor(_ParticleAdaptor pa) -> ParticleIndex"""
9939  return _IMP_kernel._take_particle_adaptor(pa)
9940 
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."""
9946 
9947  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
9948 
9949  def __init__(self, *args):
9950  """
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
9953  """
9954  this = _IMP_kernel.new_ScopedSetFloatAttribute(*args)
9955  try:
9956  self.this.append(this)
9957  except __builtin__.Exception:
9958  self.this = this
9959 
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)
9963 
9964 
9965  def reset(self):
9966  """reset(ScopedSetFloatAttribute self)"""
9967  return _IMP_kernel.ScopedSetFloatAttribute_reset(self)
9968 
9969  __swig_destroy__ = _IMP_kernel.delete_ScopedSetFloatAttribute
9970  __del__ = lambda self: None
9971 
9972  def show(self, *args):
9973  """
9974  show(ScopedSetFloatAttribute self, _ostream out)
9975  show(ScopedSetFloatAttribute self)
9976  """
9977  return _IMP_kernel.ScopedSetFloatAttribute_show(self, *args)
9978 
9979 
9980  def __str__(self):
9981  """__str__(ScopedSetFloatAttribute self) -> std::string"""
9982  return _IMP_kernel.ScopedSetFloatAttribute___str__(self)
9983 
9984 
9985  def __repr__(self):
9986  """__repr__(ScopedSetFloatAttribute self) -> std::string"""
9987  return _IMP_kernel.ScopedSetFloatAttribute___repr__(self)
9988 
9989 ScopedSetFloatAttribute_swigregister = _IMP_kernel.ScopedSetFloatAttribute_swigregister
9990 ScopedSetFloatAttribute_swigregister(ScopedSetFloatAttribute)
9991 
9992 
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)
9996 
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)
10000 
10001 #used_modules=[]
10002 #def show_used_modules():
10003 # for m in used_modules:
10004 # print "%-20s %s" % (m.get_module(), m.get_version())
10005 
10006 # Ensure that Windows gets the PATH set to include anything in the library
10007 # search path
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(";")
10011  for d in dirs:
10012  if d not in pathcomps:
10013  os.environ['PATH'] = d + ';' + os.environ['PATH']
10014 
10015 
10016 
10017 import sys
10018 import os
10019 
10020 class CommandDispatcher(object):
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).
10029 
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.
10040 
10041  See the `multifit` and `cnmultifit` command line tools for example
10042  usage.
10043  """
10044 
10045  def __init__(self, short_help, long_help, module_name):
10046  """Constructor.
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.
10051  """
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])
10057 
10058  def main(self):
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)
10062  else:
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])
10067  else:
10068  self.show_help()
10069  elif command == '--version':
10070  self.show_version()
10071  elif command in self._all_commands:
10072  self.do_command(command)
10073  else:
10074  self.unknown_command(command)
10075 
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, {}, {}, [''])
10081 
10082  def unknown_command(self, command):
10083  print("Unknown command: '%s'" % command)
10084  print("Use '%s help' for help." % self._progname)
10085  sys.exit(1)
10086 
10087  def _get_version(self):
10088  return self.import_module().get_module_version()
10089 
10090  def show_version(self):
10091  print(self._progname + ' ' + self._get_version())
10092 
10093  def show_help(self):
10094  ver = self._get_version()
10095  print("%s, version %s." % (self._progname, ver))
10096  print(self.long_help + """
10097 
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>.
10101 
10102 Usage: %s <command> [options] [args]
10103 
10104 Commands:""" % self._progname)
10105  commands = self._all_commands[:] + ['help']
10106  commands.sort()
10107  cmdlen = max([len(c) for c in commands])
10108  for c in commands:
10109  if c == 'help':
10110  doc = 'Get help on using %s.' % self._progname
10111  else:
10112  doc = self.import_module(c).__doc__ or "<no help>"
10113  c += ' ' * (cmdlen - len(c))
10114  print(' ' + c + ' ' + doc)
10115  print("""
10116 Use "%s help <command>" for detailed help on any command
10117  or "%s --version" to see the version number.""" % (self._progname,
10118  self._progname))
10119 
10120  def do_command(self, command):
10121  mod = self.import_module(command)
10122  sys.argv[0] = self._progname + ' ' + command
10123  del sys.argv[1]
10124  mod.main()
10125 
10126  def show_command_help(self, command):
10127  if command == 'help':
10128  self.show_help()
10129  elif command in self._all_commands or command == 'help':
10130  mod = self.import_module(command)
10131  sys.argv = [self._progname + ' ' + command, '--help']
10132  mod.main()
10133  else:
10134  self.unknown_command(command)
10135 
10136 
10137 
10138 
10139 def get_networkx_graph(ig):
10140  import networkx
10141  g = networkx.DiGraph()
10142  if len(ig.get_vertices()) == 0:
10143  return g
10144 
10145  class NodeWrapper:
10146 
10147  def __init__(self, p):
10148  self.p = p
10149 
10150  def __str__(self):
10151  return self.p.get_name()
10152 
10153  def __call__(self, name):
10154  return self.p.__call__(name)
10155 
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))
10164  return g
10165 
10166 
10167 def show_altgraph(g):
10168  def clean(name):
10169  try:
10170  n0 = name.get_name()
10171  except:
10172  n0 = str(name)
10173  n1 = str(n0).replace('"', '')
10174  n2 = n1.replace("\n", '')
10175  return n2
10176  import altgraph
10177  from altgraph import Graph, Dot
10178  graph = Graph.Graph()
10179  for i, v in enumerate(g.get_vertices()):
10180  graph.add_node(i) # , node_data=g.get_vertex_name(v)
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) # , graph_type="digraph"
10185  for i, v in enumerate(g.get_vertices()):
10186  dot.node_style(i, label=clean(g.get_vertex_name(v)))
10187  dot.display()
10188 
10189 
10190 def show_graphviz(g):
10191  tfn = create_temporary_file_name("graph", ".dot")
10192  tfon = create_temporary_file_name("graph", ".pdf")
10193  st = g.get_graphviz_string()
10194  open(tfn, "w").write(st)
10195  try:
10196  import subprocess
10197  except ImportError:
10198  import sys
10199  sys.stderr.write("Cannot run dot on Python 2.3 systems.\n")
10200  return
10201  try:
10202  print("running dot")
10203  sp = subprocess.Popen(["dot", "-Tpdf", tfn, "-o" + tfon])
10204  sp.wait()
10205  except:
10206  import sys
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")
10208  return
10209  import platform
10210  if platform.system() == "Darwin":
10211  cmd = ["open"]
10212  else:
10213  cmd = ["gv", "acroread", "xpdf"]
10214  success = False
10215  for c in cmd:
10216  print("launching viewer " + c)
10217  try:
10218  subprocess.check_call([c, tfon])
10219  success = True
10220  break
10221  except:
10222  pass
10223  if not success:
10224  print("Could not display file. It is saved at " + tfon)
10225  return tfon
10226 
10227 
10228 
10229 
10230 import functools
10231 import contextlib
10232 
10233 def deprecated_module(version, module, help_message):
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))
10239 
10240 def deprecated_object(version, help_message):
10241  """Python decorator to mark a class as deprecated.
10242  @see [deprecation support](@ref deprecation)."""
10243  def wrapper(obj):
10244  orig_init = obj.__init__
10245 # Don't try to copy __module__ since __init__ may not have it
10246 # (e.g. if we subclassed object but didn't override __init__)
10247  @functools.wraps(orig_init, ('__name__', '__doc__'))
10248  def __init__(obj, *args, **keys):
10249  handle_use_deprecated("Object %s is deprecated. %s\n"
10250  % (type(obj), help_message))
10251  orig_init(obj, *args, **keys)
10252  obj.__init__ = __init__
10253  return obj
10254  return wrapper
10255 
10256 def deprecated_method(version, help_message):
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):
10262  handle_use_deprecated("Method %s in %s is deprecated. %s\n"
10263  % (obj.__name__, type(cls), help_message))
10264  return obj(cls, *args, **keys)
10265  return wrapper
10266  return out_wrapper
10267 
10268 def deprecated_function(version, help_message):
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):
10274  handle_use_deprecated("Function %s is deprecated. %s\n"
10275  % (obj.__name__, help_message))
10276  return obj(*args, **keys)
10277  return wrapper
10278  return out_wrapper
10279 
10280 @contextlib.contextmanager
10281 def allow_deprecated(allow=True):
10282  """Context manager to temporarily allow (or disallow) deprecated code.
10283  @see [deprecation support](@ref deprecation)."""
10285  set_deprecation_exceptions(not allow)
10286  yield
10288 
10289 
10290 def _get_all_flags(ntokens):
10291  """_get_all_flags(unsigned int ntokens) -> IMP::Strings"""
10292  return _IMP_kernel._get_all_flags(ntokens)
10293 
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)
10297 
10298 
10299 try:
10300  import argparse
10301 except ImportError:
10302  from . import _compat_argparse as argparse
10303 import sys
10304 
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)
10309  if values != []:
10310  parser._boost_command_line.append(values)
10311 # Terminate processing immediately if necessary (otherwise argparse
10312 # may fail if we're missing positional arguments)
10313  if option_string in ('-h', '--help', '--help_advanced', '--version'):
10314  parser._handle_boost()
10315 
10316 
10317 class ArgumentParser(argparse.ArgumentParser):
10318  """IMP-specific subclass of argparse.ArgumentParser.
10319  This adds options common to all IMP applications
10320  (see IMP::setup_from_argv()).
10321  """
10322 
10323  def __init__(self, *args, **kwargs):
10324 # Don't add --help option (since the Boost option parser handles it)
10325  kwargs['add_help'] = False
10326  super(ArgumentParser, self).__init__(*args, **kwargs)
10327  for ntoken in (0, 1):
10328  flags = _get_all_flags(ntoken)
10329  for f in flags:
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)
10335 
10336  def parse_args(self, args=None, namespace=None):
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()).
10343  @returns args
10344  """
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()
10349  return ret
10350 
10351  def _get_description(self):
10352  return self.format_help() + "\nOptions common to all IMP applications:"
10353 
10354  def print_help(self, file=None):
10355  _print_internal_help(file if file else sys.stdout,
10356  self._get_description())
10357 
10358  def _handle_boost(self):
10359  setup_from_argv(self._boost_command_line,
10360  self._get_description(),
10361  '==SUPPRESS==', 0)
10362 
10363 class RandomNumberGenerator(object):
10364  """Proxy of C++ IMP::RandomNumberGenerator class."""
10365 
10366  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
10367  __repr__ = _swig_repr
10368 
10369  def seed(self, x):
10370  """seed(RandomNumberGenerator self, ::boost::int32_t x)"""
10371  return _IMP_kernel.RandomNumberGenerator_seed(self, x)
10372 
10373 
10374  def __call__(self):
10375  """__call__(RandomNumberGenerator self) -> int"""
10376  return _IMP_kernel.RandomNumberGenerator___call__(self)
10377 
10378 
10379  def __init__(self):
10380  """__init__(IMP::RandomNumberGenerator self) -> RandomNumberGenerator"""
10381  this = _IMP_kernel.new_RandomNumberGenerator()
10382  try:
10383  self.this.append(this)
10384  except __builtin__.Exception:
10385  self.this = this
10386  __swig_destroy__ = _IMP_kernel.delete_RandomNumberGenerator
10387  __del__ = lambda self: None
10388 RandomNumberGenerator_swigregister = _IMP_kernel.RandomNumberGenerator_swigregister
10389 RandomNumberGenerator_swigregister(RandomNumberGenerator)
10390 
10391 
10392 def get_random_float_uniform(*args):
10393  """
10394  get_random_float_uniform() -> float
10395  get_random_float_uniform(float min, float max) -> float
10396  """
10397  return _IMP_kernel.get_random_float_uniform(*args)
10398 
10399 def get_random_double_uniform(*args):
10400  """
10401  get_random_double_uniform() -> double
10402  get_random_double_uniform(double min, double max) -> double
10403  """
10404  return _IMP_kernel.get_random_double_uniform(*args)
10405 
10406 def get_random_floats_normal(n, mean=0.0, stddev=1.0):
10407  """
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 >
10411  """
10412  return _IMP_kernel.get_random_floats_normal(n, mean, stddev)
10413 
10414 def get_random_doubles_normal(n, mean=0.0, stddev=1.0):
10415  """
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 >
10419  """
10420  return _IMP_kernel.get_random_doubles_normal(n, mean, stddev)
10421 
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)
10425 
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)
10429 
10430 def get_random_seed():
10431  """get_random_seed() -> boost::uint64_t"""
10432  return _IMP_kernel.get_random_seed()
10433 
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)
10437 
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)
10441 
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)
10445 
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)
10449 
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)
10453 
10454 def get_module_version():
10455  """get_module_version() -> std::string const"""
10456  return _IMP_kernel.get_module_version()
10457 
10458 def get_example_path(fname):
10459  """get_example_path(std::string fname) -> std::string"""
10460  return _IMP_kernel.get_example_path(fname)
10461 
10462 def get_data_path(fname):
10463  """get_data_path(std::string fname) -> std::string"""
10464  return _IMP_kernel.get_data_path(fname)
10465 
10466 from . import _version_check
10467 _version_check.check_version(get_module_version())
10468 __version__ = get_module_version()
10469 
10470 
10471 random_number_generator = cvar.random_number_generator
10472 
void add_int_flag(std::string name, size_t default_value, std::string description)
Allow command line tools to easily implement multiple commands.
Definition: __init__.py:10020
CheckLevel get_check_level()
Get the current audit mode.
Definition: exception.h:81
bool get_is_quick_test()
Definition: flags.h:183
Key< 0 > FloatKey
The type used to identify float attributes in the Particles.
Definition: base_types.h:32
def allow_deprecated
Context manager to temporarily allow (or disallow) deprecated code.
Definition: __init__.py:10280
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.
Definition: __init__.py:10058
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.
Definition: __init__.py:10233
Vector< VectorD< D > > get_vertices(const BoundingBoxD< D > &bb)
Return a list of the 2^D bounding points for the bounding box.
Definition: BoundingBoxD.h:274
Array< 4, WeakPointer< Particle >, Particle * > ParticleQuad
Definition: base_types.h:148
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.
Definition: __init__.py:10268
Index< ParticleIndexTag > ParticleIndex
Definition: base_types.h:158
ParticlesTemp get_particles(Model *m, const ParticleIndexes &ps)
Key< 6 > ParticleIndexesKey
The type used to identify a particle attribute in the Particles.
Definition: base_types.h:64
Array< 3, WeakPointer< Particle >, Particle * > ParticleTriplet
Definition: base_types.h:145
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.
Definition: log.h:92
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())
Definition: generic.h:23
void write_help(std::ostream &out=std::cerr)
Key< 2 > StringKey
The type used to identify string attributes in the Particles.
Definition: base_types.h:40
size_t get_int_flag(std::string name)
Key< 10 > FloatsKey
The type used to identify float vector attributes in the Particles.
Definition: base_types.h:60
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.
Definition: base_types.h:44
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.
Definition: __init__.py:10256
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.
Definition: __init__.py:10336
Key< 1 > IntKey
The type used to identify int attributes in the Particles.
Definition: base_types.h:36
Version and module information for Objects.
Definition: VersionInfo.h:28
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.
Definition: base_types.h:48
IMP-specific subclass of argparse.ArgumentParser.
Definition: __init__.py:10317
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)
Definition: random_utils.h:129
def deprecated_object
Python decorator to mark a class as deprecated.
Definition: __init__.py:10240
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
Definition: base_types.h:139
Key< 5 > IntsKey
The type used to identify int attributes in the Particles.
Definition: base_types.h:56
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)
def __init__
Constructor.
Definition: __init__.py:10045
double get_random_double_uniform()
Return a uniformly distributed double number in range [0..1)
Definition: random_utils.h:161
Key< 8 > ModelKey
The type used to identify data stored directly in the model.
Definition: base_types.h:78
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.
Definition: exception.h:73
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.