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