IMP logo
IMP Reference Guide  2.13.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 IntKeys=list
1837 _plural_types.append("IntKeys")
1838 _value_types.append("IntKey")
1839 
1840 
1841 StringKeys=list
1842 _plural_types.append("StringKeys")
1843 _value_types.append("StringKey")
1844 
1845 
1846 ParticleIndexKeys=list
1847 _plural_types.append("ParticleIndexKeys")
1848 _value_types.append("ParticleIndexKey")
1849 
1850 
1851 ParticleIndexesKeys=list
1852 _plural_types.append("ParticleIndexesKeys")
1853 _value_types.append("ParticleIndexesKey")
1854 
1855 
1856 ObjectKeys=list
1857 _plural_types.append("ObjectKeys")
1858 _value_types.append("ObjectKey")
1859 
1860 
1861 ModelKeys=list
1862 _plural_types.append("ModelKeys")
1863 _value_types.append("ModelKey")
1864 
1865 
1866 _raii_types.append("ScopedSetFloatAttribute")
1867 
1868 
1869 _object_types.append("ScoringFunction")
1870 
1871 
1872 def _object_cast_to_ScoringFunction(o):
1873  """_object_cast_to_ScoringFunction(Object o) -> ScoringFunction"""
1874  return _IMP_kernel._object_cast_to_ScoringFunction(o)
1875 
1876 _object_types.append("ModelObject")
1877 
1878 
1879 def _object_cast_to_ModelObject(o):
1880  """_object_cast_to_ModelObject(Object o) -> ModelObject"""
1881  return _IMP_kernel._object_cast_to_ModelObject(o)
1882 
1883 def _TrivialDecorators(l=[]):
1884  return [_TrivialDecorator(x) for x in l]
1885 _plural_types.append("_TrivialDecorators")
1886 
1887 
1888 _value_types.append("_TrivialDecorator")
1889 
1890 
1891 def _TrivialDerivedDecorators(l=[]):
1892  return [_TrivialDerivedDecorator(x) for x in l]
1893 _plural_types.append("_TrivialDerivedDecorators")
1894 
1895 
1896 _value_types.append("_TrivialDerivedDecorator")
1897 
1898 
1899 def _TrivialTraitsDecorators(l=[]):
1900  return [_TrivialTraitsDecorator(x) for x in l]
1901 _plural_types.append("_TrivialTraitsDecorators")
1902 
1903 
1904 _value_types.append("_TrivialTraitsDecorator")
1905 
1906 
1907 _object_types.append("_ConstRestraint")
1908 
1909 
1910 def _object_cast_to__ConstRestraint(o):
1911  """_object_cast_to__ConstRestraint(Object o) -> _ConstRestraint"""
1912  return _IMP_kernel._object_cast_to__ConstRestraint(o)
1913 
1914 _object_types.append("_ConstOptimizer")
1915 
1916 
1917 def _object_cast_to__ConstOptimizer(o):
1918  """_object_cast_to__ConstOptimizer(Object o) -> _ConstOptimizer"""
1919  return _IMP_kernel._object_cast_to__ConstOptimizer(o)
1920 class DependencyGraph(Object):
1921  """Proxy of C++ IMP::internal::BoostDigraph<(IMP::DependencyGraph,p.IMP::ModelObject,IMP::ShowDependencyGraphVertex)> class."""
1922 
1923  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1924  __repr__ = _swig_repr
1925 
1926  def __init__(self):
1927  """__init__(IMP::internal::BoostDigraph<(IMP::DependencyGraph,p.IMP::ModelObject,IMP::ShowDependencyGraphVertex)> self) -> DependencyGraph"""
1928  this = _IMP_kernel.new_DependencyGraph()
1929  try:
1930  self.this.append(this)
1931  except __builtin__.Exception:
1932  self.this = this
1933 
1934  def get_graph(self):
1935  """get_graph(DependencyGraph self) -> IMP::DependencyGraph const &"""
1936  return _IMP_kernel.DependencyGraph_get_graph(self)
1937 
1938 
1939  def get_vertices(self):
1940  """get_vertices(DependencyGraph self) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptors"""
1941  return _IMP_kernel.DependencyGraph_get_vertices(self)
1942 
1943 
1944  def get_vertex_name(self, i):
1945  """get_vertex_name(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor i) -> ModelObject"""
1946  return _IMP_kernel.DependencyGraph_get_vertex_name(self, i)
1947 
1948 
1949  def get_in_neighbors(self, v):
1950  """get_in_neighbors(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor v) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptors"""
1951  return _IMP_kernel.DependencyGraph_get_in_neighbors(self, v)
1952 
1953 
1954  def get_out_neighbors(self, v):
1955  """get_out_neighbors(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor v) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptors"""
1956  return _IMP_kernel.DependencyGraph_get_out_neighbors(self, v)
1957 
1958 
1959  def show_graphviz(self, *args):
1960  """
1961  show_graphviz(DependencyGraph self, _ostream out)
1962  show_graphviz(DependencyGraph self)
1963  """
1964  return _IMP_kernel.DependencyGraph_show_graphviz(self, *args)
1965 
1966 
1967  def get_graphviz_string(self):
1968  """get_graphviz_string(DependencyGraph self) -> std::string"""
1969  return _IMP_kernel.DependencyGraph_get_graphviz_string(self)
1970 
1971 
1972  def add_edge(self, v0, v1):
1973  """add_edge(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor v0, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor v1)"""
1974  return _IMP_kernel.DependencyGraph_add_edge(self, v0, v1)
1975 
1976 
1977  def add_vertex(self, l):
1978  """add_vertex(DependencyGraph self, ModelObject l) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor"""
1979  return _IMP_kernel.DependencyGraph_add_vertex(self, l)
1980 
1981 
1982  def remove_vertex(self, l):
1983  """remove_vertex(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor l)"""
1984  return _IMP_kernel.DependencyGraph_remove_vertex(self, l)
1985 
1986  __swig_destroy__ = _IMP_kernel.delete_DependencyGraph
1987  __del__ = lambda self: None
1988 DependencyGraph_swigregister = _IMP_kernel.DependencyGraph_swigregister
1989 DependencyGraph_swigregister(DependencyGraph)
1990 
1991 
1992 _value_types.append("DependencyGraph")
1993 
1994 class FloatKey(_Value):
1995  """Proxy of C++ IMP::Key<(0)> class."""
1996 
1997  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1998 
1999  def __init__(self, *args):
2000  """
2001  __init__(IMP::Key<(0)> self) -> FloatKey
2002  __init__(IMP::Key<(0)> self, std::string const & c, bool is_implicit_add_permitted=True) -> FloatKey
2003  __init__(IMP::Key<(0)> self, std::string const & c) -> FloatKey
2004  __init__(IMP::Key<(0)> self, unsigned int i) -> FloatKey
2005  """
2006  this = _IMP_kernel.new_FloatKey(*args)
2007  try:
2008  self.this.append(this)
2009  except __builtin__.Exception:
2010  self.this = this
2011 
2012  def add_key(sc):
2013  """add_key(std::string sc) -> unsigned int"""
2014  return _IMP_kernel.FloatKey_add_key(sc)
2015 
2016  add_key = staticmethod(add_key)
2017 
2018  def get_key_exists(sc):
2019  """get_key_exists(std::string sc) -> bool"""
2020  return _IMP_kernel.FloatKey_get_key_exists(sc)
2021 
2022  get_key_exists = staticmethod(get_key_exists)
2023 
2024  def get_string(self):
2025  """get_string(FloatKey self) -> std::string const"""
2026  return _IMP_kernel.FloatKey_get_string(self)
2027 
2028 
2029  def __cmp__(self, o):
2030  """__cmp__(FloatKey self, FloatKey o) -> int"""
2031  return _IMP_kernel.FloatKey___cmp__(self, o)
2032 
2033 
2034  def __eq__(self, o):
2035  """__eq__(FloatKey self, FloatKey o) -> bool"""
2036  return _IMP_kernel.FloatKey___eq__(self, o)
2037 
2038 
2039  def __ne__(self, o):
2040  """__ne__(FloatKey self, FloatKey o) -> bool"""
2041  return _IMP_kernel.FloatKey___ne__(self, o)
2042 
2043 
2044  def __lt__(self, o):
2045  """__lt__(FloatKey self, FloatKey o) -> bool"""
2046  return _IMP_kernel.FloatKey___lt__(self, o)
2047 
2048 
2049  def __gt__(self, o):
2050  """__gt__(FloatKey self, FloatKey o) -> bool"""
2051  return _IMP_kernel.FloatKey___gt__(self, o)
2052 
2053 
2054  def __ge__(self, o):
2055  """__ge__(FloatKey self, FloatKey o) -> bool"""
2056  return _IMP_kernel.FloatKey___ge__(self, o)
2057 
2058 
2059  def __le__(self, o):
2060  """__le__(FloatKey self, FloatKey o) -> bool"""
2061  return _IMP_kernel.FloatKey___le__(self, o)
2062 
2063 
2064  def __hash__(self):
2065  """__hash__(FloatKey self) -> std::size_t"""
2066  return _IMP_kernel.FloatKey___hash__(self)
2067 
2068 
2069  def show(self, *args):
2070  """
2071  show(FloatKey self, _ostream out)
2072  show(FloatKey self)
2073  """
2074  return _IMP_kernel.FloatKey_show(self, *args)
2075 
2076 
2077  def add_alias(old_key, new_name):
2078  """add_alias(FloatKey old_key, std::string new_name) -> FloatKey"""
2079  return _IMP_kernel.FloatKey_add_alias(old_key, new_name)
2080 
2081  add_alias = staticmethod(add_alias)
2082 
2083  def get_number_of_keys():
2084  """get_number_of_keys() -> unsigned int"""
2085  return _IMP_kernel.FloatKey_get_number_of_keys()
2086 
2087  get_number_of_keys = staticmethod(get_number_of_keys)
2088 
2089  def get_index(self):
2090  """get_index(FloatKey self) -> unsigned int"""
2091  return _IMP_kernel.FloatKey_get_index(self)
2092 
2093 
2094  def show_all(out):
2095  """show_all(_ostream out)"""
2096  return _IMP_kernel.FloatKey_show_all(out)
2097 
2098  show_all = staticmethod(show_all)
2099 
2100  def get_all_strings():
2101  """get_all_strings() -> IMP::Vector< std::string >"""
2102  return _IMP_kernel.FloatKey_get_all_strings()
2103 
2104  get_all_strings = staticmethod(get_all_strings)
2105 
2106  def get_number_unique():
2107  """get_number_unique() -> unsigned int"""
2108  return _IMP_kernel.FloatKey_get_number_unique()
2109 
2110  get_number_unique = staticmethod(get_number_unique)
2111 
2112  def __str__(self):
2113  """__str__(FloatKey self) -> std::string"""
2114  return _IMP_kernel.FloatKey___str__(self)
2115 
2116 
2117  def __repr__(self):
2118  """__repr__(FloatKey self) -> std::string"""
2119  return _IMP_kernel.FloatKey___repr__(self)
2120 
2121  __swig_destroy__ = _IMP_kernel.delete_FloatKey
2122  __del__ = lambda self: None
2123 FloatKey_swigregister = _IMP_kernel.FloatKey_swigregister
2124 FloatKey_swigregister(FloatKey)
2125 
2126 def FloatKey_add_key(sc):
2127  """FloatKey_add_key(std::string sc) -> unsigned int"""
2128  return _IMP_kernel.FloatKey_add_key(sc)
2129 
2130 def FloatKey_get_key_exists(sc):
2131  """FloatKey_get_key_exists(std::string sc) -> bool"""
2132  return _IMP_kernel.FloatKey_get_key_exists(sc)
2133 
2134 def FloatKey_add_alias(old_key, new_name):
2135  """FloatKey_add_alias(FloatKey old_key, std::string new_name) -> FloatKey"""
2136  return _IMP_kernel.FloatKey_add_alias(old_key, new_name)
2137 
2138 def FloatKey_get_number_of_keys():
2139  """FloatKey_get_number_of_keys() -> unsigned int"""
2140  return _IMP_kernel.FloatKey_get_number_of_keys()
2141 
2142 def FloatKey_show_all(out):
2143  """FloatKey_show_all(_ostream out)"""
2144  return _IMP_kernel.FloatKey_show_all(out)
2145 
2146 def FloatKey_get_all_strings():
2147  """FloatKey_get_all_strings() -> IMP::Vector< std::string >"""
2148  return _IMP_kernel.FloatKey_get_all_strings()
2149 
2150 def FloatKey_get_number_unique():
2151  """FloatKey_get_number_unique() -> unsigned int"""
2152  return _IMP_kernel.FloatKey_get_number_unique()
2153 
2154 class IntKey(_Value):
2155  """Proxy of C++ IMP::Key<(1)> class."""
2156 
2157  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2158 
2159  def __init__(self, *args):
2160  """
2161  __init__(IMP::Key<(1)> self) -> IntKey
2162  __init__(IMP::Key<(1)> self, std::string const & c, bool is_implicit_add_permitted=True) -> IntKey
2163  __init__(IMP::Key<(1)> self, std::string const & c) -> IntKey
2164  __init__(IMP::Key<(1)> self, unsigned int i) -> IntKey
2165  """
2166  this = _IMP_kernel.new_IntKey(*args)
2167  try:
2168  self.this.append(this)
2169  except __builtin__.Exception:
2170  self.this = this
2171 
2172  def add_key(sc):
2173  """add_key(std::string sc) -> unsigned int"""
2174  return _IMP_kernel.IntKey_add_key(sc)
2175 
2176  add_key = staticmethod(add_key)
2177 
2178  def get_key_exists(sc):
2179  """get_key_exists(std::string sc) -> bool"""
2180  return _IMP_kernel.IntKey_get_key_exists(sc)
2181 
2182  get_key_exists = staticmethod(get_key_exists)
2183 
2184  def get_string(self):
2185  """get_string(IntKey self) -> std::string const"""
2186  return _IMP_kernel.IntKey_get_string(self)
2187 
2188 
2189  def __cmp__(self, o):
2190  """__cmp__(IntKey self, IntKey o) -> int"""
2191  return _IMP_kernel.IntKey___cmp__(self, o)
2192 
2193 
2194  def __eq__(self, o):
2195  """__eq__(IntKey self, IntKey o) -> bool"""
2196  return _IMP_kernel.IntKey___eq__(self, o)
2197 
2198 
2199  def __ne__(self, o):
2200  """__ne__(IntKey self, IntKey o) -> bool"""
2201  return _IMP_kernel.IntKey___ne__(self, o)
2202 
2203 
2204  def __lt__(self, o):
2205  """__lt__(IntKey self, IntKey o) -> bool"""
2206  return _IMP_kernel.IntKey___lt__(self, o)
2207 
2208 
2209  def __gt__(self, o):
2210  """__gt__(IntKey self, IntKey o) -> bool"""
2211  return _IMP_kernel.IntKey___gt__(self, o)
2212 
2213 
2214  def __ge__(self, o):
2215  """__ge__(IntKey self, IntKey o) -> bool"""
2216  return _IMP_kernel.IntKey___ge__(self, o)
2217 
2218 
2219  def __le__(self, o):
2220  """__le__(IntKey self, IntKey o) -> bool"""
2221  return _IMP_kernel.IntKey___le__(self, o)
2222 
2223 
2224  def __hash__(self):
2225  """__hash__(IntKey self) -> std::size_t"""
2226  return _IMP_kernel.IntKey___hash__(self)
2227 
2228 
2229  def show(self, *args):
2230  """
2231  show(IntKey self, _ostream out)
2232  show(IntKey self)
2233  """
2234  return _IMP_kernel.IntKey_show(self, *args)
2235 
2236 
2237  def add_alias(old_key, new_name):
2238  """add_alias(IntKey old_key, std::string new_name) -> IntKey"""
2239  return _IMP_kernel.IntKey_add_alias(old_key, new_name)
2240 
2241  add_alias = staticmethod(add_alias)
2242 
2243  def get_number_of_keys():
2244  """get_number_of_keys() -> unsigned int"""
2245  return _IMP_kernel.IntKey_get_number_of_keys()
2246 
2247  get_number_of_keys = staticmethod(get_number_of_keys)
2248 
2249  def get_index(self):
2250  """get_index(IntKey self) -> unsigned int"""
2251  return _IMP_kernel.IntKey_get_index(self)
2252 
2253 
2254  def show_all(out):
2255  """show_all(_ostream out)"""
2256  return _IMP_kernel.IntKey_show_all(out)
2257 
2258  show_all = staticmethod(show_all)
2259 
2260  def get_all_strings():
2261  """get_all_strings() -> IMP::Vector< std::string >"""
2262  return _IMP_kernel.IntKey_get_all_strings()
2263 
2264  get_all_strings = staticmethod(get_all_strings)
2265 
2266  def get_number_unique():
2267  """get_number_unique() -> unsigned int"""
2268  return _IMP_kernel.IntKey_get_number_unique()
2269 
2270  get_number_unique = staticmethod(get_number_unique)
2271 
2272  def __str__(self):
2273  """__str__(IntKey self) -> std::string"""
2274  return _IMP_kernel.IntKey___str__(self)
2275 
2276 
2277  def __repr__(self):
2278  """__repr__(IntKey self) -> std::string"""
2279  return _IMP_kernel.IntKey___repr__(self)
2280 
2281  __swig_destroy__ = _IMP_kernel.delete_IntKey
2282  __del__ = lambda self: None
2283 IntKey_swigregister = _IMP_kernel.IntKey_swigregister
2284 IntKey_swigregister(IntKey)
2285 
2286 def IntKey_add_key(sc):
2287  """IntKey_add_key(std::string sc) -> unsigned int"""
2288  return _IMP_kernel.IntKey_add_key(sc)
2289 
2290 def IntKey_get_key_exists(sc):
2291  """IntKey_get_key_exists(std::string sc) -> bool"""
2292  return _IMP_kernel.IntKey_get_key_exists(sc)
2293 
2294 def IntKey_add_alias(old_key, new_name):
2295  """IntKey_add_alias(IntKey old_key, std::string new_name) -> IntKey"""
2296  return _IMP_kernel.IntKey_add_alias(old_key, new_name)
2297 
2298 def IntKey_get_number_of_keys():
2299  """IntKey_get_number_of_keys() -> unsigned int"""
2300  return _IMP_kernel.IntKey_get_number_of_keys()
2301 
2302 def IntKey_show_all(out):
2303  """IntKey_show_all(_ostream out)"""
2304  return _IMP_kernel.IntKey_show_all(out)
2305 
2306 def IntKey_get_all_strings():
2307  """IntKey_get_all_strings() -> IMP::Vector< std::string >"""
2308  return _IMP_kernel.IntKey_get_all_strings()
2309 
2310 def IntKey_get_number_unique():
2311  """IntKey_get_number_unique() -> unsigned int"""
2312  return _IMP_kernel.IntKey_get_number_unique()
2313 
2314 class StringKey(_Value):
2315  """Proxy of C++ IMP::Key<(2)> class."""
2316 
2317  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2318 
2319  def __init__(self, *args):
2320  """
2321  __init__(IMP::Key<(2)> self) -> StringKey
2322  __init__(IMP::Key<(2)> self, std::string const & c, bool is_implicit_add_permitted=True) -> StringKey
2323  __init__(IMP::Key<(2)> self, std::string const & c) -> StringKey
2324  __init__(IMP::Key<(2)> self, unsigned int i) -> StringKey
2325  """
2326  this = _IMP_kernel.new_StringKey(*args)
2327  try:
2328  self.this.append(this)
2329  except __builtin__.Exception:
2330  self.this = this
2331 
2332  def add_key(sc):
2333  """add_key(std::string sc) -> unsigned int"""
2334  return _IMP_kernel.StringKey_add_key(sc)
2335 
2336  add_key = staticmethod(add_key)
2337 
2338  def get_key_exists(sc):
2339  """get_key_exists(std::string sc) -> bool"""
2340  return _IMP_kernel.StringKey_get_key_exists(sc)
2341 
2342  get_key_exists = staticmethod(get_key_exists)
2343 
2344  def get_string(self):
2345  """get_string(StringKey self) -> std::string const"""
2346  return _IMP_kernel.StringKey_get_string(self)
2347 
2348 
2349  def __cmp__(self, o):
2350  """__cmp__(StringKey self, StringKey o) -> int"""
2351  return _IMP_kernel.StringKey___cmp__(self, o)
2352 
2353 
2354  def __eq__(self, o):
2355  """__eq__(StringKey self, StringKey o) -> bool"""
2356  return _IMP_kernel.StringKey___eq__(self, o)
2357 
2358 
2359  def __ne__(self, o):
2360  """__ne__(StringKey self, StringKey o) -> bool"""
2361  return _IMP_kernel.StringKey___ne__(self, o)
2362 
2363 
2364  def __lt__(self, o):
2365  """__lt__(StringKey self, StringKey o) -> bool"""
2366  return _IMP_kernel.StringKey___lt__(self, o)
2367 
2368 
2369  def __gt__(self, o):
2370  """__gt__(StringKey self, StringKey o) -> bool"""
2371  return _IMP_kernel.StringKey___gt__(self, o)
2372 
2373 
2374  def __ge__(self, o):
2375  """__ge__(StringKey self, StringKey o) -> bool"""
2376  return _IMP_kernel.StringKey___ge__(self, o)
2377 
2378 
2379  def __le__(self, o):
2380  """__le__(StringKey self, StringKey o) -> bool"""
2381  return _IMP_kernel.StringKey___le__(self, o)
2382 
2383 
2384  def __hash__(self):
2385  """__hash__(StringKey self) -> std::size_t"""
2386  return _IMP_kernel.StringKey___hash__(self)
2387 
2388 
2389  def show(self, *args):
2390  """
2391  show(StringKey self, _ostream out)
2392  show(StringKey self)
2393  """
2394  return _IMP_kernel.StringKey_show(self, *args)
2395 
2396 
2397  def add_alias(old_key, new_name):
2398  """add_alias(StringKey old_key, std::string new_name) -> StringKey"""
2399  return _IMP_kernel.StringKey_add_alias(old_key, new_name)
2400 
2401  add_alias = staticmethod(add_alias)
2402 
2403  def get_number_of_keys():
2404  """get_number_of_keys() -> unsigned int"""
2405  return _IMP_kernel.StringKey_get_number_of_keys()
2406 
2407  get_number_of_keys = staticmethod(get_number_of_keys)
2408 
2409  def get_index(self):
2410  """get_index(StringKey self) -> unsigned int"""
2411  return _IMP_kernel.StringKey_get_index(self)
2412 
2413 
2414  def show_all(out):
2415  """show_all(_ostream out)"""
2416  return _IMP_kernel.StringKey_show_all(out)
2417 
2418  show_all = staticmethod(show_all)
2419 
2420  def get_all_strings():
2421  """get_all_strings() -> IMP::Vector< std::string >"""
2422  return _IMP_kernel.StringKey_get_all_strings()
2423 
2424  get_all_strings = staticmethod(get_all_strings)
2425 
2426  def get_number_unique():
2427  """get_number_unique() -> unsigned int"""
2428  return _IMP_kernel.StringKey_get_number_unique()
2429 
2430  get_number_unique = staticmethod(get_number_unique)
2431 
2432  def __str__(self):
2433  """__str__(StringKey self) -> std::string"""
2434  return _IMP_kernel.StringKey___str__(self)
2435 
2436 
2437  def __repr__(self):
2438  """__repr__(StringKey self) -> std::string"""
2439  return _IMP_kernel.StringKey___repr__(self)
2440 
2441  __swig_destroy__ = _IMP_kernel.delete_StringKey
2442  __del__ = lambda self: None
2443 StringKey_swigregister = _IMP_kernel.StringKey_swigregister
2444 StringKey_swigregister(StringKey)
2445 
2446 def StringKey_add_key(sc):
2447  """StringKey_add_key(std::string sc) -> unsigned int"""
2448  return _IMP_kernel.StringKey_add_key(sc)
2449 
2450 def StringKey_get_key_exists(sc):
2451  """StringKey_get_key_exists(std::string sc) -> bool"""
2452  return _IMP_kernel.StringKey_get_key_exists(sc)
2453 
2454 def StringKey_add_alias(old_key, new_name):
2455  """StringKey_add_alias(StringKey old_key, std::string new_name) -> StringKey"""
2456  return _IMP_kernel.StringKey_add_alias(old_key, new_name)
2457 
2458 def StringKey_get_number_of_keys():
2459  """StringKey_get_number_of_keys() -> unsigned int"""
2460  return _IMP_kernel.StringKey_get_number_of_keys()
2461 
2462 def StringKey_show_all(out):
2463  """StringKey_show_all(_ostream out)"""
2464  return _IMP_kernel.StringKey_show_all(out)
2465 
2466 def StringKey_get_all_strings():
2467  """StringKey_get_all_strings() -> IMP::Vector< std::string >"""
2468  return _IMP_kernel.StringKey_get_all_strings()
2469 
2470 def StringKey_get_number_unique():
2471  """StringKey_get_number_unique() -> unsigned int"""
2472  return _IMP_kernel.StringKey_get_number_unique()
2473 
2474 class ParticleIndexKey(_Value):
2475  """Proxy of C++ IMP::Key<(3)> class."""
2476 
2477  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2478 
2479  def __init__(self, *args):
2480  """
2481  __init__(IMP::Key<(3)> self) -> ParticleIndexKey
2482  __init__(IMP::Key<(3)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleIndexKey
2483  __init__(IMP::Key<(3)> self, std::string const & c) -> ParticleIndexKey
2484  __init__(IMP::Key<(3)> self, unsigned int i) -> ParticleIndexKey
2485  """
2486  this = _IMP_kernel.new_ParticleIndexKey(*args)
2487  try:
2488  self.this.append(this)
2489  except __builtin__.Exception:
2490  self.this = this
2491 
2492  def add_key(sc):
2493  """add_key(std::string sc) -> unsigned int"""
2494  return _IMP_kernel.ParticleIndexKey_add_key(sc)
2495 
2496  add_key = staticmethod(add_key)
2497 
2498  def get_key_exists(sc):
2499  """get_key_exists(std::string sc) -> bool"""
2500  return _IMP_kernel.ParticleIndexKey_get_key_exists(sc)
2501 
2502  get_key_exists = staticmethod(get_key_exists)
2503 
2504  def get_string(self):
2505  """get_string(ParticleIndexKey self) -> std::string const"""
2506  return _IMP_kernel.ParticleIndexKey_get_string(self)
2507 
2508 
2509  def __cmp__(self, o):
2510  """__cmp__(ParticleIndexKey self, ParticleIndexKey o) -> int"""
2511  return _IMP_kernel.ParticleIndexKey___cmp__(self, o)
2512 
2513 
2514  def __eq__(self, o):
2515  """__eq__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2516  return _IMP_kernel.ParticleIndexKey___eq__(self, o)
2517 
2518 
2519  def __ne__(self, o):
2520  """__ne__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2521  return _IMP_kernel.ParticleIndexKey___ne__(self, o)
2522 
2523 
2524  def __lt__(self, o):
2525  """__lt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2526  return _IMP_kernel.ParticleIndexKey___lt__(self, o)
2527 
2528 
2529  def __gt__(self, o):
2530  """__gt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2531  return _IMP_kernel.ParticleIndexKey___gt__(self, o)
2532 
2533 
2534  def __ge__(self, o):
2535  """__ge__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2536  return _IMP_kernel.ParticleIndexKey___ge__(self, o)
2537 
2538 
2539  def __le__(self, o):
2540  """__le__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2541  return _IMP_kernel.ParticleIndexKey___le__(self, o)
2542 
2543 
2544  def __hash__(self):
2545  """__hash__(ParticleIndexKey self) -> std::size_t"""
2546  return _IMP_kernel.ParticleIndexKey___hash__(self)
2547 
2548 
2549  def show(self, *args):
2550  """
2551  show(ParticleIndexKey self, _ostream out)
2552  show(ParticleIndexKey self)
2553  """
2554  return _IMP_kernel.ParticleIndexKey_show(self, *args)
2555 
2556 
2557  def add_alias(old_key, new_name):
2558  """add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
2559  return _IMP_kernel.ParticleIndexKey_add_alias(old_key, new_name)
2560 
2561  add_alias = staticmethod(add_alias)
2562 
2563  def get_number_of_keys():
2564  """get_number_of_keys() -> unsigned int"""
2565  return _IMP_kernel.ParticleIndexKey_get_number_of_keys()
2566 
2567  get_number_of_keys = staticmethod(get_number_of_keys)
2568 
2569  def get_index(self):
2570  """get_index(ParticleIndexKey self) -> unsigned int"""
2571  return _IMP_kernel.ParticleIndexKey_get_index(self)
2572 
2573 
2574  def show_all(out):
2575  """show_all(_ostream out)"""
2576  return _IMP_kernel.ParticleIndexKey_show_all(out)
2577 
2578  show_all = staticmethod(show_all)
2579 
2580  def get_all_strings():
2581  """get_all_strings() -> IMP::Vector< std::string >"""
2582  return _IMP_kernel.ParticleIndexKey_get_all_strings()
2583 
2584  get_all_strings = staticmethod(get_all_strings)
2585 
2586  def get_number_unique():
2587  """get_number_unique() -> unsigned int"""
2588  return _IMP_kernel.ParticleIndexKey_get_number_unique()
2589 
2590  get_number_unique = staticmethod(get_number_unique)
2591 
2592  def __str__(self):
2593  """__str__(ParticleIndexKey self) -> std::string"""
2594  return _IMP_kernel.ParticleIndexKey___str__(self)
2595 
2596 
2597  def __repr__(self):
2598  """__repr__(ParticleIndexKey self) -> std::string"""
2599  return _IMP_kernel.ParticleIndexKey___repr__(self)
2600 
2601  __swig_destroy__ = _IMP_kernel.delete_ParticleIndexKey
2602  __del__ = lambda self: None
2603 ParticleIndexKey_swigregister = _IMP_kernel.ParticleIndexKey_swigregister
2604 ParticleIndexKey_swigregister(ParticleIndexKey)
2605 
2606 def ParticleIndexKey_add_key(sc):
2607  """ParticleIndexKey_add_key(std::string sc) -> unsigned int"""
2608  return _IMP_kernel.ParticleIndexKey_add_key(sc)
2609 
2610 def ParticleIndexKey_get_key_exists(sc):
2611  """ParticleIndexKey_get_key_exists(std::string sc) -> bool"""
2612  return _IMP_kernel.ParticleIndexKey_get_key_exists(sc)
2613 
2614 def ParticleIndexKey_add_alias(old_key, new_name):
2615  """ParticleIndexKey_add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
2616  return _IMP_kernel.ParticleIndexKey_add_alias(old_key, new_name)
2617 
2618 def ParticleIndexKey_get_number_of_keys():
2619  """ParticleIndexKey_get_number_of_keys() -> unsigned int"""
2620  return _IMP_kernel.ParticleIndexKey_get_number_of_keys()
2621 
2622 def ParticleIndexKey_show_all(out):
2623  """ParticleIndexKey_show_all(_ostream out)"""
2624  return _IMP_kernel.ParticleIndexKey_show_all(out)
2625 
2626 def ParticleIndexKey_get_all_strings():
2627  """ParticleIndexKey_get_all_strings() -> IMP::Vector< std::string >"""
2628  return _IMP_kernel.ParticleIndexKey_get_all_strings()
2629 
2630 def ParticleIndexKey_get_number_unique():
2631  """ParticleIndexKey_get_number_unique() -> unsigned int"""
2632  return _IMP_kernel.ParticleIndexKey_get_number_unique()
2633 
2634 class ObjectKey(_Value):
2635  """Proxy of C++ IMP::Key<(4)> class."""
2636 
2637  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2638 
2639  def __init__(self, *args):
2640  """
2641  __init__(IMP::Key<(4)> self) -> ObjectKey
2642  __init__(IMP::Key<(4)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ObjectKey
2643  __init__(IMP::Key<(4)> self, std::string const & c) -> ObjectKey
2644  __init__(IMP::Key<(4)> self, unsigned int i) -> ObjectKey
2645  """
2646  this = _IMP_kernel.new_ObjectKey(*args)
2647  try:
2648  self.this.append(this)
2649  except __builtin__.Exception:
2650  self.this = this
2651 
2652  def add_key(sc):
2653  """add_key(std::string sc) -> unsigned int"""
2654  return _IMP_kernel.ObjectKey_add_key(sc)
2655 
2656  add_key = staticmethod(add_key)
2657 
2658  def get_key_exists(sc):
2659  """get_key_exists(std::string sc) -> bool"""
2660  return _IMP_kernel.ObjectKey_get_key_exists(sc)
2661 
2662  get_key_exists = staticmethod(get_key_exists)
2663 
2664  def get_string(self):
2665  """get_string(ObjectKey self) -> std::string const"""
2666  return _IMP_kernel.ObjectKey_get_string(self)
2667 
2668 
2669  def __cmp__(self, o):
2670  """__cmp__(ObjectKey self, ObjectKey o) -> int"""
2671  return _IMP_kernel.ObjectKey___cmp__(self, o)
2672 
2673 
2674  def __eq__(self, o):
2675  """__eq__(ObjectKey self, ObjectKey o) -> bool"""
2676  return _IMP_kernel.ObjectKey___eq__(self, o)
2677 
2678 
2679  def __ne__(self, o):
2680  """__ne__(ObjectKey self, ObjectKey o) -> bool"""
2681  return _IMP_kernel.ObjectKey___ne__(self, o)
2682 
2683 
2684  def __lt__(self, o):
2685  """__lt__(ObjectKey self, ObjectKey o) -> bool"""
2686  return _IMP_kernel.ObjectKey___lt__(self, o)
2687 
2688 
2689  def __gt__(self, o):
2690  """__gt__(ObjectKey self, ObjectKey o) -> bool"""
2691  return _IMP_kernel.ObjectKey___gt__(self, o)
2692 
2693 
2694  def __ge__(self, o):
2695  """__ge__(ObjectKey self, ObjectKey o) -> bool"""
2696  return _IMP_kernel.ObjectKey___ge__(self, o)
2697 
2698 
2699  def __le__(self, o):
2700  """__le__(ObjectKey self, ObjectKey o) -> bool"""
2701  return _IMP_kernel.ObjectKey___le__(self, o)
2702 
2703 
2704  def __hash__(self):
2705  """__hash__(ObjectKey self) -> std::size_t"""
2706  return _IMP_kernel.ObjectKey___hash__(self)
2707 
2708 
2709  def show(self, *args):
2710  """
2711  show(ObjectKey self, _ostream out)
2712  show(ObjectKey self)
2713  """
2714  return _IMP_kernel.ObjectKey_show(self, *args)
2715 
2716 
2717  def add_alias(old_key, new_name):
2718  """add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
2719  return _IMP_kernel.ObjectKey_add_alias(old_key, new_name)
2720 
2721  add_alias = staticmethod(add_alias)
2722 
2723  def get_number_of_keys():
2724  """get_number_of_keys() -> unsigned int"""
2725  return _IMP_kernel.ObjectKey_get_number_of_keys()
2726 
2727  get_number_of_keys = staticmethod(get_number_of_keys)
2728 
2729  def get_index(self):
2730  """get_index(ObjectKey self) -> unsigned int"""
2731  return _IMP_kernel.ObjectKey_get_index(self)
2732 
2733 
2734  def show_all(out):
2735  """show_all(_ostream out)"""
2736  return _IMP_kernel.ObjectKey_show_all(out)
2737 
2738  show_all = staticmethod(show_all)
2739 
2740  def get_all_strings():
2741  """get_all_strings() -> IMP::Vector< std::string >"""
2742  return _IMP_kernel.ObjectKey_get_all_strings()
2743 
2744  get_all_strings = staticmethod(get_all_strings)
2745 
2746  def get_number_unique():
2747  """get_number_unique() -> unsigned int"""
2748  return _IMP_kernel.ObjectKey_get_number_unique()
2749 
2750  get_number_unique = staticmethod(get_number_unique)
2751 
2752  def __str__(self):
2753  """__str__(ObjectKey self) -> std::string"""
2754  return _IMP_kernel.ObjectKey___str__(self)
2755 
2756 
2757  def __repr__(self):
2758  """__repr__(ObjectKey self) -> std::string"""
2759  return _IMP_kernel.ObjectKey___repr__(self)
2760 
2761  __swig_destroy__ = _IMP_kernel.delete_ObjectKey
2762  __del__ = lambda self: None
2763 ObjectKey_swigregister = _IMP_kernel.ObjectKey_swigregister
2764 ObjectKey_swigregister(ObjectKey)
2765 
2766 def ObjectKey_add_key(sc):
2767  """ObjectKey_add_key(std::string sc) -> unsigned int"""
2768  return _IMP_kernel.ObjectKey_add_key(sc)
2769 
2770 def ObjectKey_get_key_exists(sc):
2771  """ObjectKey_get_key_exists(std::string sc) -> bool"""
2772  return _IMP_kernel.ObjectKey_get_key_exists(sc)
2773 
2774 def ObjectKey_add_alias(old_key, new_name):
2775  """ObjectKey_add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
2776  return _IMP_kernel.ObjectKey_add_alias(old_key, new_name)
2777 
2778 def ObjectKey_get_number_of_keys():
2779  """ObjectKey_get_number_of_keys() -> unsigned int"""
2780  return _IMP_kernel.ObjectKey_get_number_of_keys()
2781 
2782 def ObjectKey_show_all(out):
2783  """ObjectKey_show_all(_ostream out)"""
2784  return _IMP_kernel.ObjectKey_show_all(out)
2785 
2786 def ObjectKey_get_all_strings():
2787  """ObjectKey_get_all_strings() -> IMP::Vector< std::string >"""
2788  return _IMP_kernel.ObjectKey_get_all_strings()
2789 
2790 def ObjectKey_get_number_unique():
2791  """ObjectKey_get_number_unique() -> unsigned int"""
2792  return _IMP_kernel.ObjectKey_get_number_unique()
2793 
2794 class ParticleIndexesKey(_Value):
2795  """Proxy of C++ IMP::Key<(6)> class."""
2796 
2797  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2798 
2799  def __init__(self, *args):
2800  """
2801  __init__(IMP::Key<(6)> self) -> ParticleIndexesKey
2802  __init__(IMP::Key<(6)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleIndexesKey
2803  __init__(IMP::Key<(6)> self, std::string const & c) -> ParticleIndexesKey
2804  __init__(IMP::Key<(6)> self, unsigned int i) -> ParticleIndexesKey
2805  """
2806  this = _IMP_kernel.new_ParticleIndexesKey(*args)
2807  try:
2808  self.this.append(this)
2809  except __builtin__.Exception:
2810  self.this = this
2811 
2812  def add_key(sc):
2813  """add_key(std::string sc) -> unsigned int"""
2814  return _IMP_kernel.ParticleIndexesKey_add_key(sc)
2815 
2816  add_key = staticmethod(add_key)
2817 
2818  def get_key_exists(sc):
2819  """get_key_exists(std::string sc) -> bool"""
2820  return _IMP_kernel.ParticleIndexesKey_get_key_exists(sc)
2821 
2822  get_key_exists = staticmethod(get_key_exists)
2823 
2824  def get_string(self):
2825  """get_string(ParticleIndexesKey self) -> std::string const"""
2826  return _IMP_kernel.ParticleIndexesKey_get_string(self)
2827 
2828 
2829  def __cmp__(self, o):
2830  """__cmp__(ParticleIndexesKey self, ParticleIndexesKey o) -> int"""
2831  return _IMP_kernel.ParticleIndexesKey___cmp__(self, o)
2832 
2833 
2834  def __eq__(self, o):
2835  """__eq__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2836  return _IMP_kernel.ParticleIndexesKey___eq__(self, o)
2837 
2838 
2839  def __ne__(self, o):
2840  """__ne__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2841  return _IMP_kernel.ParticleIndexesKey___ne__(self, o)
2842 
2843 
2844  def __lt__(self, o):
2845  """__lt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2846  return _IMP_kernel.ParticleIndexesKey___lt__(self, o)
2847 
2848 
2849  def __gt__(self, o):
2850  """__gt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2851  return _IMP_kernel.ParticleIndexesKey___gt__(self, o)
2852 
2853 
2854  def __ge__(self, o):
2855  """__ge__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2856  return _IMP_kernel.ParticleIndexesKey___ge__(self, o)
2857 
2858 
2859  def __le__(self, o):
2860  """__le__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2861  return _IMP_kernel.ParticleIndexesKey___le__(self, o)
2862 
2863 
2864  def __hash__(self):
2865  """__hash__(ParticleIndexesKey self) -> std::size_t"""
2866  return _IMP_kernel.ParticleIndexesKey___hash__(self)
2867 
2868 
2869  def show(self, *args):
2870  """
2871  show(ParticleIndexesKey self, _ostream out)
2872  show(ParticleIndexesKey self)
2873  """
2874  return _IMP_kernel.ParticleIndexesKey_show(self, *args)
2875 
2876 
2877  def add_alias(old_key, new_name):
2878  """add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
2879  return _IMP_kernel.ParticleIndexesKey_add_alias(old_key, new_name)
2880 
2881  add_alias = staticmethod(add_alias)
2882 
2883  def get_number_of_keys():
2884  """get_number_of_keys() -> unsigned int"""
2885  return _IMP_kernel.ParticleIndexesKey_get_number_of_keys()
2886 
2887  get_number_of_keys = staticmethod(get_number_of_keys)
2888 
2889  def get_index(self):
2890  """get_index(ParticleIndexesKey self) -> unsigned int"""
2891  return _IMP_kernel.ParticleIndexesKey_get_index(self)
2892 
2893 
2894  def show_all(out):
2895  """show_all(_ostream out)"""
2896  return _IMP_kernel.ParticleIndexesKey_show_all(out)
2897 
2898  show_all = staticmethod(show_all)
2899 
2900  def get_all_strings():
2901  """get_all_strings() -> IMP::Vector< std::string >"""
2902  return _IMP_kernel.ParticleIndexesKey_get_all_strings()
2903 
2904  get_all_strings = staticmethod(get_all_strings)
2905 
2906  def get_number_unique():
2907  """get_number_unique() -> unsigned int"""
2908  return _IMP_kernel.ParticleIndexesKey_get_number_unique()
2909 
2910  get_number_unique = staticmethod(get_number_unique)
2911 
2912  def __str__(self):
2913  """__str__(ParticleIndexesKey self) -> std::string"""
2914  return _IMP_kernel.ParticleIndexesKey___str__(self)
2915 
2916 
2917  def __repr__(self):
2918  """__repr__(ParticleIndexesKey self) -> std::string"""
2919  return _IMP_kernel.ParticleIndexesKey___repr__(self)
2920 
2921  __swig_destroy__ = _IMP_kernel.delete_ParticleIndexesKey
2922  __del__ = lambda self: None
2923 ParticleIndexesKey_swigregister = _IMP_kernel.ParticleIndexesKey_swigregister
2924 ParticleIndexesKey_swigregister(ParticleIndexesKey)
2925 
2926 def ParticleIndexesKey_add_key(sc):
2927  """ParticleIndexesKey_add_key(std::string sc) -> unsigned int"""
2928  return _IMP_kernel.ParticleIndexesKey_add_key(sc)
2929 
2930 def ParticleIndexesKey_get_key_exists(sc):
2931  """ParticleIndexesKey_get_key_exists(std::string sc) -> bool"""
2932  return _IMP_kernel.ParticleIndexesKey_get_key_exists(sc)
2933 
2934 def ParticleIndexesKey_add_alias(old_key, new_name):
2935  """ParticleIndexesKey_add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
2936  return _IMP_kernel.ParticleIndexesKey_add_alias(old_key, new_name)
2937 
2938 def ParticleIndexesKey_get_number_of_keys():
2939  """ParticleIndexesKey_get_number_of_keys() -> unsigned int"""
2940  return _IMP_kernel.ParticleIndexesKey_get_number_of_keys()
2941 
2942 def ParticleIndexesKey_show_all(out):
2943  """ParticleIndexesKey_show_all(_ostream out)"""
2944  return _IMP_kernel.ParticleIndexesKey_show_all(out)
2945 
2946 def ParticleIndexesKey_get_all_strings():
2947  """ParticleIndexesKey_get_all_strings() -> IMP::Vector< std::string >"""
2948  return _IMP_kernel.ParticleIndexesKey_get_all_strings()
2949 
2950 def ParticleIndexesKey_get_number_unique():
2951  """ParticleIndexesKey_get_number_unique() -> unsigned int"""
2952  return _IMP_kernel.ParticleIndexesKey_get_number_unique()
2953 
2954 class ModelKey(_Value):
2955  """Proxy of C++ IMP::Key<(8)> class."""
2956 
2957  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2958 
2959  def __init__(self, *args):
2960  """
2961  __init__(IMP::Key<(8)> self) -> ModelKey
2962  __init__(IMP::Key<(8)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ModelKey
2963  __init__(IMP::Key<(8)> self, std::string const & c) -> ModelKey
2964  __init__(IMP::Key<(8)> self, unsigned int i) -> ModelKey
2965  """
2966  this = _IMP_kernel.new_ModelKey(*args)
2967  try:
2968  self.this.append(this)
2969  except __builtin__.Exception:
2970  self.this = this
2971 
2972  def add_key(sc):
2973  """add_key(std::string sc) -> unsigned int"""
2974  return _IMP_kernel.ModelKey_add_key(sc)
2975 
2976  add_key = staticmethod(add_key)
2977 
2978  def get_key_exists(sc):
2979  """get_key_exists(std::string sc) -> bool"""
2980  return _IMP_kernel.ModelKey_get_key_exists(sc)
2981 
2982  get_key_exists = staticmethod(get_key_exists)
2983 
2984  def get_string(self):
2985  """get_string(ModelKey self) -> std::string const"""
2986  return _IMP_kernel.ModelKey_get_string(self)
2987 
2988 
2989  def __cmp__(self, o):
2990  """__cmp__(ModelKey self, ModelKey o) -> int"""
2991  return _IMP_kernel.ModelKey___cmp__(self, o)
2992 
2993 
2994  def __eq__(self, o):
2995  """__eq__(ModelKey self, ModelKey o) -> bool"""
2996  return _IMP_kernel.ModelKey___eq__(self, o)
2997 
2998 
2999  def __ne__(self, o):
3000  """__ne__(ModelKey self, ModelKey o) -> bool"""
3001  return _IMP_kernel.ModelKey___ne__(self, o)
3002 
3003 
3004  def __lt__(self, o):
3005  """__lt__(ModelKey self, ModelKey o) -> bool"""
3006  return _IMP_kernel.ModelKey___lt__(self, o)
3007 
3008 
3009  def __gt__(self, o):
3010  """__gt__(ModelKey self, ModelKey o) -> bool"""
3011  return _IMP_kernel.ModelKey___gt__(self, o)
3012 
3013 
3014  def __ge__(self, o):
3015  """__ge__(ModelKey self, ModelKey o) -> bool"""
3016  return _IMP_kernel.ModelKey___ge__(self, o)
3017 
3018 
3019  def __le__(self, o):
3020  """__le__(ModelKey self, ModelKey o) -> bool"""
3021  return _IMP_kernel.ModelKey___le__(self, o)
3022 
3023 
3024  def __hash__(self):
3025  """__hash__(ModelKey self) -> std::size_t"""
3026  return _IMP_kernel.ModelKey___hash__(self)
3027 
3028 
3029  def show(self, *args):
3030  """
3031  show(ModelKey self, _ostream out)
3032  show(ModelKey self)
3033  """
3034  return _IMP_kernel.ModelKey_show(self, *args)
3035 
3036 
3037  def add_alias(old_key, new_name):
3038  """add_alias(ModelKey old_key, std::string new_name) -> ModelKey"""
3039  return _IMP_kernel.ModelKey_add_alias(old_key, new_name)
3040 
3041  add_alias = staticmethod(add_alias)
3042 
3043  def get_number_of_keys():
3044  """get_number_of_keys() -> unsigned int"""
3045  return _IMP_kernel.ModelKey_get_number_of_keys()
3046 
3047  get_number_of_keys = staticmethod(get_number_of_keys)
3048 
3049  def get_index(self):
3050  """get_index(ModelKey self) -> unsigned int"""
3051  return _IMP_kernel.ModelKey_get_index(self)
3052 
3053 
3054  def show_all(out):
3055  """show_all(_ostream out)"""
3056  return _IMP_kernel.ModelKey_show_all(out)
3057 
3058  show_all = staticmethod(show_all)
3059 
3060  def get_all_strings():
3061  """get_all_strings() -> IMP::Vector< std::string >"""
3062  return _IMP_kernel.ModelKey_get_all_strings()
3063 
3064  get_all_strings = staticmethod(get_all_strings)
3065 
3066  def get_number_unique():
3067  """get_number_unique() -> unsigned int"""
3068  return _IMP_kernel.ModelKey_get_number_unique()
3069 
3070  get_number_unique = staticmethod(get_number_unique)
3071 
3072  def __str__(self):
3073  """__str__(ModelKey self) -> std::string"""
3074  return _IMP_kernel.ModelKey___str__(self)
3075 
3076 
3077  def __repr__(self):
3078  """__repr__(ModelKey self) -> std::string"""
3079  return _IMP_kernel.ModelKey___repr__(self)
3080 
3081  __swig_destroy__ = _IMP_kernel.delete_ModelKey
3082  __del__ = lambda self: None
3083 ModelKey_swigregister = _IMP_kernel.ModelKey_swigregister
3084 ModelKey_swigregister(ModelKey)
3085 
3086 def ModelKey_add_key(sc):
3087  """ModelKey_add_key(std::string sc) -> unsigned int"""
3088  return _IMP_kernel.ModelKey_add_key(sc)
3089 
3090 def ModelKey_get_key_exists(sc):
3091  """ModelKey_get_key_exists(std::string sc) -> bool"""
3092  return _IMP_kernel.ModelKey_get_key_exists(sc)
3093 
3094 def ModelKey_add_alias(old_key, new_name):
3095  """ModelKey_add_alias(ModelKey old_key, std::string new_name) -> ModelKey"""
3096  return _IMP_kernel.ModelKey_add_alias(old_key, new_name)
3097 
3098 def ModelKey_get_number_of_keys():
3099  """ModelKey_get_number_of_keys() -> unsigned int"""
3100  return _IMP_kernel.ModelKey_get_number_of_keys()
3101 
3102 def ModelKey_show_all(out):
3103  """ModelKey_show_all(_ostream out)"""
3104  return _IMP_kernel.ModelKey_show_all(out)
3105 
3106 def ModelKey_get_all_strings():
3107  """ModelKey_get_all_strings() -> IMP::Vector< std::string >"""
3108  return _IMP_kernel.ModelKey_get_all_strings()
3109 
3110 def ModelKey_get_number_unique():
3111  """ModelKey_get_number_unique() -> unsigned int"""
3112  return _IMP_kernel.ModelKey_get_number_unique()
3113 
3114 class ParticleIndex(_Value):
3115  """Proxy of C++ IMP::Index<(IMP::ParticleIndexTag)> class."""
3116 
3117  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3118 
3119  def __init__(self, *args):
3120  """
3121  __init__(IMP::Index<(IMP::ParticleIndexTag)> self, int i) -> ParticleIndex
3122  __init__(IMP::Index<(IMP::ParticleIndexTag)> self) -> ParticleIndex
3123  """
3124  this = _IMP_kernel.new_ParticleIndex(*args)
3125  try:
3126  self.this.append(this)
3127  except __builtin__.Exception:
3128  self.this = this
3129 
3130  def get_index(self):
3131  """get_index(ParticleIndex self) -> int"""
3132  return _IMP_kernel.ParticleIndex_get_index(self)
3133 
3134 
3135  def __cmp__(self, o):
3136  """__cmp__(ParticleIndex self, ParticleIndex o) -> int"""
3137  return _IMP_kernel.ParticleIndex___cmp__(self, o)
3138 
3139 
3140  def __eq__(self, o):
3141  """__eq__(ParticleIndex self, ParticleIndex o) -> bool"""
3142  return _IMP_kernel.ParticleIndex___eq__(self, o)
3143 
3144 
3145  def __ne__(self, o):
3146  """__ne__(ParticleIndex self, ParticleIndex o) -> bool"""
3147  return _IMP_kernel.ParticleIndex___ne__(self, o)
3148 
3149 
3150  def __lt__(self, o):
3151  """__lt__(ParticleIndex self, ParticleIndex o) -> bool"""
3152  return _IMP_kernel.ParticleIndex___lt__(self, o)
3153 
3154 
3155  def __gt__(self, o):
3156  """__gt__(ParticleIndex self, ParticleIndex o) -> bool"""
3157  return _IMP_kernel.ParticleIndex___gt__(self, o)
3158 
3159 
3160  def __ge__(self, o):
3161  """__ge__(ParticleIndex self, ParticleIndex o) -> bool"""
3162  return _IMP_kernel.ParticleIndex___ge__(self, o)
3163 
3164 
3165  def __le__(self, o):
3166  """__le__(ParticleIndex self, ParticleIndex o) -> bool"""
3167  return _IMP_kernel.ParticleIndex___le__(self, o)
3168 
3169 
3170  def show(self, *args):
3171  """
3172  show(ParticleIndex self, _ostream out)
3173  show(ParticleIndex self)
3174  """
3175  return _IMP_kernel.ParticleIndex_show(self, *args)
3176 
3177 
3178  def __hash__(self):
3179  """__hash__(ParticleIndex self) -> std::size_t"""
3180  return _IMP_kernel.ParticleIndex___hash__(self)
3181 
3182 
3183  def __str__(self):
3184  """__str__(ParticleIndex self) -> std::string"""
3185  return _IMP_kernel.ParticleIndex___str__(self)
3186 
3187 
3188  def __repr__(self):
3189  """__repr__(ParticleIndex self) -> std::string"""
3190  return _IMP_kernel.ParticleIndex___repr__(self)
3191 
3192  __swig_destroy__ = _IMP_kernel.delete_ParticleIndex
3193  __del__ = lambda self: None
3194 ParticleIndex_swigregister = _IMP_kernel.ParticleIndex_swigregister
3195 ParticleIndex_swigregister(ParticleIndex)
3196 
3197 
3198 def ParticlePair(a, b):
3199  return (a,b)
3200 def ParticleTriplet(a, b, c):
3201  return (a,b,c)
3202 def ParticleQuad(a, b, c, d):
3203  return (a,b,c,d)
3204 
3205 class FloatIndex(_Value):
3206  """Proxy of C++ IMP::FloatIndex class."""
3207 
3208  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3209 
3210  def __init__(self, *args):
3211  """
3212  __init__(IMP::FloatIndex self, ParticleIndex i0, FloatKey i1) -> FloatIndex
3213  __init__(IMP::FloatIndex self, ParticleIndex i0) -> FloatIndex
3214  __init__(IMP::FloatIndex self) -> FloatIndex
3215  """
3216  this = _IMP_kernel.new_FloatIndex(*args)
3217  try:
3218  self.this.append(this)
3219  except __builtin__.Exception:
3220  self.this = this
3221 
3222  def __hash__(self):
3223  """__hash__(FloatIndex self) -> std::size_t"""
3224  return _IMP_kernel.FloatIndex___hash__(self)
3225 
3226 
3227  def show(self, *args):
3228  """
3229  show(FloatIndex self, _ostream out)
3230  show(FloatIndex self)
3231  """
3232  return _IMP_kernel.FloatIndex_show(self, *args)
3233 
3234 
3235  def __cmp__(self, o):
3236  """__cmp__(FloatIndex self, FloatIndex o) -> int"""
3237  return _IMP_kernel.FloatIndex___cmp__(self, o)
3238 
3239 
3240  def __eq__(self, o):
3241  """__eq__(FloatIndex self, FloatIndex o) -> bool"""
3242  return _IMP_kernel.FloatIndex___eq__(self, o)
3243 
3244 
3245  def __ne__(self, o):
3246  """__ne__(FloatIndex self, FloatIndex o) -> bool"""
3247  return _IMP_kernel.FloatIndex___ne__(self, o)
3248 
3249 
3250  def __lt__(self, o):
3251  """__lt__(FloatIndex self, FloatIndex o) -> bool"""
3252  return _IMP_kernel.FloatIndex___lt__(self, o)
3253 
3254 
3255  def __gt__(self, o):
3256  """__gt__(FloatIndex self, FloatIndex o) -> bool"""
3257  return _IMP_kernel.FloatIndex___gt__(self, o)
3258 
3259 
3260  def __ge__(self, o):
3261  """__ge__(FloatIndex self, FloatIndex o) -> bool"""
3262  return _IMP_kernel.FloatIndex___ge__(self, o)
3263 
3264 
3265  def __le__(self, o):
3266  """__le__(FloatIndex self, FloatIndex o) -> bool"""
3267  return _IMP_kernel.FloatIndex___le__(self, o)
3268 
3269 
3270  def get_particle(self):
3271  """get_particle(FloatIndex self) -> ParticleIndex const &"""
3272  return _IMP_kernel.FloatIndex_get_particle(self)
3273 
3274 
3275  def set_particle(self, v):
3276  """set_particle(FloatIndex self, ParticleIndex const & v)"""
3277  return _IMP_kernel.FloatIndex_set_particle(self, v)
3278 
3279 
3280  def get_key(self):
3281  """get_key(FloatIndex self) -> FloatKey const &"""
3282  return _IMP_kernel.FloatIndex_get_key(self)
3283 
3284 
3285  def set_key(self, v):
3286  """set_key(FloatIndex self, FloatKey const & v)"""
3287  return _IMP_kernel.FloatIndex_set_key(self, v)
3288 
3289 
3290  def __str__(self):
3291  """__str__(FloatIndex self) -> std::string"""
3292  return _IMP_kernel.FloatIndex___str__(self)
3293 
3294 
3295  def __repr__(self):
3296  """__repr__(FloatIndex self) -> std::string"""
3297  return _IMP_kernel.FloatIndex___repr__(self)
3298 
3299  __swig_destroy__ = _IMP_kernel.delete_FloatIndex
3300  __del__ = lambda self: None
3301 FloatIndex_swigregister = _IMP_kernel.FloatIndex_swigregister
3302 FloatIndex_swigregister(FloatIndex)
3303 
3304 class _ParticleIndexTag(object):
3305  """Proxy of C++ IMP::ParticleIndexTag class."""
3306 
3307  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3308  __repr__ = _swig_repr
3309 
3310  def __init__(self):
3311  """__init__(IMP::ParticleIndexTag self) -> _ParticleIndexTag"""
3312  this = _IMP_kernel.new__ParticleIndexTag()
3313  try:
3314  self.this.append(this)
3315  except __builtin__.Exception:
3316  self.this = this
3317  __swig_destroy__ = _IMP_kernel.delete__ParticleIndexTag
3318  __del__ = lambda self: None
3319 _ParticleIndexTag_swigregister = _IMP_kernel._ParticleIndexTag_swigregister
3320 _ParticleIndexTag_swigregister(_ParticleIndexTag)
3321 
3322 class ModelObject(Object):
3323  """Proxy of C++ IMP::ModelObject class."""
3324 
3325  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3326 
3327  def __init__(self, m, name):
3328  """__init__(IMP::ModelObject self, Model m, std::string name) -> ModelObject"""
3329  if self.__class__ == ModelObject:
3330  _self = None
3331  else:
3332  _self = self
3333  this = _IMP_kernel.new_ModelObject(_self, m, name)
3334  try:
3335  self.this.append(this)
3336  except __builtin__.Exception:
3337  self.this = this
3338 
3339  if self.__class__ != ModelObject:
3340  _director_objects.register(self)
3341 
3342 
3343 
3344  __swig_destroy__ = _IMP_kernel.delete_ModelObject
3345  __del__ = lambda self: None
3346 
3347  def get_model(self):
3348  """get_model(ModelObject self) -> Model"""
3349  return _IMP_kernel.ModelObject_get_model(self)
3350 
3351 
3352  def get_inputs(self):
3353  """get_inputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3354  return _IMP_kernel.ModelObject_get_inputs(self)
3355 
3356 
3357  def get_outputs(self):
3358  """get_outputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3359  return _IMP_kernel.ModelObject_get_outputs(self)
3360 
3361 
3362  def get_interactions(self):
3363  """get_interactions(ModelObject self) -> IMP::ModelObjectsTemps"""
3364  return _IMP_kernel.ModelObject_get_interactions(self)
3365 
3366 
3367  def get_has_dependencies(self):
3368  """get_has_dependencies(ModelObject self) -> bool"""
3369  return _IMP_kernel.ModelObject_get_has_dependencies(self)
3370 
3371 
3372  def set_has_dependencies(self, tf):
3373  """set_has_dependencies(ModelObject self, bool tf)"""
3374  return _IMP_kernel.ModelObject_set_has_dependencies(self, tf)
3375 
3376 
3377  def set_has_required_score_states(self, tf):
3378  """set_has_required_score_states(ModelObject self, bool tf)"""
3379  return _IMP_kernel.ModelObject_set_has_required_score_states(self, tf)
3380 
3381 
3382  def get_has_required_score_states(self):
3383  """get_has_required_score_states(ModelObject self) -> bool"""
3384  return _IMP_kernel.ModelObject_get_has_required_score_states(self)
3385 
3386 
3387  def get_required_score_states(self):
3388  """get_required_score_states(ModelObject self) -> IMP::ScoreStatesTemp const &"""
3389  return _IMP_kernel.ModelObject_get_required_score_states(self)
3390 
3391 
3392  def handle_set_has_required_score_states(self, arg0):
3393  """handle_set_has_required_score_states(ModelObject self, bool arg0)"""
3394  return _IMP_kernel.ModelObject_handle_set_has_required_score_states(self, arg0)
3395 
3396 
3397  def do_get_inputs(self):
3398  """do_get_inputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3399  return _IMP_kernel.ModelObject_do_get_inputs(self)
3400 
3401 
3402  def do_get_outputs(self):
3403  """do_get_outputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3404  return _IMP_kernel.ModelObject_do_get_outputs(self)
3405 
3406 
3407  def do_get_interactions(self):
3408  """do_get_interactions(ModelObject self) -> IMP::ModelObjectsTemps"""
3409  return _IMP_kernel.ModelObject_do_get_interactions(self)
3410 
3411 
3412  def __str__(self):
3413  """__str__(ModelObject self) -> std::string"""
3414  return _IMP_kernel.ModelObject___str__(self)
3415 
3416 
3417  def __repr__(self):
3418  """__repr__(ModelObject self) -> std::string"""
3419  return _IMP_kernel.ModelObject___repr__(self)
3420 
3421 
3422  @staticmethod
3423  def get_from(o):
3424  return _object_cast_to_ModelObject(o)
3425 
3426 
3427  def get_type_name(self):
3428  return self.__class__.__name__
3429  def do_show(self, out):
3430  pass
3431  def get_version_info(self):
3432  if"IMP" == "IMP":
3433  return VersionInfo(self.__module__,
3434  __import__(self.__module__).get_module_version())
3435  else:
3436  return IMP.VersionInfo(self.__module__,
3437  __import__(self.__module__).get_module_version())
3438  @staticmethod
3439  def get_from(o):
3440  return _object_cast_to_ModelObject(o)
3441 
3442  def __disown__(self):
3443  self.this.disown()
3444  _IMP_kernel.disown_ModelObject(self)
3445  return weakref_proxy(self)
3446 
3447  def do_destroy(self):
3448  """do_destroy(ModelObject self)"""
3449  return _IMP_kernel.ModelObject_do_destroy(self)
3450 
3451 ModelObject_swigregister = _IMP_kernel.ModelObject_swigregister
3452 ModelObject_swigregister(ModelObject)
3453 cvar = _IMP_kernel.cvar
3454 NO_MAX = cvar.NO_MAX
3455 BAD_SCORE = cvar.BAD_SCORE
3456 
3457 class _ParticleInputs(object):
3458  """Proxy of C++ IMP::ParticleInputs class."""
3459 
3460  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3461 
3462  def __init__(self, *args, **kwargs):
3463  raise AttributeError("No constructor defined - class is abstract")
3464  __repr__ = _swig_repr
3465 
3466  def get_inputs(self, m, pis):
3467  """get_inputs(_ParticleInputs self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3468  return _IMP_kernel._ParticleInputs_get_inputs(self, m, pis)
3469 
3470 _ParticleInputs_swigregister = _IMP_kernel._ParticleInputs_swigregister
3471 _ParticleInputs_swigregister(_ParticleInputs)
3472 
3473 class _ParticleOutputs(object):
3474  """Proxy of C++ IMP::ParticleOutputs class."""
3475 
3476  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3477 
3478  def __init__(self, *args, **kwargs):
3479  raise AttributeError("No constructor defined - class is abstract")
3480  __repr__ = _swig_repr
3481 
3482  def get_outputs(self, m, pis):
3483  """get_outputs(_ParticleOutputs self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3484  return _IMP_kernel._ParticleOutputs_get_outputs(self, m, pis)
3485 
3486 _ParticleOutputs_swigregister = _IMP_kernel._ParticleOutputs_swigregister
3487 _ParticleOutputs_swigregister(_ParticleOutputs)
3488 
3489 
3490 def get_input_particles(mos):
3491  """get_input_particles(IMP::ModelObjectsTemp const & mos) -> IMP::ParticlesTemp"""
3492  return _IMP_kernel.get_input_particles(mos)
3493 
3494 def get_input_containers(mos):
3495  """get_input_containers(IMP::ModelObjectsTemp const & mos) -> IMP::ContainersTemp"""
3496  return _IMP_kernel.get_input_containers(mos)
3497 
3498 def get_output_particles(mos):
3499  """get_output_particles(IMP::ModelObjectsTemp const & mos) -> IMP::ParticlesTemp"""
3500  return _IMP_kernel.get_output_particles(mos)
3501 
3502 def get_output_containers(mos):
3503  """get_output_containers(IMP::ModelObjectsTemp const & mos) -> IMP::ContainersTemp"""
3504  return _IMP_kernel.get_output_containers(mos)
3505 class DerivativeAccumulator(object):
3506  """Proxy of C++ IMP::DerivativeAccumulator class."""
3507 
3508  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3509  __repr__ = _swig_repr
3510 
3511  def __init__(self, *args):
3512  """
3513  __init__(IMP::DerivativeAccumulator self, double weight=1.0) -> DerivativeAccumulator
3514  __init__(IMP::DerivativeAccumulator self) -> DerivativeAccumulator
3515  __init__(IMP::DerivativeAccumulator self, DerivativeAccumulator copy, double weight) -> DerivativeAccumulator
3516  """
3517  this = _IMP_kernel.new_DerivativeAccumulator(*args)
3518  try:
3519  self.this.append(this)
3520  except __builtin__.Exception:
3521  self.this = this
3522 
3523  def __call__(self, value):
3524  """__call__(DerivativeAccumulator self, double const value) -> double"""
3525  return _IMP_kernel.DerivativeAccumulator___call__(self, value)
3526 
3527 
3528  def get_weight(self):
3529  """get_weight(DerivativeAccumulator self) -> double"""
3530  return _IMP_kernel.DerivativeAccumulator_get_weight(self)
3531 
3532 
3533  def show(self, *args):
3534  """
3535  show(DerivativeAccumulator self, _ostream out)
3536  show(DerivativeAccumulator self)
3537  """
3538  return _IMP_kernel.DerivativeAccumulator_show(self, *args)
3539 
3540  __swig_destroy__ = _IMP_kernel.delete_DerivativeAccumulator
3541  __del__ = lambda self: None
3542 DerivativeAccumulator_swigregister = _IMP_kernel.DerivativeAccumulator_swigregister
3543 DerivativeAccumulator_swigregister(DerivativeAccumulator)
3544 
3545 class EvaluationState(object):
3546  """Proxy of C++ IMP::EvaluationState class."""
3547 
3548  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3549  score = _swig_property(_IMP_kernel.EvaluationState_score_get, _IMP_kernel.EvaluationState_score_set)
3550  good = _swig_property(_IMP_kernel.EvaluationState_good_get, _IMP_kernel.EvaluationState_good_set)
3551 
3552  def __init__(self, *args):
3553  """
3554  __init__(IMP::EvaluationState self, double oscore, bool ogood) -> EvaluationState
3555  __init__(IMP::EvaluationState self) -> EvaluationState
3556  """
3557  this = _IMP_kernel.new_EvaluationState(*args)
3558  try:
3559  self.this.append(this)
3560  except __builtin__.Exception:
3561  self.this = this
3562 
3563  def show(self, *args):
3564  """
3565  show(EvaluationState self, _ostream out)
3566  show(EvaluationState self)
3567  """
3568  return _IMP_kernel.EvaluationState_show(self, *args)
3569 
3570 
3571  def __str__(self):
3572  """__str__(EvaluationState self) -> std::string"""
3573  return _IMP_kernel.EvaluationState___str__(self)
3574 
3575 
3576  def __repr__(self):
3577  """__repr__(EvaluationState self) -> std::string"""
3578  return _IMP_kernel.EvaluationState___repr__(self)
3579 
3580  __swig_destroy__ = _IMP_kernel.delete_EvaluationState
3581  __del__ = lambda self: None
3582 EvaluationState_swigregister = _IMP_kernel.EvaluationState_swigregister
3583 EvaluationState_swigregister(EvaluationState)
3584 
3585 class ScoreAccumulator(_Value):
3586  """Proxy of C++ IMP::ScoreAccumulator class."""
3587 
3588  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3589 
3590  def __init__(self, *args):
3591  """
3592  __init__(IMP::ScoreAccumulator self) -> ScoreAccumulator
3593  __init__(IMP::ScoreAccumulator self, ScoreAccumulator o, Restraint r) -> ScoreAccumulator
3594  __init__(IMP::ScoreAccumulator self, ScoreAccumulator o, double weight, double local_max) -> ScoreAccumulator
3595  """
3596  this = _IMP_kernel.new_ScoreAccumulator(*args)
3597  try:
3598  self.this.append(this)
3599  except __builtin__.Exception:
3600  self.this = this
3601 
3602  def add_score(self, score):
3603  """add_score(ScoreAccumulator self, double score)"""
3604  return _IMP_kernel.ScoreAccumulator_add_score(self, score)
3605 
3606 
3607  def get_abort_evaluation(self):
3608  """get_abort_evaluation(ScoreAccumulator self) -> bool"""
3609  return _IMP_kernel.ScoreAccumulator_get_abort_evaluation(self)
3610 
3611 
3612  def get_is_evaluate_if_below(self):
3613  """get_is_evaluate_if_below(ScoreAccumulator self) -> bool"""
3614  return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_below(self)
3615 
3616 
3617  def get_is_evaluate_if_good(self):
3618  """get_is_evaluate_if_good(ScoreAccumulator self) -> bool"""
3619  return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_good(self)
3620 
3621 
3622  def get_maximum(self):
3623  """get_maximum(ScoreAccumulator self) -> double"""
3624  return _IMP_kernel.ScoreAccumulator_get_maximum(self)
3625 
3626 
3627  def get_derivative_accumulator(self):
3628  """get_derivative_accumulator(ScoreAccumulator self) -> DerivativeAccumulator"""
3629  return _IMP_kernel.ScoreAccumulator_get_derivative_accumulator(self)
3630 
3631 
3632  def show(self, *args):
3633  """
3634  show(ScoreAccumulator self, _ostream out)
3635  show(ScoreAccumulator self)
3636  """
3637  return _IMP_kernel.ScoreAccumulator_show(self, *args)
3638 
3639 
3640  def __str__(self):
3641  """__str__(ScoreAccumulator self) -> std::string"""
3642  return _IMP_kernel.ScoreAccumulator___str__(self)
3643 
3644 
3645  def __repr__(self):
3646  """__repr__(ScoreAccumulator self) -> std::string"""
3647  return _IMP_kernel.ScoreAccumulator___repr__(self)
3648 
3649  __swig_destroy__ = _IMP_kernel.delete_ScoreAccumulator
3650  __del__ = lambda self: None
3651 ScoreAccumulator_swigregister = _IMP_kernel.ScoreAccumulator_swigregister
3652 ScoreAccumulator_swigregister(ScoreAccumulator)
3653 
3654 class ScoreState(ModelObject):
3655  """Proxy of C++ IMP::ScoreState class."""
3656 
3657  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3658 
3659  def __init__(self, m, name):
3660  """__init__(IMP::ScoreState self, Model m, std::string name) -> ScoreState"""
3661  if self.__class__ == ScoreState:
3662  _self = None
3663  else:
3664  _self = self
3665  this = _IMP_kernel.new_ScoreState(_self, m, name)
3666  try:
3667  self.this.append(this)
3668  except __builtin__.Exception:
3669  self.this = this
3670 
3671  if self.__class__ != ScoreState:
3672  _director_objects.register(self)
3673 
3674 
3675 
3676 
3677  def before_evaluate(self):
3678  """before_evaluate(ScoreState self)"""
3679  return _IMP_kernel.ScoreState_before_evaluate(self)
3680 
3681 
3682  def after_evaluate(self, accpt):
3683  """after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
3684  return _IMP_kernel.ScoreState_after_evaluate(self, accpt)
3685 
3686 
3687  def get_has_update_order(self):
3688  """get_has_update_order(ScoreState self) -> bool"""
3689  return _IMP_kernel.ScoreState_get_has_update_order(self)
3690 
3691 
3692  def get_update_order(self):
3693  """get_update_order(ScoreState self) -> unsigned int"""
3694  return _IMP_kernel.ScoreState_get_update_order(self)
3695 
3696 
3697  def handle_set_has_required_score_states(self, tf):
3698  """handle_set_has_required_score_states(ScoreState self, bool tf)"""
3699  return _IMP_kernel.ScoreState_handle_set_has_required_score_states(self, tf)
3700 
3701 
3702  def do_before_evaluate(self):
3703  """do_before_evaluate(ScoreState self)"""
3704  return _IMP_kernel.ScoreState_do_before_evaluate(self)
3705 
3706 
3707  def do_after_evaluate(self, accpt):
3708  """do_after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
3709  return _IMP_kernel.ScoreState_do_after_evaluate(self, accpt)
3710 
3711  __swig_destroy__ = _IMP_kernel.delete_ScoreState
3712  __del__ = lambda self: None
3713 
3714  def __str__(self):
3715  """__str__(ScoreState self) -> std::string"""
3716  return _IMP_kernel.ScoreState___str__(self)
3717 
3718 
3719  def __repr__(self):
3720  """__repr__(ScoreState self) -> std::string"""
3721  return _IMP_kernel.ScoreState___repr__(self)
3722 
3723 
3724  @staticmethod
3725  def get_from(o):
3726  return _object_cast_to_ScoreState(o)
3727 
3728 
3729  def get_type_name(self):
3730  return self.__class__.__name__
3731  def do_show(self, out):
3732  pass
3733  def get_version_info(self):
3734  if"IMP" == "IMP":
3735  return VersionInfo(self.__module__,
3736  __import__(self.__module__).get_module_version())
3737  else:
3738  return IMP.VersionInfo(self.__module__,
3739  __import__(self.__module__).get_module_version())
3740  @staticmethod
3741  def get_from(o):
3742  return _object_cast_to_ScoreState(o)
3743 
3744  def __disown__(self):
3745  self.this.disown()
3746  _IMP_kernel.disown_ScoreState(self)
3747  return weakref_proxy(self)
3748 
3749  def do_destroy(self):
3750  """do_destroy(ScoreState self)"""
3751  return _IMP_kernel.ScoreState_do_destroy(self)
3752 
3753 
3754  def do_get_inputs(self):
3755  """do_get_inputs(ScoreState self) -> IMP::ModelObjectsTemp"""
3756  return _IMP_kernel.ScoreState_do_get_inputs(self)
3757 
3758 
3759  def do_get_outputs(self):
3760  """do_get_outputs(ScoreState self) -> IMP::ModelObjectsTemp"""
3761  return _IMP_kernel.ScoreState_do_get_outputs(self)
3762 
3763 
3764  def do_get_interactions(self):
3765  """do_get_interactions(ScoreState self) -> IMP::ModelObjectsTemps"""
3766  return _IMP_kernel.ScoreState_do_get_interactions(self)
3767 
3768 ScoreState_swigregister = _IMP_kernel.ScoreState_swigregister
3769 ScoreState_swigregister(ScoreState)
3770 
3771 
3772 def get_update_order(input):
3773  """get_update_order(IMP::ScoreStatesTemp input) -> IMP::ScoreStatesTemp"""
3774  return _IMP_kernel.get_update_order(input)
3775 class Constraint(ScoreState):
3776  """Proxy of C++ IMP::Constraint class."""
3777 
3778  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3779 
3780  def __init__(self, *args):
3781  """
3782  __init__(IMP::Constraint self, Model m, std::string name) -> Constraint
3783  __init__(IMP::Constraint self, Model m) -> Constraint
3784  """
3785  if self.__class__ == Constraint:
3786  _self = None
3787  else:
3788  _self = self
3789  this = _IMP_kernel.new_Constraint(_self, *args)
3790  try:
3791  self.this.append(this)
3792  except __builtin__.Exception:
3793  self.this = this
3794 
3795  if self.__class__ != Constraint:
3796  _director_objects.register(self)
3797 
3798 
3799 
3800 
3801  def do_update_attributes(self):
3802  """do_update_attributes(Constraint self)"""
3803  return _IMP_kernel.Constraint_do_update_attributes(self)
3804 
3805 
3806  def do_update_derivatives(self, da):
3807  """do_update_derivatives(Constraint self, DerivativeAccumulator da)"""
3808  return _IMP_kernel.Constraint_do_update_derivatives(self, da)
3809 
3810 
3811  def do_before_evaluate(self):
3812  """do_before_evaluate(Constraint self)"""
3813  return _IMP_kernel.Constraint_do_before_evaluate(self)
3814 
3815 
3816  def do_after_evaluate(self, da):
3817  """do_after_evaluate(Constraint self, DerivativeAccumulator da)"""
3818  return _IMP_kernel.Constraint_do_after_evaluate(self, da)
3819 
3820  __swig_destroy__ = _IMP_kernel.delete_Constraint
3821  __del__ = lambda self: None
3822 
3823  def __str__(self):
3824  """__str__(Constraint self) -> std::string"""
3825  return _IMP_kernel.Constraint___str__(self)
3826 
3827 
3828  def __repr__(self):
3829  """__repr__(Constraint self) -> std::string"""
3830  return _IMP_kernel.Constraint___repr__(self)
3831 
3832 
3833  @staticmethod
3834  def get_from(o):
3835  return _object_cast_to_Constraint(o)
3836 
3837 
3838  def get_type_name(self):
3839  return self.__class__.__name__
3840  def do_show(self, out):
3841  pass
3842  def get_version_info(self):
3843  if"IMP" == "IMP":
3844  return VersionInfo(self.__module__,
3845  __import__(self.__module__).get_module_version())
3846  else:
3847  return IMP.VersionInfo(self.__module__,
3848  __import__(self.__module__).get_module_version())
3849  @staticmethod
3850  def get_from(o):
3851  return _object_cast_to_Constraint(o)
3852 
3853  def __disown__(self):
3854  self.this.disown()
3855  _IMP_kernel.disown_Constraint(self)
3856  return weakref_proxy(self)
3857 
3858  def do_destroy(self):
3859  """do_destroy(Constraint self)"""
3860  return _IMP_kernel.Constraint_do_destroy(self)
3861 
3862 
3863  def do_get_inputs(self):
3864  """do_get_inputs(Constraint self) -> IMP::ModelObjectsTemp"""
3865  return _IMP_kernel.Constraint_do_get_inputs(self)
3866 
3867 
3868  def do_get_outputs(self):
3869  """do_get_outputs(Constraint self) -> IMP::ModelObjectsTemp"""
3870  return _IMP_kernel.Constraint_do_get_outputs(self)
3871 
3872 
3873  def do_get_interactions(self):
3874  """do_get_interactions(Constraint self) -> IMP::ModelObjectsTemps"""
3875  return _IMP_kernel.Constraint_do_get_interactions(self)
3876 
3877 Constraint_swigregister = _IMP_kernel.Constraint_swigregister
3878 Constraint_swigregister(Constraint)
3879 
3880 class Container(ModelObject):
3881  """Proxy of C++ IMP::Container class."""
3882 
3883  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3884 
3885  def __init__(self, *args):
3886  """
3887  __init__(IMP::Container self, Model m, std::string name) -> Container
3888  __init__(IMP::Container self, Model m) -> Container
3889  """
3890  if self.__class__ == Container:
3891  _self = None
3892  else:
3893  _self = self
3894  this = _IMP_kernel.new_Container(_self, *args)
3895  try:
3896  self.this.append(this)
3897  except __builtin__.Exception:
3898  self.this = this
3899 
3900  if self.__class__ != Container:
3901  _director_objects.register(self)
3902 
3903 
3904 
3905 
3906  def do_get_contents_hash(self):
3907  """do_get_contents_hash(Container self) -> std::size_t"""
3908  return _IMP_kernel.Container_do_get_contents_hash(self)
3909 
3910 
3911  def get_all_possible_indexes(self):
3912  """get_all_possible_indexes(Container self) -> IMP::ParticleIndexes"""
3913  return _IMP_kernel.Container_get_all_possible_indexes(self)
3914 
3915 
3916  def get_contents_hash(self):
3917  """get_contents_hash(Container self) -> std::size_t"""
3918  return _IMP_kernel.Container_get_contents_hash(self)
3919 
3920 
3921  def do_get_outputs(self):
3922  """do_get_outputs(Container self) -> IMP::ModelObjectsTemp"""
3923  return _IMP_kernel.Container_do_get_outputs(self)
3924 
3925 
3926  def get_is_decomposable(self):
3927  """get_is_decomposable(Container self) -> bool"""
3928  return _IMP_kernel.Container_get_is_decomposable(self)
3929 
3930 
3931  def validate_readable(self):
3932  """validate_readable(Container self)"""
3933  return _IMP_kernel.Container_validate_readable(self)
3934 
3935 
3936  def validate_writable(self):
3937  """validate_writable(Container self)"""
3938  return _IMP_kernel.Container_validate_writable(self)
3939 
3940 
3941  def set_is_readable(self, tf):
3942  """set_is_readable(Container self, bool tf)"""
3943  return _IMP_kernel.Container_set_is_readable(self, tf)
3944 
3945 
3946  def set_is_writable(self, tf):
3947  """set_is_writable(Container self, bool tf)"""
3948  return _IMP_kernel.Container_set_is_writable(self, tf)
3949 
3950  __swig_destroy__ = _IMP_kernel.delete_Container
3951  __del__ = lambda self: None
3952 
3953  def __str__(self):
3954  """__str__(Container self) -> std::string"""
3955  return _IMP_kernel.Container___str__(self)
3956 
3957 
3958  def __repr__(self):
3959  """__repr__(Container self) -> std::string"""
3960  return _IMP_kernel.Container___repr__(self)
3961 
3962 
3963  @staticmethod
3964  def get_from(o):
3965  return _object_cast_to_Container(o)
3966 
3967 
3968  def get_type_name(self):
3969  return self.__class__.__name__
3970  def do_show(self, out):
3971  pass
3972  def get_version_info(self):
3973  if"IMP" == "IMP":
3974  return VersionInfo(self.__module__,
3975  __import__(self.__module__).get_module_version())
3976  else:
3977  return IMP.VersionInfo(self.__module__,
3978  __import__(self.__module__).get_module_version())
3979  @staticmethod
3980  def get_from(o):
3981  return _object_cast_to_Container(o)
3982 
3983  def __disown__(self):
3984  self.this.disown()
3985  _IMP_kernel.disown_Container(self)
3986  return weakref_proxy(self)
3987 
3988  def do_destroy(self):
3989  """do_destroy(Container self)"""
3990  return _IMP_kernel.Container_do_destroy(self)
3991 
3992 
3993  def handle_set_has_required_score_states(self, arg0):
3994  """handle_set_has_required_score_states(Container self, bool arg0)"""
3995  return _IMP_kernel.Container_handle_set_has_required_score_states(self, arg0)
3996 
3997 
3998  def do_get_inputs(self):
3999  """do_get_inputs(Container self) -> IMP::ModelObjectsTemp"""
4000  return _IMP_kernel.Container_do_get_inputs(self)
4001 
4002 
4003  def do_get_interactions(self):
4004  """do_get_interactions(Container self) -> IMP::ModelObjectsTemps"""
4005  return _IMP_kernel.Container_do_get_interactions(self)
4006 
4007 Container_swigregister = _IMP_kernel.Container_swigregister
4008 Container_swigregister(Container)
4009 
4010 class RestraintInfo(Object):
4011  """Proxy of C++ IMP::RestraintInfo class."""
4012 
4013  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4014 
4015  def __init__(self, *args):
4016  """
4017  __init__(IMP::RestraintInfo self, std::string name) -> RestraintInfo
4018  __init__(IMP::RestraintInfo self) -> RestraintInfo
4019  """
4020  this = _IMP_kernel.new_RestraintInfo(*args)
4021  try:
4022  self.this.append(this)
4023  except __builtin__.Exception:
4024  self.this = this
4025 
4026  def add_int(self, key, value):
4027  """add_int(RestraintInfo self, std::string key, int value)"""
4028  return _IMP_kernel.RestraintInfo_add_int(self, key, value)
4029 
4030 
4031  def get_number_of_int(self):
4032  """get_number_of_int(RestraintInfo self) -> unsigned int"""
4033  return _IMP_kernel.RestraintInfo_get_number_of_int(self)
4034 
4035 
4036  def get_int_key(self, i):
4037  """get_int_key(RestraintInfo self, unsigned int i) -> std::string"""
4038  return _IMP_kernel.RestraintInfo_get_int_key(self, i)
4039 
4040 
4041  def get_int_value(self, i):
4042  """get_int_value(RestraintInfo self, unsigned int i) -> int"""
4043  return _IMP_kernel.RestraintInfo_get_int_value(self, i)
4044 
4045 
4046  def add_float(self, key, value):
4047  """add_float(RestraintInfo self, std::string key, double value)"""
4048  return _IMP_kernel.RestraintInfo_add_float(self, key, value)
4049 
4050 
4051  def get_number_of_float(self):
4052  """get_number_of_float(RestraintInfo self) -> unsigned int"""
4053  return _IMP_kernel.RestraintInfo_get_number_of_float(self)
4054 
4055 
4056  def get_float_key(self, i):
4057  """get_float_key(RestraintInfo self, unsigned int i) -> std::string"""
4058  return _IMP_kernel.RestraintInfo_get_float_key(self, i)
4059 
4060 
4061  def get_float_value(self, i):
4062  """get_float_value(RestraintInfo self, unsigned int i) -> double"""
4063  return _IMP_kernel.RestraintInfo_get_float_value(self, i)
4064 
4065 
4066  def add_string(self, key, value):
4067  """add_string(RestraintInfo self, std::string key, std::string value)"""
4068  return _IMP_kernel.RestraintInfo_add_string(self, key, value)
4069 
4070 
4071  def get_number_of_string(self):
4072  """get_number_of_string(RestraintInfo self) -> unsigned int"""
4073  return _IMP_kernel.RestraintInfo_get_number_of_string(self)
4074 
4075 
4076  def get_string_key(self, i):
4077  """get_string_key(RestraintInfo self, unsigned int i) -> std::string"""
4078  return _IMP_kernel.RestraintInfo_get_string_key(self, i)
4079 
4080 
4081  def get_string_value(self, i):
4082  """get_string_value(RestraintInfo self, unsigned int i) -> std::string"""
4083  return _IMP_kernel.RestraintInfo_get_string_value(self, i)
4084 
4085 
4086  def add_filename(self, key, value):
4087  """add_filename(RestraintInfo self, std::string key, std::string value)"""
4088  return _IMP_kernel.RestraintInfo_add_filename(self, key, value)
4089 
4090 
4091  def get_number_of_filename(self):
4092  """get_number_of_filename(RestraintInfo self) -> unsigned int"""
4093  return _IMP_kernel.RestraintInfo_get_number_of_filename(self)
4094 
4095 
4096  def get_filename_key(self, i):
4097  """get_filename_key(RestraintInfo self, unsigned int i) -> std::string"""
4098  return _IMP_kernel.RestraintInfo_get_filename_key(self, i)
4099 
4100 
4101  def get_filename_value(self, i):
4102  """get_filename_value(RestraintInfo self, unsigned int i) -> std::string"""
4103  return _IMP_kernel.RestraintInfo_get_filename_value(self, i)
4104 
4105 
4106  def add_floats(self, key, value):
4107  """add_floats(RestraintInfo self, std::string key, IMP::Floats value)"""
4108  return _IMP_kernel.RestraintInfo_add_floats(self, key, value)
4109 
4110 
4111  def get_number_of_floats(self):
4112  """get_number_of_floats(RestraintInfo self) -> unsigned int"""
4113  return _IMP_kernel.RestraintInfo_get_number_of_floats(self)
4114 
4115 
4116  def get_floats_key(self, i):
4117  """get_floats_key(RestraintInfo self, unsigned int i) -> std::string"""
4118  return _IMP_kernel.RestraintInfo_get_floats_key(self, i)
4119 
4120 
4121  def get_floats_value(self, i):
4122  """get_floats_value(RestraintInfo self, unsigned int i) -> IMP::Floats"""
4123  return _IMP_kernel.RestraintInfo_get_floats_value(self, i)
4124 
4125 
4126  def add_ints(self, key, value):
4127  """add_ints(RestraintInfo self, std::string key, IMP::Ints value)"""
4128  return _IMP_kernel.RestraintInfo_add_ints(self, key, value)
4129 
4130 
4131  def get_number_of_ints(self):
4132  """get_number_of_ints(RestraintInfo self) -> unsigned int"""
4133  return _IMP_kernel.RestraintInfo_get_number_of_ints(self)
4134 
4135 
4136  def get_ints_key(self, i):
4137  """get_ints_key(RestraintInfo self, unsigned int i) -> std::string"""
4138  return _IMP_kernel.RestraintInfo_get_ints_key(self, i)
4139 
4140 
4141  def get_ints_value(self, i):
4142  """get_ints_value(RestraintInfo self, unsigned int i) -> IMP::Ints"""
4143  return _IMP_kernel.RestraintInfo_get_ints_value(self, i)
4144 
4145 
4146  def add_strings(self, key, value):
4147  """add_strings(RestraintInfo self, std::string key, IMP::Strings value)"""
4148  return _IMP_kernel.RestraintInfo_add_strings(self, key, value)
4149 
4150 
4151  def get_number_of_strings(self):
4152  """get_number_of_strings(RestraintInfo self) -> unsigned int"""
4153  return _IMP_kernel.RestraintInfo_get_number_of_strings(self)
4154 
4155 
4156  def get_strings_key(self, i):
4157  """get_strings_key(RestraintInfo self, unsigned int i) -> std::string"""
4158  return _IMP_kernel.RestraintInfo_get_strings_key(self, i)
4159 
4160 
4161  def get_strings_value(self, i):
4162  """get_strings_value(RestraintInfo self, unsigned int i) -> IMP::Strings"""
4163  return _IMP_kernel.RestraintInfo_get_strings_value(self, i)
4164 
4165 
4166  def add_filenames(self, key, value):
4167  """add_filenames(RestraintInfo self, std::string key, IMP::Strings value)"""
4168  return _IMP_kernel.RestraintInfo_add_filenames(self, key, value)
4169 
4170 
4171  def get_number_of_filenames(self):
4172  """get_number_of_filenames(RestraintInfo self) -> unsigned int"""
4173  return _IMP_kernel.RestraintInfo_get_number_of_filenames(self)
4174 
4175 
4176  def get_filenames_key(self, i):
4177  """get_filenames_key(RestraintInfo self, unsigned int i) -> std::string"""
4178  return _IMP_kernel.RestraintInfo_get_filenames_key(self, i)
4179 
4180 
4181  def get_filenames_value(self, i):
4182  """get_filenames_value(RestraintInfo self, unsigned int i) -> IMP::Strings"""
4183  return _IMP_kernel.RestraintInfo_get_filenames_value(self, i)
4184 
4185 
4186  def add_particle_indexes(self, key, value):
4187  """add_particle_indexes(RestraintInfo self, std::string key, IMP::ParticleIndexes value)"""
4188  return _IMP_kernel.RestraintInfo_add_particle_indexes(self, key, value)
4189 
4190 
4191  def get_number_of_particle_indexes(self):
4192  """get_number_of_particle_indexes(RestraintInfo self) -> unsigned int"""
4193  return _IMP_kernel.RestraintInfo_get_number_of_particle_indexes(self)
4194 
4195 
4196  def get_particle_indexes_key(self, i):
4197  """get_particle_indexes_key(RestraintInfo self, unsigned int i) -> std::string"""
4198  return _IMP_kernel.RestraintInfo_get_particle_indexes_key(self, i)
4199 
4200 
4201  def get_particle_indexes_value(self, i):
4202  """get_particle_indexes_value(RestraintInfo self, unsigned int i) -> IMP::ParticleIndexes"""
4203  return _IMP_kernel.RestraintInfo_get_particle_indexes_value(self, i)
4204 
4205 
4206  def get_version_info(self):
4207  """get_version_info(RestraintInfo self) -> VersionInfo"""
4208  return _IMP_kernel.RestraintInfo_get_version_info(self)
4209 
4210 
4211  def __str__(self):
4212  """__str__(RestraintInfo self) -> std::string"""
4213  return _IMP_kernel.RestraintInfo___str__(self)
4214 
4215 
4216  def __repr__(self):
4217  """__repr__(RestraintInfo self) -> std::string"""
4218  return _IMP_kernel.RestraintInfo___repr__(self)
4219 
4220 
4221  @staticmethod
4222  def get_from(o):
4223  return _object_cast_to_RestraintInfo(o)
4224 
4225 RestraintInfo_swigregister = _IMP_kernel.RestraintInfo_swigregister
4226 RestraintInfo_swigregister(RestraintInfo)
4227 
4228 class Restraint(ModelObject):
4229  """Proxy of C++ IMP::Restraint class."""
4230 
4231  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4232 
4233  def __init__(self, m, name):
4234  """__init__(IMP::Restraint self, Model m, std::string name) -> Restraint"""
4235  if self.__class__ == Restraint:
4236  _self = None
4237  else:
4238  _self = self
4239  this = _IMP_kernel.new_Restraint(_self, m, name)
4240  try:
4241  self.this.append(this)
4242  except __builtin__.Exception:
4243  self.this = this
4244 
4245  if self.__class__ != Restraint:
4246  _director_objects.register(self)
4247 
4248 
4249 
4250 
4251  def get_score(self):
4252  """get_score(Restraint self) -> double"""
4253  return _IMP_kernel.Restraint_get_score(self)
4254 
4255 
4256  def evaluate(self, calc_derivs):
4257  """evaluate(Restraint self, bool calc_derivs) -> double"""
4258  return _IMP_kernel.Restraint_evaluate(self, calc_derivs)
4259 
4260 
4261  def evaluate_if_good(self, calc_derivatives):
4262  """evaluate_if_good(Restraint self, bool calc_derivatives) -> double"""
4263  return _IMP_kernel.Restraint_evaluate_if_good(self, calc_derivatives)
4264 
4265 
4266  def evaluate_if_below(self, calc_derivatives, max):
4267  """evaluate_if_below(Restraint self, bool calc_derivatives, double max) -> double"""
4268  return _IMP_kernel.Restraint_evaluate_if_below(self, calc_derivatives, max)
4269 
4270 
4271  def unprotected_evaluate(self, da):
4272  """unprotected_evaluate(Restraint self, DerivativeAccumulator da) -> double"""
4273  return _IMP_kernel.Restraint_unprotected_evaluate(self, da)
4274 
4275 
4276  def unprotected_evaluate_if_good(self, da, max):
4277  """unprotected_evaluate_if_good(Restraint self, DerivativeAccumulator da, double max) -> double"""
4278  return _IMP_kernel.Restraint_unprotected_evaluate_if_good(self, da, max)
4279 
4280 
4281  def unprotected_evaluate_if_below(self, da, max):
4282  """unprotected_evaluate_if_below(Restraint self, DerivativeAccumulator da, double max) -> double"""
4283  return _IMP_kernel.Restraint_unprotected_evaluate_if_below(self, da, max)
4284 
4285 
4286  def get_static_info(self):
4287  """get_static_info(Restraint self) -> RestraintInfo"""
4288  return _IMP_kernel.Restraint_get_static_info(self)
4289 
4290 
4291  def get_dynamic_info(self):
4292  """get_dynamic_info(Restraint self) -> RestraintInfo"""
4293  return _IMP_kernel.Restraint_get_dynamic_info(self)
4294 
4295 
4296  def add_score_and_derivatives(self, sa):
4297  """add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
4298  return _IMP_kernel.Restraint_add_score_and_derivatives(self, sa)
4299 
4300 
4301  def create_decomposition(self):
4302  """create_decomposition(Restraint self) -> Restraint"""
4303  return _IMP_kernel.Restraint_create_decomposition(self)
4304 
4305 
4306  def create_current_decomposition(self):
4307  """create_current_decomposition(Restraint self) -> Restraint"""
4308  return _IMP_kernel.Restraint_create_current_decomposition(self)
4309 
4310 
4311  def set_weight(self, weight):
4312  """set_weight(Restraint self, IMP::Float weight)"""
4313  return _IMP_kernel.Restraint_set_weight(self, weight)
4314 
4315 
4316  def get_weight(self):
4317  """get_weight(Restraint self) -> IMP::Float"""
4318  return _IMP_kernel.Restraint_get_weight(self)
4319 
4320 
4321  def get_maximum_score(self):
4322  """get_maximum_score(Restraint self) -> double"""
4323  return _IMP_kernel.Restraint_get_maximum_score(self)
4324 
4325 
4326  def set_maximum_score(self, s):
4327  """set_maximum_score(Restraint self, double s)"""
4328  return _IMP_kernel.Restraint_set_maximum_score(self, s)
4329 
4330 
4331  def create_scoring_function(self, *args):
4332  """
4333  create_scoring_function(Restraint self, double weight=1.0, double max) -> ScoringFunction
4334  create_scoring_function(Restraint self, double weight=1.0) -> ScoringFunction
4335  create_scoring_function(Restraint self) -> ScoringFunction
4336  """
4337  return _IMP_kernel.Restraint_create_scoring_function(self, *args)
4338 
4339 
4340  def set_last_score(self, s):
4341  """set_last_score(Restraint self, double s)"""
4342  return _IMP_kernel.Restraint_set_last_score(self, s)
4343 
4344 
4345  def get_last_score(self):
4346  """get_last_score(Restraint self) -> double"""
4347  return _IMP_kernel.Restraint_get_last_score(self)
4348 
4349 
4350  def get_was_good(self):
4351  """get_was_good(Restraint self) -> bool"""
4352  return _IMP_kernel.Restraint_get_was_good(self)
4353 
4354  __swig_destroy__ = _IMP_kernel.delete_Restraint
4355  __del__ = lambda self: None
4356 
4357  def do_create_decomposition(self):
4358  """do_create_decomposition(Restraint self) -> IMP::Restraints"""
4359  return _IMP_kernel.Restraint_do_create_decomposition(self)
4360 
4361 
4362  def do_create_current_decomposition(self):
4363  """do_create_current_decomposition(Restraint self) -> IMP::Restraints"""
4364  return _IMP_kernel.Restraint_do_create_current_decomposition(self)
4365 
4366 
4367  def do_add_score_and_derivatives(self, sa):
4368  """do_add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
4369  return _IMP_kernel.Restraint_do_add_score_and_derivatives(self, sa)
4370 
4371 
4372  def do_get_outputs(self):
4373  """do_get_outputs(Restraint self) -> IMP::ModelObjectsTemp"""
4374  return _IMP_kernel.Restraint_do_get_outputs(self)
4375 
4376 
4377  def __str__(self):
4378  """__str__(Restraint self) -> std::string"""
4379  return _IMP_kernel.Restraint___str__(self)
4380 
4381 
4382  def __repr__(self):
4383  """__repr__(Restraint self) -> std::string"""
4384  return _IMP_kernel.Restraint___repr__(self)
4385 
4386 
4387  @staticmethod
4388  def get_from(o):
4389  return _object_cast_to_Restraint(o)
4390 
4391 
4392  def get_type_name(self):
4393  return self.__class__.__name__
4394  def do_show(self, out):
4395  pass
4396  def get_version_info(self):
4397  if"IMP" == "IMP":
4398  return VersionInfo(self.__module__,
4399  __import__(self.__module__).get_module_version())
4400  else:
4401  return IMP.VersionInfo(self.__module__,
4402  __import__(self.__module__).get_module_version())
4403  @staticmethod
4404  def get_from(o):
4405  return _object_cast_to_Restraint(o)
4406 
4407  def __disown__(self):
4408  self.this.disown()
4409  _IMP_kernel.disown_Restraint(self)
4410  return weakref_proxy(self)
4411 
4412  def do_destroy(self):
4413  """do_destroy(Restraint self)"""
4414  return _IMP_kernel.Restraint_do_destroy(self)
4415 
4416 
4417  def handle_set_has_required_score_states(self, arg0):
4418  """handle_set_has_required_score_states(Restraint self, bool arg0)"""
4419  return _IMP_kernel.Restraint_handle_set_has_required_score_states(self, arg0)
4420 
4421 
4422  def do_get_inputs(self):
4423  """do_get_inputs(Restraint self) -> IMP::ModelObjectsTemp"""
4424  return _IMP_kernel.Restraint_do_get_inputs(self)
4425 
4426 
4427  def do_get_interactions(self):
4428  """do_get_interactions(Restraint self) -> IMP::ModelObjectsTemps"""
4429  return _IMP_kernel.Restraint_do_get_interactions(self)
4430 
4431 Restraint_swigregister = _IMP_kernel.Restraint_swigregister
4432 Restraint_swigregister(Restraint)
4433 
4434 class _RestraintsAdaptor(_InputAdaptor):
4435  """Proxy of C++ IMP::RestraintsAdaptor class."""
4436 
4437  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4438  __repr__ = _swig_repr
4439 
4440  def __init__(self, *args):
4441  """
4442  __init__(IMP::RestraintsAdaptor self) -> _RestraintsAdaptor
4443  __init__(IMP::RestraintsAdaptor self, IMP::Restraints const & sf) -> _RestraintsAdaptor
4444  __init__(IMP::RestraintsAdaptor self, IMP::RestraintsTemp const & sf) -> _RestraintsAdaptor
4445  __init__(IMP::RestraintsAdaptor self, Restraint sf) -> _RestraintsAdaptor
4446  """
4447  this = _IMP_kernel.new__RestraintsAdaptor(*args)
4448  try:
4449  self.this.append(this)
4450  except __builtin__.Exception:
4451  self.this = this
4452  __swig_destroy__ = _IMP_kernel.delete__RestraintsAdaptor
4453  __del__ = lambda self: None
4454 _RestraintsAdaptor_swigregister = _IMP_kernel._RestraintsAdaptor_swigregister
4455 _RestraintsAdaptor_swigregister(_RestraintsAdaptor)
4456 
4457 class RestraintSet(Restraint):
4458  """Proxy of C++ IMP::RestraintSet class."""
4459 
4460  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4461 
4462  def __init__(self, *args):
4463  """
4464  __init__(IMP::RestraintSet self, Model m, double weight, std::string const & name) -> RestraintSet
4465  __init__(IMP::RestraintSet self, Model m, double weight) -> RestraintSet
4466  __init__(IMP::RestraintSet self, Model m, std::string const & name) -> RestraintSet
4467  __init__(IMP::RestraintSet self, Model m) -> RestraintSet
4468  __init__(IMP::RestraintSet self, IMP::RestraintsTemp const & rs, double weight, std::string const & name) -> RestraintSet
4469  __init__(IMP::RestraintSet self, IMP::RestraintsTemp const & rs, double weight) -> RestraintSet
4470  """
4471  if self.__class__ == RestraintSet:
4472  _self = None
4473  else:
4474  _self = self
4475  this = _IMP_kernel.new_RestraintSet(_self, *args)
4476  try:
4477  self.this.append(this)
4478  except __builtin__.Exception:
4479  self.this = this
4480 
4481  if self.__class__ != RestraintSet:
4482  _director_objects.register(self)
4483 
4484 
4485 
4486 
4487  def unprotected_evaluate(self, da):
4488  """unprotected_evaluate(RestraintSet self, DerivativeAccumulator da) -> double"""
4489  return _IMP_kernel.RestraintSet_unprotected_evaluate(self, da)
4490 
4491 
4492  def get_type_name(self):
4493  """get_type_name(RestraintSet self) -> std::string"""
4494  return _IMP_kernel.RestraintSet_get_type_name(self)
4495 
4496 
4497  def get_version_info(self):
4498  """get_version_info(RestraintSet self) -> VersionInfo"""
4499  return _IMP_kernel.RestraintSet_get_version_info(self)
4500 
4501 
4502  def remove_restraint(self, d):
4503  """remove_restraint(RestraintSet self, Restraint d)"""
4504  return _IMP_kernel.RestraintSet_remove_restraint(self, d)
4505 
4506 
4507  def remove_restraints(self, d):
4508  """remove_restraints(RestraintSet self, IMP::Restraints const & d)"""
4509  return _IMP_kernel.RestraintSet_remove_restraints(self, d)
4510 
4511 
4512  def set_restraints(self, ps):
4513  """set_restraints(RestraintSet self, IMP::Restraints const & ps)"""
4514  return _IMP_kernel.RestraintSet_set_restraints(self, ps)
4515 
4516 
4517  def set_restraints_order(self, objs):
4518  """set_restraints_order(RestraintSet self, IMP::Restraints const & objs)"""
4519  return _IMP_kernel.RestraintSet_set_restraints_order(self, objs)
4520 
4521 
4522  def add_restraint(self, obj):
4523  """add_restraint(RestraintSet self, Restraint obj) -> unsigned int"""
4524  return _IMP_kernel.RestraintSet_add_restraint(self, obj)
4525 
4526 
4527  def add_restraints(self, objs):
4528  """add_restraints(RestraintSet self, IMP::Restraints const & objs)"""
4529  return _IMP_kernel.RestraintSet_add_restraints(self, objs)
4530 
4531 
4532  def clear_restraints(self):
4533  """clear_restraints(RestraintSet self)"""
4534  return _IMP_kernel.RestraintSet_clear_restraints(self)
4535 
4536 
4537  def get_number_of_restraints(self):
4538  """get_number_of_restraints(RestraintSet self) -> unsigned int"""
4539  return _IMP_kernel.RestraintSet_get_number_of_restraints(self)
4540 
4541 
4542  def get_has_restraints(self):
4543  """get_has_restraints(RestraintSet self) -> bool"""
4544  return _IMP_kernel.RestraintSet_get_has_restraints(self)
4545 
4546 
4547  def get_restraint(self, i):
4548  """get_restraint(RestraintSet self, unsigned int i) -> Restraint"""
4549  return _IMP_kernel.RestraintSet_get_restraint(self, i)
4550 
4551 
4552  def get_restraints(self):
4553  """get_restraints(RestraintSet self) -> IMP::Restraints"""
4554  return _IMP_kernel.RestraintSet_get_restraints(self)
4555 
4556 
4557  def reserve_restraints(self, sz):
4558  """reserve_restraints(RestraintSet self, unsigned int sz)"""
4559  return _IMP_kernel.RestraintSet_reserve_restraints(self, sz)
4560 
4561 
4562  def get_non_sets_and_sets(self):
4563  """get_non_sets_and_sets(RestraintSet self) -> std::pair< IMP::RestraintsTemp,IMP::RestraintSetsTemp >"""
4564  return _IMP_kernel.RestraintSet_get_non_sets_and_sets(self)
4565 
4566 
4567  def do_get_inputs(self):
4568  """do_get_inputs(RestraintSet self) -> IMP::ModelObjectsTemp"""
4569  return _IMP_kernel.RestraintSet_do_get_inputs(self)
4570 
4571 
4572  def create_scoring_function(self, *args):
4573  """
4574  create_scoring_function(RestraintSet self, double weight=1.0, double max) -> ScoringFunction
4575  create_scoring_function(RestraintSet self, double weight=1.0) -> ScoringFunction
4576  create_scoring_function(RestraintSet self) -> ScoringFunction
4577  """
4578  return _IMP_kernel.RestraintSet_create_scoring_function(self, *args)
4579 
4580 
4581  def get_last_score(self):
4582  """get_last_score(RestraintSet self) -> double"""
4583  return _IMP_kernel.RestraintSet_get_last_score(self)
4584 
4585 
4586  def __str__(self):
4587  """__str__(RestraintSet self) -> std::string"""
4588  return _IMP_kernel.RestraintSet___str__(self)
4589 
4590 
4591  def __repr__(self):
4592  """__repr__(RestraintSet self) -> std::string"""
4593  return _IMP_kernel.RestraintSet___repr__(self)
4594 
4595 
4596  @staticmethod
4597  def get_from(o):
4598  return _object_cast_to_RestraintSet(o)
4599 
4600 
4601  def get_type_name(self):
4602  return self.__class__.__name__
4603  def do_show(self, out):
4604  pass
4605  def get_version_info(self):
4606  if"IMP" == "IMP":
4607  return VersionInfo(self.__module__,
4608  __import__(self.__module__).get_module_version())
4609  else:
4610  return IMP.VersionInfo(self.__module__,
4611  __import__(self.__module__).get_module_version())
4612  @staticmethod
4613  def get_from(o):
4614  return _object_cast_to_RestraintSet(o)
4615 
4616  def __disown__(self):
4617  self.this.disown()
4618  _IMP_kernel.disown_RestraintSet(self)
4619  return weakref_proxy(self)
4620 
4621  def do_destroy(self):
4622  """do_destroy(RestraintSet self)"""
4623  return _IMP_kernel.RestraintSet_do_destroy(self)
4624 
4625 
4626  def handle_set_has_required_score_states(self, arg0):
4627  """handle_set_has_required_score_states(RestraintSet self, bool arg0)"""
4628  return _IMP_kernel.RestraintSet_handle_set_has_required_score_states(self, arg0)
4629 
4630 
4631  def do_get_outputs(self):
4632  """do_get_outputs(RestraintSet self) -> IMP::ModelObjectsTemp"""
4633  return _IMP_kernel.RestraintSet_do_get_outputs(self)
4634 
4635 
4636  def do_get_interactions(self):
4637  """do_get_interactions(RestraintSet self) -> IMP::ModelObjectsTemps"""
4638  return _IMP_kernel.RestraintSet_do_get_interactions(self)
4639 
4640 
4641  def do_create_decomposition(self):
4642  """do_create_decomposition(RestraintSet self) -> IMP::Restraints"""
4643  return _IMP_kernel.RestraintSet_do_create_decomposition(self)
4644 
4645 
4646  def do_create_current_decomposition(self):
4647  """do_create_current_decomposition(RestraintSet self) -> IMP::Restraints"""
4648  return _IMP_kernel.RestraintSet_do_create_current_decomposition(self)
4649 
4650 
4651  def do_add_score_and_derivatives(self, sa):
4652  """do_add_score_and_derivatives(RestraintSet self, ScoreAccumulator sa)"""
4653  return _IMP_kernel.RestraintSet_do_add_score_and_derivatives(self, sa)
4654 
4655 RestraintSet_swigregister = _IMP_kernel.RestraintSet_swigregister
4656 RestraintSet_swigregister(RestraintSet)
4657 
4658 
4659 def get_restraints(rs):
4660  """get_restraints(IMP::RestraintsTemp const & rs) -> IMP::RestraintsTemp"""
4661  return _IMP_kernel.get_restraints(rs)
4662 
4663 def _check_particle(p, a):
4664  if (not p.get_is_active()):
4665  raise ValueError("Inactive Particle")
4666  if (type(a)() == a):
4667  raise IndexError("Cannot use default Index")
4668  if (not p.has_attribute(a)):
4669  raise IndexError("Particle does not have attribute")
4670 
4671 class Particle(ModelObject):
4672  """Proxy of C++ IMP::Particle class."""
4673 
4674  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4675 
4676  def get_version_info(self):
4677  """get_version_info(Particle self) -> VersionInfo"""
4678  return _IMP_kernel.Particle_get_version_info(self)
4679 
4680 
4681  def __init__(self, *args):
4682  """
4683  __init__(IMP::Particle self, Model m, std::string name) -> Particle
4684  __init__(IMP::Particle self, Model m) -> Particle
4685  """
4686  this = _IMP_kernel.new_Particle(*args)
4687  try:
4688  self.this.append(this)
4689  except __builtin__.Exception:
4690  self.this = this
4691 
4692  def get_float_keys(self):
4693  """get_float_keys(Particle self) -> IMP::FloatKeys"""
4694  return _IMP_kernel.Particle_get_float_keys(self)
4695 
4696 
4697  def get_int_keys(self):
4698  """get_int_keys(Particle self) -> IMP::IntKeys"""
4699  return _IMP_kernel.Particle_get_int_keys(self)
4700 
4701 
4702  def get_string_keys(self):
4703  """get_string_keys(Particle self) -> IMP::StringKeys"""
4704  return _IMP_kernel.Particle_get_string_keys(self)
4705 
4706 
4707  def get_object_keys(self):
4708  """get_object_keys(Particle self) -> IMP::ObjectKeys"""
4709  return _IMP_kernel.Particle_get_object_keys(self)
4710 
4711 
4712  def add_cache_attribute(self, *args):
4713  """
4714  add_cache_attribute(Particle self, FloatKey name, IMP::Float value)
4715  add_cache_attribute(Particle self, IntKey name, IMP::Int value)
4716  add_cache_attribute(Particle self, StringKey name, IMP::String value)
4717  add_cache_attribute(Particle self, ObjectKey name, Object value)
4718  add_cache_attribute(Particle self, IMP::WeakObjectKey name, Object value)
4719  """
4720  return _IMP_kernel.Particle_add_cache_attribute(self, *args)
4721 
4722 
4723  def get_weak_object_keys(self):
4724  """get_weak_object_keys(Particle self) -> IMP::WeakObjectKeys"""
4725  return _IMP_kernel.Particle_get_weak_object_keys(self)
4726 
4727 
4728  def add_to_derivative(self, key, value, da):
4729  """add_to_derivative(Particle self, FloatKey key, IMP::Float value, DerivativeAccumulator da)"""
4730  return _IMP_kernel.Particle_add_to_derivative(self, key, value, da)
4731 
4732 
4733  def set_is_optimized(self, k, tf):
4734  """set_is_optimized(Particle self, FloatKey k, bool tf)"""
4735  return _IMP_kernel.Particle_set_is_optimized(self, k, tf)
4736 
4737 
4738  def get_is_optimized(self, k):
4739  """get_is_optimized(Particle self, FloatKey k) -> bool"""
4740  return _IMP_kernel.Particle_get_is_optimized(self, k)
4741 
4742 
4743  def get_derivative(self, k):
4744  """get_derivative(Particle self, FloatKey k) -> IMP::Float"""
4745  return _IMP_kernel.Particle_get_derivative(self, k)
4746 
4747 
4748  def add_attribute(self, *args):
4749  """
4750  add_attribute(Particle self, FloatKey name, IMP::Float initial_value)
4751  add_attribute(Particle self, IntKey name, IMP::Int initial_value)
4752  add_attribute(Particle self, StringKey name, IMP::String initial_value)
4753  add_attribute(Particle self, ObjectKey name, Object initial_value)
4754  add_attribute(Particle self, IMP::WeakObjectKey name, Object initial_value)
4755  add_attribute(Particle self, FloatKey name, IMP::Float const initial_value, bool optimized)
4756  add_attribute(Particle self, ParticleIndexKey k, Particle v)
4757  """
4758  return _IMP_kernel.Particle_add_attribute(self, *args)
4759 
4760 
4761  def has_attribute(self, *args):
4762  """
4763  has_attribute(Particle self, FloatKey name) -> bool
4764  has_attribute(Particle self, IntKey name) -> bool
4765  has_attribute(Particle self, StringKey name) -> bool
4766  has_attribute(Particle self, ObjectKey name) -> bool
4767  has_attribute(Particle self, IMP::WeakObjectKey name) -> bool
4768  has_attribute(Particle self, ParticleIndexKey k) -> bool
4769  """
4770  return _IMP_kernel.Particle_has_attribute(self, *args)
4771 
4772 
4773  def set_value(self, *args):
4774  """
4775  set_value(Particle self, FloatKey name, IMP::Float value)
4776  set_value(Particle self, IntKey name, IMP::Int value)
4777  set_value(Particle self, StringKey name, IMP::String value)
4778  set_value(Particle self, ObjectKey name, Object value)
4779  set_value(Particle self, IMP::WeakObjectKey name, Object value)
4780  set_value(Particle self, ParticleIndexKey k, Particle v)
4781  """
4782  return _IMP_kernel.Particle_set_value(self, *args)
4783 
4784 
4785  def get_value(self, *args):
4786  """
4787  get_value(Particle self, FloatKey name) -> IMP::Float
4788  get_value(Particle self, IntKey name) -> IMP::Int
4789  get_value(Particle self, StringKey name) -> IMP::String
4790  get_value(Particle self, ObjectKey name) -> Object
4791  get_value(Particle self, IMP::WeakObjectKey name) -> Object
4792  get_value(Particle self, ParticleIndexKey k) -> Particle
4793  """
4794  return _IMP_kernel.Particle_get_value(self, *args)
4795 
4796 
4797  def remove_attribute(self, *args):
4798  """
4799  remove_attribute(Particle self, FloatKey name)
4800  remove_attribute(Particle self, IntKey name)
4801  remove_attribute(Particle self, StringKey name)
4802  remove_attribute(Particle self, ObjectKey name)
4803  remove_attribute(Particle self, IMP::WeakObjectKey name)
4804  remove_attribute(Particle self, ParticleIndexKey k)
4805  """
4806  return _IMP_kernel.Particle_remove_attribute(self, *args)
4807 
4808 
4809  def get_particle_keys(self):
4810  """get_particle_keys(Particle self) -> IMP::ParticleIndexKeys"""
4811  return _IMP_kernel.Particle_get_particle_keys(self)
4812 
4813 
4814  def show(self, *args):
4815  """
4816  show(Particle self, _ostream out)
4817  show(Particle self)
4818  """
4819  return _IMP_kernel.Particle_show(self, *args)
4820 
4821 
4822  def get_is_active(self):
4823  """get_is_active(Particle self) -> bool"""
4824  return _IMP_kernel.Particle_get_is_active(self)
4825 
4826 
4827  def get_index(self):
4828  """get_index(Particle self) -> ParticleIndex"""
4829  return _IMP_kernel.Particle_get_index(self)
4830 
4831 
4832  def __eq__(self, *args):
4833  """
4834  __eq__(Particle self, Particle o) -> bool
4835  __eq__(Particle self, Decorator d) -> bool
4836  """
4837  return _IMP_kernel.Particle___eq__(self, *args)
4838 
4839 
4840  def __ne__(self, *args):
4841  """
4842  __ne__(Particle self, Particle o) -> bool
4843  __ne__(Particle self, Decorator d) -> bool
4844  """
4845  return _IMP_kernel.Particle___ne__(self, *args)
4846 
4847 
4848  def __le__(self, *args):
4849  """
4850  __le__(Particle self, Particle o) -> bool
4851  __le__(Particle self, Decorator d) -> bool
4852  """
4853  return _IMP_kernel.Particle___le__(self, *args)
4854 
4855 
4856  def __lt__(self, *args):
4857  """
4858  __lt__(Particle self, Particle o) -> bool
4859  __lt__(Particle self, Decorator d) -> bool
4860  """
4861  return _IMP_kernel.Particle___lt__(self, *args)
4862 
4863 
4864  def __ge__(self, *args):
4865  """
4866  __ge__(Particle self, Particle o) -> bool
4867  __ge__(Particle self, Decorator d) -> bool
4868  """
4869  return _IMP_kernel.Particle___ge__(self, *args)
4870 
4871 
4872  def __gt__(self, *args):
4873  """
4874  __gt__(Particle self, Particle o) -> bool
4875  __gt__(Particle self, Decorator d) -> bool
4876  """
4877  return _IMP_kernel.Particle___gt__(self, *args)
4878 
4879 
4880  __hash__ = ModelObject.__hash__
4881 
4882 
4883  def __str__(self):
4884  """__str__(Particle self) -> std::string"""
4885  return _IMP_kernel.Particle___str__(self)
4886 
4887 
4888  def __repr__(self):
4889  """__repr__(Particle self) -> std::string"""
4890  return _IMP_kernel.Particle___repr__(self)
4891 
4892 
4893  @staticmethod
4894  def get_from(o):
4895  return _object_cast_to_Particle(o)
4896 
4897 Particle_swigregister = _IMP_kernel.Particle_swigregister
4898 Particle_swigregister(Particle)
4899 
4900 class _ParticleAdaptor(_InputAdaptor):
4901  """Proxy of C++ IMP::ParticleAdaptor class."""
4902 
4903  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4904  __repr__ = _swig_repr
4905 
4906  def __init__(self, *args):
4907  """
4908  __init__(IMP::ParticleAdaptor self) -> _ParticleAdaptor
4909  __init__(IMP::ParticleAdaptor self, Particle p) -> _ParticleAdaptor
4910  __init__(IMP::ParticleAdaptor self, Decorator d) -> _ParticleAdaptor
4911  """
4912  this = _IMP_kernel.new__ParticleAdaptor(*args)
4913  try:
4914  self.this.append(this)
4915  except __builtin__.Exception:
4916  self.this = this
4917 
4918  def get_model(self):
4919  """get_model(_ParticleAdaptor self) -> Model"""
4920  return _IMP_kernel._ParticleAdaptor_get_model(self)
4921 
4922 
4923  def get_particle_index(self):
4924  """get_particle_index(_ParticleAdaptor self) -> ParticleIndex"""
4925  return _IMP_kernel._ParticleAdaptor_get_particle_index(self)
4926 
4927  __swig_destroy__ = _IMP_kernel.delete__ParticleAdaptor
4928  __del__ = lambda self: None
4929 _ParticleAdaptor_swigregister = _IMP_kernel._ParticleAdaptor_swigregister
4930 _ParticleAdaptor_swigregister(_ParticleAdaptor)
4931 
4932 class _DependencyGraphVertexIndex(object):
4933  """Proxy of C++ IMP::DependencyGraphVertexIndex class."""
4934 
4935  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4936  __repr__ = _swig_repr
4937 
4938  def __init__(self):
4939  """__init__(IMP::DependencyGraphVertexIndex self) -> _DependencyGraphVertexIndex"""
4940  this = _IMP_kernel.new__DependencyGraphVertexIndex()
4941  try:
4942  self.this.append(this)
4943  except __builtin__.Exception:
4944  self.this = this
4945  __swig_destroy__ = _IMP_kernel.delete__DependencyGraphVertexIndex
4946  __del__ = lambda self: None
4947 _DependencyGraphVertexIndex_swigregister = _IMP_kernel._DependencyGraphVertexIndex_swigregister
4948 _DependencyGraphVertexIndex_swigregister(_DependencyGraphVertexIndex)
4949 
4950 
4951 def show_as_graphviz(name, out):
4952  """show_as_graphviz(IMP::DependencyGraph const & name, TextOutput out)"""
4953  return _IMP_kernel.show_as_graphviz(name, out)
4954 
4955 def get_vertex_index(g):
4956  """get_vertex_index(IMP::DependencyGraph const & g) -> _DependencyGraphVertexIndex"""
4957  return _IMP_kernel.get_vertex_index(g)
4958 
4959 def get_dependency_graph(m):
4960  """get_dependency_graph(Model m) -> IMP::DependencyGraph"""
4961  return _IMP_kernel.get_dependency_graph(m)
4962 
4964  """get_pruned_dependency_graph(Model m) -> IMP::DependencyGraph"""
4965  return _IMP_kernel.get_pruned_dependency_graph(m)
4966 
4967 def get_required_score_states(*args):
4968  """
4969  get_required_score_states(IMP::ModelObjectsTemp const & mos, IMP::ScoreStatesTemp exclude) -> IMP::ScoreStatesTemp
4970  get_required_score_states(IMP::ModelObjectsTemp const & mos) -> IMP::ScoreStatesTemp
4971  get_required_score_states(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ScoreStatesTemp
4972  """
4973  return _IMP_kernel.get_required_score_states(*args)
4974 
4975 def get_dependent_particles(p, all, dg, index):
4976  """get_dependent_particles(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ParticlesTemp"""
4977  return _IMP_kernel.get_dependent_particles(p, all, dg, index)
4978 
4979 def get_dependent_restraints(m, pi):
4980  """get_dependent_restraints(Model m, ParticleIndex pi) -> IMP::RestraintsTemp"""
4981  return _IMP_kernel.get_dependent_restraints(m, pi)
4982 class ScoringFunction(ModelObject):
4983  """Proxy of C++ IMP::ScoringFunction class."""
4984 
4985  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4986 
4987  def do_add_score_and_derivatives(self, sa, ss):
4988  """do_add_score_and_derivatives(ScoringFunction self, ScoreAccumulator sa, IMP::ScoreStatesTemp const & ss)"""
4989  return _IMP_kernel.ScoringFunction_do_add_score_and_derivatives(self, sa, ss)
4990 
4991 
4992  def get_score_accumulator_if_below(self, deriv, max):
4993  """get_score_accumulator_if_below(ScoringFunction self, bool deriv, double max) -> ScoreAccumulator"""
4994  return _IMP_kernel.ScoringFunction_get_score_accumulator_if_below(self, deriv, max)
4995 
4996 
4997  def get_score_accumulator_if_good(self, deriv):
4998  """get_score_accumulator_if_good(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
4999  return _IMP_kernel.ScoringFunction_get_score_accumulator_if_good(self, deriv)
5000 
5001 
5002  def get_score_accumulator(self, deriv):
5003  """get_score_accumulator(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
5004  return _IMP_kernel.ScoringFunction_get_score_accumulator(self, deriv)
5005 
5006 
5007  def __init__(self, m, name):
5008  """__init__(IMP::ScoringFunction self, Model m, std::string name) -> ScoringFunction"""
5009  if self.__class__ == ScoringFunction:
5010  _self = None
5011  else:
5012  _self = self
5013  this = _IMP_kernel.new_ScoringFunction(_self, m, name)
5014  try:
5015  self.this.append(this)
5016  except __builtin__.Exception:
5017  self.this = this
5018 
5019  if self.__class__ != ScoringFunction:
5020  _director_objects.register(self)
5021 
5022 
5023 
5024 
5025  def do_get_outputs(self):
5026  """do_get_outputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
5027  return _IMP_kernel.ScoringFunction_do_get_outputs(self)
5028 
5029 
5030  def evaluate_if_good(self, derivatives):
5031  """evaluate_if_good(ScoringFunction self, bool derivatives) -> double"""
5032  return _IMP_kernel.ScoringFunction_evaluate_if_good(self, derivatives)
5033 
5034 
5035  def evaluate(self, derivatives):
5036  """evaluate(ScoringFunction self, bool derivatives) -> double"""
5037  return _IMP_kernel.ScoringFunction_evaluate(self, derivatives)
5038 
5039 
5040  def evaluate_if_below(self, derivatives, max):
5041  """evaluate_if_below(ScoringFunction self, bool derivatives, double max) -> double"""
5042  return _IMP_kernel.ScoringFunction_evaluate_if_below(self, derivatives, max)
5043 
5044 
5045  def get_had_good_score(self):
5046  """get_had_good_score(ScoringFunction self) -> bool"""
5047  return _IMP_kernel.ScoringFunction_get_had_good_score(self)
5048 
5049 
5050  def get_last_score(self):
5051  """get_last_score(ScoringFunction self) -> double"""
5052  return _IMP_kernel.ScoringFunction_get_last_score(self)
5053 
5054 
5055  def create_restraints(self):
5056  """create_restraints(ScoringFunction self) -> IMP::Restraints"""
5057  return _IMP_kernel.ScoringFunction_create_restraints(self)
5058 
5059 
5060  def __str__(self):
5061  """__str__(ScoringFunction self) -> std::string"""
5062  return _IMP_kernel.ScoringFunction___str__(self)
5063 
5064 
5065  def __repr__(self):
5066  """__repr__(ScoringFunction self) -> std::string"""
5067  return _IMP_kernel.ScoringFunction___repr__(self)
5068 
5069 
5070  @staticmethod
5071  def get_from(o):
5072  return _object_cast_to_ScoringFunction(o)
5073 
5074 
5075  def get_type_name(self):
5076  return self.__class__.__name__
5077  def do_show(self, out):
5078  pass
5079  def get_version_info(self):
5080  if"IMP" == "IMP":
5081  return VersionInfo(self.__module__,
5082  __import__(self.__module__).get_module_version())
5083  else:
5084  return IMP.VersionInfo(self.__module__,
5085  __import__(self.__module__).get_module_version())
5086  @staticmethod
5087  def get_from(o):
5088  return _object_cast_to_ScoringFunction(o)
5089 
5090  __swig_destroy__ = _IMP_kernel.delete_ScoringFunction
5091  __del__ = lambda self: None
5092  def __disown__(self):
5093  self.this.disown()
5094  _IMP_kernel.disown_ScoringFunction(self)
5095  return weakref_proxy(self)
5096 
5097  def do_destroy(self):
5098  """do_destroy(ScoringFunction self)"""
5099  return _IMP_kernel.ScoringFunction_do_destroy(self)
5100 
5101 
5102  def handle_set_has_required_score_states(self, arg0):
5103  """handle_set_has_required_score_states(ScoringFunction self, bool arg0)"""
5104  return _IMP_kernel.ScoringFunction_handle_set_has_required_score_states(self, arg0)
5105 
5106 
5107  def do_get_inputs(self):
5108  """do_get_inputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
5109  return _IMP_kernel.ScoringFunction_do_get_inputs(self)
5110 
5111 
5112  def do_get_interactions(self):
5113  """do_get_interactions(ScoringFunction self) -> IMP::ModelObjectsTemps"""
5114  return _IMP_kernel.ScoringFunction_do_get_interactions(self)
5115 
5116 ScoringFunction_swigregister = _IMP_kernel.ScoringFunction_swigregister
5117 ScoringFunction_swigregister(ScoringFunction)
5118 
5119 
5120 def create_decomposition(*args):
5121  """
5122  create_decomposition(IMP::RestraintsTemp const & rs) -> IMP::Restraints
5123  create_decomposition(ScoringFunction sf) -> IMP::ScoringFunctions
5124  """
5125  return _IMP_kernel.create_decomposition(*args)
5126 class _ScoringFunctionAdaptor(_InputAdaptor):
5127  """Proxy of C++ IMP::ScoringFunctionAdaptor class."""
5128 
5129  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5130  __repr__ = _swig_repr
5131 
5132  def __init__(self, *args):
5133  """
5134  __init__(IMP::ScoringFunctionAdaptor self) -> _ScoringFunctionAdaptor
5135  __init__(IMP::ScoringFunctionAdaptor self, ScoringFunction sf) -> _ScoringFunctionAdaptor
5136  __init__(IMP::ScoringFunctionAdaptor self, IMP::RestraintsTemp const & sf) -> _ScoringFunctionAdaptor
5137  __init__(IMP::ScoringFunctionAdaptor self, IMP::Restraints const & sf) -> _ScoringFunctionAdaptor
5138  __init__(IMP::ScoringFunctionAdaptor self, Restraint sf) -> _ScoringFunctionAdaptor
5139  """
5140  this = _IMP_kernel.new__ScoringFunctionAdaptor(*args)
5141  try:
5142  self.this.append(this)
5143  except __builtin__.Exception:
5144  self.this = this
5145  __swig_destroy__ = _IMP_kernel.delete__ScoringFunctionAdaptor
5146  __del__ = lambda self: None
5147 _ScoringFunctionAdaptor_swigregister = _IMP_kernel._ScoringFunctionAdaptor_swigregister
5148 _ScoringFunctionAdaptor_swigregister(_ScoringFunctionAdaptor)
5149 
5150 
5151 def show_restraint_hierarchy(*args):
5152  """
5153  show_restraint_hierarchy(_ScoringFunctionAdaptor rs, _ostream out)
5154  show_restraint_hierarchy(_ScoringFunctionAdaptor rs)
5155  """
5156  return _IMP_kernel.show_restraint_hierarchy(*args)
5157 class Undecorator(Object):
5158  """Proxy of C++ IMP::Undecorator class."""
5159 
5160  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5161 
5162  def __init__(self, m, name):
5163  """__init__(IMP::Undecorator self, Model m, std::string name) -> Undecorator"""
5164  if self.__class__ == Undecorator:
5165  _self = None
5166  else:
5167  _self = self
5168  this = _IMP_kernel.new_Undecorator(_self, m, name)
5169  try:
5170  self.this.append(this)
5171  except __builtin__.Exception:
5172  self.this = this
5173 
5174  if self.__class__ != Undecorator:
5175  _director_objects.register(self)
5176 
5177 
5178 
5179 
5180  def teardown(self, pi):
5181  """teardown(Undecorator self, ParticleIndex pi)"""
5182  return _IMP_kernel.Undecorator_teardown(self, pi)
5183 
5184 
5185  def __str__(self):
5186  """__str__(Undecorator self) -> std::string"""
5187  return _IMP_kernel.Undecorator___str__(self)
5188 
5189 
5190  def __repr__(self):
5191  """__repr__(Undecorator self) -> std::string"""
5192  return _IMP_kernel.Undecorator___repr__(self)
5193 
5194 
5195  @staticmethod
5196  def get_from(o):
5197  return _object_cast_to_Undecorator(o)
5198 
5199 
5200  def get_type_name(self):
5201  return self.__class__.__name__
5202  def do_show(self, out):
5203  pass
5204  def get_version_info(self):
5205  if"IMP" == "IMP":
5206  return VersionInfo(self.__module__,
5207  __import__(self.__module__).get_module_version())
5208  else:
5209  return IMP.VersionInfo(self.__module__,
5210  __import__(self.__module__).get_module_version())
5211  @staticmethod
5212  def get_from(o):
5213  return _object_cast_to_Undecorator(o)
5214 
5215  __swig_destroy__ = _IMP_kernel.delete_Undecorator
5216  __del__ = lambda self: None
5217  def __disown__(self):
5218  self.this.disown()
5219  _IMP_kernel.disown_Undecorator(self)
5220  return weakref_proxy(self)
5221 
5222  def do_destroy(self):
5223  """do_destroy(Undecorator self)"""
5224  return _IMP_kernel.Undecorator_do_destroy(self)
5225 
5226 Undecorator_swigregister = _IMP_kernel.Undecorator_swigregister
5227 Undecorator_swigregister(Undecorator)
5228 
5229 class Model(Object):
5230  """Proxy of C++ IMP::Model class."""
5231 
5232  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5233 
5234  def __init__(self, *args):
5235  """
5236  __init__(IMP::Model self, std::string name) -> Model
5237  __init__(IMP::Model self) -> Model
5238  """
5239  this = _IMP_kernel.new_Model(*args)
5240  try:
5241  self.this.append(this)
5242  except __builtin__.Exception:
5243  self.this = this
5244 
5245  def clear_particle_caches(self, pi):
5246  """clear_particle_caches(Model self, ParticleIndex pi)"""
5247  return _IMP_kernel.Model_clear_particle_caches(self, pi)
5248 
5249 
5250  def add_particle(self, name):
5251  """add_particle(Model self, std::string name) -> ParticleIndex"""
5252  return _IMP_kernel.Model_add_particle(self, name)
5253 
5254 
5255  def get_particle_name(self, pi):
5256  """get_particle_name(Model self, ParticleIndex pi) -> std::string"""
5257  return _IMP_kernel.Model_get_particle_name(self, pi)
5258 
5259 
5260  def add_undecorator(self, pi, d):
5261  """add_undecorator(Model self, ParticleIndex pi, Undecorator d)"""
5262  return _IMP_kernel.Model_add_undecorator(self, pi, d)
5263 
5264 
5265  def remove_score_state(self, d):
5266  """remove_score_state(Model self, ScoreState d)"""
5267  return _IMP_kernel.Model_remove_score_state(self, d)
5268 
5269 
5270  def remove_score_states(self, d):
5271  """remove_score_states(Model self, IMP::ScoreStates const & d)"""
5272  return _IMP_kernel.Model_remove_score_states(self, d)
5273 
5274 
5275  def set_score_states(self, ps):
5276  """set_score_states(Model self, IMP::ScoreStates const & ps)"""
5277  return _IMP_kernel.Model_set_score_states(self, ps)
5278 
5279 
5280  def set_score_states_order(self, objs):
5281  """set_score_states_order(Model self, IMP::ScoreStates const & objs)"""
5282  return _IMP_kernel.Model_set_score_states_order(self, objs)
5283 
5284 
5285  def add_score_state(self, obj):
5286  """add_score_state(Model self, ScoreState obj) -> unsigned int"""
5287  return _IMP_kernel.Model_add_score_state(self, obj)
5288 
5289 
5290  def add_score_states(self, objs):
5291  """add_score_states(Model self, IMP::ScoreStates const & objs)"""
5292  return _IMP_kernel.Model_add_score_states(self, objs)
5293 
5294 
5295  def clear_score_states(self):
5296  """clear_score_states(Model self)"""
5297  return _IMP_kernel.Model_clear_score_states(self)
5298 
5299 
5300  def get_number_of_score_states(self):
5301  """get_number_of_score_states(Model self) -> unsigned int"""
5302  return _IMP_kernel.Model_get_number_of_score_states(self)
5303 
5304 
5305  def get_has_score_states(self):
5306  """get_has_score_states(Model self) -> bool"""
5307  return _IMP_kernel.Model_get_has_score_states(self)
5308 
5309 
5310  def get_score_state(self, i):
5311  """get_score_state(Model self, unsigned int i) -> ScoreState"""
5312  return _IMP_kernel.Model_get_score_state(self, i)
5313 
5314 
5315  def get_score_states(self):
5316  """get_score_states(Model self) -> IMP::ScoreStates"""
5317  return _IMP_kernel.Model_get_score_states(self)
5318 
5319 
5320  def reserve_score_states(self, sz):
5321  """reserve_score_states(Model self, unsigned int sz)"""
5322  return _IMP_kernel.Model_reserve_score_states(self, sz)
5323 
5324 
5325  def update(self):
5326  """update(Model self)"""
5327  return _IMP_kernel.Model_update(self)
5328 
5329 
5330  def add_attribute(self, *args):
5331  """
5332  add_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5333  add_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
5334  add_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
5335  add_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
5336  add_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
5337  add_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5338  add_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
5339  add_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5340  """
5341  return _IMP_kernel.Model_add_attribute(self, *args)
5342 
5343 
5344  def remove_attribute(self, *args):
5345  """
5346  remove_attribute(Model self, FloatKey attribute_key, ParticleIndex particle)
5347  remove_attribute(Model self, IntKey attribute_key, ParticleIndex particle)
5348  remove_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle)
5349  remove_attribute(Model self, StringKey attribute_key, ParticleIndex particle)
5350  remove_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle)
5351  remove_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle)
5352  remove_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle)
5353  remove_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle)
5354  """
5355  return _IMP_kernel.Model_remove_attribute(self, *args)
5356 
5357 
5358  def get_has_attribute(self, *args):
5359  """
5360  get_has_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> bool
5361  get_has_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> bool
5362  get_has_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle) -> bool
5363  get_has_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> bool
5364  get_has_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> bool
5365  get_has_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> bool
5366  get_has_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> bool
5367  get_has_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> bool
5368  """
5369  return _IMP_kernel.Model_get_has_attribute(self, *args)
5370 
5371 
5372  def set_attribute(self, *args):
5373  """
5374  set_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5375  set_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
5376  set_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
5377  set_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
5378  set_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
5379  set_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5380  set_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
5381  set_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5382  """
5383  return _IMP_kernel.Model_set_attribute(self, *args)
5384 
5385 
5386  def get_attribute(self, *args):
5387  """
5388  get_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> IMP::Float
5389  get_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> IMP::Int
5390  get_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle) -> IMP::Ints
5391  get_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> IMP::String
5392  get_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> IMP::ParticleIndexes
5393  get_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> ParticleIndex
5394  get_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> Object
5395  get_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> Object
5396  """
5397  return _IMP_kernel.Model_get_attribute(self, *args)
5398 
5399 
5400  def add_cache_attribute(self, *args):
5401  """
5402  add_cache_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5403  add_cache_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
5404  add_cache_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
5405  add_cache_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
5406  add_cache_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
5407  add_cache_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5408  add_cache_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
5409  add_cache_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5410  """
5411  return _IMP_kernel.Model_add_cache_attribute(self, *args)
5412 
5413 
5414  def set_is_optimized(self, arg2, arg3, arg4):
5415  """set_is_optimized(Model self, FloatKey arg2, ParticleIndex arg3, bool arg4)"""
5416  return _IMP_kernel.Model_set_is_optimized(self, arg2, arg3, arg4)
5417 
5418 
5419  def add_to_derivative(self, k, particle, v, da):
5420  """add_to_derivative(Model self, FloatKey k, ParticleIndex particle, double v, DerivativeAccumulator da)"""
5421  return _IMP_kernel.Model_add_to_derivative(self, k, particle, v, da)
5422 
5423 
5424  def get_particle(self, p):
5425  """get_particle(Model self, ParticleIndex p) -> Particle"""
5426  return _IMP_kernel.Model_get_particle(self, p)
5427 
5428 
5429  def get_has_particle(self, p):
5430  """get_has_particle(Model self, ParticleIndex p) -> bool"""
5431  return _IMP_kernel.Model_get_has_particle(self, p)
5432 
5433 
5434  def get_particle_indexes(self):
5435  """get_particle_indexes(Model self) -> IMP::ParticleIndexes"""
5436  return _IMP_kernel.Model_get_particle_indexes(self)
5437 
5438 
5439  def get_model_objects(self):
5440  """get_model_objects(Model self) -> IMP::ModelObjectsTemp"""
5441  return _IMP_kernel.Model_get_model_objects(self)
5442 
5443 
5444  def remove_particle(self, pi):
5445  """remove_particle(Model self, ParticleIndex pi)"""
5446  return _IMP_kernel.Model_remove_particle(self, pi)
5447 
5448 
5449  def add_data(self, mk, o):
5450  """add_data(Model self, ModelKey mk, Object o)"""
5451  return _IMP_kernel.Model_add_data(self, mk, o)
5452 
5453 
5454  def get_data(self, mk):
5455  """get_data(Model self, ModelKey mk) -> Object"""
5456  return _IMP_kernel.Model_get_data(self, mk)
5457 
5458 
5459  def remove_data(self, mk):
5460  """remove_data(Model self, ModelKey mk)"""
5461  return _IMP_kernel.Model_remove_data(self, mk)
5462 
5463 
5464  def get_has_data(self, mk):
5465  """get_has_data(Model self, ModelKey mk) -> bool"""
5466  return _IMP_kernel.Model_get_has_data(self, mk)
5467 
5468 
5469  def get_version_info(self):
5470  """get_version_info(Model self) -> VersionInfo"""
5471  return _IMP_kernel.Model_get_version_info(self)
5472 
5473 
5474  def do_destroy(self):
5475  """do_destroy(Model self)"""
5476  return _IMP_kernel.Model_do_destroy(self)
5477 
5478 
5479  def __str__(self):
5480  """__str__(Model self) -> std::string"""
5481  return _IMP_kernel.Model___str__(self)
5482 
5483 
5484  def __repr__(self):
5485  """__repr__(Model self) -> std::string"""
5486  return _IMP_kernel.Model___repr__(self)
5487 
5488 
5489  @staticmethod
5490  def get_from(o):
5491  return _object_cast_to_Model(o)
5492 
5493 
5494  def _get_ints_numpy(self, k):
5495  return _get_ints_numpy(self, k, self)
5496 
5497  def _get_floats_numpy(self, k):
5498  return _get_floats_numpy(self, k, self)
5499 
5500  def _get_derivatives_numpy(self, k):
5501  return _get_derivatives_numpy(self, k, self)
5502 
5503  def _get_spheres_numpy(self):
5504  return _get_spheres_numpy(self, self)
5505 
5506  def _get_sphere_derivatives_numpy(self):
5507  return _get_sphere_derivatives_numpy(self, self)
5508 
5509 Model_swigregister = _IMP_kernel.Model_swigregister
5510 Model_swigregister(Model)
5511 
5512 class Decorator(_Value):
5513  """Proxy of C++ IMP::Decorator class."""
5514 
5515  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5516  __repr__ = _swig_repr
5517 
5518  def __init__(self, p):
5519  """__init__(IMP::Decorator self, _ParticleAdaptor p) -> Decorator"""
5520  this = _IMP_kernel.new_Decorator(p)
5521  try:
5522  self.this.append(this)
5523  except __builtin__.Exception:
5524  self.this = this
5525 
5526  def __ne__(self, o):
5527  """__ne__(Decorator self, Object o) -> bool"""
5528  return _IMP_kernel.Decorator___ne__(self, o)
5529 
5530 
5531  def __lt__(self, o):
5532  """__lt__(Decorator self, Object o) -> bool"""
5533  return _IMP_kernel.Decorator___lt__(self, o)
5534 
5535 
5536  def __gt__(self, o):
5537  """__gt__(Decorator self, Object o) -> bool"""
5538  return _IMP_kernel.Decorator___gt__(self, o)
5539 
5540 
5541  def __ge__(self, o):
5542  """__ge__(Decorator self, Object o) -> bool"""
5543  return _IMP_kernel.Decorator___ge__(self, o)
5544 
5545 
5546  def __le__(self, o):
5547  """__le__(Decorator self, Object o) -> bool"""
5548  return _IMP_kernel.Decorator___le__(self, o)
5549 
5550 
5551  def get_particle(self):
5552  """get_particle(Decorator self) -> Particle"""
5553  return _IMP_kernel.Decorator_get_particle(self)
5554 
5555 
5556  def get_particle_index(self):
5557  """get_particle_index(Decorator self) -> ParticleIndex"""
5558  return _IMP_kernel.Decorator_get_particle_index(self)
5559 
5560 
5561  def get_model(self):
5562  """get_model(Decorator self) -> Model"""
5563  return _IMP_kernel.Decorator_get_model(self)
5564 
5565 
5566  def get_is_valid(self):
5567  """get_is_valid(Decorator self) -> bool"""
5568  return _IMP_kernel.Decorator_get_is_valid(self)
5569 
5570 
5571  def __hash__(self):
5572  """__hash__(Decorator self) -> std::size_t"""
5573  return _IMP_kernel.Decorator___hash__(self)
5574 
5575 
5576  def __eq__(self, *args):
5577  """
5578  __eq__(Decorator self, Object o) -> bool
5579  __eq__(Decorator self, Decorator o) -> bool
5580  __eq__(Decorator self, Particle o) -> bool
5581  """
5582  return _IMP_kernel.Decorator___eq__(self, *args)
5583 
5584 
5585  def __bool__(self):
5586  """__bool__(Decorator self) -> bool"""
5587  return _IMP_kernel.Decorator___bool__(self)
5588 
5589 
5590  __nonzero__ = __bool__
5591 
5592  __swig_destroy__ = _IMP_kernel.delete_Decorator
5593  __del__ = lambda self: None
5594 Decorator_swigregister = _IMP_kernel.Decorator_swigregister
5595 Decorator_swigregister(Decorator)
5596 
5597 
5598 def check_particle(m, pi):
5599  """check_particle(Model m, ParticleIndex pi)"""
5600  return _IMP_kernel.check_particle(m, pi)
5601 class UnaryFunction(Object):
5602  """Proxy of C++ IMP::UnaryFunction class."""
5603 
5604  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5605 
5606  def __init__(self, *args):
5607  """
5608  __init__(IMP::UnaryFunction self, std::string name) -> UnaryFunction
5609  __init__(IMP::UnaryFunction self) -> UnaryFunction
5610  """
5611  if self.__class__ == UnaryFunction:
5612  _self = None
5613  else:
5614  _self = self
5615  this = _IMP_kernel.new_UnaryFunction(_self, *args)
5616  try:
5617  self.this.append(this)
5618  except __builtin__.Exception:
5619  self.this = this
5620 
5621  if self.__class__ != UnaryFunction:
5622  _director_objects.register(self)
5623 
5624 
5625 
5626 
5627  def evaluate(self, feature):
5628  """evaluate(UnaryFunction self, double feature) -> double"""
5629  return _IMP_kernel.UnaryFunction_evaluate(self, feature)
5630 
5631 
5632  def evaluate_with_derivative(self, feature):
5633  """evaluate_with_derivative(UnaryFunction self, double feature) -> IMP::DerivativePair"""
5634  return _IMP_kernel.UnaryFunction_evaluate_with_derivative(self, feature)
5635 
5636  __swig_destroy__ = _IMP_kernel.delete_UnaryFunction
5637  __del__ = lambda self: None
5638 
5639  def __str__(self):
5640  """__str__(UnaryFunction self) -> std::string"""
5641  return _IMP_kernel.UnaryFunction___str__(self)
5642 
5643 
5644  def __repr__(self):
5645  """__repr__(UnaryFunction self) -> std::string"""
5646  return _IMP_kernel.UnaryFunction___repr__(self)
5647 
5648 
5649  @staticmethod
5650  def get_from(o):
5651  return _object_cast_to_UnaryFunction(o)
5652 
5653 
5654  def get_type_name(self):
5655  return self.__class__.__name__
5656  def do_show(self, out):
5657  pass
5658  def get_version_info(self):
5659  if"IMP" == "IMP":
5660  return VersionInfo(self.__module__,
5661  __import__(self.__module__).get_module_version())
5662  else:
5663  return IMP.VersionInfo(self.__module__,
5664  __import__(self.__module__).get_module_version())
5665  @staticmethod
5666  def get_from(o):
5667  return _object_cast_to_UnaryFunction(o)
5668 
5669  def __disown__(self):
5670  self.this.disown()
5671  _IMP_kernel.disown_UnaryFunction(self)
5672  return weakref_proxy(self)
5673 
5674  def do_destroy(self):
5675  """do_destroy(UnaryFunction self)"""
5676  return _IMP_kernel.UnaryFunction_do_destroy(self)
5677 
5678 UnaryFunction_swigregister = _IMP_kernel.UnaryFunction_swigregister
5679 UnaryFunction_swigregister(UnaryFunction)
5680 
5681 class OptimizerState(ModelObject):
5682  """Proxy of C++ IMP::OptimizerState class."""
5683 
5684  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5685 
5686  def __init__(self, m, name):
5687  """__init__(IMP::OptimizerState self, Model m, std::string name) -> OptimizerState"""
5688  if self.__class__ == OptimizerState:
5689  _self = None
5690  else:
5691  _self = self
5692  this = _IMP_kernel.new_OptimizerState(_self, m, name)
5693  try:
5694  self.this.append(this)
5695  except __builtin__.Exception:
5696  self.this = this
5697 
5698  if self.__class__ != OptimizerState:
5699  _director_objects.register(self)
5700 
5701 
5702 
5703 
5704  def update(self):
5705  """update(OptimizerState self)"""
5706  return _IMP_kernel.OptimizerState_update(self)
5707 
5708 
5709  def set_is_optimizing(self, arg0):
5710  """set_is_optimizing(OptimizerState self, bool arg0)"""
5711  return _IMP_kernel.OptimizerState_set_is_optimizing(self, arg0)
5712 
5713 
5714  def get_optimizer(self):
5715  """get_optimizer(OptimizerState self) -> Optimizer"""
5716  return _IMP_kernel.OptimizerState_get_optimizer(self)
5717 
5718 
5719  def set_period(self, p):
5720  """set_period(OptimizerState self, unsigned int p)"""
5721  return _IMP_kernel.OptimizerState_set_period(self, p)
5722 
5723 
5724  def get_period(self):
5725  """get_period(OptimizerState self) -> unsigned int"""
5726  return _IMP_kernel.OptimizerState_get_period(self)
5727 
5728 
5729  def reset(self):
5730  """reset(OptimizerState self)"""
5731  return _IMP_kernel.OptimizerState_reset(self)
5732 
5733 
5734  def update_always(self):
5735  """update_always(OptimizerState self)"""
5736  return _IMP_kernel.OptimizerState_update_always(self)
5737 
5738 
5739  def get_number_of_updates(self):
5740  """get_number_of_updates(OptimizerState self) -> unsigned int"""
5741  return _IMP_kernel.OptimizerState_get_number_of_updates(self)
5742 
5743 
5744  def set_number_of_updates(self, n):
5745  """set_number_of_updates(OptimizerState self, unsigned int n)"""
5746  return _IMP_kernel.OptimizerState_set_number_of_updates(self, n)
5747 
5748  __swig_destroy__ = _IMP_kernel.delete_OptimizerState
5749  __del__ = lambda self: None
5750 
5751  def do_update(self, arg0):
5752  """do_update(OptimizerState self, unsigned int arg0)"""
5753  return _IMP_kernel.OptimizerState_do_update(self, arg0)
5754 
5755 
5756  def do_set_is_optimizing(self, arg0):
5757  """do_set_is_optimizing(OptimizerState self, bool arg0)"""
5758  return _IMP_kernel.OptimizerState_do_set_is_optimizing(self, arg0)
5759 
5760 
5761  def do_get_inputs(self):
5762  """do_get_inputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
5763  return _IMP_kernel.OptimizerState_do_get_inputs(self)
5764 
5765 
5766  def do_get_outputs(self):
5767  """do_get_outputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
5768  return _IMP_kernel.OptimizerState_do_get_outputs(self)
5769 
5770 
5771  def __str__(self):
5772  """__str__(OptimizerState self) -> std::string"""
5773  return _IMP_kernel.OptimizerState___str__(self)
5774 
5775 
5776  def __repr__(self):
5777  """__repr__(OptimizerState self) -> std::string"""
5778  return _IMP_kernel.OptimizerState___repr__(self)
5779 
5780 
5781  @staticmethod
5782  def get_from(o):
5783  return _object_cast_to_OptimizerState(o)
5784 
5785 
5786  def get_type_name(self):
5787  return self.__class__.__name__
5788  def do_show(self, out):
5789  pass
5790  def get_version_info(self):
5791  if"IMP" == "IMP":
5792  return VersionInfo(self.__module__,
5793  __import__(self.__module__).get_module_version())
5794  else:
5795  return IMP.VersionInfo(self.__module__,
5796  __import__(self.__module__).get_module_version())
5797  @staticmethod
5798  def get_from(o):
5799  return _object_cast_to_OptimizerState(o)
5800 
5801  def __disown__(self):
5802  self.this.disown()
5803  _IMP_kernel.disown_OptimizerState(self)
5804  return weakref_proxy(self)
5805 
5806  def do_destroy(self):
5807  """do_destroy(OptimizerState self)"""
5808  return _IMP_kernel.OptimizerState_do_destroy(self)
5809 
5810 
5811  def handle_set_has_required_score_states(self, arg0):
5812  """handle_set_has_required_score_states(OptimizerState self, bool arg0)"""
5813  return _IMP_kernel.OptimizerState_handle_set_has_required_score_states(self, arg0)
5814 
5815 
5816  def do_get_interactions(self):
5817  """do_get_interactions(OptimizerState self) -> IMP::ModelObjectsTemps"""
5818  return _IMP_kernel.OptimizerState_do_get_interactions(self)
5819 
5820 OptimizerState_swigregister = _IMP_kernel.OptimizerState_swigregister
5821 OptimizerState_swigregister(OptimizerState)
5822 
5823 class Refiner(_ParticleInputs, Object):
5824  """Proxy of C++ IMP::Refiner class."""
5825 
5826  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5827 
5828  def __init__(self, *args):
5829  """
5830  __init__(IMP::Refiner self, std::string name, bool is_by_ref=False) -> Refiner
5831  __init__(IMP::Refiner self, std::string name) -> Refiner
5832  __init__(IMP::Refiner self) -> Refiner
5833  """
5834  if self.__class__ == Refiner:
5835  _self = None
5836  else:
5837  _self = self
5838  this = _IMP_kernel.new_Refiner(_self, *args)
5839  try:
5840  self.this.append(this)
5841  except __builtin__.Exception:
5842  self.this = this
5843 
5844  if self.__class__ != Refiner:
5845  _director_objects.register(self)
5846 
5847 
5848 
5849 
5850  def get_can_refine(self, arg0):
5851  """get_can_refine(Refiner self, Particle arg0) -> bool"""
5852  return _IMP_kernel.Refiner_get_can_refine(self, arg0)
5853 
5854 
5855  def get_refined_indexes(self, m, pi):
5856  """get_refined_indexes(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes"""
5857  return _IMP_kernel.Refiner_get_refined_indexes(self, m, pi)
5858 
5859 
5860  def get_refined_indexes_by_ref(self, m, pi):
5861  """get_refined_indexes_by_ref(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes const &"""
5862  return _IMP_kernel.Refiner_get_refined_indexes_by_ref(self, m, pi)
5863 
5864 
5865  def get_is_by_ref_supported(self):
5866  """get_is_by_ref_supported(Refiner self) -> bool"""
5867  return _IMP_kernel.Refiner_get_is_by_ref_supported(self)
5868 
5869 
5870  def get_refined(self, *args):
5871  """
5872  get_refined(Refiner self, Particle a) -> IMP::ParticlesTemp const
5873  get_refined(Refiner self, Particle a, unsigned int i) -> Particle
5874  """
5875  return _IMP_kernel.Refiner_get_refined(self, *args)
5876 
5877 
5878  def get_number_of_refined(self, a):
5879  """get_number_of_refined(Refiner self, Particle a) -> unsigned int"""
5880  return _IMP_kernel.Refiner_get_number_of_refined(self, a)
5881 
5882 
5883  def __str__(self):
5884  """__str__(Refiner self) -> std::string"""
5885  return _IMP_kernel.Refiner___str__(self)
5886 
5887 
5888  def __repr__(self):
5889  """__repr__(Refiner self) -> std::string"""
5890  return _IMP_kernel.Refiner___repr__(self)
5891 
5892 
5893  @staticmethod
5894  def get_from(o):
5895  return _object_cast_to_Refiner(o)
5896 
5897 
5898  def get_type_name(self):
5899  return self.__class__.__name__
5900  def do_show(self, out):
5901  pass
5902  def get_version_info(self):
5903  if"IMP" == "IMP":
5904  return VersionInfo(self.__module__,
5905  __import__(self.__module__).get_module_version())
5906  else:
5907  return IMP.VersionInfo(self.__module__,
5908  __import__(self.__module__).get_module_version())
5909  @staticmethod
5910  def get_from(o):
5911  return _object_cast_to_Refiner(o)
5912 
5913  __swig_destroy__ = _IMP_kernel.delete_Refiner
5914  __del__ = lambda self: None
5915  def __disown__(self):
5916  self.this.disown()
5917  _IMP_kernel.disown_Refiner(self)
5918  return weakref_proxy(self)
5919 
5920  def do_get_inputs(self, m, pis):
5921  """do_get_inputs(Refiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5922  return _IMP_kernel.Refiner_do_get_inputs(self, m, pis)
5923 
5924 
5925  def do_destroy(self):
5926  """do_destroy(Refiner self)"""
5927  return _IMP_kernel.Refiner_do_destroy(self)
5928 
5929 Refiner_swigregister = _IMP_kernel.Refiner_swigregister
5930 Refiner_swigregister(Refiner)
5931 
5932 class Optimizer(ModelObject):
5933  """Proxy of C++ IMP::Optimizer class."""
5934 
5935  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5936 
5937  def set_is_optimizing_states(self, tf):
5938  """set_is_optimizing_states(Optimizer self, bool tf)"""
5939  return _IMP_kernel.Optimizer_set_is_optimizing_states(self, tf)
5940 
5941 
5942  def get_optimizer_state_inputs(self):
5943  """get_optimizer_state_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5944  return _IMP_kernel.Optimizer_get_optimizer_state_inputs(self)
5945 
5946 
5947  def do_get_inputs(self):
5948  """do_get_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5949  return _IMP_kernel.Optimizer_do_get_inputs(self)
5950 
5951 
5952  def do_get_outputs(self):
5953  """do_get_outputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5954  return _IMP_kernel.Optimizer_do_get_outputs(self)
5955 
5956 
5957  def __init__(self, *args):
5958  """
5959  __init__(IMP::Optimizer self, Model m, std::string name) -> Optimizer
5960  __init__(IMP::Optimizer self, Model m) -> Optimizer
5961  """
5962  if self.__class__ == Optimizer:
5963  _self = None
5964  else:
5965  _self = self
5966  this = _IMP_kernel.new_Optimizer(_self, *args)
5967  try:
5968  self.this.append(this)
5969  except __builtin__.Exception:
5970  self.this = this
5971 
5972  if self.__class__ != Optimizer:
5973  _director_objects.register(self)
5974 
5975 
5976 
5977 
5978  def optimize(self, max_steps):
5979  """optimize(Optimizer self, unsigned int max_steps) -> double"""
5980  return _IMP_kernel.Optimizer_optimize(self, max_steps)
5981 
5982 
5983  def set_stop_on_good_score(self, tf):
5984  """set_stop_on_good_score(Optimizer self, bool tf)"""
5985  return _IMP_kernel.Optimizer_set_stop_on_good_score(self, tf)
5986 
5987 
5988  def get_stop_on_good_score(self):
5989  """get_stop_on_good_score(Optimizer self) -> bool"""
5990  return _IMP_kernel.Optimizer_get_stop_on_good_score(self)
5991 
5992 
5993  def get_last_score(self):
5994  """get_last_score(Optimizer self) -> double"""
5995  return _IMP_kernel.Optimizer_get_last_score(self)
5996 
5997 
5998  def get_scoring_function(self):
5999  """get_scoring_function(Optimizer self) -> ScoringFunction"""
6000  return _IMP_kernel.Optimizer_get_scoring_function(self)
6001 
6002 
6003  def remove_optimizer_state(self, d):
6004  """remove_optimizer_state(Optimizer self, OptimizerState d)"""
6005  return _IMP_kernel.Optimizer_remove_optimizer_state(self, d)
6006 
6007 
6008  def remove_optimizer_states(self, d):
6009  """remove_optimizer_states(Optimizer self, IMP::OptimizerStates const & d)"""
6010  return _IMP_kernel.Optimizer_remove_optimizer_states(self, d)
6011 
6012 
6013  def set_optimizer_states(self, ps):
6014  """set_optimizer_states(Optimizer self, IMP::OptimizerStates const & ps)"""
6015  return _IMP_kernel.Optimizer_set_optimizer_states(self, ps)
6016 
6017 
6018  def set_optimizer_states_order(self, objs):
6019  """set_optimizer_states_order(Optimizer self, IMP::OptimizerStates const & objs)"""
6020  return _IMP_kernel.Optimizer_set_optimizer_states_order(self, objs)
6021 
6022 
6023  def add_optimizer_state(self, obj):
6024  """add_optimizer_state(Optimizer self, OptimizerState obj) -> unsigned int"""
6025  return _IMP_kernel.Optimizer_add_optimizer_state(self, obj)
6026 
6027 
6028  def add_optimizer_states(self, objs):
6029  """add_optimizer_states(Optimizer self, IMP::OptimizerStates const & objs)"""
6030  return _IMP_kernel.Optimizer_add_optimizer_states(self, objs)
6031 
6032 
6033  def clear_optimizer_states(self):
6034  """clear_optimizer_states(Optimizer self)"""
6035  return _IMP_kernel.Optimizer_clear_optimizer_states(self)
6036 
6037 
6038  def get_number_of_optimizer_states(self):
6039  """get_number_of_optimizer_states(Optimizer self) -> unsigned int"""
6040  return _IMP_kernel.Optimizer_get_number_of_optimizer_states(self)
6041 
6042 
6043  def get_has_optimizer_states(self):
6044  """get_has_optimizer_states(Optimizer self) -> bool"""
6045  return _IMP_kernel.Optimizer_get_has_optimizer_states(self)
6046 
6047 
6048  def get_optimizer_state(self, i):
6049  """get_optimizer_state(Optimizer self, unsigned int i) -> OptimizerState"""
6050  return _IMP_kernel.Optimizer_get_optimizer_state(self, i)
6051 
6052 
6053  def get_optimizer_states(self):
6054  """get_optimizer_states(Optimizer self) -> IMP::OptimizerStates"""
6055  return _IMP_kernel.Optimizer_get_optimizer_states(self)
6056 
6057 
6058  def reserve_optimizer_states(self, sz):
6059  """reserve_optimizer_states(Optimizer self, unsigned int sz)"""
6060  return _IMP_kernel.Optimizer_reserve_optimizer_states(self, sz)
6061 
6062 
6063  def set_scoring_function(self, sf):
6064  """set_scoring_function(Optimizer self, _ScoringFunctionAdaptor sf)"""
6065  return _IMP_kernel.Optimizer_set_scoring_function(self, sf)
6066 
6067  __swig_destroy__ = _IMP_kernel.delete_Optimizer
6068  def __del__(self):
6069  """__del__(IMP::Optimizer self)"""
6070 
6071  _director_objects.cleanup()
6072 
6073 
6074  pass
6075 
6076 
6077  def do_optimize(self, ns):
6078  """do_optimize(Optimizer self, unsigned int ns) -> double"""
6079  return _IMP_kernel.Optimizer_do_optimize(self, ns)
6080 
6081 
6082  def update_states(self):
6083  """update_states(Optimizer self)"""
6084  return _IMP_kernel.Optimizer_update_states(self)
6085 
6086 
6087  def __str__(self):
6088  """__str__(Optimizer self) -> std::string"""
6089  return _IMP_kernel.Optimizer___str__(self)
6090 
6091 
6092  def __repr__(self):
6093  """__repr__(Optimizer self) -> std::string"""
6094  return _IMP_kernel.Optimizer___repr__(self)
6095 
6096 
6097  @staticmethod
6098  def get_from(o):
6099  return _object_cast_to_Optimizer(o)
6100 
6101 
6102  def get_type_name(self):
6103  return self.__class__.__name__
6104  def do_show(self, out):
6105  pass
6106  def get_version_info(self):
6107  if"IMP" == "IMP":
6108  return VersionInfo(self.__module__,
6109  __import__(self.__module__).get_module_version())
6110  else:
6111  return IMP.VersionInfo(self.__module__,
6112  __import__(self.__module__).get_module_version())
6113  @staticmethod
6114  def get_from(o):
6115  return _object_cast_to_Optimizer(o)
6116 
6117  def __disown__(self):
6118  self.this.disown()
6119  _IMP_kernel.disown_Optimizer(self)
6120  return weakref_proxy(self)
6121 
6122  def do_destroy(self):
6123  """do_destroy(Optimizer self)"""
6124  return _IMP_kernel.Optimizer_do_destroy(self)
6125 
6126 
6127  def handle_set_has_required_score_states(self, arg0):
6128  """handle_set_has_required_score_states(Optimizer self, bool arg0)"""
6129  return _IMP_kernel.Optimizer_handle_set_has_required_score_states(self, arg0)
6130 
6131 
6132  def do_get_interactions(self):
6133  """do_get_interactions(Optimizer self) -> IMP::ModelObjectsTemps"""
6134  return _IMP_kernel.Optimizer_do_get_interactions(self)
6135 
6136 Optimizer_swigregister = _IMP_kernel.Optimizer_swigregister
6137 Optimizer_swigregister(Optimizer)
6138 
6139 class AttributeOptimizer(Optimizer):
6140  """Proxy of C++ IMP::AttributeOptimizer class."""
6141 
6142  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6143 
6144  def __init__(self, *args):
6145  """
6146  __init__(IMP::AttributeOptimizer self, Model m, std::string name) -> AttributeOptimizer
6147  __init__(IMP::AttributeOptimizer self, Model m) -> AttributeOptimizer
6148  """
6149  if self.__class__ == AttributeOptimizer:
6150  _self = None
6151  else:
6152  _self = self
6153  this = _IMP_kernel.new_AttributeOptimizer(_self, *args)
6154  try:
6155  self.this.append(this)
6156  except __builtin__.Exception:
6157  self.this = this
6158 
6159  if self.__class__ != AttributeOptimizer:
6160  _director_objects.register(self)
6161 
6162 
6163 
6164 
6165  def get_optimized_attributes(self):
6166  """get_optimized_attributes(AttributeOptimizer self) -> IMP::FloatIndexes"""
6167  return _IMP_kernel.AttributeOptimizer_get_optimized_attributes(self)
6168 
6169 
6170  def set_value(self, fi, v):
6171  """set_value(AttributeOptimizer self, FloatIndex fi, double v)"""
6172  return _IMP_kernel.AttributeOptimizer_set_value(self, fi, v)
6173 
6174 
6175  def get_value(self, fi):
6176  """get_value(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
6177  return _IMP_kernel.AttributeOptimizer_get_value(self, fi)
6178 
6179 
6180  def get_derivative(self, fi):
6181  """get_derivative(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
6182  return _IMP_kernel.AttributeOptimizer_get_derivative(self, fi)
6183 
6184 
6185  def get_width(self, k):
6186  """get_width(AttributeOptimizer self, FloatKey k) -> double"""
6187  return _IMP_kernel.AttributeOptimizer_get_width(self, k)
6188 
6189 
6190  def set_scaled_value(self, fi, v):
6191  """set_scaled_value(AttributeOptimizer self, FloatIndex fi, IMP::Float v)"""
6192  return _IMP_kernel.AttributeOptimizer_set_scaled_value(self, fi, v)
6193 
6194 
6195  def get_scaled_value(self, fi):
6196  """get_scaled_value(AttributeOptimizer self, FloatIndex fi) -> double"""
6197  return _IMP_kernel.AttributeOptimizer_get_scaled_value(self, fi)
6198 
6199 
6200  def get_scaled_derivative(self, fi):
6201  """get_scaled_derivative(AttributeOptimizer self, FloatIndex fi) -> double"""
6202  return _IMP_kernel.AttributeOptimizer_get_scaled_derivative(self, fi)
6203 
6204 
6205  def clear_range_cache(self):
6206  """clear_range_cache(AttributeOptimizer self)"""
6207  return _IMP_kernel.AttributeOptimizer_clear_range_cache(self)
6208 
6209 
6210  def __str__(self):
6211  """__str__(AttributeOptimizer self) -> std::string"""
6212  return _IMP_kernel.AttributeOptimizer___str__(self)
6213 
6214 
6215  def __repr__(self):
6216  """__repr__(AttributeOptimizer self) -> std::string"""
6217  return _IMP_kernel.AttributeOptimizer___repr__(self)
6218 
6219 
6220  @staticmethod
6221  def get_from(o):
6222  return _object_cast_to_AttributeOptimizer(o)
6223 
6224 
6225  def get_type_name(self):
6226  return self.__class__.__name__
6227  def do_show(self, out):
6228  pass
6229  def get_version_info(self):
6230  if"IMP" == "IMP":
6231  return VersionInfo(self.__module__,
6232  __import__(self.__module__).get_module_version())
6233  else:
6234  return IMP.VersionInfo(self.__module__,
6235  __import__(self.__module__).get_module_version())
6236  @staticmethod
6237  def get_from(o):
6238  return _object_cast_to_AttributeOptimizer(o)
6239 
6240  __swig_destroy__ = _IMP_kernel.delete_AttributeOptimizer
6241  __del__ = lambda self: None
6242  def __disown__(self):
6243  self.this.disown()
6244  _IMP_kernel.disown_AttributeOptimizer(self)
6245  return weakref_proxy(self)
6246 
6247  def do_destroy(self):
6248  """do_destroy(AttributeOptimizer self)"""
6249  return _IMP_kernel.AttributeOptimizer_do_destroy(self)
6250 
6251 
6252  def handle_set_has_required_score_states(self, arg0):
6253  """handle_set_has_required_score_states(AttributeOptimizer self, bool arg0)"""
6254  return _IMP_kernel.AttributeOptimizer_handle_set_has_required_score_states(self, arg0)
6255 
6256 
6257  def do_get_inputs(self):
6258  """do_get_inputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
6259  return _IMP_kernel.AttributeOptimizer_do_get_inputs(self)
6260 
6261 
6262  def do_get_outputs(self):
6263  """do_get_outputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
6264  return _IMP_kernel.AttributeOptimizer_do_get_outputs(self)
6265 
6266 
6267  def do_get_interactions(self):
6268  """do_get_interactions(AttributeOptimizer self) -> IMP::ModelObjectsTemps"""
6269  return _IMP_kernel.AttributeOptimizer_do_get_interactions(self)
6270 
6271 
6272  def do_optimize(self, ns):
6273  """do_optimize(AttributeOptimizer self, unsigned int ns) -> double"""
6274  return _IMP_kernel.AttributeOptimizer_do_optimize(self, ns)
6275 
6276 AttributeOptimizer_swigregister = _IMP_kernel.AttributeOptimizer_swigregister
6277 AttributeOptimizer_swigregister(AttributeOptimizer)
6278 
6279 class ConfigurationSet(Object):
6280  """Proxy of C++ IMP::ConfigurationSet class."""
6281 
6282  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6283 
6284  def __init__(self, *args):
6285  """
6286  __init__(IMP::ConfigurationSet self, Model m, std::string name) -> ConfigurationSet
6287  __init__(IMP::ConfigurationSet self, Model m) -> ConfigurationSet
6288  """
6289  this = _IMP_kernel.new_ConfigurationSet(*args)
6290  try:
6291  self.this.append(this)
6292  except __builtin__.Exception:
6293  self.this = this
6294 
6295  def save_configuration(self):
6296  """save_configuration(ConfigurationSet self)"""
6297  return _IMP_kernel.ConfigurationSet_save_configuration(self)
6298 
6299 
6300  def get_number_of_configurations(self):
6301  """get_number_of_configurations(ConfigurationSet self) -> unsigned int"""
6302  return _IMP_kernel.ConfigurationSet_get_number_of_configurations(self)
6303 
6304 
6305  def load_configuration(self, i):
6306  """load_configuration(ConfigurationSet self, int i)"""
6307  return _IMP_kernel.ConfigurationSet_load_configuration(self, i)
6308 
6309 
6310  def remove_configuration(self, i):
6311  """remove_configuration(ConfigurationSet self, unsigned int i)"""
6312  return _IMP_kernel.ConfigurationSet_remove_configuration(self, i)
6313 
6314 
6315  def get_model(self):
6316  """get_model(ConfigurationSet self) -> Model"""
6317  return _IMP_kernel.ConfigurationSet_get_model(self)
6318 
6319 
6320  def get_version_info(self):
6321  """get_version_info(ConfigurationSet self) -> VersionInfo"""
6322  return _IMP_kernel.ConfigurationSet_get_version_info(self)
6323 
6324 
6325  def __str__(self):
6326  """__str__(ConfigurationSet self) -> std::string"""
6327  return _IMP_kernel.ConfigurationSet___str__(self)
6328 
6329 
6330  def __repr__(self):
6331  """__repr__(ConfigurationSet self) -> std::string"""
6332  return _IMP_kernel.ConfigurationSet___repr__(self)
6333 
6334 
6335  @staticmethod
6336  def get_from(o):
6337  return _object_cast_to_ConfigurationSet(o)
6338 
6339 ConfigurationSet_swigregister = _IMP_kernel.ConfigurationSet_swigregister
6340 ConfigurationSet_swigregister(ConfigurationSet)
6341 
6342 class SaveToConfigurationSetOptimizerState(OptimizerState):
6343  """Proxy of C++ IMP::SaveToConfigurationSetOptimizerState class."""
6344 
6345  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6346 
6347  def __init__(self, cs):
6348  """__init__(IMP::SaveToConfigurationSetOptimizerState self, ConfigurationSet cs) -> SaveToConfigurationSetOptimizerState"""
6349  this = _IMP_kernel.new_SaveToConfigurationSetOptimizerState(cs)
6350  try:
6351  self.this.append(this)
6352  except __builtin__.Exception:
6353  self.this = this
6354 
6355  def get_version_info(self):
6356  """get_version_info(SaveToConfigurationSetOptimizerState self) -> VersionInfo"""
6357  return _IMP_kernel.SaveToConfigurationSetOptimizerState_get_version_info(self)
6358 
6359 
6360  def __str__(self):
6361  """__str__(SaveToConfigurationSetOptimizerState self) -> std::string"""
6362  return _IMP_kernel.SaveToConfigurationSetOptimizerState___str__(self)
6363 
6364 
6365  def __repr__(self):
6366  """__repr__(SaveToConfigurationSetOptimizerState self) -> std::string"""
6367  return _IMP_kernel.SaveToConfigurationSetOptimizerState___repr__(self)
6368 
6369 
6370  @staticmethod
6371  def get_from(o):
6372  return _object_cast_to_SaveToConfigurationSetOptimizerState(o)
6373 
6374 SaveToConfigurationSetOptimizerState_swigregister = _IMP_kernel.SaveToConfigurationSetOptimizerState_swigregister
6375 SaveToConfigurationSetOptimizerState_swigregister(SaveToConfigurationSetOptimizerState)
6376 
6377 class Configuration(Object):
6378  """Proxy of C++ IMP::Configuration class."""
6379 
6380  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6381 
6382  def __init__(self, *args):
6383  """
6384  __init__(IMP::Configuration self, Model m, std::string name) -> Configuration
6385  __init__(IMP::Configuration self, Model m) -> Configuration
6386  __init__(IMP::Configuration self, Model m, Configuration base, std::string name) -> Configuration
6387  __init__(IMP::Configuration self, Model m, Configuration base) -> Configuration
6388  """
6389  this = _IMP_kernel.new_Configuration(*args)
6390  try:
6391  self.this.append(this)
6392  except __builtin__.Exception:
6393  self.this = this
6394 
6395  def load_configuration(self):
6396  """load_configuration(Configuration self)"""
6397  return _IMP_kernel.Configuration_load_configuration(self)
6398 
6399 
6400  def swap_configuration(self):
6401  """swap_configuration(Configuration self)"""
6402  return _IMP_kernel.Configuration_swap_configuration(self)
6403 
6404 
6405  def get_version_info(self):
6406  """get_version_info(Configuration self) -> VersionInfo"""
6407  return _IMP_kernel.Configuration_get_version_info(self)
6408 
6409 
6410  def __str__(self):
6411  """__str__(Configuration self) -> std::string"""
6412  return _IMP_kernel.Configuration___str__(self)
6413 
6414 
6415  def __repr__(self):
6416  """__repr__(Configuration self) -> std::string"""
6417  return _IMP_kernel.Configuration___repr__(self)
6418 
6419 
6420  @staticmethod
6421  def get_from(o):
6422  return _object_cast_to_Configuration(o)
6423 
6424 Configuration_swigregister = _IMP_kernel.Configuration_swigregister
6425 Configuration_swigregister(Configuration)
6426 
6427 class Sampler(Object):
6428  """Proxy of C++ IMP::Sampler class."""
6429 
6430  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6431 
6432  def __init__(self, *args):
6433  """
6434  __init__(IMP::Sampler self, Model m, std::string name) -> Sampler
6435  __init__(IMP::Sampler self, Model m) -> Sampler
6436  """
6437  if self.__class__ == Sampler:
6438  _self = None
6439  else:
6440  _self = self
6441  this = _IMP_kernel.new_Sampler(_self, *args)
6442  try:
6443  self.this.append(this)
6444  except __builtin__.Exception:
6445  self.this = this
6446 
6447  if self.__class__ != Sampler:
6448  _director_objects.register(self)
6449 
6450 
6451 
6452 
6453  def create_sample(self):
6454  """create_sample(Sampler self) -> ConfigurationSet"""
6455  return _IMP_kernel.Sampler_create_sample(self)
6456 
6457 
6458  def get_scoring_function(self):
6459  """get_scoring_function(Sampler self) -> ScoringFunction"""
6460  return _IMP_kernel.Sampler_get_scoring_function(self)
6461 
6462 
6463  def set_scoring_function(self, sf):
6464  """set_scoring_function(Sampler self, _ScoringFunctionAdaptor sf)"""
6465  return _IMP_kernel.Sampler_set_scoring_function(self, sf)
6466 
6467 
6468  def get_model(self):
6469  """get_model(Sampler self) -> Model"""
6470  return _IMP_kernel.Sampler_get_model(self)
6471 
6472 
6473  def do_sample(self):
6474  """do_sample(Sampler self) -> ConfigurationSet"""
6475  return _IMP_kernel.Sampler_do_sample(self)
6476 
6477  __swig_destroy__ = _IMP_kernel.delete_Sampler
6478  __del__ = lambda self: None
6479 
6480  def __str__(self):
6481  """__str__(Sampler self) -> std::string"""
6482  return _IMP_kernel.Sampler___str__(self)
6483 
6484 
6485  def __repr__(self):
6486  """__repr__(Sampler self) -> std::string"""
6487  return _IMP_kernel.Sampler___repr__(self)
6488 
6489 
6490  @staticmethod
6491  def get_from(o):
6492  return _object_cast_to_Sampler(o)
6493 
6494 
6495  def get_type_name(self):
6496  return self.__class__.__name__
6497  def do_show(self, out):
6498  pass
6499  def get_version_info(self):
6500  if"IMP" == "IMP":
6501  return VersionInfo(self.__module__,
6502  __import__(self.__module__).get_module_version())
6503  else:
6504  return IMP.VersionInfo(self.__module__,
6505  __import__(self.__module__).get_module_version())
6506  @staticmethod
6507  def get_from(o):
6508  return _object_cast_to_Sampler(o)
6509 
6510  def __disown__(self):
6511  self.this.disown()
6512  _IMP_kernel.disown_Sampler(self)
6513  return weakref_proxy(self)
6514 
6515  def do_destroy(self):
6516  """do_destroy(Sampler self)"""
6517  return _IMP_kernel.Sampler_do_destroy(self)
6518 
6519 Sampler_swigregister = _IMP_kernel.Sampler_swigregister
6520 Sampler_swigregister(Sampler)
6521 
6522 class PairModifier(_ParticleInputs, _ParticleOutputs, Object):
6523  """Proxy of C++ IMP::PairModifier class."""
6524 
6525  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6526 
6527  def __init__(self, *args):
6528  """
6529  __init__(IMP::PairModifier self, std::string name) -> PairModifier
6530  __init__(IMP::PairModifier self) -> PairModifier
6531  """
6532  if self.__class__ == PairModifier:
6533  _self = None
6534  else:
6535  _self = self
6536  this = _IMP_kernel.new_PairModifier(_self, *args)
6537  try:
6538  self.this.append(this)
6539  except __builtin__.Exception:
6540  self.this = this
6541 
6542  if self.__class__ != PairModifier:
6543  _director_objects.register(self)
6544 
6545 
6546 
6547 
6548  def apply_index(self, m, v):
6549  """apply_index(PairModifier self, Model m, IMP::ParticleIndexPair const & v)"""
6550  return _IMP_kernel.PairModifier_apply_index(self, m, v)
6551 
6552 
6553  def apply_indexes(self, m, o, lower_bound, upper_bound):
6554  """apply_indexes(PairModifier self, Model m, IMP::ParticleIndexPairs const & o, unsigned int lower_bound, unsigned int upper_bound)"""
6555  return _IMP_kernel.PairModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
6556 
6557 
6558  def __str__(self):
6559  """__str__(PairModifier self) -> std::string"""
6560  return _IMP_kernel.PairModifier___str__(self)
6561 
6562 
6563  def __repr__(self):
6564  """__repr__(PairModifier self) -> std::string"""
6565  return _IMP_kernel.PairModifier___repr__(self)
6566 
6567 
6568  @staticmethod
6569  def get_from(o):
6570  return _object_cast_to_PairModifier(o)
6571 
6572 
6573  def get_type_name(self):
6574  return self.__class__.__name__
6575  def do_show(self, out):
6576  pass
6577  def get_version_info(self):
6578  if"IMP" == "IMP":
6579  return VersionInfo(self.__module__,
6580  __import__(self.__module__).get_module_version())
6581  else:
6582  return IMP.VersionInfo(self.__module__,
6583  __import__(self.__module__).get_module_version())
6584  @staticmethod
6585  def get_from(o):
6586  return _object_cast_to_PairModifier(o)
6587 
6588  __swig_destroy__ = _IMP_kernel.delete_PairModifier
6589  __del__ = lambda self: None
6590  def __disown__(self):
6591  self.this.disown()
6592  _IMP_kernel.disown_PairModifier(self)
6593  return weakref_proxy(self)
6594 
6595  def do_get_inputs(self, m, pis):
6596  """do_get_inputs(PairModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6597  return _IMP_kernel.PairModifier_do_get_inputs(self, m, pis)
6598 
6599 
6600  def do_get_outputs(self, m, pis):
6601  """do_get_outputs(PairModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6602  return _IMP_kernel.PairModifier_do_get_outputs(self, m, pis)
6603 
6604 
6605  def do_destroy(self):
6606  """do_destroy(PairModifier self)"""
6607  return _IMP_kernel.PairModifier_do_destroy(self)
6608 
6609 PairModifier_swigregister = _IMP_kernel.PairModifier_swigregister
6610 PairModifier_swigregister(PairModifier)
6611 
6612 class PairScore(_ParticleInputs, Object):
6613  """Proxy of C++ IMP::PairScore class."""
6614 
6615  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6616 
6617  def __init__(self, *args):
6618  """
6619  __init__(IMP::PairScore self, std::string name) -> PairScore
6620  __init__(IMP::PairScore self) -> PairScore
6621  """
6622  if self.__class__ == PairScore:
6623  _self = None
6624  else:
6625  _self = self
6626  this = _IMP_kernel.new_PairScore(_self, *args)
6627  try:
6628  self.this.append(this)
6629  except __builtin__.Exception:
6630  self.this = this
6631 
6632  if self.__class__ != PairScore:
6633  _director_objects.register(self)
6634 
6635 
6636 
6637 
6638  def evaluate_index(self, m, vt, da):
6639  """evaluate_index(PairScore self, Model m, IMP::ParticleIndexPair const & vt, DerivativeAccumulator da) -> double"""
6640  return _IMP_kernel.PairScore_evaluate_index(self, m, vt, da)
6641 
6642 
6643  def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
6644  """evaluate_indexes(PairScore self, Model m, IMP::ParticleIndexPairs const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
6645  return _IMP_kernel.PairScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
6646 
6647 
6648  def evaluate_if_good_index(self, m, vt, da, max):
6649  """evaluate_if_good_index(PairScore self, Model m, IMP::ParticleIndexPair const & vt, DerivativeAccumulator da, double max) -> double"""
6650  return _IMP_kernel.PairScore_evaluate_if_good_index(self, m, vt, da, max)
6651 
6652 
6653  def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
6654  """evaluate_if_good_indexes(PairScore self, Model m, IMP::ParticleIndexPairs const & o, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound) -> double"""
6655  return _IMP_kernel.PairScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
6656 
6657 
6658  def create_current_decomposition(self, m, vt):
6659  """create_current_decomposition(PairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
6660  return _IMP_kernel.PairScore_create_current_decomposition(self, m, vt)
6661 
6662 
6663  def do_create_current_decomposition(self, m, vt):
6664  """do_create_current_decomposition(PairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
6665  return _IMP_kernel.PairScore_do_create_current_decomposition(self, m, vt)
6666 
6667  __swig_destroy__ = _IMP_kernel.delete_PairScore
6668  __del__ = lambda self: None
6669 
6670  def __str__(self):
6671  """__str__(PairScore self) -> std::string"""
6672  return _IMP_kernel.PairScore___str__(self)
6673 
6674 
6675  def __repr__(self):
6676  """__repr__(PairScore self) -> std::string"""
6677  return _IMP_kernel.PairScore___repr__(self)
6678 
6679 
6680  @staticmethod
6681  def get_from(o):
6682  return _object_cast_to_PairScore(o)
6683 
6684 
6685  def get_type_name(self):
6686  return self.__class__.__name__
6687  def do_show(self, out):
6688  pass
6689  def get_version_info(self):
6690  if"IMP" == "IMP":
6691  return VersionInfo(self.__module__,
6692  __import__(self.__module__).get_module_version())
6693  else:
6694  return IMP.VersionInfo(self.__module__,
6695  __import__(self.__module__).get_module_version())
6696  @staticmethod
6697  def get_from(o):
6698  return _object_cast_to_PairScore(o)
6699 
6700  def __disown__(self):
6701  self.this.disown()
6702  _IMP_kernel.disown_PairScore(self)
6703  return weakref_proxy(self)
6704 
6705  def do_get_inputs(self, m, pis):
6706  """do_get_inputs(PairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6707  return _IMP_kernel.PairScore_do_get_inputs(self, m, pis)
6708 
6709 
6710  def do_destroy(self):
6711  """do_destroy(PairScore self)"""
6712  return _IMP_kernel.PairScore_do_destroy(self)
6713 
6714 PairScore_swigregister = _IMP_kernel.PairScore_swigregister
6715 PairScore_swigregister(PairScore)
6716 
6717 class PairPredicate(_ParticleInputs, Object):
6718  """Proxy of C++ IMP::PairPredicate class."""
6719 
6720  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6721 
6722  def __init__(self, *args):
6723  """
6724  __init__(IMP::PairPredicate self, std::string name) -> PairPredicate
6725  __init__(IMP::PairPredicate self) -> PairPredicate
6726  """
6727  if self.__class__ == PairPredicate:
6728  _self = None
6729  else:
6730  _self = self
6731  this = _IMP_kernel.new_PairPredicate(_self, *args)
6732  try:
6733  self.this.append(this)
6734  except __builtin__.Exception:
6735  self.this = this
6736 
6737  if self.__class__ != PairPredicate:
6738  _director_objects.register(self)
6739 
6740 
6741 
6742 
6743  def get_value(self, *args):
6744  """
6745  get_value(PairPredicate self, IMP::ParticlePair const & vt) -> int
6746  get_value(PairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
6747  """
6748  return _IMP_kernel.PairPredicate_get_value(self, *args)
6749 
6750 
6751  def setup_for_get_value_index_in_batch(self, arg0):
6752  """setup_for_get_value_index_in_batch(PairPredicate self, Model arg0)"""
6753  return _IMP_kernel.PairPredicate_setup_for_get_value_index_in_batch(self, arg0)
6754 
6755 
6756  def get_value_index_in_batch(self, m, vt):
6757  """get_value_index_in_batch(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int"""
6758  return _IMP_kernel.PairPredicate_get_value_index_in_batch(self, m, vt)
6759 
6760 
6761  def __call__(self, m, vt):
6762  """__call__(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int"""
6763  return _IMP_kernel.PairPredicate___call__(self, m, vt)
6764 
6765 
6766  def get_value_index(self, *args):
6767  """
6768  get_value_index(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int
6769  get_value_index(PairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
6770  """
6771  return _IMP_kernel.PairPredicate_get_value_index(self, *args)
6772 
6773  __swig_destroy__ = _IMP_kernel.delete_PairPredicate
6774  __del__ = lambda self: None
6775 
6776  def __str__(self):
6777  """__str__(PairPredicate self) -> std::string"""
6778  return _IMP_kernel.PairPredicate___str__(self)
6779 
6780 
6781  def __repr__(self):
6782  """__repr__(PairPredicate self) -> std::string"""
6783  return _IMP_kernel.PairPredicate___repr__(self)
6784 
6785 
6786  @staticmethod
6787  def get_from(o):
6788  return _object_cast_to_PairPredicate(o)
6789 
6790 
6791  def get_type_name(self):
6792  return self.__class__.__name__
6793  def do_show(self, out):
6794  pass
6795  def get_version_info(self):
6796  if"IMP" == "IMP":
6797  return VersionInfo(self.__module__,
6798  __import__(self.__module__).get_module_version())
6799  else:
6800  return IMP.VersionInfo(self.__module__,
6801  __import__(self.__module__).get_module_version())
6802  @staticmethod
6803  def get_from(o):
6804  return _object_cast_to_PairPredicate(o)
6805 
6806  def __disown__(self):
6807  self.this.disown()
6808  _IMP_kernel.disown_PairPredicate(self)
6809  return weakref_proxy(self)
6810 
6811  def do_get_inputs(self, m, pis):
6812  """do_get_inputs(PairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6813  return _IMP_kernel.PairPredicate_do_get_inputs(self, m, pis)
6814 
6815 
6816  def do_destroy(self):
6817  """do_destroy(PairPredicate self)"""
6818  return _IMP_kernel.PairPredicate_do_destroy(self)
6819 
6820 PairPredicate_swigregister = _IMP_kernel.PairPredicate_swigregister
6821 PairPredicate_swigregister(PairPredicate)
6822 
6823 class PairContainer(Container):
6824  """Proxy of C++ IMP::PairContainer class."""
6825 
6826  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6827 
6828  def apply_generic(self, m):
6829  """apply_generic(PairContainer self, PairModifier m)"""
6830  return _IMP_kernel.PairContainer_apply_generic(self, m)
6831 
6832 
6833  def apply(self, sm):
6834  """apply(PairContainer self, PairModifier sm)"""
6835  return _IMP_kernel.PairContainer_apply(self, sm)
6836 
6837 
6838  def get_range_indexes(self):
6839  """get_range_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
6840  return _IMP_kernel.PairContainer_get_range_indexes(self)
6841 
6842 
6843  def get_contents(self):
6844  """get_contents(PairContainer self) -> IMP::ParticleIndexPairs const &"""
6845  return _IMP_kernel.PairContainer_get_contents(self)
6846 
6847 
6848  def get_indexes(self):
6849  """get_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
6850  return _IMP_kernel.PairContainer_get_indexes(self)
6851 
6852 
6853  def get(self, *args):
6854  """
6855  get(PairContainer self) -> IMP::ParticlePairsTemp
6856  get(PairContainer self, unsigned int i) -> IMP::ParticlePair
6857  """
6858  return _IMP_kernel.PairContainer_get(self, *args)
6859 
6860 
6861  def get_number(self):
6862  """get_number(PairContainer self) -> unsigned int"""
6863  return _IMP_kernel.PairContainer_get_number(self)
6864 
6865 
6866  def get_particle_pairs(self):
6867  """get_particle_pairs(PairContainer self) -> IMP::ParticlePairsTemp"""
6868  return _IMP_kernel.PairContainer_get_particle_pairs(self)
6869 
6870 
6871  def get_particle_pair(self, i):
6872  """get_particle_pair(PairContainer self, unsigned int i) -> IMP::ParticlePair"""
6873  return _IMP_kernel.PairContainer_get_particle_pair(self, i)
6874 
6875 
6876  def __init__(self, *args):
6877  """
6878  __init__(IMP::PairContainer self, Model m, std::string name) -> PairContainer
6879  __init__(IMP::PairContainer self, Model m) -> PairContainer
6880  """
6881  if self.__class__ == PairContainer:
6882  _self = None
6883  else:
6884  _self = self
6885  this = _IMP_kernel.new_PairContainer(_self, *args)
6886  try:
6887  self.this.append(this)
6888  except __builtin__.Exception:
6889  self.this = this
6890 
6891  if self.__class__ != PairContainer:
6892  _director_objects.register(self)
6893 
6894 
6895 
6896 
6897  def do_apply(self, sm):
6898  """do_apply(PairContainer self, PairModifier sm)"""
6899  return _IMP_kernel.PairContainer_do_apply(self, sm)
6900 
6901 
6902  def do_get_provides_access(self):
6903  """do_get_provides_access(PairContainer self) -> bool"""
6904  return _IMP_kernel.PairContainer_do_get_provides_access(self)
6905 
6906  __swig_destroy__ = _IMP_kernel.delete_PairContainer
6907  __del__ = lambda self: None
6908 
6909  def __str__(self):
6910  """__str__(PairContainer self) -> std::string"""
6911  return _IMP_kernel.PairContainer___str__(self)
6912 
6913 
6914  def __repr__(self):
6915  """__repr__(PairContainer self) -> std::string"""
6916  return _IMP_kernel.PairContainer___repr__(self)
6917 
6918 
6919  @staticmethod
6920  def get_from(o):
6921  return _object_cast_to_PairContainer(o)
6922 
6923 
6924  def get_type_name(self):
6925  return self.__class__.__name__
6926  def do_show(self, out):
6927  pass
6928  def get_version_info(self):
6929  if"IMP" == "IMP":
6930  return VersionInfo(self.__module__,
6931  __import__(self.__module__).get_module_version())
6932  else:
6933  return IMP.VersionInfo(self.__module__,
6934  __import__(self.__module__).get_module_version())
6935  @staticmethod
6936  def get_from(o):
6937  return _object_cast_to_PairContainer(o)
6938 
6939  def __disown__(self):
6940  self.this.disown()
6941  _IMP_kernel.disown_PairContainer(self)
6942  return weakref_proxy(self)
6943 
6944  def do_destroy(self):
6945  """do_destroy(PairContainer self)"""
6946  return _IMP_kernel.PairContainer_do_destroy(self)
6947 
6948 
6949  def handle_set_has_required_score_states(self, arg0):
6950  """handle_set_has_required_score_states(PairContainer self, bool arg0)"""
6951  return _IMP_kernel.PairContainer_handle_set_has_required_score_states(self, arg0)
6952 
6953 
6954  def do_get_inputs(self):
6955  """do_get_inputs(PairContainer self) -> IMP::ModelObjectsTemp"""
6956  return _IMP_kernel.PairContainer_do_get_inputs(self)
6957 
6958 
6959  def do_get_interactions(self):
6960  """do_get_interactions(PairContainer self) -> IMP::ModelObjectsTemps"""
6961  return _IMP_kernel.PairContainer_do_get_interactions(self)
6962 
6963 
6964  def do_get_contents_hash(self):
6965  """do_get_contents_hash(PairContainer self) -> std::size_t"""
6966  return _IMP_kernel.PairContainer_do_get_contents_hash(self)
6967 
6968 PairContainer_swigregister = _IMP_kernel.PairContainer_swigregister
6969 PairContainer_swigregister(PairContainer)
6970 
6971 class _PairContainerAdaptor(_InputAdaptor):
6972  """Proxy of C++ IMP::PairContainerAdaptor class."""
6973 
6974  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6975  __repr__ = _swig_repr
6976 
6977  def __init__(self, *args):
6978  """
6979  __init__(IMP::PairContainerAdaptor self) -> _PairContainerAdaptor
6980  __init__(IMP::PairContainerAdaptor self, PairContainer c) -> _PairContainerAdaptor
6981  __init__(IMP::PairContainerAdaptor self, IMP::ParticlePairsTemp const & t) -> _PairContainerAdaptor
6982  """
6983  this = _IMP_kernel.new__PairContainerAdaptor(*args)
6984  try:
6985  self.this.append(this)
6986  except __builtin__.Exception:
6987  self.this = this
6988 
6989  def set_name_if_default(self, name):
6990  """set_name_if_default(_PairContainerAdaptor self, std::string name)"""
6991  return _IMP_kernel._PairContainerAdaptor_set_name_if_default(self, name)
6992 
6993  __swig_destroy__ = _IMP_kernel.delete__PairContainerAdaptor
6994  __del__ = lambda self: None
6995 _PairContainerAdaptor_swigregister = _IMP_kernel._PairContainerAdaptor_swigregister
6996 _PairContainerAdaptor_swigregister(_PairContainerAdaptor)
6997 
6998 class QuadModifier(_ParticleInputs, _ParticleOutputs, Object):
6999  """Proxy of C++ IMP::QuadModifier class."""
7000 
7001  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7002 
7003  def __init__(self, *args):
7004  """
7005  __init__(IMP::QuadModifier self, std::string name) -> QuadModifier
7006  __init__(IMP::QuadModifier self) -> QuadModifier
7007  """
7008  if self.__class__ == QuadModifier:
7009  _self = None
7010  else:
7011  _self = self
7012  this = _IMP_kernel.new_QuadModifier(_self, *args)
7013  try:
7014  self.this.append(this)
7015  except __builtin__.Exception:
7016  self.this = this
7017 
7018  if self.__class__ != QuadModifier:
7019  _director_objects.register(self)
7020 
7021 
7022 
7023 
7024  def apply_index(self, m, v):
7025  """apply_index(QuadModifier self, Model m, IMP::ParticleIndexQuad const & v)"""
7026  return _IMP_kernel.QuadModifier_apply_index(self, m, v)
7027 
7028 
7029  def apply_indexes(self, m, o, lower_bound, upper_bound):
7030  """apply_indexes(QuadModifier self, Model m, IMP::ParticleIndexQuads const & o, unsigned int lower_bound, unsigned int upper_bound)"""
7031  return _IMP_kernel.QuadModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
7032 
7033 
7034  def __str__(self):
7035  """__str__(QuadModifier self) -> std::string"""
7036  return _IMP_kernel.QuadModifier___str__(self)
7037 
7038 
7039  def __repr__(self):
7040  """__repr__(QuadModifier self) -> std::string"""
7041  return _IMP_kernel.QuadModifier___repr__(self)
7042 
7043 
7044  @staticmethod
7045  def get_from(o):
7046  return _object_cast_to_QuadModifier(o)
7047 
7048 
7049  def get_type_name(self):
7050  return self.__class__.__name__
7051  def do_show(self, out):
7052  pass
7053  def get_version_info(self):
7054  if"IMP" == "IMP":
7055  return VersionInfo(self.__module__,
7056  __import__(self.__module__).get_module_version())
7057  else:
7058  return IMP.VersionInfo(self.__module__,
7059  __import__(self.__module__).get_module_version())
7060  @staticmethod
7061  def get_from(o):
7062  return _object_cast_to_QuadModifier(o)
7063 
7064  __swig_destroy__ = _IMP_kernel.delete_QuadModifier
7065  __del__ = lambda self: None
7066  def __disown__(self):
7067  self.this.disown()
7068  _IMP_kernel.disown_QuadModifier(self)
7069  return weakref_proxy(self)
7070 
7071  def do_get_inputs(self, m, pis):
7072  """do_get_inputs(QuadModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7073  return _IMP_kernel.QuadModifier_do_get_inputs(self, m, pis)
7074 
7075 
7076  def do_get_outputs(self, m, pis):
7077  """do_get_outputs(QuadModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7078  return _IMP_kernel.QuadModifier_do_get_outputs(self, m, pis)
7079 
7080 
7081  def do_destroy(self):
7082  """do_destroy(QuadModifier self)"""
7083  return _IMP_kernel.QuadModifier_do_destroy(self)
7084 
7085 QuadModifier_swigregister = _IMP_kernel.QuadModifier_swigregister
7086 QuadModifier_swigregister(QuadModifier)
7087 
7088 class QuadScore(_ParticleInputs, Object):
7089  """Proxy of C++ IMP::QuadScore class."""
7090 
7091  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7092 
7093  def __init__(self, *args):
7094  """
7095  __init__(IMP::QuadScore self, std::string name) -> QuadScore
7096  __init__(IMP::QuadScore self) -> QuadScore
7097  """
7098  if self.__class__ == QuadScore:
7099  _self = None
7100  else:
7101  _self = self
7102  this = _IMP_kernel.new_QuadScore(_self, *args)
7103  try:
7104  self.this.append(this)
7105  except __builtin__.Exception:
7106  self.this = this
7107 
7108  if self.__class__ != QuadScore:
7109  _director_objects.register(self)
7110 
7111 
7112 
7113 
7114  def evaluate_index(self, m, vt, da):
7115  """evaluate_index(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt, DerivativeAccumulator da) -> double"""
7116  return _IMP_kernel.QuadScore_evaluate_index(self, m, vt, da)
7117 
7118 
7119  def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
7120  """evaluate_indexes(QuadScore self, Model m, IMP::ParticleIndexQuads const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7121  return _IMP_kernel.QuadScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
7122 
7123 
7124  def evaluate_if_good_index(self, m, vt, da, max):
7125  """evaluate_if_good_index(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt, DerivativeAccumulator da, double max) -> double"""
7126  return _IMP_kernel.QuadScore_evaluate_if_good_index(self, m, vt, da, max)
7127 
7128 
7129  def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
7130  """evaluate_if_good_indexes(QuadScore self, Model m, IMP::ParticleIndexQuads const & o, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7131  return _IMP_kernel.QuadScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
7132 
7133 
7134  def create_current_decomposition(self, m, vt):
7135  """create_current_decomposition(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
7136  return _IMP_kernel.QuadScore_create_current_decomposition(self, m, vt)
7137 
7138 
7139  def do_create_current_decomposition(self, m, vt):
7140  """do_create_current_decomposition(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
7141  return _IMP_kernel.QuadScore_do_create_current_decomposition(self, m, vt)
7142 
7143  __swig_destroy__ = _IMP_kernel.delete_QuadScore
7144  __del__ = lambda self: None
7145 
7146  def __str__(self):
7147  """__str__(QuadScore self) -> std::string"""
7148  return _IMP_kernel.QuadScore___str__(self)
7149 
7150 
7151  def __repr__(self):
7152  """__repr__(QuadScore self) -> std::string"""
7153  return _IMP_kernel.QuadScore___repr__(self)
7154 
7155 
7156  @staticmethod
7157  def get_from(o):
7158  return _object_cast_to_QuadScore(o)
7159 
7160 
7161  def get_type_name(self):
7162  return self.__class__.__name__
7163  def do_show(self, out):
7164  pass
7165  def get_version_info(self):
7166  if"IMP" == "IMP":
7167  return VersionInfo(self.__module__,
7168  __import__(self.__module__).get_module_version())
7169  else:
7170  return IMP.VersionInfo(self.__module__,
7171  __import__(self.__module__).get_module_version())
7172  @staticmethod
7173  def get_from(o):
7174  return _object_cast_to_QuadScore(o)
7175 
7176  def __disown__(self):
7177  self.this.disown()
7178  _IMP_kernel.disown_QuadScore(self)
7179  return weakref_proxy(self)
7180 
7181  def do_get_inputs(self, m, pis):
7182  """do_get_inputs(QuadScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7183  return _IMP_kernel.QuadScore_do_get_inputs(self, m, pis)
7184 
7185 
7186  def do_destroy(self):
7187  """do_destroy(QuadScore self)"""
7188  return _IMP_kernel.QuadScore_do_destroy(self)
7189 
7190 QuadScore_swigregister = _IMP_kernel.QuadScore_swigregister
7191 QuadScore_swigregister(QuadScore)
7192 
7193 class QuadPredicate(_ParticleInputs, Object):
7194  """Proxy of C++ IMP::QuadPredicate class."""
7195 
7196  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7197 
7198  def __init__(self, *args):
7199  """
7200  __init__(IMP::QuadPredicate self, std::string name) -> QuadPredicate
7201  __init__(IMP::QuadPredicate self) -> QuadPredicate
7202  """
7203  if self.__class__ == QuadPredicate:
7204  _self = None
7205  else:
7206  _self = self
7207  this = _IMP_kernel.new_QuadPredicate(_self, *args)
7208  try:
7209  self.this.append(this)
7210  except __builtin__.Exception:
7211  self.this = this
7212 
7213  if self.__class__ != QuadPredicate:
7214  _director_objects.register(self)
7215 
7216 
7217 
7218 
7219  def get_value(self, *args):
7220  """
7221  get_value(QuadPredicate self, IMP::ParticleQuad const & vt) -> int
7222  get_value(QuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
7223  """
7224  return _IMP_kernel.QuadPredicate_get_value(self, *args)
7225 
7226 
7227  def setup_for_get_value_index_in_batch(self, arg0):
7228  """setup_for_get_value_index_in_batch(QuadPredicate self, Model arg0)"""
7229  return _IMP_kernel.QuadPredicate_setup_for_get_value_index_in_batch(self, arg0)
7230 
7231 
7232  def get_value_index_in_batch(self, m, vt):
7233  """get_value_index_in_batch(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int"""
7234  return _IMP_kernel.QuadPredicate_get_value_index_in_batch(self, m, vt)
7235 
7236 
7237  def __call__(self, m, vt):
7238  """__call__(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int"""
7239  return _IMP_kernel.QuadPredicate___call__(self, m, vt)
7240 
7241 
7242  def get_value_index(self, *args):
7243  """
7244  get_value_index(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int
7245  get_value_index(QuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
7246  """
7247  return _IMP_kernel.QuadPredicate_get_value_index(self, *args)
7248 
7249  __swig_destroy__ = _IMP_kernel.delete_QuadPredicate
7250  __del__ = lambda self: None
7251 
7252  def __str__(self):
7253  """__str__(QuadPredicate self) -> std::string"""
7254  return _IMP_kernel.QuadPredicate___str__(self)
7255 
7256 
7257  def __repr__(self):
7258  """__repr__(QuadPredicate self) -> std::string"""
7259  return _IMP_kernel.QuadPredicate___repr__(self)
7260 
7261 
7262  @staticmethod
7263  def get_from(o):
7264  return _object_cast_to_QuadPredicate(o)
7265 
7266 
7267  def get_type_name(self):
7268  return self.__class__.__name__
7269  def do_show(self, out):
7270  pass
7271  def get_version_info(self):
7272  if"IMP" == "IMP":
7273  return VersionInfo(self.__module__,
7274  __import__(self.__module__).get_module_version())
7275  else:
7276  return IMP.VersionInfo(self.__module__,
7277  __import__(self.__module__).get_module_version())
7278  @staticmethod
7279  def get_from(o):
7280  return _object_cast_to_QuadPredicate(o)
7281 
7282  def __disown__(self):
7283  self.this.disown()
7284  _IMP_kernel.disown_QuadPredicate(self)
7285  return weakref_proxy(self)
7286 
7287  def do_get_inputs(self, m, pis):
7288  """do_get_inputs(QuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7289  return _IMP_kernel.QuadPredicate_do_get_inputs(self, m, pis)
7290 
7291 
7292  def do_destroy(self):
7293  """do_destroy(QuadPredicate self)"""
7294  return _IMP_kernel.QuadPredicate_do_destroy(self)
7295 
7296 QuadPredicate_swigregister = _IMP_kernel.QuadPredicate_swigregister
7297 QuadPredicate_swigregister(QuadPredicate)
7298 
7299 class QuadContainer(Container):
7300  """Proxy of C++ IMP::QuadContainer class."""
7301 
7302  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7303 
7304  def apply_generic(self, m):
7305  """apply_generic(QuadContainer self, QuadModifier m)"""
7306  return _IMP_kernel.QuadContainer_apply_generic(self, m)
7307 
7308 
7309  def apply(self, sm):
7310  """apply(QuadContainer self, QuadModifier sm)"""
7311  return _IMP_kernel.QuadContainer_apply(self, sm)
7312 
7313 
7314  def get_range_indexes(self):
7315  """get_range_indexes(QuadContainer self) -> IMP::ParticleIndexQuads"""
7316  return _IMP_kernel.QuadContainer_get_range_indexes(self)
7317 
7318 
7319  def get_contents(self):
7320  """get_contents(QuadContainer self) -> IMP::ParticleIndexQuads const &"""
7321  return _IMP_kernel.QuadContainer_get_contents(self)
7322 
7323 
7324  def get_indexes(self):
7325  """get_indexes(QuadContainer self) -> IMP::ParticleIndexQuads"""
7326  return _IMP_kernel.QuadContainer_get_indexes(self)
7327 
7328 
7329  def get(self, *args):
7330  """
7331  get(QuadContainer self) -> IMP::ParticleQuadsTemp
7332  get(QuadContainer self, unsigned int i) -> IMP::ParticleQuad
7333  """
7334  return _IMP_kernel.QuadContainer_get(self, *args)
7335 
7336 
7337  def get_number(self):
7338  """get_number(QuadContainer self) -> unsigned int"""
7339  return _IMP_kernel.QuadContainer_get_number(self)
7340 
7341 
7342  def get_particle_quads(self):
7343  """get_particle_quads(QuadContainer self) -> IMP::ParticleQuadsTemp"""
7344  return _IMP_kernel.QuadContainer_get_particle_quads(self)
7345 
7346 
7347  def get_particle_quad(self, i):
7348  """get_particle_quad(QuadContainer self, unsigned int i) -> IMP::ParticleQuad"""
7349  return _IMP_kernel.QuadContainer_get_particle_quad(self, i)
7350 
7351 
7352  def __init__(self, *args):
7353  """
7354  __init__(IMP::QuadContainer self, Model m, std::string name) -> QuadContainer
7355  __init__(IMP::QuadContainer self, Model m) -> QuadContainer
7356  """
7357  if self.__class__ == QuadContainer:
7358  _self = None
7359  else:
7360  _self = self
7361  this = _IMP_kernel.new_QuadContainer(_self, *args)
7362  try:
7363  self.this.append(this)
7364  except __builtin__.Exception:
7365  self.this = this
7366 
7367  if self.__class__ != QuadContainer:
7368  _director_objects.register(self)
7369 
7370 
7371 
7372 
7373  def do_apply(self, sm):
7374  """do_apply(QuadContainer self, QuadModifier sm)"""
7375  return _IMP_kernel.QuadContainer_do_apply(self, sm)
7376 
7377 
7378  def do_get_provides_access(self):
7379  """do_get_provides_access(QuadContainer self) -> bool"""
7380  return _IMP_kernel.QuadContainer_do_get_provides_access(self)
7381 
7382  __swig_destroy__ = _IMP_kernel.delete_QuadContainer
7383  __del__ = lambda self: None
7384 
7385  def __str__(self):
7386  """__str__(QuadContainer self) -> std::string"""
7387  return _IMP_kernel.QuadContainer___str__(self)
7388 
7389 
7390  def __repr__(self):
7391  """__repr__(QuadContainer self) -> std::string"""
7392  return _IMP_kernel.QuadContainer___repr__(self)
7393 
7394 
7395  @staticmethod
7396  def get_from(o):
7397  return _object_cast_to_QuadContainer(o)
7398 
7399 
7400  def get_type_name(self):
7401  return self.__class__.__name__
7402  def do_show(self, out):
7403  pass
7404  def get_version_info(self):
7405  if"IMP" == "IMP":
7406  return VersionInfo(self.__module__,
7407  __import__(self.__module__).get_module_version())
7408  else:
7409  return IMP.VersionInfo(self.__module__,
7410  __import__(self.__module__).get_module_version())
7411  @staticmethod
7412  def get_from(o):
7413  return _object_cast_to_QuadContainer(o)
7414 
7415  def __disown__(self):
7416  self.this.disown()
7417  _IMP_kernel.disown_QuadContainer(self)
7418  return weakref_proxy(self)
7419 
7420  def do_destroy(self):
7421  """do_destroy(QuadContainer self)"""
7422  return _IMP_kernel.QuadContainer_do_destroy(self)
7423 
7424 
7425  def handle_set_has_required_score_states(self, arg0):
7426  """handle_set_has_required_score_states(QuadContainer self, bool arg0)"""
7427  return _IMP_kernel.QuadContainer_handle_set_has_required_score_states(self, arg0)
7428 
7429 
7430  def do_get_inputs(self):
7431  """do_get_inputs(QuadContainer self) -> IMP::ModelObjectsTemp"""
7432  return _IMP_kernel.QuadContainer_do_get_inputs(self)
7433 
7434 
7435  def do_get_interactions(self):
7436  """do_get_interactions(QuadContainer self) -> IMP::ModelObjectsTemps"""
7437  return _IMP_kernel.QuadContainer_do_get_interactions(self)
7438 
7439 
7440  def do_get_contents_hash(self):
7441  """do_get_contents_hash(QuadContainer self) -> std::size_t"""
7442  return _IMP_kernel.QuadContainer_do_get_contents_hash(self)
7443 
7444 QuadContainer_swigregister = _IMP_kernel.QuadContainer_swigregister
7445 QuadContainer_swigregister(QuadContainer)
7446 
7447 class _QuadContainerAdaptor(_InputAdaptor):
7448  """Proxy of C++ IMP::QuadContainerAdaptor class."""
7449 
7450  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7451  __repr__ = _swig_repr
7452 
7453  def __init__(self, *args):
7454  """
7455  __init__(IMP::QuadContainerAdaptor self) -> _QuadContainerAdaptor
7456  __init__(IMP::QuadContainerAdaptor self, QuadContainer c) -> _QuadContainerAdaptor
7457  __init__(IMP::QuadContainerAdaptor self, IMP::ParticleQuadsTemp const & t) -> _QuadContainerAdaptor
7458  """
7459  this = _IMP_kernel.new__QuadContainerAdaptor(*args)
7460  try:
7461  self.this.append(this)
7462  except __builtin__.Exception:
7463  self.this = this
7464 
7465  def set_name_if_default(self, name):
7466  """set_name_if_default(_QuadContainerAdaptor self, std::string name)"""
7467  return _IMP_kernel._QuadContainerAdaptor_set_name_if_default(self, name)
7468 
7469  __swig_destroy__ = _IMP_kernel.delete__QuadContainerAdaptor
7470  __del__ = lambda self: None
7471 _QuadContainerAdaptor_swigregister = _IMP_kernel._QuadContainerAdaptor_swigregister
7472 _QuadContainerAdaptor_swigregister(_QuadContainerAdaptor)
7473 
7474 class SingletonModifier(_ParticleInputs, _ParticleOutputs, Object):
7475  """Proxy of C++ IMP::SingletonModifier class."""
7476 
7477  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7478 
7479  def __init__(self, *args):
7480  """
7481  __init__(IMP::SingletonModifier self, std::string name) -> SingletonModifier
7482  __init__(IMP::SingletonModifier self) -> SingletonModifier
7483  """
7484  if self.__class__ == SingletonModifier:
7485  _self = None
7486  else:
7487  _self = self
7488  this = _IMP_kernel.new_SingletonModifier(_self, *args)
7489  try:
7490  self.this.append(this)
7491  except __builtin__.Exception:
7492  self.this = this
7493 
7494  if self.__class__ != SingletonModifier:
7495  _director_objects.register(self)
7496 
7497 
7498 
7499 
7500  def apply_index(self, m, v):
7501  """apply_index(SingletonModifier self, Model m, ParticleIndex v)"""
7502  return _IMP_kernel.SingletonModifier_apply_index(self, m, v)
7503 
7504 
7505  def apply_indexes(self, m, o, lower_bound, upper_bound):
7506  """apply_indexes(SingletonModifier self, Model m, IMP::ParticleIndexes const & o, unsigned int lower_bound, unsigned int upper_bound)"""
7507  return _IMP_kernel.SingletonModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
7508 
7509 
7510  def __str__(self):
7511  """__str__(SingletonModifier self) -> std::string"""
7512  return _IMP_kernel.SingletonModifier___str__(self)
7513 
7514 
7515  def __repr__(self):
7516  """__repr__(SingletonModifier self) -> std::string"""
7517  return _IMP_kernel.SingletonModifier___repr__(self)
7518 
7519 
7520  @staticmethod
7521  def get_from(o):
7522  return _object_cast_to_SingletonModifier(o)
7523 
7524 
7525  def get_type_name(self):
7526  return self.__class__.__name__
7527  def do_show(self, out):
7528  pass
7529  def get_version_info(self):
7530  if"IMP" == "IMP":
7531  return VersionInfo(self.__module__,
7532  __import__(self.__module__).get_module_version())
7533  else:
7534  return IMP.VersionInfo(self.__module__,
7535  __import__(self.__module__).get_module_version())
7536  @staticmethod
7537  def get_from(o):
7538  return _object_cast_to_SingletonModifier(o)
7539 
7540  __swig_destroy__ = _IMP_kernel.delete_SingletonModifier
7541  __del__ = lambda self: None
7542  def __disown__(self):
7543  self.this.disown()
7544  _IMP_kernel.disown_SingletonModifier(self)
7545  return weakref_proxy(self)
7546 
7547  def do_get_inputs(self, m, pis):
7548  """do_get_inputs(SingletonModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7549  return _IMP_kernel.SingletonModifier_do_get_inputs(self, m, pis)
7550 
7551 
7552  def do_get_outputs(self, m, pis):
7553  """do_get_outputs(SingletonModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7554  return _IMP_kernel.SingletonModifier_do_get_outputs(self, m, pis)
7555 
7556 
7557  def do_destroy(self):
7558  """do_destroy(SingletonModifier self)"""
7559  return _IMP_kernel.SingletonModifier_do_destroy(self)
7560 
7561 SingletonModifier_swigregister = _IMP_kernel.SingletonModifier_swigregister
7562 SingletonModifier_swigregister(SingletonModifier)
7563 
7564 class SingletonScore(_ParticleInputs, Object):
7565  """Proxy of C++ IMP::SingletonScore class."""
7566 
7567  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7568 
7569  def __init__(self, *args):
7570  """
7571  __init__(IMP::SingletonScore self, std::string name) -> SingletonScore
7572  __init__(IMP::SingletonScore self) -> SingletonScore
7573  """
7574  if self.__class__ == SingletonScore:
7575  _self = None
7576  else:
7577  _self = self
7578  this = _IMP_kernel.new_SingletonScore(_self, *args)
7579  try:
7580  self.this.append(this)
7581  except __builtin__.Exception:
7582  self.this = this
7583 
7584  if self.__class__ != SingletonScore:
7585  _director_objects.register(self)
7586 
7587 
7588 
7589 
7590  def evaluate_index(self, m, vt, da):
7591  """evaluate_index(SingletonScore self, Model m, ParticleIndex vt, DerivativeAccumulator da) -> double"""
7592  return _IMP_kernel.SingletonScore_evaluate_index(self, m, vt, da)
7593 
7594 
7595  def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
7596  """evaluate_indexes(SingletonScore self, Model m, IMP::ParticleIndexes const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7597  return _IMP_kernel.SingletonScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
7598 
7599 
7600  def evaluate_if_good_index(self, m, vt, da, max):
7601  """evaluate_if_good_index(SingletonScore self, Model m, ParticleIndex vt, DerivativeAccumulator da, double max) -> double"""
7602  return _IMP_kernel.SingletonScore_evaluate_if_good_index(self, m, vt, da, max)
7603 
7604 
7605  def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
7606  """evaluate_if_good_indexes(SingletonScore self, Model m, IMP::ParticleIndexes const & o, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7607  return _IMP_kernel.SingletonScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
7608 
7609 
7610  def create_current_decomposition(self, m, vt):
7611  """create_current_decomposition(SingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
7612  return _IMP_kernel.SingletonScore_create_current_decomposition(self, m, vt)
7613 
7614 
7615  def do_create_current_decomposition(self, m, vt):
7616  """do_create_current_decomposition(SingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
7617  return _IMP_kernel.SingletonScore_do_create_current_decomposition(self, m, vt)
7618 
7619  __swig_destroy__ = _IMP_kernel.delete_SingletonScore
7620  __del__ = lambda self: None
7621 
7622  def __str__(self):
7623  """__str__(SingletonScore self) -> std::string"""
7624  return _IMP_kernel.SingletonScore___str__(self)
7625 
7626 
7627  def __repr__(self):
7628  """__repr__(SingletonScore self) -> std::string"""
7629  return _IMP_kernel.SingletonScore___repr__(self)
7630 
7631 
7632  @staticmethod
7633  def get_from(o):
7634  return _object_cast_to_SingletonScore(o)
7635 
7636 
7637  def get_type_name(self):
7638  return self.__class__.__name__
7639  def do_show(self, out):
7640  pass
7641  def get_version_info(self):
7642  if"IMP" == "IMP":
7643  return VersionInfo(self.__module__,
7644  __import__(self.__module__).get_module_version())
7645  else:
7646  return IMP.VersionInfo(self.__module__,
7647  __import__(self.__module__).get_module_version())
7648  @staticmethod
7649  def get_from(o):
7650  return _object_cast_to_SingletonScore(o)
7651 
7652  def __disown__(self):
7653  self.this.disown()
7654  _IMP_kernel.disown_SingletonScore(self)
7655  return weakref_proxy(self)
7656 
7657  def do_get_inputs(self, m, pis):
7658  """do_get_inputs(SingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7659  return _IMP_kernel.SingletonScore_do_get_inputs(self, m, pis)
7660 
7661 
7662  def do_destroy(self):
7663  """do_destroy(SingletonScore self)"""
7664  return _IMP_kernel.SingletonScore_do_destroy(self)
7665 
7666 SingletonScore_swigregister = _IMP_kernel.SingletonScore_swigregister
7667 SingletonScore_swigregister(SingletonScore)
7668 
7669 class SingletonPredicate(_ParticleInputs, Object):
7670  """Proxy of C++ IMP::SingletonPredicate class."""
7671 
7672  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7673 
7674  def __init__(self, *args):
7675  """
7676  __init__(IMP::SingletonPredicate self, std::string name) -> SingletonPredicate
7677  __init__(IMP::SingletonPredicate self) -> SingletonPredicate
7678  """
7679  if self.__class__ == SingletonPredicate:
7680  _self = None
7681  else:
7682  _self = self
7683  this = _IMP_kernel.new_SingletonPredicate(_self, *args)
7684  try:
7685  self.this.append(this)
7686  except __builtin__.Exception:
7687  self.this = this
7688 
7689  if self.__class__ != SingletonPredicate:
7690  _director_objects.register(self)
7691 
7692 
7693 
7694 
7695  def get_value(self, *args):
7696  """
7697  get_value(SingletonPredicate self, Particle vt) -> int
7698  get_value(SingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
7699  """
7700  return _IMP_kernel.SingletonPredicate_get_value(self, *args)
7701 
7702 
7703  def setup_for_get_value_index_in_batch(self, arg0):
7704  """setup_for_get_value_index_in_batch(SingletonPredicate self, Model arg0)"""
7705  return _IMP_kernel.SingletonPredicate_setup_for_get_value_index_in_batch(self, arg0)
7706 
7707 
7708  def get_value_index_in_batch(self, m, vt):
7709  """get_value_index_in_batch(SingletonPredicate self, Model m, ParticleIndex vt) -> int"""
7710  return _IMP_kernel.SingletonPredicate_get_value_index_in_batch(self, m, vt)
7711 
7712 
7713  def __call__(self, m, vt):
7714  """__call__(SingletonPredicate self, Model m, ParticleIndex vt) -> int"""
7715  return _IMP_kernel.SingletonPredicate___call__(self, m, vt)
7716 
7717 
7718  def get_value_index(self, *args):
7719  """
7720  get_value_index(SingletonPredicate self, Model m, ParticleIndex vt) -> int
7721  get_value_index(SingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
7722  """
7723  return _IMP_kernel.SingletonPredicate_get_value_index(self, *args)
7724 
7725  __swig_destroy__ = _IMP_kernel.delete_SingletonPredicate
7726  __del__ = lambda self: None
7727 
7728  def __str__(self):
7729  """__str__(SingletonPredicate self) -> std::string"""
7730  return _IMP_kernel.SingletonPredicate___str__(self)
7731 
7732 
7733  def __repr__(self):
7734  """__repr__(SingletonPredicate self) -> std::string"""
7735  return _IMP_kernel.SingletonPredicate___repr__(self)
7736 
7737 
7738  @staticmethod
7739  def get_from(o):
7740  return _object_cast_to_SingletonPredicate(o)
7741 
7742 
7743  def get_type_name(self):
7744  return self.__class__.__name__
7745  def do_show(self, out):
7746  pass
7747  def get_version_info(self):
7748  if"IMP" == "IMP":
7749  return VersionInfo(self.__module__,
7750  __import__(self.__module__).get_module_version())
7751  else:
7752  return IMP.VersionInfo(self.__module__,
7753  __import__(self.__module__).get_module_version())
7754  @staticmethod
7755  def get_from(o):
7756  return _object_cast_to_SingletonPredicate(o)
7757 
7758  def __disown__(self):
7759  self.this.disown()
7760  _IMP_kernel.disown_SingletonPredicate(self)
7761  return weakref_proxy(self)
7762 
7763  def do_get_inputs(self, m, pis):
7764  """do_get_inputs(SingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7765  return _IMP_kernel.SingletonPredicate_do_get_inputs(self, m, pis)
7766 
7767 
7768  def do_destroy(self):
7769  """do_destroy(SingletonPredicate self)"""
7770  return _IMP_kernel.SingletonPredicate_do_destroy(self)
7771 
7772 SingletonPredicate_swigregister = _IMP_kernel.SingletonPredicate_swigregister
7773 SingletonPredicate_swigregister(SingletonPredicate)
7774 
7775 class SingletonContainer(Container):
7776  """Proxy of C++ IMP::SingletonContainer class."""
7777 
7778  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7779 
7780  def apply_generic(self, m):
7781  """apply_generic(SingletonContainer self, SingletonModifier m)"""
7782  return _IMP_kernel.SingletonContainer_apply_generic(self, m)
7783 
7784 
7785  def apply(self, sm):
7786  """apply(SingletonContainer self, SingletonModifier sm)"""
7787  return _IMP_kernel.SingletonContainer_apply(self, sm)
7788 
7789 
7790  def get_range_indexes(self):
7791  """get_range_indexes(SingletonContainer self) -> IMP::ParticleIndexes"""
7792  return _IMP_kernel.SingletonContainer_get_range_indexes(self)
7793 
7794 
7795  def get_contents(self):
7796  """get_contents(SingletonContainer self) -> IMP::ParticleIndexes const &"""
7797  return _IMP_kernel.SingletonContainer_get_contents(self)
7798 
7799 
7800  def get_indexes(self):
7801  """get_indexes(SingletonContainer self) -> IMP::ParticleIndexes"""
7802  return _IMP_kernel.SingletonContainer_get_indexes(self)
7803 
7804 
7805  def get(self, *args):
7806  """
7807  get(SingletonContainer self) -> IMP::ParticlesTemp
7808  get(SingletonContainer self, unsigned int i) -> Particle
7809  """
7810  return _IMP_kernel.SingletonContainer_get(self, *args)
7811 
7812 
7813  def get_number(self):
7814  """get_number(SingletonContainer self) -> unsigned int"""
7815  return _IMP_kernel.SingletonContainer_get_number(self)
7816 
7817 
7818  def get_particles(self):
7819  """get_particles(SingletonContainer self) -> IMP::ParticlesTemp"""
7820  return _IMP_kernel.SingletonContainer_get_particles(self)
7821 
7822 
7823  def get_particle(self, i):
7824  """get_particle(SingletonContainer self, unsigned int i) -> Particle"""
7825  return _IMP_kernel.SingletonContainer_get_particle(self, i)
7826 
7827 
7828  def __init__(self, *args):
7829  """
7830  __init__(IMP::SingletonContainer self, Model m, std::string name) -> SingletonContainer
7831  __init__(IMP::SingletonContainer self, Model m) -> SingletonContainer
7832  """
7833  if self.__class__ == SingletonContainer:
7834  _self = None
7835  else:
7836  _self = self
7837  this = _IMP_kernel.new_SingletonContainer(_self, *args)
7838  try:
7839  self.this.append(this)
7840  except __builtin__.Exception:
7841  self.this = this
7842 
7843  if self.__class__ != SingletonContainer:
7844  _director_objects.register(self)
7845 
7846 
7847 
7848 
7849  def do_apply(self, sm):
7850  """do_apply(SingletonContainer self, SingletonModifier sm)"""
7851  return _IMP_kernel.SingletonContainer_do_apply(self, sm)
7852 
7853 
7854  def do_get_provides_access(self):
7855  """do_get_provides_access(SingletonContainer self) -> bool"""
7856  return _IMP_kernel.SingletonContainer_do_get_provides_access(self)
7857 
7858  __swig_destroy__ = _IMP_kernel.delete_SingletonContainer
7859  __del__ = lambda self: None
7860 
7861  def __str__(self):
7862  """__str__(SingletonContainer self) -> std::string"""
7863  return _IMP_kernel.SingletonContainer___str__(self)
7864 
7865 
7866  def __repr__(self):
7867  """__repr__(SingletonContainer self) -> std::string"""
7868  return _IMP_kernel.SingletonContainer___repr__(self)
7869 
7870 
7871  @staticmethod
7872  def get_from(o):
7873  return _object_cast_to_SingletonContainer(o)
7874 
7875 
7876  def get_type_name(self):
7877  return self.__class__.__name__
7878  def do_show(self, out):
7879  pass
7880  def get_version_info(self):
7881  if"IMP" == "IMP":
7882  return VersionInfo(self.__module__,
7883  __import__(self.__module__).get_module_version())
7884  else:
7885  return IMP.VersionInfo(self.__module__,
7886  __import__(self.__module__).get_module_version())
7887  @staticmethod
7888  def get_from(o):
7889  return _object_cast_to_SingletonContainer(o)
7890 
7891  def __disown__(self):
7892  self.this.disown()
7893  _IMP_kernel.disown_SingletonContainer(self)
7894  return weakref_proxy(self)
7895 
7896  def do_destroy(self):
7897  """do_destroy(SingletonContainer self)"""
7898  return _IMP_kernel.SingletonContainer_do_destroy(self)
7899 
7900 
7901  def handle_set_has_required_score_states(self, arg0):
7902  """handle_set_has_required_score_states(SingletonContainer self, bool arg0)"""
7903  return _IMP_kernel.SingletonContainer_handle_set_has_required_score_states(self, arg0)
7904 
7905 
7906  def do_get_inputs(self):
7907  """do_get_inputs(SingletonContainer self) -> IMP::ModelObjectsTemp"""
7908  return _IMP_kernel.SingletonContainer_do_get_inputs(self)
7909 
7910 
7911  def do_get_interactions(self):
7912  """do_get_interactions(SingletonContainer self) -> IMP::ModelObjectsTemps"""
7913  return _IMP_kernel.SingletonContainer_do_get_interactions(self)
7914 
7915 
7916  def do_get_contents_hash(self):
7917  """do_get_contents_hash(SingletonContainer self) -> std::size_t"""
7918  return _IMP_kernel.SingletonContainer_do_get_contents_hash(self)
7919 
7920 SingletonContainer_swigregister = _IMP_kernel.SingletonContainer_swigregister
7921 SingletonContainer_swigregister(SingletonContainer)
7922 
7923 class _SingletonContainerAdaptor(_InputAdaptor):
7924  """Proxy of C++ IMP::SingletonContainerAdaptor class."""
7925 
7926  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7927  __repr__ = _swig_repr
7928 
7929  def __init__(self, *args):
7930  """
7931  __init__(IMP::SingletonContainerAdaptor self) -> _SingletonContainerAdaptor
7932  __init__(IMP::SingletonContainerAdaptor self, SingletonContainer c) -> _SingletonContainerAdaptor
7933  __init__(IMP::SingletonContainerAdaptor self, IMP::ParticlesTemp const & t) -> _SingletonContainerAdaptor
7934  """
7935  this = _IMP_kernel.new__SingletonContainerAdaptor(*args)
7936  try:
7937  self.this.append(this)
7938  except __builtin__.Exception:
7939  self.this = this
7940 
7941  def set_name_if_default(self, name):
7942  """set_name_if_default(_SingletonContainerAdaptor self, std::string name)"""
7943  return _IMP_kernel._SingletonContainerAdaptor_set_name_if_default(self, name)
7944 
7945  __swig_destroy__ = _IMP_kernel.delete__SingletonContainerAdaptor
7946  __del__ = lambda self: None
7947 _SingletonContainerAdaptor_swigregister = _IMP_kernel._SingletonContainerAdaptor_swigregister
7948 _SingletonContainerAdaptor_swigregister(_SingletonContainerAdaptor)
7949 
7950 class TripletModifier(_ParticleInputs, _ParticleOutputs, Object):
7951  """Proxy of C++ IMP::TripletModifier class."""
7952 
7953  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7954 
7955  def __init__(self, *args):
7956  """
7957  __init__(IMP::TripletModifier self, std::string name) -> TripletModifier
7958  __init__(IMP::TripletModifier self) -> TripletModifier
7959  """
7960  if self.__class__ == TripletModifier:
7961  _self = None
7962  else:
7963  _self = self
7964  this = _IMP_kernel.new_TripletModifier(_self, *args)
7965  try:
7966  self.this.append(this)
7967  except __builtin__.Exception:
7968  self.this = this
7969 
7970  if self.__class__ != TripletModifier:
7971  _director_objects.register(self)
7972 
7973 
7974 
7975 
7976  def apply_index(self, m, v):
7977  """apply_index(TripletModifier self, Model m, IMP::ParticleIndexTriplet const & v)"""
7978  return _IMP_kernel.TripletModifier_apply_index(self, m, v)
7979 
7980 
7981  def apply_indexes(self, m, o, lower_bound, upper_bound):
7982  """apply_indexes(TripletModifier self, Model m, IMP::ParticleIndexTriplets const & o, unsigned int lower_bound, unsigned int upper_bound)"""
7983  return _IMP_kernel.TripletModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
7984 
7985 
7986  def __str__(self):
7987  """__str__(TripletModifier self) -> std::string"""
7988  return _IMP_kernel.TripletModifier___str__(self)
7989 
7990 
7991  def __repr__(self):
7992  """__repr__(TripletModifier self) -> std::string"""
7993  return _IMP_kernel.TripletModifier___repr__(self)
7994 
7995 
7996  @staticmethod
7997  def get_from(o):
7998  return _object_cast_to_TripletModifier(o)
7999 
8000 
8001  def get_type_name(self):
8002  return self.__class__.__name__
8003  def do_show(self, out):
8004  pass
8005  def get_version_info(self):
8006  if"IMP" == "IMP":
8007  return VersionInfo(self.__module__,
8008  __import__(self.__module__).get_module_version())
8009  else:
8010  return IMP.VersionInfo(self.__module__,
8011  __import__(self.__module__).get_module_version())
8012  @staticmethod
8013  def get_from(o):
8014  return _object_cast_to_TripletModifier(o)
8015 
8016  __swig_destroy__ = _IMP_kernel.delete_TripletModifier
8017  __del__ = lambda self: None
8018  def __disown__(self):
8019  self.this.disown()
8020  _IMP_kernel.disown_TripletModifier(self)
8021  return weakref_proxy(self)
8022 
8023  def do_get_inputs(self, m, pis):
8024  """do_get_inputs(TripletModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8025  return _IMP_kernel.TripletModifier_do_get_inputs(self, m, pis)
8026 
8027 
8028  def do_get_outputs(self, m, pis):
8029  """do_get_outputs(TripletModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8030  return _IMP_kernel.TripletModifier_do_get_outputs(self, m, pis)
8031 
8032 
8033  def do_destroy(self):
8034  """do_destroy(TripletModifier self)"""
8035  return _IMP_kernel.TripletModifier_do_destroy(self)
8036 
8037 TripletModifier_swigregister = _IMP_kernel.TripletModifier_swigregister
8038 TripletModifier_swigregister(TripletModifier)
8039 
8040 class TripletScore(_ParticleInputs, Object):
8041  """Proxy of C++ IMP::TripletScore class."""
8042 
8043  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8044 
8045  def __init__(self, *args):
8046  """
8047  __init__(IMP::TripletScore self, std::string name) -> TripletScore
8048  __init__(IMP::TripletScore self) -> TripletScore
8049  """
8050  if self.__class__ == TripletScore:
8051  _self = None
8052  else:
8053  _self = self
8054  this = _IMP_kernel.new_TripletScore(_self, *args)
8055  try:
8056  self.this.append(this)
8057  except __builtin__.Exception:
8058  self.this = this
8059 
8060  if self.__class__ != TripletScore:
8061  _director_objects.register(self)
8062 
8063 
8064 
8065 
8066  def evaluate_index(self, m, vt, da):
8067  """evaluate_index(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt, DerivativeAccumulator da) -> double"""
8068  return _IMP_kernel.TripletScore_evaluate_index(self, m, vt, da)
8069 
8070 
8071  def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
8072  """evaluate_indexes(TripletScore self, Model m, IMP::ParticleIndexTriplets const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
8073  return _IMP_kernel.TripletScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
8074 
8075 
8076  def evaluate_if_good_index(self, m, vt, da, max):
8077  """evaluate_if_good_index(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt, DerivativeAccumulator da, double max) -> double"""
8078  return _IMP_kernel.TripletScore_evaluate_if_good_index(self, m, vt, da, max)
8079 
8080 
8081  def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
8082  """evaluate_if_good_indexes(TripletScore self, Model m, IMP::ParticleIndexTriplets const & o, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound) -> double"""
8083  return _IMP_kernel.TripletScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
8084 
8085 
8086  def create_current_decomposition(self, m, vt):
8087  """create_current_decomposition(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
8088  return _IMP_kernel.TripletScore_create_current_decomposition(self, m, vt)
8089 
8090 
8091  def do_create_current_decomposition(self, m, vt):
8092  """do_create_current_decomposition(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
8093  return _IMP_kernel.TripletScore_do_create_current_decomposition(self, m, vt)
8094 
8095  __swig_destroy__ = _IMP_kernel.delete_TripletScore
8096  __del__ = lambda self: None
8097 
8098  def __str__(self):
8099  """__str__(TripletScore self) -> std::string"""
8100  return _IMP_kernel.TripletScore___str__(self)
8101 
8102 
8103  def __repr__(self):
8104  """__repr__(TripletScore self) -> std::string"""
8105  return _IMP_kernel.TripletScore___repr__(self)
8106 
8107 
8108  @staticmethod
8109  def get_from(o):
8110  return _object_cast_to_TripletScore(o)
8111 
8112 
8113  def get_type_name(self):
8114  return self.__class__.__name__
8115  def do_show(self, out):
8116  pass
8117  def get_version_info(self):
8118  if"IMP" == "IMP":
8119  return VersionInfo(self.__module__,
8120  __import__(self.__module__).get_module_version())
8121  else:
8122  return IMP.VersionInfo(self.__module__,
8123  __import__(self.__module__).get_module_version())
8124  @staticmethod
8125  def get_from(o):
8126  return _object_cast_to_TripletScore(o)
8127 
8128  def __disown__(self):
8129  self.this.disown()
8130  _IMP_kernel.disown_TripletScore(self)
8131  return weakref_proxy(self)
8132 
8133  def do_get_inputs(self, m, pis):
8134  """do_get_inputs(TripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8135  return _IMP_kernel.TripletScore_do_get_inputs(self, m, pis)
8136 
8137 
8138  def do_destroy(self):
8139  """do_destroy(TripletScore self)"""
8140  return _IMP_kernel.TripletScore_do_destroy(self)
8141 
8142 TripletScore_swigregister = _IMP_kernel.TripletScore_swigregister
8143 TripletScore_swigregister(TripletScore)
8144 
8145 class TripletPredicate(_ParticleInputs, Object):
8146  """Proxy of C++ IMP::TripletPredicate class."""
8147 
8148  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8149 
8150  def __init__(self, *args):
8151  """
8152  __init__(IMP::TripletPredicate self, std::string name) -> TripletPredicate
8153  __init__(IMP::TripletPredicate self) -> TripletPredicate
8154  """
8155  if self.__class__ == TripletPredicate:
8156  _self = None
8157  else:
8158  _self = self
8159  this = _IMP_kernel.new_TripletPredicate(_self, *args)
8160  try:
8161  self.this.append(this)
8162  except __builtin__.Exception:
8163  self.this = this
8164 
8165  if self.__class__ != TripletPredicate:
8166  _director_objects.register(self)
8167 
8168 
8169 
8170 
8171  def get_value(self, *args):
8172  """
8173  get_value(TripletPredicate self, IMP::ParticleTriplet const & vt) -> int
8174  get_value(TripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
8175  """
8176  return _IMP_kernel.TripletPredicate_get_value(self, *args)
8177 
8178 
8179  def setup_for_get_value_index_in_batch(self, arg0):
8180  """setup_for_get_value_index_in_batch(TripletPredicate self, Model arg0)"""
8181  return _IMP_kernel.TripletPredicate_setup_for_get_value_index_in_batch(self, arg0)
8182 
8183 
8184  def get_value_index_in_batch(self, m, vt):
8185  """get_value_index_in_batch(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int"""
8186  return _IMP_kernel.TripletPredicate_get_value_index_in_batch(self, m, vt)
8187 
8188 
8189  def __call__(self, m, vt):
8190  """__call__(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int"""
8191  return _IMP_kernel.TripletPredicate___call__(self, m, vt)
8192 
8193 
8194  def get_value_index(self, *args):
8195  """
8196  get_value_index(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int
8197  get_value_index(TripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
8198  """
8199  return _IMP_kernel.TripletPredicate_get_value_index(self, *args)
8200 
8201  __swig_destroy__ = _IMP_kernel.delete_TripletPredicate
8202  __del__ = lambda self: None
8203 
8204  def __str__(self):
8205  """__str__(TripletPredicate self) -> std::string"""
8206  return _IMP_kernel.TripletPredicate___str__(self)
8207 
8208 
8209  def __repr__(self):
8210  """__repr__(TripletPredicate self) -> std::string"""
8211  return _IMP_kernel.TripletPredicate___repr__(self)
8212 
8213 
8214  @staticmethod
8215  def get_from(o):
8216  return _object_cast_to_TripletPredicate(o)
8217 
8218 
8219  def get_type_name(self):
8220  return self.__class__.__name__
8221  def do_show(self, out):
8222  pass
8223  def get_version_info(self):
8224  if"IMP" == "IMP":
8225  return VersionInfo(self.__module__,
8226  __import__(self.__module__).get_module_version())
8227  else:
8228  return IMP.VersionInfo(self.__module__,
8229  __import__(self.__module__).get_module_version())
8230  @staticmethod
8231  def get_from(o):
8232  return _object_cast_to_TripletPredicate(o)
8233 
8234  def __disown__(self):
8235  self.this.disown()
8236  _IMP_kernel.disown_TripletPredicate(self)
8237  return weakref_proxy(self)
8238 
8239  def do_get_inputs(self, m, pis):
8240  """do_get_inputs(TripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8241  return _IMP_kernel.TripletPredicate_do_get_inputs(self, m, pis)
8242 
8243 
8244  def do_destroy(self):
8245  """do_destroy(TripletPredicate self)"""
8246  return _IMP_kernel.TripletPredicate_do_destroy(self)
8247 
8248 TripletPredicate_swigregister = _IMP_kernel.TripletPredicate_swigregister
8249 TripletPredicate_swigregister(TripletPredicate)
8250 
8251 class TripletContainer(Container):
8252  """Proxy of C++ IMP::TripletContainer class."""
8253 
8254  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8255 
8256  def apply_generic(self, m):
8257  """apply_generic(TripletContainer self, TripletModifier m)"""
8258  return _IMP_kernel.TripletContainer_apply_generic(self, m)
8259 
8260 
8261  def apply(self, sm):
8262  """apply(TripletContainer self, TripletModifier sm)"""
8263  return _IMP_kernel.TripletContainer_apply(self, sm)
8264 
8265 
8266  def get_range_indexes(self):
8267  """get_range_indexes(TripletContainer self) -> IMP::ParticleIndexTriplets"""
8268  return _IMP_kernel.TripletContainer_get_range_indexes(self)
8269 
8270 
8271  def get_contents(self):
8272  """get_contents(TripletContainer self) -> IMP::ParticleIndexTriplets const &"""
8273  return _IMP_kernel.TripletContainer_get_contents(self)
8274 
8275 
8276  def get_indexes(self):
8277  """get_indexes(TripletContainer self) -> IMP::ParticleIndexTriplets"""
8278  return _IMP_kernel.TripletContainer_get_indexes(self)
8279 
8280 
8281  def get(self, *args):
8282  """
8283  get(TripletContainer self) -> IMP::ParticleTripletsTemp
8284  get(TripletContainer self, unsigned int i) -> IMP::ParticleTriplet
8285  """
8286  return _IMP_kernel.TripletContainer_get(self, *args)
8287 
8288 
8289  def get_number(self):
8290  """get_number(TripletContainer self) -> unsigned int"""
8291  return _IMP_kernel.TripletContainer_get_number(self)
8292 
8293 
8294  def get_particle_triplets(self):
8295  """get_particle_triplets(TripletContainer self) -> IMP::ParticleTripletsTemp"""
8296  return _IMP_kernel.TripletContainer_get_particle_triplets(self)
8297 
8298 
8299  def get_particle_triplet(self, i):
8300  """get_particle_triplet(TripletContainer self, unsigned int i) -> IMP::ParticleTriplet"""
8301  return _IMP_kernel.TripletContainer_get_particle_triplet(self, i)
8302 
8303 
8304  def __init__(self, *args):
8305  """
8306  __init__(IMP::TripletContainer self, Model m, std::string name) -> TripletContainer
8307  __init__(IMP::TripletContainer self, Model m) -> TripletContainer
8308  """
8309  if self.__class__ == TripletContainer:
8310  _self = None
8311  else:
8312  _self = self
8313  this = _IMP_kernel.new_TripletContainer(_self, *args)
8314  try:
8315  self.this.append(this)
8316  except __builtin__.Exception:
8317  self.this = this
8318 
8319  if self.__class__ != TripletContainer:
8320  _director_objects.register(self)
8321 
8322 
8323 
8324 
8325  def do_apply(self, sm):
8326  """do_apply(TripletContainer self, TripletModifier sm)"""
8327  return _IMP_kernel.TripletContainer_do_apply(self, sm)
8328 
8329 
8330  def do_get_provides_access(self):
8331  """do_get_provides_access(TripletContainer self) -> bool"""
8332  return _IMP_kernel.TripletContainer_do_get_provides_access(self)
8333 
8334  __swig_destroy__ = _IMP_kernel.delete_TripletContainer
8335  __del__ = lambda self: None
8336 
8337  def __str__(self):
8338  """__str__(TripletContainer self) -> std::string"""
8339  return _IMP_kernel.TripletContainer___str__(self)
8340 
8341 
8342  def __repr__(self):
8343  """__repr__(TripletContainer self) -> std::string"""
8344  return _IMP_kernel.TripletContainer___repr__(self)
8345 
8346 
8347  @staticmethod
8348  def get_from(o):
8349  return _object_cast_to_TripletContainer(o)
8350 
8351 
8352  def get_type_name(self):
8353  return self.__class__.__name__
8354  def do_show(self, out):
8355  pass
8356  def get_version_info(self):
8357  if"IMP" == "IMP":
8358  return VersionInfo(self.__module__,
8359  __import__(self.__module__).get_module_version())
8360  else:
8361  return IMP.VersionInfo(self.__module__,
8362  __import__(self.__module__).get_module_version())
8363  @staticmethod
8364  def get_from(o):
8365  return _object_cast_to_TripletContainer(o)
8366 
8367  def __disown__(self):
8368  self.this.disown()
8369  _IMP_kernel.disown_TripletContainer(self)
8370  return weakref_proxy(self)
8371 
8372  def do_destroy(self):
8373  """do_destroy(TripletContainer self)"""
8374  return _IMP_kernel.TripletContainer_do_destroy(self)
8375 
8376 
8377  def handle_set_has_required_score_states(self, arg0):
8378  """handle_set_has_required_score_states(TripletContainer self, bool arg0)"""
8379  return _IMP_kernel.TripletContainer_handle_set_has_required_score_states(self, arg0)
8380 
8381 
8382  def do_get_inputs(self):
8383  """do_get_inputs(TripletContainer self) -> IMP::ModelObjectsTemp"""
8384  return _IMP_kernel.TripletContainer_do_get_inputs(self)
8385 
8386 
8387  def do_get_interactions(self):
8388  """do_get_interactions(TripletContainer self) -> IMP::ModelObjectsTemps"""
8389  return _IMP_kernel.TripletContainer_do_get_interactions(self)
8390 
8391 
8392  def do_get_contents_hash(self):
8393  """do_get_contents_hash(TripletContainer self) -> std::size_t"""
8394  return _IMP_kernel.TripletContainer_do_get_contents_hash(self)
8395 
8396 TripletContainer_swigregister = _IMP_kernel.TripletContainer_swigregister
8397 TripletContainer_swigregister(TripletContainer)
8398 
8399 class _TripletContainerAdaptor(_InputAdaptor):
8400  """Proxy of C++ IMP::TripletContainerAdaptor class."""
8401 
8402  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8403  __repr__ = _swig_repr
8404 
8405  def __init__(self, *args):
8406  """
8407  __init__(IMP::TripletContainerAdaptor self) -> _TripletContainerAdaptor
8408  __init__(IMP::TripletContainerAdaptor self, TripletContainer c) -> _TripletContainerAdaptor
8409  __init__(IMP::TripletContainerAdaptor self, IMP::ParticleTripletsTemp const & t) -> _TripletContainerAdaptor
8410  """
8411  this = _IMP_kernel.new__TripletContainerAdaptor(*args)
8412  try:
8413  self.this.append(this)
8414  except __builtin__.Exception:
8415  self.this = this
8416 
8417  def set_name_if_default(self, name):
8418  """set_name_if_default(_TripletContainerAdaptor self, std::string name)"""
8419  return _IMP_kernel._TripletContainerAdaptor_set_name_if_default(self, name)
8420 
8421  __swig_destroy__ = _IMP_kernel.delete__TripletContainerAdaptor
8422  __del__ = lambda self: None
8423 _TripletContainerAdaptor_swigregister = _IMP_kernel._TripletContainerAdaptor_swigregister
8424 _TripletContainerAdaptor_swigregister(_TripletContainerAdaptor)
8425 
8426 
8427 def write_particles_to_buffer(particles, keys):
8428  """write_particles_to_buffer(IMP::ParticlesTemp const & particles, IMP::FloatKeys const & keys) -> IMP::Vector< char >"""
8429  return _IMP_kernel.write_particles_to_buffer(particles, keys)
8430 
8431 def read_particles_from_buffer(buffer, particles, keys):
8432  """read_particles_from_buffer(IMP::Vector< char > const & buffer, IMP::ParticlesTemp const & particles, IMP::FloatKeys const & keys)"""
8433  return _IMP_kernel.read_particles_from_buffer(buffer, particles, keys)
8434 
8435 def get_particles(m, ps):
8436  """get_particles(Model m, IMP::ParticleIndexes const & ps) -> IMP::ParticlesTemp"""
8437  return _IMP_kernel.get_particles(m, ps)
8438 
8439 def get_indexes(*args):
8440  """
8441  get_indexes(IMP::ParticlesTemp const & ps) -> IMP::ParticleIndexes
8442  get_indexes(IMP::ParticlePairsTemp const & ps) -> IMP::ParticleIndexPairs
8443  """
8444  return _IMP_kernel.get_indexes(*args)
8445 class _ParticleIndexAdaptor(object):
8446  """Proxy of C++ IMP::ParticleIndexAdaptor class."""
8447 
8448  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8449  __repr__ = _swig_repr
8450 
8451  def __init__(self, *args):
8452  """
8453  __init__(IMP::ParticleIndexAdaptor self, Particle p) -> _ParticleIndexAdaptor
8454  __init__(IMP::ParticleIndexAdaptor self, ParticleIndex pi) -> _ParticleIndexAdaptor
8455  __init__(IMP::ParticleIndexAdaptor self, Decorator d) -> _ParticleIndexAdaptor
8456  """
8457  this = _IMP_kernel.new__ParticleIndexAdaptor(*args)
8458  try:
8459  self.this.append(this)
8460  except __builtin__.Exception:
8461  self.this = this
8462  __swig_destroy__ = _IMP_kernel.delete__ParticleIndexAdaptor
8463  __del__ = lambda self: None
8464 _ParticleIndexAdaptor_swigregister = _IMP_kernel._ParticleIndexAdaptor_swigregister
8465 _ParticleIndexAdaptor_swigregister(_ParticleIndexAdaptor)
8466 
8467 class _ParticleIndexesAdaptor(_InputAdaptor):
8468  """Proxy of C++ IMP::ParticleIndexesAdaptor class."""
8469 
8470  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8471  __repr__ = _swig_repr
8472 
8473  def __init__(self, *args):
8474  """
8475  __init__(IMP::ParticleIndexesAdaptor self, IMP::ParticlesTemp const & ps) -> _ParticleIndexesAdaptor
8476  __init__(IMP::ParticleIndexesAdaptor self, IMP::ParticleIndexes const & pi) -> _ParticleIndexesAdaptor
8477  __init__(IMP::ParticleIndexesAdaptor self) -> _ParticleIndexesAdaptor
8478  """
8479  this = _IMP_kernel.new__ParticleIndexesAdaptor(*args)
8480  try:
8481  self.this.append(this)
8482  except __builtin__.Exception:
8483  self.this = this
8484  __swig_destroy__ = _IMP_kernel.delete__ParticleIndexesAdaptor
8485  __del__ = lambda self: None
8486 _ParticleIndexesAdaptor_swigregister = _IMP_kernel._ParticleIndexesAdaptor_swigregister
8487 _ParticleIndexesAdaptor_swigregister(_ParticleIndexesAdaptor)
8488 
8489 class _ParticleIndexPairsAdaptor(object):
8490  """Proxy of C++ IMP::ParticleIndexPairsAdaptor class."""
8491 
8492  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8493  __repr__ = _swig_repr
8494 
8495  def __init__(self, *args):
8496  """
8497  __init__(IMP::ParticleIndexPairsAdaptor self, IMP::ParticlePairsTemp const & ps) -> _ParticleIndexPairsAdaptor
8498  __init__(IMP::ParticleIndexPairsAdaptor self, IMP::ParticleIndexPairs const & pi) -> _ParticleIndexPairsAdaptor
8499  __init__(IMP::ParticleIndexPairsAdaptor self) -> _ParticleIndexPairsAdaptor
8500  """
8501  this = _IMP_kernel.new__ParticleIndexPairsAdaptor(*args)
8502  try:
8503  self.this.append(this)
8504  except __builtin__.Exception:
8505  self.this = this
8506  __swig_destroy__ = _IMP_kernel.delete__ParticleIndexPairsAdaptor
8507  __del__ = lambda self: None
8508 _ParticleIndexPairsAdaptor_swigregister = _IMP_kernel._ParticleIndexPairsAdaptor_swigregister
8509 _ParticleIndexPairsAdaptor_swigregister(_ParticleIndexPairsAdaptor)
8510 
8511 class _ConstRestraint(Restraint):
8512  """Proxy of C++ IMP::internal::_ConstRestraint class."""
8513 
8514  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8515 
8516  def __init__(self, *args):
8517  """
8518  __init__(IMP::internal::_ConstRestraint self, double v, IMP::ParticlesTemp const ps) -> _ConstRestraint
8519  __init__(IMP::internal::_ConstRestraint self, Model m, IMP::ParticleIndexes const & pis, double v) -> _ConstRestraint
8520  """
8521  this = _IMP_kernel.new__ConstRestraint(*args)
8522  try:
8523  self.this.append(this)
8524  except __builtin__.Exception:
8525  self.this = this
8526 
8527  def get_value(self):
8528  """get_value(_ConstRestraint self) -> double"""
8529  return _IMP_kernel._ConstRestraint_get_value(self)
8530 
8531 
8532  def do_create_decomposition(self):
8533  """do_create_decomposition(_ConstRestraint self) -> IMP::Restraints"""
8534  return _IMP_kernel._ConstRestraint_do_create_decomposition(self)
8535 
8536 
8537  def do_get_inputs(self):
8538  """do_get_inputs(_ConstRestraint self) -> IMP::ModelObjectsTemp"""
8539  return _IMP_kernel._ConstRestraint_do_get_inputs(self)
8540 
8541 
8542  def get_version_info(self):
8543  """get_version_info(_ConstRestraint self) -> VersionInfo"""
8544  return _IMP_kernel._ConstRestraint_get_version_info(self)
8545 
8546 
8547  def __str__(self):
8548  """__str__(_ConstRestraint self) -> std::string"""
8549  return _IMP_kernel._ConstRestraint___str__(self)
8550 
8551 
8552  def __repr__(self):
8553  """__repr__(_ConstRestraint self) -> std::string"""
8554  return _IMP_kernel._ConstRestraint___repr__(self)
8555 
8556 
8557  @staticmethod
8558  def get_from(o):
8559  return _object_cast_to__ConstRestraint(o)
8560 
8561 _ConstRestraint_swigregister = _IMP_kernel._ConstRestraint_swigregister
8562 _ConstRestraint_swigregister(_ConstRestraint)
8563 
8564 class _ConstSingletonScore(SingletonScore):
8565  """Proxy of C++ IMP::internal::_ConstSingletonScore class."""
8566 
8567  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8568  __repr__ = _swig_repr
8569 
8570  def __init__(self, v):
8571  """__init__(IMP::internal::_ConstSingletonScore self, double v) -> _ConstSingletonScore"""
8572  this = _IMP_kernel.new__ConstSingletonScore(v)
8573  try:
8574  self.this.append(this)
8575  except __builtin__.Exception:
8576  self.this = this
8577 
8578  def do_get_inputs(self, arg2, arg3):
8579  """do_get_inputs(_ConstSingletonScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
8580  return _IMP_kernel._ConstSingletonScore_do_get_inputs(self, arg2, arg3)
8581 
8582 
8583  def get_version_info(self):
8584  """get_version_info(_ConstSingletonScore self) -> VersionInfo"""
8585  return _IMP_kernel._ConstSingletonScore_get_version_info(self)
8586 
8587 _ConstSingletonScore_swigregister = _IMP_kernel._ConstSingletonScore_swigregister
8588 _ConstSingletonScore_swigregister(_ConstSingletonScore)
8589 
8590 class _ConstPairScore(PairScore):
8591  """Proxy of C++ IMP::internal::_ConstPairScore class."""
8592 
8593  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8594  __repr__ = _swig_repr
8595 
8596  def __init__(self, v):
8597  """__init__(IMP::internal::_ConstPairScore self, double v) -> _ConstPairScore"""
8598  this = _IMP_kernel.new__ConstPairScore(v)
8599  try:
8600  self.this.append(this)
8601  except __builtin__.Exception:
8602  self.this = this
8603 
8604  def do_get_inputs(self, arg2, arg3):
8605  """do_get_inputs(_ConstPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
8606  return _IMP_kernel._ConstPairScore_do_get_inputs(self, arg2, arg3)
8607 
8608 
8609  def get_version_info(self):
8610  """get_version_info(_ConstPairScore self) -> VersionInfo"""
8611  return _IMP_kernel._ConstPairScore_get_version_info(self)
8612 
8613 _ConstPairScore_swigregister = _IMP_kernel._ConstPairScore_swigregister
8614 _ConstPairScore_swigregister(_ConstPairScore)
8615 
8616 class _TrivialDecorator(Decorator):
8617  """Proxy of C++ IMP::internal::_TrivialDecorator class."""
8618 
8619  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8620 
8621  def __init__(self, *args):
8622  """
8623  __init__(IMP::internal::_TrivialDecorator self) -> _TrivialDecorator
8624  __init__(IMP::internal::_TrivialDecorator self, Model m, ParticleIndex id) -> _TrivialDecorator
8625  __init__(IMP::internal::_TrivialDecorator self, _ParticleAdaptor d) -> _TrivialDecorator
8626  """
8627  this = _IMP_kernel.new__TrivialDecorator(*args)
8628  try:
8629  self.this.append(this)
8630  except __builtin__.Exception:
8631  self.this = this
8632 
8633  def show(self, *args):
8634  """
8635  show(_TrivialDecorator self, _ostream out)
8636  show(_TrivialDecorator self)
8637  """
8638  return _IMP_kernel._TrivialDecorator_show(self, *args)
8639 
8640 
8641  def setup_particle(*args):
8642  """
8643  setup_particle(Model m, ParticleIndex pi) -> _TrivialDecorator
8644  setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
8645  """
8646  return _IMP_kernel._TrivialDecorator_setup_particle(*args)
8647 
8648  setup_particle = staticmethod(setup_particle)
8649 
8650  def get_is_setup(*args):
8651  """
8652  get_is_setup(_ParticleAdaptor p) -> bool
8653  get_is_setup(Model m, ParticleIndex pi) -> bool
8654  """
8655  return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
8656 
8657  get_is_setup = staticmethod(get_is_setup)
8658 
8659  def add_attribute(self, *args):
8660  """
8661  add_attribute(_TrivialDecorator self, FloatKey k, IMP::Float v, bool opt)
8662  add_attribute(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
8663  add_attribute(_TrivialDecorator self, IntKey a0, IMP::Int a1)
8664  add_attribute(_TrivialDecorator self, StringKey a0, IMP::String a1)
8665  add_attribute(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
8666  add_attribute(_TrivialDecorator self, ObjectKey a0, Object a1)
8667  """
8668  return _IMP_kernel._TrivialDecorator_add_attribute(self, *args)
8669 
8670 
8671  def get_value(self, *args):
8672  """
8673  get_value(_TrivialDecorator self, FloatKey a0) -> IMP::Float
8674  get_value(_TrivialDecorator self, IntKey a0) -> IMP::Int
8675  get_value(_TrivialDecorator self, StringKey a0) -> IMP::String
8676  get_value(_TrivialDecorator self, ParticleIndexKey a0) -> Particle
8677  get_value(_TrivialDecorator self, ObjectKey a0) -> Object
8678  """
8679  return _IMP_kernel._TrivialDecorator_get_value(self, *args)
8680 
8681 
8682  def set_value(self, *args):
8683  """
8684  set_value(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
8685  set_value(_TrivialDecorator self, IntKey a0, IMP::Int a1)
8686  set_value(_TrivialDecorator self, StringKey a0, IMP::String a1)
8687  set_value(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
8688  set_value(_TrivialDecorator self, ObjectKey a0, Object a1)
8689  """
8690  return _IMP_kernel._TrivialDecorator_set_value(self, *args)
8691 
8692 
8693  def remove_attribute(self, *args):
8694  """
8695  remove_attribute(_TrivialDecorator self, FloatKey a0)
8696  remove_attribute(_TrivialDecorator self, IntKey a0)
8697  remove_attribute(_TrivialDecorator self, StringKey a0)
8698  remove_attribute(_TrivialDecorator self, ParticleIndexKey a0)
8699  remove_attribute(_TrivialDecorator self, ObjectKey a0)
8700  """
8701  return _IMP_kernel._TrivialDecorator_remove_attribute(self, *args)
8702 
8703 
8704  def has_attribute(self, *args):
8705  """
8706  has_attribute(_TrivialDecorator self, FloatKey a0) -> bool
8707  has_attribute(_TrivialDecorator self, IntKey a0) -> bool
8708  has_attribute(_TrivialDecorator self, StringKey a0) -> bool
8709  has_attribute(_TrivialDecorator self, ParticleIndexKey a0) -> bool
8710  has_attribute(_TrivialDecorator self, ObjectKey a0) -> bool
8711  """
8712  return _IMP_kernel._TrivialDecorator_has_attribute(self, *args)
8713 
8714 
8715  def get_derivative(self, a0):
8716  """get_derivative(_TrivialDecorator self, FloatKey a0) -> double"""
8717  return _IMP_kernel._TrivialDecorator_get_derivative(self, a0)
8718 
8719 
8720  def get_name(self):
8721  """get_name(_TrivialDecorator self) -> std::string"""
8722  return _IMP_kernel._TrivialDecorator_get_name(self)
8723 
8724 
8725  def clear_caches(self):
8726  """clear_caches(_TrivialDecorator self)"""
8727  return _IMP_kernel._TrivialDecorator_clear_caches(self)
8728 
8729 
8730  def set_name(self, a0):
8731  """set_name(_TrivialDecorator self, std::string a0)"""
8732  return _IMP_kernel._TrivialDecorator_set_name(self, a0)
8733 
8734 
8735  def set_check_level(self, a0):
8736  """set_check_level(_TrivialDecorator self, IMP::CheckLevel a0)"""
8737  return _IMP_kernel._TrivialDecorator_set_check_level(self, a0)
8738 
8739 
8740  def add_to_derivative(self, a0, a1, a2):
8741  """add_to_derivative(_TrivialDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8742  return _IMP_kernel._TrivialDecorator_add_to_derivative(self, a0, a1, a2)
8743 
8744 
8745  def set_is_optimized(self, a0, a1):
8746  """set_is_optimized(_TrivialDecorator self, FloatKey a0, bool a1)"""
8747  return _IMP_kernel._TrivialDecorator_set_is_optimized(self, a0, a1)
8748 
8749 
8750  def get_is_optimized(self, a0):
8751  """get_is_optimized(_TrivialDecorator self, FloatKey a0) -> bool"""
8752  return _IMP_kernel._TrivialDecorator_get_is_optimized(self, a0)
8753 
8754 
8755  def get_check_level(self):
8756  """get_check_level(_TrivialDecorator self) -> IMP::CheckLevel"""
8757  return _IMP_kernel._TrivialDecorator_get_check_level(self)
8758 
8759 
8760  def __eq__(self, *args):
8761  """
8762  __eq__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8763  __eq__(_TrivialDecorator self, Particle d) -> bool
8764  """
8765  return _IMP_kernel._TrivialDecorator___eq__(self, *args)
8766 
8767 
8768  def __ne__(self, *args):
8769  """
8770  __ne__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8771  __ne__(_TrivialDecorator self, Particle d) -> bool
8772  """
8773  return _IMP_kernel._TrivialDecorator___ne__(self, *args)
8774 
8775 
8776  def __le__(self, *args):
8777  """
8778  __le__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8779  __le__(_TrivialDecorator self, Particle d) -> bool
8780  """
8781  return _IMP_kernel._TrivialDecorator___le__(self, *args)
8782 
8783 
8784  def __lt__(self, *args):
8785  """
8786  __lt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8787  __lt__(_TrivialDecorator self, Particle d) -> bool
8788  """
8789  return _IMP_kernel._TrivialDecorator___lt__(self, *args)
8790 
8791 
8792  def __ge__(self, *args):
8793  """
8794  __ge__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8795  __ge__(_TrivialDecorator self, Particle d) -> bool
8796  """
8797  return _IMP_kernel._TrivialDecorator___ge__(self, *args)
8798 
8799 
8800  def __gt__(self, *args):
8801  """
8802  __gt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8803  __gt__(_TrivialDecorator self, Particle d) -> bool
8804  """
8805  return _IMP_kernel._TrivialDecorator___gt__(self, *args)
8806 
8807 
8808  def __hash__(self):
8809  """__hash__(_TrivialDecorator self) -> std::size_t"""
8810  return _IMP_kernel._TrivialDecorator___hash__(self)
8811 
8812 
8813  def __str__(self):
8814  """__str__(_TrivialDecorator self) -> std::string"""
8815  return _IMP_kernel._TrivialDecorator___str__(self)
8816 
8817 
8818  def __repr__(self):
8819  """__repr__(_TrivialDecorator self) -> std::string"""
8820  return _IMP_kernel._TrivialDecorator___repr__(self)
8821 
8822  __swig_destroy__ = _IMP_kernel.delete__TrivialDecorator
8823  __del__ = lambda self: None
8824 _TrivialDecorator_swigregister = _IMP_kernel._TrivialDecorator_swigregister
8825 _TrivialDecorator_swigregister(_TrivialDecorator)
8826 
8827 def _TrivialDecorator_setup_particle(*args):
8828  """
8829  setup_particle(Model m, ParticleIndex pi) -> _TrivialDecorator
8830  _TrivialDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
8831  """
8832  return _IMP_kernel._TrivialDecorator_setup_particle(*args)
8833 
8834 def _TrivialDecorator_get_is_setup(*args):
8835  """
8836  get_is_setup(_ParticleAdaptor p) -> bool
8837  _TrivialDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
8838  """
8839  return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
8840 
8841 class _TrivialDerivedDecorator(_TrivialDecorator):
8842  """Proxy of C++ IMP::internal::_TrivialDerivedDecorator class."""
8843 
8844  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8845 
8846  def __init__(self, *args):
8847  """
8848  __init__(IMP::internal::_TrivialDerivedDecorator self) -> _TrivialDerivedDecorator
8849  __init__(IMP::internal::_TrivialDerivedDecorator self, Model m, ParticleIndex id) -> _TrivialDerivedDecorator
8850  __init__(IMP::internal::_TrivialDerivedDecorator self, _ParticleAdaptor d) -> _TrivialDerivedDecorator
8851  """
8852  this = _IMP_kernel.new__TrivialDerivedDecorator(*args)
8853  try:
8854  self.this.append(this)
8855  except __builtin__.Exception:
8856  self.this = this
8857 
8858  def show(self, *args):
8859  """
8860  show(_TrivialDerivedDecorator self, _ostream out)
8861  show(_TrivialDerivedDecorator self)
8862  """
8863  return _IMP_kernel._TrivialDerivedDecorator_show(self, *args)
8864 
8865 
8866  def setup_particle(*args):
8867  """
8868  setup_particle(Model m, ParticleIndex pi) -> _TrivialDerivedDecorator
8869  setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
8870  """
8871  return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
8872 
8873  setup_particle = staticmethod(setup_particle)
8874 
8875  def get_is_setup(*args):
8876  """
8877  get_is_setup(_ParticleAdaptor p) -> bool
8878  get_is_setup(Model m, ParticleIndex pi) -> bool
8879  """
8880  return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
8881 
8882  get_is_setup = staticmethod(get_is_setup)
8883 
8884  def add_attribute(self, *args):
8885  """
8886  add_attribute(_TrivialDerivedDecorator self, FloatKey k, IMP::Float v, bool opt)
8887  add_attribute(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
8888  add_attribute(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
8889  add_attribute(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
8890  add_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
8891  add_attribute(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
8892  """
8893  return _IMP_kernel._TrivialDerivedDecorator_add_attribute(self, *args)
8894 
8895 
8896  def get_value(self, *args):
8897  """
8898  get_value(_TrivialDerivedDecorator self, FloatKey a0) -> IMP::Float
8899  get_value(_TrivialDerivedDecorator self, IntKey a0) -> IMP::Int
8900  get_value(_TrivialDerivedDecorator self, StringKey a0) -> IMP::String
8901  get_value(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> Particle
8902  get_value(_TrivialDerivedDecorator self, ObjectKey a0) -> Object
8903  """
8904  return _IMP_kernel._TrivialDerivedDecorator_get_value(self, *args)
8905 
8906 
8907  def set_value(self, *args):
8908  """
8909  set_value(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
8910  set_value(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
8911  set_value(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
8912  set_value(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
8913  set_value(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
8914  """
8915  return _IMP_kernel._TrivialDerivedDecorator_set_value(self, *args)
8916 
8917 
8918  def remove_attribute(self, *args):
8919  """
8920  remove_attribute(_TrivialDerivedDecorator self, FloatKey a0)
8921  remove_attribute(_TrivialDerivedDecorator self, IntKey a0)
8922  remove_attribute(_TrivialDerivedDecorator self, StringKey a0)
8923  remove_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0)
8924  remove_attribute(_TrivialDerivedDecorator self, ObjectKey a0)
8925  """
8926  return _IMP_kernel._TrivialDerivedDecorator_remove_attribute(self, *args)
8927 
8928 
8929  def has_attribute(self, *args):
8930  """
8931  has_attribute(_TrivialDerivedDecorator self, FloatKey a0) -> bool
8932  has_attribute(_TrivialDerivedDecorator self, IntKey a0) -> bool
8933  has_attribute(_TrivialDerivedDecorator self, StringKey a0) -> bool
8934  has_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> bool
8935  has_attribute(_TrivialDerivedDecorator self, ObjectKey a0) -> bool
8936  """
8937  return _IMP_kernel._TrivialDerivedDecorator_has_attribute(self, *args)
8938 
8939 
8940  def get_derivative(self, a0):
8941  """get_derivative(_TrivialDerivedDecorator self, FloatKey a0) -> double"""
8942  return _IMP_kernel._TrivialDerivedDecorator_get_derivative(self, a0)
8943 
8944 
8945  def get_name(self):
8946  """get_name(_TrivialDerivedDecorator self) -> std::string"""
8947  return _IMP_kernel._TrivialDerivedDecorator_get_name(self)
8948 
8949 
8950  def clear_caches(self):
8951  """clear_caches(_TrivialDerivedDecorator self)"""
8952  return _IMP_kernel._TrivialDerivedDecorator_clear_caches(self)
8953 
8954 
8955  def set_name(self, a0):
8956  """set_name(_TrivialDerivedDecorator self, std::string a0)"""
8957  return _IMP_kernel._TrivialDerivedDecorator_set_name(self, a0)
8958 
8959 
8960  def set_check_level(self, a0):
8961  """set_check_level(_TrivialDerivedDecorator self, IMP::CheckLevel a0)"""
8962  return _IMP_kernel._TrivialDerivedDecorator_set_check_level(self, a0)
8963 
8964 
8965  def add_to_derivative(self, a0, a1, a2):
8966  """add_to_derivative(_TrivialDerivedDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8967  return _IMP_kernel._TrivialDerivedDecorator_add_to_derivative(self, a0, a1, a2)
8968 
8969 
8970  def set_is_optimized(self, a0, a1):
8971  """set_is_optimized(_TrivialDerivedDecorator self, FloatKey a0, bool a1)"""
8972  return _IMP_kernel._TrivialDerivedDecorator_set_is_optimized(self, a0, a1)
8973 
8974 
8975  def get_is_optimized(self, a0):
8976  """get_is_optimized(_TrivialDerivedDecorator self, FloatKey a0) -> bool"""
8977  return _IMP_kernel._TrivialDerivedDecorator_get_is_optimized(self, a0)
8978 
8979 
8980  def get_check_level(self):
8981  """get_check_level(_TrivialDerivedDecorator self) -> IMP::CheckLevel"""
8982  return _IMP_kernel._TrivialDerivedDecorator_get_check_level(self)
8983 
8984 
8985  def __eq__(self, *args):
8986  """
8987  __eq__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8988  __eq__(_TrivialDerivedDecorator self, Particle d) -> bool
8989  """
8990  return _IMP_kernel._TrivialDerivedDecorator___eq__(self, *args)
8991 
8992 
8993  def __ne__(self, *args):
8994  """
8995  __ne__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8996  __ne__(_TrivialDerivedDecorator self, Particle d) -> bool
8997  """
8998  return _IMP_kernel._TrivialDerivedDecorator___ne__(self, *args)
8999 
9000 
9001  def __le__(self, *args):
9002  """
9003  __le__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9004  __le__(_TrivialDerivedDecorator self, Particle d) -> bool
9005  """
9006  return _IMP_kernel._TrivialDerivedDecorator___le__(self, *args)
9007 
9008 
9009  def __lt__(self, *args):
9010  """
9011  __lt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9012  __lt__(_TrivialDerivedDecorator self, Particle d) -> bool
9013  """
9014  return _IMP_kernel._TrivialDerivedDecorator___lt__(self, *args)
9015 
9016 
9017  def __ge__(self, *args):
9018  """
9019  __ge__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9020  __ge__(_TrivialDerivedDecorator self, Particle d) -> bool
9021  """
9022  return _IMP_kernel._TrivialDerivedDecorator___ge__(self, *args)
9023 
9024 
9025  def __gt__(self, *args):
9026  """
9027  __gt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
9028  __gt__(_TrivialDerivedDecorator self, Particle d) -> bool
9029  """
9030  return _IMP_kernel._TrivialDerivedDecorator___gt__(self, *args)
9031 
9032 
9033  def __hash__(self):
9034  """__hash__(_TrivialDerivedDecorator self) -> std::size_t"""
9035  return _IMP_kernel._TrivialDerivedDecorator___hash__(self)
9036 
9037 
9038  def __str__(self):
9039  """__str__(_TrivialDerivedDecorator self) -> std::string"""
9040  return _IMP_kernel._TrivialDerivedDecorator___str__(self)
9041 
9042 
9043  def __repr__(self):
9044  """__repr__(_TrivialDerivedDecorator self) -> std::string"""
9045  return _IMP_kernel._TrivialDerivedDecorator___repr__(self)
9046 
9047  __swig_destroy__ = _IMP_kernel.delete__TrivialDerivedDecorator
9048  __del__ = lambda self: None
9049 _TrivialDerivedDecorator_swigregister = _IMP_kernel._TrivialDerivedDecorator_swigregister
9050 _TrivialDerivedDecorator_swigregister(_TrivialDerivedDecorator)
9051 
9052 def _TrivialDerivedDecorator_setup_particle(*args):
9053  """
9054  setup_particle(Model m, ParticleIndex pi) -> _TrivialDerivedDecorator
9055  _TrivialDerivedDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
9056  """
9057  return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
9058 
9059 def _TrivialDerivedDecorator_get_is_setup(*args):
9060  """
9061  get_is_setup(_ParticleAdaptor p) -> bool
9062  _TrivialDerivedDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
9063  """
9064  return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
9065 
9066 class _TrivialTraitsDecorator(Decorator):
9067  """Proxy of C++ IMP::internal::_TrivialTraitsDecorator class."""
9068 
9069  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
9070 
9071  def get_decorator_traits(self):
9072  """get_decorator_traits(_TrivialTraitsDecorator self) -> StringKey"""
9073  return _IMP_kernel._TrivialTraitsDecorator_get_decorator_traits(self)
9074 
9075 
9076  def get_default_decorator_traits():
9077  """get_default_decorator_traits() -> StringKey"""
9078  return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
9079 
9080  get_default_decorator_traits = staticmethod(get_default_decorator_traits)
9081 
9082  def __init__(self, *args):
9083  """
9084  __init__(IMP::internal::_TrivialTraitsDecorator self) -> _TrivialTraitsDecorator
9085  __init__(IMP::internal::_TrivialTraitsDecorator self, Model m, ParticleIndex id, StringKey tr) -> _TrivialTraitsDecorator
9086  __init__(IMP::internal::_TrivialTraitsDecorator self, Model m, ParticleIndex id) -> _TrivialTraitsDecorator
9087  __init__(IMP::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
9088  __init__(IMP::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d) -> _TrivialTraitsDecorator
9089  """
9090  this = _IMP_kernel.new__TrivialTraitsDecorator(*args)
9091  try:
9092  self.this.append(this)
9093  except __builtin__.Exception:
9094  self.this = this
9095 
9096  def show(self, *args):
9097  """
9098  show(_TrivialTraitsDecorator self, _ostream out)
9099  show(_TrivialTraitsDecorator self)
9100  """
9101  return _IMP_kernel._TrivialTraitsDecorator_show(self, *args)
9102 
9103 
9104  def setup_particle(*args):
9105  """
9106  setup_particle(Model m, ParticleIndex pi, StringKey tr) -> _TrivialTraitsDecorator
9107  setup_particle(Model m, ParticleIndex pi) -> _TrivialTraitsDecorator
9108  setup_particle(_ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
9109  setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
9110  """
9111  return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
9112 
9113  setup_particle = staticmethod(setup_particle)
9114 
9115  def get_is_setup(*args):
9116  """
9117  get_is_setup(_ParticleAdaptor p, StringKey tr) -> bool
9118  get_is_setup(_ParticleAdaptor p) -> bool
9119  get_is_setup(Model m, ParticleIndex pi, StringKey k) -> bool
9120  get_is_setup(Model m, ParticleIndex pi) -> bool
9121  """
9122  return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
9123 
9124  get_is_setup = staticmethod(get_is_setup)
9125 
9126  def get_default_key():
9127  """get_default_key() -> StringKey"""
9128  return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
9129 
9130  get_default_key = staticmethod(get_default_key)
9131 
9132  def add_attribute(self, *args):
9133  """
9134  add_attribute(_TrivialTraitsDecorator self, FloatKey k, IMP::Float v, bool opt)
9135  add_attribute(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
9136  add_attribute(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
9137  add_attribute(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
9138  add_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
9139  add_attribute(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
9140  """
9141  return _IMP_kernel._TrivialTraitsDecorator_add_attribute(self, *args)
9142 
9143 
9144  def get_value(self, *args):
9145  """
9146  get_value(_TrivialTraitsDecorator self, FloatKey a0) -> IMP::Float
9147  get_value(_TrivialTraitsDecorator self, IntKey a0) -> IMP::Int
9148  get_value(_TrivialTraitsDecorator self, StringKey a0) -> IMP::String
9149  get_value(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> Particle
9150  get_value(_TrivialTraitsDecorator self, ObjectKey a0) -> Object
9151  """
9152  return _IMP_kernel._TrivialTraitsDecorator_get_value(self, *args)
9153 
9154 
9155  def set_value(self, *args):
9156  """
9157  set_value(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
9158  set_value(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
9159  set_value(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
9160  set_value(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
9161  set_value(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
9162  """
9163  return _IMP_kernel._TrivialTraitsDecorator_set_value(self, *args)
9164 
9165 
9166  def remove_attribute(self, *args):
9167  """
9168  remove_attribute(_TrivialTraitsDecorator self, FloatKey a0)
9169  remove_attribute(_TrivialTraitsDecorator self, IntKey a0)
9170  remove_attribute(_TrivialTraitsDecorator self, StringKey a0)
9171  remove_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0)
9172  remove_attribute(_TrivialTraitsDecorator self, ObjectKey a0)
9173  """
9174  return _IMP_kernel._TrivialTraitsDecorator_remove_attribute(self, *args)
9175 
9176 
9177  def has_attribute(self, *args):
9178  """
9179  has_attribute(_TrivialTraitsDecorator self, FloatKey a0) -> bool
9180  has_attribute(_TrivialTraitsDecorator self, IntKey a0) -> bool
9181  has_attribute(_TrivialTraitsDecorator self, StringKey a0) -> bool
9182  has_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> bool
9183  has_attribute(_TrivialTraitsDecorator self, ObjectKey a0) -> bool
9184  """
9185  return _IMP_kernel._TrivialTraitsDecorator_has_attribute(self, *args)
9186 
9187 
9188  def get_derivative(self, a0):
9189  """get_derivative(_TrivialTraitsDecorator self, FloatKey a0) -> double"""
9190  return _IMP_kernel._TrivialTraitsDecorator_get_derivative(self, a0)
9191 
9192 
9193  def get_name(self):
9194  """get_name(_TrivialTraitsDecorator self) -> std::string"""
9195  return _IMP_kernel._TrivialTraitsDecorator_get_name(self)
9196 
9197 
9198  def clear_caches(self):
9199  """clear_caches(_TrivialTraitsDecorator self)"""
9200  return _IMP_kernel._TrivialTraitsDecorator_clear_caches(self)
9201 
9202 
9203  def set_name(self, a0):
9204  """set_name(_TrivialTraitsDecorator self, std::string a0)"""
9205  return _IMP_kernel._TrivialTraitsDecorator_set_name(self, a0)
9206 
9207 
9208  def set_check_level(self, a0):
9209  """set_check_level(_TrivialTraitsDecorator self, IMP::CheckLevel a0)"""
9210  return _IMP_kernel._TrivialTraitsDecorator_set_check_level(self, a0)
9211 
9212 
9213  def add_to_derivative(self, a0, a1, a2):
9214  """add_to_derivative(_TrivialTraitsDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9215  return _IMP_kernel._TrivialTraitsDecorator_add_to_derivative(self, a0, a1, a2)
9216 
9217 
9218  def set_is_optimized(self, a0, a1):
9219  """set_is_optimized(_TrivialTraitsDecorator self, FloatKey a0, bool a1)"""
9220  return _IMP_kernel._TrivialTraitsDecorator_set_is_optimized(self, a0, a1)
9221 
9222 
9223  def get_is_optimized(self, a0):
9224  """get_is_optimized(_TrivialTraitsDecorator self, FloatKey a0) -> bool"""
9225  return _IMP_kernel._TrivialTraitsDecorator_get_is_optimized(self, a0)
9226 
9227 
9228  def get_check_level(self):
9229  """get_check_level(_TrivialTraitsDecorator self) -> IMP::CheckLevel"""
9230  return _IMP_kernel._TrivialTraitsDecorator_get_check_level(self)
9231 
9232 
9233  def __eq__(self, *args):
9234  """
9235  __eq__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9236  __eq__(_TrivialTraitsDecorator self, Particle d) -> bool
9237  """
9238  return _IMP_kernel._TrivialTraitsDecorator___eq__(self, *args)
9239 
9240 
9241  def __ne__(self, *args):
9242  """
9243  __ne__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9244  __ne__(_TrivialTraitsDecorator self, Particle d) -> bool
9245  """
9246  return _IMP_kernel._TrivialTraitsDecorator___ne__(self, *args)
9247 
9248 
9249  def __le__(self, *args):
9250  """
9251  __le__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9252  __le__(_TrivialTraitsDecorator self, Particle d) -> bool
9253  """
9254  return _IMP_kernel._TrivialTraitsDecorator___le__(self, *args)
9255 
9256 
9257  def __lt__(self, *args):
9258  """
9259  __lt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9260  __lt__(_TrivialTraitsDecorator self, Particle d) -> bool
9261  """
9262  return _IMP_kernel._TrivialTraitsDecorator___lt__(self, *args)
9263 
9264 
9265  def __ge__(self, *args):
9266  """
9267  __ge__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9268  __ge__(_TrivialTraitsDecorator self, Particle d) -> bool
9269  """
9270  return _IMP_kernel._TrivialTraitsDecorator___ge__(self, *args)
9271 
9272 
9273  def __gt__(self, *args):
9274  """
9275  __gt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9276  __gt__(_TrivialTraitsDecorator self, Particle d) -> bool
9277  """
9278  return _IMP_kernel._TrivialTraitsDecorator___gt__(self, *args)
9279 
9280 
9281  def __hash__(self):
9282  """__hash__(_TrivialTraitsDecorator self) -> std::size_t"""
9283  return _IMP_kernel._TrivialTraitsDecorator___hash__(self)
9284 
9285 
9286  def __str__(self):
9287  """__str__(_TrivialTraitsDecorator self) -> std::string"""
9288  return _IMP_kernel._TrivialTraitsDecorator___str__(self)
9289 
9290 
9291  def __repr__(self):
9292  """__repr__(_TrivialTraitsDecorator self) -> std::string"""
9293  return _IMP_kernel._TrivialTraitsDecorator___repr__(self)
9294 
9295  __swig_destroy__ = _IMP_kernel.delete__TrivialTraitsDecorator
9296  __del__ = lambda self: None
9297 _TrivialTraitsDecorator_swigregister = _IMP_kernel._TrivialTraitsDecorator_swigregister
9298 _TrivialTraitsDecorator_swigregister(_TrivialTraitsDecorator)
9299 
9300 def _TrivialTraitsDecorator_get_default_decorator_traits():
9301  """_TrivialTraitsDecorator_get_default_decorator_traits() -> StringKey"""
9302  return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
9303 
9304 def _TrivialTraitsDecorator_setup_particle(*args):
9305  """
9306  setup_particle(Model m, ParticleIndex pi, StringKey tr) -> _TrivialTraitsDecorator
9307  setup_particle(Model m, ParticleIndex pi) -> _TrivialTraitsDecorator
9308  setup_particle(_ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
9309  _TrivialTraitsDecorator_setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
9310  """
9311  return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
9312 
9313 def _TrivialTraitsDecorator_get_is_setup(*args):
9314  """
9315  get_is_setup(_ParticleAdaptor p, StringKey tr) -> bool
9316  get_is_setup(_ParticleAdaptor p) -> bool
9317  get_is_setup(Model m, ParticleIndex pi, StringKey k) -> bool
9318  _TrivialTraitsDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
9319  """
9320  return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
9321 
9322 def _TrivialTraitsDecorator_get_default_key():
9323  """_TrivialTraitsDecorator_get_default_key() -> StringKey"""
9324  return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
9325 
9326 
9327 def __lshift__(*args):
9328  """
9329  __lshift__(_ostream out, _TrivialDecorator n) -> _ostream
9330  __lshift__(_ostream out, _TrivialDerivedDecorator n) -> _ostream
9331  __lshift__(_ostream out, _TrivialTraitsDecorator n) -> _ostream
9332  """
9333  return _IMP_kernel.__lshift__(*args)
9334 class _ConstOptimizer(Optimizer):
9335  """Proxy of C++ IMP::internal::_ConstOptimizer class."""
9336 
9337  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
9338 
9339  def __init__(self, m):
9340  """__init__(IMP::internal::_ConstOptimizer self, Model m) -> _ConstOptimizer"""
9341  this = _IMP_kernel.new__ConstOptimizer(m)
9342  try:
9343  self.this.append(this)
9344  except __builtin__.Exception:
9345  self.this = this
9346 
9347  def do_optimize(self, max_steps):
9348  """do_optimize(_ConstOptimizer self, unsigned int max_steps) -> IMP::Float"""
9349  return _IMP_kernel._ConstOptimizer_do_optimize(self, max_steps)
9350 
9351 
9352  def get_version_info(self):
9353  """get_version_info(_ConstOptimizer self) -> VersionInfo"""
9354  return _IMP_kernel._ConstOptimizer_get_version_info(self)
9355 
9356 
9357  def __str__(self):
9358  """__str__(_ConstOptimizer self) -> std::string"""
9359  return _IMP_kernel._ConstOptimizer___str__(self)
9360 
9361 
9362  def __repr__(self):
9363  """__repr__(_ConstOptimizer self) -> std::string"""
9364  return _IMP_kernel._ConstOptimizer___repr__(self)
9365 
9366 
9367  @staticmethod
9368  def get_from(o):
9369  return _object_cast_to__ConstOptimizer(o)
9370 
9371 _ConstOptimizer_swigregister = _IMP_kernel._ConstOptimizer_swigregister
9372 _ConstOptimizer_swigregister(_ConstOptimizer)
9373 
9374 
9375 def get_particle(p):
9376  """get_particle(Particle p) -> Particle"""
9377  return _IMP_kernel.get_particle(p)
9378 
9379 def _decorator_test(p):
9380  """_decorator_test(Particle p)"""
9381  return _IMP_kernel._decorator_test(p)
9382 
9383 def _overloaded_decorator(*args):
9384  """
9385  _overloaded_decorator(_TrivialDecorator a) -> int
9386  _overloaded_decorator(_TrivialDerivedDecorator a) -> int
9387  """
9388  return _IMP_kernel._overloaded_decorator(*args)
9389 
9390 def _take_particles(*args):
9391  """
9392  _take_particles(IMP::Particles const & ps) -> unsigned int
9393  _take_particles(Model m, IMP::Particles const & ps) -> unsigned int
9394  _take_particles(Model m, IMP::Particles const & ps, TextOutput out) -> unsigned int
9395  """
9396  return _IMP_kernel._take_particles(*args)
9397 
9398 def _give_particles(m):
9399  """_give_particles(Model m) -> IMP::Particles const &"""
9400  return _IMP_kernel._give_particles(m)
9401 
9402 def _pass_particles(ps):
9403  """_pass_particles(IMP::Particles const & ps) -> IMP::Particles const &"""
9404  return _IMP_kernel._pass_particles(ps)
9405 
9406 def _pass_particle(ps):
9407  """_pass_particle(Particle ps) -> Particle"""
9408  return _IMP_kernel._pass_particle(ps)
9409 
9410 def _pass_particle_pair(pp):
9411  """_pass_particle_pair(IMP::ParticlePair const & pp) -> IMP::ParticlePair const &"""
9412  return _IMP_kernel._pass_particle_pair(pp)
9413 
9414 def _give_particles_copy(m):
9415  """_give_particles_copy(Model m) -> IMP::Particles"""
9416  return _IMP_kernel._give_particles_copy(m)
9417 
9418 def _pass_float_keys(input):
9419  """_pass_float_keys(IMP::FloatKeys const & input) -> IMP::FloatKeys"""
9420  return _IMP_kernel._pass_float_keys(input)
9421 
9422 def _pass(*args):
9423  """
9424  _pass(IMP::Particles const & p) -> IMP::Particles const
9425  _pass(IMP::Restraints const & p) -> IMP::Restraints const &
9426  """
9427  return _IMP_kernel._pass(*args)
9428 
9429 def _pass_decorators(p):
9430  """_pass_decorators(IMP::internal::_TrivialDecorators const & p) -> IMP::internal::_TrivialDecorators const &"""
9431  return _IMP_kernel._pass_decorators(p)
9432 
9433 def _pass_decorator_traits(p):
9434  """_pass_decorator_traits(IMP::internal::_TrivialTraitsDecorators const & p) -> IMP::internal::_TrivialTraitsDecorators const &"""
9435  return _IMP_kernel._pass_decorator_traits(p)
9436 
9437 def _pass_particle_pairs(p):
9438  """_pass_particle_pairs(IMP::ParticlePairsTemp const & p) -> IMP::ParticlePairsTemp"""
9439  return _IMP_kernel._pass_particle_pairs(p)
9440 
9441 def _pass_particle_index_pairs(p):
9442  """_pass_particle_index_pairs(IMP::ParticleIndexPairs const & p) -> IMP::ParticleIndexPairs"""
9443  return _IMP_kernel._pass_particle_index_pairs(p)
9444 
9445 def _pass_model_objects(p):
9446  """_pass_model_objects(IMP::ModelObjectsTemp const & p) -> IMP::ModelObjectsTemp"""
9447  return _IMP_kernel._pass_model_objects(p)
9448 
9449 def _pass_particles_temps(ps):
9450  """_pass_particles_temps(IMP::ParticlesTemps const & ps) -> IMP::ParticlesTemps"""
9451  return _IMP_kernel._pass_particles_temps(ps)
9452 
9453 def _test_overload(*args):
9454  """
9455  _test_overload(IMP::Particles const & ps) -> int
9456  _test_overload(IMP::Restraints const & ps) -> int
9457  """
9458  return _IMP_kernel._test_overload(*args)
9459 
9460 def _get_range(m, k):
9461  """_get_range(Model m, FloatKey k) -> IMP::FloatRange"""
9462  return _IMP_kernel._get_range(m, k)
9463 
9464 def _create_particles_from_pdb(name, m):
9465  """_create_particles_from_pdb(std::string name, Model m) -> IMP::ParticleIndexes"""
9466  return _IMP_kernel._create_particles_from_pdb(name, m)
9467 class _LogPairScore(PairScore):
9468  """Proxy of C++ IMP::internal::_LogPairScore class."""
9469 
9470  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
9471  __repr__ = _swig_repr
9472 
9473  def __init__(self):
9474  """__init__(IMP::internal::_LogPairScore self) -> _LogPairScore"""
9475  this = _IMP_kernel.new__LogPairScore()
9476  try:
9477  self.this.append(this)
9478  except __builtin__.Exception:
9479  self.this = this
9480 
9481  def do_get_inputs(self, arg2, arg3):
9482  """do_get_inputs(_LogPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
9483  return _IMP_kernel._LogPairScore_do_get_inputs(self, arg2, arg3)
9484 
9485 
9486  def get_version_info(self):
9487  """get_version_info(_LogPairScore self) -> VersionInfo"""
9488  return _IMP_kernel._LogPairScore_get_version_info(self)
9489 
9490 
9491  def get_particle_pairs(self):
9492  """get_particle_pairs(_LogPairScore self) -> IMP::ParticlePairsTemp"""
9493  return _IMP_kernel._LogPairScore_get_particle_pairs(self)
9494 
9495 
9496  def clear(self):
9497  """clear(_LogPairScore self)"""
9498  return _IMP_kernel._LogPairScore_clear(self)
9499 
9500 
9501  def get_contains(self, pp):
9502  """get_contains(_LogPairScore self, IMP::ParticlePair const & pp) -> bool"""
9503  return _IMP_kernel._LogPairScore_get_contains(self, pp)
9504 
9505 _LogPairScore_swigregister = _IMP_kernel._LogPairScore_swigregister
9506 _LogPairScore_swigregister(_LogPairScore)
9507 
9508 
9509 def _overloaded_particles(*args):
9510  """
9511  _overloaded_particles(Particle arg1)
9512  _overloaded_particles(IMP::Particles const & arg1)
9513  _overloaded_particles(IMP::ParticlesTemp const & arg1)
9514  _overloaded_particles(Model arg1, IMP::ParticleIndexes const & arg2)
9515  _overloaded_particles(IMP::internal::_TrivialDecorators const & arg1)
9516  _overloaded_particles(_TrivialDecorator arg1)
9517  """
9518  return _IMP_kernel._overloaded_particles(*args)
9519 class _ImplicitParticles(object):
9520  """Proxy of C++ IMP::internal::_ImplicitParticles class."""
9521 
9522  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
9523  __repr__ = _swig_repr
9524 
9525  def __init__(self, *args):
9526  """
9527  __init__(IMP::internal::_ImplicitParticles self, Particle arg2) -> _ImplicitParticles
9528  __init__(IMP::internal::_ImplicitParticles self, IMP::Particles const & arg2) -> _ImplicitParticles
9529  __init__(IMP::internal::_ImplicitParticles self, IMP::ParticlesTemp const & arg2) -> _ImplicitParticles
9530  __init__(IMP::internal::_ImplicitParticles self, Model arg2, IMP::ParticleIndexes const & arg3) -> _ImplicitParticles
9531  __init__(IMP::internal::_ImplicitParticles self, IMP::internal::_TrivialDecorators const & arg2) -> _ImplicitParticles
9532  __init__(IMP::internal::_ImplicitParticles self, _TrivialDecorator arg2) -> _ImplicitParticles
9533  """
9534  this = _IMP_kernel.new__ImplicitParticles(*args)
9535  try:
9536  self.this.append(this)
9537  except __builtin__.Exception:
9538  self.this = this
9539  __swig_destroy__ = _IMP_kernel.delete__ImplicitParticles
9540  __del__ = lambda self: None
9541 _ImplicitParticles_swigregister = _IMP_kernel._ImplicitParticles_swigregister
9542 _ImplicitParticles_swigregister(_ImplicitParticles)
9543 
9544 
9545 def _implicit_particles(arg1):
9546  """_implicit_particles(_ImplicitParticles arg1)"""
9547  return _IMP_kernel._implicit_particles(arg1)
9548 
9549 def _take_particle_adaptor(pa):
9550  """_take_particle_adaptor(_ParticleAdaptor pa) -> ParticleIndex"""
9551  return _IMP_kernel._take_particle_adaptor(pa)
9552 
9553 def _take_particle_indexes_adaptor(pa):
9554  """_take_particle_indexes_adaptor(_ParticleIndexesAdaptor pa) -> IMP::ParticleIndexes"""
9555  return _IMP_kernel._take_particle_indexes_adaptor(pa)
9556 class ScopedSetFloatAttribute(_RAII):
9557  """Proxy of C++ IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> class."""
9558 
9559  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
9560 
9561  def __init__(self, *args):
9562  """
9563  __init__(IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> self) -> ScopedSetFloatAttribute
9564  __init__(IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> self, Particle p, FloatKey key, double const & value) -> ScopedSetFloatAttribute
9565  """
9566  this = _IMP_kernel.new_ScopedSetFloatAttribute(*args)
9567  try:
9568  self.this.append(this)
9569  except __builtin__.Exception:
9570  self.this = this
9571 
9572  def set(self, p, key, value):
9573  """set(ScopedSetFloatAttribute self, Particle p, FloatKey key, double const & value)"""
9574  return _IMP_kernel.ScopedSetFloatAttribute_set(self, p, key, value)
9575 
9576 
9577  def reset(self):
9578  """reset(ScopedSetFloatAttribute self)"""
9579  return _IMP_kernel.ScopedSetFloatAttribute_reset(self)
9580 
9581  __swig_destroy__ = _IMP_kernel.delete_ScopedSetFloatAttribute
9582  __del__ = lambda self: None
9583 
9584  def show(self, *args):
9585  """
9586  show(ScopedSetFloatAttribute self, _ostream out)
9587  show(ScopedSetFloatAttribute self)
9588  """
9589  return _IMP_kernel.ScopedSetFloatAttribute_show(self, *args)
9590 
9591 
9592  def __str__(self):
9593  """__str__(ScopedSetFloatAttribute self) -> std::string"""
9594  return _IMP_kernel.ScopedSetFloatAttribute___str__(self)
9595 
9596 
9597  def __repr__(self):
9598  """__repr__(ScopedSetFloatAttribute self) -> std::string"""
9599  return _IMP_kernel.ScopedSetFloatAttribute___repr__(self)
9600 
9601 ScopedSetFloatAttribute_swigregister = _IMP_kernel.ScopedSetFloatAttribute_swigregister
9602 ScopedSetFloatAttribute_swigregister(ScopedSetFloatAttribute)
9603 
9604 
9605 def _get_module_data_path(module, file_name):
9606  """_get_module_data_path(std::string module, std::string file_name) -> std::string"""
9607  return _IMP_kernel._get_module_data_path(module, file_name)
9608 
9609 def _get_module_example_path(module, file_name):
9610  """_get_module_example_path(std::string module, std::string file_name) -> std::string"""
9611  return _IMP_kernel._get_module_example_path(module, file_name)
9612 
9613 #used_modules=[]
9614 #def show_used_modules():
9615 # for m in used_modules:
9616 # print "%-20s %s" % (m.get_module(), m.get_version())
9617 
9618 # Ensure that Windows gets the PATH set to include anything in the library
9619 # search path
9620 if sys.platform == 'win32' and 'IMP_LD_PATH' in os.environ:
9621  dirs = os.environ['IMP_LD_PATH'].split(":")
9622  pathcomps = os.environ['PATH'].split(";")
9623  for d in dirs:
9624  if d not in pathcomps:
9625  os.environ['PATH'] = d + ';' + os.environ['PATH']
9626 
9627 
9628 
9629 import sys
9630 import os
9631 
9632 class CommandDispatcher(object):
9633  """Allow command line tools to easily implement multiple commands.
9634  Typically, an IMP command line tool will use an instance of this class
9635  to provide a consistent interface to multiple distinct commands
9636  from a single binary, rather than providing a potentially large
9637  number of binaries. This is similar to the way a number of common
9638  command line tools outside of IMP function (e.g. Git provides a single
9639  `git` tool which implements multiple commands - `git add`, `git commit`,
9640  `git push` and so on).
9641 
9642  Each command is implemented with a Python module of the same name
9643  that can be imported from the module (for example, if `module_name`
9644  is `IMP.foo`, the `bar` command is provided by the `IMP.foo.bar` Python
9645  module, which would usually be found as `modules/foo/pyext/src/bar.py`).
9646  Each such module should have a docstring and a `%main()` method
9647  that takes no arguments (the module should also call its `%main()` method
9648  if it is run directly, i.e. with something like
9649  `if __name__=="__main__": %main()`). The encompassing module
9650  (`IMP.foo` in the example) should define `_all_commands` as a Python
9651  list of all valid commands.
9652 
9653  See the `multifit` and `cnmultifit` command line tools for example
9654  usage.
9655  """
9656 
9657  def __init__(self, short_help, long_help, module_name):
9658  """Constructor.
9659  @param short_help A few words that describe the command line tool.
9660  @param long_help Longer text, used in the `help` command.
9661  @param module_name Name of the module (e.g. `IMP.foo`) that
9662  implements the commands.
9663  """
9664  self.short_help = short_help
9665  self.long_help = long_help
9666  self.module_name = module_name
9667  self._all_commands = self.import_module()._all_commands
9668  self._progname = os.path.basename(sys.argv[0])
9669 
9670  def main(self):
9671  """Call this method to act upon the user-provided command line"""
9672  if len(sys.argv) <= 1:
9673  print(self.short_help + " Use '%s help' for help." % self._progname)
9674  else:
9675  command = sys.argv[1]
9676  if command in ('help', '--help', '-h'):
9677  if len(sys.argv) == 3:
9678  self.show_command_help(sys.argv[2])
9679  else:
9680  self.show_help()
9681  elif command == '--version':
9682  self.show_version()
9683  elif command in self._all_commands:
9684  self.do_command(command)
9685  else:
9686  self.unknown_command(command)
9687 
9688  def import_module(self, mod=None):
9689  modname = self.module_name
9690  if mod is not None:
9691  modname += "." + mod
9692  return __import__(modname, {}, {}, [''])
9693 
9694  def unknown_command(self, command):
9695  print("Unknown command: '%s'" % command)
9696  print("Use '%s help' for help." % self._progname)
9697  sys.exit(1)
9698 
9699  def _get_version(self):
9700  return self.import_module().get_module_version()
9701 
9702  def show_version(self):
9703  print(self._progname + ' ' + self._get_version())
9704 
9705  def show_help(self):
9706  ver = self._get_version()
9707  print("%s, version %s." % (self._progname, ver))
9708  print(self.long_help + """
9709 
9710 This program is part of IMP, the Integrative Modeling Platform,
9711 which is Copyright 2007-2020 IMP Inventors.
9712 For additional information about IMP, see <https://integrativemodeling.org>.
9713 
9714 Usage: %s <command> [options] [args]
9715 
9716 Commands:""" % self._progname)
9717  commands = self._all_commands[:] + ['help']
9718  commands.sort()
9719  cmdlen = max([len(c) for c in commands])
9720  for c in commands:
9721  if c == 'help':
9722  doc = 'Get help on using %s.' % self._progname
9723  else:
9724  doc = self.import_module(c).__doc__ or "<no help>"
9725  c += ' ' * (cmdlen - len(c))
9726  print(' ' + c + ' ' + doc)
9727  print("""
9728 Use "%s help <command>" for detailed help on any command
9729  or "%s --version" to see the version number.""" % (self._progname,
9730  self._progname))
9731 
9732  def do_command(self, command):
9733  mod = self.import_module(command)
9734  sys.argv[0] = self._progname + ' ' + command
9735  del sys.argv[1]
9736  mod.main()
9737 
9738  def show_command_help(self, command):
9739  if command == 'help':
9740  self.show_help()
9741  elif command in self._all_commands or command == 'help':
9742  mod = self.import_module(command)
9743  sys.argv = [self._progname + ' ' + command, '--help']
9744  mod.main()
9745  else:
9746  self.unknown_command(command)
9747 
9748 
9749 
9750 
9751 def get_networkx_graph(ig):
9752  import networkx
9753  g = networkx.DiGraph()
9754  if len(ig.get_vertices()) == 0:
9755  return g
9756 
9757  class NodeWrapper:
9758 
9759  def __init__(self, p):
9760  self.p = p
9761 
9762  def __str__(self):
9763  return self.p.get_name()
9764 
9765  def __call__(self, name):
9766  return self.p.__call__(name)
9767 
9768  for vi in ig.get_vertices():
9769  n = ig.get_vertex_name(vi)
9770  g.add_node(NodeWrapper(n))
9771  for vi in ig.get_vertices():
9772  n = ig.get_vertex_name(vi)
9773  for ni in ig.get_out_neighbors(vi):
9774  nn = ig.get_vertex_name(ni)
9775  g.add_edge(NodeWrapper(n), NodeWrapper(nn))
9776  return g
9777 
9778 
9779 def show_altgraph(g):
9780  def clean(name):
9781  try:
9782  n0 = name.get_name()
9783  except:
9784  n0 = str(name)
9785  n1 = str(n0).replace('"', '')
9786  n2 = n1.replace("\n", '')
9787  return n2
9788  import altgraph
9789  from altgraph import Graph, Dot
9790  graph = Graph.Graph()
9791  for i, v in enumerate(g.get_vertices()):
9792  graph.add_node(i) # , node_data=g.get_vertex_name(v)
9793  for i, v in enumerate(g.get_vertices()):
9794  for n in g.get_out_neighbors(v):
9795  graph.add_edge(v, n)
9796  dot = Dot.Dot(graph) # , graph_type="digraph"
9797  for i, v in enumerate(g.get_vertices()):
9798  dot.node_style(i, label=clean(g.get_vertex_name(v)))
9799  dot.display()
9800 
9801 
9802 def show_graphviz(g):
9803  tfn = create_temporary_file_name("graph", ".dot")
9804  tfon = create_temporary_file_name("graph", ".pdf")
9805  st = g.get_graphviz_string()
9806  open(tfn, "w").write(st)
9807  try:
9808  import subprocess
9809  except ImportError:
9810  import sys
9811  sys.stderr.write("Cannot run dot on Python 2.3 systems.\n")
9812  return
9813  try:
9814  print("running dot")
9815  sp = subprocess.Popen(["dot", "-Tpdf", tfn, "-o" + tfon])
9816  sp.wait()
9817  except:
9818  import sys
9819  sys.stderr.write("The dot command from the graphviz package was not found. Please make sure it is in the PATH passed to IMP.\n")
9820  return
9821  import platform
9822  if platform.system() == "Darwin":
9823  cmd = ["open"]
9824  else:
9825  cmd = ["gv", "acroread", "xpdf"]
9826  success = False
9827  for c in cmd:
9828  print("launching viewer " + c)
9829  try:
9830  subprocess.check_call([c, tfon])
9831  success = True
9832  break
9833  except:
9834  pass
9835  if not success:
9836  print("Could not display file. It is saved at " + tfon)
9837  return tfon
9838 
9839 
9840 
9841 
9842 import functools
9843 import contextlib
9844 
9845 def deprecated_module(version, module, help_message):
9846  """Mark a Python module as deprecated.
9847  @note The `module` argument would normally be `__name__`.
9848  @see [deprecation support](@ref deprecation)."""
9850  "Module %s is deprecated. %s\n" % (module, help_message))
9851 
9852 def deprecated_object(version, help_message):
9853  """Python decorator to mark a class as deprecated.
9854  @see [deprecation support](@ref deprecation)."""
9855  def wrapper(obj):
9856  orig_init = obj.__init__
9857 # Don't try to copy __module__ since __init__ may not have it
9858 # (e.g. if we subclassed object but didn't override __init__)
9859  @functools.wraps(orig_init, ('__name__', '__doc__'))
9860  def __init__(obj, *args, **keys):
9861  handle_use_deprecated("Object %s is deprecated. %s\n"
9862  % (type(obj), help_message))
9863  orig_init(obj, *args, **keys)
9864  obj.__init__ = __init__
9865  return obj
9866  return wrapper
9867 
9868 def deprecated_method(version, help_message):
9869  """Python decorator to mark a method as deprecated.
9870  @see [deprecation support](@ref deprecation)."""
9871  def out_wrapper(obj):
9872  @functools.wraps(obj)
9873  def wrapper(cls, *args, **keys):
9874  handle_use_deprecated("Method %s in %s is deprecated. %s\n"
9875  % (obj.__name__, type(cls), help_message))
9876  return obj(cls, *args, **keys)
9877  return wrapper
9878  return out_wrapper
9879 
9880 def deprecated_function(version, help_message):
9881  """Python decorator to mark a function as deprecated.
9882  @see [deprecation support](@ref deprecation)."""
9883  def out_wrapper(obj):
9884  @functools.wraps(obj)
9885  def wrapper(*args, **keys):
9886  handle_use_deprecated("Function %s is deprecated. %s\n"
9887  % (obj.__name__, help_message))
9888  return obj(*args, **keys)
9889  return wrapper
9890  return out_wrapper
9891 
9892 @contextlib.contextmanager
9893 def allow_deprecated(allow=True):
9894  """Context manager to temporarily allow (or disallow) deprecated code.
9895  @see [deprecation support](@ref deprecation)."""
9897  set_deprecation_exceptions(not allow)
9898  yield
9900 
9901 
9902 def _get_all_flags(ntokens):
9903  """_get_all_flags(unsigned int ntokens) -> IMP::Strings"""
9904  return _IMP_kernel._get_all_flags(ntokens)
9905 
9906 def _print_internal_help(out, description):
9907  """_print_internal_help(_ostream out, std::string description)"""
9908  return _IMP_kernel._print_internal_help(out, description)
9909 
9910 
9911 try:
9912  import argparse
9913 except ImportError:
9914  from . import _compat_argparse as argparse
9915 import sys
9916 
9917 class _PassThroughAction(argparse.Action):
9918  """Pass an argument through to the IMP Boost parser"""
9919  def __call__(self, parser, namespace, values, option_string=None):
9920  parser._boost_command_line.append(option_string)
9921  if values != []:
9922  parser._boost_command_line.append(values)
9923 # Terminate processing immediately if necessary (otherwise argparse
9924 # may fail if we're missing positional arguments)
9925  if option_string in ('-h', '--help', '--help_advanced', '--version'):
9926  parser._handle_boost()
9927 
9928 
9929 class ArgumentParser(argparse.ArgumentParser):
9930  """IMP-specific subclass of argparse.ArgumentParser.
9931  This adds options common to all IMP applications
9932  (see IMP::setup_from_argv()).
9933  """
9934 
9935  def __init__(self, *args, **kwargs):
9936 # Don't add --help option (since the Boost option parser handles it)
9937  kwargs['add_help'] = False
9938  super(ArgumentParser, self).__init__(*args, **kwargs)
9939  for ntoken in (0, 1):
9940  flags = _get_all_flags(ntoken)
9941  for f in flags:
9942  arg = ['-h', '--help'] if f == 'help' else ['--' + f]
9943  self.add_argument(*arg, help=argparse.SUPPRESS,
9944  nargs=None if ntoken else 0,
9945  action=_PassThroughAction,
9946  default=argparse.SUPPRESS)
9947 
9948  def parse_args(self, args=None, namespace=None):
9949  """Parse the command line and return optional and positional arguments.
9950  This functions in the same way as the method in the base class
9951  argparse.ArgumentParser, except that it also processes optional
9952  arguments common to all IMP applications (these are not returned
9953  in `args`, but can be obtained in the usual way, e.g. by calling
9954  IMP::get_string_flag()).
9955  @returns args
9956  """
9957  self._boost_command_line = [sys.argv[0]]
9958  ret = super(ArgumentParser, self).parse_args(args, namespace)
9959  if len(self._boost_command_line) > 1:
9960  self._handle_boost()
9961  return ret
9962 
9963  def _get_description(self):
9964  return self.format_help() + "\nOptions common to all IMP applications:"
9965 
9966  def print_help(self, file=None):
9967  _print_internal_help(file if file else sys.stdout,
9968  self._get_description())
9969 
9970  def _handle_boost(self):
9971  setup_from_argv(self._boost_command_line,
9972  self._get_description(),
9973  '==SUPPRESS==', 0)
9974 
9975 class RandomNumberGenerator(object):
9976  """Proxy of C++ IMP::RandomNumberGenerator class."""
9977 
9978  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
9979  __repr__ = _swig_repr
9980 
9981  def seed(self, x):
9982  """seed(RandomNumberGenerator self, ::boost::int32_t x)"""
9983  return _IMP_kernel.RandomNumberGenerator_seed(self, x)
9984 
9985 
9986  def __call__(self):
9987  """__call__(RandomNumberGenerator self) -> int"""
9988  return _IMP_kernel.RandomNumberGenerator___call__(self)
9989 
9990 
9991  def __init__(self):
9992  """__init__(IMP::RandomNumberGenerator self) -> RandomNumberGenerator"""
9993  this = _IMP_kernel.new_RandomNumberGenerator()
9994  try:
9995  self.this.append(this)
9996  except __builtin__.Exception:
9997  self.this = this
9998  __swig_destroy__ = _IMP_kernel.delete_RandomNumberGenerator
9999  __del__ = lambda self: None
10000 RandomNumberGenerator_swigregister = _IMP_kernel.RandomNumberGenerator_swigregister
10001 RandomNumberGenerator_swigregister(RandomNumberGenerator)
10002 
10003 
10004 def get_random_float_uniform(*args):
10005  """
10006  get_random_float_uniform() -> float
10007  get_random_float_uniform(float min, float max) -> float
10008  """
10009  return _IMP_kernel.get_random_float_uniform(*args)
10010 
10011 def get_random_double_uniform(*args):
10012  """
10013  get_random_double_uniform() -> double
10014  get_random_double_uniform(double min, double max) -> double
10015  """
10016  return _IMP_kernel.get_random_double_uniform(*args)
10017 
10018 def get_random_floats_normal(n, mean=0.0, stddev=1.0):
10019  """
10020  get_random_floats_normal(unsigned int n, float mean=0.0, float stddev=1.0) -> IMP::Vector< float >
10021  get_random_floats_normal(unsigned int n, float mean=0.0) -> IMP::Vector< float >
10022  get_random_floats_normal(unsigned int n) -> IMP::Vector< float >
10023  """
10024  return _IMP_kernel.get_random_floats_normal(n, mean, stddev)
10025 
10026 def get_random_doubles_normal(n, mean=0.0, stddev=1.0):
10027  """
10028  get_random_doubles_normal(unsigned int n, double mean=0.0, double stddev=1.0) -> IMP::Vector< double >
10029  get_random_doubles_normal(unsigned int n, double mean=0.0) -> IMP::Vector< double >
10030  get_random_doubles_normal(unsigned int n) -> IMP::Vector< double >
10031  """
10032  return _IMP_kernel.get_random_doubles_normal(n, mean, stddev)
10033 
10034 def get_random_floats_uniform(n):
10035  """get_random_floats_uniform(unsigned int n) -> IMP::Vector< float >"""
10036  return _IMP_kernel.get_random_floats_uniform(n)
10037 
10038 def get_random_doubles_uniform(n):
10039  """get_random_doubles_uniform(unsigned int n) -> IMP::Vector< double >"""
10040  return _IMP_kernel.get_random_doubles_uniform(n)
10041 
10042 def get_random_seed():
10043  """get_random_seed() -> boost::uint64_t"""
10044  return _IMP_kernel.get_random_seed()
10045 
10046 def _get_derivatives_numpy(m, k, m_pyobj):
10047  """_get_derivatives_numpy(Model m, FloatKey k, PyObject * m_pyobj) -> PyObject *"""
10048  return _IMP_kernel._get_derivatives_numpy(m, k, m_pyobj)
10049 
10050 def _get_floats_numpy(m, k, m_pyobj):
10051  """_get_floats_numpy(Model m, FloatKey k, PyObject * m_pyobj) -> PyObject *"""
10052  return _IMP_kernel._get_floats_numpy(m, k, m_pyobj)
10053 
10054 def _get_ints_numpy(m, k, m_pyobj):
10055  """_get_ints_numpy(Model m, IntKey k, PyObject * m_pyobj) -> PyObject *"""
10056  return _IMP_kernel._get_ints_numpy(m, k, m_pyobj)
10057 
10058 def _get_spheres_numpy(m, m_pyobj):
10059  """_get_spheres_numpy(Model m, PyObject * m_pyobj) -> PyObject *"""
10060  return _IMP_kernel._get_spheres_numpy(m, m_pyobj)
10061 
10062 def _get_sphere_derivatives_numpy(m, m_pyobj):
10063  """_get_sphere_derivatives_numpy(Model m, PyObject * m_pyobj) -> PyObject *"""
10064  return _IMP_kernel._get_sphere_derivatives_numpy(m, m_pyobj)
10065 
10066 def get_module_version():
10067  """get_module_version() -> std::string const"""
10068  return _IMP_kernel.get_module_version()
10069 
10070 def get_example_path(fname):
10071  """get_example_path(std::string fname) -> std::string"""
10072  return _IMP_kernel.get_example_path(fname)
10073 
10074 def get_data_path(fname):
10075  """get_data_path(std::string fname) -> std::string"""
10076  return _IMP_kernel.get_data_path(fname)
10077 
10078 from . import _version_check
10079 _version_check.check_version(get_module_version())
10080 __version__ = get_module_version()
10081 
10082 
10083 random_number_generator = cvar.random_number_generator
10084 
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:9632
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:9892
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:9670
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:9845
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:144
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:9880
Index< ParticleIndexTag > ParticleIndex
Definition: base_types.h:154
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:60
Array< 3, WeakPointer< Particle >, Particle * > ParticleTriplet
Definition: base_types.h:141
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)
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:9868
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:9948
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:9929
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:9852
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:135
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:9657
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:74
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.