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