IMP logo
IMP Reference Guide  2.20.1
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-2024 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 SparseFloatKeys=list
1677 _plural_types.append("SparseFloatKeys")
1678 _value_types.append("SparseFloatKey")
1679 
1680 
1681 SparseIntKeys=list
1682 _plural_types.append("SparseIntKeys")
1683 _value_types.append("SparseIntKey")
1684 
1685 
1686 SparseStringKeys=list
1687 _plural_types.append("SparseStringKeys")
1688 _value_types.append("SparseStringKey")
1689 
1690 
1691 SparseParticleIndexKeys=list
1692 _plural_types.append("SparseParticleIndexKeys")
1693 _value_types.append("SparseParticleIndexKey")
1694 
1695 
1696 _raii_types.append("ScopedSetFloatAttribute")
1697 
1698 
1699 _object_types.append("ScoringFunction")
1700 
1701 
1702 def _object_cast_to_ScoringFunction(o):
1703  r"""_object_cast_to_ScoringFunction(Object o) -> ScoringFunction"""
1704  return _IMP_kernel._object_cast_to_ScoringFunction(o)
1705 
1706 _object_types.append("ModelObject")
1707 
1708 
1709 def _object_cast_to_ModelObject(o):
1710  r"""_object_cast_to_ModelObject(Object o) -> ModelObject"""
1711  return _IMP_kernel._object_cast_to_ModelObject(o)
1712 
1713 def _TrivialDecorators(l=[]):
1714  return [_TrivialDecorator(x) for x in l]
1715 _plural_types.append("_TrivialDecorators")
1716 
1717 
1718 _value_types.append("_TrivialDecorator")
1719 
1720 
1721 def _TrivialDerivedDecorators(l=[]):
1722  return [_TrivialDerivedDecorator(x) for x in l]
1723 _plural_types.append("_TrivialDerivedDecorators")
1724 
1725 
1726 _value_types.append("_TrivialDerivedDecorator")
1727 
1728 
1729 def _TrivialTraitsDecorators(l=[]):
1730  return [_TrivialTraitsDecorator(x) for x in l]
1731 _plural_types.append("_TrivialTraitsDecorators")
1732 
1733 
1734 _value_types.append("_TrivialTraitsDecorator")
1735 
1736 
1737 _object_types.append("_ConstRestraint")
1738 
1739 
1740 def _object_cast_to__ConstRestraint(o):
1741  r"""_object_cast_to__ConstRestraint(Object o) -> _ConstRestraint"""
1742  return _IMP_kernel._object_cast_to__ConstRestraint(o)
1743 
1744 _object_types.append("_ConstOptimizer")
1745 
1746 
1747 def _object_cast_to__ConstOptimizer(o):
1748  r"""_object_cast_to__ConstOptimizer(Object o) -> _ConstOptimizer"""
1749  return _IMP_kernel._object_cast_to__ConstOptimizer(o)
1750 
1751 _object_types.append("_ConstSingletonScore")
1752 
1753 
1754 def _object_cast_to__ConstSingletonScore(o):
1755  r"""_object_cast_to__ConstSingletonScore(Object o) -> _ConstSingletonScore"""
1756  return _IMP_kernel._object_cast_to__ConstSingletonScore(o)
1757 
1758 _object_types.append("_ConstPairScore")
1759 
1760 
1761 def _object_cast_to__ConstPairScore(o):
1762  r"""_object_cast_to__ConstPairScore(Object o) -> _ConstPairScore"""
1763  return _IMP_kernel._object_cast_to__ConstPairScore(o)
1764 class DependencyGraph(Object):
1765  r"""Proxy of C++ IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex > class."""
1766 
1767  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1768  __repr__ = _swig_repr
1769 
1770  def __init__(self):
1771  r"""__init__(DependencyGraph self) -> DependencyGraph"""
1772  _IMP_kernel.DependencyGraph_swiginit(self, _IMP_kernel.new_DependencyGraph())
1773 
1774  def get_graph(self):
1775  r"""get_graph(DependencyGraph self) -> IMP::DependencyGraph const &"""
1776  return _IMP_kernel.DependencyGraph_get_graph(self)
1777 
1778  def get_vertices(self):
1779  r"""get_vertices(DependencyGraph self) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptors"""
1780  return _IMP_kernel.DependencyGraph_get_vertices(self)
1781 
1782  def get_vertex_name(self, i):
1783  r"""get_vertex_name(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor i) -> ModelObject"""
1784  return _IMP_kernel.DependencyGraph_get_vertex_name(self, i)
1785 
1786  def get_in_neighbors(self, v):
1787  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"""
1788  return _IMP_kernel.DependencyGraph_get_in_neighbors(self, v)
1789 
1790  def get_out_neighbors(self, v):
1791  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"""
1792  return _IMP_kernel.DependencyGraph_get_out_neighbors(self, v)
1793 
1794  def show_graphviz(self, *args):
1795  r"""show_graphviz(DependencyGraph self, _ostream out=std::cout)"""
1796  return _IMP_kernel.DependencyGraph_show_graphviz(self, *args)
1797 
1798  def get_graphviz_string(self):
1799  r"""get_graphviz_string(DependencyGraph self) -> std::string"""
1800  return _IMP_kernel.DependencyGraph_get_graphviz_string(self)
1801 
1802  def add_edge(self, v0, v1):
1803  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)"""
1804  return _IMP_kernel.DependencyGraph_add_edge(self, v0, v1)
1805 
1806  def add_vertex(self, l):
1807  r"""add_vertex(DependencyGraph self, ModelObject l) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor"""
1808  return _IMP_kernel.DependencyGraph_add_vertex(self, l)
1809 
1810  def remove_vertex(self, l):
1811  r"""remove_vertex(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor l)"""
1812  return _IMP_kernel.DependencyGraph_remove_vertex(self, l)
1813  __swig_destroy__ = _IMP_kernel.delete_DependencyGraph
1814 
1815 # Register DependencyGraph in _IMP_kernel:
1816 _IMP_kernel.DependencyGraph_swigregister(DependencyGraph)
1817 
1818 _value_types.append("DependencyGraph")
1819 
1820 class FloatKey(_Value):
1821  r"""Proxy of C++ IMP::Key< 0 > class."""
1822 
1823  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1824 
1825  def __init__(self, *args):
1826  r"""
1827  __init__(FloatKey self) -> FloatKey
1828  __init__(FloatKey self, std::string const & c, bool is_implicit_add_permitted=True) -> FloatKey
1829  __init__(FloatKey self, unsigned int i) -> FloatKey
1830  """
1831  _IMP_kernel.FloatKey_swiginit(self, _IMP_kernel.new_FloatKey(*args))
1832 
1833  @staticmethod
1834  def add_key(sc):
1835  r"""add_key(std::string sc) -> unsigned int"""
1836  return _IMP_kernel.FloatKey_add_key(sc)
1837 
1838  @staticmethod
1839  def get_key_exists(sc):
1840  r"""get_key_exists(std::string sc) -> bool"""
1841  return _IMP_kernel.FloatKey_get_key_exists(sc)
1842 
1843  def get_string(self):
1844  r"""get_string(FloatKey self) -> std::string const"""
1845  return _IMP_kernel.FloatKey_get_string(self)
1846 
1847  def __cmp__(self, o):
1848  r"""__cmp__(FloatKey self, FloatKey o) -> int"""
1849  return _IMP_kernel.FloatKey___cmp__(self, o)
1850 
1851  def __eq__(self, o):
1852  r"""__eq__(FloatKey self, FloatKey o) -> bool"""
1853  return _IMP_kernel.FloatKey___eq__(self, o)
1854 
1855  def __ne__(self, o):
1856  r"""__ne__(FloatKey self, FloatKey o) -> bool"""
1857  return _IMP_kernel.FloatKey___ne__(self, o)
1858 
1859  def __lt__(self, o):
1860  r"""__lt__(FloatKey self, FloatKey o) -> bool"""
1861  return _IMP_kernel.FloatKey___lt__(self, o)
1862 
1863  def __gt__(self, o):
1864  r"""__gt__(FloatKey self, FloatKey o) -> bool"""
1865  return _IMP_kernel.FloatKey___gt__(self, o)
1866 
1867  def __ge__(self, o):
1868  r"""__ge__(FloatKey self, FloatKey o) -> bool"""
1869  return _IMP_kernel.FloatKey___ge__(self, o)
1870 
1871  def __le__(self, o):
1872  r"""__le__(FloatKey self, FloatKey o) -> bool"""
1873  return _IMP_kernel.FloatKey___le__(self, o)
1874 
1875  def __hash__(self):
1876  r"""__hash__(FloatKey self) -> std::size_t"""
1877  return _IMP_kernel.FloatKey___hash__(self)
1878 
1879  def show(self, *args):
1880  r"""show(FloatKey self, _ostream out=std::cout)"""
1881  return _IMP_kernel.FloatKey_show(self, *args)
1882 
1883  @staticmethod
1884  def add_alias(old_key, new_name):
1885  r"""add_alias(FloatKey old_key, std::string new_name) -> FloatKey"""
1886  return _IMP_kernel.FloatKey_add_alias(old_key, new_name)
1887 
1888  @staticmethod
1889  def get_number_of_keys():
1890  r"""get_number_of_keys() -> unsigned int"""
1891  return _IMP_kernel.FloatKey_get_number_of_keys()
1892 
1893  def get_index(self):
1894  r"""get_index(FloatKey self) -> unsigned int"""
1895  return _IMP_kernel.FloatKey_get_index(self)
1896 
1897  @staticmethod
1898  def show_all(out):
1899  r"""show_all(_ostream out)"""
1900  return _IMP_kernel.FloatKey_show_all(out)
1901 
1902  @staticmethod
1903  def get_all_strings():
1904  r"""get_all_strings() -> IMP::Vector< std::string >"""
1905  return _IMP_kernel.FloatKey_get_all_strings()
1906 
1907  @staticmethod
1908  def get_number_unique():
1909  r"""get_number_unique() -> unsigned int"""
1910  return _IMP_kernel.FloatKey_get_number_unique()
1911 
1912  def __str__(self):
1913  r"""__str__(FloatKey self) -> std::string"""
1914  return _IMP_kernel.FloatKey___str__(self)
1915 
1916  def __repr__(self):
1917  r"""__repr__(FloatKey self) -> std::string"""
1918  return _IMP_kernel.FloatKey___repr__(self)
1919  __swig_destroy__ = _IMP_kernel.delete_FloatKey
1920 
1921 # Register FloatKey in _IMP_kernel:
1922 _IMP_kernel.FloatKey_swigregister(FloatKey)
1923 class IntKey(_Value):
1924  r"""Proxy of C++ IMP::Key< 1 > class."""
1925 
1926  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1927 
1928  def __init__(self, *args):
1929  r"""
1930  __init__(IntKey self) -> IntKey
1931  __init__(IntKey self, std::string const & c, bool is_implicit_add_permitted=True) -> IntKey
1932  __init__(IntKey self, unsigned int i) -> IntKey
1933  """
1934  _IMP_kernel.IntKey_swiginit(self, _IMP_kernel.new_IntKey(*args))
1935 
1936  @staticmethod
1937  def add_key(sc):
1938  r"""add_key(std::string sc) -> unsigned int"""
1939  return _IMP_kernel.IntKey_add_key(sc)
1940 
1941  @staticmethod
1942  def get_key_exists(sc):
1943  r"""get_key_exists(std::string sc) -> bool"""
1944  return _IMP_kernel.IntKey_get_key_exists(sc)
1945 
1946  def get_string(self):
1947  r"""get_string(IntKey self) -> std::string const"""
1948  return _IMP_kernel.IntKey_get_string(self)
1949 
1950  def __cmp__(self, o):
1951  r"""__cmp__(IntKey self, IntKey o) -> int"""
1952  return _IMP_kernel.IntKey___cmp__(self, o)
1953 
1954  def __eq__(self, o):
1955  r"""__eq__(IntKey self, IntKey o) -> bool"""
1956  return _IMP_kernel.IntKey___eq__(self, o)
1957 
1958  def __ne__(self, o):
1959  r"""__ne__(IntKey self, IntKey o) -> bool"""
1960  return _IMP_kernel.IntKey___ne__(self, o)
1961 
1962  def __lt__(self, o):
1963  r"""__lt__(IntKey self, IntKey o) -> bool"""
1964  return _IMP_kernel.IntKey___lt__(self, o)
1965 
1966  def __gt__(self, o):
1967  r"""__gt__(IntKey self, IntKey o) -> bool"""
1968  return _IMP_kernel.IntKey___gt__(self, o)
1969 
1970  def __ge__(self, o):
1971  r"""__ge__(IntKey self, IntKey o) -> bool"""
1972  return _IMP_kernel.IntKey___ge__(self, o)
1973 
1974  def __le__(self, o):
1975  r"""__le__(IntKey self, IntKey o) -> bool"""
1976  return _IMP_kernel.IntKey___le__(self, o)
1977 
1978  def __hash__(self):
1979  r"""__hash__(IntKey self) -> std::size_t"""
1980  return _IMP_kernel.IntKey___hash__(self)
1981 
1982  def show(self, *args):
1983  r"""show(IntKey self, _ostream out=std::cout)"""
1984  return _IMP_kernel.IntKey_show(self, *args)
1985 
1986  @staticmethod
1987  def add_alias(old_key, new_name):
1988  r"""add_alias(IntKey old_key, std::string new_name) -> IntKey"""
1989  return _IMP_kernel.IntKey_add_alias(old_key, new_name)
1990 
1991  @staticmethod
1992  def get_number_of_keys():
1993  r"""get_number_of_keys() -> unsigned int"""
1994  return _IMP_kernel.IntKey_get_number_of_keys()
1995 
1996  def get_index(self):
1997  r"""get_index(IntKey self) -> unsigned int"""
1998  return _IMP_kernel.IntKey_get_index(self)
1999 
2000  @staticmethod
2001  def show_all(out):
2002  r"""show_all(_ostream out)"""
2003  return _IMP_kernel.IntKey_show_all(out)
2004 
2005  @staticmethod
2006  def get_all_strings():
2007  r"""get_all_strings() -> IMP::Vector< std::string >"""
2008  return _IMP_kernel.IntKey_get_all_strings()
2009 
2010  @staticmethod
2011  def get_number_unique():
2012  r"""get_number_unique() -> unsigned int"""
2013  return _IMP_kernel.IntKey_get_number_unique()
2014 
2015  def __str__(self):
2016  r"""__str__(IntKey self) -> std::string"""
2017  return _IMP_kernel.IntKey___str__(self)
2018 
2019  def __repr__(self):
2020  r"""__repr__(IntKey self) -> std::string"""
2021  return _IMP_kernel.IntKey___repr__(self)
2022  __swig_destroy__ = _IMP_kernel.delete_IntKey
2023 
2024 # Register IntKey in _IMP_kernel:
2025 _IMP_kernel.IntKey_swigregister(IntKey)
2026 class StringKey(_Value):
2027  r"""Proxy of C++ IMP::Key< 2 > class."""
2028 
2029  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2030 
2031  def __init__(self, *args):
2032  r"""
2033  __init__(StringKey self) -> StringKey
2034  __init__(StringKey self, std::string const & c, bool is_implicit_add_permitted=True) -> StringKey
2035  __init__(StringKey self, unsigned int i) -> StringKey
2036  """
2037  _IMP_kernel.StringKey_swiginit(self, _IMP_kernel.new_StringKey(*args))
2038 
2039  @staticmethod
2040  def add_key(sc):
2041  r"""add_key(std::string sc) -> unsigned int"""
2042  return _IMP_kernel.StringKey_add_key(sc)
2043 
2044  @staticmethod
2045  def get_key_exists(sc):
2046  r"""get_key_exists(std::string sc) -> bool"""
2047  return _IMP_kernel.StringKey_get_key_exists(sc)
2048 
2049  def get_string(self):
2050  r"""get_string(StringKey self) -> std::string const"""
2051  return _IMP_kernel.StringKey_get_string(self)
2052 
2053  def __cmp__(self, o):
2054  r"""__cmp__(StringKey self, StringKey o) -> int"""
2055  return _IMP_kernel.StringKey___cmp__(self, o)
2056 
2057  def __eq__(self, o):
2058  r"""__eq__(StringKey self, StringKey o) -> bool"""
2059  return _IMP_kernel.StringKey___eq__(self, o)
2060 
2061  def __ne__(self, o):
2062  r"""__ne__(StringKey self, StringKey o) -> bool"""
2063  return _IMP_kernel.StringKey___ne__(self, o)
2064 
2065  def __lt__(self, o):
2066  r"""__lt__(StringKey self, StringKey o) -> bool"""
2067  return _IMP_kernel.StringKey___lt__(self, o)
2068 
2069  def __gt__(self, o):
2070  r"""__gt__(StringKey self, StringKey o) -> bool"""
2071  return _IMP_kernel.StringKey___gt__(self, o)
2072 
2073  def __ge__(self, o):
2074  r"""__ge__(StringKey self, StringKey o) -> bool"""
2075  return _IMP_kernel.StringKey___ge__(self, o)
2076 
2077  def __le__(self, o):
2078  r"""__le__(StringKey self, StringKey o) -> bool"""
2079  return _IMP_kernel.StringKey___le__(self, o)
2080 
2081  def __hash__(self):
2082  r"""__hash__(StringKey self) -> std::size_t"""
2083  return _IMP_kernel.StringKey___hash__(self)
2084 
2085  def show(self, *args):
2086  r"""show(StringKey self, _ostream out=std::cout)"""
2087  return _IMP_kernel.StringKey_show(self, *args)
2088 
2089  @staticmethod
2090  def add_alias(old_key, new_name):
2091  r"""add_alias(StringKey old_key, std::string new_name) -> StringKey"""
2092  return _IMP_kernel.StringKey_add_alias(old_key, new_name)
2093 
2094  @staticmethod
2095  def get_number_of_keys():
2096  r"""get_number_of_keys() -> unsigned int"""
2097  return _IMP_kernel.StringKey_get_number_of_keys()
2098 
2099  def get_index(self):
2100  r"""get_index(StringKey self) -> unsigned int"""
2101  return _IMP_kernel.StringKey_get_index(self)
2102 
2103  @staticmethod
2104  def show_all(out):
2105  r"""show_all(_ostream out)"""
2106  return _IMP_kernel.StringKey_show_all(out)
2107 
2108  @staticmethod
2109  def get_all_strings():
2110  r"""get_all_strings() -> IMP::Vector< std::string >"""
2111  return _IMP_kernel.StringKey_get_all_strings()
2112 
2113  @staticmethod
2114  def get_number_unique():
2115  r"""get_number_unique() -> unsigned int"""
2116  return _IMP_kernel.StringKey_get_number_unique()
2117 
2118  def __str__(self):
2119  r"""__str__(StringKey self) -> std::string"""
2120  return _IMP_kernel.StringKey___str__(self)
2121 
2122  def __repr__(self):
2123  r"""__repr__(StringKey self) -> std::string"""
2124  return _IMP_kernel.StringKey___repr__(self)
2125  __swig_destroy__ = _IMP_kernel.delete_StringKey
2126 
2127 # Register StringKey in _IMP_kernel:
2128 _IMP_kernel.StringKey_swigregister(StringKey)
2129 class ParticleIndexKey(_Value):
2130  r"""Proxy of C++ IMP::Key< 3 > class."""
2131 
2132  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2133 
2134  def __init__(self, *args):
2135  r"""
2136  __init__(ParticleIndexKey self) -> ParticleIndexKey
2137  __init__(ParticleIndexKey self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleIndexKey
2138  __init__(ParticleIndexKey self, unsigned int i) -> ParticleIndexKey
2139  """
2140  _IMP_kernel.ParticleIndexKey_swiginit(self, _IMP_kernel.new_ParticleIndexKey(*args))
2141 
2142  @staticmethod
2143  def add_key(sc):
2144  r"""add_key(std::string sc) -> unsigned int"""
2145  return _IMP_kernel.ParticleIndexKey_add_key(sc)
2146 
2147  @staticmethod
2148  def get_key_exists(sc):
2149  r"""get_key_exists(std::string sc) -> bool"""
2150  return _IMP_kernel.ParticleIndexKey_get_key_exists(sc)
2151 
2152  def get_string(self):
2153  r"""get_string(ParticleIndexKey self) -> std::string const"""
2154  return _IMP_kernel.ParticleIndexKey_get_string(self)
2155 
2156  def __cmp__(self, o):
2157  r"""__cmp__(ParticleIndexKey self, ParticleIndexKey o) -> int"""
2158  return _IMP_kernel.ParticleIndexKey___cmp__(self, o)
2159 
2160  def __eq__(self, o):
2161  r"""__eq__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2162  return _IMP_kernel.ParticleIndexKey___eq__(self, o)
2163 
2164  def __ne__(self, o):
2165  r"""__ne__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2166  return _IMP_kernel.ParticleIndexKey___ne__(self, o)
2167 
2168  def __lt__(self, o):
2169  r"""__lt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2170  return _IMP_kernel.ParticleIndexKey___lt__(self, o)
2171 
2172  def __gt__(self, o):
2173  r"""__gt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2174  return _IMP_kernel.ParticleIndexKey___gt__(self, o)
2175 
2176  def __ge__(self, o):
2177  r"""__ge__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2178  return _IMP_kernel.ParticleIndexKey___ge__(self, o)
2179 
2180  def __le__(self, o):
2181  r"""__le__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2182  return _IMP_kernel.ParticleIndexKey___le__(self, o)
2183 
2184  def __hash__(self):
2185  r"""__hash__(ParticleIndexKey self) -> std::size_t"""
2186  return _IMP_kernel.ParticleIndexKey___hash__(self)
2187 
2188  def show(self, *args):
2189  r"""show(ParticleIndexKey self, _ostream out=std::cout)"""
2190  return _IMP_kernel.ParticleIndexKey_show(self, *args)
2191 
2192  @staticmethod
2193  def add_alias(old_key, new_name):
2194  r"""add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
2195  return _IMP_kernel.ParticleIndexKey_add_alias(old_key, new_name)
2196 
2197  @staticmethod
2198  def get_number_of_keys():
2199  r"""get_number_of_keys() -> unsigned int"""
2200  return _IMP_kernel.ParticleIndexKey_get_number_of_keys()
2201 
2202  def get_index(self):
2203  r"""get_index(ParticleIndexKey self) -> unsigned int"""
2204  return _IMP_kernel.ParticleIndexKey_get_index(self)
2205 
2206  @staticmethod
2207  def show_all(out):
2208  r"""show_all(_ostream out)"""
2209  return _IMP_kernel.ParticleIndexKey_show_all(out)
2210 
2211  @staticmethod
2212  def get_all_strings():
2213  r"""get_all_strings() -> IMP::Vector< std::string >"""
2214  return _IMP_kernel.ParticleIndexKey_get_all_strings()
2215 
2216  @staticmethod
2217  def get_number_unique():
2218  r"""get_number_unique() -> unsigned int"""
2219  return _IMP_kernel.ParticleIndexKey_get_number_unique()
2220 
2221  def __str__(self):
2222  r"""__str__(ParticleIndexKey self) -> std::string"""
2223  return _IMP_kernel.ParticleIndexKey___str__(self)
2224 
2225  def __repr__(self):
2226  r"""__repr__(ParticleIndexKey self) -> std::string"""
2227  return _IMP_kernel.ParticleIndexKey___repr__(self)
2228  __swig_destroy__ = _IMP_kernel.delete_ParticleIndexKey
2229 
2230 # Register ParticleIndexKey in _IMP_kernel:
2231 _IMP_kernel.ParticleIndexKey_swigregister(ParticleIndexKey)
2232 class ObjectKey(_Value):
2233  r"""Proxy of C++ IMP::Key< 4 > class."""
2234 
2235  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2236 
2237  def __init__(self, *args):
2238  r"""
2239  __init__(ObjectKey self) -> ObjectKey
2240  __init__(ObjectKey self, std::string const & c, bool is_implicit_add_permitted=True) -> ObjectKey
2241  __init__(ObjectKey self, unsigned int i) -> ObjectKey
2242  """
2243  _IMP_kernel.ObjectKey_swiginit(self, _IMP_kernel.new_ObjectKey(*args))
2244 
2245  @staticmethod
2246  def add_key(sc):
2247  r"""add_key(std::string sc) -> unsigned int"""
2248  return _IMP_kernel.ObjectKey_add_key(sc)
2249 
2250  @staticmethod
2251  def get_key_exists(sc):
2252  r"""get_key_exists(std::string sc) -> bool"""
2253  return _IMP_kernel.ObjectKey_get_key_exists(sc)
2254 
2255  def get_string(self):
2256  r"""get_string(ObjectKey self) -> std::string const"""
2257  return _IMP_kernel.ObjectKey_get_string(self)
2258 
2259  def __cmp__(self, o):
2260  r"""__cmp__(ObjectKey self, ObjectKey o) -> int"""
2261  return _IMP_kernel.ObjectKey___cmp__(self, o)
2262 
2263  def __eq__(self, o):
2264  r"""__eq__(ObjectKey self, ObjectKey o) -> bool"""
2265  return _IMP_kernel.ObjectKey___eq__(self, o)
2266 
2267  def __ne__(self, o):
2268  r"""__ne__(ObjectKey self, ObjectKey o) -> bool"""
2269  return _IMP_kernel.ObjectKey___ne__(self, o)
2270 
2271  def __lt__(self, o):
2272  r"""__lt__(ObjectKey self, ObjectKey o) -> bool"""
2273  return _IMP_kernel.ObjectKey___lt__(self, o)
2274 
2275  def __gt__(self, o):
2276  r"""__gt__(ObjectKey self, ObjectKey o) -> bool"""
2277  return _IMP_kernel.ObjectKey___gt__(self, o)
2278 
2279  def __ge__(self, o):
2280  r"""__ge__(ObjectKey self, ObjectKey o) -> bool"""
2281  return _IMP_kernel.ObjectKey___ge__(self, o)
2282 
2283  def __le__(self, o):
2284  r"""__le__(ObjectKey self, ObjectKey o) -> bool"""
2285  return _IMP_kernel.ObjectKey___le__(self, o)
2286 
2287  def __hash__(self):
2288  r"""__hash__(ObjectKey self) -> std::size_t"""
2289  return _IMP_kernel.ObjectKey___hash__(self)
2290 
2291  def show(self, *args):
2292  r"""show(ObjectKey self, _ostream out=std::cout)"""
2293  return _IMP_kernel.ObjectKey_show(self, *args)
2294 
2295  @staticmethod
2296  def add_alias(old_key, new_name):
2297  r"""add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
2298  return _IMP_kernel.ObjectKey_add_alias(old_key, new_name)
2299 
2300  @staticmethod
2301  def get_number_of_keys():
2302  r"""get_number_of_keys() -> unsigned int"""
2303  return _IMP_kernel.ObjectKey_get_number_of_keys()
2304 
2305  def get_index(self):
2306  r"""get_index(ObjectKey self) -> unsigned int"""
2307  return _IMP_kernel.ObjectKey_get_index(self)
2308 
2309  @staticmethod
2310  def show_all(out):
2311  r"""show_all(_ostream out)"""
2312  return _IMP_kernel.ObjectKey_show_all(out)
2313 
2314  @staticmethod
2315  def get_all_strings():
2316  r"""get_all_strings() -> IMP::Vector< std::string >"""
2317  return _IMP_kernel.ObjectKey_get_all_strings()
2318 
2319  @staticmethod
2320  def get_number_unique():
2321  r"""get_number_unique() -> unsigned int"""
2322  return _IMP_kernel.ObjectKey_get_number_unique()
2323 
2324  def __str__(self):
2325  r"""__str__(ObjectKey self) -> std::string"""
2326  return _IMP_kernel.ObjectKey___str__(self)
2327 
2328  def __repr__(self):
2329  r"""__repr__(ObjectKey self) -> std::string"""
2330  return _IMP_kernel.ObjectKey___repr__(self)
2331  __swig_destroy__ = _IMP_kernel.delete_ObjectKey
2332 
2333 # Register ObjectKey in _IMP_kernel:
2334 _IMP_kernel.ObjectKey_swigregister(ObjectKey)
2335 class IntsKey(_Value):
2336  r"""Proxy of C++ IMP::Key< 5 > class."""
2337 
2338  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2339 
2340  def __init__(self, *args):
2341  r"""
2342  __init__(IntsKey self) -> IntsKey
2343  __init__(IntsKey self, std::string const & c, bool is_implicit_add_permitted=True) -> IntsKey
2344  __init__(IntsKey self, unsigned int i) -> IntsKey
2345  """
2346  _IMP_kernel.IntsKey_swiginit(self, _IMP_kernel.new_IntsKey(*args))
2347 
2348  @staticmethod
2349  def add_key(sc):
2350  r"""add_key(std::string sc) -> unsigned int"""
2351  return _IMP_kernel.IntsKey_add_key(sc)
2352 
2353  @staticmethod
2354  def get_key_exists(sc):
2355  r"""get_key_exists(std::string sc) -> bool"""
2356  return _IMP_kernel.IntsKey_get_key_exists(sc)
2357 
2358  def get_string(self):
2359  r"""get_string(IntsKey self) -> std::string const"""
2360  return _IMP_kernel.IntsKey_get_string(self)
2361 
2362  def __cmp__(self, o):
2363  r"""__cmp__(IntsKey self, IntsKey o) -> int"""
2364  return _IMP_kernel.IntsKey___cmp__(self, o)
2365 
2366  def __eq__(self, o):
2367  r"""__eq__(IntsKey self, IntsKey o) -> bool"""
2368  return _IMP_kernel.IntsKey___eq__(self, o)
2369 
2370  def __ne__(self, o):
2371  r"""__ne__(IntsKey self, IntsKey o) -> bool"""
2372  return _IMP_kernel.IntsKey___ne__(self, o)
2373 
2374  def __lt__(self, o):
2375  r"""__lt__(IntsKey self, IntsKey o) -> bool"""
2376  return _IMP_kernel.IntsKey___lt__(self, o)
2377 
2378  def __gt__(self, o):
2379  r"""__gt__(IntsKey self, IntsKey o) -> bool"""
2380  return _IMP_kernel.IntsKey___gt__(self, o)
2381 
2382  def __ge__(self, o):
2383  r"""__ge__(IntsKey self, IntsKey o) -> bool"""
2384  return _IMP_kernel.IntsKey___ge__(self, o)
2385 
2386  def __le__(self, o):
2387  r"""__le__(IntsKey self, IntsKey o) -> bool"""
2388  return _IMP_kernel.IntsKey___le__(self, o)
2389 
2390  def __hash__(self):
2391  r"""__hash__(IntsKey self) -> std::size_t"""
2392  return _IMP_kernel.IntsKey___hash__(self)
2393 
2394  def show(self, *args):
2395  r"""show(IntsKey self, _ostream out=std::cout)"""
2396  return _IMP_kernel.IntsKey_show(self, *args)
2397 
2398  @staticmethod
2399  def add_alias(old_key, new_name):
2400  r"""add_alias(IntsKey old_key, std::string new_name) -> IntsKey"""
2401  return _IMP_kernel.IntsKey_add_alias(old_key, new_name)
2402 
2403  @staticmethod
2404  def get_number_of_keys():
2405  r"""get_number_of_keys() -> unsigned int"""
2406  return _IMP_kernel.IntsKey_get_number_of_keys()
2407 
2408  def get_index(self):
2409  r"""get_index(IntsKey self) -> unsigned int"""
2410  return _IMP_kernel.IntsKey_get_index(self)
2411 
2412  @staticmethod
2413  def show_all(out):
2414  r"""show_all(_ostream out)"""
2415  return _IMP_kernel.IntsKey_show_all(out)
2416 
2417  @staticmethod
2418  def get_all_strings():
2419  r"""get_all_strings() -> IMP::Vector< std::string >"""
2420  return _IMP_kernel.IntsKey_get_all_strings()
2421 
2422  @staticmethod
2423  def get_number_unique():
2424  r"""get_number_unique() -> unsigned int"""
2425  return _IMP_kernel.IntsKey_get_number_unique()
2426 
2427  def __str__(self):
2428  r"""__str__(IntsKey self) -> std::string"""
2429  return _IMP_kernel.IntsKey___str__(self)
2430 
2431  def __repr__(self):
2432  r"""__repr__(IntsKey self) -> std::string"""
2433  return _IMP_kernel.IntsKey___repr__(self)
2434  __swig_destroy__ = _IMP_kernel.delete_IntsKey
2435 
2436 # Register IntsKey in _IMP_kernel:
2437 _IMP_kernel.IntsKey_swigregister(IntsKey)
2438 class ParticleIndexesKey(_Value):
2439  r"""Proxy of C++ IMP::Key< 6 > class."""
2440 
2441  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2442 
2443  def __init__(self, *args):
2444  r"""
2445  __init__(ParticleIndexesKey self) -> ParticleIndexesKey
2446  __init__(ParticleIndexesKey self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleIndexesKey
2447  __init__(ParticleIndexesKey self, unsigned int i) -> ParticleIndexesKey
2448  """
2449  _IMP_kernel.ParticleIndexesKey_swiginit(self, _IMP_kernel.new_ParticleIndexesKey(*args))
2450 
2451  @staticmethod
2452  def add_key(sc):
2453  r"""add_key(std::string sc) -> unsigned int"""
2454  return _IMP_kernel.ParticleIndexesKey_add_key(sc)
2455 
2456  @staticmethod
2457  def get_key_exists(sc):
2458  r"""get_key_exists(std::string sc) -> bool"""
2459  return _IMP_kernel.ParticleIndexesKey_get_key_exists(sc)
2460 
2461  def get_string(self):
2462  r"""get_string(ParticleIndexesKey self) -> std::string const"""
2463  return _IMP_kernel.ParticleIndexesKey_get_string(self)
2464 
2465  def __cmp__(self, o):
2466  r"""__cmp__(ParticleIndexesKey self, ParticleIndexesKey o) -> int"""
2467  return _IMP_kernel.ParticleIndexesKey___cmp__(self, o)
2468 
2469  def __eq__(self, o):
2470  r"""__eq__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2471  return _IMP_kernel.ParticleIndexesKey___eq__(self, o)
2472 
2473  def __ne__(self, o):
2474  r"""__ne__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2475  return _IMP_kernel.ParticleIndexesKey___ne__(self, o)
2476 
2477  def __lt__(self, o):
2478  r"""__lt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2479  return _IMP_kernel.ParticleIndexesKey___lt__(self, o)
2480 
2481  def __gt__(self, o):
2482  r"""__gt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2483  return _IMP_kernel.ParticleIndexesKey___gt__(self, o)
2484 
2485  def __ge__(self, o):
2486  r"""__ge__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2487  return _IMP_kernel.ParticleIndexesKey___ge__(self, o)
2488 
2489  def __le__(self, o):
2490  r"""__le__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
2491  return _IMP_kernel.ParticleIndexesKey___le__(self, o)
2492 
2493  def __hash__(self):
2494  r"""__hash__(ParticleIndexesKey self) -> std::size_t"""
2495  return _IMP_kernel.ParticleIndexesKey___hash__(self)
2496 
2497  def show(self, *args):
2498  r"""show(ParticleIndexesKey self, _ostream out=std::cout)"""
2499  return _IMP_kernel.ParticleIndexesKey_show(self, *args)
2500 
2501  @staticmethod
2502  def add_alias(old_key, new_name):
2503  r"""add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
2504  return _IMP_kernel.ParticleIndexesKey_add_alias(old_key, new_name)
2505 
2506  @staticmethod
2507  def get_number_of_keys():
2508  r"""get_number_of_keys() -> unsigned int"""
2509  return _IMP_kernel.ParticleIndexesKey_get_number_of_keys()
2510 
2511  def get_index(self):
2512  r"""get_index(ParticleIndexesKey self) -> unsigned int"""
2513  return _IMP_kernel.ParticleIndexesKey_get_index(self)
2514 
2515  @staticmethod
2516  def show_all(out):
2517  r"""show_all(_ostream out)"""
2518  return _IMP_kernel.ParticleIndexesKey_show_all(out)
2519 
2520  @staticmethod
2521  def get_all_strings():
2522  r"""get_all_strings() -> IMP::Vector< std::string >"""
2523  return _IMP_kernel.ParticleIndexesKey_get_all_strings()
2524 
2525  @staticmethod
2526  def get_number_unique():
2527  r"""get_number_unique() -> unsigned int"""
2528  return _IMP_kernel.ParticleIndexesKey_get_number_unique()
2529 
2530  def __str__(self):
2531  r"""__str__(ParticleIndexesKey self) -> std::string"""
2532  return _IMP_kernel.ParticleIndexesKey___str__(self)
2533 
2534  def __repr__(self):
2535  r"""__repr__(ParticleIndexesKey self) -> std::string"""
2536  return _IMP_kernel.ParticleIndexesKey___repr__(self)
2537  __swig_destroy__ = _IMP_kernel.delete_ParticleIndexesKey
2538 
2539 # Register ParticleIndexesKey in _IMP_kernel:
2540 _IMP_kernel.ParticleIndexesKey_swigregister(ParticleIndexesKey)
2541 class ModelKey(_Value):
2542  r"""Proxy of C++ IMP::Key< 8 > class."""
2543 
2544  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2545 
2546  def __init__(self, *args):
2547  r"""
2548  __init__(ModelKey self) -> ModelKey
2549  __init__(ModelKey self, std::string const & c, bool is_implicit_add_permitted=True) -> ModelKey
2550  __init__(ModelKey self, unsigned int i) -> ModelKey
2551  """
2552  _IMP_kernel.ModelKey_swiginit(self, _IMP_kernel.new_ModelKey(*args))
2553 
2554  @staticmethod
2555  def add_key(sc):
2556  r"""add_key(std::string sc) -> unsigned int"""
2557  return _IMP_kernel.ModelKey_add_key(sc)
2558 
2559  @staticmethod
2560  def get_key_exists(sc):
2561  r"""get_key_exists(std::string sc) -> bool"""
2562  return _IMP_kernel.ModelKey_get_key_exists(sc)
2563 
2564  def get_string(self):
2565  r"""get_string(ModelKey self) -> std::string const"""
2566  return _IMP_kernel.ModelKey_get_string(self)
2567 
2568  def __cmp__(self, o):
2569  r"""__cmp__(ModelKey self, ModelKey o) -> int"""
2570  return _IMP_kernel.ModelKey___cmp__(self, o)
2571 
2572  def __eq__(self, o):
2573  r"""__eq__(ModelKey self, ModelKey o) -> bool"""
2574  return _IMP_kernel.ModelKey___eq__(self, o)
2575 
2576  def __ne__(self, o):
2577  r"""__ne__(ModelKey self, ModelKey o) -> bool"""
2578  return _IMP_kernel.ModelKey___ne__(self, o)
2579 
2580  def __lt__(self, o):
2581  r"""__lt__(ModelKey self, ModelKey o) -> bool"""
2582  return _IMP_kernel.ModelKey___lt__(self, o)
2583 
2584  def __gt__(self, o):
2585  r"""__gt__(ModelKey self, ModelKey o) -> bool"""
2586  return _IMP_kernel.ModelKey___gt__(self, o)
2587 
2588  def __ge__(self, o):
2589  r"""__ge__(ModelKey self, ModelKey o) -> bool"""
2590  return _IMP_kernel.ModelKey___ge__(self, o)
2591 
2592  def __le__(self, o):
2593  r"""__le__(ModelKey self, ModelKey o) -> bool"""
2594  return _IMP_kernel.ModelKey___le__(self, o)
2595 
2596  def __hash__(self):
2597  r"""__hash__(ModelKey self) -> std::size_t"""
2598  return _IMP_kernel.ModelKey___hash__(self)
2599 
2600  def show(self, *args):
2601  r"""show(ModelKey self, _ostream out=std::cout)"""
2602  return _IMP_kernel.ModelKey_show(self, *args)
2603 
2604  @staticmethod
2605  def add_alias(old_key, new_name):
2606  r"""add_alias(ModelKey old_key, std::string new_name) -> ModelKey"""
2607  return _IMP_kernel.ModelKey_add_alias(old_key, new_name)
2608 
2609  @staticmethod
2610  def get_number_of_keys():
2611  r"""get_number_of_keys() -> unsigned int"""
2612  return _IMP_kernel.ModelKey_get_number_of_keys()
2613 
2614  def get_index(self):
2615  r"""get_index(ModelKey self) -> unsigned int"""
2616  return _IMP_kernel.ModelKey_get_index(self)
2617 
2618  @staticmethod
2619  def show_all(out):
2620  r"""show_all(_ostream out)"""
2621  return _IMP_kernel.ModelKey_show_all(out)
2622 
2623  @staticmethod
2624  def get_all_strings():
2625  r"""get_all_strings() -> IMP::Vector< std::string >"""
2626  return _IMP_kernel.ModelKey_get_all_strings()
2627 
2628  @staticmethod
2629  def get_number_unique():
2630  r"""get_number_unique() -> unsigned int"""
2631  return _IMP_kernel.ModelKey_get_number_unique()
2632 
2633  def __str__(self):
2634  r"""__str__(ModelKey self) -> std::string"""
2635  return _IMP_kernel.ModelKey___str__(self)
2636 
2637  def __repr__(self):
2638  r"""__repr__(ModelKey self) -> std::string"""
2639  return _IMP_kernel.ModelKey___repr__(self)
2640  __swig_destroy__ = _IMP_kernel.delete_ModelKey
2641 
2642 # Register ModelKey in _IMP_kernel:
2643 _IMP_kernel.ModelKey_swigregister(ModelKey)
2644 class TriggerKey(_Value):
2645  r"""Proxy of C++ IMP::Key< 11 > class."""
2646 
2647  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2648 
2649  def __init__(self, *args):
2650  r"""
2651  __init__(TriggerKey self) -> TriggerKey
2652  __init__(TriggerKey self, std::string const & c, bool is_implicit_add_permitted=True) -> TriggerKey
2653  __init__(TriggerKey self, unsigned int i) -> TriggerKey
2654  """
2655  _IMP_kernel.TriggerKey_swiginit(self, _IMP_kernel.new_TriggerKey(*args))
2656 
2657  @staticmethod
2658  def add_key(sc):
2659  r"""add_key(std::string sc) -> unsigned int"""
2660  return _IMP_kernel.TriggerKey_add_key(sc)
2661 
2662  @staticmethod
2663  def get_key_exists(sc):
2664  r"""get_key_exists(std::string sc) -> bool"""
2665  return _IMP_kernel.TriggerKey_get_key_exists(sc)
2666 
2667  def get_string(self):
2668  r"""get_string(TriggerKey self) -> std::string const"""
2669  return _IMP_kernel.TriggerKey_get_string(self)
2670 
2671  def __cmp__(self, o):
2672  r"""__cmp__(TriggerKey self, TriggerKey o) -> int"""
2673  return _IMP_kernel.TriggerKey___cmp__(self, o)
2674 
2675  def __eq__(self, o):
2676  r"""__eq__(TriggerKey self, TriggerKey o) -> bool"""
2677  return _IMP_kernel.TriggerKey___eq__(self, o)
2678 
2679  def __ne__(self, o):
2680  r"""__ne__(TriggerKey self, TriggerKey o) -> bool"""
2681  return _IMP_kernel.TriggerKey___ne__(self, o)
2682 
2683  def __lt__(self, o):
2684  r"""__lt__(TriggerKey self, TriggerKey o) -> bool"""
2685  return _IMP_kernel.TriggerKey___lt__(self, o)
2686 
2687  def __gt__(self, o):
2688  r"""__gt__(TriggerKey self, TriggerKey o) -> bool"""
2689  return _IMP_kernel.TriggerKey___gt__(self, o)
2690 
2691  def __ge__(self, o):
2692  r"""__ge__(TriggerKey self, TriggerKey o) -> bool"""
2693  return _IMP_kernel.TriggerKey___ge__(self, o)
2694 
2695  def __le__(self, o):
2696  r"""__le__(TriggerKey self, TriggerKey o) -> bool"""
2697  return _IMP_kernel.TriggerKey___le__(self, o)
2698 
2699  def __hash__(self):
2700  r"""__hash__(TriggerKey self) -> std::size_t"""
2701  return _IMP_kernel.TriggerKey___hash__(self)
2702 
2703  def show(self, *args):
2704  r"""show(TriggerKey self, _ostream out=std::cout)"""
2705  return _IMP_kernel.TriggerKey_show(self, *args)
2706 
2707  @staticmethod
2708  def add_alias(old_key, new_name):
2709  r"""add_alias(TriggerKey old_key, std::string new_name) -> TriggerKey"""
2710  return _IMP_kernel.TriggerKey_add_alias(old_key, new_name)
2711 
2712  @staticmethod
2713  def get_number_of_keys():
2714  r"""get_number_of_keys() -> unsigned int"""
2715  return _IMP_kernel.TriggerKey_get_number_of_keys()
2716 
2717  def get_index(self):
2718  r"""get_index(TriggerKey self) -> unsigned int"""
2719  return _IMP_kernel.TriggerKey_get_index(self)
2720 
2721  @staticmethod
2722  def show_all(out):
2723  r"""show_all(_ostream out)"""
2724  return _IMP_kernel.TriggerKey_show_all(out)
2725 
2726  @staticmethod
2727  def get_all_strings():
2728  r"""get_all_strings() -> IMP::Vector< std::string >"""
2729  return _IMP_kernel.TriggerKey_get_all_strings()
2730 
2731  @staticmethod
2732  def get_number_unique():
2733  r"""get_number_unique() -> unsigned int"""
2734  return _IMP_kernel.TriggerKey_get_number_unique()
2735 
2736  def __str__(self):
2737  r"""__str__(TriggerKey self) -> std::string"""
2738  return _IMP_kernel.TriggerKey___str__(self)
2739 
2740  def __repr__(self):
2741  r"""__repr__(TriggerKey self) -> std::string"""
2742  return _IMP_kernel.TriggerKey___repr__(self)
2743  __swig_destroy__ = _IMP_kernel.delete_TriggerKey
2744 
2745 # Register TriggerKey in _IMP_kernel:
2746 _IMP_kernel.TriggerKey_swigregister(TriggerKey)
2747 class ParticleIndex(_Value):
2748  r"""Proxy of C++ IMP::Index< IMP::ParticleIndexTag > class."""
2749 
2750  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2751 
2752  def __init__(self, *args):
2753  r"""
2754  __init__(ParticleIndex self, int i) -> ParticleIndex
2755  __init__(ParticleIndex self) -> ParticleIndex
2756  """
2757  _IMP_kernel.ParticleIndex_swiginit(self, _IMP_kernel.new_ParticleIndex(*args))
2758 
2759  def get_index(self):
2760  r"""get_index(ParticleIndex self) -> int"""
2761  return _IMP_kernel.ParticleIndex_get_index(self)
2762 
2763  def __cmp__(self, o):
2764  r"""__cmp__(ParticleIndex self, ParticleIndex o) -> int"""
2765  return _IMP_kernel.ParticleIndex___cmp__(self, o)
2766 
2767  def __eq__(self, o):
2768  r"""__eq__(ParticleIndex self, ParticleIndex o) -> bool"""
2769  return _IMP_kernel.ParticleIndex___eq__(self, o)
2770 
2771  def __ne__(self, o):
2772  r"""__ne__(ParticleIndex self, ParticleIndex o) -> bool"""
2773  return _IMP_kernel.ParticleIndex___ne__(self, o)
2774 
2775  def __lt__(self, o):
2776  r"""__lt__(ParticleIndex self, ParticleIndex o) -> bool"""
2777  return _IMP_kernel.ParticleIndex___lt__(self, o)
2778 
2779  def __gt__(self, o):
2780  r"""__gt__(ParticleIndex self, ParticleIndex o) -> bool"""
2781  return _IMP_kernel.ParticleIndex___gt__(self, o)
2782 
2783  def __ge__(self, o):
2784  r"""__ge__(ParticleIndex self, ParticleIndex o) -> bool"""
2785  return _IMP_kernel.ParticleIndex___ge__(self, o)
2786 
2787  def __le__(self, o):
2788  r"""__le__(ParticleIndex self, ParticleIndex o) -> bool"""
2789  return _IMP_kernel.ParticleIndex___le__(self, o)
2790 
2791  def show(self, *args):
2792  r"""show(ParticleIndex self, _ostream out=std::cout)"""
2793  return _IMP_kernel.ParticleIndex_show(self, *args)
2794 
2795  def __hash__(self):
2796  r"""__hash__(ParticleIndex self) -> std::size_t"""
2797  return _IMP_kernel.ParticleIndex___hash__(self)
2798 
2799  def __str__(self):
2800  r"""__str__(ParticleIndex self) -> std::string"""
2801  return _IMP_kernel.ParticleIndex___str__(self)
2802 
2803  def __repr__(self):
2804  r"""__repr__(ParticleIndex self) -> std::string"""
2805  return _IMP_kernel.ParticleIndex___repr__(self)
2806  __swig_destroy__ = _IMP_kernel.delete_ParticleIndex
2807 
2808 # Register ParticleIndex in _IMP_kernel:
2809 _IMP_kernel.ParticleIndex_swigregister(ParticleIndex)
2810 class FloatsKey(_Value):
2811  r"""Proxy of C++ IMP::Key< 10 > class."""
2812 
2813  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2814 
2815  def __init__(self, *args):
2816  r"""
2817  __init__(FloatsKey self) -> FloatsKey
2818  __init__(FloatsKey self, std::string const & c, bool is_implicit_add_permitted=True) -> FloatsKey
2819  __init__(FloatsKey self, unsigned int i) -> FloatsKey
2820  """
2821  _IMP_kernel.FloatsKey_swiginit(self, _IMP_kernel.new_FloatsKey(*args))
2822 
2823  @staticmethod
2824  def add_key(sc):
2825  r"""add_key(std::string sc) -> unsigned int"""
2826  return _IMP_kernel.FloatsKey_add_key(sc)
2827 
2828  @staticmethod
2829  def get_key_exists(sc):
2830  r"""get_key_exists(std::string sc) -> bool"""
2831  return _IMP_kernel.FloatsKey_get_key_exists(sc)
2832 
2833  def get_string(self):
2834  r"""get_string(FloatsKey self) -> std::string const"""
2835  return _IMP_kernel.FloatsKey_get_string(self)
2836 
2837  def __cmp__(self, o):
2838  r"""__cmp__(FloatsKey self, FloatsKey o) -> int"""
2839  return _IMP_kernel.FloatsKey___cmp__(self, o)
2840 
2841  def __eq__(self, o):
2842  r"""__eq__(FloatsKey self, FloatsKey o) -> bool"""
2843  return _IMP_kernel.FloatsKey___eq__(self, o)
2844 
2845  def __ne__(self, o):
2846  r"""__ne__(FloatsKey self, FloatsKey o) -> bool"""
2847  return _IMP_kernel.FloatsKey___ne__(self, o)
2848 
2849  def __lt__(self, o):
2850  r"""__lt__(FloatsKey self, FloatsKey o) -> bool"""
2851  return _IMP_kernel.FloatsKey___lt__(self, o)
2852 
2853  def __gt__(self, o):
2854  r"""__gt__(FloatsKey self, FloatsKey o) -> bool"""
2855  return _IMP_kernel.FloatsKey___gt__(self, o)
2856 
2857  def __ge__(self, o):
2858  r"""__ge__(FloatsKey self, FloatsKey o) -> bool"""
2859  return _IMP_kernel.FloatsKey___ge__(self, o)
2860 
2861  def __le__(self, o):
2862  r"""__le__(FloatsKey self, FloatsKey o) -> bool"""
2863  return _IMP_kernel.FloatsKey___le__(self, o)
2864 
2865  def __hash__(self):
2866  r"""__hash__(FloatsKey self) -> std::size_t"""
2867  return _IMP_kernel.FloatsKey___hash__(self)
2868 
2869  def show(self, *args):
2870  r"""show(FloatsKey self, _ostream out=std::cout)"""
2871  return _IMP_kernel.FloatsKey_show(self, *args)
2872 
2873  @staticmethod
2874  def add_alias(old_key, new_name):
2875  r"""add_alias(FloatsKey old_key, std::string new_name) -> FloatsKey"""
2876  return _IMP_kernel.FloatsKey_add_alias(old_key, new_name)
2877 
2878  @staticmethod
2879  def get_number_of_keys():
2880  r"""get_number_of_keys() -> unsigned int"""
2881  return _IMP_kernel.FloatsKey_get_number_of_keys()
2882 
2883  def get_index(self):
2884  r"""get_index(FloatsKey self) -> unsigned int"""
2885  return _IMP_kernel.FloatsKey_get_index(self)
2886 
2887  @staticmethod
2888  def show_all(out):
2889  r"""show_all(_ostream out)"""
2890  return _IMP_kernel.FloatsKey_show_all(out)
2891 
2892  @staticmethod
2893  def get_all_strings():
2894  r"""get_all_strings() -> IMP::Vector< std::string >"""
2895  return _IMP_kernel.FloatsKey_get_all_strings()
2896 
2897  @staticmethod
2898  def get_number_unique():
2899  r"""get_number_unique() -> unsigned int"""
2900  return _IMP_kernel.FloatsKey_get_number_unique()
2901 
2902  def __str__(self):
2903  r"""__str__(FloatsKey self) -> std::string"""
2904  return _IMP_kernel.FloatsKey___str__(self)
2905 
2906  def __repr__(self):
2907  r"""__repr__(FloatsKey self) -> std::string"""
2908  return _IMP_kernel.FloatsKey___repr__(self)
2909  __swig_destroy__ = _IMP_kernel.delete_FloatsKey
2910 
2911 # Register FloatsKey in _IMP_kernel:
2912 _IMP_kernel.FloatsKey_swigregister(FloatsKey)
2913 class SparseStringKey(_Value):
2914  r"""Proxy of C++ IMP::Key< 12 > class."""
2915 
2916  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2917 
2918  def __init__(self, *args):
2919  r"""
2920  __init__(SparseStringKey self) -> SparseStringKey
2921  __init__(SparseStringKey self, std::string const & c, bool is_implicit_add_permitted=True) -> SparseStringKey
2922  __init__(SparseStringKey self, unsigned int i) -> SparseStringKey
2923  """
2924  _IMP_kernel.SparseStringKey_swiginit(self, _IMP_kernel.new_SparseStringKey(*args))
2925 
2926  @staticmethod
2927  def add_key(sc):
2928  r"""add_key(std::string sc) -> unsigned int"""
2929  return _IMP_kernel.SparseStringKey_add_key(sc)
2930 
2931  @staticmethod
2932  def get_key_exists(sc):
2933  r"""get_key_exists(std::string sc) -> bool"""
2934  return _IMP_kernel.SparseStringKey_get_key_exists(sc)
2935 
2936  def get_string(self):
2937  r"""get_string(SparseStringKey self) -> std::string const"""
2938  return _IMP_kernel.SparseStringKey_get_string(self)
2939 
2940  def __cmp__(self, o):
2941  r"""__cmp__(SparseStringKey self, SparseStringKey o) -> int"""
2942  return _IMP_kernel.SparseStringKey___cmp__(self, o)
2943 
2944  def __eq__(self, o):
2945  r"""__eq__(SparseStringKey self, SparseStringKey o) -> bool"""
2946  return _IMP_kernel.SparseStringKey___eq__(self, o)
2947 
2948  def __ne__(self, o):
2949  r"""__ne__(SparseStringKey self, SparseStringKey o) -> bool"""
2950  return _IMP_kernel.SparseStringKey___ne__(self, o)
2951 
2952  def __lt__(self, o):
2953  r"""__lt__(SparseStringKey self, SparseStringKey o) -> bool"""
2954  return _IMP_kernel.SparseStringKey___lt__(self, o)
2955 
2956  def __gt__(self, o):
2957  r"""__gt__(SparseStringKey self, SparseStringKey o) -> bool"""
2958  return _IMP_kernel.SparseStringKey___gt__(self, o)
2959 
2960  def __ge__(self, o):
2961  r"""__ge__(SparseStringKey self, SparseStringKey o) -> bool"""
2962  return _IMP_kernel.SparseStringKey___ge__(self, o)
2963 
2964  def __le__(self, o):
2965  r"""__le__(SparseStringKey self, SparseStringKey o) -> bool"""
2966  return _IMP_kernel.SparseStringKey___le__(self, o)
2967 
2968  def __hash__(self):
2969  r"""__hash__(SparseStringKey self) -> std::size_t"""
2970  return _IMP_kernel.SparseStringKey___hash__(self)
2971 
2972  def show(self, *args):
2973  r"""show(SparseStringKey self, _ostream out=std::cout)"""
2974  return _IMP_kernel.SparseStringKey_show(self, *args)
2975 
2976  @staticmethod
2977  def add_alias(old_key, new_name):
2978  r"""add_alias(SparseStringKey old_key, std::string new_name) -> SparseStringKey"""
2979  return _IMP_kernel.SparseStringKey_add_alias(old_key, new_name)
2980 
2981  @staticmethod
2982  def get_number_of_keys():
2983  r"""get_number_of_keys() -> unsigned int"""
2984  return _IMP_kernel.SparseStringKey_get_number_of_keys()
2985 
2986  def get_index(self):
2987  r"""get_index(SparseStringKey self) -> unsigned int"""
2988  return _IMP_kernel.SparseStringKey_get_index(self)
2989 
2990  @staticmethod
2991  def show_all(out):
2992  r"""show_all(_ostream out)"""
2993  return _IMP_kernel.SparseStringKey_show_all(out)
2994 
2995  @staticmethod
2996  def get_all_strings():
2997  r"""get_all_strings() -> IMP::Vector< std::string >"""
2998  return _IMP_kernel.SparseStringKey_get_all_strings()
2999 
3000  @staticmethod
3001  def get_number_unique():
3002  r"""get_number_unique() -> unsigned int"""
3003  return _IMP_kernel.SparseStringKey_get_number_unique()
3004 
3005  def __str__(self):
3006  r"""__str__(SparseStringKey self) -> std::string"""
3007  return _IMP_kernel.SparseStringKey___str__(self)
3008 
3009  def __repr__(self):
3010  r"""__repr__(SparseStringKey self) -> std::string"""
3011  return _IMP_kernel.SparseStringKey___repr__(self)
3012  __swig_destroy__ = _IMP_kernel.delete_SparseStringKey
3013 
3014 # Register SparseStringKey in _IMP_kernel:
3015 _IMP_kernel.SparseStringKey_swigregister(SparseStringKey)
3016 class SparseIntKey(_Value):
3017  r"""Proxy of C++ IMP::Key< 13 > class."""
3018 
3019  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3020 
3021  def __init__(self, *args):
3022  r"""
3023  __init__(SparseIntKey self) -> SparseIntKey
3024  __init__(SparseIntKey self, std::string const & c, bool is_implicit_add_permitted=True) -> SparseIntKey
3025  __init__(SparseIntKey self, unsigned int i) -> SparseIntKey
3026  """
3027  _IMP_kernel.SparseIntKey_swiginit(self, _IMP_kernel.new_SparseIntKey(*args))
3028 
3029  @staticmethod
3030  def add_key(sc):
3031  r"""add_key(std::string sc) -> unsigned int"""
3032  return _IMP_kernel.SparseIntKey_add_key(sc)
3033 
3034  @staticmethod
3035  def get_key_exists(sc):
3036  r"""get_key_exists(std::string sc) -> bool"""
3037  return _IMP_kernel.SparseIntKey_get_key_exists(sc)
3038 
3039  def get_string(self):
3040  r"""get_string(SparseIntKey self) -> std::string const"""
3041  return _IMP_kernel.SparseIntKey_get_string(self)
3042 
3043  def __cmp__(self, o):
3044  r"""__cmp__(SparseIntKey self, SparseIntKey o) -> int"""
3045  return _IMP_kernel.SparseIntKey___cmp__(self, o)
3046 
3047  def __eq__(self, o):
3048  r"""__eq__(SparseIntKey self, SparseIntKey o) -> bool"""
3049  return _IMP_kernel.SparseIntKey___eq__(self, o)
3050 
3051  def __ne__(self, o):
3052  r"""__ne__(SparseIntKey self, SparseIntKey o) -> bool"""
3053  return _IMP_kernel.SparseIntKey___ne__(self, o)
3054 
3055  def __lt__(self, o):
3056  r"""__lt__(SparseIntKey self, SparseIntKey o) -> bool"""
3057  return _IMP_kernel.SparseIntKey___lt__(self, o)
3058 
3059  def __gt__(self, o):
3060  r"""__gt__(SparseIntKey self, SparseIntKey o) -> bool"""
3061  return _IMP_kernel.SparseIntKey___gt__(self, o)
3062 
3063  def __ge__(self, o):
3064  r"""__ge__(SparseIntKey self, SparseIntKey o) -> bool"""
3065  return _IMP_kernel.SparseIntKey___ge__(self, o)
3066 
3067  def __le__(self, o):
3068  r"""__le__(SparseIntKey self, SparseIntKey o) -> bool"""
3069  return _IMP_kernel.SparseIntKey___le__(self, o)
3070 
3071  def __hash__(self):
3072  r"""__hash__(SparseIntKey self) -> std::size_t"""
3073  return _IMP_kernel.SparseIntKey___hash__(self)
3074 
3075  def show(self, *args):
3076  r"""show(SparseIntKey self, _ostream out=std::cout)"""
3077  return _IMP_kernel.SparseIntKey_show(self, *args)
3078 
3079  @staticmethod
3080  def add_alias(old_key, new_name):
3081  r"""add_alias(SparseIntKey old_key, std::string new_name) -> SparseIntKey"""
3082  return _IMP_kernel.SparseIntKey_add_alias(old_key, new_name)
3083 
3084  @staticmethod
3085  def get_number_of_keys():
3086  r"""get_number_of_keys() -> unsigned int"""
3087  return _IMP_kernel.SparseIntKey_get_number_of_keys()
3088 
3089  def get_index(self):
3090  r"""get_index(SparseIntKey self) -> unsigned int"""
3091  return _IMP_kernel.SparseIntKey_get_index(self)
3092 
3093  @staticmethod
3094  def show_all(out):
3095  r"""show_all(_ostream out)"""
3096  return _IMP_kernel.SparseIntKey_show_all(out)
3097 
3098  @staticmethod
3099  def get_all_strings():
3100  r"""get_all_strings() -> IMP::Vector< std::string >"""
3101  return _IMP_kernel.SparseIntKey_get_all_strings()
3102 
3103  @staticmethod
3104  def get_number_unique():
3105  r"""get_number_unique() -> unsigned int"""
3106  return _IMP_kernel.SparseIntKey_get_number_unique()
3107 
3108  def __str__(self):
3109  r"""__str__(SparseIntKey self) -> std::string"""
3110  return _IMP_kernel.SparseIntKey___str__(self)
3111 
3112  def __repr__(self):
3113  r"""__repr__(SparseIntKey self) -> std::string"""
3114  return _IMP_kernel.SparseIntKey___repr__(self)
3115  __swig_destroy__ = _IMP_kernel.delete_SparseIntKey
3116 
3117 # Register SparseIntKey in _IMP_kernel:
3118 _IMP_kernel.SparseIntKey_swigregister(SparseIntKey)
3119 class SparseFloatKey(_Value):
3120  r"""Proxy of C++ IMP::Key< 14 > class."""
3121 
3122  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3123 
3124  def __init__(self, *args):
3125  r"""
3126  __init__(SparseFloatKey self) -> SparseFloatKey
3127  __init__(SparseFloatKey self, std::string const & c, bool is_implicit_add_permitted=True) -> SparseFloatKey
3128  __init__(SparseFloatKey self, unsigned int i) -> SparseFloatKey
3129  """
3130  _IMP_kernel.SparseFloatKey_swiginit(self, _IMP_kernel.new_SparseFloatKey(*args))
3131 
3132  @staticmethod
3133  def add_key(sc):
3134  r"""add_key(std::string sc) -> unsigned int"""
3135  return _IMP_kernel.SparseFloatKey_add_key(sc)
3136 
3137  @staticmethod
3138  def get_key_exists(sc):
3139  r"""get_key_exists(std::string sc) -> bool"""
3140  return _IMP_kernel.SparseFloatKey_get_key_exists(sc)
3141 
3142  def get_string(self):
3143  r"""get_string(SparseFloatKey self) -> std::string const"""
3144  return _IMP_kernel.SparseFloatKey_get_string(self)
3145 
3146  def __cmp__(self, o):
3147  r"""__cmp__(SparseFloatKey self, SparseFloatKey o) -> int"""
3148  return _IMP_kernel.SparseFloatKey___cmp__(self, o)
3149 
3150  def __eq__(self, o):
3151  r"""__eq__(SparseFloatKey self, SparseFloatKey o) -> bool"""
3152  return _IMP_kernel.SparseFloatKey___eq__(self, o)
3153 
3154  def __ne__(self, o):
3155  r"""__ne__(SparseFloatKey self, SparseFloatKey o) -> bool"""
3156  return _IMP_kernel.SparseFloatKey___ne__(self, o)
3157 
3158  def __lt__(self, o):
3159  r"""__lt__(SparseFloatKey self, SparseFloatKey o) -> bool"""
3160  return _IMP_kernel.SparseFloatKey___lt__(self, o)
3161 
3162  def __gt__(self, o):
3163  r"""__gt__(SparseFloatKey self, SparseFloatKey o) -> bool"""
3164  return _IMP_kernel.SparseFloatKey___gt__(self, o)
3165 
3166  def __ge__(self, o):
3167  r"""__ge__(SparseFloatKey self, SparseFloatKey o) -> bool"""
3168  return _IMP_kernel.SparseFloatKey___ge__(self, o)
3169 
3170  def __le__(self, o):
3171  r"""__le__(SparseFloatKey self, SparseFloatKey o) -> bool"""
3172  return _IMP_kernel.SparseFloatKey___le__(self, o)
3173 
3174  def __hash__(self):
3175  r"""__hash__(SparseFloatKey self) -> std::size_t"""
3176  return _IMP_kernel.SparseFloatKey___hash__(self)
3177 
3178  def show(self, *args):
3179  r"""show(SparseFloatKey self, _ostream out=std::cout)"""
3180  return _IMP_kernel.SparseFloatKey_show(self, *args)
3181 
3182  @staticmethod
3183  def add_alias(old_key, new_name):
3184  r"""add_alias(SparseFloatKey old_key, std::string new_name) -> SparseFloatKey"""
3185  return _IMP_kernel.SparseFloatKey_add_alias(old_key, new_name)
3186 
3187  @staticmethod
3188  def get_number_of_keys():
3189  r"""get_number_of_keys() -> unsigned int"""
3190  return _IMP_kernel.SparseFloatKey_get_number_of_keys()
3191 
3192  def get_index(self):
3193  r"""get_index(SparseFloatKey self) -> unsigned int"""
3194  return _IMP_kernel.SparseFloatKey_get_index(self)
3195 
3196  @staticmethod
3197  def show_all(out):
3198  r"""show_all(_ostream out)"""
3199  return _IMP_kernel.SparseFloatKey_show_all(out)
3200 
3201  @staticmethod
3202  def get_all_strings():
3203  r"""get_all_strings() -> IMP::Vector< std::string >"""
3204  return _IMP_kernel.SparseFloatKey_get_all_strings()
3205 
3206  @staticmethod
3207  def get_number_unique():
3208  r"""get_number_unique() -> unsigned int"""
3209  return _IMP_kernel.SparseFloatKey_get_number_unique()
3210 
3211  def __str__(self):
3212  r"""__str__(SparseFloatKey self) -> std::string"""
3213  return _IMP_kernel.SparseFloatKey___str__(self)
3214 
3215  def __repr__(self):
3216  r"""__repr__(SparseFloatKey self) -> std::string"""
3217  return _IMP_kernel.SparseFloatKey___repr__(self)
3218  __swig_destroy__ = _IMP_kernel.delete_SparseFloatKey
3219 
3220 # Register SparseFloatKey in _IMP_kernel:
3221 _IMP_kernel.SparseFloatKey_swigregister(SparseFloatKey)
3222 class SparseParticleIndexKey(_Value):
3223  r"""Proxy of C++ IMP::Key< 15 > class."""
3224 
3225  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3226 
3227  def __init__(self, *args):
3228  r"""
3229  __init__(SparseParticleIndexKey self) -> SparseParticleIndexKey
3230  __init__(SparseParticleIndexKey self, std::string const & c, bool is_implicit_add_permitted=True) -> SparseParticleIndexKey
3231  __init__(SparseParticleIndexKey self, unsigned int i) -> SparseParticleIndexKey
3232  """
3233  _IMP_kernel.SparseParticleIndexKey_swiginit(self, _IMP_kernel.new_SparseParticleIndexKey(*args))
3234 
3235  @staticmethod
3236  def add_key(sc):
3237  r"""add_key(std::string sc) -> unsigned int"""
3238  return _IMP_kernel.SparseParticleIndexKey_add_key(sc)
3239 
3240  @staticmethod
3241  def get_key_exists(sc):
3242  r"""get_key_exists(std::string sc) -> bool"""
3243  return _IMP_kernel.SparseParticleIndexKey_get_key_exists(sc)
3244 
3245  def get_string(self):
3246  r"""get_string(SparseParticleIndexKey self) -> std::string const"""
3247  return _IMP_kernel.SparseParticleIndexKey_get_string(self)
3248 
3249  def __cmp__(self, o):
3250  r"""__cmp__(SparseParticleIndexKey self, SparseParticleIndexKey o) -> int"""
3251  return _IMP_kernel.SparseParticleIndexKey___cmp__(self, o)
3252 
3253  def __eq__(self, o):
3254  r"""__eq__(SparseParticleIndexKey self, SparseParticleIndexKey o) -> bool"""
3255  return _IMP_kernel.SparseParticleIndexKey___eq__(self, o)
3256 
3257  def __ne__(self, o):
3258  r"""__ne__(SparseParticleIndexKey self, SparseParticleIndexKey o) -> bool"""
3259  return _IMP_kernel.SparseParticleIndexKey___ne__(self, o)
3260 
3261  def __lt__(self, o):
3262  r"""__lt__(SparseParticleIndexKey self, SparseParticleIndexKey o) -> bool"""
3263  return _IMP_kernel.SparseParticleIndexKey___lt__(self, o)
3264 
3265  def __gt__(self, o):
3266  r"""__gt__(SparseParticleIndexKey self, SparseParticleIndexKey o) -> bool"""
3267  return _IMP_kernel.SparseParticleIndexKey___gt__(self, o)
3268 
3269  def __ge__(self, o):
3270  r"""__ge__(SparseParticleIndexKey self, SparseParticleIndexKey o) -> bool"""
3271  return _IMP_kernel.SparseParticleIndexKey___ge__(self, o)
3272 
3273  def __le__(self, o):
3274  r"""__le__(SparseParticleIndexKey self, SparseParticleIndexKey o) -> bool"""
3275  return _IMP_kernel.SparseParticleIndexKey___le__(self, o)
3276 
3277  def __hash__(self):
3278  r"""__hash__(SparseParticleIndexKey self) -> std::size_t"""
3279  return _IMP_kernel.SparseParticleIndexKey___hash__(self)
3280 
3281  def show(self, *args):
3282  r"""show(SparseParticleIndexKey self, _ostream out=std::cout)"""
3283  return _IMP_kernel.SparseParticleIndexKey_show(self, *args)
3284 
3285  @staticmethod
3286  def add_alias(old_key, new_name):
3287  r"""add_alias(SparseParticleIndexKey old_key, std::string new_name) -> SparseParticleIndexKey"""
3288  return _IMP_kernel.SparseParticleIndexKey_add_alias(old_key, new_name)
3289 
3290  @staticmethod
3291  def get_number_of_keys():
3292  r"""get_number_of_keys() -> unsigned int"""
3293  return _IMP_kernel.SparseParticleIndexKey_get_number_of_keys()
3294 
3295  def get_index(self):
3296  r"""get_index(SparseParticleIndexKey self) -> unsigned int"""
3297  return _IMP_kernel.SparseParticleIndexKey_get_index(self)
3298 
3299  @staticmethod
3300  def show_all(out):
3301  r"""show_all(_ostream out)"""
3302  return _IMP_kernel.SparseParticleIndexKey_show_all(out)
3303 
3304  @staticmethod
3305  def get_all_strings():
3306  r"""get_all_strings() -> IMP::Vector< std::string >"""
3307  return _IMP_kernel.SparseParticleIndexKey_get_all_strings()
3308 
3309  @staticmethod
3310  def get_number_unique():
3311  r"""get_number_unique() -> unsigned int"""
3312  return _IMP_kernel.SparseParticleIndexKey_get_number_unique()
3313 
3314  def __str__(self):
3315  r"""__str__(SparseParticleIndexKey self) -> std::string"""
3316  return _IMP_kernel.SparseParticleIndexKey___str__(self)
3317 
3318  def __repr__(self):
3319  r"""__repr__(SparseParticleIndexKey self) -> std::string"""
3320  return _IMP_kernel.SparseParticleIndexKey___repr__(self)
3321  __swig_destroy__ = _IMP_kernel.delete_SparseParticleIndexKey
3322 
3323 # Register SparseParticleIndexKey in _IMP_kernel:
3324 _IMP_kernel.SparseParticleIndexKey_swigregister(SparseParticleIndexKey)
3325 
3326 def ParticlePair(a, b):
3327  return (a,b)
3328 def ParticleTriplet(a, b, c):
3329  return (a,b,c)
3330 def ParticleQuad(a, b, c, d):
3331  return (a,b,c,d)
3332 
3333 class FloatIndex(_Value):
3334  r"""Proxy of C++ IMP::FloatIndex class."""
3335 
3336  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3337 
3338  def __init__(self, *args):
3339  r"""__init__(FloatIndex self, ParticleIndex i0=ParticleIndex(), FloatKey i1=FloatKey()) -> FloatIndex"""
3340  _IMP_kernel.FloatIndex_swiginit(self, _IMP_kernel.new_FloatIndex(*args))
3341 
3342  def __hash__(self):
3343  r"""__hash__(FloatIndex self) -> std::size_t"""
3344  return _IMP_kernel.FloatIndex___hash__(self)
3345 
3346  def show(self, *args):
3347  r"""show(FloatIndex self, _ostream out=std::cout)"""
3348  return _IMP_kernel.FloatIndex_show(self, *args)
3349 
3350  def __cmp__(self, o):
3351  r"""__cmp__(FloatIndex self, FloatIndex o) -> int"""
3352  return _IMP_kernel.FloatIndex___cmp__(self, o)
3353 
3354  def __eq__(self, o):
3355  r"""__eq__(FloatIndex self, FloatIndex o) -> bool"""
3356  return _IMP_kernel.FloatIndex___eq__(self, o)
3357 
3358  def __ne__(self, o):
3359  r"""__ne__(FloatIndex self, FloatIndex o) -> bool"""
3360  return _IMP_kernel.FloatIndex___ne__(self, o)
3361 
3362  def __lt__(self, o):
3363  r"""__lt__(FloatIndex self, FloatIndex o) -> bool"""
3364  return _IMP_kernel.FloatIndex___lt__(self, o)
3365 
3366  def __gt__(self, o):
3367  r"""__gt__(FloatIndex self, FloatIndex o) -> bool"""
3368  return _IMP_kernel.FloatIndex___gt__(self, o)
3369 
3370  def __ge__(self, o):
3371  r"""__ge__(FloatIndex self, FloatIndex o) -> bool"""
3372  return _IMP_kernel.FloatIndex___ge__(self, o)
3373 
3374  def __le__(self, o):
3375  r"""__le__(FloatIndex self, FloatIndex o) -> bool"""
3376  return _IMP_kernel.FloatIndex___le__(self, o)
3377 
3378  def get_particle(self):
3379  r"""get_particle(FloatIndex self) -> ParticleIndex const &"""
3380  return _IMP_kernel.FloatIndex_get_particle(self)
3381 
3382  def set_particle(self, v):
3383  r"""set_particle(FloatIndex self, ParticleIndex const & v)"""
3384  return _IMP_kernel.FloatIndex_set_particle(self, v)
3385 
3386  def get_key(self):
3387  r"""get_key(FloatIndex self) -> FloatKey const &"""
3388  return _IMP_kernel.FloatIndex_get_key(self)
3389 
3390  def set_key(self, v):
3391  r"""set_key(FloatIndex self, FloatKey const & v)"""
3392  return _IMP_kernel.FloatIndex_set_key(self, v)
3393 
3394  def __str__(self):
3395  r"""__str__(FloatIndex self) -> std::string"""
3396  return _IMP_kernel.FloatIndex___str__(self)
3397 
3398  def __repr__(self):
3399  r"""__repr__(FloatIndex self) -> std::string"""
3400  return _IMP_kernel.FloatIndex___repr__(self)
3401  __swig_destroy__ = _IMP_kernel.delete_FloatIndex
3402 
3403 # Register FloatIndex in _IMP_kernel:
3404 _IMP_kernel.FloatIndex_swigregister(FloatIndex)
3405 class _ParticleIndexTag(object):
3406  r"""Proxy of C++ IMP::ParticleIndexTag class."""
3407 
3408  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3409  __repr__ = _swig_repr
3410 
3411  def __init__(self):
3412  r"""__init__(_ParticleIndexTag self) -> _ParticleIndexTag"""
3413  _IMP_kernel._ParticleIndexTag_swiginit(self, _IMP_kernel.new__ParticleIndexTag())
3414  __swig_destroy__ = _IMP_kernel.delete__ParticleIndexTag
3415 
3416 # Register _ParticleIndexTag in _IMP_kernel:
3417 _IMP_kernel._ParticleIndexTag_swigregister(_ParticleIndexTag)
3418 class ModelObject(Object):
3419  r"""Proxy of C++ IMP::ModelObject class."""
3420 
3421  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3422 
3423  def __init__(self, *args):
3424  r"""
3425  __init__(ModelObject self, Model m, std::string name) -> ModelObject
3426  __init__(ModelObject self) -> ModelObject
3427  """
3428  if self.__class__ == ModelObject:
3429  _self = None
3430  else:
3431  _self = self
3432  _IMP_kernel.ModelObject_swiginit(self, _IMP_kernel.new_ModelObject(_self, *args))
3433 
3434  if self.__class__ != ModelObject:
3435  _director_objects.register(self)
3436 
3437 
3438 
3439  __swig_destroy__ = _IMP_kernel.delete_ModelObject
3440 
3441  def get_model(self):
3442  m = _IMP_kernel.ModelObject_get_model(self)
3443  if m in _models_set:
3444  m = _models_set_get(m)
3445  return m
3446 
3447 
3448 
3449  def get_inputs(self):
3450  r"""get_inputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3451  return _IMP_kernel.ModelObject_get_inputs(self)
3452 
3453  def get_outputs(self):
3454  r"""get_outputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3455  return _IMP_kernel.ModelObject_get_outputs(self)
3456 
3457  def get_interactions(self):
3458  r"""get_interactions(ModelObject self) -> IMP::ModelObjectsTemps"""
3459  return _IMP_kernel.ModelObject_get_interactions(self)
3460 
3461  def get_has_dependencies(self):
3462  r"""get_has_dependencies(ModelObject self) -> bool"""
3463  return _IMP_kernel.ModelObject_get_has_dependencies(self)
3464 
3465  def set_has_dependencies(self, tf):
3466  r"""set_has_dependencies(ModelObject self, bool tf)"""
3467  return _IMP_kernel.ModelObject_set_has_dependencies(self, tf)
3468 
3469  def set_has_required_score_states(self, tf):
3470  r"""set_has_required_score_states(ModelObject self, bool tf)"""
3471  return _IMP_kernel.ModelObject_set_has_required_score_states(self, tf)
3472 
3473  def get_has_required_score_states(self):
3474  r"""get_has_required_score_states(ModelObject self) -> bool"""
3475  return _IMP_kernel.ModelObject_get_has_required_score_states(self)
3476 
3477  def get_required_score_states(self):
3478  r"""get_required_score_states(ModelObject self) -> IMP::ScoreStatesTemp const &"""
3479  return _IMP_kernel.ModelObject_get_required_score_states(self)
3480 
3481  def handle_set_has_required_score_states(self, arg0):
3482  r"""handle_set_has_required_score_states(ModelObject self, bool arg0)"""
3483  return _IMP_kernel.ModelObject_handle_set_has_required_score_states(self, arg0)
3484 
3485  def do_get_inputs(self):
3486  r"""do_get_inputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3487  return _IMP_kernel.ModelObject_do_get_inputs(self)
3488 
3489  def do_get_outputs(self):
3490  r"""do_get_outputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3491  return _IMP_kernel.ModelObject_do_get_outputs(self)
3492 
3493  def do_get_interactions(self):
3494  r"""do_get_interactions(ModelObject self) -> IMP::ModelObjectsTemps"""
3495  return _IMP_kernel.ModelObject_do_get_interactions(self)
3496 
3497  def __str__(self):
3498  r"""__str__(ModelObject self) -> std::string"""
3499  return _IMP_kernel.ModelObject___str__(self)
3500 
3501  def __repr__(self):
3502  r"""__repr__(ModelObject self) -> std::string"""
3503  return _IMP_kernel.ModelObject___repr__(self)
3504 
3505  @staticmethod
3506  def get_from(o):
3507  return _object_cast_to_ModelObject(o)
3508 
3509 
3510  def get_type_name(self):
3511  return self.__class__.__name__
3512  def do_show(self, out):
3513  pass
3514  def get_version_info(self):
3515  if"IMP" == "IMP":
3516  return VersionInfo(self.__module__,
3517  __import__(self.__module__).get_module_version())
3518  else:
3519  return IMP.VersionInfo(self.__module__,
3520  __import__(self.__module__).get_module_version())
3521  @staticmethod
3522  def get_from(o):
3523  return _object_cast_to_ModelObject(o)
3524 
3525  def __disown__(self):
3526  self.this.disown()
3527  _IMP_kernel.disown_ModelObject(self)
3528  return weakref.proxy(self)
3529 
3530  def do_destroy(self):
3531  r"""do_destroy(ModelObject self)"""
3532  return _IMP_kernel.ModelObject_do_destroy(self)
3533 
3534 # Register ModelObject in _IMP_kernel:
3535 _IMP_kernel.ModelObject_swigregister(ModelObject)
3536 cvar = _IMP_kernel.cvar
3537 NO_MAX = cvar.NO_MAX
3538 BAD_SCORE = cvar.BAD_SCORE
3539 
3540 class _ParticleInputs(object):
3541  r"""Proxy of C++ IMP::ParticleInputs class."""
3542 
3543  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3544 
3545  def __init__(self, *args, **kwargs):
3546  raise AttributeError("No constructor defined - class is abstract")
3547  __repr__ = _swig_repr
3548 
3549  def get_inputs(self, m, pis):
3550  r"""get_inputs(_ParticleInputs self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3551  return _IMP_kernel._ParticleInputs_get_inputs(self, m, pis)
3552 
3553 # Register _ParticleInputs in _IMP_kernel:
3554 _IMP_kernel._ParticleInputs_swigregister(_ParticleInputs)
3555 class _ParticleOutputs(object):
3556  r"""Proxy of C++ IMP::ParticleOutputs class."""
3557 
3558  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3559 
3560  def __init__(self, *args, **kwargs):
3561  raise AttributeError("No constructor defined - class is abstract")
3562  __repr__ = _swig_repr
3563 
3564  def get_outputs(self, m, pis):
3565  r"""get_outputs(_ParticleOutputs self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3566  return _IMP_kernel._ParticleOutputs_get_outputs(self, m, pis)
3567 
3568 # Register _ParticleOutputs in _IMP_kernel:
3569 _IMP_kernel._ParticleOutputs_swigregister(_ParticleOutputs)
3570 
3571 def get_input_particles(mos):
3572  r"""get_input_particles(IMP::ModelObjectsTemp const & mos) -> IMP::ParticlesTemp"""
3573  return _IMP_kernel.get_input_particles(mos)
3574 
3575 def get_input_containers(mos):
3576  r"""get_input_containers(IMP::ModelObjectsTemp const & mos) -> IMP::ContainersTemp"""
3577  return _IMP_kernel.get_input_containers(mos)
3578 
3579 def get_output_particles(mos):
3580  r"""get_output_particles(IMP::ModelObjectsTemp const & mos) -> IMP::ParticlesTemp"""
3581  return _IMP_kernel.get_output_particles(mos)
3582 
3583 def get_output_containers(mos):
3584  r"""get_output_containers(IMP::ModelObjectsTemp const & mos) -> IMP::ContainersTemp"""
3585  return _IMP_kernel.get_output_containers(mos)
3586 class DerivativeAccumulator(object):
3587  r"""Proxy of C++ IMP::DerivativeAccumulator class."""
3588 
3589  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3590  __repr__ = _swig_repr
3591 
3592  def __init__(self, *args):
3593  r"""
3594  __init__(DerivativeAccumulator self, DerivativeAccumulator arg2) -> DerivativeAccumulator
3595  __init__(DerivativeAccumulator self, double weight=1.0) -> DerivativeAccumulator
3596  __init__(DerivativeAccumulator self, DerivativeAccumulator copy, double weight) -> DerivativeAccumulator
3597  """
3598  _IMP_kernel.DerivativeAccumulator_swiginit(self, _IMP_kernel.new_DerivativeAccumulator(*args))
3599 
3600  def __call__(self, value):
3601  r"""__call__(DerivativeAccumulator self, double const value) -> double"""
3602  return _IMP_kernel.DerivativeAccumulator___call__(self, value)
3603 
3604  def get_weight(self):
3605  r"""get_weight(DerivativeAccumulator self) -> double"""
3606  return _IMP_kernel.DerivativeAccumulator_get_weight(self)
3607 
3608  def show(self, *args):
3609  r"""show(DerivativeAccumulator self, _ostream out=std::cout)"""
3610  return _IMP_kernel.DerivativeAccumulator_show(self, *args)
3611  __swig_destroy__ = _IMP_kernel.delete_DerivativeAccumulator
3612 
3613 # Register DerivativeAccumulator in _IMP_kernel:
3614 _IMP_kernel.DerivativeAccumulator_swigregister(DerivativeAccumulator)
3615 class EvaluationState(object):
3616  r"""Proxy of C++ IMP::EvaluationState class."""
3617 
3618  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3619  score = property(_IMP_kernel.EvaluationState_score_get, _IMP_kernel.EvaluationState_score_set, doc=r"""score : double""")
3620  good = property(_IMP_kernel.EvaluationState_good_get, _IMP_kernel.EvaluationState_good_set, doc=r"""good : bool""")
3621 
3622  def __init__(self, *args):
3623  r"""
3624  __init__(EvaluationState self, double oscore, bool ogood) -> EvaluationState
3625  __init__(EvaluationState self) -> EvaluationState
3626  """
3627  _IMP_kernel.EvaluationState_swiginit(self, _IMP_kernel.new_EvaluationState(*args))
3628 
3629  def show(self, *args):
3630  r"""show(EvaluationState self, _ostream out=std::cout)"""
3631  return _IMP_kernel.EvaluationState_show(self, *args)
3632 
3633  def __str__(self):
3634  r"""__str__(EvaluationState self) -> std::string"""
3635  return _IMP_kernel.EvaluationState___str__(self)
3636 
3637  def __repr__(self):
3638  r"""__repr__(EvaluationState self) -> std::string"""
3639  return _IMP_kernel.EvaluationState___repr__(self)
3640  __swig_destroy__ = _IMP_kernel.delete_EvaluationState
3641 
3642 # Register EvaluationState in _IMP_kernel:
3643 _IMP_kernel.EvaluationState_swigregister(EvaluationState)
3644 class ScoreAccumulator(_Value):
3645  r"""Proxy of C++ IMP::ScoreAccumulator class."""
3646 
3647  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3648 
3649  def __init__(self, *args):
3650  r"""
3651  __init__(ScoreAccumulator self, ScoreAccumulator arg2) -> ScoreAccumulator
3652  __init__(ScoreAccumulator self) -> ScoreAccumulator
3653  __init__(ScoreAccumulator self, ScoreAccumulator o, Restraint r) -> ScoreAccumulator
3654  __init__(ScoreAccumulator self, ScoreAccumulator o, double weight, double local_max) -> ScoreAccumulator
3655  """
3656  _IMP_kernel.ScoreAccumulator_swiginit(self, _IMP_kernel.new_ScoreAccumulator(*args))
3657 
3658  def add_score(self, score):
3659  r"""add_score(ScoreAccumulator self, double score)"""
3660  return _IMP_kernel.ScoreAccumulator_add_score(self, score)
3661 
3662  def get_abort_evaluation(self):
3663  r"""get_abort_evaluation(ScoreAccumulator self) -> bool"""
3664  return _IMP_kernel.ScoreAccumulator_get_abort_evaluation(self)
3665 
3666  def get_is_evaluate_if_below(self):
3667  r"""get_is_evaluate_if_below(ScoreAccumulator self) -> bool"""
3668  return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_below(self)
3669 
3670  def get_is_evaluate_if_good(self):
3671  r"""get_is_evaluate_if_good(ScoreAccumulator self) -> bool"""
3672  return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_good(self)
3673 
3674  def get_maximum(self):
3675  r"""get_maximum(ScoreAccumulator self) -> double"""
3676  return _IMP_kernel.ScoreAccumulator_get_maximum(self)
3677 
3678  def get_derivative_accumulator(self):
3679  r"""get_derivative_accumulator(ScoreAccumulator self) -> DerivativeAccumulator"""
3680  return _IMP_kernel.ScoreAccumulator_get_derivative_accumulator(self)
3681 
3682  def show(self, *args):
3683  r"""show(ScoreAccumulator self, _ostream out=std::cout)"""
3684  return _IMP_kernel.ScoreAccumulator_show(self, *args)
3685 
3686  def __str__(self):
3687  r"""__str__(ScoreAccumulator self) -> std::string"""
3688  return _IMP_kernel.ScoreAccumulator___str__(self)
3689 
3690  def __repr__(self):
3691  r"""__repr__(ScoreAccumulator self) -> std::string"""
3692  return _IMP_kernel.ScoreAccumulator___repr__(self)
3693  __swig_destroy__ = _IMP_kernel.delete_ScoreAccumulator
3694 
3695 # Register ScoreAccumulator in _IMP_kernel:
3696 _IMP_kernel.ScoreAccumulator_swigregister(ScoreAccumulator)
3697 class ScoreState(ModelObject):
3698  r"""Proxy of C++ IMP::ScoreState class."""
3699 
3700  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3701 
3702  def set_can_skip(self, can_skip):
3703  r"""set_can_skip(ScoreState self, bool can_skip)"""
3704  return _IMP_kernel.ScoreState_set_can_skip(self, can_skip)
3705 
3706  def __init__(self, *args):
3707  r"""
3708  __init__(ScoreState self, Model m, std::string name) -> ScoreState
3709  __init__(ScoreState self) -> ScoreState
3710  """
3711  if self.__class__ == ScoreState:
3712  _self = None
3713  else:
3714  _self = self
3715  _IMP_kernel.ScoreState_swiginit(self, _IMP_kernel.new_ScoreState(_self, *args))
3716 
3717  if self.__class__ != ScoreState:
3718  _director_objects.register(self)
3719 
3720 
3721 
3722 
3723  def before_evaluate(self):
3724  r"""before_evaluate(ScoreState self)"""
3725  return _IMP_kernel.ScoreState_before_evaluate(self)
3726 
3727  def after_evaluate(self, accpt):
3728  r"""after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
3729  return _IMP_kernel.ScoreState_after_evaluate(self, accpt)
3730 
3731  def get_can_skip(self):
3732  r"""get_can_skip(ScoreState self) -> bool"""
3733  return _IMP_kernel.ScoreState_get_can_skip(self)
3734 
3735  def get_has_update_order(self):
3736  r"""get_has_update_order(ScoreState self) -> bool"""
3737  return _IMP_kernel.ScoreState_get_has_update_order(self)
3738 
3739  def get_update_order(self):
3740  r"""get_update_order(ScoreState self) -> unsigned int"""
3741  return _IMP_kernel.ScoreState_get_update_order(self)
3742 
3743  def handle_set_has_required_score_states(self, tf):
3744  r"""handle_set_has_required_score_states(ScoreState self, bool tf)"""
3745  return _IMP_kernel.ScoreState_handle_set_has_required_score_states(self, tf)
3746 
3747  def do_before_evaluate(self):
3748  r"""do_before_evaluate(ScoreState self)"""
3749  return _IMP_kernel.ScoreState_do_before_evaluate(self)
3750 
3751  def do_after_evaluate(self, accpt):
3752  r"""do_after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
3753  return _IMP_kernel.ScoreState_do_after_evaluate(self, accpt)
3754  __swig_destroy__ = _IMP_kernel.delete_ScoreState
3755 
3756  def __str__(self):
3757  r"""__str__(ScoreState self) -> std::string"""
3758  return _IMP_kernel.ScoreState___str__(self)
3759 
3760  def __repr__(self):
3761  r"""__repr__(ScoreState self) -> std::string"""
3762  return _IMP_kernel.ScoreState___repr__(self)
3763 
3764  @staticmethod
3765  def get_from(o):
3766  return _object_cast_to_ScoreState(o)
3767 
3768 
3769  def get_type_name(self):
3770  return self.__class__.__name__
3771  def do_show(self, out):
3772  pass
3773  def get_version_info(self):
3774  if"IMP" == "IMP":
3775  return VersionInfo(self.__module__,
3776  __import__(self.__module__).get_module_version())
3777  else:
3778  return IMP.VersionInfo(self.__module__,
3779  __import__(self.__module__).get_module_version())
3780  @staticmethod
3781  def get_from(o):
3782  return _object_cast_to_ScoreState(o)
3783 
3784  def __disown__(self):
3785  self.this.disown()
3786  _IMP_kernel.disown_ScoreState(self)
3787  return weakref.proxy(self)
3788 
3789  def do_destroy(self):
3790  r"""do_destroy(ScoreState self)"""
3791  return _IMP_kernel.ScoreState_do_destroy(self)
3792 
3793  def do_get_inputs(self):
3794  r"""do_get_inputs(ScoreState self) -> IMP::ModelObjectsTemp"""
3795  return _IMP_kernel.ScoreState_do_get_inputs(self)
3796 
3797  def do_get_outputs(self):
3798  r"""do_get_outputs(ScoreState self) -> IMP::ModelObjectsTemp"""
3799  return _IMP_kernel.ScoreState_do_get_outputs(self)
3800 
3801  def do_get_interactions(self):
3802  r"""do_get_interactions(ScoreState self) -> IMP::ModelObjectsTemps"""
3803  return _IMP_kernel.ScoreState_do_get_interactions(self)
3804 
3805 # Register ScoreState in _IMP_kernel:
3806 _IMP_kernel.ScoreState_swigregister(ScoreState)
3807 
3808 def get_update_order(input):
3809  r"""get_update_order(IMP::ScoreStatesTemp input) -> IMP::ScoreStatesTemp"""
3810  return _IMP_kernel.get_update_order(input)
3811 class Constraint(ScoreState):
3812  r"""Proxy of C++ IMP::Constraint class."""
3813 
3814  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3815 
3816  def __init__(self, *args):
3817  r"""
3818  __init__(Constraint self, Model m, std::string name="Constraint %1%") -> Constraint
3819  __init__(Constraint self) -> Constraint
3820  """
3821  if self.__class__ == Constraint:
3822  _self = None
3823  else:
3824  _self = self
3825  _IMP_kernel.Constraint_swiginit(self, _IMP_kernel.new_Constraint(_self, *args))
3826 
3827  if self.__class__ != Constraint:
3828  _director_objects.register(self)
3829 
3830 
3831 
3832 
3833  def do_update_attributes(self):
3834  r"""do_update_attributes(Constraint self)"""
3835  return _IMP_kernel.Constraint_do_update_attributes(self)
3836 
3837  def do_update_derivatives(self, da):
3838  r"""do_update_derivatives(Constraint self, DerivativeAccumulator da)"""
3839  return _IMP_kernel.Constraint_do_update_derivatives(self, da)
3840 
3841  def do_before_evaluate(self):
3842  r"""do_before_evaluate(Constraint self)"""
3843  return _IMP_kernel.Constraint_do_before_evaluate(self)
3844 
3845  def do_after_evaluate(self, da):
3846  r"""do_after_evaluate(Constraint self, DerivativeAccumulator da)"""
3847  return _IMP_kernel.Constraint_do_after_evaluate(self, da)
3848  __swig_destroy__ = _IMP_kernel.delete_Constraint
3849 
3850  def __str__(self):
3851  r"""__str__(Constraint self) -> std::string"""
3852  return _IMP_kernel.Constraint___str__(self)
3853 
3854  def __repr__(self):
3855  r"""__repr__(Constraint self) -> std::string"""
3856  return _IMP_kernel.Constraint___repr__(self)
3857 
3858  @staticmethod
3859  def get_from(o):
3860  return _object_cast_to_Constraint(o)
3861 
3862 
3863  def get_type_name(self):
3864  return self.__class__.__name__
3865  def do_show(self, out):
3866  pass
3867  def get_version_info(self):
3868  if"IMP" == "IMP":
3869  return VersionInfo(self.__module__,
3870  __import__(self.__module__).get_module_version())
3871  else:
3872  return IMP.VersionInfo(self.__module__,
3873  __import__(self.__module__).get_module_version())
3874  @staticmethod
3875  def get_from(o):
3876  return _object_cast_to_Constraint(o)
3877 
3878  def __disown__(self):
3879  self.this.disown()
3880  _IMP_kernel.disown_Constraint(self)
3881  return weakref.proxy(self)
3882 
3883  def do_destroy(self):
3884  r"""do_destroy(Constraint self)"""
3885  return _IMP_kernel.Constraint_do_destroy(self)
3886 
3887  def do_get_inputs(self):
3888  r"""do_get_inputs(Constraint self) -> IMP::ModelObjectsTemp"""
3889  return _IMP_kernel.Constraint_do_get_inputs(self)
3890 
3891  def do_get_outputs(self):
3892  r"""do_get_outputs(Constraint self) -> IMP::ModelObjectsTemp"""
3893  return _IMP_kernel.Constraint_do_get_outputs(self)
3894 
3895  def do_get_interactions(self):
3896  r"""do_get_interactions(Constraint self) -> IMP::ModelObjectsTemps"""
3897  return _IMP_kernel.Constraint_do_get_interactions(self)
3898 
3899 # Register Constraint in _IMP_kernel:
3900 _IMP_kernel.Constraint_swigregister(Constraint)
3901 class Container(ModelObject):
3902  r"""Proxy of C++ IMP::Container class."""
3903 
3904  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3905 
3906  def __init__(self, *args):
3907  r"""
3908  __init__(Container self, Model m, std::string name="Container %1%") -> Container
3909  __init__(Container self) -> Container
3910  """
3911  if self.__class__ == Container:
3912  _self = None
3913  else:
3914  _self = self
3915  _IMP_kernel.Container_swiginit(self, _IMP_kernel.new_Container(_self, *args))
3916 
3917  if self.__class__ != Container:
3918  _director_objects.register(self)
3919 
3920 
3921 
3922 
3923  def do_get_contents_hash(self):
3924  r"""do_get_contents_hash(Container self) -> std::size_t"""
3925  return _IMP_kernel.Container_do_get_contents_hash(self)
3926 
3927  def get_all_possible_indexes(self):
3928  r"""get_all_possible_indexes(Container self) -> IMP::ParticleIndexes"""
3929  return _IMP_kernel.Container_get_all_possible_indexes(self)
3930 
3931  def get_contents_hash(self):
3932  r"""get_contents_hash(Container self) -> std::size_t"""
3933  return _IMP_kernel.Container_get_contents_hash(self)
3934 
3935  def do_get_outputs(self):
3936  r"""do_get_outputs(Container self) -> IMP::ModelObjectsTemp"""
3937  return _IMP_kernel.Container_do_get_outputs(self)
3938 
3939  def get_is_decomposable(self):
3940  r"""get_is_decomposable(Container self) -> bool"""
3941  return _IMP_kernel.Container_get_is_decomposable(self)
3942 
3943  def validate_readable(self):
3944  r"""validate_readable(Container self)"""
3945  return _IMP_kernel.Container_validate_readable(self)
3946 
3947  def validate_writable(self):
3948  r"""validate_writable(Container self)"""
3949  return _IMP_kernel.Container_validate_writable(self)
3950 
3951  def set_is_readable(self, tf):
3952  r"""set_is_readable(Container self, bool tf)"""
3953  return _IMP_kernel.Container_set_is_readable(self, tf)
3954 
3955  def set_is_writable(self, tf):
3956  r"""set_is_writable(Container self, bool tf)"""
3957  return _IMP_kernel.Container_set_is_writable(self, tf)
3958  __swig_destroy__ = _IMP_kernel.delete_Container
3959 
3960  def __str__(self):
3961  r"""__str__(Container self) -> std::string"""
3962  return _IMP_kernel.Container___str__(self)
3963 
3964  def __repr__(self):
3965  r"""__repr__(Container self) -> std::string"""
3966  return _IMP_kernel.Container___repr__(self)
3967 
3968  @staticmethod
3969  def get_from(o):
3970  return _object_cast_to_Container(o)
3971 
3972 
3973  def get_type_name(self):
3974  return self.__class__.__name__
3975  def do_show(self, out):
3976  pass
3977  def get_version_info(self):
3978  if"IMP" == "IMP":
3979  return VersionInfo(self.__module__,
3980  __import__(self.__module__).get_module_version())
3981  else:
3982  return IMP.VersionInfo(self.__module__,
3983  __import__(self.__module__).get_module_version())
3984  @staticmethod
3985  def get_from(o):
3986  return _object_cast_to_Container(o)
3987 
3988  def __disown__(self):
3989  self.this.disown()
3990  _IMP_kernel.disown_Container(self)
3991  return weakref.proxy(self)
3992 
3993  def do_destroy(self):
3994  r"""do_destroy(Container self)"""
3995  return _IMP_kernel.Container_do_destroy(self)
3996 
3997  def handle_set_has_required_score_states(self, arg0):
3998  r"""handle_set_has_required_score_states(Container self, bool arg0)"""
3999  return _IMP_kernel.Container_handle_set_has_required_score_states(self, arg0)
4000 
4001  def do_get_inputs(self):
4002  r"""do_get_inputs(Container self) -> IMP::ModelObjectsTemp"""
4003  return _IMP_kernel.Container_do_get_inputs(self)
4004 
4005  def do_get_interactions(self):
4006  r"""do_get_interactions(Container self) -> IMP::ModelObjectsTemps"""
4007  return _IMP_kernel.Container_do_get_interactions(self)
4008 
4009 # Register Container in _IMP_kernel:
4010 _IMP_kernel.Container_swigregister(Container)
4011 class RestraintInfo(Object):
4012  r"""Proxy of C++ IMP::RestraintInfo class."""
4013 
4014  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4015 
4016  def __init__(self, *args):
4017  r"""__init__(RestraintInfo self, std::string name="RestraintInfo %1%") -> RestraintInfo"""
4018  _IMP_kernel.RestraintInfo_swiginit(self, _IMP_kernel.new_RestraintInfo(*args))
4019 
4020  def clear(self):
4021  r"""clear(RestraintInfo self)"""
4022  return _IMP_kernel.RestraintInfo_clear(self)
4023 
4024  def add_int(self, key, value):
4025  r"""add_int(RestraintInfo self, std::string key, int value)"""
4026  return _IMP_kernel.RestraintInfo_add_int(self, key, value)
4027 
4028  def get_number_of_int(self):
4029  r"""get_number_of_int(RestraintInfo self) -> unsigned int"""
4030  return _IMP_kernel.RestraintInfo_get_number_of_int(self)
4031 
4032  def get_int_key(self, i):
4033  r"""get_int_key(RestraintInfo self, unsigned int i) -> std::string"""
4034  return _IMP_kernel.RestraintInfo_get_int_key(self, i)
4035 
4036  def get_int_value(self, i):
4037  r"""get_int_value(RestraintInfo self, unsigned int i) -> int"""
4038  return _IMP_kernel.RestraintInfo_get_int_value(self, i)
4039 
4040  def add_float(self, key, value):
4041  r"""add_float(RestraintInfo self, std::string key, double value)"""
4042  return _IMP_kernel.RestraintInfo_add_float(self, key, value)
4043 
4044  def get_number_of_float(self):
4045  r"""get_number_of_float(RestraintInfo self) -> unsigned int"""
4046  return _IMP_kernel.RestraintInfo_get_number_of_float(self)
4047 
4048  def get_float_key(self, i):
4049  r"""get_float_key(RestraintInfo self, unsigned int i) -> std::string"""
4050  return _IMP_kernel.RestraintInfo_get_float_key(self, i)
4051 
4052  def get_float_value(self, i):
4053  r"""get_float_value(RestraintInfo self, unsigned int i) -> double"""
4054  return _IMP_kernel.RestraintInfo_get_float_value(self, i)
4055 
4056  def add_string(self, key, value):
4057  r"""add_string(RestraintInfo self, std::string key, std::string value)"""
4058  return _IMP_kernel.RestraintInfo_add_string(self, key, value)
4059 
4060  def get_number_of_string(self):
4061  r"""get_number_of_string(RestraintInfo self) -> unsigned int"""
4062  return _IMP_kernel.RestraintInfo_get_number_of_string(self)
4063 
4064  def get_string_key(self, i):
4065  r"""get_string_key(RestraintInfo self, unsigned int i) -> std::string"""
4066  return _IMP_kernel.RestraintInfo_get_string_key(self, i)
4067 
4068  def get_string_value(self, i):
4069  r"""get_string_value(RestraintInfo self, unsigned int i) -> std::string"""
4070  return _IMP_kernel.RestraintInfo_get_string_value(self, i)
4071 
4072  def add_filename(self, key, value):
4073  r"""add_filename(RestraintInfo self, std::string key, std::string value)"""
4074  return _IMP_kernel.RestraintInfo_add_filename(self, key, value)
4075 
4076  def get_number_of_filename(self):
4077  r"""get_number_of_filename(RestraintInfo self) -> unsigned int"""
4078  return _IMP_kernel.RestraintInfo_get_number_of_filename(self)
4079 
4080  def get_filename_key(self, i):
4081  r"""get_filename_key(RestraintInfo self, unsigned int i) -> std::string"""
4082  return _IMP_kernel.RestraintInfo_get_filename_key(self, i)
4083 
4084  def get_filename_value(self, i):
4085  r"""get_filename_value(RestraintInfo self, unsigned int i) -> std::string"""
4086  return _IMP_kernel.RestraintInfo_get_filename_value(self, i)
4087 
4088  def add_floats(self, key, value):
4089  r"""add_floats(RestraintInfo self, std::string key, IMP::Floats value)"""
4090  return _IMP_kernel.RestraintInfo_add_floats(self, key, value)
4091 
4092  def get_number_of_floats(self):
4093  r"""get_number_of_floats(RestraintInfo self) -> unsigned int"""
4094  return _IMP_kernel.RestraintInfo_get_number_of_floats(self)
4095 
4096  def get_floats_key(self, i):
4097  r"""get_floats_key(RestraintInfo self, unsigned int i) -> std::string"""
4098  return _IMP_kernel.RestraintInfo_get_floats_key(self, i)
4099 
4100  def get_floats_value(self, i):
4101  r"""get_floats_value(RestraintInfo self, unsigned int i) -> IMP::Floats"""
4102  return _IMP_kernel.RestraintInfo_get_floats_value(self, i)
4103 
4104  def add_ints(self, key, value):
4105  r"""add_ints(RestraintInfo self, std::string key, IMP::Ints value)"""
4106  return _IMP_kernel.RestraintInfo_add_ints(self, key, value)
4107 
4108  def get_number_of_ints(self):
4109  r"""get_number_of_ints(RestraintInfo self) -> unsigned int"""
4110  return _IMP_kernel.RestraintInfo_get_number_of_ints(self)
4111 
4112  def get_ints_key(self, i):
4113  r"""get_ints_key(RestraintInfo self, unsigned int i) -> std::string"""
4114  return _IMP_kernel.RestraintInfo_get_ints_key(self, i)
4115 
4116  def get_ints_value(self, i):
4117  r"""get_ints_value(RestraintInfo self, unsigned int i) -> IMP::Ints"""
4118  return _IMP_kernel.RestraintInfo_get_ints_value(self, i)
4119 
4120  def add_strings(self, key, value):
4121  r"""add_strings(RestraintInfo self, std::string key, IMP::Strings value)"""
4122  return _IMP_kernel.RestraintInfo_add_strings(self, key, value)
4123 
4124  def get_number_of_strings(self):
4125  r"""get_number_of_strings(RestraintInfo self) -> unsigned int"""
4126  return _IMP_kernel.RestraintInfo_get_number_of_strings(self)
4127 
4128  def get_strings_key(self, i):
4129  r"""get_strings_key(RestraintInfo self, unsigned int i) -> std::string"""
4130  return _IMP_kernel.RestraintInfo_get_strings_key(self, i)
4131 
4132  def get_strings_value(self, i):
4133  r"""get_strings_value(RestraintInfo self, unsigned int i) -> IMP::Strings"""
4134  return _IMP_kernel.RestraintInfo_get_strings_value(self, i)
4135 
4136  def add_filenames(self, key, value):
4137  r"""add_filenames(RestraintInfo self, std::string key, IMP::Strings value)"""
4138  return _IMP_kernel.RestraintInfo_add_filenames(self, key, value)
4139 
4140  def get_number_of_filenames(self):
4141  r"""get_number_of_filenames(RestraintInfo self) -> unsigned int"""
4142  return _IMP_kernel.RestraintInfo_get_number_of_filenames(self)
4143 
4144  def get_filenames_key(self, i):
4145  r"""get_filenames_key(RestraintInfo self, unsigned int i) -> std::string"""
4146  return _IMP_kernel.RestraintInfo_get_filenames_key(self, i)
4147 
4148  def get_filenames_value(self, i):
4149  r"""get_filenames_value(RestraintInfo self, unsigned int i) -> IMP::Strings"""
4150  return _IMP_kernel.RestraintInfo_get_filenames_value(self, i)
4151 
4152  def add_particle_indexes(self, key, value):
4153  r"""add_particle_indexes(RestraintInfo self, std::string key, IMP::ParticleIndexes value)"""
4154  return _IMP_kernel.RestraintInfo_add_particle_indexes(self, key, value)
4155 
4156  def get_number_of_particle_indexes(self):
4157  r"""get_number_of_particle_indexes(RestraintInfo self) -> unsigned int"""
4158  return _IMP_kernel.RestraintInfo_get_number_of_particle_indexes(self)
4159 
4160  def get_particle_indexes_key(self, i):
4161  r"""get_particle_indexes_key(RestraintInfo self, unsigned int i) -> std::string"""
4162  return _IMP_kernel.RestraintInfo_get_particle_indexes_key(self, i)
4163 
4164  def get_particle_indexes_value(self, i):
4165  r"""get_particle_indexes_value(RestraintInfo self, unsigned int i) -> IMP::ParticleIndexes"""
4166  return _IMP_kernel.RestraintInfo_get_particle_indexes_value(self, i)
4167 
4168  def get_version_info(self):
4169  r"""get_version_info(RestraintInfo self) -> VersionInfo"""
4170  return _IMP_kernel.RestraintInfo_get_version_info(self)
4171  __swig_destroy__ = _IMP_kernel.delete_RestraintInfo
4172 
4173  def __str__(self):
4174  r"""__str__(RestraintInfo self) -> std::string"""
4175  return _IMP_kernel.RestraintInfo___str__(self)
4176 
4177  def __repr__(self):
4178  r"""__repr__(RestraintInfo self) -> std::string"""
4179  return _IMP_kernel.RestraintInfo___repr__(self)
4180 
4181  @staticmethod
4182  def get_from(o):
4183  return _object_cast_to_RestraintInfo(o)
4184 
4185 
4186 # Register RestraintInfo in _IMP_kernel:
4187 _IMP_kernel.RestraintInfo_swigregister(RestraintInfo)
4188 class Restraint(ModelObject):
4189  r"""Proxy of C++ IMP::Restraint class."""
4190 
4191  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4192 
4193  def __init__(self, *args):
4194  r"""
4195  __init__(Restraint self, Model m, std::string name) -> Restraint
4196  __init__(Restraint self) -> Restraint
4197  """
4198  if self.__class__ == Restraint:
4199  _self = None
4200  else:
4201  _self = self
4202  _IMP_kernel.Restraint_swiginit(self, _IMP_kernel.new_Restraint(_self, *args))
4203 
4204  if self.__class__ != Restraint:
4205  _director_objects.register(self)
4206 
4207 
4208 
4209 
4210  def get_score(self):
4211  r"""get_score(Restraint self) -> double"""
4212  return _IMP_kernel.Restraint_get_score(self)
4213 
4214  def evaluate(self, calc_derivs):
4215  r"""evaluate(Restraint self, bool calc_derivs) -> double"""
4216  return _IMP_kernel.Restraint_evaluate(self, calc_derivs)
4217 
4218  def evaluate_moved(self, calc_derivs, moved_pis, reset_pis):
4219  r"""evaluate_moved(Restraint self, bool calc_derivs, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
4220  return _IMP_kernel.Restraint_evaluate_moved(self, calc_derivs, moved_pis, reset_pis)
4221 
4222  def evaluate_moved_if_below(self, calc_derivatives, moved_pis, reset_pis, max):
4223  r"""evaluate_moved_if_below(Restraint self, bool calc_derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, double max) -> double"""
4224  return _IMP_kernel.Restraint_evaluate_moved_if_below(self, calc_derivatives, moved_pis, reset_pis, max)
4225 
4226  def evaluate_moved_if_good(self, calc_derivatives, moved_pis, reset_pis):
4227  r"""evaluate_moved_if_good(Restraint self, bool calc_derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
4228  return _IMP_kernel.Restraint_evaluate_moved_if_good(self, calc_derivatives, moved_pis, reset_pis)
4229 
4230  def evaluate_if_good(self, calc_derivatives):
4231  r"""evaluate_if_good(Restraint self, bool calc_derivatives) -> double"""
4232  return _IMP_kernel.Restraint_evaluate_if_good(self, calc_derivatives)
4233 
4234  def evaluate_if_below(self, calc_derivatives, max):
4235  r"""evaluate_if_below(Restraint self, bool calc_derivatives, double max) -> double"""
4236  return _IMP_kernel.Restraint_evaluate_if_below(self, calc_derivatives, max)
4237 
4238  def unprotected_evaluate(self, da):
4239  r"""unprotected_evaluate(Restraint self, DerivativeAccumulator da) -> double"""
4240  return _IMP_kernel.Restraint_unprotected_evaluate(self, da)
4241 
4242  def unprotected_evaluate_moved(self, da, moved_pis, reset_pis):
4243  r"""unprotected_evaluate_moved(Restraint self, DerivativeAccumulator da, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
4244  return _IMP_kernel.Restraint_unprotected_evaluate_moved(self, da, moved_pis, reset_pis)
4245 
4246  def unprotected_evaluate_if_good(self, da, max):
4247  r"""unprotected_evaluate_if_good(Restraint self, DerivativeAccumulator da, double max) -> double"""
4248  return _IMP_kernel.Restraint_unprotected_evaluate_if_good(self, da, max)
4249 
4250  def unprotected_evaluate_if_below(self, da, max):
4251  r"""unprotected_evaluate_if_below(Restraint self, DerivativeAccumulator da, double max) -> double"""
4252  return _IMP_kernel.Restraint_unprotected_evaluate_if_below(self, da, max)
4253 
4254  def unprotected_evaluate_moved_if_below(self, da, moved_pis, reset_pis, max):
4255  r"""unprotected_evaluate_moved_if_below(Restraint self, DerivativeAccumulator da, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, double max) -> double"""
4256  return _IMP_kernel.Restraint_unprotected_evaluate_moved_if_below(self, da, moved_pis, reset_pis, max)
4257 
4258  def unprotected_evaluate_moved_if_good(self, da, moved_pis, reset_pis, max):
4259  r"""unprotected_evaluate_moved_if_good(Restraint self, DerivativeAccumulator da, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, double max) -> double"""
4260  return _IMP_kernel.Restraint_unprotected_evaluate_moved_if_good(self, da, moved_pis, reset_pis, max)
4261 
4262  def get_static_info(self):
4263  r"""get_static_info(Restraint self) -> RestraintInfo"""
4264  return _IMP_kernel.Restraint_get_static_info(self)
4265 
4266  def get_dynamic_info(self):
4267  r"""get_dynamic_info(Restraint self) -> RestraintInfo"""
4268  return _IMP_kernel.Restraint_get_dynamic_info(self)
4269 
4270  def add_score_and_derivatives(self, sa):
4271  r"""add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
4272  return _IMP_kernel.Restraint_add_score_and_derivatives(self, sa)
4273 
4274  def add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis):
4275  r"""add_score_and_derivatives_moved(Restraint self, ScoreAccumulator sa, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
4276  return _IMP_kernel.Restraint_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis)
4277 
4278  def create_decomposition(self):
4279  r"""create_decomposition(Restraint self) -> Restraint"""
4280  return _IMP_kernel.Restraint_create_decomposition(self)
4281 
4282  def create_current_decomposition(self):
4283  r"""create_current_decomposition(Restraint self) -> Restraint"""
4284  return _IMP_kernel.Restraint_create_current_decomposition(self)
4285 
4286  def set_weight(self, weight):
4287  r"""set_weight(Restraint self, IMP::Float weight)"""
4288  return _IMP_kernel.Restraint_set_weight(self, weight)
4289 
4290  def get_weight(self):
4291  r"""get_weight(Restraint self) -> IMP::Float"""
4292  return _IMP_kernel.Restraint_get_weight(self)
4293 
4294  def get_maximum_score(self):
4295  r"""get_maximum_score(Restraint self) -> double"""
4296  return _IMP_kernel.Restraint_get_maximum_score(self)
4297 
4298  def set_maximum_score(self, s):
4299  r"""set_maximum_score(Restraint self, double s)"""
4300  return _IMP_kernel.Restraint_set_maximum_score(self, s)
4301 
4302  def create_scoring_function(self, *args):
4303  r"""create_scoring_function(Restraint self, double weight=1.0, double max=NO_MAX) -> ScoringFunction"""
4304  return _IMP_kernel.Restraint_create_scoring_function(self, *args)
4305 
4306  def set_last_score(self, s):
4307  r"""set_last_score(Restraint self, double s)"""
4308  return _IMP_kernel.Restraint_set_last_score(self, s)
4309 
4310  def set_last_last_score(self, s):
4311  r"""set_last_last_score(Restraint self, double s)"""
4312  return _IMP_kernel.Restraint_set_last_last_score(self, s)
4313 
4314  def get_last_score(self):
4315  r"""get_last_score(Restraint self) -> double"""
4316  return _IMP_kernel.Restraint_get_last_score(self)
4317 
4318  def get_last_last_score(self):
4319  r"""get_last_last_score(Restraint self) -> double"""
4320  return _IMP_kernel.Restraint_get_last_last_score(self)
4321 
4322  def get_is_aggregate(self):
4323  r"""get_is_aggregate(Restraint self) -> bool"""
4324  return _IMP_kernel.Restraint_get_is_aggregate(self)
4325 
4326  def get_was_good(self):
4327  r"""get_was_good(Restraint self) -> bool"""
4328  return _IMP_kernel.Restraint_get_was_good(self)
4329  __swig_destroy__ = _IMP_kernel.delete_Restraint
4330 
4331  def do_create_decomposition(self):
4332  r"""do_create_decomposition(Restraint self) -> IMP::Restraints"""
4333  return _IMP_kernel.Restraint_do_create_decomposition(self)
4334 
4335  def do_create_current_decomposition(self):
4336  r"""do_create_current_decomposition(Restraint self) -> IMP::Restraints"""
4337  return _IMP_kernel.Restraint_do_create_current_decomposition(self)
4338 
4339  def do_add_score_and_derivatives(self, sa):
4340  r"""do_add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
4341  return _IMP_kernel.Restraint_do_add_score_and_derivatives(self, sa)
4342 
4343  def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis):
4344  r"""do_add_score_and_derivatives_moved(Restraint self, ScoreAccumulator sa, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
4345  return _IMP_kernel.Restraint_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis)
4346 
4347  def do_get_outputs(self):
4348  r"""do_get_outputs(Restraint self) -> IMP::ModelObjectsTemp"""
4349  return _IMP_kernel.Restraint_do_get_outputs(self)
4350  is_aggregate_ = property(_IMP_kernel.Restraint_is_aggregate__get, _IMP_kernel.Restraint_is_aggregate__set, doc=r"""is_aggregate_ : bool""")
4351 
4352  def __str__(self):
4353  r"""__str__(Restraint self) -> std::string"""
4354  return _IMP_kernel.Restraint___str__(self)
4355 
4356  def __repr__(self):
4357  r"""__repr__(Restraint self) -> std::string"""
4358  return _IMP_kernel.Restraint___repr__(self)
4359 
4360  @staticmethod
4361  def get_from(o):
4362  return _object_cast_to_Restraint(o)
4363 
4364 
4365  def get_type_name(self):
4366  return self.__class__.__name__
4367  def do_show(self, out):
4368  pass
4369  def get_version_info(self):
4370  if"IMP" == "IMP":
4371  return VersionInfo(self.__module__,
4372  __import__(self.__module__).get_module_version())
4373  else:
4374  return IMP.VersionInfo(self.__module__,
4375  __import__(self.__module__).get_module_version())
4376  @staticmethod
4377  def get_from(o):
4378  return _object_cast_to_Restraint(o)
4379 
4380  def __disown__(self):
4381  self.this.disown()
4382  _IMP_kernel.disown_Restraint(self)
4383  return weakref.proxy(self)
4384 
4385  def do_destroy(self):
4386  r"""do_destroy(Restraint self)"""
4387  return _IMP_kernel.Restraint_do_destroy(self)
4388 
4389  def handle_set_has_required_score_states(self, arg0):
4390  r"""handle_set_has_required_score_states(Restraint self, bool arg0)"""
4391  return _IMP_kernel.Restraint_handle_set_has_required_score_states(self, arg0)
4392 
4393  def do_get_inputs(self):
4394  r"""do_get_inputs(Restraint self) -> IMP::ModelObjectsTemp"""
4395  return _IMP_kernel.Restraint_do_get_inputs(self)
4396 
4397  def do_get_interactions(self):
4398  r"""do_get_interactions(Restraint self) -> IMP::ModelObjectsTemps"""
4399  return _IMP_kernel.Restraint_do_get_interactions(self)
4400 
4401 # Register Restraint in _IMP_kernel:
4402 _IMP_kernel.Restraint_swigregister(Restraint)
4403 class _RestraintsAdaptor(_InputAdaptor):
4404  r"""Proxy of C++ IMP::RestraintsAdaptor class."""
4405 
4406  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4407  __repr__ = _swig_repr
4408 
4409  def __init__(self, *args):
4410  r"""
4411  __init__(_RestraintsAdaptor self) -> _RestraintsAdaptor
4412  __init__(_RestraintsAdaptor self, IMP::Restraints const & sf) -> _RestraintsAdaptor
4413  __init__(_RestraintsAdaptor self, IMP::RestraintsTemp const & sf) -> _RestraintsAdaptor
4414  __init__(_RestraintsAdaptor self, Restraint sf) -> _RestraintsAdaptor
4415  """
4416  _IMP_kernel._RestraintsAdaptor_swiginit(self, _IMP_kernel.new__RestraintsAdaptor(*args))
4417  __swig_destroy__ = _IMP_kernel.delete__RestraintsAdaptor
4418 
4419 # Register _RestraintsAdaptor in _IMP_kernel:
4420 _IMP_kernel._RestraintsAdaptor_swigregister(_RestraintsAdaptor)
4421 class RestraintSet(Restraint):
4422  r"""Proxy of C++ IMP::RestraintSet class."""
4423 
4424  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4425 
4426  def __init__(self, *args):
4427  r"""
4428  __init__(RestraintSet self, Model m, double weight, std::string const & name="RestraintSet %1%") -> RestraintSet
4429  __init__(RestraintSet self, Model m, std::string const & name="RestraintSet %1%") -> RestraintSet
4430  __init__(RestraintSet self, IMP::RestraintsTemp const & rs, double weight, std::string const & name="RestraintSet %1%") -> RestraintSet
4431  __init__(RestraintSet self) -> RestraintSet
4432  """
4433  if self.__class__ == RestraintSet:
4434  _self = None
4435  else:
4436  _self = self
4437  _IMP_kernel.RestraintSet_swiginit(self, _IMP_kernel.new_RestraintSet(_self, *args))
4438 
4439  if self.__class__ != RestraintSet:
4440  _director_objects.register(self)
4441 
4442 
4443 
4444 
4445  def unprotected_evaluate(self, da):
4446  r"""unprotected_evaluate(RestraintSet self, DerivativeAccumulator da) -> double"""
4447  return _IMP_kernel.RestraintSet_unprotected_evaluate(self, da)
4448 
4449  def get_type_name(self):
4450  r"""get_type_name(RestraintSet self) -> std::string"""
4451  return _IMP_kernel.RestraintSet_get_type_name(self)
4452 
4453  def get_version_info(self):
4454  r"""get_version_info(RestraintSet self) -> VersionInfo"""
4455  return _IMP_kernel.RestraintSet_get_version_info(self)
4456  __swig_destroy__ = _IMP_kernel.delete_RestraintSet
4457  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)
4458  def __set_restraints(self, obj): _list_util.set_varlist(self.restraints, obj)
4459  def __del_restraints(self): _list_util.del_varlist(self.restraints)
4460  restraints = property(__get_restraints, __set_restraints, __del_restraints, doc="List of ##ucnames")
4461 
4462  def remove_restraint(self, d):
4463  r"""remove_restraint(RestraintSet self, Restraint d)"""
4464  return _IMP_kernel.RestraintSet_remove_restraint(self, d)
4465 
4466  def _python_index_restraint(self, d, start, stop):
4467  r"""_python_index_restraint(RestraintSet self, Restraint d, unsigned int start, unsigned int stop) -> unsigned int"""
4468  return _IMP_kernel.RestraintSet__python_index_restraint(self, d, start, stop)
4469 
4470  def remove_restraints(self, d):
4471  r"""remove_restraints(RestraintSet self, IMP::Restraints const & d)"""
4472  return _IMP_kernel.RestraintSet_remove_restraints(self, d)
4473 
4474  def set_restraints(self, ps):
4475  r"""set_restraints(RestraintSet self, IMP::Restraints const & ps)"""
4476  return _IMP_kernel.RestraintSet_set_restraints(self, ps)
4477 
4478  def set_restraints_order(self, objs):
4479  r"""set_restraints_order(RestraintSet self, IMP::Restraints const & objs)"""
4480  return _IMP_kernel.RestraintSet_set_restraints_order(self, objs)
4481 
4482  def add_restraint(self, obj):
4483  r"""add_restraint(RestraintSet self, Restraint obj) -> unsigned int"""
4484  return _IMP_kernel.RestraintSet_add_restraint(self, obj)
4485 
4486  def add_restraints(self, objs):
4487  r"""add_restraints(RestraintSet self, IMP::Restraints const & objs)"""
4488  return _IMP_kernel.RestraintSet_add_restraints(self, objs)
4489 
4490  def clear_restraints(self):
4491  r"""clear_restraints(RestraintSet self)"""
4492  return _IMP_kernel.RestraintSet_clear_restraints(self)
4493 
4494  def get_number_of_restraints(self):
4495  r"""get_number_of_restraints(RestraintSet self) -> unsigned int"""
4496  return _IMP_kernel.RestraintSet_get_number_of_restraints(self)
4497 
4498  def get_has_restraints(self):
4499  r"""get_has_restraints(RestraintSet self) -> bool"""
4500  return _IMP_kernel.RestraintSet_get_has_restraints(self)
4501 
4502  def get_restraint(self, i):
4503  r"""get_restraint(RestraintSet self, unsigned int i) -> Restraint"""
4504  return _IMP_kernel.RestraintSet_get_restraint(self, i)
4505 
4506  def get_restraints(self):
4507  r"""get_restraints(RestraintSet self) -> IMP::Restraints"""
4508  return _IMP_kernel.RestraintSet_get_restraints(self)
4509 
4510  def erase_restraint(self, i):
4511  r"""erase_restraint(RestraintSet self, unsigned int i)"""
4512  return _IMP_kernel.RestraintSet_erase_restraint(self, i)
4513 
4514  def reserve_restraints(self, sz):
4515  r"""reserve_restraints(RestraintSet self, unsigned int sz)"""
4516  return _IMP_kernel.RestraintSet_reserve_restraints(self, sz)
4517 
4518  def get_non_sets_and_sets(self):
4519  r"""get_non_sets_and_sets(RestraintSet self) -> std::pair< IMP::RestraintsTemp,IMP::RestraintSetsTemp >"""
4520  return _IMP_kernel.RestraintSet_get_non_sets_and_sets(self)
4521 
4522  def do_get_inputs(self):
4523  r"""do_get_inputs(RestraintSet self) -> IMP::ModelObjectsTemp"""
4524  return _IMP_kernel.RestraintSet_do_get_inputs(self)
4525 
4526  def create_scoring_function(self, *args):
4527  r"""create_scoring_function(RestraintSet self, double weight=1.0, double max=std::numeric_limits< double >::max()) -> ScoringFunction"""
4528  return _IMP_kernel.RestraintSet_create_scoring_function(self, *args)
4529 
4530  def get_last_score(self):
4531  r"""get_last_score(RestraintSet self) -> double"""
4532  return _IMP_kernel.RestraintSet_get_last_score(self)
4533 
4534  def __str__(self):
4535  r"""__str__(RestraintSet self) -> std::string"""
4536  return _IMP_kernel.RestraintSet___str__(self)
4537 
4538  def __repr__(self):
4539  r"""__repr__(RestraintSet self) -> std::string"""
4540  return _IMP_kernel.RestraintSet___repr__(self)
4541 
4542  @staticmethod
4543  def get_from(o):
4544  return _object_cast_to_RestraintSet(o)
4545 
4546 
4547  def get_type_name(self):
4548  return self.__class__.__name__
4549  def do_show(self, out):
4550  pass
4551  def get_version_info(self):
4552  if"IMP" == "IMP":
4553  return VersionInfo(self.__module__,
4554  __import__(self.__module__).get_module_version())
4555  else:
4556  return IMP.VersionInfo(self.__module__,
4557  __import__(self.__module__).get_module_version())
4558  @staticmethod
4559  def get_from(o):
4560  return _object_cast_to_RestraintSet(o)
4561 
4562 
4563  def _get_as_binary(self):
4564  r"""_get_as_binary(RestraintSet self) -> PyObject *"""
4565  return _IMP_kernel.RestraintSet__get_as_binary(self)
4566 
4567  def _set_from_binary(self, p):
4568  r"""_set_from_binary(RestraintSet self, PyObject * p)"""
4569  return _IMP_kernel.RestraintSet__set_from_binary(self, p)
4570 
4571  def __getstate__(self):
4572  p = self._get_as_binary()
4573  if len(self.__dict__) > 1:
4574  d = self.__dict__.copy()
4575  del d['this']
4576  p = (d, p)
4577  return p
4578 
4579  def __setstate__(self, p):
4580  if not hasattr(self, 'this'):
4581  self.__init__()
4582  if isinstance(p, tuple):
4583  d, p = p
4584  self.__dict__.update(d)
4585  return self._set_from_binary(p)
4586 
4587  def __disown__(self):
4588  self.this.disown()
4589  _IMP_kernel.disown_RestraintSet(self)
4590  return weakref.proxy(self)
4591 
4592  def do_destroy(self):
4593  r"""do_destroy(RestraintSet self)"""
4594  return _IMP_kernel.RestraintSet_do_destroy(self)
4595 
4596  def handle_set_has_required_score_states(self, arg0):
4597  r"""handle_set_has_required_score_states(RestraintSet self, bool arg0)"""
4598  return _IMP_kernel.RestraintSet_handle_set_has_required_score_states(self, arg0)
4599 
4600  def do_get_outputs(self):
4601  r"""do_get_outputs(RestraintSet self) -> IMP::ModelObjectsTemp"""
4602  return _IMP_kernel.RestraintSet_do_get_outputs(self)
4603 
4604  def do_get_interactions(self):
4605  r"""do_get_interactions(RestraintSet self) -> IMP::ModelObjectsTemps"""
4606  return _IMP_kernel.RestraintSet_do_get_interactions(self)
4607 
4608  def do_create_decomposition(self):
4609  r"""do_create_decomposition(RestraintSet self) -> IMP::Restraints"""
4610  return _IMP_kernel.RestraintSet_do_create_decomposition(self)
4611 
4612  def do_create_current_decomposition(self):
4613  r"""do_create_current_decomposition(RestraintSet self) -> IMP::Restraints"""
4614  return _IMP_kernel.RestraintSet_do_create_current_decomposition(self)
4615 
4616  def do_add_score_and_derivatives(self, sa):
4617  r"""do_add_score_and_derivatives(RestraintSet self, ScoreAccumulator sa)"""
4618  return _IMP_kernel.RestraintSet_do_add_score_and_derivatives(self, sa)
4619 
4620  def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis):
4621  r"""do_add_score_and_derivatives_moved(RestraintSet self, ScoreAccumulator sa, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
4622  return _IMP_kernel.RestraintSet_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis)
4623 
4624 # Register RestraintSet in _IMP_kernel:
4625 _IMP_kernel.RestraintSet_swigregister(RestraintSet)
4626 
4627 def get_restraints(rs):
4628  r"""get_restraints(IMP::RestraintsTemp const & rs) -> IMP::RestraintsTemp"""
4629  return _IMP_kernel.get_restraints(rs)
4630 
4631 def _check_particle(p, a):
4632  if (not p.get_is_active()):
4633  raise ValueError("Inactive Particle")
4634  if (type(a)() == a):
4635  raise IndexError("Cannot use default Index")
4636  if (not p.has_attribute(a)):
4637  raise IndexError("Particle does not have attribute")
4638 
4639 class Particle(ModelObject):
4640  r"""Proxy of C++ IMP::Particle class."""
4641 
4642  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4643 
4644  def get_version_info(self):
4645  r"""get_version_info(Particle self) -> VersionInfo"""
4646  return _IMP_kernel.Particle_get_version_info(self)
4647  __swig_destroy__ = _IMP_kernel.delete_Particle
4648 
4649  def __init__(self, *args):
4650  r"""
4651  __init__(Particle self, Model m, std::string name) -> Particle
4652  __init__(Particle self, Model m) -> Particle
4653  __init__(Particle self) -> Particle
4654  """
4655  _IMP_kernel.Particle_swiginit(self, _IMP_kernel.new_Particle(*args))
4656 
4657  def get_float_keys(self):
4658  r"""get_float_keys(Particle self) -> IMP::FloatKeys"""
4659  return _IMP_kernel.Particle_get_float_keys(self)
4660 
4661  def get_floats_keys(self):
4662  r"""get_floats_keys(Particle self) -> IMP::FloatsKeys"""
4663  return _IMP_kernel.Particle_get_floats_keys(self)
4664 
4665  def get_int_keys(self):
4666  r"""get_int_keys(Particle self) -> IMP::IntKeys"""
4667  return _IMP_kernel.Particle_get_int_keys(self)
4668 
4669  def get_ints_keys(self):
4670  r"""get_ints_keys(Particle self) -> IMP::IntsKeys"""
4671  return _IMP_kernel.Particle_get_ints_keys(self)
4672 
4673  def get_string_keys(self):
4674  r"""get_string_keys(Particle self) -> IMP::StringKeys"""
4675  return _IMP_kernel.Particle_get_string_keys(self)
4676 
4677  def get_object_keys(self):
4678  r"""get_object_keys(Particle self) -> IMP::ObjectKeys"""
4679  return _IMP_kernel.Particle_get_object_keys(self)
4680 
4681  def add_cache_attribute(self, *args):
4682  r"""
4683  add_cache_attribute(Particle self, FloatKey name, IMP::Float value)
4684  add_cache_attribute(Particle self, FloatsKey name, IMP::Floats value)
4685  add_cache_attribute(Particle self, IntKey name, IMP::Int value)
4686  add_cache_attribute(Particle self, IntsKey name, IMP::Ints value)
4687  add_cache_attribute(Particle self, StringKey name, IMP::String value)
4688  add_cache_attribute(Particle self, ObjectKey name, Object value)
4689  add_cache_attribute(Particle self, IMP::WeakObjectKey name, Object value)
4690  """
4691  return _IMP_kernel.Particle_add_cache_attribute(self, *args)
4692 
4693  def get_weak_object_keys(self):
4694  r"""get_weak_object_keys(Particle self) -> IMP::WeakObjectKeys"""
4695  return _IMP_kernel.Particle_get_weak_object_keys(self)
4696 
4697  def add_to_derivative(self, key, value, da):
4698  r"""add_to_derivative(Particle self, FloatKey key, IMP::Float value, DerivativeAccumulator da)"""
4699  return _IMP_kernel.Particle_add_to_derivative(self, key, value, da)
4700 
4701  def set_is_optimized(self, k, tf):
4702  r"""set_is_optimized(Particle self, FloatKey k, bool tf)"""
4703  return _IMP_kernel.Particle_set_is_optimized(self, k, tf)
4704 
4705  def get_is_optimized(self, k):
4706  r"""get_is_optimized(Particle self, FloatKey k) -> bool"""
4707  return _IMP_kernel.Particle_get_is_optimized(self, k)
4708 
4709  def get_derivative(self, k):
4710  r"""get_derivative(Particle self, FloatKey k) -> IMP::Float"""
4711  return _IMP_kernel.Particle_get_derivative(self, k)
4712 
4713  def add_attribute(self, *args):
4714  r"""
4715  add_attribute(Particle self, FloatKey name, IMP::Float initial_value)
4716  add_attribute(Particle self, FloatsKey name, IMP::Floats initial_value)
4717  add_attribute(Particle self, IntKey name, IMP::Int initial_value)
4718  add_attribute(Particle self, IntsKey name, IMP::Ints initial_value)
4719  add_attribute(Particle self, StringKey name, IMP::String initial_value)
4720  add_attribute(Particle self, ObjectKey name, Object initial_value)
4721  add_attribute(Particle self, IMP::WeakObjectKey name, Object initial_value)
4722  add_attribute(Particle self, SparseStringKey name, IMP::String initial_value)
4723  add_attribute(Particle self, SparseIntKey name, IMP::Int initial_value)
4724  add_attribute(Particle self, SparseFloatKey name, IMP::Float initial_value)
4725  add_attribute(Particle self, SparseParticleIndexKey name, ParticleIndex initial_value)
4726  add_attribute(Particle self, FloatKey name, IMP::Float const initial_value, bool optimized)
4727  add_attribute(Particle self, ParticleIndexKey k, Particle v)
4728  """
4729  return _IMP_kernel.Particle_add_attribute(self, *args)
4730 
4731  def has_attribute(self, *args):
4732  r"""
4733  has_attribute(Particle self, FloatKey name) -> bool
4734  has_attribute(Particle self, FloatsKey name) -> bool
4735  has_attribute(Particle self, IntKey name) -> bool
4736  has_attribute(Particle self, IntsKey name) -> bool
4737  has_attribute(Particle self, StringKey name) -> bool
4738  has_attribute(Particle self, ObjectKey name) -> bool
4739  has_attribute(Particle self, IMP::WeakObjectKey name) -> bool
4740  has_attribute(Particle self, SparseStringKey name) -> bool
4741  has_attribute(Particle self, SparseIntKey name) -> bool
4742  has_attribute(Particle self, SparseFloatKey name) -> bool
4743  has_attribute(Particle self, SparseParticleIndexKey name) -> bool
4744  has_attribute(Particle self, ParticleIndexKey k) -> bool
4745  """
4746  return _IMP_kernel.Particle_has_attribute(self, *args)
4747 
4748  def set_value(self, *args):
4749  r"""
4750  set_value(Particle self, FloatKey name, IMP::Float value)
4751  set_value(Particle self, FloatsKey name, IMP::Floats value)
4752  set_value(Particle self, IntKey name, IMP::Int value)
4753  set_value(Particle self, IntsKey name, IMP::Ints value)
4754  set_value(Particle self, StringKey name, IMP::String value)
4755  set_value(Particle self, ObjectKey name, Object value)
4756  set_value(Particle self, IMP::WeakObjectKey name, Object value)
4757  set_value(Particle self, SparseStringKey name, IMP::String value)
4758  set_value(Particle self, SparseIntKey name, IMP::Int value)
4759  set_value(Particle self, SparseFloatKey name, IMP::Float value)
4760  set_value(Particle self, SparseParticleIndexKey name, ParticleIndex value)
4761  set_value(Particle self, ParticleIndexKey k, Particle v)
4762  """
4763  return _IMP_kernel.Particle_set_value(self, *args)
4764 
4765  def get_value(self, *args):
4766  r"""
4767  get_value(Particle self, FloatKey name) -> IMP::Float
4768  get_value(Particle self, FloatsKey name) -> IMP::Floats
4769  get_value(Particle self, IntKey name) -> IMP::Int
4770  get_value(Particle self, IntsKey name) -> IMP::Ints
4771  get_value(Particle self, StringKey name) -> IMP::String
4772  get_value(Particle self, ObjectKey name) -> Object
4773  get_value(Particle self, IMP::WeakObjectKey name) -> Object
4774  get_value(Particle self, SparseStringKey name) -> IMP::String
4775  get_value(Particle self, SparseIntKey name) -> IMP::Int
4776  get_value(Particle self, SparseFloatKey name) -> IMP::Float
4777  get_value(Particle self, SparseParticleIndexKey name) -> ParticleIndex
4778  get_value(Particle self, ParticleIndexKey k) -> Particle
4779  """
4780  return _IMP_kernel.Particle_get_value(self, *args)
4781 
4782  def remove_attribute(self, *args):
4783  r"""
4784  remove_attribute(Particle self, FloatKey name)
4785  remove_attribute(Particle self, FloatsKey name)
4786  remove_attribute(Particle self, IntKey name)
4787  remove_attribute(Particle self, IntsKey name)
4788  remove_attribute(Particle self, StringKey name)
4789  remove_attribute(Particle self, ObjectKey name)
4790  remove_attribute(Particle self, IMP::WeakObjectKey name)
4791  remove_attribute(Particle self, SparseStringKey name)
4792  remove_attribute(Particle self, SparseIntKey name)
4793  remove_attribute(Particle self, SparseFloatKey name)
4794  remove_attribute(Particle self, SparseParticleIndexKey name)
4795  remove_attribute(Particle self, ParticleIndexKey k)
4796  """
4797  return _IMP_kernel.Particle_remove_attribute(self, *args)
4798 
4799  def get_particle_keys(self):
4800  r"""get_particle_keys(Particle self) -> IMP::ParticleIndexKeys"""
4801  return _IMP_kernel.Particle_get_particle_keys(self)
4802 
4803  def show(self, *args):
4804  r"""show(Particle self, _ostream out=std::cout)"""
4805  return _IMP_kernel.Particle_show(self, *args)
4806 
4807  def get_is_active(self):
4808  r"""get_is_active(Particle self) -> bool"""
4809  return _IMP_kernel.Particle_get_is_active(self)
4810 
4811  def get_index(self):
4812  r"""get_index(Particle self) -> ParticleIndex"""
4813  return _IMP_kernel.Particle_get_index(self)
4814 
4815  def __eq__(self, *args):
4816  r"""
4817  __eq__(Particle self, Particle o) -> bool
4818  __eq__(Particle self, Decorator d) -> bool
4819  """
4820  return _IMP_kernel.Particle___eq__(self, *args)
4821 
4822  def __ne__(self, *args):
4823  r"""
4824  __ne__(Particle self, Particle o) -> bool
4825  __ne__(Particle self, Decorator d) -> bool
4826  """
4827  return _IMP_kernel.Particle___ne__(self, *args)
4828 
4829  def __le__(self, *args):
4830  r"""
4831  __le__(Particle self, Particle o) -> bool
4832  __le__(Particle self, Decorator d) -> bool
4833  """
4834  return _IMP_kernel.Particle___le__(self, *args)
4835 
4836  def __lt__(self, *args):
4837  r"""
4838  __lt__(Particle self, Particle o) -> bool
4839  __lt__(Particle self, Decorator d) -> bool
4840  """
4841  return _IMP_kernel.Particle___lt__(self, *args)
4842 
4843  def __ge__(self, *args):
4844  r"""
4845  __ge__(Particle self, Particle o) -> bool
4846  __ge__(Particle self, Decorator d) -> bool
4847  """
4848  return _IMP_kernel.Particle___ge__(self, *args)
4849 
4850  def __gt__(self, *args):
4851  r"""
4852  __gt__(Particle self, Particle o) -> bool
4853  __gt__(Particle self, Decorator d) -> bool
4854  """
4855  return _IMP_kernel.Particle___gt__(self, *args)
4856 
4857  __hash__ = ModelObject.__hash__
4858 
4859 
4860  def __str__(self):
4861  r"""__str__(Particle self) -> std::string"""
4862  return _IMP_kernel.Particle___str__(self)
4863 
4864  def __repr__(self):
4865  r"""__repr__(Particle self) -> std::string"""
4866  return _IMP_kernel.Particle___repr__(self)
4867 
4868  @staticmethod
4869  def get_from(o):
4870  return _object_cast_to_Particle(o)
4871 
4872 
4873  def _get_as_binary(self):
4874  r"""_get_as_binary(Particle self) -> PyObject *"""
4875  return _IMP_kernel.Particle__get_as_binary(self)
4876 
4877  def _set_from_binary(self, p):
4878  r"""_set_from_binary(Particle self, PyObject * p)"""
4879  return _IMP_kernel.Particle__set_from_binary(self, p)
4880 
4881  def __getstate__(self):
4882  p = self._get_as_binary()
4883  if len(self.__dict__) > 1:
4884  d = self.__dict__.copy()
4885  del d['this']
4886  p = (d, p)
4887  return p
4888 
4889  def __setstate__(self, p):
4890  if not hasattr(self, 'this'):
4891  self.__init__()
4892  if isinstance(p, tuple):
4893  d, p = p
4894  self.__dict__.update(d)
4895  return self._set_from_binary(p)
4896 
4897 
4898 # Register Particle in _IMP_kernel:
4899 _IMP_kernel.Particle_swigregister(Particle)
4900 class _ParticleAdaptor(_InputAdaptor):
4901  r"""Proxy of C++ IMP::ParticleAdaptor class."""
4902 
4903  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4904  __repr__ = _swig_repr
4905 
4906  def __init__(self, *args):
4907  r"""
4908  __init__(_ParticleAdaptor self) -> _ParticleAdaptor
4909  __init__(_ParticleAdaptor self, Particle p) -> _ParticleAdaptor
4910  __init__(_ParticleAdaptor self, Decorator d) -> _ParticleAdaptor
4911  """
4912  _IMP_kernel._ParticleAdaptor_swiginit(self, _IMP_kernel.new__ParticleAdaptor(*args))
4913 
4914  def get_model(self):
4915  r"""get_model(_ParticleAdaptor self) -> Model"""
4916  return _IMP_kernel._ParticleAdaptor_get_model(self)
4917 
4918  def get_particle_index(self):
4919  r"""get_particle_index(_ParticleAdaptor self) -> ParticleIndex"""
4920  return _IMP_kernel._ParticleAdaptor_get_particle_index(self)
4921  __swig_destroy__ = _IMP_kernel.delete__ParticleAdaptor
4922 
4923 # Register _ParticleAdaptor in _IMP_kernel:
4924 _IMP_kernel._ParticleAdaptor_swigregister(_ParticleAdaptor)
4925 class _DependencyGraphVertexIndex(object):
4926  r"""Proxy of C++ IMP::DependencyGraphVertexIndex class."""
4927 
4928  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4929  __repr__ = _swig_repr
4930 
4931  def __init__(self):
4932  r"""__init__(_DependencyGraphVertexIndex self) -> _DependencyGraphVertexIndex"""
4933  _IMP_kernel._DependencyGraphVertexIndex_swiginit(self, _IMP_kernel.new__DependencyGraphVertexIndex())
4934  __swig_destroy__ = _IMP_kernel.delete__DependencyGraphVertexIndex
4935 
4936 # Register _DependencyGraphVertexIndex in _IMP_kernel:
4937 _IMP_kernel._DependencyGraphVertexIndex_swigregister(_DependencyGraphVertexIndex)
4938 
4939 def show_as_graphviz(name, out):
4940  r"""show_as_graphviz(IMP::DependencyGraph const & name, TextOutput out)"""
4941  return _IMP_kernel.show_as_graphviz(name, out)
4942 
4943 def get_vertex_index(g):
4944  r"""get_vertex_index(IMP::DependencyGraph const & g) -> _DependencyGraphVertexIndex"""
4945  return _IMP_kernel.get_vertex_index(g)
4946 
4947 def get_dependency_graph(m):
4948  r"""get_dependency_graph(Model m) -> IMP::DependencyGraph"""
4949  return _IMP_kernel.get_dependency_graph(m)
4950 
4952  r"""get_pruned_dependency_graph(Model m) -> IMP::DependencyGraph"""
4953  return _IMP_kernel.get_pruned_dependency_graph(m)
4954 
4955 def get_dependent_particles(p, all, dg, index):
4956  r"""get_dependent_particles(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ParticlesTemp"""
4957  return _IMP_kernel.get_dependent_particles(p, all, dg, index)
4958 
4959 def get_required_score_states(*args):
4960  r"""
4961  get_required_score_states(IMP::ModelObjectsTemp const & mos, IMP::ScoreStatesTemp exclude=IMP::ScoreStatesTemp()) -> IMP::ScoreStatesTemp
4962  get_required_score_states(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ScoreStatesTemp
4963  get_required_score_states(Model m, ParticleIndex pi) -> IMP::ScoreStatesTemp
4964  """
4965  return _IMP_kernel.get_required_score_states(*args)
4966 class ScoringFunction(ModelObject):
4967  r"""Proxy of C++ IMP::ScoringFunction class."""
4968 
4969  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4970 
4971  def do_add_score_and_derivatives(self, sa, ss):
4972  r"""do_add_score_and_derivatives(ScoringFunction self, ScoreAccumulator sa, IMP::ScoreStatesTemp const & ss)"""
4973  return _IMP_kernel.ScoringFunction_do_add_score_and_derivatives(self, sa, ss)
4974 
4975  def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss):
4976  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)"""
4977  return _IMP_kernel.ScoringFunction_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss)
4978 
4979  def get_score_accumulator_if_below(self, deriv, max):
4980  r"""get_score_accumulator_if_below(ScoringFunction self, bool deriv, double max) -> ScoreAccumulator"""
4981  return _IMP_kernel.ScoringFunction_get_score_accumulator_if_below(self, deriv, max)
4982 
4983  def get_score_accumulator_if_good(self, deriv):
4984  r"""get_score_accumulator_if_good(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
4985  return _IMP_kernel.ScoringFunction_get_score_accumulator_if_good(self, deriv)
4986 
4987  def get_score_accumulator(self, deriv):
4988  r"""get_score_accumulator(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
4989  return _IMP_kernel.ScoringFunction_get_score_accumulator(self, deriv)
4990 
4991  def __init__(self, *args):
4992  r"""
4993  __init__(ScoringFunction self, Model m, std::string name) -> ScoringFunction
4994  __init__(ScoringFunction self) -> ScoringFunction
4995  """
4996  if self.__class__ == ScoringFunction:
4997  _self = None
4998  else:
4999  _self = self
5000  _IMP_kernel.ScoringFunction_swiginit(self, _IMP_kernel.new_ScoringFunction(_self, *args))
5001 
5002  if self.__class__ != ScoringFunction:
5003  _director_objects.register(self)
5004 
5005 
5006 
5007 
5008  def do_get_outputs(self):
5009  r"""do_get_outputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
5010  return _IMP_kernel.ScoringFunction_do_get_outputs(self)
5011 
5012  def evaluate(self, derivatives):
5013  r"""evaluate(ScoringFunction self, bool derivatives) -> double"""
5014  return _IMP_kernel.ScoringFunction_evaluate(self, derivatives)
5015 
5016  def evaluate_if_good(self, derivatives):
5017  r"""evaluate_if_good(ScoringFunction self, bool derivatives) -> double"""
5018  return _IMP_kernel.ScoringFunction_evaluate_if_good(self, derivatives)
5019 
5020  def evaluate_if_below(self, derivatives, max):
5021  r"""evaluate_if_below(ScoringFunction self, bool derivatives, double max) -> double"""
5022  return _IMP_kernel.ScoringFunction_evaluate_if_below(self, derivatives, max)
5023 
5024  def evaluate_moved(self, derivatives, moved_pis, reset_pis):
5025  r"""evaluate_moved(ScoringFunction self, bool derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
5026  return _IMP_kernel.ScoringFunction_evaluate_moved(self, derivatives, moved_pis, reset_pis)
5027 
5028  def evaluate_moved_if_below(self, derivatives, moved_pis, reset_pis, max):
5029  r"""evaluate_moved_if_below(ScoringFunction self, bool derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, double max) -> double"""
5030  return _IMP_kernel.ScoringFunction_evaluate_moved_if_below(self, derivatives, moved_pis, reset_pis, max)
5031 
5032  def evaluate_moved_if_good(self, derivatives, moved_pis, reset_pis):
5033  r"""evaluate_moved_if_good(ScoringFunction self, bool derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
5034  return _IMP_kernel.ScoringFunction_evaluate_moved_if_good(self, derivatives, moved_pis, reset_pis)
5035 
5036  def get_had_good_score(self):
5037  r"""get_had_good_score(ScoringFunction self) -> bool"""
5038  return _IMP_kernel.ScoringFunction_get_had_good_score(self)
5039 
5040  def get_last_score(self):
5041  r"""get_last_score(ScoringFunction self) -> double"""
5042  return _IMP_kernel.ScoringFunction_get_last_score(self)
5043 
5044  def create_restraints(self):
5045  r"""create_restraints(ScoringFunction self) -> IMP::Restraints"""
5046  return _IMP_kernel.ScoringFunction_create_restraints(self)
5047 
5048  def __str__(self):
5049  r"""__str__(ScoringFunction self) -> std::string"""
5050  return _IMP_kernel.ScoringFunction___str__(self)
5051 
5052  def __repr__(self):
5053  r"""__repr__(ScoringFunction self) -> std::string"""
5054  return _IMP_kernel.ScoringFunction___repr__(self)
5055 
5056  @staticmethod
5057  def get_from(o):
5058  return _object_cast_to_ScoringFunction(o)
5059 
5060 
5061  def get_type_name(self):
5062  return self.__class__.__name__
5063  def do_show(self, out):
5064  pass
5065  def get_version_info(self):
5066  if"IMP" == "IMP":
5067  return VersionInfo(self.__module__,
5068  __import__(self.__module__).get_module_version())
5069  else:
5070  return IMP.VersionInfo(self.__module__,
5071  __import__(self.__module__).get_module_version())
5072  @staticmethod
5073  def get_from(o):
5074  return _object_cast_to_ScoringFunction(o)
5075 
5076  __swig_destroy__ = _IMP_kernel.delete_ScoringFunction
5077  def __disown__(self):
5078  self.this.disown()
5079  _IMP_kernel.disown_ScoringFunction(self)
5080  return weakref.proxy(self)
5081 
5082  def do_destroy(self):
5083  r"""do_destroy(ScoringFunction self)"""
5084  return _IMP_kernel.ScoringFunction_do_destroy(self)
5085 
5086  def handle_set_has_required_score_states(self, arg0):
5087  r"""handle_set_has_required_score_states(ScoringFunction self, bool arg0)"""
5088  return _IMP_kernel.ScoringFunction_handle_set_has_required_score_states(self, arg0)
5089 
5090  def do_get_inputs(self):
5091  r"""do_get_inputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
5092  return _IMP_kernel.ScoringFunction_do_get_inputs(self)
5093 
5094  def do_get_interactions(self):
5095  r"""do_get_interactions(ScoringFunction self) -> IMP::ModelObjectsTemps"""
5096  return _IMP_kernel.ScoringFunction_do_get_interactions(self)
5097 
5098 # Register ScoringFunction in _IMP_kernel:
5099 _IMP_kernel.ScoringFunction_swigregister(ScoringFunction)
5100 
5101 def create_decomposition(*args):
5102  r"""
5103  create_decomposition(IMP::RestraintsTemp const & rs) -> IMP::Restraints
5104  create_decomposition(ScoringFunction sf) -> IMP::ScoringFunctions
5105  """
5106  return _IMP_kernel.create_decomposition(*args)
5107 class _ScoringFunctionAdaptor(_InputAdaptor):
5108  r"""Proxy of C++ IMP::ScoringFunctionAdaptor class."""
5109 
5110  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5111  __repr__ = _swig_repr
5112 
5113  def __init__(self, *args):
5114  r"""
5115  __init__(_ScoringFunctionAdaptor self) -> _ScoringFunctionAdaptor
5116  __init__(_ScoringFunctionAdaptor self, ScoringFunction sf) -> _ScoringFunctionAdaptor
5117  __init__(_ScoringFunctionAdaptor self, IMP::RestraintsTemp const & sf) -> _ScoringFunctionAdaptor
5118  __init__(_ScoringFunctionAdaptor self, IMP::Restraints const & sf) -> _ScoringFunctionAdaptor
5119  __init__(_ScoringFunctionAdaptor self, Restraint sf) -> _ScoringFunctionAdaptor
5120  """
5121  _IMP_kernel._ScoringFunctionAdaptor_swiginit(self, _IMP_kernel.new__ScoringFunctionAdaptor(*args))
5122  __swig_destroy__ = _IMP_kernel.delete__ScoringFunctionAdaptor
5123 
5124 # Register _ScoringFunctionAdaptor in _IMP_kernel:
5125 _IMP_kernel._ScoringFunctionAdaptor_swigregister(_ScoringFunctionAdaptor)
5126 
5127 def show_restraint_hierarchy(*args):
5128  r"""show_restraint_hierarchy(_ScoringFunctionAdaptor rs, _ostream out=std::cout)"""
5129  return _IMP_kernel.show_restraint_hierarchy(*args)
5130 class Undecorator(Object):
5131  r"""Proxy of C++ IMP::Undecorator class."""
5132 
5133  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5134 
5135  def __init__(self, m, name):
5136  r"""__init__(Undecorator self, Model m, std::string name) -> Undecorator"""
5137  if self.__class__ == Undecorator:
5138  _self = None
5139  else:
5140  _self = self
5141  _IMP_kernel.Undecorator_swiginit(self, _IMP_kernel.new_Undecorator(_self, m, name))
5142 
5143  if self.__class__ != Undecorator:
5144  _director_objects.register(self)
5145 
5146 
5147 
5148 
5149  def teardown(self, pi):
5150  r"""teardown(Undecorator self, ParticleIndex pi)"""
5151  return _IMP_kernel.Undecorator_teardown(self, pi)
5152 
5153  def __str__(self):
5154  r"""__str__(Undecorator self) -> std::string"""
5155  return _IMP_kernel.Undecorator___str__(self)
5156 
5157  def __repr__(self):
5158  r"""__repr__(Undecorator self) -> std::string"""
5159  return _IMP_kernel.Undecorator___repr__(self)
5160 
5161  @staticmethod
5162  def get_from(o):
5163  return _object_cast_to_Undecorator(o)
5164 
5165 
5166  def get_type_name(self):
5167  return self.__class__.__name__
5168  def do_show(self, out):
5169  pass
5170  def get_version_info(self):
5171  if"IMP" == "IMP":
5172  return VersionInfo(self.__module__,
5173  __import__(self.__module__).get_module_version())
5174  else:
5175  return IMP.VersionInfo(self.__module__,
5176  __import__(self.__module__).get_module_version())
5177  @staticmethod
5178  def get_from(o):
5179  return _object_cast_to_Undecorator(o)
5180 
5181  __swig_destroy__ = _IMP_kernel.delete_Undecorator
5182  def __disown__(self):
5183  self.this.disown()
5184  _IMP_kernel.disown_Undecorator(self)
5185  return weakref.proxy(self)
5186 
5187  def do_destroy(self):
5188  r"""do_destroy(Undecorator self)"""
5189  return _IMP_kernel.Undecorator_do_destroy(self)
5190 
5191 # Register Undecorator in _IMP_kernel:
5192 _IMP_kernel.Undecorator_swigregister(Undecorator)
5193 class Model(Object):
5194  r"""Proxy of C++ IMP::Model class."""
5195 
5196  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5197 
5198  def __init__(self, *args):
5199  r"""__init__(Model self, std::string name="Model %1%") -> Model"""
5200  _IMP_kernel.Model_swiginit(self, _IMP_kernel.new_Model(*args))
5201 
5202  if self not in _models_set:
5203  _models_set.add(self)
5204 
5205 
5206 
5207 
5208  def clear_particle_caches(self, pi):
5209  r"""clear_particle_caches(Model self, ParticleIndex pi)"""
5210  return _IMP_kernel.Model_clear_particle_caches(self, pi)
5211 
5212  def add_particle(self, name):
5213  r"""add_particle(Model self, std::string name) -> ParticleIndex"""
5214  return _IMP_kernel.Model_add_particle(self, name)
5215 
5216  def get_particle_name(self, pi):
5217  r"""get_particle_name(Model self, ParticleIndex pi) -> std::string"""
5218  return _IMP_kernel.Model_get_particle_name(self, pi)
5219 
5220  def add_undecorator(self, pi, d):
5221  r"""add_undecorator(Model self, ParticleIndex pi, Undecorator d)"""
5222  return _IMP_kernel.Model_add_undecorator(self, pi, d)
5223 
5224  def get_dependent_restraints_uncached(self, pi):
5225  r"""get_dependent_restraints_uncached(Model self, ParticleIndex pi) -> IMP::RestraintsTemp"""
5226  return _IMP_kernel.Model_get_dependent_restraints_uncached(self, pi)
5227 
5228  def get_dependent_particles_uncached(self, pi):
5229  r"""get_dependent_particles_uncached(Model self, ParticleIndex pi) -> IMP::ParticlesTemp"""
5230  return _IMP_kernel.Model_get_dependent_particles_uncached(self, pi)
5231 
5232  def get_dependent_score_states_uncached(self, pi):
5233  r"""get_dependent_score_states_uncached(Model self, ParticleIndex pi) -> IMP::ScoreStatesTemp"""
5234  return _IMP_kernel.Model_get_dependent_score_states_uncached(self, pi)
5235  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)
5236  def __set_score_states(self, obj): _list_util.set_varlist(self.score_states, obj)
5237  def __del_score_states(self): _list_util.del_varlist(self.score_states)
5238  score_states = property(__get_score_states, __set_score_states, __del_score_states, doc="List of ##ucnames")
5239 
5240  def remove_score_state(self, d):
5241  r"""remove_score_state(Model self, ScoreState d)"""
5242  return _IMP_kernel.Model_remove_score_state(self, d)
5243 
5244  def _python_index_score_state(self, d, start, stop):
5245  r"""_python_index_score_state(Model self, ScoreState d, unsigned int start, unsigned int stop) -> unsigned int"""
5246  return _IMP_kernel.Model__python_index_score_state(self, d, start, stop)
5247 
5248  def remove_score_states(self, d):
5249  r"""remove_score_states(Model self, IMP::ScoreStates const & d)"""
5250  return _IMP_kernel.Model_remove_score_states(self, d)
5251 
5252  def set_score_states(self, ps):
5253  r"""set_score_states(Model self, IMP::ScoreStates const & ps)"""
5254  return _IMP_kernel.Model_set_score_states(self, ps)
5255 
5256  def set_score_states_order(self, objs):
5257  r"""set_score_states_order(Model self, IMP::ScoreStates const & objs)"""
5258  return _IMP_kernel.Model_set_score_states_order(self, objs)
5259 
5260  def add_score_state(self, obj):
5261  r"""add_score_state(Model self, ScoreState obj) -> unsigned int"""
5262  return _IMP_kernel.Model_add_score_state(self, obj)
5263 
5264  def add_score_states(self, objs):
5265  r"""add_score_states(Model self, IMP::ScoreStates const & objs)"""
5266  return _IMP_kernel.Model_add_score_states(self, objs)
5267 
5268  def clear_score_states(self):
5269  r"""clear_score_states(Model self)"""
5270  return _IMP_kernel.Model_clear_score_states(self)
5271 
5272  def get_number_of_score_states(self):
5273  r"""get_number_of_score_states(Model self) -> unsigned int"""
5274  return _IMP_kernel.Model_get_number_of_score_states(self)
5275 
5276  def get_has_score_states(self):
5277  r"""get_has_score_states(Model self) -> bool"""
5278  return _IMP_kernel.Model_get_has_score_states(self)
5279 
5280  def get_score_state(self, i):
5281  r"""get_score_state(Model self, unsigned int i) -> ScoreState"""
5282  return _IMP_kernel.Model_get_score_state(self, i)
5283 
5284  def get_score_states(self):
5285  r"""get_score_states(Model self) -> IMP::ScoreStates"""
5286  return _IMP_kernel.Model_get_score_states(self)
5287 
5288  def erase_score_state(self, i):
5289  r"""erase_score_state(Model self, unsigned int i)"""
5290  return _IMP_kernel.Model_erase_score_state(self, i)
5291 
5292  def reserve_score_states(self, sz):
5293  r"""reserve_score_states(Model self, unsigned int sz)"""
5294  return _IMP_kernel.Model_reserve_score_states(self, sz)
5295 
5296  def update(self):
5297  r"""update(Model self)"""
5298  return _IMP_kernel.Model_update(self)
5299 
5300  def add_cache_attribute(self, *args):
5301  r"""
5302  add_cache_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5303  add_cache_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
5304  add_cache_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle, IMP::Floats value)
5305  add_cache_attribute(Model self, IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
5306  add_cache_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
5307  add_cache_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
5308  add_cache_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5309  add_cache_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
5310  add_cache_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5311  """
5312  return _IMP_kernel.Model_add_cache_attribute(self, *args)
5313 
5314  def add_attribute(self, *args):
5315  r"""
5316  add_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5317  add_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
5318  add_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle, IMP::Floats value)
5319  add_attribute(Model self, IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
5320  add_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
5321  add_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
5322  add_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5323  add_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
5324  add_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5325  add_attribute(Model self, SparseStringKey attribute_key, ParticleIndex particle, IMP::String value)
5326  add_attribute(Model self, SparseIntKey attribute_key, ParticleIndex particle, IMP::Int value)
5327  add_attribute(Model self, SparseFloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5328  add_attribute(Model self, SparseParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5329  """
5330  return _IMP_kernel.Model_add_attribute(self, *args)
5331 
5332  def remove_attribute(self, *args):
5333  r"""
5334  remove_attribute(Model self, FloatKey attribute_key, ParticleIndex particle)
5335  remove_attribute(Model self, IntKey attribute_key, ParticleIndex particle)
5336  remove_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle)
5337  remove_attribute(Model self, IntsKey attribute_key, ParticleIndex particle)
5338  remove_attribute(Model self, StringKey attribute_key, ParticleIndex particle)
5339  remove_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle)
5340  remove_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle)
5341  remove_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle)
5342  remove_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle)
5343  remove_attribute(Model self, SparseStringKey attribute_key, ParticleIndex particle)
5344  remove_attribute(Model self, SparseIntKey attribute_key, ParticleIndex particle)
5345  remove_attribute(Model self, SparseFloatKey attribute_key, ParticleIndex particle)
5346  remove_attribute(Model self, SparseParticleIndexKey attribute_key, ParticleIndex particle)
5347  """
5348  return _IMP_kernel.Model_remove_attribute(self, *args)
5349 
5350  def get_has_attribute(self, *args):
5351  r"""
5352  get_has_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> bool
5353  get_has_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> bool
5354  get_has_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle) -> bool
5355  get_has_attribute(Model self, IntsKey attribute_key, ParticleIndex particle) -> bool
5356  get_has_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> bool
5357  get_has_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> bool
5358  get_has_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> bool
5359  get_has_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> bool
5360  get_has_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> bool
5361  get_has_attribute(Model self, SparseStringKey attribute_key, ParticleIndex particle) -> bool
5362  get_has_attribute(Model self, SparseIntKey attribute_key, ParticleIndex particle) -> bool
5363  get_has_attribute(Model self, SparseFloatKey attribute_key, ParticleIndex particle) -> bool
5364  get_has_attribute(Model self, SparseParticleIndexKey attribute_key, ParticleIndex particle) -> bool
5365  """
5366  return _IMP_kernel.Model_get_has_attribute(self, *args)
5367 
5368  def set_attribute(self, *args):
5369  r"""
5370  set_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5371  set_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
5372  set_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle, IMP::Floats value)
5373  set_attribute(Model self, IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
5374  set_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
5375  set_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
5376  set_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5377  set_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
5378  set_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5379  set_attribute(Model self, SparseStringKey attribute_key, ParticleIndex particle, IMP::String value)
5380  set_attribute(Model self, SparseIntKey attribute_key, ParticleIndex particle, IMP::Int value)
5381  set_attribute(Model self, SparseFloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5382  set_attribute(Model self, SparseParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5383  """
5384  return _IMP_kernel.Model_set_attribute(self, *args)
5385 
5386  def get_attribute(self, *args):
5387  r"""
5388  get_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> IMP::Float
5389  get_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> IMP::Int
5390  get_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle) -> IMP::Floats
5391  get_attribute(Model self, IntsKey attribute_key, ParticleIndex particle) -> IMP::Ints
5392  get_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> IMP::String
5393  get_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> IMP::ParticleIndexes
5394  get_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> ParticleIndex
5395  get_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> Object
5396  get_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> Object
5397  get_attribute(Model self, SparseStringKey attribute_key, ParticleIndex particle) -> IMP::String
5398  get_attribute(Model self, SparseIntKey attribute_key, ParticleIndex particle) -> IMP::Int
5399  get_attribute(Model self, SparseFloatKey attribute_key, ParticleIndex particle) -> IMP::Float
5400  get_attribute(Model self, SparseParticleIndexKey attribute_key, ParticleIndex particle) -> ParticleIndex
5401  """
5402  return _IMP_kernel.Model_get_attribute(self, *args)
5403 
5404  def set_is_optimized(self, arg2, arg3, arg4):
5405  r"""set_is_optimized(Model self, FloatKey arg2, ParticleIndex arg3, bool arg4)"""
5406  return _IMP_kernel.Model_set_is_optimized(self, arg2, arg3, arg4)
5407 
5408  def add_to_derivative(self, k, particle, v, da):
5409  r"""add_to_derivative(Model self, FloatKey k, ParticleIndex particle, double v, DerivativeAccumulator da)"""
5410  return _IMP_kernel.Model_add_to_derivative(self, k, particle, v, da)
5411 
5412  def get_particle(self, p):
5413  r"""get_particle(Model self, ParticleIndex p) -> Particle"""
5414  return _IMP_kernel.Model_get_particle(self, p)
5415 
5416  def get_has_particle(self, p):
5417  r"""get_has_particle(Model self, ParticleIndex p) -> bool"""
5418  return _IMP_kernel.Model_get_has_particle(self, p)
5419 
5420  def get_particle_indexes(self):
5421  r"""get_particle_indexes(Model self) -> IMP::ParticleIndexes"""
5422  return _IMP_kernel.Model_get_particle_indexes(self)
5423 
5424  def get_model_objects(self):
5425  r"""get_model_objects(Model self) -> IMP::ModelObjectsTemp"""
5426  return _IMP_kernel.Model_get_model_objects(self)
5427 
5428  def remove_particle(self, pi):
5429  r"""remove_particle(Model self, ParticleIndex pi)"""
5430  return _IMP_kernel.Model_remove_particle(self, pi)
5431 
5432  def add_data(self, mk, o):
5433  r"""add_data(Model self, ModelKey mk, Object o)"""
5434  return _IMP_kernel.Model_add_data(self, mk, o)
5435 
5436  def get_data(self, mk):
5437  r"""get_data(Model self, ModelKey mk) -> Object"""
5438  return _IMP_kernel.Model_get_data(self, mk)
5439 
5440  def remove_data(self, mk):
5441  r"""remove_data(Model self, ModelKey mk)"""
5442  return _IMP_kernel.Model_remove_data(self, mk)
5443 
5444  def get_has_data(self, mk):
5445  r"""get_has_data(Model self, ModelKey mk) -> bool"""
5446  return _IMP_kernel.Model_get_has_data(self, mk)
5447 
5448  def get_age(self):
5449  r"""get_age(Model self) -> unsigned int"""
5450  return _IMP_kernel.Model_get_age(self)
5451 
5452  def get_trigger_last_updated(self, tk):
5453  r"""get_trigger_last_updated(Model self, TriggerKey tk) -> unsigned int"""
5454  return _IMP_kernel.Model_get_trigger_last_updated(self, tk)
5455 
5456  def set_trigger_updated(self, tk):
5457  r"""set_trigger_updated(Model self, TriggerKey tk)"""
5458  return _IMP_kernel.Model_set_trigger_updated(self, tk)
5459 
5460  def get_dependencies_updated(self):
5461  r"""get_dependencies_updated(Model self) -> unsigned int"""
5462  return _IMP_kernel.Model_get_dependencies_updated(self)
5463 
5464  def save_dependencies(self):
5465  r"""save_dependencies(Model self)"""
5466  return _IMP_kernel.Model_save_dependencies(self)
5467 
5468  def restore_dependencies(self):
5469  r"""restore_dependencies(Model self)"""
5470  return _IMP_kernel.Model_restore_dependencies(self)
5471 
5472  def get_particles_size(self):
5473  r"""get_particles_size(Model self) -> unsigned int"""
5474  return _IMP_kernel.Model_get_particles_size(self)
5475 
5476  def get_unique_id(self):
5477  r"""get_unique_id(Model self) -> uint32_t"""
5478  return _IMP_kernel.Model_get_unique_id(self)
5479 
5480  @staticmethod
5481  def get_by_unique_id(id):
5482  r"""get_by_unique_id(uint32_t id) -> Model"""
5483  return _IMP_kernel.Model_get_by_unique_id(id)
5484 
5485  def get_version_info(self):
5486  r"""get_version_info(Model self) -> VersionInfo"""
5487  return _IMP_kernel.Model_get_version_info(self)
5488  __swig_destroy__ = _IMP_kernel.delete_Model
5489  def __del__(self):
5490  r"""__del__(Model self)"""
5491 
5492  _director_objects.cleanup()
5493 
5494 
5495  pass
5496 
5497 
5498  def do_destroy(self):
5499  r"""do_destroy(Model self)"""
5500  return _IMP_kernel.Model_do_destroy(self)
5501 
5502  def __str__(self):
5503  r"""__str__(Model self) -> std::string"""
5504  return _IMP_kernel.Model___str__(self)
5505 
5506  def __repr__(self):
5507  r"""__repr__(Model self) -> std::string"""
5508  return _IMP_kernel.Model___repr__(self)
5509 
5510  @staticmethod
5511  def get_from(o):
5512  return _object_cast_to_Model(o)
5513 
5514 
5515  def _get_as_binary(self):
5516  r"""_get_as_binary(Model self) -> PyObject *"""
5517  return _IMP_kernel.Model__get_as_binary(self)
5518 
5519  def _set_from_binary(self, p):
5520  r"""_set_from_binary(Model self, PyObject * p)"""
5521  return _IMP_kernel.Model__set_from_binary(self, p)
5522 
5523  def __getstate__(self):
5524  p = self._get_as_binary()
5525  if len(self.__dict__) > 1:
5526  d = self.__dict__.copy()
5527  del d['this']
5528  p = (d, p)
5529  return p
5530 
5531  def __setstate__(self, p):
5532  if not hasattr(self, 'this'):
5533  self.__init__()
5534  if isinstance(p, tuple):
5535  d, p = p
5536  self.__dict__.update(d)
5537  return self._set_from_binary(p)
5538 
5539 
5540  def get_ints_numpy(self, k):
5541  """Get the model's attribute array for IntKey k as a NumPy array.
5542  The array is indexed by ParticleIndex; particles that don't have
5543  this attribute will either be off the end of the array or will have
5544  the value INT_MAX.
5545  This is a NumPy view that shares memory with the Model. Thus,
5546  any changes to values in this list will be reflected in the Model.
5547  Also, if the Model attribute array moves in memory (e.g. if particles
5548  or attributes are added) this array will be invalidated, so it is
5549  unsafe to keep it around long term.
5550  """
5551  return _get_ints_numpy(self, k, self)
5552 
5553  def get_floats_numpy(self, k):
5554  """Get the model's attribute array for FloatKey k as a NumPy array.
5555  See Model::get_ints_numpy() for more details."""
5556  return _get_floats_numpy(self, k, self)
5557 
5559  """Get the model's attribute derivatives array for FloatKey k
5560  as a NumPy array. See Model::get_ints_numpy() for more details."""
5561  return _get_derivatives_numpy(self, k, self)
5562 
5563  def get_spheres_numpy(self):
5564  """Get the model's XYZR attribute arrays as NumPy arrays.
5565  The attribute arrays for Cartesian coordinates and radii are
5566  stored separately from those for other FloatKeys. This function
5567  returns a tuple of two NumPy arrays, the first of coordinates and
5568  the second of radii. See Model::get_ints_numpy() for more details."""
5569  return _get_spheres_numpy(self, self)
5570 
5572  """Get the model's XYZR attribute derivatives arrays as NumPy arrays.
5573  See Model::get_ints_numpy() for more details."""
5574  return _get_sphere_derivatives_numpy(self, self)
5575 
5576 
5577 # Register Model in _IMP_kernel:
5578 _IMP_kernel.Model_swigregister(Model)
5579 class Decorator(_Value):
5580  r"""Proxy of C++ IMP::Decorator class."""
5581 
5582  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5583  __repr__ = _swig_repr
5584 
5585  def __init__(self, p):
5586  r"""__init__(Decorator self, _ParticleAdaptor p) -> Decorator"""
5587  _IMP_kernel.Decorator_swiginit(self, _IMP_kernel.new_Decorator(p))
5588 
5589  def __ne__(self, o):
5590  r"""__ne__(Decorator self, Object o) -> bool"""
5591  return _IMP_kernel.Decorator___ne__(self, o)
5592 
5593  def __lt__(self, o):
5594  r"""__lt__(Decorator self, Object o) -> bool"""
5595  return _IMP_kernel.Decorator___lt__(self, o)
5596 
5597  def __gt__(self, o):
5598  r"""__gt__(Decorator self, Object o) -> bool"""
5599  return _IMP_kernel.Decorator___gt__(self, o)
5600 
5601  def __ge__(self, o):
5602  r"""__ge__(Decorator self, Object o) -> bool"""
5603  return _IMP_kernel.Decorator___ge__(self, o)
5604 
5605  def __le__(self, o):
5606  r"""__le__(Decorator self, Object o) -> bool"""
5607  return _IMP_kernel.Decorator___le__(self, o)
5608 
5609  def get_particle(self):
5610  r"""get_particle(Decorator self) -> Particle"""
5611  return _IMP_kernel.Decorator_get_particle(self)
5612 
5613  def get_particle_index(self):
5614  r"""get_particle_index(Decorator self) -> ParticleIndex"""
5615  return _IMP_kernel.Decorator_get_particle_index(self)
5616 
5617  def get_model(self):
5618  m = _IMP_kernel.Decorator_get_model(self)
5619  if m in _models_set:
5620  m = _models_set_get(m)
5621  return m
5622 
5623 
5624 
5625  def get_is_valid(self):
5626  r"""get_is_valid(Decorator self) -> bool"""
5627  return _IMP_kernel.Decorator_get_is_valid(self)
5628 
5629  def __hash__(self):
5630  r"""__hash__(Decorator self) -> std::size_t"""
5631  return _IMP_kernel.Decorator___hash__(self)
5632 
5633  def __eq__(self, *args):
5634  r"""
5635  __eq__(Decorator self, Object o) -> bool
5636  __eq__(Decorator self, Decorator o) -> bool
5637  __eq__(Decorator self, Particle o) -> bool
5638  """
5639  return _IMP_kernel.Decorator___eq__(self, *args)
5640 
5641  def __bool__(self):
5642  r"""__bool__(Decorator self) -> bool"""
5643  return _IMP_kernel.Decorator___bool__(self)
5644 
5645  __nonzero__ = __bool__
5646 
5647  __swig_destroy__ = _IMP_kernel.delete_Decorator
5648 
5649 # Register Decorator in _IMP_kernel:
5650 _IMP_kernel.Decorator_swigregister(Decorator)
5651 
5652 def check_particle(m, pi):
5653  r"""check_particle(Model m, ParticleIndex pi)"""
5654  return _IMP_kernel.check_particle(m, pi)
5655 class UnaryFunction(Object):
5656  r"""Proxy of C++ IMP::UnaryFunction class."""
5657 
5658  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5659 
5660  def __init__(self, *args):
5661  r"""__init__(UnaryFunction self, std::string name="UnaryFunction%1%") -> UnaryFunction"""
5662  if self.__class__ == UnaryFunction:
5663  _self = None
5664  else:
5665  _self = self
5666  _IMP_kernel.UnaryFunction_swiginit(self, _IMP_kernel.new_UnaryFunction(_self, *args))
5667 
5668  if self.__class__ != UnaryFunction:
5669  _director_objects.register(self)
5670 
5671 
5672 
5673 
5674  def evaluate(self, feature):
5675  r"""evaluate(UnaryFunction self, double feature) -> double"""
5676  return _IMP_kernel.UnaryFunction_evaluate(self, feature)
5677 
5678  def evaluate_with_derivative(self, feature):
5679  r"""evaluate_with_derivative(UnaryFunction self, double feature) -> IMP::DerivativePair"""
5680  return _IMP_kernel.UnaryFunction_evaluate_with_derivative(self, feature)
5681  __swig_destroy__ = _IMP_kernel.delete_UnaryFunction
5682 
5683  def __str__(self):
5684  r"""__str__(UnaryFunction self) -> std::string"""
5685  return _IMP_kernel.UnaryFunction___str__(self)
5686 
5687  def __repr__(self):
5688  r"""__repr__(UnaryFunction self) -> std::string"""
5689  return _IMP_kernel.UnaryFunction___repr__(self)
5690 
5691  @staticmethod
5692  def get_from(o):
5693  return _object_cast_to_UnaryFunction(o)
5694 
5695 
5696  def get_type_name(self):
5697  return self.__class__.__name__
5698  def do_show(self, out):
5699  pass
5700  def get_version_info(self):
5701  if"IMP" == "IMP":
5702  return VersionInfo(self.__module__,
5703  __import__(self.__module__).get_module_version())
5704  else:
5705  return IMP.VersionInfo(self.__module__,
5706  __import__(self.__module__).get_module_version())
5707  @staticmethod
5708  def get_from(o):
5709  return _object_cast_to_UnaryFunction(o)
5710 
5711  def __disown__(self):
5712  self.this.disown()
5713  _IMP_kernel.disown_UnaryFunction(self)
5714  return weakref.proxy(self)
5715 
5716  def do_destroy(self):
5717  r"""do_destroy(UnaryFunction self)"""
5718  return _IMP_kernel.UnaryFunction_do_destroy(self)
5719 
5720 # Register UnaryFunction in _IMP_kernel:
5721 _IMP_kernel.UnaryFunction_swigregister(UnaryFunction)
5722 class OptimizerState(ModelObject):
5723  r"""Proxy of C++ IMP::OptimizerState class."""
5724 
5725  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5726 
5727  def __init__(self, *args):
5728  r"""
5729  __init__(OptimizerState self, Model m, std::string name) -> OptimizerState
5730  __init__(OptimizerState self) -> OptimizerState
5731  """
5732  if self.__class__ == OptimizerState:
5733  _self = None
5734  else:
5735  _self = self
5736  _IMP_kernel.OptimizerState_swiginit(self, _IMP_kernel.new_OptimizerState(_self, *args))
5737 
5738  if self.__class__ != OptimizerState:
5739  _director_objects.register(self)
5740 
5741 
5742 
5743 
5744  def update(self):
5745  r"""update(OptimizerState self)"""
5746  return _IMP_kernel.OptimizerState_update(self)
5747 
5748  def set_is_optimizing(self, arg0):
5749  r"""set_is_optimizing(OptimizerState self, bool arg0)"""
5750  return _IMP_kernel.OptimizerState_set_is_optimizing(self, arg0)
5751 
5752  def get_optimizer(self):
5753  r"""get_optimizer(OptimizerState self) -> Optimizer"""
5754  return _IMP_kernel.OptimizerState_get_optimizer(self)
5755 
5756  def set_period(self, p):
5757  r"""set_period(OptimizerState self, unsigned int p)"""
5758  return _IMP_kernel.OptimizerState_set_period(self, p)
5759 
5760  def get_period(self):
5761  r"""get_period(OptimizerState self) -> unsigned int"""
5762  return _IMP_kernel.OptimizerState_get_period(self)
5763 
5764  def reset(self):
5765  r"""reset(OptimizerState self)"""
5766  return _IMP_kernel.OptimizerState_reset(self)
5767 
5768  def update_always(self):
5769  r"""update_always(OptimizerState self)"""
5770  return _IMP_kernel.OptimizerState_update_always(self)
5771 
5772  def get_number_of_updates(self):
5773  r"""get_number_of_updates(OptimizerState self) -> unsigned int"""
5774  return _IMP_kernel.OptimizerState_get_number_of_updates(self)
5775 
5776  def set_number_of_updates(self, n):
5777  r"""set_number_of_updates(OptimizerState self, unsigned int n)"""
5778  return _IMP_kernel.OptimizerState_set_number_of_updates(self, n)
5779  __swig_destroy__ = _IMP_kernel.delete_OptimizerState
5780 
5781  def do_update(self, arg0):
5782  r"""do_update(OptimizerState self, unsigned int arg0)"""
5783  return _IMP_kernel.OptimizerState_do_update(self, arg0)
5784 
5785  def do_set_is_optimizing(self, arg0):
5786  r"""do_set_is_optimizing(OptimizerState self, bool arg0)"""
5787  return _IMP_kernel.OptimizerState_do_set_is_optimizing(self, arg0)
5788 
5789  def do_get_inputs(self):
5790  r"""do_get_inputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
5791  return _IMP_kernel.OptimizerState_do_get_inputs(self)
5792 
5793  def do_get_outputs(self):
5794  r"""do_get_outputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
5795  return _IMP_kernel.OptimizerState_do_get_outputs(self)
5796 
5797  def __str__(self):
5798  r"""__str__(OptimizerState self) -> std::string"""
5799  return _IMP_kernel.OptimizerState___str__(self)
5800 
5801  def __repr__(self):
5802  r"""__repr__(OptimizerState self) -> std::string"""
5803  return _IMP_kernel.OptimizerState___repr__(self)
5804 
5805  @staticmethod
5806  def get_from(o):
5807  return _object_cast_to_OptimizerState(o)
5808 
5809 
5810  def get_type_name(self):
5811  return self.__class__.__name__
5812  def do_show(self, out):
5813  pass
5814  def get_version_info(self):
5815  if"IMP" == "IMP":
5816  return VersionInfo(self.__module__,
5817  __import__(self.__module__).get_module_version())
5818  else:
5819  return IMP.VersionInfo(self.__module__,
5820  __import__(self.__module__).get_module_version())
5821  @staticmethod
5822  def get_from(o):
5823  return _object_cast_to_OptimizerState(o)
5824 
5825  def __disown__(self):
5826  self.this.disown()
5827  _IMP_kernel.disown_OptimizerState(self)
5828  return weakref.proxy(self)
5829 
5830  def do_destroy(self):
5831  r"""do_destroy(OptimizerState self)"""
5832  return _IMP_kernel.OptimizerState_do_destroy(self)
5833 
5834  def handle_set_has_required_score_states(self, arg0):
5835  r"""handle_set_has_required_score_states(OptimizerState self, bool arg0)"""
5836  return _IMP_kernel.OptimizerState_handle_set_has_required_score_states(self, arg0)
5837 
5838  def do_get_interactions(self):
5839  r"""do_get_interactions(OptimizerState self) -> IMP::ModelObjectsTemps"""
5840  return _IMP_kernel.OptimizerState_do_get_interactions(self)
5841 
5842 # Register OptimizerState in _IMP_kernel:
5843 _IMP_kernel.OptimizerState_swigregister(OptimizerState)
5844 class Refiner(_ParticleInputs, Object):
5845  r"""Proxy of C++ IMP::Refiner class."""
5846 
5847  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5848 
5849  def __init__(self, *args):
5850  r"""__init__(Refiner self, std::string name="Refiner %1%", bool is_by_ref=False) -> Refiner"""
5851  if self.__class__ == Refiner:
5852  _self = None
5853  else:
5854  _self = self
5855  _IMP_kernel.Refiner_swiginit(self, _IMP_kernel.new_Refiner(_self, *args))
5856 
5857  if self.__class__ != Refiner:
5858  _director_objects.register(self)
5859 
5860 
5861 
5862 
5863  def get_can_refine(self, arg0):
5864  r"""get_can_refine(Refiner self, Particle arg0) -> bool"""
5865  return _IMP_kernel.Refiner_get_can_refine(self, arg0)
5866 
5867  def get_refined_indexes(self, m, pi):
5868  r"""get_refined_indexes(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes"""
5869  return _IMP_kernel.Refiner_get_refined_indexes(self, m, pi)
5870 
5871  def get_refined_indexes_by_ref(self, m, pi):
5872  r"""get_refined_indexes_by_ref(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes const &"""
5873  return _IMP_kernel.Refiner_get_refined_indexes_by_ref(self, m, pi)
5874 
5875  def get_is_by_ref_supported(self):
5876  r"""get_is_by_ref_supported(Refiner self) -> bool"""
5877  return _IMP_kernel.Refiner_get_is_by_ref_supported(self)
5878 
5879  def get_refined(self, *args):
5880  r"""
5881  get_refined(Refiner self, Particle a) -> IMP::ParticlesTemp const
5882  get_refined(Refiner self, Particle a, unsigned int i) -> Particle
5883  """
5884  return _IMP_kernel.Refiner_get_refined(self, *args)
5885 
5886  def get_number_of_refined(self, a):
5887  r"""get_number_of_refined(Refiner self, Particle a) -> unsigned int"""
5888  return _IMP_kernel.Refiner_get_number_of_refined(self, a)
5889 
5890  def __str__(self):
5891  r"""__str__(Refiner self) -> std::string"""
5892  return _IMP_kernel.Refiner___str__(self)
5893 
5894  def __repr__(self):
5895  r"""__repr__(Refiner self) -> std::string"""
5896  return _IMP_kernel.Refiner___repr__(self)
5897 
5898  @staticmethod
5899  def get_from(o):
5900  return _object_cast_to_Refiner(o)
5901 
5902 
5903  def get_type_name(self):
5904  return self.__class__.__name__
5905  def do_show(self, out):
5906  pass
5907  def get_version_info(self):
5908  if"IMP" == "IMP":
5909  return VersionInfo(self.__module__,
5910  __import__(self.__module__).get_module_version())
5911  else:
5912  return IMP.VersionInfo(self.__module__,
5913  __import__(self.__module__).get_module_version())
5914  @staticmethod
5915  def get_from(o):
5916  return _object_cast_to_Refiner(o)
5917 
5918  __swig_destroy__ = _IMP_kernel.delete_Refiner
5919  def __disown__(self):
5920  self.this.disown()
5921  _IMP_kernel.disown_Refiner(self)
5922  return weakref.proxy(self)
5923 
5924  def do_get_inputs(self, m, pis):
5925  r"""do_get_inputs(Refiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5926  return _IMP_kernel.Refiner_do_get_inputs(self, m, pis)
5927 
5928  def do_destroy(self):
5929  r"""do_destroy(Refiner self)"""
5930  return _IMP_kernel.Refiner_do_destroy(self)
5931 
5932 # Register Refiner in _IMP_kernel:
5933 _IMP_kernel.Refiner_swigregister(Refiner)
5934 class Optimizer(ModelObject):
5935  r"""Proxy of C++ IMP::Optimizer class."""
5936 
5937  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5938 
5939  def set_is_optimizing_states(self, tf):
5940  r"""set_is_optimizing_states(Optimizer self, bool tf)"""
5941  return _IMP_kernel.Optimizer_set_is_optimizing_states(self, tf)
5942 
5943  def get_optimizer_state_inputs(self):
5944  r"""get_optimizer_state_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5945  return _IMP_kernel.Optimizer_get_optimizer_state_inputs(self)
5946 
5947  def do_get_inputs(self):
5948  r"""do_get_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5949  return _IMP_kernel.Optimizer_do_get_inputs(self)
5950 
5951  def do_get_outputs(self):
5952  r"""do_get_outputs(Optimizer self) -> IMP::ModelObjectsTemp"""
5953  return _IMP_kernel.Optimizer_do_get_outputs(self)
5954 
5955  def __init__(self, *args):
5956  r"""
5957  __init__(Optimizer self, Model m, std::string name="Optimizer %1%") -> Optimizer
5958  __init__(Optimizer self) -> Optimizer
5959  """
5960  if self.__class__ == Optimizer:
5961  _self = None
5962  else:
5963  _self = self
5964  _IMP_kernel.Optimizer_swiginit(self, _IMP_kernel.new_Optimizer(_self, *args))
5965 
5966  if self.__class__ != Optimizer:
5967  _director_objects.register(self)
5968 
5969 
5970 
5971 
5972  def optimize(self, max_steps):
5973  r"""optimize(Optimizer self, unsigned int max_steps) -> double"""
5974  return _IMP_kernel.Optimizer_optimize(self, max_steps)
5975 
5976  def set_stop_on_good_score(self, tf):
5977  r"""set_stop_on_good_score(Optimizer self, bool tf)"""
5978  return _IMP_kernel.Optimizer_set_stop_on_good_score(self, tf)
5979 
5980  def get_stop_on_good_score(self):
5981  r"""get_stop_on_good_score(Optimizer self) -> bool"""
5982  return _IMP_kernel.Optimizer_get_stop_on_good_score(self)
5983 
5984  def get_last_score(self):
5985  r"""get_last_score(Optimizer self) -> double"""
5986  return _IMP_kernel.Optimizer_get_last_score(self)
5987 
5988  def get_scoring_function(self):
5989  r"""get_scoring_function(Optimizer self) -> ScoringFunction"""
5990  return _IMP_kernel.Optimizer_get_scoring_function(self)
5991  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)
5992  def __set_optimizer_states(self, obj): _list_util.set_varlist(self.optimizer_states, obj)
5993  def __del_optimizer_states(self): _list_util.del_varlist(self.optimizer_states)
5994  optimizer_states = property(__get_optimizer_states, __set_optimizer_states, __del_optimizer_states, doc="List of ##ucnames")
5995 
5996  def remove_optimizer_state(self, d):
5997  r"""remove_optimizer_state(Optimizer self, OptimizerState d)"""
5998  return _IMP_kernel.Optimizer_remove_optimizer_state(self, d)
5999 
6000  def _python_index_optimizer_state(self, d, start, stop):
6001  r"""_python_index_optimizer_state(Optimizer self, OptimizerState d, unsigned int start, unsigned int stop) -> unsigned int"""
6002  return _IMP_kernel.Optimizer__python_index_optimizer_state(self, d, start, stop)
6003 
6004  def remove_optimizer_states(self, d):
6005  r"""remove_optimizer_states(Optimizer self, IMP::OptimizerStates const & d)"""
6006  return _IMP_kernel.Optimizer_remove_optimizer_states(self, d)
6007 
6008  def set_optimizer_states(self, ps):
6009  r"""set_optimizer_states(Optimizer self, IMP::OptimizerStates const & ps)"""
6010  return _IMP_kernel.Optimizer_set_optimizer_states(self, ps)
6011 
6012  def set_optimizer_states_order(self, objs):
6013  r"""set_optimizer_states_order(Optimizer self, IMP::OptimizerStates const & objs)"""
6014  return _IMP_kernel.Optimizer_set_optimizer_states_order(self, objs)
6015 
6016  def add_optimizer_state(self, obj):
6017  r"""add_optimizer_state(Optimizer self, OptimizerState obj) -> unsigned int"""
6018  return _IMP_kernel.Optimizer_add_optimizer_state(self, obj)
6019 
6020  def add_optimizer_states(self, objs):
6021  r"""add_optimizer_states(Optimizer self, IMP::OptimizerStates const & objs)"""
6022  return _IMP_kernel.Optimizer_add_optimizer_states(self, objs)
6023 
6024  def clear_optimizer_states(self):
6025  r"""clear_optimizer_states(Optimizer self)"""
6026  return _IMP_kernel.Optimizer_clear_optimizer_states(self)
6027 
6028  def get_number_of_optimizer_states(self):
6029  r"""get_number_of_optimizer_states(Optimizer self) -> unsigned int"""
6030  return _IMP_kernel.Optimizer_get_number_of_optimizer_states(self)
6031 
6032  def get_has_optimizer_states(self):
6033  r"""get_has_optimizer_states(Optimizer self) -> bool"""
6034  return _IMP_kernel.Optimizer_get_has_optimizer_states(self)
6035 
6036  def get_optimizer_state(self, i):
6037  r"""get_optimizer_state(Optimizer self, unsigned int i) -> OptimizerState"""
6038  return _IMP_kernel.Optimizer_get_optimizer_state(self, i)
6039 
6040  def get_optimizer_states(self):
6041  r"""get_optimizer_states(Optimizer self) -> IMP::OptimizerStates"""
6042  return _IMP_kernel.Optimizer_get_optimizer_states(self)
6043 
6044  def erase_optimizer_state(self, i):
6045  r"""erase_optimizer_state(Optimizer self, unsigned int i)"""
6046  return _IMP_kernel.Optimizer_erase_optimizer_state(self, i)
6047 
6048  def reserve_optimizer_states(self, sz):
6049  r"""reserve_optimizer_states(Optimizer self, unsigned int sz)"""
6050  return _IMP_kernel.Optimizer_reserve_optimizer_states(self, sz)
6051 
6052  def set_scoring_function(self, sf):
6053  r"""set_scoring_function(Optimizer self, _ScoringFunctionAdaptor sf)"""
6054  return _IMP_kernel.Optimizer_set_scoring_function(self, sf)
6055  __swig_destroy__ = _IMP_kernel.delete_Optimizer
6056  def __del__(self):
6057  r"""__del__(Optimizer self)"""
6058 
6059  _director_objects.cleanup()
6060 
6061 
6062  pass
6063 
6064 
6065  def do_optimize(self, ns):
6066  r"""do_optimize(Optimizer self, unsigned int ns) -> double"""
6067  return _IMP_kernel.Optimizer_do_optimize(self, ns)
6068 
6069  def update_states(self):
6070  r"""update_states(Optimizer self)"""
6071  return _IMP_kernel.Optimizer_update_states(self)
6072 
6073  def __str__(self):
6074  r"""__str__(Optimizer self) -> std::string"""
6075  return _IMP_kernel.Optimizer___str__(self)
6076 
6077  def __repr__(self):
6078  r"""__repr__(Optimizer self) -> std::string"""
6079  return _IMP_kernel.Optimizer___repr__(self)
6080 
6081  @staticmethod
6082  def get_from(o):
6083  return _object_cast_to_Optimizer(o)
6084 
6085 
6086  def get_type_name(self):
6087  return self.__class__.__name__
6088  def do_show(self, out):
6089  pass
6090  def get_version_info(self):
6091  if"IMP" == "IMP":
6092  return VersionInfo(self.__module__,
6093  __import__(self.__module__).get_module_version())
6094  else:
6095  return IMP.VersionInfo(self.__module__,
6096  __import__(self.__module__).get_module_version())
6097  @staticmethod
6098  def get_from(o):
6099  return _object_cast_to_Optimizer(o)
6100 
6101  def __disown__(self):
6102  self.this.disown()
6103  _IMP_kernel.disown_Optimizer(self)
6104  return weakref.proxy(self)
6105 
6106  def do_destroy(self):
6107  r"""do_destroy(Optimizer self)"""
6108  return _IMP_kernel.Optimizer_do_destroy(self)
6109 
6110  def handle_set_has_required_score_states(self, arg0):
6111  r"""handle_set_has_required_score_states(Optimizer self, bool arg0)"""
6112  return _IMP_kernel.Optimizer_handle_set_has_required_score_states(self, arg0)
6113 
6114  def do_get_interactions(self):
6115  r"""do_get_interactions(Optimizer self) -> IMP::ModelObjectsTemps"""
6116  return _IMP_kernel.Optimizer_do_get_interactions(self)
6117 
6118 # Register Optimizer in _IMP_kernel:
6119 _IMP_kernel.Optimizer_swigregister(Optimizer)
6120 class AttributeOptimizer(Optimizer):
6121  r"""Proxy of C++ IMP::AttributeOptimizer class."""
6122 
6123  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6124 
6125  def __init__(self, *args):
6126  r"""
6127  __init__(AttributeOptimizer self, Model m, std::string name="Optimizer %1%") -> AttributeOptimizer
6128  __init__(AttributeOptimizer self) -> AttributeOptimizer
6129  """
6130  if self.__class__ == AttributeOptimizer:
6131  _self = None
6132  else:
6133  _self = self
6134  _IMP_kernel.AttributeOptimizer_swiginit(self, _IMP_kernel.new_AttributeOptimizer(_self, *args))
6135 
6136  if self.__class__ != AttributeOptimizer:
6137  _director_objects.register(self)
6138 
6139 
6140 
6141 
6142  def get_optimized_attributes(self):
6143  r"""get_optimized_attributes(AttributeOptimizer self) -> IMP::FloatIndexes"""
6144  return _IMP_kernel.AttributeOptimizer_get_optimized_attributes(self)
6145 
6146  def set_value(self, fi, v):
6147  r"""set_value(AttributeOptimizer self, FloatIndex fi, double v)"""
6148  return _IMP_kernel.AttributeOptimizer_set_value(self, fi, v)
6149 
6150  def get_value(self, fi):
6151  r"""get_value(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
6152  return _IMP_kernel.AttributeOptimizer_get_value(self, fi)
6153 
6154  def get_derivative(self, fi):
6155  r"""get_derivative(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
6156  return _IMP_kernel.AttributeOptimizer_get_derivative(self, fi)
6157 
6158  def get_width(self, k):
6159  r"""get_width(AttributeOptimizer self, FloatKey k) -> double"""
6160  return _IMP_kernel.AttributeOptimizer_get_width(self, k)
6161 
6162  def set_scaled_value(self, fi, v):
6163  r"""set_scaled_value(AttributeOptimizer self, FloatIndex fi, IMP::Float v)"""
6164  return _IMP_kernel.AttributeOptimizer_set_scaled_value(self, fi, v)
6165 
6166  def get_scaled_value(self, fi):
6167  r"""get_scaled_value(AttributeOptimizer self, FloatIndex fi) -> double"""
6168  return _IMP_kernel.AttributeOptimizer_get_scaled_value(self, fi)
6169 
6170  def get_scaled_derivative(self, fi):
6171  r"""get_scaled_derivative(AttributeOptimizer self, FloatIndex fi) -> double"""
6172  return _IMP_kernel.AttributeOptimizer_get_scaled_derivative(self, fi)
6173 
6174  def clear_range_cache(self):
6175  r"""clear_range_cache(AttributeOptimizer self)"""
6176  return _IMP_kernel.AttributeOptimizer_clear_range_cache(self)
6177 
6178  def __str__(self):
6179  r"""__str__(AttributeOptimizer self) -> std::string"""
6180  return _IMP_kernel.AttributeOptimizer___str__(self)
6181 
6182  def __repr__(self):
6183  r"""__repr__(AttributeOptimizer self) -> std::string"""
6184  return _IMP_kernel.AttributeOptimizer___repr__(self)
6185 
6186  @staticmethod
6187  def get_from(o):
6188  return _object_cast_to_AttributeOptimizer(o)
6189 
6190 
6191  def get_type_name(self):
6192  return self.__class__.__name__
6193  def do_show(self, out):
6194  pass
6195  def get_version_info(self):
6196  if"IMP" == "IMP":
6197  return VersionInfo(self.__module__,
6198  __import__(self.__module__).get_module_version())
6199  else:
6200  return IMP.VersionInfo(self.__module__,
6201  __import__(self.__module__).get_module_version())
6202  @staticmethod
6203  def get_from(o):
6204  return _object_cast_to_AttributeOptimizer(o)
6205 
6206  __swig_destroy__ = _IMP_kernel.delete_AttributeOptimizer
6207  def __disown__(self):
6208  self.this.disown()
6209  _IMP_kernel.disown_AttributeOptimizer(self)
6210  return weakref.proxy(self)
6211 
6212  def do_destroy(self):
6213  r"""do_destroy(AttributeOptimizer self)"""
6214  return _IMP_kernel.AttributeOptimizer_do_destroy(self)
6215 
6216  def handle_set_has_required_score_states(self, arg0):
6217  r"""handle_set_has_required_score_states(AttributeOptimizer self, bool arg0)"""
6218  return _IMP_kernel.AttributeOptimizer_handle_set_has_required_score_states(self, arg0)
6219 
6220  def do_get_inputs(self):
6221  r"""do_get_inputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
6222  return _IMP_kernel.AttributeOptimizer_do_get_inputs(self)
6223 
6224  def do_get_outputs(self):
6225  r"""do_get_outputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
6226  return _IMP_kernel.AttributeOptimizer_do_get_outputs(self)
6227 
6228  def do_get_interactions(self):
6229  r"""do_get_interactions(AttributeOptimizer self) -> IMP::ModelObjectsTemps"""
6230  return _IMP_kernel.AttributeOptimizer_do_get_interactions(self)
6231 
6232  def do_optimize(self, ns):
6233  r"""do_optimize(AttributeOptimizer self, unsigned int ns) -> double"""
6234  return _IMP_kernel.AttributeOptimizer_do_optimize(self, ns)
6235 
6236 # Register AttributeOptimizer in _IMP_kernel:
6237 _IMP_kernel.AttributeOptimizer_swigregister(AttributeOptimizer)
6238 class ConfigurationSet(Object):
6239  r"""Proxy of C++ IMP::ConfigurationSet class."""
6240 
6241  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6242 
6243  def __init__(self, *args):
6244  r"""__init__(ConfigurationSet self, Model m, std::string name="ConfigurationSet %1%") -> ConfigurationSet"""
6245  _IMP_kernel.ConfigurationSet_swiginit(self, _IMP_kernel.new_ConfigurationSet(*args))
6246 
6247  def save_configuration(self):
6248  r"""save_configuration(ConfigurationSet self)"""
6249  return _IMP_kernel.ConfigurationSet_save_configuration(self)
6250 
6251  def get_number_of_configurations(self):
6252  r"""get_number_of_configurations(ConfigurationSet self) -> unsigned int"""
6253  return _IMP_kernel.ConfigurationSet_get_number_of_configurations(self)
6254 
6255  def load_configuration(self, i):
6256  r"""load_configuration(ConfigurationSet self, int i)"""
6257  return _IMP_kernel.ConfigurationSet_load_configuration(self, i)
6258 
6259  def remove_configuration(self, i):
6260  r"""remove_configuration(ConfigurationSet self, unsigned int i)"""
6261  return _IMP_kernel.ConfigurationSet_remove_configuration(self, i)
6262 
6263  def get_model(self):
6264  r"""get_model(ConfigurationSet self) -> Model"""
6265  return _IMP_kernel.ConfigurationSet_get_model(self)
6266 
6267  def get_version_info(self):
6268  r"""get_version_info(ConfigurationSet self) -> VersionInfo"""
6269  return _IMP_kernel.ConfigurationSet_get_version_info(self)
6270  __swig_destroy__ = _IMP_kernel.delete_ConfigurationSet
6271 
6272  def __str__(self):
6273  r"""__str__(ConfigurationSet self) -> std::string"""
6274  return _IMP_kernel.ConfigurationSet___str__(self)
6275 
6276  def __repr__(self):
6277  r"""__repr__(ConfigurationSet self) -> std::string"""
6278  return _IMP_kernel.ConfigurationSet___repr__(self)
6279 
6280  @staticmethod
6281  def get_from(o):
6282  return _object_cast_to_ConfigurationSet(o)
6283 
6284 
6285 # Register ConfigurationSet in _IMP_kernel:
6286 _IMP_kernel.ConfigurationSet_swigregister(ConfigurationSet)
6287 class SaveToConfigurationSetOptimizerState(OptimizerState):
6288  r"""Proxy of C++ IMP::SaveToConfigurationSetOptimizerState class."""
6289 
6290  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6291 
6292  def __init__(self, cs):
6293  r"""__init__(SaveToConfigurationSetOptimizerState self, ConfigurationSet cs) -> SaveToConfigurationSetOptimizerState"""
6294  _IMP_kernel.SaveToConfigurationSetOptimizerState_swiginit(self, _IMP_kernel.new_SaveToConfigurationSetOptimizerState(cs))
6295 
6296  def get_version_info(self):
6297  r"""get_version_info(SaveToConfigurationSetOptimizerState self) -> VersionInfo"""
6298  return _IMP_kernel.SaveToConfigurationSetOptimizerState_get_version_info(self)
6299  __swig_destroy__ = _IMP_kernel.delete_SaveToConfigurationSetOptimizerState
6300 
6301  def __str__(self):
6302  r"""__str__(SaveToConfigurationSetOptimizerState self) -> std::string"""
6303  return _IMP_kernel.SaveToConfigurationSetOptimizerState___str__(self)
6304 
6305  def __repr__(self):
6306  r"""__repr__(SaveToConfigurationSetOptimizerState self) -> std::string"""
6307  return _IMP_kernel.SaveToConfigurationSetOptimizerState___repr__(self)
6308 
6309  @staticmethod
6310  def get_from(o):
6311  return _object_cast_to_SaveToConfigurationSetOptimizerState(o)
6312 
6313 
6314 # Register SaveToConfigurationSetOptimizerState in _IMP_kernel:
6315 _IMP_kernel.SaveToConfigurationSetOptimizerState_swigregister(SaveToConfigurationSetOptimizerState)
6316 class Configuration(Object):
6317  r"""Proxy of C++ IMP::Configuration class."""
6318 
6319  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6320 
6321  def __init__(self, *args):
6322  r"""
6323  __init__(Configuration self, Model m, std::string name="Configuration %1%") -> Configuration
6324  __init__(Configuration self, Model m, Configuration base, std::string name="Configuration %1%") -> Configuration
6325  """
6326  _IMP_kernel.Configuration_swiginit(self, _IMP_kernel.new_Configuration(*args))
6327 
6328  def load_configuration(self):
6329  r"""load_configuration(Configuration self)"""
6330  return _IMP_kernel.Configuration_load_configuration(self)
6331 
6332  def swap_configuration(self):
6333  r"""swap_configuration(Configuration self)"""
6334  return _IMP_kernel.Configuration_swap_configuration(self)
6335 
6336  def get_version_info(self):
6337  r"""get_version_info(Configuration self) -> VersionInfo"""
6338  return _IMP_kernel.Configuration_get_version_info(self)
6339  __swig_destroy__ = _IMP_kernel.delete_Configuration
6340 
6341  def __str__(self):
6342  r"""__str__(Configuration self) -> std::string"""
6343  return _IMP_kernel.Configuration___str__(self)
6344 
6345  def __repr__(self):
6346  r"""__repr__(Configuration self) -> std::string"""
6347  return _IMP_kernel.Configuration___repr__(self)
6348 
6349  @staticmethod
6350  def get_from(o):
6351  return _object_cast_to_Configuration(o)
6352 
6353 
6354 # Register Configuration in _IMP_kernel:
6355 _IMP_kernel.Configuration_swigregister(Configuration)
6356 class Sampler(Object):
6357  r"""Proxy of C++ IMP::Sampler class."""
6358 
6359  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6360 
6361  def __init__(self, *args):
6362  r"""__init__(Sampler self, Model m, std::string name="Sampler %1%") -> Sampler"""
6363  if self.__class__ == Sampler:
6364  _self = None
6365  else:
6366  _self = self
6367  _IMP_kernel.Sampler_swiginit(self, _IMP_kernel.new_Sampler(_self, *args))
6368 
6369  if self.__class__ != Sampler:
6370  _director_objects.register(self)
6371 
6372 
6373 
6374 
6375  def create_sample(self):
6376  r"""create_sample(Sampler self) -> ConfigurationSet"""
6377  return _IMP_kernel.Sampler_create_sample(self)
6378 
6379  def get_scoring_function(self):
6380  r"""get_scoring_function(Sampler self) -> ScoringFunction"""
6381  return _IMP_kernel.Sampler_get_scoring_function(self)
6382 
6383  def set_scoring_function(self, sf):
6384  r"""set_scoring_function(Sampler self, _ScoringFunctionAdaptor sf)"""
6385  return _IMP_kernel.Sampler_set_scoring_function(self, sf)
6386 
6387  def get_model(self):
6388  r"""get_model(Sampler self) -> Model"""
6389  return _IMP_kernel.Sampler_get_model(self)
6390 
6391  def do_sample(self):
6392  r"""do_sample(Sampler self) -> ConfigurationSet"""
6393  return _IMP_kernel.Sampler_do_sample(self)
6394  __swig_destroy__ = _IMP_kernel.delete_Sampler
6395 
6396  def __str__(self):
6397  r"""__str__(Sampler self) -> std::string"""
6398  return _IMP_kernel.Sampler___str__(self)
6399 
6400  def __repr__(self):
6401  r"""__repr__(Sampler self) -> std::string"""
6402  return _IMP_kernel.Sampler___repr__(self)
6403 
6404  @staticmethod
6405  def get_from(o):
6406  return _object_cast_to_Sampler(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_Sampler(o)
6423 
6424  def __disown__(self):
6425  self.this.disown()
6426  _IMP_kernel.disown_Sampler(self)
6427  return weakref.proxy(self)
6428 
6429  def do_destroy(self):
6430  r"""do_destroy(Sampler self)"""
6431  return _IMP_kernel.Sampler_do_destroy(self)
6432 
6433 # Register Sampler in _IMP_kernel:
6434 _IMP_kernel.Sampler_swigregister(Sampler)
6435 class PairModifier(_ParticleInputs, _ParticleOutputs, Object):
6436  r"""Proxy of C++ IMP::PairModifier class."""
6437 
6438  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6439 
6440  def __init__(self, *args):
6441  r"""__init__(PairModifier self, std::string name="PairModifier %1%") -> PairModifier"""
6442  if self.__class__ == PairModifier:
6443  _self = None
6444  else:
6445  _self = self
6446  _IMP_kernel.PairModifier_swiginit(self, _IMP_kernel.new_PairModifier(_self, *args))
6447 
6448  if self.__class__ != PairModifier:
6449  _director_objects.register(self)
6450 
6451 
6452 
6453 
6454  def apply_index(self, m, v):
6455  r"""apply_index(PairModifier self, Model m, IMP::ParticleIndexPair const & v)"""
6456  return _IMP_kernel.PairModifier_apply_index(self, m, v)
6457 
6458  def apply_indexes(self, m, o, lower_bound, upper_bound):
6459  r"""apply_indexes(PairModifier self, Model m, IMP::ParticleIndexPairs const & o, unsigned int lower_bound, unsigned int upper_bound)"""
6460  return _IMP_kernel.PairModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
6461 
6462  def apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis):
6463  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)"""
6464  return _IMP_kernel.PairModifier_apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis)
6465 
6466  def __str__(self):
6467  r"""__str__(PairModifier self) -> std::string"""
6468  return _IMP_kernel.PairModifier___str__(self)
6469 
6470  def __repr__(self):
6471  r"""__repr__(PairModifier self) -> std::string"""
6472  return _IMP_kernel.PairModifier___repr__(self)
6473 
6474  @staticmethod
6475  def get_from(o):
6476  return _object_cast_to_PairModifier(o)
6477 
6478 
6479  def get_type_name(self):
6480  return self.__class__.__name__
6481  def do_show(self, out):
6482  pass
6483  def get_version_info(self):
6484  if"IMP" == "IMP":
6485  return VersionInfo(self.__module__,
6486  __import__(self.__module__).get_module_version())
6487  else:
6488  return IMP.VersionInfo(self.__module__,
6489  __import__(self.__module__).get_module_version())
6490  @staticmethod
6491  def get_from(o):
6492  return _object_cast_to_PairModifier(o)
6493 
6494  __swig_destroy__ = _IMP_kernel.delete_PairModifier
6495  def __disown__(self):
6496  self.this.disown()
6497  _IMP_kernel.disown_PairModifier(self)
6498  return weakref.proxy(self)
6499 
6500  def do_get_inputs(self, m, pis):
6501  r"""do_get_inputs(PairModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6502  return _IMP_kernel.PairModifier_do_get_inputs(self, m, pis)
6503 
6504  def do_get_outputs(self, m, pis):
6505  r"""do_get_outputs(PairModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6506  return _IMP_kernel.PairModifier_do_get_outputs(self, m, pis)
6507 
6508  def do_destroy(self):
6509  r"""do_destroy(PairModifier self)"""
6510  return _IMP_kernel.PairModifier_do_destroy(self)
6511 
6512 # Register PairModifier in _IMP_kernel:
6513 _IMP_kernel.PairModifier_swigregister(PairModifier)
6514 class PairScore(_ParticleInputs, Object):
6515  r"""Proxy of C++ IMP::PairScore class."""
6516 
6517  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6518 
6519  def __init__(self, *args):
6520  r"""__init__(PairScore self, std::string name="PairScore %1%") -> PairScore"""
6521  if self.__class__ == PairScore:
6522  _self = None
6523  else:
6524  _self = self
6525  _IMP_kernel.PairScore_swiginit(self, _IMP_kernel.new_PairScore(_self, *args))
6526 
6527  if self.__class__ != PairScore:
6528  _director_objects.register(self)
6529 
6530 
6531 
6532 
6533  def evaluate_index(self, m, vt, da):
6534  r"""evaluate_index(PairScore self, Model m, IMP::ParticleIndexPair const & vt, DerivativeAccumulator da) -> double"""
6535  return _IMP_kernel.PairScore_evaluate_index(self, m, vt, da)
6536 
6537  def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
6538  r"""evaluate_indexes(PairScore self, Model m, IMP::ParticleIndexPairs const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
6539  return _IMP_kernel.PairScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
6540 
6541  def evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score):
6542  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"""
6543  return _IMP_kernel.PairScore_evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score)
6544 
6545  def evaluate_indexes_delta(self, m, o, da, indexes, score):
6546  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"""
6547  return _IMP_kernel.PairScore_evaluate_indexes_delta(self, m, o, da, indexes, score)
6548 
6549  def evaluate_if_good_index(self, m, vt, da, max):
6550  r"""evaluate_if_good_index(PairScore self, Model m, IMP::ParticleIndexPair const & vt, DerivativeAccumulator da, double max) -> double"""
6551  return _IMP_kernel.PairScore_evaluate_if_good_index(self, m, vt, da, max)
6552 
6553  def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
6554  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"""
6555  return _IMP_kernel.PairScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
6556 
6557  def create_current_decomposition(self, m, vt):
6558  r"""create_current_decomposition(PairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
6559  return _IMP_kernel.PairScore_create_current_decomposition(self, m, vt)
6560 
6561  def do_create_current_decomposition(self, m, vt):
6562  r"""do_create_current_decomposition(PairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
6563  return _IMP_kernel.PairScore_do_create_current_decomposition(self, m, vt)
6564  __swig_destroy__ = _IMP_kernel.delete_PairScore
6565 
6566  def __str__(self):
6567  r"""__str__(PairScore self) -> std::string"""
6568  return _IMP_kernel.PairScore___str__(self)
6569 
6570  def __repr__(self):
6571  r"""__repr__(PairScore self) -> std::string"""
6572  return _IMP_kernel.PairScore___repr__(self)
6573 
6574  @staticmethod
6575  def get_from(o):
6576  return _object_cast_to_PairScore(o)
6577 
6578 
6579  def get_type_name(self):
6580  return self.__class__.__name__
6581  def do_show(self, out):
6582  pass
6583  def get_version_info(self):
6584  if"IMP" == "IMP":
6585  return VersionInfo(self.__module__,
6586  __import__(self.__module__).get_module_version())
6587  else:
6588  return IMP.VersionInfo(self.__module__,
6589  __import__(self.__module__).get_module_version())
6590  @staticmethod
6591  def get_from(o):
6592  return _object_cast_to_PairScore(o)
6593 
6594  def __disown__(self):
6595  self.this.disown()
6596  _IMP_kernel.disown_PairScore(self)
6597  return weakref.proxy(self)
6598 
6599  def do_get_inputs(self, m, pis):
6600  r"""do_get_inputs(PairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6601  return _IMP_kernel.PairScore_do_get_inputs(self, m, pis)
6602 
6603  def do_destroy(self):
6604  r"""do_destroy(PairScore self)"""
6605  return _IMP_kernel.PairScore_do_destroy(self)
6606 
6607 # Register PairScore in _IMP_kernel:
6608 _IMP_kernel.PairScore_swigregister(PairScore)
6609 class PairPredicate(_ParticleInputs, Object):
6610  r"""Proxy of C++ IMP::PairPredicate class."""
6611 
6612  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6613 
6614  def __init__(self, *args):
6615  r"""__init__(PairPredicate self, std::string name="PairPredicate %1%") -> PairPredicate"""
6616  if self.__class__ == PairPredicate:
6617  _self = None
6618  else:
6619  _self = self
6620  _IMP_kernel.PairPredicate_swiginit(self, _IMP_kernel.new_PairPredicate(_self, *args))
6621 
6622  if self.__class__ != PairPredicate:
6623  _director_objects.register(self)
6624 
6625 
6626 
6627 
6628  def setup_for_get_value_index_in_batch(self, arg0):
6629  r"""setup_for_get_value_index_in_batch(PairPredicate self, Model arg0)"""
6630  return _IMP_kernel.PairPredicate_setup_for_get_value_index_in_batch(self, arg0)
6631 
6632  def get_value_index_in_batch(self, m, vt):
6633  r"""get_value_index_in_batch(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int"""
6634  return _IMP_kernel.PairPredicate_get_value_index_in_batch(self, m, vt)
6635 
6636  def __call__(self, m, vt):
6637  r"""__call__(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int"""
6638  return _IMP_kernel.PairPredicate___call__(self, m, vt)
6639 
6640  def get_value_index(self, *args):
6641  r"""
6642  get_value_index(PairPredicate self, Model m, IMP::ParticleIndexPair const & vt) -> int
6643  get_value_index(PairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
6644  """
6645  return _IMP_kernel.PairPredicate_get_value_index(self, *args)
6646  __swig_destroy__ = _IMP_kernel.delete_PairPredicate
6647 
6648  def __str__(self):
6649  r"""__str__(PairPredicate self) -> std::string"""
6650  return _IMP_kernel.PairPredicate___str__(self)
6651 
6652  def __repr__(self):
6653  r"""__repr__(PairPredicate self) -> std::string"""
6654  return _IMP_kernel.PairPredicate___repr__(self)
6655 
6656  @staticmethod
6657  def get_from(o):
6658  return _object_cast_to_PairPredicate(o)
6659 
6660 
6661  def get_type_name(self):
6662  return self.__class__.__name__
6663  def do_show(self, out):
6664  pass
6665  def get_version_info(self):
6666  if"IMP" == "IMP":
6667  return VersionInfo(self.__module__,
6668  __import__(self.__module__).get_module_version())
6669  else:
6670  return IMP.VersionInfo(self.__module__,
6671  __import__(self.__module__).get_module_version())
6672  @staticmethod
6673  def get_from(o):
6674  return _object_cast_to_PairPredicate(o)
6675 
6676  def __disown__(self):
6677  self.this.disown()
6678  _IMP_kernel.disown_PairPredicate(self)
6679  return weakref.proxy(self)
6680 
6681  def do_get_inputs(self, m, pis):
6682  r"""do_get_inputs(PairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6683  return _IMP_kernel.PairPredicate_do_get_inputs(self, m, pis)
6684 
6685  def do_destroy(self):
6686  r"""do_destroy(PairPredicate self)"""
6687  return _IMP_kernel.PairPredicate_do_destroy(self)
6688 
6689 # Register PairPredicate in _IMP_kernel:
6690 _IMP_kernel.PairPredicate_swigregister(PairPredicate)
6691 class PairContainer(Container):
6692  r"""Proxy of C++ IMP::PairContainer class."""
6693 
6694  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6695 
6696  def apply_generic(self, m):
6697  r"""apply_generic(PairContainer self, PairModifier m)"""
6698  return _IMP_kernel.PairContainer_apply_generic(self, m)
6699 
6700  def apply_generic_moved(self, m, moved_pis, reset_pis):
6701  r"""apply_generic_moved(PairContainer self, PairModifier m, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
6702  return _IMP_kernel.PairContainer_apply_generic_moved(self, m, moved_pis, reset_pis)
6703 
6704  def apply(self, sm):
6705  r"""apply(PairContainer self, PairModifier sm)"""
6706  return _IMP_kernel.PairContainer_apply(self, sm)
6707 
6708  def apply_moved(self, sm, moved_pis, reset_pis):
6709  r"""apply_moved(PairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
6710  return _IMP_kernel.PairContainer_apply_moved(self, sm, moved_pis, reset_pis)
6711 
6712  def get_range_indexes(self):
6713  r"""get_range_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
6714  return _IMP_kernel.PairContainer_get_range_indexes(self)
6715 
6716  def get_contents(self):
6717  r"""get_contents(PairContainer self) -> IMP::ParticleIndexPairs const &"""
6718  return _IMP_kernel.PairContainer_get_contents(self)
6719 
6720  def get_indexes(self):
6721  r"""get_indexes(PairContainer self) -> IMP::ParticleIndexPairs"""
6722  return _IMP_kernel.PairContainer_get_indexes(self)
6723 
6724  def get(self, *args):
6725  r"""
6726  get(PairContainer self) -> IMP::ParticlePairsTemp
6727  get(PairContainer self, unsigned int i) -> IMP::ParticlePair
6728  """
6729  return _IMP_kernel.PairContainer_get(self, *args)
6730 
6731  def get_number(self):
6732  r"""get_number(PairContainer self) -> unsigned int"""
6733  return _IMP_kernel.PairContainer_get_number(self)
6734 
6735  def __init__(self, *args):
6736  r"""
6737  __init__(PairContainer self, Model m, std::string name="PairContainer %1%") -> PairContainer
6738  __init__(PairContainer self) -> PairContainer
6739  """
6740  if self.__class__ == PairContainer:
6741  _self = None
6742  else:
6743  _self = self
6744  _IMP_kernel.PairContainer_swiginit(self, _IMP_kernel.new_PairContainer(_self, *args))
6745 
6746  if self.__class__ != PairContainer:
6747  _director_objects.register(self)
6748 
6749 
6750 
6751 
6752  def do_apply(self, sm):
6753  r"""do_apply(PairContainer self, PairModifier sm)"""
6754  return _IMP_kernel.PairContainer_do_apply(self, sm)
6755 
6756  def do_apply_moved(self, sm, moved_pis, reset_pis):
6757  r"""do_apply_moved(PairContainer self, PairModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
6758  return _IMP_kernel.PairContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
6759 
6760  def do_get_provides_access(self):
6761  r"""do_get_provides_access(PairContainer self) -> bool"""
6762  return _IMP_kernel.PairContainer_do_get_provides_access(self)
6763  __swig_destroy__ = _IMP_kernel.delete_PairContainer
6764 
6765  def __str__(self):
6766  r"""__str__(PairContainer self) -> std::string"""
6767  return _IMP_kernel.PairContainer___str__(self)
6768 
6769  def __repr__(self):
6770  r"""__repr__(PairContainer self) -> std::string"""
6771  return _IMP_kernel.PairContainer___repr__(self)
6772 
6773  @staticmethod
6774  def get_from(o):
6775  return _object_cast_to_PairContainer(o)
6776 
6777 
6778  def get_type_name(self):
6779  return self.__class__.__name__
6780  def do_show(self, out):
6781  pass
6782  def get_version_info(self):
6783  if"IMP" == "IMP":
6784  return VersionInfo(self.__module__,
6785  __import__(self.__module__).get_module_version())
6786  else:
6787  return IMP.VersionInfo(self.__module__,
6788  __import__(self.__module__).get_module_version())
6789  @staticmethod
6790  def get_from(o):
6791  return _object_cast_to_PairContainer(o)
6792 
6793  def __disown__(self):
6794  self.this.disown()
6795  _IMP_kernel.disown_PairContainer(self)
6796  return weakref.proxy(self)
6797 
6798  def do_destroy(self):
6799  r"""do_destroy(PairContainer self)"""
6800  return _IMP_kernel.PairContainer_do_destroy(self)
6801 
6802  def handle_set_has_required_score_states(self, arg0):
6803  r"""handle_set_has_required_score_states(PairContainer self, bool arg0)"""
6804  return _IMP_kernel.PairContainer_handle_set_has_required_score_states(self, arg0)
6805 
6806  def do_get_inputs(self):
6807  r"""do_get_inputs(PairContainer self) -> IMP::ModelObjectsTemp"""
6808  return _IMP_kernel.PairContainer_do_get_inputs(self)
6809 
6810  def do_get_interactions(self):
6811  r"""do_get_interactions(PairContainer self) -> IMP::ModelObjectsTemps"""
6812  return _IMP_kernel.PairContainer_do_get_interactions(self)
6813 
6814  def do_get_contents_hash(self):
6815  r"""do_get_contents_hash(PairContainer self) -> std::size_t"""
6816  return _IMP_kernel.PairContainer_do_get_contents_hash(self)
6817 
6818 # Register PairContainer in _IMP_kernel:
6819 _IMP_kernel.PairContainer_swigregister(PairContainer)
6820 class _PairContainerAdaptor(_InputAdaptor):
6821  r"""Proxy of C++ IMP::PairContainerAdaptor class."""
6822 
6823  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6824  __repr__ = _swig_repr
6825 
6826  def __init__(self, *args):
6827  r"""
6828  __init__(_PairContainerAdaptor self) -> _PairContainerAdaptor
6829  __init__(_PairContainerAdaptor self, PairContainer c) -> _PairContainerAdaptor
6830  __init__(_PairContainerAdaptor self, IMP::ParticlePairsTemp const & t) -> _PairContainerAdaptor
6831  """
6832  _IMP_kernel._PairContainerAdaptor_swiginit(self, _IMP_kernel.new__PairContainerAdaptor(*args))
6833 
6834  def set_name_if_default(self, name):
6835  r"""set_name_if_default(_PairContainerAdaptor self, std::string name)"""
6836  return _IMP_kernel._PairContainerAdaptor_set_name_if_default(self, name)
6837  __swig_destroy__ = _IMP_kernel.delete__PairContainerAdaptor
6838 
6839 # Register _PairContainerAdaptor in _IMP_kernel:
6840 _IMP_kernel._PairContainerAdaptor_swigregister(_PairContainerAdaptor)
6841 class QuadModifier(_ParticleInputs, _ParticleOutputs, Object):
6842  r"""Proxy of C++ IMP::QuadModifier class."""
6843 
6844  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6845 
6846  def __init__(self, *args):
6847  r"""__init__(QuadModifier self, std::string name="QuadModifier %1%") -> QuadModifier"""
6848  if self.__class__ == QuadModifier:
6849  _self = None
6850  else:
6851  _self = self
6852  _IMP_kernel.QuadModifier_swiginit(self, _IMP_kernel.new_QuadModifier(_self, *args))
6853 
6854  if self.__class__ != QuadModifier:
6855  _director_objects.register(self)
6856 
6857 
6858 
6859 
6860  def apply_index(self, m, v):
6861  r"""apply_index(QuadModifier self, Model m, IMP::ParticleIndexQuad const & v)"""
6862  return _IMP_kernel.QuadModifier_apply_index(self, m, v)
6863 
6864  def apply_indexes(self, m, o, lower_bound, upper_bound):
6865  r"""apply_indexes(QuadModifier self, Model m, IMP::ParticleIndexQuads const & o, unsigned int lower_bound, unsigned int upper_bound)"""
6866  return _IMP_kernel.QuadModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
6867 
6868  def apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis):
6869  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)"""
6870  return _IMP_kernel.QuadModifier_apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis)
6871 
6872  def __str__(self):
6873  r"""__str__(QuadModifier self) -> std::string"""
6874  return _IMP_kernel.QuadModifier___str__(self)
6875 
6876  def __repr__(self):
6877  r"""__repr__(QuadModifier self) -> std::string"""
6878  return _IMP_kernel.QuadModifier___repr__(self)
6879 
6880  @staticmethod
6881  def get_from(o):
6882  return _object_cast_to_QuadModifier(o)
6883 
6884 
6885  def get_type_name(self):
6886  return self.__class__.__name__
6887  def do_show(self, out):
6888  pass
6889  def get_version_info(self):
6890  if"IMP" == "IMP":
6891  return VersionInfo(self.__module__,
6892  __import__(self.__module__).get_module_version())
6893  else:
6894  return IMP.VersionInfo(self.__module__,
6895  __import__(self.__module__).get_module_version())
6896  @staticmethod
6897  def get_from(o):
6898  return _object_cast_to_QuadModifier(o)
6899 
6900  __swig_destroy__ = _IMP_kernel.delete_QuadModifier
6901  def __disown__(self):
6902  self.this.disown()
6903  _IMP_kernel.disown_QuadModifier(self)
6904  return weakref.proxy(self)
6905 
6906  def do_get_inputs(self, m, pis):
6907  r"""do_get_inputs(QuadModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6908  return _IMP_kernel.QuadModifier_do_get_inputs(self, m, pis)
6909 
6910  def do_get_outputs(self, m, pis):
6911  r"""do_get_outputs(QuadModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6912  return _IMP_kernel.QuadModifier_do_get_outputs(self, m, pis)
6913 
6914  def do_destroy(self):
6915  r"""do_destroy(QuadModifier self)"""
6916  return _IMP_kernel.QuadModifier_do_destroy(self)
6917 
6918 # Register QuadModifier in _IMP_kernel:
6919 _IMP_kernel.QuadModifier_swigregister(QuadModifier)
6920 class QuadScore(_ParticleInputs, Object):
6921  r"""Proxy of C++ IMP::QuadScore class."""
6922 
6923  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6924 
6925  def __init__(self, *args):
6926  r"""__init__(QuadScore self, std::string name="QuadScore %1%") -> QuadScore"""
6927  if self.__class__ == QuadScore:
6928  _self = None
6929  else:
6930  _self = self
6931  _IMP_kernel.QuadScore_swiginit(self, _IMP_kernel.new_QuadScore(_self, *args))
6932 
6933  if self.__class__ != QuadScore:
6934  _director_objects.register(self)
6935 
6936 
6937 
6938 
6939  def evaluate_index(self, m, vt, da):
6940  r"""evaluate_index(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt, DerivativeAccumulator da) -> double"""
6941  return _IMP_kernel.QuadScore_evaluate_index(self, m, vt, da)
6942 
6943  def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
6944  r"""evaluate_indexes(QuadScore self, Model m, IMP::ParticleIndexQuads const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
6945  return _IMP_kernel.QuadScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
6946 
6947  def evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score):
6948  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"""
6949  return _IMP_kernel.QuadScore_evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score)
6950 
6951  def evaluate_indexes_delta(self, m, o, da, indexes, score):
6952  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"""
6953  return _IMP_kernel.QuadScore_evaluate_indexes_delta(self, m, o, da, indexes, score)
6954 
6955  def evaluate_if_good_index(self, m, vt, da, max):
6956  r"""evaluate_if_good_index(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt, DerivativeAccumulator da, double max) -> double"""
6957  return _IMP_kernel.QuadScore_evaluate_if_good_index(self, m, vt, da, max)
6958 
6959  def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
6960  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"""
6961  return _IMP_kernel.QuadScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
6962 
6963  def create_current_decomposition(self, m, vt):
6964  r"""create_current_decomposition(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
6965  return _IMP_kernel.QuadScore_create_current_decomposition(self, m, vt)
6966 
6967  def do_create_current_decomposition(self, m, vt):
6968  r"""do_create_current_decomposition(QuadScore self, Model m, IMP::ParticleIndexQuad const & vt) -> IMP::Restraints"""
6969  return _IMP_kernel.QuadScore_do_create_current_decomposition(self, m, vt)
6970  __swig_destroy__ = _IMP_kernel.delete_QuadScore
6971 
6972  def __str__(self):
6973  r"""__str__(QuadScore self) -> std::string"""
6974  return _IMP_kernel.QuadScore___str__(self)
6975 
6976  def __repr__(self):
6977  r"""__repr__(QuadScore self) -> std::string"""
6978  return _IMP_kernel.QuadScore___repr__(self)
6979 
6980  @staticmethod
6981  def get_from(o):
6982  return _object_cast_to_QuadScore(o)
6983 
6984 
6985  def get_type_name(self):
6986  return self.__class__.__name__
6987  def do_show(self, out):
6988  pass
6989  def get_version_info(self):
6990  if"IMP" == "IMP":
6991  return VersionInfo(self.__module__,
6992  __import__(self.__module__).get_module_version())
6993  else:
6994  return IMP.VersionInfo(self.__module__,
6995  __import__(self.__module__).get_module_version())
6996  @staticmethod
6997  def get_from(o):
6998  return _object_cast_to_QuadScore(o)
6999 
7000  def __disown__(self):
7001  self.this.disown()
7002  _IMP_kernel.disown_QuadScore(self)
7003  return weakref.proxy(self)
7004 
7005  def do_get_inputs(self, m, pis):
7006  r"""do_get_inputs(QuadScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7007  return _IMP_kernel.QuadScore_do_get_inputs(self, m, pis)
7008 
7009  def do_destroy(self):
7010  r"""do_destroy(QuadScore self)"""
7011  return _IMP_kernel.QuadScore_do_destroy(self)
7012 
7013 # Register QuadScore in _IMP_kernel:
7014 _IMP_kernel.QuadScore_swigregister(QuadScore)
7015 class QuadPredicate(_ParticleInputs, Object):
7016  r"""Proxy of C++ IMP::QuadPredicate class."""
7017 
7018  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7019 
7020  def __init__(self, *args):
7021  r"""__init__(QuadPredicate self, std::string name="QuadPredicate %1%") -> QuadPredicate"""
7022  if self.__class__ == QuadPredicate:
7023  _self = None
7024  else:
7025  _self = self
7026  _IMP_kernel.QuadPredicate_swiginit(self, _IMP_kernel.new_QuadPredicate(_self, *args))
7027 
7028  if self.__class__ != QuadPredicate:
7029  _director_objects.register(self)
7030 
7031 
7032 
7033 
7034  def setup_for_get_value_index_in_batch(self, arg0):
7035  r"""setup_for_get_value_index_in_batch(QuadPredicate self, Model arg0)"""
7036  return _IMP_kernel.QuadPredicate_setup_for_get_value_index_in_batch(self, arg0)
7037 
7038  def get_value_index_in_batch(self, m, vt):
7039  r"""get_value_index_in_batch(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int"""
7040  return _IMP_kernel.QuadPredicate_get_value_index_in_batch(self, m, vt)
7041 
7042  def __call__(self, m, vt):
7043  r"""__call__(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int"""
7044  return _IMP_kernel.QuadPredicate___call__(self, m, vt)
7045 
7046  def get_value_index(self, *args):
7047  r"""
7048  get_value_index(QuadPredicate self, Model m, IMP::ParticleIndexQuad const & vt) -> int
7049  get_value_index(QuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
7050  """
7051  return _IMP_kernel.QuadPredicate_get_value_index(self, *args)
7052  __swig_destroy__ = _IMP_kernel.delete_QuadPredicate
7053 
7054  def __str__(self):
7055  r"""__str__(QuadPredicate self) -> std::string"""
7056  return _IMP_kernel.QuadPredicate___str__(self)
7057 
7058  def __repr__(self):
7059  r"""__repr__(QuadPredicate self) -> std::string"""
7060  return _IMP_kernel.QuadPredicate___repr__(self)
7061 
7062  @staticmethod
7063  def get_from(o):
7064  return _object_cast_to_QuadPredicate(o)
7065 
7066 
7067  def get_type_name(self):
7068  return self.__class__.__name__
7069  def do_show(self, out):
7070  pass
7071  def get_version_info(self):
7072  if"IMP" == "IMP":
7073  return VersionInfo(self.__module__,
7074  __import__(self.__module__).get_module_version())
7075  else:
7076  return IMP.VersionInfo(self.__module__,
7077  __import__(self.__module__).get_module_version())
7078  @staticmethod
7079  def get_from(o):
7080  return _object_cast_to_QuadPredicate(o)
7081 
7082  def __disown__(self):
7083  self.this.disown()
7084  _IMP_kernel.disown_QuadPredicate(self)
7085  return weakref.proxy(self)
7086 
7087  def do_get_inputs(self, m, pis):
7088  r"""do_get_inputs(QuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7089  return _IMP_kernel.QuadPredicate_do_get_inputs(self, m, pis)
7090 
7091  def do_destroy(self):
7092  r"""do_destroy(QuadPredicate self)"""
7093  return _IMP_kernel.QuadPredicate_do_destroy(self)
7094 
7095 # Register QuadPredicate in _IMP_kernel:
7096 _IMP_kernel.QuadPredicate_swigregister(QuadPredicate)
7097 class QuadContainer(Container):
7098  r"""Proxy of C++ IMP::QuadContainer class."""
7099 
7100  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7101 
7102  def apply_generic(self, m):
7103  r"""apply_generic(QuadContainer self, QuadModifier m)"""
7104  return _IMP_kernel.QuadContainer_apply_generic(self, m)
7105 
7106  def apply_generic_moved(self, m, moved_pis, reset_pis):
7107  r"""apply_generic_moved(QuadContainer self, QuadModifier m, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
7108  return _IMP_kernel.QuadContainer_apply_generic_moved(self, m, moved_pis, reset_pis)
7109 
7110  def apply(self, sm):
7111  r"""apply(QuadContainer self, QuadModifier sm)"""
7112  return _IMP_kernel.QuadContainer_apply(self, sm)
7113 
7114  def apply_moved(self, sm, moved_pis, reset_pis):
7115  r"""apply_moved(QuadContainer self, QuadModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
7116  return _IMP_kernel.QuadContainer_apply_moved(self, sm, moved_pis, reset_pis)
7117 
7118  def get_range_indexes(self):
7119  r"""get_range_indexes(QuadContainer self) -> IMP::ParticleIndexQuads"""
7120  return _IMP_kernel.QuadContainer_get_range_indexes(self)
7121 
7122  def get_contents(self):
7123  r"""get_contents(QuadContainer self) -> IMP::ParticleIndexQuads const &"""
7124  return _IMP_kernel.QuadContainer_get_contents(self)
7125 
7126  def get_indexes(self):
7127  r"""get_indexes(QuadContainer self) -> IMP::ParticleIndexQuads"""
7128  return _IMP_kernel.QuadContainer_get_indexes(self)
7129 
7130  def get(self, *args):
7131  r"""
7132  get(QuadContainer self) -> IMP::ParticleQuadsTemp
7133  get(QuadContainer self, unsigned int i) -> IMP::ParticleQuad
7134  """
7135  return _IMP_kernel.QuadContainer_get(self, *args)
7136 
7137  def get_number(self):
7138  r"""get_number(QuadContainer self) -> unsigned int"""
7139  return _IMP_kernel.QuadContainer_get_number(self)
7140 
7141  def __init__(self, *args):
7142  r"""
7143  __init__(QuadContainer self, Model m, std::string name="QuadContainer %1%") -> QuadContainer
7144  __init__(QuadContainer self) -> QuadContainer
7145  """
7146  if self.__class__ == QuadContainer:
7147  _self = None
7148  else:
7149  _self = self
7150  _IMP_kernel.QuadContainer_swiginit(self, _IMP_kernel.new_QuadContainer(_self, *args))
7151 
7152  if self.__class__ != QuadContainer:
7153  _director_objects.register(self)
7154 
7155 
7156 
7157 
7158  def do_apply(self, sm):
7159  r"""do_apply(QuadContainer self, QuadModifier sm)"""
7160  return _IMP_kernel.QuadContainer_do_apply(self, sm)
7161 
7162  def do_apply_moved(self, sm, moved_pis, reset_pis):
7163  r"""do_apply_moved(QuadContainer self, QuadModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
7164  return _IMP_kernel.QuadContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
7165 
7166  def do_get_provides_access(self):
7167  r"""do_get_provides_access(QuadContainer self) -> bool"""
7168  return _IMP_kernel.QuadContainer_do_get_provides_access(self)
7169  __swig_destroy__ = _IMP_kernel.delete_QuadContainer
7170 
7171  def __str__(self):
7172  r"""__str__(QuadContainer self) -> std::string"""
7173  return _IMP_kernel.QuadContainer___str__(self)
7174 
7175  def __repr__(self):
7176  r"""__repr__(QuadContainer self) -> std::string"""
7177  return _IMP_kernel.QuadContainer___repr__(self)
7178 
7179  @staticmethod
7180  def get_from(o):
7181  return _object_cast_to_QuadContainer(o)
7182 
7183 
7184  def get_type_name(self):
7185  return self.__class__.__name__
7186  def do_show(self, out):
7187  pass
7188  def get_version_info(self):
7189  if"IMP" == "IMP":
7190  return VersionInfo(self.__module__,
7191  __import__(self.__module__).get_module_version())
7192  else:
7193  return IMP.VersionInfo(self.__module__,
7194  __import__(self.__module__).get_module_version())
7195  @staticmethod
7196  def get_from(o):
7197  return _object_cast_to_QuadContainer(o)
7198 
7199  def __disown__(self):
7200  self.this.disown()
7201  _IMP_kernel.disown_QuadContainer(self)
7202  return weakref.proxy(self)
7203 
7204  def do_destroy(self):
7205  r"""do_destroy(QuadContainer self)"""
7206  return _IMP_kernel.QuadContainer_do_destroy(self)
7207 
7208  def handle_set_has_required_score_states(self, arg0):
7209  r"""handle_set_has_required_score_states(QuadContainer self, bool arg0)"""
7210  return _IMP_kernel.QuadContainer_handle_set_has_required_score_states(self, arg0)
7211 
7212  def do_get_inputs(self):
7213  r"""do_get_inputs(QuadContainer self) -> IMP::ModelObjectsTemp"""
7214  return _IMP_kernel.QuadContainer_do_get_inputs(self)
7215 
7216  def do_get_interactions(self):
7217  r"""do_get_interactions(QuadContainer self) -> IMP::ModelObjectsTemps"""
7218  return _IMP_kernel.QuadContainer_do_get_interactions(self)
7219 
7220  def do_get_contents_hash(self):
7221  r"""do_get_contents_hash(QuadContainer self) -> std::size_t"""
7222  return _IMP_kernel.QuadContainer_do_get_contents_hash(self)
7223 
7224 # Register QuadContainer in _IMP_kernel:
7225 _IMP_kernel.QuadContainer_swigregister(QuadContainer)
7226 class _QuadContainerAdaptor(_InputAdaptor):
7227  r"""Proxy of C++ IMP::QuadContainerAdaptor class."""
7228 
7229  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7230  __repr__ = _swig_repr
7231 
7232  def __init__(self, *args):
7233  r"""
7234  __init__(_QuadContainerAdaptor self) -> _QuadContainerAdaptor
7235  __init__(_QuadContainerAdaptor self, QuadContainer c) -> _QuadContainerAdaptor
7236  __init__(_QuadContainerAdaptor self, IMP::ParticleQuadsTemp const & t) -> _QuadContainerAdaptor
7237  """
7238  _IMP_kernel._QuadContainerAdaptor_swiginit(self, _IMP_kernel.new__QuadContainerAdaptor(*args))
7239 
7240  def set_name_if_default(self, name):
7241  r"""set_name_if_default(_QuadContainerAdaptor self, std::string name)"""
7242  return _IMP_kernel._QuadContainerAdaptor_set_name_if_default(self, name)
7243  __swig_destroy__ = _IMP_kernel.delete__QuadContainerAdaptor
7244 
7245 # Register _QuadContainerAdaptor in _IMP_kernel:
7246 _IMP_kernel._QuadContainerAdaptor_swigregister(_QuadContainerAdaptor)
7247 class SingletonModifier(_ParticleInputs, _ParticleOutputs, Object):
7248  r"""Proxy of C++ IMP::SingletonModifier class."""
7249 
7250  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7251 
7252  def __init__(self, *args):
7253  r"""__init__(SingletonModifier self, std::string name="SingletonModifier %1%") -> SingletonModifier"""
7254  if self.__class__ == SingletonModifier:
7255  _self = None
7256  else:
7257  _self = self
7258  _IMP_kernel.SingletonModifier_swiginit(self, _IMP_kernel.new_SingletonModifier(_self, *args))
7259 
7260  if self.__class__ != SingletonModifier:
7261  _director_objects.register(self)
7262 
7263 
7264 
7265 
7266  def apply_index(self, m, v):
7267  r"""apply_index(SingletonModifier self, Model m, ParticleIndex v)"""
7268  return _IMP_kernel.SingletonModifier_apply_index(self, m, v)
7269 
7270  def apply_indexes(self, m, o, lower_bound, upper_bound):
7271  r"""apply_indexes(SingletonModifier self, Model m, IMP::ParticleIndexes const & o, unsigned int lower_bound, unsigned int upper_bound)"""
7272  return _IMP_kernel.SingletonModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
7273 
7274  def apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis):
7275  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)"""
7276  return _IMP_kernel.SingletonModifier_apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis)
7277 
7278  def __str__(self):
7279  r"""__str__(SingletonModifier self) -> std::string"""
7280  return _IMP_kernel.SingletonModifier___str__(self)
7281 
7282  def __repr__(self):
7283  r"""__repr__(SingletonModifier self) -> std::string"""
7284  return _IMP_kernel.SingletonModifier___repr__(self)
7285 
7286  @staticmethod
7287  def get_from(o):
7288  return _object_cast_to_SingletonModifier(o)
7289 
7290 
7291  def get_type_name(self):
7292  return self.__class__.__name__
7293  def do_show(self, out):
7294  pass
7295  def get_version_info(self):
7296  if"IMP" == "IMP":
7297  return VersionInfo(self.__module__,
7298  __import__(self.__module__).get_module_version())
7299  else:
7300  return IMP.VersionInfo(self.__module__,
7301  __import__(self.__module__).get_module_version())
7302  @staticmethod
7303  def get_from(o):
7304  return _object_cast_to_SingletonModifier(o)
7305 
7306  __swig_destroy__ = _IMP_kernel.delete_SingletonModifier
7307  def __disown__(self):
7308  self.this.disown()
7309  _IMP_kernel.disown_SingletonModifier(self)
7310  return weakref.proxy(self)
7311 
7312  def do_get_inputs(self, m, pis):
7313  r"""do_get_inputs(SingletonModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7314  return _IMP_kernel.SingletonModifier_do_get_inputs(self, m, pis)
7315 
7316  def do_get_outputs(self, m, pis):
7317  r"""do_get_outputs(SingletonModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7318  return _IMP_kernel.SingletonModifier_do_get_outputs(self, m, pis)
7319 
7320  def do_destroy(self):
7321  r"""do_destroy(SingletonModifier self)"""
7322  return _IMP_kernel.SingletonModifier_do_destroy(self)
7323 
7324 # Register SingletonModifier in _IMP_kernel:
7325 _IMP_kernel.SingletonModifier_swigregister(SingletonModifier)
7326 class SingletonScore(_ParticleInputs, Object):
7327  r"""Proxy of C++ IMP::SingletonScore class."""
7328 
7329  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7330 
7331  def __init__(self, *args):
7332  r"""__init__(SingletonScore self, std::string name="SingletonScore %1%") -> SingletonScore"""
7333  if self.__class__ == SingletonScore:
7334  _self = None
7335  else:
7336  _self = self
7337  _IMP_kernel.SingletonScore_swiginit(self, _IMP_kernel.new_SingletonScore(_self, *args))
7338 
7339  if self.__class__ != SingletonScore:
7340  _director_objects.register(self)
7341 
7342 
7343 
7344 
7345  def evaluate_index(self, m, vt, da):
7346  r"""evaluate_index(SingletonScore self, Model m, ParticleIndex vt, DerivativeAccumulator da) -> double"""
7347  return _IMP_kernel.SingletonScore_evaluate_index(self, m, vt, da)
7348 
7349  def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
7350  r"""evaluate_indexes(SingletonScore self, Model m, IMP::ParticleIndexes const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7351  return _IMP_kernel.SingletonScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
7352 
7353  def evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score):
7354  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"""
7355  return _IMP_kernel.SingletonScore_evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score)
7356 
7357  def evaluate_indexes_delta(self, m, o, da, indexes, score):
7358  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"""
7359  return _IMP_kernel.SingletonScore_evaluate_indexes_delta(self, m, o, da, indexes, score)
7360 
7361  def evaluate_if_good_index(self, m, vt, da, max):
7362  r"""evaluate_if_good_index(SingletonScore self, Model m, ParticleIndex vt, DerivativeAccumulator da, double max) -> double"""
7363  return _IMP_kernel.SingletonScore_evaluate_if_good_index(self, m, vt, da, max)
7364 
7365  def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
7366  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"""
7367  return _IMP_kernel.SingletonScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
7368 
7369  def create_current_decomposition(self, m, vt):
7370  r"""create_current_decomposition(SingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
7371  return _IMP_kernel.SingletonScore_create_current_decomposition(self, m, vt)
7372 
7373  def do_create_current_decomposition(self, m, vt):
7374  r"""do_create_current_decomposition(SingletonScore self, Model m, ParticleIndex vt) -> IMP::Restraints"""
7375  return _IMP_kernel.SingletonScore_do_create_current_decomposition(self, m, vt)
7376  __swig_destroy__ = _IMP_kernel.delete_SingletonScore
7377 
7378  def __str__(self):
7379  r"""__str__(SingletonScore self) -> std::string"""
7380  return _IMP_kernel.SingletonScore___str__(self)
7381 
7382  def __repr__(self):
7383  r"""__repr__(SingletonScore self) -> std::string"""
7384  return _IMP_kernel.SingletonScore___repr__(self)
7385 
7386  @staticmethod
7387  def get_from(o):
7388  return _object_cast_to_SingletonScore(o)
7389 
7390 
7391  def get_type_name(self):
7392  return self.__class__.__name__
7393  def do_show(self, out):
7394  pass
7395  def get_version_info(self):
7396  if"IMP" == "IMP":
7397  return VersionInfo(self.__module__,
7398  __import__(self.__module__).get_module_version())
7399  else:
7400  return IMP.VersionInfo(self.__module__,
7401  __import__(self.__module__).get_module_version())
7402  @staticmethod
7403  def get_from(o):
7404  return _object_cast_to_SingletonScore(o)
7405 
7406  def __disown__(self):
7407  self.this.disown()
7408  _IMP_kernel.disown_SingletonScore(self)
7409  return weakref.proxy(self)
7410 
7411  def do_get_inputs(self, m, pis):
7412  r"""do_get_inputs(SingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7413  return _IMP_kernel.SingletonScore_do_get_inputs(self, m, pis)
7414 
7415  def do_destroy(self):
7416  r"""do_destroy(SingletonScore self)"""
7417  return _IMP_kernel.SingletonScore_do_destroy(self)
7418 
7419 # Register SingletonScore in _IMP_kernel:
7420 _IMP_kernel.SingletonScore_swigregister(SingletonScore)
7421 class SingletonPredicate(_ParticleInputs, Object):
7422  r"""Proxy of C++ IMP::SingletonPredicate class."""
7423 
7424  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7425 
7426  def __init__(self, *args):
7427  r"""__init__(SingletonPredicate self, std::string name="SingletonPredicate %1%") -> SingletonPredicate"""
7428  if self.__class__ == SingletonPredicate:
7429  _self = None
7430  else:
7431  _self = self
7432  _IMP_kernel.SingletonPredicate_swiginit(self, _IMP_kernel.new_SingletonPredicate(_self, *args))
7433 
7434  if self.__class__ != SingletonPredicate:
7435  _director_objects.register(self)
7436 
7437 
7438 
7439 
7440  def setup_for_get_value_index_in_batch(self, arg0):
7441  r"""setup_for_get_value_index_in_batch(SingletonPredicate self, Model arg0)"""
7442  return _IMP_kernel.SingletonPredicate_setup_for_get_value_index_in_batch(self, arg0)
7443 
7444  def get_value_index_in_batch(self, m, vt):
7445  r"""get_value_index_in_batch(SingletonPredicate self, Model m, ParticleIndex vt) -> int"""
7446  return _IMP_kernel.SingletonPredicate_get_value_index_in_batch(self, m, vt)
7447 
7448  def __call__(self, m, vt):
7449  r"""__call__(SingletonPredicate self, Model m, ParticleIndex vt) -> int"""
7450  return _IMP_kernel.SingletonPredicate___call__(self, m, vt)
7451 
7452  def get_value_index(self, *args):
7453  r"""
7454  get_value_index(SingletonPredicate self, Model m, ParticleIndex vt) -> int
7455  get_value_index(SingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
7456  """
7457  return _IMP_kernel.SingletonPredicate_get_value_index(self, *args)
7458  __swig_destroy__ = _IMP_kernel.delete_SingletonPredicate
7459 
7460  def __str__(self):
7461  r"""__str__(SingletonPredicate self) -> std::string"""
7462  return _IMP_kernel.SingletonPredicate___str__(self)
7463 
7464  def __repr__(self):
7465  r"""__repr__(SingletonPredicate self) -> std::string"""
7466  return _IMP_kernel.SingletonPredicate___repr__(self)
7467 
7468  @staticmethod
7469  def get_from(o):
7470  return _object_cast_to_SingletonPredicate(o)
7471 
7472 
7473  def get_type_name(self):
7474  return self.__class__.__name__
7475  def do_show(self, out):
7476  pass
7477  def get_version_info(self):
7478  if"IMP" == "IMP":
7479  return VersionInfo(self.__module__,
7480  __import__(self.__module__).get_module_version())
7481  else:
7482  return IMP.VersionInfo(self.__module__,
7483  __import__(self.__module__).get_module_version())
7484  @staticmethod
7485  def get_from(o):
7486  return _object_cast_to_SingletonPredicate(o)
7487 
7488  def __disown__(self):
7489  self.this.disown()
7490  _IMP_kernel.disown_SingletonPredicate(self)
7491  return weakref.proxy(self)
7492 
7493  def do_get_inputs(self, m, pis):
7494  r"""do_get_inputs(SingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7495  return _IMP_kernel.SingletonPredicate_do_get_inputs(self, m, pis)
7496 
7497  def do_destroy(self):
7498  r"""do_destroy(SingletonPredicate self)"""
7499  return _IMP_kernel.SingletonPredicate_do_destroy(self)
7500 
7501 # Register SingletonPredicate in _IMP_kernel:
7502 _IMP_kernel.SingletonPredicate_swigregister(SingletonPredicate)
7503 class SingletonContainer(Container):
7504  r"""Proxy of C++ IMP::SingletonContainer class."""
7505 
7506  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7507 
7508  def apply_generic(self, m):
7509  r"""apply_generic(SingletonContainer self, SingletonModifier m)"""
7510  return _IMP_kernel.SingletonContainer_apply_generic(self, m)
7511 
7512  def apply_generic_moved(self, m, moved_pis, reset_pis):
7513  r"""apply_generic_moved(SingletonContainer self, SingletonModifier m, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
7514  return _IMP_kernel.SingletonContainer_apply_generic_moved(self, m, moved_pis, reset_pis)
7515 
7516  def apply(self, sm):
7517  r"""apply(SingletonContainer self, SingletonModifier sm)"""
7518  return _IMP_kernel.SingletonContainer_apply(self, sm)
7519 
7520  def apply_moved(self, sm, moved_pis, reset_pis):
7521  r"""apply_moved(SingletonContainer self, SingletonModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
7522  return _IMP_kernel.SingletonContainer_apply_moved(self, sm, moved_pis, reset_pis)
7523 
7524  def get_range_indexes(self):
7525  r"""get_range_indexes(SingletonContainer self) -> IMP::ParticleIndexes"""
7526  return _IMP_kernel.SingletonContainer_get_range_indexes(self)
7527 
7528  def get_contents(self):
7529  r"""get_contents(SingletonContainer self) -> IMP::ParticleIndexes const &"""
7530  return _IMP_kernel.SingletonContainer_get_contents(self)
7531 
7532  def get_indexes(self):
7533  r"""get_indexes(SingletonContainer self) -> IMP::ParticleIndexes"""
7534  return _IMP_kernel.SingletonContainer_get_indexes(self)
7535 
7536  def get(self, *args):
7537  r"""
7538  get(SingletonContainer self) -> IMP::ParticlesTemp
7539  get(SingletonContainer self, unsigned int i) -> Particle
7540  """
7541  return _IMP_kernel.SingletonContainer_get(self, *args)
7542 
7543  def get_number(self):
7544  r"""get_number(SingletonContainer self) -> unsigned int"""
7545  return _IMP_kernel.SingletonContainer_get_number(self)
7546 
7547  def __init__(self, *args):
7548  r"""
7549  __init__(SingletonContainer self, Model m, std::string name="SingletonContainer %1%") -> SingletonContainer
7550  __init__(SingletonContainer self) -> SingletonContainer
7551  """
7552  if self.__class__ == SingletonContainer:
7553  _self = None
7554  else:
7555  _self = self
7556  _IMP_kernel.SingletonContainer_swiginit(self, _IMP_kernel.new_SingletonContainer(_self, *args))
7557 
7558  if self.__class__ != SingletonContainer:
7559  _director_objects.register(self)
7560 
7561 
7562 
7563 
7564  def do_apply(self, sm):
7565  r"""do_apply(SingletonContainer self, SingletonModifier sm)"""
7566  return _IMP_kernel.SingletonContainer_do_apply(self, sm)
7567 
7568  def do_apply_moved(self, sm, moved_pis, reset_pis):
7569  r"""do_apply_moved(SingletonContainer self, SingletonModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
7570  return _IMP_kernel.SingletonContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
7571 
7572  def do_get_provides_access(self):
7573  r"""do_get_provides_access(SingletonContainer self) -> bool"""
7574  return _IMP_kernel.SingletonContainer_do_get_provides_access(self)
7575  __swig_destroy__ = _IMP_kernel.delete_SingletonContainer
7576 
7577  def __str__(self):
7578  r"""__str__(SingletonContainer self) -> std::string"""
7579  return _IMP_kernel.SingletonContainer___str__(self)
7580 
7581  def __repr__(self):
7582  r"""__repr__(SingletonContainer self) -> std::string"""
7583  return _IMP_kernel.SingletonContainer___repr__(self)
7584 
7585  @staticmethod
7586  def get_from(o):
7587  return _object_cast_to_SingletonContainer(o)
7588 
7589 
7590  def get_type_name(self):
7591  return self.__class__.__name__
7592  def do_show(self, out):
7593  pass
7594  def get_version_info(self):
7595  if"IMP" == "IMP":
7596  return VersionInfo(self.__module__,
7597  __import__(self.__module__).get_module_version())
7598  else:
7599  return IMP.VersionInfo(self.__module__,
7600  __import__(self.__module__).get_module_version())
7601  @staticmethod
7602  def get_from(o):
7603  return _object_cast_to_SingletonContainer(o)
7604 
7605  def __disown__(self):
7606  self.this.disown()
7607  _IMP_kernel.disown_SingletonContainer(self)
7608  return weakref.proxy(self)
7609 
7610  def do_destroy(self):
7611  r"""do_destroy(SingletonContainer self)"""
7612  return _IMP_kernel.SingletonContainer_do_destroy(self)
7613 
7614  def handle_set_has_required_score_states(self, arg0):
7615  r"""handle_set_has_required_score_states(SingletonContainer self, bool arg0)"""
7616  return _IMP_kernel.SingletonContainer_handle_set_has_required_score_states(self, arg0)
7617 
7618  def do_get_inputs(self):
7619  r"""do_get_inputs(SingletonContainer self) -> IMP::ModelObjectsTemp"""
7620  return _IMP_kernel.SingletonContainer_do_get_inputs(self)
7621 
7622  def do_get_interactions(self):
7623  r"""do_get_interactions(SingletonContainer self) -> IMP::ModelObjectsTemps"""
7624  return _IMP_kernel.SingletonContainer_do_get_interactions(self)
7625 
7626  def do_get_contents_hash(self):
7627  r"""do_get_contents_hash(SingletonContainer self) -> std::size_t"""
7628  return _IMP_kernel.SingletonContainer_do_get_contents_hash(self)
7629 
7630 # Register SingletonContainer in _IMP_kernel:
7631 _IMP_kernel.SingletonContainer_swigregister(SingletonContainer)
7632 class _SingletonContainerAdaptor(_InputAdaptor):
7633  r"""Proxy of C++ IMP::SingletonContainerAdaptor class."""
7634 
7635  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7636  __repr__ = _swig_repr
7637 
7638  def __init__(self, *args):
7639  r"""
7640  __init__(_SingletonContainerAdaptor self) -> _SingletonContainerAdaptor
7641  __init__(_SingletonContainerAdaptor self, SingletonContainer c) -> _SingletonContainerAdaptor
7642  __init__(_SingletonContainerAdaptor self, IMP::ParticlesTemp const & t) -> _SingletonContainerAdaptor
7643  """
7644  _IMP_kernel._SingletonContainerAdaptor_swiginit(self, _IMP_kernel.new__SingletonContainerAdaptor(*args))
7645 
7646  def set_name_if_default(self, name):
7647  r"""set_name_if_default(_SingletonContainerAdaptor self, std::string name)"""
7648  return _IMP_kernel._SingletonContainerAdaptor_set_name_if_default(self, name)
7649  __swig_destroy__ = _IMP_kernel.delete__SingletonContainerAdaptor
7650 
7651 # Register _SingletonContainerAdaptor in _IMP_kernel:
7652 _IMP_kernel._SingletonContainerAdaptor_swigregister(_SingletonContainerAdaptor)
7653 class TripletModifier(_ParticleInputs, _ParticleOutputs, Object):
7654  r"""Proxy of C++ IMP::TripletModifier 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"""__init__(TripletModifier self, std::string name="TripletModifier %1%") -> TripletModifier"""
7660  if self.__class__ == TripletModifier:
7661  _self = None
7662  else:
7663  _self = self
7664  _IMP_kernel.TripletModifier_swiginit(self, _IMP_kernel.new_TripletModifier(_self, *args))
7665 
7666  if self.__class__ != TripletModifier:
7667  _director_objects.register(self)
7668 
7669 
7670 
7671 
7672  def apply_index(self, m, v):
7673  r"""apply_index(TripletModifier self, Model m, IMP::ParticleIndexTriplet const & v)"""
7674  return _IMP_kernel.TripletModifier_apply_index(self, m, v)
7675 
7676  def apply_indexes(self, m, o, lower_bound, upper_bound):
7677  r"""apply_indexes(TripletModifier self, Model m, IMP::ParticleIndexTriplets const & o, unsigned int lower_bound, unsigned int upper_bound)"""
7678  return _IMP_kernel.TripletModifier_apply_indexes(self, m, o, lower_bound, upper_bound)
7679 
7680  def apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis):
7681  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)"""
7682  return _IMP_kernel.TripletModifier_apply_indexes_moved(self, m, o, lower_bound, upper_bound, moved_pis, reset_pis)
7683 
7684  def __str__(self):
7685  r"""__str__(TripletModifier self) -> std::string"""
7686  return _IMP_kernel.TripletModifier___str__(self)
7687 
7688  def __repr__(self):
7689  r"""__repr__(TripletModifier self) -> std::string"""
7690  return _IMP_kernel.TripletModifier___repr__(self)
7691 
7692  @staticmethod
7693  def get_from(o):
7694  return _object_cast_to_TripletModifier(o)
7695 
7696 
7697  def get_type_name(self):
7698  return self.__class__.__name__
7699  def do_show(self, out):
7700  pass
7701  def get_version_info(self):
7702  if"IMP" == "IMP":
7703  return VersionInfo(self.__module__,
7704  __import__(self.__module__).get_module_version())
7705  else:
7706  return IMP.VersionInfo(self.__module__,
7707  __import__(self.__module__).get_module_version())
7708  @staticmethod
7709  def get_from(o):
7710  return _object_cast_to_TripletModifier(o)
7711 
7712  __swig_destroy__ = _IMP_kernel.delete_TripletModifier
7713  def __disown__(self):
7714  self.this.disown()
7715  _IMP_kernel.disown_TripletModifier(self)
7716  return weakref.proxy(self)
7717 
7718  def do_get_inputs(self, m, pis):
7719  r"""do_get_inputs(TripletModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7720  return _IMP_kernel.TripletModifier_do_get_inputs(self, m, pis)
7721 
7722  def do_get_outputs(self, m, pis):
7723  r"""do_get_outputs(TripletModifier self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7724  return _IMP_kernel.TripletModifier_do_get_outputs(self, m, pis)
7725 
7726  def do_destroy(self):
7727  r"""do_destroy(TripletModifier self)"""
7728  return _IMP_kernel.TripletModifier_do_destroy(self)
7729 
7730 # Register TripletModifier in _IMP_kernel:
7731 _IMP_kernel.TripletModifier_swigregister(TripletModifier)
7732 class TripletScore(_ParticleInputs, Object):
7733  r"""Proxy of C++ IMP::TripletScore class."""
7734 
7735  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7736 
7737  def __init__(self, *args):
7738  r"""__init__(TripletScore self, std::string name="TripletScore %1%") -> TripletScore"""
7739  if self.__class__ == TripletScore:
7740  _self = None
7741  else:
7742  _self = self
7743  _IMP_kernel.TripletScore_swiginit(self, _IMP_kernel.new_TripletScore(_self, *args))
7744 
7745  if self.__class__ != TripletScore:
7746  _director_objects.register(self)
7747 
7748 
7749 
7750 
7751  def evaluate_index(self, m, vt, da):
7752  r"""evaluate_index(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt, DerivativeAccumulator da) -> double"""
7753  return _IMP_kernel.TripletScore_evaluate_index(self, m, vt, da)
7754 
7755  def evaluate_indexes(self, m, o, da, lower_bound, upper_bound):
7756  r"""evaluate_indexes(TripletScore self, Model m, IMP::ParticleIndexTriplets const & o, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound) -> double"""
7757  return _IMP_kernel.TripletScore_evaluate_indexes(self, m, o, da, lower_bound, upper_bound)
7758 
7759  def evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score):
7760  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"""
7761  return _IMP_kernel.TripletScore_evaluate_indexes_scores(self, m, o, da, lower_bound, upper_bound, score)
7762 
7763  def evaluate_indexes_delta(self, m, o, da, indexes, score):
7764  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"""
7765  return _IMP_kernel.TripletScore_evaluate_indexes_delta(self, m, o, da, indexes, score)
7766 
7767  def evaluate_if_good_index(self, m, vt, da, max):
7768  r"""evaluate_if_good_index(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt, DerivativeAccumulator da, double max) -> double"""
7769  return _IMP_kernel.TripletScore_evaluate_if_good_index(self, m, vt, da, max)
7770 
7771  def evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound):
7772  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"""
7773  return _IMP_kernel.TripletScore_evaluate_if_good_indexes(self, m, o, da, max, lower_bound, upper_bound)
7774 
7775  def create_current_decomposition(self, m, vt):
7776  r"""create_current_decomposition(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
7777  return _IMP_kernel.TripletScore_create_current_decomposition(self, m, vt)
7778 
7779  def do_create_current_decomposition(self, m, vt):
7780  r"""do_create_current_decomposition(TripletScore self, Model m, IMP::ParticleIndexTriplet const & vt) -> IMP::Restraints"""
7781  return _IMP_kernel.TripletScore_do_create_current_decomposition(self, m, vt)
7782  __swig_destroy__ = _IMP_kernel.delete_TripletScore
7783 
7784  def __str__(self):
7785  r"""__str__(TripletScore self) -> std::string"""
7786  return _IMP_kernel.TripletScore___str__(self)
7787 
7788  def __repr__(self):
7789  r"""__repr__(TripletScore self) -> std::string"""
7790  return _IMP_kernel.TripletScore___repr__(self)
7791 
7792  @staticmethod
7793  def get_from(o):
7794  return _object_cast_to_TripletScore(o)
7795 
7796 
7797  def get_type_name(self):
7798  return self.__class__.__name__
7799  def do_show(self, out):
7800  pass
7801  def get_version_info(self):
7802  if"IMP" == "IMP":
7803  return VersionInfo(self.__module__,
7804  __import__(self.__module__).get_module_version())
7805  else:
7806  return IMP.VersionInfo(self.__module__,
7807  __import__(self.__module__).get_module_version())
7808  @staticmethod
7809  def get_from(o):
7810  return _object_cast_to_TripletScore(o)
7811 
7812  def __disown__(self):
7813  self.this.disown()
7814  _IMP_kernel.disown_TripletScore(self)
7815  return weakref.proxy(self)
7816 
7817  def do_get_inputs(self, m, pis):
7818  r"""do_get_inputs(TripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7819  return _IMP_kernel.TripletScore_do_get_inputs(self, m, pis)
7820 
7821  def do_destroy(self):
7822  r"""do_destroy(TripletScore self)"""
7823  return _IMP_kernel.TripletScore_do_destroy(self)
7824 
7825 # Register TripletScore in _IMP_kernel:
7826 _IMP_kernel.TripletScore_swigregister(TripletScore)
7827 class TripletPredicate(_ParticleInputs, Object):
7828  r"""Proxy of C++ IMP::TripletPredicate class."""
7829 
7830  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7831 
7832  def __init__(self, *args):
7833  r"""__init__(TripletPredicate self, std::string name="TripletPredicate %1%") -> TripletPredicate"""
7834  if self.__class__ == TripletPredicate:
7835  _self = None
7836  else:
7837  _self = self
7838  _IMP_kernel.TripletPredicate_swiginit(self, _IMP_kernel.new_TripletPredicate(_self, *args))
7839 
7840  if self.__class__ != TripletPredicate:
7841  _director_objects.register(self)
7842 
7843 
7844 
7845 
7846  def setup_for_get_value_index_in_batch(self, arg0):
7847  r"""setup_for_get_value_index_in_batch(TripletPredicate self, Model arg0)"""
7848  return _IMP_kernel.TripletPredicate_setup_for_get_value_index_in_batch(self, arg0)
7849 
7850  def get_value_index_in_batch(self, m, vt):
7851  r"""get_value_index_in_batch(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int"""
7852  return _IMP_kernel.TripletPredicate_get_value_index_in_batch(self, m, vt)
7853 
7854  def __call__(self, m, vt):
7855  r"""__call__(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int"""
7856  return _IMP_kernel.TripletPredicate___call__(self, m, vt)
7857 
7858  def get_value_index(self, *args):
7859  r"""
7860  get_value_index(TripletPredicate self, Model m, IMP::ParticleIndexTriplet const & vt) -> int
7861  get_value_index(TripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
7862  """
7863  return _IMP_kernel.TripletPredicate_get_value_index(self, *args)
7864  __swig_destroy__ = _IMP_kernel.delete_TripletPredicate
7865 
7866  def __str__(self):
7867  r"""__str__(TripletPredicate self) -> std::string"""
7868  return _IMP_kernel.TripletPredicate___str__(self)
7869 
7870  def __repr__(self):
7871  r"""__repr__(TripletPredicate self) -> std::string"""
7872  return _IMP_kernel.TripletPredicate___repr__(self)
7873 
7874  @staticmethod
7875  def get_from(o):
7876  return _object_cast_to_TripletPredicate(o)
7877 
7878 
7879  def get_type_name(self):
7880  return self.__class__.__name__
7881  def do_show(self, out):
7882  pass
7883  def get_version_info(self):
7884  if"IMP" == "IMP":
7885  return VersionInfo(self.__module__,
7886  __import__(self.__module__).get_module_version())
7887  else:
7888  return IMP.VersionInfo(self.__module__,
7889  __import__(self.__module__).get_module_version())
7890  @staticmethod
7891  def get_from(o):
7892  return _object_cast_to_TripletPredicate(o)
7893 
7894  def __disown__(self):
7895  self.this.disown()
7896  _IMP_kernel.disown_TripletPredicate(self)
7897  return weakref.proxy(self)
7898 
7899  def do_get_inputs(self, m, pis):
7900  r"""do_get_inputs(TripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7901  return _IMP_kernel.TripletPredicate_do_get_inputs(self, m, pis)
7902 
7903  def do_destroy(self):
7904  r"""do_destroy(TripletPredicate self)"""
7905  return _IMP_kernel.TripletPredicate_do_destroy(self)
7906 
7907 # Register TripletPredicate in _IMP_kernel:
7908 _IMP_kernel.TripletPredicate_swigregister(TripletPredicate)
7909 class TripletContainer(Container):
7910  r"""Proxy of C++ IMP::TripletContainer class."""
7911 
7912  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7913 
7914  def apply_generic(self, m):
7915  r"""apply_generic(TripletContainer self, TripletModifier m)"""
7916  return _IMP_kernel.TripletContainer_apply_generic(self, m)
7917 
7918  def apply_generic_moved(self, m, moved_pis, reset_pis):
7919  r"""apply_generic_moved(TripletContainer self, TripletModifier m, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
7920  return _IMP_kernel.TripletContainer_apply_generic_moved(self, m, moved_pis, reset_pis)
7921 
7922  def apply(self, sm):
7923  r"""apply(TripletContainer self, TripletModifier sm)"""
7924  return _IMP_kernel.TripletContainer_apply(self, sm)
7925 
7926  def apply_moved(self, sm, moved_pis, reset_pis):
7927  r"""apply_moved(TripletContainer self, TripletModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
7928  return _IMP_kernel.TripletContainer_apply_moved(self, sm, moved_pis, reset_pis)
7929 
7930  def get_range_indexes(self):
7931  r"""get_range_indexes(TripletContainer self) -> IMP::ParticleIndexTriplets"""
7932  return _IMP_kernel.TripletContainer_get_range_indexes(self)
7933 
7934  def get_contents(self):
7935  r"""get_contents(TripletContainer self) -> IMP::ParticleIndexTriplets const &"""
7936  return _IMP_kernel.TripletContainer_get_contents(self)
7937 
7938  def get_indexes(self):
7939  r"""get_indexes(TripletContainer self) -> IMP::ParticleIndexTriplets"""
7940  return _IMP_kernel.TripletContainer_get_indexes(self)
7941 
7942  def get(self, *args):
7943  r"""
7944  get(TripletContainer self) -> IMP::ParticleTripletsTemp
7945  get(TripletContainer self, unsigned int i) -> IMP::ParticleTriplet
7946  """
7947  return _IMP_kernel.TripletContainer_get(self, *args)
7948 
7949  def get_number(self):
7950  r"""get_number(TripletContainer self) -> unsigned int"""
7951  return _IMP_kernel.TripletContainer_get_number(self)
7952 
7953  def __init__(self, *args):
7954  r"""
7955  __init__(TripletContainer self, Model m, std::string name="TripletContainer %1%") -> TripletContainer
7956  __init__(TripletContainer self) -> TripletContainer
7957  """
7958  if self.__class__ == TripletContainer:
7959  _self = None
7960  else:
7961  _self = self
7962  _IMP_kernel.TripletContainer_swiginit(self, _IMP_kernel.new_TripletContainer(_self, *args))
7963 
7964  if self.__class__ != TripletContainer:
7965  _director_objects.register(self)
7966 
7967 
7968 
7969 
7970  def do_apply(self, sm):
7971  r"""do_apply(TripletContainer self, TripletModifier sm)"""
7972  return _IMP_kernel.TripletContainer_do_apply(self, sm)
7973 
7974  def do_apply_moved(self, sm, moved_pis, reset_pis):
7975  r"""do_apply_moved(TripletContainer self, TripletModifier sm, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
7976  return _IMP_kernel.TripletContainer_do_apply_moved(self, sm, moved_pis, reset_pis)
7977 
7978  def do_get_provides_access(self):
7979  r"""do_get_provides_access(TripletContainer self) -> bool"""
7980  return _IMP_kernel.TripletContainer_do_get_provides_access(self)
7981  __swig_destroy__ = _IMP_kernel.delete_TripletContainer
7982 
7983  def __str__(self):
7984  r"""__str__(TripletContainer self) -> std::string"""
7985  return _IMP_kernel.TripletContainer___str__(self)
7986 
7987  def __repr__(self):
7988  r"""__repr__(TripletContainer self) -> std::string"""
7989  return _IMP_kernel.TripletContainer___repr__(self)
7990 
7991  @staticmethod
7992  def get_from(o):
7993  return _object_cast_to_TripletContainer(o)
7994 
7995 
7996  def get_type_name(self):
7997  return self.__class__.__name__
7998  def do_show(self, out):
7999  pass
8000  def get_version_info(self):
8001  if"IMP" == "IMP":
8002  return VersionInfo(self.__module__,
8003  __import__(self.__module__).get_module_version())
8004  else:
8005  return IMP.VersionInfo(self.__module__,
8006  __import__(self.__module__).get_module_version())
8007  @staticmethod
8008  def get_from(o):
8009  return _object_cast_to_TripletContainer(o)
8010 
8011  def __disown__(self):
8012  self.this.disown()
8013  _IMP_kernel.disown_TripletContainer(self)
8014  return weakref.proxy(self)
8015 
8016  def do_destroy(self):
8017  r"""do_destroy(TripletContainer self)"""
8018  return _IMP_kernel.TripletContainer_do_destroy(self)
8019 
8020  def handle_set_has_required_score_states(self, arg0):
8021  r"""handle_set_has_required_score_states(TripletContainer self, bool arg0)"""
8022  return _IMP_kernel.TripletContainer_handle_set_has_required_score_states(self, arg0)
8023 
8024  def do_get_inputs(self):
8025  r"""do_get_inputs(TripletContainer self) -> IMP::ModelObjectsTemp"""
8026  return _IMP_kernel.TripletContainer_do_get_inputs(self)
8027 
8028  def do_get_interactions(self):
8029  r"""do_get_interactions(TripletContainer self) -> IMP::ModelObjectsTemps"""
8030  return _IMP_kernel.TripletContainer_do_get_interactions(self)
8031 
8032  def do_get_contents_hash(self):
8033  r"""do_get_contents_hash(TripletContainer self) -> std::size_t"""
8034  return _IMP_kernel.TripletContainer_do_get_contents_hash(self)
8035 
8036 # Register TripletContainer in _IMP_kernel:
8037 _IMP_kernel.TripletContainer_swigregister(TripletContainer)
8038 class _TripletContainerAdaptor(_InputAdaptor):
8039  r"""Proxy of C++ IMP::TripletContainerAdaptor class."""
8040 
8041  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8042  __repr__ = _swig_repr
8043 
8044  def __init__(self, *args):
8045  r"""
8046  __init__(_TripletContainerAdaptor self) -> _TripletContainerAdaptor
8047  __init__(_TripletContainerAdaptor self, TripletContainer c) -> _TripletContainerAdaptor
8048  __init__(_TripletContainerAdaptor self, IMP::ParticleTripletsTemp const & t) -> _TripletContainerAdaptor
8049  """
8050  _IMP_kernel._TripletContainerAdaptor_swiginit(self, _IMP_kernel.new__TripletContainerAdaptor(*args))
8051 
8052  def set_name_if_default(self, name):
8053  r"""set_name_if_default(_TripletContainerAdaptor self, std::string name)"""
8054  return _IMP_kernel._TripletContainerAdaptor_set_name_if_default(self, name)
8055  __swig_destroy__ = _IMP_kernel.delete__TripletContainerAdaptor
8056 
8057 # Register _TripletContainerAdaptor in _IMP_kernel:
8058 _IMP_kernel._TripletContainerAdaptor_swigregister(_TripletContainerAdaptor)
8059 
8060 def write_particles_to_buffer(particles, keys):
8061  r"""write_particles_to_buffer(IMP::ParticlesTemp const & particles, IMP::FloatKeys const & keys) -> IMP::Vector< char >"""
8062  return _IMP_kernel.write_particles_to_buffer(particles, keys)
8063 
8064 def read_particles_from_buffer(buffer, particles, keys):
8065  r"""read_particles_from_buffer(IMP::Vector< char > const & buffer, IMP::ParticlesTemp const & particles, IMP::FloatKeys const & keys)"""
8066  return _IMP_kernel.read_particles_from_buffer(buffer, particles, keys)
8067 
8068 def get_particles(m, ps):
8069  r"""get_particles(Model m, IMP::ParticleIndexes const & ps) -> IMP::ParticlesTemp"""
8070  return _IMP_kernel.get_particles(m, ps)
8071 
8072 def get_indexes(*args):
8073  r"""
8074  get_indexes(IMP::ParticlesTemp const & ps) -> IMP::ParticleIndexes
8075  get_indexes(IMP::ParticlePairsTemp const & ps) -> IMP::ParticleIndexPairs
8076  """
8077  return _IMP_kernel.get_indexes(*args)
8078 class _ParticleIndexAdaptor(object):
8079  r"""Proxy of C++ IMP::ParticleIndexAdaptor class."""
8080 
8081  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8082  __repr__ = _swig_repr
8083 
8084  def __init__(self, *args):
8085  r"""
8086  __init__(_ParticleIndexAdaptor self, Particle p) -> _ParticleIndexAdaptor
8087  __init__(_ParticleIndexAdaptor self, ParticleIndex pi) -> _ParticleIndexAdaptor
8088  __init__(_ParticleIndexAdaptor self, Decorator d) -> _ParticleIndexAdaptor
8089  """
8090  _IMP_kernel._ParticleIndexAdaptor_swiginit(self, _IMP_kernel.new__ParticleIndexAdaptor(*args))
8091  __swig_destroy__ = _IMP_kernel.delete__ParticleIndexAdaptor
8092 
8093 # Register _ParticleIndexAdaptor in _IMP_kernel:
8094 _IMP_kernel._ParticleIndexAdaptor_swigregister(_ParticleIndexAdaptor)
8095 class _ParticleIndexesAdaptor(_InputAdaptor):
8096  r"""Proxy of C++ IMP::ParticleIndexesAdaptor class."""
8097 
8098  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8099  __repr__ = _swig_repr
8100 
8101  def __init__(self, *args):
8102  r"""
8103  __init__(_ParticleIndexesAdaptor self, IMP::ParticlesTemp const & ps) -> _ParticleIndexesAdaptor
8104  __init__(_ParticleIndexesAdaptor self, IMP::ParticleIndexes const & pi) -> _ParticleIndexesAdaptor
8105  __init__(_ParticleIndexesAdaptor self) -> _ParticleIndexesAdaptor
8106  """
8107  _IMP_kernel._ParticleIndexesAdaptor_swiginit(self, _IMP_kernel.new__ParticleIndexesAdaptor(*args))
8108  __swig_destroy__ = _IMP_kernel.delete__ParticleIndexesAdaptor
8109 
8110 # Register _ParticleIndexesAdaptor in _IMP_kernel:
8111 _IMP_kernel._ParticleIndexesAdaptor_swigregister(_ParticleIndexesAdaptor)
8112 class _ParticleIndexPairsAdaptor(object):
8113  r"""Proxy of C++ IMP::ParticleIndexPairsAdaptor class."""
8114 
8115  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8116  __repr__ = _swig_repr
8117 
8118  def __init__(self, *args):
8119  r"""
8120  __init__(_ParticleIndexPairsAdaptor self, IMP::ParticlePairsTemp const & ps) -> _ParticleIndexPairsAdaptor
8121  __init__(_ParticleIndexPairsAdaptor self, IMP::ParticleIndexPairs const & pi) -> _ParticleIndexPairsAdaptor
8122  __init__(_ParticleIndexPairsAdaptor self) -> _ParticleIndexPairsAdaptor
8123  """
8124  _IMP_kernel._ParticleIndexPairsAdaptor_swiginit(self, _IMP_kernel.new__ParticleIndexPairsAdaptor(*args))
8125  __swig_destroy__ = _IMP_kernel.delete__ParticleIndexPairsAdaptor
8126 
8127 # Register _ParticleIndexPairsAdaptor in _IMP_kernel:
8128 _IMP_kernel._ParticleIndexPairsAdaptor_swigregister(_ParticleIndexPairsAdaptor)
8129 class _ConstRestraint(Restraint):
8130  r"""Proxy of C++ IMP::internal::_ConstRestraint class."""
8131 
8132  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8133 
8134  def __init__(self, *args):
8135  r"""
8136  __init__(_ConstRestraint self, Model m, IMP::ParticleIndexes const & pis, double v) -> _ConstRestraint
8137  __init__(_ConstRestraint self) -> _ConstRestraint
8138  """
8139  _IMP_kernel._ConstRestraint_swiginit(self, _IMP_kernel.new__ConstRestraint(*args))
8140 
8141  def get_value(self):
8142  r"""get_value(_ConstRestraint self) -> double"""
8143  return _IMP_kernel._ConstRestraint_get_value(self)
8144 
8145  def do_create_decomposition(self):
8146  r"""do_create_decomposition(_ConstRestraint self) -> IMP::Restraints"""
8147  return _IMP_kernel._ConstRestraint_do_create_decomposition(self)
8148 
8149  def do_get_inputs(self):
8150  r"""do_get_inputs(_ConstRestraint self) -> IMP::ModelObjectsTemp"""
8151  return _IMP_kernel._ConstRestraint_do_get_inputs(self)
8152 
8153  def get_version_info(self):
8154  r"""get_version_info(_ConstRestraint self) -> VersionInfo"""
8155  return _IMP_kernel._ConstRestraint_get_version_info(self)
8156  __swig_destroy__ = _IMP_kernel.delete__ConstRestraint
8157 
8158  def __str__(self):
8159  r"""__str__(_ConstRestraint self) -> std::string"""
8160  return _IMP_kernel._ConstRestraint___str__(self)
8161 
8162  def __repr__(self):
8163  r"""__repr__(_ConstRestraint self) -> std::string"""
8164  return _IMP_kernel._ConstRestraint___repr__(self)
8165 
8166  @staticmethod
8167  def get_from(o):
8168  return _object_cast_to__ConstRestraint(o)
8169 
8170 
8171  def _get_as_binary(self):
8172  r"""_get_as_binary(_ConstRestraint self) -> PyObject *"""
8173  return _IMP_kernel._ConstRestraint__get_as_binary(self)
8174 
8175  def _set_from_binary(self, p):
8176  r"""_set_from_binary(_ConstRestraint self, PyObject * p)"""
8177  return _IMP_kernel._ConstRestraint__set_from_binary(self, p)
8178 
8179  def __getstate__(self):
8180  p = self._get_as_binary()
8181  if len(self.__dict__) > 1:
8182  d = self.__dict__.copy()
8183  del d['this']
8184  p = (d, p)
8185  return p
8186 
8187  def __setstate__(self, p):
8188  if not hasattr(self, 'this'):
8189  self.__init__()
8190  if isinstance(p, tuple):
8191  d, p = p
8192  self.__dict__.update(d)
8193  return self._set_from_binary(p)
8194 
8195 
8196 # Register _ConstRestraint in _IMP_kernel:
8197 _IMP_kernel._ConstRestraint_swigregister(_ConstRestraint)
8198 class _ConstSingletonScore(SingletonScore):
8199  r"""Proxy of C++ IMP::internal::_ConstSingletonScore class."""
8200 
8201  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8202 
8203  def __init__(self, *args):
8204  r"""
8205  __init__(_ConstSingletonScore self, double v) -> _ConstSingletonScore
8206  __init__(_ConstSingletonScore self) -> _ConstSingletonScore
8207  """
8208  _IMP_kernel._ConstSingletonScore_swiginit(self, _IMP_kernel.new__ConstSingletonScore(*args))
8209 
8210  def do_get_inputs(self, arg2, arg3):
8211  r"""do_get_inputs(_ConstSingletonScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
8212  return _IMP_kernel._ConstSingletonScore_do_get_inputs(self, arg2, arg3)
8213 
8214  def get_version_info(self):
8215  r"""get_version_info(_ConstSingletonScore self) -> VersionInfo"""
8216  return _IMP_kernel._ConstSingletonScore_get_version_info(self)
8217  __swig_destroy__ = _IMP_kernel.delete__ConstSingletonScore
8218 
8219  def __str__(self):
8220  r"""__str__(_ConstSingletonScore self) -> std::string"""
8221  return _IMP_kernel._ConstSingletonScore___str__(self)
8222 
8223  def __repr__(self):
8224  r"""__repr__(_ConstSingletonScore self) -> std::string"""
8225  return _IMP_kernel._ConstSingletonScore___repr__(self)
8226 
8227  @staticmethod
8228  def get_from(o):
8229  return _object_cast_to__ConstSingletonScore(o)
8230 
8231 
8232  def _get_as_binary(self):
8233  r"""_get_as_binary(_ConstSingletonScore self) -> PyObject *"""
8234  return _IMP_kernel._ConstSingletonScore__get_as_binary(self)
8235 
8236  def _set_from_binary(self, p):
8237  r"""_set_from_binary(_ConstSingletonScore self, PyObject * p)"""
8238  return _IMP_kernel._ConstSingletonScore__set_from_binary(self, p)
8239 
8240  def __getstate__(self):
8241  p = self._get_as_binary()
8242  if len(self.__dict__) > 1:
8243  d = self.__dict__.copy()
8244  del d['this']
8245  p = (d, p)
8246  return p
8247 
8248  def __setstate__(self, p):
8249  if not hasattr(self, 'this'):
8250  self.__init__()
8251  if isinstance(p, tuple):
8252  d, p = p
8253  self.__dict__.update(d)
8254  return self._set_from_binary(p)
8255 
8256 
8257 # Register _ConstSingletonScore in _IMP_kernel:
8258 _IMP_kernel._ConstSingletonScore_swigregister(_ConstSingletonScore)
8259 class _ConstPairScore(PairScore):
8260  r"""Proxy of C++ IMP::internal::_ConstPairScore class."""
8261 
8262  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8263 
8264  def __init__(self, *args):
8265  r"""
8266  __init__(_ConstPairScore self, double v) -> _ConstPairScore
8267  __init__(_ConstPairScore self) -> _ConstPairScore
8268  """
8269  _IMP_kernel._ConstPairScore_swiginit(self, _IMP_kernel.new__ConstPairScore(*args))
8270 
8271  def do_get_inputs(self, arg2, arg3):
8272  r"""do_get_inputs(_ConstPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
8273  return _IMP_kernel._ConstPairScore_do_get_inputs(self, arg2, arg3)
8274 
8275  def get_version_info(self):
8276  r"""get_version_info(_ConstPairScore self) -> VersionInfo"""
8277  return _IMP_kernel._ConstPairScore_get_version_info(self)
8278  __swig_destroy__ = _IMP_kernel.delete__ConstPairScore
8279 
8280  def __str__(self):
8281  r"""__str__(_ConstPairScore self) -> std::string"""
8282  return _IMP_kernel._ConstPairScore___str__(self)
8283 
8284  def __repr__(self):
8285  r"""__repr__(_ConstPairScore self) -> std::string"""
8286  return _IMP_kernel._ConstPairScore___repr__(self)
8287 
8288  @staticmethod
8289  def get_from(o):
8290  return _object_cast_to__ConstPairScore(o)
8291 
8292 
8293  def _get_as_binary(self):
8294  r"""_get_as_binary(_ConstPairScore self) -> PyObject *"""
8295  return _IMP_kernel._ConstPairScore__get_as_binary(self)
8296 
8297  def _set_from_binary(self, p):
8298  r"""_set_from_binary(_ConstPairScore self, PyObject * p)"""
8299  return _IMP_kernel._ConstPairScore__set_from_binary(self, p)
8300 
8301  def __getstate__(self):
8302  p = self._get_as_binary()
8303  if len(self.__dict__) > 1:
8304  d = self.__dict__.copy()
8305  del d['this']
8306  p = (d, p)
8307  return p
8308 
8309  def __setstate__(self, p):
8310  if not hasattr(self, 'this'):
8311  self.__init__()
8312  if isinstance(p, tuple):
8313  d, p = p
8314  self.__dict__.update(d)
8315  return self._set_from_binary(p)
8316 
8317 
8318 # Register _ConstPairScore in _IMP_kernel:
8319 _IMP_kernel._ConstPairScore_swigregister(_ConstPairScore)
8320 class _TrivialDecorator(Decorator):
8321  r"""Proxy of C++ IMP::internal::_TrivialDecorator class."""
8322 
8323  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8324 
8325  def __init__(self, *args):
8326  r"""
8327  __init__(_TrivialDecorator self) -> _TrivialDecorator
8328  __init__(_TrivialDecorator self, Model m, ParticleIndex id) -> _TrivialDecorator
8329  __init__(_TrivialDecorator self, _ParticleAdaptor d) -> _TrivialDecorator
8330  """
8331  _IMP_kernel._TrivialDecorator_swiginit(self, _IMP_kernel.new__TrivialDecorator(*args))
8332 
8333  def show(self, *args):
8334  r"""show(_TrivialDecorator self, _ostream out=std::cout)"""
8335  return _IMP_kernel._TrivialDecorator_show(self, *args)
8336 
8337  @staticmethod
8338  def setup_particle(*args):
8339  r"""
8340  setup_particle(Model m, ParticleIndex pi) -> _TrivialDecorator
8341  setup_particle(_ParticleAdaptor pa) -> _TrivialDecorator
8342  """
8343  return _IMP_kernel._TrivialDecorator_setup_particle(*args)
8344 
8345  @staticmethod
8346  def get_is_setup(*args):
8347  r"""
8348  get_is_setup(_ParticleAdaptor p) -> bool
8349  get_is_setup(Model m, ParticleIndex pi) -> bool
8350  """
8351  return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
8352 
8353  def add_attribute(self, *args):
8354  r"""
8355  add_attribute(_TrivialDecorator self, FloatKey k, IMP::Float v, bool opt)
8356  add_attribute(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
8357  add_attribute(_TrivialDecorator self, IntKey a0, IMP::Int a1)
8358  add_attribute(_TrivialDecorator self, FloatsKey a0, IMP::Floats a1)
8359  add_attribute(_TrivialDecorator self, IntsKey a0, IMP::Ints a1)
8360  add_attribute(_TrivialDecorator self, StringKey a0, IMP::String a1)
8361  add_attribute(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
8362  add_attribute(_TrivialDecorator self, ObjectKey a0, Object a1)
8363  add_attribute(_TrivialDecorator self, SparseFloatKey a0, IMP::Float a1)
8364  add_attribute(_TrivialDecorator self, SparseIntKey a0, IMP::Int a1)
8365  add_attribute(_TrivialDecorator self, SparseStringKey a0, IMP::String a1)
8366  add_attribute(_TrivialDecorator self, SparseParticleIndexKey a0, ParticleIndex a1)
8367  """
8368  return _IMP_kernel._TrivialDecorator_add_attribute(self, *args)
8369 
8370  def get_value(self, *args):
8371  r"""
8372  get_value(_TrivialDecorator self, FloatKey a0) -> IMP::Float
8373  get_value(_TrivialDecorator self, IntKey a0) -> IMP::Int
8374  get_value(_TrivialDecorator self, FloatsKey a0) -> IMP::Floats
8375  get_value(_TrivialDecorator self, IntsKey a0) -> IMP::Ints
8376  get_value(_TrivialDecorator self, StringKey a0) -> IMP::String
8377  get_value(_TrivialDecorator self, ParticleIndexKey a0) -> Particle
8378  get_value(_TrivialDecorator self, ObjectKey a0) -> Object
8379  get_value(_TrivialDecorator self, SparseFloatKey a0) -> IMP::Float
8380  get_value(_TrivialDecorator self, SparseIntKey a0) -> IMP::Int
8381  get_value(_TrivialDecorator self, SparseStringKey a0) -> IMP::String
8382  get_value(_TrivialDecorator self, SparseParticleIndexKey a0) -> ParticleIndex
8383  """
8384  return _IMP_kernel._TrivialDecorator_get_value(self, *args)
8385 
8386  def set_value(self, *args):
8387  r"""
8388  set_value(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
8389  set_value(_TrivialDecorator self, IntKey a0, IMP::Int a1)
8390  set_value(_TrivialDecorator self, FloatsKey a0, IMP::Floats a1)
8391  set_value(_TrivialDecorator self, IntsKey a0, IMP::Ints a1)
8392  set_value(_TrivialDecorator self, StringKey a0, IMP::String a1)
8393  set_value(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
8394  set_value(_TrivialDecorator self, ObjectKey a0, Object a1)
8395  set_value(_TrivialDecorator self, SparseFloatKey a0, IMP::Float a1)
8396  set_value(_TrivialDecorator self, SparseIntKey a0, IMP::Int a1)
8397  set_value(_TrivialDecorator self, SparseStringKey a0, IMP::String a1)
8398  set_value(_TrivialDecorator self, SparseParticleIndexKey a0, ParticleIndex a1)
8399  """
8400  return _IMP_kernel._TrivialDecorator_set_value(self, *args)
8401 
8402  def remove_attribute(self, *args):
8403  r"""
8404  remove_attribute(_TrivialDecorator self, FloatKey a0)
8405  remove_attribute(_TrivialDecorator self, IntKey a0)
8406  remove_attribute(_TrivialDecorator self, FloatsKey a0)
8407  remove_attribute(_TrivialDecorator self, IntsKey a0)
8408  remove_attribute(_TrivialDecorator self, StringKey a0)
8409  remove_attribute(_TrivialDecorator self, ParticleIndexKey a0)
8410  remove_attribute(_TrivialDecorator self, ObjectKey a0)
8411  remove_attribute(_TrivialDecorator self, SparseFloatKey a0)
8412  remove_attribute(_TrivialDecorator self, SparseIntKey a0)
8413  remove_attribute(_TrivialDecorator self, SparseStringKey a0)
8414  remove_attribute(_TrivialDecorator self, SparseParticleIndexKey a0)
8415  """
8416  return _IMP_kernel._TrivialDecorator_remove_attribute(self, *args)
8417 
8418  def has_attribute(self, *args):
8419  r"""
8420  has_attribute(_TrivialDecorator self, FloatKey a0) -> bool
8421  has_attribute(_TrivialDecorator self, IntKey a0) -> bool
8422  has_attribute(_TrivialDecorator self, FloatsKey a0) -> bool
8423  has_attribute(_TrivialDecorator self, IntsKey a0) -> bool
8424  has_attribute(_TrivialDecorator self, StringKey a0) -> bool
8425  has_attribute(_TrivialDecorator self, ParticleIndexKey a0) -> bool
8426  has_attribute(_TrivialDecorator self, ObjectKey a0) -> bool
8427  has_attribute(_TrivialDecorator self, SparseFloatKey a0) -> bool
8428  has_attribute(_TrivialDecorator self, SparseIntKey a0) -> bool
8429  has_attribute(_TrivialDecorator self, SparseStringKey a0) -> bool
8430  has_attribute(_TrivialDecorator self, SparseParticleIndexKey a0) -> bool
8431  """
8432  return _IMP_kernel._TrivialDecorator_has_attribute(self, *args)
8433 
8434  def get_derivative(self, a0):
8435  r"""get_derivative(_TrivialDecorator self, FloatKey a0) -> double"""
8436  return _IMP_kernel._TrivialDecorator_get_derivative(self, a0)
8437 
8438  def get_name(self):
8439  r"""get_name(_TrivialDecorator self) -> std::string"""
8440  return _IMP_kernel._TrivialDecorator_get_name(self)
8441 
8442  def clear_caches(self):
8443  r"""clear_caches(_TrivialDecorator self)"""
8444  return _IMP_kernel._TrivialDecorator_clear_caches(self)
8445 
8446  def set_name(self, a0):
8447  r"""set_name(_TrivialDecorator self, std::string a0)"""
8448  return _IMP_kernel._TrivialDecorator_set_name(self, a0)
8449 
8450  def set_check_level(self, a0):
8451  r"""set_check_level(_TrivialDecorator self, IMP::CheckLevel a0)"""
8452  return _IMP_kernel._TrivialDecorator_set_check_level(self, a0)
8453 
8454  def add_to_derivative(self, a0, a1, a2):
8455  r"""add_to_derivative(_TrivialDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8456  return _IMP_kernel._TrivialDecorator_add_to_derivative(self, a0, a1, a2)
8457 
8458  def set_is_optimized(self, a0, a1):
8459  r"""set_is_optimized(_TrivialDecorator self, FloatKey a0, bool a1)"""
8460  return _IMP_kernel._TrivialDecorator_set_is_optimized(self, a0, a1)
8461 
8462  def get_is_optimized(self, a0):
8463  r"""get_is_optimized(_TrivialDecorator self, FloatKey a0) -> bool"""
8464  return _IMP_kernel._TrivialDecorator_get_is_optimized(self, a0)
8465 
8466  def get_check_level(self):
8467  r"""get_check_level(_TrivialDecorator self) -> IMP::CheckLevel"""
8468  return _IMP_kernel._TrivialDecorator_get_check_level(self)
8469 
8470  def __eq__(self, *args):
8471  r"""
8472  __eq__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8473  __eq__(_TrivialDecorator self, Particle d) -> bool
8474  """
8475  return _IMP_kernel._TrivialDecorator___eq__(self, *args)
8476 
8477  def __ne__(self, *args):
8478  r"""
8479  __ne__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8480  __ne__(_TrivialDecorator self, Particle d) -> bool
8481  """
8482  return _IMP_kernel._TrivialDecorator___ne__(self, *args)
8483 
8484  def __le__(self, *args):
8485  r"""
8486  __le__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8487  __le__(_TrivialDecorator self, Particle d) -> bool
8488  """
8489  return _IMP_kernel._TrivialDecorator___le__(self, *args)
8490 
8491  def __lt__(self, *args):
8492  r"""
8493  __lt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8494  __lt__(_TrivialDecorator self, Particle d) -> bool
8495  """
8496  return _IMP_kernel._TrivialDecorator___lt__(self, *args)
8497 
8498  def __ge__(self, *args):
8499  r"""
8500  __ge__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8501  __ge__(_TrivialDecorator self, Particle d) -> bool
8502  """
8503  return _IMP_kernel._TrivialDecorator___ge__(self, *args)
8504 
8505  def __gt__(self, *args):
8506  r"""
8507  __gt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
8508  __gt__(_TrivialDecorator self, Particle d) -> bool
8509  """
8510  return _IMP_kernel._TrivialDecorator___gt__(self, *args)
8511 
8512  def __hash__(self):
8513  r"""__hash__(_TrivialDecorator self) -> std::size_t"""
8514  return _IMP_kernel._TrivialDecorator___hash__(self)
8515 
8516  def __str__(self):
8517  r"""__str__(_TrivialDecorator self) -> std::string"""
8518  return _IMP_kernel._TrivialDecorator___str__(self)
8519 
8520  def __repr__(self):
8521  r"""__repr__(_TrivialDecorator self) -> std::string"""
8522  return _IMP_kernel._TrivialDecorator___repr__(self)
8523 
8524  def _get_as_binary(self):
8525  r"""_get_as_binary(_TrivialDecorator self) -> PyObject *"""
8526  return _IMP_kernel._TrivialDecorator__get_as_binary(self)
8527 
8528  def _set_from_binary(self, p):
8529  r"""_set_from_binary(_TrivialDecorator self, PyObject * p)"""
8530  return _IMP_kernel._TrivialDecorator__set_from_binary(self, p)
8531 
8532  def __getstate__(self):
8533  p = self._get_as_binary()
8534  if len(self.__dict__) > 1:
8535  d = self.__dict__.copy()
8536  del d['this']
8537  p = (d, p)
8538  return p
8539 
8540  def __setstate__(self, p):
8541  if not hasattr(self, 'this'):
8542  self.__init__()
8543  if isinstance(p, tuple):
8544  d, p = p
8545  self.__dict__.update(d)
8546  return self._set_from_binary(p)
8547 
8548  __swig_destroy__ = _IMP_kernel.delete__TrivialDecorator
8549 
8550 # Register _TrivialDecorator in _IMP_kernel:
8551 _IMP_kernel._TrivialDecorator_swigregister(_TrivialDecorator)
8552 class _TrivialDerivedDecorator(_TrivialDecorator):
8553  r"""Proxy of C++ IMP::internal::_TrivialDerivedDecorator class."""
8554 
8555  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8556 
8557  def __init__(self, *args):
8558  r"""
8559  __init__(_TrivialDerivedDecorator self) -> _TrivialDerivedDecorator
8560  __init__(_TrivialDerivedDecorator self, Model m, ParticleIndex id) -> _TrivialDerivedDecorator
8561  __init__(_TrivialDerivedDecorator self, _ParticleAdaptor d) -> _TrivialDerivedDecorator
8562  """
8563  _IMP_kernel._TrivialDerivedDecorator_swiginit(self, _IMP_kernel.new__TrivialDerivedDecorator(*args))
8564 
8565  def show(self, *args):
8566  r"""show(_TrivialDerivedDecorator self, _ostream out=std::cout)"""
8567  return _IMP_kernel._TrivialDerivedDecorator_show(self, *args)
8568 
8569  @staticmethod
8570  def setup_particle(*args):
8571  r"""
8572  setup_particle(Model m, ParticleIndex pi) -> _TrivialDerivedDecorator
8573  setup_particle(_ParticleAdaptor pa) -> _TrivialDerivedDecorator
8574  """
8575  return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
8576 
8577  @staticmethod
8578  def get_is_setup(*args):
8579  r"""
8580  get_is_setup(_ParticleAdaptor p) -> bool
8581  get_is_setup(Model m, ParticleIndex pi) -> bool
8582  """
8583  return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
8584 
8585  def add_attribute(self, *args):
8586  r"""
8587  add_attribute(_TrivialDerivedDecorator self, FloatKey k, IMP::Float v, bool opt)
8588  add_attribute(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
8589  add_attribute(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
8590  add_attribute(_TrivialDerivedDecorator self, FloatsKey a0, IMP::Floats a1)
8591  add_attribute(_TrivialDerivedDecorator self, IntsKey a0, IMP::Ints a1)
8592  add_attribute(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
8593  add_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
8594  add_attribute(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
8595  add_attribute(_TrivialDerivedDecorator self, SparseFloatKey a0, IMP::Float a1)
8596  add_attribute(_TrivialDerivedDecorator self, SparseIntKey a0, IMP::Int a1)
8597  add_attribute(_TrivialDerivedDecorator self, SparseStringKey a0, IMP::String a1)
8598  add_attribute(_TrivialDerivedDecorator self, SparseParticleIndexKey a0, ParticleIndex a1)
8599  """
8600  return _IMP_kernel._TrivialDerivedDecorator_add_attribute(self, *args)
8601 
8602  def get_value(self, *args):
8603  r"""
8604  get_value(_TrivialDerivedDecorator self, FloatKey a0) -> IMP::Float
8605  get_value(_TrivialDerivedDecorator self, IntKey a0) -> IMP::Int
8606  get_value(_TrivialDerivedDecorator self, FloatsKey a0) -> IMP::Floats
8607  get_value(_TrivialDerivedDecorator self, IntsKey a0) -> IMP::Ints
8608  get_value(_TrivialDerivedDecorator self, StringKey a0) -> IMP::String
8609  get_value(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> Particle
8610  get_value(_TrivialDerivedDecorator self, ObjectKey a0) -> Object
8611  get_value(_TrivialDerivedDecorator self, SparseFloatKey a0) -> IMP::Float
8612  get_value(_TrivialDerivedDecorator self, SparseIntKey a0) -> IMP::Int
8613  get_value(_TrivialDerivedDecorator self, SparseStringKey a0) -> IMP::String
8614  get_value(_TrivialDerivedDecorator self, SparseParticleIndexKey a0) -> ParticleIndex
8615  """
8616  return _IMP_kernel._TrivialDerivedDecorator_get_value(self, *args)
8617 
8618  def set_value(self, *args):
8619  r"""
8620  set_value(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
8621  set_value(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
8622  set_value(_TrivialDerivedDecorator self, FloatsKey a0, IMP::Floats a1)
8623  set_value(_TrivialDerivedDecorator self, IntsKey a0, IMP::Ints a1)
8624  set_value(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
8625  set_value(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
8626  set_value(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
8627  set_value(_TrivialDerivedDecorator self, SparseFloatKey a0, IMP::Float a1)
8628  set_value(_TrivialDerivedDecorator self, SparseIntKey a0, IMP::Int a1)
8629  set_value(_TrivialDerivedDecorator self, SparseStringKey a0, IMP::String a1)
8630  set_value(_TrivialDerivedDecorator self, SparseParticleIndexKey a0, ParticleIndex a1)
8631  """
8632  return _IMP_kernel._TrivialDerivedDecorator_set_value(self, *args)
8633 
8634  def remove_attribute(self, *args):
8635  r"""
8636  remove_attribute(_TrivialDerivedDecorator self, FloatKey a0)
8637  remove_attribute(_TrivialDerivedDecorator self, IntKey a0)
8638  remove_attribute(_TrivialDerivedDecorator self, FloatsKey a0)
8639  remove_attribute(_TrivialDerivedDecorator self, IntsKey a0)
8640  remove_attribute(_TrivialDerivedDecorator self, StringKey a0)
8641  remove_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0)
8642  remove_attribute(_TrivialDerivedDecorator self, ObjectKey a0)
8643  remove_attribute(_TrivialDerivedDecorator self, SparseFloatKey a0)
8644  remove_attribute(_TrivialDerivedDecorator self, SparseIntKey a0)
8645  remove_attribute(_TrivialDerivedDecorator self, SparseStringKey a0)
8646  remove_attribute(_TrivialDerivedDecorator self, SparseParticleIndexKey a0)
8647  """
8648  return _IMP_kernel._TrivialDerivedDecorator_remove_attribute(self, *args)
8649 
8650  def has_attribute(self, *args):
8651  r"""
8652  has_attribute(_TrivialDerivedDecorator self, FloatKey a0) -> bool
8653  has_attribute(_TrivialDerivedDecorator self, IntKey a0) -> bool
8654  has_attribute(_TrivialDerivedDecorator self, FloatsKey a0) -> bool
8655  has_attribute(_TrivialDerivedDecorator self, IntsKey a0) -> bool
8656  has_attribute(_TrivialDerivedDecorator self, StringKey a0) -> bool
8657  has_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> bool
8658  has_attribute(_TrivialDerivedDecorator self, ObjectKey a0) -> bool
8659  has_attribute(_TrivialDerivedDecorator self, SparseFloatKey a0) -> bool
8660  has_attribute(_TrivialDerivedDecorator self, SparseIntKey a0) -> bool
8661  has_attribute(_TrivialDerivedDecorator self, SparseStringKey a0) -> bool
8662  has_attribute(_TrivialDerivedDecorator self, SparseParticleIndexKey a0) -> bool
8663  """
8664  return _IMP_kernel._TrivialDerivedDecorator_has_attribute(self, *args)
8665 
8666  def get_derivative(self, a0):
8667  r"""get_derivative(_TrivialDerivedDecorator self, FloatKey a0) -> double"""
8668  return _IMP_kernel._TrivialDerivedDecorator_get_derivative(self, a0)
8669 
8670  def get_name(self):
8671  r"""get_name(_TrivialDerivedDecorator self) -> std::string"""
8672  return _IMP_kernel._TrivialDerivedDecorator_get_name(self)
8673 
8674  def clear_caches(self):
8675  r"""clear_caches(_TrivialDerivedDecorator self)"""
8676  return _IMP_kernel._TrivialDerivedDecorator_clear_caches(self)
8677 
8678  def set_name(self, a0):
8679  r"""set_name(_TrivialDerivedDecorator self, std::string a0)"""
8680  return _IMP_kernel._TrivialDerivedDecorator_set_name(self, a0)
8681 
8682  def set_check_level(self, a0):
8683  r"""set_check_level(_TrivialDerivedDecorator self, IMP::CheckLevel a0)"""
8684  return _IMP_kernel._TrivialDerivedDecorator_set_check_level(self, a0)
8685 
8686  def add_to_derivative(self, a0, a1, a2):
8687  r"""add_to_derivative(_TrivialDerivedDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8688  return _IMP_kernel._TrivialDerivedDecorator_add_to_derivative(self, a0, a1, a2)
8689 
8690  def set_is_optimized(self, a0, a1):
8691  r"""set_is_optimized(_TrivialDerivedDecorator self, FloatKey a0, bool a1)"""
8692  return _IMP_kernel._TrivialDerivedDecorator_set_is_optimized(self, a0, a1)
8693 
8694  def get_is_optimized(self, a0):
8695  r"""get_is_optimized(_TrivialDerivedDecorator self, FloatKey a0) -> bool"""
8696  return _IMP_kernel._TrivialDerivedDecorator_get_is_optimized(self, a0)
8697 
8698  def get_check_level(self):
8699  r"""get_check_level(_TrivialDerivedDecorator self) -> IMP::CheckLevel"""
8700  return _IMP_kernel._TrivialDerivedDecorator_get_check_level(self)
8701 
8702  def __eq__(self, *args):
8703  r"""
8704  __eq__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8705  __eq__(_TrivialDerivedDecorator self, Particle d) -> bool
8706  """
8707  return _IMP_kernel._TrivialDerivedDecorator___eq__(self, *args)
8708 
8709  def __ne__(self, *args):
8710  r"""
8711  __ne__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8712  __ne__(_TrivialDerivedDecorator self, Particle d) -> bool
8713  """
8714  return _IMP_kernel._TrivialDerivedDecorator___ne__(self, *args)
8715 
8716  def __le__(self, *args):
8717  r"""
8718  __le__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8719  __le__(_TrivialDerivedDecorator self, Particle d) -> bool
8720  """
8721  return _IMP_kernel._TrivialDerivedDecorator___le__(self, *args)
8722 
8723  def __lt__(self, *args):
8724  r"""
8725  __lt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8726  __lt__(_TrivialDerivedDecorator self, Particle d) -> bool
8727  """
8728  return _IMP_kernel._TrivialDerivedDecorator___lt__(self, *args)
8729 
8730  def __ge__(self, *args):
8731  r"""
8732  __ge__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8733  __ge__(_TrivialDerivedDecorator self, Particle d) -> bool
8734  """
8735  return _IMP_kernel._TrivialDerivedDecorator___ge__(self, *args)
8736 
8737  def __gt__(self, *args):
8738  r"""
8739  __gt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
8740  __gt__(_TrivialDerivedDecorator self, Particle d) -> bool
8741  """
8742  return _IMP_kernel._TrivialDerivedDecorator___gt__(self, *args)
8743 
8744  def __hash__(self):
8745  r"""__hash__(_TrivialDerivedDecorator self) -> std::size_t"""
8746  return _IMP_kernel._TrivialDerivedDecorator___hash__(self)
8747 
8748  def __str__(self):
8749  r"""__str__(_TrivialDerivedDecorator self) -> std::string"""
8750  return _IMP_kernel._TrivialDerivedDecorator___str__(self)
8751 
8752  def __repr__(self):
8753  r"""__repr__(_TrivialDerivedDecorator self) -> std::string"""
8754  return _IMP_kernel._TrivialDerivedDecorator___repr__(self)
8755 
8756  def _get_as_binary(self):
8757  r"""_get_as_binary(_TrivialDerivedDecorator self) -> PyObject *"""
8758  return _IMP_kernel._TrivialDerivedDecorator__get_as_binary(self)
8759 
8760  def _set_from_binary(self, p):
8761  r"""_set_from_binary(_TrivialDerivedDecorator self, PyObject * p)"""
8762  return _IMP_kernel._TrivialDerivedDecorator__set_from_binary(self, p)
8763 
8764  def __getstate__(self):
8765  p = self._get_as_binary()
8766  if len(self.__dict__) > 1:
8767  d = self.__dict__.copy()
8768  del d['this']
8769  p = (d, p)
8770  return p
8771 
8772  def __setstate__(self, p):
8773  if not hasattr(self, 'this'):
8774  self.__init__()
8775  if isinstance(p, tuple):
8776  d, p = p
8777  self.__dict__.update(d)
8778  return self._set_from_binary(p)
8779 
8780  __swig_destroy__ = _IMP_kernel.delete__TrivialDerivedDecorator
8781 
8782 # Register _TrivialDerivedDecorator in _IMP_kernel:
8783 _IMP_kernel._TrivialDerivedDecorator_swigregister(_TrivialDerivedDecorator)
8784 class _TrivialTraitsDecorator(Decorator):
8785  r"""Proxy of C++ IMP::internal::_TrivialTraitsDecorator class."""
8786 
8787  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8788 
8789  def get_decorator_traits(self):
8790  r"""get_decorator_traits(_TrivialTraitsDecorator self) -> StringKey"""
8791  return _IMP_kernel._TrivialTraitsDecorator_get_decorator_traits(self)
8792 
8793  @staticmethod
8794  def get_default_decorator_traits():
8795  r"""get_default_decorator_traits() -> StringKey"""
8796  return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
8797 
8798  def __init__(self, *args):
8799  r"""
8800  __init__(_TrivialTraitsDecorator self) -> _TrivialTraitsDecorator
8801  __init__(_TrivialTraitsDecorator self, Model m, ParticleIndex id, StringKey tr=get_default_key()) -> _TrivialTraitsDecorator
8802  __init__(_TrivialTraitsDecorator self, _ParticleAdaptor d, StringKey tr=get_default_key()) -> _TrivialTraitsDecorator
8803  """
8804  _IMP_kernel._TrivialTraitsDecorator_swiginit(self, _IMP_kernel.new__TrivialTraitsDecorator(*args))
8805 
8806  def show(self, *args):
8807  r"""show(_TrivialTraitsDecorator self, _ostream out=std::cout)"""
8808  return _IMP_kernel._TrivialTraitsDecorator_show(self, *args)
8809 
8810  @staticmethod
8811  def setup_particle(*args):
8812  r"""
8813  setup_particle(Model m, ParticleIndex pi, StringKey tr=IMP::internal::_TrivialTraitsDecorator::get_default_decorator_traits()) -> _TrivialTraitsDecorator
8814  setup_particle(_ParticleAdaptor d, StringKey tr=IMP::internal::_TrivialTraitsDecorator::get_default_decorator_traits()) -> _TrivialTraitsDecorator
8815  """
8816  return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
8817 
8818  @staticmethod
8819  def get_is_setup(*args):
8820  r"""
8821  get_is_setup(_ParticleAdaptor p, StringKey tr=get_default_key()) -> bool
8822  get_is_setup(Model m, ParticleIndex pi, StringKey k=get_default_key()) -> bool
8823  """
8824  return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
8825 
8826  @staticmethod
8827  def get_default_key():
8828  r"""get_default_key() -> StringKey"""
8829  return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
8830 
8831  def add_attribute(self, *args):
8832  r"""
8833  add_attribute(_TrivialTraitsDecorator self, FloatKey k, IMP::Float v, bool opt)
8834  add_attribute(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
8835  add_attribute(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
8836  add_attribute(_TrivialTraitsDecorator self, FloatsKey a0, IMP::Floats a1)
8837  add_attribute(_TrivialTraitsDecorator self, IntsKey a0, IMP::Ints a1)
8838  add_attribute(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
8839  add_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
8840  add_attribute(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
8841  add_attribute(_TrivialTraitsDecorator self, SparseFloatKey a0, IMP::Float a1)
8842  add_attribute(_TrivialTraitsDecorator self, SparseIntKey a0, IMP::Int a1)
8843  add_attribute(_TrivialTraitsDecorator self, SparseStringKey a0, IMP::String a1)
8844  add_attribute(_TrivialTraitsDecorator self, SparseParticleIndexKey a0, ParticleIndex a1)
8845  """
8846  return _IMP_kernel._TrivialTraitsDecorator_add_attribute(self, *args)
8847 
8848  def get_value(self, *args):
8849  r"""
8850  get_value(_TrivialTraitsDecorator self, FloatKey a0) -> IMP::Float
8851  get_value(_TrivialTraitsDecorator self, IntKey a0) -> IMP::Int
8852  get_value(_TrivialTraitsDecorator self, FloatsKey a0) -> IMP::Floats
8853  get_value(_TrivialTraitsDecorator self, IntsKey a0) -> IMP::Ints
8854  get_value(_TrivialTraitsDecorator self, StringKey a0) -> IMP::String
8855  get_value(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> Particle
8856  get_value(_TrivialTraitsDecorator self, ObjectKey a0) -> Object
8857  get_value(_TrivialTraitsDecorator self, SparseFloatKey a0) -> IMP::Float
8858  get_value(_TrivialTraitsDecorator self, SparseIntKey a0) -> IMP::Int
8859  get_value(_TrivialTraitsDecorator self, SparseStringKey a0) -> IMP::String
8860  get_value(_TrivialTraitsDecorator self, SparseParticleIndexKey a0) -> ParticleIndex
8861  """
8862  return _IMP_kernel._TrivialTraitsDecorator_get_value(self, *args)
8863 
8864  def set_value(self, *args):
8865  r"""
8866  set_value(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
8867  set_value(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
8868  set_value(_TrivialTraitsDecorator self, FloatsKey a0, IMP::Floats a1)
8869  set_value(_TrivialTraitsDecorator self, IntsKey a0, IMP::Ints a1)
8870  set_value(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
8871  set_value(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
8872  set_value(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
8873  set_value(_TrivialTraitsDecorator self, SparseFloatKey a0, IMP::Float a1)
8874  set_value(_TrivialTraitsDecorator self, SparseIntKey a0, IMP::Int a1)
8875  set_value(_TrivialTraitsDecorator self, SparseStringKey a0, IMP::String a1)
8876  set_value(_TrivialTraitsDecorator self, SparseParticleIndexKey a0, ParticleIndex a1)
8877  """
8878  return _IMP_kernel._TrivialTraitsDecorator_set_value(self, *args)
8879 
8880  def remove_attribute(self, *args):
8881  r"""
8882  remove_attribute(_TrivialTraitsDecorator self, FloatKey a0)
8883  remove_attribute(_TrivialTraitsDecorator self, IntKey a0)
8884  remove_attribute(_TrivialTraitsDecorator self, FloatsKey a0)
8885  remove_attribute(_TrivialTraitsDecorator self, IntsKey a0)
8886  remove_attribute(_TrivialTraitsDecorator self, StringKey a0)
8887  remove_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0)
8888  remove_attribute(_TrivialTraitsDecorator self, ObjectKey a0)
8889  remove_attribute(_TrivialTraitsDecorator self, SparseFloatKey a0)
8890  remove_attribute(_TrivialTraitsDecorator self, SparseIntKey a0)
8891  remove_attribute(_TrivialTraitsDecorator self, SparseStringKey a0)
8892  remove_attribute(_TrivialTraitsDecorator self, SparseParticleIndexKey a0)
8893  """
8894  return _IMP_kernel._TrivialTraitsDecorator_remove_attribute(self, *args)
8895 
8896  def has_attribute(self, *args):
8897  r"""
8898  has_attribute(_TrivialTraitsDecorator self, FloatKey a0) -> bool
8899  has_attribute(_TrivialTraitsDecorator self, IntKey a0) -> bool
8900  has_attribute(_TrivialTraitsDecorator self, FloatsKey a0) -> bool
8901  has_attribute(_TrivialTraitsDecorator self, IntsKey a0) -> bool
8902  has_attribute(_TrivialTraitsDecorator self, StringKey a0) -> bool
8903  has_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> bool
8904  has_attribute(_TrivialTraitsDecorator self, ObjectKey a0) -> bool
8905  has_attribute(_TrivialTraitsDecorator self, SparseFloatKey a0) -> bool
8906  has_attribute(_TrivialTraitsDecorator self, SparseIntKey a0) -> bool
8907  has_attribute(_TrivialTraitsDecorator self, SparseStringKey a0) -> bool
8908  has_attribute(_TrivialTraitsDecorator self, SparseParticleIndexKey a0) -> bool
8909  """
8910  return _IMP_kernel._TrivialTraitsDecorator_has_attribute(self, *args)
8911 
8912  def get_derivative(self, a0):
8913  r"""get_derivative(_TrivialTraitsDecorator self, FloatKey a0) -> double"""
8914  return _IMP_kernel._TrivialTraitsDecorator_get_derivative(self, a0)
8915 
8916  def get_name(self):
8917  r"""get_name(_TrivialTraitsDecorator self) -> std::string"""
8918  return _IMP_kernel._TrivialTraitsDecorator_get_name(self)
8919 
8920  def clear_caches(self):
8921  r"""clear_caches(_TrivialTraitsDecorator self)"""
8922  return _IMP_kernel._TrivialTraitsDecorator_clear_caches(self)
8923 
8924  def set_name(self, a0):
8925  r"""set_name(_TrivialTraitsDecorator self, std::string a0)"""
8926  return _IMP_kernel._TrivialTraitsDecorator_set_name(self, a0)
8927 
8928  def set_check_level(self, a0):
8929  r"""set_check_level(_TrivialTraitsDecorator self, IMP::CheckLevel a0)"""
8930  return _IMP_kernel._TrivialTraitsDecorator_set_check_level(self, a0)
8931 
8932  def add_to_derivative(self, a0, a1, a2):
8933  r"""add_to_derivative(_TrivialTraitsDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8934  return _IMP_kernel._TrivialTraitsDecorator_add_to_derivative(self, a0, a1, a2)
8935 
8936  def set_is_optimized(self, a0, a1):
8937  r"""set_is_optimized(_TrivialTraitsDecorator self, FloatKey a0, bool a1)"""
8938  return _IMP_kernel._TrivialTraitsDecorator_set_is_optimized(self, a0, a1)
8939 
8940  def get_is_optimized(self, a0):
8941  r"""get_is_optimized(_TrivialTraitsDecorator self, FloatKey a0) -> bool"""
8942  return _IMP_kernel._TrivialTraitsDecorator_get_is_optimized(self, a0)
8943 
8944  def get_check_level(self):
8945  r"""get_check_level(_TrivialTraitsDecorator self) -> IMP::CheckLevel"""
8946  return _IMP_kernel._TrivialTraitsDecorator_get_check_level(self)
8947 
8948  def __eq__(self, *args):
8949  r"""
8950  __eq__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
8951  __eq__(_TrivialTraitsDecorator self, Particle d) -> bool
8952  """
8953  return _IMP_kernel._TrivialTraitsDecorator___eq__(self, *args)
8954 
8955  def __ne__(self, *args):
8956  r"""
8957  __ne__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
8958  __ne__(_TrivialTraitsDecorator self, Particle d) -> bool
8959  """
8960  return _IMP_kernel._TrivialTraitsDecorator___ne__(self, *args)
8961 
8962  def __le__(self, *args):
8963  r"""
8964  __le__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
8965  __le__(_TrivialTraitsDecorator self, Particle d) -> bool
8966  """
8967  return _IMP_kernel._TrivialTraitsDecorator___le__(self, *args)
8968 
8969  def __lt__(self, *args):
8970  r"""
8971  __lt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
8972  __lt__(_TrivialTraitsDecorator self, Particle d) -> bool
8973  """
8974  return _IMP_kernel._TrivialTraitsDecorator___lt__(self, *args)
8975 
8976  def __ge__(self, *args):
8977  r"""
8978  __ge__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
8979  __ge__(_TrivialTraitsDecorator self, Particle d) -> bool
8980  """
8981  return _IMP_kernel._TrivialTraitsDecorator___ge__(self, *args)
8982 
8983  def __gt__(self, *args):
8984  r"""
8985  __gt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
8986  __gt__(_TrivialTraitsDecorator self, Particle d) -> bool
8987  """
8988  return _IMP_kernel._TrivialTraitsDecorator___gt__(self, *args)
8989 
8990  def __hash__(self):
8991  r"""__hash__(_TrivialTraitsDecorator self) -> std::size_t"""
8992  return _IMP_kernel._TrivialTraitsDecorator___hash__(self)
8993 
8994  def __str__(self):
8995  r"""__str__(_TrivialTraitsDecorator self) -> std::string"""
8996  return _IMP_kernel._TrivialTraitsDecorator___str__(self)
8997 
8998  def __repr__(self):
8999  r"""__repr__(_TrivialTraitsDecorator self) -> std::string"""
9000  return _IMP_kernel._TrivialTraitsDecorator___repr__(self)
9001  __swig_destroy__ = _IMP_kernel.delete__TrivialTraitsDecorator
9002 
9003 # Register _TrivialTraitsDecorator in _IMP_kernel:
9004 _IMP_kernel._TrivialTraitsDecorator_swigregister(_TrivialTraitsDecorator)
9005 
9006 def __lshift__(*args):
9007  r"""
9008  __lshift__(_ostream out, _TrivialDecorator n) -> _ostream
9009  __lshift__(_ostream out, _TrivialDerivedDecorator n) -> _ostream
9010  __lshift__(_ostream out, _TrivialTraitsDecorator n) -> _ostream
9011  """
9012  return _IMP_kernel.__lshift__(*args)
9013 class _ConstOptimizer(Optimizer):
9014  r"""Proxy of C++ IMP::internal::_ConstOptimizer class."""
9015 
9016  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9017 
9018  def __init__(self, *args):
9019  r"""
9020  __init__(_ConstOptimizer self, Model m) -> _ConstOptimizer
9021  __init__(_ConstOptimizer self) -> _ConstOptimizer
9022  """
9023  _IMP_kernel._ConstOptimizer_swiginit(self, _IMP_kernel.new__ConstOptimizer(*args))
9024 
9025  def do_optimize(self, max_steps):
9026  r"""do_optimize(_ConstOptimizer self, unsigned int max_steps) -> IMP::Float"""
9027  return _IMP_kernel._ConstOptimizer_do_optimize(self, max_steps)
9028 
9029  def get_version_info(self):
9030  r"""get_version_info(_ConstOptimizer self) -> VersionInfo"""
9031  return _IMP_kernel._ConstOptimizer_get_version_info(self)
9032  __swig_destroy__ = _IMP_kernel.delete__ConstOptimizer
9033 
9034  def __str__(self):
9035  r"""__str__(_ConstOptimizer self) -> std::string"""
9036  return _IMP_kernel._ConstOptimizer___str__(self)
9037 
9038  def __repr__(self):
9039  r"""__repr__(_ConstOptimizer self) -> std::string"""
9040  return _IMP_kernel._ConstOptimizer___repr__(self)
9041 
9042  @staticmethod
9043  def get_from(o):
9044  return _object_cast_to__ConstOptimizer(o)
9045 
9046 
9047  def _get_as_binary(self):
9048  r"""_get_as_binary(_ConstOptimizer self) -> PyObject *"""
9049  return _IMP_kernel._ConstOptimizer__get_as_binary(self)
9050 
9051  def _set_from_binary(self, p):
9052  r"""_set_from_binary(_ConstOptimizer self, PyObject * p)"""
9053  return _IMP_kernel._ConstOptimizer__set_from_binary(self, p)
9054 
9055  def __getstate__(self):
9056  p = self._get_as_binary()
9057  if len(self.__dict__) > 1:
9058  d = self.__dict__.copy()
9059  del d['this']
9060  p = (d, p)
9061  return p
9062 
9063  def __setstate__(self, p):
9064  if not hasattr(self, 'this'):
9065  self.__init__()
9066  if isinstance(p, tuple):
9067  d, p = p
9068  self.__dict__.update(d)
9069  return self._set_from_binary(p)
9070 
9071 
9072 # Register _ConstOptimizer in _IMP_kernel:
9073 _IMP_kernel._ConstOptimizer_swigregister(_ConstOptimizer)
9074 
9075 def get_particle(p):
9076  r"""get_particle(Particle p) -> Particle"""
9077  return _IMP_kernel.get_particle(p)
9078 
9079 def _decorator_test(p):
9080  r"""_decorator_test(Particle p)"""
9081  return _IMP_kernel._decorator_test(p)
9082 
9083 def _overloaded_decorator(*args):
9084  r"""
9085  _overloaded_decorator(_TrivialDecorator a) -> int
9086  _overloaded_decorator(_TrivialDerivedDecorator a) -> int
9087  """
9088  return _IMP_kernel._overloaded_decorator(*args)
9089 
9090 def _take_particles(*args):
9091  r"""
9092  _take_particles(IMP::Particles const & ps) -> unsigned int
9093  _take_particles(Model m, IMP::Particles const & ps) -> unsigned int
9094  _take_particles(Model m, IMP::Particles const & ps, TextOutput out) -> unsigned int
9095  """
9096  return _IMP_kernel._take_particles(*args)
9097 
9098 def _give_particles(m):
9099  r"""_give_particles(Model m) -> IMP::Particles const &"""
9100  return _IMP_kernel._give_particles(m)
9101 
9102 def _pass_particles(ps):
9103  r"""_pass_particles(IMP::Particles const & ps) -> IMP::Particles const &"""
9104  return _IMP_kernel._pass_particles(ps)
9105 
9106 def _pass_particle(ps):
9107  r"""_pass_particle(Particle ps) -> Particle"""
9108  return _IMP_kernel._pass_particle(ps)
9109 
9110 def _pass_particle_pair(pp):
9111  r"""_pass_particle_pair(IMP::ParticlePair const & pp) -> IMP::ParticlePair const &"""
9112  return _IMP_kernel._pass_particle_pair(pp)
9113 
9114 def _give_particles_copy(m):
9115  r"""_give_particles_copy(Model m) -> IMP::Particles"""
9116  return _IMP_kernel._give_particles_copy(m)
9117 
9118 def _pass_float_keys(input):
9119  r"""_pass_float_keys(IMP::FloatKeys const & input) -> IMP::FloatKeys"""
9120  return _IMP_kernel._pass_float_keys(input)
9121 
9122 def _pass(*args):
9123  r"""
9124  _pass(IMP::Particles const & p) -> IMP::Particles const
9125  _pass(IMP::Restraints const & p) -> IMP::Restraints const &
9126  """
9127  return _IMP_kernel._pass(*args)
9128 
9129 def _pass_decorators(p):
9130  r"""_pass_decorators(IMP::internal::_TrivialDecorators const & p) -> IMP::internal::_TrivialDecorators const &"""
9131  return _IMP_kernel._pass_decorators(p)
9132 
9133 def _pass_decorator_traits(p):
9134  r"""_pass_decorator_traits(IMP::internal::_TrivialTraitsDecorators const & p) -> IMP::internal::_TrivialTraitsDecorators const &"""
9135  return _IMP_kernel._pass_decorator_traits(p)
9136 
9137 def _pass_particle_pairs(p):
9138  r"""_pass_particle_pairs(IMP::ParticlePairsTemp const & p) -> IMP::ParticlePairsTemp"""
9139  return _IMP_kernel._pass_particle_pairs(p)
9140 
9141 def _pass_particle_index_pairs(p):
9142  r"""_pass_particle_index_pairs(IMP::ParticleIndexPairs const & p) -> IMP::ParticleIndexPairs"""
9143  return _IMP_kernel._pass_particle_index_pairs(p)
9144 
9145 def _pass_model_objects(p):
9146  r"""_pass_model_objects(IMP::ModelObjectsTemp const & p) -> IMP::ModelObjectsTemp"""
9147  return _IMP_kernel._pass_model_objects(p)
9148 
9149 def _pass_particles_temps(ps):
9150  r"""_pass_particles_temps(IMP::ParticlesTemps const & ps) -> IMP::ParticlesTemps"""
9151  return _IMP_kernel._pass_particles_temps(ps)
9152 
9153 def _test_overload(*args):
9154  r"""
9155  _test_overload(IMP::Particles const & ps) -> int
9156  _test_overload(IMP::Restraints const & ps) -> int
9157  """
9158  return _IMP_kernel._test_overload(*args)
9159 
9160 def _get_range(m, k):
9161  r"""_get_range(Model m, FloatKey k) -> IMP::FloatRange"""
9162  return _IMP_kernel._get_range(m, k)
9163 
9164 def _create_particles_from_pdb(name, m):
9165  r"""_create_particles_from_pdb(std::string name, Model m) -> IMP::ParticleIndexes"""
9166  return _IMP_kernel._create_particles_from_pdb(name, m)
9167 class _LogPairScore(PairScore):
9168  r"""Proxy of C++ IMP::internal::_LogPairScore class."""
9169 
9170  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9171  __repr__ = _swig_repr
9172 
9173  def __init__(self):
9174  r"""__init__(_LogPairScore self) -> _LogPairScore"""
9175  _IMP_kernel._LogPairScore_swiginit(self, _IMP_kernel.new__LogPairScore())
9176 
9177  def do_get_inputs(self, arg2, arg3):
9178  r"""do_get_inputs(_LogPairScore self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
9179  return _IMP_kernel._LogPairScore_do_get_inputs(self, arg2, arg3)
9180 
9181  def get_version_info(self):
9182  r"""get_version_info(_LogPairScore self) -> VersionInfo"""
9183  return _IMP_kernel._LogPairScore_get_version_info(self)
9184  __swig_destroy__ = _IMP_kernel.delete__LogPairScore
9185 
9186  def get_particle_pairs(self):
9187  r"""get_particle_pairs(_LogPairScore self) -> IMP::ParticlePairsTemp"""
9188  return _IMP_kernel._LogPairScore_get_particle_pairs(self)
9189 
9190  def clear(self):
9191  r"""clear(_LogPairScore self)"""
9192  return _IMP_kernel._LogPairScore_clear(self)
9193 
9194  def get_contains(self, pp):
9195  r"""get_contains(_LogPairScore self, IMP::ParticlePair const & pp) -> bool"""
9196  return _IMP_kernel._LogPairScore_get_contains(self, pp)
9197 
9198 # Register _LogPairScore in _IMP_kernel:
9199 _IMP_kernel._LogPairScore_swigregister(_LogPairScore)
9200 
9201 def _overloaded_particles(*args):
9202  r"""
9203  _overloaded_particles(Particle arg1)
9204  _overloaded_particles(IMP::Particles const & arg1)
9205  _overloaded_particles(IMP::ParticlesTemp const & arg1)
9206  _overloaded_particles(Model arg1, IMP::ParticleIndexes const & arg2)
9207  _overloaded_particles(IMP::internal::_TrivialDecorators const & arg1)
9208  _overloaded_particles(_TrivialDecorator arg1)
9209  """
9210  return _IMP_kernel._overloaded_particles(*args)
9211 class _ImplicitParticles(object):
9212  r"""Proxy of C++ IMP::internal::_ImplicitParticles class."""
9213 
9214  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9215  __repr__ = _swig_repr
9216 
9217  def __init__(self, *args):
9218  r"""
9219  __init__(_ImplicitParticles self, Particle arg2) -> _ImplicitParticles
9220  __init__(_ImplicitParticles self, IMP::Particles const & arg2) -> _ImplicitParticles
9221  __init__(_ImplicitParticles self, IMP::ParticlesTemp const & arg2) -> _ImplicitParticles
9222  __init__(_ImplicitParticles self, Model arg2, IMP::ParticleIndexes const & arg3) -> _ImplicitParticles
9223  __init__(_ImplicitParticles self, IMP::internal::_TrivialDecorators const & arg2) -> _ImplicitParticles
9224  __init__(_ImplicitParticles self, _TrivialDecorator arg2) -> _ImplicitParticles
9225  """
9226  _IMP_kernel._ImplicitParticles_swiginit(self, _IMP_kernel.new__ImplicitParticles(*args))
9227  __swig_destroy__ = _IMP_kernel.delete__ImplicitParticles
9228 
9229 # Register _ImplicitParticles in _IMP_kernel:
9230 _IMP_kernel._ImplicitParticles_swigregister(_ImplicitParticles)
9231 
9232 def _implicit_particles(arg1):
9233  r"""_implicit_particles(_ImplicitParticles arg1)"""
9234  return _IMP_kernel._implicit_particles(arg1)
9235 
9236 def _take_particle_adaptor(pa):
9237  r"""_take_particle_adaptor(_ParticleAdaptor pa) -> ParticleIndex"""
9238  return _IMP_kernel._take_particle_adaptor(pa)
9239 
9240 def _take_particle_indexes_adaptor(pa):
9241  r"""_take_particle_indexes_adaptor(_ParticleIndexesAdaptor pa) -> IMP::ParticleIndexes"""
9242  return _IMP_kernel._take_particle_indexes_adaptor(pa)
9243 class ScopedSetFloatAttribute(_RAII):
9244  r"""Proxy of C++ IMP::ScopedSetAttribute< FloatKey,IMP::Float > class."""
9245 
9246  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9247 
9248  def __init__(self, *args):
9249  r"""
9250  __init__(ScopedSetFloatAttribute self) -> ScopedSetFloatAttribute
9251  __init__(ScopedSetFloatAttribute self, Particle p, FloatKey key, double const & value) -> ScopedSetFloatAttribute
9252  """
9253  _IMP_kernel.ScopedSetFloatAttribute_swiginit(self, _IMP_kernel.new_ScopedSetFloatAttribute(*args))
9254 
9255  def set(self, p, key, value):
9256  r"""set(ScopedSetFloatAttribute self, Particle p, FloatKey key, double const & value)"""
9257  return _IMP_kernel.ScopedSetFloatAttribute_set(self, p, key, value)
9258 
9259  def reset(self):
9260  r"""reset(ScopedSetFloatAttribute self)"""
9261  return _IMP_kernel.ScopedSetFloatAttribute_reset(self)
9262  __swig_destroy__ = _IMP_kernel.delete_ScopedSetFloatAttribute
9263 
9264  def show(self, *args):
9265  r"""show(ScopedSetFloatAttribute self, _ostream out=std::cout)"""
9266  return _IMP_kernel.ScopedSetFloatAttribute_show(self, *args)
9267 
9268  def __str__(self):
9269  r"""__str__(ScopedSetFloatAttribute self) -> std::string"""
9270  return _IMP_kernel.ScopedSetFloatAttribute___str__(self)
9271 
9272  def __repr__(self):
9273  r"""__repr__(ScopedSetFloatAttribute self) -> std::string"""
9274  return _IMP_kernel.ScopedSetFloatAttribute___repr__(self)
9275 
9276 # Register ScopedSetFloatAttribute in _IMP_kernel:
9277 _IMP_kernel.ScopedSetFloatAttribute_swigregister(ScopedSetFloatAttribute)
9278 
9279 def _get_module_data_path(module, file_name):
9280  r"""_get_module_data_path(std::string module, std::string file_name) -> std::string"""
9281  return _IMP_kernel._get_module_data_path(module, file_name)
9282 
9283 def _get_module_example_path(module, file_name):
9284  r"""_get_module_example_path(std::string module, std::string file_name) -> std::string"""
9285  return _IMP_kernel._get_module_example_path(module, file_name)
9286 
9287 #used_modules=[]
9288 #def show_used_modules():
9289 # for m in used_modules:
9290 # print "%-20s %s" % (m.get_module(), m.get_version())
9291 
9292 # Ensure that Windows gets the PATH set to include anything in the library
9293 # search path
9294 if sys.platform == 'win32' and 'IMP_LD_PATH' in os.environ:
9295  dirs = os.environ['IMP_LD_PATH'].split(":")
9296  pathcomps = os.environ['PATH'].split(";")
9297  for d in dirs:
9298  if d not in pathcomps:
9299  os.environ['PATH'] = d + ';' + os.environ['PATH']
9300 
9301 
9302 
9303 import sys
9304 import os
9305 
9306 class CommandDispatcher(object):
9307  """Allow command line tools to easily implement multiple commands.
9308  Typically, an IMP command line tool will use an instance of this class
9309  to provide a consistent interface to multiple distinct commands
9310  from a single binary, rather than providing a potentially large
9311  number of binaries. This is similar to the way a number of common
9312  command line tools outside of IMP function (e.g. Git provides a single
9313  `git` tool which implements multiple commands - `git add`, `git commit`,
9314  `git push` and so on).
9315 
9316  Each command is implemented with a Python module of the same name
9317  that can be imported from the module (for example, if `module_name`
9318  is `IMP.foo`, the `bar` command is provided by the `IMP.foo.bar` Python
9319  module, which would usually be found as `modules/foo/pyext/src/bar.py`).
9320  Each such module should have a docstring and a `%main()` method
9321  that takes no arguments (the module should also call its `%main()` method
9322  if it is run directly, i.e. with something like
9323  `if __name__=="__main__": %main()`). The encompassing module
9324  (`IMP.foo` in the example) should define `_all_commands` as a Python
9325  list of all valid commands.
9326 
9327  See the `multifit` and `cnmultifit` command line tools for example
9328  usage.
9329  """
9330 
9331  def __init__(self, short_help, long_help, module_name):
9332  """Constructor.
9333  @param short_help A few words that describe the command line tool.
9334  @param long_help Longer text, used in the `help` command.
9335  @param module_name Name of the module (e.g. `IMP.foo`) that
9336  implements the commands.
9337  """
9338  self.short_help = short_help
9339  self.long_help = long_help
9340  self.module_name = module_name
9341  self._all_commands = self.import_module()._all_commands
9342  self._progname = os.path.basename(sys.argv[0])
9343 
9344  def main(self):
9345  """Call this method to act upon the user-provided command line"""
9346  if len(sys.argv) <= 1:
9347  print(self.short_help + " Use '%s help' for help." % self._progname)
9348  else:
9349  command = sys.argv[1]
9350  if command in ('help', '--help', '-h'):
9351  if len(sys.argv) == 3:
9352  self.show_command_help(sys.argv[2])
9353  else:
9354  self.show_help()
9355  elif command == '--version':
9356  self.show_version()
9357  elif command in self._all_commands:
9358  self.do_command(command)
9359  else:
9360  self.unknown_command(command)
9361 
9362  def import_module(self, mod=None):
9363  modname = self.module_name
9364  if mod is not None:
9365  modname += "." + mod
9366  return __import__(modname, {}, {}, [''])
9367 
9368  def unknown_command(self, command):
9369  print("Unknown command: '%s'" % command)
9370  print("Use '%s help' for help." % self._progname)
9371  sys.exit(1)
9372 
9373  def _get_version(self):
9374  return self.import_module().get_module_version()
9375 
9376  def show_version(self):
9377  print(self._progname + ' ' + self._get_version())
9378 
9379  def show_help(self):
9380  ver = self._get_version()
9381  print("%s, version %s." % (self._progname, ver))
9382  print(self.long_help + """
9383 
9384 This program is part of IMP, the Integrative Modeling Platform,
9385 which is %s.
9386 For additional information about IMP, see <https://integrativemodeling.org>.
9387 
9388 Usage: %s <command> [options] [args]
9389 
9390 Commands:""" % (get_copyright(), self._progname))
9391  commands = self._all_commands[:] + ['help']
9392  commands.sort()
9393  cmdlen = max([len(c) for c in commands])
9394  for c in commands:
9395  if c == 'help':
9396  doc = 'Get help on using %s.' % self._progname
9397  else:
9398  doc = self.import_module(c).__doc__ or "<no help>"
9399  c += ' ' * (cmdlen - len(c))
9400  print(' ' + c + ' ' + doc)
9401  print("""
9402 Use "%s help <command>" for detailed help on any command
9403  or "%s --version" to see the version number.""" % (self._progname,
9404  self._progname))
9405 
9406  def do_command(self, command):
9407  mod = self.import_module(command)
9408  sys.argv[0] = self._progname + ' ' + command
9409  del sys.argv[1]
9410  mod.main()
9411 
9412  def show_command_help(self, command):
9413  if command == 'help':
9414  self.show_help()
9415  elif command in self._all_commands or command == 'help':
9416  mod = self.import_module(command)
9417  sys.argv = [self._progname + ' ' + command, '--help']
9418  mod.main()
9419  else:
9420  self.unknown_command(command)
9421 
9422 
9423 
9424 
9425 def get_networkx_graph(ig):
9426  import networkx
9427  g = networkx.DiGraph()
9428  if len(ig.get_vertices()) == 0:
9429  return g
9430 
9431  class NodeWrapper:
9432 
9433  def __init__(self, p):
9434  self.p = p
9435 
9436  def __str__(self):
9437  return self.p.get_name()
9438 
9439  def __call__(self, name):
9440  return self.p.__call__(name)
9441 
9442  for vi in ig.get_vertices():
9443  n = ig.get_vertex_name(vi)
9444  g.add_node(NodeWrapper(n))
9445  for vi in ig.get_vertices():
9446  n = ig.get_vertex_name(vi)
9447  for ni in ig.get_out_neighbors(vi):
9448  nn = ig.get_vertex_name(ni)
9449  g.add_edge(NodeWrapper(n), NodeWrapper(nn))
9450  return g
9451 
9452 
9453 def show_altgraph(g):
9454  def clean(name):
9455  try:
9456  n0 = name.get_name()
9457  except:
9458  n0 = str(name)
9459  n1 = str(n0).replace('"', '')
9460  n2 = n1.replace("\n", '')
9461  return n2
9462  import altgraph
9463  from altgraph import Graph, Dot
9464  graph = Graph.Graph()
9465  for i, v in enumerate(g.get_vertices()):
9466  graph.add_node(i) # , node_data=g.get_vertex_name(v)
9467  for i, v in enumerate(g.get_vertices()):
9468  for n in g.get_out_neighbors(v):
9469  graph.add_edge(v, n)
9470  dot = Dot.Dot(graph) # , graph_type="digraph"
9471  for i, v in enumerate(g.get_vertices()):
9472  dot.node_style(i, label=clean(g.get_vertex_name(v)))
9473  dot.display()
9474 
9475 
9476 def show_graphviz(g):
9477  import subprocess
9478  tfn = create_temporary_file_name("graph", ".dot")
9479  tfon = create_temporary_file_name("graph", ".pdf")
9480  st = g.get_graphviz_string()
9481  with open(tfn, "w") as fh:
9482  fh.write(st)
9483  try:
9484  print("running dot")
9485  sp = subprocess.Popen(["dot", "-Tpdf", tfn, "-o" + tfon])
9486  sp.wait()
9487  except:
9488  import sys
9489  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")
9490  return
9491  import platform
9492  if platform.system() == "Darwin":
9493  cmd = ["open"]
9494  else:
9495  cmd = ["gv", "acroread", "xpdf"]
9496  success = False
9497  for c in cmd:
9498  print("launching viewer " + c)
9499  try:
9500  subprocess.check_call([c, tfon])
9501  success = True
9502  break
9503  except:
9504  pass
9505  if not success:
9506  print("Could not display file. It is saved at " + tfon)
9507  return tfon
9508 
9509 
9510 
9511 
9512 import functools
9513 import contextlib
9514 
9515 def deprecated_module(version, module, help_message):
9516  """Mark a Python module as deprecated.
9517  @note The `module` argument would normally be `__name__`.
9518  @see [deprecation support](@ref deprecation)."""
9520  "Module %s is deprecated. %s\n" % (module, help_message))
9521 
9522 def deprecated_object(version, help_message):
9523  """Python decorator to mark a class as deprecated.
9524  @see [deprecation support](@ref deprecation)."""
9525  def wrapper(obj):
9526  orig_init = obj.__init__
9527 # Don't try to copy __module__ since __init__ may not have it
9528 # (e.g. if we subclassed object but didn't override __init__)
9529  @functools.wraps(orig_init, ('__name__', '__doc__'))
9530  def __init__(obj, *args, **keys):
9531  handle_use_deprecated("Object %s is deprecated. %s\n"
9532  % (type(obj), help_message))
9533  orig_init(obj, *args, **keys)
9534  obj.__init__ = __init__
9535  return obj
9536  return wrapper
9537 
9538 def deprecated_method(version, help_message):
9539  """Python decorator to mark a method as deprecated.
9540  @see [deprecation support](@ref deprecation)."""
9541  def out_wrapper(obj):
9542  @functools.wraps(obj)
9543  def wrapper(cls, *args, **keys):
9544  handle_use_deprecated("Method %s in %s is deprecated. %s\n"
9545  % (obj.__name__, type(cls), help_message))
9546  return obj(cls, *args, **keys)
9547  return wrapper
9548  return out_wrapper
9549 
9550 def deprecated_function(version, help_message):
9551  """Python decorator to mark a function as deprecated.
9552  @see [deprecation support](@ref deprecation)."""
9553  def out_wrapper(obj):
9554  @functools.wraps(obj)
9555  def wrapper(*args, **keys):
9556  handle_use_deprecated("Function %s is deprecated. %s\n"
9557  % (obj.__name__, help_message))
9558  return obj(*args, **keys)
9559  return wrapper
9560  return out_wrapper
9561 
9562 @contextlib.contextmanager
9563 def allow_deprecated(allow=True):
9564  """Context manager to temporarily allow (or disallow) deprecated code.
9565  @see [deprecation support](@ref deprecation)."""
9567  set_deprecation_exceptions(not allow)
9568  yield
9570 
9571 
9572 def _get_all_flags(ntokens):
9573  r"""_get_all_flags(unsigned int ntokens) -> IMP::Strings"""
9574  return _IMP_kernel._get_all_flags(ntokens)
9575 
9576 def _print_internal_help(out, description):
9577  r"""_print_internal_help(_ostream out, std::string description)"""
9578  return _IMP_kernel._print_internal_help(out, description)
9579 
9580 
9581 import argparse
9582 import sys
9583 
9584 class _PassThroughAction(argparse.Action):
9585  """Pass an argument through to the IMP Boost parser"""
9586  def __call__(self, parser, namespace, values, option_string=None):
9587  parser._boost_command_line.append(option_string)
9588  if values != []:
9589  parser._boost_command_line.append(values)
9590 # Terminate processing immediately if necessary (otherwise argparse
9591 # may fail if we're missing positional arguments)
9592  if option_string in ('-h', '--help', '--help_advanced', '--version'):
9593  parser._handle_boost()
9594 
9595 
9596 class ArgumentParser(argparse.ArgumentParser):
9597  """IMP-specific subclass of argparse.ArgumentParser.
9598  This adds options common to all IMP applications
9599  (see IMP::setup_from_argv()).
9600  """
9601 
9602  def __init__(self, *args, **kwargs):
9603 # Don't add --help option (since the Boost option parser handles it)
9604  kwargs['add_help'] = False
9605  super(ArgumentParser, self).__init__(*args, **kwargs)
9606  for ntoken in (0, 1):
9607  flags = _get_all_flags(ntoken)
9608  for f in flags:
9609  arg = ['-h', '--help'] if f == 'help' else ['--' + f]
9610  self.add_argument(*arg, help=argparse.SUPPRESS,
9611  nargs=None if ntoken else 0,
9612  action=_PassThroughAction,
9613  default=argparse.SUPPRESS)
9614 
9615  def parse_args(self, args=None, namespace=None):
9616  """Parse the command line and return optional and positional arguments.
9617  This functions in the same way as the method in the base class
9618  argparse.ArgumentParser, except that it also processes optional
9619  arguments common to all IMP applications (these are not returned
9620  in `args`, but can be obtained in the usual way, e.g. by calling
9621  IMP::get_string_flag()).
9622  @returns args
9623  """
9624  self._boost_command_line = [sys.argv[0]]
9625  ret = super(ArgumentParser, self).parse_args(args, namespace)
9626  if len(self._boost_command_line) > 1:
9627  self._handle_boost()
9628  return ret
9629 
9630  def _get_description(self):
9631  return self.format_help() + "\nOptions common to all IMP applications:"
9632 
9633  def print_help(self, file=None):
9634  _print_internal_help(file if file else sys.stdout,
9635  self._get_description())
9636 
9637  def _handle_boost(self):
9638  setup_from_argv(self._boost_command_line,
9639  self._get_description(),
9640  '==SUPPRESS==', 0)
9641 
9642 class RandomNumberGenerator(object):
9643  r"""Proxy of C++ IMP::RandomNumberGenerator class."""
9644 
9645  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9646  __repr__ = _swig_repr
9647 
9648  def seed(self, x):
9649  r"""seed(RandomNumberGenerator self, int x)"""
9650  return _IMP_kernel.RandomNumberGenerator_seed(self, x)
9651 
9652  def __call__(self):
9653  r"""__call__(RandomNumberGenerator self) -> int"""
9654  return _IMP_kernel.RandomNumberGenerator___call__(self)
9655 
9656  def __init__(self):
9657  r"""__init__(RandomNumberGenerator self) -> RandomNumberGenerator"""
9658  _IMP_kernel.RandomNumberGenerator_swiginit(self, _IMP_kernel.new_RandomNumberGenerator())
9659  __swig_destroy__ = _IMP_kernel.delete_RandomNumberGenerator
9660 
9661 # Register RandomNumberGenerator in _IMP_kernel:
9662 _IMP_kernel.RandomNumberGenerator_swigregister(RandomNumberGenerator)
9663 
9664 def get_random_float_uniform(*args):
9665  r"""
9666  get_random_float_uniform() -> float
9667  get_random_float_uniform(float min, float max) -> float
9668  """
9669  return _IMP_kernel.get_random_float_uniform(*args)
9670 
9671 def get_random_double_uniform(*args):
9672  r"""
9673  get_random_double_uniform() -> double
9674  get_random_double_uniform(double min, double max) -> double
9675  """
9676  return _IMP_kernel.get_random_double_uniform(*args)
9677 
9678 def get_random_floats_normal(n, mean=0.0, stddev=1.0):
9679  r"""get_random_floats_normal(unsigned int n, float mean=0.0, float stddev=1.0) -> IMP::Vector< float >"""
9680  return _IMP_kernel.get_random_floats_normal(n, mean, stddev)
9681 
9682 def get_random_doubles_normal(n, mean=0.0, stddev=1.0):
9683  r"""get_random_doubles_normal(unsigned int n, double mean=0.0, double stddev=1.0) -> IMP::Vector< double >"""
9684  return _IMP_kernel.get_random_doubles_normal(n, mean, stddev)
9685 
9686 def get_random_floats_uniform(n):
9687  r"""get_random_floats_uniform(unsigned int n) -> IMP::Vector< float >"""
9688  return _IMP_kernel.get_random_floats_uniform(n)
9689 
9690 def get_random_doubles_uniform(n):
9691  r"""get_random_doubles_uniform(unsigned int n) -> IMP::Vector< double >"""
9692  return _IMP_kernel.get_random_doubles_uniform(n)
9693 
9694 def get_random_seed():
9695  r"""get_random_seed() -> boost::uint64_t"""
9696  return _IMP_kernel.get_random_seed()
9697 
9698 def _get_derivatives_numpy(m, k, m_pyobj):
9699  r"""_get_derivatives_numpy(Model m, FloatKey k, PyObject * m_pyobj) -> PyObject *"""
9700  return _IMP_kernel._get_derivatives_numpy(m, k, m_pyobj)
9701 
9702 def _get_floats_numpy(m, k, m_pyobj):
9703  r"""_get_floats_numpy(Model m, FloatKey k, PyObject * m_pyobj) -> PyObject *"""
9704  return _IMP_kernel._get_floats_numpy(m, k, m_pyobj)
9705 
9706 def _get_ints_numpy(m, k, m_pyobj):
9707  r"""_get_ints_numpy(Model m, IntKey k, PyObject * m_pyobj) -> PyObject *"""
9708  return _IMP_kernel._get_ints_numpy(m, k, m_pyobj)
9709 
9710 def _get_spheres_numpy(m, m_pyobj):
9711  r"""_get_spheres_numpy(Model m, PyObject * m_pyobj) -> PyObject *"""
9712  return _IMP_kernel._get_spheres_numpy(m, m_pyobj)
9713 
9714 def _get_sphere_derivatives_numpy(m, m_pyobj):
9715  r"""_get_sphere_derivatives_numpy(Model m, PyObject * m_pyobj) -> PyObject *"""
9716  return _IMP_kernel._get_sphere_derivatives_numpy(m, m_pyobj)
9717 
9718 try:
9719  import numpy
9720  ParticleIndex = numpy.int32
9721 except ImportError:
9722  pass
9723 
9724 
9725 def get_module_version():
9726  r"""get_module_version() -> std::string const"""
9727  return _IMP_kernel.get_module_version()
9728 
9729 def get_example_path(fname):
9730  r"""get_example_path(std::string fname) -> std::string"""
9731  return _IMP_kernel.get_example_path(fname)
9732 
9733 def get_data_path(fname):
9734  r"""get_data_path(std::string fname) -> std::string"""
9735  return _IMP_kernel.get_data_path(fname)
9736 
9737 from . import _version_check
9738 _version_check.check_version(get_module_version())
9739 __version__ = get_module_version()
9740 
9741 
9742 random_number_generator = cvar.random_number_generator
9743 
Particle * get_particle(ParticleIndex p) const
Get the particle from an index.
Definition: Model.h:489
def get_ints_numpy
Get the model's attribute array for IntKey k as a NumPy array.
Definition: __init__.py:5540
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:9306
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:9562
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:5553
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
Key< 13 > SparseIntKey
The type used to identify sparse int attributes in the Particles.
Definition: base_types.h:90
def main
Call this method to act upon the user-provided command line.
Definition: __init__.py:9344
Key< 15 > SparseParticleIndexKey
The type used to identify sparse particle attributes in the Particles.
Definition: base_types.h:98
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:9515
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:168
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:9550
virtual ::IMP::VersionInfo get_version_info() const override
Get information about the module and version of the object.
Definition: Model.h:643
void remove_attribute(TypeKey attribute_key, ParticleIndex particle)
remove particle attribute with the specified key
Index< ParticleIndexTag > ParticleIndex
Definition: base_types.h:178
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:165
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:5571
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 attribute with the specified 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:9538
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:9615
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:5565
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:9596
def get_derivatives_numpy
Get the model's attribute derivatives array for FloatKey k as a NumPy array.
Definition: __init__.py:5558
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:9522
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:159
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:9331
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
Key< 14 > SparseFloatKey
The type used to identify sparse float attributes in the Particles.
Definition: base_types.h:94
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.
Key< 12 > SparseStringKey
The type used to identify sparse string attributes in the Particles.
Definition: base_types.h:86
std::string get_copyright()
Get the IMP copyright notice.