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