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