IMP  2.3.0
The Integrative Modeling Platform
kernel/__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 3.0.2
3 #
4 # Do not make changes to this file unless you know what you are doing--modify
5 # the SWIG interface file instead.
6 
7 
8 
9 
10 
11 from sys import version_info
12 if version_info >= (2,6,0):
13  def swig_import_helper():
14  from os.path import dirname
15  import imp
16  fp = None
17  try:
18  fp, pathname, description = imp.find_module('_IMP_kernel', [dirname(__file__)])
19  except ImportError:
20  import _IMP_kernel
21  return _IMP_kernel
22  if fp is not None:
23  try:
24  _mod = imp.load_module('_IMP_kernel', fp, pathname, description)
25  finally:
26  fp.close()
27  return _mod
28  _IMP_kernel = swig_import_helper()
29  del swig_import_helper
30 else:
31  import _IMP_kernel
32 del version_info
33 try:
34  _swig_property = property
35 except NameError:
36  pass # Python < 2.2 doesn't have 'property'.
37 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
38  if (name == "thisown"): return self.this.own(value)
39  if (name == "this"):
40  if type(value).__name__ == 'SwigPyObject':
41  self.__dict__[name] = value
42  return
43  method = class_type.__swig_setmethods__.get(name,None)
44  if method: return method(self,value)
45  if (not static):
46  self.__dict__[name] = value
47  else:
48  raise AttributeError("You cannot add attributes to %s" % self)
49 
50 def _swig_setattr(self,class_type,name,value):
51  return _swig_setattr_nondynamic(self,class_type,name,value,0)
52 
53 def _swig_getattr(self,class_type,name):
54  if (name == "thisown"): return self.this.own()
55  method = class_type.__swig_getmethods__.get(name,None)
56  if method: return method(self)
57  raise AttributeError(name)
58 
59 def _swig_repr(self):
60  try: strthis = "proxy of " + self.this.__repr__()
61  except: strthis = ""
62  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
63 
64 try:
65  _object = object
66  _newclass = 1
67 except AttributeError:
68  class _object : pass
69  _newclass = 0
70 
71 
72 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  def do_destroy(self):
1735  """do_destroy(ModelObject self)"""
1736  return _IMP_kernel.ModelObject_do_destroy(self)
1737 
1738 ModelObject_swigregister = _IMP_kernel.ModelObject_swigregister
1739 ModelObject_swigregister(ModelObject)
1740 cvar = _IMP_kernel.cvar
1741 NO_MAX = cvar.NO_MAX
1742 BAD_SCORE = cvar.BAD_SCORE
1743 
1744 class _ParticleInputs(_object):
1745  """Proxy of C++ IMP::kernel::ParticleInputs class"""
1746  __swig_setmethods__ = {}
1747  __setattr__ = lambda self, name, value: _swig_setattr(self, _ParticleInputs, name, value)
1748  __swig_getmethods__ = {}
1749  __getattr__ = lambda self, name: _swig_getattr(self, _ParticleInputs, name)
1750  __repr__ = _swig_repr
1751  def get_inputs(self, *args):
1752  """get_inputs(_ParticleInputs self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
1753  return _IMP_kernel._ParticleInputs_get_inputs(self, *args)
1754 
1755  def get_input_containers(self, *args):
1756  """get_input_containers(_ParticleInputs self, Particle p) -> IMP::kernel::ContainersTemp"""
1757  return _IMP_kernel._ParticleInputs_get_input_containers(self, *args)
1758 
1759  def get_input_particles(self, *args):
1760  """get_input_particles(_ParticleInputs self, Particle p) -> IMP::kernel::ParticlesTemp"""
1761  return _IMP_kernel._ParticleInputs_get_input_particles(self, *args)
1762 
1763  def __init__(self):
1764  """__init__(IMP::kernel::ParticleInputs self) -> _ParticleInputs"""
1765  this = _IMP_kernel.new__ParticleInputs()
1766  try: self.this.append(this)
1767  except: self.this = this
1768 _ParticleInputs_swigregister = _IMP_kernel._ParticleInputs_swigregister
1769 _ParticleInputs_swigregister(_ParticleInputs)
1770 
1771 class _ParticleOutputs(_object):
1772  """Proxy of C++ IMP::kernel::ParticleOutputs class"""
1773  __swig_setmethods__ = {}
1774  __setattr__ = lambda self, name, value: _swig_setattr(self, _ParticleOutputs, name, value)
1775  __swig_getmethods__ = {}
1776  __getattr__ = lambda self, name: _swig_getattr(self, _ParticleOutputs, name)
1777  __repr__ = _swig_repr
1778  def get_outputs(self, *args):
1779  """get_outputs(_ParticleOutputs self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
1780  return _IMP_kernel._ParticleOutputs_get_outputs(self, *args)
1781 
1782  def get_output_containers(self, *args):
1783  """get_output_containers(_ParticleOutputs self, Particle p) -> IMP::kernel::ContainersTemp"""
1784  return _IMP_kernel._ParticleOutputs_get_output_containers(self, *args)
1785 
1786  def get_output_particles(self, *args):
1787  """get_output_particles(_ParticleOutputs self, Particle p) -> IMP::kernel::ParticlesTemp"""
1788  return _IMP_kernel._ParticleOutputs_get_output_particles(self, *args)
1789 
1790  def __init__(self):
1791  """__init__(IMP::kernel::ParticleOutputs self) -> _ParticleOutputs"""
1792  this = _IMP_kernel.new__ParticleOutputs()
1793  try: self.this.append(this)
1794  except: self.this = this
1795 _ParticleOutputs_swigregister = _IMP_kernel._ParticleOutputs_swigregister
1796 _ParticleOutputs_swigregister(_ParticleOutputs)
1797 
1798 
1799 def get_input_particles(*args):
1800  """get_input_particles(IMP::kernel::ModelObjectsTemp const & mos) -> IMP::kernel::ParticlesTemp"""
1801  return _IMP_kernel.get_input_particles(*args)
1802 
1803 def get_input_containers(*args):
1804  """get_input_containers(IMP::kernel::ModelObjectsTemp const & mos) -> IMP::kernel::ContainersTemp"""
1805  return _IMP_kernel.get_input_containers(*args)
1806 
1807 def get_output_particles(*args):
1808  """get_output_particles(IMP::kernel::ModelObjectsTemp const & mos) -> IMP::kernel::ParticlesTemp"""
1809  return _IMP_kernel.get_output_particles(*args)
1810 
1811 def get_output_containers(*args):
1812  """get_output_containers(IMP::kernel::ModelObjectsTemp const & mos) -> IMP::kernel::ContainersTemp"""
1813  return _IMP_kernel.get_output_containers(*args)
1814 class DerivativeAccumulator(_object):
1815  """Proxy of C++ IMP::kernel::DerivativeAccumulator class"""
1816  __swig_setmethods__ = {}
1817  __setattr__ = lambda self, name, value: _swig_setattr(self, DerivativeAccumulator, name, value)
1818  __swig_getmethods__ = {}
1819  __getattr__ = lambda self, name: _swig_getattr(self, DerivativeAccumulator, name)
1820  __repr__ = _swig_repr
1821  def __init__(self, *args):
1822  """
1823  __init__(IMP::kernel::DerivativeAccumulator self, double weight=1.0) -> DerivativeAccumulator
1824  __init__(IMP::kernel::DerivativeAccumulator self) -> DerivativeAccumulator
1825  __init__(IMP::kernel::DerivativeAccumulator self, DerivativeAccumulator copy, double weight) -> DerivativeAccumulator
1826  """
1827  this = _IMP_kernel.new_DerivativeAccumulator(*args)
1828  try: self.this.append(this)
1829  except: self.this = this
1830  def __call__(self, *args):
1831  """__call__(DerivativeAccumulator self, double const value) -> double"""
1832  return _IMP_kernel.DerivativeAccumulator___call__(self, *args)
1833 
1834  def get_weight(self):
1835  """get_weight(DerivativeAccumulator self) -> double"""
1836  return _IMP_kernel.DerivativeAccumulator_get_weight(self)
1837 
1838  def show(self, *args):
1839  """
1840  show(DerivativeAccumulator self, _ostream out=std::cout)
1841  show(DerivativeAccumulator self)
1842  """
1843  return _IMP_kernel.DerivativeAccumulator_show(self, *args)
1844 
1845  __swig_destroy__ = _IMP_kernel.delete_DerivativeAccumulator
1846  __del__ = lambda self : None;
1847 DerivativeAccumulator_swigregister = _IMP_kernel.DerivativeAccumulator_swigregister
1848 DerivativeAccumulator_swigregister(DerivativeAccumulator)
1849 
1850 class EvaluationState(_object):
1851  """Proxy of C++ IMP::kernel::EvaluationState class"""
1852  __swig_setmethods__ = {}
1853  __setattr__ = lambda self, name, value: _swig_setattr(self, EvaluationState, name, value)
1854  __swig_getmethods__ = {}
1855  __getattr__ = lambda self, name: _swig_getattr(self, EvaluationState, name)
1856  __swig_setmethods__["score"] = _IMP_kernel.EvaluationState_score_set
1857  __swig_getmethods__["score"] = _IMP_kernel.EvaluationState_score_get
1858  if _newclass:score = _swig_property(_IMP_kernel.EvaluationState_score_get, _IMP_kernel.EvaluationState_score_set)
1859  __swig_setmethods__["good"] = _IMP_kernel.EvaluationState_good_set
1860  __swig_getmethods__["good"] = _IMP_kernel.EvaluationState_good_get
1861  if _newclass:good = _swig_property(_IMP_kernel.EvaluationState_good_get, _IMP_kernel.EvaluationState_good_set)
1862  def __init__(self, *args):
1863  """
1864  __init__(IMP::kernel::EvaluationState self, double oscore, bool ogood) -> EvaluationState
1865  __init__(IMP::kernel::EvaluationState self) -> EvaluationState
1866  """
1867  this = _IMP_kernel.new_EvaluationState(*args)
1868  try: self.this.append(this)
1869  except: self.this = this
1870  def show(self, *args):
1871  """
1872  show(EvaluationState self, _ostream out=std::cout)
1873  show(EvaluationState self)
1874  """
1875  return _IMP_kernel.EvaluationState_show(self, *args)
1876 
1877  def __str__(self):
1878  """__str__(EvaluationState self) -> std::string"""
1879  return _IMP_kernel.EvaluationState___str__(self)
1880 
1881  def __repr__(self):
1882  """__repr__(EvaluationState self) -> std::string"""
1883  return _IMP_kernel.EvaluationState___repr__(self)
1884 
1885  __swig_destroy__ = _IMP_kernel.delete_EvaluationState
1886  __del__ = lambda self : None;
1887 EvaluationState_swigregister = _IMP_kernel.EvaluationState_swigregister
1888 EvaluationState_swigregister(EvaluationState)
1889 
1890 class ScoreAccumulator(IMP.base._Value):
1891  """Proxy of C++ IMP::kernel::ScoreAccumulator class"""
1892  __swig_setmethods__ = {}
1893  for _s in [IMP.base._Value]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1894  __setattr__ = lambda self, name, value: _swig_setattr(self, ScoreAccumulator, name, value)
1895  __swig_getmethods__ = {}
1896  for _s in [IMP.base._Value]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1897  __getattr__ = lambda self, name: _swig_getattr(self, ScoreAccumulator, name)
1898  def __init__(self, *args):
1899  """
1900  __init__(IMP::kernel::ScoreAccumulator self) -> ScoreAccumulator
1901  __init__(IMP::kernel::ScoreAccumulator self, ScoreAccumulator o, Restraint r) -> ScoreAccumulator
1902  __init__(IMP::kernel::ScoreAccumulator self, ScoreAccumulator o, double weight, double local_max) -> ScoreAccumulator
1903  """
1904  this = _IMP_kernel.new_ScoreAccumulator(*args)
1905  try: self.this.append(this)
1906  except: self.this = this
1907  def add_score(self, *args):
1908  """add_score(ScoreAccumulator self, double score)"""
1909  return _IMP_kernel.ScoreAccumulator_add_score(self, *args)
1910 
1911  def get_abort_evaluation(self):
1912  """get_abort_evaluation(ScoreAccumulator self) -> bool"""
1913  return _IMP_kernel.ScoreAccumulator_get_abort_evaluation(self)
1914 
1915  def get_is_evaluate_if_below(self):
1916  """get_is_evaluate_if_below(ScoreAccumulator self) -> bool"""
1917  return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_below(self)
1918 
1919  def get_is_evaluate_if_good(self):
1920  """get_is_evaluate_if_good(ScoreAccumulator self) -> bool"""
1921  return _IMP_kernel.ScoreAccumulator_get_is_evaluate_if_good(self)
1922 
1923  def get_maximum(self):
1924  """get_maximum(ScoreAccumulator self) -> double"""
1925  return _IMP_kernel.ScoreAccumulator_get_maximum(self)
1926 
1927  def get_derivative_accumulator(self):
1928  """get_derivative_accumulator(ScoreAccumulator self) -> DerivativeAccumulator"""
1929  return _IMP_kernel.ScoreAccumulator_get_derivative_accumulator(self)
1930 
1931  def show(self, *args):
1932  """
1933  show(ScoreAccumulator self, _ostream out=std::cout)
1934  show(ScoreAccumulator self)
1935  """
1936  return _IMP_kernel.ScoreAccumulator_show(self, *args)
1937 
1938  def __str__(self):
1939  """__str__(ScoreAccumulator self) -> std::string"""
1940  return _IMP_kernel.ScoreAccumulator___str__(self)
1941 
1942  def __repr__(self):
1943  """__repr__(ScoreAccumulator self) -> std::string"""
1944  return _IMP_kernel.ScoreAccumulator___repr__(self)
1945 
1946  __swig_destroy__ = _IMP_kernel.delete_ScoreAccumulator
1947  __del__ = lambda self : None;
1948 ScoreAccumulator_swigregister = _IMP_kernel.ScoreAccumulator_swigregister
1949 ScoreAccumulator_swigregister(ScoreAccumulator)
1950 
1951 class ScoreState(ModelObject):
1952  """Proxy of C++ IMP::kernel::ScoreState class"""
1953  __swig_setmethods__ = {}
1954  for _s in [ModelObject]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
1955  __setattr__ = lambda self, name, value: _swig_setattr(self, ScoreState, name, value)
1956  __swig_getmethods__ = {}
1957  for _s in [ModelObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
1958  __getattr__ = lambda self, name: _swig_getattr(self, ScoreState, name)
1959  def __init__(self, *args):
1960  """__init__(IMP::kernel::ScoreState self, Model m, std::string name) -> ScoreState"""
1961  if self.__class__ == ScoreState:
1962  _self = None
1963  else:
1964  _self = self
1965  this = _IMP_kernel.new_ScoreState(_self, *args)
1966  try: self.this.append(this)
1967  except: self.this = this
1968  if self.__class__ != ScoreState:
1969  import IMP.base
1970  IMP.base._director_objects.register(self)
1971 
1972 
1973 
1974  def before_evaluate(self):
1975  """before_evaluate(ScoreState self)"""
1976  return _IMP_kernel.ScoreState_before_evaluate(self)
1977 
1978  def after_evaluate(self, *args):
1979  """after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
1980  return _IMP_kernel.ScoreState_after_evaluate(self, *args)
1981 
1982  def get_has_update_order(self):
1983  """get_has_update_order(ScoreState self) -> bool"""
1984  return _IMP_kernel.ScoreState_get_has_update_order(self)
1985 
1986  def get_update_order(self):
1987  """get_update_order(ScoreState self) -> unsigned int"""
1988  return _IMP_kernel.ScoreState_get_update_order(self)
1989 
1990  def handle_set_has_required_score_states(self, *args):
1991  """handle_set_has_required_score_states(ScoreState self, bool tf)"""
1992  return _IMP_kernel.ScoreState_handle_set_has_required_score_states(self, *args)
1993 
1994  def do_before_evaluate(self):
1995  """do_before_evaluate(ScoreState self)"""
1996  return _IMP_kernel.ScoreState_do_before_evaluate(self)
1997 
1998  def do_after_evaluate(self, *args):
1999  """do_after_evaluate(ScoreState self, DerivativeAccumulator accpt)"""
2000  return _IMP_kernel.ScoreState_do_after_evaluate(self, *args)
2001 
2002  __swig_destroy__ = _IMP_kernel.delete_ScoreState
2003  __del__ = lambda self : None;
2004  def __str__(self):
2005  """__str__(ScoreState self) -> std::string"""
2006  return _IMP_kernel.ScoreState___str__(self)
2007 
2008  def __repr__(self):
2009  """__repr__(ScoreState self) -> std::string"""
2010  return _IMP_kernel.ScoreState___repr__(self)
2011 
2012  def get_from(o):
2013  return _object_cast_to_ScoreState(o)
2014  get_from = staticmethod(get_from)
2015 
2016  def get_type_name(self):
2017  return self.__class__.__name__
2018  def do_show(self, out):
2019  pass
2020  def get_version_info(self):
2021  if"IMP::kernel" == "IMP":
2022  return VersionInfo("python", "0")
2023  else:
2024  return IMP.VersionInfo("python", "0")
2025  def get_from(o):
2026  return _object_cast_to_ScoreState(o)
2027  get_from = staticmethod(get_from)
2028 
2029  def __disown__(self):
2030  self.this.disown()
2031  _IMP_kernel.disown_ScoreState(self)
2032  return weakref_proxy(self)
2033  def do_destroy(self):
2034  """do_destroy(ScoreState self)"""
2035  return _IMP_kernel.ScoreState_do_destroy(self)
2036 
2037  def do_get_inputs(self):
2038  """do_get_inputs(ScoreState self) -> IMP::kernel::ModelObjectsTemp"""
2039  return _IMP_kernel.ScoreState_do_get_inputs(self)
2040 
2041  def do_get_outputs(self):
2042  """do_get_outputs(ScoreState self) -> IMP::kernel::ModelObjectsTemp"""
2043  return _IMP_kernel.ScoreState_do_get_outputs(self)
2044 
2045  def do_get_interactions(self):
2046  """do_get_interactions(ScoreState self) -> IMP::kernel::ModelObjectsTemps"""
2047  return _IMP_kernel.ScoreState_do_get_interactions(self)
2048 
2049 ScoreState_swigregister = _IMP_kernel.ScoreState_swigregister
2050 ScoreState_swigregister(ScoreState)
2051 
2052 
2053 def get_update_order(*args):
2054  """get_update_order(IMP::kernel::ScoreStatesTemp input) -> IMP::kernel::ScoreStatesTemp"""
2055  return _IMP_kernel.get_update_order(*args)
2056 class Constraint(ScoreState):
2057  """Proxy of C++ IMP::kernel::Constraint class"""
2058  __swig_setmethods__ = {}
2059  for _s in [ScoreState]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
2060  __setattr__ = lambda self, name, value: _swig_setattr(self, Constraint, name, value)
2061  __swig_getmethods__ = {}
2062  for _s in [ScoreState]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
2063  __getattr__ = lambda self, name: _swig_getattr(self, Constraint, name)
2064  def __init__(self, *args):
2065  """
2066  __init__(IMP::kernel::Constraint self, Model m, std::string name="Constraint %1%") -> Constraint
2067  __init__(IMP::kernel::Constraint self, Model m) -> Constraint
2068  """
2069  if self.__class__ == Constraint:
2070  _self = None
2071  else:
2072  _self = self
2073  this = _IMP_kernel.new_Constraint(_self, *args)
2074  try: self.this.append(this)
2075  except: self.this = this
2076  if self.__class__ != Constraint:
2077  import IMP.base
2078  IMP.base._director_objects.register(self)
2079 
2080 
2081 
2082  def do_update_attributes(self):
2083  """do_update_attributes(Constraint self)"""
2084  return _IMP_kernel.Constraint_do_update_attributes(self)
2085 
2086  def do_update_derivatives(self, *args):
2087  """do_update_derivatives(Constraint self, DerivativeAccumulator da)"""
2088  return _IMP_kernel.Constraint_do_update_derivatives(self, *args)
2089 
2090  def do_before_evaluate(self):
2091  """do_before_evaluate(Constraint self)"""
2092  return _IMP_kernel.Constraint_do_before_evaluate(self)
2093 
2094  def do_after_evaluate(self, *args):
2095  """do_after_evaluate(Constraint self, DerivativeAccumulator da)"""
2096  return _IMP_kernel.Constraint_do_after_evaluate(self, *args)
2097 
2098  __swig_destroy__ = _IMP_kernel.delete_Constraint
2099  __del__ = lambda self : None;
2100  def __str__(self):
2101  """__str__(Constraint self) -> std::string"""
2102  return _IMP_kernel.Constraint___str__(self)
2103 
2104  def __repr__(self):
2105  """__repr__(Constraint self) -> std::string"""
2106  return _IMP_kernel.Constraint___repr__(self)
2107 
2108  def get_from(o):
2109  return _object_cast_to_Constraint(o)
2110  get_from = staticmethod(get_from)
2111 
2112  def get_type_name(self):
2113  return self.__class__.__name__
2114  def do_show(self, out):
2115  pass
2116  def get_version_info(self):
2117  if"IMP::kernel" == "IMP":
2118  return VersionInfo("python", "0")
2119  else:
2120  return IMP.VersionInfo("python", "0")
2121  def get_from(o):
2122  return _object_cast_to_Constraint(o)
2123  get_from = staticmethod(get_from)
2124 
2125  def __disown__(self):
2126  self.this.disown()
2127  _IMP_kernel.disown_Constraint(self)
2128  return weakref_proxy(self)
2129  def do_destroy(self):
2130  """do_destroy(Constraint self)"""
2131  return _IMP_kernel.Constraint_do_destroy(self)
2132 
2133  def do_get_inputs(self):
2134  """do_get_inputs(Constraint self) -> IMP::kernel::ModelObjectsTemp"""
2135  return _IMP_kernel.Constraint_do_get_inputs(self)
2136 
2137  def do_get_outputs(self):
2138  """do_get_outputs(Constraint self) -> IMP::kernel::ModelObjectsTemp"""
2139  return _IMP_kernel.Constraint_do_get_outputs(self)
2140 
2141  def do_get_interactions(self):
2142  """do_get_interactions(Constraint self) -> IMP::kernel::ModelObjectsTemps"""
2143  return _IMP_kernel.Constraint_do_get_interactions(self)
2144 
2145 Constraint_swigregister = _IMP_kernel.Constraint_swigregister
2146 Constraint_swigregister(Constraint)
2147 
2148 class Container(ModelObject):
2149  """Proxy of C++ IMP::kernel::Container class"""
2150  __swig_setmethods__ = {}
2151  for _s in [ModelObject]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
2152  __setattr__ = lambda self, name, value: _swig_setattr(self, Container, name, value)
2153  __swig_getmethods__ = {}
2154  for _s in [ModelObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
2155  __getattr__ = lambda self, name: _swig_getattr(self, Container, name)
2156  def __init__(self, *args):
2157  """
2158  __init__(IMP::kernel::Container self, Model m, std::string name="Container %1%") -> Container
2159  __init__(IMP::kernel::Container self, Model m) -> Container
2160  """
2161  if self.__class__ == Container:
2162  _self = None
2163  else:
2164  _self = self
2165  this = _IMP_kernel.new_Container(_self, *args)
2166  try: self.this.append(this)
2167  except: self.this = this
2168  if self.__class__ != Container:
2169  import IMP.base
2170  IMP.base._director_objects.register(self)
2171 
2172 
2173 
2174  def do_get_contents_hash(self):
2175  """do_get_contents_hash(Container self) -> std::size_t"""
2176  return _IMP_kernel.Container_do_get_contents_hash(self)
2177 
2178  def get_all_possible_indexes(self):
2179  """get_all_possible_indexes(Container self) -> IMP::kernel::ParticleIndexes"""
2180  return _IMP_kernel.Container_get_all_possible_indexes(self)
2181 
2182  def get_contents_hash(self):
2183  """get_contents_hash(Container self) -> std::size_t"""
2184  return _IMP_kernel.Container_get_contents_hash(self)
2185 
2186  def do_get_outputs(self):
2187  """do_get_outputs(Container self) -> IMP::kernel::ModelObjectsTemp"""
2188  return _IMP_kernel.Container_do_get_outputs(self)
2189 
2190  def get_is_decomposable(self):
2191  """get_is_decomposable(Container self) -> bool"""
2192  return _IMP_kernel.Container_get_is_decomposable(self)
2193 
2194  def validate_readable(self):
2195  """validate_readable(Container self)"""
2196  return _IMP_kernel.Container_validate_readable(self)
2197 
2198  def validate_writable(self):
2199  """validate_writable(Container self)"""
2200  return _IMP_kernel.Container_validate_writable(self)
2201 
2202  def set_is_readable(self, *args):
2203  """set_is_readable(Container self, bool tf)"""
2204  return _IMP_kernel.Container_set_is_readable(self, *args)
2205 
2206  def set_is_writable(self, *args):
2207  """set_is_writable(Container self, bool tf)"""
2208  return _IMP_kernel.Container_set_is_writable(self, *args)
2209 
2210  __swig_destroy__ = _IMP_kernel.delete_Container
2211  __del__ = lambda self : None;
2212  def __str__(self):
2213  """__str__(Container self) -> std::string"""
2214  return _IMP_kernel.Container___str__(self)
2215 
2216  def __repr__(self):
2217  """__repr__(Container self) -> std::string"""
2218  return _IMP_kernel.Container___repr__(self)
2219 
2220  def get_from(o):
2221  return _object_cast_to_Container(o)
2222  get_from = staticmethod(get_from)
2223 
2224  def get_type_name(self):
2225  return self.__class__.__name__
2226  def do_show(self, out):
2227  pass
2228  def get_version_info(self):
2229  if"IMP::kernel" == "IMP":
2230  return VersionInfo("python", "0")
2231  else:
2232  return IMP.VersionInfo("python", "0")
2233  def get_from(o):
2234  return _object_cast_to_Container(o)
2235  get_from = staticmethod(get_from)
2236 
2237  def __disown__(self):
2238  self.this.disown()
2239  _IMP_kernel.disown_Container(self)
2240  return weakref_proxy(self)
2241  def do_destroy(self):
2242  """do_destroy(Container self)"""
2243  return _IMP_kernel.Container_do_destroy(self)
2244 
2245  def handle_set_has_required_score_states(self, *args):
2246  """handle_set_has_required_score_states(Container self, bool arg0)"""
2247  return _IMP_kernel.Container_handle_set_has_required_score_states(self, *args)
2248 
2249  def do_get_inputs(self):
2250  """do_get_inputs(Container self) -> IMP::kernel::ModelObjectsTemp"""
2251  return _IMP_kernel.Container_do_get_inputs(self)
2252 
2253  def do_get_interactions(self):
2254  """do_get_interactions(Container self) -> IMP::kernel::ModelObjectsTemps"""
2255  return _IMP_kernel.Container_do_get_interactions(self)
2256 
2257 Container_swigregister = _IMP_kernel.Container_swigregister
2258 Container_swigregister(Container)
2259 
2260 class Restraint(ModelObject):
2261  """Proxy of C++ IMP::kernel::Restraint class"""
2262  __swig_setmethods__ = {}
2263  for _s in [ModelObject]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
2264  __setattr__ = lambda self, name, value: _swig_setattr(self, Restraint, name, value)
2265  __swig_getmethods__ = {}
2266  for _s in [ModelObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
2267  __getattr__ = lambda self, name: _swig_getattr(self, Restraint, name)
2268  def __init__(self, *args):
2269  """__init__(IMP::kernel::Restraint self, Model m, std::string name) -> Restraint"""
2270  if self.__class__ == Restraint:
2271  _self = None
2272  else:
2273  _self = self
2274  this = _IMP_kernel.new_Restraint(_self, *args)
2275  try: self.this.append(this)
2276  except: self.this = this
2277  if self.__class__ != Restraint:
2278  import IMP.base
2279  IMP.base._director_objects.register(self)
2280 
2281 
2282 
2283  def get_score(self):
2284  """get_score(Restraint self) -> double"""
2285  return _IMP_kernel.Restraint_get_score(self)
2286 
2287  def evaluate(self, *args):
2288  """evaluate(Restraint self, bool calc_derivs) -> double"""
2289  return _IMP_kernel.Restraint_evaluate(self, *args)
2290 
2291  def evaluate_if_good(self, *args):
2292  """evaluate_if_good(Restraint self, bool calc_derivatives) -> double"""
2293  return _IMP_kernel.Restraint_evaluate_if_good(self, *args)
2294 
2295  def evaluate_if_below(self, *args):
2296  """evaluate_if_below(Restraint self, bool calc_derivatives, double max) -> double"""
2297  return _IMP_kernel.Restraint_evaluate_if_below(self, *args)
2298 
2299  def unprotected_evaluate(self, *args):
2300  """unprotected_evaluate(Restraint self, DerivativeAccumulator da) -> double"""
2301  return _IMP_kernel.Restraint_unprotected_evaluate(self, *args)
2302 
2303  def unprotected_evaluate_if_good(self, *args):
2304  """unprotected_evaluate_if_good(Restraint self, DerivativeAccumulator da, double max) -> double"""
2305  return _IMP_kernel.Restraint_unprotected_evaluate_if_good(self, *args)
2306 
2307  def unprotected_evaluate_if_below(self, *args):
2308  """unprotected_evaluate_if_below(Restraint self, DerivativeAccumulator da, double max) -> double"""
2309  return _IMP_kernel.Restraint_unprotected_evaluate_if_below(self, *args)
2310 
2311  def add_score_and_derivatives(self, *args):
2312  """add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
2313  return _IMP_kernel.Restraint_add_score_and_derivatives(self, *args)
2314 
2315  def create_decomposition(self):
2316  """create_decomposition(Restraint self) -> Restraint"""
2317  return _IMP_kernel.Restraint_create_decomposition(self)
2318 
2319  def create_current_decomposition(self):
2320  """create_current_decomposition(Restraint self) -> Restraint"""
2321  return _IMP_kernel.Restraint_create_current_decomposition(self)
2322 
2323  def set_weight(self, *args):
2324  """set_weight(Restraint self, IMP::Float weight)"""
2325  return _IMP_kernel.Restraint_set_weight(self, *args)
2326 
2327  def get_weight(self):
2328  """get_weight(Restraint self) -> IMP::Float"""
2329  return _IMP_kernel.Restraint_get_weight(self)
2330 
2331  def get_maximum_score(self):
2332  """get_maximum_score(Restraint self) -> double"""
2333  return _IMP_kernel.Restraint_get_maximum_score(self)
2334 
2335  def set_maximum_score(self, *args):
2336  """set_maximum_score(Restraint self, double s)"""
2337  return _IMP_kernel.Restraint_set_maximum_score(self, *args)
2338 
2339  def create_scoring_function(self, *args):
2340  """
2341  create_scoring_function(Restraint self, double weight=1.0, double max=NO_MAX) -> ScoringFunction
2342  create_scoring_function(Restraint self, double weight=1.0) -> ScoringFunction
2343  create_scoring_function(Restraint self) -> ScoringFunction
2344  """
2345  return _IMP_kernel.Restraint_create_scoring_function(self, *args)
2346 
2347  def set_last_score(self, *args):
2348  """set_last_score(Restraint self, double s)"""
2349  return _IMP_kernel.Restraint_set_last_score(self, *args)
2350 
2351  def get_last_score(self):
2352  """get_last_score(Restraint self) -> double"""
2353  return _IMP_kernel.Restraint_get_last_score(self)
2354 
2355  def get_was_good(self):
2356  """get_was_good(Restraint self) -> bool"""
2357  return _IMP_kernel.Restraint_get_was_good(self)
2358 
2359  __swig_destroy__ = _IMP_kernel.delete_Restraint
2360  __del__ = lambda self : None;
2361  def do_create_decomposition(self):
2362  """do_create_decomposition(Restraint self) -> IMP::kernel::Restraints"""
2363  return _IMP_kernel.Restraint_do_create_decomposition(self)
2364 
2365  def do_create_current_decomposition(self):
2366  """do_create_current_decomposition(Restraint self) -> IMP::kernel::Restraints"""
2367  return _IMP_kernel.Restraint_do_create_current_decomposition(self)
2368 
2369  def do_add_score_and_derivatives(self, *args):
2370  """do_add_score_and_derivatives(Restraint self, ScoreAccumulator sa)"""
2371  return _IMP_kernel.Restraint_do_add_score_and_derivatives(self, *args)
2372 
2373  def do_get_outputs(self):
2374  """do_get_outputs(Restraint self) -> IMP::kernel::ModelObjectsTemp"""
2375  return _IMP_kernel.Restraint_do_get_outputs(self)
2376 
2377  def __str__(self):
2378  """__str__(Restraint self) -> std::string"""
2379  return _IMP_kernel.Restraint___str__(self)
2380 
2381  def __repr__(self):
2382  """__repr__(Restraint self) -> std::string"""
2383  return _IMP_kernel.Restraint___repr__(self)
2384 
2385  def get_from(o):
2386  return _object_cast_to_Restraint(o)
2387  get_from = staticmethod(get_from)
2388 
2389  def get_type_name(self):
2390  return self.__class__.__name__
2391  def do_show(self, out):
2392  pass
2393  def get_version_info(self):
2394  if"IMP::kernel" == "IMP":
2395  return VersionInfo("python", "0")
2396  else:
2397  return IMP.VersionInfo("python", "0")
2398  def get_from(o):
2399  return _object_cast_to_Restraint(o)
2400  get_from = staticmethod(get_from)
2401 
2402  def __disown__(self):
2403  self.this.disown()
2404  _IMP_kernel.disown_Restraint(self)
2405  return weakref_proxy(self)
2406  def do_destroy(self):
2407  """do_destroy(Restraint self)"""
2408  return _IMP_kernel.Restraint_do_destroy(self)
2409 
2410  def handle_set_has_required_score_states(self, *args):
2411  """handle_set_has_required_score_states(Restraint self, bool arg0)"""
2412  return _IMP_kernel.Restraint_handle_set_has_required_score_states(self, *args)
2413 
2414  def do_get_inputs(self):
2415  """do_get_inputs(Restraint self) -> IMP::kernel::ModelObjectsTemp"""
2416  return _IMP_kernel.Restraint_do_get_inputs(self)
2417 
2418  def do_get_interactions(self):
2419  """do_get_interactions(Restraint self) -> IMP::kernel::ModelObjectsTemps"""
2420  return _IMP_kernel.Restraint_do_get_interactions(self)
2421 
2422 Restraint_swigregister = _IMP_kernel.Restraint_swigregister
2423 Restraint_swigregister(Restraint)
2424 
2425 class _RestraintsAdaptor(IMP.base._InputAdaptor):
2426  """Proxy of C++ IMP::kernel::RestraintsAdaptor class"""
2427  __swig_setmethods__ = {}
2428  for _s in [IMP.base._InputAdaptor]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
2429  __setattr__ = lambda self, name, value: _swig_setattr(self, _RestraintsAdaptor, name, value)
2430  __swig_getmethods__ = {}
2431  for _s in [IMP.base._InputAdaptor]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
2432  __getattr__ = lambda self, name: _swig_getattr(self, _RestraintsAdaptor, name)
2433  __repr__ = _swig_repr
2434  def __init__(self, *args):
2435  """
2436  __init__(IMP::kernel::RestraintsAdaptor self) -> _RestraintsAdaptor
2437  __init__(IMP::kernel::RestraintsAdaptor self, IMP::kernel::Restraints const & sf) -> _RestraintsAdaptor
2438  __init__(IMP::kernel::RestraintsAdaptor self, IMP::kernel::RestraintsTemp const & sf) -> _RestraintsAdaptor
2439  __init__(IMP::kernel::RestraintsAdaptor self, Restraint sf) -> _RestraintsAdaptor
2440  __init__(IMP::kernel::RestraintsAdaptor self, Model sf) -> _RestraintsAdaptor
2441  __init__(IMP::kernel::RestraintsAdaptor self, IMP::kernel::ModelsTemp const & sf) -> _RestraintsAdaptor
2442  """
2443  this = _IMP_kernel.new__RestraintsAdaptor(*args)
2444  try: self.this.append(this)
2445  except: self.this = this
2446  __swig_destroy__ = _IMP_kernel.delete__RestraintsAdaptor
2447  __del__ = lambda self : None;
2448 _RestraintsAdaptor_swigregister = _IMP_kernel._RestraintsAdaptor_swigregister
2449 _RestraintsAdaptor_swigregister(_RestraintsAdaptor)
2450 
2451 class RestraintSet(Restraint):
2452  """Proxy of C++ IMP::kernel::RestraintSet class"""
2453  __swig_setmethods__ = {}
2454  for _s in [Restraint]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
2455  __setattr__ = lambda self, name, value: _swig_setattr(self, RestraintSet, name, value)
2456  __swig_getmethods__ = {}
2457  for _s in [Restraint]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
2458  __getattr__ = lambda self, name: _swig_getattr(self, RestraintSet, name)
2459  def __init__(self, *args):
2460  """
2461  __init__(IMP::kernel::RestraintSet self, Model m, double weight, std::string const & name="RestraintSet %1%") -> RestraintSet
2462  __init__(IMP::kernel::RestraintSet self, Model m, double weight) -> RestraintSet
2463  __init__(IMP::kernel::RestraintSet self, Model m, std::string const & name="RestraintSet %1%") -> RestraintSet
2464  __init__(IMP::kernel::RestraintSet self, Model m) -> RestraintSet
2465  __init__(IMP::kernel::RestraintSet self, IMP::kernel::RestraintsTemp const & rs, double weight, std::string const & name="RestraintSet %1%") -> RestraintSet
2466  __init__(IMP::kernel::RestraintSet self, IMP::kernel::RestraintsTemp const & rs, double weight) -> RestraintSet
2467  """
2468  this = _IMP_kernel.new_RestraintSet(*args)
2469  try: self.this.append(this)
2470  except: self.this = this
2471  def get_version_info(self):
2472  """get_version_info(RestraintSet self) -> VersionInfo"""
2473  return _IMP_kernel.RestraintSet_get_version_info(self)
2474 
2475  def remove_restraint(self, *args):
2476  """remove_restraint(RestraintSet self, Restraint d)"""
2477  return _IMP_kernel.RestraintSet_remove_restraint(self, *args)
2478 
2479  def remove_restraints(self, *args):
2480  """remove_restraints(RestraintSet self, IMP::kernel::Restraints const & d)"""
2481  return _IMP_kernel.RestraintSet_remove_restraints(self, *args)
2482 
2483  def set_restraints(self, *args):
2484  """set_restraints(RestraintSet self, IMP::kernel::Restraints const & ps)"""
2485  return _IMP_kernel.RestraintSet_set_restraints(self, *args)
2486 
2487  def set_restraints_order(self, *args):
2488  """set_restraints_order(RestraintSet self, IMP::kernel::Restraints const & objs)"""
2489  return _IMP_kernel.RestraintSet_set_restraints_order(self, *args)
2490 
2491  def add_restraint(self, *args):
2492  """add_restraint(RestraintSet self, Restraint obj) -> unsigned int"""
2493  return _IMP_kernel.RestraintSet_add_restraint(self, *args)
2494 
2495  def add_restraints(self, *args):
2496  """add_restraints(RestraintSet self, IMP::kernel::Restraints const & objs)"""
2497  return _IMP_kernel.RestraintSet_add_restraints(self, *args)
2498 
2499  def clear_restraints(self):
2500  """clear_restraints(RestraintSet self)"""
2501  return _IMP_kernel.RestraintSet_clear_restraints(self)
2502 
2503  def get_number_of_restraints(self):
2504  """get_number_of_restraints(RestraintSet self) -> unsigned int"""
2505  return _IMP_kernel.RestraintSet_get_number_of_restraints(self)
2506 
2507  def get_has_restraints(self):
2508  """get_has_restraints(RestraintSet self) -> bool"""
2509  return _IMP_kernel.RestraintSet_get_has_restraints(self)
2510 
2511  def get_restraint(self, *args):
2512  """get_restraint(RestraintSet self, unsigned int i) -> Restraint"""
2513  return _IMP_kernel.RestraintSet_get_restraint(self, *args)
2514 
2515  def get_restraints(self):
2516  """get_restraints(RestraintSet self) -> IMP::kernel::Restraints"""
2517  return _IMP_kernel.RestraintSet_get_restraints(self)
2518 
2519  def reserve_restraints(self, *args):
2520  """reserve_restraints(RestraintSet self, unsigned int sz)"""
2521  return _IMP_kernel.RestraintSet_reserve_restraints(self, *args)
2522 
2523  def get_non_sets_and_sets(self):
2524  """get_non_sets_and_sets(RestraintSet self) -> std::pair< IMP::kernel::RestraintsTemp,IMP::kernel::RestraintSetsTemp >"""
2525  return _IMP_kernel.RestraintSet_get_non_sets_and_sets(self)
2526 
2527  def do_get_inputs(self):
2528  """do_get_inputs(RestraintSet self) -> IMP::kernel::ModelObjectsTemp"""
2529  return _IMP_kernel.RestraintSet_do_get_inputs(self)
2530 
2531  def create_scoring_function(self, *args):
2532  """
2533  create_scoring_function(RestraintSet self, double weight=1.0, double max=std::numeric_limits< double >::max()) -> ScoringFunction
2534  create_scoring_function(RestraintSet self, double weight=1.0) -> ScoringFunction
2535  create_scoring_function(RestraintSet self) -> ScoringFunction
2536  """
2537  return _IMP_kernel.RestraintSet_create_scoring_function(self, *args)
2538 
2539  def __str__(self):
2540  """__str__(RestraintSet self) -> std::string"""
2541  return _IMP_kernel.RestraintSet___str__(self)
2542 
2543  def __repr__(self):
2544  """__repr__(RestraintSet self) -> std::string"""
2545  return _IMP_kernel.RestraintSet___repr__(self)
2546 
2547  def get_from(o):
2548  return _object_cast_to_RestraintSet(o)
2549  get_from = staticmethod(get_from)
2550 
2551 RestraintSet_swigregister = _IMP_kernel.RestraintSet_swigregister
2552 RestraintSet_swigregister(RestraintSet)
2553 
2554 
2555 def get_restraints(*args):
2556  """get_restraints(IMP::kernel::RestraintsTemp const & rs) -> IMP::kernel::RestraintsTemp"""
2557  return _IMP_kernel.get_restraints(*args)
2558 def _check_particle(p, a):
2559  if (not p.get_is_active()):
2560  raise ValueError("Inactive Particle")
2561  if (type(a)() == a):
2562  raise IndexError("Cannot use default Index")
2563  if (not p.has_attribute(a)):
2564  raise IndexError("Particle does not have attribute")
2565 
2566 class Particle(ModelObject):
2567  """Proxy of C++ IMP::kernel::Particle class"""
2568  __swig_setmethods__ = {}
2569  for _s in [ModelObject]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
2570  __setattr__ = lambda self, name, value: _swig_setattr(self, Particle, name, value)
2571  __swig_getmethods__ = {}
2572  for _s in [ModelObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
2573  __getattr__ = lambda self, name: _swig_getattr(self, Particle, name)
2574  def get_version_info(self):
2575  """get_version_info(Particle self) -> VersionInfo"""
2576  return _IMP_kernel.Particle_get_version_info(self)
2577 
2578  def __init__(self, *args):
2579  """
2580  __init__(IMP::kernel::Particle self, Model m, std::string name) -> Particle
2581  __init__(IMP::kernel::Particle self, Model m) -> Particle
2582  """
2583  this = _IMP_kernel.new_Particle(*args)
2584  try: self.this.append(this)
2585  except: self.this = this
2586  def get_float_keys(self):
2587  """get_float_keys(Particle self) -> IMP::kernel::FloatKeys"""
2588  return _IMP_kernel.Particle_get_float_keys(self)
2589 
2590  def get_int_keys(self):
2591  """get_int_keys(Particle self) -> IMP::kernel::IntKeys"""
2592  return _IMP_kernel.Particle_get_int_keys(self)
2593 
2594  def get_string_keys(self):
2595  """get_string_keys(Particle self) -> IMP::kernel::StringKeys"""
2596  return _IMP_kernel.Particle_get_string_keys(self)
2597 
2598  def get_object_keys(self):
2599  """get_object_keys(Particle self) -> IMP::kernel::ObjectKeys"""
2600  return _IMP_kernel.Particle_get_object_keys(self)
2601 
2602  def add_cache_attribute(self, *args):
2603  """
2604  add_cache_attribute(Particle self, FloatKey name, IMP::Float value)
2605  add_cache_attribute(Particle self, IntKey name, IMP::Int value)
2606  add_cache_attribute(Particle self, StringKey name, IMP::String value)
2607  add_cache_attribute(Particle self, ObjectKey name, Object * value)
2608  add_cache_attribute(Particle self, IMP::kernel::WeakObjectKey name, Object * value)
2609  """
2610  return _IMP_kernel.Particle_add_cache_attribute(self, *args)
2611 
2612  def get_weak_object_keys(self):
2613  """get_weak_object_keys(Particle self) -> IMP::kernel::WeakObjectKeys"""
2614  return _IMP_kernel.Particle_get_weak_object_keys(self)
2615 
2616  def add_to_derivative(self, *args):
2617  """add_to_derivative(Particle self, FloatKey key, IMP::Float value, DerivativeAccumulator da)"""
2618  return _IMP_kernel.Particle_add_to_derivative(self, *args)
2619 
2620  def set_is_optimized(self, *args):
2621  """set_is_optimized(Particle self, FloatKey k, bool tf)"""
2622  return _IMP_kernel.Particle_set_is_optimized(self, *args)
2623 
2624  def get_is_optimized(self, *args):
2625  """get_is_optimized(Particle self, FloatKey k) -> bool"""
2626  return _IMP_kernel.Particle_get_is_optimized(self, *args)
2627 
2628  def get_derivative(self, *args):
2629  """get_derivative(Particle self, FloatKey name) -> IMP::Float"""
2630  return _IMP_kernel.Particle_get_derivative(self, *args)
2631 
2632  def add_attribute(self, *args):
2633  """
2634  add_attribute(Particle self, FloatKey name, IMP::Float initial_value)
2635  add_attribute(Particle self, IntKey name, IMP::Int initial_value)
2636  add_attribute(Particle self, StringKey name, IMP::String initial_value)
2637  add_attribute(Particle self, ObjectKey name, Object * initial_value)
2638  add_attribute(Particle self, IMP::kernel::WeakObjectKey name, Object * initial_value)
2639  add_attribute(Particle self, FloatKey name, IMP::Float const initial_value, bool optimized)
2640  add_attribute(Particle self, ParticleIndexKey k, Particle v)
2641  """
2642  return _IMP_kernel.Particle_add_attribute(self, *args)
2643 
2644  def has_attribute(self, *args):
2645  """
2646  has_attribute(Particle self, FloatKey name) -> bool
2647  has_attribute(Particle self, IntKey name) -> bool
2648  has_attribute(Particle self, StringKey name) -> bool
2649  has_attribute(Particle self, ObjectKey name) -> bool
2650  has_attribute(Particle self, IMP::kernel::WeakObjectKey name) -> bool
2651  has_attribute(Particle self, ParticleIndexKey k) -> bool
2652  """
2653  return _IMP_kernel.Particle_has_attribute(self, *args)
2654 
2655  def set_value(self, *args):
2656  """
2657  set_value(Particle self, FloatKey name, IMP::Float value)
2658  set_value(Particle self, IntKey name, IMP::Int value)
2659  set_value(Particle self, StringKey name, IMP::String value)
2660  set_value(Particle self, ObjectKey name, Object * value)
2661  set_value(Particle self, IMP::kernel::WeakObjectKey name, Object * value)
2662  set_value(Particle self, ParticleIndexKey k, Particle v)
2663  """
2664  return _IMP_kernel.Particle_set_value(self, *args)
2665 
2666  def get_value(self, *args):
2667  """
2668  get_value(Particle self, FloatKey name) -> IMP::Float
2669  get_value(Particle self, IntKey name) -> IMP::Int
2670  get_value(Particle self, StringKey name) -> IMP::String
2671  get_value(Particle self, ObjectKey name) -> Object
2672  get_value(Particle self, IMP::kernel::WeakObjectKey name) -> Object
2673  get_value(Particle self, ParticleIndexKey k) -> Particle
2674  """
2675  return _IMP_kernel.Particle_get_value(self, *args)
2676 
2677  def remove_attribute(self, *args):
2678  """
2679  remove_attribute(Particle self, FloatKey name)
2680  remove_attribute(Particle self, IntKey name)
2681  remove_attribute(Particle self, StringKey name)
2682  remove_attribute(Particle self, ObjectKey name)
2683  remove_attribute(Particle self, IMP::kernel::WeakObjectKey name)
2684  remove_attribute(Particle self, ParticleIndexKey k)
2685  """
2686  return _IMP_kernel.Particle_remove_attribute(self, *args)
2687 
2688  def get_particle_keys(self):
2689  """get_particle_keys(Particle self) -> IMP::kernel::ParticleIndexKeys"""
2690  return _IMP_kernel.Particle_get_particle_keys(self)
2691 
2692  def show(self, *args):
2693  """
2694  show(Particle self, _ostream out=std::cout)
2695  show(Particle self)
2696  """
2697  return _IMP_kernel.Particle_show(self, *args)
2698 
2699  def get_is_active(self):
2700  """get_is_active(Particle self) -> bool"""
2701  return _IMP_kernel.Particle_get_is_active(self)
2702 
2703  def get_index(self):
2704  """get_index(Particle self) -> IMP::kernel::ParticleIndex"""
2705  return _IMP_kernel.Particle_get_index(self)
2706 
2707  def __eq__(self, *args):
2708  """
2709  __eq__(Particle self, Particle o) -> bool
2710  __eq__(Particle self, Decorator d) -> bool
2711  """
2712  return _IMP_kernel.Particle___eq__(self, *args)
2713 
2714  def __ne__(self, *args):
2715  """
2716  __ne__(Particle self, Particle o) -> bool
2717  __ne__(Particle self, Decorator d) -> bool
2718  """
2719  return _IMP_kernel.Particle___ne__(self, *args)
2720 
2721  def __le__(self, *args):
2722  """
2723  __le__(Particle self, Particle o) -> bool
2724  __le__(Particle self, Decorator d) -> bool
2725  """
2726  return _IMP_kernel.Particle___le__(self, *args)
2727 
2728  def __lt__(self, *args):
2729  """
2730  __lt__(Particle self, Particle o) -> bool
2731  __lt__(Particle self, Decorator d) -> bool
2732  """
2733  return _IMP_kernel.Particle___lt__(self, *args)
2734 
2735  def __ge__(self, *args):
2736  """
2737  __ge__(Particle self, Particle o) -> bool
2738  __ge__(Particle self, Decorator d) -> bool
2739  """
2740  return _IMP_kernel.Particle___ge__(self, *args)
2741 
2742  def __gt__(self, *args):
2743  """
2744  __gt__(Particle self, Particle o) -> bool
2745  __gt__(Particle self, Decorator d) -> bool
2746  """
2747  return _IMP_kernel.Particle___gt__(self, *args)
2748 
2749  def __str__(self):
2750  """__str__(Particle self) -> std::string"""
2751  return _IMP_kernel.Particle___str__(self)
2752 
2753  def __repr__(self):
2754  """__repr__(Particle self) -> std::string"""
2755  return _IMP_kernel.Particle___repr__(self)
2756 
2757  def get_from(o):
2758  return _object_cast_to_Particle(o)
2759  get_from = staticmethod(get_from)
2760 
2761 Particle_swigregister = _IMP_kernel.Particle_swigregister
2762 Particle_swigregister(Particle)
2763 
2764 class _ParticleAdaptor(IMP.base._InputAdaptor):
2765  """Proxy of C++ IMP::kernel::ParticleAdaptor class"""
2766  __swig_setmethods__ = {}
2767  for _s in [IMP.base._InputAdaptor]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
2768  __setattr__ = lambda self, name, value: _swig_setattr(self, _ParticleAdaptor, name, value)
2769  __swig_getmethods__ = {}
2770  for _s in [IMP.base._InputAdaptor]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
2771  __getattr__ = lambda self, name: _swig_getattr(self, _ParticleAdaptor, name)
2772  __repr__ = _swig_repr
2773  def __init__(self, *args):
2774  """
2775  __init__(IMP::kernel::ParticleAdaptor self) -> _ParticleAdaptor
2776  __init__(IMP::kernel::ParticleAdaptor self, Particle p) -> _ParticleAdaptor
2777  __init__(IMP::kernel::ParticleAdaptor self, Decorator d) -> _ParticleAdaptor
2778  """
2779  this = _IMP_kernel.new__ParticleAdaptor(*args)
2780  try: self.this.append(this)
2781  except: self.this = this
2782  def get_model(self):
2783  """get_model(_ParticleAdaptor self) -> Model"""
2784  return _IMP_kernel._ParticleAdaptor_get_model(self)
2785 
2786  def get_particle_index(self):
2787  """get_particle_index(_ParticleAdaptor self) -> IMP::kernel::ParticleIndex"""
2788  return _IMP_kernel._ParticleAdaptor_get_particle_index(self)
2789 
2790  __swig_destroy__ = _IMP_kernel.delete__ParticleAdaptor
2791  __del__ = lambda self : None;
2792 _ParticleAdaptor_swigregister = _IMP_kernel._ParticleAdaptor_swigregister
2793 _ParticleAdaptor_swigregister(_ParticleAdaptor)
2794 
2795 class _DependencyGraphVertexIndex(_object):
2796  """Proxy of C++ IMP::kernel::DependencyGraphVertexIndex class"""
2797  __swig_setmethods__ = {}
2798  __setattr__ = lambda self, name, value: _swig_setattr(self, _DependencyGraphVertexIndex, name, value)
2799  __swig_getmethods__ = {}
2800  __getattr__ = lambda self, name: _swig_getattr(self, _DependencyGraphVertexIndex, name)
2801  __repr__ = _swig_repr
2802  def __init__(self):
2803  """__init__(IMP::kernel::DependencyGraphVertexIndex self) -> _DependencyGraphVertexIndex"""
2804  this = _IMP_kernel.new__DependencyGraphVertexIndex()
2805  try: self.this.append(this)
2806  except: self.this = this
2807  __swig_destroy__ = _IMP_kernel.delete__DependencyGraphVertexIndex
2808  __del__ = lambda self : None;
2809 _DependencyGraphVertexIndex_swigregister = _IMP_kernel._DependencyGraphVertexIndex_swigregister
2810 _DependencyGraphVertexIndex_swigregister(_DependencyGraphVertexIndex)
2811 
2812 
2813 def show_as_graphviz(*args):
2814  """show_as_graphviz(IMP::kernel::DependencyGraph const & name, TextOutput out)"""
2815  return _IMP_kernel.show_as_graphviz(*args)
2816 
2817 def get_vertex_index(*args):
2818  """get_vertex_index(IMP::kernel::DependencyGraph const & g) -> _DependencyGraphVertexIndex"""
2819  return _IMP_kernel.get_vertex_index(*args)
2820 
2821 def get_dependency_graph(*args):
2822  """get_dependency_graph(Model m) -> IMP::kernel::DependencyGraph"""
2823  return _IMP_kernel.get_dependency_graph(*args)
2824 
2825 def get_pruned_dependency_graph(*args):
2826  """get_pruned_dependency_graph(Model m) -> IMP::kernel::DependencyGraph"""
2827  return _IMP_kernel.get_pruned_dependency_graph(*args)
2828 
2829 def get_required_score_states(*args):
2830  """
2831  get_required_score_states(IMP::kernel::ModelObjectsTemp const & mos, IMP::kernel::ScoreStatesTemp exclude=IMP::kernel::ScoreStatesTemp()) -> IMP::kernel::ScoreStatesTemp
2832  get_required_score_states(IMP::kernel::ModelObjectsTemp const & mos) -> IMP::kernel::ScoreStatesTemp
2833  get_required_score_states(ModelObject p, IMP::kernel::ModelObjectsTemp const & all, IMP::kernel::DependencyGraph const & dg,
2834  _DependencyGraphVertexIndex index) -> IMP::kernel::ScoreStatesTemp
2835  """
2836  return _IMP_kernel.get_required_score_states(*args)
2837 
2838 def get_dependent_particles(*args):
2839  """
2840  get_dependent_particles(ModelObject p, IMP::kernel::ModelObjectsTemp const & all, IMP::kernel::DependencyGraph const & dg,
2841  _DependencyGraphVertexIndex index) -> IMP::kernel::ParticlesTemp
2842  """
2843  return _IMP_kernel.get_dependent_particles(*args)
2844 
2845 def get_dependent_score_states(*args):
2846  """
2847  get_dependent_score_states(ModelObject p, IMP::kernel::ModelObjectsTemp const & all, IMP::kernel::DependencyGraph const & dg,
2848  _DependencyGraphVertexIndex index) -> IMP::kernel::ScoreStatesTemp
2849  """
2850  return _IMP_kernel.get_dependent_score_states(*args)
2851 
2852 def get_dependent_restraints(*args):
2853  """
2854  get_dependent_restraints(ModelObject p, IMP::kernel::ModelObjectsTemp const & all, IMP::kernel::DependencyGraph const & dg,
2855  _DependencyGraphVertexIndex index) -> IMP::kernel::RestraintsTemp
2856  get_dependent_restraints(Model m, IMP::kernel::ParticleIndex pi) -> IMP::kernel::RestraintsTemp
2857  """
2858  return _IMP_kernel.get_dependent_restraints(*args)
2860  """Proxy of C++ IMP::kernel::ScoringFunction class"""
2861  __swig_setmethods__ = {}
2862  for _s in [ModelObject]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
2863  __setattr__ = lambda self, name, value: _swig_setattr(self, ScoringFunction, name, value)
2864  __swig_getmethods__ = {}
2865  for _s in [ModelObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
2866  __getattr__ = lambda self, name: _swig_getattr(self, ScoringFunction, name)
2867  def do_add_score_and_derivatives(self, *args):
2868  """do_add_score_and_derivatives(ScoringFunction self, ScoreAccumulator sa, IMP::kernel::ScoreStatesTemp const & ss)"""
2869  return _IMP_kernel.ScoringFunction_do_add_score_and_derivatives(self, *args)
2870 
2871  def get_score_accumulator_if_below(self, *args):
2872  """get_score_accumulator_if_below(ScoringFunction self, bool deriv, double max) -> ScoreAccumulator"""
2873  return _IMP_kernel.ScoringFunction_get_score_accumulator_if_below(self, *args)
2874 
2875  def get_score_accumulator_if_good(self, *args):
2876  """get_score_accumulator_if_good(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
2877  return _IMP_kernel.ScoringFunction_get_score_accumulator_if_good(self, *args)
2878 
2879  def get_score_accumulator(self, *args):
2880  """get_score_accumulator(ScoringFunction self, bool deriv) -> ScoreAccumulator"""
2881  return _IMP_kernel.ScoringFunction_get_score_accumulator(self, *args)
2882 
2883  def __init__(self, *args):
2884  """__init__(IMP::kernel::ScoringFunction self, Model m, std::string name) -> ScoringFunction"""
2885  if self.__class__ == ScoringFunction:
2886  _self = None
2887  else:
2888  _self = self
2889  this = _IMP_kernel.new_ScoringFunction(_self, *args)
2890  try: self.this.append(this)
2891  except: self.this = this
2892  if self.__class__ != ScoringFunction:
2893  import IMP.base
2894  IMP.base._director_objects.register(self)
2895 
2896 
2897 
2898  def do_get_outputs(self):
2899  """do_get_outputs(ScoringFunction self) -> IMP::kernel::ModelObjectsTemp"""
2900  return _IMP_kernel.ScoringFunction_do_get_outputs(self)
2901 
2902  def evaluate_if_good(self, *args):
2903  """evaluate_if_good(ScoringFunction self, bool derivatives) -> double"""
2904  return _IMP_kernel.ScoringFunction_evaluate_if_good(self, *args)
2905 
2906  def evaluate(self, *args):
2907  """evaluate(ScoringFunction self, bool derivatives) -> double"""
2908  return _IMP_kernel.ScoringFunction_evaluate(self, *args)
2909 
2910  def evaluate_if_below(self, *args):
2911  """evaluate_if_below(ScoringFunction self, bool derivatives, double max) -> double"""
2912  return _IMP_kernel.ScoringFunction_evaluate_if_below(self, *args)
2913 
2914  def get_had_good_score(self):
2915  """get_had_good_score(ScoringFunction self) -> bool"""
2916  return _IMP_kernel.ScoringFunction_get_had_good_score(self)
2917 
2918  def get_last_score(self):
2919  """get_last_score(ScoringFunction self) -> double"""
2920  return _IMP_kernel.ScoringFunction_get_last_score(self)
2921 
2922  def create_restraints(self):
2923  """create_restraints(ScoringFunction self) -> IMP::kernel::Restraints"""
2924  return _IMP_kernel.ScoringFunction_create_restraints(self)
2925 
2926  def __str__(self):
2927  """__str__(ScoringFunction self) -> std::string"""
2928  return _IMP_kernel.ScoringFunction___str__(self)
2929 
2930  def __repr__(self):
2931  """__repr__(ScoringFunction self) -> std::string"""
2932  return _IMP_kernel.ScoringFunction___repr__(self)
2933 
2934  def get_from(o):
2935  return _object_cast_to_ScoringFunction(o)
2936  get_from = staticmethod(get_from)
2937 
2938  def get_type_name(self):
2939  return self.__class__.__name__
2940  def do_show(self, out):
2941  pass
2942  def get_version_info(self):
2943  if"IMP::kernel" == "IMP":
2944  return VersionInfo("python", "0")
2945  else:
2946  return IMP.VersionInfo("python", "0")
2947  def get_from(o):
2948  return _object_cast_to_ScoringFunction(o)
2949  get_from = staticmethod(get_from)
2950 
2951  __swig_destroy__ = _IMP_kernel.delete_ScoringFunction
2952  __del__ = lambda self : None;
2953  def __disown__(self):
2954  self.this.disown()
2955  _IMP_kernel.disown_ScoringFunction(self)
2956  return weakref_proxy(self)
2957  def do_destroy(self):
2958  """do_destroy(ScoringFunction self)"""
2959  return _IMP_kernel.ScoringFunction_do_destroy(self)
2960 
2961  def handle_set_has_required_score_states(self, *args):
2962  """handle_set_has_required_score_states(ScoringFunction self, bool arg0)"""
2963  return _IMP_kernel.ScoringFunction_handle_set_has_required_score_states(self, *args)
2964 
2965  def do_get_inputs(self):
2966  """do_get_inputs(ScoringFunction self) -> IMP::kernel::ModelObjectsTemp"""
2967  return _IMP_kernel.ScoringFunction_do_get_inputs(self)
2968 
2969  def do_get_interactions(self):
2970  """do_get_interactions(ScoringFunction self) -> IMP::kernel::ModelObjectsTemps"""
2971  return _IMP_kernel.ScoringFunction_do_get_interactions(self)
2972 
2973 ScoringFunction_swigregister = _IMP_kernel.ScoringFunction_swigregister
2974 ScoringFunction_swigregister(ScoringFunction)
2975 
2976 
2977 def create_decomposition(*args):
2978  """
2979  create_decomposition(IMP::kernel::RestraintsTemp const & rs) -> IMP::kernel::Restraints
2980  create_decomposition(ScoringFunction sf) -> IMP::kernel::ScoringFunctions
2981  """
2982  return _IMP_kernel.create_decomposition(*args)
2983 class _ScoringFunctionAdaptor(IMP.base._InputAdaptor):
2984  """Proxy of C++ IMP::kernel::ScoringFunctionAdaptor class"""
2985  __swig_setmethods__ = {}
2986  for _s in [IMP.base._InputAdaptor]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
2987  __setattr__ = lambda self, name, value: _swig_setattr(self, _ScoringFunctionAdaptor, name, value)
2988  __swig_getmethods__ = {}
2989  for _s in [IMP.base._InputAdaptor]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
2990  __getattr__ = lambda self, name: _swig_getattr(self, _ScoringFunctionAdaptor, name)
2991  __repr__ = _swig_repr
2992  def __init__(self, *args):
2993  """
2994  __init__(IMP::kernel::ScoringFunctionAdaptor self) -> _ScoringFunctionAdaptor
2995  __init__(IMP::kernel::ScoringFunctionAdaptor self, ScoringFunction sf) -> _ScoringFunctionAdaptor
2996  __init__(IMP::kernel::ScoringFunctionAdaptor self, IMP::kernel::RestraintsTemp const & sf) -> _ScoringFunctionAdaptor
2997  __init__(IMP::kernel::ScoringFunctionAdaptor self, IMP::kernel::Restraints const & sf) -> _ScoringFunctionAdaptor
2998  __init__(IMP::kernel::ScoringFunctionAdaptor self, Restraint sf) -> _ScoringFunctionAdaptor
2999  __init__(IMP::kernel::ScoringFunctionAdaptor self, Model sf) -> _ScoringFunctionAdaptor
3000  """
3001  this = _IMP_kernel.new__ScoringFunctionAdaptor(*args)
3002  try: self.this.append(this)
3003  except: self.this = this
3004  __swig_destroy__ = _IMP_kernel.delete__ScoringFunctionAdaptor
3005  __del__ = lambda self : None;
3006 _ScoringFunctionAdaptor_swigregister = _IMP_kernel._ScoringFunctionAdaptor_swigregister
3007 _ScoringFunctionAdaptor_swigregister(_ScoringFunctionAdaptor)
3008 
3009 
3010 def show_restraint_hierarchy(*args):
3011  """
3012  show_restraint_hierarchy(_ScoringFunctionAdaptor rs, _ostream out=std::cout)
3013  show_restraint_hierarchy(_ScoringFunctionAdaptor rs)
3014  """
3015  return _IMP_kernel.show_restraint_hierarchy(*args)
3016 class Undecorator(IMP.base.Object):
3017  """Proxy of C++ IMP::kernel::Undecorator class"""
3018  __swig_setmethods__ = {}
3019  for _s in [IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
3020  __setattr__ = lambda self, name, value: _swig_setattr(self, Undecorator, name, value)
3021  __swig_getmethods__ = {}
3022  for _s in [IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
3023  __getattr__ = lambda self, name: _swig_getattr(self, Undecorator, name)
3024  def __init__(self, *args):
3025  """__init__(IMP::kernel::Undecorator self, Model m, std::string name) -> Undecorator"""
3026  if self.__class__ == Undecorator:
3027  _self = None
3028  else:
3029  _self = self
3030  this = _IMP_kernel.new_Undecorator(_self, *args)
3031  try: self.this.append(this)
3032  except: self.this = this
3033  if self.__class__ != Undecorator:
3034  import IMP.base
3035  IMP.base._director_objects.register(self)
3036 
3037 
3038 
3039  def teardown(self, *args):
3040  """teardown(Undecorator self, IMP::kernel::ParticleIndex pi)"""
3041  return _IMP_kernel.Undecorator_teardown(self, *args)
3042 
3043  def __str__(self):
3044  """__str__(Undecorator self) -> std::string"""
3045  return _IMP_kernel.Undecorator___str__(self)
3046 
3047  def __repr__(self):
3048  """__repr__(Undecorator self) -> std::string"""
3049  return _IMP_kernel.Undecorator___repr__(self)
3050 
3051  def get_from(o):
3052  return _object_cast_to_Undecorator(o)
3053  get_from = staticmethod(get_from)
3054 
3055  def get_type_name(self):
3056  return self.__class__.__name__
3057  def do_show(self, out):
3058  pass
3059  def get_version_info(self):
3060  if"IMP::kernel" == "IMP":
3061  return VersionInfo("python", "0")
3062  else:
3063  return IMP.VersionInfo("python", "0")
3064  def get_from(o):
3065  return _object_cast_to_Undecorator(o)
3066  get_from = staticmethod(get_from)
3067 
3068  __swig_destroy__ = _IMP_kernel.delete_Undecorator
3069  __del__ = lambda self : None;
3070  def __disown__(self):
3071  self.this.disown()
3072  _IMP_kernel.disown_Undecorator(self)
3073  return weakref_proxy(self)
3074  def do_destroy(self):
3075  """do_destroy(Undecorator self)"""
3076  return _IMP_kernel.Undecorator_do_destroy(self)
3077 
3078 Undecorator_swigregister = _IMP_kernel.Undecorator_swigregister
3079 Undecorator_swigregister(Undecorator)
3080 
3081 class Model(IMP.base.Object):
3082  """Proxy of C++ IMP::kernel::Model class"""
3083  __swig_setmethods__ = {}
3084  for _s in [IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
3085  __setattr__ = lambda self, name, value: _swig_setattr(self, Model, name, value)
3086  __swig_getmethods__ = {}
3087  for _s in [IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
3088  __getattr__ = lambda self, name: _swig_getattr(self, Model, name)
3089  def __init__(self, name="Model %1%"):
3090  """
3091  __init__(IMP::kernel::Model self, std::string name="Model %1%") -> Model
3092  __init__(IMP::kernel::Model self) -> Model
3093  """
3094  this = _IMP_kernel.new_Model(name)
3095  try: self.this.append(this)
3096  except: self.this = this
3097  def clear_particle_caches(self, *args):
3098  """clear_particle_caches(Model self, IMP::kernel::ParticleIndex pi)"""
3099  return _IMP_kernel.Model_clear_particle_caches(self, *args)
3100 
3101  def add_particle(self, *args):
3102  """add_particle(Model self, std::string name) -> IMP::kernel::ParticleIndex"""
3103  return _IMP_kernel.Model_add_particle(self, *args)
3104 
3105  def get_particle_name(self, *args):
3106  """get_particle_name(Model self, IMP::kernel::ParticleIndex pi) -> std::string"""
3107  return _IMP_kernel.Model_get_particle_name(self, *args)
3108 
3109  def add_undecorator(self, *args):
3110  """add_undecorator(Model self, IMP::kernel::ParticleIndex pi, Undecorator d)"""
3111  return _IMP_kernel.Model_add_undecorator(self, *args)
3112 
3113  def remove_score_state(self, *args):
3114  """remove_score_state(Model self, ScoreState d)"""
3115  return _IMP_kernel.Model_remove_score_state(self, *args)
3116 
3117  def remove_score_states(self, *args):
3118  """remove_score_states(Model self, IMP::kernel::ScoreStates const & d)"""
3119  return _IMP_kernel.Model_remove_score_states(self, *args)
3120 
3121  def set_score_states(self, *args):
3122  """set_score_states(Model self, IMP::kernel::ScoreStates const & ps)"""
3123  return _IMP_kernel.Model_set_score_states(self, *args)
3124 
3125  def set_score_states_order(self, *args):
3126  """set_score_states_order(Model self, IMP::kernel::ScoreStates const & objs)"""
3127  return _IMP_kernel.Model_set_score_states_order(self, *args)
3128 
3129  def add_score_state(self, *args):
3130  """add_score_state(Model self, ScoreState obj) -> unsigned int"""
3131  return _IMP_kernel.Model_add_score_state(self, *args)
3132 
3133  def add_score_states(self, *args):
3134  """add_score_states(Model self, IMP::kernel::ScoreStates const & objs)"""
3135  return _IMP_kernel.Model_add_score_states(self, *args)
3136 
3137  def clear_score_states(self):
3138  """clear_score_states(Model self)"""
3139  return _IMP_kernel.Model_clear_score_states(self)
3140 
3141  def get_number_of_score_states(self):
3142  """get_number_of_score_states(Model self) -> unsigned int"""
3143  return _IMP_kernel.Model_get_number_of_score_states(self)
3144 
3145  def get_has_score_states(self):
3146  """get_has_score_states(Model self) -> bool"""
3147  return _IMP_kernel.Model_get_has_score_states(self)
3148 
3149  def get_score_state(self, *args):
3150  """get_score_state(Model self, unsigned int i) -> ScoreState"""
3151  return _IMP_kernel.Model_get_score_state(self, *args)
3152 
3153  def get_score_states(self):
3154  """get_score_states(Model self) -> IMP::kernel::ScoreStates"""
3155  return _IMP_kernel.Model_get_score_states(self)
3156 
3157  def reserve_score_states(self, *args):
3158  """reserve_score_states(Model self, unsigned int sz)"""
3159  return _IMP_kernel.Model_reserve_score_states(self, *args)
3160 
3161  def update(self):
3162  """update(Model self)"""
3163  return _IMP_kernel.Model_update(self)
3164 
3165  def add_attribute(self, *args):
3166  """
3167  add_attribute(Model self, FloatKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Float value)
3168  add_attribute(Model self, IntKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Int value)
3169  add_attribute(Model self, IMP::kernel::IntsKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Ints value)
3170  add_attribute(Model self, StringKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::String value)
3171  add_attribute(Model self, ParticleIndexesKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::kernel::ParticleIndexes value)
3172  add_attribute(Model self, ParticleIndexKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::kernel::ParticleIndex value)
3173  add_attribute(Model self, ObjectKey attribute_key, IMP::kernel::ParticleIndex particle, Object * value)
3174  add_attribute(Model self, IMP::kernel::WeakObjectKey attribute_key, IMP::kernel::ParticleIndex particle, Object * value)
3175  """
3176  return _IMP_kernel.Model_add_attribute(self, *args)
3177 
3178  def remove_attribute(self, *args):
3179  """
3180  remove_attribute(Model self, FloatKey attribute_key, IMP::kernel::ParticleIndex particle)
3181  remove_attribute(Model self, IntKey attribute_key, IMP::kernel::ParticleIndex particle)
3182  remove_attribute(Model self, IMP::kernel::IntsKey attribute_key, IMP::kernel::ParticleIndex particle)
3183  remove_attribute(Model self, StringKey attribute_key, IMP::kernel::ParticleIndex particle)
3184  remove_attribute(Model self, ParticleIndexesKey attribute_key, IMP::kernel::ParticleIndex particle)
3185  remove_attribute(Model self, ParticleIndexKey attribute_key, IMP::kernel::ParticleIndex particle)
3186  remove_attribute(Model self, ObjectKey attribute_key, IMP::kernel::ParticleIndex particle)
3187  remove_attribute(Model self, IMP::kernel::WeakObjectKey attribute_key, IMP::kernel::ParticleIndex particle)
3188  """
3189  return _IMP_kernel.Model_remove_attribute(self, *args)
3190 
3191  def get_has_attribute(self, *args):
3192  """
3193  get_has_attribute(Model self, FloatKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3194  get_has_attribute(Model self, IntKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3195  get_has_attribute(Model self, IMP::kernel::IntsKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3196  get_has_attribute(Model self, StringKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3197  get_has_attribute(Model self, ParticleIndexesKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3198  get_has_attribute(Model self, ParticleIndexKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3199  get_has_attribute(Model self, ObjectKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3200  get_has_attribute(Model self, IMP::kernel::WeakObjectKey attribute_key, IMP::kernel::ParticleIndex particle) -> bool
3201  """
3202  return _IMP_kernel.Model_get_has_attribute(self, *args)
3203 
3204  def set_attribute(self, *args):
3205  """
3206  set_attribute(Model self, FloatKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Float value)
3207  set_attribute(Model self, IntKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Int value)
3208  set_attribute(Model self, IMP::kernel::IntsKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Ints value)
3209  set_attribute(Model self, StringKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::String value)
3210  set_attribute(Model self, ParticleIndexesKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::kernel::ParticleIndexes value)
3211  set_attribute(Model self, ParticleIndexKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::kernel::ParticleIndex value)
3212  set_attribute(Model self, ObjectKey attribute_key, IMP::kernel::ParticleIndex particle, Object * value)
3213  set_attribute(Model self, IMP::kernel::WeakObjectKey attribute_key, IMP::kernel::ParticleIndex particle, Object * value)
3214  """
3215  return _IMP_kernel.Model_set_attribute(self, *args)
3216 
3217  def get_attribute(self, *args):
3218  """
3219  get_attribute(Model self, FloatKey attribute_key, IMP::kernel::ParticleIndex particle) -> IMP::Float
3220  get_attribute(Model self, IntKey attribute_key, IMP::kernel::ParticleIndex particle) -> IMP::Int
3221  get_attribute(Model self, IMP::kernel::IntsKey attribute_key, IMP::kernel::ParticleIndex particle) -> IMP::Ints
3222  get_attribute(Model self, StringKey attribute_key, IMP::kernel::ParticleIndex particle) -> IMP::String
3223  get_attribute(Model self, ParticleIndexesKey attribute_key, IMP::kernel::ParticleIndex particle) -> IMP::kernel::ParticleIndexes
3224  get_attribute(Model self, ParticleIndexKey attribute_key, IMP::kernel::ParticleIndex particle) -> IMP::kernel::ParticleIndex
3225  get_attribute(Model self, ObjectKey attribute_key, IMP::kernel::ParticleIndex particle) -> Object
3226  get_attribute(Model self, IMP::kernel::WeakObjectKey attribute_key, IMP::kernel::ParticleIndex particle) -> Object *
3227  """
3228  return _IMP_kernel.Model_get_attribute(self, *args)
3229 
3230  def add_cache_attribute(self, *args):
3231  """
3232  add_cache_attribute(Model self, FloatKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Float value)
3233  add_cache_attribute(Model self, IntKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Int value)
3234  add_cache_attribute(Model self, IMP::kernel::IntsKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::Ints value)
3235  add_cache_attribute(Model self, StringKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::String value)
3236  add_cache_attribute(Model self, ParticleIndexesKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::kernel::ParticleIndexes value)
3237  add_cache_attribute(Model self, ParticleIndexKey attribute_key, IMP::kernel::ParticleIndex particle, IMP::kernel::ParticleIndex value)
3238  add_cache_attribute(Model self, ObjectKey attribute_key, IMP::kernel::ParticleIndex particle, Object * value)
3239  add_cache_attribute(Model self, IMP::kernel::WeakObjectKey attribute_key, IMP::kernel::ParticleIndex particle, Object * value)
3240  """
3241  return _IMP_kernel.Model_add_cache_attribute(self, *args)
3242 
3243  def set_is_optimized(self, *args):
3244  """set_is_optimized(Model self, FloatKey arg2, IMP::kernel::ParticleIndex arg3, bool arg4)"""
3245  return _IMP_kernel.Model_set_is_optimized(self, *args)
3246 
3247  def get_particle(self, *args):
3248  """get_particle(Model self, IMP::kernel::ParticleIndex p) -> Particle"""
3249  return _IMP_kernel.Model_get_particle(self, *args)
3250 
3251  def get_has_particle(self, *args):
3252  """get_has_particle(Model self, IMP::kernel::ParticleIndex p) -> bool"""
3253  return _IMP_kernel.Model_get_has_particle(self, *args)
3254 
3255  def get_particle_indexes(self):
3256  """get_particle_indexes(Model self) -> IMP::kernel::ParticleIndexes"""
3257  return _IMP_kernel.Model_get_particle_indexes(self)
3258 
3259  def get_model_objects(self):
3260  """get_model_objects(Model self) -> IMP::kernel::ModelObjectsTemp"""
3261  return _IMP_kernel.Model_get_model_objects(self)
3262 
3263  def add_data(self, *args):
3264  """add_data(Model self, IMP::kernel::ModelKey mk, Object o)"""
3265  return _IMP_kernel.Model_add_data(self, *args)
3266 
3267  def get_data(self, *args):
3268  """get_data(Model self, IMP::kernel::ModelKey mk) -> Object"""
3269  return _IMP_kernel.Model_get_data(self, *args)
3270 
3271  def remove_data(self, *args):
3272  """remove_data(Model self, IMP::kernel::ModelKey mk)"""
3273  return _IMP_kernel.Model_remove_data(self, *args)
3274 
3275  def get_has_data(self, *args):
3276  """get_has_data(Model self, IMP::kernel::ModelKey mk) -> bool"""
3277  return _IMP_kernel.Model_get_has_data(self, *args)
3278 
3279  def get_version_info(self):
3280  """get_version_info(Model self) -> VersionInfo"""
3281  return _IMP_kernel.Model_get_version_info(self)
3282 
3283  def create_model_scoring_function(self):
3284  """create_model_scoring_function(Model self) -> ScoringFunction"""
3285  return _IMP_kernel.Model_create_model_scoring_function(self)
3286 
3287  def add_restraint(self, *args):
3288  """add_restraint(Model self, Restraint r)"""
3289  return _IMP_kernel.Model_add_restraint(self, *args)
3290 
3291  def remove_restraint(self, *args):
3292  """remove_restraint(Model self, Restraint r)"""
3293  return _IMP_kernel.Model_remove_restraint(self, *args)
3294 
3295  def get_restraints(self):
3296  """get_restraints(Model self) -> IMP::kernel::RestraintsTemp"""
3297  return _IMP_kernel.Model_get_restraints(self)
3298 
3299  def create_scoring_function(self):
3300  """create_scoring_function(Model self) -> ScoringFunction"""
3301  return _IMP_kernel.Model_create_scoring_function(self)
3302 
3303  def do_destroy(self):
3304  """do_destroy(Model self)"""
3305  return _IMP_kernel.Model_do_destroy(self)
3306 
3307  def get_number_of_restraints(self):
3308  """get_number_of_restraints(Model self) -> unsigned int"""
3309  return _IMP_kernel.Model_get_number_of_restraints(self)
3310 
3311  def get_restraint(self, *args):
3312  """get_restraint(Model self, unsigned int i) -> Restraint"""
3313  return _IMP_kernel.Model_get_restraint(self, *args)
3314 
3315  def evaluate(self, *args):
3316  """
3317  evaluate(Model self, bool tf, bool warn=True) -> double
3318  evaluate(Model self, bool tf) -> double
3319  """
3320  return _IMP_kernel.Model_evaluate(self, *args)
3321 
3322  def remove_particle(self, *args):
3323  """
3324  remove_particle(Model self, IMP::kernel::ParticleIndex pi)
3325  remove_particle(Model self, Particle p)
3326  """
3327  return _IMP_kernel.Model_remove_particle(self, *args)
3328 
3329  def get_number_of_particles(self):
3330  """get_number_of_particles(Model self) -> unsigned int"""
3331  return _IMP_kernel.Model_get_number_of_particles(self)
3332 
3333  def get_particles(self):
3334  """get_particles(Model self) -> IMP::kernel::ParticlesTemp"""
3335  return _IMP_kernel.Model_get_particles(self)
3336 
3337  def get_root_restraint_set(self):
3338  """get_root_restraint_set(Model self) -> RestraintSet"""
3339  return _IMP_kernel.Model_get_root_restraint_set(self)
3340 
3341  def set_maximum_score(self, *args):
3342  """
3343  set_maximum_score(Model self, Restraint r, double s)
3344  set_maximum_score(Model self, double s)
3345  """
3346  return _IMP_kernel.Model_set_maximum_score(self, *args)
3347 
3348  def get_maximum_score(self, *args):
3349  """
3350  get_maximum_score(Model self, Restraint r) -> double
3351  get_maximum_score(Model self) -> double
3352  """
3353  return _IMP_kernel.Model_get_maximum_score(self, *args)
3354 
3355  def __str__(self):
3356  """__str__(Model self) -> std::string"""
3357  return _IMP_kernel.Model___str__(self)
3358 
3359  def __repr__(self):
3360  """__repr__(Model self) -> std::string"""
3361  return _IMP_kernel.Model___repr__(self)
3362 
3363  def get_from(o):
3364  return _object_cast_to_Model(o)
3365  get_from = staticmethod(get_from)
3366 
3367 Model_swigregister = _IMP_kernel.Model_swigregister
3368 Model_swigregister(Model)
3369 
3370 class Decorator(IMP.base._Value):
3371  """Proxy of C++ IMP::kernel::Decorator class"""
3372  __swig_setmethods__ = {}
3373  for _s in [IMP.base._Value]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
3374  __setattr__ = lambda self, name, value: _swig_setattr(self, Decorator, name, value)
3375  __swig_getmethods__ = {}
3376  for _s in [IMP.base._Value]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
3377  __getattr__ = lambda self, name: _swig_getattr(self, Decorator, name)
3378  __repr__ = _swig_repr
3379  def __init__(self, *args):
3380  """__init__(IMP::kernel::Decorator self, _ParticleAdaptor p) -> Decorator"""
3381  this = _IMP_kernel.new_Decorator(*args)
3382  try: self.this.append(this)
3383  except: self.this = this
3384  def __ne__(self, *args):
3385  """__ne__(Decorator self, Object o) -> bool"""
3386  return _IMP_kernel.Decorator___ne__(self, *args)
3387 
3388  def __lt__(self, *args):
3389  """__lt__(Decorator self, Object o) -> bool"""
3390  return _IMP_kernel.Decorator___lt__(self, *args)
3391 
3392  def __gt__(self, *args):
3393  """__gt__(Decorator self, Object o) -> bool"""
3394  return _IMP_kernel.Decorator___gt__(self, *args)
3395 
3396  def __ge__(self, *args):
3397  """__ge__(Decorator self, Object o) -> bool"""
3398  return _IMP_kernel.Decorator___ge__(self, *args)
3399 
3400  def __le__(self, *args):
3401  """__le__(Decorator self, Object o) -> bool"""
3402  return _IMP_kernel.Decorator___le__(self, *args)
3403 
3404  def get_particle(self):
3405  """get_particle(Decorator self) -> Particle"""
3406  return _IMP_kernel.Decorator_get_particle(self)
3407 
3408  def get_particle_index(self):
3409  """get_particle_index(Decorator self) -> IMP::kernel::ParticleIndex"""
3410  return _IMP_kernel.Decorator_get_particle_index(self)
3411 
3412  def get_model(self):
3413  """get_model(Decorator self) -> Model"""
3414  return _IMP_kernel.Decorator_get_model(self)
3415 
3416  def get_is_valid(self):
3417  """get_is_valid(Decorator self) -> bool"""
3418  return _IMP_kernel.Decorator_get_is_valid(self)
3419 
3420  def __hash__(self):
3421  """__hash__(Decorator self) -> std::size_t"""
3422  return _IMP_kernel.Decorator___hash__(self)
3423 
3424  def __eq__(self, *args):
3425  """
3426  __eq__(Decorator self, Object o) -> bool
3427  __eq__(Decorator self, Decorator o) -> bool
3428  __eq__(Decorator self, Particle o) -> bool
3429  """
3430  return _IMP_kernel.Decorator___eq__(self, *args)
3431 
3432  __swig_destroy__ = _IMP_kernel.delete_Decorator
3433  __del__ = lambda self : None;
3434 Decorator_swigregister = _IMP_kernel.Decorator_swigregister
3435 Decorator_swigregister(Decorator)
3436 
3437 
3438 def check_particle(*args):
3439  """check_particle(Particle p)"""
3440  return _IMP_kernel.check_particle(*args)
3442  """Proxy of C++ IMP::kernel::UnaryFunction class"""
3443  __swig_setmethods__ = {}
3444  for _s in [IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
3445  __setattr__ = lambda self, name, value: _swig_setattr(self, UnaryFunction, name, value)
3446  __swig_getmethods__ = {}
3447  for _s in [IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
3448  __getattr__ = lambda self, name: _swig_getattr(self, UnaryFunction, name)
3449  def __init__(self, name="UnaryFunction%1%"):
3450  """
3451  __init__(IMP::kernel::UnaryFunction self, std::string name="UnaryFunction%1%") -> UnaryFunction
3452  __init__(IMP::kernel::UnaryFunction self) -> UnaryFunction
3453  """
3454  if self.__class__ == UnaryFunction:
3455  _self = None
3456  else:
3457  _self = self
3458  this = _IMP_kernel.new_UnaryFunction(_self, name)
3459  try: self.this.append(this)
3460  except: self.this = this
3461  if self.__class__ != UnaryFunction:
3462  import IMP.base
3463  IMP.base._director_objects.register(self)
3464 
3465 
3466 
3467  def evaluate(self, *args):
3468  """evaluate(UnaryFunction self, double feature) -> double"""
3469  return _IMP_kernel.UnaryFunction_evaluate(self, *args)
3470 
3471  def evaluate_with_derivative(self, *args):
3472  """evaluate_with_derivative(UnaryFunction self, double feature) -> IMP::DerivativePair"""
3473  return _IMP_kernel.UnaryFunction_evaluate_with_derivative(self, *args)
3474 
3475  __swig_destroy__ = _IMP_kernel.delete_UnaryFunction
3476  __del__ = lambda self : None;
3477  def __str__(self):
3478  """__str__(UnaryFunction self) -> std::string"""
3479  return _IMP_kernel.UnaryFunction___str__(self)
3480 
3481  def __repr__(self):
3482  """__repr__(UnaryFunction self) -> std::string"""
3483  return _IMP_kernel.UnaryFunction___repr__(self)
3484 
3485  def get_from(o):
3486  return _object_cast_to_UnaryFunction(o)
3487  get_from = staticmethod(get_from)
3488 
3489  def get_type_name(self):
3490  return self.__class__.__name__
3491  def do_show(self, out):
3492  pass
3493  def get_version_info(self):
3494  if"IMP::kernel" == "IMP":
3495  return VersionInfo("python", "0")
3496  else:
3497  return IMP.VersionInfo("python", "0")
3498  def get_from(o):
3499  return _object_cast_to_UnaryFunction(o)
3500  get_from = staticmethod(get_from)
3501 
3502  def __disown__(self):
3503  self.this.disown()
3504  _IMP_kernel.disown_UnaryFunction(self)
3505  return weakref_proxy(self)
3506  def do_destroy(self):
3507  """do_destroy(UnaryFunction self)"""
3508  return _IMP_kernel.UnaryFunction_do_destroy(self)
3509 
3510 UnaryFunction_swigregister = _IMP_kernel.UnaryFunction_swigregister
3511 UnaryFunction_swigregister(UnaryFunction)
3512 
3514  """Proxy of C++ IMP::kernel::OptimizerState class"""
3515  __swig_setmethods__ = {}
3516  for _s in [ModelObject]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
3517  __setattr__ = lambda self, name, value: _swig_setattr(self, OptimizerState, name, value)
3518  __swig_getmethods__ = {}
3519  for _s in [ModelObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
3520  __getattr__ = lambda self, name: _swig_getattr(self, OptimizerState, name)
3521  def __init__(self, *args):
3522  """__init__(IMP::kernel::OptimizerState self, Model m, std::string name) -> OptimizerState"""
3523  if self.__class__ == OptimizerState:
3524  _self = None
3525  else:
3526  _self = self
3527  this = _IMP_kernel.new_OptimizerState(_self, *args)
3528  try: self.this.append(this)
3529  except: self.this = this
3530  if self.__class__ != OptimizerState:
3531  import IMP.base
3532  IMP.base._director_objects.register(self)
3533 
3534 
3535 
3536  def update(self):
3537  """update(OptimizerState self)"""
3538  return _IMP_kernel.OptimizerState_update(self)
3539 
3540  def set_is_optimizing(self, *args):
3541  """set_is_optimizing(OptimizerState self, bool arg0)"""
3542  return _IMP_kernel.OptimizerState_set_is_optimizing(self, *args)
3543 
3544  def get_optimizer(self):
3545  """get_optimizer(OptimizerState self) -> Optimizer"""
3546  return _IMP_kernel.OptimizerState_get_optimizer(self)
3547 
3548  def set_period(self, *args):
3549  """set_period(OptimizerState self, unsigned int p)"""
3550  return _IMP_kernel.OptimizerState_set_period(self, *args)
3551 
3552  def get_period(self):
3553  """get_period(OptimizerState self) -> unsigned int"""
3554  return _IMP_kernel.OptimizerState_get_period(self)
3555 
3556  def reset(self):
3557  """reset(OptimizerState self)"""
3558  return _IMP_kernel.OptimizerState_reset(self)
3559 
3560  def update_always(self):
3561  """update_always(OptimizerState self)"""
3562  return _IMP_kernel.OptimizerState_update_always(self)
3563 
3564  def get_number_of_updates(self):
3565  """get_number_of_updates(OptimizerState self) -> unsigned int"""
3566  return _IMP_kernel.OptimizerState_get_number_of_updates(self)
3567 
3568  def set_number_of_updates(self, *args):
3569  """set_number_of_updates(OptimizerState self, unsigned int n)"""
3570  return _IMP_kernel.OptimizerState_set_number_of_updates(self, *args)
3571 
3572  __swig_destroy__ = _IMP_kernel.delete_OptimizerState
3573  __del__ = lambda self : None;
3574  def do_update(self, *args):
3575  """do_update(OptimizerState self, unsigned int arg0)"""
3576  return _IMP_kernel.OptimizerState_do_update(self, *args)
3577 
3578  def do_set_is_optimizing(self, *args):
3579  """do_set_is_optimizing(OptimizerState self, bool arg0)"""
3580  return _IMP_kernel.OptimizerState_do_set_is_optimizing(self, *args)
3581 
3582  def do_get_inputs(self):
3583  """do_get_inputs(OptimizerState self) -> IMP::kernel::ModelObjectsTemp"""
3584  return _IMP_kernel.OptimizerState_do_get_inputs(self)
3585 
3586  def do_get_outputs(self):
3587  """do_get_outputs(OptimizerState self) -> IMP::kernel::ModelObjectsTemp"""
3588  return _IMP_kernel.OptimizerState_do_get_outputs(self)
3589 
3590  def __str__(self):
3591  """__str__(OptimizerState self) -> std::string"""
3592  return _IMP_kernel.OptimizerState___str__(self)
3593 
3594  def __repr__(self):
3595  """__repr__(OptimizerState self) -> std::string"""
3596  return _IMP_kernel.OptimizerState___repr__(self)
3597 
3598  def get_from(o):
3599  return _object_cast_to_OptimizerState(o)
3600  get_from = staticmethod(get_from)
3601 
3602  def get_type_name(self):
3603  return self.__class__.__name__
3604  def do_show(self, out):
3605  pass
3606  def get_version_info(self):
3607  if"IMP::kernel" == "IMP":
3608  return VersionInfo("python", "0")
3609  else:
3610  return IMP.VersionInfo("python", "0")
3611  def get_from(o):
3612  return _object_cast_to_OptimizerState(o)
3613  get_from = staticmethod(get_from)
3614 
3615  def __disown__(self):
3616  self.this.disown()
3617  _IMP_kernel.disown_OptimizerState(self)
3618  return weakref_proxy(self)
3619  def do_destroy(self):
3620  """do_destroy(OptimizerState self)"""
3621  return _IMP_kernel.OptimizerState_do_destroy(self)
3622 
3623  def handle_set_has_required_score_states(self, *args):
3624  """handle_set_has_required_score_states(OptimizerState self, bool arg0)"""
3625  return _IMP_kernel.OptimizerState_handle_set_has_required_score_states(self, *args)
3626 
3627  def do_get_interactions(self):
3628  """do_get_interactions(OptimizerState self) -> IMP::kernel::ModelObjectsTemps"""
3629  return _IMP_kernel.OptimizerState_do_get_interactions(self)
3630 
3631 OptimizerState_swigregister = _IMP_kernel.OptimizerState_swigregister
3632 OptimizerState_swigregister(OptimizerState)
3633 
3634 class Refiner(_ParticleInputs,IMP.base.Object):
3635  """Proxy of C++ IMP::kernel::Refiner class"""
3636  __swig_setmethods__ = {}
3637  for _s in [_ParticleInputs,IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
3638  __setattr__ = lambda self, name, value: _swig_setattr(self, Refiner, name, value)
3639  __swig_getmethods__ = {}
3640  for _s in [_ParticleInputs,IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
3641  __getattr__ = lambda self, name: _swig_getattr(self, Refiner, name)
3642  def __init__(self, name="Refiner %1%", is_by_ref=False):
3643  """
3644  __init__(IMP::kernel::Refiner self, std::string name="Refiner %1%", bool is_by_ref=False) -> Refiner
3645  __init__(IMP::kernel::Refiner self, std::string name="Refiner %1%") -> Refiner
3646  __init__(IMP::kernel::Refiner self) -> Refiner
3647  """
3648  if self.__class__ == Refiner:
3649  _self = None
3650  else:
3651  _self = self
3652  this = _IMP_kernel.new_Refiner(_self, name, is_by_ref)
3653  try: self.this.append(this)
3654  except: self.this = this
3655  if self.__class__ != Refiner:
3656  import IMP.base
3657  IMP.base._director_objects.register(self)
3658 
3659 
3660 
3661  def get_can_refine(self, *args):
3662  """get_can_refine(Refiner self, Particle arg0) -> bool"""
3663  return _IMP_kernel.Refiner_get_can_refine(self, *args)
3664 
3665  def get_refined_indexes(self, *args):
3666  """get_refined_indexes(Refiner self, Model m, IMP::kernel::ParticleIndex pi) -> IMP::kernel::ParticleIndexes"""
3667  return _IMP_kernel.Refiner_get_refined_indexes(self, *args)
3668 
3669  def get_refined_indexes_by_ref(self, *args):
3670  """get_refined_indexes_by_ref(Refiner self, Model m, IMP::kernel::ParticleIndex pi) -> IMP::kernel::ParticleIndexes const &"""
3671  return _IMP_kernel.Refiner_get_refined_indexes_by_ref(self, *args)
3672 
3673  def get_is_by_ref_supported(self):
3674  """get_is_by_ref_supported(Refiner self) -> bool"""
3675  return _IMP_kernel.Refiner_get_is_by_ref_supported(self)
3676 
3677  def get_refined(self, *args):
3678  """
3679  get_refined(Refiner self, Particle a) -> IMP::kernel::ParticlesTemp const
3680  get_refined(Refiner self, Particle a, unsigned int i) -> Particle
3681  """
3682  return _IMP_kernel.Refiner_get_refined(self, *args)
3683 
3684  def get_number_of_refined(self, *args):
3685  """get_number_of_refined(Refiner self, Particle a) -> unsigned int"""
3686  return _IMP_kernel.Refiner_get_number_of_refined(self, *args)
3687 
3688  def __str__(self):
3689  """__str__(Refiner self) -> std::string"""
3690  return _IMP_kernel.Refiner___str__(self)
3691 
3692  def __repr__(self):
3693  """__repr__(Refiner self) -> std::string"""
3694  return _IMP_kernel.Refiner___repr__(self)
3695 
3696  def get_from(o):
3697  return _object_cast_to_Refiner(o)
3698  get_from = staticmethod(get_from)
3699 
3700  def get_type_name(self):
3701  return self.__class__.__name__
3702  def do_show(self, out):
3703  pass
3704  def get_version_info(self):
3705  if"IMP::kernel" == "IMP":
3706  return VersionInfo("python", "0")
3707  else:
3708  return IMP.VersionInfo("python", "0")
3709  def get_from(o):
3710  return _object_cast_to_Refiner(o)
3711  get_from = staticmethod(get_from)
3712 
3713  __swig_destroy__ = _IMP_kernel.delete_Refiner
3714  __del__ = lambda self : None;
3715  def __disown__(self):
3716  self.this.disown()
3717  _IMP_kernel.disown_Refiner(self)
3718  return weakref_proxy(self)
3719  def do_get_inputs(self, *args):
3720  """do_get_inputs(Refiner self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
3721  return _IMP_kernel.Refiner_do_get_inputs(self, *args)
3722 
3723  def do_destroy(self):
3724  """do_destroy(Refiner self)"""
3725  return _IMP_kernel.Refiner_do_destroy(self)
3726 
3727 Refiner_swigregister = _IMP_kernel.Refiner_swigregister
3728 Refiner_swigregister(Refiner)
3729 
3730 class Optimizer(ModelObject):
3731  """Proxy of C++ IMP::kernel::Optimizer class"""
3732  __swig_setmethods__ = {}
3733  for _s in [ModelObject]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
3734  __setattr__ = lambda self, name, value: _swig_setattr(self, Optimizer, name, value)
3735  __swig_getmethods__ = {}
3736  for _s in [ModelObject]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
3737  __getattr__ = lambda self, name: _swig_getattr(self, Optimizer, name)
3738  def set_is_optimizing_states(self, *args):
3739  """set_is_optimizing_states(Optimizer self, bool tf)"""
3740  return _IMP_kernel.Optimizer_set_is_optimizing_states(self, *args)
3741 
3742  def get_optimizer_state_inputs(self):
3743  """get_optimizer_state_inputs(Optimizer self) -> IMP::kernel::ModelObjectsTemp"""
3744  return _IMP_kernel.Optimizer_get_optimizer_state_inputs(self)
3745 
3746  def do_get_inputs(self):
3747  """do_get_inputs(Optimizer self) -> IMP::kernel::ModelObjectsTemp"""
3748  return _IMP_kernel.Optimizer_do_get_inputs(self)
3749 
3750  def do_get_outputs(self):
3751  """do_get_outputs(Optimizer self) -> IMP::kernel::ModelObjectsTemp"""
3752  return _IMP_kernel.Optimizer_do_get_outputs(self)
3753 
3754  def __init__(self, *args):
3755  """
3756  __init__(IMP::kernel::Optimizer self, Model m, std::string name="Optimizer %1%") -> Optimizer
3757  __init__(IMP::kernel::Optimizer self, Model m) -> Optimizer
3758  """
3759  if self.__class__ == Optimizer:
3760  _self = None
3761  else:
3762  _self = self
3763  this = _IMP_kernel.new_Optimizer(_self, *args)
3764  try: self.this.append(this)
3765  except: self.this = this
3766  if self.__class__ != Optimizer:
3767  import IMP.base
3768  IMP.base._director_objects.register(self)
3769 
3770 
3771 
3772  def optimize(self, *args):
3773  """optimize(Optimizer self, unsigned int max_steps) -> double"""
3774  return _IMP_kernel.Optimizer_optimize(self, *args)
3775 
3776  def set_stop_on_good_score(self, *args):
3777  """set_stop_on_good_score(Optimizer self, bool tf)"""
3778  return _IMP_kernel.Optimizer_set_stop_on_good_score(self, *args)
3779 
3780  def get_stop_on_good_score(self):
3781  """get_stop_on_good_score(Optimizer self) -> bool"""
3782  return _IMP_kernel.Optimizer_get_stop_on_good_score(self)
3783 
3784  def get_last_score(self):
3785  """get_last_score(Optimizer self) -> double"""
3786  return _IMP_kernel.Optimizer_get_last_score(self)
3787 
3788  def get_scoring_function(self):
3789  """get_scoring_function(Optimizer self) -> ScoringFunction"""
3790  return _IMP_kernel.Optimizer_get_scoring_function(self)
3791 
3792  def remove_optimizer_state(self, *args):
3793  """remove_optimizer_state(Optimizer self, OptimizerState d)"""
3794  return _IMP_kernel.Optimizer_remove_optimizer_state(self, *args)
3795 
3796  def remove_optimizer_states(self, *args):
3797  """remove_optimizer_states(Optimizer self, IMP::kernel::OptimizerStates const & d)"""
3798  return _IMP_kernel.Optimizer_remove_optimizer_states(self, *args)
3799 
3800  def set_optimizer_states(self, *args):
3801  """set_optimizer_states(Optimizer self, IMP::kernel::OptimizerStates const & ps)"""
3802  return _IMP_kernel.Optimizer_set_optimizer_states(self, *args)
3803 
3804  def set_optimizer_states_order(self, *args):
3805  """set_optimizer_states_order(Optimizer self, IMP::kernel::OptimizerStates const & objs)"""
3806  return _IMP_kernel.Optimizer_set_optimizer_states_order(self, *args)
3807 
3808  def add_optimizer_state(self, *args):
3809  """add_optimizer_state(Optimizer self, OptimizerState obj) -> unsigned int"""
3810  return _IMP_kernel.Optimizer_add_optimizer_state(self, *args)
3811 
3812  def add_optimizer_states(self, *args):
3813  """add_optimizer_states(Optimizer self, IMP::kernel::OptimizerStates const & objs)"""
3814  return _IMP_kernel.Optimizer_add_optimizer_states(self, *args)
3815 
3816  def clear_optimizer_states(self):
3817  """clear_optimizer_states(Optimizer self)"""
3818  return _IMP_kernel.Optimizer_clear_optimizer_states(self)
3819 
3820  def get_number_of_optimizer_states(self):
3821  """get_number_of_optimizer_states(Optimizer self) -> unsigned int"""
3822  return _IMP_kernel.Optimizer_get_number_of_optimizer_states(self)
3823 
3824  def get_has_optimizer_states(self):
3825  """get_has_optimizer_states(Optimizer self) -> bool"""
3826  return _IMP_kernel.Optimizer_get_has_optimizer_states(self)
3827 
3828  def get_optimizer_state(self, *args):
3829  """get_optimizer_state(Optimizer self, unsigned int i) -> OptimizerState"""
3830  return _IMP_kernel.Optimizer_get_optimizer_state(self, *args)
3831 
3832  def get_optimizer_states(self):
3833  """get_optimizer_states(Optimizer self) -> IMP::kernel::OptimizerStates"""
3834  return _IMP_kernel.Optimizer_get_optimizer_states(self)
3835 
3836  def reserve_optimizer_states(self, *args):
3837  """reserve_optimizer_states(Optimizer self, unsigned int sz)"""
3838  return _IMP_kernel.Optimizer_reserve_optimizer_states(self, *args)
3839 
3840  def set_scoring_function(self, *args):
3841  """set_scoring_function(Optimizer self, _ScoringFunctionAdaptor sf)"""
3842  return _IMP_kernel.Optimizer_set_scoring_function(self, *args)
3843 
3844  __swig_destroy__ = _IMP_kernel.delete_Optimizer
3845  def __del__(self):
3846  """__del__(IMP::kernel::Optimizer self)"""
3847  import IMP.base
3848  IMP.base._director_objects.cleanup()
3849 
3850 
3851  pass
3852 
3853  def do_optimize(self, *args):
3854  """do_optimize(Optimizer self, unsigned int ns) -> double"""
3855  return _IMP_kernel.Optimizer_do_optimize(self, *args)
3856 
3857  def update_states(self):
3858  """update_states(Optimizer self)"""
3859  return _IMP_kernel.Optimizer_update_states(self)
3860 
3861  def __str__(self):
3862  """__str__(Optimizer self) -> std::string"""
3863  return _IMP_kernel.Optimizer___str__(self)
3864 
3865  def __repr__(self):
3866  """__repr__(Optimizer self) -> std::string"""
3867  return _IMP_kernel.Optimizer___repr__(self)
3868 
3869  def get_from(o):
3870  return _object_cast_to_Optimizer(o)
3871  get_from = staticmethod(get_from)
3872 
3873  def get_type_name(self):
3874  return self.__class__.__name__
3875  def do_show(self, out):
3876  pass
3877  def get_version_info(self):
3878  if"IMP::kernel" == "IMP":
3879  return VersionInfo("python", "0")
3880  else:
3881  return IMP.VersionInfo("python", "0")
3882  def get_from(o):
3883  return _object_cast_to_Optimizer(o)
3884  get_from = staticmethod(get_from)
3885 
3886  def __disown__(self):
3887  self.this.disown()
3888  _IMP_kernel.disown_Optimizer(self)
3889  return weakref_proxy(self)
3890  def do_destroy(self):
3891  """do_destroy(Optimizer self)"""
3892  return _IMP_kernel.Optimizer_do_destroy(self)
3893 
3894  def handle_set_has_required_score_states(self, *args):
3895  """handle_set_has_required_score_states(Optimizer self, bool arg0)"""
3896  return _IMP_kernel.Optimizer_handle_set_has_required_score_states(self, *args)
3897 
3898  def do_get_interactions(self):
3899  """do_get_interactions(Optimizer self) -> IMP::kernel::ModelObjectsTemps"""
3900  return _IMP_kernel.Optimizer_do_get_interactions(self)
3901 
3902 Optimizer_swigregister = _IMP_kernel.Optimizer_swigregister
3903 Optimizer_swigregister(Optimizer)
3904 
3905 class AttributeOptimizer(Optimizer):
3906  """Proxy of C++ IMP::kernel::AttributeOptimizer class"""
3907  __swig_setmethods__ = {}
3908  for _s in [Optimizer]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
3909  __setattr__ = lambda self, name, value: _swig_setattr(self, AttributeOptimizer, name, value)
3910  __swig_getmethods__ = {}
3911  for _s in [Optimizer]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
3912  __getattr__ = lambda self, name: _swig_getattr(self, AttributeOptimizer, name)
3913  def __init__(self, *args):
3914  """
3915  __init__(IMP::kernel::AttributeOptimizer self, Model m, std::string name="Optimizer %1%") -> AttributeOptimizer
3916  __init__(IMP::kernel::AttributeOptimizer self, Model m) -> AttributeOptimizer
3917  """
3918  if self.__class__ == AttributeOptimizer:
3919  _self = None
3920  else:
3921  _self = self
3922  this = _IMP_kernel.new_AttributeOptimizer(_self, *args)
3923  try: self.this.append(this)
3924  except: self.this = this
3925  if self.__class__ != AttributeOptimizer:
3926  import IMP.base
3927  IMP.base._director_objects.register(self)
3928 
3929 
3930 
3931  def get_optimized_attributes(self):
3932  """get_optimized_attributes(AttributeOptimizer self) -> IMP::kernel::FloatIndexes"""
3933  return _IMP_kernel.AttributeOptimizer_get_optimized_attributes(self)
3934 
3935  def set_value(self, *args):
3936  """set_value(AttributeOptimizer self, FloatIndex fi, double v)"""
3937  return _IMP_kernel.AttributeOptimizer_set_value(self, *args)
3938 
3939  def get_value(self, *args):
3940  """get_value(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
3941  return _IMP_kernel.AttributeOptimizer_get_value(self, *args)
3942 
3943  def get_derivative(self, *args):
3944  """get_derivative(AttributeOptimizer self, FloatIndex fi) -> IMP::Float"""
3945  return _IMP_kernel.AttributeOptimizer_get_derivative(self, *args)
3946 
3947  def get_width(self, *args):
3948  """get_width(AttributeOptimizer self, FloatKey k) -> double"""
3949  return _IMP_kernel.AttributeOptimizer_get_width(self, *args)
3950 
3951  def set_scaled_value(self, *args):
3952  """set_scaled_value(AttributeOptimizer self, FloatIndex fi, IMP::Float v)"""
3953  return _IMP_kernel.AttributeOptimizer_set_scaled_value(self, *args)
3954 
3955  def get_scaled_value(self, *args):
3956  """get_scaled_value(AttributeOptimizer self, FloatIndex fi) -> double"""
3957  return _IMP_kernel.AttributeOptimizer_get_scaled_value(self, *args)
3958 
3959  def get_scaled_derivative(self, *args):
3960  """get_scaled_derivative(AttributeOptimizer self, FloatIndex fi) -> double"""
3961  return _IMP_kernel.AttributeOptimizer_get_scaled_derivative(self, *args)
3962 
3963  def clear_range_cache(self):
3964  """clear_range_cache(AttributeOptimizer self)"""
3965  return _IMP_kernel.AttributeOptimizer_clear_range_cache(self)
3966 
3967  def __str__(self):
3968  """__str__(AttributeOptimizer self) -> std::string"""
3969  return _IMP_kernel.AttributeOptimizer___str__(self)
3970 
3971  def __repr__(self):
3972  """__repr__(AttributeOptimizer self) -> std::string"""
3973  return _IMP_kernel.AttributeOptimizer___repr__(self)
3974 
3975  def get_from(o):
3976  return _object_cast_to_AttributeOptimizer(o)
3977  get_from = staticmethod(get_from)
3978 
3979  def get_type_name(self):
3980  return self.__class__.__name__
3981  def do_show(self, out):
3982  pass
3983  def get_version_info(self):
3984  if"IMP::kernel" == "IMP":
3985  return VersionInfo("python", "0")
3986  else:
3987  return IMP.VersionInfo("python", "0")
3988  def get_from(o):
3989  return _object_cast_to_AttributeOptimizer(o)
3990  get_from = staticmethod(get_from)
3991 
3992  __swig_destroy__ = _IMP_kernel.delete_AttributeOptimizer
3993  __del__ = lambda self : None;
3994  def __disown__(self):
3995  self.this.disown()
3996  _IMP_kernel.disown_AttributeOptimizer(self)
3997  return weakref_proxy(self)
3998  def do_destroy(self):
3999  """do_destroy(AttributeOptimizer self)"""
4000  return _IMP_kernel.AttributeOptimizer_do_destroy(self)
4001 
4002  def handle_set_has_required_score_states(self, *args):
4003  """handle_set_has_required_score_states(AttributeOptimizer self, bool arg0)"""
4004  return _IMP_kernel.AttributeOptimizer_handle_set_has_required_score_states(self, *args)
4005 
4006  def do_get_inputs(self):
4007  """do_get_inputs(AttributeOptimizer self) -> IMP::kernel::ModelObjectsTemp"""
4008  return _IMP_kernel.AttributeOptimizer_do_get_inputs(self)
4009 
4010  def do_get_outputs(self):
4011  """do_get_outputs(AttributeOptimizer self) -> IMP::kernel::ModelObjectsTemp"""
4012  return _IMP_kernel.AttributeOptimizer_do_get_outputs(self)
4013 
4014  def do_get_interactions(self):
4015  """do_get_interactions(AttributeOptimizer self) -> IMP::kernel::ModelObjectsTemps"""
4016  return _IMP_kernel.AttributeOptimizer_do_get_interactions(self)
4017 
4018  def do_optimize(self, *args):
4019  """do_optimize(AttributeOptimizer self, unsigned int ns) -> double"""
4020  return _IMP_kernel.AttributeOptimizer_do_optimize(self, *args)
4021 
4022 AttributeOptimizer_swigregister = _IMP_kernel.AttributeOptimizer_swigregister
4023 AttributeOptimizer_swigregister(AttributeOptimizer)
4024 
4026  """Proxy of C++ IMP::kernel::ConfigurationSet class"""
4027  __swig_setmethods__ = {}
4028  for _s in [IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
4029  __setattr__ = lambda self, name, value: _swig_setattr(self, ConfigurationSet, name, value)
4030  __swig_getmethods__ = {}
4031  for _s in [IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
4032  __getattr__ = lambda self, name: _swig_getattr(self, ConfigurationSet, name)
4033  def __init__(self, *args):
4034  """
4035  __init__(IMP::kernel::ConfigurationSet self, Model m, std::string name="ConfigurationSet %1%") -> ConfigurationSet
4036  __init__(IMP::kernel::ConfigurationSet self, Model m) -> ConfigurationSet
4037  """
4038  this = _IMP_kernel.new_ConfigurationSet(*args)
4039  try: self.this.append(this)
4040  except: self.this = this
4041  def save_configuration(self):
4042  """save_configuration(ConfigurationSet self)"""
4043  return _IMP_kernel.ConfigurationSet_save_configuration(self)
4044 
4045  def get_number_of_configurations(self):
4046  """get_number_of_configurations(ConfigurationSet self) -> unsigned int"""
4047  return _IMP_kernel.ConfigurationSet_get_number_of_configurations(self)
4048 
4049  def load_configuration(self, *args):
4050  """load_configuration(ConfigurationSet self, int i)"""
4051  return _IMP_kernel.ConfigurationSet_load_configuration(self, *args)
4052 
4053  def remove_configuration(self, *args):
4054  """remove_configuration(ConfigurationSet self, unsigned int i)"""
4055  return _IMP_kernel.ConfigurationSet_remove_configuration(self, *args)
4056 
4057  def get_model(self):
4058  """get_model(ConfigurationSet self) -> Model"""
4059  return _IMP_kernel.ConfigurationSet_get_model(self)
4060 
4061  def get_version_info(self):
4062  """get_version_info(ConfigurationSet self) -> VersionInfo"""
4063  return _IMP_kernel.ConfigurationSet_get_version_info(self)
4064 
4065  def __str__(self):
4066  """__str__(ConfigurationSet self) -> std::string"""
4067  return _IMP_kernel.ConfigurationSet___str__(self)
4068 
4069  def __repr__(self):
4070  """__repr__(ConfigurationSet self) -> std::string"""
4071  return _IMP_kernel.ConfigurationSet___repr__(self)
4072 
4073  def get_from(o):
4074  return _object_cast_to_ConfigurationSet(o)
4075  get_from = staticmethod(get_from)
4076 
4077 ConfigurationSet_swigregister = _IMP_kernel.ConfigurationSet_swigregister
4078 ConfigurationSet_swigregister(ConfigurationSet)
4079 
4081  """Proxy of C++ IMP::kernel::SaveToConfigurationSetOptimizerState class"""
4082  __swig_setmethods__ = {}
4083  for _s in [OptimizerState]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
4084  __setattr__ = lambda self, name, value: _swig_setattr(self, SaveToConfigurationSetOptimizerState, name, value)
4085  __swig_getmethods__ = {}
4086  for _s in [OptimizerState]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
4087  __getattr__ = lambda self, name: _swig_getattr(self, SaveToConfigurationSetOptimizerState, name)
4088  def __init__(self, *args):
4089  """__init__(IMP::kernel::SaveToConfigurationSetOptimizerState self, ConfigurationSet cs) -> SaveToConfigurationSetOptimizerState"""
4090  this = _IMP_kernel.new_SaveToConfigurationSetOptimizerState(*args)
4091  try: self.this.append(this)
4092  except: self.this = this
4093  def get_version_info(self):
4094  """get_version_info(SaveToConfigurationSetOptimizerState self) -> VersionInfo"""
4095  return _IMP_kernel.SaveToConfigurationSetOptimizerState_get_version_info(self)
4096 
4097  def __str__(self):
4098  """__str__(SaveToConfigurationSetOptimizerState self) -> std::string"""
4099  return _IMP_kernel.SaveToConfigurationSetOptimizerState___str__(self)
4100 
4101  def __repr__(self):
4102  """__repr__(SaveToConfigurationSetOptimizerState self) -> std::string"""
4103  return _IMP_kernel.SaveToConfigurationSetOptimizerState___repr__(self)
4104 
4105  def get_from(o):
4106  return _object_cast_to_SaveToConfigurationSetOptimizerState(o)
4107  get_from = staticmethod(get_from)
4108 
4109 SaveToConfigurationSetOptimizerState_swigregister = _IMP_kernel.SaveToConfigurationSetOptimizerState_swigregister
4110 SaveToConfigurationSetOptimizerState_swigregister(SaveToConfigurationSetOptimizerState)
4111 
4113  """Proxy of C++ IMP::kernel::Configuration class"""
4114  __swig_setmethods__ = {}
4115  for _s in [IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
4116  __setattr__ = lambda self, name, value: _swig_setattr(self, Configuration, name, value)
4117  __swig_getmethods__ = {}
4118  for _s in [IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
4119  __getattr__ = lambda self, name: _swig_getattr(self, Configuration, name)
4120  def __init__(self, *args):
4121  """
4122  __init__(IMP::kernel::Configuration self, Model m, std::string name="Configuration %1%") -> Configuration
4123  __init__(IMP::kernel::Configuration self, Model m) -> Configuration
4124  __init__(IMP::kernel::Configuration self, Model m, Configuration base, std::string name="Configuration %1%") -> Configuration
4125  __init__(IMP::kernel::Configuration self, Model m, Configuration base) -> Configuration
4126  """
4127  this = _IMP_kernel.new_Configuration(*args)
4128  try: self.this.append(this)
4129  except: self.this = this
4130  def load_configuration(self):
4131  """load_configuration(Configuration self)"""
4132  return _IMP_kernel.Configuration_load_configuration(self)
4133 
4134  def swap_configuration(self):
4135  """swap_configuration(Configuration self)"""
4136  return _IMP_kernel.Configuration_swap_configuration(self)
4137 
4138  def get_version_info(self):
4139  """get_version_info(Configuration self) -> VersionInfo"""
4140  return _IMP_kernel.Configuration_get_version_info(self)
4141 
4142  def __str__(self):
4143  """__str__(Configuration self) -> std::string"""
4144  return _IMP_kernel.Configuration___str__(self)
4145 
4146  def __repr__(self):
4147  """__repr__(Configuration self) -> std::string"""
4148  return _IMP_kernel.Configuration___repr__(self)
4149 
4150  def get_from(o):
4151  return _object_cast_to_Configuration(o)
4152  get_from = staticmethod(get_from)
4153 
4154 Configuration_swigregister = _IMP_kernel.Configuration_swigregister
4155 Configuration_swigregister(Configuration)
4156 
4157 class Sampler(IMP.base.Object):
4158  """Proxy of C++ IMP::kernel::Sampler class"""
4159  __swig_setmethods__ = {}
4160  for _s in [IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
4161  __setattr__ = lambda self, name, value: _swig_setattr(self, Sampler, name, value)
4162  __swig_getmethods__ = {}
4163  for _s in [IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
4164  __getattr__ = lambda self, name: _swig_getattr(self, Sampler, name)
4165  def __init__(self, *args):
4166  """
4167  __init__(IMP::kernel::Sampler self, Model m, std::string name="Sampler %1%") -> Sampler
4168  __init__(IMP::kernel::Sampler self, Model m) -> Sampler
4169  """
4170  if self.__class__ == Sampler:
4171  _self = None
4172  else:
4173  _self = self
4174  this = _IMP_kernel.new_Sampler(_self, *args)
4175  try: self.this.append(this)
4176  except: self.this = this
4177  if self.__class__ != Sampler:
4178  import IMP.base
4179  IMP.base._director_objects.register(self)
4180 
4181 
4182 
4183  def create_sample(self):
4184  """create_sample(Sampler self) -> ConfigurationSet"""
4185  return _IMP_kernel.Sampler_create_sample(self)
4186 
4187  def get_scoring_function(self):
4188  """get_scoring_function(Sampler self) -> ScoringFunction"""
4189  return _IMP_kernel.Sampler_get_scoring_function(self)
4190 
4191  def set_scoring_function(self, *args):
4192  """set_scoring_function(Sampler self, _ScoringFunctionAdaptor sf)"""
4193  return _IMP_kernel.Sampler_set_scoring_function(self, *args)
4194 
4195  def get_model(self):
4196  """get_model(Sampler self) -> Model"""
4197  return _IMP_kernel.Sampler_get_model(self)
4198 
4199  def do_sample(self):
4200  """do_sample(Sampler self) -> ConfigurationSet"""
4201  return _IMP_kernel.Sampler_do_sample(self)
4202 
4203  __swig_destroy__ = _IMP_kernel.delete_Sampler
4204  __del__ = lambda self : None;
4205  def __str__(self):
4206  """__str__(Sampler self) -> std::string"""
4207  return _IMP_kernel.Sampler___str__(self)
4208 
4209  def __repr__(self):
4210  """__repr__(Sampler self) -> std::string"""
4211  return _IMP_kernel.Sampler___repr__(self)
4212 
4213  def get_from(o):
4214  return _object_cast_to_Sampler(o)
4215  get_from = staticmethod(get_from)
4216 
4217  def get_type_name(self):
4218  return self.__class__.__name__
4219  def do_show(self, out):
4220  pass
4221  def get_version_info(self):
4222  if"IMP::kernel" == "IMP":
4223  return VersionInfo("python", "0")
4224  else:
4225  return IMP.VersionInfo("python", "0")
4226  def get_from(o):
4227  return _object_cast_to_Sampler(o)
4228  get_from = staticmethod(get_from)
4229 
4230  def __disown__(self):
4231  self.this.disown()
4232  _IMP_kernel.disown_Sampler(self)
4233  return weakref_proxy(self)
4234  def do_destroy(self):
4235  """do_destroy(Sampler self)"""
4236  return _IMP_kernel.Sampler_do_destroy(self)
4237 
4238 Sampler_swigregister = _IMP_kernel.Sampler_swigregister
4239 Sampler_swigregister(Sampler)
4240 
4241 class PairModifier(_ParticleInputs,_ParticleOutputs,IMP.base.Object):
4242  """Proxy of C++ IMP::kernel::PairModifier class"""
4243  __swig_setmethods__ = {}
4244  for _s in [_ParticleInputs,_ParticleOutputs,IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
4245  __setattr__ = lambda self, name, value: _swig_setattr(self, PairModifier, name, value)
4246  __swig_getmethods__ = {}
4247  for _s in [_ParticleInputs,_ParticleOutputs,IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
4248  __getattr__ = lambda self, name: _swig_getattr(self, PairModifier, name)
4249  def __init__(self, name="PairModifier %1%"):
4250  """
4251  __init__(IMP::kernel::PairModifier self, std::string name="PairModifier %1%") -> PairModifier
4252  __init__(IMP::kernel::PairModifier self) -> PairModifier
4253  """
4254  if self.__class__ == PairModifier:
4255  _self = None
4256  else:
4257  _self = self
4258  this = _IMP_kernel.new_PairModifier(_self, name)
4259  try: self.this.append(this)
4260  except: self.this = this
4261  if self.__class__ != PairModifier:
4262  import IMP.base
4263  IMP.base._director_objects.register(self)
4264 
4265 
4266 
4267  def apply(self, *args):
4268  """apply(PairModifier self, IMP::kernel::ParticlePair const & vt)"""
4269  return _IMP_kernel.PairModifier_apply(self, *args)
4270 
4271  def apply_index(self, *args):
4272  """apply_index(PairModifier self, Model m, IMP::kernel::ParticleIndexPair const & v)"""
4273  return _IMP_kernel.PairModifier_apply_index(self, *args)
4274 
4275  def apply_indexes(self, *args):
4276  """apply_indexes(PairModifier self, Model m, IMP::kernel::ParticleIndexPairs const & o, unsigned int lower_bound, unsigned int upper_bound)"""
4277  return _IMP_kernel.PairModifier_apply_indexes(self, *args)
4278 
4279  def __str__(self):
4280  """__str__(PairModifier self) -> std::string"""
4281  return _IMP_kernel.PairModifier___str__(self)
4282 
4283  def __repr__(self):
4284  """__repr__(PairModifier self) -> std::string"""
4285  return _IMP_kernel.PairModifier___repr__(self)
4286 
4287  def get_from(o):
4288  return _object_cast_to_PairModifier(o)
4289  get_from = staticmethod(get_from)
4290 
4291  def get_type_name(self):
4292  return self.__class__.__name__
4293  def do_show(self, out):
4294  pass
4295  def get_version_info(self):
4296  if"IMP::kernel" == "IMP":
4297  return VersionInfo("python", "0")
4298  else:
4299  return IMP.VersionInfo("python", "0")
4300  def get_from(o):
4301  return _object_cast_to_PairModifier(o)
4302  get_from = staticmethod(get_from)
4303 
4304  __swig_destroy__ = _IMP_kernel.delete_PairModifier
4305  __del__ = lambda self : None;
4306  def __disown__(self):
4307  self.this.disown()
4308  _IMP_kernel.disown_PairModifier(self)
4309  return weakref_proxy(self)
4310  def do_get_inputs(self, *args):
4311  """do_get_inputs(PairModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4312  return _IMP_kernel.PairModifier_do_get_inputs(self, *args)
4313 
4314  def do_get_outputs(self, *args):
4315  """do_get_outputs(PairModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4316  return _IMP_kernel.PairModifier_do_get_outputs(self, *args)
4317 
4318  def do_destroy(self):
4319  """do_destroy(PairModifier self)"""
4320  return _IMP_kernel.PairModifier_do_destroy(self)
4321 
4322 PairModifier_swigregister = _IMP_kernel.PairModifier_swigregister
4323 PairModifier_swigregister(PairModifier)
4324 
4325 class PairScore(_ParticleInputs,IMP.base.Object):
4326  """Proxy of C++ IMP::kernel::PairScore class"""
4327  __swig_setmethods__ = {}
4328  for _s in [_ParticleInputs,IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
4329  __setattr__ = lambda self, name, value: _swig_setattr(self, PairScore, name, value)
4330  __swig_getmethods__ = {}
4331  for _s in [_ParticleInputs,IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
4332  __getattr__ = lambda self, name: _swig_getattr(self, PairScore, name)
4333  def __init__(self, name="PairScore %1%"):
4334  """
4335  __init__(IMP::kernel::PairScore self, std::string name="PairScore %1%") -> PairScore
4336  __init__(IMP::kernel::PairScore self) -> PairScore
4337  """
4338  if self.__class__ == PairScore:
4339  _self = None
4340  else:
4341  _self = self
4342  this = _IMP_kernel.new_PairScore(_self, name)
4343  try: self.this.append(this)
4344  except: self.this = this
4345  if self.__class__ != PairScore:
4346  import IMP.base
4347  IMP.base._director_objects.register(self)
4348 
4349 
4350 
4351  def evaluate(self, *args):
4352  """evaluate(PairScore self, IMP::kernel::ParticlePair const & vt, DerivativeAccumulator da) -> double"""
4353  return _IMP_kernel.PairScore_evaluate(self, *args)
4354 
4355  def evaluate_index(self, *args):
4356  """evaluate_index(PairScore self, Model m, IMP::kernel::ParticleIndexPair const & vt, DerivativeAccumulator da) -> double"""
4357  return _IMP_kernel.PairScore_evaluate_index(self, *args)
4358 
4359  def evaluate_indexes(self, *args):
4360  """
4361  evaluate_indexes(PairScore self, Model m, IMP::kernel::ParticleIndexPairs const & o, DerivativeAccumulator da, unsigned int lower_bound,
4362  unsigned int upper_bound) -> double
4363  """
4364  return _IMP_kernel.PairScore_evaluate_indexes(self, *args)
4365 
4366  def evaluate_if_good_index(self, *args):
4367  """evaluate_if_good_index(PairScore self, Model m, IMP::kernel::ParticleIndexPair const & vt, DerivativeAccumulator da, double max) -> double"""
4368  return _IMP_kernel.PairScore_evaluate_if_good_index(self, *args)
4369 
4370  def evaluate_if_good_indexes(self, *args):
4371  """
4372  evaluate_if_good_indexes(PairScore self, Model m, IMP::kernel::ParticleIndexPairs const & o, DerivativeAccumulator da, double max,
4373  unsigned int lower_bound, unsigned int upper_bound) -> double
4374  """
4375  return _IMP_kernel.PairScore_evaluate_if_good_indexes(self, *args)
4376 
4377  def create_current_decomposition(self, *args):
4378  """create_current_decomposition(PairScore self, Model m, IMP::kernel::ParticleIndexPair const & vt) -> IMP::kernel::Restraints"""
4379  return _IMP_kernel.PairScore_create_current_decomposition(self, *args)
4380 
4381  def do_create_current_decomposition(self, *args):
4382  """do_create_current_decomposition(PairScore self, Model m, IMP::kernel::ParticleIndexPair const & vt) -> IMP::kernel::Restraints"""
4383  return _IMP_kernel.PairScore_do_create_current_decomposition(self, *args)
4384 
4385  __swig_destroy__ = _IMP_kernel.delete_PairScore
4386  __del__ = lambda self : None;
4387  def __str__(self):
4388  """__str__(PairScore self) -> std::string"""
4389  return _IMP_kernel.PairScore___str__(self)
4390 
4391  def __repr__(self):
4392  """__repr__(PairScore self) -> std::string"""
4393  return _IMP_kernel.PairScore___repr__(self)
4394 
4395  def get_from(o):
4396  return _object_cast_to_PairScore(o)
4397  get_from = staticmethod(get_from)
4398 
4399  def get_type_name(self):
4400  return self.__class__.__name__
4401  def do_show(self, out):
4402  pass
4403  def get_version_info(self):
4404  if"IMP::kernel" == "IMP":
4405  return VersionInfo("python", "0")
4406  else:
4407  return IMP.VersionInfo("python", "0")
4408  def get_from(o):
4409  return _object_cast_to_PairScore(o)
4410  get_from = staticmethod(get_from)
4411 
4412  def __disown__(self):
4413  self.this.disown()
4414  _IMP_kernel.disown_PairScore(self)
4415  return weakref_proxy(self)
4416  def do_get_inputs(self, *args):
4417  """do_get_inputs(PairScore self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4418  return _IMP_kernel.PairScore_do_get_inputs(self, *args)
4419 
4420  def do_destroy(self):
4421  """do_destroy(PairScore self)"""
4422  return _IMP_kernel.PairScore_do_destroy(self)
4423 
4424 PairScore_swigregister = _IMP_kernel.PairScore_swigregister
4425 PairScore_swigregister(PairScore)
4426 
4427 class PairPredicate(_ParticleInputs,IMP.base.Object):
4428  """Proxy of C++ IMP::kernel::PairPredicate class"""
4429  __swig_setmethods__ = {}
4430  for _s in [_ParticleInputs,IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
4431  __setattr__ = lambda self, name, value: _swig_setattr(self, PairPredicate, name, value)
4432  __swig_getmethods__ = {}
4433  for _s in [_ParticleInputs,IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
4434  __getattr__ = lambda self, name: _swig_getattr(self, PairPredicate, name)
4435  def __init__(self, name="PairPredicate %1%"):
4436  """
4437  __init__(IMP::kernel::PairPredicate self, std::string name="PairPredicate %1%") -> PairPredicate
4438  __init__(IMP::kernel::PairPredicate self) -> PairPredicate
4439  """
4440  if self.__class__ == PairPredicate:
4441  _self = None
4442  else:
4443  _self = self
4444  this = _IMP_kernel.new_PairPredicate(_self, name)
4445  try: self.this.append(this)
4446  except: self.this = this
4447  if self.__class__ != PairPredicate:
4448  import IMP.base
4449  IMP.base._director_objects.register(self)
4450 
4451 
4452 
4453  def get_value(self, *args):
4454  """
4455  get_value(PairPredicate self, IMP::kernel::ParticlePair const & vt) -> int
4456  get_value(PairPredicate self, IMP::kernel::ParticlePairsTemp const & o) -> IMP::Ints
4457  """
4458  return _IMP_kernel.PairPredicate_get_value(self, *args)
4459 
4460  def __call__(self, *args):
4461  """__call__(PairPredicate self, Model m, IMP::kernel::ParticleIndexPair const & vt) -> int"""
4462  return _IMP_kernel.PairPredicate___call__(self, *args)
4463 
4464  def get_value_index(self, *args):
4465  """
4466  get_value_index(PairPredicate self, Model m, IMP::kernel::ParticleIndexPair const & vt) -> int
4467  get_value_index(PairPredicate self, Model m, IMP::kernel::ParticleIndexPairs const & o) -> IMP::Ints
4468  """
4469  return _IMP_kernel.PairPredicate_get_value_index(self, *args)
4470 
4471  __swig_destroy__ = _IMP_kernel.delete_PairPredicate
4472  __del__ = lambda self : None;
4473  def __str__(self):
4474  """__str__(PairPredicate self) -> std::string"""
4475  return _IMP_kernel.PairPredicate___str__(self)
4476 
4477  def __repr__(self):
4478  """__repr__(PairPredicate self) -> std::string"""
4479  return _IMP_kernel.PairPredicate___repr__(self)
4480 
4481  def get_from(o):
4482  return _object_cast_to_PairPredicate(o)
4483  get_from = staticmethod(get_from)
4484 
4485  def get_type_name(self):
4486  return self.__class__.__name__
4487  def do_show(self, out):
4488  pass
4489  def get_version_info(self):
4490  if"IMP::kernel" == "IMP":
4491  return VersionInfo("python", "0")
4492  else:
4493  return IMP.VersionInfo("python", "0")
4494  def get_from(o):
4495  return _object_cast_to_PairPredicate(o)
4496  get_from = staticmethod(get_from)
4497 
4498  def __disown__(self):
4499  self.this.disown()
4500  _IMP_kernel.disown_PairPredicate(self)
4501  return weakref_proxy(self)
4502  def do_get_inputs(self, *args):
4503  """do_get_inputs(PairPredicate self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4504  return _IMP_kernel.PairPredicate_do_get_inputs(self, *args)
4505 
4506  def do_destroy(self):
4507  """do_destroy(PairPredicate self)"""
4508  return _IMP_kernel.PairPredicate_do_destroy(self)
4509 
4510 PairPredicate_swigregister = _IMP_kernel.PairPredicate_swigregister
4511 PairPredicate_swigregister(PairPredicate)
4512 
4513 class PairContainer(Container):
4514  """Proxy of C++ IMP::kernel::PairContainer class"""
4515  __swig_setmethods__ = {}
4516  for _s in [Container]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
4517  __setattr__ = lambda self, name, value: _swig_setattr(self, PairContainer, name, value)
4518  __swig_getmethods__ = {}
4519  for _s in [Container]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
4520  __getattr__ = lambda self, name: _swig_getattr(self, PairContainer, name)
4521  def apply_generic(self, *args):
4522  """apply_generic(PairContainer self, PairModifier m)"""
4523  return _IMP_kernel.PairContainer_apply_generic(self, *args)
4524 
4525  def apply(self, *args):
4526  """apply(PairContainer self, PairModifier sm)"""
4527  return _IMP_kernel.PairContainer_apply(self, *args)
4528 
4529  def get_range_indexes(self):
4530  """get_range_indexes(PairContainer self) -> IMP::kernel::ParticleIndexPairs"""
4531  return _IMP_kernel.PairContainer_get_range_indexes(self)
4532 
4533  def get_contents(self):
4534  """get_contents(PairContainer self) -> IMP::kernel::ParticleIndexPairs const &"""
4535  return _IMP_kernel.PairContainer_get_contents(self)
4536 
4537  def get_indexes(self):
4538  """get_indexes(PairContainer self) -> IMP::kernel::ParticleIndexPairs"""
4539  return _IMP_kernel.PairContainer_get_indexes(self)
4540 
4541  def get(self, *args):
4542  """
4543  get(PairContainer self) -> IMP::kernel::ParticlePairsTemp
4544  get(PairContainer self, unsigned int i) -> IMP::kernel::ParticlePair
4545  """
4546  return _IMP_kernel.PairContainer_get(self, *args)
4547 
4548  def get_number(self):
4549  """get_number(PairContainer self) -> unsigned int"""
4550  return _IMP_kernel.PairContainer_get_number(self)
4551 
4552  def get_particle_pairs(self):
4553  """get_particle_pairs(PairContainer self) -> IMP::kernel::ParticlePairsTemp"""
4554  return _IMP_kernel.PairContainer_get_particle_pairs(self)
4555 
4556  def get_number_of_particle_pairs(self):
4557  """get_number_of_particle_pairs(PairContainer self) -> unsigned int"""
4558  return _IMP_kernel.PairContainer_get_number_of_particle_pairs(self)
4559 
4560  def get_particle_pair(self, *args):
4561  """get_particle_pair(PairContainer self, unsigned int i) -> IMP::kernel::ParticlePair"""
4562  return _IMP_kernel.PairContainer_get_particle_pair(self, *args)
4563 
4564  def __init__(self, *args):
4565  """
4566  __init__(IMP::kernel::PairContainer self, Model m, std::string name="PairContainer %1%") -> PairContainer
4567  __init__(IMP::kernel::PairContainer self, Model m) -> PairContainer
4568  """
4569  if self.__class__ == PairContainer:
4570  _self = None
4571  else:
4572  _self = self
4573  this = _IMP_kernel.new_PairContainer(_self, *args)
4574  try: self.this.append(this)
4575  except: self.this = this
4576  if self.__class__ != PairContainer:
4577  import IMP.base
4578  IMP.base._director_objects.register(self)
4579 
4580 
4581 
4582  def do_apply(self, *args):
4583  """do_apply(PairContainer self, PairModifier sm)"""
4584  return _IMP_kernel.PairContainer_do_apply(self, *args)
4585 
4586  def do_get_provides_access(self):
4587  """do_get_provides_access(PairContainer self) -> bool"""
4588  return _IMP_kernel.PairContainer_do_get_provides_access(self)
4589 
4590  __swig_destroy__ = _IMP_kernel.delete_PairContainer
4591  __del__ = lambda self : None;
4592  def __str__(self):
4593  """__str__(PairContainer self) -> std::string"""
4594  return _IMP_kernel.PairContainer___str__(self)
4595 
4596  def __repr__(self):
4597  """__repr__(PairContainer self) -> std::string"""
4598  return _IMP_kernel.PairContainer___repr__(self)
4599 
4600  def get_from(o):
4601  return _object_cast_to_PairContainer(o)
4602  get_from = staticmethod(get_from)
4603 
4604  def get_type_name(self):
4605  return self.__class__.__name__
4606  def do_show(self, out):
4607  pass
4608  def get_version_info(self):
4609  if"IMP::kernel" == "IMP":
4610  return VersionInfo("python", "0")
4611  else:
4612  return IMP.VersionInfo("python", "0")
4613  def get_from(o):
4614  return _object_cast_to_PairContainer(o)
4615  get_from = staticmethod(get_from)
4616 
4617  def __disown__(self):
4618  self.this.disown()
4619  _IMP_kernel.disown_PairContainer(self)
4620  return weakref_proxy(self)
4621  def do_destroy(self):
4622  """do_destroy(PairContainer self)"""
4623  return _IMP_kernel.PairContainer_do_destroy(self)
4624 
4625  def handle_set_has_required_score_states(self, *args):
4626  """handle_set_has_required_score_states(PairContainer self, bool arg0)"""
4627  return _IMP_kernel.PairContainer_handle_set_has_required_score_states(self, *args)
4628 
4629  def do_get_inputs(self):
4630  """do_get_inputs(PairContainer self) -> IMP::kernel::ModelObjectsTemp"""
4631  return _IMP_kernel.PairContainer_do_get_inputs(self)
4632 
4633  def do_get_interactions(self):
4634  """do_get_interactions(PairContainer self) -> IMP::kernel::ModelObjectsTemps"""
4635  return _IMP_kernel.PairContainer_do_get_interactions(self)
4636 
4637  def do_get_contents_hash(self):
4638  """do_get_contents_hash(PairContainer self) -> std::size_t"""
4639  return _IMP_kernel.PairContainer_do_get_contents_hash(self)
4640 
4641 PairContainer_swigregister = _IMP_kernel.PairContainer_swigregister
4642 PairContainer_swigregister(PairContainer)
4643 
4644 class _PairContainerAdaptor(IMP.base._InputAdaptor):
4645  """Proxy of C++ IMP::kernel::PairContainerAdaptor class"""
4646  __swig_setmethods__ = {}
4647  for _s in [IMP.base._InputAdaptor]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
4648  __setattr__ = lambda self, name, value: _swig_setattr(self, _PairContainerAdaptor, name, value)
4649  __swig_getmethods__ = {}
4650  for _s in [IMP.base._InputAdaptor]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
4651  __getattr__ = lambda self, name: _swig_getattr(self, _PairContainerAdaptor, name)
4652  __repr__ = _swig_repr
4653  def __init__(self, *args):
4654  """
4655  __init__(IMP::kernel::PairContainerAdaptor self) -> _PairContainerAdaptor
4656  __init__(IMP::kernel::PairContainerAdaptor self, PairContainer c) -> _PairContainerAdaptor
4657  __init__(IMP::kernel::PairContainerAdaptor self, IMP::kernel::ParticlePairsTemp const & t) -> _PairContainerAdaptor
4658  """
4659  this = _IMP_kernel.new__PairContainerAdaptor(*args)
4660  try: self.this.append(this)
4661  except: self.this = this
4662  def set_name_if_default(self, *args):
4663  """set_name_if_default(_PairContainerAdaptor self, std::string name)"""
4664  return _IMP_kernel._PairContainerAdaptor_set_name_if_default(self, *args)
4665 
4666  __swig_destroy__ = _IMP_kernel.delete__PairContainerAdaptor
4667  __del__ = lambda self : None;
4668 _PairContainerAdaptor_swigregister = _IMP_kernel._PairContainerAdaptor_swigregister
4669 _PairContainerAdaptor_swigregister(_PairContainerAdaptor)
4670 
4671 class QuadModifier(_ParticleInputs,_ParticleOutputs,IMP.base.Object):
4672  """Proxy of C++ IMP::kernel::QuadModifier class"""
4673  __swig_setmethods__ = {}
4674  for _s in [_ParticleInputs,_ParticleOutputs,IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
4675  __setattr__ = lambda self, name, value: _swig_setattr(self, QuadModifier, name, value)
4676  __swig_getmethods__ = {}
4677  for _s in [_ParticleInputs,_ParticleOutputs,IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
4678  __getattr__ = lambda self, name: _swig_getattr(self, QuadModifier, name)
4679  def __init__(self, name="QuadModifier %1%"):
4680  """
4681  __init__(IMP::kernel::QuadModifier self, std::string name="QuadModifier %1%") -> QuadModifier
4682  __init__(IMP::kernel::QuadModifier self) -> QuadModifier
4683  """
4684  if self.__class__ == QuadModifier:
4685  _self = None
4686  else:
4687  _self = self
4688  this = _IMP_kernel.new_QuadModifier(_self, name)
4689  try: self.this.append(this)
4690  except: self.this = this
4691  if self.__class__ != QuadModifier:
4692  import IMP.base
4693  IMP.base._director_objects.register(self)
4694 
4695 
4696 
4697  def apply(self, *args):
4698  """apply(QuadModifier self, IMP::kernel::ParticleQuad const & vt)"""
4699  return _IMP_kernel.QuadModifier_apply(self, *args)
4700 
4701  def apply_index(self, *args):
4702  """apply_index(QuadModifier self, Model m, IMP::kernel::ParticleIndexQuad const & v)"""
4703  return _IMP_kernel.QuadModifier_apply_index(self, *args)
4704 
4705  def apply_indexes(self, *args):
4706  """apply_indexes(QuadModifier self, Model m, IMP::kernel::ParticleIndexQuads const & o, unsigned int lower_bound, unsigned int upper_bound)"""
4707  return _IMP_kernel.QuadModifier_apply_indexes(self, *args)
4708 
4709  def __str__(self):
4710  """__str__(QuadModifier self) -> std::string"""
4711  return _IMP_kernel.QuadModifier___str__(self)
4712 
4713  def __repr__(self):
4714  """__repr__(QuadModifier self) -> std::string"""
4715  return _IMP_kernel.QuadModifier___repr__(self)
4716 
4717  def get_from(o):
4718  return _object_cast_to_QuadModifier(o)
4719  get_from = staticmethod(get_from)
4720 
4721  def get_type_name(self):
4722  return self.__class__.__name__
4723  def do_show(self, out):
4724  pass
4725  def get_version_info(self):
4726  if"IMP::kernel" == "IMP":
4727  return VersionInfo("python", "0")
4728  else:
4729  return IMP.VersionInfo("python", "0")
4730  def get_from(o):
4731  return _object_cast_to_QuadModifier(o)
4732  get_from = staticmethod(get_from)
4733 
4734  __swig_destroy__ = _IMP_kernel.delete_QuadModifier
4735  __del__ = lambda self : None;
4736  def __disown__(self):
4737  self.this.disown()
4738  _IMP_kernel.disown_QuadModifier(self)
4739  return weakref_proxy(self)
4740  def do_get_inputs(self, *args):
4741  """do_get_inputs(QuadModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4742  return _IMP_kernel.QuadModifier_do_get_inputs(self, *args)
4743 
4744  def do_get_outputs(self, *args):
4745  """do_get_outputs(QuadModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4746  return _IMP_kernel.QuadModifier_do_get_outputs(self, *args)
4747 
4748  def do_destroy(self):
4749  """do_destroy(QuadModifier self)"""
4750  return _IMP_kernel.QuadModifier_do_destroy(self)
4751 
4752 QuadModifier_swigregister = _IMP_kernel.QuadModifier_swigregister
4753 QuadModifier_swigregister(QuadModifier)
4754 
4755 class QuadScore(_ParticleInputs,IMP.base.Object):
4756  """Proxy of C++ IMP::kernel::QuadScore class"""
4757  __swig_setmethods__ = {}
4758  for _s in [_ParticleInputs,IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
4759  __setattr__ = lambda self, name, value: _swig_setattr(self, QuadScore, name, value)
4760  __swig_getmethods__ = {}
4761  for _s in [_ParticleInputs,IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
4762  __getattr__ = lambda self, name: _swig_getattr(self, QuadScore, name)
4763  def __init__(self, name="QuadScore %1%"):
4764  """
4765  __init__(IMP::kernel::QuadScore self, std::string name="QuadScore %1%") -> QuadScore
4766  __init__(IMP::kernel::QuadScore self) -> QuadScore
4767  """
4768  if self.__class__ == QuadScore:
4769  _self = None
4770  else:
4771  _self = self
4772  this = _IMP_kernel.new_QuadScore(_self, name)
4773  try: self.this.append(this)
4774  except: self.this = this
4775  if self.__class__ != QuadScore:
4776  import IMP.base
4777  IMP.base._director_objects.register(self)
4778 
4779 
4780 
4781  def evaluate(self, *args):
4782  """evaluate(QuadScore self, IMP::kernel::ParticleQuad const & vt, DerivativeAccumulator da) -> double"""
4783  return _IMP_kernel.QuadScore_evaluate(self, *args)
4784 
4785  def evaluate_index(self, *args):
4786  """evaluate_index(QuadScore self, Model m, IMP::kernel::ParticleIndexQuad const & vt, DerivativeAccumulator da) -> double"""
4787  return _IMP_kernel.QuadScore_evaluate_index(self, *args)
4788 
4789  def evaluate_indexes(self, *args):
4790  """
4791  evaluate_indexes(QuadScore self, Model m, IMP::kernel::ParticleIndexQuads const & o, DerivativeAccumulator da, unsigned int lower_bound,
4792  unsigned int upper_bound) -> double
4793  """
4794  return _IMP_kernel.QuadScore_evaluate_indexes(self, *args)
4795 
4796  def evaluate_if_good_index(self, *args):
4797  """evaluate_if_good_index(QuadScore self, Model m, IMP::kernel::ParticleIndexQuad const & vt, DerivativeAccumulator da, double max) -> double"""
4798  return _IMP_kernel.QuadScore_evaluate_if_good_index(self, *args)
4799 
4800  def evaluate_if_good_indexes(self, *args):
4801  """
4802  evaluate_if_good_indexes(QuadScore self, Model m, IMP::kernel::ParticleIndexQuads const & o, DerivativeAccumulator da, double max,
4803  unsigned int lower_bound, unsigned int upper_bound) -> double
4804  """
4805  return _IMP_kernel.QuadScore_evaluate_if_good_indexes(self, *args)
4806 
4807  def create_current_decomposition(self, *args):
4808  """create_current_decomposition(QuadScore self, Model m, IMP::kernel::ParticleIndexQuad const & vt) -> IMP::kernel::Restraints"""
4809  return _IMP_kernel.QuadScore_create_current_decomposition(self, *args)
4810 
4811  def do_create_current_decomposition(self, *args):
4812  """do_create_current_decomposition(QuadScore self, Model m, IMP::kernel::ParticleIndexQuad const & vt) -> IMP::kernel::Restraints"""
4813  return _IMP_kernel.QuadScore_do_create_current_decomposition(self, *args)
4814 
4815  __swig_destroy__ = _IMP_kernel.delete_QuadScore
4816  __del__ = lambda self : None;
4817  def __str__(self):
4818  """__str__(QuadScore self) -> std::string"""
4819  return _IMP_kernel.QuadScore___str__(self)
4820 
4821  def __repr__(self):
4822  """__repr__(QuadScore self) -> std::string"""
4823  return _IMP_kernel.QuadScore___repr__(self)
4824 
4825  def get_from(o):
4826  return _object_cast_to_QuadScore(o)
4827  get_from = staticmethod(get_from)
4828 
4829  def get_type_name(self):
4830  return self.__class__.__name__
4831  def do_show(self, out):
4832  pass
4833  def get_version_info(self):
4834  if"IMP::kernel" == "IMP":
4835  return VersionInfo("python", "0")
4836  else:
4837  return IMP.VersionInfo("python", "0")
4838  def get_from(o):
4839  return _object_cast_to_QuadScore(o)
4840  get_from = staticmethod(get_from)
4841 
4842  def __disown__(self):
4843  self.this.disown()
4844  _IMP_kernel.disown_QuadScore(self)
4845  return weakref_proxy(self)
4846  def do_get_inputs(self, *args):
4847  """do_get_inputs(QuadScore self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4848  return _IMP_kernel.QuadScore_do_get_inputs(self, *args)
4849 
4850  def do_destroy(self):
4851  """do_destroy(QuadScore self)"""
4852  return _IMP_kernel.QuadScore_do_destroy(self)
4853 
4854 QuadScore_swigregister = _IMP_kernel.QuadScore_swigregister
4855 QuadScore_swigregister(QuadScore)
4856 
4857 class QuadPredicate(_ParticleInputs,IMP.base.Object):
4858  """Proxy of C++ IMP::kernel::QuadPredicate class"""
4859  __swig_setmethods__ = {}
4860  for _s in [_ParticleInputs,IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
4861  __setattr__ = lambda self, name, value: _swig_setattr(self, QuadPredicate, name, value)
4862  __swig_getmethods__ = {}
4863  for _s in [_ParticleInputs,IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
4864  __getattr__ = lambda self, name: _swig_getattr(self, QuadPredicate, name)
4865  def __init__(self, name="QuadPredicate %1%"):
4866  """
4867  __init__(IMP::kernel::QuadPredicate self, std::string name="QuadPredicate %1%") -> QuadPredicate
4868  __init__(IMP::kernel::QuadPredicate self) -> QuadPredicate
4869  """
4870  if self.__class__ == QuadPredicate:
4871  _self = None
4872  else:
4873  _self = self
4874  this = _IMP_kernel.new_QuadPredicate(_self, name)
4875  try: self.this.append(this)
4876  except: self.this = this
4877  if self.__class__ != QuadPredicate:
4878  import IMP.base
4879  IMP.base._director_objects.register(self)
4880 
4881 
4882 
4883  def get_value(self, *args):
4884  """
4885  get_value(QuadPredicate self, IMP::kernel::ParticleQuad const & vt) -> int
4886  get_value(QuadPredicate self, IMP::kernel::ParticleQuadsTemp const & o) -> IMP::Ints
4887  """
4888  return _IMP_kernel.QuadPredicate_get_value(self, *args)
4889 
4890  def __call__(self, *args):
4891  """__call__(QuadPredicate self, Model m, IMP::kernel::ParticleIndexQuad const & vt) -> int"""
4892  return _IMP_kernel.QuadPredicate___call__(self, *args)
4893 
4894  def get_value_index(self, *args):
4895  """
4896  get_value_index(QuadPredicate self, Model m, IMP::kernel::ParticleIndexQuad const & vt) -> int
4897  get_value_index(QuadPredicate self, Model m, IMP::kernel::ParticleIndexQuads const & o) -> IMP::Ints
4898  """
4899  return _IMP_kernel.QuadPredicate_get_value_index(self, *args)
4900 
4901  __swig_destroy__ = _IMP_kernel.delete_QuadPredicate
4902  __del__ = lambda self : None;
4903  def __str__(self):
4904  """__str__(QuadPredicate self) -> std::string"""
4905  return _IMP_kernel.QuadPredicate___str__(self)
4906 
4907  def __repr__(self):
4908  """__repr__(QuadPredicate self) -> std::string"""
4909  return _IMP_kernel.QuadPredicate___repr__(self)
4910 
4911  def get_from(o):
4912  return _object_cast_to_QuadPredicate(o)
4913  get_from = staticmethod(get_from)
4914 
4915  def get_type_name(self):
4916  return self.__class__.__name__
4917  def do_show(self, out):
4918  pass
4919  def get_version_info(self):
4920  if"IMP::kernel" == "IMP":
4921  return VersionInfo("python", "0")
4922  else:
4923  return IMP.VersionInfo("python", "0")
4924  def get_from(o):
4925  return _object_cast_to_QuadPredicate(o)
4926  get_from = staticmethod(get_from)
4927 
4928  def __disown__(self):
4929  self.this.disown()
4930  _IMP_kernel.disown_QuadPredicate(self)
4931  return weakref_proxy(self)
4932  def do_get_inputs(self, *args):
4933  """do_get_inputs(QuadPredicate self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
4934  return _IMP_kernel.QuadPredicate_do_get_inputs(self, *args)
4935 
4936  def do_destroy(self):
4937  """do_destroy(QuadPredicate self)"""
4938  return _IMP_kernel.QuadPredicate_do_destroy(self)
4939 
4940 QuadPredicate_swigregister = _IMP_kernel.QuadPredicate_swigregister
4941 QuadPredicate_swigregister(QuadPredicate)
4942 
4943 class QuadContainer(Container):
4944  """Proxy of C++ IMP::kernel::QuadContainer class"""
4945  __swig_setmethods__ = {}
4946  for _s in [Container]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
4947  __setattr__ = lambda self, name, value: _swig_setattr(self, QuadContainer, name, value)
4948  __swig_getmethods__ = {}
4949  for _s in [Container]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
4950  __getattr__ = lambda self, name: _swig_getattr(self, QuadContainer, name)
4951  def apply_generic(self, *args):
4952  """apply_generic(QuadContainer self, QuadModifier m)"""
4953  return _IMP_kernel.QuadContainer_apply_generic(self, *args)
4954 
4955  def apply(self, *args):
4956  """apply(QuadContainer self, QuadModifier sm)"""
4957  return _IMP_kernel.QuadContainer_apply(self, *args)
4958 
4959  def get_range_indexes(self):
4960  """get_range_indexes(QuadContainer self) -> IMP::kernel::ParticleIndexQuads"""
4961  return _IMP_kernel.QuadContainer_get_range_indexes(self)
4962 
4963  def get_contents(self):
4964  """get_contents(QuadContainer self) -> IMP::kernel::ParticleIndexQuads const &"""
4965  return _IMP_kernel.QuadContainer_get_contents(self)
4966 
4967  def get_indexes(self):
4968  """get_indexes(QuadContainer self) -> IMP::kernel::ParticleIndexQuads"""
4969  return _IMP_kernel.QuadContainer_get_indexes(self)
4970 
4971  def get(self, *args):
4972  """
4973  get(QuadContainer self) -> IMP::kernel::ParticleQuadsTemp
4974  get(QuadContainer self, unsigned int i) -> IMP::kernel::ParticleQuad
4975  """
4976  return _IMP_kernel.QuadContainer_get(self, *args)
4977 
4978  def get_number(self):
4979  """get_number(QuadContainer self) -> unsigned int"""
4980  return _IMP_kernel.QuadContainer_get_number(self)
4981 
4982  def get_particle_quads(self):
4983  """get_particle_quads(QuadContainer self) -> IMP::kernel::ParticleQuadsTemp"""
4984  return _IMP_kernel.QuadContainer_get_particle_quads(self)
4985 
4986  def get_number_of_particle_quads(self):
4987  """get_number_of_particle_quads(QuadContainer self) -> unsigned int"""
4988  return _IMP_kernel.QuadContainer_get_number_of_particle_quads(self)
4989 
4990  def get_particle_quad(self, *args):
4991  """get_particle_quad(QuadContainer self, unsigned int i) -> IMP::kernel::ParticleQuad"""
4992  return _IMP_kernel.QuadContainer_get_particle_quad(self, *args)
4993 
4994  def __init__(self, *args):
4995  """
4996  __init__(IMP::kernel::QuadContainer self, Model m, std::string name="QuadContainer %1%") -> QuadContainer
4997  __init__(IMP::kernel::QuadContainer self, Model m) -> QuadContainer
4998  """
4999  if self.__class__ == QuadContainer:
5000  _self = None
5001  else:
5002  _self = self
5003  this = _IMP_kernel.new_QuadContainer(_self, *args)
5004  try: self.this.append(this)
5005  except: self.this = this
5006  if self.__class__ != QuadContainer:
5007  import IMP.base
5008  IMP.base._director_objects.register(self)
5009 
5010 
5011 
5012  def do_apply(self, *args):
5013  """do_apply(QuadContainer self, QuadModifier sm)"""
5014  return _IMP_kernel.QuadContainer_do_apply(self, *args)
5015 
5016  def do_get_provides_access(self):
5017  """do_get_provides_access(QuadContainer self) -> bool"""
5018  return _IMP_kernel.QuadContainer_do_get_provides_access(self)
5019 
5020  __swig_destroy__ = _IMP_kernel.delete_QuadContainer
5021  __del__ = lambda self : None;
5022  def __str__(self):
5023  """__str__(QuadContainer self) -> std::string"""
5024  return _IMP_kernel.QuadContainer___str__(self)
5025 
5026  def __repr__(self):
5027  """__repr__(QuadContainer self) -> std::string"""
5028  return _IMP_kernel.QuadContainer___repr__(self)
5029 
5030  def get_from(o):
5031  return _object_cast_to_QuadContainer(o)
5032  get_from = staticmethod(get_from)
5033 
5034  def get_type_name(self):
5035  return self.__class__.__name__
5036  def do_show(self, out):
5037  pass
5038  def get_version_info(self):
5039  if"IMP::kernel" == "IMP":
5040  return VersionInfo("python", "0")
5041  else:
5042  return IMP.VersionInfo("python", "0")
5043  def get_from(o):
5044  return _object_cast_to_QuadContainer(o)
5045  get_from = staticmethod(get_from)
5046 
5047  def __disown__(self):
5048  self.this.disown()
5049  _IMP_kernel.disown_QuadContainer(self)
5050  return weakref_proxy(self)
5051  def do_destroy(self):
5052  """do_destroy(QuadContainer self)"""
5053  return _IMP_kernel.QuadContainer_do_destroy(self)
5054 
5055  def handle_set_has_required_score_states(self, *args):
5056  """handle_set_has_required_score_states(QuadContainer self, bool arg0)"""
5057  return _IMP_kernel.QuadContainer_handle_set_has_required_score_states(self, *args)
5058 
5059  def do_get_inputs(self):
5060  """do_get_inputs(QuadContainer self) -> IMP::kernel::ModelObjectsTemp"""
5061  return _IMP_kernel.QuadContainer_do_get_inputs(self)
5062 
5063  def do_get_interactions(self):
5064  """do_get_interactions(QuadContainer self) -> IMP::kernel::ModelObjectsTemps"""
5065  return _IMP_kernel.QuadContainer_do_get_interactions(self)
5066 
5067  def do_get_contents_hash(self):
5068  """do_get_contents_hash(QuadContainer self) -> std::size_t"""
5069  return _IMP_kernel.QuadContainer_do_get_contents_hash(self)
5070 
5071 QuadContainer_swigregister = _IMP_kernel.QuadContainer_swigregister
5072 QuadContainer_swigregister(QuadContainer)
5073 
5074 class _QuadContainerAdaptor(IMP.base._InputAdaptor):
5075  """Proxy of C++ IMP::kernel::QuadContainerAdaptor class"""
5076  __swig_setmethods__ = {}
5077  for _s in [IMP.base._InputAdaptor]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
5078  __setattr__ = lambda self, name, value: _swig_setattr(self, _QuadContainerAdaptor, name, value)
5079  __swig_getmethods__ = {}
5080  for _s in [IMP.base._InputAdaptor]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
5081  __getattr__ = lambda self, name: _swig_getattr(self, _QuadContainerAdaptor, name)
5082  __repr__ = _swig_repr
5083  def __init__(self, *args):
5084  """
5085  __init__(IMP::kernel::QuadContainerAdaptor self) -> _QuadContainerAdaptor
5086  __init__(IMP::kernel::QuadContainerAdaptor self, QuadContainer c) -> _QuadContainerAdaptor
5087  __init__(IMP::kernel::QuadContainerAdaptor self, IMP::kernel::ParticleQuadsTemp const & t) -> _QuadContainerAdaptor
5088  """
5089  this = _IMP_kernel.new__QuadContainerAdaptor(*args)
5090  try: self.this.append(this)
5091  except: self.this = this
5092  def set_name_if_default(self, *args):
5093  """set_name_if_default(_QuadContainerAdaptor self, std::string name)"""
5094  return _IMP_kernel._QuadContainerAdaptor_set_name_if_default(self, *args)
5095 
5096  __swig_destroy__ = _IMP_kernel.delete__QuadContainerAdaptor
5097  __del__ = lambda self : None;
5098 _QuadContainerAdaptor_swigregister = _IMP_kernel._QuadContainerAdaptor_swigregister
5099 _QuadContainerAdaptor_swigregister(_QuadContainerAdaptor)
5100 
5101 class SingletonModifier(_ParticleInputs,_ParticleOutputs,IMP.base.Object):
5102  """Proxy of C++ IMP::kernel::SingletonModifier class"""
5103  __swig_setmethods__ = {}
5104  for _s in [_ParticleInputs,_ParticleOutputs,IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
5105  __setattr__ = lambda self, name, value: _swig_setattr(self, SingletonModifier, name, value)
5106  __swig_getmethods__ = {}
5107  for _s in [_ParticleInputs,_ParticleOutputs,IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
5108  __getattr__ = lambda self, name: _swig_getattr(self, SingletonModifier, name)
5109  def __init__(self, name="SingletonModifier %1%"):
5110  """
5111  __init__(IMP::kernel::SingletonModifier self, std::string name="SingletonModifier %1%") -> SingletonModifier
5112  __init__(IMP::kernel::SingletonModifier self) -> SingletonModifier
5113  """
5114  if self.__class__ == SingletonModifier:
5115  _self = None
5116  else:
5117  _self = self
5118  this = _IMP_kernel.new_SingletonModifier(_self, name)
5119  try: self.this.append(this)
5120  except: self.this = this
5121  if self.__class__ != SingletonModifier:
5122  import IMP.base
5123  IMP.base._director_objects.register(self)
5124 
5125 
5126 
5127  def apply(self, *args):
5128  """apply(SingletonModifier self, Particle vt)"""
5129  return _IMP_kernel.SingletonModifier_apply(self, *args)
5130 
5131  def apply_index(self, *args):
5132  """apply_index(SingletonModifier self, Model m, IMP::kernel::ParticleIndex v)"""
5133  return _IMP_kernel.SingletonModifier_apply_index(self, *args)
5134 
5135  def apply_indexes(self, *args):
5136  """apply_indexes(SingletonModifier self, Model m, IMP::kernel::ParticleIndexes const & o, unsigned int lower_bound, unsigned int upper_bound)"""
5137  return _IMP_kernel.SingletonModifier_apply_indexes(self, *args)
5138 
5139  def __str__(self):
5140  """__str__(SingletonModifier self) -> std::string"""
5141  return _IMP_kernel.SingletonModifier___str__(self)
5142 
5143  def __repr__(self):
5144  """__repr__(SingletonModifier self) -> std::string"""
5145  return _IMP_kernel.SingletonModifier___repr__(self)
5146 
5147  def get_from(o):
5148  return _object_cast_to_SingletonModifier(o)
5149  get_from = staticmethod(get_from)
5150 
5151  def get_type_name(self):
5152  return self.__class__.__name__
5153  def do_show(self, out):
5154  pass
5155  def get_version_info(self):
5156  if"IMP::kernel" == "IMP":
5157  return VersionInfo("python", "0")
5158  else:
5159  return IMP.VersionInfo("python", "0")
5160  def get_from(o):
5161  return _object_cast_to_SingletonModifier(o)
5162  get_from = staticmethod(get_from)
5163 
5164  __swig_destroy__ = _IMP_kernel.delete_SingletonModifier
5165  __del__ = lambda self : None;
5166  def __disown__(self):
5167  self.this.disown()
5168  _IMP_kernel.disown_SingletonModifier(self)
5169  return weakref_proxy(self)
5170  def do_get_inputs(self, *args):
5171  """do_get_inputs(SingletonModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5172  return _IMP_kernel.SingletonModifier_do_get_inputs(self, *args)
5173 
5174  def do_get_outputs(self, *args):
5175  """do_get_outputs(SingletonModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5176  return _IMP_kernel.SingletonModifier_do_get_outputs(self, *args)
5177 
5178  def do_destroy(self):
5179  """do_destroy(SingletonModifier self)"""
5180  return _IMP_kernel.SingletonModifier_do_destroy(self)
5181 
5182 SingletonModifier_swigregister = _IMP_kernel.SingletonModifier_swigregister
5183 SingletonModifier_swigregister(SingletonModifier)
5184 
5185 class SingletonScore(_ParticleInputs,IMP.base.Object):
5186  """Proxy of C++ IMP::kernel::SingletonScore class"""
5187  __swig_setmethods__ = {}
5188  for _s in [_ParticleInputs,IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
5189  __setattr__ = lambda self, name, value: _swig_setattr(self, SingletonScore, name, value)
5190  __swig_getmethods__ = {}
5191  for _s in [_ParticleInputs,IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
5192  __getattr__ = lambda self, name: _swig_getattr(self, SingletonScore, name)
5193  def __init__(self, name="SingletonScore %1%"):
5194  """
5195  __init__(IMP::kernel::SingletonScore self, std::string name="SingletonScore %1%") -> SingletonScore
5196  __init__(IMP::kernel::SingletonScore self) -> SingletonScore
5197  """
5198  if self.__class__ == SingletonScore:
5199  _self = None
5200  else:
5201  _self = self
5202  this = _IMP_kernel.new_SingletonScore(_self, name)
5203  try: self.this.append(this)
5204  except: self.this = this
5205  if self.__class__ != SingletonScore:
5206  import IMP.base
5207  IMP.base._director_objects.register(self)
5208 
5209 
5210 
5211  def evaluate(self, *args):
5212  """evaluate(SingletonScore self, Particle vt, DerivativeAccumulator da) -> double"""
5213  return _IMP_kernel.SingletonScore_evaluate(self, *args)
5214 
5215  def evaluate_index(self, *args):
5216  """evaluate_index(SingletonScore self, Model m, IMP::kernel::ParticleIndex vt, DerivativeAccumulator da) -> double"""
5217  return _IMP_kernel.SingletonScore_evaluate_index(self, *args)
5218 
5219  def evaluate_indexes(self, *args):
5220  """
5221  evaluate_indexes(SingletonScore self, Model m, IMP::kernel::ParticleIndexes const & o, DerivativeAccumulator da, unsigned int lower_bound,
5222  unsigned int upper_bound) -> double
5223  """
5224  return _IMP_kernel.SingletonScore_evaluate_indexes(self, *args)
5225 
5226  def evaluate_if_good_index(self, *args):
5227  """evaluate_if_good_index(SingletonScore self, Model m, IMP::kernel::ParticleIndex vt, DerivativeAccumulator da, double max) -> double"""
5228  return _IMP_kernel.SingletonScore_evaluate_if_good_index(self, *args)
5229 
5230  def evaluate_if_good_indexes(self, *args):
5231  """
5232  evaluate_if_good_indexes(SingletonScore self, Model m, IMP::kernel::ParticleIndexes const & o, DerivativeAccumulator da, double max,
5233  unsigned int lower_bound, unsigned int upper_bound) -> double
5234  """
5235  return _IMP_kernel.SingletonScore_evaluate_if_good_indexes(self, *args)
5236 
5237  def create_current_decomposition(self, *args):
5238  """create_current_decomposition(SingletonScore self, Model m, IMP::kernel::ParticleIndex vt) -> IMP::kernel::Restraints"""
5239  return _IMP_kernel.SingletonScore_create_current_decomposition(self, *args)
5240 
5241  def do_create_current_decomposition(self, *args):
5242  """do_create_current_decomposition(SingletonScore self, Model m, IMP::kernel::ParticleIndex vt) -> IMP::kernel::Restraints"""
5243  return _IMP_kernel.SingletonScore_do_create_current_decomposition(self, *args)
5244 
5245  __swig_destroy__ = _IMP_kernel.delete_SingletonScore
5246  __del__ = lambda self : None;
5247  def __str__(self):
5248  """__str__(SingletonScore self) -> std::string"""
5249  return _IMP_kernel.SingletonScore___str__(self)
5250 
5251  def __repr__(self):
5252  """__repr__(SingletonScore self) -> std::string"""
5253  return _IMP_kernel.SingletonScore___repr__(self)
5254 
5255  def get_from(o):
5256  return _object_cast_to_SingletonScore(o)
5257  get_from = staticmethod(get_from)
5258 
5259  def get_type_name(self):
5260  return self.__class__.__name__
5261  def do_show(self, out):
5262  pass
5263  def get_version_info(self):
5264  if"IMP::kernel" == "IMP":
5265  return VersionInfo("python", "0")
5266  else:
5267  return IMP.VersionInfo("python", "0")
5268  def get_from(o):
5269  return _object_cast_to_SingletonScore(o)
5270  get_from = staticmethod(get_from)
5271 
5272  def __disown__(self):
5273  self.this.disown()
5274  _IMP_kernel.disown_SingletonScore(self)
5275  return weakref_proxy(self)
5276  def do_get_inputs(self, *args):
5277  """do_get_inputs(SingletonScore self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5278  return _IMP_kernel.SingletonScore_do_get_inputs(self, *args)
5279 
5280  def do_destroy(self):
5281  """do_destroy(SingletonScore self)"""
5282  return _IMP_kernel.SingletonScore_do_destroy(self)
5283 
5284 SingletonScore_swigregister = _IMP_kernel.SingletonScore_swigregister
5285 SingletonScore_swigregister(SingletonScore)
5286 
5287 class SingletonPredicate(_ParticleInputs,IMP.base.Object):
5288  """Proxy of C++ IMP::kernel::SingletonPredicate class"""
5289  __swig_setmethods__ = {}
5290  for _s in [_ParticleInputs,IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
5291  __setattr__ = lambda self, name, value: _swig_setattr(self, SingletonPredicate, name, value)
5292  __swig_getmethods__ = {}
5293  for _s in [_ParticleInputs,IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
5294  __getattr__ = lambda self, name: _swig_getattr(self, SingletonPredicate, name)
5295  def __init__(self, name="SingletonPredicate %1%"):
5296  """
5297  __init__(IMP::kernel::SingletonPredicate self, std::string name="SingletonPredicate %1%") -> SingletonPredicate
5298  __init__(IMP::kernel::SingletonPredicate self) -> SingletonPredicate
5299  """
5300  if self.__class__ == SingletonPredicate:
5301  _self = None
5302  else:
5303  _self = self
5304  this = _IMP_kernel.new_SingletonPredicate(_self, name)
5305  try: self.this.append(this)
5306  except: self.this = this
5307  if self.__class__ != SingletonPredicate:
5308  import IMP.base
5309  IMP.base._director_objects.register(self)
5310 
5311 
5312 
5313  def get_value(self, *args):
5314  """
5315  get_value(SingletonPredicate self, Particle vt) -> int
5316  get_value(SingletonPredicate self, IMP::kernel::ParticlesTemp const & o) -> IMP::Ints
5317  """
5318  return _IMP_kernel.SingletonPredicate_get_value(self, *args)
5319 
5320  def __call__(self, *args):
5321  """__call__(SingletonPredicate self, Model m, IMP::kernel::ParticleIndex vt) -> int"""
5322  return _IMP_kernel.SingletonPredicate___call__(self, *args)
5323 
5324  def get_value_index(self, *args):
5325  """
5326  get_value_index(SingletonPredicate self, Model m, IMP::kernel::ParticleIndex vt) -> int
5327  get_value_index(SingletonPredicate self, Model m, IMP::kernel::ParticleIndexes const & o) -> IMP::Ints
5328  """
5329  return _IMP_kernel.SingletonPredicate_get_value_index(self, *args)
5330 
5331  __swig_destroy__ = _IMP_kernel.delete_SingletonPredicate
5332  __del__ = lambda self : None;
5333  def __str__(self):
5334  """__str__(SingletonPredicate self) -> std::string"""
5335  return _IMP_kernel.SingletonPredicate___str__(self)
5336 
5337  def __repr__(self):
5338  """__repr__(SingletonPredicate self) -> std::string"""
5339  return _IMP_kernel.SingletonPredicate___repr__(self)
5340 
5341  def get_from(o):
5342  return _object_cast_to_SingletonPredicate(o)
5343  get_from = staticmethod(get_from)
5344 
5345  def get_type_name(self):
5346  return self.__class__.__name__
5347  def do_show(self, out):
5348  pass
5349  def get_version_info(self):
5350  if"IMP::kernel" == "IMP":
5351  return VersionInfo("python", "0")
5352  else:
5353  return IMP.VersionInfo("python", "0")
5354  def get_from(o):
5355  return _object_cast_to_SingletonPredicate(o)
5356  get_from = staticmethod(get_from)
5357 
5358  def __disown__(self):
5359  self.this.disown()
5360  _IMP_kernel.disown_SingletonPredicate(self)
5361  return weakref_proxy(self)
5362  def do_get_inputs(self, *args):
5363  """do_get_inputs(SingletonPredicate self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5364  return _IMP_kernel.SingletonPredicate_do_get_inputs(self, *args)
5365 
5366  def do_destroy(self):
5367  """do_destroy(SingletonPredicate self)"""
5368  return _IMP_kernel.SingletonPredicate_do_destroy(self)
5369 
5370 SingletonPredicate_swigregister = _IMP_kernel.SingletonPredicate_swigregister
5371 SingletonPredicate_swigregister(SingletonPredicate)
5372 
5374  """Proxy of C++ IMP::kernel::SingletonContainer class"""
5375  __swig_setmethods__ = {}
5376  for _s in [Container]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
5377  __setattr__ = lambda self, name, value: _swig_setattr(self, SingletonContainer, name, value)
5378  __swig_getmethods__ = {}
5379  for _s in [Container]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
5380  __getattr__ = lambda self, name: _swig_getattr(self, SingletonContainer, name)
5381  def apply_generic(self, *args):
5382  """apply_generic(SingletonContainer self, SingletonModifier m)"""
5383  return _IMP_kernel.SingletonContainer_apply_generic(self, *args)
5384 
5385  def apply(self, *args):
5386  """apply(SingletonContainer self, SingletonModifier sm)"""
5387  return _IMP_kernel.SingletonContainer_apply(self, *args)
5388 
5389  def get_range_indexes(self):
5390  """get_range_indexes(SingletonContainer self) -> IMP::kernel::ParticleIndexes"""
5391  return _IMP_kernel.SingletonContainer_get_range_indexes(self)
5392 
5393  def get_contents(self):
5394  """get_contents(SingletonContainer self) -> IMP::kernel::ParticleIndexes const &"""
5395  return _IMP_kernel.SingletonContainer_get_contents(self)
5396 
5397  def get_indexes(self):
5398  """get_indexes(SingletonContainer self) -> IMP::kernel::ParticleIndexes"""
5399  return _IMP_kernel.SingletonContainer_get_indexes(self)
5400 
5401  def get(self, *args):
5402  """
5403  get(SingletonContainer self) -> IMP::kernel::ParticlesTemp
5404  get(SingletonContainer self, unsigned int i) -> Particle
5405  """
5406  return _IMP_kernel.SingletonContainer_get(self, *args)
5407 
5408  def get_number(self):
5409  """get_number(SingletonContainer self) -> unsigned int"""
5410  return _IMP_kernel.SingletonContainer_get_number(self)
5411 
5412  def get_particles(self):
5413  """get_particles(SingletonContainer self) -> IMP::kernel::ParticlesTemp"""
5414  return _IMP_kernel.SingletonContainer_get_particles(self)
5415 
5416  def get_number_of_particles(self):
5417  """get_number_of_particles(SingletonContainer self) -> unsigned int"""
5418  return _IMP_kernel.SingletonContainer_get_number_of_particles(self)
5419 
5420  def get_particle(self, *args):
5421  """get_particle(SingletonContainer self, unsigned int i) -> Particle"""
5422  return _IMP_kernel.SingletonContainer_get_particle(self, *args)
5423 
5424  def __init__(self, *args):
5425  """
5426  __init__(IMP::kernel::SingletonContainer self, Model m, std::string name="SingletonContainer %1%") -> SingletonContainer
5427  __init__(IMP::kernel::SingletonContainer self, Model m) -> SingletonContainer
5428  """
5429  if self.__class__ == SingletonContainer:
5430  _self = None
5431  else:
5432  _self = self
5433  this = _IMP_kernel.new_SingletonContainer(_self, *args)
5434  try: self.this.append(this)
5435  except: self.this = this
5436  if self.__class__ != SingletonContainer:
5437  import IMP.base
5438  IMP.base._director_objects.register(self)
5439 
5440 
5441 
5442  def do_apply(self, *args):
5443  """do_apply(SingletonContainer self, SingletonModifier sm)"""
5444  return _IMP_kernel.SingletonContainer_do_apply(self, *args)
5445 
5446  def do_get_provides_access(self):
5447  """do_get_provides_access(SingletonContainer self) -> bool"""
5448  return _IMP_kernel.SingletonContainer_do_get_provides_access(self)
5449 
5450  __swig_destroy__ = _IMP_kernel.delete_SingletonContainer
5451  __del__ = lambda self : None;
5452  def __str__(self):
5453  """__str__(SingletonContainer self) -> std::string"""
5454  return _IMP_kernel.SingletonContainer___str__(self)
5455 
5456  def __repr__(self):
5457  """__repr__(SingletonContainer self) -> std::string"""
5458  return _IMP_kernel.SingletonContainer___repr__(self)
5459 
5460  def get_from(o):
5461  return _object_cast_to_SingletonContainer(o)
5462  get_from = staticmethod(get_from)
5463 
5464  def get_type_name(self):
5465  return self.__class__.__name__
5466  def do_show(self, out):
5467  pass
5468  def get_version_info(self):
5469  if"IMP::kernel" == "IMP":
5470  return VersionInfo("python", "0")
5471  else:
5472  return IMP.VersionInfo("python", "0")
5473  def get_from(o):
5474  return _object_cast_to_SingletonContainer(o)
5475  get_from = staticmethod(get_from)
5476 
5477  def __disown__(self):
5478  self.this.disown()
5479  _IMP_kernel.disown_SingletonContainer(self)
5480  return weakref_proxy(self)
5481  def do_destroy(self):
5482  """do_destroy(SingletonContainer self)"""
5483  return _IMP_kernel.SingletonContainer_do_destroy(self)
5484 
5485  def handle_set_has_required_score_states(self, *args):
5486  """handle_set_has_required_score_states(SingletonContainer self, bool arg0)"""
5487  return _IMP_kernel.SingletonContainer_handle_set_has_required_score_states(self, *args)
5488 
5489  def do_get_inputs(self):
5490  """do_get_inputs(SingletonContainer self) -> IMP::kernel::ModelObjectsTemp"""
5491  return _IMP_kernel.SingletonContainer_do_get_inputs(self)
5492 
5493  def do_get_interactions(self):
5494  """do_get_interactions(SingletonContainer self) -> IMP::kernel::ModelObjectsTemps"""
5495  return _IMP_kernel.SingletonContainer_do_get_interactions(self)
5496 
5497  def do_get_contents_hash(self):
5498  """do_get_contents_hash(SingletonContainer self) -> std::size_t"""
5499  return _IMP_kernel.SingletonContainer_do_get_contents_hash(self)
5500 
5501 SingletonContainer_swigregister = _IMP_kernel.SingletonContainer_swigregister
5502 SingletonContainer_swigregister(SingletonContainer)
5503 
5504 class _SingletonContainerAdaptor(IMP.base._InputAdaptor):
5505  """Proxy of C++ IMP::kernel::SingletonContainerAdaptor class"""
5506  __swig_setmethods__ = {}
5507  for _s in [IMP.base._InputAdaptor]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
5508  __setattr__ = lambda self, name, value: _swig_setattr(self, _SingletonContainerAdaptor, name, value)
5509  __swig_getmethods__ = {}
5510  for _s in [IMP.base._InputAdaptor]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
5511  __getattr__ = lambda self, name: _swig_getattr(self, _SingletonContainerAdaptor, name)
5512  __repr__ = _swig_repr
5513  def __init__(self, *args):
5514  """
5515  __init__(IMP::kernel::SingletonContainerAdaptor self) -> _SingletonContainerAdaptor
5516  __init__(IMP::kernel::SingletonContainerAdaptor self, SingletonContainer c) -> _SingletonContainerAdaptor
5517  __init__(IMP::kernel::SingletonContainerAdaptor self, IMP::kernel::ParticlesTemp const & t) -> _SingletonContainerAdaptor
5518  """
5519  this = _IMP_kernel.new__SingletonContainerAdaptor(*args)
5520  try: self.this.append(this)
5521  except: self.this = this
5522  def set_name_if_default(self, *args):
5523  """set_name_if_default(_SingletonContainerAdaptor self, std::string name)"""
5524  return _IMP_kernel._SingletonContainerAdaptor_set_name_if_default(self, *args)
5525 
5526  __swig_destroy__ = _IMP_kernel.delete__SingletonContainerAdaptor
5527  __del__ = lambda self : None;
5528 _SingletonContainerAdaptor_swigregister = _IMP_kernel._SingletonContainerAdaptor_swigregister
5529 _SingletonContainerAdaptor_swigregister(_SingletonContainerAdaptor)
5530 
5531 class TripletModifier(_ParticleInputs,_ParticleOutputs,IMP.base.Object):
5532  """Proxy of C++ IMP::kernel::TripletModifier class"""
5533  __swig_setmethods__ = {}
5534  for _s in [_ParticleInputs,_ParticleOutputs,IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
5535  __setattr__ = lambda self, name, value: _swig_setattr(self, TripletModifier, name, value)
5536  __swig_getmethods__ = {}
5537  for _s in [_ParticleInputs,_ParticleOutputs,IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
5538  __getattr__ = lambda self, name: _swig_getattr(self, TripletModifier, name)
5539  def __init__(self, name="TripletModifier %1%"):
5540  """
5541  __init__(IMP::kernel::TripletModifier self, std::string name="TripletModifier %1%") -> TripletModifier
5542  __init__(IMP::kernel::TripletModifier self) -> TripletModifier
5543  """
5544  if self.__class__ == TripletModifier:
5545  _self = None
5546  else:
5547  _self = self
5548  this = _IMP_kernel.new_TripletModifier(_self, name)
5549  try: self.this.append(this)
5550  except: self.this = this
5551  if self.__class__ != TripletModifier:
5552  import IMP.base
5553  IMP.base._director_objects.register(self)
5554 
5555 
5556 
5557  def apply(self, *args):
5558  """apply(TripletModifier self, IMP::kernel::ParticleTriplet const & vt)"""
5559  return _IMP_kernel.TripletModifier_apply(self, *args)
5560 
5561  def apply_index(self, *args):
5562  """apply_index(TripletModifier self, Model m, IMP::kernel::ParticleIndexTriplet const & v)"""
5563  return _IMP_kernel.TripletModifier_apply_index(self, *args)
5564 
5565  def apply_indexes(self, *args):
5566  """
5567  apply_indexes(TripletModifier self, Model m, IMP::kernel::ParticleIndexTriplets const & o, unsigned int lower_bound,
5568  unsigned int upper_bound)
5569  """
5570  return _IMP_kernel.TripletModifier_apply_indexes(self, *args)
5571 
5572  def __str__(self):
5573  """__str__(TripletModifier self) -> std::string"""
5574  return _IMP_kernel.TripletModifier___str__(self)
5575 
5576  def __repr__(self):
5577  """__repr__(TripletModifier self) -> std::string"""
5578  return _IMP_kernel.TripletModifier___repr__(self)
5579 
5580  def get_from(o):
5581  return _object_cast_to_TripletModifier(o)
5582  get_from = staticmethod(get_from)
5583 
5584  def get_type_name(self):
5585  return self.__class__.__name__
5586  def do_show(self, out):
5587  pass
5588  def get_version_info(self):
5589  if"IMP::kernel" == "IMP":
5590  return VersionInfo("python", "0")
5591  else:
5592  return IMP.VersionInfo("python", "0")
5593  def get_from(o):
5594  return _object_cast_to_TripletModifier(o)
5595  get_from = staticmethod(get_from)
5596 
5597  __swig_destroy__ = _IMP_kernel.delete_TripletModifier
5598  __del__ = lambda self : None;
5599  def __disown__(self):
5600  self.this.disown()
5601  _IMP_kernel.disown_TripletModifier(self)
5602  return weakref_proxy(self)
5603  def do_get_inputs(self, *args):
5604  """do_get_inputs(TripletModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5605  return _IMP_kernel.TripletModifier_do_get_inputs(self, *args)
5606 
5607  def do_get_outputs(self, *args):
5608  """do_get_outputs(TripletModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5609  return _IMP_kernel.TripletModifier_do_get_outputs(self, *args)
5610 
5611  def do_destroy(self):
5612  """do_destroy(TripletModifier self)"""
5613  return _IMP_kernel.TripletModifier_do_destroy(self)
5614 
5615 TripletModifier_swigregister = _IMP_kernel.TripletModifier_swigregister
5616 TripletModifier_swigregister(TripletModifier)
5617 
5618 class TripletScore(_ParticleInputs,IMP.base.Object):
5619  """Proxy of C++ IMP::kernel::TripletScore class"""
5620  __swig_setmethods__ = {}
5621  for _s in [_ParticleInputs,IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
5622  __setattr__ = lambda self, name, value: _swig_setattr(self, TripletScore, name, value)
5623  __swig_getmethods__ = {}
5624  for _s in [_ParticleInputs,IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
5625  __getattr__ = lambda self, name: _swig_getattr(self, TripletScore, name)
5626  def __init__(self, name="TripletScore %1%"):
5627  """
5628  __init__(IMP::kernel::TripletScore self, std::string name="TripletScore %1%") -> TripletScore
5629  __init__(IMP::kernel::TripletScore self) -> TripletScore
5630  """
5631  if self.__class__ == TripletScore:
5632  _self = None
5633  else:
5634  _self = self
5635  this = _IMP_kernel.new_TripletScore(_self, name)
5636  try: self.this.append(this)
5637  except: self.this = this
5638  if self.__class__ != TripletScore:
5639  import IMP.base
5640  IMP.base._director_objects.register(self)
5641 
5642 
5643 
5644  def evaluate(self, *args):
5645  """evaluate(TripletScore self, IMP::kernel::ParticleTriplet const & vt, DerivativeAccumulator da) -> double"""
5646  return _IMP_kernel.TripletScore_evaluate(self, *args)
5647 
5648  def evaluate_index(self, *args):
5649  """evaluate_index(TripletScore self, Model m, IMP::kernel::ParticleIndexTriplet const & vt, DerivativeAccumulator da) -> double"""
5650  return _IMP_kernel.TripletScore_evaluate_index(self, *args)
5651 
5652  def evaluate_indexes(self, *args):
5653  """
5654  evaluate_indexes(TripletScore self, Model m, IMP::kernel::ParticleIndexTriplets const & o, DerivativeAccumulator da,
5655  unsigned int lower_bound, unsigned int upper_bound) -> double
5656  """
5657  return _IMP_kernel.TripletScore_evaluate_indexes(self, *args)
5658 
5659  def evaluate_if_good_index(self, *args):
5660  """
5661  evaluate_if_good_index(TripletScore self, Model m, IMP::kernel::ParticleIndexTriplet const & vt, DerivativeAccumulator da,
5662  double max) -> double
5663  """
5664  return _IMP_kernel.TripletScore_evaluate_if_good_index(self, *args)
5665 
5666  def evaluate_if_good_indexes(self, *args):
5667  """
5668  evaluate_if_good_indexes(TripletScore self, Model m, IMP::kernel::ParticleIndexTriplets const & o, DerivativeAccumulator da,
5669  double max, unsigned int lower_bound, unsigned int upper_bound) -> double
5670  """
5671  return _IMP_kernel.TripletScore_evaluate_if_good_indexes(self, *args)
5672 
5673  def create_current_decomposition(self, *args):
5674  """create_current_decomposition(TripletScore self, Model m, IMP::kernel::ParticleIndexTriplet const & vt) -> IMP::kernel::Restraints"""
5675  return _IMP_kernel.TripletScore_create_current_decomposition(self, *args)
5676 
5677  def do_create_current_decomposition(self, *args):
5678  """do_create_current_decomposition(TripletScore self, Model m, IMP::kernel::ParticleIndexTriplet const & vt) -> IMP::kernel::Restraints"""
5679  return _IMP_kernel.TripletScore_do_create_current_decomposition(self, *args)
5680 
5681  __swig_destroy__ = _IMP_kernel.delete_TripletScore
5682  __del__ = lambda self : None;
5683  def __str__(self):
5684  """__str__(TripletScore self) -> std::string"""
5685  return _IMP_kernel.TripletScore___str__(self)
5686 
5687  def __repr__(self):
5688  """__repr__(TripletScore self) -> std::string"""
5689  return _IMP_kernel.TripletScore___repr__(self)
5690 
5691  def get_from(o):
5692  return _object_cast_to_TripletScore(o)
5693  get_from = staticmethod(get_from)
5694 
5695  def get_type_name(self):
5696  return self.__class__.__name__
5697  def do_show(self, out):
5698  pass
5699  def get_version_info(self):
5700  if"IMP::kernel" == "IMP":
5701  return VersionInfo("python", "0")
5702  else:
5703  return IMP.VersionInfo("python", "0")
5704  def get_from(o):
5705  return _object_cast_to_TripletScore(o)
5706  get_from = staticmethod(get_from)
5707 
5708  def __disown__(self):
5709  self.this.disown()
5710  _IMP_kernel.disown_TripletScore(self)
5711  return weakref_proxy(self)
5712  def do_get_inputs(self, *args):
5713  """do_get_inputs(TripletScore self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5714  return _IMP_kernel.TripletScore_do_get_inputs(self, *args)
5715 
5716  def do_destroy(self):
5717  """do_destroy(TripletScore self)"""
5718  return _IMP_kernel.TripletScore_do_destroy(self)
5719 
5720 TripletScore_swigregister = _IMP_kernel.TripletScore_swigregister
5721 TripletScore_swigregister(TripletScore)
5722 
5723 class TripletPredicate(_ParticleInputs,IMP.base.Object):
5724  """Proxy of C++ IMP::kernel::TripletPredicate class"""
5725  __swig_setmethods__ = {}
5726  for _s in [_ParticleInputs,IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
5727  __setattr__ = lambda self, name, value: _swig_setattr(self, TripletPredicate, name, value)
5728  __swig_getmethods__ = {}
5729  for _s in [_ParticleInputs,IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
5730  __getattr__ = lambda self, name: _swig_getattr(self, TripletPredicate, name)
5731  def __init__(self, name="TripletPredicate %1%"):
5732  """
5733  __init__(IMP::kernel::TripletPredicate self, std::string name="TripletPredicate %1%") -> TripletPredicate
5734  __init__(IMP::kernel::TripletPredicate self) -> TripletPredicate
5735  """
5736  if self.__class__ == TripletPredicate:
5737  _self = None
5738  else:
5739  _self = self
5740  this = _IMP_kernel.new_TripletPredicate(_self, name)
5741  try: self.this.append(this)
5742  except: self.this = this
5743  if self.__class__ != TripletPredicate:
5744  import IMP.base
5745  IMP.base._director_objects.register(self)
5746 
5747 
5748 
5749  def get_value(self, *args):
5750  """
5751  get_value(TripletPredicate self, IMP::kernel::ParticleTriplet const & vt) -> int
5752  get_value(TripletPredicate self, IMP::kernel::ParticleTripletsTemp const & o) -> IMP::Ints
5753  """
5754  return _IMP_kernel.TripletPredicate_get_value(self, *args)
5755 
5756  def __call__(self, *args):
5757  """__call__(TripletPredicate self, Model m, IMP::kernel::ParticleIndexTriplet const & vt) -> int"""
5758  return _IMP_kernel.TripletPredicate___call__(self, *args)
5759 
5760  def get_value_index(self, *args):
5761  """
5762  get_value_index(TripletPredicate self, Model m, IMP::kernel::ParticleIndexTriplet const & vt) -> int
5763  get_value_index(TripletPredicate self, Model m, IMP::kernel::ParticleIndexTriplets const & o) -> IMP::Ints
5764  """
5765  return _IMP_kernel.TripletPredicate_get_value_index(self, *args)
5766 
5767  __swig_destroy__ = _IMP_kernel.delete_TripletPredicate
5768  __del__ = lambda self : None;
5769  def __str__(self):
5770  """__str__(TripletPredicate self) -> std::string"""
5771  return _IMP_kernel.TripletPredicate___str__(self)
5772 
5773  def __repr__(self):
5774  """__repr__(TripletPredicate self) -> std::string"""
5775  return _IMP_kernel.TripletPredicate___repr__(self)
5776 
5777  def get_from(o):
5778  return _object_cast_to_TripletPredicate(o)
5779  get_from = staticmethod(get_from)
5780 
5781  def get_type_name(self):
5782  return self.__class__.__name__
5783  def do_show(self, out):
5784  pass
5785  def get_version_info(self):
5786  if"IMP::kernel" == "IMP":
5787  return VersionInfo("python", "0")
5788  else:
5789  return IMP.VersionInfo("python", "0")
5790  def get_from(o):
5791  return _object_cast_to_TripletPredicate(o)
5792  get_from = staticmethod(get_from)
5793 
5794  def __disown__(self):
5795  self.this.disown()
5796  _IMP_kernel.disown_TripletPredicate(self)
5797  return weakref_proxy(self)
5798  def do_get_inputs(self, *args):
5799  """do_get_inputs(TripletPredicate self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
5800  return _IMP_kernel.TripletPredicate_do_get_inputs(self, *args)
5801 
5802  def do_destroy(self):
5803  """do_destroy(TripletPredicate self)"""
5804  return _IMP_kernel.TripletPredicate_do_destroy(self)
5805 
5806 TripletPredicate_swigregister = _IMP_kernel.TripletPredicate_swigregister
5807 TripletPredicate_swigregister(TripletPredicate)
5808 
5810  """Proxy of C++ IMP::kernel::TripletContainer class"""
5811  __swig_setmethods__ = {}
5812  for _s in [Container]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
5813  __setattr__ = lambda self, name, value: _swig_setattr(self, TripletContainer, name, value)
5814  __swig_getmethods__ = {}
5815  for _s in [Container]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
5816  __getattr__ = lambda self, name: _swig_getattr(self, TripletContainer, name)
5817  def apply_generic(self, *args):
5818  """apply_generic(TripletContainer self, TripletModifier m)"""
5819  return _IMP_kernel.TripletContainer_apply_generic(self, *args)
5820 
5821  def apply(self, *args):
5822  """apply(TripletContainer self, TripletModifier sm)"""
5823  return _IMP_kernel.TripletContainer_apply(self, *args)
5824 
5825  def get_range_indexes(self):
5826  """get_range_indexes(TripletContainer self) -> IMP::kernel::ParticleIndexTriplets"""
5827  return _IMP_kernel.TripletContainer_get_range_indexes(self)
5828 
5829  def get_contents(self):
5830  """get_contents(TripletContainer self) -> IMP::kernel::ParticleIndexTriplets const &"""
5831  return _IMP_kernel.TripletContainer_get_contents(self)
5832 
5833  def get_indexes(self):
5834  """get_indexes(TripletContainer self) -> IMP::kernel::ParticleIndexTriplets"""
5835  return _IMP_kernel.TripletContainer_get_indexes(self)
5836 
5837  def get(self, *args):
5838  """
5839  get(TripletContainer self) -> IMP::kernel::ParticleTripletsTemp
5840  get(TripletContainer self, unsigned int i) -> IMP::kernel::ParticleTriplet
5841  """
5842  return _IMP_kernel.TripletContainer_get(self, *args)
5843 
5844  def get_number(self):
5845  """get_number(TripletContainer self) -> unsigned int"""
5846  return _IMP_kernel.TripletContainer_get_number(self)
5847 
5848  def get_particle_triplets(self):
5849  """get_particle_triplets(TripletContainer self) -> IMP::kernel::ParticleTripletsTemp"""
5850  return _IMP_kernel.TripletContainer_get_particle_triplets(self)
5851 
5852  def get_number_of_particle_triplets(self):
5853  """get_number_of_particle_triplets(TripletContainer self) -> unsigned int"""
5854  return _IMP_kernel.TripletContainer_get_number_of_particle_triplets(self)
5855 
5856  def get_particle_triplet(self, *args):
5857  """get_particle_triplet(TripletContainer self, unsigned int i) -> IMP::kernel::ParticleTriplet"""
5858  return _IMP_kernel.TripletContainer_get_particle_triplet(self, *args)
5859 
5860  def __init__(self, *args):
5861  """
5862  __init__(IMP::kernel::TripletContainer self, Model m, std::string name="TripletContainer %1%") -> TripletContainer
5863  __init__(IMP::kernel::TripletContainer self, Model m) -> TripletContainer
5864  """
5865  if self.__class__ == TripletContainer:
5866  _self = None
5867  else:
5868  _self = self
5869  this = _IMP_kernel.new_TripletContainer(_self, *args)
5870  try: self.this.append(this)
5871  except: self.this = this
5872  if self.__class__ != TripletContainer:
5873  import IMP.base
5874  IMP.base._director_objects.register(self)
5875 
5876 
5877 
5878  def do_apply(self, *args):
5879  """do_apply(TripletContainer self, TripletModifier sm)"""
5880  return _IMP_kernel.TripletContainer_do_apply(self, *args)
5881 
5882  def do_get_provides_access(self):
5883  """do_get_provides_access(TripletContainer self) -> bool"""
5884  return _IMP_kernel.TripletContainer_do_get_provides_access(self)
5885 
5886  __swig_destroy__ = _IMP_kernel.delete_TripletContainer
5887  __del__ = lambda self : None;
5888  def __str__(self):
5889  """__str__(TripletContainer self) -> std::string"""
5890  return _IMP_kernel.TripletContainer___str__(self)
5891 
5892  def __repr__(self):
5893  """__repr__(TripletContainer self) -> std::string"""
5894  return _IMP_kernel.TripletContainer___repr__(self)
5895 
5896  def get_from(o):
5897  return _object_cast_to_TripletContainer(o)
5898  get_from = staticmethod(get_from)
5899 
5900  def get_type_name(self):
5901  return self.__class__.__name__
5902  def do_show(self, out):
5903  pass
5904  def get_version_info(self):
5905  if"IMP::kernel" == "IMP":
5906  return VersionInfo("python", "0")
5907  else:
5908  return IMP.VersionInfo("python", "0")
5909  def get_from(o):
5910  return _object_cast_to_TripletContainer(o)
5911  get_from = staticmethod(get_from)
5912 
5913  def __disown__(self):
5914  self.this.disown()
5915  _IMP_kernel.disown_TripletContainer(self)
5916  return weakref_proxy(self)
5917  def do_destroy(self):
5918  """do_destroy(TripletContainer self)"""
5919  return _IMP_kernel.TripletContainer_do_destroy(self)
5920 
5921  def handle_set_has_required_score_states(self, *args):
5922  """handle_set_has_required_score_states(TripletContainer self, bool arg0)"""
5923  return _IMP_kernel.TripletContainer_handle_set_has_required_score_states(self, *args)
5924 
5925  def do_get_inputs(self):
5926  """do_get_inputs(TripletContainer self) -> IMP::kernel::ModelObjectsTemp"""
5927  return _IMP_kernel.TripletContainer_do_get_inputs(self)
5928 
5929  def do_get_interactions(self):
5930  """do_get_interactions(TripletContainer self) -> IMP::kernel::ModelObjectsTemps"""
5931  return _IMP_kernel.TripletContainer_do_get_interactions(self)
5932 
5933  def do_get_contents_hash(self):
5934  """do_get_contents_hash(TripletContainer self) -> std::size_t"""
5935  return _IMP_kernel.TripletContainer_do_get_contents_hash(self)
5936 
5937 TripletContainer_swigregister = _IMP_kernel.TripletContainer_swigregister
5938 TripletContainer_swigregister(TripletContainer)
5939 
5940 class _TripletContainerAdaptor(IMP.base._InputAdaptor):
5941  """Proxy of C++ IMP::kernel::TripletContainerAdaptor class"""
5942  __swig_setmethods__ = {}
5943  for _s in [IMP.base._InputAdaptor]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
5944  __setattr__ = lambda self, name, value: _swig_setattr(self, _TripletContainerAdaptor, name, value)
5945  __swig_getmethods__ = {}
5946  for _s in [IMP.base._InputAdaptor]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
5947  __getattr__ = lambda self, name: _swig_getattr(self, _TripletContainerAdaptor, name)
5948  __repr__ = _swig_repr
5949  def __init__(self, *args):
5950  """
5951  __init__(IMP::kernel::TripletContainerAdaptor self) -> _TripletContainerAdaptor
5952  __init__(IMP::kernel::TripletContainerAdaptor self, TripletContainer c) -> _TripletContainerAdaptor
5953  __init__(IMP::kernel::TripletContainerAdaptor self, IMP::kernel::ParticleTripletsTemp const & t) -> _TripletContainerAdaptor
5954  """
5955  this = _IMP_kernel.new__TripletContainerAdaptor(*args)
5956  try: self.this.append(this)
5957  except: self.this = this
5958  def set_name_if_default(self, *args):
5959  """set_name_if_default(_TripletContainerAdaptor self, std::string name)"""
5960  return _IMP_kernel._TripletContainerAdaptor_set_name_if_default(self, *args)
5961 
5962  __swig_destroy__ = _IMP_kernel.delete__TripletContainerAdaptor
5963  __del__ = lambda self : None;
5964 _TripletContainerAdaptor_swigregister = _IMP_kernel._TripletContainerAdaptor_swigregister
5965 _TripletContainerAdaptor_swigregister(_TripletContainerAdaptor)
5966 
5967 
5968 def write_particles_to_buffer(*args):
5969  """write_particles_to_buffer(IMP::kernel::ParticlesTemp const & particles, IMP::kernel::FloatKeys const & keys) -> IMP::base::Vector< char >"""
5970  return _IMP_kernel.write_particles_to_buffer(*args)
5971 
5972 def read_particles_from_buffer(*args):
5973  """
5974  read_particles_from_buffer(IMP::base::Vector< char > const & buffer, IMP::kernel::ParticlesTemp const & particles,
5975  IMP::kernel::FloatKeys const & keys)
5976  """
5977  return _IMP_kernel.read_particles_from_buffer(*args)
5978 
5979 def get_particles(*args):
5980  """get_particles(Model m, IMP::kernel::ParticleIndexes const & ps) -> IMP::kernel::ParticlesTemp"""
5981  return _IMP_kernel.get_particles(*args)
5982 
5983 def get_indexes(*args):
5984  """
5985  get_indexes(IMP::kernel::ParticlesTemp const & ps) -> IMP::kernel::ParticleIndexes
5986  get_indexes(IMP::kernel::ParticlePairsTemp const & ps) -> IMP::kernel::ParticleIndexPairs
5987  """
5988  return _IMP_kernel.get_indexes(*args)
5989 class _ParticleIndexAdaptor(_object):
5990  """Proxy of C++ IMP::kernel::ParticleIndexAdaptor class"""
5991  __swig_setmethods__ = {}
5992  __setattr__ = lambda self, name, value: _swig_setattr(self, _ParticleIndexAdaptor, name, value)
5993  __swig_getmethods__ = {}
5994  __getattr__ = lambda self, name: _swig_getattr(self, _ParticleIndexAdaptor, name)
5995  __repr__ = _swig_repr
5996  def __init__(self, *args):
5997  """
5998  __init__(IMP::kernel::ParticleIndexAdaptor self, Particle p) -> _ParticleIndexAdaptor
5999  __init__(IMP::kernel::ParticleIndexAdaptor self, IMP::kernel::ParticleIndex pi) -> _ParticleIndexAdaptor
6000  __init__(IMP::kernel::ParticleIndexAdaptor self, Decorator d) -> _ParticleIndexAdaptor
6001  """
6002  this = _IMP_kernel.new__ParticleIndexAdaptor(*args)
6003  try: self.this.append(this)
6004  except: self.this = this
6005  __swig_destroy__ = _IMP_kernel.delete__ParticleIndexAdaptor
6006  __del__ = lambda self : None;
6007 _ParticleIndexAdaptor_swigregister = _IMP_kernel._ParticleIndexAdaptor_swigregister
6008 _ParticleIndexAdaptor_swigregister(_ParticleIndexAdaptor)
6009 
6010 class _ParticleIndexesAdaptor(IMP.base._InputAdaptor):
6011  """Proxy of C++ IMP::kernel::ParticleIndexesAdaptor class"""
6012  __swig_setmethods__ = {}
6013  for _s in [IMP.base._InputAdaptor]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
6014  __setattr__ = lambda self, name, value: _swig_setattr(self, _ParticleIndexesAdaptor, name, value)
6015  __swig_getmethods__ = {}
6016  for _s in [IMP.base._InputAdaptor]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
6017  __getattr__ = lambda self, name: _swig_getattr(self, _ParticleIndexesAdaptor, name)
6018  __repr__ = _swig_repr
6019  def __init__(self, *args):
6020  """
6021  __init__(IMP::kernel::ParticleIndexesAdaptor self, IMP::kernel::ParticlesTemp const & ps) -> _ParticleIndexesAdaptor
6022  __init__(IMP::kernel::ParticleIndexesAdaptor self, IMP::kernel::ParticleIndexes const & pi) -> _ParticleIndexesAdaptor
6023  __init__(IMP::kernel::ParticleIndexesAdaptor self) -> _ParticleIndexesAdaptor
6024  """
6025  this = _IMP_kernel.new__ParticleIndexesAdaptor(*args)
6026  try: self.this.append(this)
6027  except: self.this = this
6028  __swig_destroy__ = _IMP_kernel.delete__ParticleIndexesAdaptor
6029  __del__ = lambda self : None;
6030 _ParticleIndexesAdaptor_swigregister = _IMP_kernel._ParticleIndexesAdaptor_swigregister
6031 _ParticleIndexesAdaptor_swigregister(_ParticleIndexesAdaptor)
6032 
6033 class _ParticleIndexPairsAdaptor(_object):
6034  """Proxy of C++ IMP::kernel::ParticleIndexPairsAdaptor class"""
6035  __swig_setmethods__ = {}
6036  __setattr__ = lambda self, name, value: _swig_setattr(self, _ParticleIndexPairsAdaptor, name, value)
6037  __swig_getmethods__ = {}
6038  __getattr__ = lambda self, name: _swig_getattr(self, _ParticleIndexPairsAdaptor, name)
6039  __repr__ = _swig_repr
6040  def __init__(self, *args):
6041  """
6042  __init__(IMP::kernel::ParticleIndexPairsAdaptor self, IMP::kernel::ParticlePairsTemp const & ps) -> _ParticleIndexPairsAdaptor
6043  __init__(IMP::kernel::ParticleIndexPairsAdaptor self, IMP::kernel::ParticleIndexPairs const & pi) -> _ParticleIndexPairsAdaptor
6044  __init__(IMP::kernel::ParticleIndexPairsAdaptor self) -> _ParticleIndexPairsAdaptor
6045  """
6046  this = _IMP_kernel.new__ParticleIndexPairsAdaptor(*args)
6047  try: self.this.append(this)
6048  except: self.this = this
6049  __swig_destroy__ = _IMP_kernel.delete__ParticleIndexPairsAdaptor
6050  __del__ = lambda self : None;
6051 _ParticleIndexPairsAdaptor_swigregister = _IMP_kernel._ParticleIndexPairsAdaptor_swigregister
6052 _ParticleIndexPairsAdaptor_swigregister(_ParticleIndexPairsAdaptor)
6053 
6054 class _ConstRestraint(Restraint):
6055  """Proxy of C++ IMP::kernel::internal::_ConstRestraint class"""
6056  __swig_setmethods__ = {}
6057  for _s in [Restraint]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
6058  __setattr__ = lambda self, name, value: _swig_setattr(self, _ConstRestraint, name, value)
6059  __swig_getmethods__ = {}
6060  for _s in [Restraint]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
6061  __getattr__ = lambda self, name: _swig_getattr(self, _ConstRestraint, name)
6062  def __init__(self, *args):
6063  """
6064  __init__(IMP::kernel::internal::_ConstRestraint self, double v, IMP::kernel::ParticlesTemp const ps) -> _ConstRestraint
6065  __init__(IMP::kernel::internal::_ConstRestraint self, Model m, IMP::kernel::ParticleIndexes const & pis, double v) -> _ConstRestraint
6066  """
6067  this = _IMP_kernel.new__ConstRestraint(*args)
6068  try: self.this.append(this)
6069  except: self.this = this
6070  def get_value(self):
6071  """get_value(_ConstRestraint self) -> double"""
6072  return _IMP_kernel._ConstRestraint_get_value(self)
6073 
6074  def do_create_decomposition(self):
6075  """do_create_decomposition(_ConstRestraint self) -> IMP::kernel::Restraints"""
6076  return _IMP_kernel._ConstRestraint_do_create_decomposition(self)
6077 
6078  def do_get_inputs(self):
6079  """do_get_inputs(_ConstRestraint self) -> IMP::kernel::ModelObjectsTemp"""
6080  return _IMP_kernel._ConstRestraint_do_get_inputs(self)
6081 
6082  def get_version_info(self):
6083  """get_version_info(_ConstRestraint self) -> VersionInfo"""
6084  return _IMP_kernel._ConstRestraint_get_version_info(self)
6085 
6086  def __str__(self):
6087  """__str__(_ConstRestraint self) -> std::string"""
6088  return _IMP_kernel._ConstRestraint___str__(self)
6089 
6090  def __repr__(self):
6091  """__repr__(_ConstRestraint self) -> std::string"""
6092  return _IMP_kernel._ConstRestraint___repr__(self)
6093 
6094  def get_from(o):
6095  return _object_cast_to__ConstRestraint(o)
6096  get_from = staticmethod(get_from)
6097 
6098 _ConstRestraint_swigregister = _IMP_kernel._ConstRestraint_swigregister
6099 _ConstRestraint_swigregister(_ConstRestraint)
6100 
6101 class _ConstSingletonScore(SingletonScore):
6102  """Proxy of C++ IMP::kernel::internal::_ConstSingletonScore class"""
6103  __swig_setmethods__ = {}
6104  for _s in [SingletonScore]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
6105  __setattr__ = lambda self, name, value: _swig_setattr(self, _ConstSingletonScore, name, value)
6106  __swig_getmethods__ = {}
6107  for _s in [SingletonScore]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
6108  __getattr__ = lambda self, name: _swig_getattr(self, _ConstSingletonScore, name)
6109  __repr__ = _swig_repr
6110  def __init__(self, *args):
6111  """__init__(IMP::kernel::internal::_ConstSingletonScore self, double v) -> _ConstSingletonScore"""
6112  this = _IMP_kernel.new__ConstSingletonScore(*args)
6113  try: self.this.append(this)
6114  except: self.this = this
6115  def do_get_inputs(self, *args):
6116  """do_get_inputs(_ConstSingletonScore self, Model arg2, IMP::kernel::ParticleIndexes const & arg3) -> IMP::kernel::ModelObjectsTemp"""
6117  return _IMP_kernel._ConstSingletonScore_do_get_inputs(self, *args)
6118 
6119  def get_version_info(self):
6120  """get_version_info(_ConstSingletonScore self) -> VersionInfo"""
6121  return _IMP_kernel._ConstSingletonScore_get_version_info(self)
6122 
6123 _ConstSingletonScore_swigregister = _IMP_kernel._ConstSingletonScore_swigregister
6124 _ConstSingletonScore_swigregister(_ConstSingletonScore)
6125 
6126 class _ConstPairScore(PairScore):
6127  """Proxy of C++ IMP::kernel::internal::_ConstPairScore class"""
6128  __swig_setmethods__ = {}
6129  for _s in [PairScore]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
6130  __setattr__ = lambda self, name, value: _swig_setattr(self, _ConstPairScore, name, value)
6131  __swig_getmethods__ = {}
6132  for _s in [PairScore]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
6133  __getattr__ = lambda self, name: _swig_getattr(self, _ConstPairScore, name)
6134  __repr__ = _swig_repr
6135  def __init__(self, *args):
6136  """__init__(IMP::kernel::internal::_ConstPairScore self, double v) -> _ConstPairScore"""
6137  this = _IMP_kernel.new__ConstPairScore(*args)
6138  try: self.this.append(this)
6139  except: self.this = this
6140  def do_get_inputs(self, *args):
6141  """do_get_inputs(_ConstPairScore self, Model arg2, IMP::kernel::ParticleIndexes const & arg3) -> IMP::kernel::ModelObjectsTemp"""
6142  return _IMP_kernel._ConstPairScore_do_get_inputs(self, *args)
6143 
6144  def get_version_info(self):
6145  """get_version_info(_ConstPairScore self) -> VersionInfo"""
6146  return _IMP_kernel._ConstPairScore_get_version_info(self)
6147 
6148 _ConstPairScore_swigregister = _IMP_kernel._ConstPairScore_swigregister
6149 _ConstPairScore_swigregister(_ConstPairScore)
6150 
6151 class _TrivialDecorator(Decorator):
6152  """Proxy of C++ IMP::kernel::internal::_TrivialDecorator class"""
6153  __swig_setmethods__ = {}
6154  for _s in [Decorator]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
6155  __setattr__ = lambda self, name, value: _swig_setattr(self, _TrivialDecorator, name, value)
6156  __swig_getmethods__ = {}
6157  for _s in [Decorator]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
6158  __getattr__ = lambda self, name: _swig_getattr(self, _TrivialDecorator, name)
6159  def __init__(self, *args):
6160  """
6161  __init__(IMP::kernel::internal::_TrivialDecorator self) -> _TrivialDecorator
6162  __init__(IMP::kernel::internal::_TrivialDecorator self, Model m, ::IMP::kernel::ParticleIndex id) -> _TrivialDecorator
6163  __init__(IMP::kernel::internal::_TrivialDecorator self, _ParticleAdaptor d) -> _TrivialDecorator
6164  """
6165  this = _IMP_kernel.new__TrivialDecorator(*args)
6166  try: self.this.append(this)
6167  except: self.this = this
6168  def show(self, *args):
6169  """
6170  show(_TrivialDecorator self, _ostream out=std::cout)
6171  show(_TrivialDecorator self)
6172  """
6173  return _IMP_kernel._TrivialDecorator_show(self, *args)
6174 
6175  def setup_particle(*args):
6176  """
6177  setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> _TrivialDecorator
6178  setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
6179  """
6180  return _IMP_kernel._TrivialDecorator_setup_particle(*args)
6181 
6182  if _newclass:setup_particle = staticmethod(setup_particle)
6183  __swig_getmethods__["setup_particle"] = lambda x: setup_particle
6184  def get_is_setup(*args):
6185  """
6186  get_is_setup(_ParticleAdaptor p) -> bool
6187  get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
6188  """
6189  return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
6190 
6191  if _newclass:get_is_setup = staticmethod(get_is_setup)
6192  __swig_getmethods__["get_is_setup"] = lambda x: get_is_setup
6193  def add_attribute(self, *args):
6194  """
6195  add_attribute(_TrivialDecorator self, FloatKey k, IMP::Float v, bool opt)
6196  add_attribute(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
6197  add_attribute(_TrivialDecorator self, IntKey a0, IMP::Int a1)
6198  add_attribute(_TrivialDecorator self, StringKey a0, IMP::String a1)
6199  add_attribute(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
6200  add_attribute(_TrivialDecorator self, ObjectKey a0, Object a1)
6201  """
6202  return _IMP_kernel._TrivialDecorator_add_attribute(self, *args)
6203 
6204  def get_value(self, *args):
6205  """
6206  get_value(_TrivialDecorator self, FloatKey a0) -> IMP::Float
6207  get_value(_TrivialDecorator self, IntKey a0) -> IMP::Int
6208  get_value(_TrivialDecorator self, StringKey a0) -> IMP::String
6209  get_value(_TrivialDecorator self, ParticleIndexKey a0) -> Particle
6210  get_value(_TrivialDecorator self, ObjectKey a0) -> Object
6211  """
6212  return _IMP_kernel._TrivialDecorator_get_value(self, *args)
6213 
6214  def set_value(self, *args):
6215  """
6216  set_value(_TrivialDecorator self, FloatKey a0, IMP::Float a1)
6217  set_value(_TrivialDecorator self, IntKey a0, IMP::Int a1)
6218  set_value(_TrivialDecorator self, StringKey a0, IMP::String a1)
6219  set_value(_TrivialDecorator self, ParticleIndexKey a0, Particle a1)
6220  set_value(_TrivialDecorator self, ObjectKey a0, Object a1)
6221  """
6222  return _IMP_kernel._TrivialDecorator_set_value(self, *args)
6223 
6224  def remove_attribute(self, *args):
6225  """
6226  remove_attribute(_TrivialDecorator self, FloatKey a0)
6227  remove_attribute(_TrivialDecorator self, IntKey a0)
6228  remove_attribute(_TrivialDecorator self, StringKey a0)
6229  remove_attribute(_TrivialDecorator self, ParticleIndexKey a0)
6230  remove_attribute(_TrivialDecorator self, ObjectKey a0)
6231  """
6232  return _IMP_kernel._TrivialDecorator_remove_attribute(self, *args)
6233 
6234  def has_attribute(self, *args):
6235  """
6236  has_attribute(_TrivialDecorator self, FloatKey a0) -> bool
6237  has_attribute(_TrivialDecorator self, IntKey a0) -> bool
6238  has_attribute(_TrivialDecorator self, StringKey a0) -> bool
6239  has_attribute(_TrivialDecorator self, ParticleIndexKey a0) -> bool
6240  has_attribute(_TrivialDecorator self, ObjectKey a0) -> bool
6241  """
6242  return _IMP_kernel._TrivialDecorator_has_attribute(self, *args)
6243 
6244  def get_derivative(self, *args):
6245  """get_derivative(_TrivialDecorator self, FloatKey a0) -> double"""
6246  return _IMP_kernel._TrivialDecorator_get_derivative(self, *args)
6247 
6248  def get_name(self):
6249  """get_name(_TrivialDecorator self) -> std::string"""
6250  return _IMP_kernel._TrivialDecorator_get_name(self)
6251 
6252  def clear_caches(self):
6253  """clear_caches(_TrivialDecorator self)"""
6254  return _IMP_kernel._TrivialDecorator_clear_caches(self)
6255 
6256  def set_name(self, *args):
6257  """set_name(_TrivialDecorator self, std::string a0)"""
6258  return _IMP_kernel._TrivialDecorator_set_name(self, *args)
6259 
6260  def set_check_level(self, *args):
6261  """set_check_level(_TrivialDecorator self, IMP::base::CheckLevel a0)"""
6262  return _IMP_kernel._TrivialDecorator_set_check_level(self, *args)
6263 
6264  def add_to_derivative(self, *args):
6265  """add_to_derivative(_TrivialDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6266  return _IMP_kernel._TrivialDecorator_add_to_derivative(self, *args)
6267 
6268  def set_is_optimized(self, *args):
6269  """set_is_optimized(_TrivialDecorator self, FloatKey a0, bool a1)"""
6270  return _IMP_kernel._TrivialDecorator_set_is_optimized(self, *args)
6271 
6272  def get_is_optimized(self, *args):
6273  """get_is_optimized(_TrivialDecorator self, FloatKey a0) -> bool"""
6274  return _IMP_kernel._TrivialDecorator_get_is_optimized(self, *args)
6275 
6276  def get_check_level(self):
6277  """get_check_level(_TrivialDecorator self) -> IMP::base::CheckLevel"""
6278  return _IMP_kernel._TrivialDecorator_get_check_level(self)
6279 
6280  def __eq__(self, *args):
6281  """
6282  __eq__(_TrivialDecorator self, _TrivialDecorator o) -> bool
6283  __eq__(_TrivialDecorator self, Particle d) -> bool
6284  """
6285  return _IMP_kernel._TrivialDecorator___eq__(self, *args)
6286 
6287  def __ne__(self, *args):
6288  """
6289  __ne__(_TrivialDecorator self, _TrivialDecorator o) -> bool
6290  __ne__(_TrivialDecorator self, Particle d) -> bool
6291  """
6292  return _IMP_kernel._TrivialDecorator___ne__(self, *args)
6293 
6294  def __le__(self, *args):
6295  """
6296  __le__(_TrivialDecorator self, _TrivialDecorator o) -> bool
6297  __le__(_TrivialDecorator self, Particle d) -> bool
6298  """
6299  return _IMP_kernel._TrivialDecorator___le__(self, *args)
6300 
6301  def __lt__(self, *args):
6302  """
6303  __lt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
6304  __lt__(_TrivialDecorator self, Particle d) -> bool
6305  """
6306  return _IMP_kernel._TrivialDecorator___lt__(self, *args)
6307 
6308  def __ge__(self, *args):
6309  """
6310  __ge__(_TrivialDecorator self, _TrivialDecorator o) -> bool
6311  __ge__(_TrivialDecorator self, Particle d) -> bool
6312  """
6313  return _IMP_kernel._TrivialDecorator___ge__(self, *args)
6314 
6315  def __gt__(self, *args):
6316  """
6317  __gt__(_TrivialDecorator self, _TrivialDecorator o) -> bool
6318  __gt__(_TrivialDecorator self, Particle d) -> bool
6319  """
6320  return _IMP_kernel._TrivialDecorator___gt__(self, *args)
6321 
6322  def __str__(self):
6323  """__str__(_TrivialDecorator self) -> std::string"""
6324  return _IMP_kernel._TrivialDecorator___str__(self)
6325 
6326  def __repr__(self):
6327  """__repr__(_TrivialDecorator self) -> std::string"""
6328  return _IMP_kernel._TrivialDecorator___repr__(self)
6329 
6330  __swig_destroy__ = _IMP_kernel.delete__TrivialDecorator
6331  __del__ = lambda self : None;
6332 _TrivialDecorator_swigregister = _IMP_kernel._TrivialDecorator_swigregister
6333 _TrivialDecorator_swigregister(_TrivialDecorator)
6334 
6335 def _TrivialDecorator_setup_particle(*args):
6336  """
6337  setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> _TrivialDecorator
6338  _TrivialDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDecorator
6339  """
6340  return _IMP_kernel._TrivialDecorator_setup_particle(*args)
6341 
6342 def _TrivialDecorator_get_is_setup(*args):
6343  """
6344  get_is_setup(_ParticleAdaptor p) -> bool
6345  _TrivialDecorator_get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
6346  """
6347  return _IMP_kernel._TrivialDecorator_get_is_setup(*args)
6348 
6349 class _TrivialDerivedDecorator(_TrivialDecorator):
6350  """Proxy of C++ IMP::kernel::internal::_TrivialDerivedDecorator class"""
6351  __swig_setmethods__ = {}
6352  for _s in [_TrivialDecorator]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
6353  __setattr__ = lambda self, name, value: _swig_setattr(self, _TrivialDerivedDecorator, name, value)
6354  __swig_getmethods__ = {}
6355  for _s in [_TrivialDecorator]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
6356  __getattr__ = lambda self, name: _swig_getattr(self, _TrivialDerivedDecorator, name)
6357  def __init__(self, *args):
6358  """
6359  __init__(IMP::kernel::internal::_TrivialDerivedDecorator self) -> _TrivialDerivedDecorator
6360  __init__(IMP::kernel::internal::_TrivialDerivedDecorator self, Model m, ::IMP::kernel::ParticleIndex id) -> _TrivialDerivedDecorator
6361  __init__(IMP::kernel::internal::_TrivialDerivedDecorator self, _ParticleAdaptor d) -> _TrivialDerivedDecorator
6362  """
6363  this = _IMP_kernel.new__TrivialDerivedDecorator(*args)
6364  try: self.this.append(this)
6365  except: self.this = this
6366  def show(self, *args):
6367  """
6368  show(_TrivialDerivedDecorator self, _ostream out=std::cout)
6369  show(_TrivialDerivedDecorator self)
6370  """
6371  return _IMP_kernel._TrivialDerivedDecorator_show(self, *args)
6372 
6373  def setup_particle(*args):
6374  """
6375  setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> _TrivialDerivedDecorator
6376  setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
6377  """
6378  return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
6379 
6380  if _newclass:setup_particle = staticmethod(setup_particle)
6381  __swig_getmethods__["setup_particle"] = lambda x: setup_particle
6382  def get_is_setup(*args):
6383  """
6384  get_is_setup(_ParticleAdaptor p) -> bool
6385  get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
6386  """
6387  return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
6388 
6389  if _newclass:get_is_setup = staticmethod(get_is_setup)
6390  __swig_getmethods__["get_is_setup"] = lambda x: get_is_setup
6391  def add_attribute(self, *args):
6392  """
6393  add_attribute(_TrivialDerivedDecorator self, FloatKey k, IMP::Float v, bool opt)
6394  add_attribute(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
6395  add_attribute(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
6396  add_attribute(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
6397  add_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
6398  add_attribute(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
6399  """
6400  return _IMP_kernel._TrivialDerivedDecorator_add_attribute(self, *args)
6401 
6402  def get_value(self, *args):
6403  """
6404  get_value(_TrivialDerivedDecorator self, FloatKey a0) -> IMP::Float
6405  get_value(_TrivialDerivedDecorator self, IntKey a0) -> IMP::Int
6406  get_value(_TrivialDerivedDecorator self, StringKey a0) -> IMP::String
6407  get_value(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> Particle
6408  get_value(_TrivialDerivedDecorator self, ObjectKey a0) -> Object
6409  """
6410  return _IMP_kernel._TrivialDerivedDecorator_get_value(self, *args)
6411 
6412  def set_value(self, *args):
6413  """
6414  set_value(_TrivialDerivedDecorator self, FloatKey a0, IMP::Float a1)
6415  set_value(_TrivialDerivedDecorator self, IntKey a0, IMP::Int a1)
6416  set_value(_TrivialDerivedDecorator self, StringKey a0, IMP::String a1)
6417  set_value(_TrivialDerivedDecorator self, ParticleIndexKey a0, Particle a1)
6418  set_value(_TrivialDerivedDecorator self, ObjectKey a0, Object a1)
6419  """
6420  return _IMP_kernel._TrivialDerivedDecorator_set_value(self, *args)
6421 
6422  def remove_attribute(self, *args):
6423  """
6424  remove_attribute(_TrivialDerivedDecorator self, FloatKey a0)
6425  remove_attribute(_TrivialDerivedDecorator self, IntKey a0)
6426  remove_attribute(_TrivialDerivedDecorator self, StringKey a0)
6427  remove_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0)
6428  remove_attribute(_TrivialDerivedDecorator self, ObjectKey a0)
6429  """
6430  return _IMP_kernel._TrivialDerivedDecorator_remove_attribute(self, *args)
6431 
6432  def has_attribute(self, *args):
6433  """
6434  has_attribute(_TrivialDerivedDecorator self, FloatKey a0) -> bool
6435  has_attribute(_TrivialDerivedDecorator self, IntKey a0) -> bool
6436  has_attribute(_TrivialDerivedDecorator self, StringKey a0) -> bool
6437  has_attribute(_TrivialDerivedDecorator self, ParticleIndexKey a0) -> bool
6438  has_attribute(_TrivialDerivedDecorator self, ObjectKey a0) -> bool
6439  """
6440  return _IMP_kernel._TrivialDerivedDecorator_has_attribute(self, *args)
6441 
6442  def get_derivative(self, *args):
6443  """get_derivative(_TrivialDerivedDecorator self, FloatKey a0) -> double"""
6444  return _IMP_kernel._TrivialDerivedDecorator_get_derivative(self, *args)
6445 
6446  def get_name(self):
6447  """get_name(_TrivialDerivedDecorator self) -> std::string"""
6448  return _IMP_kernel._TrivialDerivedDecorator_get_name(self)
6449 
6450  def clear_caches(self):
6451  """clear_caches(_TrivialDerivedDecorator self)"""
6452  return _IMP_kernel._TrivialDerivedDecorator_clear_caches(self)
6453 
6454  def set_name(self, *args):
6455  """set_name(_TrivialDerivedDecorator self, std::string a0)"""
6456  return _IMP_kernel._TrivialDerivedDecorator_set_name(self, *args)
6457 
6458  def set_check_level(self, *args):
6459  """set_check_level(_TrivialDerivedDecorator self, IMP::base::CheckLevel a0)"""
6460  return _IMP_kernel._TrivialDerivedDecorator_set_check_level(self, *args)
6461 
6462  def add_to_derivative(self, *args):
6463  """add_to_derivative(_TrivialDerivedDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6464  return _IMP_kernel._TrivialDerivedDecorator_add_to_derivative(self, *args)
6465 
6466  def set_is_optimized(self, *args):
6467  """set_is_optimized(_TrivialDerivedDecorator self, FloatKey a0, bool a1)"""
6468  return _IMP_kernel._TrivialDerivedDecorator_set_is_optimized(self, *args)
6469 
6470  def get_is_optimized(self, *args):
6471  """get_is_optimized(_TrivialDerivedDecorator self, FloatKey a0) -> bool"""
6472  return _IMP_kernel._TrivialDerivedDecorator_get_is_optimized(self, *args)
6473 
6474  def get_check_level(self):
6475  """get_check_level(_TrivialDerivedDecorator self) -> IMP::base::CheckLevel"""
6476  return _IMP_kernel._TrivialDerivedDecorator_get_check_level(self)
6477 
6478  def __eq__(self, *args):
6479  """
6480  __eq__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
6481  __eq__(_TrivialDerivedDecorator self, Particle d) -> bool
6482  """
6483  return _IMP_kernel._TrivialDerivedDecorator___eq__(self, *args)
6484 
6485  def __ne__(self, *args):
6486  """
6487  __ne__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
6488  __ne__(_TrivialDerivedDecorator self, Particle d) -> bool
6489  """
6490  return _IMP_kernel._TrivialDerivedDecorator___ne__(self, *args)
6491 
6492  def __le__(self, *args):
6493  """
6494  __le__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
6495  __le__(_TrivialDerivedDecorator self, Particle d) -> bool
6496  """
6497  return _IMP_kernel._TrivialDerivedDecorator___le__(self, *args)
6498 
6499  def __lt__(self, *args):
6500  """
6501  __lt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
6502  __lt__(_TrivialDerivedDecorator self, Particle d) -> bool
6503  """
6504  return _IMP_kernel._TrivialDerivedDecorator___lt__(self, *args)
6505 
6506  def __ge__(self, *args):
6507  """
6508  __ge__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
6509  __ge__(_TrivialDerivedDecorator self, Particle d) -> bool
6510  """
6511  return _IMP_kernel._TrivialDerivedDecorator___ge__(self, *args)
6512 
6513  def __gt__(self, *args):
6514  """
6515  __gt__(_TrivialDerivedDecorator self, _TrivialDerivedDecorator o) -> bool
6516  __gt__(_TrivialDerivedDecorator self, Particle d) -> bool
6517  """
6518  return _IMP_kernel._TrivialDerivedDecorator___gt__(self, *args)
6519 
6520  def __str__(self):
6521  """__str__(_TrivialDerivedDecorator self) -> std::string"""
6522  return _IMP_kernel._TrivialDerivedDecorator___str__(self)
6523 
6524  def __repr__(self):
6525  """__repr__(_TrivialDerivedDecorator self) -> std::string"""
6526  return _IMP_kernel._TrivialDerivedDecorator___repr__(self)
6527 
6528  __swig_destroy__ = _IMP_kernel.delete__TrivialDerivedDecorator
6529  __del__ = lambda self : None;
6530 _TrivialDerivedDecorator_swigregister = _IMP_kernel._TrivialDerivedDecorator_swigregister
6531 _TrivialDerivedDecorator_swigregister(_TrivialDerivedDecorator)
6532 
6533 def _TrivialDerivedDecorator_setup_particle(*args):
6534  """
6535  setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> _TrivialDerivedDecorator
6536  _TrivialDerivedDecorator_setup_particle(_ParticleAdaptor decorator) -> _TrivialDerivedDecorator
6537  """
6538  return _IMP_kernel._TrivialDerivedDecorator_setup_particle(*args)
6539 
6540 def _TrivialDerivedDecorator_get_is_setup(*args):
6541  """
6542  get_is_setup(_ParticleAdaptor p) -> bool
6543  _TrivialDerivedDecorator_get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
6544  """
6545  return _IMP_kernel._TrivialDerivedDecorator_get_is_setup(*args)
6546 
6547 class _TrivialTraitsDecorator(Decorator):
6548  """Proxy of C++ IMP::kernel::internal::_TrivialTraitsDecorator class"""
6549  __swig_setmethods__ = {}
6550  for _s in [Decorator]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
6551  __setattr__ = lambda self, name, value: _swig_setattr(self, _TrivialTraitsDecorator, name, value)
6552  __swig_getmethods__ = {}
6553  for _s in [Decorator]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
6554  __getattr__ = lambda self, name: _swig_getattr(self, _TrivialTraitsDecorator, name)
6555  def get_decorator_traits(self):
6556  """get_decorator_traits(_TrivialTraitsDecorator self) -> StringKey"""
6557  return _IMP_kernel._TrivialTraitsDecorator_get_decorator_traits(self)
6558 
6559  def get_default_decorator_traits():
6560  """get_default_decorator_traits() -> StringKey"""
6561  return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
6562 
6563  if _newclass:get_default_decorator_traits = staticmethod(get_default_decorator_traits)
6564  __swig_getmethods__["get_default_decorator_traits"] = lambda x: get_default_decorator_traits
6565  def __init__(self, *args):
6566  """
6567  __init__(IMP::kernel::internal::_TrivialTraitsDecorator self) -> _TrivialTraitsDecorator
6568  __init__(IMP::kernel::internal::_TrivialTraitsDecorator self, Model m, ::IMP::kernel::ParticleIndex id, StringKey tr=get_default_key()) -> _TrivialTraitsDecorator
6569  __init__(IMP::kernel::internal::_TrivialTraitsDecorator self, Model m, ::IMP::kernel::ParticleIndex id) -> _TrivialTraitsDecorator
6570  __init__(IMP::kernel::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d, StringKey tr=get_default_key()) -> _TrivialTraitsDecorator
6571  __init__(IMP::kernel::internal::_TrivialTraitsDecorator self, _ParticleAdaptor d) -> _TrivialTraitsDecorator
6572  """
6573  this = _IMP_kernel.new__TrivialTraitsDecorator(*args)
6574  try: self.this.append(this)
6575  except: self.this = this
6576  def show(self, *args):
6577  """
6578  show(_TrivialTraitsDecorator self, _ostream out=std::cout)
6579  show(_TrivialTraitsDecorator self)
6580  """
6581  return _IMP_kernel._TrivialTraitsDecorator_show(self, *args)
6582 
6583  def setup_particle(*args):
6584  """
6585  setup_particle(Model m, IMP::kernel::ParticleIndex pi, StringKey tr=IMP::kernel::internal::_TrivialTraitsDecorator::get_default_decorator_traits()) -> _TrivialTraitsDecorator
6586  setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> _TrivialTraitsDecorator
6587  setup_particle(_ParticleAdaptor d, StringKey tr=IMP::kernel::internal::_TrivialTraitsDecorator::get_default_decorator_traits()) -> _TrivialTraitsDecorator
6588  setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
6589  """
6590  return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
6591 
6592  if _newclass:setup_particle = staticmethod(setup_particle)
6593  __swig_getmethods__["setup_particle"] = lambda x: setup_particle
6594  def get_is_setup(*args):
6595  """
6596  get_is_setup(_ParticleAdaptor p, StringKey tr=get_default_key()) -> bool
6597  get_is_setup(_ParticleAdaptor p) -> bool
6598  get_is_setup(Model m, IMP::kernel::ParticleIndex pi, StringKey k=get_default_key()) -> bool
6599  get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
6600  """
6601  return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
6602 
6603  if _newclass:get_is_setup = staticmethod(get_is_setup)
6604  __swig_getmethods__["get_is_setup"] = lambda x: get_is_setup
6605  def get_default_key():
6606  """get_default_key() -> StringKey"""
6607  return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
6608 
6609  if _newclass:get_default_key = staticmethod(get_default_key)
6610  __swig_getmethods__["get_default_key"] = lambda x: get_default_key
6611  def add_attribute(self, *args):
6612  """
6613  add_attribute(_TrivialTraitsDecorator self, FloatKey k, IMP::Float v, bool opt)
6614  add_attribute(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
6615  add_attribute(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
6616  add_attribute(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
6617  add_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
6618  add_attribute(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
6619  """
6620  return _IMP_kernel._TrivialTraitsDecorator_add_attribute(self, *args)
6621 
6622  def get_value(self, *args):
6623  """
6624  get_value(_TrivialTraitsDecorator self, FloatKey a0) -> IMP::Float
6625  get_value(_TrivialTraitsDecorator self, IntKey a0) -> IMP::Int
6626  get_value(_TrivialTraitsDecorator self, StringKey a0) -> IMP::String
6627  get_value(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> Particle
6628  get_value(_TrivialTraitsDecorator self, ObjectKey a0) -> Object
6629  """
6630  return _IMP_kernel._TrivialTraitsDecorator_get_value(self, *args)
6631 
6632  def set_value(self, *args):
6633  """
6634  set_value(_TrivialTraitsDecorator self, FloatKey a0, IMP::Float a1)
6635  set_value(_TrivialTraitsDecorator self, IntKey a0, IMP::Int a1)
6636  set_value(_TrivialTraitsDecorator self, StringKey a0, IMP::String a1)
6637  set_value(_TrivialTraitsDecorator self, ParticleIndexKey a0, Particle a1)
6638  set_value(_TrivialTraitsDecorator self, ObjectKey a0, Object a1)
6639  """
6640  return _IMP_kernel._TrivialTraitsDecorator_set_value(self, *args)
6641 
6642  def remove_attribute(self, *args):
6643  """
6644  remove_attribute(_TrivialTraitsDecorator self, FloatKey a0)
6645  remove_attribute(_TrivialTraitsDecorator self, IntKey a0)
6646  remove_attribute(_TrivialTraitsDecorator self, StringKey a0)
6647  remove_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0)
6648  remove_attribute(_TrivialTraitsDecorator self, ObjectKey a0)
6649  """
6650  return _IMP_kernel._TrivialTraitsDecorator_remove_attribute(self, *args)
6651 
6652  def has_attribute(self, *args):
6653  """
6654  has_attribute(_TrivialTraitsDecorator self, FloatKey a0) -> bool
6655  has_attribute(_TrivialTraitsDecorator self, IntKey a0) -> bool
6656  has_attribute(_TrivialTraitsDecorator self, StringKey a0) -> bool
6657  has_attribute(_TrivialTraitsDecorator self, ParticleIndexKey a0) -> bool
6658  has_attribute(_TrivialTraitsDecorator self, ObjectKey a0) -> bool
6659  """
6660  return _IMP_kernel._TrivialTraitsDecorator_has_attribute(self, *args)
6661 
6662  def get_derivative(self, *args):
6663  """get_derivative(_TrivialTraitsDecorator self, FloatKey a0) -> double"""
6664  return _IMP_kernel._TrivialTraitsDecorator_get_derivative(self, *args)
6665 
6666  def get_name(self):
6667  """get_name(_TrivialTraitsDecorator self) -> std::string"""
6668  return _IMP_kernel._TrivialTraitsDecorator_get_name(self)
6669 
6670  def clear_caches(self):
6671  """clear_caches(_TrivialTraitsDecorator self)"""
6672  return _IMP_kernel._TrivialTraitsDecorator_clear_caches(self)
6673 
6674  def set_name(self, *args):
6675  """set_name(_TrivialTraitsDecorator self, std::string a0)"""
6676  return _IMP_kernel._TrivialTraitsDecorator_set_name(self, *args)
6677 
6678  def set_check_level(self, *args):
6679  """set_check_level(_TrivialTraitsDecorator self, IMP::base::CheckLevel a0)"""
6680  return _IMP_kernel._TrivialTraitsDecorator_set_check_level(self, *args)
6681 
6682  def add_to_derivative(self, *args):
6683  """add_to_derivative(_TrivialTraitsDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6684  return _IMP_kernel._TrivialTraitsDecorator_add_to_derivative(self, *args)
6685 
6686  def set_is_optimized(self, *args):
6687  """set_is_optimized(_TrivialTraitsDecorator self, FloatKey a0, bool a1)"""
6688  return _IMP_kernel._TrivialTraitsDecorator_set_is_optimized(self, *args)
6689 
6690  def get_is_optimized(self, *args):
6691  """get_is_optimized(_TrivialTraitsDecorator self, FloatKey a0) -> bool"""
6692  return _IMP_kernel._TrivialTraitsDecorator_get_is_optimized(self, *args)
6693 
6694  def get_check_level(self):
6695  """get_check_level(_TrivialTraitsDecorator self) -> IMP::base::CheckLevel"""
6696  return _IMP_kernel._TrivialTraitsDecorator_get_check_level(self)
6697 
6698  def __eq__(self, *args):
6699  """
6700  __eq__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
6701  __eq__(_TrivialTraitsDecorator self, Particle d) -> bool
6702  """
6703  return _IMP_kernel._TrivialTraitsDecorator___eq__(self, *args)
6704 
6705  def __ne__(self, *args):
6706  """
6707  __ne__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
6708  __ne__(_TrivialTraitsDecorator self, Particle d) -> bool
6709  """
6710  return _IMP_kernel._TrivialTraitsDecorator___ne__(self, *args)
6711 
6712  def __le__(self, *args):
6713  """
6714  __le__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
6715  __le__(_TrivialTraitsDecorator self, Particle d) -> bool
6716  """
6717  return _IMP_kernel._TrivialTraitsDecorator___le__(self, *args)
6718 
6719  def __lt__(self, *args):
6720  """
6721  __lt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
6722  __lt__(_TrivialTraitsDecorator self, Particle d) -> bool
6723  """
6724  return _IMP_kernel._TrivialTraitsDecorator___lt__(self, *args)
6725 
6726  def __ge__(self, *args):
6727  """
6728  __ge__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
6729  __ge__(_TrivialTraitsDecorator self, Particle d) -> bool
6730  """
6731  return _IMP_kernel._TrivialTraitsDecorator___ge__(self, *args)
6732 
6733  def __gt__(self, *args):
6734  """
6735  __gt__(_TrivialTraitsDecorator self, _TrivialTraitsDecorator o) -> bool
6736  __gt__(_TrivialTraitsDecorator self, Particle d) -> bool
6737  """
6738  return _IMP_kernel._TrivialTraitsDecorator___gt__(self, *args)
6739 
6740  def __str__(self):
6741  """__str__(_TrivialTraitsDecorator self) -> std::string"""
6742  return _IMP_kernel._TrivialTraitsDecorator___str__(self)
6743 
6744  def __repr__(self):
6745  """__repr__(_TrivialTraitsDecorator self) -> std::string"""
6746  return _IMP_kernel._TrivialTraitsDecorator___repr__(self)
6747 
6748  __swig_destroy__ = _IMP_kernel.delete__TrivialTraitsDecorator
6749  __del__ = lambda self : None;
6750 _TrivialTraitsDecorator_swigregister = _IMP_kernel._TrivialTraitsDecorator_swigregister
6751 _TrivialTraitsDecorator_swigregister(_TrivialTraitsDecorator)
6752 
6753 def _TrivialTraitsDecorator_get_default_decorator_traits():
6754  """_TrivialTraitsDecorator_get_default_decorator_traits() -> StringKey"""
6755  return _IMP_kernel._TrivialTraitsDecorator_get_default_decorator_traits()
6756 
6757 def _TrivialTraitsDecorator_setup_particle(*args):
6758  """
6759  setup_particle(Model m, IMP::kernel::ParticleIndex pi, StringKey tr=IMP::kernel::internal::_TrivialTraitsDecorator::get_default_decorator_traits()) -> _TrivialTraitsDecorator
6760  setup_particle(Model m, IMP::kernel::ParticleIndex pi) -> _TrivialTraitsDecorator
6761  setup_particle(_ParticleAdaptor d, StringKey tr=IMP::kernel::internal::_TrivialTraitsDecorator::get_default_decorator_traits()) -> _TrivialTraitsDecorator
6762  _TrivialTraitsDecorator_setup_particle(_ParticleAdaptor d) -> _TrivialTraitsDecorator
6763  """
6764  return _IMP_kernel._TrivialTraitsDecorator_setup_particle(*args)
6765 
6766 def _TrivialTraitsDecorator_get_is_setup(*args):
6767  """
6768  get_is_setup(_ParticleAdaptor p, StringKey tr=get_default_key()) -> bool
6769  get_is_setup(_ParticleAdaptor p) -> bool
6770  get_is_setup(Model m, IMP::kernel::ParticleIndex pi, StringKey k=get_default_key()) -> bool
6771  _TrivialTraitsDecorator_get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
6772  """
6773  return _IMP_kernel._TrivialTraitsDecorator_get_is_setup(*args)
6774 
6775 def _TrivialTraitsDecorator_get_default_key():
6776  """_TrivialTraitsDecorator_get_default_key() -> StringKey"""
6777  return _IMP_kernel._TrivialTraitsDecorator_get_default_key()
6778 
6779 
6780 def __lshift__(*args):
6781  """
6782  __lshift__(_ostream out, _TrivialDecorator n) -> _ostream
6783  __lshift__(_ostream out, _TrivialDerivedDecorator n) -> _ostream
6784  __lshift__(_ostream out, _TrivialTraitsDecorator n) -> _ostream
6785  """
6786  return _IMP_kernel.__lshift__(*args)
6787 class _ConstOptimizer(Optimizer):
6788  """Proxy of C++ IMP::kernel::internal::_ConstOptimizer class"""
6789  __swig_setmethods__ = {}
6790  for _s in [Optimizer]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
6791  __setattr__ = lambda self, name, value: _swig_setattr(self, _ConstOptimizer, name, value)
6792  __swig_getmethods__ = {}
6793  for _s in [Optimizer]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
6794  __getattr__ = lambda self, name: _swig_getattr(self, _ConstOptimizer, name)
6795  def __init__(self, *args):
6796  """__init__(IMP::kernel::internal::_ConstOptimizer self, Model m) -> _ConstOptimizer"""
6797  this = _IMP_kernel.new__ConstOptimizer(*args)
6798  try: self.this.append(this)
6799  except: self.this = this
6800  def do_optimize(self, *args):
6801  """do_optimize(_ConstOptimizer self, unsigned int max_steps) -> IMP::Float"""
6802  return _IMP_kernel._ConstOptimizer_do_optimize(self, *args)
6803 
6804  def get_version_info(self):
6805  """get_version_info(_ConstOptimizer self) -> VersionInfo"""
6806  return _IMP_kernel._ConstOptimizer_get_version_info(self)
6807 
6808  def __str__(self):
6809  """__str__(_ConstOptimizer self) -> std::string"""
6810  return _IMP_kernel._ConstOptimizer___str__(self)
6811 
6812  def __repr__(self):
6813  """__repr__(_ConstOptimizer self) -> std::string"""
6814  return _IMP_kernel._ConstOptimizer___repr__(self)
6815 
6816  def get_from(o):
6817  return _object_cast_to__ConstOptimizer(o)
6818  get_from = staticmethod(get_from)
6819 
6820 _ConstOptimizer_swigregister = _IMP_kernel._ConstOptimizer_swigregister
6821 _ConstOptimizer_swigregister(_ConstOptimizer)
6822 
6823 
6824 def get_particle(*args):
6825  """get_particle(Particle p) -> Particle"""
6826  return _IMP_kernel.get_particle(*args)
6827 
6828 def _decorator_test(*args):
6829  """_decorator_test(Particle p)"""
6830  return _IMP_kernel._decorator_test(*args)
6831 
6832 def _overloaded_decorator(*args):
6833  """
6834  _overloaded_decorator(_TrivialDecorator a) -> int
6835  _overloaded_decorator(_TrivialDerivedDecorator a) -> int
6836  """
6837  return _IMP_kernel._overloaded_decorator(*args)
6838 
6839 def _take_particles(*args):
6840  """
6841  _take_particles(IMP::kernel::Particles const & ps) -> unsigned int
6842  _take_particles(Model m, IMP::kernel::Particles const & ps) -> unsigned int
6843  _take_particles(Model m, IMP::kernel::Particles const & ps, TextOutput out) -> unsigned int
6844  """
6845  return _IMP_kernel._take_particles(*args)
6846 
6847 def _give_particles(*args):
6848  """_give_particles(Model m) -> IMP::kernel::Particles const &"""
6849  return _IMP_kernel._give_particles(*args)
6850 
6851 def _pass_particles(*args):
6852  """_pass_particles(IMP::kernel::Particles const & ps) -> IMP::kernel::Particles const &"""
6853  return _IMP_kernel._pass_particles(*args)
6854 
6855 def _pass_particle(*args):
6856  """_pass_particle(Particle ps) -> Particle"""
6857  return _IMP_kernel._pass_particle(*args)
6858 
6859 def _pass_particle_pair(*args):
6860  """_pass_particle_pair(IMP::kernel::ParticlePair const & pp) -> IMP::kernel::ParticlePair const &"""
6861  return _IMP_kernel._pass_particle_pair(*args)
6862 
6863 def _give_particles_copy(*args):
6864  """_give_particles_copy(Model m) -> IMP::kernel::Particles"""
6865  return _IMP_kernel._give_particles_copy(*args)
6866 
6867 def _pass_float_keys(*args):
6868  """_pass_float_keys(IMP::kernel::FloatKeys const & input) -> IMP::kernel::FloatKeys"""
6869  return _IMP_kernel._pass_float_keys(*args)
6870 
6871 def _pass(*args):
6872  """
6873  _pass(IMP::kernel::Particles const & p) -> IMP::kernel::Particles const
6874  _pass(IMP::kernel::Restraints const & p) -> IMP::kernel::Restraints const &
6875  """
6876  return _IMP_kernel._pass(*args)
6877 
6878 def _pass_decorators(*args):
6879  """_pass_decorators(IMP::kernel::internal::_TrivialDecorators const & p) -> IMP::kernel::internal::_TrivialDecorators const &"""
6880  return _IMP_kernel._pass_decorators(*args)
6881 
6882 def _pass_decorator_traits(*args):
6883  """_pass_decorator_traits(IMP::kernel::internal::_TrivialTraitsDecorators const & p) -> IMP::kernel::internal::_TrivialTraitsDecorators const &"""
6884  return _IMP_kernel._pass_decorator_traits(*args)
6885 
6886 def _pass_particle_pairs(*args):
6887  """_pass_particle_pairs(IMP::kernel::ParticlePairsTemp const & p) -> IMP::kernel::ParticlePairsTemp"""
6888  return _IMP_kernel._pass_particle_pairs(*args)
6889 
6890 def _pass_particle_index_pairs(*args):
6891  """_pass_particle_index_pairs(IMP::kernel::ParticleIndexPairs const & p) -> IMP::kernel::ParticleIndexPairs"""
6892  return _IMP_kernel._pass_particle_index_pairs(*args)
6893 
6894 def _pass_model_objects(*args):
6895  """_pass_model_objects(IMP::kernel::ModelObjectsTemp const & p) -> IMP::kernel::ModelObjectsTemp"""
6896  return _IMP_kernel._pass_model_objects(*args)
6897 
6898 def _pass_particles_temps(*args):
6899  """_pass_particles_temps(IMP::kernel::ParticlesTemps const & ps) -> IMP::kernel::ParticlesTemps"""
6900  return _IMP_kernel._pass_particles_temps(*args)
6901 
6902 def _test_overload(*args):
6903  """
6904  _test_overload(IMP::kernel::Particles const & ps) -> int
6905  _test_overload(IMP::kernel::Restraints const & ps) -> int
6906  """
6907  return _IMP_kernel._test_overload(*args)
6908 
6909 def _get_range(*args):
6910  """_get_range(Model m, FloatKey k) -> IMP::FloatRange"""
6911  return _IMP_kernel._get_range(*args)
6912 
6913 def _create_particles_from_pdb(*args):
6914  """_create_particles_from_pdb(std::string name, Model m) -> IMP::kernel::ParticlesTemp"""
6915  return _IMP_kernel._create_particles_from_pdb(*args)
6916 class _LogPairScore(PairScore):
6917  """Proxy of C++ IMP::kernel::internal::_LogPairScore class"""
6918  __swig_setmethods__ = {}
6919  for _s in [PairScore]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
6920  __setattr__ = lambda self, name, value: _swig_setattr(self, _LogPairScore, name, value)
6921  __swig_getmethods__ = {}
6922  for _s in [PairScore]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
6923  __getattr__ = lambda self, name: _swig_getattr(self, _LogPairScore, name)
6924  __repr__ = _swig_repr
6925  def __init__(self):
6926  """__init__(IMP::kernel::internal::_LogPairScore self) -> _LogPairScore"""
6927  this = _IMP_kernel.new__LogPairScore()
6928  try: self.this.append(this)
6929  except: self.this = this
6930  def do_get_inputs(self, *args):
6931  """do_get_inputs(_LogPairScore self, Model arg2, IMP::kernel::ParticleIndexes const & arg3) -> IMP::kernel::ModelObjectsTemp"""
6932  return _IMP_kernel._LogPairScore_do_get_inputs(self, *args)
6933 
6934  def get_version_info(self):
6935  """get_version_info(_LogPairScore self) -> VersionInfo"""
6936  return _IMP_kernel._LogPairScore_get_version_info(self)
6937 
6938  def get_particle_pairs(self):
6939  """get_particle_pairs(_LogPairScore self) -> IMP::kernel::ParticlePairsTemp"""
6940  return _IMP_kernel._LogPairScore_get_particle_pairs(self)
6941 
6942  def clear(self):
6943  """clear(_LogPairScore self)"""
6944  return _IMP_kernel._LogPairScore_clear(self)
6945 
6946  def get_contains(self, *args):
6947  """get_contains(_LogPairScore self, IMP::kernel::ParticlePair const & pp) -> bool"""
6948  return _IMP_kernel._LogPairScore_get_contains(self, *args)
6949 
6950 _LogPairScore_swigregister = _IMP_kernel._LogPairScore_swigregister
6951 _LogPairScore_swigregister(_LogPairScore)
6952 
6953 
6954 def _overloaded_particles(*args):
6955  """
6956  _overloaded_particles(Particle arg1)
6957  _overloaded_particles(IMP::kernel::Particles const & arg1)
6958  _overloaded_particles(IMP::kernel::ParticlesTemp const & arg1)
6959  _overloaded_particles(Model arg1, IMP::kernel::ParticleIndexes const & arg2)
6960  _overloaded_particles(IMP::kernel::internal::_TrivialDecorators const & arg1)
6961  _overloaded_particles(_TrivialDecorator arg1)
6962  """
6963  return _IMP_kernel._overloaded_particles(*args)
6964 class _ImplicitParticles(_object):
6965  """Proxy of C++ IMP::kernel::internal::_ImplicitParticles class"""
6966  __swig_setmethods__ = {}
6967  __setattr__ = lambda self, name, value: _swig_setattr(self, _ImplicitParticles, name, value)
6968  __swig_getmethods__ = {}
6969  __getattr__ = lambda self, name: _swig_getattr(self, _ImplicitParticles, name)
6970  __repr__ = _swig_repr
6971  def __init__(self, *args):
6972  """
6973  __init__(IMP::kernel::internal::_ImplicitParticles self, Particle arg2) -> _ImplicitParticles
6974  __init__(IMP::kernel::internal::_ImplicitParticles self, IMP::kernel::Particles const & arg2) -> _ImplicitParticles
6975  __init__(IMP::kernel::internal::_ImplicitParticles self, IMP::kernel::ParticlesTemp const & arg2) -> _ImplicitParticles
6976  __init__(IMP::kernel::internal::_ImplicitParticles self, Model arg2, IMP::kernel::ParticleIndexes const & arg3) -> _ImplicitParticles
6977  __init__(IMP::kernel::internal::_ImplicitParticles self, IMP::kernel::internal::_TrivialDecorators const & arg2) -> _ImplicitParticles
6978  __init__(IMP::kernel::internal::_ImplicitParticles self, _TrivialDecorator arg2) -> _ImplicitParticles
6979  """
6980  this = _IMP_kernel.new__ImplicitParticles(*args)
6981  try: self.this.append(this)
6982  except: self.this = this
6983  __swig_destroy__ = _IMP_kernel.delete__ImplicitParticles
6984  __del__ = lambda self : None;
6985 _ImplicitParticles_swigregister = _IMP_kernel._ImplicitParticles_swigregister
6986 _ImplicitParticles_swigregister(_ImplicitParticles)
6987 
6988 
6989 def _implicit_particles(*args):
6990  """_implicit_particles(_ImplicitParticles arg1)"""
6991  return _IMP_kernel._implicit_particles(*args)
6992 
6993 def _take_particle_adaptor(*args):
6994  """_take_particle_adaptor(_ParticleAdaptor pa) -> IMP::kernel::ParticleIndex"""
6995  return _IMP_kernel._take_particle_adaptor(*args)
6996 
6997 def _take_particle_indexes_adaptor(*args):
6998  """_take_particle_indexes_adaptor(_ParticleIndexesAdaptor pa) -> IMP::kernel::ParticleIndexes"""
6999  return _IMP_kernel._take_particle_indexes_adaptor(*args)
7000 class ScopedSetFloatAttribute(IMP.base._RAII):
7001  """Proxy of C++ IMP::kernel::ScopedSetAttribute<(FloatKey,IMP::Float)> class"""
7002  __swig_setmethods__ = {}
7003  for _s in [IMP.base._RAII]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
7004  __setattr__ = lambda self, name, value: _swig_setattr(self, ScopedSetFloatAttribute, name, value)
7005  __swig_getmethods__ = {}
7006  for _s in [IMP.base._RAII]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
7007  __getattr__ = lambda self, name: _swig_getattr(self, ScopedSetFloatAttribute, name)
7008  def __init__(self, *args):
7009  """
7010  __init__(IMP::kernel::ScopedSetAttribute<(FloatKey,IMP::Float)> self) -> ScopedSetFloatAttribute
7011  __init__(IMP::kernel::ScopedSetAttribute<(FloatKey,IMP::Float)> self, Particle p, FloatKey key, double const & value) -> ScopedSetFloatAttribute
7012  """
7013  this = _IMP_kernel.new_ScopedSetFloatAttribute(*args)
7014  try: self.this.append(this)
7015  except: self.this = this
7016  def set(self, *args):
7017  """set(ScopedSetFloatAttribute self, Particle p, FloatKey key, double const & value)"""
7018  return _IMP_kernel.ScopedSetFloatAttribute_set(self, *args)
7019 
7020  def reset(self):
7021  """reset(ScopedSetFloatAttribute self)"""
7022  return _IMP_kernel.ScopedSetFloatAttribute_reset(self)
7023 
7024  __swig_destroy__ = _IMP_kernel.delete_ScopedSetFloatAttribute
7025  __del__ = lambda self : None;
7026  def show(self, *args):
7027  """
7028  show(ScopedSetFloatAttribute self, _ostream out=std::cout)
7029  show(ScopedSetFloatAttribute self)
7030  """
7031  return _IMP_kernel.ScopedSetFloatAttribute_show(self, *args)
7032 
7033  def __str__(self):
7034  """__str__(ScopedSetFloatAttribute self) -> std::string"""
7035  return _IMP_kernel.ScopedSetFloatAttribute___str__(self)
7036 
7037  def __repr__(self):
7038  """__repr__(ScopedSetFloatAttribute self) -> std::string"""
7039  return _IMP_kernel.ScopedSetFloatAttribute___repr__(self)
7040 
7041 ScopedSetFloatAttribute_swigregister = _IMP_kernel.ScopedSetFloatAttribute_swigregister
7042 ScopedSetFloatAttribute_swigregister(ScopedSetFloatAttribute)
7043 
7044 #used_modules=[]
7045 #def show_used_modules():
7046 # for m in used_modules:
7047 # print "%-20s %s" % (m.get_module(), m.get_version())
7048 
7049 
7050 import IMP.base
7051 get_networkx_graph=IMP.base.get_networkx_graph
7052 show_altgraph=IMP.base.show_altgraph
7053 show_graphviz=IMP.base.show_graphviz
7054 SetLogState= IMP.base.SetLogState
7055 SetLogTarget= IMP.base.SetLogTarget
7056 Object= IMP.base.Object
7057 NONE= IMP.base.NONE
7058 USAGE= IMP.base.USAGE
7059 USAGE_AND_INTERNAL= IMP.base.USAGE_AND_INTERNAL
7060 TERSE= IMP.base.TERSE
7061 SILENT= IMP.base.SILENT
7062 VERBOSE= IMP.base.VERBOSE
7063 WARNING= IMP.base.WARNING
7064 PROGRESS= IMP.base.PROGRESS
7065 MEMORY= IMP.base.MEMORY
7066 create_temporary_file= IMP.base.create_temporary_file
7067 create_temporary_file_name= IMP.base.create_temporary_file_name
7068 random_number_generator= IMP.base.random_number_generator
7069 set_log_level=IMP.base.set_log_level
7070 set_log_timer=IMP.base.set_log_timer
7071 get_log_level=IMP.base.get_log_level
7072 add_to_log= IMP.base.add_to_log
7073 set_check_level= IMP.base.set_check_level
7074 get_check_level= IMP.base.get_check_level
7075 
7076 # Ensure that Windows gets the PATH set to include anything in the library
7077 # search path
7078 if sys.platform == 'win32' and 'IMP_LD_PATH' in os.environ:
7079  dirs = os.environ['IMP_LD_PATH'].split(":")
7080  pathcomps = os.environ['PATH'].split(";")
7081  for d in dirs:
7082  if d not in pathcomps:
7083  os.environ['PATH'] = d + ';' + os.environ['PATH']
7084 
7085 IOException=IMP.base.IOException
7086 ValueException=IMP.base.ValueException
7087 ModelException=IMP.base.ModelException
7088 IOException=IMP.base.IOException
7089 IOException=IMP.base.IOException
7090 
7091 import sys
7092 import os
7093 
7094 class CommandDispatcher(object):
7095  """Allow applications to easily implement commmands.
7096  Typically, an IMP application will use an instance of this class
7097  to provide a consistent interface to multiple distinct commands
7098  from a single binary, rather than providing a potentially large
7099  number of binaries.
7100 
7101  Each command is implemented with a Python module of the same name
7102  that can be imported from the module (for example, if module_name
7103  is 'IMP.foo', the 'bar' command is provided by the IMP.foo.bar Python
7104  module, which would usually be found as modules/foo/pyext/src/bar.py).
7105  Each such module should have a docstring (__doc__) and a main() method
7106  that takes no arguments (the module should also call its main() method
7107  if it is run directly, i.e. with something like
7108  'if __name__=="__main__": main()'). The encompassing module
7109  ('IMP.foo' in the example) should define _all_commands as a Python
7110  list of all valid commands.
7111 
7112  @param short_help A few words that describe the application.
7113  @param long_help Longer text, used in the 'help' command.
7114  @param module_name Name of the module (e.g. 'IMP.foo') that implements
7115  the commands.
7116  """
7117 
7118  def __init__(self, short_help, long_help, module_name):
7119  self.short_help = short_help
7120  self.long_help = long_help
7121  self.module_name = module_name
7122  self._all_commands = self.import_module()._all_commands
7123  self._progname = os.path.basename(sys.argv[0])
7124 
7125  def main(self):
7126  if len(sys.argv) <= 1:
7127  print self.short_help + " Use '%s help' for help." % self._progname
7128  else:
7129  command = sys.argv[1]
7130  if command in ('help', '--help', '-h'):
7131  if len(sys.argv) == 3:
7132  self.show_command_help(sys.argv[2])
7133  else:
7134  self.show_help()
7135  elif command == '--version':
7136  self.show_version()
7137  elif command in self._all_commands:
7138  self.do_command(command)
7139  else:
7140  self.unknown_command(command)
7141 
7142  def import_module(self, mod=None):
7143  modname = self.module_name
7144  if mod is not None:
7145  modname += "." + mod
7146  return __import__(modname, {}, {}, [''])
7147 
7148  def unknown_command(self, command):
7149  print "Unknown command: '%s'" % command
7150  print "Use '%s help' for help." % self._progname
7151  sys.exit(1)
7152 
7153  def _get_version(self):
7154  return self.import_module().get_module_version()
7155 
7156  def show_version(self):
7157  print self._progname + ' ' + self._get_version()
7158 
7159  def show_help(self):
7160  ver = self._get_version()
7161  print "%s, version %s." % (self._progname, ver)
7162  print self.long_help + """
7163 
7164 This program is part of IMP, the Integrative Modeling Platform,
7165 which is Copyright 2007-2014 IMP Inventors.
7166 For additional information about IMP, see <http://integrativemodeling.org>.
7167 
7168 Usage: %s <command> [options] [args]
7169 
7170 Commands:""" % self._progname
7171  commands = self._all_commands[:] + ['help']
7172  commands.sort()
7173  cmdlen = max([len(c) for c in commands])
7174  for c in commands:
7175  if c == 'help':
7176  doc = 'Get help on using %s.' % self._progname
7177  else:
7178  doc = self.import_module(c).__doc__ or "<no help>"
7179  c += ' ' * (cmdlen - len(c))
7180  print ' ' + c + ' ' + doc
7181  print """
7182 Use "%s help <command>" for detailed help on any command
7183  or "%s --version" to see the version number.""" % (self._progname,
7184  self._progname)
7185 
7186  def do_command(self, command):
7187  mod = self.import_module(command)
7188  sys.argv[0] = self._progname + ' ' + command
7189  del sys.argv[1]
7190  mod.main()
7191 
7192  def show_command_help(self, command):
7193  if command == 'help':
7194  self.show_help()
7195  elif command in self._all_commands or command == 'help':
7196  mod = self.import_module(command)
7197  sys.argv = [self._progname + ' ' + command, '--help']
7198  mod.main()
7199  else:
7200  self.unknown_command(command)
7201 
7202 
7203 import optparse
7204 import sys
7205 
7206 class OptionParser(optparse.OptionParser):
7207  """IMP-specific subclass of optparse.OptionParser.
7208  This adds options common to all IMP applications
7209  (see IMP::base::setup_from_argv()).
7210  """
7211 
7212  _use_boost_parser = True
7213 
7214  def __init__(self, *args, **kwargs):
7215  # Don't add --help or --version options (since the Boost
7216  # option parser handles those)
7217  kwargs['add_help_option'] = False
7218  kwargs['version'] = None
7219  # Handle old users of IMP.OptionParser that set imp_module
7220  if 'imp_module' in kwargs:
7221  del kwargs['imp_module']
7222  try:
7223  optparse.OptionParser.__init__(self, *args, **kwargs)
7224  except TypeError:
7225  if 'epilog' in kwargs:
7226  # Older optparse doesn't support the epilog keyword
7227  del kwargs['epilog']
7228  optparse.OptionParser.__init__(self, *args, **kwargs)
7229  else:
7230  raise
7231 
7232  # Don't complain if invalid options are encountered; pass them through
7233  # unmodified
7234  def _process_long_opt(self, rargs, values):
7235  if self._use_boost_parser:
7236  try:
7237  optparse.OptionParser._process_long_opt(self, rargs, values)
7238  except optparse.BadOptionError, err:
7239  if not hasattr(err, 'opt_str') \
7240  and err.msg.startswith('no such option:'):
7241  self.largs.append(err.msg[16:])
7242  else:
7243  self.largs.append(err.opt_str)
7244  else:
7245  optparse.OptionParser._process_long_opt(self, rargs, values)
7246  def _process_short_opts(self, rargs, values):
7247  if self._use_boost_parser:
7248  try:
7249  optparse.OptionParser._process_short_opts(self, rargs, values)
7250  except optparse.BadOptionError, err:
7251  self.largs.append(err.opt_str)
7252  else:
7253  optparse.OptionParser._process_short_opts(self, rargs, values)
7254 
7255  def _process_args(self, largs, rargs, values):
7256  if self._use_boost_parser:
7257  # If the special argument -- is present, preserve it (by default
7258  # optparse will remove it). Otherwise, the Boost option parser will
7259  # not treat positional arguments after -- correctly.
7260  try:
7261  dashdash = rargs.index('--')
7262  except ValueError:
7263  dashdash = len(rargs)
7264  saved_args = rargs[dashdash:]
7265  del rargs[dashdash:]
7266  optparse.OptionParser._process_args(self, largs, rargs, values)
7267  rargs.extend(saved_args)
7268  else:
7269  optparse.OptionParser._process_args(self, largs, rargs, values)
7270 
7271  def parse_args(self, num_positional=None):
7272  """Parse the command line and return options and positional arguments.
7273  This functions in the same way as the method in the base class
7274  optparse.OptionParser, except that it also processes options common
7275  to all IMP applications (these are not returned in opts, but can be
7276  obtained in the usual way, e.g. by calling
7277  IMP::base::get_string_flag()).
7278  @param[in] num_positional If a positive integer, exactly that
7279  many positional arguments must be specified on the
7280  command line; if a negative integer, that many or
7281  more must be given; if None, any number of positional
7282  arguments can be given.
7283  @returns opts, args
7284  """
7285  import IMP.base
7286  # First, parse the command line with optparse
7287  opts, args = optparse.OptionParser.parse_args(self)
7288  if not self._use_boost_parser:
7289  return opts, args
7290  orig_desc = self.description
7291  orig_usage = self.usage
7292  if self.usage:
7293  usage = self.usage.replace('%prog ', '')
7294  else:
7295  usage = ''
7296  if num_positional is None:
7297  # If num_positional was not specified, prevent the Boost parser
7298  # from complaining about the number of positional arguments
7299  numpos = -1
7300  args.append('dummy')
7301  else:
7302  numpos = num_positional
7303  try:
7304  self.usage = self.description = None
7305  # Pass the rest of the command line to the Boost parser; add the
7306  # optparse-generated help to that from Boost
7307  args = IMP.base.setup_from_argv([sys.argv[0]] + args,
7308  self.format_help() \
7309  + "\nOptions common to all IMP applications:",
7310  usage, numpos)
7311  finally:
7312  self.description = orig_desc
7313  self.usage = orig_usage
7314  if num_positional is None:
7315  args.pop()
7316  return opts, args
7317 
7318 
7319 def get_module_version():
7320  """get_module_version() -> std::string const"""
7321  return _IMP_kernel.get_module_version()
7322 
7323 def get_example_path(*args):
7324  """get_example_path(std::string fname) -> std::string"""
7325  return _IMP_kernel.get_example_path(*args)
7326 
7327 def get_data_path(*args):
7328  """get_data_path(std::string fname) -> std::string"""
7329  return _IMP_kernel.get_data_path(*args)
7330 import _version_check
7331 _version_check.check_version(get_module_version())
7332 
7333 # This file is compatible with both classic and new-style classes.
7334 
7335 
Restraints create_decomposition(const RestraintsTemp &rs)
Return the decomposition of a list of restraints.
IMP::kernel::PairModifier PairModifier
ParticleIndexes get_indexes(const ParticlesTemp &ps)
IMP::kernel::ModelObject ModelObject
base::Array< 3, base::WeakPointer< Particle >, Particle * > ParticleTriplet
IMP-specific subclass of optparse.OptionParser.
Ints get_index(const kernel::ParticlesTemp &particles, const Subset &subset, const Subsets &excluded)
An input/output exception.
Definition: exception.h:164
IMP::kernel::ScoreState ScoreState
ParticlesTemp get_output_particles(const ModelObjectsTemp &mos)
Return all the output particles for a given ModelObject.
ScoreStatesTemp get_dependent_score_states(ModelObject *p, const ModelObjectsTemp &all, const DependencyGraph &dg, const DependencyGraphVertexIndex &index)
IMP::kernel::PairScore PairScore
void show_restraint_hierarchy(ScoringFunctionAdaptor rs, std::ostream &out=std::cout)
Print the hierarchy of restraints.
IMP::kernel::DerivativeAccumulator DerivativeAccumulator
IMP::kernel::SingletonContainer SingletonContainer
IMP::kernel::EvaluationState EvaluationState
kernel::Restraints create_restraints(RMF::FileConstHandle fh, kernel::Model *m)
IMP::kernel::Constraint Constraint
IMP::kernel::TripletContainer TripletContainer
IMP::kernel::QuadContainer QuadContainer
void add_restraints(RMF::FileHandle fh, const kernel::Restraints &hs)
IMP::kernel::UnaryFunction UnaryFunction
ParticlesTemp get_particles(kernel::Model *m, const ParticleIndexes &ps)
Make CGAL functionality available to IMP.
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
Definition: exception.h:73
IMP::kernel::ScoringFunction ScoringFunction
base::Array< 4, base::WeakPointer< Particle >, Particle * > ParticleQuad
Low level functionality (logging, error handling, profiling, command line flags etc) that is used by ...
ContainersTemp get_output_containers(const ModelObjectsTemp &mos)
Return all the output particles for a given ModelObject.
IMP::kernel::SingletonPredicate SingletonPredicate
std::string get_data_path(std::string file_name)
Return the full path to installed data.
DependencyGraph get_pruned_dependency_graph(kernel::Model *m)
IMP::kernel::QuadScore QuadScore
base::Array< 2, base::WeakPointer< Particle >, Particle * > ParticlePair
An exception which is thrown when the kernel::Model has attributes with invalid values.
Definition: exception.h:179
IMP::kernel::Optimizer Optimizer
ParticlesTemp get_input_particles(const ModelObjectsTemp &mos)
Return all the input particles for a given ModelObject.
ParticlesTemp get_dependent_particles(ModelObject *p, const ModelObjectsTemp &all, const DependencyGraph &dg, const DependencyGraphVertexIndex &index)
IMP::kernel::TripletModifier TripletModifier
A class to change and restore log state.
Definition: SetLogState.h:31
IMP::kernel::QuadModifier QuadModifier
ScoringFunction * create_scoring_function(RestraintType *rs, double weight=1.0, double max=NO_MAX, std::string name=std::string())
DependencyGraph get_dependency_graph(kernel::Model *m)
IMP::kernel::Container Container
IMP::kernel::SingletonModifier SingletonModifier
RestraintsTemp get_dependent_restraints(ModelObject *p, const ModelObjectsTemp &all, const DependencyGraph &dg, const DependencyGraphVertexIndex &index)
void read_particles_from_buffer(const base::Vector< char > &buffer, const ParticlesTemp &particles, const FloatKeys &keys)
load found attributes into the particles
ContainersTemp get_input_containers(const ModelObjectsTemp &mos)
Return all the input particles for a given ModelObject.
IMP::kernel::SaveToConfigurationSetOptimizerState SaveToConfigurationSetOptimizerState
base::Vector< char > write_particles_to_buffer(const ParticlesTemp &particles, const FloatKeys &keys)
return a binary buffer with the data
IMP::kernel::Refiner Refiner
IMP::kernel::ScoreAccumulator ScoreAccumulator
IMP::kernel::Model Model
std::string show_graphviz(Graph g)
IMP::kernel::QuadPredicate QuadPredicate
IMP::kernel::TripletScore TripletScore
Common base class for heavy weight IMP objects.
Definition: Object.h:106
IMP::kernel::Sampler Sampler
def parse_args
Parse the command line and return options and positional arguments.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
Allow applications to easily implement commmands.
void show(Hierarchy h, std::ostream &out=std::cout)
Print out a molecular hierarchy.
IMP::kernel::Particle Particle
IMP::kernel::PairPredicate PairPredicate
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
IMP::kernel::ConfigurationSet ConfigurationSet
IMP::kernel::PairContainer PairContainer
base::Vector< VectorD< D > > get_vertices(const BoundingBoxD< D > &bb)
Return a list of the 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.
Definition: exception.h:81
IMP::kernel::Restraint Restraint
IMP::kernel::RestraintSet RestraintSet
void add_restraint(RMF::FileHandle fh, kernel::Restraint *hs)
ScoreStatesTemp get_required_score_states(ModelObject *p, const ModelObjectsTemp &all, const DependencyGraph &dg, const DependencyGraphVertexIndex &index)
IMP::kernel::Configuration Configuration
ScoreStatesTemp get_update_order(ScoreStatesTemp input)
An exception for an invalid value being passed to IMP.
Definition: exception.h:137