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