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