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