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