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