IMP logo
IMP Reference Guide  2.11.1
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-2019 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_filenames(self, key, value):
4127  """add_filenames(RestraintInfo self, std::string key, IMP::Strings value)"""
4128  return _IMP_kernel.RestraintInfo_add_filenames(self, key, value)
4129 
4130 
4131  def get_number_of_filenames(self):
4132  """get_number_of_filenames(RestraintInfo self) -> unsigned int"""
4133  return _IMP_kernel.RestraintInfo_get_number_of_filenames(self)
4134 
4135 
4136  def get_filenames_key(self, i):
4137  """get_filenames_key(RestraintInfo self, unsigned int i) -> std::string"""
4138  return _IMP_kernel.RestraintInfo_get_filenames_key(self, i)
4139 
4140 
4141  def get_filenames_value(self, i):
4142  """get_filenames_value(RestraintInfo self, unsigned int i) -> IMP::Strings"""
4143  return _IMP_kernel.RestraintInfo_get_filenames_value(self, i)
4144 
4145 
4146  def get_version_info(self):
4147  """get_version_info(RestraintInfo self) -> VersionInfo"""
4148  return _IMP_kernel.RestraintInfo_get_version_info(self)
4149 
4150 
4151  def __str__(self):
4152  """__str__(RestraintInfo self) -> std::string"""
4153  return _IMP_kernel.RestraintInfo___str__(self)
4154 
4155 
4156  def __repr__(self):
4157  """__repr__(RestraintInfo self) -> std::string"""
4158  return _IMP_kernel.RestraintInfo___repr__(self)
4159 
4160 
4161  @staticmethod
4162  def get_from(o):
4163  return _object_cast_to_RestraintInfo(o)
4164 
4165 RestraintInfo_swigregister = _IMP_kernel.RestraintInfo_swigregister
4166 RestraintInfo_swigregister(RestraintInfo)
4167 
4168 class Restraint(ModelObject):
4169  """Proxy of C++ IMP::Restraint class."""
4170 
4171  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4172 
4173  def __init__(self, m, name):
4174  """__init__(IMP::Restraint self, Model m, std::string name) -> Restraint"""
4175  if self.__class__ == Restraint:
4176  _self = None
4177  else:
4178  _self = self
4179  this = _IMP_kernel.new_Restraint(_self, m, name)
4180  try:
4181  self.this.append(this)
4182  except __builtin__.Exception:
4183  self.this = this
4184 
4185  if self.__class__ != Restraint:
4186  _director_objects.register(self)
4187 
4188 
4189 
4190 
4191  def get_score(self):
4192  """get_score(Restraint self) -> double"""
4193  return _IMP_kernel.Restraint_get_score(self)
4194 
4195 
4196  def evaluate(self, calc_derivs):
4197  """evaluate(Restraint self, bool calc_derivs) -> double"""
4198  return _IMP_kernel.Restraint_evaluate(self, calc_derivs)
4199 
4200 
4201  def evaluate_if_good(self, calc_derivatives):
4202  """evaluate_if_good(Restraint self, bool calc_derivatives) -> double"""
4203  return _IMP_kernel.Restraint_evaluate_if_good(self, calc_derivatives)
4204 
4205 
4206  def evaluate_if_below(self, calc_derivatives, max):
4207  """evaluate_if_below(Restraint self, bool calc_derivatives, double max) -> double"""
4208  return _IMP_kernel.Restraint_evaluate_if_below(self, calc_derivatives, max)
4209 
4210 
4211  def unprotected_evaluate(self, da):
4212  """unprotected_evaluate(Restraint self, DerivativeAccumulator da) -> double"""
4213  return _IMP_kernel.Restraint_unprotected_evaluate(self, da)
4214 
4215 
4216  def unprotected_evaluate_if_good(self, da, max):
4217  """unprotected_evaluate_if_good(Restraint self, DerivativeAccumulator da, double max) -> double"""
4218  return _IMP_kernel.Restraint_unprotected_evaluate_if_good(self, da, max)
4219 
4220 
4221  def unprotected_evaluate_if_below(self, da, max):
4222  """unprotected_evaluate_if_below(Restraint self, DerivativeAccumulator da, double max) -> double"""
4223  return _IMP_kernel.Restraint_unprotected_evaluate_if_below(self, da, max)
4224 
4225 
4226  def get_static_info(self):
4227  """get_static_info(Restraint self) -> RestraintInfo"""
4228  return _IMP_kernel.Restraint_get_static_info(self)
4229 
4230 
4231  def get_dynamic_info(self):
4232  """get_dynamic_info(Restraint self) -> RestraintInfo"""
4233  return _IMP_kernel.Restraint_get_dynamic_info(self)
4234 
4235 
4236  def add_score_and_derivatives(self, sa):
4237  """add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
4238  return _IMP_kernel.Restraint_add_score_and_derivatives(self, sa)
4239 
4240 
4241  def create_decomposition(self):
4242  """create_decomposition(Restraint self) -> Restraint"""
4243  return _IMP_kernel.Restraint_create_decomposition(self)
4244 
4245 
4246  def create_current_decomposition(self):
4247  """create_current_decomposition(Restraint self) -> Restraint"""
4248  return _IMP_kernel.Restraint_create_current_decomposition(self)
4249 
4250 
4251  def set_weight(self, weight):
4252  """set_weight(Restraint self, IMP::Float weight)"""
4253  return _IMP_kernel.Restraint_set_weight(self, weight)
4254 
4255 
4256  def get_weight(self):
4257  """get_weight(Restraint self) -> IMP::Float"""
4258  return _IMP_kernel.Restraint_get_weight(self)
4259 
4260 
4261  def get_maximum_score(self):
4262  """get_maximum_score(Restraint self) -> double"""
4263  return _IMP_kernel.Restraint_get_maximum_score(self)
4264 
4265 
4266  def set_maximum_score(self, s):
4267  """set_maximum_score(Restraint self, double s)"""
4268  return _IMP_kernel.Restraint_set_maximum_score(self, s)
4269 
4270 
4271  def create_scoring_function(self, *args):
4272  """
4273  create_scoring_function(Restraint self, double weight=1.0, double max) -> ScoringFunction
4274  create_scoring_function(Restraint self, double weight=1.0) -> ScoringFunction
4275  create_scoring_function(Restraint self) -> ScoringFunction
4276  """
4277  return _IMP_kernel.Restraint_create_scoring_function(self, *args)
4278 
4279 
4280  def set_last_score(self, s):
4281  """set_last_score(Restraint self, double s)"""
4282  return _IMP_kernel.Restraint_set_last_score(self, s)
4283 
4284 
4285  def get_last_score(self):
4286  """get_last_score(Restraint self) -> double"""
4287  return _IMP_kernel.Restraint_get_last_score(self)
4288 
4289 
4290  def get_was_good(self):
4291  """get_was_good(Restraint self) -> bool"""
4292  return _IMP_kernel.Restraint_get_was_good(self)
4293 
4294  __swig_destroy__ = _IMP_kernel.delete_Restraint
4295  __del__ = lambda self: None
4296 
4297  def do_create_decomposition(self):
4298  """do_create_decomposition(Restraint self) -> IMP::Restraints"""
4299  return _IMP_kernel.Restraint_do_create_decomposition(self)
4300 
4301 
4302  def do_create_current_decomposition(self):
4303  """do_create_current_decomposition(Restraint self) -> IMP::Restraints"""
4304  return _IMP_kernel.Restraint_do_create_current_decomposition(self)
4305 
4306 
4307  def do_add_score_and_derivatives(self, sa):
4308  """do_add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
4309  return _IMP_kernel.Restraint_do_add_score_and_derivatives(self, sa)
4310 
4311 
4312  def do_get_outputs(self):
4313  """do_get_outputs(Restraint self) -> IMP::ModelObjectsTemp"""
4314  return _IMP_kernel.Restraint_do_get_outputs(self)
4315 
4316 
4317  def __str__(self):
4318  """__str__(Restraint self) -> std::string"""
4319  return _IMP_kernel.Restraint___str__(self)
4320 
4321 
4322  def __repr__(self):
4323  """__repr__(Restraint self) -> std::string"""
4324  return _IMP_kernel.Restraint___repr__(self)
4325 
4326 
4327  @staticmethod
4328  def get_from(o):
4329  return _object_cast_to_Restraint(o)
4330 
4331 
4332  def get_type_name(self):
4333  return self.__class__.__name__
4334  def do_show(self, out):
4335  pass
4336  def get_version_info(self):
4337  if"IMP" == "IMP":
4338  return VersionInfo(self.__module__,
4339  __import__(self.__module__).get_module_version())
4340  else:
4341  return IMP.VersionInfo(self.__module__,
4342  __import__(self.__module__).get_module_version())
4343  @staticmethod
4344  def get_from(o):
4345  return _object_cast_to_Restraint(o)
4346 
4347  def __disown__(self):
4348  self.this.disown()
4349  _IMP_kernel.disown_Restraint(self)
4350  return weakref_proxy(self)
4351 
4352  def do_destroy(self):
4353  """do_destroy(Restraint self)"""
4354  return _IMP_kernel.Restraint_do_destroy(self)
4355 
4356 
4357  def handle_set_has_required_score_states(self, arg0):
4358  """handle_set_has_required_score_states(Restraint self, bool arg0)"""
4359  return _IMP_kernel.Restraint_handle_set_has_required_score_states(self, arg0)
4360 
4361 
4362  def do_get_inputs(self):
4363  """do_get_inputs(Restraint self) -> IMP::ModelObjectsTemp"""
4364  return _IMP_kernel.Restraint_do_get_inputs(self)
4365 
4366 
4367  def do_get_interactions(self):
4368  """do_get_interactions(Restraint self) -> IMP::ModelObjectsTemps"""
4369  return _IMP_kernel.Restraint_do_get_interactions(self)
4370 
4371 Restraint_swigregister = _IMP_kernel.Restraint_swigregister
4372 Restraint_swigregister(Restraint)
4373 
4374 class _RestraintsAdaptor(_InputAdaptor):
4375  """Proxy of C++ IMP::RestraintsAdaptor class."""
4376 
4377  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4378  __repr__ = _swig_repr
4379 
4380  def __init__(self, *args):
4381  """
4382  __init__(IMP::RestraintsAdaptor self) -> _RestraintsAdaptor
4383  __init__(IMP::RestraintsAdaptor self, IMP::Restraints const & sf) -> _RestraintsAdaptor
4384  __init__(IMP::RestraintsAdaptor self, IMP::RestraintsTemp const & sf) -> _RestraintsAdaptor
4385  __init__(IMP::RestraintsAdaptor self, Restraint sf) -> _RestraintsAdaptor
4386  """
4387  this = _IMP_kernel.new__RestraintsAdaptor(*args)
4388  try:
4389  self.this.append(this)
4390  except __builtin__.Exception:
4391  self.this = this
4392  __swig_destroy__ = _IMP_kernel.delete__RestraintsAdaptor
4393  __del__ = lambda self: None
4394 _RestraintsAdaptor_swigregister = _IMP_kernel._RestraintsAdaptor_swigregister
4395 _RestraintsAdaptor_swigregister(_RestraintsAdaptor)
4396 
4397 class RestraintSet(Restraint):
4398  """Proxy of C++ IMP::RestraintSet class."""
4399 
4400  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4401 
4402  def __init__(self, *args):
4403  """
4404  __init__(IMP::RestraintSet self, Model m, double weight, std::string const & name) -> RestraintSet
4405  __init__(IMP::RestraintSet self, Model m, double weight) -> RestraintSet
4406  __init__(IMP::RestraintSet self, Model m, std::string const & name) -> RestraintSet
4407  __init__(IMP::RestraintSet self, Model m) -> RestraintSet
4408  __init__(IMP::RestraintSet self, IMP::RestraintsTemp const & rs, double weight, std::string const & name) -> RestraintSet
4409  __init__(IMP::RestraintSet self, IMP::RestraintsTemp const & rs, double weight) -> RestraintSet
4410  """
4411  this = _IMP_kernel.new_RestraintSet(*args)
4412  try:
4413  self.this.append(this)
4414  except __builtin__.Exception:
4415  self.this = this
4416 
4417  def get_version_info(self):
4418  """get_version_info(RestraintSet self) -> VersionInfo"""
4419  return _IMP_kernel.RestraintSet_get_version_info(self)
4420 
4421 
4422  def remove_restraint(self, d):
4423  """remove_restraint(RestraintSet self, Restraint d)"""
4424  return _IMP_kernel.RestraintSet_remove_restraint(self, d)
4425 
4426 
4427  def remove_restraints(self, d):
4428  """remove_restraints(RestraintSet self, IMP::Restraints const & d)"""
4429  return _IMP_kernel.RestraintSet_remove_restraints(self, d)
4430 
4431 
4432  def set_restraints(self, ps):
4433  """set_restraints(RestraintSet self, IMP::Restraints const & ps)"""
4434  return _IMP_kernel.RestraintSet_set_restraints(self, ps)
4435 
4436 
4437  def set_restraints_order(self, objs):
4438  """set_restraints_order(RestraintSet self, IMP::Restraints const & objs)"""
4439  return _IMP_kernel.RestraintSet_set_restraints_order(self, objs)
4440 
4441 
4442  def add_restraint(self, obj):
4443  """add_restraint(RestraintSet self, Restraint obj) -> unsigned int"""
4444  return _IMP_kernel.RestraintSet_add_restraint(self, obj)
4445 
4446 
4447  def add_restraints(self, objs):
4448  """add_restraints(RestraintSet self, IMP::Restraints const & objs)"""
4449  return _IMP_kernel.RestraintSet_add_restraints(self, objs)
4450 
4451 
4452  def clear_restraints(self):
4453  """clear_restraints(RestraintSet self)"""
4454  return _IMP_kernel.RestraintSet_clear_restraints(self)
4455 
4456 
4457  def get_number_of_restraints(self):
4458  """get_number_of_restraints(RestraintSet self) -> unsigned int"""
4459  return _IMP_kernel.RestraintSet_get_number_of_restraints(self)
4460 
4461 
4462  def get_has_restraints(self):
4463  """get_has_restraints(RestraintSet self) -> bool"""
4464  return _IMP_kernel.RestraintSet_get_has_restraints(self)
4465 
4466 
4467  def get_restraint(self, i):
4468  """get_restraint(RestraintSet self, unsigned int i) -> Restraint"""
4469  return _IMP_kernel.RestraintSet_get_restraint(self, i)
4470 
4471 
4472  def get_restraints(self):
4473  """get_restraints(RestraintSet self) -> IMP::Restraints"""
4474  return _IMP_kernel.RestraintSet_get_restraints(self)
4475 
4476 
4477  def reserve_restraints(self, sz):
4478  """reserve_restraints(RestraintSet self, unsigned int sz)"""
4479  return _IMP_kernel.RestraintSet_reserve_restraints(self, sz)
4480 
4481 
4482  def get_non_sets_and_sets(self):
4483  """get_non_sets_and_sets(RestraintSet self) -> std::pair< IMP::RestraintsTemp,IMP::RestraintSetsTemp >"""
4484  return _IMP_kernel.RestraintSet_get_non_sets_and_sets(self)
4485 
4486 
4487  def do_get_inputs(self):
4488  """do_get_inputs(RestraintSet self) -> IMP::ModelObjectsTemp"""
4489  return _IMP_kernel.RestraintSet_do_get_inputs(self)
4490 
4491 
4492  def create_scoring_function(self, *args):
4493  """
4494  create_scoring_function(RestraintSet self, double weight=1.0, double max) -> ScoringFunction
4495  create_scoring_function(RestraintSet self, double weight=1.0) -> ScoringFunction
4496  create_scoring_function(RestraintSet self) -> ScoringFunction
4497  """
4498  return _IMP_kernel.RestraintSet_create_scoring_function(self, *args)
4499 
4500 
4501  def __str__(self):
4502  """__str__(RestraintSet self) -> std::string"""
4503  return _IMP_kernel.RestraintSet___str__(self)
4504 
4505 
4506  def __repr__(self):
4507  """__repr__(RestraintSet self) -> std::string"""
4508  return _IMP_kernel.RestraintSet___repr__(self)
4509 
4510 
4511  @staticmethod
4512  def get_from(o):
4513  return _object_cast_to_RestraintSet(o)
4514 
4515 RestraintSet_swigregister = _IMP_kernel.RestraintSet_swigregister
4516 RestraintSet_swigregister(RestraintSet)
4517 
4518 
4519 def get_restraints(rs):
4520  """get_restraints(IMP::RestraintsTemp const & rs) -> IMP::RestraintsTemp"""
4521  return _IMP_kernel.get_restraints(rs)
4522 
4523 def _check_particle(p, a):
4524  if (not p.get_is_active()):
4525  raise ValueError("Inactive Particle")
4526  if (type(a)() == a):
4527  raise IndexError("Cannot use default Index")
4528  if (not p.has_attribute(a)):
4529  raise IndexError("Particle does not have attribute")
4530 
4531 class Particle(ModelObject):
4532  """Proxy of C++ IMP::Particle class."""
4533 
4534  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4535 
4536  def get_version_info(self):
4537  """get_version_info(Particle self) -> VersionInfo"""
4538  return _IMP_kernel.Particle_get_version_info(self)
4539 
4540 
4541  def __init__(self, *args):
4542  """
4543  __init__(IMP::Particle self, Model m, std::string name) -> Particle
4544  __init__(IMP::Particle self, Model m) -> Particle
4545  """
4546  this = _IMP_kernel.new_Particle(*args)
4547  try:
4548  self.this.append(this)
4549  except __builtin__.Exception:
4550  self.this = this
4551 
4552  def get_float_keys(self):
4553  """get_float_keys(Particle self) -> IMP::FloatKeys"""
4554  return _IMP_kernel.Particle_get_float_keys(self)
4555 
4556 
4557  def get_int_keys(self):
4558  """get_int_keys(Particle self) -> IMP::IntKeys"""
4559  return _IMP_kernel.Particle_get_int_keys(self)
4560 
4561 
4562  def get_string_keys(self):
4563  """get_string_keys(Particle self) -> IMP::StringKeys"""
4564  return _IMP_kernel.Particle_get_string_keys(self)
4565 
4566 
4567  def get_object_keys(self):
4568  """get_object_keys(Particle self) -> IMP::ObjectKeys"""
4569  return _IMP_kernel.Particle_get_object_keys(self)
4570 
4571 
4572  def add_cache_attribute(self, *args):
4573  """
4574  add_cache_attribute(Particle self, FloatKey name, IMP::Float value)
4575  add_cache_attribute(Particle self, IntKey name, IMP::Int value)
4576  add_cache_attribute(Particle self, StringKey name, IMP::String value)
4577  add_cache_attribute(Particle self, ObjectKey name, Object value)
4578  add_cache_attribute(Particle self, IMP::WeakObjectKey name, Object value)
4579  """
4580  return _IMP_kernel.Particle_add_cache_attribute(self, *args)
4581 
4582 
4583  def get_weak_object_keys(self):
4584  """get_weak_object_keys(Particle self) -> IMP::WeakObjectKeys"""
4585  return _IMP_kernel.Particle_get_weak_object_keys(self)
4586 
4587 
4588  def add_to_derivative(self, key, value, da):
4589  """add_to_derivative(Particle self, FloatKey key, IMP::Float value, DerivativeAccumulator da)"""
4590  return _IMP_kernel.Particle_add_to_derivative(self, key, value, da)
4591 
4592 
4593  def set_is_optimized(self, k, tf):
4594  """set_is_optimized(Particle self, FloatKey k, bool tf)"""
4595  return _IMP_kernel.Particle_set_is_optimized(self, k, tf)
4596 
4597 
4598  def get_is_optimized(self, k):
4599  """get_is_optimized(Particle self, FloatKey k) -> bool"""
4600  return _IMP_kernel.Particle_get_is_optimized(self, k)
4601 
4602 
4603  def get_derivative(self, k):
4604  """get_derivative(Particle self, FloatKey k) -> IMP::Float"""
4605  return _IMP_kernel.Particle_get_derivative(self, k)
4606 
4607 
4608  def add_attribute(self, *args):
4609  """
4610  add_attribute(Particle self, FloatKey name, IMP::Float initial_value)
4611  add_attribute(Particle self, IntKey name, IMP::Int initial_value)
4612  add_attribute(Particle self, StringKey name, IMP::String initial_value)
4613  add_attribute(Particle self, ObjectKey name, Object initial_value)
4614  add_attribute(Particle self, IMP::WeakObjectKey name, Object initial_value)
4615  add_attribute(Particle self, FloatKey name, IMP::Float const initial_value, bool optimized)
4616  add_attribute(Particle self, ParticleIndexKey k, Particle v)
4617  """
4618  return _IMP_kernel.Particle_add_attribute(self, *args)
4619 
4620 
4621  def has_attribute(self, *args):
4622  """
4623  has_attribute(Particle self, FloatKey name) -> bool
4624  has_attribute(Particle self, IntKey name) -> bool
4625  has_attribute(Particle self, StringKey name) -> bool
4626  has_attribute(Particle self, ObjectKey name) -> bool
4627  has_attribute(Particle self, IMP::WeakObjectKey name) -> bool
4628  has_attribute(Particle self, ParticleIndexKey k) -> bool
4629  """
4630  return _IMP_kernel.Particle_has_attribute(self, *args)
4631 
4632 
4633  def set_value(self, *args):
4634  """
4635  set_value(Particle self, FloatKey name, IMP::Float value)
4636  set_value(Particle self, IntKey name, IMP::Int value)
4637  set_value(Particle self, StringKey name, IMP::String value)
4638  set_value(Particle self, ObjectKey name, Object value)
4639  set_value(Particle self, IMP::WeakObjectKey name, Object value)
4640  set_value(Particle self, ParticleIndexKey k, Particle v)
4641  """
4642  return _IMP_kernel.Particle_set_value(self, *args)
4643 
4644 
4645  def get_value(self, *args):
4646  """
4647  get_value(Particle self, FloatKey name) -> IMP::Float
4648  get_value(Particle self, IntKey name) -> IMP::Int
4649  get_value(Particle self, StringKey name) -> IMP::String
4650  get_value(Particle self, ObjectKey name) -> Object
4651  get_value(Particle self, IMP::WeakObjectKey name) -> Object
4652  get_value(Particle self, ParticleIndexKey k) -> Particle
4653  """
4654  return _IMP_kernel.Particle_get_value(self, *args)
4655 
4656 
4657  def remove_attribute(self, *args):
4658  """
4659  remove_attribute(Particle self, FloatKey name)
4660  remove_attribute(Particle self, IntKey name)
4661  remove_attribute(Particle self, StringKey name)
4662  remove_attribute(Particle self, ObjectKey name)
4663  remove_attribute(Particle self, IMP::WeakObjectKey name)
4664  remove_attribute(Particle self, ParticleIndexKey k)
4665  """
4666  return _IMP_kernel.Particle_remove_attribute(self, *args)
4667 
4668 
4669  def get_particle_keys(self):
4670  """get_particle_keys(Particle self) -> IMP::ParticleIndexKeys"""
4671  return _IMP_kernel.Particle_get_particle_keys(self)
4672 
4673 
4674  def show(self, *args):
4675  """
4676  show(Particle self, _ostream out)
4677  show(Particle self)
4678  """
4679  return _IMP_kernel.Particle_show(self, *args)
4680 
4681 
4682  def get_is_active(self):
4683  """get_is_active(Particle self) -> bool"""
4684  return _IMP_kernel.Particle_get_is_active(self)
4685 
4686 
4687  def get_index(self):
4688  """get_index(Particle self) -> ParticleIndex"""
4689  return _IMP_kernel.Particle_get_index(self)
4690 
4691 
4692  def __eq__(self, *args):
4693  """
4694  __eq__(Particle self, Particle o) -> bool
4695  __eq__(Particle self, Decorator d) -> bool
4696  """
4697  return _IMP_kernel.Particle___eq__(self, *args)
4698 
4699 
4700  def __ne__(self, *args):
4701  """
4702  __ne__(Particle self, Particle o) -> bool
4703  __ne__(Particle self, Decorator d) -> bool
4704  """
4705  return _IMP_kernel.Particle___ne__(self, *args)
4706 
4707 
4708  def __le__(self, *args):
4709  """
4710  __le__(Particle self, Particle o) -> bool
4711  __le__(Particle self, Decorator d) -> bool
4712  """
4713  return _IMP_kernel.Particle___le__(self, *args)
4714 
4715 
4716  def __lt__(self, *args):
4717  """
4718  __lt__(Particle self, Particle o) -> bool
4719  __lt__(Particle self, Decorator d) -> bool
4720  """
4721  return _IMP_kernel.Particle___lt__(self, *args)
4722 
4723 
4724  def __ge__(self, *args):
4725  """
4726  __ge__(Particle self, Particle o) -> bool
4727  __ge__(Particle self, Decorator d) -> bool
4728  """
4729  return _IMP_kernel.Particle___ge__(self, *args)
4730 
4731 
4732  def __gt__(self, *args):
4733  """
4734  __gt__(Particle self, Particle o) -> bool
4735  __gt__(Particle self, Decorator d) -> bool
4736  """
4737  return _IMP_kernel.Particle___gt__(self, *args)
4738 
4739 
4740  __hash__ = ModelObject.__hash__
4741 
4742 
4743  def __str__(self):
4744  """__str__(Particle self) -> std::string"""
4745  return _IMP_kernel.Particle___str__(self)
4746 
4747 
4748  def __repr__(self):
4749  """__repr__(Particle self) -> std::string"""
4750  return _IMP_kernel.Particle___repr__(self)
4751 
4752 
4753  @staticmethod
4754  def get_from(o):
4755  return _object_cast_to_Particle(o)
4756 
4757 Particle_swigregister = _IMP_kernel.Particle_swigregister
4758 Particle_swigregister(Particle)
4759 
4760 class _ParticleAdaptor(_InputAdaptor):
4761  """Proxy of C++ IMP::ParticleAdaptor class."""
4762 
4763  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4764  __repr__ = _swig_repr
4765 
4766  def __init__(self, *args):
4767  """
4768  __init__(IMP::ParticleAdaptor self) -> _ParticleAdaptor
4769  __init__(IMP::ParticleAdaptor self, Particle p) -> _ParticleAdaptor
4770  __init__(IMP::ParticleAdaptor self, Decorator d) -> _ParticleAdaptor
4771  """
4772  this = _IMP_kernel.new__ParticleAdaptor(*args)
4773  try:
4774  self.this.append(this)
4775  except __builtin__.Exception:
4776  self.this = this
4777 
4778  def get_model(self):
4779  """get_model(_ParticleAdaptor self) -> Model"""
4780  return _IMP_kernel._ParticleAdaptor_get_model(self)
4781 
4782 
4783  def get_particle_index(self):
4784  """get_particle_index(_ParticleAdaptor self) -> ParticleIndex"""
4785  return _IMP_kernel._ParticleAdaptor_get_particle_index(self)
4786 
4787  __swig_destroy__ = _IMP_kernel.delete__ParticleAdaptor
4788  __del__ = lambda self: None
4789 _ParticleAdaptor_swigregister = _IMP_kernel._ParticleAdaptor_swigregister
4790 _ParticleAdaptor_swigregister(_ParticleAdaptor)
4791 
4792 class _DependencyGraphVertexIndex(object):
4793  """Proxy of C++ IMP::DependencyGraphVertexIndex class."""
4794 
4795  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4796  __repr__ = _swig_repr
4797 
4798  def __init__(self):
4799  """__init__(IMP::DependencyGraphVertexIndex self) -> _DependencyGraphVertexIndex"""
4800  this = _IMP_kernel.new__DependencyGraphVertexIndex()
4801  try:
4802  self.this.append(this)
4803  except __builtin__.Exception:
4804  self.this = this
4805  __swig_destroy__ = _IMP_kernel.delete__DependencyGraphVertexIndex
4806  __del__ = lambda self: None
4807 _DependencyGraphVertexIndex_swigregister = _IMP_kernel._DependencyGraphVertexIndex_swigregister
4808 _DependencyGraphVertexIndex_swigregister(_DependencyGraphVertexIndex)
4809 
4810 
4811 def show_as_graphviz(name, out):
4812  """show_as_graphviz(IMP::DependencyGraph const & name, TextOutput out)"""
4813  return _IMP_kernel.show_as_graphviz(name, out)
4814 
4815 def get_vertex_index(g):
4816  """get_vertex_index(IMP::DependencyGraph const & g) -> _DependencyGraphVertexIndex"""
4817  return _IMP_kernel.get_vertex_index(g)
4818 
4819 def get_dependency_graph(m):
4820  """get_dependency_graph(Model m) -> IMP::DependencyGraph"""
4821  return _IMP_kernel.get_dependency_graph(m)
4822 
4824  """get_pruned_dependency_graph(Model m) -> IMP::DependencyGraph"""
4825  return _IMP_kernel.get_pruned_dependency_graph(m)
4826 
4827 def get_required_score_states(*args):
4828  """
4829  get_required_score_states(IMP::ModelObjectsTemp const & mos, IMP::ScoreStatesTemp exclude) -> IMP::ScoreStatesTemp
4830  get_required_score_states(IMP::ModelObjectsTemp const & mos) -> IMP::ScoreStatesTemp
4831  get_required_score_states(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ScoreStatesTemp
4832  """
4833  return _IMP_kernel.get_required_score_states(*args)
4834 
4835 def get_dependent_particles(p, all, dg, index):
4836  """get_dependent_particles(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ParticlesTemp"""
4837  return _IMP_kernel.get_dependent_particles(p, all, dg, index)
4838 
4839 def get_dependent_restraints(m, pi):
4840  """get_dependent_restraints(Model m, ParticleIndex pi) -> IMP::RestraintsTemp"""
4841  return _IMP_kernel.get_dependent_restraints(m, pi)
4842 class ScoringFunction(ModelObject):
4843  """Proxy of C++ IMP::ScoringFunction class."""
4844 
4845  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4846 
4847  def do_add_score_and_derivatives(self, sa, ss):
4848  """do_add_score_and_derivatives(ScoringFunction self, ScoreAccumulator sa, IMP::ScoreStatesTemp const & ss)"""
4849  return _IMP_kernel.ScoringFunction_do_add_score_and_derivatives(self, sa, ss)
4850 
4851 
4852  def get_score_accumulator_if_below(self, deriv, max):
4853  """get_score_accumulator_if_below(ScoringFunction self, bool deriv, double max) -> ScoreAccumulator"""
4854  return _IMP_kernel.ScoringFunction_get_score_accumulator_if_below(self, deriv, max)
4855 
4856 
4857  def get_score_accumulator_if_good(self, deriv):
4858  """get_score_accumulator_if_good(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
4859  return _IMP_kernel.ScoringFunction_get_score_accumulator_if_good(self, deriv)
4860 
4861 
4862  def get_score_accumulator(self, deriv):
4863  """get_score_accumulator(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
4864  return _IMP_kernel.ScoringFunction_get_score_accumulator(self, deriv)
4865 
4866 
4867  def __init__(self, m, name):
4868  """__init__(IMP::ScoringFunction self, Model m, std::string name) -> ScoringFunction"""
4869  if self.__class__ == ScoringFunction:
4870  _self = None
4871  else:
4872  _self = self
4873  this = _IMP_kernel.new_ScoringFunction(_self, m, name)
4874  try:
4875  self.this.append(this)
4876  except __builtin__.Exception:
4877  self.this = this
4878 
4879  if self.__class__ != ScoringFunction:
4880  _director_objects.register(self)
4881 
4882 
4883 
4884 
4885  def do_get_outputs(self):
4886  """do_get_outputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
4887  return _IMP_kernel.ScoringFunction_do_get_outputs(self)
4888 
4889 
4890  def evaluate_if_good(self, derivatives):
4891  """evaluate_if_good(ScoringFunction self, bool derivatives) -> double"""
4892  return _IMP_kernel.ScoringFunction_evaluate_if_good(self, derivatives)
4893 
4894 
4895  def evaluate(self, derivatives):
4896  """evaluate(ScoringFunction self, bool derivatives) -> double"""
4897  return _IMP_kernel.ScoringFunction_evaluate(self, derivatives)
4898 
4899 
4900  def evaluate_if_below(self, derivatives, max):
4901  """evaluate_if_below(ScoringFunction self, bool derivatives, double max) -> double"""
4902  return _IMP_kernel.ScoringFunction_evaluate_if_below(self, derivatives, max)
4903 
4904 
4905  def get_had_good_score(self):
4906  """get_had_good_score(ScoringFunction self) -> bool"""
4907  return _IMP_kernel.ScoringFunction_get_had_good_score(self)
4908 
4909 
4910  def get_last_score(self):
4911  """get_last_score(ScoringFunction self) -> double"""
4912  return _IMP_kernel.ScoringFunction_get_last_score(self)
4913 
4914 
4915  def create_restraints(self):
4916  """create_restraints(ScoringFunction self) -> IMP::Restraints"""
4917  return _IMP_kernel.ScoringFunction_create_restraints(self)
4918 
4919 
4920  def __str__(self):
4921  """__str__(ScoringFunction self) -> std::string"""
4922  return _IMP_kernel.ScoringFunction___str__(self)
4923 
4924 
4925  def __repr__(self):
4926  """__repr__(ScoringFunction self) -> std::string"""
4927  return _IMP_kernel.ScoringFunction___repr__(self)
4928 
4929 
4930  @staticmethod
4931  def get_from(o):
4932  return _object_cast_to_ScoringFunction(o)
4933 
4934 
4935  def get_type_name(self):
4936  return self.__class__.__name__
4937  def do_show(self, out):
4938  pass
4939  def get_version_info(self):
4940  if"IMP" == "IMP":
4941  return VersionInfo(self.__module__,
4942  __import__(self.__module__).get_module_version())
4943  else:
4944  return IMP.VersionInfo(self.__module__,
4945  __import__(self.__module__).get_module_version())
4946  @staticmethod
4947  def get_from(o):
4948  return _object_cast_to_ScoringFunction(o)
4949 
4950  __swig_destroy__ = _IMP_kernel.delete_ScoringFunction
4951  __del__ = lambda self: None
4952  def __disown__(self):
4953  self.this.disown()
4954  _IMP_kernel.disown_ScoringFunction(self)
4955  return weakref_proxy(self)
4956 
4957  def do_destroy(self):
4958  """do_destroy(ScoringFunction self)"""
4959  return _IMP_kernel.ScoringFunction_do_destroy(self)
4960 
4961 
4962  def handle_set_has_required_score_states(self, arg0):
4963  """handle_set_has_required_score_states(ScoringFunction self, bool arg0)"""
4964  return _IMP_kernel.ScoringFunction_handle_set_has_required_score_states(self, arg0)
4965 
4966 
4967  def do_get_inputs(self):
4968  """do_get_inputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
4969  return _IMP_kernel.ScoringFunction_do_get_inputs(self)
4970 
4971 
4972  def do_get_interactions(self):
4973  """do_get_interactions(ScoringFunction self) -> IMP::ModelObjectsTemps"""
4974  return _IMP_kernel.ScoringFunction_do_get_interactions(self)
4975 
4976 ScoringFunction_swigregister = _IMP_kernel.ScoringFunction_swigregister
4977 ScoringFunction_swigregister(ScoringFunction)
4978 
4979 
4980 def create_decomposition(*args):
4981  """
4982  create_decomposition(IMP::RestraintsTemp const & rs) -> IMP::Restraints
4983  create_decomposition(ScoringFunction sf) -> IMP::ScoringFunctions
4984  """
4985  return _IMP_kernel.create_decomposition(*args)
4986 class _ScoringFunctionAdaptor(_InputAdaptor):
4987  """Proxy of C++ IMP::ScoringFunctionAdaptor class."""
4988 
4989  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4990  __repr__ = _swig_repr
4991 
4992  def __init__(self, *args):
4993  """
4994  __init__(IMP::ScoringFunctionAdaptor self) -> _ScoringFunctionAdaptor
4995  __init__(IMP::ScoringFunctionAdaptor self, ScoringFunction sf) -> _ScoringFunctionAdaptor
4996  __init__(IMP::ScoringFunctionAdaptor self, IMP::RestraintsTemp const & sf) -> _ScoringFunctionAdaptor
4997  __init__(IMP::ScoringFunctionAdaptor self, IMP::Restraints const & sf) -> _ScoringFunctionAdaptor
4998  __init__(IMP::ScoringFunctionAdaptor self, Restraint sf) -> _ScoringFunctionAdaptor
4999  """
5000  this = _IMP_kernel.new__ScoringFunctionAdaptor(*args)
5001  try:
5002  self.this.append(this)
5003  except __builtin__.Exception:
5004  self.this = this
5005  __swig_destroy__ = _IMP_kernel.delete__ScoringFunctionAdaptor
5006  __del__ = lambda self: None
5007 _ScoringFunctionAdaptor_swigregister = _IMP_kernel._ScoringFunctionAdaptor_swigregister
5008 _ScoringFunctionAdaptor_swigregister(_ScoringFunctionAdaptor)
5009 
5010 
5011 def show_restraint_hierarchy(*args):
5012  """
5013  show_restraint_hierarchy(_ScoringFunctionAdaptor rs, _ostream out)
5014  show_restraint_hierarchy(_ScoringFunctionAdaptor rs)
5015  """
5016  return _IMP_kernel.show_restraint_hierarchy(*args)
5017 class Undecorator(Object):
5018  """Proxy of C++ IMP::Undecorator class."""
5019 
5020  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5021 
5022  def __init__(self, m, name):
5023  """__init__(IMP::Undecorator self, Model m, std::string name) -> Undecorator"""
5024  if self.__class__ == Undecorator:
5025  _self = None
5026  else:
5027  _self = self
5028  this = _IMP_kernel.new_Undecorator(_self, m, name)
5029  try:
5030  self.this.append(this)
5031  except __builtin__.Exception:
5032  self.this = this
5033 
5034  if self.__class__ != Undecorator:
5035  _director_objects.register(self)
5036 
5037 
5038 
5039 
5040  def teardown(self, pi):
5041  """teardown(Undecorator self, ParticleIndex pi)"""
5042  return _IMP_kernel.Undecorator_teardown(self, pi)
5043 
5044 
5045  def __str__(self):
5046  """__str__(Undecorator self) -> std::string"""
5047  return _IMP_kernel.Undecorator___str__(self)
5048 
5049 
5050  def __repr__(self):
5051  """__repr__(Undecorator self) -> std::string"""
5052  return _IMP_kernel.Undecorator___repr__(self)
5053 
5054 
5055  @staticmethod
5056  def get_from(o):
5057  return _object_cast_to_Undecorator(o)
5058 
5059 
5060  def get_type_name(self):
5061  return self.__class__.__name__
5062  def do_show(self, out):
5063  pass
5064  def get_version_info(self):
5065  if"IMP" == "IMP":
5066  return VersionInfo(self.__module__,
5067  __import__(self.__module__).get_module_version())
5068  else:
5069  return IMP.VersionInfo(self.__module__,
5070  __import__(self.__module__).get_module_version())
5071  @staticmethod
5072  def get_from(o):
5073  return _object_cast_to_Undecorator(o)
5074 
5075  __swig_destroy__ = _IMP_kernel.delete_Undecorator
5076  __del__ = lambda self: None
5077  def __disown__(self):
5078  self.this.disown()
5079  _IMP_kernel.disown_Undecorator(self)
5080  return weakref_proxy(self)
5081 
5082  def do_destroy(self):
5083  """do_destroy(Undecorator self)"""
5084  return _IMP_kernel.Undecorator_do_destroy(self)
5085 
5086 Undecorator_swigregister = _IMP_kernel.Undecorator_swigregister
5087 Undecorator_swigregister(Undecorator)
5088 
5089 class Model(Object):
5090  """Proxy of C++ IMP::Model class."""
5091 
5092  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5093 
5094  def __init__(self, *args):
5095  """
5096  __init__(IMP::Model self, std::string name) -> Model
5097  __init__(IMP::Model self) -> Model
5098  """
5099  this = _IMP_kernel.new_Model(*args)
5100  try:
5101  self.this.append(this)
5102  except __builtin__.Exception:
5103  self.this = this
5104 
5105  def clear_particle_caches(self, pi):
5106  """clear_particle_caches(Model self, ParticleIndex pi)"""
5107  return _IMP_kernel.Model_clear_particle_caches(self, pi)
5108 
5109 
5110  def add_particle(self, name):
5111  """add_particle(Model self, std::string name) -> ParticleIndex"""
5112  return _IMP_kernel.Model_add_particle(self, name)
5113 
5114 
5115  def get_particle_name(self, pi):
5116  """get_particle_name(Model self, ParticleIndex pi) -> std::string"""
5117  return _IMP_kernel.Model_get_particle_name(self, pi)
5118 
5119 
5120  def add_undecorator(self, pi, d):
5121  """add_undecorator(Model self, ParticleIndex pi, Undecorator d)"""
5122  return _IMP_kernel.Model_add_undecorator(self, pi, d)
5123 
5124 
5125  def remove_score_state(self, d):
5126  """remove_score_state(Model self, ScoreState d)"""
5127  return _IMP_kernel.Model_remove_score_state(self, d)
5128 
5129 
5130  def remove_score_states(self, d):
5131  """remove_score_states(Model self, IMP::ScoreStates const & d)"""
5132  return _IMP_kernel.Model_remove_score_states(self, d)
5133 
5134 
5135  def set_score_states(self, ps):
5136  """set_score_states(Model self, IMP::ScoreStates const & ps)"""
5137  return _IMP_kernel.Model_set_score_states(self, ps)
5138 
5139 
5140  def set_score_states_order(self, objs):
5141  """set_score_states_order(Model self, IMP::ScoreStates const & objs)"""
5142  return _IMP_kernel.Model_set_score_states_order(self, objs)
5143 
5144 
5145  def add_score_state(self, obj):
5146  """add_score_state(Model self, ScoreState obj) -> unsigned int"""
5147  return _IMP_kernel.Model_add_score_state(self, obj)
5148 
5149 
5150  def add_score_states(self, objs):
5151  """add_score_states(Model self, IMP::ScoreStates const & objs)"""
5152  return _IMP_kernel.Model_add_score_states(self, objs)
5153 
5154 
5155  def clear_score_states(self):
5156  """clear_score_states(Model self)"""
5157  return _IMP_kernel.Model_clear_score_states(self)
5158 
5159 
5160  def get_number_of_score_states(self):
5161  """get_number_of_score_states(Model self) -> unsigned int"""
5162  return _IMP_kernel.Model_get_number_of_score_states(self)
5163 
5164 
5165  def get_has_score_states(self):
5166  """get_has_score_states(Model self) -> bool"""
5167  return _IMP_kernel.Model_get_has_score_states(self)
5168 
5169 
5170  def get_score_state(self, i):
5171  """get_score_state(Model self, unsigned int i) -> ScoreState"""
5172  return _IMP_kernel.Model_get_score_state(self, i)
5173 
5174 
5175  def get_score_states(self):
5176  """get_score_states(Model self) -> IMP::ScoreStates"""
5177  return _IMP_kernel.Model_get_score_states(self)
5178 
5179 
5180  def reserve_score_states(self, sz):
5181  """reserve_score_states(Model self, unsigned int sz)"""
5182  return _IMP_kernel.Model_reserve_score_states(self, sz)
5183 
5184 
5185  def update(self):
5186  """update(Model self)"""
5187  return _IMP_kernel.Model_update(self)
5188 
5189 
5190  def add_attribute(self, *args):
5191  """
5192  add_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5193  add_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
5194  add_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
5195  add_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
5196  add_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
5197  add_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5198  add_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
5199  add_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5200  """
5201  return _IMP_kernel.Model_add_attribute(self, *args)
5202 
5203 
5204  def remove_attribute(self, *args):
5205  """
5206  remove_attribute(Model self, FloatKey attribute_key, ParticleIndex particle)
5207  remove_attribute(Model self, IntKey attribute_key, ParticleIndex particle)
5208  remove_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle)
5209  remove_attribute(Model self, StringKey attribute_key, ParticleIndex particle)
5210  remove_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle)
5211  remove_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle)
5212  remove_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle)
5213  remove_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle)
5214  """
5215  return _IMP_kernel.Model_remove_attribute(self, *args)
5216 
5217 
5218  def get_has_attribute(self, *args):
5219  """
5220  get_has_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> bool
5221  get_has_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> bool
5222  get_has_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle) -> bool
5223  get_has_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> bool
5224  get_has_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> bool
5225  get_has_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> bool
5226  get_has_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> bool
5227  get_has_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> bool
5228  """
5229  return _IMP_kernel.Model_get_has_attribute(self, *args)
5230 
5231 
5232  def set_attribute(self, *args):
5233  """
5234  set_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5235  set_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
5236  set_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
5237  set_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
5238  set_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
5239  set_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5240  set_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
5241  set_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5242  """
5243  return _IMP_kernel.Model_set_attribute(self, *args)
5244 
5245 
5246  def get_attribute(self, *args):
5247  """
5248  get_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> IMP::Float
5249  get_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> IMP::Int
5250  get_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle) -> IMP::Ints
5251  get_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> IMP::String
5252  get_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> IMP::ParticleIndexes
5253  get_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> ParticleIndex
5254  get_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> Object
5255  get_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> Object
5256  """
5257  return _IMP_kernel.Model_get_attribute(self, *args)
5258 
5259 
5260  def add_cache_attribute(self, *args):
5261  """
5262  add_cache_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5263  add_cache_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
5264  add_cache_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
5265  add_cache_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
5266  add_cache_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
5267  add_cache_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5268  add_cache_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
5269  add_cache_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5270  """
5271  return _IMP_kernel.Model_add_cache_attribute(self, *args)
5272 
5273 
5274  def set_is_optimized(self, arg2, arg3, arg4):
5275  """set_is_optimized(Model self, FloatKey arg2, ParticleIndex arg3, bool arg4)"""
5276  return _IMP_kernel.Model_set_is_optimized(self, arg2, arg3, arg4)
5277 
5278 
5279  def add_to_derivative(self, k, particle, v, da):
5280  """add_to_derivative(Model self, FloatKey k, ParticleIndex particle, double v, DerivativeAccumulator da)"""
5281  return _IMP_kernel.Model_add_to_derivative(self, k, particle, v, da)
5282 
5283 
5284  def get_particle(self, p):
5285  """get_particle(Model self, ParticleIndex p) -> Particle"""
5286  return _IMP_kernel.Model_get_particle(self, p)
5287 
5288 
5289  def get_has_particle(self, p):
5290  """get_has_particle(Model self, ParticleIndex p) -> bool"""
5291  return _IMP_kernel.Model_get_has_particle(self, p)
5292 
5293 
5294  def get_particle_indexes(self):
5295  """get_particle_indexes(Model self) -> IMP::ParticleIndexes"""
5296  return _IMP_kernel.Model_get_particle_indexes(self)
5297 
5298 
5299  def get_model_objects(self):
5300  """get_model_objects(Model self) -> IMP::ModelObjectsTemp"""
5301  return _IMP_kernel.Model_get_model_objects(self)
5302 
5303 
5304  def remove_particle(self, pi):
5305  """remove_particle(Model self, ParticleIndex pi)"""
5306  return _IMP_kernel.Model_remove_particle(self, pi)
5307 
5308 
5309  def add_data(self, mk, o):
5310  """add_data(Model self, ModelKey mk, Object o)"""
5311  return _IMP_kernel.Model_add_data(self, mk, o)
5312 
5313 
5314  def get_data(self, mk):
5315  """get_data(Model self, ModelKey mk) -> Object"""
5316  return _IMP_kernel.Model_get_data(self, mk)
5317 
5318 
5319  def remove_data(self, mk):
5320  """remove_data(Model self, ModelKey mk)"""
5321  return _IMP_kernel.Model_remove_data(self, mk)
5322 
5323 
5324  def get_has_data(self, mk):
5325  """get_has_data(Model self, ModelKey mk) -> bool"""
5326  return _IMP_kernel.Model_get_has_data(self, mk)
5327 
5328 
5329  def get_version_info(self):
5330  """get_version_info(Model self) -> VersionInfo"""
5331  return _IMP_kernel.Model_get_version_info(self)
5332 
5333 
5334  def do_destroy(self):
5335  """do_destroy(Model self)"""
5336  return _IMP_kernel.Model_do_destroy(self)
5337 
5338 
5339  def __str__(self):
5340  """__str__(Model self) -> std::string"""
5341  return _IMP_kernel.Model___str__(self)
5342 
5343 
5344  def __repr__(self):
5345  """__repr__(Model self) -> std::string"""
5346  return _IMP_kernel.Model___repr__(self)
5347 
5348 
5349  @staticmethod
5350  def get_from(o):
5351  return _object_cast_to_Model(o)
5352 
5353 
5354  def _get_ints_numpy(self, k):
5355  return _get_ints_numpy(self, k, self)
5356 
5357  def _get_floats_numpy(self, k):
5358  return _get_floats_numpy(self, k, self)
5359 
5360  def _get_derivatives_numpy(self, k):
5361  return _get_derivatives_numpy(self, k, self)
5362 
5363  def _get_spheres_numpy(self):
5364  return _get_spheres_numpy(self, self)
5365 
5366  def _get_sphere_derivatives_numpy(self):
5367  return _get_sphere_derivatives_numpy(self, self)
5368 
5369 Model_swigregister = _IMP_kernel.Model_swigregister
5370 Model_swigregister(Model)
5371 
5372 class Decorator(_Value):
5373  """Proxy of C++ IMP::Decorator class."""
5374 
5375  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5376  __repr__ = _swig_repr
5377 
5378  def __init__(self, p):
5379  """__init__(IMP::Decorator self, _ParticleAdaptor p) -> Decorator"""
5380  this = _IMP_kernel.new_Decorator(p)
5381  try:
5382  self.this.append(this)
5383  except __builtin__.Exception:
5384  self.this = this
5385 
5386  def __ne__(self, o):
5387  """__ne__(Decorator self, Object o) -> bool"""
5388  return _IMP_kernel.Decorator___ne__(self, o)
5389 
5390 
5391  def __lt__(self, o):
5392  """__lt__(Decorator self, Object o) -> bool"""
5393  return _IMP_kernel.Decorator___lt__(self, o)
5394 
5395 
5396  def __gt__(self, o):
5397  """__gt__(Decorator self, Object o) -> bool"""
5398  return _IMP_kernel.Decorator___gt__(self, o)
5399 
5400 
5401  def __ge__(self, o):
5402  """__ge__(Decorator self, Object o) -> bool"""
5403  return _IMP_kernel.Decorator___ge__(self, o)
5404 
5405 
5406  def __le__(self, o):
5407  """__le__(Decorator self, Object o) -> bool"""
5408  return _IMP_kernel.Decorator___le__(self, o)
5409 
5410 
5411  def get_particle(self):
5412  """get_particle(Decorator self) -> Particle"""
5413  return _IMP_kernel.Decorator_get_particle(self)
5414 
5415 
5416  def get_particle_index(self):
5417  """get_particle_index(Decorator self) -> ParticleIndex"""
5418  return _IMP_kernel.Decorator_get_particle_index(self)
5419 
5420 
5421  def get_model(self):
5422  """get_model(Decorator self) -> Model"""
5423  return _IMP_kernel.Decorator_get_model(self)
5424 
5425 
5426  def get_is_valid(self):
5427  """get_is_valid(Decorator self) -> bool"""
5428  return _IMP_kernel.Decorator_get_is_valid(self)
5429 
5430 
5431  def __hash__(self):
5432  """__hash__(Decorator self) -> std::size_t"""
5433  return _IMP_kernel.Decorator___hash__(self)
5434 
5435 
5436  def __eq__(self, *args):
5437  """
5438  __eq__(Decorator self, Object o) -> bool
5439  __eq__(Decorator self, Decorator o) -> bool
5440  __eq__(Decorator self, Particle o) -> bool
5441  """
5442  return _IMP_kernel.Decorator___eq__(self, *args)
5443 
5444 
5445  def __bool__(self):
5446  """__bool__(Decorator self) -> bool"""
5447  return _IMP_kernel.Decorator___bool__(self)
5448 
5449 
5450  __nonzero__ = __bool__
5451 
5452  __swig_destroy__ = _IMP_kernel.delete_Decorator
5453  __del__ = lambda self: None
5454 Decorator_swigregister = _IMP_kernel.Decorator_swigregister
5455 Decorator_swigregister(Decorator)
5456 
5457 
5458 def check_particle(m, pi):
5459  """check_particle(Model m, ParticleIndex pi)"""
5460  return _IMP_kernel.check_particle(m, pi)
5461 class UnaryFunction(Object):
5462  """Proxy of C++ IMP::UnaryFunction class."""
5463 
5464  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5465 
5466  def __init__(self, *args):
5467  """
5468  __init__(IMP::UnaryFunction self, std::string name) -> UnaryFunction
5469  __init__(IMP::UnaryFunction self) -> UnaryFunction
5470  """
5471  if self.__class__ == UnaryFunction:
5472  _self = None
5473  else:
5474  _self = self
5475  this = _IMP_kernel.new_UnaryFunction(_self, *args)
5476  try:
5477  self.this.append(this)
5478  except __builtin__.Exception:
5479  self.this = this
5480 
5481  if self.__class__ != UnaryFunction:
5482  _director_objects.register(self)
5483 
5484 
5485 
5486 
5487  def evaluate(self, feature):
5488  """evaluate(UnaryFunction self, double feature) -> double"""
5489  return _IMP_kernel.UnaryFunction_evaluate(self, feature)
5490 
5491 
5492  def evaluate_with_derivative(self, feature):
5493  """evaluate_with_derivative(UnaryFunction self, double feature) -> IMP::DerivativePair"""
5494  return _IMP_kernel.UnaryFunction_evaluate_with_derivative(self, feature)
5495 
5496  __swig_destroy__ = _IMP_kernel.delete_UnaryFunction
5497  __del__ = lambda self: None
5498 
5499  def __str__(self):
5500  """__str__(UnaryFunction self) -> std::string"""
5501  return _IMP_kernel.UnaryFunction___str__(self)
5502 
5503 
5504  def __repr__(self):
5505  """__repr__(UnaryFunction self) -> std::string"""
5506  return _IMP_kernel.UnaryFunction___repr__(self)
5507 
5508 
5509  @staticmethod
5510  def get_from(o):
5511  return _object_cast_to_UnaryFunction(o)
5512 
5513 
5514  def get_type_name(self):
5515  return self.__class__.__name__
5516  def do_show(self, out):
5517  pass
5518  def get_version_info(self):
5519  if"IMP" == "IMP":
5520  return VersionInfo(self.__module__,
5521  __import__(self.__module__).get_module_version())
5522  else:
5523  return IMP.VersionInfo(self.__module__,
5524  __import__(self.__module__).get_module_version())
5525  @staticmethod
5526  def get_from(o):
5527  return _object_cast_to_UnaryFunction(o)
5528 
5529  def __disown__(self):
5530  self.this.disown()
5531  _IMP_kernel.disown_UnaryFunction(self)
5532  return weakref_proxy(self)
5533 
5534  def do_destroy(self):
5535  """do_destroy(UnaryFunction self)"""
5536  return _IMP_kernel.UnaryFunction_do_destroy(self)
5537 
5538 UnaryFunction_swigregister = _IMP_kernel.UnaryFunction_swigregister
5539 UnaryFunction_swigregister(UnaryFunction)
5540 
5541 class OptimizerState(ModelObject):
5542  """Proxy of C++ IMP::OptimizerState class."""
5543 
5544  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5545 
5546  def __init__(self, m, name):
5547  """__init__(IMP::OptimizerState self, Model m, std::string name) -> OptimizerState"""
5548  if self.__class__ == OptimizerState:
5549  _self = None
5550  else:
5551  _self = self
5552  this = _IMP_kernel.new_OptimizerState(_self, m, name)
5553  try:
5554  self.this.append(this)
5555  except __builtin__.Exception:
5556  self.this = this
5557 
5558  if self.__class__ != OptimizerState:
5559  _director_objects.register(self)
5560 
5561 
5562 
5563 
5564  def update(self):
5565  """update(OptimizerState self)"""
5566  return _IMP_kernel.OptimizerState_update(self)
5567 
5568 
5569  def set_is_optimizing(self, arg0):
5570  """set_is_optimizing(OptimizerState self, bool arg0)"""
5571  return _IMP_kernel.OptimizerState_set_is_optimizing(self, arg0)
5572 
5573 
5574  def get_optimizer(self):
5575  """get_optimizer(OptimizerState self) -> Optimizer"""
5576  return _IMP_kernel.OptimizerState_get_optimizer(self)
5577 
5578 
5579  def set_period(self, p):
5580  """set_period(OptimizerState self, unsigned int p)"""
5581  return _IMP_kernel.OptimizerState_set_period(self, p)
5582 
5583 
5584  def get_period(self):
5585  """get_period(OptimizerState self) -> unsigned int"""
5586  return _IMP_kernel.OptimizerState_get_period(self)
5587 
5588 
5589  def reset(self):
5590  """reset(OptimizerState self)"""
5591  return _IMP_kernel.OptimizerState_reset(self)
5592 
5593 
5594  def update_always(self):
5595  """update_always(OptimizerState self)"""
5596  return _IMP_kernel.OptimizerState_update_always(self)
5597 
5598 
5599  def get_number_of_updates(self):
5600  """get_number_of_updates(OptimizerState self) -> unsigned int"""
5601  return _IMP_kernel.OptimizerState_get_number_of_updates(self)
5602 
5603 
5604  def set_number_of_updates(self, n):
5605  """set_number_of_updates(OptimizerState self, unsigned int n)"""
5606  return _IMP_kernel.OptimizerState_set_number_of_updates(self, n)
5607 
5608  __swig_destroy__ = _IMP_kernel.delete_OptimizerState
5609  __del__ = lambda self: None
5610 
5611  def do_update(self, arg0):
5612  """do_update(OptimizerState self, unsigned int arg0)"""
5613  return _IMP_kernel.OptimizerState_do_update(self, arg0)
5614 
5615 
5616  def do_set_is_optimizing(self, arg0):
5617  """do_set_is_optimizing(OptimizerState self, bool arg0)"""
5618  return _IMP_kernel.OptimizerState_do_set_is_optimizing(self, arg0)
5619 
5620 
5621  def do_get_inputs(self):
5622  """do_get_inputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
5623  return _IMP_kernel.OptimizerState_do_get_inputs(self)
5624 
5625 
5626  def do_get_outputs(self):
5627  """do_get_outputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
5628  return _IMP_kernel.OptimizerState_do_get_outputs(self)
5629 
5630 
5631  def __str__(self):
5632  """__str__(OptimizerState self) -> std::string"""
5633  return _IMP_kernel.OptimizerState___str__(self)
5634 
5635 
5636  def __repr__(self):
5637  """__repr__(OptimizerState self) -> std::string"""
5638  return _IMP_kernel.OptimizerState___repr__(self)
5639 
5640 
5641  @staticmethod
5642  def get_from(o):
5643  return _object_cast_to_OptimizerState(o)
5644 
5645 
5646  def get_type_name(self):
5647  return self.__class__.__name__
5648  def do_show(self, out):
5649  pass
5650  def get_version_info(self):
5651  if"IMP" == "IMP":
5652  return VersionInfo(self.__module__,
5653  __import__(self.__module__).get_module_version())
5654  else:
5655  return IMP.VersionInfo(self.__module__,
5656  __import__(self.__module__).get_module_version())
5657  @staticmethod
5658  def get_from(o):
5659  return _object_cast_to_OptimizerState(o)
5660 
5661  def __disown__(self):
5662  self.this.disown()
5663  _IMP_kernel.disown_OptimizerState(self)
5664  return weakref_proxy(self)
5665 
5666  def do_destroy(self):
5667  """do_destroy(OptimizerState self)"""
5668  return _IMP_kernel.OptimizerState_do_destroy(self)
5669 
5670 
5671  def handle_set_has_required_score_states(self, arg0):
5672  """handle_set_has_required_score_states(OptimizerState self, bool arg0)"""
5673  return _IMP_kernel.OptimizerState_handle_set_has_required_score_states(self, arg0)
5674 
5675 
5676  def do_get_interactions(self):
5677  """do_get_interactions(OptimizerState self) -> IMP::ModelObjectsTemps"""
5678  return _IMP_kernel.OptimizerState_do_get_interactions(self)
5679 
5680 OptimizerState_swigregister = _IMP_kernel.OptimizerState_swigregister
5681 OptimizerState_swigregister(OptimizerState)
5682 
5683 class Refiner(_ParticleInputs, Object):
5684  """Proxy of C++ IMP::Refiner class."""
5685 
5686  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5687 
5688  def __init__(self, *args):
5689  """
5690  __init__(IMP::Refiner self, std::string name, bool is_by_ref=False) -> Refiner
5691  __init__(IMP::Refiner self, std::string name) -> Refiner
5692  __init__(IMP::Refiner self) -> Refiner
5693  """
5694  if self.__class__ == Refiner:
5695  _self = None
5696  else:
5697  _self = self
5698  this = _IMP_kernel.new_Refiner(_self, *args)
5699  try:
5700  self.this.append(this)
5701  except __builtin__.Exception:
5702  self.this = this
5703 
5704  if self.__class__ != Refiner:
5705  _director_objects.register(self)
5706 
5707 
5708 
5709 
5710  def get_can_refine(self, arg0):
5711  """get_can_refine(Refiner self, Particle arg0) -> bool"""
5712  return _IMP_kernel.Refiner_get_can_refine(self, arg0)
5713 
5714 
5715  def get_refined_indexes(self, m, pi):
5716  """get_refined_indexes(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes"""
5717  return _IMP_kernel.Refiner_get_refined_indexes(self, m, pi)
5718 
5719 
5720  def get_refined_indexes_by_ref(self, m, pi):
5721  """get_refined_indexes_by_ref(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes const &"""
5722  return _IMP_kernel.Refiner_get_refined_indexes_by_ref(self, m, pi)
5723 
5724 
5725  def get_is_by_ref_supported(self):
5726  """get_is_by_ref_supported(Refiner self) -> bool"""
5727  return _IMP_kernel.Refiner_get_is_by_ref_supported(self)
5728 
5729 
5730  def get_refined(self, *args):
5731  """
5732  get_refined(Refiner self, Particle a) -> IMP::ParticlesTemp const
5733  get_refined(Refiner self, Particle a, unsigned int i) -> Particle
5734  """
5735  return _IMP_kernel.Refiner_get_refined(self, *args)
5736 
5737 
5738  def get_number_of_refined(self, a):
5739  """get_number_of_refined(Refiner self, Particle a) -> unsigned int"""
5740  return _IMP_kernel.Refiner_get_number_of_refined(self, a)
5741 
5742 
5743  def __str__(self):
5744  """__str__(Refiner self) -> std::string"""
5745  return _IMP_kernel.Refiner___str__(self)
5746 
5747 
5748  def __repr__(self):
5749  """__repr__(Refiner self) -> std::string"""
5750  return _IMP_kernel.Refiner___repr__(self)
5751 
5752 
5753  @staticmethod
5754  def get_from(o):
5755  return _object_cast_to_Refiner(o)
5756 
5757 
5758  def get_type_name(self):
5759  return self.__class__.__name__
5760  def do_show(self, out):
5761  pass
5762  def get_version_info(self):
5763  if"IMP" == "IMP":
5764  return VersionInfo(self.__module__,
5765  __import__(self.__module__).get_module_version())
5766  else:
5767  return IMP.VersionInfo(self.__module__,
5768  __import__(self.__module__).get_module_version())
5769  @staticmethod
5770  def get_from(o):
5771  return _object_cast_to_Refiner(o)
5772 
5773  __swig_destroy__ = _IMP_kernel.delete_Refiner
5774  __del__ = lambda self: None
5775  def __disown__(self):
5776  self.this.disown()
5777  _IMP_kernel.disown_Refiner(self)
5778  return weakref_proxy(self)
5779 
5780  def do_get_inputs(self, m, pis):
5781  """do_get_inputs(Refiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5782  return _IMP_kernel.Refiner_do_get_inputs(self, m, pis)
5783 
5784 
5785  def do_destroy(self):
5786  """do_destroy(Refiner self)"""
5787  return _IMP_kernel.Refiner_do_destroy(self)
5788 
5789 Refiner_swigregister = _IMP_kernel.Refiner_swigregister
5790 Refiner_swigregister(Refiner)
5791 
5792 class Optimizer(ModelObject):
5793  """Proxy of C++ IMP::Optimizer class."""
5794 
5795  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5796 
5797  def set_is_optimizing_states(self, tf):
5798  """set_is_optimizing_states(Optimizer self, bool tf)"""
5799  return _IMP_kernel.Optimizer_set_is_optimizing_states(self, tf)
5800 
5801 
5802  def get_optimizer_state_inputs(self):
5803  """get_optimizer_state_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5804  return _IMP_kernel.Optimizer_get_optimizer_state_inputs(self)
5805 
5806 
5807  def do_get_inputs(self):
5808  """do_get_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5809  return _IMP_kernel.Optimizer_do_get_inputs(self)
5810 
5811 
5812  def do_get_outputs(self):
5813  """do_get_outputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5814  return _IMP_kernel.Optimizer_do_get_outputs(self)
5815 
5816 
5817  def __init__(self, *args):
5818  """
5819  __init__(IMP::Optimizer self, Model m, std::string name) -> Optimizer
5820  __init__(IMP::Optimizer self, Model m) -> Optimizer
5821  """
5822  if self.__class__ == Optimizer:
5823  _self = None
5824  else:
5825  _self = self
5826  this = _IMP_kernel.new_Optimizer(_self, *args)
5827  try:
5828  self.this.append(this)
5829  except __builtin__.Exception:
5830  self.this = this
5831 
5832  if self.__class__ != Optimizer:
5833  _director_objects.register(self)
5834 
5835 
5836 
5837 
5838  def optimize(self, max_steps):
5839  """optimize(Optimizer self, unsigned int max_steps) -> double"""
5840  return _IMP_kernel.Optimizer_optimize(self, max_steps)
5841 
5842 
5843  def set_stop_on_good_score(self, tf):
5844  """set_stop_on_good_score(Optimizer self, bool tf)"""
5845  return _IMP_kernel.Optimizer_set_stop_on_good_score(self, tf)
5846 
5847 
5848  def get_stop_on_good_score(self):
5849  """get_stop_on_good_score(Optimizer self) -> bool"""
5850  return _IMP_kernel.Optimizer_get_stop_on_good_score(self)
5851 
5852 
5853  def get_last_score(self):
5854  """get_last_score(Optimizer self) -> double"""
5855  return _IMP_kernel.Optimizer_get_last_score(self)
5856 
5857 
5858  def get_scoring_function(self):
5859  """get_scoring_function(Optimizer self) -> ScoringFunction"""
5860  return _IMP_kernel.Optimizer_get_scoring_function(self)
5861 
5862 
5863  def remove_optimizer_state(self, d):
5864  """remove_optimizer_state(Optimizer self, OptimizerState d)"""
5865  return _IMP_kernel.Optimizer_remove_optimizer_state(self, d)
5866 
5867 
5868  def remove_optimizer_states(self, d):
5869  """remove_optimizer_states(Optimizer self, IMP::OptimizerStates const & d)"""
5870  return _IMP_kernel.Optimizer_remove_optimizer_states(self, d)
5871 
5872 
5873  def set_optimizer_states(self, ps):
5874  """set_optimizer_states(Optimizer self, IMP::OptimizerStates const & ps)"""
5875  return _IMP_kernel.Optimizer_set_optimizer_states(self, ps)
5876 
5877 
5878  def set_optimizer_states_order(self, objs):
5879  """set_optimizer_states_order(Optimizer self, IMP::OptimizerStates const & objs)"""
5880  return _IMP_kernel.Optimizer_set_optimizer_states_order(self, objs)
5881 
5882 
5883  def add_optimizer_state(self, obj):
5884  """add_optimizer_state(Optimizer self, OptimizerState obj) -> unsigned int"""
5885  return _IMP_kernel.Optimizer_add_optimizer_state(self, obj)
5886 
5887 
5888  def add_optimizer_states(self, objs):
5889  """add_optimizer_states(Optimizer self, IMP::OptimizerStates const & objs)"""
5890  return _IMP_kernel.Optimizer_add_optimizer_states(self, objs)
5891 
5892 
5893  def clear_optimizer_states(self):
5894  """clear_optimizer_states(Optimizer self)"""
5895  return _IMP_kernel.Optimizer_clear_optimizer_states(self)
5896 
5897 
5898  def get_number_of_optimizer_states(self):
5899  """get_number_of_optimizer_states(Optimizer self) -> unsigned int"""
5900  return _IMP_kernel.Optimizer_get_number_of_optimizer_states(self)
5901 
5902 
5903  def get_has_optimizer_states(self):
5904  """get_has_optimizer_states(Optimizer self) -> bool"""
5905  return _IMP_kernel.Optimizer_get_has_optimizer_states(self)
5906 
5907 
5908  def get_optimizer_state(self, i):
5909  """get_optimizer_state(Optimizer self, unsigned int i) -> OptimizerState"""
5910  return _IMP_kernel.Optimizer_get_optimizer_state(self, i)
5911 
5912 
5913  def get_optimizer_states(self):
5914  """get_optimizer_states(Optimizer self) -> IMP::OptimizerStates"""
5915  return _IMP_kernel.Optimizer_get_optimizer_states(self)
5916 
5917 
5918  def reserve_optimizer_states(self, sz):
5919  """reserve_optimizer_states(Optimizer self, unsigned int sz)"""
5920  return _IMP_kernel.Optimizer_reserve_optimizer_states(self, sz)
5921 
5922 
5923  def set_scoring_function(self, sf):
5924  """set_scoring_function(Optimizer self, _ScoringFunctionAdaptor sf)"""
5925  return _IMP_kernel.Optimizer_set_scoring_function(self, sf)
5926 
5927  __swig_destroy__ = _IMP_kernel.delete_Optimizer
5928  def __del__(self):
5929  """__del__(IMP::Optimizer self)"""
5930 
5931  _director_objects.cleanup()
5932 
5933 
5934  pass
5935 
5936 
5937  def do_optimize(self, ns):
5938  """do_optimize(Optimizer self, unsigned int ns) -> double"""
5939  return _IMP_kernel.Optimizer_do_optimize(self, ns)
5940 
5941 
5942  def update_states(self):
5943  """update_states(Optimizer self)"""
5944  return _IMP_kernel.Optimizer_update_states(self)
5945 
5946 
5947  def __str__(self):
5948  """__str__(Optimizer self) -> std::string"""
5949  return _IMP_kernel.Optimizer___str__(self)
5950 
5951 
5952  def __repr__(self):
5953  """__repr__(Optimizer self) -> std::string"""
5954  return _IMP_kernel.Optimizer___repr__(self)
5955 
5956 
5957  @staticmethod
5958  def get_from(o):
5959  return _object_cast_to_Optimizer(o)
5960 
5961 
5962  def get_type_name(self):
5963  return self.__class__.__name__
5964  def do_show(self, out):
5965  pass
5966  def get_version_info(self):
5967  if"IMP" == "IMP":
5968  return VersionInfo(self.__module__,
5969  __import__(self.__module__).get_module_version())
5970  else:
5971  return IMP.VersionInfo(self.__module__,
5972  __import__(self.__module__).get_module_version())
5973  @staticmethod
5974  def get_from(o):
5975  return _object_cast_to_Optimizer(o)
5976 
5977  def __disown__(self):
5978  self.this.disown()
5979  _IMP_kernel.disown_Optimizer(self)
5980  return weakref_proxy(self)
5981 
5982  def do_destroy(self):
5983  """do_destroy(Optimizer self)"""
5984  return _IMP_kernel.Optimizer_do_destroy(self)
5985 
5986 
5987  def handle_set_has_required_score_states(self, arg0):
5988  """handle_set_has_required_score_states(Optimizer self, bool arg0)"""
5989  return _IMP_kernel.Optimizer_handle_set_has_required_score_states(self, arg0)
5990 
5991 
5992  def do_get_interactions(self):
5993  """do_get_interactions(Optimizer self) -> IMP::ModelObjectsTemps"""
5994  return _IMP_kernel.Optimizer_do_get_interactions(self)
5995 
5996 Optimizer_swigregister = _IMP_kernel.Optimizer_swigregister
5997 Optimizer_swigregister(Optimizer)
5998 
5999 class AttributeOptimizer(Optimizer):
6000  """Proxy of C++ IMP::AttributeOptimizer class."""
6001 
6002  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6003 
6004  def __init__(self, *args):
6005  """
6006  __init__(IMP::AttributeOptimizer self, Model m, std::string name) -> AttributeOptimizer
6007  __init__(IMP::AttributeOptimizer self, Model m) -> AttributeOptimizer
6008  """
6009  if self.__class__ == AttributeOptimizer:
6010  _self = None
6011  else:
6012  _self = self
6013  this = _IMP_kernel.new_AttributeOptimizer(_self, *args)
6014  try:
6015  self.this.append(this)
6016  except __builtin__.Exception:
6017  self.this = this
6018 
6019  if self.__class__ != AttributeOptimizer:
6020  _director_objects.register(self)
6021 
6022 
6023 
6024 
6025  def get_optimized_attributes(self):
6026  """get_optimized_attributes(AttributeOptimizer self) -> IMP::FloatIndexes"""
6027  return _IMP_kernel.AttributeOptimizer_get_optimized_attributes(self)
6028 
6029 
6030  def set_value(self, fi, v):
6031  """set_value(AttributeOptimizer self, FloatIndex fi, double v)"""
6032  return _IMP_kernel.AttributeOptimizer_set_value(self, fi, v)
6033 
6034 
6035  def get_value(self, fi):
6036  """get_value(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
6037  return _IMP_kernel.AttributeOptimizer_get_value(self, fi)
6038 
6039 
6040  def get_derivative(self, fi):
6041  """get_derivative(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
6042  return _IMP_kernel.AttributeOptimizer_get_derivative(self, fi)
6043 
6044 
6045  def get_width(self, k):
6046  """get_width(AttributeOptimizer self, FloatKey k) -> double"""
6047  return _IMP_kernel.AttributeOptimizer_get_width(self, k)
6048 
6049 
6050  def set_scaled_value(self, fi, v):
6051  """set_scaled_value(AttributeOptimizer self, FloatIndex fi, IMP::Float v)"""
6052  return _IMP_kernel.AttributeOptimizer_set_scaled_value(self, fi, v)
6053 
6054 
6055  def get_scaled_value(self, fi):
6056  """get_scaled_value(AttributeOptimizer self, FloatIndex fi) -> double"""
6057  return _IMP_kernel.AttributeOptimizer_get_scaled_value(self, fi)
6058 
6059 
6060  def get_scaled_derivative(self, fi):
6061  """get_scaled_derivative(AttributeOptimizer self, FloatIndex fi) -> double"""
6062  return _IMP_kernel.AttributeOptimizer_get_scaled_derivative(self, fi)
6063 
6064 
6065  def clear_range_cache(self):
6066  """clear_range_cache(AttributeOptimizer self)"""
6067  return _IMP_kernel.AttributeOptimizer_clear_range_cache(self)
6068 
6069 
6070  def __str__(self):
6071  """__str__(AttributeOptimizer self) -> std::string"""
6072  return _IMP_kernel.AttributeOptimizer___str__(self)
6073 
6074 
6075  def __repr__(self):
6076  """__repr__(AttributeOptimizer self) -> std::string"""
6077  return _IMP_kernel.AttributeOptimizer___repr__(self)
6078 
6079 
6080  @staticmethod
6081  def get_from(o):
6082  return _object_cast_to_AttributeOptimizer(o)
6083 
6084 
6085  def get_type_name(self):
6086  return self.__class__.__name__
6087  def do_show(self, out):
6088  pass
6089  def get_version_info(self):
6090  if"IMP" == "IMP":
6091  return VersionInfo(self.__module__,
6092  __import__(self.__module__).get_module_version())
6093  else:
6094  return IMP.VersionInfo(self.__module__,
6095  __import__(self.__module__).get_module_version())
6096  @staticmethod
6097  def get_from(o):
6098  return _object_cast_to_AttributeOptimizer(o)
6099 
6100  __swig_destroy__ = _IMP_kernel.delete_AttributeOptimizer
6101  __del__ = lambda self: None
6102  def __disown__(self):
6103  self.this.disown()
6104  _IMP_kernel.disown_AttributeOptimizer(self)
6105  return weakref_proxy(self)
6106 
6107  def do_destroy(self):
6108  """do_destroy(AttributeOptimizer self)"""
6109  return _IMP_kernel.AttributeOptimizer_do_destroy(self)
6110 
6111 
6112  def handle_set_has_required_score_states(self, arg0):
6113  """handle_set_has_required_score_states(AttributeOptimizer self, bool arg0)"""
6114  return _IMP_kernel.AttributeOptimizer_handle_set_has_required_score_states(self, arg0)
6115 
6116 
6117  def do_get_inputs(self):
6118  """do_get_inputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
6119  return _IMP_kernel.AttributeOptimizer_do_get_inputs(self)
6120 
6121 
6122  def do_get_outputs(self):
6123  """do_get_outputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
6124  return _IMP_kernel.AttributeOptimizer_do_get_outputs(self)
6125 
6126 
6127  def do_get_interactions(self):
6128  """do_get_interactions(AttributeOptimizer self) -> IMP::ModelObjectsTemps"""
6129  return _IMP_kernel.AttributeOptimizer_do_get_interactions(self)
6130 
6131 
6132  def do_optimize(self, ns):
6133  """do_optimize(AttributeOptimizer self, unsigned int ns) -> double"""
6134  return _IMP_kernel.AttributeOptimizer_do_optimize(self, ns)
6135 
6136 AttributeOptimizer_swigregister = _IMP_kernel.AttributeOptimizer_swigregister
6137 AttributeOptimizer_swigregister(AttributeOptimizer)
6138 
6139 class ConfigurationSet(Object):
6140  """Proxy of C++ IMP::ConfigurationSet 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::ConfigurationSet self, Model m, std::string name) -> ConfigurationSet
6147  __init__(IMP::ConfigurationSet self, Model m) -> ConfigurationSet
6148  """
6149  this = _IMP_kernel.new_ConfigurationSet(*args)
6150  try:
6151  self.this.append(this)
6152  except __builtin__.Exception:
6153  self.this = this
6154 
6155  def save_configuration(self):
6156  """save_configuration(ConfigurationSet self)"""
6157  return _IMP_kernel.ConfigurationSet_save_configuration(self)
6158 
6159 
6160  def get_number_of_configurations(self):
6161  """get_number_of_configurations(ConfigurationSet self) -> unsigned int"""
6162  return _IMP_kernel.ConfigurationSet_get_number_of_configurations(self)
6163 
6164 
6165  def load_configuration(self, i):
6166  """load_configuration(ConfigurationSet self, int i)"""
6167  return _IMP_kernel.ConfigurationSet_load_configuration(self, i)
6168 
6169 
6170  def remove_configuration(self, i):
6171  """remove_configuration(ConfigurationSet self, unsigned int i)"""
6172  return _IMP_kernel.ConfigurationSet_remove_configuration(self, i)
6173 
6174 
6175  def get_model(self):
6176  """get_model(ConfigurationSet self) -> Model"""
6177  return _IMP_kernel.ConfigurationSet_get_model(self)
6178 
6179 
6180  def get_version_info(self):
6181  """get_version_info(ConfigurationSet self) -> VersionInfo"""
6182  return _IMP_kernel.ConfigurationSet_get_version_info(self)
6183 
6184 
6185  def __str__(self):
6186  """__str__(ConfigurationSet self) -> std::string"""
6187  return _IMP_kernel.ConfigurationSet___str__(self)
6188 
6189 
6190  def __repr__(self):
6191  """__repr__(ConfigurationSet self) -> std::string"""
6192  return _IMP_kernel.ConfigurationSet___repr__(self)
6193 
6194 
6195  @staticmethod
6196  def get_from(o):
6197  return _object_cast_to_ConfigurationSet(o)
6198 
6199 ConfigurationSet_swigregister = _IMP_kernel.ConfigurationSet_swigregister
6200 ConfigurationSet_swigregister(ConfigurationSet)
6201 
6202 class SaveToConfigurationSetOptimizerState(OptimizerState):
6203  """Proxy of C++ IMP::SaveToConfigurationSetOptimizerState class."""
6204 
6205  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6206 
6207  def __init__(self, cs):
6208  """__init__(IMP::SaveToConfigurationSetOptimizerState self, ConfigurationSet cs) -> SaveToConfigurationSetOptimizerState"""
6209  this = _IMP_kernel.new_SaveToConfigurationSetOptimizerState(cs)
6210  try:
6211  self.this.append(this)
6212  except __builtin__.Exception:
6213  self.this = this
6214 
6215  def get_version_info(self):
6216  """get_version_info(SaveToConfigurationSetOptimizerState self) -> VersionInfo"""
6217  return _IMP_kernel.SaveToConfigurationSetOptimizerState_get_version_info(self)
6218 
6219 
6220  def __str__(self):
6221  """__str__(SaveToConfigurationSetOptimizerState self) -> std::string"""
6222  return _IMP_kernel.SaveToConfigurationSetOptimizerState___str__(self)
6223 
6224 
6225  def __repr__(self):
6226  """__repr__(SaveToConfigurationSetOptimizerState self) -> std::string"""
6227  return _IMP_kernel.SaveToConfigurationSetOptimizerState___repr__(self)
6228 
6229 
6230  @staticmethod
6231  def get_from(o):
6232  return _object_cast_to_SaveToConfigurationSetOptimizerState(o)
6233 
6234 SaveToConfigurationSetOptimizerState_swigregister = _IMP_kernel.SaveToConfigurationSetOptimizerState_swigregister
6235 SaveToConfigurationSetOptimizerState_swigregister(SaveToConfigurationSetOptimizerState)
6236 
6237 class Configuration(Object):
6238  """Proxy of C++ IMP::Configuration class."""
6239 
6240  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6241 
6242  def __init__(self, *args):
6243  """
6244  __init__(IMP::Configuration self, Model m, std::string name) -> Configuration
6245  __init__(IMP::Configuration self, Model m) -> Configuration
6246  __init__(IMP::Configuration self, Model m, Configuration base, std::string name) -> Configuration
6247  __init__(IMP::Configuration self, Model m, Configuration base) -> Configuration
6248  """
6249  this = _IMP_kernel.new_Configuration(*args)
6250  try:
6251  self.this.append(this)
6252  except __builtin__.Exception:
6253  self.this = this
6254 
6255  def load_configuration(self):
6256  """load_configuration(Configuration self)"""
6257  return _IMP_kernel.Configuration_load_configuration(self)
6258 
6259 
6260  def swap_configuration(self):
6261  """swap_configuration(Configuration self)"""
6262  return _IMP_kernel.Configuration_swap_configuration(self)
6263 
6264 
6265  def get_version_info(self):
6266  """get_version_info(Configuration self) -> VersionInfo"""
6267  return _IMP_kernel.Configuration_get_version_info(self)
6268 
6269 
6270  def __str__(self):
6271  """__str__(Configuration self) -> std::string"""
6272  return _IMP_kernel.Configuration___str__(self)
6273 
6274 
6275  def __repr__(self):
6276  """__repr__(Configuration self) -> std::string"""
6277  return _IMP_kernel.Configuration___repr__(self)
6278 
6279 
6280  @staticmethod
6281  def get_from(o):
6282  return _object_cast_to_Configuration(o)
6283 
6284 Configuration_swigregister = _IMP_kernel.Configuration_swigregister
6285 Configuration_swigregister(Configuration)
6286 
6287 class Sampler(Object):
6288  """Proxy of C++ IMP::Sampler class."""
6289 
6290  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6291 
6292  def __init__(self, *args):
6293  """
6294  __init__(IMP::Sampler self, Model m, std::string name) -> Sampler
6295  __init__(IMP::Sampler self, Model m) -> Sampler
6296  """
6297  if self.__class__ == Sampler:
6298  _self = None
6299  else:
6300  _self = self
6301  this = _IMP_kernel.new_Sampler(_self, *args)
6302  try:
6303  self.this.append(this)
6304  except __builtin__.Exception:
6305  self.this = this
6306 
6307  if self.__class__ != Sampler:
6308  _director_objects.register(self)
6309 
6310 
6311 
6312 
6313  def create_sample(self):
6314  """create_sample(Sampler self) -> ConfigurationSet"""
6315  return _IMP_kernel.Sampler_create_sample(self)
6316 
6317 
6318  def get_scoring_function(self):
6319  """get_scoring_function(Sampler self) -> ScoringFunction"""
6320  return _IMP_kernel.Sampler_get_scoring_function(self)
6321 
6322 
6323  def set_scoring_function(self, sf):
6324  """set_scoring_function(Sampler self, _ScoringFunctionAdaptor sf)"""
6325  return _IMP_kernel.Sampler_set_scoring_function(self, sf)
6326 
6327 
6328  def get_model(self):
6329  """get_model(Sampler self) -> Model"""
6330  return _IMP_kernel.Sampler_get_model(self)
6331 
6332 
6333  def do_sample(self):
6334  """do_sample(Sampler self) -> ConfigurationSet"""
6335  return _IMP_kernel.Sampler_do_sample(self)
6336 
6337  __swig_destroy__ = _IMP_kernel.delete_Sampler
6338  __del__ = lambda self: None
6339 
6340  def __str__(self):
6341  """__str__(Sampler self) -> std::string"""
6342  return _IMP_kernel.Sampler___str__(self)
6343 
6344 
6345  def __repr__(self):
6346  """__repr__(Sampler self) -> std::string"""
6347  return _IMP_kernel.Sampler___repr__(self)
6348 
6349 
6350  @staticmethod
6351  def get_from(o):
6352  return _object_cast_to_Sampler(o)
6353 
6354 
6355  def get_type_name(self):
6356  return self.__class__.__name__
6357  def do_show(self, out):
6358  pass
6359  def get_version_info(self):
6360  if"IMP" == "IMP":
6361  return VersionInfo(self.__module__,
6362  __import__(self.__module__).get_module_version())
6363  else:
6364  return IMP.VersionInfo(self.__module__,
6365  __import__(self.__module__).get_module_version())
6366  @staticmethod
6367  def get_from(o):
6368  return _object_cast_to_Sampler(o)
6369 
6370  def __disown__(self):
6371  self.this.disown()
6372  _IMP_kernel.disown_Sampler(self)
6373  return weakref_proxy(self)
6374 
6375  def do_destroy(self):
6376  """do_destroy(Sampler self)"""
6377  return _IMP_kernel.Sampler_do_destroy(self)
6378 
6379 Sampler_swigregister = _IMP_kernel.Sampler_swigregister
6380 Sampler_swigregister(Sampler)
6381 
6382 class PairModifier(_ParticleInputs, _ParticleOutputs, Object):
6383  """Proxy of C++ IMP::PairModifier class."""
6384 
6385  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6386 
6387  def __init__(self, *args):
6388  """
6389  __init__(IMP::PairModifier self, std::string name) -> PairModifier
6390  __init__(IMP::PairModifier self) -> PairModifier
6391  """
6392  if self.__class__ == PairModifier:
6393  _self = None
6394  else:
6395  _self = self
6396  this = _IMP_kernel.new_PairModifier(_self, *args)
6397  try:
6398  self.this.append(this)
6399  except __builtin__.Exception:
6400  self.this = this
6401 
6402  if self.__class__ != PairModifier:
6403  _director_objects.register(self)
6404 
6405 
6406 
6407 
6408  def apply_index(self, m, v):
6409  """apply_index(PairModifier self, Model m, IMP::ParticleIndexPair const & v)"""
6410  return _IMP_kernel.PairModifier_apply_index(self, m, v)
6411 
6412 
6413  def apply_indexes(self, m, o, lower_bound, upper_bound):
6414  """apply_indexes(PairModifier self, Model m, IMP::ParticleIndexPairs const & o, unsigned int lower_bound, unsigned int upper_bound)"""
6415  return _IMP_kernel.PairModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
6416 
6417 
6418  def __str__(self):
6419  """__str__(PairModifier self) -> std::string"""
6420  return _IMP_kernel.PairModifier___str__(self)
6421 
6422 
6423  def __repr__(self):
6424  """__repr__(PairModifier self) -> std::string"""
6425  return _IMP_kernel.PairModifier___repr__(self)
6426 
6427 
6428  @staticmethod
6429  def get_from(o):
6430  return _object_cast_to_PairModifier(o)
6431 
6432 
6433  def get_type_name(self):
6434  return self.__class__.__name__
6435  def do_show(self, out):
6436  pass
6437  def get_version_info(self):
6438  if"IMP" == "IMP":
6439  return VersionInfo(self.__module__,
6440  __import__(self.__module__).get_module_version())
6441  else:
6442  return IMP.VersionInfo(self.__module__,
6443  __import__(self.__module__).get_module_version())
6444  @staticmethod
6445  def get_from(o):
6446  return _object_cast_to_PairModifier(o)
6447 
6448  __swig_destroy__ = _IMP_kernel.delete_PairModifier
6449  __del__ = lambda self: None
6450  def __disown__(self):
6451  self.this.disown()
6452  _IMP_kernel.disown_PairModifier(self)
6453  return weakref_proxy(self)
6454 
6455  def do_get_inputs(self, m, pis):
6456  """do_get_inputs(PairModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6457  return _IMP_kernel.PairModifier_do_get_inputs(self, m, pis)
6458 
6459 
6460  def do_get_outputs(self, m, pis):
6461  """do_get_outputs(PairModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6462  return _IMP_kernel.PairModifier_do_get_outputs(self, m, pis)
6463 
6464 
6465  def do_destroy(self):
6466  """do_destroy(PairModifier self)"""
6467  return _IMP_kernel.PairModifier_do_destroy(self)
6468 
6469 PairModifier_swigregister = _IMP_kernel.PairModifier_swigregister
6470 PairModifier_swigregister(PairModifier)
6471 
6472 class PairScore(_ParticleInputs, Object):
6473  """Proxy of C++ IMP::PairScore class."""
6474 
6475  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6476 
6477  def __init__(self, *args):
6478  """
6479  __init__(IMP::PairScore self, std::string name) -> PairScore
6480  __init__(IMP::PairScore self) -> PairScore
6481  """
6482  if self.__class__ == PairScore:
6483  _self = None
6484  else:
6485  _self = self
6486  this = _IMP_kernel.new_PairScore(_self, *args)
6487  try:
6488  self.this.append(this)
6489  except __builtin__.Exception:
6490  self.this = this
6491 
6492  if self.__class__ != PairScore:
6493  _director_objects.register(self)
6494 
6495 
6496 
6497 
6498  def evaluate_index(self, m, vt, da):
6499  """evaluate_index(PairScore self, Model m, IMP::ParticleIndexPair const & vt, DerivativeAccumulator da) -> double"""
6500  return _IMP_kernel.PairScore_evaluate_index(self, m, vt, da)
6501 
6502 
6503  def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
6504  """evaluate_indexes(PairScore self, Model m, IMP::ParticleIndexPairs const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
6505  return _IMP_kernel.PairScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
6506 
6507 
6508  def evaluate_if_good_index(self, m, vt, da, max):
6509  """evaluate_if_good_index(PairScore self, Model m, IMP::ParticleIndexPair const & vt, DerivativeAccumulator da, double max) -> double"""
6510  return _IMP_kernel.PairScore_evaluate_if_good_index(self, m, vt, da, max)
6511 
6512 
6513  def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
6514  """evaluate_if_good_indexes(PairScore self, Model m, IMP::ParticleIndexPairs const & o, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound) -> double"""
6515  return _IMP_kernel.PairScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
6516 
6517 
6518  def create_current_decomposition(self, m, vt):
6519  """create_current_decomposition(PairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
6520  return _IMP_kernel.PairScore_create_current_decomposition(self, m, vt)
6521 
6522 
6523  def do_create_current_decomposition(self, m, vt):
6524  """do_create_current_decomposition(PairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
6525  return _IMP_kernel.PairScore_do_create_current_decomposition(self, m, vt)
6526 
6527  __swig_destroy__ = _IMP_kernel.delete_PairScore
6528  __del__ = lambda self: None
6529 
6530  def __str__(self):
6531  """__str__(PairScore self) -> std::string"""
6532  return _IMP_kernel.PairScore___str__(self)
6533 
6534 
6535  def __repr__(self):
6536  """__repr__(PairScore self) -> std::string"""
6537  return _IMP_kernel.PairScore___repr__(self)
6538 
6539 
6540  @staticmethod
6541  def get_from(o):
6542  return _object_cast_to_PairScore(o)
6543 
6544 
6545  def get_type_name(self):
6546  return self.__class__.__name__
6547  def do_show(self, out):
6548  pass
6549  def get_version_info(self):
6550  if"IMP" == "IMP":
6551  return VersionInfo(self.__module__,
6552  __import__(self.__module__).get_module_version())
6553  else:
6554  return IMP.VersionInfo(self.__module__,
6555  __import__(self.__module__).get_module_version())
6556  @staticmethod
6557  def get_from(o):
6558  return _object_cast_to_PairScore(o)
6559 
6560  def __disown__(self):
6561  self.this.disown()
6562  _IMP_kernel.disown_PairScore(self)
6563  return weakref_proxy(self)
6564 
6565  def do_get_inputs(self, m, pis):
6566  """do_get_inputs(PairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6567  return _IMP_kernel.PairScore_do_get_inputs(self, m, pis)
6568 
6569 
6570  def do_destroy(self):
6571  """do_destroy(PairScore self)"""
6572  return _IMP_kernel.PairScore_do_destroy(self)
6573 
6574 PairScore_swigregister = _IMP_kernel.PairScore_swigregister
6575 PairScore_swigregister(PairScore)
6576 
6577 class PairPredicate(_ParticleInputs, Object):
6578  """Proxy of C++ IMP::PairPredicate class."""
6579 
6580  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6581 
6582  def __init__(self, *args):
6583  """
6584  __init__(IMP::PairPredicate self, std::string name) -> PairPredicate
6585  __init__(IMP::PairPredicate self) -> PairPredicate
6586  """
6587  if self.__class__ == PairPredicate:
6588  _self = None
6589  else:
6590  _self = self
6591  this = _IMP_kernel.new_PairPredicate(_self, *args)
6592  try:
6593  self.this.append(this)
6594  except __builtin__.Exception:
6595  self.this = this
6596 
6597  if self.__class__ != PairPredicate:
6598  _director_objects.register(self)
6599 
6600 
6601 
6602 
6603  def get_value(self, *args):
6604  """
6605  get_value(PairPredicate self, IMP::ParticlePair const & vt) -> int
6606  get_value(PairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
6607  """
6608  return _IMP_kernel.PairPredicate_get_value(self, *args)
6609 
6610 
6611  def setup_for_get_value_index_in_batch(self, arg0):
6612  """setup_for_get_value_index_in_batch(PairPredicate self, Model arg0)"""
6613  return _IMP_kernel.PairPredicate_setup_for_get_value_index_in_batch(self, arg0)
6614 
6615 
6616  def get_value_index_in_batch(self, m, vt):
6617  """get_value_index_in_batch(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int"""
6618  return _IMP_kernel.PairPredicate_get_value_index_in_batch(self, m, vt)
6619 
6620 
6621  def __call__(self, m, vt):
6622  """__call__(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int"""
6623  return _IMP_kernel.PairPredicate___call__(self, m, vt)
6624 
6625 
6626  def get_value_index(self, *args):
6627  """
6628  get_value_index(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int
6629  get_value_index(PairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
6630  """
6631  return _IMP_kernel.PairPredicate_get_value_index(self, *args)
6632 
6633  __swig_destroy__ = _IMP_kernel.delete_PairPredicate
6634  __del__ = lambda self: None
6635 
6636  def __str__(self):
6637  """__str__(PairPredicate self) -> std::string"""
6638  return _IMP_kernel.PairPredicate___str__(self)
6639 
6640 
6641  def __repr__(self):
6642  """__repr__(PairPredicate self) -> std::string"""
6643  return _IMP_kernel.PairPredicate___repr__(self)
6644 
6645 
6646  @staticmethod
6647  def get_from(o):
6648  return _object_cast_to_PairPredicate(o)
6649 
6650 
6651  def get_type_name(self):
6652  return self.__class__.__name__
6653  def do_show(self, out):
6654  pass
6655  def get_version_info(self):
6656  if"IMP" == "IMP":
6657  return VersionInfo(self.__module__,
6658  __import__(self.__module__).get_module_version())
6659  else:
6660  return IMP.VersionInfo(self.__module__,
6661  __import__(self.__module__).get_module_version())
6662  @staticmethod
6663  def get_from(o):
6664  return _object_cast_to_PairPredicate(o)
6665 
6666  def __disown__(self):
6667  self.this.disown()
6668  _IMP_kernel.disown_PairPredicate(self)
6669  return weakref_proxy(self)
6670 
6671  def do_get_inputs(self, m, pis):
6672  """do_get_inputs(PairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6673  return _IMP_kernel.PairPredicate_do_get_inputs(self, m, pis)
6674 
6675 
6676  def do_destroy(self):
6677  """do_destroy(PairPredicate self)"""
6678  return _IMP_kernel.PairPredicate_do_destroy(self)
6679 
6680 PairPredicate_swigregister = _IMP_kernel.PairPredicate_swigregister
6681 PairPredicate_swigregister(PairPredicate)
6682 
6683 class PairContainer(Container):
6684  """Proxy of C++ IMP::PairContainer class."""
6685 
6686  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6687 
6688  def apply_generic(self, m):
6689  """apply_generic(PairContainer self, PairModifier m)"""
6690  return _IMP_kernel.PairContainer_apply_generic(self, m)
6691 
6692 
6693  def apply(self, sm):
6694  """apply(PairContainer self, PairModifier sm)"""
6695  return _IMP_kernel.PairContainer_apply(self, sm)
6696 
6697 
6698  def get_range_indexes(self):
6699  """get_range_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
6700  return _IMP_kernel.PairContainer_get_range_indexes(self)
6701 
6702 
6703  def get_contents(self):
6704  """get_contents(PairContainer self) -> IMP::ParticleIndexPairs const &"""
6705  return _IMP_kernel.PairContainer_get_contents(self)
6706 
6707 
6708  def get_indexes(self):
6709  """get_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
6710  return _IMP_kernel.PairContainer_get_indexes(self)
6711 
6712 
6713  def get(self, *args):
6714  """
6715  get(PairContainer self) -> IMP::ParticlePairsTemp
6716  get(PairContainer self, unsigned int i) -> IMP::ParticlePair
6717  """
6718  return _IMP_kernel.PairContainer_get(self, *args)
6719 
6720 
6721  def get_number(self):
6722  """get_number(PairContainer self) -> unsigned int"""
6723  return _IMP_kernel.PairContainer_get_number(self)
6724 
6725 
6726  def get_particle_pairs(self):
6727  """get_particle_pairs(PairContainer self) -> IMP::ParticlePairsTemp"""
6728  return _IMP_kernel.PairContainer_get_particle_pairs(self)
6729 
6730 
6731  def get_particle_pair(self, i):
6732  """get_particle_pair(PairContainer self, unsigned int i) -> IMP::ParticlePair"""
6733  return _IMP_kernel.PairContainer_get_particle_pair(self, i)
6734 
6735 
6736  def __init__(self, *args):
6737  """
6738  __init__(IMP::PairContainer self, Model m, std::string name) -> PairContainer
6739  __init__(IMP::PairContainer self, Model m) -> PairContainer
6740  """
6741  if self.__class__ == PairContainer:
6742  _self = None
6743  else:
6744  _self = self
6745  this = _IMP_kernel.new_PairContainer(_self, *args)
6746  try:
6747  self.this.append(this)
6748  except __builtin__.Exception:
6749  self.this = this
6750 
6751  if self.__class__ != PairContainer:
6752  _director_objects.register(self)
6753 
6754 
6755 
6756 
6757  def do_apply(self, sm):
6758  """do_apply(PairContainer self, PairModifier sm)"""
6759  return _IMP_kernel.PairContainer_do_apply(self, sm)
6760 
6761 
6762  def do_get_provides_access(self):
6763  """do_get_provides_access(PairContainer self) -> bool"""
6764  return _IMP_kernel.PairContainer_do_get_provides_access(self)
6765 
6766  __swig_destroy__ = _IMP_kernel.delete_PairContainer
6767  __del__ = lambda self: None
6768 
6769  def __str__(self):
6770  """__str__(PairContainer self) -> std::string"""
6771  return _IMP_kernel.PairContainer___str__(self)
6772 
6773 
6774  def __repr__(self):
6775  """__repr__(PairContainer self) -> std::string"""
6776  return _IMP_kernel.PairContainer___repr__(self)
6777 
6778 
6779  @staticmethod
6780  def get_from(o):
6781  return _object_cast_to_PairContainer(o)
6782 
6783 
6784  def get_type_name(self):
6785  return self.__class__.__name__
6786  def do_show(self, out):
6787  pass
6788  def get_version_info(self):
6789  if"IMP" == "IMP":
6790  return VersionInfo(self.__module__,
6791  __import__(self.__module__).get_module_version())
6792  else:
6793  return IMP.VersionInfo(self.__module__,
6794  __import__(self.__module__).get_module_version())
6795  @staticmethod
6796  def get_from(o):
6797  return _object_cast_to_PairContainer(o)
6798 
6799  def __disown__(self):
6800  self.this.disown()
6801  _IMP_kernel.disown_PairContainer(self)
6802  return weakref_proxy(self)
6803 
6804  def do_destroy(self):
6805  """do_destroy(PairContainer self)"""
6806  return _IMP_kernel.PairContainer_do_destroy(self)
6807 
6808 
6809  def handle_set_has_required_score_states(self, arg0):
6810  """handle_set_has_required_score_states(PairContainer self, bool arg0)"""
6811  return _IMP_kernel.PairContainer_handle_set_has_required_score_states(self, arg0)
6812 
6813 
6814  def do_get_inputs(self):
6815  """do_get_inputs(PairContainer self) -> IMP::ModelObjectsTemp"""
6816  return _IMP_kernel.PairContainer_do_get_inputs(self)
6817 
6818 
6819  def do_get_interactions(self):
6820  """do_get_interactions(PairContainer self) -> IMP::ModelObjectsTemps"""
6821  return _IMP_kernel.PairContainer_do_get_interactions(self)
6822 
6823 
6824  def do_get_contents_hash(self):
6825  """do_get_contents_hash(PairContainer self) -> std::size_t"""
6826  return _IMP_kernel.PairContainer_do_get_contents_hash(self)
6827 
6828 PairContainer_swigregister = _IMP_kernel.PairContainer_swigregister
6829 PairContainer_swigregister(PairContainer)
6830 
6831 class _PairContainerAdaptor(_InputAdaptor):
6832  """Proxy of C++ IMP::PairContainerAdaptor class."""
6833 
6834  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6835  __repr__ = _swig_repr
6836 
6837  def __init__(self, *args):
6838  """
6839  __init__(IMP::PairContainerAdaptor self) -> _PairContainerAdaptor
6840  __init__(IMP::PairContainerAdaptor self, PairContainer c) -> _PairContainerAdaptor
6841  __init__(IMP::PairContainerAdaptor self, IMP::ParticlePairsTemp const & t) -> _PairContainerAdaptor
6842  """
6843  this = _IMP_kernel.new__PairContainerAdaptor(*args)
6844  try:
6845  self.this.append(this)
6846  except __builtin__.Exception:
6847  self.this = this
6848 
6849  def set_name_if_default(self, name):
6850  """set_name_if_default(_PairContainerAdaptor self, std::string name)"""
6851  return _IMP_kernel._PairContainerAdaptor_set_name_if_default(self, name)
6852 
6853  __swig_destroy__ = _IMP_kernel.delete__PairContainerAdaptor
6854  __del__ = lambda self: None
6855 _PairContainerAdaptor_swigregister = _IMP_kernel._PairContainerAdaptor_swigregister
6856 _PairContainerAdaptor_swigregister(_PairContainerAdaptor)
6857 
6858 class QuadModifier(_ParticleInputs, _ParticleOutputs, Object):
6859  """Proxy of C++ IMP::QuadModifier class."""
6860 
6861  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6862 
6863  def __init__(self, *args):
6864  """
6865  __init__(IMP::QuadModifier self, std::string name) -> QuadModifier
6866  __init__(IMP::QuadModifier self) -> QuadModifier
6867  """
6868  if self.__class__ == QuadModifier:
6869  _self = None
6870  else:
6871  _self = self
6872  this = _IMP_kernel.new_QuadModifier(_self, *args)
6873  try:
6874  self.this.append(this)
6875  except __builtin__.Exception:
6876  self.this = this
6877 
6878  if self.__class__ != QuadModifier:
6879  _director_objects.register(self)
6880 
6881 
6882 
6883 
6884  def apply_index(self, m, v):
6885  """apply_index(QuadModifier self, Model m, IMP::ParticleIndexQuad const & v)"""
6886  return _IMP_kernel.QuadModifier_apply_index(self, m, v)
6887 
6888 
6889  def apply_indexes(self, m, o, lower_bound, upper_bound):
6890  """apply_indexes(QuadModifier self, Model m, IMP::ParticleIndexQuads const & o, unsigned int lower_bound, unsigned int upper_bound)"""
6891  return _IMP_kernel.QuadModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
6892 
6893 
6894  def __str__(self):
6895  """__str__(QuadModifier self) -> std::string"""
6896  return _IMP_kernel.QuadModifier___str__(self)
6897 
6898 
6899  def __repr__(self):
6900  """__repr__(QuadModifier self) -> std::string"""
6901  return _IMP_kernel.QuadModifier___repr__(self)
6902 
6903 
6904  @staticmethod
6905  def get_from(o):
6906  return _object_cast_to_QuadModifier(o)
6907 
6908 
6909  def get_type_name(self):
6910  return self.__class__.__name__
6911  def do_show(self, out):
6912  pass
6913  def get_version_info(self):
6914  if"IMP" == "IMP":
6915  return VersionInfo(self.__module__,
6916  __import__(self.__module__).get_module_version())
6917  else:
6918  return IMP.VersionInfo(self.__module__,
6919  __import__(self.__module__).get_module_version())
6920  @staticmethod
6921  def get_from(o):
6922  return _object_cast_to_QuadModifier(o)
6923 
6924  __swig_destroy__ = _IMP_kernel.delete_QuadModifier
6925  __del__ = lambda self: None
6926  def __disown__(self):
6927  self.this.disown()
6928  _IMP_kernel.disown_QuadModifier(self)
6929  return weakref_proxy(self)
6930 
6931  def do_get_inputs(self, m, pis):
6932  """do_get_inputs(QuadModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6933  return _IMP_kernel.QuadModifier_do_get_inputs(self, m, pis)
6934 
6935 
6936  def do_get_outputs(self, m, pis):
6937  """do_get_outputs(QuadModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6938  return _IMP_kernel.QuadModifier_do_get_outputs(self, m, pis)
6939 
6940 
6941  def do_destroy(self):
6942  """do_destroy(QuadModifier self)"""
6943  return _IMP_kernel.QuadModifier_do_destroy(self)
6944 
6945 QuadModifier_swigregister = _IMP_kernel.QuadModifier_swigregister
6946 QuadModifier_swigregister(QuadModifier)
6947 
6948 class QuadScore(_ParticleInputs, Object):
6949  """Proxy of C++ IMP::QuadScore class."""
6950 
6951  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6952 
6953  def __init__(self, *args):
6954  """
6955  __init__(IMP::QuadScore self, std::string name) -> QuadScore
6956  __init__(IMP::QuadScore self) -> QuadScore
6957  """
6958  if self.__class__ == QuadScore:
6959  _self = None
6960  else:
6961  _self = self
6962  this = _IMP_kernel.new_QuadScore(_self, *args)
6963  try:
6964  self.this.append(this)
6965  except __builtin__.Exception:
6966  self.this = this
6967 
6968  if self.__class__ != QuadScore:
6969  _director_objects.register(self)
6970 
6971 
6972 
6973 
6974  def evaluate_index(self, m, vt, da):
6975  """evaluate_index(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt, DerivativeAccumulator da) -> double"""
6976  return _IMP_kernel.QuadScore_evaluate_index(self, m, vt, da)
6977 
6978 
6979  def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
6980  """evaluate_indexes(QuadScore self, Model m, IMP::ParticleIndexQuads const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
6981  return _IMP_kernel.QuadScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
6982 
6983 
6984  def evaluate_if_good_index(self, m, vt, da, max):
6985  """evaluate_if_good_index(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt, DerivativeAccumulator da, double max) -> double"""
6986  return _IMP_kernel.QuadScore_evaluate_if_good_index(self, m, vt, da, max)
6987 
6988 
6989  def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
6990  """evaluate_if_good_indexes(QuadScore self, Model m, IMP::ParticleIndexQuads const & o, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound) -> double"""
6991  return _IMP_kernel.QuadScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
6992 
6993 
6994  def create_current_decomposition(self, m, vt):
6995  """create_current_decomposition(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
6996  return _IMP_kernel.QuadScore_create_current_decomposition(self, m, vt)
6997 
6998 
6999  def do_create_current_decomposition(self, m, vt):
7000  """do_create_current_decomposition(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
7001  return _IMP_kernel.QuadScore_do_create_current_decomposition(self, m, vt)
7002 
7003  __swig_destroy__ = _IMP_kernel.delete_QuadScore
7004  __del__ = lambda self: None
7005 
7006  def __str__(self):
7007  """__str__(QuadScore self) -> std::string"""
7008  return _IMP_kernel.QuadScore___str__(self)
7009 
7010 
7011  def __repr__(self):
7012  """__repr__(QuadScore self) -> std::string"""
7013  return _IMP_kernel.QuadScore___repr__(self)
7014 
7015 
7016  @staticmethod
7017  def get_from(o):
7018  return _object_cast_to_QuadScore(o)
7019 
7020 
7021  def get_type_name(self):
7022  return self.__class__.__name__
7023  def do_show(self, out):
7024  pass
7025  def get_version_info(self):
7026  if"IMP" == "IMP":
7027  return VersionInfo(self.__module__,
7028  __import__(self.__module__).get_module_version())
7029  else:
7030  return IMP.VersionInfo(self.__module__,
7031  __import__(self.__module__).get_module_version())
7032  @staticmethod
7033  def get_from(o):
7034  return _object_cast_to_QuadScore(o)
7035 
7036  def __disown__(self):
7037  self.this.disown()
7038  _IMP_kernel.disown_QuadScore(self)
7039  return weakref_proxy(self)
7040 
7041  def do_get_inputs(self, m, pis):
7042  """do_get_inputs(QuadScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7043  return _IMP_kernel.QuadScore_do_get_inputs(self, m, pis)
7044 
7045 
7046  def do_destroy(self):
7047  """do_destroy(QuadScore self)"""
7048  return _IMP_kernel.QuadScore_do_destroy(self)
7049 
7050 QuadScore_swigregister = _IMP_kernel.QuadScore_swigregister
7051 QuadScore_swigregister(QuadScore)
7052 
7053 class QuadPredicate(_ParticleInputs, Object):
7054  """Proxy of C++ IMP::QuadPredicate class."""
7055 
7056  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7057 
7058  def __init__(self, *args):
7059  """
7060  __init__(IMP::QuadPredicate self, std::string name) -> QuadPredicate
7061  __init__(IMP::QuadPredicate self) -> QuadPredicate
7062  """
7063  if self.__class__ == QuadPredicate:
7064  _self = None
7065  else:
7066  _self = self
7067  this = _IMP_kernel.new_QuadPredicate(_self, *args)
7068  try:
7069  self.this.append(this)
7070  except __builtin__.Exception:
7071  self.this = this
7072 
7073  if self.__class__ != QuadPredicate:
7074  _director_objects.register(self)
7075 
7076 
7077 
7078 
7079  def get_value(self, *args):
7080  """
7081  get_value(QuadPredicate self, IMP::ParticleQuad const & vt) -> int
7082  get_value(QuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
7083  """
7084  return _IMP_kernel.QuadPredicate_get_value(self, *args)
7085 
7086 
7087  def setup_for_get_value_index_in_batch(self, arg0):
7088  """setup_for_get_value_index_in_batch(QuadPredicate self, Model arg0)"""
7089  return _IMP_kernel.QuadPredicate_setup_for_get_value_index_in_batch(self, arg0)
7090 
7091 
7092  def get_value_index_in_batch(self, m, vt):
7093  """get_value_index_in_batch(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int"""
7094  return _IMP_kernel.QuadPredicate_get_value_index_in_batch(self, m, vt)
7095 
7096 
7097  def __call__(self, m, vt):
7098  """__call__(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int"""
7099  return _IMP_kernel.QuadPredicate___call__(self, m, vt)
7100 
7101 
7102  def get_value_index(self, *args):
7103  """
7104  get_value_index(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int
7105  get_value_index(QuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
7106  """
7107  return _IMP_kernel.QuadPredicate_get_value_index(self, *args)
7108 
7109  __swig_destroy__ = _IMP_kernel.delete_QuadPredicate
7110  __del__ = lambda self: None
7111 
7112  def __str__(self):
7113  """__str__(QuadPredicate self) -> std::string"""
7114  return _IMP_kernel.QuadPredicate___str__(self)
7115 
7116 
7117  def __repr__(self):
7118  """__repr__(QuadPredicate self) -> std::string"""
7119  return _IMP_kernel.QuadPredicate___repr__(self)
7120 
7121 
7122  @staticmethod
7123  def get_from(o):
7124  return _object_cast_to_QuadPredicate(o)
7125 
7126 
7127  def get_type_name(self):
7128  return self.__class__.__name__
7129  def do_show(self, out):
7130  pass
7131  def get_version_info(self):
7132  if"IMP" == "IMP":
7133  return VersionInfo(self.__module__,
7134  __import__(self.__module__).get_module_version())
7135  else:
7136  return IMP.VersionInfo(self.__module__,
7137  __import__(self.__module__).get_module_version())
7138  @staticmethod
7139  def get_from(o):
7140  return _object_cast_to_QuadPredicate(o)
7141 
7142  def __disown__(self):
7143  self.this.disown()
7144  _IMP_kernel.disown_QuadPredicate(self)
7145  return weakref_proxy(self)
7146 
7147  def do_get_inputs(self, m, pis):
7148  """do_get_inputs(QuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7149  return _IMP_kernel.QuadPredicate_do_get_inputs(self, m, pis)
7150 
7151 
7152  def do_destroy(self):
7153  """do_destroy(QuadPredicate self)"""
7154  return _IMP_kernel.QuadPredicate_do_destroy(self)
7155 
7156 QuadPredicate_swigregister = _IMP_kernel.QuadPredicate_swigregister
7157 QuadPredicate_swigregister(QuadPredicate)
7158 
7159 class QuadContainer(Container):
7160  """Proxy of C++ IMP::QuadContainer class."""
7161 
7162  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7163 
7164  def apply_generic(self, m):
7165  """apply_generic(QuadContainer self, QuadModifier m)"""
7166  return _IMP_kernel.QuadContainer_apply_generic(self, m)
7167 
7168 
7169  def apply(self, sm):
7170  """apply(QuadContainer self, QuadModifier sm)"""
7171  return _IMP_kernel.QuadContainer_apply(self, sm)
7172 
7173 
7174  def get_range_indexes(self):
7175  """get_range_indexes(QuadContainer self) -> IMP::ParticleIndexQuads"""
7176  return _IMP_kernel.QuadContainer_get_range_indexes(self)
7177 
7178 
7179  def get_contents(self):
7180  """get_contents(QuadContainer self) -> IMP::ParticleIndexQuads const &"""
7181  return _IMP_kernel.QuadContainer_get_contents(self)
7182 
7183 
7184  def get_indexes(self):
7185  """get_indexes(QuadContainer self) -> IMP::ParticleIndexQuads"""
7186  return _IMP_kernel.QuadContainer_get_indexes(self)
7187 
7188 
7189  def get(self, *args):
7190  """
7191  get(QuadContainer self) -> IMP::ParticleQuadsTemp
7192  get(QuadContainer self, unsigned int i) -> IMP::ParticleQuad
7193  """
7194  return _IMP_kernel.QuadContainer_get(self, *args)
7195 
7196 
7197  def get_number(self):
7198  """get_number(QuadContainer self) -> unsigned int"""
7199  return _IMP_kernel.QuadContainer_get_number(self)
7200 
7201 
7202  def get_particle_quads(self):
7203  """get_particle_quads(QuadContainer self) -> IMP::ParticleQuadsTemp"""
7204  return _IMP_kernel.QuadContainer_get_particle_quads(self)
7205 
7206 
7207  def get_particle_quad(self, i):
7208  """get_particle_quad(QuadContainer self, unsigned int i) -> IMP::ParticleQuad"""
7209  return _IMP_kernel.QuadContainer_get_particle_quad(self, i)
7210 
7211 
7212  def __init__(self, *args):
7213  """
7214  __init__(IMP::QuadContainer self, Model m, std::string name) -> QuadContainer
7215  __init__(IMP::QuadContainer self, Model m) -> QuadContainer
7216  """
7217  if self.__class__ == QuadContainer:
7218  _self = None
7219  else:
7220  _self = self
7221  this = _IMP_kernel.new_QuadContainer(_self, *args)
7222  try:
7223  self.this.append(this)
7224  except __builtin__.Exception:
7225  self.this = this
7226 
7227  if self.__class__ != QuadContainer:
7228  _director_objects.register(self)
7229 
7230 
7231 
7232 
7233  def do_apply(self, sm):
7234  """do_apply(QuadContainer self, QuadModifier sm)"""
7235  return _IMP_kernel.QuadContainer_do_apply(self, sm)
7236 
7237 
7238  def do_get_provides_access(self):
7239  """do_get_provides_access(QuadContainer self) -> bool"""
7240  return _IMP_kernel.QuadContainer_do_get_provides_access(self)
7241 
7242  __swig_destroy__ = _IMP_kernel.delete_QuadContainer
7243  __del__ = lambda self: None
7244 
7245  def __str__(self):
7246  """__str__(QuadContainer self) -> std::string"""
7247  return _IMP_kernel.QuadContainer___str__(self)
7248 
7249 
7250  def __repr__(self):
7251  """__repr__(QuadContainer self) -> std::string"""
7252  return _IMP_kernel.QuadContainer___repr__(self)
7253 
7254 
7255  @staticmethod
7256  def get_from(o):
7257  return _object_cast_to_QuadContainer(o)
7258 
7259 
7260  def get_type_name(self):
7261  return self.__class__.__name__
7262  def do_show(self, out):
7263  pass
7264  def get_version_info(self):
7265  if"IMP" == "IMP":
7266  return VersionInfo(self.__module__,
7267  __import__(self.__module__).get_module_version())
7268  else:
7269  return IMP.VersionInfo(self.__module__,
7270  __import__(self.__module__).get_module_version())
7271  @staticmethod
7272  def get_from(o):
7273  return _object_cast_to_QuadContainer(o)
7274 
7275  def __disown__(self):
7276  self.this.disown()
7277  _IMP_kernel.disown_QuadContainer(self)
7278  return weakref_proxy(self)
7279 
7280  def do_destroy(self):
7281  """do_destroy(QuadContainer self)"""
7282  return _IMP_kernel.QuadContainer_do_destroy(self)
7283 
7284 
7285  def handle_set_has_required_score_states(self, arg0):
7286  """handle_set_has_required_score_states(QuadContainer self, bool arg0)"""
7287  return _IMP_kernel.QuadContainer_handle_set_has_required_score_states(self, arg0)
7288 
7289 
7290  def do_get_inputs(self):
7291  """do_get_inputs(QuadContainer self) -> IMP::ModelObjectsTemp"""
7292  return _IMP_kernel.QuadContainer_do_get_inputs(self)
7293 
7294 
7295  def do_get_interactions(self):
7296  """do_get_interactions(QuadContainer self) -> IMP::ModelObjectsTemps"""
7297  return _IMP_kernel.QuadContainer_do_get_interactions(self)
7298 
7299 
7300  def do_get_contents_hash(self):
7301  """do_get_contents_hash(QuadContainer self) -> std::size_t"""
7302  return _IMP_kernel.QuadContainer_do_get_contents_hash(self)
7303 
7304 QuadContainer_swigregister = _IMP_kernel.QuadContainer_swigregister
7305 QuadContainer_swigregister(QuadContainer)
7306 
7307 class _QuadContainerAdaptor(_InputAdaptor):
7308  """Proxy of C++ IMP::QuadContainerAdaptor class."""
7309 
7310  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7311  __repr__ = _swig_repr
7312 
7313  def __init__(self, *args):
7314  """
7315  __init__(IMP::QuadContainerAdaptor self) -> _QuadContainerAdaptor
7316  __init__(IMP::QuadContainerAdaptor self, QuadContainer c) -> _QuadContainerAdaptor
7317  __init__(IMP::QuadContainerAdaptor self, IMP::ParticleQuadsTemp const & t) -> _QuadContainerAdaptor
7318  """
7319  this = _IMP_kernel.new__QuadContainerAdaptor(*args)
7320  try:
7321  self.this.append(this)
7322  except __builtin__.Exception:
7323  self.this = this
7324 
7325  def set_name_if_default(self, name):
7326  """set_name_if_default(_QuadContainerAdaptor self, std::string name)"""
7327  return _IMP_kernel._QuadContainerAdaptor_set_name_if_default(self, name)
7328 
7329  __swig_destroy__ = _IMP_kernel.delete__QuadContainerAdaptor
7330  __del__ = lambda self: None
7331 _QuadContainerAdaptor_swigregister = _IMP_kernel._QuadContainerAdaptor_swigregister
7332 _QuadContainerAdaptor_swigregister(_QuadContainerAdaptor)
7333 
7334 class SingletonModifier(_ParticleInputs, _ParticleOutputs, Object):
7335  """Proxy of C++ IMP::SingletonModifier class."""
7336 
7337  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7338 
7339  def __init__(self, *args):
7340  """
7341  __init__(IMP::SingletonModifier self, std::string name) -> SingletonModifier
7342  __init__(IMP::SingletonModifier self) -> SingletonModifier
7343  """
7344  if self.__class__ == SingletonModifier:
7345  _self = None
7346  else:
7347  _self = self
7348  this = _IMP_kernel.new_SingletonModifier(_self, *args)
7349  try:
7350  self.this.append(this)
7351  except __builtin__.Exception:
7352  self.this = this
7353 
7354  if self.__class__ != SingletonModifier:
7355  _director_objects.register(self)
7356 
7357 
7358 
7359 
7360  def apply_index(self, m, v):
7361  """apply_index(SingletonModifier self, Model m, ParticleIndex v)"""
7362  return _IMP_kernel.SingletonModifier_apply_index(self, m, v)
7363 
7364 
7365  def apply_indexes(self, m, o, lower_bound, upper_bound):
7366  """apply_indexes(SingletonModifier self, Model m, IMP::ParticleIndexes const & o, unsigned int lower_bound, unsigned int upper_bound)"""
7367  return _IMP_kernel.SingletonModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
7368 
7369 
7370  def __str__(self):
7371  """__str__(SingletonModifier self) -> std::string"""
7372  return _IMP_kernel.SingletonModifier___str__(self)
7373 
7374 
7375  def __repr__(self):
7376  """__repr__(SingletonModifier self) -> std::string"""
7377  return _IMP_kernel.SingletonModifier___repr__(self)
7378 
7379 
7380  @staticmethod
7381  def get_from(o):
7382  return _object_cast_to_SingletonModifier(o)
7383 
7384 
7385  def get_type_name(self):
7386  return self.__class__.__name__
7387  def do_show(self, out):
7388  pass
7389  def get_version_info(self):
7390  if"IMP" == "IMP":
7391  return VersionInfo(self.__module__,
7392  __import__(self.__module__).get_module_version())
7393  else:
7394  return IMP.VersionInfo(self.__module__,
7395  __import__(self.__module__).get_module_version())
7396  @staticmethod
7397  def get_from(o):
7398  return _object_cast_to_SingletonModifier(o)
7399 
7400  __swig_destroy__ = _IMP_kernel.delete_SingletonModifier
7401  __del__ = lambda self: None
7402  def __disown__(self):
7403  self.this.disown()
7404  _IMP_kernel.disown_SingletonModifier(self)
7405  return weakref_proxy(self)
7406 
7407  def do_get_inputs(self, m, pis):
7408  """do_get_inputs(SingletonModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7409  return _IMP_kernel.SingletonModifier_do_get_inputs(self, m, pis)
7410 
7411 
7412  def do_get_outputs(self, m, pis):
7413  """do_get_outputs(SingletonModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7414  return _IMP_kernel.SingletonModifier_do_get_outputs(self, m, pis)
7415 
7416 
7417  def do_destroy(self):
7418  """do_destroy(SingletonModifier self)"""
7419  return _IMP_kernel.SingletonModifier_do_destroy(self)
7420 
7421 SingletonModifier_swigregister = _IMP_kernel.SingletonModifier_swigregister
7422 SingletonModifier_swigregister(SingletonModifier)
7423 
7424 class SingletonScore(_ParticleInputs, Object):
7425  """Proxy of C++ IMP::SingletonScore class."""
7426 
7427  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7428 
7429  def __init__(self, *args):
7430  """
7431  __init__(IMP::SingletonScore self, std::string name) -> SingletonScore
7432  __init__(IMP::SingletonScore self) -> SingletonScore
7433  """
7434  if self.__class__ == SingletonScore:
7435  _self = None
7436  else:
7437  _self = self
7438  this = _IMP_kernel.new_SingletonScore(_self, *args)
7439  try:
7440  self.this.append(this)
7441  except __builtin__.Exception:
7442  self.this = this
7443 
7444  if self.__class__ != SingletonScore:
7445  _director_objects.register(self)
7446 
7447 
7448 
7449 
7450  def evaluate_index(self, m, vt, da):
7451  """evaluate_index(SingletonScore self, Model m, ParticleIndex vt, DerivativeAccumulator da) -> double"""
7452  return _IMP_kernel.SingletonScore_evaluate_index(self, m, vt, da)
7453 
7454 
7455  def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
7456  """evaluate_indexes(SingletonScore self, Model m, IMP::ParticleIndexes const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7457  return _IMP_kernel.SingletonScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
7458 
7459 
7460  def evaluate_if_good_index(self, m, vt, da, max):
7461  """evaluate_if_good_index(SingletonScore self, Model m, ParticleIndex vt, DerivativeAccumulator da, double max) -> double"""
7462  return _IMP_kernel.SingletonScore_evaluate_if_good_index(self, m, vt, da, max)
7463 
7464 
7465  def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
7466  """evaluate_if_good_indexes(SingletonScore self, Model m, IMP::ParticleIndexes const & o, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7467  return _IMP_kernel.SingletonScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
7468 
7469 
7470  def create_current_decomposition(self, m, vt):
7471  """create_current_decomposition(SingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
7472  return _IMP_kernel.SingletonScore_create_current_decomposition(self, m, vt)
7473 
7474 
7475  def do_create_current_decomposition(self, m, vt):
7476  """do_create_current_decomposition(SingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
7477  return _IMP_kernel.SingletonScore_do_create_current_decomposition(self, m, vt)
7478 
7479  __swig_destroy__ = _IMP_kernel.delete_SingletonScore
7480  __del__ = lambda self: None
7481 
7482  def __str__(self):
7483  """__str__(SingletonScore self) -> std::string"""
7484  return _IMP_kernel.SingletonScore___str__(self)
7485 
7486 
7487  def __repr__(self):
7488  """__repr__(SingletonScore self) -> std::string"""
7489  return _IMP_kernel.SingletonScore___repr__(self)
7490 
7491 
7492  @staticmethod
7493  def get_from(o):
7494  return _object_cast_to_SingletonScore(o)
7495 
7496 
7497  def get_type_name(self):
7498  return self.__class__.__name__
7499  def do_show(self, out):
7500  pass
7501  def get_version_info(self):
7502  if"IMP" == "IMP":
7503  return VersionInfo(self.__module__,
7504  __import__(self.__module__).get_module_version())
7505  else:
7506  return IMP.VersionInfo(self.__module__,
7507  __import__(self.__module__).get_module_version())
7508  @staticmethod
7509  def get_from(o):
7510  return _object_cast_to_SingletonScore(o)
7511 
7512  def __disown__(self):
7513  self.this.disown()
7514  _IMP_kernel.disown_SingletonScore(self)
7515  return weakref_proxy(self)
7516 
7517  def do_get_inputs(self, m, pis):
7518  """do_get_inputs(SingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7519  return _IMP_kernel.SingletonScore_do_get_inputs(self, m, pis)
7520 
7521 
7522  def do_destroy(self):
7523  """do_destroy(SingletonScore self)"""
7524  return _IMP_kernel.SingletonScore_do_destroy(self)
7525 
7526 SingletonScore_swigregister = _IMP_kernel.SingletonScore_swigregister
7527 SingletonScore_swigregister(SingletonScore)
7528 
7529 class SingletonPredicate(_ParticleInputs, Object):
7530  """Proxy of C++ IMP::SingletonPredicate class."""
7531 
7532  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7533 
7534  def __init__(self, *args):
7535  """
7536  __init__(IMP::SingletonPredicate self, std::string name) -> SingletonPredicate
7537  __init__(IMP::SingletonPredicate self) -> SingletonPredicate
7538  """
7539  if self.__class__ == SingletonPredicate:
7540  _self = None
7541  else:
7542  _self = self
7543  this = _IMP_kernel.new_SingletonPredicate(_self, *args)
7544  try:
7545  self.this.append(this)
7546  except __builtin__.Exception:
7547  self.this = this
7548 
7549  if self.__class__ != SingletonPredicate:
7550  _director_objects.register(self)
7551 
7552 
7553 
7554 
7555  def get_value(self, *args):
7556  """
7557  get_value(SingletonPredicate self, Particle vt) -> int
7558  get_value(SingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
7559  """
7560  return _IMP_kernel.SingletonPredicate_get_value(self, *args)
7561 
7562 
7563  def setup_for_get_value_index_in_batch(self, arg0):
7564  """setup_for_get_value_index_in_batch(SingletonPredicate self, Model arg0)"""
7565  return _IMP_kernel.SingletonPredicate_setup_for_get_value_index_in_batch(self, arg0)
7566 
7567 
7568  def get_value_index_in_batch(self, m, vt):
7569  """get_value_index_in_batch(SingletonPredicate self, Model m, ParticleIndex vt) -> int"""
7570  return _IMP_kernel.SingletonPredicate_get_value_index_in_batch(self, m, vt)
7571 
7572 
7573  def __call__(self, m, vt):
7574  """__call__(SingletonPredicate self, Model m, ParticleIndex vt) -> int"""
7575  return _IMP_kernel.SingletonPredicate___call__(self, m, vt)
7576 
7577 
7578  def get_value_index(self, *args):
7579  """
7580  get_value_index(SingletonPredicate self, Model m, ParticleIndex vt) -> int
7581  get_value_index(SingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
7582  """
7583  return _IMP_kernel.SingletonPredicate_get_value_index(self, *args)
7584 
7585  __swig_destroy__ = _IMP_kernel.delete_SingletonPredicate
7586  __del__ = lambda self: None
7587 
7588  def __str__(self):
7589  """__str__(SingletonPredicate self) -> std::string"""
7590  return _IMP_kernel.SingletonPredicate___str__(self)
7591 
7592 
7593  def __repr__(self):
7594  """__repr__(SingletonPredicate self) -> std::string"""
7595  return _IMP_kernel.SingletonPredicate___repr__(self)
7596 
7597 
7598  @staticmethod
7599  def get_from(o):
7600  return _object_cast_to_SingletonPredicate(o)
7601 
7602 
7603  def get_type_name(self):
7604  return self.__class__.__name__
7605  def do_show(self, out):
7606  pass
7607  def get_version_info(self):
7608  if"IMP" == "IMP":
7609  return VersionInfo(self.__module__,
7610  __import__(self.__module__).get_module_version())
7611  else:
7612  return IMP.VersionInfo(self.__module__,
7613  __import__(self.__module__).get_module_version())
7614  @staticmethod
7615  def get_from(o):
7616  return _object_cast_to_SingletonPredicate(o)
7617 
7618  def __disown__(self):
7619  self.this.disown()
7620  _IMP_kernel.disown_SingletonPredicate(self)
7621  return weakref_proxy(self)
7622 
7623  def do_get_inputs(self, m, pis):
7624  """do_get_inputs(SingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7625  return _IMP_kernel.SingletonPredicate_do_get_inputs(self, m, pis)
7626 
7627 
7628  def do_destroy(self):
7629  """do_destroy(SingletonPredicate self)"""
7630  return _IMP_kernel.SingletonPredicate_do_destroy(self)
7631 
7632 SingletonPredicate_swigregister = _IMP_kernel.SingletonPredicate_swigregister
7633 SingletonPredicate_swigregister(SingletonPredicate)
7634 
7635 class SingletonContainer(Container):
7636  """Proxy of C++ IMP::SingletonContainer class."""
7637 
7638  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7639 
7640  def apply_generic(self, m):
7641  """apply_generic(SingletonContainer self, SingletonModifier m)"""
7642  return _IMP_kernel.SingletonContainer_apply_generic(self, m)
7643 
7644 
7645  def apply(self, sm):
7646  """apply(SingletonContainer self, SingletonModifier sm)"""
7647  return _IMP_kernel.SingletonContainer_apply(self, sm)
7648 
7649 
7650  def get_range_indexes(self):
7651  """get_range_indexes(SingletonContainer self) -> IMP::ParticleIndexes"""
7652  return _IMP_kernel.SingletonContainer_get_range_indexes(self)
7653 
7654 
7655  def get_contents(self):
7656  """get_contents(SingletonContainer self) -> IMP::ParticleIndexes const &"""
7657  return _IMP_kernel.SingletonContainer_get_contents(self)
7658 
7659 
7660  def get_indexes(self):
7661  """get_indexes(SingletonContainer self) -> IMP::ParticleIndexes"""
7662  return _IMP_kernel.SingletonContainer_get_indexes(self)
7663 
7664 
7665  def get(self, *args):
7666  """
7667  get(SingletonContainer self) -> IMP::ParticlesTemp
7668  get(SingletonContainer self, unsigned int i) -> Particle
7669  """
7670  return _IMP_kernel.SingletonContainer_get(self, *args)
7671 
7672 
7673  def get_number(self):
7674  """get_number(SingletonContainer self) -> unsigned int"""
7675  return _IMP_kernel.SingletonContainer_get_number(self)
7676 
7677 
7678  def get_particles(self):
7679  """get_particles(SingletonContainer self) -> IMP::ParticlesTemp"""
7680  return _IMP_kernel.SingletonContainer_get_particles(self)
7681 
7682 
7683  def get_particle(self, i):
7684  """get_particle(SingletonContainer self, unsigned int i) -> Particle"""
7685  return _IMP_kernel.SingletonContainer_get_particle(self, i)
7686 
7687 
7688  def __init__(self, *args):
7689  """
7690  __init__(IMP::SingletonContainer self, Model m, std::string name) -> SingletonContainer
7691  __init__(IMP::SingletonContainer self, Model m) -> SingletonContainer
7692  """
7693  if self.__class__ == SingletonContainer:
7694  _self = None
7695  else:
7696  _self = self
7697  this = _IMP_kernel.new_SingletonContainer(_self, *args)
7698  try:
7699  self.this.append(this)
7700  except __builtin__.Exception:
7701  self.this = this
7702 
7703  if self.__class__ != SingletonContainer:
7704  _director_objects.register(self)
7705 
7706 
7707 
7708 
7709  def do_apply(self, sm):
7710  """do_apply(SingletonContainer self, SingletonModifier sm)"""
7711  return _IMP_kernel.SingletonContainer_do_apply(self, sm)
7712 
7713 
7714  def do_get_provides_access(self):
7715  """do_get_provides_access(SingletonContainer self) -> bool"""
7716  return _IMP_kernel.SingletonContainer_do_get_provides_access(self)
7717 
7718  __swig_destroy__ = _IMP_kernel.delete_SingletonContainer
7719  __del__ = lambda self: None
7720 
7721  def __str__(self):
7722  """__str__(SingletonContainer self) -> std::string"""
7723  return _IMP_kernel.SingletonContainer___str__(self)
7724 
7725 
7726  def __repr__(self):
7727  """__repr__(SingletonContainer self) -> std::string"""
7728  return _IMP_kernel.SingletonContainer___repr__(self)
7729 
7730 
7731  @staticmethod
7732  def get_from(o):
7733  return _object_cast_to_SingletonContainer(o)
7734 
7735 
7736  def get_type_name(self):
7737  return self.__class__.__name__
7738  def do_show(self, out):
7739  pass
7740  def get_version_info(self):
7741  if"IMP" == "IMP":
7742  return VersionInfo(self.__module__,
7743  __import__(self.__module__).get_module_version())
7744  else:
7745  return IMP.VersionInfo(self.__module__,
7746  __import__(self.__module__).get_module_version())
7747  @staticmethod
7748  def get_from(o):
7749  return _object_cast_to_SingletonContainer(o)
7750 
7751  def __disown__(self):
7752  self.this.disown()
7753  _IMP_kernel.disown_SingletonContainer(self)
7754  return weakref_proxy(self)
7755 
7756  def do_destroy(self):
7757  """do_destroy(SingletonContainer self)"""
7758  return _IMP_kernel.SingletonContainer_do_destroy(self)
7759 
7760 
7761  def handle_set_has_required_score_states(self, arg0):
7762  """handle_set_has_required_score_states(SingletonContainer self, bool arg0)"""
7763  return _IMP_kernel.SingletonContainer_handle_set_has_required_score_states(self, arg0)
7764 
7765 
7766  def do_get_inputs(self):
7767  """do_get_inputs(SingletonContainer self) -> IMP::ModelObjectsTemp"""
7768  return _IMP_kernel.SingletonContainer_do_get_inputs(self)
7769 
7770 
7771  def do_get_interactions(self):
7772  """do_get_interactions(SingletonContainer self) -> IMP::ModelObjectsTemps"""
7773  return _IMP_kernel.SingletonContainer_do_get_interactions(self)
7774 
7775 
7776  def do_get_contents_hash(self):
7777  """do_get_contents_hash(SingletonContainer self) -> std::size_t"""
7778  return _IMP_kernel.SingletonContainer_do_get_contents_hash(self)
7779 
7780 SingletonContainer_swigregister = _IMP_kernel.SingletonContainer_swigregister
7781 SingletonContainer_swigregister(SingletonContainer)
7782 
7783 class _SingletonContainerAdaptor(_InputAdaptor):
7784  """Proxy of C++ IMP::SingletonContainerAdaptor class."""
7785 
7786  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7787  __repr__ = _swig_repr
7788 
7789  def __init__(self, *args):
7790  """
7791  __init__(IMP::SingletonContainerAdaptor self) -> _SingletonContainerAdaptor
7792  __init__(IMP::SingletonContainerAdaptor self, SingletonContainer c) -> _SingletonContainerAdaptor
7793  __init__(IMP::SingletonContainerAdaptor self, IMP::ParticlesTemp const & t) -> _SingletonContainerAdaptor
7794  """
7795  this = _IMP_kernel.new__SingletonContainerAdaptor(*args)
7796  try:
7797  self.this.append(this)
7798  except __builtin__.Exception:
7799  self.this = this
7800 
7801  def set_name_if_default(self, name):
7802  """set_name_if_default(_SingletonContainerAdaptor self, std::string name)"""
7803  return _IMP_kernel._SingletonContainerAdaptor_set_name_if_default(self, name)
7804 
7805  __swig_destroy__ = _IMP_kernel.delete__SingletonContainerAdaptor
7806  __del__ = lambda self: None
7807 _SingletonContainerAdaptor_swigregister = _IMP_kernel._SingletonContainerAdaptor_swigregister
7808 _SingletonContainerAdaptor_swigregister(_SingletonContainerAdaptor)
7809 
7810 class TripletModifier(_ParticleInputs, _ParticleOutputs, Object):
7811  """Proxy of C++ IMP::TripletModifier class."""
7812 
7813  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7814 
7815  def __init__(self, *args):
7816  """
7817  __init__(IMP::TripletModifier self, std::string name) -> TripletModifier
7818  __init__(IMP::TripletModifier self) -> TripletModifier
7819  """
7820  if self.__class__ == TripletModifier:
7821  _self = None
7822  else:
7823  _self = self
7824  this = _IMP_kernel.new_TripletModifier(_self, *args)
7825  try:
7826  self.this.append(this)
7827  except __builtin__.Exception:
7828  self.this = this
7829 
7830  if self.__class__ != TripletModifier:
7831  _director_objects.register(self)
7832 
7833 
7834 
7835 
7836  def apply_index(self, m, v):
7837  """apply_index(TripletModifier self, Model m, IMP::ParticleIndexTriplet const & v)"""
7838  return _IMP_kernel.TripletModifier_apply_index(self, m, v)
7839 
7840 
7841  def apply_indexes(self, m, o, lower_bound, upper_bound):
7842  """apply_indexes(TripletModifier self, Model m, IMP::ParticleIndexTriplets const & o, unsigned int lower_bound, unsigned int upper_bound)"""
7843  return _IMP_kernel.TripletModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
7844 
7845 
7846  def __str__(self):
7847  """__str__(TripletModifier self) -> std::string"""
7848  return _IMP_kernel.TripletModifier___str__(self)
7849 
7850 
7851  def __repr__(self):
7852  """__repr__(TripletModifier self) -> std::string"""
7853  return _IMP_kernel.TripletModifier___repr__(self)
7854 
7855 
7856  @staticmethod
7857  def get_from(o):
7858  return _object_cast_to_TripletModifier(o)
7859 
7860 
7861  def get_type_name(self):
7862  return self.__class__.__name__
7863  def do_show(self, out):
7864  pass
7865  def get_version_info(self):
7866  if"IMP" == "IMP":
7867  return VersionInfo(self.__module__,
7868  __import__(self.__module__).get_module_version())
7869  else:
7870  return IMP.VersionInfo(self.__module__,
7871  __import__(self.__module__).get_module_version())
7872  @staticmethod
7873  def get_from(o):
7874  return _object_cast_to_TripletModifier(o)
7875 
7876  __swig_destroy__ = _IMP_kernel.delete_TripletModifier
7877  __del__ = lambda self: None
7878  def __disown__(self):
7879  self.this.disown()
7880  _IMP_kernel.disown_TripletModifier(self)
7881  return weakref_proxy(self)
7882 
7883  def do_get_inputs(self, m, pis):
7884  """do_get_inputs(TripletModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7885  return _IMP_kernel.TripletModifier_do_get_inputs(self, m, pis)
7886 
7887 
7888  def do_get_outputs(self, m, pis):
7889  """do_get_outputs(TripletModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7890  return _IMP_kernel.TripletModifier_do_get_outputs(self, m, pis)
7891 
7892 
7893  def do_destroy(self):
7894  """do_destroy(TripletModifier self)"""
7895  return _IMP_kernel.TripletModifier_do_destroy(self)
7896 
7897 TripletModifier_swigregister = _IMP_kernel.TripletModifier_swigregister
7898 TripletModifier_swigregister(TripletModifier)
7899 
7900 class TripletScore(_ParticleInputs, Object):
7901  """Proxy of C++ IMP::TripletScore class."""
7902 
7903  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7904 
7905  def __init__(self, *args):
7906  """
7907  __init__(IMP::TripletScore self, std::string name) -> TripletScore
7908  __init__(IMP::TripletScore self) -> TripletScore
7909  """
7910  if self.__class__ == TripletScore:
7911  _self = None
7912  else:
7913  _self = self
7914  this = _IMP_kernel.new_TripletScore(_self, *args)
7915  try:
7916  self.this.append(this)
7917  except __builtin__.Exception:
7918  self.this = this
7919 
7920  if self.__class__ != TripletScore:
7921  _director_objects.register(self)
7922 
7923 
7924 
7925 
7926  def evaluate_index(self, m, vt, da):
7927  """evaluate_index(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt, DerivativeAccumulator da) -> double"""
7928  return _IMP_kernel.TripletScore_evaluate_index(self, m, vt, da)
7929 
7930 
7931  def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
7932  """evaluate_indexes(TripletScore self, Model m, IMP::ParticleIndexTriplets const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7933  return _IMP_kernel.TripletScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
7934 
7935 
7936  def evaluate_if_good_index(self, m, vt, da, max):
7937  """evaluate_if_good_index(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt, DerivativeAccumulator da, double max) -> double"""
7938  return _IMP_kernel.TripletScore_evaluate_if_good_index(self, m, vt, da, max)
7939 
7940 
7941  def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
7942  """evaluate_if_good_indexes(TripletScore self, Model m, IMP::ParticleIndexTriplets const & o, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7943  return _IMP_kernel.TripletScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
7944 
7945 
7946  def create_current_decomposition(self, m, vt):
7947  """create_current_decomposition(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
7948  return _IMP_kernel.TripletScore_create_current_decomposition(self, m, vt)
7949 
7950 
7951  def do_create_current_decomposition(self, m, vt):
7952  """do_create_current_decomposition(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
7953  return _IMP_kernel.TripletScore_do_create_current_decomposition(self, m, vt)
7954 
7955  __swig_destroy__ = _IMP_kernel.delete_TripletScore
7956  __del__ = lambda self: None
7957 
7958  def __str__(self):
7959  """__str__(TripletScore self) -> std::string"""
7960  return _IMP_kernel.TripletScore___str__(self)
7961 
7962 
7963  def __repr__(self):
7964  """__repr__(TripletScore self) -> std::string"""
7965  return _IMP_kernel.TripletScore___repr__(self)
7966 
7967 
7968  @staticmethod
7969  def get_from(o):
7970  return _object_cast_to_TripletScore(o)
7971 
7972 
7973  def get_type_name(self):
7974  return self.__class__.__name__
7975  def do_show(self, out):
7976  pass
7977  def get_version_info(self):
7978  if"IMP" == "IMP":
7979  return VersionInfo(self.__module__,
7980  __import__(self.__module__).get_module_version())
7981  else:
7982  return IMP.VersionInfo(self.__module__,
7983  __import__(self.__module__).get_module_version())
7984  @staticmethod
7985  def get_from(o):
7986  return _object_cast_to_TripletScore(o)
7987 
7988  def __disown__(self):
7989  self.this.disown()
7990  _IMP_kernel.disown_TripletScore(self)
7991  return weakref_proxy(self)
7992 
7993  def do_get_inputs(self, m, pis):
7994  """do_get_inputs(TripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7995  return _IMP_kernel.TripletScore_do_get_inputs(self, m, pis)
7996 
7997 
7998  def do_destroy(self):
7999  """do_destroy(TripletScore self)"""
8000  return _IMP_kernel.TripletScore_do_destroy(self)
8001 
8002 TripletScore_swigregister = _IMP_kernel.TripletScore_swigregister
8003 TripletScore_swigregister(TripletScore)
8004 
8005 class TripletPredicate(_ParticleInputs, Object):
8006  """Proxy of C++ IMP::TripletPredicate class."""
8007 
8008  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8009 
8010  def __init__(self, *args):
8011  """
8012  __init__(IMP::TripletPredicate self, std::string name) -> TripletPredicate
8013  __init__(IMP::TripletPredicate self) -> TripletPredicate
8014  """
8015  if self.__class__ == TripletPredicate:
8016  _self = None
8017  else:
8018  _self = self
8019  this = _IMP_kernel.new_TripletPredicate(_self, *args)
8020  try:
8021  self.this.append(this)
8022  except __builtin__.Exception:
8023  self.this = this
8024 
8025  if self.__class__ != TripletPredicate:
8026  _director_objects.register(self)
8027 
8028 
8029 
8030 
8031  def get_value(self, *args):
8032  """
8033  get_value(TripletPredicate self, IMP::ParticleTriplet const & vt) -> int
8034  get_value(TripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
8035  """
8036  return _IMP_kernel.TripletPredicate_get_value(self, *args)
8037 
8038 
8039  def setup_for_get_value_index_in_batch(self, arg0):
8040  """setup_for_get_value_index_in_batch(TripletPredicate self, Model arg0)"""
8041  return _IMP_kernel.TripletPredicate_setup_for_get_value_index_in_batch(self, arg0)
8042 
8043 
8044  def get_value_index_in_batch(self, m, vt):
8045  """get_value_index_in_batch(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int"""
8046  return _IMP_kernel.TripletPredicate_get_value_index_in_batch(self, m, vt)
8047 
8048 
8049  def __call__(self, m, vt):
8050  """__call__(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int"""
8051  return _IMP_kernel.TripletPredicate___call__(self, m, vt)
8052 
8053 
8054  def get_value_index(self, *args):
8055  """
8056  get_value_index(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int
8057  get_value_index(TripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
8058  """
8059  return _IMP_kernel.TripletPredicate_get_value_index(self, *args)
8060 
8061  __swig_destroy__ = _IMP_kernel.delete_TripletPredicate
8062  __del__ = lambda self: None
8063 
8064  def __str__(self):
8065  """__str__(TripletPredicate self) -> std::string"""
8066  return _IMP_kernel.TripletPredicate___str__(self)
8067 
8068 
8069  def __repr__(self):
8070  """__repr__(TripletPredicate self) -> std::string"""
8071  return _IMP_kernel.TripletPredicate___repr__(self)
8072 
8073 
8074  @staticmethod
8075  def get_from(o):
8076  return _object_cast_to_TripletPredicate(o)
8077 
8078 
8079  def get_type_name(self):
8080  return self.__class__.__name__
8081  def do_show(self, out):
8082  pass
8083  def get_version_info(self):
8084  if"IMP" == "IMP":
8085  return VersionInfo(self.__module__,
8086  __import__(self.__module__).get_module_version())
8087  else:
8088  return IMP.VersionInfo(self.__module__,
8089  __import__(self.__module__).get_module_version())
8090  @staticmethod
8091  def get_from(o):
8092  return _object_cast_to_TripletPredicate(o)
8093 
8094  def __disown__(self):
8095  self.this.disown()
8096  _IMP_kernel.disown_TripletPredicate(self)
8097  return weakref_proxy(self)
8098 
8099  def do_get_inputs(self, m, pis):
8100  """do_get_inputs(TripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8101  return _IMP_kernel.TripletPredicate_do_get_inputs(self, m, pis)
8102 
8103 
8104  def do_destroy(self):
8105  """do_destroy(TripletPredicate self)"""
8106  return _IMP_kernel.TripletPredicate_do_destroy(self)
8107 
8108 TripletPredicate_swigregister = _IMP_kernel.TripletPredicate_swigregister
8109 TripletPredicate_swigregister(TripletPredicate)
8110 
8111 class TripletContainer(Container):
8112  """Proxy of C++ IMP::TripletContainer class."""
8113 
8114  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8115 
8116  def apply_generic(self, m):
8117  """apply_generic(TripletContainer self, TripletModifier m)"""
8118  return _IMP_kernel.TripletContainer_apply_generic(self, m)
8119 
8120 
8121  def apply(self, sm):
8122  """apply(TripletContainer self, TripletModifier sm)"""
8123  return _IMP_kernel.TripletContainer_apply(self, sm)
8124 
8125 
8126  def get_range_indexes(self):
8127  """get_range_indexes(TripletContainer self) -> IMP::ParticleIndexTriplets"""
8128  return _IMP_kernel.TripletContainer_get_range_indexes(self)
8129 
8130 
8131  def get_contents(self):
8132  """get_contents(TripletContainer self) -> IMP::ParticleIndexTriplets const &"""
8133  return _IMP_kernel.TripletContainer_get_contents(self)
8134 
8135 
8136  def get_indexes(self):
8137  """get_indexes(TripletContainer self) -> IMP::ParticleIndexTriplets"""
8138  return _IMP_kernel.TripletContainer_get_indexes(self)
8139 
8140 
8141  def get(self, *args):
8142  """
8143  get(TripletContainer self) -> IMP::ParticleTripletsTemp
8144  get(TripletContainer self, unsigned int i) -> IMP::ParticleTriplet
8145  """
8146  return _IMP_kernel.TripletContainer_get(self, *args)
8147 
8148 
8149  def get_number(self):
8150  """get_number(TripletContainer self) -> unsigned int"""
8151  return _IMP_kernel.TripletContainer_get_number(self)
8152 
8153 
8154  def get_particle_triplets(self):
8155  """get_particle_triplets(TripletContainer self) -> IMP::ParticleTripletsTemp"""
8156  return _IMP_kernel.TripletContainer_get_particle_triplets(self)
8157 
8158 
8159  def get_particle_triplet(self, i):
8160  """get_particle_triplet(TripletContainer self, unsigned int i) -> IMP::ParticleTriplet"""
8161  return _IMP_kernel.TripletContainer_get_particle_triplet(self, i)
8162 
8163 
8164  def __init__(self, *args):
8165  """
8166  __init__(IMP::TripletContainer self, Model m, std::string name) -> TripletContainer
8167  __init__(IMP::TripletContainer self, Model m) -> TripletContainer
8168  """
8169  if self.__class__ == TripletContainer:
8170  _self = None
8171  else:
8172  _self = self
8173  this = _IMP_kernel.new_TripletContainer(_self, *args)
8174  try:
8175  self.this.append(this)
8176  except __builtin__.Exception:
8177  self.this = this
8178 
8179  if self.__class__ != TripletContainer:
8180  _director_objects.register(self)
8181 
8182 
8183 
8184 
8185  def do_apply(self, sm):
8186  """do_apply(TripletContainer self, TripletModifier sm)"""
8187  return _IMP_kernel.TripletContainer_do_apply(self, sm)
8188 
8189 
8190  def do_get_provides_access(self):
8191  """do_get_provides_access(TripletContainer self) -> bool"""
8192  return _IMP_kernel.TripletContainer_do_get_provides_access(self)
8193 
8194  __swig_destroy__ = _IMP_kernel.delete_TripletContainer
8195  __del__ = lambda self: None
8196 
8197  def __str__(self):
8198  """__str__(TripletContainer self) -> std::string"""
8199  return _IMP_kernel.TripletContainer___str__(self)
8200 
8201 
8202  def __repr__(self):
8203  """__repr__(TripletContainer self) -> std::string"""
8204  return _IMP_kernel.TripletContainer___repr__(self)
8205 
8206 
8207  @staticmethod
8208  def get_from(o):
8209  return _object_cast_to_TripletContainer(o)
8210 
8211 
8212  def get_type_name(self):
8213  return self.__class__.__name__
8214  def do_show(self, out):
8215  pass
8216  def get_version_info(self):
8217  if"IMP" == "IMP":
8218  return VersionInfo(self.__module__,
8219  __import__(self.__module__).get_module_version())
8220  else:
8221  return IMP.VersionInfo(self.__module__,
8222  __import__(self.__module__).get_module_version())
8223  @staticmethod
8224  def get_from(o):
8225  return _object_cast_to_TripletContainer(o)
8226 
8227  def __disown__(self):
8228  self.this.disown()
8229  _IMP_kernel.disown_TripletContainer(self)
8230  return weakref_proxy(self)
8231 
8232  def do_destroy(self):
8233  """do_destroy(TripletContainer self)"""
8234  return _IMP_kernel.TripletContainer_do_destroy(self)
8235 
8236 
8237  def handle_set_has_required_score_states(self, arg0):
8238  """handle_set_has_required_score_states(TripletContainer self, bool arg0)"""
8239  return _IMP_kernel.TripletContainer_handle_set_has_required_score_states(self, arg0)
8240 
8241 
8242  def do_get_inputs(self):
8243  """do_get_inputs(TripletContainer self) -> IMP::ModelObjectsTemp"""
8244  return _IMP_kernel.TripletContainer_do_get_inputs(self)
8245 
8246 
8247  def do_get_interactions(self):
8248  """do_get_interactions(TripletContainer self) -> IMP::ModelObjectsTemps"""
8249  return _IMP_kernel.TripletContainer_do_get_interactions(self)
8250 
8251 
8252  def do_get_contents_hash(self):
8253  """do_get_contents_hash(TripletContainer self) -> std::size_t"""
8254  return _IMP_kernel.TripletContainer_do_get_contents_hash(self)
8255 
8256 TripletContainer_swigregister = _IMP_kernel.TripletContainer_swigregister
8257 TripletContainer_swigregister(TripletContainer)
8258 
8259 class _TripletContainerAdaptor(_InputAdaptor):
8260  """Proxy of C++ IMP::TripletContainerAdaptor class."""
8261 
8262  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8263  __repr__ = _swig_repr
8264 
8265  def __init__(self, *args):
8266  """
8267  __init__(IMP::TripletContainerAdaptor self) -> _TripletContainerAdaptor
8268  __init__(IMP::TripletContainerAdaptor self, TripletContainer c) -> _TripletContainerAdaptor
8269  __init__(IMP::TripletContainerAdaptor self, IMP::ParticleTripletsTemp const & t) -> _TripletContainerAdaptor
8270  """
8271  this = _IMP_kernel.new__TripletContainerAdaptor(*args)
8272  try:
8273  self.this.append(this)
8274  except __builtin__.Exception:
8275  self.this = this
8276 
8277  def set_name_if_default(self, name):
8278  """set_name_if_default(_TripletContainerAdaptor self, std::string name)"""
8279  return _IMP_kernel._TripletContainerAdaptor_set_name_if_default(self, name)
8280 
8281  __swig_destroy__ = _IMP_kernel.delete__TripletContainerAdaptor
8282  __del__ = lambda self: None
8283 _TripletContainerAdaptor_swigregister = _IMP_kernel._TripletContainerAdaptor_swigregister
8284 _TripletContainerAdaptor_swigregister(_TripletContainerAdaptor)
8285 
8286 
8287 def write_particles_to_buffer(particles, keys):
8288  """write_particles_to_buffer(IMP::ParticlesTemp const & particles, IMP::FloatKeys const & keys) -> IMP::Vector< char >"""
8289  return _IMP_kernel.write_particles_to_buffer(particles, keys)
8290 
8291 def read_particles_from_buffer(buffer, particles, keys):
8292  """read_particles_from_buffer(IMP::Vector< char > const & buffer, IMP::ParticlesTemp const & particles, IMP::FloatKeys const & keys)"""
8293  return _IMP_kernel.read_particles_from_buffer(buffer, particles, keys)
8294 
8295 def get_particles(m, ps):
8296  """get_particles(Model m, IMP::ParticleIndexes const & ps) -> IMP::ParticlesTemp"""
8297  return _IMP_kernel.get_particles(m, ps)
8298 
8299 def get_indexes(*args):
8300  """
8301  get_indexes(IMP::ParticlesTemp const & ps) -> IMP::ParticleIndexes
8302  get_indexes(IMP::ParticlePairsTemp const & ps) -> IMP::ParticleIndexPairs
8303  """
8304  return _IMP_kernel.get_indexes(*args)
8305 class _ParticleIndexAdaptor(object):
8306  """Proxy of C++ IMP::ParticleIndexAdaptor class."""
8307 
8308  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8309  __repr__ = _swig_repr
8310 
8311  def __init__(self, *args):
8312  """
8313  __init__(IMP::ParticleIndexAdaptor self, Particle p) -> _ParticleIndexAdaptor
8314  __init__(IMP::ParticleIndexAdaptor self, ParticleIndex pi) -> _ParticleIndexAdaptor
8315  __init__(IMP::ParticleIndexAdaptor self, Decorator d) -> _ParticleIndexAdaptor
8316  """
8317  this = _IMP_kernel.new__ParticleIndexAdaptor(*args)
8318  try:
8319  self.this.append(this)
8320  except __builtin__.Exception:
8321  self.this = this
8322  __swig_destroy__ = _IMP_kernel.delete__ParticleIndexAdaptor
8323  __del__ = lambda self: None
8324 _ParticleIndexAdaptor_swigregister = _IMP_kernel._ParticleIndexAdaptor_swigregister
8325 _ParticleIndexAdaptor_swigregister(_ParticleIndexAdaptor)
8326 
8327 class _ParticleIndexesAdaptor(_InputAdaptor):
8328  """Proxy of C++ IMP::ParticleIndexesAdaptor class."""
8329 
8330  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8331  __repr__ = _swig_repr
8332 
8333  def __init__(self, *args):
8334  """
8335  __init__(IMP::ParticleIndexesAdaptor self, IMP::ParticlesTemp const & ps) -> _ParticleIndexesAdaptor
8336  __init__(IMP::ParticleIndexesAdaptor self, IMP::ParticleIndexes const & pi) -> _ParticleIndexesAdaptor
8337  __init__(IMP::ParticleIndexesAdaptor self) -> _ParticleIndexesAdaptor
8338  """
8339  this = _IMP_kernel.new__ParticleIndexesAdaptor(*args)
8340  try:
8341  self.this.append(this)
8342  except __builtin__.Exception:
8343  self.this = this
8344  __swig_destroy__ = _IMP_kernel.delete__ParticleIndexesAdaptor
8345  __del__ = lambda self: None
8346 _ParticleIndexesAdaptor_swigregister = _IMP_kernel._ParticleIndexesAdaptor_swigregister
8347 _ParticleIndexesAdaptor_swigregister(_ParticleIndexesAdaptor)
8348 
8349 class _ParticleIndexPairsAdaptor(object):
8350  """Proxy of C++ IMP::ParticleIndexPairsAdaptor class."""
8351 
8352  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8353  __repr__ = _swig_repr
8354 
8355  def __init__(self, *args):
8356  """
8357  __init__(IMP::ParticleIndexPairsAdaptor self, IMP::ParticlePairsTemp const & ps) -> _ParticleIndexPairsAdaptor
8358  __init__(IMP::ParticleIndexPairsAdaptor self, IMP::ParticleIndexPairs const & pi) -> _ParticleIndexPairsAdaptor
8359  __init__(IMP::ParticleIndexPairsAdaptor self) -> _ParticleIndexPairsAdaptor
8360  """
8361  this = _IMP_kernel.new__ParticleIndexPairsAdaptor(*args)
8362  try:
8363  self.this.append(this)
8364  except __builtin__.Exception:
8365  self.this = this
8366  __swig_destroy__ = _IMP_kernel.delete__ParticleIndexPairsAdaptor
8367  __del__ = lambda self: None
8368 _ParticleIndexPairsAdaptor_swigregister = _IMP_kernel._ParticleIndexPairsAdaptor_swigregister
8369 _ParticleIndexPairsAdaptor_swigregister(_ParticleIndexPairsAdaptor)
8370 
8371 class _ConstRestraint(Restraint):
8372  """Proxy of C++ IMP::internal::_ConstRestraint class."""
8373 
8374  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8375 
8376  def __init__(self, *args):
8377  """
8378  __init__(IMP::internal::_ConstRestraint self, double v, IMP::ParticlesTemp const ps) -> _ConstRestraint
8379  __init__(IMP::internal::_ConstRestraint self, Model m, IMP::ParticleIndexes const & pis, double v) -> _ConstRestraint
8380  """
8381  this = _IMP_kernel.new__ConstRestraint(*args)
8382  try:
8383  self.this.append(this)
8384  except __builtin__.Exception:
8385  self.this = this
8386 
8387  def get_value(self):
8388  """get_value(_ConstRestraint self) -> double"""
8389  return _IMP_kernel._ConstRestraint_get_value(self)
8390 
8391 
8392  def do_create_decomposition(self):
8393  """do_create_decomposition(_ConstRestraint self) -> IMP::Restraints"""
8394  return _IMP_kernel._ConstRestraint_do_create_decomposition(self)
8395 
8396 
8397  def do_get_inputs(self):
8398  """do_get_inputs(_ConstRestraint self) -> IMP::ModelObjectsTemp"""
8399  return _IMP_kernel._ConstRestraint_do_get_inputs(self)
8400 
8401 
8402  def get_version_info(self):
8403  """get_version_info(_ConstRestraint self) -> VersionInfo"""
8404  return _IMP_kernel._ConstRestraint_get_version_info(self)
8405 
8406 
8407  def __str__(self):
8408  """__str__(_ConstRestraint self) -> std::string"""
8409  return _IMP_kernel._ConstRestraint___str__(self)
8410 
8411 
8412  def __repr__(self):
8413  """__repr__(_ConstRestraint self) -> std::string"""
8414  return _IMP_kernel._ConstRestraint___repr__(self)
8415 
8416 
8417  @staticmethod
8418  def get_from(o):
8419  return _object_cast_to__ConstRestraint(o)
8420 
8421 _ConstRestraint_swigregister = _IMP_kernel._ConstRestraint_swigregister
8422 _ConstRestraint_swigregister(_ConstRestraint)
8423 
8424 class _ConstSingletonScore(SingletonScore):
8425  """Proxy of C++ IMP::internal::_ConstSingletonScore class."""
8426 
8427  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8428  __repr__ = _swig_repr
8429 
8430  def __init__(self, v):
8431  """__init__(IMP::internal::_ConstSingletonScore self, double v) -> _ConstSingletonScore"""
8432  this = _IMP_kernel.new__ConstSingletonScore(v)
8433  try:
8434  self.this.append(this)
8435  except __builtin__.Exception:
8436  self.this = this
8437 
8438  def do_get_inputs(self, arg2, arg3):
8439  """do_get_inputs(_ConstSingletonScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
8440  return _IMP_kernel._ConstSingletonScore_do_get_inputs(self, arg2, arg3)
8441 
8442 
8443  def get_version_info(self):
8444  """get_version_info(_ConstSingletonScore self) -> VersionInfo"""
8445  return _IMP_kernel._ConstSingletonScore_get_version_info(self)
8446 
8447 _ConstSingletonScore_swigregister = _IMP_kernel._ConstSingletonScore_swigregister
8448 _ConstSingletonScore_swigregister(_ConstSingletonScore)
8449 
8450 class _ConstPairScore(PairScore):
8451  """Proxy of C++ IMP::internal::_ConstPairScore class."""
8452 
8453  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8454  __repr__ = _swig_repr
8455 
8456  def __init__(self, v):
8457  """__init__(IMP::internal::_ConstPairScore self, double v) -> _ConstPairScore"""
8458  this = _IMP_kernel.new__ConstPairScore(v)
8459  try:
8460  self.this.append(this)
8461  except __builtin__.Exception:
8462  self.this = this
8463 
8464  def do_get_inputs(self, arg2, arg3):
8465  """do_get_inputs(_ConstPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
8466  return _IMP_kernel._ConstPairScore_do_get_inputs(self, arg2, arg3)
8467 
8468 
8469  def get_version_info(self):
8470  """get_version_info(_ConstPairScore self) -> VersionInfo"""
8471  return _IMP_kernel._ConstPairScore_get_version_info(self)
8472 
8473 _ConstPairScore_swigregister = _IMP_kernel._ConstPairScore_swigregister
8474 _ConstPairScore_swigregister(_ConstPairScore)
8475 
8476 class _TrivialDecorator(Decorator):
8477  """Proxy of C++ IMP::internal::_TrivialDecorator class."""
8478 
8479  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8480 
8481  def __init__(self, *args):
8482  """
8483  __init__(IMP::internal::_TrivialDecorator self) -> _TrivialDecorator
8484  __init__(IMP::internal::_TrivialDecorator self, Model m, ParticleIndex id) -> _TrivialDecorator
8485  __init__(IMP::internal::_TrivialDecorator self, _ParticleAdaptor d) -> _TrivialDecorator
8486  """
8487  this = _IMP_kernel.new__TrivialDecorator(*args)
8488  try:
8489  self.this.append(this)
8490  except __builtin__.Exception:
8491  self.this = this
8492 
8493  def show(self, *args):
8494  """
8495  show(_TrivialDecorator self, _ostream out)
8496  show(_TrivialDecorator self)
8497  """
8498  return _IMP_kernel._TrivialDecorator_show(self, *args)
8499 
8500 
8501  def setup_particle(*args):
8502  """
8503  setup_particle(Model m, ParticleIndex pi) -> _TrivialDecorator
8504  setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
8505  """
8506  return _IMP_kernel._TrivialDecorator_setup_particle(*args)
8507 
8508  setup_particle = staticmethod(setup_particle)
8509 
8510  def get_is_setup(*args):
8511  """
8512  get_is_setup(_ParticleAdaptor p) -> bool
8513  get_is_setup(Model m, ParticleIndex pi) -> bool
8514  """
8515  return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
8516 
8517  get_is_setup = staticmethod(get_is_setup)
8518 
8519  def add_attribute(self, *args):
8520  """
8521  add_attribute(_TrivialDecorator self, FloatKey k, IMP::Float v, bool opt)
8522  add_attribute(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
8523  add_attribute(_TrivialDecorator self, IntKey a0, IMP::Int a1)
8524  add_attribute(_TrivialDecorator self, StringKey a0, IMP::String a1)
8525  add_attribute(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
8526  add_attribute(_TrivialDecorator self, ObjectKey a0, Object a1)
8527  """
8528  return _IMP_kernel._TrivialDecorator_add_attribute(self, *args)
8529 
8530 
8531  def get_value(self, *args):
8532  """
8533  get_value(_TrivialDecorator self, FloatKey a0) -> IMP::Float
8534  get_value(_TrivialDecorator self, IntKey a0) -> IMP::Int
8535  get_value(_TrivialDecorator self, StringKey a0) -> IMP::String
8536  get_value(_TrivialDecorator self, ParticleIndexKey a0) -> Particle
8537  get_value(_TrivialDecorator self, ObjectKey a0) -> Object
8538  """
8539  return _IMP_kernel._TrivialDecorator_get_value(self, *args)
8540 
8541 
8542  def set_value(self, *args):
8543  """
8544  set_value(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
8545  set_value(_TrivialDecorator self, IntKey a0, IMP::Int a1)
8546  set_value(_TrivialDecorator self, StringKey a0, IMP::String a1)
8547  set_value(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
8548  set_value(_TrivialDecorator self, ObjectKey a0, Object a1)
8549  """
8550  return _IMP_kernel._TrivialDecorator_set_value(self, *args)
8551 
8552 
8553  def remove_attribute(self, *args):
8554  """
8555  remove_attribute(_TrivialDecorator self, FloatKey a0)
8556  remove_attribute(_TrivialDecorator self, IntKey a0)
8557  remove_attribute(_TrivialDecorator self, StringKey a0)
8558  remove_attribute(_TrivialDecorator self, ParticleIndexKey a0)
8559  remove_attribute(_TrivialDecorator self, ObjectKey a0)
8560  """
8561  return _IMP_kernel._TrivialDecorator_remove_attribute(self, *args)
8562 
8563 
8564  def has_attribute(self, *args):
8565  """
8566  has_attribute(_TrivialDecorator self, FloatKey a0) -> bool
8567  has_attribute(_TrivialDecorator self, IntKey a0) -> bool
8568  has_attribute(_TrivialDecorator self, StringKey a0) -> bool
8569  has_attribute(_TrivialDecorator self, ParticleIndexKey a0) -> bool
8570  has_attribute(_TrivialDecorator self, ObjectKey a0) -> bool
8571  """
8572  return _IMP_kernel._TrivialDecorator_has_attribute(self, *args)
8573 
8574 
8575  def get_derivative(self, a0):
8576  """get_derivative(_TrivialDecorator self, FloatKey a0) -> double"""
8577  return _IMP_kernel._TrivialDecorator_get_derivative(self, a0)
8578 
8579 
8580  def get_name(self):
8581  """get_name(_TrivialDecorator self) -> std::string"""
8582  return _IMP_kernel._TrivialDecorator_get_name(self)
8583 
8584 
8585  def clear_caches(self):
8586  """clear_caches(_TrivialDecorator self)"""
8587  return _IMP_kernel._TrivialDecorator_clear_caches(self)
8588 
8589 
8590  def set_name(self, a0):
8591  """set_name(_TrivialDecorator self, std::string a0)"""
8592  return _IMP_kernel._TrivialDecorator_set_name(self, a0)
8593 
8594 
8595  def set_check_level(self, a0):
8596  """set_check_level(_TrivialDecorator self, IMP::CheckLevel a0)"""
8597  return _IMP_kernel._TrivialDecorator_set_check_level(self, a0)
8598 
8599 
8600  def add_to_derivative(self, a0, a1, a2):
8601  """add_to_derivative(_TrivialDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8602  return _IMP_kernel._TrivialDecorator_add_to_derivative(self, a0, a1, a2)
8603 
8604 
8605  def set_is_optimized(self, a0, a1):
8606  """set_is_optimized(_TrivialDecorator self, FloatKey a0, bool a1)"""
8607  return _IMP_kernel._TrivialDecorator_set_is_optimized(self, a0, a1)
8608 
8609 
8610  def get_is_optimized(self, a0):
8611  """get_is_optimized(_TrivialDecorator self, FloatKey a0) -> bool"""
8612  return _IMP_kernel._TrivialDecorator_get_is_optimized(self, a0)
8613 
8614 
8615  def get_check_level(self):
8616  """get_check_level(_TrivialDecorator self) -> IMP::CheckLevel"""
8617  return _IMP_kernel._TrivialDecorator_get_check_level(self)
8618 
8619 
8620  def __eq__(self, *args):
8621  """
8622  __eq__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8623  __eq__(_TrivialDecorator self, Particle d) -> bool
8624  """
8625  return _IMP_kernel._TrivialDecorator___eq__(self, *args)
8626 
8627 
8628  def __ne__(self, *args):
8629  """
8630  __ne__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8631  __ne__(_TrivialDecorator self, Particle d) -> bool
8632  """
8633  return _IMP_kernel._TrivialDecorator___ne__(self, *args)
8634 
8635 
8636  def __le__(self, *args):
8637  """
8638  __le__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8639  __le__(_TrivialDecorator self, Particle d) -> bool
8640  """
8641  return _IMP_kernel._TrivialDecorator___le__(self, *args)
8642 
8643 
8644  def __lt__(self, *args):
8645  """
8646  __lt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8647  __lt__(_TrivialDecorator self, Particle d) -> bool
8648  """
8649  return _IMP_kernel._TrivialDecorator___lt__(self, *args)
8650 
8651 
8652  def __ge__(self, *args):
8653  """
8654  __ge__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8655  __ge__(_TrivialDecorator self, Particle d) -> bool
8656  """
8657  return _IMP_kernel._TrivialDecorator___ge__(self, *args)
8658 
8659 
8660  def __gt__(self, *args):
8661  """
8662  __gt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8663  __gt__(_TrivialDecorator self, Particle d) -> bool
8664  """
8665  return _IMP_kernel._TrivialDecorator___gt__(self, *args)
8666 
8667 
8668  def __hash__(self):
8669  """__hash__(_TrivialDecorator self) -> std::size_t"""
8670  return _IMP_kernel._TrivialDecorator___hash__(self)
8671 
8672 
8673  def __str__(self):
8674  """__str__(_TrivialDecorator self) -> std::string"""
8675  return _IMP_kernel._TrivialDecorator___str__(self)
8676 
8677 
8678  def __repr__(self):
8679  """__repr__(_TrivialDecorator self) -> std::string"""
8680  return _IMP_kernel._TrivialDecorator___repr__(self)
8681 
8682  __swig_destroy__ = _IMP_kernel.delete__TrivialDecorator
8683  __del__ = lambda self: None
8684 _TrivialDecorator_swigregister = _IMP_kernel._TrivialDecorator_swigregister
8685 _TrivialDecorator_swigregister(_TrivialDecorator)
8686 
8687 def _TrivialDecorator_setup_particle(*args):
8688  """
8689  setup_particle(Model m, ParticleIndex pi) -> _TrivialDecorator
8690  _TrivialDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
8691  """
8692  return _IMP_kernel._TrivialDecorator_setup_particle(*args)
8693 
8694 def _TrivialDecorator_get_is_setup(*args):
8695  """
8696  get_is_setup(_ParticleAdaptor p) -> bool
8697  _TrivialDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
8698  """
8699  return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
8700 
8701 class _TrivialDerivedDecorator(_TrivialDecorator):
8702  """Proxy of C++ IMP::internal::_TrivialDerivedDecorator class."""
8703 
8704  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8705 
8706  def __init__(self, *args):
8707  """
8708  __init__(IMP::internal::_TrivialDerivedDecorator self) -> _TrivialDerivedDecorator
8709  __init__(IMP::internal::_TrivialDerivedDecorator self, Model m, ParticleIndex id) -> _TrivialDerivedDecorator
8710  __init__(IMP::internal::_TrivialDerivedDecorator self, _ParticleAdaptor d) -> _TrivialDerivedDecorator
8711  """
8712  this = _IMP_kernel.new__TrivialDerivedDecorator(*args)
8713  try:
8714  self.this.append(this)
8715  except __builtin__.Exception:
8716  self.this = this
8717 
8718  def show(self, *args):
8719  """
8720  show(_TrivialDerivedDecorator self, _ostream out)
8721  show(_TrivialDerivedDecorator self)
8722  """
8723  return _IMP_kernel._TrivialDerivedDecorator_show(self, *args)
8724 
8725 
8726  def setup_particle(*args):
8727  """
8728  setup_particle(Model m, ParticleIndex pi) -> _TrivialDerivedDecorator
8729  setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
8730  """
8731  return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
8732 
8733  setup_particle = staticmethod(setup_particle)
8734 
8735  def get_is_setup(*args):
8736  """
8737  get_is_setup(_ParticleAdaptor p) -> bool
8738  get_is_setup(Model m, ParticleIndex pi) -> bool
8739  """
8740  return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
8741 
8742  get_is_setup = staticmethod(get_is_setup)
8743 
8744  def add_attribute(self, *args):
8745  """
8746  add_attribute(_TrivialDerivedDecorator self, FloatKey k, IMP::Float v, bool opt)
8747  add_attribute(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
8748  add_attribute(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
8749  add_attribute(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
8750  add_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
8751  add_attribute(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
8752  """
8753  return _IMP_kernel._TrivialDerivedDecorator_add_attribute(self, *args)
8754 
8755 
8756  def get_value(self, *args):
8757  """
8758  get_value(_TrivialDerivedDecorator self, FloatKey a0) -> IMP::Float
8759  get_value(_TrivialDerivedDecorator self, IntKey a0) -> IMP::Int
8760  get_value(_TrivialDerivedDecorator self, StringKey a0) -> IMP::String
8761  get_value(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> Particle
8762  get_value(_TrivialDerivedDecorator self, ObjectKey a0) -> Object
8763  """
8764  return _IMP_kernel._TrivialDerivedDecorator_get_value(self, *args)
8765 
8766 
8767  def set_value(self, *args):
8768  """
8769  set_value(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
8770  set_value(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
8771  set_value(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
8772  set_value(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
8773  set_value(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
8774  """
8775  return _IMP_kernel._TrivialDerivedDecorator_set_value(self, *args)
8776 
8777 
8778  def remove_attribute(self, *args):
8779  """
8780  remove_attribute(_TrivialDerivedDecorator self, FloatKey a0)
8781  remove_attribute(_TrivialDerivedDecorator self, IntKey a0)
8782  remove_attribute(_TrivialDerivedDecorator self, StringKey a0)
8783  remove_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0)
8784  remove_attribute(_TrivialDerivedDecorator self, ObjectKey a0)
8785  """
8786  return _IMP_kernel._TrivialDerivedDecorator_remove_attribute(self, *args)
8787 
8788 
8789  def has_attribute(self, *args):
8790  """
8791  has_attribute(_TrivialDerivedDecorator self, FloatKey a0) -> bool
8792  has_attribute(_TrivialDerivedDecorator self, IntKey a0) -> bool
8793  has_attribute(_TrivialDerivedDecorator self, StringKey a0) -> bool
8794  has_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> bool
8795  has_attribute(_TrivialDerivedDecorator self, ObjectKey a0) -> bool
8796  """
8797  return _IMP_kernel._TrivialDerivedDecorator_has_attribute(self, *args)
8798 
8799 
8800  def get_derivative(self, a0):
8801  """get_derivative(_TrivialDerivedDecorator self, FloatKey a0) -> double"""
8802  return _IMP_kernel._TrivialDerivedDecorator_get_derivative(self, a0)
8803 
8804 
8805  def get_name(self):
8806  """get_name(_TrivialDerivedDecorator self) -> std::string"""
8807  return _IMP_kernel._TrivialDerivedDecorator_get_name(self)
8808 
8809 
8810  def clear_caches(self):
8811  """clear_caches(_TrivialDerivedDecorator self)"""
8812  return _IMP_kernel._TrivialDerivedDecorator_clear_caches(self)
8813 
8814 
8815  def set_name(self, a0):
8816  """set_name(_TrivialDerivedDecorator self, std::string a0)"""
8817  return _IMP_kernel._TrivialDerivedDecorator_set_name(self, a0)
8818 
8819 
8820  def set_check_level(self, a0):
8821  """set_check_level(_TrivialDerivedDecorator self, IMP::CheckLevel a0)"""
8822  return _IMP_kernel._TrivialDerivedDecorator_set_check_level(self, a0)
8823 
8824 
8825  def add_to_derivative(self, a0, a1, a2):
8826  """add_to_derivative(_TrivialDerivedDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8827  return _IMP_kernel._TrivialDerivedDecorator_add_to_derivative(self, a0, a1, a2)
8828 
8829 
8830  def set_is_optimized(self, a0, a1):
8831  """set_is_optimized(_TrivialDerivedDecorator self, FloatKey a0, bool a1)"""
8832  return _IMP_kernel._TrivialDerivedDecorator_set_is_optimized(self, a0, a1)
8833 
8834 
8835  def get_is_optimized(self, a0):
8836  """get_is_optimized(_TrivialDerivedDecorator self, FloatKey a0) -> bool"""
8837  return _IMP_kernel._TrivialDerivedDecorator_get_is_optimized(self, a0)
8838 
8839 
8840  def get_check_level(self):
8841  """get_check_level(_TrivialDerivedDecorator self) -> IMP::CheckLevel"""
8842  return _IMP_kernel._TrivialDerivedDecorator_get_check_level(self)
8843 
8844 
8845  def __eq__(self, *args):
8846  """
8847  __eq__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8848  __eq__(_TrivialDerivedDecorator self, Particle d) -> bool
8849  """
8850  return _IMP_kernel._TrivialDerivedDecorator___eq__(self, *args)
8851 
8852 
8853  def __ne__(self, *args):
8854  """
8855  __ne__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8856  __ne__(_TrivialDerivedDecorator self, Particle d) -> bool
8857  """
8858  return _IMP_kernel._TrivialDerivedDecorator___ne__(self, *args)
8859 
8860 
8861  def __le__(self, *args):
8862  """
8863  __le__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8864  __le__(_TrivialDerivedDecorator self, Particle d) -> bool
8865  """
8866  return _IMP_kernel._TrivialDerivedDecorator___le__(self, *args)
8867 
8868 
8869  def __lt__(self, *args):
8870  """
8871  __lt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8872  __lt__(_TrivialDerivedDecorator self, Particle d) -> bool
8873  """
8874  return _IMP_kernel._TrivialDerivedDecorator___lt__(self, *args)
8875 
8876 
8877  def __ge__(self, *args):
8878  """
8879  __ge__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8880  __ge__(_TrivialDerivedDecorator self, Particle d) -> bool
8881  """
8882  return _IMP_kernel._TrivialDerivedDecorator___ge__(self, *args)
8883 
8884 
8885  def __gt__(self, *args):
8886  """
8887  __gt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8888  __gt__(_TrivialDerivedDecorator self, Particle d) -> bool
8889  """
8890  return _IMP_kernel._TrivialDerivedDecorator___gt__(self, *args)
8891 
8892 
8893  def __hash__(self):
8894  """__hash__(_TrivialDerivedDecorator self) -> std::size_t"""
8895  return _IMP_kernel._TrivialDerivedDecorator___hash__(self)
8896 
8897 
8898  def __str__(self):
8899  """__str__(_TrivialDerivedDecorator self) -> std::string"""
8900  return _IMP_kernel._TrivialDerivedDecorator___str__(self)
8901 
8902 
8903  def __repr__(self):
8904  """__repr__(_TrivialDerivedDecorator self) -> std::string"""
8905  return _IMP_kernel._TrivialDerivedDecorator___repr__(self)
8906 
8907  __swig_destroy__ = _IMP_kernel.delete__TrivialDerivedDecorator
8908  __del__ = lambda self: None
8909 _TrivialDerivedDecorator_swigregister = _IMP_kernel._TrivialDerivedDecorator_swigregister
8910 _TrivialDerivedDecorator_swigregister(_TrivialDerivedDecorator)
8911 
8912 def _TrivialDerivedDecorator_setup_particle(*args):
8913  """
8914  setup_particle(Model m, ParticleIndex pi) -> _TrivialDerivedDecorator
8915  _TrivialDerivedDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
8916  """
8917  return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
8918 
8919 def _TrivialDerivedDecorator_get_is_setup(*args):
8920  """
8921  get_is_setup(_ParticleAdaptor p) -> bool
8922  _TrivialDerivedDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
8923  """
8924  return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
8925 
8926 class _TrivialTraitsDecorator(Decorator):
8927  """Proxy of C++ IMP::internal::_TrivialTraitsDecorator class."""
8928 
8929  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
8930 
8931  def get_decorator_traits(self):
8932  """get_decorator_traits(_TrivialTraitsDecorator self) -> StringKey"""
8933  return _IMP_kernel._TrivialTraitsDecorator_get_decorator_traits(self)
8934 
8935 
8936  def get_default_decorator_traits():
8937  """get_default_decorator_traits() -> StringKey"""
8938  return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
8939 
8940  get_default_decorator_traits = staticmethod(get_default_decorator_traits)
8941 
8942  def __init__(self, *args):
8943  """
8944  __init__(IMP::internal::_TrivialTraitsDecorator self) -> _TrivialTraitsDecorator
8945  __init__(IMP::internal::_TrivialTraitsDecorator self, Model m, ParticleIndex id, StringKey tr) -> _TrivialTraitsDecorator
8946  __init__(IMP::internal::_TrivialTraitsDecorator self, Model m, ParticleIndex id) -> _TrivialTraitsDecorator
8947  __init__(IMP::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
8948  __init__(IMP::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d) -> _TrivialTraitsDecorator
8949  """
8950  this = _IMP_kernel.new__TrivialTraitsDecorator(*args)
8951  try:
8952  self.this.append(this)
8953  except __builtin__.Exception:
8954  self.this = this
8955 
8956  def show(self, *args):
8957  """
8958  show(_TrivialTraitsDecorator self, _ostream out)
8959  show(_TrivialTraitsDecorator self)
8960  """
8961  return _IMP_kernel._TrivialTraitsDecorator_show(self, *args)
8962 
8963 
8964  def setup_particle(*args):
8965  """
8966  setup_particle(Model m, ParticleIndex pi, StringKey tr) -> _TrivialTraitsDecorator
8967  setup_particle(Model m, ParticleIndex pi) -> _TrivialTraitsDecorator
8968  setup_particle(_ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
8969  setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
8970  """
8971  return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
8972 
8973  setup_particle = staticmethod(setup_particle)
8974 
8975  def get_is_setup(*args):
8976  """
8977  get_is_setup(_ParticleAdaptor p, StringKey tr) -> bool
8978  get_is_setup(_ParticleAdaptor p) -> bool
8979  get_is_setup(Model m, ParticleIndex pi, StringKey k) -> bool
8980  get_is_setup(Model m, ParticleIndex pi) -> bool
8981  """
8982  return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
8983 
8984  get_is_setup = staticmethod(get_is_setup)
8985 
8986  def get_default_key():
8987  """get_default_key() -> StringKey"""
8988  return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
8989 
8990  get_default_key = staticmethod(get_default_key)
8991 
8992  def add_attribute(self, *args):
8993  """
8994  add_attribute(_TrivialTraitsDecorator self, FloatKey k, IMP::Float v, bool opt)
8995  add_attribute(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
8996  add_attribute(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
8997  add_attribute(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
8998  add_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
8999  add_attribute(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
9000  """
9001  return _IMP_kernel._TrivialTraitsDecorator_add_attribute(self, *args)
9002 
9003 
9004  def get_value(self, *args):
9005  """
9006  get_value(_TrivialTraitsDecorator self, FloatKey a0) -> IMP::Float
9007  get_value(_TrivialTraitsDecorator self, IntKey a0) -> IMP::Int
9008  get_value(_TrivialTraitsDecorator self, StringKey a0) -> IMP::String
9009  get_value(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> Particle
9010  get_value(_TrivialTraitsDecorator self, ObjectKey a0) -> Object
9011  """
9012  return _IMP_kernel._TrivialTraitsDecorator_get_value(self, *args)
9013 
9014 
9015  def set_value(self, *args):
9016  """
9017  set_value(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
9018  set_value(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
9019  set_value(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
9020  set_value(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
9021  set_value(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
9022  """
9023  return _IMP_kernel._TrivialTraitsDecorator_set_value(self, *args)
9024 
9025 
9026  def remove_attribute(self, *args):
9027  """
9028  remove_attribute(_TrivialTraitsDecorator self, FloatKey a0)
9029  remove_attribute(_TrivialTraitsDecorator self, IntKey a0)
9030  remove_attribute(_TrivialTraitsDecorator self, StringKey a0)
9031  remove_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0)
9032  remove_attribute(_TrivialTraitsDecorator self, ObjectKey a0)
9033  """
9034  return _IMP_kernel._TrivialTraitsDecorator_remove_attribute(self, *args)
9035 
9036 
9037  def has_attribute(self, *args):
9038  """
9039  has_attribute(_TrivialTraitsDecorator self, FloatKey a0) -> bool
9040  has_attribute(_TrivialTraitsDecorator self, IntKey a0) -> bool
9041  has_attribute(_TrivialTraitsDecorator self, StringKey a0) -> bool
9042  has_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> bool
9043  has_attribute(_TrivialTraitsDecorator self, ObjectKey a0) -> bool
9044  """
9045  return _IMP_kernel._TrivialTraitsDecorator_has_attribute(self, *args)
9046 
9047 
9048  def get_derivative(self, a0):
9049  """get_derivative(_TrivialTraitsDecorator self, FloatKey a0) -> double"""
9050  return _IMP_kernel._TrivialTraitsDecorator_get_derivative(self, a0)
9051 
9052 
9053  def get_name(self):
9054  """get_name(_TrivialTraitsDecorator self) -> std::string"""
9055  return _IMP_kernel._TrivialTraitsDecorator_get_name(self)
9056 
9057 
9058  def clear_caches(self):
9059  """clear_caches(_TrivialTraitsDecorator self)"""
9060  return _IMP_kernel._TrivialTraitsDecorator_clear_caches(self)
9061 
9062 
9063  def set_name(self, a0):
9064  """set_name(_TrivialTraitsDecorator self, std::string a0)"""
9065  return _IMP_kernel._TrivialTraitsDecorator_set_name(self, a0)
9066 
9067 
9068  def set_check_level(self, a0):
9069  """set_check_level(_TrivialTraitsDecorator self, IMP::CheckLevel a0)"""
9070  return _IMP_kernel._TrivialTraitsDecorator_set_check_level(self, a0)
9071 
9072 
9073  def add_to_derivative(self, a0, a1, a2):
9074  """add_to_derivative(_TrivialTraitsDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
9075  return _IMP_kernel._TrivialTraitsDecorator_add_to_derivative(self, a0, a1, a2)
9076 
9077 
9078  def set_is_optimized(self, a0, a1):
9079  """set_is_optimized(_TrivialTraitsDecorator self, FloatKey a0, bool a1)"""
9080  return _IMP_kernel._TrivialTraitsDecorator_set_is_optimized(self, a0, a1)
9081 
9082 
9083  def get_is_optimized(self, a0):
9084  """get_is_optimized(_TrivialTraitsDecorator self, FloatKey a0) -> bool"""
9085  return _IMP_kernel._TrivialTraitsDecorator_get_is_optimized(self, a0)
9086 
9087 
9088  def get_check_level(self):
9089  """get_check_level(_TrivialTraitsDecorator self) -> IMP::CheckLevel"""
9090  return _IMP_kernel._TrivialTraitsDecorator_get_check_level(self)
9091 
9092 
9093  def __eq__(self, *args):
9094  """
9095  __eq__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9096  __eq__(_TrivialTraitsDecorator self, Particle d) -> bool
9097  """
9098  return _IMP_kernel._TrivialTraitsDecorator___eq__(self, *args)
9099 
9100 
9101  def __ne__(self, *args):
9102  """
9103  __ne__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9104  __ne__(_TrivialTraitsDecorator self, Particle d) -> bool
9105  """
9106  return _IMP_kernel._TrivialTraitsDecorator___ne__(self, *args)
9107 
9108 
9109  def __le__(self, *args):
9110  """
9111  __le__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9112  __le__(_TrivialTraitsDecorator self, Particle d) -> bool
9113  """
9114  return _IMP_kernel._TrivialTraitsDecorator___le__(self, *args)
9115 
9116 
9117  def __lt__(self, *args):
9118  """
9119  __lt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9120  __lt__(_TrivialTraitsDecorator self, Particle d) -> bool
9121  """
9122  return _IMP_kernel._TrivialTraitsDecorator___lt__(self, *args)
9123 
9124 
9125  def __ge__(self, *args):
9126  """
9127  __ge__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9128  __ge__(_TrivialTraitsDecorator self, Particle d) -> bool
9129  """
9130  return _IMP_kernel._TrivialTraitsDecorator___ge__(self, *args)
9131 
9132 
9133  def __gt__(self, *args):
9134  """
9135  __gt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
9136  __gt__(_TrivialTraitsDecorator self, Particle d) -> bool
9137  """
9138  return _IMP_kernel._TrivialTraitsDecorator___gt__(self, *args)
9139 
9140 
9141  def __hash__(self):
9142  """__hash__(_TrivialTraitsDecorator self) -> std::size_t"""
9143  return _IMP_kernel._TrivialTraitsDecorator___hash__(self)
9144 
9145 
9146  def __str__(self):
9147  """__str__(_TrivialTraitsDecorator self) -> std::string"""
9148  return _IMP_kernel._TrivialTraitsDecorator___str__(self)
9149 
9150 
9151  def __repr__(self):
9152  """__repr__(_TrivialTraitsDecorator self) -> std::string"""
9153  return _IMP_kernel._TrivialTraitsDecorator___repr__(self)
9154 
9155  __swig_destroy__ = _IMP_kernel.delete__TrivialTraitsDecorator
9156  __del__ = lambda self: None
9157 _TrivialTraitsDecorator_swigregister = _IMP_kernel._TrivialTraitsDecorator_swigregister
9158 _TrivialTraitsDecorator_swigregister(_TrivialTraitsDecorator)
9159 
9160 def _TrivialTraitsDecorator_get_default_decorator_traits():
9161  """_TrivialTraitsDecorator_get_default_decorator_traits() -> StringKey"""
9162  return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
9163 
9164 def _TrivialTraitsDecorator_setup_particle(*args):
9165  """
9166  setup_particle(Model m, ParticleIndex pi, StringKey tr) -> _TrivialTraitsDecorator
9167  setup_particle(Model m, ParticleIndex pi) -> _TrivialTraitsDecorator
9168  setup_particle(_ParticleAdaptor d, StringKey tr) -> _TrivialTraitsDecorator
9169  _TrivialTraitsDecorator_setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
9170  """
9171  return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
9172 
9173 def _TrivialTraitsDecorator_get_is_setup(*args):
9174  """
9175  get_is_setup(_ParticleAdaptor p, StringKey tr) -> bool
9176  get_is_setup(_ParticleAdaptor p) -> bool
9177  get_is_setup(Model m, ParticleIndex pi, StringKey k) -> bool
9178  _TrivialTraitsDecorator_get_is_setup(Model m, ParticleIndex pi) -> bool
9179  """
9180  return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
9181 
9182 def _TrivialTraitsDecorator_get_default_key():
9183  """_TrivialTraitsDecorator_get_default_key() -> StringKey"""
9184  return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
9185 
9186 
9187 def __lshift__(*args):
9188  """
9189  __lshift__(_ostream out, _TrivialDecorator n) -> _ostream
9190  __lshift__(_ostream out, _TrivialDerivedDecorator n) -> _ostream
9191  __lshift__(_ostream out, _TrivialTraitsDecorator n) -> _ostream
9192  """
9193  return _IMP_kernel.__lshift__(*args)
9194 class _ConstOptimizer(Optimizer):
9195  """Proxy of C++ IMP::internal::_ConstOptimizer class."""
9196 
9197  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
9198 
9199  def __init__(self, m):
9200  """__init__(IMP::internal::_ConstOptimizer self, Model m) -> _ConstOptimizer"""
9201  this = _IMP_kernel.new__ConstOptimizer(m)
9202  try:
9203  self.this.append(this)
9204  except __builtin__.Exception:
9205  self.this = this
9206 
9207  def do_optimize(self, max_steps):
9208  """do_optimize(_ConstOptimizer self, unsigned int max_steps) -> IMP::Float"""
9209  return _IMP_kernel._ConstOptimizer_do_optimize(self, max_steps)
9210 
9211 
9212  def get_version_info(self):
9213  """get_version_info(_ConstOptimizer self) -> VersionInfo"""
9214  return _IMP_kernel._ConstOptimizer_get_version_info(self)
9215 
9216 
9217  def __str__(self):
9218  """__str__(_ConstOptimizer self) -> std::string"""
9219  return _IMP_kernel._ConstOptimizer___str__(self)
9220 
9221 
9222  def __repr__(self):
9223  """__repr__(_ConstOptimizer self) -> std::string"""
9224  return _IMP_kernel._ConstOptimizer___repr__(self)
9225 
9226 
9227  @staticmethod
9228  def get_from(o):
9229  return _object_cast_to__ConstOptimizer(o)
9230 
9231 _ConstOptimizer_swigregister = _IMP_kernel._ConstOptimizer_swigregister
9232 _ConstOptimizer_swigregister(_ConstOptimizer)
9233 
9234 
9235 def get_particle(p):
9236  """get_particle(Particle p) -> Particle"""
9237  return _IMP_kernel.get_particle(p)
9238 
9239 def _decorator_test(p):
9240  """_decorator_test(Particle p)"""
9241  return _IMP_kernel._decorator_test(p)
9242 
9243 def _overloaded_decorator(*args):
9244  """
9245  _overloaded_decorator(_TrivialDecorator a) -> int
9246  _overloaded_decorator(_TrivialDerivedDecorator a) -> int
9247  """
9248  return _IMP_kernel._overloaded_decorator(*args)
9249 
9250 def _take_particles(*args):
9251  """
9252  _take_particles(IMP::Particles const & ps) -> unsigned int
9253  _take_particles(Model m, IMP::Particles const & ps) -> unsigned int
9254  _take_particles(Model m, IMP::Particles const & ps, TextOutput out) -> unsigned int
9255  """
9256  return _IMP_kernel._take_particles(*args)
9257 
9258 def _give_particles(m):
9259  """_give_particles(Model m) -> IMP::Particles const &"""
9260  return _IMP_kernel._give_particles(m)
9261 
9262 def _pass_particles(ps):
9263  """_pass_particles(IMP::Particles const & ps) -> IMP::Particles const &"""
9264  return _IMP_kernel._pass_particles(ps)
9265 
9266 def _pass_particle(ps):
9267  """_pass_particle(Particle ps) -> Particle"""
9268  return _IMP_kernel._pass_particle(ps)
9269 
9270 def _pass_particle_pair(pp):
9271  """_pass_particle_pair(IMP::ParticlePair const & pp) -> IMP::ParticlePair const &"""
9272  return _IMP_kernel._pass_particle_pair(pp)
9273 
9274 def _give_particles_copy(m):
9275  """_give_particles_copy(Model m) -> IMP::Particles"""
9276  return _IMP_kernel._give_particles_copy(m)
9277 
9278 def _pass_float_keys(input):
9279  """_pass_float_keys(IMP::FloatKeys const & input) -> IMP::FloatKeys"""
9280  return _IMP_kernel._pass_float_keys(input)
9281 
9282 def _pass(*args):
9283  """
9284  _pass(IMP::Particles const & p) -> IMP::Particles const
9285  _pass(IMP::Restraints const & p) -> IMP::Restraints const &
9286  """
9287  return _IMP_kernel._pass(*args)
9288 
9289 def _pass_decorators(p):
9290  """_pass_decorators(IMP::internal::_TrivialDecorators const & p) -> IMP::internal::_TrivialDecorators const &"""
9291  return _IMP_kernel._pass_decorators(p)
9292 
9293 def _pass_decorator_traits(p):
9294  """_pass_decorator_traits(IMP::internal::_TrivialTraitsDecorators const & p) -> IMP::internal::_TrivialTraitsDecorators const &"""
9295  return _IMP_kernel._pass_decorator_traits(p)
9296 
9297 def _pass_particle_pairs(p):
9298  """_pass_particle_pairs(IMP::ParticlePairsTemp const & p) -> IMP::ParticlePairsTemp"""
9299  return _IMP_kernel._pass_particle_pairs(p)
9300 
9301 def _pass_particle_index_pairs(p):
9302  """_pass_particle_index_pairs(IMP::ParticleIndexPairs const & p) -> IMP::ParticleIndexPairs"""
9303  return _IMP_kernel._pass_particle_index_pairs(p)
9304 
9305 def _pass_model_objects(p):
9306  """_pass_model_objects(IMP::ModelObjectsTemp const & p) -> IMP::ModelObjectsTemp"""
9307  return _IMP_kernel._pass_model_objects(p)
9308 
9309 def _pass_particles_temps(ps):
9310  """_pass_particles_temps(IMP::ParticlesTemps const & ps) -> IMP::ParticlesTemps"""
9311  return _IMP_kernel._pass_particles_temps(ps)
9312 
9313 def _test_overload(*args):
9314  """
9315  _test_overload(IMP::Particles const & ps) -> int
9316  _test_overload(IMP::Restraints const & ps) -> int
9317  """
9318  return _IMP_kernel._test_overload(*args)
9319 
9320 def _get_range(m, k):
9321  """_get_range(Model m, FloatKey k) -> IMP::FloatRange"""
9322  return _IMP_kernel._get_range(m, k)
9323 
9324 def _create_particles_from_pdb(name, m):
9325  """_create_particles_from_pdb(std::string name, Model m) -> IMP::ParticleIndexes"""
9326  return _IMP_kernel._create_particles_from_pdb(name, m)
9327 class _LogPairScore(PairScore):
9328  """Proxy of C++ IMP::internal::_LogPairScore class."""
9329 
9330  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
9331  __repr__ = _swig_repr
9332 
9333  def __init__(self):
9334  """__init__(IMP::internal::_LogPairScore self) -> _LogPairScore"""
9335  this = _IMP_kernel.new__LogPairScore()
9336  try:
9337  self.this.append(this)
9338  except __builtin__.Exception:
9339  self.this = this
9340 
9341  def do_get_inputs(self, arg2, arg3):
9342  """do_get_inputs(_LogPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
9343  return _IMP_kernel._LogPairScore_do_get_inputs(self, arg2, arg3)
9344 
9345 
9346  def get_version_info(self):
9347  """get_version_info(_LogPairScore self) -> VersionInfo"""
9348  return _IMP_kernel._LogPairScore_get_version_info(self)
9349 
9350 
9351  def get_particle_pairs(self):
9352  """get_particle_pairs(_LogPairScore self) -> IMP::ParticlePairsTemp"""
9353  return _IMP_kernel._LogPairScore_get_particle_pairs(self)
9354 
9355 
9356  def clear(self):
9357  """clear(_LogPairScore self)"""
9358  return _IMP_kernel._LogPairScore_clear(self)
9359 
9360 
9361  def get_contains(self, pp):
9362  """get_contains(_LogPairScore self, IMP::ParticlePair const & pp) -> bool"""
9363  return _IMP_kernel._LogPairScore_get_contains(self, pp)
9364 
9365 _LogPairScore_swigregister = _IMP_kernel._LogPairScore_swigregister
9366 _LogPairScore_swigregister(_LogPairScore)
9367 
9368 
9369 def _overloaded_particles(*args):
9370  """
9371  _overloaded_particles(Particle arg1)
9372  _overloaded_particles(IMP::Particles const & arg1)
9373  _overloaded_particles(IMP::ParticlesTemp const & arg1)
9374  _overloaded_particles(Model arg1, IMP::ParticleIndexes const & arg2)
9375  _overloaded_particles(IMP::internal::_TrivialDecorators const & arg1)
9376  _overloaded_particles(_TrivialDecorator arg1)
9377  """
9378  return _IMP_kernel._overloaded_particles(*args)
9379 class _ImplicitParticles(object):
9380  """Proxy of C++ IMP::internal::_ImplicitParticles class."""
9381 
9382  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
9383  __repr__ = _swig_repr
9384 
9385  def __init__(self, *args):
9386  """
9387  __init__(IMP::internal::_ImplicitParticles self, Particle arg2) -> _ImplicitParticles
9388  __init__(IMP::internal::_ImplicitParticles self, IMP::Particles const & arg2) -> _ImplicitParticles
9389  __init__(IMP::internal::_ImplicitParticles self, IMP::ParticlesTemp const & arg2) -> _ImplicitParticles
9390  __init__(IMP::internal::_ImplicitParticles self, Model arg2, IMP::ParticleIndexes const & arg3) -> _ImplicitParticles
9391  __init__(IMP::internal::_ImplicitParticles self, IMP::internal::_TrivialDecorators const & arg2) -> _ImplicitParticles
9392  __init__(IMP::internal::_ImplicitParticles self, _TrivialDecorator arg2) -> _ImplicitParticles
9393  """
9394  this = _IMP_kernel.new__ImplicitParticles(*args)
9395  try:
9396  self.this.append(this)
9397  except __builtin__.Exception:
9398  self.this = this
9399  __swig_destroy__ = _IMP_kernel.delete__ImplicitParticles
9400  __del__ = lambda self: None
9401 _ImplicitParticles_swigregister = _IMP_kernel._ImplicitParticles_swigregister
9402 _ImplicitParticles_swigregister(_ImplicitParticles)
9403 
9404 
9405 def _implicit_particles(arg1):
9406  """_implicit_particles(_ImplicitParticles arg1)"""
9407  return _IMP_kernel._implicit_particles(arg1)
9408 
9409 def _take_particle_adaptor(pa):
9410  """_take_particle_adaptor(_ParticleAdaptor pa) -> ParticleIndex"""
9411  return _IMP_kernel._take_particle_adaptor(pa)
9412 
9413 def _take_particle_indexes_adaptor(pa):
9414  """_take_particle_indexes_adaptor(_ParticleIndexesAdaptor pa) -> IMP::ParticleIndexes"""
9415  return _IMP_kernel._take_particle_indexes_adaptor(pa)
9416 class ScopedSetFloatAttribute(_RAII):
9417  """Proxy of C++ IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> class."""
9418 
9419  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
9420 
9421  def __init__(self, *args):
9422  """
9423  __init__(IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> self) -> ScopedSetFloatAttribute
9424  __init__(IMP::ScopedSetAttribute<(FloatKey,IMP::Float)> self, Particle p, FloatKey key, double const & value) -> ScopedSetFloatAttribute
9425  """
9426  this = _IMP_kernel.new_ScopedSetFloatAttribute(*args)
9427  try:
9428  self.this.append(this)
9429  except __builtin__.Exception:
9430  self.this = this
9431 
9432  def set(self, p, key, value):
9433  """set(ScopedSetFloatAttribute self, Particle p, FloatKey key, double const & value)"""
9434  return _IMP_kernel.ScopedSetFloatAttribute_set(self, p, key, value)
9435 
9436 
9437  def reset(self):
9438  """reset(ScopedSetFloatAttribute self)"""
9439  return _IMP_kernel.ScopedSetFloatAttribute_reset(self)
9440 
9441  __swig_destroy__ = _IMP_kernel.delete_ScopedSetFloatAttribute
9442  __del__ = lambda self: None
9443 
9444  def show(self, *args):
9445  """
9446  show(ScopedSetFloatAttribute self, _ostream out)
9447  show(ScopedSetFloatAttribute self)
9448  """
9449  return _IMP_kernel.ScopedSetFloatAttribute_show(self, *args)
9450 
9451 
9452  def __str__(self):
9453  """__str__(ScopedSetFloatAttribute self) -> std::string"""
9454  return _IMP_kernel.ScopedSetFloatAttribute___str__(self)
9455 
9456 
9457  def __repr__(self):
9458  """__repr__(ScopedSetFloatAttribute self) -> std::string"""
9459  return _IMP_kernel.ScopedSetFloatAttribute___repr__(self)
9460 
9461 ScopedSetFloatAttribute_swigregister = _IMP_kernel.ScopedSetFloatAttribute_swigregister
9462 ScopedSetFloatAttribute_swigregister(ScopedSetFloatAttribute)
9463 
9464 
9465 #used_modules=[]
9466 #def show_used_modules():
9467 # for m in used_modules:
9468 # print "%-20s %s" % (m.get_module(), m.get_version())
9469 
9470 # Ensure that Windows gets the PATH set to include anything in the library
9471 # search path
9472 if sys.platform == 'win32' and 'IMP_LD_PATH' in os.environ:
9473  dirs = os.environ['IMP_LD_PATH'].split(":")
9474  pathcomps = os.environ['PATH'].split(";")
9475  for d in dirs:
9476  if d not in pathcomps:
9477  os.environ['PATH'] = d + ';' + os.environ['PATH']
9478 
9479 
9480 
9481 import sys
9482 import os
9483 
9484 class CommandDispatcher(object):
9485  """Allow command line tools to easily implement multiple commands.
9486  Typically, an IMP command line tool will use an instance of this class
9487  to provide a consistent interface to multiple distinct commands
9488  from a single binary, rather than providing a potentially large
9489  number of binaries. This is similar to the way a number of common
9490  command line tools outside of IMP function (e.g. Git provides a single
9491  `git` tool which implements multiple commands - `git add`, `git commit`,
9492  `git push` and so on).
9493 
9494  Each command is implemented with a Python module of the same name
9495  that can be imported from the module (for example, if `module_name`
9496  is `IMP.foo`, the `bar` command is provided by the `IMP.foo.bar` Python
9497  module, which would usually be found as `modules/foo/pyext/src/bar.py`).
9498  Each such module should have a docstring and a `%main()` method
9499  that takes no arguments (the module should also call its `%main()` method
9500  if it is run directly, i.e. with something like
9501  `if __name__=="__main__": %main()`). The encompassing module
9502  (`IMP.foo` in the example) should define `_all_commands` as a Python
9503  list of all valid commands.
9504 
9505  See the `multifit` and `cnmultifit` command line tools for example
9506  usage.
9507  """
9508 
9509  def __init__(self, short_help, long_help, module_name):
9510  """Constructor.
9511  @param short_help A few words that describe the command line tool.
9512  @param long_help Longer text, used in the `help` command.
9513  @param module_name Name of the module (e.g. `IMP.foo`) that
9514  implements the commands.
9515  """
9516  self.short_help = short_help
9517  self.long_help = long_help
9518  self.module_name = module_name
9519  self._all_commands = self.import_module()._all_commands
9520  self._progname = os.path.basename(sys.argv[0])
9521 
9522  def main(self):
9523  """Call this method to act upon the user-provided command line"""
9524  if len(sys.argv) <= 1:
9525  print(self.short_help + " Use '%s help' for help." % self._progname)
9526  else:
9527  command = sys.argv[1]
9528  if command in ('help', '--help', '-h'):
9529  if len(sys.argv) == 3:
9530  self.show_command_help(sys.argv[2])
9531  else:
9532  self.show_help()
9533  elif command == '--version':
9534  self.show_version()
9535  elif command in self._all_commands:
9536  self.do_command(command)
9537  else:
9538  self.unknown_command(command)
9539 
9540  def import_module(self, mod=None):
9541  modname = self.module_name
9542  if mod is not None:
9543  modname += "." + mod
9544  return __import__(modname, {}, {}, [''])
9545 
9546  def unknown_command(self, command):
9547  print("Unknown command: '%s'" % command)
9548  print("Use '%s help' for help." % self._progname)
9549  sys.exit(1)
9550 
9551  def _get_version(self):
9552  return self.import_module().get_module_version()
9553 
9554  def show_version(self):
9555  print(self._progname + ' ' + self._get_version())
9556 
9557  def show_help(self):
9558  ver = self._get_version()
9559  print("%s, version %s." % (self._progname, ver))
9560  print(self.long_help + """
9561 
9562 This program is part of IMP, the Integrative Modeling Platform,
9563 which is Copyright 2007-2019 IMP Inventors.
9564 For additional information about IMP, see <https://integrativemodeling.org>.
9565 
9566 Usage: %s <command> [options] [args]
9567 
9568 Commands:""" % self._progname)
9569  commands = self._all_commands[:] + ['help']
9570  commands.sort()
9571  cmdlen = max([len(c) for c in commands])
9572  for c in commands:
9573  if c == 'help':
9574  doc = 'Get help on using %s.' % self._progname
9575  else:
9576  doc = self.import_module(c).__doc__ or "<no help>"
9577  c += ' ' * (cmdlen - len(c))
9578  print(' ' + c + ' ' + doc)
9579  print("""
9580 Use "%s help <command>" for detailed help on any command
9581  or "%s --version" to see the version number.""" % (self._progname,
9582  self._progname))
9583 
9584  def do_command(self, command):
9585  mod = self.import_module(command)
9586  sys.argv[0] = self._progname + ' ' + command
9587  del sys.argv[1]
9588  mod.main()
9589 
9590  def show_command_help(self, command):
9591  if command == 'help':
9592  self.show_help()
9593  elif command in self._all_commands or command == 'help':
9594  mod = self.import_module(command)
9595  sys.argv = [self._progname + ' ' + command, '--help']
9596  mod.main()
9597  else:
9598  self.unknown_command(command)
9599 
9600 
9601 
9602 
9603 def get_networkx_graph(ig):
9604  import networkx
9605  g = networkx.DiGraph()
9606  if len(ig.get_vertices()) == 0:
9607  return g
9608 
9609  class NodeWrapper:
9610 
9611  def __init__(self, p):
9612  self.p = p
9613 
9614  def __str__(self):
9615  return self.p.get_name()
9616 
9617  def __call__(self, name):
9618  return self.p.__call__(name)
9619 
9620  for vi in ig.get_vertices():
9621  n = ig.get_vertex_name(vi)
9622  g.add_node(NodeWrapper(n))
9623  for vi in ig.get_vertices():
9624  n = ig.get_vertex_name(vi)
9625  for ni in ig.get_out_neighbors(vi):
9626  nn = ig.get_vertex_name(ni)
9627  g.add_edge(NodeWrapper(n), NodeWrapper(nn))
9628  return g
9629 
9630 
9631 def show_altgraph(g):
9632  def clean(name):
9633  try:
9634  n0 = name.get_name()
9635  except:
9636  n0 = str(name)
9637  n1 = str(n0).replace('"', '')
9638  n2 = n1.replace("\n", '')
9639  return n2
9640  import altgraph
9641  from altgraph import Graph, Dot
9642  graph = Graph.Graph()
9643  for i, v in enumerate(g.get_vertices()):
9644  graph.add_node(i) # , node_data=g.get_vertex_name(v)
9645  for i, v in enumerate(g.get_vertices()):
9646  for n in g.get_out_neighbors(v):
9647  graph.add_edge(v, n)
9648  dot = Dot.Dot(graph) # , graph_type="digraph"
9649  for i, v in enumerate(g.get_vertices()):
9650  dot.node_style(i, label=clean(g.get_vertex_name(v)))
9651  dot.display()
9652 
9653 
9654 def show_graphviz(g):
9655  tfn = create_temporary_file_name("graph", ".dot")
9656  tfon = create_temporary_file_name("graph", ".pdf")
9657  st = g.get_graphviz_string()
9658  open(tfn, "w").write(st)
9659  try:
9660  import subprocess
9661  except ImportError:
9662  import sys
9663  sys.stderr.write("Cannot run dot on Python 2.3 systems.\n")
9664  return
9665  try:
9666  print("running dot")
9667  sp = subprocess.Popen(["dot", "-Tpdf", tfn, "-o" + tfon])
9668  sp.wait()
9669  except:
9670  import sys
9671  sys.stderr.write("The dot command from the graphviz package was not found. Please make sure it is in the PATH passed to IMP.\n")
9672  return
9673  import platform
9674  if platform.system() == "Darwin":
9675  cmd = ["open"]
9676  else:
9677  cmd = ["gv", "acroread", "xpdf"]
9678  success = False
9679  for c in cmd:
9680  print("launching viewer " + c)
9681  try:
9682  subprocess.check_call([c, tfon])
9683  success = True
9684  break
9685  except:
9686  pass
9687  if not success:
9688  print("Could not display file. It is saved at " + tfon)
9689  return tfon
9690 
9691 
9692 
9693 
9694 import functools
9695 import contextlib
9696 
9697 def deprecated_module(version, module, help_message):
9698  """Mark a Python module as deprecated.
9699  @note The `module` argument would normally be `__name__`.
9700  @see [deprecation support](@ref deprecation)."""
9702  "Module %s is deprecated. %s\n" % (module, help_message))
9703 
9704 def deprecated_object(version, help_message):
9705  """Python decorator to mark a class as deprecated.
9706  @see [deprecation support](@ref deprecation)."""
9707  def wrapper(obj):
9708  orig_init = obj.__init__
9709 # Don't try to copy __module__ since __init__ may not have it
9710 # (e.g. if we subclassed object but didn't override __init__)
9711  @functools.wraps(orig_init, ('__name__', '__doc__'))
9712  def __init__(obj, *args, **keys):
9713  handle_use_deprecated("Object %s is deprecated. %s\n"
9714  % (type(obj), help_message))
9715  orig_init(obj, *args, **keys)
9716  obj.__init__ = __init__
9717  return obj
9718  return wrapper
9719 
9720 def deprecated_method(version, help_message):
9721  """Python decorator to mark a method as deprecated.
9722  @see [deprecation support](@ref deprecation)."""
9723  def out_wrapper(obj):
9724  @functools.wraps(obj)
9725  def wrapper(cls, *args, **keys):
9726  handle_use_deprecated("Method %s in %s is deprecated. %s\n"
9727  % (obj.__name__, type(cls), help_message))
9728  return obj(cls, *args, **keys)
9729  return wrapper
9730  return out_wrapper
9731 
9732 def deprecated_function(version, help_message):
9733  """Python decorator to mark a function as deprecated.
9734  @see [deprecation support](@ref deprecation)."""
9735  def out_wrapper(obj):
9736  @functools.wraps(obj)
9737  def wrapper(*args, **keys):
9738  handle_use_deprecated("Function %s is deprecated. %s\n"
9739  % (obj.__name__, help_message))
9740  return obj(*args, **keys)
9741  return wrapper
9742  return out_wrapper
9743 
9744 @contextlib.contextmanager
9745 def allow_deprecated(allow=True):
9746  """Context manager to temporarily allow (or disallow) deprecated code.
9747  @see [deprecation support](@ref deprecation)."""
9749  set_deprecation_exceptions(not allow)
9750  yield
9752 
9753 
9754 def _get_all_flags(ntokens):
9755  """_get_all_flags(unsigned int ntokens) -> IMP::Strings"""
9756  return _IMP_kernel._get_all_flags(ntokens)
9757 
9758 def _print_internal_help(out, description):
9759  """_print_internal_help(_ostream out, std::string description)"""
9760  return _IMP_kernel._print_internal_help(out, description)
9761 
9762 
9763 try:
9764  import argparse
9765 except ImportError:
9766  from . import _compat_argparse as argparse
9767 import sys
9768 
9769 class _PassThroughAction(argparse.Action):
9770  """Pass an argument through to the IMP Boost parser"""
9771  def __call__(self, parser, namespace, values, option_string=None):
9772  parser._boost_command_line.append(option_string)
9773  if values != []:
9774  parser._boost_command_line.append(values)
9775 # Terminate processing immediately if necessary (otherwise argparse
9776 # may fail if we're missing positional arguments)
9777  if option_string in ('-h', '--help', '--help_advanced', '--version'):
9778  parser._handle_boost()
9779 
9780 
9781 class ArgumentParser(argparse.ArgumentParser):
9782  """IMP-specific subclass of argparse.ArgumentParser.
9783  This adds options common to all IMP applications
9784  (see IMP::setup_from_argv()).
9785  """
9786 
9787  def __init__(self, *args, **kwargs):
9788 # Don't add --help option (since the Boost option parser handles it)
9789  kwargs['add_help'] = False
9790  super(ArgumentParser, self).__init__(*args, **kwargs)
9791  for ntoken in (0, 1):
9792  flags = _get_all_flags(ntoken)
9793  for f in flags:
9794  arg = ['-h', '--help'] if f == 'help' else ['--' + f]
9795  self.add_argument(*arg, help=argparse.SUPPRESS,
9796  nargs=None if ntoken else 0,
9797  action=_PassThroughAction,
9798  default=argparse.SUPPRESS)
9799 
9800  def parse_args(self, args=None, namespace=None):
9801  """Parse the command line and return optional and positional arguments.
9802  This functions in the same way as the method in the base class
9803  argparse.ArgumentParser, except that it also processes optional
9804  arguments common to all IMP applications (these are not returned
9805  in `args`, but can be obtained in the usual way, e.g. by calling
9806  IMP::get_string_flag()).
9807  @returns args
9808  """
9809  self._boost_command_line = [sys.argv[0]]
9810  ret = super(ArgumentParser, self).parse_args(args, namespace)
9811  if len(self._boost_command_line) > 1:
9812  self._handle_boost()
9813  return ret
9814 
9815  def _get_description(self):
9816  return self.format_help() + "\nOptions common to all IMP applications:"
9817 
9818  def print_help(self, file=None):
9819  _print_internal_help(file if file else sys.stdout,
9820  self._get_description())
9821 
9822  def _handle_boost(self):
9823  setup_from_argv(self._boost_command_line,
9824  self._get_description(),
9825  '==SUPPRESS==', 0)
9826 
9827 class RandomNumberGenerator(object):
9828  """Proxy of C++ IMP::RandomNumberGenerator class."""
9829 
9830  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
9831  __repr__ = _swig_repr
9832 
9833  def seed(self, x):
9834  """seed(RandomNumberGenerator self, ::boost::int32_t x)"""
9835  return _IMP_kernel.RandomNumberGenerator_seed(self, x)
9836 
9837 
9838  def __call__(self):
9839  """__call__(RandomNumberGenerator self) -> int"""
9840  return _IMP_kernel.RandomNumberGenerator___call__(self)
9841 
9842 
9843  def __init__(self):
9844  """__init__(IMP::RandomNumberGenerator self) -> RandomNumberGenerator"""
9845  this = _IMP_kernel.new_RandomNumberGenerator()
9846  try:
9847  self.this.append(this)
9848  except __builtin__.Exception:
9849  self.this = this
9850  __swig_destroy__ = _IMP_kernel.delete_RandomNumberGenerator
9851  __del__ = lambda self: None
9852 RandomNumberGenerator_swigregister = _IMP_kernel.RandomNumberGenerator_swigregister
9853 RandomNumberGenerator_swigregister(RandomNumberGenerator)
9854 
9855 
9856 def get_random_float_uniform(*args):
9857  """
9858  get_random_float_uniform() -> float
9859  get_random_float_uniform(float min, float max) -> float
9860  """
9861  return _IMP_kernel.get_random_float_uniform(*args)
9862 
9863 def get_random_double_uniform(*args):
9864  """
9865  get_random_double_uniform() -> double
9866  get_random_double_uniform(double min, double max) -> double
9867  """
9868  return _IMP_kernel.get_random_double_uniform(*args)
9869 
9870 def get_random_floats_normal(n, mean=0.0, stddev=1.0):
9871  """
9872  get_random_floats_normal(unsigned int n, float mean=0.0, float stddev=1.0) -> IMP::Vector< float >
9873  get_random_floats_normal(unsigned int n, float mean=0.0) -> IMP::Vector< float >
9874  get_random_floats_normal(unsigned int n) -> IMP::Vector< float >
9875  """
9876  return _IMP_kernel.get_random_floats_normal(n, mean, stddev)
9877 
9878 def get_random_doubles_normal(n, mean=0.0, stddev=1.0):
9879  """
9880  get_random_doubles_normal(unsigned int n, double mean=0.0, double stddev=1.0) -> IMP::Vector< double >
9881  get_random_doubles_normal(unsigned int n, double mean=0.0) -> IMP::Vector< double >
9882  get_random_doubles_normal(unsigned int n) -> IMP::Vector< double >
9883  """
9884  return _IMP_kernel.get_random_doubles_normal(n, mean, stddev)
9885 
9886 def get_random_floats_uniform(n):
9887  """get_random_floats_uniform(unsigned int n) -> IMP::Vector< float >"""
9888  return _IMP_kernel.get_random_floats_uniform(n)
9889 
9890 def get_random_doubles_uniform(n):
9891  """get_random_doubles_uniform(unsigned int n) -> IMP::Vector< double >"""
9892  return _IMP_kernel.get_random_doubles_uniform(n)
9893 
9894 def get_random_seed():
9895  """get_random_seed() -> boost::uint64_t"""
9896  return _IMP_kernel.get_random_seed()
9897 
9898 def _get_derivatives_numpy(m, k, m_pyobj):
9899  """_get_derivatives_numpy(Model m, FloatKey k, PyObject * m_pyobj) -> PyObject *"""
9900  return _IMP_kernel._get_derivatives_numpy(m, k, m_pyobj)
9901 
9902 def _get_floats_numpy(m, k, m_pyobj):
9903  """_get_floats_numpy(Model m, FloatKey k, PyObject * m_pyobj) -> PyObject *"""
9904  return _IMP_kernel._get_floats_numpy(m, k, m_pyobj)
9905 
9906 def _get_ints_numpy(m, k, m_pyobj):
9907  """_get_ints_numpy(Model m, IntKey k, PyObject * m_pyobj) -> PyObject *"""
9908  return _IMP_kernel._get_ints_numpy(m, k, m_pyobj)
9909 
9910 def _get_spheres_numpy(m, m_pyobj):
9911  """_get_spheres_numpy(Model m, PyObject * m_pyobj) -> PyObject *"""
9912  return _IMP_kernel._get_spheres_numpy(m, m_pyobj)
9913 
9914 def _get_sphere_derivatives_numpy(m, m_pyobj):
9915  """_get_sphere_derivatives_numpy(Model m, PyObject * m_pyobj) -> PyObject *"""
9916  return _IMP_kernel._get_sphere_derivatives_numpy(m, m_pyobj)
9917 
9918 def get_module_version():
9919  """get_module_version() -> std::string const"""
9920  return _IMP_kernel.get_module_version()
9921 
9922 def get_example_path(fname):
9923  """get_example_path(std::string fname) -> std::string"""
9924  return _IMP_kernel.get_example_path(fname)
9925 
9926 def get_data_path(fname):
9927  """get_data_path(std::string fname) -> std::string"""
9928  return _IMP_kernel.get_data_path(fname)
9929 
9930 from . import _version_check
9931 _version_check.check_version(get_module_version())
9932 __version__ = get_module_version()
9933 
9934 
9935 random_number_generator = cvar.random_number_generator
9936 
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:9484
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:9744
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:9522
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:9697
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:9732
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:9720
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:9800
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:9781
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:9704
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:9509
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 create_temporary_file_name(std::string prefix="imp_temp", std::string suffix="")
Create a temporary file.