IMP logo
IMP Reference Guide  develop.0cdeb1214d,2025/11/22
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_x0(self):
5851  r"""get_x0(HarmonicDistancePairScore self) -> double"""
5852  return _IMP_core.HarmonicDistancePairScore_get_x0(self)
5853 
5854  def get_k(self):
5855  r"""get_k(HarmonicDistancePairScore self) -> double"""
5856  return _IMP_core.HarmonicDistancePairScore_get_k(self)
5857 
5858  def get_version_info(self):
5859  r"""get_version_info(HarmonicDistancePairScore self) -> VersionInfo"""
5860  return _IMP_core.HarmonicDistancePairScore_get_version_info(self)
5861  __swig_destroy__ = _IMP_core.delete_HarmonicDistancePairScore
5862 
5863  def __str__(self):
5864  r"""__str__(HarmonicDistancePairScore self) -> std::string"""
5865  return _IMP_core.HarmonicDistancePairScore___str__(self)
5866 
5867  def __repr__(self):
5868  r"""__repr__(HarmonicDistancePairScore self) -> std::string"""
5869  return _IMP_core.HarmonicDistancePairScore___repr__(self)
5870 
5871  @staticmethod
5872  def get_from(o):
5873  return _object_cast_to_HarmonicDistancePairScore(o)
5874 
5875 
5876  def _get_as_binary(self):
5877  r"""_get_as_binary(HarmonicDistancePairScore self) -> PyObject *"""
5878  return _IMP_core.HarmonicDistancePairScore__get_as_binary(self)
5879 
5880  def _set_from_binary(self, p):
5881  r"""_set_from_binary(HarmonicDistancePairScore self, PyObject * p)"""
5882  return _IMP_core.HarmonicDistancePairScore__set_from_binary(self, p)
5883 
5884  def __getstate__(self):
5885  p = self._get_as_binary()
5886  if len(self.__dict__) > 1:
5887  d = self.__dict__.copy()
5888  del d['this']
5889  p = (d, p)
5890  return p
5891 
5892  def __setstate__(self, p):
5893  if not hasattr(self, 'this'):
5894  self.__init__()
5895  if isinstance(p, tuple):
5896  d, p = p
5897  self.__dict__.update(d)
5898  return self._set_from_binary(p)
5899 
5900 
5901  def _get_jax(self):
5902  import jax.numpy as jnp
5903  import functools
5904  from IMP._jax_util import JaxInfo
5905  def jax_harmonic_distance_pair_score(X, indexes, d, k):
5906  xyzs = X['xyz'][indexes]
5907  diff = xyzs[:,0] - xyzs[:,1]
5908  drs = jnp.linalg.norm(diff, axis=1)
5909  return 0.5 * k * (d - drs)**2
5910  f = functools.partial(jax_harmonic_distance_pair_score,
5911  d=self.get_x0(), k=self.get_k())
5912  return JaxInfo(m=None, score_func=f, weight=1.0)
5913 
5914 
5915 # Register HarmonicDistancePairScore in _IMP_core:
5916 _IMP_core.HarmonicDistancePairScore_swigregister(HarmonicDistancePairScore)
5917 class DistanceRestraint(IMP.Restraint):
5918  r"""Proxy of C++ IMP::core::DistanceRestraint class."""
5919 
5920  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5921 
5922  def __init__(self, *args):
5923  r"""
5924  __init__(DistanceRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor a, _ParticleIndexAdaptor b, std::string name="DistanceRestraint %1%") -> DistanceRestraint
5925  __init__(DistanceRestraint self) -> DistanceRestraint
5926  """
5927  _IMP_core.DistanceRestraint_swiginit(self, _IMP_core.new_DistanceRestraint(*args))
5928 
5929  def get_version_info(self):
5930  r"""get_version_info(DistanceRestraint self) -> VersionInfo"""
5931  return _IMP_core.DistanceRestraint_get_version_info(self)
5932  __swig_destroy__ = _IMP_core.delete_DistanceRestraint
5933 
5934  def __str__(self):
5935  r"""__str__(DistanceRestraint self) -> std::string"""
5936  return _IMP_core.DistanceRestraint___str__(self)
5937 
5938  def __repr__(self):
5939  r"""__repr__(DistanceRestraint self) -> std::string"""
5940  return _IMP_core.DistanceRestraint___repr__(self)
5941 
5942  @staticmethod
5943  def get_from(o):
5944  return _object_cast_to_DistanceRestraint(o)
5945 
5946 
5947  def _get_as_binary(self):
5948  r"""_get_as_binary(DistanceRestraint self) -> PyObject *"""
5949  return _IMP_core.DistanceRestraint__get_as_binary(self)
5950 
5951  def _set_from_binary(self, p):
5952  r"""_set_from_binary(DistanceRestraint self, PyObject * p)"""
5953  return _IMP_core.DistanceRestraint__set_from_binary(self, p)
5954 
5955  def __getstate__(self):
5956  p = self._get_as_binary()
5957  if len(self.__dict__) > 1:
5958  d = self.__dict__.copy()
5959  del d['this']
5960  p = (d, p)
5961  return p
5962 
5963  def __setstate__(self, p):
5964  if not hasattr(self, 'this'):
5965  self.__init__()
5966  if isinstance(p, tuple):
5967  d, p = p
5968  self.__dict__.update(d)
5969  return self._set_from_binary(p)
5970 
5971 
5972 # Register DistanceRestraint in _IMP_core:
5973 _IMP_core.DistanceRestraint_swigregister(DistanceRestraint)
5974 class SphereDistanceToSingletonScore(IMP.SingletonScore):
5975  r"""Proxy of C++ IMP::core::SphereDistanceToSingletonScore class."""
5976 
5977  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5978 
5979  def __init__(self, f, pt):
5980  r"""__init__(SphereDistanceToSingletonScore self, UnaryFunction f, Vector3D pt) -> SphereDistanceToSingletonScore"""
5981  _IMP_core.SphereDistanceToSingletonScore_swiginit(self, _IMP_core.new_SphereDistanceToSingletonScore(f, pt))
5982 
5983  def do_get_inputs(self, m, pis):
5984  r"""do_get_inputs(SphereDistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5985  return _IMP_core.SphereDistanceToSingletonScore_do_get_inputs(self, m, pis)
5986 
5987  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
5988  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"""
5989  return _IMP_core.SphereDistanceToSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
5990 
5991  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
5992  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"""
5993  return _IMP_core.SphereDistanceToSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
5994 
5995  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
5996  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"""
5997  return _IMP_core.SphereDistanceToSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
5998 
5999  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
6000  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"""
6001  return _IMP_core.SphereDistanceToSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
6002 
6003  def get_version_info(self):
6004  r"""get_version_info(SphereDistanceToSingletonScore self) -> VersionInfo"""
6005  return _IMP_core.SphereDistanceToSingletonScore_get_version_info(self)
6006  __swig_destroy__ = _IMP_core.delete_SphereDistanceToSingletonScore
6007 
6008  def __str__(self):
6009  r"""__str__(SphereDistanceToSingletonScore self) -> std::string"""
6010  return _IMP_core.SphereDistanceToSingletonScore___str__(self)
6011 
6012  def __repr__(self):
6013  r"""__repr__(SphereDistanceToSingletonScore self) -> std::string"""
6014  return _IMP_core.SphereDistanceToSingletonScore___repr__(self)
6015 
6016  @staticmethod
6017  def get_from(o):
6018  return _object_cast_to_SphereDistanceToSingletonScore(o)
6019 
6020 
6021 # Register SphereDistanceToSingletonScore in _IMP_core:
6022 _IMP_core.SphereDistanceToSingletonScore_swigregister(SphereDistanceToSingletonScore)
6023 class ExcludedVolumeRestraint(IMP.Restraint):
6024  r"""Proxy of C++ IMP::core::ExcludedVolumeRestraint class."""
6025 
6026  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6027 
6028  def __init__(self, *args):
6029  r"""__init__(ExcludedVolumeRestraint self, _SingletonContainerAdaptor sc, double k=1, double slack=10, std::string name="ExcludedVolumeRestraint%1%") -> ExcludedVolumeRestraint"""
6030  _IMP_core.ExcludedVolumeRestraint_swiginit(self, _IMP_core.new_ExcludedVolumeRestraint(*args))
6031 
6032  def do_get_inputs(self):
6033  r"""do_get_inputs(ExcludedVolumeRestraint self) -> IMP::ModelObjectsTemp"""
6034  return _IMP_core.ExcludedVolumeRestraint_do_get_inputs(self)
6035 
6036  def get_version_info(self):
6037  r"""get_version_info(ExcludedVolumeRestraint self) -> VersionInfo"""
6038  return _IMP_core.ExcludedVolumeRestraint_get_version_info(self)
6039  __swig_destroy__ = _IMP_core.delete_ExcludedVolumeRestraint
6040 
6041  def do_create_decomposition(self):
6042  r"""do_create_decomposition(ExcludedVolumeRestraint self) -> IMP::Restraints"""
6043  return _IMP_core.ExcludedVolumeRestraint_do_create_decomposition(self)
6044 
6045  def do_create_current_decomposition(self):
6046  r"""do_create_current_decomposition(ExcludedVolumeRestraint self) -> IMP::Restraints"""
6047  return _IMP_core.ExcludedVolumeRestraint_do_create_current_decomposition(self)
6048 
6049  def get_indexes(self):
6050  r"""get_indexes(ExcludedVolumeRestraint self) -> IMP::ParticleIndexPairs const &"""
6051  return _IMP_core.ExcludedVolumeRestraint_get_indexes(self)
6052  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)
6053  def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
6054  def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
6055  pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc="List of ##ucnames")
6056 
6057  def remove_pair_filter(self, d):
6058  r"""remove_pair_filter(ExcludedVolumeRestraint self, PairPredicate d)"""
6059  return _IMP_core.ExcludedVolumeRestraint_remove_pair_filter(self, d)
6060 
6061  def _python_index_pair_filter(self, d, start, stop):
6062  r"""_python_index_pair_filter(ExcludedVolumeRestraint self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
6063  return _IMP_core.ExcludedVolumeRestraint__python_index_pair_filter(self, d, start, stop)
6064 
6065  def remove_pair_filters(self, d):
6066  r"""remove_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & d)"""
6067  return _IMP_core.ExcludedVolumeRestraint_remove_pair_filters(self, d)
6068 
6069  def set_pair_filters(self, ps):
6070  r"""set_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & ps)"""
6071  return _IMP_core.ExcludedVolumeRestraint_set_pair_filters(self, ps)
6072 
6073  def set_pair_filters_order(self, objs):
6074  r"""set_pair_filters_order(ExcludedVolumeRestraint self, IMP::PairPredicates const & objs)"""
6075  return _IMP_core.ExcludedVolumeRestraint_set_pair_filters_order(self, objs)
6076 
6077  def add_pair_filter(self, obj):
6078  r"""add_pair_filter(ExcludedVolumeRestraint self, PairPredicate obj) -> unsigned int"""
6079  return _IMP_core.ExcludedVolumeRestraint_add_pair_filter(self, obj)
6080 
6081  def add_pair_filters(self, objs):
6082  r"""add_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & objs)"""
6083  return _IMP_core.ExcludedVolumeRestraint_add_pair_filters(self, objs)
6084 
6085  def clear_pair_filters(self):
6086  r"""clear_pair_filters(ExcludedVolumeRestraint self)"""
6087  return _IMP_core.ExcludedVolumeRestraint_clear_pair_filters(self)
6088 
6089  def get_number_of_pair_filters(self):
6090  r"""get_number_of_pair_filters(ExcludedVolumeRestraint self) -> unsigned int"""
6091  return _IMP_core.ExcludedVolumeRestraint_get_number_of_pair_filters(self)
6092 
6093  def get_has_pair_filters(self):
6094  r"""get_has_pair_filters(ExcludedVolumeRestraint self) -> bool"""
6095  return _IMP_core.ExcludedVolumeRestraint_get_has_pair_filters(self)
6096 
6097  def get_pair_filter(self, i):
6098  r"""get_pair_filter(ExcludedVolumeRestraint self, unsigned int i) -> PairPredicate"""
6099  return _IMP_core.ExcludedVolumeRestraint_get_pair_filter(self, i)
6100 
6101  def get_pair_filters(self):
6102  r"""get_pair_filters(ExcludedVolumeRestraint self) -> IMP::PairPredicates"""
6103  return _IMP_core.ExcludedVolumeRestraint_get_pair_filters(self)
6104 
6105  def erase_pair_filter(self, i):
6106  r"""erase_pair_filter(ExcludedVolumeRestraint self, unsigned int i)"""
6107  return _IMP_core.ExcludedVolumeRestraint_erase_pair_filter(self, i)
6108 
6109  def reserve_pair_filters(self, sz):
6110  r"""reserve_pair_filters(ExcludedVolumeRestraint self, unsigned int sz)"""
6111  return _IMP_core.ExcludedVolumeRestraint_reserve_pair_filters(self, sz)
6112 
6113  def __str__(self):
6114  r"""__str__(ExcludedVolumeRestraint self) -> std::string"""
6115  return _IMP_core.ExcludedVolumeRestraint___str__(self)
6116 
6117  def __repr__(self):
6118  r"""__repr__(ExcludedVolumeRestraint self) -> std::string"""
6119  return _IMP_core.ExcludedVolumeRestraint___repr__(self)
6120 
6121  @staticmethod
6122  def get_from(o):
6123  return _object_cast_to_ExcludedVolumeRestraint(o)
6124 
6125 
6126 # Register ExcludedVolumeRestraint in _IMP_core:
6127 _IMP_core.ExcludedVolumeRestraint_swigregister(ExcludedVolumeRestraint)
6128 class FixedRefiner(IMP.Refiner):
6129  r"""Proxy of C++ IMP::core::FixedRefiner class."""
6130 
6131  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6132 
6133  def __init__(self, *args):
6134  r"""
6135  __init__(FixedRefiner self, IMP::ParticlesTemp const & ps) -> FixedRefiner
6136  __init__(FixedRefiner self, Model m, IMP::ParticleIndexes const & pis) -> FixedRefiner
6137  """
6138  _IMP_core.FixedRefiner_swiginit(self, _IMP_core.new_FixedRefiner(*args))
6139 
6140  def do_get_inputs(self, m, pis):
6141  r"""do_get_inputs(FixedRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6142  return _IMP_core.FixedRefiner_do_get_inputs(self, m, pis)
6143 
6144  def get_version_info(self):
6145  r"""get_version_info(FixedRefiner self) -> VersionInfo"""
6146  return _IMP_core.FixedRefiner_get_version_info(self)
6147  __swig_destroy__ = _IMP_core.delete_FixedRefiner
6148 
6149  def __str__(self):
6150  r"""__str__(FixedRefiner self) -> std::string"""
6151  return _IMP_core.FixedRefiner___str__(self)
6152 
6153  def __repr__(self):
6154  r"""__repr__(FixedRefiner self) -> std::string"""
6155  return _IMP_core.FixedRefiner___repr__(self)
6156 
6157  @staticmethod
6158  def get_from(o):
6159  return _object_cast_to_FixedRefiner(o)
6160 
6161 
6162 # Register FixedRefiner in _IMP_core:
6163 _IMP_core.FixedRefiner_swigregister(FixedRefiner)
6164 class GridClosePairsFinder(ClosePairsFinder):
6165  r"""Proxy of C++ IMP::core::GridClosePairsFinder class."""
6166 
6167  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6168 
6169  def __init__(self):
6170  r"""__init__(GridClosePairsFinder self) -> GridClosePairsFinder"""
6171  _IMP_core.GridClosePairsFinder_swiginit(self, _IMP_core.new_GridClosePairsFinder())
6172 
6173  def get_close_pairs(self, *args):
6174  r"""
6175  get_close_pairs(GridClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
6176  get_close_pairs(GridClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
6177  get_close_pairs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
6178  get_close_pairs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
6179  """
6180  return _IMP_core.GridClosePairsFinder_get_close_pairs(self, *args)
6181 
6182  def do_get_inputs(self, m, pis):
6183  r"""do_get_inputs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6184  return _IMP_core.GridClosePairsFinder_do_get_inputs(self, m, pis)
6185 
6186  def get_version_info(self):
6187  r"""get_version_info(GridClosePairsFinder self) -> VersionInfo"""
6188  return _IMP_core.GridClosePairsFinder_get_version_info(self)
6189  __swig_destroy__ = _IMP_core.delete_GridClosePairsFinder
6190 
6191  def __str__(self):
6192  r"""__str__(GridClosePairsFinder self) -> std::string"""
6193  return _IMP_core.GridClosePairsFinder___str__(self)
6194 
6195  def __repr__(self):
6196  r"""__repr__(GridClosePairsFinder self) -> std::string"""
6197  return _IMP_core.GridClosePairsFinder___repr__(self)
6198 
6199  @staticmethod
6200  def get_from(o):
6201  return _object_cast_to_GridClosePairsFinder(o)
6202 
6203 
6204  def _get_as_binary(self):
6205  r"""_get_as_binary(GridClosePairsFinder self) -> PyObject *"""
6206  return _IMP_core.GridClosePairsFinder__get_as_binary(self)
6207 
6208  def _set_from_binary(self, p):
6209  r"""_set_from_binary(GridClosePairsFinder self, PyObject * p)"""
6210  return _IMP_core.GridClosePairsFinder__set_from_binary(self, p)
6211 
6212  def __getstate__(self):
6213  p = self._get_as_binary()
6214  if len(self.__dict__) > 1:
6215  d = self.__dict__.copy()
6216  del d['this']
6217  p = (d, p)
6218  return p
6219 
6220  def __setstate__(self, p):
6221  if not hasattr(self, 'this'):
6222  self.__init__()
6223  if isinstance(p, tuple):
6224  d, p = p
6225  self.__dict__.update(d)
6226  return self._set_from_binary(p)
6227 
6228 
6229 # Register GridClosePairsFinder in _IMP_core:
6230 _IMP_core.GridClosePairsFinder_swigregister(GridClosePairsFinder)
6231 class Harmonic(IMP.UnaryFunction):
6232  r"""Proxy of C++ IMP::core::Harmonic class."""
6233 
6234  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6235 
6236  def __init__(self, *args):
6237  r"""
6238  __init__(Harmonic self, IMP::Float mean, IMP::Float k) -> Harmonic
6239  __init__(Harmonic self) -> Harmonic
6240  """
6241  _IMP_core.Harmonic_swiginit(self, _IMP_core.new_Harmonic(*args))
6242 
6243  def get_version_info(self):
6244  r"""get_version_info(Harmonic self) -> VersionInfo"""
6245  return _IMP_core.Harmonic_get_version_info(self)
6246  __swig_destroy__ = _IMP_core.delete_Harmonic
6247 
6248  def get_mean(self):
6249  r"""get_mean(Harmonic self) -> IMP::Float"""
6250  return _IMP_core.Harmonic_get_mean(self)
6251 
6252  def get_k(self):
6253  r"""get_k(Harmonic self) -> IMP::Float"""
6254  return _IMP_core.Harmonic_get_k(self)
6255 
6256  def set_mean(self, mean):
6257  r"""set_mean(Harmonic self, IMP::Float mean)"""
6258  return _IMP_core.Harmonic_set_mean(self, mean)
6259 
6260  def set_k(self, k):
6261  r"""set_k(Harmonic self, IMP::Float k)"""
6262  return _IMP_core.Harmonic_set_k(self, k)
6263 
6264  @staticmethod
6265  def get_k_from_standard_deviation(sd, t=297.15):
6266  r"""get_k_from_standard_deviation(IMP::Float sd, IMP::Float t=297.15) -> IMP::Float"""
6267  return _IMP_core.Harmonic_get_k_from_standard_deviation(sd, t)
6268 
6269  def __str__(self):
6270  r"""__str__(Harmonic self) -> std::string"""
6271  return _IMP_core.Harmonic___str__(self)
6272 
6273  def __repr__(self):
6274  r"""__repr__(Harmonic self) -> std::string"""
6275  return _IMP_core.Harmonic___repr__(self)
6276 
6277  @staticmethod
6278  def get_from(o):
6279  return _object_cast_to_Harmonic(o)
6280 
6281 
6282  def _get_as_binary(self):
6283  r"""_get_as_binary(Harmonic self) -> PyObject *"""
6284  return _IMP_core.Harmonic__get_as_binary(self)
6285 
6286  def _set_from_binary(self, p):
6287  r"""_set_from_binary(Harmonic self, PyObject * p)"""
6288  return _IMP_core.Harmonic__set_from_binary(self, p)
6289 
6290  def __getstate__(self):
6291  p = self._get_as_binary()
6292  if len(self.__dict__) > 1:
6293  d = self.__dict__.copy()
6294  del d['this']
6295  p = (d, p)
6296  return p
6297 
6298  def __setstate__(self, p):
6299  if not hasattr(self, 'this'):
6300  self.__init__()
6301  if isinstance(p, tuple):
6302  d, p = p
6303  self.__dict__.update(d)
6304  return self._set_from_binary(p)
6305 
6306 
6307 # Register Harmonic in _IMP_core:
6308 _IMP_core.Harmonic_swigregister(Harmonic)
6309 class HarmonicWell(IMP.UnaryFunction):
6310  r"""Proxy of C++ IMP::core::HarmonicWell class."""
6311 
6312  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6313 
6314  def __init__(self, well, k):
6315  r"""__init__(HarmonicWell self, IMP::FloatRange const & well, double k) -> HarmonicWell"""
6316  _IMP_core.HarmonicWell_swiginit(self, _IMP_core.new_HarmonicWell(well, k))
6317 
6318  def get_version_info(self):
6319  r"""get_version_info(HarmonicWell self) -> VersionInfo"""
6320  return _IMP_core.HarmonicWell_get_version_info(self)
6321  __swig_destroy__ = _IMP_core.delete_HarmonicWell
6322 
6323  def __str__(self):
6324  r"""__str__(HarmonicWell self) -> std::string"""
6325  return _IMP_core.HarmonicWell___str__(self)
6326 
6327  def __repr__(self):
6328  r"""__repr__(HarmonicWell self) -> std::string"""
6329  return _IMP_core.HarmonicWell___repr__(self)
6330 
6331  @staticmethod
6332  def get_from(o):
6333  return _object_cast_to_HarmonicWell(o)
6334 
6335 
6336 # Register HarmonicWell in _IMP_core:
6337 _IMP_core.HarmonicWell_swigregister(HarmonicWell)
6338 class HarmonicLowerBound(Harmonic):
6339  r"""Proxy of C++ IMP::core::HarmonicLowerBound class."""
6340 
6341  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6342 
6343  def __init__(self, *args):
6344  r"""
6345  __init__(HarmonicLowerBound self, IMP::Float mean, IMP::Float k) -> HarmonicLowerBound
6346  __init__(HarmonicLowerBound self) -> HarmonicLowerBound
6347  """
6348  _IMP_core.HarmonicLowerBound_swiginit(self, _IMP_core.new_HarmonicLowerBound(*args))
6349  __swig_destroy__ = _IMP_core.delete_HarmonicLowerBound
6350 
6351  def __str__(self):
6352  r"""__str__(HarmonicLowerBound self) -> std::string"""
6353  return _IMP_core.HarmonicLowerBound___str__(self)
6354 
6355  def __repr__(self):
6356  r"""__repr__(HarmonicLowerBound self) -> std::string"""
6357  return _IMP_core.HarmonicLowerBound___repr__(self)
6358 
6359  @staticmethod
6360  def get_from(o):
6361  return _object_cast_to_HarmonicLowerBound(o)
6362 
6363 
6364  def _get_as_binary(self):
6365  r"""_get_as_binary(HarmonicLowerBound self) -> PyObject *"""
6366  return _IMP_core.HarmonicLowerBound__get_as_binary(self)
6367 
6368  def _set_from_binary(self, p):
6369  r"""_set_from_binary(HarmonicLowerBound self, PyObject * p)"""
6370  return _IMP_core.HarmonicLowerBound__set_from_binary(self, p)
6371 
6372  def __getstate__(self):
6373  p = self._get_as_binary()
6374  if len(self.__dict__) > 1:
6375  d = self.__dict__.copy()
6376  del d['this']
6377  p = (d, p)
6378  return p
6379 
6380  def __setstate__(self, p):
6381  if not hasattr(self, 'this'):
6382  self.__init__()
6383  if isinstance(p, tuple):
6384  d, p = p
6385  self.__dict__.update(d)
6386  return self._set_from_binary(p)
6387 
6388 
6389 # Register HarmonicLowerBound in _IMP_core:
6390 _IMP_core.HarmonicLowerBound_swigregister(HarmonicLowerBound)
6391 class HarmonicUpperBound(Harmonic):
6392  r"""Proxy of C++ IMP::core::HarmonicUpperBound class."""
6393 
6394  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6395 
6396  def __init__(self, *args):
6397  r"""
6398  __init__(HarmonicUpperBound self, IMP::Float mean, IMP::Float k) -> HarmonicUpperBound
6399  __init__(HarmonicUpperBound self) -> HarmonicUpperBound
6400  """
6401  _IMP_core.HarmonicUpperBound_swiginit(self, _IMP_core.new_HarmonicUpperBound(*args))
6402  __swig_destroy__ = _IMP_core.delete_HarmonicUpperBound
6403 
6404  def __str__(self):
6405  r"""__str__(HarmonicUpperBound self) -> std::string"""
6406  return _IMP_core.HarmonicUpperBound___str__(self)
6407 
6408  def __repr__(self):
6409  r"""__repr__(HarmonicUpperBound self) -> std::string"""
6410  return _IMP_core.HarmonicUpperBound___repr__(self)
6411 
6412  @staticmethod
6413  def get_from(o):
6414  return _object_cast_to_HarmonicUpperBound(o)
6415 
6416 
6417  def _get_as_binary(self):
6418  r"""_get_as_binary(HarmonicUpperBound self) -> PyObject *"""
6419  return _IMP_core.HarmonicUpperBound__get_as_binary(self)
6420 
6421  def _set_from_binary(self, p):
6422  r"""_set_from_binary(HarmonicUpperBound self, PyObject * p)"""
6423  return _IMP_core.HarmonicUpperBound__set_from_binary(self, p)
6424 
6425  def __getstate__(self):
6426  p = self._get_as_binary()
6427  if len(self.__dict__) > 1:
6428  d = self.__dict__.copy()
6429  del d['this']
6430  p = (d, p)
6431  return p
6432 
6433  def __setstate__(self, p):
6434  if not hasattr(self, 'this'):
6435  self.__init__()
6436  if isinstance(p, tuple):
6437  d, p = p
6438  self.__dict__.update(d)
6439  return self._set_from_binary(p)
6440 
6441 
6442 # Register HarmonicUpperBound in _IMP_core:
6443 _IMP_core.HarmonicUpperBound_swigregister(HarmonicUpperBound)
6444 class WeightedSum(IMP.UnaryFunction):
6445  r"""Proxy of C++ IMP::core::WeightedSum class."""
6446 
6447  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6448 
6449  def __init__(self, funcs, weights):
6450  r"""__init__(WeightedSum self, IMP::UnaryFunctions funcs, IMP::Floats weights) -> WeightedSum"""
6451  _IMP_core.WeightedSum_swiginit(self, _IMP_core.new_WeightedSum(funcs, weights))
6452 
6453  def get_function_number(self):
6454  r"""get_function_number(WeightedSum self) -> unsigned int"""
6455  return _IMP_core.WeightedSum_get_function_number(self)
6456 
6457  def set_weights(self, weights):
6458  r"""set_weights(WeightedSum self, IMP::Floats weights)"""
6459  return _IMP_core.WeightedSum_set_weights(self, weights)
6460 
6461  def get_weights(self):
6462  r"""get_weights(WeightedSum self) -> IMP::Floats"""
6463  return _IMP_core.WeightedSum_get_weights(self)
6464 
6465  def get_weight(self, i):
6466  r"""get_weight(WeightedSum self, unsigned int i) -> double"""
6467  return _IMP_core.WeightedSum_get_weight(self, i)
6468 
6469  def get_function(self, i):
6470  r"""get_function(WeightedSum self, unsigned int i) -> UnaryFunction"""
6471  return _IMP_core.WeightedSum_get_function(self, i)
6472 
6473  def get_version_info(self):
6474  r"""get_version_info(WeightedSum self) -> VersionInfo"""
6475  return _IMP_core.WeightedSum_get_version_info(self)
6476  __swig_destroy__ = _IMP_core.delete_WeightedSum
6477 
6478  def __str__(self):
6479  r"""__str__(WeightedSum self) -> std::string"""
6480  return _IMP_core.WeightedSum___str__(self)
6481 
6482  def __repr__(self):
6483  r"""__repr__(WeightedSum self) -> std::string"""
6484  return _IMP_core.WeightedSum___repr__(self)
6485 
6486  @staticmethod
6487  def get_from(o):
6488  return _object_cast_to_WeightedSum(o)
6489 
6490 
6491 # Register WeightedSum in _IMP_core:
6492 _IMP_core.WeightedSum_swigregister(WeightedSum)
6493 class WeightedSumOfExponential(IMP.UnaryFunction):
6494  r"""Proxy of C++ IMP::core::WeightedSumOfExponential class."""
6495 
6496  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6497 
6498  def __init__(self, funcs, weights, denom=1.0):
6499  r"""__init__(WeightedSumOfExponential self, IMP::UnaryFunctions funcs, IMP::Floats weights, IMP::Float denom=1.0) -> WeightedSumOfExponential"""
6500  _IMP_core.WeightedSumOfExponential_swiginit(self, _IMP_core.new_WeightedSumOfExponential(funcs, weights, denom))
6501 
6502  def get_function_number(self):
6503  r"""get_function_number(WeightedSumOfExponential self) -> unsigned int"""
6504  return _IMP_core.WeightedSumOfExponential_get_function_number(self)
6505 
6506  def set_weights(self, weights):
6507  r"""set_weights(WeightedSumOfExponential self, IMP::Floats weights)"""
6508  return _IMP_core.WeightedSumOfExponential_set_weights(self, weights)
6509 
6510  def get_weights(self):
6511  r"""get_weights(WeightedSumOfExponential self) -> IMP::Floats"""
6512  return _IMP_core.WeightedSumOfExponential_get_weights(self)
6513 
6514  def get_weight(self, i):
6515  r"""get_weight(WeightedSumOfExponential self, unsigned int i) -> double"""
6516  return _IMP_core.WeightedSumOfExponential_get_weight(self, i)
6517 
6518  def get_function(self, i):
6519  r"""get_function(WeightedSumOfExponential self, unsigned int i) -> UnaryFunction"""
6520  return _IMP_core.WeightedSumOfExponential_get_function(self, i)
6521 
6522  def set_denominator(self, denom):
6523  r"""set_denominator(WeightedSumOfExponential self, double denom)"""
6524  return _IMP_core.WeightedSumOfExponential_set_denominator(self, denom)
6525 
6526  def get_denominator(self):
6527  r"""get_denominator(WeightedSumOfExponential self) -> double"""
6528  return _IMP_core.WeightedSumOfExponential_get_denominator(self)
6529 
6530  def get_version_info(self):
6531  r"""get_version_info(WeightedSumOfExponential self) -> VersionInfo"""
6532  return _IMP_core.WeightedSumOfExponential_get_version_info(self)
6533  __swig_destroy__ = _IMP_core.delete_WeightedSumOfExponential
6534 
6535  def __str__(self):
6536  r"""__str__(WeightedSumOfExponential self) -> std::string"""
6537  return _IMP_core.WeightedSumOfExponential___str__(self)
6538 
6539  def __repr__(self):
6540  r"""__repr__(WeightedSumOfExponential self) -> std::string"""
6541  return _IMP_core.WeightedSumOfExponential___repr__(self)
6542 
6543  @staticmethod
6544  def get_from(o):
6545  return _object_cast_to_WeightedSumOfExponential(o)
6546 
6547 
6548 # Register WeightedSumOfExponential in _IMP_core:
6549 _IMP_core.WeightedSumOfExponential_swigregister(WeightedSumOfExponential)
6550 class MSConnectivityRestraint(IMP.Restraint):
6551  r"""Proxy of C++ IMP::core::MSConnectivityRestraint class."""
6552 
6553  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6554 
6555  def __init__(self, m, ps, eps=0.1):
6556  r"""__init__(MSConnectivityRestraint self, Model m, PairScore ps, double eps=0.1) -> MSConnectivityRestraint"""
6557  _IMP_core.MSConnectivityRestraint_swiginit(self, _IMP_core.new_MSConnectivityRestraint(m, ps, eps))
6558 
6559  def add_type(self, ps):
6560  r"""add_type(MSConnectivityRestraint self, IMP::ParticlesTemp const & ps) -> unsigned int"""
6561  return _IMP_core.MSConnectivityRestraint_add_type(self, ps)
6562 
6563  def add_composite(self, *args):
6564  r"""
6565  add_composite(MSConnectivityRestraint self, IMP::Ints const & components) -> unsigned int
6566  add_composite(MSConnectivityRestraint self, IMP::Ints const & components, unsigned int parent) -> unsigned int
6567  """
6568  return _IMP_core.MSConnectivityRestraint_add_composite(self, *args)
6569 
6570  def get_connected_pairs(self):
6571  r"""get_connected_pairs(MSConnectivityRestraint self) -> IMP::ParticlePairsTemp"""
6572  return _IMP_core.MSConnectivityRestraint_get_connected_pairs(self)
6573 
6574  def get_pair_score(self):
6575  r"""get_pair_score(MSConnectivityRestraint self) -> PairScore"""
6576  return _IMP_core.MSConnectivityRestraint_get_pair_score(self)
6577 
6578  def do_create_current_decomposition(self):
6579  r"""do_create_current_decomposition(MSConnectivityRestraint self) -> IMP::Restraints"""
6580  return _IMP_core.MSConnectivityRestraint_do_create_current_decomposition(self)
6581 
6582  def do_get_inputs(self):
6583  r"""do_get_inputs(MSConnectivityRestraint self) -> IMP::ModelObjectsTemp"""
6584  return _IMP_core.MSConnectivityRestraint_do_get_inputs(self)
6585 
6586  def get_version_info(self):
6587  r"""get_version_info(MSConnectivityRestraint self) -> VersionInfo"""
6588  return _IMP_core.MSConnectivityRestraint_get_version_info(self)
6589  __swig_destroy__ = _IMP_core.delete_MSConnectivityRestraint
6590 
6591  def __str__(self):
6592  r"""__str__(MSConnectivityRestraint self) -> std::string"""
6593  return _IMP_core.MSConnectivityRestraint___str__(self)
6594 
6595  def __repr__(self):
6596  r"""__repr__(MSConnectivityRestraint self) -> std::string"""
6597  return _IMP_core.MSConnectivityRestraint___repr__(self)
6598 
6599  @staticmethod
6600  def get_from(o):
6601  return _object_cast_to_MSConnectivityRestraint(o)
6602 
6603 
6604 # Register MSConnectivityRestraint in _IMP_core:
6605 _IMP_core.MSConnectivityRestraint_swigregister(MSConnectivityRestraint)
6606 class HierarchyTraits(object):
6607  r"""Proxy of C++ IMP::core::HierarchyTraits class."""
6608 
6609  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6610 
6611  def __init__(self, *args):
6612  r"""
6613  __init__(HierarchyTraits self) -> HierarchyTraits
6614  __init__(HierarchyTraits self, std::string name) -> HierarchyTraits
6615  """
6616  _IMP_core.HierarchyTraits_swiginit(self, _IMP_core.new_HierarchyTraits(*args))
6617 
6618  def get_children_key(self):
6619  r"""get_children_key(HierarchyTraits self) -> ParticleIndexesKey"""
6620  return _IMP_core.HierarchyTraits_get_children_key(self)
6621 
6622  def get_parent_key(self):
6623  r"""get_parent_key(HierarchyTraits self) -> ParticleIndexKey"""
6624  return _IMP_core.HierarchyTraits_get_parent_key(self)
6625 
6626  def __eq__(self, o):
6627  r"""__eq__(HierarchyTraits self, HierarchyTraits o) -> bool"""
6628  return _IMP_core.HierarchyTraits___eq__(self, o)
6629 
6630  def show(self, *args):
6631  r"""show(HierarchyTraits self, _ostream out=std::cout)"""
6632  return _IMP_core.HierarchyTraits_show(self, *args)
6633 
6634  def __str__(self):
6635  r"""__str__(HierarchyTraits self) -> std::string"""
6636  return _IMP_core.HierarchyTraits___str__(self)
6637 
6638  def __repr__(self):
6639  r"""__repr__(HierarchyTraits self) -> std::string"""
6640  return _IMP_core.HierarchyTraits___repr__(self)
6641  __swig_destroy__ = _IMP_core.delete_HierarchyTraits
6642 
6643 # Register HierarchyTraits in _IMP_core:
6644 _IMP_core.HierarchyTraits_swigregister(HierarchyTraits)
6645 class Hierarchy(IMP.Decorator):
6646  r"""Proxy of C++ IMP::core::Hierarchy class."""
6647 
6648  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6649 
6650  def get_decorator_traits(self):
6651  r"""get_decorator_traits(Hierarchy self) -> HierarchyTraits"""
6652  return _IMP_core.Hierarchy_get_decorator_traits(self)
6653 
6654  @staticmethod
6655  def get_default_decorator_traits():
6656  r"""get_default_decorator_traits() -> HierarchyTraits"""
6657  return _IMP_core.Hierarchy_get_default_decorator_traits()
6658 
6659  def __init__(self, *args):
6660  r"""
6661  __init__(Hierarchy self) -> Hierarchy
6662  __init__(Hierarchy self, Model m, ParticleIndex id, HierarchyTraits tr=get_default_traits()) -> Hierarchy
6663  __init__(Hierarchy self, _ParticleAdaptor d, HierarchyTraits tr=get_default_traits()) -> Hierarchy
6664  """
6665  _IMP_core.Hierarchy_swiginit(self, _IMP_core.new_Hierarchy(*args))
6666 
6667  def show(self, *args):
6668  r"""show(Hierarchy self, _ostream out=std::cout)"""
6669  return _IMP_core.Hierarchy_show(self, *args)
6670 
6671  @staticmethod
6672  def setup_particle(*args):
6673  r"""
6674  setup_particle(Model m, ParticleIndex pi, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6675  setup_particle(_ParticleAdaptor d, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6676  setup_particle(Model m, ParticleIndex pi, IMP::ParticleIndexes children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6677  setup_particle(_ParticleAdaptor d, IMP::ParticleIndexes children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6678  setup_particle(Model m, ParticleIndex pi, IMP::ParticlesTemp children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6679  setup_particle(_ParticleAdaptor d, IMP::ParticlesTemp children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6680  """
6681  return _IMP_core.Hierarchy_setup_particle(*args)
6682 
6683  @staticmethod
6684  def get_is_setup(*args):
6685  r"""
6686  get_is_setup(_ParticleAdaptor p, HierarchyTraits tr=get_default_traits()) -> bool
6687  get_is_setup(Model arg1, ParticleIndex arg2, HierarchyTraits arg3=Hierarchy::get_default_traits()) -> bool
6688  """
6689  return _IMP_core.Hierarchy_get_is_setup(*args)
6690 
6691  @staticmethod
6692  def get_changed_key():
6693  r"""get_changed_key() -> TriggerKey"""
6694  return _IMP_core.Hierarchy_get_changed_key()
6695 
6696  def get_parent(self):
6697  r"""get_parent(Hierarchy self) -> Hierarchy"""
6698  return _IMP_core.Hierarchy_get_parent(self)
6699 
6700  def get_number_of_children(self):
6701  r"""get_number_of_children(Hierarchy self) -> unsigned int"""
6702  return _IMP_core.Hierarchy_get_number_of_children(self)
6703 
6704  def get_child(self, i):
6705  r"""get_child(Hierarchy self, unsigned int i) -> Hierarchy"""
6706  return _IMP_core.Hierarchy_get_child(self, i)
6707 
6708  def get_children_indexes(self):
6709  r"""get_children_indexes(Hierarchy self) -> IMP::ParticleIndexes"""
6710  return _IMP_core.Hierarchy_get_children_indexes(self)
6711 
6712  def get_children(self):
6713  r"""get_children(Hierarchy self) -> IMP::core::GenericHierarchies"""
6714  return _IMP_core.Hierarchy_get_children(self)
6715 
6716  def remove_child(self, *args):
6717  r"""
6718  remove_child(Hierarchy self, unsigned int i)
6719  remove_child(Hierarchy self, Hierarchy h)
6720  """
6721  return _IMP_core.Hierarchy_remove_child(self, *args)
6722 
6723  def clear_children(self):
6724  r"""clear_children(Hierarchy self)"""
6725  return _IMP_core.Hierarchy_clear_children(self)
6726 
6727  def add_child(self, h):
6728  r"""add_child(Hierarchy self, Hierarchy h)"""
6729  return _IMP_core.Hierarchy_add_child(self, h)
6730 
6731  def add_child_at(self, h, pos):
6732  r"""add_child_at(Hierarchy self, Hierarchy h, unsigned int pos)"""
6733  return _IMP_core.Hierarchy_add_child_at(self, h, pos)
6734 
6735  def get_child_index(self, *args):
6736  r"""
6737  get_child_index(Hierarchy self, unsigned int i) -> ParticleIndex
6738  get_child_index(Hierarchy self) -> int
6739  """
6740  return _IMP_core.Hierarchy_get_child_index(self, *args)
6741 
6742  @staticmethod
6743  def get_default_traits():
6744  r"""get_default_traits() -> HierarchyTraits"""
6745  return _IMP_core.Hierarchy_get_default_traits()
6746 
6747  def get_traits(self):
6748  r"""get_traits(Hierarchy self) -> HierarchyTraits"""
6749  return _IMP_core.Hierarchy_get_traits(self)
6750 
6751  def add_attribute(self, *args):
6752  r"""
6753  add_attribute(Hierarchy self, FloatKey k, IMP::Float v, bool opt)
6754  add_attribute(Hierarchy self, FloatKey a0, IMP::Float a1)
6755  add_attribute(Hierarchy self, IntKey a0, IMP::Int a1)
6756  add_attribute(Hierarchy self, FloatsKey a0, IMP::Floats a1)
6757  add_attribute(Hierarchy self, IntsKey a0, IMP::Ints a1)
6758  add_attribute(Hierarchy self, StringKey a0, IMP::String a1)
6759  add_attribute(Hierarchy self, ParticleIndexKey a0, Particle a1)
6760  add_attribute(Hierarchy self, ObjectKey a0, Object a1)
6761  add_attribute(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
6762  add_attribute(Hierarchy self, SparseIntKey a0, IMP::Int a1)
6763  add_attribute(Hierarchy self, SparseStringKey a0, IMP::String a1)
6764  add_attribute(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
6765  """
6766  return _IMP_core.Hierarchy_add_attribute(self, *args)
6767 
6768  def get_value(self, *args):
6769  r"""
6770  get_value(Hierarchy self, FloatKey a0) -> IMP::Float
6771  get_value(Hierarchy self, IntKey a0) -> IMP::Int
6772  get_value(Hierarchy self, FloatsKey a0) -> IMP::Floats
6773  get_value(Hierarchy self, IntsKey a0) -> IMP::Ints
6774  get_value(Hierarchy self, StringKey a0) -> IMP::String
6775  get_value(Hierarchy self, ParticleIndexKey a0) -> Particle
6776  get_value(Hierarchy self, ObjectKey a0) -> Object
6777  get_value(Hierarchy self, SparseFloatKey a0) -> IMP::Float
6778  get_value(Hierarchy self, SparseIntKey a0) -> IMP::Int
6779  get_value(Hierarchy self, SparseStringKey a0) -> IMP::String
6780  get_value(Hierarchy self, SparseParticleIndexKey a0) -> ParticleIndex
6781  """
6782  return _IMP_core.Hierarchy_get_value(self, *args)
6783 
6784  def set_value(self, *args):
6785  r"""
6786  set_value(Hierarchy self, FloatKey a0, IMP::Float a1)
6787  set_value(Hierarchy self, IntKey a0, IMP::Int a1)
6788  set_value(Hierarchy self, FloatsKey a0, IMP::Floats a1)
6789  set_value(Hierarchy self, IntsKey a0, IMP::Ints a1)
6790  set_value(Hierarchy self, StringKey a0, IMP::String a1)
6791  set_value(Hierarchy self, ParticleIndexKey a0, Particle a1)
6792  set_value(Hierarchy self, ObjectKey a0, Object a1)
6793  set_value(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
6794  set_value(Hierarchy self, SparseIntKey a0, IMP::Int a1)
6795  set_value(Hierarchy self, SparseStringKey a0, IMP::String a1)
6796  set_value(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
6797  """
6798  return _IMP_core.Hierarchy_set_value(self, *args)
6799 
6800  def remove_attribute(self, *args):
6801  r"""
6802  remove_attribute(Hierarchy self, FloatKey a0)
6803  remove_attribute(Hierarchy self, IntKey a0)
6804  remove_attribute(Hierarchy self, FloatsKey a0)
6805  remove_attribute(Hierarchy self, IntsKey a0)
6806  remove_attribute(Hierarchy self, StringKey a0)
6807  remove_attribute(Hierarchy self, ParticleIndexKey a0)
6808  remove_attribute(Hierarchy self, ObjectKey a0)
6809  remove_attribute(Hierarchy self, SparseFloatKey a0)
6810  remove_attribute(Hierarchy self, SparseIntKey a0)
6811  remove_attribute(Hierarchy self, SparseStringKey a0)
6812  remove_attribute(Hierarchy self, SparseParticleIndexKey a0)
6813  """
6814  return _IMP_core.Hierarchy_remove_attribute(self, *args)
6815 
6816  def has_attribute(self, *args):
6817  r"""
6818  has_attribute(Hierarchy self, FloatKey a0) -> bool
6819  has_attribute(Hierarchy self, IntKey a0) -> bool
6820  has_attribute(Hierarchy self, FloatsKey a0) -> bool
6821  has_attribute(Hierarchy self, IntsKey a0) -> bool
6822  has_attribute(Hierarchy self, StringKey a0) -> bool
6823  has_attribute(Hierarchy self, ParticleIndexKey a0) -> bool
6824  has_attribute(Hierarchy self, ObjectKey a0) -> bool
6825  has_attribute(Hierarchy self, SparseFloatKey a0) -> bool
6826  has_attribute(Hierarchy self, SparseIntKey a0) -> bool
6827  has_attribute(Hierarchy self, SparseStringKey a0) -> bool
6828  has_attribute(Hierarchy self, SparseParticleIndexKey a0) -> bool
6829  """
6830  return _IMP_core.Hierarchy_has_attribute(self, *args)
6831 
6832  def get_derivative(self, a0):
6833  r"""get_derivative(Hierarchy self, FloatKey a0) -> double"""
6834  return _IMP_core.Hierarchy_get_derivative(self, a0)
6835 
6836  def get_name(self):
6837  r"""get_name(Hierarchy self) -> std::string"""
6838  return _IMP_core.Hierarchy_get_name(self)
6839 
6840  def clear_caches(self):
6841  r"""clear_caches(Hierarchy self)"""
6842  return _IMP_core.Hierarchy_clear_caches(self)
6843 
6844  def set_name(self, a0):
6845  r"""set_name(Hierarchy self, std::string a0)"""
6846  return _IMP_core.Hierarchy_set_name(self, a0)
6847 
6848  def set_check_level(self, a0):
6849  r"""set_check_level(Hierarchy self, IMP::CheckLevel a0)"""
6850  return _IMP_core.Hierarchy_set_check_level(self, a0)
6851 
6852  def add_to_derivative(self, a0, a1, a2):
6853  r"""add_to_derivative(Hierarchy self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6854  return _IMP_core.Hierarchy_add_to_derivative(self, a0, a1, a2)
6855 
6856  def set_is_optimized(self, a0, a1):
6857  r"""set_is_optimized(Hierarchy self, FloatKey a0, bool a1)"""
6858  return _IMP_core.Hierarchy_set_is_optimized(self, a0, a1)
6859 
6860  def get_is_optimized(self, a0):
6861  r"""get_is_optimized(Hierarchy self, FloatKey a0) -> bool"""
6862  return _IMP_core.Hierarchy_get_is_optimized(self, a0)
6863 
6864  def get_check_level(self):
6865  r"""get_check_level(Hierarchy self) -> IMP::CheckLevel"""
6866  return _IMP_core.Hierarchy_get_check_level(self)
6867 
6868  def __eq__(self, *args):
6869  r"""
6870  __eq__(Hierarchy self, Hierarchy o) -> bool
6871  __eq__(Hierarchy self, Particle d) -> bool
6872  """
6873  return _IMP_core.Hierarchy___eq__(self, *args)
6874 
6875  def __ne__(self, *args):
6876  r"""
6877  __ne__(Hierarchy self, Hierarchy o) -> bool
6878  __ne__(Hierarchy self, Particle d) -> bool
6879  """
6880  return _IMP_core.Hierarchy___ne__(self, *args)
6881 
6882  def __le__(self, *args):
6883  r"""
6884  __le__(Hierarchy self, Hierarchy o) -> bool
6885  __le__(Hierarchy self, Particle d) -> bool
6886  """
6887  return _IMP_core.Hierarchy___le__(self, *args)
6888 
6889  def __lt__(self, *args):
6890  r"""
6891  __lt__(Hierarchy self, Hierarchy o) -> bool
6892  __lt__(Hierarchy self, Particle d) -> bool
6893  """
6894  return _IMP_core.Hierarchy___lt__(self, *args)
6895 
6896  def __ge__(self, *args):
6897  r"""
6898  __ge__(Hierarchy self, Hierarchy o) -> bool
6899  __ge__(Hierarchy self, Particle d) -> bool
6900  """
6901  return _IMP_core.Hierarchy___ge__(self, *args)
6902 
6903  def __gt__(self, *args):
6904  r"""
6905  __gt__(Hierarchy self, Hierarchy o) -> bool
6906  __gt__(Hierarchy self, Particle d) -> bool
6907  """
6908  return _IMP_core.Hierarchy___gt__(self, *args)
6909 
6910  def __hash__(self):
6911  r"""__hash__(Hierarchy self) -> std::size_t"""
6912  return _IMP_core.Hierarchy___hash__(self)
6913 
6914  def __str__(self):
6915  r"""__str__(Hierarchy self) -> std::string"""
6916  return _IMP_core.Hierarchy___str__(self)
6917 
6918  def __repr__(self):
6919  r"""__repr__(Hierarchy self) -> std::string"""
6920  return _IMP_core.Hierarchy___repr__(self)
6921  __swig_destroy__ = _IMP_core.delete_Hierarchy
6922 
6923 # Register Hierarchy in _IMP_core:
6924 _IMP_core.Hierarchy_swigregister(Hierarchy)
6925 class HierarchyVisitor(object):
6926  r"""Proxy of C++ IMP::core::HierarchyVisitor class."""
6927 
6928  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6929  __repr__ = _swig_repr
6930 
6931  def __init__(self):
6932  r"""__init__(HierarchyVisitor self) -> HierarchyVisitor"""
6933  if self.__class__ == HierarchyVisitor:
6934  _self = None
6935  else:
6936  _self = self
6937  _IMP_core.HierarchyVisitor_swiginit(self, _IMP_core.new_HierarchyVisitor(_self, ))
6938 
6939  if self.__class__ != HierarchyVisitor:
6940  _director_objects.register(self)
6941 
6942 
6943 
6944 
6945  def __call__(self, p):
6946  r"""__call__(HierarchyVisitor self, Hierarchy p) -> bool"""
6947  return _IMP_core.HierarchyVisitor___call__(self, p)
6948  __swig_destroy__ = _IMP_core.delete_HierarchyVisitor
6949  def __disown__(self):
6950  self.this.disown()
6951  _IMP_core.disown_HierarchyVisitor(self)
6952  return weakref.proxy(self)
6953 
6954 # Register HierarchyVisitor in _IMP_core:
6955 _IMP_core.HierarchyVisitor_swigregister(HierarchyVisitor)
6956 class ModifierVisitor(HierarchyVisitor):
6957  r"""Proxy of C++ IMP::core::ModifierVisitor class."""
6958 
6959  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6960  __repr__ = _swig_repr
6961 
6962  def __init__(self, sm):
6963  r"""__init__(ModifierVisitor self, SingletonModifier sm) -> ModifierVisitor"""
6964  _IMP_core.ModifierVisitor_swiginit(self, _IMP_core.new_ModifierVisitor(sm))
6965  __swig_destroy__ = _IMP_core.delete_ModifierVisitor
6966 
6967 # Register ModifierVisitor in _IMP_core:
6968 _IMP_core.ModifierVisitor_swigregister(ModifierVisitor)
6969 class HierarchyCounter(HierarchyVisitor):
6970  r"""Proxy of C++ IMP::core::HierarchyCounter class."""
6971 
6972  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6973 
6974  def __init__(self):
6975  r"""__init__(HierarchyCounter self) -> HierarchyCounter"""
6976  _IMP_core.HierarchyCounter_swiginit(self, _IMP_core.new_HierarchyCounter())
6977 
6978  def get_count(self):
6979  r"""get_count(HierarchyCounter self) -> unsigned int"""
6980  return _IMP_core.HierarchyCounter_get_count(self)
6981 
6982  def show(self, *args):
6983  r"""show(HierarchyCounter self, _ostream out=std::cout)"""
6984  return _IMP_core.HierarchyCounter_show(self, *args)
6985 
6986  def __str__(self):
6987  r"""__str__(HierarchyCounter self) -> std::string"""
6988  return _IMP_core.HierarchyCounter___str__(self)
6989 
6990  def __repr__(self):
6991  r"""__repr__(HierarchyCounter self) -> std::string"""
6992  return _IMP_core.HierarchyCounter___repr__(self)
6993 
6994  def _get_as_binary(self):
6995  r"""_get_as_binary(HierarchyCounter self) -> PyObject *"""
6996  return _IMP_core.HierarchyCounter__get_as_binary(self)
6997 
6998  def _set_from_binary(self, p):
6999  r"""_set_from_binary(HierarchyCounter self, PyObject * p)"""
7000  return _IMP_core.HierarchyCounter__set_from_binary(self, p)
7001 
7002  def __getstate__(self):
7003  p = self._get_as_binary()
7004  if len(self.__dict__) > 1:
7005  d = self.__dict__.copy()
7006  del d['this']
7007  p = (d, p)
7008  return p
7009 
7010  def __setstate__(self, p):
7011  if not hasattr(self, 'this'):
7012  self.__init__()
7013  if isinstance(p, tuple):
7014  d, p = p
7015  self.__dict__.update(d)
7016  return self._set_from_binary(p)
7017 
7018  __swig_destroy__ = _IMP_core.delete_HierarchyCounter
7019 
7020 # Register HierarchyCounter in _IMP_core:
7021 _IMP_core.HierarchyCounter_swigregister(HierarchyCounter)
7022 
7023 def get_leaves(mhd):
7024  r"""get_leaves(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
7025  return _IMP_core.get_leaves(mhd)
7026 
7027 def get_internal(mhd):
7028  r"""get_internal(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
7029  return _IMP_core.get_internal(mhd)
7030 
7031 def get_all_descendants(mhd):
7032  r"""get_all_descendants(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
7033  return _IMP_core.get_all_descendants(mhd)
7034 
7035 def get_root(h):
7036  r"""get_root(Hierarchy h) -> Hierarchy"""
7037  return _IMP_core.get_root(h)
7038 
7039 def visit_breadth_first(d, f):
7040  r"""visit_breadth_first(Hierarchy d, HierarchyVisitor f)"""
7041  return _IMP_core.visit_breadth_first(d, f)
7042 
7043 def visit_depth_first(d, f):
7044  r"""visit_depth_first(Hierarchy d, HierarchyVisitor f)"""
7045  return _IMP_core.visit_depth_first(d, f)
7046 class LeavesRefiner(IMP.Refiner):
7047  r"""Proxy of C++ IMP::core::LeavesRefiner class."""
7048 
7049  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7050 
7051  def __init__(self, tr):
7052  r"""__init__(LeavesRefiner self, HierarchyTraits tr) -> LeavesRefiner"""
7053  _IMP_core.LeavesRefiner_swiginit(self, _IMP_core.new_LeavesRefiner(tr))
7054 
7055  def do_get_inputs(self, m, pis):
7056  r"""do_get_inputs(LeavesRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7057  return _IMP_core.LeavesRefiner_do_get_inputs(self, m, pis)
7058 
7059  def get_version_info(self):
7060  r"""get_version_info(LeavesRefiner self) -> VersionInfo"""
7061  return _IMP_core.LeavesRefiner_get_version_info(self)
7062  __swig_destroy__ = _IMP_core.delete_LeavesRefiner
7063 
7064  def __str__(self):
7065  r"""__str__(LeavesRefiner self) -> std::string"""
7066  return _IMP_core.LeavesRefiner___str__(self)
7067 
7068  def __repr__(self):
7069  r"""__repr__(LeavesRefiner self) -> std::string"""
7070  return _IMP_core.LeavesRefiner___repr__(self)
7071 
7072  @staticmethod
7073  def get_from(o):
7074  return _object_cast_to_LeavesRefiner(o)
7075 
7076 
7077 # Register LeavesRefiner in _IMP_core:
7078 _IMP_core.LeavesRefiner_swigregister(LeavesRefiner)
7079 class Linear(IMP.UnaryFunction):
7080  r"""Proxy of C++ IMP::core::Linear class."""
7081 
7082  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7083 
7084  def __init__(self, *args):
7085  r"""
7086  __init__(Linear self, double offset, double slope) -> Linear
7087  __init__(Linear self) -> Linear
7088  """
7089  _IMP_core.Linear_swiginit(self, _IMP_core.new_Linear(*args))
7090 
7091  def set_slope(self, f):
7092  r"""set_slope(Linear self, double f)"""
7093  return _IMP_core.Linear_set_slope(self, f)
7094 
7095  def set_offset(self, f):
7096  r"""set_offset(Linear self, double f)"""
7097  return _IMP_core.Linear_set_offset(self, f)
7098 
7099  def get_version_info(self):
7100  r"""get_version_info(Linear self) -> VersionInfo"""
7101  return _IMP_core.Linear_get_version_info(self)
7102  __swig_destroy__ = _IMP_core.delete_Linear
7103 
7104  def __str__(self):
7105  r"""__str__(Linear self) -> std::string"""
7106  return _IMP_core.Linear___str__(self)
7107 
7108  def __repr__(self):
7109  r"""__repr__(Linear self) -> std::string"""
7110  return _IMP_core.Linear___repr__(self)
7111 
7112  @staticmethod
7113  def get_from(o):
7114  return _object_cast_to_Linear(o)
7115 
7116 
7117  def _get_as_binary(self):
7118  r"""_get_as_binary(Linear self) -> PyObject *"""
7119  return _IMP_core.Linear__get_as_binary(self)
7120 
7121  def _set_from_binary(self, p):
7122  r"""_set_from_binary(Linear self, PyObject * p)"""
7123  return _IMP_core.Linear__set_from_binary(self, p)
7124 
7125  def __getstate__(self):
7126  p = self._get_as_binary()
7127  if len(self.__dict__) > 1:
7128  d = self.__dict__.copy()
7129  del d['this']
7130  p = (d, p)
7131  return p
7132 
7133  def __setstate__(self, p):
7134  if not hasattr(self, 'this'):
7135  self.__init__()
7136  if isinstance(p, tuple):
7137  d, p = p
7138  self.__dict__.update(d)
7139  return self._set_from_binary(p)
7140 
7141 
7142 # Register Linear in _IMP_core:
7143 _IMP_core.Linear_swigregister(Linear)
7144 class LogNormalMover(MonteCarloMover):
7145  r"""Proxy of C++ IMP::core::LogNormalMover class."""
7146 
7147  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7148 
7149  def __init__(self, *args):
7150  r"""
7151  __init__(LogNormalMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double stddev) -> LogNormalMover
7152  __init__(LogNormalMover self, Model m, ParticleIndex pi, double stddev) -> LogNormalMover
7153  __init__(LogNormalMover self, IMP::ParticlesTemp const & sc, IMP::FloatKeys const & vars, IMP::Float sigma) -> LogNormalMover
7154  __init__(LogNormalMover self, IMP::ParticlesTemp const & sc, IMP::Float radius) -> LogNormalMover
7155  __init__(LogNormalMover self) -> LogNormalMover
7156  """
7157  _IMP_core.LogNormalMover_swiginit(self, _IMP_core.new_LogNormalMover(*args))
7158 
7159  def set_sigma(self, sigma):
7160  r"""set_sigma(LogNormalMover self, IMP::Float sigma)"""
7161  return _IMP_core.LogNormalMover_set_sigma(self, sigma)
7162 
7163  def get_sigma(self):
7164  r"""get_sigma(LogNormalMover self) -> IMP::Float"""
7165  return _IMP_core.LogNormalMover_get_sigma(self)
7166 
7167  def get_version_info(self):
7168  r"""get_version_info(LogNormalMover self) -> VersionInfo"""
7169  return _IMP_core.LogNormalMover_get_version_info(self)
7170  __swig_destroy__ = _IMP_core.delete_LogNormalMover
7171 
7172  def __str__(self):
7173  r"""__str__(LogNormalMover self) -> std::string"""
7174  return _IMP_core.LogNormalMover___str__(self)
7175 
7176  def __repr__(self):
7177  r"""__repr__(LogNormalMover self) -> std::string"""
7178  return _IMP_core.LogNormalMover___repr__(self)
7179 
7180  @staticmethod
7181  def get_from(o):
7182  return _object_cast_to_LogNormalMover(o)
7183 
7184 
7185  def _get_as_binary(self):
7186  r"""_get_as_binary(LogNormalMover self) -> PyObject *"""
7187  return _IMP_core.LogNormalMover__get_as_binary(self)
7188 
7189  def _set_from_binary(self, p):
7190  r"""_set_from_binary(LogNormalMover self, PyObject * p)"""
7191  return _IMP_core.LogNormalMover__set_from_binary(self, p)
7192 
7193  def __getstate__(self):
7194  p = self._get_as_binary()
7195  if len(self.__dict__) > 1:
7196  d = self.__dict__.copy()
7197  del d['this']
7198  p = (d, p)
7199  return p
7200 
7201  def __setstate__(self, p):
7202  if not hasattr(self, 'this'):
7203  self.__init__()
7204  if isinstance(p, tuple):
7205  d, p = p
7206  self.__dict__.update(d)
7207  return self._set_from_binary(p)
7208 
7209 
7210 # Register LogNormalMover in _IMP_core:
7211 _IMP_core.LogNormalMover_swigregister(LogNormalMover)
7212 IMP_CORE_HAS_MONTE_CARLO_MOVER = _IMP_core.IMP_CORE_HAS_MONTE_CARLO_MOVER
7213 
7214 class MonteCarlo(IMP.Optimizer):
7215  r"""Proxy of C++ IMP::core::MonteCarlo class."""
7216 
7217  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7218 
7219  def __init__(self, m):
7220  r"""__init__(MonteCarlo self, Model m) -> MonteCarlo"""
7221  _IMP_core.MonteCarlo_swiginit(self, _IMP_core.new_MonteCarlo(m))
7222 
7223  def get_version_info(self):
7224  r"""get_version_info(MonteCarlo self) -> VersionInfo"""
7225  return _IMP_core.MonteCarlo_get_version_info(self)
7226  __swig_destroy__ = _IMP_core.delete_MonteCarlo
7227 
7228  def set_return_best(self, tf):
7229  r"""set_return_best(MonteCarlo self, bool tf)"""
7230  return _IMP_core.MonteCarlo_set_return_best(self, tf)
7231 
7232  def set_score_moved(self, mv):
7233  r"""set_score_moved(MonteCarlo self, bool mv)"""
7234  return _IMP_core.MonteCarlo_set_score_moved(self, mv)
7235 
7236  def set_kt(self, t):
7237  r"""set_kt(MonteCarlo self, IMP::Float t)"""
7238  return _IMP_core.MonteCarlo_set_kt(self, t)
7239 
7240  def get_kt(self):
7241  r"""get_kt(MonteCarlo self) -> IMP::Float"""
7242  return _IMP_core.MonteCarlo_get_kt(self)
7243 
7244  def get_last_accepted_energy(self):
7245  r"""get_last_accepted_energy(MonteCarlo self) -> double"""
7246  return _IMP_core.MonteCarlo_get_last_accepted_energy(self)
7247 
7248  def get_best_accepted_energy(self):
7249  r"""get_best_accepted_energy(MonteCarlo self) -> double"""
7250  return _IMP_core.MonteCarlo_get_best_accepted_energy(self)
7251 
7252  def get_number_of_downward_steps(self):
7253  r"""get_number_of_downward_steps(MonteCarlo self) -> unsigned int"""
7254  return _IMP_core.MonteCarlo_get_number_of_downward_steps(self)
7255 
7256  def get_number_of_upward_steps(self):
7257  r"""get_number_of_upward_steps(MonteCarlo self) -> unsigned int"""
7258  return _IMP_core.MonteCarlo_get_number_of_upward_steps(self)
7259 
7260  def get_number_of_proposed_steps(self):
7261  r"""get_number_of_proposed_steps(MonteCarlo self) -> unsigned int"""
7262  return _IMP_core.MonteCarlo_get_number_of_proposed_steps(self)
7263 
7264  def get_number_of_accepted_steps(self):
7265  r"""get_number_of_accepted_steps(MonteCarlo self) -> unsigned int"""
7266  return _IMP_core.MonteCarlo_get_number_of_accepted_steps(self)
7267 
7268  def reset_statistics(self):
7269  r"""reset_statistics(MonteCarlo self)"""
7270  return _IMP_core.MonteCarlo_reset_statistics(self)
7271 
7272  def set_score_threshold(self, s):
7273  r"""set_score_threshold(MonteCarlo self, double s)"""
7274  return _IMP_core.MonteCarlo_set_score_threshold(self, s)
7275 
7276  def get_score_threshold(self):
7277  r"""get_score_threshold(MonteCarlo self) -> double"""
7278  return _IMP_core.MonteCarlo_get_score_threshold(self)
7279 
7280  def set_maximum_difference(self, d):
7281  r"""set_maximum_difference(MonteCarlo self, double d)"""
7282  return _IMP_core.MonteCarlo_set_maximum_difference(self, d)
7283 
7284  def get_maximum_difference(self):
7285  r"""get_maximum_difference(MonteCarlo self) -> double"""
7286  return _IMP_core.MonteCarlo_get_maximum_difference(self)
7287  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)
7288  def __set_movers(self, obj): IMP._list_util.set_varlist(self.movers, obj)
7289  def __del_movers(self): IMP._list_util.del_varlist(self.movers)
7290  movers = property(__get_movers, __set_movers, __del_movers, doc="List of ##ucnames")
7291 
7292  def remove_mover(self, d):
7293  r"""remove_mover(MonteCarlo self, MonteCarloMover d)"""
7294  return _IMP_core.MonteCarlo_remove_mover(self, d)
7295 
7296  def _python_index_mover(self, d, start, stop):
7297  r"""_python_index_mover(MonteCarlo self, MonteCarloMover d, unsigned int start, unsigned int stop) -> unsigned int"""
7298  return _IMP_core.MonteCarlo__python_index_mover(self, d, start, stop)
7299 
7300  def remove_movers(self, d):
7301  r"""remove_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & d)"""
7302  return _IMP_core.MonteCarlo_remove_movers(self, d)
7303 
7304  def set_movers(self, ps):
7305  r"""set_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & ps)"""
7306  return _IMP_core.MonteCarlo_set_movers(self, ps)
7307 
7308  def set_movers_order(self, objs):
7309  r"""set_movers_order(MonteCarlo self, IMP::core::MonteCarloMovers const & objs)"""
7310  return _IMP_core.MonteCarlo_set_movers_order(self, objs)
7311 
7312  def add_mover(self, obj):
7313  r"""add_mover(MonteCarlo self, MonteCarloMover obj) -> unsigned int"""
7314  return _IMP_core.MonteCarlo_add_mover(self, obj)
7315 
7316  def add_movers(self, objs):
7317  r"""add_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & objs)"""
7318  return _IMP_core.MonteCarlo_add_movers(self, objs)
7319 
7320  def clear_movers(self):
7321  r"""clear_movers(MonteCarlo self)"""
7322  return _IMP_core.MonteCarlo_clear_movers(self)
7323 
7324  def get_number_of_movers(self):
7325  r"""get_number_of_movers(MonteCarlo self) -> unsigned int"""
7326  return _IMP_core.MonteCarlo_get_number_of_movers(self)
7327 
7328  def get_has_movers(self):
7329  r"""get_has_movers(MonteCarlo self) -> bool"""
7330  return _IMP_core.MonteCarlo_get_has_movers(self)
7331 
7332  def get_mover(self, i):
7333  r"""get_mover(MonteCarlo self, unsigned int i) -> MonteCarloMover"""
7334  return _IMP_core.MonteCarlo_get_mover(self, i)
7335 
7336  def get_movers(self):
7337  r"""get_movers(MonteCarlo self) -> IMP::core::MonteCarloMovers"""
7338  return _IMP_core.MonteCarlo_get_movers(self)
7339 
7340  def erase_mover(self, i):
7341  r"""erase_mover(MonteCarlo self, unsigned int i)"""
7342  return _IMP_core.MonteCarlo_erase_mover(self, i)
7343 
7344  def reserve_movers(self, sz):
7345  r"""reserve_movers(MonteCarlo self, unsigned int sz)"""
7346  return _IMP_core.MonteCarlo_reserve_movers(self, sz)
7347 
7348  def __str__(self):
7349  r"""__str__(MonteCarlo self) -> std::string"""
7350  return _IMP_core.MonteCarlo___str__(self)
7351 
7352  def __repr__(self):
7353  r"""__repr__(MonteCarlo self) -> std::string"""
7354  return _IMP_core.MonteCarlo___repr__(self)
7355 
7356  @staticmethod
7357  def get_from(o):
7358  return _object_cast_to_MonteCarlo(o)
7359 
7360 
7361 # Register MonteCarlo in _IMP_core:
7362 _IMP_core.MonteCarlo_swigregister(MonteCarlo)
7363 class MonteCarloWithLocalOptimization(MonteCarlo):
7364  r"""Proxy of C++ IMP::core::MonteCarloWithLocalOptimization class."""
7365 
7366  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7367 
7368  def __init__(self, opt, steps):
7369  r"""__init__(MonteCarloWithLocalOptimization self, Optimizer opt, unsigned int steps) -> MonteCarloWithLocalOptimization"""
7370  _IMP_core.MonteCarloWithLocalOptimization_swiginit(self, _IMP_core.new_MonteCarloWithLocalOptimization(opt, steps))
7371 
7372  def get_number_of_steps(self):
7373  r"""get_number_of_steps(MonteCarloWithLocalOptimization self) -> unsigned int"""
7374  return _IMP_core.MonteCarloWithLocalOptimization_get_number_of_steps(self)
7375 
7376  def get_local_optimizer(self):
7377  r"""get_local_optimizer(MonteCarloWithLocalOptimization self) -> Optimizer"""
7378  return _IMP_core.MonteCarloWithLocalOptimization_get_local_optimizer(self)
7379  __swig_destroy__ = _IMP_core.delete_MonteCarloWithLocalOptimization
7380 
7381  def __str__(self):
7382  r"""__str__(MonteCarloWithLocalOptimization self) -> std::string"""
7383  return _IMP_core.MonteCarloWithLocalOptimization___str__(self)
7384 
7385  def __repr__(self):
7386  r"""__repr__(MonteCarloWithLocalOptimization self) -> std::string"""
7387  return _IMP_core.MonteCarloWithLocalOptimization___repr__(self)
7388 
7389  @staticmethod
7390  def get_from(o):
7391  return _object_cast_to_MonteCarloWithLocalOptimization(o)
7392 
7393 
7394 # Register MonteCarloWithLocalOptimization in _IMP_core:
7395 _IMP_core.MonteCarloWithLocalOptimization_swigregister(MonteCarloWithLocalOptimization)
7396 class MonteCarloWithBasinHopping(MonteCarloWithLocalOptimization):
7397  r"""Proxy of C++ IMP::core::MonteCarloWithBasinHopping class."""
7398 
7399  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7400 
7401  def __init__(self, opt, ns):
7402  r"""__init__(MonteCarloWithBasinHopping self, Optimizer opt, unsigned int ns) -> MonteCarloWithBasinHopping"""
7403  _IMP_core.MonteCarloWithBasinHopping_swiginit(self, _IMP_core.new_MonteCarloWithBasinHopping(opt, ns))
7404  __swig_destroy__ = _IMP_core.delete_MonteCarloWithBasinHopping
7405 
7406  def __str__(self):
7407  r"""__str__(MonteCarloWithBasinHopping self) -> std::string"""
7408  return _IMP_core.MonteCarloWithBasinHopping___str__(self)
7409 
7410  def __repr__(self):
7411  r"""__repr__(MonteCarloWithBasinHopping self) -> std::string"""
7412  return _IMP_core.MonteCarloWithBasinHopping___repr__(self)
7413 
7414  @staticmethod
7415  def get_from(o):
7416  return _object_cast_to_MonteCarloWithBasinHopping(o)
7417 
7418 
7419 # Register MonteCarloWithBasinHopping in _IMP_core:
7420 _IMP_core.MonteCarloWithBasinHopping_swigregister(MonteCarloWithBasinHopping)
7421 class NeighborsTable(IMP.ScoreState):
7422  r"""Proxy of C++ IMP::core::NeighborsTable class."""
7423 
7424  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7425 
7426  def __init__(self, *args):
7427  r"""__init__(NeighborsTable self, PairContainer input, std::string name="CloseNeighborsTable%1%") -> NeighborsTable"""
7428  _IMP_core.NeighborsTable_swiginit(self, _IMP_core.new_NeighborsTable(*args))
7429 
7430  def get_neighbors(self, pi):
7431  r"""get_neighbors(NeighborsTable self, ParticleIndex pi) -> IMP::ParticleIndexes const &"""
7432  return _IMP_core.NeighborsTable_get_neighbors(self, pi)
7433 
7434  def get_version_info(self):
7435  r"""get_version_info(NeighborsTable self) -> VersionInfo"""
7436  return _IMP_core.NeighborsTable_get_version_info(self)
7437  __swig_destroy__ = _IMP_core.delete_NeighborsTable
7438 
7439  def __str__(self):
7440  r"""__str__(NeighborsTable self) -> std::string"""
7441  return _IMP_core.NeighborsTable___str__(self)
7442 
7443  def __repr__(self):
7444  r"""__repr__(NeighborsTable self) -> std::string"""
7445  return _IMP_core.NeighborsTable___repr__(self)
7446 
7447  @staticmethod
7448  def get_from(o):
7449  return _object_cast_to_NeighborsTable(o)
7450 
7451 
7452 # Register NeighborsTable in _IMP_core:
7453 _IMP_core.NeighborsTable_swigregister(NeighborsTable)
7454 class NormalMover(MonteCarloMover):
7455  r"""Proxy of C++ IMP::core::NormalMover class."""
7456 
7457  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7458 
7459  def __init__(self, *args):
7460  r"""
7461  __init__(NormalMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double stddev) -> NormalMover
7462  __init__(NormalMover self, Model m, ParticleIndex pi, double stddev) -> NormalMover
7463  __init__(NormalMover self, IMP::ParticlesTemp const & sc, IMP::FloatKeys const & vars, IMP::Float sigma) -> NormalMover
7464  __init__(NormalMover self, IMP::ParticlesTemp const & sc, IMP::Float radius) -> NormalMover
7465  __init__(NormalMover self) -> NormalMover
7466  """
7467  _IMP_core.NormalMover_swiginit(self, _IMP_core.new_NormalMover(*args))
7468 
7469  def set_sigma(self, sigma):
7470  r"""set_sigma(NormalMover self, IMP::Float sigma)"""
7471  return _IMP_core.NormalMover_set_sigma(self, sigma)
7472 
7473  def get_sigma(self):
7474  r"""get_sigma(NormalMover self) -> IMP::Float"""
7475  return _IMP_core.NormalMover_get_sigma(self)
7476 
7477  def get_version_info(self):
7478  r"""get_version_info(NormalMover self) -> VersionInfo"""
7479  return _IMP_core.NormalMover_get_version_info(self)
7480  __swig_destroy__ = _IMP_core.delete_NormalMover
7481 
7482  def __str__(self):
7483  r"""__str__(NormalMover self) -> std::string"""
7484  return _IMP_core.NormalMover___str__(self)
7485 
7486  def __repr__(self):
7487  r"""__repr__(NormalMover self) -> std::string"""
7488  return _IMP_core.NormalMover___repr__(self)
7489 
7490  @staticmethod
7491  def get_from(o):
7492  return _object_cast_to_NormalMover(o)
7493 
7494 
7495  def _get_as_binary(self):
7496  r"""_get_as_binary(NormalMover self) -> PyObject *"""
7497  return _IMP_core.NormalMover__get_as_binary(self)
7498 
7499  def _set_from_binary(self, p):
7500  r"""_set_from_binary(NormalMover self, PyObject * p)"""
7501  return _IMP_core.NormalMover__set_from_binary(self, p)
7502 
7503  def __getstate__(self):
7504  p = self._get_as_binary()
7505  if len(self.__dict__) > 1:
7506  d = self.__dict__.copy()
7507  del d['this']
7508  p = (d, p)
7509  return p
7510 
7511  def __setstate__(self, p):
7512  if not hasattr(self, 'this'):
7513  self.__init__()
7514  if isinstance(p, tuple):
7515  d, p = p
7516  self.__dict__.update(d)
7517  return self._set_from_binary(p)
7518 
7519 
7520 # Register NormalMover in _IMP_core:
7521 _IMP_core.NormalMover_swigregister(NormalMover)
7522 class OpenCubicSpline(_OpenCubicSplineBase):
7523  r"""Proxy of C++ IMP::core::OpenCubicSpline class."""
7524 
7525  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7526 
7527  def __init__(self, values, minrange, spacing, extend=False):
7528  r"""__init__(OpenCubicSpline self, IMP::Floats const & values, IMP::Float minrange, IMP::Float spacing, bool extend=False) -> OpenCubicSpline"""
7529  _IMP_core.OpenCubicSpline_swiginit(self, _IMP_core.new_OpenCubicSpline(values, minrange, spacing, extend))
7530 
7531  def __str__(self):
7532  r"""__str__(OpenCubicSpline self) -> std::string"""
7533  return _IMP_core.OpenCubicSpline___str__(self)
7534 
7535  def __repr__(self):
7536  r"""__repr__(OpenCubicSpline self) -> std::string"""
7537  return _IMP_core.OpenCubicSpline___repr__(self)
7538 
7539  @staticmethod
7540  def get_from(o):
7541  return _object_cast_to_OpenCubicSpline(o)
7542 
7543  __swig_destroy__ = _IMP_core.delete_OpenCubicSpline
7544 
7545 # Register OpenCubicSpline in _IMP_core:
7546 _IMP_core.OpenCubicSpline_swigregister(OpenCubicSpline)
7547 class QuadraticClosePairsFinder(ClosePairsFinder):
7548  r"""Proxy of C++ IMP::core::QuadraticClosePairsFinder class."""
7549 
7550  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7551 
7552  def __init__(self):
7553  r"""__init__(QuadraticClosePairsFinder self) -> QuadraticClosePairsFinder"""
7554  _IMP_core.QuadraticClosePairsFinder_swiginit(self, _IMP_core.new_QuadraticClosePairsFinder())
7555 
7556  def get_are_close_and_filtered(self, *args):
7557  r"""
7558  get_are_close_and_filtered(QuadraticClosePairsFinder self, Particle a, Particle b) -> bool
7559  get_are_close_and_filtered(QuadraticClosePairsFinder self, Model m, ParticleIndex a, ParticleIndex b) -> bool
7560  """
7561  return _IMP_core.QuadraticClosePairsFinder_get_are_close_and_filtered(self, *args)
7562 
7563  def get_close_pairs(self, *args):
7564  r"""
7565  get_close_pairs(QuadraticClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
7566  get_close_pairs(QuadraticClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
7567  get_close_pairs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
7568  get_close_pairs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
7569  """
7570  return _IMP_core.QuadraticClosePairsFinder_get_close_pairs(self, *args)
7571 
7572  def do_get_inputs(self, m, pis):
7573  r"""do_get_inputs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7574  return _IMP_core.QuadraticClosePairsFinder_do_get_inputs(self, m, pis)
7575 
7576  def get_version_info(self):
7577  r"""get_version_info(QuadraticClosePairsFinder self) -> VersionInfo"""
7578  return _IMP_core.QuadraticClosePairsFinder_get_version_info(self)
7579  __swig_destroy__ = _IMP_core.delete_QuadraticClosePairsFinder
7580 
7581  def __str__(self):
7582  r"""__str__(QuadraticClosePairsFinder self) -> std::string"""
7583  return _IMP_core.QuadraticClosePairsFinder___str__(self)
7584 
7585  def __repr__(self):
7586  r"""__repr__(QuadraticClosePairsFinder self) -> std::string"""
7587  return _IMP_core.QuadraticClosePairsFinder___repr__(self)
7588 
7589  @staticmethod
7590  def get_from(o):
7591  return _object_cast_to_QuadraticClosePairsFinder(o)
7592 
7593 
7594 # Register QuadraticClosePairsFinder in _IMP_core:
7595 _IMP_core.QuadraticClosePairsFinder_swigregister(QuadraticClosePairsFinder)
7596 class RefinedPairsPairScore(IMP.PairScore):
7597  r"""Proxy of C++ IMP::core::RefinedPairsPairScore class."""
7598 
7599  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7600 
7601  def __init__(self, r, f):
7602  r"""__init__(RefinedPairsPairScore self, Refiner r, PairScore f) -> RefinedPairsPairScore"""
7603  _IMP_core.RefinedPairsPairScore_swiginit(self, _IMP_core.new_RefinedPairsPairScore(r, f))
7604 
7605  def do_get_inputs(self, m, pis):
7606  r"""do_get_inputs(RefinedPairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7607  return _IMP_core.RefinedPairsPairScore_do_get_inputs(self, m, pis)
7608 
7609  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7610  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"""
7611  return _IMP_core.RefinedPairsPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7612 
7613  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7614  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"""
7615  return _IMP_core.RefinedPairsPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7616 
7617  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7618  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"""
7619  return _IMP_core.RefinedPairsPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7620 
7621  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
7622  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"""
7623  return _IMP_core.RefinedPairsPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
7624 
7625  def get_version_info(self):
7626  r"""get_version_info(RefinedPairsPairScore self) -> VersionInfo"""
7627  return _IMP_core.RefinedPairsPairScore_get_version_info(self)
7628  __swig_destroy__ = _IMP_core.delete_RefinedPairsPairScore
7629 
7630  def __str__(self):
7631  r"""__str__(RefinedPairsPairScore self) -> std::string"""
7632  return _IMP_core.RefinedPairsPairScore___str__(self)
7633 
7634  def __repr__(self):
7635  r"""__repr__(RefinedPairsPairScore self) -> std::string"""
7636  return _IMP_core.RefinedPairsPairScore___repr__(self)
7637 
7638  @staticmethod
7639  def get_from(o):
7640  return _object_cast_to_RefinedPairsPairScore(o)
7641 
7642 
7643 # Register RefinedPairsPairScore in _IMP_core:
7644 _IMP_core.RefinedPairsPairScore_swigregister(RefinedPairsPairScore)
7645 class RigidBody(XYZ):
7646  r"""Proxy of C++ IMP::core::RigidBody class."""
7647 
7648  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7649 
7650  def get_rigid_members(self):
7651  r"""get_rigid_members(RigidBody self) -> IMP::core::RigidMembers"""
7652  return _IMP_core.RigidBody_get_rigid_members(self)
7653 
7654  @staticmethod
7655  def get_rotation_keys():
7656  r"""get_rotation_keys() -> IMP::FloatKeys"""
7657  return _IMP_core.RigidBody_get_rotation_keys()
7658 
7659  def get_member_particle_indexes(self):
7660  r"""get_member_particle_indexes(RigidBody self) -> IMP::ParticleIndexes const &"""
7661  return _IMP_core.RigidBody_get_member_particle_indexes(self)
7662 
7663  def get_body_member_particle_indexes(self):
7664  r"""get_body_member_particle_indexes(RigidBody self) -> IMP::ParticleIndexes const &"""
7665  return _IMP_core.RigidBody_get_body_member_particle_indexes(self)
7666 
7667  def get_member_indexes(self):
7668  r"""get_member_indexes(RigidBody self) -> IMP::ParticleIndexes"""
7669  return _IMP_core.RigidBody_get_member_indexes(self)
7670 
7671  def show(self, *args):
7672  r"""show(RigidBody self, _ostream out=std::cout)"""
7673  return _IMP_core.RigidBody_show(self, *args)
7674 
7675  @staticmethod
7676  def setup_particle(*args):
7677  r"""
7678  setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor ps) -> RigidBody
7679  setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor ps) -> RigidBody
7680  setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf) -> RigidBody
7681  setup_particle(_ParticleAdaptor pa, ReferenceFrame3D rf) -> RigidBody
7682  """
7683  return _IMP_core.RigidBody_setup_particle(*args)
7684 
7685  @staticmethod
7686  def teardown_particle(rb):
7687  r"""teardown_particle(RigidBody rb)"""
7688  return _IMP_core.RigidBody_teardown_particle(rb)
7689 
7690  def __init__(self, *args):
7691  r"""
7692  __init__(RigidBody self) -> RigidBody
7693  __init__(RigidBody self, Model m, ParticleIndex id) -> RigidBody
7694  __init__(RigidBody self, _ParticleAdaptor d) -> RigidBody
7695  __init__(RigidBody self, RigidBody arg2) -> RigidBody
7696  """
7697  _IMP_core.RigidBody_swiginit(self, _IMP_core.new_RigidBody(*args))
7698  __swig_destroy__ = _IMP_core.delete_RigidBody
7699 
7700  @staticmethod
7701  def get_is_setup(*args):
7702  r"""
7703  get_is_setup(_ParticleAdaptor p) -> bool
7704  get_is_setup(Model m, ParticleIndex pi) -> bool
7705  """
7706  return _IMP_core.RigidBody_get_is_setup(*args)
7707 
7708  def get_coordinates(self):
7709  r"""get_coordinates(RigidBody self) -> Vector3D"""
7710  return _IMP_core.RigidBody_get_coordinates(self)
7711 
7712  def get_rotation(self):
7713  r"""get_rotation(RigidBody self) -> Rotation3D"""
7714  return _IMP_core.RigidBody_get_rotation(self)
7715 
7716  def get_reference_frame(self):
7717  r"""get_reference_frame(RigidBody self) -> ReferenceFrame3D"""
7718  return _IMP_core.RigidBody_get_reference_frame(self)
7719 
7720  def set_reference_frame(self, tr):
7721  r"""set_reference_frame(RigidBody self, ReferenceFrame3D tr)"""
7722  return _IMP_core.RigidBody_set_reference_frame(self, tr)
7723 
7724  def set_reference_frame_lazy(self, tr):
7725  r"""set_reference_frame_lazy(RigidBody self, ReferenceFrame3D tr)"""
7726  return _IMP_core.RigidBody_set_reference_frame_lazy(self, tr)
7727 
7728  def set_reference_frame_from_members(self, members):
7729  r"""set_reference_frame_from_members(RigidBody self, IMP::ParticleIndexes const & members)"""
7730  return _IMP_core.RigidBody_set_reference_frame_from_members(self, members)
7731 
7732  def pull_back_members_adjoints(self, da):
7733  r"""pull_back_members_adjoints(RigidBody self, DerivativeAccumulator da)"""
7734  return _IMP_core.RigidBody_pull_back_members_adjoints(self, da)
7735 
7736  def pull_back_member_adjoints(self, pi, da):
7737  r"""pull_back_member_adjoints(RigidBody self, ParticleIndex pi, DerivativeAccumulator da)"""
7738  return _IMP_core.RigidBody_pull_back_member_adjoints(self, pi, da)
7739 
7740  def pull_back_body_member_adjoints(self, pi, da):
7741  r"""pull_back_body_member_adjoints(RigidBody self, ParticleIndex pi, DerivativeAccumulator da)"""
7742  return _IMP_core.RigidBody_pull_back_body_member_adjoints(self, pi, da)
7743 
7744  def add_to_derivatives(self, *args):
7745  r"""
7746  add_to_derivatives(RigidBody self, Vector3D local_derivative, Vector3D local_location, DerivativeAccumulator da)
7747  add_to_derivatives(RigidBody self, Vector3D local_derivative, Vector3D global_derivative, Vector3D local_location, Rotation3D rot_local_to_global, DerivativeAccumulator da)
7748  """
7749  return _IMP_core.RigidBody_add_to_derivatives(self, *args)
7750 
7751  def add_to_rotational_derivatives(self, *args):
7752  r"""
7753  add_to_rotational_derivatives(RigidBody self, Vector4D other_qderiv, Rotation3D rot_other_to_local, Rotation3D rot_local_to_global, DerivativeAccumulator da)
7754  add_to_rotational_derivatives(RigidBody self, Vector4D qderiv, DerivativeAccumulator da)
7755  """
7756  return _IMP_core.RigidBody_add_to_rotational_derivatives(self, *args)
7757 
7758  def add_to_torque(self, torque_local, da):
7759  r"""add_to_torque(RigidBody self, Vector3D torque_local, DerivativeAccumulator da)"""
7760  return _IMP_core.RigidBody_add_to_torque(self, torque_local, da)
7761 
7762  def get_torque(self):
7763  r"""get_torque(RigidBody self) -> Vector3D"""
7764  return _IMP_core.RigidBody_get_torque(self)
7765 
7766  def get_coordinates_are_optimized(self):
7767  r"""get_coordinates_are_optimized(RigidBody self) -> bool"""
7768  return _IMP_core.RigidBody_get_coordinates_are_optimized(self)
7769 
7770  def set_coordinates_are_optimized(self, tf):
7771  r"""set_coordinates_are_optimized(RigidBody self, bool tf)"""
7772  return _IMP_core.RigidBody_set_coordinates_are_optimized(self, tf)
7773 
7774  def normalize_rotation(self):
7775  r"""normalize_rotation(RigidBody self)"""
7776  return _IMP_core.RigidBody_normalize_rotation(self)
7777 
7778  def update_members(self):
7779  r"""update_members(RigidBody self)"""
7780  return _IMP_core.RigidBody_update_members(self)
7781 
7782  def get_rotational_derivatives(self):
7783  r"""get_rotational_derivatives(RigidBody self) -> Vector4D"""
7784  return _IMP_core.RigidBody_get_rotational_derivatives(self)
7785 
7786  def get_number_of_members(self):
7787  r"""get_number_of_members(RigidBody self) -> unsigned int"""
7788  return _IMP_core.RigidBody_get_number_of_members(self)
7789 
7790  def get_member(self, i):
7791  r"""get_member(RigidBody self, unsigned int i) -> RigidBodyMember"""
7792  return _IMP_core.RigidBody_get_member(self, i)
7793 
7794  def add_member(self, p):
7795  r"""add_member(RigidBody self, _ParticleIndexAdaptor p)"""
7796  return _IMP_core.RigidBody_add_member(self, p)
7797 
7798  def add_non_rigid_member(self, p):
7799  r"""add_non_rigid_member(RigidBody self, _ParticleIndexAdaptor p)"""
7800  return _IMP_core.RigidBody_add_non_rigid_member(self, p)
7801 
7802  def set_is_rigid_member(self, pi, tf):
7803  r"""set_is_rigid_member(RigidBody self, ParticleIndex pi, bool tf)"""
7804  return _IMP_core.RigidBody_set_is_rigid_member(self, pi, tf)
7805 
7806  def remove_member(self, p):
7807  r"""remove_member(RigidBody self, _ParticleIndexAdaptor p)"""
7808  return _IMP_core.RigidBody_remove_member(self, p)
7809 
7810  def add_attribute(self, *args):
7811  r"""
7812  add_attribute(RigidBody self, FloatKey k, IMP::Float v, bool opt)
7813  add_attribute(RigidBody self, FloatKey a0, IMP::Float a1)
7814  add_attribute(RigidBody self, IntKey a0, IMP::Int a1)
7815  add_attribute(RigidBody self, FloatsKey a0, IMP::Floats a1)
7816  add_attribute(RigidBody self, IntsKey a0, IMP::Ints a1)
7817  add_attribute(RigidBody self, StringKey a0, IMP::String a1)
7818  add_attribute(RigidBody self, ParticleIndexKey a0, Particle a1)
7819  add_attribute(RigidBody self, ObjectKey a0, Object a1)
7820  add_attribute(RigidBody self, SparseFloatKey a0, IMP::Float a1)
7821  add_attribute(RigidBody self, SparseIntKey a0, IMP::Int a1)
7822  add_attribute(RigidBody self, SparseStringKey a0, IMP::String a1)
7823  add_attribute(RigidBody self, SparseParticleIndexKey a0, ParticleIndex a1)
7824  """
7825  return _IMP_core.RigidBody_add_attribute(self, *args)
7826 
7827  def get_value(self, *args):
7828  r"""
7829  get_value(RigidBody self, FloatKey a0) -> IMP::Float
7830  get_value(RigidBody self, IntKey a0) -> IMP::Int
7831  get_value(RigidBody self, FloatsKey a0) -> IMP::Floats
7832  get_value(RigidBody self, IntsKey a0) -> IMP::Ints
7833  get_value(RigidBody self, StringKey a0) -> IMP::String
7834  get_value(RigidBody self, ParticleIndexKey a0) -> Particle
7835  get_value(RigidBody self, ObjectKey a0) -> Object
7836  get_value(RigidBody self, SparseFloatKey a0) -> IMP::Float
7837  get_value(RigidBody self, SparseIntKey a0) -> IMP::Int
7838  get_value(RigidBody self, SparseStringKey a0) -> IMP::String
7839  get_value(RigidBody self, SparseParticleIndexKey a0) -> ParticleIndex
7840  """
7841  return _IMP_core.RigidBody_get_value(self, *args)
7842 
7843  def set_value(self, *args):
7844  r"""
7845  set_value(RigidBody self, FloatKey a0, IMP::Float a1)
7846  set_value(RigidBody self, IntKey a0, IMP::Int a1)
7847  set_value(RigidBody self, FloatsKey a0, IMP::Floats a1)
7848  set_value(RigidBody self, IntsKey a0, IMP::Ints a1)
7849  set_value(RigidBody self, StringKey a0, IMP::String a1)
7850  set_value(RigidBody self, ParticleIndexKey a0, Particle a1)
7851  set_value(RigidBody self, ObjectKey a0, Object a1)
7852  set_value(RigidBody self, SparseFloatKey a0, IMP::Float a1)
7853  set_value(RigidBody self, SparseIntKey a0, IMP::Int a1)
7854  set_value(RigidBody self, SparseStringKey a0, IMP::String a1)
7855  set_value(RigidBody self, SparseParticleIndexKey a0, ParticleIndex a1)
7856  """
7857  return _IMP_core.RigidBody_set_value(self, *args)
7858 
7859  def remove_attribute(self, *args):
7860  r"""
7861  remove_attribute(RigidBody self, FloatKey a0)
7862  remove_attribute(RigidBody self, IntKey a0)
7863  remove_attribute(RigidBody self, FloatsKey a0)
7864  remove_attribute(RigidBody self, IntsKey a0)
7865  remove_attribute(RigidBody self, StringKey a0)
7866  remove_attribute(RigidBody self, ParticleIndexKey a0)
7867  remove_attribute(RigidBody self, ObjectKey a0)
7868  remove_attribute(RigidBody self, SparseFloatKey a0)
7869  remove_attribute(RigidBody self, SparseIntKey a0)
7870  remove_attribute(RigidBody self, SparseStringKey a0)
7871  remove_attribute(RigidBody self, SparseParticleIndexKey a0)
7872  """
7873  return _IMP_core.RigidBody_remove_attribute(self, *args)
7874 
7875  def has_attribute(self, *args):
7876  r"""
7877  has_attribute(RigidBody self, FloatKey a0) -> bool
7878  has_attribute(RigidBody self, IntKey a0) -> bool
7879  has_attribute(RigidBody self, FloatsKey a0) -> bool
7880  has_attribute(RigidBody self, IntsKey a0) -> bool
7881  has_attribute(RigidBody self, StringKey a0) -> bool
7882  has_attribute(RigidBody self, ParticleIndexKey a0) -> bool
7883  has_attribute(RigidBody self, ObjectKey a0) -> bool
7884  has_attribute(RigidBody self, SparseFloatKey a0) -> bool
7885  has_attribute(RigidBody self, SparseIntKey a0) -> bool
7886  has_attribute(RigidBody self, SparseStringKey a0) -> bool
7887  has_attribute(RigidBody self, SparseParticleIndexKey a0) -> bool
7888  """
7889  return _IMP_core.RigidBody_has_attribute(self, *args)
7890 
7891  def get_derivative(self, a0):
7892  r"""get_derivative(RigidBody self, FloatKey a0) -> double"""
7893  return _IMP_core.RigidBody_get_derivative(self, a0)
7894 
7895  def get_name(self):
7896  r"""get_name(RigidBody self) -> std::string"""
7897  return _IMP_core.RigidBody_get_name(self)
7898 
7899  def clear_caches(self):
7900  r"""clear_caches(RigidBody self)"""
7901  return _IMP_core.RigidBody_clear_caches(self)
7902 
7903  def set_name(self, a0):
7904  r"""set_name(RigidBody self, std::string a0)"""
7905  return _IMP_core.RigidBody_set_name(self, a0)
7906 
7907  def set_check_level(self, a0):
7908  r"""set_check_level(RigidBody self, IMP::CheckLevel a0)"""
7909  return _IMP_core.RigidBody_set_check_level(self, a0)
7910 
7911  def add_to_derivative(self, a0, a1, a2):
7912  r"""add_to_derivative(RigidBody self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
7913  return _IMP_core.RigidBody_add_to_derivative(self, a0, a1, a2)
7914 
7915  def set_is_optimized(self, a0, a1):
7916  r"""set_is_optimized(RigidBody self, FloatKey a0, bool a1)"""
7917  return _IMP_core.RigidBody_set_is_optimized(self, a0, a1)
7918 
7919  def get_is_optimized(self, a0):
7920  r"""get_is_optimized(RigidBody self, FloatKey a0) -> bool"""
7921  return _IMP_core.RigidBody_get_is_optimized(self, a0)
7922 
7923  def get_check_level(self):
7924  r"""get_check_level(RigidBody self) -> IMP::CheckLevel"""
7925  return _IMP_core.RigidBody_get_check_level(self)
7926 
7927  def __eq__(self, *args):
7928  r"""
7929  __eq__(RigidBody self, RigidBody o) -> bool
7930  __eq__(RigidBody self, Particle d) -> bool
7931  """
7932  return _IMP_core.RigidBody___eq__(self, *args)
7933 
7934  def __ne__(self, *args):
7935  r"""
7936  __ne__(RigidBody self, RigidBody o) -> bool
7937  __ne__(RigidBody self, Particle d) -> bool
7938  """
7939  return _IMP_core.RigidBody___ne__(self, *args)
7940 
7941  def __le__(self, *args):
7942  r"""
7943  __le__(RigidBody self, RigidBody o) -> bool
7944  __le__(RigidBody self, Particle d) -> bool
7945  """
7946  return _IMP_core.RigidBody___le__(self, *args)
7947 
7948  def __lt__(self, *args):
7949  r"""
7950  __lt__(RigidBody self, RigidBody o) -> bool
7951  __lt__(RigidBody self, Particle d) -> bool
7952  """
7953  return _IMP_core.RigidBody___lt__(self, *args)
7954 
7955  def __ge__(self, *args):
7956  r"""
7957  __ge__(RigidBody self, RigidBody o) -> bool
7958  __ge__(RigidBody self, Particle d) -> bool
7959  """
7960  return _IMP_core.RigidBody___ge__(self, *args)
7961 
7962  def __gt__(self, *args):
7963  r"""
7964  __gt__(RigidBody self, RigidBody o) -> bool
7965  __gt__(RigidBody self, Particle d) -> bool
7966  """
7967  return _IMP_core.RigidBody___gt__(self, *args)
7968 
7969  def __hash__(self):
7970  r"""__hash__(RigidBody self) -> std::size_t"""
7971  return _IMP_core.RigidBody___hash__(self)
7972 
7973  def __str__(self):
7974  r"""__str__(RigidBody self) -> std::string"""
7975  return _IMP_core.RigidBody___str__(self)
7976 
7977  def __repr__(self):
7978  r"""__repr__(RigidBody self) -> std::string"""
7979  return _IMP_core.RigidBody___repr__(self)
7980 
7981  def _get_as_binary(self):
7982  r"""_get_as_binary(RigidBody self) -> PyObject *"""
7983  return _IMP_core.RigidBody__get_as_binary(self)
7984 
7985  def _set_from_binary(self, p):
7986  r"""_set_from_binary(RigidBody self, PyObject * p)"""
7987  return _IMP_core.RigidBody__set_from_binary(self, p)
7988 
7989  def __getstate__(self):
7990  p = self._get_as_binary()
7991  if len(self.__dict__) > 1:
7992  d = self.__dict__.copy()
7993  del d['this']
7994  p = (d, p)
7995  return p
7996 
7997  def __setstate__(self, p):
7998  if not hasattr(self, 'this'):
7999  self.__init__()
8000  if isinstance(p, tuple):
8001  d, p = p
8002  self.__dict__.update(d)
8003  return self._set_from_binary(p)
8004 
8005 
8006 # Register RigidBody in _IMP_core:
8007 _IMP_core.RigidBody_swigregister(RigidBody)
8008 
8010  r"""add_rigid_body_cache_key(ObjectKey k)"""
8011  return _IMP_core.add_rigid_body_cache_key(k)
8012 class RigidBodyMember(XYZ):
8013  r"""Proxy of C++ IMP::core::RigidBodyMember class."""
8014 
8015  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8016 
8017  def show(self, *args):
8018  r"""show(RigidBodyMember self, _ostream out=std::cout)"""
8019  return _IMP_core.RigidBodyMember_show(self, *args)
8020 
8021  def get_rigid_body(self):
8022  r"""get_rigid_body(RigidBodyMember self) -> RigidBody"""
8023  return _IMP_core.RigidBodyMember_get_rigid_body(self)
8024 
8025  def get_internal_coordinates(self):
8026  r"""get_internal_coordinates(RigidBodyMember self) -> Vector3D"""
8027  return _IMP_core.RigidBodyMember_get_internal_coordinates(self)
8028 
8029  def set_internal_coordinates(self, v):
8030  r"""set_internal_coordinates(RigidBodyMember self, Vector3D v)"""
8031  return _IMP_core.RigidBodyMember_set_internal_coordinates(self, v)
8032 
8033  def set_internal_transformation(self, v):
8034  r"""set_internal_transformation(RigidBodyMember self, Transformation3D v)"""
8035  return _IMP_core.RigidBodyMember_set_internal_transformation(self, v)
8036 
8037  def get_internal_transformation(self):
8038  r"""get_internal_transformation(RigidBodyMember self) -> Transformation3D"""
8039  return _IMP_core.RigidBodyMember_get_internal_transformation(self)
8040  __swig_destroy__ = _IMP_core.delete_RigidBodyMember
8041 
8042  def set_coordinates(self, *args):
8043  r"""
8044  set_coordinates(RigidBodyMember self, Vector3D center)
8045  set_coordinates(RigidBodyMember self, Transformation3D tr)
8046  """
8047  return _IMP_core.RigidBodyMember_set_coordinates(self, *args)
8048 
8049  def __init__(self, *args):
8050  r"""
8051  __init__(RigidBodyMember self) -> RigidBodyMember
8052  __init__(RigidBodyMember self, Model m, ParticleIndex id) -> RigidBodyMember
8053  __init__(RigidBodyMember self, _ParticleAdaptor d) -> RigidBodyMember
8054  __init__(RigidBodyMember self, RigidBodyMember arg2) -> RigidBodyMember
8055  """
8056  _IMP_core.RigidBodyMember_swiginit(self, _IMP_core.new_RigidBodyMember(*args))
8057 
8058  @staticmethod
8059  def get_is_setup(*args):
8060  r"""
8061  get_is_setup(_ParticleAdaptor p) -> bool
8062  get_is_setup(Model m, _ParticleIndexAdaptor p) -> bool
8063  """
8064  return _IMP_core.RigidBodyMember_get_is_setup(*args)
8065 
8066  @staticmethod
8067  def get_internal_coordinate_keys():
8068  r"""get_internal_coordinate_keys() -> IMP::FloatKeys"""
8069  return _IMP_core.RigidBodyMember_get_internal_coordinate_keys()
8070 
8071  @staticmethod
8072  def get_internal_rotation_keys():
8073  r"""get_internal_rotation_keys() -> IMP::FloatKeys"""
8074  return _IMP_core.RigidBodyMember_get_internal_rotation_keys()
8075 
8076  def add_attribute(self, *args):
8077  r"""
8078  add_attribute(RigidBodyMember self, FloatKey k, IMP::Float v, bool opt)
8079  add_attribute(RigidBodyMember self, FloatKey a0, IMP::Float a1)
8080  add_attribute(RigidBodyMember self, IntKey a0, IMP::Int a1)
8081  add_attribute(RigidBodyMember self, FloatsKey a0, IMP::Floats a1)
8082  add_attribute(RigidBodyMember self, IntsKey a0, IMP::Ints a1)
8083  add_attribute(RigidBodyMember self, StringKey a0, IMP::String a1)
8084  add_attribute(RigidBodyMember self, ParticleIndexKey a0, Particle a1)
8085  add_attribute(RigidBodyMember self, ObjectKey a0, Object a1)
8086  add_attribute(RigidBodyMember self, SparseFloatKey a0, IMP::Float a1)
8087  add_attribute(RigidBodyMember self, SparseIntKey a0, IMP::Int a1)
8088  add_attribute(RigidBodyMember self, SparseStringKey a0, IMP::String a1)
8089  add_attribute(RigidBodyMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8090  """
8091  return _IMP_core.RigidBodyMember_add_attribute(self, *args)
8092 
8093  def get_value(self, *args):
8094  r"""
8095  get_value(RigidBodyMember self, FloatKey a0) -> IMP::Float
8096  get_value(RigidBodyMember self, IntKey a0) -> IMP::Int
8097  get_value(RigidBodyMember self, FloatsKey a0) -> IMP::Floats
8098  get_value(RigidBodyMember self, IntsKey a0) -> IMP::Ints
8099  get_value(RigidBodyMember self, StringKey a0) -> IMP::String
8100  get_value(RigidBodyMember self, ParticleIndexKey a0) -> Particle
8101  get_value(RigidBodyMember self, ObjectKey a0) -> Object
8102  get_value(RigidBodyMember self, SparseFloatKey a0) -> IMP::Float
8103  get_value(RigidBodyMember self, SparseIntKey a0) -> IMP::Int
8104  get_value(RigidBodyMember self, SparseStringKey a0) -> IMP::String
8105  get_value(RigidBodyMember self, SparseParticleIndexKey a0) -> ParticleIndex
8106  """
8107  return _IMP_core.RigidBodyMember_get_value(self, *args)
8108 
8109  def set_value(self, *args):
8110  r"""
8111  set_value(RigidBodyMember self, FloatKey a0, IMP::Float a1)
8112  set_value(RigidBodyMember self, IntKey a0, IMP::Int a1)
8113  set_value(RigidBodyMember self, FloatsKey a0, IMP::Floats a1)
8114  set_value(RigidBodyMember self, IntsKey a0, IMP::Ints a1)
8115  set_value(RigidBodyMember self, StringKey a0, IMP::String a1)
8116  set_value(RigidBodyMember self, ParticleIndexKey a0, Particle a1)
8117  set_value(RigidBodyMember self, ObjectKey a0, Object a1)
8118  set_value(RigidBodyMember self, SparseFloatKey a0, IMP::Float a1)
8119  set_value(RigidBodyMember self, SparseIntKey a0, IMP::Int a1)
8120  set_value(RigidBodyMember self, SparseStringKey a0, IMP::String a1)
8121  set_value(RigidBodyMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8122  """
8123  return _IMP_core.RigidBodyMember_set_value(self, *args)
8124 
8125  def remove_attribute(self, *args):
8126  r"""
8127  remove_attribute(RigidBodyMember self, FloatKey a0)
8128  remove_attribute(RigidBodyMember self, IntKey a0)
8129  remove_attribute(RigidBodyMember self, FloatsKey a0)
8130  remove_attribute(RigidBodyMember self, IntsKey a0)
8131  remove_attribute(RigidBodyMember self, StringKey a0)
8132  remove_attribute(RigidBodyMember self, ParticleIndexKey a0)
8133  remove_attribute(RigidBodyMember self, ObjectKey a0)
8134  remove_attribute(RigidBodyMember self, SparseFloatKey a0)
8135  remove_attribute(RigidBodyMember self, SparseIntKey a0)
8136  remove_attribute(RigidBodyMember self, SparseStringKey a0)
8137  remove_attribute(RigidBodyMember self, SparseParticleIndexKey a0)
8138  """
8139  return _IMP_core.RigidBodyMember_remove_attribute(self, *args)
8140 
8141  def has_attribute(self, *args):
8142  r"""
8143  has_attribute(RigidBodyMember self, FloatKey a0) -> bool
8144  has_attribute(RigidBodyMember self, IntKey a0) -> bool
8145  has_attribute(RigidBodyMember self, FloatsKey a0) -> bool
8146  has_attribute(RigidBodyMember self, IntsKey a0) -> bool
8147  has_attribute(RigidBodyMember self, StringKey a0) -> bool
8148  has_attribute(RigidBodyMember self, ParticleIndexKey a0) -> bool
8149  has_attribute(RigidBodyMember self, ObjectKey a0) -> bool
8150  has_attribute(RigidBodyMember self, SparseFloatKey a0) -> bool
8151  has_attribute(RigidBodyMember self, SparseIntKey a0) -> bool
8152  has_attribute(RigidBodyMember self, SparseStringKey a0) -> bool
8153  has_attribute(RigidBodyMember self, SparseParticleIndexKey a0) -> bool
8154  """
8155  return _IMP_core.RigidBodyMember_has_attribute(self, *args)
8156 
8157  def get_derivative(self, a0):
8158  r"""get_derivative(RigidBodyMember self, FloatKey a0) -> double"""
8159  return _IMP_core.RigidBodyMember_get_derivative(self, a0)
8160 
8161  def get_name(self):
8162  r"""get_name(RigidBodyMember self) -> std::string"""
8163  return _IMP_core.RigidBodyMember_get_name(self)
8164 
8165  def clear_caches(self):
8166  r"""clear_caches(RigidBodyMember self)"""
8167  return _IMP_core.RigidBodyMember_clear_caches(self)
8168 
8169  def set_name(self, a0):
8170  r"""set_name(RigidBodyMember self, std::string a0)"""
8171  return _IMP_core.RigidBodyMember_set_name(self, a0)
8172 
8173  def set_check_level(self, a0):
8174  r"""set_check_level(RigidBodyMember self, IMP::CheckLevel a0)"""
8175  return _IMP_core.RigidBodyMember_set_check_level(self, a0)
8176 
8177  def add_to_derivative(self, a0, a1, a2):
8178  r"""add_to_derivative(RigidBodyMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8179  return _IMP_core.RigidBodyMember_add_to_derivative(self, a0, a1, a2)
8180 
8181  def set_is_optimized(self, a0, a1):
8182  r"""set_is_optimized(RigidBodyMember self, FloatKey a0, bool a1)"""
8183  return _IMP_core.RigidBodyMember_set_is_optimized(self, a0, a1)
8184 
8185  def get_is_optimized(self, a0):
8186  r"""get_is_optimized(RigidBodyMember self, FloatKey a0) -> bool"""
8187  return _IMP_core.RigidBodyMember_get_is_optimized(self, a0)
8188 
8189  def get_check_level(self):
8190  r"""get_check_level(RigidBodyMember self) -> IMP::CheckLevel"""
8191  return _IMP_core.RigidBodyMember_get_check_level(self)
8192 
8193  def __eq__(self, *args):
8194  r"""
8195  __eq__(RigidBodyMember self, RigidBodyMember o) -> bool
8196  __eq__(RigidBodyMember self, Particle d) -> bool
8197  """
8198  return _IMP_core.RigidBodyMember___eq__(self, *args)
8199 
8200  def __ne__(self, *args):
8201  r"""
8202  __ne__(RigidBodyMember self, RigidBodyMember o) -> bool
8203  __ne__(RigidBodyMember self, Particle d) -> bool
8204  """
8205  return _IMP_core.RigidBodyMember___ne__(self, *args)
8206 
8207  def __le__(self, *args):
8208  r"""
8209  __le__(RigidBodyMember self, RigidBodyMember o) -> bool
8210  __le__(RigidBodyMember self, Particle d) -> bool
8211  """
8212  return _IMP_core.RigidBodyMember___le__(self, *args)
8213 
8214  def __lt__(self, *args):
8215  r"""
8216  __lt__(RigidBodyMember self, RigidBodyMember o) -> bool
8217  __lt__(RigidBodyMember self, Particle d) -> bool
8218  """
8219  return _IMP_core.RigidBodyMember___lt__(self, *args)
8220 
8221  def __ge__(self, *args):
8222  r"""
8223  __ge__(RigidBodyMember self, RigidBodyMember o) -> bool
8224  __ge__(RigidBodyMember self, Particle d) -> bool
8225  """
8226  return _IMP_core.RigidBodyMember___ge__(self, *args)
8227 
8228  def __gt__(self, *args):
8229  r"""
8230  __gt__(RigidBodyMember self, RigidBodyMember o) -> bool
8231  __gt__(RigidBodyMember self, Particle d) -> bool
8232  """
8233  return _IMP_core.RigidBodyMember___gt__(self, *args)
8234 
8235  def __hash__(self):
8236  r"""__hash__(RigidBodyMember self) -> std::size_t"""
8237  return _IMP_core.RigidBodyMember___hash__(self)
8238 
8239  def __str__(self):
8240  r"""__str__(RigidBodyMember self) -> std::string"""
8241  return _IMP_core.RigidBodyMember___str__(self)
8242 
8243  def __repr__(self):
8244  r"""__repr__(RigidBodyMember self) -> std::string"""
8245  return _IMP_core.RigidBodyMember___repr__(self)
8246 
8247  def _get_as_binary(self):
8248  r"""_get_as_binary(RigidBodyMember self) -> PyObject *"""
8249  return _IMP_core.RigidBodyMember__get_as_binary(self)
8250 
8251  def _set_from_binary(self, p):
8252  r"""_set_from_binary(RigidBodyMember self, PyObject * p)"""
8253  return _IMP_core.RigidBodyMember__set_from_binary(self, p)
8254 
8255  def __getstate__(self):
8256  p = self._get_as_binary()
8257  if len(self.__dict__) > 1:
8258  d = self.__dict__.copy()
8259  del d['this']
8260  p = (d, p)
8261  return p
8262 
8263  def __setstate__(self, p):
8264  if not hasattr(self, 'this'):
8265  self.__init__()
8266  if isinstance(p, tuple):
8267  d, p = p
8268  self.__dict__.update(d)
8269  return self._set_from_binary(p)
8270 
8271 
8272 # Register RigidBodyMember in _IMP_core:
8273 _IMP_core.RigidBodyMember_swigregister(RigidBodyMember)
8274 class RigidMember(RigidBodyMember):
8275  r"""Proxy of C++ IMP::core::RigidMember class."""
8276 
8277  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8278 
8279  def show(self, *args):
8280  r"""show(RigidMember self, _ostream out=std::cout)"""
8281  return _IMP_core.RigidMember_show(self, *args)
8282 
8283  def __init__(self, *args):
8284  r"""
8285  __init__(RigidMember self) -> RigidMember
8286  __init__(RigidMember self, Model m, ParticleIndex id) -> RigidMember
8287  __init__(RigidMember self, _ParticleAdaptor d) -> RigidMember
8288  __init__(RigidMember self, RigidMember arg2) -> RigidMember
8289  """
8290  _IMP_core.RigidMember_swiginit(self, _IMP_core.new_RigidMember(*args))
8291  __swig_destroy__ = _IMP_core.delete_RigidMember
8292 
8293  @staticmethod
8294  def get_is_setup(*args):
8295  r"""
8296  get_is_setup(_ParticleAdaptor p) -> bool
8297  get_is_setup(Model m, _ParticleIndexAdaptor p) -> bool
8298  """
8299  return _IMP_core.RigidMember_get_is_setup(*args)
8300 
8301  def add_attribute(self, *args):
8302  r"""
8303  add_attribute(RigidMember self, FloatKey k, IMP::Float v, bool opt)
8304  add_attribute(RigidMember self, FloatKey a0, IMP::Float a1)
8305  add_attribute(RigidMember self, IntKey a0, IMP::Int a1)
8306  add_attribute(RigidMember self, FloatsKey a0, IMP::Floats a1)
8307  add_attribute(RigidMember self, IntsKey a0, IMP::Ints a1)
8308  add_attribute(RigidMember self, StringKey a0, IMP::String a1)
8309  add_attribute(RigidMember self, ParticleIndexKey a0, Particle a1)
8310  add_attribute(RigidMember self, ObjectKey a0, Object a1)
8311  add_attribute(RigidMember self, SparseFloatKey a0, IMP::Float a1)
8312  add_attribute(RigidMember self, SparseIntKey a0, IMP::Int a1)
8313  add_attribute(RigidMember self, SparseStringKey a0, IMP::String a1)
8314  add_attribute(RigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8315  """
8316  return _IMP_core.RigidMember_add_attribute(self, *args)
8317 
8318  def get_value(self, *args):
8319  r"""
8320  get_value(RigidMember self, FloatKey a0) -> IMP::Float
8321  get_value(RigidMember self, IntKey a0) -> IMP::Int
8322  get_value(RigidMember self, FloatsKey a0) -> IMP::Floats
8323  get_value(RigidMember self, IntsKey a0) -> IMP::Ints
8324  get_value(RigidMember self, StringKey a0) -> IMP::String
8325  get_value(RigidMember self, ParticleIndexKey a0) -> Particle
8326  get_value(RigidMember self, ObjectKey a0) -> Object
8327  get_value(RigidMember self, SparseFloatKey a0) -> IMP::Float
8328  get_value(RigidMember self, SparseIntKey a0) -> IMP::Int
8329  get_value(RigidMember self, SparseStringKey a0) -> IMP::String
8330  get_value(RigidMember self, SparseParticleIndexKey a0) -> ParticleIndex
8331  """
8332  return _IMP_core.RigidMember_get_value(self, *args)
8333 
8334  def set_value(self, *args):
8335  r"""
8336  set_value(RigidMember self, FloatKey a0, IMP::Float a1)
8337  set_value(RigidMember self, IntKey a0, IMP::Int a1)
8338  set_value(RigidMember self, FloatsKey a0, IMP::Floats a1)
8339  set_value(RigidMember self, IntsKey a0, IMP::Ints a1)
8340  set_value(RigidMember self, StringKey a0, IMP::String a1)
8341  set_value(RigidMember self, ParticleIndexKey a0, Particle a1)
8342  set_value(RigidMember self, ObjectKey a0, Object a1)
8343  set_value(RigidMember self, SparseFloatKey a0, IMP::Float a1)
8344  set_value(RigidMember self, SparseIntKey a0, IMP::Int a1)
8345  set_value(RigidMember self, SparseStringKey a0, IMP::String a1)
8346  set_value(RigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8347  """
8348  return _IMP_core.RigidMember_set_value(self, *args)
8349 
8350  def remove_attribute(self, *args):
8351  r"""
8352  remove_attribute(RigidMember self, FloatKey a0)
8353  remove_attribute(RigidMember self, IntKey a0)
8354  remove_attribute(RigidMember self, FloatsKey a0)
8355  remove_attribute(RigidMember self, IntsKey a0)
8356  remove_attribute(RigidMember self, StringKey a0)
8357  remove_attribute(RigidMember self, ParticleIndexKey a0)
8358  remove_attribute(RigidMember self, ObjectKey a0)
8359  remove_attribute(RigidMember self, SparseFloatKey a0)
8360  remove_attribute(RigidMember self, SparseIntKey a0)
8361  remove_attribute(RigidMember self, SparseStringKey a0)
8362  remove_attribute(RigidMember self, SparseParticleIndexKey a0)
8363  """
8364  return _IMP_core.RigidMember_remove_attribute(self, *args)
8365 
8366  def has_attribute(self, *args):
8367  r"""
8368  has_attribute(RigidMember self, FloatKey a0) -> bool
8369  has_attribute(RigidMember self, IntKey a0) -> bool
8370  has_attribute(RigidMember self, FloatsKey a0) -> bool
8371  has_attribute(RigidMember self, IntsKey a0) -> bool
8372  has_attribute(RigidMember self, StringKey a0) -> bool
8373  has_attribute(RigidMember self, ParticleIndexKey a0) -> bool
8374  has_attribute(RigidMember self, ObjectKey a0) -> bool
8375  has_attribute(RigidMember self, SparseFloatKey a0) -> bool
8376  has_attribute(RigidMember self, SparseIntKey a0) -> bool
8377  has_attribute(RigidMember self, SparseStringKey a0) -> bool
8378  has_attribute(RigidMember self, SparseParticleIndexKey a0) -> bool
8379  """
8380  return _IMP_core.RigidMember_has_attribute(self, *args)
8381 
8382  def get_derivative(self, a0):
8383  r"""get_derivative(RigidMember self, FloatKey a0) -> double"""
8384  return _IMP_core.RigidMember_get_derivative(self, a0)
8385 
8386  def get_name(self):
8387  r"""get_name(RigidMember self) -> std::string"""
8388  return _IMP_core.RigidMember_get_name(self)
8389 
8390  def clear_caches(self):
8391  r"""clear_caches(RigidMember self)"""
8392  return _IMP_core.RigidMember_clear_caches(self)
8393 
8394  def set_name(self, a0):
8395  r"""set_name(RigidMember self, std::string a0)"""
8396  return _IMP_core.RigidMember_set_name(self, a0)
8397 
8398  def set_check_level(self, a0):
8399  r"""set_check_level(RigidMember self, IMP::CheckLevel a0)"""
8400  return _IMP_core.RigidMember_set_check_level(self, a0)
8401 
8402  def add_to_derivative(self, a0, a1, a2):
8403  r"""add_to_derivative(RigidMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8404  return _IMP_core.RigidMember_add_to_derivative(self, a0, a1, a2)
8405 
8406  def set_is_optimized(self, a0, a1):
8407  r"""set_is_optimized(RigidMember self, FloatKey a0, bool a1)"""
8408  return _IMP_core.RigidMember_set_is_optimized(self, a0, a1)
8409 
8410  def get_is_optimized(self, a0):
8411  r"""get_is_optimized(RigidMember self, FloatKey a0) -> bool"""
8412  return _IMP_core.RigidMember_get_is_optimized(self, a0)
8413 
8414  def get_check_level(self):
8415  r"""get_check_level(RigidMember self) -> IMP::CheckLevel"""
8416  return _IMP_core.RigidMember_get_check_level(self)
8417 
8418  def __eq__(self, *args):
8419  r"""
8420  __eq__(RigidMember self, RigidMember o) -> bool
8421  __eq__(RigidMember self, Particle d) -> bool
8422  """
8423  return _IMP_core.RigidMember___eq__(self, *args)
8424 
8425  def __ne__(self, *args):
8426  r"""
8427  __ne__(RigidMember self, RigidMember o) -> bool
8428  __ne__(RigidMember self, Particle d) -> bool
8429  """
8430  return _IMP_core.RigidMember___ne__(self, *args)
8431 
8432  def __le__(self, *args):
8433  r"""
8434  __le__(RigidMember self, RigidMember o) -> bool
8435  __le__(RigidMember self, Particle d) -> bool
8436  """
8437  return _IMP_core.RigidMember___le__(self, *args)
8438 
8439  def __lt__(self, *args):
8440  r"""
8441  __lt__(RigidMember self, RigidMember o) -> bool
8442  __lt__(RigidMember self, Particle d) -> bool
8443  """
8444  return _IMP_core.RigidMember___lt__(self, *args)
8445 
8446  def __ge__(self, *args):
8447  r"""
8448  __ge__(RigidMember self, RigidMember o) -> bool
8449  __ge__(RigidMember self, Particle d) -> bool
8450  """
8451  return _IMP_core.RigidMember___ge__(self, *args)
8452 
8453  def __gt__(self, *args):
8454  r"""
8455  __gt__(RigidMember self, RigidMember o) -> bool
8456  __gt__(RigidMember self, Particle d) -> bool
8457  """
8458  return _IMP_core.RigidMember___gt__(self, *args)
8459 
8460  def __hash__(self):
8461  r"""__hash__(RigidMember self) -> std::size_t"""
8462  return _IMP_core.RigidMember___hash__(self)
8463 
8464  def __str__(self):
8465  r"""__str__(RigidMember self) -> std::string"""
8466  return _IMP_core.RigidMember___str__(self)
8467 
8468  def __repr__(self):
8469  r"""__repr__(RigidMember self) -> std::string"""
8470  return _IMP_core.RigidMember___repr__(self)
8471 
8472  def _get_as_binary(self):
8473  r"""_get_as_binary(RigidMember self) -> PyObject *"""
8474  return _IMP_core.RigidMember__get_as_binary(self)
8475 
8476  def _set_from_binary(self, p):
8477  r"""_set_from_binary(RigidMember self, PyObject * p)"""
8478  return _IMP_core.RigidMember__set_from_binary(self, p)
8479 
8480  def __getstate__(self):
8481  p = self._get_as_binary()
8482  if len(self.__dict__) > 1:
8483  d = self.__dict__.copy()
8484  del d['this']
8485  p = (d, p)
8486  return p
8487 
8488  def __setstate__(self, p):
8489  if not hasattr(self, 'this'):
8490  self.__init__()
8491  if isinstance(p, tuple):
8492  d, p = p
8493  self.__dict__.update(d)
8494  return self._set_from_binary(p)
8495 
8496 
8497 # Register RigidMember in _IMP_core:
8498 _IMP_core.RigidMember_swigregister(RigidMember)
8499 class NonRigidMember(RigidBodyMember):
8500  r"""Proxy of C++ IMP::core::NonRigidMember class."""
8501 
8502  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8503 
8504  def show(self, *args):
8505  r"""show(NonRigidMember self, _ostream out=std::cout)"""
8506  return _IMP_core.NonRigidMember_show(self, *args)
8507 
8508  def __init__(self, *args):
8509  r"""
8510  __init__(NonRigidMember self) -> NonRigidMember
8511  __init__(NonRigidMember self, Model m, ParticleIndex id) -> NonRigidMember
8512  __init__(NonRigidMember self, _ParticleAdaptor d) -> NonRigidMember
8513  __init__(NonRigidMember self, NonRigidMember arg2) -> NonRigidMember
8514  """
8515  _IMP_core.NonRigidMember_swiginit(self, _IMP_core.new_NonRigidMember(*args))
8516  __swig_destroy__ = _IMP_core.delete_NonRigidMember
8517 
8518  @staticmethod
8519  def get_is_setup(*args):
8520  r"""
8521  get_is_setup(_ParticleAdaptor p) -> bool
8522  get_is_setup(Model m, ParticleIndex p) -> bool
8523  """
8524  return _IMP_core.NonRigidMember_get_is_setup(*args)
8525 
8526  def add_to_internal_derivatives(self, deriv_parent, da):
8527  r"""add_to_internal_derivatives(NonRigidMember self, Vector3D deriv_parent, DerivativeAccumulator da)"""
8528  return _IMP_core.NonRigidMember_add_to_internal_derivatives(self, deriv_parent, da)
8529 
8530  def add_to_internal_rotational_derivatives(self, *args):
8531  r"""
8532  add_to_internal_rotational_derivatives(NonRigidMember self, Vector4D local_qderiv, Rotation3D rot_local_to_parent, Rotation3D rot_parent_to_global, DerivativeAccumulator da)
8533  add_to_internal_rotational_derivatives(NonRigidMember self, Vector4D qderiv, DerivativeAccumulator da)
8534  """
8535  return _IMP_core.NonRigidMember_add_to_internal_rotational_derivatives(self, *args)
8536 
8537  def get_internal_derivatives(self):
8538  r"""get_internal_derivatives(NonRigidMember self) -> Vector3D"""
8539  return _IMP_core.NonRigidMember_get_internal_derivatives(self)
8540 
8541  def get_internal_rotational_derivatives(self):
8542  r"""get_internal_rotational_derivatives(NonRigidMember self) -> Vector4D"""
8543  return _IMP_core.NonRigidMember_get_internal_rotational_derivatives(self)
8544 
8545  def add_attribute(self, *args):
8546  r"""
8547  add_attribute(NonRigidMember self, FloatKey k, IMP::Float v, bool opt)
8548  add_attribute(NonRigidMember self, FloatKey a0, IMP::Float a1)
8549  add_attribute(NonRigidMember self, IntKey a0, IMP::Int a1)
8550  add_attribute(NonRigidMember self, FloatsKey a0, IMP::Floats a1)
8551  add_attribute(NonRigidMember self, IntsKey a0, IMP::Ints a1)
8552  add_attribute(NonRigidMember self, StringKey a0, IMP::String a1)
8553  add_attribute(NonRigidMember self, ParticleIndexKey a0, Particle a1)
8554  add_attribute(NonRigidMember self, ObjectKey a0, Object a1)
8555  add_attribute(NonRigidMember self, SparseFloatKey a0, IMP::Float a1)
8556  add_attribute(NonRigidMember self, SparseIntKey a0, IMP::Int a1)
8557  add_attribute(NonRigidMember self, SparseStringKey a0, IMP::String a1)
8558  add_attribute(NonRigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8559  """
8560  return _IMP_core.NonRigidMember_add_attribute(self, *args)
8561 
8562  def get_value(self, *args):
8563  r"""
8564  get_value(NonRigidMember self, FloatKey a0) -> IMP::Float
8565  get_value(NonRigidMember self, IntKey a0) -> IMP::Int
8566  get_value(NonRigidMember self, FloatsKey a0) -> IMP::Floats
8567  get_value(NonRigidMember self, IntsKey a0) -> IMP::Ints
8568  get_value(NonRigidMember self, StringKey a0) -> IMP::String
8569  get_value(NonRigidMember self, ParticleIndexKey a0) -> Particle
8570  get_value(NonRigidMember self, ObjectKey a0) -> Object
8571  get_value(NonRigidMember self, SparseFloatKey a0) -> IMP::Float
8572  get_value(NonRigidMember self, SparseIntKey a0) -> IMP::Int
8573  get_value(NonRigidMember self, SparseStringKey a0) -> IMP::String
8574  get_value(NonRigidMember self, SparseParticleIndexKey a0) -> ParticleIndex
8575  """
8576  return _IMP_core.NonRigidMember_get_value(self, *args)
8577 
8578  def set_value(self, *args):
8579  r"""
8580  set_value(NonRigidMember self, FloatKey a0, IMP::Float a1)
8581  set_value(NonRigidMember self, IntKey a0, IMP::Int a1)
8582  set_value(NonRigidMember self, FloatsKey a0, IMP::Floats a1)
8583  set_value(NonRigidMember self, IntsKey a0, IMP::Ints a1)
8584  set_value(NonRigidMember self, StringKey a0, IMP::String a1)
8585  set_value(NonRigidMember self, ParticleIndexKey a0, Particle a1)
8586  set_value(NonRigidMember self, ObjectKey a0, Object a1)
8587  set_value(NonRigidMember self, SparseFloatKey a0, IMP::Float a1)
8588  set_value(NonRigidMember self, SparseIntKey a0, IMP::Int a1)
8589  set_value(NonRigidMember self, SparseStringKey a0, IMP::String a1)
8590  set_value(NonRigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8591  """
8592  return _IMP_core.NonRigidMember_set_value(self, *args)
8593 
8594  def remove_attribute(self, *args):
8595  r"""
8596  remove_attribute(NonRigidMember self, FloatKey a0)
8597  remove_attribute(NonRigidMember self, IntKey a0)
8598  remove_attribute(NonRigidMember self, FloatsKey a0)
8599  remove_attribute(NonRigidMember self, IntsKey a0)
8600  remove_attribute(NonRigidMember self, StringKey a0)
8601  remove_attribute(NonRigidMember self, ParticleIndexKey a0)
8602  remove_attribute(NonRigidMember self, ObjectKey a0)
8603  remove_attribute(NonRigidMember self, SparseFloatKey a0)
8604  remove_attribute(NonRigidMember self, SparseIntKey a0)
8605  remove_attribute(NonRigidMember self, SparseStringKey a0)
8606  remove_attribute(NonRigidMember self, SparseParticleIndexKey a0)
8607  """
8608  return _IMP_core.NonRigidMember_remove_attribute(self, *args)
8609 
8610  def has_attribute(self, *args):
8611  r"""
8612  has_attribute(NonRigidMember self, FloatKey a0) -> bool
8613  has_attribute(NonRigidMember self, IntKey a0) -> bool
8614  has_attribute(NonRigidMember self, FloatsKey a0) -> bool
8615  has_attribute(NonRigidMember self, IntsKey a0) -> bool
8616  has_attribute(NonRigidMember self, StringKey a0) -> bool
8617  has_attribute(NonRigidMember self, ParticleIndexKey a0) -> bool
8618  has_attribute(NonRigidMember self, ObjectKey a0) -> bool
8619  has_attribute(NonRigidMember self, SparseFloatKey a0) -> bool
8620  has_attribute(NonRigidMember self, SparseIntKey a0) -> bool
8621  has_attribute(NonRigidMember self, SparseStringKey a0) -> bool
8622  has_attribute(NonRigidMember self, SparseParticleIndexKey a0) -> bool
8623  """
8624  return _IMP_core.NonRigidMember_has_attribute(self, *args)
8625 
8626  def get_derivative(self, a0):
8627  r"""get_derivative(NonRigidMember self, FloatKey a0) -> double"""
8628  return _IMP_core.NonRigidMember_get_derivative(self, a0)
8629 
8630  def get_name(self):
8631  r"""get_name(NonRigidMember self) -> std::string"""
8632  return _IMP_core.NonRigidMember_get_name(self)
8633 
8634  def clear_caches(self):
8635  r"""clear_caches(NonRigidMember self)"""
8636  return _IMP_core.NonRigidMember_clear_caches(self)
8637 
8638  def set_name(self, a0):
8639  r"""set_name(NonRigidMember self, std::string a0)"""
8640  return _IMP_core.NonRigidMember_set_name(self, a0)
8641 
8642  def set_check_level(self, a0):
8643  r"""set_check_level(NonRigidMember self, IMP::CheckLevel a0)"""
8644  return _IMP_core.NonRigidMember_set_check_level(self, a0)
8645 
8646  def add_to_derivative(self, a0, a1, a2):
8647  r"""add_to_derivative(NonRigidMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8648  return _IMP_core.NonRigidMember_add_to_derivative(self, a0, a1, a2)
8649 
8650  def set_is_optimized(self, a0, a1):
8651  r"""set_is_optimized(NonRigidMember self, FloatKey a0, bool a1)"""
8652  return _IMP_core.NonRigidMember_set_is_optimized(self, a0, a1)
8653 
8654  def get_is_optimized(self, a0):
8655  r"""get_is_optimized(NonRigidMember self, FloatKey a0) -> bool"""
8656  return _IMP_core.NonRigidMember_get_is_optimized(self, a0)
8657 
8658  def get_check_level(self):
8659  r"""get_check_level(NonRigidMember self) -> IMP::CheckLevel"""
8660  return _IMP_core.NonRigidMember_get_check_level(self)
8661 
8662  def __eq__(self, *args):
8663  r"""
8664  __eq__(NonRigidMember self, NonRigidMember o) -> bool
8665  __eq__(NonRigidMember self, Particle d) -> bool
8666  """
8667  return _IMP_core.NonRigidMember___eq__(self, *args)
8668 
8669  def __ne__(self, *args):
8670  r"""
8671  __ne__(NonRigidMember self, NonRigidMember o) -> bool
8672  __ne__(NonRigidMember self, Particle d) -> bool
8673  """
8674  return _IMP_core.NonRigidMember___ne__(self, *args)
8675 
8676  def __le__(self, *args):
8677  r"""
8678  __le__(NonRigidMember self, NonRigidMember o) -> bool
8679  __le__(NonRigidMember self, Particle d) -> bool
8680  """
8681  return _IMP_core.NonRigidMember___le__(self, *args)
8682 
8683  def __lt__(self, *args):
8684  r"""
8685  __lt__(NonRigidMember self, NonRigidMember o) -> bool
8686  __lt__(NonRigidMember self, Particle d) -> bool
8687  """
8688  return _IMP_core.NonRigidMember___lt__(self, *args)
8689 
8690  def __ge__(self, *args):
8691  r"""
8692  __ge__(NonRigidMember self, NonRigidMember o) -> bool
8693  __ge__(NonRigidMember self, Particle d) -> bool
8694  """
8695  return _IMP_core.NonRigidMember___ge__(self, *args)
8696 
8697  def __gt__(self, *args):
8698  r"""
8699  __gt__(NonRigidMember self, NonRigidMember o) -> bool
8700  __gt__(NonRigidMember self, Particle d) -> bool
8701  """
8702  return _IMP_core.NonRigidMember___gt__(self, *args)
8703 
8704  def __hash__(self):
8705  r"""__hash__(NonRigidMember self) -> std::size_t"""
8706  return _IMP_core.NonRigidMember___hash__(self)
8707 
8708  def __str__(self):
8709  r"""__str__(NonRigidMember self) -> std::string"""
8710  return _IMP_core.NonRigidMember___str__(self)
8711 
8712  def __repr__(self):
8713  r"""__repr__(NonRigidMember self) -> std::string"""
8714  return _IMP_core.NonRigidMember___repr__(self)
8715 
8716  def _get_as_binary(self):
8717  r"""_get_as_binary(NonRigidMember self) -> PyObject *"""
8718  return _IMP_core.NonRigidMember__get_as_binary(self)
8719 
8720  def _set_from_binary(self, p):
8721  r"""_set_from_binary(NonRigidMember self, PyObject * p)"""
8722  return _IMP_core.NonRigidMember__set_from_binary(self, p)
8723 
8724  def __getstate__(self):
8725  p = self._get_as_binary()
8726  if len(self.__dict__) > 1:
8727  d = self.__dict__.copy()
8728  del d['this']
8729  p = (d, p)
8730  return p
8731 
8732  def __setstate__(self, p):
8733  if not hasattr(self, 'this'):
8734  self.__init__()
8735  if isinstance(p, tuple):
8736  d, p = p
8737  self.__dict__.update(d)
8738  return self._set_from_binary(p)
8739 
8740 
8741 # Register NonRigidMember in _IMP_core:
8742 _IMP_core.NonRigidMember_swigregister(NonRigidMember)
8743 class RigidMembersRefiner(IMP.Refiner):
8744  r"""Proxy of C++ IMP::core::RigidMembersRefiner class."""
8745 
8746  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8747 
8748  def __init__(self, *args):
8749  r"""__init__(RigidMembersRefiner self, std::string name="RigidMembersRefiner%d") -> RigidMembersRefiner"""
8750  _IMP_core.RigidMembersRefiner_swiginit(self, _IMP_core.new_RigidMembersRefiner(*args))
8751 
8752  def do_get_inputs(self, m, pis):
8753  r"""do_get_inputs(RigidMembersRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8754  return _IMP_core.RigidMembersRefiner_do_get_inputs(self, m, pis)
8755 
8756  def get_version_info(self):
8757  r"""get_version_info(RigidMembersRefiner self) -> VersionInfo"""
8758  return _IMP_core.RigidMembersRefiner_get_version_info(self)
8759  __swig_destroy__ = _IMP_core.delete_RigidMembersRefiner
8760 
8761  def __str__(self):
8762  r"""__str__(RigidMembersRefiner self) -> std::string"""
8763  return _IMP_core.RigidMembersRefiner___str__(self)
8764 
8765  def __repr__(self):
8766  r"""__repr__(RigidMembersRefiner self) -> std::string"""
8767  return _IMP_core.RigidMembersRefiner___repr__(self)
8768 
8769  @staticmethod
8770  def get_from(o):
8771  return _object_cast_to_RigidMembersRefiner(o)
8772 
8773 
8774 # Register RigidMembersRefiner in _IMP_core:
8775 _IMP_core.RigidMembersRefiner_swigregister(RigidMembersRefiner)
8776 
8777 def get_rigid_members_refiner():
8778  r"""get_rigid_members_refiner() -> RigidMembersRefiner"""
8779  return _IMP_core.get_rigid_members_refiner()
8780 
8781 def transform(*args):
8782  r"""
8783  transform(XYZ a, Transformation3D tr)
8784  transform(RigidBody a, Transformation3D tr)
8785  """
8786  return _IMP_core.transform(*args)
8787 
8788 def get_initial_reference_frame(*args):
8789  r"""
8790  get_initial_reference_frame(Model m, IMP::ParticleIndexes const & pis) -> ReferenceFrame3D
8791  get_initial_reference_frame(IMP::ParticlesTemp const & ps) -> ReferenceFrame3D
8792  """
8793  return _IMP_core.get_initial_reference_frame(*args)
8794 
8795 def create_rigid_bodies(m, n, no_members=False):
8796  r"""create_rigid_bodies(Model m, unsigned int n, bool no_members=False) -> IMP::ParticlesTemp"""
8797  return _IMP_core.create_rigid_bodies(m, n, no_members)
8798 
8799 def show_rigid_body_hierarchy(*args):
8800  r"""show_rigid_body_hierarchy(RigidBody rb, TextOutput out=IMP::TextOutput(std::cout))"""
8801  return _IMP_core.show_rigid_body_hierarchy(*args)
8802 
8803 def get_root_rigid_body(m):
8804  r"""get_root_rigid_body(RigidMember m) -> ParticleIndex"""
8805  return _IMP_core.get_root_rigid_body(m)
8806 class RigidBodyHierarchyGeometry(IMP.display.SingletonGeometry):
8807  r"""Proxy of C++ IMP::core::RigidBodyHierarchyGeometry class."""
8808 
8809  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8810 
8811  def __init__(self, rb, constituents):
8812  r"""__init__(RigidBodyHierarchyGeometry self, RigidBody rb, IMP::ParticlesTemp const & constituents) -> RigidBodyHierarchyGeometry"""
8813  _IMP_core.RigidBodyHierarchyGeometry_swiginit(self, _IMP_core.new_RigidBodyHierarchyGeometry(rb, constituents))
8814 
8815  def get_version_info(self):
8816  r"""get_version_info(RigidBodyHierarchyGeometry self) -> VersionInfo"""
8817  return _IMP_core.RigidBodyHierarchyGeometry_get_version_info(self)
8818  __swig_destroy__ = _IMP_core.delete_RigidBodyHierarchyGeometry
8819 
8820  def __str__(self):
8821  r"""__str__(RigidBodyHierarchyGeometry self) -> std::string"""
8822  return _IMP_core.RigidBodyHierarchyGeometry___str__(self)
8823 
8824  def __repr__(self):
8825  r"""__repr__(RigidBodyHierarchyGeometry self) -> std::string"""
8826  return _IMP_core.RigidBodyHierarchyGeometry___repr__(self)
8827 
8828  @staticmethod
8829  def get_from(o):
8830  return _object_cast_to_RigidBodyHierarchyGeometry(o)
8831 
8832 
8833 # Register RigidBodyHierarchyGeometry in _IMP_core:
8834 _IMP_core.RigidBodyHierarchyGeometry_swigregister(RigidBodyHierarchyGeometry)
8835 class RigidBodyDerivativeGeometry(IMP.display.SingletonGeometry):
8836  r"""Proxy of C++ IMP::core::RigidBodyDerivativeGeometry class."""
8837 
8838  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8839 
8840  def __init__(self, *args):
8841  r"""
8842  __init__(RigidBodyDerivativeGeometry self, Particle p) -> RigidBodyDerivativeGeometry
8843  __init__(RigidBodyDerivativeGeometry self, RigidBody d) -> RigidBodyDerivativeGeometry
8844  """
8845  _IMP_core.RigidBodyDerivativeGeometry_swiginit(self, _IMP_core.new_RigidBodyDerivativeGeometry(*args))
8846 
8847  def get_version_info(self):
8848  r"""get_version_info(RigidBodyDerivativeGeometry self) -> VersionInfo"""
8849  return _IMP_core.RigidBodyDerivativeGeometry_get_version_info(self)
8850  __swig_destroy__ = _IMP_core.delete_RigidBodyDerivativeGeometry
8851 
8852  def __str__(self):
8853  r"""__str__(RigidBodyDerivativeGeometry self) -> std::string"""
8854  return _IMP_core.RigidBodyDerivativeGeometry___str__(self)
8855 
8856  def __repr__(self):
8857  r"""__repr__(RigidBodyDerivativeGeometry self) -> std::string"""
8858  return _IMP_core.RigidBodyDerivativeGeometry___repr__(self)
8859 
8860  @staticmethod
8861  def get_from(o):
8862  return _object_cast_to_RigidBodyDerivativeGeometry(o)
8863 
8864 
8865 # Register RigidBodyDerivativeGeometry in _IMP_core:
8866 _IMP_core.RigidBodyDerivativeGeometry_swigregister(RigidBodyDerivativeGeometry)
8867 class RigidBodyDerivativesGeometry(IMP.display.SingletonsGeometry):
8868  r"""Proxy of C++ IMP::core::RigidBodyDerivativesGeometry class."""
8869 
8870  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8871 
8872  def __init__(self, sc):
8873  r"""__init__(RigidBodyDerivativesGeometry self, SingletonContainer sc) -> RigidBodyDerivativesGeometry"""
8874  _IMP_core.RigidBodyDerivativesGeometry_swiginit(self, _IMP_core.new_RigidBodyDerivativesGeometry(sc))
8875 
8876  def get_version_info(self):
8877  r"""get_version_info(RigidBodyDerivativesGeometry self) -> VersionInfo"""
8878  return _IMP_core.RigidBodyDerivativesGeometry_get_version_info(self)
8879  __swig_destroy__ = _IMP_core.delete_RigidBodyDerivativesGeometry
8880 
8881  def __str__(self):
8882  r"""__str__(RigidBodyDerivativesGeometry self) -> std::string"""
8883  return _IMP_core.RigidBodyDerivativesGeometry___str__(self)
8884 
8885  def __repr__(self):
8886  r"""__repr__(RigidBodyDerivativesGeometry self) -> std::string"""
8887  return _IMP_core.RigidBodyDerivativesGeometry___repr__(self)
8888 
8889  @staticmethod
8890  def get_from(o):
8891  return _object_cast_to_RigidBodyDerivativesGeometry(o)
8892 
8893 
8894 # Register RigidBodyDerivativesGeometry in _IMP_core:
8895 _IMP_core.RigidBodyDerivativesGeometry_swigregister(RigidBodyDerivativesGeometry)
8896 class RigidBodyFrameGeometry(IMP.display.SingletonGeometry):
8897  r"""Proxy of C++ IMP::core::RigidBodyFrameGeometry class."""
8898 
8899  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8900 
8901  def __init__(self, *args):
8902  r"""
8903  __init__(RigidBodyFrameGeometry self, Particle p) -> RigidBodyFrameGeometry
8904  __init__(RigidBodyFrameGeometry self, RigidBody d) -> RigidBodyFrameGeometry
8905  """
8906  _IMP_core.RigidBodyFrameGeometry_swiginit(self, _IMP_core.new_RigidBodyFrameGeometry(*args))
8907 
8908  def get_version_info(self):
8909  r"""get_version_info(RigidBodyFrameGeometry self) -> VersionInfo"""
8910  return _IMP_core.RigidBodyFrameGeometry_get_version_info(self)
8911  __swig_destroy__ = _IMP_core.delete_RigidBodyFrameGeometry
8912 
8913  def __str__(self):
8914  r"""__str__(RigidBodyFrameGeometry self) -> std::string"""
8915  return _IMP_core.RigidBodyFrameGeometry___str__(self)
8916 
8917  def __repr__(self):
8918  r"""__repr__(RigidBodyFrameGeometry self) -> std::string"""
8919  return _IMP_core.RigidBodyFrameGeometry___repr__(self)
8920 
8921  @staticmethod
8922  def get_from(o):
8923  return _object_cast_to_RigidBodyFrameGeometry(o)
8924 
8925 
8926 # Register RigidBodyFrameGeometry in _IMP_core:
8927 _IMP_core.RigidBodyFrameGeometry_swigregister(RigidBodyFrameGeometry)
8928 class RigidBodyFramesGeometry(IMP.display.SingletonsGeometry):
8929  r"""Proxy of C++ IMP::core::RigidBodyFramesGeometry class."""
8930 
8931  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8932 
8933  def __init__(self, sc):
8934  r"""__init__(RigidBodyFramesGeometry self, SingletonContainer sc) -> RigidBodyFramesGeometry"""
8935  _IMP_core.RigidBodyFramesGeometry_swiginit(self, _IMP_core.new_RigidBodyFramesGeometry(sc))
8936 
8937  def get_version_info(self):
8938  r"""get_version_info(RigidBodyFramesGeometry self) -> VersionInfo"""
8939  return _IMP_core.RigidBodyFramesGeometry_get_version_info(self)
8940  __swig_destroy__ = _IMP_core.delete_RigidBodyFramesGeometry
8941 
8942  def __str__(self):
8943  r"""__str__(RigidBodyFramesGeometry self) -> std::string"""
8944  return _IMP_core.RigidBodyFramesGeometry___str__(self)
8945 
8946  def __repr__(self):
8947  r"""__repr__(RigidBodyFramesGeometry self) -> std::string"""
8948  return _IMP_core.RigidBodyFramesGeometry___repr__(self)
8949 
8950  @staticmethod
8951  def get_from(o):
8952  return _object_cast_to_RigidBodyFramesGeometry(o)
8953 
8954 
8955 # Register RigidBodyFramesGeometry in _IMP_core:
8956 _IMP_core.RigidBodyFramesGeometry_swigregister(RigidBodyFramesGeometry)
8957 class RigidBodyTorque(IMP.display.SegmentGeometry):
8958  r"""Proxy of C++ IMP::core::RigidBodyTorque class."""
8959 
8960  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8961 
8962  def __init__(self, p):
8963  r"""__init__(RigidBodyTorque self, Particle p) -> RigidBodyTorque"""
8964  _IMP_core.RigidBodyTorque_swiginit(self, _IMP_core.new_RigidBodyTorque(p))
8965 
8966  def __str__(self):
8967  r"""__str__(RigidBodyTorque self) -> std::string"""
8968  return _IMP_core.RigidBodyTorque___str__(self)
8969 
8970  def __repr__(self):
8971  r"""__repr__(RigidBodyTorque self) -> std::string"""
8972  return _IMP_core.RigidBodyTorque___repr__(self)
8973 
8974  @staticmethod
8975  def get_from(o):
8976  return _object_cast_to_RigidBodyTorque(o)
8977 
8978  __swig_destroy__ = _IMP_core.delete_RigidBodyTorque
8979 
8980 # Register RigidBodyTorque in _IMP_core:
8981 _IMP_core.RigidBodyTorque_swigregister(RigidBodyTorque)
8982 class NearestNeighborsClosePairsFinder(ClosePairsFinder):
8983  r"""Proxy of C++ IMP::core::NearestNeighborsClosePairsFinder class."""
8984 
8985  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8986 
8987  def __init__(self):
8988  r"""__init__(NearestNeighborsClosePairsFinder self) -> NearestNeighborsClosePairsFinder"""
8989  _IMP_core.NearestNeighborsClosePairsFinder_swiginit(self, _IMP_core.new_NearestNeighborsClosePairsFinder())
8990 
8991  def get_close_pairs(self, *args):
8992  r"""
8993  get_close_pairs(NearestNeighborsClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
8994  get_close_pairs(NearestNeighborsClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
8995  get_close_pairs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
8996  get_close_pairs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
8997  """
8998  return _IMP_core.NearestNeighborsClosePairsFinder_get_close_pairs(self, *args)
8999 
9000  def do_get_inputs(self, m, pis):
9001  r"""do_get_inputs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9002  return _IMP_core.NearestNeighborsClosePairsFinder_do_get_inputs(self, m, pis)
9003 
9004  def get_version_info(self):
9005  r"""get_version_info(NearestNeighborsClosePairsFinder self) -> VersionInfo"""
9006  return _IMP_core.NearestNeighborsClosePairsFinder_get_version_info(self)
9007  __swig_destroy__ = _IMP_core.delete_NearestNeighborsClosePairsFinder
9008 
9009  def __str__(self):
9010  r"""__str__(NearestNeighborsClosePairsFinder self) -> std::string"""
9011  return _IMP_core.NearestNeighborsClosePairsFinder___str__(self)
9012 
9013  def __repr__(self):
9014  r"""__repr__(NearestNeighborsClosePairsFinder self) -> std::string"""
9015  return _IMP_core.NearestNeighborsClosePairsFinder___repr__(self)
9016 
9017  @staticmethod
9018  def get_from(o):
9019  return _object_cast_to_NearestNeighborsClosePairsFinder(o)
9020 
9021 
9022 # Register NearestNeighborsClosePairsFinder in _IMP_core:
9023 _IMP_core.NearestNeighborsClosePairsFinder_swigregister(NearestNeighborsClosePairsFinder)
9024 class RestraintsScoringFunction(IMP.ScoringFunction):
9025  r"""Proxy of C++ IMP::core::RestraintsScoringFunction class."""
9026 
9027  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9028 
9029  def __init__(self, *args):
9030  r"""
9031  __init__(RestraintsScoringFunction self, _RestraintsAdaptor rs, double weight=1.0, double max=NO_MAX, std::string name="RestraintsScoringFunction%1%") -> RestraintsScoringFunction
9032  __init__(RestraintsScoringFunction self, _RestraintsAdaptor rs, std::string name) -> RestraintsScoringFunction
9033  __init__(RestraintsScoringFunction self) -> RestraintsScoringFunction
9034  """
9035  _IMP_core.RestraintsScoringFunction_swiginit(self, _IMP_core.new_RestraintsScoringFunction(*args))
9036 
9037  def do_add_score_and_derivatives(self, sa, ss):
9038  r"""do_add_score_and_derivatives(RestraintsScoringFunction self, ScoreAccumulator sa, IMP::ScoreStatesTemp const & ss)"""
9039  return _IMP_core.RestraintsScoringFunction_do_add_score_and_derivatives(self, sa, ss)
9040 
9041  def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss):
9042  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)"""
9043  return _IMP_core.RestraintsScoringFunction_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss)
9044 
9045  def do_get_inputs(self):
9046  r"""do_get_inputs(RestraintsScoringFunction self) -> IMP::ModelObjectsTemp"""
9047  return _IMP_core.RestraintsScoringFunction_do_get_inputs(self)
9048 
9049  def get_restraints(self):
9050  r"""get_restraints(RestraintsScoringFunction self) -> IMP::Restraints"""
9051  return _IMP_core.RestraintsScoringFunction_get_restraints(self)
9052 
9053  def set_restraints(self, d):
9054  r"""set_restraints(RestraintsScoringFunction self, IMP::Restraints const & d)"""
9055  return _IMP_core.RestraintsScoringFunction_set_restraints(self, d)
9056 
9057  def get_number_of_restraints(self):
9058  r"""get_number_of_restraints(RestraintsScoringFunction self) -> unsigned int"""
9059  return _IMP_core.RestraintsScoringFunction_get_number_of_restraints(self)
9060 
9061  def clear_restraints(self):
9062  r"""clear_restraints(RestraintsScoringFunction self)"""
9063  return _IMP_core.RestraintsScoringFunction_clear_restraints(self)
9064 
9065  def get_restraint(self, i):
9066  r"""get_restraint(RestraintsScoringFunction self, unsigned int i) -> Restraint"""
9067  return _IMP_core.RestraintsScoringFunction_get_restraint(self, i)
9068 
9069  def erase_restraint(self, i):
9070  r"""erase_restraint(RestraintsScoringFunction self, unsigned int i)"""
9071  return _IMP_core.RestraintsScoringFunction_erase_restraint(self, i)
9072 
9073  def add_restraint(self, d):
9074  r"""add_restraint(RestraintsScoringFunction self, Restraint d) -> unsigned int"""
9075  return _IMP_core.RestraintsScoringFunction_add_restraint(self, d)
9076 
9077  def add_restraints(self, d):
9078  r"""add_restraints(RestraintsScoringFunction self, IMP::Restraints const & d)"""
9079  return _IMP_core.RestraintsScoringFunction_add_restraints(self, d)
9080 
9081  def _python_index_restraint(self, r, start, stop):
9082  r"""_python_index_restraint(RestraintsScoringFunction self, Restraint r, unsigned int start, unsigned int stop) -> unsigned int"""
9083  return _IMP_core.RestraintsScoringFunction__python_index_restraint(self, r, start, stop)
9084  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)
9085  def __set_restraints(self, obj): IMP._list_util.set_varlist(self.restraints, obj)
9086  def __del_restraints(self): IMP._list_util.del_varlist(self.restraints)
9087  restraints = property(__get_restraints, __set_restraints, __del_restraints, doc="List of ##Restraints")
9088 
9089  def get_version_info(self):
9090  r"""get_version_info(RestraintsScoringFunction self) -> VersionInfo"""
9091  return _IMP_core.RestraintsScoringFunction_get_version_info(self)
9092  __swig_destroy__ = _IMP_core.delete_RestraintsScoringFunction
9093 
9094  def __str__(self):
9095  r"""__str__(RestraintsScoringFunction self) -> std::string"""
9096  return _IMP_core.RestraintsScoringFunction___str__(self)
9097 
9098  def __repr__(self):
9099  r"""__repr__(RestraintsScoringFunction self) -> std::string"""
9100  return _IMP_core.RestraintsScoringFunction___repr__(self)
9101 
9102  @staticmethod
9103  def get_from(o):
9104  return _object_cast_to_RestraintsScoringFunction(o)
9105 
9106 
9107  def _get_as_binary(self):
9108  r"""_get_as_binary(RestraintsScoringFunction self) -> PyObject *"""
9109  return _IMP_core.RestraintsScoringFunction__get_as_binary(self)
9110 
9111  def _set_from_binary(self, p):
9112  r"""_set_from_binary(RestraintsScoringFunction self, PyObject * p)"""
9113  return _IMP_core.RestraintsScoringFunction__set_from_binary(self, p)
9114 
9115  def __getstate__(self):
9116  p = self._get_as_binary()
9117  if len(self.__dict__) > 1:
9118  d = self.__dict__.copy()
9119  del d['this']
9120  p = (d, p)
9121  return p
9122 
9123  def __setstate__(self, p):
9124  if not hasattr(self, 'this'):
9125  self.__init__()
9126  if isinstance(p, tuple):
9127  d, p = p
9128  self.__dict__.update(d)
9129  return self._set_from_binary(p)
9130 
9131 
9132  def _get_jax(self):
9133  import IMP._jax_util
9134  funcs = [r.get_derived_object()._get_jax().score_func
9135  for r in self.restraints]
9136  def jax_sf(X):
9137  return sum(f(X) for f in funcs)
9138  return IMP._jax_util.JaxInfo(m=self.get_model(), score_func=jax_sf,
9139  weight=1.0)
9140 
9141 
9142 # Register RestraintsScoringFunction in _IMP_core:
9143 _IMP_core.RestraintsScoringFunction_swigregister(RestraintsScoringFunction)
9144 class RigidClosePairsFinder(ClosePairsFinder):
9145  r"""Proxy of C++ IMP::core::RigidClosePairsFinder class."""
9146 
9147  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9148 
9149  def __init__(self, cpf=None):
9150  r"""__init__(RigidClosePairsFinder self, ClosePairsFinder cpf=None) -> RigidClosePairsFinder"""
9151  _IMP_core.RigidClosePairsFinder_swiginit(self, _IMP_core.new_RigidClosePairsFinder(cpf))
9152 
9153  def do_get_inputs(self, m, pis):
9154  r"""do_get_inputs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9155  return _IMP_core.RigidClosePairsFinder_do_get_inputs(self, m, pis)
9156 
9157  def get_close_pairs(self, *args):
9158  r"""
9159  get_close_pairs(RigidClosePairsFinder self, Model m, ParticleIndex a, ParticleIndex b, IMP::ParticleIndexes const & pa, IMP::ParticleIndexes const & pb) -> IMP::ParticleIndexPairs
9160  get_close_pairs(RigidClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
9161  get_close_pairs(RigidClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
9162  get_close_pairs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
9163  get_close_pairs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
9164  """
9165  return _IMP_core.RigidClosePairsFinder_get_close_pairs(self, *args)
9166 
9167  def get_version_info(self):
9168  r"""get_version_info(RigidClosePairsFinder self) -> VersionInfo"""
9169  return _IMP_core.RigidClosePairsFinder_get_version_info(self)
9170  __swig_destroy__ = _IMP_core.delete_RigidClosePairsFinder
9171 
9172  def __str__(self):
9173  r"""__str__(RigidClosePairsFinder self) -> std::string"""
9174  return _IMP_core.RigidClosePairsFinder___str__(self)
9175 
9176  def __repr__(self):
9177  r"""__repr__(RigidClosePairsFinder self) -> std::string"""
9178  return _IMP_core.RigidClosePairsFinder___repr__(self)
9179 
9180  @staticmethod
9181  def get_from(o):
9182  return _object_cast_to_RigidClosePairsFinder(o)
9183 
9184 
9185  def _get_as_binary(self):
9186  r"""_get_as_binary(RigidClosePairsFinder self) -> PyObject *"""
9187  return _IMP_core.RigidClosePairsFinder__get_as_binary(self)
9188 
9189  def _set_from_binary(self, p):
9190  r"""_set_from_binary(RigidClosePairsFinder self, PyObject * p)"""
9191  return _IMP_core.RigidClosePairsFinder__set_from_binary(self, p)
9192 
9193  def __getstate__(self):
9194  p = self._get_as_binary()
9195  if len(self.__dict__) > 1:
9196  d = self.__dict__.copy()
9197  del d['this']
9198  p = (d, p)
9199  return p
9200 
9201  def __setstate__(self, p):
9202  if not hasattr(self, 'this'):
9203  self.__init__()
9204  if isinstance(p, tuple):
9205  d, p = p
9206  self.__dict__.update(d)
9207  return self._set_from_binary(p)
9208 
9209 
9210 # Register RigidClosePairsFinder in _IMP_core:
9211 _IMP_core.RigidClosePairsFinder_swigregister(RigidClosePairsFinder)
9212 class _SphereDistancePairScore(IMP.PairScore):
9213  r"""Proxy of C++ IMP::core::SphereDistancePairScore class."""
9214 
9215  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9216  __repr__ = _swig_repr
9217 
9218  def __init__(self, *args):
9219  r"""
9220  SphereDistancePairScore(UnaryFunction uf, std::string name="SphereDistancePairScore%1%") -> _SphereDistancePairScore
9221  __init__(_SphereDistancePairScore self) -> _SphereDistancePairScore
9222  """
9223  _IMP_core._SphereDistancePairScore_swiginit(self, _IMP_core.new__SphereDistancePairScore(*args))
9224 
9225  def do_get_inputs(self, m, pis):
9226  r"""do_get_inputs(_SphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9227  return _IMP_core._SphereDistancePairScore_do_get_inputs(self, m, pis)
9228 
9229  def get_version_info(self):
9230  r"""get_version_info(_SphereDistancePairScore self) -> VersionInfo"""
9231  return _IMP_core._SphereDistancePairScore_get_version_info(self)
9232  __swig_destroy__ = _IMP_core.delete__SphereDistancePairScore
9233 
9234  @staticmethod
9235  def get_from(o):
9236  return _object_cast_to__SphereDistancePairScore(o)
9237 
9238 
9239  def _get_as_binary(self):
9240  r"""_get_as_binary(_SphereDistancePairScore self) -> PyObject *"""
9241  return _IMP_core._SphereDistancePairScore__get_as_binary(self)
9242 
9243  def _set_from_binary(self, p):
9244  r"""_set_from_binary(_SphereDistancePairScore self, PyObject * p)"""
9245  return _IMP_core._SphereDistancePairScore__set_from_binary(self, p)
9246 
9247  def __getstate__(self):
9248  p = self._get_as_binary()
9249  if len(self.__dict__) > 1:
9250  d = self.__dict__.copy()
9251  del d['this']
9252  p = (d, p)
9253  return p
9254 
9255  def __setstate__(self, p):
9256  if not hasattr(self, 'this'):
9257  self.__init__()
9258  if isinstance(p, tuple):
9259  d, p = p
9260  self.__dict__.update(d)
9261  return self._set_from_binary(p)
9262 
9263 
9264 # Register _SphereDistancePairScore in _IMP_core:
9265 _IMP_core._SphereDistancePairScore_swigregister(_SphereDistancePairScore)
9266 class HarmonicUpperBoundSphereDistancePairScore(IMP.PairScore):
9267  r"""Proxy of C++ IMP::core::HarmonicUpperBoundSphereDistancePairScore class."""
9268 
9269  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9270 
9271  def __init__(self, *args):
9272  r"""
9273  __init__(HarmonicUpperBoundSphereDistancePairScore self, double x0, double k, std::string name="HarmonicUpperBoundSphereDistancePairScore%1%") -> HarmonicUpperBoundSphereDistancePairScore
9274  __init__(HarmonicUpperBoundSphereDistancePairScore self) -> HarmonicUpperBoundSphereDistancePairScore
9275  """
9276  _IMP_core.HarmonicUpperBoundSphereDistancePairScore_swiginit(self, _IMP_core.new_HarmonicUpperBoundSphereDistancePairScore(*args))
9277 
9278  def do_get_inputs(self, m, pis):
9279  r"""do_get_inputs(HarmonicUpperBoundSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9280  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore_do_get_inputs(self, m, pis)
9281 
9282  def get_version_info(self):
9283  r"""get_version_info(HarmonicUpperBoundSphereDistancePairScore self) -> VersionInfo"""
9284  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore_get_version_info(self)
9285  __swig_destroy__ = _IMP_core.delete_HarmonicUpperBoundSphereDistancePairScore
9286 
9287  def __str__(self):
9288  r"""__str__(HarmonicUpperBoundSphereDistancePairScore self) -> std::string"""
9289  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore___str__(self)
9290 
9291  def __repr__(self):
9292  r"""__repr__(HarmonicUpperBoundSphereDistancePairScore self) -> std::string"""
9293  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore___repr__(self)
9294 
9295  @staticmethod
9296  def get_from(o):
9297  return _object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o)
9298 
9299 
9300  def _get_as_binary(self):
9301  r"""_get_as_binary(HarmonicUpperBoundSphereDistancePairScore self) -> PyObject *"""
9302  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore__get_as_binary(self)
9303 
9304  def _set_from_binary(self, p):
9305  r"""_set_from_binary(HarmonicUpperBoundSphereDistancePairScore self, PyObject * p)"""
9306  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore__set_from_binary(self, p)
9307 
9308  def __getstate__(self):
9309  p = self._get_as_binary()
9310  if len(self.__dict__) > 1:
9311  d = self.__dict__.copy()
9312  del d['this']
9313  p = (d, p)
9314  return p
9315 
9316  def __setstate__(self, p):
9317  if not hasattr(self, 'this'):
9318  self.__init__()
9319  if isinstance(p, tuple):
9320  d, p = p
9321  self.__dict__.update(d)
9322  return self._set_from_binary(p)
9323 
9324 
9325 # Register HarmonicUpperBoundSphereDistancePairScore in _IMP_core:
9326 _IMP_core.HarmonicUpperBoundSphereDistancePairScore_swigregister(HarmonicUpperBoundSphereDistancePairScore)
9327 class HarmonicUpperBoundSphereDiameterPairScore(IMP.PairScore):
9328  r"""Proxy of C++ IMP::core::HarmonicUpperBoundSphereDiameterPairScore class."""
9329 
9330  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9331 
9332  def __init__(self, d0, k):
9333  r"""__init__(HarmonicUpperBoundSphereDiameterPairScore self, double d0, double k) -> HarmonicUpperBoundSphereDiameterPairScore"""
9334  _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_swiginit(self, _IMP_core.new_HarmonicUpperBoundSphereDiameterPairScore(d0, k))
9335 
9336  def get_rest_length(self):
9337  r"""get_rest_length(HarmonicUpperBoundSphereDiameterPairScore self) -> double"""
9338  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_rest_length(self)
9339 
9340  def get_stiffness(self):
9341  r"""get_stiffness(HarmonicUpperBoundSphereDiameterPairScore self) -> double"""
9342  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_stiffness(self)
9343 
9344  def do_get_inputs(self, m, pis):
9345  r"""do_get_inputs(HarmonicUpperBoundSphereDiameterPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9346  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_do_get_inputs(self, m, pis)
9347 
9348  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
9349  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"""
9350  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
9351 
9352  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
9353  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"""
9354  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
9355 
9356  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
9357  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"""
9358  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
9359 
9360  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
9361  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"""
9362  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
9363 
9364  def get_version_info(self):
9365  r"""get_version_info(HarmonicUpperBoundSphereDiameterPairScore self) -> VersionInfo"""
9366  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_version_info(self)
9367  __swig_destroy__ = _IMP_core.delete_HarmonicUpperBoundSphereDiameterPairScore
9368 
9369  def __str__(self):
9370  r"""__str__(HarmonicUpperBoundSphereDiameterPairScore self) -> std::string"""
9371  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore___str__(self)
9372 
9373  def __repr__(self):
9374  r"""__repr__(HarmonicUpperBoundSphereDiameterPairScore self) -> std::string"""
9375  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore___repr__(self)
9376 
9377  @staticmethod
9378  def get_from(o):
9379  return _object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o)
9380 
9381 
9382 # Register HarmonicUpperBoundSphereDiameterPairScore in _IMP_core:
9383 _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_swigregister(HarmonicUpperBoundSphereDiameterPairScore)
9384 class HarmonicSphereDistancePairScore(IMP.PairScore):
9385  r"""Proxy of C++ IMP::core::HarmonicSphereDistancePairScore class."""
9386 
9387  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9388 
9389  def __init__(self, *args):
9390  r"""
9391  __init__(HarmonicSphereDistancePairScore self, double x0, double k, std::string name="HarmonicSphereDistancePairScore%1%") -> HarmonicSphereDistancePairScore
9392  __init__(HarmonicSphereDistancePairScore self) -> HarmonicSphereDistancePairScore
9393  """
9394  _IMP_core.HarmonicSphereDistancePairScore_swiginit(self, _IMP_core.new_HarmonicSphereDistancePairScore(*args))
9395 
9396  def do_get_inputs(self, m, pis):
9397  r"""do_get_inputs(HarmonicSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9398  return _IMP_core.HarmonicSphereDistancePairScore_do_get_inputs(self, m, pis)
9399 
9400  def get_version_info(self):
9401  r"""get_version_info(HarmonicSphereDistancePairScore self) -> VersionInfo"""
9402  return _IMP_core.HarmonicSphereDistancePairScore_get_version_info(self)
9403  __swig_destroy__ = _IMP_core.delete_HarmonicSphereDistancePairScore
9404 
9405  def __str__(self):
9406  r"""__str__(HarmonicSphereDistancePairScore self) -> std::string"""
9407  return _IMP_core.HarmonicSphereDistancePairScore___str__(self)
9408 
9409  def __repr__(self):
9410  r"""__repr__(HarmonicSphereDistancePairScore self) -> std::string"""
9411  return _IMP_core.HarmonicSphereDistancePairScore___repr__(self)
9412 
9413  @staticmethod
9414  def get_from(o):
9415  return _object_cast_to_HarmonicSphereDistancePairScore(o)
9416 
9417 
9418  def _get_as_binary(self):
9419  r"""_get_as_binary(HarmonicSphereDistancePairScore self) -> PyObject *"""
9420  return _IMP_core.HarmonicSphereDistancePairScore__get_as_binary(self)
9421 
9422  def _set_from_binary(self, p):
9423  r"""_set_from_binary(HarmonicSphereDistancePairScore self, PyObject * p)"""
9424  return _IMP_core.HarmonicSphereDistancePairScore__set_from_binary(self, p)
9425 
9426  def __getstate__(self):
9427  p = self._get_as_binary()
9428  if len(self.__dict__) > 1:
9429  d = self.__dict__.copy()
9430  del d['this']
9431  p = (d, p)
9432  return p
9433 
9434  def __setstate__(self, p):
9435  if not hasattr(self, 'this'):
9436  self.__init__()
9437  if isinstance(p, tuple):
9438  d, p = p
9439  self.__dict__.update(d)
9440  return self._set_from_binary(p)
9441 
9442 
9443 # Register HarmonicSphereDistancePairScore in _IMP_core:
9444 _IMP_core.HarmonicSphereDistancePairScore_swigregister(HarmonicSphereDistancePairScore)
9445 class NormalizedSphereDistancePairScore(IMP.PairScore):
9446  r"""Proxy of C++ IMP::core::NormalizedSphereDistancePairScore class."""
9447 
9448  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9449 
9450  def __init__(self, *args):
9451  r"""__init__(NormalizedSphereDistancePairScore self, UnaryFunction f, FloatKey radius=IMP::FloatKey("radius")) -> NormalizedSphereDistancePairScore"""
9452  _IMP_core.NormalizedSphereDistancePairScore_swiginit(self, _IMP_core.new_NormalizedSphereDistancePairScore(*args))
9453 
9454  def do_get_inputs(self, m, pis):
9455  r"""do_get_inputs(NormalizedSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9456  return _IMP_core.NormalizedSphereDistancePairScore_do_get_inputs(self, m, pis)
9457 
9458  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
9459  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"""
9460  return _IMP_core.NormalizedSphereDistancePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
9461 
9462  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
9463  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"""
9464  return _IMP_core.NormalizedSphereDistancePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
9465 
9466  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
9467  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"""
9468  return _IMP_core.NormalizedSphereDistancePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
9469 
9470  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
9471  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"""
9472  return _IMP_core.NormalizedSphereDistancePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
9473 
9474  def get_version_info(self):
9475  r"""get_version_info(NormalizedSphereDistancePairScore self) -> VersionInfo"""
9476  return _IMP_core.NormalizedSphereDistancePairScore_get_version_info(self)
9477  __swig_destroy__ = _IMP_core.delete_NormalizedSphereDistancePairScore
9478 
9479  def __str__(self):
9480  r"""__str__(NormalizedSphereDistancePairScore self) -> std::string"""
9481  return _IMP_core.NormalizedSphereDistancePairScore___str__(self)
9482 
9483  def __repr__(self):
9484  r"""__repr__(NormalizedSphereDistancePairScore self) -> std::string"""
9485  return _IMP_core.NormalizedSphereDistancePairScore___repr__(self)
9486 
9487  @staticmethod
9488  def get_from(o):
9489  return _object_cast_to_NormalizedSphereDistancePairScore(o)
9490 
9491 
9492 # Register NormalizedSphereDistancePairScore in _IMP_core:
9493 _IMP_core.NormalizedSphereDistancePairScore_swigregister(NormalizedSphereDistancePairScore)
9494 class WeightedSphereDistancePairScore(IMP.PairScore):
9495  r"""Proxy of C++ IMP::core::WeightedSphereDistancePairScore class."""
9496 
9497  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9498 
9499  def __init__(self, *args):
9500  r"""__init__(WeightedSphereDistancePairScore self, UnaryFunction f, FloatKey weight, FloatKey radius=IMP::FloatKey("radius")) -> WeightedSphereDistancePairScore"""
9501  _IMP_core.WeightedSphereDistancePairScore_swiginit(self, _IMP_core.new_WeightedSphereDistancePairScore(*args))
9502 
9503  def do_get_inputs(self, m, pis):
9504  r"""do_get_inputs(WeightedSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9505  return _IMP_core.WeightedSphereDistancePairScore_do_get_inputs(self, m, pis)
9506 
9507  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
9508  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"""
9509  return _IMP_core.WeightedSphereDistancePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
9510 
9511  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
9512  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"""
9513  return _IMP_core.WeightedSphereDistancePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
9514 
9515  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
9516  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"""
9517  return _IMP_core.WeightedSphereDistancePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
9518 
9519  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
9520  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"""
9521  return _IMP_core.WeightedSphereDistancePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
9522 
9523  def get_version_info(self):
9524  r"""get_version_info(WeightedSphereDistancePairScore self) -> VersionInfo"""
9525  return _IMP_core.WeightedSphereDistancePairScore_get_version_info(self)
9526  __swig_destroy__ = _IMP_core.delete_WeightedSphereDistancePairScore
9527 
9528  def __str__(self):
9529  r"""__str__(WeightedSphereDistancePairScore self) -> std::string"""
9530  return _IMP_core.WeightedSphereDistancePairScore___str__(self)
9531 
9532  def __repr__(self):
9533  r"""__repr__(WeightedSphereDistancePairScore self) -> std::string"""
9534  return _IMP_core.WeightedSphereDistancePairScore___repr__(self)
9535 
9536  @staticmethod
9537  def get_from(o):
9538  return _object_cast_to_WeightedSphereDistancePairScore(o)
9539 
9540 
9541 # Register WeightedSphereDistancePairScore in _IMP_core:
9542 _IMP_core.WeightedSphereDistancePairScore_swigregister(WeightedSphereDistancePairScore)
9543 class SoftSpherePairScore(IMP.PairScore):
9544  r"""Proxy of C++ IMP::core::SoftSpherePairScore class."""
9545 
9546  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9547 
9548  def __init__(self, *args):
9549  r"""
9550  __init__(SoftSpherePairScore self, double k, std::string name="SoftSpherePairScore%1%") -> SoftSpherePairScore
9551  __init__(SoftSpherePairScore self) -> SoftSpherePairScore
9552  """
9553  _IMP_core.SoftSpherePairScore_swiginit(self, _IMP_core.new_SoftSpherePairScore(*args))
9554 
9555  def do_get_inputs(self, m, pis):
9556  r"""do_get_inputs(SoftSpherePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9557  return _IMP_core.SoftSpherePairScore_do_get_inputs(self, m, pis)
9558 
9559  def get_version_info(self):
9560  r"""get_version_info(SoftSpherePairScore self) -> VersionInfo"""
9561  return _IMP_core.SoftSpherePairScore_get_version_info(self)
9562  __swig_destroy__ = _IMP_core.delete_SoftSpherePairScore
9563 
9564  def __str__(self):
9565  r"""__str__(SoftSpherePairScore self) -> std::string"""
9566  return _IMP_core.SoftSpherePairScore___str__(self)
9567 
9568  def __repr__(self):
9569  r"""__repr__(SoftSpherePairScore self) -> std::string"""
9570  return _IMP_core.SoftSpherePairScore___repr__(self)
9571 
9572  @staticmethod
9573  def get_from(o):
9574  return _object_cast_to_SoftSpherePairScore(o)
9575 
9576 
9577  def _get_as_binary(self):
9578  r"""_get_as_binary(SoftSpherePairScore self) -> PyObject *"""
9579  return _IMP_core.SoftSpherePairScore__get_as_binary(self)
9580 
9581  def _set_from_binary(self, p):
9582  r"""_set_from_binary(SoftSpherePairScore self, PyObject * p)"""
9583  return _IMP_core.SoftSpherePairScore__set_from_binary(self, p)
9584 
9585  def __getstate__(self):
9586  p = self._get_as_binary()
9587  if len(self.__dict__) > 1:
9588  d = self.__dict__.copy()
9589  del d['this']
9590  p = (d, p)
9591  return p
9592 
9593  def __setstate__(self, p):
9594  if not hasattr(self, 'this'):
9595  self.__init__()
9596  if isinstance(p, tuple):
9597  d, p = p
9598  self.__dict__.update(d)
9599  return self._set_from_binary(p)
9600 
9601 
9602 # Register SoftSpherePairScore in _IMP_core:
9603 _IMP_core.SoftSpherePairScore_swigregister(SoftSpherePairScore)
9604 class SurfaceDistancePairScore(IMP.PairScore):
9605  r"""Proxy of C++ IMP::core::SurfaceDistancePairScore class."""
9606 
9607  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9608 
9609  def __init__(self, *args):
9610  r"""__init__(SurfaceDistancePairScore self, UnaryFunction uf, std::string name="SurfaceDistancePairScore%1%") -> SurfaceDistancePairScore"""
9611  _IMP_core.SurfaceDistancePairScore_swiginit(self, _IMP_core.new_SurfaceDistancePairScore(*args))
9612 
9613  def do_get_inputs(self, m, pis):
9614  r"""do_get_inputs(SurfaceDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9615  return _IMP_core.SurfaceDistancePairScore_do_get_inputs(self, m, pis)
9616 
9617  def get_version_info(self):
9618  r"""get_version_info(SurfaceDistancePairScore self) -> VersionInfo"""
9619  return _IMP_core.SurfaceDistancePairScore_get_version_info(self)
9620  __swig_destroy__ = _IMP_core.delete_SurfaceDistancePairScore
9621 
9622  def __str__(self):
9623  r"""__str__(SurfaceDistancePairScore self) -> std::string"""
9624  return _IMP_core.SurfaceDistancePairScore___str__(self)
9625 
9626  def __repr__(self):
9627  r"""__repr__(SurfaceDistancePairScore self) -> std::string"""
9628  return _IMP_core.SurfaceDistancePairScore___repr__(self)
9629 
9630  @staticmethod
9631  def get_from(o):
9632  return _object_cast_to_SurfaceDistancePairScore(o)
9633 
9634 
9635 # Register SurfaceDistancePairScore in _IMP_core:
9636 _IMP_core.SurfaceDistancePairScore_swigregister(SurfaceDistancePairScore)
9637 class SurfaceHeightPairScore(IMP.PairScore):
9638  r"""Proxy of C++ IMP::core::SurfaceHeightPairScore class."""
9639 
9640  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9641 
9642  def __init__(self, *args):
9643  r"""__init__(SurfaceHeightPairScore self, UnaryFunction uf, std::string name="SurfaceHeightPairScore%1%") -> SurfaceHeightPairScore"""
9644  _IMP_core.SurfaceHeightPairScore_swiginit(self, _IMP_core.new_SurfaceHeightPairScore(*args))
9645 
9646  def do_get_inputs(self, m, pis):
9647  r"""do_get_inputs(SurfaceHeightPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9648  return _IMP_core.SurfaceHeightPairScore_do_get_inputs(self, m, pis)
9649 
9650  def get_version_info(self):
9651  r"""get_version_info(SurfaceHeightPairScore self) -> VersionInfo"""
9652  return _IMP_core.SurfaceHeightPairScore_get_version_info(self)
9653  __swig_destroy__ = _IMP_core.delete_SurfaceHeightPairScore
9654 
9655  def __str__(self):
9656  r"""__str__(SurfaceHeightPairScore self) -> std::string"""
9657  return _IMP_core.SurfaceHeightPairScore___str__(self)
9658 
9659  def __repr__(self):
9660  r"""__repr__(SurfaceHeightPairScore self) -> std::string"""
9661  return _IMP_core.SurfaceHeightPairScore___repr__(self)
9662 
9663  @staticmethod
9664  def get_from(o):
9665  return _object_cast_to_SurfaceHeightPairScore(o)
9666 
9667 
9668 # Register SurfaceHeightPairScore in _IMP_core:
9669 _IMP_core.SurfaceHeightPairScore_swigregister(SurfaceHeightPairScore)
9670 class SurfaceDepthPairScore(IMP.PairScore):
9671  r"""Proxy of C++ IMP::core::SurfaceDepthPairScore class."""
9672 
9673  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9674 
9675  def __init__(self, *args):
9676  r"""__init__(SurfaceDepthPairScore self, UnaryFunction uf, std::string name="SurfaceDepthPairScore%1%") -> SurfaceDepthPairScore"""
9677  _IMP_core.SurfaceDepthPairScore_swiginit(self, _IMP_core.new_SurfaceDepthPairScore(*args))
9678 
9679  def do_get_inputs(self, m, pis):
9680  r"""do_get_inputs(SurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9681  return _IMP_core.SurfaceDepthPairScore_do_get_inputs(self, m, pis)
9682 
9683  def get_version_info(self):
9684  r"""get_version_info(SurfaceDepthPairScore self) -> VersionInfo"""
9685  return _IMP_core.SurfaceDepthPairScore_get_version_info(self)
9686  __swig_destroy__ = _IMP_core.delete_SurfaceDepthPairScore
9687 
9688  def __str__(self):
9689  r"""__str__(SurfaceDepthPairScore self) -> std::string"""
9690  return _IMP_core.SurfaceDepthPairScore___str__(self)
9691 
9692  def __repr__(self):
9693  r"""__repr__(SurfaceDepthPairScore self) -> std::string"""
9694  return _IMP_core.SurfaceDepthPairScore___repr__(self)
9695 
9696  @staticmethod
9697  def get_from(o):
9698  return _object_cast_to_SurfaceDepthPairScore(o)
9699 
9700 
9701 # Register SurfaceDepthPairScore in _IMP_core:
9702 _IMP_core.SurfaceDepthPairScore_swigregister(SurfaceDepthPairScore)
9703 class HarmonicSurfaceDistancePairScore(IMP.PairScore):
9704  r"""Proxy of C++ IMP::core::HarmonicSurfaceDistancePairScore class."""
9705 
9706  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9707 
9708  def __init__(self, *args):
9709  r"""__init__(HarmonicSurfaceDistancePairScore self, double x0, double k, std::string name="HarmonicSurfaceDistancePairScore%1%") -> HarmonicSurfaceDistancePairScore"""
9710  _IMP_core.HarmonicSurfaceDistancePairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceDistancePairScore(*args))
9711 
9712  def do_get_inputs(self, m, pis):
9713  r"""do_get_inputs(HarmonicSurfaceDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9714  return _IMP_core.HarmonicSurfaceDistancePairScore_do_get_inputs(self, m, pis)
9715 
9716  def get_version_info(self):
9717  r"""get_version_info(HarmonicSurfaceDistancePairScore self) -> VersionInfo"""
9718  return _IMP_core.HarmonicSurfaceDistancePairScore_get_version_info(self)
9719  __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceDistancePairScore
9720 
9721  def __str__(self):
9722  r"""__str__(HarmonicSurfaceDistancePairScore self) -> std::string"""
9723  return _IMP_core.HarmonicSurfaceDistancePairScore___str__(self)
9724 
9725  def __repr__(self):
9726  r"""__repr__(HarmonicSurfaceDistancePairScore self) -> std::string"""
9727  return _IMP_core.HarmonicSurfaceDistancePairScore___repr__(self)
9728 
9729  @staticmethod
9730  def get_from(o):
9731  return _object_cast_to_HarmonicSurfaceDistancePairScore(o)
9732 
9733 
9734 # Register HarmonicSurfaceDistancePairScore in _IMP_core:
9735 _IMP_core.HarmonicSurfaceDistancePairScore_swigregister(HarmonicSurfaceDistancePairScore)
9736 class HarmonicSurfaceHeightPairScore(IMP.PairScore):
9737  r"""Proxy of C++ IMP::core::HarmonicSurfaceHeightPairScore class."""
9738 
9739  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9740 
9741  def __init__(self, *args):
9742  r"""__init__(HarmonicSurfaceHeightPairScore self, double x0, double k, std::string name="HarmonicSurfaceHeightPairScore%1%") -> HarmonicSurfaceHeightPairScore"""
9743  _IMP_core.HarmonicSurfaceHeightPairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceHeightPairScore(*args))
9744 
9745  def do_get_inputs(self, m, pis):
9746  r"""do_get_inputs(HarmonicSurfaceHeightPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9747  return _IMP_core.HarmonicSurfaceHeightPairScore_do_get_inputs(self, m, pis)
9748 
9749  def get_version_info(self):
9750  r"""get_version_info(HarmonicSurfaceHeightPairScore self) -> VersionInfo"""
9751  return _IMP_core.HarmonicSurfaceHeightPairScore_get_version_info(self)
9752  __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceHeightPairScore
9753 
9754  def __str__(self):
9755  r"""__str__(HarmonicSurfaceHeightPairScore self) -> std::string"""
9756  return _IMP_core.HarmonicSurfaceHeightPairScore___str__(self)
9757 
9758  def __repr__(self):
9759  r"""__repr__(HarmonicSurfaceHeightPairScore self) -> std::string"""
9760  return _IMP_core.HarmonicSurfaceHeightPairScore___repr__(self)
9761 
9762  @staticmethod
9763  def get_from(o):
9764  return _object_cast_to_HarmonicSurfaceHeightPairScore(o)
9765 
9766 
9767 # Register HarmonicSurfaceHeightPairScore in _IMP_core:
9768 _IMP_core.HarmonicSurfaceHeightPairScore_swigregister(HarmonicSurfaceHeightPairScore)
9769 class HarmonicSurfaceDepthPairScore(IMP.PairScore):
9770  r"""Proxy of C++ IMP::core::HarmonicSurfaceDepthPairScore class."""
9771 
9772  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9773 
9774  def __init__(self, *args):
9775  r"""__init__(HarmonicSurfaceDepthPairScore self, double x0, double k, std::string name="HarmonicSurfaceDepthPairScore%1%") -> HarmonicSurfaceDepthPairScore"""
9776  _IMP_core.HarmonicSurfaceDepthPairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceDepthPairScore(*args))
9777 
9778  def do_get_inputs(self, m, pis):
9779  r"""do_get_inputs(HarmonicSurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9780  return _IMP_core.HarmonicSurfaceDepthPairScore_do_get_inputs(self, m, pis)
9781 
9782  def get_version_info(self):
9783  r"""get_version_info(HarmonicSurfaceDepthPairScore self) -> VersionInfo"""
9784  return _IMP_core.HarmonicSurfaceDepthPairScore_get_version_info(self)
9785  __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceDepthPairScore
9786 
9787  def __str__(self):
9788  r"""__str__(HarmonicSurfaceDepthPairScore self) -> std::string"""
9789  return _IMP_core.HarmonicSurfaceDepthPairScore___str__(self)
9790 
9791  def __repr__(self):
9792  r"""__repr__(HarmonicSurfaceDepthPairScore self) -> std::string"""
9793  return _IMP_core.HarmonicSurfaceDepthPairScore___repr__(self)
9794 
9795  @staticmethod
9796  def get_from(o):
9797  return _object_cast_to_HarmonicSurfaceDepthPairScore(o)
9798 
9799 
9800 # Register HarmonicSurfaceDepthPairScore in _IMP_core:
9801 _IMP_core.HarmonicSurfaceDepthPairScore_swigregister(HarmonicSurfaceDepthPairScore)
9802 class SoftSuperSurfacePairScore(IMP.PairScore):
9803  r"""Proxy of C++ IMP::core::SoftSuperSurfacePairScore class."""
9804 
9805  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9806 
9807  def __init__(self, *args):
9808  r"""__init__(SoftSuperSurfacePairScore self, double k, std::string name="SoftSuperSurfacePairScore%1%") -> SoftSuperSurfacePairScore"""
9809  _IMP_core.SoftSuperSurfacePairScore_swiginit(self, _IMP_core.new_SoftSuperSurfacePairScore(*args))
9810 
9811  def do_get_inputs(self, m, pis):
9812  r"""do_get_inputs(SoftSuperSurfacePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9813  return _IMP_core.SoftSuperSurfacePairScore_do_get_inputs(self, m, pis)
9814 
9815  def get_version_info(self):
9816  r"""get_version_info(SoftSuperSurfacePairScore self) -> VersionInfo"""
9817  return _IMP_core.SoftSuperSurfacePairScore_get_version_info(self)
9818  __swig_destroy__ = _IMP_core.delete_SoftSuperSurfacePairScore
9819 
9820  def __str__(self):
9821  r"""__str__(SoftSuperSurfacePairScore self) -> std::string"""
9822  return _IMP_core.SoftSuperSurfacePairScore___str__(self)
9823 
9824  def __repr__(self):
9825  r"""__repr__(SoftSuperSurfacePairScore self) -> std::string"""
9826  return _IMP_core.SoftSuperSurfacePairScore___repr__(self)
9827 
9828  @staticmethod
9829  def get_from(o):
9830  return _object_cast_to_SoftSuperSurfacePairScore(o)
9831 
9832 
9833 # Register SoftSuperSurfacePairScore in _IMP_core:
9834 _IMP_core.SoftSuperSurfacePairScore_swigregister(SoftSuperSurfacePairScore)
9835 class SoftSubSurfacePairScore(IMP.PairScore):
9836  r"""Proxy of C++ IMP::core::SoftSubSurfacePairScore class."""
9837 
9838  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9839 
9840  def __init__(self, *args):
9841  r"""__init__(SoftSubSurfacePairScore self, double k, std::string name="SoftSubSurfacePairScore%1%") -> SoftSubSurfacePairScore"""
9842  _IMP_core.SoftSubSurfacePairScore_swiginit(self, _IMP_core.new_SoftSubSurfacePairScore(*args))
9843 
9844  def do_get_inputs(self, m, pis):
9845  r"""do_get_inputs(SoftSubSurfacePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9846  return _IMP_core.SoftSubSurfacePairScore_do_get_inputs(self, m, pis)
9847 
9848  def get_version_info(self):
9849  r"""get_version_info(SoftSubSurfacePairScore self) -> VersionInfo"""
9850  return _IMP_core.SoftSubSurfacePairScore_get_version_info(self)
9851  __swig_destroy__ = _IMP_core.delete_SoftSubSurfacePairScore
9852 
9853  def __str__(self):
9854  r"""__str__(SoftSubSurfacePairScore self) -> std::string"""
9855  return _IMP_core.SoftSubSurfacePairScore___str__(self)
9856 
9857  def __repr__(self):
9858  r"""__repr__(SoftSubSurfacePairScore self) -> std::string"""
9859  return _IMP_core.SoftSubSurfacePairScore___repr__(self)
9860 
9861  @staticmethod
9862  def get_from(o):
9863  return _object_cast_to_SoftSubSurfacePairScore(o)
9864 
9865 
9866 # Register SoftSubSurfacePairScore in _IMP_core:
9867 _IMP_core.SoftSubSurfacePairScore_swigregister(SoftSubSurfacePairScore)
9868 class SurfaceTetheredChain(IMP.UnaryFunction):
9869  r"""Proxy of C++ IMP::core::SurfaceTetheredChain class."""
9870 
9871  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9872 
9873  def __init__(self, link_num, link_length):
9874  r"""__init__(SurfaceTetheredChain self, int link_num, double link_length) -> SurfaceTetheredChain"""
9875  _IMP_core.SurfaceTetheredChain_swiginit(self, _IMP_core.new_SurfaceTetheredChain(link_num, link_length))
9876 
9877  def get_version_info(self):
9878  r"""get_version_info(SurfaceTetheredChain self) -> VersionInfo"""
9879  return _IMP_core.SurfaceTetheredChain_get_version_info(self)
9880  __swig_destroy__ = _IMP_core.delete_SurfaceTetheredChain
9881 
9882  def get_link_number(self):
9883  r"""get_link_number(SurfaceTetheredChain self) -> int"""
9884  return _IMP_core.SurfaceTetheredChain_get_link_number(self)
9885 
9886  def get_link_length(self):
9887  r"""get_link_length(SurfaceTetheredChain self) -> double"""
9888  return _IMP_core.SurfaceTetheredChain_get_link_length(self)
9889 
9890  def set_link_number(self, N):
9891  r"""set_link_number(SurfaceTetheredChain self, int N)"""
9892  return _IMP_core.SurfaceTetheredChain_set_link_number(self, N)
9893 
9894  def set_link_length(self, b):
9895  r"""set_link_length(SurfaceTetheredChain self, double b)"""
9896  return _IMP_core.SurfaceTetheredChain_set_link_length(self, b)
9897 
9898  def get_distance_at_minimum(self):
9899  r"""get_distance_at_minimum(SurfaceTetheredChain self) -> double"""
9900  return _IMP_core.SurfaceTetheredChain_get_distance_at_minimum(self)
9901 
9902  def get_average_distance(self):
9903  r"""get_average_distance(SurfaceTetheredChain self) -> double"""
9904  return _IMP_core.SurfaceTetheredChain_get_average_distance(self)
9905 
9906  def __str__(self):
9907  r"""__str__(SurfaceTetheredChain self) -> std::string"""
9908  return _IMP_core.SurfaceTetheredChain___str__(self)
9909 
9910  def __repr__(self):
9911  r"""__repr__(SurfaceTetheredChain self) -> std::string"""
9912  return _IMP_core.SurfaceTetheredChain___repr__(self)
9913 
9914  @staticmethod
9915  def get_from(o):
9916  return _object_cast_to_SurfaceTetheredChain(o)
9917 
9918 
9919 # Register SurfaceTetheredChain in _IMP_core:
9920 _IMP_core.SurfaceTetheredChain_swigregister(SurfaceTetheredChain)
9921 class SurfaceSymmetryConstraint(IMP.Constraint):
9922  r"""Proxy of C++ IMP::core::SurfaceSymmetryConstraint class."""
9923 
9924  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9925 
9926  def __init__(self, m, ss, rbs):
9927  r"""__init__(SurfaceSymmetryConstraint self, Model m, IMP::ParticleIndexPair const & ss, IMP::ParticleIndexPair const & rbs) -> SurfaceSymmetryConstraint"""
9928  _IMP_core.SurfaceSymmetryConstraint_swiginit(self, _IMP_core.new_SurfaceSymmetryConstraint(m, ss, rbs))
9929 
9930  def do_get_inputs(self):
9931  r"""do_get_inputs(SurfaceSymmetryConstraint self) -> IMP::ModelObjectsTemp"""
9932  return _IMP_core.SurfaceSymmetryConstraint_do_get_inputs(self)
9933 
9934  def do_get_outputs(self):
9935  r"""do_get_outputs(SurfaceSymmetryConstraint self) -> IMP::ModelObjectsTemp"""
9936  return _IMP_core.SurfaceSymmetryConstraint_do_get_outputs(self)
9937 
9938  def get_version_info(self):
9939  r"""get_version_info(SurfaceSymmetryConstraint self) -> VersionInfo"""
9940  return _IMP_core.SurfaceSymmetryConstraint_get_version_info(self)
9941  __swig_destroy__ = _IMP_core.delete_SurfaceSymmetryConstraint
9942 
9943  def __str__(self):
9944  r"""__str__(SurfaceSymmetryConstraint self) -> std::string"""
9945  return _IMP_core.SurfaceSymmetryConstraint___str__(self)
9946 
9947  def __repr__(self):
9948  r"""__repr__(SurfaceSymmetryConstraint self) -> std::string"""
9949  return _IMP_core.SurfaceSymmetryConstraint___repr__(self)
9950 
9951  @staticmethod
9952  def get_from(o):
9953  return _object_cast_to_SurfaceSymmetryConstraint(o)
9954 
9955 
9956 # Register SurfaceSymmetryConstraint in _IMP_core:
9957 _IMP_core.SurfaceSymmetryConstraint_swigregister(SurfaceSymmetryConstraint)
9958 class SteepestDescent(IMP.AttributeOptimizer):
9959  r"""Proxy of C++ IMP::core::SteepestDescent class."""
9960 
9961  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9962 
9963  def __init__(self, *args):
9964  r"""__init__(SteepestDescent self, Model m, std::string name="SteepestDescent%1%") -> SteepestDescent"""
9965  _IMP_core.SteepestDescent_swiginit(self, _IMP_core.new_SteepestDescent(*args))
9966 
9967  def do_optimize(self, max_steps):
9968  r"""do_optimize(SteepestDescent self, unsigned int max_steps) -> IMP::Float"""
9969  return _IMP_core.SteepestDescent_do_optimize(self, max_steps)
9970 
9971  def get_version_info(self):
9972  r"""get_version_info(SteepestDescent self) -> VersionInfo"""
9973  return _IMP_core.SteepestDescent_get_version_info(self)
9974  __swig_destroy__ = _IMP_core.delete_SteepestDescent
9975 
9976  def set_threshold(self, t):
9977  r"""set_threshold(SteepestDescent self, IMP::Float t)"""
9978  return _IMP_core.SteepestDescent_set_threshold(self, t)
9979 
9980  def set_step_size(self, t):
9981  r"""set_step_size(SteepestDescent self, IMP::Float t)"""
9982  return _IMP_core.SteepestDescent_set_step_size(self, t)
9983 
9984  def set_maximum_step_size(self, t):
9985  r"""set_maximum_step_size(SteepestDescent self, IMP::Float t)"""
9986  return _IMP_core.SteepestDescent_set_maximum_step_size(self, t)
9987 
9988  def __str__(self):
9989  r"""__str__(SteepestDescent self) -> std::string"""
9990  return _IMP_core.SteepestDescent___str__(self)
9991 
9992  def __repr__(self):
9993  r"""__repr__(SteepestDescent self) -> std::string"""
9994  return _IMP_core.SteepestDescent___repr__(self)
9995 
9996  @staticmethod
9997  def get_from(o):
9998  return _object_cast_to_SteepestDescent(o)
9999 
10000 
10001 # Register SteepestDescent in _IMP_core:
10002 _IMP_core.SteepestDescent_swigregister(SteepestDescent)
10003 class TransformedDistancePairScore(IMP.PairScore):
10004  r"""Proxy of C++ IMP::core::TransformedDistancePairScore class."""
10005 
10006  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10007 
10008  def __init__(self, f, transformation):
10009  r"""__init__(TransformedDistancePairScore self, UnaryFunction f, Transformation3D transformation) -> TransformedDistancePairScore"""
10010  _IMP_core.TransformedDistancePairScore_swiginit(self, _IMP_core.new_TransformedDistancePairScore(f, transformation))
10011 
10012  def set_transformation(self, rot):
10013  r"""set_transformation(TransformedDistancePairScore self, Transformation3D rot)"""
10014  return _IMP_core.TransformedDistancePairScore_set_transformation(self, rot)
10015 
10016  def do_get_inputs(self, m, pis):
10017  r"""do_get_inputs(TransformedDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10018  return _IMP_core.TransformedDistancePairScore_do_get_inputs(self, m, pis)
10019 
10020  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
10021  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"""
10022  return _IMP_core.TransformedDistancePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
10023 
10024  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
10025  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"""
10026  return _IMP_core.TransformedDistancePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
10027 
10028  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
10029  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"""
10030  return _IMP_core.TransformedDistancePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
10031 
10032  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
10033  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"""
10034  return _IMP_core.TransformedDistancePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
10035 
10036  def get_version_info(self):
10037  r"""get_version_info(TransformedDistancePairScore self) -> VersionInfo"""
10038  return _IMP_core.TransformedDistancePairScore_get_version_info(self)
10039  __swig_destroy__ = _IMP_core.delete_TransformedDistancePairScore
10040 
10041  def __str__(self):
10042  r"""__str__(TransformedDistancePairScore self) -> std::string"""
10043  return _IMP_core.TransformedDistancePairScore___str__(self)
10044 
10045  def __repr__(self):
10046  r"""__repr__(TransformedDistancePairScore self) -> std::string"""
10047  return _IMP_core.TransformedDistancePairScore___repr__(self)
10048 
10049  @staticmethod
10050  def get_from(o):
10051  return _object_cast_to_TransformedDistancePairScore(o)
10052 
10053 
10054 # Register TransformedDistancePairScore in _IMP_core:
10055 _IMP_core.TransformedDistancePairScore_swigregister(TransformedDistancePairScore)
10056 class TypedPairScore(IMP.PairScore):
10057  r"""Proxy of C++ IMP::core::TypedPairScore class."""
10058 
10059  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10060 
10061  def __init__(self, typekey, allow_invalid_types=True):
10062  r"""__init__(TypedPairScore self, IntKey typekey, bool allow_invalid_types=True) -> TypedPairScore"""
10063  _IMP_core.TypedPairScore_swiginit(self, _IMP_core.new_TypedPairScore(typekey, allow_invalid_types))
10064 
10065  def set_particle_type(self, arg2):
10066  r"""set_particle_type(TypedPairScore self, Particle arg2)"""
10067  return _IMP_core.TypedPairScore_set_particle_type(self, arg2)
10068 
10069  def set_pair_score(self, ps, atype, btype):
10070  r"""set_pair_score(TypedPairScore self, PairScore ps, IMP::Int atype, IMP::Int btype)"""
10071  return _IMP_core.TypedPairScore_set_pair_score(self, ps, atype, btype)
10072 
10073  def do_get_inputs(self, m, pis):
10074  r"""do_get_inputs(TypedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10075  return _IMP_core.TypedPairScore_do_get_inputs(self, m, pis)
10076 
10077  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
10078  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"""
10079  return _IMP_core.TypedPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
10080 
10081  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
10082  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"""
10083  return _IMP_core.TypedPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
10084 
10085  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
10086  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"""
10087  return _IMP_core.TypedPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
10088 
10089  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
10090  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"""
10091  return _IMP_core.TypedPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
10092 
10093  def get_version_info(self):
10094  r"""get_version_info(TypedPairScore self) -> VersionInfo"""
10095  return _IMP_core.TypedPairScore_get_version_info(self)
10096  __swig_destroy__ = _IMP_core.delete_TypedPairScore
10097 
10098  def __str__(self):
10099  r"""__str__(TypedPairScore self) -> std::string"""
10100  return _IMP_core.TypedPairScore___str__(self)
10101 
10102  def __repr__(self):
10103  r"""__repr__(TypedPairScore self) -> std::string"""
10104  return _IMP_core.TypedPairScore___repr__(self)
10105 
10106  @staticmethod
10107  def get_from(o):
10108  return _object_cast_to_TypedPairScore(o)
10109 
10110 
10111 # Register TypedPairScore in _IMP_core:
10112 _IMP_core.TypedPairScore_swigregister(TypedPairScore)
10113 class RigidBodyDistancePairScore(KClosePairsPairScore):
10114  r"""Proxy of C++ IMP::core::RigidBodyDistancePairScore class."""
10115 
10116  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10117 
10118  def __init__(self, ps, r):
10119  r"""__init__(RigidBodyDistancePairScore self, PairScore ps, Refiner r) -> RigidBodyDistancePairScore"""
10120  _IMP_core.RigidBodyDistancePairScore_swiginit(self, _IMP_core.new_RigidBodyDistancePairScore(ps, r))
10121 
10122  def __str__(self):
10123  r"""__str__(RigidBodyDistancePairScore self) -> std::string"""
10124  return _IMP_core.RigidBodyDistancePairScore___str__(self)
10125 
10126  def __repr__(self):
10127  r"""__repr__(RigidBodyDistancePairScore self) -> std::string"""
10128  return _IMP_core.RigidBodyDistancePairScore___repr__(self)
10129 
10130  @staticmethod
10131  def get_from(o):
10132  return _object_cast_to_RigidBodyDistancePairScore(o)
10133 
10134  __swig_destroy__ = _IMP_core.delete_RigidBodyDistancePairScore
10135 
10136 # Register RigidBodyDistancePairScore in _IMP_core:
10137 _IMP_core.RigidBodyDistancePairScore_swigregister(RigidBodyDistancePairScore)
10138 class RigidBodyAnglePairScore(IMP.PairScore):
10139  r"""Proxy of C++ IMP::core::RigidBodyAnglePairScore class."""
10140 
10141  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10142 
10143  def __init__(self, f):
10144  r"""__init__(RigidBodyAnglePairScore self, UnaryFunction f) -> RigidBodyAnglePairScore"""
10145  _IMP_core.RigidBodyAnglePairScore_swiginit(self, _IMP_core.new_RigidBodyAnglePairScore(f))
10146 
10147  def do_get_inputs(self, m, pis):
10148  r"""do_get_inputs(RigidBodyAnglePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10149  return _IMP_core.RigidBodyAnglePairScore_do_get_inputs(self, m, pis)
10150 
10151  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
10152  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"""
10153  return _IMP_core.RigidBodyAnglePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
10154 
10155  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
10156  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"""
10157  return _IMP_core.RigidBodyAnglePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
10158 
10159  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
10160  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"""
10161  return _IMP_core.RigidBodyAnglePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
10162 
10163  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
10164  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"""
10165  return _IMP_core.RigidBodyAnglePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
10166 
10167  def get_version_info(self):
10168  r"""get_version_info(RigidBodyAnglePairScore self) -> VersionInfo"""
10169  return _IMP_core.RigidBodyAnglePairScore_get_version_info(self)
10170  __swig_destroy__ = _IMP_core.delete_RigidBodyAnglePairScore
10171 
10172  def __str__(self):
10173  r"""__str__(RigidBodyAnglePairScore self) -> std::string"""
10174  return _IMP_core.RigidBodyAnglePairScore___str__(self)
10175 
10176  def __repr__(self):
10177  r"""__repr__(RigidBodyAnglePairScore self) -> std::string"""
10178  return _IMP_core.RigidBodyAnglePairScore___repr__(self)
10179 
10180  @staticmethod
10181  def get_from(o):
10182  return _object_cast_to_RigidBodyAnglePairScore(o)
10183 
10184 
10185 # Register RigidBodyAnglePairScore in _IMP_core:
10186 _IMP_core.RigidBodyAnglePairScore_swigregister(RigidBodyAnglePairScore)
10187 class TableRefiner(IMP.Refiner):
10188  r"""Proxy of C++ IMP::core::TableRefiner class."""
10189 
10190  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10191 
10192  def __init__(self):
10193  r"""__init__(TableRefiner self) -> TableRefiner"""
10194  _IMP_core.TableRefiner_swiginit(self, _IMP_core.new_TableRefiner())
10195 
10196  def add_particle(self, p, ps):
10197  r"""add_particle(TableRefiner self, Particle p, IMP::ParticlesTemp const & ps)"""
10198  return _IMP_core.TableRefiner_add_particle(self, p, ps)
10199 
10200  def remove_particle(self, p):
10201  r"""remove_particle(TableRefiner self, Particle p)"""
10202  return _IMP_core.TableRefiner_remove_particle(self, p)
10203 
10204  def set_particle(self, p, ps):
10205  r"""set_particle(TableRefiner self, Particle p, IMP::ParticlesTemp const & ps)"""
10206  return _IMP_core.TableRefiner_set_particle(self, p, ps)
10207 
10208  def do_get_inputs(self, m, pis):
10209  r"""do_get_inputs(TableRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10210  return _IMP_core.TableRefiner_do_get_inputs(self, m, pis)
10211 
10212  def get_version_info(self):
10213  r"""get_version_info(TableRefiner self) -> VersionInfo"""
10214  return _IMP_core.TableRefiner_get_version_info(self)
10215  __swig_destroy__ = _IMP_core.delete_TableRefiner
10216 
10217  def __str__(self):
10218  r"""__str__(TableRefiner self) -> std::string"""
10219  return _IMP_core.TableRefiner___str__(self)
10220 
10221  def __repr__(self):
10222  r"""__repr__(TableRefiner self) -> std::string"""
10223  return _IMP_core.TableRefiner___repr__(self)
10224 
10225  @staticmethod
10226  def get_from(o):
10227  return _object_cast_to_TableRefiner(o)
10228 
10229 
10230 # Register TableRefiner in _IMP_core:
10231 _IMP_core.TableRefiner_swigregister(TableRefiner)
10232 LOWER = _IMP_core.LOWER
10233 
10234 BOTH = _IMP_core.BOTH
10235 
10236 UPPER = _IMP_core.UPPER
10237 
10238 class MCCGSampler(IMP.Sampler):
10239  r"""Proxy of C++ IMP::core::MCCGSampler class."""
10240 
10241  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10242 
10243  def __init__(self, *args):
10244  r"""__init__(MCCGSampler self, Model m, std::string name="MCCG Sampler %1%") -> MCCGSampler"""
10245  _IMP_core.MCCGSampler_swiginit(self, _IMP_core.new_MCCGSampler(*args))
10246 
10247  def set_bounding_box(self, bb):
10248  r"""set_bounding_box(MCCGSampler self, BoundingBox3D bb)"""
10249  return _IMP_core.MCCGSampler_set_bounding_box(self, bb)
10250 
10251  def set_number_of_attempts(self, att):
10252  r"""set_number_of_attempts(MCCGSampler self, unsigned int att)"""
10253  return _IMP_core.MCCGSampler_set_number_of_attempts(self, att)
10254 
10255  def set_number_of_monte_carlo_steps(self, cg):
10256  r"""set_number_of_monte_carlo_steps(MCCGSampler self, unsigned int cg)"""
10257  return _IMP_core.MCCGSampler_set_number_of_monte_carlo_steps(self, cg)
10258 
10259  def set_number_of_conjugate_gradient_steps(self, cg):
10260  r"""set_number_of_conjugate_gradient_steps(MCCGSampler self, unsigned int cg)"""
10261  return _IMP_core.MCCGSampler_set_number_of_conjugate_gradient_steps(self, cg)
10262 
10263  def set_max_monte_carlo_step_size(self, *args):
10264  r"""
10265  set_max_monte_carlo_step_size(MCCGSampler self, double d)
10266  set_max_monte_carlo_step_size(MCCGSampler self, FloatKey k, double d)
10267  """
10268  return _IMP_core.MCCGSampler_set_max_monte_carlo_step_size(self, *args)
10269 
10270  def set_is_refining(self, tf):
10271  r"""set_is_refining(MCCGSampler self, bool tf)"""
10272  return _IMP_core.MCCGSampler_set_is_refining(self, tf)
10273 
10274  def set_local_optimizer(self, opt):
10275  r"""set_local_optimizer(MCCGSampler self, Optimizer opt)"""
10276  return _IMP_core.MCCGSampler_set_local_optimizer(self, opt)
10277 
10278  def set_save_rejected_configurations(self, tf):
10279  r"""set_save_rejected_configurations(MCCGSampler self, bool tf)"""
10280  return _IMP_core.MCCGSampler_set_save_rejected_configurations(self, tf)
10281 
10282  def get_rejected_configurations(self):
10283  r"""get_rejected_configurations(MCCGSampler self) -> ConfigurationSet"""
10284  return _IMP_core.MCCGSampler_get_rejected_configurations(self)
10285  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)
10286  def __set_optimizer_states(self, obj): IMP._list_util.set_varlist(self.optimizer_states, obj)
10287  def __del_optimizer_states(self): IMP._list_util.del_varlist(self.optimizer_states)
10288  optimizer_states = property(__get_optimizer_states, __set_optimizer_states, __del_optimizer_states, doc="List of ##ucnames")
10289 
10290  def remove_optimizer_state(self, d):
10291  r"""remove_optimizer_state(MCCGSampler self, OptimizerState d)"""
10292  return _IMP_core.MCCGSampler_remove_optimizer_state(self, d)
10293 
10294  def _python_index_optimizer_state(self, d, start, stop):
10295  r"""_python_index_optimizer_state(MCCGSampler self, OptimizerState d, unsigned int start, unsigned int stop) -> unsigned int"""
10296  return _IMP_core.MCCGSampler__python_index_optimizer_state(self, d, start, stop)
10297 
10298  def remove_optimizer_states(self, d):
10299  r"""remove_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & d)"""
10300  return _IMP_core.MCCGSampler_remove_optimizer_states(self, d)
10301 
10302  def set_optimizer_states(self, ps):
10303  r"""set_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & ps)"""
10304  return _IMP_core.MCCGSampler_set_optimizer_states(self, ps)
10305 
10306  def set_optimizer_states_order(self, objs):
10307  r"""set_optimizer_states_order(MCCGSampler self, IMP::OptimizerStates const & objs)"""
10308  return _IMP_core.MCCGSampler_set_optimizer_states_order(self, objs)
10309 
10310  def add_optimizer_state(self, obj):
10311  r"""add_optimizer_state(MCCGSampler self, OptimizerState obj) -> unsigned int"""
10312  return _IMP_core.MCCGSampler_add_optimizer_state(self, obj)
10313 
10314  def add_optimizer_states(self, objs):
10315  r"""add_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & objs)"""
10316  return _IMP_core.MCCGSampler_add_optimizer_states(self, objs)
10317 
10318  def clear_optimizer_states(self):
10319  r"""clear_optimizer_states(MCCGSampler self)"""
10320  return _IMP_core.MCCGSampler_clear_optimizer_states(self)
10321 
10322  def get_number_of_optimizer_states(self):
10323  r"""get_number_of_optimizer_states(MCCGSampler self) -> unsigned int"""
10324  return _IMP_core.MCCGSampler_get_number_of_optimizer_states(self)
10325 
10326  def get_has_optimizer_states(self):
10327  r"""get_has_optimizer_states(MCCGSampler self) -> bool"""
10328  return _IMP_core.MCCGSampler_get_has_optimizer_states(self)
10329 
10330  def get_optimizer_state(self, i):
10331  r"""get_optimizer_state(MCCGSampler self, unsigned int i) -> OptimizerState"""
10332  return _IMP_core.MCCGSampler_get_optimizer_state(self, i)
10333 
10334  def get_optimizer_states(self):
10335  r"""get_optimizer_states(MCCGSampler self) -> IMP::OptimizerStates"""
10336  return _IMP_core.MCCGSampler_get_optimizer_states(self)
10337 
10338  def erase_optimizer_state(self, i):
10339  r"""erase_optimizer_state(MCCGSampler self, unsigned int i)"""
10340  return _IMP_core.MCCGSampler_erase_optimizer_state(self, i)
10341 
10342  def reserve_optimizer_states(self, sz):
10343  r"""reserve_optimizer_states(MCCGSampler self, unsigned int sz)"""
10344  return _IMP_core.MCCGSampler_reserve_optimizer_states(self, sz)
10345 
10346  def do_sample(self):
10347  r"""do_sample(MCCGSampler self) -> ConfigurationSet"""
10348  return _IMP_core.MCCGSampler_do_sample(self)
10349 
10350  def get_version_info(self):
10351  r"""get_version_info(MCCGSampler self) -> VersionInfo"""
10352  return _IMP_core.MCCGSampler_get_version_info(self)
10353  __swig_destroy__ = _IMP_core.delete_MCCGSampler
10354 
10355  def __str__(self):
10356  r"""__str__(MCCGSampler self) -> std::string"""
10357  return _IMP_core.MCCGSampler___str__(self)
10358 
10359  def __repr__(self):
10360  r"""__repr__(MCCGSampler self) -> std::string"""
10361  return _IMP_core.MCCGSampler___repr__(self)
10362 
10363  @staticmethod
10364  def get_from(o):
10365  return _object_cast_to_MCCGSampler(o)
10366 
10367 
10368 # Register MCCGSampler in _IMP_core:
10369 _IMP_core.MCCGSampler_swigregister(MCCGSampler)
10370 class MinimumRestraint(IMP.Restraint):
10371  r"""Proxy of C++ IMP::core::MinimumRestraint class."""
10372 
10373  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10374 
10375  def __init__(self, *args):
10376  r"""__init__(MinimumRestraint self, unsigned int num, IMP::Restraints const & rs=IMP::Restraints(), std::string name="MinimumRestraint %1%") -> MinimumRestraint"""
10377  _IMP_core.MinimumRestraint_swiginit(self, _IMP_core.new_MinimumRestraint(*args))
10378 
10379  def do_get_inputs(self):
10380  r"""do_get_inputs(MinimumRestraint self) -> IMP::ModelObjectsTemp"""
10381  return _IMP_core.MinimumRestraint_do_get_inputs(self)
10382 
10383  def get_version_info(self):
10384  r"""get_version_info(MinimumRestraint self) -> VersionInfo"""
10385  return _IMP_core.MinimumRestraint_get_version_info(self)
10386  __swig_destroy__ = _IMP_core.delete_MinimumRestraint
10387  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)
10388  def __set_restraints(self, obj): IMP._list_util.set_varlist(self.restraints, obj)
10389  def __del_restraints(self): IMP._list_util.del_varlist(self.restraints)
10390  restraints = property(__get_restraints, __set_restraints, __del_restraints, doc="List of ##ucnames")
10391 
10392  def remove_restraint(self, d):
10393  r"""remove_restraint(MinimumRestraint self, Restraint d)"""
10394  return _IMP_core.MinimumRestraint_remove_restraint(self, d)
10395 
10396  def _python_index_restraint(self, d, start, stop):
10397  r"""_python_index_restraint(MinimumRestraint self, Restraint d, unsigned int start, unsigned int stop) -> unsigned int"""
10398  return _IMP_core.MinimumRestraint__python_index_restraint(self, d, start, stop)
10399 
10400  def remove_restraints(self, d):
10401  r"""remove_restraints(MinimumRestraint self, IMP::Restraints const & d)"""
10402  return _IMP_core.MinimumRestraint_remove_restraints(self, d)
10403 
10404  def set_restraints(self, ps):
10405  r"""set_restraints(MinimumRestraint self, IMP::Restraints const & ps)"""
10406  return _IMP_core.MinimumRestraint_set_restraints(self, ps)
10407 
10408  def set_restraints_order(self, objs):
10409  r"""set_restraints_order(MinimumRestraint self, IMP::Restraints const & objs)"""
10410  return _IMP_core.MinimumRestraint_set_restraints_order(self, objs)
10411 
10412  def add_restraint(self, obj):
10413  r"""add_restraint(MinimumRestraint self, Restraint obj) -> unsigned int"""
10414  return _IMP_core.MinimumRestraint_add_restraint(self, obj)
10415 
10416  def add_restraints(self, objs):
10417  r"""add_restraints(MinimumRestraint self, IMP::Restraints const & objs)"""
10418  return _IMP_core.MinimumRestraint_add_restraints(self, objs)
10419 
10420  def clear_restraints(self):
10421  r"""clear_restraints(MinimumRestraint self)"""
10422  return _IMP_core.MinimumRestraint_clear_restraints(self)
10423 
10424  def get_number_of_restraints(self):
10425  r"""get_number_of_restraints(MinimumRestraint self) -> unsigned int"""
10426  return _IMP_core.MinimumRestraint_get_number_of_restraints(self)
10427 
10428  def get_has_restraints(self):
10429  r"""get_has_restraints(MinimumRestraint self) -> bool"""
10430  return _IMP_core.MinimumRestraint_get_has_restraints(self)
10431 
10432  def get_restraint(self, i):
10433  r"""get_restraint(MinimumRestraint self, unsigned int i) -> Restraint"""
10434  return _IMP_core.MinimumRestraint_get_restraint(self, i)
10435 
10436  def get_restraints(self):
10437  r"""get_restraints(MinimumRestraint self) -> IMP::Restraints"""
10438  return _IMP_core.MinimumRestraint_get_restraints(self)
10439 
10440  def erase_restraint(self, i):
10441  r"""erase_restraint(MinimumRestraint self, unsigned int i)"""
10442  return _IMP_core.MinimumRestraint_erase_restraint(self, i)
10443 
10444  def reserve_restraints(self, sz):
10445  r"""reserve_restraints(MinimumRestraint self, unsigned int sz)"""
10446  return _IMP_core.MinimumRestraint_reserve_restraints(self, sz)
10447 
10448  def __str__(self):
10449  r"""__str__(MinimumRestraint self) -> std::string"""
10450  return _IMP_core.MinimumRestraint___str__(self)
10451 
10452  def __repr__(self):
10453  r"""__repr__(MinimumRestraint self) -> std::string"""
10454  return _IMP_core.MinimumRestraint___repr__(self)
10455 
10456  @staticmethod
10457  def get_from(o):
10458  return _object_cast_to_MinimumRestraint(o)
10459 
10460 
10461 # Register MinimumRestraint in _IMP_core:
10462 _IMP_core.MinimumRestraint_swigregister(MinimumRestraint)
10463 class Gaussian(RigidBody):
10464  r"""Proxy of C++ IMP::core::Gaussian class."""
10465 
10466  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10467 
10468  def __init__(self, *args):
10469  r"""
10470  __init__(Gaussian self) -> Gaussian
10471  __init__(Gaussian self, Model m, ParticleIndex id) -> Gaussian
10472  __init__(Gaussian self, _ParticleAdaptor d) -> Gaussian
10473  """
10474  _IMP_core.Gaussian_swiginit(self, _IMP_core.new_Gaussian(*args))
10475 
10476  def show(self, *args):
10477  r"""show(Gaussian self, _ostream out=std::cout)"""
10478  return _IMP_core.Gaussian_show(self, *args)
10479 
10480  @staticmethod
10481  def setup_particle(*args):
10482  r"""
10483  setup_particle(Model m, ParticleIndex pi) -> Gaussian
10484  setup_particle(_ParticleAdaptor pa) -> Gaussian
10485  setup_particle(Model m, ParticleIndex pi, Gaussian3D g) -> Gaussian
10486  setup_particle(_ParticleAdaptor pa, Gaussian3D g) -> Gaussian
10487  """
10488  return _IMP_core.Gaussian_setup_particle(*args)
10489 
10490  @staticmethod
10491  def get_local_covariance_key():
10492  r"""get_local_covariance_key() -> ObjectKey"""
10493  return _IMP_core.Gaussian_get_local_covariance_key()
10494 
10495  @staticmethod
10496  def get_global_covariance_key():
10497  r"""get_global_covariance_key() -> ObjectKey"""
10498  return _IMP_core.Gaussian_get_global_covariance_key()
10499 
10500  @staticmethod
10501  def get_is_setup(*args):
10502  r"""
10503  get_is_setup(_ParticleAdaptor p) -> bool
10504  get_is_setup(Model m, ParticleIndex pi) -> bool
10505  """
10506  return _IMP_core.Gaussian_get_is_setup(*args)
10507 
10508  def get_local_covariance(self):
10509  r"""get_local_covariance(Gaussian self) -> Eigen::Matrix3d"""
10510  return _IMP_core.Gaussian_get_local_covariance(self)
10511 
10512  def get_variances(self):
10513  r"""get_variances(Gaussian self) -> Vector3D"""
10514  return _IMP_core.Gaussian_get_variances(self)
10515 
10516  def get_global_covariance(self):
10517  r"""get_global_covariance(Gaussian self) -> Eigen::Matrix3d"""
10518  return _IMP_core.Gaussian_get_global_covariance(self)
10519 
10520  def get_gaussian(self):
10521  r"""get_gaussian(Gaussian self) -> Gaussian3D"""
10522  return _IMP_core.Gaussian_get_gaussian(self)
10523 
10524  def set_gaussian(self, g):
10525  r"""set_gaussian(Gaussian self, Gaussian3D g)"""
10526  return _IMP_core.Gaussian_set_gaussian(self, g)
10527 
10528  def set_local_covariance(self, covar):
10529  r"""set_local_covariance(Gaussian self, Eigen::Vector3d const covar)"""
10530  return _IMP_core.Gaussian_set_local_covariance(self, covar)
10531 
10532  def set_variances(self, v):
10533  r"""set_variances(Gaussian self, Vector3D v)"""
10534  return _IMP_core.Gaussian_set_variances(self, v)
10535 
10536  def set_global_covariance(self, covar):
10537  r"""set_global_covariance(Gaussian self, Eigen::Matrix3d covar)"""
10538  return _IMP_core.Gaussian_set_global_covariance(self, covar)
10539 
10540  def update_global_covariance(self):
10541  r"""update_global_covariance(Gaussian self)"""
10542  return _IMP_core.Gaussian_update_global_covariance(self)
10543 
10544  def add_attribute(self, *args):
10545  r"""
10546  add_attribute(Gaussian self, FloatKey k, IMP::Float v, bool opt)
10547  add_attribute(Gaussian self, FloatKey a0, IMP::Float a1)
10548  add_attribute(Gaussian self, IntKey a0, IMP::Int a1)
10549  add_attribute(Gaussian self, FloatsKey a0, IMP::Floats a1)
10550  add_attribute(Gaussian self, IntsKey a0, IMP::Ints a1)
10551  add_attribute(Gaussian self, StringKey a0, IMP::String a1)
10552  add_attribute(Gaussian self, ParticleIndexKey a0, Particle a1)
10553  add_attribute(Gaussian self, ObjectKey a0, Object a1)
10554  add_attribute(Gaussian self, SparseFloatKey a0, IMP::Float a1)
10555  add_attribute(Gaussian self, SparseIntKey a0, IMP::Int a1)
10556  add_attribute(Gaussian self, SparseStringKey a0, IMP::String a1)
10557  add_attribute(Gaussian self, SparseParticleIndexKey a0, ParticleIndex a1)
10558  """
10559  return _IMP_core.Gaussian_add_attribute(self, *args)
10560 
10561  def get_value(self, *args):
10562  r"""
10563  get_value(Gaussian self, FloatKey a0) -> IMP::Float
10564  get_value(Gaussian self, IntKey a0) -> IMP::Int
10565  get_value(Gaussian self, FloatsKey a0) -> IMP::Floats
10566  get_value(Gaussian self, IntsKey a0) -> IMP::Ints
10567  get_value(Gaussian self, StringKey a0) -> IMP::String
10568  get_value(Gaussian self, ParticleIndexKey a0) -> Particle
10569  get_value(Gaussian self, ObjectKey a0) -> Object
10570  get_value(Gaussian self, SparseFloatKey a0) -> IMP::Float
10571  get_value(Gaussian self, SparseIntKey a0) -> IMP::Int
10572  get_value(Gaussian self, SparseStringKey a0) -> IMP::String
10573  get_value(Gaussian self, SparseParticleIndexKey a0) -> ParticleIndex
10574  """
10575  return _IMP_core.Gaussian_get_value(self, *args)
10576 
10577  def set_value(self, *args):
10578  r"""
10579  set_value(Gaussian self, FloatKey a0, IMP::Float a1)
10580  set_value(Gaussian self, IntKey a0, IMP::Int a1)
10581  set_value(Gaussian self, FloatsKey a0, IMP::Floats a1)
10582  set_value(Gaussian self, IntsKey a0, IMP::Ints a1)
10583  set_value(Gaussian self, StringKey a0, IMP::String a1)
10584  set_value(Gaussian self, ParticleIndexKey a0, Particle a1)
10585  set_value(Gaussian self, ObjectKey a0, Object a1)
10586  set_value(Gaussian self, SparseFloatKey a0, IMP::Float a1)
10587  set_value(Gaussian self, SparseIntKey a0, IMP::Int a1)
10588  set_value(Gaussian self, SparseStringKey a0, IMP::String a1)
10589  set_value(Gaussian self, SparseParticleIndexKey a0, ParticleIndex a1)
10590  """
10591  return _IMP_core.Gaussian_set_value(self, *args)
10592 
10593  def remove_attribute(self, *args):
10594  r"""
10595  remove_attribute(Gaussian self, FloatKey a0)
10596  remove_attribute(Gaussian self, IntKey a0)
10597  remove_attribute(Gaussian self, FloatsKey a0)
10598  remove_attribute(Gaussian self, IntsKey a0)
10599  remove_attribute(Gaussian self, StringKey a0)
10600  remove_attribute(Gaussian self, ParticleIndexKey a0)
10601  remove_attribute(Gaussian self, ObjectKey a0)
10602  remove_attribute(Gaussian self, SparseFloatKey a0)
10603  remove_attribute(Gaussian self, SparseIntKey a0)
10604  remove_attribute(Gaussian self, SparseStringKey a0)
10605  remove_attribute(Gaussian self, SparseParticleIndexKey a0)
10606  """
10607  return _IMP_core.Gaussian_remove_attribute(self, *args)
10608 
10609  def has_attribute(self, *args):
10610  r"""
10611  has_attribute(Gaussian self, FloatKey a0) -> bool
10612  has_attribute(Gaussian self, IntKey a0) -> bool
10613  has_attribute(Gaussian self, FloatsKey a0) -> bool
10614  has_attribute(Gaussian self, IntsKey a0) -> bool
10615  has_attribute(Gaussian self, StringKey a0) -> bool
10616  has_attribute(Gaussian self, ParticleIndexKey a0) -> bool
10617  has_attribute(Gaussian self, ObjectKey a0) -> bool
10618  has_attribute(Gaussian self, SparseFloatKey a0) -> bool
10619  has_attribute(Gaussian self, SparseIntKey a0) -> bool
10620  has_attribute(Gaussian self, SparseStringKey a0) -> bool
10621  has_attribute(Gaussian self, SparseParticleIndexKey a0) -> bool
10622  """
10623  return _IMP_core.Gaussian_has_attribute(self, *args)
10624 
10625  def get_derivative(self, a0):
10626  r"""get_derivative(Gaussian self, FloatKey a0) -> double"""
10627  return _IMP_core.Gaussian_get_derivative(self, a0)
10628 
10629  def get_name(self):
10630  r"""get_name(Gaussian self) -> std::string"""
10631  return _IMP_core.Gaussian_get_name(self)
10632 
10633  def clear_caches(self):
10634  r"""clear_caches(Gaussian self)"""
10635  return _IMP_core.Gaussian_clear_caches(self)
10636 
10637  def set_name(self, a0):
10638  r"""set_name(Gaussian self, std::string a0)"""
10639  return _IMP_core.Gaussian_set_name(self, a0)
10640 
10641  def set_check_level(self, a0):
10642  r"""set_check_level(Gaussian self, IMP::CheckLevel a0)"""
10643  return _IMP_core.Gaussian_set_check_level(self, a0)
10644 
10645  def add_to_derivative(self, a0, a1, a2):
10646  r"""add_to_derivative(Gaussian self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
10647  return _IMP_core.Gaussian_add_to_derivative(self, a0, a1, a2)
10648 
10649  def set_is_optimized(self, a0, a1):
10650  r"""set_is_optimized(Gaussian self, FloatKey a0, bool a1)"""
10651  return _IMP_core.Gaussian_set_is_optimized(self, a0, a1)
10652 
10653  def get_is_optimized(self, a0):
10654  r"""get_is_optimized(Gaussian self, FloatKey a0) -> bool"""
10655  return _IMP_core.Gaussian_get_is_optimized(self, a0)
10656 
10657  def get_check_level(self):
10658  r"""get_check_level(Gaussian self) -> IMP::CheckLevel"""
10659  return _IMP_core.Gaussian_get_check_level(self)
10660 
10661  def __eq__(self, *args):
10662  r"""
10663  __eq__(Gaussian self, Gaussian o) -> bool
10664  __eq__(Gaussian self, Particle d) -> bool
10665  """
10666  return _IMP_core.Gaussian___eq__(self, *args)
10667 
10668  def __ne__(self, *args):
10669  r"""
10670  __ne__(Gaussian self, Gaussian o) -> bool
10671  __ne__(Gaussian self, Particle d) -> bool
10672  """
10673  return _IMP_core.Gaussian___ne__(self, *args)
10674 
10675  def __le__(self, *args):
10676  r"""
10677  __le__(Gaussian self, Gaussian o) -> bool
10678  __le__(Gaussian self, Particle d) -> bool
10679  """
10680  return _IMP_core.Gaussian___le__(self, *args)
10681 
10682  def __lt__(self, *args):
10683  r"""
10684  __lt__(Gaussian self, Gaussian o) -> bool
10685  __lt__(Gaussian self, Particle d) -> bool
10686  """
10687  return _IMP_core.Gaussian___lt__(self, *args)
10688 
10689  def __ge__(self, *args):
10690  r"""
10691  __ge__(Gaussian self, Gaussian o) -> bool
10692  __ge__(Gaussian self, Particle d) -> bool
10693  """
10694  return _IMP_core.Gaussian___ge__(self, *args)
10695 
10696  def __gt__(self, *args):
10697  r"""
10698  __gt__(Gaussian self, Gaussian o) -> bool
10699  __gt__(Gaussian self, Particle d) -> bool
10700  """
10701  return _IMP_core.Gaussian___gt__(self, *args)
10702 
10703  def __hash__(self):
10704  r"""__hash__(Gaussian self) -> std::size_t"""
10705  return _IMP_core.Gaussian___hash__(self)
10706 
10707  def __str__(self):
10708  r"""__str__(Gaussian self) -> std::string"""
10709  return _IMP_core.Gaussian___str__(self)
10710 
10711  def __repr__(self):
10712  r"""__repr__(Gaussian self) -> std::string"""
10713  return _IMP_core.Gaussian___repr__(self)
10714 
10715  def _get_as_binary(self):
10716  r"""_get_as_binary(Gaussian self) -> PyObject *"""
10717  return _IMP_core.Gaussian__get_as_binary(self)
10718 
10719  def _set_from_binary(self, p):
10720  r"""_set_from_binary(Gaussian self, PyObject * p)"""
10721  return _IMP_core.Gaussian__set_from_binary(self, p)
10722 
10723  def __getstate__(self):
10724  p = self._get_as_binary()
10725  if len(self.__dict__) > 1:
10726  d = self.__dict__.copy()
10727  del d['this']
10728  p = (d, p)
10729  return p
10730 
10731  def __setstate__(self, p):
10732  if not hasattr(self, 'this'):
10733  self.__init__()
10734  if isinstance(p, tuple):
10735  d, p = p
10736  self.__dict__.update(d)
10737  return self._set_from_binary(p)
10738 
10739  __swig_destroy__ = _IMP_core.delete_Gaussian
10740 
10741 # Register Gaussian in _IMP_core:
10742 _IMP_core.Gaussian_swigregister(Gaussian)
10743 class PairRestraint(IMP.Restraint):
10744  r"""Proxy of C++ IMP::core::PairRestraint class."""
10745 
10746  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10747 
10748  def __init__(self, *args):
10749  r"""
10750  __init__(PairRestraint self, Model m, PairScore ss, IMP::ParticleIndexPair const & vt, std::string name="PairRestraint %1%") -> PairRestraint
10751  __init__(PairRestraint self) -> PairRestraint
10752  """
10753  _IMP_core.PairRestraint_swiginit(self, _IMP_core.new_PairRestraint(*args))
10754 
10755  def get_version_info(self):
10756  r"""get_version_info(PairRestraint self) -> VersionInfo"""
10757  return _IMP_core.PairRestraint_get_version_info(self)
10758  __swig_destroy__ = _IMP_core.delete_PairRestraint
10759 
10760  def __str__(self):
10761  r"""__str__(PairRestraint self) -> std::string"""
10762  return _IMP_core.PairRestraint___str__(self)
10763 
10764  def __repr__(self):
10765  r"""__repr__(PairRestraint self) -> std::string"""
10766  return _IMP_core.PairRestraint___repr__(self)
10767 
10768  @staticmethod
10769  def get_from(o):
10770  return _object_cast_to_PairRestraint(o)
10771 
10772 
10773  def _get_as_binary(self):
10774  r"""_get_as_binary(PairRestraint self) -> PyObject *"""
10775  return _IMP_core.PairRestraint__get_as_binary(self)
10776 
10777  def _set_from_binary(self, p):
10778  r"""_set_from_binary(PairRestraint self, PyObject * p)"""
10779  return _IMP_core.PairRestraint__set_from_binary(self, p)
10780 
10781  def __getstate__(self):
10782  p = self._get_as_binary()
10783  if len(self.__dict__) > 1:
10784  d = self.__dict__.copy()
10785  del d['this']
10786  p = (d, p)
10787  return p
10788 
10789  def __setstate__(self, p):
10790  if not hasattr(self, 'this'):
10791  self.__init__()
10792  if isinstance(p, tuple):
10793  d, p = p
10794  self.__dict__.update(d)
10795  return self._set_from_binary(p)
10796 
10797 
10798 # Register PairRestraint in _IMP_core:
10799 _IMP_core.PairRestraint_swigregister(PairRestraint)
10800 class SingletonRestraint(IMP.Restraint):
10801  r"""Proxy of C++ IMP::core::SingletonRestraint class."""
10802 
10803  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10804 
10805  def __init__(self, *args):
10806  r"""
10807  __init__(SingletonRestraint self, Model m, SingletonScore ss, ParticleIndex vt, std::string name="SingletonRestraint %1%") -> SingletonRestraint
10808  __init__(SingletonRestraint self) -> SingletonRestraint
10809  """
10810  _IMP_core.SingletonRestraint_swiginit(self, _IMP_core.new_SingletonRestraint(*args))
10811 
10812  def get_version_info(self):
10813  r"""get_version_info(SingletonRestraint self) -> VersionInfo"""
10814  return _IMP_core.SingletonRestraint_get_version_info(self)
10815  __swig_destroy__ = _IMP_core.delete_SingletonRestraint
10816 
10817  def __str__(self):
10818  r"""__str__(SingletonRestraint self) -> std::string"""
10819  return _IMP_core.SingletonRestraint___str__(self)
10820 
10821  def __repr__(self):
10822  r"""__repr__(SingletonRestraint self) -> std::string"""
10823  return _IMP_core.SingletonRestraint___repr__(self)
10824 
10825  @staticmethod
10826  def get_from(o):
10827  return _object_cast_to_SingletonRestraint(o)
10828 
10829 
10830  def _get_as_binary(self):
10831  r"""_get_as_binary(SingletonRestraint self) -> PyObject *"""
10832  return _IMP_core.SingletonRestraint__get_as_binary(self)
10833 
10834  def _set_from_binary(self, p):
10835  r"""_set_from_binary(SingletonRestraint self, PyObject * p)"""
10836  return _IMP_core.SingletonRestraint__set_from_binary(self, p)
10837 
10838  def __getstate__(self):
10839  p = self._get_as_binary()
10840  if len(self.__dict__) > 1:
10841  d = self.__dict__.copy()
10842  del d['this']
10843  p = (d, p)
10844  return p
10845 
10846  def __setstate__(self, p):
10847  if not hasattr(self, 'this'):
10848  self.__init__()
10849  if isinstance(p, tuple):
10850  d, p = p
10851  self.__dict__.update(d)
10852  return self._set_from_binary(p)
10853 
10854 
10855 # Register SingletonRestraint in _IMP_core:
10856 _IMP_core.SingletonRestraint_swigregister(SingletonRestraint)
10857 class TripletRestraint(IMP.Restraint):
10858  r"""Proxy of C++ IMP::core::TripletRestraint class."""
10859 
10860  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10861 
10862  def __init__(self, *args):
10863  r"""
10864  __init__(TripletRestraint self, Model m, TripletScore ss, IMP::ParticleIndexTriplet const & vt, std::string name="TripletRestraint %1%") -> TripletRestraint
10865  __init__(TripletRestraint self) -> TripletRestraint
10866  """
10867  _IMP_core.TripletRestraint_swiginit(self, _IMP_core.new_TripletRestraint(*args))
10868 
10869  def get_version_info(self):
10870  r"""get_version_info(TripletRestraint self) -> VersionInfo"""
10871  return _IMP_core.TripletRestraint_get_version_info(self)
10872  __swig_destroy__ = _IMP_core.delete_TripletRestraint
10873 
10874  def __str__(self):
10875  r"""__str__(TripletRestraint self) -> std::string"""
10876  return _IMP_core.TripletRestraint___str__(self)
10877 
10878  def __repr__(self):
10879  r"""__repr__(TripletRestraint self) -> std::string"""
10880  return _IMP_core.TripletRestraint___repr__(self)
10881 
10882  @staticmethod
10883  def get_from(o):
10884  return _object_cast_to_TripletRestraint(o)
10885 
10886 
10887  def _get_as_binary(self):
10888  r"""_get_as_binary(TripletRestraint self) -> PyObject *"""
10889  return _IMP_core.TripletRestraint__get_as_binary(self)
10890 
10891  def _set_from_binary(self, p):
10892  r"""_set_from_binary(TripletRestraint self, PyObject * p)"""
10893  return _IMP_core.TripletRestraint__set_from_binary(self, p)
10894 
10895  def __getstate__(self):
10896  p = self._get_as_binary()
10897  if len(self.__dict__) > 1:
10898  d = self.__dict__.copy()
10899  del d['this']
10900  p = (d, p)
10901  return p
10902 
10903  def __setstate__(self, p):
10904  if not hasattr(self, 'this'):
10905  self.__init__()
10906  if isinstance(p, tuple):
10907  d, p = p
10908  self.__dict__.update(d)
10909  return self._set_from_binary(p)
10910 
10911 
10912 # Register TripletRestraint in _IMP_core:
10913 _IMP_core.TripletRestraint_swigregister(TripletRestraint)
10914 class QuadRestraint(IMP.Restraint):
10915  r"""Proxy of C++ IMP::core::QuadRestraint class."""
10916 
10917  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10918 
10919  def __init__(self, *args):
10920  r"""
10921  __init__(QuadRestraint self, Model m, QuadScore ss, IMP::ParticleIndexQuad const & vt, std::string name="QuadRestraint %1%") -> QuadRestraint
10922  __init__(QuadRestraint self) -> QuadRestraint
10923  """
10924  _IMP_core.QuadRestraint_swiginit(self, _IMP_core.new_QuadRestraint(*args))
10925 
10926  def get_version_info(self):
10927  r"""get_version_info(QuadRestraint self) -> VersionInfo"""
10928  return _IMP_core.QuadRestraint_get_version_info(self)
10929  __swig_destroy__ = _IMP_core.delete_QuadRestraint
10930 
10931  def __str__(self):
10932  r"""__str__(QuadRestraint self) -> std::string"""
10933  return _IMP_core.QuadRestraint___str__(self)
10934 
10935  def __repr__(self):
10936  r"""__repr__(QuadRestraint self) -> std::string"""
10937  return _IMP_core.QuadRestraint___repr__(self)
10938 
10939  @staticmethod
10940  def get_from(o):
10941  return _object_cast_to_QuadRestraint(o)
10942 
10943 
10944  def _get_as_binary(self):
10945  r"""_get_as_binary(QuadRestraint self) -> PyObject *"""
10946  return _IMP_core.QuadRestraint__get_as_binary(self)
10947 
10948  def _set_from_binary(self, p):
10949  r"""_set_from_binary(QuadRestraint self, PyObject * p)"""
10950  return _IMP_core.QuadRestraint__set_from_binary(self, p)
10951 
10952  def __getstate__(self):
10953  p = self._get_as_binary()
10954  if len(self.__dict__) > 1:
10955  d = self.__dict__.copy()
10956  del d['this']
10957  p = (d, p)
10958  return p
10959 
10960  def __setstate__(self, p):
10961  if not hasattr(self, 'this'):
10962  self.__init__()
10963  if isinstance(p, tuple):
10964  d, p = p
10965  self.__dict__.update(d)
10966  return self._set_from_binary(p)
10967 
10968 
10969 # Register QuadRestraint in _IMP_core:
10970 _IMP_core.QuadRestraint_swigregister(QuadRestraint)
10971 class SingletonConstraint(IMP.Constraint):
10972  r"""Proxy of C++ IMP::core::SingletonConstraint class."""
10973 
10974  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10975 
10976  def __init__(self, *args):
10977  r"""
10978  __init__(SingletonConstraint self, SingletonModifier before, SingletonModifier after, Model m, ParticleIndex vt, std::string name="SingletonConstraint %1%", bool can_skip=False) -> SingletonConstraint
10979  __init__(SingletonConstraint self) -> SingletonConstraint
10980  """
10981  _IMP_core.SingletonConstraint_swiginit(self, _IMP_core.new_SingletonConstraint(*args))
10982 
10983  def get_version_info(self):
10984  r"""get_version_info(SingletonConstraint self) -> VersionInfo"""
10985  return _IMP_core.SingletonConstraint_get_version_info(self)
10986  __swig_destroy__ = _IMP_core.delete_SingletonConstraint
10987 
10988  def __str__(self):
10989  r"""__str__(SingletonConstraint self) -> std::string"""
10990  return _IMP_core.SingletonConstraint___str__(self)
10991 
10992  def __repr__(self):
10993  r"""__repr__(SingletonConstraint self) -> std::string"""
10994  return _IMP_core.SingletonConstraint___repr__(self)
10995 
10996  @staticmethod
10997  def get_from(o):
10998  return _object_cast_to_SingletonConstraint(o)
10999 
11000 
11001  def _get_as_binary(self):
11002  r"""_get_as_binary(SingletonConstraint self) -> PyObject *"""
11003  return _IMP_core.SingletonConstraint__get_as_binary(self)
11004 
11005  def _set_from_binary(self, p):
11006  r"""_set_from_binary(SingletonConstraint self, PyObject * p)"""
11007  return _IMP_core.SingletonConstraint__set_from_binary(self, p)
11008 
11009  def __getstate__(self):
11010  p = self._get_as_binary()
11011  if len(self.__dict__) > 1:
11012  d = self.__dict__.copy()
11013  del d['this']
11014  p = (d, p)
11015  return p
11016 
11017  def __setstate__(self, p):
11018  if not hasattr(self, 'this'):
11019  self.__init__()
11020  if isinstance(p, tuple):
11021  d, p = p
11022  self.__dict__.update(d)
11023  return self._set_from_binary(p)
11024 
11025 
11026 # Register SingletonConstraint in _IMP_core:
11027 _IMP_core.SingletonConstraint_swigregister(SingletonConstraint)
11028 class PairConstraint(IMP.Constraint):
11029  r"""Proxy of C++ IMP::core::PairConstraint class."""
11030 
11031  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11032 
11033  def __init__(self, *args):
11034  r"""
11035  __init__(PairConstraint self, PairModifier before, PairModifier after, Model m, IMP::ParticleIndexPair const & vt, std::string name="PairConstraint %1%", bool can_skip=False) -> PairConstraint
11036  __init__(PairConstraint self) -> PairConstraint
11037  """
11038  _IMP_core.PairConstraint_swiginit(self, _IMP_core.new_PairConstraint(*args))
11039 
11040  def get_version_info(self):
11041  r"""get_version_info(PairConstraint self) -> VersionInfo"""
11042  return _IMP_core.PairConstraint_get_version_info(self)
11043  __swig_destroy__ = _IMP_core.delete_PairConstraint
11044 
11045  def __str__(self):
11046  r"""__str__(PairConstraint self) -> std::string"""
11047  return _IMP_core.PairConstraint___str__(self)
11048 
11049  def __repr__(self):
11050  r"""__repr__(PairConstraint self) -> std::string"""
11051  return _IMP_core.PairConstraint___repr__(self)
11052 
11053  @staticmethod
11054  def get_from(o):
11055  return _object_cast_to_PairConstraint(o)
11056 
11057 
11058  def _get_as_binary(self):
11059  r"""_get_as_binary(PairConstraint self) -> PyObject *"""
11060  return _IMP_core.PairConstraint__get_as_binary(self)
11061 
11062  def _set_from_binary(self, p):
11063  r"""_set_from_binary(PairConstraint self, PyObject * p)"""
11064  return _IMP_core.PairConstraint__set_from_binary(self, p)
11065 
11066  def __getstate__(self):
11067  p = self._get_as_binary()
11068  if len(self.__dict__) > 1:
11069  d = self.__dict__.copy()
11070  del d['this']
11071  p = (d, p)
11072  return p
11073 
11074  def __setstate__(self, p):
11075  if not hasattr(self, 'this'):
11076  self.__init__()
11077  if isinstance(p, tuple):
11078  d, p = p
11079  self.__dict__.update(d)
11080  return self._set_from_binary(p)
11081 
11082 
11083 # Register PairConstraint in _IMP_core:
11084 _IMP_core.PairConstraint_swigregister(PairConstraint)
11085 class TripletConstraint(IMP.Constraint):
11086  r"""Proxy of C++ IMP::core::TripletConstraint class."""
11087 
11088  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11089 
11090  def __init__(self, *args):
11091  r"""
11092  __init__(TripletConstraint self, TripletModifier before, TripletModifier after, Model m, IMP::ParticleIndexTriplet const & vt, std::string name="TripletConstraint %1%", bool can_skip=False) -> TripletConstraint
11093  __init__(TripletConstraint self) -> TripletConstraint
11094  """
11095  _IMP_core.TripletConstraint_swiginit(self, _IMP_core.new_TripletConstraint(*args))
11096 
11097  def get_version_info(self):
11098  r"""get_version_info(TripletConstraint self) -> VersionInfo"""
11099  return _IMP_core.TripletConstraint_get_version_info(self)
11100  __swig_destroy__ = _IMP_core.delete_TripletConstraint
11101 
11102  def __str__(self):
11103  r"""__str__(TripletConstraint self) -> std::string"""
11104  return _IMP_core.TripletConstraint___str__(self)
11105 
11106  def __repr__(self):
11107  r"""__repr__(TripletConstraint self) -> std::string"""
11108  return _IMP_core.TripletConstraint___repr__(self)
11109 
11110  @staticmethod
11111  def get_from(o):
11112  return _object_cast_to_TripletConstraint(o)
11113 
11114 
11115  def _get_as_binary(self):
11116  r"""_get_as_binary(TripletConstraint self) -> PyObject *"""
11117  return _IMP_core.TripletConstraint__get_as_binary(self)
11118 
11119  def _set_from_binary(self, p):
11120  r"""_set_from_binary(TripletConstraint self, PyObject * p)"""
11121  return _IMP_core.TripletConstraint__set_from_binary(self, p)
11122 
11123  def __getstate__(self):
11124  p = self._get_as_binary()
11125  if len(self.__dict__) > 1:
11126  d = self.__dict__.copy()
11127  del d['this']
11128  p = (d, p)
11129  return p
11130 
11131  def __setstate__(self, p):
11132  if not hasattr(self, 'this'):
11133  self.__init__()
11134  if isinstance(p, tuple):
11135  d, p = p
11136  self.__dict__.update(d)
11137  return self._set_from_binary(p)
11138 
11139 
11140 # Register TripletConstraint in _IMP_core:
11141 _IMP_core.TripletConstraint_swigregister(TripletConstraint)
11142 class QuadConstraint(IMP.Constraint):
11143  r"""Proxy of C++ IMP::core::QuadConstraint class."""
11144 
11145  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11146 
11147  def __init__(self, *args):
11148  r"""
11149  __init__(QuadConstraint self, QuadModifier before, QuadModifier after, Model m, IMP::ParticleIndexQuad const & vt, std::string name="QuadConstraint %1%", bool can_skip=False) -> QuadConstraint
11150  __init__(QuadConstraint self) -> QuadConstraint
11151  """
11152  _IMP_core.QuadConstraint_swiginit(self, _IMP_core.new_QuadConstraint(*args))
11153 
11154  def get_version_info(self):
11155  r"""get_version_info(QuadConstraint self) -> VersionInfo"""
11156  return _IMP_core.QuadConstraint_get_version_info(self)
11157  __swig_destroy__ = _IMP_core.delete_QuadConstraint
11158 
11159  def __str__(self):
11160  r"""__str__(QuadConstraint self) -> std::string"""
11161  return _IMP_core.QuadConstraint___str__(self)
11162 
11163  def __repr__(self):
11164  r"""__repr__(QuadConstraint self) -> std::string"""
11165  return _IMP_core.QuadConstraint___repr__(self)
11166 
11167  @staticmethod
11168  def get_from(o):
11169  return _object_cast_to_QuadConstraint(o)
11170 
11171 
11172  def _get_as_binary(self):
11173  r"""_get_as_binary(QuadConstraint self) -> PyObject *"""
11174  return _IMP_core.QuadConstraint__get_as_binary(self)
11175 
11176  def _set_from_binary(self, p):
11177  r"""_set_from_binary(QuadConstraint self, PyObject * p)"""
11178  return _IMP_core.QuadConstraint__set_from_binary(self, p)
11179 
11180  def __getstate__(self):
11181  p = self._get_as_binary()
11182  if len(self.__dict__) > 1:
11183  d = self.__dict__.copy()
11184  del d['this']
11185  p = (d, p)
11186  return p
11187 
11188  def __setstate__(self, p):
11189  if not hasattr(self, 'this'):
11190  self.__init__()
11191  if isinstance(p, tuple):
11192  d, p = p
11193  self.__dict__.update(d)
11194  return self._set_from_binary(p)
11195 
11196 
11197 # Register QuadConstraint in _IMP_core:
11198 _IMP_core.QuadConstraint_swigregister(QuadConstraint)
11199 class ConstantSingletonPredicate(IMP.SingletonPredicate):
11200  r"""Proxy of C++ IMP::core::ConstantSingletonPredicate class."""
11201 
11202  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11203 
11204  def __init__(self, *args):
11205  r"""
11206  __init__(ConstantSingletonPredicate self, int v, std::string name="ConstSingletonPredicate%1%") -> ConstantSingletonPredicate
11207  __init__(ConstantSingletonPredicate self) -> ConstantSingletonPredicate
11208  """
11209  _IMP_core.ConstantSingletonPredicate_swiginit(self, _IMP_core.new_ConstantSingletonPredicate(*args))
11210 
11211  def do_get_inputs(self, arg2, arg3):
11212  r"""do_get_inputs(ConstantSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11213  return _IMP_core.ConstantSingletonPredicate_do_get_inputs(self, arg2, arg3)
11214 
11215  def get_value(self, *args):
11216  r"""
11217  get_value(ConstantSingletonPredicate self, Particle a) -> int
11218  get_value(ConstantSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11219  """
11220  return _IMP_core.ConstantSingletonPredicate_get_value(self, *args)
11221 
11222  def get_value_index(self, *args):
11223  r"""
11224  get_value_index(ConstantSingletonPredicate self, Model arg2, ParticleIndex arg3) -> int
11225  get_value_index(ConstantSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11226  """
11227  return _IMP_core.ConstantSingletonPredicate_get_value_index(self, *args)
11228 
11229  def get_version_info(self):
11230  r"""get_version_info(ConstantSingletonPredicate self) -> VersionInfo"""
11231  return _IMP_core.ConstantSingletonPredicate_get_version_info(self)
11232  __swig_destroy__ = _IMP_core.delete_ConstantSingletonPredicate
11233 
11234  def __str__(self):
11235  r"""__str__(ConstantSingletonPredicate self) -> std::string"""
11236  return _IMP_core.ConstantSingletonPredicate___str__(self)
11237 
11238  def __repr__(self):
11239  r"""__repr__(ConstantSingletonPredicate self) -> std::string"""
11240  return _IMP_core.ConstantSingletonPredicate___repr__(self)
11241 
11242  @staticmethod
11243  def get_from(o):
11244  return _object_cast_to_ConstantSingletonPredicate(o)
11245 
11246 
11247  def _get_as_binary(self):
11248  r"""_get_as_binary(ConstantSingletonPredicate self) -> PyObject *"""
11249  return _IMP_core.ConstantSingletonPredicate__get_as_binary(self)
11250 
11251  def _set_from_binary(self, p):
11252  r"""_set_from_binary(ConstantSingletonPredicate self, PyObject * p)"""
11253  return _IMP_core.ConstantSingletonPredicate__set_from_binary(self, p)
11254 
11255  def __getstate__(self):
11256  p = self._get_as_binary()
11257  if len(self.__dict__) > 1:
11258  d = self.__dict__.copy()
11259  del d['this']
11260  p = (d, p)
11261  return p
11262 
11263  def __setstate__(self, p):
11264  if not hasattr(self, 'this'):
11265  self.__init__()
11266  if isinstance(p, tuple):
11267  d, p = p
11268  self.__dict__.update(d)
11269  return self._set_from_binary(p)
11270 
11271 
11272 # Register ConstantSingletonPredicate in _IMP_core:
11273 _IMP_core.ConstantSingletonPredicate_swigregister(ConstantSingletonPredicate)
11274 class UnorderedTypeSingletonPredicate(IMP.SingletonPredicate):
11275  r"""Proxy of C++ IMP::core::UnorderedTypeSingletonPredicate class."""
11276 
11277  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11278 
11279  def __init__(self, *args):
11280  r"""__init__(UnorderedTypeSingletonPredicate self, std::string name="UnorderedTypeSingletonPredicate%1%") -> UnorderedTypeSingletonPredicate"""
11281  _IMP_core.UnorderedTypeSingletonPredicate_swiginit(self, _IMP_core.new_UnorderedTypeSingletonPredicate(*args))
11282 
11283  def do_get_inputs(self, m, pis):
11284  r"""do_get_inputs(UnorderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11285  return _IMP_core.UnorderedTypeSingletonPredicate_do_get_inputs(self, m, pis)
11286 
11287  def get_value(self, *args):
11288  r"""
11289  get_value(UnorderedTypeSingletonPredicate self, Particle a) -> int
11290  get_value(UnorderedTypeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11291  """
11292  return _IMP_core.UnorderedTypeSingletonPredicate_get_value(self, *args)
11293 
11294  def get_value_index(self, *args):
11295  r"""
11296  get_value_index(UnorderedTypeSingletonPredicate self, Model m, ParticleIndex pi) -> int
11297  get_value_index(UnorderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11298  """
11299  return _IMP_core.UnorderedTypeSingletonPredicate_get_value_index(self, *args)
11300 
11301  def get_version_info(self):
11302  r"""get_version_info(UnorderedTypeSingletonPredicate self) -> VersionInfo"""
11303  return _IMP_core.UnorderedTypeSingletonPredicate_get_version_info(self)
11304  __swig_destroy__ = _IMP_core.delete_UnorderedTypeSingletonPredicate
11305 
11306  def __str__(self):
11307  r"""__str__(UnorderedTypeSingletonPredicate self) -> std::string"""
11308  return _IMP_core.UnorderedTypeSingletonPredicate___str__(self)
11309 
11310  def __repr__(self):
11311  r"""__repr__(UnorderedTypeSingletonPredicate self) -> std::string"""
11312  return _IMP_core.UnorderedTypeSingletonPredicate___repr__(self)
11313 
11314  @staticmethod
11315  def get_from(o):
11316  return _object_cast_to_UnorderedTypeSingletonPredicate(o)
11317 
11318 
11319  def _get_as_binary(self):
11320  r"""_get_as_binary(UnorderedTypeSingletonPredicate self) -> PyObject *"""
11321  return _IMP_core.UnorderedTypeSingletonPredicate__get_as_binary(self)
11322 
11323  def _set_from_binary(self, p):
11324  r"""_set_from_binary(UnorderedTypeSingletonPredicate self, PyObject * p)"""
11325  return _IMP_core.UnorderedTypeSingletonPredicate__set_from_binary(self, p)
11326 
11327  def __getstate__(self):
11328  p = self._get_as_binary()
11329  if len(self.__dict__) > 1:
11330  d = self.__dict__.copy()
11331  del d['this']
11332  p = (d, p)
11333  return p
11334 
11335  def __setstate__(self, p):
11336  if not hasattr(self, 'this'):
11337  self.__init__()
11338  if isinstance(p, tuple):
11339  d, p = p
11340  self.__dict__.update(d)
11341  return self._set_from_binary(p)
11342 
11343 
11344 # Register UnorderedTypeSingletonPredicate in _IMP_core:
11345 _IMP_core.UnorderedTypeSingletonPredicate_swigregister(UnorderedTypeSingletonPredicate)
11346 class OrderedTypeSingletonPredicate(IMP.SingletonPredicate):
11347  r"""Proxy of C++ IMP::core::OrderedTypeSingletonPredicate class."""
11348 
11349  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11350 
11351  def __init__(self, *args):
11352  r"""__init__(OrderedTypeSingletonPredicate self, std::string name="OrderedTypeSingletonPredicate%1%") -> OrderedTypeSingletonPredicate"""
11353  _IMP_core.OrderedTypeSingletonPredicate_swiginit(self, _IMP_core.new_OrderedTypeSingletonPredicate(*args))
11354 
11355  def do_get_inputs(self, m, pis):
11356  r"""do_get_inputs(OrderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11357  return _IMP_core.OrderedTypeSingletonPredicate_do_get_inputs(self, m, pis)
11358 
11359  def get_value(self, *args):
11360  r"""
11361  get_value(OrderedTypeSingletonPredicate self, IMP::core::ParticleTypes const & types) -> int
11362  get_value(OrderedTypeSingletonPredicate self, Particle a) -> int
11363  get_value(OrderedTypeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11364  """
11365  return _IMP_core.OrderedTypeSingletonPredicate_get_value(self, *args)
11366 
11367  def get_value_index(self, *args):
11368  r"""
11369  get_value_index(OrderedTypeSingletonPredicate self, Model m, ParticleIndex pi) -> int
11370  get_value_index(OrderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11371  """
11372  return _IMP_core.OrderedTypeSingletonPredicate_get_value_index(self, *args)
11373 
11374  def get_version_info(self):
11375  r"""get_version_info(OrderedTypeSingletonPredicate self) -> VersionInfo"""
11376  return _IMP_core.OrderedTypeSingletonPredicate_get_version_info(self)
11377  __swig_destroy__ = _IMP_core.delete_OrderedTypeSingletonPredicate
11378 
11379  def __str__(self):
11380  r"""__str__(OrderedTypeSingletonPredicate self) -> std::string"""
11381  return _IMP_core.OrderedTypeSingletonPredicate___str__(self)
11382 
11383  def __repr__(self):
11384  r"""__repr__(OrderedTypeSingletonPredicate self) -> std::string"""
11385  return _IMP_core.OrderedTypeSingletonPredicate___repr__(self)
11386 
11387  @staticmethod
11388  def get_from(o):
11389  return _object_cast_to_OrderedTypeSingletonPredicate(o)
11390 
11391 
11392 # Register OrderedTypeSingletonPredicate in _IMP_core:
11393 _IMP_core.OrderedTypeSingletonPredicate_swigregister(OrderedTypeSingletonPredicate)
11394 class AllSameSingletonPredicate(IMP.SingletonPredicate):
11395  r"""Proxy of C++ IMP::core::AllSameSingletonPredicate class."""
11396 
11397  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11398 
11399  def __init__(self, *args):
11400  r"""__init__(AllSameSingletonPredicate self, std::string name="AllSameSingletonPredicate%1%") -> AllSameSingletonPredicate"""
11401  _IMP_core.AllSameSingletonPredicate_swiginit(self, _IMP_core.new_AllSameSingletonPredicate(*args))
11402 
11403  def do_get_inputs(self, arg2, arg3):
11404  r"""do_get_inputs(AllSameSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11405  return _IMP_core.AllSameSingletonPredicate_do_get_inputs(self, arg2, arg3)
11406 
11407  def get_value(self, *args):
11408  r"""
11409  get_value(AllSameSingletonPredicate self, Particle a) -> int
11410  get_value(AllSameSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11411  """
11412  return _IMP_core.AllSameSingletonPredicate_get_value(self, *args)
11413 
11414  def get_value_index(self, *args):
11415  r"""
11416  get_value_index(AllSameSingletonPredicate self, Model m, ParticleIndex pi) -> int
11417  get_value_index(AllSameSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11418  """
11419  return _IMP_core.AllSameSingletonPredicate_get_value_index(self, *args)
11420 
11421  def get_version_info(self):
11422  r"""get_version_info(AllSameSingletonPredicate self) -> VersionInfo"""
11423  return _IMP_core.AllSameSingletonPredicate_get_version_info(self)
11424  __swig_destroy__ = _IMP_core.delete_AllSameSingletonPredicate
11425 
11426  def __str__(self):
11427  r"""__str__(AllSameSingletonPredicate self) -> std::string"""
11428  return _IMP_core.AllSameSingletonPredicate___str__(self)
11429 
11430  def __repr__(self):
11431  r"""__repr__(AllSameSingletonPredicate self) -> std::string"""
11432  return _IMP_core.AllSameSingletonPredicate___repr__(self)
11433 
11434  @staticmethod
11435  def get_from(o):
11436  return _object_cast_to_AllSameSingletonPredicate(o)
11437 
11438 
11439  def _get_as_binary(self):
11440  r"""_get_as_binary(AllSameSingletonPredicate self) -> PyObject *"""
11441  return _IMP_core.AllSameSingletonPredicate__get_as_binary(self)
11442 
11443  def _set_from_binary(self, p):
11444  r"""_set_from_binary(AllSameSingletonPredicate self, PyObject * p)"""
11445  return _IMP_core.AllSameSingletonPredicate__set_from_binary(self, p)
11446 
11447  def __getstate__(self):
11448  p = self._get_as_binary()
11449  if len(self.__dict__) > 1:
11450  d = self.__dict__.copy()
11451  del d['this']
11452  p = (d, p)
11453  return p
11454 
11455  def __setstate__(self, p):
11456  if not hasattr(self, 'this'):
11457  self.__init__()
11458  if isinstance(p, tuple):
11459  d, p = p
11460  self.__dict__.update(d)
11461  return self._set_from_binary(p)
11462 
11463 
11464 # Register AllSameSingletonPredicate in _IMP_core:
11465 _IMP_core.AllSameSingletonPredicate_swigregister(AllSameSingletonPredicate)
11466 class CoinFlipSingletonPredicate(IMP.SingletonPredicate):
11467  r"""Proxy of C++ IMP::core::CoinFlipSingletonPredicate class."""
11468 
11469  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11470 
11471  def __init__(self, *args):
11472  r"""__init__(CoinFlipSingletonPredicate self, double p, std::string name="CoinFlipSingletonPredicate%1%") -> CoinFlipSingletonPredicate"""
11473  _IMP_core.CoinFlipSingletonPredicate_swiginit(self, _IMP_core.new_CoinFlipSingletonPredicate(*args))
11474 
11475  def do_get_inputs(self, arg2, arg3):
11476  r"""do_get_inputs(CoinFlipSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11477  return _IMP_core.CoinFlipSingletonPredicate_do_get_inputs(self, arg2, arg3)
11478 
11479  def get_value(self, *args):
11480  r"""
11481  get_value(CoinFlipSingletonPredicate self, Particle a) -> int
11482  get_value(CoinFlipSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11483  """
11484  return _IMP_core.CoinFlipSingletonPredicate_get_value(self, *args)
11485 
11486  def get_value_index(self, *args):
11487  r"""
11488  get_value_index(CoinFlipSingletonPredicate self, Model arg2, ParticleIndex arg3) -> int
11489  get_value_index(CoinFlipSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11490  """
11491  return _IMP_core.CoinFlipSingletonPredicate_get_value_index(self, *args)
11492 
11493  def get_version_info(self):
11494  r"""get_version_info(CoinFlipSingletonPredicate self) -> VersionInfo"""
11495  return _IMP_core.CoinFlipSingletonPredicate_get_version_info(self)
11496  __swig_destroy__ = _IMP_core.delete_CoinFlipSingletonPredicate
11497 
11498  def __str__(self):
11499  r"""__str__(CoinFlipSingletonPredicate self) -> std::string"""
11500  return _IMP_core.CoinFlipSingletonPredicate___str__(self)
11501 
11502  def __repr__(self):
11503  r"""__repr__(CoinFlipSingletonPredicate self) -> std::string"""
11504  return _IMP_core.CoinFlipSingletonPredicate___repr__(self)
11505 
11506  @staticmethod
11507  def get_from(o):
11508  return _object_cast_to_CoinFlipSingletonPredicate(o)
11509 
11510 
11511 # Register CoinFlipSingletonPredicate in _IMP_core:
11512 _IMP_core.CoinFlipSingletonPredicate_swigregister(CoinFlipSingletonPredicate)
11513 class ConstantPairPredicate(IMP.PairPredicate):
11514  r"""Proxy of C++ IMP::core::ConstantPairPredicate class."""
11515 
11516  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11517 
11518  def __init__(self, *args):
11519  r"""
11520  __init__(ConstantPairPredicate self, int v, std::string name="ConstPairPredicate%1%") -> ConstantPairPredicate
11521  __init__(ConstantPairPredicate self) -> ConstantPairPredicate
11522  """
11523  _IMP_core.ConstantPairPredicate_swiginit(self, _IMP_core.new_ConstantPairPredicate(*args))
11524 
11525  def do_get_inputs(self, arg2, arg3):
11526  r"""do_get_inputs(ConstantPairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11527  return _IMP_core.ConstantPairPredicate_do_get_inputs(self, arg2, arg3)
11528 
11529  def get_value(self, *args):
11530  r"""
11531  get_value(ConstantPairPredicate self, IMP::ParticlePair const & a) -> int
11532  get_value(ConstantPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11533  """
11534  return _IMP_core.ConstantPairPredicate_get_value(self, *args)
11535 
11536  def get_value_index(self, *args):
11537  r"""
11538  get_value_index(ConstantPairPredicate self, Model arg2, IMP::ParticleIndexPair const & arg3) -> int
11539  get_value_index(ConstantPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11540  """
11541  return _IMP_core.ConstantPairPredicate_get_value_index(self, *args)
11542 
11543  def get_version_info(self):
11544  r"""get_version_info(ConstantPairPredicate self) -> VersionInfo"""
11545  return _IMP_core.ConstantPairPredicate_get_version_info(self)
11546  __swig_destroy__ = _IMP_core.delete_ConstantPairPredicate
11547 
11548  def __str__(self):
11549  r"""__str__(ConstantPairPredicate self) -> std::string"""
11550  return _IMP_core.ConstantPairPredicate___str__(self)
11551 
11552  def __repr__(self):
11553  r"""__repr__(ConstantPairPredicate self) -> std::string"""
11554  return _IMP_core.ConstantPairPredicate___repr__(self)
11555 
11556  @staticmethod
11557  def get_from(o):
11558  return _object_cast_to_ConstantPairPredicate(o)
11559 
11560 
11561  def _get_as_binary(self):
11562  r"""_get_as_binary(ConstantPairPredicate self) -> PyObject *"""
11563  return _IMP_core.ConstantPairPredicate__get_as_binary(self)
11564 
11565  def _set_from_binary(self, p):
11566  r"""_set_from_binary(ConstantPairPredicate self, PyObject * p)"""
11567  return _IMP_core.ConstantPairPredicate__set_from_binary(self, p)
11568 
11569  def __getstate__(self):
11570  p = self._get_as_binary()
11571  if len(self.__dict__) > 1:
11572  d = self.__dict__.copy()
11573  del d['this']
11574  p = (d, p)
11575  return p
11576 
11577  def __setstate__(self, p):
11578  if not hasattr(self, 'this'):
11579  self.__init__()
11580  if isinstance(p, tuple):
11581  d, p = p
11582  self.__dict__.update(d)
11583  return self._set_from_binary(p)
11584 
11585 
11586 # Register ConstantPairPredicate in _IMP_core:
11587 _IMP_core.ConstantPairPredicate_swigregister(ConstantPairPredicate)
11588 class UnorderedTypePairPredicate(IMP.PairPredicate):
11589  r"""Proxy of C++ IMP::core::UnorderedTypePairPredicate class."""
11590 
11591  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11592 
11593  def __init__(self, *args):
11594  r"""__init__(UnorderedTypePairPredicate self, std::string name="UnorderedTypePairPredicate%1%") -> UnorderedTypePairPredicate"""
11595  _IMP_core.UnorderedTypePairPredicate_swiginit(self, _IMP_core.new_UnorderedTypePairPredicate(*args))
11596 
11597  def do_get_inputs(self, m, pis):
11598  r"""do_get_inputs(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11599  return _IMP_core.UnorderedTypePairPredicate_do_get_inputs(self, m, pis)
11600 
11601  def get_value(self, *args):
11602  r"""
11603  get_value(UnorderedTypePairPredicate self, IMP::ParticlePair const & a) -> int
11604  get_value(UnorderedTypePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11605  """
11606  return _IMP_core.UnorderedTypePairPredicate_get_value(self, *args)
11607 
11608  def get_value_index(self, *args):
11609  r"""
11610  get_value_index(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11611  get_value_index(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11612  """
11613  return _IMP_core.UnorderedTypePairPredicate_get_value_index(self, *args)
11614 
11615  def get_version_info(self):
11616  r"""get_version_info(UnorderedTypePairPredicate self) -> VersionInfo"""
11617  return _IMP_core.UnorderedTypePairPredicate_get_version_info(self)
11618  __swig_destroy__ = _IMP_core.delete_UnorderedTypePairPredicate
11619 
11620  def __str__(self):
11621  r"""__str__(UnorderedTypePairPredicate self) -> std::string"""
11622  return _IMP_core.UnorderedTypePairPredicate___str__(self)
11623 
11624  def __repr__(self):
11625  r"""__repr__(UnorderedTypePairPredicate self) -> std::string"""
11626  return _IMP_core.UnorderedTypePairPredicate___repr__(self)
11627 
11628  @staticmethod
11629  def get_from(o):
11630  return _object_cast_to_UnorderedTypePairPredicate(o)
11631 
11632 
11633  def _get_as_binary(self):
11634  r"""_get_as_binary(UnorderedTypePairPredicate self) -> PyObject *"""
11635  return _IMP_core.UnorderedTypePairPredicate__get_as_binary(self)
11636 
11637  def _set_from_binary(self, p):
11638  r"""_set_from_binary(UnorderedTypePairPredicate self, PyObject * p)"""
11639  return _IMP_core.UnorderedTypePairPredicate__set_from_binary(self, p)
11640 
11641  def __getstate__(self):
11642  p = self._get_as_binary()
11643  if len(self.__dict__) > 1:
11644  d = self.__dict__.copy()
11645  del d['this']
11646  p = (d, p)
11647  return p
11648 
11649  def __setstate__(self, p):
11650  if not hasattr(self, 'this'):
11651  self.__init__()
11652  if isinstance(p, tuple):
11653  d, p = p
11654  self.__dict__.update(d)
11655  return self._set_from_binary(p)
11656 
11657 
11658 # Register UnorderedTypePairPredicate in _IMP_core:
11659 _IMP_core.UnorderedTypePairPredicate_swigregister(UnorderedTypePairPredicate)
11660 class OrderedTypePairPredicate(IMP.PairPredicate):
11661  r"""Proxy of C++ IMP::core::OrderedTypePairPredicate class."""
11662 
11663  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11664 
11665  def __init__(self, *args):
11666  r"""__init__(OrderedTypePairPredicate self, std::string name="OrderedTypePairPredicate%1%") -> OrderedTypePairPredicate"""
11667  _IMP_core.OrderedTypePairPredicate_swiginit(self, _IMP_core.new_OrderedTypePairPredicate(*args))
11668 
11669  def do_get_inputs(self, m, pis):
11670  r"""do_get_inputs(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11671  return _IMP_core.OrderedTypePairPredicate_do_get_inputs(self, m, pis)
11672 
11673  def get_value(self, *args):
11674  r"""
11675  get_value(OrderedTypePairPredicate self, IMP::core::ParticleTypes const & types) -> int
11676  get_value(OrderedTypePairPredicate self, IMP::ParticlePair const & a) -> int
11677  get_value(OrderedTypePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11678  """
11679  return _IMP_core.OrderedTypePairPredicate_get_value(self, *args)
11680 
11681  def get_value_index(self, *args):
11682  r"""
11683  get_value_index(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11684  get_value_index(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11685  """
11686  return _IMP_core.OrderedTypePairPredicate_get_value_index(self, *args)
11687 
11688  def get_version_info(self):
11689  r"""get_version_info(OrderedTypePairPredicate self) -> VersionInfo"""
11690  return _IMP_core.OrderedTypePairPredicate_get_version_info(self)
11691  __swig_destroy__ = _IMP_core.delete_OrderedTypePairPredicate
11692 
11693  def __str__(self):
11694  r"""__str__(OrderedTypePairPredicate self) -> std::string"""
11695  return _IMP_core.OrderedTypePairPredicate___str__(self)
11696 
11697  def __repr__(self):
11698  r"""__repr__(OrderedTypePairPredicate self) -> std::string"""
11699  return _IMP_core.OrderedTypePairPredicate___repr__(self)
11700 
11701  @staticmethod
11702  def get_from(o):
11703  return _object_cast_to_OrderedTypePairPredicate(o)
11704 
11705 
11706 # Register OrderedTypePairPredicate in _IMP_core:
11707 _IMP_core.OrderedTypePairPredicate_swigregister(OrderedTypePairPredicate)
11708 class AllSamePairPredicate(IMP.PairPredicate):
11709  r"""Proxy of C++ IMP::core::AllSamePairPredicate class."""
11710 
11711  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11712 
11713  def __init__(self, *args):
11714  r"""__init__(AllSamePairPredicate self, std::string name="AllSamePairPredicate%1%") -> AllSamePairPredicate"""
11715  _IMP_core.AllSamePairPredicate_swiginit(self, _IMP_core.new_AllSamePairPredicate(*args))
11716 
11717  def do_get_inputs(self, arg2, arg3):
11718  r"""do_get_inputs(AllSamePairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11719  return _IMP_core.AllSamePairPredicate_do_get_inputs(self, arg2, arg3)
11720 
11721  def get_value(self, *args):
11722  r"""
11723  get_value(AllSamePairPredicate self, IMP::ParticlePair const & a) -> int
11724  get_value(AllSamePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11725  """
11726  return _IMP_core.AllSamePairPredicate_get_value(self, *args)
11727 
11728  def get_value_index(self, *args):
11729  r"""
11730  get_value_index(AllSamePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11731  get_value_index(AllSamePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11732  """
11733  return _IMP_core.AllSamePairPredicate_get_value_index(self, *args)
11734 
11735  def get_version_info(self):
11736  r"""get_version_info(AllSamePairPredicate self) -> VersionInfo"""
11737  return _IMP_core.AllSamePairPredicate_get_version_info(self)
11738  __swig_destroy__ = _IMP_core.delete_AllSamePairPredicate
11739 
11740  def __str__(self):
11741  r"""__str__(AllSamePairPredicate self) -> std::string"""
11742  return _IMP_core.AllSamePairPredicate___str__(self)
11743 
11744  def __repr__(self):
11745  r"""__repr__(AllSamePairPredicate self) -> std::string"""
11746  return _IMP_core.AllSamePairPredicate___repr__(self)
11747 
11748  @staticmethod
11749  def get_from(o):
11750  return _object_cast_to_AllSamePairPredicate(o)
11751 
11752 
11753  def _get_as_binary(self):
11754  r"""_get_as_binary(AllSamePairPredicate self) -> PyObject *"""
11755  return _IMP_core.AllSamePairPredicate__get_as_binary(self)
11756 
11757  def _set_from_binary(self, p):
11758  r"""_set_from_binary(AllSamePairPredicate self, PyObject * p)"""
11759  return _IMP_core.AllSamePairPredicate__set_from_binary(self, p)
11760 
11761  def __getstate__(self):
11762  p = self._get_as_binary()
11763  if len(self.__dict__) > 1:
11764  d = self.__dict__.copy()
11765  del d['this']
11766  p = (d, p)
11767  return p
11768 
11769  def __setstate__(self, p):
11770  if not hasattr(self, 'this'):
11771  self.__init__()
11772  if isinstance(p, tuple):
11773  d, p = p
11774  self.__dict__.update(d)
11775  return self._set_from_binary(p)
11776 
11777 
11778 # Register AllSamePairPredicate in _IMP_core:
11779 _IMP_core.AllSamePairPredicate_swigregister(AllSamePairPredicate)
11780 class CoinFlipPairPredicate(IMP.PairPredicate):
11781  r"""Proxy of C++ IMP::core::CoinFlipPairPredicate class."""
11782 
11783  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11784 
11785  def __init__(self, *args):
11786  r"""__init__(CoinFlipPairPredicate self, double p, std::string name="CoinFlipPairPredicate%1%") -> CoinFlipPairPredicate"""
11787  _IMP_core.CoinFlipPairPredicate_swiginit(self, _IMP_core.new_CoinFlipPairPredicate(*args))
11788 
11789  def do_get_inputs(self, arg2, arg3):
11790  r"""do_get_inputs(CoinFlipPairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11791  return _IMP_core.CoinFlipPairPredicate_do_get_inputs(self, arg2, arg3)
11792 
11793  def get_value(self, *args):
11794  r"""
11795  get_value(CoinFlipPairPredicate self, IMP::ParticlePair const & a) -> int
11796  get_value(CoinFlipPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11797  """
11798  return _IMP_core.CoinFlipPairPredicate_get_value(self, *args)
11799 
11800  def get_value_index(self, *args):
11801  r"""
11802  get_value_index(CoinFlipPairPredicate self, Model arg2, IMP::ParticleIndexPair const & arg3) -> int
11803  get_value_index(CoinFlipPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11804  """
11805  return _IMP_core.CoinFlipPairPredicate_get_value_index(self, *args)
11806 
11807  def get_version_info(self):
11808  r"""get_version_info(CoinFlipPairPredicate self) -> VersionInfo"""
11809  return _IMP_core.CoinFlipPairPredicate_get_version_info(self)
11810  __swig_destroy__ = _IMP_core.delete_CoinFlipPairPredicate
11811 
11812  def __str__(self):
11813  r"""__str__(CoinFlipPairPredicate self) -> std::string"""
11814  return _IMP_core.CoinFlipPairPredicate___str__(self)
11815 
11816  def __repr__(self):
11817  r"""__repr__(CoinFlipPairPredicate self) -> std::string"""
11818  return _IMP_core.CoinFlipPairPredicate___repr__(self)
11819 
11820  @staticmethod
11821  def get_from(o):
11822  return _object_cast_to_CoinFlipPairPredicate(o)
11823 
11824 
11825 # Register CoinFlipPairPredicate in _IMP_core:
11826 _IMP_core.CoinFlipPairPredicate_swigregister(CoinFlipPairPredicate)
11827 class ConstantTripletPredicate(IMP.TripletPredicate):
11828  r"""Proxy of C++ IMP::core::ConstantTripletPredicate class."""
11829 
11830  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11831 
11832  def __init__(self, *args):
11833  r"""
11834  __init__(ConstantTripletPredicate self, int v, std::string name="ConstTripletPredicate%1%") -> ConstantTripletPredicate
11835  __init__(ConstantTripletPredicate self) -> ConstantTripletPredicate
11836  """
11837  _IMP_core.ConstantTripletPredicate_swiginit(self, _IMP_core.new_ConstantTripletPredicate(*args))
11838 
11839  def do_get_inputs(self, arg2, arg3):
11840  r"""do_get_inputs(ConstantTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11841  return _IMP_core.ConstantTripletPredicate_do_get_inputs(self, arg2, arg3)
11842 
11843  def get_value(self, *args):
11844  r"""
11845  get_value(ConstantTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11846  get_value(ConstantTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11847  """
11848  return _IMP_core.ConstantTripletPredicate_get_value(self, *args)
11849 
11850  def get_value_index(self, *args):
11851  r"""
11852  get_value_index(ConstantTripletPredicate self, Model arg2, IMP::ParticleIndexTriplet const & arg3) -> int
11853  get_value_index(ConstantTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11854  """
11855  return _IMP_core.ConstantTripletPredicate_get_value_index(self, *args)
11856 
11857  def get_version_info(self):
11858  r"""get_version_info(ConstantTripletPredicate self) -> VersionInfo"""
11859  return _IMP_core.ConstantTripletPredicate_get_version_info(self)
11860  __swig_destroy__ = _IMP_core.delete_ConstantTripletPredicate
11861 
11862  def __str__(self):
11863  r"""__str__(ConstantTripletPredicate self) -> std::string"""
11864  return _IMP_core.ConstantTripletPredicate___str__(self)
11865 
11866  def __repr__(self):
11867  r"""__repr__(ConstantTripletPredicate self) -> std::string"""
11868  return _IMP_core.ConstantTripletPredicate___repr__(self)
11869 
11870  @staticmethod
11871  def get_from(o):
11872  return _object_cast_to_ConstantTripletPredicate(o)
11873 
11874 
11875  def _get_as_binary(self):
11876  r"""_get_as_binary(ConstantTripletPredicate self) -> PyObject *"""
11877  return _IMP_core.ConstantTripletPredicate__get_as_binary(self)
11878 
11879  def _set_from_binary(self, p):
11880  r"""_set_from_binary(ConstantTripletPredicate self, PyObject * p)"""
11881  return _IMP_core.ConstantTripletPredicate__set_from_binary(self, p)
11882 
11883  def __getstate__(self):
11884  p = self._get_as_binary()
11885  if len(self.__dict__) > 1:
11886  d = self.__dict__.copy()
11887  del d['this']
11888  p = (d, p)
11889  return p
11890 
11891  def __setstate__(self, p):
11892  if not hasattr(self, 'this'):
11893  self.__init__()
11894  if isinstance(p, tuple):
11895  d, p = p
11896  self.__dict__.update(d)
11897  return self._set_from_binary(p)
11898 
11899 
11900 # Register ConstantTripletPredicate in _IMP_core:
11901 _IMP_core.ConstantTripletPredicate_swigregister(ConstantTripletPredicate)
11902 class UnorderedTypeTripletPredicate(IMP.TripletPredicate):
11903  r"""Proxy of C++ IMP::core::UnorderedTypeTripletPredicate class."""
11904 
11905  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11906 
11907  def __init__(self, *args):
11908  r"""__init__(UnorderedTypeTripletPredicate self, std::string name="UnorderedTypeTripletPredicate%1%") -> UnorderedTypeTripletPredicate"""
11909  _IMP_core.UnorderedTypeTripletPredicate_swiginit(self, _IMP_core.new_UnorderedTypeTripletPredicate(*args))
11910 
11911  def do_get_inputs(self, m, pis):
11912  r"""do_get_inputs(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11913  return _IMP_core.UnorderedTypeTripletPredicate_do_get_inputs(self, m, pis)
11914 
11915  def get_value(self, *args):
11916  r"""
11917  get_value(UnorderedTypeTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11918  get_value(UnorderedTypeTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11919  """
11920  return _IMP_core.UnorderedTypeTripletPredicate_get_value(self, *args)
11921 
11922  def get_value_index(self, *args):
11923  r"""
11924  get_value_index(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
11925  get_value_index(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11926  """
11927  return _IMP_core.UnorderedTypeTripletPredicate_get_value_index(self, *args)
11928 
11929  def get_version_info(self):
11930  r"""get_version_info(UnorderedTypeTripletPredicate self) -> VersionInfo"""
11931  return _IMP_core.UnorderedTypeTripletPredicate_get_version_info(self)
11932  __swig_destroy__ = _IMP_core.delete_UnorderedTypeTripletPredicate
11933 
11934  def __str__(self):
11935  r"""__str__(UnorderedTypeTripletPredicate self) -> std::string"""
11936  return _IMP_core.UnorderedTypeTripletPredicate___str__(self)
11937 
11938  def __repr__(self):
11939  r"""__repr__(UnorderedTypeTripletPredicate self) -> std::string"""
11940  return _IMP_core.UnorderedTypeTripletPredicate___repr__(self)
11941 
11942  @staticmethod
11943  def get_from(o):
11944  return _object_cast_to_UnorderedTypeTripletPredicate(o)
11945 
11946 
11947  def _get_as_binary(self):
11948  r"""_get_as_binary(UnorderedTypeTripletPredicate self) -> PyObject *"""
11949  return _IMP_core.UnorderedTypeTripletPredicate__get_as_binary(self)
11950 
11951  def _set_from_binary(self, p):
11952  r"""_set_from_binary(UnorderedTypeTripletPredicate self, PyObject * p)"""
11953  return _IMP_core.UnorderedTypeTripletPredicate__set_from_binary(self, p)
11954 
11955  def __getstate__(self):
11956  p = self._get_as_binary()
11957  if len(self.__dict__) > 1:
11958  d = self.__dict__.copy()
11959  del d['this']
11960  p = (d, p)
11961  return p
11962 
11963  def __setstate__(self, p):
11964  if not hasattr(self, 'this'):
11965  self.__init__()
11966  if isinstance(p, tuple):
11967  d, p = p
11968  self.__dict__.update(d)
11969  return self._set_from_binary(p)
11970 
11971 
11972 # Register UnorderedTypeTripletPredicate in _IMP_core:
11973 _IMP_core.UnorderedTypeTripletPredicate_swigregister(UnorderedTypeTripletPredicate)
11974 class OrderedTypeTripletPredicate(IMP.TripletPredicate):
11975  r"""Proxy of C++ IMP::core::OrderedTypeTripletPredicate class."""
11976 
11977  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11978 
11979  def __init__(self, *args):
11980  r"""__init__(OrderedTypeTripletPredicate self, std::string name="OrderedTypeTripletPredicate%1%") -> OrderedTypeTripletPredicate"""
11981  _IMP_core.OrderedTypeTripletPredicate_swiginit(self, _IMP_core.new_OrderedTypeTripletPredicate(*args))
11982 
11983  def do_get_inputs(self, m, pis):
11984  r"""do_get_inputs(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11985  return _IMP_core.OrderedTypeTripletPredicate_do_get_inputs(self, m, pis)
11986 
11987  def get_value(self, *args):
11988  r"""
11989  get_value(OrderedTypeTripletPredicate self, IMP::core::ParticleTypes const & types) -> int
11990  get_value(OrderedTypeTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11991  get_value(OrderedTypeTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11992  """
11993  return _IMP_core.OrderedTypeTripletPredicate_get_value(self, *args)
11994 
11995  def get_value_index(self, *args):
11996  r"""
11997  get_value_index(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
11998  get_value_index(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11999  """
12000  return _IMP_core.OrderedTypeTripletPredicate_get_value_index(self, *args)
12001 
12002  def get_version_info(self):
12003  r"""get_version_info(OrderedTypeTripletPredicate self) -> VersionInfo"""
12004  return _IMP_core.OrderedTypeTripletPredicate_get_version_info(self)
12005  __swig_destroy__ = _IMP_core.delete_OrderedTypeTripletPredicate
12006 
12007  def __str__(self):
12008  r"""__str__(OrderedTypeTripletPredicate self) -> std::string"""
12009  return _IMP_core.OrderedTypeTripletPredicate___str__(self)
12010 
12011  def __repr__(self):
12012  r"""__repr__(OrderedTypeTripletPredicate self) -> std::string"""
12013  return _IMP_core.OrderedTypeTripletPredicate___repr__(self)
12014 
12015  @staticmethod
12016  def get_from(o):
12017  return _object_cast_to_OrderedTypeTripletPredicate(o)
12018 
12019 
12020 # Register OrderedTypeTripletPredicate in _IMP_core:
12021 _IMP_core.OrderedTypeTripletPredicate_swigregister(OrderedTypeTripletPredicate)
12022 class AllSameTripletPredicate(IMP.TripletPredicate):
12023  r"""Proxy of C++ IMP::core::AllSameTripletPredicate class."""
12024 
12025  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12026 
12027  def __init__(self, *args):
12028  r"""__init__(AllSameTripletPredicate self, std::string name="AllSameTripletPredicate%1%") -> AllSameTripletPredicate"""
12029  _IMP_core.AllSameTripletPredicate_swiginit(self, _IMP_core.new_AllSameTripletPredicate(*args))
12030 
12031  def do_get_inputs(self, arg2, arg3):
12032  r"""do_get_inputs(AllSameTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12033  return _IMP_core.AllSameTripletPredicate_do_get_inputs(self, arg2, arg3)
12034 
12035  def get_value(self, *args):
12036  r"""
12037  get_value(AllSameTripletPredicate self, IMP::ParticleTriplet const & a) -> int
12038  get_value(AllSameTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
12039  """
12040  return _IMP_core.AllSameTripletPredicate_get_value(self, *args)
12041 
12042  def get_value_index(self, *args):
12043  r"""
12044  get_value_index(AllSameTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
12045  get_value_index(AllSameTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
12046  """
12047  return _IMP_core.AllSameTripletPredicate_get_value_index(self, *args)
12048 
12049  def get_version_info(self):
12050  r"""get_version_info(AllSameTripletPredicate self) -> VersionInfo"""
12051  return _IMP_core.AllSameTripletPredicate_get_version_info(self)
12052  __swig_destroy__ = _IMP_core.delete_AllSameTripletPredicate
12053 
12054  def __str__(self):
12055  r"""__str__(AllSameTripletPredicate self) -> std::string"""
12056  return _IMP_core.AllSameTripletPredicate___str__(self)
12057 
12058  def __repr__(self):
12059  r"""__repr__(AllSameTripletPredicate self) -> std::string"""
12060  return _IMP_core.AllSameTripletPredicate___repr__(self)
12061 
12062  @staticmethod
12063  def get_from(o):
12064  return _object_cast_to_AllSameTripletPredicate(o)
12065 
12066 
12067  def _get_as_binary(self):
12068  r"""_get_as_binary(AllSameTripletPredicate self) -> PyObject *"""
12069  return _IMP_core.AllSameTripletPredicate__get_as_binary(self)
12070 
12071  def _set_from_binary(self, p):
12072  r"""_set_from_binary(AllSameTripletPredicate self, PyObject * p)"""
12073  return _IMP_core.AllSameTripletPredicate__set_from_binary(self, p)
12074 
12075  def __getstate__(self):
12076  p = self._get_as_binary()
12077  if len(self.__dict__) > 1:
12078  d = self.__dict__.copy()
12079  del d['this']
12080  p = (d, p)
12081  return p
12082 
12083  def __setstate__(self, p):
12084  if not hasattr(self, 'this'):
12085  self.__init__()
12086  if isinstance(p, tuple):
12087  d, p = p
12088  self.__dict__.update(d)
12089  return self._set_from_binary(p)
12090 
12091 
12092 # Register AllSameTripletPredicate in _IMP_core:
12093 _IMP_core.AllSameTripletPredicate_swigregister(AllSameTripletPredicate)
12094 class CoinFlipTripletPredicate(IMP.TripletPredicate):
12095  r"""Proxy of C++ IMP::core::CoinFlipTripletPredicate class."""
12096 
12097  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12098 
12099  def __init__(self, *args):
12100  r"""__init__(CoinFlipTripletPredicate self, double p, std::string name="CoinFlipTripletPredicate%1%") -> CoinFlipTripletPredicate"""
12101  _IMP_core.CoinFlipTripletPredicate_swiginit(self, _IMP_core.new_CoinFlipTripletPredicate(*args))
12102 
12103  def do_get_inputs(self, arg2, arg3):
12104  r"""do_get_inputs(CoinFlipTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12105  return _IMP_core.CoinFlipTripletPredicate_do_get_inputs(self, arg2, arg3)
12106 
12107  def get_value(self, *args):
12108  r"""
12109  get_value(CoinFlipTripletPredicate self, IMP::ParticleTriplet const & a) -> int
12110  get_value(CoinFlipTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
12111  """
12112  return _IMP_core.CoinFlipTripletPredicate_get_value(self, *args)
12113 
12114  def get_value_index(self, *args):
12115  r"""
12116  get_value_index(CoinFlipTripletPredicate self, Model arg2, IMP::ParticleIndexTriplet const & arg3) -> int
12117  get_value_index(CoinFlipTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
12118  """
12119  return _IMP_core.CoinFlipTripletPredicate_get_value_index(self, *args)
12120 
12121  def get_version_info(self):
12122  r"""get_version_info(CoinFlipTripletPredicate self) -> VersionInfo"""
12123  return _IMP_core.CoinFlipTripletPredicate_get_version_info(self)
12124  __swig_destroy__ = _IMP_core.delete_CoinFlipTripletPredicate
12125 
12126  def __str__(self):
12127  r"""__str__(CoinFlipTripletPredicate self) -> std::string"""
12128  return _IMP_core.CoinFlipTripletPredicate___str__(self)
12129 
12130  def __repr__(self):
12131  r"""__repr__(CoinFlipTripletPredicate self) -> std::string"""
12132  return _IMP_core.CoinFlipTripletPredicate___repr__(self)
12133 
12134  @staticmethod
12135  def get_from(o):
12136  return _object_cast_to_CoinFlipTripletPredicate(o)
12137 
12138 
12139 # Register CoinFlipTripletPredicate in _IMP_core:
12140 _IMP_core.CoinFlipTripletPredicate_swigregister(CoinFlipTripletPredicate)
12141 class ConstantQuadPredicate(IMP.QuadPredicate):
12142  r"""Proxy of C++ IMP::core::ConstantQuadPredicate class."""
12143 
12144  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12145 
12146  def __init__(self, *args):
12147  r"""
12148  __init__(ConstantQuadPredicate self, int v, std::string name="ConstQuadPredicate%1%") -> ConstantQuadPredicate
12149  __init__(ConstantQuadPredicate self) -> ConstantQuadPredicate
12150  """
12151  _IMP_core.ConstantQuadPredicate_swiginit(self, _IMP_core.new_ConstantQuadPredicate(*args))
12152 
12153  def do_get_inputs(self, arg2, arg3):
12154  r"""do_get_inputs(ConstantQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12155  return _IMP_core.ConstantQuadPredicate_do_get_inputs(self, arg2, arg3)
12156 
12157  def get_value(self, *args):
12158  r"""
12159  get_value(ConstantQuadPredicate self, IMP::ParticleQuad const & a) -> int
12160  get_value(ConstantQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12161  """
12162  return _IMP_core.ConstantQuadPredicate_get_value(self, *args)
12163 
12164  def get_value_index(self, *args):
12165  r"""
12166  get_value_index(ConstantQuadPredicate self, Model arg2, IMP::ParticleIndexQuad const & arg3) -> int
12167  get_value_index(ConstantQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12168  """
12169  return _IMP_core.ConstantQuadPredicate_get_value_index(self, *args)
12170 
12171  def get_version_info(self):
12172  r"""get_version_info(ConstantQuadPredicate self) -> VersionInfo"""
12173  return _IMP_core.ConstantQuadPredicate_get_version_info(self)
12174  __swig_destroy__ = _IMP_core.delete_ConstantQuadPredicate
12175 
12176  def __str__(self):
12177  r"""__str__(ConstantQuadPredicate self) -> std::string"""
12178  return _IMP_core.ConstantQuadPredicate___str__(self)
12179 
12180  def __repr__(self):
12181  r"""__repr__(ConstantQuadPredicate self) -> std::string"""
12182  return _IMP_core.ConstantQuadPredicate___repr__(self)
12183 
12184  @staticmethod
12185  def get_from(o):
12186  return _object_cast_to_ConstantQuadPredicate(o)
12187 
12188 
12189  def _get_as_binary(self):
12190  r"""_get_as_binary(ConstantQuadPredicate self) -> PyObject *"""
12191  return _IMP_core.ConstantQuadPredicate__get_as_binary(self)
12192 
12193  def _set_from_binary(self, p):
12194  r"""_set_from_binary(ConstantQuadPredicate self, PyObject * p)"""
12195  return _IMP_core.ConstantQuadPredicate__set_from_binary(self, p)
12196 
12197  def __getstate__(self):
12198  p = self._get_as_binary()
12199  if len(self.__dict__) > 1:
12200  d = self.__dict__.copy()
12201  del d['this']
12202  p = (d, p)
12203  return p
12204 
12205  def __setstate__(self, p):
12206  if not hasattr(self, 'this'):
12207  self.__init__()
12208  if isinstance(p, tuple):
12209  d, p = p
12210  self.__dict__.update(d)
12211  return self._set_from_binary(p)
12212 
12213 
12214 # Register ConstantQuadPredicate in _IMP_core:
12215 _IMP_core.ConstantQuadPredicate_swigregister(ConstantQuadPredicate)
12216 class UnorderedTypeQuadPredicate(IMP.QuadPredicate):
12217  r"""Proxy of C++ IMP::core::UnorderedTypeQuadPredicate class."""
12218 
12219  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12220 
12221  def __init__(self, *args):
12222  r"""__init__(UnorderedTypeQuadPredicate self, std::string name="UnorderedTypeQuadPredicate%1%") -> UnorderedTypeQuadPredicate"""
12223  _IMP_core.UnorderedTypeQuadPredicate_swiginit(self, _IMP_core.new_UnorderedTypeQuadPredicate(*args))
12224 
12225  def do_get_inputs(self, m, pis):
12226  r"""do_get_inputs(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12227  return _IMP_core.UnorderedTypeQuadPredicate_do_get_inputs(self, m, pis)
12228 
12229  def get_value(self, *args):
12230  r"""
12231  get_value(UnorderedTypeQuadPredicate self, IMP::ParticleQuad const & a) -> int
12232  get_value(UnorderedTypeQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12233  """
12234  return _IMP_core.UnorderedTypeQuadPredicate_get_value(self, *args)
12235 
12236  def get_value_index(self, *args):
12237  r"""
12238  get_value_index(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12239  get_value_index(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12240  """
12241  return _IMP_core.UnorderedTypeQuadPredicate_get_value_index(self, *args)
12242 
12243  def get_version_info(self):
12244  r"""get_version_info(UnorderedTypeQuadPredicate self) -> VersionInfo"""
12245  return _IMP_core.UnorderedTypeQuadPredicate_get_version_info(self)
12246  __swig_destroy__ = _IMP_core.delete_UnorderedTypeQuadPredicate
12247 
12248  def __str__(self):
12249  r"""__str__(UnorderedTypeQuadPredicate self) -> std::string"""
12250  return _IMP_core.UnorderedTypeQuadPredicate___str__(self)
12251 
12252  def __repr__(self):
12253  r"""__repr__(UnorderedTypeQuadPredicate self) -> std::string"""
12254  return _IMP_core.UnorderedTypeQuadPredicate___repr__(self)
12255 
12256  @staticmethod
12257  def get_from(o):
12258  return _object_cast_to_UnorderedTypeQuadPredicate(o)
12259 
12260 
12261  def _get_as_binary(self):
12262  r"""_get_as_binary(UnorderedTypeQuadPredicate self) -> PyObject *"""
12263  return _IMP_core.UnorderedTypeQuadPredicate__get_as_binary(self)
12264 
12265  def _set_from_binary(self, p):
12266  r"""_set_from_binary(UnorderedTypeQuadPredicate self, PyObject * p)"""
12267  return _IMP_core.UnorderedTypeQuadPredicate__set_from_binary(self, p)
12268 
12269  def __getstate__(self):
12270  p = self._get_as_binary()
12271  if len(self.__dict__) > 1:
12272  d = self.__dict__.copy()
12273  del d['this']
12274  p = (d, p)
12275  return p
12276 
12277  def __setstate__(self, p):
12278  if not hasattr(self, 'this'):
12279  self.__init__()
12280  if isinstance(p, tuple):
12281  d, p = p
12282  self.__dict__.update(d)
12283  return self._set_from_binary(p)
12284 
12285 
12286 # Register UnorderedTypeQuadPredicate in _IMP_core:
12287 _IMP_core.UnorderedTypeQuadPredicate_swigregister(UnorderedTypeQuadPredicate)
12288 class OrderedTypeQuadPredicate(IMP.QuadPredicate):
12289  r"""Proxy of C++ IMP::core::OrderedTypeQuadPredicate class."""
12290 
12291  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12292 
12293  def __init__(self, *args):
12294  r"""__init__(OrderedTypeQuadPredicate self, std::string name="OrderedTypeQuadPredicate%1%") -> OrderedTypeQuadPredicate"""
12295  _IMP_core.OrderedTypeQuadPredicate_swiginit(self, _IMP_core.new_OrderedTypeQuadPredicate(*args))
12296 
12297  def do_get_inputs(self, m, pis):
12298  r"""do_get_inputs(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12299  return _IMP_core.OrderedTypeQuadPredicate_do_get_inputs(self, m, pis)
12300 
12301  def get_value(self, *args):
12302  r"""
12303  get_value(OrderedTypeQuadPredicate self, IMP::core::ParticleTypes const & types) -> int
12304  get_value(OrderedTypeQuadPredicate self, IMP::ParticleQuad const & a) -> int
12305  get_value(OrderedTypeQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12306  """
12307  return _IMP_core.OrderedTypeQuadPredicate_get_value(self, *args)
12308 
12309  def get_value_index(self, *args):
12310  r"""
12311  get_value_index(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12312  get_value_index(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12313  """
12314  return _IMP_core.OrderedTypeQuadPredicate_get_value_index(self, *args)
12315 
12316  def get_version_info(self):
12317  r"""get_version_info(OrderedTypeQuadPredicate self) -> VersionInfo"""
12318  return _IMP_core.OrderedTypeQuadPredicate_get_version_info(self)
12319  __swig_destroy__ = _IMP_core.delete_OrderedTypeQuadPredicate
12320 
12321  def __str__(self):
12322  r"""__str__(OrderedTypeQuadPredicate self) -> std::string"""
12323  return _IMP_core.OrderedTypeQuadPredicate___str__(self)
12324 
12325  def __repr__(self):
12326  r"""__repr__(OrderedTypeQuadPredicate self) -> std::string"""
12327  return _IMP_core.OrderedTypeQuadPredicate___repr__(self)
12328 
12329  @staticmethod
12330  def get_from(o):
12331  return _object_cast_to_OrderedTypeQuadPredicate(o)
12332 
12333 
12334 # Register OrderedTypeQuadPredicate in _IMP_core:
12335 _IMP_core.OrderedTypeQuadPredicate_swigregister(OrderedTypeQuadPredicate)
12336 class AllSameQuadPredicate(IMP.QuadPredicate):
12337  r"""Proxy of C++ IMP::core::AllSameQuadPredicate class."""
12338 
12339  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12340 
12341  def __init__(self, *args):
12342  r"""__init__(AllSameQuadPredicate self, std::string name="AllSameQuadPredicate%1%") -> AllSameQuadPredicate"""
12343  _IMP_core.AllSameQuadPredicate_swiginit(self, _IMP_core.new_AllSameQuadPredicate(*args))
12344 
12345  def do_get_inputs(self, arg2, arg3):
12346  r"""do_get_inputs(AllSameQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12347  return _IMP_core.AllSameQuadPredicate_do_get_inputs(self, arg2, arg3)
12348 
12349  def get_value(self, *args):
12350  r"""
12351  get_value(AllSameQuadPredicate self, IMP::ParticleQuad const & a) -> int
12352  get_value(AllSameQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12353  """
12354  return _IMP_core.AllSameQuadPredicate_get_value(self, *args)
12355 
12356  def get_value_index(self, *args):
12357  r"""
12358  get_value_index(AllSameQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12359  get_value_index(AllSameQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12360  """
12361  return _IMP_core.AllSameQuadPredicate_get_value_index(self, *args)
12362 
12363  def get_version_info(self):
12364  r"""get_version_info(AllSameQuadPredicate self) -> VersionInfo"""
12365  return _IMP_core.AllSameQuadPredicate_get_version_info(self)
12366  __swig_destroy__ = _IMP_core.delete_AllSameQuadPredicate
12367 
12368  def __str__(self):
12369  r"""__str__(AllSameQuadPredicate self) -> std::string"""
12370  return _IMP_core.AllSameQuadPredicate___str__(self)
12371 
12372  def __repr__(self):
12373  r"""__repr__(AllSameQuadPredicate self) -> std::string"""
12374  return _IMP_core.AllSameQuadPredicate___repr__(self)
12375 
12376  @staticmethod
12377  def get_from(o):
12378  return _object_cast_to_AllSameQuadPredicate(o)
12379 
12380 
12381  def _get_as_binary(self):
12382  r"""_get_as_binary(AllSameQuadPredicate self) -> PyObject *"""
12383  return _IMP_core.AllSameQuadPredicate__get_as_binary(self)
12384 
12385  def _set_from_binary(self, p):
12386  r"""_set_from_binary(AllSameQuadPredicate self, PyObject * p)"""
12387  return _IMP_core.AllSameQuadPredicate__set_from_binary(self, p)
12388 
12389  def __getstate__(self):
12390  p = self._get_as_binary()
12391  if len(self.__dict__) > 1:
12392  d = self.__dict__.copy()
12393  del d['this']
12394  p = (d, p)
12395  return p
12396 
12397  def __setstate__(self, p):
12398  if not hasattr(self, 'this'):
12399  self.__init__()
12400  if isinstance(p, tuple):
12401  d, p = p
12402  self.__dict__.update(d)
12403  return self._set_from_binary(p)
12404 
12405 
12406 # Register AllSameQuadPredicate in _IMP_core:
12407 _IMP_core.AllSameQuadPredicate_swigregister(AllSameQuadPredicate)
12408 class CoinFlipQuadPredicate(IMP.QuadPredicate):
12409  r"""Proxy of C++ IMP::core::CoinFlipQuadPredicate class."""
12410 
12411  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12412 
12413  def __init__(self, *args):
12414  r"""__init__(CoinFlipQuadPredicate self, double p, std::string name="CoinFlipQuadPredicate%1%") -> CoinFlipQuadPredicate"""
12415  _IMP_core.CoinFlipQuadPredicate_swiginit(self, _IMP_core.new_CoinFlipQuadPredicate(*args))
12416 
12417  def do_get_inputs(self, arg2, arg3):
12418  r"""do_get_inputs(CoinFlipQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12419  return _IMP_core.CoinFlipQuadPredicate_do_get_inputs(self, arg2, arg3)
12420 
12421  def get_value(self, *args):
12422  r"""
12423  get_value(CoinFlipQuadPredicate self, IMP::ParticleQuad const & a) -> int
12424  get_value(CoinFlipQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12425  """
12426  return _IMP_core.CoinFlipQuadPredicate_get_value(self, *args)
12427 
12428  def get_value_index(self, *args):
12429  r"""
12430  get_value_index(CoinFlipQuadPredicate self, Model arg2, IMP::ParticleIndexQuad const & arg3) -> int
12431  get_value_index(CoinFlipQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12432  """
12433  return _IMP_core.CoinFlipQuadPredicate_get_value_index(self, *args)
12434 
12435  def get_version_info(self):
12436  r"""get_version_info(CoinFlipQuadPredicate self) -> VersionInfo"""
12437  return _IMP_core.CoinFlipQuadPredicate_get_version_info(self)
12438  __swig_destroy__ = _IMP_core.delete_CoinFlipQuadPredicate
12439 
12440  def __str__(self):
12441  r"""__str__(CoinFlipQuadPredicate self) -> std::string"""
12442  return _IMP_core.CoinFlipQuadPredicate___str__(self)
12443 
12444  def __repr__(self):
12445  r"""__repr__(CoinFlipQuadPredicate self) -> std::string"""
12446  return _IMP_core.CoinFlipQuadPredicate___repr__(self)
12447 
12448  @staticmethod
12449  def get_from(o):
12450  return _object_cast_to_CoinFlipQuadPredicate(o)
12451 
12452 
12453 # Register CoinFlipQuadPredicate in _IMP_core:
12454 _IMP_core.CoinFlipQuadPredicate_swigregister(CoinFlipQuadPredicate)
12455 class InBoundingBox3DSingletonPredicate(IMP.SingletonPredicate):
12456  r"""Proxy of C++ IMP::core::InBoundingBox3DSingletonPredicate class."""
12457 
12458  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12459 
12460  def __init__(self, *args):
12461  r"""__init__(InBoundingBox3DSingletonPredicate self, BoundingBox3D bb, std::string name="InBoundingBox3DSingletonPredicate%1%") -> InBoundingBox3DSingletonPredicate"""
12462  _IMP_core.InBoundingBox3DSingletonPredicate_swiginit(self, _IMP_core.new_InBoundingBox3DSingletonPredicate(*args))
12463 
12464  def do_get_inputs(self, m, pi):
12465  r"""do_get_inputs(InBoundingBox3DSingletonPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12466  return _IMP_core.InBoundingBox3DSingletonPredicate_do_get_inputs(self, m, pi)
12467 
12468  def get_value(self, *args):
12469  r"""
12470  get_value(InBoundingBox3DSingletonPredicate self, Particle a) -> int
12471  get_value(InBoundingBox3DSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
12472  """
12473  return _IMP_core.InBoundingBox3DSingletonPredicate_get_value(self, *args)
12474 
12475  def get_value_index(self, *args):
12476  r"""
12477  get_value_index(InBoundingBox3DSingletonPredicate self, Model m, ParticleIndex pi) -> int
12478  get_value_index(InBoundingBox3DSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
12479  """
12480  return _IMP_core.InBoundingBox3DSingletonPredicate_get_value_index(self, *args)
12481 
12482  def get_version_info(self):
12483  r"""get_version_info(InBoundingBox3DSingletonPredicate self) -> VersionInfo"""
12484  return _IMP_core.InBoundingBox3DSingletonPredicate_get_version_info(self)
12485  __swig_destroy__ = _IMP_core.delete_InBoundingBox3DSingletonPredicate
12486 
12487  def __str__(self):
12488  r"""__str__(InBoundingBox3DSingletonPredicate self) -> std::string"""
12489  return _IMP_core.InBoundingBox3DSingletonPredicate___str__(self)
12490 
12491  def __repr__(self):
12492  r"""__repr__(InBoundingBox3DSingletonPredicate self) -> std::string"""
12493  return _IMP_core.InBoundingBox3DSingletonPredicate___repr__(self)
12494 
12495  @staticmethod
12496  def get_from(o):
12497  return _object_cast_to_InBoundingBox3DSingletonPredicate(o)
12498 
12499 
12500 # Register InBoundingBox3DSingletonPredicate in _IMP_core:
12501 _IMP_core.InBoundingBox3DSingletonPredicate_swigregister(InBoundingBox3DSingletonPredicate)
12502 class AttributeSingletonPredicate(IMP.SingletonPredicate):
12503  r"""Proxy of C++ IMP::core::AttributeSingletonPredicate class."""
12504 
12505  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12506 
12507  def __init__(self, *args):
12508  r"""__init__(AttributeSingletonPredicate self, IntKey bb, std::string name="AttributeSingletonPredicate%1%") -> AttributeSingletonPredicate"""
12509  _IMP_core.AttributeSingletonPredicate_swiginit(self, _IMP_core.new_AttributeSingletonPredicate(*args))
12510 
12511  def do_get_inputs(self, m, pi):
12512  r"""do_get_inputs(AttributeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12513  return _IMP_core.AttributeSingletonPredicate_do_get_inputs(self, m, pi)
12514 
12515  def get_value(self, *args):
12516  r"""
12517  get_value(AttributeSingletonPredicate self, Particle a) -> int
12518  get_value(AttributeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
12519  """
12520  return _IMP_core.AttributeSingletonPredicate_get_value(self, *args)
12521 
12522  def get_value_index(self, *args):
12523  r"""
12524  get_value_index(AttributeSingletonPredicate self, Model m, ParticleIndex pi) -> int
12525  get_value_index(AttributeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
12526  """
12527  return _IMP_core.AttributeSingletonPredicate_get_value_index(self, *args)
12528 
12529  def get_version_info(self):
12530  r"""get_version_info(AttributeSingletonPredicate self) -> VersionInfo"""
12531  return _IMP_core.AttributeSingletonPredicate_get_version_info(self)
12532  __swig_destroy__ = _IMP_core.delete_AttributeSingletonPredicate
12533 
12534  def __str__(self):
12535  r"""__str__(AttributeSingletonPredicate self) -> std::string"""
12536  return _IMP_core.AttributeSingletonPredicate___str__(self)
12537 
12538  def __repr__(self):
12539  r"""__repr__(AttributeSingletonPredicate self) -> std::string"""
12540  return _IMP_core.AttributeSingletonPredicate___repr__(self)
12541 
12542  @staticmethod
12543  def get_from(o):
12544  return _object_cast_to_AttributeSingletonPredicate(o)
12545 
12546 
12547 # Register AttributeSingletonPredicate in _IMP_core:
12548 _IMP_core.AttributeSingletonPredicate_swigregister(AttributeSingletonPredicate)
12549 class IsCollisionPairPredicate(IMP.PairPredicate):
12550  r"""Proxy of C++ IMP::core::IsCollisionPairPredicate class."""
12551 
12552  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12553 
12554  def __init__(self, *args):
12555  r"""__init__(IsCollisionPairPredicate self, std::string name="CollisionPairPredicate%1%") -> IsCollisionPairPredicate"""
12556  _IMP_core.IsCollisionPairPredicate_swiginit(self, _IMP_core.new_IsCollisionPairPredicate(*args))
12557 
12558  def do_get_inputs(self, m, pi):
12559  r"""do_get_inputs(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12560  return _IMP_core.IsCollisionPairPredicate_do_get_inputs(self, m, pi)
12561 
12562  def get_value(self, *args):
12563  r"""
12564  get_value(IsCollisionPairPredicate self, IMP::ParticlePair const & a) -> int
12565  get_value(IsCollisionPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
12566  """
12567  return _IMP_core.IsCollisionPairPredicate_get_value(self, *args)
12568 
12569  def get_value_index(self, *args):
12570  r"""
12571  get_value_index(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
12572  get_value_index(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
12573  """
12574  return _IMP_core.IsCollisionPairPredicate_get_value_index(self, *args)
12575 
12576  def get_version_info(self):
12577  r"""get_version_info(IsCollisionPairPredicate self) -> VersionInfo"""
12578  return _IMP_core.IsCollisionPairPredicate_get_version_info(self)
12579  __swig_destroy__ = _IMP_core.delete_IsCollisionPairPredicate
12580 
12581  def __str__(self):
12582  r"""__str__(IsCollisionPairPredicate self) -> std::string"""
12583  return _IMP_core.IsCollisionPairPredicate___str__(self)
12584 
12585  def __repr__(self):
12586  r"""__repr__(IsCollisionPairPredicate self) -> std::string"""
12587  return _IMP_core.IsCollisionPairPredicate___repr__(self)
12588 
12589  @staticmethod
12590  def get_from(o):
12591  return _object_cast_to_IsCollisionPairPredicate(o)
12592 
12593 
12594 # Register IsCollisionPairPredicate in _IMP_core:
12595 _IMP_core.IsCollisionPairPredicate_swigregister(IsCollisionPairPredicate)
12596 class AngleRestraint(TripletRestraint):
12597  r"""Proxy of C++ IMP::core::AngleRestraint class."""
12598 
12599  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12600 
12601  def __init__(self, *args):
12602  r"""
12603  __init__(AngleRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3) -> AngleRestraint
12604  __init__(AngleRestraint self) -> AngleRestraint
12605  """
12606  _IMP_core.AngleRestraint_swiginit(self, _IMP_core.new_AngleRestraint(*args))
12607  __swig_destroy__ = _IMP_core.delete_AngleRestraint
12608 
12609  def __str__(self):
12610  r"""__str__(AngleRestraint self) -> std::string"""
12611  return _IMP_core.AngleRestraint___str__(self)
12612 
12613  def __repr__(self):
12614  r"""__repr__(AngleRestraint self) -> std::string"""
12615  return _IMP_core.AngleRestraint___repr__(self)
12616 
12617  @staticmethod
12618  def get_from(o):
12619  return _object_cast_to_AngleRestraint(o)
12620 
12621 
12622  def _get_as_binary(self):
12623  r"""_get_as_binary(AngleRestraint self) -> PyObject *"""
12624  return _IMP_core.AngleRestraint__get_as_binary(self)
12625 
12626  def _set_from_binary(self, p):
12627  r"""_set_from_binary(AngleRestraint self, PyObject * p)"""
12628  return _IMP_core.AngleRestraint__set_from_binary(self, p)
12629 
12630  def __getstate__(self):
12631  p = self._get_as_binary()
12632  if len(self.__dict__) > 1:
12633  d = self.__dict__.copy()
12634  del d['this']
12635  p = (d, p)
12636  return p
12637 
12638  def __setstate__(self, p):
12639  if not hasattr(self, 'this'):
12640  self.__init__()
12641  if isinstance(p, tuple):
12642  d, p = p
12643  self.__dict__.update(d)
12644  return self._set_from_binary(p)
12645 
12646 
12647 # Register AngleRestraint in _IMP_core:
12648 _IMP_core.AngleRestraint_swigregister(AngleRestraint)
12649 class RigidBodyMover(MonteCarloMover):
12650  r"""Proxy of C++ IMP::core::RigidBodyMover class."""
12651 
12652  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12653 
12654  def __init__(self, *args):
12655  r"""
12656  __init__(RigidBodyMover self, Model m, ParticleIndex pi, IMP::Float max_translation, IMP::Float max_rotation) -> RigidBodyMover
12657  __init__(RigidBodyMover self) -> RigidBodyMover
12658  """
12659  _IMP_core.RigidBodyMover_swiginit(self, _IMP_core.new_RigidBodyMover(*args))
12660 
12661  def set_maximum_translation(self, mt):
12662  r"""set_maximum_translation(RigidBodyMover self, IMP::Float mt)"""
12663  return _IMP_core.RigidBodyMover_set_maximum_translation(self, mt)
12664 
12665  def set_maximum_rotation(self, mr):
12666  r"""set_maximum_rotation(RigidBodyMover self, IMP::Float mr)"""
12667  return _IMP_core.RigidBodyMover_set_maximum_rotation(self, mr)
12668 
12669  def get_maximum_translation(self):
12670  r"""get_maximum_translation(RigidBodyMover self) -> IMP::Float"""
12671  return _IMP_core.RigidBodyMover_get_maximum_translation(self)
12672 
12673  def get_maximum_rotation(self):
12674  r"""get_maximum_rotation(RigidBodyMover self) -> IMP::Float"""
12675  return _IMP_core.RigidBodyMover_get_maximum_rotation(self)
12676 
12677  def get_version_info(self):
12678  r"""get_version_info(RigidBodyMover self) -> VersionInfo"""
12679  return _IMP_core.RigidBodyMover_get_version_info(self)
12680  __swig_destroy__ = _IMP_core.delete_RigidBodyMover
12681 
12682  def __str__(self):
12683  r"""__str__(RigidBodyMover self) -> std::string"""
12684  return _IMP_core.RigidBodyMover___str__(self)
12685 
12686  def __repr__(self):
12687  r"""__repr__(RigidBodyMover self) -> std::string"""
12688  return _IMP_core.RigidBodyMover___repr__(self)
12689 
12690  @staticmethod
12691  def get_from(o):
12692  return _object_cast_to_RigidBodyMover(o)
12693 
12694 
12695  def _get_as_binary(self):
12696  r"""_get_as_binary(RigidBodyMover self) -> PyObject *"""
12697  return _IMP_core.RigidBodyMover__get_as_binary(self)
12698 
12699  def _set_from_binary(self, p):
12700  r"""_set_from_binary(RigidBodyMover self, PyObject * p)"""
12701  return _IMP_core.RigidBodyMover__set_from_binary(self, p)
12702 
12703  def __getstate__(self):
12704  p = self._get_as_binary()
12705  if len(self.__dict__) > 1:
12706  d = self.__dict__.copy()
12707  del d['this']
12708  p = (d, p)
12709  return p
12710 
12711  def __setstate__(self, p):
12712  if not hasattr(self, 'this'):
12713  self.__init__()
12714  if isinstance(p, tuple):
12715  d, p = p
12716  self.__dict__.update(d)
12717  return self._set_from_binary(p)
12718 
12719 
12720 # Register RigidBodyMover in _IMP_core:
12721 _IMP_core.RigidBodyMover_swigregister(RigidBodyMover)
12722 class RigidBodyTunneler(MonteCarloMover):
12723  r"""Proxy of C++ IMP::core::RigidBodyTunneler class."""
12724 
12725  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12726 
12727  def __init__(self, m, pis, ref, k, move_probability=1.):
12728  r"""__init__(RigidBodyTunneler self, Model m, IMP::ParticleIndexes pis, ParticleIndex ref, double k, double move_probability=1.) -> RigidBodyTunneler"""
12729  _IMP_core.RigidBodyTunneler_swiginit(self, _IMP_core.new_RigidBodyTunneler(m, pis, ref, k, move_probability))
12730 
12731  def add_entry_point(self, fl):
12732  r"""add_entry_point(RigidBodyTunneler self, IMP::Floats fl)"""
12733  return _IMP_core.RigidBodyTunneler_add_entry_point(self, fl)
12734 
12735  def reset_stats(self):
12736  r"""reset_stats(RigidBodyTunneler self)"""
12737  return _IMP_core.RigidBodyTunneler_reset_stats(self)
12738 
12739  def get_number_of_rejected_moves(self):
12740  r"""get_number_of_rejected_moves(RigidBodyTunneler self) -> unsigned int"""
12741  return _IMP_core.RigidBodyTunneler_get_number_of_rejected_moves(self)
12742 
12743  def get_number_of_proposed_moves(self):
12744  r"""get_number_of_proposed_moves(RigidBodyTunneler self) -> unsigned int"""
12745  return _IMP_core.RigidBodyTunneler_get_number_of_proposed_moves(self)
12746 
12747  def get_number_of_impossible_moves(self):
12748  r"""get_number_of_impossible_moves(RigidBodyTunneler self) -> unsigned int"""
12749  return _IMP_core.RigidBodyTunneler_get_number_of_impossible_moves(self)
12750 
12751  def get_number_of_calls(self):
12752  r"""get_number_of_calls(RigidBodyTunneler self) -> unsigned int"""
12753  return _IMP_core.RigidBodyTunneler_get_number_of_calls(self)
12754 
12755  @staticmethod
12756  def get_reduced_coordinates(*args):
12757  r"""
12758  get_reduced_coordinates(Model m, ParticleIndex target, ParticleIndex ref) -> IMP::Floats
12759  get_reduced_coordinates(Model m, ParticleIndex pi) -> IMP::Floats
12760  """
12761  return _IMP_core.RigidBodyTunneler_get_reduced_coordinates(*args)
12762 
12763  @staticmethod
12764  def set_reduced_coordinates(m, target, ref, coords):
12765  r"""set_reduced_coordinates(Model m, ParticleIndex target, ParticleIndex ref, IMP::Floats coords)"""
12766  return _IMP_core.RigidBodyTunneler_set_reduced_coordinates(m, target, ref, coords)
12767 
12768  def get_version_info(self):
12769  r"""get_version_info(RigidBodyTunneler self) -> VersionInfo"""
12770  return _IMP_core.RigidBodyTunneler_get_version_info(self)
12771  __swig_destroy__ = _IMP_core.delete_RigidBodyTunneler
12772 
12773  def __str__(self):
12774  r"""__str__(RigidBodyTunneler self) -> std::string"""
12775  return _IMP_core.RigidBodyTunneler___str__(self)
12776 
12777  def __repr__(self):
12778  r"""__repr__(RigidBodyTunneler self) -> std::string"""
12779  return _IMP_core.RigidBodyTunneler___repr__(self)
12780 
12781  @staticmethod
12782  def get_from(o):
12783  return _object_cast_to_RigidBodyTunneler(o)
12784 
12785 
12786 # Register RigidBodyTunneler in _IMP_core:
12787 _IMP_core.RigidBodyTunneler_swigregister(RigidBodyTunneler)
12788 class RigidBodyUmbrella(IMP.Restraint):
12789  r"""Proxy of C++ IMP::core::RigidBodyUmbrella class."""
12790 
12791  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12792 
12793  def __init__(self, *args):
12794  r"""
12795  __init__(RigidBodyUmbrella self, Model m, ParticleIndex pi, ParticleIndex ref, IMP::Floats x0, double alpha, double k, std::string name="RigidBodyUmbrella %1%") -> RigidBodyUmbrella
12796  __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
12797  """
12798  _IMP_core.RigidBodyUmbrella_swiginit(self, _IMP_core.new_RigidBodyUmbrella(*args))
12799 
12800  def set_x0(self, *args):
12801  r"""
12802  set_x0(RigidBodyUmbrella self, IMP::Floats x0)
12803  set_x0(RigidBodyUmbrella self, double _lambda, IMP::Floats x1, IMP::Floats x2)
12804  """
12805  return _IMP_core.RigidBodyUmbrella_set_x0(self, *args)
12806 
12807  def get_x0(self):
12808  r"""get_x0(RigidBodyUmbrella self) -> IMP::Floats"""
12809  return _IMP_core.RigidBodyUmbrella_get_x0(self)
12810 
12811  def get_x(self):
12812  r"""get_x(RigidBodyUmbrella self) -> IMP::Floats"""
12813  return _IMP_core.RigidBodyUmbrella_get_x(self)
12814 
12815  def set_alpha(self, alpha):
12816  r"""set_alpha(RigidBodyUmbrella self, double alpha)"""
12817  return _IMP_core.RigidBodyUmbrella_set_alpha(self, alpha)
12818 
12819  def set_k(self, k):
12820  r"""set_k(RigidBodyUmbrella self, double k)"""
12821  return _IMP_core.RigidBodyUmbrella_set_k(self, k)
12822 
12823  def get_version_info(self):
12824  r"""get_version_info(RigidBodyUmbrella self) -> VersionInfo"""
12825  return _IMP_core.RigidBodyUmbrella_get_version_info(self)
12826  __swig_destroy__ = _IMP_core.delete_RigidBodyUmbrella
12827 
12828  def __str__(self):
12829  r"""__str__(RigidBodyUmbrella self) -> std::string"""
12830  return _IMP_core.RigidBodyUmbrella___str__(self)
12831 
12832  def __repr__(self):
12833  r"""__repr__(RigidBodyUmbrella self) -> std::string"""
12834  return _IMP_core.RigidBodyUmbrella___repr__(self)
12835 
12836  @staticmethod
12837  def get_from(o):
12838  return _object_cast_to_RigidBodyUmbrella(o)
12839 
12840 
12841 # Register RigidBodyUmbrella in _IMP_core:
12842 _IMP_core.RigidBodyUmbrella_swigregister(RigidBodyUmbrella)
12843 class VolumeRestraint(IMP.Restraint):
12844  r"""Proxy of C++ IMP::core::VolumeRestraint class."""
12845 
12846  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12847 
12848  def __init__(self, f, sc, volume):
12849  r"""__init__(VolumeRestraint self, UnaryFunction f, SingletonContainer sc, double volume) -> VolumeRestraint"""
12850  _IMP_core.VolumeRestraint_swiginit(self, _IMP_core.new_VolumeRestraint(f, sc, volume))
12851 
12852  def do_get_inputs(self):
12853  r"""do_get_inputs(VolumeRestraint self) -> IMP::ModelObjectsTemp"""
12854  return _IMP_core.VolumeRestraint_do_get_inputs(self)
12855 
12856  def get_version_info(self):
12857  r"""get_version_info(VolumeRestraint self) -> VersionInfo"""
12858  return _IMP_core.VolumeRestraint_get_version_info(self)
12859  __swig_destroy__ = _IMP_core.delete_VolumeRestraint
12860 
12861  def __str__(self):
12862  r"""__str__(VolumeRestraint self) -> std::string"""
12863  return _IMP_core.VolumeRestraint___str__(self)
12864 
12865  def __repr__(self):
12866  r"""__repr__(VolumeRestraint self) -> std::string"""
12867  return _IMP_core.VolumeRestraint___repr__(self)
12868 
12869  @staticmethod
12870  def get_from(o):
12871  return _object_cast_to_VolumeRestraint(o)
12872 
12873 
12874 # Register VolumeRestraint in _IMP_core:
12875 _IMP_core.VolumeRestraint_swigregister(VolumeRestraint)
12876 
12877 def get_centroid(ps):
12878  r"""get_centroid(IMP::core::XYZs const & ps) -> Vector3D"""
12879  return _IMP_core.get_centroid(ps)
12880 
12881 def get_bounding_box(ps):
12882  r"""get_bounding_box(IMP::core::XYZRs const & ps) -> BoundingBox3D"""
12883  return _IMP_core.get_bounding_box(ps)
12884 class MoveStatisticsScoreState(IMP.ScoreState):
12885  r"""Proxy of C++ IMP::core::MoveStatisticsScoreState class."""
12886 
12887  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12888 
12889  def __init__(self, ps):
12890  r"""__init__(MoveStatisticsScoreState self, IMP::ParticlesTemp const & ps) -> MoveStatisticsScoreState"""
12891  _IMP_core.MoveStatisticsScoreState_swiginit(self, _IMP_core.new_MoveStatisticsScoreState(ps))
12892 
12893  def show_statistics(self, *args):
12894  r"""show_statistics(MoveStatisticsScoreState self, _ostream out=std::cout)"""
12895  return _IMP_core.MoveStatisticsScoreState_show_statistics(self, *args)
12896 
12897  def reset(self):
12898  r"""reset(MoveStatisticsScoreState self)"""
12899  return _IMP_core.MoveStatisticsScoreState_reset(self)
12900 
12901  def do_before_evaluate(self):
12902  r"""do_before_evaluate(MoveStatisticsScoreState self)"""
12903  return _IMP_core.MoveStatisticsScoreState_do_before_evaluate(self)
12904 
12905  def do_after_evaluate(self, da):
12906  r"""do_after_evaluate(MoveStatisticsScoreState self, DerivativeAccumulator da)"""
12907  return _IMP_core.MoveStatisticsScoreState_do_after_evaluate(self, da)
12908 
12909  def do_get_inputs(self):
12910  r"""do_get_inputs(MoveStatisticsScoreState self) -> IMP::ModelObjectsTemp"""
12911  return _IMP_core.MoveStatisticsScoreState_do_get_inputs(self)
12912 
12913  def do_get_outputs(self):
12914  r"""do_get_outputs(MoveStatisticsScoreState self) -> IMP::ModelObjectsTemp"""
12915  return _IMP_core.MoveStatisticsScoreState_do_get_outputs(self)
12916 
12917  def get_version_info(self):
12918  r"""get_version_info(MoveStatisticsScoreState self) -> VersionInfo"""
12919  return _IMP_core.MoveStatisticsScoreState_get_version_info(self)
12920  __swig_destroy__ = _IMP_core.delete_MoveStatisticsScoreState
12921 
12922  def __str__(self):
12923  r"""__str__(MoveStatisticsScoreState self) -> std::string"""
12924  return _IMP_core.MoveStatisticsScoreState___str__(self)
12925 
12926  def __repr__(self):
12927  r"""__repr__(MoveStatisticsScoreState self) -> std::string"""
12928  return _IMP_core.MoveStatisticsScoreState___repr__(self)
12929 
12930  @staticmethod
12931  def get_from(o):
12932  return _object_cast_to_MoveStatisticsScoreState(o)
12933 
12934 
12935 # Register MoveStatisticsScoreState in _IMP_core:
12936 _IMP_core.MoveStatisticsScoreState_swigregister(MoveStatisticsScoreState)
12937 IMP_PARTICLE_TYPE_INDEX = _IMP_core.IMP_PARTICLE_TYPE_INDEX
12938 
12939 class Typed(IMP.Decorator):
12940  r"""Proxy of C++ IMP::core::Typed class."""
12941 
12942  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12943 
12944  @staticmethod
12945  def get_type_key():
12946  r"""get_type_key() -> IntKey"""
12947  return _IMP_core.Typed_get_type_key()
12948 
12949  def __init__(self, *args):
12950  r"""
12951  __init__(Typed self) -> Typed
12952  __init__(Typed self, Model m, ParticleIndex id) -> Typed
12953  __init__(Typed self, _ParticleAdaptor d) -> Typed
12954  """
12955  _IMP_core.Typed_swiginit(self, _IMP_core.new_Typed(*args))
12956 
12957  def show(self, *args):
12958  r"""show(Typed self, _ostream out=std::cout)"""
12959  return _IMP_core.Typed_show(self, *args)
12960 
12961  @staticmethod
12962  def setup_particle(*args):
12963  r"""
12964  setup_particle(Model m, ParticleIndex pi, ParticleType t) -> Typed
12965  setup_particle(_ParticleAdaptor pa, ParticleType t) -> Typed
12966  """
12967  return _IMP_core.Typed_setup_particle(*args)
12968 
12969  @staticmethod
12970  def get_is_setup(*args):
12971  r"""
12972  get_is_setup(_ParticleAdaptor p) -> bool
12973  get_is_setup(Model m, ParticleIndex pi) -> bool
12974  """
12975  return _IMP_core.Typed_get_is_setup(*args)
12976 
12977  def get_type(self):
12978  r"""get_type(Typed self) -> ParticleType"""
12979  return _IMP_core.Typed_get_type(self)
12980 
12981  def set_type(self, pt):
12982  r"""set_type(Typed self, ParticleType pt)"""
12983  return _IMP_core.Typed_set_type(self, pt)
12984 
12985  def add_attribute(self, *args):
12986  r"""
12987  add_attribute(Typed self, FloatKey k, IMP::Float v, bool opt)
12988  add_attribute(Typed self, FloatKey a0, IMP::Float a1)
12989  add_attribute(Typed self, IntKey a0, IMP::Int a1)
12990  add_attribute(Typed self, FloatsKey a0, IMP::Floats a1)
12991  add_attribute(Typed self, IntsKey a0, IMP::Ints a1)
12992  add_attribute(Typed self, StringKey a0, IMP::String a1)
12993  add_attribute(Typed self, ParticleIndexKey a0, Particle a1)
12994  add_attribute(Typed self, ObjectKey a0, Object a1)
12995  add_attribute(Typed self, SparseFloatKey a0, IMP::Float a1)
12996  add_attribute(Typed self, SparseIntKey a0, IMP::Int a1)
12997  add_attribute(Typed self, SparseStringKey a0, IMP::String a1)
12998  add_attribute(Typed self, SparseParticleIndexKey a0, ParticleIndex a1)
12999  """
13000  return _IMP_core.Typed_add_attribute(self, *args)
13001 
13002  def get_value(self, *args):
13003  r"""
13004  get_value(Typed self, FloatKey a0) -> IMP::Float
13005  get_value(Typed self, IntKey a0) -> IMP::Int
13006  get_value(Typed self, FloatsKey a0) -> IMP::Floats
13007  get_value(Typed self, IntsKey a0) -> IMP::Ints
13008  get_value(Typed self, StringKey a0) -> IMP::String
13009  get_value(Typed self, ParticleIndexKey a0) -> Particle
13010  get_value(Typed self, ObjectKey a0) -> Object
13011  get_value(Typed self, SparseFloatKey a0) -> IMP::Float
13012  get_value(Typed self, SparseIntKey a0) -> IMP::Int
13013  get_value(Typed self, SparseStringKey a0) -> IMP::String
13014  get_value(Typed self, SparseParticleIndexKey a0) -> ParticleIndex
13015  """
13016  return _IMP_core.Typed_get_value(self, *args)
13017 
13018  def set_value(self, *args):
13019  r"""
13020  set_value(Typed self, FloatKey a0, IMP::Float a1)
13021  set_value(Typed self, IntKey a0, IMP::Int a1)
13022  set_value(Typed self, FloatsKey a0, IMP::Floats a1)
13023  set_value(Typed self, IntsKey a0, IMP::Ints a1)
13024  set_value(Typed self, StringKey a0, IMP::String a1)
13025  set_value(Typed self, ParticleIndexKey a0, Particle a1)
13026  set_value(Typed self, ObjectKey a0, Object a1)
13027  set_value(Typed self, SparseFloatKey a0, IMP::Float a1)
13028  set_value(Typed self, SparseIntKey a0, IMP::Int a1)
13029  set_value(Typed self, SparseStringKey a0, IMP::String a1)
13030  set_value(Typed self, SparseParticleIndexKey a0, ParticleIndex a1)
13031  """
13032  return _IMP_core.Typed_set_value(self, *args)
13033 
13034  def remove_attribute(self, *args):
13035  r"""
13036  remove_attribute(Typed self, FloatKey a0)
13037  remove_attribute(Typed self, IntKey a0)
13038  remove_attribute(Typed self, FloatsKey a0)
13039  remove_attribute(Typed self, IntsKey a0)
13040  remove_attribute(Typed self, StringKey a0)
13041  remove_attribute(Typed self, ParticleIndexKey a0)
13042  remove_attribute(Typed self, ObjectKey a0)
13043  remove_attribute(Typed self, SparseFloatKey a0)
13044  remove_attribute(Typed self, SparseIntKey a0)
13045  remove_attribute(Typed self, SparseStringKey a0)
13046  remove_attribute(Typed self, SparseParticleIndexKey a0)
13047  """
13048  return _IMP_core.Typed_remove_attribute(self, *args)
13049 
13050  def has_attribute(self, *args):
13051  r"""
13052  has_attribute(Typed self, FloatKey a0) -> bool
13053  has_attribute(Typed self, IntKey a0) -> bool
13054  has_attribute(Typed self, FloatsKey a0) -> bool
13055  has_attribute(Typed self, IntsKey a0) -> bool
13056  has_attribute(Typed self, StringKey a0) -> bool
13057  has_attribute(Typed self, ParticleIndexKey a0) -> bool
13058  has_attribute(Typed self, ObjectKey a0) -> bool
13059  has_attribute(Typed self, SparseFloatKey a0) -> bool
13060  has_attribute(Typed self, SparseIntKey a0) -> bool
13061  has_attribute(Typed self, SparseStringKey a0) -> bool
13062  has_attribute(Typed self, SparseParticleIndexKey a0) -> bool
13063  """
13064  return _IMP_core.Typed_has_attribute(self, *args)
13065 
13066  def get_derivative(self, a0):
13067  r"""get_derivative(Typed self, FloatKey a0) -> double"""
13068  return _IMP_core.Typed_get_derivative(self, a0)
13069 
13070  def get_name(self):
13071  r"""get_name(Typed self) -> std::string"""
13072  return _IMP_core.Typed_get_name(self)
13073 
13074  def clear_caches(self):
13075  r"""clear_caches(Typed self)"""
13076  return _IMP_core.Typed_clear_caches(self)
13077 
13078  def set_name(self, a0):
13079  r"""set_name(Typed self, std::string a0)"""
13080  return _IMP_core.Typed_set_name(self, a0)
13081 
13082  def set_check_level(self, a0):
13083  r"""set_check_level(Typed self, IMP::CheckLevel a0)"""
13084  return _IMP_core.Typed_set_check_level(self, a0)
13085 
13086  def add_to_derivative(self, a0, a1, a2):
13087  r"""add_to_derivative(Typed self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13088  return _IMP_core.Typed_add_to_derivative(self, a0, a1, a2)
13089 
13090  def set_is_optimized(self, a0, a1):
13091  r"""set_is_optimized(Typed self, FloatKey a0, bool a1)"""
13092  return _IMP_core.Typed_set_is_optimized(self, a0, a1)
13093 
13094  def get_is_optimized(self, a0):
13095  r"""get_is_optimized(Typed self, FloatKey a0) -> bool"""
13096  return _IMP_core.Typed_get_is_optimized(self, a0)
13097 
13098  def get_check_level(self):
13099  r"""get_check_level(Typed self) -> IMP::CheckLevel"""
13100  return _IMP_core.Typed_get_check_level(self)
13101 
13102  def __eq__(self, *args):
13103  r"""
13104  __eq__(Typed self, Typed o) -> bool
13105  __eq__(Typed self, Particle d) -> bool
13106  """
13107  return _IMP_core.Typed___eq__(self, *args)
13108 
13109  def __ne__(self, *args):
13110  r"""
13111  __ne__(Typed self, Typed o) -> bool
13112  __ne__(Typed self, Particle d) -> bool
13113  """
13114  return _IMP_core.Typed___ne__(self, *args)
13115 
13116  def __le__(self, *args):
13117  r"""
13118  __le__(Typed self, Typed o) -> bool
13119  __le__(Typed self, Particle d) -> bool
13120  """
13121  return _IMP_core.Typed___le__(self, *args)
13122 
13123  def __lt__(self, *args):
13124  r"""
13125  __lt__(Typed self, Typed o) -> bool
13126  __lt__(Typed self, Particle d) -> bool
13127  """
13128  return _IMP_core.Typed___lt__(self, *args)
13129 
13130  def __ge__(self, *args):
13131  r"""
13132  __ge__(Typed self, Typed o) -> bool
13133  __ge__(Typed self, Particle d) -> bool
13134  """
13135  return _IMP_core.Typed___ge__(self, *args)
13136 
13137  def __gt__(self, *args):
13138  r"""
13139  __gt__(Typed self, Typed o) -> bool
13140  __gt__(Typed self, Particle d) -> bool
13141  """
13142  return _IMP_core.Typed___gt__(self, *args)
13143 
13144  def __hash__(self):
13145  r"""__hash__(Typed self) -> std::size_t"""
13146  return _IMP_core.Typed___hash__(self)
13147 
13148  def __str__(self):
13149  r"""__str__(Typed self) -> std::string"""
13150  return _IMP_core.Typed___str__(self)
13151 
13152  def __repr__(self):
13153  r"""__repr__(Typed self) -> std::string"""
13154  return _IMP_core.Typed___repr__(self)
13155 
13156  def _get_as_binary(self):
13157  r"""_get_as_binary(Typed self) -> PyObject *"""
13158  return _IMP_core.Typed__get_as_binary(self)
13159 
13160  def _set_from_binary(self, p):
13161  r"""_set_from_binary(Typed self, PyObject * p)"""
13162  return _IMP_core.Typed__set_from_binary(self, p)
13163 
13164  def __getstate__(self):
13165  p = self._get_as_binary()
13166  if len(self.__dict__) > 1:
13167  d = self.__dict__.copy()
13168  del d['this']
13169  p = (d, p)
13170  return p
13171 
13172  def __setstate__(self, p):
13173  if not hasattr(self, 'this'):
13174  self.__init__()
13175  if isinstance(p, tuple):
13176  d, p = p
13177  self.__dict__.update(d)
13178  return self._set_from_binary(p)
13179 
13180  __swig_destroy__ = _IMP_core.delete_Typed
13181 
13182 # Register Typed in _IMP_core:
13183 _IMP_core.Typed_swigregister(Typed)
13184 
13185 def __lshift__(*args):
13186  r"""
13187  __lshift__(_ostream out, XYZ n) -> _ostream
13188  __lshift__(_ostream out, XYZR n) -> _ostream
13189  __lshift__(_ostream out, Direction n) -> _ostream
13190  __lshift__(_ostream out, DirectionAngle n) -> _ostream
13191  __lshift__(_ostream out, Surface n) -> _ostream
13192  __lshift__(_ostream out, Centroid n) -> _ostream
13193  __lshift__(_ostream out, Cover n) -> _ostream
13194  __lshift__(_ostream out, Reference n) -> _ostream
13195  __lshift__(_ostream out, RigidMember n) -> _ostream
13196  __lshift__(_ostream out, RigidBody n) -> _ostream
13197  __lshift__(_ostream out, Gaussian n) -> _ostream
13198  __lshift__(_ostream out, Typed n) -> _ostream
13199  """
13200  return _IMP_core.__lshift__(*args)
13201 class WriteRestraintScoresOptimizerState(IMP.OptimizerState):
13202  r"""Proxy of C++ IMP::core::WriteRestraintScoresOptimizerState class."""
13203 
13204  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13205 
13206  def __init__(self, rs, out):
13207  r"""__init__(WriteRestraintScoresOptimizerState self, IMP::Restraints const & rs, TextOutput out) -> WriteRestraintScoresOptimizerState"""
13208  _IMP_core.WriteRestraintScoresOptimizerState_swiginit(self, _IMP_core.new_WriteRestraintScoresOptimizerState(rs, out))
13209 
13210  def get_version_info(self):
13211  r"""get_version_info(WriteRestraintScoresOptimizerState self) -> VersionInfo"""
13212  return _IMP_core.WriteRestraintScoresOptimizerState_get_version_info(self)
13213  __swig_destroy__ = _IMP_core.delete_WriteRestraintScoresOptimizerState
13214 
13215  def __str__(self):
13216  r"""__str__(WriteRestraintScoresOptimizerState self) -> std::string"""
13217  return _IMP_core.WriteRestraintScoresOptimizerState___str__(self)
13218 
13219  def __repr__(self):
13220  r"""__repr__(WriteRestraintScoresOptimizerState self) -> std::string"""
13221  return _IMP_core.WriteRestraintScoresOptimizerState___repr__(self)
13222 
13223  @staticmethod
13224  def get_from(o):
13225  return _object_cast_to_WriteRestraintScoresOptimizerState(o)
13226 
13227 
13228 # Register WriteRestraintScoresOptimizerState in _IMP_core:
13229 _IMP_core.WriteRestraintScoresOptimizerState_swigregister(WriteRestraintScoresOptimizerState)
13230 
13231 def assign_blame(rs, ps, attribute):
13232  r"""assign_blame(IMP::RestraintsTemp const & rs, IMP::ParticlesTemp const & ps, FloatKey attribute)"""
13233  return _IMP_core.assign_blame(rs, ps, attribute)
13234 
13235 def create_blame_geometries(*args):
13236  r"""create_blame_geometries(IMP::RestraintsTemp const & rs, IMP::ParticlesTemp const & ps, double max=NO_MAX, std::string name=std::string()) -> IMP::display::Geometries"""
13237  return _IMP_core.create_blame_geometries(*args)
13238 class MultipleBinormalRestraint(IMP.Restraint):
13239  r"""Proxy of C++ IMP::core::MultipleBinormalRestraint class."""
13240 
13241  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13242 
13243  def __init__(self, m, q1, q2):
13244  r"""__init__(MultipleBinormalRestraint self, Model m, IMP::ParticleIndexQuad const & q1, IMP::ParticleIndexQuad const & q2) -> MultipleBinormalRestraint"""
13245  _IMP_core.MultipleBinormalRestraint_swiginit(self, _IMP_core.new_MultipleBinormalRestraint(m, q1, q2))
13246 
13247  def add_term(self, term):
13248  r"""add_term(MultipleBinormalRestraint self, BinormalTerm term)"""
13249  return _IMP_core.MultipleBinormalRestraint_add_term(self, term)
13250 
13251  def do_get_inputs(self):
13252  r"""do_get_inputs(MultipleBinormalRestraint self) -> IMP::ModelObjectsTemp"""
13253  return _IMP_core.MultipleBinormalRestraint_do_get_inputs(self)
13254 
13255  def get_version_info(self):
13256  r"""get_version_info(MultipleBinormalRestraint self) -> VersionInfo"""
13257  return _IMP_core.MultipleBinormalRestraint_get_version_info(self)
13258  __swig_destroy__ = _IMP_core.delete_MultipleBinormalRestraint
13259 
13260  def __str__(self):
13261  r"""__str__(MultipleBinormalRestraint self) -> std::string"""
13262  return _IMP_core.MultipleBinormalRestraint___str__(self)
13263 
13264  def __repr__(self):
13265  r"""__repr__(MultipleBinormalRestraint self) -> std::string"""
13266  return _IMP_core.MultipleBinormalRestraint___repr__(self)
13267 
13268  @staticmethod
13269  def get_from(o):
13270  return _object_cast_to_MultipleBinormalRestraint(o)
13271 
13272 
13273 # Register MultipleBinormalRestraint in _IMP_core:
13274 _IMP_core.MultipleBinormalRestraint_swigregister(MultipleBinormalRestraint)
13275 class BinormalTerm(object):
13276  r"""Proxy of C++ IMP::core::BinormalTerm class."""
13277 
13278  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13279 
13280  def __init__(self):
13281  r"""__init__(BinormalTerm self) -> BinormalTerm"""
13282  _IMP_core.BinormalTerm_swiginit(self, _IMP_core.new_BinormalTerm())
13283 
13284  def set_correlation(self, correlation):
13285  r"""set_correlation(BinormalTerm self, double correlation)"""
13286  return _IMP_core.BinormalTerm_set_correlation(self, correlation)
13287 
13288  def set_weight(self, weight):
13289  r"""set_weight(BinormalTerm self, double weight)"""
13290  return _IMP_core.BinormalTerm_set_weight(self, weight)
13291 
13292  def set_means(self, means):
13293  r"""set_means(BinormalTerm self, IMP::FloatPair means)"""
13294  return _IMP_core.BinormalTerm_set_means(self, means)
13295 
13296  def set_standard_deviations(self, stdevs):
13297  r"""set_standard_deviations(BinormalTerm self, IMP::FloatPair stdevs)"""
13298  return _IMP_core.BinormalTerm_set_standard_deviations(self, stdevs)
13299 
13300  def show(self, *args):
13301  r"""show(BinormalTerm self, _ostream out=std::cout)"""
13302  return _IMP_core.BinormalTerm_show(self, *args)
13303 
13304  def __str__(self):
13305  r"""__str__(BinormalTerm self) -> std::string"""
13306  return _IMP_core.BinormalTerm___str__(self)
13307 
13308  def __repr__(self):
13309  r"""__repr__(BinormalTerm self) -> std::string"""
13310  return _IMP_core.BinormalTerm___repr__(self)
13311 
13312  def _get_as_binary(self):
13313  r"""_get_as_binary(BinormalTerm self) -> PyObject *"""
13314  return _IMP_core.BinormalTerm__get_as_binary(self)
13315 
13316  def _set_from_binary(self, p):
13317  r"""_set_from_binary(BinormalTerm self, PyObject * p)"""
13318  return _IMP_core.BinormalTerm__set_from_binary(self, p)
13319 
13320  def __getstate__(self):
13321  p = self._get_as_binary()
13322  if len(self.__dict__) > 1:
13323  d = self.__dict__.copy()
13324  del d['this']
13325  p = (d, p)
13326  return p
13327 
13328  def __setstate__(self, p):
13329  if not hasattr(self, 'this'):
13330  self.__init__()
13331  if isinstance(p, tuple):
13332  d, p = p
13333  self.__dict__.update(d)
13334  return self._set_from_binary(p)
13335 
13336  __swig_destroy__ = _IMP_core.delete_BinormalTerm
13337 
13338 # Register BinormalTerm in _IMP_core:
13339 _IMP_core.BinormalTerm_swigregister(BinormalTerm)
13340 class Provenance(IMP.Decorator):
13341  r"""Proxy of C++ IMP::core::Provenance class."""
13342 
13343  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13344 
13345  def get_previous(self):
13346  r"""get_previous(Provenance self) -> Provenance"""
13347  return _IMP_core.Provenance_get_previous(self)
13348 
13349  def set_previous(self, p):
13350  r"""set_previous(Provenance self, Provenance p)"""
13351  return _IMP_core.Provenance_set_previous(self, p)
13352 
13353  def __init__(self, *args):
13354  r"""
13355  __init__(Provenance self) -> Provenance
13356  __init__(Provenance self, Model m, ParticleIndex id) -> Provenance
13357  __init__(Provenance self, _ParticleAdaptor d) -> Provenance
13358  """
13359  _IMP_core.Provenance_swiginit(self, _IMP_core.new_Provenance(*args))
13360 
13361  @staticmethod
13362  def get_is_setup(*args):
13363  r"""
13364  get_is_setup(Model m, ParticleIndex pi) -> bool
13365  get_is_setup(_ParticleAdaptor p) -> bool
13366  """
13367  return _IMP_core.Provenance_get_is_setup(*args)
13368 
13369  def show(self, *args):
13370  r"""show(Provenance self, _ostream out=std::cout)"""
13371  return _IMP_core.Provenance_show(self, *args)
13372 
13373  @staticmethod
13374  def setup_particle(*args):
13375  r"""
13376  setup_particle(Model m, ParticleIndex pi) -> Provenance
13377  setup_particle(_ParticleAdaptor pa) -> Provenance
13378  """
13379  return _IMP_core.Provenance_setup_particle(*args)
13380 
13381  def add_attribute(self, *args):
13382  r"""
13383  add_attribute(Provenance self, FloatKey k, IMP::Float v, bool opt)
13384  add_attribute(Provenance self, FloatKey a0, IMP::Float a1)
13385  add_attribute(Provenance self, IntKey a0, IMP::Int a1)
13386  add_attribute(Provenance self, FloatsKey a0, IMP::Floats a1)
13387  add_attribute(Provenance self, IntsKey a0, IMP::Ints a1)
13388  add_attribute(Provenance self, StringKey a0, IMP::String a1)
13389  add_attribute(Provenance self, ParticleIndexKey a0, Particle a1)
13390  add_attribute(Provenance self, ObjectKey a0, Object a1)
13391  add_attribute(Provenance self, SparseFloatKey a0, IMP::Float a1)
13392  add_attribute(Provenance self, SparseIntKey a0, IMP::Int a1)
13393  add_attribute(Provenance self, SparseStringKey a0, IMP::String a1)
13394  add_attribute(Provenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13395  """
13396  return _IMP_core.Provenance_add_attribute(self, *args)
13397 
13398  def get_value(self, *args):
13399  r"""
13400  get_value(Provenance self, FloatKey a0) -> IMP::Float
13401  get_value(Provenance self, IntKey a0) -> IMP::Int
13402  get_value(Provenance self, FloatsKey a0) -> IMP::Floats
13403  get_value(Provenance self, IntsKey a0) -> IMP::Ints
13404  get_value(Provenance self, StringKey a0) -> IMP::String
13405  get_value(Provenance self, ParticleIndexKey a0) -> Particle
13406  get_value(Provenance self, ObjectKey a0) -> Object
13407  get_value(Provenance self, SparseFloatKey a0) -> IMP::Float
13408  get_value(Provenance self, SparseIntKey a0) -> IMP::Int
13409  get_value(Provenance self, SparseStringKey a0) -> IMP::String
13410  get_value(Provenance self, SparseParticleIndexKey a0) -> ParticleIndex
13411  """
13412  return _IMP_core.Provenance_get_value(self, *args)
13413 
13414  def set_value(self, *args):
13415  r"""
13416  set_value(Provenance self, FloatKey a0, IMP::Float a1)
13417  set_value(Provenance self, IntKey a0, IMP::Int a1)
13418  set_value(Provenance self, FloatsKey a0, IMP::Floats a1)
13419  set_value(Provenance self, IntsKey a0, IMP::Ints a1)
13420  set_value(Provenance self, StringKey a0, IMP::String a1)
13421  set_value(Provenance self, ParticleIndexKey a0, Particle a1)
13422  set_value(Provenance self, ObjectKey a0, Object a1)
13423  set_value(Provenance self, SparseFloatKey a0, IMP::Float a1)
13424  set_value(Provenance self, SparseIntKey a0, IMP::Int a1)
13425  set_value(Provenance self, SparseStringKey a0, IMP::String a1)
13426  set_value(Provenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13427  """
13428  return _IMP_core.Provenance_set_value(self, *args)
13429 
13430  def remove_attribute(self, *args):
13431  r"""
13432  remove_attribute(Provenance self, FloatKey a0)
13433  remove_attribute(Provenance self, IntKey a0)
13434  remove_attribute(Provenance self, FloatsKey a0)
13435  remove_attribute(Provenance self, IntsKey a0)
13436  remove_attribute(Provenance self, StringKey a0)
13437  remove_attribute(Provenance self, ParticleIndexKey a0)
13438  remove_attribute(Provenance self, ObjectKey a0)
13439  remove_attribute(Provenance self, SparseFloatKey a0)
13440  remove_attribute(Provenance self, SparseIntKey a0)
13441  remove_attribute(Provenance self, SparseStringKey a0)
13442  remove_attribute(Provenance self, SparseParticleIndexKey a0)
13443  """
13444  return _IMP_core.Provenance_remove_attribute(self, *args)
13445 
13446  def has_attribute(self, *args):
13447  r"""
13448  has_attribute(Provenance self, FloatKey a0) -> bool
13449  has_attribute(Provenance self, IntKey a0) -> bool
13450  has_attribute(Provenance self, FloatsKey a0) -> bool
13451  has_attribute(Provenance self, IntsKey a0) -> bool
13452  has_attribute(Provenance self, StringKey a0) -> bool
13453  has_attribute(Provenance self, ParticleIndexKey a0) -> bool
13454  has_attribute(Provenance self, ObjectKey a0) -> bool
13455  has_attribute(Provenance self, SparseFloatKey a0) -> bool
13456  has_attribute(Provenance self, SparseIntKey a0) -> bool
13457  has_attribute(Provenance self, SparseStringKey a0) -> bool
13458  has_attribute(Provenance self, SparseParticleIndexKey a0) -> bool
13459  """
13460  return _IMP_core.Provenance_has_attribute(self, *args)
13461 
13462  def get_derivative(self, a0):
13463  r"""get_derivative(Provenance self, FloatKey a0) -> double"""
13464  return _IMP_core.Provenance_get_derivative(self, a0)
13465 
13466  def get_name(self):
13467  r"""get_name(Provenance self) -> std::string"""
13468  return _IMP_core.Provenance_get_name(self)
13469 
13470  def clear_caches(self):
13471  r"""clear_caches(Provenance self)"""
13472  return _IMP_core.Provenance_clear_caches(self)
13473 
13474  def set_name(self, a0):
13475  r"""set_name(Provenance self, std::string a0)"""
13476  return _IMP_core.Provenance_set_name(self, a0)
13477 
13478  def set_check_level(self, a0):
13479  r"""set_check_level(Provenance self, IMP::CheckLevel a0)"""
13480  return _IMP_core.Provenance_set_check_level(self, a0)
13481 
13482  def add_to_derivative(self, a0, a1, a2):
13483  r"""add_to_derivative(Provenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13484  return _IMP_core.Provenance_add_to_derivative(self, a0, a1, a2)
13485 
13486  def set_is_optimized(self, a0, a1):
13487  r"""set_is_optimized(Provenance self, FloatKey a0, bool a1)"""
13488  return _IMP_core.Provenance_set_is_optimized(self, a0, a1)
13489 
13490  def get_is_optimized(self, a0):
13491  r"""get_is_optimized(Provenance self, FloatKey a0) -> bool"""
13492  return _IMP_core.Provenance_get_is_optimized(self, a0)
13493 
13494  def get_check_level(self):
13495  r"""get_check_level(Provenance self) -> IMP::CheckLevel"""
13496  return _IMP_core.Provenance_get_check_level(self)
13497 
13498  def __eq__(self, *args):
13499  r"""
13500  __eq__(Provenance self, Provenance o) -> bool
13501  __eq__(Provenance self, Particle d) -> bool
13502  """
13503  return _IMP_core.Provenance___eq__(self, *args)
13504 
13505  def __ne__(self, *args):
13506  r"""
13507  __ne__(Provenance self, Provenance o) -> bool
13508  __ne__(Provenance self, Particle d) -> bool
13509  """
13510  return _IMP_core.Provenance___ne__(self, *args)
13511 
13512  def __le__(self, *args):
13513  r"""
13514  __le__(Provenance self, Provenance o) -> bool
13515  __le__(Provenance self, Particle d) -> bool
13516  """
13517  return _IMP_core.Provenance___le__(self, *args)
13518 
13519  def __lt__(self, *args):
13520  r"""
13521  __lt__(Provenance self, Provenance o) -> bool
13522  __lt__(Provenance self, Particle d) -> bool
13523  """
13524  return _IMP_core.Provenance___lt__(self, *args)
13525 
13526  def __ge__(self, *args):
13527  r"""
13528  __ge__(Provenance self, Provenance o) -> bool
13529  __ge__(Provenance self, Particle d) -> bool
13530  """
13531  return _IMP_core.Provenance___ge__(self, *args)
13532 
13533  def __gt__(self, *args):
13534  r"""
13535  __gt__(Provenance self, Provenance o) -> bool
13536  __gt__(Provenance self, Particle d) -> bool
13537  """
13538  return _IMP_core.Provenance___gt__(self, *args)
13539 
13540  def __hash__(self):
13541  r"""__hash__(Provenance self) -> std::size_t"""
13542  return _IMP_core.Provenance___hash__(self)
13543 
13544  def __str__(self):
13545  r"""__str__(Provenance self) -> std::string"""
13546  return _IMP_core.Provenance___str__(self)
13547 
13548  def __repr__(self):
13549  r"""__repr__(Provenance self) -> std::string"""
13550  return _IMP_core.Provenance___repr__(self)
13551 
13552  def _get_as_binary(self):
13553  r"""_get_as_binary(Provenance self) -> PyObject *"""
13554  return _IMP_core.Provenance__get_as_binary(self)
13555 
13556  def _set_from_binary(self, p):
13557  r"""_set_from_binary(Provenance self, PyObject * p)"""
13558  return _IMP_core.Provenance__set_from_binary(self, p)
13559 
13560  def __getstate__(self):
13561  p = self._get_as_binary()
13562  if len(self.__dict__) > 1:
13563  d = self.__dict__.copy()
13564  del d['this']
13565  p = (d, p)
13566  return p
13567 
13568  def __setstate__(self, p):
13569  if not hasattr(self, 'this'):
13570  self.__init__()
13571  if isinstance(p, tuple):
13572  d, p = p
13573  self.__dict__.update(d)
13574  return self._set_from_binary(p)
13575 
13576  __swig_destroy__ = _IMP_core.delete_Provenance
13577 
13578 # Register Provenance in _IMP_core:
13579 _IMP_core.Provenance_swigregister(Provenance)
13580 class StructureProvenance(Provenance):
13581  r"""Proxy of C++ IMP::core::StructureProvenance class."""
13582 
13583  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13584 
13585  def set_filename(self, filename):
13586  r"""set_filename(StructureProvenance self, std::string filename)"""
13587  return _IMP_core.StructureProvenance_set_filename(self, filename)
13588 
13589  def get_filename(self):
13590  r"""get_filename(StructureProvenance self) -> std::string"""
13591  return _IMP_core.StructureProvenance_get_filename(self)
13592 
13593  def set_chain_id(self, chain_id):
13594  r"""set_chain_id(StructureProvenance self, std::string chain_id)"""
13595  return _IMP_core.StructureProvenance_set_chain_id(self, chain_id)
13596 
13597  def get_chain_id(self):
13598  r"""get_chain_id(StructureProvenance self) -> std::string"""
13599  return _IMP_core.StructureProvenance_get_chain_id(self)
13600 
13601  def set_residue_offset(self, residue_offset):
13602  r"""set_residue_offset(StructureProvenance self, int residue_offset)"""
13603  return _IMP_core.StructureProvenance_set_residue_offset(self, residue_offset)
13604 
13605  def get_residue_offset(self):
13606  r"""get_residue_offset(StructureProvenance self) -> int"""
13607  return _IMP_core.StructureProvenance_get_residue_offset(self)
13608 
13609  def __init__(self, *args):
13610  r"""
13611  __init__(StructureProvenance self) -> StructureProvenance
13612  __init__(StructureProvenance self, Model m, ParticleIndex id) -> StructureProvenance
13613  __init__(StructureProvenance self, _ParticleAdaptor d) -> StructureProvenance
13614  """
13615  _IMP_core.StructureProvenance_swiginit(self, _IMP_core.new_StructureProvenance(*args))
13616 
13617  @staticmethod
13618  def get_is_setup(*args):
13619  r"""
13620  get_is_setup(Model m, ParticleIndex pi) -> bool
13621  get_is_setup(_ParticleAdaptor p) -> bool
13622  """
13623  return _IMP_core.StructureProvenance_get_is_setup(*args)
13624 
13625  def show(self, *args):
13626  r"""show(StructureProvenance self, _ostream out=std::cout)"""
13627  return _IMP_core.StructureProvenance_show(self, *args)
13628 
13629  @staticmethod
13630  def setup_particle(*args):
13631  r"""
13632  setup_particle(Model m, ParticleIndex pi, std::string filename, std::string chain_id, int residue_offset) -> StructureProvenance
13633  setup_particle(_ParticleAdaptor pa, std::string filename, std::string chain_id, int residue_offset) -> StructureProvenance
13634  setup_particle(Model m, ParticleIndex pi, std::string filename, std::string chain_id) -> StructureProvenance
13635  setup_particle(_ParticleAdaptor pa, std::string filename, std::string chain_id) -> StructureProvenance
13636  setup_particle(Model m, ParticleIndex pi, StructureProvenance o) -> StructureProvenance
13637  setup_particle(_ParticleAdaptor pa, StructureProvenance o) -> StructureProvenance
13638  """
13639  return _IMP_core.StructureProvenance_setup_particle(*args)
13640 
13641  def add_attribute(self, *args):
13642  r"""
13643  add_attribute(StructureProvenance self, FloatKey k, IMP::Float v, bool opt)
13644  add_attribute(StructureProvenance self, FloatKey a0, IMP::Float a1)
13645  add_attribute(StructureProvenance self, IntKey a0, IMP::Int a1)
13646  add_attribute(StructureProvenance self, FloatsKey a0, IMP::Floats a1)
13647  add_attribute(StructureProvenance self, IntsKey a0, IMP::Ints a1)
13648  add_attribute(StructureProvenance self, StringKey a0, IMP::String a1)
13649  add_attribute(StructureProvenance self, ParticleIndexKey a0, Particle a1)
13650  add_attribute(StructureProvenance self, ObjectKey a0, Object a1)
13651  add_attribute(StructureProvenance self, SparseFloatKey a0, IMP::Float a1)
13652  add_attribute(StructureProvenance self, SparseIntKey a0, IMP::Int a1)
13653  add_attribute(StructureProvenance self, SparseStringKey a0, IMP::String a1)
13654  add_attribute(StructureProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13655  """
13656  return _IMP_core.StructureProvenance_add_attribute(self, *args)
13657 
13658  def get_value(self, *args):
13659  r"""
13660  get_value(StructureProvenance self, FloatKey a0) -> IMP::Float
13661  get_value(StructureProvenance self, IntKey a0) -> IMP::Int
13662  get_value(StructureProvenance self, FloatsKey a0) -> IMP::Floats
13663  get_value(StructureProvenance self, IntsKey a0) -> IMP::Ints
13664  get_value(StructureProvenance self, StringKey a0) -> IMP::String
13665  get_value(StructureProvenance self, ParticleIndexKey a0) -> Particle
13666  get_value(StructureProvenance self, ObjectKey a0) -> Object
13667  get_value(StructureProvenance self, SparseFloatKey a0) -> IMP::Float
13668  get_value(StructureProvenance self, SparseIntKey a0) -> IMP::Int
13669  get_value(StructureProvenance self, SparseStringKey a0) -> IMP::String
13670  get_value(StructureProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
13671  """
13672  return _IMP_core.StructureProvenance_get_value(self, *args)
13673 
13674  def set_value(self, *args):
13675  r"""
13676  set_value(StructureProvenance self, FloatKey a0, IMP::Float a1)
13677  set_value(StructureProvenance self, IntKey a0, IMP::Int a1)
13678  set_value(StructureProvenance self, FloatsKey a0, IMP::Floats a1)
13679  set_value(StructureProvenance self, IntsKey a0, IMP::Ints a1)
13680  set_value(StructureProvenance self, StringKey a0, IMP::String a1)
13681  set_value(StructureProvenance self, ParticleIndexKey a0, Particle a1)
13682  set_value(StructureProvenance self, ObjectKey a0, Object a1)
13683  set_value(StructureProvenance self, SparseFloatKey a0, IMP::Float a1)
13684  set_value(StructureProvenance self, SparseIntKey a0, IMP::Int a1)
13685  set_value(StructureProvenance self, SparseStringKey a0, IMP::String a1)
13686  set_value(StructureProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13687  """
13688  return _IMP_core.StructureProvenance_set_value(self, *args)
13689 
13690  def remove_attribute(self, *args):
13691  r"""
13692  remove_attribute(StructureProvenance self, FloatKey a0)
13693  remove_attribute(StructureProvenance self, IntKey a0)
13694  remove_attribute(StructureProvenance self, FloatsKey a0)
13695  remove_attribute(StructureProvenance self, IntsKey a0)
13696  remove_attribute(StructureProvenance self, StringKey a0)
13697  remove_attribute(StructureProvenance self, ParticleIndexKey a0)
13698  remove_attribute(StructureProvenance self, ObjectKey a0)
13699  remove_attribute(StructureProvenance self, SparseFloatKey a0)
13700  remove_attribute(StructureProvenance self, SparseIntKey a0)
13701  remove_attribute(StructureProvenance self, SparseStringKey a0)
13702  remove_attribute(StructureProvenance self, SparseParticleIndexKey a0)
13703  """
13704  return _IMP_core.StructureProvenance_remove_attribute(self, *args)
13705 
13706  def has_attribute(self, *args):
13707  r"""
13708  has_attribute(StructureProvenance self, FloatKey a0) -> bool
13709  has_attribute(StructureProvenance self, IntKey a0) -> bool
13710  has_attribute(StructureProvenance self, FloatsKey a0) -> bool
13711  has_attribute(StructureProvenance self, IntsKey a0) -> bool
13712  has_attribute(StructureProvenance self, StringKey a0) -> bool
13713  has_attribute(StructureProvenance self, ParticleIndexKey a0) -> bool
13714  has_attribute(StructureProvenance self, ObjectKey a0) -> bool
13715  has_attribute(StructureProvenance self, SparseFloatKey a0) -> bool
13716  has_attribute(StructureProvenance self, SparseIntKey a0) -> bool
13717  has_attribute(StructureProvenance self, SparseStringKey a0) -> bool
13718  has_attribute(StructureProvenance self, SparseParticleIndexKey a0) -> bool
13719  """
13720  return _IMP_core.StructureProvenance_has_attribute(self, *args)
13721 
13722  def get_derivative(self, a0):
13723  r"""get_derivative(StructureProvenance self, FloatKey a0) -> double"""
13724  return _IMP_core.StructureProvenance_get_derivative(self, a0)
13725 
13726  def get_name(self):
13727  r"""get_name(StructureProvenance self) -> std::string"""
13728  return _IMP_core.StructureProvenance_get_name(self)
13729 
13730  def clear_caches(self):
13731  r"""clear_caches(StructureProvenance self)"""
13732  return _IMP_core.StructureProvenance_clear_caches(self)
13733 
13734  def set_name(self, a0):
13735  r"""set_name(StructureProvenance self, std::string a0)"""
13736  return _IMP_core.StructureProvenance_set_name(self, a0)
13737 
13738  def set_check_level(self, a0):
13739  r"""set_check_level(StructureProvenance self, IMP::CheckLevel a0)"""
13740  return _IMP_core.StructureProvenance_set_check_level(self, a0)
13741 
13742  def add_to_derivative(self, a0, a1, a2):
13743  r"""add_to_derivative(StructureProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13744  return _IMP_core.StructureProvenance_add_to_derivative(self, a0, a1, a2)
13745 
13746  def set_is_optimized(self, a0, a1):
13747  r"""set_is_optimized(StructureProvenance self, FloatKey a0, bool a1)"""
13748  return _IMP_core.StructureProvenance_set_is_optimized(self, a0, a1)
13749 
13750  def get_is_optimized(self, a0):
13751  r"""get_is_optimized(StructureProvenance self, FloatKey a0) -> bool"""
13752  return _IMP_core.StructureProvenance_get_is_optimized(self, a0)
13753 
13754  def get_check_level(self):
13755  r"""get_check_level(StructureProvenance self) -> IMP::CheckLevel"""
13756  return _IMP_core.StructureProvenance_get_check_level(self)
13757 
13758  def __eq__(self, *args):
13759  r"""
13760  __eq__(StructureProvenance self, StructureProvenance o) -> bool
13761  __eq__(StructureProvenance self, Particle d) -> bool
13762  """
13763  return _IMP_core.StructureProvenance___eq__(self, *args)
13764 
13765  def __ne__(self, *args):
13766  r"""
13767  __ne__(StructureProvenance self, StructureProvenance o) -> bool
13768  __ne__(StructureProvenance self, Particle d) -> bool
13769  """
13770  return _IMP_core.StructureProvenance___ne__(self, *args)
13771 
13772  def __le__(self, *args):
13773  r"""
13774  __le__(StructureProvenance self, StructureProvenance o) -> bool
13775  __le__(StructureProvenance self, Particle d) -> bool
13776  """
13777  return _IMP_core.StructureProvenance___le__(self, *args)
13778 
13779  def __lt__(self, *args):
13780  r"""
13781  __lt__(StructureProvenance self, StructureProvenance o) -> bool
13782  __lt__(StructureProvenance self, Particle d) -> bool
13783  """
13784  return _IMP_core.StructureProvenance___lt__(self, *args)
13785 
13786  def __ge__(self, *args):
13787  r"""
13788  __ge__(StructureProvenance self, StructureProvenance o) -> bool
13789  __ge__(StructureProvenance self, Particle d) -> bool
13790  """
13791  return _IMP_core.StructureProvenance___ge__(self, *args)
13792 
13793  def __gt__(self, *args):
13794  r"""
13795  __gt__(StructureProvenance self, StructureProvenance o) -> bool
13796  __gt__(StructureProvenance self, Particle d) -> bool
13797  """
13798  return _IMP_core.StructureProvenance___gt__(self, *args)
13799 
13800  def __hash__(self):
13801  r"""__hash__(StructureProvenance self) -> std::size_t"""
13802  return _IMP_core.StructureProvenance___hash__(self)
13803 
13804  def __str__(self):
13805  r"""__str__(StructureProvenance self) -> std::string"""
13806  return _IMP_core.StructureProvenance___str__(self)
13807 
13808  def __repr__(self):
13809  r"""__repr__(StructureProvenance self) -> std::string"""
13810  return _IMP_core.StructureProvenance___repr__(self)
13811 
13812  def _get_as_binary(self):
13813  r"""_get_as_binary(StructureProvenance self) -> PyObject *"""
13814  return _IMP_core.StructureProvenance__get_as_binary(self)
13815 
13816  def _set_from_binary(self, p):
13817  r"""_set_from_binary(StructureProvenance self, PyObject * p)"""
13818  return _IMP_core.StructureProvenance__set_from_binary(self, p)
13819 
13820  def __getstate__(self):
13821  p = self._get_as_binary()
13822  if len(self.__dict__) > 1:
13823  d = self.__dict__.copy()
13824  del d['this']
13825  p = (d, p)
13826  return p
13827 
13828  def __setstate__(self, p):
13829  if not hasattr(self, 'this'):
13830  self.__init__()
13831  if isinstance(p, tuple):
13832  d, p = p
13833  self.__dict__.update(d)
13834  return self._set_from_binary(p)
13835 
13836  __swig_destroy__ = _IMP_core.delete_StructureProvenance
13837 
13838 # Register StructureProvenance in _IMP_core:
13839 _IMP_core.StructureProvenance_swigregister(StructureProvenance)
13840 class SampleProvenance(Provenance):
13841  r"""Proxy of C++ IMP::core::SampleProvenance class."""
13842 
13843  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13844 
13845  def set_method(self, method):
13846  r"""set_method(SampleProvenance self, std::string method)"""
13847  return _IMP_core.SampleProvenance_set_method(self, method)
13848 
13849  def get_method(self):
13850  r"""get_method(SampleProvenance self) -> std::string"""
13851  return _IMP_core.SampleProvenance_get_method(self)
13852 
13853  def set_number_of_frames(self, frames):
13854  r"""set_number_of_frames(SampleProvenance self, int frames)"""
13855  return _IMP_core.SampleProvenance_set_number_of_frames(self, frames)
13856 
13857  def get_number_of_frames(self):
13858  r"""get_number_of_frames(SampleProvenance self) -> int"""
13859  return _IMP_core.SampleProvenance_get_number_of_frames(self)
13860 
13861  def set_number_of_iterations(self, iterations):
13862  r"""set_number_of_iterations(SampleProvenance self, int iterations)"""
13863  return _IMP_core.SampleProvenance_set_number_of_iterations(self, iterations)
13864 
13865  def get_number_of_iterations(self):
13866  r"""get_number_of_iterations(SampleProvenance self) -> int"""
13867  return _IMP_core.SampleProvenance_get_number_of_iterations(self)
13868 
13869  def set_number_of_replicas(self, replicas):
13870  r"""set_number_of_replicas(SampleProvenance self, int replicas)"""
13871  return _IMP_core.SampleProvenance_set_number_of_replicas(self, replicas)
13872 
13873  def get_number_of_replicas(self):
13874  r"""get_number_of_replicas(SampleProvenance self) -> int"""
13875  return _IMP_core.SampleProvenance_get_number_of_replicas(self)
13876 
13877  def __init__(self, *args):
13878  r"""
13879  __init__(SampleProvenance self) -> SampleProvenance
13880  __init__(SampleProvenance self, Model m, ParticleIndex id) -> SampleProvenance
13881  __init__(SampleProvenance self, _ParticleAdaptor d) -> SampleProvenance
13882  """
13883  _IMP_core.SampleProvenance_swiginit(self, _IMP_core.new_SampleProvenance(*args))
13884 
13885  @staticmethod
13886  def get_is_setup(*args):
13887  r"""
13888  get_is_setup(Model m, ParticleIndex pi) -> bool
13889  get_is_setup(_ParticleAdaptor p) -> bool
13890  """
13891  return _IMP_core.SampleProvenance_get_is_setup(*args)
13892 
13893  def show(self, *args):
13894  r"""show(SampleProvenance self, _ostream out=std::cout)"""
13895  return _IMP_core.SampleProvenance_show(self, *args)
13896 
13897  @staticmethod
13898  def setup_particle(*args):
13899  r"""
13900  setup_particle(Model m, ParticleIndex pi, std::string method, int frames, int iterations, int replicas) -> SampleProvenance
13901  setup_particle(_ParticleAdaptor pa, std::string method, int frames, int iterations, int replicas) -> SampleProvenance
13902  setup_particle(Model m, ParticleIndex pi, std::string method, int frames, int iterations) -> SampleProvenance
13903  setup_particle(_ParticleAdaptor pa, std::string method, int frames, int iterations) -> SampleProvenance
13904  setup_particle(Model m, ParticleIndex pi, SampleProvenance o) -> SampleProvenance
13905  setup_particle(_ParticleAdaptor pa, SampleProvenance o) -> SampleProvenance
13906  """
13907  return _IMP_core.SampleProvenance_setup_particle(*args)
13908 
13909  def add_attribute(self, *args):
13910  r"""
13911  add_attribute(SampleProvenance self, FloatKey k, IMP::Float v, bool opt)
13912  add_attribute(SampleProvenance self, FloatKey a0, IMP::Float a1)
13913  add_attribute(SampleProvenance self, IntKey a0, IMP::Int a1)
13914  add_attribute(SampleProvenance self, FloatsKey a0, IMP::Floats a1)
13915  add_attribute(SampleProvenance self, IntsKey a0, IMP::Ints a1)
13916  add_attribute(SampleProvenance self, StringKey a0, IMP::String a1)
13917  add_attribute(SampleProvenance self, ParticleIndexKey a0, Particle a1)
13918  add_attribute(SampleProvenance self, ObjectKey a0, Object a1)
13919  add_attribute(SampleProvenance self, SparseFloatKey a0, IMP::Float a1)
13920  add_attribute(SampleProvenance self, SparseIntKey a0, IMP::Int a1)
13921  add_attribute(SampleProvenance self, SparseStringKey a0, IMP::String a1)
13922  add_attribute(SampleProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13923  """
13924  return _IMP_core.SampleProvenance_add_attribute(self, *args)
13925 
13926  def get_value(self, *args):
13927  r"""
13928  get_value(SampleProvenance self, FloatKey a0) -> IMP::Float
13929  get_value(SampleProvenance self, IntKey a0) -> IMP::Int
13930  get_value(SampleProvenance self, FloatsKey a0) -> IMP::Floats
13931  get_value(SampleProvenance self, IntsKey a0) -> IMP::Ints
13932  get_value(SampleProvenance self, StringKey a0) -> IMP::String
13933  get_value(SampleProvenance self, ParticleIndexKey a0) -> Particle
13934  get_value(SampleProvenance self, ObjectKey a0) -> Object
13935  get_value(SampleProvenance self, SparseFloatKey a0) -> IMP::Float
13936  get_value(SampleProvenance self, SparseIntKey a0) -> IMP::Int
13937  get_value(SampleProvenance self, SparseStringKey a0) -> IMP::String
13938  get_value(SampleProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
13939  """
13940  return _IMP_core.SampleProvenance_get_value(self, *args)
13941 
13942  def set_value(self, *args):
13943  r"""
13944  set_value(SampleProvenance self, FloatKey a0, IMP::Float a1)
13945  set_value(SampleProvenance self, IntKey a0, IMP::Int a1)
13946  set_value(SampleProvenance self, FloatsKey a0, IMP::Floats a1)
13947  set_value(SampleProvenance self, IntsKey a0, IMP::Ints a1)
13948  set_value(SampleProvenance self, StringKey a0, IMP::String a1)
13949  set_value(SampleProvenance self, ParticleIndexKey a0, Particle a1)
13950  set_value(SampleProvenance self, ObjectKey a0, Object a1)
13951  set_value(SampleProvenance self, SparseFloatKey a0, IMP::Float a1)
13952  set_value(SampleProvenance self, SparseIntKey a0, IMP::Int a1)
13953  set_value(SampleProvenance self, SparseStringKey a0, IMP::String a1)
13954  set_value(SampleProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13955  """
13956  return _IMP_core.SampleProvenance_set_value(self, *args)
13957 
13958  def remove_attribute(self, *args):
13959  r"""
13960  remove_attribute(SampleProvenance self, FloatKey a0)
13961  remove_attribute(SampleProvenance self, IntKey a0)
13962  remove_attribute(SampleProvenance self, FloatsKey a0)
13963  remove_attribute(SampleProvenance self, IntsKey a0)
13964  remove_attribute(SampleProvenance self, StringKey a0)
13965  remove_attribute(SampleProvenance self, ParticleIndexKey a0)
13966  remove_attribute(SampleProvenance self, ObjectKey a0)
13967  remove_attribute(SampleProvenance self, SparseFloatKey a0)
13968  remove_attribute(SampleProvenance self, SparseIntKey a0)
13969  remove_attribute(SampleProvenance self, SparseStringKey a0)
13970  remove_attribute(SampleProvenance self, SparseParticleIndexKey a0)
13971  """
13972  return _IMP_core.SampleProvenance_remove_attribute(self, *args)
13973 
13974  def has_attribute(self, *args):
13975  r"""
13976  has_attribute(SampleProvenance self, FloatKey a0) -> bool
13977  has_attribute(SampleProvenance self, IntKey a0) -> bool
13978  has_attribute(SampleProvenance self, FloatsKey a0) -> bool
13979  has_attribute(SampleProvenance self, IntsKey a0) -> bool
13980  has_attribute(SampleProvenance self, StringKey a0) -> bool
13981  has_attribute(SampleProvenance self, ParticleIndexKey a0) -> bool
13982  has_attribute(SampleProvenance self, ObjectKey a0) -> bool
13983  has_attribute(SampleProvenance self, SparseFloatKey a0) -> bool
13984  has_attribute(SampleProvenance self, SparseIntKey a0) -> bool
13985  has_attribute(SampleProvenance self, SparseStringKey a0) -> bool
13986  has_attribute(SampleProvenance self, SparseParticleIndexKey a0) -> bool
13987  """
13988  return _IMP_core.SampleProvenance_has_attribute(self, *args)
13989 
13990  def get_derivative(self, a0):
13991  r"""get_derivative(SampleProvenance self, FloatKey a0) -> double"""
13992  return _IMP_core.SampleProvenance_get_derivative(self, a0)
13993 
13994  def get_name(self):
13995  r"""get_name(SampleProvenance self) -> std::string"""
13996  return _IMP_core.SampleProvenance_get_name(self)
13997 
13998  def clear_caches(self):
13999  r"""clear_caches(SampleProvenance self)"""
14000  return _IMP_core.SampleProvenance_clear_caches(self)
14001 
14002  def set_name(self, a0):
14003  r"""set_name(SampleProvenance self, std::string a0)"""
14004  return _IMP_core.SampleProvenance_set_name(self, a0)
14005 
14006  def set_check_level(self, a0):
14007  r"""set_check_level(SampleProvenance self, IMP::CheckLevel a0)"""
14008  return _IMP_core.SampleProvenance_set_check_level(self, a0)
14009 
14010  def add_to_derivative(self, a0, a1, a2):
14011  r"""add_to_derivative(SampleProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14012  return _IMP_core.SampleProvenance_add_to_derivative(self, a0, a1, a2)
14013 
14014  def set_is_optimized(self, a0, a1):
14015  r"""set_is_optimized(SampleProvenance self, FloatKey a0, bool a1)"""
14016  return _IMP_core.SampleProvenance_set_is_optimized(self, a0, a1)
14017 
14018  def get_is_optimized(self, a0):
14019  r"""get_is_optimized(SampleProvenance self, FloatKey a0) -> bool"""
14020  return _IMP_core.SampleProvenance_get_is_optimized(self, a0)
14021 
14022  def get_check_level(self):
14023  r"""get_check_level(SampleProvenance self) -> IMP::CheckLevel"""
14024  return _IMP_core.SampleProvenance_get_check_level(self)
14025 
14026  def __eq__(self, *args):
14027  r"""
14028  __eq__(SampleProvenance self, SampleProvenance o) -> bool
14029  __eq__(SampleProvenance self, Particle d) -> bool
14030  """
14031  return _IMP_core.SampleProvenance___eq__(self, *args)
14032 
14033  def __ne__(self, *args):
14034  r"""
14035  __ne__(SampleProvenance self, SampleProvenance o) -> bool
14036  __ne__(SampleProvenance self, Particle d) -> bool
14037  """
14038  return _IMP_core.SampleProvenance___ne__(self, *args)
14039 
14040  def __le__(self, *args):
14041  r"""
14042  __le__(SampleProvenance self, SampleProvenance o) -> bool
14043  __le__(SampleProvenance self, Particle d) -> bool
14044  """
14045  return _IMP_core.SampleProvenance___le__(self, *args)
14046 
14047  def __lt__(self, *args):
14048  r"""
14049  __lt__(SampleProvenance self, SampleProvenance o) -> bool
14050  __lt__(SampleProvenance self, Particle d) -> bool
14051  """
14052  return _IMP_core.SampleProvenance___lt__(self, *args)
14053 
14054  def __ge__(self, *args):
14055  r"""
14056  __ge__(SampleProvenance self, SampleProvenance o) -> bool
14057  __ge__(SampleProvenance self, Particle d) -> bool
14058  """
14059  return _IMP_core.SampleProvenance___ge__(self, *args)
14060 
14061  def __gt__(self, *args):
14062  r"""
14063  __gt__(SampleProvenance self, SampleProvenance o) -> bool
14064  __gt__(SampleProvenance self, Particle d) -> bool
14065  """
14066  return _IMP_core.SampleProvenance___gt__(self, *args)
14067 
14068  def __hash__(self):
14069  r"""__hash__(SampleProvenance self) -> std::size_t"""
14070  return _IMP_core.SampleProvenance___hash__(self)
14071 
14072  def __str__(self):
14073  r"""__str__(SampleProvenance self) -> std::string"""
14074  return _IMP_core.SampleProvenance___str__(self)
14075 
14076  def __repr__(self):
14077  r"""__repr__(SampleProvenance self) -> std::string"""
14078  return _IMP_core.SampleProvenance___repr__(self)
14079 
14080  def _get_as_binary(self):
14081  r"""_get_as_binary(SampleProvenance self) -> PyObject *"""
14082  return _IMP_core.SampleProvenance__get_as_binary(self)
14083 
14084  def _set_from_binary(self, p):
14085  r"""_set_from_binary(SampleProvenance self, PyObject * p)"""
14086  return _IMP_core.SampleProvenance__set_from_binary(self, p)
14087 
14088  def __getstate__(self):
14089  p = self._get_as_binary()
14090  if len(self.__dict__) > 1:
14091  d = self.__dict__.copy()
14092  del d['this']
14093  p = (d, p)
14094  return p
14095 
14096  def __setstate__(self, p):
14097  if not hasattr(self, 'this'):
14098  self.__init__()
14099  if isinstance(p, tuple):
14100  d, p = p
14101  self.__dict__.update(d)
14102  return self._set_from_binary(p)
14103 
14104  __swig_destroy__ = _IMP_core.delete_SampleProvenance
14105 
14106 # Register SampleProvenance in _IMP_core:
14107 _IMP_core.SampleProvenance_swigregister(SampleProvenance)
14108 class CombineProvenance(Provenance):
14109  r"""Proxy of C++ IMP::core::CombineProvenance class."""
14110 
14111  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14112 
14113  def set_number_of_frames(self, frames):
14114  r"""set_number_of_frames(CombineProvenance self, int frames)"""
14115  return _IMP_core.CombineProvenance_set_number_of_frames(self, frames)
14116 
14117  def get_number_of_frames(self):
14118  r"""get_number_of_frames(CombineProvenance self) -> int"""
14119  return _IMP_core.CombineProvenance_get_number_of_frames(self)
14120 
14121  def set_number_of_runs(self, runs):
14122  r"""set_number_of_runs(CombineProvenance self, int runs)"""
14123  return _IMP_core.CombineProvenance_set_number_of_runs(self, runs)
14124 
14125  def get_number_of_runs(self):
14126  r"""get_number_of_runs(CombineProvenance self) -> int"""
14127  return _IMP_core.CombineProvenance_get_number_of_runs(self)
14128 
14129  def __init__(self, *args):
14130  r"""
14131  __init__(CombineProvenance self) -> CombineProvenance
14132  __init__(CombineProvenance self, Model m, ParticleIndex id) -> CombineProvenance
14133  __init__(CombineProvenance self, _ParticleAdaptor d) -> CombineProvenance
14134  """
14135  _IMP_core.CombineProvenance_swiginit(self, _IMP_core.new_CombineProvenance(*args))
14136 
14137  @staticmethod
14138  def get_is_setup(*args):
14139  r"""
14140  get_is_setup(Model m, ParticleIndex pi) -> bool
14141  get_is_setup(_ParticleAdaptor p) -> bool
14142  """
14143  return _IMP_core.CombineProvenance_get_is_setup(*args)
14144 
14145  def show(self, *args):
14146  r"""show(CombineProvenance self, _ostream out=std::cout)"""
14147  return _IMP_core.CombineProvenance_show(self, *args)
14148 
14149  @staticmethod
14150  def setup_particle(*args):
14151  r"""
14152  setup_particle(Model m, ParticleIndex pi, int runs, int frames) -> CombineProvenance
14153  setup_particle(_ParticleAdaptor pa, int runs, int frames) -> CombineProvenance
14154  setup_particle(Model m, ParticleIndex pi, CombineProvenance o) -> CombineProvenance
14155  setup_particle(_ParticleAdaptor pa, CombineProvenance o) -> CombineProvenance
14156  """
14157  return _IMP_core.CombineProvenance_setup_particle(*args)
14158 
14159  def add_attribute(self, *args):
14160  r"""
14161  add_attribute(CombineProvenance self, FloatKey k, IMP::Float v, bool opt)
14162  add_attribute(CombineProvenance self, FloatKey a0, IMP::Float a1)
14163  add_attribute(CombineProvenance self, IntKey a0, IMP::Int a1)
14164  add_attribute(CombineProvenance self, FloatsKey a0, IMP::Floats a1)
14165  add_attribute(CombineProvenance self, IntsKey a0, IMP::Ints a1)
14166  add_attribute(CombineProvenance self, StringKey a0, IMP::String a1)
14167  add_attribute(CombineProvenance self, ParticleIndexKey a0, Particle a1)
14168  add_attribute(CombineProvenance self, ObjectKey a0, Object a1)
14169  add_attribute(CombineProvenance self, SparseFloatKey a0, IMP::Float a1)
14170  add_attribute(CombineProvenance self, SparseIntKey a0, IMP::Int a1)
14171  add_attribute(CombineProvenance self, SparseStringKey a0, IMP::String a1)
14172  add_attribute(CombineProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14173  """
14174  return _IMP_core.CombineProvenance_add_attribute(self, *args)
14175 
14176  def get_value(self, *args):
14177  r"""
14178  get_value(CombineProvenance self, FloatKey a0) -> IMP::Float
14179  get_value(CombineProvenance self, IntKey a0) -> IMP::Int
14180  get_value(CombineProvenance self, FloatsKey a0) -> IMP::Floats
14181  get_value(CombineProvenance self, IntsKey a0) -> IMP::Ints
14182  get_value(CombineProvenance self, StringKey a0) -> IMP::String
14183  get_value(CombineProvenance self, ParticleIndexKey a0) -> Particle
14184  get_value(CombineProvenance self, ObjectKey a0) -> Object
14185  get_value(CombineProvenance self, SparseFloatKey a0) -> IMP::Float
14186  get_value(CombineProvenance self, SparseIntKey a0) -> IMP::Int
14187  get_value(CombineProvenance self, SparseStringKey a0) -> IMP::String
14188  get_value(CombineProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14189  """
14190  return _IMP_core.CombineProvenance_get_value(self, *args)
14191 
14192  def set_value(self, *args):
14193  r"""
14194  set_value(CombineProvenance self, FloatKey a0, IMP::Float a1)
14195  set_value(CombineProvenance self, IntKey a0, IMP::Int a1)
14196  set_value(CombineProvenance self, FloatsKey a0, IMP::Floats a1)
14197  set_value(CombineProvenance self, IntsKey a0, IMP::Ints a1)
14198  set_value(CombineProvenance self, StringKey a0, IMP::String a1)
14199  set_value(CombineProvenance self, ParticleIndexKey a0, Particle a1)
14200  set_value(CombineProvenance self, ObjectKey a0, Object a1)
14201  set_value(CombineProvenance self, SparseFloatKey a0, IMP::Float a1)
14202  set_value(CombineProvenance self, SparseIntKey a0, IMP::Int a1)
14203  set_value(CombineProvenance self, SparseStringKey a0, IMP::String a1)
14204  set_value(CombineProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14205  """
14206  return _IMP_core.CombineProvenance_set_value(self, *args)
14207 
14208  def remove_attribute(self, *args):
14209  r"""
14210  remove_attribute(CombineProvenance self, FloatKey a0)
14211  remove_attribute(CombineProvenance self, IntKey a0)
14212  remove_attribute(CombineProvenance self, FloatsKey a0)
14213  remove_attribute(CombineProvenance self, IntsKey a0)
14214  remove_attribute(CombineProvenance self, StringKey a0)
14215  remove_attribute(CombineProvenance self, ParticleIndexKey a0)
14216  remove_attribute(CombineProvenance self, ObjectKey a0)
14217  remove_attribute(CombineProvenance self, SparseFloatKey a0)
14218  remove_attribute(CombineProvenance self, SparseIntKey a0)
14219  remove_attribute(CombineProvenance self, SparseStringKey a0)
14220  remove_attribute(CombineProvenance self, SparseParticleIndexKey a0)
14221  """
14222  return _IMP_core.CombineProvenance_remove_attribute(self, *args)
14223 
14224  def has_attribute(self, *args):
14225  r"""
14226  has_attribute(CombineProvenance self, FloatKey a0) -> bool
14227  has_attribute(CombineProvenance self, IntKey a0) -> bool
14228  has_attribute(CombineProvenance self, FloatsKey a0) -> bool
14229  has_attribute(CombineProvenance self, IntsKey a0) -> bool
14230  has_attribute(CombineProvenance self, StringKey a0) -> bool
14231  has_attribute(CombineProvenance self, ParticleIndexKey a0) -> bool
14232  has_attribute(CombineProvenance self, ObjectKey a0) -> bool
14233  has_attribute(CombineProvenance self, SparseFloatKey a0) -> bool
14234  has_attribute(CombineProvenance self, SparseIntKey a0) -> bool
14235  has_attribute(CombineProvenance self, SparseStringKey a0) -> bool
14236  has_attribute(CombineProvenance self, SparseParticleIndexKey a0) -> bool
14237  """
14238  return _IMP_core.CombineProvenance_has_attribute(self, *args)
14239 
14240  def get_derivative(self, a0):
14241  r"""get_derivative(CombineProvenance self, FloatKey a0) -> double"""
14242  return _IMP_core.CombineProvenance_get_derivative(self, a0)
14243 
14244  def get_name(self):
14245  r"""get_name(CombineProvenance self) -> std::string"""
14246  return _IMP_core.CombineProvenance_get_name(self)
14247 
14248  def clear_caches(self):
14249  r"""clear_caches(CombineProvenance self)"""
14250  return _IMP_core.CombineProvenance_clear_caches(self)
14251 
14252  def set_name(self, a0):
14253  r"""set_name(CombineProvenance self, std::string a0)"""
14254  return _IMP_core.CombineProvenance_set_name(self, a0)
14255 
14256  def set_check_level(self, a0):
14257  r"""set_check_level(CombineProvenance self, IMP::CheckLevel a0)"""
14258  return _IMP_core.CombineProvenance_set_check_level(self, a0)
14259 
14260  def add_to_derivative(self, a0, a1, a2):
14261  r"""add_to_derivative(CombineProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14262  return _IMP_core.CombineProvenance_add_to_derivative(self, a0, a1, a2)
14263 
14264  def set_is_optimized(self, a0, a1):
14265  r"""set_is_optimized(CombineProvenance self, FloatKey a0, bool a1)"""
14266  return _IMP_core.CombineProvenance_set_is_optimized(self, a0, a1)
14267 
14268  def get_is_optimized(self, a0):
14269  r"""get_is_optimized(CombineProvenance self, FloatKey a0) -> bool"""
14270  return _IMP_core.CombineProvenance_get_is_optimized(self, a0)
14271 
14272  def get_check_level(self):
14273  r"""get_check_level(CombineProvenance self) -> IMP::CheckLevel"""
14274  return _IMP_core.CombineProvenance_get_check_level(self)
14275 
14276  def __eq__(self, *args):
14277  r"""
14278  __eq__(CombineProvenance self, CombineProvenance o) -> bool
14279  __eq__(CombineProvenance self, Particle d) -> bool
14280  """
14281  return _IMP_core.CombineProvenance___eq__(self, *args)
14282 
14283  def __ne__(self, *args):
14284  r"""
14285  __ne__(CombineProvenance self, CombineProvenance o) -> bool
14286  __ne__(CombineProvenance self, Particle d) -> bool
14287  """
14288  return _IMP_core.CombineProvenance___ne__(self, *args)
14289 
14290  def __le__(self, *args):
14291  r"""
14292  __le__(CombineProvenance self, CombineProvenance o) -> bool
14293  __le__(CombineProvenance self, Particle d) -> bool
14294  """
14295  return _IMP_core.CombineProvenance___le__(self, *args)
14296 
14297  def __lt__(self, *args):
14298  r"""
14299  __lt__(CombineProvenance self, CombineProvenance o) -> bool
14300  __lt__(CombineProvenance self, Particle d) -> bool
14301  """
14302  return _IMP_core.CombineProvenance___lt__(self, *args)
14303 
14304  def __ge__(self, *args):
14305  r"""
14306  __ge__(CombineProvenance self, CombineProvenance o) -> bool
14307  __ge__(CombineProvenance self, Particle d) -> bool
14308  """
14309  return _IMP_core.CombineProvenance___ge__(self, *args)
14310 
14311  def __gt__(self, *args):
14312  r"""
14313  __gt__(CombineProvenance self, CombineProvenance o) -> bool
14314  __gt__(CombineProvenance self, Particle d) -> bool
14315  """
14316  return _IMP_core.CombineProvenance___gt__(self, *args)
14317 
14318  def __hash__(self):
14319  r"""__hash__(CombineProvenance self) -> std::size_t"""
14320  return _IMP_core.CombineProvenance___hash__(self)
14321 
14322  def __str__(self):
14323  r"""__str__(CombineProvenance self) -> std::string"""
14324  return _IMP_core.CombineProvenance___str__(self)
14325 
14326  def __repr__(self):
14327  r"""__repr__(CombineProvenance self) -> std::string"""
14328  return _IMP_core.CombineProvenance___repr__(self)
14329 
14330  def _get_as_binary(self):
14331  r"""_get_as_binary(CombineProvenance self) -> PyObject *"""
14332  return _IMP_core.CombineProvenance__get_as_binary(self)
14333 
14334  def _set_from_binary(self, p):
14335  r"""_set_from_binary(CombineProvenance self, PyObject * p)"""
14336  return _IMP_core.CombineProvenance__set_from_binary(self, p)
14337 
14338  def __getstate__(self):
14339  p = self._get_as_binary()
14340  if len(self.__dict__) > 1:
14341  d = self.__dict__.copy()
14342  del d['this']
14343  p = (d, p)
14344  return p
14345 
14346  def __setstate__(self, p):
14347  if not hasattr(self, 'this'):
14348  self.__init__()
14349  if isinstance(p, tuple):
14350  d, p = p
14351  self.__dict__.update(d)
14352  return self._set_from_binary(p)
14353 
14354  __swig_destroy__ = _IMP_core.delete_CombineProvenance
14355 
14356 # Register CombineProvenance in _IMP_core:
14357 _IMP_core.CombineProvenance_swigregister(CombineProvenance)
14358 class FilterProvenance(Provenance):
14359  r"""Proxy of C++ IMP::core::FilterProvenance class."""
14360 
14361  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14362 
14363  def set_method(self, method):
14364  r"""set_method(FilterProvenance self, std::string method)"""
14365  return _IMP_core.FilterProvenance_set_method(self, method)
14366 
14367  def get_method(self):
14368  r"""get_method(FilterProvenance self) -> std::string"""
14369  return _IMP_core.FilterProvenance_get_method(self)
14370 
14371  def set_number_of_frames(self, frames):
14372  r"""set_number_of_frames(FilterProvenance self, int frames)"""
14373  return _IMP_core.FilterProvenance_set_number_of_frames(self, frames)
14374 
14375  def get_number_of_frames(self):
14376  r"""get_number_of_frames(FilterProvenance self) -> int"""
14377  return _IMP_core.FilterProvenance_get_number_of_frames(self)
14378 
14379  def set_threshold(self, threshold):
14380  r"""set_threshold(FilterProvenance self, double threshold)"""
14381  return _IMP_core.FilterProvenance_set_threshold(self, threshold)
14382 
14383  def get_threshold(self):
14384  r"""get_threshold(FilterProvenance self) -> double"""
14385  return _IMP_core.FilterProvenance_get_threshold(self)
14386 
14387  def __init__(self, *args):
14388  r"""
14389  __init__(FilterProvenance self) -> FilterProvenance
14390  __init__(FilterProvenance self, Model m, ParticleIndex id) -> FilterProvenance
14391  __init__(FilterProvenance self, _ParticleAdaptor d) -> FilterProvenance
14392  """
14393  _IMP_core.FilterProvenance_swiginit(self, _IMP_core.new_FilterProvenance(*args))
14394 
14395  @staticmethod
14396  def get_is_setup(*args):
14397  r"""
14398  get_is_setup(Model m, ParticleIndex pi) -> bool
14399  get_is_setup(_ParticleAdaptor p) -> bool
14400  """
14401  return _IMP_core.FilterProvenance_get_is_setup(*args)
14402 
14403  def show(self, *args):
14404  r"""show(FilterProvenance self, _ostream out=std::cout)"""
14405  return _IMP_core.FilterProvenance_show(self, *args)
14406 
14407  @staticmethod
14408  def setup_particle(*args):
14409  r"""
14410  setup_particle(Model m, ParticleIndex pi, std::string method, double threshold, int frames) -> FilterProvenance
14411  setup_particle(_ParticleAdaptor pa, std::string method, double threshold, int frames) -> FilterProvenance
14412  setup_particle(Model m, ParticleIndex pi, FilterProvenance o) -> FilterProvenance
14413  setup_particle(_ParticleAdaptor pa, FilterProvenance o) -> FilterProvenance
14414  """
14415  return _IMP_core.FilterProvenance_setup_particle(*args)
14416 
14417  def add_attribute(self, *args):
14418  r"""
14419  add_attribute(FilterProvenance self, FloatKey k, IMP::Float v, bool opt)
14420  add_attribute(FilterProvenance self, FloatKey a0, IMP::Float a1)
14421  add_attribute(FilterProvenance self, IntKey a0, IMP::Int a1)
14422  add_attribute(FilterProvenance self, FloatsKey a0, IMP::Floats a1)
14423  add_attribute(FilterProvenance self, IntsKey a0, IMP::Ints a1)
14424  add_attribute(FilterProvenance self, StringKey a0, IMP::String a1)
14425  add_attribute(FilterProvenance self, ParticleIndexKey a0, Particle a1)
14426  add_attribute(FilterProvenance self, ObjectKey a0, Object a1)
14427  add_attribute(FilterProvenance self, SparseFloatKey a0, IMP::Float a1)
14428  add_attribute(FilterProvenance self, SparseIntKey a0, IMP::Int a1)
14429  add_attribute(FilterProvenance self, SparseStringKey a0, IMP::String a1)
14430  add_attribute(FilterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14431  """
14432  return _IMP_core.FilterProvenance_add_attribute(self, *args)
14433 
14434  def get_value(self, *args):
14435  r"""
14436  get_value(FilterProvenance self, FloatKey a0) -> IMP::Float
14437  get_value(FilterProvenance self, IntKey a0) -> IMP::Int
14438  get_value(FilterProvenance self, FloatsKey a0) -> IMP::Floats
14439  get_value(FilterProvenance self, IntsKey a0) -> IMP::Ints
14440  get_value(FilterProvenance self, StringKey a0) -> IMP::String
14441  get_value(FilterProvenance self, ParticleIndexKey a0) -> Particle
14442  get_value(FilterProvenance self, ObjectKey a0) -> Object
14443  get_value(FilterProvenance self, SparseFloatKey a0) -> IMP::Float
14444  get_value(FilterProvenance self, SparseIntKey a0) -> IMP::Int
14445  get_value(FilterProvenance self, SparseStringKey a0) -> IMP::String
14446  get_value(FilterProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14447  """
14448  return _IMP_core.FilterProvenance_get_value(self, *args)
14449 
14450  def set_value(self, *args):
14451  r"""
14452  set_value(FilterProvenance self, FloatKey a0, IMP::Float a1)
14453  set_value(FilterProvenance self, IntKey a0, IMP::Int a1)
14454  set_value(FilterProvenance self, FloatsKey a0, IMP::Floats a1)
14455  set_value(FilterProvenance self, IntsKey a0, IMP::Ints a1)
14456  set_value(FilterProvenance self, StringKey a0, IMP::String a1)
14457  set_value(FilterProvenance self, ParticleIndexKey a0, Particle a1)
14458  set_value(FilterProvenance self, ObjectKey a0, Object a1)
14459  set_value(FilterProvenance self, SparseFloatKey a0, IMP::Float a1)
14460  set_value(FilterProvenance self, SparseIntKey a0, IMP::Int a1)
14461  set_value(FilterProvenance self, SparseStringKey a0, IMP::String a1)
14462  set_value(FilterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14463  """
14464  return _IMP_core.FilterProvenance_set_value(self, *args)
14465 
14466  def remove_attribute(self, *args):
14467  r"""
14468  remove_attribute(FilterProvenance self, FloatKey a0)
14469  remove_attribute(FilterProvenance self, IntKey a0)
14470  remove_attribute(FilterProvenance self, FloatsKey a0)
14471  remove_attribute(FilterProvenance self, IntsKey a0)
14472  remove_attribute(FilterProvenance self, StringKey a0)
14473  remove_attribute(FilterProvenance self, ParticleIndexKey a0)
14474  remove_attribute(FilterProvenance self, ObjectKey a0)
14475  remove_attribute(FilterProvenance self, SparseFloatKey a0)
14476  remove_attribute(FilterProvenance self, SparseIntKey a0)
14477  remove_attribute(FilterProvenance self, SparseStringKey a0)
14478  remove_attribute(FilterProvenance self, SparseParticleIndexKey a0)
14479  """
14480  return _IMP_core.FilterProvenance_remove_attribute(self, *args)
14481 
14482  def has_attribute(self, *args):
14483  r"""
14484  has_attribute(FilterProvenance self, FloatKey a0) -> bool
14485  has_attribute(FilterProvenance self, IntKey a0) -> bool
14486  has_attribute(FilterProvenance self, FloatsKey a0) -> bool
14487  has_attribute(FilterProvenance self, IntsKey a0) -> bool
14488  has_attribute(FilterProvenance self, StringKey a0) -> bool
14489  has_attribute(FilterProvenance self, ParticleIndexKey a0) -> bool
14490  has_attribute(FilterProvenance self, ObjectKey a0) -> bool
14491  has_attribute(FilterProvenance self, SparseFloatKey a0) -> bool
14492  has_attribute(FilterProvenance self, SparseIntKey a0) -> bool
14493  has_attribute(FilterProvenance self, SparseStringKey a0) -> bool
14494  has_attribute(FilterProvenance self, SparseParticleIndexKey a0) -> bool
14495  """
14496  return _IMP_core.FilterProvenance_has_attribute(self, *args)
14497 
14498  def get_derivative(self, a0):
14499  r"""get_derivative(FilterProvenance self, FloatKey a0) -> double"""
14500  return _IMP_core.FilterProvenance_get_derivative(self, a0)
14501 
14502  def get_name(self):
14503  r"""get_name(FilterProvenance self) -> std::string"""
14504  return _IMP_core.FilterProvenance_get_name(self)
14505 
14506  def clear_caches(self):
14507  r"""clear_caches(FilterProvenance self)"""
14508  return _IMP_core.FilterProvenance_clear_caches(self)
14509 
14510  def set_name(self, a0):
14511  r"""set_name(FilterProvenance self, std::string a0)"""
14512  return _IMP_core.FilterProvenance_set_name(self, a0)
14513 
14514  def set_check_level(self, a0):
14515  r"""set_check_level(FilterProvenance self, IMP::CheckLevel a0)"""
14516  return _IMP_core.FilterProvenance_set_check_level(self, a0)
14517 
14518  def add_to_derivative(self, a0, a1, a2):
14519  r"""add_to_derivative(FilterProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14520  return _IMP_core.FilterProvenance_add_to_derivative(self, a0, a1, a2)
14521 
14522  def set_is_optimized(self, a0, a1):
14523  r"""set_is_optimized(FilterProvenance self, FloatKey a0, bool a1)"""
14524  return _IMP_core.FilterProvenance_set_is_optimized(self, a0, a1)
14525 
14526  def get_is_optimized(self, a0):
14527  r"""get_is_optimized(FilterProvenance self, FloatKey a0) -> bool"""
14528  return _IMP_core.FilterProvenance_get_is_optimized(self, a0)
14529 
14530  def get_check_level(self):
14531  r"""get_check_level(FilterProvenance self) -> IMP::CheckLevel"""
14532  return _IMP_core.FilterProvenance_get_check_level(self)
14533 
14534  def __eq__(self, *args):
14535  r"""
14536  __eq__(FilterProvenance self, FilterProvenance o) -> bool
14537  __eq__(FilterProvenance self, Particle d) -> bool
14538  """
14539  return _IMP_core.FilterProvenance___eq__(self, *args)
14540 
14541  def __ne__(self, *args):
14542  r"""
14543  __ne__(FilterProvenance self, FilterProvenance o) -> bool
14544  __ne__(FilterProvenance self, Particle d) -> bool
14545  """
14546  return _IMP_core.FilterProvenance___ne__(self, *args)
14547 
14548  def __le__(self, *args):
14549  r"""
14550  __le__(FilterProvenance self, FilterProvenance o) -> bool
14551  __le__(FilterProvenance self, Particle d) -> bool
14552  """
14553  return _IMP_core.FilterProvenance___le__(self, *args)
14554 
14555  def __lt__(self, *args):
14556  r"""
14557  __lt__(FilterProvenance self, FilterProvenance o) -> bool
14558  __lt__(FilterProvenance self, Particle d) -> bool
14559  """
14560  return _IMP_core.FilterProvenance___lt__(self, *args)
14561 
14562  def __ge__(self, *args):
14563  r"""
14564  __ge__(FilterProvenance self, FilterProvenance o) -> bool
14565  __ge__(FilterProvenance self, Particle d) -> bool
14566  """
14567  return _IMP_core.FilterProvenance___ge__(self, *args)
14568 
14569  def __gt__(self, *args):
14570  r"""
14571  __gt__(FilterProvenance self, FilterProvenance o) -> bool
14572  __gt__(FilterProvenance self, Particle d) -> bool
14573  """
14574  return _IMP_core.FilterProvenance___gt__(self, *args)
14575 
14576  def __hash__(self):
14577  r"""__hash__(FilterProvenance self) -> std::size_t"""
14578  return _IMP_core.FilterProvenance___hash__(self)
14579 
14580  def __str__(self):
14581  r"""__str__(FilterProvenance self) -> std::string"""
14582  return _IMP_core.FilterProvenance___str__(self)
14583 
14584  def __repr__(self):
14585  r"""__repr__(FilterProvenance self) -> std::string"""
14586  return _IMP_core.FilterProvenance___repr__(self)
14587 
14588  def _get_as_binary(self):
14589  r"""_get_as_binary(FilterProvenance self) -> PyObject *"""
14590  return _IMP_core.FilterProvenance__get_as_binary(self)
14591 
14592  def _set_from_binary(self, p):
14593  r"""_set_from_binary(FilterProvenance self, PyObject * p)"""
14594  return _IMP_core.FilterProvenance__set_from_binary(self, p)
14595 
14596  def __getstate__(self):
14597  p = self._get_as_binary()
14598  if len(self.__dict__) > 1:
14599  d = self.__dict__.copy()
14600  del d['this']
14601  p = (d, p)
14602  return p
14603 
14604  def __setstate__(self, p):
14605  if not hasattr(self, 'this'):
14606  self.__init__()
14607  if isinstance(p, tuple):
14608  d, p = p
14609  self.__dict__.update(d)
14610  return self._set_from_binary(p)
14611 
14612  __swig_destroy__ = _IMP_core.delete_FilterProvenance
14613 
14614 # Register FilterProvenance in _IMP_core:
14615 _IMP_core.FilterProvenance_swigregister(FilterProvenance)
14616 class ClusterProvenance(Provenance):
14617  r"""Proxy of C++ IMP::core::ClusterProvenance class."""
14618 
14619  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14620 
14621  def set_number_of_members(self, members):
14622  r"""set_number_of_members(ClusterProvenance self, int members)"""
14623  return _IMP_core.ClusterProvenance_set_number_of_members(self, members)
14624 
14625  def get_number_of_members(self):
14626  r"""get_number_of_members(ClusterProvenance self) -> int"""
14627  return _IMP_core.ClusterProvenance_get_number_of_members(self)
14628 
14629  def set_precision(self, precision):
14630  r"""set_precision(ClusterProvenance self, double precision)"""
14631  return _IMP_core.ClusterProvenance_set_precision(self, precision)
14632 
14633  def get_precision(self):
14634  r"""get_precision(ClusterProvenance self) -> double"""
14635  return _IMP_core.ClusterProvenance_get_precision(self)
14636 
14637  def set_density(self, density):
14638  r"""set_density(ClusterProvenance self, std::string density)"""
14639  return _IMP_core.ClusterProvenance_set_density(self, density)
14640 
14641  def get_density(self):
14642  r"""get_density(ClusterProvenance self) -> std::string"""
14643  return _IMP_core.ClusterProvenance_get_density(self)
14644 
14645  def __init__(self, *args):
14646  r"""
14647  __init__(ClusterProvenance self) -> ClusterProvenance
14648  __init__(ClusterProvenance self, Model m, ParticleIndex id) -> ClusterProvenance
14649  __init__(ClusterProvenance self, _ParticleAdaptor d) -> ClusterProvenance
14650  """
14651  _IMP_core.ClusterProvenance_swiginit(self, _IMP_core.new_ClusterProvenance(*args))
14652 
14653  @staticmethod
14654  def get_is_setup(*args):
14655  r"""
14656  get_is_setup(Model m, ParticleIndex pi) -> bool
14657  get_is_setup(_ParticleAdaptor p) -> bool
14658  """
14659  return _IMP_core.ClusterProvenance_get_is_setup(*args)
14660 
14661  def show(self, *args):
14662  r"""show(ClusterProvenance self, _ostream out=std::cout)"""
14663  return _IMP_core.ClusterProvenance_show(self, *args)
14664 
14665  @staticmethod
14666  def setup_particle(*args):
14667  r"""
14668  setup_particle(Model m, ParticleIndex pi, int members) -> ClusterProvenance
14669  setup_particle(_ParticleAdaptor pa, int members) -> ClusterProvenance
14670  setup_particle(Model m, ParticleIndex pi, int members, double precision) -> ClusterProvenance
14671  setup_particle(_ParticleAdaptor pa, int members, double precision) -> ClusterProvenance
14672  setup_particle(Model m, ParticleIndex pi, int members, double precision, std::string density) -> ClusterProvenance
14673  setup_particle(_ParticleAdaptor pa, int members, double precision, std::string density) -> ClusterProvenance
14674  setup_particle(Model m, ParticleIndex pi, ClusterProvenance o) -> ClusterProvenance
14675  setup_particle(_ParticleAdaptor pa, ClusterProvenance o) -> ClusterProvenance
14676  """
14677  return _IMP_core.ClusterProvenance_setup_particle(*args)
14678 
14679  def add_attribute(self, *args):
14680  r"""
14681  add_attribute(ClusterProvenance self, FloatKey k, IMP::Float v, bool opt)
14682  add_attribute(ClusterProvenance self, FloatKey a0, IMP::Float a1)
14683  add_attribute(ClusterProvenance self, IntKey a0, IMP::Int a1)
14684  add_attribute(ClusterProvenance self, FloatsKey a0, IMP::Floats a1)
14685  add_attribute(ClusterProvenance self, IntsKey a0, IMP::Ints a1)
14686  add_attribute(ClusterProvenance self, StringKey a0, IMP::String a1)
14687  add_attribute(ClusterProvenance self, ParticleIndexKey a0, Particle a1)
14688  add_attribute(ClusterProvenance self, ObjectKey a0, Object a1)
14689  add_attribute(ClusterProvenance self, SparseFloatKey a0, IMP::Float a1)
14690  add_attribute(ClusterProvenance self, SparseIntKey a0, IMP::Int a1)
14691  add_attribute(ClusterProvenance self, SparseStringKey a0, IMP::String a1)
14692  add_attribute(ClusterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14693  """
14694  return _IMP_core.ClusterProvenance_add_attribute(self, *args)
14695 
14696  def get_value(self, *args):
14697  r"""
14698  get_value(ClusterProvenance self, FloatKey a0) -> IMP::Float
14699  get_value(ClusterProvenance self, IntKey a0) -> IMP::Int
14700  get_value(ClusterProvenance self, FloatsKey a0) -> IMP::Floats
14701  get_value(ClusterProvenance self, IntsKey a0) -> IMP::Ints
14702  get_value(ClusterProvenance self, StringKey a0) -> IMP::String
14703  get_value(ClusterProvenance self, ParticleIndexKey a0) -> Particle
14704  get_value(ClusterProvenance self, ObjectKey a0) -> Object
14705  get_value(ClusterProvenance self, SparseFloatKey a0) -> IMP::Float
14706  get_value(ClusterProvenance self, SparseIntKey a0) -> IMP::Int
14707  get_value(ClusterProvenance self, SparseStringKey a0) -> IMP::String
14708  get_value(ClusterProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14709  """
14710  return _IMP_core.ClusterProvenance_get_value(self, *args)
14711 
14712  def set_value(self, *args):
14713  r"""
14714  set_value(ClusterProvenance self, FloatKey a0, IMP::Float a1)
14715  set_value(ClusterProvenance self, IntKey a0, IMP::Int a1)
14716  set_value(ClusterProvenance self, FloatsKey a0, IMP::Floats a1)
14717  set_value(ClusterProvenance self, IntsKey a0, IMP::Ints a1)
14718  set_value(ClusterProvenance self, StringKey a0, IMP::String a1)
14719  set_value(ClusterProvenance self, ParticleIndexKey a0, Particle a1)
14720  set_value(ClusterProvenance self, ObjectKey a0, Object a1)
14721  set_value(ClusterProvenance self, SparseFloatKey a0, IMP::Float a1)
14722  set_value(ClusterProvenance self, SparseIntKey a0, IMP::Int a1)
14723  set_value(ClusterProvenance self, SparseStringKey a0, IMP::String a1)
14724  set_value(ClusterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14725  """
14726  return _IMP_core.ClusterProvenance_set_value(self, *args)
14727 
14728  def remove_attribute(self, *args):
14729  r"""
14730  remove_attribute(ClusterProvenance self, FloatKey a0)
14731  remove_attribute(ClusterProvenance self, IntKey a0)
14732  remove_attribute(ClusterProvenance self, FloatsKey a0)
14733  remove_attribute(ClusterProvenance self, IntsKey a0)
14734  remove_attribute(ClusterProvenance self, StringKey a0)
14735  remove_attribute(ClusterProvenance self, ParticleIndexKey a0)
14736  remove_attribute(ClusterProvenance self, ObjectKey a0)
14737  remove_attribute(ClusterProvenance self, SparseFloatKey a0)
14738  remove_attribute(ClusterProvenance self, SparseIntKey a0)
14739  remove_attribute(ClusterProvenance self, SparseStringKey a0)
14740  remove_attribute(ClusterProvenance self, SparseParticleIndexKey a0)
14741  """
14742  return _IMP_core.ClusterProvenance_remove_attribute(self, *args)
14743 
14744  def has_attribute(self, *args):
14745  r"""
14746  has_attribute(ClusterProvenance self, FloatKey a0) -> bool
14747  has_attribute(ClusterProvenance self, IntKey a0) -> bool
14748  has_attribute(ClusterProvenance self, FloatsKey a0) -> bool
14749  has_attribute(ClusterProvenance self, IntsKey a0) -> bool
14750  has_attribute(ClusterProvenance self, StringKey a0) -> bool
14751  has_attribute(ClusterProvenance self, ParticleIndexKey a0) -> bool
14752  has_attribute(ClusterProvenance self, ObjectKey a0) -> bool
14753  has_attribute(ClusterProvenance self, SparseFloatKey a0) -> bool
14754  has_attribute(ClusterProvenance self, SparseIntKey a0) -> bool
14755  has_attribute(ClusterProvenance self, SparseStringKey a0) -> bool
14756  has_attribute(ClusterProvenance self, SparseParticleIndexKey a0) -> bool
14757  """
14758  return _IMP_core.ClusterProvenance_has_attribute(self, *args)
14759 
14760  def get_derivative(self, a0):
14761  r"""get_derivative(ClusterProvenance self, FloatKey a0) -> double"""
14762  return _IMP_core.ClusterProvenance_get_derivative(self, a0)
14763 
14764  def get_name(self):
14765  r"""get_name(ClusterProvenance self) -> std::string"""
14766  return _IMP_core.ClusterProvenance_get_name(self)
14767 
14768  def clear_caches(self):
14769  r"""clear_caches(ClusterProvenance self)"""
14770  return _IMP_core.ClusterProvenance_clear_caches(self)
14771 
14772  def set_name(self, a0):
14773  r"""set_name(ClusterProvenance self, std::string a0)"""
14774  return _IMP_core.ClusterProvenance_set_name(self, a0)
14775 
14776  def set_check_level(self, a0):
14777  r"""set_check_level(ClusterProvenance self, IMP::CheckLevel a0)"""
14778  return _IMP_core.ClusterProvenance_set_check_level(self, a0)
14779 
14780  def add_to_derivative(self, a0, a1, a2):
14781  r"""add_to_derivative(ClusterProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14782  return _IMP_core.ClusterProvenance_add_to_derivative(self, a0, a1, a2)
14783 
14784  def set_is_optimized(self, a0, a1):
14785  r"""set_is_optimized(ClusterProvenance self, FloatKey a0, bool a1)"""
14786  return _IMP_core.ClusterProvenance_set_is_optimized(self, a0, a1)
14787 
14788  def get_is_optimized(self, a0):
14789  r"""get_is_optimized(ClusterProvenance self, FloatKey a0) -> bool"""
14790  return _IMP_core.ClusterProvenance_get_is_optimized(self, a0)
14791 
14792  def get_check_level(self):
14793  r"""get_check_level(ClusterProvenance self) -> IMP::CheckLevel"""
14794  return _IMP_core.ClusterProvenance_get_check_level(self)
14795 
14796  def __eq__(self, *args):
14797  r"""
14798  __eq__(ClusterProvenance self, ClusterProvenance o) -> bool
14799  __eq__(ClusterProvenance self, Particle d) -> bool
14800  """
14801  return _IMP_core.ClusterProvenance___eq__(self, *args)
14802 
14803  def __ne__(self, *args):
14804  r"""
14805  __ne__(ClusterProvenance self, ClusterProvenance o) -> bool
14806  __ne__(ClusterProvenance self, Particle d) -> bool
14807  """
14808  return _IMP_core.ClusterProvenance___ne__(self, *args)
14809 
14810  def __le__(self, *args):
14811  r"""
14812  __le__(ClusterProvenance self, ClusterProvenance o) -> bool
14813  __le__(ClusterProvenance self, Particle d) -> bool
14814  """
14815  return _IMP_core.ClusterProvenance___le__(self, *args)
14816 
14817  def __lt__(self, *args):
14818  r"""
14819  __lt__(ClusterProvenance self, ClusterProvenance o) -> bool
14820  __lt__(ClusterProvenance self, Particle d) -> bool
14821  """
14822  return _IMP_core.ClusterProvenance___lt__(self, *args)
14823 
14824  def __ge__(self, *args):
14825  r"""
14826  __ge__(ClusterProvenance self, ClusterProvenance o) -> bool
14827  __ge__(ClusterProvenance self, Particle d) -> bool
14828  """
14829  return _IMP_core.ClusterProvenance___ge__(self, *args)
14830 
14831  def __gt__(self, *args):
14832  r"""
14833  __gt__(ClusterProvenance self, ClusterProvenance o) -> bool
14834  __gt__(ClusterProvenance self, Particle d) -> bool
14835  """
14836  return _IMP_core.ClusterProvenance___gt__(self, *args)
14837 
14838  def __hash__(self):
14839  r"""__hash__(ClusterProvenance self) -> std::size_t"""
14840  return _IMP_core.ClusterProvenance___hash__(self)
14841 
14842  def __str__(self):
14843  r"""__str__(ClusterProvenance self) -> std::string"""
14844  return _IMP_core.ClusterProvenance___str__(self)
14845 
14846  def __repr__(self):
14847  r"""__repr__(ClusterProvenance self) -> std::string"""
14848  return _IMP_core.ClusterProvenance___repr__(self)
14849 
14850  def _get_as_binary(self):
14851  r"""_get_as_binary(ClusterProvenance self) -> PyObject *"""
14852  return _IMP_core.ClusterProvenance__get_as_binary(self)
14853 
14854  def _set_from_binary(self, p):
14855  r"""_set_from_binary(ClusterProvenance self, PyObject * p)"""
14856  return _IMP_core.ClusterProvenance__set_from_binary(self, p)
14857 
14858  def __getstate__(self):
14859  p = self._get_as_binary()
14860  if len(self.__dict__) > 1:
14861  d = self.__dict__.copy()
14862  del d['this']
14863  p = (d, p)
14864  return p
14865 
14866  def __setstate__(self, p):
14867  if not hasattr(self, 'this'):
14868  self.__init__()
14869  if isinstance(p, tuple):
14870  d, p = p
14871  self.__dict__.update(d)
14872  return self._set_from_binary(p)
14873 
14874  __swig_destroy__ = _IMP_core.delete_ClusterProvenance
14875 
14876 # Register ClusterProvenance in _IMP_core:
14877 _IMP_core.ClusterProvenance_swigregister(ClusterProvenance)
14878 class ScriptProvenance(Provenance):
14879  r"""Proxy of C++ IMP::core::ScriptProvenance class."""
14880 
14881  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14882 
14883  def set_filename(self, filename):
14884  r"""set_filename(ScriptProvenance self, std::string filename)"""
14885  return _IMP_core.ScriptProvenance_set_filename(self, filename)
14886 
14887  def get_filename(self):
14888  r"""get_filename(ScriptProvenance self) -> std::string"""
14889  return _IMP_core.ScriptProvenance_get_filename(self)
14890 
14891  def __init__(self, *args):
14892  r"""
14893  __init__(ScriptProvenance self) -> ScriptProvenance
14894  __init__(ScriptProvenance self, Model m, ParticleIndex id) -> ScriptProvenance
14895  __init__(ScriptProvenance self, _ParticleAdaptor d) -> ScriptProvenance
14896  """
14897  _IMP_core.ScriptProvenance_swiginit(self, _IMP_core.new_ScriptProvenance(*args))
14898 
14899  @staticmethod
14900  def get_is_setup(*args):
14901  r"""
14902  get_is_setup(Model m, ParticleIndex pi) -> bool
14903  get_is_setup(_ParticleAdaptor p) -> bool
14904  """
14905  return _IMP_core.ScriptProvenance_get_is_setup(*args)
14906 
14907  def show(self, *args):
14908  r"""show(ScriptProvenance self, _ostream out=std::cout)"""
14909  return _IMP_core.ScriptProvenance_show(self, *args)
14910 
14911  @staticmethod
14912  def setup_particle(*args):
14913  r"""
14914  setup_particle(Model m, ParticleIndex pi, std::string filename) -> ScriptProvenance
14915  setup_particle(_ParticleAdaptor pa, std::string filename) -> ScriptProvenance
14916  setup_particle(Model m, ParticleIndex pi, ScriptProvenance o) -> ScriptProvenance
14917  setup_particle(_ParticleAdaptor pa, ScriptProvenance o) -> ScriptProvenance
14918  """
14919  return _IMP_core.ScriptProvenance_setup_particle(*args)
14920 
14921  def add_attribute(self, *args):
14922  r"""
14923  add_attribute(ScriptProvenance self, FloatKey k, IMP::Float v, bool opt)
14924  add_attribute(ScriptProvenance self, FloatKey a0, IMP::Float a1)
14925  add_attribute(ScriptProvenance self, IntKey a0, IMP::Int a1)
14926  add_attribute(ScriptProvenance self, FloatsKey a0, IMP::Floats a1)
14927  add_attribute(ScriptProvenance self, IntsKey a0, IMP::Ints a1)
14928  add_attribute(ScriptProvenance self, StringKey a0, IMP::String a1)
14929  add_attribute(ScriptProvenance self, ParticleIndexKey a0, Particle a1)
14930  add_attribute(ScriptProvenance self, ObjectKey a0, Object a1)
14931  add_attribute(ScriptProvenance self, SparseFloatKey a0, IMP::Float a1)
14932  add_attribute(ScriptProvenance self, SparseIntKey a0, IMP::Int a1)
14933  add_attribute(ScriptProvenance self, SparseStringKey a0, IMP::String a1)
14934  add_attribute(ScriptProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14935  """
14936  return _IMP_core.ScriptProvenance_add_attribute(self, *args)
14937 
14938  def get_value(self, *args):
14939  r"""
14940  get_value(ScriptProvenance self, FloatKey a0) -> IMP::Float
14941  get_value(ScriptProvenance self, IntKey a0) -> IMP::Int
14942  get_value(ScriptProvenance self, FloatsKey a0) -> IMP::Floats
14943  get_value(ScriptProvenance self, IntsKey a0) -> IMP::Ints
14944  get_value(ScriptProvenance self, StringKey a0) -> IMP::String
14945  get_value(ScriptProvenance self, ParticleIndexKey a0) -> Particle
14946  get_value(ScriptProvenance self, ObjectKey a0) -> Object
14947  get_value(ScriptProvenance self, SparseFloatKey a0) -> IMP::Float
14948  get_value(ScriptProvenance self, SparseIntKey a0) -> IMP::Int
14949  get_value(ScriptProvenance self, SparseStringKey a0) -> IMP::String
14950  get_value(ScriptProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14951  """
14952  return _IMP_core.ScriptProvenance_get_value(self, *args)
14953 
14954  def set_value(self, *args):
14955  r"""
14956  set_value(ScriptProvenance self, FloatKey a0, IMP::Float a1)
14957  set_value(ScriptProvenance self, IntKey a0, IMP::Int a1)
14958  set_value(ScriptProvenance self, FloatsKey a0, IMP::Floats a1)
14959  set_value(ScriptProvenance self, IntsKey a0, IMP::Ints a1)
14960  set_value(ScriptProvenance self, StringKey a0, IMP::String a1)
14961  set_value(ScriptProvenance self, ParticleIndexKey a0, Particle a1)
14962  set_value(ScriptProvenance self, ObjectKey a0, Object a1)
14963  set_value(ScriptProvenance self, SparseFloatKey a0, IMP::Float a1)
14964  set_value(ScriptProvenance self, SparseIntKey a0, IMP::Int a1)
14965  set_value(ScriptProvenance self, SparseStringKey a0, IMP::String a1)
14966  set_value(ScriptProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14967  """
14968  return _IMP_core.ScriptProvenance_set_value(self, *args)
14969 
14970  def remove_attribute(self, *args):
14971  r"""
14972  remove_attribute(ScriptProvenance self, FloatKey a0)
14973  remove_attribute(ScriptProvenance self, IntKey a0)
14974  remove_attribute(ScriptProvenance self, FloatsKey a0)
14975  remove_attribute(ScriptProvenance self, IntsKey a0)
14976  remove_attribute(ScriptProvenance self, StringKey a0)
14977  remove_attribute(ScriptProvenance self, ParticleIndexKey a0)
14978  remove_attribute(ScriptProvenance self, ObjectKey a0)
14979  remove_attribute(ScriptProvenance self, SparseFloatKey a0)
14980  remove_attribute(ScriptProvenance self, SparseIntKey a0)
14981  remove_attribute(ScriptProvenance self, SparseStringKey a0)
14982  remove_attribute(ScriptProvenance self, SparseParticleIndexKey a0)
14983  """
14984  return _IMP_core.ScriptProvenance_remove_attribute(self, *args)
14985 
14986  def has_attribute(self, *args):
14987  r"""
14988  has_attribute(ScriptProvenance self, FloatKey a0) -> bool
14989  has_attribute(ScriptProvenance self, IntKey a0) -> bool
14990  has_attribute(ScriptProvenance self, FloatsKey a0) -> bool
14991  has_attribute(ScriptProvenance self, IntsKey a0) -> bool
14992  has_attribute(ScriptProvenance self, StringKey a0) -> bool
14993  has_attribute(ScriptProvenance self, ParticleIndexKey a0) -> bool
14994  has_attribute(ScriptProvenance self, ObjectKey a0) -> bool
14995  has_attribute(ScriptProvenance self, SparseFloatKey a0) -> bool
14996  has_attribute(ScriptProvenance self, SparseIntKey a0) -> bool
14997  has_attribute(ScriptProvenance self, SparseStringKey a0) -> bool
14998  has_attribute(ScriptProvenance self, SparseParticleIndexKey a0) -> bool
14999  """
15000  return _IMP_core.ScriptProvenance_has_attribute(self, *args)
15001 
15002  def get_derivative(self, a0):
15003  r"""get_derivative(ScriptProvenance self, FloatKey a0) -> double"""
15004  return _IMP_core.ScriptProvenance_get_derivative(self, a0)
15005 
15006  def get_name(self):
15007  r"""get_name(ScriptProvenance self) -> std::string"""
15008  return _IMP_core.ScriptProvenance_get_name(self)
15009 
15010  def clear_caches(self):
15011  r"""clear_caches(ScriptProvenance self)"""
15012  return _IMP_core.ScriptProvenance_clear_caches(self)
15013 
15014  def set_name(self, a0):
15015  r"""set_name(ScriptProvenance self, std::string a0)"""
15016  return _IMP_core.ScriptProvenance_set_name(self, a0)
15017 
15018  def set_check_level(self, a0):
15019  r"""set_check_level(ScriptProvenance self, IMP::CheckLevel a0)"""
15020  return _IMP_core.ScriptProvenance_set_check_level(self, a0)
15021 
15022  def add_to_derivative(self, a0, a1, a2):
15023  r"""add_to_derivative(ScriptProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15024  return _IMP_core.ScriptProvenance_add_to_derivative(self, a0, a1, a2)
15025 
15026  def set_is_optimized(self, a0, a1):
15027  r"""set_is_optimized(ScriptProvenance self, FloatKey a0, bool a1)"""
15028  return _IMP_core.ScriptProvenance_set_is_optimized(self, a0, a1)
15029 
15030  def get_is_optimized(self, a0):
15031  r"""get_is_optimized(ScriptProvenance self, FloatKey a0) -> bool"""
15032  return _IMP_core.ScriptProvenance_get_is_optimized(self, a0)
15033 
15034  def get_check_level(self):
15035  r"""get_check_level(ScriptProvenance self) -> IMP::CheckLevel"""
15036  return _IMP_core.ScriptProvenance_get_check_level(self)
15037 
15038  def __eq__(self, *args):
15039  r"""
15040  __eq__(ScriptProvenance self, ScriptProvenance o) -> bool
15041  __eq__(ScriptProvenance self, Particle d) -> bool
15042  """
15043  return _IMP_core.ScriptProvenance___eq__(self, *args)
15044 
15045  def __ne__(self, *args):
15046  r"""
15047  __ne__(ScriptProvenance self, ScriptProvenance o) -> bool
15048  __ne__(ScriptProvenance self, Particle d) -> bool
15049  """
15050  return _IMP_core.ScriptProvenance___ne__(self, *args)
15051 
15052  def __le__(self, *args):
15053  r"""
15054  __le__(ScriptProvenance self, ScriptProvenance o) -> bool
15055  __le__(ScriptProvenance self, Particle d) -> bool
15056  """
15057  return _IMP_core.ScriptProvenance___le__(self, *args)
15058 
15059  def __lt__(self, *args):
15060  r"""
15061  __lt__(ScriptProvenance self, ScriptProvenance o) -> bool
15062  __lt__(ScriptProvenance self, Particle d) -> bool
15063  """
15064  return _IMP_core.ScriptProvenance___lt__(self, *args)
15065 
15066  def __ge__(self, *args):
15067  r"""
15068  __ge__(ScriptProvenance self, ScriptProvenance o) -> bool
15069  __ge__(ScriptProvenance self, Particle d) -> bool
15070  """
15071  return _IMP_core.ScriptProvenance___ge__(self, *args)
15072 
15073  def __gt__(self, *args):
15074  r"""
15075  __gt__(ScriptProvenance self, ScriptProvenance o) -> bool
15076  __gt__(ScriptProvenance self, Particle d) -> bool
15077  """
15078  return _IMP_core.ScriptProvenance___gt__(self, *args)
15079 
15080  def __hash__(self):
15081  r"""__hash__(ScriptProvenance self) -> std::size_t"""
15082  return _IMP_core.ScriptProvenance___hash__(self)
15083 
15084  def __str__(self):
15085  r"""__str__(ScriptProvenance self) -> std::string"""
15086  return _IMP_core.ScriptProvenance___str__(self)
15087 
15088  def __repr__(self):
15089  r"""__repr__(ScriptProvenance self) -> std::string"""
15090  return _IMP_core.ScriptProvenance___repr__(self)
15091 
15092  def _get_as_binary(self):
15093  r"""_get_as_binary(ScriptProvenance self) -> PyObject *"""
15094  return _IMP_core.ScriptProvenance__get_as_binary(self)
15095 
15096  def _set_from_binary(self, p):
15097  r"""_set_from_binary(ScriptProvenance self, PyObject * p)"""
15098  return _IMP_core.ScriptProvenance__set_from_binary(self, p)
15099 
15100  def __getstate__(self):
15101  p = self._get_as_binary()
15102  if len(self.__dict__) > 1:
15103  d = self.__dict__.copy()
15104  del d['this']
15105  p = (d, p)
15106  return p
15107 
15108  def __setstate__(self, p):
15109  if not hasattr(self, 'this'):
15110  self.__init__()
15111  if isinstance(p, tuple):
15112  d, p = p
15113  self.__dict__.update(d)
15114  return self._set_from_binary(p)
15115 
15116  __swig_destroy__ = _IMP_core.delete_ScriptProvenance
15117 
15118 # Register ScriptProvenance in _IMP_core:
15119 _IMP_core.ScriptProvenance_swigregister(ScriptProvenance)
15120 class SoftwareProvenance(Provenance):
15121  r"""Proxy of C++ IMP::core::SoftwareProvenance class."""
15122 
15123  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15124 
15125  def set_software_name(self, name):
15126  r"""set_software_name(SoftwareProvenance self, std::string name)"""
15127  return _IMP_core.SoftwareProvenance_set_software_name(self, name)
15128 
15129  def get_software_name(self):
15130  r"""get_software_name(SoftwareProvenance self) -> std::string"""
15131  return _IMP_core.SoftwareProvenance_get_software_name(self)
15132 
15133  def set_version(self, version):
15134  r"""set_version(SoftwareProvenance self, std::string version)"""
15135  return _IMP_core.SoftwareProvenance_set_version(self, version)
15136 
15137  def get_version(self):
15138  r"""get_version(SoftwareProvenance self) -> std::string"""
15139  return _IMP_core.SoftwareProvenance_get_version(self)
15140 
15141  def set_location(self, location):
15142  r"""set_location(SoftwareProvenance self, std::string location)"""
15143  return _IMP_core.SoftwareProvenance_set_location(self, location)
15144 
15145  def get_location(self):
15146  r"""get_location(SoftwareProvenance self) -> std::string"""
15147  return _IMP_core.SoftwareProvenance_get_location(self)
15148 
15149  def __init__(self, *args):
15150  r"""
15151  __init__(SoftwareProvenance self) -> SoftwareProvenance
15152  __init__(SoftwareProvenance self, Model m, ParticleIndex id) -> SoftwareProvenance
15153  __init__(SoftwareProvenance self, _ParticleAdaptor d) -> SoftwareProvenance
15154  """
15155  _IMP_core.SoftwareProvenance_swiginit(self, _IMP_core.new_SoftwareProvenance(*args))
15156 
15157  @staticmethod
15158  def get_is_setup(*args):
15159  r"""
15160  get_is_setup(Model m, ParticleIndex pi) -> bool
15161  get_is_setup(_ParticleAdaptor p) -> bool
15162  """
15163  return _IMP_core.SoftwareProvenance_get_is_setup(*args)
15164 
15165  def show(self, *args):
15166  r"""show(SoftwareProvenance self, _ostream out=std::cout)"""
15167  return _IMP_core.SoftwareProvenance_show(self, *args)
15168 
15169  @staticmethod
15170  def setup_particle(*args):
15171  r"""
15172  setup_particle(Model m, ParticleIndex pi, std::string name, std::string version, std::string location) -> SoftwareProvenance
15173  setup_particle(_ParticleAdaptor pa, std::string name, std::string version, std::string location) -> SoftwareProvenance
15174  setup_particle(Model m, ParticleIndex pi, SoftwareProvenance o) -> SoftwareProvenance
15175  setup_particle(_ParticleAdaptor pa, SoftwareProvenance o) -> SoftwareProvenance
15176  """
15177  return _IMP_core.SoftwareProvenance_setup_particle(*args)
15178 
15179  def add_attribute(self, *args):
15180  r"""
15181  add_attribute(SoftwareProvenance self, FloatKey k, IMP::Float v, bool opt)
15182  add_attribute(SoftwareProvenance self, FloatKey a0, IMP::Float a1)
15183  add_attribute(SoftwareProvenance self, IntKey a0, IMP::Int a1)
15184  add_attribute(SoftwareProvenance self, FloatsKey a0, IMP::Floats a1)
15185  add_attribute(SoftwareProvenance self, IntsKey a0, IMP::Ints a1)
15186  add_attribute(SoftwareProvenance self, StringKey a0, IMP::String a1)
15187  add_attribute(SoftwareProvenance self, ParticleIndexKey a0, Particle a1)
15188  add_attribute(SoftwareProvenance self, ObjectKey a0, Object a1)
15189  add_attribute(SoftwareProvenance self, SparseFloatKey a0, IMP::Float a1)
15190  add_attribute(SoftwareProvenance self, SparseIntKey a0, IMP::Int a1)
15191  add_attribute(SoftwareProvenance self, SparseStringKey a0, IMP::String a1)
15192  add_attribute(SoftwareProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
15193  """
15194  return _IMP_core.SoftwareProvenance_add_attribute(self, *args)
15195 
15196  def get_value(self, *args):
15197  r"""
15198  get_value(SoftwareProvenance self, FloatKey a0) -> IMP::Float
15199  get_value(SoftwareProvenance self, IntKey a0) -> IMP::Int
15200  get_value(SoftwareProvenance self, FloatsKey a0) -> IMP::Floats
15201  get_value(SoftwareProvenance self, IntsKey a0) -> IMP::Ints
15202  get_value(SoftwareProvenance self, StringKey a0) -> IMP::String
15203  get_value(SoftwareProvenance self, ParticleIndexKey a0) -> Particle
15204  get_value(SoftwareProvenance self, ObjectKey a0) -> Object
15205  get_value(SoftwareProvenance self, SparseFloatKey a0) -> IMP::Float
15206  get_value(SoftwareProvenance self, SparseIntKey a0) -> IMP::Int
15207  get_value(SoftwareProvenance self, SparseStringKey a0) -> IMP::String
15208  get_value(SoftwareProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
15209  """
15210  return _IMP_core.SoftwareProvenance_get_value(self, *args)
15211 
15212  def set_value(self, *args):
15213  r"""
15214  set_value(SoftwareProvenance self, FloatKey a0, IMP::Float a1)
15215  set_value(SoftwareProvenance self, IntKey a0, IMP::Int a1)
15216  set_value(SoftwareProvenance self, FloatsKey a0, IMP::Floats a1)
15217  set_value(SoftwareProvenance self, IntsKey a0, IMP::Ints a1)
15218  set_value(SoftwareProvenance self, StringKey a0, IMP::String a1)
15219  set_value(SoftwareProvenance self, ParticleIndexKey a0, Particle a1)
15220  set_value(SoftwareProvenance self, ObjectKey a0, Object a1)
15221  set_value(SoftwareProvenance self, SparseFloatKey a0, IMP::Float a1)
15222  set_value(SoftwareProvenance self, SparseIntKey a0, IMP::Int a1)
15223  set_value(SoftwareProvenance self, SparseStringKey a0, IMP::String a1)
15224  set_value(SoftwareProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
15225  """
15226  return _IMP_core.SoftwareProvenance_set_value(self, *args)
15227 
15228  def remove_attribute(self, *args):
15229  r"""
15230  remove_attribute(SoftwareProvenance self, FloatKey a0)
15231  remove_attribute(SoftwareProvenance self, IntKey a0)
15232  remove_attribute(SoftwareProvenance self, FloatsKey a0)
15233  remove_attribute(SoftwareProvenance self, IntsKey a0)
15234  remove_attribute(SoftwareProvenance self, StringKey a0)
15235  remove_attribute(SoftwareProvenance self, ParticleIndexKey a0)
15236  remove_attribute(SoftwareProvenance self, ObjectKey a0)
15237  remove_attribute(SoftwareProvenance self, SparseFloatKey a0)
15238  remove_attribute(SoftwareProvenance self, SparseIntKey a0)
15239  remove_attribute(SoftwareProvenance self, SparseStringKey a0)
15240  remove_attribute(SoftwareProvenance self, SparseParticleIndexKey a0)
15241  """
15242  return _IMP_core.SoftwareProvenance_remove_attribute(self, *args)
15243 
15244  def has_attribute(self, *args):
15245  r"""
15246  has_attribute(SoftwareProvenance self, FloatKey a0) -> bool
15247  has_attribute(SoftwareProvenance self, IntKey a0) -> bool
15248  has_attribute(SoftwareProvenance self, FloatsKey a0) -> bool
15249  has_attribute(SoftwareProvenance self, IntsKey a0) -> bool
15250  has_attribute(SoftwareProvenance self, StringKey a0) -> bool
15251  has_attribute(SoftwareProvenance self, ParticleIndexKey a0) -> bool
15252  has_attribute(SoftwareProvenance self, ObjectKey a0) -> bool
15253  has_attribute(SoftwareProvenance self, SparseFloatKey a0) -> bool
15254  has_attribute(SoftwareProvenance self, SparseIntKey a0) -> bool
15255  has_attribute(SoftwareProvenance self, SparseStringKey a0) -> bool
15256  has_attribute(SoftwareProvenance self, SparseParticleIndexKey a0) -> bool
15257  """
15258  return _IMP_core.SoftwareProvenance_has_attribute(self, *args)
15259 
15260  def get_derivative(self, a0):
15261  r"""get_derivative(SoftwareProvenance self, FloatKey a0) -> double"""
15262  return _IMP_core.SoftwareProvenance_get_derivative(self, a0)
15263 
15264  def get_name(self):
15265  r"""get_name(SoftwareProvenance self) -> std::string"""
15266  return _IMP_core.SoftwareProvenance_get_name(self)
15267 
15268  def clear_caches(self):
15269  r"""clear_caches(SoftwareProvenance self)"""
15270  return _IMP_core.SoftwareProvenance_clear_caches(self)
15271 
15272  def set_name(self, a0):
15273  r"""set_name(SoftwareProvenance self, std::string a0)"""
15274  return _IMP_core.SoftwareProvenance_set_name(self, a0)
15275 
15276  def set_check_level(self, a0):
15277  r"""set_check_level(SoftwareProvenance self, IMP::CheckLevel a0)"""
15278  return _IMP_core.SoftwareProvenance_set_check_level(self, a0)
15279 
15280  def add_to_derivative(self, a0, a1, a2):
15281  r"""add_to_derivative(SoftwareProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15282  return _IMP_core.SoftwareProvenance_add_to_derivative(self, a0, a1, a2)
15283 
15284  def set_is_optimized(self, a0, a1):
15285  r"""set_is_optimized(SoftwareProvenance self, FloatKey a0, bool a1)"""
15286  return _IMP_core.SoftwareProvenance_set_is_optimized(self, a0, a1)
15287 
15288  def get_is_optimized(self, a0):
15289  r"""get_is_optimized(SoftwareProvenance self, FloatKey a0) -> bool"""
15290  return _IMP_core.SoftwareProvenance_get_is_optimized(self, a0)
15291 
15292  def get_check_level(self):
15293  r"""get_check_level(SoftwareProvenance self) -> IMP::CheckLevel"""
15294  return _IMP_core.SoftwareProvenance_get_check_level(self)
15295 
15296  def __eq__(self, *args):
15297  r"""
15298  __eq__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15299  __eq__(SoftwareProvenance self, Particle d) -> bool
15300  """
15301  return _IMP_core.SoftwareProvenance___eq__(self, *args)
15302 
15303  def __ne__(self, *args):
15304  r"""
15305  __ne__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15306  __ne__(SoftwareProvenance self, Particle d) -> bool
15307  """
15308  return _IMP_core.SoftwareProvenance___ne__(self, *args)
15309 
15310  def __le__(self, *args):
15311  r"""
15312  __le__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15313  __le__(SoftwareProvenance self, Particle d) -> bool
15314  """
15315  return _IMP_core.SoftwareProvenance___le__(self, *args)
15316 
15317  def __lt__(self, *args):
15318  r"""
15319  __lt__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15320  __lt__(SoftwareProvenance self, Particle d) -> bool
15321  """
15322  return _IMP_core.SoftwareProvenance___lt__(self, *args)
15323 
15324  def __ge__(self, *args):
15325  r"""
15326  __ge__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15327  __ge__(SoftwareProvenance self, Particle d) -> bool
15328  """
15329  return _IMP_core.SoftwareProvenance___ge__(self, *args)
15330 
15331  def __gt__(self, *args):
15332  r"""
15333  __gt__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15334  __gt__(SoftwareProvenance self, Particle d) -> bool
15335  """
15336  return _IMP_core.SoftwareProvenance___gt__(self, *args)
15337 
15338  def __hash__(self):
15339  r"""__hash__(SoftwareProvenance self) -> std::size_t"""
15340  return _IMP_core.SoftwareProvenance___hash__(self)
15341 
15342  def __str__(self):
15343  r"""__str__(SoftwareProvenance self) -> std::string"""
15344  return _IMP_core.SoftwareProvenance___str__(self)
15345 
15346  def __repr__(self):
15347  r"""__repr__(SoftwareProvenance self) -> std::string"""
15348  return _IMP_core.SoftwareProvenance___repr__(self)
15349 
15350  def _get_as_binary(self):
15351  r"""_get_as_binary(SoftwareProvenance self) -> PyObject *"""
15352  return _IMP_core.SoftwareProvenance__get_as_binary(self)
15353 
15354  def _set_from_binary(self, p):
15355  r"""_set_from_binary(SoftwareProvenance self, PyObject * p)"""
15356  return _IMP_core.SoftwareProvenance__set_from_binary(self, p)
15357 
15358  def __getstate__(self):
15359  p = self._get_as_binary()
15360  if len(self.__dict__) > 1:
15361  d = self.__dict__.copy()
15362  del d['this']
15363  p = (d, p)
15364  return p
15365 
15366  def __setstate__(self, p):
15367  if not hasattr(self, 'this'):
15368  self.__init__()
15369  if isinstance(p, tuple):
15370  d, p = p
15371  self.__dict__.update(d)
15372  return self._set_from_binary(p)
15373 
15374  __swig_destroy__ = _IMP_core.delete_SoftwareProvenance
15375 
15376 # Register SoftwareProvenance in _IMP_core:
15377 _IMP_core.SoftwareProvenance_swigregister(SoftwareProvenance)
15378 class Provenanced(IMP.Decorator):
15379  r"""Proxy of C++ IMP::core::Provenanced class."""
15380 
15381  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15382 
15383  def get_provenance(self):
15384  r"""get_provenance(Provenanced self) -> Provenance"""
15385  return _IMP_core.Provenanced_get_provenance(self)
15386 
15387  def set_provenance(self, p):
15388  r"""set_provenance(Provenanced self, Provenance p)"""
15389  return _IMP_core.Provenanced_set_provenance(self, p)
15390 
15391  def __init__(self, *args):
15392  r"""
15393  __init__(Provenanced self) -> Provenanced
15394  __init__(Provenanced self, Model m, ParticleIndex id) -> Provenanced
15395  __init__(Provenanced self, _ParticleAdaptor d) -> Provenanced
15396  """
15397  _IMP_core.Provenanced_swiginit(self, _IMP_core.new_Provenanced(*args))
15398 
15399  @staticmethod
15400  def get_is_setup(*args):
15401  r"""
15402  get_is_setup(Model m, ParticleIndex pi) -> bool
15403  get_is_setup(_ParticleAdaptor p) -> bool
15404  """
15405  return _IMP_core.Provenanced_get_is_setup(*args)
15406 
15407  def show(self, *args):
15408  r"""show(Provenanced self, _ostream out=std::cout)"""
15409  return _IMP_core.Provenanced_show(self, *args)
15410 
15411  @staticmethod
15412  def setup_particle(*args):
15413  r"""
15414  setup_particle(Model m, ParticleIndex pi, Provenance p) -> Provenanced
15415  setup_particle(_ParticleAdaptor pa, Provenance p) -> Provenanced
15416  """
15417  return _IMP_core.Provenanced_setup_particle(*args)
15418 
15419  def add_attribute(self, *args):
15420  r"""
15421  add_attribute(Provenanced self, FloatKey k, IMP::Float v, bool opt)
15422  add_attribute(Provenanced self, FloatKey a0, IMP::Float a1)
15423  add_attribute(Provenanced self, IntKey a0, IMP::Int a1)
15424  add_attribute(Provenanced self, FloatsKey a0, IMP::Floats a1)
15425  add_attribute(Provenanced self, IntsKey a0, IMP::Ints a1)
15426  add_attribute(Provenanced self, StringKey a0, IMP::String a1)
15427  add_attribute(Provenanced self, ParticleIndexKey a0, Particle a1)
15428  add_attribute(Provenanced self, ObjectKey a0, Object a1)
15429  add_attribute(Provenanced self, SparseFloatKey a0, IMP::Float a1)
15430  add_attribute(Provenanced self, SparseIntKey a0, IMP::Int a1)
15431  add_attribute(Provenanced self, SparseStringKey a0, IMP::String a1)
15432  add_attribute(Provenanced self, SparseParticleIndexKey a0, ParticleIndex a1)
15433  """
15434  return _IMP_core.Provenanced_add_attribute(self, *args)
15435 
15436  def get_value(self, *args):
15437  r"""
15438  get_value(Provenanced self, FloatKey a0) -> IMP::Float
15439  get_value(Provenanced self, IntKey a0) -> IMP::Int
15440  get_value(Provenanced self, FloatsKey a0) -> IMP::Floats
15441  get_value(Provenanced self, IntsKey a0) -> IMP::Ints
15442  get_value(Provenanced self, StringKey a0) -> IMP::String
15443  get_value(Provenanced self, ParticleIndexKey a0) -> Particle
15444  get_value(Provenanced self, ObjectKey a0) -> Object
15445  get_value(Provenanced self, SparseFloatKey a0) -> IMP::Float
15446  get_value(Provenanced self, SparseIntKey a0) -> IMP::Int
15447  get_value(Provenanced self, SparseStringKey a0) -> IMP::String
15448  get_value(Provenanced self, SparseParticleIndexKey a0) -> ParticleIndex
15449  """
15450  return _IMP_core.Provenanced_get_value(self, *args)
15451 
15452  def set_value(self, *args):
15453  r"""
15454  set_value(Provenanced self, FloatKey a0, IMP::Float a1)
15455  set_value(Provenanced self, IntKey a0, IMP::Int a1)
15456  set_value(Provenanced self, FloatsKey a0, IMP::Floats a1)
15457  set_value(Provenanced self, IntsKey a0, IMP::Ints a1)
15458  set_value(Provenanced self, StringKey a0, IMP::String a1)
15459  set_value(Provenanced self, ParticleIndexKey a0, Particle a1)
15460  set_value(Provenanced self, ObjectKey a0, Object a1)
15461  set_value(Provenanced self, SparseFloatKey a0, IMP::Float a1)
15462  set_value(Provenanced self, SparseIntKey a0, IMP::Int a1)
15463  set_value(Provenanced self, SparseStringKey a0, IMP::String a1)
15464  set_value(Provenanced self, SparseParticleIndexKey a0, ParticleIndex a1)
15465  """
15466  return _IMP_core.Provenanced_set_value(self, *args)
15467 
15468  def remove_attribute(self, *args):
15469  r"""
15470  remove_attribute(Provenanced self, FloatKey a0)
15471  remove_attribute(Provenanced self, IntKey a0)
15472  remove_attribute(Provenanced self, FloatsKey a0)
15473  remove_attribute(Provenanced self, IntsKey a0)
15474  remove_attribute(Provenanced self, StringKey a0)
15475  remove_attribute(Provenanced self, ParticleIndexKey a0)
15476  remove_attribute(Provenanced self, ObjectKey a0)
15477  remove_attribute(Provenanced self, SparseFloatKey a0)
15478  remove_attribute(Provenanced self, SparseIntKey a0)
15479  remove_attribute(Provenanced self, SparseStringKey a0)
15480  remove_attribute(Provenanced self, SparseParticleIndexKey a0)
15481  """
15482  return _IMP_core.Provenanced_remove_attribute(self, *args)
15483 
15484  def has_attribute(self, *args):
15485  r"""
15486  has_attribute(Provenanced self, FloatKey a0) -> bool
15487  has_attribute(Provenanced self, IntKey a0) -> bool
15488  has_attribute(Provenanced self, FloatsKey a0) -> bool
15489  has_attribute(Provenanced self, IntsKey a0) -> bool
15490  has_attribute(Provenanced self, StringKey a0) -> bool
15491  has_attribute(Provenanced self, ParticleIndexKey a0) -> bool
15492  has_attribute(Provenanced self, ObjectKey a0) -> bool
15493  has_attribute(Provenanced self, SparseFloatKey a0) -> bool
15494  has_attribute(Provenanced self, SparseIntKey a0) -> bool
15495  has_attribute(Provenanced self, SparseStringKey a0) -> bool
15496  has_attribute(Provenanced self, SparseParticleIndexKey a0) -> bool
15497  """
15498  return _IMP_core.Provenanced_has_attribute(self, *args)
15499 
15500  def get_derivative(self, a0):
15501  r"""get_derivative(Provenanced self, FloatKey a0) -> double"""
15502  return _IMP_core.Provenanced_get_derivative(self, a0)
15503 
15504  def get_name(self):
15505  r"""get_name(Provenanced self) -> std::string"""
15506  return _IMP_core.Provenanced_get_name(self)
15507 
15508  def clear_caches(self):
15509  r"""clear_caches(Provenanced self)"""
15510  return _IMP_core.Provenanced_clear_caches(self)
15511 
15512  def set_name(self, a0):
15513  r"""set_name(Provenanced self, std::string a0)"""
15514  return _IMP_core.Provenanced_set_name(self, a0)
15515 
15516  def set_check_level(self, a0):
15517  r"""set_check_level(Provenanced self, IMP::CheckLevel a0)"""
15518  return _IMP_core.Provenanced_set_check_level(self, a0)
15519 
15520  def add_to_derivative(self, a0, a1, a2):
15521  r"""add_to_derivative(Provenanced self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15522  return _IMP_core.Provenanced_add_to_derivative(self, a0, a1, a2)
15523 
15524  def set_is_optimized(self, a0, a1):
15525  r"""set_is_optimized(Provenanced self, FloatKey a0, bool a1)"""
15526  return _IMP_core.Provenanced_set_is_optimized(self, a0, a1)
15527 
15528  def get_is_optimized(self, a0):
15529  r"""get_is_optimized(Provenanced self, FloatKey a0) -> bool"""
15530  return _IMP_core.Provenanced_get_is_optimized(self, a0)
15531 
15532  def get_check_level(self):
15533  r"""get_check_level(Provenanced self) -> IMP::CheckLevel"""
15534  return _IMP_core.Provenanced_get_check_level(self)
15535 
15536  def __eq__(self, *args):
15537  r"""
15538  __eq__(Provenanced self, Provenanced o) -> bool
15539  __eq__(Provenanced self, Particle d) -> bool
15540  """
15541  return _IMP_core.Provenanced___eq__(self, *args)
15542 
15543  def __ne__(self, *args):
15544  r"""
15545  __ne__(Provenanced self, Provenanced o) -> bool
15546  __ne__(Provenanced self, Particle d) -> bool
15547  """
15548  return _IMP_core.Provenanced___ne__(self, *args)
15549 
15550  def __le__(self, *args):
15551  r"""
15552  __le__(Provenanced self, Provenanced o) -> bool
15553  __le__(Provenanced self, Particle d) -> bool
15554  """
15555  return _IMP_core.Provenanced___le__(self, *args)
15556 
15557  def __lt__(self, *args):
15558  r"""
15559  __lt__(Provenanced self, Provenanced o) -> bool
15560  __lt__(Provenanced self, Particle d) -> bool
15561  """
15562  return _IMP_core.Provenanced___lt__(self, *args)
15563 
15564  def __ge__(self, *args):
15565  r"""
15566  __ge__(Provenanced self, Provenanced o) -> bool
15567  __ge__(Provenanced self, Particle d) -> bool
15568  """
15569  return _IMP_core.Provenanced___ge__(self, *args)
15570 
15571  def __gt__(self, *args):
15572  r"""
15573  __gt__(Provenanced self, Provenanced o) -> bool
15574  __gt__(Provenanced self, Particle d) -> bool
15575  """
15576  return _IMP_core.Provenanced___gt__(self, *args)
15577 
15578  def __hash__(self):
15579  r"""__hash__(Provenanced self) -> std::size_t"""
15580  return _IMP_core.Provenanced___hash__(self)
15581 
15582  def __str__(self):
15583  r"""__str__(Provenanced self) -> std::string"""
15584  return _IMP_core.Provenanced___str__(self)
15585 
15586  def __repr__(self):
15587  r"""__repr__(Provenanced self) -> std::string"""
15588  return _IMP_core.Provenanced___repr__(self)
15589 
15590  def _get_as_binary(self):
15591  r"""_get_as_binary(Provenanced self) -> PyObject *"""
15592  return _IMP_core.Provenanced__get_as_binary(self)
15593 
15594  def _set_from_binary(self, p):
15595  r"""_set_from_binary(Provenanced self, PyObject * p)"""
15596  return _IMP_core.Provenanced__set_from_binary(self, p)
15597 
15598  def __getstate__(self):
15599  p = self._get_as_binary()
15600  if len(self.__dict__) > 1:
15601  d = self.__dict__.copy()
15602  del d['this']
15603  p = (d, p)
15604  return p
15605 
15606  def __setstate__(self, p):
15607  if not hasattr(self, 'this'):
15608  self.__init__()
15609  if isinstance(p, tuple):
15610  d, p = p
15611  self.__dict__.update(d)
15612  return self._set_from_binary(p)
15613 
15614  __swig_destroy__ = _IMP_core.delete_Provenanced
15615 
15616 # Register Provenanced in _IMP_core:
15617 _IMP_core.Provenanced_swigregister(Provenanced)
15618 
15619 def add_provenance(m, pi, p):
15620  r"""add_provenance(Model m, ParticleIndex pi, Provenance p)"""
15621  return _IMP_core.add_provenance(m, pi, p)
15622 
15623 def create_clone(p):
15624  r"""create_clone(Provenance p) -> Provenance"""
15625  return _IMP_core.create_clone(p)
15626 
15628  r"""
15629  get_transformation_aligning_first_to_second(IMP::ParticlesTemp const & a, IMP::ParticlesTemp const & b) -> Transformation3D
15630  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
15631  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
15632  """
15633  return _IMP_core.get_transformation_aligning_first_to_second(*args)
15634 
15635 def create_restraint(ps, pp):
15636  r"""create_restraint(PairScore ps, IMP::ParticlePair pp) -> Restraint"""
15637  return _IMP_core.create_restraint(ps, pp)
15639  r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::LOWER > 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__(TruncatedHarmonicLowerBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicLowerBound
15646  __init__(TruncatedHarmonicLowerBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicLowerBound
15647  """
15648  _IMP_core.TruncatedHarmonicLowerBound_swiginit(self, _IMP_core.new_TruncatedHarmonicLowerBound(*args))
15649 
15650  def get_version_info(self):
15651  r"""get_version_info(TruncatedHarmonicLowerBound self) -> VersionInfo"""
15652  return _IMP_core.TruncatedHarmonicLowerBound_get_version_info(self)
15653  __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicLowerBound
15654 
15655  def __str__(self):
15656  r"""__str__(TruncatedHarmonicLowerBound self) -> std::string"""
15657  return _IMP_core.TruncatedHarmonicLowerBound___str__(self)
15658 
15659  def __repr__(self):
15660  r"""__repr__(TruncatedHarmonicLowerBound self) -> std::string"""
15661  return _IMP_core.TruncatedHarmonicLowerBound___repr__(self)
15662 
15663  @staticmethod
15664  def get_from(o):
15665  return _object_cast_to_TruncatedHarmonic(o)
15666 
15667 
15668 # Register TruncatedHarmonicLowerBound in _IMP_core:
15669 _IMP_core.TruncatedHarmonicLowerBound_swigregister(TruncatedHarmonicLowerBound)
15671  r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::UPPER > 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__(TruncatedHarmonicUpperBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicUpperBound
15678  __init__(TruncatedHarmonicUpperBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicUpperBound
15679  """
15680  _IMP_core.TruncatedHarmonicUpperBound_swiginit(self, _IMP_core.new_TruncatedHarmonicUpperBound(*args))
15681 
15682  def get_version_info(self):
15683  r"""get_version_info(TruncatedHarmonicUpperBound self) -> VersionInfo"""
15684  return _IMP_core.TruncatedHarmonicUpperBound_get_version_info(self)
15685  __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicUpperBound
15686 
15687  def __str__(self):
15688  r"""__str__(TruncatedHarmonicUpperBound self) -> std::string"""
15689  return _IMP_core.TruncatedHarmonicUpperBound___str__(self)
15690 
15691  def __repr__(self):
15692  r"""__repr__(TruncatedHarmonicUpperBound self) -> std::string"""
15693  return _IMP_core.TruncatedHarmonicUpperBound___repr__(self)
15694 
15695  @staticmethod
15696  def get_from(o):
15697  return _object_cast_to_TruncatedHarmonic(o)
15698 
15699 
15700 # Register TruncatedHarmonicUpperBound in _IMP_core:
15701 _IMP_core.TruncatedHarmonicUpperBound_swigregister(TruncatedHarmonicUpperBound)
15703  r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::BOTH > 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__(TruncatedHarmonicBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicBound
15710  __init__(TruncatedHarmonicBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicBound
15711  """
15712  _IMP_core.TruncatedHarmonicBound_swiginit(self, _IMP_core.new_TruncatedHarmonicBound(*args))
15713 
15714  def get_version_info(self):
15715  r"""get_version_info(TruncatedHarmonicBound self) -> VersionInfo"""
15716  return _IMP_core.TruncatedHarmonicBound_get_version_info(self)
15717  __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicBound
15718 
15719  def __str__(self):
15720  r"""__str__(TruncatedHarmonicBound self) -> std::string"""
15721  return _IMP_core.TruncatedHarmonicBound___str__(self)
15722 
15723  def __repr__(self):
15724  r"""__repr__(TruncatedHarmonicBound self) -> std::string"""
15725  return _IMP_core.TruncatedHarmonicBound___repr__(self)
15726 
15727  @staticmethod
15728  def get_from(o):
15729  return _object_cast_to_TruncatedHarmonic(o)
15730 
15731 
15732 # Register TruncatedHarmonicBound in _IMP_core:
15733 _IMP_core.TruncatedHarmonicBound_swigregister(TruncatedHarmonicBound)
15734 class ParticleType(IMP._Value):
15735  r"""Proxy of C++ IMP::Key< 34897493 > class."""
15736 
15737  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15738 
15739  def __init__(self, *args):
15740  r"""
15741  __init__(ParticleType self) -> ParticleType
15742  __init__(ParticleType self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleType
15743  __init__(ParticleType self, unsigned int i) -> ParticleType
15744  """
15745  _IMP_core.ParticleType_swiginit(self, _IMP_core.new_ParticleType(*args))
15746 
15747  @staticmethod
15748  def add_key(sc):
15749  r"""add_key(std::string sc) -> unsigned int"""
15750  return _IMP_core.ParticleType_add_key(sc)
15751 
15752  @staticmethod
15753  def get_key_exists(sc):
15754  r"""get_key_exists(std::string sc) -> bool"""
15755  return _IMP_core.ParticleType_get_key_exists(sc)
15756 
15757  def get_string(self):
15758  r"""get_string(ParticleType self) -> std::string const"""
15759  return _IMP_core.ParticleType_get_string(self)
15760 
15761  def __cmp__(self, o):
15762  r"""__cmp__(ParticleType self, ParticleType o) -> int"""
15763  return _IMP_core.ParticleType___cmp__(self, o)
15764 
15765  def __eq__(self, o):
15766  r"""__eq__(ParticleType self, ParticleType o) -> bool"""
15767  return _IMP_core.ParticleType___eq__(self, o)
15768 
15769  def __ne__(self, o):
15770  r"""__ne__(ParticleType self, ParticleType o) -> bool"""
15771  return _IMP_core.ParticleType___ne__(self, o)
15772 
15773  def __lt__(self, o):
15774  r"""__lt__(ParticleType self, ParticleType o) -> bool"""
15775  return _IMP_core.ParticleType___lt__(self, o)
15776 
15777  def __gt__(self, o):
15778  r"""__gt__(ParticleType self, ParticleType o) -> bool"""
15779  return _IMP_core.ParticleType___gt__(self, o)
15780 
15781  def __ge__(self, o):
15782  r"""__ge__(ParticleType self, ParticleType o) -> bool"""
15783  return _IMP_core.ParticleType___ge__(self, o)
15784 
15785  def __le__(self, o):
15786  r"""__le__(ParticleType self, ParticleType o) -> bool"""
15787  return _IMP_core.ParticleType___le__(self, o)
15788 
15789  def __hash__(self):
15790  r"""__hash__(ParticleType self) -> std::size_t"""
15791  return _IMP_core.ParticleType___hash__(self)
15792 
15793  def show(self, *args):
15794  r"""show(ParticleType self, _ostream out=std::cout)"""
15795  return _IMP_core.ParticleType_show(self, *args)
15796 
15797  @staticmethod
15798  def add_alias(old_key, new_name):
15799  r"""add_alias(ParticleType old_key, std::string new_name) -> ParticleType"""
15800  return _IMP_core.ParticleType_add_alias(old_key, new_name)
15801 
15802  @staticmethod
15803  def get_number_of_keys():
15804  r"""get_number_of_keys() -> unsigned int"""
15805  return _IMP_core.ParticleType_get_number_of_keys()
15806 
15807  def get_index(self):
15808  r"""get_index(ParticleType self) -> unsigned int"""
15809  return _IMP_core.ParticleType_get_index(self)
15810 
15811  @staticmethod
15812  def show_all(out):
15813  r"""show_all(_ostream out)"""
15814  return _IMP_core.ParticleType_show_all(out)
15815 
15816  @staticmethod
15817  def get_all_strings():
15818  r"""get_all_strings() -> IMP::Vector< std::string >"""
15819  return _IMP_core.ParticleType_get_all_strings()
15820 
15821  @staticmethod
15822  def get_number_unique():
15823  r"""get_number_unique() -> unsigned int"""
15824  return _IMP_core.ParticleType_get_number_unique()
15825 
15826  def __str__(self):
15827  r"""__str__(ParticleType self) -> std::string"""
15828  return _IMP_core.ParticleType___str__(self)
15829 
15830  def __repr__(self):
15831  r"""__repr__(ParticleType self) -> std::string"""
15832  return _IMP_core.ParticleType___repr__(self)
15833  __swig_destroy__ = _IMP_core.delete_ParticleType
15834 
15835 # Register ParticleType in _IMP_core:
15836 _IMP_core.ParticleType_swigregister(ParticleType)
15838  r"""Proxy of C++ IMP::core::GenericAttributeSingletonScore< UnaryFunction > class."""
15839 
15840  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15841  __repr__ = _swig_repr
15842 
15843  def __init__(self, f, k):
15844  r"""__init__(AttributeSingletonScore self, UnaryFunction f, FloatKey k) -> AttributeSingletonScore"""
15845  _IMP_core.AttributeSingletonScore_swiginit(self, _IMP_core.new_AttributeSingletonScore(f, k))
15846 
15847  def do_get_inputs(self, m, pis):
15848  r"""do_get_inputs(AttributeSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15849  return _IMP_core.AttributeSingletonScore_do_get_inputs(self, m, pis)
15850 
15851  def get_unary_function(self):
15852  r"""get_unary_function(AttributeSingletonScore self) -> UnaryFunction"""
15853  return _IMP_core.AttributeSingletonScore_get_unary_function(self)
15854 
15855  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
15856  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"""
15857  return _IMP_core.AttributeSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
15858 
15859  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
15860  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"""
15861  return _IMP_core.AttributeSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
15862 
15863  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
15864  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"""
15865  return _IMP_core.AttributeSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
15866 
15867  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
15868  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"""
15869  return _IMP_core.AttributeSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
15870 
15871  def get_version_info(self):
15872  r"""get_version_info(AttributeSingletonScore self) -> VersionInfo"""
15873  return _IMP_core.AttributeSingletonScore_get_version_info(self)
15874  __swig_destroy__ = _IMP_core.delete_AttributeSingletonScore
15875 
15876 # Register AttributeSingletonScore in _IMP_core:
15877 _IMP_core.AttributeSingletonScore_swigregister(AttributeSingletonScore)
15878 
15880  r"""create_generic_attribute_singleton_score(UnaryFunction uf, FloatKey k) -> AttributeSingletonScore"""
15881  return _IMP_core.create_generic_attribute_singleton_score(uf, k)
15883  r"""Proxy of C++ IMP::core::GenericBoundingBox3DSingletonScore< UnaryFunction > class."""
15884 
15885  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15886  __repr__ = _swig_repr
15887 
15888  def __init__(self, f, bb):
15889  r"""__init__(BoundingBox3DSingletonScore self, UnaryFunction f, BoundingBox3D bb) -> BoundingBox3DSingletonScore"""
15890  _IMP_core.BoundingBox3DSingletonScore_swiginit(self, _IMP_core.new_BoundingBox3DSingletonScore(f, bb))
15891 
15892  def do_get_inputs(self, m, pis):
15893  r"""do_get_inputs(BoundingBox3DSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15894  return _IMP_core.BoundingBox3DSingletonScore_do_get_inputs(self, m, pis)
15895 
15896  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
15897  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"""
15898  return _IMP_core.BoundingBox3DSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
15899 
15900  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
15901  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"""
15902  return _IMP_core.BoundingBox3DSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
15903 
15904  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
15905  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"""
15906  return _IMP_core.BoundingBox3DSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
15907 
15908  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
15909  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"""
15910  return _IMP_core.BoundingBox3DSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
15911 
15912  def get_version_info(self):
15913  r"""get_version_info(BoundingBox3DSingletonScore self) -> VersionInfo"""
15914  return _IMP_core.BoundingBox3DSingletonScore_get_version_info(self)
15915  __swig_destroy__ = _IMP_core.delete_BoundingBox3DSingletonScore
15916 
15917 # Register BoundingBox3DSingletonScore in _IMP_core:
15918 _IMP_core.BoundingBox3DSingletonScore_swigregister(BoundingBox3DSingletonScore)
15919 
15920 def create_bounding_box_3d_singleton_score(f, bb):
15921  r"""create_bounding_box_3d_singleton_score(UnaryFunction f, BoundingBox3D bb) -> BoundingBox3DSingletonScore"""
15922  return _IMP_core.create_bounding_box_3d_singleton_score(f, bb)
15924  r"""Proxy of C++ IMP::core::GenericBoundingSphere3DSingletonScore< UnaryFunction > class."""
15925 
15926  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15927  __repr__ = _swig_repr
15928 
15929  def __init__(self, f, sphere):
15930  r"""__init__(BoundingSphere3DSingletonScore self, UnaryFunction f, Sphere3D sphere) -> BoundingSphere3DSingletonScore"""
15931  _IMP_core.BoundingSphere3DSingletonScore_swiginit(self, _IMP_core.new_BoundingSphere3DSingletonScore(f, sphere))
15932 
15933  def do_get_inputs(self, m, pis):
15934  r"""do_get_inputs(BoundingSphere3DSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15935  return _IMP_core.BoundingSphere3DSingletonScore_do_get_inputs(self, m, pis)
15936 
15937  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
15938  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"""
15939  return _IMP_core.BoundingSphere3DSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
15940 
15941  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
15942  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"""
15943  return _IMP_core.BoundingSphere3DSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
15944 
15945  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
15946  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"""
15947  return _IMP_core.BoundingSphere3DSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
15948 
15949  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
15950  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"""
15951  return _IMP_core.BoundingSphere3DSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
15952 
15953  def get_version_info(self):
15954  r"""get_version_info(BoundingSphere3DSingletonScore self) -> VersionInfo"""
15955  return _IMP_core.BoundingSphere3DSingletonScore_get_version_info(self)
15956  __swig_destroy__ = _IMP_core.delete_BoundingSphere3DSingletonScore
15957 
15958 # Register BoundingSphere3DSingletonScore in _IMP_core:
15959 _IMP_core.BoundingSphere3DSingletonScore_swigregister(BoundingSphere3DSingletonScore)
15960 
15961 def create_bounding_sphere_3d_singleton_score(f, sphere):
15962  r"""create_bounding_sphere_3d_singleton_score(UnaryFunction f, Sphere3D sphere) -> BoundingSphere3DSingletonScore"""
15963  return _IMP_core.create_bounding_sphere_3d_singleton_score(f, sphere)
15965  r"""Proxy of C++ IMP::core::GenericDistanceToSingletonScore< UnaryFunction > class."""
15966 
15967  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15968  __repr__ = _swig_repr
15969 
15970  def __init__(self, *args):
15971  r"""
15972  __init__(DistanceToSingletonScore self, UnaryFunction f, Vector3D pt) -> DistanceToSingletonScore
15973  __init__(DistanceToSingletonScore self) -> DistanceToSingletonScore
15974  """
15975  _IMP_core.DistanceToSingletonScore_swiginit(self, _IMP_core.new_DistanceToSingletonScore(*args))
15976 
15977  def do_get_inputs(self, m, pis):
15978  r"""do_get_inputs(DistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15979  return _IMP_core.DistanceToSingletonScore_do_get_inputs(self, m, pis)
15980 
15981  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
15982  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"""
15983  return _IMP_core.DistanceToSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
15984 
15985  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
15986  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"""
15987  return _IMP_core.DistanceToSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
15988 
15989  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
15990  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"""
15991  return _IMP_core.DistanceToSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
15992 
15993  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
15994  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"""
15995  return _IMP_core.DistanceToSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
15996 
15997  def get_version_info(self):
15998  r"""get_version_info(DistanceToSingletonScore self) -> VersionInfo"""
15999  return _IMP_core.DistanceToSingletonScore_get_version_info(self)
16000  __swig_destroy__ = _IMP_core.delete_DistanceToSingletonScore
16001 
16002  def _get_as_binary(self):
16003  r"""_get_as_binary(DistanceToSingletonScore self) -> PyObject *"""
16004  return _IMP_core.DistanceToSingletonScore__get_as_binary(self)
16005 
16006  def _set_from_binary(self, p):
16007  r"""_set_from_binary(DistanceToSingletonScore self, PyObject * p)"""
16008  return _IMP_core.DistanceToSingletonScore__set_from_binary(self, p)
16009 
16010  def __getstate__(self):
16011  p = self._get_as_binary()
16012  if len(self.__dict__) > 1:
16013  d = self.__dict__.copy()
16014  del d['this']
16015  p = (d, p)
16016  return p
16017 
16018  def __setstate__(self, p):
16019  if not hasattr(self, 'this'):
16020  self.__init__()
16021  if isinstance(p, tuple):
16022  d, p = p
16023  self.__dict__.update(d)
16024  return self._set_from_binary(p)
16025 
16026 
16027 # Register DistanceToSingletonScore in _IMP_core:
16028 _IMP_core.DistanceToSingletonScore_swigregister(DistanceToSingletonScore)
16029 
16030 def create_distance_to_singleton_score(f, pt):
16031  r"""create_distance_to_singleton_score(UnaryFunction f, Vector3D pt) -> DistanceToSingletonScore"""
16032  return _IMP_core.create_distance_to_singleton_score(f, pt)
16033 
16034 class SphereDistancePairScore(_SphereDistancePairScore.__bases__[0]):
16035  def __init__(self, uf):
16036  if isinstance(uf, HarmonicUpperBound):
16037  p = HarmonicUpperBoundSphereDistancePairScore(
16038  uf.get_mean(), uf.get_k())
16039  elif isinstance(uf, HarmonicLowerBound):
16040  if uf.get_mean() == 0.0:
16041  p = SoftSpherePairScore(uf.get_k())
16042  else:
16043  p = _SphereDistancePairScore(uf)
16044  elif isinstance(uf, Harmonic):
16045  p = HarmonicSphereDistancePairScore(
16046  uf.get_mean(), uf.get_k())
16047  else:
16048  p = _SphereDistancePairScore(uf)
16049  self.__dict__['_proxied'] = p
16050  def __getattr__(self, key):
16051  return getattr(self._proxied, key)
16052  def __setattr__(self, key, val):
16053  return setattr(self._proxied, key, val)
16054 
16055  def __getstate__(self):
16056  return self.__dict__['_proxied']
16057 
16058  def __setstate__(self, p):
16059  self.__dict__['_proxied'] = p
16060 
16061  @staticmethod
16062  def get_from(o):
16063  try:
16064  p = HarmonicUpperBoundSphereDistancePairScore.get_from(o)
16065  except ValueError:
16066  try:
16067  p = HarmonicSphereDistancePairScore.get_from(o)
16068  except ValueError:
16069  try:
16070  p = SoftSpherePairScore.get_from(o)
16071  except ValueError:
16072  p = _SphereDistancePairScore.get_from(o)
16073  obj = object.__new__(SphereDistancePairScore)
16074  obj.__dict__['_proxied'] = p
16075  return obj
16076 
16077 
16078 
16079 def get_all_provenance(p, types=[StructureProvenance, SampleProvenance,
16080  CombineProvenance, FilterProvenance,
16081  ClusterProvenance, ScriptProvenance,
16082  SoftwareProvenance]):
16083  """Yield all provenance decorators of the given types for the particle.
16084  By default, all provenance types are returned. Provenance is returned
16085  in order, most recent first. If the particle has no provenance
16086  information, an empty generator is returned."""
16087  if Provenanced.get_is_setup(p):
16088  prov = Provenanced(p).get_provenance()
16089  while prov:
16090  for c in types:
16091  if c.get_is_setup(prov):
16092  yield c(prov)
16093  prov = prov.get_previous()
16094 
16096  """Tag the given particle with the current Python script.
16097  This is a noop if the particle is already so tagged."""
16098  main = sys.modules['__main__']
16099 # Can't do anything if running from an interactive interpreter
16100  if not hasattr(main, '__file__'):
16101  return
16102  f = IMP.get_absolute_path(main.__file__)
16103  for prov in get_all_provenance(p, types=[ScriptProvenance]):
16104  if prov.get_filename() == f:
16105  return
16106  m = p.get_model()
16107  provp = IMP.Particle(m)
16108  provp.set_name('script')
16109  prov = ScriptProvenance.setup_particle(provp, f)
16110  add_provenance(m, p, prov)
16111 
16112 def add_software_provenance(p, name, version, location):
16113  """Tag the given particle with the software used to create it.
16114  This is a noop if the particle is already so tagged."""
16115  for prov in get_all_provenance(p, types=[SoftwareProvenance]):
16116  if prov.get_software_name() == name and prov.get_version() == version \
16117  and prov.get_location() == location:
16118  return
16119  m = p.get_model()
16120  provp = IMP.Particle(m)
16121  provp.set_name('software')
16122  prov = SoftwareProvenance.setup_particle(provp, name, version, location)
16123  add_provenance(m, p, prov)
16124 
16126  """Tag the given particle as being created by the current version of IMP."""
16127  add_software_provenance(p, name="Integrative Modeling Platform (IMP)",
16128  version=IMP.get_module_version(),
16129  location="https://integrativemodeling.org")
16130 
16131 
16132 def get_module_name():
16133  r"""get_module_name() -> std::string const"""
16134  return _IMP_core.get_module_name()
16135 
16136 def get_module_version():
16137  r"""get_module_version() -> std::string const"""
16138  return _IMP_core.get_module_version()
16139 
16140 def get_example_path(fname):
16141  r"""get_example_path(std::string fname) -> std::string"""
16142  return _IMP_core.get_example_path(fname)
16143 
16144 def get_data_path(fname):
16145  r"""get_data_path(std::string fname) -> std::string"""
16146  return _IMP_core.get_data_path(fname)
16147 
16148 from . import _version_check
16149 _version_check.check_version(get_module_version())
16150 __version__ = get_module_version()
16151 
16152 
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