IMP logo
IMP Reference Guide  develop.97bab1d8fd,2021/09/21
The Integrative Modeling Platform
__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 3.0.7
3 #
4 # Do not make changes to this file unless you know what you are doing--modify
5 # the SWIG interface file instead.
6 
7 # This wrapper is part of IMP,
8 # Copyright 2007-2021 IMP Inventors. All rights reserved.
9 
10 from __future__ import print_function, division, absolute_import
11 
12 
13 
14 
15 from sys import version_info
16 if version_info >= (2, 6, 0):
17  def swig_import_helper():
18  from os.path import dirname
19  import imp
20  fp = None
21  try:
22  fp, pathname, description = imp.find_module('_IMP_kernel', [dirname(__file__)])
23  except ImportError:
24  import _IMP_kernel
25  return _IMP_kernel
26  if fp is not None:
27  try:
28  _mod = imp.load_module('_IMP_kernel', fp, pathname, description)
29  finally:
30  fp.close()
31  return _mod
32  _IMP_kernel = swig_import_helper()
33  del swig_import_helper
34 else:
35  import _IMP_kernel
36 del version_info
37 try:
38  _swig_property = property
39 except NameError:
40  pass # Python < 2.2 doesn't have 'property'.
41 
42 
43 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
44  if (name == "thisown"):
45  return self.this.own(value)
46  if (name == "this"):
47  if type(value).__name__ == 'SwigPyObject':
48  self.__dict__[name] = value
49  return
50  method = class_type.__swig_setmethods__.get(name, None)
51  if method:
52  return method(self, value)
53  if (not static):
54  object.__setattr__(self, name, value)
55  else:
56  raise AttributeError("You cannot add attributes to %s" % self)
57 
58 
59 def _swig_setattr(self, class_type, name, value):
60  return _swig_setattr_nondynamic(self, class_type, name, value, 0)
61 
62 
63 def _swig_getattr_nondynamic(self, class_type, name, static=1):
64  if (name == "thisown"):
65  return self.this.own()
66  method = class_type.__swig_getmethods__.get(name, None)
67  if method:
68  return method(self)
69  if (not static):
70  return object.__getattr__(self, name)
71  else:
72  raise AttributeError(name)
73 
74 def _swig_getattr(self, class_type, name):
75  return _swig_getattr_nondynamic(self, class_type, name, 0)
76 
77 
78 def _swig_repr(self):
79  try:
80  strthis = "proxy of " + self.this.__repr__()
81  except:
82  strthis = ""
83  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
84 
85 try:
86  _object = object
87  _newclass = 1
88 except AttributeError:
89  class _object:
90  pass
91  _newclass = 0
92 
93 
94 
95 def _swig_setattr_nondynamic_method(set):
96  def set_attr(self, name, value):
97  if (name == "thisown"):
98  return self.this.own(value)
99  if hasattr(self, name) or (name == "this"):
100  set(self, name, value)
101  else:
102  raise AttributeError("You cannot add attributes to %s" % self)
103  return set_attr
104 
105 
106 try:
107  import weakref
108  weakref_proxy = weakref.proxy
109 except:
110  weakref_proxy = lambda x: x
111 
112 
113 class IMP_KERNEL_SwigPyIterator(object):
114  """Proxy of C++ swig::IMP_KERNEL_SwigPyIterator class"""
115  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
116 
117  def __init__(self, *args, **kwargs):
118  raise AttributeError("No constructor defined - class is abstract")
119  __repr__ = _swig_repr
120  __swig_destroy__ = _IMP_kernel.delete_IMP_KERNEL_SwigPyIterator
121  __del__ = lambda self: None
122 
123  def value(self):
124  """value(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
125  return _IMP_kernel.IMP_KERNEL_SwigPyIterator_value(self)
126 
127 
128  def incr(self, n=1):
129  """
130  incr(IMP_KERNEL_SwigPyIterator self, size_t n=1) -> IMP_KERNEL_SwigPyIterator
131  incr(IMP_KERNEL_SwigPyIterator self) -> IMP_KERNEL_SwigPyIterator
132  """
133  return _IMP_kernel.IMP_KERNEL_SwigPyIterator_incr(self, n)
134 
135 
136  def decr(self, n=1):
137  """
138  decr(IMP_KERNEL_SwigPyIterator self, size_t n=1) -> IMP_KERNEL_SwigPyIterator
139  decr(IMP_KERNEL_SwigPyIterator self) -> IMP_KERNEL_SwigPyIterator
140  """
141  return _IMP_kernel.IMP_KERNEL_SwigPyIterator_decr(self, n)
142 
143 
144  def distance(self, x):
145  """distance(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> ptrdiff_t"""
146  return _IMP_kernel.IMP_KERNEL_SwigPyIterator_distance(self, x)
147 
148 
149  def equal(self, x):
150  """equal(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
151  return _IMP_kernel.IMP_KERNEL_SwigPyIterator_equal(self, x)
152 
153 
154  def copy(self):
155  """copy(IMP_KERNEL_SwigPyIterator self) -> IMP_KERNEL_SwigPyIterator"""
156  return _IMP_kernel.IMP_KERNEL_SwigPyIterator_copy(self)
157 
158 
159  def next(self):
160  """next(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
161  return _IMP_kernel.IMP_KERNEL_SwigPyIterator_next(self)
162 
163 
164  def __next__(self):
165  """__next__(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
166  return _IMP_kernel.IMP_KERNEL_SwigPyIterator___next__(self)
167 
168 
169  def previous(self):
170  """previous(IMP_KERNEL_SwigPyIterator self) -> PyObject *"""
171  return _IMP_kernel.IMP_KERNEL_SwigPyIterator_previous(self)
172 
173 
174  def advance(self, n):
175  """advance(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
176  return _IMP_kernel.IMP_KERNEL_SwigPyIterator_advance(self, n)
177 
178 
179  def __eq__(self, x):
180  """__eq__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
181  return _IMP_kernel.IMP_KERNEL_SwigPyIterator___eq__(self, x)
182 
183 
184  def __ne__(self, x):
185  """__ne__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> bool"""
186  return _IMP_kernel.IMP_KERNEL_SwigPyIterator___ne__(self, x)
187 
188 
189  def __iadd__(self, n):
190  """__iadd__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
191  return _IMP_kernel.IMP_KERNEL_SwigPyIterator___iadd__(self, n)
192 
193 
194  def __isub__(self, n):
195  """__isub__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
196  return _IMP_kernel.IMP_KERNEL_SwigPyIterator___isub__(self, n)
197 
198 
199  def __add__(self, n):
200  """__add__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator"""
201  return _IMP_kernel.IMP_KERNEL_SwigPyIterator___add__(self, n)
202 
203 
204  def __sub__(self, *args):
205  """
206  __sub__(IMP_KERNEL_SwigPyIterator self, ptrdiff_t n) -> IMP_KERNEL_SwigPyIterator
207  __sub__(IMP_KERNEL_SwigPyIterator self, IMP_KERNEL_SwigPyIterator x) -> ptrdiff_t
208  """
209  return _IMP_kernel.IMP_KERNEL_SwigPyIterator___sub__(self, *args)
210 
211  def __iter__(self):
212  return self
213 IMP_KERNEL_SwigPyIterator_swigregister = _IMP_kernel.IMP_KERNEL_SwigPyIterator_swigregister
214 IMP_KERNEL_SwigPyIterator_swigregister(IMP_KERNEL_SwigPyIterator)
215 
216 
217 _value_types=[]
218 _object_types=[]
219 _raii_types=[]
220 _plural_types=[]
221 
222 
223 _IMP_kernel.IMP_DEBUG_swigconstant(_IMP_kernel)
224 IMP_DEBUG = _IMP_kernel.IMP_DEBUG
225 
226 _IMP_kernel.IMP_RELEASE_swigconstant(_IMP_kernel)
227 IMP_RELEASE = _IMP_kernel.IMP_RELEASE
228 
229 _IMP_kernel.IMP_SILENT_swigconstant(_IMP_kernel)
230 IMP_SILENT = _IMP_kernel.IMP_SILENT
231 
232 _IMP_kernel.IMP_PROGRESS_swigconstant(_IMP_kernel)
233 IMP_PROGRESS = _IMP_kernel.IMP_PROGRESS
234 
235 _IMP_kernel.IMP_TERSE_swigconstant(_IMP_kernel)
236 IMP_TERSE = _IMP_kernel.IMP_TERSE
237 
238 _IMP_kernel.IMP_VERBOSE_swigconstant(_IMP_kernel)
239 IMP_VERBOSE = _IMP_kernel.IMP_VERBOSE
240 
241 _IMP_kernel.IMP_MEMORY_swigconstant(_IMP_kernel)
242 IMP_MEMORY = _IMP_kernel.IMP_MEMORY
243 
244 _IMP_kernel.IMP_NONE_swigconstant(_IMP_kernel)
245 IMP_NONE = _IMP_kernel.IMP_NONE
246 
247 _IMP_kernel.IMP_USAGE_swigconstant(_IMP_kernel)
248 IMP_USAGE = _IMP_kernel.IMP_USAGE
249 
250 _IMP_kernel.IMP_INTERNAL_swigconstant(_IMP_kernel)
251 IMP_INTERNAL = _IMP_kernel.IMP_INTERNAL
252 
253 _IMP_kernel.IMP_KERNEL_HAS_LOG4CXX_swigconstant(_IMP_kernel)
254 IMP_KERNEL_HAS_LOG4CXX = _IMP_kernel.IMP_KERNEL_HAS_LOG4CXX
255 
256 _IMP_kernel.IMP_COMPILER_HAS_AUTO_swigconstant(_IMP_kernel)
257 IMP_COMPILER_HAS_AUTO = _IMP_kernel.IMP_COMPILER_HAS_AUTO
258 
259 _IMP_kernel.IMP_COMPILER_HAS_DEBUG_VECTOR_swigconstant(_IMP_kernel)
260 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_kernel.IMP_COMPILER_HAS_DEBUG_VECTOR
261 
262 _IMP_kernel.IMP_COMPILER_HAS_UNIQUE_PTR_swigconstant(_IMP_kernel)
263 IMP_COMPILER_HAS_UNIQUE_PTR = _IMP_kernel.IMP_COMPILER_HAS_UNIQUE_PTR
264 
265 _IMP_kernel.IMP_KERNEL_HAS_BOOST_RANDOM_swigconstant(_IMP_kernel)
266 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_kernel.IMP_KERNEL_HAS_BOOST_RANDOM
267 
268 _IMP_kernel.IMP_KERNEL_HAS_NUMPY_swigconstant(_IMP_kernel)
269 IMP_KERNEL_HAS_NUMPY = _IMP_kernel.IMP_KERNEL_HAS_NUMPY
270 
271 _IMP_kernel.IMP_KERNEL_HAS_GPERFTOOLS_swigconstant(_IMP_kernel)
272 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_kernel.IMP_KERNEL_HAS_GPERFTOOLS
273 
274 _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER_swigconstant(_IMP_kernel)
275 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
276 
277 _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER_swigconstant(_IMP_kernel)
278 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_kernel.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
279 
280 _IMP_kernel.IMPKERNEL_SHOW_WARNINGS_swigconstant(_IMP_kernel)
281 IMPKERNEL_SHOW_WARNINGS = _IMP_kernel.IMPKERNEL_SHOW_WARNINGS
282 
283 import sys
284 class _DirectorObjects(object):
285  """@internal Simple class to keep references to director objects
286  to prevent premature deletion."""
287  def __init__(self):
288  self._objects = []
289  def register(self, obj):
290  """Take a reference to a director object; will only work for
291  refcounted C++ classes"""
292  if hasattr(obj, 'get_ref_count'):
293  self._objects.append(obj)
294  def cleanup(self):
295  """Only drop our reference and allow cleanup by Python if no other
296  Python references exist (we hold 3 references: one in self._objects,
297  one in x, and one in the argument list for getrefcount) *and* no
298  other C++ references exist (the Python object always holds one)"""
299  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
300  or x.get_ref_count() > 1]
301 # Do in two steps so the references are kept until the end of the
302 # function (deleting references may trigger a fresh call to this method)
303  self._objects = objs
304  def get_object_count(self):
305  """Get number of director objects (useful for testing only)"""
306  return len(self._objects)
307 _director_objects = _DirectorObjects()
308 
309 
310 _IMP_kernel.DEFAULT_CHECK_swigconstant(_IMP_kernel)
311 DEFAULT_CHECK = _IMP_kernel.DEFAULT_CHECK
312 
313 _IMP_kernel.NONE_swigconstant(_IMP_kernel)
314 NONE = _IMP_kernel.NONE
315 
316 _IMP_kernel.USAGE_swigconstant(_IMP_kernel)
317 USAGE = _IMP_kernel.USAGE
318 
319 _IMP_kernel.USAGE_AND_INTERNAL_swigconstant(_IMP_kernel)
320 USAGE_AND_INTERNAL = _IMP_kernel.USAGE_AND_INTERNAL
321 
322 def set_check_level(tf):
323  """set_check_level(IMP::CheckLevel tf)"""
324  return _IMP_kernel.set_check_level(tf)
325 
326 def get_check_level():
327  """get_check_level() -> IMP::CheckLevel"""
328  return _IMP_kernel.get_check_level()
329 
330 from _IMP_kernel import Exception, InternalException, ModelException, EventException
331 from _IMP_kernel import UsageException, IndexException, IOException, ValueException
332 from _IMP_kernel import TypeException
333 
334 class _ostream(object):
335  """Proxy of C++ std::ostream class"""
336  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
337 
338  def __init__(self, *args, **kwargs):
339  raise AttributeError("No constructor defined")
340  __repr__ = _swig_repr
341 
342  def write(self, osa_buf):
343  """write(_ostream self, char const * osa_buf)"""
344  return _IMP_kernel._ostream_write(self, osa_buf)
345 
346 _ostream_swigregister = _IMP_kernel._ostream_swigregister
347 _ostream_swigregister(_ostream)
348 
349 
350 _IMP_kernel.IMP_COMPILER_HAS_OVERRIDE_swigconstant(_IMP_kernel)
351 IMP_COMPILER_HAS_OVERRIDE = _IMP_kernel.IMP_COMPILER_HAS_OVERRIDE
352 
353 _IMP_kernel.IMP_COMPILER_HAS_FINAL_swigconstant(_IMP_kernel)
354 IMP_COMPILER_HAS_FINAL = _IMP_kernel.IMP_COMPILER_HAS_FINAL
355 
356 _IMP_kernel.IMP_HAS_NOEXCEPT_swigconstant(_IMP_kernel)
357 IMP_HAS_NOEXCEPT = _IMP_kernel.IMP_HAS_NOEXCEPT
358 
359 _IMP_kernel.IMP_C_OPEN_BINARY_swigconstant(_IMP_kernel)
360 IMP_C_OPEN_BINARY = _IMP_kernel.IMP_C_OPEN_BINARY
361 
362 _raii_types.append("SetLogState")
363 
364 
365 _raii_types.append("SetNumberOfThreads")
366 
367 
368 _raii_types.append("SetCheckState")
369 
370 
371 _object_types.append("Object")
372 
373 
374 def _object_cast_to_Object(o):
375  """_object_cast_to_Object(Object * o) -> Object"""
376  return _IMP_kernel._object_cast_to_Object(o)
377 
378 _object_types.append("_TestObject")
379 
380 
381 def _object_cast_to__TestObject(o):
382  """_object_cast_to__TestObject(Object * o) -> _TestObject"""
383  return _IMP_kernel._object_cast_to__TestObject(o)
384 
385 VersionInfos=list
386 _plural_types.append("VersionInfos")
387 _value_types.append("VersionInfo")
388 
389 
390 _raii_types.append("CreateLogContext")
391 
392 
393 _raii_types.append("WarningContext")
394 
395 
396 _raii_types.append("SetLogTarget")
397 
398 
399 _TestValues=list
400 _plural_types.append("_TestValues")
401 _value_types.append("_TestValue")
402 
403 
404 Floats=list
405 _plural_types.append("Floats")
406 _value_types.append("Float")
407 
408 
409 Ints=list
410 _plural_types.append("Ints")
411 _value_types.append("Int")
412 
413 
414 Strings=list
415 _plural_types.append("Strings")
416 _value_types.append("String")
417 
418 
419 _Protections=list
420 _plural_types.append("_Protections")
421 _value_types.append("_Protection")
422 
423 class _InputAdaptor(object):
424  """Proxy of C++ IMP::InputAdaptor class"""
425  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
426 
427  def __init__(self, *args, **kwargs):
428  raise AttributeError("No constructor defined")
429  __repr__ = _swig_repr
430  __swig_destroy__ = _IMP_kernel.delete__InputAdaptor
431  __del__ = lambda self: None
432 _InputAdaptor_swigregister = _IMP_kernel._InputAdaptor_swigregister
433 _InputAdaptor_swigregister(_InputAdaptor)
434 
435 class _NonCopyable(object):
436  """Proxy of C++ IMP::NonCopyable class"""
437  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
438 
439  def __init__(self, *args, **kwargs):
440  raise AttributeError("No constructor defined")
441  __repr__ = _swig_repr
442  __swig_destroy__ = _IMP_kernel.delete__NonCopyable
443  __del__ = lambda self: None
444 _NonCopyable_swigregister = _IMP_kernel._NonCopyable_swigregister
445 _NonCopyable_swigregister(_NonCopyable)
446 
447 class _RAII(_NonCopyable):
448  """Proxy of C++ IMP::RAII class"""
449  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
450 
451  def __init__(self, *args, **kwargs):
452  raise AttributeError("No constructor defined")
453  __repr__ = _swig_repr
454  __swig_destroy__ = _IMP_kernel.delete__RAII
455  __del__ = lambda self: None
456 _RAII_swigregister = _IMP_kernel._RAII_swigregister
457 _RAII_swigregister(_RAII)
458 
459 class _Value(object):
460  """Proxy of C++ IMP::Value class"""
461  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
462 
463  def __init__(self, *args, **kwargs):
464  raise AttributeError("No constructor defined")
465  __repr__ = _swig_repr
466  __swig_destroy__ = _IMP_kernel.delete__Value
467  __del__ = lambda self: None
468 _Value_swigregister = _IMP_kernel._Value_swigregister
469 _Value_swigregister(_Value)
470 
471 
472 def get_executable_name():
473  """get_executable_name() -> std::string"""
474  return _IMP_kernel.get_executable_name()
475 
476 def setup_from_argv(*args):
477  """
478  setup_from_argv(IMP::Strings const & argv, std::string description)
479  setup_from_argv(IMP::Strings const & argv, std::string description, std::string positional_description, int num_positional) -> IMP::Strings
480  """
481  return _IMP_kernel.setup_from_argv(*args)
482 
483 def add_string_flag(name, default_value, description):
484  """add_string_flag(std::string name, std::string default_value, std::string description)"""
485  return _IMP_kernel.add_string_flag(name, default_value, description)
486 
487 def get_string_flag(name):
488  """get_string_flag(std::string name) -> std::string"""
489  return _IMP_kernel.get_string_flag(name)
490 
491 def add_int_flag(name, default_value, description):
492  """add_int_flag(std::string name, size_t default_value, std::string description)"""
493  return _IMP_kernel.add_int_flag(name, default_value, description)
494 
495 def get_int_flag(name):
496  """get_int_flag(std::string name) -> size_t"""
497  return _IMP_kernel.get_int_flag(name)
498 
499 def add_bool_flag(name, description):
500  """add_bool_flag(std::string name, std::string description)"""
501  return _IMP_kernel.add_bool_flag(name, description)
502 
503 def get_bool_flag(name):
504  """get_bool_flag(std::string name) -> bool"""
505  return _IMP_kernel.get_bool_flag(name)
506 
507 def add_float_flag(name, default_value, description):
508  """add_float_flag(std::string name, double default_value, std::string description)"""
509  return _IMP_kernel.add_float_flag(name, default_value, description)
510 
511 def get_float_flag(name):
512  """get_float_flag(std::string name) -> double"""
513  return _IMP_kernel.get_float_flag(name)
514 
515 def write_help(*args):
516  """
517  write_help(_ostream out)
518  write_help()
519  """
520  return _IMP_kernel.write_help(*args)
521 
522 def get_is_quick_test():
523  """get_is_quick_test() -> bool"""
524  return _IMP_kernel.get_is_quick_test()
525 
526 _IMP_kernel.DEFAULT_swigconstant(_IMP_kernel)
527 DEFAULT = _IMP_kernel.DEFAULT
528 
529 _IMP_kernel.SILENT_swigconstant(_IMP_kernel)
530 SILENT = _IMP_kernel.SILENT
531 
532 _IMP_kernel.WARNING_swigconstant(_IMP_kernel)
533 WARNING = _IMP_kernel.WARNING
534 
535 _IMP_kernel.PROGRESS_swigconstant(_IMP_kernel)
536 PROGRESS = _IMP_kernel.PROGRESS
537 
538 _IMP_kernel.TERSE_swigconstant(_IMP_kernel)
539 TERSE = _IMP_kernel.TERSE
540 
541 _IMP_kernel.VERBOSE_swigconstant(_IMP_kernel)
542 VERBOSE = _IMP_kernel.VERBOSE
543 
544 _IMP_kernel.MEMORY_swigconstant(_IMP_kernel)
545 MEMORY = _IMP_kernel.MEMORY
546 
547 _IMP_kernel.ALL_LOG_swigconstant(_IMP_kernel)
548 ALL_LOG = _IMP_kernel.ALL_LOG
549 class VersionInfo(_Value):
550  """Proxy of C++ IMP::VersionInfo class"""
551  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
552 
553  def __init__(self, *args):
554  """
555  __init__(IMP::VersionInfo self, std::string module, std::string version) -> VersionInfo
556  __init__(IMP::VersionInfo self) -> VersionInfo
557  """
558  this = _IMP_kernel.new_VersionInfo(*args)
559  try:
560  self.this.append(this)
561  except:
562  self.this = this
563 
564  def get_module(self):
565  """get_module(VersionInfo self) -> std::string"""
566  return _IMP_kernel.VersionInfo_get_module(self)
567 
568 
569  def get_version(self):
570  """get_version(VersionInfo self) -> std::string"""
571  return _IMP_kernel.VersionInfo_get_version(self)
572 
573 
574  def show(self, *args):
575  """
576  show(VersionInfo self, _ostream out)
577  show(VersionInfo self)
578  """
579  return _IMP_kernel.VersionInfo_show(self, *args)
580 
581 
582  def __cmp__(self, o):
583  """__cmp__(VersionInfo self, VersionInfo o) -> int"""
584  return _IMP_kernel.VersionInfo___cmp__(self, o)
585 
586 
587  def __eq__(self, o):
588  """__eq__(VersionInfo self, VersionInfo o) -> bool"""
589  return _IMP_kernel.VersionInfo___eq__(self, o)
590 
591 
592  def __ne__(self, o):
593  """__ne__(VersionInfo self, VersionInfo o) -> bool"""
594  return _IMP_kernel.VersionInfo___ne__(self, o)
595 
596 
597  def __lt__(self, o):
598  """__lt__(VersionInfo self, VersionInfo o) -> bool"""
599  return _IMP_kernel.VersionInfo___lt__(self, o)
600 
601 
602  def __gt__(self, o):
603  """__gt__(VersionInfo self, VersionInfo o) -> bool"""
604  return _IMP_kernel.VersionInfo___gt__(self, o)
605 
606 
607  def __ge__(self, o):
608  """__ge__(VersionInfo self, VersionInfo o) -> bool"""
609  return _IMP_kernel.VersionInfo___ge__(self, o)
610 
611 
612  def __le__(self, o):
613  """__le__(VersionInfo self, VersionInfo o) -> bool"""
614  return _IMP_kernel.VersionInfo___le__(self, o)
615 
616 
617  def __str__(self):
618  """__str__(VersionInfo self) -> std::string"""
619  return _IMP_kernel.VersionInfo___str__(self)
620 
621 
622  def __repr__(self):
623  """__repr__(VersionInfo self) -> std::string"""
624  return _IMP_kernel.VersionInfo___repr__(self)
625 
626  __swig_destroy__ = _IMP_kernel.delete_VersionInfo
627  __del__ = lambda self: None
628 VersionInfo_swigregister = _IMP_kernel.VersionInfo_swigregister
629 VersionInfo_swigregister(VersionInfo)
630 
631 class TextOutput(_InputAdaptor):
632  """Proxy of C++ IMP::TextOutput class"""
633  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
634  __repr__ = _swig_repr
635 
636  def __init__(self, *args):
637  """
638  __init__(IMP::TextOutput self, int arg2) -> TextOutput
639  __init__(IMP::TextOutput self, double arg2) -> TextOutput
640  __init__(IMP::TextOutput self, char const * c, bool append=False) -> TextOutput
641  __init__(IMP::TextOutput self, char const * c) -> TextOutput
642  __init__(IMP::TextOutput self, IMP::TextProxy< std::ostream > p) -> TextOutput
643  __init__(IMP::TextOutput self) -> TextOutput
644  __init__(IMP::TextOutput self, std::string file_name, bool append=False) -> TextOutput
645  __init__(IMP::TextOutput self, std::string file_name) -> TextOutput
646  """
647  this = _IMP_kernel.new_TextOutput(*args)
648  try:
649  self.this.append(this)
650  except:
651  self.this = this
652 
653  def show(self, *args):
654  """
655  show(TextOutput self, _ostream out)
656  show(TextOutput self)
657  """
658  return _IMP_kernel.TextOutput_show(self, *args)
659 
660 
661  def get_name(self):
662  """get_name(TextOutput self) -> std::string"""
663  return _IMP_kernel.TextOutput_get_name(self)
664 
665  __swig_destroy__ = _IMP_kernel.delete_TextOutput
666  __del__ = lambda self: None
667 TextOutput_swigregister = _IMP_kernel.TextOutput_swigregister
668 TextOutput_swigregister(TextOutput)
669 
670 class TextInput(_InputAdaptor):
671  """Proxy of C++ IMP::TextInput class"""
672  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
673  __repr__ = _swig_repr
674 
675  def __init__(self, *args):
676  """
677  __init__(IMP::TextInput self, int arg2) -> TextInput
678  __init__(IMP::TextInput self, double arg2) -> TextInput
679  __init__(IMP::TextInput self, char const * c) -> TextInput
680  __init__(IMP::TextInput self, IMP::TextProxy< std::istream > p) -> TextInput
681  __init__(IMP::TextInput self) -> TextInput
682  __init__(IMP::TextInput self, std::string file_name) -> TextInput
683  """
684  this = _IMP_kernel.new_TextInput(*args)
685  try:
686  self.this.append(this)
687  except:
688  self.this = this
689 
690  def show(self, *args):
691  """
692  show(TextInput self, _ostream out)
693  show(TextInput self)
694  """
695  return _IMP_kernel.TextInput_show(self, *args)
696 
697 
698  def get_name(self):
699  """get_name(TextInput self) -> std::string"""
700  return _IMP_kernel.TextInput_get_name(self)
701 
702  __swig_destroy__ = _IMP_kernel.delete_TextInput
703  __del__ = lambda self: None
704 TextInput_swigregister = _IMP_kernel.TextInput_swigregister
705 TextInput_swigregister(TextInput)
706 
707 class SetLogTarget(_RAII):
708  """Proxy of C++ IMP::SetLogTarget class"""
709  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
710 
711  def __init__(self, *args):
712  """
713  __init__(IMP::SetLogTarget self) -> SetLogTarget
714  __init__(IMP::SetLogTarget self, TextOutput to) -> SetLogTarget
715  """
716  this = _IMP_kernel.new_SetLogTarget(*args)
717  try:
718  self.this.append(this)
719  except:
720  self.this = this
721 
722  def set(self, to):
723  """set(SetLogTarget self, TextOutput to)"""
724  return _IMP_kernel.SetLogTarget_set(self, to)
725 
726 
727  def reset(self):
728  """reset(SetLogTarget self)"""
729  return _IMP_kernel.SetLogTarget_reset(self)
730 
731  __swig_destroy__ = _IMP_kernel.delete_SetLogTarget
732  __del__ = lambda self: None
733 
734  def show(self, *args):
735  """
736  show(SetLogTarget self, _ostream out)
737  show(SetLogTarget self)
738  """
739  return _IMP_kernel.SetLogTarget_show(self, *args)
740 
741 
742  def __enter__(self):
743  return self
744  def __exit__(self, exc_type, exc_val, exc_tb):
745  self.reset()
746  return False
747 
748 
749  def __str__(self):
750  """__str__(SetLogTarget self) -> std::string"""
751  return _IMP_kernel.SetLogTarget___str__(self)
752 
753 
754  def __repr__(self):
755  """__repr__(SetLogTarget self) -> std::string"""
756  return _IMP_kernel.SetLogTarget___repr__(self)
757 
758 SetLogTarget_swigregister = _IMP_kernel.SetLogTarget_swigregister
759 SetLogTarget_swigregister(SetLogTarget)
760 
761 
762 def create_temporary_file(*args):
763  """
764  create_temporary_file(std::string prefix, std::string suffix) -> TextOutput
765  create_temporary_file(std::string prefix) -> TextOutput
766  create_temporary_file() -> TextOutput
767  """
768  return _IMP_kernel.create_temporary_file(*args)
769 
770 def create_temporary_file_name(*args):
771  """
772  create_temporary_file_name(std::string prefix, std::string suffix) -> std::string
773  create_temporary_file_name(std::string prefix) -> std::string
774  create_temporary_file_name() -> std::string
775  """
776  return _IMP_kernel.create_temporary_file_name(*args)
777 
778 def get_relative_path(base, relative):
779  """get_relative_path(std::string base, std::string relative) -> std::string"""
780  return _IMP_kernel.get_relative_path(base, relative)
781 
782 def get_absolute_path(file):
783  """get_absolute_path(std::string file) -> std::string"""
784  return _IMP_kernel.get_absolute_path(file)
785 
786 def push_log_context(functionname, object):
787  """push_log_context(char const * functionname, void const * object)"""
788  return _IMP_kernel.push_log_context(functionname, object)
789 
790 def pop_log_context():
791  """pop_log_context()"""
792  return _IMP_kernel.pop_log_context()
793 
794 def add_to_log(*args):
795  """
796  add_to_log(std::string to_write)
797  add_to_log(IMP::LogLevel level, std::string to_write)
798  """
799  return _IMP_kernel.add_to_log(*args)
800 
801 def set_log_level(l):
802  """set_log_level(IMP::LogLevel l)"""
803  return _IMP_kernel.set_log_level(l)
804 
805 def set_log_timer(tb):
806  """set_log_timer(bool tb)"""
807  return _IMP_kernel.set_log_timer(tb)
808 
809 def reset_log_timer():
810  """reset_log_timer()"""
811  return _IMP_kernel.reset_log_timer()
812 
813 def get_log_level():
814  """get_log_level() -> IMP::LogLevel"""
815  return _IMP_kernel.get_log_level()
816 
817 def set_progress_display(description, steps):
818  """set_progress_display(std::string description, unsigned int steps)"""
819  return _IMP_kernel.set_progress_display(description, steps)
820 
821 def add_to_progress_display(step=1):
822  """
823  add_to_progress_display(unsigned int step=1)
824  add_to_progress_display()
825  """
826  return _IMP_kernel.add_to_progress_display(step)
827 class Object(_NonCopyable):
828  """Proxy of C++ IMP::Object class"""
829  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
830 
831  def __init__(self, name):
832  """__init__(IMP::Object self, std::string name) -> Object"""
833  if self.__class__ == Object:
834  _self = None
835  else:
836  _self = self
837  this = _IMP_kernel.new_Object(_self, name)
838  try:
839  self.this.append(this)
840  except:
841  self.this = this
842 
843  if self.__class__ != Object:
844  _director_objects.register(self)
845 
846 
847 
848  __swig_destroy__ = _IMP_kernel.delete_Object
849  __del__ = lambda self: None
850 
851  def __hash__(self):
852  """__hash__(Object self) -> std::size_t"""
853  return _IMP_kernel.Object___hash__(self)
854 
855 
856  def set_log_level(self, l):
857  """set_log_level(Object self, IMP::LogLevel l)"""
858  return _IMP_kernel.Object_set_log_level(self, l)
859 
860 
861  def set_check_level(self, l):
862  """set_check_level(Object self, IMP::CheckLevel l)"""
863  return _IMP_kernel.Object_set_check_level(self, l)
864 
865 
866  def get_log_level(self):
867  """get_log_level(Object self) -> IMP::LogLevel"""
868  return _IMP_kernel.Object_get_log_level(self)
869 
870 
871  def get_check_level(self):
872  """get_check_level(Object self) -> IMP::CheckLevel"""
873  return _IMP_kernel.Object_get_check_level(self)
874 
875 
876  def get_version_info(self):
877  """get_version_info(Object self) -> VersionInfo"""
878  return _IMP_kernel.Object_get_version_info(self)
879 
880 
881  def get_name(self):
882  """get_name(Object self) -> std::string const &"""
883  return _IMP_kernel.Object_get_name(self)
884 
885 
886  def set_name(self, name):
887  """set_name(Object self, std::string name)"""
888  return _IMP_kernel.Object_set_name(self, name)
889 
890 
891  def get_type_name(self):
892  """get_type_name(Object self) -> std::string"""
893  return _IMP_kernel.Object_get_type_name(self)
894 
895 
896  def set_was_used(self, tf):
897  """set_was_used(Object self, bool tf)"""
898  return _IMP_kernel.Object_set_was_used(self, tf)
899 
900 
901  def show(self, *args):
902  """
903  show(Object self, _ostream out)
904  show(Object self)
905  """
906  return _IMP_kernel.Object_show(self, *args)
907 
908 
909  def get_string(self):
910  """get_string(Object self) -> std::string"""
911  return _IMP_kernel.Object_get_string(self)
912 
913 
914  def _on_destruction(self):
915  """_on_destruction(Object self)"""
916  return _IMP_kernel.Object__on_destruction(self)
917 
918 
919  def get_is_valid(self):
920  """get_is_valid(Object self) -> bool"""
921  return _IMP_kernel.Object_get_is_valid(self)
922 
923 
924  def get_ref_count(self):
925  """get_ref_count(Object self) -> unsigned int"""
926  return _IMP_kernel.Object_get_ref_count(self)
927 
928 
929  def get_number_of_live_objects():
930  """get_number_of_live_objects() -> unsigned int"""
931  return _IMP_kernel.Object_get_number_of_live_objects()
932 
933  get_number_of_live_objects = staticmethod(get_number_of_live_objects)
934 
935  def get_is_shared(self):
936  """get_is_shared(Object self) -> bool"""
937  return _IMP_kernel.Object_get_is_shared(self)
938 
939 
940  def clear_caches(self):
941  """clear_caches(Object self)"""
942  return _IMP_kernel.Object_clear_caches(self)
943 
944 
945  def do_destroy(self):
946  """do_destroy(Object self)"""
947  return _IMP_kernel.Object_do_destroy(self)
948 
949 
950  def __eq__(self, o):
951  """__eq__(Object self, Object o) -> bool"""
952  return _IMP_kernel.Object___eq__(self, o)
953 
954 
955  def __ne__(self, o):
956  """__ne__(Object self, Object o) -> bool"""
957  return _IMP_kernel.Object___ne__(self, o)
958 
959 
960  def __le__(self, o):
961  """__le__(Object self, Object o) -> bool"""
962  return _IMP_kernel.Object___le__(self, o)
963 
964 
965  def __lt__(self, o):
966  """__lt__(Object self, Object o) -> bool"""
967  return _IMP_kernel.Object___lt__(self, o)
968 
969 
970  def __ge__(self, o):
971  """__ge__(Object self, Object o) -> bool"""
972  return _IMP_kernel.Object___ge__(self, o)
973 
974 
975  def __gt__(self, o):
976  """__gt__(Object self, Object o) -> bool"""
977  return _IMP_kernel.Object___gt__(self, o)
978 
979 
980  def __str__(self):
981  """__str__(Object self) -> std::string"""
982  return _IMP_kernel.Object___str__(self)
983 
984 
985  def __repr__(self):
986  """__repr__(Object self) -> std::string"""
987  return _IMP_kernel.Object___repr__(self)
988 
989 
990  @staticmethod
991  def get_from(o):
992  return _object_cast_to_Object(o)
993 
994  def __disown__(self):
995  self.this.disown()
996  _IMP_kernel.disown_Object(self)
997  return weakref_proxy(self)
998 Object_swigregister = _IMP_kernel.Object_swigregister
999 Object_swigregister(Object)
1000 
1001 def Object_get_number_of_live_objects():
1002  """Object_get_number_of_live_objects() -> unsigned int"""
1003  return _IMP_kernel.Object_get_number_of_live_objects()
1004 
1005 class SetLogState(_RAII):
1006  """Proxy of C++ IMP::SetLogState class"""
1007  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1008 
1009  def reset(self):
1010  """reset(SetLogState self)"""
1011  return _IMP_kernel.SetLogState_reset(self)
1012 
1013  __swig_destroy__ = _IMP_kernel.delete_SetLogState
1014  __del__ = lambda self: None
1015 
1016  def show(self, *args):
1017  """
1018  show(SetLogState self, _ostream out)
1019  show(SetLogState self)
1020  """
1021  return _IMP_kernel.SetLogState_show(self, *args)
1022 
1023 
1024  def __init__(self, *args):
1025  """
1026  __init__(IMP::SetLogState self) -> SetLogState
1027  __init__(IMP::SetLogState self, Object o, IMP::LogLevel l) -> SetLogState
1028  __init__(IMP::SetLogState self, IMP::LogLevel l) -> SetLogState
1029  """
1030  this = _IMP_kernel.new_SetLogState(*args)
1031  try:
1032  self.this.append(this)
1033  except:
1034  self.this = this
1035 
1036  def set(self, *args):
1037  """
1038  set(SetLogState self, Object o, IMP::LogLevel l)
1039  set(SetLogState self, IMP::LogLevel l)
1040  """
1041  return _IMP_kernel.SetLogState_set(self, *args)
1042 
1043 
1044  def __enter__(self):
1045  return self
1046  def __exit__(self, exc_type, exc_val, exc_tb):
1047  self.reset()
1048  return False
1049 
1050 
1051  def __str__(self):
1052  """__str__(SetLogState self) -> std::string"""
1053  return _IMP_kernel.SetLogState___str__(self)
1054 
1055 
1056  def __repr__(self):
1057  """__repr__(SetLogState self) -> std::string"""
1058  return _IMP_kernel.SetLogState___repr__(self)
1059 
1060 SetLogState_swigregister = _IMP_kernel.SetLogState_swigregister
1061 SetLogState_swigregister(SetLogState)
1062 
1063 class WarningContext(object):
1064  """Proxy of C++ IMP::WarningContext class"""
1065  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1066  data_ = _swig_property(_IMP_kernel.WarningContext_data__get, _IMP_kernel.WarningContext_data__set)
1067 
1068  def add_warning(self, key, warning):
1069  """add_warning(WarningContext self, std::string key, std::string warning)"""
1070  return _IMP_kernel.WarningContext_add_warning(self, key, warning)
1071 
1072 
1073  def clear_warnings(self):
1074  """clear_warnings(WarningContext self)"""
1075  return _IMP_kernel.WarningContext_clear_warnings(self)
1076 
1077 
1078  def dump_warnings(self):
1079  """dump_warnings(WarningContext self)"""
1080  return _IMP_kernel.WarningContext_dump_warnings(self)
1081 
1082  __swig_destroy__ = _IMP_kernel.delete_WarningContext
1083  __del__ = lambda self: None
1084 
1085  def show(self, *args):
1086  """
1087  show(WarningContext self, _ostream out)
1088  show(WarningContext self)
1089  """
1090  return _IMP_kernel.WarningContext_show(self, *args)
1091 
1092 
1093  def __enter__(self):
1094  return self
1095  def __exit__(self, exc_type, exc_val, exc_tb):
1096  self.reset()
1097  return False
1098 
1099 
1100  def __str__(self):
1101  """__str__(WarningContext self) -> std::string"""
1102  return _IMP_kernel.WarningContext___str__(self)
1103 
1104 
1105  def __repr__(self):
1106  """__repr__(WarningContext self) -> std::string"""
1107  return _IMP_kernel.WarningContext___repr__(self)
1108 
1109 
1110  def __init__(self):
1111  """__init__(IMP::WarningContext self) -> WarningContext"""
1112  this = _IMP_kernel.new_WarningContext()
1113  try:
1114  self.this.append(this)
1115  except:
1116  self.this = this
1117 WarningContext_swigregister = _IMP_kernel.WarningContext_swigregister
1118 WarningContext_swigregister(WarningContext)
1119 
1120 class CreateLogContext(_RAII):
1121  """Proxy of C++ IMP::CreateLogContext class"""
1122  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1123 
1124  def __init__(self, *args):
1125  """
1126  __init__(IMP::CreateLogContext self, std::string fname, Object object=None) -> CreateLogContext
1127  __init__(IMP::CreateLogContext self, std::string fname) -> CreateLogContext
1128  __init__(IMP::CreateLogContext self) -> CreateLogContext
1129  __init__(IMP::CreateLogContext self, char const * fname, Object object=None) -> CreateLogContext
1130  __init__(IMP::CreateLogContext self, char const * fname) -> CreateLogContext
1131  """
1132  this = _IMP_kernel.new_CreateLogContext(*args)
1133  try:
1134  self.this.append(this)
1135  except:
1136  self.this = this
1137 
1138  def set(self, fname, object=None):
1139  """
1140  set(CreateLogContext self, char const * fname, Object object=None)
1141  set(CreateLogContext self, char const * fname)
1142  """
1143  return _IMP_kernel.CreateLogContext_set(self, fname, object)
1144 
1145 
1146  def reset(self):
1147  """reset(CreateLogContext self)"""
1148  return _IMP_kernel.CreateLogContext_reset(self)
1149 
1150  __swig_destroy__ = _IMP_kernel.delete_CreateLogContext
1151  __del__ = lambda self: None
1152 
1153  def show(self, *args):
1154  """
1155  show(CreateLogContext self, _ostream out)
1156  show(CreateLogContext self)
1157  """
1158  return _IMP_kernel.CreateLogContext_show(self, *args)
1159 
1160 
1161  def __enter__(self):
1162  return self
1163  def __exit__(self, exc_type, exc_val, exc_tb):
1164  self.reset()
1165  return False
1166 
1167 
1168  def __str__(self):
1169  """__str__(CreateLogContext self) -> std::string"""
1170  return _IMP_kernel.CreateLogContext___str__(self)
1171 
1172 
1173  def __repr__(self):
1174  """__repr__(CreateLogContext self) -> std::string"""
1175  return _IMP_kernel.CreateLogContext___repr__(self)
1176 
1177 CreateLogContext_swigregister = _IMP_kernel.CreateLogContext_swigregister
1178 CreateLogContext_swigregister(CreateLogContext)
1179 
1180 class SetCheckState(_RAII):
1181  """Proxy of C++ IMP::SetCheckState class"""
1182  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1183 
1184  def reset(self):
1185  """reset(SetCheckState self)"""
1186  return _IMP_kernel.SetCheckState_reset(self)
1187 
1188  __swig_destroy__ = _IMP_kernel.delete_SetCheckState
1189  __del__ = lambda self: None
1190 
1191  def show(self, *args):
1192  """
1193  show(SetCheckState self, _ostream out)
1194  show(SetCheckState self)
1195  """
1196  return _IMP_kernel.SetCheckState_show(self, *args)
1197 
1198 
1199  def __init__(self, *args):
1200  """
1201  __init__(IMP::SetCheckState self) -> SetCheckState
1202  __init__(IMP::SetCheckState self, Object o, IMP::CheckLevel l) -> SetCheckState
1203  __init__(IMP::SetCheckState self, IMP::CheckLevel l) -> SetCheckState
1204  """
1205  this = _IMP_kernel.new_SetCheckState(*args)
1206  try:
1207  self.this.append(this)
1208  except:
1209  self.this = this
1210 
1211  def set(self, *args):
1212  """
1213  set(SetCheckState self, Object o, IMP::CheckLevel l)
1214  set(SetCheckState self, IMP::CheckLevel l)
1215  """
1216  return _IMP_kernel.SetCheckState_set(self, *args)
1217 
1218 
1219  def __enter__(self):
1220  return self
1221  def __exit__(self, exc_type, exc_val, exc_tb):
1222  self.reset()
1223  return False
1224 
1225 
1226  def __str__(self):
1227  """__str__(SetCheckState self) -> std::string"""
1228  return _IMP_kernel.SetCheckState___str__(self)
1229 
1230 
1231  def __repr__(self):
1232  """__repr__(SetCheckState self) -> std::string"""
1233  return _IMP_kernel.SetCheckState___repr__(self)
1234 
1235 SetCheckState_swigregister = _IMP_kernel.SetCheckState_swigregister
1236 SetCheckState_swigregister(SetCheckState)
1237 
1238 
1239 def get_unique_name(templ):
1240  """get_unique_name(std::string templ) -> std::string"""
1241  return _IMP_kernel.get_unique_name(templ)
1242 class _Protection(object):
1243  """Proxy of C++ IMP::internal::_Protection class"""
1244  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1245 
1246  def __init__(self, *args, **kwargs):
1247  raise AttributeError("No constructor defined")
1248 
1249  def show(self, *args):
1250  """
1251  show(_Protection self, _ostream out)
1252  show(_Protection self)
1253  """
1254  return _IMP_kernel._Protection_show(self, *args)
1255 
1256 
1257  def __str__(self):
1258  """__str__(_Protection self) -> std::string"""
1259  return _IMP_kernel._Protection___str__(self)
1260 
1261 
1262  def __repr__(self):
1263  """__repr__(_Protection self) -> std::string"""
1264  return _IMP_kernel._Protection___repr__(self)
1265 
1266  __swig_destroy__ = _IMP_kernel.delete__Protection
1267  __del__ = lambda self: None
1268 _Protection_swigregister = _IMP_kernel._Protection_swigregister
1269 _Protection_swigregister(_Protection)
1270 
1271 
1272 def _test_log():
1273  """_test_log()"""
1274  return _IMP_kernel._test_log()
1275 
1276 def _test_intranges(ips):
1277  """_test_intranges(IMP::IntRanges const & ips) -> int"""
1278  return _IMP_kernel._test_intranges(ips)
1279 
1280 def _test_intrange(*args):
1281  """
1282  _test_intrange(IMP::IntRange const & ips) -> IMP::IntRange
1283  _test_intrange() -> IMP::IntRange
1284  """
1285  return _IMP_kernel._test_intrange(*args)
1286 
1287 def _test_ifile(a):
1288  """_test_ifile(TextInput a) -> std::string"""
1289  return _IMP_kernel._test_ifile(a)
1290 
1291 def _test_ofile(a):
1292  """_test_ofile(TextOutput a) -> std::string"""
1293  return _IMP_kernel._test_ofile(a)
1294 
1295 def _test_ifile_overloaded(*args):
1296  """
1297  _test_ifile_overloaded(TextInput a, int i) -> std::string
1298  _test_ifile_overloaded(TextInput a, std::string st) -> std::string
1299  """
1300  return _IMP_kernel._test_ifile_overloaded(*args)
1301 
1302 def _test_ofile_overloaded(*args):
1303  """
1304  _test_ofile_overloaded(TextOutput a, int i) -> std::string
1305  _test_ofile_overloaded(TextOutput a, std::string st) -> std::string
1306  """
1307  return _IMP_kernel._test_ofile_overloaded(*args)
1308 class _TestValue(object):
1309  """Proxy of C++ IMP::internal::_TestValue class"""
1310  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1311 
1312  def __init__(self, i):
1313  """__init__(IMP::internal::_TestValue self, int i) -> _TestValue"""
1314  this = _IMP_kernel.new__TestValue(i)
1315  try:
1316  self.this.append(this)
1317  except:
1318  self.this = this
1319 
1320  def show(self, *args):
1321  """
1322  show(_TestValue self, _ostream out)
1323  show(_TestValue self)
1324  """
1325  return _IMP_kernel._TestValue_show(self, *args)
1326 
1327 
1328  def __cmp__(self, o):
1329  """__cmp__(_TestValue self, _TestValue o) -> int"""
1330  return _IMP_kernel._TestValue___cmp__(self, o)
1331 
1332 
1333  def __eq__(self, o):
1334  """__eq__(_TestValue self, _TestValue o) -> bool"""
1335  return _IMP_kernel._TestValue___eq__(self, o)
1336 
1337 
1338  def __ne__(self, o):
1339  """__ne__(_TestValue self, _TestValue o) -> bool"""
1340  return _IMP_kernel._TestValue___ne__(self, o)
1341 
1342 
1343  def __lt__(self, o):
1344  """__lt__(_TestValue self, _TestValue o) -> bool"""
1345  return _IMP_kernel._TestValue___lt__(self, o)
1346 
1347 
1348  def __gt__(self, o):
1349  """__gt__(_TestValue self, _TestValue o) -> bool"""
1350  return _IMP_kernel._TestValue___gt__(self, o)
1351 
1352 
1353  def __ge__(self, o):
1354  """__ge__(_TestValue self, _TestValue o) -> bool"""
1355  return _IMP_kernel._TestValue___ge__(self, o)
1356 
1357 
1358  def __le__(self, o):
1359  """__le__(_TestValue self, _TestValue o) -> bool"""
1360  return _IMP_kernel._TestValue___le__(self, o)
1361 
1362 
1363  def get(self):
1364  """get(_TestValue self) -> int"""
1365  return _IMP_kernel._TestValue_get(self)
1366 
1367 
1368  def get_float(self):
1369  """get_float(_TestValue self) -> float const &"""
1370  return _IMP_kernel._TestValue_get_float(self)
1371 
1372 
1373  def get_double(self):
1374  """get_double(_TestValue self) -> double const &"""
1375  return _IMP_kernel._TestValue_get_double(self)
1376 
1377 
1378  def get_Float(self):
1379  """get_Float(_TestValue self) -> IMP::Float const &"""
1380  return _IMP_kernel._TestValue_get_Float(self)
1381 
1382 
1383  def get_int(self):
1384  """get_int(_TestValue self) -> int const &"""
1385  return _IMP_kernel._TestValue_get_int(self)
1386 
1387 
1388  def get_Int(self):
1389  """get_Int(_TestValue self) -> IMP::Int const &"""
1390  return _IMP_kernel._TestValue_get_Int(self)
1391 
1392 
1393  def get_string(self):
1394  """get_string(_TestValue self) -> std::string const &"""
1395  return _IMP_kernel._TestValue_get_string(self)
1396 
1397 
1398  def get_String(self):
1399  """get_String(_TestValue self) -> IMP::String const &"""
1400  return _IMP_kernel._TestValue_get_String(self)
1401 
1402 
1403  def __str__(self):
1404  """__str__(_TestValue self) -> std::string"""
1405  return _IMP_kernel._TestValue___str__(self)
1406 
1407 
1408  def __repr__(self):
1409  """__repr__(_TestValue self) -> std::string"""
1410  return _IMP_kernel._TestValue___repr__(self)
1411 
1412  __swig_destroy__ = _IMP_kernel.delete__TestValue
1413  __del__ = lambda self: None
1414 _TestValue_swigregister = _IMP_kernel._TestValue_swigregister
1415 _TestValue_swigregister(_TestValue)
1416 
1417 
1418 def _pass_plain_pair(p):
1419  """_pass_plain_pair(IMP::FloatPair p) -> IMP::FloatPair"""
1420  return _IMP_kernel._pass_plain_pair(p)
1421 
1422 def _pass_overloaded_strings(*args):
1423  """
1424  _pass_overloaded_strings(IMP::Strings const & a, int arg2) -> IMP::Strings
1425  _pass_overloaded_strings(IMP::Strings const & a) -> IMP::Strings
1426  """
1427  return _IMP_kernel._pass_overloaded_strings(*args)
1428 
1429 def _pass_pair(p):
1430  """_pass_pair(IMP::DerivativePair const & p) -> IMP::DerivativePair"""
1431  return _IMP_kernel._pass_pair(p)
1432 
1433 def _pass_floats(input):
1434  """_pass_floats(IMP::Floats const & input) -> IMP::Floats"""
1435  return _IMP_kernel._pass_floats(input)
1436 
1437 def _pass_ints(input):
1438  """_pass_ints(IMP::Ints input) -> IMP::Ints"""
1439  return _IMP_kernel._pass_ints(input)
1440 
1441 def _pass_ints_list(input):
1442  """_pass_ints_list(IMP::IntsList const & input) -> IMP::IntsList"""
1443  return _IMP_kernel._pass_ints_list(input)
1444 
1445 def _pass_ints_lists(input):
1446  """_pass_ints_lists(IMP::IntsLists const & input) -> IMP::IntsLists"""
1447  return _IMP_kernel._pass_ints_lists(input)
1448 
1449 def _pass_strings(input):
1450  """_pass_strings(IMP::Strings const & input) -> IMP::Strings const &"""
1451  return _IMP_kernel._pass_strings(input)
1452 class _TestObject(Object):
1453  """Proxy of C++ IMP::internal::_TestObject class"""
1454  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1455 
1456  def __init__(self):
1457  """__init__(IMP::internal::_TestObject self) -> _TestObject"""
1458  this = _IMP_kernel.new__TestObject()
1459  try:
1460  self.this.append(this)
1461  except:
1462  self.this = this
1463 
1464  def get_version_info(self):
1465  """get_version_info(_TestObject self) -> VersionInfo"""
1466  return _IMP_kernel._TestObject_get_version_info(self)
1467 
1468 
1469  def __str__(self):
1470  """__str__(_TestObject self) -> std::string"""
1471  return _IMP_kernel._TestObject___str__(self)
1472 
1473 
1474  def __repr__(self):
1475  """__repr__(_TestObject self) -> std::string"""
1476  return _IMP_kernel._TestObject___repr__(self)
1477 
1478 
1479  @staticmethod
1480  def get_from(o):
1481  return _object_cast_to__TestObject(o)
1482 
1483 _TestObject_swigregister = _IMP_kernel._TestObject_swigregister
1484 _TestObject_swigregister(_TestObject)
1485 
1486 
1487 def get_live_object_names():
1488  """get_live_object_names() -> IMP::Strings"""
1489  return _IMP_kernel.get_live_object_names()
1490 
1491 def get_live_objects():
1492  """get_live_objects() -> IMP::Objects"""
1493  return _IMP_kernel.get_live_objects()
1494 
1495 def set_show_leaked_objects(tf):
1496  """set_show_leaked_objects(bool tf)"""
1497  return _IMP_kernel.set_show_leaked_objects(tf)
1498 
1499 def set_deprecation_warnings(tf):
1500  """set_deprecation_warnings(bool tf)"""
1501  return _IMP_kernel.set_deprecation_warnings(tf)
1502 
1504  """set_deprecation_exceptions(bool tf)"""
1505  return _IMP_kernel.set_deprecation_exceptions(tf)
1506 
1508  """get_deprecation_exceptions() -> bool"""
1509  return _IMP_kernel.get_deprecation_exceptions()
1510 
1511 def handle_use_deprecated(message):
1512  """handle_use_deprecated(std::string message)"""
1513  return _IMP_kernel.handle_use_deprecated(message)
1514 
1515 def get_number_of_threads():
1516  """get_number_of_threads() -> unsigned int"""
1517  return _IMP_kernel.get_number_of_threads()
1518 
1519 def set_number_of_threads(n):
1520  """set_number_of_threads(unsigned int n)"""
1521  return _IMP_kernel.set_number_of_threads(n)
1522 class SetNumberOfThreads(_RAII):
1523  """Proxy of C++ IMP::SetNumberOfThreads class"""
1524  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1525 
1526  def __init__(self, *args):
1527  """
1528  __init__(IMP::SetNumberOfThreads self) -> SetNumberOfThreads
1529  __init__(IMP::SetNumberOfThreads self, unsigned int n) -> SetNumberOfThreads
1530  """
1531  this = _IMP_kernel.new_SetNumberOfThreads(*args)
1532  try:
1533  self.this.append(this)
1534  except:
1535  self.this = this
1536 
1537  def set(self, n):
1538  """set(SetNumberOfThreads self, unsigned int n)"""
1539  return _IMP_kernel.SetNumberOfThreads_set(self, n)
1540 
1541 
1542  def reset(self):
1543  """reset(SetNumberOfThreads self)"""
1544  return _IMP_kernel.SetNumberOfThreads_reset(self)
1545 
1546  __swig_destroy__ = _IMP_kernel.delete_SetNumberOfThreads
1547  __del__ = lambda self: None
1548 
1549  def show(self, *args):
1550  """
1551  show(SetNumberOfThreads self, _ostream out)
1552  show(SetNumberOfThreads self)
1553  """
1554  return _IMP_kernel.SetNumberOfThreads_show(self, *args)
1555 
1556 
1557  def __enter__(self):
1558  return self
1559  def __exit__(self, exc_type, exc_val, exc_tb):
1560  self.reset()
1561  return False
1562 
1563 
1564  def __str__(self):
1565  """__str__(SetNumberOfThreads self) -> std::string"""
1566  return _IMP_kernel.SetNumberOfThreads___str__(self)
1567 
1568 
1569  def __repr__(self):
1570  """__repr__(SetNumberOfThreads self) -> std::string"""
1571  return _IMP_kernel.SetNumberOfThreads___repr__(self)
1572 
1573 SetNumberOfThreads_swigregister = _IMP_kernel.SetNumberOfThreads_swigregister
1574 SetNumberOfThreads_swigregister(SetNumberOfThreads)
1575 
1576 
1577 import os
1578 i_m_p="IMP_MODULE_PATH"
1579 if i_m_p in os.environ.keys():
1580  __path__.insert(0, os.environ[i_m_p])
1581 
1582 def _forward_add_attribute(self, name, value, opt=None):
1583  if opt is not None:
1584  self.get_particle().add_attribute(name, value, opt)
1585  else:
1586  self.get_particle().add_attribute(name, value)
1587 def _forward_get_value(self, name):
1588  self.get_particle().get_value(name)
1589 def _forward_set_value(self, name, value):
1590  self.get_particle().set_value(name, value)
1591 
1592 
1593 build="release"
1594 
1595 
1596 _object_types.append("Constraint")
1597 
1598 
1599 def _object_cast_to_Constraint(o):
1600  """_object_cast_to_Constraint(Object o) -> Constraint"""
1601  return _IMP_kernel._object_cast_to_Constraint(o)
1602 
1603 _object_types.append("Undecorator")
1604 
1605 
1606 def _object_cast_to_Undecorator(o):
1607  """_object_cast_to_Undecorator(Object o) -> Undecorator"""
1608  return _IMP_kernel._object_cast_to_Undecorator(o)
1609 
1610 _object_types.append("Container")
1611 
1612 
1613 def _object_cast_to_Container(o):
1614  """_object_cast_to_Container(Object o) -> Container"""
1615  return _IMP_kernel._object_cast_to_Container(o)
1616 
1617 _object_types.append("Optimizer")
1618 
1619 
1620 def _object_cast_to_Optimizer(o):
1621  """_object_cast_to_Optimizer(Object o) -> Optimizer"""
1622  return _IMP_kernel._object_cast_to_Optimizer(o)
1623 
1624 _object_types.append("AttributeOptimizer")
1625 
1626 
1627 def _object_cast_to_AttributeOptimizer(o):
1628  """_object_cast_to_AttributeOptimizer(Object o) -> AttributeOptimizer"""
1629  return _IMP_kernel._object_cast_to_AttributeOptimizer(o)
1630 
1631 _object_types.append("OptimizerState")
1632 
1633 
1634 def _object_cast_to_OptimizerState(o):
1635  """_object_cast_to_OptimizerState(Object o) -> OptimizerState"""
1636  return _IMP_kernel._object_cast_to_OptimizerState(o)
1637 
1638 _object_types.append("PairContainer")
1639 
1640 
1641 def _object_cast_to_PairContainer(o):
1642  """_object_cast_to_PairContainer(Object o) -> PairContainer"""
1643  return _IMP_kernel._object_cast_to_PairContainer(o)
1644 
1645 _object_types.append("PairModifier")
1646 
1647 
1648 def _object_cast_to_PairModifier(o):
1649  """_object_cast_to_PairModifier(Object o) -> PairModifier"""
1650  return _IMP_kernel._object_cast_to_PairModifier(o)
1651 
1652 _object_types.append("PairScore")
1653 
1654 
1655 def _object_cast_to_PairScore(o):
1656  """_object_cast_to_PairScore(Object o) -> PairScore"""
1657  return _IMP_kernel._object_cast_to_PairScore(o)
1658 
1659 _object_types.append("QuadContainer")
1660 
1661 
1662 def _object_cast_to_QuadContainer(o):
1663  """_object_cast_to_QuadContainer(Object o) -> QuadContainer"""
1664  return _IMP_kernel._object_cast_to_QuadContainer(o)
1665 
1666 _object_types.append("QuadModifier")
1667 
1668 
1669 def _object_cast_to_QuadModifier(o):
1670  """_object_cast_to_QuadModifier(Object o) -> QuadModifier"""
1671  return _IMP_kernel._object_cast_to_QuadModifier(o)
1672 
1673 _object_types.append("QuadScore")
1674 
1675 
1676 def _object_cast_to_QuadScore(o):
1677  """_object_cast_to_QuadScore(Object o) -> QuadScore"""
1678  return _IMP_kernel._object_cast_to_QuadScore(o)
1679 
1680 _object_types.append("Refiner")
1681 
1682 
1683 def _object_cast_to_Refiner(o):
1684  """_object_cast_to_Refiner(Object o) -> Refiner"""
1685  return _IMP_kernel._object_cast_to_Refiner(o)
1686 
1687 _object_types.append("Restraint")
1688 
1689 
1690 def _object_cast_to_Restraint(o):
1691  """_object_cast_to_Restraint(Object o) -> Restraint"""
1692  return _IMP_kernel._object_cast_to_Restraint(o)
1693 
1694 _object_types.append("Sampler")
1695 
1696 
1697 def _object_cast_to_Sampler(o):
1698  """_object_cast_to_Sampler(Object o) -> Sampler"""
1699  return _IMP_kernel._object_cast_to_Sampler(o)
1700 
1701 _object_types.append("ScoreState")
1702 
1703 
1704 def _object_cast_to_ScoreState(o):
1705  """_object_cast_to_ScoreState(Object o) -> ScoreState"""
1706  return _IMP_kernel._object_cast_to_ScoreState(o)
1707 
1708 _object_types.append("SingletonContainer")
1709 
1710 
1711 def _object_cast_to_SingletonContainer(o):
1712  """_object_cast_to_SingletonContainer(Object o) -> SingletonContainer"""
1713  return _IMP_kernel._object_cast_to_SingletonContainer(o)
1714 
1715 _object_types.append("SingletonModifier")
1716 
1717 
1718 def _object_cast_to_SingletonModifier(o):
1719  """_object_cast_to_SingletonModifier(Object o) -> SingletonModifier"""
1720  return _IMP_kernel._object_cast_to_SingletonModifier(o)
1721 
1722 _object_types.append("SingletonScore")
1723 
1724 
1725 def _object_cast_to_SingletonScore(o):
1726  """_object_cast_to_SingletonScore(Object o) -> SingletonScore"""
1727  return _IMP_kernel._object_cast_to_SingletonScore(o)
1728 
1729 _object_types.append("TripletContainer")
1730 
1731 
1732 def _object_cast_to_TripletContainer(o):
1733  """_object_cast_to_TripletContainer(Object o) -> TripletContainer"""
1734  return _IMP_kernel._object_cast_to_TripletContainer(o)
1735 
1736 _object_types.append("TripletModifier")
1737 
1738 
1739 def _object_cast_to_TripletModifier(o):
1740  """_object_cast_to_TripletModifier(Object o) -> TripletModifier"""
1741  return _IMP_kernel._object_cast_to_TripletModifier(o)
1742 
1743 _object_types.append("TripletScore")
1744 
1745 
1746 def _object_cast_to_TripletScore(o):
1747  """_object_cast_to_TripletScore(Object o) -> TripletScore"""
1748  return _IMP_kernel._object_cast_to_TripletScore(o)
1749 
1750 _object_types.append("UnaryFunction")
1751 
1752 
1753 def _object_cast_to_UnaryFunction(o):
1754  """_object_cast_to_UnaryFunction(Object o) -> UnaryFunction"""
1755  return _IMP_kernel._object_cast_to_UnaryFunction(o)
1756 
1757 _object_types.append("RestraintInfo")
1758 
1759 
1760 def _object_cast_to_RestraintInfo(o):
1761  """_object_cast_to_RestraintInfo(Object o) -> RestraintInfo"""
1762  return _IMP_kernel._object_cast_to_RestraintInfo(o)
1763 
1764 _object_types.append("ConfigurationSet")
1765 
1766 
1767 def _object_cast_to_ConfigurationSet(o):
1768  """_object_cast_to_ConfigurationSet(Object o) -> ConfigurationSet"""
1769  return _IMP_kernel._object_cast_to_ConfigurationSet(o)
1770 
1771 _object_types.append("Configuration")
1772 
1773 
1774 def _object_cast_to_Configuration(o):
1775  """_object_cast_to_Configuration(Object o) -> Configuration"""
1776  return _IMP_kernel._object_cast_to_Configuration(o)
1777 
1778 _object_types.append("Model")
1779 
1780 
1781 def _object_cast_to_Model(o):
1782  """_object_cast_to_Model(Object o) -> Model"""
1783  return _IMP_kernel._object_cast_to_Model(o)
1784 
1785 _object_types.append("Particle")
1786 
1787 
1788 def _object_cast_to_Particle(o):
1789  """_object_cast_to_Particle(Object o) -> Particle"""
1790  return _IMP_kernel._object_cast_to_Particle(o)
1791 
1792 _object_types.append("RestraintSet")
1793 
1794 
1795 def _object_cast_to_RestraintSet(o):
1796  """_object_cast_to_RestraintSet(Object o) -> RestraintSet"""
1797  return _IMP_kernel._object_cast_to_RestraintSet(o)
1798 
1799 ParticlePairsTemp=list
1800 _plural_types.append("ParticlePairsTemp")
1801 _value_types.append("ParticlePair")
1802 
1803 
1804 ParticleTripletsTemp=list
1805 _plural_types.append("ParticleTripletsTemp")
1806 _value_types.append("ParticleTriplet")
1807 
1808 
1809 ParticleQuadsTemp=list
1810 _plural_types.append("ParticleQuadsTemp")
1811 _value_types.append("ParticleQuad")
1812 
1813 
1814 ParticleIndexPairs=list
1815 _plural_types.append("ParticleIndexPairs")
1816 _value_types.append("ParticleIndexPair")
1817 
1818 
1819 ParticleIndexTriplets=list
1820 _plural_types.append("ParticleIndexTriplets")
1821 _value_types.append("ParticleIndexTriplet")
1822 
1823 
1824 ParticleIndexQuads=list
1825 _plural_types.append("ParticleIndexQuads")
1826 _value_types.append("ParticleIndexQuad")
1827 
1828 
1829 _object_types.append("SingletonPredicate")
1830 
1831 
1832 def _object_cast_to_SingletonPredicate(o):
1833  """_object_cast_to_SingletonPredicate(Object o) -> SingletonPredicate"""
1834  return _IMP_kernel._object_cast_to_SingletonPredicate(o)
1835 
1836 _object_types.append("PairPredicate")
1837 
1838 
1839 def _object_cast_to_PairPredicate(o):
1840  """_object_cast_to_PairPredicate(Object o) -> PairPredicate"""
1841  return _IMP_kernel._object_cast_to_PairPredicate(o)
1842 
1843 _object_types.append("TripletPredicate")
1844 
1845 
1846 def _object_cast_to_TripletPredicate(o):
1847  """_object_cast_to_TripletPredicate(Object o) -> TripletPredicate"""
1848  return _IMP_kernel._object_cast_to_TripletPredicate(o)
1849 
1850 _object_types.append("QuadPredicate")
1851 
1852 
1853 def _object_cast_to_QuadPredicate(o):
1854  """_object_cast_to_QuadPredicate(Object o) -> QuadPredicate"""
1855  return _IMP_kernel._object_cast_to_QuadPredicate(o)
1856 
1857 _object_types.append("SaveToConfigurationSetOptimizerState")
1858 
1859 
1860 def _object_cast_to_SaveToConfigurationSetOptimizerState(o):
1861  """_object_cast_to_SaveToConfigurationSetOptimizerState(Object o) -> SaveToConfigurationSetOptimizerState"""
1862  return _IMP_kernel._object_cast_to_SaveToConfigurationSetOptimizerState(o)
1863 
1864 EvaluationStates=list
1865 _plural_types.append("EvaluationStates")
1866 _value_types.append("EvaluationState")
1867 
1868 
1869 ScoreAccumulators=list
1870 _plural_types.append("ScoreAccumulators")
1871 _value_types.append("ScoreAccumulator")
1872 
1873 
1874 ParticleIndexes=list
1875 _plural_types.append("ParticleIndexes")
1876 _value_types.append("ParticleIndex")
1877 
1878 
1879 FloatIndexes=list
1880 _plural_types.append("FloatIndexes")
1881 _value_types.append("FloatIndex")
1882 
1883 
1884 FloatKeys=list
1885 _plural_types.append("FloatKeys")
1886 _value_types.append("FloatKey")
1887 
1888 
1889 FloatsKeys=list
1890 _plural_types.append("FloatsKeys")
1891 _value_types.append("FloatsKey")
1892 
1893 
1894 IntKeys=list
1895 _plural_types.append("IntKeys")
1896 _value_types.append("IntKey")
1897 
1898 
1899 IntsKeys=list
1900 _plural_types.append("IntsKeys")
1901 _value_types.append("IntsKey")
1902 
1903 
1904 StringKeys=list
1905 _plural_types.append("StringKeys")
1906 _value_types.append("StringKey")
1907 
1908 
1909 ParticleIndexKeys=list
1910 _plural_types.append("ParticleIndexKeys")
1911 _value_types.append("ParticleIndexKey")
1912 
1913 
1914 ParticleIndexesKeys=list
1915 _plural_types.append("ParticleIndexesKeys")
1916 _value_types.append("ParticleIndexesKey")
1917 
1918 
1919 ObjectKeys=list
1920 _plural_types.append("ObjectKeys")
1921 _value_types.append("ObjectKey")
1922 
1923 
1924 ModelKeys=list
1925 _plural_types.append("ModelKeys")
1926 _value_types.append("ModelKey")
1927 
1928 
1929 TriggerKeys=list
1930 _plural_types.append("TriggerKeys")
1931 _value_types.append("TriggerKey")
1932 
1933 
1934 _raii_types.append("ScopedSetFloatAttribute")
1935 
1936 
1937 _object_types.append("ScoringFunction")
1938 
1939 
1940 def _object_cast_to_ScoringFunction(o):
1941  """_object_cast_to_ScoringFunction(Object o) -> ScoringFunction"""
1942  return _IMP_kernel._object_cast_to_ScoringFunction(o)
1943 
1944 _object_types.append("ModelObject")
1945 
1946 
1947 def _object_cast_to_ModelObject(o):
1948  """_object_cast_to_ModelObject(Object o) -> ModelObject"""
1949  return _IMP_kernel._object_cast_to_ModelObject(o)
1950 
1951 def _TrivialDecorators(l=[]):
1952  return [_TrivialDecorator(x) for x in l]
1953 _plural_types.append("_TrivialDecorators")
1954 
1955 
1956 _value_types.append("_TrivialDecorator")
1957 
1958 
1959 def _TrivialDerivedDecorators(l=[]):
1960  return [_TrivialDerivedDecorator(x) for x in l]
1961 _plural_types.append("_TrivialDerivedDecorators")
1962 
1963 
1964 _value_types.append("_TrivialDerivedDecorator")
1965 
1966 
1967 def _TrivialTraitsDecorators(l=[]):
1968  return [_TrivialTraitsDecorator(x) for x in l]
1969 _plural_types.append("_TrivialTraitsDecorators")
1970 
1971 
1972 _value_types.append("_TrivialTraitsDecorator")
1973 
1974 
1975 _object_types.append("_ConstRestraint")
1976 
1977 
1978 def _object_cast_to__ConstRestraint(o):
1979  """_object_cast_to__ConstRestraint(Object o) -> _ConstRestraint"""
1980  return _IMP_kernel._object_cast_to__ConstRestraint(o)
1981 
1982 _object_types.append("_ConstOptimizer")
1983 
1984 
1985 def _object_cast_to__ConstOptimizer(o):
1986  """_object_cast_to__ConstOptimizer(Object o) -> _ConstOptimizer"""
1987  return _IMP_kernel._object_cast_to__ConstOptimizer(o)
1988 class DependencyGraph(Object):
1989  """Proxy of C++ IMP::internal::BoostDigraph<(IMP::DependencyGraph,p.IMP::ModelObject,IMP::ShowDependencyGraphVertex)> class"""
1990  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1991  __repr__ = _swig_repr
1992 
1993  def __init__(self):
1994  """__init__(IMP::internal::BoostDigraph<(IMP::DependencyGraph,p.IMP::ModelObject,IMP::ShowDependencyGraphVertex)> self) -> DependencyGraph"""
1995  this = _IMP_kernel.new_DependencyGraph()
1996  try:
1997  self.this.append(this)
1998  except:
1999  self.this = this
2000 
2001  def get_graph(self):
2002  """get_graph(DependencyGraph self) -> IMP::DependencyGraph const &"""
2003  return _IMP_kernel.DependencyGraph_get_graph(self)
2004 
2005 
2006  def get_vertices(self):
2007  """get_vertices(DependencyGraph self) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptors"""
2008  return _IMP_kernel.DependencyGraph_get_vertices(self)
2009 
2010 
2011  def get_vertex_name(self, i):
2012  """get_vertex_name(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor i) -> ModelObject"""
2013  return _IMP_kernel.DependencyGraph_get_vertex_name(self, i)
2014 
2015 
2016  def get_in_neighbors(self, v):
2017  """get_in_neighbors(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor v) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptors"""
2018  return _IMP_kernel.DependencyGraph_get_in_neighbors(self, v)
2019 
2020 
2021  def get_out_neighbors(self, v):
2022  """get_out_neighbors(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor v) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptors"""
2023  return _IMP_kernel.DependencyGraph_get_out_neighbors(self, v)
2024 
2025 
2026  def show_graphviz(self, *args):
2027  """
2028  show_graphviz(DependencyGraph self, _ostream out)
2029  show_graphviz(DependencyGraph self)
2030  """
2031  return _IMP_kernel.DependencyGraph_show_graphviz(self, *args)
2032 
2033 
2034  def get_graphviz_string(self):
2035  """get_graphviz_string(DependencyGraph self) -> std::string"""
2036  return _IMP_kernel.DependencyGraph_get_graphviz_string(self)
2037 
2038 
2039  def add_edge(self, v0, v1):
2040  """add_edge(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor v0, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor v1)"""
2041  return _IMP_kernel.DependencyGraph_add_edge(self, v0, v1)
2042 
2043 
2044  def add_vertex(self, l):
2045  """add_vertex(DependencyGraph self, ModelObject l) -> IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor"""
2046  return _IMP_kernel.DependencyGraph_add_vertex(self, l)
2047 
2048 
2049  def remove_vertex(self, l):
2050  """remove_vertex(DependencyGraph self, IMP::internal::BoostDigraph< IMP::DependencyGraph,IMP::ModelObject *,IMP::ShowDependencyGraphVertex >::VertexDescriptor l)"""
2051  return _IMP_kernel.DependencyGraph_remove_vertex(self, l)
2052 
2053  __swig_destroy__ = _IMP_kernel.delete_DependencyGraph
2054  __del__ = lambda self: None
2055 DependencyGraph_swigregister = _IMP_kernel.DependencyGraph_swigregister
2056 DependencyGraph_swigregister(DependencyGraph)
2057 
2058 
2059 _value_types.append("DependencyGraph")
2060 
2061 class FloatKey(_Value):
2062  """Proxy of C++ IMP::Key<(0)> class"""
2063  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2064 
2065  def __init__(self, *args):
2066  """
2067  __init__(IMP::Key<(0)> self) -> FloatKey
2068  __init__(IMP::Key<(0)> self, std::string const & c, bool is_implicit_add_permitted=True) -> FloatKey
2069  __init__(IMP::Key<(0)> self, std::string const & c) -> FloatKey
2070  __init__(IMP::Key<(0)> self, unsigned int i) -> FloatKey
2071  """
2072  this = _IMP_kernel.new_FloatKey(*args)
2073  try:
2074  self.this.append(this)
2075  except:
2076  self.this = this
2077 
2078  def add_key(sc):
2079  """add_key(std::string sc) -> unsigned int"""
2080  return _IMP_kernel.FloatKey_add_key(sc)
2081 
2082  add_key = staticmethod(add_key)
2083 
2084  def get_key_exists(sc):
2085  """get_key_exists(std::string sc) -> bool"""
2086  return _IMP_kernel.FloatKey_get_key_exists(sc)
2087 
2088  get_key_exists = staticmethod(get_key_exists)
2089 
2090  def get_string(self):
2091  """get_string(FloatKey self) -> std::string const"""
2092  return _IMP_kernel.FloatKey_get_string(self)
2093 
2094 
2095  def __cmp__(self, o):
2096  """__cmp__(FloatKey self, FloatKey o) -> int"""
2097  return _IMP_kernel.FloatKey___cmp__(self, o)
2098 
2099 
2100  def __eq__(self, o):
2101  """__eq__(FloatKey self, FloatKey o) -> bool"""
2102  return _IMP_kernel.FloatKey___eq__(self, o)
2103 
2104 
2105  def __ne__(self, o):
2106  """__ne__(FloatKey self, FloatKey o) -> bool"""
2107  return _IMP_kernel.FloatKey___ne__(self, o)
2108 
2109 
2110  def __lt__(self, o):
2111  """__lt__(FloatKey self, FloatKey o) -> bool"""
2112  return _IMP_kernel.FloatKey___lt__(self, o)
2113 
2114 
2115  def __gt__(self, o):
2116  """__gt__(FloatKey self, FloatKey o) -> bool"""
2117  return _IMP_kernel.FloatKey___gt__(self, o)
2118 
2119 
2120  def __ge__(self, o):
2121  """__ge__(FloatKey self, FloatKey o) -> bool"""
2122  return _IMP_kernel.FloatKey___ge__(self, o)
2123 
2124 
2125  def __le__(self, o):
2126  """__le__(FloatKey self, FloatKey o) -> bool"""
2127  return _IMP_kernel.FloatKey___le__(self, o)
2128 
2129 
2130  def __hash__(self):
2131  """__hash__(FloatKey self) -> std::size_t"""
2132  return _IMP_kernel.FloatKey___hash__(self)
2133 
2134 
2135  def show(self, *args):
2136  """
2137  show(FloatKey self, _ostream out)
2138  show(FloatKey self)
2139  """
2140  return _IMP_kernel.FloatKey_show(self, *args)
2141 
2142 
2143  def add_alias(old_key, new_name):
2144  """add_alias(FloatKey old_key, std::string new_name) -> FloatKey"""
2145  return _IMP_kernel.FloatKey_add_alias(old_key, new_name)
2146 
2147  add_alias = staticmethod(add_alias)
2148 
2149  def get_number_of_keys():
2150  """get_number_of_keys() -> unsigned int"""
2151  return _IMP_kernel.FloatKey_get_number_of_keys()
2152 
2153  get_number_of_keys = staticmethod(get_number_of_keys)
2154 
2155  def get_index(self):
2156  """get_index(FloatKey self) -> unsigned int"""
2157  return _IMP_kernel.FloatKey_get_index(self)
2158 
2159 
2160  def show_all(out):
2161  """show_all(_ostream out)"""
2162  return _IMP_kernel.FloatKey_show_all(out)
2163 
2164  show_all = staticmethod(show_all)
2165 
2166  def get_all_strings():
2167  """get_all_strings() -> IMP::Vector< std::string >"""
2168  return _IMP_kernel.FloatKey_get_all_strings()
2169 
2170  get_all_strings = staticmethod(get_all_strings)
2171 
2172  def get_number_unique():
2173  """get_number_unique() -> unsigned int"""
2174  return _IMP_kernel.FloatKey_get_number_unique()
2175 
2176  get_number_unique = staticmethod(get_number_unique)
2177 
2178  def __str__(self):
2179  """__str__(FloatKey self) -> std::string"""
2180  return _IMP_kernel.FloatKey___str__(self)
2181 
2182 
2183  def __repr__(self):
2184  """__repr__(FloatKey self) -> std::string"""
2185  return _IMP_kernel.FloatKey___repr__(self)
2186 
2187  __swig_destroy__ = _IMP_kernel.delete_FloatKey
2188  __del__ = lambda self: None
2189 FloatKey_swigregister = _IMP_kernel.FloatKey_swigregister
2190 FloatKey_swigregister(FloatKey)
2191 
2192 def FloatKey_add_key(sc):
2193  """FloatKey_add_key(std::string sc) -> unsigned int"""
2194  return _IMP_kernel.FloatKey_add_key(sc)
2195 
2196 def FloatKey_get_key_exists(sc):
2197  """FloatKey_get_key_exists(std::string sc) -> bool"""
2198  return _IMP_kernel.FloatKey_get_key_exists(sc)
2199 
2200 def FloatKey_add_alias(old_key, new_name):
2201  """FloatKey_add_alias(FloatKey old_key, std::string new_name) -> FloatKey"""
2202  return _IMP_kernel.FloatKey_add_alias(old_key, new_name)
2203 
2204 def FloatKey_get_number_of_keys():
2205  """FloatKey_get_number_of_keys() -> unsigned int"""
2206  return _IMP_kernel.FloatKey_get_number_of_keys()
2207 
2208 def FloatKey_show_all(out):
2209  """FloatKey_show_all(_ostream out)"""
2210  return _IMP_kernel.FloatKey_show_all(out)
2211 
2212 def FloatKey_get_all_strings():
2213  """FloatKey_get_all_strings() -> IMP::Vector< std::string >"""
2214  return _IMP_kernel.FloatKey_get_all_strings()
2215 
2216 def FloatKey_get_number_unique():
2217  """FloatKey_get_number_unique() -> unsigned int"""
2218  return _IMP_kernel.FloatKey_get_number_unique()
2219 
2220 class IntKey(_Value):
2221  """Proxy of C++ IMP::Key<(1)> class"""
2222  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2223 
2224  def __init__(self, *args):
2225  """
2226  __init__(IMP::Key<(1)> self) -> IntKey
2227  __init__(IMP::Key<(1)> self, std::string const & c, bool is_implicit_add_permitted=True) -> IntKey
2228  __init__(IMP::Key<(1)> self, std::string const & c) -> IntKey
2229  __init__(IMP::Key<(1)> self, unsigned int i) -> IntKey
2230  """
2231  this = _IMP_kernel.new_IntKey(*args)
2232  try:
2233  self.this.append(this)
2234  except:
2235  self.this = this
2236 
2237  def add_key(sc):
2238  """add_key(std::string sc) -> unsigned int"""
2239  return _IMP_kernel.IntKey_add_key(sc)
2240 
2241  add_key = staticmethod(add_key)
2242 
2243  def get_key_exists(sc):
2244  """get_key_exists(std::string sc) -> bool"""
2245  return _IMP_kernel.IntKey_get_key_exists(sc)
2246 
2247  get_key_exists = staticmethod(get_key_exists)
2248 
2249  def get_string(self):
2250  """get_string(IntKey self) -> std::string const"""
2251  return _IMP_kernel.IntKey_get_string(self)
2252 
2253 
2254  def __cmp__(self, o):
2255  """__cmp__(IntKey self, IntKey o) -> int"""
2256  return _IMP_kernel.IntKey___cmp__(self, o)
2257 
2258 
2259  def __eq__(self, o):
2260  """__eq__(IntKey self, IntKey o) -> bool"""
2261  return _IMP_kernel.IntKey___eq__(self, o)
2262 
2263 
2264  def __ne__(self, o):
2265  """__ne__(IntKey self, IntKey o) -> bool"""
2266  return _IMP_kernel.IntKey___ne__(self, o)
2267 
2268 
2269  def __lt__(self, o):
2270  """__lt__(IntKey self, IntKey o) -> bool"""
2271  return _IMP_kernel.IntKey___lt__(self, o)
2272 
2273 
2274  def __gt__(self, o):
2275  """__gt__(IntKey self, IntKey o) -> bool"""
2276  return _IMP_kernel.IntKey___gt__(self, o)
2277 
2278 
2279  def __ge__(self, o):
2280  """__ge__(IntKey self, IntKey o) -> bool"""
2281  return _IMP_kernel.IntKey___ge__(self, o)
2282 
2283 
2284  def __le__(self, o):
2285  """__le__(IntKey self, IntKey o) -> bool"""
2286  return _IMP_kernel.IntKey___le__(self, o)
2287 
2288 
2289  def __hash__(self):
2290  """__hash__(IntKey self) -> std::size_t"""
2291  return _IMP_kernel.IntKey___hash__(self)
2292 
2293 
2294  def show(self, *args):
2295  """
2296  show(IntKey self, _ostream out)
2297  show(IntKey self)
2298  """
2299  return _IMP_kernel.IntKey_show(self, *args)
2300 
2301 
2302  def add_alias(old_key, new_name):
2303  """add_alias(IntKey old_key, std::string new_name) -> IntKey"""
2304  return _IMP_kernel.IntKey_add_alias(old_key, new_name)
2305 
2306  add_alias = staticmethod(add_alias)
2307 
2308  def get_number_of_keys():
2309  """get_number_of_keys() -> unsigned int"""
2310  return _IMP_kernel.IntKey_get_number_of_keys()
2311 
2312  get_number_of_keys = staticmethod(get_number_of_keys)
2313 
2314  def get_index(self):
2315  """get_index(IntKey self) -> unsigned int"""
2316  return _IMP_kernel.IntKey_get_index(self)
2317 
2318 
2319  def show_all(out):
2320  """show_all(_ostream out)"""
2321  return _IMP_kernel.IntKey_show_all(out)
2322 
2323  show_all = staticmethod(show_all)
2324 
2325  def get_all_strings():
2326  """get_all_strings() -> IMP::Vector< std::string >"""
2327  return _IMP_kernel.IntKey_get_all_strings()
2328 
2329  get_all_strings = staticmethod(get_all_strings)
2330 
2331  def get_number_unique():
2332  """get_number_unique() -> unsigned int"""
2333  return _IMP_kernel.IntKey_get_number_unique()
2334 
2335  get_number_unique = staticmethod(get_number_unique)
2336 
2337  def __str__(self):
2338  """__str__(IntKey self) -> std::string"""
2339  return _IMP_kernel.IntKey___str__(self)
2340 
2341 
2342  def __repr__(self):
2343  """__repr__(IntKey self) -> std::string"""
2344  return _IMP_kernel.IntKey___repr__(self)
2345 
2346  __swig_destroy__ = _IMP_kernel.delete_IntKey
2347  __del__ = lambda self: None
2348 IntKey_swigregister = _IMP_kernel.IntKey_swigregister
2349 IntKey_swigregister(IntKey)
2350 
2351 def IntKey_add_key(sc):
2352  """IntKey_add_key(std::string sc) -> unsigned int"""
2353  return _IMP_kernel.IntKey_add_key(sc)
2354 
2355 def IntKey_get_key_exists(sc):
2356  """IntKey_get_key_exists(std::string sc) -> bool"""
2357  return _IMP_kernel.IntKey_get_key_exists(sc)
2358 
2359 def IntKey_add_alias(old_key, new_name):
2360  """IntKey_add_alias(IntKey old_key, std::string new_name) -> IntKey"""
2361  return _IMP_kernel.IntKey_add_alias(old_key, new_name)
2362 
2363 def IntKey_get_number_of_keys():
2364  """IntKey_get_number_of_keys() -> unsigned int"""
2365  return _IMP_kernel.IntKey_get_number_of_keys()
2366 
2367 def IntKey_show_all(out):
2368  """IntKey_show_all(_ostream out)"""
2369  return _IMP_kernel.IntKey_show_all(out)
2370 
2371 def IntKey_get_all_strings():
2372  """IntKey_get_all_strings() -> IMP::Vector< std::string >"""
2373  return _IMP_kernel.IntKey_get_all_strings()
2374 
2375 def IntKey_get_number_unique():
2376  """IntKey_get_number_unique() -> unsigned int"""
2377  return _IMP_kernel.IntKey_get_number_unique()
2378 
2379 class StringKey(_Value):
2380  """Proxy of C++ IMP::Key<(2)> class"""
2381  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2382 
2383  def __init__(self, *args):
2384  """
2385  __init__(IMP::Key<(2)> self) -> StringKey
2386  __init__(IMP::Key<(2)> self, std::string const & c, bool is_implicit_add_permitted=True) -> StringKey
2387  __init__(IMP::Key<(2)> self, std::string const & c) -> StringKey
2388  __init__(IMP::Key<(2)> self, unsigned int i) -> StringKey
2389  """
2390  this = _IMP_kernel.new_StringKey(*args)
2391  try:
2392  self.this.append(this)
2393  except:
2394  self.this = this
2395 
2396  def add_key(sc):
2397  """add_key(std::string sc) -> unsigned int"""
2398  return _IMP_kernel.StringKey_add_key(sc)
2399 
2400  add_key = staticmethod(add_key)
2401 
2402  def get_key_exists(sc):
2403  """get_key_exists(std::string sc) -> bool"""
2404  return _IMP_kernel.StringKey_get_key_exists(sc)
2405 
2406  get_key_exists = staticmethod(get_key_exists)
2407 
2408  def get_string(self):
2409  """get_string(StringKey self) -> std::string const"""
2410  return _IMP_kernel.StringKey_get_string(self)
2411 
2412 
2413  def __cmp__(self, o):
2414  """__cmp__(StringKey self, StringKey o) -> int"""
2415  return _IMP_kernel.StringKey___cmp__(self, o)
2416 
2417 
2418  def __eq__(self, o):
2419  """__eq__(StringKey self, StringKey o) -> bool"""
2420  return _IMP_kernel.StringKey___eq__(self, o)
2421 
2422 
2423  def __ne__(self, o):
2424  """__ne__(StringKey self, StringKey o) -> bool"""
2425  return _IMP_kernel.StringKey___ne__(self, o)
2426 
2427 
2428  def __lt__(self, o):
2429  """__lt__(StringKey self, StringKey o) -> bool"""
2430  return _IMP_kernel.StringKey___lt__(self, o)
2431 
2432 
2433  def __gt__(self, o):
2434  """__gt__(StringKey self, StringKey o) -> bool"""
2435  return _IMP_kernel.StringKey___gt__(self, o)
2436 
2437 
2438  def __ge__(self, o):
2439  """__ge__(StringKey self, StringKey o) -> bool"""
2440  return _IMP_kernel.StringKey___ge__(self, o)
2441 
2442 
2443  def __le__(self, o):
2444  """__le__(StringKey self, StringKey o) -> bool"""
2445  return _IMP_kernel.StringKey___le__(self, o)
2446 
2447 
2448  def __hash__(self):
2449  """__hash__(StringKey self) -> std::size_t"""
2450  return _IMP_kernel.StringKey___hash__(self)
2451 
2452 
2453  def show(self, *args):
2454  """
2455  show(StringKey self, _ostream out)
2456  show(StringKey self)
2457  """
2458  return _IMP_kernel.StringKey_show(self, *args)
2459 
2460 
2461  def add_alias(old_key, new_name):
2462  """add_alias(StringKey old_key, std::string new_name) -> StringKey"""
2463  return _IMP_kernel.StringKey_add_alias(old_key, new_name)
2464 
2465  add_alias = staticmethod(add_alias)
2466 
2467  def get_number_of_keys():
2468  """get_number_of_keys() -> unsigned int"""
2469  return _IMP_kernel.StringKey_get_number_of_keys()
2470 
2471  get_number_of_keys = staticmethod(get_number_of_keys)
2472 
2473  def get_index(self):
2474  """get_index(StringKey self) -> unsigned int"""
2475  return _IMP_kernel.StringKey_get_index(self)
2476 
2477 
2478  def show_all(out):
2479  """show_all(_ostream out)"""
2480  return _IMP_kernel.StringKey_show_all(out)
2481 
2482  show_all = staticmethod(show_all)
2483 
2484  def get_all_strings():
2485  """get_all_strings() -> IMP::Vector< std::string >"""
2486  return _IMP_kernel.StringKey_get_all_strings()
2487 
2488  get_all_strings = staticmethod(get_all_strings)
2489 
2490  def get_number_unique():
2491  """get_number_unique() -> unsigned int"""
2492  return _IMP_kernel.StringKey_get_number_unique()
2493 
2494  get_number_unique = staticmethod(get_number_unique)
2495 
2496  def __str__(self):
2497  """__str__(StringKey self) -> std::string"""
2498  return _IMP_kernel.StringKey___str__(self)
2499 
2500 
2501  def __repr__(self):
2502  """__repr__(StringKey self) -> std::string"""
2503  return _IMP_kernel.StringKey___repr__(self)
2504 
2505  __swig_destroy__ = _IMP_kernel.delete_StringKey
2506  __del__ = lambda self: None
2507 StringKey_swigregister = _IMP_kernel.StringKey_swigregister
2508 StringKey_swigregister(StringKey)
2509 
2510 def StringKey_add_key(sc):
2511  """StringKey_add_key(std::string sc) -> unsigned int"""
2512  return _IMP_kernel.StringKey_add_key(sc)
2513 
2514 def StringKey_get_key_exists(sc):
2515  """StringKey_get_key_exists(std::string sc) -> bool"""
2516  return _IMP_kernel.StringKey_get_key_exists(sc)
2517 
2518 def StringKey_add_alias(old_key, new_name):
2519  """StringKey_add_alias(StringKey old_key, std::string new_name) -> StringKey"""
2520  return _IMP_kernel.StringKey_add_alias(old_key, new_name)
2521 
2522 def StringKey_get_number_of_keys():
2523  """StringKey_get_number_of_keys() -> unsigned int"""
2524  return _IMP_kernel.StringKey_get_number_of_keys()
2525 
2526 def StringKey_show_all(out):
2527  """StringKey_show_all(_ostream out)"""
2528  return _IMP_kernel.StringKey_show_all(out)
2529 
2530 def StringKey_get_all_strings():
2531  """StringKey_get_all_strings() -> IMP::Vector< std::string >"""
2532  return _IMP_kernel.StringKey_get_all_strings()
2533 
2534 def StringKey_get_number_unique():
2535  """StringKey_get_number_unique() -> unsigned int"""
2536  return _IMP_kernel.StringKey_get_number_unique()
2537 
2538 class ParticleIndexKey(_Value):
2539  """Proxy of C++ IMP::Key<(3)> class"""
2540  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2541 
2542  def __init__(self, *args):
2543  """
2544  __init__(IMP::Key<(3)> self) -> ParticleIndexKey
2545  __init__(IMP::Key<(3)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleIndexKey
2546  __init__(IMP::Key<(3)> self, std::string const & c) -> ParticleIndexKey
2547  __init__(IMP::Key<(3)> self, unsigned int i) -> ParticleIndexKey
2548  """
2549  this = _IMP_kernel.new_ParticleIndexKey(*args)
2550  try:
2551  self.this.append(this)
2552  except:
2553  self.this = this
2554 
2555  def add_key(sc):
2556  """add_key(std::string sc) -> unsigned int"""
2557  return _IMP_kernel.ParticleIndexKey_add_key(sc)
2558 
2559  add_key = staticmethod(add_key)
2560 
2561  def get_key_exists(sc):
2562  """get_key_exists(std::string sc) -> bool"""
2563  return _IMP_kernel.ParticleIndexKey_get_key_exists(sc)
2564 
2565  get_key_exists = staticmethod(get_key_exists)
2566 
2567  def get_string(self):
2568  """get_string(ParticleIndexKey self) -> std::string const"""
2569  return _IMP_kernel.ParticleIndexKey_get_string(self)
2570 
2571 
2572  def __cmp__(self, o):
2573  """__cmp__(ParticleIndexKey self, ParticleIndexKey o) -> int"""
2574  return _IMP_kernel.ParticleIndexKey___cmp__(self, o)
2575 
2576 
2577  def __eq__(self, o):
2578  """__eq__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2579  return _IMP_kernel.ParticleIndexKey___eq__(self, o)
2580 
2581 
2582  def __ne__(self, o):
2583  """__ne__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2584  return _IMP_kernel.ParticleIndexKey___ne__(self, o)
2585 
2586 
2587  def __lt__(self, o):
2588  """__lt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2589  return _IMP_kernel.ParticleIndexKey___lt__(self, o)
2590 
2591 
2592  def __gt__(self, o):
2593  """__gt__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2594  return _IMP_kernel.ParticleIndexKey___gt__(self, o)
2595 
2596 
2597  def __ge__(self, o):
2598  """__ge__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2599  return _IMP_kernel.ParticleIndexKey___ge__(self, o)
2600 
2601 
2602  def __le__(self, o):
2603  """__le__(ParticleIndexKey self, ParticleIndexKey o) -> bool"""
2604  return _IMP_kernel.ParticleIndexKey___le__(self, o)
2605 
2606 
2607  def __hash__(self):
2608  """__hash__(ParticleIndexKey self) -> std::size_t"""
2609  return _IMP_kernel.ParticleIndexKey___hash__(self)
2610 
2611 
2612  def show(self, *args):
2613  """
2614  show(ParticleIndexKey self, _ostream out)
2615  show(ParticleIndexKey self)
2616  """
2617  return _IMP_kernel.ParticleIndexKey_show(self, *args)
2618 
2619 
2620  def add_alias(old_key, new_name):
2621  """add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
2622  return _IMP_kernel.ParticleIndexKey_add_alias(old_key, new_name)
2623 
2624  add_alias = staticmethod(add_alias)
2625 
2626  def get_number_of_keys():
2627  """get_number_of_keys() -> unsigned int"""
2628  return _IMP_kernel.ParticleIndexKey_get_number_of_keys()
2629 
2630  get_number_of_keys = staticmethod(get_number_of_keys)
2631 
2632  def get_index(self):
2633  """get_index(ParticleIndexKey self) -> unsigned int"""
2634  return _IMP_kernel.ParticleIndexKey_get_index(self)
2635 
2636 
2637  def show_all(out):
2638  """show_all(_ostream out)"""
2639  return _IMP_kernel.ParticleIndexKey_show_all(out)
2640 
2641  show_all = staticmethod(show_all)
2642 
2643  def get_all_strings():
2644  """get_all_strings() -> IMP::Vector< std::string >"""
2645  return _IMP_kernel.ParticleIndexKey_get_all_strings()
2646 
2647  get_all_strings = staticmethod(get_all_strings)
2648 
2649  def get_number_unique():
2650  """get_number_unique() -> unsigned int"""
2651  return _IMP_kernel.ParticleIndexKey_get_number_unique()
2652 
2653  get_number_unique = staticmethod(get_number_unique)
2654 
2655  def __str__(self):
2656  """__str__(ParticleIndexKey self) -> std::string"""
2657  return _IMP_kernel.ParticleIndexKey___str__(self)
2658 
2659 
2660  def __repr__(self):
2661  """__repr__(ParticleIndexKey self) -> std::string"""
2662  return _IMP_kernel.ParticleIndexKey___repr__(self)
2663 
2664  __swig_destroy__ = _IMP_kernel.delete_ParticleIndexKey
2665  __del__ = lambda self: None
2666 ParticleIndexKey_swigregister = _IMP_kernel.ParticleIndexKey_swigregister
2667 ParticleIndexKey_swigregister(ParticleIndexKey)
2668 
2669 def ParticleIndexKey_add_key(sc):
2670  """ParticleIndexKey_add_key(std::string sc) -> unsigned int"""
2671  return _IMP_kernel.ParticleIndexKey_add_key(sc)
2672 
2673 def ParticleIndexKey_get_key_exists(sc):
2674  """ParticleIndexKey_get_key_exists(std::string sc) -> bool"""
2675  return _IMP_kernel.ParticleIndexKey_get_key_exists(sc)
2676 
2677 def ParticleIndexKey_add_alias(old_key, new_name):
2678  """ParticleIndexKey_add_alias(ParticleIndexKey old_key, std::string new_name) -> ParticleIndexKey"""
2679  return _IMP_kernel.ParticleIndexKey_add_alias(old_key, new_name)
2680 
2681 def ParticleIndexKey_get_number_of_keys():
2682  """ParticleIndexKey_get_number_of_keys() -> unsigned int"""
2683  return _IMP_kernel.ParticleIndexKey_get_number_of_keys()
2684 
2685 def ParticleIndexKey_show_all(out):
2686  """ParticleIndexKey_show_all(_ostream out)"""
2687  return _IMP_kernel.ParticleIndexKey_show_all(out)
2688 
2689 def ParticleIndexKey_get_all_strings():
2690  """ParticleIndexKey_get_all_strings() -> IMP::Vector< std::string >"""
2691  return _IMP_kernel.ParticleIndexKey_get_all_strings()
2692 
2693 def ParticleIndexKey_get_number_unique():
2694  """ParticleIndexKey_get_number_unique() -> unsigned int"""
2695  return _IMP_kernel.ParticleIndexKey_get_number_unique()
2696 
2697 class ObjectKey(_Value):
2698  """Proxy of C++ IMP::Key<(4)> class"""
2699  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2700 
2701  def __init__(self, *args):
2702  """
2703  __init__(IMP::Key<(4)> self) -> ObjectKey
2704  __init__(IMP::Key<(4)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ObjectKey
2705  __init__(IMP::Key<(4)> self, std::string const & c) -> ObjectKey
2706  __init__(IMP::Key<(4)> self, unsigned int i) -> ObjectKey
2707  """
2708  this = _IMP_kernel.new_ObjectKey(*args)
2709  try:
2710  self.this.append(this)
2711  except:
2712  self.this = this
2713 
2714  def add_key(sc):
2715  """add_key(std::string sc) -> unsigned int"""
2716  return _IMP_kernel.ObjectKey_add_key(sc)
2717 
2718  add_key = staticmethod(add_key)
2719 
2720  def get_key_exists(sc):
2721  """get_key_exists(std::string sc) -> bool"""
2722  return _IMP_kernel.ObjectKey_get_key_exists(sc)
2723 
2724  get_key_exists = staticmethod(get_key_exists)
2725 
2726  def get_string(self):
2727  """get_string(ObjectKey self) -> std::string const"""
2728  return _IMP_kernel.ObjectKey_get_string(self)
2729 
2730 
2731  def __cmp__(self, o):
2732  """__cmp__(ObjectKey self, ObjectKey o) -> int"""
2733  return _IMP_kernel.ObjectKey___cmp__(self, o)
2734 
2735 
2736  def __eq__(self, o):
2737  """__eq__(ObjectKey self, ObjectKey o) -> bool"""
2738  return _IMP_kernel.ObjectKey___eq__(self, o)
2739 
2740 
2741  def __ne__(self, o):
2742  """__ne__(ObjectKey self, ObjectKey o) -> bool"""
2743  return _IMP_kernel.ObjectKey___ne__(self, o)
2744 
2745 
2746  def __lt__(self, o):
2747  """__lt__(ObjectKey self, ObjectKey o) -> bool"""
2748  return _IMP_kernel.ObjectKey___lt__(self, o)
2749 
2750 
2751  def __gt__(self, o):
2752  """__gt__(ObjectKey self, ObjectKey o) -> bool"""
2753  return _IMP_kernel.ObjectKey___gt__(self, o)
2754 
2755 
2756  def __ge__(self, o):
2757  """__ge__(ObjectKey self, ObjectKey o) -> bool"""
2758  return _IMP_kernel.ObjectKey___ge__(self, o)
2759 
2760 
2761  def __le__(self, o):
2762  """__le__(ObjectKey self, ObjectKey o) -> bool"""
2763  return _IMP_kernel.ObjectKey___le__(self, o)
2764 
2765 
2766  def __hash__(self):
2767  """__hash__(ObjectKey self) -> std::size_t"""
2768  return _IMP_kernel.ObjectKey___hash__(self)
2769 
2770 
2771  def show(self, *args):
2772  """
2773  show(ObjectKey self, _ostream out)
2774  show(ObjectKey self)
2775  """
2776  return _IMP_kernel.ObjectKey_show(self, *args)
2777 
2778 
2779  def add_alias(old_key, new_name):
2780  """add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
2781  return _IMP_kernel.ObjectKey_add_alias(old_key, new_name)
2782 
2783  add_alias = staticmethod(add_alias)
2784 
2785  def get_number_of_keys():
2786  """get_number_of_keys() -> unsigned int"""
2787  return _IMP_kernel.ObjectKey_get_number_of_keys()
2788 
2789  get_number_of_keys = staticmethod(get_number_of_keys)
2790 
2791  def get_index(self):
2792  """get_index(ObjectKey self) -> unsigned int"""
2793  return _IMP_kernel.ObjectKey_get_index(self)
2794 
2795 
2796  def show_all(out):
2797  """show_all(_ostream out)"""
2798  return _IMP_kernel.ObjectKey_show_all(out)
2799 
2800  show_all = staticmethod(show_all)
2801 
2802  def get_all_strings():
2803  """get_all_strings() -> IMP::Vector< std::string >"""
2804  return _IMP_kernel.ObjectKey_get_all_strings()
2805 
2806  get_all_strings = staticmethod(get_all_strings)
2807 
2808  def get_number_unique():
2809  """get_number_unique() -> unsigned int"""
2810  return _IMP_kernel.ObjectKey_get_number_unique()
2811 
2812  get_number_unique = staticmethod(get_number_unique)
2813 
2814  def __str__(self):
2815  """__str__(ObjectKey self) -> std::string"""
2816  return _IMP_kernel.ObjectKey___str__(self)
2817 
2818 
2819  def __repr__(self):
2820  """__repr__(ObjectKey self) -> std::string"""
2821  return _IMP_kernel.ObjectKey___repr__(self)
2822 
2823  __swig_destroy__ = _IMP_kernel.delete_ObjectKey
2824  __del__ = lambda self: None
2825 ObjectKey_swigregister = _IMP_kernel.ObjectKey_swigregister
2826 ObjectKey_swigregister(ObjectKey)
2827 
2828 def ObjectKey_add_key(sc):
2829  """ObjectKey_add_key(std::string sc) -> unsigned int"""
2830  return _IMP_kernel.ObjectKey_add_key(sc)
2831 
2832 def ObjectKey_get_key_exists(sc):
2833  """ObjectKey_get_key_exists(std::string sc) -> bool"""
2834  return _IMP_kernel.ObjectKey_get_key_exists(sc)
2835 
2836 def ObjectKey_add_alias(old_key, new_name):
2837  """ObjectKey_add_alias(ObjectKey old_key, std::string new_name) -> ObjectKey"""
2838  return _IMP_kernel.ObjectKey_add_alias(old_key, new_name)
2839 
2840 def ObjectKey_get_number_of_keys():
2841  """ObjectKey_get_number_of_keys() -> unsigned int"""
2842  return _IMP_kernel.ObjectKey_get_number_of_keys()
2843 
2844 def ObjectKey_show_all(out):
2845  """ObjectKey_show_all(_ostream out)"""
2846  return _IMP_kernel.ObjectKey_show_all(out)
2847 
2848 def ObjectKey_get_all_strings():
2849  """ObjectKey_get_all_strings() -> IMP::Vector< std::string >"""
2850  return _IMP_kernel.ObjectKey_get_all_strings()
2851 
2852 def ObjectKey_get_number_unique():
2853  """ObjectKey_get_number_unique() -> unsigned int"""
2854  return _IMP_kernel.ObjectKey_get_number_unique()
2855 
2856 class IntsKey(_Value):
2857  """Proxy of C++ IMP::Key<(5)> class"""
2858  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2859 
2860  def __init__(self, *args):
2861  """
2862  __init__(IMP::Key<(5)> self) -> IntsKey
2863  __init__(IMP::Key<(5)> self, std::string const & c, bool is_implicit_add_permitted=True) -> IntsKey
2864  __init__(IMP::Key<(5)> self, std::string const & c) -> IntsKey
2865  __init__(IMP::Key<(5)> self, unsigned int i) -> IntsKey
2866  """
2867  this = _IMP_kernel.new_IntsKey(*args)
2868  try:
2869  self.this.append(this)
2870  except:
2871  self.this = this
2872 
2873  def add_key(sc):
2874  """add_key(std::string sc) -> unsigned int"""
2875  return _IMP_kernel.IntsKey_add_key(sc)
2876 
2877  add_key = staticmethod(add_key)
2878 
2879  def get_key_exists(sc):
2880  """get_key_exists(std::string sc) -> bool"""
2881  return _IMP_kernel.IntsKey_get_key_exists(sc)
2882 
2883  get_key_exists = staticmethod(get_key_exists)
2884 
2885  def get_string(self):
2886  """get_string(IntsKey self) -> std::string const"""
2887  return _IMP_kernel.IntsKey_get_string(self)
2888 
2889 
2890  def __cmp__(self, o):
2891  """__cmp__(IntsKey self, IntsKey o) -> int"""
2892  return _IMP_kernel.IntsKey___cmp__(self, o)
2893 
2894 
2895  def __eq__(self, o):
2896  """__eq__(IntsKey self, IntsKey o) -> bool"""
2897  return _IMP_kernel.IntsKey___eq__(self, o)
2898 
2899 
2900  def __ne__(self, o):
2901  """__ne__(IntsKey self, IntsKey o) -> bool"""
2902  return _IMP_kernel.IntsKey___ne__(self, o)
2903 
2904 
2905  def __lt__(self, o):
2906  """__lt__(IntsKey self, IntsKey o) -> bool"""
2907  return _IMP_kernel.IntsKey___lt__(self, o)
2908 
2909 
2910  def __gt__(self, o):
2911  """__gt__(IntsKey self, IntsKey o) -> bool"""
2912  return _IMP_kernel.IntsKey___gt__(self, o)
2913 
2914 
2915  def __ge__(self, o):
2916  """__ge__(IntsKey self, IntsKey o) -> bool"""
2917  return _IMP_kernel.IntsKey___ge__(self, o)
2918 
2919 
2920  def __le__(self, o):
2921  """__le__(IntsKey self, IntsKey o) -> bool"""
2922  return _IMP_kernel.IntsKey___le__(self, o)
2923 
2924 
2925  def __hash__(self):
2926  """__hash__(IntsKey self) -> std::size_t"""
2927  return _IMP_kernel.IntsKey___hash__(self)
2928 
2929 
2930  def show(self, *args):
2931  """
2932  show(IntsKey self, _ostream out)
2933  show(IntsKey self)
2934  """
2935  return _IMP_kernel.IntsKey_show(self, *args)
2936 
2937 
2938  def add_alias(old_key, new_name):
2939  """add_alias(IntsKey old_key, std::string new_name) -> IntsKey"""
2940  return _IMP_kernel.IntsKey_add_alias(old_key, new_name)
2941 
2942  add_alias = staticmethod(add_alias)
2943 
2944  def get_number_of_keys():
2945  """get_number_of_keys() -> unsigned int"""
2946  return _IMP_kernel.IntsKey_get_number_of_keys()
2947 
2948  get_number_of_keys = staticmethod(get_number_of_keys)
2949 
2950  def get_index(self):
2951  """get_index(IntsKey self) -> unsigned int"""
2952  return _IMP_kernel.IntsKey_get_index(self)
2953 
2954 
2955  def show_all(out):
2956  """show_all(_ostream out)"""
2957  return _IMP_kernel.IntsKey_show_all(out)
2958 
2959  show_all = staticmethod(show_all)
2960 
2961  def get_all_strings():
2962  """get_all_strings() -> IMP::Vector< std::string >"""
2963  return _IMP_kernel.IntsKey_get_all_strings()
2964 
2965  get_all_strings = staticmethod(get_all_strings)
2966 
2967  def get_number_unique():
2968  """get_number_unique() -> unsigned int"""
2969  return _IMP_kernel.IntsKey_get_number_unique()
2970 
2971  get_number_unique = staticmethod(get_number_unique)
2972 
2973  def __str__(self):
2974  """__str__(IntsKey self) -> std::string"""
2975  return _IMP_kernel.IntsKey___str__(self)
2976 
2977 
2978  def __repr__(self):
2979  """__repr__(IntsKey self) -> std::string"""
2980  return _IMP_kernel.IntsKey___repr__(self)
2981 
2982  __swig_destroy__ = _IMP_kernel.delete_IntsKey
2983  __del__ = lambda self: None
2984 IntsKey_swigregister = _IMP_kernel.IntsKey_swigregister
2985 IntsKey_swigregister(IntsKey)
2986 
2987 def IntsKey_add_key(sc):
2988  """IntsKey_add_key(std::string sc) -> unsigned int"""
2989  return _IMP_kernel.IntsKey_add_key(sc)
2990 
2991 def IntsKey_get_key_exists(sc):
2992  """IntsKey_get_key_exists(std::string sc) -> bool"""
2993  return _IMP_kernel.IntsKey_get_key_exists(sc)
2994 
2995 def IntsKey_add_alias(old_key, new_name):
2996  """IntsKey_add_alias(IntsKey old_key, std::string new_name) -> IntsKey"""
2997  return _IMP_kernel.IntsKey_add_alias(old_key, new_name)
2998 
2999 def IntsKey_get_number_of_keys():
3000  """IntsKey_get_number_of_keys() -> unsigned int"""
3001  return _IMP_kernel.IntsKey_get_number_of_keys()
3002 
3003 def IntsKey_show_all(out):
3004  """IntsKey_show_all(_ostream out)"""
3005  return _IMP_kernel.IntsKey_show_all(out)
3006 
3007 def IntsKey_get_all_strings():
3008  """IntsKey_get_all_strings() -> IMP::Vector< std::string >"""
3009  return _IMP_kernel.IntsKey_get_all_strings()
3010 
3011 def IntsKey_get_number_unique():
3012  """IntsKey_get_number_unique() -> unsigned int"""
3013  return _IMP_kernel.IntsKey_get_number_unique()
3014 
3015 class ParticleIndexesKey(_Value):
3016  """Proxy of C++ IMP::Key<(6)> class"""
3017  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3018 
3019  def __init__(self, *args):
3020  """
3021  __init__(IMP::Key<(6)> self) -> ParticleIndexesKey
3022  __init__(IMP::Key<(6)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleIndexesKey
3023  __init__(IMP::Key<(6)> self, std::string const & c) -> ParticleIndexesKey
3024  __init__(IMP::Key<(6)> self, unsigned int i) -> ParticleIndexesKey
3025  """
3026  this = _IMP_kernel.new_ParticleIndexesKey(*args)
3027  try:
3028  self.this.append(this)
3029  except:
3030  self.this = this
3031 
3032  def add_key(sc):
3033  """add_key(std::string sc) -> unsigned int"""
3034  return _IMP_kernel.ParticleIndexesKey_add_key(sc)
3035 
3036  add_key = staticmethod(add_key)
3037 
3038  def get_key_exists(sc):
3039  """get_key_exists(std::string sc) -> bool"""
3040  return _IMP_kernel.ParticleIndexesKey_get_key_exists(sc)
3041 
3042  get_key_exists = staticmethod(get_key_exists)
3043 
3044  def get_string(self):
3045  """get_string(ParticleIndexesKey self) -> std::string const"""
3046  return _IMP_kernel.ParticleIndexesKey_get_string(self)
3047 
3048 
3049  def __cmp__(self, o):
3050  """__cmp__(ParticleIndexesKey self, ParticleIndexesKey o) -> int"""
3051  return _IMP_kernel.ParticleIndexesKey___cmp__(self, o)
3052 
3053 
3054  def __eq__(self, o):
3055  """__eq__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3056  return _IMP_kernel.ParticleIndexesKey___eq__(self, o)
3057 
3058 
3059  def __ne__(self, o):
3060  """__ne__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3061  return _IMP_kernel.ParticleIndexesKey___ne__(self, o)
3062 
3063 
3064  def __lt__(self, o):
3065  """__lt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3066  return _IMP_kernel.ParticleIndexesKey___lt__(self, o)
3067 
3068 
3069  def __gt__(self, o):
3070  """__gt__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3071  return _IMP_kernel.ParticleIndexesKey___gt__(self, o)
3072 
3073 
3074  def __ge__(self, o):
3075  """__ge__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3076  return _IMP_kernel.ParticleIndexesKey___ge__(self, o)
3077 
3078 
3079  def __le__(self, o):
3080  """__le__(ParticleIndexesKey self, ParticleIndexesKey o) -> bool"""
3081  return _IMP_kernel.ParticleIndexesKey___le__(self, o)
3082 
3083 
3084  def __hash__(self):
3085  """__hash__(ParticleIndexesKey self) -> std::size_t"""
3086  return _IMP_kernel.ParticleIndexesKey___hash__(self)
3087 
3088 
3089  def show(self, *args):
3090  """
3091  show(ParticleIndexesKey self, _ostream out)
3092  show(ParticleIndexesKey self)
3093  """
3094  return _IMP_kernel.ParticleIndexesKey_show(self, *args)
3095 
3096 
3097  def add_alias(old_key, new_name):
3098  """add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
3099  return _IMP_kernel.ParticleIndexesKey_add_alias(old_key, new_name)
3100 
3101  add_alias = staticmethod(add_alias)
3102 
3103  def get_number_of_keys():
3104  """get_number_of_keys() -> unsigned int"""
3105  return _IMP_kernel.ParticleIndexesKey_get_number_of_keys()
3106 
3107  get_number_of_keys = staticmethod(get_number_of_keys)
3108 
3109  def get_index(self):
3110  """get_index(ParticleIndexesKey self) -> unsigned int"""
3111  return _IMP_kernel.ParticleIndexesKey_get_index(self)
3112 
3113 
3114  def show_all(out):
3115  """show_all(_ostream out)"""
3116  return _IMP_kernel.ParticleIndexesKey_show_all(out)
3117 
3118  show_all = staticmethod(show_all)
3119 
3120  def get_all_strings():
3121  """get_all_strings() -> IMP::Vector< std::string >"""
3122  return _IMP_kernel.ParticleIndexesKey_get_all_strings()
3123 
3124  get_all_strings = staticmethod(get_all_strings)
3125 
3126  def get_number_unique():
3127  """get_number_unique() -> unsigned int"""
3128  return _IMP_kernel.ParticleIndexesKey_get_number_unique()
3129 
3130  get_number_unique = staticmethod(get_number_unique)
3131 
3132  def __str__(self):
3133  """__str__(ParticleIndexesKey self) -> std::string"""
3134  return _IMP_kernel.ParticleIndexesKey___str__(self)
3135 
3136 
3137  def __repr__(self):
3138  """__repr__(ParticleIndexesKey self) -> std::string"""
3139  return _IMP_kernel.ParticleIndexesKey___repr__(self)
3140 
3141  __swig_destroy__ = _IMP_kernel.delete_ParticleIndexesKey
3142  __del__ = lambda self: None
3143 ParticleIndexesKey_swigregister = _IMP_kernel.ParticleIndexesKey_swigregister
3144 ParticleIndexesKey_swigregister(ParticleIndexesKey)
3145 
3146 def ParticleIndexesKey_add_key(sc):
3147  """ParticleIndexesKey_add_key(std::string sc) -> unsigned int"""
3148  return _IMP_kernel.ParticleIndexesKey_add_key(sc)
3149 
3150 def ParticleIndexesKey_get_key_exists(sc):
3151  """ParticleIndexesKey_get_key_exists(std::string sc) -> bool"""
3152  return _IMP_kernel.ParticleIndexesKey_get_key_exists(sc)
3153 
3154 def ParticleIndexesKey_add_alias(old_key, new_name):
3155  """ParticleIndexesKey_add_alias(ParticleIndexesKey old_key, std::string new_name) -> ParticleIndexesKey"""
3156  return _IMP_kernel.ParticleIndexesKey_add_alias(old_key, new_name)
3157 
3158 def ParticleIndexesKey_get_number_of_keys():
3159  """ParticleIndexesKey_get_number_of_keys() -> unsigned int"""
3160  return _IMP_kernel.ParticleIndexesKey_get_number_of_keys()
3161 
3162 def ParticleIndexesKey_show_all(out):
3163  """ParticleIndexesKey_show_all(_ostream out)"""
3164  return _IMP_kernel.ParticleIndexesKey_show_all(out)
3165 
3166 def ParticleIndexesKey_get_all_strings():
3167  """ParticleIndexesKey_get_all_strings() -> IMP::Vector< std::string >"""
3168  return _IMP_kernel.ParticleIndexesKey_get_all_strings()
3169 
3170 def ParticleIndexesKey_get_number_unique():
3171  """ParticleIndexesKey_get_number_unique() -> unsigned int"""
3172  return _IMP_kernel.ParticleIndexesKey_get_number_unique()
3173 
3174 class ModelKey(_Value):
3175  """Proxy of C++ IMP::Key<(8)> class"""
3176  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3177 
3178  def __init__(self, *args):
3179  """
3180  __init__(IMP::Key<(8)> self) -> ModelKey
3181  __init__(IMP::Key<(8)> self, std::string const & c, bool is_implicit_add_permitted=True) -> ModelKey
3182  __init__(IMP::Key<(8)> self, std::string const & c) -> ModelKey
3183  __init__(IMP::Key<(8)> self, unsigned int i) -> ModelKey
3184  """
3185  this = _IMP_kernel.new_ModelKey(*args)
3186  try:
3187  self.this.append(this)
3188  except:
3189  self.this = this
3190 
3191  def add_key(sc):
3192  """add_key(std::string sc) -> unsigned int"""
3193  return _IMP_kernel.ModelKey_add_key(sc)
3194 
3195  add_key = staticmethod(add_key)
3196 
3197  def get_key_exists(sc):
3198  """get_key_exists(std::string sc) -> bool"""
3199  return _IMP_kernel.ModelKey_get_key_exists(sc)
3200 
3201  get_key_exists = staticmethod(get_key_exists)
3202 
3203  def get_string(self):
3204  """get_string(ModelKey self) -> std::string const"""
3205  return _IMP_kernel.ModelKey_get_string(self)
3206 
3207 
3208  def __cmp__(self, o):
3209  """__cmp__(ModelKey self, ModelKey o) -> int"""
3210  return _IMP_kernel.ModelKey___cmp__(self, o)
3211 
3212 
3213  def __eq__(self, o):
3214  """__eq__(ModelKey self, ModelKey o) -> bool"""
3215  return _IMP_kernel.ModelKey___eq__(self, o)
3216 
3217 
3218  def __ne__(self, o):
3219  """__ne__(ModelKey self, ModelKey o) -> bool"""
3220  return _IMP_kernel.ModelKey___ne__(self, o)
3221 
3222 
3223  def __lt__(self, o):
3224  """__lt__(ModelKey self, ModelKey o) -> bool"""
3225  return _IMP_kernel.ModelKey___lt__(self, o)
3226 
3227 
3228  def __gt__(self, o):
3229  """__gt__(ModelKey self, ModelKey o) -> bool"""
3230  return _IMP_kernel.ModelKey___gt__(self, o)
3231 
3232 
3233  def __ge__(self, o):
3234  """__ge__(ModelKey self, ModelKey o) -> bool"""
3235  return _IMP_kernel.ModelKey___ge__(self, o)
3236 
3237 
3238  def __le__(self, o):
3239  """__le__(ModelKey self, ModelKey o) -> bool"""
3240  return _IMP_kernel.ModelKey___le__(self, o)
3241 
3242 
3243  def __hash__(self):
3244  """__hash__(ModelKey self) -> std::size_t"""
3245  return _IMP_kernel.ModelKey___hash__(self)
3246 
3247 
3248  def show(self, *args):
3249  """
3250  show(ModelKey self, _ostream out)
3251  show(ModelKey self)
3252  """
3253  return _IMP_kernel.ModelKey_show(self, *args)
3254 
3255 
3256  def add_alias(old_key, new_name):
3257  """add_alias(ModelKey old_key, std::string new_name) -> ModelKey"""
3258  return _IMP_kernel.ModelKey_add_alias(old_key, new_name)
3259 
3260  add_alias = staticmethod(add_alias)
3261 
3262  def get_number_of_keys():
3263  """get_number_of_keys() -> unsigned int"""
3264  return _IMP_kernel.ModelKey_get_number_of_keys()
3265 
3266  get_number_of_keys = staticmethod(get_number_of_keys)
3267 
3268  def get_index(self):
3269  """get_index(ModelKey self) -> unsigned int"""
3270  return _IMP_kernel.ModelKey_get_index(self)
3271 
3272 
3273  def show_all(out):
3274  """show_all(_ostream out)"""
3275  return _IMP_kernel.ModelKey_show_all(out)
3276 
3277  show_all = staticmethod(show_all)
3278 
3279  def get_all_strings():
3280  """get_all_strings() -> IMP::Vector< std::string >"""
3281  return _IMP_kernel.ModelKey_get_all_strings()
3282 
3283  get_all_strings = staticmethod(get_all_strings)
3284 
3285  def get_number_unique():
3286  """get_number_unique() -> unsigned int"""
3287  return _IMP_kernel.ModelKey_get_number_unique()
3288 
3289  get_number_unique = staticmethod(get_number_unique)
3290 
3291  def __str__(self):
3292  """__str__(ModelKey self) -> std::string"""
3293  return _IMP_kernel.ModelKey___str__(self)
3294 
3295 
3296  def __repr__(self):
3297  """__repr__(ModelKey self) -> std::string"""
3298  return _IMP_kernel.ModelKey___repr__(self)
3299 
3300  __swig_destroy__ = _IMP_kernel.delete_ModelKey
3301  __del__ = lambda self: None
3302 ModelKey_swigregister = _IMP_kernel.ModelKey_swigregister
3303 ModelKey_swigregister(ModelKey)
3304 
3305 def ModelKey_add_key(sc):
3306  """ModelKey_add_key(std::string sc) -> unsigned int"""
3307  return _IMP_kernel.ModelKey_add_key(sc)
3308 
3309 def ModelKey_get_key_exists(sc):
3310  """ModelKey_get_key_exists(std::string sc) -> bool"""
3311  return _IMP_kernel.ModelKey_get_key_exists(sc)
3312 
3313 def ModelKey_add_alias(old_key, new_name):
3314  """ModelKey_add_alias(ModelKey old_key, std::string new_name) -> ModelKey"""
3315  return _IMP_kernel.ModelKey_add_alias(old_key, new_name)
3316 
3317 def ModelKey_get_number_of_keys():
3318  """ModelKey_get_number_of_keys() -> unsigned int"""
3319  return _IMP_kernel.ModelKey_get_number_of_keys()
3320 
3321 def ModelKey_show_all(out):
3322  """ModelKey_show_all(_ostream out)"""
3323  return _IMP_kernel.ModelKey_show_all(out)
3324 
3325 def ModelKey_get_all_strings():
3326  """ModelKey_get_all_strings() -> IMP::Vector< std::string >"""
3327  return _IMP_kernel.ModelKey_get_all_strings()
3328 
3329 def ModelKey_get_number_unique():
3330  """ModelKey_get_number_unique() -> unsigned int"""
3331  return _IMP_kernel.ModelKey_get_number_unique()
3332 
3333 class TriggerKey(_Value):
3334  """Proxy of C++ IMP::Key<(11)> class"""
3335  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3336 
3337  def __init__(self, *args):
3338  """
3339  __init__(IMP::Key<(11)> self) -> TriggerKey
3340  __init__(IMP::Key<(11)> self, std::string const & c, bool is_implicit_add_permitted=True) -> TriggerKey
3341  __init__(IMP::Key<(11)> self, std::string const & c) -> TriggerKey
3342  __init__(IMP::Key<(11)> self, unsigned int i) -> TriggerKey
3343  """
3344  this = _IMP_kernel.new_TriggerKey(*args)
3345  try:
3346  self.this.append(this)
3347  except:
3348  self.this = this
3349 
3350  def add_key(sc):
3351  """add_key(std::string sc) -> unsigned int"""
3352  return _IMP_kernel.TriggerKey_add_key(sc)
3353 
3354  add_key = staticmethod(add_key)
3355 
3356  def get_key_exists(sc):
3357  """get_key_exists(std::string sc) -> bool"""
3358  return _IMP_kernel.TriggerKey_get_key_exists(sc)
3359 
3360  get_key_exists = staticmethod(get_key_exists)
3361 
3362  def get_string(self):
3363  """get_string(TriggerKey self) -> std::string const"""
3364  return _IMP_kernel.TriggerKey_get_string(self)
3365 
3366 
3367  def __cmp__(self, o):
3368  """__cmp__(TriggerKey self, TriggerKey o) -> int"""
3369  return _IMP_kernel.TriggerKey___cmp__(self, o)
3370 
3371 
3372  def __eq__(self, o):
3373  """__eq__(TriggerKey self, TriggerKey o) -> bool"""
3374  return _IMP_kernel.TriggerKey___eq__(self, o)
3375 
3376 
3377  def __ne__(self, o):
3378  """__ne__(TriggerKey self, TriggerKey o) -> bool"""
3379  return _IMP_kernel.TriggerKey___ne__(self, o)
3380 
3381 
3382  def __lt__(self, o):
3383  """__lt__(TriggerKey self, TriggerKey o) -> bool"""
3384  return _IMP_kernel.TriggerKey___lt__(self, o)
3385 
3386 
3387  def __gt__(self, o):
3388  """__gt__(TriggerKey self, TriggerKey o) -> bool"""
3389  return _IMP_kernel.TriggerKey___gt__(self, o)
3390 
3391 
3392  def __ge__(self, o):
3393  """__ge__(TriggerKey self, TriggerKey o) -> bool"""
3394  return _IMP_kernel.TriggerKey___ge__(self, o)
3395 
3396 
3397  def __le__(self, o):
3398  """__le__(TriggerKey self, TriggerKey o) -> bool"""
3399  return _IMP_kernel.TriggerKey___le__(self, o)
3400 
3401 
3402  def __hash__(self):
3403  """__hash__(TriggerKey self) -> std::size_t"""
3404  return _IMP_kernel.TriggerKey___hash__(self)
3405 
3406 
3407  def show(self, *args):
3408  """
3409  show(TriggerKey self, _ostream out)
3410  show(TriggerKey self)
3411  """
3412  return _IMP_kernel.TriggerKey_show(self, *args)
3413 
3414 
3415  def add_alias(old_key, new_name):
3416  """add_alias(TriggerKey old_key, std::string new_name) -> TriggerKey"""
3417  return _IMP_kernel.TriggerKey_add_alias(old_key, new_name)
3418 
3419  add_alias = staticmethod(add_alias)
3420 
3421  def get_number_of_keys():
3422  """get_number_of_keys() -> unsigned int"""
3423  return _IMP_kernel.TriggerKey_get_number_of_keys()
3424 
3425  get_number_of_keys = staticmethod(get_number_of_keys)
3426 
3427  def get_index(self):
3428  """get_index(TriggerKey self) -> unsigned int"""
3429  return _IMP_kernel.TriggerKey_get_index(self)
3430 
3431 
3432  def show_all(out):
3433  """show_all(_ostream out)"""
3434  return _IMP_kernel.TriggerKey_show_all(out)
3435 
3436  show_all = staticmethod(show_all)
3437 
3438  def get_all_strings():
3439  """get_all_strings() -> IMP::Vector< std::string >"""
3440  return _IMP_kernel.TriggerKey_get_all_strings()
3441 
3442  get_all_strings = staticmethod(get_all_strings)
3443 
3444  def get_number_unique():
3445  """get_number_unique() -> unsigned int"""
3446  return _IMP_kernel.TriggerKey_get_number_unique()
3447 
3448  get_number_unique = staticmethod(get_number_unique)
3449 
3450  def __str__(self):
3451  """__str__(TriggerKey self) -> std::string"""
3452  return _IMP_kernel.TriggerKey___str__(self)
3453 
3454 
3455  def __repr__(self):
3456  """__repr__(TriggerKey self) -> std::string"""
3457  return _IMP_kernel.TriggerKey___repr__(self)
3458 
3459  __swig_destroy__ = _IMP_kernel.delete_TriggerKey
3460  __del__ = lambda self: None
3461 TriggerKey_swigregister = _IMP_kernel.TriggerKey_swigregister
3462 TriggerKey_swigregister(TriggerKey)
3463 
3464 def TriggerKey_add_key(sc):
3465  """TriggerKey_add_key(std::string sc) -> unsigned int"""
3466  return _IMP_kernel.TriggerKey_add_key(sc)
3467 
3468 def TriggerKey_get_key_exists(sc):
3469  """TriggerKey_get_key_exists(std::string sc) -> bool"""
3470  return _IMP_kernel.TriggerKey_get_key_exists(sc)
3471 
3472 def TriggerKey_add_alias(old_key, new_name):
3473  """TriggerKey_add_alias(TriggerKey old_key, std::string new_name) -> TriggerKey"""
3474  return _IMP_kernel.TriggerKey_add_alias(old_key, new_name)
3475 
3476 def TriggerKey_get_number_of_keys():
3477  """TriggerKey_get_number_of_keys() -> unsigned int"""
3478  return _IMP_kernel.TriggerKey_get_number_of_keys()
3479 
3480 def TriggerKey_show_all(out):
3481  """TriggerKey_show_all(_ostream out)"""
3482  return _IMP_kernel.TriggerKey_show_all(out)
3483 
3484 def TriggerKey_get_all_strings():
3485  """TriggerKey_get_all_strings() -> IMP::Vector< std::string >"""
3486  return _IMP_kernel.TriggerKey_get_all_strings()
3487 
3488 def TriggerKey_get_number_unique():
3489  """TriggerKey_get_number_unique() -> unsigned int"""
3490  return _IMP_kernel.TriggerKey_get_number_unique()
3491 
3492 class ParticleIndex(_Value):
3493  """Proxy of C++ IMP::Index<(IMP::ParticleIndexTag)> class"""
3494  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3495 
3496  def __init__(self, *args):
3497  """
3498  __init__(IMP::Index<(IMP::ParticleIndexTag)> self, int i) -> ParticleIndex
3499  __init__(IMP::Index<(IMP::ParticleIndexTag)> self) -> ParticleIndex
3500  """
3501  this = _IMP_kernel.new_ParticleIndex(*args)
3502  try:
3503  self.this.append(this)
3504  except:
3505  self.this = this
3506 
3507  def get_index(self):
3508  """get_index(ParticleIndex self) -> int"""
3509  return _IMP_kernel.ParticleIndex_get_index(self)
3510 
3511 
3512  def __cmp__(self, o):
3513  """__cmp__(ParticleIndex self, ParticleIndex o) -> int"""
3514  return _IMP_kernel.ParticleIndex___cmp__(self, o)
3515 
3516 
3517  def __eq__(self, o):
3518  """__eq__(ParticleIndex self, ParticleIndex o) -> bool"""
3519  return _IMP_kernel.ParticleIndex___eq__(self, o)
3520 
3521 
3522  def __ne__(self, o):
3523  """__ne__(ParticleIndex self, ParticleIndex o) -> bool"""
3524  return _IMP_kernel.ParticleIndex___ne__(self, o)
3525 
3526 
3527  def __lt__(self, o):
3528  """__lt__(ParticleIndex self, ParticleIndex o) -> bool"""
3529  return _IMP_kernel.ParticleIndex___lt__(self, o)
3530 
3531 
3532  def __gt__(self, o):
3533  """__gt__(ParticleIndex self, ParticleIndex o) -> bool"""
3534  return _IMP_kernel.ParticleIndex___gt__(self, o)
3535 
3536 
3537  def __ge__(self, o):
3538  """__ge__(ParticleIndex self, ParticleIndex o) -> bool"""
3539  return _IMP_kernel.ParticleIndex___ge__(self, o)
3540 
3541 
3542  def __le__(self, o):
3543  """__le__(ParticleIndex self, ParticleIndex o) -> bool"""
3544  return _IMP_kernel.ParticleIndex___le__(self, o)
3545 
3546 
3547  def show(self, *args):
3548  """
3549  show(ParticleIndex self, _ostream out)
3550  show(ParticleIndex self)
3551  """
3552  return _IMP_kernel.ParticleIndex_show(self, *args)
3553 
3554 
3555  def __hash__(self):
3556  """__hash__(ParticleIndex self) -> std::size_t"""
3557  return _IMP_kernel.ParticleIndex___hash__(self)
3558 
3559 
3560  def __str__(self):
3561  """__str__(ParticleIndex self) -> std::string"""
3562  return _IMP_kernel.ParticleIndex___str__(self)
3563 
3564 
3565  def __repr__(self):
3566  """__repr__(ParticleIndex self) -> std::string"""
3567  return _IMP_kernel.ParticleIndex___repr__(self)
3568 
3569  __swig_destroy__ = _IMP_kernel.delete_ParticleIndex
3570  __del__ = lambda self: None
3571 ParticleIndex_swigregister = _IMP_kernel.ParticleIndex_swigregister
3572 ParticleIndex_swigregister(ParticleIndex)
3573 
3574 class FloatsKey(_Value):
3575  """Proxy of C++ IMP::Key<(10)> class"""
3576  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3577 
3578  def __init__(self, *args):
3579  """
3580  __init__(IMP::Key<(10)> self) -> FloatsKey
3581  __init__(IMP::Key<(10)> self, std::string const & c, bool is_implicit_add_permitted=True) -> FloatsKey
3582  __init__(IMP::Key<(10)> self, std::string const & c) -> FloatsKey
3583  __init__(IMP::Key<(10)> self, unsigned int i) -> FloatsKey
3584  """
3585  this = _IMP_kernel.new_FloatsKey(*args)
3586  try:
3587  self.this.append(this)
3588  except:
3589  self.this = this
3590 
3591  def add_key(sc):
3592  """add_key(std::string sc) -> unsigned int"""
3593  return _IMP_kernel.FloatsKey_add_key(sc)
3594 
3595  add_key = staticmethod(add_key)
3596 
3597  def get_key_exists(sc):
3598  """get_key_exists(std::string sc) -> bool"""
3599  return _IMP_kernel.FloatsKey_get_key_exists(sc)
3600 
3601  get_key_exists = staticmethod(get_key_exists)
3602 
3603  def get_string(self):
3604  """get_string(FloatsKey self) -> std::string const"""
3605  return _IMP_kernel.FloatsKey_get_string(self)
3606 
3607 
3608  def __cmp__(self, o):
3609  """__cmp__(FloatsKey self, FloatsKey o) -> int"""
3610  return _IMP_kernel.FloatsKey___cmp__(self, o)
3611 
3612 
3613  def __eq__(self, o):
3614  """__eq__(FloatsKey self, FloatsKey o) -> bool"""
3615  return _IMP_kernel.FloatsKey___eq__(self, o)
3616 
3617 
3618  def __ne__(self, o):
3619  """__ne__(FloatsKey self, FloatsKey o) -> bool"""
3620  return _IMP_kernel.FloatsKey___ne__(self, o)
3621 
3622 
3623  def __lt__(self, o):
3624  """__lt__(FloatsKey self, FloatsKey o) -> bool"""
3625  return _IMP_kernel.FloatsKey___lt__(self, o)
3626 
3627 
3628  def __gt__(self, o):
3629  """__gt__(FloatsKey self, FloatsKey o) -> bool"""
3630  return _IMP_kernel.FloatsKey___gt__(self, o)
3631 
3632 
3633  def __ge__(self, o):
3634  """__ge__(FloatsKey self, FloatsKey o) -> bool"""
3635  return _IMP_kernel.FloatsKey___ge__(self, o)
3636 
3637 
3638  def __le__(self, o):
3639  """__le__(FloatsKey self, FloatsKey o) -> bool"""
3640  return _IMP_kernel.FloatsKey___le__(self, o)
3641 
3642 
3643  def __hash__(self):
3644  """__hash__(FloatsKey self) -> std::size_t"""
3645  return _IMP_kernel.FloatsKey___hash__(self)
3646 
3647 
3648  def show(self, *args):
3649  """
3650  show(FloatsKey self, _ostream out)
3651  show(FloatsKey self)
3652  """
3653  return _IMP_kernel.FloatsKey_show(self, *args)
3654 
3655 
3656  def add_alias(old_key, new_name):
3657  """add_alias(FloatsKey old_key, std::string new_name) -> FloatsKey"""
3658  return _IMP_kernel.FloatsKey_add_alias(old_key, new_name)
3659 
3660  add_alias = staticmethod(add_alias)
3661 
3662  def get_number_of_keys():
3663  """get_number_of_keys() -> unsigned int"""
3664  return _IMP_kernel.FloatsKey_get_number_of_keys()
3665 
3666  get_number_of_keys = staticmethod(get_number_of_keys)
3667 
3668  def get_index(self):
3669  """get_index(FloatsKey self) -> unsigned int"""
3670  return _IMP_kernel.FloatsKey_get_index(self)
3671 
3672 
3673  def show_all(out):
3674  """show_all(_ostream out)"""
3675  return _IMP_kernel.FloatsKey_show_all(out)
3676 
3677  show_all = staticmethod(show_all)
3678 
3679  def get_all_strings():
3680  """get_all_strings() -> IMP::Vector< std::string >"""
3681  return _IMP_kernel.FloatsKey_get_all_strings()
3682 
3683  get_all_strings = staticmethod(get_all_strings)
3684 
3685  def get_number_unique():
3686  """get_number_unique() -> unsigned int"""
3687  return _IMP_kernel.FloatsKey_get_number_unique()
3688 
3689  get_number_unique = staticmethod(get_number_unique)
3690 
3691  def __str__(self):
3692  """__str__(FloatsKey self) -> std::string"""
3693  return _IMP_kernel.FloatsKey___str__(self)
3694 
3695 
3696  def __repr__(self):
3697  """__repr__(FloatsKey self) -> std::string"""
3698  return _IMP_kernel.FloatsKey___repr__(self)
3699 
3700  __swig_destroy__ = _IMP_kernel.delete_FloatsKey
3701  __del__ = lambda self: None
3702 FloatsKey_swigregister = _IMP_kernel.FloatsKey_swigregister
3703 FloatsKey_swigregister(FloatsKey)
3704 
3705 def FloatsKey_add_key(sc):
3706  """FloatsKey_add_key(std::string sc) -> unsigned int"""
3707  return _IMP_kernel.FloatsKey_add_key(sc)
3708 
3709 def FloatsKey_get_key_exists(sc):
3710  """FloatsKey_get_key_exists(std::string sc) -> bool"""
3711  return _IMP_kernel.FloatsKey_get_key_exists(sc)
3712 
3713 def FloatsKey_add_alias(old_key, new_name):
3714  """FloatsKey_add_alias(FloatsKey old_key, std::string new_name) -> FloatsKey"""
3715  return _IMP_kernel.FloatsKey_add_alias(old_key, new_name)
3716 
3717 def FloatsKey_get_number_of_keys():
3718  """FloatsKey_get_number_of_keys() -> unsigned int"""
3719  return _IMP_kernel.FloatsKey_get_number_of_keys()
3720 
3721 def FloatsKey_show_all(out):
3722  """FloatsKey_show_all(_ostream out)"""
3723  return _IMP_kernel.FloatsKey_show_all(out)
3724 
3725 def FloatsKey_get_all_strings():
3726  """FloatsKey_get_all_strings() -> IMP::Vector< std::string >"""
3727  return _IMP_kernel.FloatsKey_get_all_strings()
3728 
3729 def FloatsKey_get_number_unique():
3730  """FloatsKey_get_number_unique() -> unsigned int"""
3731  return _IMP_kernel.FloatsKey_get_number_unique()
3732 
3733 
3734 def ParticlePair(a, b):
3735  return (a,b)
3736 def ParticleTriplet(a, b, c):
3737  return (a,b,c)
3738 def ParticleQuad(a, b, c, d):
3739  return (a,b,c,d)
3740 
3741 class FloatIndex(_Value):
3742  """Proxy of C++ IMP::FloatIndex class"""
3743  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3744 
3745  def __init__(self, *args):
3746  """
3747  __init__(IMP::FloatIndex self, ParticleIndex i0, FloatKey i1) -> FloatIndex
3748  __init__(IMP::FloatIndex self, ParticleIndex i0) -> FloatIndex
3749  __init__(IMP::FloatIndex self) -> FloatIndex
3750  """
3751  this = _IMP_kernel.new_FloatIndex(*args)
3752  try:
3753  self.this.append(this)
3754  except:
3755  self.this = this
3756 
3757  def __hash__(self):
3758  """__hash__(FloatIndex self) -> std::size_t"""
3759  return _IMP_kernel.FloatIndex___hash__(self)
3760 
3761 
3762  def show(self, *args):
3763  """
3764  show(FloatIndex self, _ostream out)
3765  show(FloatIndex self)
3766  """
3767  return _IMP_kernel.FloatIndex_show(self, *args)
3768 
3769 
3770  def __cmp__(self, o):
3771  """__cmp__(FloatIndex self, FloatIndex o) -> int"""
3772  return _IMP_kernel.FloatIndex___cmp__(self, o)
3773 
3774 
3775  def __eq__(self, o):
3776  """__eq__(FloatIndex self, FloatIndex o) -> bool"""
3777  return _IMP_kernel.FloatIndex___eq__(self, o)
3778 
3779 
3780  def __ne__(self, o):
3781  """__ne__(FloatIndex self, FloatIndex o) -> bool"""
3782  return _IMP_kernel.FloatIndex___ne__(self, o)
3783 
3784 
3785  def __lt__(self, o):
3786  """__lt__(FloatIndex self, FloatIndex o) -> bool"""
3787  return _IMP_kernel.FloatIndex___lt__(self, o)
3788 
3789 
3790  def __gt__(self, o):
3791  """__gt__(FloatIndex self, FloatIndex o) -> bool"""
3792  return _IMP_kernel.FloatIndex___gt__(self, o)
3793 
3794 
3795  def __ge__(self, o):
3796  """__ge__(FloatIndex self, FloatIndex o) -> bool"""
3797  return _IMP_kernel.FloatIndex___ge__(self, o)
3798 
3799 
3800  def __le__(self, o):
3801  """__le__(FloatIndex self, FloatIndex o) -> bool"""
3802  return _IMP_kernel.FloatIndex___le__(self, o)
3803 
3804 
3805  def get_particle(self):
3806  """get_particle(FloatIndex self) -> ParticleIndex const &"""
3807  return _IMP_kernel.FloatIndex_get_particle(self)
3808 
3809 
3810  def set_particle(self, v):
3811  """set_particle(FloatIndex self, ParticleIndex const & v)"""
3812  return _IMP_kernel.FloatIndex_set_particle(self, v)
3813 
3814 
3815  def get_key(self):
3816  """get_key(FloatIndex self) -> FloatKey const &"""
3817  return _IMP_kernel.FloatIndex_get_key(self)
3818 
3819 
3820  def set_key(self, v):
3821  """set_key(FloatIndex self, FloatKey const & v)"""
3822  return _IMP_kernel.FloatIndex_set_key(self, v)
3823 
3824 
3825  def __str__(self):
3826  """__str__(FloatIndex self) -> std::string"""
3827  return _IMP_kernel.FloatIndex___str__(self)
3828 
3829 
3830  def __repr__(self):
3831  """__repr__(FloatIndex self) -> std::string"""
3832  return _IMP_kernel.FloatIndex___repr__(self)
3833 
3834  __swig_destroy__ = _IMP_kernel.delete_FloatIndex
3835  __del__ = lambda self: None
3836 FloatIndex_swigregister = _IMP_kernel.FloatIndex_swigregister
3837 FloatIndex_swigregister(FloatIndex)
3838 
3839 class _ParticleIndexTag(object):
3840  """Proxy of C++ IMP::ParticleIndexTag class"""
3841  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3842  __repr__ = _swig_repr
3843 
3844  def __init__(self):
3845  """__init__(IMP::ParticleIndexTag self) -> _ParticleIndexTag"""
3846  this = _IMP_kernel.new__ParticleIndexTag()
3847  try:
3848  self.this.append(this)
3849  except:
3850  self.this = this
3851  __swig_destroy__ = _IMP_kernel.delete__ParticleIndexTag
3852  __del__ = lambda self: None
3853 _ParticleIndexTag_swigregister = _IMP_kernel._ParticleIndexTag_swigregister
3854 _ParticleIndexTag_swigregister(_ParticleIndexTag)
3855 
3856 class ModelObject(Object):
3857  """Proxy of C++ IMP::ModelObject class"""
3858  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3859 
3860  def __init__(self, m, name):
3861  """__init__(IMP::ModelObject self, Model m, std::string name) -> ModelObject"""
3862  if self.__class__ == ModelObject:
3863  _self = None
3864  else:
3865  _self = self
3866  this = _IMP_kernel.new_ModelObject(_self, m, name)
3867  try:
3868  self.this.append(this)
3869  except:
3870  self.this = this
3871 
3872  if self.__class__ != ModelObject:
3873  _director_objects.register(self)
3874 
3875 
3876 
3877  __swig_destroy__ = _IMP_kernel.delete_ModelObject
3878  __del__ = lambda self: None
3879 
3880  def get_model(self):
3881  """get_model(ModelObject self) -> Model"""
3882  return _IMP_kernel.ModelObject_get_model(self)
3883 
3884 
3885  def get_inputs(self):
3886  """get_inputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3887  return _IMP_kernel.ModelObject_get_inputs(self)
3888 
3889 
3890  def get_outputs(self):
3891  """get_outputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3892  return _IMP_kernel.ModelObject_get_outputs(self)
3893 
3894 
3895  def get_interactions(self):
3896  """get_interactions(ModelObject self) -> IMP::ModelObjectsTemps"""
3897  return _IMP_kernel.ModelObject_get_interactions(self)
3898 
3899 
3900  def get_has_dependencies(self):
3901  """get_has_dependencies(ModelObject self) -> bool"""
3902  return _IMP_kernel.ModelObject_get_has_dependencies(self)
3903 
3904 
3905  def set_has_dependencies(self, tf):
3906  """set_has_dependencies(ModelObject self, bool tf)"""
3907  return _IMP_kernel.ModelObject_set_has_dependencies(self, tf)
3908 
3909 
3910  def set_has_required_score_states(self, tf):
3911  """set_has_required_score_states(ModelObject self, bool tf)"""
3912  return _IMP_kernel.ModelObject_set_has_required_score_states(self, tf)
3913 
3914 
3915  def get_has_required_score_states(self):
3916  """get_has_required_score_states(ModelObject self) -> bool"""
3917  return _IMP_kernel.ModelObject_get_has_required_score_states(self)
3918 
3919 
3920  def get_required_score_states(self):
3921  """get_required_score_states(ModelObject self) -> IMP::ScoreStatesTemp const &"""
3922  return _IMP_kernel.ModelObject_get_required_score_states(self)
3923 
3924 
3925  def handle_set_has_required_score_states(self, arg0):
3926  """handle_set_has_required_score_states(ModelObject self, bool arg0)"""
3927  return _IMP_kernel.ModelObject_handle_set_has_required_score_states(self, arg0)
3928 
3929 
3930  def do_get_inputs(self):
3931  """do_get_inputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3932  return _IMP_kernel.ModelObject_do_get_inputs(self)
3933 
3934 
3935  def do_get_outputs(self):
3936  """do_get_outputs(ModelObject self) -> IMP::ModelObjectsTemp"""
3937  return _IMP_kernel.ModelObject_do_get_outputs(self)
3938 
3939 
3940  def do_get_interactions(self):
3941  """do_get_interactions(ModelObject self) -> IMP::ModelObjectsTemps"""
3942  return _IMP_kernel.ModelObject_do_get_interactions(self)
3943 
3944 
3945  def __str__(self):
3946  """__str__(ModelObject self) -> std::string"""
3947  return _IMP_kernel.ModelObject___str__(self)
3948 
3949 
3950  def __repr__(self):
3951  """__repr__(ModelObject self) -> std::string"""
3952  return _IMP_kernel.ModelObject___repr__(self)
3953 
3954 
3955  @staticmethod
3956  def get_from(o):
3957  return _object_cast_to_ModelObject(o)
3958 
3959 
3960  def get_type_name(self):
3961  return self.__class__.__name__
3962  def do_show(self, out):
3963  pass
3964  def get_version_info(self):
3965  if"IMP" == "IMP":
3966  return VersionInfo(self.__module__,
3967  __import__(self.__module__).get_module_version())
3968  else:
3969  return IMP.VersionInfo(self.__module__,
3970  __import__(self.__module__).get_module_version())
3971  @staticmethod
3972  def get_from(o):
3973  return _object_cast_to_ModelObject(o)
3974 
3975  def __disown__(self):
3976  self.this.disown()
3977  _IMP_kernel.disown_ModelObject(self)
3978  return weakref_proxy(self)
3979 
3980  def do_destroy(self):
3981  """do_destroy(ModelObject self)"""
3982  return _IMP_kernel.ModelObject_do_destroy(self)
3983 
3984 ModelObject_swigregister = _IMP_kernel.ModelObject_swigregister
3985 ModelObject_swigregister(ModelObject)
3986 cvar = _IMP_kernel.cvar
3987 NO_MAX = cvar.NO_MAX
3988 BAD_SCORE = cvar.BAD_SCORE
3989 
3990 class _ParticleInputs(object):
3991  """Proxy of C++ IMP::ParticleInputs class"""
3992  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3993 
3994  def __init__(self, *args, **kwargs):
3995  raise AttributeError("No constructor defined - class is abstract")
3996  __repr__ = _swig_repr
3997 
3998  def get_inputs(self, m, pis):
3999  """get_inputs(_ParticleInputs self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4000  return _IMP_kernel._ParticleInputs_get_inputs(self, m, pis)
4001 
4002 _ParticleInputs_swigregister = _IMP_kernel._ParticleInputs_swigregister
4003 _ParticleInputs_swigregister(_ParticleInputs)
4004 
4005 class _ParticleOutputs(object):
4006  """Proxy of C++ IMP::ParticleOutputs class"""
4007  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4008 
4009  def __init__(self, *args, **kwargs):
4010  raise AttributeError("No constructor defined - class is abstract")
4011  __repr__ = _swig_repr
4012 
4013  def get_outputs(self, m, pis):
4014  """get_outputs(_ParticleOutputs self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4015  return _IMP_kernel._ParticleOutputs_get_outputs(self, m, pis)
4016 
4017 _ParticleOutputs_swigregister = _IMP_kernel._ParticleOutputs_swigregister
4018 _ParticleOutputs_swigregister(_ParticleOutputs)
4019 
4020 
4021 def get_input_particles(mos):
4022  """get_input_particles(IMP::ModelObjectsTemp const & mos) -> IMP::ParticlesTemp"""
4023  return _IMP_kernel.get_input_particles(mos)
4024 
4025 def get_input_containers(mos):
4026  """get_input_containers(IMP::ModelObjectsTemp const & mos) -> IMP::ContainersTemp"""
4027  return _IMP_kernel.get_input_containers(mos)
4028 
4029 def get_output_particles(mos):
4030  """get_output_particles(IMP::ModelObjectsTemp const & mos) -> IMP::ParticlesTemp"""
4031  return _IMP_kernel.get_output_particles(mos)
4032 
4033 def get_output_containers(mos):
4034  """get_output_containers(IMP::ModelObjectsTemp const & mos) -> IMP::ContainersTemp"""
4035  return _IMP_kernel.get_output_containers(mos)
4036 class DerivativeAccumulator(object):
4037  """Proxy of C++ IMP::DerivativeAccumulator class"""
4038  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4039  __repr__ = _swig_repr
4040 
4041  def __init__(self, *args):
4042  """
4043  __init__(IMP::DerivativeAccumulator self, double weight=1.0) -> DerivativeAccumulator
4044  __init__(IMP::DerivativeAccumulator self) -> DerivativeAccumulator
4045  __init__(IMP::DerivativeAccumulator self, DerivativeAccumulator copy, double weight) -> DerivativeAccumulator
4046  """
4047  this = _IMP_kernel.new_DerivativeAccumulator(*args)
4048  try:
4049  self.this.append(this)
4050  except:
4051  self.this = this
4052 
4053  def __call__(self, value):
4054  """__call__(DerivativeAccumulator self, double const value) -> double"""
4055  return _IMP_kernel.DerivativeAccumulator___call__(self, value)
4056 
4057 
4058  def get_weight(self):
4059  """get_weight(DerivativeAccumulator self) -> double"""
4060  return _IMP_kernel.DerivativeAccumulator_get_weight(self)
4061 
4062 
4063  def show(self, *args):
4064  """
4065  show(DerivativeAccumulator self, _ostream out)
4066  show(DerivativeAccumulator self)
4067  """
4068  return _IMP_kernel.DerivativeAccumulator_show(self, *args)
4069 
4070  __swig_destroy__ = _IMP_kernel.delete_DerivativeAccumulator
4071  __del__ = lambda self: None
4072 DerivativeAccumulator_swigregister = _IMP_kernel.DerivativeAccumulator_swigregister
4073 DerivativeAccumulator_swigregister(DerivativeAccumulator)
4074 
4075 class EvaluationState(object):
4076  """Proxy of C++ IMP::EvaluationState class"""
4077  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4078  score = _swig_property(_IMP_kernel.EvaluationState_score_get, _IMP_kernel.EvaluationState_score_set)
4079  good = _swig_property(_IMP_kernel.EvaluationState_good_get, _IMP_kernel.EvaluationState_good_set)
4080 
4081  def __init__(self, *args):
4082  """
4083  __init__(IMP::EvaluationState self, double oscore, bool ogood) -> EvaluationState
4084  __init__(IMP::EvaluationState self) -> EvaluationState
4085  """
4086  this = _IMP_kernel.new_EvaluationState(*args)
4087  try:
4088  self.this.append(this)
4089  except:
4090  self.this = this
4091 
4092  def show(self, *args):
4093  """
4094  show(EvaluationState self, _ostream out)
4095  show(EvaluationState self)
4096  """
4097  return _IMP_kernel.EvaluationState_show(self, *args)
4098 
4099 
4100  def __str__(self):
4101  """__str__(EvaluationState self) -> std::string"""
4102  return _IMP_kernel.EvaluationState___str__(self)
4103 
4104 
4105  def __repr__(self):
4106  """__repr__(EvaluationState self) -> std::string"""
4107  return _IMP_kernel.EvaluationState___repr__(self)
4108 
4109  __swig_destroy__ = _IMP_kernel.delete_EvaluationState
4110  __del__ = lambda self: None
4111 EvaluationState_swigregister = _IMP_kernel.EvaluationState_swigregister
4112 EvaluationState_swigregister(EvaluationState)
4113 
4114 class ScoreAccumulator(_Value):
4115  """Proxy of C++ IMP::ScoreAccumulator class"""
4116  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4117 
4118  def __init__(self, *args):
4119  """
4120  __init__(IMP::ScoreAccumulator self) -> ScoreAccumulator
4121  __init__(IMP::ScoreAccumulator self, ScoreAccumulator o, Restraint r) -> ScoreAccumulator
4122  __init__(IMP::ScoreAccumulator self, ScoreAccumulator o, double weight, double local_max) -> ScoreAccumulator
4123  """
4124  this = _IMP_kernel.new_ScoreAccumulator(*args)
4125  try:
4126  self.this.append(this)
4127  except:
4128  self.this = this
4129 
4130  def add_score(self, score):
4131  """add_score(ScoreAccumulator self, double score)"""
4132  return _IMP_kernel.ScoreAccumulator_add_score(self, score)
4133 
4134 
4135  def get_abort_evaluation(self):
4136  """get_abort_evaluation(ScoreAccumulator self) -> bool"""
4137  return _IMP_kernel.ScoreAccumulator_get_abort_evaluation(self)
4138 
4139 
4140  def get_is_evaluate_if_below(self):
4141  """get_is_evaluate_if_below(ScoreAccumulator self) -> bool"""
4142  return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_below(self)
4143 
4144 
4145  def get_is_evaluate_if_good(self):
4146  """get_is_evaluate_if_good(ScoreAccumulator self) -> bool"""
4147  return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_good(self)
4148 
4149 
4150  def get_maximum(self):
4151  """get_maximum(ScoreAccumulator self) -> double"""
4152  return _IMP_kernel.ScoreAccumulator_get_maximum(self)
4153 
4154 
4155  def get_derivative_accumulator(self):
4156  """get_derivative_accumulator(ScoreAccumulator self) -> DerivativeAccumulator"""
4157  return _IMP_kernel.ScoreAccumulator_get_derivative_accumulator(self)
4158 
4159 
4160  def show(self, *args):
4161  """
4162  show(ScoreAccumulator self, _ostream out)
4163  show(ScoreAccumulator self)
4164  """
4165  return _IMP_kernel.ScoreAccumulator_show(self, *args)
4166 
4167 
4168  def __str__(self):
4169  """__str__(ScoreAccumulator self) -> std::string"""
4170  return _IMP_kernel.ScoreAccumulator___str__(self)
4171 
4172 
4173  def __repr__(self):
4174  """__repr__(ScoreAccumulator self) -> std::string"""
4175  return _IMP_kernel.ScoreAccumulator___repr__(self)
4176 
4177  __swig_destroy__ = _IMP_kernel.delete_ScoreAccumulator
4178  __del__ = lambda self: None
4179 ScoreAccumulator_swigregister = _IMP_kernel.ScoreAccumulator_swigregister
4180 ScoreAccumulator_swigregister(ScoreAccumulator)
4181 
4182 class ScoreState(ModelObject):
4183  """Proxy of C++ IMP::ScoreState class"""
4184  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4185 
4186  def set_can_skip(self, can_skip):
4187  """set_can_skip(ScoreState self, bool can_skip)"""
4188  return _IMP_kernel.ScoreState_set_can_skip(self, can_skip)
4189 
4190 
4191  def __init__(self, m, name):
4192  """__init__(IMP::ScoreState self, Model m, std::string name) -> ScoreState"""
4193  if self.__class__ == ScoreState:
4194  _self = None
4195  else:
4196  _self = self
4197  this = _IMP_kernel.new_ScoreState(_self, m, name)
4198  try:
4199  self.this.append(this)
4200  except:
4201  self.this = this
4202 
4203  if self.__class__ != ScoreState:
4204  _director_objects.register(self)
4205 
4206 
4207 
4208 
4209  def before_evaluate(self):
4210  """before_evaluate(ScoreState self)"""
4211  return _IMP_kernel.ScoreState_before_evaluate(self)
4212 
4213 
4214  def after_evaluate(self, accpt):
4215  """after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
4216  return _IMP_kernel.ScoreState_after_evaluate(self, accpt)
4217 
4218 
4219  def get_can_skip(self):
4220  """get_can_skip(ScoreState self) -> bool"""
4221  return _IMP_kernel.ScoreState_get_can_skip(self)
4222 
4223 
4224  def get_has_update_order(self):
4225  """get_has_update_order(ScoreState self) -> bool"""
4226  return _IMP_kernel.ScoreState_get_has_update_order(self)
4227 
4228 
4229  def get_update_order(self):
4230  """get_update_order(ScoreState self) -> unsigned int"""
4231  return _IMP_kernel.ScoreState_get_update_order(self)
4232 
4233 
4234  def handle_set_has_required_score_states(self, tf):
4235  """handle_set_has_required_score_states(ScoreState self, bool tf)"""
4236  return _IMP_kernel.ScoreState_handle_set_has_required_score_states(self, tf)
4237 
4238 
4239  def do_before_evaluate(self):
4240  """do_before_evaluate(ScoreState self)"""
4241  return _IMP_kernel.ScoreState_do_before_evaluate(self)
4242 
4243 
4244  def do_after_evaluate(self, accpt):
4245  """do_after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
4246  return _IMP_kernel.ScoreState_do_after_evaluate(self, accpt)
4247 
4248  __swig_destroy__ = _IMP_kernel.delete_ScoreState
4249  __del__ = lambda self: None
4250 
4251  def __str__(self):
4252  """__str__(ScoreState self) -> std::string"""
4253  return _IMP_kernel.ScoreState___str__(self)
4254 
4255 
4256  def __repr__(self):
4257  """__repr__(ScoreState self) -> std::string"""
4258  return _IMP_kernel.ScoreState___repr__(self)
4259 
4260 
4261  @staticmethod
4262  def get_from(o):
4263  return _object_cast_to_ScoreState(o)
4264 
4265 
4266  def get_type_name(self):
4267  return self.__class__.__name__
4268  def do_show(self, out):
4269  pass
4270  def get_version_info(self):
4271  if"IMP" == "IMP":
4272  return VersionInfo(self.__module__,
4273  __import__(self.__module__).get_module_version())
4274  else:
4275  return IMP.VersionInfo(self.__module__,
4276  __import__(self.__module__).get_module_version())
4277  @staticmethod
4278  def get_from(o):
4279  return _object_cast_to_ScoreState(o)
4280 
4281  def __disown__(self):
4282  self.this.disown()
4283  _IMP_kernel.disown_ScoreState(self)
4284  return weakref_proxy(self)
4285 
4286  def do_destroy(self):
4287  """do_destroy(ScoreState self)"""
4288  return _IMP_kernel.ScoreState_do_destroy(self)
4289 
4290 
4291  def do_get_inputs(self):
4292  """do_get_inputs(ScoreState self) -> IMP::ModelObjectsTemp"""
4293  return _IMP_kernel.ScoreState_do_get_inputs(self)
4294 
4295 
4296  def do_get_outputs(self):
4297  """do_get_outputs(ScoreState self) -> IMP::ModelObjectsTemp"""
4298  return _IMP_kernel.ScoreState_do_get_outputs(self)
4299 
4300 
4301  def do_get_interactions(self):
4302  """do_get_interactions(ScoreState self) -> IMP::ModelObjectsTemps"""
4303  return _IMP_kernel.ScoreState_do_get_interactions(self)
4304 
4305 ScoreState_swigregister = _IMP_kernel.ScoreState_swigregister
4306 ScoreState_swigregister(ScoreState)
4307 
4308 
4309 def get_update_order(input):
4310  """get_update_order(IMP::ScoreStatesTemp input) -> IMP::ScoreStatesTemp"""
4311  return _IMP_kernel.get_update_order(input)
4312 class Constraint(ScoreState):
4313  """Proxy of C++ IMP::Constraint class"""
4314  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4315 
4316  def __init__(self, *args):
4317  """
4318  __init__(IMP::Constraint self, Model m, std::string name) -> Constraint
4319  __init__(IMP::Constraint self, Model m) -> Constraint
4320  """
4321  if self.__class__ == Constraint:
4322  _self = None
4323  else:
4324  _self = self
4325  this = _IMP_kernel.new_Constraint(_self, *args)
4326  try:
4327  self.this.append(this)
4328  except:
4329  self.this = this
4330 
4331  if self.__class__ != Constraint:
4332  _director_objects.register(self)
4333 
4334 
4335 
4336 
4337  def do_update_attributes(self):
4338  """do_update_attributes(Constraint self)"""
4339  return _IMP_kernel.Constraint_do_update_attributes(self)
4340 
4341 
4342  def do_update_derivatives(self, da):
4343  """do_update_derivatives(Constraint self, DerivativeAccumulator da)"""
4344  return _IMP_kernel.Constraint_do_update_derivatives(self, da)
4345 
4346 
4347  def do_before_evaluate(self):
4348  """do_before_evaluate(Constraint self)"""
4349  return _IMP_kernel.Constraint_do_before_evaluate(self)
4350 
4351 
4352  def do_after_evaluate(self, da):
4353  """do_after_evaluate(Constraint self, DerivativeAccumulator da)"""
4354  return _IMP_kernel.Constraint_do_after_evaluate(self, da)
4355 
4356  __swig_destroy__ = _IMP_kernel.delete_Constraint
4357  __del__ = lambda self: None
4358 
4359  def __str__(self):
4360  """__str__(Constraint self) -> std::string"""
4361  return _IMP_kernel.Constraint___str__(self)
4362 
4363 
4364  def __repr__(self):
4365  """__repr__(Constraint self) -> std::string"""
4366  return _IMP_kernel.Constraint___repr__(self)
4367 
4368 
4369  @staticmethod
4370  def get_from(o):
4371  return _object_cast_to_Constraint(o)
4372 
4373 
4374  def get_type_name(self):
4375  return self.__class__.__name__
4376  def do_show(self, out):
4377  pass
4378  def get_version_info(self):
4379  if"IMP" == "IMP":
4380  return VersionInfo(self.__module__,
4381  __import__(self.__module__).get_module_version())
4382  else:
4383  return IMP.VersionInfo(self.__module__,
4384  __import__(self.__module__).get_module_version())
4385  @staticmethod
4386  def get_from(o):
4387  return _object_cast_to_Constraint(o)
4388 
4389  def __disown__(self):
4390  self.this.disown()
4391  _IMP_kernel.disown_Constraint(self)
4392  return weakref_proxy(self)
4393 
4394  def do_destroy(self):
4395  """do_destroy(Constraint self)"""
4396  return _IMP_kernel.Constraint_do_destroy(self)
4397 
4398 
4399  def do_get_inputs(self):
4400  """do_get_inputs(Constraint self) -> IMP::ModelObjectsTemp"""
4401  return _IMP_kernel.Constraint_do_get_inputs(self)
4402 
4403 
4404  def do_get_outputs(self):
4405  """do_get_outputs(Constraint self) -> IMP::ModelObjectsTemp"""
4406  return _IMP_kernel.Constraint_do_get_outputs(self)
4407 
4408 
4409  def do_get_interactions(self):
4410  """do_get_interactions(Constraint self) -> IMP::ModelObjectsTemps"""
4411  return _IMP_kernel.Constraint_do_get_interactions(self)
4412 
4413 Constraint_swigregister = _IMP_kernel.Constraint_swigregister
4414 Constraint_swigregister(Constraint)
4415 
4416 class Container(ModelObject):
4417  """Proxy of C++ IMP::Container class"""
4418  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4419 
4420  def __init__(self, *args):
4421  """
4422  __init__(IMP::Container self, Model m, std::string name) -> Container
4423  __init__(IMP::Container self, Model m) -> Container
4424  """
4425  if self.__class__ == Container:
4426  _self = None
4427  else:
4428  _self = self
4429  this = _IMP_kernel.new_Container(_self, *args)
4430  try:
4431  self.this.append(this)
4432  except:
4433  self.this = this
4434 
4435  if self.__class__ != Container:
4436  _director_objects.register(self)
4437 
4438 
4439 
4440 
4441  def do_get_contents_hash(self):
4442  """do_get_contents_hash(Container self) -> std::size_t"""
4443  return _IMP_kernel.Container_do_get_contents_hash(self)
4444 
4445 
4446  def get_all_possible_indexes(self):
4447  """get_all_possible_indexes(Container self) -> IMP::ParticleIndexes"""
4448  return _IMP_kernel.Container_get_all_possible_indexes(self)
4449 
4450 
4451  def get_contents_hash(self):
4452  """get_contents_hash(Container self) -> std::size_t"""
4453  return _IMP_kernel.Container_get_contents_hash(self)
4454 
4455 
4456  def do_get_outputs(self):
4457  """do_get_outputs(Container self) -> IMP::ModelObjectsTemp"""
4458  return _IMP_kernel.Container_do_get_outputs(self)
4459 
4460 
4461  def get_is_decomposable(self):
4462  """get_is_decomposable(Container self) -> bool"""
4463  return _IMP_kernel.Container_get_is_decomposable(self)
4464 
4465 
4466  def validate_readable(self):
4467  """validate_readable(Container self)"""
4468  return _IMP_kernel.Container_validate_readable(self)
4469 
4470 
4471  def validate_writable(self):
4472  """validate_writable(Container self)"""
4473  return _IMP_kernel.Container_validate_writable(self)
4474 
4475 
4476  def set_is_readable(self, tf):
4477  """set_is_readable(Container self, bool tf)"""
4478  return _IMP_kernel.Container_set_is_readable(self, tf)
4479 
4480 
4481  def set_is_writable(self, tf):
4482  """set_is_writable(Container self, bool tf)"""
4483  return _IMP_kernel.Container_set_is_writable(self, tf)
4484 
4485  __swig_destroy__ = _IMP_kernel.delete_Container
4486  __del__ = lambda self: None
4487 
4488  def __str__(self):
4489  """__str__(Container self) -> std::string"""
4490  return _IMP_kernel.Container___str__(self)
4491 
4492 
4493  def __repr__(self):
4494  """__repr__(Container self) -> std::string"""
4495  return _IMP_kernel.Container___repr__(self)
4496 
4497 
4498  @staticmethod
4499  def get_from(o):
4500  return _object_cast_to_Container(o)
4501 
4502 
4503  def get_type_name(self):
4504  return self.__class__.__name__
4505  def do_show(self, out):
4506  pass
4507  def get_version_info(self):
4508  if"IMP" == "IMP":
4509  return VersionInfo(self.__module__,
4510  __import__(self.__module__).get_module_version())
4511  else:
4512  return IMP.VersionInfo(self.__module__,
4513  __import__(self.__module__).get_module_version())
4514  @staticmethod
4515  def get_from(o):
4516  return _object_cast_to_Container(o)
4517 
4518  def __disown__(self):
4519  self.this.disown()
4520  _IMP_kernel.disown_Container(self)
4521  return weakref_proxy(self)
4522 
4523  def do_destroy(self):
4524  """do_destroy(Container self)"""
4525  return _IMP_kernel.Container_do_destroy(self)
4526 
4527 
4528  def handle_set_has_required_score_states(self, arg0):
4529  """handle_set_has_required_score_states(Container self, bool arg0)"""
4530  return _IMP_kernel.Container_handle_set_has_required_score_states(self, arg0)
4531 
4532 
4533  def do_get_inputs(self):
4534  """do_get_inputs(Container self) -> IMP::ModelObjectsTemp"""
4535  return _IMP_kernel.Container_do_get_inputs(self)
4536 
4537 
4538  def do_get_interactions(self):
4539  """do_get_interactions(Container self) -> IMP::ModelObjectsTemps"""
4540  return _IMP_kernel.Container_do_get_interactions(self)
4541 
4542 Container_swigregister = _IMP_kernel.Container_swigregister
4543 Container_swigregister(Container)
4544 
4545 class RestraintInfo(Object):
4546  """Proxy of C++ IMP::RestraintInfo class"""
4547  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4548 
4549  def __init__(self, *args):
4550  """
4551  __init__(IMP::RestraintInfo self, std::string name) -> RestraintInfo
4552  __init__(IMP::RestraintInfo self) -> RestraintInfo
4553  """
4554  this = _IMP_kernel.new_RestraintInfo(*args)
4555  try:
4556  self.this.append(this)
4557  except:
4558  self.this = this
4559 
4560  def add_int(self, key, value):
4561  """add_int(RestraintInfo self, std::string key, int value)"""
4562  return _IMP_kernel.RestraintInfo_add_int(self, key, value)
4563 
4564 
4565  def get_number_of_int(self):
4566  """get_number_of_int(RestraintInfo self) -> unsigned int"""
4567  return _IMP_kernel.RestraintInfo_get_number_of_int(self)
4568 
4569 
4570  def get_int_key(self, i):
4571  """get_int_key(RestraintInfo self, unsigned int i) -> std::string"""
4572  return _IMP_kernel.RestraintInfo_get_int_key(self, i)
4573 
4574 
4575  def get_int_value(self, i):
4576  """get_int_value(RestraintInfo self, unsigned int i) -> int"""
4577  return _IMP_kernel.RestraintInfo_get_int_value(self, i)
4578 
4579 
4580  def add_float(self, key, value):
4581  """add_float(RestraintInfo self, std::string key, double value)"""
4582  return _IMP_kernel.RestraintInfo_add_float(self, key, value)
4583 
4584 
4585  def get_number_of_float(self):
4586  """get_number_of_float(RestraintInfo self) -> unsigned int"""
4587  return _IMP_kernel.RestraintInfo_get_number_of_float(self)
4588 
4589 
4590  def get_float_key(self, i):
4591  """get_float_key(RestraintInfo self, unsigned int i) -> std::string"""
4592  return _IMP_kernel.RestraintInfo_get_float_key(self, i)
4593 
4594 
4595  def get_float_value(self, i):
4596  """get_float_value(RestraintInfo self, unsigned int i) -> double"""
4597  return _IMP_kernel.RestraintInfo_get_float_value(self, i)
4598 
4599 
4600  def add_string(self, key, value):
4601  """add_string(RestraintInfo self, std::string key, std::string value)"""
4602  return _IMP_kernel.RestraintInfo_add_string(self, key, value)
4603 
4604 
4605  def get_number_of_string(self):
4606  """get_number_of_string(RestraintInfo self) -> unsigned int"""
4607  return _IMP_kernel.RestraintInfo_get_number_of_string(self)
4608 
4609 
4610  def get_string_key(self, i):
4611  """get_string_key(RestraintInfo self, unsigned int i) -> std::string"""
4612  return _IMP_kernel.RestraintInfo_get_string_key(self, i)
4613 
4614 
4615  def get_string_value(self, i):
4616  """get_string_value(RestraintInfo self, unsigned int i) -> std::string"""
4617  return _IMP_kernel.RestraintInfo_get_string_value(self, i)
4618 
4619 
4620  def add_filename(self, key, value):
4621  """add_filename(RestraintInfo self, std::string key, std::string value)"""
4622  return _IMP_kernel.RestraintInfo_add_filename(self, key, value)
4623 
4624 
4625  def get_number_of_filename(self):
4626  """get_number_of_filename(RestraintInfo self) -> unsigned int"""
4627  return _IMP_kernel.RestraintInfo_get_number_of_filename(self)
4628 
4629 
4630  def get_filename_key(self, i):
4631  """get_filename_key(RestraintInfo self, unsigned int i) -> std::string"""
4632  return _IMP_kernel.RestraintInfo_get_filename_key(self, i)
4633 
4634 
4635  def get_filename_value(self, i):
4636  """get_filename_value(RestraintInfo self, unsigned int i) -> std::string"""
4637  return _IMP_kernel.RestraintInfo_get_filename_value(self, i)
4638 
4639 
4640  def add_floats(self, key, value):
4641  """add_floats(RestraintInfo self, std::string key, IMP::Floats value)"""
4642  return _IMP_kernel.RestraintInfo_add_floats(self, key, value)
4643 
4644 
4645  def get_number_of_floats(self):
4646  """get_number_of_floats(RestraintInfo self) -> unsigned int"""
4647  return _IMP_kernel.RestraintInfo_get_number_of_floats(self)
4648 
4649 
4650  def get_floats_key(self, i):
4651  """get_floats_key(RestraintInfo self, unsigned int i) -> std::string"""
4652  return _IMP_kernel.RestraintInfo_get_floats_key(self, i)
4653 
4654 
4655  def get_floats_value(self, i):
4656  """get_floats_value(RestraintInfo self, unsigned int i) -> IMP::Floats"""
4657  return _IMP_kernel.RestraintInfo_get_floats_value(self, i)
4658 
4659 
4660  def add_ints(self, key, value):
4661  """add_ints(RestraintInfo self, std::string key, IMP::Ints value)"""
4662  return _IMP_kernel.RestraintInfo_add_ints(self, key, value)
4663 
4664 
4665  def get_number_of_ints(self):
4666  """get_number_of_ints(RestraintInfo self) -> unsigned int"""
4667  return _IMP_kernel.RestraintInfo_get_number_of_ints(self)
4668 
4669 
4670  def get_ints_key(self, i):
4671  """get_ints_key(RestraintInfo self, unsigned int i) -> std::string"""
4672  return _IMP_kernel.RestraintInfo_get_ints_key(self, i)
4673 
4674 
4675  def get_ints_value(self, i):
4676  """get_ints_value(RestraintInfo self, unsigned int i) -> IMP::Ints"""
4677  return _IMP_kernel.RestraintInfo_get_ints_value(self, i)
4678 
4679 
4680  def add_strings(self, key, value):
4681  """add_strings(RestraintInfo self, std::string key, IMP::Strings value)"""
4682  return _IMP_kernel.RestraintInfo_add_strings(self, key, value)
4683 
4684 
4685  def get_number_of_strings(self):
4686  """get_number_of_strings(RestraintInfo self) -> unsigned int"""
4687  return _IMP_kernel.RestraintInfo_get_number_of_strings(self)
4688 
4689 
4690  def get_strings_key(self, i):
4691  """get_strings_key(RestraintInfo self, unsigned int i) -> std::string"""
4692  return _IMP_kernel.RestraintInfo_get_strings_key(self, i)
4693 
4694 
4695  def get_strings_value(self, i):
4696  """get_strings_value(RestraintInfo self, unsigned int i) -> IMP::Strings"""
4697  return _IMP_kernel.RestraintInfo_get_strings_value(self, i)
4698 
4699 
4700  def add_filenames(self, key, value):
4701  """add_filenames(RestraintInfo self, std::string key, IMP::Strings value)"""
4702  return _IMP_kernel.RestraintInfo_add_filenames(self, key, value)
4703 
4704 
4705  def get_number_of_filenames(self):
4706  """get_number_of_filenames(RestraintInfo self) -> unsigned int"""
4707  return _IMP_kernel.RestraintInfo_get_number_of_filenames(self)
4708 
4709 
4710  def get_filenames_key(self, i):
4711  """get_filenames_key(RestraintInfo self, unsigned int i) -> std::string"""
4712  return _IMP_kernel.RestraintInfo_get_filenames_key(self, i)
4713 
4714 
4715  def get_filenames_value(self, i):
4716  """get_filenames_value(RestraintInfo self, unsigned int i) -> IMP::Strings"""
4717  return _IMP_kernel.RestraintInfo_get_filenames_value(self, i)
4718 
4719 
4720  def add_particle_indexes(self, key, value):
4721  """add_particle_indexes(RestraintInfo self, std::string key, IMP::ParticleIndexes value)"""
4722  return _IMP_kernel.RestraintInfo_add_particle_indexes(self, key, value)
4723 
4724 
4725  def get_number_of_particle_indexes(self):
4726  """get_number_of_particle_indexes(RestraintInfo self) -> unsigned int"""
4727  return _IMP_kernel.RestraintInfo_get_number_of_particle_indexes(self)
4728 
4729 
4730  def get_particle_indexes_key(self, i):
4731  """get_particle_indexes_key(RestraintInfo self, unsigned int i) -> std::string"""
4732  return _IMP_kernel.RestraintInfo_get_particle_indexes_key(self, i)
4733 
4734 
4735  def get_particle_indexes_value(self, i):
4736  """get_particle_indexes_value(RestraintInfo self, unsigned int i) -> IMP::ParticleIndexes"""
4737  return _IMP_kernel.RestraintInfo_get_particle_indexes_value(self, i)
4738 
4739 
4740  def get_version_info(self):
4741  """get_version_info(RestraintInfo self) -> VersionInfo"""
4742  return _IMP_kernel.RestraintInfo_get_version_info(self)
4743 
4744 
4745  def __str__(self):
4746  """__str__(RestraintInfo self) -> std::string"""
4747  return _IMP_kernel.RestraintInfo___str__(self)
4748 
4749 
4750  def __repr__(self):
4751  """__repr__(RestraintInfo self) -> std::string"""
4752  return _IMP_kernel.RestraintInfo___repr__(self)
4753 
4754 
4755  @staticmethod
4756  def get_from(o):
4757  return _object_cast_to_RestraintInfo(o)
4758 
4759 RestraintInfo_swigregister = _IMP_kernel.RestraintInfo_swigregister
4760 RestraintInfo_swigregister(RestraintInfo)
4761 
4762 class Restraint(ModelObject):
4763  """Proxy of C++ IMP::Restraint class"""
4764  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4765 
4766  def __init__(self, m, name):
4767  """__init__(IMP::Restraint self, Model m, std::string name) -> Restraint"""
4768  if self.__class__ == Restraint:
4769  _self = None
4770  else:
4771  _self = self
4772  this = _IMP_kernel.new_Restraint(_self, m, name)
4773  try:
4774  self.this.append(this)
4775  except:
4776  self.this = this
4777 
4778  if self.__class__ != Restraint:
4779  _director_objects.register(self)
4780 
4781 
4782 
4783 
4784  def get_score(self):
4785  """get_score(Restraint self) -> double"""
4786  return _IMP_kernel.Restraint_get_score(self)
4787 
4788 
4789  def evaluate(self, calc_derivs):
4790  """evaluate(Restraint self, bool calc_derivs) -> double"""
4791  return _IMP_kernel.Restraint_evaluate(self, calc_derivs)
4792 
4793 
4794  def evaluate_moved(self, calc_derivs, moved_pis, reset_pis):
4795  """evaluate_moved(Restraint self, bool calc_derivs, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
4796  return _IMP_kernel.Restraint_evaluate_moved(self, calc_derivs, moved_pis, reset_pis)
4797 
4798 
4799  def evaluate_moved_if_below(self, calc_derivatives, moved_pis, reset_pis, max):
4800  """evaluate_moved_if_below(Restraint self, bool calc_derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, double max) -> double"""
4801  return _IMP_kernel.Restraint_evaluate_moved_if_below(self, calc_derivatives, moved_pis, reset_pis, max)
4802 
4803 
4804  def evaluate_moved_if_good(self, calc_derivatives, moved_pis, reset_pis):
4805  """evaluate_moved_if_good(Restraint self, bool calc_derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
4806  return _IMP_kernel.Restraint_evaluate_moved_if_good(self, calc_derivatives, moved_pis, reset_pis)
4807 
4808 
4809  def evaluate_if_good(self, calc_derivatives):
4810  """evaluate_if_good(Restraint self, bool calc_derivatives) -> double"""
4811  return _IMP_kernel.Restraint_evaluate_if_good(self, calc_derivatives)
4812 
4813 
4814  def evaluate_if_below(self, calc_derivatives, max):
4815  """evaluate_if_below(Restraint self, bool calc_derivatives, double max) -> double"""
4816  return _IMP_kernel.Restraint_evaluate_if_below(self, calc_derivatives, max)
4817 
4818 
4819  def unprotected_evaluate(self, da):
4820  """unprotected_evaluate(Restraint self, DerivativeAccumulator da) -> double"""
4821  return _IMP_kernel.Restraint_unprotected_evaluate(self, da)
4822 
4823 
4824  def unprotected_evaluate_moved(self, da, moved_pis, reset_pis):
4825  """unprotected_evaluate_moved(Restraint self, DerivativeAccumulator da, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
4826  return _IMP_kernel.Restraint_unprotected_evaluate_moved(self, da, moved_pis, reset_pis)
4827 
4828 
4829  def unprotected_evaluate_if_good(self, da, max):
4830  """unprotected_evaluate_if_good(Restraint self, DerivativeAccumulator da, double max) -> double"""
4831  return _IMP_kernel.Restraint_unprotected_evaluate_if_good(self, da, max)
4832 
4833 
4834  def unprotected_evaluate_if_below(self, da, max):
4835  """unprotected_evaluate_if_below(Restraint self, DerivativeAccumulator da, double max) -> double"""
4836  return _IMP_kernel.Restraint_unprotected_evaluate_if_below(self, da, max)
4837 
4838 
4839  def unprotected_evaluate_moved_if_below(self, da, moved_pis, reset_pis, max):
4840  """unprotected_evaluate_moved_if_below(Restraint self, DerivativeAccumulator da, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, double max) -> double"""
4841  return _IMP_kernel.Restraint_unprotected_evaluate_moved_if_below(self, da, moved_pis, reset_pis, max)
4842 
4843 
4844  def unprotected_evaluate_moved_if_good(self, da, moved_pis, reset_pis, max):
4845  """unprotected_evaluate_moved_if_good(Restraint self, DerivativeAccumulator da, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, double max) -> double"""
4846  return _IMP_kernel.Restraint_unprotected_evaluate_moved_if_good(self, da, moved_pis, reset_pis, max)
4847 
4848 
4849  def get_static_info(self):
4850  """get_static_info(Restraint self) -> RestraintInfo"""
4851  return _IMP_kernel.Restraint_get_static_info(self)
4852 
4853 
4854  def get_dynamic_info(self):
4855  """get_dynamic_info(Restraint self) -> RestraintInfo"""
4856  return _IMP_kernel.Restraint_get_dynamic_info(self)
4857 
4858 
4859  def add_score_and_derivatives(self, sa):
4860  """add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
4861  return _IMP_kernel.Restraint_add_score_and_derivatives(self, sa)
4862 
4863 
4864  def add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis):
4865  """add_score_and_derivatives_moved(Restraint self, ScoreAccumulator sa, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
4866  return _IMP_kernel.Restraint_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis)
4867 
4868 
4869  def create_decomposition(self):
4870  """create_decomposition(Restraint self) -> Restraint"""
4871  return _IMP_kernel.Restraint_create_decomposition(self)
4872 
4873 
4874  def create_current_decomposition(self):
4875  """create_current_decomposition(Restraint self) -> Restraint"""
4876  return _IMP_kernel.Restraint_create_current_decomposition(self)
4877 
4878 
4879  def set_weight(self, weight):
4880  """set_weight(Restraint self, IMP::Float weight)"""
4881  return _IMP_kernel.Restraint_set_weight(self, weight)
4882 
4883 
4884  def get_weight(self):
4885  """get_weight(Restraint self) -> IMP::Float"""
4886  return _IMP_kernel.Restraint_get_weight(self)
4887 
4888 
4889  def get_maximum_score(self):
4890  """get_maximum_score(Restraint self) -> double"""
4891  return _IMP_kernel.Restraint_get_maximum_score(self)
4892 
4893 
4894  def set_maximum_score(self, s):
4895  """set_maximum_score(Restraint self, double s)"""
4896  return _IMP_kernel.Restraint_set_maximum_score(self, s)
4897 
4898 
4899  def create_scoring_function(self, *args):
4900  """
4901  create_scoring_function(Restraint self, double weight=1.0, double max) -> ScoringFunction
4902  create_scoring_function(Restraint self, double weight=1.0) -> ScoringFunction
4903  create_scoring_function(Restraint self) -> ScoringFunction
4904  """
4905  return _IMP_kernel.Restraint_create_scoring_function(self, *args)
4906 
4907 
4908  def set_last_score(self, s):
4909  """set_last_score(Restraint self, double s)"""
4910  return _IMP_kernel.Restraint_set_last_score(self, s)
4911 
4912 
4913  def set_last_last_score(self, s):
4914  """set_last_last_score(Restraint self, double s)"""
4915  return _IMP_kernel.Restraint_set_last_last_score(self, s)
4916 
4917 
4918  def get_last_score(self):
4919  """get_last_score(Restraint self) -> double"""
4920  return _IMP_kernel.Restraint_get_last_score(self)
4921 
4922 
4923  def get_last_last_score(self):
4924  """get_last_last_score(Restraint self) -> double"""
4925  return _IMP_kernel.Restraint_get_last_last_score(self)
4926 
4927 
4928  def get_was_good(self):
4929  """get_was_good(Restraint self) -> bool"""
4930  return _IMP_kernel.Restraint_get_was_good(self)
4931 
4932  __swig_destroy__ = _IMP_kernel.delete_Restraint
4933  __del__ = lambda self: None
4934 
4935  def do_create_decomposition(self):
4936  """do_create_decomposition(Restraint self) -> IMP::Restraints"""
4937  return _IMP_kernel.Restraint_do_create_decomposition(self)
4938 
4939 
4940  def do_create_current_decomposition(self):
4941  """do_create_current_decomposition(Restraint self) -> IMP::Restraints"""
4942  return _IMP_kernel.Restraint_do_create_current_decomposition(self)
4943 
4944 
4945  def do_add_score_and_derivatives(self, sa):
4946  """do_add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
4947  return _IMP_kernel.Restraint_do_add_score_and_derivatives(self, sa)
4948 
4949 
4950  def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis):
4951  """do_add_score_and_derivatives_moved(Restraint self, ScoreAccumulator sa, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
4952  return _IMP_kernel.Restraint_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis)
4953 
4954 
4955  def do_get_outputs(self):
4956  """do_get_outputs(Restraint self) -> IMP::ModelObjectsTemp"""
4957  return _IMP_kernel.Restraint_do_get_outputs(self)
4958 
4959 
4960  def __str__(self):
4961  """__str__(Restraint self) -> std::string"""
4962  return _IMP_kernel.Restraint___str__(self)
4963 
4964 
4965  def __repr__(self):
4966  """__repr__(Restraint self) -> std::string"""
4967  return _IMP_kernel.Restraint___repr__(self)
4968 
4969 
4970  @staticmethod
4971  def get_from(o):
4972  return _object_cast_to_Restraint(o)
4973 
4974 
4975  def get_type_name(self):
4976  return self.__class__.__name__
4977  def do_show(self, out):
4978  pass
4979  def get_version_info(self):
4980  if"IMP" == "IMP":
4981  return VersionInfo(self.__module__,
4982  __import__(self.__module__).get_module_version())
4983  else:
4984  return IMP.VersionInfo(self.__module__,
4985  __import__(self.__module__).get_module_version())
4986  @staticmethod
4987  def get_from(o):
4988  return _object_cast_to_Restraint(o)
4989 
4990  def __disown__(self):
4991  self.this.disown()
4992  _IMP_kernel.disown_Restraint(self)
4993  return weakref_proxy(self)
4994 
4995  def do_destroy(self):
4996  """do_destroy(Restraint self)"""
4997  return _IMP_kernel.Restraint_do_destroy(self)
4998 
4999 
5000  def handle_set_has_required_score_states(self, arg0):
5001  """handle_set_has_required_score_states(Restraint self, bool arg0)"""
5002  return _IMP_kernel.Restraint_handle_set_has_required_score_states(self, arg0)
5003 
5004 
5005  def do_get_inputs(self):
5006  """do_get_inputs(Restraint self) -> IMP::ModelObjectsTemp"""
5007  return _IMP_kernel.Restraint_do_get_inputs(self)
5008 
5009 
5010  def do_get_interactions(self):
5011  """do_get_interactions(Restraint self) -> IMP::ModelObjectsTemps"""
5012  return _IMP_kernel.Restraint_do_get_interactions(self)
5013 
5014 Restraint_swigregister = _IMP_kernel.Restraint_swigregister
5015 Restraint_swigregister(Restraint)
5016 
5017 class _RestraintsAdaptor(_InputAdaptor):
5018  """Proxy of C++ IMP::RestraintsAdaptor class"""
5019  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5020  __repr__ = _swig_repr
5021 
5022  def __init__(self, *args):
5023  """
5024  __init__(IMP::RestraintsAdaptor self) -> _RestraintsAdaptor
5025  __init__(IMP::RestraintsAdaptor self, IMP::Restraints const & sf) -> _RestraintsAdaptor
5026  __init__(IMP::RestraintsAdaptor self, IMP::RestraintsTemp const & sf) -> _RestraintsAdaptor
5027  __init__(IMP::RestraintsAdaptor self, Restraint sf) -> _RestraintsAdaptor
5028  """
5029  this = _IMP_kernel.new__RestraintsAdaptor(*args)
5030  try:
5031  self.this.append(this)
5032  except:
5033  self.this = this
5034  __swig_destroy__ = _IMP_kernel.delete__RestraintsAdaptor
5035  __del__ = lambda self: None
5036 _RestraintsAdaptor_swigregister = _IMP_kernel._RestraintsAdaptor_swigregister
5037 _RestraintsAdaptor_swigregister(_RestraintsAdaptor)
5038 
5039 class RestraintSet(Restraint):
5040  """Proxy of C++ IMP::RestraintSet class"""
5041  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5042 
5043  def __init__(self, *args):
5044  """
5045  __init__(IMP::RestraintSet self, Model m, double weight, std::string const & name) -> RestraintSet
5046  __init__(IMP::RestraintSet self, Model m, double weight) -> RestraintSet
5047  __init__(IMP::RestraintSet self, Model m, std::string const & name) -> RestraintSet
5048  __init__(IMP::RestraintSet self, Model m) -> RestraintSet
5049  __init__(IMP::RestraintSet self, IMP::RestraintsTemp const & rs, double weight, std::string const & name) -> RestraintSet
5050  __init__(IMP::RestraintSet self, IMP::RestraintsTemp const & rs, double weight) -> RestraintSet
5051  """
5052  if self.__class__ == RestraintSet:
5053  _self = None
5054  else:
5055  _self = self
5056  this = _IMP_kernel.new_RestraintSet(_self, *args)
5057  try:
5058  self.this.append(this)
5059  except:
5060  self.this = this
5061 
5062  if self.__class__ != RestraintSet:
5063  _director_objects.register(self)
5064 
5065 
5066 
5067 
5068  def unprotected_evaluate(self, da):
5069  """unprotected_evaluate(RestraintSet self, DerivativeAccumulator da) -> double"""
5070  return _IMP_kernel.RestraintSet_unprotected_evaluate(self, da)
5071 
5072 
5073  def get_type_name(self):
5074  """get_type_name(RestraintSet self) -> std::string"""
5075  return _IMP_kernel.RestraintSet_get_type_name(self)
5076 
5077 
5078  def get_version_info(self):
5079  """get_version_info(RestraintSet self) -> VersionInfo"""
5080  return _IMP_kernel.RestraintSet_get_version_info(self)
5081 
5082 
5083  def remove_restraint(self, d):
5084  """remove_restraint(RestraintSet self, Restraint d)"""
5085  return _IMP_kernel.RestraintSet_remove_restraint(self, d)
5086 
5087 
5088  def remove_restraints(self, d):
5089  """remove_restraints(RestraintSet self, IMP::Restraints const & d)"""
5090  return _IMP_kernel.RestraintSet_remove_restraints(self, d)
5091 
5092 
5093  def set_restraints(self, ps):
5094  """set_restraints(RestraintSet self, IMP::Restraints const & ps)"""
5095  return _IMP_kernel.RestraintSet_set_restraints(self, ps)
5096 
5097 
5098  def set_restraints_order(self, objs):
5099  """set_restraints_order(RestraintSet self, IMP::Restraints const & objs)"""
5100  return _IMP_kernel.RestraintSet_set_restraints_order(self, objs)
5101 
5102 
5103  def add_restraint(self, obj):
5104  """add_restraint(RestraintSet self, Restraint obj) -> unsigned int"""
5105  return _IMP_kernel.RestraintSet_add_restraint(self, obj)
5106 
5107 
5108  def add_restraints(self, objs):
5109  """add_restraints(RestraintSet self, IMP::Restraints const & objs)"""
5110  return _IMP_kernel.RestraintSet_add_restraints(self, objs)
5111 
5112 
5113  def clear_restraints(self):
5114  """clear_restraints(RestraintSet self)"""
5115  return _IMP_kernel.RestraintSet_clear_restraints(self)
5116 
5117 
5118  def get_number_of_restraints(self):
5119  """get_number_of_restraints(RestraintSet self) -> unsigned int"""
5120  return _IMP_kernel.RestraintSet_get_number_of_restraints(self)
5121 
5122 
5123  def get_has_restraints(self):
5124  """get_has_restraints(RestraintSet self) -> bool"""
5125  return _IMP_kernel.RestraintSet_get_has_restraints(self)
5126 
5127 
5128  def get_restraint(self, i):
5129  """get_restraint(RestraintSet self, unsigned int i) -> Restraint"""
5130  return _IMP_kernel.RestraintSet_get_restraint(self, i)
5131 
5132 
5133  def get_restraints(self):
5134  """get_restraints(RestraintSet self) -> IMP::Restraints"""
5135  return _IMP_kernel.RestraintSet_get_restraints(self)
5136 
5137 
5138  def reserve_restraints(self, sz):
5139  """reserve_restraints(RestraintSet self, unsigned int sz)"""
5140  return _IMP_kernel.RestraintSet_reserve_restraints(self, sz)
5141 
5142 
5143  def get_non_sets_and_sets(self):
5144  """get_non_sets_and_sets(RestraintSet self) -> std::pair< IMP::RestraintsTemp,IMP::RestraintSetsTemp >"""
5145  return _IMP_kernel.RestraintSet_get_non_sets_and_sets(self)
5146 
5147 
5148  def do_get_inputs(self):
5149  """do_get_inputs(RestraintSet self) -> IMP::ModelObjectsTemp"""
5150  return _IMP_kernel.RestraintSet_do_get_inputs(self)
5151 
5152 
5153  def create_scoring_function(self, *args):
5154  """
5155  create_scoring_function(RestraintSet self, double weight=1.0, double max) -> ScoringFunction
5156  create_scoring_function(RestraintSet self, double weight=1.0) -> ScoringFunction
5157  create_scoring_function(RestraintSet self) -> ScoringFunction
5158  """
5159  return _IMP_kernel.RestraintSet_create_scoring_function(self, *args)
5160 
5161 
5162  def get_last_score(self):
5163  """get_last_score(RestraintSet self) -> double"""
5164  return _IMP_kernel.RestraintSet_get_last_score(self)
5165 
5166 
5167  def get_last_last_score(self):
5168  """get_last_last_score(RestraintSet self) -> double"""
5169  return _IMP_kernel.RestraintSet_get_last_last_score(self)
5170 
5171 
5172  def __str__(self):
5173  """__str__(RestraintSet self) -> std::string"""
5174  return _IMP_kernel.RestraintSet___str__(self)
5175 
5176 
5177  def __repr__(self):
5178  """__repr__(RestraintSet self) -> std::string"""
5179  return _IMP_kernel.RestraintSet___repr__(self)
5180 
5181 
5182  @staticmethod
5183  def get_from(o):
5184  return _object_cast_to_RestraintSet(o)
5185 
5186 
5187  def get_type_name(self):
5188  return self.__class__.__name__
5189  def do_show(self, out):
5190  pass
5191  def get_version_info(self):
5192  if"IMP" == "IMP":
5193  return VersionInfo(self.__module__,
5194  __import__(self.__module__).get_module_version())
5195  else:
5196  return IMP.VersionInfo(self.__module__,
5197  __import__(self.__module__).get_module_version())
5198  @staticmethod
5199  def get_from(o):
5200  return _object_cast_to_RestraintSet(o)
5201 
5202  def __disown__(self):
5203  self.this.disown()
5204  _IMP_kernel.disown_RestraintSet(self)
5205  return weakref_proxy(self)
5206 
5207  def do_destroy(self):
5208  """do_destroy(RestraintSet self)"""
5209  return _IMP_kernel.RestraintSet_do_destroy(self)
5210 
5211 
5212  def handle_set_has_required_score_states(self, arg0):
5213  """handle_set_has_required_score_states(RestraintSet self, bool arg0)"""
5214  return _IMP_kernel.RestraintSet_handle_set_has_required_score_states(self, arg0)
5215 
5216 
5217  def do_get_outputs(self):
5218  """do_get_outputs(RestraintSet self) -> IMP::ModelObjectsTemp"""
5219  return _IMP_kernel.RestraintSet_do_get_outputs(self)
5220 
5221 
5222  def do_get_interactions(self):
5223  """do_get_interactions(RestraintSet self) -> IMP::ModelObjectsTemps"""
5224  return _IMP_kernel.RestraintSet_do_get_interactions(self)
5225 
5226 
5227  def do_create_decomposition(self):
5228  """do_create_decomposition(RestraintSet self) -> IMP::Restraints"""
5229  return _IMP_kernel.RestraintSet_do_create_decomposition(self)
5230 
5231 
5232  def do_create_current_decomposition(self):
5233  """do_create_current_decomposition(RestraintSet self) -> IMP::Restraints"""
5234  return _IMP_kernel.RestraintSet_do_create_current_decomposition(self)
5235 
5236 
5237  def do_add_score_and_derivatives(self, sa):
5238  """do_add_score_and_derivatives(RestraintSet self, ScoreAccumulator sa)"""
5239  return _IMP_kernel.RestraintSet_do_add_score_and_derivatives(self, sa)
5240 
5241 
5242  def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis):
5243  """do_add_score_and_derivatives_moved(RestraintSet self, ScoreAccumulator sa, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis)"""
5244  return _IMP_kernel.RestraintSet_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis)
5245 
5246 RestraintSet_swigregister = _IMP_kernel.RestraintSet_swigregister
5247 RestraintSet_swigregister(RestraintSet)
5248 
5249 
5250 def get_restraints(rs):
5251  """get_restraints(IMP::RestraintsTemp const & rs) -> IMP::RestraintsTemp"""
5252  return _IMP_kernel.get_restraints(rs)
5253 
5254 def _check_particle(p, a):
5255  if (not p.get_is_active()):
5256  raise ValueError("Inactive Particle")
5257  if (type(a)() == a):
5258  raise IndexError("Cannot use default Index")
5259  if (not p.has_attribute(a)):
5260  raise IndexError("Particle does not have attribute")
5261 
5262 class Particle(ModelObject):
5263  """Proxy of C++ IMP::Particle class"""
5264  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5265 
5266  def get_version_info(self):
5267  """get_version_info(Particle self) -> VersionInfo"""
5268  return _IMP_kernel.Particle_get_version_info(self)
5269 
5270 
5271  def __init__(self, *args):
5272  """
5273  __init__(IMP::Particle self, Model m, std::string name) -> Particle
5274  __init__(IMP::Particle self, Model m) -> Particle
5275  """
5276  this = _IMP_kernel.new_Particle(*args)
5277  try:
5278  self.this.append(this)
5279  except:
5280  self.this = this
5281 
5282  def get_float_keys(self):
5283  """get_float_keys(Particle self) -> IMP::FloatKeys"""
5284  return _IMP_kernel.Particle_get_float_keys(self)
5285 
5286 
5287  def get_floats_keys(self):
5288  """get_floats_keys(Particle self) -> IMP::FloatsKeys"""
5289  return _IMP_kernel.Particle_get_floats_keys(self)
5290 
5291 
5292  def get_int_keys(self):
5293  """get_int_keys(Particle self) -> IMP::IntKeys"""
5294  return _IMP_kernel.Particle_get_int_keys(self)
5295 
5296 
5297  def get_ints_keys(self):
5298  """get_ints_keys(Particle self) -> IMP::IntsKeys"""
5299  return _IMP_kernel.Particle_get_ints_keys(self)
5300 
5301 
5302  def get_string_keys(self):
5303  """get_string_keys(Particle self) -> IMP::StringKeys"""
5304  return _IMP_kernel.Particle_get_string_keys(self)
5305 
5306 
5307  def get_object_keys(self):
5308  """get_object_keys(Particle self) -> IMP::ObjectKeys"""
5309  return _IMP_kernel.Particle_get_object_keys(self)
5310 
5311 
5312  def add_cache_attribute(self, *args):
5313  """
5314  add_cache_attribute(Particle self, FloatKey name, IMP::Float value)
5315  add_cache_attribute(Particle self, FloatsKey name, IMP::Floats value)
5316  add_cache_attribute(Particle self, IntKey name, IMP::Int value)
5317  add_cache_attribute(Particle self, IntsKey name, IMP::Ints value)
5318  add_cache_attribute(Particle self, StringKey name, IMP::String value)
5319  add_cache_attribute(Particle self, ObjectKey name, Object value)
5320  add_cache_attribute(Particle self, IMP::WeakObjectKey name, Object value)
5321  """
5322  return _IMP_kernel.Particle_add_cache_attribute(self, *args)
5323 
5324 
5325  def get_weak_object_keys(self):
5326  """get_weak_object_keys(Particle self) -> IMP::WeakObjectKeys"""
5327  return _IMP_kernel.Particle_get_weak_object_keys(self)
5328 
5329 
5330  def add_to_derivative(self, key, value, da):
5331  """add_to_derivative(Particle self, FloatKey key, IMP::Float value, DerivativeAccumulator da)"""
5332  return _IMP_kernel.Particle_add_to_derivative(self, key, value, da)
5333 
5334 
5335  def set_is_optimized(self, k, tf):
5336  """set_is_optimized(Particle self, FloatKey k, bool tf)"""
5337  return _IMP_kernel.Particle_set_is_optimized(self, k, tf)
5338 
5339 
5340  def get_is_optimized(self, k):
5341  """get_is_optimized(Particle self, FloatKey k) -> bool"""
5342  return _IMP_kernel.Particle_get_is_optimized(self, k)
5343 
5344 
5345  def get_derivative(self, k):
5346  """get_derivative(Particle self, FloatKey k) -> IMP::Float"""
5347  return _IMP_kernel.Particle_get_derivative(self, k)
5348 
5349 
5350  def add_attribute(self, *args):
5351  """
5352  add_attribute(Particle self, FloatKey name, IMP::Float initial_value)
5353  add_attribute(Particle self, FloatsKey name, IMP::Floats initial_value)
5354  add_attribute(Particle self, IntKey name, IMP::Int initial_value)
5355  add_attribute(Particle self, IntsKey name, IMP::Ints initial_value)
5356  add_attribute(Particle self, StringKey name, IMP::String initial_value)
5357  add_attribute(Particle self, ObjectKey name, Object initial_value)
5358  add_attribute(Particle self, IMP::WeakObjectKey name, Object initial_value)
5359  add_attribute(Particle self, FloatKey name, IMP::Float const initial_value, bool optimized)
5360  add_attribute(Particle self, ParticleIndexKey k, Particle v)
5361  """
5362  return _IMP_kernel.Particle_add_attribute(self, *args)
5363 
5364 
5365  def has_attribute(self, *args):
5366  """
5367  has_attribute(Particle self, FloatKey name) -> bool
5368  has_attribute(Particle self, FloatsKey name) -> bool
5369  has_attribute(Particle self, IntKey name) -> bool
5370  has_attribute(Particle self, IntsKey name) -> bool
5371  has_attribute(Particle self, StringKey name) -> bool
5372  has_attribute(Particle self, ObjectKey name) -> bool
5373  has_attribute(Particle self, IMP::WeakObjectKey name) -> bool
5374  has_attribute(Particle self, ParticleIndexKey k) -> bool
5375  """
5376  return _IMP_kernel.Particle_has_attribute(self, *args)
5377 
5378 
5379  def set_value(self, *args):
5380  """
5381  set_value(Particle self, FloatKey name, IMP::Float value)
5382  set_value(Particle self, FloatsKey name, IMP::Floats value)
5383  set_value(Particle self, IntKey name, IMP::Int value)
5384  set_value(Particle self, IntsKey name, IMP::Ints value)
5385  set_value(Particle self, StringKey name, IMP::String value)
5386  set_value(Particle self, ObjectKey name, Object value)
5387  set_value(Particle self, IMP::WeakObjectKey name, Object value)
5388  set_value(Particle self, ParticleIndexKey k, Particle v)
5389  """
5390  return _IMP_kernel.Particle_set_value(self, *args)
5391 
5392 
5393  def get_value(self, *args):
5394  """
5395  get_value(Particle self, FloatKey name) -> IMP::Float
5396  get_value(Particle self, FloatsKey name) -> IMP::Floats
5397  get_value(Particle self, IntKey name) -> IMP::Int
5398  get_value(Particle self, IntsKey name) -> IMP::Ints
5399  get_value(Particle self, StringKey name) -> IMP::String
5400  get_value(Particle self, ObjectKey name) -> Object
5401  get_value(Particle self, IMP::WeakObjectKey name) -> Object
5402  get_value(Particle self, ParticleIndexKey k) -> Particle
5403  """
5404  return _IMP_kernel.Particle_get_value(self, *args)
5405 
5406 
5407  def remove_attribute(self, *args):
5408  """
5409  remove_attribute(Particle self, FloatKey name)
5410  remove_attribute(Particle self, FloatsKey name)
5411  remove_attribute(Particle self, IntKey name)
5412  remove_attribute(Particle self, IntsKey name)
5413  remove_attribute(Particle self, StringKey name)
5414  remove_attribute(Particle self, ObjectKey name)
5415  remove_attribute(Particle self, IMP::WeakObjectKey name)
5416  remove_attribute(Particle self, ParticleIndexKey k)
5417  """
5418  return _IMP_kernel.Particle_remove_attribute(self, *args)
5419 
5420 
5421  def get_particle_keys(self):
5422  """get_particle_keys(Particle self) -> IMP::ParticleIndexKeys"""
5423  return _IMP_kernel.Particle_get_particle_keys(self)
5424 
5425 
5426  def show(self, *args):
5427  """
5428  show(Particle self, _ostream out)
5429  show(Particle self)
5430  """
5431  return _IMP_kernel.Particle_show(self, *args)
5432 
5433 
5434  def get_is_active(self):
5435  """get_is_active(Particle self) -> bool"""
5436  return _IMP_kernel.Particle_get_is_active(self)
5437 
5438 
5439  def get_index(self):
5440  """get_index(Particle self) -> ParticleIndex"""
5441  return _IMP_kernel.Particle_get_index(self)
5442 
5443 
5444  def __eq__(self, *args):
5445  """
5446  __eq__(Particle self, Particle o) -> bool
5447  __eq__(Particle self, Decorator d) -> bool
5448  """
5449  return _IMP_kernel.Particle___eq__(self, *args)
5450 
5451 
5452  def __ne__(self, *args):
5453  """
5454  __ne__(Particle self, Particle o) -> bool
5455  __ne__(Particle self, Decorator d) -> bool
5456  """
5457  return _IMP_kernel.Particle___ne__(self, *args)
5458 
5459 
5460  def __le__(self, *args):
5461  """
5462  __le__(Particle self, Particle o) -> bool
5463  __le__(Particle self, Decorator d) -> bool
5464  """
5465  return _IMP_kernel.Particle___le__(self, *args)
5466 
5467 
5468  def __lt__(self, *args):
5469  """
5470  __lt__(Particle self, Particle o) -> bool
5471  __lt__(Particle self, Decorator d) -> bool
5472  """
5473  return _IMP_kernel.Particle___lt__(self, *args)
5474 
5475 
5476  def __ge__(self, *args):
5477  """
5478  __ge__(Particle self, Particle o) -> bool
5479  __ge__(Particle self, Decorator d) -> bool
5480  """
5481  return _IMP_kernel.Particle___ge__(self, *args)
5482 
5483 
5484  def __gt__(self, *args):
5485  """
5486  __gt__(Particle self, Particle o) -> bool
5487  __gt__(Particle self, Decorator d) -> bool
5488  """
5489  return _IMP_kernel.Particle___gt__(self, *args)
5490 
5491 
5492  __hash__ = ModelObject.__hash__
5493 
5494 
5495  def __str__(self):
5496  """__str__(Particle self) -> std::string"""
5497  return _IMP_kernel.Particle___str__(self)
5498 
5499 
5500  def __repr__(self):
5501  """__repr__(Particle self) -> std::string"""
5502  return _IMP_kernel.Particle___repr__(self)
5503 
5504 
5505  @staticmethod
5506  def get_from(o):
5507  return _object_cast_to_Particle(o)
5508 
5509 Particle_swigregister = _IMP_kernel.Particle_swigregister
5510 Particle_swigregister(Particle)
5511 
5512 class _ParticleAdaptor(_InputAdaptor):
5513  """Proxy of C++ IMP::ParticleAdaptor class"""
5514  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5515  __repr__ = _swig_repr
5516 
5517  def __init__(self, *args):
5518  """
5519  __init__(IMP::ParticleAdaptor self) -> _ParticleAdaptor
5520  __init__(IMP::ParticleAdaptor self, Particle p) -> _ParticleAdaptor
5521  __init__(IMP::ParticleAdaptor self, Decorator d) -> _ParticleAdaptor
5522  """
5523  this = _IMP_kernel.new__ParticleAdaptor(*args)
5524  try:
5525  self.this.append(this)
5526  except:
5527  self.this = this
5528 
5529  def get_model(self):
5530  """get_model(_ParticleAdaptor self) -> Model"""
5531  return _IMP_kernel._ParticleAdaptor_get_model(self)
5532 
5533 
5534  def get_particle_index(self):
5535  """get_particle_index(_ParticleAdaptor self) -> ParticleIndex"""
5536  return _IMP_kernel._ParticleAdaptor_get_particle_index(self)
5537 
5538  __swig_destroy__ = _IMP_kernel.delete__ParticleAdaptor
5539  __del__ = lambda self: None
5540 _ParticleAdaptor_swigregister = _IMP_kernel._ParticleAdaptor_swigregister
5541 _ParticleAdaptor_swigregister(_ParticleAdaptor)
5542 
5543 class _DependencyGraphVertexIndex(object):
5544  """Proxy of C++ IMP::DependencyGraphVertexIndex class"""
5545  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5546  __repr__ = _swig_repr
5547 
5548  def __init__(self):
5549  """__init__(IMP::DependencyGraphVertexIndex self) -> _DependencyGraphVertexIndex"""
5550  this = _IMP_kernel.new__DependencyGraphVertexIndex()
5551  try:
5552  self.this.append(this)
5553  except:
5554  self.this = this
5555  __swig_destroy__ = _IMP_kernel.delete__DependencyGraphVertexIndex
5556  __del__ = lambda self: None
5557 _DependencyGraphVertexIndex_swigregister = _IMP_kernel._DependencyGraphVertexIndex_swigregister
5558 _DependencyGraphVertexIndex_swigregister(_DependencyGraphVertexIndex)
5559 
5560 
5561 def show_as_graphviz(name, out):
5562  """show_as_graphviz(IMP::DependencyGraph const & name, TextOutput out)"""
5563  return _IMP_kernel.show_as_graphviz(name, out)
5564 
5565 def get_vertex_index(g):
5566  """get_vertex_index(IMP::DependencyGraph const & g) -> _DependencyGraphVertexIndex"""
5567  return _IMP_kernel.get_vertex_index(g)
5568 
5569 def get_dependency_graph(m):
5570  """get_dependency_graph(Model m) -> IMP::DependencyGraph"""
5571  return _IMP_kernel.get_dependency_graph(m)
5572 
5574  """get_pruned_dependency_graph(Model m) -> IMP::DependencyGraph"""
5575  return _IMP_kernel.get_pruned_dependency_graph(m)
5576 
5577 def get_dependent_restraints(m, pi):
5578  """get_dependent_restraints(Model m, ParticleIndex pi) -> IMP::RestraintsTemp"""
5579  return _IMP_kernel.get_dependent_restraints(m, pi)
5580 
5581 def get_dependent_score_states(m, pi):
5582  """get_dependent_score_states(Model m, ParticleIndex pi) -> IMP::ScoreStatesTemp"""
5583  return _IMP_kernel.get_dependent_score_states(m, pi)
5584 
5585 def get_required_score_states(*args):
5586  """
5587  get_required_score_states(IMP::ModelObjectsTemp const & mos, IMP::ScoreStatesTemp exclude) -> IMP::ScoreStatesTemp
5588  get_required_score_states(IMP::ModelObjectsTemp const & mos) -> IMP::ScoreStatesTemp
5589  get_required_score_states(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ScoreStatesTemp
5590  get_required_score_states(Model m, ParticleIndex pi) -> IMP::ScoreStatesTemp
5591  """
5592  return _IMP_kernel.get_required_score_states(*args)
5593 
5594 def get_dependent_particles(*args):
5595  """
5596  get_dependent_particles(ModelObject p, IMP::ModelObjectsTemp const & all, IMP::DependencyGraph const & dg, _DependencyGraphVertexIndex index) -> IMP::ParticlesTemp
5597  get_dependent_particles(Model m, ParticleIndex pi) -> IMP::ParticlesTemp
5598  """
5599  return _IMP_kernel.get_dependent_particles(*args)
5600 class ScoringFunction(ModelObject):
5601  """Proxy of C++ IMP::ScoringFunction class"""
5602  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5603 
5604  def do_add_score_and_derivatives(self, sa, ss):
5605  """do_add_score_and_derivatives(ScoringFunction self, ScoreAccumulator sa, IMP::ScoreStatesTemp const & ss)"""
5606  return _IMP_kernel.ScoringFunction_do_add_score_and_derivatives(self, sa, ss)
5607 
5608 
5609  def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss):
5610  """do_add_score_and_derivatives_moved(ScoringFunction self, ScoreAccumulator sa, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, IMP::ScoreStatesTemp const & ss)"""
5611  return _IMP_kernel.ScoringFunction_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss)
5612 
5613 
5614  def get_score_accumulator_if_below(self, deriv, max):
5615  """get_score_accumulator_if_below(ScoringFunction self, bool deriv, double max) -> ScoreAccumulator"""
5616  return _IMP_kernel.ScoringFunction_get_score_accumulator_if_below(self, deriv, max)
5617 
5618 
5619  def get_score_accumulator_if_good(self, deriv):
5620  """get_score_accumulator_if_good(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
5621  return _IMP_kernel.ScoringFunction_get_score_accumulator_if_good(self, deriv)
5622 
5623 
5624  def get_score_accumulator(self, deriv):
5625  """get_score_accumulator(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
5626  return _IMP_kernel.ScoringFunction_get_score_accumulator(self, deriv)
5627 
5628 
5629  def __init__(self, m, name):
5630  """__init__(IMP::ScoringFunction self, Model m, std::string name) -> ScoringFunction"""
5631  if self.__class__ == ScoringFunction:
5632  _self = None
5633  else:
5634  _self = self
5635  this = _IMP_kernel.new_ScoringFunction(_self, m, name)
5636  try:
5637  self.this.append(this)
5638  except:
5639  self.this = this
5640 
5641  if self.__class__ != ScoringFunction:
5642  _director_objects.register(self)
5643 
5644 
5645 
5646 
5647  def do_get_outputs(self):
5648  """do_get_outputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
5649  return _IMP_kernel.ScoringFunction_do_get_outputs(self)
5650 
5651 
5652  def evaluate_if_good(self, derivatives):
5653  """evaluate_if_good(ScoringFunction self, bool derivatives) -> double"""
5654  return _IMP_kernel.ScoringFunction_evaluate_if_good(self, derivatives)
5655 
5656 
5657  def evaluate(self, derivatives):
5658  """evaluate(ScoringFunction self, bool derivatives) -> double"""
5659  return _IMP_kernel.ScoringFunction_evaluate(self, derivatives)
5660 
5661 
5662  def evaluate_moved(self, derivatives, moved_pis, reset_pis):
5663  """evaluate_moved(ScoringFunction self, bool derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
5664  return _IMP_kernel.ScoringFunction_evaluate_moved(self, derivatives, moved_pis, reset_pis)
5665 
5666 
5667  def evaluate_moved_if_below(self, derivatives, moved_pis, reset_pis, max):
5668  """evaluate_moved_if_below(ScoringFunction self, bool derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, double max) -> double"""
5669  return _IMP_kernel.ScoringFunction_evaluate_moved_if_below(self, derivatives, moved_pis, reset_pis, max)
5670 
5671 
5672  def evaluate_moved_if_good(self, derivatives, moved_pis, reset_pis):
5673  """evaluate_moved_if_good(ScoringFunction self, bool derivatives, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis) -> double"""
5674  return _IMP_kernel.ScoringFunction_evaluate_moved_if_good(self, derivatives, moved_pis, reset_pis)
5675 
5676 
5677  def evaluate_if_below(self, derivatives, max):
5678  """evaluate_if_below(ScoringFunction self, bool derivatives, double max) -> double"""
5679  return _IMP_kernel.ScoringFunction_evaluate_if_below(self, derivatives, max)
5680 
5681 
5682  def get_had_good_score(self):
5683  """get_had_good_score(ScoringFunction self) -> bool"""
5684  return _IMP_kernel.ScoringFunction_get_had_good_score(self)
5685 
5686 
5687  def get_last_score(self):
5688  """get_last_score(ScoringFunction self) -> double"""
5689  return _IMP_kernel.ScoringFunction_get_last_score(self)
5690 
5691 
5692  def create_restraints(self):
5693  """create_restraints(ScoringFunction self) -> IMP::Restraints"""
5694  return _IMP_kernel.ScoringFunction_create_restraints(self)
5695 
5696 
5697  def __str__(self):
5698  """__str__(ScoringFunction self) -> std::string"""
5699  return _IMP_kernel.ScoringFunction___str__(self)
5700 
5701 
5702  def __repr__(self):
5703  """__repr__(ScoringFunction self) -> std::string"""
5704  return _IMP_kernel.ScoringFunction___repr__(self)
5705 
5706 
5707  @staticmethod
5708  def get_from(o):
5709  return _object_cast_to_ScoringFunction(o)
5710 
5711 
5712  def get_type_name(self):
5713  return self.__class__.__name__
5714  def do_show(self, out):
5715  pass
5716  def get_version_info(self):
5717  if"IMP" == "IMP":
5718  return VersionInfo(self.__module__,
5719  __import__(self.__module__).get_module_version())
5720  else:
5721  return IMP.VersionInfo(self.__module__,
5722  __import__(self.__module__).get_module_version())
5723  @staticmethod
5724  def get_from(o):
5725  return _object_cast_to_ScoringFunction(o)
5726 
5727  __swig_destroy__ = _IMP_kernel.delete_ScoringFunction
5728  __del__ = lambda self: None
5729  def __disown__(self):
5730  self.this.disown()
5731  _IMP_kernel.disown_ScoringFunction(self)
5732  return weakref_proxy(self)
5733 
5734  def do_destroy(self):
5735  """do_destroy(ScoringFunction self)"""
5736  return _IMP_kernel.ScoringFunction_do_destroy(self)
5737 
5738 
5739  def handle_set_has_required_score_states(self, arg0):
5740  """handle_set_has_required_score_states(ScoringFunction self, bool arg0)"""
5741  return _IMP_kernel.ScoringFunction_handle_set_has_required_score_states(self, arg0)
5742 
5743 
5744  def do_get_inputs(self):
5745  """do_get_inputs(ScoringFunction self) -> IMP::ModelObjectsTemp"""
5746  return _IMP_kernel.ScoringFunction_do_get_inputs(self)
5747 
5748 
5749  def do_get_interactions(self):
5750  """do_get_interactions(ScoringFunction self) -> IMP::ModelObjectsTemps"""
5751  return _IMP_kernel.ScoringFunction_do_get_interactions(self)
5752 
5753 ScoringFunction_swigregister = _IMP_kernel.ScoringFunction_swigregister
5754 ScoringFunction_swigregister(ScoringFunction)
5755 
5756 
5757 def create_decomposition(*args):
5758  """
5759  create_decomposition(IMP::RestraintsTemp const & rs) -> IMP::Restraints
5760  create_decomposition(ScoringFunction sf) -> IMP::ScoringFunctions
5761  """
5762  return _IMP_kernel.create_decomposition(*args)
5763 class _ScoringFunctionAdaptor(_InputAdaptor):
5764  """Proxy of C++ IMP::ScoringFunctionAdaptor class"""
5765  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5766  __repr__ = _swig_repr
5767 
5768  def __init__(self, *args):
5769  """
5770  __init__(IMP::ScoringFunctionAdaptor self) -> _ScoringFunctionAdaptor
5771  __init__(IMP::ScoringFunctionAdaptor self, ScoringFunction sf) -> _ScoringFunctionAdaptor
5772  __init__(IMP::ScoringFunctionAdaptor self, IMP::RestraintsTemp const & sf) -> _ScoringFunctionAdaptor
5773  __init__(IMP::ScoringFunctionAdaptor self, IMP::Restraints const & sf) -> _ScoringFunctionAdaptor
5774  __init__(IMP::ScoringFunctionAdaptor self, Restraint sf) -> _ScoringFunctionAdaptor
5775  """
5776  this = _IMP_kernel.new__ScoringFunctionAdaptor(*args)
5777  try:
5778  self.this.append(this)
5779  except:
5780  self.this = this
5781  __swig_destroy__ = _IMP_kernel.delete__ScoringFunctionAdaptor
5782  __del__ = lambda self: None
5783 _ScoringFunctionAdaptor_swigregister = _IMP_kernel._ScoringFunctionAdaptor_swigregister
5784 _ScoringFunctionAdaptor_swigregister(_ScoringFunctionAdaptor)
5785 
5786 
5787 def show_restraint_hierarchy(*args):
5788  """
5789  show_restraint_hierarchy(_ScoringFunctionAdaptor rs, _ostream out)
5790  show_restraint_hierarchy(_ScoringFunctionAdaptor rs)
5791  """
5792  return _IMP_kernel.show_restraint_hierarchy(*args)
5793 class Undecorator(Object):
5794  """Proxy of C++ IMP::Undecorator class"""
5795  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5796 
5797  def __init__(self, m, name):
5798  """__init__(IMP::Undecorator self, Model m, std::string name) -> Undecorator"""
5799  if self.__class__ == Undecorator:
5800  _self = None
5801  else:
5802  _self = self
5803  this = _IMP_kernel.new_Undecorator(_self, m, name)
5804  try:
5805  self.this.append(this)
5806  except:
5807  self.this = this
5808 
5809  if self.__class__ != Undecorator:
5810  _director_objects.register(self)
5811 
5812 
5813 
5814 
5815  def teardown(self, pi):
5816  """teardown(Undecorator self, ParticleIndex pi)"""
5817  return _IMP_kernel.Undecorator_teardown(self, pi)
5818 
5819 
5820  def __str__(self):
5821  """__str__(Undecorator self) -> std::string"""
5822  return _IMP_kernel.Undecorator___str__(self)
5823 
5824 
5825  def __repr__(self):
5826  """__repr__(Undecorator self) -> std::string"""
5827  return _IMP_kernel.Undecorator___repr__(self)
5828 
5829 
5830  @staticmethod
5831  def get_from(o):
5832  return _object_cast_to_Undecorator(o)
5833 
5834 
5835  def get_type_name(self):
5836  return self.__class__.__name__
5837  def do_show(self, out):
5838  pass
5839  def get_version_info(self):
5840  if"IMP" == "IMP":
5841  return VersionInfo(self.__module__,
5842  __import__(self.__module__).get_module_version())
5843  else:
5844  return IMP.VersionInfo(self.__module__,
5845  __import__(self.__module__).get_module_version())
5846  @staticmethod
5847  def get_from(o):
5848  return _object_cast_to_Undecorator(o)
5849 
5850  __swig_destroy__ = _IMP_kernel.delete_Undecorator
5851  __del__ = lambda self: None
5852  def __disown__(self):
5853  self.this.disown()
5854  _IMP_kernel.disown_Undecorator(self)
5855  return weakref_proxy(self)
5856 
5857  def do_destroy(self):
5858  """do_destroy(Undecorator self)"""
5859  return _IMP_kernel.Undecorator_do_destroy(self)
5860 
5861 Undecorator_swigregister = _IMP_kernel.Undecorator_swigregister
5862 Undecorator_swigregister(Undecorator)
5863 
5864 class Model(Object):
5865  """Proxy of C++ IMP::Model class"""
5866  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
5867 
5868  def __init__(self, *args):
5869  """
5870  __init__(IMP::Model self, std::string name) -> Model
5871  __init__(IMP::Model self) -> Model
5872  """
5873  this = _IMP_kernel.new_Model(*args)
5874  try:
5875  self.this.append(this)
5876  except:
5877  self.this = this
5878 
5879  def clear_particle_caches(self, pi):
5880  """clear_particle_caches(Model self, ParticleIndex pi)"""
5881  return _IMP_kernel.Model_clear_particle_caches(self, pi)
5882 
5883 
5884  def add_particle(self, name):
5885  """add_particle(Model self, std::string name) -> ParticleIndex"""
5886  return _IMP_kernel.Model_add_particle(self, name)
5887 
5888 
5889  def get_particle_name(self, pi):
5890  """get_particle_name(Model self, ParticleIndex pi) -> std::string"""
5891  return _IMP_kernel.Model_get_particle_name(self, pi)
5892 
5893 
5894  def add_undecorator(self, pi, d):
5895  """add_undecorator(Model self, ParticleIndex pi, Undecorator d)"""
5896  return _IMP_kernel.Model_add_undecorator(self, pi, d)
5897 
5898 
5899  def remove_score_state(self, d):
5900  """remove_score_state(Model self, ScoreState d)"""
5901  return _IMP_kernel.Model_remove_score_state(self, d)
5902 
5903 
5904  def remove_score_states(self, d):
5905  """remove_score_states(Model self, IMP::ScoreStates const & d)"""
5906  return _IMP_kernel.Model_remove_score_states(self, d)
5907 
5908 
5909  def set_score_states(self, ps):
5910  """set_score_states(Model self, IMP::ScoreStates const & ps)"""
5911  return _IMP_kernel.Model_set_score_states(self, ps)
5912 
5913 
5914  def set_score_states_order(self, objs):
5915  """set_score_states_order(Model self, IMP::ScoreStates const & objs)"""
5916  return _IMP_kernel.Model_set_score_states_order(self, objs)
5917 
5918 
5919  def add_score_state(self, obj):
5920  """add_score_state(Model self, ScoreState obj) -> unsigned int"""
5921  return _IMP_kernel.Model_add_score_state(self, obj)
5922 
5923 
5924  def add_score_states(self, objs):
5925  """add_score_states(Model self, IMP::ScoreStates const & objs)"""
5926  return _IMP_kernel.Model_add_score_states(self, objs)
5927 
5928 
5929  def clear_score_states(self):
5930  """clear_score_states(Model self)"""
5931  return _IMP_kernel.Model_clear_score_states(self)
5932 
5933 
5934  def get_number_of_score_states(self):
5935  """get_number_of_score_states(Model self) -> unsigned int"""
5936  return _IMP_kernel.Model_get_number_of_score_states(self)
5937 
5938 
5939  def get_has_score_states(self):
5940  """get_has_score_states(Model self) -> bool"""
5941  return _IMP_kernel.Model_get_has_score_states(self)
5942 
5943 
5944  def get_score_state(self, i):
5945  """get_score_state(Model self, unsigned int i) -> ScoreState"""
5946  return _IMP_kernel.Model_get_score_state(self, i)
5947 
5948 
5949  def get_score_states(self):
5950  """get_score_states(Model self) -> IMP::ScoreStates"""
5951  return _IMP_kernel.Model_get_score_states(self)
5952 
5953 
5954  def reserve_score_states(self, sz):
5955  """reserve_score_states(Model self, unsigned int sz)"""
5956  return _IMP_kernel.Model_reserve_score_states(self, sz)
5957 
5958 
5959  def update(self):
5960  """update(Model self)"""
5961  return _IMP_kernel.Model_update(self)
5962 
5963 
5964  def add_attribute(self, *args):
5965  """
5966  add_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
5967  add_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
5968  add_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle, IMP::Floats value)
5969  add_attribute(Model self, IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
5970  add_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
5971  add_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
5972  add_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
5973  add_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
5974  add_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
5975  """
5976  return _IMP_kernel.Model_add_attribute(self, *args)
5977 
5978 
5979  def remove_attribute(self, *args):
5980  """
5981  remove_attribute(Model self, FloatKey attribute_key, ParticleIndex particle)
5982  remove_attribute(Model self, IntKey attribute_key, ParticleIndex particle)
5983  remove_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle)
5984  remove_attribute(Model self, IntsKey attribute_key, ParticleIndex particle)
5985  remove_attribute(Model self, StringKey attribute_key, ParticleIndex particle)
5986  remove_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle)
5987  remove_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle)
5988  remove_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle)
5989  remove_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle)
5990  """
5991  return _IMP_kernel.Model_remove_attribute(self, *args)
5992 
5993 
5994  def get_has_attribute(self, *args):
5995  """
5996  get_has_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> bool
5997  get_has_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> bool
5998  get_has_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle) -> bool
5999  get_has_attribute(Model self, IntsKey attribute_key, ParticleIndex particle) -> bool
6000  get_has_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> bool
6001  get_has_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> bool
6002  get_has_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> bool
6003  get_has_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> bool
6004  get_has_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> bool
6005  """
6006  return _IMP_kernel.Model_get_has_attribute(self, *args)
6007 
6008 
6009  def set_attribute(self, *args):
6010  """
6011  set_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
6012  set_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
6013  set_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle, IMP::Floats value)
6014  set_attribute(Model self, IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
6015  set_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
6016  set_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
6017  set_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
6018  set_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
6019  set_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
6020  """
6021  return _IMP_kernel.Model_set_attribute(self, *args)
6022 
6023 
6024  def get_attribute(self, *args):
6025  """
6026  get_attribute(Model self, FloatKey attribute_key, ParticleIndex particle) -> IMP::Float
6027  get_attribute(Model self, IntKey attribute_key, ParticleIndex particle) -> IMP::Int
6028  get_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle) -> IMP::Floats
6029  get_attribute(Model self, IntsKey attribute_key, ParticleIndex particle) -> IMP::Ints
6030  get_attribute(Model self, StringKey attribute_key, ParticleIndex particle) -> IMP::String
6031  get_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle) -> IMP::ParticleIndexes
6032  get_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle) -> ParticleIndex
6033  get_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle) -> Object
6034  get_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle) -> Object
6035  """
6036  return _IMP_kernel.Model_get_attribute(self, *args)
6037 
6038 
6039  def add_cache_attribute(self, *args):
6040  """
6041  add_cache_attribute(Model self, FloatKey attribute_key, ParticleIndex particle, IMP::Float value)
6042  add_cache_attribute(Model self, IntKey attribute_key, ParticleIndex particle, IMP::Int value)
6043  add_cache_attribute(Model self, FloatsKey attribute_key, ParticleIndex particle, IMP::Floats value)
6044  add_cache_attribute(Model self, IntsKey attribute_key, ParticleIndex particle, IMP::Ints value)
6045  add_cache_attribute(Model self, StringKey attribute_key, ParticleIndex particle, IMP::String value)
6046  add_cache_attribute(Model self, ParticleIndexesKey attribute_key, ParticleIndex particle, IMP::ParticleIndexes value)
6047  add_cache_attribute(Model self, ParticleIndexKey attribute_key, ParticleIndex particle, ParticleIndex value)
6048  add_cache_attribute(Model self, ObjectKey attribute_key, ParticleIndex particle, Object value)
6049  add_cache_attribute(Model self, IMP::WeakObjectKey attribute_key, ParticleIndex particle, Object value)
6050  """
6051  return _IMP_kernel.Model_add_cache_attribute(self, *args)
6052 
6053 
6054  def set_is_optimized(self, arg2, arg3, arg4):
6055  """set_is_optimized(Model self, FloatKey arg2, ParticleIndex arg3, bool arg4)"""
6056  return _IMP_kernel.Model_set_is_optimized(self, arg2, arg3, arg4)
6057 
6058 
6059  def add_to_derivative(self, k, particle, v, da):
6060  """add_to_derivative(Model self, FloatKey k, ParticleIndex particle, double v, DerivativeAccumulator da)"""
6061  return _IMP_kernel.Model_add_to_derivative(self, k, particle, v, da)
6062 
6063 
6064  def get_particle(self, p):
6065  """get_particle(Model self, ParticleIndex p) -> Particle"""
6066  return _IMP_kernel.Model_get_particle(self, p)
6067 
6068 
6069  def get_has_particle(self, p):
6070  """get_has_particle(Model self, ParticleIndex p) -> bool"""
6071  return _IMP_kernel.Model_get_has_particle(self, p)
6072 
6073 
6074  def get_particle_indexes(self):
6075  """get_particle_indexes(Model self) -> IMP::ParticleIndexes"""
6076  return _IMP_kernel.Model_get_particle_indexes(self)
6077 
6078 
6079  def get_model_objects(self):
6080  """get_model_objects(Model self) -> IMP::ModelObjectsTemp"""
6081  return _IMP_kernel.Model_get_model_objects(self)
6082 
6083 
6084  def remove_particle(self, pi):
6085  """remove_particle(Model self, ParticleIndex pi)"""
6086  return _IMP_kernel.Model_remove_particle(self, pi)
6087 
6088 
6089  def add_data(self, mk, o):
6090  """add_data(Model self, ModelKey mk, Object o)"""
6091  return _IMP_kernel.Model_add_data(self, mk, o)
6092 
6093 
6094  def get_data(self, mk):
6095  """get_data(Model self, ModelKey mk) -> Object"""
6096  return _IMP_kernel.Model_get_data(self, mk)
6097 
6098 
6099  def remove_data(self, mk):
6100  """remove_data(Model self, ModelKey mk)"""
6101  return _IMP_kernel.Model_remove_data(self, mk)
6102 
6103 
6104  def get_has_data(self, mk):
6105  """get_has_data(Model self, ModelKey mk) -> bool"""
6106  return _IMP_kernel.Model_get_has_data(self, mk)
6107 
6108 
6109  def get_age(self):
6110  """get_age(Model self) -> unsigned int"""
6111  return _IMP_kernel.Model_get_age(self)
6112 
6113 
6114  def get_trigger_last_updated(self, tk):
6115  """get_trigger_last_updated(Model self, TriggerKey tk) -> unsigned int"""
6116  return _IMP_kernel.Model_get_trigger_last_updated(self, tk)
6117 
6118 
6119  def set_trigger_updated(self, tk):
6120  """set_trigger_updated(Model self, TriggerKey tk)"""
6121  return _IMP_kernel.Model_set_trigger_updated(self, tk)
6122 
6123 
6124  def get_dependencies_updated(self):
6125  """get_dependencies_updated(Model self) -> unsigned int"""
6126  return _IMP_kernel.Model_get_dependencies_updated(self)
6127 
6128 
6129  def get_version_info(self):
6130  """get_version_info(Model self) -> VersionInfo"""
6131  return _IMP_kernel.Model_get_version_info(self)
6132 
6133 
6134  def do_destroy(self):
6135  """do_destroy(Model self)"""
6136  return _IMP_kernel.Model_do_destroy(self)
6137 
6138 
6139  def __str__(self):
6140  """__str__(Model self) -> std::string"""
6141  return _IMP_kernel.Model___str__(self)
6142 
6143 
6144  def __repr__(self):
6145  """__repr__(Model self) -> std::string"""
6146  return _IMP_kernel.Model___repr__(self)
6147 
6148 
6149  @staticmethod
6150  def get_from(o):
6151  return _object_cast_to_Model(o)
6152 
6153 
6154  def get_ints_numpy(self, k):
6155  """Get the model's attribute array for IntKey k as a NumPy array.
6156  The array is indexed by ParticleIndex; particles that don't have
6157  this attribute will either be off the end of the array or will have
6158  the value INT_MAX.
6159  This is a NumPy view that shares memory with the Model. Thus,
6160  any changes to values in this list will be reflected in the Model.
6161  Also, if the Model attribute array moves in memory (e.g. if particles
6162  or attributes are added) this array will be invalidated, so it is
6163  unsafe to keep it around long term.
6164  """
6165  return _get_ints_numpy(self, k, self)
6166 
6167  def get_floats_numpy(self, k):
6168  """Get the model's attribute array for FloatKey k as a NumPy array.
6169  See Model::get_ints_numpy() for more details."""
6170  return _get_floats_numpy(self, k, self)
6171 
6173  """Get the model's attribute derivatives array for FloatKey k
6174  as a NumPy array. See Model::get_ints_numpy() for more details."""
6175  return _get_derivatives_numpy(self, k, self)
6176 
6177  def get_spheres_numpy(self):
6178  """Get the model's XYZR attribute arrays as NumPy arrays.
6179  The attribute arrays for Cartesian coordinates and radii are
6180  stored separately from those for other FloatKeys. This function
6181  returns a tuple of two NumPy arrays, the first of coordinates and
6182  the second of radii. See Model::get_ints_numpy() for more details."""
6183  return _get_spheres_numpy(self, self)
6184 
6186  """Get the model's XYZR attribute derivatives arrays as NumPy arrays.
6187  See Model::get_ints_numpy() for more details."""
6188  return _get_sphere_derivatives_numpy(self, self)
6189 
6190 Model_swigregister = _IMP_kernel.Model_swigregister
6191 Model_swigregister(Model)
6192 
6193 class Decorator(_Value):
6194  """Proxy of C++ IMP::Decorator class"""
6195  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6196  __repr__ = _swig_repr
6197 
6198  def __init__(self, p):
6199  """__init__(IMP::Decorator self, _ParticleAdaptor p) -> Decorator"""
6200  this = _IMP_kernel.new_Decorator(p)
6201  try:
6202  self.this.append(this)
6203  except:
6204  self.this = this
6205 
6206  def __ne__(self, o):
6207  """__ne__(Decorator self, Object o) -> bool"""
6208  return _IMP_kernel.Decorator___ne__(self, o)
6209 
6210 
6211  def __lt__(self, o):
6212  """__lt__(Decorator self, Object o) -> bool"""
6213  return _IMP_kernel.Decorator___lt__(self, o)
6214 
6215 
6216  def __gt__(self, o):
6217  """__gt__(Decorator self, Object o) -> bool"""
6218  return _IMP_kernel.Decorator___gt__(self, o)
6219 
6220 
6221  def __ge__(self, o):
6222  """__ge__(Decorator self, Object o) -> bool"""
6223  return _IMP_kernel.Decorator___ge__(self, o)
6224 
6225 
6226  def __le__(self, o):
6227  """__le__(Decorator self, Object o) -> bool"""
6228  return _IMP_kernel.Decorator___le__(self, o)
6229 
6230 
6231  def get_particle(self):
6232  """get_particle(Decorator self) -> Particle"""
6233  return _IMP_kernel.Decorator_get_particle(self)
6234 
6235 
6236  def get_particle_index(self):
6237  """get_particle_index(Decorator self) -> ParticleIndex"""
6238  return _IMP_kernel.Decorator_get_particle_index(self)
6239 
6240 
6241  def get_model(self):
6242  """get_model(Decorator self) -> Model"""
6243  return _IMP_kernel.Decorator_get_model(self)
6244 
6245 
6246  def get_is_valid(self):
6247  """get_is_valid(Decorator self) -> bool"""
6248  return _IMP_kernel.Decorator_get_is_valid(self)
6249 
6250 
6251  def __hash__(self):
6252  """__hash__(Decorator self) -> std::size_t"""
6253  return _IMP_kernel.Decorator___hash__(self)
6254 
6255 
6256  def __eq__(self, *args):
6257  """
6258  __eq__(Decorator self, Object o) -> bool
6259  __eq__(Decorator self, Decorator o) -> bool
6260  __eq__(Decorator self, Particle o) -> bool
6261  """
6262  return _IMP_kernel.Decorator___eq__(self, *args)
6263 
6264 
6265  def __bool__(self):
6266  """__bool__(Decorator self) -> bool"""
6267  return _IMP_kernel.Decorator___bool__(self)
6268 
6269 
6270  __nonzero__ = __bool__
6271 
6272  __swig_destroy__ = _IMP_kernel.delete_Decorator
6273  __del__ = lambda self: None
6274 Decorator_swigregister = _IMP_kernel.Decorator_swigregister
6275 Decorator_swigregister(Decorator)
6276 
6277 
6278 def check_particle(m, pi):
6279  """check_particle(Model m, ParticleIndex pi)"""
6280  return _IMP_kernel.check_particle(m, pi)
6281 class UnaryFunction(Object):
6282  """Proxy of C++ IMP::UnaryFunction class"""
6283  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6284 
6285  def __init__(self, *args):
6286  """
6287  __init__(IMP::UnaryFunction self, std::string name) -> UnaryFunction
6288  __init__(IMP::UnaryFunction self) -> UnaryFunction
6289  """
6290  if self.__class__ == UnaryFunction:
6291  _self = None
6292  else:
6293  _self = self
6294  this = _IMP_kernel.new_UnaryFunction(_self, *args)
6295  try:
6296  self.this.append(this)
6297  except:
6298  self.this = this
6299 
6300  if self.__class__ != UnaryFunction:
6301  _director_objects.register(self)
6302 
6303 
6304 
6305 
6306  def evaluate(self, feature):
6307  """evaluate(UnaryFunction self, double feature) -> double"""
6308  return _IMP_kernel.UnaryFunction_evaluate(self, feature)
6309 
6310 
6311  def evaluate_with_derivative(self, feature):
6312  """evaluate_with_derivative(UnaryFunction self, double feature) -> IMP::DerivativePair"""
6313  return _IMP_kernel.UnaryFunction_evaluate_with_derivative(self, feature)
6314 
6315  __swig_destroy__ = _IMP_kernel.delete_UnaryFunction
6316  __del__ = lambda self: None
6317 
6318  def __str__(self):
6319  """__str__(UnaryFunction self) -> std::string"""
6320  return _IMP_kernel.UnaryFunction___str__(self)
6321 
6322 
6323  def __repr__(self):
6324  """__repr__(UnaryFunction self) -> std::string"""
6325  return _IMP_kernel.UnaryFunction___repr__(self)
6326 
6327 
6328  @staticmethod
6329  def get_from(o):
6330  return _object_cast_to_UnaryFunction(o)
6331 
6332 
6333  def get_type_name(self):
6334  return self.__class__.__name__
6335  def do_show(self, out):
6336  pass
6337  def get_version_info(self):
6338  if"IMP" == "IMP":
6339  return VersionInfo(self.__module__,
6340  __import__(self.__module__).get_module_version())
6341  else:
6342  return IMP.VersionInfo(self.__module__,
6343  __import__(self.__module__).get_module_version())
6344  @staticmethod
6345  def get_from(o):
6346  return _object_cast_to_UnaryFunction(o)
6347 
6348  def __disown__(self):
6349  self.this.disown()
6350  _IMP_kernel.disown_UnaryFunction(self)
6351  return weakref_proxy(self)
6352 
6353  def do_destroy(self):
6354  """do_destroy(UnaryFunction self)"""
6355  return _IMP_kernel.UnaryFunction_do_destroy(self)
6356 
6357 UnaryFunction_swigregister = _IMP_kernel.UnaryFunction_swigregister
6358 UnaryFunction_swigregister(UnaryFunction)
6359 
6360 class OptimizerState(ModelObject):
6361  """Proxy of C++ IMP::OptimizerState class"""
6362  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6363 
6364  def __init__(self, m, name):
6365  """__init__(IMP::OptimizerState self, Model m, std::string name) -> OptimizerState"""
6366  if self.__class__ == OptimizerState:
6367  _self = None
6368  else:
6369  _self = self
6370  this = _IMP_kernel.new_OptimizerState(_self, m, name)
6371  try:
6372  self.this.append(this)
6373  except:
6374  self.this = this
6375 
6376  if self.__class__ != OptimizerState:
6377  _director_objects.register(self)
6378 
6379 
6380 
6381 
6382  def update(self):
6383  """update(OptimizerState self)"""
6384  return _IMP_kernel.OptimizerState_update(self)
6385 
6386 
6387  def set_is_optimizing(self, arg0):
6388  """set_is_optimizing(OptimizerState self, bool arg0)"""
6389  return _IMP_kernel.OptimizerState_set_is_optimizing(self, arg0)
6390 
6391 
6392  def get_optimizer(self):
6393  """get_optimizer(OptimizerState self) -> Optimizer"""
6394  return _IMP_kernel.OptimizerState_get_optimizer(self)
6395 
6396 
6397  def set_period(self, p):
6398  """set_period(OptimizerState self, unsigned int p)"""
6399  return _IMP_kernel.OptimizerState_set_period(self, p)
6400 
6401 
6402  def get_period(self):
6403  """get_period(OptimizerState self) -> unsigned int"""
6404  return _IMP_kernel.OptimizerState_get_period(self)
6405 
6406 
6407  def reset(self):
6408  """reset(OptimizerState self)"""
6409  return _IMP_kernel.OptimizerState_reset(self)
6410 
6411 
6412  def update_always(self):
6413  """update_always(OptimizerState self)"""
6414  return _IMP_kernel.OptimizerState_update_always(self)
6415 
6416 
6417  def get_number_of_updates(self):
6418  """get_number_of_updates(OptimizerState self) -> unsigned int"""
6419  return _IMP_kernel.OptimizerState_get_number_of_updates(self)
6420 
6421 
6422  def set_number_of_updates(self, n):
6423  """set_number_of_updates(OptimizerState self, unsigned int n)"""
6424  return _IMP_kernel.OptimizerState_set_number_of_updates(self, n)
6425 
6426  __swig_destroy__ = _IMP_kernel.delete_OptimizerState
6427  __del__ = lambda self: None
6428 
6429  def do_update(self, arg0):
6430  """do_update(OptimizerState self, unsigned int arg0)"""
6431  return _IMP_kernel.OptimizerState_do_update(self, arg0)
6432 
6433 
6434  def do_set_is_optimizing(self, arg0):
6435  """do_set_is_optimizing(OptimizerState self, bool arg0)"""
6436  return _IMP_kernel.OptimizerState_do_set_is_optimizing(self, arg0)
6437 
6438 
6439  def do_get_inputs(self):
6440  """do_get_inputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
6441  return _IMP_kernel.OptimizerState_do_get_inputs(self)
6442 
6443 
6444  def do_get_outputs(self):
6445  """do_get_outputs(OptimizerState self) -> IMP::ModelObjectsTemp"""
6446  return _IMP_kernel.OptimizerState_do_get_outputs(self)
6447 
6448 
6449  def __str__(self):
6450  """__str__(OptimizerState self) -> std::string"""
6451  return _IMP_kernel.OptimizerState___str__(self)
6452 
6453 
6454  def __repr__(self):
6455  """__repr__(OptimizerState self) -> std::string"""
6456  return _IMP_kernel.OptimizerState___repr__(self)
6457 
6458 
6459  @staticmethod
6460  def get_from(o):
6461  return _object_cast_to_OptimizerState(o)
6462 
6463 
6464  def get_type_name(self):
6465  return self.__class__.__name__
6466  def do_show(self, out):
6467  pass
6468  def get_version_info(self):
6469  if"IMP" == "IMP":
6470  return VersionInfo(self.__module__,
6471  __import__(self.__module__).get_module_version())
6472  else:
6473  return IMP.VersionInfo(self.__module__,
6474  __import__(self.__module__).get_module_version())
6475  @staticmethod
6476  def get_from(o):
6477  return _object_cast_to_OptimizerState(o)
6478 
6479  def __disown__(self):
6480  self.this.disown()
6481  _IMP_kernel.disown_OptimizerState(self)
6482  return weakref_proxy(self)
6483 
6484  def do_destroy(self):
6485  """do_destroy(OptimizerState self)"""
6486  return _IMP_kernel.OptimizerState_do_destroy(self)
6487 
6488 
6489  def handle_set_has_required_score_states(self, arg0):
6490  """handle_set_has_required_score_states(OptimizerState self, bool arg0)"""
6491  return _IMP_kernel.OptimizerState_handle_set_has_required_score_states(self, arg0)
6492 
6493 
6494  def do_get_interactions(self):
6495  """do_get_interactions(OptimizerState self) -> IMP::ModelObjectsTemps"""
6496  return _IMP_kernel.OptimizerState_do_get_interactions(self)
6497 
6498 OptimizerState_swigregister = _IMP_kernel.OptimizerState_swigregister
6499 OptimizerState_swigregister(OptimizerState)
6500 
6501 class Refiner(_ParticleInputs, Object):
6502  """Proxy of C++ IMP::Refiner class"""
6503  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6504 
6505  def __init__(self, *args):
6506  """
6507  __init__(IMP::Refiner self, std::string name, bool is_by_ref=False) -> Refiner
6508  __init__(IMP::Refiner self, std::string name) -> Refiner
6509  __init__(IMP::Refiner self) -> Refiner
6510  """
6511  if self.__class__ == Refiner:
6512  _self = None
6513  else:
6514  _self = self
6515  this = _IMP_kernel.new_Refiner(_self, *args)
6516  try:
6517  self.this.append(this)
6518  except:
6519  self.this = this
6520 
6521  if self.__class__ != Refiner:
6522  _director_objects.register(self)
6523 
6524 
6525 
6526 
6527  def get_can_refine(self, arg0):
6528  """get_can_refine(Refiner self, Particle arg0) -> bool"""
6529  return _IMP_kernel.Refiner_get_can_refine(self, arg0)
6530 
6531 
6532  def get_refined_indexes(self, m, pi):
6533  """get_refined_indexes(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes"""
6534  return _IMP_kernel.Refiner_get_refined_indexes(self, m, pi)
6535 
6536 
6537  def get_refined_indexes_by_ref(self, m, pi):
6538  """get_refined_indexes_by_ref(Refiner self, Model m, ParticleIndex pi) -> IMP::ParticleIndexes const &"""
6539  return _IMP_kernel.Refiner_get_refined_indexes_by_ref(self, m, pi)
6540 
6541 
6542  def get_is_by_ref_supported(self):
6543  """get_is_by_ref_supported(Refiner self) -> bool"""
6544  return _IMP_kernel.Refiner_get_is_by_ref_supported(self)
6545 
6546 
6547  def get_refined(self, *args):
6548  """
6549  get_refined(Refiner self, Particle a) -> IMP::ParticlesTemp const
6550  get_refined(Refiner self, Particle a, unsigned int i) -> Particle
6551  """
6552  return _IMP_kernel.Refiner_get_refined(self, *args)
6553 
6554 
6555  def get_number_of_refined(self, a):
6556  """get_number_of_refined(Refiner self, Particle a) -> unsigned int"""
6557  return _IMP_kernel.Refiner_get_number_of_refined(self, a)
6558 
6559 
6560  def __str__(self):
6561  """__str__(Refiner self) -> std::string"""
6562  return _IMP_kernel.Refiner___str__(self)
6563 
6564 
6565  def __repr__(self):
6566  """__repr__(Refiner self) -> std::string"""
6567  return _IMP_kernel.Refiner___repr__(self)
6568 
6569 
6570  @staticmethod
6571  def get_from(o):
6572  return _object_cast_to_Refiner(o)
6573 
6574 
6575  def get_type_name(self):
6576  return self.__class__.__name__
6577  def do_show(self, out):
6578  pass
6579  def get_version_info(self):
6580  if"IMP" == "IMP":
6581  return VersionInfo(self.__module__,
6582  __import__(self.__module__).get_module_version())
6583  else:
6584  return IMP.VersionInfo(self.__module__,
6585  __import__(self.__module__).get_module_version())
6586  @staticmethod
6587  def get_from(o):
6588  return _object_cast_to_Refiner(o)
6589 
6590  __swig_destroy__ = _IMP_kernel.delete_Refiner
6591  __del__ = lambda self: None
6592  def __disown__(self):
6593  self.this.disown()
6594  _IMP_kernel.disown_Refiner(self)
6595  return weakref_proxy(self)
6596 
6597  def do_get_inputs(self, m, pis):
6598  """do_get_inputs(Refiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6599  return _IMP_kernel.Refiner_do_get_inputs(self, m, pis)
6600 
6601 
6602  def do_destroy(self):
6603  """do_destroy(Refiner self)"""
6604  return _IMP_kernel.Refiner_do_destroy(self)
6605 
6606 Refiner_swigregister = _IMP_kernel.Refiner_swigregister
6607 Refiner_swigregister(Refiner)
6608 
6609 class Optimizer(ModelObject):
6610  """Proxy of C++ IMP::Optimizer class"""
6611  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6612 
6613  def set_is_optimizing_states(self, tf):
6614  """set_is_optimizing_states(Optimizer self, bool tf)"""
6615  return _IMP_kernel.Optimizer_set_is_optimizing_states(self, tf)
6616 
6617 
6618  def get_optimizer_state_inputs(self):
6619  """get_optimizer_state_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
6620  return _IMP_kernel.Optimizer_get_optimizer_state_inputs(self)
6621 
6622 
6623  def do_get_inputs(self):
6624  """do_get_inputs(Optimizer self) -> IMP::ModelObjectsTemp"""
6625  return _IMP_kernel.Optimizer_do_get_inputs(self)
6626 
6627 
6628  def do_get_outputs(self):
6629  """do_get_outputs(Optimizer self) -> IMP::ModelObjectsTemp"""
6630  return _IMP_kernel.Optimizer_do_get_outputs(self)
6631 
6632 
6633  def __init__(self, *args):
6634  """
6635  __init__(IMP::Optimizer self, Model m, std::string name) -> Optimizer
6636  __init__(IMP::Optimizer self, Model m) -> Optimizer
6637  """
6638  if self.__class__ == Optimizer:
6639  _self = None
6640  else:
6641  _self = self
6642  this = _IMP_kernel.new_Optimizer(_self, *args)
6643  try:
6644  self.this.append(this)
6645  except:
6646  self.this = this
6647 
6648  if self.__class__ != Optimizer:
6649  _director_objects.register(self)
6650 
6651 
6652 
6653 
6654  def optimize(self, max_steps):
6655  """optimize(Optimizer self, unsigned int max_steps) -> double"""
6656  return _IMP_kernel.Optimizer_optimize(self, max_steps)
6657 
6658 
6659  def set_stop_on_good_score(self, tf):
6660  """set_stop_on_good_score(Optimizer self, bool tf)"""
6661  return _IMP_kernel.Optimizer_set_stop_on_good_score(self, tf)
6662 
6663 
6664  def get_stop_on_good_score(self):
6665  """get_stop_on_good_score(Optimizer self) -> bool"""
6666  return _IMP_kernel.Optimizer_get_stop_on_good_score(self)
6667 
6668 
6669  def get_last_score(self):
6670  """get_last_score(Optimizer self) -> double"""
6671  return _IMP_kernel.Optimizer_get_last_score(self)
6672 
6673 
6674  def get_scoring_function(self):
6675  """get_scoring_function(Optimizer self) -> ScoringFunction"""
6676  return _IMP_kernel.Optimizer_get_scoring_function(self)
6677 
6678 
6679  def remove_optimizer_state(self, d):
6680  """remove_optimizer_state(Optimizer self, OptimizerState d)"""
6681  return _IMP_kernel.Optimizer_remove_optimizer_state(self, d)
6682 
6683 
6684  def remove_optimizer_states(self, d):
6685  """remove_optimizer_states(Optimizer self, IMP::OptimizerStates const & d)"""
6686  return _IMP_kernel.Optimizer_remove_optimizer_states(self, d)
6687 
6688 
6689  def set_optimizer_states(self, ps):
6690  """set_optimizer_states(Optimizer self, IMP::OptimizerStates const & ps)"""
6691  return _IMP_kernel.Optimizer_set_optimizer_states(self, ps)
6692 
6693 
6694  def set_optimizer_states_order(self, objs):
6695  """set_optimizer_states_order(Optimizer self, IMP::OptimizerStates const & objs)"""
6696  return _IMP_kernel.Optimizer_set_optimizer_states_order(self, objs)
6697 
6698 
6699  def add_optimizer_state(self, obj):
6700  """add_optimizer_state(Optimizer self, OptimizerState obj) -> unsigned int"""
6701  return _IMP_kernel.Optimizer_add_optimizer_state(self, obj)
6702 
6703 
6704  def add_optimizer_states(self, objs):
6705  """add_optimizer_states(Optimizer self, IMP::OptimizerStates const & objs)"""
6706  return _IMP_kernel.Optimizer_add_optimizer_states(self, objs)
6707 
6708 
6709  def clear_optimizer_states(self):
6710  """clear_optimizer_states(Optimizer self)"""
6711  return _IMP_kernel.Optimizer_clear_optimizer_states(self)
6712 
6713 
6714  def get_number_of_optimizer_states(self):
6715  """get_number_of_optimizer_states(Optimizer self) -> unsigned int"""
6716  return _IMP_kernel.Optimizer_get_number_of_optimizer_states(self)
6717 
6718 
6719  def get_has_optimizer_states(self):
6720  """get_has_optimizer_states(Optimizer self) -> bool"""
6721  return _IMP_kernel.Optimizer_get_has_optimizer_states(self)
6722 
6723 
6724  def get_optimizer_state(self, i):
6725  """get_optimizer_state(Optimizer self, unsigned int i) -> OptimizerState"""
6726  return _IMP_kernel.Optimizer_get_optimizer_state(self, i)
6727 
6728 
6729  def get_optimizer_states(self):
6730  """get_optimizer_states(Optimizer self) -> IMP::OptimizerStates"""
6731  return _IMP_kernel.Optimizer_get_optimizer_states(self)
6732 
6733 
6734  def reserve_optimizer_states(self, sz):
6735  """reserve_optimizer_states(Optimizer self, unsigned int sz)"""
6736  return _IMP_kernel.Optimizer_reserve_optimizer_states(self, sz)
6737 
6738 
6739  def set_scoring_function(self, sf):
6740  """set_scoring_function(Optimizer self, _ScoringFunctionAdaptor sf)"""
6741  return _IMP_kernel.Optimizer_set_scoring_function(self, sf)
6742 
6743  __swig_destroy__ = _IMP_kernel.delete_Optimizer
6744  def __del__(self):
6745  """__del__(IMP::Optimizer self)"""
6746 
6747  _director_objects.cleanup()
6748 
6749 
6750  pass
6751 
6752 
6753  def do_optimize(self, ns):
6754  """do_optimize(Optimizer self, unsigned int ns) -> double"""
6755  return _IMP_kernel.Optimizer_do_optimize(self, ns)
6756 
6757 
6758  def update_states(self):
6759  """update_states(Optimizer self)"""
6760  return _IMP_kernel.Optimizer_update_states(self)
6761 
6762 
6763  def __str__(self):
6764  """__str__(Optimizer self) -> std::string"""
6765  return _IMP_kernel.Optimizer___str__(self)
6766 
6767 
6768  def __repr__(self):
6769  """__repr__(Optimizer self) -> std::string"""
6770  return _IMP_kernel.Optimizer___repr__(self)
6771 
6772 
6773  @staticmethod
6774  def get_from(o):
6775  return _object_cast_to_Optimizer(o)
6776 
6777 
6778  def get_type_name(self):
6779  return self.__class__.__name__
6780  def do_show(self, out):
6781  pass
6782  def get_version_info(self):
6783  if"IMP" == "IMP":
6784  return VersionInfo(self.__module__,
6785  __import__(self.__module__).get_module_version())
6786  else:
6787  return IMP.VersionInfo(self.__module__,
6788  __import__(self.__module__).get_module_version())
6789  @staticmethod
6790  def get_from(o):
6791  return _object_cast_to_Optimizer(o)
6792 
6793  def __disown__(self):
6794  self.this.disown()
6795  _IMP_kernel.disown_Optimizer(self)
6796  return weakref_proxy(self)
6797 
6798  def do_destroy(self):
6799  """do_destroy(Optimizer self)"""
6800  return _IMP_kernel.Optimizer_do_destroy(self)
6801 
6802 
6803  def handle_set_has_required_score_states(self, arg0):
6804  """handle_set_has_required_score_states(Optimizer self, bool arg0)"""
6805  return _IMP_kernel.Optimizer_handle_set_has_required_score_states(self, arg0)
6806 
6807 
6808  def do_get_interactions(self):
6809  """do_get_interactions(Optimizer self) -> IMP::ModelObjectsTemps"""
6810  return _IMP_kernel.Optimizer_do_get_interactions(self)
6811 
6812 Optimizer_swigregister = _IMP_kernel.Optimizer_swigregister
6813 Optimizer_swigregister(Optimizer)
6814 
6815 class AttributeOptimizer(Optimizer):
6816  """Proxy of C++ IMP::AttributeOptimizer class"""
6817  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6818 
6819  def __init__(self, *args):
6820  """
6821  __init__(IMP::AttributeOptimizer self, Model m, std::string name) -> AttributeOptimizer
6822  __init__(IMP::AttributeOptimizer self, Model m) -> AttributeOptimizer
6823  """
6824  if self.__class__ == AttributeOptimizer:
6825  _self = None
6826  else:
6827  _self = self
6828  this = _IMP_kernel.new_AttributeOptimizer(_self, *args)
6829  try:
6830  self.this.append(this)
6831  except:
6832  self.this = this
6833 
6834  if self.__class__ != AttributeOptimizer:
6835  _director_objects.register(self)
6836 
6837 
6838 
6839 
6840  def get_optimized_attributes(self):
6841  """get_optimized_attributes(AttributeOptimizer self) -> IMP::FloatIndexes"""
6842  return _IMP_kernel.AttributeOptimizer_get_optimized_attributes(self)
6843 
6844 
6845  def set_value(self, fi, v):
6846  """set_value(AttributeOptimizer self, FloatIndex fi, double v)"""
6847  return _IMP_kernel.AttributeOptimizer_set_value(self, fi, v)
6848 
6849 
6850  def get_value(self, fi):
6851  """get_value(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
6852  return _IMP_kernel.AttributeOptimizer_get_value(self, fi)
6853 
6854 
6855  def get_derivative(self, fi):
6856  """get_derivative(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
6857  return _IMP_kernel.AttributeOptimizer_get_derivative(self, fi)
6858 
6859 
6860  def get_width(self, k):
6861  """get_width(AttributeOptimizer self, FloatKey k) -> double"""
6862  return _IMP_kernel.AttributeOptimizer_get_width(self, k)
6863 
6864 
6865  def set_scaled_value(self, fi, v):
6866  """set_scaled_value(AttributeOptimizer self, FloatIndex fi, IMP::Float v)"""
6867  return _IMP_kernel.AttributeOptimizer_set_scaled_value(self, fi, v)
6868 
6869 
6870  def get_scaled_value(self, fi):
6871  """get_scaled_value(AttributeOptimizer self, FloatIndex fi) -> double"""
6872  return _IMP_kernel.AttributeOptimizer_get_scaled_value(self, fi)
6873 
6874 
6875  def get_scaled_derivative(self, fi):
6876  """get_scaled_derivative(AttributeOptimizer self, FloatIndex fi) -> double"""
6877  return _IMP_kernel.AttributeOptimizer_get_scaled_derivative(self, fi)
6878 
6879 
6880  def clear_range_cache(self):
6881  """clear_range_cache(AttributeOptimizer self)"""
6882  return _IMP_kernel.AttributeOptimizer_clear_range_cache(self)
6883 
6884 
6885  def __str__(self):
6886  """__str__(AttributeOptimizer self) -> std::string"""
6887  return _IMP_kernel.AttributeOptimizer___str__(self)
6888 
6889 
6890  def __repr__(self):
6891  """__repr__(AttributeOptimizer self) -> std::string"""
6892  return _IMP_kernel.AttributeOptimizer___repr__(self)
6893 
6894 
6895  @staticmethod
6896  def get_from(o):
6897  return _object_cast_to_AttributeOptimizer(o)
6898 
6899 
6900  def get_type_name(self):
6901  return self.__class__.__name__
6902  def do_show(self, out):
6903  pass
6904  def get_version_info(self):
6905  if"IMP" == "IMP":
6906  return VersionInfo(self.__module__,
6907  __import__(self.__module__).get_module_version())
6908  else:
6909  return IMP.VersionInfo(self.__module__,
6910  __import__(self.__module__).get_module_version())
6911  @staticmethod
6912  def get_from(o):
6913  return _object_cast_to_AttributeOptimizer(o)
6914 
6915  __swig_destroy__ = _IMP_kernel.delete_AttributeOptimizer
6916  __del__ = lambda self: None
6917  def __disown__(self):
6918  self.this.disown()
6919  _IMP_kernel.disown_AttributeOptimizer(self)
6920  return weakref_proxy(self)
6921 
6922  def do_destroy(self):
6923  """do_destroy(AttributeOptimizer self)"""
6924  return _IMP_kernel.AttributeOptimizer_do_destroy(self)
6925 
6926 
6927  def handle_set_has_required_score_states(self, arg0):
6928  """handle_set_has_required_score_states(AttributeOptimizer self, bool arg0)"""
6929  return _IMP_kernel.AttributeOptimizer_handle_set_has_required_score_states(self, arg0)
6930 
6931 
6932  def do_get_inputs(self):
6933  """do_get_inputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
6934  return _IMP_kernel.AttributeOptimizer_do_get_inputs(self)
6935 
6936 
6937  def do_get_outputs(self):
6938  """do_get_outputs(AttributeOptimizer self) -> IMP::ModelObjectsTemp"""
6939  return _IMP_kernel.AttributeOptimizer_do_get_outputs(self)
6940 
6941 
6942  def do_get_interactions(self):
6943  """do_get_interactions(AttributeOptimizer self) -> IMP::ModelObjectsTemps"""
6944  return _IMP_kernel.AttributeOptimizer_do_get_interactions(self)
6945 
6946 
6947  def do_optimize(self, ns):
6948  """do_optimize(AttributeOptimizer self, unsigned int ns) -> double"""
6949  return _IMP_kernel.AttributeOptimizer_do_optimize(self, ns)
6950 
6951 AttributeOptimizer_swigregister = _IMP_kernel.AttributeOptimizer_swigregister
6952 AttributeOptimizer_swigregister(AttributeOptimizer)
6953 
6954 class ConfigurationSet(Object):
6955  """Proxy of C++ IMP::ConfigurationSet class"""
6956  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
6957 
6958  def __init__(self, *args):
6959  """
6960  __init__(IMP::ConfigurationSet self, Model m, std::string name) -> ConfigurationSet
6961  __init__(IMP::ConfigurationSet self, Model m) -> ConfigurationSet
6962  """
6963  this = _IMP_kernel.new_ConfigurationSet(*args)
6964  try:
6965  self.this.append(this)
6966  except:
6967  self.this = this
6968 
6969  def save_configuration(self):
6970  """save_configuration(ConfigurationSet self)"""
6971  return _IMP_kernel.ConfigurationSet_save_configuration(self)
6972 
6973 
6974  def get_number_of_configurations(self):
6975  """get_number_of_configurations(ConfigurationSet self) -> unsigned int"""
6976  return _IMP_kernel.ConfigurationSet_get_number_of_configurations(self)
6977 
6978 
6979  def load_configuration(self, i):
6980  """load_configuration(ConfigurationSet self, int i)"""
6981  return _IMP_kernel.ConfigurationSet_load_configuration(self, i)
6982 
6983 
6984  def remove_configuration(self, i):
6985  """remove_configuration(ConfigurationSet self, unsigned int i)"""
6986  return _IMP_kernel.ConfigurationSet_remove_configuration(self, i)
6987 
6988 
6989  def get_model(self):
6990  """get_model(ConfigurationSet self) -> Model"""
6991  return _IMP_kernel.ConfigurationSet_get_model(self)
6992 
6993 
6994  def get_version_info(self):
6995  """get_version_info(ConfigurationSet self) -> VersionInfo"""
6996  return _IMP_kernel.ConfigurationSet_get_version_info(self)
6997 
6998 
6999  def __str__(self):
7000  """__str__(ConfigurationSet self) -> std::string"""
7001  return _IMP_kernel.ConfigurationSet___str__(self)
7002 
7003 
7004  def __repr__(self):
7005  """__repr__(ConfigurationSet self) -> std::string"""
7006  return _IMP_kernel.ConfigurationSet___repr__(self)
7007 
7008 
7009  @staticmethod
7010  def get_from(o):
7011  return _object_cast_to_ConfigurationSet(o)
7012 
7013 ConfigurationSet_swigregister = _IMP_kernel.ConfigurationSet_swigregister
7014 ConfigurationSet_swigregister(ConfigurationSet)
7015 
7016 class SaveToConfigurationSetOptimizerState(OptimizerState):
7017  """Proxy of C++ IMP::SaveToConfigurationSetOptimizerState class"""
7018  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7019 
7020  def __init__(self, cs):
7021  """__init__(IMP::SaveToConfigurationSetOptimizerState self, ConfigurationSet cs) -> SaveToConfigurationSetOptimizerState"""
7022  this = _IMP_kernel.new_SaveToConfigurationSetOptimizerState(cs)
7023  try:
7024  self.this.append(this)
7025  except:
7026  self.this = this
7027 
7028  def get_version_info(self):
7029  """get_version_info(SaveToConfigurationSetOptimizerState self) -> VersionInfo"""
7030  return _IMP_kernel.SaveToConfigurationSetOptimizerState_get_version_info(self)
7031 
7032 
7033  def __str__(self):
7034  """__str__(SaveToConfigurationSetOptimizerState self) -> std::string"""
7035  return _IMP_kernel.SaveToConfigurationSetOptimizerState___str__(self)
7036 
7037 
7038  def __repr__(self):
7039  """__repr__(SaveToConfigurationSetOptimizerState self) -> std::string"""
7040  return _IMP_kernel.SaveToConfigurationSetOptimizerState___repr__(self)
7041 
7042 
7043  @staticmethod
7044  def get_from(o):
7045  return _object_cast_to_SaveToConfigurationSetOptimizerState(o)
7046 
7047 SaveToConfigurationSetOptimizerState_swigregister = _IMP_kernel.SaveToConfigurationSetOptimizerState_swigregister
7048 SaveToConfigurationSetOptimizerState_swigregister(SaveToConfigurationSetOptimizerState)
7049 
7050 class Configuration(Object):
7051  """Proxy of C++ IMP::Configuration class"""
7052  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7053 
7054  def __init__(self, *args):
7055  """
7056  __init__(IMP::Configuration self, Model m, std::string name) -> Configuration
7057  __init__(IMP::Configuration self, Model m) -> Configuration
7058  __init__(IMP::Configuration self, Model m, Configuration base, std::string name) -> Configuration
7059  __init__(IMP::Configuration self, Model m, Configuration base) -> Configuration
7060  """
7061  this = _IMP_kernel.new_Configuration(*args)
7062  try:
7063  self.this.append(this)
7064  except:
7065  self.this = this
7066 
7067  def load_configuration(self):
7068  """load_configuration(Configuration self)"""
7069  return _IMP_kernel.Configuration_load_configuration(self)
7070 
7071 
7072  def swap_configuration(self):
7073  """swap_configuration(Configuration self)"""
7074  return _IMP_kernel.Configuration_swap_configuration(self)
7075 
7076 
7077  def get_version_info(self):
7078  """get_version_info(Configuration self) -> VersionInfo"""
7079  return _IMP_kernel.Configuration_get_version_info(self)
7080 
7081 
7082  def __str__(self):
7083  """__str__(Configuration self) -> std::string"""
7084  return _IMP_kernel.Configuration___str__(self)
7085 
7086 
7087  def __repr__(self):
7088  """__repr__(Configuration self) -> std::string"""
7089  return _IMP_kernel.Configuration___repr__(self)
7090 
7091 
7092  @staticmethod
7093  def get_from(o):
7094  return _object_cast_to_Configuration(o)
7095 
7096 Configuration_swigregister = _IMP_kernel.Configuration_swigregister
7097 Configuration_swigregister(Configuration)
7098 
7099 class Sampler(Object):
7100  """Proxy of C++ IMP::Sampler class"""
7101  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
7102 
7103  def __init__(self, *args):
7104  """
7105  __init__(IMP::Sampler self, Model m, std::string name) -> Sampler
7106  __init__(IMP::Sampler self, Model m) -> Sampler
7107  """
7108  if self.__class__ == Sampler:
7109  _self = None
7110  else:
7111  _self = self
7112  this = _IMP_kernel.new_Sampler(_self, *args)
7113  try:
7114  self.this.append(this)
7115  except:
7116  self.this = this
7117 
7118  if self.__class__ != Sampler:
7119  _director_objects.register(self)
7120 
7121 
7122 
7123 
7124  def create_sample(self):
7125  """create_sample(Sampler self) -> ConfigurationSet"""
7126  return _IMP_kernel.Sampler_create_sample(self)
7127 
7128 
7129  def get_scoring_function(self):
7130  """get_scoring_function(Sampler self) -> ScoringFunction"""
7131  return _IMP_kernel.Sampler_get_scoring_function(self)
7132 
7133 
7134  def set_scoring_function(self, sf):
7135  """set_scoring_function(Sampler self, _ScoringFunctionAdaptor sf)"""
7136  return _IMP_kernel.Sampler_set_scoring_function(self, sf)
7137 
7138 
7139  def get_model(self):
7140  """get_model(Sampler self) -> Model"""
7141  return _IMP_kernel.Sampler_get_model(self)
7142 
7143 
7144  def do_sample(self):
7145  """do_sample(Sampler self) -> ConfigurationSet"""
7146  return _IMP_kernel.Sampler_do_sample(self)
7147 
7148  __swig_destroy__ = _IMP_kernel.delete_Sampler
7149  __del__ = lambda self: None
7150 
7151  def __str__(self):
7152  """__str__(Sampler self) -> std::string"""
7153  return _IMP_kernel.Sampler___str__(self)
7154 
7155 
7156  def __repr__(self):
7157  """__repr__(Sampler self) -> std::string"""
7158  return _IMP_kernel.Sampler___repr__(self)
7159 
7160 
7161  @staticmethod
7162  def get_from(o):
7163  return _object_cast_to_Sampler(o)
7164 
7165 
7166  def get_type_name(self):
7167  return self.__class__.__name__
7168  def do_show(self, out):
7169  pass
7170  def