IMP logo
IMP Reference Guide  develop.50fdd7fa33,2025/08/31
The Integrative Modeling Platform
core/__init__.py
1 # This file was automatically generated by SWIG (https://www.swig.org).
2 # Version 4.3.1
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 # This wrapper is part of IMP,
9 # Copyright 2007-2025 IMP Inventors. All rights reserved.
10 
11 
12 
13 
14 from sys import version_info as _swig_python_version_info
15 import _IMP_core
16 
17 try:
18  import builtins as __builtin__
19 except ImportError:
20  import __builtin__
21 
22 def _swig_repr(self):
23  try:
24  strthis = "proxy of " + self.this.__repr__()
25  except __builtin__.Exception:
26  strthis = ""
27  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
28 
29 
30 def _swig_setattr_nondynamic_instance_variable(set):
31  def set_instance_attr(self, name, value):
32  if name == "this":
33  set(self, name, value)
34  elif name == "thisown":
35  self.this.own(value)
36  elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
37  set(self, name, value)
38  else:
39  raise AttributeError("You cannot add instance attributes to %s" % self)
40  return set_instance_attr
41 
42 
43 def _swig_setattr_nondynamic_class_variable(set):
44  def set_class_attr(cls, name, value):
45  if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
46  set(cls, name, value)
47  else:
48  raise AttributeError("You cannot add class attributes to %s" % cls)
49  return set_class_attr
50 
51 
52 def _swig_add_metaclass(metaclass):
53  """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
54  def wrapper(cls):
55  return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
56  return wrapper
57 
58 
59 class _SwigNonDynamicMeta(type):
60  """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
61  __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
62 
63 
64 import weakref
65 
66 class IMP_CORE_SwigPyIterator(object):
67  r"""Proxy of C++ swig::IMP_CORE_SwigPyIterator class."""
68 
69  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
70 
71  def __init__(self, *args, **kwargs):
72  raise AttributeError("No constructor defined - class is abstract")
73  __repr__ = _swig_repr
74  __swig_destroy__ = _IMP_core.delete_IMP_CORE_SwigPyIterator
75 
76  def value(self):
77  r"""value(IMP_CORE_SwigPyIterator self) -> PyObject *"""
78  return _IMP_core.IMP_CORE_SwigPyIterator_value(self)
79 
80  def incr(self, n=1):
81  r"""incr(IMP_CORE_SwigPyIterator self, size_t n=1) -> IMP_CORE_SwigPyIterator"""
82  return _IMP_core.IMP_CORE_SwigPyIterator_incr(self, n)
83 
84  def decr(self, n=1):
85  r"""decr(IMP_CORE_SwigPyIterator self, size_t n=1) -> IMP_CORE_SwigPyIterator"""
86  return _IMP_core.IMP_CORE_SwigPyIterator_decr(self, n)
87 
88  def distance(self, x):
89  r"""distance(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> ptrdiff_t"""
90  return _IMP_core.IMP_CORE_SwigPyIterator_distance(self, x)
91 
92  def equal(self, x):
93  r"""equal(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> bool"""
94  return _IMP_core.IMP_CORE_SwigPyIterator_equal(self, x)
95 
96  def copy(self):
97  r"""copy(IMP_CORE_SwigPyIterator self) -> IMP_CORE_SwigPyIterator"""
98  return _IMP_core.IMP_CORE_SwigPyIterator_copy(self)
99 
100  def next(self):
101  r"""next(IMP_CORE_SwigPyIterator self) -> PyObject *"""
102  return _IMP_core.IMP_CORE_SwigPyIterator_next(self)
103 
104  def __next__(self):
105  r"""__next__(IMP_CORE_SwigPyIterator self) -> PyObject *"""
106  return _IMP_core.IMP_CORE_SwigPyIterator___next__(self)
107 
108  def previous(self):
109  r"""previous(IMP_CORE_SwigPyIterator self) -> PyObject *"""
110  return _IMP_core.IMP_CORE_SwigPyIterator_previous(self)
111 
112  def advance(self, n):
113  r"""advance(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator"""
114  return _IMP_core.IMP_CORE_SwigPyIterator_advance(self, n)
115 
116  def __eq__(self, x):
117  r"""__eq__(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> bool"""
118  return _IMP_core.IMP_CORE_SwigPyIterator___eq__(self, x)
119 
120  def __ne__(self, x):
121  r"""__ne__(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> bool"""
122  return _IMP_core.IMP_CORE_SwigPyIterator___ne__(self, x)
123 
124  def __iadd__(self, n):
125  r"""__iadd__(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator"""
126  return _IMP_core.IMP_CORE_SwigPyIterator___iadd__(self, n)
127 
128  def __isub__(self, n):
129  r"""__isub__(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator"""
130  return _IMP_core.IMP_CORE_SwigPyIterator___isub__(self, n)
131 
132  def __add__(self, n):
133  r"""__add__(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator"""
134  return _IMP_core.IMP_CORE_SwigPyIterator___add__(self, n)
135 
136  def __sub__(self, *args):
137  r"""
138  __sub__(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator
139  __sub__(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> ptrdiff_t
140  """
141  return _IMP_core.IMP_CORE_SwigPyIterator___sub__(self, *args)
142  def __iter__(self):
143  return self
144 
145 # Register IMP_CORE_SwigPyIterator in _IMP_core:
146 _IMP_core.IMP_CORE_SwigPyIterator_swigregister(IMP_CORE_SwigPyIterator)
147 
148 _value_types=[]
149 _object_types=[]
150 _raii_types=[]
151 _plural_types=[]
152 
153 IMP_DEBUG = _IMP_core.IMP_DEBUG
154 
155 IMP_RELEASE = _IMP_core.IMP_RELEASE
156 
157 IMP_SILENT = _IMP_core.IMP_SILENT
158 
159 IMP_PROGRESS = _IMP_core.IMP_PROGRESS
160 
161 IMP_TERSE = _IMP_core.IMP_TERSE
162 
163 IMP_VERBOSE = _IMP_core.IMP_VERBOSE
164 
165 IMP_MEMORY = _IMP_core.IMP_MEMORY
166 
167 IMP_NONE = _IMP_core.IMP_NONE
168 
169 IMP_USAGE = _IMP_core.IMP_USAGE
170 
171 IMP_INTERNAL = _IMP_core.IMP_INTERNAL
172 
173 IMP_KERNEL_HAS_LOG4CXX = _IMP_core.IMP_KERNEL_HAS_LOG4CXX
174 
175 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_core.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
176 
177 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_core.IMP_COMPILER_HAS_DEBUG_VECTOR
178 
179 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_core.IMP_COMPILER_HAS_RANDOM_SHUFFLE
180 
181 IMP_COMPILER_HAS_THREE_WAY = _IMP_core.IMP_COMPILER_HAS_THREE_WAY
182 
183 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_core.IMP_KERNEL_HAS_BOOST_RANDOM
184 
185 IMP_KERNEL_HAS_NUMPY = _IMP_core.IMP_KERNEL_HAS_NUMPY
186 
187 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_core.IMP_KERNEL_HAS_BOOST_SYSTEM
188 
189 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_core.IMP_KERNEL_HAS_GPERFTOOLS
190 
191 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_core.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
192 
193 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_core.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
194 
195 IMPKERNEL_SHOW_WARNINGS = _IMP_core.IMPKERNEL_SHOW_WARNINGS
196 
197 
198 import sys
199 class _DirectorObjects:
200  """@internal Simple class to keep references to director objects
201  to prevent premature deletion."""
202  def __init__(self):
203  self._objects = []
204  def register(self, obj):
205  """Take a reference to a director object; will only work for
206  refcounted C++ classes"""
207  if hasattr(obj, 'get_ref_count'):
208  self._objects.append(obj)
209  def cleanup(self):
210  """Only drop our reference and allow cleanup by Python if no other
211  Python references exist (we hold 3 references: one in self._objects,
212  one in x, and one in the argument list for getrefcount) *and* no
213  other C++ references exist (the Python object always holds one)"""
214  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
215  or x.get_ref_count() > 1]
216 # Do in two steps so the references are kept until the end of the
217 # function (deleting references may trigger a fresh call to this method)
218  self._objects = objs
219  def get_object_count(self):
220  """Get number of director objects (useful for testing only)"""
221  return len(self._objects)
222 _director_objects = _DirectorObjects()
223 
224 class _ostream(object):
225  r"""Proxy of C++ std::ostream class."""
226 
227  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
228 
229  def __init__(self, *args, **kwargs):
230  raise AttributeError("No constructor defined")
231  __repr__ = _swig_repr
232 
233  def write(self, osa_buf):
234  r"""write(_ostream self, char const * osa_buf)"""
235  return _IMP_core._ostream_write(self, osa_buf)
236 
237 # Register _ostream in _IMP_core:
238 _IMP_core._ostream_swigregister(_ostream)
239 IMP_C_OPEN_BINARY = _IMP_core.IMP_C_OPEN_BINARY
240 
241 import IMP
242 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_CGAL_HAS_BOOST_FILESYSTEM
243 
244 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
245 
246 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_core.IMP_CGAL_HAS_BOOST_RANDOM
247 
248 IMP_CGAL_HAS_NUMPY = _IMP_core.IMP_CGAL_HAS_NUMPY
249 
250 IMPCGAL_SHOW_WARNINGS = _IMP_core.IMPCGAL_SHOW_WARNINGS
251 
252 import IMP.cgal
253 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_core.IMP_ALGEBRA_HAS_IMP_CGAL
254 
255 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
256 
257 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
258 
259 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_core.IMP_ALGEBRA_HAS_BOOST_RANDOM
260 
261 IMP_ALGEBRA_HAS_CGAL = _IMP_core.IMP_ALGEBRA_HAS_CGAL
262 
263 IMP_ALGEBRA_HAS_NUMPY = _IMP_core.IMP_ALGEBRA_HAS_NUMPY
264 
265 IMP_ALGEBRA_HAS_ANN = _IMP_core.IMP_ALGEBRA_HAS_ANN
266 
267 IMPALGEBRA_SHOW_WARNINGS = _IMP_core.IMPALGEBRA_SHOW_WARNINGS
268 
269 import IMP.algebra
270 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_core.IMP_DISPLAY_HAS_IMP_CGAL
271 
272 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
273 
274 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
275 
276 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_core.IMP_DISPLAY_HAS_BOOST_RANDOM
277 
278 IMP_DISPLAY_HAS_CGAL = _IMP_core.IMP_DISPLAY_HAS_CGAL
279 
280 IMP_DISPLAY_HAS_NUMPY = _IMP_core.IMP_DISPLAY_HAS_NUMPY
281 
282 IMPDISPLAY_SHOW_WARNINGS = _IMP_core.IMPDISPLAY_SHOW_WARNINGS
283 
284 import IMP.display
285 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_core.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
286 
287 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
288 
289 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
290 
291 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
292 
293 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_core.IMP_SCORE_FUNCTOR_HAS_CGAL
294 
295 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_core.IMP_SCORE_FUNCTOR_HAS_HDF5
296 
297 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_core.IMP_SCORE_FUNCTOR_HAS_NUMPY
298 
299 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_core.IMPSCOREFUNCTOR_SHOW_WARNINGS
300 
301 import IMP.score_functor
302 IMP_CORE_HAS_IMP_CGAL = _IMP_core.IMP_CORE_HAS_IMP_CGAL
303 
304 IMP_CORE_HAS_IMP_KERNEL = _IMP_core.IMP_CORE_HAS_IMP_KERNEL
305 
306 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_CORE_HAS_BOOST_FILESYSTEM
307 
308 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
309 
310 IMP_CORE_HAS_BOOST_RANDOM = _IMP_core.IMP_CORE_HAS_BOOST_RANDOM
311 
312 IMP_CORE_HAS_CGAL = _IMP_core.IMP_CORE_HAS_CGAL
313 
314 IMP_CORE_HAS_HDF5 = _IMP_core.IMP_CORE_HAS_HDF5
315 
316 IMP_CORE_HAS_NUMPY = _IMP_core.IMP_CORE_HAS_NUMPY
317 
318 IMPCORE_SHOW_WARNINGS = _IMP_core.IMPCORE_SHOW_WARNINGS
319 
320 class _OpenCubicSplineBase(IMP.UnaryFunction):
321  r"""Proxy of C++ IMP::score_functor::ScoreUnaryFunction< IMP::score_functor::OpenCubicSpline > class."""
322 
323  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
324  __repr__ = _swig_repr
325 
326  def __init__(self, *args):
327  r"""__init__(_OpenCubicSplineBase self, IMP::score_functor::OpenCubicSpline const & score, std::string name="UnaryFunction%1%") -> _OpenCubicSplineBase"""
328  _IMP_core._OpenCubicSplineBase_swiginit(self, _IMP_core.new__OpenCubicSplineBase(*args))
329 
330  def get_version_info(self):
331  r"""get_version_info(_OpenCubicSplineBase self) -> VersionInfo"""
332  return _IMP_core._OpenCubicSplineBase_get_version_info(self)
333  __swig_destroy__ = _IMP_core.delete__OpenCubicSplineBase
334 
335 # Register _OpenCubicSplineBase in _IMP_core:
336 _IMP_core._OpenCubicSplineBase_swigregister(_OpenCubicSplineBase)
337 
338 _object_types.append("MonteCarloMover")
339 
340 
341 def _object_cast_to_MonteCarloMover(o):
342  r"""_object_cast_to_MonteCarloMover(Object o) -> MonteCarloMover"""
343  return _IMP_core._object_cast_to_MonteCarloMover(o)
344 
345 MonteCarloMoverResults=list
346 _plural_types.append("MonteCarloMoverResults")
347 _value_types.append("MonteCarloMoverResult")
348 
349 
350 _object_types.append("AngleRestraint")
351 
352 
353 def _object_cast_to_AngleRestraint(o):
354  r"""_object_cast_to_AngleRestraint(Object o) -> AngleRestraint"""
355  return _IMP_core._object_cast_to_AngleRestraint(o)
356 
357 _object_types.append("AngleTripletScore")
358 
359 
360 def _object_cast_to_AngleTripletScore(o):
361  r"""_object_cast_to_AngleTripletScore(Object o) -> AngleTripletScore"""
362  return _IMP_core._object_cast_to_AngleTripletScore(o)
363 
364 _object_types.append("AttributeSingletonScore")
365 
366 
367 def _object_cast_to_AttributeSingletonScore(o):
368  r"""_object_cast_to_AttributeSingletonScore(Object o) -> AttributeSingletonScore"""
369  return _IMP_core._object_cast_to_AttributeSingletonScore(o)
370 
371 _object_types.append("BallMover")
372 
373 
374 def _object_cast_to_BallMover(o):
375  r"""_object_cast_to_BallMover(Object o) -> BallMover"""
376  return _IMP_core._object_cast_to_BallMover(o)
377 
378 _object_types.append("SerialMover")
379 
380 
381 def _object_cast_to_SerialMover(o):
382  r"""_object_cast_to_SerialMover(Object o) -> SerialMover"""
383  return _IMP_core._object_cast_to_SerialMover(o)
384 
385 _object_types.append("SubsetMover")
386 
387 
388 def _object_cast_to_SubsetMover(o):
389  r"""_object_cast_to_SubsetMover(Object o) -> SubsetMover"""
390  return _IMP_core._object_cast_to_SubsetMover(o)
391 
392 _object_types.append("DirectionMover")
393 
394 
395 def _object_cast_to_DirectionMover(o):
396  r"""_object_cast_to_DirectionMover(Object o) -> DirectionMover"""
397  return _IMP_core._object_cast_to_DirectionMover(o)
398 
399 _object_types.append("SurfaceMover")
400 
401 
402 def _object_cast_to_SurfaceMover(o):
403  r"""_object_cast_to_SurfaceMover(Object o) -> SurfaceMover"""
404  return _IMP_core._object_cast_to_SurfaceMover(o)
405 
406 _object_types.append("BoundingBox3DSingletonScore")
407 
408 
409 def _object_cast_to_BoundingBox3DSingletonScore(o):
410  r"""_object_cast_to_BoundingBox3DSingletonScore(Object o) -> BoundingBox3DSingletonScore"""
411  return _IMP_core._object_cast_to_BoundingBox3DSingletonScore(o)
412 
413 _object_types.append("BoundingSphere3DSingletonScore")
414 
415 
416 def _object_cast_to_BoundingSphere3DSingletonScore(o):
417  r"""_object_cast_to_BoundingSphere3DSingletonScore(Object o) -> BoundingSphere3DSingletonScore"""
418  return _IMP_core._object_cast_to_BoundingSphere3DSingletonScore(o)
419 
420 _object_types.append("BoxSweepClosePairsFinder")
421 
422 
423 def _object_cast_to_BoxSweepClosePairsFinder(o):
424  r"""_object_cast_to_BoxSweepClosePairsFinder(Object o) -> BoxSweepClosePairsFinder"""
425  return _IMP_core._object_cast_to_BoxSweepClosePairsFinder(o)
426 
427 _object_types.append("NearestNeighborsClosePairsFinder")
428 
429 
430 def _object_cast_to_NearestNeighborsClosePairsFinder(o):
431  r"""_object_cast_to_NearestNeighborsClosePairsFinder(Object o) -> NearestNeighborsClosePairsFinder"""
432  return _IMP_core._object_cast_to_NearestNeighborsClosePairsFinder(o)
433 
434 _object_types.append("CentroidOfRefined")
435 
436 
437 def _object_cast_to_CentroidOfRefined(o):
438  r"""_object_cast_to_CentroidOfRefined(Object o) -> CentroidOfRefined"""
439  return _IMP_core._object_cast_to_CentroidOfRefined(o)
440 
441 _object_types.append("ChecksScoreState")
442 
443 
444 def _object_cast_to_ChecksScoreState(o):
445  r"""_object_cast_to_ChecksScoreState(Object o) -> ChecksScoreState"""
446  return _IMP_core._object_cast_to_ChecksScoreState(o)
447 
448 _object_types.append("ChildrenRefiner")
449 
450 
451 def _object_cast_to_ChildrenRefiner(o):
452  r"""_object_cast_to_ChildrenRefiner(Object o) -> ChildrenRefiner"""
453  return _IMP_core._object_cast_to_ChildrenRefiner(o)
454 
455 _object_types.append("ClosePairsFinder")
456 
457 
458 def _object_cast_to_ClosePairsFinder(o):
459  r"""_object_cast_to_ClosePairsFinder(Object o) -> ClosePairsFinder"""
460  return _IMP_core._object_cast_to_ClosePairsFinder(o)
461 
462 _object_types.append("ClosePairsPairScore")
463 
464 
465 def _object_cast_to_ClosePairsPairScore(o):
466  r"""_object_cast_to_ClosePairsPairScore(Object o) -> ClosePairsPairScore"""
467  return _IMP_core._object_cast_to_ClosePairsPairScore(o)
468 
469 _object_types.append("ClosedCubicSpline")
470 
471 
472 def _object_cast_to_ClosedCubicSpline(o):
473  r"""_object_cast_to_ClosedCubicSpline(Object o) -> ClosedCubicSpline"""
474  return _IMP_core._object_cast_to_ClosedCubicSpline(o)
475 
476 _object_types.append("ConjugateGradients")
477 
478 
479 def _object_cast_to_ConjugateGradients(o):
480  r"""_object_cast_to_ConjugateGradients(Object o) -> ConjugateGradients"""
481  return _IMP_core._object_cast_to_ConjugateGradients(o)
482 
483 _object_types.append("ConnectivityRestraint")
484 
485 
486 def _object_cast_to_ConnectivityRestraint(o):
487  r"""_object_cast_to_ConnectivityRestraint(Object o) -> ConnectivityRestraint"""
488  return _IMP_core._object_cast_to_ConnectivityRestraint(o)
489 
490 _object_types.append("ConstantRestraint")
491 
492 
493 def _object_cast_to_ConstantRestraint(o):
494  r"""_object_cast_to_ConstantRestraint(Object o) -> ConstantRestraint"""
495  return _IMP_core._object_cast_to_ConstantRestraint(o)
496 
497 _object_types.append("Cosine")
498 
499 
500 def _object_cast_to_Cosine(o):
501  r"""_object_cast_to_Cosine(Object o) -> Cosine"""
502  return _IMP_core._object_cast_to_Cosine(o)
503 
504 _object_types.append("CoverRefined")
505 
506 
507 def _object_cast_to_CoverRefined(o):
508  r"""_object_cast_to_CoverRefined(Object o) -> CoverRefined"""
509  return _IMP_core._object_cast_to_CoverRefined(o)
510 
511 _object_types.append("DerivativesFromRefined")
512 
513 
514 def _object_cast_to_DerivativesFromRefined(o):
515  r"""_object_cast_to_DerivativesFromRefined(Object o) -> DerivativesFromRefined"""
516  return _IMP_core._object_cast_to_DerivativesFromRefined(o)
517 
518 _object_types.append("DerivativesToRefined")
519 
520 
521 def _object_cast_to_DerivativesToRefined(o):
522  r"""_object_cast_to_DerivativesToRefined(Object o) -> DerivativesToRefined"""
523  return _IMP_core._object_cast_to_DerivativesToRefined(o)
524 
525 _object_types.append("WeightedDerivativesToRefined")
526 
527 
528 def _object_cast_to_WeightedDerivativesToRefined(o):
529  r"""_object_cast_to_WeightedDerivativesToRefined(Object o) -> IMP::core::WeightedDerivativesToRefined *"""
530  return _IMP_core._object_cast_to_WeightedDerivativesToRefined(o)
531 
532 _object_types.append("DiameterRestraint")
533 
534 
535 def _object_cast_to_DiameterRestraint(o):
536  r"""_object_cast_to_DiameterRestraint(Object o) -> DiameterRestraint"""
537  return _IMP_core._object_cast_to_DiameterRestraint(o)
538 
539 _object_types.append("DihedralRestraint")
540 
541 
542 def _object_cast_to_DihedralRestraint(o):
543  r"""_object_cast_to_DihedralRestraint(Object o) -> DihedralRestraint"""
544  return _IMP_core._object_cast_to_DihedralRestraint(o)
545 
546 _object_types.append("DistanceRestraint")
547 
548 
549 def _object_cast_to_DistanceRestraint(o):
550  r"""_object_cast_to_DistanceRestraint(Object o) -> DistanceRestraint"""
551  return _IMP_core._object_cast_to_DistanceRestraint(o)
552 
553 _object_types.append("DistanceToSingletonScore")
554 
555 
556 def _object_cast_to_DistanceToSingletonScore(o):
557  r"""_object_cast_to_DistanceToSingletonScore(Object o) -> DistanceToSingletonScore"""
558  return _IMP_core._object_cast_to_DistanceToSingletonScore(o)
559 
560 _object_types.append("ExcludedVolumeRestraint")
561 
562 
563 def _object_cast_to_ExcludedVolumeRestraint(o):
564  r"""_object_cast_to_ExcludedVolumeRestraint(Object o) -> ExcludedVolumeRestraint"""
565  return _IMP_core._object_cast_to_ExcludedVolumeRestraint(o)
566 
567 _object_types.append("FixedRefiner")
568 
569 
570 def _object_cast_to_FixedRefiner(o):
571  r"""_object_cast_to_FixedRefiner(Object o) -> FixedRefiner"""
572  return _IMP_core._object_cast_to_FixedRefiner(o)
573 
574 _object_types.append("GridClosePairsFinder")
575 
576 
577 def _object_cast_to_GridClosePairsFinder(o):
578  r"""_object_cast_to_GridClosePairsFinder(Object o) -> GridClosePairsFinder"""
579  return _IMP_core._object_cast_to_GridClosePairsFinder(o)
580 
581 _object_types.append("Harmonic")
582 
583 
584 def _object_cast_to_Harmonic(o):
585  r"""_object_cast_to_Harmonic(Object o) -> Harmonic"""
586  return _IMP_core._object_cast_to_Harmonic(o)
587 
588 _object_types.append("HarmonicWell")
589 
590 
591 def _object_cast_to_HarmonicWell(o):
592  r"""_object_cast_to_HarmonicWell(Object o) -> HarmonicWell"""
593  return _IMP_core._object_cast_to_HarmonicWell(o)
594 
595 _object_types.append("HarmonicLowerBound")
596 
597 
598 def _object_cast_to_HarmonicLowerBound(o):
599  r"""_object_cast_to_HarmonicLowerBound(Object o) -> HarmonicLowerBound"""
600  return _IMP_core._object_cast_to_HarmonicLowerBound(o)
601 
602 _object_types.append("HarmonicUpperBound")
603 
604 
605 def _object_cast_to_HarmonicUpperBound(o):
606  r"""_object_cast_to_HarmonicUpperBound(Object o) -> HarmonicUpperBound"""
607  return _IMP_core._object_cast_to_HarmonicUpperBound(o)
608 
609 _object_types.append("HarmonicSphereDistancePairScore")
610 
611 
612 def _object_cast_to_HarmonicSphereDistancePairScore(o):
613  r"""_object_cast_to_HarmonicSphereDistancePairScore(Object o) -> HarmonicSphereDistancePairScore"""
614  return _IMP_core._object_cast_to_HarmonicSphereDistancePairScore(o)
615 
616 _object_types.append("HarmonicUpperBoundSphereDistancePairScore")
617 
618 
619 def _object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o):
620  r"""_object_cast_to_HarmonicUpperBoundSphereDistancePairScore(Object o) -> HarmonicUpperBoundSphereDistancePairScore"""
621  return _IMP_core._object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o)
622 
623 _object_types.append("HarmonicUpperBoundSphereDiameterPairScore")
624 
625 
626 def _object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o):
627  r"""_object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(Object o) -> HarmonicUpperBoundSphereDiameterPairScore"""
628  return _IMP_core._object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o)
629 
630 _object_types.append("HarmonicSurfaceDistancePairScore")
631 
632 
633 def _object_cast_to_HarmonicSurfaceDistancePairScore(o):
634  r"""_object_cast_to_HarmonicSurfaceDistancePairScore(Object o) -> HarmonicSurfaceDistancePairScore"""
635  return _IMP_core._object_cast_to_HarmonicSurfaceDistancePairScore(o)
636 
637 _object_types.append("HarmonicSurfaceHeightPairScore")
638 
639 
640 def _object_cast_to_HarmonicSurfaceHeightPairScore(o):
641  r"""_object_cast_to_HarmonicSurfaceHeightPairScore(Object o) -> HarmonicSurfaceHeightPairScore"""
642  return _IMP_core._object_cast_to_HarmonicSurfaceHeightPairScore(o)
643 
644 _object_types.append("HarmonicSurfaceDepthPairScore")
645 
646 
647 def _object_cast_to_HarmonicSurfaceDepthPairScore(o):
648  r"""_object_cast_to_HarmonicSurfaceDepthPairScore(Object o) -> HarmonicSurfaceDepthPairScore"""
649  return _IMP_core._object_cast_to_HarmonicSurfaceDepthPairScore(o)
650 
651 _object_types.append("WeightedSum")
652 
653 
654 def _object_cast_to_WeightedSum(o):
655  r"""_object_cast_to_WeightedSum(Object o) -> WeightedSum"""
656  return _IMP_core._object_cast_to_WeightedSum(o)
657 
658 _object_types.append("WeightedSumOfExponential")
659 
660 
661 def _object_cast_to_WeightedSumOfExponential(o):
662  r"""_object_cast_to_WeightedSumOfExponential(Object o) -> WeightedSumOfExponential"""
663  return _IMP_core._object_cast_to_WeightedSumOfExponential(o)
664 
665 _object_types.append("KClosePairsPairScore")
666 
667 
668 def _object_cast_to_KClosePairsPairScore(o):
669  r"""_object_cast_to_KClosePairsPairScore(Object o) -> KClosePairsPairScore"""
670  return _IMP_core._object_cast_to_KClosePairsPairScore(o)
671 
672 _object_types.append("LeavesRefiner")
673 
674 
675 def _object_cast_to_LeavesRefiner(o):
676  r"""_object_cast_to_LeavesRefiner(Object o) -> LeavesRefiner"""
677  return _IMP_core._object_cast_to_LeavesRefiner(o)
678 
679 _object_types.append("Linear")
680 
681 
682 def _object_cast_to_Linear(o):
683  r"""_object_cast_to_Linear(Object o) -> Linear"""
684  return _IMP_core._object_cast_to_Linear(o)
685 
686 _object_types.append("LogNormalMover")
687 
688 
689 def _object_cast_to_LogNormalMover(o):
690  r"""_object_cast_to_LogNormalMover(Object o) -> LogNormalMover"""
691  return _IMP_core._object_cast_to_LogNormalMover(o)
692 
693 _object_types.append("MCCGSampler")
694 
695 
696 def _object_cast_to_MCCGSampler(o):
697  r"""_object_cast_to_MCCGSampler(Object o) -> MCCGSampler"""
698  return _IMP_core._object_cast_to_MCCGSampler(o)
699 
700 _object_types.append("MonteCarlo")
701 
702 
703 def _object_cast_to_MonteCarlo(o):
704  r"""_object_cast_to_MonteCarlo(Object o) -> MonteCarlo"""
705  return _IMP_core._object_cast_to_MonteCarlo(o)
706 
707 _object_types.append("MonteCarloWithLocalOptimization")
708 
709 
710 def _object_cast_to_MonteCarloWithLocalOptimization(o):
711  r"""_object_cast_to_MonteCarloWithLocalOptimization(Object o) -> MonteCarloWithLocalOptimization"""
712  return _IMP_core._object_cast_to_MonteCarloWithLocalOptimization(o)
713 
714 _object_types.append("MonteCarloWithBasinHopping")
715 
716 
717 def _object_cast_to_MonteCarloWithBasinHopping(o):
718  r"""_object_cast_to_MonteCarloWithBasinHopping(Object o) -> MonteCarloWithBasinHopping"""
719  return _IMP_core._object_cast_to_MonteCarloWithBasinHopping(o)
720 
721 _object_types.append("MSConnectivityRestraint")
722 
723 
724 def _object_cast_to_MSConnectivityRestraint(o):
725  r"""_object_cast_to_MSConnectivityRestraint(Object o) -> MSConnectivityRestraint"""
726  return _IMP_core._object_cast_to_MSConnectivityRestraint(o)
727 
728 _object_types.append("NeighborsTable")
729 
730 
731 def _object_cast_to_NeighborsTable(o):
732  r"""_object_cast_to_NeighborsTable(Object o) -> NeighborsTable"""
733  return _IMP_core._object_cast_to_NeighborsTable(o)
734 
735 _object_types.append("NormalMover")
736 
737 
738 def _object_cast_to_NormalMover(o):
739  r"""_object_cast_to_NormalMover(Object o) -> NormalMover"""
740  return _IMP_core._object_cast_to_NormalMover(o)
741 
742 _object_types.append("NormalizedSphereDistancePairScore")
743 
744 
745 def _object_cast_to_NormalizedSphereDistancePairScore(o):
746  r"""_object_cast_to_NormalizedSphereDistancePairScore(Object o) -> NormalizedSphereDistancePairScore"""
747  return _IMP_core._object_cast_to_NormalizedSphereDistancePairScore(o)
748 
749 _object_types.append("OpenCubicSpline")
750 
751 
752 def _object_cast_to_OpenCubicSpline(o):
753  r"""_object_cast_to_OpenCubicSpline(Object o) -> OpenCubicSpline"""
754  return _IMP_core._object_cast_to_OpenCubicSpline(o)
755 
756 _object_types.append("PairConstraint")
757 
758 
759 def _object_cast_to_PairConstraint(o):
760  r"""_object_cast_to_PairConstraint(Object o) -> PairConstraint"""
761  return _IMP_core._object_cast_to_PairConstraint(o)
762 
763 _object_types.append("PairRestraint")
764 
765 
766 def _object_cast_to_PairRestraint(o):
767  r"""_object_cast_to_PairRestraint(Object o) -> PairRestraint"""
768  return _IMP_core._object_cast_to_PairRestraint(o)
769 
770 _object_types.append("QuadConstraint")
771 
772 
773 def _object_cast_to_QuadConstraint(o):
774  r"""_object_cast_to_QuadConstraint(Object o) -> QuadConstraint"""
775  return _IMP_core._object_cast_to_QuadConstraint(o)
776 
777 _object_types.append("QuadRestraint")
778 
779 
780 def _object_cast_to_QuadRestraint(o):
781  r"""_object_cast_to_QuadRestraint(Object o) -> QuadRestraint"""
782  return _IMP_core._object_cast_to_QuadRestraint(o)
783 
784 _object_types.append("QuadraticClosePairsFinder")
785 
786 
787 def _object_cast_to_QuadraticClosePairsFinder(o):
788  r"""_object_cast_to_QuadraticClosePairsFinder(Object o) -> QuadraticClosePairsFinder"""
789  return _IMP_core._object_cast_to_QuadraticClosePairsFinder(o)
790 
791 _object_types.append("RefinedPairsPairScore")
792 
793 
794 def _object_cast_to_RefinedPairsPairScore(o):
795  r"""_object_cast_to_RefinedPairsPairScore(Object o) -> RefinedPairsPairScore"""
796  return _IMP_core._object_cast_to_RefinedPairsPairScore(o)
797 
798 _object_types.append("RestraintsScoringFunction")
799 
800 
801 def _object_cast_to_RestraintsScoringFunction(o):
802  r"""_object_cast_to_RestraintsScoringFunction(Object o) -> RestraintsScoringFunction"""
803  return _IMP_core._object_cast_to_RestraintsScoringFunction(o)
804 
805 _object_types.append("RigidBodyDistancePairScore")
806 
807 
808 def _object_cast_to_RigidBodyDistancePairScore(o):
809  r"""_object_cast_to_RigidBodyDistancePairScore(Object o) -> RigidBodyDistancePairScore"""
810  return _IMP_core._object_cast_to_RigidBodyDistancePairScore(o)
811 
812 _object_types.append("RigidBodyAnglePairScore")
813 
814 
815 def _object_cast_to_RigidBodyAnglePairScore(o):
816  r"""_object_cast_to_RigidBodyAnglePairScore(Object o) -> RigidBodyAnglePairScore"""
817  return _IMP_core._object_cast_to_RigidBodyAnglePairScore(o)
818 
819 _object_types.append("RigidBodyMover")
820 
821 
822 def _object_cast_to_RigidBodyMover(o):
823  r"""_object_cast_to_RigidBodyMover(Object o) -> RigidBodyMover"""
824  return _IMP_core._object_cast_to_RigidBodyMover(o)
825 
826 _object_types.append("RigidBodyTunneler")
827 
828 
829 def _object_cast_to_RigidBodyTunneler(o):
830  r"""_object_cast_to_RigidBodyTunneler(Object o) -> RigidBodyTunneler"""
831  return _IMP_core._object_cast_to_RigidBodyTunneler(o)
832 
833 _object_types.append("RigidBodyUmbrella")
834 
835 
836 def _object_cast_to_RigidBodyUmbrella(o):
837  r"""_object_cast_to_RigidBodyUmbrella(Object o) -> RigidBodyUmbrella"""
838  return _IMP_core._object_cast_to_RigidBodyUmbrella(o)
839 
840 _object_types.append("RigidClosePairsFinder")
841 
842 
843 def _object_cast_to_RigidClosePairsFinder(o):
844  r"""_object_cast_to_RigidClosePairsFinder(Object o) -> RigidClosePairsFinder"""
845  return _IMP_core._object_cast_to_RigidClosePairsFinder(o)
846 
847 _object_types.append("RigidMembersRefiner")
848 
849 
850 def _object_cast_to_RigidMembersRefiner(o):
851  r"""_object_cast_to_RigidMembersRefiner(Object o) -> RigidMembersRefiner"""
852  return _IMP_core._object_cast_to_RigidMembersRefiner(o)
853 
854 _object_types.append("SingletonConstraint")
855 
856 
857 def _object_cast_to_SingletonConstraint(o):
858  r"""_object_cast_to_SingletonConstraint(Object o) -> SingletonConstraint"""
859  return _IMP_core._object_cast_to_SingletonConstraint(o)
860 
861 _object_types.append("SingletonRestraint")
862 
863 
864 def _object_cast_to_SingletonRestraint(o):
865  r"""_object_cast_to_SingletonRestraint(Object o) -> SingletonRestraint"""
866  return _IMP_core._object_cast_to_SingletonRestraint(o)
867 
868 _object_types.append("SoftSpherePairScore")
869 
870 
871 def _object_cast_to_SoftSpherePairScore(o):
872  r"""_object_cast_to_SoftSpherePairScore(Object o) -> SoftSpherePairScore"""
873  return _IMP_core._object_cast_to_SoftSpherePairScore(o)
874 
875 _object_types.append("_SphereDistancePairScore")
876 
877 
878 def _object_cast_to__SphereDistancePairScore(o):
879  r"""_object_cast_to__SphereDistancePairScore(Object o) -> _SphereDistancePairScore"""
880  return _IMP_core._object_cast_to__SphereDistancePairScore(o)
881 
882 _object_types.append("SphereDistanceToSingletonScore")
883 
884 
885 def _object_cast_to_SphereDistanceToSingletonScore(o):
886  r"""_object_cast_to_SphereDistanceToSingletonScore(Object o) -> SphereDistanceToSingletonScore"""
887  return _IMP_core._object_cast_to_SphereDistanceToSingletonScore(o)
888 
889 _object_types.append("SoftSubSurfacePairScore")
890 
891 
892 def _object_cast_to_SoftSubSurfacePairScore(o):
893  r"""_object_cast_to_SoftSubSurfacePairScore(Object o) -> SoftSubSurfacePairScore"""
894  return _IMP_core._object_cast_to_SoftSubSurfacePairScore(o)
895 
896 _object_types.append("SoftSuperSurfacePairScore")
897 
898 
899 def _object_cast_to_SoftSuperSurfacePairScore(o):
900  r"""_object_cast_to_SoftSuperSurfacePairScore(Object o) -> SoftSuperSurfacePairScore"""
901  return _IMP_core._object_cast_to_SoftSuperSurfacePairScore(o)
902 
903 _object_types.append("SurfaceDistancePairScore")
904 
905 
906 def _object_cast_to_SurfaceDistancePairScore(o):
907  r"""_object_cast_to_SurfaceDistancePairScore(Object o) -> SurfaceDistancePairScore"""
908  return _IMP_core._object_cast_to_SurfaceDistancePairScore(o)
909 
910 _object_types.append("SurfaceHeightPairScore")
911 
912 
913 def _object_cast_to_SurfaceHeightPairScore(o):
914  r"""_object_cast_to_SurfaceHeightPairScore(Object o) -> SurfaceHeightPairScore"""
915  return _IMP_core._object_cast_to_SurfaceHeightPairScore(o)
916 
917 _object_types.append("SurfaceDepthPairScore")
918 
919 
920 def _object_cast_to_SurfaceDepthPairScore(o):
921  r"""_object_cast_to_SurfaceDepthPairScore(Object o) -> SurfaceDepthPairScore"""
922  return _IMP_core._object_cast_to_SurfaceDepthPairScore(o)
923 
924 _object_types.append("SurfaceTetheredChain")
925 
926 
927 def _object_cast_to_SurfaceTetheredChain(o):
928  r"""_object_cast_to_SurfaceTetheredChain(Object o) -> SurfaceTetheredChain"""
929  return _IMP_core._object_cast_to_SurfaceTetheredChain(o)
930 
931 _object_types.append("SurfaceSymmetryConstraint")
932 
933 
934 def _object_cast_to_SurfaceSymmetryConstraint(o):
935  r"""_object_cast_to_SurfaceSymmetryConstraint(Object o) -> SurfaceSymmetryConstraint"""
936  return _IMP_core._object_cast_to_SurfaceSymmetryConstraint(o)
937 
938 _object_types.append("SteepestDescent")
939 
940 
941 def _object_cast_to_SteepestDescent(o):
942  r"""_object_cast_to_SteepestDescent(Object o) -> SteepestDescent"""
943  return _IMP_core._object_cast_to_SteepestDescent(o)
944 
945 _object_types.append("TableRefiner")
946 
947 
948 def _object_cast_to_TableRefiner(o):
949  r"""_object_cast_to_TableRefiner(Object o) -> TableRefiner"""
950  return _IMP_core._object_cast_to_TableRefiner(o)
951 
952 _object_types.append("Transform")
953 
954 
955 def _object_cast_to_Transform(o):
956  r"""_object_cast_to_Transform(Object o) -> Transform"""
957  return _IMP_core._object_cast_to_Transform(o)
958 
959 _object_types.append("TransformationAndReflectionSymmetry")
960 
961 
962 def _object_cast_to_TransformationAndReflectionSymmetry(o):
963  r"""_object_cast_to_TransformationAndReflectionSymmetry(Object o) -> TransformationAndReflectionSymmetry"""
964  return _IMP_core._object_cast_to_TransformationAndReflectionSymmetry(o)
965 
966 _object_types.append("TransformationSymmetry")
967 
968 
969 def _object_cast_to_TransformationSymmetry(o):
970  r"""_object_cast_to_TransformationSymmetry(Object o) -> TransformationSymmetry"""
971  return _IMP_core._object_cast_to_TransformationSymmetry(o)
972 
973 _object_types.append("TransformationSymmetryMover")
974 
975 
976 def _object_cast_to_TransformationSymmetryMover(o):
977  r"""_object_cast_to_TransformationSymmetryMover(Object o) -> TransformationSymmetryMover"""
978  return _IMP_core._object_cast_to_TransformationSymmetryMover(o)
979 
980 _object_types.append("TransformedDistancePairScore")
981 
982 
983 def _object_cast_to_TransformedDistancePairScore(o):
984  r"""_object_cast_to_TransformedDistancePairScore(Object o) -> TransformedDistancePairScore"""
985  return _IMP_core._object_cast_to_TransformedDistancePairScore(o)
986 
987 _object_types.append("TripletConstraint")
988 
989 
990 def _object_cast_to_TripletConstraint(o):
991  r"""_object_cast_to_TripletConstraint(Object o) -> TripletConstraint"""
992  return _IMP_core._object_cast_to_TripletConstraint(o)
993 
994 _object_types.append("TripletRestraint")
995 
996 
997 def _object_cast_to_TripletRestraint(o):
998  r"""_object_cast_to_TripletRestraint(Object o) -> TripletRestraint"""
999  return _IMP_core._object_cast_to_TripletRestraint(o)
1000 
1001 _object_types.append("TypedPairScore")
1002 
1003 
1004 def _object_cast_to_TypedPairScore(o):
1005  r"""_object_cast_to_TypedPairScore(Object o) -> TypedPairScore"""
1006  return _IMP_core._object_cast_to_TypedPairScore(o)
1007 
1008 _object_types.append("VolumeRestraint")
1009 
1010 
1011 def _object_cast_to_VolumeRestraint(o):
1012  r"""_object_cast_to_VolumeRestraint(Object o) -> VolumeRestraint"""
1013  return _IMP_core._object_cast_to_VolumeRestraint(o)
1014 
1015 _object_types.append("WeightedSphereDistancePairScore")
1016 
1017 
1018 def _object_cast_to_WeightedSphereDistancePairScore(o):
1019  r"""_object_cast_to_WeightedSphereDistancePairScore(Object o) -> WeightedSphereDistancePairScore"""
1020  return _IMP_core._object_cast_to_WeightedSphereDistancePairScore(o)
1021 
1022 _object_types.append("MoveStatisticsScoreState")
1023 
1024 
1025 def _object_cast_to_MoveStatisticsScoreState(o):
1026  r"""_object_cast_to_MoveStatisticsScoreState(Object o) -> MoveStatisticsScoreState"""
1027  return _IMP_core._object_cast_to_MoveStatisticsScoreState(o)
1028 
1029 _object_types.append("MinimumRestraint")
1030 
1031 
1032 def _object_cast_to_MinimumRestraint(o):
1033  r"""_object_cast_to_MinimumRestraint(Object o) -> MinimumRestraint"""
1034  return _IMP_core._object_cast_to_MinimumRestraint(o)
1035 
1036 _object_types.append("WriteRestraintScoresOptimizerState")
1037 
1038 
1039 def _object_cast_to_WriteRestraintScoresOptimizerState(o):
1040  r"""_object_cast_to_WriteRestraintScoresOptimizerState(Object o) -> WriteRestraintScoresOptimizerState"""
1041  return _IMP_core._object_cast_to_WriteRestraintScoresOptimizerState(o)
1042 
1043 _object_types.append("LateralSurfaceConstraint")
1044 
1045 
1046 def _object_cast_to_LateralSurfaceConstraint(o):
1047  r"""_object_cast_to_LateralSurfaceConstraint(Object o) -> LateralSurfaceConstraint"""
1048  return _IMP_core._object_cast_to_LateralSurfaceConstraint(o)
1049 
1050 _object_types.append("ConstantSingletonPredicate")
1051 
1052 
1053 def _object_cast_to_ConstantSingletonPredicate(o):
1054  r"""_object_cast_to_ConstantSingletonPredicate(Object o) -> ConstantSingletonPredicate"""
1055  return _IMP_core._object_cast_to_ConstantSingletonPredicate(o)
1056 
1057 _object_types.append("ConstantPairPredicate")
1058 
1059 
1060 def _object_cast_to_ConstantPairPredicate(o):
1061  r"""_object_cast_to_ConstantPairPredicate(Object o) -> ConstantPairPredicate"""
1062  return _IMP_core._object_cast_to_ConstantPairPredicate(o)
1063 
1064 _object_types.append("ConstantTripletPredicate")
1065 
1066 
1067 def _object_cast_to_ConstantTripletPredicate(o):
1068  r"""_object_cast_to_ConstantTripletPredicate(Object o) -> ConstantTripletPredicate"""
1069  return _IMP_core._object_cast_to_ConstantTripletPredicate(o)
1070 
1071 _object_types.append("ConstantQuadPredicate")
1072 
1073 
1074 def _object_cast_to_ConstantQuadPredicate(o):
1075  r"""_object_cast_to_ConstantQuadPredicate(Object o) -> ConstantQuadPredicate"""
1076  return _IMP_core._object_cast_to_ConstantQuadPredicate(o)
1077 
1078 _object_types.append("CoinFlipSingletonPredicate")
1079 
1080 
1081 def _object_cast_to_CoinFlipSingletonPredicate(o):
1082  r"""_object_cast_to_CoinFlipSingletonPredicate(Object o) -> CoinFlipSingletonPredicate"""
1083  return _IMP_core._object_cast_to_CoinFlipSingletonPredicate(o)
1084 
1085 _object_types.append("CoinFlipPairPredicate")
1086 
1087 
1088 def _object_cast_to_CoinFlipPairPredicate(o):
1089  r"""_object_cast_to_CoinFlipPairPredicate(Object o) -> CoinFlipPairPredicate"""
1090  return _IMP_core._object_cast_to_CoinFlipPairPredicate(o)
1091 
1092 _object_types.append("CoinFlipTripletPredicate")
1093 
1094 
1095 def _object_cast_to_CoinFlipTripletPredicate(o):
1096  r"""_object_cast_to_CoinFlipTripletPredicate(Object o) -> CoinFlipTripletPredicate"""
1097  return _IMP_core._object_cast_to_CoinFlipTripletPredicate(o)
1098 
1099 _object_types.append("CoinFlipQuadPredicate")
1100 
1101 
1102 def _object_cast_to_CoinFlipQuadPredicate(o):
1103  r"""_object_cast_to_CoinFlipQuadPredicate(Object o) -> CoinFlipQuadPredicate"""
1104  return _IMP_core._object_cast_to_CoinFlipQuadPredicate(o)
1105 
1106 _object_types.append("UnorderedTypeSingletonPredicate")
1107 
1108 
1109 def _object_cast_to_UnorderedTypeSingletonPredicate(o):
1110  r"""_object_cast_to_UnorderedTypeSingletonPredicate(Object o) -> UnorderedTypeSingletonPredicate"""
1111  return _IMP_core._object_cast_to_UnorderedTypeSingletonPredicate(o)
1112 
1113 _object_types.append("UnorderedTypePairPredicate")
1114 
1115 
1116 def _object_cast_to_UnorderedTypePairPredicate(o):
1117  r"""_object_cast_to_UnorderedTypePairPredicate(Object o) -> UnorderedTypePairPredicate"""
1118  return _IMP_core._object_cast_to_UnorderedTypePairPredicate(o)
1119 
1120 _object_types.append("UnorderedTypeTripletPredicate")
1121 
1122 
1123 def _object_cast_to_UnorderedTypeTripletPredicate(o):
1124  r"""_object_cast_to_UnorderedTypeTripletPredicate(Object o) -> UnorderedTypeTripletPredicate"""
1125  return _IMP_core._object_cast_to_UnorderedTypeTripletPredicate(o)
1126 
1127 _object_types.append("UnorderedTypeQuadPredicate")
1128 
1129 
1130 def _object_cast_to_UnorderedTypeQuadPredicate(o):
1131  r"""_object_cast_to_UnorderedTypeQuadPredicate(Object o) -> UnorderedTypeQuadPredicate"""
1132  return _IMP_core._object_cast_to_UnorderedTypeQuadPredicate(o)
1133 
1134 _object_types.append("OrderedTypeSingletonPredicate")
1135 
1136 
1137 def _object_cast_to_OrderedTypeSingletonPredicate(o):
1138  r"""_object_cast_to_OrderedTypeSingletonPredicate(Object o) -> OrderedTypeSingletonPredicate"""
1139  return _IMP_core._object_cast_to_OrderedTypeSingletonPredicate(o)
1140 
1141 _object_types.append("OrderedTypePairPredicate")
1142 
1143 
1144 def _object_cast_to_OrderedTypePairPredicate(o):
1145  r"""_object_cast_to_OrderedTypePairPredicate(Object o) -> OrderedTypePairPredicate"""
1146  return _IMP_core._object_cast_to_OrderedTypePairPredicate(o)
1147 
1148 _object_types.append("OrderedTypeTripletPredicate")
1149 
1150 
1151 def _object_cast_to_OrderedTypeTripletPredicate(o):
1152  r"""_object_cast_to_OrderedTypeTripletPredicate(Object o) -> OrderedTypeTripletPredicate"""
1153  return _IMP_core._object_cast_to_OrderedTypeTripletPredicate(o)
1154 
1155 _object_types.append("OrderedTypeQuadPredicate")
1156 
1157 
1158 def _object_cast_to_OrderedTypeQuadPredicate(o):
1159  r"""_object_cast_to_OrderedTypeQuadPredicate(Object o) -> OrderedTypeQuadPredicate"""
1160  return _IMP_core._object_cast_to_OrderedTypeQuadPredicate(o)
1161 
1162 _object_types.append("AllSameSingletonPredicate")
1163 
1164 
1165 def _object_cast_to_AllSameSingletonPredicate(o):
1166  r"""_object_cast_to_AllSameSingletonPredicate(Object o) -> AllSameSingletonPredicate"""
1167  return _IMP_core._object_cast_to_AllSameSingletonPredicate(o)
1168 
1169 _object_types.append("AllSamePairPredicate")
1170 
1171 
1172 def _object_cast_to_AllSamePairPredicate(o):
1173  r"""_object_cast_to_AllSamePairPredicate(Object o) -> AllSamePairPredicate"""
1174  return _IMP_core._object_cast_to_AllSamePairPredicate(o)
1175 
1176 _object_types.append("AllSameTripletPredicate")
1177 
1178 
1179 def _object_cast_to_AllSameTripletPredicate(o):
1180  r"""_object_cast_to_AllSameTripletPredicate(Object o) -> AllSameTripletPredicate"""
1181  return _IMP_core._object_cast_to_AllSameTripletPredicate(o)
1182 
1183 _object_types.append("AllSameQuadPredicate")
1184 
1185 
1186 def _object_cast_to_AllSameQuadPredicate(o):
1187  r"""_object_cast_to_AllSameQuadPredicate(Object o) -> AllSameQuadPredicate"""
1188  return _IMP_core._object_cast_to_AllSameQuadPredicate(o)
1189 
1190 def XYZs(l=[]):
1191  return [XYZ(x) for x in l]
1192 _plural_types.append("XYZs")
1193 
1194 
1195 _value_types.append("XYZ")
1196 
1197 
1198 def XYZRs(l=[]):
1199  return [XYZR(x) for x in l]
1200 _plural_types.append("XYZRs")
1201 
1202 
1203 _value_types.append("XYZR")
1204 
1205 
1206 def RigidBodies(l=[]):
1207  return [RigidBody(x) for x in l]
1208 _plural_types.append("RigidBodies")
1209 
1210 
1211 _value_types.append("RigidBody")
1212 
1213 
1214 def RigidBodyMembers(l=[]):
1215  return [RigidBodyMember(x) for x in l]
1216 _plural_types.append("RigidBodyMembers")
1217 
1218 
1219 _value_types.append("RigidBodyMember")
1220 
1221 
1222 def RigidMembers(l=[]):
1223  return [RigidMember(x) for x in l]
1224 _plural_types.append("RigidMembers")
1225 
1226 
1227 _value_types.append("RigidMember")
1228 
1229 
1230 def NonRigidMembers(l=[]):
1231  return [NonRigidMember(x) for x in l]
1232 _plural_types.append("NonRigidMembers")
1233 
1234 
1235 _value_types.append("NonRigidMember")
1236 
1237 
1238 def Centroids(l=[]):
1239  return [Centroid(x) for x in l]
1240 _plural_types.append("Centroids")
1241 
1242 
1243 _value_types.append("Centroid")
1244 
1245 
1246 def Covers(l=[]):
1247  return [Cover(x) for x in l]
1248 _plural_types.append("Covers")
1249 
1250 
1251 _value_types.append("Cover")
1252 
1253 
1254 def References(l=[]):
1255  return [Reference(x) for x in l]
1256 _plural_types.append("References")
1257 
1258 
1259 _value_types.append("Reference")
1260 
1261 
1262 ParticleTypes=list
1263 _plural_types.append("ParticleTypes")
1264 _value_types.append("ParticleType")
1265 
1266 
1267 def Typeds(l=[]):
1268  return [Typed(x) for x in l]
1269 _plural_types.append("Typeds")
1270 
1271 
1272 _value_types.append("Typed")
1273 
1274 
1275 def GenericHierarchies(l=[]):
1276  return [Hierarchy(x) for x in l]
1277 _plural_types.append("GenericHierarchies")
1278 
1279 
1280 _value_types.append("Hierarchy")
1281 
1282 
1283 def Gaussians(l=[]):
1284  return [Gaussian(x) for x in l]
1285 _plural_types.append("Gaussians")
1286 
1287 
1288 _value_types.append("Gaussian")
1289 
1290 
1291 def Directions(l=[]):
1292  return [Direction(x) for x in l]
1293 _plural_types.append("Directions")
1294 
1295 
1296 _value_types.append("Direction")
1297 
1298 
1299 def DirectionAngles(l=[]):
1300  return [DirectionAngle(x) for x in l]
1301 _plural_types.append("DirectionAngles")
1302 
1303 
1304 _value_types.append("DirectionAngle")
1305 
1306 
1307 def Surfaces(l=[]):
1308  return [Surface(x) for x in l]
1309 _plural_types.append("Surfaces")
1310 
1311 
1312 _value_types.append("Surface")
1313 
1314 
1315 def Provenances(l=[]):
1316  return [Provenance(x) for x in l]
1317 _plural_types.append("Provenances")
1318 
1319 
1320 _value_types.append("Provenance")
1321 
1322 
1323 def StructureProvenances(l=[]):
1324  return [StructureProvenance(x) for x in l]
1325 _plural_types.append("StructureProvenances")
1326 
1327 
1328 _value_types.append("StructureProvenance")
1329 
1330 
1331 def SampleProvenances(l=[]):
1332  return [SampleProvenance(x) for x in l]
1333 _plural_types.append("SampleProvenances")
1334 
1335 
1336 _value_types.append("SampleProvenance")
1337 
1338 
1339 def ClusterProvenances(l=[]):
1340  return [ClusterProvenance(x) for x in l]
1341 _plural_types.append("ClusterProvenances")
1342 
1343 
1344 _value_types.append("ClusterProvenance")
1345 
1346 
1347 def CombineProvenances(l=[]):
1348  return [CombineProvenance(x) for x in l]
1349 _plural_types.append("CombineProvenances")
1350 
1351 
1352 _value_types.append("CombineProvenance")
1353 
1354 
1355 def FilterProvenances(l=[]):
1356  return [FilterProvenance(x) for x in l]
1357 _plural_types.append("FilterProvenances")
1358 
1359 
1360 _value_types.append("FilterProvenance")
1361 
1362 
1363 def ScriptProvenances(l=[]):
1364  return [ScriptProvenance(x) for x in l]
1365 _plural_types.append("ScriptProvenances")
1366 
1367 
1368 _value_types.append("ScriptProvenance")
1369 
1370 
1371 def SoftwareProvenances(l=[]):
1372  return [SoftwareProvenance(x) for x in l]
1373 _plural_types.append("SoftwareProvenances")
1374 
1375 
1376 _value_types.append("SoftwareProvenance")
1377 
1378 
1379 def Provenanceds(l=[]):
1380  return [Provenanced(x) for x in l]
1381 _plural_types.append("Provenanceds")
1382 
1383 
1384 _value_types.append("Provenanced")
1385 
1386 
1387 HierarchyCounters=list
1388 _plural_types.append("HierarchyCounters")
1389 _value_types.append("HierarchyCounter")
1390 
1391 
1392 HierarchyTraitsList=list
1393 _plural_types.append("HierarchyTraitsList")
1394 _value_types.append("HierarchyTraits")
1395 
1396 
1397 _object_types.append("TruncatedHarmonicBound")
1398 
1399 
1400 def _object_cast_to_TruncatedHarmonicBound(o):
1401  r"""_object_cast_to_TruncatedHarmonicBound(Object o) -> TruncatedHarmonicBound"""
1402  return _IMP_core._object_cast_to_TruncatedHarmonicBound(o)
1403 
1404 _object_types.append("TruncatedHarmonicLowerBound")
1405 
1406 
1407 def _object_cast_to_TruncatedHarmonicLowerBound(o):
1408  r"""_object_cast_to_TruncatedHarmonicLowerBound(Object o) -> TruncatedHarmonicLowerBound"""
1409  return _IMP_core._object_cast_to_TruncatedHarmonicLowerBound(o)
1410 
1411 _object_types.append("TruncatedHarmonicUpperBound")
1412 
1413 
1414 def _object_cast_to_TruncatedHarmonicUpperBound(o):
1415  r"""_object_cast_to_TruncatedHarmonicUpperBound(Object o) -> TruncatedHarmonicUpperBound"""
1416  return _IMP_core._object_cast_to_TruncatedHarmonicUpperBound(o)
1417 
1418 _object_types.append("HarmonicDistancePairScore")
1419 
1420 
1421 def _object_cast_to_HarmonicDistancePairScore(o):
1422  r"""_object_cast_to_HarmonicDistancePairScore(Object o) -> HarmonicDistancePairScore"""
1423  return _IMP_core._object_cast_to_HarmonicDistancePairScore(o)
1424 
1425 _object_types.append("DistancePairScore")
1426 
1427 
1428 def _object_cast_to_DistancePairScore(o):
1429  r"""_object_cast_to_DistancePairScore(Object o) -> DistancePairScore"""
1430  return _IMP_core._object_cast_to_DistancePairScore(o)
1431 
1432 _object_types.append("XYZRGeometry")
1433 
1434 
1435 def _object_cast_to_XYZRGeometry(o):
1436  r"""_object_cast_to_XYZRGeometry(Object o) -> XYZRGeometry"""
1437  return _IMP_core._object_cast_to_XYZRGeometry(o)
1438 
1439 _object_types.append("XYZRsGeometry")
1440 
1441 
1442 def _object_cast_to_XYZRsGeometry(o):
1443  r"""_object_cast_to_XYZRsGeometry(Object o) -> XYZRsGeometry"""
1444  return _IMP_core._object_cast_to_XYZRsGeometry(o)
1445 
1446 _object_types.append("XYZDerivativeGeometry")
1447 
1448 
1449 def _object_cast_to_XYZDerivativeGeometry(o):
1450  r"""_object_cast_to_XYZDerivativeGeometry(Object o) -> XYZDerivativeGeometry"""
1451  return _IMP_core._object_cast_to_XYZDerivativeGeometry(o)
1452 
1453 _object_types.append("XYZDerivativesGeometry")
1454 
1455 
1456 def _object_cast_to_XYZDerivativesGeometry(o):
1457  r"""_object_cast_to_XYZDerivativesGeometry(Object o) -> XYZDerivativesGeometry"""
1458  return _IMP_core._object_cast_to_XYZDerivativesGeometry(o)
1459 
1460 _object_types.append("RigidBodyDerivativeGeometry")
1461 
1462 
1463 def _object_cast_to_RigidBodyDerivativeGeometry(o):
1464  r"""_object_cast_to_RigidBodyDerivativeGeometry(Object o) -> RigidBodyDerivativeGeometry"""
1465  return _IMP_core._object_cast_to_RigidBodyDerivativeGeometry(o)
1466 
1467 _object_types.append("RigidBodyDerivativesGeometry")
1468 
1469 
1470 def _object_cast_to_RigidBodyDerivativesGeometry(o):
1471  r"""_object_cast_to_RigidBodyDerivativesGeometry(Object o) -> RigidBodyDerivativesGeometry"""
1472  return _IMP_core._object_cast_to_RigidBodyDerivativesGeometry(o)
1473 
1474 _object_types.append("RigidBodyHierarchyGeometry")
1475 
1476 
1477 def _object_cast_to_RigidBodyHierarchyGeometry(o):
1478  r"""_object_cast_to_RigidBodyHierarchyGeometry(Object o) -> RigidBodyHierarchyGeometry"""
1479  return _IMP_core._object_cast_to_RigidBodyHierarchyGeometry(o)
1480 
1481 _object_types.append("RigidBodyFrameGeometry")
1482 
1483 
1484 def _object_cast_to_RigidBodyFrameGeometry(o):
1485  r"""_object_cast_to_RigidBodyFrameGeometry(Object o) -> RigidBodyFrameGeometry"""
1486  return _IMP_core._object_cast_to_RigidBodyFrameGeometry(o)
1487 
1488 _object_types.append("RigidBodyFramesGeometry")
1489 
1490 
1491 def _object_cast_to_RigidBodyFramesGeometry(o):
1492  r"""_object_cast_to_RigidBodyFramesGeometry(Object o) -> RigidBodyFramesGeometry"""
1493  return _IMP_core._object_cast_to_RigidBodyFramesGeometry(o)
1494 
1495 _object_types.append("RigidBodyTorque")
1496 
1497 
1498 def _object_cast_to_RigidBodyTorque(o):
1499  r"""_object_cast_to_RigidBodyTorque(Object o) -> RigidBodyTorque"""
1500  return _IMP_core._object_cast_to_RigidBodyTorque(o)
1501 
1502 _object_types.append("EdgePairGeometry")
1503 
1504 
1505 def _object_cast_to_EdgePairGeometry(o):
1506  r"""_object_cast_to_EdgePairGeometry(Object o) -> EdgePairGeometry"""
1507  return _IMP_core._object_cast_to_EdgePairGeometry(o)
1508 
1509 _object_types.append("EdgePairsGeometry")
1510 
1511 
1512 def _object_cast_to_EdgePairsGeometry(o):
1513  r"""_object_cast_to_EdgePairsGeometry(Object o) -> EdgePairsGeometry"""
1514  return _IMP_core._object_cast_to_EdgePairsGeometry(o)
1515 
1516 _object_types.append("SurfaceGeometry")
1517 
1518 
1519 def _object_cast_to_SurfaceGeometry(o):
1520  r"""_object_cast_to_SurfaceGeometry(Object o) -> SurfaceGeometry"""
1521  return _IMP_core._object_cast_to_SurfaceGeometry(o)
1522 
1523 _object_types.append("SurfaceGeometryConstraint")
1524 
1525 
1526 def _object_cast_to_SurfaceGeometryConstraint(o):
1527  r"""_object_cast_to_SurfaceGeometryConstraint(Object o) -> SurfaceGeometryConstraint"""
1528  return _IMP_core._object_cast_to_SurfaceGeometryConstraint(o)
1529 
1530 _object_types.append("AttributeSingletonPredicate")
1531 
1532 
1533 def _object_cast_to_AttributeSingletonPredicate(o):
1534  r"""_object_cast_to_AttributeSingletonPredicate(Object o) -> AttributeSingletonPredicate"""
1535  return _IMP_core._object_cast_to_AttributeSingletonPredicate(o)
1536 
1537 _object_types.append("InBoundingBox3DSingletonPredicate")
1538 
1539 
1540 def _object_cast_to_InBoundingBox3DSingletonPredicate(o):
1541  r"""_object_cast_to_InBoundingBox3DSingletonPredicate(Object o) -> InBoundingBox3DSingletonPredicate"""
1542  return _IMP_core._object_cast_to_InBoundingBox3DSingletonPredicate(o)
1543 
1544 _object_types.append("IsCollisionPairPredicate")
1545 
1546 
1547 def _object_cast_to_IsCollisionPairPredicate(o):
1548  r"""_object_cast_to_IsCollisionPairPredicate(Object o) -> IsCollisionPairPredicate"""
1549  return _IMP_core._object_cast_to_IsCollisionPairPredicate(o)
1550 
1551 BinormalTermList=list
1552 _plural_types.append("BinormalTermList")
1553 _value_types.append("BinormalTerm")
1554 
1555 
1556 _object_types.append("MultipleBinormalRestraint")
1557 
1558 
1559 def _object_cast_to_MultipleBinormalRestraint(o):
1560  r"""_object_cast_to_MultipleBinormalRestraint(Object o) -> MultipleBinormalRestraint"""
1561  return _IMP_core._object_cast_to_MultipleBinormalRestraint(o)
1562 class ClosePairsFinder(IMP._ParticleInputs, IMP.Object):
1563  r"""Proxy of C++ IMP::core::ClosePairsFinder class."""
1564 
1565  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1566 
1567  def __init__(self, *args, **kwargs):
1568  raise AttributeError("No constructor defined - class is abstract")
1569  __swig_destroy__ = _IMP_core.delete_ClosePairsFinder
1570 
1571  def get_close_pairs(self, *args):
1572  r"""
1573  get_close_pairs(ClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
1574  get_close_pairs(ClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
1575  get_close_pairs(ClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
1576  get_close_pairs(ClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
1577  """
1578  return _IMP_core.ClosePairsFinder_get_close_pairs(self, *args)
1579 
1580  def set_distance(self, d):
1581  r"""set_distance(ClosePairsFinder self, double d)"""
1582  return _IMP_core.ClosePairsFinder_set_distance(self, d)
1583 
1584  def get_distance(self):
1585  r"""get_distance(ClosePairsFinder self) -> double"""
1586  return _IMP_core.ClosePairsFinder_get_distance(self)
1587  def __get_pair_filters(self): return IMP._list_util.VarList(getdimfunc=self.get_number_of_pair_filters, getfunc=self.get_pair_filter, erasefunc=self.erase_pair_filter, appendfunc=self.add_pair_filter, extendfunc=self.add_pair_filters, clearfunc=self.clear_pair_filters, indexfunc=self._python_index_pair_filter)
1588  def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
1589  def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
1590  pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc="List of ##ucnames")
1591 
1592  def remove_pair_filter(self, d):
1593  r"""remove_pair_filter(ClosePairsFinder self, PairPredicate d)"""
1594  return _IMP_core.ClosePairsFinder_remove_pair_filter(self, d)
1595 
1596  def _python_index_pair_filter(self, d, start, stop):
1597  r"""_python_index_pair_filter(ClosePairsFinder self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
1598  return _IMP_core.ClosePairsFinder__python_index_pair_filter(self, d, start, stop)
1599 
1600  def remove_pair_filters(self, d):
1601  r"""remove_pair_filters(ClosePairsFinder self, IMP::PairPredicates const & d)"""
1602  return _IMP_core.ClosePairsFinder_remove_pair_filters(self, d)
1603 
1604  def set_pair_filters(self, ps):
1605  r"""set_pair_filters(ClosePairsFinder self, IMP::PairPredicates const & ps)"""
1606  return _IMP_core.ClosePairsFinder_set_pair_filters(self, ps)
1607 
1608  def set_pair_filters_order(self, objs):
1609  r"""set_pair_filters_order(ClosePairsFinder self, IMP::PairPredicates const & objs)"""
1610  return _IMP_core.ClosePairsFinder_set_pair_filters_order(self, objs)
1611 
1612  def add_pair_filter(self, obj):
1613  r"""add_pair_filter(ClosePairsFinder self, PairPredicate obj) -> unsigned int"""
1614  return _IMP_core.ClosePairsFinder_add_pair_filter(self, obj)
1615 
1616  def add_pair_filters(self, objs):
1617  r"""add_pair_filters(ClosePairsFinder self, IMP::PairPredicates const & objs)"""
1618  return _IMP_core.ClosePairsFinder_add_pair_filters(self, objs)
1619 
1620  def clear_pair_filters(self):
1621  r"""clear_pair_filters(ClosePairsFinder self)"""
1622  return _IMP_core.ClosePairsFinder_clear_pair_filters(self)
1623 
1624  def get_number_of_pair_filters(self):
1625  r"""get_number_of_pair_filters(ClosePairsFinder self) -> unsigned int"""
1626  return _IMP_core.ClosePairsFinder_get_number_of_pair_filters(self)
1627 
1628  def get_has_pair_filters(self):
1629  r"""get_has_pair_filters(ClosePairsFinder self) -> bool"""
1630  return _IMP_core.ClosePairsFinder_get_has_pair_filters(self)
1631 
1632  def get_pair_filter(self, i):
1633  r"""get_pair_filter(ClosePairsFinder self, unsigned int i) -> PairPredicate"""
1634  return _IMP_core.ClosePairsFinder_get_pair_filter(self, i)
1635 
1636  def get_pair_filters(self):
1637  r"""get_pair_filters(ClosePairsFinder self) -> IMP::PairPredicates"""
1638  return _IMP_core.ClosePairsFinder_get_pair_filters(self)
1639 
1640  def erase_pair_filter(self, i):
1641  r"""erase_pair_filter(ClosePairsFinder self, unsigned int i)"""
1642  return _IMP_core.ClosePairsFinder_erase_pair_filter(self, i)
1643 
1644  def reserve_pair_filters(self, sz):
1645  r"""reserve_pair_filters(ClosePairsFinder self, unsigned int sz)"""
1646  return _IMP_core.ClosePairsFinder_reserve_pair_filters(self, sz)
1647 
1648  def __str__(self):
1649  r"""__str__(ClosePairsFinder self) -> std::string"""
1650  return _IMP_core.ClosePairsFinder___str__(self)
1651 
1652  def __repr__(self):
1653  r"""__repr__(ClosePairsFinder self) -> std::string"""
1654  return _IMP_core.ClosePairsFinder___repr__(self)
1655 
1656  @staticmethod
1657  def get_from(o):
1658  return _object_cast_to_ClosePairsFinder(o)
1659 
1660 
1661 # Register ClosePairsFinder in _IMP_core:
1662 _IMP_core.ClosePairsFinder_swigregister(ClosePairsFinder)
1663 class MonteCarloMoverResult(IMP._Value):
1664  r"""Proxy of C++ IMP::core::MonteCarloMoverResult class."""
1665 
1666  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1667 
1668  def __init__(self, *args):
1669  r"""__init__(MonteCarloMoverResult self, IMP::ParticleIndexes i0=IMP::ParticleIndexes(), double i1=double()) -> MonteCarloMoverResult"""
1670  _IMP_core.MonteCarloMoverResult_swiginit(self, _IMP_core.new_MonteCarloMoverResult(*args))
1671 
1672  def __hash__(self):
1673  r"""__hash__(MonteCarloMoverResult self) -> std::size_t"""
1674  return _IMP_core.MonteCarloMoverResult___hash__(self)
1675 
1676  def show(self, *args):
1677  r"""show(MonteCarloMoverResult self, _ostream out=std::cout)"""
1678  return _IMP_core.MonteCarloMoverResult_show(self, *args)
1679 
1680  def __cmp__(self, o):
1681  r"""__cmp__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> int"""
1682  return _IMP_core.MonteCarloMoverResult___cmp__(self, o)
1683 
1684  def __eq__(self, o):
1685  r"""__eq__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1686  return _IMP_core.MonteCarloMoverResult___eq__(self, o)
1687 
1688  def __ne__(self, o):
1689  r"""__ne__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1690  return _IMP_core.MonteCarloMoverResult___ne__(self, o)
1691 
1692  def __lt__(self, o):
1693  r"""__lt__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1694  return _IMP_core.MonteCarloMoverResult___lt__(self, o)
1695 
1696  def __gt__(self, o):
1697  r"""__gt__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1698  return _IMP_core.MonteCarloMoverResult___gt__(self, o)
1699 
1700  def __ge__(self, o):
1701  r"""__ge__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1702  return _IMP_core.MonteCarloMoverResult___ge__(self, o)
1703 
1704  def __le__(self, o):
1705  r"""__le__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1706  return _IMP_core.MonteCarloMoverResult___le__(self, o)
1707 
1708  def get_moved_particles(self):
1709  r"""get_moved_particles(MonteCarloMoverResult self) -> IMP::ParticleIndexes const &"""
1710  return _IMP_core.MonteCarloMoverResult_get_moved_particles(self)
1711 
1712  def set_moved_particles(self, v):
1713  r"""set_moved_particles(MonteCarloMoverResult self, IMP::ParticleIndexes const & v)"""
1714  return _IMP_core.MonteCarloMoverResult_set_moved_particles(self, v)
1715 
1716  def get_proposal_ratio(self):
1717  r"""get_proposal_ratio(MonteCarloMoverResult self) -> double const &"""
1718  return _IMP_core.MonteCarloMoverResult_get_proposal_ratio(self)
1719 
1720  def set_proposal_ratio(self, v):
1721  r"""set_proposal_ratio(MonteCarloMoverResult self, double const & v)"""
1722  return _IMP_core.MonteCarloMoverResult_set_proposal_ratio(self, v)
1723 
1724  def __str__(self):
1725  r"""__str__(MonteCarloMoverResult self) -> std::string"""
1726  return _IMP_core.MonteCarloMoverResult___str__(self)
1727 
1728  def __repr__(self):
1729  r"""__repr__(MonteCarloMoverResult self) -> std::string"""
1730  return _IMP_core.MonteCarloMoverResult___repr__(self)
1731  __swig_destroy__ = _IMP_core.delete_MonteCarloMoverResult
1732 
1733 # Register MonteCarloMoverResult in _IMP_core:
1734 _IMP_core.MonteCarloMoverResult_swigregister(MonteCarloMoverResult)
1735 class MonteCarloMover(IMP.ModelObject):
1736  r"""Proxy of C++ IMP::core::MonteCarloMover class."""
1737 
1738  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1739 
1740  def __init__(self, *args):
1741  r"""
1742  __init__(MonteCarloMover self, Model m, std::string name) -> MonteCarloMover
1743  __init__(MonteCarloMover self) -> MonteCarloMover
1744  """
1745  if self.__class__ == MonteCarloMover:
1746  _self = None
1747  else:
1748  _self = self
1749  _IMP_core.MonteCarloMover_swiginit(self, _IMP_core.new_MonteCarloMover(_self, *args))
1750 
1751  if self.__class__ != MonteCarloMover:
1752  _director_objects.register(self)
1753 
1754 
1755 
1756 
1757  def propose(self):
1758  r"""propose(MonteCarloMover self) -> MonteCarloMoverResult"""
1759  return _IMP_core.MonteCarloMover_propose(self)
1760 
1761  def reject(self):
1762  r"""reject(MonteCarloMover self)"""
1763  return _IMP_core.MonteCarloMover_reject(self)
1764 
1765  def accept(self):
1766  r"""accept(MonteCarloMover self)"""
1767  return _IMP_core.MonteCarloMover_accept(self)
1768 
1769  def get_number_of_proposed(self):
1770  r"""get_number_of_proposed(MonteCarloMover self) -> unsigned int"""
1771  return _IMP_core.MonteCarloMover_get_number_of_proposed(self)
1772 
1773  def get_number_of_accepted(self):
1774  r"""get_number_of_accepted(MonteCarloMover self) -> unsigned int"""
1775  return _IMP_core.MonteCarloMover_get_number_of_accepted(self)
1776 
1777  def reset_statistics(self):
1778  r"""reset_statistics(MonteCarloMover self)"""
1779  return _IMP_core.MonteCarloMover_reset_statistics(self)
1780 
1781  def do_propose(self):
1782  r"""do_propose(MonteCarloMover self) -> MonteCarloMoverResult"""
1783  return _IMP_core.MonteCarloMover_do_propose(self)
1784 
1785  def do_reject(self):
1786  r"""do_reject(MonteCarloMover self)"""
1787  return _IMP_core.MonteCarloMover_do_reject(self)
1788 
1789  def do_accept(self):
1790  r"""do_accept(MonteCarloMover self)"""
1791  return _IMP_core.MonteCarloMover_do_accept(self)
1792 
1793  def do_get_outputs(self):
1794  r"""do_get_outputs(MonteCarloMover self) -> IMP::ModelObjectsTemp"""
1795  return _IMP_core.MonteCarloMover_do_get_outputs(self)
1796 
1797  def __str__(self):
1798  r"""__str__(MonteCarloMover self) -> std::string"""
1799  return _IMP_core.MonteCarloMover___str__(self)
1800 
1801  def __repr__(self):
1802  r"""__repr__(MonteCarloMover self) -> std::string"""
1803  return _IMP_core.MonteCarloMover___repr__(self)
1804 
1805  @staticmethod
1806  def get_from(o):
1807  return _object_cast_to_MonteCarloMover(o)
1808 
1809 
1810  def do_show(self, out):
1811  pass
1812 
1813  @staticmethod
1814  def get_from(o):
1815  return _object_cast_to_MonteCarloMover(o)
1816 
1817  __swig_destroy__ = _IMP_core.delete_MonteCarloMover
1818  def __disown__(self):
1819  self.this.disown()
1820  _IMP_core.disown_MonteCarloMover(self)
1821  return weakref.proxy(self)
1822 
1823  def do_destroy(self):
1824  r"""do_destroy(MonteCarloMover self)"""
1825  return _IMP_core.MonteCarloMover_do_destroy(self)
1826 
1827  def handle_set_has_required_score_states(self, arg0):
1828  r"""handle_set_has_required_score_states(MonteCarloMover self, bool arg0)"""
1829  return _IMP_core.MonteCarloMover_handle_set_has_required_score_states(self, arg0)
1830 
1831  def do_get_inputs(self):
1832  r"""do_get_inputs(MonteCarloMover self) -> IMP::ModelObjectsTemp"""
1833  return _IMP_core.MonteCarloMover_do_get_inputs(self)
1834 
1835  def do_get_interactions(self):
1836  r"""do_get_interactions(MonteCarloMover self) -> IMP::ModelObjectsTemps"""
1837  return _IMP_core.MonteCarloMover_do_get_interactions(self)
1838 
1839 # Register MonteCarloMover in _IMP_core:
1840 _IMP_core.MonteCarloMover_swigregister(MonteCarloMover)
1841 class XYZ(IMP.Decorator):
1842  r"""Proxy of C++ IMP::core::XYZ class."""
1843 
1844  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1845 
1846  @staticmethod
1847  def get_coordinate_key(i):
1848  r"""get_coordinate_key(unsigned int i) -> FloatKey"""
1849  return _IMP_core.XYZ_get_coordinate_key(i)
1850 
1851  def __init__(self, *args):
1852  r"""
1853  __init__(XYZ self) -> XYZ
1854  __init__(XYZ self, Model m, ParticleIndex id) -> XYZ
1855  __init__(XYZ self, _ParticleAdaptor d) -> XYZ
1856  """
1857  _IMP_core.XYZ_swiginit(self, _IMP_core.new_XYZ(*args))
1858 
1859  def show(self, *args):
1860  r"""show(XYZ self, _ostream out=std::cout)"""
1861  return _IMP_core.XYZ_show(self, *args)
1862 
1863  @staticmethod
1864  def setup_particle(*args):
1865  r"""
1866  setup_particle(Model m, ParticleIndex pi) -> XYZ
1867  setup_particle(_ParticleAdaptor pa) -> XYZ
1868  setup_particle(Model m, ParticleIndex pi, Vector3D v) -> XYZ
1869  setup_particle(_ParticleAdaptor pa, Vector3D v) -> XYZ
1870  """
1871  return _IMP_core.XYZ_setup_particle(*args)
1872 
1873  def get_x(self):
1874  r"""get_x(XYZ self) -> IMP::Float"""
1875  return _IMP_core.XYZ_get_x(self)
1876 
1877  def set_x(self, t):
1878  r"""set_x(XYZ self, IMP::Float t)"""
1879  return _IMP_core.XYZ_set_x(self, t)
1880 
1881  def get_y(self):
1882  r"""get_y(XYZ self) -> IMP::Float"""
1883  return _IMP_core.XYZ_get_y(self)
1884 
1885  def set_y(self, t):
1886  r"""set_y(XYZ self, IMP::Float t)"""
1887  return _IMP_core.XYZ_set_y(self, t)
1888 
1889  def get_z(self):
1890  r"""get_z(XYZ self) -> IMP::Float"""
1891  return _IMP_core.XYZ_get_z(self)
1892 
1893  def set_z(self, t):
1894  r"""set_z(XYZ self, IMP::Float t)"""
1895  return _IMP_core.XYZ_set_z(self, t)
1896 
1897  def set_coordinate(self, i, v):
1898  r"""set_coordinate(XYZ self, unsigned int i, IMP::Float v)"""
1899  return _IMP_core.XYZ_set_coordinate(self, i, v)
1900 
1901  def set_coordinates(self, v):
1902  r"""set_coordinates(XYZ self, Vector3D v)"""
1903  return _IMP_core.XYZ_set_coordinates(self, v)
1904 
1905  def get_coordinate(self, i):
1906  r"""get_coordinate(XYZ self, int i) -> IMP::Float"""
1907  return _IMP_core.XYZ_get_coordinate(self, i)
1908 
1909  def add_to_derivatives(self, v, d):
1910  r"""add_to_derivatives(XYZ self, Vector3D v, DerivativeAccumulator d)"""
1911  return _IMP_core.XYZ_add_to_derivatives(self, v, d)
1912 
1913  def get_coordinates_are_optimized(self):
1914  r"""get_coordinates_are_optimized(XYZ self) -> bool"""
1915  return _IMP_core.XYZ_get_coordinates_are_optimized(self)
1916 
1917  def set_coordinates_are_optimized(self, tf):
1918  r"""set_coordinates_are_optimized(XYZ self, bool tf)"""
1919  return _IMP_core.XYZ_set_coordinates_are_optimized(self, tf)
1920 
1921  def get_vector_to(self, b):
1922  r"""get_vector_to(XYZ self, XYZ b) -> Vector3D"""
1923  return _IMP_core.XYZ_get_vector_to(self, b)
1924 
1925  def get_coordinates(self):
1926  r"""get_coordinates(XYZ self) -> Vector3D"""
1927  return _IMP_core.XYZ_get_coordinates(self)
1928 
1929  def get_derivatives(self):
1930  r"""get_derivatives(XYZ self) -> Vector3D"""
1931  return _IMP_core.XYZ_get_derivatives(self)
1932 
1933  @staticmethod
1934  def get_is_setup(*args):
1935  r"""
1936  get_is_setup(_ParticleAdaptor p) -> bool
1937  get_is_setup(Model m, ParticleIndex pi) -> bool
1938  """
1939  return _IMP_core.XYZ_get_is_setup(*args)
1940 
1941  @staticmethod
1942  def get_xyz_keys():
1943  r"""get_xyz_keys() -> IMP::FloatKeys const &"""
1944  return _IMP_core.XYZ_get_xyz_keys()
1945 
1946  def add_attribute(self, *args):
1947  r"""
1948  add_attribute(XYZ self, FloatKey k, IMP::Float v, bool opt)
1949  add_attribute(XYZ self, FloatKey a0, IMP::Float a1)
1950  add_attribute(XYZ self, IntKey a0, IMP::Int a1)
1951  add_attribute(XYZ self, FloatsKey a0, IMP::Floats a1)
1952  add_attribute(XYZ self, IntsKey a0, IMP::Ints a1)
1953  add_attribute(XYZ self, StringKey a0, IMP::String a1)
1954  add_attribute(XYZ self, ParticleIndexKey a0, Particle a1)
1955  add_attribute(XYZ self, ObjectKey a0, Object a1)
1956  add_attribute(XYZ self, SparseFloatKey a0, IMP::Float a1)
1957  add_attribute(XYZ self, SparseIntKey a0, IMP::Int a1)
1958  add_attribute(XYZ self, SparseStringKey a0, IMP::String a1)
1959  add_attribute(XYZ self, SparseParticleIndexKey a0, ParticleIndex a1)
1960  """
1961  return _IMP_core.XYZ_add_attribute(self, *args)
1962 
1963  def get_value(self, *args):
1964  r"""
1965  get_value(XYZ self, FloatKey a0) -> IMP::Float
1966  get_value(XYZ self, IntKey a0) -> IMP::Int
1967  get_value(XYZ self, FloatsKey a0) -> IMP::Floats
1968  get_value(XYZ self, IntsKey a0) -> IMP::Ints
1969  get_value(XYZ self, StringKey a0) -> IMP::String
1970  get_value(XYZ self, ParticleIndexKey a0) -> Particle
1971  get_value(XYZ self, ObjectKey a0) -> Object
1972  get_value(XYZ self, SparseFloatKey a0) -> IMP::Float
1973  get_value(XYZ self, SparseIntKey a0) -> IMP::Int
1974  get_value(XYZ self, SparseStringKey a0) -> IMP::String
1975  get_value(XYZ self, SparseParticleIndexKey a0) -> ParticleIndex
1976  """
1977  return _IMP_core.XYZ_get_value(self, *args)
1978 
1979  def set_value(self, *args):
1980  r"""
1981  set_value(XYZ self, FloatKey a0, IMP::Float a1)
1982  set_value(XYZ self, IntKey a0, IMP::Int a1)
1983  set_value(XYZ self, FloatsKey a0, IMP::Floats a1)
1984  set_value(XYZ self, IntsKey a0, IMP::Ints a1)
1985  set_value(XYZ self, StringKey a0, IMP::String a1)
1986  set_value(XYZ self, ParticleIndexKey a0, Particle a1)
1987  set_value(XYZ self, ObjectKey a0, Object a1)
1988  set_value(XYZ self, SparseFloatKey a0, IMP::Float a1)
1989  set_value(XYZ self, SparseIntKey a0, IMP::Int a1)
1990  set_value(XYZ self, SparseStringKey a0, IMP::String a1)
1991  set_value(XYZ self, SparseParticleIndexKey a0, ParticleIndex a1)
1992  """
1993  return _IMP_core.XYZ_set_value(self, *args)
1994 
1995  def remove_attribute(self, *args):
1996  r"""
1997  remove_attribute(XYZ self, FloatKey a0)
1998  remove_attribute(XYZ self, IntKey a0)
1999  remove_attribute(XYZ self, FloatsKey a0)
2000  remove_attribute(XYZ self, IntsKey a0)
2001  remove_attribute(XYZ self, StringKey a0)
2002  remove_attribute(XYZ self, ParticleIndexKey a0)
2003  remove_attribute(XYZ self, ObjectKey a0)
2004  remove_attribute(XYZ self, SparseFloatKey a0)
2005  remove_attribute(XYZ self, SparseIntKey a0)
2006  remove_attribute(XYZ self, SparseStringKey a0)
2007  remove_attribute(XYZ self, SparseParticleIndexKey a0)
2008  """
2009  return _IMP_core.XYZ_remove_attribute(self, *args)
2010 
2011  def has_attribute(self, *args):
2012  r"""
2013  has_attribute(XYZ self, FloatKey a0) -> bool
2014  has_attribute(XYZ self, IntKey a0) -> bool
2015  has_attribute(XYZ self, FloatsKey a0) -> bool
2016  has_attribute(XYZ self, IntsKey a0) -> bool
2017  has_attribute(XYZ self, StringKey a0) -> bool
2018  has_attribute(XYZ self, ParticleIndexKey a0) -> bool
2019  has_attribute(XYZ self, ObjectKey a0) -> bool
2020  has_attribute(XYZ self, SparseFloatKey a0) -> bool
2021  has_attribute(XYZ self, SparseIntKey a0) -> bool
2022  has_attribute(XYZ self, SparseStringKey a0) -> bool
2023  has_attribute(XYZ self, SparseParticleIndexKey a0) -> bool
2024  """
2025  return _IMP_core.XYZ_has_attribute(self, *args)
2026 
2027  def get_derivative(self, *args):
2028  r"""
2029  get_derivative(XYZ self, int i) -> IMP::Float
2030  get_derivative(XYZ self, FloatKey a0) -> double
2031  """
2032  return _IMP_core.XYZ_get_derivative(self, *args)
2033 
2034  def get_name(self):
2035  r"""get_name(XYZ self) -> std::string"""
2036  return _IMP_core.XYZ_get_name(self)
2037 
2038  def clear_caches(self):
2039  r"""clear_caches(XYZ self)"""
2040  return _IMP_core.XYZ_clear_caches(self)
2041 
2042  def set_name(self, a0):
2043  r"""set_name(XYZ self, std::string a0)"""
2044  return _IMP_core.XYZ_set_name(self, a0)
2045 
2046  def set_check_level(self, a0):
2047  r"""set_check_level(XYZ self, IMP::CheckLevel a0)"""
2048  return _IMP_core.XYZ_set_check_level(self, a0)
2049 
2050  def add_to_derivative(self, *args):
2051  r"""
2052  add_to_derivative(XYZ self, int i, IMP::Float v, DerivativeAccumulator d)
2053  add_to_derivative(XYZ self, FloatKey a0, double a1, DerivativeAccumulator a2)
2054  """
2055  return _IMP_core.XYZ_add_to_derivative(self, *args)
2056 
2057  def set_is_optimized(self, a0, a1):
2058  r"""set_is_optimized(XYZ self, FloatKey a0, bool a1)"""
2059  return _IMP_core.XYZ_set_is_optimized(self, a0, a1)
2060 
2061  def get_is_optimized(self, a0):
2062  r"""get_is_optimized(XYZ self, FloatKey a0) -> bool"""
2063  return _IMP_core.XYZ_get_is_optimized(self, a0)
2064 
2065  def get_check_level(self):
2066  r"""get_check_level(XYZ self) -> IMP::CheckLevel"""
2067  return _IMP_core.XYZ_get_check_level(self)
2068 
2069  def __eq__(self, *args):
2070  r"""
2071  __eq__(XYZ self, XYZ o) -> bool
2072  __eq__(XYZ self, Particle d) -> bool
2073  """
2074  return _IMP_core.XYZ___eq__(self, *args)
2075 
2076  def __ne__(self, *args):
2077  r"""
2078  __ne__(XYZ self, XYZ o) -> bool
2079  __ne__(XYZ self, Particle d) -> bool
2080  """
2081  return _IMP_core.XYZ___ne__(self, *args)
2082 
2083  def __le__(self, *args):
2084  r"""
2085  __le__(XYZ self, XYZ o) -> bool
2086  __le__(XYZ self, Particle d) -> bool
2087  """
2088  return _IMP_core.XYZ___le__(self, *args)
2089 
2090  def __lt__(self, *args):
2091  r"""
2092  __lt__(XYZ self, XYZ o) -> bool
2093  __lt__(XYZ self, Particle d) -> bool
2094  """
2095  return _IMP_core.XYZ___lt__(self, *args)
2096 
2097  def __ge__(self, *args):
2098  r"""
2099  __ge__(XYZ self, XYZ o) -> bool
2100  __ge__(XYZ self, Particle d) -> bool
2101  """
2102  return _IMP_core.XYZ___ge__(self, *args)
2103 
2104  def __gt__(self, *args):
2105  r"""
2106  __gt__(XYZ self, XYZ o) -> bool
2107  __gt__(XYZ self, Particle d) -> bool
2108  """
2109  return _IMP_core.XYZ___gt__(self, *args)
2110 
2111  def __hash__(self):
2112  r"""__hash__(XYZ self) -> std::size_t"""
2113  return _IMP_core.XYZ___hash__(self)
2114 
2115  def __str__(self):
2116  r"""__str__(XYZ self) -> std::string"""
2117  return _IMP_core.XYZ___str__(self)
2118 
2119  def __repr__(self):
2120  r"""__repr__(XYZ self) -> std::string"""
2121  return _IMP_core.XYZ___repr__(self)
2122 
2123  def _get_as_binary(self):
2124  r"""_get_as_binary(XYZ self) -> PyObject *"""
2125  return _IMP_core.XYZ__get_as_binary(self)
2126 
2127  def _set_from_binary(self, p):
2128  r"""_set_from_binary(XYZ self, PyObject * p)"""
2129  return _IMP_core.XYZ__set_from_binary(self, p)
2130 
2131  def __getstate__(self):
2132  p = self._get_as_binary()
2133  if len(self.__dict__) > 1:
2134  d = self.__dict__.copy()
2135  del d['this']
2136  p = (d, p)
2137  return p
2138 
2139  def __setstate__(self, p):
2140  if not hasattr(self, 'this'):
2141  self.__init__()
2142  if isinstance(p, tuple):
2143  d, p = p
2144  self.__dict__.update(d)
2145  return self._set_from_binary(p)
2146 
2147  __swig_destroy__ = _IMP_core.delete_XYZ
2148 
2149 # Register XYZ in _IMP_core:
2150 _IMP_core.XYZ_swigregister(XYZ)
2151 
2152 def set_vector_geometry(d, v):
2153  r"""set_vector_geometry(XYZ d, Vector3D v)"""
2154  return _IMP_core.set_vector_geometry(d, v)
2155 
2156 def get_vector_geometry(d):
2157  r"""get_vector_geometry(XYZ d) -> Vector3D"""
2158  return _IMP_core.get_vector_geometry(d)
2159 
2160 def get_dihedral(a, b, c, d):
2161  r"""get_dihedral(XYZ a, XYZ b, XYZ c, XYZ d) -> double"""
2162  return _IMP_core.get_dihedral(a, b, c, d)
2163 class XYZR(XYZ):
2164  r"""Proxy of C++ IMP::core::XYZR class."""
2165 
2166  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2167 
2168  def __init__(self, *args):
2169  r"""
2170  __init__(XYZR self) -> XYZR
2171  __init__(XYZR self, Model m, ParticleIndex id) -> XYZR
2172  __init__(XYZR self, _ParticleAdaptor d) -> XYZR
2173  """
2174  _IMP_core.XYZR_swiginit(self, _IMP_core.new_XYZR(*args))
2175 
2176  def show(self, *args):
2177  r"""show(XYZR self, _ostream out=std::cout)"""
2178  return _IMP_core.XYZR_show(self, *args)
2179 
2180  @staticmethod
2181  def setup_particle(*args):
2182  r"""
2183  setup_particle(Model m, ParticleIndex pi) -> XYZR
2184  setup_particle(_ParticleAdaptor pa) -> XYZR
2185  setup_particle(Model m, ParticleIndex pi, IMP::Float radius) -> XYZR
2186  setup_particle(_ParticleAdaptor pa, IMP::Float radius) -> XYZR
2187  setup_particle(Model m, ParticleIndex pi, Sphere3D ball) -> XYZR
2188  setup_particle(_ParticleAdaptor pa, Sphere3D ball) -> XYZR
2189  """
2190  return _IMP_core.XYZR_setup_particle(*args)
2191 
2192  @staticmethod
2193  def get_is_setup(*args):
2194  r"""
2195  get_is_setup(_ParticleAdaptor p) -> bool
2196  get_is_setup(Model m, ParticleIndex pi) -> bool
2197  """
2198  return _IMP_core.XYZR_get_is_setup(*args)
2199 
2200  def get_radius(self):
2201  r"""get_radius(XYZR self) -> double"""
2202  return _IMP_core.XYZR_get_radius(self)
2203 
2204  def set_radius(self, r):
2205  r"""set_radius(XYZR self, double r)"""
2206  return _IMP_core.XYZR_set_radius(self, r)
2207 
2208  def get_sphere(self):
2209  r"""get_sphere(XYZR self) -> Sphere3D"""
2210  return _IMP_core.XYZR_get_sphere(self)
2211 
2212  def set_sphere(self, s):
2213  r"""set_sphere(XYZR self, Sphere3D s)"""
2214  return _IMP_core.XYZR_set_sphere(self, s)
2215 
2216  @staticmethod
2217  def get_radius_key():
2218  r"""get_radius_key() -> FloatKey"""
2219  return _IMP_core.XYZR_get_radius_key()
2220 
2221  def add_to_radius_derivative(self, v, d):
2222  r"""add_to_radius_derivative(XYZR self, double v, DerivativeAccumulator d)"""
2223  return _IMP_core.XYZR_add_to_radius_derivative(self, v, d)
2224 
2225  def add_attribute(self, *args):
2226  r"""
2227  add_attribute(XYZR self, FloatKey k, IMP::Float v, bool opt)
2228  add_attribute(XYZR self, FloatKey a0, IMP::Float a1)
2229  add_attribute(XYZR self, IntKey a0, IMP::Int a1)
2230  add_attribute(XYZR self, FloatsKey a0, IMP::Floats a1)
2231  add_attribute(XYZR self, IntsKey a0, IMP::Ints a1)
2232  add_attribute(XYZR self, StringKey a0, IMP::String a1)
2233  add_attribute(XYZR self, ParticleIndexKey a0, Particle a1)
2234  add_attribute(XYZR self, ObjectKey a0, Object a1)
2235  add_attribute(XYZR self, SparseFloatKey a0, IMP::Float a1)
2236  add_attribute(XYZR self, SparseIntKey a0, IMP::Int a1)
2237  add_attribute(XYZR self, SparseStringKey a0, IMP::String a1)
2238  add_attribute(XYZR self, SparseParticleIndexKey a0, ParticleIndex a1)
2239  """
2240  return _IMP_core.XYZR_add_attribute(self, *args)
2241 
2242  def get_value(self, *args):
2243  r"""
2244  get_value(XYZR self, FloatKey a0) -> IMP::Float
2245  get_value(XYZR self, IntKey a0) -> IMP::Int
2246  get_value(XYZR self, FloatsKey a0) -> IMP::Floats
2247  get_value(XYZR self, IntsKey a0) -> IMP::Ints
2248  get_value(XYZR self, StringKey a0) -> IMP::String
2249  get_value(XYZR self, ParticleIndexKey a0) -> Particle
2250  get_value(XYZR self, ObjectKey a0) -> Object
2251  get_value(XYZR self, SparseFloatKey a0) -> IMP::Float
2252  get_value(XYZR self, SparseIntKey a0) -> IMP::Int
2253  get_value(XYZR self, SparseStringKey a0) -> IMP::String
2254  get_value(XYZR self, SparseParticleIndexKey a0) -> ParticleIndex
2255  """
2256  return _IMP_core.XYZR_get_value(self, *args)
2257 
2258  def set_value(self, *args):
2259  r"""
2260  set_value(XYZR self, FloatKey a0, IMP::Float a1)
2261  set_value(XYZR self, IntKey a0, IMP::Int a1)
2262  set_value(XYZR self, FloatsKey a0, IMP::Floats a1)
2263  set_value(XYZR self, IntsKey a0, IMP::Ints a1)
2264  set_value(XYZR self, StringKey a0, IMP::String a1)
2265  set_value(XYZR self, ParticleIndexKey a0, Particle a1)
2266  set_value(XYZR self, ObjectKey a0, Object a1)
2267  set_value(XYZR self, SparseFloatKey a0, IMP::Float a1)
2268  set_value(XYZR self, SparseIntKey a0, IMP::Int a1)
2269  set_value(XYZR self, SparseStringKey a0, IMP::String a1)
2270  set_value(XYZR self, SparseParticleIndexKey a0, ParticleIndex a1)
2271  """
2272  return _IMP_core.XYZR_set_value(self, *args)
2273 
2274  def remove_attribute(self, *args):
2275  r"""
2276  remove_attribute(XYZR self, FloatKey a0)
2277  remove_attribute(XYZR self, IntKey a0)
2278  remove_attribute(XYZR self, FloatsKey a0)
2279  remove_attribute(XYZR self, IntsKey a0)
2280  remove_attribute(XYZR self, StringKey a0)
2281  remove_attribute(XYZR self, ParticleIndexKey a0)
2282  remove_attribute(XYZR self, ObjectKey a0)
2283  remove_attribute(XYZR self, SparseFloatKey a0)
2284  remove_attribute(XYZR self, SparseIntKey a0)
2285  remove_attribute(XYZR self, SparseStringKey a0)
2286  remove_attribute(XYZR self, SparseParticleIndexKey a0)
2287  """
2288  return _IMP_core.XYZR_remove_attribute(self, *args)
2289 
2290  def has_attribute(self, *args):
2291  r"""
2292  has_attribute(XYZR self, FloatKey a0) -> bool
2293  has_attribute(XYZR self, IntKey a0) -> bool
2294  has_attribute(XYZR self, FloatsKey a0) -> bool
2295  has_attribute(XYZR self, IntsKey a0) -> bool
2296  has_attribute(XYZR self, StringKey a0) -> bool
2297  has_attribute(XYZR self, ParticleIndexKey a0) -> bool
2298  has_attribute(XYZR self, ObjectKey a0) -> bool
2299  has_attribute(XYZR self, SparseFloatKey a0) -> bool
2300  has_attribute(XYZR self, SparseIntKey a0) -> bool
2301  has_attribute(XYZR self, SparseStringKey a0) -> bool
2302  has_attribute(XYZR self, SparseParticleIndexKey a0) -> bool
2303  """
2304  return _IMP_core.XYZR_has_attribute(self, *args)
2305 
2306  def get_derivative(self, a0):
2307  r"""get_derivative(XYZR self, FloatKey a0) -> double"""
2308  return _IMP_core.XYZR_get_derivative(self, a0)
2309 
2310  def get_name(self):
2311  r"""get_name(XYZR self) -> std::string"""
2312  return _IMP_core.XYZR_get_name(self)
2313 
2314  def clear_caches(self):
2315  r"""clear_caches(XYZR self)"""
2316  return _IMP_core.XYZR_clear_caches(self)
2317 
2318  def set_name(self, a0):
2319  r"""set_name(XYZR self, std::string a0)"""
2320  return _IMP_core.XYZR_set_name(self, a0)
2321 
2322  def set_check_level(self, a0):
2323  r"""set_check_level(XYZR self, IMP::CheckLevel a0)"""
2324  return _IMP_core.XYZR_set_check_level(self, a0)
2325 
2326  def add_to_derivative(self, a0, a1, a2):
2327  r"""add_to_derivative(XYZR self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2328  return _IMP_core.XYZR_add_to_derivative(self, a0, a1, a2)
2329 
2330  def set_is_optimized(self, a0, a1):
2331  r"""set_is_optimized(XYZR self, FloatKey a0, bool a1)"""
2332  return _IMP_core.XYZR_set_is_optimized(self, a0, a1)
2333 
2334  def get_is_optimized(self, a0):
2335  r"""get_is_optimized(XYZR self, FloatKey a0) -> bool"""
2336  return _IMP_core.XYZR_get_is_optimized(self, a0)
2337 
2338  def get_check_level(self):
2339  r"""get_check_level(XYZR self) -> IMP::CheckLevel"""
2340  return _IMP_core.XYZR_get_check_level(self)
2341 
2342  def __eq__(self, *args):
2343  r"""
2344  __eq__(XYZR self, XYZR o) -> bool
2345  __eq__(XYZR self, Particle d) -> bool
2346  """
2347  return _IMP_core.XYZR___eq__(self, *args)
2348 
2349  def __ne__(self, *args):
2350  r"""
2351  __ne__(XYZR self, XYZR o) -> bool
2352  __ne__(XYZR self, Particle d) -> bool
2353  """
2354  return _IMP_core.XYZR___ne__(self, *args)
2355 
2356  def __le__(self, *args):
2357  r"""
2358  __le__(XYZR self, XYZR o) -> bool
2359  __le__(XYZR self, Particle d) -> bool
2360  """
2361  return _IMP_core.XYZR___le__(self, *args)
2362 
2363  def __lt__(self, *args):
2364  r"""
2365  __lt__(XYZR self, XYZR o) -> bool
2366  __lt__(XYZR self, Particle d) -> bool
2367  """
2368  return _IMP_core.XYZR___lt__(self, *args)
2369 
2370  def __ge__(self, *args):
2371  r"""
2372  __ge__(XYZR self, XYZR o) -> bool
2373  __ge__(XYZR self, Particle d) -> bool
2374  """
2375  return _IMP_core.XYZR___ge__(self, *args)
2376 
2377  def __gt__(self, *args):
2378  r"""
2379  __gt__(XYZR self, XYZR o) -> bool
2380  __gt__(XYZR self, Particle d) -> bool
2381  """
2382  return _IMP_core.XYZR___gt__(self, *args)
2383 
2384  def __hash__(self):
2385  r"""__hash__(XYZR self) -> std::size_t"""
2386  return _IMP_core.XYZR___hash__(self)
2387 
2388  def __str__(self):
2389  r"""__str__(XYZR self) -> std::string"""
2390  return _IMP_core.XYZR___str__(self)
2391 
2392  def __repr__(self):
2393  r"""__repr__(XYZR self) -> std::string"""
2394  return _IMP_core.XYZR___repr__(self)
2395 
2396  def _get_as_binary(self):
2397  r"""_get_as_binary(XYZR self) -> PyObject *"""
2398  return _IMP_core.XYZR__get_as_binary(self)
2399 
2400  def _set_from_binary(self, p):
2401  r"""_set_from_binary(XYZR self, PyObject * p)"""
2402  return _IMP_core.XYZR__set_from_binary(self, p)
2403 
2404  def __getstate__(self):
2405  p = self._get_as_binary()
2406  if len(self.__dict__) > 1:
2407  d = self.__dict__.copy()
2408  del d['this']
2409  p = (d, p)
2410  return p
2411 
2412  def __setstate__(self, p):
2413  if not hasattr(self, 'this'):
2414  self.__init__()
2415  if isinstance(p, tuple):
2416  d, p = p
2417  self.__dict__.update(d)
2418  return self._set_from_binary(p)
2419 
2420  __swig_destroy__ = _IMP_core.delete_XYZR
2421 
2422 # Register XYZR in _IMP_core:
2423 _IMP_core.XYZR_swigregister(XYZR)
2424 
2425 def set_enclosing_sphere(b, v, slack=0):
2426  r"""set_enclosing_sphere(XYZR b, IMP::core::XYZs const & v, double slack=0)"""
2427  return _IMP_core.set_enclosing_sphere(b, v, slack)
2428 
2429 def set_enclosing_radius(b, v):
2430  r"""set_enclosing_radius(XYZR b, IMP::core::XYZs const & v)"""
2431  return _IMP_core.set_enclosing_radius(b, v)
2432 
2433 def get_enclosing_sphere(v):
2434  r"""get_enclosing_sphere(IMP::core::XYZs const & v) -> Sphere3D"""
2435  return _IMP_core.get_enclosing_sphere(v)
2436 
2437 def create_xyzr_particles(m, num, radius, box_side=10):
2438  r"""create_xyzr_particles(Model m, unsigned int num, IMP::Float radius, IMP::Float box_side=10) -> IMP::core::XYZRs"""
2439  return _IMP_core.create_xyzr_particles(m, num, radius, box_side)
2440 class XYZRGeometry(IMP.display.SingletonGeometry):
2441  r"""Proxy of C++ IMP::core::XYZRGeometry class."""
2442 
2443  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2444 
2445  def __init__(self, *args):
2446  r"""
2447  __init__(XYZRGeometry self, Particle p) -> XYZRGeometry
2448  __init__(XYZRGeometry self, XYZR d) -> XYZRGeometry
2449  """
2450  _IMP_core.XYZRGeometry_swiginit(self, _IMP_core.new_XYZRGeometry(*args))
2451 
2452  def get_version_info(self):
2453  r"""get_version_info(XYZRGeometry self) -> VersionInfo"""
2454  return _IMP_core.XYZRGeometry_get_version_info(self)
2455  __swig_destroy__ = _IMP_core.delete_XYZRGeometry
2456 
2457  def __str__(self):
2458  r"""__str__(XYZRGeometry self) -> std::string"""
2459  return _IMP_core.XYZRGeometry___str__(self)
2460 
2461  def __repr__(self):
2462  r"""__repr__(XYZRGeometry self) -> std::string"""
2463  return _IMP_core.XYZRGeometry___repr__(self)
2464 
2465  @staticmethod
2466  def get_from(o):
2467  return _object_cast_to_XYZRGeometry(o)
2468 
2469 
2470 # Register XYZRGeometry in _IMP_core:
2471 _IMP_core.XYZRGeometry_swigregister(XYZRGeometry)
2472 class XYZRsGeometry(IMP.display.SingletonsGeometry):
2473  r"""Proxy of C++ IMP::core::XYZRsGeometry class."""
2474 
2475  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2476 
2477  def __init__(self, sc):
2478  r"""__init__(XYZRsGeometry self, SingletonContainer sc) -> XYZRsGeometry"""
2479  _IMP_core.XYZRsGeometry_swiginit(self, _IMP_core.new_XYZRsGeometry(sc))
2480 
2481  def get_version_info(self):
2482  r"""get_version_info(XYZRsGeometry self) -> VersionInfo"""
2483  return _IMP_core.XYZRsGeometry_get_version_info(self)
2484  __swig_destroy__ = _IMP_core.delete_XYZRsGeometry
2485 
2486  def __str__(self):
2487  r"""__str__(XYZRsGeometry self) -> std::string"""
2488  return _IMP_core.XYZRsGeometry___str__(self)
2489 
2490  def __repr__(self):
2491  r"""__repr__(XYZRsGeometry self) -> std::string"""
2492  return _IMP_core.XYZRsGeometry___repr__(self)
2493 
2494  @staticmethod
2495  def get_from(o):
2496  return _object_cast_to_XYZRsGeometry(o)
2497 
2498 
2499 # Register XYZRsGeometry in _IMP_core:
2500 _IMP_core.XYZRsGeometry_swigregister(XYZRsGeometry)
2501 class XYZDerivativeGeometry(IMP.display.SingletonGeometry):
2502  r"""Proxy of C++ IMP::core::XYZDerivativeGeometry class."""
2503 
2504  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2505 
2506  def __init__(self, *args):
2507  r"""
2508  __init__(XYZDerivativeGeometry self, Particle p) -> XYZDerivativeGeometry
2509  __init__(XYZDerivativeGeometry self, XYZ d) -> XYZDerivativeGeometry
2510  """
2511  _IMP_core.XYZDerivativeGeometry_swiginit(self, _IMP_core.new_XYZDerivativeGeometry(*args))
2512 
2513  def get_version_info(self):
2514  r"""get_version_info(XYZDerivativeGeometry self) -> VersionInfo"""
2515  return _IMP_core.XYZDerivativeGeometry_get_version_info(self)
2516  __swig_destroy__ = _IMP_core.delete_XYZDerivativeGeometry
2517 
2518  def __str__(self):
2519  r"""__str__(XYZDerivativeGeometry self) -> std::string"""
2520  return _IMP_core.XYZDerivativeGeometry___str__(self)
2521 
2522  def __repr__(self):
2523  r"""__repr__(XYZDerivativeGeometry self) -> std::string"""
2524  return _IMP_core.XYZDerivativeGeometry___repr__(self)
2525 
2526  @staticmethod
2527  def get_from(o):
2528  return _object_cast_to_XYZDerivativeGeometry(o)
2529 
2530 
2531 # Register XYZDerivativeGeometry in _IMP_core:
2532 _IMP_core.XYZDerivativeGeometry_swigregister(XYZDerivativeGeometry)
2533 class XYZDerivativesGeometry(IMP.display.SingletonsGeometry):
2534  r"""Proxy of C++ IMP::core::XYZDerivativesGeometry class."""
2535 
2536  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2537 
2538  def __init__(self, sc):
2539  r"""__init__(XYZDerivativesGeometry self, SingletonContainer sc) -> XYZDerivativesGeometry"""
2540  _IMP_core.XYZDerivativesGeometry_swiginit(self, _IMP_core.new_XYZDerivativesGeometry(sc))
2541 
2542  def get_version_info(self):
2543  r"""get_version_info(XYZDerivativesGeometry self) -> VersionInfo"""
2544  return _IMP_core.XYZDerivativesGeometry_get_version_info(self)
2545  __swig_destroy__ = _IMP_core.delete_XYZDerivativesGeometry
2546 
2547  def __str__(self):
2548  r"""__str__(XYZDerivativesGeometry self) -> std::string"""
2549  return _IMP_core.XYZDerivativesGeometry___str__(self)
2550 
2551  def __repr__(self):
2552  r"""__repr__(XYZDerivativesGeometry self) -> std::string"""
2553  return _IMP_core.XYZDerivativesGeometry___repr__(self)
2554 
2555  @staticmethod
2556  def get_from(o):
2557  return _object_cast_to_XYZDerivativesGeometry(o)
2558 
2559 
2560 # Register XYZDerivativesGeometry in _IMP_core:
2561 _IMP_core.XYZDerivativesGeometry_swigregister(XYZDerivativesGeometry)
2562 class EdgePairGeometry(IMP.display.PairGeometry):
2563  r"""Proxy of C++ IMP::core::EdgePairGeometry class."""
2564 
2565  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2566 
2567  def __init__(self, pp):
2568  r"""__init__(EdgePairGeometry self, IMP::ParticlePair const & pp) -> EdgePairGeometry"""
2569  _IMP_core.EdgePairGeometry_swiginit(self, _IMP_core.new_EdgePairGeometry(pp))
2570 
2571  def get_version_info(self):
2572  r"""get_version_info(EdgePairGeometry self) -> VersionInfo"""
2573  return _IMP_core.EdgePairGeometry_get_version_info(self)
2574  __swig_destroy__ = _IMP_core.delete_EdgePairGeometry
2575 
2576  def __str__(self):
2577  r"""__str__(EdgePairGeometry self) -> std::string"""
2578  return _IMP_core.EdgePairGeometry___str__(self)
2579 
2580  def __repr__(self):
2581  r"""__repr__(EdgePairGeometry self) -> std::string"""
2582  return _IMP_core.EdgePairGeometry___repr__(self)
2583 
2584  @staticmethod
2585  def get_from(o):
2586  return _object_cast_to_EdgePairGeometry(o)
2587 
2588 
2589 # Register EdgePairGeometry in _IMP_core:
2590 _IMP_core.EdgePairGeometry_swigregister(EdgePairGeometry)
2591 class EdgePairsGeometry(IMP.display.PairsGeometry):
2592  r"""Proxy of C++ IMP::core::EdgePairsGeometry class."""
2593 
2594  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2595 
2596  def __init__(self, sc):
2597  r"""__init__(EdgePairsGeometry self, PairContainer sc) -> EdgePairsGeometry"""
2598  _IMP_core.EdgePairsGeometry_swiginit(self, _IMP_core.new_EdgePairsGeometry(sc))
2599 
2600  def get_version_info(self):
2601  r"""get_version_info(EdgePairsGeometry self) -> VersionInfo"""
2602  return _IMP_core.EdgePairsGeometry_get_version_info(self)
2603  __swig_destroy__ = _IMP_core.delete_EdgePairsGeometry
2604 
2605  def __str__(self):
2606  r"""__str__(EdgePairsGeometry self) -> std::string"""
2607  return _IMP_core.EdgePairsGeometry___str__(self)
2608 
2609  def __repr__(self):
2610  r"""__repr__(EdgePairsGeometry self) -> std::string"""
2611  return _IMP_core.EdgePairsGeometry___repr__(self)
2612 
2613  @staticmethod
2614  def get_from(o):
2615  return _object_cast_to_EdgePairsGeometry(o)
2616 
2617 
2618 # Register EdgePairsGeometry in _IMP_core:
2619 _IMP_core.EdgePairsGeometry_swigregister(EdgePairsGeometry)
2620 class Direction(IMP.Decorator):
2621  r"""Proxy of C++ IMP::core::Direction class."""
2622 
2623  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2624 
2625  @staticmethod
2626  def do_setup_particle(m, pi, v):
2627  r"""do_setup_particle(Model m, ParticleIndex pi, Vector3D v)"""
2628  return _IMP_core.Direction_do_setup_particle(m, pi, v)
2629 
2630  def __init__(self, *args):
2631  r"""
2632  __init__(Direction self) -> Direction
2633  __init__(Direction self, Model m, ParticleIndex id) -> Direction
2634  __init__(Direction self, _ParticleAdaptor d) -> Direction
2635  """
2636  _IMP_core.Direction_swiginit(self, _IMP_core.new_Direction(*args))
2637 
2638  def show(self, *args):
2639  r"""show(Direction self, _ostream out=std::cout)"""
2640  return _IMP_core.Direction_show(self, *args)
2641 
2642  @staticmethod
2643  def setup_particle(*args):
2644  r"""
2645  setup_particle(Model m, ParticleIndex pi, Vector3D v) -> Direction
2646  setup_particle(_ParticleAdaptor pa, Vector3D v) -> Direction
2647  """
2648  return _IMP_core.Direction_setup_particle(*args)
2649 
2650  @staticmethod
2651  def get_is_setup(*args):
2652  r"""
2653  get_is_setup(_ParticleAdaptor p) -> bool
2654  get_is_setup(Model m, ParticleIndex pi) -> bool
2655  """
2656  return _IMP_core.Direction_get_is_setup(*args)
2657 
2658  @staticmethod
2659  def get_direction_key(i):
2660  r"""get_direction_key(unsigned int i) -> FloatKey"""
2661  return _IMP_core.Direction_get_direction_key(i)
2662 
2663  def get_direction_derivative(self, i):
2664  r"""get_direction_derivative(Direction self, int i) -> IMP::Float"""
2665  return _IMP_core.Direction_get_direction_derivative(self, i)
2666 
2667  def get_direction_derivatives(self):
2668  r"""get_direction_derivatives(Direction self) -> Vector3D"""
2669  return _IMP_core.Direction_get_direction_derivatives(self)
2670 
2671  def add_to_direction_derivative(self, i, v, d):
2672  r"""add_to_direction_derivative(Direction self, int i, IMP::Float v, DerivativeAccumulator d)"""
2673  return _IMP_core.Direction_add_to_direction_derivative(self, i, v, d)
2674 
2675  def add_to_direction_derivatives(self, v, d):
2676  r"""add_to_direction_derivatives(Direction self, Vector3D v, DerivativeAccumulator d)"""
2677  return _IMP_core.Direction_add_to_direction_derivatives(self, v, d)
2678 
2679  def get_direction_is_optimized(self):
2680  r"""get_direction_is_optimized(Direction self) -> bool"""
2681  return _IMP_core.Direction_get_direction_is_optimized(self)
2682 
2683  def set_direction_is_optimized(self, tf):
2684  r"""set_direction_is_optimized(Direction self, bool tf)"""
2685  return _IMP_core.Direction_set_direction_is_optimized(self, tf)
2686 
2687  def get_direction(self):
2688  r"""get_direction(Direction self) -> Vector3D"""
2689  return _IMP_core.Direction_get_direction(self)
2690 
2691  def set_direction(self, v):
2692  r"""set_direction(Direction self, Vector3D v)"""
2693  return _IMP_core.Direction_set_direction(self, v)
2694 
2695  def reflect(self):
2696  r"""reflect(Direction self)"""
2697  return _IMP_core.Direction_reflect(self)
2698 
2699  def add_attribute(self, *args):
2700  r"""
2701  add_attribute(Direction self, FloatKey k, IMP::Float v, bool opt)
2702  add_attribute(Direction self, FloatKey a0, IMP::Float a1)
2703  add_attribute(Direction self, IntKey a0, IMP::Int a1)
2704  add_attribute(Direction self, FloatsKey a0, IMP::Floats a1)
2705  add_attribute(Direction self, IntsKey a0, IMP::Ints a1)
2706  add_attribute(Direction self, StringKey a0, IMP::String a1)
2707  add_attribute(Direction self, ParticleIndexKey a0, Particle a1)
2708  add_attribute(Direction self, ObjectKey a0, Object a1)
2709  add_attribute(Direction self, SparseFloatKey a0, IMP::Float a1)
2710  add_attribute(Direction self, SparseIntKey a0, IMP::Int a1)
2711  add_attribute(Direction self, SparseStringKey a0, IMP::String a1)
2712  add_attribute(Direction self, SparseParticleIndexKey a0, ParticleIndex a1)
2713  """
2714  return _IMP_core.Direction_add_attribute(self, *args)
2715 
2716  def get_value(self, *args):
2717  r"""
2718  get_value(Direction self, FloatKey a0) -> IMP::Float
2719  get_value(Direction self, IntKey a0) -> IMP::Int
2720  get_value(Direction self, FloatsKey a0) -> IMP::Floats
2721  get_value(Direction self, IntsKey a0) -> IMP::Ints
2722  get_value(Direction self, StringKey a0) -> IMP::String
2723  get_value(Direction self, ParticleIndexKey a0) -> Particle
2724  get_value(Direction self, ObjectKey a0) -> Object
2725  get_value(Direction self, SparseFloatKey a0) -> IMP::Float
2726  get_value(Direction self, SparseIntKey a0) -> IMP::Int
2727  get_value(Direction self, SparseStringKey a0) -> IMP::String
2728  get_value(Direction self, SparseParticleIndexKey a0) -> ParticleIndex
2729  """
2730  return _IMP_core.Direction_get_value(self, *args)
2731 
2732  def set_value(self, *args):
2733  r"""
2734  set_value(Direction self, FloatKey a0, IMP::Float a1)
2735  set_value(Direction self, IntKey a0, IMP::Int a1)
2736  set_value(Direction self, FloatsKey a0, IMP::Floats a1)
2737  set_value(Direction self, IntsKey a0, IMP::Ints a1)
2738  set_value(Direction self, StringKey a0, IMP::String a1)
2739  set_value(Direction self, ParticleIndexKey a0, Particle a1)
2740  set_value(Direction self, ObjectKey a0, Object a1)
2741  set_value(Direction self, SparseFloatKey a0, IMP::Float a1)
2742  set_value(Direction self, SparseIntKey a0, IMP::Int a1)
2743  set_value(Direction self, SparseStringKey a0, IMP::String a1)
2744  set_value(Direction self, SparseParticleIndexKey a0, ParticleIndex a1)
2745  """
2746  return _IMP_core.Direction_set_value(self, *args)
2747 
2748  def remove_attribute(self, *args):
2749  r"""
2750  remove_attribute(Direction self, FloatKey a0)
2751  remove_attribute(Direction self, IntKey a0)
2752  remove_attribute(Direction self, FloatsKey a0)
2753  remove_attribute(Direction self, IntsKey a0)
2754  remove_attribute(Direction self, StringKey a0)
2755  remove_attribute(Direction self, ParticleIndexKey a0)
2756  remove_attribute(Direction self, ObjectKey a0)
2757  remove_attribute(Direction self, SparseFloatKey a0)
2758  remove_attribute(Direction self, SparseIntKey a0)
2759  remove_attribute(Direction self, SparseStringKey a0)
2760  remove_attribute(Direction self, SparseParticleIndexKey a0)
2761  """
2762  return _IMP_core.Direction_remove_attribute(self, *args)
2763 
2764  def has_attribute(self, *args):
2765  r"""
2766  has_attribute(Direction self, FloatKey a0) -> bool
2767  has_attribute(Direction self, IntKey a0) -> bool
2768  has_attribute(Direction self, FloatsKey a0) -> bool
2769  has_attribute(Direction self, IntsKey a0) -> bool
2770  has_attribute(Direction self, StringKey a0) -> bool
2771  has_attribute(Direction self, ParticleIndexKey a0) -> bool
2772  has_attribute(Direction self, ObjectKey a0) -> bool
2773  has_attribute(Direction self, SparseFloatKey a0) -> bool
2774  has_attribute(Direction self, SparseIntKey a0) -> bool
2775  has_attribute(Direction self, SparseStringKey a0) -> bool
2776  has_attribute(Direction self, SparseParticleIndexKey a0) -> bool
2777  """
2778  return _IMP_core.Direction_has_attribute(self, *args)
2779 
2780  def get_derivative(self, a0):
2781  r"""get_derivative(Direction self, FloatKey a0) -> double"""
2782  return _IMP_core.Direction_get_derivative(self, a0)
2783 
2784  def get_name(self):
2785  r"""get_name(Direction self) -> std::string"""
2786  return _IMP_core.Direction_get_name(self)
2787 
2788  def clear_caches(self):
2789  r"""clear_caches(Direction self)"""
2790  return _IMP_core.Direction_clear_caches(self)
2791 
2792  def set_name(self, a0):
2793  r"""set_name(Direction self, std::string a0)"""
2794  return _IMP_core.Direction_set_name(self, a0)
2795 
2796  def set_check_level(self, a0):
2797  r"""set_check_level(Direction self, IMP::CheckLevel a0)"""
2798  return _IMP_core.Direction_set_check_level(self, a0)
2799 
2800  def add_to_derivative(self, a0, a1, a2):
2801  r"""add_to_derivative(Direction self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2802  return _IMP_core.Direction_add_to_derivative(self, a0, a1, a2)
2803 
2804  def set_is_optimized(self, a0, a1):
2805  r"""set_is_optimized(Direction self, FloatKey a0, bool a1)"""
2806  return _IMP_core.Direction_set_is_optimized(self, a0, a1)
2807 
2808  def get_is_optimized(self, a0):
2809  r"""get_is_optimized(Direction self, FloatKey a0) -> bool"""
2810  return _IMP_core.Direction_get_is_optimized(self, a0)
2811 
2812  def get_check_level(self):
2813  r"""get_check_level(Direction self) -> IMP::CheckLevel"""
2814  return _IMP_core.Direction_get_check_level(self)
2815 
2816  def __eq__(self, *args):
2817  r"""
2818  __eq__(Direction self, Direction o) -> bool
2819  __eq__(Direction self, Particle d) -> bool
2820  """
2821  return _IMP_core.Direction___eq__(self, *args)
2822 
2823  def __ne__(self, *args):
2824  r"""
2825  __ne__(Direction self, Direction o) -> bool
2826  __ne__(Direction self, Particle d) -> bool
2827  """
2828  return _IMP_core.Direction___ne__(self, *args)
2829 
2830  def __le__(self, *args):
2831  r"""
2832  __le__(Direction self, Direction o) -> bool
2833  __le__(Direction self, Particle d) -> bool
2834  """
2835  return _IMP_core.Direction___le__(self, *args)
2836 
2837  def __lt__(self, *args):
2838  r"""
2839  __lt__(Direction self, Direction o) -> bool
2840  __lt__(Direction self, Particle d) -> bool
2841  """
2842  return _IMP_core.Direction___lt__(self, *args)
2843 
2844  def __ge__(self, *args):
2845  r"""
2846  __ge__(Direction self, Direction o) -> bool
2847  __ge__(Direction self, Particle d) -> bool
2848  """
2849  return _IMP_core.Direction___ge__(self, *args)
2850 
2851  def __gt__(self, *args):
2852  r"""
2853  __gt__(Direction self, Direction o) -> bool
2854  __gt__(Direction self, Particle d) -> bool
2855  """
2856  return _IMP_core.Direction___gt__(self, *args)
2857 
2858  def __hash__(self):
2859  r"""__hash__(Direction self) -> std::size_t"""
2860  return _IMP_core.Direction___hash__(self)
2861 
2862  def __str__(self):
2863  r"""__str__(Direction self) -> std::string"""
2864  return _IMP_core.Direction___str__(self)
2865 
2866  def __repr__(self):
2867  r"""__repr__(Direction self) -> std::string"""
2868  return _IMP_core.Direction___repr__(self)
2869 
2870  def _get_as_binary(self):
2871  r"""_get_as_binary(Direction self) -> PyObject *"""
2872  return _IMP_core.Direction__get_as_binary(self)
2873 
2874  def _set_from_binary(self, p):
2875  r"""_set_from_binary(Direction self, PyObject * p)"""
2876  return _IMP_core.Direction__set_from_binary(self, p)
2877 
2878  def __getstate__(self):
2879  p = self._get_as_binary()
2880  if len(self.__dict__) > 1:
2881  d = self.__dict__.copy()
2882  del d['this']
2883  p = (d, p)
2884  return p
2885 
2886  def __setstate__(self, p):
2887  if not hasattr(self, 'this'):
2888  self.__init__()
2889  if isinstance(p, tuple):
2890  d, p = p
2891  self.__dict__.update(d)
2892  return self._set_from_binary(p)
2893 
2894  __swig_destroy__ = _IMP_core.delete_Direction
2895 
2896 # Register Direction in _IMP_core:
2897 _IMP_core.Direction_swigregister(Direction)
2898 
2899 def get_angle(a, b):
2900  r"""get_angle(Direction a, Direction b) -> double"""
2901  return _IMP_core.get_angle(a, b)
2902 class DirectionAngle(IMP.Decorator):
2903  r"""Proxy of C++ IMP::core::DirectionAngle class."""
2904 
2905  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2906 
2907  def __init__(self, *args):
2908  r"""
2909  __init__(DirectionAngle self) -> DirectionAngle
2910  __init__(DirectionAngle self, Model m, ParticleIndex id) -> DirectionAngle
2911  __init__(DirectionAngle self, _ParticleAdaptor d) -> DirectionAngle
2912  """
2913  _IMP_core.DirectionAngle_swiginit(self, _IMP_core.new_DirectionAngle(*args))
2914 
2915  def show(self, *args):
2916  r"""show(DirectionAngle self, _ostream out=std::cout)"""
2917  return _IMP_core.DirectionAngle_show(self, *args)
2918 
2919  @staticmethod
2920  def setup_particle(*args):
2921  r"""
2922  setup_particle(Model m, ParticleIndex pi, IMP::ParticleIndexPair ds) -> DirectionAngle
2923  setup_particle(_ParticleAdaptor pa, IMP::ParticleIndexPair ds) -> DirectionAngle
2924  setup_particle(Model m, ParticleIndex pi, _ParticleIndexAdaptor d0, _ParticleIndexAdaptor d1) -> DirectionAngle
2925  setup_particle(_ParticleAdaptor pa, _ParticleIndexAdaptor d0, _ParticleIndexAdaptor d1) -> DirectionAngle
2926  """
2927  return _IMP_core.DirectionAngle_setup_particle(*args)
2928 
2929  @staticmethod
2930  def get_is_setup(*args):
2931  r"""
2932  get_is_setup(_ParticleAdaptor p) -> bool
2933  get_is_setup(Model m, ParticleIndex pi) -> bool
2934  """
2935  return _IMP_core.DirectionAngle_get_is_setup(*args)
2936 
2937  @staticmethod
2938  def get_angle_key():
2939  r"""get_angle_key() -> FloatKey"""
2940  return _IMP_core.DirectionAngle_get_angle_key()
2941 
2942  @staticmethod
2943  def get_particle_key(i):
2944  r"""get_particle_key(unsigned int i) -> ParticleIndexKey"""
2945  return _IMP_core.DirectionAngle_get_particle_key(i)
2946 
2947  def get_particle(self, *args):
2948  r"""
2949  get_particle(DirectionAngle self, unsigned int i) -> Particle
2950  get_particle(DirectionAngle self) -> Particle
2951  """
2952  return _IMP_core.DirectionAngle_get_particle(self, *args)
2953 
2954  def get_particle_index(self, *args):
2955  r"""
2956  get_particle_index(DirectionAngle self, unsigned int i) -> ParticleIndex
2957  get_particle_index(DirectionAngle self) -> ParticleIndex
2958  """
2959  return _IMP_core.DirectionAngle_get_particle_index(self, *args)
2960 
2961  def get_angle(self):
2962  r"""get_angle(DirectionAngle self) -> IMP::Float"""
2963  return _IMP_core.DirectionAngle_get_angle(self)
2964 
2965  def get_angle_derivative(self):
2966  r"""get_angle_derivative(DirectionAngle self) -> IMP::Float"""
2967  return _IMP_core.DirectionAngle_get_angle_derivative(self)
2968 
2969  def add_to_angle_derivative(self, v, d):
2970  r"""add_to_angle_derivative(DirectionAngle self, IMP::Float v, DerivativeAccumulator d)"""
2971  return _IMP_core.DirectionAngle_add_to_angle_derivative(self, v, d)
2972 
2973  def add_attribute(self, *args):
2974  r"""
2975  add_attribute(DirectionAngle self, FloatKey k, IMP::Float v, bool opt)
2976  add_attribute(DirectionAngle self, FloatKey a0, IMP::Float a1)
2977  add_attribute(DirectionAngle self, IntKey a0, IMP::Int a1)
2978  add_attribute(DirectionAngle self, FloatsKey a0, IMP::Floats a1)
2979  add_attribute(DirectionAngle self, IntsKey a0, IMP::Ints a1)
2980  add_attribute(DirectionAngle self, StringKey a0, IMP::String a1)
2981  add_attribute(DirectionAngle self, ParticleIndexKey a0, Particle a1)
2982  add_attribute(DirectionAngle self, ObjectKey a0, Object a1)
2983  add_attribute(DirectionAngle self, SparseFloatKey a0, IMP::Float a1)
2984  add_attribute(DirectionAngle self, SparseIntKey a0, IMP::Int a1)
2985  add_attribute(DirectionAngle self, SparseStringKey a0, IMP::String a1)
2986  add_attribute(DirectionAngle self, SparseParticleIndexKey a0, ParticleIndex a1)
2987  """
2988  return _IMP_core.DirectionAngle_add_attribute(self, *args)
2989 
2990  def get_value(self, *args):
2991  r"""
2992  get_value(DirectionAngle self, FloatKey a0) -> IMP::Float
2993  get_value(DirectionAngle self, IntKey a0) -> IMP::Int
2994  get_value(DirectionAngle self, FloatsKey a0) -> IMP::Floats
2995  get_value(DirectionAngle self, IntsKey a0) -> IMP::Ints
2996  get_value(DirectionAngle self, StringKey a0) -> IMP::String
2997  get_value(DirectionAngle self, ParticleIndexKey a0) -> Particle
2998  get_value(DirectionAngle self, ObjectKey a0) -> Object
2999  get_value(DirectionAngle self, SparseFloatKey a0) -> IMP::Float
3000  get_value(DirectionAngle self, SparseIntKey a0) -> IMP::Int
3001  get_value(DirectionAngle self, SparseStringKey a0) -> IMP::String
3002  get_value(DirectionAngle self, SparseParticleIndexKey a0) -> ParticleIndex
3003  """
3004  return _IMP_core.DirectionAngle_get_value(self, *args)
3005 
3006  def set_value(self, *args):
3007  r"""
3008  set_value(DirectionAngle self, FloatKey a0, IMP::Float a1)
3009  set_value(DirectionAngle self, IntKey a0, IMP::Int a1)
3010  set_value(DirectionAngle self, FloatsKey a0, IMP::Floats a1)
3011  set_value(DirectionAngle self, IntsKey a0, IMP::Ints a1)
3012  set_value(DirectionAngle self, StringKey a0, IMP::String a1)
3013  set_value(DirectionAngle self, ParticleIndexKey a0, Particle a1)
3014  set_value(DirectionAngle self, ObjectKey a0, Object a1)
3015  set_value(DirectionAngle self, SparseFloatKey a0, IMP::Float a1)
3016  set_value(DirectionAngle self, SparseIntKey a0, IMP::Int a1)
3017  set_value(DirectionAngle self, SparseStringKey a0, IMP::String a1)
3018  set_value(DirectionAngle self, SparseParticleIndexKey a0, ParticleIndex a1)
3019  """
3020  return _IMP_core.DirectionAngle_set_value(self, *args)
3021 
3022  def remove_attribute(self, *args):
3023  r"""
3024  remove_attribute(DirectionAngle self, FloatKey a0)
3025  remove_attribute(DirectionAngle self, IntKey a0)
3026  remove_attribute(DirectionAngle self, FloatsKey a0)
3027  remove_attribute(DirectionAngle self, IntsKey a0)
3028  remove_attribute(DirectionAngle self, StringKey a0)
3029  remove_attribute(DirectionAngle self, ParticleIndexKey a0)
3030  remove_attribute(DirectionAngle self, ObjectKey a0)
3031  remove_attribute(DirectionAngle self, SparseFloatKey a0)
3032  remove_attribute(DirectionAngle self, SparseIntKey a0)
3033  remove_attribute(DirectionAngle self, SparseStringKey a0)
3034  remove_attribute(DirectionAngle self, SparseParticleIndexKey a0)
3035  """
3036  return _IMP_core.DirectionAngle_remove_attribute(self, *args)
3037 
3038  def has_attribute(self, *args):
3039  r"""
3040  has_attribute(DirectionAngle self, FloatKey a0) -> bool
3041  has_attribute(DirectionAngle self, IntKey a0) -> bool
3042  has_attribute(DirectionAngle self, FloatsKey a0) -> bool
3043  has_attribute(DirectionAngle self, IntsKey a0) -> bool
3044  has_attribute(DirectionAngle self, StringKey a0) -> bool
3045  has_attribute(DirectionAngle self, ParticleIndexKey a0) -> bool
3046  has_attribute(DirectionAngle self, ObjectKey a0) -> bool
3047  has_attribute(DirectionAngle self, SparseFloatKey a0) -> bool
3048  has_attribute(DirectionAngle self, SparseIntKey a0) -> bool
3049  has_attribute(DirectionAngle self, SparseStringKey a0) -> bool
3050  has_attribute(DirectionAngle self, SparseParticleIndexKey a0) -> bool
3051  """
3052  return _IMP_core.DirectionAngle_has_attribute(self, *args)
3053 
3054  def get_derivative(self, a0):
3055  r"""get_derivative(DirectionAngle self, FloatKey a0) -> double"""
3056  return _IMP_core.DirectionAngle_get_derivative(self, a0)
3057 
3058  def get_name(self):
3059  r"""get_name(DirectionAngle self) -> std::string"""
3060  return _IMP_core.DirectionAngle_get_name(self)
3061 
3062  def clear_caches(self):
3063  r"""clear_caches(DirectionAngle self)"""
3064  return _IMP_core.DirectionAngle_clear_caches(self)
3065 
3066  def set_name(self, a0):
3067  r"""set_name(DirectionAngle self, std::string a0)"""
3068  return _IMP_core.DirectionAngle_set_name(self, a0)
3069 
3070  def set_check_level(self, a0):
3071  r"""set_check_level(DirectionAngle self, IMP::CheckLevel a0)"""
3072  return _IMP_core.DirectionAngle_set_check_level(self, a0)
3073 
3074  def add_to_derivative(self, a0, a1, a2):
3075  r"""add_to_derivative(DirectionAngle self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3076  return _IMP_core.DirectionAngle_add_to_derivative(self, a0, a1, a2)
3077 
3078  def set_is_optimized(self, a0, a1):
3079  r"""set_is_optimized(DirectionAngle self, FloatKey a0, bool a1)"""
3080  return _IMP_core.DirectionAngle_set_is_optimized(self, a0, a1)
3081 
3082  def get_is_optimized(self, a0):
3083  r"""get_is_optimized(DirectionAngle self, FloatKey a0) -> bool"""
3084  return _IMP_core.DirectionAngle_get_is_optimized(self, a0)
3085 
3086  def get_check_level(self):
3087  r"""get_check_level(DirectionAngle self) -> IMP::CheckLevel"""
3088  return _IMP_core.DirectionAngle_get_check_level(self)
3089 
3090  def __eq__(self, *args):
3091  r"""
3092  __eq__(DirectionAngle self, DirectionAngle o) -> bool
3093  __eq__(DirectionAngle self, Particle d) -> bool
3094  """
3095  return _IMP_core.DirectionAngle___eq__(self, *args)
3096 
3097  def __ne__(self, *args):
3098  r"""
3099  __ne__(DirectionAngle self, DirectionAngle o) -> bool
3100  __ne__(DirectionAngle self, Particle d) -> bool
3101  """
3102  return _IMP_core.DirectionAngle___ne__(self, *args)
3103 
3104  def __le__(self, *args):
3105  r"""
3106  __le__(DirectionAngle self, DirectionAngle o) -> bool
3107  __le__(DirectionAngle self, Particle d) -> bool
3108  """
3109  return _IMP_core.DirectionAngle___le__(self, *args)
3110 
3111  def __lt__(self, *args):
3112  r"""
3113  __lt__(DirectionAngle self, DirectionAngle o) -> bool
3114  __lt__(DirectionAngle self, Particle d) -> bool
3115  """
3116  return _IMP_core.DirectionAngle___lt__(self, *args)
3117 
3118  def __ge__(self, *args):
3119  r"""
3120  __ge__(DirectionAngle self, DirectionAngle o) -> bool
3121  __ge__(DirectionAngle self, Particle d) -> bool
3122  """
3123  return _IMP_core.DirectionAngle___ge__(self, *args)
3124 
3125  def __gt__(self, *args):
3126  r"""
3127  __gt__(DirectionAngle self, DirectionAngle o) -> bool
3128  __gt__(DirectionAngle self, Particle d) -> bool
3129  """
3130  return _IMP_core.DirectionAngle___gt__(self, *args)
3131 
3132  def __hash__(self):
3133  r"""__hash__(DirectionAngle self) -> std::size_t"""
3134  return _IMP_core.DirectionAngle___hash__(self)
3135 
3136  def __str__(self):
3137  r"""__str__(DirectionAngle self) -> std::string"""
3138  return _IMP_core.DirectionAngle___str__(self)
3139 
3140  def __repr__(self):
3141  r"""__repr__(DirectionAngle self) -> std::string"""
3142  return _IMP_core.DirectionAngle___repr__(self)
3143 
3144  def _get_as_binary(self):
3145  r"""_get_as_binary(DirectionAngle self) -> PyObject *"""
3146  return _IMP_core.DirectionAngle__get_as_binary(self)
3147 
3148  def _set_from_binary(self, p):
3149  r"""_set_from_binary(DirectionAngle self, PyObject * p)"""
3150  return _IMP_core.DirectionAngle__set_from_binary(self, p)
3151 
3152  def __getstate__(self):
3153  p = self._get_as_binary()
3154  if len(self.__dict__) > 1:
3155  d = self.__dict__.copy()
3156  del d['this']
3157  p = (d, p)
3158  return p
3159 
3160  def __setstate__(self, p):
3161  if not hasattr(self, 'this'):
3162  self.__init__()
3163  if isinstance(p, tuple):
3164  d, p = p
3165  self.__dict__.update(d)
3166  return self._set_from_binary(p)
3167 
3168  __swig_destroy__ = _IMP_core.delete_DirectionAngle
3169 
3170 # Register DirectionAngle in _IMP_core:
3171 _IMP_core.DirectionAngle_swigregister(DirectionAngle)
3172 class Surface(XYZ):
3173  r"""Proxy of C++ IMP::core::Surface class."""
3174 
3175  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3176 
3177  @staticmethod
3178  def do_setup_particle(*args):
3179  r"""
3180  do_setup_particle(Model m, ParticleIndex pi, Vector3D center=IMP::algebra::Vector3D(0, 0, 0), Vector3D normal=IMP::algebra::Vector3D(0, 0, 1))
3181  do_setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf)
3182  """
3183  return _IMP_core.Surface_do_setup_particle(*args)
3184 
3185  def __init__(self, *args):
3186  r"""
3187  __init__(Surface self) -> Surface
3188  __init__(Surface self, Model m, ParticleIndex id) -> Surface
3189  __init__(Surface self, _ParticleAdaptor d) -> Surface
3190  """
3191  _IMP_core.Surface_swiginit(self, _IMP_core.new_Surface(*args))
3192 
3193  def show(self, *args):
3194  r"""show(Surface self, _ostream out=std::cout)"""
3195  return _IMP_core.Surface_show(self, *args)
3196 
3197  @staticmethod
3198  def setup_particle(*args):
3199  r"""
3200  setup_particle(Model m, ParticleIndex pi) -> Surface
3201  setup_particle(_ParticleAdaptor pa) -> Surface
3202  setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf) -> Surface
3203  setup_particle(_ParticleAdaptor pa, ReferenceFrame3D rf) -> Surface
3204  setup_particle(Model m, ParticleIndex pi, Vector3D center) -> Surface
3205  setup_particle(_ParticleAdaptor pa, Vector3D center) -> Surface
3206  setup_particle(Model m, ParticleIndex pi, Vector3D center, Vector3D normal) -> Surface
3207  setup_particle(_ParticleAdaptor pa, Vector3D center, Vector3D normal) -> Surface
3208  """
3209  return _IMP_core.Surface_setup_particle(*args)
3210 
3211  def get_normal_x(self):
3212  r"""get_normal_x(Surface self) -> IMP::Float"""
3213  return _IMP_core.Surface_get_normal_x(self)
3214 
3215  def set_normal_x(self, t):
3216  r"""set_normal_x(Surface self, IMP::Float t)"""
3217  return _IMP_core.Surface_set_normal_x(self, t)
3218 
3219  def get_normal_y(self):
3220  r"""get_normal_y(Surface self) -> IMP::Float"""
3221  return _IMP_core.Surface_get_normal_y(self)
3222 
3223  def set_normal_y(self, t):
3224  r"""set_normal_y(Surface self, IMP::Float t)"""
3225  return _IMP_core.Surface_set_normal_y(self, t)
3226 
3227  def get_normal_z(self):
3228  r"""get_normal_z(Surface self) -> IMP::Float"""
3229  return _IMP_core.Surface_get_normal_z(self)
3230 
3231  def set_normal_z(self, t):
3232  r"""set_normal_z(Surface self, IMP::Float t)"""
3233  return _IMP_core.Surface_set_normal_z(self, t)
3234 
3235  @staticmethod
3236  def get_is_setup(*args):
3237  r"""
3238  get_is_setup(_ParticleAdaptor p) -> bool
3239  get_is_setup(Model m, ParticleIndex pi) -> bool
3240  """
3241  return _IMP_core.Surface_get_is_setup(*args)
3242 
3243  @staticmethod
3244  def get_normal_key(i):
3245  r"""get_normal_key(unsigned int i) -> FloatKey"""
3246  return _IMP_core.Surface_get_normal_key(i)
3247 
3248  def get_normal_derivative(self, i):
3249  r"""get_normal_derivative(Surface self, int i) -> IMP::Float"""
3250  return _IMP_core.Surface_get_normal_derivative(self, i)
3251 
3252  def get_normal_derivatives(self):
3253  r"""get_normal_derivatives(Surface self) -> Vector3D"""
3254  return _IMP_core.Surface_get_normal_derivatives(self)
3255 
3256  def add_to_normal_derivative(self, i, v, d):
3257  r"""add_to_normal_derivative(Surface self, int i, IMP::Float v, DerivativeAccumulator d)"""
3258  return _IMP_core.Surface_add_to_normal_derivative(self, i, v, d)
3259 
3260  def add_to_normal_derivatives(self, v, d):
3261  r"""add_to_normal_derivatives(Surface self, Vector3D v, DerivativeAccumulator d)"""
3262  return _IMP_core.Surface_add_to_normal_derivatives(self, v, d)
3263 
3264  def get_normal_is_optimized(self):
3265  r"""get_normal_is_optimized(Surface self) -> bool"""
3266  return _IMP_core.Surface_get_normal_is_optimized(self)
3267 
3268  def set_normal_is_optimized(self, tf):
3269  r"""set_normal_is_optimized(Surface self, bool tf)"""
3270  return _IMP_core.Surface_set_normal_is_optimized(self, tf)
3271 
3272  def get_normal(self):
3273  r"""get_normal(Surface self) -> Vector3D"""
3274  return _IMP_core.Surface_get_normal(self)
3275 
3276  def set_normal(self, normal):
3277  r"""set_normal(Surface self, Vector3D normal)"""
3278  return _IMP_core.Surface_set_normal(self, normal)
3279 
3280  def reflect(self):
3281  r"""reflect(Surface self)"""
3282  return _IMP_core.Surface_reflect(self)
3283 
3284  def get_height(self, v):
3285  r"""get_height(Surface self, Vector3D v) -> double"""
3286  return _IMP_core.Surface_get_height(self, v)
3287 
3288  def get_depth(self, v):
3289  r"""get_depth(Surface self, Vector3D v) -> double"""
3290  return _IMP_core.Surface_get_depth(self, v)
3291 
3292  def get_distance_to(self, v):
3293  r"""get_distance_to(Surface self, Vector3D v) -> double"""
3294  return _IMP_core.Surface_get_distance_to(self, v)
3295 
3296  def get_distance_to_center(self, v):
3297  r"""get_distance_to_center(Surface self, Vector3D v) -> double"""
3298  return _IMP_core.Surface_get_distance_to_center(self, v)
3299 
3300  def set_reference_frame(self, rf):
3301  r"""set_reference_frame(Surface self, ReferenceFrame3D rf)"""
3302  return _IMP_core.Surface_set_reference_frame(self, rf)
3303 
3304  def get_reference_frame(self):
3305  r"""get_reference_frame(Surface self) -> ReferenceFrame3D"""
3306  return _IMP_core.Surface_get_reference_frame(self)
3307 
3308  def get_plane(self):
3309  r"""get_plane(Surface self) -> Plane3D"""
3310  return _IMP_core.Surface_get_plane(self)
3311 
3312  def add_attribute(self, *args):
3313  r"""
3314  add_attribute(Surface self, FloatKey k, IMP::Float v, bool opt)
3315  add_attribute(Surface self, FloatKey a0, IMP::Float a1)
3316  add_attribute(Surface self, IntKey a0, IMP::Int a1)
3317  add_attribute(Surface self, FloatsKey a0, IMP::Floats a1)
3318  add_attribute(Surface self, IntsKey a0, IMP::Ints a1)
3319  add_attribute(Surface self, StringKey a0, IMP::String a1)
3320  add_attribute(Surface self, ParticleIndexKey a0, Particle a1)
3321  add_attribute(Surface self, ObjectKey a0, Object a1)
3322  add_attribute(Surface self, SparseFloatKey a0, IMP::Float a1)
3323  add_attribute(Surface self, SparseIntKey a0, IMP::Int a1)
3324  add_attribute(Surface self, SparseStringKey a0, IMP::String a1)
3325  add_attribute(Surface self, SparseParticleIndexKey a0, ParticleIndex a1)
3326  """
3327  return _IMP_core.Surface_add_attribute(self, *args)
3328 
3329  def get_value(self, *args):
3330  r"""
3331  get_value(Surface self, FloatKey a0) -> IMP::Float
3332  get_value(Surface self, IntKey a0) -> IMP::Int
3333  get_value(Surface self, FloatsKey a0) -> IMP::Floats
3334  get_value(Surface self, IntsKey a0) -> IMP::Ints
3335  get_value(Surface self, StringKey a0) -> IMP::String
3336  get_value(Surface self, ParticleIndexKey a0) -> Particle
3337  get_value(Surface self, ObjectKey a0) -> Object
3338  get_value(Surface self, SparseFloatKey a0) -> IMP::Float
3339  get_value(Surface self, SparseIntKey a0) -> IMP::Int
3340  get_value(Surface self, SparseStringKey a0) -> IMP::String
3341  get_value(Surface self, SparseParticleIndexKey a0) -> ParticleIndex
3342  """
3343  return _IMP_core.Surface_get_value(self, *args)
3344 
3345  def set_value(self, *args):
3346  r"""
3347  set_value(Surface self, FloatKey a0, IMP::Float a1)
3348  set_value(Surface self, IntKey a0, IMP::Int a1)
3349  set_value(Surface self, FloatsKey a0, IMP::Floats a1)
3350  set_value(Surface self, IntsKey a0, IMP::Ints a1)
3351  set_value(Surface self, StringKey a0, IMP::String a1)
3352  set_value(Surface self, ParticleIndexKey a0, Particle a1)
3353  set_value(Surface self, ObjectKey a0, Object a1)
3354  set_value(Surface self, SparseFloatKey a0, IMP::Float a1)
3355  set_value(Surface self, SparseIntKey a0, IMP::Int a1)
3356  set_value(Surface self, SparseStringKey a0, IMP::String a1)
3357  set_value(Surface self, SparseParticleIndexKey a0, ParticleIndex a1)
3358  """
3359  return _IMP_core.Surface_set_value(self, *args)
3360 
3361  def remove_attribute(self, *args):
3362  r"""
3363  remove_attribute(Surface self, FloatKey a0)
3364  remove_attribute(Surface self, IntKey a0)
3365  remove_attribute(Surface self, FloatsKey a0)
3366  remove_attribute(Surface self, IntsKey a0)
3367  remove_attribute(Surface self, StringKey a0)
3368  remove_attribute(Surface self, ParticleIndexKey a0)
3369  remove_attribute(Surface self, ObjectKey a0)
3370  remove_attribute(Surface self, SparseFloatKey a0)
3371  remove_attribute(Surface self, SparseIntKey a0)
3372  remove_attribute(Surface self, SparseStringKey a0)
3373  remove_attribute(Surface self, SparseParticleIndexKey a0)
3374  """
3375  return _IMP_core.Surface_remove_attribute(self, *args)
3376 
3377  def has_attribute(self, *args):
3378  r"""
3379  has_attribute(Surface self, FloatKey a0) -> bool
3380  has_attribute(Surface self, IntKey a0) -> bool
3381  has_attribute(Surface self, FloatsKey a0) -> bool
3382  has_attribute(Surface self, IntsKey a0) -> bool
3383  has_attribute(Surface self, StringKey a0) -> bool
3384  has_attribute(Surface self, ParticleIndexKey a0) -> bool
3385  has_attribute(Surface self, ObjectKey a0) -> bool
3386  has_attribute(Surface self, SparseFloatKey a0) -> bool
3387  has_attribute(Surface self, SparseIntKey a0) -> bool
3388  has_attribute(Surface self, SparseStringKey a0) -> bool
3389  has_attribute(Surface self, SparseParticleIndexKey a0) -> bool
3390  """
3391  return _IMP_core.Surface_has_attribute(self, *args)
3392 
3393  def get_derivative(self, a0):
3394  r"""get_derivative(Surface self, FloatKey a0) -> double"""
3395  return _IMP_core.Surface_get_derivative(self, a0)
3396 
3397  def get_name(self):
3398  r"""get_name(Surface self) -> std::string"""
3399  return _IMP_core.Surface_get_name(self)
3400 
3401  def clear_caches(self):
3402  r"""clear_caches(Surface self)"""
3403  return _IMP_core.Surface_clear_caches(self)
3404 
3405  def set_name(self, a0):
3406  r"""set_name(Surface self, std::string a0)"""
3407  return _IMP_core.Surface_set_name(self, a0)
3408 
3409  def set_check_level(self, a0):
3410  r"""set_check_level(Surface self, IMP::CheckLevel a0)"""
3411  return _IMP_core.Surface_set_check_level(self, a0)
3412 
3413  def add_to_derivative(self, a0, a1, a2):
3414  r"""add_to_derivative(Surface self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3415  return _IMP_core.Surface_add_to_derivative(self, a0, a1, a2)
3416 
3417  def set_is_optimized(self, a0, a1):
3418  r"""set_is_optimized(Surface self, FloatKey a0, bool a1)"""
3419  return _IMP_core.Surface_set_is_optimized(self, a0, a1)
3420 
3421  def get_is_optimized(self, a0):
3422  r"""get_is_optimized(Surface self, FloatKey a0) -> bool"""
3423  return _IMP_core.Surface_get_is_optimized(self, a0)
3424 
3425  def get_check_level(self):
3426  r"""get_check_level(Surface self) -> IMP::CheckLevel"""
3427  return _IMP_core.Surface_get_check_level(self)
3428 
3429  def __eq__(self, *args):
3430  r"""
3431  __eq__(Surface self, Surface o) -> bool
3432  __eq__(Surface self, Particle d) -> bool
3433  """
3434  return _IMP_core.Surface___eq__(self, *args)
3435 
3436  def __ne__(self, *args):
3437  r"""
3438  __ne__(Surface self, Surface o) -> bool
3439  __ne__(Surface self, Particle d) -> bool
3440  """
3441  return _IMP_core.Surface___ne__(self, *args)
3442 
3443  def __le__(self, *args):
3444  r"""
3445  __le__(Surface self, Surface o) -> bool
3446  __le__(Surface self, Particle d) -> bool
3447  """
3448  return _IMP_core.Surface___le__(self, *args)
3449 
3450  def __lt__(self, *args):
3451  r"""
3452  __lt__(Surface self, Surface o) -> bool
3453  __lt__(Surface self, Particle d) -> bool
3454  """
3455  return _IMP_core.Surface___lt__(self, *args)
3456 
3457  def __ge__(self, *args):
3458  r"""
3459  __ge__(Surface self, Surface o) -> bool
3460  __ge__(Surface self, Particle d) -> bool
3461  """
3462  return _IMP_core.Surface___ge__(self, *args)
3463 
3464  def __gt__(self, *args):
3465  r"""
3466  __gt__(Surface self, Surface o) -> bool
3467  __gt__(Surface self, Particle d) -> bool
3468  """
3469  return _IMP_core.Surface___gt__(self, *args)
3470 
3471  def __hash__(self):
3472  r"""__hash__(Surface self) -> std::size_t"""
3473  return _IMP_core.Surface___hash__(self)
3474 
3475  def __str__(self):
3476  r"""__str__(Surface self) -> std::string"""
3477  return _IMP_core.Surface___str__(self)
3478 
3479  def __repr__(self):
3480  r"""__repr__(Surface self) -> std::string"""
3481  return _IMP_core.Surface___repr__(self)
3482 
3483  def _get_as_binary(self):
3484  r"""_get_as_binary(Surface self) -> PyObject *"""
3485  return _IMP_core.Surface__get_as_binary(self)
3486 
3487  def _set_from_binary(self, p):
3488  r"""_set_from_binary(Surface self, PyObject * p)"""
3489  return _IMP_core.Surface__set_from_binary(self, p)
3490 
3491  def __getstate__(self):
3492  p = self._get_as_binary()
3493  if len(self.__dict__) > 1:
3494  d = self.__dict__.copy()
3495  del d['this']
3496  p = (d, p)
3497  return p
3498 
3499  def __setstate__(self, p):
3500  if not hasattr(self, 'this'):
3501  self.__init__()
3502  if isinstance(p, tuple):
3503  d, p = p
3504  self.__dict__.update(d)
3505  return self._set_from_binary(p)
3506 
3507  __swig_destroy__ = _IMP_core.delete_Surface
3508 
3509 # Register Surface in _IMP_core:
3510 _IMP_core.Surface_swigregister(Surface)
3511 
3512 def get_height(*args):
3513  r"""
3514  get_height(Surface s, XYZR d) -> double
3515  get_height(Surface s, XYZ d) -> double
3516  """
3517  return _IMP_core.get_height(*args)
3518 
3519 def get_depth(*args):
3520  r"""
3521  get_depth(Surface s, XYZR d) -> double
3522  get_depth(Surface s, XYZ d) -> double
3523  """
3524  return _IMP_core.get_depth(*args)
3525 
3526 def get_distance(*args):
3527  r"""
3528  get_distance(XYZ a, XYZ b) -> double
3529  get_distance(XYZR a, XYZR b) -> double
3530  get_distance(Surface s, XYZR d) -> double
3531  get_distance(Surface s, XYZ d) -> double
3532  """
3533  return _IMP_core.get_distance(*args)
3534 class SurfaceGeometry(IMP.display.Geometry):
3535  r"""Proxy of C++ IMP::core::SurfaceGeometry class."""
3536 
3537  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3538 
3539  def __init__(self, *args):
3540  r"""
3541  __init__(SurfaceGeometry self, std::string n="SurfaceGeometry") -> SurfaceGeometry
3542  __init__(SurfaceGeometry self, Surface s, std::string const n="SurfaceGeometry") -> SurfaceGeometry
3543  __init__(SurfaceGeometry self, Surface s, Color c, std::string n="SurfaceGeometry") -> SurfaceGeometry
3544  """
3545  _IMP_core.SurfaceGeometry_swiginit(self, _IMP_core.new_SurfaceGeometry(*args))
3546 
3547  def get_geometry(self):
3548  r"""get_geometry(SurfaceGeometry self) -> Surface"""
3549  return _IMP_core.SurfaceGeometry_get_geometry(self)
3550 
3551  def set_geometry(self, s):
3552  r"""set_geometry(SurfaceGeometry self, Surface s)"""
3553  return _IMP_core.SurfaceGeometry_set_geometry(self, s)
3554 
3555  def get_version_info(self):
3556  r"""get_version_info(SurfaceGeometry self) -> VersionInfo"""
3557  return _IMP_core.SurfaceGeometry_get_version_info(self)
3558  __swig_destroy__ = _IMP_core.delete_SurfaceGeometry
3559 
3560  def __str__(self):
3561  r"""__str__(SurfaceGeometry self) -> std::string"""
3562  return _IMP_core.SurfaceGeometry___str__(self)
3563 
3564  def __repr__(self):
3565  r"""__repr__(SurfaceGeometry self) -> std::string"""
3566  return _IMP_core.SurfaceGeometry___repr__(self)
3567 
3568  @staticmethod
3569  def get_from(o):
3570  return _object_cast_to_SurfaceGeometry(o)
3571 
3572 
3573 # Register SurfaceGeometry in _IMP_core:
3574 _IMP_core.SurfaceGeometry_swigregister(SurfaceGeometry)
3575 
3576 def create_geometry(*args):
3577  r"""create_geometry(Surface s, std::string name=std::string("SurfaceGeometry%1%")) -> SurfaceGeometry"""
3578  return _IMP_core.create_geometry(*args)
3579 class SurfaceGeometryConstraint(IMP.Constraint):
3580  r"""Proxy of C++ IMP::core::SurfaceGeometryConstraint class."""
3581 
3582  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3583 
3584  def __init__(self, s, g):
3585  r"""__init__(SurfaceGeometryConstraint self, Surface s, SurfaceGeometry g) -> SurfaceGeometryConstraint"""
3586  _IMP_core.SurfaceGeometryConstraint_swiginit(self, _IMP_core.new_SurfaceGeometryConstraint(s, g))
3587 
3588  def get_surface(self):
3589  r"""get_surface(SurfaceGeometryConstraint self) -> Surface"""
3590  return _IMP_core.SurfaceGeometryConstraint_get_surface(self)
3591 
3592  def get_geometry(self):
3593  r"""get_geometry(SurfaceGeometryConstraint self) -> SurfaceGeometry"""
3594  return _IMP_core.SurfaceGeometryConstraint_get_geometry(self)
3595 
3596  def do_get_inputs(self):
3597  r"""do_get_inputs(SurfaceGeometryConstraint self) -> IMP::ModelObjectsTemp"""
3598  return _IMP_core.SurfaceGeometryConstraint_do_get_inputs(self)
3599 
3600  def do_get_outputs(self):
3601  r"""do_get_outputs(SurfaceGeometryConstraint self) -> IMP::ModelObjectsTemp"""
3602  return _IMP_core.SurfaceGeometryConstraint_do_get_outputs(self)
3603 
3604  def get_version_info(self):
3605  r"""get_version_info(SurfaceGeometryConstraint self) -> VersionInfo"""
3606  return _IMP_core.SurfaceGeometryConstraint_get_version_info(self)
3607  __swig_destroy__ = _IMP_core.delete_SurfaceGeometryConstraint
3608 
3609  def __str__(self):
3610  r"""__str__(SurfaceGeometryConstraint self) -> std::string"""
3611  return _IMP_core.SurfaceGeometryConstraint___str__(self)
3612 
3613  def __repr__(self):
3614  r"""__repr__(SurfaceGeometryConstraint self) -> std::string"""
3615  return _IMP_core.SurfaceGeometryConstraint___repr__(self)
3616 
3617  @staticmethod
3618  def get_from(o):
3619  return _object_cast_to_SurfaceGeometryConstraint(o)
3620 
3621 
3622 # Register SurfaceGeometryConstraint in _IMP_core:
3623 _IMP_core.SurfaceGeometryConstraint_swigregister(SurfaceGeometryConstraint)
3624 
3626  r"""get_constrained_surface_geometry(Surface s, std::string name="SurfaceGeometry%1%") -> SurfaceGeometry"""
3627  return _IMP_core.get_constrained_surface_geometry(*args)
3628 class LateralSurfaceConstraint(IMP.Constraint):
3629  r"""Proxy of C++ IMP::core::LateralSurfaceConstraint class."""
3630 
3631  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3632 
3633  def __init__(self, s, d):
3634  r"""__init__(LateralSurfaceConstraint self, Surface s, XYZ d) -> LateralSurfaceConstraint"""
3635  _IMP_core.LateralSurfaceConstraint_swiginit(self, _IMP_core.new_LateralSurfaceConstraint(s, d))
3636 
3637  def do_get_inputs(self):
3638  r"""do_get_inputs(LateralSurfaceConstraint self) -> IMP::ModelObjectsTemp"""
3639  return _IMP_core.LateralSurfaceConstraint_do_get_inputs(self)
3640 
3641  def do_get_outputs(self):
3642  r"""do_get_outputs(LateralSurfaceConstraint self) -> IMP::ModelObjectsTemp"""
3643  return _IMP_core.LateralSurfaceConstraint_do_get_outputs(self)
3644 
3645  def get_version_info(self):
3646  r"""get_version_info(LateralSurfaceConstraint self) -> VersionInfo"""
3647  return _IMP_core.LateralSurfaceConstraint_get_version_info(self)
3648  __swig_destroy__ = _IMP_core.delete_LateralSurfaceConstraint
3649 
3650  def __str__(self):
3651  r"""__str__(LateralSurfaceConstraint self) -> std::string"""
3652  return _IMP_core.LateralSurfaceConstraint___str__(self)
3653 
3654  def __repr__(self):
3655  r"""__repr__(LateralSurfaceConstraint self) -> std::string"""
3656  return _IMP_core.LateralSurfaceConstraint___repr__(self)
3657 
3658  @staticmethod
3659  def get_from(o):
3660  return _object_cast_to_LateralSurfaceConstraint(o)
3661 
3662 
3663 # Register LateralSurfaceConstraint in _IMP_core:
3664 _IMP_core.LateralSurfaceConstraint_swigregister(LateralSurfaceConstraint)
3665 class AngleTripletScore(IMP.TripletScore):
3666  r"""Proxy of C++ IMP::core::AngleTripletScore class."""
3667 
3668  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3669 
3670  def __init__(self, *args):
3671  r"""
3672  __init__(AngleTripletScore self, UnaryFunction f) -> AngleTripletScore
3673  __init__(AngleTripletScore self) -> AngleTripletScore
3674  """
3675  _IMP_core.AngleTripletScore_swiginit(self, _IMP_core.new_AngleTripletScore(*args))
3676 
3677  def do_get_inputs(self, m, pis):
3678  r"""do_get_inputs(AngleTripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3679  return _IMP_core.AngleTripletScore_do_get_inputs(self, m, pis)
3680 
3681  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
3682  r"""evaluate_indexes(AngleTripletScore self, Model m, IMP::ParticleIndexTriplets const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
3683  return _IMP_core.AngleTripletScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
3684 
3685  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
3686  r"""evaluate_indexes_scores(AngleTripletScore self, Model m, IMP::ParticleIndexTriplets const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
3687  return _IMP_core.AngleTripletScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
3688 
3689  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
3690  r"""evaluate_indexes_delta(AngleTripletScore self, Model m, IMP::ParticleIndexTriplets const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
3691  return _IMP_core.AngleTripletScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
3692 
3693  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
3694  r"""evaluate_if_good_indexes(AngleTripletScore self, Model m, IMP::ParticleIndexTriplets const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
3695  return _IMP_core.AngleTripletScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
3696 
3697  def get_version_info(self):
3698  r"""get_version_info(AngleTripletScore self) -> VersionInfo"""
3699  return _IMP_core.AngleTripletScore_get_version_info(self)
3700  __swig_destroy__ = _IMP_core.delete_AngleTripletScore
3701 
3702  def __str__(self):
3703  r"""__str__(AngleTripletScore self) -> std::string"""
3704  return _IMP_core.AngleTripletScore___str__(self)
3705 
3706  def __repr__(self):
3707  r"""__repr__(AngleTripletScore self) -> std::string"""
3708  return _IMP_core.AngleTripletScore___repr__(self)
3709 
3710  @staticmethod
3711  def get_from(o):
3712  return _object_cast_to_AngleTripletScore(o)
3713 
3714 
3715  def _get_as_binary(self):
3716  r"""_get_as_binary(AngleTripletScore self) -> PyObject *"""
3717  return _IMP_core.AngleTripletScore__get_as_binary(self)
3718 
3719  def _set_from_binary(self, p):
3720  r"""_set_from_binary(AngleTripletScore self, PyObject * p)"""
3721  return _IMP_core.AngleTripletScore__set_from_binary(self, p)
3722 
3723  def __getstate__(self):
3724  p = self._get_as_binary()
3725  if len(self.__dict__) > 1:
3726  d = self.__dict__.copy()
3727  del d['this']
3728  p = (d, p)
3729  return p
3730 
3731  def __setstate__(self, p):
3732  if not hasattr(self, 'this'):
3733  self.__init__()
3734  if isinstance(p, tuple):
3735  d, p = p
3736  self.__dict__.update(d)
3737  return self._set_from_binary(p)
3738 
3739 
3740 # Register AngleTripletScore in _IMP_core:
3741 _IMP_core.AngleTripletScore_swigregister(AngleTripletScore)
3742 class BallMover(MonteCarloMover):
3743  r"""Proxy of C++ IMP::core::BallMover class."""
3744 
3745  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3746 
3747  def __init__(self, *args):
3748  r"""
3749  __init__(BallMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double radius) -> BallMover
3750  __init__(BallMover self, Model m, ParticleIndex pi, double radius) -> BallMover
3751  __init__(BallMover self, Model m, IMP::ParticleIndexes const & pis, IMP::FloatKeys const & vars, IMP::Float radius) -> BallMover
3752  __init__(BallMover self, Model m, IMP::ParticleIndexes const & pis, IMP::Float radius) -> BallMover
3753  __init__(BallMover self) -> BallMover
3754  """
3755  _IMP_core.BallMover_swiginit(self, _IMP_core.new_BallMover(*args))
3756 
3757  def set_radius(self, radius):
3758  r"""set_radius(BallMover self, IMP::Float radius)"""
3759  return _IMP_core.BallMover_set_radius(self, radius)
3760 
3761  def get_radius(self):
3762  r"""get_radius(BallMover self) -> IMP::Float"""
3763  return _IMP_core.BallMover_get_radius(self)
3764 
3765  def get_version_info(self):
3766  r"""get_version_info(BallMover self) -> VersionInfo"""
3767  return _IMP_core.BallMover_get_version_info(self)
3768  __swig_destroy__ = _IMP_core.delete_BallMover
3769 
3770  def __str__(self):
3771  r"""__str__(BallMover self) -> std::string"""
3772  return _IMP_core.BallMover___str__(self)
3773 
3774  def __repr__(self):
3775  r"""__repr__(BallMover self) -> std::string"""
3776  return _IMP_core.BallMover___repr__(self)
3777 
3778  @staticmethod
3779  def get_from(o):
3780  return _object_cast_to_BallMover(o)
3781 
3782 
3783  def _get_as_binary(self):
3784  r"""_get_as_binary(BallMover self) -> PyObject *"""
3785  return _IMP_core.BallMover__get_as_binary(self)
3786 
3787  def _set_from_binary(self, p):
3788  r"""_set_from_binary(BallMover self, PyObject * p)"""
3789  return _IMP_core.BallMover__set_from_binary(self, p)
3790 
3791  def __getstate__(self):
3792  p = self._get_as_binary()
3793  if len(self.__dict__) > 1:
3794  d = self.__dict__.copy()
3795  del d['this']
3796  p = (d, p)
3797  return p
3798 
3799  def __setstate__(self, p):
3800  if not hasattr(self, 'this'):
3801  self.__init__()
3802  if isinstance(p, tuple):
3803  d, p = p
3804  self.__dict__.update(d)
3805  return self._set_from_binary(p)
3806 
3807 
3808 # Register BallMover in _IMP_core:
3809 _IMP_core.BallMover_swigregister(BallMover)
3810 class SerialMover(MonteCarloMover):
3811  r"""Proxy of C++ IMP::core::SerialMover class."""
3812 
3813  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3814 
3815  def __init__(self, *args):
3816  r"""
3817  __init__(SerialMover self, IMP::core::MonteCarloMoversTemp const & mvs) -> SerialMover
3818  __init__(SerialMover self) -> SerialMover
3819  """
3820  _IMP_core.SerialMover_swiginit(self, _IMP_core.new_SerialMover(*args))
3821 
3822  def get_movers(self):
3823  r"""get_movers(SerialMover self) -> IMP::core::MonteCarloMovers const &"""
3824  return _IMP_core.SerialMover_get_movers(self)
3825 
3826  def get_version_info(self):
3827  r"""get_version_info(SerialMover self) -> VersionInfo"""
3828  return _IMP_core.SerialMover_get_version_info(self)
3829  __swig_destroy__ = _IMP_core.delete_SerialMover
3830 
3831  def __str__(self):
3832  r"""__str__(SerialMover self) -> std::string"""
3833  return _IMP_core.SerialMover___str__(self)
3834 
3835  def __repr__(self):
3836  r"""__repr__(SerialMover self) -> std::string"""
3837  return _IMP_core.SerialMover___repr__(self)
3838 
3839  @staticmethod
3840  def get_from(o):
3841  return _object_cast_to_SerialMover(o)
3842 
3843 
3844  def _get_as_binary(self):
3845  r"""_get_as_binary(SerialMover self) -> PyObject *"""
3846  return _IMP_core.SerialMover__get_as_binary(self)
3847 
3848  def _set_from_binary(self, p):
3849  r"""_set_from_binary(SerialMover self, PyObject * p)"""
3850  return _IMP_core.SerialMover__set_from_binary(self, p)
3851 
3852  def __getstate__(self):
3853  p = self._get_as_binary()
3854  if len(self.__dict__) > 1:
3855  d = self.__dict__.copy()
3856  del d['this']
3857  p = (d, p)
3858  return p
3859 
3860  def __setstate__(self, p):
3861  if not hasattr(self, 'this'):
3862  self.__init__()
3863  if isinstance(p, tuple):
3864  d, p = p
3865  self.__dict__.update(d)
3866  return self._set_from_binary(p)
3867 
3868 
3869 # Register SerialMover in _IMP_core:
3870 _IMP_core.SerialMover_swigregister(SerialMover)
3871 class SubsetMover(MonteCarloMover):
3872  r"""Proxy of C++ IMP::core::SubsetMover class."""
3873 
3874  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3875 
3876  def __init__(self, *args):
3877  r"""
3878  __init__(SubsetMover self, IMP::core::MonteCarloMoversTemp const & mvs, unsigned int n) -> SubsetMover
3879  __init__(SubsetMover self) -> SubsetMover
3880  """
3881  _IMP_core.SubsetMover_swiginit(self, _IMP_core.new_SubsetMover(*args))
3882 
3883  def get_movers(self):
3884  r"""get_movers(SubsetMover self) -> IMP::core::MonteCarloMovers const &"""
3885  return _IMP_core.SubsetMover_get_movers(self)
3886 
3887  def get_subset_size(self):
3888  r"""get_subset_size(SubsetMover self) -> unsigned int"""
3889  return _IMP_core.SubsetMover_get_subset_size(self)
3890 
3891  def get_version_info(self):
3892  r"""get_version_info(SubsetMover self) -> VersionInfo"""
3893  return _IMP_core.SubsetMover_get_version_info(self)
3894  __swig_destroy__ = _IMP_core.delete_SubsetMover
3895 
3896  def __str__(self):
3897  r"""__str__(SubsetMover self) -> std::string"""
3898  return _IMP_core.SubsetMover___str__(self)
3899 
3900  def __repr__(self):
3901  r"""__repr__(SubsetMover self) -> std::string"""
3902  return _IMP_core.SubsetMover___repr__(self)
3903 
3904  @staticmethod
3905  def get_from(o):
3906  return _object_cast_to_SubsetMover(o)
3907 
3908 
3909  def _get_as_binary(self):
3910  r"""_get_as_binary(SubsetMover self) -> PyObject *"""
3911  return _IMP_core.SubsetMover__get_as_binary(self)
3912 
3913  def _set_from_binary(self, p):
3914  r"""_set_from_binary(SubsetMover self, PyObject * p)"""
3915  return _IMP_core.SubsetMover__set_from_binary(self, p)
3916 
3917  def __getstate__(self):
3918  p = self._get_as_binary()
3919  if len(self.__dict__) > 1:
3920  d = self.__dict__.copy()
3921  del d['this']
3922  p = (d, p)
3923  return p
3924 
3925  def __setstate__(self, p):
3926  if not hasattr(self, 'this'):
3927  self.__init__()
3928  if isinstance(p, tuple):
3929  d, p = p
3930  self.__dict__.update(d)
3931  return self._set_from_binary(p)
3932 
3933 
3934 # Register SubsetMover in _IMP_core:
3935 _IMP_core.SubsetMover_swigregister(SubsetMover)
3936 class DirectionMover(MonteCarloMover):
3937  r"""Proxy of C++ IMP::core::DirectionMover class."""
3938 
3939  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3940 
3941  def __init__(self, *args):
3942  r"""
3943  __init__(DirectionMover self, Model m, ParticleIndex pi, IMP::Float max_rotation, IMP::Float reflect_probability) -> DirectionMover
3944  __init__(DirectionMover self, Direction d, IMP::Float max_rotation, IMP::Float reflect_probability) -> DirectionMover
3945  __init__(DirectionMover self) -> DirectionMover
3946  """
3947  _IMP_core.DirectionMover_swiginit(self, _IMP_core.new_DirectionMover(*args))
3948 
3949  def set_maximum_rotation(self, mr):
3950  r"""set_maximum_rotation(DirectionMover self, IMP::Float mr)"""
3951  return _IMP_core.DirectionMover_set_maximum_rotation(self, mr)
3952 
3953  def set_reflect_probability(self, rp):
3954  r"""set_reflect_probability(DirectionMover self, IMP::Float rp)"""
3955  return _IMP_core.DirectionMover_set_reflect_probability(self, rp)
3956 
3957  def get_maximum_rotation(self):
3958  r"""get_maximum_rotation(DirectionMover self) -> IMP::Float"""
3959  return _IMP_core.DirectionMover_get_maximum_rotation(self)
3960 
3961  def get_reflect_probability(self):
3962  r"""get_reflect_probability(DirectionMover self) -> IMP::Float"""
3963  return _IMP_core.DirectionMover_get_reflect_probability(self)
3964 
3965  def get_direction(self):
3966  r"""get_direction(DirectionMover self) -> Direction"""
3967  return _IMP_core.DirectionMover_get_direction(self)
3968 
3969  def get_version_info(self):
3970  r"""get_version_info(DirectionMover self) -> VersionInfo"""
3971  return _IMP_core.DirectionMover_get_version_info(self)
3972  __swig_destroy__ = _IMP_core.delete_DirectionMover
3973 
3974  def __str__(self):
3975  r"""__str__(DirectionMover self) -> std::string"""
3976  return _IMP_core.DirectionMover___str__(self)
3977 
3978  def __repr__(self):
3979  r"""__repr__(DirectionMover self) -> std::string"""
3980  return _IMP_core.DirectionMover___repr__(self)
3981 
3982  @staticmethod
3983  def get_from(o):
3984  return _object_cast_to_DirectionMover(o)
3985 
3986 
3987  def _get_as_binary(self):
3988  r"""_get_as_binary(DirectionMover self) -> PyObject *"""
3989  return _IMP_core.DirectionMover__get_as_binary(self)
3990 
3991  def _set_from_binary(self, p):
3992  r"""_set_from_binary(DirectionMover self, PyObject * p)"""
3993  return _IMP_core.DirectionMover__set_from_binary(self, p)
3994 
3995  def __getstate__(self):
3996  p = self._get_as_binary()
3997  if len(self.__dict__) > 1:
3998  d = self.__dict__.copy()
3999  del d['this']
4000  p = (d, p)
4001  return p
4002 
4003  def __setstate__(self, p):
4004  if not hasattr(self, 'this'):
4005  self.__init__()
4006  if isinstance(p, tuple):
4007  d, p = p
4008  self.__dict__.update(d)
4009  return self._set_from_binary(p)
4010 
4011 
4012 # Register DirectionMover in _IMP_core:
4013 _IMP_core.DirectionMover_swigregister(DirectionMover)
4014 class SurfaceMover(MonteCarloMover):
4015  r"""Proxy of C++ IMP::core::SurfaceMover class."""
4016 
4017  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4018 
4019  def __init__(self, *args):
4020  r"""
4021  __init__(SurfaceMover self, Model m, ParticleIndex pi, IMP::Float max_translation, IMP::Float max_rotation, IMP::Float reflect_probability) -> SurfaceMover
4022  __init__(SurfaceMover self, Surface s, IMP::Float max_translation, IMP::Float max_rotation, IMP::Float reflect_probability) -> SurfaceMover
4023  __init__(SurfaceMover self) -> SurfaceMover
4024  """
4025  _IMP_core.SurfaceMover_swiginit(self, _IMP_core.new_SurfaceMover(*args))
4026 
4027  def set_maximum_translation(self, mt):
4028  r"""set_maximum_translation(SurfaceMover self, IMP::Float mt)"""
4029  return _IMP_core.SurfaceMover_set_maximum_translation(self, mt)
4030 
4031  def set_maximum_rotation(self, mr):
4032  r"""set_maximum_rotation(SurfaceMover self, IMP::Float mr)"""
4033  return _IMP_core.SurfaceMover_set_maximum_rotation(self, mr)
4034 
4035  def set_reflect_probability(self, rp):
4036  r"""set_reflect_probability(SurfaceMover self, IMP::Float rp)"""
4037  return _IMP_core.SurfaceMover_set_reflect_probability(self, rp)
4038 
4039  def get_maximum_translation(self):
4040  r"""get_maximum_translation(SurfaceMover self) -> IMP::Float"""
4041  return _IMP_core.SurfaceMover_get_maximum_translation(self)
4042 
4043  def get_maximum_rotation(self):
4044  r"""get_maximum_rotation(SurfaceMover self) -> IMP::Float"""
4045  return _IMP_core.SurfaceMover_get_maximum_rotation(self)
4046 
4047  def get_reflect_probability(self):
4048  r"""get_reflect_probability(SurfaceMover self) -> IMP::Float"""
4049  return _IMP_core.SurfaceMover_get_reflect_probability(self)
4050 
4051  def get_surface(self):
4052  r"""get_surface(SurfaceMover self) -> Surface"""
4053  return _IMP_core.SurfaceMover_get_surface(self)
4054 
4055  def get_version_info(self):
4056  r"""get_version_info(SurfaceMover self) -> VersionInfo"""
4057  return _IMP_core.SurfaceMover_get_version_info(self)
4058  __swig_destroy__ = _IMP_core.delete_SurfaceMover
4059 
4060  def __str__(self):
4061  r"""__str__(SurfaceMover self) -> std::string"""
4062  return _IMP_core.SurfaceMover___str__(self)
4063 
4064  def __repr__(self):
4065  r"""__repr__(SurfaceMover self) -> std::string"""
4066  return _IMP_core.SurfaceMover___repr__(self)
4067 
4068  @staticmethod
4069  def get_from(o):
4070  return _object_cast_to_SurfaceMover(o)
4071 
4072 
4073  def _get_as_binary(self):
4074  r"""_get_as_binary(SurfaceMover self) -> PyObject *"""
4075  return _IMP_core.SurfaceMover__get_as_binary(self)
4076 
4077  def _set_from_binary(self, p):
4078  r"""_set_from_binary(SurfaceMover self, PyObject * p)"""
4079  return _IMP_core.SurfaceMover__set_from_binary(self, p)
4080 
4081  def __getstate__(self):
4082  p = self._get_as_binary()
4083  if len(self.__dict__) > 1:
4084  d = self.__dict__.copy()
4085  del d['this']
4086  p = (d, p)
4087  return p
4088 
4089  def __setstate__(self, p):
4090  if not hasattr(self, 'this'):
4091  self.__init__()
4092  if isinstance(p, tuple):
4093  d, p = p
4094  self.__dict__.update(d)
4095  return self._set_from_binary(p)
4096 
4097 
4098 # Register SurfaceMover in _IMP_core:
4099 _IMP_core.SurfaceMover_swigregister(SurfaceMover)
4100 class BoxSweepClosePairsFinder(ClosePairsFinder):
4101  r"""Proxy of C++ IMP::core::BoxSweepClosePairsFinder class."""
4102 
4103  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4104 
4105  def __init__(self):
4106  r"""__init__(BoxSweepClosePairsFinder self) -> BoxSweepClosePairsFinder"""
4107  _IMP_core.BoxSweepClosePairsFinder_swiginit(self, _IMP_core.new_BoxSweepClosePairsFinder())
4108 
4109  def get_close_pairs(self, *args):
4110  r"""
4111  get_close_pairs(BoxSweepClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
4112  get_close_pairs(BoxSweepClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
4113  get_close_pairs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
4114  get_close_pairs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
4115  """
4116  return _IMP_core.BoxSweepClosePairsFinder_get_close_pairs(self, *args)
4117 
4118  def do_get_inputs(self, m, pis):
4119  r"""do_get_inputs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4120  return _IMP_core.BoxSweepClosePairsFinder_do_get_inputs(self, m, pis)
4121 
4122  def get_version_info(self):
4123  r"""get_version_info(BoxSweepClosePairsFinder self) -> VersionInfo"""
4124  return _IMP_core.BoxSweepClosePairsFinder_get_version_info(self)
4125  __swig_destroy__ = _IMP_core.delete_BoxSweepClosePairsFinder
4126 
4127  def __str__(self):
4128  r"""__str__(BoxSweepClosePairsFinder self) -> std::string"""
4129  return _IMP_core.BoxSweepClosePairsFinder___str__(self)
4130 
4131  def __repr__(self):
4132  r"""__repr__(BoxSweepClosePairsFinder self) -> std::string"""
4133  return _IMP_core.BoxSweepClosePairsFinder___repr__(self)
4134 
4135  @staticmethod
4136  def get_from(o):
4137  return _object_cast_to_BoxSweepClosePairsFinder(o)
4138 
4139 
4140 # Register BoxSweepClosePairsFinder in _IMP_core:
4141 _IMP_core.BoxSweepClosePairsFinder_swigregister(BoxSweepClosePairsFinder)
4142 class CentroidOfRefined(IMP.SingletonModifier):
4143  r"""Proxy of C++ IMP::core::CentroidOfRefined class."""
4144 
4145  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4146 
4147  def __init__(self, *args):
4148  r"""__init__(CentroidOfRefined self, Refiner r, FloatKey weight=IMP::FloatKey(), IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> CentroidOfRefined"""
4149  _IMP_core.CentroidOfRefined_swiginit(self, _IMP_core.new_CentroidOfRefined(*args))
4150 
4151  def do_get_inputs(self, m, pis):
4152  r"""do_get_inputs(CentroidOfRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4153  return _IMP_core.CentroidOfRefined_do_get_inputs(self, m, pis)
4154 
4155  def do_get_outputs(self, m, pis):
4156  r"""do_get_outputs(CentroidOfRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4157  return _IMP_core.CentroidOfRefined_do_get_outputs(self, m, pis)
4158 
4159  def get_version_info(self):
4160  r"""get_version_info(CentroidOfRefined self) -> VersionInfo"""
4161  return _IMP_core.CentroidOfRefined_get_version_info(self)
4162  __swig_destroy__ = _IMP_core.delete_CentroidOfRefined
4163 
4164  def __str__(self):
4165  r"""__str__(CentroidOfRefined self) -> std::string"""
4166  return _IMP_core.CentroidOfRefined___str__(self)
4167 
4168  def __repr__(self):
4169  r"""__repr__(CentroidOfRefined self) -> std::string"""
4170  return _IMP_core.CentroidOfRefined___repr__(self)
4171 
4172  @staticmethod
4173  def get_from(o):
4174  return _object_cast_to_CentroidOfRefined(o)
4175 
4176 
4177 # Register CentroidOfRefined in _IMP_core:
4178 _IMP_core.CentroidOfRefined_swigregister(CentroidOfRefined)
4179 class Centroid(XYZ):
4180  r"""Proxy of C++ IMP::core::Centroid class."""
4181 
4182  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4183 
4184  def get_constraint(self):
4185  r"""get_constraint(Centroid self) -> Constraint"""
4186  return _IMP_core.Centroid_get_constraint(self)
4187 
4188  def __init__(self, *args):
4189  r"""
4190  __init__(Centroid self) -> Centroid
4191  __init__(Centroid self, Model m, ParticleIndex id) -> Centroid
4192  __init__(Centroid self, _ParticleAdaptor d) -> Centroid
4193  """
4194  _IMP_core.Centroid_swiginit(self, _IMP_core.new_Centroid(*args))
4195 
4196  def show(self, *args):
4197  r"""show(Centroid self, _ostream out=std::cout)"""
4198  return _IMP_core.Centroid_show(self, *args)
4199 
4200  @staticmethod
4201  def setup_particle(*args):
4202  r"""
4203  setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor members) -> Centroid
4204  setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor members) -> Centroid
4205  setup_particle(Model m, ParticleIndex pi, Refiner refiner) -> Centroid
4206  setup_particle(_ParticleAdaptor pa, Refiner refiner) -> Centroid
4207  """
4208  return _IMP_core.Centroid_setup_particle(*args)
4209 
4210  @staticmethod
4211  def get_is_setup(*args):
4212  r"""
4213  get_is_setup(_ParticleAdaptor p) -> bool
4214  get_is_setup(Model m, ParticleIndex pi) -> bool
4215  """
4216  return _IMP_core.Centroid_get_is_setup(*args)
4217 
4218  def add_attribute(self, *args):
4219  r"""
4220  add_attribute(Centroid self, FloatKey k, IMP::Float v, bool opt)
4221  add_attribute(Centroid self, FloatKey a0, IMP::Float a1)
4222  add_attribute(Centroid self, IntKey a0, IMP::Int a1)
4223  add_attribute(Centroid self, FloatsKey a0, IMP::Floats a1)
4224  add_attribute(Centroid self, IntsKey a0, IMP::Ints a1)
4225  add_attribute(Centroid self, StringKey a0, IMP::String a1)
4226  add_attribute(Centroid self, ParticleIndexKey a0, Particle a1)
4227  add_attribute(Centroid self, ObjectKey a0, Object a1)
4228  add_attribute(Centroid self, SparseFloatKey a0, IMP::Float a1)
4229  add_attribute(Centroid self, SparseIntKey a0, IMP::Int a1)
4230  add_attribute(Centroid self, SparseStringKey a0, IMP::String a1)
4231  add_attribute(Centroid self, SparseParticleIndexKey a0, ParticleIndex a1)
4232  """
4233  return _IMP_core.Centroid_add_attribute(self, *args)
4234 
4235  def get_value(self, *args):
4236  r"""
4237  get_value(Centroid self, FloatKey a0) -> IMP::Float
4238  get_value(Centroid self, IntKey a0) -> IMP::Int
4239  get_value(Centroid self, FloatsKey a0) -> IMP::Floats
4240  get_value(Centroid self, IntsKey a0) -> IMP::Ints
4241  get_value(Centroid self, StringKey a0) -> IMP::String
4242  get_value(Centroid self, ParticleIndexKey a0) -> Particle
4243  get_value(Centroid self, ObjectKey a0) -> Object
4244  get_value(Centroid self, SparseFloatKey a0) -> IMP::Float
4245  get_value(Centroid self, SparseIntKey a0) -> IMP::Int
4246  get_value(Centroid self, SparseStringKey a0) -> IMP::String
4247  get_value(Centroid self, SparseParticleIndexKey a0) -> ParticleIndex
4248  """
4249  return _IMP_core.Centroid_get_value(self, *args)
4250 
4251  def set_value(self, *args):
4252  r"""
4253  set_value(Centroid self, FloatKey a0, IMP::Float a1)
4254  set_value(Centroid self, IntKey a0, IMP::Int a1)
4255  set_value(Centroid self, FloatsKey a0, IMP::Floats a1)
4256  set_value(Centroid self, IntsKey a0, IMP::Ints a1)
4257  set_value(Centroid self, StringKey a0, IMP::String a1)
4258  set_value(Centroid self, ParticleIndexKey a0, Particle a1)
4259  set_value(Centroid self, ObjectKey a0, Object a1)
4260  set_value(Centroid self, SparseFloatKey a0, IMP::Float a1)
4261  set_value(Centroid self, SparseIntKey a0, IMP::Int a1)
4262  set_value(Centroid self, SparseStringKey a0, IMP::String a1)
4263  set_value(Centroid self, SparseParticleIndexKey a0, ParticleIndex a1)
4264  """
4265  return _IMP_core.Centroid_set_value(self, *args)
4266 
4267  def remove_attribute(self, *args):
4268  r"""
4269  remove_attribute(Centroid self, FloatKey a0)
4270  remove_attribute(Centroid self, IntKey a0)
4271  remove_attribute(Centroid self, FloatsKey a0)
4272  remove_attribute(Centroid self, IntsKey a0)
4273  remove_attribute(Centroid self, StringKey a0)
4274  remove_attribute(Centroid self, ParticleIndexKey a0)
4275  remove_attribute(Centroid self, ObjectKey a0)
4276  remove_attribute(Centroid self, SparseFloatKey a0)
4277  remove_attribute(Centroid self, SparseIntKey a0)
4278  remove_attribute(Centroid self, SparseStringKey a0)
4279  remove_attribute(Centroid self, SparseParticleIndexKey a0)
4280  """
4281  return _IMP_core.Centroid_remove_attribute(self, *args)
4282 
4283  def has_attribute(self, *args):
4284  r"""
4285  has_attribute(Centroid self, FloatKey a0) -> bool
4286  has_attribute(Centroid self, IntKey a0) -> bool
4287  has_attribute(Centroid self, FloatsKey a0) -> bool
4288  has_attribute(Centroid self, IntsKey a0) -> bool
4289  has_attribute(Centroid self, StringKey a0) -> bool
4290  has_attribute(Centroid self, ParticleIndexKey a0) -> bool
4291  has_attribute(Centroid self, ObjectKey a0) -> bool
4292  has_attribute(Centroid self, SparseFloatKey a0) -> bool
4293  has_attribute(Centroid self, SparseIntKey a0) -> bool
4294  has_attribute(Centroid self, SparseStringKey a0) -> bool
4295  has_attribute(Centroid self, SparseParticleIndexKey a0) -> bool
4296  """
4297  return _IMP_core.Centroid_has_attribute(self, *args)
4298 
4299  def get_derivative(self, a0):
4300  r"""get_derivative(Centroid self, FloatKey a0) -> double"""
4301  return _IMP_core.Centroid_get_derivative(self, a0)
4302 
4303  def get_name(self):
4304  r"""get_name(Centroid self) -> std::string"""
4305  return _IMP_core.Centroid_get_name(self)
4306 
4307  def clear_caches(self):
4308  r"""clear_caches(Centroid self)"""
4309  return _IMP_core.Centroid_clear_caches(self)
4310 
4311  def set_name(self, a0):
4312  r"""set_name(Centroid self, std::string a0)"""
4313  return _IMP_core.Centroid_set_name(self, a0)
4314 
4315  def set_check_level(self, a0):
4316  r"""set_check_level(Centroid self, IMP::CheckLevel a0)"""
4317  return _IMP_core.Centroid_set_check_level(self, a0)
4318 
4319  def add_to_derivative(self, a0, a1, a2):
4320  r"""add_to_derivative(Centroid self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4321  return _IMP_core.Centroid_add_to_derivative(self, a0, a1, a2)
4322 
4323  def set_is_optimized(self, a0, a1):
4324  r"""set_is_optimized(Centroid self, FloatKey a0, bool a1)"""
4325  return _IMP_core.Centroid_set_is_optimized(self, a0, a1)
4326 
4327  def get_is_optimized(self, a0):
4328  r"""get_is_optimized(Centroid self, FloatKey a0) -> bool"""
4329  return _IMP_core.Centroid_get_is_optimized(self, a0)
4330 
4331  def get_check_level(self):
4332  r"""get_check_level(Centroid self) -> IMP::CheckLevel"""
4333  return _IMP_core.Centroid_get_check_level(self)
4334 
4335  def __eq__(self, *args):
4336  r"""
4337  __eq__(Centroid self, Centroid o) -> bool
4338  __eq__(Centroid self, Particle d) -> bool
4339  """
4340  return _IMP_core.Centroid___eq__(self, *args)
4341 
4342  def __ne__(self, *args):
4343  r"""
4344  __ne__(Centroid self, Centroid o) -> bool
4345  __ne__(Centroid self, Particle d) -> bool
4346  """
4347  return _IMP_core.Centroid___ne__(self, *args)
4348 
4349  def __le__(self, *args):
4350  r"""
4351  __le__(Centroid self, Centroid o) -> bool
4352  __le__(Centroid self, Particle d) -> bool
4353  """
4354  return _IMP_core.Centroid___le__(self, *args)
4355 
4356  def __lt__(self, *args):
4357  r"""
4358  __lt__(Centroid self, Centroid o) -> bool
4359  __lt__(Centroid self, Particle d) -> bool
4360  """
4361  return _IMP_core.Centroid___lt__(self, *args)
4362 
4363  def __ge__(self, *args):
4364  r"""
4365  __ge__(Centroid self, Centroid o) -> bool
4366  __ge__(Centroid self, Particle d) -> bool
4367  """
4368  return _IMP_core.Centroid___ge__(self, *args)
4369 
4370  def __gt__(self, *args):
4371  r"""
4372  __gt__(Centroid self, Centroid o) -> bool
4373  __gt__(Centroid self, Particle d) -> bool
4374  """
4375  return _IMP_core.Centroid___gt__(self, *args)
4376 
4377  def __hash__(self):
4378  r"""__hash__(Centroid self) -> std::size_t"""
4379  return _IMP_core.Centroid___hash__(self)
4380 
4381  def __str__(self):
4382  r"""__str__(Centroid self) -> std::string"""
4383  return _IMP_core.Centroid___str__(self)
4384 
4385  def __repr__(self):
4386  r"""__repr__(Centroid self) -> std::string"""
4387  return _IMP_core.Centroid___repr__(self)
4388 
4389  def _get_as_binary(self):
4390  r"""_get_as_binary(Centroid self) -> PyObject *"""
4391  return _IMP_core.Centroid__get_as_binary(self)
4392 
4393  def _set_from_binary(self, p):
4394  r"""_set_from_binary(Centroid self, PyObject * p)"""
4395  return _IMP_core.Centroid__set_from_binary(self, p)
4396 
4397  def __getstate__(self):
4398  p = self._get_as_binary()
4399  if len(self.__dict__) > 1:
4400  d = self.__dict__.copy()
4401  del d['this']
4402  p = (d, p)
4403  return p
4404 
4405  def __setstate__(self, p):
4406  if not hasattr(self, 'this'):
4407  self.__init__()
4408  if isinstance(p, tuple):
4409  d, p = p
4410  self.__dict__.update(d)
4411  return self._set_from_binary(p)
4412 
4413  __swig_destroy__ = _IMP_core.delete_Centroid
4414 
4415 # Register Centroid in _IMP_core:
4416 _IMP_core.Centroid_swigregister(Centroid)
4417 class ChecksScoreState(IMP.ScoreState):
4418  r"""Proxy of C++ IMP::core::ChecksScoreState class."""
4419 
4420  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4421 
4422  def __init__(self, *args):
4423  r"""
4424  __init__(ChecksScoreState self, Model m, double probability) -> ChecksScoreState
4425  __init__(ChecksScoreState self) -> ChecksScoreState
4426  """
4427  _IMP_core.ChecksScoreState_swiginit(self, _IMP_core.new_ChecksScoreState(*args))
4428 
4429  def get_number_of_checked(self):
4430  r"""get_number_of_checked(ChecksScoreState self) -> unsigned int"""
4431  return _IMP_core.ChecksScoreState_get_number_of_checked(self)
4432 
4433  def do_before_evaluate(self):
4434  r"""do_before_evaluate(ChecksScoreState self)"""
4435  return _IMP_core.ChecksScoreState_do_before_evaluate(self)
4436 
4437  def do_after_evaluate(self, da):
4438  r"""do_after_evaluate(ChecksScoreState self, DerivativeAccumulator da)"""
4439  return _IMP_core.ChecksScoreState_do_after_evaluate(self, da)
4440 
4441  def do_get_outputs(self):
4442  r"""do_get_outputs(ChecksScoreState self) -> IMP::ModelObjectsTemp"""
4443  return _IMP_core.ChecksScoreState_do_get_outputs(self)
4444 
4445  def do_get_inputs(self):
4446  r"""do_get_inputs(ChecksScoreState self) -> IMP::ModelObjectsTemp"""
4447  return _IMP_core.ChecksScoreState_do_get_inputs(self)
4448 
4449  def get_version_info(self):
4450  r"""get_version_info(ChecksScoreState self) -> VersionInfo"""
4451  return _IMP_core.ChecksScoreState_get_version_info(self)
4452  __swig_destroy__ = _IMP_core.delete_ChecksScoreState
4453 
4454  def __str__(self):
4455  r"""__str__(ChecksScoreState self) -> std::string"""
4456  return _IMP_core.ChecksScoreState___str__(self)
4457 
4458  def __repr__(self):
4459  r"""__repr__(ChecksScoreState self) -> std::string"""
4460  return _IMP_core.ChecksScoreState___repr__(self)
4461 
4462  @staticmethod
4463  def get_from(o):
4464  return _object_cast_to_ChecksScoreState(o)
4465 
4466 
4467  def _get_as_binary(self):
4468  r"""_get_as_binary(ChecksScoreState self) -> PyObject *"""
4469  return _IMP_core.ChecksScoreState__get_as_binary(self)
4470 
4471  def _set_from_binary(self, p):
4472  r"""_set_from_binary(ChecksScoreState self, PyObject * p)"""
4473  return _IMP_core.ChecksScoreState__set_from_binary(self, p)
4474 
4475  def __getstate__(self):
4476  p = self._get_as_binary()
4477  if len(self.__dict__) > 1:
4478  d = self.__dict__.copy()
4479  del d['this']
4480  p = (d, p)
4481  return p
4482 
4483  def __setstate__(self, p):
4484  if not hasattr(self, 'this'):
4485  self.__init__()
4486  if isinstance(p, tuple):
4487  d, p = p
4488  self.__dict__.update(d)
4489  return self._set_from_binary(p)
4490 
4491 
4492 # Register ChecksScoreState in _IMP_core:
4493 _IMP_core.ChecksScoreState_swigregister(ChecksScoreState)
4494 class ChildrenRefiner(IMP.Refiner):
4495  r"""Proxy of C++ IMP::core::ChildrenRefiner class."""
4496 
4497  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4498 
4499  def __init__(self, tr):
4500  r"""__init__(ChildrenRefiner self, HierarchyTraits tr) -> ChildrenRefiner"""
4501  _IMP_core.ChildrenRefiner_swiginit(self, _IMP_core.new_ChildrenRefiner(tr))
4502 
4503  def do_get_inputs(self, m, pis):
4504  r"""do_get_inputs(ChildrenRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4505  return _IMP_core.ChildrenRefiner_do_get_inputs(self, m, pis)
4506 
4507  def get_version_info(self):
4508  r"""get_version_info(ChildrenRefiner self) -> VersionInfo"""
4509  return _IMP_core.ChildrenRefiner_get_version_info(self)
4510  __swig_destroy__ = _IMP_core.delete_ChildrenRefiner
4511 
4512  def __str__(self):
4513  r"""__str__(ChildrenRefiner self) -> std::string"""
4514  return _IMP_core.ChildrenRefiner___str__(self)
4515 
4516  def __repr__(self):
4517  r"""__repr__(ChildrenRefiner self) -> std::string"""
4518  return _IMP_core.ChildrenRefiner___repr__(self)
4519 
4520  @staticmethod
4521  def get_from(o):
4522  return _object_cast_to_ChildrenRefiner(o)
4523 
4524 
4525 # Register ChildrenRefiner in _IMP_core:
4526 _IMP_core.ChildrenRefiner_swigregister(ChildrenRefiner)
4527 class ClosedCubicSpline(IMP.UnaryFunction):
4528  r"""Proxy of C++ IMP::core::ClosedCubicSpline class."""
4529 
4530  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4531 
4532  def __init__(self, values, minrange, spacing):
4533  r"""__init__(ClosedCubicSpline self, IMP::Floats const & values, double minrange, double spacing) -> ClosedCubicSpline"""
4534  _IMP_core.ClosedCubicSpline_swiginit(self, _IMP_core.new_ClosedCubicSpline(values, minrange, spacing))
4535 
4536  def get_version_info(self):
4537  r"""get_version_info(ClosedCubicSpline self) -> VersionInfo"""
4538  return _IMP_core.ClosedCubicSpline_get_version_info(self)
4539  __swig_destroy__ = _IMP_core.delete_ClosedCubicSpline
4540 
4541  def do_show(self, out):
4542  r"""do_show(ClosedCubicSpline self, _ostream out)"""
4543  return _IMP_core.ClosedCubicSpline_do_show(self, out)
4544 
4545  def __str__(self):
4546  r"""__str__(ClosedCubicSpline self) -> std::string"""
4547  return _IMP_core.ClosedCubicSpline___str__(self)
4548 
4549  def __repr__(self):
4550  r"""__repr__(ClosedCubicSpline self) -> std::string"""
4551  return _IMP_core.ClosedCubicSpline___repr__(self)
4552 
4553  @staticmethod
4554  def get_from(o):
4555  return _object_cast_to_ClosedCubicSpline(o)
4556 
4557 
4558 # Register ClosedCubicSpline in _IMP_core:
4559 _IMP_core.ClosedCubicSpline_swigregister(ClosedCubicSpline)
4560 class KClosePairsPairScore(IMP.PairScore):
4561  r"""Proxy of C++ IMP::core::KClosePairsPairScore class."""
4562 
4563  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4564 
4565  def __init__(self, f, r, k=1):
4566  r"""__init__(KClosePairsPairScore self, PairScore f, Refiner r, int k=1) -> KClosePairsPairScore"""
4567  _IMP_core.KClosePairsPairScore_swiginit(self, _IMP_core.new_KClosePairsPairScore(f, r, k))
4568 
4569  def get_close_pairs(self, pp):
4570  r"""get_close_pairs(KClosePairsPairScore self, IMP::ParticlePair const & pp) -> IMP::ParticlePairsTemp"""
4571  return _IMP_core.KClosePairsPairScore_get_close_pairs(self, pp)
4572 
4573  def create_current_decomposition(self, m, vt):
4574  r"""create_current_decomposition(KClosePairsPairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
4575  return _IMP_core.KClosePairsPairScore_create_current_decomposition(self, m, vt)
4576 
4577  def do_get_inputs(self, m, pis):
4578  r"""do_get_inputs(KClosePairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4579  return _IMP_core.KClosePairsPairScore_do_get_inputs(self, m, pis)
4580 
4581  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
4582  r"""evaluate_indexes(KClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
4583  return _IMP_core.KClosePairsPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
4584 
4585  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
4586  r"""evaluate_indexes_scores(KClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
4587  return _IMP_core.KClosePairsPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
4588 
4589  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
4590  r"""evaluate_indexes_delta(KClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
4591  return _IMP_core.KClosePairsPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
4592 
4593  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
4594  r"""evaluate_if_good_indexes(KClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
4595  return _IMP_core.KClosePairsPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
4596 
4597  def get_version_info(self):
4598  r"""get_version_info(KClosePairsPairScore self) -> VersionInfo"""
4599  return _IMP_core.KClosePairsPairScore_get_version_info(self)
4600  __swig_destroy__ = _IMP_core.delete_KClosePairsPairScore
4601 
4602  def __str__(self):
4603  r"""__str__(KClosePairsPairScore self) -> std::string"""
4604  return _IMP_core.KClosePairsPairScore___str__(self)
4605 
4606  def __repr__(self):
4607  r"""__repr__(KClosePairsPairScore self) -> std::string"""
4608  return _IMP_core.KClosePairsPairScore___repr__(self)
4609 
4610  @staticmethod
4611  def get_from(o):
4612  return _object_cast_to_KClosePairsPairScore(o)
4613 
4614 
4615 # Register KClosePairsPairScore in _IMP_core:
4616 _IMP_core.KClosePairsPairScore_swigregister(KClosePairsPairScore)
4617 class ClosePairsPairScore(IMP.PairScore):
4618  r"""Proxy of C++ IMP::core::ClosePairsPairScore class."""
4619 
4620  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4621 
4622  def __init__(self, f, r, max_distance):
4623  r"""__init__(ClosePairsPairScore self, PairScore f, Refiner r, IMP::Float max_distance) -> ClosePairsPairScore"""
4624  _IMP_core.ClosePairsPairScore_swiginit(self, _IMP_core.new_ClosePairsPairScore(f, r, max_distance))
4625 
4626  def get_close_pairs(self, pp):
4627  r"""get_close_pairs(ClosePairsPairScore self, IMP::ParticlePair const & pp) -> IMP::ParticlePairsTemp"""
4628  return _IMP_core.ClosePairsPairScore_get_close_pairs(self, pp)
4629 
4630  def create_current_decomposition(self, m, vt):
4631  r"""create_current_decomposition(ClosePairsPairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
4632  return _IMP_core.ClosePairsPairScore_create_current_decomposition(self, m, vt)
4633 
4634  def do_get_inputs(self, m, pis):
4635  r"""do_get_inputs(ClosePairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4636  return _IMP_core.ClosePairsPairScore_do_get_inputs(self, m, pis)
4637 
4638  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
4639  r"""evaluate_indexes(ClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
4640  return _IMP_core.ClosePairsPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
4641 
4642  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
4643  r"""evaluate_indexes_scores(ClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
4644  return _IMP_core.ClosePairsPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
4645 
4646  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
4647  r"""evaluate_indexes_delta(ClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
4648  return _IMP_core.ClosePairsPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
4649 
4650  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
4651  r"""evaluate_if_good_indexes(ClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
4652  return _IMP_core.ClosePairsPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
4653 
4654  def get_version_info(self):
4655  r"""get_version_info(ClosePairsPairScore self) -> VersionInfo"""
4656  return _IMP_core.ClosePairsPairScore_get_version_info(self)
4657  __swig_destroy__ = _IMP_core.delete_ClosePairsPairScore
4658 
4659  def __str__(self):
4660  r"""__str__(ClosePairsPairScore self) -> std::string"""
4661  return _IMP_core.ClosePairsPairScore___str__(self)
4662 
4663  def __repr__(self):
4664  r"""__repr__(ClosePairsPairScore self) -> std::string"""
4665  return _IMP_core.ClosePairsPairScore___repr__(self)
4666 
4667  @staticmethod
4668  def get_from(o):
4669  return _object_cast_to_ClosePairsPairScore(o)
4670 
4671 
4672 # Register ClosePairsPairScore in _IMP_core:
4673 _IMP_core.ClosePairsPairScore_swigregister(ClosePairsPairScore)
4674 class ConjugateGradients(IMP.AttributeOptimizer):
4675  r"""Proxy of C++ IMP::core::ConjugateGradients class."""
4676 
4677  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4678 
4679  def __init__(self, *args):
4680  r"""
4681  __init__(ConjugateGradients self, Model m, std::string name="ConjugateGradients%1%") -> ConjugateGradients
4682  __init__(ConjugateGradients self) -> ConjugateGradients
4683  """
4684  _IMP_core.ConjugateGradients_swiginit(self, _IMP_core.new_ConjugateGradients(*args))
4685 
4686  def set_gradient_threshold(self, t):
4687  r"""set_gradient_threshold(ConjugateGradients self, IMP::Float t)"""
4688  return _IMP_core.ConjugateGradients_set_gradient_threshold(self, t)
4689 
4690  def set_max_change(self, t):
4691  r"""set_max_change(ConjugateGradients self, IMP::Float t)"""
4692  return _IMP_core.ConjugateGradients_set_max_change(self, t)
4693 
4694  def do_optimize(self, max_steps):
4695  r"""do_optimize(ConjugateGradients self, unsigned int max_steps) -> IMP::Float"""
4696  return _IMP_core.ConjugateGradients_do_optimize(self, max_steps)
4697 
4698  def get_version_info(self):
4699  r"""get_version_info(ConjugateGradients self) -> VersionInfo"""
4700  return _IMP_core.ConjugateGradients_get_version_info(self)
4701  __swig_destroy__ = _IMP_core.delete_ConjugateGradients
4702 
4703  def __str__(self):
4704  r"""__str__(ConjugateGradients self) -> std::string"""
4705  return _IMP_core.ConjugateGradients___str__(self)
4706 
4707  def __repr__(self):
4708  r"""__repr__(ConjugateGradients self) -> std::string"""
4709  return _IMP_core.ConjugateGradients___repr__(self)
4710 
4711  @staticmethod
4712  def get_from(o):
4713  return _object_cast_to_ConjugateGradients(o)
4714 
4715 
4716  def _get_as_binary(self):
4717  r"""_get_as_binary(ConjugateGradients self) -> PyObject *"""
4718  return _IMP_core.ConjugateGradients__get_as_binary(self)
4719 
4720  def _set_from_binary(self, p):
4721  r"""_set_from_binary(ConjugateGradients self, PyObject * p)"""
4722  return _IMP_core.ConjugateGradients__set_from_binary(self, p)
4723 
4724  def __getstate__(self):
4725  p = self._get_as_binary()
4726  if len(self.__dict__) > 1:
4727  d = self.__dict__.copy()
4728  del d['this']
4729  p = (d, p)
4730  return p
4731 
4732  def __setstate__(self, p):
4733  if not hasattr(self, 'this'):
4734  self.__init__()
4735  if isinstance(p, tuple):
4736  d, p = p
4737  self.__dict__.update(d)
4738  return self._set_from_binary(p)
4739 
4740 
4741 # Register ConjugateGradients in _IMP_core:
4742 _IMP_core.ConjugateGradients_swigregister(ConjugateGradients)
4743 class ConnectivityRestraint(IMP.Restraint):
4744  r"""Proxy of C++ IMP::core::ConnectivityRestraint class."""
4745 
4746  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4747 
4748  def __init__(self, ps, sc):
4749  r"""__init__(ConnectivityRestraint self, PairScore ps, _SingletonContainerAdaptor sc) -> ConnectivityRestraint"""
4750  _IMP_core.ConnectivityRestraint_swiginit(self, _IMP_core.new_ConnectivityRestraint(ps, sc))
4751 
4752  def get_connected_index_pairs(self):
4753  r"""get_connected_index_pairs(ConnectivityRestraint self) -> IMP::ParticleIndexPairs"""
4754  return _IMP_core.ConnectivityRestraint_get_connected_index_pairs(self)
4755 
4756  def get_pair_score(self):
4757  r"""get_pair_score(ConnectivityRestraint self) -> PairScore"""
4758  return _IMP_core.ConnectivityRestraint_get_pair_score(self)
4759 
4760  def do_create_current_decomposition(self):
4761  r"""do_create_current_decomposition(ConnectivityRestraint self) -> IMP::Restraints"""
4762  return _IMP_core.ConnectivityRestraint_do_create_current_decomposition(self)
4763 
4764  def do_get_inputs(self):
4765  r"""do_get_inputs(ConnectivityRestraint self) -> IMP::ModelObjectsTemp"""
4766  return _IMP_core.ConnectivityRestraint_do_get_inputs(self)
4767 
4768  def get_version_info(self):
4769  r"""get_version_info(ConnectivityRestraint self) -> VersionInfo"""
4770  return _IMP_core.ConnectivityRestraint_get_version_info(self)
4771  __swig_destroy__ = _IMP_core.delete_ConnectivityRestraint
4772 
4773  def __str__(self):
4774  r"""__str__(ConnectivityRestraint self) -> std::string"""
4775  return _IMP_core.ConnectivityRestraint___str__(self)
4776 
4777  def __repr__(self):
4778  r"""__repr__(ConnectivityRestraint self) -> std::string"""
4779  return _IMP_core.ConnectivityRestraint___repr__(self)
4780 
4781  @staticmethod
4782  def get_from(o):
4783  return _object_cast_to_ConnectivityRestraint(o)
4784 
4785 
4786 # Register ConnectivityRestraint in _IMP_core:
4787 _IMP_core.ConnectivityRestraint_swigregister(ConnectivityRestraint)
4788 class ConstantRestraint(IMP.Restraint):
4789  r"""Proxy of C++ IMP::core::ConstantRestraint class."""
4790 
4791  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4792 
4793  def __init__(self, *args):
4794  r"""
4795  __init__(ConstantRestraint self, Model m, IMP::Float v) -> ConstantRestraint
4796  __init__(ConstantRestraint self) -> ConstantRestraint
4797  """
4798  _IMP_core.ConstantRestraint_swiginit(self, _IMP_core.new_ConstantRestraint(*args))
4799 
4800  def do_get_inputs(self):
4801  r"""do_get_inputs(ConstantRestraint self) -> IMP::ModelObjectsTemp"""
4802  return _IMP_core.ConstantRestraint_do_get_inputs(self)
4803 
4804  def get_version_info(self):
4805  r"""get_version_info(ConstantRestraint self) -> VersionInfo"""
4806  return _IMP_core.ConstantRestraint_get_version_info(self)
4807  __swig_destroy__ = _IMP_core.delete_ConstantRestraint
4808 
4809  def __str__(self):
4810  r"""__str__(ConstantRestraint self) -> std::string"""
4811  return _IMP_core.ConstantRestraint___str__(self)
4812 
4813  def __repr__(self):
4814  r"""__repr__(ConstantRestraint self) -> std::string"""
4815  return _IMP_core.ConstantRestraint___repr__(self)
4816 
4817  @staticmethod
4818  def get_from(o):
4819  return _object_cast_to_ConstantRestraint(o)
4820 
4821 
4822  def _get_as_binary(self):
4823  r"""_get_as_binary(ConstantRestraint self) -> PyObject *"""
4824  return _IMP_core.ConstantRestraint__get_as_binary(self)
4825 
4826  def _set_from_binary(self, p):
4827  r"""_set_from_binary(ConstantRestraint self, PyObject * p)"""
4828  return _IMP_core.ConstantRestraint__set_from_binary(self, p)
4829 
4830  def __getstate__(self):
4831  p = self._get_as_binary()
4832  if len(self.__dict__) > 1:
4833  d = self.__dict__.copy()
4834  del d['this']
4835  p = (d, p)
4836  return p
4837 
4838  def __setstate__(self, p):
4839  if not hasattr(self, 'this'):
4840  self.__init__()
4841  if isinstance(p, tuple):
4842  d, p = p
4843  self.__dict__.update(d)
4844  return self._set_from_binary(p)
4845 
4846 
4847 # Register ConstantRestraint in _IMP_core:
4848 _IMP_core.ConstantRestraint_swigregister(ConstantRestraint)
4849 class Cosine(IMP.UnaryFunction):
4850  r"""Proxy of C++ IMP::core::Cosine class."""
4851 
4852  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4853 
4854  def __init__(self, *args):
4855  r"""
4856  __init__(Cosine self, IMP::Float force_constant, int periodicity, IMP::Float phase) -> Cosine
4857  __init__(Cosine self) -> Cosine
4858  """
4859  _IMP_core.Cosine_swiginit(self, _IMP_core.new_Cosine(*args))
4860 
4861  def get_version_info(self):
4862  r"""get_version_info(Cosine self) -> VersionInfo"""
4863  return _IMP_core.Cosine_get_version_info(self)
4864  __swig_destroy__ = _IMP_core.delete_Cosine
4865 
4866  def do_show(self, out):
4867  r"""do_show(Cosine self, _ostream out)"""
4868  return _IMP_core.Cosine_do_show(self, out)
4869 
4870  def __str__(self):
4871  r"""__str__(Cosine self) -> std::string"""
4872  return _IMP_core.Cosine___str__(self)
4873 
4874  def __repr__(self):
4875  r"""__repr__(Cosine self) -> std::string"""
4876  return _IMP_core.Cosine___repr__(self)
4877 
4878  @staticmethod
4879  def get_from(o):
4880  return _object_cast_to_Cosine(o)
4881 
4882 
4883  def _get_as_binary(self):
4884  r"""_get_as_binary(Cosine self) -> PyObject *"""
4885  return _IMP_core.Cosine__get_as_binary(self)
4886 
4887  def _set_from_binary(self, p):
4888  r"""_set_from_binary(Cosine self, PyObject * p)"""
4889  return _IMP_core.Cosine__set_from_binary(self, p)
4890 
4891  def __getstate__(self):
4892  p = self._get_as_binary()
4893  if len(self.__dict__) > 1:
4894  d = self.__dict__.copy()
4895  del d['this']
4896  p = (d, p)
4897  return p
4898 
4899  def __setstate__(self, p):
4900  if not hasattr(self, 'this'):
4901  self.__init__()
4902  if isinstance(p, tuple):
4903  d, p = p
4904  self.__dict__.update(d)
4905  return self._set_from_binary(p)
4906 
4907 
4908 # Register Cosine in _IMP_core:
4909 _IMP_core.Cosine_swigregister(Cosine)
4910 class CoverRefined(IMP.SingletonModifier):
4911  r"""Proxy of C++ IMP::core::CoverRefined class."""
4912 
4913  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4914 
4915  def __init__(self, ref, slack=0):
4916  r"""__init__(CoverRefined self, Refiner ref, IMP::Float slack=0) -> CoverRefined"""
4917  _IMP_core.CoverRefined_swiginit(self, _IMP_core.new_CoverRefined(ref, slack))
4918 
4919  def set_slack(self, slack):
4920  r"""set_slack(CoverRefined self, IMP::Float slack)"""
4921  return _IMP_core.CoverRefined_set_slack(self, slack)
4922 
4923  def do_get_inputs(self, m, pis):
4924  r"""do_get_inputs(CoverRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4925  return _IMP_core.CoverRefined_do_get_inputs(self, m, pis)
4926 
4927  def do_get_outputs(self, m, pis):
4928  r"""do_get_outputs(CoverRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4929  return _IMP_core.CoverRefined_do_get_outputs(self, m, pis)
4930 
4931  def get_version_info(self):
4932  r"""get_version_info(CoverRefined self) -> VersionInfo"""
4933  return _IMP_core.CoverRefined_get_version_info(self)
4934  __swig_destroy__ = _IMP_core.delete_CoverRefined
4935 
4936  def __str__(self):
4937  r"""__str__(CoverRefined self) -> std::string"""
4938  return _IMP_core.CoverRefined___str__(self)
4939 
4940  def __repr__(self):
4941  r"""__repr__(CoverRefined self) -> std::string"""
4942  return _IMP_core.CoverRefined___repr__(self)
4943 
4944  @staticmethod
4945  def get_from(o):
4946  return _object_cast_to_CoverRefined(o)
4947 
4948 
4949 # Register CoverRefined in _IMP_core:
4950 _IMP_core.CoverRefined_swigregister(CoverRefined)
4951 class Cover(XYZR):
4952  r"""Proxy of C++ IMP::core::Cover class."""
4953 
4954  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4955 
4956  def get_constraint(self):
4957  r"""get_constraint(Cover self) -> Constraint"""
4958  return _IMP_core.Cover_get_constraint(self)
4959 
4960  def __init__(self, *args):
4961  r"""
4962  __init__(Cover self) -> Cover
4963  __init__(Cover self, Model m, ParticleIndex id) -> Cover
4964  __init__(Cover self, _ParticleAdaptor d) -> Cover
4965  """
4966  _IMP_core.Cover_swiginit(self, _IMP_core.new_Cover(*args))
4967 
4968  def show(self, *args):
4969  r"""show(Cover self, _ostream out=std::cout)"""
4970  return _IMP_core.Cover_show(self, *args)
4971 
4972  @staticmethod
4973  def setup_particle(*args):
4974  r"""
4975  setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor members) -> Cover
4976  setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor members) -> Cover
4977  setup_particle(Model m, ParticleIndex pi, Refiner refiner) -> Cover
4978  setup_particle(_ParticleAdaptor pa, Refiner refiner) -> Cover
4979  """
4980  return _IMP_core.Cover_setup_particle(*args)
4981 
4982  @staticmethod
4983  def get_is_setup(*args):
4984  r"""
4985  get_is_setup(_ParticleAdaptor p) -> bool
4986  get_is_setup(Model m, ParticleIndex pi) -> bool
4987  """
4988  return _IMP_core.Cover_get_is_setup(*args)
4989 
4990  def add_attribute(self, *args):
4991  r"""
4992  add_attribute(Cover self, FloatKey k, IMP::Float v, bool opt)
4993  add_attribute(Cover self, FloatKey a0, IMP::Float a1)
4994  add_attribute(Cover self, IntKey a0, IMP::Int a1)
4995  add_attribute(Cover self, FloatsKey a0, IMP::Floats a1)
4996  add_attribute(Cover self, IntsKey a0, IMP::Ints a1)
4997  add_attribute(Cover self, StringKey a0, IMP::String a1)
4998  add_attribute(Cover self, ParticleIndexKey a0, Particle a1)
4999  add_attribute(Cover self, ObjectKey a0, Object a1)
5000  add_attribute(Cover self, SparseFloatKey a0, IMP::Float a1)
5001  add_attribute(Cover self, SparseIntKey a0, IMP::Int a1)
5002  add_attribute(Cover self, SparseStringKey a0, IMP::String a1)
5003  add_attribute(Cover self, SparseParticleIndexKey a0, ParticleIndex a1)
5004  """
5005  return _IMP_core.Cover_add_attribute(self, *args)
5006 
5007  def get_value(self, *args):
5008  r"""
5009  get_value(Cover self, FloatKey a0) -> IMP::Float
5010  get_value(Cover self, IntKey a0) -> IMP::Int
5011  get_value(Cover self, FloatsKey a0) -> IMP::Floats
5012  get_value(Cover self, IntsKey a0) -> IMP::Ints
5013  get_value(Cover self, StringKey a0) -> IMP::String
5014  get_value(Cover self, ParticleIndexKey a0) -> Particle
5015  get_value(Cover self, ObjectKey a0) -> Object
5016  get_value(Cover self, SparseFloatKey a0) -> IMP::Float
5017  get_value(Cover self, SparseIntKey a0) -> IMP::Int
5018  get_value(Cover self, SparseStringKey a0) -> IMP::String
5019  get_value(Cover self, SparseParticleIndexKey a0) -> ParticleIndex
5020  """
5021  return _IMP_core.Cover_get_value(self, *args)
5022 
5023  def set_value(self, *args):
5024  r"""
5025  set_value(Cover self, FloatKey a0, IMP::Float a1)
5026  set_value(Cover self, IntKey a0, IMP::Int a1)
5027  set_value(Cover self, FloatsKey a0, IMP::Floats a1)
5028  set_value(Cover self, IntsKey a0, IMP::Ints a1)
5029  set_value(Cover self, StringKey a0, IMP::String a1)
5030  set_value(Cover self, ParticleIndexKey a0, Particle a1)
5031  set_value(Cover self, ObjectKey a0, Object a1)
5032  set_value(Cover self, SparseFloatKey a0, IMP::Float a1)
5033  set_value(Cover self, SparseIntKey a0, IMP::Int a1)
5034  set_value(Cover self, SparseStringKey a0, IMP::String a1)
5035  set_value(Cover self, SparseParticleIndexKey a0, ParticleIndex a1)
5036  """
5037  return _IMP_core.Cover_set_value(self, *args)
5038 
5039  def remove_attribute(self, *args):
5040  r"""
5041  remove_attribute(Cover self, FloatKey a0)
5042  remove_attribute(Cover self, IntKey a0)
5043  remove_attribute(Cover self, FloatsKey a0)
5044  remove_attribute(Cover self, IntsKey a0)
5045  remove_attribute(Cover self, StringKey a0)
5046  remove_attribute(Cover self, ParticleIndexKey a0)
5047  remove_attribute(Cover self, ObjectKey a0)
5048  remove_attribute(Cover self, SparseFloatKey a0)
5049  remove_attribute(Cover self, SparseIntKey a0)
5050  remove_attribute(Cover self, SparseStringKey a0)
5051  remove_attribute(Cover self, SparseParticleIndexKey a0)
5052  """
5053  return _IMP_core.Cover_remove_attribute(self, *args)
5054 
5055  def has_attribute(self, *args):
5056  r"""
5057  has_attribute(Cover self, FloatKey a0) -> bool
5058  has_attribute(Cover self, IntKey a0) -> bool
5059  has_attribute(Cover self, FloatsKey a0) -> bool
5060  has_attribute(Cover self, IntsKey a0) -> bool
5061  has_attribute(Cover self, StringKey a0) -> bool
5062  has_attribute(Cover self, ParticleIndexKey a0) -> bool
5063  has_attribute(Cover self, ObjectKey a0) -> bool
5064  has_attribute(Cover self, SparseFloatKey a0) -> bool
5065  has_attribute(Cover self, SparseIntKey a0) -> bool
5066  has_attribute(Cover self, SparseStringKey a0) -> bool
5067  has_attribute(Cover self, SparseParticleIndexKey a0) -> bool
5068  """
5069  return _IMP_core.Cover_has_attribute(self, *args)
5070 
5071  def get_derivative(self, a0):
5072  r"""get_derivative(Cover self, FloatKey a0) -> double"""
5073  return _IMP_core.Cover_get_derivative(self, a0)
5074 
5075  def get_name(self):
5076  r"""get_name(Cover self) -> std::string"""
5077  return _IMP_core.Cover_get_name(self)
5078 
5079  def clear_caches(self):
5080  r"""clear_caches(Cover self)"""
5081  return _IMP_core.Cover_clear_caches(self)
5082 
5083  def set_name(self, a0):
5084  r"""set_name(Cover self, std::string a0)"""
5085  return _IMP_core.Cover_set_name(self, a0)
5086 
5087  def set_check_level(self, a0):
5088  r"""set_check_level(Cover self, IMP::CheckLevel a0)"""
5089  return _IMP_core.Cover_set_check_level(self, a0)
5090 
5091  def add_to_derivative(self, a0, a1, a2):
5092  r"""add_to_derivative(Cover self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5093  return _IMP_core.Cover_add_to_derivative(self, a0, a1, a2)
5094 
5095  def set_is_optimized(self, a0, a1):
5096  r"""set_is_optimized(Cover self, FloatKey a0, bool a1)"""
5097  return _IMP_core.Cover_set_is_optimized(self, a0, a1)
5098 
5099  def get_is_optimized(self, a0):
5100  r"""get_is_optimized(Cover self, FloatKey a0) -> bool"""
5101  return _IMP_core.Cover_get_is_optimized(self, a0)
5102 
5103  def get_check_level(self):
5104  r"""get_check_level(Cover self) -> IMP::CheckLevel"""
5105  return _IMP_core.Cover_get_check_level(self)
5106 
5107  def __eq__(self, *args):
5108  r"""
5109  __eq__(Cover self, Cover o) -> bool
5110  __eq__(Cover self, Particle d) -> bool
5111  """
5112  return _IMP_core.Cover___eq__(self, *args)
5113 
5114  def __ne__(self, *args):
5115  r"""
5116  __ne__(Cover self, Cover o) -> bool
5117  __ne__(Cover self, Particle d) -> bool
5118  """
5119  return _IMP_core.Cover___ne__(self, *args)
5120 
5121  def __le__(self, *args):
5122  r"""
5123  __le__(Cover self, Cover o) -> bool
5124  __le__(Cover self, Particle d) -> bool
5125  """
5126  return _IMP_core.Cover___le__(self, *args)
5127 
5128  def __lt__(self, *args):
5129  r"""
5130  __lt__(Cover self, Cover o) -> bool
5131  __lt__(Cover self, Particle d) -> bool
5132  """
5133  return _IMP_core.Cover___lt__(self, *args)
5134 
5135  def __ge__(self, *args):
5136  r"""
5137  __ge__(Cover self, Cover o) -> bool
5138  __ge__(Cover self, Particle d) -> bool
5139  """
5140  return _IMP_core.Cover___ge__(self, *args)
5141 
5142  def __gt__(self, *args):
5143  r"""
5144  __gt__(Cover self, Cover o) -> bool
5145  __gt__(Cover self, Particle d) -> bool
5146  """
5147  return _IMP_core.Cover___gt__(self, *args)
5148 
5149  def __hash__(self):
5150  r"""__hash__(Cover self) -> std::size_t"""
5151  return _IMP_core.Cover___hash__(self)
5152 
5153  def __str__(self):
5154  r"""__str__(Cover self) -> std::string"""
5155  return _IMP_core.Cover___str__(self)
5156 
5157  def __repr__(self):
5158  r"""__repr__(Cover self) -> std::string"""
5159  return _IMP_core.Cover___repr__(self)
5160 
5161  def _get_as_binary(self):
5162  r"""_get_as_binary(Cover self) -> PyObject *"""
5163  return _IMP_core.Cover__get_as_binary(self)
5164 
5165  def _set_from_binary(self, p):
5166  r"""_set_from_binary(Cover self, PyObject * p)"""
5167  return _IMP_core.Cover__set_from_binary(self, p)
5168 
5169  def __getstate__(self):
5170  p = self._get_as_binary()
5171  if len(self.__dict__) > 1:
5172  d = self.__dict__.copy()
5173  del d['this']
5174  p = (d, p)
5175  return p
5176 
5177  def __setstate__(self, p):
5178  if not hasattr(self, 'this'):
5179  self.__init__()
5180  if isinstance(p, tuple):
5181  d, p = p
5182  self.__dict__.update(d)
5183  return self._set_from_binary(p)
5184 
5185  __swig_destroy__ = _IMP_core.delete_Cover
5186 
5187 # Register Cover in _IMP_core:
5188 _IMP_core.Cover_swigregister(Cover)
5189 class DerivativesFromRefined(IMP.SingletonModifier):
5190  r"""Proxy of C++ IMP::core::DerivativesFromRefined class."""
5191 
5192  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5193 
5194  def __init__(self, *args):
5195  r"""__init__(DerivativesFromRefined self, Refiner r, IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> DerivativesFromRefined"""
5196  _IMP_core.DerivativesFromRefined_swiginit(self, _IMP_core.new_DerivativesFromRefined(*args))
5197 
5198  def do_get_inputs(self, m, pis):
5199  r"""do_get_inputs(DerivativesFromRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5200  return _IMP_core.DerivativesFromRefined_do_get_inputs(self, m, pis)
5201 
5202  def do_get_outputs(self, m, pis):
5203  r"""do_get_outputs(DerivativesFromRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5204  return _IMP_core.DerivativesFromRefined_do_get_outputs(self, m, pis)
5205 
5206  def get_version_info(self):
5207  r"""get_version_info(DerivativesFromRefined self) -> VersionInfo"""
5208  return _IMP_core.DerivativesFromRefined_get_version_info(self)
5209  __swig_destroy__ = _IMP_core.delete_DerivativesFromRefined
5210 
5211  def __str__(self):
5212  r"""__str__(DerivativesFromRefined self) -> std::string"""
5213  return _IMP_core.DerivativesFromRefined___str__(self)
5214 
5215  def __repr__(self):
5216  r"""__repr__(DerivativesFromRefined self) -> std::string"""
5217  return _IMP_core.DerivativesFromRefined___repr__(self)
5218 
5219  @staticmethod
5220  def get_from(o):
5221  return _object_cast_to_DerivativesFromRefined(o)
5222 
5223 
5224 # Register DerivativesFromRefined in _IMP_core:
5225 _IMP_core.DerivativesFromRefined_swigregister(DerivativesFromRefined)
5226 class DerivativesToRefined(IMP.SingletonModifier):
5227  r"""Proxy of C++ IMP::core::DerivativesToRefined class."""
5228 
5229  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5230 
5231  def __init__(self, *args):
5232  r"""__init__(DerivativesToRefined self, Refiner r, IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> DerivativesToRefined"""
5233  _IMP_core.DerivativesToRefined_swiginit(self, _IMP_core.new_DerivativesToRefined(*args))
5234 
5235  def do_get_inputs(self, m, pis):
5236  r"""do_get_inputs(DerivativesToRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5237  return _IMP_core.DerivativesToRefined_do_get_inputs(self, m, pis)
5238 
5239  def do_get_outputs(self, m, pis):
5240  r"""do_get_outputs(DerivativesToRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5241  return _IMP_core.DerivativesToRefined_do_get_outputs(self, m, pis)
5242 
5243  def get_version_info(self):
5244  r"""get_version_info(DerivativesToRefined self) -> VersionInfo"""
5245  return _IMP_core.DerivativesToRefined_get_version_info(self)
5246  __swig_destroy__ = _IMP_core.delete_DerivativesToRefined
5247 
5248  def __str__(self):
5249  r"""__str__(DerivativesToRefined self) -> std::string"""
5250  return _IMP_core.DerivativesToRefined___str__(self)
5251 
5252  def __repr__(self):
5253  r"""__repr__(DerivativesToRefined self) -> std::string"""
5254  return _IMP_core.DerivativesToRefined___repr__(self)
5255 
5256  @staticmethod
5257  def get_from(o):
5258  return _object_cast_to_DerivativesToRefined(o)
5259 
5260 
5261 # Register DerivativesToRefined in _IMP_core:
5262 _IMP_core.DerivativesToRefined_swigregister(DerivativesToRefined)
5263 class DiameterRestraint(IMP.Restraint):
5264  r"""Proxy of C++ IMP::core::DiameterRestraint class."""
5265 
5266  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5267 
5268  def __init__(self, f, sc, diameter):
5269  r"""__init__(DiameterRestraint self, UnaryFunction f, SingletonContainer sc, IMP::Float diameter) -> DiameterRestraint"""
5270  _IMP_core.DiameterRestraint_swiginit(self, _IMP_core.new_DiameterRestraint(f, sc, diameter))
5271 
5272  def do_get_inputs(self):
5273  r"""do_get_inputs(DiameterRestraint self) -> IMP::ModelObjectsTemp"""
5274  return _IMP_core.DiameterRestraint_do_get_inputs(self)
5275 
5276  def get_version_info(self):
5277  r"""get_version_info(DiameterRestraint self) -> VersionInfo"""
5278  return _IMP_core.DiameterRestraint_get_version_info(self)
5279  __swig_destroy__ = _IMP_core.delete_DiameterRestraint
5280 
5281  def do_create_decomposition(self):
5282  r"""do_create_decomposition(DiameterRestraint self) -> IMP::Restraints"""
5283  return _IMP_core.DiameterRestraint_do_create_decomposition(self)
5284 
5285  def do_create_current_decomposition(self):
5286  r"""do_create_current_decomposition(DiameterRestraint self) -> IMP::Restraints"""
5287  return _IMP_core.DiameterRestraint_do_create_current_decomposition(self)
5288 
5289  def __str__(self):
5290  r"""__str__(DiameterRestraint self) -> std::string"""
5291  return _IMP_core.DiameterRestraint___str__(self)
5292 
5293  def __repr__(self):
5294  r"""__repr__(DiameterRestraint self) -> std::string"""
5295  return _IMP_core.DiameterRestraint___repr__(self)
5296 
5297  @staticmethod
5298  def get_from(o):
5299  return _object_cast_to_DiameterRestraint(o)
5300 
5301 
5302 # Register DiameterRestraint in _IMP_core:
5303 _IMP_core.DiameterRestraint_swigregister(DiameterRestraint)
5304 class Transform(IMP.SingletonModifier):
5305  r"""Proxy of C++ IMP::core::Transform class."""
5306 
5307  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5308 
5309  def __init__(self, *args):
5310  r"""
5311  __init__(Transform self, Transformation3D t, bool ignore_non_xyz=False) -> Transform
5312  __init__(Transform self) -> Transform
5313  """
5314  _IMP_core.Transform_swiginit(self, _IMP_core.new_Transform(*args))
5315 
5316  def do_get_inputs(self, m, pis):
5317  r"""do_get_inputs(Transform self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5318  return _IMP_core.Transform_do_get_inputs(self, m, pis)
5319 
5320  def do_get_outputs(self, m, pis):
5321  r"""do_get_outputs(Transform self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5322  return _IMP_core.Transform_do_get_outputs(self, m, pis)
5323 
5324  def get_version_info(self):
5325  r"""get_version_info(Transform self) -> VersionInfo"""
5326  return _IMP_core.Transform_get_version_info(self)
5327  __swig_destroy__ = _IMP_core.delete_Transform
5328 
5329  def __str__(self):
5330  r"""__str__(Transform self) -> std::string"""
5331  return _IMP_core.Transform___str__(self)
5332 
5333  def __repr__(self):
5334  r"""__repr__(Transform self) -> std::string"""
5335  return _IMP_core.Transform___repr__(self)
5336 
5337  @staticmethod
5338  def get_from(o):
5339  return _object_cast_to_Transform(o)
5340 
5341 
5342  def _get_as_binary(self):
5343  r"""_get_as_binary(Transform self) -> PyObject *"""
5344  return _IMP_core.Transform__get_as_binary(self)
5345 
5346  def _set_from_binary(self, p):
5347  r"""_set_from_binary(Transform self, PyObject * p)"""
5348  return _IMP_core.Transform__set_from_binary(self, p)
5349 
5350  def __getstate__(self):
5351  p = self._get_as_binary()
5352  if len(self.__dict__) > 1:
5353  d = self.__dict__.copy()
5354  del d['this']
5355  p = (d, p)
5356  return p
5357 
5358  def __setstate__(self, p):
5359  if not hasattr(self, 'this'):
5360  self.__init__()
5361  if isinstance(p, tuple):
5362  d, p = p
5363  self.__dict__.update(d)
5364  return self._set_from_binary(p)
5365 
5366 
5367 # Register Transform in _IMP_core:
5368 _IMP_core.Transform_swigregister(Transform)
5369 class Reference(IMP.Decorator):
5370  r"""Proxy of C++ IMP::core::Reference class."""
5371 
5372  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5373 
5374  def __init__(self, *args):
5375  r"""
5376  __init__(Reference self) -> Reference
5377  __init__(Reference self, Model m, ParticleIndex id) -> Reference
5378  __init__(Reference self, _ParticleAdaptor d) -> Reference
5379  """
5380  _IMP_core.Reference_swiginit(self, _IMP_core.new_Reference(*args))
5381 
5382  def show(self, *args):
5383  r"""show(Reference self, _ostream out=std::cout)"""
5384  return _IMP_core.Reference_show(self, *args)
5385 
5386  @staticmethod
5387  def setup_particle(*args):
5388  r"""
5389  setup_particle(Model m, ParticleIndex pi, _ParticleIndexAdaptor reference) -> Reference
5390  setup_particle(_ParticleAdaptor pa, _ParticleIndexAdaptor reference) -> Reference
5391  """
5392  return _IMP_core.Reference_setup_particle(*args)
5393 
5394  def get_reference_particle(self):
5395  r"""get_reference_particle(Reference self) -> Particle"""
5396  return _IMP_core.Reference_get_reference_particle(self)
5397 
5398  @staticmethod
5399  def get_is_setup(*args):
5400  r"""
5401  get_is_setup(_ParticleAdaptor p) -> bool
5402  get_is_setup(Model m, ParticleIndex pi) -> bool
5403  """
5404  return _IMP_core.Reference_get_is_setup(*args)
5405 
5406  @staticmethod
5407  def get_reference_key():
5408  r"""get_reference_key() -> ParticleIndexKey"""
5409  return _IMP_core.Reference_get_reference_key()
5410 
5411  def add_attribute(self, *args):
5412  r"""
5413  add_attribute(Reference self, FloatKey k, IMP::Float v, bool opt)
5414  add_attribute(Reference self, FloatKey a0, IMP::Float a1)
5415  add_attribute(Reference self, IntKey a0, IMP::Int a1)
5416  add_attribute(Reference self, FloatsKey a0, IMP::Floats a1)
5417  add_attribute(Reference self, IntsKey a0, IMP::Ints a1)
5418  add_attribute(Reference self, StringKey a0, IMP::String a1)
5419  add_attribute(Reference self, ParticleIndexKey a0, Particle a1)
5420  add_attribute(Reference self, ObjectKey a0, Object a1)
5421  add_attribute(Reference self, SparseFloatKey a0, IMP::Float a1)
5422  add_attribute(Reference self, SparseIntKey a0, IMP::Int a1)
5423  add_attribute(Reference self, SparseStringKey a0, IMP::String a1)
5424  add_attribute(Reference self, SparseParticleIndexKey a0, ParticleIndex a1)
5425  """
5426  return _IMP_core.Reference_add_attribute(self, *args)
5427 
5428  def get_value(self, *args):
5429  r"""
5430  get_value(Reference self, FloatKey a0) -> IMP::Float
5431  get_value(Reference self, IntKey a0) -> IMP::Int
5432  get_value(Reference self, FloatsKey a0) -> IMP::Floats
5433  get_value(Reference self, IntsKey a0) -> IMP::Ints
5434  get_value(Reference self, StringKey a0) -> IMP::String
5435  get_value(Reference self, ParticleIndexKey a0) -> Particle
5436  get_value(Reference self, ObjectKey a0) -> Object
5437  get_value(Reference self, SparseFloatKey a0) -> IMP::Float
5438  get_value(Reference self, SparseIntKey a0) -> IMP::Int
5439  get_value(Reference self, SparseStringKey a0) -> IMP::String
5440  get_value(Reference self, SparseParticleIndexKey a0) -> ParticleIndex
5441  """
5442  return _IMP_core.Reference_get_value(self, *args)
5443 
5444  def set_value(self, *args):
5445  r"""
5446  set_value(Reference self, FloatKey a0, IMP::Float a1)
5447  set_value(Reference self, IntKey a0, IMP::Int a1)
5448  set_value(Reference self, FloatsKey a0, IMP::Floats a1)
5449  set_value(Reference self, IntsKey a0, IMP::Ints a1)
5450  set_value(Reference self, StringKey a0, IMP::String a1)
5451  set_value(Reference self, ParticleIndexKey a0, Particle a1)
5452  set_value(Reference self, ObjectKey a0, Object a1)
5453  set_value(Reference self, SparseFloatKey a0, IMP::Float a1)
5454  set_value(Reference self, SparseIntKey a0, IMP::Int a1)
5455  set_value(Reference self, SparseStringKey a0, IMP::String a1)
5456  set_value(Reference self, SparseParticleIndexKey a0, ParticleIndex a1)
5457  """
5458  return _IMP_core.Reference_set_value(self, *args)
5459 
5460  def remove_attribute(self, *args):
5461  r"""
5462  remove_attribute(Reference self, FloatKey a0)
5463  remove_attribute(Reference self, IntKey a0)
5464  remove_attribute(Reference self, FloatsKey a0)
5465  remove_attribute(Reference self, IntsKey a0)
5466  remove_attribute(Reference self, StringKey a0)
5467  remove_attribute(Reference self, ParticleIndexKey a0)
5468  remove_attribute(Reference self, ObjectKey a0)
5469  remove_attribute(Reference self, SparseFloatKey a0)
5470  remove_attribute(Reference self, SparseIntKey a0)
5471  remove_attribute(Reference self, SparseStringKey a0)
5472  remove_attribute(Reference self, SparseParticleIndexKey a0)
5473  """
5474  return _IMP_core.Reference_remove_attribute(self, *args)
5475 
5476  def has_attribute(self, *args):
5477  r"""
5478  has_attribute(Reference self, FloatKey a0) -> bool
5479  has_attribute(Reference self, IntKey a0) -> bool
5480  has_attribute(Reference self, FloatsKey a0) -> bool
5481  has_attribute(Reference self, IntsKey a0) -> bool
5482  has_attribute(Reference self, StringKey a0) -> bool
5483  has_attribute(Reference self, ParticleIndexKey a0) -> bool
5484  has_attribute(Reference self, ObjectKey a0) -> bool
5485  has_attribute(Reference self, SparseFloatKey a0) -> bool
5486  has_attribute(Reference self, SparseIntKey a0) -> bool
5487  has_attribute(Reference self, SparseStringKey a0) -> bool
5488  has_attribute(Reference self, SparseParticleIndexKey a0) -> bool
5489  """
5490  return _IMP_core.Reference_has_attribute(self, *args)
5491 
5492  def get_derivative(self, a0):
5493  r"""get_derivative(Reference self, FloatKey a0) -> double"""
5494  return _IMP_core.Reference_get_derivative(self, a0)
5495 
5496  def get_name(self):
5497  r"""get_name(Reference self) -> std::string"""
5498  return _IMP_core.Reference_get_name(self)
5499 
5500  def clear_caches(self):
5501  r"""clear_caches(Reference self)"""
5502  return _IMP_core.Reference_clear_caches(self)
5503 
5504  def set_name(self, a0):
5505  r"""set_name(Reference self, std::string a0)"""
5506  return _IMP_core.Reference_set_name(self, a0)
5507 
5508  def set_check_level(self, a0):
5509  r"""set_check_level(Reference self, IMP::CheckLevel a0)"""
5510  return _IMP_core.Reference_set_check_level(self, a0)
5511 
5512  def add_to_derivative(self, a0, a1, a2):
5513  r"""add_to_derivative(Reference self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5514  return _IMP_core.Reference_add_to_derivative(self, a0, a1, a2)
5515 
5516  def set_is_optimized(self, a0, a1):
5517  r"""set_is_optimized(Reference self, FloatKey a0, bool a1)"""
5518  return _IMP_core.Reference_set_is_optimized(self, a0, a1)
5519 
5520  def get_is_optimized(self, a0):
5521  r"""get_is_optimized(Reference self, FloatKey a0) -> bool"""
5522  return _IMP_core.Reference_get_is_optimized(self, a0)
5523 
5524  def get_check_level(self):
5525  r"""get_check_level(Reference self) -> IMP::CheckLevel"""
5526  return _IMP_core.Reference_get_check_level(self)
5527 
5528  def __eq__(self, *args):
5529  r"""
5530  __eq__(Reference self, Reference o) -> bool
5531  __eq__(Reference self, Particle d) -> bool
5532  """
5533  return _IMP_core.Reference___eq__(self, *args)
5534 
5535  def __ne__(self, *args):
5536  r"""
5537  __ne__(Reference self, Reference o) -> bool
5538  __ne__(Reference self, Particle d) -> bool
5539  """
5540  return _IMP_core.Reference___ne__(self, *args)
5541 
5542  def __le__(self, *args):
5543  r"""
5544  __le__(Reference self, Reference o) -> bool
5545  __le__(Reference self, Particle d) -> bool
5546  """
5547  return _IMP_core.Reference___le__(self, *args)
5548 
5549  def __lt__(self, *args):
5550  r"""
5551  __lt__(Reference self, Reference o) -> bool
5552  __lt__(Reference self, Particle d) -> bool
5553  """
5554  return _IMP_core.Reference___lt__(self, *args)
5555 
5556  def __ge__(self, *args):
5557  r"""
5558  __ge__(Reference self, Reference o) -> bool
5559  __ge__(Reference self, Particle d) -> bool
5560  """
5561  return _IMP_core.Reference___ge__(self, *args)
5562 
5563  def __gt__(self, *args):
5564  r"""
5565  __gt__(Reference self, Reference o) -> bool
5566  __gt__(Reference self, Particle d) -> bool
5567  """
5568  return _IMP_core.Reference___gt__(self, *args)
5569 
5570  def __hash__(self):
5571  r"""__hash__(Reference self) -> std::size_t"""
5572  return _IMP_core.Reference___hash__(self)
5573 
5574  def __str__(self):
5575  r"""__str__(Reference self) -> std::string"""
5576  return _IMP_core.Reference___str__(self)
5577 
5578  def __repr__(self):
5579  r"""__repr__(Reference self) -> std::string"""
5580  return _IMP_core.Reference___repr__(self)
5581 
5582  def _get_as_binary(self):
5583  r"""_get_as_binary(Reference self) -> PyObject *"""
5584  return _IMP_core.Reference__get_as_binary(self)
5585 
5586  def _set_from_binary(self, p):
5587  r"""_set_from_binary(Reference self, PyObject * p)"""
5588  return _IMP_core.Reference__set_from_binary(self, p)
5589 
5590  def __getstate__(self):
5591  p = self._get_as_binary()
5592  if len(self.__dict__) > 1:
5593  d = self.__dict__.copy()
5594  del d['this']
5595  p = (d, p)
5596  return p
5597 
5598  def __setstate__(self, p):
5599  if not hasattr(self, 'this'):
5600  self.__init__()
5601  if isinstance(p, tuple):
5602  d, p = p
5603  self.__dict__.update(d)
5604  return self._set_from_binary(p)
5605 
5606  __swig_destroy__ = _IMP_core.delete_Reference
5607 
5608 # Register Reference in _IMP_core:
5609 _IMP_core.Reference_swigregister(Reference)
5610 class TransformationAndReflectionSymmetry(IMP.SingletonModifier):
5611  r"""Proxy of C++ IMP::core::TransformationAndReflectionSymmetry class."""
5612 
5613  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5614 
5615  def __init__(self, t, r):
5616  r"""__init__(TransformationAndReflectionSymmetry self, Transformation3D t, Reflection3D r) -> TransformationAndReflectionSymmetry"""
5617  _IMP_core.TransformationAndReflectionSymmetry_swiginit(self, _IMP_core.new_TransformationAndReflectionSymmetry(t, r))
5618 
5619  def do_get_inputs(self, m, pis):
5620  r"""do_get_inputs(TransformationAndReflectionSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5621  return _IMP_core.TransformationAndReflectionSymmetry_do_get_inputs(self, m, pis)
5622 
5623  def do_get_outputs(self, m, pis):
5624  r"""do_get_outputs(TransformationAndReflectionSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5625  return _IMP_core.TransformationAndReflectionSymmetry_do_get_outputs(self, m, pis)
5626 
5627  def get_version_info(self):
5628  r"""get_version_info(TransformationAndReflectionSymmetry self) -> VersionInfo"""
5629  return _IMP_core.TransformationAndReflectionSymmetry_get_version_info(self)
5630  __swig_destroy__ = _IMP_core.delete_TransformationAndReflectionSymmetry
5631 
5632  def __str__(self):
5633  r"""__str__(TransformationAndReflectionSymmetry self) -> std::string"""
5634  return _IMP_core.TransformationAndReflectionSymmetry___str__(self)
5635 
5636  def __repr__(self):
5637  r"""__repr__(TransformationAndReflectionSymmetry self) -> std::string"""
5638  return _IMP_core.TransformationAndReflectionSymmetry___repr__(self)
5639 
5640  @staticmethod
5641  def get_from(o):
5642  return _object_cast_to_TransformationAndReflectionSymmetry(o)
5643 
5644 
5645 # Register TransformationAndReflectionSymmetry in _IMP_core:
5646 _IMP_core.TransformationAndReflectionSymmetry_swigregister(TransformationAndReflectionSymmetry)
5647 class TransformationSymmetry(IMP.SingletonModifier):
5648  r"""Proxy of C++ IMP::core::TransformationSymmetry class."""
5649 
5650  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5651 
5652  def __init__(self, *args):
5653  r"""
5654  __init__(TransformationSymmetry self, Transformation3D t) -> TransformationSymmetry
5655  __init__(TransformationSymmetry self, ParticleIndex rb_pi) -> TransformationSymmetry
5656  """
5657  _IMP_core.TransformationSymmetry_swiginit(self, _IMP_core.new_TransformationSymmetry(*args))
5658 
5659  def get_transformation(self):
5660  r"""get_transformation(TransformationSymmetry self) -> Transformation3D"""
5661  return _IMP_core.TransformationSymmetry_get_transformation(self)
5662 
5663  def set_transformation(self, t):
5664  r"""set_transformation(TransformationSymmetry self, Transformation3D t)"""
5665  return _IMP_core.TransformationSymmetry_set_transformation(self, t)
5666 
5667  def do_get_inputs(self, m, pis):
5668  r"""do_get_inputs(TransformationSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5669  return _IMP_core.TransformationSymmetry_do_get_inputs(self, m, pis)
5670 
5671  def do_get_outputs(self, m, pis):
5672  r"""do_get_outputs(TransformationSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5673  return _IMP_core.TransformationSymmetry_do_get_outputs(self, m, pis)
5674 
5675  def get_version_info(self):
5676  r"""get_version_info(TransformationSymmetry self) -> VersionInfo"""
5677  return _IMP_core.TransformationSymmetry_get_version_info(self)
5678  __swig_destroy__ = _IMP_core.delete_TransformationSymmetry
5679 
5680  def __str__(self):
5681  r"""__str__(TransformationSymmetry self) -> std::string"""
5682  return _IMP_core.TransformationSymmetry___str__(self)
5683 
5684  def __repr__(self):
5685  r"""__repr__(TransformationSymmetry self) -> std::string"""
5686  return _IMP_core.TransformationSymmetry___repr__(self)
5687 
5688  @staticmethod
5689  def get_from(o):
5690  return _object_cast_to_TransformationSymmetry(o)
5691 
5692 
5693 # Register TransformationSymmetry in _IMP_core:
5694 _IMP_core.TransformationSymmetry_swigregister(TransformationSymmetry)
5695 class TransformationSymmetryMover(MonteCarloMover):
5696  r"""Proxy of C++ IMP::core::TransformationSymmetryMover class."""
5697 
5698  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5699 
5700  def __init__(self, m, symm, pivot, max_translation, max_rotation):
5701  r"""__init__(TransformationSymmetryMover self, Model m, TransformationSymmetry symm, ParticleIndex pivot, IMP::Float max_translation, IMP::Float max_rotation) -> TransformationSymmetryMover"""
5702  _IMP_core.TransformationSymmetryMover_swiginit(self, _IMP_core.new_TransformationSymmetryMover(m, symm, pivot, max_translation, max_rotation))
5703 
5704  def set_maximum_translation(self, mt):
5705  r"""set_maximum_translation(TransformationSymmetryMover self, IMP::Float mt)"""
5706  return _IMP_core.TransformationSymmetryMover_set_maximum_translation(self, mt)
5707 
5708  def set_maximum_rotation(self, mr):
5709  r"""set_maximum_rotation(TransformationSymmetryMover self, IMP::Float mr)"""
5710  return _IMP_core.TransformationSymmetryMover_set_maximum_rotation(self, mr)
5711 
5712  def get_maximum_translation(self):
5713  r"""get_maximum_translation(TransformationSymmetryMover self) -> IMP::Float"""
5714  return _IMP_core.TransformationSymmetryMover_get_maximum_translation(self)
5715 
5716  def get_maximum_rotation(self):
5717  r"""get_maximum_rotation(TransformationSymmetryMover self) -> IMP::Float"""
5718  return _IMP_core.TransformationSymmetryMover_get_maximum_rotation(self)
5719 
5720  def get_version_info(self):
5721  r"""get_version_info(TransformationSymmetryMover self) -> VersionInfo"""
5722  return _IMP_core.TransformationSymmetryMover_get_version_info(self)
5723  __swig_destroy__ = _IMP_core.delete_TransformationSymmetryMover
5724 
5725  def __str__(self):
5726  r"""__str__(TransformationSymmetryMover self) -> std::string"""
5727  return _IMP_core.TransformationSymmetryMover___str__(self)
5728 
5729  def __repr__(self):
5730  r"""__repr__(TransformationSymmetryMover self) -> std::string"""
5731  return _IMP_core.TransformationSymmetryMover___repr__(self)
5732 
5733  @staticmethod
5734  def get_from(o):
5735  return _object_cast_to_TransformationSymmetryMover(o)
5736 
5737 
5738 # Register TransformationSymmetryMover in _IMP_core:
5739 _IMP_core.TransformationSymmetryMover_swigregister(TransformationSymmetryMover)
5740 class DihedralRestraint(IMP.Restraint):
5741  r"""Proxy of C++ IMP::core::DihedralRestraint class."""
5742 
5743  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5744 
5745  def __init__(self, m, score_func, p1, p2, p3, p4):
5746  r"""__init__(DihedralRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3, _ParticleIndexAdaptor p4) -> DihedralRestraint"""
5747  _IMP_core.DihedralRestraint_swiginit(self, _IMP_core.new_DihedralRestraint(m, score_func, p1, p2, p3, p4))
5748 
5749  def do_get_inputs(self):
5750  r"""do_get_inputs(DihedralRestraint self) -> IMP::ModelObjectsTemp"""
5751  return _IMP_core.DihedralRestraint_do_get_inputs(self)
5752 
5753  def get_version_info(self):
5754  r"""get_version_info(DihedralRestraint self) -> VersionInfo"""
5755  return _IMP_core.DihedralRestraint_get_version_info(self)
5756  __swig_destroy__ = _IMP_core.delete_DihedralRestraint
5757 
5758  def __str__(self):
5759  r"""__str__(DihedralRestraint self) -> std::string"""
5760  return _IMP_core.DihedralRestraint___str__(self)
5761 
5762  def __repr__(self):
5763  r"""__repr__(DihedralRestraint self) -> std::string"""
5764  return _IMP_core.DihedralRestraint___repr__(self)
5765 
5766  @staticmethod
5767  def get_from(o):
5768  return _object_cast_to_DihedralRestraint(o)
5769 
5770 
5771 # Register DihedralRestraint in _IMP_core:
5772 _IMP_core.DihedralRestraint_swigregister(DihedralRestraint)
5773 class DistancePairScore(IMP.PairScore):
5774  r"""Proxy of C++ IMP::core::DistancePairScore class."""
5775 
5776  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5777 
5778  def __init__(self, *args):
5779  r"""
5780  __init__(DistancePairScore self, UnaryFunction uf, std::string name="DistancePairScore%1%") -> DistancePairScore
5781  __init__(DistancePairScore self) -> DistancePairScore
5782  """
5783  _IMP_core.DistancePairScore_swiginit(self, _IMP_core.new_DistancePairScore(*args))
5784 
5785  def do_get_inputs(self, m, pis):
5786  r"""do_get_inputs(DistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5787  return _IMP_core.DistancePairScore_do_get_inputs(self, m, pis)
5788 
5789  def get_version_info(self):
5790  r"""get_version_info(DistancePairScore self) -> VersionInfo"""
5791  return _IMP_core.DistancePairScore_get_version_info(self)
5792  __swig_destroy__ = _IMP_core.delete_DistancePairScore
5793 
5794  def __str__(self):
5795  r"""__str__(DistancePairScore self) -> std::string"""
5796  return _IMP_core.DistancePairScore___str__(self)
5797 
5798  def __repr__(self):
5799  r"""__repr__(DistancePairScore self) -> std::string"""
5800  return _IMP_core.DistancePairScore___repr__(self)
5801 
5802  @staticmethod
5803  def get_from(o):
5804  return _object_cast_to_DistancePairScore(o)
5805 
5806 
5807  def _get_as_binary(self):
5808  r"""_get_as_binary(DistancePairScore self) -> PyObject *"""
5809  return _IMP_core.DistancePairScore__get_as_binary(self)
5810 
5811  def _set_from_binary(self, p):
5812  r"""_set_from_binary(DistancePairScore self, PyObject * p)"""
5813  return _IMP_core.DistancePairScore__set_from_binary(self, p)
5814 
5815  def __getstate__(self):
5816  p = self._get_as_binary()
5817  if len(self.__dict__) > 1:
5818  d = self.__dict__.copy()
5819  del d['this']
5820  p = (d, p)
5821  return p
5822 
5823  def __setstate__(self, p):
5824  if not hasattr(self, 'this'):
5825  self.__init__()
5826  if isinstance(p, tuple):
5827  d, p = p
5828  self.__dict__.update(d)
5829  return self._set_from_binary(p)
5830 
5831 
5832 # Register DistancePairScore in _IMP_core:
5833 _IMP_core.DistancePairScore_swigregister(DistancePairScore)
5834 class HarmonicDistancePairScore(IMP.PairScore):
5835  r"""Proxy of C++ IMP::core::HarmonicDistancePairScore class."""
5836 
5837  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5838 
5839  def __init__(self, *args):
5840  r"""
5841  __init__(HarmonicDistancePairScore self, double x0, double k, std::string name="HarmonicDistancePairScore%1%") -> HarmonicDistancePairScore
5842  __init__(HarmonicDistancePairScore self) -> HarmonicDistancePairScore
5843  """
5844  _IMP_core.HarmonicDistancePairScore_swiginit(self, _IMP_core.new_HarmonicDistancePairScore(*args))
5845 
5846  def do_get_inputs(self, m, pis):
5847  r"""do_get_inputs(HarmonicDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5848  return _IMP_core.HarmonicDistancePairScore_do_get_inputs(self, m, pis)
5849 
5850  def get_version_info(self):
5851  r"""get_version_info(HarmonicDistancePairScore self) -> VersionInfo"""
5852  return _IMP_core.HarmonicDistancePairScore_get_version_info(self)
5853  __swig_destroy__ = _IMP_core.delete_HarmonicDistancePairScore
5854 
5855  def __str__(self):
5856  r"""__str__(HarmonicDistancePairScore self) -> std::string"""
5857  return _IMP_core.HarmonicDistancePairScore___str__(self)
5858 
5859  def __repr__(self):
5860  r"""__repr__(HarmonicDistancePairScore self) -> std::string"""
5861  return _IMP_core.HarmonicDistancePairScore___repr__(self)
5862 
5863  @staticmethod
5864  def get_from(o):
5865  return _object_cast_to_HarmonicDistancePairScore(o)
5866 
5867 
5868  def _get_as_binary(self):
5869  r"""_get_as_binary(HarmonicDistancePairScore self) -> PyObject *"""
5870  return _IMP_core.HarmonicDistancePairScore__get_as_binary(self)
5871 
5872  def _set_from_binary(self, p):
5873  r"""_set_from_binary(HarmonicDistancePairScore self, PyObject * p)"""
5874  return _IMP_core.HarmonicDistancePairScore__set_from_binary(self, p)
5875 
5876  def __getstate__(self):
5877  p = self._get_as_binary()
5878  if len(self.__dict__) > 1:
5879  d = self.__dict__.copy()
5880  del d['this']
5881  p = (d, p)
5882  return p
5883 
5884  def __setstate__(self, p):
5885  if not hasattr(self, 'this'):
5886  self.__init__()
5887  if isinstance(p, tuple):
5888  d, p = p
5889  self.__dict__.update(d)
5890  return self._set_from_binary(p)
5891 
5892 
5893 # Register HarmonicDistancePairScore in _IMP_core:
5894 _IMP_core.HarmonicDistancePairScore_swigregister(HarmonicDistancePairScore)
5895 class DistanceRestraint(IMP.Restraint):
5896  r"""Proxy of C++ IMP::core::DistanceRestraint class."""
5897 
5898  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5899 
5900  def __init__(self, *args):
5901  r"""
5902  __init__(DistanceRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor a, _ParticleIndexAdaptor b, std::string name="DistanceRestraint %1%") -> DistanceRestraint
5903  __init__(DistanceRestraint self) -> DistanceRestraint
5904  """
5905  _IMP_core.DistanceRestraint_swiginit(self, _IMP_core.new_DistanceRestraint(*args))
5906 
5907  def get_version_info(self):
5908  r"""get_version_info(DistanceRestraint self) -> VersionInfo"""
5909  return _IMP_core.DistanceRestraint_get_version_info(self)
5910  __swig_destroy__ = _IMP_core.delete_DistanceRestraint
5911 
5912  def __str__(self):
5913  r"""__str__(DistanceRestraint self) -> std::string"""
5914  return _IMP_core.DistanceRestraint___str__(self)
5915 
5916  def __repr__(self):
5917  r"""__repr__(DistanceRestraint self) -> std::string"""
5918  return _IMP_core.DistanceRestraint___repr__(self)
5919 
5920  @staticmethod
5921  def get_from(o):
5922  return _object_cast_to_DistanceRestraint(o)
5923 
5924 
5925  def _get_as_binary(self):
5926  r"""_get_as_binary(DistanceRestraint self) -> PyObject *"""
5927  return _IMP_core.DistanceRestraint__get_as_binary(self)
5928 
5929  def _set_from_binary(self, p):
5930  r"""_set_from_binary(DistanceRestraint self, PyObject * p)"""
5931  return _IMP_core.DistanceRestraint__set_from_binary(self, p)
5932 
5933  def __getstate__(self):
5934  p = self._get_as_binary()
5935  if len(self.__dict__) > 1:
5936  d = self.__dict__.copy()
5937  del d['this']
5938  p = (d, p)
5939  return p
5940 
5941  def __setstate__(self, p):
5942  if not hasattr(self, 'this'):
5943  self.__init__()
5944  if isinstance(p, tuple):
5945  d, p = p
5946  self.__dict__.update(d)
5947  return self._set_from_binary(p)
5948 
5949 
5950 # Register DistanceRestraint in _IMP_core:
5951 _IMP_core.DistanceRestraint_swigregister(DistanceRestraint)
5952 class SphereDistanceToSingletonScore(IMP.SingletonScore):
5953  r"""Proxy of C++ IMP::core::SphereDistanceToSingletonScore class."""
5954 
5955  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5956 
5957  def __init__(self, f, pt):
5958  r"""__init__(SphereDistanceToSingletonScore self, UnaryFunction f, Vector3D pt) -> SphereDistanceToSingletonScore"""
5959  _IMP_core.SphereDistanceToSingletonScore_swiginit(self, _IMP_core.new_SphereDistanceToSingletonScore(f, pt))
5960 
5961  def do_get_inputs(self, m, pis):
5962  r"""do_get_inputs(SphereDistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5963  return _IMP_core.SphereDistanceToSingletonScore_do_get_inputs(self, m, pis)
5964 
5965  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
5966  r"""evaluate_indexes(SphereDistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
5967  return _IMP_core.SphereDistanceToSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
5968 
5969  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
5970  r"""evaluate_indexes_scores(SphereDistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
5971  return _IMP_core.SphereDistanceToSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
5972 
5973  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
5974  r"""evaluate_indexes_delta(SphereDistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
5975  return _IMP_core.SphereDistanceToSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
5976 
5977  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
5978  r"""evaluate_if_good_indexes(SphereDistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
5979  return _IMP_core.SphereDistanceToSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
5980 
5981  def get_version_info(self):
5982  r"""get_version_info(SphereDistanceToSingletonScore self) -> VersionInfo"""
5983  return _IMP_core.SphereDistanceToSingletonScore_get_version_info(self)
5984  __swig_destroy__ = _IMP_core.delete_SphereDistanceToSingletonScore
5985 
5986  def __str__(self):
5987  r"""__str__(SphereDistanceToSingletonScore self) -> std::string"""
5988  return _IMP_core.SphereDistanceToSingletonScore___str__(self)
5989 
5990  def __repr__(self):
5991  r"""__repr__(SphereDistanceToSingletonScore self) -> std::string"""
5992  return _IMP_core.SphereDistanceToSingletonScore___repr__(self)
5993 
5994  @staticmethod
5995  def get_from(o):
5996  return _object_cast_to_SphereDistanceToSingletonScore(o)
5997 
5998 
5999 # Register SphereDistanceToSingletonScore in _IMP_core:
6000 _IMP_core.SphereDistanceToSingletonScore_swigregister(SphereDistanceToSingletonScore)
6001 class ExcludedVolumeRestraint(IMP.Restraint):
6002  r"""Proxy of C++ IMP::core::ExcludedVolumeRestraint class."""
6003 
6004  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6005 
6006  def __init__(self, *args):
6007  r"""__init__(ExcludedVolumeRestraint self, _SingletonContainerAdaptor sc, double k=1, double slack=10, std::string name="ExcludedVolumeRestraint%1%") -> ExcludedVolumeRestraint"""
6008  _IMP_core.ExcludedVolumeRestraint_swiginit(self, _IMP_core.new_ExcludedVolumeRestraint(*args))
6009 
6010  def do_get_inputs(self):
6011  r"""do_get_inputs(ExcludedVolumeRestraint self) -> IMP::ModelObjectsTemp"""
6012  return _IMP_core.ExcludedVolumeRestraint_do_get_inputs(self)
6013 
6014  def get_version_info(self):
6015  r"""get_version_info(ExcludedVolumeRestraint self) -> VersionInfo"""
6016  return _IMP_core.ExcludedVolumeRestraint_get_version_info(self)
6017  __swig_destroy__ = _IMP_core.delete_ExcludedVolumeRestraint
6018 
6019  def do_create_decomposition(self):
6020  r"""do_create_decomposition(ExcludedVolumeRestraint self) -> IMP::Restraints"""
6021  return _IMP_core.ExcludedVolumeRestraint_do_create_decomposition(self)
6022 
6023  def do_create_current_decomposition(self):
6024  r"""do_create_current_decomposition(ExcludedVolumeRestraint self) -> IMP::Restraints"""
6025  return _IMP_core.ExcludedVolumeRestraint_do_create_current_decomposition(self)
6026 
6027  def get_indexes(self):
6028  r"""get_indexes(ExcludedVolumeRestraint self) -> IMP::ParticleIndexPairs const &"""
6029  return _IMP_core.ExcludedVolumeRestraint_get_indexes(self)
6030  def __get_pair_filters(self): return IMP._list_util.VarList(getdimfunc=self.get_number_of_pair_filters, getfunc=self.get_pair_filter, erasefunc=self.erase_pair_filter, appendfunc=self.add_pair_filter, extendfunc=self.add_pair_filters, clearfunc=self.clear_pair_filters, indexfunc=self._python_index_pair_filter)
6031  def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
6032  def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
6033  pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc="List of ##ucnames")
6034 
6035  def remove_pair_filter(self, d):
6036  r"""remove_pair_filter(ExcludedVolumeRestraint self, PairPredicate d)"""
6037  return _IMP_core.ExcludedVolumeRestraint_remove_pair_filter(self, d)
6038 
6039  def _python_index_pair_filter(self, d, start, stop):
6040  r"""_python_index_pair_filter(ExcludedVolumeRestraint self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
6041  return _IMP_core.ExcludedVolumeRestraint__python_index_pair_filter(self, d, start, stop)
6042 
6043  def remove_pair_filters(self, d):
6044  r"""remove_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & d)"""
6045  return _IMP_core.ExcludedVolumeRestraint_remove_pair_filters(self, d)
6046 
6047  def set_pair_filters(self, ps):
6048  r"""set_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & ps)"""
6049  return _IMP_core.ExcludedVolumeRestraint_set_pair_filters(self, ps)
6050 
6051  def set_pair_filters_order(self, objs):
6052  r"""set_pair_filters_order(ExcludedVolumeRestraint self, IMP::PairPredicates const & objs)"""
6053  return _IMP_core.ExcludedVolumeRestraint_set_pair_filters_order(self, objs)
6054 
6055  def add_pair_filter(self, obj):
6056  r"""add_pair_filter(ExcludedVolumeRestraint self, PairPredicate obj) -> unsigned int"""
6057  return _IMP_core.ExcludedVolumeRestraint_add_pair_filter(self, obj)
6058 
6059  def add_pair_filters(self, objs):
6060  r"""add_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & objs)"""
6061  return _IMP_core.ExcludedVolumeRestraint_add_pair_filters(self, objs)
6062 
6063  def clear_pair_filters(self):
6064  r"""clear_pair_filters(ExcludedVolumeRestraint self)"""
6065  return _IMP_core.ExcludedVolumeRestraint_clear_pair_filters(self)
6066 
6067  def get_number_of_pair_filters(self):
6068  r"""get_number_of_pair_filters(ExcludedVolumeRestraint self) -> unsigned int"""
6069  return _IMP_core.ExcludedVolumeRestraint_get_number_of_pair_filters(self)
6070 
6071  def get_has_pair_filters(self):
6072  r"""get_has_pair_filters(ExcludedVolumeRestraint self) -> bool"""
6073  return _IMP_core.ExcludedVolumeRestraint_get_has_pair_filters(self)
6074 
6075  def get_pair_filter(self, i):
6076  r"""get_pair_filter(ExcludedVolumeRestraint self, unsigned int i) -> PairPredicate"""
6077  return _IMP_core.ExcludedVolumeRestraint_get_pair_filter(self, i)
6078 
6079  def get_pair_filters(self):
6080  r"""get_pair_filters(ExcludedVolumeRestraint self) -> IMP::PairPredicates"""
6081  return _IMP_core.ExcludedVolumeRestraint_get_pair_filters(self)
6082 
6083  def erase_pair_filter(self, i):
6084  r"""erase_pair_filter(ExcludedVolumeRestraint self, unsigned int i)"""
6085  return _IMP_core.ExcludedVolumeRestraint_erase_pair_filter(self, i)
6086 
6087  def reserve_pair_filters(self, sz):
6088  r"""reserve_pair_filters(ExcludedVolumeRestraint self, unsigned int sz)"""
6089  return _IMP_core.ExcludedVolumeRestraint_reserve_pair_filters(self, sz)
6090 
6091  def __str__(self):
6092  r"""__str__(ExcludedVolumeRestraint self) -> std::string"""
6093  return _IMP_core.ExcludedVolumeRestraint___str__(self)
6094 
6095  def __repr__(self):
6096  r"""__repr__(ExcludedVolumeRestraint self) -> std::string"""
6097  return _IMP_core.ExcludedVolumeRestraint___repr__(self)
6098 
6099  @staticmethod
6100  def get_from(o):
6101  return _object_cast_to_ExcludedVolumeRestraint(o)
6102 
6103 
6104 # Register ExcludedVolumeRestraint in _IMP_core:
6105 _IMP_core.ExcludedVolumeRestraint_swigregister(ExcludedVolumeRestraint)
6106 class FixedRefiner(IMP.Refiner):
6107  r"""Proxy of C++ IMP::core::FixedRefiner class."""
6108 
6109  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6110 
6111  def __init__(self, *args):
6112  r"""
6113  __init__(FixedRefiner self, IMP::ParticlesTemp const & ps) -> FixedRefiner
6114  __init__(FixedRefiner self, Model m, IMP::ParticleIndexes const & pis) -> FixedRefiner
6115  """
6116  _IMP_core.FixedRefiner_swiginit(self, _IMP_core.new_FixedRefiner(*args))
6117 
6118  def do_get_inputs(self, m, pis):
6119  r"""do_get_inputs(FixedRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6120  return _IMP_core.FixedRefiner_do_get_inputs(self, m, pis)
6121 
6122  def get_version_info(self):
6123  r"""get_version_info(FixedRefiner self) -> VersionInfo"""
6124  return _IMP_core.FixedRefiner_get_version_info(self)
6125  __swig_destroy__ = _IMP_core.delete_FixedRefiner
6126 
6127  def __str__(self):
6128  r"""__str__(FixedRefiner self) -> std::string"""
6129  return _IMP_core.FixedRefiner___str__(self)
6130 
6131  def __repr__(self):
6132  r"""__repr__(FixedRefiner self) -> std::string"""
6133  return _IMP_core.FixedRefiner___repr__(self)
6134 
6135  @staticmethod
6136  def get_from(o):
6137  return _object_cast_to_FixedRefiner(o)
6138 
6139 
6140 # Register FixedRefiner in _IMP_core:
6141 _IMP_core.FixedRefiner_swigregister(FixedRefiner)
6142 class GridClosePairsFinder(ClosePairsFinder):
6143  r"""Proxy of C++ IMP::core::GridClosePairsFinder class."""
6144 
6145  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6146 
6147  def __init__(self):
6148  r"""__init__(GridClosePairsFinder self) -> GridClosePairsFinder"""
6149  _IMP_core.GridClosePairsFinder_swiginit(self, _IMP_core.new_GridClosePairsFinder())
6150 
6151  def get_close_pairs(self, *args):
6152  r"""
6153  get_close_pairs(GridClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
6154  get_close_pairs(GridClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
6155  get_close_pairs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
6156  get_close_pairs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
6157  """
6158  return _IMP_core.GridClosePairsFinder_get_close_pairs(self, *args)
6159 
6160  def do_get_inputs(self, m, pis):
6161  r"""do_get_inputs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6162  return _IMP_core.GridClosePairsFinder_do_get_inputs(self, m, pis)
6163 
6164  def get_version_info(self):
6165  r"""get_version_info(GridClosePairsFinder self) -> VersionInfo"""
6166  return _IMP_core.GridClosePairsFinder_get_version_info(self)
6167  __swig_destroy__ = _IMP_core.delete_GridClosePairsFinder
6168 
6169  def __str__(self):
6170  r"""__str__(GridClosePairsFinder self) -> std::string"""
6171  return _IMP_core.GridClosePairsFinder___str__(self)
6172 
6173  def __repr__(self):
6174  r"""__repr__(GridClosePairsFinder self) -> std::string"""
6175  return _IMP_core.GridClosePairsFinder___repr__(self)
6176 
6177  @staticmethod
6178  def get_from(o):
6179  return _object_cast_to_GridClosePairsFinder(o)
6180 
6181 
6182  def _get_as_binary(self):
6183  r"""_get_as_binary(GridClosePairsFinder self) -> PyObject *"""
6184  return _IMP_core.GridClosePairsFinder__get_as_binary(self)
6185 
6186  def _set_from_binary(self, p):
6187  r"""_set_from_binary(GridClosePairsFinder self, PyObject * p)"""
6188  return _IMP_core.GridClosePairsFinder__set_from_binary(self, p)
6189 
6190  def __getstate__(self):
6191  p = self._get_as_binary()
6192  if len(self.__dict__) > 1:
6193  d = self.__dict__.copy()
6194  del d['this']
6195  p = (d, p)
6196  return p
6197 
6198  def __setstate__(self, p):
6199  if not hasattr(self, 'this'):
6200  self.__init__()
6201  if isinstance(p, tuple):
6202  d, p = p
6203  self.__dict__.update(d)
6204  return self._set_from_binary(p)
6205 
6206 
6207 # Register GridClosePairsFinder in _IMP_core:
6208 _IMP_core.GridClosePairsFinder_swigregister(GridClosePairsFinder)
6209 class Harmonic(IMP.UnaryFunction):
6210  r"""Proxy of C++ IMP::core::Harmonic class."""
6211 
6212  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6213 
6214  def __init__(self, *args):
6215  r"""
6216  __init__(Harmonic self, IMP::Float mean, IMP::Float k) -> Harmonic
6217  __init__(Harmonic self) -> Harmonic
6218  """
6219  _IMP_core.Harmonic_swiginit(self, _IMP_core.new_Harmonic(*args))
6220 
6221  def get_version_info(self):
6222  r"""get_version_info(Harmonic self) -> VersionInfo"""
6223  return _IMP_core.Harmonic_get_version_info(self)
6224  __swig_destroy__ = _IMP_core.delete_Harmonic
6225 
6226  def get_mean(self):
6227  r"""get_mean(Harmonic self) -> IMP::Float"""
6228  return _IMP_core.Harmonic_get_mean(self)
6229 
6230  def get_k(self):
6231  r"""get_k(Harmonic self) -> IMP::Float"""
6232  return _IMP_core.Harmonic_get_k(self)
6233 
6234  def set_mean(self, mean):
6235  r"""set_mean(Harmonic self, IMP::Float mean)"""
6236  return _IMP_core.Harmonic_set_mean(self, mean)
6237 
6238  def set_k(self, k):
6239  r"""set_k(Harmonic self, IMP::Float k)"""
6240  return _IMP_core.Harmonic_set_k(self, k)
6241 
6242  @staticmethod
6243  def get_k_from_standard_deviation(sd, t=297.15):
6244  r"""get_k_from_standard_deviation(IMP::Float sd, IMP::Float t=297.15) -> IMP::Float"""
6245  return _IMP_core.Harmonic_get_k_from_standard_deviation(sd, t)
6246 
6247  def __str__(self):
6248  r"""__str__(Harmonic self) -> std::string"""
6249  return _IMP_core.Harmonic___str__(self)
6250 
6251  def __repr__(self):
6252  r"""__repr__(Harmonic self) -> std::string"""
6253  return _IMP_core.Harmonic___repr__(self)
6254 
6255  @staticmethod
6256  def get_from(o):
6257  return _object_cast_to_Harmonic(o)
6258 
6259 
6260  def _get_as_binary(self):
6261  r"""_get_as_binary(Harmonic self) -> PyObject *"""
6262  return _IMP_core.Harmonic__get_as_binary(self)
6263 
6264  def _set_from_binary(self, p):
6265  r"""_set_from_binary(Harmonic self, PyObject * p)"""
6266  return _IMP_core.Harmonic__set_from_binary(self, p)
6267 
6268  def __getstate__(self):
6269  p = self._get_as_binary()
6270  if len(self.__dict__) > 1:
6271  d = self.__dict__.copy()
6272  del d['this']
6273  p = (d, p)
6274  return p
6275 
6276  def __setstate__(self, p):
6277  if not hasattr(self, 'this'):
6278  self.__init__()
6279  if isinstance(p, tuple):
6280  d, p = p
6281  self.__dict__.update(d)
6282  return self._set_from_binary(p)
6283 
6284 
6285 # Register Harmonic in _IMP_core:
6286 _IMP_core.Harmonic_swigregister(Harmonic)
6287 class HarmonicWell(IMP.UnaryFunction):
6288  r"""Proxy of C++ IMP::core::HarmonicWell class."""
6289 
6290  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6291 
6292  def __init__(self, well, k):
6293  r"""__init__(HarmonicWell self, IMP::FloatRange const & well, double k) -> HarmonicWell"""
6294  _IMP_core.HarmonicWell_swiginit(self, _IMP_core.new_HarmonicWell(well, k))
6295 
6296  def get_version_info(self):
6297  r"""get_version_info(HarmonicWell self) -> VersionInfo"""
6298  return _IMP_core.HarmonicWell_get_version_info(self)
6299  __swig_destroy__ = _IMP_core.delete_HarmonicWell
6300 
6301  def __str__(self):
6302  r"""__str__(HarmonicWell self) -> std::string"""
6303  return _IMP_core.HarmonicWell___str__(self)
6304 
6305  def __repr__(self):
6306  r"""__repr__(HarmonicWell self) -> std::string"""
6307  return _IMP_core.HarmonicWell___repr__(self)
6308 
6309  @staticmethod
6310  def get_from(o):
6311  return _object_cast_to_HarmonicWell(o)
6312 
6313 
6314 # Register HarmonicWell in _IMP_core:
6315 _IMP_core.HarmonicWell_swigregister(HarmonicWell)
6316 class HarmonicLowerBound(Harmonic):
6317  r"""Proxy of C++ IMP::core::HarmonicLowerBound class."""
6318 
6319  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6320 
6321  def __init__(self, *args):
6322  r"""
6323  __init__(HarmonicLowerBound self, IMP::Float mean, IMP::Float k) -> HarmonicLowerBound
6324  __init__(HarmonicLowerBound self) -> HarmonicLowerBound
6325  """
6326  _IMP_core.HarmonicLowerBound_swiginit(self, _IMP_core.new_HarmonicLowerBound(*args))
6327  __swig_destroy__ = _IMP_core.delete_HarmonicLowerBound
6328 
6329  def __str__(self):
6330  r"""__str__(HarmonicLowerBound self) -> std::string"""
6331  return _IMP_core.HarmonicLowerBound___str__(self)
6332 
6333  def __repr__(self):
6334  r"""__repr__(HarmonicLowerBound self) -> std::string"""
6335  return _IMP_core.HarmonicLowerBound___repr__(self)
6336 
6337  @staticmethod
6338  def get_from(o):
6339  return _object_cast_to_HarmonicLowerBound(o)
6340 
6341 
6342  def _get_as_binary(self):
6343  r"""_get_as_binary(HarmonicLowerBound self) -> PyObject *"""
6344  return _IMP_core.HarmonicLowerBound__get_as_binary(self)
6345 
6346  def _set_from_binary(self, p):
6347  r"""_set_from_binary(HarmonicLowerBound self, PyObject * p)"""
6348  return _IMP_core.HarmonicLowerBound__set_from_binary(self, p)
6349 
6350  def __getstate__(self):
6351  p = self._get_as_binary()
6352  if len(self.__dict__) > 1:
6353  d = self.__dict__.copy()
6354  del d['this']
6355  p = (d, p)
6356  return p
6357 
6358  def __setstate__(self, p):
6359  if not hasattr(self, 'this'):
6360  self.__init__()
6361  if isinstance(p, tuple):
6362  d, p = p
6363  self.__dict__.update(d)
6364  return self._set_from_binary(p)
6365 
6366 
6367 # Register HarmonicLowerBound in _IMP_core:
6368 _IMP_core.HarmonicLowerBound_swigregister(HarmonicLowerBound)
6369 class HarmonicUpperBound(Harmonic):
6370  r"""Proxy of C++ IMP::core::HarmonicUpperBound class."""
6371 
6372  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6373 
6374  def __init__(self, *args):
6375  r"""
6376  __init__(HarmonicUpperBound self, IMP::Float mean, IMP::Float k) -> HarmonicUpperBound
6377  __init__(HarmonicUpperBound self) -> HarmonicUpperBound
6378  """
6379  _IMP_core.HarmonicUpperBound_swiginit(self, _IMP_core.new_HarmonicUpperBound(*args))
6380  __swig_destroy__ = _IMP_core.delete_HarmonicUpperBound
6381 
6382  def __str__(self):
6383  r"""__str__(HarmonicUpperBound self) -> std::string"""
6384  return _IMP_core.HarmonicUpperBound___str__(self)
6385 
6386  def __repr__(self):
6387  r"""__repr__(HarmonicUpperBound self) -> std::string"""
6388  return _IMP_core.HarmonicUpperBound___repr__(self)
6389 
6390  @staticmethod
6391  def get_from(o):
6392  return _object_cast_to_HarmonicUpperBound(o)
6393 
6394 
6395  def _get_as_binary(self):
6396  r"""_get_as_binary(HarmonicUpperBound self) -> PyObject *"""
6397  return _IMP_core.HarmonicUpperBound__get_as_binary(self)
6398 
6399  def _set_from_binary(self, p):
6400  r"""_set_from_binary(HarmonicUpperBound self, PyObject * p)"""
6401  return _IMP_core.HarmonicUpperBound__set_from_binary(self, p)
6402 
6403  def __getstate__(self):
6404  p = self._get_as_binary()
6405  if len(self.__dict__) > 1:
6406  d = self.__dict__.copy()
6407  del d['this']
6408  p = (d, p)
6409  return p
6410 
6411  def __setstate__(self, p):
6412  if not hasattr(self, 'this'):
6413  self.__init__()
6414  if isinstance(p, tuple):
6415  d, p = p
6416  self.__dict__.update(d)
6417  return self._set_from_binary(p)
6418 
6419 
6420 # Register HarmonicUpperBound in _IMP_core:
6421 _IMP_core.HarmonicUpperBound_swigregister(HarmonicUpperBound)
6422 class WeightedSum(IMP.UnaryFunction):
6423  r"""Proxy of C++ IMP::core::WeightedSum class."""
6424 
6425  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6426 
6427  def __init__(self, funcs, weights):
6428  r"""__init__(WeightedSum self, IMP::UnaryFunctions funcs, IMP::Floats weights) -> WeightedSum"""
6429  _IMP_core.WeightedSum_swiginit(self, _IMP_core.new_WeightedSum(funcs, weights))
6430 
6431  def get_function_number(self):
6432  r"""get_function_number(WeightedSum self) -> unsigned int"""
6433  return _IMP_core.WeightedSum_get_function_number(self)
6434 
6435  def set_weights(self, weights):
6436  r"""set_weights(WeightedSum self, IMP::Floats weights)"""
6437  return _IMP_core.WeightedSum_set_weights(self, weights)
6438 
6439  def get_weights(self):
6440  r"""get_weights(WeightedSum self) -> IMP::Floats"""
6441  return _IMP_core.WeightedSum_get_weights(self)
6442 
6443  def get_weight(self, i):
6444  r"""get_weight(WeightedSum self, unsigned int i) -> double"""
6445  return _IMP_core.WeightedSum_get_weight(self, i)
6446 
6447  def get_function(self, i):
6448  r"""get_function(WeightedSum self, unsigned int i) -> UnaryFunction"""
6449  return _IMP_core.WeightedSum_get_function(self, i)
6450 
6451  def get_version_info(self):
6452  r"""get_version_info(WeightedSum self) -> VersionInfo"""
6453  return _IMP_core.WeightedSum_get_version_info(self)
6454  __swig_destroy__ = _IMP_core.delete_WeightedSum
6455 
6456  def __str__(self):
6457  r"""__str__(WeightedSum self) -> std::string"""
6458  return _IMP_core.WeightedSum___str__(self)
6459 
6460  def __repr__(self):
6461  r"""__repr__(WeightedSum self) -> std::string"""
6462  return _IMP_core.WeightedSum___repr__(self)
6463 
6464  @staticmethod
6465  def get_from(o):
6466  return _object_cast_to_WeightedSum(o)
6467 
6468 
6469 # Register WeightedSum in _IMP_core:
6470 _IMP_core.WeightedSum_swigregister(WeightedSum)
6471 class WeightedSumOfExponential(IMP.UnaryFunction):
6472  r"""Proxy of C++ IMP::core::WeightedSumOfExponential class."""
6473 
6474  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6475 
6476  def __init__(self, funcs, weights, denom=1.0):
6477  r"""__init__(WeightedSumOfExponential self, IMP::UnaryFunctions funcs, IMP::Floats weights, IMP::Float denom=1.0) -> WeightedSumOfExponential"""
6478  _IMP_core.WeightedSumOfExponential_swiginit(self, _IMP_core.new_WeightedSumOfExponential(funcs, weights, denom))
6479 
6480  def get_function_number(self):
6481  r"""get_function_number(WeightedSumOfExponential self) -> unsigned int"""
6482  return _IMP_core.WeightedSumOfExponential_get_function_number(self)
6483 
6484  def set_weights(self, weights):
6485  r"""set_weights(WeightedSumOfExponential self, IMP::Floats weights)"""
6486  return _IMP_core.WeightedSumOfExponential_set_weights(self, weights)
6487 
6488  def get_weights(self):
6489  r"""get_weights(WeightedSumOfExponential self) -> IMP::Floats"""
6490  return _IMP_core.WeightedSumOfExponential_get_weights(self)
6491 
6492  def get_weight(self, i):
6493  r"""get_weight(WeightedSumOfExponential self, unsigned int i) -> double"""
6494  return _IMP_core.WeightedSumOfExponential_get_weight(self, i)
6495 
6496  def get_function(self, i):
6497  r"""get_function(WeightedSumOfExponential self, unsigned int i) -> UnaryFunction"""
6498  return _IMP_core.WeightedSumOfExponential_get_function(self, i)
6499 
6500  def set_denominator(self, denom):
6501  r"""set_denominator(WeightedSumOfExponential self, double denom)"""
6502  return _IMP_core.WeightedSumOfExponential_set_denominator(self, denom)
6503 
6504  def get_denominator(self):
6505  r"""get_denominator(WeightedSumOfExponential self) -> double"""
6506  return _IMP_core.WeightedSumOfExponential_get_denominator(self)
6507 
6508  def get_version_info(self):
6509  r"""get_version_info(WeightedSumOfExponential self) -> VersionInfo"""
6510  return _IMP_core.WeightedSumOfExponential_get_version_info(self)
6511  __swig_destroy__ = _IMP_core.delete_WeightedSumOfExponential
6512 
6513  def __str__(self):
6514  r"""__str__(WeightedSumOfExponential self) -> std::string"""
6515  return _IMP_core.WeightedSumOfExponential___str__(self)
6516 
6517  def __repr__(self):
6518  r"""__repr__(WeightedSumOfExponential self) -> std::string"""
6519  return _IMP_core.WeightedSumOfExponential___repr__(self)
6520 
6521  @staticmethod
6522  def get_from(o):
6523  return _object_cast_to_WeightedSumOfExponential(o)
6524 
6525 
6526 # Register WeightedSumOfExponential in _IMP_core:
6527 _IMP_core.WeightedSumOfExponential_swigregister(WeightedSumOfExponential)
6528 class MSConnectivityRestraint(IMP.Restraint):
6529  r"""Proxy of C++ IMP::core::MSConnectivityRestraint class."""
6530 
6531  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6532 
6533  def __init__(self, m, ps, eps=0.1):
6534  r"""__init__(MSConnectivityRestraint self, Model m, PairScore ps, double eps=0.1) -> MSConnectivityRestraint"""
6535  _IMP_core.MSConnectivityRestraint_swiginit(self, _IMP_core.new_MSConnectivityRestraint(m, ps, eps))
6536 
6537  def add_type(self, ps):
6538  r"""add_type(MSConnectivityRestraint self, IMP::ParticlesTemp const & ps) -> unsigned int"""
6539  return _IMP_core.MSConnectivityRestraint_add_type(self, ps)
6540 
6541  def add_composite(self, *args):
6542  r"""
6543  add_composite(MSConnectivityRestraint self, IMP::Ints const & components) -> unsigned int
6544  add_composite(MSConnectivityRestraint self, IMP::Ints const & components, unsigned int parent) -> unsigned int
6545  """
6546  return _IMP_core.MSConnectivityRestraint_add_composite(self, *args)
6547 
6548  def get_connected_pairs(self):
6549  r"""get_connected_pairs(MSConnectivityRestraint self) -> IMP::ParticlePairsTemp"""
6550  return _IMP_core.MSConnectivityRestraint_get_connected_pairs(self)
6551 
6552  def get_pair_score(self):
6553  r"""get_pair_score(MSConnectivityRestraint self) -> PairScore"""
6554  return _IMP_core.MSConnectivityRestraint_get_pair_score(self)
6555 
6556  def do_create_current_decomposition(self):
6557  r"""do_create_current_decomposition(MSConnectivityRestraint self) -> IMP::Restraints"""
6558  return _IMP_core.MSConnectivityRestraint_do_create_current_decomposition(self)
6559 
6560  def do_get_inputs(self):
6561  r"""do_get_inputs(MSConnectivityRestraint self) -> IMP::ModelObjectsTemp"""
6562  return _IMP_core.MSConnectivityRestraint_do_get_inputs(self)
6563 
6564  def get_version_info(self):
6565  r"""get_version_info(MSConnectivityRestraint self) -> VersionInfo"""
6566  return _IMP_core.MSConnectivityRestraint_get_version_info(self)
6567  __swig_destroy__ = _IMP_core.delete_MSConnectivityRestraint
6568 
6569  def __str__(self):
6570  r"""__str__(MSConnectivityRestraint self) -> std::string"""
6571  return _IMP_core.MSConnectivityRestraint___str__(self)
6572 
6573  def __repr__(self):
6574  r"""__repr__(MSConnectivityRestraint self) -> std::string"""
6575  return _IMP_core.MSConnectivityRestraint___repr__(self)
6576 
6577  @staticmethod
6578  def get_from(o):
6579  return _object_cast_to_MSConnectivityRestraint(o)
6580 
6581 
6582 # Register MSConnectivityRestraint in _IMP_core:
6583 _IMP_core.MSConnectivityRestraint_swigregister(MSConnectivityRestraint)
6584 class HierarchyTraits(object):
6585  r"""Proxy of C++ IMP::core::HierarchyTraits class."""
6586 
6587  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6588 
6589  def __init__(self, *args):
6590  r"""
6591  __init__(HierarchyTraits self) -> HierarchyTraits
6592  __init__(HierarchyTraits self, std::string name) -> HierarchyTraits
6593  """
6594  _IMP_core.HierarchyTraits_swiginit(self, _IMP_core.new_HierarchyTraits(*args))
6595 
6596  def get_children_key(self):
6597  r"""get_children_key(HierarchyTraits self) -> ParticleIndexesKey"""
6598  return _IMP_core.HierarchyTraits_get_children_key(self)
6599 
6600  def get_parent_key(self):
6601  r"""get_parent_key(HierarchyTraits self) -> ParticleIndexKey"""
6602  return _IMP_core.HierarchyTraits_get_parent_key(self)
6603 
6604  def __eq__(self, o):
6605  r"""__eq__(HierarchyTraits self, HierarchyTraits o) -> bool"""
6606  return _IMP_core.HierarchyTraits___eq__(self, o)
6607 
6608  def show(self, *args):
6609  r"""show(HierarchyTraits self, _ostream out=std::cout)"""
6610  return _IMP_core.HierarchyTraits_show(self, *args)
6611 
6612  def __str__(self):
6613  r"""__str__(HierarchyTraits self) -> std::string"""
6614  return _IMP_core.HierarchyTraits___str__(self)
6615 
6616  def __repr__(self):
6617  r"""__repr__(HierarchyTraits self) -> std::string"""
6618  return _IMP_core.HierarchyTraits___repr__(self)
6619  __swig_destroy__ = _IMP_core.delete_HierarchyTraits
6620 
6621 # Register HierarchyTraits in _IMP_core:
6622 _IMP_core.HierarchyTraits_swigregister(HierarchyTraits)
6623 class Hierarchy(IMP.Decorator):
6624  r"""Proxy of C++ IMP::core::Hierarchy class."""
6625 
6626  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6627 
6628  def get_decorator_traits(self):
6629  r"""get_decorator_traits(Hierarchy self) -> HierarchyTraits"""
6630  return _IMP_core.Hierarchy_get_decorator_traits(self)
6631 
6632  @staticmethod
6633  def get_default_decorator_traits():
6634  r"""get_default_decorator_traits() -> HierarchyTraits"""
6635  return _IMP_core.Hierarchy_get_default_decorator_traits()
6636 
6637  def __init__(self, *args):
6638  r"""
6639  __init__(Hierarchy self) -> Hierarchy
6640  __init__(Hierarchy self, Model m, ParticleIndex id, HierarchyTraits tr=get_default_traits()) -> Hierarchy
6641  __init__(Hierarchy self, _ParticleAdaptor d, HierarchyTraits tr=get_default_traits()) -> Hierarchy
6642  """
6643  _IMP_core.Hierarchy_swiginit(self, _IMP_core.new_Hierarchy(*args))
6644 
6645  def show(self, *args):
6646  r"""show(Hierarchy self, _ostream out=std::cout)"""
6647  return _IMP_core.Hierarchy_show(self, *args)
6648 
6649  @staticmethod
6650  def setup_particle(*args):
6651  r"""
6652  setup_particle(Model m, ParticleIndex pi, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6653  setup_particle(_ParticleAdaptor d, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6654  setup_particle(Model m, ParticleIndex pi, IMP::ParticleIndexes children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6655  setup_particle(_ParticleAdaptor d, IMP::ParticleIndexes children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6656  setup_particle(Model m, ParticleIndex pi, IMP::ParticlesTemp children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6657  setup_particle(_ParticleAdaptor d, IMP::ParticlesTemp children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6658  """
6659  return _IMP_core.Hierarchy_setup_particle(*args)
6660 
6661  @staticmethod
6662  def get_is_setup(*args):
6663  r"""
6664  get_is_setup(_ParticleAdaptor p, HierarchyTraits tr=get_default_traits()) -> bool
6665  get_is_setup(Model arg1, ParticleIndex arg2, HierarchyTraits arg3=Hierarchy::get_default_traits()) -> bool
6666  """
6667  return _IMP_core.Hierarchy_get_is_setup(*args)
6668 
6669  @staticmethod
6670  def get_changed_key():
6671  r"""get_changed_key() -> TriggerKey"""
6672  return _IMP_core.Hierarchy_get_changed_key()
6673 
6674  def get_parent(self):
6675  r"""get_parent(Hierarchy self) -> Hierarchy"""
6676  return _IMP_core.Hierarchy_get_parent(self)
6677 
6678  def get_number_of_children(self):
6679  r"""get_number_of_children(Hierarchy self) -> unsigned int"""
6680  return _IMP_core.Hierarchy_get_number_of_children(self)
6681 
6682  def get_child(self, i):
6683  r"""get_child(Hierarchy self, unsigned int i) -> Hierarchy"""
6684  return _IMP_core.Hierarchy_get_child(self, i)
6685 
6686  def get_children_indexes(self):
6687  r"""get_children_indexes(Hierarchy self) -> IMP::ParticleIndexes"""
6688  return _IMP_core.Hierarchy_get_children_indexes(self)
6689 
6690  def get_children(self):
6691  r"""get_children(Hierarchy self) -> IMP::core::GenericHierarchies"""
6692  return _IMP_core.Hierarchy_get_children(self)
6693 
6694  def remove_child(self, *args):
6695  r"""
6696  remove_child(Hierarchy self, unsigned int i)
6697  remove_child(Hierarchy self, Hierarchy h)
6698  """
6699  return _IMP_core.Hierarchy_remove_child(self, *args)
6700 
6701  def clear_children(self):
6702  r"""clear_children(Hierarchy self)"""
6703  return _IMP_core.Hierarchy_clear_children(self)
6704 
6705  def add_child(self, h):
6706  r"""add_child(Hierarchy self, Hierarchy h)"""
6707  return _IMP_core.Hierarchy_add_child(self, h)
6708 
6709  def add_child_at(self, h, pos):
6710  r"""add_child_at(Hierarchy self, Hierarchy h, unsigned int pos)"""
6711  return _IMP_core.Hierarchy_add_child_at(self, h, pos)
6712 
6713  def get_child_index(self, *args):
6714  r"""
6715  get_child_index(Hierarchy self, unsigned int i) -> ParticleIndex
6716  get_child_index(Hierarchy self) -> int
6717  """
6718  return _IMP_core.Hierarchy_get_child_index(self, *args)
6719 
6720  @staticmethod
6721  def get_default_traits():
6722  r"""get_default_traits() -> HierarchyTraits"""
6723  return _IMP_core.Hierarchy_get_default_traits()
6724 
6725  def get_traits(self):
6726  r"""get_traits(Hierarchy self) -> HierarchyTraits"""
6727  return _IMP_core.Hierarchy_get_traits(self)
6728 
6729  def add_attribute(self, *args):
6730  r"""
6731  add_attribute(Hierarchy self, FloatKey k, IMP::Float v, bool opt)
6732  add_attribute(Hierarchy self, FloatKey a0, IMP::Float a1)
6733  add_attribute(Hierarchy self, IntKey a0, IMP::Int a1)
6734  add_attribute(Hierarchy self, FloatsKey a0, IMP::Floats a1)
6735  add_attribute(Hierarchy self, IntsKey a0, IMP::Ints a1)
6736  add_attribute(Hierarchy self, StringKey a0, IMP::String a1)
6737  add_attribute(Hierarchy self, ParticleIndexKey a0, Particle a1)
6738  add_attribute(Hierarchy self, ObjectKey a0, Object a1)
6739  add_attribute(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
6740  add_attribute(Hierarchy self, SparseIntKey a0, IMP::Int a1)
6741  add_attribute(Hierarchy self, SparseStringKey a0, IMP::String a1)
6742  add_attribute(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
6743  """
6744  return _IMP_core.Hierarchy_add_attribute(self, *args)
6745 
6746  def get_value(self, *args):
6747  r"""
6748  get_value(Hierarchy self, FloatKey a0) -> IMP::Float
6749  get_value(Hierarchy self, IntKey a0) -> IMP::Int
6750  get_value(Hierarchy self, FloatsKey a0) -> IMP::Floats
6751  get_value(Hierarchy self, IntsKey a0) -> IMP::Ints
6752  get_value(Hierarchy self, StringKey a0) -> IMP::String
6753  get_value(Hierarchy self, ParticleIndexKey a0) -> Particle
6754  get_value(Hierarchy self, ObjectKey a0) -> Object
6755  get_value(Hierarchy self, SparseFloatKey a0) -> IMP::Float
6756  get_value(Hierarchy self, SparseIntKey a0) -> IMP::Int
6757  get_value(Hierarchy self, SparseStringKey a0) -> IMP::String
6758  get_value(Hierarchy self, SparseParticleIndexKey a0) -> ParticleIndex
6759  """
6760  return _IMP_core.Hierarchy_get_value(self, *args)
6761 
6762  def set_value(self, *args):
6763  r"""
6764  set_value(Hierarchy self, FloatKey a0, IMP::Float a1)
6765  set_value(Hierarchy self, IntKey a0, IMP::Int a1)
6766  set_value(Hierarchy self, FloatsKey a0, IMP::Floats a1)
6767  set_value(Hierarchy self, IntsKey a0, IMP::Ints a1)
6768  set_value(Hierarchy self, StringKey a0, IMP::String a1)
6769  set_value(Hierarchy self, ParticleIndexKey a0, Particle a1)
6770  set_value(Hierarchy self, ObjectKey a0, Object a1)
6771  set_value(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
6772  set_value(Hierarchy self, SparseIntKey a0, IMP::Int a1)
6773  set_value(Hierarchy self, SparseStringKey a0, IMP::String a1)
6774  set_value(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
6775  """
6776  return _IMP_core.Hierarchy_set_value(self, *args)
6777 
6778  def remove_attribute(self, *args):
6779  r"""
6780  remove_attribute(Hierarchy self, FloatKey a0)
6781  remove_attribute(Hierarchy self, IntKey a0)
6782  remove_attribute(Hierarchy self, FloatsKey a0)
6783  remove_attribute(Hierarchy self, IntsKey a0)
6784  remove_attribute(Hierarchy self, StringKey a0)
6785  remove_attribute(Hierarchy self, ParticleIndexKey a0)
6786  remove_attribute(Hierarchy self, ObjectKey a0)
6787  remove_attribute(Hierarchy self, SparseFloatKey a0)
6788  remove_attribute(Hierarchy self, SparseIntKey a0)
6789  remove_attribute(Hierarchy self, SparseStringKey a0)
6790  remove_attribute(Hierarchy self, SparseParticleIndexKey a0)
6791  """
6792  return _IMP_core.Hierarchy_remove_attribute(self, *args)
6793 
6794  def has_attribute(self, *args):
6795  r"""
6796  has_attribute(Hierarchy self, FloatKey a0) -> bool
6797  has_attribute(Hierarchy self, IntKey a0) -> bool
6798  has_attribute(Hierarchy self, FloatsKey a0) -> bool
6799  has_attribute(Hierarchy self, IntsKey a0) -> bool
6800  has_attribute(Hierarchy self, StringKey a0) -> bool
6801  has_attribute(Hierarchy self, ParticleIndexKey a0) -> bool
6802  has_attribute(Hierarchy self, ObjectKey a0) -> bool
6803  has_attribute(Hierarchy self, SparseFloatKey a0) -> bool
6804  has_attribute(Hierarchy self, SparseIntKey a0) -> bool
6805  has_attribute(Hierarchy self, SparseStringKey a0) -> bool
6806  has_attribute(Hierarchy self, SparseParticleIndexKey a0) -> bool
6807  """
6808  return _IMP_core.Hierarchy_has_attribute(self, *args)
6809 
6810  def get_derivative(self, a0):
6811  r"""get_derivative(Hierarchy self, FloatKey a0) -> double"""
6812  return _IMP_core.Hierarchy_get_derivative(self, a0)
6813 
6814  def get_name(self):
6815  r"""get_name(Hierarchy self) -> std::string"""
6816  return _IMP_core.Hierarchy_get_name(self)
6817 
6818  def clear_caches(self):
6819  r"""clear_caches(Hierarchy self)"""
6820  return _IMP_core.Hierarchy_clear_caches(self)
6821 
6822  def set_name(self, a0):
6823  r"""set_name(Hierarchy self, std::string a0)"""
6824  return _IMP_core.Hierarchy_set_name(self, a0)
6825 
6826  def set_check_level(self, a0):
6827  r"""set_check_level(Hierarchy self, IMP::CheckLevel a0)"""
6828  return _IMP_core.Hierarchy_set_check_level(self, a0)
6829 
6830  def add_to_derivative(self, a0, a1, a2):
6831  r"""add_to_derivative(Hierarchy self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6832  return _IMP_core.Hierarchy_add_to_derivative(self, a0, a1, a2)
6833 
6834  def set_is_optimized(self, a0, a1):
6835  r"""set_is_optimized(Hierarchy self, FloatKey a0, bool a1)"""
6836  return _IMP_core.Hierarchy_set_is_optimized(self, a0, a1)
6837 
6838  def get_is_optimized(self, a0):
6839  r"""get_is_optimized(Hierarchy self, FloatKey a0) -> bool"""
6840  return _IMP_core.Hierarchy_get_is_optimized(self, a0)
6841 
6842  def get_check_level(self):
6843  r"""get_check_level(Hierarchy self) -> IMP::CheckLevel"""
6844  return _IMP_core.Hierarchy_get_check_level(self)
6845 
6846  def __eq__(self, *args):
6847  r"""
6848  __eq__(Hierarchy self, Hierarchy o) -> bool
6849  __eq__(Hierarchy self, Particle d) -> bool
6850  """
6851  return _IMP_core.Hierarchy___eq__(self, *args)
6852 
6853  def __ne__(self, *args):
6854  r"""
6855  __ne__(Hierarchy self, Hierarchy o) -> bool
6856  __ne__(Hierarchy self, Particle d) -> bool
6857  """
6858  return _IMP_core.Hierarchy___ne__(self, *args)
6859 
6860  def __le__(self, *args):
6861  r"""
6862  __le__(Hierarchy self, Hierarchy o) -> bool
6863  __le__(Hierarchy self, Particle d) -> bool
6864  """
6865  return _IMP_core.Hierarchy___le__(self, *args)
6866 
6867  def __lt__(self, *args):
6868  r"""
6869  __lt__(Hierarchy self, Hierarchy o) -> bool
6870  __lt__(Hierarchy self, Particle d) -> bool
6871  """
6872  return _IMP_core.Hierarchy___lt__(self, *args)
6873 
6874  def __ge__(self, *args):
6875  r"""
6876  __ge__(Hierarchy self, Hierarchy o) -> bool
6877  __ge__(Hierarchy self, Particle d) -> bool
6878  """
6879  return _IMP_core.Hierarchy___ge__(self, *args)
6880 
6881  def __gt__(self, *args):
6882  r"""
6883  __gt__(Hierarchy self, Hierarchy o) -> bool
6884  __gt__(Hierarchy self, Particle d) -> bool
6885  """
6886  return _IMP_core.Hierarchy___gt__(self, *args)
6887 
6888  def __hash__(self):
6889  r"""__hash__(Hierarchy self) -> std::size_t"""
6890  return _IMP_core.Hierarchy___hash__(self)
6891 
6892  def __str__(self):
6893  r"""__str__(Hierarchy self) -> std::string"""
6894  return _IMP_core.Hierarchy___str__(self)
6895 
6896  def __repr__(self):
6897  r"""__repr__(Hierarchy self) -> std::string"""
6898  return _IMP_core.Hierarchy___repr__(self)
6899  __swig_destroy__ = _IMP_core.delete_Hierarchy
6900 
6901 # Register Hierarchy in _IMP_core:
6902 _IMP_core.Hierarchy_swigregister(Hierarchy)
6903 class HierarchyVisitor(object):
6904  r"""Proxy of C++ IMP::core::HierarchyVisitor class."""
6905 
6906  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6907  __repr__ = _swig_repr
6908 
6909  def __init__(self):
6910  r"""__init__(HierarchyVisitor self) -> HierarchyVisitor"""
6911  if self.__class__ == HierarchyVisitor:
6912  _self = None
6913  else:
6914  _self = self
6915  _IMP_core.HierarchyVisitor_swiginit(self, _IMP_core.new_HierarchyVisitor(_self, ))
6916 
6917  if self.__class__ != HierarchyVisitor:
6918  _director_objects.register(self)
6919 
6920 
6921 
6922 
6923  def __call__(self, p):
6924  r"""__call__(HierarchyVisitor self, Hierarchy p) -> bool"""
6925  return _IMP_core.HierarchyVisitor___call__(self, p)
6926  __swig_destroy__ = _IMP_core.delete_HierarchyVisitor
6927  def __disown__(self):
6928  self.this.disown()
6929  _IMP_core.disown_HierarchyVisitor(self)
6930  return weakref.proxy(self)
6931 
6932 # Register HierarchyVisitor in _IMP_core:
6933 _IMP_core.HierarchyVisitor_swigregister(HierarchyVisitor)
6934 class ModifierVisitor(HierarchyVisitor):
6935  r"""Proxy of C++ IMP::core::ModifierVisitor class."""
6936 
6937  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6938  __repr__ = _swig_repr
6939 
6940  def __init__(self, sm):
6941  r"""__init__(ModifierVisitor self, SingletonModifier sm) -> ModifierVisitor"""
6942  _IMP_core.ModifierVisitor_swiginit(self, _IMP_core.new_ModifierVisitor(sm))
6943  __swig_destroy__ = _IMP_core.delete_ModifierVisitor
6944 
6945 # Register ModifierVisitor in _IMP_core:
6946 _IMP_core.ModifierVisitor_swigregister(ModifierVisitor)
6947 class HierarchyCounter(HierarchyVisitor):
6948  r"""Proxy of C++ IMP::core::HierarchyCounter class."""
6949 
6950  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6951 
6952  def __init__(self):
6953  r"""__init__(HierarchyCounter self) -> HierarchyCounter"""
6954  _IMP_core.HierarchyCounter_swiginit(self, _IMP_core.new_HierarchyCounter())
6955 
6956  def get_count(self):
6957  r"""get_count(HierarchyCounter self) -> unsigned int"""
6958  return _IMP_core.HierarchyCounter_get_count(self)
6959 
6960  def show(self, *args):
6961  r"""show(HierarchyCounter self, _ostream out=std::cout)"""
6962  return _IMP_core.HierarchyCounter_show(self, *args)
6963 
6964  def __str__(self):
6965  r"""__str__(HierarchyCounter self) -> std::string"""
6966  return _IMP_core.HierarchyCounter___str__(self)
6967 
6968  def __repr__(self):
6969  r"""__repr__(HierarchyCounter self) -> std::string"""
6970  return _IMP_core.HierarchyCounter___repr__(self)
6971 
6972  def _get_as_binary(self):
6973  r"""_get_as_binary(HierarchyCounter self) -> PyObject *"""
6974  return _IMP_core.HierarchyCounter__get_as_binary(self)
6975 
6976  def _set_from_binary(self, p):
6977  r"""_set_from_binary(HierarchyCounter self, PyObject * p)"""
6978  return _IMP_core.HierarchyCounter__set_from_binary(self, p)
6979 
6980  def __getstate__(self):
6981  p = self._get_as_binary()
6982  if len(self.__dict__) > 1:
6983  d = self.__dict__.copy()
6984  del d['this']
6985  p = (d, p)
6986  return p
6987 
6988  def __setstate__(self, p):
6989  if not hasattr(self, 'this'):
6990  self.__init__()
6991  if isinstance(p, tuple):
6992  d, p = p
6993  self.__dict__.update(d)
6994  return self._set_from_binary(p)
6995 
6996  __swig_destroy__ = _IMP_core.delete_HierarchyCounter
6997 
6998 # Register HierarchyCounter in _IMP_core:
6999 _IMP_core.HierarchyCounter_swigregister(HierarchyCounter)
7000 
7001 def get_leaves(mhd):
7002  r"""get_leaves(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
7003  return _IMP_core.get_leaves(mhd)
7004 
7005 def get_internal(mhd):
7006  r"""get_internal(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
7007  return _IMP_core.get_internal(mhd)
7008 
7009 def get_all_descendants(mhd):
7010  r"""get_all_descendants(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
7011  return _IMP_core.get_all_descendants(mhd)
7012 
7013 def get_root(h):
7014  r"""get_root(Hierarchy h) -> Hierarchy"""
7015  return _IMP_core.get_root(h)
7016 
7017 def visit_breadth_first(d, f):
7018  r"""visit_breadth_first(Hierarchy d, HierarchyVisitor f)"""
7019  return _IMP_core.visit_breadth_first(d, f)
7020 
7021 def visit_depth_first(d, f):
7022  r"""visit_depth_first(Hierarchy d, HierarchyVisitor f)"""
7023  return _IMP_core.visit_depth_first(d, f)
7024 class LeavesRefiner(IMP.Refiner):
7025  r"""Proxy of C++ IMP::core::LeavesRefiner class."""
7026 
7027  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7028 
7029  def __init__(self, tr):
7030  r"""__init__(LeavesRefiner self, HierarchyTraits tr) -> LeavesRefiner"""
7031  _IMP_core.LeavesRefiner_swiginit(self, _IMP_core.new_LeavesRefiner(tr))
7032 
7033  def do_get_inputs(self, m, pis):
7034  r"""do_get_inputs(LeavesRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7035  return _IMP_core.LeavesRefiner_do_get_inputs(self, m, pis)
7036 
7037  def get_version_info(self):
7038  r"""get_version_info(LeavesRefiner self) -> VersionInfo"""
7039  return _IMP_core.LeavesRefiner_get_version_info(self)
7040  __swig_destroy__ = _IMP_core.delete_LeavesRefiner
7041 
7042  def __str__(self):
7043  r"""__str__(LeavesRefiner self) -> std::string"""
7044  return _IMP_core.LeavesRefiner___str__(self)
7045 
7046  def __repr__(self):
7047  r"""__repr__(LeavesRefiner self) -> std::string"""
7048  return _IMP_core.LeavesRefiner___repr__(self)
7049 
7050  @staticmethod
7051  def get_from(o):
7052  return _object_cast_to_LeavesRefiner(o)
7053 
7054 
7055 # Register LeavesRefiner in _IMP_core:
7056 _IMP_core.LeavesRefiner_swigregister(LeavesRefiner)
7057 class Linear(IMP.UnaryFunction):
7058  r"""Proxy of C++ IMP::core::Linear class."""
7059 
7060  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7061 
7062  def __init__(self, *args):
7063  r"""
7064  __init__(Linear self, double offset, double slope) -> Linear
7065  __init__(Linear self) -> Linear
7066  """
7067  _IMP_core.Linear_swiginit(self, _IMP_core.new_Linear(*args))
7068 
7069  def set_slope(self, f):
7070  r"""set_slope(Linear self, double f)"""
7071  return _IMP_core.Linear_set_slope(self, f)
7072 
7073  def set_offset(self, f):
7074  r"""set_offset(Linear self, double f)"""
7075  return _IMP_core.Linear_set_offset(self, f)
7076 
7077  def get_version_info(self):
7078  r"""get_version_info(Linear self) -> VersionInfo"""
7079  return _IMP_core.Linear_get_version_info(self)
7080  __swig_destroy__ = _IMP_core.delete_Linear
7081 
7082  def __str__(self):
7083  r"""__str__(Linear self) -> std::string"""
7084  return _IMP_core.Linear___str__(self)
7085 
7086  def __repr__(self):
7087  r"""__repr__(Linear self) -> std::string"""
7088  return _IMP_core.Linear___repr__(self)
7089 
7090  @staticmethod
7091  def get_from(o):
7092  return _object_cast_to_Linear(o)
7093 
7094 
7095  def _get_as_binary(self):
7096  r"""_get_as_binary(Linear self) -> PyObject *"""
7097  return _IMP_core.Linear__get_as_binary(self)
7098 
7099  def _set_from_binary(self, p):
7100  r"""_set_from_binary(Linear self, PyObject * p)"""
7101  return _IMP_core.Linear__set_from_binary(self, p)
7102 
7103  def __getstate__(self):
7104  p = self._get_as_binary()
7105  if len(self.__dict__) > 1:
7106  d = self.__dict__.copy()
7107  del d['this']
7108  p = (d, p)
7109  return p
7110 
7111  def __setstate__(self, p):
7112  if not hasattr(self, 'this'):
7113  self.__init__()
7114  if isinstance(p, tuple):
7115  d, p = p
7116  self.__dict__.update(d)
7117  return self._set_from_binary(p)
7118 
7119 
7120 # Register Linear in _IMP_core:
7121 _IMP_core.Linear_swigregister(Linear)
7122 class LogNormalMover(MonteCarloMover):
7123  r"""Proxy of C++ IMP::core::LogNormalMover class."""
7124 
7125  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7126 
7127  def __init__(self, *args):
7128  r"""
7129  __init__(LogNormalMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double stddev) -> LogNormalMover
7130  __init__(LogNormalMover self, Model m, ParticleIndex pi, double stddev) -> LogNormalMover
7131  __init__(LogNormalMover self, IMP::ParticlesTemp const & sc, IMP::FloatKeys const & vars, IMP::Float sigma) -> LogNormalMover
7132  __init__(LogNormalMover self, IMP::ParticlesTemp const & sc, IMP::Float radius) -> LogNormalMover
7133  __init__(LogNormalMover self) -> LogNormalMover
7134  """
7135  _IMP_core.LogNormalMover_swiginit(self, _IMP_core.new_LogNormalMover(*args))
7136 
7137  def set_sigma(self, sigma):
7138  r"""set_sigma(LogNormalMover self, IMP::Float sigma)"""
7139  return _IMP_core.LogNormalMover_set_sigma(self, sigma)
7140 
7141  def get_sigma(self):
7142  r"""get_sigma(LogNormalMover self) -> IMP::Float"""
7143  return _IMP_core.LogNormalMover_get_sigma(self)
7144 
7145  def get_version_info(self):
7146  r"""get_version_info(LogNormalMover self) -> VersionInfo"""
7147  return _IMP_core.LogNormalMover_get_version_info(self)
7148  __swig_destroy__ = _IMP_core.delete_LogNormalMover
7149 
7150  def __str__(self):
7151  r"""__str__(LogNormalMover self) -> std::string"""
7152  return _IMP_core.LogNormalMover___str__(self)
7153 
7154  def __repr__(self):
7155  r"""__repr__(LogNormalMover self) -> std::string"""
7156  return _IMP_core.LogNormalMover___repr__(self)
7157 
7158  @staticmethod
7159  def get_from(o):
7160  return _object_cast_to_LogNormalMover(o)
7161 
7162 
7163  def _get_as_binary(self):
7164  r"""_get_as_binary(LogNormalMover self) -> PyObject *"""
7165  return _IMP_core.LogNormalMover__get_as_binary(self)
7166 
7167  def _set_from_binary(self, p):
7168  r"""_set_from_binary(LogNormalMover self, PyObject * p)"""
7169  return _IMP_core.LogNormalMover__set_from_binary(self, p)
7170 
7171  def __getstate__(self):
7172  p = self._get_as_binary()
7173  if len(self.__dict__) > 1:
7174  d = self.__dict__.copy()
7175  del d['this']
7176  p = (d, p)
7177  return p
7178 
7179  def __setstate__(self, p):
7180  if not hasattr(self, 'this'):
7181  self.__init__()
7182  if isinstance(p, tuple):
7183  d, p = p
7184  self.__dict__.update(d)
7185  return self._set_from_binary(p)
7186 
7187 
7188 # Register LogNormalMover in _IMP_core:
7189 _IMP_core.LogNormalMover_swigregister(LogNormalMover)
7190 IMP_CORE_HAS_MONTE_CARLO_MOVER = _IMP_core.IMP_CORE_HAS_MONTE_CARLO_MOVER
7191 
7192 class MonteCarlo(IMP.Optimizer):
7193  r"""Proxy of C++ IMP::core::MonteCarlo class."""
7194 
7195  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7196 
7197  def __init__(self, m):
7198  r"""__init__(MonteCarlo self, Model m) -> MonteCarlo"""
7199  _IMP_core.MonteCarlo_swiginit(self, _IMP_core.new_MonteCarlo(m))
7200 
7201  def get_version_info(self):
7202  r"""get_version_info(MonteCarlo self) -> VersionInfo"""
7203  return _IMP_core.MonteCarlo_get_version_info(self)
7204  __swig_destroy__ = _IMP_core.delete_MonteCarlo
7205 
7206  def set_return_best(self, tf):
7207  r"""set_return_best(MonteCarlo self, bool tf)"""
7208  return _IMP_core.MonteCarlo_set_return_best(self, tf)
7209 
7210  def set_score_moved(self, mv):
7211  r"""set_score_moved(MonteCarlo self, bool mv)"""
7212  return _IMP_core.MonteCarlo_set_score_moved(self, mv)
7213 
7214  def set_kt(self, t):
7215  r"""set_kt(MonteCarlo self, IMP::Float t)"""
7216  return _IMP_core.MonteCarlo_set_kt(self, t)
7217 
7218  def get_kt(self):
7219  r"""get_kt(MonteCarlo self) -> IMP::Float"""
7220  return _IMP_core.MonteCarlo_get_kt(self)
7221 
7222  def get_last_accepted_energy(self):
7223  r"""get_last_accepted_energy(MonteCarlo self) -> double"""
7224  return _IMP_core.MonteCarlo_get_last_accepted_energy(self)
7225 
7226  def get_best_accepted_energy(self):
7227  r"""get_best_accepted_energy(MonteCarlo self) -> double"""
7228  return _IMP_core.MonteCarlo_get_best_accepted_energy(self)
7229 
7230  def get_number_of_downward_steps(self):
7231  r"""get_number_of_downward_steps(MonteCarlo self) -> unsigned int"""
7232  return _IMP_core.MonteCarlo_get_number_of_downward_steps(self)
7233 
7234  def get_number_of_upward_steps(self):
7235  r"""get_number_of_upward_steps(MonteCarlo self) -> unsigned int"""
7236  return _IMP_core.MonteCarlo_get_number_of_upward_steps(self)
7237 
7238  def get_number_of_proposed_steps(self):
7239  r"""get_number_of_proposed_steps(MonteCarlo self) -> unsigned int"""
7240  return _IMP_core.MonteCarlo_get_number_of_proposed_steps(self)
7241 
7242  def get_number_of_accepted_steps(self):
7243  r"""get_number_of_accepted_steps(MonteCarlo self) -> unsigned int"""
7244  return _IMP_core.MonteCarlo_get_number_of_accepted_steps(self)
7245 
7246  def reset_statistics(self):
7247  r"""reset_statistics(MonteCarlo self)"""
7248  return _IMP_core.MonteCarlo_reset_statistics(self)
7249 
7250  def set_score_threshold(self, s):
7251  r"""set_score_threshold(MonteCarlo self, double s)"""
7252  return _IMP_core.MonteCarlo_set_score_threshold(self, s)
7253 
7254  def get_score_threshold(self):
7255  r"""get_score_threshold(MonteCarlo self) -> double"""
7256  return _IMP_core.MonteCarlo_get_score_threshold(self)
7257 
7258  def set_maximum_difference(self, d):
7259  r"""set_maximum_difference(MonteCarlo self, double d)"""
7260  return _IMP_core.MonteCarlo_set_maximum_difference(self, d)
7261 
7262  def get_maximum_difference(self):
7263  r"""get_maximum_difference(MonteCarlo self) -> double"""
7264  return _IMP_core.MonteCarlo_get_maximum_difference(self)
7265  def __get_movers(self): return IMP._list_util.VarList(getdimfunc=self.get_number_of_movers, getfunc=self.get_mover, erasefunc=self.erase_mover, appendfunc=self.add_mover, extendfunc=self.add_movers, clearfunc=self.clear_movers, indexfunc=self._python_index_mover)
7266  def __set_movers(self, obj): IMP._list_util.set_varlist(self.movers, obj)
7267  def __del_movers(self): IMP._list_util.del_varlist(self.movers)
7268  movers = property(__get_movers, __set_movers, __del_movers, doc="List of ##ucnames")
7269 
7270  def remove_mover(self, d):
7271  r"""remove_mover(MonteCarlo self, MonteCarloMover d)"""
7272  return _IMP_core.MonteCarlo_remove_mover(self, d)
7273 
7274  def _python_index_mover(self, d, start, stop):
7275  r"""_python_index_mover(MonteCarlo self, MonteCarloMover d, unsigned int start, unsigned int stop) -> unsigned int"""
7276  return _IMP_core.MonteCarlo__python_index_mover(self, d, start, stop)
7277 
7278  def remove_movers(self, d):
7279  r"""remove_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & d)"""
7280  return _IMP_core.MonteCarlo_remove_movers(self, d)
7281 
7282  def set_movers(self, ps):
7283  r"""set_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & ps)"""
7284  return _IMP_core.MonteCarlo_set_movers(self, ps)
7285 
7286  def set_movers_order(self, objs):
7287  r"""set_movers_order(MonteCarlo self, IMP::core::MonteCarloMovers const & objs)"""
7288  return _IMP_core.MonteCarlo_set_movers_order(self, objs)
7289 
7290  def add_mover(self, obj):
7291  r"""add_mover(MonteCarlo self, MonteCarloMover obj) -> unsigned int"""
7292  return _IMP_core.MonteCarlo_add_mover(self, obj)
7293 
7294  def add_movers(self, objs):
7295  r"""add_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & objs)"""
7296  return _IMP_core.MonteCarlo_add_movers(self, objs)
7297 
7298  def clear_movers(self):
7299  r"""clear_movers(MonteCarlo self)"""
7300  return _IMP_core.MonteCarlo_clear_movers(self)
7301 
7302  def get_number_of_movers(self):
7303  r"""get_number_of_movers(MonteCarlo self) -> unsigned int"""
7304  return _IMP_core.MonteCarlo_get_number_of_movers(self)
7305 
7306  def get_has_movers(self):
7307  r"""get_has_movers(MonteCarlo self) -> bool"""
7308  return _IMP_core.MonteCarlo_get_has_movers(self)
7309 
7310  def get_mover(self, i):
7311  r"""get_mover(MonteCarlo self, unsigned int i) -> MonteCarloMover"""
7312  return _IMP_core.MonteCarlo_get_mover(self, i)
7313 
7314  def get_movers(self):
7315  r"""get_movers(MonteCarlo self) -> IMP::core::MonteCarloMovers"""
7316  return _IMP_core.MonteCarlo_get_movers(self)
7317 
7318  def erase_mover(self, i):
7319  r"""erase_mover(MonteCarlo self, unsigned int i)"""
7320  return _IMP_core.MonteCarlo_erase_mover(self, i)
7321 
7322  def reserve_movers(self, sz):
7323  r"""reserve_movers(MonteCarlo self, unsigned int sz)"""
7324  return _IMP_core.MonteCarlo_reserve_movers(self, sz)
7325 
7326  def __str__(self):
7327  r"""__str__(MonteCarlo self) -> std::string"""
7328  return _IMP_core.MonteCarlo___str__(self)
7329 
7330  def __repr__(self):
7331  r"""__repr__(MonteCarlo self) -> std::string"""
7332  return _IMP_core.MonteCarlo___repr__(self)
7333 
7334  @staticmethod
7335  def get_from(o):
7336  return _object_cast_to_MonteCarlo(o)
7337 
7338 
7339 # Register MonteCarlo in _IMP_core:
7340 _IMP_core.MonteCarlo_swigregister(MonteCarlo)
7341 class MonteCarloWithLocalOptimization(MonteCarlo):
7342  r"""Proxy of C++ IMP::core::MonteCarloWithLocalOptimization class."""
7343 
7344  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7345 
7346  def __init__(self, opt, steps):
7347  r"""__init__(MonteCarloWithLocalOptimization self, Optimizer opt, unsigned int steps) -> MonteCarloWithLocalOptimization"""
7348  _IMP_core.MonteCarloWithLocalOptimization_swiginit(self, _IMP_core.new_MonteCarloWithLocalOptimization(opt, steps))
7349 
7350  def get_number_of_steps(self):
7351  r"""get_number_of_steps(MonteCarloWithLocalOptimization self) -> unsigned int"""
7352  return _IMP_core.MonteCarloWithLocalOptimization_get_number_of_steps(self)
7353 
7354  def get_local_optimizer(self):
7355  r"""get_local_optimizer(MonteCarloWithLocalOptimization self) -> Optimizer"""
7356  return _IMP_core.MonteCarloWithLocalOptimization_get_local_optimizer(self)
7357  __swig_destroy__ = _IMP_core.delete_MonteCarloWithLocalOptimization
7358 
7359  def __str__(self):
7360  r"""__str__(MonteCarloWithLocalOptimization self) -> std::string"""
7361  return _IMP_core.MonteCarloWithLocalOptimization___str__(self)
7362 
7363  def __repr__(self):
7364  r"""__repr__(MonteCarloWithLocalOptimization self) -> std::string"""
7365  return _IMP_core.MonteCarloWithLocalOptimization___repr__(self)
7366 
7367  @staticmethod
7368  def get_from(o):
7369  return _object_cast_to_MonteCarloWithLocalOptimization(o)
7370 
7371 
7372 # Register MonteCarloWithLocalOptimization in _IMP_core:
7373 _IMP_core.MonteCarloWithLocalOptimization_swigregister(MonteCarloWithLocalOptimization)
7374 class MonteCarloWithBasinHopping(MonteCarloWithLocalOptimization):
7375  r"""Proxy of C++ IMP::core::MonteCarloWithBasinHopping class."""
7376 
7377  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7378 
7379  def __init__(self, opt, ns):
7380  r"""__init__(MonteCarloWithBasinHopping self, Optimizer opt, unsigned int ns) -> MonteCarloWithBasinHopping"""
7381  _IMP_core.MonteCarloWithBasinHopping_swiginit(self, _IMP_core.new_MonteCarloWithBasinHopping(opt, ns))
7382  __swig_destroy__ = _IMP_core.delete_MonteCarloWithBasinHopping
7383 
7384  def __str__(self):
7385  r"""__str__(MonteCarloWithBasinHopping self) -> std::string"""
7386  return _IMP_core.MonteCarloWithBasinHopping___str__(self)
7387 
7388  def __repr__(self):
7389  r"""__repr__(MonteCarloWithBasinHopping self) -> std::string"""
7390  return _IMP_core.MonteCarloWithBasinHopping___repr__(self)
7391 
7392  @staticmethod
7393  def get_from(o):
7394  return _object_cast_to_MonteCarloWithBasinHopping(o)
7395 
7396 
7397 # Register MonteCarloWithBasinHopping in _IMP_core:
7398 _IMP_core.MonteCarloWithBasinHopping_swigregister(MonteCarloWithBasinHopping)
7399 class NeighborsTable(IMP.ScoreState):
7400  r"""Proxy of C++ IMP::core::NeighborsTable class."""
7401 
7402  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7403 
7404  def __init__(self, *args):
7405  r"""__init__(NeighborsTable self, PairContainer input, std::string name="CloseNeighborsTable%1%") -> NeighborsTable"""
7406  _IMP_core.NeighborsTable_swiginit(self, _IMP_core.new_NeighborsTable(*args))
7407 
7408  def get_neighbors(self, pi):
7409  r"""get_neighbors(NeighborsTable self, ParticleIndex pi) -> IMP::ParticleIndexes const &"""
7410  return _IMP_core.NeighborsTable_get_neighbors(self, pi)
7411 
7412  def get_version_info(self):
7413  r"""get_version_info(NeighborsTable self) -> VersionInfo"""
7414  return _IMP_core.NeighborsTable_get_version_info(self)
7415  __swig_destroy__ = _IMP_core.delete_NeighborsTable
7416 
7417  def __str__(self):
7418  r"""__str__(NeighborsTable self) -> std::string"""
7419  return _IMP_core.NeighborsTable___str__(self)
7420 
7421  def __repr__(self):
7422  r"""__repr__(NeighborsTable self) -> std::string"""
7423  return _IMP_core.NeighborsTable___repr__(self)
7424 
7425  @staticmethod
7426  def get_from(o):
7427  return _object_cast_to_NeighborsTable(o)
7428 
7429 
7430 # Register NeighborsTable in _IMP_core:
7431 _IMP_core.NeighborsTable_swigregister(NeighborsTable)
7432 class NormalMover(MonteCarloMover):
7433  r"""Proxy of C++ IMP::core::NormalMover class."""
7434 
7435  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7436 
7437  def __init__(self, *args):
7438  r"""
7439  __init__(NormalMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double stddev) -> NormalMover
7440  __init__(NormalMover self, Model m, ParticleIndex pi, double stddev) -> NormalMover
7441  __init__(NormalMover self, IMP::ParticlesTemp const & sc, IMP::FloatKeys const & vars, IMP::Float sigma) -> NormalMover
7442  __init__(NormalMover self, IMP::ParticlesTemp const & sc, IMP::Float radius) -> NormalMover
7443  __init__(NormalMover self) -> NormalMover
7444  """
7445  _IMP_core.NormalMover_swiginit(self, _IMP_core.new_NormalMover(*args))
7446 
7447  def set_sigma(self, sigma):
7448  r"""set_sigma(NormalMover self, IMP::Float sigma)"""
7449  return _IMP_core.NormalMover_set_sigma(self, sigma)
7450 
7451  def get_sigma(self):
7452  r"""get_sigma(NormalMover self) -> IMP::Float"""
7453  return _IMP_core.NormalMover_get_sigma(self)
7454 
7455  def get_version_info(self):
7456  r"""get_version_info(NormalMover self) -> VersionInfo"""
7457  return _IMP_core.NormalMover_get_version_info(self)
7458  __swig_destroy__ = _IMP_core.delete_NormalMover
7459 
7460  def __str__(self):
7461  r"""__str__(NormalMover self) -> std::string"""
7462  return _IMP_core.NormalMover___str__(self)
7463 
7464  def __repr__(self):
7465  r"""__repr__(NormalMover self) -> std::string"""
7466  return _IMP_core.NormalMover___repr__(self)
7467 
7468  @staticmethod
7469  def get_from(o):
7470  return _object_cast_to_NormalMover(o)
7471 
7472 
7473  def _get_as_binary(self):
7474  r"""_get_as_binary(NormalMover self) -> PyObject *"""
7475  return _IMP_core.NormalMover__get_as_binary(self)
7476 
7477  def _set_from_binary(self, p):
7478  r"""_set_from_binary(NormalMover self, PyObject * p)"""
7479  return _IMP_core.NormalMover__set_from_binary(self, p)
7480 
7481  def __getstate__(self):
7482  p = self._get_as_binary()
7483  if len(self.__dict__) > 1:
7484  d = self.__dict__.copy()
7485  del d['this']
7486  p = (d, p)
7487  return p
7488 
7489  def __setstate__(self, p):
7490  if not hasattr(self, 'this'):
7491  self.__init__()
7492  if isinstance(p, tuple):
7493  d, p = p
7494  self.__dict__.update(d)
7495  return self._set_from_binary(p)
7496 
7497 
7498 # Register NormalMover in _IMP_core:
7499 _IMP_core.NormalMover_swigregister(NormalMover)
7500 class OpenCubicSpline(_OpenCubicSplineBase):
7501  r"""Proxy of C++ IMP::core::OpenCubicSpline class."""
7502 
7503  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7504 
7505  def __init__(self, values, minrange, spacing, extend=False):
7506  r"""__init__(OpenCubicSpline self, IMP::Floats const & values, IMP::Float minrange, IMP::Float spacing, bool extend=False) -> OpenCubicSpline"""
7507  _IMP_core.OpenCubicSpline_swiginit(self, _IMP_core.new_OpenCubicSpline(values, minrange, spacing, extend))
7508 
7509  def __str__(self):
7510  r"""__str__(OpenCubicSpline self) -> std::string"""
7511  return _IMP_core.OpenCubicSpline___str__(self)
7512 
7513  def __repr__(self):
7514  r"""__repr__(OpenCubicSpline self) -> std::string"""
7515  return _IMP_core.OpenCubicSpline___repr__(self)
7516 
7517  @staticmethod
7518  def get_from(o):
7519  return _object_cast_to_OpenCubicSpline(o)
7520 
7521  __swig_destroy__ = _IMP_core.delete_OpenCubicSpline
7522 
7523 # Register OpenCubicSpline in _IMP_core:
7524 _IMP_core.OpenCubicSpline_swigregister(OpenCubicSpline)
7525 class QuadraticClosePairsFinder(ClosePairsFinder):
7526  r"""Proxy of C++ IMP::core::QuadraticClosePairsFinder class."""
7527 
7528  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7529 
7530  def __init__(self):
7531  r"""__init__(QuadraticClosePairsFinder self) -> QuadraticClosePairsFinder"""
7532  _IMP_core.QuadraticClosePairsFinder_swiginit(self, _IMP_core.new_QuadraticClosePairsFinder())
7533 
7534  def get_are_close_and_filtered(self, *args):
7535  r"""
7536  get_are_close_and_filtered(QuadraticClosePairsFinder self, Particle a, Particle b) -> bool
7537  get_are_close_and_filtered(QuadraticClosePairsFinder self, Model m, ParticleIndex a, ParticleIndex b) -> bool
7538  """
7539  return _IMP_core.QuadraticClosePairsFinder_get_are_close_and_filtered(self, *args)
7540 
7541  def get_close_pairs(self, *args):
7542  r"""
7543  get_close_pairs(QuadraticClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
7544  get_close_pairs(QuadraticClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
7545  get_close_pairs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
7546  get_close_pairs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
7547  """
7548  return _IMP_core.QuadraticClosePairsFinder_get_close_pairs(self, *args)
7549 
7550  def do_get_inputs(self, m, pis):
7551  r"""do_get_inputs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7552  return _IMP_core.QuadraticClosePairsFinder_do_get_inputs(self, m, pis)
7553 
7554  def get_version_info(self):
7555  r"""get_version_info(QuadraticClosePairsFinder self) -> VersionInfo"""
7556  return _IMP_core.QuadraticClosePairsFinder_get_version_info(self)
7557  __swig_destroy__ = _IMP_core.delete_QuadraticClosePairsFinder
7558 
7559  def __str__(self):
7560  r"""__str__(QuadraticClosePairsFinder self) -> std::string"""
7561  return _IMP_core.QuadraticClosePairsFinder___str__(self)
7562 
7563  def __repr__(self):
7564  r"""__repr__(QuadraticClosePairsFinder self) -> std::string"""
7565  return _IMP_core.QuadraticClosePairsFinder___repr__(self)
7566 
7567  @staticmethod
7568  def get_from(o):
7569  return _object_cast_to_QuadraticClosePairsFinder(o)
7570 
7571 
7572 # Register QuadraticClosePairsFinder in _IMP_core:
7573 _IMP_core.QuadraticClosePairsFinder_swigregister(QuadraticClosePairsFinder)
7574 class RefinedPairsPairScore(IMP.PairScore):
7575  r"""Proxy of C++ IMP::core::RefinedPairsPairScore class."""
7576 
7577  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7578 
7579  def __init__(self, r, f):
7580  r"""__init__(RefinedPairsPairScore self, Refiner r, PairScore f) -> RefinedPairsPairScore"""
7581  _IMP_core.RefinedPairsPairScore_swiginit(self, _IMP_core.new_RefinedPairsPairScore(r, f))
7582 
7583  def do_get_inputs(self, m, pis):
7584  r"""do_get_inputs(RefinedPairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7585  return _IMP_core.RefinedPairsPairScore_do_get_inputs(self, m, pis)
7586 
7587  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7588  r"""evaluate_indexes(RefinedPairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
7589  return _IMP_core.RefinedPairsPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7590 
7591  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7592  r"""evaluate_indexes_scores(RefinedPairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
7593  return _IMP_core.RefinedPairsPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7594 
7595  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7596  r"""evaluate_indexes_delta(RefinedPairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
7597  return _IMP_core.RefinedPairsPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7598 
7599  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
7600  r"""evaluate_if_good_indexes(RefinedPairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
7601  return _IMP_core.RefinedPairsPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
7602 
7603  def get_version_info(self):
7604  r"""get_version_info(RefinedPairsPairScore self) -> VersionInfo"""
7605  return _IMP_core.RefinedPairsPairScore_get_version_info(self)
7606  __swig_destroy__ = _IMP_core.delete_RefinedPairsPairScore
7607 
7608  def __str__(self):
7609  r"""__str__(RefinedPairsPairScore self) -> std::string"""
7610  return _IMP_core.RefinedPairsPairScore___str__(self)
7611 
7612  def __repr__(self):
7613  r"""__repr__(RefinedPairsPairScore self) -> std::string"""
7614  return _IMP_core.RefinedPairsPairScore___repr__(self)
7615 
7616  @staticmethod
7617  def get_from(o):
7618  return _object_cast_to_RefinedPairsPairScore(o)
7619 
7620 
7621 # Register RefinedPairsPairScore in _IMP_core:
7622 _IMP_core.RefinedPairsPairScore_swigregister(RefinedPairsPairScore)
7623 class RigidBody(XYZ):
7624  r"""Proxy of C++ IMP::core::RigidBody class."""
7625 
7626  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7627 
7628  def get_rigid_members(self):
7629  r"""get_rigid_members(RigidBody self) -> IMP::core::RigidMembers"""
7630  return _IMP_core.RigidBody_get_rigid_members(self)
7631 
7632  @staticmethod
7633  def get_rotation_keys():
7634  r"""get_rotation_keys() -> IMP::FloatKeys"""
7635  return _IMP_core.RigidBody_get_rotation_keys()
7636 
7637  def get_member_particle_indexes(self):
7638  r"""get_member_particle_indexes(RigidBody self) -> IMP::ParticleIndexes const &"""
7639  return _IMP_core.RigidBody_get_member_particle_indexes(self)
7640 
7641  def get_body_member_particle_indexes(self):
7642  r"""get_body_member_particle_indexes(RigidBody self) -> IMP::ParticleIndexes const &"""
7643  return _IMP_core.RigidBody_get_body_member_particle_indexes(self)
7644 
7645  def get_member_indexes(self):
7646  r"""get_member_indexes(RigidBody self) -> IMP::ParticleIndexes"""
7647  return _IMP_core.RigidBody_get_member_indexes(self)
7648 
7649  def show(self, *args):
7650  r"""show(RigidBody self, _ostream out=std::cout)"""
7651  return _IMP_core.RigidBody_show(self, *args)
7652 
7653  @staticmethod
7654  def setup_particle(*args):
7655  r"""
7656  setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor ps) -> RigidBody
7657  setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor ps) -> RigidBody
7658  setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf) -> RigidBody
7659  setup_particle(_ParticleAdaptor pa, ReferenceFrame3D rf) -> RigidBody
7660  """
7661  return _IMP_core.RigidBody_setup_particle(*args)
7662 
7663  @staticmethod
7664  def teardown_particle(rb):
7665  r"""teardown_particle(RigidBody rb)"""
7666  return _IMP_core.RigidBody_teardown_particle(rb)
7667 
7668  def __init__(self, *args):
7669  r"""
7670  __init__(RigidBody self) -> RigidBody
7671  __init__(RigidBody self, Model m, ParticleIndex id) -> RigidBody
7672  __init__(RigidBody self, _ParticleAdaptor d) -> RigidBody
7673  __init__(RigidBody self, RigidBody arg2) -> RigidBody
7674  """
7675  _IMP_core.RigidBody_swiginit(self, _IMP_core.new_RigidBody(*args))
7676  __swig_destroy__ = _IMP_core.delete_RigidBody
7677 
7678  @staticmethod
7679  def get_is_setup(*args):
7680  r"""
7681  get_is_setup(_ParticleAdaptor p) -> bool
7682  get_is_setup(Model m, ParticleIndex pi) -> bool
7683  """
7684  return _IMP_core.RigidBody_get_is_setup(*args)
7685 
7686  def get_coordinates(self):
7687  r"""get_coordinates(RigidBody self) -> Vector3D"""
7688  return _IMP_core.RigidBody_get_coordinates(self)
7689 
7690  def get_rotation(self):
7691  r"""get_rotation(RigidBody self) -> Rotation3D"""
7692  return _IMP_core.RigidBody_get_rotation(self)
7693 
7694  def get_reference_frame(self):
7695  r"""get_reference_frame(RigidBody self) -> ReferenceFrame3D"""
7696  return _IMP_core.RigidBody_get_reference_frame(self)
7697 
7698  def set_reference_frame(self, tr):
7699  r"""set_reference_frame(RigidBody self, ReferenceFrame3D tr)"""
7700  return _IMP_core.RigidBody_set_reference_frame(self, tr)
7701 
7702  def set_reference_frame_lazy(self, tr):
7703  r"""set_reference_frame_lazy(RigidBody self, ReferenceFrame3D tr)"""
7704  return _IMP_core.RigidBody_set_reference_frame_lazy(self, tr)
7705 
7706  def set_reference_frame_from_members(self, members):
7707  r"""set_reference_frame_from_members(RigidBody self, IMP::ParticleIndexes const & members)"""
7708  return _IMP_core.RigidBody_set_reference_frame_from_members(self, members)
7709 
7710  def pull_back_members_adjoints(self, da):
7711  r"""pull_back_members_adjoints(RigidBody self, DerivativeAccumulator da)"""
7712  return _IMP_core.RigidBody_pull_back_members_adjoints(self, da)
7713 
7714  def pull_back_member_adjoints(self, pi, da):
7715  r"""pull_back_member_adjoints(RigidBody self, ParticleIndex pi, DerivativeAccumulator da)"""
7716  return _IMP_core.RigidBody_pull_back_member_adjoints(self, pi, da)
7717 
7718  def pull_back_body_member_adjoints(self, pi, da):
7719  r"""pull_back_body_member_adjoints(RigidBody self, ParticleIndex pi, DerivativeAccumulator da)"""
7720  return _IMP_core.RigidBody_pull_back_body_member_adjoints(self, pi, da)
7721 
7722  def add_to_derivatives(self, *args):
7723  r"""
7724  add_to_derivatives(RigidBody self, Vector3D local_derivative, Vector3D local_location, DerivativeAccumulator da)
7725  add_to_derivatives(RigidBody self, Vector3D local_derivative, Vector3D global_derivative, Vector3D local_location, Rotation3D rot_local_to_global, DerivativeAccumulator da)
7726  """
7727  return _IMP_core.RigidBody_add_to_derivatives(self, *args)
7728 
7729  def add_to_rotational_derivatives(self, *args):
7730  r"""
7731  add_to_rotational_derivatives(RigidBody self, Vector4D other_qderiv, Rotation3D rot_other_to_local, Rotation3D rot_local_to_global, DerivativeAccumulator da)
7732  add_to_rotational_derivatives(RigidBody self, Vector4D qderiv, DerivativeAccumulator da)
7733  """
7734  return _IMP_core.RigidBody_add_to_rotational_derivatives(self, *args)
7735 
7736  def add_to_torque(self, torque_local, da):
7737  r"""add_to_torque(RigidBody self, Vector3D torque_local, DerivativeAccumulator da)"""
7738  return _IMP_core.RigidBody_add_to_torque(self, torque_local, da)
7739 
7740  def get_torque(self):
7741  r"""get_torque(RigidBody self) -> Vector3D"""
7742  return _IMP_core.RigidBody_get_torque(self)
7743 
7744  def get_coordinates_are_optimized(self):
7745  r"""get_coordinates_are_optimized(RigidBody self) -> bool"""
7746  return _IMP_core.RigidBody_get_coordinates_are_optimized(self)
7747 
7748  def set_coordinates_are_optimized(self, tf):
7749  r"""set_coordinates_are_optimized(RigidBody self, bool tf)"""
7750  return _IMP_core.RigidBody_set_coordinates_are_optimized(self, tf)
7751 
7752  def normalize_rotation(self):
7753  r"""normalize_rotation(RigidBody self)"""
7754  return _IMP_core.RigidBody_normalize_rotation(self)
7755 
7756  def update_members(self):
7757  r"""update_members(RigidBody self)"""
7758  return _IMP_core.RigidBody_update_members(self)
7759 
7760  def get_rotational_derivatives(self):
7761  r"""get_rotational_derivatives(RigidBody self) -> Vector4D"""
7762  return _IMP_core.RigidBody_get_rotational_derivatives(self)
7763 
7764  def get_number_of_members(self):
7765  r"""get_number_of_members(RigidBody self) -> unsigned int"""
7766  return _IMP_core.RigidBody_get_number_of_members(self)
7767 
7768  def get_member(self, i):
7769  r"""get_member(RigidBody self, unsigned int i) -> RigidBodyMember"""
7770  return _IMP_core.RigidBody_get_member(self, i)
7771 
7772  def add_member(self, p):
7773  r"""add_member(RigidBody self, _ParticleIndexAdaptor p)"""
7774  return _IMP_core.RigidBody_add_member(self, p)
7775 
7776  def add_non_rigid_member(self, p):
7777  r"""add_non_rigid_member(RigidBody self, _ParticleIndexAdaptor p)"""
7778  return _IMP_core.RigidBody_add_non_rigid_member(self, p)
7779 
7780  def set_is_rigid_member(self, pi, tf):
7781  r"""set_is_rigid_member(RigidBody self, ParticleIndex pi, bool tf)"""
7782  return _IMP_core.RigidBody_set_is_rigid_member(self, pi, tf)
7783 
7784  def remove_member(self, p):
7785  r"""remove_member(RigidBody self, _ParticleIndexAdaptor p)"""
7786  return _IMP_core.RigidBody_remove_member(self, p)
7787 
7788  def add_attribute(self, *args):
7789  r"""
7790  add_attribute(RigidBody self, FloatKey k, IMP::Float v, bool opt)
7791  add_attribute(RigidBody self, FloatKey a0, IMP::Float a1)
7792  add_attribute(RigidBody self, IntKey a0, IMP::Int a1)
7793  add_attribute(RigidBody self, FloatsKey a0, IMP::Floats a1)
7794  add_attribute(RigidBody self, IntsKey a0, IMP::Ints a1)
7795  add_attribute(RigidBody self, StringKey a0, IMP::String a1)
7796  add_attribute(RigidBody self, ParticleIndexKey a0, Particle a1)
7797  add_attribute(RigidBody self, ObjectKey a0, Object a1)
7798  add_attribute(RigidBody self, SparseFloatKey a0, IMP::Float a1)
7799  add_attribute(RigidBody self, SparseIntKey a0, IMP::Int a1)
7800  add_attribute(RigidBody self, SparseStringKey a0, IMP::String a1)
7801  add_attribute(RigidBody self, SparseParticleIndexKey a0, ParticleIndex a1)
7802  """
7803  return _IMP_core.RigidBody_add_attribute(self, *args)
7804 
7805  def get_value(self, *args):
7806  r"""
7807  get_value(RigidBody self, FloatKey a0) -> IMP::Float
7808  get_value(RigidBody self, IntKey a0) -> IMP::Int
7809  get_value(RigidBody self, FloatsKey a0) -> IMP::Floats
7810  get_value(RigidBody self, IntsKey a0) -> IMP::Ints
7811  get_value(RigidBody self, StringKey a0) -> IMP::String
7812  get_value(RigidBody self, ParticleIndexKey a0) -> Particle
7813  get_value(RigidBody self, ObjectKey a0) -> Object
7814  get_value(RigidBody self, SparseFloatKey a0) -> IMP::Float
7815  get_value(RigidBody self, SparseIntKey a0) -> IMP::Int
7816  get_value(RigidBody self, SparseStringKey a0) -> IMP::String
7817  get_value(RigidBody self, SparseParticleIndexKey a0) -> ParticleIndex
7818  """
7819  return _IMP_core.RigidBody_get_value(self, *args)
7820 
7821  def set_value(self, *args):
7822  r"""
7823  set_value(RigidBody self, FloatKey a0, IMP::Float a1)
7824  set_value(RigidBody self, IntKey a0, IMP::Int a1)
7825  set_value(RigidBody self, FloatsKey a0, IMP::Floats a1)
7826  set_value(RigidBody self, IntsKey a0, IMP::Ints a1)
7827  set_value(RigidBody self, StringKey a0, IMP::String a1)
7828  set_value(RigidBody self, ParticleIndexKey a0, Particle a1)
7829  set_value(RigidBody self, ObjectKey a0, Object a1)
7830  set_value(RigidBody self, SparseFloatKey a0, IMP::Float a1)
7831  set_value(RigidBody self, SparseIntKey a0, IMP::Int a1)
7832  set_value(RigidBody self, SparseStringKey a0, IMP::String a1)
7833  set_value(RigidBody self, SparseParticleIndexKey a0, ParticleIndex a1)
7834  """
7835  return _IMP_core.RigidBody_set_value(self, *args)
7836 
7837  def remove_attribute(self, *args):
7838  r"""
7839  remove_attribute(RigidBody self, FloatKey a0)
7840  remove_attribute(RigidBody self, IntKey a0)
7841  remove_attribute(RigidBody self, FloatsKey a0)
7842  remove_attribute(RigidBody self, IntsKey a0)
7843  remove_attribute(RigidBody self, StringKey a0)
7844  remove_attribute(RigidBody self, ParticleIndexKey a0)
7845  remove_attribute(RigidBody self, ObjectKey a0)
7846  remove_attribute(RigidBody self, SparseFloatKey a0)
7847  remove_attribute(RigidBody self, SparseIntKey a0)
7848  remove_attribute(RigidBody self, SparseStringKey a0)
7849  remove_attribute(RigidBody self, SparseParticleIndexKey a0)
7850  """
7851  return _IMP_core.RigidBody_remove_attribute(self, *args)
7852 
7853  def has_attribute(self, *args):
7854  r"""
7855  has_attribute(RigidBody self, FloatKey a0) -> bool
7856  has_attribute(RigidBody self, IntKey a0) -> bool
7857  has_attribute(RigidBody self, FloatsKey a0) -> bool
7858  has_attribute(RigidBody self, IntsKey a0) -> bool
7859  has_attribute(RigidBody self, StringKey a0) -> bool
7860  has_attribute(RigidBody self, ParticleIndexKey a0) -> bool
7861  has_attribute(RigidBody self, ObjectKey a0) -> bool
7862  has_attribute(RigidBody self, SparseFloatKey a0) -> bool
7863  has_attribute(RigidBody self, SparseIntKey a0) -> bool
7864  has_attribute(RigidBody self, SparseStringKey a0) -> bool
7865  has_attribute(RigidBody self, SparseParticleIndexKey a0) -> bool
7866  """
7867  return _IMP_core.RigidBody_has_attribute(self, *args)
7868 
7869  def get_derivative(self, a0):
7870  r"""get_derivative(RigidBody self, FloatKey a0) -> double"""
7871  return _IMP_core.RigidBody_get_derivative(self, a0)
7872 
7873  def get_name(self):
7874  r"""get_name(RigidBody self) -> std::string"""
7875  return _IMP_core.RigidBody_get_name(self)
7876 
7877  def clear_caches(self):
7878  r"""clear_caches(RigidBody self)"""
7879  return _IMP_core.RigidBody_clear_caches(self)
7880 
7881  def set_name(self, a0):
7882  r"""set_name(RigidBody self, std::string a0)"""
7883  return _IMP_core.RigidBody_set_name(self, a0)
7884 
7885  def set_check_level(self, a0):
7886  r"""set_check_level(RigidBody self, IMP::CheckLevel a0)"""
7887  return _IMP_core.RigidBody_set_check_level(self, a0)
7888 
7889  def add_to_derivative(self, a0, a1, a2):
7890  r"""add_to_derivative(RigidBody self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
7891  return _IMP_core.RigidBody_add_to_derivative(self, a0, a1, a2)
7892 
7893  def set_is_optimized(self, a0, a1):
7894  r"""set_is_optimized(RigidBody self, FloatKey a0, bool a1)"""
7895  return _IMP_core.RigidBody_set_is_optimized(self, a0, a1)
7896 
7897  def get_is_optimized(self, a0):
7898  r"""get_is_optimized(RigidBody self, FloatKey a0) -> bool"""
7899  return _IMP_core.RigidBody_get_is_optimized(self, a0)
7900 
7901  def get_check_level(self):
7902  r"""get_check_level(RigidBody self) -> IMP::CheckLevel"""
7903  return _IMP_core.RigidBody_get_check_level(self)
7904 
7905  def __eq__(self, *args):
7906  r"""
7907  __eq__(RigidBody self, RigidBody o) -> bool
7908  __eq__(RigidBody self, Particle d) -> bool
7909  """
7910  return _IMP_core.RigidBody___eq__(self, *args)
7911 
7912  def __ne__(self, *args):
7913  r"""
7914  __ne__(RigidBody self, RigidBody o) -> bool
7915  __ne__(RigidBody self, Particle d) -> bool
7916  """
7917  return _IMP_core.RigidBody___ne__(self, *args)
7918 
7919  def __le__(self, *args):
7920  r"""
7921  __le__(RigidBody self, RigidBody o) -> bool
7922  __le__(RigidBody self, Particle d) -> bool
7923  """
7924  return _IMP_core.RigidBody___le__(self, *args)
7925 
7926  def __lt__(self, *args):
7927  r"""
7928  __lt__(RigidBody self, RigidBody o) -> bool
7929  __lt__(RigidBody self, Particle d) -> bool
7930  """
7931  return _IMP_core.RigidBody___lt__(self, *args)
7932 
7933  def __ge__(self, *args):
7934  r"""
7935  __ge__(RigidBody self, RigidBody o) -> bool
7936  __ge__(RigidBody self, Particle d) -> bool
7937  """
7938  return _IMP_core.RigidBody___ge__(self, *args)
7939 
7940  def __gt__(self, *args):
7941  r"""
7942  __gt__(RigidBody self, RigidBody o) -> bool
7943  __gt__(RigidBody self, Particle d) -> bool
7944  """
7945  return _IMP_core.RigidBody___gt__(self, *args)
7946 
7947  def __hash__(self):
7948  r"""__hash__(RigidBody self) -> std::size_t"""
7949  return _IMP_core.RigidBody___hash__(self)
7950 
7951  def __str__(self):
7952  r"""__str__(RigidBody self) -> std::string"""
7953  return _IMP_core.RigidBody___str__(self)
7954 
7955  def __repr__(self):
7956  r"""__repr__(RigidBody self) -> std::string"""
7957  return _IMP_core.RigidBody___repr__(self)
7958 
7959  def _get_as_binary(self):
7960  r"""_get_as_binary(RigidBody self) -> PyObject *"""
7961  return _IMP_core.RigidBody__get_as_binary(self)
7962 
7963  def _set_from_binary(self, p):
7964  r"""_set_from_binary(RigidBody self, PyObject * p)"""
7965  return _IMP_core.RigidBody__set_from_binary(self, p)
7966 
7967  def __getstate__(self):
7968  p = self._get_as_binary()
7969  if len(self.__dict__) > 1:
7970  d = self.__dict__.copy()
7971  del d['this']
7972  p = (d, p)
7973  return p
7974 
7975  def __setstate__(self, p):
7976  if not hasattr(self, 'this'):
7977  self.__init__()
7978  if isinstance(p, tuple):
7979  d, p = p
7980  self.__dict__.update(d)
7981  return self._set_from_binary(p)
7982 
7983 
7984 # Register RigidBody in _IMP_core:
7985 _IMP_core.RigidBody_swigregister(RigidBody)
7986 
7988  r"""add_rigid_body_cache_key(ObjectKey k)"""
7989  return _IMP_core.add_rigid_body_cache_key(k)
7990 class RigidBodyMember(XYZ):
7991  r"""Proxy of C++ IMP::core::RigidBodyMember class."""
7992 
7993  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7994 
7995  def show(self, *args):
7996  r"""show(RigidBodyMember self, _ostream out=std::cout)"""
7997  return _IMP_core.RigidBodyMember_show(self, *args)
7998 
7999  def get_rigid_body(self):
8000  r"""get_rigid_body(RigidBodyMember self) -> RigidBody"""
8001  return _IMP_core.RigidBodyMember_get_rigid_body(self)
8002 
8003  def get_internal_coordinates(self):
8004  r"""get_internal_coordinates(RigidBodyMember self) -> Vector3D"""
8005  return _IMP_core.RigidBodyMember_get_internal_coordinates(self)
8006 
8007  def set_internal_coordinates(self, v):
8008  r"""set_internal_coordinates(RigidBodyMember self, Vector3D v)"""
8009  return _IMP_core.RigidBodyMember_set_internal_coordinates(self, v)
8010 
8011  def set_internal_transformation(self, v):
8012  r"""set_internal_transformation(RigidBodyMember self, Transformation3D v)"""
8013  return _IMP_core.RigidBodyMember_set_internal_transformation(self, v)
8014 
8015  def get_internal_transformation(self):
8016  r"""get_internal_transformation(RigidBodyMember self) -> Transformation3D"""
8017  return _IMP_core.RigidBodyMember_get_internal_transformation(self)
8018  __swig_destroy__ = _IMP_core.delete_RigidBodyMember
8019 
8020  def set_coordinates(self, *args):
8021  r"""
8022  set_coordinates(RigidBodyMember self, Vector3D center)
8023  set_coordinates(RigidBodyMember self, Transformation3D tr)
8024  """
8025  return _IMP_core.RigidBodyMember_set_coordinates(self, *args)
8026 
8027  def __init__(self, *args):
8028  r"""
8029  __init__(RigidBodyMember self) -> RigidBodyMember
8030  __init__(RigidBodyMember self, Model m, ParticleIndex id) -> RigidBodyMember
8031  __init__(RigidBodyMember self, _ParticleAdaptor d) -> RigidBodyMember
8032  __init__(RigidBodyMember self, RigidBodyMember arg2) -> RigidBodyMember
8033  """
8034  _IMP_core.RigidBodyMember_swiginit(self, _IMP_core.new_RigidBodyMember(*args))
8035 
8036  @staticmethod
8037  def get_is_setup(*args):
8038  r"""
8039  get_is_setup(_ParticleAdaptor p) -> bool
8040  get_is_setup(Model m, _ParticleIndexAdaptor p) -> bool
8041  """
8042  return _IMP_core.RigidBodyMember_get_is_setup(*args)
8043 
8044  @staticmethod
8045  def get_internal_coordinate_keys():
8046  r"""get_internal_coordinate_keys() -> IMP::FloatKeys"""
8047  return _IMP_core.RigidBodyMember_get_internal_coordinate_keys()
8048 
8049  @staticmethod
8050  def get_internal_rotation_keys():
8051  r"""get_internal_rotation_keys() -> IMP::FloatKeys"""
8052  return _IMP_core.RigidBodyMember_get_internal_rotation_keys()
8053 
8054  def add_attribute(self, *args):
8055  r"""
8056  add_attribute(RigidBodyMember self, FloatKey k, IMP::Float v, bool opt)
8057  add_attribute(RigidBodyMember self, FloatKey a0, IMP::Float a1)
8058  add_attribute(RigidBodyMember self, IntKey a0, IMP::Int a1)
8059  add_attribute(RigidBodyMember self, FloatsKey a0, IMP::Floats a1)
8060  add_attribute(RigidBodyMember self, IntsKey a0, IMP::Ints a1)
8061  add_attribute(RigidBodyMember self, StringKey a0, IMP::String a1)
8062  add_attribute(RigidBodyMember self, ParticleIndexKey a0, Particle a1)
8063  add_attribute(RigidBodyMember self, ObjectKey a0, Object a1)
8064  add_attribute(RigidBodyMember self, SparseFloatKey a0, IMP::Float a1)
8065  add_attribute(RigidBodyMember self, SparseIntKey a0, IMP::Int a1)
8066  add_attribute(RigidBodyMember self, SparseStringKey a0, IMP::String a1)
8067  add_attribute(RigidBodyMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8068  """
8069  return _IMP_core.RigidBodyMember_add_attribute(self, *args)
8070 
8071  def get_value(self, *args):
8072  r"""
8073  get_value(RigidBodyMember self, FloatKey a0) -> IMP::Float
8074  get_value(RigidBodyMember self, IntKey a0) -> IMP::Int
8075  get_value(RigidBodyMember self, FloatsKey a0) -> IMP::Floats
8076  get_value(RigidBodyMember self, IntsKey a0) -> IMP::Ints
8077  get_value(RigidBodyMember self, StringKey a0) -> IMP::String
8078  get_value(RigidBodyMember self, ParticleIndexKey a0) -> Particle
8079  get_value(RigidBodyMember self, ObjectKey a0) -> Object
8080  get_value(RigidBodyMember self, SparseFloatKey a0) -> IMP::Float
8081  get_value(RigidBodyMember self, SparseIntKey a0) -> IMP::Int
8082  get_value(RigidBodyMember self, SparseStringKey a0) -> IMP::String
8083  get_value(RigidBodyMember self, SparseParticleIndexKey a0) -> ParticleIndex
8084  """
8085  return _IMP_core.RigidBodyMember_get_value(self, *args)
8086 
8087  def set_value(self, *args):
8088  r"""
8089  set_value(RigidBodyMember self, FloatKey a0, IMP::Float a1)
8090  set_value(RigidBodyMember self, IntKey a0, IMP::Int a1)
8091  set_value(RigidBodyMember self, FloatsKey a0, IMP::Floats a1)
8092  set_value(RigidBodyMember self, IntsKey a0, IMP::Ints a1)
8093  set_value(RigidBodyMember self, StringKey a0, IMP::String a1)
8094  set_value(RigidBodyMember self, ParticleIndexKey a0, Particle a1)
8095  set_value(RigidBodyMember self, ObjectKey a0, Object a1)
8096  set_value(RigidBodyMember self, SparseFloatKey a0, IMP::Float a1)
8097  set_value(RigidBodyMember self, SparseIntKey a0, IMP::Int a1)
8098  set_value(RigidBodyMember self, SparseStringKey a0, IMP::String a1)
8099  set_value(RigidBodyMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8100  """
8101  return _IMP_core.RigidBodyMember_set_value(self, *args)
8102 
8103  def remove_attribute(self, *args):
8104  r"""
8105  remove_attribute(RigidBodyMember self, FloatKey a0)
8106  remove_attribute(RigidBodyMember self, IntKey a0)
8107  remove_attribute(RigidBodyMember self, FloatsKey a0)
8108  remove_attribute(RigidBodyMember self, IntsKey a0)
8109  remove_attribute(RigidBodyMember self, StringKey a0)
8110  remove_attribute(RigidBodyMember self, ParticleIndexKey a0)
8111  remove_attribute(RigidBodyMember self, ObjectKey a0)
8112  remove_attribute(RigidBodyMember self, SparseFloatKey a0)
8113  remove_attribute(RigidBodyMember self, SparseIntKey a0)
8114  remove_attribute(RigidBodyMember self, SparseStringKey a0)
8115  remove_attribute(RigidBodyMember self, SparseParticleIndexKey a0)
8116  """
8117  return _IMP_core.RigidBodyMember_remove_attribute(self, *args)
8118 
8119  def has_attribute(self, *args):
8120  r"""
8121  has_attribute(RigidBodyMember self, FloatKey a0) -> bool
8122  has_attribute(RigidBodyMember self, IntKey a0) -> bool
8123  has_attribute(RigidBodyMember self, FloatsKey a0) -> bool
8124  has_attribute(RigidBodyMember self, IntsKey a0) -> bool
8125  has_attribute(RigidBodyMember self, StringKey a0) -> bool
8126  has_attribute(RigidBodyMember self, ParticleIndexKey a0) -> bool
8127  has_attribute(RigidBodyMember self, ObjectKey a0) -> bool
8128  has_attribute(RigidBodyMember self, SparseFloatKey a0) -> bool
8129  has_attribute(RigidBodyMember self, SparseIntKey a0) -> bool
8130  has_attribute(RigidBodyMember self, SparseStringKey a0) -> bool
8131  has_attribute(RigidBodyMember self, SparseParticleIndexKey a0) -> bool
8132  """
8133  return _IMP_core.RigidBodyMember_has_attribute(self, *args)
8134 
8135  def get_derivative(self, a0):
8136  r"""get_derivative(RigidBodyMember self, FloatKey a0) -> double"""
8137  return _IMP_core.RigidBodyMember_get_derivative(self, a0)
8138 
8139  def get_name(self):
8140  r"""get_name(RigidBodyMember self) -> std::string"""
8141  return _IMP_core.RigidBodyMember_get_name(self)
8142 
8143  def clear_caches(self):
8144  r"""clear_caches(RigidBodyMember self)"""
8145  return _IMP_core.RigidBodyMember_clear_caches(self)
8146 
8147  def set_name(self, a0):
8148  r"""set_name(RigidBodyMember self, std::string a0)"""
8149  return _IMP_core.RigidBodyMember_set_name(self, a0)
8150 
8151  def set_check_level(self, a0):
8152  r"""set_check_level(RigidBodyMember self, IMP::CheckLevel a0)"""
8153  return _IMP_core.RigidBodyMember_set_check_level(self, a0)
8154 
8155  def add_to_derivative(self, a0, a1, a2):
8156  r"""add_to_derivative(RigidBodyMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8157  return _IMP_core.RigidBodyMember_add_to_derivative(self, a0, a1, a2)
8158 
8159  def set_is_optimized(self, a0, a1):
8160  r"""set_is_optimized(RigidBodyMember self, FloatKey a0, bool a1)"""
8161  return _IMP_core.RigidBodyMember_set_is_optimized(self, a0, a1)
8162 
8163  def get_is_optimized(self, a0):
8164  r"""get_is_optimized(RigidBodyMember self, FloatKey a0) -> bool"""
8165  return _IMP_core.RigidBodyMember_get_is_optimized(self, a0)
8166 
8167  def get_check_level(self):
8168  r"""get_check_level(RigidBodyMember self) -> IMP::CheckLevel"""
8169  return _IMP_core.RigidBodyMember_get_check_level(self)
8170 
8171  def __eq__(self, *args):
8172  r"""
8173  __eq__(RigidBodyMember self, RigidBodyMember o) -> bool
8174  __eq__(RigidBodyMember self, Particle d) -> bool
8175  """
8176  return _IMP_core.RigidBodyMember___eq__(self, *args)
8177 
8178  def __ne__(self, *args):
8179  r"""
8180  __ne__(RigidBodyMember self, RigidBodyMember o) -> bool
8181  __ne__(RigidBodyMember self, Particle d) -> bool
8182  """
8183  return _IMP_core.RigidBodyMember___ne__(self, *args)
8184 
8185  def __le__(self, *args):
8186  r"""
8187  __le__(RigidBodyMember self, RigidBodyMember o) -> bool
8188  __le__(RigidBodyMember self, Particle d) -> bool
8189  """
8190  return _IMP_core.RigidBodyMember___le__(self, *args)
8191 
8192  def __lt__(self, *args):
8193  r"""
8194  __lt__(RigidBodyMember self, RigidBodyMember o) -> bool
8195  __lt__(RigidBodyMember self, Particle d) -> bool
8196  """
8197  return _IMP_core.RigidBodyMember___lt__(self, *args)
8198 
8199  def __ge__(self, *args):
8200  r"""
8201  __ge__(RigidBodyMember self, RigidBodyMember o) -> bool
8202  __ge__(RigidBodyMember self, Particle d) -> bool
8203  """
8204  return _IMP_core.RigidBodyMember___ge__(self, *args)
8205 
8206  def __gt__(self, *args):
8207  r"""
8208  __gt__(RigidBodyMember self, RigidBodyMember o) -> bool
8209  __gt__(RigidBodyMember self, Particle d) -> bool
8210  """
8211  return _IMP_core.RigidBodyMember___gt__(self, *args)
8212 
8213  def __hash__(self):
8214  r"""__hash__(RigidBodyMember self) -> std::size_t"""
8215  return _IMP_core.RigidBodyMember___hash__(self)
8216 
8217  def __str__(self):
8218  r"""__str__(RigidBodyMember self) -> std::string"""
8219  return _IMP_core.RigidBodyMember___str__(self)
8220 
8221  def __repr__(self):
8222  r"""__repr__(RigidBodyMember self) -> std::string"""
8223  return _IMP_core.RigidBodyMember___repr__(self)
8224 
8225  def _get_as_binary(self):
8226  r"""_get_as_binary(RigidBodyMember self) -> PyObject *"""
8227  return _IMP_core.RigidBodyMember__get_as_binary(self)
8228 
8229  def _set_from_binary(self, p):
8230  r"""_set_from_binary(RigidBodyMember self, PyObject * p)"""
8231  return _IMP_core.RigidBodyMember__set_from_binary(self, p)
8232 
8233  def __getstate__(self):
8234  p = self._get_as_binary()
8235  if len(self.__dict__) > 1:
8236  d = self.__dict__.copy()
8237  del d['this']
8238  p = (d, p)
8239  return p
8240 
8241  def __setstate__(self, p):
8242  if not hasattr(self, 'this'):
8243  self.__init__()
8244  if isinstance(p, tuple):
8245  d, p = p
8246  self.__dict__.update(d)
8247  return self._set_from_binary(p)
8248 
8249 
8250 # Register RigidBodyMember in _IMP_core:
8251 _IMP_core.RigidBodyMember_swigregister(RigidBodyMember)
8252 class RigidMember(RigidBodyMember):
8253  r"""Proxy of C++ IMP::core::RigidMember class."""
8254 
8255  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8256 
8257  def show(self, *args):
8258  r"""show(RigidMember self, _ostream out=std::cout)"""
8259  return _IMP_core.RigidMember_show(self, *args)
8260 
8261  def __init__(self, *args):
8262  r"""
8263  __init__(RigidMember self) -> RigidMember
8264  __init__(RigidMember self, Model m, ParticleIndex id) -> RigidMember
8265  __init__(RigidMember self, _ParticleAdaptor d) -> RigidMember
8266  __init__(RigidMember self, RigidMember arg2) -> RigidMember
8267  """
8268  _IMP_core.RigidMember_swiginit(self, _IMP_core.new_RigidMember(*args))
8269  __swig_destroy__ = _IMP_core.delete_RigidMember
8270 
8271  @staticmethod
8272  def get_is_setup(*args):
8273  r"""
8274  get_is_setup(_ParticleAdaptor p) -> bool
8275  get_is_setup(Model m, _ParticleIndexAdaptor p) -> bool
8276  """
8277  return _IMP_core.RigidMember_get_is_setup(*args)
8278 
8279  def add_attribute(self, *args):
8280  r"""
8281  add_attribute(RigidMember self, FloatKey k, IMP::Float v, bool opt)
8282  add_attribute(RigidMember self, FloatKey a0, IMP::Float a1)
8283  add_attribute(RigidMember self, IntKey a0, IMP::Int a1)
8284  add_attribute(RigidMember self, FloatsKey a0, IMP::Floats a1)
8285  add_attribute(RigidMember self, IntsKey a0, IMP::Ints a1)
8286  add_attribute(RigidMember self, StringKey a0, IMP::String a1)
8287  add_attribute(RigidMember self, ParticleIndexKey a0, Particle a1)
8288  add_attribute(RigidMember self, ObjectKey a0, Object a1)
8289  add_attribute(RigidMember self, SparseFloatKey a0, IMP::Float a1)
8290  add_attribute(RigidMember self, SparseIntKey a0, IMP::Int a1)
8291  add_attribute(RigidMember self, SparseStringKey a0, IMP::String a1)
8292  add_attribute(RigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8293  """
8294  return _IMP_core.RigidMember_add_attribute(self, *args)
8295 
8296  def get_value(self, *args):
8297  r"""
8298  get_value(RigidMember self, FloatKey a0) -> IMP::Float
8299  get_value(RigidMember self, IntKey a0) -> IMP::Int
8300  get_value(RigidMember self, FloatsKey a0) -> IMP::Floats
8301  get_value(RigidMember self, IntsKey a0) -> IMP::Ints
8302  get_value(RigidMember self, StringKey a0) -> IMP::String
8303  get_value(RigidMember self, ParticleIndexKey a0) -> Particle
8304  get_value(RigidMember self, ObjectKey a0) -> Object
8305  get_value(RigidMember self, SparseFloatKey a0) -> IMP::Float
8306  get_value(RigidMember self, SparseIntKey a0) -> IMP::Int
8307  get_value(RigidMember self, SparseStringKey a0) -> IMP::String
8308  get_value(RigidMember self, SparseParticleIndexKey a0) -> ParticleIndex
8309  """
8310  return _IMP_core.RigidMember_get_value(self, *args)
8311 
8312  def set_value(self, *args):
8313  r"""
8314  set_value(RigidMember self, FloatKey a0, IMP::Float a1)
8315  set_value(RigidMember self, IntKey a0, IMP::Int a1)
8316  set_value(RigidMember self, FloatsKey a0, IMP::Floats a1)
8317  set_value(RigidMember self, IntsKey a0, IMP::Ints a1)
8318  set_value(RigidMember self, StringKey a0, IMP::String a1)
8319  set_value(RigidMember self, ParticleIndexKey a0, Particle a1)
8320  set_value(RigidMember self, ObjectKey a0, Object a1)
8321  set_value(RigidMember self, SparseFloatKey a0, IMP::Float a1)
8322  set_value(RigidMember self, SparseIntKey a0, IMP::Int a1)
8323  set_value(RigidMember self, SparseStringKey a0, IMP::String a1)
8324  set_value(RigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8325  """
8326  return _IMP_core.RigidMember_set_value(self, *args)
8327 
8328  def remove_attribute(self, *args):
8329  r"""
8330  remove_attribute(RigidMember self, FloatKey a0)
8331  remove_attribute(RigidMember self, IntKey a0)
8332  remove_attribute(RigidMember self, FloatsKey a0)
8333  remove_attribute(RigidMember self, IntsKey a0)
8334  remove_attribute(RigidMember self, StringKey a0)
8335  remove_attribute(RigidMember self, ParticleIndexKey a0)
8336  remove_attribute(RigidMember self, ObjectKey a0)
8337  remove_attribute(RigidMember self, SparseFloatKey a0)
8338  remove_attribute(RigidMember self, SparseIntKey a0)
8339  remove_attribute(RigidMember self, SparseStringKey a0)
8340  remove_attribute(RigidMember self, SparseParticleIndexKey a0)
8341  """
8342  return _IMP_core.RigidMember_remove_attribute(self, *args)
8343 
8344  def has_attribute(self, *args):
8345  r"""
8346  has_attribute(RigidMember self, FloatKey a0) -> bool
8347  has_attribute(RigidMember self, IntKey a0) -> bool
8348  has_attribute(RigidMember self, FloatsKey a0) -> bool
8349  has_attribute(RigidMember self, IntsKey a0) -> bool
8350  has_attribute(RigidMember self, StringKey a0) -> bool
8351  has_attribute(RigidMember self, ParticleIndexKey a0) -> bool
8352  has_attribute(RigidMember self, ObjectKey a0) -> bool
8353  has_attribute(RigidMember self, SparseFloatKey a0) -> bool
8354  has_attribute(RigidMember self, SparseIntKey a0) -> bool
8355  has_attribute(RigidMember self, SparseStringKey a0) -> bool
8356  has_attribute(RigidMember self, SparseParticleIndexKey a0) -> bool
8357  """
8358  return _IMP_core.RigidMember_has_attribute(self, *args)
8359 
8360  def get_derivative(self, a0):
8361  r"""get_derivative(RigidMember self, FloatKey a0) -> double"""
8362  return _IMP_core.RigidMember_get_derivative(self, a0)
8363 
8364  def get_name(self):
8365  r"""get_name(RigidMember self) -> std::string"""
8366  return _IMP_core.RigidMember_get_name(self)
8367 
8368  def clear_caches(self):
8369  r"""clear_caches(RigidMember self)"""
8370  return _IMP_core.RigidMember_clear_caches(self)
8371 
8372  def set_name(self, a0):
8373  r"""set_name(RigidMember self, std::string a0)"""
8374  return _IMP_core.RigidMember_set_name(self, a0)
8375 
8376  def set_check_level(self, a0):
8377  r"""set_check_level(RigidMember self, IMP::CheckLevel a0)"""
8378  return _IMP_core.RigidMember_set_check_level(self, a0)
8379 
8380  def add_to_derivative(self, a0, a1, a2):
8381  r"""add_to_derivative(RigidMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8382  return _IMP_core.RigidMember_add_to_derivative(self, a0, a1, a2)
8383 
8384  def set_is_optimized(self, a0, a1):
8385  r"""set_is_optimized(RigidMember self, FloatKey a0, bool a1)"""
8386  return _IMP_core.RigidMember_set_is_optimized(self, a0, a1)
8387 
8388  def get_is_optimized(self, a0):
8389  r"""get_is_optimized(RigidMember self, FloatKey a0) -> bool"""
8390  return _IMP_core.RigidMember_get_is_optimized(self, a0)
8391 
8392  def get_check_level(self):
8393  r"""get_check_level(RigidMember self) -> IMP::CheckLevel"""
8394  return _IMP_core.RigidMember_get_check_level(self)
8395 
8396  def __eq__(self, *args):
8397  r"""
8398  __eq__(RigidMember self, RigidMember o) -> bool
8399  __eq__(RigidMember self, Particle d) -> bool
8400  """
8401  return _IMP_core.RigidMember___eq__(self, *args)
8402 
8403  def __ne__(self, *args):
8404  r"""
8405  __ne__(RigidMember self, RigidMember o) -> bool
8406  __ne__(RigidMember self, Particle d) -> bool
8407  """
8408  return _IMP_core.RigidMember___ne__(self, *args)
8409 
8410  def __le__(self, *args):
8411  r"""
8412  __le__(RigidMember self, RigidMember o) -> bool
8413  __le__(RigidMember self, Particle d) -> bool
8414  """
8415  return _IMP_core.RigidMember___le__(self, *args)
8416 
8417  def __lt__(self, *args):
8418  r"""
8419  __lt__(RigidMember self, RigidMember o) -> bool
8420  __lt__(RigidMember self, Particle d) -> bool
8421  """
8422  return _IMP_core.RigidMember___lt__(self, *args)
8423 
8424  def __ge__(self, *args):
8425  r"""
8426  __ge__(RigidMember self, RigidMember o) -> bool
8427  __ge__(RigidMember self, Particle d) -> bool
8428  """
8429  return _IMP_core.RigidMember___ge__(self, *args)
8430 
8431  def __gt__(self, *args):
8432  r"""
8433  __gt__(RigidMember self, RigidMember o) -> bool
8434  __gt__(RigidMember self, Particle d) -> bool
8435  """
8436  return _IMP_core.RigidMember___gt__(self, *args)
8437 
8438  def __hash__(self):
8439  r"""__hash__(RigidMember self) -> std::size_t"""
8440  return _IMP_core.RigidMember___hash__(self)
8441 
8442  def __str__(self):
8443  r"""__str__(RigidMember self) -> std::string"""
8444  return _IMP_core.RigidMember___str__(self)
8445 
8446  def __repr__(self):
8447  r"""__repr__(RigidMember self) -> std::string"""
8448  return _IMP_core.RigidMember___repr__(self)
8449 
8450  def _get_as_binary(self):
8451  r"""_get_as_binary(RigidMember self) -> PyObject *"""
8452  return _IMP_core.RigidMember__get_as_binary(self)
8453 
8454  def _set_from_binary(self, p):
8455  r"""_set_from_binary(RigidMember self, PyObject * p)"""
8456  return _IMP_core.RigidMember__set_from_binary(self, p)
8457 
8458  def __getstate__(self):
8459  p = self._get_as_binary()
8460  if len(self.__dict__) > 1:
8461  d = self.__dict__.copy()
8462  del d['this']
8463  p = (d, p)
8464  return p
8465 
8466  def __setstate__(self, p):
8467  if not hasattr(self, 'this'):
8468  self.__init__()
8469  if isinstance(p, tuple):
8470  d, p = p
8471  self.__dict__.update(d)
8472  return self._set_from_binary(p)
8473 
8474 
8475 # Register RigidMember in _IMP_core:
8476 _IMP_core.RigidMember_swigregister(RigidMember)
8477 class NonRigidMember(RigidBodyMember):
8478  r"""Proxy of C++ IMP::core::NonRigidMember class."""
8479 
8480  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8481 
8482  def show(self, *args):
8483  r"""show(NonRigidMember self, _ostream out=std::cout)"""
8484  return _IMP_core.NonRigidMember_show(self, *args)
8485 
8486  def __init__(self, *args):
8487  r"""
8488  __init__(NonRigidMember self) -> NonRigidMember
8489  __init__(NonRigidMember self, Model m, ParticleIndex id) -> NonRigidMember
8490  __init__(NonRigidMember self, _ParticleAdaptor d) -> NonRigidMember
8491  __init__(NonRigidMember self, NonRigidMember arg2) -> NonRigidMember
8492  """
8493  _IMP_core.NonRigidMember_swiginit(self, _IMP_core.new_NonRigidMember(*args))
8494  __swig_destroy__ = _IMP_core.delete_NonRigidMember
8495 
8496  @staticmethod
8497  def get_is_setup(*args):
8498  r"""
8499  get_is_setup(_ParticleAdaptor p) -> bool
8500  get_is_setup(Model m, ParticleIndex p) -> bool
8501  """
8502  return _IMP_core.NonRigidMember_get_is_setup(*args)
8503 
8504  def add_to_internal_derivatives(self, deriv_parent, da):
8505  r"""add_to_internal_derivatives(NonRigidMember self, Vector3D deriv_parent, DerivativeAccumulator da)"""
8506  return _IMP_core.NonRigidMember_add_to_internal_derivatives(self, deriv_parent, da)
8507 
8508  def add_to_internal_rotational_derivatives(self, *args):
8509  r"""
8510  add_to_internal_rotational_derivatives(NonRigidMember self, Vector4D local_qderiv, Rotation3D rot_local_to_parent, Rotation3D rot_parent_to_global, DerivativeAccumulator da)
8511  add_to_internal_rotational_derivatives(NonRigidMember self, Vector4D qderiv, DerivativeAccumulator da)
8512  """
8513  return _IMP_core.NonRigidMember_add_to_internal_rotational_derivatives(self, *args)
8514 
8515  def get_internal_derivatives(self):
8516  r"""get_internal_derivatives(NonRigidMember self) -> Vector3D"""
8517  return _IMP_core.NonRigidMember_get_internal_derivatives(self)
8518 
8519  def get_internal_rotational_derivatives(self):
8520  r"""get_internal_rotational_derivatives(NonRigidMember self) -> Vector4D"""
8521  return _IMP_core.NonRigidMember_get_internal_rotational_derivatives(self)
8522 
8523  def add_attribute(self, *args):
8524  r"""
8525  add_attribute(NonRigidMember self, FloatKey k, IMP::Float v, bool opt)
8526  add_attribute(NonRigidMember self, FloatKey a0, IMP::Float a1)
8527  add_attribute(NonRigidMember self, IntKey a0, IMP::Int a1)
8528  add_attribute(NonRigidMember self, FloatsKey a0, IMP::Floats a1)
8529  add_attribute(NonRigidMember self, IntsKey a0, IMP::Ints a1)
8530  add_attribute(NonRigidMember self, StringKey a0, IMP::String a1)
8531  add_attribute(NonRigidMember self, ParticleIndexKey a0, Particle a1)
8532  add_attribute(NonRigidMember self, ObjectKey a0, Object a1)
8533  add_attribute(NonRigidMember self, SparseFloatKey a0, IMP::Float a1)
8534  add_attribute(NonRigidMember self, SparseIntKey a0, IMP::Int a1)
8535  add_attribute(NonRigidMember self, SparseStringKey a0, IMP::String a1)
8536  add_attribute(NonRigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8537  """
8538  return _IMP_core.NonRigidMember_add_attribute(self, *args)
8539 
8540  def get_value(self, *args):
8541  r"""
8542  get_value(NonRigidMember self, FloatKey a0) -> IMP::Float
8543  get_value(NonRigidMember self, IntKey a0) -> IMP::Int
8544  get_value(NonRigidMember self, FloatsKey a0) -> IMP::Floats
8545  get_value(NonRigidMember self, IntsKey a0) -> IMP::Ints
8546  get_value(NonRigidMember self, StringKey a0) -> IMP::String
8547  get_value(NonRigidMember self, ParticleIndexKey a0) -> Particle
8548  get_value(NonRigidMember self, ObjectKey a0) -> Object
8549  get_value(NonRigidMember self, SparseFloatKey a0) -> IMP::Float
8550  get_value(NonRigidMember self, SparseIntKey a0) -> IMP::Int
8551  get_value(NonRigidMember self, SparseStringKey a0) -> IMP::String
8552  get_value(NonRigidMember self, SparseParticleIndexKey a0) -> ParticleIndex
8553  """
8554  return _IMP_core.NonRigidMember_get_value(self, *args)
8555 
8556  def set_value(self, *args):
8557  r"""
8558  set_value(NonRigidMember self, FloatKey a0, IMP::Float a1)
8559  set_value(NonRigidMember self, IntKey a0, IMP::Int a1)
8560  set_value(NonRigidMember self, FloatsKey a0, IMP::Floats a1)
8561  set_value(NonRigidMember self, IntsKey a0, IMP::Ints a1)
8562  set_value(NonRigidMember self, StringKey a0, IMP::String a1)
8563  set_value(NonRigidMember self, ParticleIndexKey a0, Particle a1)
8564  set_value(NonRigidMember self, ObjectKey a0, Object a1)
8565  set_value(NonRigidMember self, SparseFloatKey a0, IMP::Float a1)
8566  set_value(NonRigidMember self, SparseIntKey a0, IMP::Int a1)
8567  set_value(NonRigidMember self, SparseStringKey a0, IMP::String a1)
8568  set_value(NonRigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8569  """
8570  return _IMP_core.NonRigidMember_set_value(self, *args)
8571 
8572  def remove_attribute(self, *args):
8573  r"""
8574  remove_attribute(NonRigidMember self, FloatKey a0)
8575  remove_attribute(NonRigidMember self, IntKey a0)
8576  remove_attribute(NonRigidMember self, FloatsKey a0)
8577  remove_attribute(NonRigidMember self, IntsKey a0)
8578  remove_attribute(NonRigidMember self, StringKey a0)
8579  remove_attribute(NonRigidMember self, ParticleIndexKey a0)
8580  remove_attribute(NonRigidMember self, ObjectKey a0)
8581  remove_attribute(NonRigidMember self, SparseFloatKey a0)
8582  remove_attribute(NonRigidMember self, SparseIntKey a0)
8583  remove_attribute(NonRigidMember self, SparseStringKey a0)
8584  remove_attribute(NonRigidMember self, SparseParticleIndexKey a0)
8585  """
8586  return _IMP_core.NonRigidMember_remove_attribute(self, *args)
8587 
8588  def has_attribute(self, *args):
8589  r"""
8590  has_attribute(NonRigidMember self, FloatKey a0) -> bool
8591  has_attribute(NonRigidMember self, IntKey a0) -> bool
8592  has_attribute(NonRigidMember self, FloatsKey a0) -> bool
8593  has_attribute(NonRigidMember self, IntsKey a0) -> bool
8594  has_attribute(NonRigidMember self, StringKey a0) -> bool
8595  has_attribute(NonRigidMember self, ParticleIndexKey a0) -> bool
8596  has_attribute(NonRigidMember self, ObjectKey a0) -> bool
8597  has_attribute(NonRigidMember self, SparseFloatKey a0) -> bool
8598  has_attribute(NonRigidMember self, SparseIntKey a0) -> bool
8599  has_attribute(NonRigidMember self, SparseStringKey a0) -> bool
8600  has_attribute(NonRigidMember self, SparseParticleIndexKey a0) -> bool
8601  """
8602  return _IMP_core.NonRigidMember_has_attribute(self, *args)
8603 
8604  def get_derivative(self, a0):
8605  r"""get_derivative(NonRigidMember self, FloatKey a0) -> double"""
8606  return _IMP_core.NonRigidMember_get_derivative(self, a0)
8607 
8608  def get_name(self):
8609  r"""get_name(NonRigidMember self) -> std::string"""
8610  return _IMP_core.NonRigidMember_get_name(self)
8611 
8612  def clear_caches(self):
8613  r"""clear_caches(NonRigidMember self)"""
8614  return _IMP_core.NonRigidMember_clear_caches(self)
8615 
8616  def set_name(self, a0):
8617  r"""set_name(NonRigidMember self, std::string a0)"""
8618  return _IMP_core.NonRigidMember_set_name(self, a0)
8619 
8620  def set_check_level(self, a0):
8621  r"""set_check_level(NonRigidMember self, IMP::CheckLevel a0)"""
8622  return _IMP_core.NonRigidMember_set_check_level(self, a0)
8623 
8624  def add_to_derivative(self, a0, a1, a2):
8625  r"""add_to_derivative(NonRigidMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8626  return _IMP_core.NonRigidMember_add_to_derivative(self, a0, a1, a2)
8627 
8628  def set_is_optimized(self, a0, a1):
8629  r"""set_is_optimized(NonRigidMember self, FloatKey a0, bool a1)"""
8630  return _IMP_core.NonRigidMember_set_is_optimized(self, a0, a1)
8631 
8632  def get_is_optimized(self, a0):
8633  r"""get_is_optimized(NonRigidMember self, FloatKey a0) -> bool"""
8634  return _IMP_core.NonRigidMember_get_is_optimized(self, a0)
8635 
8636  def get_check_level(self):
8637  r"""get_check_level(NonRigidMember self) -> IMP::CheckLevel"""
8638  return _IMP_core.NonRigidMember_get_check_level(self)
8639 
8640  def __eq__(self, *args):
8641  r"""
8642  __eq__(NonRigidMember self, NonRigidMember o) -> bool
8643  __eq__(NonRigidMember self, Particle d) -> bool
8644  """
8645  return _IMP_core.NonRigidMember___eq__(self, *args)
8646 
8647  def __ne__(self, *args):
8648  r"""
8649  __ne__(NonRigidMember self, NonRigidMember o) -> bool
8650  __ne__(NonRigidMember self, Particle d) -> bool
8651  """
8652  return _IMP_core.NonRigidMember___ne__(self, *args)
8653 
8654  def __le__(self, *args):
8655  r"""
8656  __le__(NonRigidMember self, NonRigidMember o) -> bool
8657  __le__(NonRigidMember self, Particle d) -> bool
8658  """
8659  return _IMP_core.NonRigidMember___le__(self, *args)
8660 
8661  def __lt__(self, *args):
8662  r"""
8663  __lt__(NonRigidMember self, NonRigidMember o) -> bool
8664  __lt__(NonRigidMember self, Particle d) -> bool
8665  """
8666  return _IMP_core.NonRigidMember___lt__(self, *args)
8667 
8668  def __ge__(self, *args):
8669  r"""
8670  __ge__(NonRigidMember self, NonRigidMember o) -> bool
8671  __ge__(NonRigidMember self, Particle d) -> bool
8672  """
8673  return _IMP_core.NonRigidMember___ge__(self, *args)
8674 
8675  def __gt__(self, *args):
8676  r"""
8677  __gt__(NonRigidMember self, NonRigidMember o) -> bool
8678  __gt__(NonRigidMember self, Particle d) -> bool
8679  """
8680  return _IMP_core.NonRigidMember___gt__(self, *args)
8681 
8682  def __hash__(self):
8683  r"""__hash__(NonRigidMember self) -> std::size_t"""
8684  return _IMP_core.NonRigidMember___hash__(self)
8685 
8686  def __str__(self):
8687  r"""__str__(NonRigidMember self) -> std::string"""
8688  return _IMP_core.NonRigidMember___str__(self)
8689 
8690  def __repr__(self):
8691  r"""__repr__(NonRigidMember self) -> std::string"""
8692  return _IMP_core.NonRigidMember___repr__(self)
8693 
8694  def _get_as_binary(self):
8695  r"""_get_as_binary(NonRigidMember self) -> PyObject *"""
8696  return _IMP_core.NonRigidMember__get_as_binary(self)
8697 
8698  def _set_from_binary(self, p):
8699  r"""_set_from_binary(NonRigidMember self, PyObject * p)"""
8700  return _IMP_core.NonRigidMember__set_from_binary(self, p)
8701 
8702  def __getstate__(self):
8703  p = self._get_as_binary()
8704  if len(self.__dict__) > 1:
8705  d = self.__dict__.copy()
8706  del d['this']
8707  p = (d, p)
8708  return p
8709 
8710  def __setstate__(self, p):
8711  if not hasattr(self, 'this'):
8712  self.__init__()
8713  if isinstance(p, tuple):
8714  d, p = p
8715  self.__dict__.update(d)
8716  return self._set_from_binary(p)
8717 
8718 
8719 # Register NonRigidMember in _IMP_core:
8720 _IMP_core.NonRigidMember_swigregister(NonRigidMember)
8721 class RigidMembersRefiner(IMP.Refiner):
8722  r"""Proxy of C++ IMP::core::RigidMembersRefiner class."""
8723 
8724  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8725 
8726  def __init__(self, *args):
8727  r"""__init__(RigidMembersRefiner self, std::string name="RigidMembersRefiner%d") -> RigidMembersRefiner"""
8728  _IMP_core.RigidMembersRefiner_swiginit(self, _IMP_core.new_RigidMembersRefiner(*args))
8729 
8730  def do_get_inputs(self, m, pis):
8731  r"""do_get_inputs(RigidMembersRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8732  return _IMP_core.RigidMembersRefiner_do_get_inputs(self, m, pis)
8733 
8734  def get_version_info(self):
8735  r"""get_version_info(RigidMembersRefiner self) -> VersionInfo"""
8736  return _IMP_core.RigidMembersRefiner_get_version_info(self)
8737  __swig_destroy__ = _IMP_core.delete_RigidMembersRefiner
8738 
8739  def __str__(self):
8740  r"""__str__(RigidMembersRefiner self) -> std::string"""
8741  return _IMP_core.RigidMembersRefiner___str__(self)
8742 
8743  def __repr__(self):
8744  r"""__repr__(RigidMembersRefiner self) -> std::string"""
8745  return _IMP_core.RigidMembersRefiner___repr__(self)
8746 
8747  @staticmethod
8748  def get_from(o):
8749  return _object_cast_to_RigidMembersRefiner(o)
8750 
8751 
8752 # Register RigidMembersRefiner in _IMP_core:
8753 _IMP_core.RigidMembersRefiner_swigregister(RigidMembersRefiner)
8754 
8755 def get_rigid_members_refiner():
8756  r"""get_rigid_members_refiner() -> RigidMembersRefiner"""
8757  return _IMP_core.get_rigid_members_refiner()
8758 
8759 def transform(*args):
8760  r"""
8761  transform(XYZ a, Transformation3D tr)
8762  transform(RigidBody a, Transformation3D tr)
8763  """
8764  return _IMP_core.transform(*args)
8765 
8766 def get_initial_reference_frame(*args):
8767  r"""
8768  get_initial_reference_frame(Model m, IMP::ParticleIndexes const & pis) -> ReferenceFrame3D
8769  get_initial_reference_frame(IMP::ParticlesTemp const & ps) -> ReferenceFrame3D
8770  """
8771  return _IMP_core.get_initial_reference_frame(*args)
8772 
8773 def create_rigid_bodies(m, n, no_members=False):
8774  r"""create_rigid_bodies(Model m, unsigned int n, bool no_members=False) -> IMP::ParticlesTemp"""
8775  return _IMP_core.create_rigid_bodies(m, n, no_members)
8776 
8777 def show_rigid_body_hierarchy(*args):
8778  r"""show_rigid_body_hierarchy(RigidBody rb, TextOutput out=IMP::TextOutput(std::cout))"""
8779  return _IMP_core.show_rigid_body_hierarchy(*args)
8780 
8781 def get_root_rigid_body(m):
8782  r"""get_root_rigid_body(RigidMember m) -> ParticleIndex"""
8783  return _IMP_core.get_root_rigid_body(m)
8784 class RigidBodyHierarchyGeometry(IMP.display.SingletonGeometry):
8785  r"""Proxy of C++ IMP::core::RigidBodyHierarchyGeometry class."""
8786 
8787  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8788 
8789  def __init__(self, rb, constituents):
8790  r"""__init__(RigidBodyHierarchyGeometry self, RigidBody rb, IMP::ParticlesTemp const & constituents) -> RigidBodyHierarchyGeometry"""
8791  _IMP_core.RigidBodyHierarchyGeometry_swiginit(self, _IMP_core.new_RigidBodyHierarchyGeometry(rb, constituents))
8792 
8793  def get_version_info(self):
8794  r"""get_version_info(RigidBodyHierarchyGeometry self) -> VersionInfo"""
8795  return _IMP_core.RigidBodyHierarchyGeometry_get_version_info(self)
8796  __swig_destroy__ = _IMP_core.delete_RigidBodyHierarchyGeometry
8797 
8798  def __str__(self):
8799  r"""__str__(RigidBodyHierarchyGeometry self) -> std::string"""
8800  return _IMP_core.RigidBodyHierarchyGeometry___str__(self)
8801 
8802  def __repr__(self):
8803  r"""__repr__(RigidBodyHierarchyGeometry self) -> std::string"""
8804  return _IMP_core.RigidBodyHierarchyGeometry___repr__(self)
8805 
8806  @staticmethod
8807  def get_from(o):
8808  return _object_cast_to_RigidBodyHierarchyGeometry(o)
8809 
8810 
8811 # Register RigidBodyHierarchyGeometry in _IMP_core:
8812 _IMP_core.RigidBodyHierarchyGeometry_swigregister(RigidBodyHierarchyGeometry)
8813 class RigidBodyDerivativeGeometry(IMP.display.SingletonGeometry):
8814  r"""Proxy of C++ IMP::core::RigidBodyDerivativeGeometry class."""
8815 
8816  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8817 
8818  def __init__(self, *args):
8819  r"""
8820  __init__(RigidBodyDerivativeGeometry self, Particle p) -> RigidBodyDerivativeGeometry
8821  __init__(RigidBodyDerivativeGeometry self, RigidBody d) -> RigidBodyDerivativeGeometry
8822  """
8823  _IMP_core.RigidBodyDerivativeGeometry_swiginit(self, _IMP_core.new_RigidBodyDerivativeGeometry(*args))
8824 
8825  def get_version_info(self):
8826  r"""get_version_info(RigidBodyDerivativeGeometry self) -> VersionInfo"""
8827  return _IMP_core.RigidBodyDerivativeGeometry_get_version_info(self)
8828  __swig_destroy__ = _IMP_core.delete_RigidBodyDerivativeGeometry
8829 
8830  def __str__(self):
8831  r"""__str__(RigidBodyDerivativeGeometry self) -> std::string"""
8832  return _IMP_core.RigidBodyDerivativeGeometry___str__(self)
8833 
8834  def __repr__(self):
8835  r"""__repr__(RigidBodyDerivativeGeometry self) -> std::string"""
8836  return _IMP_core.RigidBodyDerivativeGeometry___repr__(self)
8837 
8838  @staticmethod
8839  def get_from(o):
8840  return _object_cast_to_RigidBodyDerivativeGeometry(o)
8841 
8842 
8843 # Register RigidBodyDerivativeGeometry in _IMP_core:
8844 _IMP_core.RigidBodyDerivativeGeometry_swigregister(RigidBodyDerivativeGeometry)
8845 class RigidBodyDerivativesGeometry(IMP.display.SingletonsGeometry):
8846  r"""Proxy of C++ IMP::core::RigidBodyDerivativesGeometry class."""
8847 
8848  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8849 
8850  def __init__(self, sc):
8851  r"""__init__(RigidBodyDerivativesGeometry self, SingletonContainer sc) -> RigidBodyDerivativesGeometry"""
8852  _IMP_core.RigidBodyDerivativesGeometry_swiginit(self, _IMP_core.new_RigidBodyDerivativesGeometry(sc))
8853 
8854  def get_version_info(self):
8855  r"""get_version_info(RigidBodyDerivativesGeometry self) -> VersionInfo"""
8856  return _IMP_core.RigidBodyDerivativesGeometry_get_version_info(self)
8857  __swig_destroy__ = _IMP_core.delete_RigidBodyDerivativesGeometry
8858 
8859  def __str__(self):
8860  r"""__str__(RigidBodyDerivativesGeometry self) -> std::string"""
8861  return _IMP_core.RigidBodyDerivativesGeometry___str__(self)
8862 
8863  def __repr__(self):
8864  r"""__repr__(RigidBodyDerivativesGeometry self) -> std::string"""
8865  return _IMP_core.RigidBodyDerivativesGeometry___repr__(self)
8866 
8867  @staticmethod
8868  def get_from(o):
8869  return _object_cast_to_RigidBodyDerivativesGeometry(o)
8870 
8871 
8872 # Register RigidBodyDerivativesGeometry in _IMP_core:
8873 _IMP_core.RigidBodyDerivativesGeometry_swigregister(RigidBodyDerivativesGeometry)
8874 class RigidBodyFrameGeometry(IMP.display.SingletonGeometry):
8875  r"""Proxy of C++ IMP::core::RigidBodyFrameGeometry class."""
8876 
8877  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8878 
8879  def __init__(self, *args):
8880  r"""
8881  __init__(RigidBodyFrameGeometry self, Particle p) -> RigidBodyFrameGeometry
8882  __init__(RigidBodyFrameGeometry self, RigidBody d) -> RigidBodyFrameGeometry
8883  """
8884  _IMP_core.RigidBodyFrameGeometry_swiginit(self, _IMP_core.new_RigidBodyFrameGeometry(*args))
8885 
8886  def get_version_info(self):
8887  r"""get_version_info(RigidBodyFrameGeometry self) -> VersionInfo"""
8888  return _IMP_core.RigidBodyFrameGeometry_get_version_info(self)
8889  __swig_destroy__ = _IMP_core.delete_RigidBodyFrameGeometry
8890 
8891  def __str__(self):
8892  r"""__str__(RigidBodyFrameGeometry self) -> std::string"""
8893  return _IMP_core.RigidBodyFrameGeometry___str__(self)
8894 
8895  def __repr__(self):
8896  r"""__repr__(RigidBodyFrameGeometry self) -> std::string"""
8897  return _IMP_core.RigidBodyFrameGeometry___repr__(self)
8898 
8899  @staticmethod
8900  def get_from(o):
8901  return _object_cast_to_RigidBodyFrameGeometry(o)
8902 
8903 
8904 # Register RigidBodyFrameGeometry in _IMP_core:
8905 _IMP_core.RigidBodyFrameGeometry_swigregister(RigidBodyFrameGeometry)
8906 class RigidBodyFramesGeometry(IMP.display.SingletonsGeometry):
8907  r"""Proxy of C++ IMP::core::RigidBodyFramesGeometry class."""
8908 
8909  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8910 
8911  def __init__(self, sc):
8912  r"""__init__(RigidBodyFramesGeometry self, SingletonContainer sc) -> RigidBodyFramesGeometry"""
8913  _IMP_core.RigidBodyFramesGeometry_swiginit(self, _IMP_core.new_RigidBodyFramesGeometry(sc))
8914 
8915  def get_version_info(self):
8916  r"""get_version_info(RigidBodyFramesGeometry self) -> VersionInfo"""
8917  return _IMP_core.RigidBodyFramesGeometry_get_version_info(self)
8918  __swig_destroy__ = _IMP_core.delete_RigidBodyFramesGeometry
8919 
8920  def __str__(self):
8921  r"""__str__(RigidBodyFramesGeometry self) -> std::string"""
8922  return _IMP_core.RigidBodyFramesGeometry___str__(self)
8923 
8924  def __repr__(self):
8925  r"""__repr__(RigidBodyFramesGeometry self) -> std::string"""
8926  return _IMP_core.RigidBodyFramesGeometry___repr__(self)
8927 
8928  @staticmethod
8929  def get_from(o):
8930  return _object_cast_to_RigidBodyFramesGeometry(o)
8931 
8932 
8933 # Register RigidBodyFramesGeometry in _IMP_core:
8934 _IMP_core.RigidBodyFramesGeometry_swigregister(RigidBodyFramesGeometry)
8935 class RigidBodyTorque(IMP.display.SegmentGeometry):
8936  r"""Proxy of C++ IMP::core::RigidBodyTorque class."""
8937 
8938  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8939 
8940  def __init__(self, p):
8941  r"""__init__(RigidBodyTorque self, Particle p) -> RigidBodyTorque"""
8942  _IMP_core.RigidBodyTorque_swiginit(self, _IMP_core.new_RigidBodyTorque(p))
8943 
8944  def __str__(self):
8945  r"""__str__(RigidBodyTorque self) -> std::string"""
8946  return _IMP_core.RigidBodyTorque___str__(self)
8947 
8948  def __repr__(self):
8949  r"""__repr__(RigidBodyTorque self) -> std::string"""
8950  return _IMP_core.RigidBodyTorque___repr__(self)
8951 
8952  @staticmethod
8953  def get_from(o):
8954  return _object_cast_to_RigidBodyTorque(o)
8955 
8956  __swig_destroy__ = _IMP_core.delete_RigidBodyTorque
8957 
8958 # Register RigidBodyTorque in _IMP_core:
8959 _IMP_core.RigidBodyTorque_swigregister(RigidBodyTorque)
8960 class NearestNeighborsClosePairsFinder(ClosePairsFinder):
8961  r"""Proxy of C++ IMP::core::NearestNeighborsClosePairsFinder class."""
8962 
8963  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8964 
8965  def __init__(self):
8966  r"""__init__(NearestNeighborsClosePairsFinder self) -> NearestNeighborsClosePairsFinder"""
8967  _IMP_core.NearestNeighborsClosePairsFinder_swiginit(self, _IMP_core.new_NearestNeighborsClosePairsFinder())
8968 
8969  def get_close_pairs(self, *args):
8970  r"""
8971  get_close_pairs(NearestNeighborsClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
8972  get_close_pairs(NearestNeighborsClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
8973  get_close_pairs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
8974  get_close_pairs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
8975  """
8976  return _IMP_core.NearestNeighborsClosePairsFinder_get_close_pairs(self, *args)
8977 
8978  def do_get_inputs(self, m, pis):
8979  r"""do_get_inputs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8980  return _IMP_core.NearestNeighborsClosePairsFinder_do_get_inputs(self, m, pis)
8981 
8982  def get_version_info(self):
8983  r"""get_version_info(NearestNeighborsClosePairsFinder self) -> VersionInfo"""
8984  return _IMP_core.NearestNeighborsClosePairsFinder_get_version_info(self)
8985  __swig_destroy__ = _IMP_core.delete_NearestNeighborsClosePairsFinder
8986 
8987  def __str__(self):
8988  r"""__str__(NearestNeighborsClosePairsFinder self) -> std::string"""
8989  return _IMP_core.NearestNeighborsClosePairsFinder___str__(self)
8990 
8991  def __repr__(self):
8992  r"""__repr__(NearestNeighborsClosePairsFinder self) -> std::string"""
8993  return _IMP_core.NearestNeighborsClosePairsFinder___repr__(self)
8994 
8995  @staticmethod
8996  def get_from(o):
8997  return _object_cast_to_NearestNeighborsClosePairsFinder(o)
8998 
8999 
9000 # Register NearestNeighborsClosePairsFinder in _IMP_core:
9001 _IMP_core.NearestNeighborsClosePairsFinder_swigregister(NearestNeighborsClosePairsFinder)
9002 class RestraintsScoringFunction(IMP.ScoringFunction):
9003  r"""Proxy of C++ IMP::core::RestraintsScoringFunction class."""
9004 
9005  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9006 
9007  def __init__(self, *args):
9008  r"""
9009  __init__(RestraintsScoringFunction self, _RestraintsAdaptor rs, double weight=1.0, double max=NO_MAX, std::string name="RestraintsScoringFunction%1%") -> RestraintsScoringFunction
9010  __init__(RestraintsScoringFunction self, _RestraintsAdaptor rs, std::string name) -> RestraintsScoringFunction
9011  __init__(RestraintsScoringFunction self) -> RestraintsScoringFunction
9012  """
9013  _IMP_core.RestraintsScoringFunction_swiginit(self, _IMP_core.new_RestraintsScoringFunction(*args))
9014 
9015  def do_add_score_and_derivatives(self, sa, ss):
9016  r"""do_add_score_and_derivatives(RestraintsScoringFunction self, ScoreAccumulator sa, IMP::ScoreStatesTemp const & ss)"""
9017  return _IMP_core.RestraintsScoringFunction_do_add_score_and_derivatives(self, sa, ss)
9018 
9019  def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss):
9020  r"""do_add_score_and_derivatives_moved(RestraintsScoringFunction self, ScoreAccumulator sa, IMP::ParticleIndexes const & moved_pis, IMP::ParticleIndexes const & reset_pis, IMP::ScoreStatesTemp const & ss)"""
9021  return _IMP_core.RestraintsScoringFunction_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss)
9022 
9023  def do_get_inputs(self):
9024  r"""do_get_inputs(RestraintsScoringFunction self) -> IMP::ModelObjectsTemp"""
9025  return _IMP_core.RestraintsScoringFunction_do_get_inputs(self)
9026 
9027  def get_restraints(self):
9028  r"""get_restraints(RestraintsScoringFunction self) -> IMP::Restraints"""
9029  return _IMP_core.RestraintsScoringFunction_get_restraints(self)
9030 
9031  def set_restraints(self, d):
9032  r"""set_restraints(RestraintsScoringFunction self, IMP::Restraints const & d)"""
9033  return _IMP_core.RestraintsScoringFunction_set_restraints(self, d)
9034 
9035  def get_number_of_restraints(self):
9036  r"""get_number_of_restraints(RestraintsScoringFunction self) -> unsigned int"""
9037  return _IMP_core.RestraintsScoringFunction_get_number_of_restraints(self)
9038 
9039  def clear_restraints(self):
9040  r"""clear_restraints(RestraintsScoringFunction self)"""
9041  return _IMP_core.RestraintsScoringFunction_clear_restraints(self)
9042 
9043  def get_restraint(self, i):
9044  r"""get_restraint(RestraintsScoringFunction self, unsigned int i) -> Restraint"""
9045  return _IMP_core.RestraintsScoringFunction_get_restraint(self, i)
9046 
9047  def erase_restraint(self, i):
9048  r"""erase_restraint(RestraintsScoringFunction self, unsigned int i)"""
9049  return _IMP_core.RestraintsScoringFunction_erase_restraint(self, i)
9050 
9051  def add_restraint(self, d):
9052  r"""add_restraint(RestraintsScoringFunction self, Restraint d) -> unsigned int"""
9053  return _IMP_core.RestraintsScoringFunction_add_restraint(self, d)
9054 
9055  def add_restraints(self, d):
9056  r"""add_restraints(RestraintsScoringFunction self, IMP::Restraints const & d)"""
9057  return _IMP_core.RestraintsScoringFunction_add_restraints(self, d)
9058 
9059  def _python_index_restraint(self, r, start, stop):
9060  r"""_python_index_restraint(RestraintsScoringFunction self, Restraint r, unsigned int start, unsigned int stop) -> unsigned int"""
9061  return _IMP_core.RestraintsScoringFunction__python_index_restraint(self, r, start, stop)
9062  def __get_restraints(self): return IMP._list_util.VarList(getdimfunc=self.get_number_of_restraints, getfunc=self.get_restraint, erasefunc=self.erase_restraint, appendfunc=self.add_restraint, extendfunc=self.add_restraints, clearfunc=self.clear_restraints, indexfunc=self._python_index_restraint)
9063  def __set_restraints(self, obj): IMP._list_util.set_varlist(self.restraints, obj)
9064  def __del_restraints(self): IMP._list_util.del_varlist(self.restraints)
9065  restraints = property(__get_restraints, __set_restraints, __del_restraints, doc="List of ##Restraints")
9066 
9067  def get_version_info(self):
9068  r"""get_version_info(RestraintsScoringFunction self) -> VersionInfo"""
9069  return _IMP_core.RestraintsScoringFunction_get_version_info(self)
9070  __swig_destroy__ = _IMP_core.delete_RestraintsScoringFunction
9071 
9072  def __str__(self):
9073  r"""__str__(RestraintsScoringFunction self) -> std::string"""
9074  return _IMP_core.RestraintsScoringFunction___str__(self)
9075 
9076  def __repr__(self):
9077  r"""__repr__(RestraintsScoringFunction self) -> std::string"""
9078  return _IMP_core.RestraintsScoringFunction___repr__(self)
9079 
9080  @staticmethod
9081  def get_from(o):
9082  return _object_cast_to_RestraintsScoringFunction(o)
9083 
9084 
9085  def _get_as_binary(self):
9086  r"""_get_as_binary(RestraintsScoringFunction self) -> PyObject *"""
9087  return _IMP_core.RestraintsScoringFunction__get_as_binary(self)
9088 
9089  def _set_from_binary(self, p):
9090  r"""_set_from_binary(RestraintsScoringFunction self, PyObject * p)"""
9091  return _IMP_core.RestraintsScoringFunction__set_from_binary(self, p)
9092 
9093  def __getstate__(self):
9094  p = self._get_as_binary()
9095  if len(self.__dict__) > 1:
9096  d = self.__dict__.copy()
9097  del d['this']
9098  p = (d, p)
9099  return p
9100 
9101  def __setstate__(self, p):
9102  if not hasattr(self, 'this'):
9103  self.__init__()
9104  if isinstance(p, tuple):
9105  d, p = p
9106  self.__dict__.update(d)
9107  return self._set_from_binary(p)
9108 
9109 
9110 # Register RestraintsScoringFunction in _IMP_core:
9111 _IMP_core.RestraintsScoringFunction_swigregister(RestraintsScoringFunction)
9112 class RigidClosePairsFinder(ClosePairsFinder):
9113  r"""Proxy of C++ IMP::core::RigidClosePairsFinder class."""
9114 
9115  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9116 
9117  def __init__(self, cpf=None):
9118  r"""__init__(RigidClosePairsFinder self, ClosePairsFinder cpf=None) -> RigidClosePairsFinder"""
9119  _IMP_core.RigidClosePairsFinder_swiginit(self, _IMP_core.new_RigidClosePairsFinder(cpf))
9120 
9121  def do_get_inputs(self, m, pis):
9122  r"""do_get_inputs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9123  return _IMP_core.RigidClosePairsFinder_do_get_inputs(self, m, pis)
9124 
9125  def get_close_pairs(self, *args):
9126  r"""
9127  get_close_pairs(RigidClosePairsFinder self, Model m, ParticleIndex a, ParticleIndex b, IMP::ParticleIndexes const & pa, IMP::ParticleIndexes const & pb) -> IMP::ParticleIndexPairs
9128  get_close_pairs(RigidClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
9129  get_close_pairs(RigidClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
9130  get_close_pairs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
9131  get_close_pairs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
9132  """
9133  return _IMP_core.RigidClosePairsFinder_get_close_pairs(self, *args)
9134 
9135  def get_version_info(self):
9136  r"""get_version_info(RigidClosePairsFinder self) -> VersionInfo"""
9137  return _IMP_core.RigidClosePairsFinder_get_version_info(self)
9138  __swig_destroy__ = _IMP_core.delete_RigidClosePairsFinder
9139 
9140  def __str__(self):
9141  r"""__str__(RigidClosePairsFinder self) -> std::string"""
9142  return _IMP_core.RigidClosePairsFinder___str__(self)
9143 
9144  def __repr__(self):
9145  r"""__repr__(RigidClosePairsFinder self) -> std::string"""
9146  return _IMP_core.RigidClosePairsFinder___repr__(self)
9147 
9148  @staticmethod
9149  def get_from(o):
9150  return _object_cast_to_RigidClosePairsFinder(o)
9151 
9152 
9153  def _get_as_binary(self):
9154  r"""_get_as_binary(RigidClosePairsFinder self) -> PyObject *"""
9155  return _IMP_core.RigidClosePairsFinder__get_as_binary(self)
9156 
9157  def _set_from_binary(self, p):
9158  r"""_set_from_binary(RigidClosePairsFinder self, PyObject * p)"""
9159  return _IMP_core.RigidClosePairsFinder__set_from_binary(self, p)
9160 
9161  def __getstate__(self):
9162  p = self._get_as_binary()
9163  if len(self.__dict__) > 1:
9164  d = self.__dict__.copy()
9165  del d['this']
9166  p = (d, p)
9167  return p
9168 
9169  def __setstate__(self, p):
9170  if not hasattr(self, 'this'):
9171  self.__init__()
9172  if isinstance(p, tuple):
9173  d, p = p
9174  self.__dict__.update(d)
9175  return self._set_from_binary(p)
9176 
9177 
9178 # Register RigidClosePairsFinder in _IMP_core:
9179 _IMP_core.RigidClosePairsFinder_swigregister(RigidClosePairsFinder)
9180 class _SphereDistancePairScore(IMP.PairScore):
9181  r"""Proxy of C++ IMP::core::SphereDistancePairScore class."""
9182 
9183  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9184  __repr__ = _swig_repr
9185 
9186  def __init__(self, *args):
9187  r"""
9188  SphereDistancePairScore(UnaryFunction uf, std::string name="SphereDistancePairScore%1%") -> _SphereDistancePairScore
9189  __init__(_SphereDistancePairScore self) -> _SphereDistancePairScore
9190  """
9191  _IMP_core._SphereDistancePairScore_swiginit(self, _IMP_core.new__SphereDistancePairScore(*args))
9192 
9193  def do_get_inputs(self, m, pis):
9194  r"""do_get_inputs(_SphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9195  return _IMP_core._SphereDistancePairScore_do_get_inputs(self, m, pis)
9196 
9197  def get_version_info(self):
9198  r"""get_version_info(_SphereDistancePairScore self) -> VersionInfo"""
9199  return _IMP_core._SphereDistancePairScore_get_version_info(self)
9200  __swig_destroy__ = _IMP_core.delete__SphereDistancePairScore
9201 
9202  @staticmethod
9203  def get_from(o):
9204  return _object_cast_to__SphereDistancePairScore(o)
9205 
9206 
9207  def _get_as_binary(self):
9208  r"""_get_as_binary(_SphereDistancePairScore self) -> PyObject *"""
9209  return _IMP_core._SphereDistancePairScore__get_as_binary(self)
9210 
9211  def _set_from_binary(self, p):
9212  r"""_set_from_binary(_SphereDistancePairScore self, PyObject * p)"""
9213  return _IMP_core._SphereDistancePairScore__set_from_binary(self, p)
9214 
9215  def __getstate__(self):
9216  p = self._get_as_binary()
9217  if len(self.__dict__) > 1:
9218  d = self.__dict__.copy()
9219  del d['this']
9220  p = (d, p)
9221  return p
9222 
9223  def __setstate__(self, p):
9224  if not hasattr(self, 'this'):
9225  self.__init__()
9226  if isinstance(p, tuple):
9227  d, p = p
9228  self.__dict__.update(d)
9229  return self._set_from_binary(p)
9230 
9231 
9232 # Register _SphereDistancePairScore in _IMP_core:
9233 _IMP_core._SphereDistancePairScore_swigregister(_SphereDistancePairScore)
9234 class HarmonicUpperBoundSphereDistancePairScore(IMP.PairScore):
9235  r"""Proxy of C++ IMP::core::HarmonicUpperBoundSphereDistancePairScore class."""
9236 
9237  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9238 
9239  def __init__(self, *args):
9240  r"""
9241  __init__(HarmonicUpperBoundSphereDistancePairScore self, double x0, double k, std::string name="HarmonicUpperBoundSphereDistancePairScore%1%") -> HarmonicUpperBoundSphereDistancePairScore
9242  __init__(HarmonicUpperBoundSphereDistancePairScore self) -> HarmonicUpperBoundSphereDistancePairScore
9243  """
9244  _IMP_core.HarmonicUpperBoundSphereDistancePairScore_swiginit(self, _IMP_core.new_HarmonicUpperBoundSphereDistancePairScore(*args))
9245 
9246  def do_get_inputs(self, m, pis):
9247  r"""do_get_inputs(HarmonicUpperBoundSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9248  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore_do_get_inputs(self, m, pis)
9249 
9250  def get_version_info(self):
9251  r"""get_version_info(HarmonicUpperBoundSphereDistancePairScore self) -> VersionInfo"""
9252  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore_get_version_info(self)
9253  __swig_destroy__ = _IMP_core.delete_HarmonicUpperBoundSphereDistancePairScore
9254 
9255  def __str__(self):
9256  r"""__str__(HarmonicUpperBoundSphereDistancePairScore self) -> std::string"""
9257  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore___str__(self)
9258 
9259  def __repr__(self):
9260  r"""__repr__(HarmonicUpperBoundSphereDistancePairScore self) -> std::string"""
9261  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore___repr__(self)
9262 
9263  @staticmethod
9264  def get_from(o):
9265  return _object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o)
9266 
9267 
9268  def _get_as_binary(self):
9269  r"""_get_as_binary(HarmonicUpperBoundSphereDistancePairScore self) -> PyObject *"""
9270  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore__get_as_binary(self)
9271 
9272  def _set_from_binary(self, p):
9273  r"""_set_from_binary(HarmonicUpperBoundSphereDistancePairScore self, PyObject * p)"""
9274  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore__set_from_binary(self, p)
9275 
9276  def __getstate__(self):
9277  p = self._get_as_binary()
9278  if len(self.__dict__) > 1:
9279  d = self.__dict__.copy()
9280  del d['this']
9281  p = (d, p)
9282  return p
9283 
9284  def __setstate__(self, p):
9285  if not hasattr(self, 'this'):
9286  self.__init__()
9287  if isinstance(p, tuple):
9288  d, p = p
9289  self.__dict__.update(d)
9290  return self._set_from_binary(p)
9291 
9292 
9293 # Register HarmonicUpperBoundSphereDistancePairScore in _IMP_core:
9294 _IMP_core.HarmonicUpperBoundSphereDistancePairScore_swigregister(HarmonicUpperBoundSphereDistancePairScore)
9295 class HarmonicUpperBoundSphereDiameterPairScore(IMP.PairScore):
9296  r"""Proxy of C++ IMP::core::HarmonicUpperBoundSphereDiameterPairScore class."""
9297 
9298  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9299 
9300  def __init__(self, d0, k):
9301  r"""__init__(HarmonicUpperBoundSphereDiameterPairScore self, double d0, double k) -> HarmonicUpperBoundSphereDiameterPairScore"""
9302  _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_swiginit(self, _IMP_core.new_HarmonicUpperBoundSphereDiameterPairScore(d0, k))
9303 
9304  def get_rest_length(self):
9305  r"""get_rest_length(HarmonicUpperBoundSphereDiameterPairScore self) -> double"""
9306  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_rest_length(self)
9307 
9308  def get_stiffness(self):
9309  r"""get_stiffness(HarmonicUpperBoundSphereDiameterPairScore self) -> double"""
9310  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_stiffness(self)
9311 
9312  def do_get_inputs(self, m, pis):
9313  r"""do_get_inputs(HarmonicUpperBoundSphereDiameterPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9314  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_do_get_inputs(self, m, pis)
9315 
9316  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
9317  r"""evaluate_indexes(HarmonicUpperBoundSphereDiameterPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
9318  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
9319 
9320  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
9321  r"""evaluate_indexes_scores(HarmonicUpperBoundSphereDiameterPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
9322  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
9323 
9324  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
9325  r"""evaluate_indexes_delta(HarmonicUpperBoundSphereDiameterPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
9326  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
9327 
9328  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
9329  r"""evaluate_if_good_indexes(HarmonicUpperBoundSphereDiameterPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
9330  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
9331 
9332  def get_version_info(self):
9333  r"""get_version_info(HarmonicUpperBoundSphereDiameterPairScore self) -> VersionInfo"""
9334  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_version_info(self)
9335  __swig_destroy__ = _IMP_core.delete_HarmonicUpperBoundSphereDiameterPairScore
9336 
9337  def __str__(self):
9338  r"""__str__(HarmonicUpperBoundSphereDiameterPairScore self) -> std::string"""
9339  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore___str__(self)
9340 
9341  def __repr__(self):
9342  r"""__repr__(HarmonicUpperBoundSphereDiameterPairScore self) -> std::string"""
9343  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore___repr__(self)
9344 
9345  @staticmethod
9346  def get_from(o):
9347  return _object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o)
9348 
9349 
9350 # Register HarmonicUpperBoundSphereDiameterPairScore in _IMP_core:
9351 _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_swigregister(HarmonicUpperBoundSphereDiameterPairScore)
9352 class HarmonicSphereDistancePairScore(IMP.PairScore):
9353  r"""Proxy of C++ IMP::core::HarmonicSphereDistancePairScore class."""
9354 
9355  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9356 
9357  def __init__(self, *args):
9358  r"""
9359  __init__(HarmonicSphereDistancePairScore self, double x0, double k, std::string name="HarmonicSphereDistancePairScore%1%") -> HarmonicSphereDistancePairScore
9360  __init__(HarmonicSphereDistancePairScore self) -> HarmonicSphereDistancePairScore
9361  """
9362  _IMP_core.HarmonicSphereDistancePairScore_swiginit(self, _IMP_core.new_HarmonicSphereDistancePairScore(*args))
9363 
9364  def do_get_inputs(self, m, pis):
9365  r"""do_get_inputs(HarmonicSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9366  return _IMP_core.HarmonicSphereDistancePairScore_do_get_inputs(self, m, pis)
9367 
9368  def get_version_info(self):
9369  r"""get_version_info(HarmonicSphereDistancePairScore self) -> VersionInfo"""
9370  return _IMP_core.HarmonicSphereDistancePairScore_get_version_info(self)
9371  __swig_destroy__ = _IMP_core.delete_HarmonicSphereDistancePairScore
9372 
9373  def __str__(self):
9374  r"""__str__(HarmonicSphereDistancePairScore self) -> std::string"""
9375  return _IMP_core.HarmonicSphereDistancePairScore___str__(self)
9376 
9377  def __repr__(self):
9378  r"""__repr__(HarmonicSphereDistancePairScore self) -> std::string"""
9379  return _IMP_core.HarmonicSphereDistancePairScore___repr__(self)
9380 
9381  @staticmethod
9382  def get_from(o):
9383  return _object_cast_to_HarmonicSphereDistancePairScore(o)
9384 
9385 
9386  def _get_as_binary(self):
9387  r"""_get_as_binary(HarmonicSphereDistancePairScore self) -> PyObject *"""
9388  return _IMP_core.HarmonicSphereDistancePairScore__get_as_binary(self)
9389 
9390  def _set_from_binary(self, p):
9391  r"""_set_from_binary(HarmonicSphereDistancePairScore self, PyObject * p)"""
9392  return _IMP_core.HarmonicSphereDistancePairScore__set_from_binary(self, p)
9393 
9394  def __getstate__(self):
9395  p = self._get_as_binary()
9396  if len(self.__dict__) > 1:
9397  d = self.__dict__.copy()
9398  del d['this']
9399  p = (d, p)
9400  return p
9401 
9402  def __setstate__(self, p):
9403  if not hasattr(self, 'this'):
9404  self.__init__()
9405  if isinstance(p, tuple):
9406  d, p = p
9407  self.__dict__.update(d)
9408  return self._set_from_binary(p)
9409 
9410 
9411 # Register HarmonicSphereDistancePairScore in _IMP_core:
9412 _IMP_core.HarmonicSphereDistancePairScore_swigregister(HarmonicSphereDistancePairScore)
9413 class NormalizedSphereDistancePairScore(IMP.PairScore):
9414  r"""Proxy of C++ IMP::core::NormalizedSphereDistancePairScore class."""
9415 
9416  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9417 
9418  def __init__(self, *args):
9419  r"""__init__(NormalizedSphereDistancePairScore self, UnaryFunction f, FloatKey radius=IMP::FloatKey("radius")) -> NormalizedSphereDistancePairScore"""
9420  _IMP_core.NormalizedSphereDistancePairScore_swiginit(self, _IMP_core.new_NormalizedSphereDistancePairScore(*args))
9421 
9422  def do_get_inputs(self, m, pis):
9423  r"""do_get_inputs(NormalizedSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9424  return _IMP_core.NormalizedSphereDistancePairScore_do_get_inputs(self, m, pis)
9425 
9426  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
9427  r"""evaluate_indexes(NormalizedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
9428  return _IMP_core.NormalizedSphereDistancePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
9429 
9430  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
9431  r"""evaluate_indexes_scores(NormalizedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
9432  return _IMP_core.NormalizedSphereDistancePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
9433 
9434  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
9435  r"""evaluate_indexes_delta(NormalizedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
9436  return _IMP_core.NormalizedSphereDistancePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
9437 
9438  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
9439  r"""evaluate_if_good_indexes(NormalizedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
9440  return _IMP_core.NormalizedSphereDistancePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
9441 
9442  def get_version_info(self):
9443  r"""get_version_info(NormalizedSphereDistancePairScore self) -> VersionInfo"""
9444  return _IMP_core.NormalizedSphereDistancePairScore_get_version_info(self)
9445  __swig_destroy__ = _IMP_core.delete_NormalizedSphereDistancePairScore
9446 
9447  def __str__(self):
9448  r"""__str__(NormalizedSphereDistancePairScore self) -> std::string"""
9449  return _IMP_core.NormalizedSphereDistancePairScore___str__(self)
9450 
9451  def __repr__(self):
9452  r"""__repr__(NormalizedSphereDistancePairScore self) -> std::string"""
9453  return _IMP_core.NormalizedSphereDistancePairScore___repr__(self)
9454 
9455  @staticmethod
9456  def get_from(o):
9457  return _object_cast_to_NormalizedSphereDistancePairScore(o)
9458 
9459 
9460 # Register NormalizedSphereDistancePairScore in _IMP_core:
9461 _IMP_core.NormalizedSphereDistancePairScore_swigregister(NormalizedSphereDistancePairScore)
9462 class WeightedSphereDistancePairScore(IMP.PairScore):
9463  r"""Proxy of C++ IMP::core::WeightedSphereDistancePairScore class."""
9464 
9465  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9466 
9467  def __init__(self, *args):
9468  r"""__init__(WeightedSphereDistancePairScore self, UnaryFunction f, FloatKey weight, FloatKey radius=IMP::FloatKey("radius")) -> WeightedSphereDistancePairScore"""
9469  _IMP_core.WeightedSphereDistancePairScore_swiginit(self, _IMP_core.new_WeightedSphereDistancePairScore(*args))
9470 
9471  def do_get_inputs(self, m, pis):
9472  r"""do_get_inputs(WeightedSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9473  return _IMP_core.WeightedSphereDistancePairScore_do_get_inputs(self, m, pis)
9474 
9475  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
9476  r"""evaluate_indexes(WeightedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
9477  return _IMP_core.WeightedSphereDistancePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
9478 
9479  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
9480  r"""evaluate_indexes_scores(WeightedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
9481  return _IMP_core.WeightedSphereDistancePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
9482 
9483  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
9484  r"""evaluate_indexes_delta(WeightedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
9485  return _IMP_core.WeightedSphereDistancePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
9486 
9487  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
9488  r"""evaluate_if_good_indexes(WeightedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
9489  return _IMP_core.WeightedSphereDistancePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
9490 
9491  def get_version_info(self):
9492  r"""get_version_info(WeightedSphereDistancePairScore self) -> VersionInfo"""
9493  return _IMP_core.WeightedSphereDistancePairScore_get_version_info(self)
9494  __swig_destroy__ = _IMP_core.delete_WeightedSphereDistancePairScore
9495 
9496  def __str__(self):
9497  r"""__str__(WeightedSphereDistancePairScore self) -> std::string"""
9498  return _IMP_core.WeightedSphereDistancePairScore___str__(self)
9499 
9500  def __repr__(self):
9501  r"""__repr__(WeightedSphereDistancePairScore self) -> std::string"""
9502  return _IMP_core.WeightedSphereDistancePairScore___repr__(self)
9503 
9504  @staticmethod
9505  def get_from(o):
9506  return _object_cast_to_WeightedSphereDistancePairScore(o)
9507 
9508 
9509 # Register WeightedSphereDistancePairScore in _IMP_core:
9510 _IMP_core.WeightedSphereDistancePairScore_swigregister(WeightedSphereDistancePairScore)
9511 class SoftSpherePairScore(IMP.PairScore):
9512  r"""Proxy of C++ IMP::core::SoftSpherePairScore class."""
9513 
9514  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9515 
9516  def __init__(self, *args):
9517  r"""
9518  __init__(SoftSpherePairScore self, double k, std::string name="SoftSpherePairScore%1%") -> SoftSpherePairScore
9519  __init__(SoftSpherePairScore self) -> SoftSpherePairScore
9520  """
9521  _IMP_core.SoftSpherePairScore_swiginit(self, _IMP_core.new_SoftSpherePairScore(*args))
9522 
9523  def do_get_inputs(self, m, pis):
9524  r"""do_get_inputs(SoftSpherePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9525  return _IMP_core.SoftSpherePairScore_do_get_inputs(self, m, pis)
9526 
9527  def get_version_info(self):
9528  r"""get_version_info(SoftSpherePairScore self) -> VersionInfo"""
9529  return _IMP_core.SoftSpherePairScore_get_version_info(self)
9530  __swig_destroy__ = _IMP_core.delete_SoftSpherePairScore
9531 
9532  def __str__(self):
9533  r"""__str__(SoftSpherePairScore self) -> std::string"""
9534  return _IMP_core.SoftSpherePairScore___str__(self)
9535 
9536  def __repr__(self):
9537  r"""__repr__(SoftSpherePairScore self) -> std::string"""
9538  return _IMP_core.SoftSpherePairScore___repr__(self)
9539 
9540  @staticmethod
9541  def get_from(o):
9542  return _object_cast_to_SoftSpherePairScore(o)
9543 
9544 
9545  def _get_as_binary(self):
9546  r"""_get_as_binary(SoftSpherePairScore self) -> PyObject *"""
9547  return _IMP_core.SoftSpherePairScore__get_as_binary(self)
9548 
9549  def _set_from_binary(self, p):
9550  r"""_set_from_binary(SoftSpherePairScore self, PyObject * p)"""
9551  return _IMP_core.SoftSpherePairScore__set_from_binary(self, p)
9552 
9553  def __getstate__(self):
9554  p = self._get_as_binary()
9555  if len(self.__dict__) > 1:
9556  d = self.__dict__.copy()
9557  del d['this']
9558  p = (d, p)
9559  return p
9560 
9561  def __setstate__(self, p):
9562  if not hasattr(self, 'this'):
9563  self.__init__()
9564  if isinstance(p, tuple):
9565  d, p = p
9566  self.__dict__.update(d)
9567  return self._set_from_binary(p)
9568 
9569 
9570 # Register SoftSpherePairScore in _IMP_core:
9571 _IMP_core.SoftSpherePairScore_swigregister(SoftSpherePairScore)
9572 class SurfaceDistancePairScore(IMP.PairScore):
9573  r"""Proxy of C++ IMP::core::SurfaceDistancePairScore class."""
9574 
9575  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9576 
9577  def __init__(self, *args):
9578  r"""__init__(SurfaceDistancePairScore self, UnaryFunction uf, std::string name="SurfaceDistancePairScore%1%") -> SurfaceDistancePairScore"""
9579  _IMP_core.SurfaceDistancePairScore_swiginit(self, _IMP_core.new_SurfaceDistancePairScore(*args))
9580 
9581  def do_get_inputs(self, m, pis):
9582  r"""do_get_inputs(SurfaceDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9583  return _IMP_core.SurfaceDistancePairScore_do_get_inputs(self, m, pis)
9584 
9585  def get_version_info(self):
9586  r"""get_version_info(SurfaceDistancePairScore self) -> VersionInfo"""
9587  return _IMP_core.SurfaceDistancePairScore_get_version_info(self)
9588  __swig_destroy__ = _IMP_core.delete_SurfaceDistancePairScore
9589 
9590  def __str__(self):
9591  r"""__str__(SurfaceDistancePairScore self) -> std::string"""
9592  return _IMP_core.SurfaceDistancePairScore___str__(self)
9593 
9594  def __repr__(self):
9595  r"""__repr__(SurfaceDistancePairScore self) -> std::string"""
9596  return _IMP_core.SurfaceDistancePairScore___repr__(self)
9597 
9598  @staticmethod
9599  def get_from(o):
9600  return _object_cast_to_SurfaceDistancePairScore(o)
9601 
9602 
9603 # Register SurfaceDistancePairScore in _IMP_core:
9604 _IMP_core.SurfaceDistancePairScore_swigregister(SurfaceDistancePairScore)
9605 class SurfaceHeightPairScore(IMP.PairScore):
9606  r"""Proxy of C++ IMP::core::SurfaceHeightPairScore class."""
9607 
9608  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9609 
9610  def __init__(self, *args):
9611  r"""__init__(SurfaceHeightPairScore self, UnaryFunction uf, std::string name="SurfaceHeightPairScore%1%") -> SurfaceHeightPairScore"""
9612  _IMP_core.SurfaceHeightPairScore_swiginit(self, _IMP_core.new_SurfaceHeightPairScore(*args))
9613 
9614  def do_get_inputs(self, m, pis):
9615  r"""do_get_inputs(SurfaceHeightPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9616  return _IMP_core.SurfaceHeightPairScore_do_get_inputs(self, m, pis)
9617 
9618  def get_version_info(self):
9619  r"""get_version_info(SurfaceHeightPairScore self) -> VersionInfo"""
9620  return _IMP_core.SurfaceHeightPairScore_get_version_info(self)
9621  __swig_destroy__ = _IMP_core.delete_SurfaceHeightPairScore
9622 
9623  def __str__(self):
9624  r"""__str__(SurfaceHeightPairScore self) -> std::string"""
9625  return _IMP_core.SurfaceHeightPairScore___str__(self)
9626 
9627  def __repr__(self):
9628  r"""__repr__(SurfaceHeightPairScore self) -> std::string"""
9629  return _IMP_core.SurfaceHeightPairScore___repr__(self)
9630 
9631  @staticmethod
9632  def get_from(o):
9633  return _object_cast_to_SurfaceHeightPairScore(o)
9634 
9635 
9636 # Register SurfaceHeightPairScore in _IMP_core:
9637 _IMP_core.SurfaceHeightPairScore_swigregister(SurfaceHeightPairScore)
9638 class SurfaceDepthPairScore(IMP.PairScore):
9639  r"""Proxy of C++ IMP::core::SurfaceDepthPairScore class."""
9640 
9641  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9642 
9643  def __init__(self, *args):
9644  r"""__init__(SurfaceDepthPairScore self, UnaryFunction uf, std::string name="SurfaceDepthPairScore%1%") -> SurfaceDepthPairScore"""
9645  _IMP_core.SurfaceDepthPairScore_swiginit(self, _IMP_core.new_SurfaceDepthPairScore(*args))
9646 
9647  def do_get_inputs(self, m, pis):
9648  r"""do_get_inputs(SurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9649  return _IMP_core.SurfaceDepthPairScore_do_get_inputs(self, m, pis)
9650 
9651  def get_version_info(self):
9652  r"""get_version_info(SurfaceDepthPairScore self) -> VersionInfo"""
9653  return _IMP_core.SurfaceDepthPairScore_get_version_info(self)
9654  __swig_destroy__ = _IMP_core.delete_SurfaceDepthPairScore
9655 
9656  def __str__(self):
9657  r"""__str__(SurfaceDepthPairScore self) -> std::string"""
9658  return _IMP_core.SurfaceDepthPairScore___str__(self)
9659 
9660  def __repr__(self):
9661  r"""__repr__(SurfaceDepthPairScore self) -> std::string"""
9662  return _IMP_core.SurfaceDepthPairScore___repr__(self)
9663 
9664  @staticmethod
9665  def get_from(o):
9666  return _object_cast_to_SurfaceDepthPairScore(o)
9667 
9668 
9669 # Register SurfaceDepthPairScore in _IMP_core:
9670 _IMP_core.SurfaceDepthPairScore_swigregister(SurfaceDepthPairScore)
9671 class HarmonicSurfaceDistancePairScore(IMP.PairScore):
9672  r"""Proxy of C++ IMP::core::HarmonicSurfaceDistancePairScore class."""
9673 
9674  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9675 
9676  def __init__(self, *args):
9677  r"""__init__(HarmonicSurfaceDistancePairScore self, double x0, double k, std::string name="HarmonicSurfaceDistancePairScore%1%") -> HarmonicSurfaceDistancePairScore"""
9678  _IMP_core.HarmonicSurfaceDistancePairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceDistancePairScore(*args))
9679 
9680  def do_get_inputs(self, m, pis):
9681  r"""do_get_inputs(HarmonicSurfaceDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9682  return _IMP_core.HarmonicSurfaceDistancePairScore_do_get_inputs(self, m, pis)
9683 
9684  def get_version_info(self):
9685  r"""get_version_info(HarmonicSurfaceDistancePairScore self) -> VersionInfo"""
9686  return _IMP_core.HarmonicSurfaceDistancePairScore_get_version_info(self)
9687  __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceDistancePairScore
9688 
9689  def __str__(self):
9690  r"""__str__(HarmonicSurfaceDistancePairScore self) -> std::string"""
9691  return _IMP_core.HarmonicSurfaceDistancePairScore___str__(self)
9692 
9693  def __repr__(self):
9694  r"""__repr__(HarmonicSurfaceDistancePairScore self) -> std::string"""
9695  return _IMP_core.HarmonicSurfaceDistancePairScore___repr__(self)
9696 
9697  @staticmethod
9698  def get_from(o):
9699  return _object_cast_to_HarmonicSurfaceDistancePairScore(o)
9700 
9701 
9702 # Register HarmonicSurfaceDistancePairScore in _IMP_core:
9703 _IMP_core.HarmonicSurfaceDistancePairScore_swigregister(HarmonicSurfaceDistancePairScore)
9704 class HarmonicSurfaceHeightPairScore(IMP.PairScore):
9705  r"""Proxy of C++ IMP::core::HarmonicSurfaceHeightPairScore class."""
9706 
9707  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9708 
9709  def __init__(self, *args):
9710  r"""__init__(HarmonicSurfaceHeightPairScore self, double x0, double k, std::string name="HarmonicSurfaceHeightPairScore%1%") -> HarmonicSurfaceHeightPairScore"""
9711  _IMP_core.HarmonicSurfaceHeightPairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceHeightPairScore(*args))
9712 
9713  def do_get_inputs(self, m, pis):
9714  r"""do_get_inputs(HarmonicSurfaceHeightPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9715  return _IMP_core.HarmonicSurfaceHeightPairScore_do_get_inputs(self, m, pis)
9716 
9717  def get_version_info(self):
9718  r"""get_version_info(HarmonicSurfaceHeightPairScore self) -> VersionInfo"""
9719  return _IMP_core.HarmonicSurfaceHeightPairScore_get_version_info(self)
9720  __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceHeightPairScore
9721 
9722  def __str__(self):
9723  r"""__str__(HarmonicSurfaceHeightPairScore self) -> std::string"""
9724  return _IMP_core.HarmonicSurfaceHeightPairScore___str__(self)
9725 
9726  def __repr__(self):
9727  r"""__repr__(HarmonicSurfaceHeightPairScore self) -> std::string"""
9728  return _IMP_core.HarmonicSurfaceHeightPairScore___repr__(self)
9729 
9730  @staticmethod
9731  def get_from(o):
9732  return _object_cast_to_HarmonicSurfaceHeightPairScore(o)
9733 
9734 
9735 # Register HarmonicSurfaceHeightPairScore in _IMP_core:
9736 _IMP_core.HarmonicSurfaceHeightPairScore_swigregister(HarmonicSurfaceHeightPairScore)
9737 class HarmonicSurfaceDepthPairScore(IMP.PairScore):
9738  r"""Proxy of C++ IMP::core::HarmonicSurfaceDepthPairScore class."""
9739 
9740  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9741 
9742  def __init__(self, *args):
9743  r"""__init__(HarmonicSurfaceDepthPairScore self, double x0, double k, std::string name="HarmonicSurfaceDepthPairScore%1%") -> HarmonicSurfaceDepthPairScore"""
9744  _IMP_core.HarmonicSurfaceDepthPairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceDepthPairScore(*args))
9745 
9746  def do_get_inputs(self, m, pis):
9747  r"""do_get_inputs(HarmonicSurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9748  return _IMP_core.HarmonicSurfaceDepthPairScore_do_get_inputs(self, m, pis)
9749 
9750  def get_version_info(self):
9751  r"""get_version_info(HarmonicSurfaceDepthPairScore self) -> VersionInfo"""
9752  return _IMP_core.HarmonicSurfaceDepthPairScore_get_version_info(self)
9753  __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceDepthPairScore
9754 
9755  def __str__(self):
9756  r"""__str__(HarmonicSurfaceDepthPairScore self) -> std::string"""
9757  return _IMP_core.HarmonicSurfaceDepthPairScore___str__(self)
9758 
9759  def __repr__(self):
9760  r"""__repr__(HarmonicSurfaceDepthPairScore self) -> std::string"""
9761  return _IMP_core.HarmonicSurfaceDepthPairScore___repr__(self)
9762 
9763  @staticmethod
9764  def get_from(o):
9765  return _object_cast_to_HarmonicSurfaceDepthPairScore(o)
9766 
9767 
9768 # Register HarmonicSurfaceDepthPairScore in _IMP_core:
9769 _IMP_core.HarmonicSurfaceDepthPairScore_swigregister(HarmonicSurfaceDepthPairScore)
9770 class SoftSuperSurfacePairScore(IMP.PairScore):
9771  r"""Proxy of C++ IMP::core::SoftSuperSurfacePairScore class."""
9772 
9773  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9774 
9775  def __init__(self, *args):
9776  r"""__init__(SoftSuperSurfacePairScore self, double k, std::string name="SoftSuperSurfacePairScore%1%") -> SoftSuperSurfacePairScore"""
9777  _IMP_core.SoftSuperSurfacePairScore_swiginit(self, _IMP_core.new_SoftSuperSurfacePairScore(*args))
9778 
9779  def do_get_inputs(self, m, pis):
9780  r"""do_get_inputs(SoftSuperSurfacePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9781  return _IMP_core.SoftSuperSurfacePairScore_do_get_inputs(self, m, pis)
9782 
9783  def get_version_info(self):
9784  r"""get_version_info(SoftSuperSurfacePairScore self) -> VersionInfo"""
9785  return _IMP_core.SoftSuperSurfacePairScore_get_version_info(self)
9786  __swig_destroy__ = _IMP_core.delete_SoftSuperSurfacePairScore
9787 
9788  def __str__(self):
9789  r"""__str__(SoftSuperSurfacePairScore self) -> std::string"""
9790  return _IMP_core.SoftSuperSurfacePairScore___str__(self)
9791 
9792  def __repr__(self):
9793  r"""__repr__(SoftSuperSurfacePairScore self) -> std::string"""
9794  return _IMP_core.SoftSuperSurfacePairScore___repr__(self)
9795 
9796  @staticmethod
9797  def get_from(o):
9798  return _object_cast_to_SoftSuperSurfacePairScore(o)
9799 
9800 
9801 # Register SoftSuperSurfacePairScore in _IMP_core:
9802 _IMP_core.SoftSuperSurfacePairScore_swigregister(SoftSuperSurfacePairScore)
9803 class SoftSubSurfacePairScore(IMP.PairScore):
9804  r"""Proxy of C++ IMP::core::SoftSubSurfacePairScore class."""
9805 
9806  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9807 
9808  def __init__(self, *args):
9809  r"""__init__(SoftSubSurfacePairScore self, double k, std::string name="SoftSubSurfacePairScore%1%") -> SoftSubSurfacePairScore"""
9810  _IMP_core.SoftSubSurfacePairScore_swiginit(self, _IMP_core.new_SoftSubSurfacePairScore(*args))
9811 
9812  def do_get_inputs(self, m, pis):
9813  r"""do_get_inputs(SoftSubSurfacePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9814  return _IMP_core.SoftSubSurfacePairScore_do_get_inputs(self, m, pis)
9815 
9816  def get_version_info(self):
9817  r"""get_version_info(SoftSubSurfacePairScore self) -> VersionInfo"""
9818  return _IMP_core.SoftSubSurfacePairScore_get_version_info(self)
9819  __swig_destroy__ = _IMP_core.delete_SoftSubSurfacePairScore
9820 
9821  def __str__(self):
9822  r"""__str__(SoftSubSurfacePairScore self) -> std::string"""
9823  return _IMP_core.SoftSubSurfacePairScore___str__(self)
9824 
9825  def __repr__(self):
9826  r"""__repr__(SoftSubSurfacePairScore self) -> std::string"""
9827  return _IMP_core.SoftSubSurfacePairScore___repr__(self)
9828 
9829  @staticmethod
9830  def get_from(o):
9831  return _object_cast_to_SoftSubSurfacePairScore(o)
9832 
9833 
9834 # Register SoftSubSurfacePairScore in _IMP_core:
9835 _IMP_core.SoftSubSurfacePairScore_swigregister(SoftSubSurfacePairScore)
9836 class SurfaceTetheredChain(IMP.UnaryFunction):
9837  r"""Proxy of C++ IMP::core::SurfaceTetheredChain class."""
9838 
9839  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9840 
9841  def __init__(self, link_num, link_length):
9842  r"""__init__(SurfaceTetheredChain self, int link_num, double link_length) -> SurfaceTetheredChain"""
9843  _IMP_core.SurfaceTetheredChain_swiginit(self, _IMP_core.new_SurfaceTetheredChain(link_num, link_length))
9844 
9845  def get_version_info(self):
9846  r"""get_version_info(SurfaceTetheredChain self) -> VersionInfo"""
9847  return _IMP_core.SurfaceTetheredChain_get_version_info(self)
9848  __swig_destroy__ = _IMP_core.delete_SurfaceTetheredChain
9849 
9850  def get_link_number(self):
9851  r"""get_link_number(SurfaceTetheredChain self) -> int"""
9852  return _IMP_core.SurfaceTetheredChain_get_link_number(self)
9853 
9854  def get_link_length(self):
9855  r"""get_link_length(SurfaceTetheredChain self) -> double"""
9856  return _IMP_core.SurfaceTetheredChain_get_link_length(self)
9857 
9858  def set_link_number(self, N):
9859  r"""set_link_number(SurfaceTetheredChain self, int N)"""
9860  return _IMP_core.SurfaceTetheredChain_set_link_number(self, N)
9861 
9862  def set_link_length(self, b):
9863  r"""set_link_length(SurfaceTetheredChain self, double b)"""
9864  return _IMP_core.SurfaceTetheredChain_set_link_length(self, b)
9865 
9866  def get_distance_at_minimum(self):
9867  r"""get_distance_at_minimum(SurfaceTetheredChain self) -> double"""
9868  return _IMP_core.SurfaceTetheredChain_get_distance_at_minimum(self)
9869 
9870  def get_average_distance(self):
9871  r"""get_average_distance(SurfaceTetheredChain self) -> double"""
9872  return _IMP_core.SurfaceTetheredChain_get_average_distance(self)
9873 
9874  def __str__(self):
9875  r"""__str__(SurfaceTetheredChain self) -> std::string"""
9876  return _IMP_core.SurfaceTetheredChain___str__(self)
9877 
9878  def __repr__(self):
9879  r"""__repr__(SurfaceTetheredChain self) -> std::string"""
9880  return _IMP_core.SurfaceTetheredChain___repr__(self)
9881 
9882  @staticmethod
9883  def get_from(o):
9884  return _object_cast_to_SurfaceTetheredChain(o)
9885 
9886 
9887 # Register SurfaceTetheredChain in _IMP_core:
9888 _IMP_core.SurfaceTetheredChain_swigregister(SurfaceTetheredChain)
9889 class SurfaceSymmetryConstraint(IMP.Constraint):
9890  r"""Proxy of C++ IMP::core::SurfaceSymmetryConstraint class."""
9891 
9892  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9893 
9894  def __init__(self, m, ss, rbs):
9895  r"""__init__(SurfaceSymmetryConstraint self, Model m, IMP::ParticleIndexPair const & ss, IMP::ParticleIndexPair const & rbs) -> SurfaceSymmetryConstraint"""
9896  _IMP_core.SurfaceSymmetryConstraint_swiginit(self, _IMP_core.new_SurfaceSymmetryConstraint(m, ss, rbs))
9897 
9898  def do_get_inputs(self):
9899  r"""do_get_inputs(SurfaceSymmetryConstraint self) -> IMP::ModelObjectsTemp"""
9900  return _IMP_core.SurfaceSymmetryConstraint_do_get_inputs(self)
9901 
9902  def do_get_outputs(self):
9903  r"""do_get_outputs(SurfaceSymmetryConstraint self) -> IMP::ModelObjectsTemp"""
9904  return _IMP_core.SurfaceSymmetryConstraint_do_get_outputs(self)
9905 
9906  def get_version_info(self):
9907  r"""get_version_info(SurfaceSymmetryConstraint self) -> VersionInfo"""
9908  return _IMP_core.SurfaceSymmetryConstraint_get_version_info(self)
9909  __swig_destroy__ = _IMP_core.delete_SurfaceSymmetryConstraint
9910 
9911  def __str__(self):
9912  r"""__str__(SurfaceSymmetryConstraint self) -> std::string"""
9913  return _IMP_core.SurfaceSymmetryConstraint___str__(self)
9914 
9915  def __repr__(self):
9916  r"""__repr__(SurfaceSymmetryConstraint self) -> std::string"""
9917  return _IMP_core.SurfaceSymmetryConstraint___repr__(self)
9918 
9919  @staticmethod
9920  def get_from(o):
9921  return _object_cast_to_SurfaceSymmetryConstraint(o)
9922 
9923 
9924 # Register SurfaceSymmetryConstraint in _IMP_core:
9925 _IMP_core.SurfaceSymmetryConstraint_swigregister(SurfaceSymmetryConstraint)
9926 class SteepestDescent(IMP.AttributeOptimizer):
9927  r"""Proxy of C++ IMP::core::SteepestDescent class."""
9928 
9929  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9930 
9931  def __init__(self, *args):
9932  r"""__init__(SteepestDescent self, Model m, std::string name="SteepestDescent%1%") -> SteepestDescent"""
9933  _IMP_core.SteepestDescent_swiginit(self, _IMP_core.new_SteepestDescent(*args))
9934 
9935  def do_optimize(self, max_steps):
9936  r"""do_optimize(SteepestDescent self, unsigned int max_steps) -> IMP::Float"""
9937  return _IMP_core.SteepestDescent_do_optimize(self, max_steps)
9938 
9939  def get_version_info(self):
9940  r"""get_version_info(SteepestDescent self) -> VersionInfo"""
9941  return _IMP_core.SteepestDescent_get_version_info(self)
9942  __swig_destroy__ = _IMP_core.delete_SteepestDescent
9943 
9944  def set_threshold(self, t):
9945  r"""set_threshold(SteepestDescent self, IMP::Float t)"""
9946  return _IMP_core.SteepestDescent_set_threshold(self, t)
9947 
9948  def set_step_size(self, t):
9949  r"""set_step_size(SteepestDescent self, IMP::Float t)"""
9950  return _IMP_core.SteepestDescent_set_step_size(self, t)
9951 
9952  def set_maximum_step_size(self, t):
9953  r"""set_maximum_step_size(SteepestDescent self, IMP::Float t)"""
9954  return _IMP_core.SteepestDescent_set_maximum_step_size(self, t)
9955 
9956  def __str__(self):
9957  r"""__str__(SteepestDescent self) -> std::string"""
9958  return _IMP_core.SteepestDescent___str__(self)
9959 
9960  def __repr__(self):
9961  r"""__repr__(SteepestDescent self) -> std::string"""
9962  return _IMP_core.SteepestDescent___repr__(self)
9963 
9964  @staticmethod
9965  def get_from(o):
9966  return _object_cast_to_SteepestDescent(o)
9967 
9968 
9969 # Register SteepestDescent in _IMP_core:
9970 _IMP_core.SteepestDescent_swigregister(SteepestDescent)
9971 class TransformedDistancePairScore(IMP.PairScore):
9972  r"""Proxy of C++ IMP::core::TransformedDistancePairScore class."""
9973 
9974  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9975 
9976  def __init__(self, f, transformation):
9977  r"""__init__(TransformedDistancePairScore self, UnaryFunction f, Transformation3D transformation) -> TransformedDistancePairScore"""
9978  _IMP_core.TransformedDistancePairScore_swiginit(self, _IMP_core.new_TransformedDistancePairScore(f, transformation))
9979 
9980  def set_transformation(self, rot):
9981  r"""set_transformation(TransformedDistancePairScore self, Transformation3D rot)"""
9982  return _IMP_core.TransformedDistancePairScore_set_transformation(self, rot)
9983 
9984  def do_get_inputs(self, m, pis):
9985  r"""do_get_inputs(TransformedDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9986  return _IMP_core.TransformedDistancePairScore_do_get_inputs(self, m, pis)
9987 
9988  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
9989  r"""evaluate_indexes(TransformedDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
9990  return _IMP_core.TransformedDistancePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
9991 
9992  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
9993  r"""evaluate_indexes_scores(TransformedDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
9994  return _IMP_core.TransformedDistancePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
9995 
9996  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
9997  r"""evaluate_indexes_delta(TransformedDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
9998  return _IMP_core.TransformedDistancePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
9999 
10000  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
10001  r"""evaluate_if_good_indexes(TransformedDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
10002  return _IMP_core.TransformedDistancePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
10003 
10004  def get_version_info(self):
10005  r"""get_version_info(TransformedDistancePairScore self) -> VersionInfo"""
10006  return _IMP_core.TransformedDistancePairScore_get_version_info(self)
10007  __swig_destroy__ = _IMP_core.delete_TransformedDistancePairScore
10008 
10009  def __str__(self):
10010  r"""__str__(TransformedDistancePairScore self) -> std::string"""
10011  return _IMP_core.TransformedDistancePairScore___str__(self)
10012 
10013  def __repr__(self):
10014  r"""__repr__(TransformedDistancePairScore self) -> std::string"""
10015  return _IMP_core.TransformedDistancePairScore___repr__(self)
10016 
10017  @staticmethod
10018  def get_from(o):
10019  return _object_cast_to_TransformedDistancePairScore(o)
10020 
10021 
10022 # Register TransformedDistancePairScore in _IMP_core:
10023 _IMP_core.TransformedDistancePairScore_swigregister(TransformedDistancePairScore)
10024 class TypedPairScore(IMP.PairScore):
10025  r"""Proxy of C++ IMP::core::TypedPairScore class."""
10026 
10027  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10028 
10029  def __init__(self, typekey, allow_invalid_types=True):
10030  r"""__init__(TypedPairScore self, IntKey typekey, bool allow_invalid_types=True) -> TypedPairScore"""
10031  _IMP_core.TypedPairScore_swiginit(self, _IMP_core.new_TypedPairScore(typekey, allow_invalid_types))
10032 
10033  def set_particle_type(self, arg2):
10034  r"""set_particle_type(TypedPairScore self, Particle arg2)"""
10035  return _IMP_core.TypedPairScore_set_particle_type(self, arg2)
10036 
10037  def set_pair_score(self, ps, atype, btype):
10038  r"""set_pair_score(TypedPairScore self, PairScore ps, IMP::Int atype, IMP::Int btype)"""
10039  return _IMP_core.TypedPairScore_set_pair_score(self, ps, atype, btype)
10040 
10041  def do_get_inputs(self, m, pis):
10042  r"""do_get_inputs(TypedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10043  return _IMP_core.TypedPairScore_do_get_inputs(self, m, pis)
10044 
10045  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
10046  r"""evaluate_indexes(TypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
10047  return _IMP_core.TypedPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
10048 
10049  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
10050  r"""evaluate_indexes_scores(TypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
10051  return _IMP_core.TypedPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
10052 
10053  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
10054  r"""evaluate_indexes_delta(TypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
10055  return _IMP_core.TypedPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
10056 
10057  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
10058  r"""evaluate_if_good_indexes(TypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
10059  return _IMP_core.TypedPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
10060 
10061  def get_version_info(self):
10062  r"""get_version_info(TypedPairScore self) -> VersionInfo"""
10063  return _IMP_core.TypedPairScore_get_version_info(self)
10064  __swig_destroy__ = _IMP_core.delete_TypedPairScore
10065 
10066  def __str__(self):
10067  r"""__str__(TypedPairScore self) -> std::string"""
10068  return _IMP_core.TypedPairScore___str__(self)
10069 
10070  def __repr__(self):
10071  r"""__repr__(TypedPairScore self) -> std::string"""
10072  return _IMP_core.TypedPairScore___repr__(self)
10073 
10074  @staticmethod
10075  def get_from(o):
10076  return _object_cast_to_TypedPairScore(o)
10077 
10078 
10079 # Register TypedPairScore in _IMP_core:
10080 _IMP_core.TypedPairScore_swigregister(TypedPairScore)
10081 class RigidBodyDistancePairScore(KClosePairsPairScore):
10082  r"""Proxy of C++ IMP::core::RigidBodyDistancePairScore class."""
10083 
10084  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10085 
10086  def __init__(self, ps, r):
10087  r"""__init__(RigidBodyDistancePairScore self, PairScore ps, Refiner r) -> RigidBodyDistancePairScore"""
10088  _IMP_core.RigidBodyDistancePairScore_swiginit(self, _IMP_core.new_RigidBodyDistancePairScore(ps, r))
10089 
10090  def __str__(self):
10091  r"""__str__(RigidBodyDistancePairScore self) -> std::string"""
10092  return _IMP_core.RigidBodyDistancePairScore___str__(self)
10093 
10094  def __repr__(self):
10095  r"""__repr__(RigidBodyDistancePairScore self) -> std::string"""
10096  return _IMP_core.RigidBodyDistancePairScore___repr__(self)
10097 
10098  @staticmethod
10099  def get_from(o):
10100  return _object_cast_to_RigidBodyDistancePairScore(o)
10101 
10102  __swig_destroy__ = _IMP_core.delete_RigidBodyDistancePairScore
10103 
10104 # Register RigidBodyDistancePairScore in _IMP_core:
10105 _IMP_core.RigidBodyDistancePairScore_swigregister(RigidBodyDistancePairScore)
10106 class RigidBodyAnglePairScore(IMP.PairScore):
10107  r"""Proxy of C++ IMP::core::RigidBodyAnglePairScore class."""
10108 
10109  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10110 
10111  def __init__(self, f):
10112  r"""__init__(RigidBodyAnglePairScore self, UnaryFunction f) -> RigidBodyAnglePairScore"""
10113  _IMP_core.RigidBodyAnglePairScore_swiginit(self, _IMP_core.new_RigidBodyAnglePairScore(f))
10114 
10115  def do_get_inputs(self, m, pis):
10116  r"""do_get_inputs(RigidBodyAnglePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10117  return _IMP_core.RigidBodyAnglePairScore_do_get_inputs(self, m, pis)
10118 
10119  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
10120  r"""evaluate_indexes(RigidBodyAnglePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
10121  return _IMP_core.RigidBodyAnglePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
10122 
10123  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
10124  r"""evaluate_indexes_scores(RigidBodyAnglePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
10125  return _IMP_core.RigidBodyAnglePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
10126 
10127  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
10128  r"""evaluate_indexes_delta(RigidBodyAnglePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
10129  return _IMP_core.RigidBodyAnglePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
10130 
10131  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
10132  r"""evaluate_if_good_indexes(RigidBodyAnglePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
10133  return _IMP_core.RigidBodyAnglePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
10134 
10135  def get_version_info(self):
10136  r"""get_version_info(RigidBodyAnglePairScore self) -> VersionInfo"""
10137  return _IMP_core.RigidBodyAnglePairScore_get_version_info(self)
10138  __swig_destroy__ = _IMP_core.delete_RigidBodyAnglePairScore
10139 
10140  def __str__(self):
10141  r"""__str__(RigidBodyAnglePairScore self) -> std::string"""
10142  return _IMP_core.RigidBodyAnglePairScore___str__(self)
10143 
10144  def __repr__(self):
10145  r"""__repr__(RigidBodyAnglePairScore self) -> std::string"""
10146  return _IMP_core.RigidBodyAnglePairScore___repr__(self)
10147 
10148  @staticmethod
10149  def get_from(o):
10150  return _object_cast_to_RigidBodyAnglePairScore(o)
10151 
10152 
10153 # Register RigidBodyAnglePairScore in _IMP_core:
10154 _IMP_core.RigidBodyAnglePairScore_swigregister(RigidBodyAnglePairScore)
10155 class TableRefiner(IMP.Refiner):
10156  r"""Proxy of C++ IMP::core::TableRefiner class."""
10157 
10158  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10159 
10160  def __init__(self):
10161  r"""__init__(TableRefiner self) -> TableRefiner"""
10162  _IMP_core.TableRefiner_swiginit(self, _IMP_core.new_TableRefiner())
10163 
10164  def add_particle(self, p, ps):
10165  r"""add_particle(TableRefiner self, Particle p, IMP::ParticlesTemp const & ps)"""
10166  return _IMP_core.TableRefiner_add_particle(self, p, ps)
10167 
10168  def remove_particle(self, p):
10169  r"""remove_particle(TableRefiner self, Particle p)"""
10170  return _IMP_core.TableRefiner_remove_particle(self, p)
10171 
10172  def set_particle(self, p, ps):
10173  r"""set_particle(TableRefiner self, Particle p, IMP::ParticlesTemp const & ps)"""
10174  return _IMP_core.TableRefiner_set_particle(self, p, ps)
10175 
10176  def do_get_inputs(self, m, pis):
10177  r"""do_get_inputs(TableRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10178  return _IMP_core.TableRefiner_do_get_inputs(self, m, pis)
10179 
10180  def get_version_info(self):
10181  r"""get_version_info(TableRefiner self) -> VersionInfo"""
10182  return _IMP_core.TableRefiner_get_version_info(self)
10183  __swig_destroy__ = _IMP_core.delete_TableRefiner
10184 
10185  def __str__(self):
10186  r"""__str__(TableRefiner self) -> std::string"""
10187  return _IMP_core.TableRefiner___str__(self)
10188 
10189  def __repr__(self):
10190  r"""__repr__(TableRefiner self) -> std::string"""
10191  return _IMP_core.TableRefiner___repr__(self)
10192 
10193  @staticmethod
10194  def get_from(o):
10195  return _object_cast_to_TableRefiner(o)
10196 
10197 
10198 # Register TableRefiner in _IMP_core:
10199 _IMP_core.TableRefiner_swigregister(TableRefiner)
10200 LOWER = _IMP_core.LOWER
10201 
10202 BOTH = _IMP_core.BOTH
10203 
10204 UPPER = _IMP_core.UPPER
10205 
10206 class MCCGSampler(IMP.Sampler):
10207  r"""Proxy of C++ IMP::core::MCCGSampler class."""
10208 
10209  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10210 
10211  def __init__(self, *args):
10212  r"""__init__(MCCGSampler self, Model m, std::string name="MCCG Sampler %1%") -> MCCGSampler"""
10213  _IMP_core.MCCGSampler_swiginit(self, _IMP_core.new_MCCGSampler(*args))
10214 
10215  def set_bounding_box(self, bb):
10216  r"""set_bounding_box(MCCGSampler self, BoundingBox3D bb)"""
10217  return _IMP_core.MCCGSampler_set_bounding_box(self, bb)
10218 
10219  def set_number_of_attempts(self, att):
10220  r"""set_number_of_attempts(MCCGSampler self, unsigned int att)"""
10221  return _IMP_core.MCCGSampler_set_number_of_attempts(self, att)
10222 
10223  def set_number_of_monte_carlo_steps(self, cg):
10224  r"""set_number_of_monte_carlo_steps(MCCGSampler self, unsigned int cg)"""
10225  return _IMP_core.MCCGSampler_set_number_of_monte_carlo_steps(self, cg)
10226 
10227  def set_number_of_conjugate_gradient_steps(self, cg):
10228  r"""set_number_of_conjugate_gradient_steps(MCCGSampler self, unsigned int cg)"""
10229  return _IMP_core.MCCGSampler_set_number_of_conjugate_gradient_steps(self, cg)
10230 
10231  def set_max_monte_carlo_step_size(self, *args):
10232  r"""
10233  set_max_monte_carlo_step_size(MCCGSampler self, double d)
10234  set_max_monte_carlo_step_size(MCCGSampler self, FloatKey k, double d)
10235  """
10236  return _IMP_core.MCCGSampler_set_max_monte_carlo_step_size(self, *args)
10237 
10238  def set_is_refining(self, tf):
10239  r"""set_is_refining(MCCGSampler self, bool tf)"""
10240  return _IMP_core.MCCGSampler_set_is_refining(self, tf)
10241 
10242  def set_local_optimizer(self, opt):
10243  r"""set_local_optimizer(MCCGSampler self, Optimizer opt)"""
10244  return _IMP_core.MCCGSampler_set_local_optimizer(self, opt)
10245 
10246  def set_save_rejected_configurations(self, tf):
10247  r"""set_save_rejected_configurations(MCCGSampler self, bool tf)"""
10248  return _IMP_core.MCCGSampler_set_save_rejected_configurations(self, tf)
10249 
10250  def get_rejected_configurations(self):
10251  r"""get_rejected_configurations(MCCGSampler self) -> ConfigurationSet"""
10252  return _IMP_core.MCCGSampler_get_rejected_configurations(self)
10253  def __get_optimizer_states(self): return IMP._list_util.VarList(getdimfunc=self.get_number_of_optimizer_states, getfunc=self.get_optimizer_state, erasefunc=self.erase_optimizer_state, appendfunc=self.add_optimizer_state, extendfunc=self.add_optimizer_states, clearfunc=self.clear_optimizer_states, indexfunc=self._python_index_optimizer_state)
10254  def __set_optimizer_states(self, obj): IMP._list_util.set_varlist(self.optimizer_states, obj)
10255  def __del_optimizer_states(self): IMP._list_util.del_varlist(self.optimizer_states)
10256  optimizer_states = property(__get_optimizer_states, __set_optimizer_states, __del_optimizer_states, doc="List of ##ucnames")
10257 
10258  def remove_optimizer_state(self, d):
10259  r"""remove_optimizer_state(MCCGSampler self, OptimizerState d)"""
10260  return _IMP_core.MCCGSampler_remove_optimizer_state(self, d)
10261 
10262  def _python_index_optimizer_state(self, d, start, stop):
10263  r"""_python_index_optimizer_state(MCCGSampler self, OptimizerState d, unsigned int start, unsigned int stop) -> unsigned int"""
10264  return _IMP_core.MCCGSampler__python_index_optimizer_state(self, d, start, stop)
10265 
10266  def remove_optimizer_states(self, d):
10267  r"""remove_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & d)"""
10268  return _IMP_core.MCCGSampler_remove_optimizer_states(self, d)
10269 
10270  def set_optimizer_states(self, ps):
10271  r"""set_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & ps)"""
10272  return _IMP_core.MCCGSampler_set_optimizer_states(self, ps)
10273 
10274  def set_optimizer_states_order(self, objs):
10275  r"""set_optimizer_states_order(MCCGSampler self, IMP::OptimizerStates const & objs)"""
10276  return _IMP_core.MCCGSampler_set_optimizer_states_order(self, objs)
10277 
10278  def add_optimizer_state(self, obj):
10279  r"""add_optimizer_state(MCCGSampler self, OptimizerState obj) -> unsigned int"""
10280  return _IMP_core.MCCGSampler_add_optimizer_state(self, obj)
10281 
10282  def add_optimizer_states(self, objs):
10283  r"""add_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & objs)"""
10284  return _IMP_core.MCCGSampler_add_optimizer_states(self, objs)
10285 
10286  def clear_optimizer_states(self):
10287  r"""clear_optimizer_states(MCCGSampler self)"""
10288  return _IMP_core.MCCGSampler_clear_optimizer_states(self)
10289 
10290  def get_number_of_optimizer_states(self):
10291  r"""get_number_of_optimizer_states(MCCGSampler self) -> unsigned int"""
10292  return _IMP_core.MCCGSampler_get_number_of_optimizer_states(self)
10293 
10294  def get_has_optimizer_states(self):
10295  r"""get_has_optimizer_states(MCCGSampler self) -> bool"""
10296  return _IMP_core.MCCGSampler_get_has_optimizer_states(self)
10297 
10298  def get_optimizer_state(self, i):
10299  r"""get_optimizer_state(MCCGSampler self, unsigned int i) -> OptimizerState"""
10300  return _IMP_core.MCCGSampler_get_optimizer_state(self, i)
10301 
10302  def get_optimizer_states(self):
10303  r"""get_optimizer_states(MCCGSampler self) -> IMP::OptimizerStates"""
10304  return _IMP_core.MCCGSampler_get_optimizer_states(self)
10305 
10306  def erase_optimizer_state(self, i):
10307  r"""erase_optimizer_state(MCCGSampler self, unsigned int i)"""
10308  return _IMP_core.MCCGSampler_erase_optimizer_state(self, i)
10309 
10310  def reserve_optimizer_states(self, sz):
10311  r"""reserve_optimizer_states(MCCGSampler self, unsigned int sz)"""
10312  return _IMP_core.MCCGSampler_reserve_optimizer_states(self, sz)
10313 
10314  def do_sample(self):
10315  r"""do_sample(MCCGSampler self) -> ConfigurationSet"""
10316  return _IMP_core.MCCGSampler_do_sample(self)
10317 
10318  def get_version_info(self):
10319  r"""get_version_info(MCCGSampler self) -> VersionInfo"""
10320  return _IMP_core.MCCGSampler_get_version_info(self)
10321  __swig_destroy__ = _IMP_core.delete_MCCGSampler
10322 
10323  def __str__(self):
10324  r"""__str__(MCCGSampler self) -> std::string"""
10325  return _IMP_core.MCCGSampler___str__(self)
10326 
10327  def __repr__(self):
10328  r"""__repr__(MCCGSampler self) -> std::string"""
10329  return _IMP_core.MCCGSampler___repr__(self)
10330 
10331  @staticmethod
10332  def get_from(o):
10333  return _object_cast_to_MCCGSampler(o)
10334 
10335 
10336 # Register MCCGSampler in _IMP_core:
10337 _IMP_core.MCCGSampler_swigregister(MCCGSampler)
10338 class MinimumRestraint(IMP.Restraint):
10339  r"""Proxy of C++ IMP::core::MinimumRestraint class."""
10340 
10341  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10342 
10343  def __init__(self, *args):
10344  r"""__init__(MinimumRestraint self, unsigned int num, IMP::Restraints const & rs=IMP::Restraints(), std::string name="MinimumRestraint %1%") -> MinimumRestraint"""
10345  _IMP_core.MinimumRestraint_swiginit(self, _IMP_core.new_MinimumRestraint(*args))
10346 
10347  def do_get_inputs(self):
10348  r"""do_get_inputs(MinimumRestraint self) -> IMP::ModelObjectsTemp"""
10349  return _IMP_core.MinimumRestraint_do_get_inputs(self)
10350 
10351  def get_version_info(self):
10352  r"""get_version_info(MinimumRestraint self) -> VersionInfo"""
10353  return _IMP_core.MinimumRestraint_get_version_info(self)
10354  __swig_destroy__ = _IMP_core.delete_MinimumRestraint
10355  def __get_restraints(self): return IMP._list_util.VarList(getdimfunc=self.get_number_of_restraints, getfunc=self.get_restraint, erasefunc=self.erase_restraint, appendfunc=self.add_restraint, extendfunc=self.add_restraints, clearfunc=self.clear_restraints, indexfunc=self._python_index_restraint)
10356  def __set_restraints(self, obj): IMP._list_util.set_varlist(self.restraints, obj)
10357  def __del_restraints(self): IMP._list_util.del_varlist(self.restraints)
10358  restraints = property(__get_restraints, __set_restraints, __del_restraints, doc="List of ##ucnames")
10359 
10360  def remove_restraint(self, d):
10361  r"""remove_restraint(MinimumRestraint self, Restraint d)"""
10362  return _IMP_core.MinimumRestraint_remove_restraint(self, d)
10363 
10364  def _python_index_restraint(self, d, start, stop):
10365  r"""_python_index_restraint(MinimumRestraint self, Restraint d, unsigned int start, unsigned int stop) -> unsigned int"""
10366  return _IMP_core.MinimumRestraint__python_index_restraint(self, d, start, stop)
10367 
10368  def remove_restraints(self, d):
10369  r"""remove_restraints(MinimumRestraint self, IMP::Restraints const & d)"""
10370  return _IMP_core.MinimumRestraint_remove_restraints(self, d)
10371 
10372  def set_restraints(self, ps):
10373  r"""set_restraints(MinimumRestraint self, IMP::Restraints const & ps)"""
10374  return _IMP_core.MinimumRestraint_set_restraints(self, ps)
10375 
10376  def set_restraints_order(self, objs):
10377  r"""set_restraints_order(MinimumRestraint self, IMP::Restraints const & objs)"""
10378  return _IMP_core.MinimumRestraint_set_restraints_order(self, objs)
10379 
10380  def add_restraint(self, obj):
10381  r"""add_restraint(MinimumRestraint self, Restraint obj) -> unsigned int"""
10382  return _IMP_core.MinimumRestraint_add_restraint(self, obj)
10383 
10384  def add_restraints(self, objs):
10385  r"""add_restraints(MinimumRestraint self, IMP::Restraints const & objs)"""
10386  return _IMP_core.MinimumRestraint_add_restraints(self, objs)
10387 
10388  def clear_restraints(self):
10389  r"""clear_restraints(MinimumRestraint self)"""
10390  return _IMP_core.MinimumRestraint_clear_restraints(self)
10391 
10392  def get_number_of_restraints(self):
10393  r"""get_number_of_restraints(MinimumRestraint self) -> unsigned int"""
10394  return _IMP_core.MinimumRestraint_get_number_of_restraints(self)
10395 
10396  def get_has_restraints(self):
10397  r"""get_has_restraints(MinimumRestraint self) -> bool"""
10398  return _IMP_core.MinimumRestraint_get_has_restraints(self)
10399 
10400  def get_restraint(self, i):
10401  r"""get_restraint(MinimumRestraint self, unsigned int i) -> Restraint"""
10402  return _IMP_core.MinimumRestraint_get_restraint(self, i)
10403 
10404  def get_restraints(self):
10405  r"""get_restraints(MinimumRestraint self) -> IMP::Restraints"""
10406  return _IMP_core.MinimumRestraint_get_restraints(self)
10407 
10408  def erase_restraint(self, i):
10409  r"""erase_restraint(MinimumRestraint self, unsigned int i)"""
10410  return _IMP_core.MinimumRestraint_erase_restraint(self, i)
10411 
10412  def reserve_restraints(self, sz):
10413  r"""reserve_restraints(MinimumRestraint self, unsigned int sz)"""
10414  return _IMP_core.MinimumRestraint_reserve_restraints(self, sz)
10415 
10416  def __str__(self):
10417  r"""__str__(MinimumRestraint self) -> std::string"""
10418  return _IMP_core.MinimumRestraint___str__(self)
10419 
10420  def __repr__(self):
10421  r"""__repr__(MinimumRestraint self) -> std::string"""
10422  return _IMP_core.MinimumRestraint___repr__(self)
10423 
10424  @staticmethod
10425  def get_from(o):
10426  return _object_cast_to_MinimumRestraint(o)
10427 
10428 
10429 # Register MinimumRestraint in _IMP_core:
10430 _IMP_core.MinimumRestraint_swigregister(MinimumRestraint)
10431 class Gaussian(RigidBody):
10432  r"""Proxy of C++ IMP::core::Gaussian class."""
10433 
10434  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10435 
10436  def __init__(self, *args):
10437  r"""
10438  __init__(Gaussian self) -> Gaussian
10439  __init__(Gaussian self, Model m, ParticleIndex id) -> Gaussian
10440  __init__(Gaussian self, _ParticleAdaptor d) -> Gaussian
10441  """
10442  _IMP_core.Gaussian_swiginit(self, _IMP_core.new_Gaussian(*args))
10443 
10444  def show(self, *args):
10445  r"""show(Gaussian self, _ostream out=std::cout)"""
10446  return _IMP_core.Gaussian_show(self, *args)
10447 
10448  @staticmethod
10449  def setup_particle(*args):
10450  r"""
10451  setup_particle(Model m, ParticleIndex pi) -> Gaussian
10452  setup_particle(_ParticleAdaptor pa) -> Gaussian
10453  setup_particle(Model m, ParticleIndex pi, Gaussian3D g) -> Gaussian
10454  setup_particle(_ParticleAdaptor pa, Gaussian3D g) -> Gaussian
10455  """
10456  return _IMP_core.Gaussian_setup_particle(*args)
10457 
10458  @staticmethod
10459  def get_local_covariance_key():
10460  r"""get_local_covariance_key() -> ObjectKey"""
10461  return _IMP_core.Gaussian_get_local_covariance_key()
10462 
10463  @staticmethod
10464  def get_global_covariance_key():
10465  r"""get_global_covariance_key() -> ObjectKey"""
10466  return _IMP_core.Gaussian_get_global_covariance_key()
10467 
10468  @staticmethod
10469  def get_is_setup(*args):
10470  r"""
10471  get_is_setup(_ParticleAdaptor p) -> bool
10472  get_is_setup(Model m, ParticleIndex pi) -> bool
10473  """
10474  return _IMP_core.Gaussian_get_is_setup(*args)
10475 
10476  def get_local_covariance(self):
10477  r"""get_local_covariance(Gaussian self) -> Eigen::Matrix3d"""
10478  return _IMP_core.Gaussian_get_local_covariance(self)
10479 
10480  def get_variances(self):
10481  r"""get_variances(Gaussian self) -> Vector3D"""
10482  return _IMP_core.Gaussian_get_variances(self)
10483 
10484  def get_global_covariance(self):
10485  r"""get_global_covariance(Gaussian self) -> Eigen::Matrix3d"""
10486  return _IMP_core.Gaussian_get_global_covariance(self)
10487 
10488  def get_gaussian(self):
10489  r"""get_gaussian(Gaussian self) -> Gaussian3D"""
10490  return _IMP_core.Gaussian_get_gaussian(self)
10491 
10492  def set_gaussian(self, g):
10493  r"""set_gaussian(Gaussian self, Gaussian3D g)"""
10494  return _IMP_core.Gaussian_set_gaussian(self, g)
10495 
10496  def set_local_covariance(self, covar):
10497  r"""set_local_covariance(Gaussian self, Eigen::Vector3d const covar)"""
10498  return _IMP_core.Gaussian_set_local_covariance(self, covar)
10499 
10500  def set_variances(self, v):
10501  r"""set_variances(Gaussian self, Vector3D v)"""
10502  return _IMP_core.Gaussian_set_variances(self, v)
10503 
10504  def set_global_covariance(self, covar):
10505  r"""set_global_covariance(Gaussian self, Eigen::Matrix3d covar)"""
10506  return _IMP_core.Gaussian_set_global_covariance(self, covar)
10507 
10508  def update_global_covariance(self):
10509  r"""update_global_covariance(Gaussian self)"""
10510  return _IMP_core.Gaussian_update_global_covariance(self)
10511 
10512  def add_attribute(self, *args):
10513  r"""
10514  add_attribute(Gaussian self, FloatKey k, IMP::Float v, bool opt)
10515  add_attribute(Gaussian self, FloatKey a0, IMP::Float a1)
10516  add_attribute(Gaussian self, IntKey a0, IMP::Int a1)
10517  add_attribute(Gaussian self, FloatsKey a0, IMP::Floats a1)
10518  add_attribute(Gaussian self, IntsKey a0, IMP::Ints a1)
10519  add_attribute(Gaussian self, StringKey a0, IMP::String a1)
10520  add_attribute(Gaussian self, ParticleIndexKey a0, Particle a1)
10521  add_attribute(Gaussian self, ObjectKey a0, Object a1)
10522  add_attribute(Gaussian self, SparseFloatKey a0, IMP::Float a1)
10523  add_attribute(Gaussian self, SparseIntKey a0, IMP::Int a1)
10524  add_attribute(Gaussian self, SparseStringKey a0, IMP::String a1)
10525  add_attribute(Gaussian self, SparseParticleIndexKey a0, ParticleIndex a1)
10526  """
10527  return _IMP_core.Gaussian_add_attribute(self, *args)
10528 
10529  def get_value(self, *args):
10530  r"""
10531  get_value(Gaussian self, FloatKey a0) -> IMP::Float
10532  get_value(Gaussian self, IntKey a0) -> IMP::Int
10533  get_value(Gaussian self, FloatsKey a0) -> IMP::Floats
10534  get_value(Gaussian self, IntsKey a0) -> IMP::Ints
10535  get_value(Gaussian self, StringKey a0) -> IMP::String
10536  get_value(Gaussian self, ParticleIndexKey a0) -> Particle
10537  get_value(Gaussian self, ObjectKey a0) -> Object
10538  get_value(Gaussian self, SparseFloatKey a0) -> IMP::Float
10539  get_value(Gaussian self, SparseIntKey a0) -> IMP::Int
10540  get_value(Gaussian self, SparseStringKey a0) -> IMP::String
10541  get_value(Gaussian self, SparseParticleIndexKey a0) -> ParticleIndex
10542  """
10543  return _IMP_core.Gaussian_get_value(self, *args)
10544 
10545  def set_value(self, *args):
10546  r"""
10547  set_value(Gaussian self, FloatKey a0, IMP::Float a1)
10548  set_value(Gaussian self, IntKey a0, IMP::Int a1)
10549  set_value(Gaussian self, FloatsKey a0, IMP::Floats a1)
10550  set_value(Gaussian self, IntsKey a0, IMP::Ints a1)
10551  set_value(Gaussian self, StringKey a0, IMP::String a1)
10552  set_value(Gaussian self, ParticleIndexKey a0, Particle a1)
10553  set_value(Gaussian self, ObjectKey a0, Object a1)
10554  set_value(Gaussian self, SparseFloatKey a0, IMP::Float a1)
10555  set_value(Gaussian self, SparseIntKey a0, IMP::Int a1)
10556  set_value(Gaussian self, SparseStringKey a0, IMP::String a1)
10557  set_value(Gaussian self, SparseParticleIndexKey a0, ParticleIndex a1)
10558  """
10559  return _IMP_core.Gaussian_set_value(self, *args)
10560 
10561  def remove_attribute(self, *args):
10562  r"""
10563  remove_attribute(Gaussian self, FloatKey a0)
10564  remove_attribute(Gaussian self, IntKey a0)
10565  remove_attribute(Gaussian self, FloatsKey a0)
10566  remove_attribute(Gaussian self, IntsKey a0)
10567  remove_attribute(Gaussian self, StringKey a0)
10568  remove_attribute(Gaussian self, ParticleIndexKey a0)
10569  remove_attribute(Gaussian self, ObjectKey a0)
10570  remove_attribute(Gaussian self, SparseFloatKey a0)
10571  remove_attribute(Gaussian self, SparseIntKey a0)
10572  remove_attribute(Gaussian self, SparseStringKey a0)
10573  remove_attribute(Gaussian self, SparseParticleIndexKey a0)
10574  """
10575  return _IMP_core.Gaussian_remove_attribute(self, *args)
10576 
10577  def has_attribute(self, *args):
10578  r"""
10579  has_attribute(Gaussian self, FloatKey a0) -> bool
10580  has_attribute(Gaussian self, IntKey a0) -> bool
10581  has_attribute(Gaussian self, FloatsKey a0) -> bool
10582  has_attribute(Gaussian self, IntsKey a0) -> bool
10583  has_attribute(Gaussian self, StringKey a0) -> bool
10584  has_attribute(Gaussian self, ParticleIndexKey a0) -> bool
10585  has_attribute(Gaussian self, ObjectKey a0) -> bool
10586  has_attribute(Gaussian self, SparseFloatKey a0) -> bool
10587  has_attribute(Gaussian self, SparseIntKey a0) -> bool
10588  has_attribute(Gaussian self, SparseStringKey a0) -> bool
10589  has_attribute(Gaussian self, SparseParticleIndexKey a0) -> bool
10590  """
10591  return _IMP_core.Gaussian_has_attribute(self, *args)
10592 
10593  def get_derivative(self, a0):
10594  r"""get_derivative(Gaussian self, FloatKey a0) -> double"""
10595  return _IMP_core.Gaussian_get_derivative(self, a0)
10596 
10597  def get_name(self):
10598  r"""get_name(Gaussian self) -> std::string"""
10599  return _IMP_core.Gaussian_get_name(self)
10600 
10601  def clear_caches(self):
10602  r"""clear_caches(Gaussian self)"""
10603  return _IMP_core.Gaussian_clear_caches(self)
10604 
10605  def set_name(self, a0):
10606  r"""set_name(Gaussian self, std::string a0)"""
10607  return _IMP_core.Gaussian_set_name(self, a0)
10608 
10609  def set_check_level(self, a0):
10610  r"""set_check_level(Gaussian self, IMP::CheckLevel a0)"""
10611  return _IMP_core.Gaussian_set_check_level(self, a0)
10612 
10613  def add_to_derivative(self, a0, a1, a2):
10614  r"""add_to_derivative(Gaussian self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
10615  return _IMP_core.Gaussian_add_to_derivative(self, a0, a1, a2)
10616 
10617  def set_is_optimized(self, a0, a1):
10618  r"""set_is_optimized(Gaussian self, FloatKey a0, bool a1)"""
10619  return _IMP_core.Gaussian_set_is_optimized(self, a0, a1)
10620 
10621  def get_is_optimized(self, a0):
10622  r"""get_is_optimized(Gaussian self, FloatKey a0) -> bool"""
10623  return _IMP_core.Gaussian_get_is_optimized(self, a0)
10624 
10625  def get_check_level(self):
10626  r"""get_check_level(Gaussian self) -> IMP::CheckLevel"""
10627  return _IMP_core.Gaussian_get_check_level(self)
10628 
10629  def __eq__(self, *args):
10630  r"""
10631  __eq__(Gaussian self, Gaussian o) -> bool
10632  __eq__(Gaussian self, Particle d) -> bool
10633  """
10634  return _IMP_core.Gaussian___eq__(self, *args)
10635 
10636  def __ne__(self, *args):
10637  r"""
10638  __ne__(Gaussian self, Gaussian o) -> bool
10639  __ne__(Gaussian self, Particle d) -> bool
10640  """
10641  return _IMP_core.Gaussian___ne__(self, *args)
10642 
10643  def __le__(self, *args):
10644  r"""
10645  __le__(Gaussian self, Gaussian o) -> bool
10646  __le__(Gaussian self, Particle d) -> bool
10647  """
10648  return _IMP_core.Gaussian___le__(self, *args)
10649 
10650  def __lt__(self, *args):
10651  r"""
10652  __lt__(Gaussian self, Gaussian o) -> bool
10653  __lt__(Gaussian self, Particle d) -> bool
10654  """
10655  return _IMP_core.Gaussian___lt__(self, *args)
10656 
10657  def __ge__(self, *args):
10658  r"""
10659  __ge__(Gaussian self, Gaussian o) -> bool
10660  __ge__(Gaussian self, Particle d) -> bool
10661  """
10662  return _IMP_core.Gaussian___ge__(self, *args)
10663 
10664  def __gt__(self, *args):
10665  r"""
10666  __gt__(Gaussian self, Gaussian o) -> bool
10667  __gt__(Gaussian self, Particle d) -> bool
10668  """
10669  return _IMP_core.Gaussian___gt__(self, *args)
10670 
10671  def __hash__(self):
10672  r"""__hash__(Gaussian self) -> std::size_t"""
10673  return _IMP_core.Gaussian___hash__(self)
10674 
10675  def __str__(self):
10676  r"""__str__(Gaussian self) -> std::string"""
10677  return _IMP_core.Gaussian___str__(self)
10678 
10679  def __repr__(self):
10680  r"""__repr__(Gaussian self) -> std::string"""
10681  return _IMP_core.Gaussian___repr__(self)
10682 
10683  def _get_as_binary(self):
10684  r"""_get_as_binary(Gaussian self) -> PyObject *"""
10685  return _IMP_core.Gaussian__get_as_binary(self)
10686 
10687  def _set_from_binary(self, p):
10688  r"""_set_from_binary(Gaussian self, PyObject * p)"""
10689  return _IMP_core.Gaussian__set_from_binary(self, p)
10690 
10691  def __getstate__(self):
10692  p = self._get_as_binary()
10693  if len(self.__dict__) > 1:
10694  d = self.__dict__.copy()
10695  del d['this']
10696  p = (d, p)
10697  return p
10698 
10699  def __setstate__(self, p):
10700  if not hasattr(self, 'this'):
10701  self.__init__()
10702  if isinstance(p, tuple):
10703  d, p = p
10704  self.__dict__.update(d)
10705  return self._set_from_binary(p)
10706 
10707  __swig_destroy__ = _IMP_core.delete_Gaussian
10708 
10709 # Register Gaussian in _IMP_core:
10710 _IMP_core.Gaussian_swigregister(Gaussian)
10711 class PairRestraint(IMP.Restraint):
10712  r"""Proxy of C++ IMP::core::PairRestraint class."""
10713 
10714  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10715 
10716  def __init__(self, *args):
10717  r"""
10718  __init__(PairRestraint self, Model m, PairScore ss, IMP::ParticleIndexPair const & vt, std::string name="PairRestraint %1%") -> PairRestraint
10719  __init__(PairRestraint self) -> PairRestraint
10720  """
10721  _IMP_core.PairRestraint_swiginit(self, _IMP_core.new_PairRestraint(*args))
10722 
10723  def get_version_info(self):
10724  r"""get_version_info(PairRestraint self) -> VersionInfo"""
10725  return _IMP_core.PairRestraint_get_version_info(self)
10726  __swig_destroy__ = _IMP_core.delete_PairRestraint
10727 
10728  def __str__(self):
10729  r"""__str__(PairRestraint self) -> std::string"""
10730  return _IMP_core.PairRestraint___str__(self)
10731 
10732  def __repr__(self):
10733  r"""__repr__(PairRestraint self) -> std::string"""
10734  return _IMP_core.PairRestraint___repr__(self)
10735 
10736  @staticmethod
10737  def get_from(o):
10738  return _object_cast_to_PairRestraint(o)
10739 
10740 
10741  def _get_as_binary(self):
10742  r"""_get_as_binary(PairRestraint self) -> PyObject *"""
10743  return _IMP_core.PairRestraint__get_as_binary(self)
10744 
10745  def _set_from_binary(self, p):
10746  r"""_set_from_binary(PairRestraint self, PyObject * p)"""
10747  return _IMP_core.PairRestraint__set_from_binary(self, p)
10748 
10749  def __getstate__(self):
10750  p = self._get_as_binary()
10751  if len(self.__dict__) > 1:
10752  d = self.__dict__.copy()
10753  del d['this']
10754  p = (d, p)
10755  return p
10756 
10757  def __setstate__(self, p):
10758  if not hasattr(self, 'this'):
10759  self.__init__()
10760  if isinstance(p, tuple):
10761  d, p = p
10762  self.__dict__.update(d)
10763  return self._set_from_binary(p)
10764 
10765 
10766 # Register PairRestraint in _IMP_core:
10767 _IMP_core.PairRestraint_swigregister(PairRestraint)
10768 class SingletonRestraint(IMP.Restraint):
10769  r"""Proxy of C++ IMP::core::SingletonRestraint class."""
10770 
10771  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10772 
10773  def __init__(self, *args):
10774  r"""
10775  __init__(SingletonRestraint self, Model m, SingletonScore ss, ParticleIndex vt, std::string name="SingletonRestraint %1%") -> SingletonRestraint
10776  __init__(SingletonRestraint self) -> SingletonRestraint
10777  """
10778  _IMP_core.SingletonRestraint_swiginit(self, _IMP_core.new_SingletonRestraint(*args))
10779 
10780  def get_version_info(self):
10781  r"""get_version_info(SingletonRestraint self) -> VersionInfo"""
10782  return _IMP_core.SingletonRestraint_get_version_info(self)
10783  __swig_destroy__ = _IMP_core.delete_SingletonRestraint
10784 
10785  def __str__(self):
10786  r"""__str__(SingletonRestraint self) -> std::string"""
10787  return _IMP_core.SingletonRestraint___str__(self)
10788 
10789  def __repr__(self):
10790  r"""__repr__(SingletonRestraint self) -> std::string"""
10791  return _IMP_core.SingletonRestraint___repr__(self)
10792 
10793  @staticmethod
10794  def get_from(o):
10795  return _object_cast_to_SingletonRestraint(o)
10796 
10797 
10798  def _get_as_binary(self):
10799  r"""_get_as_binary(SingletonRestraint self) -> PyObject *"""
10800  return _IMP_core.SingletonRestraint__get_as_binary(self)
10801 
10802  def _set_from_binary(self, p):
10803  r"""_set_from_binary(SingletonRestraint self, PyObject * p)"""
10804  return _IMP_core.SingletonRestraint__set_from_binary(self, p)
10805 
10806  def __getstate__(self):
10807  p = self._get_as_binary()
10808  if len(self.__dict__) > 1:
10809  d = self.__dict__.copy()
10810  del d['this']
10811  p = (d, p)
10812  return p
10813 
10814  def __setstate__(self, p):
10815  if not hasattr(self, 'this'):
10816  self.__init__()
10817  if isinstance(p, tuple):
10818  d, p = p
10819  self.__dict__.update(d)
10820  return self._set_from_binary(p)
10821 
10822 
10823 # Register SingletonRestraint in _IMP_core:
10824 _IMP_core.SingletonRestraint_swigregister(SingletonRestraint)
10825 class TripletRestraint(IMP.Restraint):
10826  r"""Proxy of C++ IMP::core::TripletRestraint class."""
10827 
10828  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10829 
10830  def __init__(self, *args):
10831  r"""
10832  __init__(TripletRestraint self, Model m, TripletScore ss, IMP::ParticleIndexTriplet const & vt, std::string name="TripletRestraint %1%") -> TripletRestraint
10833  __init__(TripletRestraint self) -> TripletRestraint
10834  """
10835  _IMP_core.TripletRestraint_swiginit(self, _IMP_core.new_TripletRestraint(*args))
10836 
10837  def get_version_info(self):
10838  r"""get_version_info(TripletRestraint self) -> VersionInfo"""
10839  return _IMP_core.TripletRestraint_get_version_info(self)
10840  __swig_destroy__ = _IMP_core.delete_TripletRestraint
10841 
10842  def __str__(self):
10843  r"""__str__(TripletRestraint self) -> std::string"""
10844  return _IMP_core.TripletRestraint___str__(self)
10845 
10846  def __repr__(self):
10847  r"""__repr__(TripletRestraint self) -> std::string"""
10848  return _IMP_core.TripletRestraint___repr__(self)
10849 
10850  @staticmethod
10851  def get_from(o):
10852  return _object_cast_to_TripletRestraint(o)
10853 
10854 
10855  def _get_as_binary(self):
10856  r"""_get_as_binary(TripletRestraint self) -> PyObject *"""
10857  return _IMP_core.TripletRestraint__get_as_binary(self)
10858 
10859  def _set_from_binary(self, p):
10860  r"""_set_from_binary(TripletRestraint self, PyObject * p)"""
10861  return _IMP_core.TripletRestraint__set_from_binary(self, p)
10862 
10863  def __getstate__(self):
10864  p = self._get_as_binary()
10865  if len(self.__dict__) > 1:
10866  d = self.__dict__.copy()
10867  del d['this']
10868  p = (d, p)
10869  return p
10870 
10871  def __setstate__(self, p):
10872  if not hasattr(self, 'this'):
10873  self.__init__()
10874  if isinstance(p, tuple):
10875  d, p = p
10876  self.__dict__.update(d)
10877  return self._set_from_binary(p)
10878 
10879 
10880 # Register TripletRestraint in _IMP_core:
10881 _IMP_core.TripletRestraint_swigregister(TripletRestraint)
10882 class QuadRestraint(IMP.Restraint):
10883  r"""Proxy of C++ IMP::core::QuadRestraint class."""
10884 
10885  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10886 
10887  def __init__(self, *args):
10888  r"""
10889  __init__(QuadRestraint self, Model m, QuadScore ss, IMP::ParticleIndexQuad const & vt, std::string name="QuadRestraint %1%") -> QuadRestraint
10890  __init__(QuadRestraint self) -> QuadRestraint
10891  """
10892  _IMP_core.QuadRestraint_swiginit(self, _IMP_core.new_QuadRestraint(*args))
10893 
10894  def get_version_info(self):
10895  r"""get_version_info(QuadRestraint self) -> VersionInfo"""
10896  return _IMP_core.QuadRestraint_get_version_info(self)
10897  __swig_destroy__ = _IMP_core.delete_QuadRestraint
10898 
10899  def __str__(self):
10900  r"""__str__(QuadRestraint self) -> std::string"""
10901  return _IMP_core.QuadRestraint___str__(self)
10902 
10903  def __repr__(self):
10904  r"""__repr__(QuadRestraint self) -> std::string"""
10905  return _IMP_core.QuadRestraint___repr__(self)
10906 
10907  @staticmethod
10908  def get_from(o):
10909  return _object_cast_to_QuadRestraint(o)
10910 
10911 
10912  def _get_as_binary(self):
10913  r"""_get_as_binary(QuadRestraint self) -> PyObject *"""
10914  return _IMP_core.QuadRestraint__get_as_binary(self)
10915 
10916  def _set_from_binary(self, p):
10917  r"""_set_from_binary(QuadRestraint self, PyObject * p)"""
10918  return _IMP_core.QuadRestraint__set_from_binary(self, p)
10919 
10920  def __getstate__(self):
10921  p = self._get_as_binary()
10922  if len(self.__dict__) > 1:
10923  d = self.__dict__.copy()
10924  del d['this']
10925  p = (d, p)
10926  return p
10927 
10928  def __setstate__(self, p):
10929  if not hasattr(self, 'this'):
10930  self.__init__()
10931  if isinstance(p, tuple):
10932  d, p = p
10933  self.__dict__.update(d)
10934  return self._set_from_binary(p)
10935 
10936 
10937 # Register QuadRestraint in _IMP_core:
10938 _IMP_core.QuadRestraint_swigregister(QuadRestraint)
10939 class SingletonConstraint(IMP.Constraint):
10940  r"""Proxy of C++ IMP::core::SingletonConstraint class."""
10941 
10942  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10943 
10944  def __init__(self, *args):
10945  r"""
10946  __init__(SingletonConstraint self, SingletonModifier before, SingletonModifier after, Model m, ParticleIndex vt, std::string name="SingletonConstraint %1%", bool can_skip=False) -> SingletonConstraint
10947  __init__(SingletonConstraint self) -> SingletonConstraint
10948  """
10949  _IMP_core.SingletonConstraint_swiginit(self, _IMP_core.new_SingletonConstraint(*args))
10950 
10951  def get_version_info(self):
10952  r"""get_version_info(SingletonConstraint self) -> VersionInfo"""
10953  return _IMP_core.SingletonConstraint_get_version_info(self)
10954  __swig_destroy__ = _IMP_core.delete_SingletonConstraint
10955 
10956  def __str__(self):
10957  r"""__str__(SingletonConstraint self) -> std::string"""
10958  return _IMP_core.SingletonConstraint___str__(self)
10959 
10960  def __repr__(self):
10961  r"""__repr__(SingletonConstraint self) -> std::string"""
10962  return _IMP_core.SingletonConstraint___repr__(self)
10963 
10964  @staticmethod
10965  def get_from(o):
10966  return _object_cast_to_SingletonConstraint(o)
10967 
10968 
10969  def _get_as_binary(self):
10970  r"""_get_as_binary(SingletonConstraint self) -> PyObject *"""
10971  return _IMP_core.SingletonConstraint__get_as_binary(self)
10972 
10973  def _set_from_binary(self, p):
10974  r"""_set_from_binary(SingletonConstraint self, PyObject * p)"""
10975  return _IMP_core.SingletonConstraint__set_from_binary(self, p)
10976 
10977  def __getstate__(self):
10978  p = self._get_as_binary()
10979  if len(self.__dict__) > 1:
10980  d = self.__dict__.copy()
10981  del d['this']
10982  p = (d, p)
10983  return p
10984 
10985  def __setstate__(self, p):
10986  if not hasattr(self, 'this'):
10987  self.__init__()
10988  if isinstance(p, tuple):
10989  d, p = p
10990  self.__dict__.update(d)
10991  return self._set_from_binary(p)
10992 
10993 
10994 # Register SingletonConstraint in _IMP_core:
10995 _IMP_core.SingletonConstraint_swigregister(SingletonConstraint)
10996 class PairConstraint(IMP.Constraint):
10997  r"""Proxy of C++ IMP::core::PairConstraint class."""
10998 
10999  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11000 
11001  def __init__(self, *args):
11002  r"""
11003  __init__(PairConstraint self, PairModifier before, PairModifier after, Model m, IMP::ParticleIndexPair const & vt, std::string name="PairConstraint %1%", bool can_skip=False) -> PairConstraint
11004  __init__(PairConstraint self) -> PairConstraint
11005  """
11006  _IMP_core.PairConstraint_swiginit(self, _IMP_core.new_PairConstraint(*args))
11007 
11008  def get_version_info(self):
11009  r"""get_version_info(PairConstraint self) -> VersionInfo"""
11010  return _IMP_core.PairConstraint_get_version_info(self)
11011  __swig_destroy__ = _IMP_core.delete_PairConstraint
11012 
11013  def __str__(self):
11014  r"""__str__(PairConstraint self) -> std::string"""
11015  return _IMP_core.PairConstraint___str__(self)
11016 
11017  def __repr__(self):
11018  r"""__repr__(PairConstraint self) -> std::string"""
11019  return _IMP_core.PairConstraint___repr__(self)
11020 
11021  @staticmethod
11022  def get_from(o):
11023  return _object_cast_to_PairConstraint(o)
11024 
11025 
11026  def _get_as_binary(self):
11027  r"""_get_as_binary(PairConstraint self) -> PyObject *"""
11028  return _IMP_core.PairConstraint__get_as_binary(self)
11029 
11030  def _set_from_binary(self, p):
11031  r"""_set_from_binary(PairConstraint self, PyObject * p)"""
11032  return _IMP_core.PairConstraint__set_from_binary(self, p)
11033 
11034  def __getstate__(self):
11035  p = self._get_as_binary()
11036  if len(self.__dict__) > 1:
11037  d = self.__dict__.copy()
11038  del d['this']
11039  p = (d, p)
11040  return p
11041 
11042  def __setstate__(self, p):
11043  if not hasattr(self, 'this'):
11044  self.__init__()
11045  if isinstance(p, tuple):
11046  d, p = p
11047  self.__dict__.update(d)
11048  return self._set_from_binary(p)
11049 
11050 
11051 # Register PairConstraint in _IMP_core:
11052 _IMP_core.PairConstraint_swigregister(PairConstraint)
11053 class TripletConstraint(IMP.Constraint):
11054  r"""Proxy of C++ IMP::core::TripletConstraint class."""
11055 
11056  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11057 
11058  def __init__(self, *args):
11059  r"""
11060  __init__(TripletConstraint self, TripletModifier before, TripletModifier after, Model m, IMP::ParticleIndexTriplet const & vt, std::string name="TripletConstraint %1%", bool can_skip=False) -> TripletConstraint
11061  __init__(TripletConstraint self) -> TripletConstraint
11062  """
11063  _IMP_core.TripletConstraint_swiginit(self, _IMP_core.new_TripletConstraint(*args))
11064 
11065  def get_version_info(self):
11066  r"""get_version_info(TripletConstraint self) -> VersionInfo"""
11067  return _IMP_core.TripletConstraint_get_version_info(self)
11068  __swig_destroy__ = _IMP_core.delete_TripletConstraint
11069 
11070  def __str__(self):
11071  r"""__str__(TripletConstraint self) -> std::string"""
11072  return _IMP_core.TripletConstraint___str__(self)
11073 
11074  def __repr__(self):
11075  r"""__repr__(TripletConstraint self) -> std::string"""
11076  return _IMP_core.TripletConstraint___repr__(self)
11077 
11078  @staticmethod
11079  def get_from(o):
11080  return _object_cast_to_TripletConstraint(o)
11081 
11082 
11083  def _get_as_binary(self):
11084  r"""_get_as_binary(TripletConstraint self) -> PyObject *"""
11085  return _IMP_core.TripletConstraint__get_as_binary(self)
11086 
11087  def _set_from_binary(self, p):
11088  r"""_set_from_binary(TripletConstraint self, PyObject * p)"""
11089  return _IMP_core.TripletConstraint__set_from_binary(self, p)
11090 
11091  def __getstate__(self):
11092  p = self._get_as_binary()
11093  if len(self.__dict__) > 1:
11094  d = self.__dict__.copy()
11095  del d['this']
11096  p = (d, p)
11097  return p
11098 
11099  def __setstate__(self, p):
11100  if not hasattr(self, 'this'):
11101  self.__init__()
11102  if isinstance(p, tuple):
11103  d, p = p
11104  self.__dict__.update(d)
11105  return self._set_from_binary(p)
11106 
11107 
11108 # Register TripletConstraint in _IMP_core:
11109 _IMP_core.TripletConstraint_swigregister(TripletConstraint)
11110 class QuadConstraint(IMP.Constraint):
11111  r"""Proxy of C++ IMP::core::QuadConstraint class."""
11112 
11113  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11114 
11115  def __init__(self, *args):
11116  r"""
11117  __init__(QuadConstraint self, QuadModifier before, QuadModifier after, Model m, IMP::ParticleIndexQuad const & vt, std::string name="QuadConstraint %1%", bool can_skip=False) -> QuadConstraint
11118  __init__(QuadConstraint self) -> QuadConstraint
11119  """
11120  _IMP_core.QuadConstraint_swiginit(self, _IMP_core.new_QuadConstraint(*args))
11121 
11122  def get_version_info(self):
11123  r"""get_version_info(QuadConstraint self) -> VersionInfo"""
11124  return _IMP_core.QuadConstraint_get_version_info(self)
11125  __swig_destroy__ = _IMP_core.delete_QuadConstraint
11126 
11127  def __str__(self):
11128  r"""__str__(QuadConstraint self) -> std::string"""
11129  return _IMP_core.QuadConstraint___str__(self)
11130 
11131  def __repr__(self):
11132  r"""__repr__(QuadConstraint self) -> std::string"""
11133  return _IMP_core.QuadConstraint___repr__(self)
11134 
11135  @staticmethod
11136  def get_from(o):
11137  return _object_cast_to_QuadConstraint(o)
11138 
11139 
11140  def _get_as_binary(self):
11141  r"""_get_as_binary(QuadConstraint self) -> PyObject *"""
11142  return _IMP_core.QuadConstraint__get_as_binary(self)
11143 
11144  def _set_from_binary(self, p):
11145  r"""_set_from_binary(QuadConstraint self, PyObject * p)"""
11146  return _IMP_core.QuadConstraint__set_from_binary(self, p)
11147 
11148  def __getstate__(self):
11149  p = self._get_as_binary()
11150  if len(self.__dict__) > 1:
11151  d = self.__dict__.copy()
11152  del d['this']
11153  p = (d, p)
11154  return p
11155 
11156  def __setstate__(self, p):
11157  if not hasattr(self, 'this'):
11158  self.__init__()
11159  if isinstance(p, tuple):
11160  d, p = p
11161  self.__dict__.update(d)
11162  return self._set_from_binary(p)
11163 
11164 
11165 # Register QuadConstraint in _IMP_core:
11166 _IMP_core.QuadConstraint_swigregister(QuadConstraint)
11167 class ConstantSingletonPredicate(IMP.SingletonPredicate):
11168  r"""Proxy of C++ IMP::core::ConstantSingletonPredicate class."""
11169 
11170  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11171 
11172  def __init__(self, *args):
11173  r"""
11174  __init__(ConstantSingletonPredicate self, int v, std::string name="ConstSingletonPredicate%1%") -> ConstantSingletonPredicate
11175  __init__(ConstantSingletonPredicate self) -> ConstantSingletonPredicate
11176  """
11177  _IMP_core.ConstantSingletonPredicate_swiginit(self, _IMP_core.new_ConstantSingletonPredicate(*args))
11178 
11179  def do_get_inputs(self, arg2, arg3):
11180  r"""do_get_inputs(ConstantSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11181  return _IMP_core.ConstantSingletonPredicate_do_get_inputs(self, arg2, arg3)
11182 
11183  def get_value(self, *args):
11184  r"""
11185  get_value(ConstantSingletonPredicate self, Particle a) -> int
11186  get_value(ConstantSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11187  """
11188  return _IMP_core.ConstantSingletonPredicate_get_value(self, *args)
11189 
11190  def get_value_index(self, *args):
11191  r"""
11192  get_value_index(ConstantSingletonPredicate self, Model arg2, ParticleIndex arg3) -> int
11193  get_value_index(ConstantSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11194  """
11195  return _IMP_core.ConstantSingletonPredicate_get_value_index(self, *args)
11196 
11197  def get_version_info(self):
11198  r"""get_version_info(ConstantSingletonPredicate self) -> VersionInfo"""
11199  return _IMP_core.ConstantSingletonPredicate_get_version_info(self)
11200  __swig_destroy__ = _IMP_core.delete_ConstantSingletonPredicate
11201 
11202  def __str__(self):
11203  r"""__str__(ConstantSingletonPredicate self) -> std::string"""
11204  return _IMP_core.ConstantSingletonPredicate___str__(self)
11205 
11206  def __repr__(self):
11207  r"""__repr__(ConstantSingletonPredicate self) -> std::string"""
11208  return _IMP_core.ConstantSingletonPredicate___repr__(self)
11209 
11210  @staticmethod
11211  def get_from(o):
11212  return _object_cast_to_ConstantSingletonPredicate(o)
11213 
11214 
11215  def _get_as_binary(self):
11216  r"""_get_as_binary(ConstantSingletonPredicate self) -> PyObject *"""
11217  return _IMP_core.ConstantSingletonPredicate__get_as_binary(self)
11218 
11219  def _set_from_binary(self, p):
11220  r"""_set_from_binary(ConstantSingletonPredicate self, PyObject * p)"""
11221  return _IMP_core.ConstantSingletonPredicate__set_from_binary(self, p)
11222 
11223  def __getstate__(self):
11224  p = self._get_as_binary()
11225  if len(self.__dict__) > 1:
11226  d = self.__dict__.copy()
11227  del d['this']
11228  p = (d, p)
11229  return p
11230 
11231  def __setstate__(self, p):
11232  if not hasattr(self, 'this'):
11233  self.__init__()
11234  if isinstance(p, tuple):
11235  d, p = p
11236  self.__dict__.update(d)
11237  return self._set_from_binary(p)
11238 
11239 
11240 # Register ConstantSingletonPredicate in _IMP_core:
11241 _IMP_core.ConstantSingletonPredicate_swigregister(ConstantSingletonPredicate)
11242 class UnorderedTypeSingletonPredicate(IMP.SingletonPredicate):
11243  r"""Proxy of C++ IMP::core::UnorderedTypeSingletonPredicate class."""
11244 
11245  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11246 
11247  def __init__(self, *args):
11248  r"""__init__(UnorderedTypeSingletonPredicate self, std::string name="UnorderedTypeSingletonPredicate%1%") -> UnorderedTypeSingletonPredicate"""
11249  _IMP_core.UnorderedTypeSingletonPredicate_swiginit(self, _IMP_core.new_UnorderedTypeSingletonPredicate(*args))
11250 
11251  def do_get_inputs(self, m, pis):
11252  r"""do_get_inputs(UnorderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11253  return _IMP_core.UnorderedTypeSingletonPredicate_do_get_inputs(self, m, pis)
11254 
11255  def get_value(self, *args):
11256  r"""
11257  get_value(UnorderedTypeSingletonPredicate self, Particle a) -> int
11258  get_value(UnorderedTypeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11259  """
11260  return _IMP_core.UnorderedTypeSingletonPredicate_get_value(self, *args)
11261 
11262  def get_value_index(self, *args):
11263  r"""
11264  get_value_index(UnorderedTypeSingletonPredicate self, Model m, ParticleIndex pi) -> int
11265  get_value_index(UnorderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11266  """
11267  return _IMP_core.UnorderedTypeSingletonPredicate_get_value_index(self, *args)
11268 
11269  def get_version_info(self):
11270  r"""get_version_info(UnorderedTypeSingletonPredicate self) -> VersionInfo"""
11271  return _IMP_core.UnorderedTypeSingletonPredicate_get_version_info(self)
11272  __swig_destroy__ = _IMP_core.delete_UnorderedTypeSingletonPredicate
11273 
11274  def __str__(self):
11275  r"""__str__(UnorderedTypeSingletonPredicate self) -> std::string"""
11276  return _IMP_core.UnorderedTypeSingletonPredicate___str__(self)
11277 
11278  def __repr__(self):
11279  r"""__repr__(UnorderedTypeSingletonPredicate self) -> std::string"""
11280  return _IMP_core.UnorderedTypeSingletonPredicate___repr__(self)
11281 
11282  @staticmethod
11283  def get_from(o):
11284  return _object_cast_to_UnorderedTypeSingletonPredicate(o)
11285 
11286 
11287  def _get_as_binary(self):
11288  r"""_get_as_binary(UnorderedTypeSingletonPredicate self) -> PyObject *"""
11289  return _IMP_core.UnorderedTypeSingletonPredicate__get_as_binary(self)
11290 
11291  def _set_from_binary(self, p):
11292  r"""_set_from_binary(UnorderedTypeSingletonPredicate self, PyObject * p)"""
11293  return _IMP_core.UnorderedTypeSingletonPredicate__set_from_binary(self, p)
11294 
11295  def __getstate__(self):
11296  p = self._get_as_binary()
11297  if len(self.__dict__) > 1:
11298  d = self.__dict__.copy()
11299  del d['this']
11300  p = (d, p)
11301  return p
11302 
11303  def __setstate__(self, p):
11304  if not hasattr(self, 'this'):
11305  self.__init__()
11306  if isinstance(p, tuple):
11307  d, p = p
11308  self.__dict__.update(d)
11309  return self._set_from_binary(p)
11310 
11311 
11312 # Register UnorderedTypeSingletonPredicate in _IMP_core:
11313 _IMP_core.UnorderedTypeSingletonPredicate_swigregister(UnorderedTypeSingletonPredicate)
11314 class OrderedTypeSingletonPredicate(IMP.SingletonPredicate):
11315  r"""Proxy of C++ IMP::core::OrderedTypeSingletonPredicate class."""
11316 
11317  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11318 
11319  def __init__(self, *args):
11320  r"""__init__(OrderedTypeSingletonPredicate self, std::string name="OrderedTypeSingletonPredicate%1%") -> OrderedTypeSingletonPredicate"""
11321  _IMP_core.OrderedTypeSingletonPredicate_swiginit(self, _IMP_core.new_OrderedTypeSingletonPredicate(*args))
11322 
11323  def do_get_inputs(self, m, pis):
11324  r"""do_get_inputs(OrderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11325  return _IMP_core.OrderedTypeSingletonPredicate_do_get_inputs(self, m, pis)
11326 
11327  def get_value(self, *args):
11328  r"""
11329  get_value(OrderedTypeSingletonPredicate self, IMP::core::ParticleTypes const & types) -> int
11330  get_value(OrderedTypeSingletonPredicate self, Particle a) -> int
11331  get_value(OrderedTypeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11332  """
11333  return _IMP_core.OrderedTypeSingletonPredicate_get_value(self, *args)
11334 
11335  def get_value_index(self, *args):
11336  r"""
11337  get_value_index(OrderedTypeSingletonPredicate self, Model m, ParticleIndex pi) -> int
11338  get_value_index(OrderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11339  """
11340  return _IMP_core.OrderedTypeSingletonPredicate_get_value_index(self, *args)
11341 
11342  def get_version_info(self):
11343  r"""get_version_info(OrderedTypeSingletonPredicate self) -> VersionInfo"""
11344  return _IMP_core.OrderedTypeSingletonPredicate_get_version_info(self)
11345  __swig_destroy__ = _IMP_core.delete_OrderedTypeSingletonPredicate
11346 
11347  def __str__(self):
11348  r"""__str__(OrderedTypeSingletonPredicate self) -> std::string"""
11349  return _IMP_core.OrderedTypeSingletonPredicate___str__(self)
11350 
11351  def __repr__(self):
11352  r"""__repr__(OrderedTypeSingletonPredicate self) -> std::string"""
11353  return _IMP_core.OrderedTypeSingletonPredicate___repr__(self)
11354 
11355  @staticmethod
11356  def get_from(o):
11357  return _object_cast_to_OrderedTypeSingletonPredicate(o)
11358 
11359 
11360 # Register OrderedTypeSingletonPredicate in _IMP_core:
11361 _IMP_core.OrderedTypeSingletonPredicate_swigregister(OrderedTypeSingletonPredicate)
11362 class AllSameSingletonPredicate(IMP.SingletonPredicate):
11363  r"""Proxy of C++ IMP::core::AllSameSingletonPredicate class."""
11364 
11365  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11366 
11367  def __init__(self, *args):
11368  r"""__init__(AllSameSingletonPredicate self, std::string name="AllSameSingletonPredicate%1%") -> AllSameSingletonPredicate"""
11369  _IMP_core.AllSameSingletonPredicate_swiginit(self, _IMP_core.new_AllSameSingletonPredicate(*args))
11370 
11371  def do_get_inputs(self, arg2, arg3):
11372  r"""do_get_inputs(AllSameSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11373  return _IMP_core.AllSameSingletonPredicate_do_get_inputs(self, arg2, arg3)
11374 
11375  def get_value(self, *args):
11376  r"""
11377  get_value(AllSameSingletonPredicate self, Particle a) -> int
11378  get_value(AllSameSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11379  """
11380  return _IMP_core.AllSameSingletonPredicate_get_value(self, *args)
11381 
11382  def get_value_index(self, *args):
11383  r"""
11384  get_value_index(AllSameSingletonPredicate self, Model m, ParticleIndex pi) -> int
11385  get_value_index(AllSameSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11386  """
11387  return _IMP_core.AllSameSingletonPredicate_get_value_index(self, *args)
11388 
11389  def get_version_info(self):
11390  r"""get_version_info(AllSameSingletonPredicate self) -> VersionInfo"""
11391  return _IMP_core.AllSameSingletonPredicate_get_version_info(self)
11392  __swig_destroy__ = _IMP_core.delete_AllSameSingletonPredicate
11393 
11394  def __str__(self):
11395  r"""__str__(AllSameSingletonPredicate self) -> std::string"""
11396  return _IMP_core.AllSameSingletonPredicate___str__(self)
11397 
11398  def __repr__(self):
11399  r"""__repr__(AllSameSingletonPredicate self) -> std::string"""
11400  return _IMP_core.AllSameSingletonPredicate___repr__(self)
11401 
11402  @staticmethod
11403  def get_from(o):
11404  return _object_cast_to_AllSameSingletonPredicate(o)
11405 
11406 
11407  def _get_as_binary(self):
11408  r"""_get_as_binary(AllSameSingletonPredicate self) -> PyObject *"""
11409  return _IMP_core.AllSameSingletonPredicate__get_as_binary(self)
11410 
11411  def _set_from_binary(self, p):
11412  r"""_set_from_binary(AllSameSingletonPredicate self, PyObject * p)"""
11413  return _IMP_core.AllSameSingletonPredicate__set_from_binary(self, p)
11414 
11415  def __getstate__(self):
11416  p = self._get_as_binary()
11417  if len(self.__dict__) > 1:
11418  d = self.__dict__.copy()
11419  del d['this']
11420  p = (d, p)
11421  return p
11422 
11423  def __setstate__(self, p):
11424  if not hasattr(self, 'this'):
11425  self.__init__()
11426  if isinstance(p, tuple):
11427  d, p = p
11428  self.__dict__.update(d)
11429  return self._set_from_binary(p)
11430 
11431 
11432 # Register AllSameSingletonPredicate in _IMP_core:
11433 _IMP_core.AllSameSingletonPredicate_swigregister(AllSameSingletonPredicate)
11434 class CoinFlipSingletonPredicate(IMP.SingletonPredicate):
11435  r"""Proxy of C++ IMP::core::CoinFlipSingletonPredicate class."""
11436 
11437  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11438 
11439  def __init__(self, *args):
11440  r"""__init__(CoinFlipSingletonPredicate self, double p, std::string name="CoinFlipSingletonPredicate%1%") -> CoinFlipSingletonPredicate"""
11441  _IMP_core.CoinFlipSingletonPredicate_swiginit(self, _IMP_core.new_CoinFlipSingletonPredicate(*args))
11442 
11443  def do_get_inputs(self, arg2, arg3):
11444  r"""do_get_inputs(CoinFlipSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11445  return _IMP_core.CoinFlipSingletonPredicate_do_get_inputs(self, arg2, arg3)
11446 
11447  def get_value(self, *args):
11448  r"""
11449  get_value(CoinFlipSingletonPredicate self, Particle a) -> int
11450  get_value(CoinFlipSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11451  """
11452  return _IMP_core.CoinFlipSingletonPredicate_get_value(self, *args)
11453 
11454  def get_value_index(self, *args):
11455  r"""
11456  get_value_index(CoinFlipSingletonPredicate self, Model arg2, ParticleIndex arg3) -> int
11457  get_value_index(CoinFlipSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11458  """
11459  return _IMP_core.CoinFlipSingletonPredicate_get_value_index(self, *args)
11460 
11461  def get_version_info(self):
11462  r"""get_version_info(CoinFlipSingletonPredicate self) -> VersionInfo"""
11463  return _IMP_core.CoinFlipSingletonPredicate_get_version_info(self)
11464  __swig_destroy__ = _IMP_core.delete_CoinFlipSingletonPredicate
11465 
11466  def __str__(self):
11467  r"""__str__(CoinFlipSingletonPredicate self) -> std::string"""
11468  return _IMP_core.CoinFlipSingletonPredicate___str__(self)
11469 
11470  def __repr__(self):
11471  r"""__repr__(CoinFlipSingletonPredicate self) -> std::string"""
11472  return _IMP_core.CoinFlipSingletonPredicate___repr__(self)
11473 
11474  @staticmethod
11475  def get_from(o):
11476  return _object_cast_to_CoinFlipSingletonPredicate(o)
11477 
11478 
11479 # Register CoinFlipSingletonPredicate in _IMP_core:
11480 _IMP_core.CoinFlipSingletonPredicate_swigregister(CoinFlipSingletonPredicate)
11481 class ConstantPairPredicate(IMP.PairPredicate):
11482  r"""Proxy of C++ IMP::core::ConstantPairPredicate class."""
11483 
11484  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11485 
11486  def __init__(self, *args):
11487  r"""
11488  __init__(ConstantPairPredicate self, int v, std::string name="ConstPairPredicate%1%") -> ConstantPairPredicate
11489  __init__(ConstantPairPredicate self) -> ConstantPairPredicate
11490  """
11491  _IMP_core.ConstantPairPredicate_swiginit(self, _IMP_core.new_ConstantPairPredicate(*args))
11492 
11493  def do_get_inputs(self, arg2, arg3):
11494  r"""do_get_inputs(ConstantPairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11495  return _IMP_core.ConstantPairPredicate_do_get_inputs(self, arg2, arg3)
11496 
11497  def get_value(self, *args):
11498  r"""
11499  get_value(ConstantPairPredicate self, IMP::ParticlePair const & a) -> int
11500  get_value(ConstantPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11501  """
11502  return _IMP_core.ConstantPairPredicate_get_value(self, *args)
11503 
11504  def get_value_index(self, *args):
11505  r"""
11506  get_value_index(ConstantPairPredicate self, Model arg2, IMP::ParticleIndexPair const & arg3) -> int
11507  get_value_index(ConstantPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11508  """
11509  return _IMP_core.ConstantPairPredicate_get_value_index(self, *args)
11510 
11511  def get_version_info(self):
11512  r"""get_version_info(ConstantPairPredicate self) -> VersionInfo"""
11513  return _IMP_core.ConstantPairPredicate_get_version_info(self)
11514  __swig_destroy__ = _IMP_core.delete_ConstantPairPredicate
11515 
11516  def __str__(self):
11517  r"""__str__(ConstantPairPredicate self) -> std::string"""
11518  return _IMP_core.ConstantPairPredicate___str__(self)
11519 
11520  def __repr__(self):
11521  r"""__repr__(ConstantPairPredicate self) -> std::string"""
11522  return _IMP_core.ConstantPairPredicate___repr__(self)
11523 
11524  @staticmethod
11525  def get_from(o):
11526  return _object_cast_to_ConstantPairPredicate(o)
11527 
11528 
11529  def _get_as_binary(self):
11530  r"""_get_as_binary(ConstantPairPredicate self) -> PyObject *"""
11531  return _IMP_core.ConstantPairPredicate__get_as_binary(self)
11532 
11533  def _set_from_binary(self, p):
11534  r"""_set_from_binary(ConstantPairPredicate self, PyObject * p)"""
11535  return _IMP_core.ConstantPairPredicate__set_from_binary(self, p)
11536 
11537  def __getstate__(self):
11538  p = self._get_as_binary()
11539  if len(self.__dict__) > 1:
11540  d = self.__dict__.copy()
11541  del d['this']
11542  p = (d, p)
11543  return p
11544 
11545  def __setstate__(self, p):
11546  if not hasattr(self, 'this'):
11547  self.__init__()
11548  if isinstance(p, tuple):
11549  d, p = p
11550  self.__dict__.update(d)
11551  return self._set_from_binary(p)
11552 
11553 
11554 # Register ConstantPairPredicate in _IMP_core:
11555 _IMP_core.ConstantPairPredicate_swigregister(ConstantPairPredicate)
11556 class UnorderedTypePairPredicate(IMP.PairPredicate):
11557  r"""Proxy of C++ IMP::core::UnorderedTypePairPredicate class."""
11558 
11559  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11560 
11561  def __init__(self, *args):
11562  r"""__init__(UnorderedTypePairPredicate self, std::string name="UnorderedTypePairPredicate%1%") -> UnorderedTypePairPredicate"""
11563  _IMP_core.UnorderedTypePairPredicate_swiginit(self, _IMP_core.new_UnorderedTypePairPredicate(*args))
11564 
11565  def do_get_inputs(self, m, pis):
11566  r"""do_get_inputs(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11567  return _IMP_core.UnorderedTypePairPredicate_do_get_inputs(self, m, pis)
11568 
11569  def get_value(self, *args):
11570  r"""
11571  get_value(UnorderedTypePairPredicate self, IMP::ParticlePair const & a) -> int
11572  get_value(UnorderedTypePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11573  """
11574  return _IMP_core.UnorderedTypePairPredicate_get_value(self, *args)
11575 
11576  def get_value_index(self, *args):
11577  r"""
11578  get_value_index(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11579  get_value_index(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11580  """
11581  return _IMP_core.UnorderedTypePairPredicate_get_value_index(self, *args)
11582 
11583  def get_version_info(self):
11584  r"""get_version_info(UnorderedTypePairPredicate self) -> VersionInfo"""
11585  return _IMP_core.UnorderedTypePairPredicate_get_version_info(self)
11586  __swig_destroy__ = _IMP_core.delete_UnorderedTypePairPredicate
11587 
11588  def __str__(self):
11589  r"""__str__(UnorderedTypePairPredicate self) -> std::string"""
11590  return _IMP_core.UnorderedTypePairPredicate___str__(self)
11591 
11592  def __repr__(self):
11593  r"""__repr__(UnorderedTypePairPredicate self) -> std::string"""
11594  return _IMP_core.UnorderedTypePairPredicate___repr__(self)
11595 
11596  @staticmethod
11597  def get_from(o):
11598  return _object_cast_to_UnorderedTypePairPredicate(o)
11599 
11600 
11601  def _get_as_binary(self):
11602  r"""_get_as_binary(UnorderedTypePairPredicate self) -> PyObject *"""
11603  return _IMP_core.UnorderedTypePairPredicate__get_as_binary(self)
11604 
11605  def _set_from_binary(self, p):
11606  r"""_set_from_binary(UnorderedTypePairPredicate self, PyObject * p)"""
11607  return _IMP_core.UnorderedTypePairPredicate__set_from_binary(self, p)
11608 
11609  def __getstate__(self):
11610  p = self._get_as_binary()
11611  if len(self.__dict__) > 1:
11612  d = self.__dict__.copy()
11613  del d['this']
11614  p = (d, p)
11615  return p
11616 
11617  def __setstate__(self, p):
11618  if not hasattr(self, 'this'):
11619  self.__init__()
11620  if isinstance(p, tuple):
11621  d, p = p
11622  self.__dict__.update(d)
11623  return self._set_from_binary(p)
11624 
11625 
11626 # Register UnorderedTypePairPredicate in _IMP_core:
11627 _IMP_core.UnorderedTypePairPredicate_swigregister(UnorderedTypePairPredicate)
11628 class OrderedTypePairPredicate(IMP.PairPredicate):
11629  r"""Proxy of C++ IMP::core::OrderedTypePairPredicate class."""
11630 
11631  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11632 
11633  def __init__(self, *args):
11634  r"""__init__(OrderedTypePairPredicate self, std::string name="OrderedTypePairPredicate%1%") -> OrderedTypePairPredicate"""
11635  _IMP_core.OrderedTypePairPredicate_swiginit(self, _IMP_core.new_OrderedTypePairPredicate(*args))
11636 
11637  def do_get_inputs(self, m, pis):
11638  r"""do_get_inputs(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11639  return _IMP_core.OrderedTypePairPredicate_do_get_inputs(self, m, pis)
11640 
11641  def get_value(self, *args):
11642  r"""
11643  get_value(OrderedTypePairPredicate self, IMP::core::ParticleTypes const & types) -> int
11644  get_value(OrderedTypePairPredicate self, IMP::ParticlePair const & a) -> int
11645  get_value(OrderedTypePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11646  """
11647  return _IMP_core.OrderedTypePairPredicate_get_value(self, *args)
11648 
11649  def get_value_index(self, *args):
11650  r"""
11651  get_value_index(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11652  get_value_index(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11653  """
11654  return _IMP_core.OrderedTypePairPredicate_get_value_index(self, *args)
11655 
11656  def get_version_info(self):
11657  r"""get_version_info(OrderedTypePairPredicate self) -> VersionInfo"""
11658  return _IMP_core.OrderedTypePairPredicate_get_version_info(self)
11659  __swig_destroy__ = _IMP_core.delete_OrderedTypePairPredicate
11660 
11661  def __str__(self):
11662  r"""__str__(OrderedTypePairPredicate self) -> std::string"""
11663  return _IMP_core.OrderedTypePairPredicate___str__(self)
11664 
11665  def __repr__(self):
11666  r"""__repr__(OrderedTypePairPredicate self) -> std::string"""
11667  return _IMP_core.OrderedTypePairPredicate___repr__(self)
11668 
11669  @staticmethod
11670  def get_from(o):
11671  return _object_cast_to_OrderedTypePairPredicate(o)
11672 
11673 
11674 # Register OrderedTypePairPredicate in _IMP_core:
11675 _IMP_core.OrderedTypePairPredicate_swigregister(OrderedTypePairPredicate)
11676 class AllSamePairPredicate(IMP.PairPredicate):
11677  r"""Proxy of C++ IMP::core::AllSamePairPredicate class."""
11678 
11679  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11680 
11681  def __init__(self, *args):
11682  r"""__init__(AllSamePairPredicate self, std::string name="AllSamePairPredicate%1%") -> AllSamePairPredicate"""
11683  _IMP_core.AllSamePairPredicate_swiginit(self, _IMP_core.new_AllSamePairPredicate(*args))
11684 
11685  def do_get_inputs(self, arg2, arg3):
11686  r"""do_get_inputs(AllSamePairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11687  return _IMP_core.AllSamePairPredicate_do_get_inputs(self, arg2, arg3)
11688 
11689  def get_value(self, *args):
11690  r"""
11691  get_value(AllSamePairPredicate self, IMP::ParticlePair const & a) -> int
11692  get_value(AllSamePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11693  """
11694  return _IMP_core.AllSamePairPredicate_get_value(self, *args)
11695 
11696  def get_value_index(self, *args):
11697  r"""
11698  get_value_index(AllSamePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11699  get_value_index(AllSamePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11700  """
11701  return _IMP_core.AllSamePairPredicate_get_value_index(self, *args)
11702 
11703  def get_version_info(self):
11704  r"""get_version_info(AllSamePairPredicate self) -> VersionInfo"""
11705  return _IMP_core.AllSamePairPredicate_get_version_info(self)
11706  __swig_destroy__ = _IMP_core.delete_AllSamePairPredicate
11707 
11708  def __str__(self):
11709  r"""__str__(AllSamePairPredicate self) -> std::string"""
11710  return _IMP_core.AllSamePairPredicate___str__(self)
11711 
11712  def __repr__(self):
11713  r"""__repr__(AllSamePairPredicate self) -> std::string"""
11714  return _IMP_core.AllSamePairPredicate___repr__(self)
11715 
11716  @staticmethod
11717  def get_from(o):
11718  return _object_cast_to_AllSamePairPredicate(o)
11719 
11720 
11721  def _get_as_binary(self):
11722  r"""_get_as_binary(AllSamePairPredicate self) -> PyObject *"""
11723  return _IMP_core.AllSamePairPredicate__get_as_binary(self)
11724 
11725  def _set_from_binary(self, p):
11726  r"""_set_from_binary(AllSamePairPredicate self, PyObject * p)"""
11727  return _IMP_core.AllSamePairPredicate__set_from_binary(self, p)
11728 
11729  def __getstate__(self):
11730  p = self._get_as_binary()
11731  if len(self.__dict__) > 1:
11732  d = self.__dict__.copy()
11733  del d['this']
11734  p = (d, p)
11735  return p
11736 
11737  def __setstate__(self, p):
11738  if not hasattr(self, 'this'):
11739  self.__init__()
11740  if isinstance(p, tuple):
11741  d, p = p
11742  self.__dict__.update(d)
11743  return self._set_from_binary(p)
11744 
11745 
11746 # Register AllSamePairPredicate in _IMP_core:
11747 _IMP_core.AllSamePairPredicate_swigregister(AllSamePairPredicate)
11748 class CoinFlipPairPredicate(IMP.PairPredicate):
11749  r"""Proxy of C++ IMP::core::CoinFlipPairPredicate class."""
11750 
11751  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11752 
11753  def __init__(self, *args):
11754  r"""__init__(CoinFlipPairPredicate self, double p, std::string name="CoinFlipPairPredicate%1%") -> CoinFlipPairPredicate"""
11755  _IMP_core.CoinFlipPairPredicate_swiginit(self, _IMP_core.new_CoinFlipPairPredicate(*args))
11756 
11757  def do_get_inputs(self, arg2, arg3):
11758  r"""do_get_inputs(CoinFlipPairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11759  return _IMP_core.CoinFlipPairPredicate_do_get_inputs(self, arg2, arg3)
11760 
11761  def get_value(self, *args):
11762  r"""
11763  get_value(CoinFlipPairPredicate self, IMP::ParticlePair const & a) -> int
11764  get_value(CoinFlipPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11765  """
11766  return _IMP_core.CoinFlipPairPredicate_get_value(self, *args)
11767 
11768  def get_value_index(self, *args):
11769  r"""
11770  get_value_index(CoinFlipPairPredicate self, Model arg2, IMP::ParticleIndexPair const & arg3) -> int
11771  get_value_index(CoinFlipPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11772  """
11773  return _IMP_core.CoinFlipPairPredicate_get_value_index(self, *args)
11774 
11775  def get_version_info(self):
11776  r"""get_version_info(CoinFlipPairPredicate self) -> VersionInfo"""
11777  return _IMP_core.CoinFlipPairPredicate_get_version_info(self)
11778  __swig_destroy__ = _IMP_core.delete_CoinFlipPairPredicate
11779 
11780  def __str__(self):
11781  r"""__str__(CoinFlipPairPredicate self) -> std::string"""
11782  return _IMP_core.CoinFlipPairPredicate___str__(self)
11783 
11784  def __repr__(self):
11785  r"""__repr__(CoinFlipPairPredicate self) -> std::string"""
11786  return _IMP_core.CoinFlipPairPredicate___repr__(self)
11787 
11788  @staticmethod
11789  def get_from(o):
11790  return _object_cast_to_CoinFlipPairPredicate(o)
11791 
11792 
11793 # Register CoinFlipPairPredicate in _IMP_core:
11794 _IMP_core.CoinFlipPairPredicate_swigregister(CoinFlipPairPredicate)
11795 class ConstantTripletPredicate(IMP.TripletPredicate):
11796  r"""Proxy of C++ IMP::core::ConstantTripletPredicate class."""
11797 
11798  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11799 
11800  def __init__(self, *args):
11801  r"""
11802  __init__(ConstantTripletPredicate self, int v, std::string name="ConstTripletPredicate%1%") -> ConstantTripletPredicate
11803  __init__(ConstantTripletPredicate self) -> ConstantTripletPredicate
11804  """
11805  _IMP_core.ConstantTripletPredicate_swiginit(self, _IMP_core.new_ConstantTripletPredicate(*args))
11806 
11807  def do_get_inputs(self, arg2, arg3):
11808  r"""do_get_inputs(ConstantTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11809  return _IMP_core.ConstantTripletPredicate_do_get_inputs(self, arg2, arg3)
11810 
11811  def get_value(self, *args):
11812  r"""
11813  get_value(ConstantTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11814  get_value(ConstantTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11815  """
11816  return _IMP_core.ConstantTripletPredicate_get_value(self, *args)
11817 
11818  def get_value_index(self, *args):
11819  r"""
11820  get_value_index(ConstantTripletPredicate self, Model arg2, IMP::ParticleIndexTriplet const & arg3) -> int
11821  get_value_index(ConstantTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11822  """
11823  return _IMP_core.ConstantTripletPredicate_get_value_index(self, *args)
11824 
11825  def get_version_info(self):
11826  r"""get_version_info(ConstantTripletPredicate self) -> VersionInfo"""
11827  return _IMP_core.ConstantTripletPredicate_get_version_info(self)
11828  __swig_destroy__ = _IMP_core.delete_ConstantTripletPredicate
11829 
11830  def __str__(self):
11831  r"""__str__(ConstantTripletPredicate self) -> std::string"""
11832  return _IMP_core.ConstantTripletPredicate___str__(self)
11833 
11834  def __repr__(self):
11835  r"""__repr__(ConstantTripletPredicate self) -> std::string"""
11836  return _IMP_core.ConstantTripletPredicate___repr__(self)
11837 
11838  @staticmethod
11839  def get_from(o):
11840  return _object_cast_to_ConstantTripletPredicate(o)
11841 
11842 
11843  def _get_as_binary(self):
11844  r"""_get_as_binary(ConstantTripletPredicate self) -> PyObject *"""
11845  return _IMP_core.ConstantTripletPredicate__get_as_binary(self)
11846 
11847  def _set_from_binary(self, p):
11848  r"""_set_from_binary(ConstantTripletPredicate self, PyObject * p)"""
11849  return _IMP_core.ConstantTripletPredicate__set_from_binary(self, p)
11850 
11851  def __getstate__(self):
11852  p = self._get_as_binary()
11853  if len(self.__dict__) > 1:
11854  d = self.__dict__.copy()
11855  del d['this']
11856  p = (d, p)
11857  return p
11858 
11859  def __setstate__(self, p):
11860  if not hasattr(self, 'this'):
11861  self.__init__()
11862  if isinstance(p, tuple):
11863  d, p = p
11864  self.__dict__.update(d)
11865  return self._set_from_binary(p)
11866 
11867 
11868 # Register ConstantTripletPredicate in _IMP_core:
11869 _IMP_core.ConstantTripletPredicate_swigregister(ConstantTripletPredicate)
11870 class UnorderedTypeTripletPredicate(IMP.TripletPredicate):
11871  r"""Proxy of C++ IMP::core::UnorderedTypeTripletPredicate class."""
11872 
11873  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11874 
11875  def __init__(self, *args):
11876  r"""__init__(UnorderedTypeTripletPredicate self, std::string name="UnorderedTypeTripletPredicate%1%") -> UnorderedTypeTripletPredicate"""
11877  _IMP_core.UnorderedTypeTripletPredicate_swiginit(self, _IMP_core.new_UnorderedTypeTripletPredicate(*args))
11878 
11879  def do_get_inputs(self, m, pis):
11880  r"""do_get_inputs(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11881  return _IMP_core.UnorderedTypeTripletPredicate_do_get_inputs(self, m, pis)
11882 
11883  def get_value(self, *args):
11884  r"""
11885  get_value(UnorderedTypeTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11886  get_value(UnorderedTypeTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11887  """
11888  return _IMP_core.UnorderedTypeTripletPredicate_get_value(self, *args)
11889 
11890  def get_value_index(self, *args):
11891  r"""
11892  get_value_index(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
11893  get_value_index(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11894  """
11895  return _IMP_core.UnorderedTypeTripletPredicate_get_value_index(self, *args)
11896 
11897  def get_version_info(self):
11898  r"""get_version_info(UnorderedTypeTripletPredicate self) -> VersionInfo"""
11899  return _IMP_core.UnorderedTypeTripletPredicate_get_version_info(self)
11900  __swig_destroy__ = _IMP_core.delete_UnorderedTypeTripletPredicate
11901 
11902  def __str__(self):
11903  r"""__str__(UnorderedTypeTripletPredicate self) -> std::string"""
11904  return _IMP_core.UnorderedTypeTripletPredicate___str__(self)
11905 
11906  def __repr__(self):
11907  r"""__repr__(UnorderedTypeTripletPredicate self) -> std::string"""
11908  return _IMP_core.UnorderedTypeTripletPredicate___repr__(self)
11909 
11910  @staticmethod
11911  def get_from(o):
11912  return _object_cast_to_UnorderedTypeTripletPredicate(o)
11913 
11914 
11915  def _get_as_binary(self):
11916  r"""_get_as_binary(UnorderedTypeTripletPredicate self) -> PyObject *"""
11917  return _IMP_core.UnorderedTypeTripletPredicate__get_as_binary(self)
11918 
11919  def _set_from_binary(self, p):
11920  r"""_set_from_binary(UnorderedTypeTripletPredicate self, PyObject * p)"""
11921  return _IMP_core.UnorderedTypeTripletPredicate__set_from_binary(self, p)
11922 
11923  def __getstate__(self):
11924  p = self._get_as_binary()
11925  if len(self.__dict__) > 1:
11926  d = self.__dict__.copy()
11927  del d['this']
11928  p = (d, p)
11929  return p
11930 
11931  def __setstate__(self, p):
11932  if not hasattr(self, 'this'):
11933  self.__init__()
11934  if isinstance(p, tuple):
11935  d, p = p
11936  self.__dict__.update(d)
11937  return self._set_from_binary(p)
11938 
11939 
11940 # Register UnorderedTypeTripletPredicate in _IMP_core:
11941 _IMP_core.UnorderedTypeTripletPredicate_swigregister(UnorderedTypeTripletPredicate)
11942 class OrderedTypeTripletPredicate(IMP.TripletPredicate):
11943  r"""Proxy of C++ IMP::core::OrderedTypeTripletPredicate class."""
11944 
11945  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11946 
11947  def __init__(self, *args):
11948  r"""__init__(OrderedTypeTripletPredicate self, std::string name="OrderedTypeTripletPredicate%1%") -> OrderedTypeTripletPredicate"""
11949  _IMP_core.OrderedTypeTripletPredicate_swiginit(self, _IMP_core.new_OrderedTypeTripletPredicate(*args))
11950 
11951  def do_get_inputs(self, m, pis):
11952  r"""do_get_inputs(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11953  return _IMP_core.OrderedTypeTripletPredicate_do_get_inputs(self, m, pis)
11954 
11955  def get_value(self, *args):
11956  r"""
11957  get_value(OrderedTypeTripletPredicate self, IMP::core::ParticleTypes const & types) -> int
11958  get_value(OrderedTypeTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11959  get_value(OrderedTypeTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11960  """
11961  return _IMP_core.OrderedTypeTripletPredicate_get_value(self, *args)
11962 
11963  def get_value_index(self, *args):
11964  r"""
11965  get_value_index(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
11966  get_value_index(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11967  """
11968  return _IMP_core.OrderedTypeTripletPredicate_get_value_index(self, *args)
11969 
11970  def get_version_info(self):
11971  r"""get_version_info(OrderedTypeTripletPredicate self) -> VersionInfo"""
11972  return _IMP_core.OrderedTypeTripletPredicate_get_version_info(self)
11973  __swig_destroy__ = _IMP_core.delete_OrderedTypeTripletPredicate
11974 
11975  def __str__(self):
11976  r"""__str__(OrderedTypeTripletPredicate self) -> std::string"""
11977  return _IMP_core.OrderedTypeTripletPredicate___str__(self)
11978 
11979  def __repr__(self):
11980  r"""__repr__(OrderedTypeTripletPredicate self) -> std::string"""
11981  return _IMP_core.OrderedTypeTripletPredicate___repr__(self)
11982 
11983  @staticmethod
11984  def get_from(o):
11985  return _object_cast_to_OrderedTypeTripletPredicate(o)
11986 
11987 
11988 # Register OrderedTypeTripletPredicate in _IMP_core:
11989 _IMP_core.OrderedTypeTripletPredicate_swigregister(OrderedTypeTripletPredicate)
11990 class AllSameTripletPredicate(IMP.TripletPredicate):
11991  r"""Proxy of C++ IMP::core::AllSameTripletPredicate class."""
11992 
11993  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11994 
11995  def __init__(self, *args):
11996  r"""__init__(AllSameTripletPredicate self, std::string name="AllSameTripletPredicate%1%") -> AllSameTripletPredicate"""
11997  _IMP_core.AllSameTripletPredicate_swiginit(self, _IMP_core.new_AllSameTripletPredicate(*args))
11998 
11999  def do_get_inputs(self, arg2, arg3):
12000  r"""do_get_inputs(AllSameTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12001  return _IMP_core.AllSameTripletPredicate_do_get_inputs(self, arg2, arg3)
12002 
12003  def get_value(self, *args):
12004  r"""
12005  get_value(AllSameTripletPredicate self, IMP::ParticleTriplet const & a) -> int
12006  get_value(AllSameTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
12007  """
12008  return _IMP_core.AllSameTripletPredicate_get_value(self, *args)
12009 
12010  def get_value_index(self, *args):
12011  r"""
12012  get_value_index(AllSameTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
12013  get_value_index(AllSameTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
12014  """
12015  return _IMP_core.AllSameTripletPredicate_get_value_index(self, *args)
12016 
12017  def get_version_info(self):
12018  r"""get_version_info(AllSameTripletPredicate self) -> VersionInfo"""
12019  return _IMP_core.AllSameTripletPredicate_get_version_info(self)
12020  __swig_destroy__ = _IMP_core.delete_AllSameTripletPredicate
12021 
12022  def __str__(self):
12023  r"""__str__(AllSameTripletPredicate self) -> std::string"""
12024  return _IMP_core.AllSameTripletPredicate___str__(self)
12025 
12026  def __repr__(self):
12027  r"""__repr__(AllSameTripletPredicate self) -> std::string"""
12028  return _IMP_core.AllSameTripletPredicate___repr__(self)
12029 
12030  @staticmethod
12031  def get_from(o):
12032  return _object_cast_to_AllSameTripletPredicate(o)
12033 
12034 
12035  def _get_as_binary(self):
12036  r"""_get_as_binary(AllSameTripletPredicate self) -> PyObject *"""
12037  return _IMP_core.AllSameTripletPredicate__get_as_binary(self)
12038 
12039  def _set_from_binary(self, p):
12040  r"""_set_from_binary(AllSameTripletPredicate self, PyObject * p)"""
12041  return _IMP_core.AllSameTripletPredicate__set_from_binary(self, p)
12042 
12043  def __getstate__(self):
12044  p = self._get_as_binary()
12045  if len(self.__dict__) > 1:
12046  d = self.__dict__.copy()
12047  del d['this']
12048  p = (d, p)
12049  return p
12050 
12051  def __setstate__(self, p):
12052  if not hasattr(self, 'this'):
12053  self.__init__()
12054  if isinstance(p, tuple):
12055  d, p = p
12056  self.__dict__.update(d)
12057  return self._set_from_binary(p)
12058 
12059 
12060 # Register AllSameTripletPredicate in _IMP_core:
12061 _IMP_core.AllSameTripletPredicate_swigregister(AllSameTripletPredicate)
12062 class CoinFlipTripletPredicate(IMP.TripletPredicate):
12063  r"""Proxy of C++ IMP::core::CoinFlipTripletPredicate class."""
12064 
12065  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12066 
12067  def __init__(self, *args):
12068  r"""__init__(CoinFlipTripletPredicate self, double p, std::string name="CoinFlipTripletPredicate%1%") -> CoinFlipTripletPredicate"""
12069  _IMP_core.CoinFlipTripletPredicate_swiginit(self, _IMP_core.new_CoinFlipTripletPredicate(*args))
12070 
12071  def do_get_inputs(self, arg2, arg3):
12072  r"""do_get_inputs(CoinFlipTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12073  return _IMP_core.CoinFlipTripletPredicate_do_get_inputs(self, arg2, arg3)
12074 
12075  def get_value(self, *args):
12076  r"""
12077  get_value(CoinFlipTripletPredicate self, IMP::ParticleTriplet const & a) -> int
12078  get_value(CoinFlipTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
12079  """
12080  return _IMP_core.CoinFlipTripletPredicate_get_value(self, *args)
12081 
12082  def get_value_index(self, *args):
12083  r"""
12084  get_value_index(CoinFlipTripletPredicate self, Model arg2, IMP::ParticleIndexTriplet const & arg3) -> int
12085  get_value_index(CoinFlipTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
12086  """
12087  return _IMP_core.CoinFlipTripletPredicate_get_value_index(self, *args)
12088 
12089  def get_version_info(self):
12090  r"""get_version_info(CoinFlipTripletPredicate self) -> VersionInfo"""
12091  return _IMP_core.CoinFlipTripletPredicate_get_version_info(self)
12092  __swig_destroy__ = _IMP_core.delete_CoinFlipTripletPredicate
12093 
12094  def __str__(self):
12095  r"""__str__(CoinFlipTripletPredicate self) -> std::string"""
12096  return _IMP_core.CoinFlipTripletPredicate___str__(self)
12097 
12098  def __repr__(self):
12099  r"""__repr__(CoinFlipTripletPredicate self) -> std::string"""
12100  return _IMP_core.CoinFlipTripletPredicate___repr__(self)
12101 
12102  @staticmethod
12103  def get_from(o):
12104  return _object_cast_to_CoinFlipTripletPredicate(o)
12105 
12106 
12107 # Register CoinFlipTripletPredicate in _IMP_core:
12108 _IMP_core.CoinFlipTripletPredicate_swigregister(CoinFlipTripletPredicate)
12109 class ConstantQuadPredicate(IMP.QuadPredicate):
12110  r"""Proxy of C++ IMP::core::ConstantQuadPredicate class."""
12111 
12112  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12113 
12114  def __init__(self, *args):
12115  r"""
12116  __init__(ConstantQuadPredicate self, int v, std::string name="ConstQuadPredicate%1%") -> ConstantQuadPredicate
12117  __init__(ConstantQuadPredicate self) -> ConstantQuadPredicate
12118  """
12119  _IMP_core.ConstantQuadPredicate_swiginit(self, _IMP_core.new_ConstantQuadPredicate(*args))
12120 
12121  def do_get_inputs(self, arg2, arg3):
12122  r"""do_get_inputs(ConstantQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12123  return _IMP_core.ConstantQuadPredicate_do_get_inputs(self, arg2, arg3)
12124 
12125  def get_value(self, *args):
12126  r"""
12127  get_value(ConstantQuadPredicate self, IMP::ParticleQuad const & a) -> int
12128  get_value(ConstantQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12129  """
12130  return _IMP_core.ConstantQuadPredicate_get_value(self, *args)
12131 
12132  def get_value_index(self, *args):
12133  r"""
12134  get_value_index(ConstantQuadPredicate self, Model arg2, IMP::ParticleIndexQuad const & arg3) -> int
12135  get_value_index(ConstantQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12136  """
12137  return _IMP_core.ConstantQuadPredicate_get_value_index(self, *args)
12138 
12139  def get_version_info(self):
12140  r"""get_version_info(ConstantQuadPredicate self) -> VersionInfo"""
12141  return _IMP_core.ConstantQuadPredicate_get_version_info(self)
12142  __swig_destroy__ = _IMP_core.delete_ConstantQuadPredicate
12143 
12144  def __str__(self):
12145  r"""__str__(ConstantQuadPredicate self) -> std::string"""
12146  return _IMP_core.ConstantQuadPredicate___str__(self)
12147 
12148  def __repr__(self):
12149  r"""__repr__(ConstantQuadPredicate self) -> std::string"""
12150  return _IMP_core.ConstantQuadPredicate___repr__(self)
12151 
12152  @staticmethod
12153  def get_from(o):
12154  return _object_cast_to_ConstantQuadPredicate(o)
12155 
12156 
12157  def _get_as_binary(self):
12158  r"""_get_as_binary(ConstantQuadPredicate self) -> PyObject *"""
12159  return _IMP_core.ConstantQuadPredicate__get_as_binary(self)
12160 
12161  def _set_from_binary(self, p):
12162  r"""_set_from_binary(ConstantQuadPredicate self, PyObject * p)"""
12163  return _IMP_core.ConstantQuadPredicate__set_from_binary(self, p)
12164 
12165  def __getstate__(self):
12166  p = self._get_as_binary()
12167  if len(self.__dict__) > 1:
12168  d = self.__dict__.copy()
12169  del d['this']
12170  p = (d, p)
12171  return p
12172 
12173  def __setstate__(self, p):
12174  if not hasattr(self, 'this'):
12175  self.__init__()
12176  if isinstance(p, tuple):
12177  d, p = p
12178  self.__dict__.update(d)
12179  return self._set_from_binary(p)
12180 
12181 
12182 # Register ConstantQuadPredicate in _IMP_core:
12183 _IMP_core.ConstantQuadPredicate_swigregister(ConstantQuadPredicate)
12184 class UnorderedTypeQuadPredicate(IMP.QuadPredicate):
12185  r"""Proxy of C++ IMP::core::UnorderedTypeQuadPredicate class."""
12186 
12187  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12188 
12189  def __init__(self, *args):
12190  r"""__init__(UnorderedTypeQuadPredicate self, std::string name="UnorderedTypeQuadPredicate%1%") -> UnorderedTypeQuadPredicate"""
12191  _IMP_core.UnorderedTypeQuadPredicate_swiginit(self, _IMP_core.new_UnorderedTypeQuadPredicate(*args))
12192 
12193  def do_get_inputs(self, m, pis):
12194  r"""do_get_inputs(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12195  return _IMP_core.UnorderedTypeQuadPredicate_do_get_inputs(self, m, pis)
12196 
12197  def get_value(self, *args):
12198  r"""
12199  get_value(UnorderedTypeQuadPredicate self, IMP::ParticleQuad const & a) -> int
12200  get_value(UnorderedTypeQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12201  """
12202  return _IMP_core.UnorderedTypeQuadPredicate_get_value(self, *args)
12203 
12204  def get_value_index(self, *args):
12205  r"""
12206  get_value_index(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12207  get_value_index(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12208  """
12209  return _IMP_core.UnorderedTypeQuadPredicate_get_value_index(self, *args)
12210 
12211  def get_version_info(self):
12212  r"""get_version_info(UnorderedTypeQuadPredicate self) -> VersionInfo"""
12213  return _IMP_core.UnorderedTypeQuadPredicate_get_version_info(self)
12214  __swig_destroy__ = _IMP_core.delete_UnorderedTypeQuadPredicate
12215 
12216  def __str__(self):
12217  r"""__str__(UnorderedTypeQuadPredicate self) -> std::string"""
12218  return _IMP_core.UnorderedTypeQuadPredicate___str__(self)
12219 
12220  def __repr__(self):
12221  r"""__repr__(UnorderedTypeQuadPredicate self) -> std::string"""
12222  return _IMP_core.UnorderedTypeQuadPredicate___repr__(self)
12223 
12224  @staticmethod
12225  def get_from(o):
12226  return _object_cast_to_UnorderedTypeQuadPredicate(o)
12227 
12228 
12229  def _get_as_binary(self):
12230  r"""_get_as_binary(UnorderedTypeQuadPredicate self) -> PyObject *"""
12231  return _IMP_core.UnorderedTypeQuadPredicate__get_as_binary(self)
12232 
12233  def _set_from_binary(self, p):
12234  r"""_set_from_binary(UnorderedTypeQuadPredicate self, PyObject * p)"""
12235  return _IMP_core.UnorderedTypeQuadPredicate__set_from_binary(self, p)
12236 
12237  def __getstate__(self):
12238  p = self._get_as_binary()
12239  if len(self.__dict__) > 1:
12240  d = self.__dict__.copy()
12241  del d['this']
12242  p = (d, p)
12243  return p
12244 
12245  def __setstate__(self, p):
12246  if not hasattr(self, 'this'):
12247  self.__init__()
12248  if isinstance(p, tuple):
12249  d, p = p
12250  self.__dict__.update(d)
12251  return self._set_from_binary(p)
12252 
12253 
12254 # Register UnorderedTypeQuadPredicate in _IMP_core:
12255 _IMP_core.UnorderedTypeQuadPredicate_swigregister(UnorderedTypeQuadPredicate)
12256 class OrderedTypeQuadPredicate(IMP.QuadPredicate):
12257  r"""Proxy of C++ IMP::core::OrderedTypeQuadPredicate class."""
12258 
12259  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12260 
12261  def __init__(self, *args):
12262  r"""__init__(OrderedTypeQuadPredicate self, std::string name="OrderedTypeQuadPredicate%1%") -> OrderedTypeQuadPredicate"""
12263  _IMP_core.OrderedTypeQuadPredicate_swiginit(self, _IMP_core.new_OrderedTypeQuadPredicate(*args))
12264 
12265  def do_get_inputs(self, m, pis):
12266  r"""do_get_inputs(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12267  return _IMP_core.OrderedTypeQuadPredicate_do_get_inputs(self, m, pis)
12268 
12269  def get_value(self, *args):
12270  r"""
12271  get_value(OrderedTypeQuadPredicate self, IMP::core::ParticleTypes const & types) -> int
12272  get_value(OrderedTypeQuadPredicate self, IMP::ParticleQuad const & a) -> int
12273  get_value(OrderedTypeQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12274  """
12275  return _IMP_core.OrderedTypeQuadPredicate_get_value(self, *args)
12276 
12277  def get_value_index(self, *args):
12278  r"""
12279  get_value_index(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12280  get_value_index(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12281  """
12282  return _IMP_core.OrderedTypeQuadPredicate_get_value_index(self, *args)
12283 
12284  def get_version_info(self):
12285  r"""get_version_info(OrderedTypeQuadPredicate self) -> VersionInfo"""
12286  return _IMP_core.OrderedTypeQuadPredicate_get_version_info(self)
12287  __swig_destroy__ = _IMP_core.delete_OrderedTypeQuadPredicate
12288 
12289  def __str__(self):
12290  r"""__str__(OrderedTypeQuadPredicate self) -> std::string"""
12291  return _IMP_core.OrderedTypeQuadPredicate___str__(self)
12292 
12293  def __repr__(self):
12294  r"""__repr__(OrderedTypeQuadPredicate self) -> std::string"""
12295  return _IMP_core.OrderedTypeQuadPredicate___repr__(self)
12296 
12297  @staticmethod
12298  def get_from(o):
12299  return _object_cast_to_OrderedTypeQuadPredicate(o)
12300 
12301 
12302 # Register OrderedTypeQuadPredicate in _IMP_core:
12303 _IMP_core.OrderedTypeQuadPredicate_swigregister(OrderedTypeQuadPredicate)
12304 class AllSameQuadPredicate(IMP.QuadPredicate):
12305  r"""Proxy of C++ IMP::core::AllSameQuadPredicate class."""
12306 
12307  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12308 
12309  def __init__(self, *args):
12310  r"""__init__(AllSameQuadPredicate self, std::string name="AllSameQuadPredicate%1%") -> AllSameQuadPredicate"""
12311  _IMP_core.AllSameQuadPredicate_swiginit(self, _IMP_core.new_AllSameQuadPredicate(*args))
12312 
12313  def do_get_inputs(self, arg2, arg3):
12314  r"""do_get_inputs(AllSameQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12315  return _IMP_core.AllSameQuadPredicate_do_get_inputs(self, arg2, arg3)
12316 
12317  def get_value(self, *args):
12318  r"""
12319  get_value(AllSameQuadPredicate self, IMP::ParticleQuad const & a) -> int
12320  get_value(AllSameQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12321  """
12322  return _IMP_core.AllSameQuadPredicate_get_value(self, *args)
12323 
12324  def get_value_index(self, *args):
12325  r"""
12326  get_value_index(AllSameQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12327  get_value_index(AllSameQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12328  """
12329  return _IMP_core.AllSameQuadPredicate_get_value_index(self, *args)
12330 
12331  def get_version_info(self):
12332  r"""get_version_info(AllSameQuadPredicate self) -> VersionInfo"""
12333  return _IMP_core.AllSameQuadPredicate_get_version_info(self)
12334  __swig_destroy__ = _IMP_core.delete_AllSameQuadPredicate
12335 
12336  def __str__(self):
12337  r"""__str__(AllSameQuadPredicate self) -> std::string"""
12338  return _IMP_core.AllSameQuadPredicate___str__(self)
12339 
12340  def __repr__(self):
12341  r"""__repr__(AllSameQuadPredicate self) -> std::string"""
12342  return _IMP_core.AllSameQuadPredicate___repr__(self)
12343 
12344  @staticmethod
12345  def get_from(o):
12346  return _object_cast_to_AllSameQuadPredicate(o)
12347 
12348 
12349  def _get_as_binary(self):
12350  r"""_get_as_binary(AllSameQuadPredicate self) -> PyObject *"""
12351  return _IMP_core.AllSameQuadPredicate__get_as_binary(self)
12352 
12353  def _set_from_binary(self, p):
12354  r"""_set_from_binary(AllSameQuadPredicate self, PyObject * p)"""
12355  return _IMP_core.AllSameQuadPredicate__set_from_binary(self, p)
12356 
12357  def __getstate__(self):
12358  p = self._get_as_binary()
12359  if len(self.__dict__) > 1:
12360  d = self.__dict__.copy()
12361  del d['this']
12362  p = (d, p)
12363  return p
12364 
12365  def __setstate__(self, p):
12366  if not hasattr(self, 'this'):
12367  self.__init__()
12368  if isinstance(p, tuple):
12369  d, p = p
12370  self.__dict__.update(d)
12371  return self._set_from_binary(p)
12372 
12373 
12374 # Register AllSameQuadPredicate in _IMP_core:
12375 _IMP_core.AllSameQuadPredicate_swigregister(AllSameQuadPredicate)
12376 class CoinFlipQuadPredicate(IMP.QuadPredicate):
12377  r"""Proxy of C++ IMP::core::CoinFlipQuadPredicate class."""
12378 
12379  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12380 
12381  def __init__(self, *args):
12382  r"""__init__(CoinFlipQuadPredicate self, double p, std::string name="CoinFlipQuadPredicate%1%") -> CoinFlipQuadPredicate"""
12383  _IMP_core.CoinFlipQuadPredicate_swiginit(self, _IMP_core.new_CoinFlipQuadPredicate(*args))
12384 
12385  def do_get_inputs(self, arg2, arg3):
12386  r"""do_get_inputs(CoinFlipQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12387  return _IMP_core.CoinFlipQuadPredicate_do_get_inputs(self, arg2, arg3)
12388 
12389  def get_value(self, *args):
12390  r"""
12391  get_value(CoinFlipQuadPredicate self, IMP::ParticleQuad const & a) -> int
12392  get_value(CoinFlipQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12393  """
12394  return _IMP_core.CoinFlipQuadPredicate_get_value(self, *args)
12395 
12396  def get_value_index(self, *args):
12397  r"""
12398  get_value_index(CoinFlipQuadPredicate self, Model arg2, IMP::ParticleIndexQuad const & arg3) -> int
12399  get_value_index(CoinFlipQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12400  """
12401  return _IMP_core.CoinFlipQuadPredicate_get_value_index(self, *args)
12402 
12403  def get_version_info(self):
12404  r"""get_version_info(CoinFlipQuadPredicate self) -> VersionInfo"""
12405  return _IMP_core.CoinFlipQuadPredicate_get_version_info(self)
12406  __swig_destroy__ = _IMP_core.delete_CoinFlipQuadPredicate
12407 
12408  def __str__(self):
12409  r"""__str__(CoinFlipQuadPredicate self) -> std::string"""
12410  return _IMP_core.CoinFlipQuadPredicate___str__(self)
12411 
12412  def __repr__(self):
12413  r"""__repr__(CoinFlipQuadPredicate self) -> std::string"""
12414  return _IMP_core.CoinFlipQuadPredicate___repr__(self)
12415 
12416  @staticmethod
12417  def get_from(o):
12418  return _object_cast_to_CoinFlipQuadPredicate(o)
12419 
12420 
12421 # Register CoinFlipQuadPredicate in _IMP_core:
12422 _IMP_core.CoinFlipQuadPredicate_swigregister(CoinFlipQuadPredicate)
12423 class InBoundingBox3DSingletonPredicate(IMP.SingletonPredicate):
12424  r"""Proxy of C++ IMP::core::InBoundingBox3DSingletonPredicate class."""
12425 
12426  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12427 
12428  def __init__(self, *args):
12429  r"""__init__(InBoundingBox3DSingletonPredicate self, BoundingBox3D bb, std::string name="InBoundingBox3DSingletonPredicate%1%") -> InBoundingBox3DSingletonPredicate"""
12430  _IMP_core.InBoundingBox3DSingletonPredicate_swiginit(self, _IMP_core.new_InBoundingBox3DSingletonPredicate(*args))
12431 
12432  def do_get_inputs(self, m, pi):
12433  r"""do_get_inputs(InBoundingBox3DSingletonPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12434  return _IMP_core.InBoundingBox3DSingletonPredicate_do_get_inputs(self, m, pi)
12435 
12436  def get_value(self, *args):
12437  r"""
12438  get_value(InBoundingBox3DSingletonPredicate self, Particle a) -> int
12439  get_value(InBoundingBox3DSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
12440  """
12441  return _IMP_core.InBoundingBox3DSingletonPredicate_get_value(self, *args)
12442 
12443  def get_value_index(self, *args):
12444  r"""
12445  get_value_index(InBoundingBox3DSingletonPredicate self, Model m, ParticleIndex pi) -> int
12446  get_value_index(InBoundingBox3DSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
12447  """
12448  return _IMP_core.InBoundingBox3DSingletonPredicate_get_value_index(self, *args)
12449 
12450  def get_version_info(self):
12451  r"""get_version_info(InBoundingBox3DSingletonPredicate self) -> VersionInfo"""
12452  return _IMP_core.InBoundingBox3DSingletonPredicate_get_version_info(self)
12453  __swig_destroy__ = _IMP_core.delete_InBoundingBox3DSingletonPredicate
12454 
12455  def __str__(self):
12456  r"""__str__(InBoundingBox3DSingletonPredicate self) -> std::string"""
12457  return _IMP_core.InBoundingBox3DSingletonPredicate___str__(self)
12458 
12459  def __repr__(self):
12460  r"""__repr__(InBoundingBox3DSingletonPredicate self) -> std::string"""
12461  return _IMP_core.InBoundingBox3DSingletonPredicate___repr__(self)
12462 
12463  @staticmethod
12464  def get_from(o):
12465  return _object_cast_to_InBoundingBox3DSingletonPredicate(o)
12466 
12467 
12468 # Register InBoundingBox3DSingletonPredicate in _IMP_core:
12469 _IMP_core.InBoundingBox3DSingletonPredicate_swigregister(InBoundingBox3DSingletonPredicate)
12470 class AttributeSingletonPredicate(IMP.SingletonPredicate):
12471  r"""Proxy of C++ IMP::core::AttributeSingletonPredicate class."""
12472 
12473  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12474 
12475  def __init__(self, *args):
12476  r"""__init__(AttributeSingletonPredicate self, IntKey bb, std::string name="AttributeSingletonPredicate%1%") -> AttributeSingletonPredicate"""
12477  _IMP_core.AttributeSingletonPredicate_swiginit(self, _IMP_core.new_AttributeSingletonPredicate(*args))
12478 
12479  def do_get_inputs(self, m, pi):
12480  r"""do_get_inputs(AttributeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12481  return _IMP_core.AttributeSingletonPredicate_do_get_inputs(self, m, pi)
12482 
12483  def get_value(self, *args):
12484  r"""
12485  get_value(AttributeSingletonPredicate self, Particle a) -> int
12486  get_value(AttributeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
12487  """
12488  return _IMP_core.AttributeSingletonPredicate_get_value(self, *args)
12489 
12490  def get_value_index(self, *args):
12491  r"""
12492  get_value_index(AttributeSingletonPredicate self, Model m, ParticleIndex pi) -> int
12493  get_value_index(AttributeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
12494  """
12495  return _IMP_core.AttributeSingletonPredicate_get_value_index(self, *args)
12496 
12497  def get_version_info(self):
12498  r"""get_version_info(AttributeSingletonPredicate self) -> VersionInfo"""
12499  return _IMP_core.AttributeSingletonPredicate_get_version_info(self)
12500  __swig_destroy__ = _IMP_core.delete_AttributeSingletonPredicate
12501 
12502  def __str__(self):
12503  r"""__str__(AttributeSingletonPredicate self) -> std::string"""
12504  return _IMP_core.AttributeSingletonPredicate___str__(self)
12505 
12506  def __repr__(self):
12507  r"""__repr__(AttributeSingletonPredicate self) -> std::string"""
12508  return _IMP_core.AttributeSingletonPredicate___repr__(self)
12509 
12510  @staticmethod
12511  def get_from(o):
12512  return _object_cast_to_AttributeSingletonPredicate(o)
12513 
12514 
12515 # Register AttributeSingletonPredicate in _IMP_core:
12516 _IMP_core.AttributeSingletonPredicate_swigregister(AttributeSingletonPredicate)
12517 class IsCollisionPairPredicate(IMP.PairPredicate):
12518  r"""Proxy of C++ IMP::core::IsCollisionPairPredicate class."""
12519 
12520  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12521 
12522  def __init__(self, *args):
12523  r"""__init__(IsCollisionPairPredicate self, std::string name="CollisionPairPredicate%1%") -> IsCollisionPairPredicate"""
12524  _IMP_core.IsCollisionPairPredicate_swiginit(self, _IMP_core.new_IsCollisionPairPredicate(*args))
12525 
12526  def do_get_inputs(self, m, pi):
12527  r"""do_get_inputs(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12528  return _IMP_core.IsCollisionPairPredicate_do_get_inputs(self, m, pi)
12529 
12530  def get_value(self, *args):
12531  r"""
12532  get_value(IsCollisionPairPredicate self, IMP::ParticlePair const & a) -> int
12533  get_value(IsCollisionPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
12534  """
12535  return _IMP_core.IsCollisionPairPredicate_get_value(self, *args)
12536 
12537  def get_value_index(self, *args):
12538  r"""
12539  get_value_index(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
12540  get_value_index(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
12541  """
12542  return _IMP_core.IsCollisionPairPredicate_get_value_index(self, *args)
12543 
12544  def get_version_info(self):
12545  r"""get_version_info(IsCollisionPairPredicate self) -> VersionInfo"""
12546  return _IMP_core.IsCollisionPairPredicate_get_version_info(self)
12547  __swig_destroy__ = _IMP_core.delete_IsCollisionPairPredicate
12548 
12549  def __str__(self):
12550  r"""__str__(IsCollisionPairPredicate self) -> std::string"""
12551  return _IMP_core.IsCollisionPairPredicate___str__(self)
12552 
12553  def __repr__(self):
12554  r"""__repr__(IsCollisionPairPredicate self) -> std::string"""
12555  return _IMP_core.IsCollisionPairPredicate___repr__(self)
12556 
12557  @staticmethod
12558  def get_from(o):
12559  return _object_cast_to_IsCollisionPairPredicate(o)
12560 
12561 
12562 # Register IsCollisionPairPredicate in _IMP_core:
12563 _IMP_core.IsCollisionPairPredicate_swigregister(IsCollisionPairPredicate)
12564 class AngleRestraint(TripletRestraint):
12565  r"""Proxy of C++ IMP::core::AngleRestraint class."""
12566 
12567  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12568 
12569  def __init__(self, *args):
12570  r"""
12571  __init__(AngleRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3) -> AngleRestraint
12572  __init__(AngleRestraint self) -> AngleRestraint
12573  """
12574  _IMP_core.AngleRestraint_swiginit(self, _IMP_core.new_AngleRestraint(*args))
12575  __swig_destroy__ = _IMP_core.delete_AngleRestraint
12576 
12577  def __str__(self):
12578  r"""__str__(AngleRestraint self) -> std::string"""
12579  return _IMP_core.AngleRestraint___str__(self)
12580 
12581  def __repr__(self):
12582  r"""__repr__(AngleRestraint self) -> std::string"""
12583  return _IMP_core.AngleRestraint___repr__(self)
12584 
12585  @staticmethod
12586  def get_from(o):
12587  return _object_cast_to_AngleRestraint(o)
12588 
12589 
12590  def _get_as_binary(self):
12591  r"""_get_as_binary(AngleRestraint self) -> PyObject *"""
12592  return _IMP_core.AngleRestraint__get_as_binary(self)
12593 
12594  def _set_from_binary(self, p):
12595  r"""_set_from_binary(AngleRestraint self, PyObject * p)"""
12596  return _IMP_core.AngleRestraint__set_from_binary(self, p)
12597 
12598  def __getstate__(self):
12599  p = self._get_as_binary()
12600  if len(self.__dict__) > 1:
12601  d = self.__dict__.copy()
12602  del d['this']
12603  p = (d, p)
12604  return p
12605 
12606  def __setstate__(self, p):
12607  if not hasattr(self, 'this'):
12608  self.__init__()
12609  if isinstance(p, tuple):
12610  d, p = p
12611  self.__dict__.update(d)
12612  return self._set_from_binary(p)
12613 
12614 
12615 # Register AngleRestraint in _IMP_core:
12616 _IMP_core.AngleRestraint_swigregister(AngleRestraint)
12617 class RigidBodyMover(MonteCarloMover):
12618  r"""Proxy of C++ IMP::core::RigidBodyMover class."""
12619 
12620  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12621 
12622  def __init__(self, *args):
12623  r"""
12624  __init__(RigidBodyMover self, Model m, ParticleIndex pi, IMP::Float max_translation, IMP::Float max_rotation) -> RigidBodyMover
12625  __init__(RigidBodyMover self) -> RigidBodyMover
12626  """
12627  _IMP_core.RigidBodyMover_swiginit(self, _IMP_core.new_RigidBodyMover(*args))
12628 
12629  def set_maximum_translation(self, mt):
12630  r"""set_maximum_translation(RigidBodyMover self, IMP::Float mt)"""
12631  return _IMP_core.RigidBodyMover_set_maximum_translation(self, mt)
12632 
12633  def set_maximum_rotation(self, mr):
12634  r"""set_maximum_rotation(RigidBodyMover self, IMP::Float mr)"""
12635  return _IMP_core.RigidBodyMover_set_maximum_rotation(self, mr)
12636 
12637  def get_maximum_translation(self):
12638  r"""get_maximum_translation(RigidBodyMover self) -> IMP::Float"""
12639  return _IMP_core.RigidBodyMover_get_maximum_translation(self)
12640 
12641  def get_maximum_rotation(self):
12642  r"""get_maximum_rotation(RigidBodyMover self) -> IMP::Float"""
12643  return _IMP_core.RigidBodyMover_get_maximum_rotation(self)
12644 
12645  def get_version_info(self):
12646  r"""get_version_info(RigidBodyMover self) -> VersionInfo"""
12647  return _IMP_core.RigidBodyMover_get_version_info(self)
12648  __swig_destroy__ = _IMP_core.delete_RigidBodyMover
12649 
12650  def __str__(self):
12651  r"""__str__(RigidBodyMover self) -> std::string"""
12652  return _IMP_core.RigidBodyMover___str__(self)
12653 
12654  def __repr__(self):
12655  r"""__repr__(RigidBodyMover self) -> std::string"""
12656  return _IMP_core.RigidBodyMover___repr__(self)
12657 
12658  @staticmethod
12659  def get_from(o):
12660  return _object_cast_to_RigidBodyMover(o)
12661 
12662 
12663  def _get_as_binary(self):
12664  r"""_get_as_binary(RigidBodyMover self) -> PyObject *"""
12665  return _IMP_core.RigidBodyMover__get_as_binary(self)
12666 
12667  def _set_from_binary(self, p):
12668  r"""_set_from_binary(RigidBodyMover self, PyObject * p)"""
12669  return _IMP_core.RigidBodyMover__set_from_binary(self, p)
12670 
12671  def __getstate__(self):
12672  p = self._get_as_binary()
12673  if len(self.__dict__) > 1:
12674  d = self.__dict__.copy()
12675  del d['this']
12676  p = (d, p)
12677  return p
12678 
12679  def __setstate__(self, p):
12680  if not hasattr(self, 'this'):
12681  self.__init__()
12682  if isinstance(p, tuple):
12683  d, p = p
12684  self.__dict__.update(d)
12685  return self._set_from_binary(p)
12686 
12687 
12688 # Register RigidBodyMover in _IMP_core:
12689 _IMP_core.RigidBodyMover_swigregister(RigidBodyMover)
12690 class RigidBodyTunneler(MonteCarloMover):
12691  r"""Proxy of C++ IMP::core::RigidBodyTunneler class."""
12692 
12693  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12694 
12695  def __init__(self, m, pis, ref, k, move_probability=1.):
12696  r"""__init__(RigidBodyTunneler self, Model m, IMP::ParticleIndexes pis, ParticleIndex ref, double k, double move_probability=1.) -> RigidBodyTunneler"""
12697  _IMP_core.RigidBodyTunneler_swiginit(self, _IMP_core.new_RigidBodyTunneler(m, pis, ref, k, move_probability))
12698 
12699  def add_entry_point(self, fl):
12700  r"""add_entry_point(RigidBodyTunneler self, IMP::Floats fl)"""
12701  return _IMP_core.RigidBodyTunneler_add_entry_point(self, fl)
12702 
12703  def reset_stats(self):
12704  r"""reset_stats(RigidBodyTunneler self)"""
12705  return _IMP_core.RigidBodyTunneler_reset_stats(self)
12706 
12707  def get_number_of_rejected_moves(self):
12708  r"""get_number_of_rejected_moves(RigidBodyTunneler self) -> unsigned int"""
12709  return _IMP_core.RigidBodyTunneler_get_number_of_rejected_moves(self)
12710 
12711  def get_number_of_proposed_moves(self):
12712  r"""get_number_of_proposed_moves(RigidBodyTunneler self) -> unsigned int"""
12713  return _IMP_core.RigidBodyTunneler_get_number_of_proposed_moves(self)
12714 
12715  def get_number_of_impossible_moves(self):
12716  r"""get_number_of_impossible_moves(RigidBodyTunneler self) -> unsigned int"""
12717  return _IMP_core.RigidBodyTunneler_get_number_of_impossible_moves(self)
12718 
12719  def get_number_of_calls(self):
12720  r"""get_number_of_calls(RigidBodyTunneler self) -> unsigned int"""
12721  return _IMP_core.RigidBodyTunneler_get_number_of_calls(self)
12722 
12723  @staticmethod
12724  def get_reduced_coordinates(*args):
12725  r"""
12726  get_reduced_coordinates(Model m, ParticleIndex target, ParticleIndex ref) -> IMP::Floats
12727  get_reduced_coordinates(Model m, ParticleIndex pi) -> IMP::Floats
12728  """
12729  return _IMP_core.RigidBodyTunneler_get_reduced_coordinates(*args)
12730 
12731  @staticmethod
12732  def set_reduced_coordinates(m, target, ref, coords):
12733  r"""set_reduced_coordinates(Model m, ParticleIndex target, ParticleIndex ref, IMP::Floats coords)"""
12734  return _IMP_core.RigidBodyTunneler_set_reduced_coordinates(m, target, ref, coords)
12735 
12736  def get_version_info(self):
12737  r"""get_version_info(RigidBodyTunneler self) -> VersionInfo"""
12738  return _IMP_core.RigidBodyTunneler_get_version_info(self)
12739  __swig_destroy__ = _IMP_core.delete_RigidBodyTunneler
12740 
12741  def __str__(self):
12742  r"""__str__(RigidBodyTunneler self) -> std::string"""
12743  return _IMP_core.RigidBodyTunneler___str__(self)
12744 
12745  def __repr__(self):
12746  r"""__repr__(RigidBodyTunneler self) -> std::string"""
12747  return _IMP_core.RigidBodyTunneler___repr__(self)
12748 
12749  @staticmethod
12750  def get_from(o):
12751  return _object_cast_to_RigidBodyTunneler(o)
12752 
12753 
12754 # Register RigidBodyTunneler in _IMP_core:
12755 _IMP_core.RigidBodyTunneler_swigregister(RigidBodyTunneler)
12756 class RigidBodyUmbrella(IMP.Restraint):
12757  r"""Proxy of C++ IMP::core::RigidBodyUmbrella class."""
12758 
12759  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12760 
12761  def __init__(self, *args):
12762  r"""
12763  __init__(RigidBodyUmbrella self, Model m, ParticleIndex pi, ParticleIndex ref, IMP::Floats x0, double alpha, double k, std::string name="RigidBodyUmbrella %1%") -> RigidBodyUmbrella
12764  __init__(RigidBodyUmbrella self, Model m, ParticleIndex pi, ParticleIndex ref, double _lambda, IMP::Floats x1, IMP::Floats x2, double alpha, double k, std::string name="RigidBodyUmbrella %1%") -> RigidBodyUmbrella
12765  """
12766  _IMP_core.RigidBodyUmbrella_swiginit(self, _IMP_core.new_RigidBodyUmbrella(*args))
12767 
12768  def set_x0(self, *args):
12769  r"""
12770  set_x0(RigidBodyUmbrella self, IMP::Floats x0)
12771  set_x0(RigidBodyUmbrella self, double _lambda, IMP::Floats x1, IMP::Floats x2)
12772  """
12773  return _IMP_core.RigidBodyUmbrella_set_x0(self, *args)
12774 
12775  def get_x0(self):
12776  r"""get_x0(RigidBodyUmbrella self) -> IMP::Floats"""
12777  return _IMP_core.RigidBodyUmbrella_get_x0(self)
12778 
12779  def get_x(self):
12780  r"""get_x(RigidBodyUmbrella self) -> IMP::Floats"""
12781  return _IMP_core.RigidBodyUmbrella_get_x(self)
12782 
12783  def set_alpha(self, alpha):
12784  r"""set_alpha(RigidBodyUmbrella self, double alpha)"""
12785  return _IMP_core.RigidBodyUmbrella_set_alpha(self, alpha)
12786 
12787  def set_k(self, k):
12788  r"""set_k(RigidBodyUmbrella self, double k)"""
12789  return _IMP_core.RigidBodyUmbrella_set_k(self, k)
12790 
12791  def get_version_info(self):
12792  r"""get_version_info(RigidBodyUmbrella self) -> VersionInfo"""
12793  return _IMP_core.RigidBodyUmbrella_get_version_info(self)
12794  __swig_destroy__ = _IMP_core.delete_RigidBodyUmbrella
12795 
12796  def __str__(self):
12797  r"""__str__(RigidBodyUmbrella self) -> std::string"""
12798  return _IMP_core.RigidBodyUmbrella___str__(self)
12799 
12800  def __repr__(self):
12801  r"""__repr__(RigidBodyUmbrella self) -> std::string"""
12802  return _IMP_core.RigidBodyUmbrella___repr__(self)
12803 
12804  @staticmethod
12805  def get_from(o):
12806  return _object_cast_to_RigidBodyUmbrella(o)
12807 
12808 
12809 # Register RigidBodyUmbrella in _IMP_core:
12810 _IMP_core.RigidBodyUmbrella_swigregister(RigidBodyUmbrella)
12811 class VolumeRestraint(IMP.Restraint):
12812  r"""Proxy of C++ IMP::core::VolumeRestraint class."""
12813 
12814  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12815 
12816  def __init__(self, f, sc, volume):
12817  r"""__init__(VolumeRestraint self, UnaryFunction f, SingletonContainer sc, double volume) -> VolumeRestraint"""
12818  _IMP_core.VolumeRestraint_swiginit(self, _IMP_core.new_VolumeRestraint(f, sc, volume))
12819 
12820  def do_get_inputs(self):
12821  r"""do_get_inputs(VolumeRestraint self) -> IMP::ModelObjectsTemp"""
12822  return _IMP_core.VolumeRestraint_do_get_inputs(self)
12823 
12824  def get_version_info(self):
12825  r"""get_version_info(VolumeRestraint self) -> VersionInfo"""
12826  return _IMP_core.VolumeRestraint_get_version_info(self)
12827  __swig_destroy__ = _IMP_core.delete_VolumeRestraint
12828 
12829  def __str__(self):
12830  r"""__str__(VolumeRestraint self) -> std::string"""
12831  return _IMP_core.VolumeRestraint___str__(self)
12832 
12833  def __repr__(self):
12834  r"""__repr__(VolumeRestraint self) -> std::string"""
12835  return _IMP_core.VolumeRestraint___repr__(self)
12836 
12837  @staticmethod
12838  def get_from(o):
12839  return _object_cast_to_VolumeRestraint(o)
12840 
12841 
12842 # Register VolumeRestraint in _IMP_core:
12843 _IMP_core.VolumeRestraint_swigregister(VolumeRestraint)
12844 
12845 def get_centroid(ps):
12846  r"""get_centroid(IMP::core::XYZs const & ps) -> Vector3D"""
12847  return _IMP_core.get_centroid(ps)
12848 
12849 def get_bounding_box(ps):
12850  r"""get_bounding_box(IMP::core::XYZRs const & ps) -> BoundingBox3D"""
12851  return _IMP_core.get_bounding_box(ps)
12852 class MoveStatisticsScoreState(IMP.ScoreState):
12853  r"""Proxy of C++ IMP::core::MoveStatisticsScoreState class."""
12854 
12855  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12856 
12857  def __init__(self, ps):
12858  r"""__init__(MoveStatisticsScoreState self, IMP::ParticlesTemp const & ps) -> MoveStatisticsScoreState"""
12859  _IMP_core.MoveStatisticsScoreState_swiginit(self, _IMP_core.new_MoveStatisticsScoreState(ps))
12860 
12861  def show_statistics(self, *args):
12862  r"""show_statistics(MoveStatisticsScoreState self, _ostream out=std::cout)"""
12863  return _IMP_core.MoveStatisticsScoreState_show_statistics(self, *args)
12864 
12865  def reset(self):
12866  r"""reset(MoveStatisticsScoreState self)"""
12867  return _IMP_core.MoveStatisticsScoreState_reset(self)
12868 
12869  def do_before_evaluate(self):
12870  r"""do_before_evaluate(MoveStatisticsScoreState self)"""
12871  return _IMP_core.MoveStatisticsScoreState_do_before_evaluate(self)
12872 
12873  def do_after_evaluate(self, da):
12874  r"""do_after_evaluate(MoveStatisticsScoreState self, DerivativeAccumulator da)"""
12875  return _IMP_core.MoveStatisticsScoreState_do_after_evaluate(self, da)
12876 
12877  def do_get_inputs(self):
12878  r"""do_get_inputs(MoveStatisticsScoreState self) -> IMP::ModelObjectsTemp"""
12879  return _IMP_core.MoveStatisticsScoreState_do_get_inputs(self)
12880 
12881  def do_get_outputs(self):
12882  r"""do_get_outputs(MoveStatisticsScoreState self) -> IMP::ModelObjectsTemp"""
12883  return _IMP_core.MoveStatisticsScoreState_do_get_outputs(self)
12884 
12885  def get_version_info(self):
12886  r"""get_version_info(MoveStatisticsScoreState self) -> VersionInfo"""
12887  return _IMP_core.MoveStatisticsScoreState_get_version_info(self)
12888  __swig_destroy__ = _IMP_core.delete_MoveStatisticsScoreState
12889 
12890  def __str__(self):
12891  r"""__str__(MoveStatisticsScoreState self) -> std::string"""
12892  return _IMP_core.MoveStatisticsScoreState___str__(self)
12893 
12894  def __repr__(self):
12895  r"""__repr__(MoveStatisticsScoreState self) -> std::string"""
12896  return _IMP_core.MoveStatisticsScoreState___repr__(self)
12897 
12898  @staticmethod
12899  def get_from(o):
12900  return _object_cast_to_MoveStatisticsScoreState(o)
12901 
12902 
12903 # Register MoveStatisticsScoreState in _IMP_core:
12904 _IMP_core.MoveStatisticsScoreState_swigregister(MoveStatisticsScoreState)
12905 IMP_PARTICLE_TYPE_INDEX = _IMP_core.IMP_PARTICLE_TYPE_INDEX
12906 
12907 class Typed(IMP.Decorator):
12908  r"""Proxy of C++ IMP::core::Typed class."""
12909 
12910  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12911 
12912  @staticmethod
12913  def get_type_key():
12914  r"""get_type_key() -> IntKey"""
12915  return _IMP_core.Typed_get_type_key()
12916 
12917  def __init__(self, *args):
12918  r"""
12919  __init__(Typed self) -> Typed
12920  __init__(Typed self, Model m, ParticleIndex id) -> Typed
12921  __init__(Typed self, _ParticleAdaptor d) -> Typed
12922  """
12923  _IMP_core.Typed_swiginit(self, _IMP_core.new_Typed(*args))
12924 
12925  def show(self, *args):
12926  r"""show(Typed self, _ostream out=std::cout)"""
12927  return _IMP_core.Typed_show(self, *args)
12928 
12929  @staticmethod
12930  def setup_particle(*args):
12931  r"""
12932  setup_particle(Model m, ParticleIndex pi, ParticleType t) -> Typed
12933  setup_particle(_ParticleAdaptor pa, ParticleType t) -> Typed
12934  """
12935  return _IMP_core.Typed_setup_particle(*args)
12936 
12937  @staticmethod
12938  def get_is_setup(*args):
12939  r"""
12940  get_is_setup(_ParticleAdaptor p) -> bool
12941  get_is_setup(Model m, ParticleIndex pi) -> bool
12942  """
12943  return _IMP_core.Typed_get_is_setup(*args)
12944 
12945  def get_type(self):
12946  r"""get_type(Typed self) -> ParticleType"""
12947  return _IMP_core.Typed_get_type(self)
12948 
12949  def set_type(self, pt):
12950  r"""set_type(Typed self, ParticleType pt)"""
12951  return _IMP_core.Typed_set_type(self, pt)
12952 
12953  def add_attribute(self, *args):
12954  r"""
12955  add_attribute(Typed self, FloatKey k, IMP::Float v, bool opt)
12956  add_attribute(Typed self, FloatKey a0, IMP::Float a1)
12957  add_attribute(Typed self, IntKey a0, IMP::Int a1)
12958  add_attribute(Typed self, FloatsKey a0, IMP::Floats a1)
12959  add_attribute(Typed self, IntsKey a0, IMP::Ints a1)
12960  add_attribute(Typed self, StringKey a0, IMP::String a1)
12961  add_attribute(Typed self, ParticleIndexKey a0, Particle a1)
12962  add_attribute(Typed self, ObjectKey a0, Object a1)
12963  add_attribute(Typed self, SparseFloatKey a0, IMP::Float a1)
12964  add_attribute(Typed self, SparseIntKey a0, IMP::Int a1)
12965  add_attribute(Typed self, SparseStringKey a0, IMP::String a1)
12966  add_attribute(Typed self, SparseParticleIndexKey a0, ParticleIndex a1)
12967  """
12968  return _IMP_core.Typed_add_attribute(self, *args)
12969 
12970  def get_value(self, *args):
12971  r"""
12972  get_value(Typed self, FloatKey a0) -> IMP::Float
12973  get_value(Typed self, IntKey a0) -> IMP::Int
12974  get_value(Typed self, FloatsKey a0) -> IMP::Floats
12975  get_value(Typed self, IntsKey a0) -> IMP::Ints
12976  get_value(Typed self, StringKey a0) -> IMP::String
12977  get_value(Typed self, ParticleIndexKey a0) -> Particle
12978  get_value(Typed self, ObjectKey a0) -> Object
12979  get_value(Typed self, SparseFloatKey a0) -> IMP::Float
12980  get_value(Typed self, SparseIntKey a0) -> IMP::Int
12981  get_value(Typed self, SparseStringKey a0) -> IMP::String
12982  get_value(Typed self, SparseParticleIndexKey a0) -> ParticleIndex
12983  """
12984  return _IMP_core.Typed_get_value(self, *args)
12985 
12986  def set_value(self, *args):
12987  r"""
12988  set_value(Typed self, FloatKey a0, IMP::Float a1)
12989  set_value(Typed self, IntKey a0, IMP::Int a1)
12990  set_value(Typed self, FloatsKey a0, IMP::Floats a1)
12991  set_value(Typed self, IntsKey a0, IMP::Ints a1)
12992  set_value(Typed self, StringKey a0, IMP::String a1)
12993  set_value(Typed self, ParticleIndexKey a0, Particle a1)
12994  set_value(Typed self, ObjectKey a0, Object a1)
12995  set_value(Typed self, SparseFloatKey a0, IMP::Float a1)
12996  set_value(Typed self, SparseIntKey a0, IMP::Int a1)
12997  set_value(Typed self, SparseStringKey a0, IMP::String a1)
12998  set_value(Typed self, SparseParticleIndexKey a0, ParticleIndex a1)
12999  """
13000  return _IMP_core.Typed_set_value(self, *args)
13001 
13002  def remove_attribute(self, *args):
13003  r"""
13004  remove_attribute(Typed self, FloatKey a0)
13005  remove_attribute(Typed self, IntKey a0)
13006  remove_attribute(Typed self, FloatsKey a0)
13007  remove_attribute(Typed self, IntsKey a0)
13008  remove_attribute(Typed self, StringKey a0)
13009  remove_attribute(Typed self, ParticleIndexKey a0)
13010  remove_attribute(Typed self, ObjectKey a0)
13011  remove_attribute(Typed self, SparseFloatKey a0)
13012  remove_attribute(Typed self, SparseIntKey a0)
13013  remove_attribute(Typed self, SparseStringKey a0)
13014  remove_attribute(Typed self, SparseParticleIndexKey a0)
13015  """
13016  return _IMP_core.Typed_remove_attribute(self, *args)
13017 
13018  def has_attribute(self, *args):
13019  r"""
13020  has_attribute(Typed self, FloatKey a0) -> bool
13021  has_attribute(Typed self, IntKey a0) -> bool
13022  has_attribute(Typed self, FloatsKey a0) -> bool
13023  has_attribute(Typed self, IntsKey a0) -> bool
13024  has_attribute(Typed self, StringKey a0) -> bool
13025  has_attribute(Typed self, ParticleIndexKey a0) -> bool
13026  has_attribute(Typed self, ObjectKey a0) -> bool
13027  has_attribute(Typed self, SparseFloatKey a0) -> bool
13028  has_attribute(Typed self, SparseIntKey a0) -> bool
13029  has_attribute(Typed self, SparseStringKey a0) -> bool
13030  has_attribute(Typed self, SparseParticleIndexKey a0) -> bool
13031  """
13032  return _IMP_core.Typed_has_attribute(self, *args)
13033 
13034  def get_derivative(self, a0):
13035  r"""get_derivative(Typed self, FloatKey a0) -> double"""
13036  return _IMP_core.Typed_get_derivative(self, a0)
13037 
13038  def get_name(self):
13039  r"""get_name(Typed self) -> std::string"""
13040  return _IMP_core.Typed_get_name(self)
13041 
13042  def clear_caches(self):
13043  r"""clear_caches(Typed self)"""
13044  return _IMP_core.Typed_clear_caches(self)
13045 
13046  def set_name(self, a0):
13047  r"""set_name(Typed self, std::string a0)"""
13048  return _IMP_core.Typed_set_name(self, a0)
13049 
13050  def set_check_level(self, a0):
13051  r"""set_check_level(Typed self, IMP::CheckLevel a0)"""
13052  return _IMP_core.Typed_set_check_level(self, a0)
13053 
13054  def add_to_derivative(self, a0, a1, a2):
13055  r"""add_to_derivative(Typed self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13056  return _IMP_core.Typed_add_to_derivative(self, a0, a1, a2)
13057 
13058  def set_is_optimized(self, a0, a1):
13059  r"""set_is_optimized(Typed self, FloatKey a0, bool a1)"""
13060  return _IMP_core.Typed_set_is_optimized(self, a0, a1)
13061 
13062  def get_is_optimized(self, a0):
13063  r"""get_is_optimized(Typed self, FloatKey a0) -> bool"""
13064  return _IMP_core.Typed_get_is_optimized(self, a0)
13065 
13066  def get_check_level(self):
13067  r"""get_check_level(Typed self) -> IMP::CheckLevel"""
13068  return _IMP_core.Typed_get_check_level(self)
13069 
13070  def __eq__(self, *args):
13071  r"""
13072  __eq__(Typed self, Typed o) -> bool
13073  __eq__(Typed self, Particle d) -> bool
13074  """
13075  return _IMP_core.Typed___eq__(self, *args)
13076 
13077  def __ne__(self, *args):
13078  r"""
13079  __ne__(Typed self, Typed o) -> bool
13080  __ne__(Typed self, Particle d) -> bool
13081  """
13082  return _IMP_core.Typed___ne__(self, *args)
13083 
13084  def __le__(self, *args):
13085  r"""
13086  __le__(Typed self, Typed o) -> bool
13087  __le__(Typed self, Particle d) -> bool
13088  """
13089  return _IMP_core.Typed___le__(self, *args)
13090 
13091  def __lt__(self, *args):
13092  r"""
13093  __lt__(Typed self, Typed o) -> bool
13094  __lt__(Typed self, Particle d) -> bool
13095  """
13096  return _IMP_core.Typed___lt__(self, *args)
13097 
13098  def __ge__(self, *args):
13099  r"""
13100  __ge__(Typed self, Typed o) -> bool
13101  __ge__(Typed self, Particle d) -> bool
13102  """
13103  return _IMP_core.Typed___ge__(self, *args)
13104 
13105  def __gt__(self, *args):
13106  r"""
13107  __gt__(Typed self, Typed o) -> bool
13108  __gt__(Typed self, Particle d) -> bool
13109  """
13110  return _IMP_core.Typed___gt__(self, *args)
13111 
13112  def __hash__(self):
13113  r"""__hash__(Typed self) -> std::size_t"""
13114  return _IMP_core.Typed___hash__(self)
13115 
13116  def __str__(self):
13117  r"""__str__(Typed self) -> std::string"""
13118  return _IMP_core.Typed___str__(self)
13119 
13120  def __repr__(self):
13121  r"""__repr__(Typed self) -> std::string"""
13122  return _IMP_core.Typed___repr__(self)
13123 
13124  def _get_as_binary(self):
13125  r"""_get_as_binary(Typed self) -> PyObject *"""
13126  return _IMP_core.Typed__get_as_binary(self)
13127 
13128  def _set_from_binary(self, p):
13129  r"""_set_from_binary(Typed self, PyObject * p)"""
13130  return _IMP_core.Typed__set_from_binary(self, p)
13131 
13132  def __getstate__(self):
13133  p = self._get_as_binary()
13134  if len(self.__dict__) > 1:
13135  d = self.__dict__.copy()
13136  del d['this']
13137  p = (d, p)
13138  return p
13139 
13140  def __setstate__(self, p):
13141  if not hasattr(self, 'this'):
13142  self.__init__()
13143  if isinstance(p, tuple):
13144  d, p = p
13145  self.__dict__.update(d)
13146  return self._set_from_binary(p)
13147 
13148  __swig_destroy__ = _IMP_core.delete_Typed
13149 
13150 # Register Typed in _IMP_core:
13151 _IMP_core.Typed_swigregister(Typed)
13152 
13153 def __lshift__(*args):
13154  r"""
13155  __lshift__(_ostream out, XYZ n) -> _ostream
13156  __lshift__(_ostream out, XYZR n) -> _ostream
13157  __lshift__(_ostream out, Direction n) -> _ostream
13158  __lshift__(_ostream out, DirectionAngle n) -> _ostream
13159  __lshift__(_ostream out, Surface n) -> _ostream
13160  __lshift__(_ostream out, Centroid n) -> _ostream
13161  __lshift__(_ostream out, Cover n) -> _ostream
13162  __lshift__(_ostream out, Reference n) -> _ostream
13163  __lshift__(_ostream out, RigidMember n) -> _ostream
13164  __lshift__(_ostream out, RigidBody n) -> _ostream
13165  __lshift__(_ostream out, Gaussian n) -> _ostream
13166  __lshift__(_ostream out, Typed n) -> _ostream
13167  """
13168  return _IMP_core.__lshift__(*args)
13169 class WriteRestraintScoresOptimizerState(IMP.OptimizerState):
13170  r"""Proxy of C++ IMP::core::WriteRestraintScoresOptimizerState class."""
13171 
13172  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13173 
13174  def __init__(self, rs, out):
13175  r"""__init__(WriteRestraintScoresOptimizerState self, IMP::Restraints const & rs, TextOutput out) -> WriteRestraintScoresOptimizerState"""
13176  _IMP_core.WriteRestraintScoresOptimizerState_swiginit(self, _IMP_core.new_WriteRestraintScoresOptimizerState(rs, out))
13177 
13178  def get_version_info(self):
13179  r"""get_version_info(WriteRestraintScoresOptimizerState self) -> VersionInfo"""
13180  return _IMP_core.WriteRestraintScoresOptimizerState_get_version_info(self)
13181  __swig_destroy__ = _IMP_core.delete_WriteRestraintScoresOptimizerState
13182 
13183  def __str__(self):
13184  r"""__str__(WriteRestraintScoresOptimizerState self) -> std::string"""
13185  return _IMP_core.WriteRestraintScoresOptimizerState___str__(self)
13186 
13187  def __repr__(self):
13188  r"""__repr__(WriteRestraintScoresOptimizerState self) -> std::string"""
13189  return _IMP_core.WriteRestraintScoresOptimizerState___repr__(self)
13190 
13191  @staticmethod
13192  def get_from(o):
13193  return _object_cast_to_WriteRestraintScoresOptimizerState(o)
13194 
13195 
13196 # Register WriteRestraintScoresOptimizerState in _IMP_core:
13197 _IMP_core.WriteRestraintScoresOptimizerState_swigregister(WriteRestraintScoresOptimizerState)
13198 
13199 def assign_blame(rs, ps, attribute):
13200  r"""assign_blame(IMP::RestraintsTemp const & rs, IMP::ParticlesTemp const & ps, FloatKey attribute)"""
13201  return _IMP_core.assign_blame(rs, ps, attribute)
13202 
13203 def create_blame_geometries(*args):
13204  r"""create_blame_geometries(IMP::RestraintsTemp const & rs, IMP::ParticlesTemp const & ps, double max=NO_MAX, std::string name=std::string()) -> IMP::display::Geometries"""
13205  return _IMP_core.create_blame_geometries(*args)
13206 class MultipleBinormalRestraint(IMP.Restraint):
13207  r"""Proxy of C++ IMP::core::MultipleBinormalRestraint class."""
13208 
13209  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13210 
13211  def __init__(self, m, q1, q2):
13212  r"""__init__(MultipleBinormalRestraint self, Model m, IMP::ParticleIndexQuad const & q1, IMP::ParticleIndexQuad const & q2) -> MultipleBinormalRestraint"""
13213  _IMP_core.MultipleBinormalRestraint_swiginit(self, _IMP_core.new_MultipleBinormalRestraint(m, q1, q2))
13214 
13215  def add_term(self, term):
13216  r"""add_term(MultipleBinormalRestraint self, BinormalTerm term)"""
13217  return _IMP_core.MultipleBinormalRestraint_add_term(self, term)
13218 
13219  def do_get_inputs(self):
13220  r"""do_get_inputs(MultipleBinormalRestraint self) -> IMP::ModelObjectsTemp"""
13221  return _IMP_core.MultipleBinormalRestraint_do_get_inputs(self)
13222 
13223  def get_version_info(self):
13224  r"""get_version_info(MultipleBinormalRestraint self) -> VersionInfo"""
13225  return _IMP_core.MultipleBinormalRestraint_get_version_info(self)
13226  __swig_destroy__ = _IMP_core.delete_MultipleBinormalRestraint
13227 
13228  def __str__(self):
13229  r"""__str__(MultipleBinormalRestraint self) -> std::string"""
13230  return _IMP_core.MultipleBinormalRestraint___str__(self)
13231 
13232  def __repr__(self):
13233  r"""__repr__(MultipleBinormalRestraint self) -> std::string"""
13234  return _IMP_core.MultipleBinormalRestraint___repr__(self)
13235 
13236  @staticmethod
13237  def get_from(o):
13238  return _object_cast_to_MultipleBinormalRestraint(o)
13239 
13240 
13241 # Register MultipleBinormalRestraint in _IMP_core:
13242 _IMP_core.MultipleBinormalRestraint_swigregister(MultipleBinormalRestraint)
13243 class BinormalTerm(object):
13244  r"""Proxy of C++ IMP::core::BinormalTerm class."""
13245 
13246  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13247 
13248  def __init__(self):
13249  r"""__init__(BinormalTerm self) -> BinormalTerm"""
13250  _IMP_core.BinormalTerm_swiginit(self, _IMP_core.new_BinormalTerm())
13251 
13252  def set_correlation(self, correlation):
13253  r"""set_correlation(BinormalTerm self, double correlation)"""
13254  return _IMP_core.BinormalTerm_set_correlation(self, correlation)
13255 
13256  def set_weight(self, weight):
13257  r"""set_weight(BinormalTerm self, double weight)"""
13258  return _IMP_core.BinormalTerm_set_weight(self, weight)
13259 
13260  def set_means(self, means):
13261  r"""set_means(BinormalTerm self, IMP::FloatPair means)"""
13262  return _IMP_core.BinormalTerm_set_means(self, means)
13263 
13264  def set_standard_deviations(self, stdevs):
13265  r"""set_standard_deviations(BinormalTerm self, IMP::FloatPair stdevs)"""
13266  return _IMP_core.BinormalTerm_set_standard_deviations(self, stdevs)
13267 
13268  def show(self, *args):
13269  r"""show(BinormalTerm self, _ostream out=std::cout)"""
13270  return _IMP_core.BinormalTerm_show(self, *args)
13271 
13272  def __str__(self):
13273  r"""__str__(BinormalTerm self) -> std::string"""
13274  return _IMP_core.BinormalTerm___str__(self)
13275 
13276  def __repr__(self):
13277  r"""__repr__(BinormalTerm self) -> std::string"""
13278  return _IMP_core.BinormalTerm___repr__(self)
13279 
13280  def _get_as_binary(self):
13281  r"""_get_as_binary(BinormalTerm self) -> PyObject *"""
13282  return _IMP_core.BinormalTerm__get_as_binary(self)
13283 
13284  def _set_from_binary(self, p):
13285  r"""_set_from_binary(BinormalTerm self, PyObject * p)"""
13286  return _IMP_core.BinormalTerm__set_from_binary(self, p)
13287 
13288  def __getstate__(self):
13289  p = self._get_as_binary()
13290  if len(self.__dict__) > 1:
13291  d = self.__dict__.copy()
13292  del d['this']
13293  p = (d, p)
13294  return p
13295 
13296  def __setstate__(self, p):
13297  if not hasattr(self, 'this'):
13298  self.__init__()
13299  if isinstance(p, tuple):
13300  d, p = p
13301  self.__dict__.update(d)
13302  return self._set_from_binary(p)
13303 
13304  __swig_destroy__ = _IMP_core.delete_BinormalTerm
13305 
13306 # Register BinormalTerm in _IMP_core:
13307 _IMP_core.BinormalTerm_swigregister(BinormalTerm)
13308 class Provenance(IMP.Decorator):
13309  r"""Proxy of C++ IMP::core::Provenance class."""
13310 
13311  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13312 
13313  def get_previous(self):
13314  r"""get_previous(Provenance self) -> Provenance"""
13315  return _IMP_core.Provenance_get_previous(self)
13316 
13317  def set_previous(self, p):
13318  r"""set_previous(Provenance self, Provenance p)"""
13319  return _IMP_core.Provenance_set_previous(self, p)
13320 
13321  def __init__(self, *args):
13322  r"""
13323  __init__(Provenance self) -> Provenance
13324  __init__(Provenance self, Model m, ParticleIndex id) -> Provenance
13325  __init__(Provenance self, _ParticleAdaptor d) -> Provenance
13326  """
13327  _IMP_core.Provenance_swiginit(self, _IMP_core.new_Provenance(*args))
13328 
13329  @staticmethod
13330  def get_is_setup(*args):
13331  r"""
13332  get_is_setup(Model m, ParticleIndex pi) -> bool
13333  get_is_setup(_ParticleAdaptor p) -> bool
13334  """
13335  return _IMP_core.Provenance_get_is_setup(*args)
13336 
13337  def show(self, *args):
13338  r"""show(Provenance self, _ostream out=std::cout)"""
13339  return _IMP_core.Provenance_show(self, *args)
13340 
13341  @staticmethod
13342  def setup_particle(*args):
13343  r"""
13344  setup_particle(Model m, ParticleIndex pi) -> Provenance
13345  setup_particle(_ParticleAdaptor pa) -> Provenance
13346  """
13347  return _IMP_core.Provenance_setup_particle(*args)
13348 
13349  def add_attribute(self, *args):
13350  r"""
13351  add_attribute(Provenance self, FloatKey k, IMP::Float v, bool opt)
13352  add_attribute(Provenance self, FloatKey a0, IMP::Float a1)
13353  add_attribute(Provenance self, IntKey a0, IMP::Int a1)
13354  add_attribute(Provenance self, FloatsKey a0, IMP::Floats a1)
13355  add_attribute(Provenance self, IntsKey a0, IMP::Ints a1)
13356  add_attribute(Provenance self, StringKey a0, IMP::String a1)
13357  add_attribute(Provenance self, ParticleIndexKey a0, Particle a1)
13358  add_attribute(Provenance self, ObjectKey a0, Object a1)
13359  add_attribute(Provenance self, SparseFloatKey a0, IMP::Float a1)
13360  add_attribute(Provenance self, SparseIntKey a0, IMP::Int a1)
13361  add_attribute(Provenance self, SparseStringKey a0, IMP::String a1)
13362  add_attribute(Provenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13363  """
13364  return _IMP_core.Provenance_add_attribute(self, *args)
13365 
13366  def get_value(self, *args):
13367  r"""
13368  get_value(Provenance self, FloatKey a0) -> IMP::Float
13369  get_value(Provenance self, IntKey a0) -> IMP::Int
13370  get_value(Provenance self, FloatsKey a0) -> IMP::Floats
13371  get_value(Provenance self, IntsKey a0) -> IMP::Ints
13372  get_value(Provenance self, StringKey a0) -> IMP::String
13373  get_value(Provenance self, ParticleIndexKey a0) -> Particle
13374  get_value(Provenance self, ObjectKey a0) -> Object
13375  get_value(Provenance self, SparseFloatKey a0) -> IMP::Float
13376  get_value(Provenance self, SparseIntKey a0) -> IMP::Int
13377  get_value(Provenance self, SparseStringKey a0) -> IMP::String
13378  get_value(Provenance self, SparseParticleIndexKey a0) -> ParticleIndex
13379  """
13380  return _IMP_core.Provenance_get_value(self, *args)
13381 
13382  def set_value(self, *args):
13383  r"""
13384  set_value(Provenance self, FloatKey a0, IMP::Float a1)
13385  set_value(Provenance self, IntKey a0, IMP::Int a1)
13386  set_value(Provenance self, FloatsKey a0, IMP::Floats a1)
13387  set_value(Provenance self, IntsKey a0, IMP::Ints a1)
13388  set_value(Provenance self, StringKey a0, IMP::String a1)
13389  set_value(Provenance self, ParticleIndexKey a0, Particle a1)
13390  set_value(Provenance self, ObjectKey a0, Object a1)
13391  set_value(Provenance self, SparseFloatKey a0, IMP::Float a1)
13392  set_value(Provenance self, SparseIntKey a0, IMP::Int a1)
13393  set_value(Provenance self, SparseStringKey a0, IMP::String a1)
13394  set_value(Provenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13395  """
13396  return _IMP_core.Provenance_set_value(self, *args)
13397 
13398  def remove_attribute(self, *args):
13399  r"""
13400  remove_attribute(Provenance self, FloatKey a0)
13401  remove_attribute(Provenance self, IntKey a0)
13402  remove_attribute(Provenance self, FloatsKey a0)
13403  remove_attribute(Provenance self, IntsKey a0)
13404  remove_attribute(Provenance self, StringKey a0)
13405  remove_attribute(Provenance self, ParticleIndexKey a0)
13406  remove_attribute(Provenance self, ObjectKey a0)
13407  remove_attribute(Provenance self, SparseFloatKey a0)
13408  remove_attribute(Provenance self, SparseIntKey a0)
13409  remove_attribute(Provenance self, SparseStringKey a0)
13410  remove_attribute(Provenance self, SparseParticleIndexKey a0)
13411  """
13412  return _IMP_core.Provenance_remove_attribute(self, *args)
13413 
13414  def has_attribute(self, *args):
13415  r"""
13416  has_attribute(Provenance self, FloatKey a0) -> bool
13417  has_attribute(Provenance self, IntKey a0) -> bool
13418  has_attribute(Provenance self, FloatsKey a0) -> bool
13419  has_attribute(Provenance self, IntsKey a0) -> bool
13420  has_attribute(Provenance self, StringKey a0) -> bool
13421  has_attribute(Provenance self, ParticleIndexKey a0) -> bool
13422  has_attribute(Provenance self, ObjectKey a0) -> bool
13423  has_attribute(Provenance self, SparseFloatKey a0) -> bool
13424  has_attribute(Provenance self, SparseIntKey a0) -> bool
13425  has_attribute(Provenance self, SparseStringKey a0) -> bool
13426  has_attribute(Provenance self, SparseParticleIndexKey a0) -> bool
13427  """
13428  return _IMP_core.Provenance_has_attribute(self, *args)
13429 
13430  def get_derivative(self, a0):
13431  r"""get_derivative(Provenance self, FloatKey a0) -> double"""
13432  return _IMP_core.Provenance_get_derivative(self, a0)
13433 
13434  def get_name(self):
13435  r"""get_name(Provenance self) -> std::string"""
13436  return _IMP_core.Provenance_get_name(self)
13437 
13438  def clear_caches(self):
13439  r"""clear_caches(Provenance self)"""
13440  return _IMP_core.Provenance_clear_caches(self)
13441 
13442  def set_name(self, a0):
13443  r"""set_name(Provenance self, std::string a0)"""
13444  return _IMP_core.Provenance_set_name(self, a0)
13445 
13446  def set_check_level(self, a0):
13447  r"""set_check_level(Provenance self, IMP::CheckLevel a0)"""
13448  return _IMP_core.Provenance_set_check_level(self, a0)
13449 
13450  def add_to_derivative(self, a0, a1, a2):
13451  r"""add_to_derivative(Provenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13452  return _IMP_core.Provenance_add_to_derivative(self, a0, a1, a2)
13453 
13454  def set_is_optimized(self, a0, a1):
13455  r"""set_is_optimized(Provenance self, FloatKey a0, bool a1)"""
13456  return _IMP_core.Provenance_set_is_optimized(self, a0, a1)
13457 
13458  def get_is_optimized(self, a0):
13459  r"""get_is_optimized(Provenance self, FloatKey a0) -> bool"""
13460  return _IMP_core.Provenance_get_is_optimized(self, a0)
13461 
13462  def get_check_level(self):
13463  r"""get_check_level(Provenance self) -> IMP::CheckLevel"""
13464  return _IMP_core.Provenance_get_check_level(self)
13465 
13466  def __eq__(self, *args):
13467  r"""
13468  __eq__(Provenance self, Provenance o) -> bool
13469  __eq__(Provenance self, Particle d) -> bool
13470  """
13471  return _IMP_core.Provenance___eq__(self, *args)
13472 
13473  def __ne__(self, *args):
13474  r"""
13475  __ne__(Provenance self, Provenance o) -> bool
13476  __ne__(Provenance self, Particle d) -> bool
13477  """
13478  return _IMP_core.Provenance___ne__(self, *args)
13479 
13480  def __le__(self, *args):
13481  r"""
13482  __le__(Provenance self, Provenance o) -> bool
13483  __le__(Provenance self, Particle d) -> bool
13484  """
13485  return _IMP_core.Provenance___le__(self, *args)
13486 
13487  def __lt__(self, *args):
13488  r"""
13489  __lt__(Provenance self, Provenance o) -> bool
13490  __lt__(Provenance self, Particle d) -> bool
13491  """
13492  return _IMP_core.Provenance___lt__(self, *args)
13493 
13494  def __ge__(self, *args):
13495  r"""
13496  __ge__(Provenance self, Provenance o) -> bool
13497  __ge__(Provenance self, Particle d) -> bool
13498  """
13499  return _IMP_core.Provenance___ge__(self, *args)
13500 
13501  def __gt__(self, *args):
13502  r"""
13503  __gt__(Provenance self, Provenance o) -> bool
13504  __gt__(Provenance self, Particle d) -> bool
13505  """
13506  return _IMP_core.Provenance___gt__(self, *args)
13507 
13508  def __hash__(self):
13509  r"""__hash__(Provenance self) -> std::size_t"""
13510  return _IMP_core.Provenance___hash__(self)
13511 
13512  def __str__(self):
13513  r"""__str__(Provenance self) -> std::string"""
13514  return _IMP_core.Provenance___str__(self)
13515 
13516  def __repr__(self):
13517  r"""__repr__(Provenance self) -> std::string"""
13518  return _IMP_core.Provenance___repr__(self)
13519 
13520  def _get_as_binary(self):
13521  r"""_get_as_binary(Provenance self) -> PyObject *"""
13522  return _IMP_core.Provenance__get_as_binary(self)
13523 
13524  def _set_from_binary(self, p):
13525  r"""_set_from_binary(Provenance self, PyObject * p)"""
13526  return _IMP_core.Provenance__set_from_binary(self, p)
13527 
13528  def __getstate__(self):
13529  p = self._get_as_binary()
13530  if len(self.__dict__) > 1:
13531  d = self.__dict__.copy()
13532  del d['this']
13533  p = (d, p)
13534  return p
13535 
13536  def __setstate__(self, p):
13537  if not hasattr(self, 'this'):
13538  self.__init__()
13539  if isinstance(p, tuple):
13540  d, p = p
13541  self.__dict__.update(d)
13542  return self._set_from_binary(p)
13543 
13544  __swig_destroy__ = _IMP_core.delete_Provenance
13545 
13546 # Register Provenance in _IMP_core:
13547 _IMP_core.Provenance_swigregister(Provenance)
13548 class StructureProvenance(Provenance):
13549  r"""Proxy of C++ IMP::core::StructureProvenance class."""
13550 
13551  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13552 
13553  def set_filename(self, filename):
13554  r"""set_filename(StructureProvenance self, std::string filename)"""
13555  return _IMP_core.StructureProvenance_set_filename(self, filename)
13556 
13557  def get_filename(self):
13558  r"""get_filename(StructureProvenance self) -> std::string"""
13559  return _IMP_core.StructureProvenance_get_filename(self)
13560 
13561  def set_chain_id(self, chain_id):
13562  r"""set_chain_id(StructureProvenance self, std::string chain_id)"""
13563  return _IMP_core.StructureProvenance_set_chain_id(self, chain_id)
13564 
13565  def get_chain_id(self):
13566  r"""get_chain_id(StructureProvenance self) -> std::string"""
13567  return _IMP_core.StructureProvenance_get_chain_id(self)
13568 
13569  def set_residue_offset(self, residue_offset):
13570  r"""set_residue_offset(StructureProvenance self, int residue_offset)"""
13571  return _IMP_core.StructureProvenance_set_residue_offset(self, residue_offset)
13572 
13573  def get_residue_offset(self):
13574  r"""get_residue_offset(StructureProvenance self) -> int"""
13575  return _IMP_core.StructureProvenance_get_residue_offset(self)
13576 
13577  def __init__(self, *args):
13578  r"""
13579  __init__(StructureProvenance self) -> StructureProvenance
13580  __init__(StructureProvenance self, Model m, ParticleIndex id) -> StructureProvenance
13581  __init__(StructureProvenance self, _ParticleAdaptor d) -> StructureProvenance
13582  """
13583  _IMP_core.StructureProvenance_swiginit(self, _IMP_core.new_StructureProvenance(*args))
13584 
13585  @staticmethod
13586  def get_is_setup(*args):
13587  r"""
13588  get_is_setup(Model m, ParticleIndex pi) -> bool
13589  get_is_setup(_ParticleAdaptor p) -> bool
13590  """
13591  return _IMP_core.StructureProvenance_get_is_setup(*args)
13592 
13593  def show(self, *args):
13594  r"""show(StructureProvenance self, _ostream out=std::cout)"""
13595  return _IMP_core.StructureProvenance_show(self, *args)
13596 
13597  @staticmethod
13598  def setup_particle(*args):
13599  r"""
13600  setup_particle(Model m, ParticleIndex pi, std::string filename, std::string chain_id, int residue_offset) -> StructureProvenance
13601  setup_particle(_ParticleAdaptor pa, std::string filename, std::string chain_id, int residue_offset) -> StructureProvenance
13602  setup_particle(Model m, ParticleIndex pi, std::string filename, std::string chain_id) -> StructureProvenance
13603  setup_particle(_ParticleAdaptor pa, std::string filename, std::string chain_id) -> StructureProvenance
13604  setup_particle(Model m, ParticleIndex pi, StructureProvenance o) -> StructureProvenance
13605  setup_particle(_ParticleAdaptor pa, StructureProvenance o) -> StructureProvenance
13606  """
13607  return _IMP_core.StructureProvenance_setup_particle(*args)
13608 
13609  def add_attribute(self, *args):
13610  r"""
13611  add_attribute(StructureProvenance self, FloatKey k, IMP::Float v, bool opt)
13612  add_attribute(StructureProvenance self, FloatKey a0, IMP::Float a1)
13613  add_attribute(StructureProvenance self, IntKey a0, IMP::Int a1)
13614  add_attribute(StructureProvenance self, FloatsKey a0, IMP::Floats a1)
13615  add_attribute(StructureProvenance self, IntsKey a0, IMP::Ints a1)
13616  add_attribute(StructureProvenance self, StringKey a0, IMP::String a1)
13617  add_attribute(StructureProvenance self, ParticleIndexKey a0, Particle a1)
13618  add_attribute(StructureProvenance self, ObjectKey a0, Object a1)
13619  add_attribute(StructureProvenance self, SparseFloatKey a0, IMP::Float a1)
13620  add_attribute(StructureProvenance self, SparseIntKey a0, IMP::Int a1)
13621  add_attribute(StructureProvenance self, SparseStringKey a0, IMP::String a1)
13622  add_attribute(StructureProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13623  """
13624  return _IMP_core.StructureProvenance_add_attribute(self, *args)
13625 
13626  def get_value(self, *args):
13627  r"""
13628  get_value(StructureProvenance self, FloatKey a0) -> IMP::Float
13629  get_value(StructureProvenance self, IntKey a0) -> IMP::Int
13630  get_value(StructureProvenance self, FloatsKey a0) -> IMP::Floats
13631  get_value(StructureProvenance self, IntsKey a0) -> IMP::Ints
13632  get_value(StructureProvenance self, StringKey a0) -> IMP::String
13633  get_value(StructureProvenance self, ParticleIndexKey a0) -> Particle
13634  get_value(StructureProvenance self, ObjectKey a0) -> Object
13635  get_value(StructureProvenance self, SparseFloatKey a0) -> IMP::Float
13636  get_value(StructureProvenance self, SparseIntKey a0) -> IMP::Int
13637  get_value(StructureProvenance self, SparseStringKey a0) -> IMP::String
13638  get_value(StructureProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
13639  """
13640  return _IMP_core.StructureProvenance_get_value(self, *args)
13641 
13642  def set_value(self, *args):
13643  r"""
13644  set_value(StructureProvenance self, FloatKey a0, IMP::Float a1)
13645  set_value(StructureProvenance self, IntKey a0, IMP::Int a1)
13646  set_value(StructureProvenance self, FloatsKey a0, IMP::Floats a1)
13647  set_value(StructureProvenance self, IntsKey a0, IMP::Ints a1)
13648  set_value(StructureProvenance self, StringKey a0, IMP::String a1)
13649  set_value(StructureProvenance self, ParticleIndexKey a0, Particle a1)
13650  set_value(StructureProvenance self, ObjectKey a0, Object a1)
13651  set_value(StructureProvenance self, SparseFloatKey a0, IMP::Float a1)
13652  set_value(StructureProvenance self, SparseIntKey a0, IMP::Int a1)
13653  set_value(StructureProvenance self, SparseStringKey a0, IMP::String a1)
13654  set_value(StructureProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13655  """
13656  return _IMP_core.StructureProvenance_set_value(self, *args)
13657 
13658  def remove_attribute(self, *args):
13659  r"""
13660  remove_attribute(StructureProvenance self, FloatKey a0)
13661  remove_attribute(StructureProvenance self, IntKey a0)
13662  remove_attribute(StructureProvenance self, FloatsKey a0)
13663  remove_attribute(StructureProvenance self, IntsKey a0)
13664  remove_attribute(StructureProvenance self, StringKey a0)
13665  remove_attribute(StructureProvenance self, ParticleIndexKey a0)
13666  remove_attribute(StructureProvenance self, ObjectKey a0)
13667  remove_attribute(StructureProvenance self, SparseFloatKey a0)
13668  remove_attribute(StructureProvenance self, SparseIntKey a0)
13669  remove_attribute(StructureProvenance self, SparseStringKey a0)
13670  remove_attribute(StructureProvenance self, SparseParticleIndexKey a0)
13671  """
13672  return _IMP_core.StructureProvenance_remove_attribute(self, *args)
13673 
13674  def has_attribute(self, *args):
13675  r"""
13676  has_attribute(StructureProvenance self, FloatKey a0) -> bool
13677  has_attribute(StructureProvenance self, IntKey a0) -> bool
13678  has_attribute(StructureProvenance self, FloatsKey a0) -> bool
13679  has_attribute(StructureProvenance self, IntsKey a0) -> bool
13680  has_attribute(StructureProvenance self, StringKey a0) -> bool
13681  has_attribute(StructureProvenance self, ParticleIndexKey a0) -> bool
13682  has_attribute(StructureProvenance self, ObjectKey a0) -> bool
13683  has_attribute(StructureProvenance self, SparseFloatKey a0) -> bool
13684  has_attribute(StructureProvenance self, SparseIntKey a0) -> bool
13685  has_attribute(StructureProvenance self, SparseStringKey a0) -> bool
13686  has_attribute(StructureProvenance self, SparseParticleIndexKey a0) -> bool
13687  """
13688  return _IMP_core.StructureProvenance_has_attribute(self, *args)
13689 
13690  def get_derivative(self, a0):
13691  r"""get_derivative(StructureProvenance self, FloatKey a0) -> double"""
13692  return _IMP_core.StructureProvenance_get_derivative(self, a0)
13693 
13694  def get_name(self):
13695  r"""get_name(StructureProvenance self) -> std::string"""
13696  return _IMP_core.StructureProvenance_get_name(self)
13697 
13698  def clear_caches(self):
13699  r"""clear_caches(StructureProvenance self)"""
13700  return _IMP_core.StructureProvenance_clear_caches(self)
13701 
13702  def set_name(self, a0):
13703  r"""set_name(StructureProvenance self, std::string a0)"""
13704  return _IMP_core.StructureProvenance_set_name(self, a0)
13705 
13706  def set_check_level(self, a0):
13707  r"""set_check_level(StructureProvenance self, IMP::CheckLevel a0)"""
13708  return _IMP_core.StructureProvenance_set_check_level(self, a0)
13709 
13710  def add_to_derivative(self, a0, a1, a2):
13711  r"""add_to_derivative(StructureProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13712  return _IMP_core.StructureProvenance_add_to_derivative(self, a0, a1, a2)
13713 
13714  def set_is_optimized(self, a0, a1):
13715  r"""set_is_optimized(StructureProvenance self, FloatKey a0, bool a1)"""
13716  return _IMP_core.StructureProvenance_set_is_optimized(self, a0, a1)
13717 
13718  def get_is_optimized(self, a0):
13719  r"""get_is_optimized(StructureProvenance self, FloatKey a0) -> bool"""
13720  return _IMP_core.StructureProvenance_get_is_optimized(self, a0)
13721 
13722  def get_check_level(self):
13723  r"""get_check_level(StructureProvenance self) -> IMP::CheckLevel"""
13724  return _IMP_core.StructureProvenance_get_check_level(self)
13725 
13726  def __eq__(self, *args):
13727  r"""
13728  __eq__(StructureProvenance self, StructureProvenance o) -> bool
13729  __eq__(StructureProvenance self, Particle d) -> bool
13730  """
13731  return _IMP_core.StructureProvenance___eq__(self, *args)
13732 
13733  def __ne__(self, *args):
13734  r"""
13735  __ne__(StructureProvenance self, StructureProvenance o) -> bool
13736  __ne__(StructureProvenance self, Particle d) -> bool
13737  """
13738  return _IMP_core.StructureProvenance___ne__(self, *args)
13739 
13740  def __le__(self, *args):
13741  r"""
13742  __le__(StructureProvenance self, StructureProvenance o) -> bool
13743  __le__(StructureProvenance self, Particle d) -> bool
13744  """
13745  return _IMP_core.StructureProvenance___le__(self, *args)
13746 
13747  def __lt__(self, *args):
13748  r"""
13749  __lt__(StructureProvenance self, StructureProvenance o) -> bool
13750  __lt__(StructureProvenance self, Particle d) -> bool
13751  """
13752  return _IMP_core.StructureProvenance___lt__(self, *args)
13753 
13754  def __ge__(self, *args):
13755  r"""
13756  __ge__(StructureProvenance self, StructureProvenance o) -> bool
13757  __ge__(StructureProvenance self, Particle d) -> bool
13758  """
13759  return _IMP_core.StructureProvenance___ge__(self, *args)
13760 
13761  def __gt__(self, *args):
13762  r"""
13763  __gt__(StructureProvenance self, StructureProvenance o) -> bool
13764  __gt__(StructureProvenance self, Particle d) -> bool
13765  """
13766  return _IMP_core.StructureProvenance___gt__(self, *args)
13767 
13768  def __hash__(self):
13769  r"""__hash__(StructureProvenance self) -> std::size_t"""
13770  return _IMP_core.StructureProvenance___hash__(self)
13771 
13772  def __str__(self):
13773  r"""__str__(StructureProvenance self) -> std::string"""
13774  return _IMP_core.StructureProvenance___str__(self)
13775 
13776  def __repr__(self):
13777  r"""__repr__(StructureProvenance self) -> std::string"""
13778  return _IMP_core.StructureProvenance___repr__(self)
13779 
13780  def _get_as_binary(self):
13781  r"""_get_as_binary(StructureProvenance self) -> PyObject *"""
13782  return _IMP_core.StructureProvenance__get_as_binary(self)
13783 
13784  def _set_from_binary(self, p):
13785  r"""_set_from_binary(StructureProvenance self, PyObject * p)"""
13786  return _IMP_core.StructureProvenance__set_from_binary(self, p)
13787 
13788  def __getstate__(self):
13789  p = self._get_as_binary()
13790  if len(self.__dict__) > 1:
13791  d = self.__dict__.copy()
13792  del d['this']
13793  p = (d, p)
13794  return p
13795 
13796  def __setstate__(self, p):
13797  if not hasattr(self, 'this'):
13798  self.__init__()
13799  if isinstance(p, tuple):
13800  d, p = p
13801  self.__dict__.update(d)
13802  return self._set_from_binary(p)
13803 
13804  __swig_destroy__ = _IMP_core.delete_StructureProvenance
13805 
13806 # Register StructureProvenance in _IMP_core:
13807 _IMP_core.StructureProvenance_swigregister(StructureProvenance)
13808 class SampleProvenance(Provenance):
13809  r"""Proxy of C++ IMP::core::SampleProvenance class."""
13810 
13811  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13812 
13813  def set_method(self, method):
13814  r"""set_method(SampleProvenance self, std::string method)"""
13815  return _IMP_core.SampleProvenance_set_method(self, method)
13816 
13817  def get_method(self):
13818  r"""get_method(SampleProvenance self) -> std::string"""
13819  return _IMP_core.SampleProvenance_get_method(self)
13820 
13821  def set_number_of_frames(self, frames):
13822  r"""set_number_of_frames(SampleProvenance self, int frames)"""
13823  return _IMP_core.SampleProvenance_set_number_of_frames(self, frames)
13824 
13825  def get_number_of_frames(self):
13826  r"""get_number_of_frames(SampleProvenance self) -> int"""
13827  return _IMP_core.SampleProvenance_get_number_of_frames(self)
13828 
13829  def set_number_of_iterations(self, iterations):
13830  r"""set_number_of_iterations(SampleProvenance self, int iterations)"""
13831  return _IMP_core.SampleProvenance_set_number_of_iterations(self, iterations)
13832 
13833  def get_number_of_iterations(self):
13834  r"""get_number_of_iterations(SampleProvenance self) -> int"""
13835  return _IMP_core.SampleProvenance_get_number_of_iterations(self)
13836 
13837  def set_number_of_replicas(self, replicas):
13838  r"""set_number_of_replicas(SampleProvenance self, int replicas)"""
13839  return _IMP_core.SampleProvenance_set_number_of_replicas(self, replicas)
13840 
13841  def get_number_of_replicas(self):
13842  r"""get_number_of_replicas(SampleProvenance self) -> int"""
13843  return _IMP_core.SampleProvenance_get_number_of_replicas(self)
13844 
13845  def __init__(self, *args):
13846  r"""
13847  __init__(SampleProvenance self) -> SampleProvenance
13848  __init__(SampleProvenance self, Model m, ParticleIndex id) -> SampleProvenance
13849  __init__(SampleProvenance self, _ParticleAdaptor d) -> SampleProvenance
13850  """
13851  _IMP_core.SampleProvenance_swiginit(self, _IMP_core.new_SampleProvenance(*args))
13852 
13853  @staticmethod
13854  def get_is_setup(*args):
13855  r"""
13856  get_is_setup(Model m, ParticleIndex pi) -> bool
13857  get_is_setup(_ParticleAdaptor p) -> bool
13858  """
13859  return _IMP_core.SampleProvenance_get_is_setup(*args)
13860 
13861  def show(self, *args):
13862  r"""show(SampleProvenance self, _ostream out=std::cout)"""
13863  return _IMP_core.SampleProvenance_show(self, *args)
13864 
13865  @staticmethod
13866  def setup_particle(*args):
13867  r"""
13868  setup_particle(Model m, ParticleIndex pi, std::string method, int frames, int iterations, int replicas) -> SampleProvenance
13869  setup_particle(_ParticleAdaptor pa, std::string method, int frames, int iterations, int replicas) -> SampleProvenance
13870  setup_particle(Model m, ParticleIndex pi, std::string method, int frames, int iterations) -> SampleProvenance
13871  setup_particle(_ParticleAdaptor pa, std::string method, int frames, int iterations) -> SampleProvenance
13872  setup_particle(Model m, ParticleIndex pi, SampleProvenance o) -> SampleProvenance
13873  setup_particle(_ParticleAdaptor pa, SampleProvenance o) -> SampleProvenance
13874  """
13875  return _IMP_core.SampleProvenance_setup_particle(*args)
13876 
13877  def add_attribute(self, *args):
13878  r"""
13879  add_attribute(SampleProvenance self, FloatKey k, IMP::Float v, bool opt)
13880  add_attribute(SampleProvenance self, FloatKey a0, IMP::Float a1)
13881  add_attribute(SampleProvenance self, IntKey a0, IMP::Int a1)
13882  add_attribute(SampleProvenance self, FloatsKey a0, IMP::Floats a1)
13883  add_attribute(SampleProvenance self, IntsKey a0, IMP::Ints a1)
13884  add_attribute(SampleProvenance self, StringKey a0, IMP::String a1)
13885  add_attribute(SampleProvenance self, ParticleIndexKey a0, Particle a1)
13886  add_attribute(SampleProvenance self, ObjectKey a0, Object a1)
13887  add_attribute(SampleProvenance self, SparseFloatKey a0, IMP::Float a1)
13888  add_attribute(SampleProvenance self, SparseIntKey a0, IMP::Int a1)
13889  add_attribute(SampleProvenance self, SparseStringKey a0, IMP::String a1)
13890  add_attribute(SampleProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13891  """
13892  return _IMP_core.SampleProvenance_add_attribute(self, *args)
13893 
13894  def get_value(self, *args):
13895  r"""
13896  get_value(SampleProvenance self, FloatKey a0) -> IMP::Float
13897  get_value(SampleProvenance self, IntKey a0) -> IMP::Int
13898  get_value(SampleProvenance self, FloatsKey a0) -> IMP::Floats
13899  get_value(SampleProvenance self, IntsKey a0) -> IMP::Ints
13900  get_value(SampleProvenance self, StringKey a0) -> IMP::String
13901  get_value(SampleProvenance self, ParticleIndexKey a0) -> Particle
13902  get_value(SampleProvenance self, ObjectKey a0) -> Object
13903  get_value(SampleProvenance self, SparseFloatKey a0) -> IMP::Float
13904  get_value(SampleProvenance self, SparseIntKey a0) -> IMP::Int
13905  get_value(SampleProvenance self, SparseStringKey a0) -> IMP::String
13906  get_value(SampleProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
13907  """
13908  return _IMP_core.SampleProvenance_get_value(self, *args)
13909 
13910  def set_value(self, *args):
13911  r"""
13912  set_value(SampleProvenance self, FloatKey a0, IMP::Float a1)
13913  set_value(SampleProvenance self, IntKey a0, IMP::Int a1)
13914  set_value(SampleProvenance self, FloatsKey a0, IMP::Floats a1)
13915  set_value(SampleProvenance self, IntsKey a0, IMP::Ints a1)
13916  set_value(SampleProvenance self, StringKey a0, IMP::String a1)
13917  set_value(SampleProvenance self, ParticleIndexKey a0, Particle a1)
13918  set_value(SampleProvenance self, ObjectKey a0, Object a1)
13919  set_value(SampleProvenance self, SparseFloatKey a0, IMP::Float a1)
13920  set_value(SampleProvenance self, SparseIntKey a0, IMP::Int a1)
13921  set_value(SampleProvenance self, SparseStringKey a0, IMP::String a1)
13922  set_value(SampleProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13923  """
13924  return _IMP_core.SampleProvenance_set_value(self, *args)
13925 
13926  def remove_attribute(self, *args):
13927  r"""
13928  remove_attribute(SampleProvenance self, FloatKey a0)
13929  remove_attribute(SampleProvenance self, IntKey a0)
13930  remove_attribute(SampleProvenance self, FloatsKey a0)
13931  remove_attribute(SampleProvenance self, IntsKey a0)
13932  remove_attribute(SampleProvenance self, StringKey a0)
13933  remove_attribute(SampleProvenance self, ParticleIndexKey a0)
13934  remove_attribute(SampleProvenance self, ObjectKey a0)
13935  remove_attribute(SampleProvenance self, SparseFloatKey a0)
13936  remove_attribute(SampleProvenance self, SparseIntKey a0)
13937  remove_attribute(SampleProvenance self, SparseStringKey a0)
13938  remove_attribute(SampleProvenance self, SparseParticleIndexKey a0)
13939  """
13940  return _IMP_core.SampleProvenance_remove_attribute(self, *args)
13941 
13942  def has_attribute(self, *args):
13943  r"""
13944  has_attribute(SampleProvenance self, FloatKey a0) -> bool
13945  has_attribute(SampleProvenance self, IntKey a0) -> bool
13946  has_attribute(SampleProvenance self, FloatsKey a0) -> bool
13947  has_attribute(SampleProvenance self, IntsKey a0) -> bool
13948  has_attribute(SampleProvenance self, StringKey a0) -> bool
13949  has_attribute(SampleProvenance self, ParticleIndexKey a0) -> bool
13950  has_attribute(SampleProvenance self, ObjectKey a0) -> bool
13951  has_attribute(SampleProvenance self, SparseFloatKey a0) -> bool
13952  has_attribute(SampleProvenance self, SparseIntKey a0) -> bool
13953  has_attribute(SampleProvenance self, SparseStringKey a0) -> bool
13954  has_attribute(SampleProvenance self, SparseParticleIndexKey a0) -> bool
13955  """
13956  return _IMP_core.SampleProvenance_has_attribute(self, *args)
13957 
13958  def get_derivative(self, a0):
13959  r"""get_derivative(SampleProvenance self, FloatKey a0) -> double"""
13960  return _IMP_core.SampleProvenance_get_derivative(self, a0)
13961 
13962  def get_name(self):
13963  r"""get_name(SampleProvenance self) -> std::string"""
13964  return _IMP_core.SampleProvenance_get_name(self)
13965 
13966  def clear_caches(self):
13967  r"""clear_caches(SampleProvenance self)"""
13968  return _IMP_core.SampleProvenance_clear_caches(self)
13969 
13970  def set_name(self, a0):
13971  r"""set_name(SampleProvenance self, std::string a0)"""
13972  return _IMP_core.SampleProvenance_set_name(self, a0)
13973 
13974  def set_check_level(self, a0):
13975  r"""set_check_level(SampleProvenance self, IMP::CheckLevel a0)"""
13976  return _IMP_core.SampleProvenance_set_check_level(self, a0)
13977 
13978  def add_to_derivative(self, a0, a1, a2):
13979  r"""add_to_derivative(SampleProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13980  return _IMP_core.SampleProvenance_add_to_derivative(self, a0, a1, a2)
13981 
13982  def set_is_optimized(self, a0, a1):
13983  r"""set_is_optimized(SampleProvenance self, FloatKey a0, bool a1)"""
13984  return _IMP_core.SampleProvenance_set_is_optimized(self, a0, a1)
13985 
13986  def get_is_optimized(self, a0):
13987  r"""get_is_optimized(SampleProvenance self, FloatKey a0) -> bool"""
13988  return _IMP_core.SampleProvenance_get_is_optimized(self, a0)
13989 
13990  def get_check_level(self):
13991  r"""get_check_level(SampleProvenance self) -> IMP::CheckLevel"""
13992  return _IMP_core.SampleProvenance_get_check_level(self)
13993 
13994  def __eq__(self, *args):
13995  r"""
13996  __eq__(SampleProvenance self, SampleProvenance o) -> bool
13997  __eq__(SampleProvenance self, Particle d) -> bool
13998  """
13999  return _IMP_core.SampleProvenance___eq__(self, *args)
14000 
14001  def __ne__(self, *args):
14002  r"""
14003  __ne__(SampleProvenance self, SampleProvenance o) -> bool
14004  __ne__(SampleProvenance self, Particle d) -> bool
14005  """
14006  return _IMP_core.SampleProvenance___ne__(self, *args)
14007 
14008  def __le__(self, *args):
14009  r"""
14010  __le__(SampleProvenance self, SampleProvenance o) -> bool
14011  __le__(SampleProvenance self, Particle d) -> bool
14012  """
14013  return _IMP_core.SampleProvenance___le__(self, *args)
14014 
14015  def __lt__(self, *args):
14016  r"""
14017  __lt__(SampleProvenance self, SampleProvenance o) -> bool
14018  __lt__(SampleProvenance self, Particle d) -> bool
14019  """
14020  return _IMP_core.SampleProvenance___lt__(self, *args)
14021 
14022  def __ge__(self, *args):
14023  r"""
14024  __ge__(SampleProvenance self, SampleProvenance o) -> bool
14025  __ge__(SampleProvenance self, Particle d) -> bool
14026  """
14027  return _IMP_core.SampleProvenance___ge__(self, *args)
14028 
14029  def __gt__(self, *args):
14030  r"""
14031  __gt__(SampleProvenance self, SampleProvenance o) -> bool
14032  __gt__(SampleProvenance self, Particle d) -> bool
14033  """
14034  return _IMP_core.SampleProvenance___gt__(self, *args)
14035 
14036  def __hash__(self):
14037  r"""__hash__(SampleProvenance self) -> std::size_t"""
14038  return _IMP_core.SampleProvenance___hash__(self)
14039 
14040  def __str__(self):
14041  r"""__str__(SampleProvenance self) -> std::string"""
14042  return _IMP_core.SampleProvenance___str__(self)
14043 
14044  def __repr__(self):
14045  r"""__repr__(SampleProvenance self) -> std::string"""
14046  return _IMP_core.SampleProvenance___repr__(self)
14047 
14048  def _get_as_binary(self):
14049  r"""_get_as_binary(SampleProvenance self) -> PyObject *"""
14050  return _IMP_core.SampleProvenance__get_as_binary(self)
14051 
14052  def _set_from_binary(self, p):
14053  r"""_set_from_binary(SampleProvenance self, PyObject * p)"""
14054  return _IMP_core.SampleProvenance__set_from_binary(self, p)
14055 
14056  def __getstate__(self):
14057  p = self._get_as_binary()
14058  if len(self.__dict__) > 1:
14059  d = self.__dict__.copy()
14060  del d['this']
14061  p = (d, p)
14062  return p
14063 
14064  def __setstate__(self, p):
14065  if not hasattr(self, 'this'):
14066  self.__init__()
14067  if isinstance(p, tuple):
14068  d, p = p
14069  self.__dict__.update(d)
14070  return self._set_from_binary(p)
14071 
14072  __swig_destroy__ = _IMP_core.delete_SampleProvenance
14073 
14074 # Register SampleProvenance in _IMP_core:
14075 _IMP_core.SampleProvenance_swigregister(SampleProvenance)
14076 class CombineProvenance(Provenance):
14077  r"""Proxy of C++ IMP::core::CombineProvenance class."""
14078 
14079  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14080 
14081  def set_number_of_frames(self, frames):
14082  r"""set_number_of_frames(CombineProvenance self, int frames)"""
14083  return _IMP_core.CombineProvenance_set_number_of_frames(self, frames)
14084 
14085  def get_number_of_frames(self):
14086  r"""get_number_of_frames(CombineProvenance self) -> int"""
14087  return _IMP_core.CombineProvenance_get_number_of_frames(self)
14088 
14089  def set_number_of_runs(self, runs):
14090  r"""set_number_of_runs(CombineProvenance self, int runs)"""
14091  return _IMP_core.CombineProvenance_set_number_of_runs(self, runs)
14092 
14093  def get_number_of_runs(self):
14094  r"""get_number_of_runs(CombineProvenance self) -> int"""
14095  return _IMP_core.CombineProvenance_get_number_of_runs(self)
14096 
14097  def __init__(self, *args):
14098  r"""
14099  __init__(CombineProvenance self) -> CombineProvenance
14100  __init__(CombineProvenance self, Model m, ParticleIndex id) -> CombineProvenance
14101  __init__(CombineProvenance self, _ParticleAdaptor d) -> CombineProvenance
14102  """
14103  _IMP_core.CombineProvenance_swiginit(self, _IMP_core.new_CombineProvenance(*args))
14104 
14105  @staticmethod
14106  def get_is_setup(*args):
14107  r"""
14108  get_is_setup(Model m, ParticleIndex pi) -> bool
14109  get_is_setup(_ParticleAdaptor p) -> bool
14110  """
14111  return _IMP_core.CombineProvenance_get_is_setup(*args)
14112 
14113  def show(self, *args):
14114  r"""show(CombineProvenance self, _ostream out=std::cout)"""
14115  return _IMP_core.CombineProvenance_show(self, *args)
14116 
14117  @staticmethod
14118  def setup_particle(*args):
14119  r"""
14120  setup_particle(Model m, ParticleIndex pi, int runs, int frames) -> CombineProvenance
14121  setup_particle(_ParticleAdaptor pa, int runs, int frames) -> CombineProvenance
14122  setup_particle(Model m, ParticleIndex pi, CombineProvenance o) -> CombineProvenance
14123  setup_particle(_ParticleAdaptor pa, CombineProvenance o) -> CombineProvenance
14124  """
14125  return _IMP_core.CombineProvenance_setup_particle(*args)
14126 
14127  def add_attribute(self, *args):
14128  r"""
14129  add_attribute(CombineProvenance self, FloatKey k, IMP::Float v, bool opt)
14130  add_attribute(CombineProvenance self, FloatKey a0, IMP::Float a1)
14131  add_attribute(CombineProvenance self, IntKey a0, IMP::Int a1)
14132  add_attribute(CombineProvenance self, FloatsKey a0, IMP::Floats a1)
14133  add_attribute(CombineProvenance self, IntsKey a0, IMP::Ints a1)
14134  add_attribute(CombineProvenance self, StringKey a0, IMP::String a1)
14135  add_attribute(CombineProvenance self, ParticleIndexKey a0, Particle a1)
14136  add_attribute(CombineProvenance self, ObjectKey a0, Object a1)
14137  add_attribute(CombineProvenance self, SparseFloatKey a0, IMP::Float a1)
14138  add_attribute(CombineProvenance self, SparseIntKey a0, IMP::Int a1)
14139  add_attribute(CombineProvenance self, SparseStringKey a0, IMP::String a1)
14140  add_attribute(CombineProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14141  """
14142  return _IMP_core.CombineProvenance_add_attribute(self, *args)
14143 
14144  def get_value(self, *args):
14145  r"""
14146  get_value(CombineProvenance self, FloatKey a0) -> IMP::Float
14147  get_value(CombineProvenance self, IntKey a0) -> IMP::Int
14148  get_value(CombineProvenance self, FloatsKey a0) -> IMP::Floats
14149  get_value(CombineProvenance self, IntsKey a0) -> IMP::Ints
14150  get_value(CombineProvenance self, StringKey a0) -> IMP::String
14151  get_value(CombineProvenance self, ParticleIndexKey a0) -> Particle
14152  get_value(CombineProvenance self, ObjectKey a0) -> Object
14153  get_value(CombineProvenance self, SparseFloatKey a0) -> IMP::Float
14154  get_value(CombineProvenance self, SparseIntKey a0) -> IMP::Int
14155  get_value(CombineProvenance self, SparseStringKey a0) -> IMP::String
14156  get_value(CombineProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14157  """
14158  return _IMP_core.CombineProvenance_get_value(self, *args)
14159 
14160  def set_value(self, *args):
14161  r"""
14162  set_value(CombineProvenance self, FloatKey a0, IMP::Float a1)
14163  set_value(CombineProvenance self, IntKey a0, IMP::Int a1)
14164  set_value(CombineProvenance self, FloatsKey a0, IMP::Floats a1)
14165  set_value(CombineProvenance self, IntsKey a0, IMP::Ints a1)
14166  set_value(CombineProvenance self, StringKey a0, IMP::String a1)
14167  set_value(CombineProvenance self, ParticleIndexKey a0, Particle a1)
14168  set_value(CombineProvenance self, ObjectKey a0, Object a1)
14169  set_value(CombineProvenance self, SparseFloatKey a0, IMP::Float a1)
14170  set_value(CombineProvenance self, SparseIntKey a0, IMP::Int a1)
14171  set_value(CombineProvenance self, SparseStringKey a0, IMP::String a1)
14172  set_value(CombineProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14173  """
14174  return _IMP_core.CombineProvenance_set_value(self, *args)
14175 
14176  def remove_attribute(self, *args):
14177  r"""
14178  remove_attribute(CombineProvenance self, FloatKey a0)
14179  remove_attribute(CombineProvenance self, IntKey a0)
14180  remove_attribute(CombineProvenance self, FloatsKey a0)
14181  remove_attribute(CombineProvenance self, IntsKey a0)
14182  remove_attribute(CombineProvenance self, StringKey a0)
14183  remove_attribute(CombineProvenance self, ParticleIndexKey a0)
14184  remove_attribute(CombineProvenance self, ObjectKey a0)
14185  remove_attribute(CombineProvenance self, SparseFloatKey a0)
14186  remove_attribute(CombineProvenance self, SparseIntKey a0)
14187  remove_attribute(CombineProvenance self, SparseStringKey a0)
14188  remove_attribute(CombineProvenance self, SparseParticleIndexKey a0)
14189  """
14190  return _IMP_core.CombineProvenance_remove_attribute(self, *args)
14191 
14192  def has_attribute(self, *args):
14193  r"""
14194  has_attribute(CombineProvenance self, FloatKey a0) -> bool
14195  has_attribute(CombineProvenance self, IntKey a0) -> bool
14196  has_attribute(CombineProvenance self, FloatsKey a0) -> bool
14197  has_attribute(CombineProvenance self, IntsKey a0) -> bool
14198  has_attribute(CombineProvenance self, StringKey a0) -> bool
14199  has_attribute(CombineProvenance self, ParticleIndexKey a0) -> bool
14200  has_attribute(CombineProvenance self, ObjectKey a0) -> bool
14201  has_attribute(CombineProvenance self, SparseFloatKey a0) -> bool
14202  has_attribute(CombineProvenance self, SparseIntKey a0) -> bool
14203  has_attribute(CombineProvenance self, SparseStringKey a0) -> bool
14204  has_attribute(CombineProvenance self, SparseParticleIndexKey a0) -> bool
14205  """
14206  return _IMP_core.CombineProvenance_has_attribute(self, *args)
14207 
14208  def get_derivative(self, a0):
14209  r"""get_derivative(CombineProvenance self, FloatKey a0) -> double"""
14210  return _IMP_core.CombineProvenance_get_derivative(self, a0)
14211 
14212  def get_name(self):
14213  r"""get_name(CombineProvenance self) -> std::string"""
14214  return _IMP_core.CombineProvenance_get_name(self)
14215 
14216  def clear_caches(self):
14217  r"""clear_caches(CombineProvenance self)"""
14218  return _IMP_core.CombineProvenance_clear_caches(self)
14219 
14220  def set_name(self, a0):
14221  r"""set_name(CombineProvenance self, std::string a0)"""
14222  return _IMP_core.CombineProvenance_set_name(self, a0)
14223 
14224  def set_check_level(self, a0):
14225  r"""set_check_level(CombineProvenance self, IMP::CheckLevel a0)"""
14226  return _IMP_core.CombineProvenance_set_check_level(self, a0)
14227 
14228  def add_to_derivative(self, a0, a1, a2):
14229  r"""add_to_derivative(CombineProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14230  return _IMP_core.CombineProvenance_add_to_derivative(self, a0, a1, a2)
14231 
14232  def set_is_optimized(self, a0, a1):
14233  r"""set_is_optimized(CombineProvenance self, FloatKey a0, bool a1)"""
14234  return _IMP_core.CombineProvenance_set_is_optimized(self, a0, a1)
14235 
14236  def get_is_optimized(self, a0):
14237  r"""get_is_optimized(CombineProvenance self, FloatKey a0) -> bool"""
14238  return _IMP_core.CombineProvenance_get_is_optimized(self, a0)
14239 
14240  def get_check_level(self):
14241  r"""get_check_level(CombineProvenance self) -> IMP::CheckLevel"""
14242  return _IMP_core.CombineProvenance_get_check_level(self)
14243 
14244  def __eq__(self, *args):
14245  r"""
14246  __eq__(CombineProvenance self, CombineProvenance o) -> bool
14247  __eq__(CombineProvenance self, Particle d) -> bool
14248  """
14249  return _IMP_core.CombineProvenance___eq__(self, *args)
14250 
14251  def __ne__(self, *args):
14252  r"""
14253  __ne__(CombineProvenance self, CombineProvenance o) -> bool
14254  __ne__(CombineProvenance self, Particle d) -> bool
14255  """
14256  return _IMP_core.CombineProvenance___ne__(self, *args)
14257 
14258  def __le__(self, *args):
14259  r"""
14260  __le__(CombineProvenance self, CombineProvenance o) -> bool
14261  __le__(CombineProvenance self, Particle d) -> bool
14262  """
14263  return _IMP_core.CombineProvenance___le__(self, *args)
14264 
14265  def __lt__(self, *args):
14266  r"""
14267  __lt__(CombineProvenance self, CombineProvenance o) -> bool
14268  __lt__(CombineProvenance self, Particle d) -> bool
14269  """
14270  return _IMP_core.CombineProvenance___lt__(self, *args)
14271 
14272  def __ge__(self, *args):
14273  r"""
14274  __ge__(CombineProvenance self, CombineProvenance o) -> bool
14275  __ge__(CombineProvenance self, Particle d) -> bool
14276  """
14277  return _IMP_core.CombineProvenance___ge__(self, *args)
14278 
14279  def __gt__(self, *args):
14280  r"""
14281  __gt__(CombineProvenance self, CombineProvenance o) -> bool
14282  __gt__(CombineProvenance self, Particle d) -> bool
14283  """
14284  return _IMP_core.CombineProvenance___gt__(self, *args)
14285 
14286  def __hash__(self):
14287  r"""__hash__(CombineProvenance self) -> std::size_t"""
14288  return _IMP_core.CombineProvenance___hash__(self)
14289 
14290  def __str__(self):
14291  r"""__str__(CombineProvenance self) -> std::string"""
14292  return _IMP_core.CombineProvenance___str__(self)
14293 
14294  def __repr__(self):
14295  r"""__repr__(CombineProvenance self) -> std::string"""
14296  return _IMP_core.CombineProvenance___repr__(self)
14297 
14298  def _get_as_binary(self):
14299  r"""_get_as_binary(CombineProvenance self) -> PyObject *"""
14300  return _IMP_core.CombineProvenance__get_as_binary(self)
14301 
14302  def _set_from_binary(self, p):
14303  r"""_set_from_binary(CombineProvenance self, PyObject * p)"""
14304  return _IMP_core.CombineProvenance__set_from_binary(self, p)
14305 
14306  def __getstate__(self):
14307  p = self._get_as_binary()
14308  if len(self.__dict__) > 1:
14309  d = self.__dict__.copy()
14310  del d['this']
14311  p = (d, p)
14312  return p
14313 
14314  def __setstate__(self, p):
14315  if not hasattr(self, 'this'):
14316  self.__init__()
14317  if isinstance(p, tuple):
14318  d, p = p
14319  self.__dict__.update(d)
14320  return self._set_from_binary(p)
14321 
14322  __swig_destroy__ = _IMP_core.delete_CombineProvenance
14323 
14324 # Register CombineProvenance in _IMP_core:
14325 _IMP_core.CombineProvenance_swigregister(CombineProvenance)
14326 class FilterProvenance(Provenance):
14327  r"""Proxy of C++ IMP::core::FilterProvenance class."""
14328 
14329  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14330 
14331  def set_method(self, method):
14332  r"""set_method(FilterProvenance self, std::string method)"""
14333  return _IMP_core.FilterProvenance_set_method(self, method)
14334 
14335  def get_method(self):
14336  r"""get_method(FilterProvenance self) -> std::string"""
14337  return _IMP_core.FilterProvenance_get_method(self)
14338 
14339  def set_number_of_frames(self, frames):
14340  r"""set_number_of_frames(FilterProvenance self, int frames)"""
14341  return _IMP_core.FilterProvenance_set_number_of_frames(self, frames)
14342 
14343  def get_number_of_frames(self):
14344  r"""get_number_of_frames(FilterProvenance self) -> int"""
14345  return _IMP_core.FilterProvenance_get_number_of_frames(self)
14346 
14347  def set_threshold(self, threshold):
14348  r"""set_threshold(FilterProvenance self, double threshold)"""
14349  return _IMP_core.FilterProvenance_set_threshold(self, threshold)
14350 
14351  def get_threshold(self):
14352  r"""get_threshold(FilterProvenance self) -> double"""
14353  return _IMP_core.FilterProvenance_get_threshold(self)
14354 
14355  def __init__(self, *args):
14356  r"""
14357  __init__(FilterProvenance self) -> FilterProvenance
14358  __init__(FilterProvenance self, Model m, ParticleIndex id) -> FilterProvenance
14359  __init__(FilterProvenance self, _ParticleAdaptor d) -> FilterProvenance
14360  """
14361  _IMP_core.FilterProvenance_swiginit(self, _IMP_core.new_FilterProvenance(*args))
14362 
14363  @staticmethod
14364  def get_is_setup(*args):
14365  r"""
14366  get_is_setup(Model m, ParticleIndex pi) -> bool
14367  get_is_setup(_ParticleAdaptor p) -> bool
14368  """
14369  return _IMP_core.FilterProvenance_get_is_setup(*args)
14370 
14371  def show(self, *args):
14372  r"""show(FilterProvenance self, _ostream out=std::cout)"""
14373  return _IMP_core.FilterProvenance_show(self, *args)
14374 
14375  @staticmethod
14376  def setup_particle(*args):
14377  r"""
14378  setup_particle(Model m, ParticleIndex pi, std::string method, double threshold, int frames) -> FilterProvenance
14379  setup_particle(_ParticleAdaptor pa, std::string method, double threshold, int frames) -> FilterProvenance
14380  setup_particle(Model m, ParticleIndex pi, FilterProvenance o) -> FilterProvenance
14381  setup_particle(_ParticleAdaptor pa, FilterProvenance o) -> FilterProvenance
14382  """
14383  return _IMP_core.FilterProvenance_setup_particle(*args)
14384 
14385  def add_attribute(self, *args):
14386  r"""
14387  add_attribute(FilterProvenance self, FloatKey k, IMP::Float v, bool opt)
14388  add_attribute(FilterProvenance self, FloatKey a0, IMP::Float a1)
14389  add_attribute(FilterProvenance self, IntKey a0, IMP::Int a1)
14390  add_attribute(FilterProvenance self, FloatsKey a0, IMP::Floats a1)
14391  add_attribute(FilterProvenance self, IntsKey a0, IMP::Ints a1)
14392  add_attribute(FilterProvenance self, StringKey a0, IMP::String a1)
14393  add_attribute(FilterProvenance self, ParticleIndexKey a0, Particle a1)
14394  add_attribute(FilterProvenance self, ObjectKey a0, Object a1)
14395  add_attribute(FilterProvenance self, SparseFloatKey a0, IMP::Float a1)
14396  add_attribute(FilterProvenance self, SparseIntKey a0, IMP::Int a1)
14397  add_attribute(FilterProvenance self, SparseStringKey a0, IMP::String a1)
14398  add_attribute(FilterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14399  """
14400  return _IMP_core.FilterProvenance_add_attribute(self, *args)
14401 
14402  def get_value(self, *args):
14403  r"""
14404  get_value(FilterProvenance self, FloatKey a0) -> IMP::Float
14405  get_value(FilterProvenance self, IntKey a0) -> IMP::Int
14406  get_value(FilterProvenance self, FloatsKey a0) -> IMP::Floats
14407  get_value(FilterProvenance self, IntsKey a0) -> IMP::Ints
14408  get_value(FilterProvenance self, StringKey a0) -> IMP::String
14409  get_value(FilterProvenance self, ParticleIndexKey a0) -> Particle
14410  get_value(FilterProvenance self, ObjectKey a0) -> Object
14411  get_value(FilterProvenance self, SparseFloatKey a0) -> IMP::Float
14412  get_value(FilterProvenance self, SparseIntKey a0) -> IMP::Int
14413  get_value(FilterProvenance self, SparseStringKey a0) -> IMP::String
14414  get_value(FilterProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14415  """
14416  return _IMP_core.FilterProvenance_get_value(self, *args)
14417 
14418  def set_value(self, *args):
14419  r"""
14420  set_value(FilterProvenance self, FloatKey a0, IMP::Float a1)
14421  set_value(FilterProvenance self, IntKey a0, IMP::Int a1)
14422  set_value(FilterProvenance self, FloatsKey a0, IMP::Floats a1)
14423  set_value(FilterProvenance self, IntsKey a0, IMP::Ints a1)
14424  set_value(FilterProvenance self, StringKey a0, IMP::String a1)
14425  set_value(FilterProvenance self, ParticleIndexKey a0, Particle a1)
14426  set_value(FilterProvenance self, ObjectKey a0, Object a1)
14427  set_value(FilterProvenance self, SparseFloatKey a0, IMP::Float a1)
14428  set_value(FilterProvenance self, SparseIntKey a0, IMP::Int a1)
14429  set_value(FilterProvenance self, SparseStringKey a0, IMP::String a1)
14430  set_value(FilterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14431  """
14432  return _IMP_core.FilterProvenance_set_value(self, *args)
14433 
14434  def remove_attribute(self, *args):
14435  r"""
14436  remove_attribute(FilterProvenance self, FloatKey a0)
14437  remove_attribute(FilterProvenance self, IntKey a0)
14438  remove_attribute(FilterProvenance self, FloatsKey a0)
14439  remove_attribute(FilterProvenance self, IntsKey a0)
14440  remove_attribute(FilterProvenance self, StringKey a0)
14441  remove_attribute(FilterProvenance self, ParticleIndexKey a0)
14442  remove_attribute(FilterProvenance self, ObjectKey a0)
14443  remove_attribute(FilterProvenance self, SparseFloatKey a0)
14444  remove_attribute(FilterProvenance self, SparseIntKey a0)
14445  remove_attribute(FilterProvenance self, SparseStringKey a0)
14446  remove_attribute(FilterProvenance self, SparseParticleIndexKey a0)
14447  """
14448  return _IMP_core.FilterProvenance_remove_attribute(self, *args)
14449 
14450  def has_attribute(self, *args):
14451  r"""
14452  has_attribute(FilterProvenance self, FloatKey a0) -> bool
14453  has_attribute(FilterProvenance self, IntKey a0) -> bool
14454  has_attribute(FilterProvenance self, FloatsKey a0) -> bool
14455  has_attribute(FilterProvenance self, IntsKey a0) -> bool
14456  has_attribute(FilterProvenance self, StringKey a0) -> bool
14457  has_attribute(FilterProvenance self, ParticleIndexKey a0) -> bool
14458  has_attribute(FilterProvenance self, ObjectKey a0) -> bool
14459  has_attribute(FilterProvenance self, SparseFloatKey a0) -> bool
14460  has_attribute(FilterProvenance self, SparseIntKey a0) -> bool
14461  has_attribute(FilterProvenance self, SparseStringKey a0) -> bool
14462  has_attribute(FilterProvenance self, SparseParticleIndexKey a0) -> bool
14463  """
14464  return _IMP_core.FilterProvenance_has_attribute(self, *args)
14465 
14466  def get_derivative(self, a0):
14467  r"""get_derivative(FilterProvenance self, FloatKey a0) -> double"""
14468  return _IMP_core.FilterProvenance_get_derivative(self, a0)
14469 
14470  def get_name(self):
14471  r"""get_name(FilterProvenance self) -> std::string"""
14472  return _IMP_core.FilterProvenance_get_name(self)
14473 
14474  def clear_caches(self):
14475  r"""clear_caches(FilterProvenance self)"""
14476  return _IMP_core.FilterProvenance_clear_caches(self)
14477 
14478  def set_name(self, a0):
14479  r"""set_name(FilterProvenance self, std::string a0)"""
14480  return _IMP_core.FilterProvenance_set_name(self, a0)
14481 
14482  def set_check_level(self, a0):
14483  r"""set_check_level(FilterProvenance self, IMP::CheckLevel a0)"""
14484  return _IMP_core.FilterProvenance_set_check_level(self, a0)
14485 
14486  def add_to_derivative(self, a0, a1, a2):
14487  r"""add_to_derivative(FilterProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14488  return _IMP_core.FilterProvenance_add_to_derivative(self, a0, a1, a2)
14489 
14490  def set_is_optimized(self, a0, a1):
14491  r"""set_is_optimized(FilterProvenance self, FloatKey a0, bool a1)"""
14492  return _IMP_core.FilterProvenance_set_is_optimized(self, a0, a1)
14493 
14494  def get_is_optimized(self, a0):
14495  r"""get_is_optimized(FilterProvenance self, FloatKey a0) -> bool"""
14496  return _IMP_core.FilterProvenance_get_is_optimized(self, a0)
14497 
14498  def get_check_level(self):
14499  r"""get_check_level(FilterProvenance self) -> IMP::CheckLevel"""
14500  return _IMP_core.FilterProvenance_get_check_level(self)
14501 
14502  def __eq__(self, *args):
14503  r"""
14504  __eq__(FilterProvenance self, FilterProvenance o) -> bool
14505  __eq__(FilterProvenance self, Particle d) -> bool
14506  """
14507  return _IMP_core.FilterProvenance___eq__(self, *args)
14508 
14509  def __ne__(self, *args):
14510  r"""
14511  __ne__(FilterProvenance self, FilterProvenance o) -> bool
14512  __ne__(FilterProvenance self, Particle d) -> bool
14513  """
14514  return _IMP_core.FilterProvenance___ne__(self, *args)
14515 
14516  def __le__(self, *args):
14517  r"""
14518  __le__(FilterProvenance self, FilterProvenance o) -> bool
14519  __le__(FilterProvenance self, Particle d) -> bool
14520  """
14521  return _IMP_core.FilterProvenance___le__(self, *args)
14522 
14523  def __lt__(self, *args):
14524  r"""
14525  __lt__(FilterProvenance self, FilterProvenance o) -> bool
14526  __lt__(FilterProvenance self, Particle d) -> bool
14527  """
14528  return _IMP_core.FilterProvenance___lt__(self, *args)
14529 
14530  def __ge__(self, *args):
14531  r"""
14532  __ge__(FilterProvenance self, FilterProvenance o) -> bool
14533  __ge__(FilterProvenance self, Particle d) -> bool
14534  """
14535  return _IMP_core.FilterProvenance___ge__(self, *args)
14536 
14537  def __gt__(self, *args):
14538  r"""
14539  __gt__(FilterProvenance self, FilterProvenance o) -> bool
14540  __gt__(FilterProvenance self, Particle d) -> bool
14541  """
14542  return _IMP_core.FilterProvenance___gt__(self, *args)
14543 
14544  def __hash__(self):
14545  r"""__hash__(FilterProvenance self) -> std::size_t"""
14546  return _IMP_core.FilterProvenance___hash__(self)
14547 
14548  def __str__(self):
14549  r"""__str__(FilterProvenance self) -> std::string"""
14550  return _IMP_core.FilterProvenance___str__(self)
14551 
14552  def __repr__(self):
14553  r"""__repr__(FilterProvenance self) -> std::string"""
14554  return _IMP_core.FilterProvenance___repr__(self)
14555 
14556  def _get_as_binary(self):
14557  r"""_get_as_binary(FilterProvenance self) -> PyObject *"""
14558  return _IMP_core.FilterProvenance__get_as_binary(self)
14559 
14560  def _set_from_binary(self, p):
14561  r"""_set_from_binary(FilterProvenance self, PyObject * p)"""
14562  return _IMP_core.FilterProvenance__set_from_binary(self, p)
14563 
14564  def __getstate__(self):
14565  p = self._get_as_binary()
14566  if len(self.__dict__) > 1:
14567  d = self.__dict__.copy()
14568  del d['this']
14569  p = (d, p)
14570  return p
14571 
14572  def __setstate__(self, p):
14573  if not hasattr(self, 'this'):
14574  self.__init__()
14575  if isinstance(p, tuple):
14576  d, p = p
14577  self.__dict__.update(d)
14578  return self._set_from_binary(p)
14579 
14580  __swig_destroy__ = _IMP_core.delete_FilterProvenance
14581 
14582 # Register FilterProvenance in _IMP_core:
14583 _IMP_core.FilterProvenance_swigregister(FilterProvenance)
14584 class ClusterProvenance(Provenance):
14585  r"""Proxy of C++ IMP::core::ClusterProvenance class."""
14586 
14587  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14588 
14589  def set_number_of_members(self, members):
14590  r"""set_number_of_members(ClusterProvenance self, int members)"""
14591  return _IMP_core.ClusterProvenance_set_number_of_members(self, members)
14592 
14593  def get_number_of_members(self):
14594  r"""get_number_of_members(ClusterProvenance self) -> int"""
14595  return _IMP_core.ClusterProvenance_get_number_of_members(self)
14596 
14597  def set_precision(self, precision):
14598  r"""set_precision(ClusterProvenance self, double precision)"""
14599  return _IMP_core.ClusterProvenance_set_precision(self, precision)
14600 
14601  def get_precision(self):
14602  r"""get_precision(ClusterProvenance self) -> double"""
14603  return _IMP_core.ClusterProvenance_get_precision(self)
14604 
14605  def set_density(self, density):
14606  r"""set_density(ClusterProvenance self, std::string density)"""
14607  return _IMP_core.ClusterProvenance_set_density(self, density)
14608 
14609  def get_density(self):
14610  r"""get_density(ClusterProvenance self) -> std::string"""
14611  return _IMP_core.ClusterProvenance_get_density(self)
14612 
14613  def __init__(self, *args):
14614  r"""
14615  __init__(ClusterProvenance self) -> ClusterProvenance
14616  __init__(ClusterProvenance self, Model m, ParticleIndex id) -> ClusterProvenance
14617  __init__(ClusterProvenance self, _ParticleAdaptor d) -> ClusterProvenance
14618  """
14619  _IMP_core.ClusterProvenance_swiginit(self, _IMP_core.new_ClusterProvenance(*args))
14620 
14621  @staticmethod
14622  def get_is_setup(*args):
14623  r"""
14624  get_is_setup(Model m, ParticleIndex pi) -> bool
14625  get_is_setup(_ParticleAdaptor p) -> bool
14626  """
14627  return _IMP_core.ClusterProvenance_get_is_setup(*args)
14628 
14629  def show(self, *args):
14630  r"""show(ClusterProvenance self, _ostream out=std::cout)"""
14631  return _IMP_core.ClusterProvenance_show(self, *args)
14632 
14633  @staticmethod
14634  def setup_particle(*args):
14635  r"""
14636  setup_particle(Model m, ParticleIndex pi, int members) -> ClusterProvenance
14637  setup_particle(_ParticleAdaptor pa, int members) -> ClusterProvenance
14638  setup_particle(Model m, ParticleIndex pi, int members, double precision) -> ClusterProvenance
14639  setup_particle(_ParticleAdaptor pa, int members, double precision) -> ClusterProvenance
14640  setup_particle(Model m, ParticleIndex pi, int members, double precision, std::string density) -> ClusterProvenance
14641  setup_particle(_ParticleAdaptor pa, int members, double precision, std::string density) -> ClusterProvenance
14642  setup_particle(Model m, ParticleIndex pi, ClusterProvenance o) -> ClusterProvenance
14643  setup_particle(_ParticleAdaptor pa, ClusterProvenance o) -> ClusterProvenance
14644  """
14645  return _IMP_core.ClusterProvenance_setup_particle(*args)
14646 
14647  def add_attribute(self, *args):
14648  r"""
14649  add_attribute(ClusterProvenance self, FloatKey k, IMP::Float v, bool opt)
14650  add_attribute(ClusterProvenance self, FloatKey a0, IMP::Float a1)
14651  add_attribute(ClusterProvenance self, IntKey a0, IMP::Int a1)
14652  add_attribute(ClusterProvenance self, FloatsKey a0, IMP::Floats a1)
14653  add_attribute(ClusterProvenance self, IntsKey a0, IMP::Ints a1)
14654  add_attribute(ClusterProvenance self, StringKey a0, IMP::String a1)
14655  add_attribute(ClusterProvenance self, ParticleIndexKey a0, Particle a1)
14656  add_attribute(ClusterProvenance self, ObjectKey a0, Object a1)
14657  add_attribute(ClusterProvenance self, SparseFloatKey a0, IMP::Float a1)
14658  add_attribute(ClusterProvenance self, SparseIntKey a0, IMP::Int a1)
14659  add_attribute(ClusterProvenance self, SparseStringKey a0, IMP::String a1)
14660  add_attribute(ClusterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14661  """
14662  return _IMP_core.ClusterProvenance_add_attribute(self, *args)
14663 
14664  def get_value(self, *args):
14665  r"""
14666  get_value(ClusterProvenance self, FloatKey a0) -> IMP::Float
14667  get_value(ClusterProvenance self, IntKey a0) -> IMP::Int
14668  get_value(ClusterProvenance self, FloatsKey a0) -> IMP::Floats
14669  get_value(ClusterProvenance self, IntsKey a0) -> IMP::Ints
14670  get_value(ClusterProvenance self, StringKey a0) -> IMP::String
14671  get_value(ClusterProvenance self, ParticleIndexKey a0) -> Particle
14672  get_value(ClusterProvenance self, ObjectKey a0) -> Object
14673  get_value(ClusterProvenance self, SparseFloatKey a0) -> IMP::Float
14674  get_value(ClusterProvenance self, SparseIntKey a0) -> IMP::Int
14675  get_value(ClusterProvenance self, SparseStringKey a0) -> IMP::String
14676  get_value(ClusterProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14677  """
14678  return _IMP_core.ClusterProvenance_get_value(self, *args)
14679 
14680  def set_value(self, *args):
14681  r"""
14682  set_value(ClusterProvenance self, FloatKey a0, IMP::Float a1)
14683  set_value(ClusterProvenance self, IntKey a0, IMP::Int a1)
14684  set_value(ClusterProvenance self, FloatsKey a0, IMP::Floats a1)
14685  set_value(ClusterProvenance self, IntsKey a0, IMP::Ints a1)
14686  set_value(ClusterProvenance self, StringKey a0, IMP::String a1)
14687  set_value(ClusterProvenance self, ParticleIndexKey a0, Particle a1)
14688  set_value(ClusterProvenance self, ObjectKey a0, Object a1)
14689  set_value(ClusterProvenance self, SparseFloatKey a0, IMP::Float a1)
14690  set_value(ClusterProvenance self, SparseIntKey a0, IMP::Int a1)
14691  set_value(ClusterProvenance self, SparseStringKey a0, IMP::String a1)
14692  set_value(ClusterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14693  """
14694  return _IMP_core.ClusterProvenance_set_value(self, *args)
14695 
14696  def remove_attribute(self, *args):
14697  r"""
14698  remove_attribute(ClusterProvenance self, FloatKey a0)
14699  remove_attribute(ClusterProvenance self, IntKey a0)
14700  remove_attribute(ClusterProvenance self, FloatsKey a0)
14701  remove_attribute(ClusterProvenance self, IntsKey a0)
14702  remove_attribute(ClusterProvenance self, StringKey a0)
14703  remove_attribute(ClusterProvenance self, ParticleIndexKey a0)
14704  remove_attribute(ClusterProvenance self, ObjectKey a0)
14705  remove_attribute(ClusterProvenance self, SparseFloatKey a0)
14706  remove_attribute(ClusterProvenance self, SparseIntKey a0)
14707  remove_attribute(ClusterProvenance self, SparseStringKey a0)
14708  remove_attribute(ClusterProvenance self, SparseParticleIndexKey a0)
14709  """
14710  return _IMP_core.ClusterProvenance_remove_attribute(self, *args)
14711 
14712  def has_attribute(self, *args):
14713  r"""
14714  has_attribute(ClusterProvenance self, FloatKey a0) -> bool
14715  has_attribute(ClusterProvenance self, IntKey a0) -> bool
14716  has_attribute(ClusterProvenance self, FloatsKey a0) -> bool
14717  has_attribute(ClusterProvenance self, IntsKey a0) -> bool
14718  has_attribute(ClusterProvenance self, StringKey a0) -> bool
14719  has_attribute(ClusterProvenance self, ParticleIndexKey a0) -> bool
14720  has_attribute(ClusterProvenance self, ObjectKey a0) -> bool
14721  has_attribute(ClusterProvenance self, SparseFloatKey a0) -> bool
14722  has_attribute(ClusterProvenance self, SparseIntKey a0) -> bool
14723  has_attribute(ClusterProvenance self, SparseStringKey a0) -> bool
14724  has_attribute(ClusterProvenance self, SparseParticleIndexKey a0) -> bool
14725  """
14726  return _IMP_core.ClusterProvenance_has_attribute(self, *args)
14727 
14728  def get_derivative(self, a0):
14729  r"""get_derivative(ClusterProvenance self, FloatKey a0) -> double"""
14730  return _IMP_core.ClusterProvenance_get_derivative(self, a0)
14731 
14732  def get_name(self):
14733  r"""get_name(ClusterProvenance self) -> std::string"""
14734  return _IMP_core.ClusterProvenance_get_name(self)
14735 
14736  def clear_caches(self):
14737  r"""clear_caches(ClusterProvenance self)"""
14738  return _IMP_core.ClusterProvenance_clear_caches(self)
14739 
14740  def set_name(self, a0):
14741  r"""set_name(ClusterProvenance self, std::string a0)"""
14742  return _IMP_core.ClusterProvenance_set_name(self, a0)
14743 
14744  def set_check_level(self, a0):
14745  r"""set_check_level(ClusterProvenance self, IMP::CheckLevel a0)"""
14746  return _IMP_core.ClusterProvenance_set_check_level(self, a0)
14747 
14748  def add_to_derivative(self, a0, a1, a2):
14749  r"""add_to_derivative(ClusterProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14750  return _IMP_core.ClusterProvenance_add_to_derivative(self, a0, a1, a2)
14751 
14752  def set_is_optimized(self, a0, a1):
14753  r"""set_is_optimized(ClusterProvenance self, FloatKey a0, bool a1)"""
14754  return _IMP_core.ClusterProvenance_set_is_optimized(self, a0, a1)
14755 
14756  def get_is_optimized(self, a0):
14757  r"""get_is_optimized(ClusterProvenance self, FloatKey a0) -> bool"""
14758  return _IMP_core.ClusterProvenance_get_is_optimized(self, a0)
14759 
14760  def get_check_level(self):
14761  r"""get_check_level(ClusterProvenance self) -> IMP::CheckLevel"""
14762  return _IMP_core.ClusterProvenance_get_check_level(self)
14763 
14764  def __eq__(self, *args):
14765  r"""
14766  __eq__(ClusterProvenance self, ClusterProvenance o) -> bool
14767  __eq__(ClusterProvenance self, Particle d) -> bool
14768  """
14769  return _IMP_core.ClusterProvenance___eq__(self, *args)
14770 
14771  def __ne__(self, *args):
14772  r"""
14773  __ne__(ClusterProvenance self, ClusterProvenance o) -> bool
14774  __ne__(ClusterProvenance self, Particle d) -> bool
14775  """
14776  return _IMP_core.ClusterProvenance___ne__(self, *args)
14777 
14778  def __le__(self, *args):
14779  r"""
14780  __le__(ClusterProvenance self, ClusterProvenance o) -> bool
14781  __le__(ClusterProvenance self, Particle d) -> bool
14782  """
14783  return _IMP_core.ClusterProvenance___le__(self, *args)
14784 
14785  def __lt__(self, *args):
14786  r"""
14787  __lt__(ClusterProvenance self, ClusterProvenance o) -> bool
14788  __lt__(ClusterProvenance self, Particle d) -> bool
14789  """
14790  return _IMP_core.ClusterProvenance___lt__(self, *args)
14791 
14792  def __ge__(self, *args):
14793  r"""
14794  __ge__(ClusterProvenance self, ClusterProvenance o) -> bool
14795  __ge__(ClusterProvenance self, Particle d) -> bool
14796  """
14797  return _IMP_core.ClusterProvenance___ge__(self, *args)
14798 
14799  def __gt__(self, *args):
14800  r"""
14801  __gt__(ClusterProvenance self, ClusterProvenance o) -> bool
14802  __gt__(ClusterProvenance self, Particle d) -> bool
14803  """
14804  return _IMP_core.ClusterProvenance___gt__(self, *args)
14805 
14806  def __hash__(self):
14807  r"""__hash__(ClusterProvenance self) -> std::size_t"""
14808  return _IMP_core.ClusterProvenance___hash__(self)
14809 
14810  def __str__(self):
14811  r"""__str__(ClusterProvenance self) -> std::string"""
14812  return _IMP_core.ClusterProvenance___str__(self)
14813 
14814  def __repr__(self):
14815  r"""__repr__(ClusterProvenance self) -> std::string"""
14816  return _IMP_core.ClusterProvenance___repr__(self)
14817 
14818  def _get_as_binary(self):
14819  r"""_get_as_binary(ClusterProvenance self) -> PyObject *"""
14820  return _IMP_core.ClusterProvenance__get_as_binary(self)
14821 
14822  def _set_from_binary(self, p):
14823  r"""_set_from_binary(ClusterProvenance self, PyObject * p)"""
14824  return _IMP_core.ClusterProvenance__set_from_binary(self, p)
14825 
14826  def __getstate__(self):
14827  p = self._get_as_binary()
14828  if len(self.__dict__) > 1:
14829  d = self.__dict__.copy()
14830  del d['this']
14831  p = (d, p)
14832  return p
14833 
14834  def __setstate__(self, p):
14835  if not hasattr(self, 'this'):
14836  self.__init__()
14837  if isinstance(p, tuple):
14838  d, p = p
14839  self.__dict__.update(d)
14840  return self._set_from_binary(p)
14841 
14842  __swig_destroy__ = _IMP_core.delete_ClusterProvenance
14843 
14844 # Register ClusterProvenance in _IMP_core:
14845 _IMP_core.ClusterProvenance_swigregister(ClusterProvenance)
14846 class ScriptProvenance(Provenance):
14847  r"""Proxy of C++ IMP::core::ScriptProvenance class."""
14848 
14849  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14850 
14851  def set_filename(self, filename):
14852  r"""set_filename(ScriptProvenance self, std::string filename)"""
14853  return _IMP_core.ScriptProvenance_set_filename(self, filename)
14854 
14855  def get_filename(self):
14856  r"""get_filename(ScriptProvenance self) -> std::string"""
14857  return _IMP_core.ScriptProvenance_get_filename(self)
14858 
14859  def __init__(self, *args):
14860  r"""
14861  __init__(ScriptProvenance self) -> ScriptProvenance
14862  __init__(ScriptProvenance self, Model m, ParticleIndex id) -> ScriptProvenance
14863  __init__(ScriptProvenance self, _ParticleAdaptor d) -> ScriptProvenance
14864  """
14865  _IMP_core.ScriptProvenance_swiginit(self, _IMP_core.new_ScriptProvenance(*args))
14866 
14867  @staticmethod
14868  def get_is_setup(*args):
14869  r"""
14870  get_is_setup(Model m, ParticleIndex pi) -> bool
14871  get_is_setup(_ParticleAdaptor p) -> bool
14872  """
14873  return _IMP_core.ScriptProvenance_get_is_setup(*args)
14874 
14875  def show(self, *args):
14876  r"""show(ScriptProvenance self, _ostream out=std::cout)"""
14877  return _IMP_core.ScriptProvenance_show(self, *args)
14878 
14879  @staticmethod
14880  def setup_particle(*args):
14881  r"""
14882  setup_particle(Model m, ParticleIndex pi, std::string filename) -> ScriptProvenance
14883  setup_particle(_ParticleAdaptor pa, std::string filename) -> ScriptProvenance
14884  setup_particle(Model m, ParticleIndex pi, ScriptProvenance o) -> ScriptProvenance
14885  setup_particle(_ParticleAdaptor pa, ScriptProvenance o) -> ScriptProvenance
14886  """
14887  return _IMP_core.ScriptProvenance_setup_particle(*args)
14888 
14889  def add_attribute(self, *args):
14890  r"""
14891  add_attribute(ScriptProvenance self, FloatKey k, IMP::Float v, bool opt)
14892  add_attribute(ScriptProvenance self, FloatKey a0, IMP::Float a1)
14893  add_attribute(ScriptProvenance self, IntKey a0, IMP::Int a1)
14894  add_attribute(ScriptProvenance self, FloatsKey a0, IMP::Floats a1)
14895  add_attribute(ScriptProvenance self, IntsKey a0, IMP::Ints a1)
14896  add_attribute(ScriptProvenance self, StringKey a0, IMP::String a1)
14897  add_attribute(ScriptProvenance self, ParticleIndexKey a0, Particle a1)
14898  add_attribute(ScriptProvenance self, ObjectKey a0, Object a1)
14899  add_attribute(ScriptProvenance self, SparseFloatKey a0, IMP::Float a1)
14900  add_attribute(ScriptProvenance self, SparseIntKey a0, IMP::Int a1)
14901  add_attribute(ScriptProvenance self, SparseStringKey a0, IMP::String a1)
14902  add_attribute(ScriptProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14903  """
14904  return _IMP_core.ScriptProvenance_add_attribute(self, *args)
14905 
14906  def get_value(self, *args):
14907  r"""
14908  get_value(ScriptProvenance self, FloatKey a0) -> IMP::Float
14909  get_value(ScriptProvenance self, IntKey a0) -> IMP::Int
14910  get_value(ScriptProvenance self, FloatsKey a0) -> IMP::Floats
14911  get_value(ScriptProvenance self, IntsKey a0) -> IMP::Ints
14912  get_value(ScriptProvenance self, StringKey a0) -> IMP::String
14913  get_value(ScriptProvenance self, ParticleIndexKey a0) -> Particle
14914  get_value(ScriptProvenance self, ObjectKey a0) -> Object
14915  get_value(ScriptProvenance self, SparseFloatKey a0) -> IMP::Float
14916  get_value(ScriptProvenance self, SparseIntKey a0) -> IMP::Int
14917  get_value(ScriptProvenance self, SparseStringKey a0) -> IMP::String
14918  get_value(ScriptProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14919  """
14920  return _IMP_core.ScriptProvenance_get_value(self, *args)
14921 
14922  def set_value(self, *args):
14923  r"""
14924  set_value(ScriptProvenance self, FloatKey a0, IMP::Float a1)
14925  set_value(ScriptProvenance self, IntKey a0, IMP::Int a1)
14926  set_value(ScriptProvenance self, FloatsKey a0, IMP::Floats a1)
14927  set_value(ScriptProvenance self, IntsKey a0, IMP::Ints a1)
14928  set_value(ScriptProvenance self, StringKey a0, IMP::String a1)
14929  set_value(ScriptProvenance self, ParticleIndexKey a0, Particle a1)
14930  set_value(ScriptProvenance self, ObjectKey a0, Object a1)
14931  set_value(ScriptProvenance self, SparseFloatKey a0, IMP::Float a1)
14932  set_value(ScriptProvenance self, SparseIntKey a0, IMP::Int a1)
14933  set_value(ScriptProvenance self, SparseStringKey a0, IMP::String a1)
14934  set_value(ScriptProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14935  """
14936  return _IMP_core.ScriptProvenance_set_value(self, *args)
14937 
14938  def remove_attribute(self, *args):
14939  r"""
14940  remove_attribute(ScriptProvenance self, FloatKey a0)
14941  remove_attribute(ScriptProvenance self, IntKey a0)
14942  remove_attribute(ScriptProvenance self, FloatsKey a0)
14943  remove_attribute(ScriptProvenance self, IntsKey a0)
14944  remove_attribute(ScriptProvenance self, StringKey a0)
14945  remove_attribute(ScriptProvenance self, ParticleIndexKey a0)
14946  remove_attribute(ScriptProvenance self, ObjectKey a0)
14947  remove_attribute(ScriptProvenance self, SparseFloatKey a0)
14948  remove_attribute(ScriptProvenance self, SparseIntKey a0)
14949  remove_attribute(ScriptProvenance self, SparseStringKey a0)
14950  remove_attribute(ScriptProvenance self, SparseParticleIndexKey a0)
14951  """
14952  return _IMP_core.ScriptProvenance_remove_attribute(self, *args)
14953 
14954  def has_attribute(self, *args):
14955  r"""
14956  has_attribute(ScriptProvenance self, FloatKey a0) -> bool
14957  has_attribute(ScriptProvenance self, IntKey a0) -> bool
14958  has_attribute(ScriptProvenance self, FloatsKey a0) -> bool
14959  has_attribute(ScriptProvenance self, IntsKey a0) -> bool
14960  has_attribute(ScriptProvenance self, StringKey a0) -> bool
14961  has_attribute(ScriptProvenance self, ParticleIndexKey a0) -> bool
14962  has_attribute(ScriptProvenance self, ObjectKey a0) -> bool
14963  has_attribute(ScriptProvenance self, SparseFloatKey a0) -> bool
14964  has_attribute(ScriptProvenance self, SparseIntKey a0) -> bool
14965  has_attribute(ScriptProvenance self, SparseStringKey a0) -> bool
14966  has_attribute(ScriptProvenance self, SparseParticleIndexKey a0) -> bool
14967  """
14968  return _IMP_core.ScriptProvenance_has_attribute(self, *args)
14969 
14970  def get_derivative(self, a0):
14971  r"""get_derivative(ScriptProvenance self, FloatKey a0) -> double"""
14972  return _IMP_core.ScriptProvenance_get_derivative(self, a0)
14973 
14974  def get_name(self):
14975  r"""get_name(ScriptProvenance self) -> std::string"""
14976  return _IMP_core.ScriptProvenance_get_name(self)
14977 
14978  def clear_caches(self):
14979  r"""clear_caches(ScriptProvenance self)"""
14980  return _IMP_core.ScriptProvenance_clear_caches(self)
14981 
14982  def set_name(self, a0):
14983  r"""set_name(ScriptProvenance self, std::string a0)"""
14984  return _IMP_core.ScriptProvenance_set_name(self, a0)
14985 
14986  def set_check_level(self, a0):
14987  r"""set_check_level(ScriptProvenance self, IMP::CheckLevel a0)"""
14988  return _IMP_core.ScriptProvenance_set_check_level(self, a0)
14989 
14990  def add_to_derivative(self, a0, a1, a2):
14991  r"""add_to_derivative(ScriptProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14992  return _IMP_core.ScriptProvenance_add_to_derivative(self, a0, a1, a2)
14993 
14994  def set_is_optimized(self, a0, a1):
14995  r"""set_is_optimized(ScriptProvenance self, FloatKey a0, bool a1)"""
14996  return _IMP_core.ScriptProvenance_set_is_optimized(self, a0, a1)
14997 
14998  def get_is_optimized(self, a0):
14999  r"""get_is_optimized(ScriptProvenance self, FloatKey a0) -> bool"""
15000  return _IMP_core.ScriptProvenance_get_is_optimized(self, a0)
15001 
15002  def get_check_level(self):
15003  r"""get_check_level(ScriptProvenance self) -> IMP::CheckLevel"""
15004  return _IMP_core.ScriptProvenance_get_check_level(self)
15005 
15006  def __eq__(self, *args):
15007  r"""
15008  __eq__(ScriptProvenance self, ScriptProvenance o) -> bool
15009  __eq__(ScriptProvenance self, Particle d) -> bool
15010  """
15011  return _IMP_core.ScriptProvenance___eq__(self, *args)
15012 
15013  def __ne__(self, *args):
15014  r"""
15015  __ne__(ScriptProvenance self, ScriptProvenance o) -> bool
15016  __ne__(ScriptProvenance self, Particle d) -> bool
15017  """
15018  return _IMP_core.ScriptProvenance___ne__(self, *args)
15019 
15020  def __le__(self, *args):
15021  r"""
15022  __le__(ScriptProvenance self, ScriptProvenance o) -> bool
15023  __le__(ScriptProvenance self, Particle d) -> bool
15024  """
15025  return _IMP_core.ScriptProvenance___le__(self, *args)
15026 
15027  def __lt__(self, *args):
15028  r"""
15029  __lt__(ScriptProvenance self, ScriptProvenance o) -> bool
15030  __lt__(ScriptProvenance self, Particle d) -> bool
15031  """
15032  return _IMP_core.ScriptProvenance___lt__(self, *args)
15033 
15034  def __ge__(self, *args):
15035  r"""
15036  __ge__(ScriptProvenance self, ScriptProvenance o) -> bool
15037  __ge__(ScriptProvenance self, Particle d) -> bool
15038  """
15039  return _IMP_core.ScriptProvenance___ge__(self, *args)
15040 
15041  def __gt__(self, *args):
15042  r"""
15043  __gt__(ScriptProvenance self, ScriptProvenance o) -> bool
15044  __gt__(ScriptProvenance self, Particle d) -> bool
15045  """
15046  return _IMP_core.ScriptProvenance___gt__(self, *args)
15047 
15048  def __hash__(self):
15049  r"""__hash__(ScriptProvenance self) -> std::size_t"""
15050  return _IMP_core.ScriptProvenance___hash__(self)
15051 
15052  def __str__(self):
15053  r"""__str__(ScriptProvenance self) -> std::string"""
15054  return _IMP_core.ScriptProvenance___str__(self)
15055 
15056  def __repr__(self):
15057  r"""__repr__(ScriptProvenance self) -> std::string"""
15058  return _IMP_core.ScriptProvenance___repr__(self)
15059 
15060  def _get_as_binary(self):
15061  r"""_get_as_binary(ScriptProvenance self) -> PyObject *"""
15062  return _IMP_core.ScriptProvenance__get_as_binary(self)
15063 
15064  def _set_from_binary(self, p):
15065  r"""_set_from_binary(ScriptProvenance self, PyObject * p)"""
15066  return _IMP_core.ScriptProvenance__set_from_binary(self, p)
15067 
15068  def __getstate__(self):
15069  p = self._get_as_binary()
15070  if len(self.__dict__) > 1:
15071  d = self.__dict__.copy()
15072  del d['this']
15073  p = (d, p)
15074  return p
15075 
15076  def __setstate__(self, p):
15077  if not hasattr(self, 'this'):
15078  self.__init__()
15079  if isinstance(p, tuple):
15080  d, p = p
15081  self.__dict__.update(d)
15082  return self._set_from_binary(p)
15083 
15084  __swig_destroy__ = _IMP_core.delete_ScriptProvenance
15085 
15086 # Register ScriptProvenance in _IMP_core:
15087 _IMP_core.ScriptProvenance_swigregister(ScriptProvenance)
15088 class SoftwareProvenance(Provenance):
15089  r"""Proxy of C++ IMP::core::SoftwareProvenance class."""
15090 
15091  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15092 
15093  def set_software_name(self, name):
15094  r"""set_software_name(SoftwareProvenance self, std::string name)"""
15095  return _IMP_core.SoftwareProvenance_set_software_name(self, name)
15096 
15097  def get_software_name(self):
15098  r"""get_software_name(SoftwareProvenance self) -> std::string"""
15099  return _IMP_core.SoftwareProvenance_get_software_name(self)
15100 
15101  def set_version(self, version):
15102  r"""set_version(SoftwareProvenance self, std::string version)"""
15103  return _IMP_core.SoftwareProvenance_set_version(self, version)
15104 
15105  def get_version(self):
15106  r"""get_version(SoftwareProvenance self) -> std::string"""
15107  return _IMP_core.SoftwareProvenance_get_version(self)
15108 
15109  def set_location(self, location):
15110  r"""set_location(SoftwareProvenance self, std::string location)"""
15111  return _IMP_core.SoftwareProvenance_set_location(self, location)
15112 
15113  def get_location(self):
15114  r"""get_location(SoftwareProvenance self) -> std::string"""
15115  return _IMP_core.SoftwareProvenance_get_location(self)
15116 
15117  def __init__(self, *args):
15118  r"""
15119  __init__(SoftwareProvenance self) -> SoftwareProvenance
15120  __init__(SoftwareProvenance self, Model m, ParticleIndex id) -> SoftwareProvenance
15121  __init__(SoftwareProvenance self, _ParticleAdaptor d) -> SoftwareProvenance
15122  """
15123  _IMP_core.SoftwareProvenance_swiginit(self, _IMP_core.new_SoftwareProvenance(*args))
15124 
15125  @staticmethod
15126  def get_is_setup(*args):
15127  r"""
15128  get_is_setup(Model m, ParticleIndex pi) -> bool
15129  get_is_setup(_ParticleAdaptor p) -> bool
15130  """
15131  return _IMP_core.SoftwareProvenance_get_is_setup(*args)
15132 
15133  def show(self, *args):
15134  r"""show(SoftwareProvenance self, _ostream out=std::cout)"""
15135  return _IMP_core.SoftwareProvenance_show(self, *args)
15136 
15137  @staticmethod
15138  def setup_particle(*args):
15139  r"""
15140  setup_particle(Model m, ParticleIndex pi, std::string name, std::string version, std::string location) -> SoftwareProvenance
15141  setup_particle(_ParticleAdaptor pa, std::string name, std::string version, std::string location) -> SoftwareProvenance
15142  setup_particle(Model m, ParticleIndex pi, SoftwareProvenance o) -> SoftwareProvenance
15143  setup_particle(_ParticleAdaptor pa, SoftwareProvenance o) -> SoftwareProvenance
15144  """
15145  return _IMP_core.SoftwareProvenance_setup_particle(*args)
15146 
15147  def add_attribute(self, *args):
15148  r"""
15149  add_attribute(SoftwareProvenance self, FloatKey k, IMP::Float v, bool opt)
15150  add_attribute(SoftwareProvenance self, FloatKey a0, IMP::Float a1)
15151  add_attribute(SoftwareProvenance self, IntKey a0, IMP::Int a1)
15152  add_attribute(SoftwareProvenance self, FloatsKey a0, IMP::Floats a1)
15153  add_attribute(SoftwareProvenance self, IntsKey a0, IMP::Ints a1)
15154  add_attribute(SoftwareProvenance self, StringKey a0, IMP::String a1)
15155  add_attribute(SoftwareProvenance self, ParticleIndexKey a0, Particle a1)
15156  add_attribute(SoftwareProvenance self, ObjectKey a0, Object a1)
15157  add_attribute(SoftwareProvenance self, SparseFloatKey a0, IMP::Float a1)
15158  add_attribute(SoftwareProvenance self, SparseIntKey a0, IMP::Int a1)
15159  add_attribute(SoftwareProvenance self, SparseStringKey a0, IMP::String a1)
15160  add_attribute(SoftwareProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
15161  """
15162  return _IMP_core.SoftwareProvenance_add_attribute(self, *args)
15163 
15164  def get_value(self, *args):
15165  r"""
15166  get_value(SoftwareProvenance self, FloatKey a0) -> IMP::Float
15167  get_value(SoftwareProvenance self, IntKey a0) -> IMP::Int
15168  get_value(SoftwareProvenance self, FloatsKey a0) -> IMP::Floats
15169  get_value(SoftwareProvenance self, IntsKey a0) -> IMP::Ints
15170  get_value(SoftwareProvenance self, StringKey a0) -> IMP::String
15171  get_value(SoftwareProvenance self, ParticleIndexKey a0) -> Particle
15172  get_value(SoftwareProvenance self, ObjectKey a0) -> Object
15173  get_value(SoftwareProvenance self, SparseFloatKey a0) -> IMP::Float
15174  get_value(SoftwareProvenance self, SparseIntKey a0) -> IMP::Int
15175  get_value(SoftwareProvenance self, SparseStringKey a0) -> IMP::String
15176  get_value(SoftwareProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
15177  """
15178  return _IMP_core.SoftwareProvenance_get_value(self, *args)
15179 
15180  def set_value(self, *args):
15181  r"""
15182  set_value(SoftwareProvenance self, FloatKey a0, IMP::Float a1)
15183  set_value(SoftwareProvenance self, IntKey a0, IMP::Int a1)
15184  set_value(SoftwareProvenance self, FloatsKey a0, IMP::Floats a1)
15185  set_value(SoftwareProvenance self, IntsKey a0, IMP::Ints a1)
15186  set_value(SoftwareProvenance self, StringKey a0, IMP::String a1)
15187  set_value(SoftwareProvenance self, ParticleIndexKey a0, Particle a1)
15188  set_value(SoftwareProvenance self, ObjectKey a0, Object a1)
15189  set_value(SoftwareProvenance self, SparseFloatKey a0, IMP::Float a1)
15190  set_value(SoftwareProvenance self, SparseIntKey a0, IMP::Int a1)
15191  set_value(SoftwareProvenance self, SparseStringKey a0, IMP::String a1)
15192  set_value(SoftwareProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
15193  """
15194  return _IMP_core.SoftwareProvenance_set_value(self, *args)
15195 
15196  def remove_attribute(self, *args):
15197  r"""
15198  remove_attribute(SoftwareProvenance self, FloatKey a0)
15199  remove_attribute(SoftwareProvenance self, IntKey a0)
15200  remove_attribute(SoftwareProvenance self, FloatsKey a0)
15201  remove_attribute(SoftwareProvenance self, IntsKey a0)
15202  remove_attribute(SoftwareProvenance self, StringKey a0)
15203  remove_attribute(SoftwareProvenance self, ParticleIndexKey a0)
15204  remove_attribute(SoftwareProvenance self, ObjectKey a0)
15205  remove_attribute(SoftwareProvenance self, SparseFloatKey a0)
15206  remove_attribute(SoftwareProvenance self, SparseIntKey a0)
15207  remove_attribute(SoftwareProvenance self, SparseStringKey a0)
15208  remove_attribute(SoftwareProvenance self, SparseParticleIndexKey a0)
15209  """
15210  return _IMP_core.SoftwareProvenance_remove_attribute(self, *args)
15211 
15212  def has_attribute(self, *args):
15213  r"""
15214  has_attribute(SoftwareProvenance self, FloatKey a0) -> bool
15215  has_attribute(SoftwareProvenance self, IntKey a0) -> bool
15216  has_attribute(SoftwareProvenance self, FloatsKey a0) -> bool
15217  has_attribute(SoftwareProvenance self, IntsKey a0) -> bool
15218  has_attribute(SoftwareProvenance self, StringKey a0) -> bool
15219  has_attribute(SoftwareProvenance self, ParticleIndexKey a0) -> bool
15220  has_attribute(SoftwareProvenance self, ObjectKey a0) -> bool
15221  has_attribute(SoftwareProvenance self, SparseFloatKey a0) -> bool
15222  has_attribute(SoftwareProvenance self, SparseIntKey a0) -> bool
15223  has_attribute(SoftwareProvenance self, SparseStringKey a0) -> bool
15224  has_attribute(SoftwareProvenance self, SparseParticleIndexKey a0) -> bool
15225  """
15226  return _IMP_core.SoftwareProvenance_has_attribute(self, *args)
15227 
15228  def get_derivative(self, a0):
15229  r"""get_derivative(SoftwareProvenance self, FloatKey a0) -> double"""
15230  return _IMP_core.SoftwareProvenance_get_derivative(self, a0)
15231 
15232  def get_name(self):
15233  r"""get_name(SoftwareProvenance self) -> std::string"""
15234  return _IMP_core.SoftwareProvenance_get_name(self)
15235 
15236  def clear_caches(self):
15237  r"""clear_caches(SoftwareProvenance self)"""
15238  return _IMP_core.SoftwareProvenance_clear_caches(self)
15239 
15240  def set_name(self, a0):
15241  r"""set_name(SoftwareProvenance self, std::string a0)"""
15242  return _IMP_core.SoftwareProvenance_set_name(self, a0)
15243 
15244  def set_check_level(self, a0):
15245  r"""set_check_level(SoftwareProvenance self, IMP::CheckLevel a0)"""
15246  return _IMP_core.SoftwareProvenance_set_check_level(self, a0)
15247 
15248  def add_to_derivative(self, a0, a1, a2):
15249  r"""add_to_derivative(SoftwareProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15250  return _IMP_core.SoftwareProvenance_add_to_derivative(self, a0, a1, a2)
15251 
15252  def set_is_optimized(self, a0, a1):
15253  r"""set_is_optimized(SoftwareProvenance self, FloatKey a0, bool a1)"""
15254  return _IMP_core.SoftwareProvenance_set_is_optimized(self, a0, a1)
15255 
15256  def get_is_optimized(self, a0):
15257  r"""get_is_optimized(SoftwareProvenance self, FloatKey a0) -> bool"""
15258  return _IMP_core.SoftwareProvenance_get_is_optimized(self, a0)
15259 
15260  def get_check_level(self):
15261  r"""get_check_level(SoftwareProvenance self) -> IMP::CheckLevel"""
15262  return _IMP_core.SoftwareProvenance_get_check_level(self)
15263 
15264  def __eq__(self, *args):
15265  r"""
15266  __eq__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15267  __eq__(SoftwareProvenance self, Particle d) -> bool
15268  """
15269  return _IMP_core.SoftwareProvenance___eq__(self, *args)
15270 
15271  def __ne__(self, *args):
15272  r"""
15273  __ne__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15274  __ne__(SoftwareProvenance self, Particle d) -> bool
15275  """
15276  return _IMP_core.SoftwareProvenance___ne__(self, *args)
15277 
15278  def __le__(self, *args):
15279  r"""
15280  __le__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15281  __le__(SoftwareProvenance self, Particle d) -> bool
15282  """
15283  return _IMP_core.SoftwareProvenance___le__(self, *args)
15284 
15285  def __lt__(self, *args):
15286  r"""
15287  __lt__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15288  __lt__(SoftwareProvenance self, Particle d) -> bool
15289  """
15290  return _IMP_core.SoftwareProvenance___lt__(self, *args)
15291 
15292  def __ge__(self, *args):
15293  r"""
15294  __ge__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15295  __ge__(SoftwareProvenance self, Particle d) -> bool
15296  """
15297  return _IMP_core.SoftwareProvenance___ge__(self, *args)
15298 
15299  def __gt__(self, *args):
15300  r"""
15301  __gt__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15302  __gt__(SoftwareProvenance self, Particle d) -> bool
15303  """
15304  return _IMP_core.SoftwareProvenance___gt__(self, *args)
15305 
15306  def __hash__(self):
15307  r"""__hash__(SoftwareProvenance self) -> std::size_t"""
15308  return _IMP_core.SoftwareProvenance___hash__(self)
15309 
15310  def __str__(self):
15311  r"""__str__(SoftwareProvenance self) -> std::string"""
15312  return _IMP_core.SoftwareProvenance___str__(self)
15313 
15314  def __repr__(self):
15315  r"""__repr__(SoftwareProvenance self) -> std::string"""
15316  return _IMP_core.SoftwareProvenance___repr__(self)
15317 
15318  def _get_as_binary(self):
15319  r"""_get_as_binary(SoftwareProvenance self) -> PyObject *"""
15320  return _IMP_core.SoftwareProvenance__get_as_binary(self)
15321 
15322  def _set_from_binary(self, p):
15323  r"""_set_from_binary(SoftwareProvenance self, PyObject * p)"""
15324  return _IMP_core.SoftwareProvenance__set_from_binary(self, p)
15325 
15326  def __getstate__(self):
15327  p = self._get_as_binary()
15328  if len(self.__dict__) > 1:
15329  d = self.__dict__.copy()
15330  del d['this']
15331  p = (d, p)
15332  return p
15333 
15334  def __setstate__(self, p):
15335  if not hasattr(self, 'this'):
15336  self.__init__()
15337  if isinstance(p, tuple):
15338  d, p = p
15339  self.__dict__.update(d)
15340  return self._set_from_binary(p)
15341 
15342  __swig_destroy__ = _IMP_core.delete_SoftwareProvenance
15343 
15344 # Register SoftwareProvenance in _IMP_core:
15345 _IMP_core.SoftwareProvenance_swigregister(SoftwareProvenance)
15346 class Provenanced(IMP.Decorator):
15347  r"""Proxy of C++ IMP::core::Provenanced class."""
15348 
15349  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15350 
15351  def get_provenance(self):
15352  r"""get_provenance(Provenanced self) -> Provenance"""
15353  return _IMP_core.Provenanced_get_provenance(self)
15354 
15355  def set_provenance(self, p):
15356  r"""set_provenance(Provenanced self, Provenance p)"""
15357  return _IMP_core.Provenanced_set_provenance(self, p)
15358 
15359  def __init__(self, *args):
15360  r"""
15361  __init__(Provenanced self) -> Provenanced
15362  __init__(Provenanced self, Model m, ParticleIndex id) -> Provenanced
15363  __init__(Provenanced self, _ParticleAdaptor d) -> Provenanced
15364  """
15365  _IMP_core.Provenanced_swiginit(self, _IMP_core.new_Provenanced(*args))
15366 
15367  @staticmethod
15368  def get_is_setup(*args):
15369  r"""
15370  get_is_setup(Model m, ParticleIndex pi) -> bool
15371  get_is_setup(_ParticleAdaptor p) -> bool
15372  """
15373  return _IMP_core.Provenanced_get_is_setup(*args)
15374 
15375  def show(self, *args):
15376  r"""show(Provenanced self, _ostream out=std::cout)"""
15377  return _IMP_core.Provenanced_show(self, *args)
15378 
15379  @staticmethod
15380  def setup_particle(*args):
15381  r"""
15382  setup_particle(Model m, ParticleIndex pi, Provenance p) -> Provenanced
15383  setup_particle(_ParticleAdaptor pa, Provenance p) -> Provenanced
15384  """
15385  return _IMP_core.Provenanced_setup_particle(*args)
15386 
15387  def add_attribute(self, *args):
15388  r"""
15389  add_attribute(Provenanced self, FloatKey k, IMP::Float v, bool opt)
15390  add_attribute(Provenanced self, FloatKey a0, IMP::Float a1)
15391  add_attribute(Provenanced self, IntKey a0, IMP::Int a1)
15392  add_attribute(Provenanced self, FloatsKey a0, IMP::Floats a1)
15393  add_attribute(Provenanced self, IntsKey a0, IMP::Ints a1)
15394  add_attribute(Provenanced self, StringKey a0, IMP::String a1)
15395  add_attribute(Provenanced self, ParticleIndexKey a0, Particle a1)
15396  add_attribute(Provenanced self, ObjectKey a0, Object a1)
15397  add_attribute(Provenanced self, SparseFloatKey a0, IMP::Float a1)
15398  add_attribute(Provenanced self, SparseIntKey a0, IMP::Int a1)
15399  add_attribute(Provenanced self, SparseStringKey a0, IMP::String a1)
15400  add_attribute(Provenanced self, SparseParticleIndexKey a0, ParticleIndex a1)
15401  """
15402  return _IMP_core.Provenanced_add_attribute(self, *args)
15403 
15404  def get_value(self, *args):
15405  r"""
15406  get_value(Provenanced self, FloatKey a0) -> IMP::Float
15407  get_value(Provenanced self, IntKey a0) -> IMP::Int
15408  get_value(Provenanced self, FloatsKey a0) -> IMP::Floats
15409  get_value(Provenanced self, IntsKey a0) -> IMP::Ints
15410  get_value(Provenanced self, StringKey a0) -> IMP::String
15411  get_value(Provenanced self, ParticleIndexKey a0) -> Particle
15412  get_value(Provenanced self, ObjectKey a0) -> Object
15413  get_value(Provenanced self, SparseFloatKey a0) -> IMP::Float
15414  get_value(Provenanced self, SparseIntKey a0) -> IMP::Int
15415  get_value(Provenanced self, SparseStringKey a0) -> IMP::String
15416  get_value(Provenanced self, SparseParticleIndexKey a0) -> ParticleIndex
15417  """
15418  return _IMP_core.Provenanced_get_value(self, *args)
15419 
15420  def set_value(self, *args):
15421  r"""
15422  set_value(Provenanced self, FloatKey a0, IMP::Float a1)
15423  set_value(Provenanced self, IntKey a0, IMP::Int a1)
15424  set_value(Provenanced self, FloatsKey a0, IMP::Floats a1)
15425  set_value(Provenanced self, IntsKey a0, IMP::Ints a1)
15426  set_value(Provenanced self, StringKey a0, IMP::String a1)
15427  set_value(Provenanced self, ParticleIndexKey a0, Particle a1)
15428  set_value(Provenanced self, ObjectKey a0, Object a1)
15429  set_value(Provenanced self, SparseFloatKey a0, IMP::Float a1)
15430  set_value(Provenanced self, SparseIntKey a0, IMP::Int a1)
15431  set_value(Provenanced self, SparseStringKey a0, IMP::String a1)
15432  set_value(Provenanced self, SparseParticleIndexKey a0, ParticleIndex a1)
15433  """
15434  return _IMP_core.Provenanced_set_value(self, *args)
15435 
15436  def remove_attribute(self, *args):
15437  r"""
15438  remove_attribute(Provenanced self, FloatKey a0)
15439  remove_attribute(Provenanced self, IntKey a0)
15440  remove_attribute(Provenanced self, FloatsKey a0)
15441  remove_attribute(Provenanced self, IntsKey a0)
15442  remove_attribute(Provenanced self, StringKey a0)
15443  remove_attribute(Provenanced self, ParticleIndexKey a0)
15444  remove_attribute(Provenanced self, ObjectKey a0)
15445  remove_attribute(Provenanced self, SparseFloatKey a0)
15446  remove_attribute(Provenanced self, SparseIntKey a0)
15447  remove_attribute(Provenanced self, SparseStringKey a0)
15448  remove_attribute(Provenanced self, SparseParticleIndexKey a0)
15449  """
15450  return _IMP_core.Provenanced_remove_attribute(self, *args)
15451 
15452  def has_attribute(self, *args):
15453  r"""
15454  has_attribute(Provenanced self, FloatKey a0) -> bool
15455  has_attribute(Provenanced self, IntKey a0) -> bool
15456  has_attribute(Provenanced self, FloatsKey a0) -> bool
15457  has_attribute(Provenanced self, IntsKey a0) -> bool
15458  has_attribute(Provenanced self, StringKey a0) -> bool
15459  has_attribute(Provenanced self, ParticleIndexKey a0) -> bool
15460  has_attribute(Provenanced self, ObjectKey a0) -> bool
15461  has_attribute(Provenanced self, SparseFloatKey a0) -> bool
15462  has_attribute(Provenanced self, SparseIntKey a0) -> bool
15463  has_attribute(Provenanced self, SparseStringKey a0) -> bool
15464  has_attribute(Provenanced self, SparseParticleIndexKey a0) -> bool
15465  """
15466  return _IMP_core.Provenanced_has_attribute(self, *args)
15467 
15468  def get_derivative(self, a0):
15469  r"""get_derivative(Provenanced self, FloatKey a0) -> double"""
15470  return _IMP_core.Provenanced_get_derivative(self, a0)
15471 
15472  def get_name(self):
15473  r"""get_name(Provenanced self) -> std::string"""
15474  return _IMP_core.Provenanced_get_name(self)
15475 
15476  def clear_caches(self):
15477  r"""clear_caches(Provenanced self)"""
15478  return _IMP_core.Provenanced_clear_caches(self)
15479 
15480  def set_name(self, a0):
15481  r"""set_name(Provenanced self, std::string a0)"""
15482  return _IMP_core.Provenanced_set_name(self, a0)
15483 
15484  def set_check_level(self, a0):
15485  r"""set_check_level(Provenanced self, IMP::CheckLevel a0)"""
15486  return _IMP_core.Provenanced_set_check_level(self, a0)
15487 
15488  def add_to_derivative(self, a0, a1, a2):
15489  r"""add_to_derivative(Provenanced self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15490  return _IMP_core.Provenanced_add_to_derivative(self, a0, a1, a2)
15491 
15492  def set_is_optimized(self, a0, a1):
15493  r"""set_is_optimized(Provenanced self, FloatKey a0, bool a1)"""
15494  return _IMP_core.Provenanced_set_is_optimized(self, a0, a1)
15495 
15496  def get_is_optimized(self, a0):
15497  r"""get_is_optimized(Provenanced self, FloatKey a0) -> bool"""
15498  return _IMP_core.Provenanced_get_is_optimized(self, a0)
15499 
15500  def get_check_level(self):
15501  r"""get_check_level(Provenanced self) -> IMP::CheckLevel"""
15502  return _IMP_core.Provenanced_get_check_level(self)
15503 
15504  def __eq__(self, *args):
15505  r"""
15506  __eq__(Provenanced self, Provenanced o) -> bool
15507  __eq__(Provenanced self, Particle d) -> bool
15508  """
15509  return _IMP_core.Provenanced___eq__(self, *args)
15510 
15511  def __ne__(self, *args):
15512  r"""
15513  __ne__(Provenanced self, Provenanced o) -> bool
15514  __ne__(Provenanced self, Particle d) -> bool
15515  """
15516  return _IMP_core.Provenanced___ne__(self, *args)
15517 
15518  def __le__(self, *args):
15519  r"""
15520  __le__(Provenanced self, Provenanced o) -> bool
15521  __le__(Provenanced self, Particle d) -> bool
15522  """
15523  return _IMP_core.Provenanced___le__(self, *args)
15524 
15525  def __lt__(self, *args):
15526  r"""
15527  __lt__(Provenanced self, Provenanced o) -> bool
15528  __lt__(Provenanced self, Particle d) -> bool
15529  """
15530  return _IMP_core.Provenanced___lt__(self, *args)
15531 
15532  def __ge__(self, *args):
15533  r"""
15534  __ge__(Provenanced self, Provenanced o) -> bool
15535  __ge__(Provenanced self, Particle d) -> bool
15536  """
15537  return _IMP_core.Provenanced___ge__(self, *args)
15538 
15539  def __gt__(self, *args):
15540  r"""
15541  __gt__(Provenanced self, Provenanced o) -> bool
15542  __gt__(Provenanced self, Particle d) -> bool
15543  """
15544  return _IMP_core.Provenanced___gt__(self, *args)
15545 
15546  def __hash__(self):
15547  r"""__hash__(Provenanced self) -> std::size_t"""
15548  return _IMP_core.Provenanced___hash__(self)
15549 
15550  def __str__(self):
15551  r"""__str__(Provenanced self) -> std::string"""
15552  return _IMP_core.Provenanced___str__(self)
15553 
15554  def __repr__(self):
15555  r"""__repr__(Provenanced self) -> std::string"""
15556  return _IMP_core.Provenanced___repr__(self)
15557 
15558  def _get_as_binary(self):
15559  r"""_get_as_binary(Provenanced self) -> PyObject *"""
15560  return _IMP_core.Provenanced__get_as_binary(self)
15561 
15562  def _set_from_binary(self, p):
15563  r"""_set_from_binary(Provenanced self, PyObject * p)"""
15564  return _IMP_core.Provenanced__set_from_binary(self, p)
15565 
15566  def __getstate__(self):
15567  p = self._get_as_binary()
15568  if len(self.__dict__) > 1:
15569  d = self.__dict__.copy()
15570  del d['this']
15571  p = (d, p)
15572  return p
15573 
15574  def __setstate__(self, p):
15575  if not hasattr(self, 'this'):
15576  self.__init__()
15577  if isinstance(p, tuple):
15578  d, p = p
15579  self.__dict__.update(d)
15580  return self._set_from_binary(p)
15581 
15582  __swig_destroy__ = _IMP_core.delete_Provenanced
15583 
15584 # Register Provenanced in _IMP_core:
15585 _IMP_core.Provenanced_swigregister(Provenanced)
15586 
15587 def add_provenance(m, pi, p):
15588  r"""add_provenance(Model m, ParticleIndex pi, Provenance p)"""
15589  return _IMP_core.add_provenance(m, pi, p)
15590 
15591 def create_clone(p):
15592  r"""create_clone(Provenance p) -> Provenance"""
15593  return _IMP_core.create_clone(p)
15594 
15596  r"""
15597  get_transformation_aligning_first_to_second(IMP::ParticlesTemp const & a, IMP::ParticlesTemp const & b) -> Transformation3D
15598  get_transformation_aligning_first_to_second(IMP::ParticlesTemp const & a, IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & b) -> Transformation3D
15599  get_transformation_aligning_first_to_second(IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & a, IMP::ParticlesTemp const & b) -> Transformation3D
15600  """
15601  return _IMP_core.get_transformation_aligning_first_to_second(*args)
15602 
15603 def create_restraint(ps, pp):
15604  r"""create_restraint(PairScore ps, IMP::ParticlePair pp) -> Restraint"""
15605  return _IMP_core.create_restraint(ps, pp)
15607  r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::LOWER > class."""
15608 
15609  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15610 
15611  def __init__(self, *args):
15612  r"""
15613  __init__(TruncatedHarmonicLowerBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicLowerBound
15614  __init__(TruncatedHarmonicLowerBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicLowerBound
15615  """
15616  _IMP_core.TruncatedHarmonicLowerBound_swiginit(self, _IMP_core.new_TruncatedHarmonicLowerBound(*args))
15617 
15618  def get_version_info(self):
15619  r"""get_version_info(TruncatedHarmonicLowerBound self) -> VersionInfo"""
15620  return _IMP_core.TruncatedHarmonicLowerBound_get_version_info(self)
15621  __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicLowerBound
15622 
15623  def __str__(self):
15624  r"""__str__(TruncatedHarmonicLowerBound self) -> std::string"""
15625  return _IMP_core.TruncatedHarmonicLowerBound___str__(self)
15626 
15627  def __repr__(self):
15628  r"""__repr__(TruncatedHarmonicLowerBound self) -> std::string"""
15629  return _IMP_core.TruncatedHarmonicLowerBound___repr__(self)
15630 
15631  @staticmethod
15632  def get_from(o):
15633  return _object_cast_to_TruncatedHarmonic(o)
15634 
15635 
15636 # Register TruncatedHarmonicLowerBound in _IMP_core:
15637 _IMP_core.TruncatedHarmonicLowerBound_swigregister(TruncatedHarmonicLowerBound)
15639  r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::UPPER > class."""
15640 
15641  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15642 
15643  def __init__(self, *args):
15644  r"""
15645  __init__(TruncatedHarmonicUpperBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicUpperBound
15646  __init__(TruncatedHarmonicUpperBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicUpperBound
15647  """
15648  _IMP_core.TruncatedHarmonicUpperBound_swiginit(self, _IMP_core.new_TruncatedHarmonicUpperBound(*args))
15649 
15650  def get_version_info(self):
15651  r"""get_version_info(TruncatedHarmonicUpperBound self) -> VersionInfo"""
15652  return _IMP_core.TruncatedHarmonicUpperBound_get_version_info(self)
15653  __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicUpperBound
15654 
15655  def __str__(self):
15656  r"""__str__(TruncatedHarmonicUpperBound self) -> std::string"""
15657  return _IMP_core.TruncatedHarmonicUpperBound___str__(self)
15658 
15659  def __repr__(self):
15660  r"""__repr__(TruncatedHarmonicUpperBound self) -> std::string"""
15661  return _IMP_core.TruncatedHarmonicUpperBound___repr__(self)
15662 
15663  @staticmethod
15664  def get_from(o):
15665  return _object_cast_to_TruncatedHarmonic(o)
15666 
15667 
15668 # Register TruncatedHarmonicUpperBound in _IMP_core:
15669 _IMP_core.TruncatedHarmonicUpperBound_swigregister(TruncatedHarmonicUpperBound)
15671  r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::BOTH > class."""
15672 
15673  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15674 
15675  def __init__(self, *args):
15676  r"""
15677  __init__(TruncatedHarmonicBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicBound
15678  __init__(TruncatedHarmonicBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicBound
15679  """
15680  _IMP_core.TruncatedHarmonicBound_swiginit(self, _IMP_core.new_TruncatedHarmonicBound(*args))
15681 
15682  def get_version_info(self):
15683  r"""get_version_info(TruncatedHarmonicBound self) -> VersionInfo"""
15684  return _IMP_core.TruncatedHarmonicBound_get_version_info(self)
15685  __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicBound
15686 
15687  def __str__(self):
15688  r"""__str__(TruncatedHarmonicBound self) -> std::string"""
15689  return _IMP_core.TruncatedHarmonicBound___str__(self)
15690 
15691  def __repr__(self):
15692  r"""__repr__(TruncatedHarmonicBound self) -> std::string"""
15693  return _IMP_core.TruncatedHarmonicBound___repr__(self)
15694 
15695  @staticmethod
15696  def get_from(o):
15697  return _object_cast_to_TruncatedHarmonic(o)
15698 
15699 
15700 # Register TruncatedHarmonicBound in _IMP_core:
15701 _IMP_core.TruncatedHarmonicBound_swigregister(TruncatedHarmonicBound)
15702 class ParticleType(IMP._Value):
15703  r"""Proxy of C++ IMP::Key< 34897493 > class."""
15704 
15705  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15706 
15707  def __init__(self, *args):
15708  r"""
15709  __init__(ParticleType self) -> ParticleType
15710  __init__(ParticleType self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleType
15711  __init__(ParticleType self, unsigned int i) -> ParticleType
15712  """
15713  _IMP_core.ParticleType_swiginit(self, _IMP_core.new_ParticleType(*args))
15714 
15715  @staticmethod
15716  def add_key(sc):
15717  r"""add_key(std::string sc) -> unsigned int"""
15718  return _IMP_core.ParticleType_add_key(sc)
15719 
15720  @staticmethod
15721  def get_key_exists(sc):
15722  r"""get_key_exists(std::string sc) -> bool"""
15723  return _IMP_core.ParticleType_get_key_exists(sc)
15724 
15725  def get_string(self):
15726  r"""get_string(ParticleType self) -> std::string const"""
15727  return _IMP_core.ParticleType_get_string(self)
15728 
15729  def __cmp__(self, o):
15730  r"""__cmp__(ParticleType self, ParticleType o) -> int"""
15731  return _IMP_core.ParticleType___cmp__(self, o)
15732 
15733  def __eq__(self, o):
15734  r"""__eq__(ParticleType self, ParticleType o) -> bool"""
15735  return _IMP_core.ParticleType___eq__(self, o)
15736 
15737  def __ne__(self, o):
15738  r"""__ne__(ParticleType self, ParticleType o) -> bool"""
15739  return _IMP_core.ParticleType___ne__(self, o)
15740 
15741  def __lt__(self, o):
15742  r"""__lt__(ParticleType self, ParticleType o) -> bool"""
15743  return _IMP_core.ParticleType___lt__(self, o)
15744 
15745  def __gt__(self, o):
15746  r"""__gt__(ParticleType self, ParticleType o) -> bool"""
15747  return _IMP_core.ParticleType___gt__(self, o)
15748 
15749  def __ge__(self, o):
15750  r"""__ge__(ParticleType self, ParticleType o) -> bool"""
15751  return _IMP_core.ParticleType___ge__(self, o)
15752 
15753  def __le__(self, o):
15754  r"""__le__(ParticleType self, ParticleType o) -> bool"""
15755  return _IMP_core.ParticleType___le__(self, o)
15756 
15757  def __hash__(self):
15758  r"""__hash__(ParticleType self) -> std::size_t"""
15759  return _IMP_core.ParticleType___hash__(self)
15760 
15761  def show(self, *args):
15762  r"""show(ParticleType self, _ostream out=std::cout)"""
15763  return _IMP_core.ParticleType_show(self, *args)
15764 
15765  @staticmethod
15766  def add_alias(old_key, new_name):
15767  r"""add_alias(ParticleType old_key, std::string new_name) -> ParticleType"""
15768  return _IMP_core.ParticleType_add_alias(old_key, new_name)
15769 
15770  @staticmethod
15771  def get_number_of_keys():
15772  r"""get_number_of_keys() -> unsigned int"""
15773  return _IMP_core.ParticleType_get_number_of_keys()
15774 
15775  def get_index(self):
15776  r"""get_index(ParticleType self) -> unsigned int"""
15777  return _IMP_core.ParticleType_get_index(self)
15778 
15779  @staticmethod
15780  def show_all(out):
15781  r"""show_all(_ostream out)"""
15782  return _IMP_core.ParticleType_show_all(out)
15783 
15784  @staticmethod
15785  def get_all_strings():
15786  r"""get_all_strings() -> IMP::Vector< std::string >"""
15787  return _IMP_core.ParticleType_get_all_strings()
15788 
15789  @staticmethod
15790  def get_number_unique():
15791  r"""get_number_unique() -> unsigned int"""
15792  return _IMP_core.ParticleType_get_number_unique()
15793 
15794  def __str__(self):
15795  r"""__str__(ParticleType self) -> std::string"""
15796  return _IMP_core.ParticleType___str__(self)
15797 
15798  def __repr__(self):
15799  r"""__repr__(ParticleType self) -> std::string"""
15800  return _IMP_core.ParticleType___repr__(self)
15801  __swig_destroy__ = _IMP_core.delete_ParticleType
15802 
15803 # Register ParticleType in _IMP_core:
15804 _IMP_core.ParticleType_swigregister(ParticleType)
15806  r"""Proxy of C++ IMP::core::GenericAttributeSingletonScore< UnaryFunction > class."""
15807 
15808  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15809  __repr__ = _swig_repr
15810 
15811  def __init__(self, f, k):
15812  r"""__init__(AttributeSingletonScore self, UnaryFunction f, FloatKey k) -> AttributeSingletonScore"""
15813  _IMP_core.AttributeSingletonScore_swiginit(self, _IMP_core.new_AttributeSingletonScore(f, k))
15814 
15815  def do_get_inputs(self, m, pis):
15816  r"""do_get_inputs(AttributeSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15817  return _IMP_core.AttributeSingletonScore_do_get_inputs(self, m, pis)
15818 
15819  def get_unary_function(self):
15820  r"""get_unary_function(AttributeSingletonScore self) -> UnaryFunction"""
15821  return _IMP_core.AttributeSingletonScore_get_unary_function(self)
15822 
15823  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
15824  r"""evaluate_indexes(AttributeSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
15825  return _IMP_core.AttributeSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
15826 
15827  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
15828  r"""evaluate_indexes_scores(AttributeSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
15829  return _IMP_core.AttributeSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
15830 
15831  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
15832  r"""evaluate_indexes_delta(AttributeSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
15833  return _IMP_core.AttributeSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
15834 
15835  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
15836  r"""evaluate_if_good_indexes(AttributeSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
15837  return _IMP_core.AttributeSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
15838 
15839  def get_version_info(self):
15840  r"""get_version_info(AttributeSingletonScore self) -> VersionInfo"""
15841  return _IMP_core.AttributeSingletonScore_get_version_info(self)
15842  __swig_destroy__ = _IMP_core.delete_AttributeSingletonScore
15843 
15844 # Register AttributeSingletonScore in _IMP_core:
15845 _IMP_core.AttributeSingletonScore_swigregister(AttributeSingletonScore)
15846 
15848  r"""create_generic_attribute_singleton_score(UnaryFunction uf, FloatKey k) -> AttributeSingletonScore"""
15849  return _IMP_core.create_generic_attribute_singleton_score(uf, k)
15851  r"""Proxy of C++ IMP::core::GenericBoundingBox3DSingletonScore< UnaryFunction > class."""
15852 
15853  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15854  __repr__ = _swig_repr
15855 
15856  def __init__(self, f, bb):
15857  r"""__init__(BoundingBox3DSingletonScore self, UnaryFunction f, BoundingBox3D bb) -> BoundingBox3DSingletonScore"""
15858  _IMP_core.BoundingBox3DSingletonScore_swiginit(self, _IMP_core.new_BoundingBox3DSingletonScore(f, bb))
15859 
15860  def do_get_inputs(self, m, pis):
15861  r"""do_get_inputs(BoundingBox3DSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15862  return _IMP_core.BoundingBox3DSingletonScore_do_get_inputs(self, m, pis)
15863 
15864  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
15865  r"""evaluate_indexes(BoundingBox3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
15866  return _IMP_core.BoundingBox3DSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
15867 
15868  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
15869  r"""evaluate_indexes_scores(BoundingBox3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
15870  return _IMP_core.BoundingBox3DSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
15871 
15872  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
15873  r"""evaluate_indexes_delta(BoundingBox3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
15874  return _IMP_core.BoundingBox3DSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
15875 
15876  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
15877  r"""evaluate_if_good_indexes(BoundingBox3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
15878  return _IMP_core.BoundingBox3DSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
15879 
15880  def get_version_info(self):
15881  r"""get_version_info(BoundingBox3DSingletonScore self) -> VersionInfo"""
15882  return _IMP_core.BoundingBox3DSingletonScore_get_version_info(self)
15883  __swig_destroy__ = _IMP_core.delete_BoundingBox3DSingletonScore
15884 
15885 # Register BoundingBox3DSingletonScore in _IMP_core:
15886 _IMP_core.BoundingBox3DSingletonScore_swigregister(BoundingBox3DSingletonScore)
15887 
15888 def create_bounding_box_3d_singleton_score(f, bb):
15889  r"""create_bounding_box_3d_singleton_score(UnaryFunction f, BoundingBox3D bb) -> BoundingBox3DSingletonScore"""
15890  return _IMP_core.create_bounding_box_3d_singleton_score(f, bb)
15892  r"""Proxy of C++ IMP::core::GenericBoundingSphere3DSingletonScore< UnaryFunction > class."""
15893 
15894  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15895  __repr__ = _swig_repr
15896 
15897  def __init__(self, f, sphere):
15898  r"""__init__(BoundingSphere3DSingletonScore self, UnaryFunction f, Sphere3D sphere) -> BoundingSphere3DSingletonScore"""
15899  _IMP_core.BoundingSphere3DSingletonScore_swiginit(self, _IMP_core.new_BoundingSphere3DSingletonScore(f, sphere))
15900 
15901  def do_get_inputs(self, m, pis):
15902  r"""do_get_inputs(BoundingSphere3DSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15903  return _IMP_core.BoundingSphere3DSingletonScore_do_get_inputs(self, m, pis)
15904 
15905  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
15906  r"""evaluate_indexes(BoundingSphere3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
15907  return _IMP_core.BoundingSphere3DSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
15908 
15909  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
15910  r"""evaluate_indexes_scores(BoundingSphere3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
15911  return _IMP_core.BoundingSphere3DSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
15912 
15913  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
15914  r"""evaluate_indexes_delta(BoundingSphere3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
15915  return _IMP_core.BoundingSphere3DSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
15916 
15917  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
15918  r"""evaluate_if_good_indexes(BoundingSphere3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
15919  return _IMP_core.BoundingSphere3DSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
15920 
15921  def get_version_info(self):
15922  r"""get_version_info(BoundingSphere3DSingletonScore self) -> VersionInfo"""
15923  return _IMP_core.BoundingSphere3DSingletonScore_get_version_info(self)
15924  __swig_destroy__ = _IMP_core.delete_BoundingSphere3DSingletonScore
15925 
15926 # Register BoundingSphere3DSingletonScore in _IMP_core:
15927 _IMP_core.BoundingSphere3DSingletonScore_swigregister(BoundingSphere3DSingletonScore)
15928 
15929 def create_bounding_sphere_3d_singleton_score(f, sphere):
15930  r"""create_bounding_sphere_3d_singleton_score(UnaryFunction f, Sphere3D sphere) -> BoundingSphere3DSingletonScore"""
15931  return _IMP_core.create_bounding_sphere_3d_singleton_score(f, sphere)
15933  r"""Proxy of C++ IMP::core::GenericDistanceToSingletonScore< UnaryFunction > class."""
15934 
15935  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15936  __repr__ = _swig_repr
15937 
15938  def __init__(self, *args):
15939  r"""
15940  __init__(DistanceToSingletonScore self, UnaryFunction f, Vector3D pt) -> DistanceToSingletonScore
15941  __init__(DistanceToSingletonScore self) -> DistanceToSingletonScore
15942  """
15943  _IMP_core.DistanceToSingletonScore_swiginit(self, _IMP_core.new_DistanceToSingletonScore(*args))
15944 
15945  def do_get_inputs(self, m, pis):
15946  r"""do_get_inputs(DistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15947  return _IMP_core.DistanceToSingletonScore_do_get_inputs(self, m, pis)
15948 
15949  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
15950  r"""evaluate_indexes(DistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
15951  return _IMP_core.DistanceToSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
15952 
15953  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
15954  r"""evaluate_indexes_scores(DistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
15955  return _IMP_core.DistanceToSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
15956 
15957  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
15958  r"""evaluate_indexes_delta(DistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
15959  return _IMP_core.DistanceToSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
15960 
15961  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
15962  r"""evaluate_if_good_indexes(DistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
15963  return _IMP_core.DistanceToSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
15964 
15965  def get_version_info(self):
15966  r"""get_version_info(DistanceToSingletonScore self) -> VersionInfo"""
15967  return _IMP_core.DistanceToSingletonScore_get_version_info(self)
15968  __swig_destroy__ = _IMP_core.delete_DistanceToSingletonScore
15969 
15970  def _get_as_binary(self):
15971  r"""_get_as_binary(DistanceToSingletonScore self) -> PyObject *"""
15972  return _IMP_core.DistanceToSingletonScore__get_as_binary(self)
15973 
15974  def _set_from_binary(self, p):
15975  r"""_set_from_binary(DistanceToSingletonScore self, PyObject * p)"""
15976  return _IMP_core.DistanceToSingletonScore__set_from_binary(self, p)
15977 
15978  def __getstate__(self):
15979  p = self._get_as_binary()
15980  if len(self.__dict__) > 1:
15981  d = self.__dict__.copy()
15982  del d['this']
15983  p = (d, p)
15984  return p
15985 
15986  def __setstate__(self, p):
15987  if not hasattr(self, 'this'):
15988  self.__init__()
15989  if isinstance(p, tuple):
15990  d, p = p
15991  self.__dict__.update(d)
15992  return self._set_from_binary(p)
15993 
15994 
15995 # Register DistanceToSingletonScore in _IMP_core:
15996 _IMP_core.DistanceToSingletonScore_swigregister(DistanceToSingletonScore)
15997 
15998 def create_distance_to_singleton_score(f, pt):
15999  r"""create_distance_to_singleton_score(UnaryFunction f, Vector3D pt) -> DistanceToSingletonScore"""
16000  return _IMP_core.create_distance_to_singleton_score(f, pt)
16001 
16002 class SphereDistancePairScore(_SphereDistancePairScore.__bases__[0]):
16003  def __init__(self, uf):
16004  if isinstance(uf, HarmonicUpperBound):
16005  p = HarmonicUpperBoundSphereDistancePairScore(
16006  uf.get_mean(), uf.get_k())
16007  elif isinstance(uf, HarmonicLowerBound):
16008  if uf.get_mean() == 0.0:
16009  p = SoftSpherePairScore(uf.get_k())
16010  else:
16011  p = _SphereDistancePairScore(uf)
16012  elif isinstance(uf, Harmonic):
16013  p = HarmonicSphereDistancePairScore(
16014  uf.get_mean(), uf.get_k())
16015  else:
16016  p = _SphereDistancePairScore(uf)
16017  self.__dict__['_proxied'] = p
16018  def __getattr__(self, key):
16019  return getattr(self._proxied, key)
16020  def __setattr__(self, key, val):
16021  return setattr(self._proxied, key, val)
16022 
16023  def __getstate__(self):
16024  return self.__dict__['_proxied']
16025 
16026  def __setstate__(self, p):
16027  self.__dict__['_proxied'] = p
16028 
16029  @staticmethod
16030  def get_from(o):
16031  try:
16032  p = HarmonicUpperBoundSphereDistancePairScore.get_from(o)
16033  except ValueError:
16034  try:
16035  p = HarmonicSphereDistancePairScore.get_from(o)
16036  except ValueError:
16037  try:
16038  p = SoftSpherePairScore.get_from(o)
16039  except ValueError:
16040  p = _SphereDistancePairScore.get_from(o)
16041  obj = object.__new__(SphereDistancePairScore)
16042  obj.__dict__['_proxied'] = p
16043  return obj
16044 
16045 
16046 
16047 def get_all_provenance(p, types=[StructureProvenance, SampleProvenance,
16048  CombineProvenance, FilterProvenance,
16049  ClusterProvenance, ScriptProvenance,
16050  SoftwareProvenance]):
16051  """Yield all provenance decorators of the given types for the particle.
16052  By default, all provenance types are returned. Provenance is returned
16053  in order, most recent first. If the particle has no provenance
16054  information, an empty generator is returned."""
16055  if Provenanced.get_is_setup(p):
16056  prov = Provenanced(p).get_provenance()
16057  while prov:
16058  for c in types:
16059  if c.get_is_setup(prov):
16060  yield c(prov)
16061  prov = prov.get_previous()
16062 
16064  """Tag the given particle with the current Python script.
16065  This is a noop if the particle is already so tagged."""
16066  main = sys.modules['__main__']
16067 # Can't do anything if running from an interactive interpreter
16068  if not hasattr(main, '__file__'):
16069  return
16070  f = IMP.get_absolute_path(main.__file__)
16071  for prov in get_all_provenance(p, types=[ScriptProvenance]):
16072  if prov.get_filename() == f:
16073  return
16074  m = p.get_model()
16075  provp = IMP.Particle(m)
16076  provp.set_name('script')
16077  prov = ScriptProvenance.setup_particle(provp, f)
16078  add_provenance(m, p, prov)
16079 
16080 def add_software_provenance(p, name, version, location):
16081  """Tag the given particle with the software used to create it.
16082  This is a noop if the particle is already so tagged."""
16083  for prov in get_all_provenance(p, types=[SoftwareProvenance]):
16084  if prov.get_software_name() == name and prov.get_version() == version \
16085  and prov.get_location() == location:
16086  return
16087  m = p.get_model()
16088  provp = IMP.Particle(m)
16089  provp.set_name('software')
16090  prov = SoftwareProvenance.setup_particle(provp, name, version, location)
16091  add_provenance(m, p, prov)
16092 
16094  """Tag the given particle as being created by the current version of IMP."""
16095  add_software_provenance(p, name="Integrative Modeling Platform (IMP)",
16096  version=IMP.get_module_version(),
16097  location="https://integrativemodeling.org")
16098 
16099 
16100 def get_module_name():
16101  r"""get_module_name() -> std::string const"""
16102  return _IMP_core.get_module_name()
16103 
16104 def get_module_version():
16105  r"""get_module_version() -> std::string const"""
16106  return _IMP_core.get_module_version()
16107 
16108 def get_example_path(fname):
16109  r"""get_example_path(std::string fname) -> std::string"""
16110  return _IMP_core.get_example_path(fname)
16111 
16112 def get_data_path(fname):
16113  r"""get_data_path(std::string fname) -> std::string"""
16114  return _IMP_core.get_data_path(fname)
16115 
16116 from . import _version_check
16117 _version_check.check_version(get_module_version())
16118 __version__ = get_module_version()
16119 
16120 
F visit_breadth_first(HD d, F f)
Apply the visitor to each particle, breadth first.
A base class for geometry contained in particles.
A base class for modifiers of ParticlesTemp.
GenericDistanceToSingletonScore< UnaryFunction > DistanceToSingletonScore
double get_kt(double T)
Return kT for a given temperature in units of [kcal/mol].
Abstract class for scoring object(s) of type ParticleIndexPair.
Definition: PairScore.h:44
double get_height(const Surface &s, const XYZR &d)
Get height of sphere above surface.
Definition: Surface.h:129
algebra::Transformation3D get_transformation_aligning_first_to_second(XYZsOrVector3ds a, XYZsOrVector3ds b)
double get_mean(const cv::Mat &mat, const cvIntMat &mask)
CheckLevel get_check_level()
Get the current audit mode.
Definition: exception.h:80
def add_script_provenance
Tag the given particle with the current Python script.
GenericBoundingSphere3DSingletonScore< UnaryFunction > BoundingSphere3DSingletonScore
Abstract predicate function.
Definition: QuadPredicate.h:31
Restraint * create_restraint(Score *s, const typename Score::Argument &t, std::string name=std::string())
Definition: generic.h:36
ParticleIndex get_root_rigid_body(RigidMember m)
Return the index of the outer-most rigid body containing the member.
algebra::ReferenceFrame3D get_initial_reference_frame(Model *m, const ParticleIndexes &pis)
The base class for geometry.
F visit_depth_first(HD d, F &f)
Apply functor F to each particle, traversing the hierarchy depth first.
XYZRs create_xyzr_particles(Model *m, unsigned int num, Float radius, Float box_side=10)
Create a set of particles with random coordinates.
A base class for geometry contained in particles.
double get_angle(Direction a, Direction b)
Get angle between directions.
A base class for geometry from a set of particles.
double get_dihedral(XYZ a, XYZ b, XYZ c, XYZ d)
Compute the dihedral angle (in radians) between the four particles.
Make CGAL functionality available to IMP.
Provenance create_clone(Provenance p)
Clone provenance (including previous provenance)
ParticlesTemp create_rigid_bodies(Model *m, unsigned int n, bool no_members=false)
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
void add_rigid_body_cache_key(ObjectKey k)
Base class for all samplers.
Definition: Sampler.h:31
Key< 34897493 > ParticleType
An IMP::Key object for identifying types of particles by strings.
Definition: Typed.h:28
algebra::Vector3D get_centroid(const XYZs &ps)
Get the centroid.
void add_particle(RMF::FileHandle fh, Particle *hs)
GenericHierarchies get_leaves(Hierarchy mhd)
Get all the leaves of the bit of hierarchy.
Composable functors to implement scores via compile-time composition.
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
GenericHierarchies get_all_descendants(Hierarchy mhd)
Get all the particles in the subtree.
A base class for geometry from a set of particles.
def add_imp_provenance
Tag the given particle as being created by the current version of IMP.
display::Geometries create_blame_geometries(const RestraintsTemp &rs, const ParticlesTemp &ps, double max=NO_MAX, std::string name=std::string())
void show_rigid_body_hierarchy(RigidBody rb, TextOutput out=TextOutput(std::cout))
Implement a constraint on the Model.
Definition: Constraint.h:49
void add_restraint(RMF::FileHandle fh, Restraint *hs)
def add_software_provenance
Tag the given particle with the software used to create it.
Base class for objects in a Model that depend on other objects.
Definition: ModelObject.h:28
Abstract predicate function.
Ints get_index(const ParticlesTemp &particles, const Subset &subset, const Subsets &excluded)
Common base class for heavy weight IMP objects.
Definition: Object.h:111
int get_number_of_frames(const ::npctransport_proto::Assignment &config, double time_step)
Abstract class for scoring object(s) of type ParticleIndex.
ScoreStates maintain invariants in the Model.
Definition: ScoreState.h:56
Base class for all optimizers.
Definition: Optimizer.h:48
GenericAttributeSingletonScore< UnaryFunction > AttributeSingletonScore
SurfaceGeometry * create_geometry(const Surface s, std::string name=std::string("SurfaceGeometry%1%"))
Create a geometry from a Surface.
Definition: Surface.h:191
void add_restraints(RMF::FileHandle fh, const Restraints &hs)
algebra::BoundingBoxD< 3 > get_bounding_box(const XYZRs &ps)
Get the bounding box.
const algebra::Vector3D & get_vector_geometry(XYZ d)
Definition: XYZ.h:135
GenericHierarchies get_internal(Hierarchy mhd)
Get all the non-leaves of the bit of hierarchy.
Interface to specialized Particle types (e.g. atoms)
Definition: Decorator.h:119
std::ostream & show(Hierarchy h, std::ostream &out=std::cout)
Print the hierarchy using a given decorator to display each node.
std::string get_absolute_path(std::string file)
Convert a possibly relative path to an absolute path.
algebra::Sphere3D get_enclosing_sphere(const XYZs &v)
Get a sphere enclosing the set of XYZRs.
Base class for optimizers that act on individual attributes.
SurfaceGeometry * get_constrained_surface_geometry(const Surface s, std::string name="SurfaceGeometry%1%")
Get surface geometry constrained to the surface.
Definition: Surface.h:236
Abstract predicate function.
Definition: PairPredicate.h:31
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
Represents a scoring function on the model.
void set_vector_geometry(XYZ d, const algebra::Vector3D &v)
Definition: XYZ.h:131
Shared optimizer state that is invoked upon commitment of new coordinates.
Hierarchy get_root(Hierarchy h)
Return the root of the hierarchy.
Abstract predicate function.
GenericBoundingBox3DSingletonScore< UnaryFunction > BoundingBox3DSingletonScore
Abstract class to implement hierarchical methods.
Definition: Refiner.h:34
double get_depth(const Surface &s, const XYZR &d)
Get depth of sphere below surface.
Definition: Surface.h:143
void set_enclosing_radius(XYZR b, const XYZs &v)
Set the radius of the first to enclose the list.
Class to handle individual particles of a Model object.
Definition: Particle.h:43
GenericAttributeSingletonScore< UF > * create_generic_attribute_singleton_score(UF *uf, FloatKey k)
void transform(RigidBody a, const algebra::Transformation3D &tr)
Transform a rigid body.
Definition: rigid_bodies.h:882
void assign_blame(const RestraintsTemp &rs, const ParticlesTemp &ps, FloatKey attribute)
std::string get_module_version()
Return the version of this module, as a string.
TruncatedHarmonic< BOTH > TruncatedHarmonicBound
TruncatedHarmonic< UPPER > TruncatedHarmonicUpperBound
BallMover
Definition: BallMover.py:1
Output IMP model data in various file formats.
std::string get_chain_id(Hierarchy h)
Walk up the hierarchy to determine the chain id.
def get_all_provenance
Yield all provenance decorators of the given types for the particle.
Abstract class for scoring object(s) of type ParticleIndexTriplet.
Definition: TripletScore.h:44
void add_provenance(Model *m, ParticleIndex pi, Provenance p)
Add provenance to part of the model.
Tag part of the system to track how it was created.
Definition: provenance.h:632
double get_distance(const Surface &s, const XYZR &d)
Get distance from sphere to surface.
Definition: Surface.h:153
ParticleIndexes get_indexes(const ParticlesTemp &ps)
Get the indexes from a list of particles.
Abstract single variable functor class for score functions.
Definition: UnaryFunction.h:27
void set_enclosing_sphere(XYZR b, const XYZs &v, double slack=0)
Set the coordinates and radius of the first to enclose the list.
TruncatedHarmonic< LOWER > TruncatedHarmonicLowerBound
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
Definition: exception.h:72
std::string get_module_version()
Return the version of this module, as a string.
A restraint is a term in an IMP ScoringFunction.
Definition: Restraint.h:56