IMP logo
IMP Reference Guide  develop.07f7673d5c,2020/03/30
The Integrative Modeling Platform
__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 3.0.10
3 #
4 # Do not make changes to this file unless you know what you are doing--modify
5 # the SWIG interface file instead.
6 
7 # This wrapper is part of IMP,
8 # Copyright 2007-2020 IMP Inventors. All rights reserved.
9 
10 from __future__ import print_function, division, absolute_import
11 
12 
13 
14 
15 from sys import version_info as _swig_python_version_info
16 if _swig_python_version_info >= (2, 7, 0):
17  def swig_import_helper():
18  import importlib
19  pkg = __name__.rpartition('.')[0]
20  mname = '.'.join((pkg, '_IMP_kernel')).lstrip('.')
21  try:
22  return importlib.import_module(mname)
23  except ImportError:
24  return importlib.import_module('_IMP_kernel')
25  _IMP_kernel = swig_import_helper()
26  del swig_import_helper
27 elif _swig_python_version_info >= (2, 6, 0):
28  def swig_import_helper():
29  from os.path import dirname
30  import imp
31  fp = None
32  try:
33  fp, pathname, description = imp.find_module('_IMP_kernel', [dirname(__file__)])
34  except ImportError:
35  import _IMP_kernel
36  return _IMP_kernel
37  if fp is not None:
38  try:
39  _mod = imp.load_module('_IMP_kernel', fp, pathname, description)
40  finally:
41  fp.close()
42  return _mod
43  _IMP_kernel = swig_import_helper()
44  del swig_import_helper
45 else:
46  import _IMP_kernel
47 del _swig_python_version_info
48 try:
49  _swig_property = property
50 except NameError:
51  pass # Python < 2.2 doesn't have 'property'.
52 
53 try:
54  import builtins as __builtin__
55 except ImportError:
56  import __builtin__
57 
58 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
59  if (name == "thisown"):
60  return self.this.own(value)
61  if (name == "this"):
62  if type(value).__name__ == 'SwigPyObject':
63  self.__dict__[name] = value
64  return
65  method = class_type.__swig_setmethods__.get(name, None)
66  if method:
67  return method(self, value)
68  if (not static):
69  object.__setattr__(self, name, value)
70  else:
71  raise AttributeError("You cannot add attributes to %s" % self)
72 
73 
74 def _swig_setattr(self, class_type, name, value):
75  return _swig_setattr_nondynamic(self, class_type, name, value, 0)
76 
77 
78 def _swig_getattr(self, class_type, name):
79  if (name == "thisown"):
80  return self.this.own()
81  method = class_type.__swig_getmethods__.get(name, None)
82  if method:
83  return method(self)
84  raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
85 
86 
87 def _swig_repr(self):
88  try:
89  strthis = "proxy of " + self.this.__repr__()
90  except __builtin__.Exception:
91  strthis = ""
92  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
93 
94 
95 def _swig_setattr_nondynamic_method(set):
96  def set_attr(self, name, value):
97  if (name == "thisown"):
98  return self.this.own(value)
99  if hasattr(self, name) or (name == "this"):
100  set(self, name, value)
101  else:
102  raise AttributeError("You cannot add attributes to %s" % self)
103  return set_attr
104 
105 
106 try:
107  import weakref
108  weakref_proxy = weakref.proxy
109 except __builtin__.Exception:
110  weakref_proxy = lambda x: x
111 
112 
113 class IMP_KERNEL_SwigPyIterator(object):
114  """Proxy of C++ swig::IMP_KERNEL_SwigPyIterator class."""
115 
116  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
117 
118  def __init__(self, *args, **kwargs):
119  raise AttributeError("No constructor defined - class is abstract")
120  __repr__ = _swig_repr
121  __swig_destroy__ = _IMP_kernel.delete_IMP_KERNEL_SwigPyIterator
122  __del__ = lambda self: None
123 
124  def value(self):
125  """value(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
126  return _IMP_kernel.IMP_KERNEL_SwigPyIterator_value(self)
127 
128 
129  def incr(self, n=1):
130  """
131  incr(IMP_KERNEL_SwigPyIterator self, size_t n=1) -> IMP_KERNEL_SwigPyIterator
132  incr(IMP_KERNEL_SwigPyIterator self) -> IMP_KERNEL_SwigPyIterator
133  """
134  return _IMP_kernel.IMP_KERNEL_SwigPyIterator_incr(self, n)
135 
136 
137  def decr(self, n=1):
138  """
139  decr(IMP_KERNEL_SwigPyIterator self, size_t n=1) -> IMP_KERNEL_SwigPyIterator
140  decr(IMP_KERNEL_SwigPyIterator self) -> IMP_KERNEL_SwigPyIterator
141  """
142  return _IMP_kernel.IMP_KERNEL_SwigPyIterator_decr(self, n)
143 
144 
145  def distance(self, x):
146  """distance(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> ptrdiff_t"""
147  return _IMP_kernel.IMP_KERNEL_SwigPyIterator_distance(self, x)
148 
149 
150  def equal(self, x):
151  """equal(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
152  return _IMP_kernel.IMP_KERNEL_SwigPyIterator_equal(self, x)
153 
154 
155  def copy(self):
156  """copy(IMP_KERNEL_SwigPyIterator self) -> IMP_KERNEL_SwigPyIterator"""
157  return _IMP_kernel.IMP_KERNEL_SwigPyIterator_copy(self)
158 
159 
160  def next(self):
161  """next(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
162  return _IMP_kernel.IMP_KERNEL_SwigPyIterator_next(self)
163 
164 
165  def __next__(self):
166  """__next__(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
167  return _IMP_kernel.IMP_KERNEL_SwigPyIterator___next__(self)
168 
169 
170  def previous(self):
171  """previous(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
172  return _IMP_kernel.IMP_KERNEL_SwigPyIterator_previous(self)
173 
174 
175  def advance(self, n):
176  """advance(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
177  return _IMP_kernel.IMP_KERNEL_SwigPyIterator_advance(self, n)
178 
179 
180  def __eq__(self, x):
181  """__eq__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
182  return _IMP_kernel.IMP_KERNEL_SwigPyIterator___eq__(self, x)
183 
184 
185  def __ne__(self, x):
186  """__ne__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
187  return _IMP_kernel.IMP_KERNEL_SwigPyIterator___ne__(self, x)
188 
189 
190  def __iadd__(self, n):
191  """__iadd__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
192  return _IMP_kernel.IMP_KERNEL_SwigPyIterator___iadd__(self, n)
193 
194 
195  def __isub__(self, n):
196  """__isub__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
197  return _IMP_kernel.IMP_KERNEL_SwigPyIterator___isub__(self, n)
198 
199 
200  def __add__(self, n):
201  """__add__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
202  return _IMP_kernel.IMP_KERNEL_SwigPyIterator___add__(self, n)
203 
204 
205  def __sub__(self, *args):
206  """
207  __sub__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator
208  __sub__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> ptrdiff_t
209  """
210  return _IMP_kernel.IMP_KERNEL_SwigPyIterator___sub__(self, *args)
211 
212  def __iter__(self):
213  return self
214 IMP_KERNEL_SwigPyIterator_swigregister = _IMP_kernel.IMP_KERNEL_SwigPyIterator_swigregister
215 IMP_KERNEL_SwigPyIterator_swigregister(IMP_KERNEL_SwigPyIterator)
216 
217 
218 _value_types=[]
219 _object_types=[]
220 _raii_types=[]
221 _plural_types=[]
222 
223 IMP_DEBUG = _IMP_kernel.IMP_DEBUG
224 IMP_RELEASE = _IMP_kernel.IMP_RELEASE
225 IMP_SILENT = _IMP_kernel.IMP_SILENT
226 IMP_PROGRESS = _IMP_kernel.IMP_PROGRESS
227 IMP_TERSE = _IMP_kernel.IMP_TERSE
228 IMP_VERBOSE = _IMP_kernel.IMP_VERBOSE
229 IMP_MEMORY = _IMP_kernel.IMP_MEMORY
230 IMP_NONE = _IMP_kernel.IMP_NONE
231 IMP_USAGE = _IMP_kernel.IMP_USAGE
232 IMP_INTERNAL = _IMP_kernel.IMP_INTERNAL
233 IMP_KERNEL_HAS_LOG4CXX = _IMP_kernel.IMP_KERNEL_HAS_LOG4CXX
234 IMP_COMPILER_HAS_AUTO = _IMP_kernel.IMP_COMPILER_HAS_AUTO
235 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_kernel.IMP_COMPILER_HAS_DEBUG_VECTOR
236 IMP_COMPILER_HAS_UNIQUE_PTR = _IMP_kernel.IMP_COMPILER_HAS_UNIQUE_PTR
237 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_kernel.IMP_KERNEL_HAS_BOOST_RANDOM
238 IMP_KERNEL_HAS_NUMPY = _IMP_kernel.IMP_KERNEL_HAS_NUMPY
239 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_kernel.IMP_KERNEL_HAS_GPERFTOOLS
240 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
241 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
242 IMPKERNEL_SHOW_WARNINGS = _IMP_kernel.IMPKERNEL_SHOW_WARNINGS
243 
244 import sys
245 class _DirectorObjects(object):
246  """@internal Simple class to keep references to director objects
247  to prevent premature deletion."""
248  def __init__(self):
249  self._objects = []
250  def register(self, obj):
251  """Take a reference to a director object; will only work for
252  refcounted C++ classes"""
253  if hasattr(obj, 'get_ref_count'):
254  self._objects.append(obj)
255  def cleanup(self):
256  """Only drop our reference and allow cleanup by Python if no other
257  Python references exist (we hold 3 references: one in self._objects,
258  one in x, and one in the argument list for getrefcount) *and* no
259  other C++ references exist (the Python object always holds one)"""
260  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
261  or x.get_ref_count() > 1]
262 # Do in two steps so the references are kept until the end of the
263 # function (deleting references may trigger a fresh call to this method)
264  self._objects = objs
265  def get_object_count(self):
266  """Get number of director objects (useful for testing only)"""
267  return len(self._objects)
268 _director_objects = _DirectorObjects()
269 
270 DEFAULT_CHECK = _IMP_kernel.DEFAULT_CHECK
271 NONE = _IMP_kernel.NONE
272 USAGE = _IMP_kernel.USAGE
273 USAGE_AND_INTERNAL = _IMP_kernel.USAGE_AND_INTERNAL
274 
275 def set_check_level(tf):
276  """set_check_level(IMP::CheckLevel tf)"""
277  return _IMP_kernel.set_check_level(tf)
278 
279 def get_check_level():
280  """get_check_level() -> IMP::CheckLevel"""
281  return _IMP_kernel.get_check_level()
282 
283 from _IMP_kernel import Exception, InternalException, ModelException, EventException
284 from _IMP_kernel import UsageException, IndexException, IOException, ValueException
285 from _IMP_kernel import TypeException
286 
287 class _ostream(object):
288  """Proxy of C++ std::ostream class."""
289 
290  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
291 
292  def __init__(self, *args, **kwargs):
293  raise AttributeError("No constructor defined")
294  __repr__ = _swig_repr
295 
296  def write(self, osa_buf):
297  """write(_ostream self, char const * osa_buf)"""
298  return _IMP_kernel._ostream_write(self, osa_buf)
299 
300 _ostream_swigregister = _IMP_kernel._ostream_swigregister
301 _ostream_swigregister(_ostream)
302 
303 IMP_COMPILER_HAS_OVERRIDE = _IMP_kernel.IMP_COMPILER_HAS_OVERRIDE
304 IMP_COMPILER_HAS_FINAL = _IMP_kernel.IMP_COMPILER_HAS_FINAL
305 IMP_HAS_NOEXCEPT = _IMP_kernel.IMP_HAS_NOEXCEPT
306 IMP_C_OPEN_BINARY = _IMP_kernel.IMP_C_OPEN_BINARY
307 
308 _raii_types.append("SetLogState")
309 
310 
311 _raii_types.append("SetNumberOfThreads")
312 
313 
314 _raii_types.append("SetCheckState")
315 
316 
317 _object_types.append("Object")
318 
319 
320 def _object_cast_to_Object(o):
321  """_object_cast_to_Object(Object * o) -> Object"""
322  return _IMP_kernel._object_cast_to_Object(o)
323 
324 _object_types.append("_TestObject")
325 
326 
327 def _object_cast_to__TestObject(o):
328  """_object_cast_to__TestObject(Object * o) -> _TestObject"""
329  return _IMP_kernel._object_cast_to__TestObject(o)
330 
331 VersionInfos=list
332 _plural_types.append("VersionInfos")
333 _value_types.append("VersionInfo")
334 
335 
336 _raii_types.append("CreateLogContext")
337 
338 
339 _raii_types.append("WarningContext")
340 
341 
342 _raii_types.append("SetLogTarget")
343 
344 
345 _TestValues=list
346 _plural_types.append("_TestValues")
347 _value_types.append("_TestValue")
348 
349 
350 Floats=list
351 _plural_types.append("Floats")
352 _value_types.append("Float")
353 
354 
355 Ints=list
356 _plural_types.append("Ints")
357 _value_types.append("Int")
358 
359 
360 Strings=list
361 _plural_types.append("Strings")
362 _value_types.append("String")
363 
364 
365 _Protections=list
366 _plural_types.append("_Protections")
367 _value_types.append("_Protection")
368 
369 class _InputAdaptor(object):
370  """Proxy of C++ IMP::InputAdaptor class."""
371 
372  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
373 
374  def __init__(self, *args, **kwargs):
375  raise AttributeError("No constructor defined")
376  __repr__ = _swig_repr
377  __swig_destroy__ = _IMP_kernel.delete__InputAdaptor
378  __del__ = lambda self: None
379 _InputAdaptor_swigregister = _IMP_kernel._InputAdaptor_swigregister
380 _InputAdaptor_swigregister(_InputAdaptor)
381 
382 class _NonCopyable(object):
383  """Proxy of C++ IMP::NonCopyable class."""
384 
385  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
386 
387  def __init__(self, *args, **kwargs):
388  raise AttributeError("No constructor defined")
389  __repr__ = _swig_repr
390  __swig_destroy__ = _IMP_kernel.delete__NonCopyable
391  __del__ = lambda self: None
392 _NonCopyable_swigregister = _IMP_kernel._NonCopyable_swigregister
393 _NonCopyable_swigregister(_NonCopyable)
394 
395 class _RAII(_NonCopyable):
396  """Proxy of C++ IMP::RAII class."""
397 
398  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
399 
400  def __init__(self, *args, **kwargs):
401  raise AttributeError("No constructor defined")
402  __repr__ = _swig_repr
403  __swig_destroy__ = _IMP_kernel.delete__RAII
404  __del__ = lambda self: None
405 _RAII_swigregister = _IMP_kernel._RAII_swigregister
406 _RAII_swigregister(_RAII)
407 
408 class _Value(object):
409  """Proxy of C++ IMP::Value class."""
410 
411  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
412 
413  def __init__(self, *args, **kwargs):
414  raise AttributeError("No constructor defined")
415  __repr__ = _swig_repr
416  __swig_destroy__ = _IMP_kernel.delete__Value
417  __del__ = lambda self: None
418 _Value_swigregister = _IMP_kernel._Value_swigregister
419 _Value_swigregister(_Value)
420 
421 
422 def get_executable_name():
423  """get_executable_name() -> std::string"""
424  return _IMP_kernel.get_executable_name()
425 
426 def setup_from_argv(*args):
427  """
428  setup_from_argv(IMP::Strings const & argv, std::string description)
429  setup_from_argv(IMP::Strings const & argv, std::string description, std::string positional_description, int num_positional) -> IMP::Strings
430  """
431  return _IMP_kernel.setup_from_argv(*args)
432 
433 def add_string_flag(name, default_value, description):
434  """add_string_flag(std::string name, std::string default_value, std::string description)"""
435  return _IMP_kernel.add_string_flag(name, default_value, description)
436 
437 def get_string_flag(name):
438  """get_string_flag(std::string name) -> std::string"""
439  return _IMP_kernel.get_string_flag(name)
440 
441 def add_int_flag(name, default_value, description):
442  """add_int_flag(std::string name, size_t default_value, std::string description)"""
443  return _IMP_kernel.add_int_flag(name, default_value, description)
444 
445 def get_int_flag(name):
446  """get_int_flag(std::string name) -> size_t"""
447  return _IMP_kernel.get_int_flag(name)
448 
449 def add_bool_flag(name, description):
450  """add_bool_flag(std::string name, std::string description)"""
451  return _IMP_kernel.add_bool_flag(name, description)
452 
453 def get_bool_flag(name):
454  """get_bool_flag(std::string name) -> bool"""
455  return _IMP_kernel.get_bool_flag(name)
456 
457 def add_float_flag(name, default_value, description):
458  """add_float_flag(std::string name, double default_value, std::string description)"""
459  return _IMP_kernel.add_float_flag(name, default_value, description)
460 
461 def get_float_flag(name):
462  """get_float_flag(std::string name) -> double"""
463  return _IMP_kernel.get_float_flag(name)
464 
465 def write_help(*args):
466  """
467  write_help(_ostream out)
468  write_help()
469  """
470  return _IMP_kernel.write_help(*args)
471 
472 def get_is_quick_test():
473  """get_is_quick_test() -> bool"""
474  return _IMP_kernel.get_is_quick_test()
475 DEFAULT = _IMP_kernel.DEFAULT
476 SILENT = _IMP_kernel.SILENT
477 WARNING = _IMP_kernel.WARNING
478 PROGRESS = _IMP_kernel.PROGRESS
479 TERSE = _IMP_kernel.TERSE
480 VERBOSE = _IMP_kernel.VERBOSE
481 MEMORY = _IMP_kernel.MEMORY
482 ALL_LOG = _IMP_kernel.ALL_LOG
483 class VersionInfo(_Value):
484  """Proxy of C++ IMP::VersionInfo class."""
485 
486  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
487 
488  def __init__(self, *args):
489  """
490  __init__(IMP::VersionInfo self, std::string module, std::string version) -> VersionInfo
491  __init__(IMP::VersionInfo self) -> VersionInfo
492  """
493  this = _IMP_kernel.new_VersionInfo(*args)
494  try:
495  self.this.append(this)
496  except __builtin__.Exception:
497  self.this = this
498 
499  def get_module(self):
500  """get_module(VersionInfo self) -> std::string"""
501  return _IMP_kernel.VersionInfo_get_module(self)
502 
503 
504  def get_version(self):
505  """get_version(VersionInfo self) -> std::string"""
506  return _IMP_kernel.VersionInfo_get_version(self)
507 
508 
509  def show(self, *args):
510  """
511  show(VersionInfo self, _ostream out)
512  show(VersionInfo self)
513  """
514  return _IMP_kernel.VersionInfo_show(self, *args)
515 
516 
517  def __cmp__(self, o):
518  """__cmp__(VersionInfo self, VersionInfo o) -> int"""
519  return _IMP_kernel.VersionInfo___cmp__(self, o)
520 
521 
522  def __eq__(self, o):
523  """__eq__(VersionInfo self, VersionInfo o) -> bool"""
524  return _IMP_kernel.VersionInfo___eq__(self, o)
525 
526 
527  def __ne__(self, o):
528  """__ne__(VersionInfo self, VersionInfo o) -> bool"""
529  return _IMP_kernel.VersionInfo___ne__(self, o)
530 
531 
532  def __lt__(self, o):
533  """__lt__(VersionInfo self, VersionInfo o) -> bool"""
534  return _IMP_kernel.VersionInfo___lt__(self, o)
535 
536 
537  def __gt__(self, o):
538  """__gt__(VersionInfo self, VersionInfo o) -> bool"""
539  return _IMP_kernel.VersionInfo___gt__(self, o)
540 
541 
542  def __ge__(self, o):
543  """__ge__(VersionInfo self, VersionInfo o) -> bool"""
544  return _IMP_kernel.VersionInfo___ge__(self, o)
545 
546 
547  def __le__(self, o):
548  """__le__(VersionInfo self, VersionInfo o) -> bool"""
549  return _IMP_kernel.VersionInfo___le__(self, o)
550 
551 
552  def __str__(self):
553  """__str__(VersionInfo self) -> std::string"""
554  return _IMP_kernel.VersionInfo___str__(self)
555 
556 
557  def __repr__(self):
558  """__repr__(VersionInfo self) -> std::string"""
559  return _IMP_kernel.VersionInfo___repr__(self)
560 
561  __swig_destroy__ = _IMP_kernel.delete_VersionInfo
562  __del__ = lambda self: None
563 VersionInfo_swigregister = _IMP_kernel.VersionInfo_swigregister
564 VersionInfo_swigregister(VersionInfo)
565 
566 class TextOutput(_InputAdaptor):
567  """Proxy of C++ IMP::TextOutput class."""
568 
569  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
570  __repr__ = _swig_repr
571 
572  def __init__(self, *args):
573  """
574  __init__(IMP::TextOutput self, int arg2) -> TextOutput
575  __init__(IMP::TextOutput self, double arg2) -> TextOutput
576  __init__(IMP::TextOutput self, char const * c, bool append=False) -> TextOutput
577  __init__(IMP::TextOutput self, char const * c) -> TextOutput
578  __init__(IMP::TextOutput self, IMP::TextProxy< std::ostream > p) -> TextOutput
579  __init__(IMP::TextOutput self) -> TextOutput
580  __init__(IMP::TextOutput self, std::string file_name, bool append=False) -> TextOutput
581  __init__(IMP::TextOutput self, std::string file_name) -> TextOutput
582  """
583  this = _IMP_kernel.new_TextOutput(*args)
584  try:
585  self.this.append(this)
586  except __builtin__.Exception:
587  self.this = this
588 
589  def show(self, *args):
590  """
591  show(TextOutput self, _ostream out)
592  show(TextOutput self)
593  """
594  return _IMP_kernel.TextOutput_show(self, *args)
595 
596 
597  def get_name(self):
598  """get_name(TextOutput self) -> std::string"""
599  return _IMP_kernel.TextOutput_get_name(self)
600 
601  __swig_destroy__ = _IMP_kernel.delete_TextOutput
602  __del__ = lambda self: None
603 TextOutput_swigregister = _IMP_kernel.TextOutput_swigregister
604 TextOutput_swigregister(TextOutput)
605 
606 class TextInput(_InputAdaptor):
607  """Proxy of C++ IMP::TextInput class."""
608 
609  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
610  __repr__ = _swig_repr
611 
612  def __init__(self, *args):
613  """
614  __init__(IMP::TextInput self, int arg2) -> TextInput
615  __init__(IMP::TextInput self, double arg2) -> TextInput
616  __init__(IMP::TextInput self, char const * c) -> TextInput
617  __init__(IMP::TextInput self, IMP::TextProxy< std::istream > p) -> TextInput
618  __init__(IMP::TextInput self) -> TextInput
619  __init__(IMP::TextInput self, std::string file_name) -> TextInput
620  """
621  this = _IMP_kernel.new_TextInput(*args)
622  try:
623  self.this.append(this)
624  except __builtin__.Exception:
625  self.this = this
626 
627  def show(self, *args):
628  """
629  show(TextInput self, _ostream out)
630  show(TextInput self)
631  """
632  return _IMP_kernel.TextInput_show(self, *args)
633 
634 
635  def get_name(self):
636  """get_name(TextInput self) -> std::string"""
637  return _IMP_kernel.TextInput_get_name(self)
638 
639  __swig_destroy__ = _IMP_kernel.delete_TextInput
640  __del__ = lambda self: None
641 TextInput_swigregister = _IMP_kernel.TextInput_swigregister
642 TextInput_swigregister(TextInput)
643 
644 class SetLogTarget(_RAII):
645  """Proxy of C++ IMP::SetLogTarget class."""
646 
647  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
648 
649  def __init__(self, *args):
650  """
651  __init__(IMP::SetLogTarget self) -> SetLogTarget
652  __init__(IMP::SetLogTarget self, TextOutput to) -> SetLogTarget
653  """
654  this = _IMP_kernel.new_SetLogTarget(*args)
655  try:
656  self.this.append(this)
657  except __builtin__.Exception:
658  self.this = this
659 
660  def set(self, to):
661  """set(SetLogTarget self, TextOutput to)"""
662  return _IMP_kernel.SetLogTarget_set(self, to)
663 
664 
665  def reset(self):
666  """reset(SetLogTarget self)"""
667  return _IMP_kernel.SetLogTarget_reset(self)
668 
669  __swig_destroy__ = _IMP_kernel.delete_SetLogTarget
670  __del__ = lambda self: None
671 
672  def show(self, *args):
673  """
674  show(SetLogTarget self, _ostream out)
675  show(SetLogTarget self)
676  """
677  return _IMP_kernel.SetLogTarget_show(self, *args)
678 
679 
680  def __enter__(self):
681  return self
682  def __exit__(self, exc_type, exc_val, exc_tb):
683  self.reset()
684  return False
685 
686 
687  def __str__(self):
688  """__str__(SetLogTarget self) -> std::string"""
689  return _IMP_kernel.SetLogTarget___str__(self)
690 
691 
692  def __repr__(self):
693  """__repr__(SetLogTarget self) -> std::string"""
694  return _IMP_kernel.SetLogTarget___repr__(self)
695 
696 SetLogTarget_swigregister = _IMP_kernel.SetLogTarget_swigregister
697 SetLogTarget_swigregister(SetLogTarget)
698 
699 
700 def create_temporary_file(*args):
701  """
702  create_temporary_file(std::string prefix, std::string suffix) -> TextOutput
703  create_temporary_file(std::string prefix) -> TextOutput
704  create_temporary_file() -> TextOutput
705  """
706  return _IMP_kernel.create_temporary_file(*args)
707 
708 def create_temporary_file_name(*args):
709  """
710  create_temporary_file_name(std::string prefix, std::string suffix) -> std::string
711  create_temporary_file_name(std::string prefix) -> std::string
712  create_temporary_file_name() -> std::string
713  """
714  return _IMP_kernel.create_temporary_file_name(*args)
715 
716 def get_relative_path(base, relative):
717  """get_relative_path(std::string base, std::string relative) -> std::string"""
718  return _IMP_kernel.get_relative_path(base, relative)
719 
720 def get_absolute_path(file):
721  """get_absolute_path(std::string file) -> std::string"""
722  return _IMP_kernel.get_absolute_path(file)
723 
724 def push_log_context(functionname, object):
725  """push_log_context(char const * functionname, void const * object)"""
726  return _IMP_kernel.push_log_context(functionname, object)
727 
728 def pop_log_context():
729  """pop_log_context()"""
730  return _IMP_kernel.pop_log_context()
731 
732 def add_to_log(*args):
733  """
734  add_to_log(std::string to_write)
735  add_to_log(IMP::LogLevel level, std::string to_write)
736  """
737  return _IMP_kernel.add_to_log(*args)
738 
739 def set_log_level(l):
740  """set_log_level(IMP::LogLevel l)"""
741  return _IMP_kernel.set_log_level(l)
742 
743 def set_log_timer(tb):
744  """set_log_timer(bool tb)"""
745  return _IMP_kernel.set_log_timer(tb)
746 
747 def reset_log_timer():
748  """reset_log_timer()"""
749  return _IMP_kernel.reset_log_timer()
750 
751 def get_log_level():
752  """get_log_level() -> IMP::LogLevel"""
753  return _IMP_kernel.get_log_level()
754 
755 def set_progress_display(description, steps):
756  """set_progress_display(std::string description, unsigned int steps)"""
757  return _IMP_kernel.set_progress_display(description, steps)
758 
759 def add_to_progress_display(step=1):
760  """
761  add_to_progress_display(unsigned int step=1)
762  add_to_progress_display()
763  """
764  return _IMP_kernel.add_to_progress_display(step)
765 class Object(_NonCopyable):
766  """Proxy of C++ IMP::Object class."""
767 
768  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
769 
770  def __init__(self, name):
771  """__init__(IMP::Object self, std::string name) -> Object"""
772  if self.__class__ == Object:
773  _self = None
774  else:
775  _self = self
776  this = _IMP_kernel.new_Object(_self, name)
777  try:
778  self.this.append(this)
779  except __builtin__.Exception:
780  self.this = this
781 
782  if self.__class__ != Object:
783  _director_objects.register(self)
784 
785 
786 
787  __swig_destroy__ = _IMP_kernel.delete_Object
788  __del__ = lambda self: None
789 
790  def __hash__(self):
791  """__hash__(Object self) -> std::size_t"""
792  return _IMP_kernel.Object___hash__(self)
793 
794 
795  def set_log_level(self, l):
796  """set_log_level(Object self, IMP::LogLevel l)"""
797  return _IMP_kernel.Object_set_log_level(self, l)
798 
799 
800  def set_check_level(self, l):
801  """set_check_level(Object self, IMP::CheckLevel l)"""
802  return _IMP_kernel.Object_set_check_level(self, l)
803 
804 
805  def get_log_level(self):
806  """get_log_level(Object self) -> IMP::LogLevel"""
807  return _IMP_kernel.Object_get_log_level(self)
808 
809 
810  def get_check_level(self):
811  """get_check_level(Object self) -> IMP::CheckLevel"""
812  return _IMP_kernel.Object_get_check_level(self)
813 
814 
815  def get_version_info(self):
816  """get_version_info(Object self) -> VersionInfo"""
817  return _IMP_kernel.Object_get_version_info(self)
818 
819 
820  def get_name(self):
821  """get_name(Object self) -> std::string const &"""
822  return _IMP_kernel.Object_get_name(self)
823 
824 
825  def set_name(self, name):
826  """set_name(Object self, std::string name)"""
827  return _IMP_kernel.Object_set_name(self, name)
828 
829 
830  def get_type_name(self):
831  """get_type_name(Object self) -> std::string"""
832  return _IMP_kernel.Object_get_type_name(self)
833 
834 
835  def set_was_used(self, tf):
836  """set_was_used(Object self, bool tf)"""
837  return _IMP_kernel.Object_set_was_used(self, tf)
838 
839 
840  def show(self, *args):
841  """
842  show(Object self, _ostream out)
843  show(Object self)
844  """
845  return _IMP_kernel.Object_show(self, *args)
846 
847 
848  def get_string(self):
849  """get_string(Object self) -> std::string"""
850  return _IMP_kernel.Object_get_string(self)
851 
852 
853  def _on_destruction(self):
854  """_on_destruction(Object self)"""
855  return _IMP_kernel.Object__on_destruction(self)
856 
857 
858  def get_is_valid(self):
859  """get_is_valid(Object self) -> bool"""
860  return _IMP_kernel.Object_get_is_valid(self)
861 
862 
863  def get_ref_count(self):
864  """get_ref_count(Object self) -> unsigned int"""
865  return _IMP_kernel.Object_get_ref_count(self)
866 
867 
868  def get_number_of_live_objects():
869  """get_number_of_live_objects() -> unsigned int"""
870  return _IMP_kernel.Object_get_number_of_live_objects()
871 
872  get_number_of_live_objects = staticmethod(get_number_of_live_objects)
873 
874  def get_is_shared(self):
875  """get_is_shared(Object self) -> bool"""
876  return _IMP_kernel.Object_get_is_shared(self)
877 
878 
879  def clear_caches(self):
880  """clear_caches(Object self)"""
881  return _IMP_kernel.Object_clear_caches(self)
882 
883 
884  def do_destroy(self):
885  """do_destroy(Object self)"""
886  return _IMP_kernel.Object_do_destroy(self)
887 
888 
889  def __eq__(self, o):
890  """__eq__(Object self, Object o) -> bool"""
891  return _IMP_kernel.Object___eq__(self, o)
892 
893 
894  def __ne__(self, o):
895  """__ne__(Object self, Object o) -> bool"""
896  return _IMP_kernel.Object___ne__(self, o)
897 
898 
899  def __le__(self, o):
900  """__le__(Object self, Object o) -> bool"""
901  return _IMP_kernel.Object___le__(self, o)
902 
903 
904  def __lt__(self, o):
905  """__lt__(Object self, Object o) -> bool"""
906  return _IMP_kernel.Object___lt__(self, o)
907 
908 
909  def __ge__(self, o):
910  """__ge__(Object self, Object o) -> bool"""
911  return _IMP_kernel.Object___ge__(self, o)
912 
913 
914  def __gt__(self, o):
915  """__gt__(Object self, Object o) -> bool"""
916  return _IMP_kernel.Object___gt__(self, o)
917 
918 
919  def __str__(self):
920  """__str__(Object self) -> std::string"""
921  return _IMP_kernel.Object___str__(self)
922 
923 
924  def __repr__(self):
925  """__repr__(Object self) -> std::string"""
926  return _IMP_kernel.Object___repr__(self)
927 
928 
929  @staticmethod
930  def get_from(o):
931  return _object_cast_to_Object(o)
932 
933  def __disown__(self):
934  self.this.disown()
935  _IMP_kernel.disown_Object(self)
936  return weakref_proxy(self)
937 Object_swigregister = _IMP_kernel.Object_swigregister
938 Object_swigregister(Object)
939 
940 def Object_get_number_of_live_objects():
941  """Object_get_number_of_live_objects() -> unsigned int"""
942  return _IMP_kernel.Object_get_number_of_live_objects()
943 
944 class SetLogState(_RAII):
945  """Proxy of C++ IMP::SetLogState class."""
946 
947  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
948 
949  def reset(self):
950  """reset(SetLogState self)"""
951  return _IMP_kernel.SetLogState_reset(self)
952 
953  __swig_destroy__ = _IMP_kernel.delete_SetLogState
954  __del__ = lambda self: None
955 
956  def show(self, *args):
957  """
958  show(SetLogState self, _ostream out)
959  show(SetLogState self)
960  """
961  return _IMP_kernel.SetLogState_show(self, *args)
962 
963 
964  def __init__(self, *args):
965  """
966  __init__(IMP::SetLogState self) -> SetLogState
967  __init__(IMP::SetLogState self, Object o, IMP::LogLevel l) -> SetLogState
968  __init__(IMP::SetLogState self, IMP::LogLevel l) -> SetLogState
969  """
970  this = _IMP_kernel.new_SetLogState(*args)
971  try:
972  self.this.append(this)
973  except __builtin__.Exception:
974  self.this = this
975 
976  def set(self, *args):
977  """
978  set(SetLogState self, Object o, IMP::LogLevel l)
979  set(SetLogState self, IMP::LogLevel l)
980  """
981  return _IMP_kernel.SetLogState_set(self, *args)
982 
983 
984  def __enter__(self):
985  return self
986  def __exit__(self, exc_type, exc_val, exc_tb):
987  self.reset()
988  return False
989 
990 
991  def __str__(self):
992  """__str__(SetLogState self) -> std::string"""
993  return _IMP_kernel.SetLogState___str__(self)
994 
995 
996  def __repr__(self):
997  """__repr__(SetLogState self) -> std::string"""
998  return _IMP_kernel.SetLogState___repr__(self)
999 
1000 SetLogState_swigregister = _IMP_kernel.SetLogState_swigregister
1001 SetLogState_swigregister(SetLogState)
1002 
1003 class WarningContext(object):
1004  """Proxy of C++ IMP::WarningContext class."""
1005 
1006  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1007  data_ = _swig_property(_IMP_kernel.WarningContext_data__get, _IMP_kernel.WarningContext_data__set)
1008 
1009  def add_warning(self, key, warning):
1010  """add_warning(WarningContext self, std::string key, std::string warning)"""
1011  return _IMP_kernel.WarningContext_add_warning(self, key, warning)
1012 
1013 
1014  def clear_warnings(self):
1015  """clear_warnings(WarningContext self)"""
1016  return _IMP_kernel.WarningContext_clear_warnings(self)
1017 
1018 
1019  def dump_warnings(self):
1020  """dump_warnings(WarningContext self)"""
1021  return _IMP_kernel.WarningContext_dump_warnings(self)
1022 
1023  __swig_destroy__ = _IMP_kernel.delete_WarningContext
1024  __del__ = lambda self: None
1025 
1026  def show(self, *args):
1027  """
1028  show(WarningContext self, _ostream out)
1029  show(WarningContext self)
1030  """
1031  return _IMP_kernel.WarningContext_show(self, *args)
1032 
1033 
1034  def __enter__(self):
1035  return self
1036  def __exit__(self, exc_type, exc_val, exc_tb):
1037  self.reset()
1038  return False
1039 
1040 
1041  def __str__(self):
1042  """__str__(WarningContext self) -> std::string"""
1043  return _IMP_kernel.WarningContext___str__(self)
1044 
1045 
1046  def __repr__(self):
1047  """__repr__(WarningContext self) -> std::string"""
1048  return _IMP_kernel.WarningContext___repr__(self)
1049 
1050 
1051  def __init__(self):
1052  """__init__(IMP::WarningContext self) -> WarningContext"""
1053  this = _IMP_kernel.new_WarningContext()
1054  try:
1055  self.this.append(this)
1056  except __builtin__.Exception:
1057  self.this = this
1058 WarningContext_swigregister = _IMP_kernel.WarningContext_swigregister
1059 WarningContext_swigregister(WarningContext)
1060 
1061 class CreateLogContext(_RAII):
1062  """Proxy of C++ IMP::CreateLogContext class."""
1063 
1064  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1065 
1066  def __init__(self, *args):
1067  """
1068  __init__(IMP::CreateLogContext self, std::string fname, Object object=None) -> CreateLogContext
1069  __init__(IMP::CreateLogContext self, std::string fname) -> CreateLogContext
1070  __init__(IMP::CreateLogContext self) -> CreateLogContext
1071  __init__(IMP::CreateLogContext self, char const * fname, Object object=None) -> CreateLogContext
1072  __init__(IMP::CreateLogContext self, char const * fname) -> CreateLogContext
1073  """
1074  this = _IMP_kernel.new_CreateLogContext(*args)
1075  try:
1076  self.this.append(this)
1077  except __builtin__.Exception:
1078  self.this = this
1079 
1080  def set(self, fname, object=None):
1081  """
1082  set(CreateLogContext self, char const * fname, Object object=None)
1083  set(CreateLogContext self, char const * fname)
1084  """
1085  return _IMP_kernel.CreateLogContext_set(self, fname, object)
1086 
1087 
1088  def reset(self):
1089  """reset(CreateLogContext self)"""
1090  return _IMP_kernel.CreateLogContext_reset(self)
1091 
1092  __swig_destroy__ = _IMP_kernel.delete_CreateLogContext
1093  __del__ = lambda self: None
1094 
1095  def show(self, *args):
1096  """
1097  show(CreateLogContext self, _ostream out)
1098  show(CreateLogContext self)
1099  """
1100  return _IMP_kernel.CreateLogContext_show(self, *args)
1101 
1102 
1103  def __enter__(self):
1104  return self
1105  def __exit__(self, exc_type, exc_val, exc_tb):
1106  self.reset()
1107  return False
1108 
1109 
1110  def __str__(self):
1111  """__str__(CreateLogContext self) -> std::string"""
1112  return _IMP_kernel.CreateLogContext___str__(self)
1113 
1114 
1115  def __repr__(self):
1116  """__repr__(CreateLogContext self) -> std::string"""
1117  return _IMP_kernel.CreateLogContext___repr__(self)
1118 
1119 CreateLogContext_swigregister = _IMP_kernel.CreateLogContext_swigregister
1120 CreateLogContext_swigregister(CreateLogContext)
1121 
1122 class SetCheckState(_RAII):
1123  """Proxy of C++ IMP::SetCheckState class."""
1124 
1125  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1126 
1127  def reset(self):
1128  """reset(SetCheckState self)"""
1129  return _IMP_kernel.SetCheckState_reset(self)
1130 
1131  __swig_destroy__ = _IMP_kernel.delete_SetCheckState
1132  __del__ = lambda self: None
1133 
1134  def show(self, *args):
1135  """
1136  show(SetCheckState self, _ostream out)
1137  show(SetCheckState self)
1138  """
1139  return _IMP_kernel.SetCheckState_show(self, *args)
1140 
1141 
1142  def __init__(self, *args):
1143  """
1144  __init__(IMP::SetCheckState self) -> SetCheckState
1145  __init__(IMP::SetCheckState self, Object o, IMP::CheckLevel l) -> SetCheckState
1146  __init__(IMP::SetCheckState self, IMP::CheckLevel l) -> SetCheckState
1147  """
1148  this = _IMP_kernel.new_SetCheckState(*args)
1149  try:
1150  self.this.append(this)
1151  except __builtin__.Exception:
1152  self.this = this
1153 
1154  def set(self, *args):
1155  """
1156  set(SetCheckState self, Object o, IMP::CheckLevel l)
1157  set(SetCheckState self, IMP::CheckLevel l)
1158  """
1159  return _IMP_kernel.SetCheckState_set(self, *args)
1160 
1161 
1162  def __enter__(self):
1163  return self
1164  def __exit__(self, exc_type, exc_val, exc_tb):
1165  self.reset()
1166  return False
1167 
1168 
1169  def __str__(self):
1170  """__str__(SetCheckState self) -> std::string"""
1171  return _IMP_kernel.SetCheckState___str__(self)
1172 
1173 
1174  def __repr__(self):
1175  """__repr__(SetCheckState self) -> std::string"""
1176  return _IMP_kernel.SetCheckState___repr__(self)
1177 
1178 SetCheckState_swigregister = _IMP_kernel.SetCheckState_swigregister
1179 SetCheckState_swigregister(SetCheckState)
1180 
1181 
1182 def get_unique_name(templ):
1183  """get_unique_name(std::string templ) -> std::string"""
1184  return _IMP_kernel.get_unique_name(templ)
1185 class _Protection(object):
1186  """Proxy of C++ IMP::internal::_Protection class."""
1187 
1188  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1189 
1190  def __init__(self, *args, **kwargs):
1191  raise AttributeError("No constructor defined")
1192 
1193  def show(self, *args):
1194  """
1195  show(_Protection self, _ostream out)
1196  show(_Protection self)
1197  """
1198  return _IMP_kernel._Protection_show(self, *args)
1199 
1200 
1201  def __str__(self):
1202  """__str__(_Protection self) -> std::string"""
1203  return _IMP_kernel._Protection___str__(self)
1204 
1205 
1206  def __repr__(self):
1207  """__repr__(_Protection self) -> std::string"""
1208  return _IMP_kernel._Protection___repr__(self)
1209 
1210  __swig_destroy__ = _IMP_kernel.delete__Protection
1211  __del__ = lambda self: None
1212 _Protection_swigregister = _IMP_kernel._Protection_swigregister
1213 _Protection_swigregister(_Protection)
1214 
1215 
1216 def _test_log():
1217  """_test_log()"""
1218  return _IMP_kernel._test_log()
1219 
1220 def _test_intranges(ips):
1221  """_test_intranges(IMP::IntRanges const & ips) -> int"""
1222  return _IMP_kernel._test_intranges(ips)
1223 
1224 def _test_intrange(*args):
1225  """
1226  _test_intrange(IMP::IntRange const & ips) -> IMP::IntRange
1227  _test_intrange() -> IMP::IntRange
1228  """
1229  return _IMP_kernel._test_intrange(*args)
1230 
1231 def _test_ifile(a):
1232  """_test_ifile(TextInput a) -> std::string"""
1233  return _IMP_kernel._test_ifile(a)
1234 
1235 def _test_ofile(a):
1236  """_test_ofile(TextOutput a) -> std::string"""
1237  return _IMP_kernel._test_ofile(a)
1238 
1239 def _test_ifile_overloaded(*args):
1240  """
1241  _test_ifile_overloaded(TextInput a, int i) -> std::string
1242  _test_ifile_overloaded(TextInput a, std::string st) -> std::string
1243  """
1244  return _IMP_kernel._test_ifile_overloaded(*args)
1245 
1246 def _test_ofile_overloaded(*args):
1247  """
1248  _test_ofile_overloaded(TextOutput a, int i) -> std::string
1249  _test_ofile_overloaded(TextOutput a, std::string st) -> std::string
1250  """
1251  return _IMP_kernel._test_ofile_overloaded(*args)
1252 class _TestValue(object):
1253  """Proxy of C++ IMP::internal::_TestValue class."""
1254 
1255  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1256 
1257  def __init__(self, i):
1258  """__init__(IMP::internal::_TestValue self, int i) -> _TestValue"""
1259  this = _IMP_kernel.new__TestValue(i)
1260  try:
1261  self.this.append(this)
1262  except __builtin__.Exception:
1263  self.this = this
1264 
1265  def show(self, *args):
1266  """
1267  show(_TestValue self, _ostream out)
1268  show(_TestValue self)
1269  """
1270  return _IMP_kernel._TestValue_show(self, *args)
1271 
1272 
1273  def __cmp__(self, o):
1274  """__cmp__(_TestValue self, _TestValue o) -> int"""
1275  return _IMP_kernel._TestValue___cmp__(self, o)
1276 
1277 
1278  def __eq__(self, o):
1279  """__eq__(_TestValue self, _TestValue o) -> bool"""
1280  return _IMP_kernel._TestValue___eq__(self, o)
1281 
1282 
1283  def __ne__(self, o):
1284  """__ne__(_TestValue self, _TestValue o) -> bool"""
1285  return _IMP_kernel._TestValue___ne__(self, o)
1286 
1287 
1288  def __lt__(self, o):
1289  """__lt__(_TestValue self, _TestValue o) -> bool"""
1290  return _IMP_kernel._TestValue___lt__(self, o)
1291 
1292 
1293  def __gt__(self, o):
1294  """__gt__(_TestValue self, _TestValue o) -> bool"""
1295  return _IMP_kernel._TestValue___gt__(self, o)
1296 
1297 
1298  def __ge__(self, o):
1299  """__ge__(_TestValue self, _TestValue o) -> bool"""
1300  return _IMP_kernel._TestValue___ge__(self, o)
1301 
1302 
1303  def __le__(self, o):
1304  """__le__(_TestValue self, _TestValue o) -> bool"""
1305  return _IMP_kernel._TestValue___le__(self, o)
1306 
1307 
1308  def get(self):
1309  """get(_TestValue self) -> int"""
1310  return _IMP_kernel._TestValue_get(self)
1311 
1312 
1313  def get_float(self):
1314  """get_float(_TestValue self) -> float const &"""
1315  return _IMP_kernel._TestValue_get_float(self)
1316 
1317 
1318  def get_double(self):
1319  """get_double(_TestValue self) -> double const &"""
1320  return _IMP_kernel._TestValue_get_double(self)
1321 
1322 
1323  def get_Float(self):
1324  """get_Float(_TestValue self) -> IMP::Float const &"""
1325  return _IMP_kernel._TestValue_get_Float(self)
1326 
1327 
1328  def get_int(self):
1329  """get_int(_TestValue self) -> int const &"""
1330  return _IMP_kernel._TestValue_get_int(self)
1331 
1332 
1333  def get_Int(self):
1334  """get_Int(_TestValue self) -> IMP::Int const &"""
1335  return _IMP_kernel._TestValue_get_Int(self)
1336 
1337 
1338  def get_string(self):
1339  """get_string(_TestValue self) -> std::string const &"""
1340  return _IMP_kernel._TestValue_get_string(self)
1341 
1342 
1343  def get_String(self):
1344  """get_String(_TestValue self) -> IMP::String const &"""
1345  return _IMP_kernel._TestValue_get_String(self)
1346 
1347 
1348  def __str__(self):
1349  """__str__(_TestValue self) -> std::string"""
1350  return _IMP_kernel._TestValue___str__(self)
1351 
1352 
1353  def __repr__(self):
1354  """__repr__(_TestValue self) -> std::string"""
1355  return _IMP_kernel._TestValue___repr__(self)
1356 
1357  __swig_destroy__ = _IMP_kernel.delete__TestValue
1358  __del__ = lambda self: None
1359 _TestValue_swigregister = _IMP_kernel._TestValue_swigregister
1360 _TestValue_swigregister(_TestValue)
1361 
1362 
1363 def _pass_plain_pair(p):
1364  """_pass_plain_pair(IMP::FloatPair p) -> IMP::FloatPair"""
1365  return _IMP_kernel._pass_plain_pair(p)
1366 
1367 def _pass_overloaded_strings(*args):
1368  """
1369  _pass_overloaded_strings(IMP::Strings const & a, int arg2) -> IMP::Strings
1370  _pass_overloaded_strings(IMP::Strings const & a) -> IMP::Strings
1371  """
1372  return _IMP_kernel._pass_overloaded_strings(*args)
1373 
1374 def _pass_pair(p):
1375  """_pass_pair(IMP::DerivativePair const & p) -> IMP::DerivativePair"""
1376  return _IMP_kernel._pass_pair(p)
1377 
1378 def _pass_floats(input):
1379  """_pass_floats(IMP::Floats const & input) -> IMP::Floats"""
1380  return _IMP_kernel._pass_floats(input)
1381 
1382 def _pass_ints(input):
1383  """_pass_ints(IMP::Ints input) -> IMP::Ints"""
1384  return _IMP_kernel._pass_ints(input)
1385 
1386 def _pass_ints_list(input):
1387  """_pass_ints_list(IMP::IntsList const & input) -> IMP::IntsList"""
1388  return _IMP_kernel._pass_ints_list(input)
1389 
1390 def _pass_ints_lists(input):
1391  """_pass_ints_lists(IMP::IntsLists const & input) -> IMP::IntsLists"""
1392  return _IMP_kernel._pass_ints_lists(input)
1393 
1394 def _pass_strings(input):
1395  """_pass_strings(IMP::Strings const & input) -> IMP::Strings const &"""
1396  return _IMP_kernel._pass_strings(input)
1397 class _TestObject(Object):
1398  """Proxy of C++ IMP::internal::_TestObject class."""
1399 
1400  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1401 
1402  def __init__(self):
1403  """__init__(IMP::internal::_TestObject self) -> _TestObject"""
1404  this = _IMP_kernel.new__TestObject()
1405  try:
1406  self.this.append(this)
1407  except __builtin__.Exception:
1408  self.this = this
1409 
1410  def get_version_info(self):
1411  """get_version_info(_TestObject self) -> VersionInfo"""
1412  return _IMP_kernel._TestObject_get_version_info(self)
1413 
1414 
1415  def __str__(self):
1416  """__str__(_TestObject self) -> std::string"""
1417  return _IMP_kernel._TestObject___str__(self)
1418 
1419 
1420  def __repr__(self):
1421  """__repr__(_TestObject self) -> std::string"""
1422  return _IMP_kernel._TestObject___repr__(self)
1423 
1424 
1425  @staticmethod
1426  def get_from(o):
1427  return _object_cast_to__TestObject(o)
1428 
1429 _TestObject_swigregister = _IMP_kernel._TestObject_swigregister
1430 _TestObject_swigregister(_TestObject)
1431 
1432 
1433 def get_live_object_names():
1434  """get_live_object_names() -> IMP::Strings"""
1435  return _IMP_kernel.get_live_object_names()
1436 
1437 def get_live_objects():
1438  """get_live_objects() -> IMP::Objects"""
1439  return _IMP_kernel.get_live_objects()
1440 
1441 def set_show_leaked_objects(tf):
1442  """set_show_leaked_objects(bool tf)"""
1443  return _IMP_kernel.set_show_leaked_objects(tf)
1444 
1445 def set_deprecation_warnings(tf):
1446  """set_deprecation_warnings(bool tf)"""
1447  return _IMP_kernel.set_deprecation_warnings(tf)
1448 
1450  """set_deprecation_exceptions(bool tf)"""
1451  return _IMP_kernel.set_deprecation_exceptions(tf)
1452 
1454  """get_deprecation_exceptions() -> bool"""
1455  return _IMP_kernel.get_deprecation_exceptions()
1456 
1457 def handle_use_deprecated(message):
1458  """handle_use_deprecated(std::string message)"""
1459  return _IMP_kernel.handle_use_deprecated(message)
1460 
1461 def get_number_of_threads():
1462  """get_number_of_threads() -> unsigned int"""
1463  return _IMP_kernel.get_number_of_threads()
1464 
1465 def set_number_of_threads(n):
1466  """set_number_of_threads(unsigned int n)"""
1467  return _IMP_kernel.set_number_of_threads(n)
1468 class SetNumberOfThreads(_RAII):
1469  """Proxy of C++ IMP::SetNumberOfThreads class."""
1470 
1471  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1472 
1473  def __init__(self, *args):
1474  """
1475  __init__(IMP::SetNumberOfThreads self) -> SetNumberOfThreads
1476  __init__(IMP::SetNumberOfThreads self, unsigned int n) -> SetNumberOfThreads
1477  """
1478  this = _IMP_kernel.new_SetNumberOfThreads(*args)
1479  try:
1480  self.this.append(this)
1481  except __builtin__.Exception:
1482  self.this = this
1483 
1484  def set(self, n):
1485  """set(SetNumberOfThreads self, unsigned int n)"""
1486  return _IMP_kernel.SetNumberOfThreads_set(self, n)
1487 
1488 
1489  def reset(self):
1490  """reset(SetNumberOfThreads self)"""
1491  return _IMP_kernel.SetNumberOfThreads_reset(self)
1492 
1493  __swig_destroy__ = _IMP_kernel.delete_SetNumberOfThreads
1494  __del__ = lambda self: None
1495 
1496  def show(self, *args):
1497  """
1498  show(SetNumberOfThreads self, _ostream out)
1499  show(SetNumberOfThreads self)
1500  """
1501  return _IMP_kernel.SetNumberOfThreads_show(self, *args)
1502 
1503 
1504  def __enter__(self):
1505  return self
1506  def __exit__(self, exc_type, exc_val, exc_tb):
1507  self.reset()
1508  return False
1509 
1510 
1511  def __str__(self):
1512  """__str__(SetNumberOfThreads self) -> std::string"""
1513  return _IMP_kernel.SetNumberOfThreads___str__(self)
1514 
1515 
1516  def __repr__(self):
1517  """__repr__(SetNumberOfThreads self) -> std::string"""
1518  return _IMP_kernel.SetNumberOfThreads___repr__(self)
1519 
1520 SetNumberOfThreads_swigregister = _IMP_kernel.SetNumberOfThreads_swigregister
1521 SetNumberOfThreads_swigregister(SetNumberOfThreads)
1522 
1523 
1524 import os
1525 i_m_p="IMP_MODULE_PATH"
1526 if i_m_p in os.environ.keys():
1527  __path__.insert(0, os.environ[i_m_p])
1528 
1529 def _forward_add_attribute(self, name, value, opt=None):
1530  if opt is not None:
1531  self.get_particle().add_attribute(name, value, opt)
1532  else:
1533  self.get_particle().add_attribute(name, value)
1534 def _forward_get_value(self, name):
1535  self.get_particle().get_value(name)
1536 def _forward_set_value(self, name, value):
1537  self.get_particle().set_value(name, value)
1538 
1539 
1540 build="release"
1541 
1542 
1543 _object_types.append("Constraint")
1544 
1545 
1546 def _object_cast_to_Constraint(o):
1547  """_object_cast_to_Constraint(Object o) -> Constraint"""
1548  return _IMP_kernel._object_cast_to_Constraint(o)
1549 
1550 _object_types.append("Undecorator")
1551 
1552 
1553 def _object_cast_to_Undecorator(o):
1554  """_object_cast_to_Undecorator(Object o) -> Undecorator"""
1555  return _IMP_kernel._object_cast_to_Undecorator(o)
1556 
1557 _object_types.append("Container")
1558 
1559 
1560 def _object_cast_to_Container(o):
1561  """_object_cast_to_Container(Object o) -> Container"""
1562  return _IMP_kernel._object_cast_to_Container(o)
1563 
1564 _object_types.append("Optimizer")
1565 
1566 
1567 def _object_cast_to_Optimizer(o):
1568  """_object_cast_to_Optimizer(Object o) -> Optimizer"""
1569  return _IMP_kernel._object_cast_to_Optimizer(o)
1570 
1571 _object_types.append("AttributeOptimizer")
1572 
1573 
1574 def _object_cast_to_AttributeOptimizer(o):
1575  """_object_cast_to_AttributeOptimizer(Object o) -> AttributeOptimizer"""
1576  return _IMP_kernel._object_cast_to_AttributeOptimizer(o)
1577 
1578 _object_types.append("OptimizerState")
1579 
1580 
1581 def _object_cast_to_OptimizerState(o):
1582  """_object_cast_to_OptimizerState(Object o) -> OptimizerState"""
1583  return _IMP_kernel._object_cast_to_OptimizerState(o)
1584 
1585 _object_types.append("PairContainer")
1586 
1587 
1588 def _object_cast_to_PairContainer(o):
1589  """_object_cast_to_PairContainer(Object o) -> PairContainer"""
1590  return _IMP_kernel._object_cast_to_PairContainer(o)
1591 
1592 _object_types.append("PairModifier")
1593 
1594 
1595 def _object_cast_to_PairModifier(o):
1596  """_object_cast_to_PairModifier(Object o) -> PairModifier"""
1597  return _IMP_kernel._object_cast_to_PairModifier(o)
1598 
1599 _object_types.append("PairScore")
1600 
1601 
1602 def _object_cast_to_PairScore(o):
1603  """_object_cast_to_PairScore(Object o) -> PairScore"""
1604  return _IMP_kernel._object_cast_to_PairScore(o)
1605 
1606 _object_types.append("QuadContainer")
1607 
1608 
1609 def _object_cast_to_QuadContainer(o):
1610  """_object_cast_to_QuadContainer(Object o) -> QuadContainer"""
1611  return _IMP_kernel._object_cast_to_QuadContainer(o)
1612 
1613 _object_types.append("QuadModifier")
1614 
1615 
1616 def _object_cast_to_QuadModifier(o):
1617  """_object_cast_to_QuadModifier(Object o) -> QuadModifier"""
1618  return _IMP_kernel._object_cast_to_QuadModifier(o)
1619 
1620 _object_types.append("QuadScore")
1621 
1622 
1623 def _object_cast_to_QuadScore(o):
1624  """_object_cast_to_QuadScore(Object o) -> QuadScore"""
1625  return _IMP_kernel._object_cast_to_QuadScore(o)
1626 
1627 _object_types.append("Refiner")
1628 
1629 
1630 def _object_cast_to_Refiner(o):
1631  """_object_cast_to_Refiner(Object o) -> Refiner"""
1632  return _IMP_kernel._object_cast_to_Refiner(o)
1633 
1634 _object_types.append("Restraint")
1635 
1636 
1637 def _object_cast_to_Restraint(o):
1638  """_object_cast_to_Restraint(Object o) -> Restraint"""
1639  return _IMP_kernel._object_cast_to_Restraint(o)
1640 
1641 _object_types.append("Sampler")
1642 
1643 
1644 def _object_cast_to_Sampler(o):
1645  """_object_cast_to_Sampler(Object o) -> Sampler"""
1646  return _IMP_kernel._object_cast_to_Sampler(o)
1647 
1648 _object_types.append("ScoreState")
1649 
1650 
1651 def _object_cast_to_ScoreState(o):
1652  """_object_cast_to_ScoreState(Object o) -> ScoreState"""
1653  return _IMP_kernel._object_cast_to_ScoreState(o)
1654 
1655 _object_types.append("SingletonContainer")
1656 
1657 
1658 def _object_cast_to_SingletonContainer(o):
1659  """_object_cast_to_SingletonContainer(Object o) -> SingletonContainer"""
1660  return _IMP_kernel._object_cast_to_SingletonContainer(o)
1661 
1662 _object_types.append("SingletonModifier")
1663 
1664 
1665 def _object_cast_to_SingletonModifier(o):
1666  """_object_cast_to_SingletonModifier(Object o) -> SingletonModifier"""
1667  return _IMP_kernel._object_cast_to_SingletonModifier(o)
1668 
1669 _object_types.append("SingletonScore")
1670 
1671 
1672 def _object_cast_to_SingletonScore(o):
1673  """_object_cast_to_SingletonScore(Object o) -> SingletonScore"""
1674  return _IMP_kernel._object_cast_to_SingletonScore(o)
1675 
1676 _object_types.append("TripletContainer")
1677 
1678 
1679 def _object_cast_to_TripletContainer(o):
1680  """_object_cast_to_TripletContainer(Object o) -> TripletContainer"""
1681  return _IMP_kernel._object_cast_to_TripletContainer(o)
1682 
1683 _object_types.append("TripletModifier")
1684 
1685 
1686 def _object_cast_to_TripletModifier(o):
1687  """_object_cast_to_TripletModifier(Object o) -> TripletModifier"""
1688  return _IMP_kernel._object_cast_to_TripletModifier(o)
1689 
1690 _object_types.append("TripletScore")
1691 
1692 
1693 def _object_cast_to_TripletScore(o):
1694  """_object_cast_to_TripletScore(Object o) -> TripletScore"""
1695  return _IMP_kernel._object_cast_to_TripletScore(o)
1696 
1697 _object_types.append("UnaryFunction")
1698 
1699 
1700 def _object_cast_to_UnaryFunction(o):
1701  """_object_cast_to_UnaryFunction(Object o) -> UnaryFunction"""
1702  return _IMP_kernel._object_cast_to_UnaryFunction(o)
1703 
1704 _object_types.append("RestraintInfo")
1705 
1706 
1707 def _object_cast_to_RestraintInfo(o):
1708  """_object_cast_to_RestraintInfo(Object o) -> RestraintInfo"""
1709  return _IMP_kernel._object_cast_to_RestraintInfo(o)
1710 
1711 _object_types.append("ConfigurationSet")
1712 
1713 
1714 def _object_cast_to_ConfigurationSet(o):
1715  """_object_cast_to_ConfigurationSet(Object o) -> ConfigurationSet"""
1716  return _IMP_kernel._object_cast_to_ConfigurationSet(o)
1717 
1718 _object_types.append("Configuration")
1719 
1720 
1721 def _object_cast_to_Configuration(o):
1722  """_object_cast_to_Configuration(Object o) -> Configuration"""
1723  return _IMP_kernel._object_cast_to_Configuration(o)
1724 
1725 _object_types.append("Model")
1726 
1727 
1728 def _object_cast_to_Model(o):
1729  """_object_cast_to_Model(Object o) -> Model"""
1730  return _IMP_kernel._object_cast_to_Model(o)
1731 
1732 _object_types.append("Particle")
1733 
1734 
1735 def _object_cast_to_Particle(o):
1736  """_object_cast_to_Particle(Object o) -> Particle"""
1737  return _IMP_kernel._object_cast_to_Particle(o)
1738 
1739 _object_types.append("RestraintSet")
1740 
1741 
1742 def _object_cast_to_RestraintSet(o):
1743  """_object_cast_to_RestraintSet(Object o) -> RestraintSet"""
1744  return _IMP_kernel._object_cast_to_RestraintSet(o)
1745 
1746 ParticlePairsTemp=list
1747 _plural_types.append("ParticlePairsTemp")
1748 _value_types.append("ParticlePair")
1749 
1750 
1751 ParticleTripletsTemp=list
1752 _plural_types.append("ParticleTripletsTemp")
1753 _value_types.append("ParticleTriplet")
1754 
1755 
1756 ParticleQuadsTemp=list
1757 _plural_types.append("ParticleQuadsTemp")
1758 _value_types.append("ParticleQuad")
1759 
1760 
1761 ParticleIndexPairs=list
1762 _plural_types.append("ParticleIndexPairs")
1763 _value_types.append("ParticleIndexPair")
1764 
1765 
1766 ParticleIndexTriplets=list
1767 _plural_types.append("ParticleIndexTriplets")
1768 _value_types.append("ParticleIndexTriplet")
1769 
1770 
1771 ParticleIndexQuads=list
1772 _plural_types.append("ParticleIndexQuads")
1773 _value_types.append("ParticleIndexQuad")
1774 
1775 
1776 _object_types.append("SingletonPredicate")
1777 
1778 
1779 def _object_cast_to_SingletonPredicate(o):
1780  """_object_cast_to_SingletonPredicate(Object o) -> SingletonPredicate"""
1781  return _IMP_kernel._object_cast_to_SingletonPredicate(o)
1782 
1783 _object_types.append("PairPredicate")
1784 
1785 
1786 def _object_cast_to_PairPredicate(o):
1787  """_object_cast_to_PairPredicate(Object o) -> PairPredicate"""
1788  return _IMP_kernel._object_cast_to_PairPredicate(o)
1789 
1790 _object_types.append("TripletPredicate")
1791 
1792 
1793 def _object_cast_to_TripletPredicate(o):
1794  """_object_cast_to_TripletPredicate(Object o) -> TripletPredicate"""
1795  return _IMP_kernel._object_cast_to_TripletPredicate(o)
1796 
1797 _object_types.append("QuadPredicate")
1798 
1799 
1800 def _object_cast_to_QuadPredicate(o):
1801  """_object_cast_to_QuadPredicate(Object o) -> QuadPredicate"""
1802  return _IMP_kernel._object_cast_to_QuadPredicate(o)
1803 
1804 _object_types.append("SaveToConfigurationSetOptimizerState")
1805 
1806 
1807 def _object_cast_to_SaveToConfigurationSetOptimizerState(o):
1808  """_object_cast_to_SaveToConfigurationSetOptimizerState(Object o) -> SaveToConfigurationSetOptimizerState"""
1809  return _IMP_kernel._object_cast_to_SaveToConfigurationSetOptimizerState(o)
1810 
1811 EvaluationStates=list
1812 _plural_types.append("EvaluationStates")
1813 _value_types.append("EvaluationState")
1814 
1815 
1816 ScoreAccumulators=list
1817 _plural_types.append("ScoreAccumulators")
1818 _value_types.append("ScoreAccumulator")
1819 
1820 
1821 ParticleIndexes=list
1822 _plural_types.append("ParticleIndexes")
1823 _value_types.append("ParticleIndex")
1824 
1825 
1826 FloatIndexes=list
1827 _plural_types.append("FloatIndexes")
1828 _value_types.append("FloatIndex")
1829 
1830 
1831 FloatKeys=list
1832 _plural_types.append("FloatKeys")
1833 _value_types.append("FloatKey")
1834 
1835 
1836 IntKeys=list
1837 _plural_types.append("IntKeys")
1838 _value_types.append("IntKey")
1839 
1840 
1841 StringKeys=list
1842 _plural_types.append("StringKeys")
1843 _value_types.append("StringKey")
1844 
1845 
1846 ParticleIndexKeys=list
1847 _plural_types.append("ParticleIndexKeys")
1848 _value_types.append("ParticleIndexKey")
1849 
1850 
1851 ParticleIndexesKeys=list
1852 _plural_types.append("ParticleIndexesKeys")
1853 _value_types.append("ParticleIndexesKey")
1854 
1855 
1856 ObjectKeys=list
1857 _plural_types.append("ObjectKeys")
1858 _value_types.append("ObjectKey")
1859 
1860 
1861 ModelKeys=list
1862 _plural_types.append("ModelKeys")
1863 _value_types.append("ModelKey")
1864 
1865 
1866 _raii_types.append("ScopedSetFloatAttribute")
1867 
1868 
1869 _object_types.append("ScoringFunction")
1870 
1871 
1872 def _object_cast_to_ScoringFunction(o):
1873  """_object_cast_to_ScoringFunction(Object o) -> ScoringFunction"""
1874  return _IMP_kernel._object_cast_to_ScoringFunction(o)
1875 
1876 _object_types.append("ModelObject")
1877 
1878 
1879 def _object_cast_to_ModelObject(o):
1880  """_object_cast_to_ModelObject(Object o) -> ModelObject"""
1881  return _IMP_kernel._object_cast_to_ModelObject(o)
1882 
1883 def _TrivialDecorators(l=[]):
1884  return [_TrivialDecorator(x) for x in l]
1885 _plural_types.append("_TrivialDecorators")
1886 
1887 
1888 _value_types.append("_TrivialDecorator")
1889 
1890 
1891 def _TrivialDerivedDecorators(l=[]):
1892  return [_TrivialDerivedDecorator(x) for x in l]
1893 _plural_types.append("_TrivialDerivedDecorators")
1894 
1895 
1896 _value_types.append("_TrivialDerivedDecorator")
1897 
1898 
1899 def _TrivialTraitsDecorators(l=[]):
1900  return [_TrivialTraitsDecorator(x) for x in l]
1901 _plural_types.append("_TrivialTraitsDecorators")
1902 
1903 
1904 _value_types.append("_TrivialTraitsDecorator")
1905 
1906 
1907 _object_types.append("_ConstRestraint")
1908 
1909 
1910 def _object_cast_to__ConstRestraint(o):
1911  """_object_cast_to__ConstRestraint(Object o) -> _ConstRestraint"""
1912  return _IMP_kernel._object_cast_to__ConstRestraint(o)
1913 
1914 _object_types.append("_ConstOptimizer")
1915 
1916 
1917 def _object_cast_to__ConstOptimizer(o):
1918  """_object_cast_to__ConstOptimizer(Object o) -> _ConstOptimizer"""
1919  return _IMP_kernel._object_cast_to__ConstOptimizer(o)
1920 class DependencyGraph(Object):
1921  """Proxy of C++ IMP::internal::BoostDigraph<(IMP::DependencyGraph,p.IMP::ModelObject,IMP::ShowDependencyGraphVertex)> class."""
1922 
1923  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1924  __repr__ = _swig_repr
1925 
1926  def __init__(self):
1927  """__init__(IMP::internal::BoostDigraph<(IMP::DependencyGraph,p.IMP::ModelObject,IMP::ShowDependencyGraphVertex)> self) -> DependencyGraph"""
1928  this = _IMP_kernel.new_DependencyGraph()
1929  try:
1930  self.this.append(this)
1931  except __builtin__.Exception:
1932  self.this = this
1933 
1934  def get_graph(self):
1935  """get_graph(DependencyGraph self) -> IMP::DependencyGraph const &"""
1936  return _IMP_kernel.DependencyGraph_get_graph(self)
1937 
1938 
1939  def get_vertices(self):
1940  """get_vertices(DependencyGraph self) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptors"""
1941  return _IMP_kernel.DependencyGraph_get_vertices(self)
1942 
1943 
1944  def get_vertex_name(self, i):
1945  """get_vertex_name(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor i) -> ModelObject"""
1946  return _IMP_kernel.DependencyGraph_get_vertex_name(self, i)
1947 
1948 
1949  def get_in_neighbors(self, v):
1950  """get_in_neighbors(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor v) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptors"""
1951  return _IMP_kernel.DependencyGraph_get_in_neighbors(self, v)
1952 
1953 
1954  def get_out_neighbors(self, v):
1955  """get_out_neighbors(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor v) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptors"""
1956  return _IMP_kernel.DependencyGraph_get_out_neighbors(self, v)
1957 
1958 
1959  def show_graphviz(self, *args):
1960  """
1961  show_graphviz(DependencyGraph self, _ostream out)
1962  show_graphviz(DependencyGraph self)
1963  """
1964  return _IMP_kernel.DependencyGraph_show_graphviz(self, *args)
1965 
1966 
1967  def get_graphviz_string(self):
1968  """get_graphviz_string(DependencyGraph self) -> std::string"""
1969  return _IMP_kernel.DependencyGraph_get_graphviz_string(self)
1970 
1971 
1972  def add_edge(self, v0, v1):
1973  """add_edge(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor v0, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor v1)"""
1974  return _IMP_kernel.DependencyGraph_add_edge(self, v0, v1)
1975 
1976 
1977  def add_vertex(self, l):
1978  """add_vertex(DependencyGraph self, ModelObject l) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor"""
1979  return _IMP_kernel.DependencyGraph_add_vertex(self, l)
1980 
1981 
1982  def remove_vertex(self, l):
1983  """remove_vertex(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor l)"""
1984  return _IMP_kernel.DependencyGraph_remove_vertex(self, l)
1985 
1986  __swig_destroy__ = _IMP_kernel.delete_DependencyGraph
1987  __del__ = lambda self: None
1988 DependencyGraph_swigregister = _IMP_kernel.DependencyGraph_swigregister
1989 DependencyGraph_swigregister(DependencyGraph)
1990 
1991 
1992 _value_types.append("DependencyGraph")
1993 
1994 class FloatKey(_Value):
1995  """Proxy of C++ IMP::Key<(0)> class."""
1996 
1997  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1998 
1999  def __init__(self, *args):
2000  """
2001  __init__(IMP::Key<(0)> self) -> FloatKey
2002  __init__(IMP::Key<(0)> self, std::string const & c, bool is_implicit_add_permitted=True) -> FloatKey
2003  __init__(IMP::Key<(0)> self, std::string const & c) -> FloatKey
2004  __init__(IMP::Key<(0)> self, unsigned int i) -> FloatKey
2005  """
2006  this = _IMP_kernel.new_FloatKey(*args)
2007  try:
2008  self.this.append(this)
2009  except __builtin__.Exception:
2010  self.this = this
2011 
2012  def add_key(sc):
2013  """add_key(std::string sc) -> unsigned int"""
2014  return _IMP_kernel.FloatKey_add_key(sc)
2015 
2016  add_key = staticmethod(add_key)
2017 
2018  def get_key_exists(sc):
2019  """get_key_exists(std::string sc) -> bool"""
2020  return _IMP_kernel.FloatKey_get_key_exists(sc)
2021 
2022  get_key_exists = staticmethod(get_key_exists)
2023 
2024  def get_string(self):
2025  """get_string(FloatKey self) -> std::string const"""
2026  return _IMP_kernel.FloatKey_get_string(self)
2027 
2028 
2029  def __cmp__(self, o):
2030  """__cmp__(FloatKey self, FloatKey o) -> int"""
2031  return _IMP_kernel.FloatKey___cmp__(self, o)
2032 
2033 
2034  def __eq__(self, o):
2035  """__eq__(FloatKey self, FloatKey o) -> bool"""
2036  return _IMP_kernel.FloatKey___eq__(self, o)
2037 
2038 
2039  def __ne__(self, o):
2040  """__ne__(FloatKey self, FloatKey o) -> bool"""
2041  return _IMP_kernel.FloatKey___ne__(self, o)
2042 
2043 
2044  def __lt__(self, o):
2045  """__lt__(FloatKey self, FloatKey o) -> bool"""
2046  return _IMP_kernel.FloatKey___lt__(self, o)
2047 
2048 
2049  def __gt__(self, o):
2050  """__gt__(FloatKey self, FloatKey o) -> bool"""
2051  return _IMP_kernel.FloatKey___gt__(self, o)
2052 
2053 
2054  def __ge__(self, o):
2055  """__ge__(FloatKey self, FloatKey o) -> bool"""
2056  return _IMP_kernel.FloatKey___ge__(self, o)
2057 
2058 
2059  def __le__(self, o):
2060  """__le__(FloatKey self, FloatKey o) -> bool"""
2061  return _IMP_kernel.FloatKey___le__(self, o)
2062 
2063 
2064  def __hash__(self):
2065  """__hash__(FloatKey self) -> std::size_t"""
2066  return _IMP_kernel.FloatKey___hash__(self)
2067 
2068 
2069  def show(self, *args):
2070  """
2071  show(FloatKey self, _ostream out)
2072  show(FloatKey self)
2073  """
2074  return _IMP_kernel.FloatKey_show(self, *args)
2075 
2076 
2077  def add_alias(old_key, new_name):
2078  """add_alias(FloatKey old_key, std::string new_name) -> FloatKey"""
2079  return _IMP_kernel.FloatKey_add_alias(old_key, new_name)
2080 
2081  add_alias = staticmethod(add_alias)
2082 
2083  def get_number_of_keys():
2084  """get_number_of_keys() -> unsigned int"""
2085  return _IMP_kernel.FloatKey_get_number_of_keys()
2086 
2087  get_number_of_keys = staticmethod(get_number_of_keys)
2088 
2089  def get_index(self):
2090  """get_index(FloatKey self) -> unsigned int"""
2091  return _IMP_kernel.FloatKey_get_index(self)
2092 
2093 
2094  def show_all(out):
2095  """show_all(_ostream out)"""
2096  return _IMP_kernel.FloatKey_show_all(out)
2097 
2098  show_all = staticmethod(show_all)
2099 
2100  def get_all_strings():
2101  """get_all_strings() -> IMP::Vector< std::string >"""
2102  return _IMP_kernel.FloatKey_get_all_strings()
2103 
2104  get_all_strings = staticmethod(get_all_strings)
2105 
2106  def get_number_unique():
2107  """get_number_unique() -> unsigned int"""
2108  return _IMP_kernel.FloatKey_get_number_unique()
2109 
2110  get_number_unique = staticmethod(get_number_unique)
2111 
2112  def __str__(self):
2113  """__str__(FloatKey self) -> std::string"""
2114  return _IMP_kernel.FloatKey___str__(self)
2115 
2116 
2117  def __repr__(self):
2118  """__repr__(FloatKey self) -> std::string"""
2119  return _IMP_kernel.FloatKey___repr__(self)
2120 
2121  __swig_destroy__ = _IMP_kernel.delete_FloatKey
2122  __del__ = lambda self: None
2123 FloatKey_swigregister = _IMP_kernel.FloatKey_swigregister
2124 FloatKey_swigregister(FloatKey)
2125 
2126 def FloatKey_add_key(sc):
2127  """FloatKey_add_key(std::string sc) -> unsigned int"""
2128  return _IMP_kernel.FloatKey_add_key(sc)
2129 
2130 def FloatKey_get_key_exists(sc):
2131  """FloatKey_get_key_exists(std::string sc) -> bool"""
2132  return _IMP_kernel.FloatKey_get_key_exists(sc)
2133 
2134 def FloatKey_add_alias(old_key, new_name):
2135  """FloatKey_add_alias(FloatKey old_key, std::string new_name) -> FloatKey"""
2136  return _IMP_kernel.FloatKey_add_alias(old_key, new_name)
2137 
2138 def FloatKey_get_number_of_keys():
2139  """FloatKey_get_number_of_keys() -> unsigned int"""
2140  return _IMP_kernel.FloatKey_get_number_of_keys()
2141 
2142 def FloatKey_show_all(out):
2143  """FloatKey_show_all(_ostream out)"""
2144  return _IMP_kernel.FloatKey_show_all(out)
2145 
2146 def FloatKey_get_all_strings():
2147  """FloatKey_get_all_strings() -> IMP::Vector< std::string >"""
2148  return _IMP_kernel.FloatKey_get_all_strings()
2149 
2150 def FloatKey_get_number_unique():
2151  """FloatKey_get_number_unique() -> unsigned int"""
2152  return _IMP_kernel.FloatKey_get_number_unique()
2153 
2154 class IntKey(_Value):
2155  """Proxy of C++ IMP::Key<(1)> class."""
2156 
2157  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2158 
2159  def __init__(self, *args):
2160  """
2161  __init__(IMP::Key<(1)> self) -> IntKey
2162  __init__(IMP::Key<(1)> self, std::string const & c, bool is_implicit_add_permitted=True) -> IntKey
2163  __init__(IMP::Key<(1)> self, std::string const & c) -> IntKey
2164  __init__(IMP::Key<(1)> self, unsigned int i) -> IntKey
2165  """
2166  this = _IMP_kernel.new_IntKey(*args)
2167  try:
2168  self.this.append(this)
2169  except __builtin__.Exception:
2170  self.this = this
2171 
2172  def add_key(sc):
2173  """add_key(std::string sc) -> unsigned int"""
2174  return _IMP_kernel.IntKey_add_key(sc)
2175 
2176  add_key = staticmethod(add_key)
2177 
2178  def get_key_exists(sc):
2179  """get_key_exists(std::string sc) -> bool"""
2180  return _IMP_kernel.IntKey_get_key_exists(sc)
2181 
2182  get_key_exists = staticmethod(get_key_exists)
2183 
2184  def get_string(self):
2185  """get_string(IntKey self) -> std::string const"""
2186  return _IMP_kernel.IntKey_get_string(self)
2187 
2188 
2189  def __cmp__(self, o):
2190  """__cmp__(IntKey self, IntKey o) -> int"""
2191  return _IMP_kernel.IntKey___cmp__(self, o)
2192 
2193 
2194  def __eq__(self, o):
2195  """__eq__(IntKey self, IntKey o) -> bool"""
2196  return _IMP_kernel.IntKey___eq__(self, o)
2197 
2198 
2199  def __ne__(self, o):
2200  """__ne__(IntKey self, IntKey o) -> bool"""
2201  return _IMP_kernel.IntKey___ne__(self, o)
2202 
2203 
2204  def __lt__(self, o):
2205  """__lt__(IntKey self, IntKey o) -> bool"""
2206  return _IMP_kernel.IntKey___lt__(self, o)
2207 
2208 
2209  def __gt__(self, o):
2210  """__gt__(IntKey self, IntKey o) -> bool"""
2211  return _IMP_kernel.IntKey___gt__(self, o)
2212 
2213 
2214  def __ge__(self, o):
2215  """__ge__(IntKey self, IntKey o) -> bool"""
2216  return _IMP_kernel.IntKey___ge__(self, o)
2217 
2218 
2219  def __le__(self, o):
2220  """__le__(IntKey self, IntKey o) -> bool"""
2221  return _IMP_kernel.IntKey___le__(self, o)
2222 
2223 
2224  def __hash__(self):
2225  """__hash__(IntKey self) -> std::size_t"""
2226  return _IMP_kernel.IntKey___hash__(self)
2227 
2228 
2229  def show(self, *args):
2230  """
2231  show(IntKey self, _ostream out)
2232  show(IntKey self)
2233  """
2234  return _IMP_kernel.IntKey_show(self, *args)
2235 
2236 
2237  def add_alias(old_key, new_name):
2238  """add_alias(IntKey old_key, std::string new_name) -> IntKey"""
2239  return _IMP_kernel.IntKey_add_alias(old_key, new_name)
2240 
2241  add_alias = staticmethod(add_alias)
2242 
2243  def get_number_of_keys():
2244  """get_number_of_keys() -> unsigned int"""
2245  return _IMP_kernel.IntKey_get_number_of_keys()
2246 
2247  get_number_of_keys = staticmethod(get_number_of_keys)
2248 
2249  def get_index(self):
2250  """get_index(IntKey self) -> unsigned int"""
2251  return _IMP_kernel.IntKey_get_index(self)
2252 
2253 
2254  def show_all(out):
2255  """show_all(_ostream out)"""
2256  return _IMP_kernel.IntKey_show_all(out)
2257 
2258  show_all = staticmethod(show_all)
2259 
2260  def get_all_strings():
2261  """get_all_strings() -> IMP::Vector< std::string >"""
2262  return _IMP_kernel.IntKey_get_all_strings()
2263 
2264  get_all_strings = staticmethod(get_all_strings)
2265 
2266  def get_number_unique():
2267  """get_number_unique() -> unsigned int"""
2268  return _IMP_kernel.IntKey_get_number_unique()
2269 
2270  get_number_unique = staticmethod(get_number_unique)
2271 
2272  def __str__(self):
2273  """__str__(IntKey self) -> std::string"""
2274  return _IMP_kernel.IntKey___str__(self)
2275 
2276 
2277  def __repr__(self):
2278  """__repr__(IntKey self) -> std::string"""
2279  return _IMP_kernel.IntKey___repr__(self)
2280 
2281  __swig_destroy__ = _IMP_kernel.delete_IntKey
2282  __del__ = lambda self: None
2283 IntKey_swigregister = _IMP_kernel.IntKey_swigregister
2284 IntKey_swigregister(IntKey)
2285 
2286 def IntKey_add_key(sc):
2287  """IntKey_add_key(std::string sc) -> unsigned int"""
2288  return _IMP_kernel.IntKey_add_key(sc)
2289 
2290 def IntKey_get_key_exists(sc):
2291  """IntKey_get_key_exists(std::string sc) -> bool"""
2292  return _IMP_kernel.IntKey_get_key_exists(sc)
2293 
2294 def IntKey_add_alias(old_key, new_name):
2295  """IntKey_add_alias(IntKey old_key, std::string new_name) -> IntKey"""
2296  return _IMP_kernel.IntKey_add_alias(old_key, new_name)
2297 
2298 def IntKey_get_number_of_keys():
2299  """IntKey_get_number_of_keys() -> unsigned int"""
2300  return _IMP_kernel.IntKey_get_number_of_keys()
2301 
2302 def IntKey_show_all(out):
2303  """IntKey_show_all(_ostream out)"""
2304  return _IMP_kernel.IntKey_show_all(out)
2305 
2306 def IntKey_get_all_strings():
2307  """IntKey_get_all_strings() -> IMP::Vector< std::string >"""
2308  return _IMP_kernel.IntKey_get_all_strings()
2309 
2310 def IntKey_get_number_unique():
2311  """IntKey_get_number_unique() -> unsigned int"""
2312  return _IMP_kernel.IntKey_get_number_unique()
2313 
2314 class StringKey(_Value):
2315  """Proxy of C++ IMP::Key<(2)> class."""
2316 
2317  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2318 
2319  def __init__(self, *args):
2320  """
2321  __init__(IMP::Key<(2)> self) -> StringKey
2322  __init__(IMP::Key<(2)> self, std::string const & c, bool is_implicit_add_permitted=True) -> StringKey
2323  __init__(IMP::Key<(2)> self, std::string const & c) -> StringKey
2324  __init__(IMP::Key<(2)> self, unsigned int i) -> StringKey
2325  """
2326  this = _IMP_kernel.new_StringKey(*args)
2327  try:
2328  self.this.append(this)
2329  except __builtin__.Exception:
2330  self.this = this
2331 
2332  def add_key(sc):
2333  """add_key(std::string sc) -> unsigned int"""
2334  return _IMP_kernel.StringKey_add_key(sc)
2335 
2336  add_key = staticmethod(add_key)
2337 
2338  def get_key_exists(sc):
2339  """get_key_exists(std::string sc) -> bool"""
2340  return _IMP_kernel.StringKey_get_key_exists(sc)
2341 
2342  get_key_exists = staticmethod(get_key_exists)
2343 
2344  def get_string(self):
2345  """get_string(StringKey self) -> std::string const"""
2346  return _IMP_kernel.StringKey_get_string(self)
2347 
2348 
2349  def __cmp__(self, o):
2350  """__cmp__(StringKey self, StringKey o) -> int"""
2351  return _IMP_kernel.StringKey___cmp__(self, o)
2352 
2353 
2354  def __eq__(self, o):
2355  """__eq__(StringKey self, StringKey o) -> bool"""
2356  return _IMP_kernel.StringKey___eq__(self, o)
2357 
2358 
2359  def __ne__(self, o):
2360  """__ne__(StringKey self, StringKey o) -> bool"""
2361  return _IMP_kernel.StringKey___ne__(self, o)
2362 
2363 
2364  def __lt__(self, o):
2365  """__lt__(StringKey self, StringKey o) -> bool"""
2366  return _IMP_kernel.StringKey___lt__(self, o)
2367 
2368 
2369  def __gt__(self, o):
2370  """__gt__(StringKey self, StringKey o) -> bool"""
2371  return _IMP_kernel.StringKey___gt__(self, o)
2372 
2373 
2374  def __ge__(self, o):
2375  """__ge__(StringKey self, StringKey o) -> bool"""
2376  return _IMP_kernel.StringKey___ge__(self, o)
2377 
2378 
2379  def __le__(self, o):
2380  """__le__(StringKey self, StringKey o) -> bool"""
2381  return _IMP_kernel.StringKey___le__(self, o)
2382 
2383 
2384  def __hash__(self):
2385  """__hash__(StringKey self) -> std::size_t"""
2386  return _IMP_kernel.StringKey___hash__(self)
2387 
2388 
2389  def show(self, *args):
2390  """
2391  show(StringKey self, _ostream out)
2392  show(StringKey self)
2393  """
2394  return _IMP_kernel.StringKey_show(self, *args)
2395 
2396 
2397  def add_alias(old_key, new_name):
2398  """add_alias(StringKey old_key, std::string new_name) -> StringKey"""
2399  return _IMP_kernel.StringKey_add_alias(old_key, new_name)
2400 
2401  add_alias = staticmethod(add_alias)
2402 
2403  def get_number_of_keys():
2404  """get_number_of_keys() -> unsigned int"""
2405  return _IMP_kernel.StringKey_get_number_of_keys()
2406 
2407  get_number_of_keys = staticmethod(get_number_of_keys)
2408 
2409  def get_index(self):
2410  """get_index(StringKey self) -> unsigned int"""
2411  return _IMP_kernel.StringKey_get_index(self)
2412 
2413 
2414  def show_all(out):
2415  """show_all(_ostream out)"""
2416  return _IMP_kernel.StringKey_show_all(out)
2417 
2418  show_all = staticmethod(show_all)
2419 
2420  def get_all_strings():
2421  """get_all_strings() -> IMP::Vector< std::string >"""
2422  return _IMP_kernel.StringKey_get_all_strings()
2423 
2424  get_all_strings = staticmethod(get_all_strings)
2425 
2426  def get_number_unique():
2427  """get_number_unique() -> unsigned int"""
2428  return _IMP_kernel.StringKey_get_number_unique()
2429 
2430  get_number_unique = staticmethod(get_number_unique)
2431 
2432  def __str__(self):
2433  """__str__(StringKey self) -> std::string"""
2434  return _IMP_kernel.StringKey___str__(self)
2435 
2436 
2437  def __repr__(self):
2438  """__repr__(StringKey self) -> std::string"""
2439  return _IMP_kernel.StringKey___repr__(self)
2440 
2441  __swig_destroy__ = _IMP_kernel.delete_StringKey
2442  __del__ = lambda self: None
2443 StringKey_swigregister = _IMP_kernel.StringKey_swigregister
2444 StringKey_swigregister(StringKey)
2445 
2446 def StringKey_add_key(sc):
2447  """StringKey_add_key(std::string sc) -> unsigned int"""
2448  return _IMP_kernel.StringKey_add_key(sc)
2449 
2450 def StringKey_get_key_exists(sc):
2451  """StringKey_get_key_exists(std::string sc) -> bool"""
2452  return _IMP_kernel.StringKey_get_key_exists(sc)
2453 
2454 def StringKey_add_alias(old_key, new_name):
2455  """StringKey_add_alias(StringKey old_key, std::string new_name) -> StringKey"""
2456  return _IMP_kernel.StringKey_add_alias(old_key, new_name)
2457 
2458 def StringKey_get_number_of_keys():
2459  """StringKey_get_number_of_keys() -> unsigned int"""
2460  return _IMP_kernel.StringKey_get_number_of_keys()
2461 
2462 def StringKey_show_all(out):
2463  """StringKey_show_all(_ostream out)"""
2464  return _IMP_kernel.StringKey_show_all(out)
2465 
2466 def StringKey_get_all_strings():
2467  """StringKey_get_all_strings() -> IMP::Vector< std::string >"""
2468  return _IMP_kernel.StringKey_get_all_strings()
2469 
2470 def StringKey_get_number_unique():
2471  """StringKey_get_number_unique() -> unsigned int"""
2472  return _IMP_kernel.StringKey_get_number_unique()
2473 
2474 class ParticleIndexKey(_Value):
2475  """Proxy of C++ IMP::Key<(3)> class."""
2476 
2477  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2478 
2479  def __init__(self, *args):
2480  """
2481  __init__(IMP::Key<(3)> self) -> ParticleIndexKey
2482  __init__(IMP::Key<(3)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleIndexKey
2483  __init__(IMP::Key<(3)> self, std::string const & c) -> ParticleIndexKey
2484  __init__(IMP::Key<(3)> self, unsigned int i) -> ParticleIndexKey
2485  """
2486  this = _IMP_kernel.new_ParticleIndexKey(*args)
2487  try:
2488  self.this.append(this)
2489  except __builtin__.Exception:
2490  self.this = this
2491 
2492  def add_key(sc):
2493  """add_key(std::string sc) -> unsigned int"""
2494  return _IMP_kernel.ParticleIndexKey_add_key(sc)
2495 
2496  add_key = staticmethod(add_key)
2497 
2498  def get_key_exists(sc):
2499  """get_key_exists(std::string sc) -> bool"""
2500  return _IMP_kernel.ParticleIndexKey_get_key_exists(sc)
2501 
2502  get_key_exists = staticmethod(get_key_exists)
2503 
2504  def get_string(self):
2505  """get_string(ParticleIndexKey self) -> std::string const"""
2506  return _IMP_kernel.ParticleIndexKey_get_string(self)
2507 
2508 
2509  def __cmp__(self, o):
2510  """__cmp__(ParticleIndexKey self, ParticleIndexKey o) -> int"""
2511  return _IMP_kernel.ParticleIndexKey___cmp__(self, o)
2512 
2513 
2514  def __eq__(self, o):
2515  """__eq__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2516  return _IMP_kernel.ParticleIndexKey___eq__(self, o)
2517 
2518 
2519  def __ne__(self, o):
2520  """__ne__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2521  return _IMP_kernel.ParticleIndexKey___ne__(self, o)
2522 
2523 
2524  def __lt__(self, o):
2525  """__lt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2526  return _IMP_kernel.ParticleIndexKey___lt__(self, o)
2527 
2528 
2529  def __gt__(self, o):
2530  """__gt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2531  return _IMP_kernel.ParticleIndexKey___gt__(self, o)
2532 
2533 
2534  def __ge__(self, o):
2535  """__ge__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2536  return _IMP_kernel.ParticleIndexKey___ge__(self, o)
2537 
2538 
2539  def __le__(self, o):
2540  """__le__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2541  return _IMP_kernel.ParticleIndexKey___le__(self, o)
2542 
2543 
2544  def __hash__(self):
2545  """__hash__(ParticleIndexKey self) -> std::size_t"""
2546  return _IMP_kernel.ParticleIndexKey___hash__(self)
2547 
2548 
2549  def show(self, *args):
2550  """
2551  show(ParticleIndexKey self, _ostream out)
2552  show(ParticleIndexKey self)
2553  """
2554  return _IMP_kernel.ParticleIndexKey_show(self, *args)
2555 
2556 
2557  def add_alias(old_key, new_name):
2558  """add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
2559  return _IMP_kernel.ParticleIndexKey_add_alias(old_key, new_name)
2560 
2561  add_alias = staticmethod(add_alias)
2562 
2563  def get_number_of_keys():
2564  """get_number_of_keys() -> unsigned int"""
2565  return _IMP_kernel.ParticleIndexKey_get_number_of_keys()
2566 
2567  get_number_of_keys = staticmethod(get_number_of_keys)
2568 
2569  def get_index(self):
2570  """get_index(ParticleIndexKey self) -> unsigned int"""
2571  return _IMP_kernel.ParticleIndexKey_get_index(self)
2572 
2573 
2574  def show_all(out):
2575  """show_all(_ostream out)"""
2576  return _IMP_kernel.ParticleIndexKey_show_all(out)
2577 
2578  show_all = staticmethod(show_all)
2579 
2580  def get_all_strings():
2581  """get_all_strings() -> IMP::Vector< std::string >"""
2582  return _IMP_kernel.ParticleIndexKey_get_all_strings()
2583 
2584  get_all_strings = staticmethod(get_all_strings)
2585 
2586  def get_number_unique():
2587  """get_number_unique() -> unsigned int"""
2588  return _IMP_kernel.ParticleIndexKey_get_number_unique()
2589 
2590  get_number_unique = staticmethod(get_number_unique)
2591 
2592  def __str__(self):
2593  """__str__(ParticleIndexKey self) -> std::string"""
2594  return _IMP_kernel.ParticleIndexKey___str__(self)
2595 
2596 
2597  def __repr__(self):
2598  """__repr__(ParticleIndexKey self) -> std::string"""
2599  return _IMP_kernel.ParticleIndexKey___repr__(self)
2600 
2601  __swig_destroy__ = _IMP_kernel.delete_ParticleIndexKey
2602  __del__ = lambda self: None
2603 ParticleIndexKey_swigregister = _IMP_kernel.ParticleIndexKey_swigregister
2604 ParticleIndexKey_swigregister(ParticleIndexKey)
2605 
2606 def ParticleIndexKey_add_key(sc):
2607  """ParticleIndexKey_add_key(std::string sc) -> unsigned int"""
2608  return _IMP_kernel.ParticleIndexKey_add_key(sc)
2609 
2610 def ParticleIndexKey_get_key_exists(sc):
2611  """ParticleIndexKey_get_key_exists(std::string sc) -> bool"""
2612  return _IMP_kernel.ParticleIndexKey_get_key_exists(sc)
2613 
2614 def ParticleIndexKey_add_alias(old_key, new_name):
2615  """ParticleIndexKey_add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
2616  return _IMP_kernel.ParticleIndexKey_add_alias(old_key, new_name)
2617 
2618 def ParticleIndexKey_get_number_of_keys():
2619  """ParticleIndexKey_get_number_of_keys() -> unsigned int"""
2620  return _IMP_kernel.ParticleIndexKey_get_number_of_keys()
2621 
2622 def ParticleIndexKey_show_all(out):
2623  """ParticleIndexKey_show_all(_ostream out)"""
2624  return _IMP_kernel.ParticleIndexKey_show_all(out)
2625 
2626 def ParticleIndexKey_get_all_strings():
2627  """ParticleIndexKey_get_all_strings() -> IMP::Vector< std::string >"""
2628  return _IMP_kernel.ParticleIndexKey_get_all_strings()
2629 
2630 def ParticleIndexKey_get_number_unique():
2631  """ParticleIndexKey_get_number_unique() -> unsigned int"""
2632  return _IMP_kernel.ParticleIndexKey_get_number_unique()
2633 
2634 class ObjectKey(_Value):
2635  """Proxy of C++ IMP::Key<(4)> class."""
2636 
2637  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2638 
2639  def __init__(self, *args):
2640  """
2641  __init__(IMP::Key<(4)> self) -> ObjectKey
2642  __init__(IMP::Key<(4)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ObjectKey
2643  __init__(IMP::Key<(4)> self, std::string const & c) -> ObjectKey
2644  __init__(IMP::Key<(4)> self, unsigned int i) -> ObjectKey
2645  """
2646  this = _IMP_kernel.new_ObjectKey(*args)
2647  try:
2648  self.this.append(this)
2649  except __builtin__.Exception:
2650  self.this = this
2651 
2652  def add_key(sc):
2653  """add_key(std::string sc) -> unsigned int"""
2654  return _IMP_kernel.ObjectKey_add_key(sc)
2655 
2656  add_key = staticmethod(add_key)
2657 
2658  def get_key_exists(sc):
2659  """get_key_exists(std::string sc) -> bool"""
2660  return _IMP_kernel.ObjectKey_get_key_exists(sc)
2661 
2662  get_key_exists = staticmethod(get_key_exists)
2663 
2664  def get_string(self):
2665  """get_string(ObjectKey self) -> std::string const"""
2666  return _IMP_kernel.ObjectKey_get_string(self)
2667 
2668 
2669  def __cmp__(self, o):
2670  """__cmp__(ObjectKey self, ObjectKey o) -> int"""
2671  return _IMP_kernel.ObjectKey___cmp__(self, o)
2672 
2673 
2674  def __eq__(self, o):
2675  """__eq__(ObjectKey self, ObjectKey o) -> bool"""
2676  return _IMP_kernel.ObjectKey___eq__(self, o)
2677 
2678 
2679  def __ne__(self, o):
2680  """__ne__(ObjectKey self, ObjectKey o) -> bool"""
2681  return _IMP_kernel.ObjectKey___ne__(self, o)
2682 
2683 
2684  def __lt__(self, o):
2685  """__lt__(ObjectKey self, ObjectKey o) -> bool"""
2686  return _IMP_kernel.ObjectKey___lt__(self, o)
2687 
2688 
2689  def __gt__(self, o):
2690  """__gt__(ObjectKey self, ObjectKey o) -> bool"""
2691  return _IMP_kernel.ObjectKey___gt__(self, o)
2692 
2693 
2694  def __ge__(self, o):
2695  """__ge__(ObjectKey self, ObjectKey o) -> bool"""
2696  return _IMP_kernel.ObjectKey___ge__(self, o)
2697 
2698 
2699  def __le__(self, o):
2700  """__le__(ObjectKey self, ObjectKey o) -> bool"""
2701  return _IMP_kernel.ObjectKey___le__(self, o)
2702 
2703 
2704  def __hash__(self):
2705  """__hash__(ObjectKey self) -> std::size_t"""
2706  return _IMP_kernel.ObjectKey___hash__(self)
2707 
2708 
2709  def show(self, *args):
2710  """
2711  show(ObjectKey self, _ostream out)
2712  show(ObjectKey self)
2713  """
2714  return _IMP_kernel.ObjectKey_show(self, *args)
2715 
2716 
2717  def add_alias(old_key, new_name):
2718  """add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
2719  return _IMP_kernel.ObjectKey_add_alias(old_key, new_name)
2720 
2721  add_alias = staticmethod(add_alias)
2722 
2723  def get_number_of_keys():
2724  """get_number_of_keys() -> unsigned int"""
2725  return _IMP_kernel.ObjectKey_get_number_of_keys()
2726 
2727  get_number_of_keys = staticmethod(get_number_of_keys)
2728 
2729  def get_index(self):
2730  """get_index(ObjectKey self) -> unsigned int"""
2731  return _IMP_kernel.ObjectKey_get_index(self)
2732 
2733 
2734  def show_all(out):
2735  """show_all(_ostream out)"""
2736  return _IMP_kernel.ObjectKey_show_all(out)
2737 
2738  show_all = staticmethod(show_all)
2739 
2740  def get_all_strings():
2741  """get_all_strings() -> IMP::Vector< std::string >"""
2742  return _IMP_kernel.ObjectKey_get_all_strings()
2743 
2744  get_all_strings = staticmethod(get_all_strings)
2745 
2746  def get_number_unique():
2747  """get_number_unique() -> unsigned int"""
2748  return _IMP_kernel.ObjectKey_get_number_unique()
2749 
2750  get_number_unique = staticmethod(get_number_unique)
2751 
2752  def __str__(self):
2753  """__str__(ObjectKey self) -> std::string"""
2754  return _IMP_kernel.ObjectKey___str__(self)
2755 
2756 
2757  def __repr__(self):
2758  """__repr__(ObjectKey self) -> std::string"""
2759  return _IMP_kernel.ObjectKey___repr__(self)
2760 
2761  __swig_destroy__ = _IMP_kernel.delete_ObjectKey
2762  __del__ = lambda self: None
2763 ObjectKey_swigregister = _IMP_kernel.ObjectKey_swigregister
2764 ObjectKey_swigregister(ObjectKey)
2765 
2766 def ObjectKey_add_key(sc):
2767  """ObjectKey_add_key(std::string sc) -> unsigned int"""
2768  return _IMP_kernel.ObjectKey_add_key(sc)
2769 
2770 def ObjectKey_get_key_exists(sc):
2771  """ObjectKey_get_key_exists(std::string sc) -> bool"""
2772  return _IMP_kernel.ObjectKey_get_key_exists(sc)
2773 
2774 def ObjectKey_add_alias(old_key, new_name):
2775  """ObjectKey_add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
2776  return _IMP_kernel.ObjectKey_add_alias(old_key, new_name)
2777 
2778 def ObjectKey_get_number_of_keys():
2779  """ObjectKey_get_number_of_keys() -> unsigned int"""
2780  return _IMP_kernel.ObjectKey_get_number_of_keys()
2781 
2782 def ObjectKey_show_all(out):
2783  """ObjectKey_show_all(_ostream out)"""
2784  return _IMP_kernel.ObjectKey_show_all(out)
2785 
2786 def ObjectKey_get_all_strings():
2787  """ObjectKey_get_all_strings() -> IMP::Vector< std::string >"""
2788  return _IMP_kernel.ObjectKey_get_all_strings()
2789 
2790 def ObjectKey_get_number_unique():
2791  """ObjectKey_get_number_unique() -> unsigned int"""
2792  return _IMP_kernel.ObjectKey_get_number_unique()
2793 
2794 class ParticleIndexesKey(_Value):
2795  """Proxy of C++ IMP::Key<(6)> class."""
2796 
2797  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2798 
2799  def __init__(self, *args):
2800  """
2801  __init__(IMP::Key<(6)> self) -> ParticleIndexesKey
2802  __init__(IMP::Key<(6)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleIndexesKey
2803  __init__(IMP::Key<(6)> self, std::string const & c) -> ParticleIndexesKey
2804  __init__(IMP::Key<(6)> self, unsigned int i) -> ParticleIndexesKey
2805  """
2806  this = _IMP_kernel.new_ParticleIndexesKey(*args)
2807  try:
2808  self.this.append(this)
2809  except __builtin__.Exception:
2810  self.this = this
2811 
2812  def add_key(sc):
2813  """add_key(std::string sc) -> unsigned int"""
2814  return _IMP_kernel.ParticleIndexesKey_add_key(sc)
2815 
2816  add_key = staticmethod(add_key)
2817 
2818  def get_key_exists(sc):
2819  """get_key_exists(std::string sc) -> bool"""
2820  return _IMP_kernel.ParticleIndexesKey_get_key_exists(sc)
2821 
2822  get_key_exists = staticmethod(get_key_exists)
2823 
2824  def get_string(self):
2825  """get_string(ParticleIndexesKey self) -> std::string const"""
2826  return _IMP_kernel.ParticleIndexesKey_get_string(self)
2827 
2828 
2829  def __cmp__(self, o):
2830  """__cmp__(ParticleIndexesKey self, ParticleIndexesKey o) -> int"""
2831  return _IMP_kernel.ParticleIndexesKey___cmp__(self, o)
2832 
2833 
2834  def __eq__(self, o):
2835  """__eq__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2836  return _IMP_kernel.ParticleIndexesKey___eq__(self, o)
2837 
2838 
2839  def __ne__(self, o):
2840  """__ne__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2841  return _IMP_kernel.ParticleIndexesKey___ne__(self, o)
2842 
2843 
2844  def __lt__(self, o):
2845  """__lt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2846  return _IMP_kernel.ParticleIndexesKey___lt__(self, o)
2847 
2848 
2849  def __gt__(self, o):
2850  """__gt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2851  return _IMP_kernel.ParticleIndexesKey___gt__(self, o)
2852 
2853 
2854  def __ge__(self, o):
2855  """__ge__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2856  return _IMP_kernel.ParticleIndexesKey___ge__(self, o)
2857 
2858 
2859  def __le__(self, o):
2860  """__le__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2861  return _IMP_kernel.ParticleIndexesKey___le__(self, o)
2862 
2863 
2864  def __hash__(self):
2865  """__hash__(ParticleIndexesKey self) -> std::size_t"""
2866  return _IMP_kernel.ParticleIndexesKey___hash__(self)
2867 
2868 
2869  def show(self, *args):
2870  """
2871  show(ParticleIndexesKey self, _ostream out)
2872  show(ParticleIndexesKey self)
2873  """
2874  return _IMP_kernel.ParticleIndexesKey_show(self, *args)
2875 
2876 
2877  def add_alias(old_key, new_name):
2878  """add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
2879  return _IMP_kernel.ParticleIndexesKey_add_alias(old_key, new_name)
2880 
2881  add_alias = staticmethod(add_alias)
2882 
2883  def get_number_of_keys():
2884  """get_number_of_keys() -> unsigned int"""
2885  return _IMP_kernel.ParticleIndexesKey_get_number_of_keys()
2886 
2887  get_number_of_keys = staticmethod(get_number_of_keys)
2888 
2889  def get_index(self):
2890  """get_index(ParticleIndexesKey self) -> unsigned int"""
2891  return _IMP_kernel.ParticleIndexesKey_get_index(self)
2892 
2893 
2894  def show_all(out):
2895  """show_all(_ostream out)"""
2896  return _IMP_kernel.ParticleIndexesKey_show_all(out)
2897 
2898  show_all = staticmethod(show_all)
2899 
2900  def get_all_strings():
2901  """get_all_strings() -> IMP::Vector< std::string >"""
2902  return _IMP_kernel.ParticleIndexesKey_get_all_strings()
2903 
2904  get_all_strings = staticmethod(get_all_strings)
2905 
2906  def get_number_unique():
2907  """get_number_unique() -> unsigned int"""
2908  return _IMP_kernel.ParticleIndexesKey_get_number_unique()
2909 
2910  get_number_unique = staticmethod(get_number_unique)
2911 
2912  def __str__(self):
2913  """__str__(ParticleIndexesKey self) -> std::string"""
2914  return _IMP_kernel.ParticleIndexesKey___str__(self)
2915 
2916 
2917  def __repr__(self):
2918  """__repr__(ParticleIndexesKey self) -> std::string"""
2919  return _IMP_kernel.ParticleIndexesKey___repr__(self)
2920 
2921  __swig_destroy__ = _IMP_kernel.delete_ParticleIndexesKey
2922  __del__ = lambda self: None
2923 ParticleIndexesKey_swigregister = _IMP_kernel.ParticleIndexesKey_swigregister
2924 ParticleIndexesKey_swigregister(ParticleIndexesKey)
2925 
2926 def ParticleIndexesKey_add_key(sc):
2927  """ParticleIndexesKey_add_key(std::string sc) -> unsigned int"""
2928  return _IMP_kernel.ParticleIndexesKey_add_key(sc)
2929 
2930 def ParticleIndexesKey_get_key_exists(sc):
2931  """ParticleIndexesKey_get_key_exists(std::string sc) -> bool"""
2932  return _IMP_kernel.ParticleIndexesKey_get_key_exists(sc)
2933 
2934 def ParticleIndexesKey_add_alias(old_key, new_name):
2935  """ParticleIndexesKey_add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
2936  return _IMP_kernel.ParticleIndexesKey_add_alias(old_key, new_name)
2937 
2938 def ParticleIndexesKey_get_number_of_keys():
2939  """ParticleIndexesKey_get_number_of_keys() -> unsigned int"""
2940  return _IMP_kernel.ParticleIndexesKey_get_number_of_keys()
2941 
2942 def ParticleIndexesKey_show_all(out):
2943  """ParticleIndexesKey_show_all(_ostream out)"""
2944  return _IMP_kernel.ParticleIndexesKey_show_all(out)
2945 
2946 def ParticleIndexesKey_get_all_strings():
2947  """ParticleIndexesKey_get_all_strings() -> IMP::Vector< std::string >"""
2948  return _IMP_kernel.ParticleIndexesKey_get_all_strings()
2949 
2950 def ParticleIndexesKey_get_number_unique():
2951  """ParticleIndexesKey_get_number_unique() -> unsigned int"""
2952  return _IMP_kernel.ParticleIndexesKey_get_number_unique()
2953 
2954 class ModelKey(_Value):
2955  """Proxy of C++ IMP::Key<(8)> class."""
2956 
2957  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2958 
2959  def __init__(self, *args):
2960  """
2961  __init__(IMP::Key<(8)> self) -> ModelKey
2962  __init__(IMP::Key<(8)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ModelKey
2963  __init__(IMP::Key<(8)> self, std::string const & c) -> ModelKey
2964  __init__(IMP::Key<(8)> self, unsigned int i) -> ModelKey
2965  """
2966  this = _IMP_kernel.new_ModelKey(*args)
2967  try:
2968  self.this.append(this)
2969  except __builtin__.Exception:
2970  self.this = this
2971 
2972  def add_key(sc):
2973  """add_key(std::string sc) -> unsigned int"""
2974  return _IMP_kernel.ModelKey_add_key(sc)
2975 
2976  add_key = staticmethod(add_key)
2977 
2978  def get_key_exists(sc):
2979  """get_key_exists(std::string sc) -> bool"""
2980  return _IMP_kernel.ModelKey_get_key_exists(sc)
2981 
2982  get_key_exists = staticmethod(get_key_exists)
2983 
2984  def get_string(self):
2985  """get_string(ModelKey self) -> std::string const"""
2986  return _IMP_kernel.ModelKey_get_string(self)
2987 
2988 
2989  def __cmp__(self, o):
2990  """__cmp__(ModelKey self, ModelKey o) -> int"""
2991  return _IMP_kernel.ModelKey___cmp__(self, o)
2992 
2993 
2994  def __eq__(self, o):
2995  """__eq__(ModelKey self, ModelKey o) -> bool"""
2996  return _IMP_kernel.ModelKey___eq__(self, o)
2997 
2998 
2999  def __ne__(self, o):
3000  """__ne__(ModelKey self, ModelKey o) -> bool"""
3001  return _IMP_kernel.ModelKey___ne__(self, o)
3002 
3003 
3004  def __lt__(self, o):
3005  """__lt__(ModelKey self, ModelKey o) -> bool"""
3006  return _IMP_kernel.ModelKey___lt__(self, o)
3007 
3008 
3009  def __gt__(self, o):
3010  """__gt__(ModelKey self, ModelKey o) -> bool"""
3011  return _IMP_kernel.ModelKey___gt__(self, o)
3012 
3013 
3014  def __ge__(self, o):
3015  """__ge__(ModelKey self, ModelKey o) -> bool"""
3016  return _IMP_kernel.ModelKey___ge__(self, o)
3017 
3018 
3019  def __le__(self, o):
3020  """__le__(ModelKey self, ModelKey o) -> bool"""
3021  return _IMP_kernel.ModelKey___le__(self, o)
3022 
3023 
3024  def __hash__(self):
3025  """__hash__(ModelKey self) -> std::size_t"""
3026  return _IMP_kernel.ModelKey___hash__(self)
3027 
3028 
3029  def show(self, *args):
3030  """
3031  show(ModelKey self, _ostream out)
3032  show(ModelKey self)
3033  """
3034  return _IMP_kernel.ModelKey_show(self, *args)
3035 
3036 
3037  def add_alias(old_key, new_name):
3038  """add_alias(ModelKey old_key, std::string new_name) -> ModelKey"""
3039  return _IMP_kernel.ModelKey_add_alias(old_key, new_name)
3040 
3041  add_alias = staticmethod(add_alias)
3042 
3043  def get_number_of_keys():
3044  """get_number_of_keys() -> unsigned int"""
3045  return _IMP_kernel.ModelKey_get_number_of_keys()
3046 
3047  get_number_of_keys = staticmethod(get_number_of_keys)
3048 
3049  def get_index(self):
3050  """get_index(ModelKey self) -> unsigned int"""
3051  return _IMP_kernel.ModelKey_get_index(self)
3052 
3053 
3054  def show_all(out):
3055  """show_all(_ostream out)"""
3056  return _IMP_kernel.ModelKey_show_all(out)
3057 
3058  show_all = staticmethod(show_all)
3059 
3060  def get_all_strings():
3061  """get_all_strings() -> IMP::Vector< std::string >"""
3062  return _IMP_kernel.ModelKey_get_all_strings()
3063 
3064  get_all_strings = staticmethod(get_all_strings)
3065 
3066  def get_number_unique():
3067  """get_number_unique() -> unsigned int"""
3068  return _IMP_kernel.ModelKey_get_number_unique()
3069 
3070  get_number_unique = staticmethod(get_number_unique)
3071 
3072  def __str__(self):
3073  """__str__(ModelKey self) -> std::string"""
3074  return _IMP_kernel.ModelKey___str__(self)
3075 
3076 
3077  def __repr__(self):
3078  """__repr__(ModelKey self) -> std::string"""
3079  return _IMP_kernel.ModelKey___repr__(self)
3080 
3081  __swig_destroy__ = _IMP_kernel.delete_ModelKey
3082  __del__ = lambda self: None
3083 ModelKey_swigregister = _IMP_kernel.ModelKey_swigregister
3084 ModelKey_swigregister(ModelKey)
3085 
3086 def ModelKey_add_key(sc):
3087  """ModelKey_add_key(std::string sc) -> unsigned int"""
3088  return _IMP_kernel.ModelKey_add_key(sc)
3089 
3090 def ModelKey_get_key_exists(sc):
3091  """ModelKey_get_key_exists(std::string sc) -> bool"""
3092  return _IMP_kernel.ModelKey_get_key_exists(sc)
3093 
3094 def ModelKey_add_alias(old_key, new_name):
3095  """ModelKey_add_alias(ModelKey old_key, std::string new_name) -> ModelKey"""
3096  return _IMP_kernel.ModelKey_add_alias(old_key, new_name)
3097 
3098 def ModelKey_get_number_of_keys():
3099  """ModelKey_get_number_of_keys() -> unsigned int"""
3100  return _IMP_kernel.ModelKey_get_number_of_keys()
3101 
3102 def ModelKey_show_all(out):
3103  """ModelKey_show_all(_ostream out)"""
3104  return _IMP_kernel.ModelKey_show_all(out)
3105 
3106 def ModelKey_get_all_strings():
3107  """ModelKey_get_all_strings() -> IMP::Vector< std::string >"""
3108  return _IMP_kernel.ModelKey_get_all_strings()
3109 
3110 def ModelKey_get_number_unique():
3111  """ModelKey_get_number_unique() -> unsigned int"""
3112  return _IMP_kernel.ModelKey_get_number_unique()
3113 
3114 class ParticleIndex(_Value):
3115  """Proxy of C++ IMP::Index<(IMP::ParticleIndexTag)> class."""
3116 
3117  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3118 
3119  def __init__(self, *args):
3120  """
3121  __init__(IMP::Index<(IMP::ParticleIndexTag)> self, int i) -> ParticleIndex
3122  __init__(IMP::Index<(IMP::ParticleIndexTag)> self) -> ParticleIndex
3123  """
3124  this = _IMP_kernel.new_ParticleIndex(*args)
3125  try:
3126  self.this.append(this)
3127  except __builtin__.Exception:
3128  self.this = this
3129 
3130  def get_index(self):
3131  """get_index(ParticleIndex self) -> int"""
3132  return _IMP_kernel.ParticleIndex_get_index(self)
3133 
3134 
3135  def __cmp__(self, o):
3136  """__cmp__(ParticleIndex self, ParticleIndex o) -> int"""
3137  return _IMP_kernel.ParticleIndex___cmp__(self, o)
3138 
3139 
3140  def __eq__(self, o):
3141  """__eq__(ParticleIndex self, ParticleIndex o) -> bool"""
3142  return _IMP_kernel.ParticleIndex___eq__(self, o)
3143 
3144 
3145  def __ne__(self, o):
3146  """__ne__(ParticleIndex self, ParticleIndex o) -> bool"""
3147  return _IMP_kernel.ParticleIndex___ne__(self, o)
3148 
3149 
3150  def __lt__(self, o):
3151  """__lt__(ParticleIndex self, ParticleIndex o) -> bool"""
3152  return _IMP_kernel.ParticleIndex___lt__(self, o)
3153 
3154 
3155  def __gt__(self, o):
3156  """__gt__(ParticleIndex self, ParticleIndex o) -> bool"""
3157  return _IMP_kernel.ParticleIndex___gt__(self, o)
3158 
3159 
3160  def __ge__(self, o):
3161  """__ge__(ParticleIndex self, ParticleIndex o) -> bool"""
3162  return _IMP_kernel.ParticleIndex___ge__(self, o)
3163 
3164 
3165  def __le__(self, o):
3166  """__le__(ParticleIndex self, ParticleIndex o) -> bool"""
3167  return _IMP_kernel.ParticleIndex___le__(self, o)
3168 
3169 
3170  def show(self, *args):
3171  """
3172  show(ParticleIndex self, _ostream out)
3173  show(ParticleIndex self)
3174  """
3175  return _IMP_kernel.ParticleIndex_show(self, *args)
3176 
3177 
3178  def __hash__(self):
3179  """__hash__(ParticleIndex self) -> std::size_t"""
3180  return _IMP_kernel.ParticleIndex___hash__(self)
3181 
3182 
3183  def __str__(self):
3184  """__str__(ParticleIndex self) -> std::string"""
3185  return _IMP_kernel.ParticleIndex___str__(self)
3186 
3187 
3188  def __repr__(self):
3189  """__repr__(ParticleIndex self) -> std::string"""
3190  return _IMP_kernel.ParticleIndex___repr__(self)
3191 
3192  __swig_destroy__ = _IMP_kernel.delete_ParticleIndex
3193  __del__ = lambda self: None
3194 ParticleIndex_swigregister = _IMP_kernel.ParticleIndex_swigregister
3195 ParticleIndex_swigregister(ParticleIndex)
3196 
3197 
3198 def ParticlePair(a, b):
3199  return (a,b)
3200 def ParticleTriplet(a, b, c):
3201  return (a,b,c)
3202 def ParticleQuad(a, b, c, d):
3203  return (a,b,c,d)
3204 
3205 class FloatIndex(_Value):
3206  """Proxy of C++ IMP::FloatIndex class."""
3207 
3208  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3209 
3210  def __init__(self, *args):
3211  """
3212  __init__(IMP::FloatIndex self, ParticleIndex i0, FloatKey i1) -> FloatIndex
3213  __init__(IMP::FloatIndex self, ParticleIndex i0) -> FloatIndex
3214  __init__(IMP::FloatIndex self) -> FloatIndex
3215  """
3216  this = _IMP_kernel.new_FloatIndex(*args)
3217  try:
3218  self.this.append(this)
3219  except __builtin__.Exception:
3220  self.this = this
3221 
3222  def __hash__(self):
3223  """__hash__(FloatIndex self) -> std::size_t"""
3224  return _IMP_kernel.FloatIndex___hash__(self)
3225 
3226 
3227  def show(self, *args):
3228  """
3229  show(FloatIndex self, _ostream out)
3230  show(FloatIndex self)
3231  """
3232  return _IMP_kernel.FloatIndex_show(self, *args)
3233 
3234 
3235  def __cmp__(self, o):
3236  """__cmp__(FloatIndex self, FloatIndex o) -> int"""
3237  return _IMP_kernel.FloatIndex___cmp__(self, o)
3238 
3239 
3240  def __eq__(self, o):
3241  """__eq__(FloatIndex self, FloatIndex o) -> bool"""
3242  return _IMP_kernel.FloatIndex___eq__(self, o)
3243 
3244 
3245  def __ne__(self, o):
3246  """__ne__(FloatIndex self, FloatIndex o) -> bool"""
3247  return _IMP_kernel.FloatIndex___ne__(self, o)
3248 
3249 
3250  def __lt__(self, o):
3251  """__lt__(FloatIndex self, FloatIndex o) -> bool"""
3252  return _IMP_kernel.FloatIndex___lt__(self, o)
3253 
3254 
3255  def __gt__(self, o):
3256  """__gt__(FloatIndex self, FloatIndex o) -> bool"""
3257  return _IMP_kernel.FloatIndex___gt__(self, o)
3258 
3259 
3260  def __ge__(self, o):
3261  """__ge__(FloatIndex self, FloatIndex o) -> bool"""
3262  return _IMP_kernel.FloatIndex___ge__(self, o)
3263 
3264 
3265  def __le__(self, o):
3266  """__le__(FloatIndex self, FloatIndex o) -> bool"""
3267  return _IMP_kernel.FloatIndex___le__(self, o)
3268 
3269 
3270  def get_particle(self):
3271  """get_particle(FloatIndex self) -> ParticleIndex const &"""
3272  return _IMP_kernel.FloatIndex_get_particle(self)
3273 
3274 
3275  def set_particle(self, v):
3276  """set_particle(FloatIndex self, ParticleIndex const & v)"""
3277  return _IMP_kernel.FloatIndex_set_particle(self, v)
3278 
3279 
3280  def get_key(self):
3281  """get_key(FloatIndex self) -> FloatKey const &"""
3282  return _IMP_kernel.FloatIndex_get_key(self)
3283 
3284 
3285  def set_key(self, v):
3286  """set_key(FloatIndex self, FloatKey const & v)"""
3287  return _IMP_kernel.FloatIndex_set_key(self, v)
3288 
3289 
3290  def __str__(self):
3291  """__str__(FloatIndex self) -> std::string"""
3292  return _IMP_kernel.FloatIndex___str__(self)
3293 
3294 
3295  def __repr__(self):
3296  """__repr__(FloatIndex self) -> std::string"""
3297  return _IMP_kernel.FloatIndex___repr__(self)
3298 
3299  __swig_destroy__ = _IMP_kernel.delete_FloatIndex
3300  __del__ = lambda self: None
3301 FloatIndex_swigregister = _IMP_kernel.FloatIndex_swigregister
3302 FloatIndex_swigregister(FloatIndex)
3303 
3304 class _ParticleIndexTag(object):
3305  """Proxy of C++ IMP::ParticleIndexTag class."""
3306 
3307  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3308  __repr__ = _swig_repr
3309 
3310  def __init__(self):
3311  """__init__(IMP::ParticleIndexTag self) -> _ParticleIndexTag"""
3312  this = _IMP_kernel.new__ParticleIndexTag()
3313  try:
3314  self.this.append(this)
3315  except __builtin__.Exception:
3316  self.this = this
3317  __swig_destroy__ = _IMP_kernel.delete__ParticleIndexTag
3318  __del__ = lambda self: None
3319 _ParticleIndexTag_swigregister = _IMP_kernel._ParticleIndexTag_swigregister
3320 _ParticleIndexTag_swigregister(_ParticleIndexTag)
3321 
3322 class ModelObject(Object):
3323  """Proxy of C++ IMP::ModelObject class."""
3324 
3325  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3326 
3327  def __init__(self, m, name):
3328  """__init__(IMP::ModelObject self, Model m, std::string name) -> ModelObject"""
3329  if self.__class__ == ModelObject:
3330  _self = None
3331  else:
3332  _self = self
3333  this = _IMP_kernel.new_ModelObject(_self, m, name)
3334  try:
3335  self.this.append(this)
3336  except __builtin__.Exception:
3337  self.this = this
3338 
3339  if self.__class__ != ModelObject:
3340  _director_objects.register(self)
3341 
3342 
3343 
3344  __swig_destroy__ = _IMP_kernel.delete_ModelObject
3345  __del__ = lambda self: None
3346 
3347  def get_model(self):
3348  """get_model(ModelObject self) -> Model"""
3349  return _IMP_kernel.ModelObject_get_model(self)
3350 
3351 
3352  def get_inputs(self):
3353  """get_inputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3354  return _IMP_kernel.ModelObject_get_inputs(self)
3355 
3356 
3357  def get_outputs(self):
3358  """get_outputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3359  return _IMP_kernel.ModelObject_get_outputs(self)
3360 
3361 
3362  def get_interactions(self):
3363  """get_interactions(ModelObject self) -> IMP::ModelObjectsTemps"""
3364  return _IMP_kernel.ModelObject_get_interactions(self)
3365 
3366 
3367  def get_has_dependencies(self):
3368  """get_has_dependencies(ModelObject self) -> bool"""
3369  return _IMP_kernel.ModelObject_get_has_dependencies(self)
3370 
3371 
3372  def set_has_dependencies(self, tf):
3373  """set_has_dependencies(ModelObject self, bool tf)"""
3374  return _IMP_kernel.ModelObject_set_has_dependencies(self, tf)
3375 
3376 
3377  def set_has_required_score_states(self, tf):
3378  """set_has_required_score_states(ModelObject self, bool tf)"""
3379  return _IMP_kernel.ModelObject_set_has_required_score_states(self, tf)
3380 
3381 
3382  def get_has_required_score_states(self):
3383  """get_has_required_score_states(ModelObject self) -> bool"""
3384  return _IMP_kernel.ModelObject_get_has_required_score_states(self)
3385 
3386 
3387  def get_required_score_states(self):
3388  """get_required_score_states(ModelObject self) -> IMP::ScoreStatesTemp const &"""
3389  return _IMP_kernel.ModelObject_get_required_score_states(self)
3390 
3391 
3392  def handle_set_has_required_score_states(self, arg0):
3393  """handle_set_has_required_score_states(ModelObject self, bool arg0)"""
3394  return _IMP_kernel.ModelObject_handle_set_has_required_score_states(self, arg0)
3395 
3396 
3397  def do_get_inputs(self):
3398  """do_get_inputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3399  return _IMP_kernel.ModelObject_do_get_inputs(self)
3400 
3401 
3402  def do_get_outputs(self):
3403  """do_get_outputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3404  return _IMP_kernel.ModelObject_do_get_outputs(self)
3405 
3406 
3407  def do_get_interactions(self):
3408  """do_get_interactions(ModelObject self) -> IMP::ModelObjectsTemps"""
3409  return _IMP_kernel.ModelObject_do_get_interactions(self)
3410 
3411 
3412  def __str__(self):
3413  """__str__(ModelObject self) -> std::string"""
3414  return _IMP_kernel.ModelObject___str__(self)
3415 
3416 
3417  def __repr__(self):
3418  """__repr__(ModelObject self) -> std::string"""
3419  return _IMP_kernel.ModelObject___repr__(self)
3420 
3421 
3422  @staticmethod
3423  def get_from(o):
3424  return _object_cast_to_ModelObject(o)
3425 
3426 
3427  def get_type_name(self):
3428  return self.__class__.__name__
3429  def do_show(self, out):
3430  pass
3431  def get_version_info(self):
3432  if"IMP" == "IMP":
3433  return VersionInfo(self.__module__,
3434  __import__(self.__module__).get_module_version())
3435  else:
3436  return IMP.VersionInfo(self.__module__,
3437  __import__(self.__module__).get_module_version())
3438  @staticmethod
3439  def get_from(o):
3440  return _object_cast_to_ModelObject(o)
3441 
3442  def __disown__(self):
3443  self.this.disown()
3444  _IMP_kernel.disown_ModelObject(self)
3445  return weakref_proxy(self)
3446 
3447  def do_destroy(self):
3448  """do_destroy(ModelObject self)"""
3449  return _IMP_kernel.ModelObject_do_destroy(self)
3450 
3451 ModelObject_swigregister = _IMP_kernel.ModelObject_swigregister
3452 ModelObject_swigregister(ModelObject)
3453 cvar = _IMP_kernel.cvar
3454 NO_MAX = cvar.NO_MAX
3455 BAD_SCORE = cvar.BAD_SCORE
3456 
3457 class _ParticleInputs(object):
3458  """Proxy of C++ IMP::ParticleInputs class."""
3459 
3460  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3461 
3462  def __init__(self, *args, **kwargs):
3463  raise AttributeError("No constructor defined - class is abstract")
3464  __repr__ = _swig_repr
3465 
3466  def get_inputs(self, m, pis):
3467  """get_inputs(_ParticleInputs self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3468  return _IMP_kernel._ParticleInputs_get_inputs(self, m, pis)
3469 
3470 _ParticleInputs_swigregister = _IMP_kernel._ParticleInputs_swigregister
3471 _ParticleInputs_swigregister(_ParticleInputs)
3472 
3473 class _ParticleOutputs(object):
3474  """Proxy of C++ IMP::ParticleOutputs class."""
3475 
3476  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3477 
3478  def __init__(self, *args, **kwargs):
3479  raise AttributeError("No constructor defined - class is abstract")
3480  __repr__ = _swig_repr
3481 
3482  def get_outputs(self, m, pis):
3483  """get_outputs(_ParticleOutputs self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3484  return _IMP_kernel._ParticleOutputs_get_outputs(self, m, pis)
3485 
3486 _ParticleOutputs_swigregister = _IMP_kernel._ParticleOutputs_swigregister
3487 _ParticleOutputs_swigregister(_ParticleOutputs)
3488 
3489 
3490 def get_input_particles(mos):
3491  """get_input_particles(IMP::ModelObjectsTemp const & mos) -> IMP::ParticlesTemp"""
3492  return _IMP_kernel.get_input_particles(mos)
3493 
3494 def get_input_containers(mos):
3495  """get_input_containers(IMP::ModelObjectsTemp const & mos) -> IMP::ContainersTemp"""
3496  return _IMP_kernel.get_input_containers(mos)
3497 
3498 def get_output_particles(mos):
3499  """get_output_particles(IMP::ModelObjectsTemp const & mos) -> IMP::ParticlesTemp"""
3500  return _IMP_kernel.get_output_particles(mos)
3501 
3502 def get_output_containers(mos):
3503  """get_output_containers(IMP::ModelObjectsTemp const & mos) -> IMP::ContainersTemp"""
3504  return _IMP_kernel.get_output_containers(mos)
3505 class DerivativeAccumulator(object):
3506  """Proxy of C++ IMP::DerivativeAccumulator class."""
3507 
3508  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3509  __repr__ = _swig_repr
3510 
3511  def __init__(self, *args):
3512  """
3513  __init__(IMP::DerivativeAccumulator self, double weight=1.0) -> DerivativeAccumulator
3514  __init__(IMP::DerivativeAccumulator self) -> DerivativeAccumulator
3515  __init__(IMP::DerivativeAccumulator self, DerivativeAccumulator copy, double weight) -> DerivativeAccumulator
3516  """
3517  this = _IMP_kernel.new_DerivativeAccumulator(*args)
3518  try:
3519  self.this.append(this)
3520  except __builtin__.Exception:
3521  self.this = this
3522 
3523  def __call__(self, value):
3524  """__call__(DerivativeAccumulator self, double const value) -> double"""
3525  return _IMP_kernel.DerivativeAccumulator___call__(self, value)
3526 
3527 
3528  def get_weight(self):
3529  """get_weight(DerivativeAccumulator self) -> double"""
3530  return _IMP_kernel.DerivativeAccumulator_get_weight(self)
3531 
3532 
3533  def show(self, *args):
3534  """
3535  show(DerivativeAccumulator self, _ostream out)
3536  show(DerivativeAccumulator self)
3537  """
3538  return _IMP_kernel.DerivativeAccumulator_show(self, *args)
3539 
3540  __swig_destroy__ = _IMP_kernel.delete_DerivativeAccumulator
3541  __del__ = lambda self: None
3542 DerivativeAccumulator_swigregister = _IMP_kernel.DerivativeAccumulator_swigregister
3543 DerivativeAccumulator_swigregister(DerivativeAccumulator)
3544 
3545 class EvaluationState(object):
3546  """Proxy of C++ IMP::EvaluationState class."""
3547 
3548  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3549  score = _swig_property(_IMP_kernel.EvaluationState_score_get, _IMP_kernel.EvaluationState_score_set)
3550  good = _swig_property(_IMP_kernel.EvaluationState_good_get, _IMP_kernel.EvaluationState_good_set)
3551 
3552  def __init__(self, *args):
3553  """
3554  __init__(IMP::EvaluationState self, double oscore, bool ogood) -> EvaluationState
3555  __init__(IMP::EvaluationState self) -> EvaluationState
3556  """
3557  this = _IMP_kernel.new_EvaluationState(*args)
3558  try:
3559  self.this.append(this)
3560  except __builtin__.Exception:
3561  self.this = this
3562 
3563  def show(self, *args):
3564  """
3565  show(EvaluationState self, _ostream out)
3566  show(EvaluationState self)
3567  """
3568  return _IMP_kernel.EvaluationState_show(self, *args)
3569 
3570 
3571  def __str__(self):
3572  """__str__(EvaluationState self) -> std::string"""
3573  return _IMP_kernel.EvaluationState___str__(self)
3574 
3575 
3576  def __repr__(self):
3577  """__repr__(EvaluationState self) -> std::string"""
3578  return _IMP_kernel.EvaluationState___repr__(self)
3579 
3580  __swig_destroy__ = _IMP_kernel.delete_EvaluationState
3581  __del__ = lambda self: None
3582 EvaluationState_swigregister = _IMP_kernel.EvaluationState_swigregister
3583 EvaluationState_swigregister(EvaluationState)
3584 
3585 class ScoreAccumulator(_Value):
3586  """Proxy of C++ IMP::ScoreAccumulator class."""
3587 
3588  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3589 
3590  def __init__(self, *args):
3591  """
3592  __init__(IMP::ScoreAccumulator self) -> ScoreAccumulator
3593  __init__(IMP::ScoreAccumulator self, ScoreAccumulator o, Restraint r) -> ScoreAccumulator
3594  __init__(IMP::ScoreAccumulator self, ScoreAccumulator o, double weight, double local_max) -> ScoreAccumulator
3595  """
3596  this = _IMP_kernel.new_ScoreAccumulator(*args)
3597  try:
3598  self.this.append(this)
3599  except __builtin__.Exception:
3600  self.this = this
3601 
3602  def add_score(self, score):
3603  """add_score(ScoreAccumulator self, double score)"""
3604  return _IMP_kernel.ScoreAccumulator_add_score(self, score)
3605 
3606 
3607  def get_abort_evaluation(self):
3608  """get_abort_evaluation(ScoreAccumulator self) -> bool"""
3609  return _IMP_kernel.ScoreAccumulator_get_abort_evaluation(self)
3610 
3611 
3612  def get_is_evaluate_if_below(self):
3613  """get_is_evaluate_if_below(ScoreAccumulator self) -> bool"""
3614  return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_below(self)
3615 
3616 
3617  def get_is_evaluate_if_good(self):
3618  """get_is_evaluate_if_good(ScoreAccumulator self) -> bool"""
3619  return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_good(self)
3620 
3621 
3622  def get_maximum(self):
3623  """get_maximum(ScoreAccumulator self) -> double"""
3624  return _IMP_kernel.ScoreAccumulator_get_maximum(self)
3625 
3626 
3627  def get_derivative_accumulator(self):
3628  """get_derivative_accumulator(ScoreAccumulator self) -> DerivativeAccumulator"""
3629  return _IMP_kernel.ScoreAccumulator_get_derivative_accumulator(self)
3630 
3631 
3632  def show(self, *args):
3633  """
3634  show(ScoreAccumulator self, _ostream out)
3635  show(ScoreAccumulator self)
3636  """
3637  return _IMP_kernel.ScoreAccumulator_show(self, *args)
3638 
3639 
3640  def __str__(self):
3641  """__str__(ScoreAccumulator self) -> std::string"""
3642  return _IMP_kernel.ScoreAccumulator___str__(self)
3643 
3644 
3645  def __repr__(self):
3646  """__repr__(ScoreAccumulator self) -> std::string"""
3647  return _IMP_kernel.ScoreAccumulator___repr__(self)
3648 
3649  __swig_destroy__ = _IMP_kernel.delete_ScoreAccumulator
3650  __del__ = lambda self: None
3651 ScoreAccumulator_swigregister = _IMP_kernel.ScoreAccumulator_swigregister
3652 ScoreAccumulator_swigregister(ScoreAccumulator)
3653 
3654 class ScoreState(ModelObject):
3655  """Proxy of C++ IMP::ScoreState class."""
3656 
3657  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3658 
3659  def __init__(self, m, name):
3660  """__init__(IMP::ScoreState self, Model m, std::string name) -> ScoreState"""
3661  if self.__class__ == ScoreState:
3662  _self = None
3663  else:
3664  _self = self
3665  this = _IMP_kernel.new_ScoreState(_self, m, name)
3666  try:
3667  self.this.append(this)
3668  except __builtin__.Exception:
3669  self.this = this
3670 
3671  if self.__class__ != ScoreState:
3672  _director_objects.register(self)
3673 
3674 
3675 
3676 
3677  def before_evaluate(self):
3678  """before_evaluate(ScoreState self)"""
3679  return _IMP_kernel.ScoreState_before_evaluate(self)
3680 
3681 
3682  def after_evaluate(self, accpt):
3683  """after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
3684  return _IMP_kernel.ScoreState_after_evaluate(self, accpt)
3685 
3686 
3687  def get_has_update_order(self):
3688  """get_has_update_order(ScoreState self) -> bool"""
3689  return _IMP_kernel.ScoreState_get_has_update_order(self)
3690 
3691 
3692  def get_update_order(self):
3693  """get_update_order(ScoreState self) -> unsigned int"""
3694  return _IMP_kernel.ScoreState_get_update_order(self)
3695 
3696 
3697  def handle_set_has_required_score_states(self, tf):
3698  """handle_set_has_required_score_states(ScoreState self, bool tf)"""
3699  return _IMP_kernel.ScoreState_handle_set_has_required_score_states(self, tf)
3700 
3701 
3702  def do_before_evaluate(self):
3703  """do_before_evaluate(ScoreState self)"""
3704  return _IMP_kernel.ScoreState_do_before_evaluate(self)
3705 
3706 
3707  def do_after_evaluate(self, accpt):
3708  """do_after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
3709  return _IMP_kernel.ScoreState_do_after_evaluate(self, accpt)
3710 
3711  __swig_destroy__ = _IMP_kernel.delete_ScoreState
3712  __del__ = lambda self: None
3713 
3714  def __str__(self):
3715  """__str__(ScoreState self) -> std::string"""
3716  return _IMP_kernel.ScoreState___str__(self)
3717 
3718 
3719  def __repr__(self):
3720  """__repr__(ScoreState self) -> std::string"""
3721  return _IMP_kernel.ScoreState___repr__(self)
3722 
3723 
3724  @staticmethod
3725  def get_from(o):
3726  return _object_cast_to_ScoreState(o)
3727 
3728 
3729  def get_type_name(self):
3730  return self.__class__.__name__
3731  def do_show(self, out):
3732  pass
3733  def get_version_info(self):
3734  if"IMP" == "IMP":
3735  return VersionInfo(self.__module__,
3736  __import__(self.__module__).get_module_version())
3737  else:
3738  return IMP.VersionInfo(self.__module__,
3739  __import__(self.__module__).get_module_version())
3740  @staticmethod
3741  def get_from(o):
3742  return _object_cast_to_ScoreState(o)
3743 
3744  def __disown__(self):
3745  self.this.disown()
3746  _IMP_kernel.disown_ScoreState(self)
3747  return weakref_proxy(self)
3748 
3749  def do_destroy(self):
3750  """do_destroy(ScoreState self)"""
3751  return _IMP_kernel.ScoreState_do_destroy(self)
3752 
3753 
3754  def do_get_inputs(self):
3755  """do_get_inputs(ScoreState self) -> IMP::ModelObjectsTemp"""
3756  return _IMP_kernel.ScoreState_do_get_inputs(self)
3757 
3758 
3759  def do_get_outputs(self):
3760  """do_get_outputs(ScoreState self) -> IMP::ModelObjectsTemp"""
3761  return _IMP_kernel.ScoreState_do_get_outputs(self)
3762 
3763 
3764  def do_get_interactions(self):
3765  """do_get_interactions(ScoreState self) -> IMP::ModelObjectsTemps"""
3766  return _IMP_kernel.ScoreState_do_get_interactions(self)
3767 
3768 ScoreState_swigregister = _IMP_kernel.ScoreState_swigregister
3769 ScoreState_swigregister(ScoreState)
3770 
3771 
3772 def get_update_order(input):
3773  """get_update_order(IMP::ScoreStatesTemp input) -> IMP::ScoreStatesTemp"""
3774  return _IMP_kernel.get_update_order(input)
3775 class Constraint(ScoreState):
3776  """Proxy of C++ IMP::Constraint class."""
3777 
3778  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3779 
3780  def __init__(self, *args):
3781  """
3782  __init__(IMP::Constraint self, Model m, std::string name) -> Constraint
3783  __init__(IMP::Constraint self, Model m) -> Constraint
3784  """
3785  if self.__class__ == Constraint:
3786  _self = None
3787  else:
3788  _self = self
3789  this = _IMP_kernel.new_Constraint(_self, *args)
3790  try:
3791  self.this.append(this)
3792  except __builtin__.Exception:
3793  self.this = this
3794 
3795  if self.__class__ != Constraint:
3796  _director_objects.register(self)
3797 
3798 
3799 
3800 
3801  def do_update_attributes(self):
3802  """do_update_attributes(Constraint self)"""
3803  return _IMP_kernel.Constraint_do_update_attributes(self)
3804 
3805 
3806  def do_update_derivatives(self, da):
3807  """do_update_derivatives(Constraint self, DerivativeAccumulator da)"""
3808  return _IMP_kernel.Constraint_do_update_derivatives(self, da)
3809 
3810 
3811  def do_before_evaluate(self):
3812  """do_before_evaluate(Constraint self)"""
3813  return _IMP_kernel.Constraint_do_before_evaluate(self)
3814 
3815 
3816  def do_after_evaluate(self, da):
3817  """do_after_evaluate(Constraint self, DerivativeAccumulator da)"""
3818  return _IMP_kernel.Constraint_do_after_evaluate(self, da)
3819 
3820  __swig_destroy__ = _IMP_kernel.delete_Constraint
3821  __del__ = lambda self: None
3822 
3823  def __str__(self):
3824  """__str__(Constraint self) -> std::string"""
3825  return _IMP_kernel.Constraint___str__(self)
3826 
3827 
3828  def __repr__(self):
3829  """__repr__(Constraint self) -> std::string"""
3830  return _IMP_kernel.Constraint___repr__(self)
3831 
3832 
3833  @staticmethod
3834  def get_from(o):
3835  return _object_cast_to_Constraint(o)
3836 
3837 
3838  def get_type_name(self):
3839  return self.__class__.__name__
3840  def do_show(self, out):
3841  pass
3842  def get_version_info(self):
3843  if"IMP" == "IMP":
3844  return VersionInfo(self.__module__,
3845  __import__(self.__module__).get_module_version())
3846  else:
3847  return IMP.VersionInfo(self.__module__,
3848  __import__(self.__module__).get_module_version())
3849  @staticmethod
3850  def get_from(o):
3851  return _object_cast_to_Constraint(o)
3852 
3853  def __disown__(self):
3854  self.this.disown()
3855  _IMP_kernel.disown_Constraint(self)
3856  return weakref_proxy(self)
3857 
3858  def do_destroy(self):
3859  """do_destroy(Constraint self)"""
3860  return _IMP_kernel.Constraint_do_destroy(self)
3861 
3862 
3863  def do_get_inputs(self):
3864  """do_get_inputs(Constraint self) -> IMP::ModelObjectsTemp"""
3865  return _IMP_kernel.Constraint_do_get_inputs(self)
3866 
3867 
3868  def do_get_outputs(self):
3869  """do_get_outputs(Constraint self) -> IMP::ModelObjectsTemp"""
3870  return _IMP_kernel.Constraint_do_get_outputs(self)
3871 
3872 
3873  def do_get_interactions(self):
3874  """do_get_interactions(Constraint self) -> IMP::ModelObjectsTemps"""
3875  return _IMP_kernel.Constraint_do_get_interactions(self)
3876 
3877 Constraint_swigregister = _IMP_kernel.Constraint_swigregister
3878 Constraint_swigregister(Constraint)
3879 
3880 class Container(ModelObject):
3881  """Proxy of C++ IMP::Container class."""
3882 
3883  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3884 
3885  def __init__(self, *args):
3886  """
3887  __init__(IMP::Container self, Model m, std::string name) -> Container
3888  __init__(IMP::Container self, Model m) -> Container
3889  """
3890  if self.__class__ == Container:
3891  _self = None
3892  else:
3893  _self = self
3894  this = _IMP_kernel.new_Container(_self, *args)
3895  try:
3896  self.this.append(this)
3897  except __builtin__.Exception:
3898  self.this = this
3899 
3900  if self.__class__ != Container:
3901  _director_objects.register(self)
3902 
3903 
3904 
3905 
3906  def do_get_contents_hash(self):
3907  """do_get_contents_hash(Container self) -> std::size_t"""
3908  return _IMP_kernel.Container_do_get_contents_hash(self)
3909 
3910 
3911  def get_all_possible_indexes(self):
3912  """get_all_possible_indexes(Container self) -> IMP::ParticleIndexes"""
3913  return _IMP_kernel.Container_get_all_possible_indexes(self)
3914 
3915 
3916  def get_contents_hash(self):
3917  """get_contents_hash(Container self) -> std::size_t"""
3918  return _IMP_kernel.Container_get_contents_hash(self)
3919 
3920 
3921  def do_get_outputs(self):
3922  """do_get_outputs(Container self) -> IMP::ModelObjectsTemp"""
3923  return _IMP_kernel.Container_do_get_outputs(self)
3924 
3925 
3926  def get_is_decomposable(self):
3927  """get_is_decomposable(Container self) -> bool"""
3928  return _IMP_kernel.Container_get_is_decomposable(self)
3929 
3930 
3931  def validate_readable(self):
3932  """validate_readable(Container self)"""
3933  return _IMP_kernel.Container_validate_readable(self)
3934 
3935 
3936  def validate_writable(self):
3937  """validate_writable(Container self)"""
3938  return _IMP_kernel.Container_validate_writable(self)
3939 
3940 
3941  def set_is_readable(self, tf):
3942  """set_is_readable(Container self, bool tf)"""
3943  return _IMP_kernel.Container_set_is_readable(self, tf)
3944 
3945 
3946  def set_is_writable(self, tf):
3947  """set_is_writable(Container self, bool tf)"""
3948  return _IMP_kernel.Container_set_is_writable(self, tf)
3949 
3950  __swig_destroy__ = _IMP_kernel.delete_Container
3951  __del__ = lambda self: None
3952 
3953  def __str__(self):
3954  """__str__(Container self) -> std::string"""
3955  return _IMP_kernel.Container___str__(self)
3956 
3957 
3958  def __repr__(self):
3959  """__repr__(Container self) -> std::string"""
3960  return _IMP_kernel.Container___repr__(self)
3961 
3962 
3963  @staticmethod
3964  def get_from(o):
3965  return _object_cast_to_Container(o)
3966 
3967 
3968  def get_type_name(self):
3969  return self.__class__.__name__
3970  def do_show(self, out):
3971  pass
3972  def get_version_info(self):
3973  if"IMP" == "IMP":
3974  return VersionInfo(self.__module__,
3975  __import__(self.__module__).get_module_version())
3976  else:
3977  return IMP.VersionInfo(self.__module__,
3978  __import__(self.__module__).get_module_version())
3979  @staticmethod
3980  def get_from(o):
3981  return _object_cast_to_Container(o)
3982 
3983  def __disown__(self):
3984  self.this.disown()
3985  _IMP_kernel.disown_Container(self)
3986  return weakref_proxy(self)
3987 
3988  def do_destroy(self):
3989  """do_destroy(Container self)"""
3990  return _IMP_kernel.Container_do_destroy(self)
3991 
3992 
3993  def handle_set_has_required_score_states(self, arg0):
3994  """handle_set_has_required_score_states(Container self, bool arg0)"""
3995  return _IMP_kernel.Container_handle_set_has_required_score_states(self, arg0)
3996 
3997 
3998  def do_get_inputs(self):
3999  """do_get_inputs(Container self) -> IMP::ModelObjectsTemp"""
4000  return _IMP_kernel.Container_do_get_inputs(self)
4001 
4002 
4003  def do_get_interactions(self):
4004  """do_get_interactions(Container self) -> IMP::ModelObjectsTemps"""
4005  return _IMP_kernel.Container_do_get_interactions(self)
4006 
4007 Container_swigregister = _IMP_kernel.Container_swigregister
4008 Container_swigregister(Container)
4009 
4010 class RestraintInfo(Object):
4011  """Proxy of C++ IMP::RestraintInfo class."""
4012 
4013  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4014 
4015  def __init__(self, *args):
4016  """
4017  __init__(IMP::RestraintInfo self, std::string name) -> RestraintInfo
4018  __init__(IMP::RestraintInfo self) -> RestraintInfo
4019  """
4020  this = _IMP_kernel.new_RestraintInfo(*args)
4021  try:
4022  self.this.append(this)
4023  except __builtin__.Exception:
4024  self.this = this
4025 
4026  def add_int(self, key, value):
4027  """add_int(RestraintInfo self, std::string key, int value)"""
4028  return _IMP_kernel.RestraintInfo_add_int(self, key, value)
4029 
4030 
4031  def get_number_of_int(self):
4032  """get_number_of_int(RestraintInfo self) -> unsigned int"""
4033  return _IMP_kernel.RestraintInfo_get_number_of_int(self)
4034 
4035 
4036  def get_int_key(self, i):
4037  """get_int_key(RestraintInfo self, unsigned int i) -> std::string"""
4038  return _IMP_kernel.RestraintInfo_get_int_key(self, i)
4039 
4040 
4041  def get_int_value(self, i):
4042  """get_int_value(RestraintInfo self, unsigned int i) -> int"""
4043  return _IMP_kernel.RestraintInfo_get_int_value(self, i)
4044 
4045 
4046  def add_float(self, key, value):
4047  """add_float(RestraintInfo self, std::string key, double value)"""
4048  return _IMP_kernel.RestraintInfo_add_float(self, key, value)
4049 
4050 
4051  def get_number_of_float(self):
4052  """get_number_of_float(RestraintInfo self) -> unsigned int"""
4053  return _IMP_kernel.RestraintInfo_get_number_of_float(self)
4054 
4055 
4056  def get_float_key(self, i):
4057  """get_float_key(RestraintInfo self, unsigned int i) -> std::string"""
4058  return _IMP_kernel.RestraintInfo_get_float_key(self, i)
4059 
4060 
4061  def get_float_value(self, i):
4062  """get_float_value(RestraintInfo self, unsigned int i) -> double"""
4063  return _IMP_kernel.RestraintInfo_get_float_value(self, i)
4064 
4065 
4066  def add_string(self, key, value):
4067  """add_string(RestraintInfo self, std::string key, std::string value)"""
4068  return _IMP_kernel.RestraintInfo_add_string(self, key, value)
4069 
4070 
4071  def get_number_of_string(self):
4072  """get_number_of_string(RestraintInfo self) -> unsigned int"""
4073  return _IMP_kernel.RestraintInfo_get_number_of_string(self)
4074 
4075 
4076  def get_string_key(self, i):
4077  """get_string_key(RestraintInfo self, unsigned int i) -> std::string"""
4078  return _IMP_kernel.RestraintInfo_get_string_key(self, i)
4079 
4080 
4081  def get_string_value(self, i):
4082  """get_string_value(RestraintInfo self, unsigned int i) -> std::string"""
4083  return _IMP_kernel.RestraintInfo_get_string_value(self, i)
4084 
4085 
4086  def add_filename(self, key, value):
4087  """add_filename(RestraintInfo self, std::string key, std::string value)"""
4088  return _IMP_kernel.RestraintInfo_add_filename(self, key, value)
4089 
4090 
4091  def get_number_of_filename(self):
4092  """get_number_of_filename(RestraintInfo self) -> unsigned int"""
4093  return _IMP_kernel.RestraintInfo_get_number_of_filename(self)
4094 
4095 
4096  def get_filename_key(self, i):
4097  """get_filename_key(RestraintInfo self, unsigned int i) -> std::string"""
4098  return _IMP_kernel.RestraintInfo_get_filename_key(self, i)
4099 
4100 
4101  def get_filename_value(self, i):
4102  """get_filename_value(RestraintInfo self, unsigned int i) -> std::string"""
4103  return _IMP_kernel.RestraintInfo_get_filename_value(self, i)
4104 
4105 
4106  def add_floats(self, key, value):
4107  """add_floats(RestraintInfo self, std::string key, IMP::Floats value)"""
4108  return _IMP_kernel.RestraintInfo_add_floats(self, key, value)
4109 
4110 
4111  def get_number_of_floats(self):
4112  """get_number_of_floats(RestraintInfo self) -> unsigned int"""
4113  return _IMP_kernel.RestraintInfo_get_number_of_floats(self)
4114 
4115 
4116  def get_floats_key(self, i):
4117  """get_floats_key(RestraintInfo self, unsigned int i) -> std::string"""
4118  return _IMP_kernel.RestraintInfo_get_floats_key(self, i)
4119 
4120 
4121  def get_floats_value(self, i):
4122  """get_floats_value(RestraintInfo self, unsigned int i) -> IMP::Floats"""
4123  return _IMP_kernel.RestraintInfo_get_floats_value(self, i)
4124 
4125 
4126  def add_ints(self, key, value):
4127  """add_ints(RestraintInfo self, std::string key, IMP::Ints value)"""
4128  return _IMP_kernel.RestraintInfo_add_ints(self, key, value)
4129 
4130 
4131  def get_number_of_ints(self):
4132  """get_number_of_ints(RestraintInfo self) -> unsigned int"""
4133  return _IMP_kernel.RestraintInfo_get_number_of_ints(self)
4134 
4135 
4136  def get_ints_key(self, i):
4137  """get_ints_key(RestraintInfo self, unsigned int i) -> std::string"""
4138  return _IMP_kernel.RestraintInfo_get_ints_key(self, i)
4139 
4140 
4141  def get_ints_value(self, i):
4142  """get_ints_value(RestraintInfo self, unsigned int i) -> IMP::Ints"""
4143  return _IMP_kernel.RestraintInfo_get_ints_value(self, i)
4144 
4145 
4146  def add_strings(self, key, value):
4147  """add_strings(RestraintInfo self, std::string key, IMP::Strings value)"""
4148  return _IMP_kernel.RestraintInfo_add_strings(self, key, value)
4149 
4150 
4151  def get_number_of_strings(self):
4152  """get_number_of_strings(RestraintInfo self) -> unsigned int"""
4153  return _IMP_kernel.RestraintInfo_get_number_of_strings(self)
4154 
4155 
4156  def get_strings_key(self, i):
4157  """get_strings_key(RestraintInfo self, unsigned int i) -> std::string"""
4158  return _IMP_kernel.RestraintInfo_get_strings_key(self, i)
4159 
4160 
4161  def get_strings_value(self, i):
4162  """get_strings_value(RestraintInfo self, unsigned int i) -> IMP::Strings"""
4163  return _IMP_kernel.RestraintInfo_get_strings_value(self, i)
4164 
4165 
4166  def add_filenames(self, key, value):
4167  """add_filenames(RestraintInfo self, std::string key, IMP::Strings value)"""
4168  return _IMP_kernel.RestraintInfo_add_filenames(self, key, value)
4169 
4170 
4171  def get_number_of_filenames(self):
4172  """get_number_of_filenames(RestraintInfo self) -> unsigned int"""
4173  return _IMP_kernel.RestraintInfo_get_number_of_filenames(self)
4174 
4175 
4176  def get_filenames_key(self, i):
4177  """get_filenames_key(RestraintInfo self, unsigned int i) -> std::string"""
4178  return _IMP_kernel.RestraintInfo_get_filenames_key(self, i)
4179 
4180 
4181  def get_filenames_value(self, i):
4182  """get_filenames_value(RestraintInfo self, unsigned int i) -> IMP::Strings"""
4183  return _IMP_kernel.RestraintInfo_get_filenames_value(self, i)
4184 
4185 
4186  def add_particle_indexes(self, key, value):
4187  """add_particle_indexes(RestraintInfo self, std::string key, IMP::ParticleIndexes value)"""
4188  return _IMP_kernel.RestraintInfo_add_particle_indexes(self, key, value)
4189 
4190 
4191  def get_number_of_particle_indexes(self):
4192  """get_number_of_particle_indexes(RestraintInfo self) -> unsigned int"""
4193  return _IMP_kernel.RestraintInfo_get_number_of_particle_indexes(self)
4194 
4195 
4196  def get_particle_indexes_key(self, i):
4197  """get_particle_indexes_key(RestraintInfo self, unsigned int i) -> std::string"""
4198  return _IMP_kernel.RestraintInfo_get_particle_indexes_key(self, i)
4199 
4200 
4201  def get_particle_indexes_value(self, i):
4202  """get_particle_indexes_value(RestraintInfo self, unsigned int i) -> IMP::ParticleIndexes"""
4203  return _IMP_kernel.RestraintInfo_get_particle_indexes_value(self, i)
4204 
4205 
4206  def get_version_info(self):
4207  """get_version_info(RestraintInfo self) -> VersionInfo"""
4208  return _IMP_kernel.RestraintInfo_get_version_info(self)
4209 
4210 
4211  def __str__(self):
4212  """__str__(RestraintInfo self) -> std::string"""
4213  return _IMP_kernel.RestraintInfo___str__(self)
4214 
4215 
4216  def __repr__(self):
4217  """__repr__(RestraintInfo self) -> std::string"""
4218  return _IMP_kernel.RestraintInfo___repr__(self)
4219 
4220 
4221  @staticmethod
4222  def get_from(o):
4223  return _object_cast_to_RestraintInfo(o)
4224 
4225 RestraintInfo_swigregister = _IMP_kernel.RestraintInfo_swigregister
4226 RestraintInfo_swigregister(RestraintInfo)
4227 
4228 class Restraint(ModelObject):
4229  """Proxy of C++ IMP::Restraint class."""
4230 
4231  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4232 
4233  def __init__(self, m, name):
4234  """__init__(IMP::Restraint self, Model m, std::string name) -> Restraint"""
4235  if self.__class__ == Restraint:
4236  _self = None
4237  else:
4238  _self = self
4239  this = _IMP_kernel.new_Restraint(_self, m, name)
4240  try:
4241  self.this.append(this)
4242  except __builtin__.Exception:
4243  self.this = this
4244 
4245  if self.__class__ != Restraint:
4246  _director_objects.register(self)
4247 
4248 
4249 
4250 
4251  def get_score(self):
4252  """get_score(Restraint self) -> double"""
4253  return _IMP_kernel.Restraint_get_score(self)
4254 
4255 
4256  def evaluate(self, calc_derivs):
4257  """evaluate(Restraint self, bool calc_derivs) -> double"""
4258  return _IMP_kernel.Restraint_evaluate(self, calc_derivs)
4259 
4260 
4261  def evaluate_if_good(self, calc_derivatives):
4262  """evaluate_if_good(Restraint self, bool calc_derivatives) -> double"""
4263  return _IMP_kernel.Restraint_evaluate_if_good(self, calc_derivatives)
4264 
4265 
4266  def evaluate_if_below(self, calc_derivatives, max):
4267  """evaluate_if_below(Restraint self, bool calc_derivatives, double max) -> double"""
4268  return _IMP_kernel.Restraint_evaluate_if_below(self, calc_derivatives, max)
4269 
4270 
4271  def unprotected_evaluate(self, da):
4272  """unprotected_evaluate(Restraint self, DerivativeAccumulator da) -> double"""
4273  return _IMP_kernel.Restraint_unprotected_evaluate(self, da)
4274 
4275 
4276  def unprotected_evaluate_if_good(self, da, max):
4277  """unprotected_evaluate_if_good(Restraint self, DerivativeAccumulator da, double max) -> double"""
4278  return _IMP_kernel.Restraint_unprotected_evaluate_if_good(self, da, max)
4279 
4280 
4281  def unprotected_evaluate_if_below(self, da, max):
4282  """unprotected_evaluate_if_below(Restraint self, DerivativeAccumulator da, double max) -> double"""
4283  return _IMP_kernel.Restraint_unprotected_evaluate_if_below(self, da, max)
4284 
4285 
4286  def get_static_info(self):
4287  """get_static_info(Restraint self) -> RestraintInfo"""
4288  return _IMP_kernel.Restraint_get_static_info(self)
4289 
4290 
4291  def get_dynamic_info(self):
4292  """get_dynamic_info(Restraint self) -> RestraintInfo"""
4293  return _IMP_kernel.Restraint_get_dynamic_info(self)
4294 
4295 
4296  def add_score_and_derivatives(self, sa):
4297  """add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
4298  return _IMP_kernel.Restraint_add_score_and_derivatives(self, sa)
4299 
4300 
4301  def create_decomposition(self):
4302  """create_decomposition(Restraint self) -> Restraint"""
4303  return _IMP_kernel.Restraint_create_decomposition(self)
4304 
4305 
4306  def create_current_decomposition(self):
4307  """create_current_decomposition(Restraint self) -> Restraint"""
4308  return _IMP_kernel.Restraint_create_current_decomposition(self)
4309 
4310 
4311  def set_weight(self, weight):
4312  """set_weight(Restraint self, IMP::Float weight)"""
4313  return _IMP_kernel.Restraint_set_weight(self, weight)
4314 
4315 
4316  def get_weight(self):
4317  """get_weight(Restraint self) -> IMP::Float"""
4318  return _IMP_kernel.Restraint_get_weight(self)
4319 
4320 
4321  def get_maximum_score(self):
4322  """get_maximum_score(Restraint self) -> double"""
4323  return _IMP_kernel.Restraint_get_maximum_score(self)
4324 
4325 
4326  def set_maximum_score(self, s):
4327  """set_maximum_score(Restraint self, double s)"""
4328  return _IMP_kernel.Restraint_set_maximum_score(self, s)
4329 
4330 
4331  def create_scoring_function(self, *args):
4332  """
4333  create_scoring_function(Restraint self, double weight=1.0, double max) -> ScoringFunction
4334  create_scoring_function(Restraint self, double weight=1.0) -> ScoringFunction
4335  create_scoring_function(Restraint self) -> ScoringFunction
4336  """
4337  return _IMP_kernel.Restraint_create_scoring_function(self, *args)
4338 
4339 
4340  def set_last_score(self, s):
4341  """set_last_score(Restraint self, double s)"""
4342  return _IMP_kernel.Restraint_set_last_score(self, s)
4343 
4344 
4345  def get_last_score(self):
4346  """get_last_score(Restraint self) -> double"""
4347  return _IMP_kernel.Restraint_get_last_score(self)
4348 
4349 
4350  def get_was_good(self):
4351  """get_was_good(Restraint self) -> bool"""
4352  return _IMP_kernel.Restraint_get_was_good(self)
4353 
4354  __swig_destroy__ = _IMP_kernel.delete_Restraint
4355  __del__ = lambda self: None
4356 
4357  def do_create_decomposition(self):
4358  """do_create_decomposition(Restraint self) -> IMP::Restraints"""
4359  return _IMP_kernel.Restraint_do_create_decomposition(self)
4360 
4361 
4362  def do_create_current_decomposition(self):
4363  """do_create_current_decomposition(Restraint self) -> IMP::Restraints"""
4364  return _IMP_kernel.Restraint_do_create_current_decomposition(self)
4365 
4366 
4367  def do_add_score_and_derivatives(self, sa):
4368  """do_add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
4369  return _IMP_kernel.Restraint_do_add_score_and_derivatives(self, sa)
4370 
4371 
4372  def do_get_outputs(self):
4373  """do_get_outputs(Restraint self) -> IMP::ModelObjectsTemp"""
4374  return _IMP_kernel.Restraint_do_get_outputs(self)
4375 
4376 
4377  def __str__(self):
4378  """__str__(Restraint self) -> std::string"""
4379  return _IMP_kernel.Restraint___str__(self)
4380 
4381 
4382  def __repr__(self):
4383  """__repr__(Restraint self) -> std::string"""
4384  return _IMP_kernel.Restraint___repr__(self)
4385 
4386 
4387  @staticmethod
4388  def get_from(o):
4389  return _object_cast_to_Restraint(o)
4390 
4391 
4392  def get_type_name(self):
4393  return self.__class__.__name__
4394  def do_show(self, out):
4395  pass
4396  def get_version_info(self):
4397  if"IMP" == "IMP":
4398  return VersionInfo(self.__module__,
4399  __import__(self.__module__).get_module_version())
4400  else:
4401  return IMP.VersionInfo(self.__module__,
4402  __import__(self.__module__).get_module_version())
4403  @staticmethod
4404  def get_from(o):
4405  return _object_cast_to_Restraint(o)
4406 
4407  def __disown__(self):
4408  self.this.disown()
4409  _IMP_kernel.disown_Restraint(self)
4410  return weakref_proxy(self)
4411 
4412  def do_destroy(self):
4413  """do_destroy(Restraint self)"""
4414  return _IMP_kernel.Restraint_do_destroy(self)
4415 
4416 
4417  def handle_set_has_required_score_states(self, arg0):
4418  """handle_set_has_required_score_states(Restraint self, bool arg0)"""
4419  return _IMP_kernel.Restraint_handle_set_has_required_score_states(self, arg0)
4420 
4421 
4422  def do_get_inputs(self):
4423  """do_get_inputs(Restraint self) -> IMP::ModelObjectsTemp"""
4424  return _IMP_kernel.Restraint_do_get_inputs(self)
4425 
4426 
4427  def do_get_interactions(self):
4428  """do_get_interactions(Restraint self) -> IMP::ModelObjectsTemps"""
4429  return _IMP_kernel.Restraint_do_get_interactions(self)
4430 
4431 Restraint_swigregister = _IMP_kernel.Restraint_swigregister
4432 Restraint_swigregister(Restraint)
4433 
4434 class _RestraintsAdaptor(_InputAdaptor):
4435  """Proxy of C++ IMP::RestraintsAdaptor class."""
4436 
4437  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4438  __repr__ = _swig_repr
4439 
4440  def __init__(self, *args):
4441  """
4442  __init__(IMP::RestraintsAdaptor self) -> _RestraintsAdaptor
4443  __init__(IMP::RestraintsAdaptor self, IMP::Restraints const & sf) -> _RestraintsAdaptor
4444  __init__(IMP::RestraintsAdaptor self, IMP::RestraintsTemp const & sf) -> _RestraintsAdaptor
4445  __init__(IMP::RestraintsAdaptor self, Restraint sf) -> _RestraintsAdaptor
4446  """
4447  this = _IMP_kernel.new__RestraintsAdaptor(*args)
4448  try:
4449  self.this.append(this)
4450  except __builtin__.Exception:
4451  self.this = this
4452  __swig_destroy__ = _IMP_kernel.delete__RestraintsAdaptor
4453  __del__ = lambda self: None
4454 _RestraintsAdaptor_swigregister = _IMP_kernel._RestraintsAdaptor_swigregister
4455 _RestraintsAdaptor_swigregister(_RestraintsAdaptor)
4456 
4457 class RestraintSet(Restraint):
4458  """Proxy of C++ IMP::RestraintSet class."""
4459 
4460  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4461 
4462  def __init__(self, *args):
4463  """
4464  __init__(IMP::RestraintSet self, Model m, double weight, std::string const & name) -> RestraintSet
4465  __init__(IMP::RestraintSet self, Model m, double weight) -> RestraintSet
4466  __init__(IMP::RestraintSet self, Model m, std::string const & name) -> RestraintSet
4467  __init__(IMP::RestraintSet self, Model m) -> RestraintSet
4468  __init__(IMP::RestraintSet self, IMP::RestraintsTemp const & rs, double weight, std::string const & name) -> RestraintSet
4469  __init__(IMP::RestraintSet self, IMP::RestraintsTemp const & rs, double weight) -> RestraintSet
4470  """
4471  if self.__class__ == RestraintSet:
4472  _self = None
4473  else:
4474  _self = self
4475  this = _IMP_kernel.new_RestraintSet(_self, *args)
4476  try:
4477  self.this.append(this)
4478  except __builtin__.Exception:
4479  self.this = this
4480 
4481  if self.__class__ != RestraintSet:
4482  _director_objects.register(self)
4483 
4484 
4485 
4486 
4487  def unprotected_evaluate(self, da):
4488  """unprotected_evaluate(RestraintSet self, DerivativeAccumulator da) -> double"""
4489  return _IMP_kernel.RestraintSet_unprotected_evaluate(self, da)
4490 
4491 
4492  def get_type_name(self):
4493  """get_type_name(RestraintSet self) -> std::string"""
4494  return _IMP_kernel.RestraintSet_get_type_name(self)
4495 
4496 
4497  def get_version_info(self):
4498  """get_version_info(RestraintSet self) -> VersionInfo"""
4499  return _IMP_kernel.RestraintSet_get_version_info(self)
4500 
4501 
4502  def remove_restraint(self, d):
4503  """remove_restraint(RestraintSet self, Restraint d)"""
4504  return _IMP_kernel.RestraintSet_remove_restraint(self, d)
4505 
4506 
4507  def remove_restraints(self, d):
4508  """remove_restraints(RestraintSet self, IMP::Restraints const & d)"""
4509  return _IMP_kernel.RestraintSet_remove_restraints(self, d)
4510 
4511 
4512  def set_restraints(self, ps):
4513  """set_restraints(RestraintSet self, IMP::Restraints const & ps)"""
4514  return _IMP_kernel.RestraintSet_set_restraints(self, ps)
4515 
4516 
4517  def set_restraints_order(self, objs):
4518  """set_restraints_order(RestraintSet self, IMP::Restraints const & objs)"""
4519  return _IMP_kernel.RestraintSet_set_restraints_order(self, objs)
4520 
4521 
4522  def add_restraint(self, obj):
4523  """add_restraint(RestraintSet self, Restraint obj) -> unsigned int"""
4524  return _IMP_kernel.RestraintSet_add_restraint(self, obj)
4525 
4526 
4527  def add_restraints(self, objs):
4528  """add_restraints(RestraintSet self, IMP::Restraints const & objs)"""
4529  return _IMP_kernel.RestraintSet_add_restraints(self, objs)
4530 
4531 
4532  def clear_restraints(self):
4533  """clear_restraints(RestraintSet self)"""
4534  return _IMP_kernel.RestraintSet_clear_restraints(self)
4535 
4536 
4537  def get_number_of_restraints(self):
4538  """get_number_of_restraints(RestraintSet self) -> unsigned int"""
4539  return _IMP_kernel.RestraintSet_get_number_of_restraints(self)
4540 
4541 
4542  def get_has_restraints(self):
4543  """get_has_restraints(RestraintSet self) -> bool"""
4544  return _IMP_kernel.RestraintSet_get_has_restraints(self)
4545 
4546 
4547  def get_restraint(self, i):
4548  """get_restraint(RestraintSet self, unsigned int i) -> Restraint"""
4549  return _IMP_kernel.RestraintSet_get_restraint(self, i)
4550 
4551 
4552  def get_restraints(self):
4553  """get_restraints(RestraintSet self) -> IMP::Restraints"""
4554  return _IMP_kernel.RestraintSet_get_restraints(self)
4555 
4556 
4557  def reserve_restraints(self, sz):
4558  """reserve_restraints(RestraintSet self, unsigned int sz)"""
4559  return _IMP_kernel.RestraintSet_reserve_restraints(self, sz)
4560 
4561 
4562  def get_non_sets_and_sets(self):
4563  """get_non_sets_and_sets(RestraintSet self) -> std::pair< IMP::RestraintsTemp,IMP::RestraintSetsTemp >"""
4564  return _IMP_kernel.RestraintSet_get_non_sets_and_sets(self)
4565 
4566 
4567  def do_get_inputs(self):
4568  """do_get_inputs(RestraintSet self) -> IMP::ModelObjectsTemp"""
4569  return _IMP_kernel.RestraintSet_do_get_inputs(self)
4570 
4571 
4572  def create_scoring_function(self, *args):
4573  """
4574  create_scoring_function(RestraintSet self, double weight=1.0, double max) -> ScoringFunction
4575  create_scoring_function(RestraintSet self, double weight=1.0) -> ScoringFunction
4576  create_scoring_function(RestraintSet self) -> ScoringFunction
4577  """
4578  return _IMP_kernel.RestraintSet_create_scoring_function(self, *args)
4579 
4580 
4581  def get_last_score(self):
4582  """get_last_score(RestraintSet self) -> double"""
4583  return _IMP_kernel.RestraintSet_get_last_score(self)
4584 
4585 
4586  def __str__(self):
4587  """__str__(RestraintSet self) -> std::string"""
4588  return _IMP_kernel.RestraintSet___str__(self)
4589 
4590 
4591  def __repr__(self):
4592  """__repr__(RestraintSet self) -> std::string"""
4593  return _IMP_kernel.RestraintSet___repr__(self)
4594 
4595 
4596  @staticmethod
4597  def get_from(o):
4598  return _object_cast_to_RestraintSet(o)
4599 
4600 
4601  def get_type_name(self):
4602  return self.__class__.__name__
4603  def do_show(self, out):
4604  pass
4605  def get_version_info(self):
4606  if"IMP" == "IMP":
4607  return VersionInfo(self.__module__,
4608  __import__(self.__module__).get_module_version())
4609  else:
4610  return IMP.VersionInfo(self.__module__,
4611  __import__(self.__module__).get_module_version())
4612  @staticmethod
4613  def get_from(o):
4614  return _object_cast_to_RestraintSet(o)
4615 
4616  def __disown__(self):
4617  self.this.disown()
4618  _IMP_kernel.disown_RestraintSet(self)
4619  return weakref_proxy(self)
4620 
4621  def do_destroy(self):
4622  """do_destroy(RestraintSet self)"""
4623  return _IMP_kernel.RestraintSet_do_destroy(self)
4624 
4625 
4626  def handle_set_has_required_score_states(self, arg0):
4627  """handle_set_has_required_score_states(RestraintSet self, bool arg0)"""
4628  return _IMP_kernel.RestraintSet_handle_set_has_required_score_states(self, arg0)
4629 
4630 
4631  def do_get_outputs(self):
4632  """do_get_outputs(RestraintSet self) -> IMP::ModelObjectsTemp"""
4633  return _IMP_kernel.RestraintSet_do_get_outputs(self)
4634 
4635 
4636  def do_get_interactions(self):
4637  """do_get_interactions(RestraintSet self) -> IMP::ModelObjectsTemps"""
4638  return _IMP_kernel.RestraintSet_do_get_interactions(self)
4639 
4640 
4641  def do_create_decomposition(self):
4642  """do_create_decomposition(RestraintSet self) -> IMP::Restraints"""
4643  return _IMP_kernel.RestraintSet_do_create_decomposition(self)
4644 
4645 
4646  def do_create_current_decomposition(self):
4647  """do_create_current_decomposition(RestraintSet self) -> IMP::Restraints"""
4648  return _IMP_kernel.RestraintSet_do_create_current_decomposition(self)
4649 
4650 
4651  def do_add_score_and_derivatives(self, sa):
4652  """do_add_score_and_derivatives(RestraintSet self, ScoreAccumulator sa)"""
4653  return _IMP_kernel.RestraintSet_do_add_score_and_derivatives(self, sa)
4654 
4655 RestraintSet_swigregister = _IMP_kernel.RestraintSet_swigregister
4656 RestraintSet_swigregister(RestraintSet)
4657 
4658 
4659 def get_restraints(rs):
4660  """get_restraints(IMP::RestraintsTemp const & rs) -> IMP::RestraintsTemp"""
4661  return _IMP_kernel.get_restraints(rs)
4662 
4663 def _check_particle(p, a):
4664  if (not p.get_is_active()):
4665  raise ValueError("Inactive Particle")
4666  if (type(a)() == a):
4667  raise IndexError("Cannot use default Index")
4668  if (not p.has_attribute(a)):
4669  raise IndexError("Particle does not have attribute")
4670 
4671 class Particle(ModelObject):
4672  """Proxy of C++ IMP::Particle class."""
4673 
4674  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4675 
4676  def get_version_info(self):
4677  """get_version_info(Particle self) -> VersionInfo"""
4678  return _IMP_kernel.Particle_get_version_info(self)
4679 
4680 
4681  def __init__(self, *args):
4682  """
4683  __init__(IMP::Particle self, Model m, std::string name) -> Particle
4684  __init__(IMP::Particle self, Model m) -> Particle
4685  """
4686  this = _IMP_kernel.new_Particle(*args)
4687  try:
4688  self.this.append(this)
4689  except __builtin__.Exception:
4690  self.this = this
4691 
4692  def get_float_keys(self):
4693  """get_float_keys(Particle self) -> IMP::FloatKeys"""
4694  return _IMP_kernel.Particle_get_float_keys(self)
4695 
4696 
4697  def get_int_keys(self):
4698  """get_int_keys(Particle self) -> IMP::IntKeys"""
4699  return _IMP_kernel.Particle_get_int_keys(self)
4700 
4701 
4702  def get_string_keys(self):
4703  """get_string_keys(Particle self) -> IMP::StringKeys"""
4704  return _IMP_kernel.Particle_get_string_keys(self)
4705 
4706 
4707  def get_object_keys(self):
4708  """get_object_keys(Particle self) -> IMP::ObjectKeys"""
4709  return _IMP_kernel.Particle_get_object_keys(self)
4710 
4711 
4712  def add_cache_attribute(self, *args):
4713  """
4714  add_cache_attribute(Particle self, FloatKey name, IMP::Float value)
4715  add_cache_attribute(Particle self, IntKey name, IMP::Int value)
4716  add_cache_attribute(Particle self, StringKey name, IMP::String value)
4717  add_cache_attribute(Particle self, ObjectKey name, Object value)
4718  add_cache_attribute(Particle self, IMP::WeakObjectKey name, Object value)
4719  """
4720  return _IMP_kernel.Particle_add_cache_attribute(self, *args)
4721 
4722 
4723  def get_weak_object_keys(self):
4724  """get_weak_object_keys(Particle self) -> IMP::WeakObjectKeys"""
4725  return _IMP_kernel.Particle_get_weak_object_keys(self)
4726 
4727 
4728  def add_to_derivative(self, key, value, da):
4729  """add_to_derivative(Particle self, FloatKey key, IMP::Float value, DerivativeAccumulator da)"""
4730  return _IMP_kernel.Particle_add_to_derivative(self, key, value, da)
4731 
4732 
4733  def set_is_optimized(self, k, tf):
4734  """set_is_optimized(Particle self, FloatKey k, bool tf)"""
4735  return _IMP_kernel.Particle_set_is_optimized(self, k, tf)
4736 
4737 
4738  def get_is_optimized(self, k):
4739  """get_is_optimized(Particle self, FloatKey k) -> bool"""
4740  return _IMP_kernel.Particle_get_is_optimized(self, k)
4741 
4742 
4743  def get_derivative(self, k):
4744  """get_derivative(Particle self, FloatKey k) -> IMP::Float"""
4745  return _IMP_kernel.Particle_get_derivative(self, k)
4746 
4747 
4748  def add_attribute(self, *args):
4749  """
4750  add_attribute(Particle self, FloatKey name, IMP::Float initial_value)
4751  add_attribute(Particle self, IntKey name, IMP::Int initial_value)
4752  add_attribute(Particle self, StringKey name, IMP::String initial_value)
4753  add_attribute(Particle self, ObjectKey name, Object initial_value)
4754  add_attribute(Particle self, IMP::WeakObjectKey name, Object initial_value)
4755  add_attribute(Particle self, FloatKey name, IMP::Float const initial_value, bool optimized)
4756  add_attribute(Particle self, ParticleIndexKey k, Particle v)
4757  """
4758  return _IMP_kernel.Particle_add_attribute(self, *args)
4759 
4760 
4761  def has_attribute(self, *args):
4762  """
4763  has_attribute(Particle self, FloatKey name) -> bool
4764  has_attribute(Particle self, IntKey name) -> bool
4765  has_attribute(Particle self, StringKey name) -> bool
4766  has_attribute(Particle self, ObjectKey name) -> bool
4767  has_attribute(Particle self, IMP::WeakObjectKey name) -> bool
4768  has_attribute(Particle self, ParticleIndexKey k) -> bool
4769  """
4770  return _IMP_kernel.Particle_has_attribute(self, *args)
4771 
4772 
4773  def set_value(self, *args):
4774  """
4775  set_value(Particle self, FloatKey name, IMP::Float value)
4776  set_value(Particle self, IntKey name, IMP::Int value)
4777  set_value(Particle self, StringKey name, IMP::String value)
4778  set_value(Particle self, ObjectKey name, Object value)
4779  set_value(Particle self, IMP::WeakObjectKey name, Object value)
4780  set_value(Particle self, ParticleIndexKey k, Particle v)
4781  """
4782  return _IMP_kernel.Particle_set_value(self, *args)
4783 
4784 
4785  def get_value(self, *args):
4786  """
4787  get_value(Particle self, FloatKey name) -> IMP::Float
4788  get_value(Particle self, IntKey name) -> IMP::Int
4789  get_value(Particle self, StringKey name) -> IMP::String
4790  get_value(Particle self, ObjectKey name) -> Object
4791  get_value(Particle self, IMP::WeakObjectKey name) -> Object
4792  get_value(Particle self, ParticleIndexKey k) -> Particle
4793  """
4794  return _IMP_kernel.Particle_get_value(self, *args)
4795 
4796 
4797  def remove_attribute(self, *args):
4798  """
4799  remove_attribute(Particle self, FloatKey name)
4800  remove_attribute(Particle self, IntKey name)
4801  remove_attribute(Particle self, StringKey name)
4802  remove_attribute(Particle self, ObjectKey name)
4803  remove_attribute(Particle self, IMP::WeakObjectKey name)
4804  remove_attribute(Particle self, ParticleIndexKey k)
4805  """
4806  return _IMP_kernel.Particle_remove_attribute(self, *args)
4807 
4808 
4809  def get_particle_keys(self):
4810  """get_particle_keys(Particle self) -> IMP::ParticleIndexKeys"""
4811  return _IMP_kernel.Particle_get_particle_keys(self)
4812 
4813 
4814  def show(self, *args):
4815  """
4816  show(Particle self, _ostream out)
4817  show(Particle self)
4818  """
4819  return _IMP_kernel.Particle_show(self, *args)
4820 
4821 
4822  def get_is_active(self):
4823  """get_is_active(Particle self) -> bool"""
4824  return _IMP_kernel.Particle_get_is_active(self)
4825 
4826 
4827  def get_index(self):
4828  """get_index(Particle self) -> ParticleIndex"""
4829  return _IMP_kernel.Particle_get_index(self)
4830 
4831 
4832  def __eq__(self, *args):
4833  """
4834  __eq__(Particle self, Particle o) -> bool
4835  __eq__(Particle self, Decorator d) -> bool
4836  """
4837  return _IMP_kernel.Particle___eq__(self, *args)
4838 
4839 
4840  def __ne__(self, *args):
4841  """
4842  __ne__(Particle self, Particle o) -> bool
4843  __ne__(Particle self, Decorator d) -> bool
4844  """
4845  return _IMP_kernel.Particle___ne__(self, *args)
4846 
4847 
4848  def __le__(self, *args):
4849  """
4850  __le__(Particle self, Particle o) -> bool
4851  __le__(Particle self, Decorator d) -> bool
4852  """
4853  return _IMP_kernel.Particle___le__(self, *args)
4854 
4855 
4856  def __lt__(self, *args):
4857  """
4858  __lt__(Particle self, Particle o) -> bool
4859  __lt__(Particle self, Decorator d) -> bool
4860  """
4861  return _IMP_kernel.Particle___lt__(self, *args)
4862 
4863 
4864  def __ge__(self, *args):
4865  """
4866  __ge__(Particle self, Particle o) -> bool
4867  __ge__(Particle self, Decorator d) -> bool
4868  """
4869  return _IMP_kernel.Particle___ge__(self, *args)
4870 
4871 
4872  def __gt__(self, *args):
4873  """
4874  __gt__(Particle self, Particle o) -> bool
4875  __gt__(Particle self, Decorator d) -> bool
4876  """
4877  return _IMP_kernel.Particle___gt__(self, *args)
4878 
4879 
4880  __hash__ = ModelObject.__hash__
4881 
4882 
4883  def __str__(self):
4884  """__str__(Particle self) -> std::string"""
4885  return _IMP_kernel.Particle___str__(self)
4886 
4887 
4888  def __repr__(self):
4889  """__repr__(Particle self) -> std::string"""
4890  return _IMP_kernel.Particle___repr__(self)
4891 
4892 
4893  @staticmethod
4894  def get_from(o):
4895  return _object_cast_to_Particle(o)
4896 
4897 Particle_swigregister = _IMP_kernel.Particle_swigregister
4898 Particle_swigregister(Particle)
4899 
4900 class _ParticleAdaptor(_InputAdaptor):
4901  """Proxy of C++ IMP::ParticleAdaptor class."""
4902 
4903  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4904  __repr__ = _swig_repr
4905 
4906  def __init__(self, *args):
4907  """
4908  __init__(IMP::ParticleAdaptor self) -> _ParticleAdaptor
4909  __init__(IMP::ParticleAdaptor self, Particle p) -> _ParticleAdaptor
4910  __init__(IMP::ParticleAdaptor self, Decorator d) -> _ParticleAdaptor
4911  """
4912  this = _IMP_kernel.new__ParticleAdaptor(*args)
4913  try:
4914  self.this.append(this)
4915  except __builtin__.Exception:
4916  self.this = this
4917 
4918  def get_model(self):
4919  """get_model(_ParticleAdaptor self) -> Model"""
4920  return _IMP_kernel._ParticleAdaptor_get_model(self)
4921 
4922 
4923  def get_particle_index(self):
4924  """get_particle_index(_ParticleAdaptor self) -> ParticleIndex"""
4925  return _IMP_kernel._ParticleAdaptor_get_particle_index(self)
4926 
4927  __swig_destroy__ = _IMP_kernel.delete__ParticleAdaptor
4928  __del__ = lambda self: None
4929 _ParticleAdaptor_swigregister = _IMP_kernel._ParticleAdaptor_swigregister
4930 _ParticleAdaptor_swigregister(_ParticleAdaptor)
4931 
4932 class _DependencyGraphVertexIndex(object):
4933  """Proxy of C++ IMP::DependencyGraphVertexIndex class."""
4934 
4935  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4936  __repr__ = _swig_repr
4937 
4938  def __init__(self):
4939  """__init__(IMP::DependencyGraphVertexIndex self) -> _DependencyGraphVertexIndex"""
4940  this = _IMP_kernel.new__DependencyGraphVertexIndex()
4941  try:
4942  self.this.append(this)
4943  except __builtin__.Exception:
4944  self.this = this
4945  __swig_destroy__ = _IMP_kernel.delete__DependencyGraphVertexIndex
4946  __del__ = lambda self: None
4947 _DependencyGraphVertexIndex_swigregister = _IMP_kernel._DependencyGraphVertexIndex_swigregister
4948 _DependencyGraphVertexIndex_swigregister(_DependencyGraphVertexIndex)
4949 
4950 
4951 def show_as_graphviz(name, out):
4952  """show_as_graphviz(IMP::DependencyGraph const & name, TextOutput out)"""
4953  return _IMP_kernel.show_as_graphviz(name, out)
4954 
4955 def get_vertex_index(g):
4956  """get_vertex_index(IMP::DependencyGraph const & g) -> _DependencyGraphVertexIndex"""
4957  return _IMP_kernel.get_vertex_index(g)
4958 
4959 def get_dependency_graph(m):
4960  """get_dependency_graph(Model m) -> IMP::DependencyGraph"""
4961  return _IMP_kernel.get_dependency_graph(m)
4962 
4964  """get_pruned_dependency_graph(Model m) -> IMP::DependencyGraph"""
4965  return _IMP_kernel.get_pruned_dependency_graph(m)
4966 
4967 def get_required_score_states(*args):
4968  """
4969  get_required_score_states(IMP::ModelObjectsTemp const & mos, IMP::ScoreStatesTemp exclude) -> IMP::ScoreStatesTemp
4970  get_required_score_states(IMP::ModelObjectsTemp const & mos) -> IMP::ScoreStatesTemp
4971  get_required_score_states(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ScoreStatesTemp
4972  """
4973  return _IMP_kernel.get_required_score_states(*args)
4974 
4975 def get_dependent_particles(p, all, dg, index):
4976  """get_dependent_particles(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ParticlesTemp"""
4977  return _IMP_kernel.get_dependent_particles(p, all, dg, index)
4978 
4979 def get_dependent_restraints(m, pi):
4980  """get_dependent_restraints(Model m, ParticleIndex pi) -> IMP::RestraintsTemp"""
4981  return _IMP_kernel.get_dependent_restraints(m, pi)
4982 class ScoringFunction(ModelObject):
4983  """Proxy of C++ IMP::ScoringFunction class."""
4984 
4985  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4986 
4987  def do_add_score_and_derivatives(self, sa, ss):
4988  """do_add_score_and_derivatives(ScoringFunction self, ScoreAccumulator sa, IMP::ScoreStatesTemp const & ss)"""
4989  return _IMP_kernel.ScoringFunction_do_add_score_and_derivatives(self, sa, ss)
4990 
4991 
4992  def get_score_accumulator_if_below(self, deriv, max):
4993  """get_score_accumulator_if_below(ScoringFunction self, bool deriv, double max) -> ScoreAccumulator"""
4994  return _IMP_kernel.ScoringFunction_get_score_accumulator_if_below(self, deriv, max)
4995 
4996 
4997  def get_score_accumulator_if_good(self, deriv):
4998  """get_score_accumulator_if_good(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
4999  return _IMP_kernel.ScoringFunction_get_score_accumulator_if_good(self, deriv)
5000 
5001 
5002  def get_score_accumulator(self, deriv):
5003  """get_score_accumulator(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
5004  return _IMP_kernel.ScoringFunction_get_score_accumulator(self, deriv)
5005 
5006 
5007  def __init__(self, m, name):
5008  """__init__(IMP::ScoringFunction self, Model m, std::string name) -> ScoringFunction"""
5009  if self.__class__ == ScoringFunction:
5010  _self = None
5011  else:
5012  _self = self
5013  this = _IMP_kernel.new_ScoringFunction(_self, m, name)
5014  try:
5015  self.this.append(this)
5016  except __builtin__.Exception:
5017  self.this = this
5018 
5019  if self.__class__ != ScoringFunction:
5020  _director_objects.register(self)
5021 
5022 
5023 
5024 
5025  def do_get_outputs(self):
5026  """do_get_outputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
5027  return _IMP_kernel.ScoringFunction_do_get_outputs(self)
5028 
5029 
5030  def evaluate_if_good(self, derivatives):
5031  """evaluate_if_good(ScoringFunction self, bool derivatives) -> double"""
5032  return _IMP_kernel.ScoringFunction_evaluate_if_good(self, derivatives)
5033 
5034 
5035  def evaluate(self, derivatives):
5036  """evaluate(ScoringFunction self, bool derivatives) -> double"""
5037  return _IMP_kernel.ScoringFunction_evaluate(self, derivatives)
5038 
5039 
5040  def evaluate_if_below(self, derivatives, max):
5041  """evaluate_if_below(ScoringFunction self, bool derivatives, double max) -> double"""
5042  return _IMP_kernel.ScoringFunction_evaluate_if_below(self, derivatives, max)
5043 
5044 
5045  def get_had_good_score(self):
5046  """get_had_good_score(ScoringFunction self) -> bool"""
5047  return _IMP_kernel.ScoringFunction_get_had_good_score(self)
5048 
5049 
5050  def get_last_score(self):
5051  """get_last_score(ScoringFunction self) -> double"""
5052  return _IMP_kernel.ScoringFunction_get_last_score(self)
5053 
5054 
5055  def create_restraints(self):
5056  """create_restraints(ScoringFunction self) -> IMP::Restraints"""
5057  return _IMP_kernel.ScoringFunction_create_restraints(self)
5058 
5059 
5060  def __str__(self):
5061  """__str__(ScoringFunction self) -> std::string"""
5062  return _IMP_kernel.ScoringFunction___str__(self)
5063 
5064 
5065  def __repr__(self):
5066  """__repr__(ScoringFunction self) -> std::string"""
5067  return _IMP_kernel.ScoringFunction___repr__(self)
5068 
5069 
5070  @staticmethod
5071  def get_from(o):
5072  return _object_cast_to_ScoringFunction(o)
5073 
5074 
5075  def get_type_name(self):
5076  return self.__class__.__name__
5077  def do_show(self, out):
5078  pass
5079  def get_version_info(self):
5080  if"IMP" == "IMP":
5081  return VersionInfo(self.__module__,
5082  __import__(self.__module__).get_module_version())
5083  else:
5084  return IMP.VersionInfo(self.__module__,
5085  __import__(self.__module__).get_module_version())
5086  @staticmethod
5087  def get_from(o):
5088  return _object_cast_to_ScoringFunction(o)
5089 
5090  __swig_destroy__ = _IMP_kernel.delete_ScoringFunction
5091  __del__ = lambda self: None
5092  def __disown__(self):
5093  self.this.disown()
5094  _IMP_kernel.disown_ScoringFunction(self)
5095  return weakref_proxy(self)
5096 
5097  def do_destroy(self):
5098  """do_destroy(ScoringFunction self)"""
5099  return _IMP_kernel.ScoringFunction_do_destroy(self)
5100 
5101 
5102  def handle_set_has_required_score_states(self, arg0):
5103  """handle_set_has_required_score_states(ScoringFunction self, bool arg0)"""
5104  return _IMP_kernel.ScoringFunction_handle_set_has_required_score_states(self, arg0)
5105 
5106 
5107  def do_get_inputs(self):
5108  """do_get_inputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
5109  return _IMP_kernel.ScoringFunction_do_get_inputs(self)
5110 
5111 
5112  def do_get_interactions(self):
5113  """do_get_interactions(ScoringFunction self) -> IMP::ModelObjectsTemps"""
5114  return _IMP_kernel.ScoringFunction_do_get_interactions(self)
5115 
5116 ScoringFunction_swigregister = _IMP_kernel.ScoringFunction_swigregister
5117 ScoringFunction_swigregister(ScoringFunction)
5118 
5119 
5120 def create_decomposition(*args):
5121  """
5122  create_decomposition(IMP::RestraintsTemp const & rs) -> IMP::Restraints
5123  create_decomposition(ScoringFunction sf) -> IMP::ScoringFunctions
5124  """
5125  return _IMP_kernel.create_decomposition(*args)
5126 class _ScoringFunctionAdaptor(_InputAdaptor):
5127  """Proxy of C++ IMP::ScoringFunctionAdaptor class."""
5128 
5129  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5130  __repr__ = _swig_repr
5131 
5132  def __init__(self, *args):
5133  """
5134  __init__(IMP::ScoringFunctionAdaptor self) -> _ScoringFunctionAdaptor
5135  __init__(IMP::ScoringFunctionAdaptor self, ScoringFunction sf) -> _ScoringFunctionAdaptor
5136  __init__(IMP::ScoringFunctionAdaptor self, IMP::RestraintsTemp const & sf) -> _ScoringFunctionAdaptor
5137  __init__(IMP::ScoringFunctionAdaptor self, IMP::Restraints const & sf) -> _ScoringFunctionAdaptor
5138  __init__(IMP::ScoringFunctionAdaptor self, Restraint sf) -> _ScoringFunctionAdaptor
5139  """
5140  this = _IMP_kernel.new__ScoringFunctionAdaptor(*args)
5141  try:
5142  self.this.append(this)
5143  except __builtin__.Exception:
5144  self.this = this
5145  __swig_destroy__ = _IMP_kernel.delete__ScoringFunctionAdaptor
5146  __del__ = lambda self: None
5147 _ScoringFunctionAdaptor_swigregister = _IMP_kernel._ScoringFunctionAdaptor_swigregister
5148 _ScoringFunctionAdaptor_swigregister(_ScoringFunctionAdaptor)
5149 
5150 
5151 def show_restraint_hierarchy(*args):
5152  """
5153  show_restraint_hierarchy(_ScoringFunctionAdaptor rs, _ostream out)
5154  show_restraint_hierarchy(_ScoringFunctionAdaptor rs)
5155  """
5156  return _IMP_kernel.show_restraint_hierarchy(*args)
5157 class Undecorator(Object):
5158  """Proxy of C++ IMP::Undecorator class."""
5159 
5160  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5161 
5162  def __init__(self, m, name):
5163  """__init__(IMP::Undecorator self, Model m, std::string name) -> Undecorator"""
5164  if self.__class__ == Undecorator:
5165  _self = None
5166  else:
5167  _self = self
5168  this = _IMP_kernel.new_Undecorator(_self, m, name)
5169  try:
5170  self.this.append(this)
5171  except __builtin__.Exception:
5172  self.this = this
5173 
5174  if self.__class__ != Undecorator:
5175  _director_objects.register(self)
5176 
5177 
5178 
5179 
5180  def teardown(self, pi):
5181  """teardown(Undecorator self, ParticleIndex pi)"""
5182  return _IMP_kernel.Undecorator_teardown(self, pi)
5183 
5184 
5185  def __str__(self):
5186  """__str__(Undecorator self) -> std::string"""
5187  return _IMP_kernel.Undecorator___str__(self)
5188 
5189 
5190  def __repr__(self):
5191  """__repr__(Undecorator self) -> std::string"""
5192  return _IMP_kernel.Undecorator___repr__(self)
5193 
5194 
5195  @staticmethod
5196  def get_from(o):
5197  return _object_cast_to_Undecorator(o)
5198 
5199 
5200  def get_type_name(self):
5201  return self.__class__.__name__
5202  def do_show(self, out):
5203  pass
5204  def get_version_info(self):
5205  if"IMP" == "IMP":
5206  return VersionInfo(self.__module__,
5207  __import__(self.__module__).get_module_version())
5208  else:
5209  return IMP.VersionInfo(self.__module__,
5210  __import__(self.__module__).get_module_version())
5211  @staticmethod
5212  def get_from(o):
5213  return _object_cast_to_Undecorator(o)
5214 
5215  __swig_destroy__ = _IMP_kernel.delete_Undecorator
5216  __del__ = lambda self: None
5217  def __disown__(self):
5218  self.this.disown()
5219  _IMP_kernel.disown_Undecorator(self)
5220  return weakref_proxy(self)
5221 
5222  def do_destroy(self):
5223  """do_destroy(Undecorator self)"""
5224  return _IMP_kernel.Undecorator_do_destroy(self)
5225 
5226 Undecorator_swigregister = _IMP_kernel.Undecorator_swigregister
5227 Undecorator_swigregister(Undecorator)
5228 
5229 class Model(Object):
5230  """Proxy of C++ IMP::Model class."""
5231 
5232  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5233 
5234  def __init__(self, *args):
5235  """
5236  __init__(IMP::Model self, std::string name) -> Model
5237  __init__(IMP::Model self) -> Model
5238  """
5239  this = _IMP_kernel.new_Model(*args)
5240  try:
5241  self.this.append(this)
5242  except __builtin__.Exception:
5243  self.this = this
5244 
5245  def clear_particle_caches(self, pi):
5246  """clear_particle_caches(Model self, ParticleIndex pi)"""
5247  return _IMP_kernel.Model_clear_particle_caches(self, pi)
5248 
5249 
5250  def add_particle(self, name):
5251  """add_particle(Model self, std::string name) -> ParticleIndex"""
5252  return _IMP_kernel.Model_add_particle(self, name)
5253 
5254 
5255  def get_particle_name(self, pi):
5256  """get_particle_name(Model self, ParticleIndex pi) -> std::string"""
5257  return _IMP_kernel.Model_get_particle_name(self, pi)
5258 
5259 
5260  def add_undecorator(self, pi, d):
5261  """add_undecorator(Model self, ParticleIndex pi, Undecorator d)"""
5262  return _IMP_kernel.Model_add_undecorator(self, pi, d)
5263 
5264 
5265  def remove_score_state(self, d):
5266  """remove_score_state(Model self, ScoreState d)"""
5267  return _IMP_kernel.Model_remove_score_state(self, d)
5268 
5269 
5270  def remove_score_states(self, d):
5271  """remove_score_states(Model self, IMP::ScoreStates const & d)"""
5272  return _IMP_kernel.Model_remove_score_states(self, d)
5273 
5274 
5275  def set_score_states(self, ps):
5276  """set_score_states(Model self, IMP::ScoreStates const & ps)"""
5277  return _IMP_kernel.Model_set_score_states(self, ps)
5278 
5279 
5280  def set_score_states_order(self, objs):
5281  """set_score_states_order(Model self, IMP::ScoreStates const & objs)"""
5282  return _IMP_kernel.Model_set_score_states_order(self, objs)
5283 
5284 
5285  def add_score_state(self, obj):
5286  """add_score_state(Model self, ScoreState obj) -> unsigned int"""
5287  return _IMP_kernel.Model_add_score_state(self, obj)
5288 
5289 
5290  def add_score_states(self, objs):
5291  """add_score_states(Model self, IMP::ScoreStates const & objs)"""
5292  return _IMP_kernel.Model_add_score_states(self, objs)
5293 
5294 
5295  def clear_score_states(self):
5296  """clear_score_states(Model self)"""
5297  return _IMP_kernel.Model_clear_score_states(self)
5298 
5299 
5300  def get_number_of_score_states(self):
5301  """get_number_of_score_states(Model self) -> unsigned int"""
5302  return _IMP_kernel.Model_get_number_of_score_states(self)
5303 
5304 
5305  def get_has_score_states(self):
5306  """get_has_score_states(Model self) -> bool"""
5307  return _IMP_kernel.Model_get_has_score_states(self)
5308 
5309 
5310  def get_score_state(self, i):
5311  """get_score_state(Model self, unsigned int i) -> ScoreState"""
5312  return _IMP_kernel.Model_get_score_state(self, i)
5313 
5314 
5315  def get_score_states(self):
5316  """get_score_states(Model self) -> IMP::ScoreStates"""
5317  return _IMP_kernel.Model_get_score_states(self)
5318 
5319 
5320  def reserve_score_states(self, sz):
5321  """reserve_score_states(Model self, unsigned int sz)"""
5322  return _IMP_kernel.Model_reserve_score_states(self, sz)
5323 
5324 
5325  def update(self):
5326  """update(Model self)"""
5327  return _IMP_kernel.Model_update(self)
5328 
5329 
5330  def add_attribute(self, *args):
5331  """
5332  add_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5333  add_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
5334  add_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
5335  add_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
5336  add_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
5337  add_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5338  add_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
5339  add_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5340  """
5341  return _IMP_kernel.Model_add_attribute(self, *args)
5342 
5343 
5344  def remove_attribute(self, *args):
5345  """
5346  remove_attribute(Model self, FloatKey attribute_key, ParticleIndex particle)
5347  remove_attribute(Model self, IntKey attribute_key, ParticleIndex particle)
5348  remove_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle)
5349  remove_attribute(Model self, StringKey attribute_key, ParticleIndex particle)
5350  remove_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle)
5351  remove_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle)
5352  remove_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle)
5353  remove_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle)
5354  """
5355  return _IMP_kernel.Model_remove_attribute(self, *args)
5356 
5357 
5358  def get_has_attribute(self, *args):
5359  """
5360  get_has_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> bool
5361  get_has_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> bool
5362  get_has_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle) -> bool
5363  get_has_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> bool
5364  get_has_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> bool
5365  get_has_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> bool
5366  get_has_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> bool
5367  get_has_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> bool
5368  """
5369  return _IMP_kernel.Model_get_has_attribute(self, *args)
5370 
5371 
5372  def set_attribute(self, *args):
5373  """
5374  set_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5375  set_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
5376  set_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
5377  set_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
5378  set_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
5379  set_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5380  set_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
5381  set_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5382  """
5383  return _IMP_kernel.Model_set_attribute(self, *args)
5384 
5385 
5386  def get_attribute(self, *args):
5387  """
5388  get_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> IMP::Float
5389  get_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> IMP::Int
5390  get_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle) -> IMP::Ints
5391  get_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> IMP::String
5392  get_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> IMP::ParticleIndexes
5393  get_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> ParticleIndex
5394  get_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> Object
5395  get_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> Object
5396  """
5397  return _IMP_kernel.Model_get_attribute(self, *args)
5398 
5399 
5400  def add_cache_attribute(self, *args):
5401  """
5402  add_cache_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5403  add_cache_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
5404  add_cache_attribute(Model self, IMP::IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
5405  add_cache_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
5406  add_cache_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
5407  add_cache_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5408  add_cache_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
5409  add_cache_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5410  """
5411  return _IMP_kernel.Model_add_cache_attribute(self, *args)
5412 
5413 
5414  def set_is_optimized(self, arg2, arg3, arg4):
5415  """set_is_optimized(Model self, FloatKey arg2, ParticleIndex arg3, bool arg4)"""
5416  return _IMP_kernel.Model_set_is_optimized(self, arg2, arg3, arg4)
5417 
5418 
5419  def add_to_derivative(self, k, particle, v, da):
5420  """add_to_derivative(Model self, FloatKey k, ParticleIndex particle, double v, DerivativeAccumulator da)"""
5421  return _IMP_kernel.Model_add_to_derivative(self, k, particle, v, da)
5422 
5423 
5424  def get_particle(self, p):
5425  """get_particle(Model self, ParticleIndex p) -> Particle"""
5426  return _IMP_kernel.Model_get_particle(self, p)
5427 
5428 
5429  def get_has_particle(self, p):
5430  """get_has_particle(Model self, ParticleIndex p) -> bool"""
5431  return _IMP_kernel.Model_get_has_particle(self, p)
5432 
5433 
5434  def get_particle_indexes(self):
5435  """get_particle_indexes(Model self) -> IMP::ParticleIndexes"""
5436  return _IMP_kernel.Model_get_particle_indexes(self)
5437 
5438 
5439  def get_model_objects(self):
5440  """get_model_objects(Model self) -> IMP::ModelObjectsTemp"""
5441  return _IMP_kernel.Model_get_model_objects(self)
5442 
5443 
5444  def remove_particle(self, pi):
5445  """remove_particle(Model self, ParticleIndex pi)"""
5446  return _IMP_kernel.Model_remove_particle(self, pi)
5447 
5448 
5449  def add_data(self, mk, o):
5450  """add_data(Model self, ModelKey mk, Object o)"""
5451  return _IMP_kernel.Model_add_data(self, mk, o)
5452 
5453 
5454  def get_data(self, mk):
5455  """get_data(Model self, ModelKey mk) -> Object"""
5456  return _IMP_kernel.Model_get_data(self, mk)
5457 
5458 
5459  def remove_data(self, mk):
5460  """remove_data(Model self, ModelKey mk)"""
5461  return _IMP_kernel.Model_remove_data(self, mk)
5462 
5463 
5464  def get_has_data(self, mk):
5465  """get_has_data(Model self, ModelKey mk) -> bool"""
5466  return _IMP_kernel.Model_get_has_data(self, mk)
5467 
5468 
5469  def get_version_info(self):
5470  """get_version_info(Model self) -> VersionInfo"""
5471  return _IMP_kernel.Model_get_version_info(self)
5472 
5473 
5474  def do_destroy(self):
5475  """do_destroy(Model self)"""
5476  return _IMP_kernel.Model_do_destroy(self)
5477 
5478 
5479  def __str__(self):
5480  """__str__(Model self) -> std::string"""
5481  return _IMP_kernel.Model___str__(self)
5482 
5483 
5484  def __repr__(self):
5485  """__repr__(Model self) -> std::string"""
5486  return _IMP_kernel.Model___repr__(self)
5487 
5488 
5489  @staticmethod
5490  def get_from(o):
5491  return _object_cast_to_Model(o)
5492 
5493 
5494  def _get_ints_numpy(self, k):
5495  return _get_ints_numpy(self, k, self)
5496 
5497  def _get_floats_numpy(self, k):
5498  return _get_floats_numpy(self, k, self)
5499 
5500  def _get_derivatives_numpy(self, k):
5501  return _get_derivatives_numpy(self, k, self)
5502 
5503  def _get_spheres_numpy(self):
5504  return _get_spheres_numpy(self, self)
5505 
5506  def _get_sphere_derivatives_numpy(self):
5507  return _get_sphere_derivatives_numpy(self, self)
5508 
5509 Model_swigregister = _IMP_kernel.Model_swigregister
5510 Model_swigregister(Model)
5511 
5512 class Decorator(_Value):
5513  """Proxy of C++ IMP::Decorator class."""
5514 
5515  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5516  __repr__ = _swig_repr
5517 
5518  def __init__(self, p):
5519  """__init__(IMP::Decorator self, _ParticleAdaptor p) -> Decorator"""
5520  this = _IMP_kernel.new_Decorator(p)
5521  try:
5522  self.this.append(this)
5523  except __builtin__.Exception:
5524  self.this = this
5525 
5526  def __ne__(self, o):
5527  """__ne__(Decorator self, Object o) -> bool"""
5528  return _IMP_kernel.Decorator___ne__(self, o)
5529 
5530 
5531  def __lt__(self, o):
5532  """__lt__(Decorator self, Object o) -> bool"""
5533  return _IMP_kernel.Decorator___lt__(self, o)
5534 
5535 
5536  def __gt__(self, o):
5537  """__gt__(Decorator self, Object o) -> bool"""
5538  return _IMP_kernel.Decorator___gt__(self, o)
5539 
5540 
5541  def __ge__(self, o):
5542  """__ge__(Decorator self, Object o) -> bool"""
5543  return _IMP_kernel.Decorator___ge__(self, o)
5544 
5545 
5546  def __le__(self, o):
5547  """__le__(Decorator self, Object o) -> bool"""
5548  return _IMP_kernel.Decorator___le__(self, o)
5549 
5550 
5551  def get_particle(self):
5552  """get_particle(Decorator self) -> Particle"""
5553  return _IMP_kernel.Decorator_get_particle(self)
5554 
5555 
5556  def get_particle_index(self):
5557  """get_particle_index(Decorator self) -> ParticleIndex"""
5558  return _IMP_kernel.Decorator_get_particle_index(self)
5559 
5560 
5561  def get_model(self):
5562  """get_model(Decorator self) -> Model"""
5563  return _IMP_kernel.Decorator_get_model(self)
5564 
5565 
5566  def get_is_valid(self):
5567  """get_is_valid(Decorator self) -> bool"""
5568  return _IMP_kernel.Decorator_get_is_valid(self)
5569 
5570 
5571  def __hash__(self):
5572  """__hash__(Decorator self) -> std::size_t"""
5573  return _IMP_kernel.Decorator___hash__(self)
5574 
5575 
5576  def __eq__(self, *args):
5577  """
5578  __eq__(Decorator self, Object o) -> bool
5579  __eq__(Decorator self, Decorator o) -> bool
5580  __eq__(Decorator self, Particle o) -> bool
5581  """
5582  return _IMP_kernel.Decorator___eq__(self, *args)
5583 
5584 
5585  def __bool__(self):
5586  """__bool__(Decorator self) -> bool"""
5587  return _IMP_kernel.Decorator___bool__(self)
5588 
5589 
5590  __nonzero__ = __bool__
5591 
5592  __swig_destroy__ = _IMP_kernel.delete_Decorator
5593  __del__ = lambda self: None
5594 Decorator_swigregister = _IMP_kernel.Decorator_swigregister
5595 Decorator_swigregister(Decorator)
5596 
5597 
5598 def check_particle(m, pi):
5599  """check_particle(Model m, ParticleIndex pi)"""
5600  return _IMP_kernel.check_particle(m, pi)
5601 class UnaryFunction(Object):
5602  """Proxy of C++ IMP::UnaryFunction class."""
5603 
5604  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5605 
5606  def __init__(self, *args):
5607  """
5608  __init__(IMP::UnaryFunction self, std::string name) -> UnaryFunction
5609  __init__(IMP::UnaryFunction self) -> UnaryFunction
5610  """
5611  if self.__class__ == UnaryFunction:
5612  _self = None
5613  else:
5614  _self = self
5615  this = _IMP_kernel.new_UnaryFunction(_self, *args)
5616  try:
5617  self.this.append(this)
5618  except __builtin__.Exception:
5619  self.this = this
5620 
5621  if self.__class__ != UnaryFunction:
5622  _director_objects.register(self)
5623 
5624 
5625 
5626 
5627  def evaluate(self, feature):
5628  """evaluate(UnaryFunction self, double feature) -> double"""
5629  return _IMP_kernel.UnaryFunction_evaluate(self, feature)
5630 
5631 
5632  def evaluate_with_derivative(self, feature):
5633  """evaluate_with_derivative(UnaryFunction self, double feature) -> IMP::DerivativePair"""
5634  return _IMP_kernel.UnaryFunction_evaluate_with_derivative(self, feature)
5635 
5636  __swig_destroy__ = _IMP_kernel.delete_UnaryFunction
5637  __del__ = lambda self: None
5638 
5639  def __str__(self):
5640  """__str__(UnaryFunction self) -> std::string"""
5641  return _IMP_kernel.UnaryFunction___str__(self)
5642 
5643 
5644  def __repr__(self):
5645  """__repr__(UnaryFunction self) -> std::string"""
5646  return _IMP_kernel.UnaryFunction___repr__(self)
5647 
5648 
5649  @staticmethod
5650  def get_from(o):
5651  return _object_cast_to_UnaryFunction(o)
5652 
5653 
5654  def get_type_name(self):
5655  return self.__class__.__name__
5656  def do_show(self, out):
5657  pass
5658  def get_version_info(self):
5659  if"IMP" == "IMP":
5660  return VersionInfo(self.__module__,
5661  __import__(self.__module__).get_module_version())
5662  else:
5663  return IMP.VersionInfo(self.__module__,
5664  __import__(self.__module__).get_module_version())
5665  @staticmethod
5666  def get_from(o):
5667  return _object_cast_to_UnaryFunction(o)
5668 
5669  def __disown__(self):
5670  self.this.disown()
5671  _IMP_kernel.disown_UnaryFunction(self)
5672  return weakref_proxy(self)
5673 
5674  def do_destroy(self):
5675  """do_destroy(UnaryFunction self)"""
5676  return _IMP_kernel.UnaryFunction_do_destroy(self)
5677 
5678 UnaryFunction_swigregister = _IMP_kernel.UnaryFunction_swigregister
5679 UnaryFunction_swigregister(UnaryFunction)
5680 
5681 class OptimizerState(ModelObject):
5682  """Proxy of C++ IMP::OptimizerState class."""
5683 
5684  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5685 
5686  def __init__(self, m, name):
5687  """__init__(IMP::OptimizerState self, Model m, std::string name) -> OptimizerState"""
5688  if self.__class__ == OptimizerState:
5689  _self = None
5690  else:
5691  _self = self
5692  this = _IMP_kernel.new_OptimizerState(_self, m, name)
5693  try:
5694  self.this.append(this)
5695  except __builtin__.Exception:
5696  self.this = this
5697 
5698  if self.__class__ != OptimizerState:
5699  _director_objects.register(self)
5700 
5701 
5702 
5703 
5704  def update(self):
5705  """update(OptimizerState self)"""
5706  return _IMP_kernel.OptimizerState_update(self)
5707 
5708 
5709  def set_is_optimizing(self, arg0):
5710  """set_is_optimizing(OptimizerState self, bool arg0)"""
5711  return _IMP_kernel.OptimizerState_set_is_optimizing(self, arg0)
5712 
5713 
5714  def get_optimizer(self):
5715  """get_optimizer(OptimizerState self) -> Optimizer"""
5716  return _IMP_kernel.OptimizerState_get_optimizer(self)
5717 
5718 
5719  def set_period(self, p):
5720  """set_period(OptimizerState self, unsigned int p)"""
5721  return _IMP_kernel.OptimizerState_set_period(self, p)
5722 
5723 
5724  def get_period(self):
5725  """get_period(OptimizerState self) -> unsigned int"""
5726  return _IMP_kernel.OptimizerState_get_period(self)
5727 
5728 
5729  def reset(self):
5730  """reset(OptimizerState self)"""
5731  return _IMP_kernel.OptimizerState_reset(self)
5732 
5733 
5734  def update_always(self):
5735  """update_always(OptimizerState self)"""
5736  return _IMP_kernel.OptimizerState_update_always(self)
5737 
5738 
5739  def get_number_of_updates(self):
5740  """get_number_of_updates(OptimizerState self) -> unsigned int"""
5741  return _IMP_kernel.OptimizerState_get_number_of_updates(self)
5742 
5743 
5744  def set_number_of_updates(self, n):
5745  """set_number_of_updates(OptimizerState self, unsigned int n)"""
5746  return _IMP_kernel.OptimizerState_set_number_of_updates(self, n)
5747 
5748  __swig_destroy__ = _IMP_kernel.delete_OptimizerState
5749  __del__ = lambda self: None
5750 
5751  def do_update(self, arg0):
5752  """do_update(OptimizerState self, unsigned int arg0)"""
5753  return _IMP_kernel.OptimizerState_do_update(self, arg0)
5754 
5755 
5756  def do_set_is_optimizing(self, arg0):
5757  """do_set_is_optimizing(OptimizerState self, bool arg0)"""
5758  return _IMP_kernel.OptimizerState_do_set_is_optimizing(self, arg0)
5759 
5760 
5761  def do_get_inputs(self):
5762  """do_get_inputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
5763  return _IMP_kernel.OptimizerState_do_get_inputs(self)
5764 
5765 
5766  def do_get_outputs(self):
5767  """do_get_outputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
5768  return _IMP_kernel.OptimizerState_do_get_outputs(self)
5769 
5770 
5771  def __str__(self):
5772  """__str__(OptimizerState self) -> std::string"""
5773  return _IMP_kernel.OptimizerState___str__(self)
5774 
5775 
5776  def __repr__(self):
5777  """__repr__(OptimizerState self) -> std::string"""
5778  return _IMP_kernel.OptimizerState___repr__(self)
5779 
5780 
5781  @staticmethod
5782  def get_from(o):
5783  return _object_cast_to_OptimizerState(o)
5784 
5785 
5786  def get_type_name(self):
5787  return self.__class__.__name__
5788  def do_show(self, out):
5789  pass
5790  def get_version_info(self):
5791  if"IMP" == "IMP":
5792  return VersionInfo(self.__module__,
5793  __import__(self.__module__).get_module_version())
5794  else:
5795  return IMP.VersionInfo(self.__module__,
5796  __import__(self.__module__).get_module_version())
5797  @staticmethod
5798  def get_from(o):
5799  return _object_cast_to_OptimizerState(o)
5800 
5801  def __disown__(self):
5802  self.this.disown()
5803  _IMP_kernel.disown_OptimizerState(self)
5804  return weakref_proxy(self)
5805 
5806  def do_destroy(self):
5807  """do_destroy(OptimizerState self)"""
5808  return _IMP_kernel.OptimizerState_do_destroy(self)
5809 
5810 
5811  def handle_set_has_required_score_states(self, arg0):
5812  """handle_set_has_required_score_states(OptimizerState self, bool arg0)"""
5813  return _IMP_kernel.OptimizerState_handle_set_has_required_score_states(self, arg0)
5814 
5815 
5816  def do_get_interactions(self):
5817  """do_get_interactions(OptimizerState self) -> IMP::ModelObjectsTemps"""
5818  return _IMP_kernel.OptimizerState_do_get_interactions(self)
5819 
5820 OptimizerState_swigregister = _IMP_kernel.OptimizerState_swigregister
5821 OptimizerState_swigregister(OptimizerState)
5822 
5823 class Refiner(_ParticleInputs, Object):
5824  """Proxy of C++ IMP::Refiner class."""
5825 
5826  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5827 
5828  def __init__(self, *args):
5829  """
5830  __init__(IMP::Refiner self, std::string name, bool is_by_ref=False) -> Refiner
5831  __init__(IMP::Refiner self, std::string name) -> Refiner
5832  __init__(IMP::Refiner self) -> Refiner
5833  """
5834  if self.__class__ == Refiner:
5835  _self = None
5836  else:
5837  _self = self
5838  this = _IMP_kernel.new_Refiner(_self, *args)
5839  try:
5840  self.this.append(this)
5841  except __builtin__.Exception:
5842  self.this = this
5843 
5844  if self.__class__ != Refiner:
5845  _director_objects.register(self)
5846 
5847 
5848 
5849 
5850  def get_can_refine(self, arg0):
5851  """get_can_refine(Refiner self, Particle arg0) -> bool"""
5852  return _IMP_kernel.Refiner_get_can_refine(self, arg0)
5853 
5854 
5855  def get_refined_indexes(self, m, pi):
5856  """get_refined_indexes(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes"""
5857  return _IMP_kernel.Refiner_get_refined_indexes(self, m, pi)
5858 
5859 
5860  def get_refined_indexes_by_ref(self, m, pi):
5861  """get_refined_indexes_by_ref(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes const &"""
5862  return _IMP_kernel.Refiner_get_refined_indexes_by_ref(self, m, pi)
5863 
5864 
5865  def get_is_by_ref_supported(self):
5866  """get_is_by_ref_supported(Refiner self) -> bool"""
5867  return _IMP_kernel.Refiner_get_is_by_ref_supported(self)
5868 
5869 
5870  def get_refined(self, *args):
5871  """
5872  get_refined(Refiner self, Particle a) -> IMP::ParticlesTemp const
5873  get_refined(Refiner self, Particle a, unsigned int i) -> Particle
5874  """
5875  return _IMP_kernel.Refiner_get_refined(self, *args)
5876 
5877 
5878  def get_number_of_refined(self, a):
5879  """get_number_of_refined(Refiner self, Particle a) -> unsigned int"""
5880  return _IMP_kernel.Refiner_get_number_of_refined(self, a)
5881 
5882 
5883  def __str__(self):
5884  """__str__(Refiner self) -> std::string"""
5885  return _IMP_kernel.Refiner___str__(self)
5886 
5887 
5888  def __repr__(self):
5889  """__repr__(Refiner self) -> std::string"""
5890  return _IMP_kernel.Refiner___repr__(self)
5891 
5892 
5893  @staticmethod
5894  def get_from(o):
5895  return _object_cast_to_Refiner(o)
5896 
5897 
5898  def get_type_name(self):
5899  return self.__class__.__name__
5900  def do_show(self, out):
5901  pass
5902  def get_version_info(self):
5903  if"IMP" == "IMP":
5904  return VersionInfo(self.__module__,
5905  __import__(self.__module__).get_module_version())
5906  else:
5907  return IMP.VersionInfo(self.__module__,
5908  __import__(self.__module__).get_module_version())
5909  @staticmethod
5910  def get_from(o):
5911  return _object_cast_to_Refiner(o)
5912 
5913  __swig_destroy__ = _IMP_kernel.delete_Refiner
5914  __del__ = lambda self: None
5915  def __disown__(self):
5916  self.this.disown()
5917  _IMP_kernel.disown_Refiner(self)
5918  return weakref_proxy(self)
5919 
5920  def do_get_inputs(self, m, pis):
5921  """do_get_inputs(Refiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5922  return _IMP_kernel.Refiner_do_get_inputs(self, m, pis)
5923 
5924 
5925  def do_destroy(self):
5926  """do_destroy(Refiner self)"""
5927  return _IMP_kernel.Refiner_do_destroy(self)
5928 
5929 Refiner_swigregister = _IMP_kernel.Refiner_swigregister
5930 Refiner_swigregister(Refiner)
5931 
5932 class Optimizer(ModelObject):
5933  """Proxy of C++ IMP::Optimizer class."""
5934 
5935  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5936 
5937  def set_is_optimizing_states(self, tf):
5938  """set_is_optimizing_states(Optimizer self, bool tf)"""
5939  return _IMP_kernel.Optimizer_set_is_optimizing_states(self, tf)
5940 
5941 
5942  def get_optimizer_state_inputs(self):
5943  """get_optimizer_state_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5944  return _IMP_kernel.Optimizer_get_optimizer_state_inputs(self)
5945 
5946 
5947  def do_get_inputs(self):
5948  """do_get_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5949  return _IMP_kernel.Optimizer_do_get_inputs(self)
5950 
5951 
5952  def do_get_outputs(self):
5953  """do_get_outputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5954  return _IMP_kernel.Optimizer_do_get_outputs(self)
5955 
5956 
5957  def __init__(self, *args):
5958  """
5959  __init__(IMP::Optimizer self, Model m, std::string name) -> Optimizer
5960  __init__(IMP::Optimizer self, Model m) -> Optimizer
5961  """
5962  if self.__class__ == Optimizer:
5963  _self = None
5964  else:
5965  _self = self
5966  this = _IMP_kernel.new_Optimizer(_self, *args)
5967  try:
5968  self.this.append(this)
5969  except __builtin__.Exception:
5970  self.this = this
5971 
5972  if self.__class__ != Optimizer:
5973  _director_objects.register(self)
5974 
5975 
5976 
5977 
5978  def optimize(self, max_steps):
5979  """optimize(Optimizer self, unsigned int max_steps) -> double"""
5980  return _IMP_kernel.Optimizer_optimize(self, max_steps)
5981 
5982 
5983  def set_stop_on_good_score(self, tf):
5984  """set_stop_on_good_score(Optimizer self, bool tf)"""
5985  return _IMP_kernel.Optimizer_set_stop_on_good_score(self, tf)
5986 
5987 
5988  def get_stop_on_good_score(self):
5989  """get_stop_on_good_score(Optimizer self) -> bool"""
5990  return _IMP_kernel.Optimizer_get_stop_on_good_score(self)
5991 
5992 
5993  def get_last_score(self):
5994  """get_last_score(Optimizer self) -> double"""
5995  return _IMP_kernel.Optimizer_get_last_score(self)
5996 
5997 
5998  def get_scoring_function(self):
5999  """get_scoring_function(Optimizer self) -> ScoringFunction"""
6000  return _IMP_kernel.Optimizer_get_scoring_function(self)
6001 
6002 
6003  def remove_optimizer_state(self, d):
6004  """remove_optimizer_state(Optimizer self, OptimizerState d)"""
6005  return _IMP_kernel.Optimizer_remove_optimizer_state(self, d)
6006 
6007 
6008  def remove_optimizer_states(self, d):
6009  """remove_optimizer_states(Optimizer self, IMP::OptimizerStates const & d)"""
6010  return _IMP_kernel.Optimizer_remove_optimizer_states(self, d)
6011 
6012 
6013  def set_optimizer_states(self, ps):
6014  """set_optimizer_states(Optimizer self, IMP::OptimizerStates const & ps)"""
6015  return _IMP_kernel.Optimizer_set_optimizer_states(self, ps)
6016 
6017 
6018  def set_optimizer_states_order(self, objs):
6019  """set_optimizer_states_order(Optimizer self, IMP::OptimizerStates const & objs)"""
6020  return _IMP_kernel.Optimizer_set_optimizer_states_order(self, objs)
6021 
6022 
6023  def add_optimizer_state(self, obj):
6024  """add_optimizer_state(Optimizer self, OptimizerState obj) -> unsigned int"""
6025  return _IMP_kernel.Optimizer_add_optimizer_state(self, obj)
6026 
6027 
6028  def add_optimizer_states(self, objs):
6029  """add_optimizer_states(Optimizer self, IMP::OptimizerStates const & objs)"""
6030  return _IMP_kernel.Optimizer_add_optimizer_states(self, objs)
6031 
6032 
6033  def clear_optimizer_states(self):
6034  """clear_optimizer_states(Optimizer self)"""
6035  return _IMP_kernel.Optimizer_clear_optimizer_states(self)
6036 
6037 
6038  def get_number_of_optimizer_states(self):
6039  """get_number_of_optimizer_states(Optimizer self) -> unsigned int"""
6040  return _IMP_kernel.Optimizer_get_number_of_optimizer_states(self)
6041 
6042 
6043  def get_has_optimizer_states(self):
6044  """get_has_optimizer_states(Optimizer self) -> bool"""
6045  return _IMP_kernel.Optimizer_get_has_optimizer_states(self)
6046 
6047 
6048  def get_optimizer_state(self, i):
6049  """get_optimizer_state(Optimizer self, unsigned int i) -> OptimizerState"""
6050  return _IMP_kernel.Optimizer_get_optimizer_state(self, i)
6051 
6052 
6053  def get_optimizer_states(self):
6054  """get_optimizer_states(Optimizer self) -> IMP::OptimizerStates"""
6055  return _IMP_kernel.Optimizer_get_optimizer_states(self)
6056 
6057 
6058  def reserve_optimizer_states(self, sz):
6059  """reserve_optimizer_states(Optimizer self, unsigned int sz)"""
6060  return _IMP_kernel.Optimizer_reserve_optimizer_states(self, sz)
6061 
6062 
6063  def set_scoring_function(self, sf):
6064  """set_scoring_function(Optimizer self, _ScoringFunctionAdaptor sf)"""
6065  return _IMP_kernel.Optimizer_set_scoring_function(self, sf)
6066 
6067  __swig_destroy__ = _IMP_kernel.delete_Optimizer
6068  def __del__(self):
6069  """__del__(IMP::Optimizer self)"""
6070 
6071  _director_objects.cleanup()
6072 
6073 
6074  pass
6075 
6076 
6077  def do_optimize(self, ns):
6078  """do_optimize(Optimizer self, unsigned int ns) -> double"""
6079  return _IMP_kernel.Optimizer_do_optimize(self, ns)
6080 
6081 
6082  def update_states(self):
6083  """update_states(Optimizer self)"""
6084  return _IMP_kernel.Optimizer_update_states(self)
6085 
6086 
6087  def __str__(self):
6088  """__str__(Optimizer self) -> std::string"""
6089  return _IMP_kernel.Optimizer___str__(self)
6090 
6091 
6092  def __repr__(self):
6093  """__repr__(Optimizer self) -> std::string"""
6094  return _IMP_kernel.Optimizer___repr__(self)
6095 
6096 
6097  @staticmethod
6098  def get_from(o):
6099  return _object_cast_to_Optimizer(o)
6100 
6101 
6102  def get_type_name(self):
6103  return self.__class__.__name__
6104  def do_show(self, out):
6105  pass
6106  def get_version_info(self):
6107  if"IMP" == "IMP":
6108  return VersionInfo(self.__module__,
6109  __import__(self.__module__).get_module_version())
6110  else:
6111  return IMP.VersionInfo(self.__module__,
6112  __import__(self.__module__).get_module_version())
6113  @staticmethod
6114  def get_from(o):
6115  return _object_cast_to_Optimizer(o)
6116 
6117  def __disown__(self):
6118  self.this.disown()
6119  _IMP_kernel.disown_Optimizer(self)
6120  return weakref_proxy(self)
6121 
6122  def do_destroy(self):
6123  """do_destroy(Optimizer self)"""
6124  return _IMP_kernel.Optimizer_do_destroy(self)
6125 
6126 
6127  def handle_set_has_required_score_states(self, arg0):
6128  """handle_set_has_required_score_states(Optimizer self, bool arg0)"""
6129  return _IMP_kernel.Optimizer_handle_set_has_required_score_states(self, arg0)
6130 
6131 
6132  def do_get_interactions(self):
6133  """do_get_interactions(Optimizer self) -> IMP::ModelObjectsTemps"""
6134  return _IMP_kernel.Optimizer_do_get_interactions(self)
6135 
6136 Optimizer_swigregister = _IMP_kernel.Optimizer_swigregister
6137 Optimizer_swigregister(Optimizer)
6138 
6139 class AttributeOptimizer(Optimizer):
6140  """Proxy of C++ IMP::AttributeOptimizer class."""
6141 
6142  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6143 
6144  def __init__(self, *args):
6145  """
6146  __init__(IMP::AttributeOptimizer self, Model m, std::string name) -> AttributeOptimizer
6147  __init__(IMP::AttributeOptimizer self, Model m) -> AttributeOptimizer
6148  """
6149  if self.__class__ == AttributeOptimizer:
6150  _self = None
6151  else:
6152  _self = self
6153  this = _IMP_kernel.new_AttributeOptimizer(_self, *args)
6154  try:
6155  self.this.append(this)
6156  except __builtin__.Exception:
6157  self.this = this
6158 
6159  if self.__class__ != AttributeOptimizer:
6160  _director_objects.register(self)
6161 
6162 
6163 
6164 
6165  def get_optimized_attributes(self):
6166  """get_optimized_attributes(AttributeOptimizer self) -> IMP::FloatIndexes"""
6167  return _IMP_kernel.AttributeOptimizer_get_optimized_attributes(self)
6168 
6169 
6170  def set_value(self, fi, v):
6171  """set_value(AttributeOptimizer self, FloatIndex fi, double v)"""
6172  return _IMP_kernel.AttributeOptimizer_set_value(self, fi, v)
6173 
6174 
6175  def get_value(self, fi):
6176  """get_value(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
6177  return _IMP_kernel.AttributeOptimizer_get_value(self, fi)
6178 
6179 
6180  def get_derivative(self, fi):
6181  """get_derivative(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
6182  return _IMP_kernel.AttributeOptimizer_get_derivative(self, fi)
6183 
6184 
6185  def get_width(self, k):
6186  """get_width(AttributeOptimizer self, FloatKey k) -> double"""
6187  return _IMP_kernel.AttributeOptimizer_get_width(self, k)
6188 
6189 
6190  def set_scaled_value(self, fi, v):
6191  """set_scaled_value(AttributeOptimizer self, FloatIndex fi, IMP::Float v)"""
6192  return _IMP_kernel.AttributeOptimizer_set_scaled_value(self, fi, v)
6193 
6194 
6195  def get_scaled_value(self, fi):
6196  """get_scaled_value(AttributeOptimizer self, FloatIndex fi) -> double"""
6197  return _IMP_kernel.AttributeOptimizer_get_scaled_value(self, fi)
6198 
6199 
6200  def get_scaled_derivative(self, fi):
6201  """get_scaled_derivative(AttributeOptimizer self, FloatIndex fi) -> double"""
6202  return _IMP_kernel.AttributeOptimizer_get_scaled_derivative(self, fi)
6203 
6204 
6205  def clear_range_cache(self):
6206  """clear_range_cache(AttributeOptimizer self)"""
6207  return _IMP_kernel.AttributeOptimizer_clear_range_cache(self)
6208 
6209 
6210  def __str__(self):
6211  """__str__(AttributeOptimizer self) -> std::string"""
6212  return _IMP_kernel.AttributeOptimizer___str__(self)
6213 
6214 
6215  def __repr__(self):
6216  """__repr__(AttributeOptimizer self) -> std::string"""
6217  return _IMP_kernel.AttributeOptimizer___repr__(self)
6218 
6219 
6220  @staticmethod
6221  def get_from(o):
6222  return _object_cast_to_AttributeOptimizer(o)
6223 
6224 
6225  def get_type_name(self):
6226  return self.__class__.__name__
6227  def do_show(self, out):
6228  pass
6229  def get_version_info(self):
6230  if"IMP" == "IMP":
6231  return VersionInfo(self.__module__,
6232  __import__(self.__module__).get_module_version())
6233  else:
6234  return IMP.VersionInfo(self.__module__,
6235  __import__(self.__module__).get_module_version())
6236  @staticmethod
6237  def get_from(o):
6238  return _object_cast_to_AttributeOptimizer(o)
6239 
6240  __swig_destroy__ = _IMP_kernel.delete_AttributeOptimizer
6241  __del__ = lambda self: None
6242  def __disown__(self):
6243  self.this.disown()
6244  _IMP_kernel.disown_AttributeOptimizer(self)
6245  return weakref_proxy(self)
6246 
6247  def do_destroy(self):
6248  """do_destroy(AttributeOptimizer self)"""
6249  return _IMP_kernel.AttributeOptimizer_do_destroy(self)
6250 
6251 
6252  def handle_set_has_required_score_states(self, arg0):
6253  """handle_set_has_required_score_states(AttributeOptimizer self, bool arg0)"""
6254  return _IMP_kernel.AttributeOptimizer_handle_set_has_required_score_states(self, arg0)
6255 
6256 
6257  def do_get_inputs(self):
6258  """do_get_inputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
6259  return _IMP_kernel.AttributeOptimizer_do_get_inputs(self)
6260 
6261 
6262  def do_get_outputs(self):
6263  """do_get_outputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
6264  return _IMP_kernel.AttributeOptimizer_do_get_outputs(self)
6265 
6266 
6267  def do_get_interactions(self):
6268  """do_get_interactions(AttributeOptimizer self) -> IMP::ModelObjectsTemps"""
6269  return _IMP_kernel.AttributeOptimizer_do_get_interactions(self)
6270 
6271 
6272  def do_optimize(self, ns):
6273  """do_optimize(AttributeOptimizer self, unsigned int ns) -> double"""
6274  return _IMP_kernel.AttributeOptimizer_do_optimize(self, ns)
6275 
6276 AttributeOptimizer_swigregister = _IMP_kernel.AttributeOptimizer_swigregister
6277 AttributeOptimizer_swigregister(AttributeOptimizer)
6278 
6279 class ConfigurationSet(Object):
6280  """Proxy of C++ IMP::ConfigurationSet class."""
6281 
6282  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6283 
6284  def __init__(self, *args):
6285  """
6286  __init__(IMP::ConfigurationSet self, Model m, std::string name) -> ConfigurationSet
6287  __init__(IMP::ConfigurationSet self, Model m) -> ConfigurationSet
6288  """
6289  this = _IMP_kernel.new_ConfigurationSet(*args)
6290  try:
6291  self.this.append(this)
6292  except __builtin__.Exception:
6293  self.this = this
6294 
6295  def save_configuration(self):
6296  """save_configuration(ConfigurationSet self)"""
6297  return _IMP_kernel.ConfigurationSet_save_configuration(self)
6298 
6299 
6300  def get_number_of_configurations(self):
6301  """get_number_of_configurations(ConfigurationSet self) -> unsigned int"""
6302  return _IMP_kernel.ConfigurationSet_get_number_of_configurations(self)
6303 
6304 
6305  def load_configuration(self, i):
6306  """load_configuration(ConfigurationSet self, int i)"""
6307  return _IMP_kernel.ConfigurationSet_load_configuration(self, i)
6308 
6309 
6310  def remove_configuration(self, i):
6311  """remove_configuration(ConfigurationSet self, unsigned int i)"""
6312  return _IMP_kernel.ConfigurationSet_remove_configuration(self, i)
6313 
6314 
6315  def get_model(self):
6316  """get_model(ConfigurationSet self) -> Model"""
6317  return _IMP_kernel.ConfigurationSet_get_model(self)
6318 
6319 
6320  def get_version_info(self):
6321  """get_version_info(ConfigurationSet self) -> VersionInfo"""
6322  return _IMP_kernel.ConfigurationSet_get_version_info(self)
6323 
6324 
6325  def __str__(self):
6326  """__str__(ConfigurationSet self) -> std::string"""
6327  return _IMP_kernel.ConfigurationSet___str__(self)
6328 
6329 
6330  def __repr__(self):
6331  """__repr__(ConfigurationSet self) -> std::string"""
6332  return _IMP_kernel.ConfigurationSet___repr__(self)
6333 
6334 
6335  @staticmethod
6336  def get_from(o):
6337  return _object_cast_to_ConfigurationSet(o)
6338 
6339 ConfigurationSet_swigregister = _IMP_kernel.ConfigurationSet_swigregister
6340 ConfigurationSet_swigregister(ConfigurationSet)
6341 
6342 class SaveToConfigurationSetOptimizerState(OptimizerState):
6343  """Proxy of C++ IMP::SaveToConfigurationSetOptimizerState class."""
6344 
6345  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6346 
6347  def __init__(self, cs):
6348  """__init__(IMP::SaveToConfigurationSetOptimizerState self, ConfigurationSet cs) -> SaveToConfigurationSetOptimizerState"""
6349  this = _IMP_kernel.new_SaveToConfigurationSetOptimizerState(cs)
6350  try:
6351  self.this.append(this)
6352  except __builtin__.Exception:
6353  self.this = this
6354 
6355  def get_version_info(self):
6356  """get_version_info(SaveToConfigurationSetOptimizerState self) -> VersionInfo"""
6357  return _IMP_kernel.SaveToConfigurationSetOptimizerState_get_version_info(self)
6358 
6359 
6360  def __str__(self):
6361  """__str__(SaveToConfigurationSetOptimizerState self) -> std::string"""
6362  return _IMP_kernel.SaveToConfigurationSetOptimizerState___str__(self)
6363 
6364 
6365  def __repr__(self):
6366  """__repr__(SaveToConfigurationSetOptimizerState self) -> std::string"""
6367  return _IMP_kernel.SaveToConfigurationSetOptimizerState___repr__(self)
6368 
6369 
6370  @staticmethod
6371  def get_from(o):
6372  return _object_cast_to_SaveToConfigurationSetOptimizerState(o)
6373 
6374 SaveToConfigurationSetOptimizerState_swigregister = _IMP_kernel.SaveToConfigurationSetOptimizerState_swigregister
6375 SaveToConfigurationSetOptimizerState_swigregister(SaveToConfigurationSetOptimizerState)
6376 
6377 class Configuration(Object):
6378  """Proxy of C++ IMP::Configuration class."""
6379 
6380  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6381 
6382  def __init__(self, *args):
6383  """
6384  __init__(IMP::Configuration self, Model m, std::string name) -> Configuration
6385  __init__(IMP::Configuration self, Model m) -> Configuration
6386  __init__(IMP::Configuration self, Model m, Configuration base, std::string name) -> Configuration
6387  __init__(IMP::Configuration self, Model m, Configuration base) -> Configuration
6388  """
6389  this = _IMP_kernel.new_Configuration(*args)
6390  try:
6391  self.this.append(this)
6392  except __builtin__.Exception:
6393  self.this = this
6394 
6395  def load_configuration(self):
6396  """load_configuration(Configuration self)"""
6397  return _IMP_kernel.Configuration_load_configuration(self)
6398 
6399 
6400  def swap_configuration(self):
6401  """swap_configuration(Configuration self)"""
6402  return _IMP_kernel.Configuration_swap_configuration(self)
6403 
6404 
6405  def get_version_info(self):
6406  """get_version_info(Configuration self) -> VersionInfo"""
6407  return _IMP_kernel.Configuration_get_version_info(self)
6408 
6409 
6410  def __str__(self):
6411  """__str__(Configuration self) -> std::string"""
6412  return _IMP_kernel.Configuration___str__(self)
6413 
6414 
6415  def __repr__(self):
6416  """__repr__(Configuration self) -> std::string"""
6417  return _IMP_kernel.Configuration___repr__(self)
6418 
6419 
6420  @staticmethod
6421  def get_from(o):
6422  return _object_cast_to_Configuration(o)
6423 
6424 Configuration_swigregister = _IMP_kernel.Configuration_swigregister
6425 Configuration_swigregister(Configuration)
6426 
6427 class Sampler(Object):
6428  """Proxy of C++ IMP::Sampler class."""
6429 
6430  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6431 
6432  def __init__(self, *args):
6433  """
6434  __init__(IMP::Sampler self, Model m, std::string name) -> Sampler
6435  __init__(IMP::Sampler self, Model m) -> Sampler
6436  """
6437  if self.__class__ == Sampler:
6438  _self = None
6439  else:
6440  _self = self
6441  this = _IMP_kernel.new_Sampler(_self, *args)
6442  try:
6443  self.this.append(this)
6444  except __builtin__.Exception:
6445  self.this = this
6446 
6447  if self.__class__ != Sampler:
6448  _director_objects.register(self)
6449 
6450 
6451 
6452 
6453  def create_sample(self):
6454  """create_sample(Sampler self) -> ConfigurationSet"""
6455  return _IMP_kernel.Sampler_create_sample(self)
6456 
6457 
6458  def get_scoring_function(self):
6459  """get_scoring_function(Sampler self) -> ScoringFunction"""
6460  return _IMP_kernel.Sampler_get_scoring_function(self)
6461 
6462 
6463  def set_scoring_function(self, sf):
6464  """set_scoring_function(Sampler self, _ScoringFunctionAdaptor sf)"""
6465  return _IMP_kernel.Sampler_set_scoring_function(self, sf)
6466 
6467 
6468  def get_model(self):
6469  """get_model(Sampler self) -> Model"""
6470  return _IMP_kernel.Sampler_get_model(self)
6471 
6472 
6473  def do_sample(self):
6474  """do_sample(Sampler self) -> ConfigurationSet"""
6475  return _IMP_kernel.Sampler_do_sample(self)
6476 
6477  __swig_destroy__ = _IMP_kernel.delete_Sampler
6478  __del__ = lambda self: None
6479 
6480  def __str__(self):
6481  """__str__(Sampler self) -> std::string"""
6482  return _IMP_kernel.Sampler___str__(self)
6483 
6484 
6485  def __repr__(self):
6486  """__repr__(Sampler self) -> std::string"""
6487  return _IMP_kernel.Sampler___repr__(self)
6488 
6489 
6490  @staticmethod
6491  def get_from(o):
6492  return _object_cast_to_Sampler(o)
6493 
6494 
6495  def get_type_name(self):
6496  return self.__class__.__name__
6497  def do_show(self, out):
6498  pass
6499  def get_version_info(self):
6500  if"IMP" == "IMP":
6501  return VersionInfo(self.__module__,
6502  __import__(self.__module__).get_module_version())
6503  else:
6504  return IMP.VersionInfo(self.__module__,
6505  __import__(self.__module__).get_module_version())
6506  @staticmethod
6507  def get_from(o):
6508  return _object_cast_to_Sampler(o)
6509 
6510  def __disown__(self):
6511  self.this.disown()
6512  _IMP_kernel.disown_Sampler(self)
6513  return weakref_proxy(self)
6514 
6515  def do_destroy(self):
6516  """do_destroy(Sampler self)"""
6517  return _IMP_kernel.Sampler_do_destroy(self)
6518 
6519 Sampler_swigregister = _IMP_kernel.Sampler_swigregister
6520 Sampler_swigregister(Sampler)
6521 
6522 class PairModifier(_ParticleInputs, _ParticleOutputs, Object):
6523  """Proxy of C++ IMP::PairModifier class."""
6524 
6525  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6526 
6527  def __init__(self, *args):
6528  """
6529  __init__(IMP::PairModifier self, std::string name) -> PairModifier
6530  __init__(IMP::PairModifier self) -> PairModifier
6531  """
6532  if self.__class__ == PairModifier:
6533  _self = None
6534  else:
6535  _self = self
6536  this = _IMP_kernel.new_PairModifier(_self, *args)
6537  try:
6538  self.this.append(this)
6539  except __builtin__.Exception:
6540  self.this = this
6541 
6542  if self.__class__ != PairModifier:
6543  _director_objects.register(self)
6544 
6545 
6546 
6547 
6548  def apply_index(self, m, v):
6549  """apply_index(PairModifier self, Model m, IMP::ParticleIndexPair const & v)"""
6550  return _IMP_kernel.PairModifier_apply_index(self, m, v)
6551 
6552 
6553  def apply_indexes(self, m, o, lower_bound, upper_bound):
6554  """apply_indexes(PairModifier self, Model m, IMP::ParticleIndexPairs const & o, unsigned int lower_bound, unsigned int upper_bound)"""
6555  return _IMP_kernel.PairModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
6556 
6557 
6558  def __str__(self):
6559  """__str__(PairModifier self) -> std::string"""
6560  return _IMP_kernel.PairModifier___str__(self)
6561 
6562 
6563  def __repr__(self):
6564  """__repr__(PairModifier self) -> std::string"""
6565  return _IMP_kernel.PairModifier___repr__(self)
6566 
6567 
6568  @staticmethod
6569  def get_from(o):
6570  return _object_cast_to_PairModifier(o)
6571 
6572 
6573  def get_type_name(self):
6574  return self.__class__.__name__
6575  def do_show(self, out):
6576  pass
6577  def get_version_info(self):
6578  if"IMP" == "IMP":
6579  return VersionInfo(self.__module__,
6580  __import__(self.__module__).get_module_version())
6581  else:
6582  return IMP.VersionInfo(self.__module__,
6583  __import__(self.__module__).get_module_version())
6584  @staticmethod
6585  def get_from(o):
6586  return _object_cast_to_PairModifier(o)
6587 
6588  __swig_destroy__ = _IMP_kernel.delete_PairModifier
6589  __del__ = lambda self: None
6590  def __disown__(self):
6591  self.this.disown()
6592  _IMP_kernel.disown_PairModifier(self)
6593  return weakref_proxy(self)
6594 
6595  def do_get_inputs(self, m, pis):
6596  """do_get_inputs(PairModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6597  return _IMP_kernel.PairModifier_do_get_inputs(self, m, pis)
6598 
6599 
6600  def do_get_outputs(self, m, pis):
6601  """do_get_outputs(PairModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6602  return _IMP_kernel.PairModifier_do_get_outputs(self, m, pis)
6603 
6604 
6605  def do_destroy(self):
6606  """do_destroy(PairModifier self)"""
6607  return _IMP_kernel.PairModifier_do_destroy(self)
6608 
6609 PairModifier_swigregister = _IMP_kernel.PairModifier_swigregister
6610 PairModifier_swigregister(PairModifier)
6611 
6612 class PairScore(_ParticleInputs, Object):
6613  """Proxy of C++ IMP::PairScore class."""
6614 
6615  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6616 
6617  def __init__(self, *args):
6618  """
6619  __init__(IMP::PairScore self, std::string name) -> PairScore
6620  __init__(IMP::PairScore self) -> PairScore
6621  """
6622  if self.__class__ == PairScore:
6623  _self = None
6624  else:
6625  _self = self
6626  this = _IMP_kernel.new_PairScore(_self, *args)
6627  try:
6628  self.this.append(this)
6629  except __builtin__.Exception:
6630  self.this = this
6631 
6632  if self.__class__ != PairScore:
6633  _director_objects.register(self)
6634 
6635 
6636 
6637 
6638  def evaluate_index(self, m, vt, da):
6639  """evaluate_index(PairScore self, Model m, IMP::ParticleIndexPair const & vt, DerivativeAccumulator da) -> double"""
6640  return _IMP_kernel.PairScore_evaluate_index(self, m, vt, da)
6641 
6642 
6643  def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
6644  """evaluate_indexes(PairScore self, Model m, IMP::ParticleIndexPairs const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
6645  return _IMP_kernel.PairScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
6646 
6647 
6648  def evaluate_if_good_index(self, m, vt, da, max):
6649  """evaluate_if_good_index(PairScore self, Model m, IMP::ParticleIndexPair const & vt, DerivativeAccumulator da, double max) -> double"""
6650  return _IMP_kernel.PairScore_evaluate_if_good_index(self, m, vt, da, max)
6651 
6652 
6653  def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
6654  """evaluate_if_good_indexes(PairScore self, Model m, IMP::ParticleIndexPairs const & o, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound) -> double"""
6655  return _IMP_kernel.PairScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
6656 
6657 
6658  def create_current_decomposition(self, m, vt):
6659  """create_current_decomposition(PairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
6660  return _IMP_kernel.PairScore_create_current_decomposition(self, m, vt)
6661 
6662 
6663  def do_create_current_decomposition(self, m, vt):
6664  """do_create_current_decomposition(PairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
6665  return _IMP_kernel.PairScore_do_create_current_decomposition(self, m, vt)
6666 
6667  __swig_destroy__ = _IMP_kernel.delete_PairScore
6668  __del__ = lambda self: None
6669 
6670  def __str__(self):
6671  """__str__(PairScore self) -> std::string"""
6672  return _IMP_kernel.PairScore___str__(self)
6673 
6674 
6675  def __repr__(self):
6676  """__repr__(PairScore self) -> std::string"""
6677  return _IMP_kernel.PairScore___repr__(self)
6678 
6679 
6680  @staticmethod
6681  def get_from(o):
6682  return _object_cast_to_PairScore(o)
6683 
6684 
6685  def get_type_name(self):
6686  return self.__class__.__name__
6687  def do_show(self, out):
6688  pass
6689  def get_version_info(self):
6690  if"IMP" == "IMP":
6691  return VersionInfo(self.__module__,
6692  __import__(self.__module__).get_module_version())
6693  else:
6694  return IMP.VersionInfo(self.__module__,
6695  __import__(self.__module__).get_module_version())
6696  @staticmethod
6697  def get_from(o):
6698  return _object_cast_to_PairScore(o)
6699 
6700  def __disown__(self):
6701  self.this.disown()
6702  _IMP_kernel.disown_PairScore(self)
6703  return weakref_proxy(self)
6704 
6705  def do_get_inputs(self, m, pis):
6706  """do_get_inputs(PairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6707  return _IMP_kernel.PairScore_do_get_inputs(self, m, pis)
6708 
6709 
6710  def do_destroy(self):
6711  """do_destroy(PairScore self)"""
6712  return _IMP_kernel.PairScore_do_destroy(self)
6713 
6714 PairScore_swigregister = _IMP_kernel.PairScore_swigregister
6715 PairScore_swigregister(PairScore)
6716 
6717 class PairPredicate(_ParticleInputs, Object):
6718  """Proxy of C++ IMP::PairPredicate class."""
6719 
6720  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6721 
6722  def __init__(self, *args):
6723  """
6724  __init__(IMP::PairPredicate self, std::string name) -> PairPredicate
6725  __init__(IMP::PairPredicate self) -> PairPredicate
6726  """
6727  if self.__class__ == PairPredicate:
6728  _self = None
6729  else:
6730  _self = self
6731  this = _IMP_kernel.new_PairPredicate(_self, *args)
6732  try:
6733  self.this.append(this)
6734  except __builtin__.Exception:
6735  self.this = this
6736 
6737  if self.__class__ != PairPredicate:
6738  _director_objects.register(self)
6739 
6740 
6741 
6742 
6743  def get_value(self, *args):
6744  """
6745  get_value(PairPredicate self, IMP::ParticlePair const & vt) -> int
6746  get_value(PairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
6747  """
6748  return _IMP_kernel.PairPredicate_get_value(self, *args)
6749 
6750 
6751  def setup_for_get_value_index_in_batch(self, arg0):
6752  """setup_for_get_value_index_in_batch(PairPredicate self, Model arg0)"""
6753  return _IMP_kernel.PairPredicate_setup_for_get_value_index_in_batch(self, arg0)
6754 
6755 
6756  def get_value_index_in_batch(self, m, vt):
6757  """get_value_index_in_batch(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int"""
6758  return _IMP_kernel.PairPredicate_get_value_index_in_batch(self, m, vt)
6759 
6760 
6761  def __call__(self, m, vt):
6762  """__call__(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int"""
6763  return _IMP_kernel.PairPredicate___call__(self, m, vt)
6764 
6765 
6766  def get_value_index(self, *args):
6767  """
6768  get_value_index(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int
6769  get_value_index(PairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
6770  """
6771  return _IMP_kernel.PairPredicate_get_value_index(self, *args)
6772 
6773  __swig_destroy__ = _IMP_kernel.delete_PairPredicate
6774  __del__ = lambda self: None
6775 
6776  def __str__(self):
6777  """__str__(PairPredicate self) -> std::string"""
6778  return _IMP_kernel.PairPredicate___str__(self)
6779 
6780 
6781  def __repr__(self):
6782  """__repr__(PairPredicate self) -> std::string"""
6783  return _IMP_kernel.PairPredicate___repr__(self)
6784 
6785 
6786  @staticmethod
6787  def get_from(o):
6788  return _object_cast_to_PairPredicate(o)
6789 
6790 
6791  def get_type_name(self):
6792  return self.__class__.__name__
6793  def do_show(self, out):
6794  pass
6795  def get_version_info(self):
6796  if"IMP" == "IMP":
6797  return VersionInfo(self.__module__,
6798  __import__(self.__module__).get_module_version())
6799  else:
6800  return IMP.VersionInfo(self.__module__,
6801  __import__(self.__module__).get_module_version())
6802  @staticmethod
6803  def get_from(o):
6804  return _object_cast_to_PairPredicate(o)
6805 
6806  def __disown__(self):
6807  self.this.disown()
6808  _IMP_kernel.disown_PairPredicate(self)
6809  return weakref_proxy(self)
6810 
6811  def do_get_inputs(self, m, pis):
6812  """do_get_inputs(PairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6813  return _IMP_kernel.PairPredicate_do_get_inputs(self, m, pis)
6814 
6815 
6816  def do_destroy(self):
6817  """do_destroy(PairPredicate self)"""
6818  return _IMP_kernel.PairPredicate_do_destroy(self)
6819 
6820 PairPredicate_swigregister = _IMP_kernel.PairPredicate_swigregister
6821 PairPredicate_swigregister(PairPredicate)
6822 
6823 class PairContainer(Container):
6824  """Proxy of C++ IMP::PairContainer class."""
6825 
6826  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6827 
6828  def apply_generic(self, m):
6829  """apply_generic(PairContainer self, PairModifier m)"""
6830  return _IMP_kernel.PairContainer_apply_generic(self, m)
6831 
6832 
6833  def apply(self, sm):
6834  """apply(PairContainer self, PairModifier sm)"""
6835  return _IMP_kernel.PairContainer_apply(self, sm)
6836 
6837 
6838  def get_range_indexes(self):
6839  """get_range_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
6840  return _IMP_kernel.PairContainer_get_range_indexes(self)
6841 
6842 
6843  def get_contents(self):
6844  """get_contents(PairContainer self) -> IMP::ParticleIndexPairs const &"""
6845  return _IMP_kernel.PairContainer_get_contents(self)
6846 
6847 
6848  def get_indexes(self):
6849  """get_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
6850  return _IMP_kernel.PairContainer_get_indexes(self)
6851 
6852 
6853  def get(self, *args):
6854  """
6855  get(PairContainer self) -> IMP::ParticlePairsTemp
6856  get(PairContainer self, unsigned int i) -> IMP::ParticlePair
6857  """
6858  return _IMP_kernel.PairContainer_get(self, *args)
6859 
6860 
6861  def get_number(self):
6862  """get_number(PairContainer self) -> unsigned int"""
6863  return _IMP_kernel.PairContainer_get_number(self)
6864 
6865 
6866  def get_particle_pairs(self):
6867  """get_particle_pairs(PairContainer self) -> IMP::ParticlePairsTemp"""
6868  return _IMP_kernel.PairContainer_get_particle_pairs(self)
6869 
6870 
6871  def get_particle_pair(self, i):
6872  """get_particle_pair(PairContainer self, unsigned int i) -> IMP::ParticlePair"""
6873  return _IMP_kernel.PairContainer_get_particle_pair(self, i)
6874 
6875 
6876  def __init__(self, *args):
6877  """
6878  __init__(IMP::PairContainer self, Model m, std::string name) -> PairContainer
6879  __init__(IMP::PairContainer self, Model m) -> PairContainer
6880  """
6881  if self.__class__ == PairContainer:
6882  _self = None
6883  else:
6884  _self = self
6885  this = _IMP_kernel.new_PairContainer(_self, *args)
6886  try:
6887  self.this.append(this)
6888  except __builtin__.Exception:
6889  self.this = this
6890 
6891  if self.__class__ != PairContainer:
6892  _director_objects.register(self)
6893 
6894 
6895 
6896 
6897  def do_apply(self, sm):
6898  """do_apply(PairContainer self, PairModifier sm)"""
6899  return _IMP_kernel.PairContainer_do_apply(self, sm)
6900 
6901 
6902  def do_get_provides_access(self):
6903  """do_get_provides_access(PairContainer self) -> bool"""
6904  return _IMP_kernel.PairContainer_do_get_provides_access(self)
6905 
6906  __swig_destroy__ = _IMP_kernel.delete_PairContainer
6907  __del__ = lambda self: None
6908 
6909  def __str__(self):
6910  """__str__(PairContainer self) -> std::string"""
6911  return _IMP_kernel.PairContainer___str__(self)
6912 
6913 
6914  def __repr__(self):
6915  """__repr__(PairContainer self) -> std::string"""
6916  return _IMP_kernel.PairContainer___repr__(self)
6917 
6918 
6919  @staticmethod
6920  def get_from(o):
6921  return _object_cast_to_PairContainer(o)
6922 
6923 
6924  def get_type_name(self):
6925  return self.__class__.__name__
6926  def do_show(self, out):
6927  pass
6928  def get_version_info(self):
6929  if"IMP" == "IMP":
6930  return VersionInfo(self.__module__,
6931  __import__(self.__module__).get_module_version())
6932  else:
6933  return IMP.VersionInfo(self.__module__,
6934  __import__(self.__module__).get_module_version())
6935  @staticmethod
6936  def get_from(o):
6937  return _object_cast_to_PairContainer(o)
6938 
6939  def __disown__(self):
6940  self.this.disown()
6941  _IMP_kernel.disown_PairContainer(self)
6942  return weakref_proxy(self)
6943 
6944  def do_destroy(self):
6945  """do_destroy(PairContainer self)"""
6946  return _IMP_kernel.PairContainer_do_destroy(self)
6947 
6948 
6949  def handle_set_has_required_score_states(self, arg0):
6950  """handle_set_has_required_score_states(PairContainer self, bool arg0)"""
6951  return _IMP_kernel.PairContainer_handle_set_has_required_score_states(self, arg0)
6952 
6953 
6954  def do_get_inputs(self):
6955  """do_get_inputs(PairContainer self) -> IMP::ModelObjectsTemp"""
6956  return _IMP_kernel.PairContainer_do_get_inputs(self)
6957 
6958 
6959  def do_get_interactions(self):
6960  """do_get_interactions(PairContainer self) -> IMP::ModelObjectsTemps"""
6961  return _IMP_kernel.PairContainer_do_get_interactions(self)
6962 
6963 
6964  def do_get_contents_hash(self):
6965  """do_get_contents_hash(PairContainer self) -> std::size_t"""
6966  return _IMP_kernel.PairContainer_do_get_contents_hash(self)
6967 
6968 PairContainer_swigregister = _IMP_kernel.PairContainer_swigregister
6969 PairContainer_swigregister(PairContainer)
6970 
6971 class _PairContainerAdaptor(_InputAdaptor):
6972  """Proxy of C++ IMP::PairContainerAdaptor class."""
6973 
6974  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6975  __repr__ = _swig_repr
6976 
6977  def __init__(self, *args):
6978  """
6979  __init__(IMP::PairContainerAdaptor self) -> _PairContainerAdaptor
6980  __init__(IMP::PairContainerAdaptor self, PairContainer c) -> _PairContainerAdaptor
6981  __init__(IMP::PairContainerAdaptor self, IMP::ParticlePairsTemp const & t) -> _PairContainerAdaptor
6982  """
6983  this = _IMP_kernel.new__PairContainerAdaptor(*args)
6984  try:
6985  self.this.append(this)
6986  except __builtin__.Exception:
6987  self.this = this
6988 
6989  def set_name_if_default(self, name):
6990  """set_name_if_default(_PairContainerAdaptor self, std::string name)"""
6991  return _IMP_kernel._PairContainerAdaptor_set_name_if_default(self, name)
6992 
6993  __swig_destroy__ = _IMP_kernel.delete__PairContainerAdaptor
6994  __del__ = lambda self: None
6995 _PairContainerAdaptor_swigregister = _IMP_kernel._PairContainerAdaptor_swigregister
6996 _PairContainerAdaptor_swigregister(_PairContainerAdaptor)
6997 
6998 class QuadModifier(_ParticleInputs, _ParticleOutputs, Object):
6999  """Proxy of C++ IMP::QuadModifier class."""
7000 
7001  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7002 
7003  def __init__(self, *args):
7004  """
7005  __init__(IMP::QuadModifier self, std::string name) -> QuadModifier
7006  __init__(IMP::QuadModifier self) -> QuadModifier
7007  """
7008  if self.__class__ == QuadModifier:
7009  _self = None
7010  else:
7011  _self = self
7012  this = _IMP_kernel.new_QuadModifier(_self, *args)
7013  try:
7014  self.this.append(this)
7015  except __builtin__.Exception:
7016  self.this = this
7017 
7018  if self.__class__ != QuadModifier:
7019  _director_objects.register(self)
7020 
7021 
7022 
7023 
7024  def apply_index(self, m, v):
7025  """apply_index(QuadModifier self, Model m, IMP::ParticleIndexQuad const & v)"""
7026  return _IMP_kernel.QuadModifier_apply_index(self, m, v)
7027 
7028 
7029  def apply_indexes(self, m, o, lower_bound, upper_bound):
7030  """apply_indexes(QuadModifier self, Model m, IMP::ParticleIndexQuads const & o, unsigned int lower_bound, unsigned int upper_bound)"""
7031  return _IMP_kernel.QuadModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
7032 
7033 
7034  def __str__(self):
7035  """__str__(QuadModifier self) -> std::string"""
7036  return _IMP_kernel.QuadModifier___str__(self)
7037 
7038 
7039  def __repr__(self):
7040  """__repr__(QuadModifier self) -> std::string"""
7041  return _IMP_kernel.QuadModifier___repr__(self)
7042 
7043 
7044  @staticmethod
7045  def get_from(o):
7046  return _object_cast_to_QuadModifier(o)
7047 
7048 
7049  def get_type_name(self):
7050  return self.__class__.__name__
7051  def do_show(self, out):
7052  pass
7053  def get_version_info(self):
7054  if"IMP" == "IMP":
7055  return VersionInfo(self.__module__,
7056  __import__(self.__module__).get_module_version())
7057  else:
7058  return IMP.VersionInfo(self.__module__,
7059  __import__(self.__module__).get_module_version())
7060  @staticmethod
7061  def get_from(o):
7062  return _object_cast_to_QuadModifier(o)
7063 
7064  __swig_destroy__ = _IMP_kernel.delete_QuadModifier
7065  __del__ = lambda self: None
7066  def __disown__(self):
7067  self.this.disown()
7068  _IMP_kernel.disown_QuadModifier(self)
7069  return weakref_proxy(self)
7070 
7071  def do_get_inputs(self, m, pis):
7072  """do_get_inputs(QuadModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7073  return _IMP_kernel.QuadModifier_do_get_inputs(self, m, pis)
7074 
7075 
7076  def do_get_outputs(self, m, pis):
7077  """do_get_outputs(QuadModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7078  return _IMP_kernel.QuadModifier_do_get_outputs(self, m, pis)
7079 
7080 
7081  def do_destroy(self):
7082  """do_destroy(QuadModifier self)"""
7083  return _IMP_kernel.QuadModifier_do_destroy(self)
7084 
7085 QuadModifier_swigregister = _IMP_kernel.QuadModifier_swigregister
7086 QuadModifier_swigregister(QuadModifier)
7087 
7088 class QuadScore(_ParticleInputs, Object):
7089  """Proxy of C++ IMP::QuadScore class."""
7090 
7091  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7092 
7093  def __init__(self, *args):
7094  """
7095  __init__(IMP::QuadScore self, std::string name) -> QuadScore
7096  __init__(IMP::QuadScore self) -> QuadScore
7097  """
7098  if self.__class__ == QuadScore:
7099  _self = None
7100  else:
7101  _self = self
7102  this = _IMP_kernel.new_QuadScore(_self, *args)
7103  try:
7104  self.this.append(this)
7105  except __builtin__.Exception:
7106  self.this = this
7107 
7108  if self.__class__ != QuadScore:
7109  _director_objects.register(self)
7110 
7111 
7112 
7113 
7114  def evaluate_index(self, m, vt, da):
7115  """evaluate_index(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt, DerivativeAccumulator da) -> double"""
7116  return _IMP_kernel.QuadScore_evaluate_index(self, m, vt, da)
7117 
7118 
7119  def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
7120  """evaluate_indexes(QuadScore self, Model m, IMP::ParticleIndexQuads const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7121  return _IMP_kernel.QuadScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
7122 
7123 
7124  def evaluate_if_good_index(self, m, vt, da, max):
7125  """evaluate_if_good_index(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt, DerivativeAccumulator da, double max) -> double"""
7126  return _IMP_kernel.QuadScore_evaluate_if_good_index(self, m, vt, da, max)
7127 
7128 
7129  def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
7130  """evaluate_if_good_indexes(QuadScore self, Model m, IMP::ParticleIndexQuads const & o, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7131  return _IMP_kernel.QuadScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
7132 
7133 
7134  def create_current_decomposition(self, m, vt):
7135  """create_current_decomposition(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
7136  return _IMP_kernel.QuadScore_create_current_decomposition(self, m, vt)
7137 
7138 
7139  def do_create_current_decomposition(self, m, vt):
7140  """do_create_current_decomposition(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
7141  return _IMP_kernel.QuadScore_do_create_current_decomposition(self, m, vt)
7142 
7143  __swig_destroy__ = _IMP_kernel.delete_QuadScore
7144  __del__ = lambda self: None
7145 
7146  def __str__(self):
7147  """__str__(QuadScore self) -> std::string"""
7148  return _IMP_kernel.QuadScore___str__(self)
7149 
7150 
7151  def __repr__(self):
7152  """__repr__(QuadScore self) -> std::string"""
7153  return _IMP_kernel.QuadScore___repr__(self)
7154 
7155 
7156  @staticmethod
7157  def get_from(o):
7158  return _object_cast_to_QuadScore(o)
7159 
7160 
7161  def get_type_name(self):
7162  return self.__class__.__name__
7163  def do_show(self, out):
7164  pass
7165  def get_version_info(self):
7166  if"IMP" == "IMP":
7167  return VersionInfo(self.__module__,
7168  __import__(self.__module__).get_module_version())
7169  else:
7170  return IMP.VersionInfo(self.__module__,
7171  __import__(self.__module__).get_module_version())
7172  @staticmethod
7173  def get_from(o):
7174  return _object_cast_to_QuadScore(o)
7175 
7176  def __disown__(self):
7177  self.this.disown()
7178  _IMP_kernel.disown_QuadScore(self)
7179  return weakref_proxy(self)
7180 
7181  def do_get_inputs(self, m, pis):
7182  """do_get_inputs(QuadScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7183  return _IMP_kernel.QuadScore_do_get_inputs(self, m, pis)
7184 
7185 
7186  def do_destroy(self):
7187  """do_destroy(QuadScore self)"""
7188  return _IMP_kernel.QuadScore_do_destroy(self)
7189 
7190 QuadScore_swigregister = _IMP_kernel.QuadScore_swigregister
7191 QuadScore_swigregister(QuadScore)
7192 
7193 class QuadPredicate(_ParticleInputs, Object):
7194  """Proxy of C++ IMP::QuadPredicate class."""
7195 
7196  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7197 
7198  def __init__(self, *args):
7199  """
7200  __init__(IMP::QuadPredicate self, std::string name) -> QuadPredicate
7201  __init__(IMP::QuadPredicate self) -> QuadPredicate
7202  """
7203  if self.__class__ == QuadPredicate:
7204  _self = None
7205  else:
7206  _self = self
7207  this = _IMP_kernel.new_QuadPredicate(_self, *args)
7208  try:
7209  self.this.append(this)
7210  except __builtin__.Exception:
7211  self.this = this
7212 
7213  if self.__class__ != QuadPredicate:
7214  _director_objects.register(self)
7215 
7216 
7217 
7218 
7219  def get_value(self, *args):
7220  """
7221  get_value(QuadPredicate self, IMP::ParticleQuad const & vt) -> int
7222  get_value(QuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
7223  """
7224<