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