IMP logo
IMP Reference Guide  develop.d97d4ead1f,2024/11/21
The Integrative Modeling Platform
core/__init__.py
1 # This file was automatically generated by SWIG (https://www.swig.org).
2 # Version 4.3.0
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-2024 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_GPERFTOOLS = _IMP_core.IMP_KERNEL_HAS_GPERFTOOLS
188 
189 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_core.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
190 
191 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_core.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
192 
193 IMPKERNEL_SHOW_WARNINGS = _IMP_core.IMPKERNEL_SHOW_WARNINGS
194 
195 
196 import sys
197 class _DirectorObjects:
198  """@internal Simple class to keep references to director objects
199  to prevent premature deletion."""
200  def __init__(self):
201  self._objects = []
202  def register(self, obj):
203  """Take a reference to a director object; will only work for
204  refcounted C++ classes"""
205  if hasattr(obj, 'get_ref_count'):
206  self._objects.append(obj)
207  def cleanup(self):
208  """Only drop our reference and allow cleanup by Python if no other
209  Python references exist (we hold 3 references: one in self._objects,
210  one in x, and one in the argument list for getrefcount) *and* no
211  other C++ references exist (the Python object always holds one)"""
212  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
213  or x.get_ref_count() > 1]
214 # Do in two steps so the references are kept until the end of the
215 # function (deleting references may trigger a fresh call to this method)
216  self._objects = objs
217  def get_object_count(self):
218  """Get number of director objects (useful for testing only)"""
219  return len(self._objects)
220 _director_objects = _DirectorObjects()
221 
222 class _ostream(object):
223  r"""Proxy of C++ std::ostream class."""
224 
225  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
226 
227  def __init__(self, *args, **kwargs):
228  raise AttributeError("No constructor defined")
229  __repr__ = _swig_repr
230 
231  def write(self, osa_buf):
232  r"""write(_ostream self, char const * osa_buf)"""
233  return _IMP_core._ostream_write(self, osa_buf)
234 
235 # Register _ostream in _IMP_core:
236 _IMP_core._ostream_swigregister(_ostream)
237 IMP_C_OPEN_BINARY = _IMP_core.IMP_C_OPEN_BINARY
238 
239 import IMP
240 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_CGAL_HAS_BOOST_FILESYSTEM
241 
242 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
243 
244 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_core.IMP_CGAL_HAS_BOOST_RANDOM
245 
246 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_core.IMP_CGAL_HAS_BOOST_SYSTEM
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_BOOST_SYSTEM = _IMP_core.IMP_ALGEBRA_HAS_BOOST_SYSTEM
262 
263 IMP_ALGEBRA_HAS_CGAL = _IMP_core.IMP_ALGEBRA_HAS_CGAL
264 
265 IMP_ALGEBRA_HAS_NUMPY = _IMP_core.IMP_ALGEBRA_HAS_NUMPY
266 
267 IMP_ALGEBRA_HAS_ANN = _IMP_core.IMP_ALGEBRA_HAS_ANN
268 
269 IMPALGEBRA_SHOW_WARNINGS = _IMP_core.IMPALGEBRA_SHOW_WARNINGS
270 
271 import IMP.algebra
272 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_core.IMP_DISPLAY_HAS_IMP_CGAL
273 
274 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
275 
276 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
277 
278 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_core.IMP_DISPLAY_HAS_BOOST_RANDOM
279 
280 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_core.IMP_DISPLAY_HAS_BOOST_SYSTEM
281 
282 IMP_DISPLAY_HAS_CGAL = _IMP_core.IMP_DISPLAY_HAS_CGAL
283 
284 IMP_DISPLAY_HAS_NUMPY = _IMP_core.IMP_DISPLAY_HAS_NUMPY
285 
286 IMPDISPLAY_SHOW_WARNINGS = _IMP_core.IMPDISPLAY_SHOW_WARNINGS
287 
288 import IMP.display
289 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_core.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
290 
291 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
292 
293 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
294 
295 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
296 
297 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
298 
299 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_core.IMP_SCORE_FUNCTOR_HAS_CGAL
300 
301 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_core.IMP_SCORE_FUNCTOR_HAS_HDF5
302 
303 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_core.IMP_SCORE_FUNCTOR_HAS_NUMPY
304 
305 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_core.IMPSCOREFUNCTOR_SHOW_WARNINGS
306 
307 import IMP.score_functor
308 IMP_CORE_HAS_IMP_CGAL = _IMP_core.IMP_CORE_HAS_IMP_CGAL
309 
310 IMP_CORE_HAS_IMP_KERNEL = _IMP_core.IMP_CORE_HAS_IMP_KERNEL
311 
312 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_CORE_HAS_BOOST_FILESYSTEM
313 
314 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
315 
316 IMP_CORE_HAS_BOOST_RANDOM = _IMP_core.IMP_CORE_HAS_BOOST_RANDOM
317 
318 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_core.IMP_CORE_HAS_BOOST_SYSTEM
319 
320 IMP_CORE_HAS_CGAL = _IMP_core.IMP_CORE_HAS_CGAL
321 
322 IMP_CORE_HAS_HDF5 = _IMP_core.IMP_CORE_HAS_HDF5
323 
324 IMP_CORE_HAS_NUMPY = _IMP_core.IMP_CORE_HAS_NUMPY
325 
326 IMPCORE_SHOW_WARNINGS = _IMP_core.IMPCORE_SHOW_WARNINGS
327 
328 class _OpenCubicSplineBase(IMP.UnaryFunction):
329  r"""Proxy of C++ IMP::score_functor::ScoreUnaryFunction< IMP::score_functor::OpenCubicSpline > class."""
330 
331  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
332  __repr__ = _swig_repr
333 
334  def __init__(self, *args):
335  r"""__init__(_OpenCubicSplineBase self, IMP::score_functor::OpenCubicSpline const & score, std::string name="UnaryFunction%1%") -> _OpenCubicSplineBase"""
336  _IMP_core._OpenCubicSplineBase_swiginit(self, _IMP_core.new__OpenCubicSplineBase(*args))
337 
338  def get_version_info(self):
339  r"""get_version_info(_OpenCubicSplineBase self) -> VersionInfo"""
340  return _IMP_core._OpenCubicSplineBase_get_version_info(self)
341  __swig_destroy__ = _IMP_core.delete__OpenCubicSplineBase
342 
343 # Register _OpenCubicSplineBase in _IMP_core:
344 _IMP_core._OpenCubicSplineBase_swigregister(_OpenCubicSplineBase)
345 
346 _object_types.append("MonteCarloMover")
347 
348 
349 def _object_cast_to_MonteCarloMover(o):
350  r"""_object_cast_to_MonteCarloMover(Object o) -> MonteCarloMover"""
351  return _IMP_core._object_cast_to_MonteCarloMover(o)
352 
353 MonteCarloMoverResults=list
354 _plural_types.append("MonteCarloMoverResults")
355 _value_types.append("MonteCarloMoverResult")
356 
357 
358 _object_types.append("AngleRestraint")
359 
360 
361 def _object_cast_to_AngleRestraint(o):
362  r"""_object_cast_to_AngleRestraint(Object o) -> AngleRestraint"""
363  return _IMP_core._object_cast_to_AngleRestraint(o)
364 
365 _object_types.append("AngleTripletScore")
366 
367 
368 def _object_cast_to_AngleTripletScore(o):
369  r"""_object_cast_to_AngleTripletScore(Object o) -> AngleTripletScore"""
370  return _IMP_core._object_cast_to_AngleTripletScore(o)
371 
372 _object_types.append("AttributeSingletonScore")
373 
374 
375 def _object_cast_to_AttributeSingletonScore(o):
376  r"""_object_cast_to_AttributeSingletonScore(Object o) -> AttributeSingletonScore"""
377  return _IMP_core._object_cast_to_AttributeSingletonScore(o)
378 
379 _object_types.append("BallMover")
380 
381 
382 def _object_cast_to_BallMover(o):
383  r"""_object_cast_to_BallMover(Object o) -> BallMover"""
384  return _IMP_core._object_cast_to_BallMover(o)
385 
386 _object_types.append("SerialMover")
387 
388 
389 def _object_cast_to_SerialMover(o):
390  r"""_object_cast_to_SerialMover(Object o) -> SerialMover"""
391  return _IMP_core._object_cast_to_SerialMover(o)
392 
393 _object_types.append("SubsetMover")
394 
395 
396 def _object_cast_to_SubsetMover(o):
397  r"""_object_cast_to_SubsetMover(Object o) -> SubsetMover"""
398  return _IMP_core._object_cast_to_SubsetMover(o)
399 
400 _object_types.append("DirectionMover")
401 
402 
403 def _object_cast_to_DirectionMover(o):
404  r"""_object_cast_to_DirectionMover(Object o) -> DirectionMover"""
405  return _IMP_core._object_cast_to_DirectionMover(o)
406 
407 _object_types.append("SurfaceMover")
408 
409 
410 def _object_cast_to_SurfaceMover(o):
411  r"""_object_cast_to_SurfaceMover(Object o) -> SurfaceMover"""
412  return _IMP_core._object_cast_to_SurfaceMover(o)
413 
414 _object_types.append("BoundingBox3DSingletonScore")
415 
416 
417 def _object_cast_to_BoundingBox3DSingletonScore(o):
418  r"""_object_cast_to_BoundingBox3DSingletonScore(Object o) -> BoundingBox3DSingletonScore"""
419  return _IMP_core._object_cast_to_BoundingBox3DSingletonScore(o)
420 
421 _object_types.append("BoundingSphere3DSingletonScore")
422 
423 
424 def _object_cast_to_BoundingSphere3DSingletonScore(o):
425  r"""_object_cast_to_BoundingSphere3DSingletonScore(Object o) -> BoundingSphere3DSingletonScore"""
426  return _IMP_core._object_cast_to_BoundingSphere3DSingletonScore(o)
427 
428 _object_types.append("BoxSweepClosePairsFinder")
429 
430 
431 def _object_cast_to_BoxSweepClosePairsFinder(o):
432  r"""_object_cast_to_BoxSweepClosePairsFinder(Object o) -> BoxSweepClosePairsFinder"""
433  return _IMP_core._object_cast_to_BoxSweepClosePairsFinder(o)
434 
435 _object_types.append("NearestNeighborsClosePairsFinder")
436 
437 
438 def _object_cast_to_NearestNeighborsClosePairsFinder(o):
439  r"""_object_cast_to_NearestNeighborsClosePairsFinder(Object o) -> NearestNeighborsClosePairsFinder"""
440  return _IMP_core._object_cast_to_NearestNeighborsClosePairsFinder(o)
441 
442 _object_types.append("CentroidOfRefined")
443 
444 
445 def _object_cast_to_CentroidOfRefined(o):
446  r"""_object_cast_to_CentroidOfRefined(Object o) -> CentroidOfRefined"""
447  return _IMP_core._object_cast_to_CentroidOfRefined(o)
448 
449 _object_types.append("ChecksScoreState")
450 
451 
452 def _object_cast_to_ChecksScoreState(o):
453  r"""_object_cast_to_ChecksScoreState(Object o) -> ChecksScoreState"""
454  return _IMP_core._object_cast_to_ChecksScoreState(o)
455 
456 _object_types.append("ChildrenRefiner")
457 
458 
459 def _object_cast_to_ChildrenRefiner(o):
460  r"""_object_cast_to_ChildrenRefiner(Object o) -> ChildrenRefiner"""
461  return _IMP_core._object_cast_to_ChildrenRefiner(o)
462 
463 _object_types.append("ClosePairsFinder")
464 
465 
466 def _object_cast_to_ClosePairsFinder(o):
467  r"""_object_cast_to_ClosePairsFinder(Object o) -> ClosePairsFinder"""
468  return _IMP_core._object_cast_to_ClosePairsFinder(o)
469 
470 _object_types.append("ClosePairsPairScore")
471 
472 
473 def _object_cast_to_ClosePairsPairScore(o):
474  r"""_object_cast_to_ClosePairsPairScore(Object o) -> ClosePairsPairScore"""
475  return _IMP_core._object_cast_to_ClosePairsPairScore(o)
476 
477 _object_types.append("ClosedCubicSpline")
478 
479 
480 def _object_cast_to_ClosedCubicSpline(o):
481  r"""_object_cast_to_ClosedCubicSpline(Object o) -> ClosedCubicSpline"""
482  return _IMP_core._object_cast_to_ClosedCubicSpline(o)
483 
484 _object_types.append("ConjugateGradients")
485 
486 
487 def _object_cast_to_ConjugateGradients(o):
488  r"""_object_cast_to_ConjugateGradients(Object o) -> ConjugateGradients"""
489  return _IMP_core._object_cast_to_ConjugateGradients(o)
490 
491 _object_types.append("ConnectivityRestraint")
492 
493 
494 def _object_cast_to_ConnectivityRestraint(o):
495  r"""_object_cast_to_ConnectivityRestraint(Object o) -> ConnectivityRestraint"""
496  return _IMP_core._object_cast_to_ConnectivityRestraint(o)
497 
498 _object_types.append("ConstantRestraint")
499 
500 
501 def _object_cast_to_ConstantRestraint(o):
502  r"""_object_cast_to_ConstantRestraint(Object o) -> ConstantRestraint"""
503  return _IMP_core._object_cast_to_ConstantRestraint(o)
504 
505 _object_types.append("Cosine")
506 
507 
508 def _object_cast_to_Cosine(o):
509  r"""_object_cast_to_Cosine(Object o) -> Cosine"""
510  return _IMP_core._object_cast_to_Cosine(o)
511 
512 _object_types.append("CoverRefined")
513 
514 
515 def _object_cast_to_CoverRefined(o):
516  r"""_object_cast_to_CoverRefined(Object o) -> CoverRefined"""
517  return _IMP_core._object_cast_to_CoverRefined(o)
518 
519 _object_types.append("DerivativesFromRefined")
520 
521 
522 def _object_cast_to_DerivativesFromRefined(o):
523  r"""_object_cast_to_DerivativesFromRefined(Object o) -> DerivativesFromRefined"""
524  return _IMP_core._object_cast_to_DerivativesFromRefined(o)
525 
526 _object_types.append("DerivativesToRefined")
527 
528 
529 def _object_cast_to_DerivativesToRefined(o):
530  r"""_object_cast_to_DerivativesToRefined(Object o) -> DerivativesToRefined"""
531  return _IMP_core._object_cast_to_DerivativesToRefined(o)
532 
533 _object_types.append("WeightedDerivativesToRefined")
534 
535 
536 def _object_cast_to_WeightedDerivativesToRefined(o):
537  r"""_object_cast_to_WeightedDerivativesToRefined(Object o) -> IMP::core::WeightedDerivativesToRefined *"""
538  return _IMP_core._object_cast_to_WeightedDerivativesToRefined(o)
539 
540 _object_types.append("DiameterRestraint")
541 
542 
543 def _object_cast_to_DiameterRestraint(o):
544  r"""_object_cast_to_DiameterRestraint(Object o) -> DiameterRestraint"""
545  return _IMP_core._object_cast_to_DiameterRestraint(o)
546 
547 _object_types.append("DihedralRestraint")
548 
549 
550 def _object_cast_to_DihedralRestraint(o):
551  r"""_object_cast_to_DihedralRestraint(Object o) -> DihedralRestraint"""
552  return _IMP_core._object_cast_to_DihedralRestraint(o)
553 
554 _object_types.append("DistanceRestraint")
555 
556 
557 def _object_cast_to_DistanceRestraint(o):
558  r"""_object_cast_to_DistanceRestraint(Object o) -> DistanceRestraint"""
559  return _IMP_core._object_cast_to_DistanceRestraint(o)
560 
561 _object_types.append("DistanceToSingletonScore")
562 
563 
564 def _object_cast_to_DistanceToSingletonScore(o):
565  r"""_object_cast_to_DistanceToSingletonScore(Object o) -> DistanceToSingletonScore"""
566  return _IMP_core._object_cast_to_DistanceToSingletonScore(o)
567 
568 _object_types.append("ExcludedVolumeRestraint")
569 
570 
571 def _object_cast_to_ExcludedVolumeRestraint(o):
572  r"""_object_cast_to_ExcludedVolumeRestraint(Object o) -> ExcludedVolumeRestraint"""
573  return _IMP_core._object_cast_to_ExcludedVolumeRestraint(o)
574 
575 _object_types.append("FixedRefiner")
576 
577 
578 def _object_cast_to_FixedRefiner(o):
579  r"""_object_cast_to_FixedRefiner(Object o) -> FixedRefiner"""
580  return _IMP_core._object_cast_to_FixedRefiner(o)
581 
582 _object_types.append("GridClosePairsFinder")
583 
584 
585 def _object_cast_to_GridClosePairsFinder(o):
586  r"""_object_cast_to_GridClosePairsFinder(Object o) -> GridClosePairsFinder"""
587  return _IMP_core._object_cast_to_GridClosePairsFinder(o)
588 
589 _object_types.append("Harmonic")
590 
591 
592 def _object_cast_to_Harmonic(o):
593  r"""_object_cast_to_Harmonic(Object o) -> Harmonic"""
594  return _IMP_core._object_cast_to_Harmonic(o)
595 
596 _object_types.append("HarmonicWell")
597 
598 
599 def _object_cast_to_HarmonicWell(o):
600  r"""_object_cast_to_HarmonicWell(Object o) -> HarmonicWell"""
601  return _IMP_core._object_cast_to_HarmonicWell(o)
602 
603 _object_types.append("HarmonicLowerBound")
604 
605 
606 def _object_cast_to_HarmonicLowerBound(o):
607  r"""_object_cast_to_HarmonicLowerBound(Object o) -> HarmonicLowerBound"""
608  return _IMP_core._object_cast_to_HarmonicLowerBound(o)
609 
610 _object_types.append("HarmonicUpperBound")
611 
612 
613 def _object_cast_to_HarmonicUpperBound(o):
614  r"""_object_cast_to_HarmonicUpperBound(Object o) -> HarmonicUpperBound"""
615  return _IMP_core._object_cast_to_HarmonicUpperBound(o)
616 
617 _object_types.append("HarmonicSphereDistancePairScore")
618 
619 
620 def _object_cast_to_HarmonicSphereDistancePairScore(o):
621  r"""_object_cast_to_HarmonicSphereDistancePairScore(Object o) -> HarmonicSphereDistancePairScore"""
622  return _IMP_core._object_cast_to_HarmonicSphereDistancePairScore(o)
623 
624 _object_types.append("HarmonicUpperBoundSphereDistancePairScore")
625 
626 
627 def _object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o):
628  r"""_object_cast_to_HarmonicUpperBoundSphereDistancePairScore(Object o) -> HarmonicUpperBoundSphereDistancePairScore"""
629  return _IMP_core._object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o)
630 
631 _object_types.append("HarmonicUpperBoundSphereDiameterPairScore")
632 
633 
634 def _object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o):
635  r"""_object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(Object o) -> HarmonicUpperBoundSphereDiameterPairScore"""
636  return _IMP_core._object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o)
637 
638 _object_types.append("HarmonicSurfaceDistancePairScore")
639 
640 
641 def _object_cast_to_HarmonicSurfaceDistancePairScore(o):
642  r"""_object_cast_to_HarmonicSurfaceDistancePairScore(Object o) -> HarmonicSurfaceDistancePairScore"""
643  return _IMP_core._object_cast_to_HarmonicSurfaceDistancePairScore(o)
644 
645 _object_types.append("HarmonicSurfaceHeightPairScore")
646 
647 
648 def _object_cast_to_HarmonicSurfaceHeightPairScore(o):
649  r"""_object_cast_to_HarmonicSurfaceHeightPairScore(Object o) -> HarmonicSurfaceHeightPairScore"""
650  return _IMP_core._object_cast_to_HarmonicSurfaceHeightPairScore(o)
651 
652 _object_types.append("HarmonicSurfaceDepthPairScore")
653 
654 
655 def _object_cast_to_HarmonicSurfaceDepthPairScore(o):
656  r"""_object_cast_to_HarmonicSurfaceDepthPairScore(Object o) -> HarmonicSurfaceDepthPairScore"""
657  return _IMP_core._object_cast_to_HarmonicSurfaceDepthPairScore(o)
658 
659 _object_types.append("WeightedSum")
660 
661 
662 def _object_cast_to_WeightedSum(o):
663  r"""_object_cast_to_WeightedSum(Object o) -> WeightedSum"""
664  return _IMP_core._object_cast_to_WeightedSum(o)
665 
666 _object_types.append("WeightedSumOfExponential")
667 
668 
669 def _object_cast_to_WeightedSumOfExponential(o):
670  r"""_object_cast_to_WeightedSumOfExponential(Object o) -> WeightedSumOfExponential"""
671  return _IMP_core._object_cast_to_WeightedSumOfExponential(o)
672 
673 _object_types.append("KClosePairsPairScore")
674 
675 
676 def _object_cast_to_KClosePairsPairScore(o):
677  r"""_object_cast_to_KClosePairsPairScore(Object o) -> KClosePairsPairScore"""
678  return _IMP_core._object_cast_to_KClosePairsPairScore(o)
679 
680 _object_types.append("LeavesRefiner")
681 
682 
683 def _object_cast_to_LeavesRefiner(o):
684  r"""_object_cast_to_LeavesRefiner(Object o) -> LeavesRefiner"""
685  return _IMP_core._object_cast_to_LeavesRefiner(o)
686 
687 _object_types.append("Linear")
688 
689 
690 def _object_cast_to_Linear(o):
691  r"""_object_cast_to_Linear(Object o) -> Linear"""
692  return _IMP_core._object_cast_to_Linear(o)
693 
694 _object_types.append("LogNormalMover")
695 
696 
697 def _object_cast_to_LogNormalMover(o):
698  r"""_object_cast_to_LogNormalMover(Object o) -> LogNormalMover"""
699  return _IMP_core._object_cast_to_LogNormalMover(o)
700 
701 _object_types.append("MCCGSampler")
702 
703 
704 def _object_cast_to_MCCGSampler(o):
705  r"""_object_cast_to_MCCGSampler(Object o) -> MCCGSampler"""
706  return _IMP_core._object_cast_to_MCCGSampler(o)
707 
708 _object_types.append("MonteCarlo")
709 
710 
711 def _object_cast_to_MonteCarlo(o):
712  r"""_object_cast_to_MonteCarlo(Object o) -> MonteCarlo"""
713  return _IMP_core._object_cast_to_MonteCarlo(o)
714 
715 _object_types.append("MonteCarloWithLocalOptimization")
716 
717 
718 def _object_cast_to_MonteCarloWithLocalOptimization(o):
719  r"""_object_cast_to_MonteCarloWithLocalOptimization(Object o) -> MonteCarloWithLocalOptimization"""
720  return _IMP_core._object_cast_to_MonteCarloWithLocalOptimization(o)
721 
722 _object_types.append("MonteCarloWithBasinHopping")
723 
724 
725 def _object_cast_to_MonteCarloWithBasinHopping(o):
726  r"""_object_cast_to_MonteCarloWithBasinHopping(Object o) -> MonteCarloWithBasinHopping"""
727  return _IMP_core._object_cast_to_MonteCarloWithBasinHopping(o)
728 
729 _object_types.append("MSConnectivityRestraint")
730 
731 
732 def _object_cast_to_MSConnectivityRestraint(o):
733  r"""_object_cast_to_MSConnectivityRestraint(Object o) -> MSConnectivityRestraint"""
734  return _IMP_core._object_cast_to_MSConnectivityRestraint(o)
735 
736 _object_types.append("NeighborsTable")
737 
738 
739 def _object_cast_to_NeighborsTable(o):
740  r"""_object_cast_to_NeighborsTable(Object o) -> NeighborsTable"""
741  return _IMP_core._object_cast_to_NeighborsTable(o)
742 
743 _object_types.append("NormalMover")
744 
745 
746 def _object_cast_to_NormalMover(o):
747  r"""_object_cast_to_NormalMover(Object o) -> NormalMover"""
748  return _IMP_core._object_cast_to_NormalMover(o)
749 
750 _object_types.append("NormalizedSphereDistancePairScore")
751 
752 
753 def _object_cast_to_NormalizedSphereDistancePairScore(o):
754  r"""_object_cast_to_NormalizedSphereDistancePairScore(Object o) -> NormalizedSphereDistancePairScore"""
755  return _IMP_core._object_cast_to_NormalizedSphereDistancePairScore(o)
756 
757 _object_types.append("OpenCubicSpline")
758 
759 
760 def _object_cast_to_OpenCubicSpline(o):
761  r"""_object_cast_to_OpenCubicSpline(Object o) -> OpenCubicSpline"""
762  return _IMP_core._object_cast_to_OpenCubicSpline(o)
763 
764 _object_types.append("PairConstraint")
765 
766 
767 def _object_cast_to_PairConstraint(o):
768  r"""_object_cast_to_PairConstraint(Object o) -> PairConstraint"""
769  return _IMP_core._object_cast_to_PairConstraint(o)
770 
771 _object_types.append("PairRestraint")
772 
773 
774 def _object_cast_to_PairRestraint(o):
775  r"""_object_cast_to_PairRestraint(Object o) -> PairRestraint"""
776  return _IMP_core._object_cast_to_PairRestraint(o)
777 
778 _object_types.append("QuadConstraint")
779 
780 
781 def _object_cast_to_QuadConstraint(o):
782  r"""_object_cast_to_QuadConstraint(Object o) -> QuadConstraint"""
783  return _IMP_core._object_cast_to_QuadConstraint(o)
784 
785 _object_types.append("QuadRestraint")
786 
787 
788 def _object_cast_to_QuadRestraint(o):
789  r"""_object_cast_to_QuadRestraint(Object o) -> QuadRestraint"""
790  return _IMP_core._object_cast_to_QuadRestraint(o)
791 
792 _object_types.append("QuadraticClosePairsFinder")
793 
794 
795 def _object_cast_to_QuadraticClosePairsFinder(o):
796  r"""_object_cast_to_QuadraticClosePairsFinder(Object o) -> QuadraticClosePairsFinder"""
797  return _IMP_core._object_cast_to_QuadraticClosePairsFinder(o)
798 
799 _object_types.append("RefinedPairsPairScore")
800 
801 
802 def _object_cast_to_RefinedPairsPairScore(o):
803  r"""_object_cast_to_RefinedPairsPairScore(Object o) -> RefinedPairsPairScore"""
804  return _IMP_core._object_cast_to_RefinedPairsPairScore(o)
805 
806 _object_types.append("RestraintsScoringFunction")
807 
808 
809 def _object_cast_to_RestraintsScoringFunction(o):
810  r"""_object_cast_to_RestraintsScoringFunction(Object o) -> RestraintsScoringFunction"""
811  return _IMP_core._object_cast_to_RestraintsScoringFunction(o)
812 
813 _object_types.append("RigidBodyDistancePairScore")
814 
815 
816 def _object_cast_to_RigidBodyDistancePairScore(o):
817  r"""_object_cast_to_RigidBodyDistancePairScore(Object o) -> RigidBodyDistancePairScore"""
818  return _IMP_core._object_cast_to_RigidBodyDistancePairScore(o)
819 
820 _object_types.append("RigidBodyAnglePairScore")
821 
822 
823 def _object_cast_to_RigidBodyAnglePairScore(o):
824  r"""_object_cast_to_RigidBodyAnglePairScore(Object o) -> RigidBodyAnglePairScore"""
825  return _IMP_core._object_cast_to_RigidBodyAnglePairScore(o)
826 
827 _object_types.append("RigidBodyMover")
828 
829 
830 def _object_cast_to_RigidBodyMover(o):
831  r"""_object_cast_to_RigidBodyMover(Object o) -> RigidBodyMover"""
832  return _IMP_core._object_cast_to_RigidBodyMover(o)
833 
834 _object_types.append("RigidBodyTunneler")
835 
836 
837 def _object_cast_to_RigidBodyTunneler(o):
838  r"""_object_cast_to_RigidBodyTunneler(Object o) -> RigidBodyTunneler"""
839  return _IMP_core._object_cast_to_RigidBodyTunneler(o)
840 
841 _object_types.append("RigidBodyUmbrella")
842 
843 
844 def _object_cast_to_RigidBodyUmbrella(o):
845  r"""_object_cast_to_RigidBodyUmbrella(Object o) -> RigidBodyUmbrella"""
846  return _IMP_core._object_cast_to_RigidBodyUmbrella(o)
847 
848 _object_types.append("RigidClosePairsFinder")
849 
850 
851 def _object_cast_to_RigidClosePairsFinder(o):
852  r"""_object_cast_to_RigidClosePairsFinder(Object o) -> RigidClosePairsFinder"""
853  return _IMP_core._object_cast_to_RigidClosePairsFinder(o)
854 
855 _object_types.append("RigidMembersRefiner")
856 
857 
858 def _object_cast_to_RigidMembersRefiner(o):
859  r"""_object_cast_to_RigidMembersRefiner(Object o) -> RigidMembersRefiner"""
860  return _IMP_core._object_cast_to_RigidMembersRefiner(o)
861 
862 _object_types.append("SingletonConstraint")
863 
864 
865 def _object_cast_to_SingletonConstraint(o):
866  r"""_object_cast_to_SingletonConstraint(Object o) -> SingletonConstraint"""
867  return _IMP_core._object_cast_to_SingletonConstraint(o)
868 
869 _object_types.append("SingletonRestraint")
870 
871 
872 def _object_cast_to_SingletonRestraint(o):
873  r"""_object_cast_to_SingletonRestraint(Object o) -> SingletonRestraint"""
874  return _IMP_core._object_cast_to_SingletonRestraint(o)
875 
876 _object_types.append("SoftSpherePairScore")
877 
878 
879 def _object_cast_to_SoftSpherePairScore(o):
880  r"""_object_cast_to_SoftSpherePairScore(Object o) -> SoftSpherePairScore"""
881  return _IMP_core._object_cast_to_SoftSpherePairScore(o)
882 
883 _object_types.append("SphereDistancePairScore")
884 
885 
886 def _object_cast_to_SphereDistancePairScore(o):
887  r"""_object_cast_to_SphereDistancePairScore(Object o) -> SphereDistancePairScore"""
888  return _IMP_core._object_cast_to_SphereDistancePairScore(o)
889 
890 _object_types.append("SphereDistanceToSingletonScore")
891 
892 
893 def _object_cast_to_SphereDistanceToSingletonScore(o):
894  r"""_object_cast_to_SphereDistanceToSingletonScore(Object o) -> SphereDistanceToSingletonScore"""
895  return _IMP_core._object_cast_to_SphereDistanceToSingletonScore(o)
896 
897 _object_types.append("SoftSubSurfacePairScore")
898 
899 
900 def _object_cast_to_SoftSubSurfacePairScore(o):
901  r"""_object_cast_to_SoftSubSurfacePairScore(Object o) -> SoftSubSurfacePairScore"""
902  return _IMP_core._object_cast_to_SoftSubSurfacePairScore(o)
903 
904 _object_types.append("SoftSuperSurfacePairScore")
905 
906 
907 def _object_cast_to_SoftSuperSurfacePairScore(o):
908  r"""_object_cast_to_SoftSuperSurfacePairScore(Object o) -> SoftSuperSurfacePairScore"""
909  return _IMP_core._object_cast_to_SoftSuperSurfacePairScore(o)
910 
911 _object_types.append("SurfaceDistancePairScore")
912 
913 
914 def _object_cast_to_SurfaceDistancePairScore(o):
915  r"""_object_cast_to_SurfaceDistancePairScore(Object o) -> SurfaceDistancePairScore"""
916  return _IMP_core._object_cast_to_SurfaceDistancePairScore(o)
917 
918 _object_types.append("SurfaceHeightPairScore")
919 
920 
921 def _object_cast_to_SurfaceHeightPairScore(o):
922  r"""_object_cast_to_SurfaceHeightPairScore(Object o) -> SurfaceHeightPairScore"""
923  return _IMP_core._object_cast_to_SurfaceHeightPairScore(o)
924 
925 _object_types.append("SurfaceDepthPairScore")
926 
927 
928 def _object_cast_to_SurfaceDepthPairScore(o):
929  r"""_object_cast_to_SurfaceDepthPairScore(Object o) -> SurfaceDepthPairScore"""
930  return _IMP_core._object_cast_to_SurfaceDepthPairScore(o)
931 
932 _object_types.append("SurfaceTetheredChain")
933 
934 
935 def _object_cast_to_SurfaceTetheredChain(o):
936  r"""_object_cast_to_SurfaceTetheredChain(Object o) -> SurfaceTetheredChain"""
937  return _IMP_core._object_cast_to_SurfaceTetheredChain(o)
938 
939 _object_types.append("SurfaceSymmetryConstraint")
940 
941 
942 def _object_cast_to_SurfaceSymmetryConstraint(o):
943  r"""_object_cast_to_SurfaceSymmetryConstraint(Object o) -> SurfaceSymmetryConstraint"""
944  return _IMP_core._object_cast_to_SurfaceSymmetryConstraint(o)
945 
946 _object_types.append("SteepestDescent")
947 
948 
949 def _object_cast_to_SteepestDescent(o):
950  r"""_object_cast_to_SteepestDescent(Object o) -> SteepestDescent"""
951  return _IMP_core._object_cast_to_SteepestDescent(o)
952 
953 _object_types.append("TableRefiner")
954 
955 
956 def _object_cast_to_TableRefiner(o):
957  r"""_object_cast_to_TableRefiner(Object o) -> TableRefiner"""
958  return _IMP_core._object_cast_to_TableRefiner(o)
959 
960 _object_types.append("Transform")
961 
962 
963 def _object_cast_to_Transform(o):
964  r"""_object_cast_to_Transform(Object o) -> Transform"""
965  return _IMP_core._object_cast_to_Transform(o)
966 
967 _object_types.append("TransformationAndReflectionSymmetry")
968 
969 
970 def _object_cast_to_TransformationAndReflectionSymmetry(o):
971  r"""_object_cast_to_TransformationAndReflectionSymmetry(Object o) -> TransformationAndReflectionSymmetry"""
972  return _IMP_core._object_cast_to_TransformationAndReflectionSymmetry(o)
973 
974 _object_types.append("TransformationSymmetry")
975 
976 
977 def _object_cast_to_TransformationSymmetry(o):
978  r"""_object_cast_to_TransformationSymmetry(Object o) -> TransformationSymmetry"""
979  return _IMP_core._object_cast_to_TransformationSymmetry(o)
980 
981 _object_types.append("TransformationSymmetryMover")
982 
983 
984 def _object_cast_to_TransformationSymmetryMover(o):
985  r"""_object_cast_to_TransformationSymmetryMover(Object o) -> TransformationSymmetryMover"""
986  return _IMP_core._object_cast_to_TransformationSymmetryMover(o)
987 
988 _object_types.append("TransformedDistancePairScore")
989 
990 
991 def _object_cast_to_TransformedDistancePairScore(o):
992  r"""_object_cast_to_TransformedDistancePairScore(Object o) -> TransformedDistancePairScore"""
993  return _IMP_core._object_cast_to_TransformedDistancePairScore(o)
994 
995 _object_types.append("TripletConstraint")
996 
997 
998 def _object_cast_to_TripletConstraint(o):
999  r"""_object_cast_to_TripletConstraint(Object o) -> TripletConstraint"""
1000  return _IMP_core._object_cast_to_TripletConstraint(o)
1001 
1002 _object_types.append("TripletRestraint")
1003 
1004 
1005 def _object_cast_to_TripletRestraint(o):
1006  r"""_object_cast_to_TripletRestraint(Object o) -> TripletRestraint"""
1007  return _IMP_core._object_cast_to_TripletRestraint(o)
1008 
1009 _object_types.append("TypedPairScore")
1010 
1011 
1012 def _object_cast_to_TypedPairScore(o):
1013  r"""_object_cast_to_TypedPairScore(Object o) -> TypedPairScore"""
1014  return _IMP_core._object_cast_to_TypedPairScore(o)
1015 
1016 _object_types.append("VolumeRestraint")
1017 
1018 
1019 def _object_cast_to_VolumeRestraint(o):
1020  r"""_object_cast_to_VolumeRestraint(Object o) -> VolumeRestraint"""
1021  return _IMP_core._object_cast_to_VolumeRestraint(o)
1022 
1023 _object_types.append("WeightedSphereDistancePairScore")
1024 
1025 
1026 def _object_cast_to_WeightedSphereDistancePairScore(o):
1027  r"""_object_cast_to_WeightedSphereDistancePairScore(Object o) -> WeightedSphereDistancePairScore"""
1028  return _IMP_core._object_cast_to_WeightedSphereDistancePairScore(o)
1029 
1030 _object_types.append("MoveStatisticsScoreState")
1031 
1032 
1033 def _object_cast_to_MoveStatisticsScoreState(o):
1034  r"""_object_cast_to_MoveStatisticsScoreState(Object o) -> MoveStatisticsScoreState"""
1035  return _IMP_core._object_cast_to_MoveStatisticsScoreState(o)
1036 
1037 _object_types.append("MinimumRestraint")
1038 
1039 
1040 def _object_cast_to_MinimumRestraint(o):
1041  r"""_object_cast_to_MinimumRestraint(Object o) -> MinimumRestraint"""
1042  return _IMP_core._object_cast_to_MinimumRestraint(o)
1043 
1044 _object_types.append("WriteRestraintScoresOptimizerState")
1045 
1046 
1047 def _object_cast_to_WriteRestraintScoresOptimizerState(o):
1048  r"""_object_cast_to_WriteRestraintScoresOptimizerState(Object o) -> WriteRestraintScoresOptimizerState"""
1049  return _IMP_core._object_cast_to_WriteRestraintScoresOptimizerState(o)
1050 
1051 _object_types.append("LateralSurfaceConstraint")
1052 
1053 
1054 def _object_cast_to_LateralSurfaceConstraint(o):
1055  r"""_object_cast_to_LateralSurfaceConstraint(Object o) -> LateralSurfaceConstraint"""
1056  return _IMP_core._object_cast_to_LateralSurfaceConstraint(o)
1057 
1058 _object_types.append("ConstantSingletonPredicate")
1059 
1060 
1061 def _object_cast_to_ConstantSingletonPredicate(o):
1062  r"""_object_cast_to_ConstantSingletonPredicate(Object o) -> ConstantSingletonPredicate"""
1063  return _IMP_core._object_cast_to_ConstantSingletonPredicate(o)
1064 
1065 _object_types.append("ConstantPairPredicate")
1066 
1067 
1068 def _object_cast_to_ConstantPairPredicate(o):
1069  r"""_object_cast_to_ConstantPairPredicate(Object o) -> ConstantPairPredicate"""
1070  return _IMP_core._object_cast_to_ConstantPairPredicate(o)
1071 
1072 _object_types.append("ConstantTripletPredicate")
1073 
1074 
1075 def _object_cast_to_ConstantTripletPredicate(o):
1076  r"""_object_cast_to_ConstantTripletPredicate(Object o) -> ConstantTripletPredicate"""
1077  return _IMP_core._object_cast_to_ConstantTripletPredicate(o)
1078 
1079 _object_types.append("ConstantQuadPredicate")
1080 
1081 
1082 def _object_cast_to_ConstantQuadPredicate(o):
1083  r"""_object_cast_to_ConstantQuadPredicate(Object o) -> ConstantQuadPredicate"""
1084  return _IMP_core._object_cast_to_ConstantQuadPredicate(o)
1085 
1086 _object_types.append("CoinFlipSingletonPredicate")
1087 
1088 
1089 def _object_cast_to_CoinFlipSingletonPredicate(o):
1090  r"""_object_cast_to_CoinFlipSingletonPredicate(Object o) -> CoinFlipSingletonPredicate"""
1091  return _IMP_core._object_cast_to_CoinFlipSingletonPredicate(o)
1092 
1093 _object_types.append("CoinFlipPairPredicate")
1094 
1095 
1096 def _object_cast_to_CoinFlipPairPredicate(o):
1097  r"""_object_cast_to_CoinFlipPairPredicate(Object o) -> CoinFlipPairPredicate"""
1098  return _IMP_core._object_cast_to_CoinFlipPairPredicate(o)
1099 
1100 _object_types.append("CoinFlipTripletPredicate")
1101 
1102 
1103 def _object_cast_to_CoinFlipTripletPredicate(o):
1104  r"""_object_cast_to_CoinFlipTripletPredicate(Object o) -> CoinFlipTripletPredicate"""
1105  return _IMP_core._object_cast_to_CoinFlipTripletPredicate(o)
1106 
1107 _object_types.append("CoinFlipQuadPredicate")
1108 
1109 
1110 def _object_cast_to_CoinFlipQuadPredicate(o):
1111  r"""_object_cast_to_CoinFlipQuadPredicate(Object o) -> CoinFlipQuadPredicate"""
1112  return _IMP_core._object_cast_to_CoinFlipQuadPredicate(o)
1113 
1114 _object_types.append("UnorderedTypeSingletonPredicate")
1115 
1116 
1117 def _object_cast_to_UnorderedTypeSingletonPredicate(o):
1118  r"""_object_cast_to_UnorderedTypeSingletonPredicate(Object o) -> UnorderedTypeSingletonPredicate"""
1119  return _IMP_core._object_cast_to_UnorderedTypeSingletonPredicate(o)
1120 
1121 _object_types.append("UnorderedTypePairPredicate")
1122 
1123 
1124 def _object_cast_to_UnorderedTypePairPredicate(o):
1125  r"""_object_cast_to_UnorderedTypePairPredicate(Object o) -> UnorderedTypePairPredicate"""
1126  return _IMP_core._object_cast_to_UnorderedTypePairPredicate(o)
1127 
1128 _object_types.append("UnorderedTypeTripletPredicate")
1129 
1130 
1131 def _object_cast_to_UnorderedTypeTripletPredicate(o):
1132  r"""_object_cast_to_UnorderedTypeTripletPredicate(Object o) -> UnorderedTypeTripletPredicate"""
1133  return _IMP_core._object_cast_to_UnorderedTypeTripletPredicate(o)
1134 
1135 _object_types.append("UnorderedTypeQuadPredicate")
1136 
1137 
1138 def _object_cast_to_UnorderedTypeQuadPredicate(o):
1139  r"""_object_cast_to_UnorderedTypeQuadPredicate(Object o) -> UnorderedTypeQuadPredicate"""
1140  return _IMP_core._object_cast_to_UnorderedTypeQuadPredicate(o)
1141 
1142 _object_types.append("OrderedTypeSingletonPredicate")
1143 
1144 
1145 def _object_cast_to_OrderedTypeSingletonPredicate(o):
1146  r"""_object_cast_to_OrderedTypeSingletonPredicate(Object o) -> OrderedTypeSingletonPredicate"""
1147  return _IMP_core._object_cast_to_OrderedTypeSingletonPredicate(o)
1148 
1149 _object_types.append("OrderedTypePairPredicate")
1150 
1151 
1152 def _object_cast_to_OrderedTypePairPredicate(o):
1153  r"""_object_cast_to_OrderedTypePairPredicate(Object o) -> OrderedTypePairPredicate"""
1154  return _IMP_core._object_cast_to_OrderedTypePairPredicate(o)
1155 
1156 _object_types.append("OrderedTypeTripletPredicate")
1157 
1158 
1159 def _object_cast_to_OrderedTypeTripletPredicate(o):
1160  r"""_object_cast_to_OrderedTypeTripletPredicate(Object o) -> OrderedTypeTripletPredicate"""
1161  return _IMP_core._object_cast_to_OrderedTypeTripletPredicate(o)
1162 
1163 _object_types.append("OrderedTypeQuadPredicate")
1164 
1165 
1166 def _object_cast_to_OrderedTypeQuadPredicate(o):
1167  r"""_object_cast_to_OrderedTypeQuadPredicate(Object o) -> OrderedTypeQuadPredicate"""
1168  return _IMP_core._object_cast_to_OrderedTypeQuadPredicate(o)
1169 
1170 _object_types.append("AllSameSingletonPredicate")
1171 
1172 
1173 def _object_cast_to_AllSameSingletonPredicate(o):
1174  r"""_object_cast_to_AllSameSingletonPredicate(Object o) -> AllSameSingletonPredicate"""
1175  return _IMP_core._object_cast_to_AllSameSingletonPredicate(o)
1176 
1177 _object_types.append("AllSamePairPredicate")
1178 
1179 
1180 def _object_cast_to_AllSamePairPredicate(o):
1181  r"""_object_cast_to_AllSamePairPredicate(Object o) -> AllSamePairPredicate"""
1182  return _IMP_core._object_cast_to_AllSamePairPredicate(o)
1183 
1184 _object_types.append("AllSameTripletPredicate")
1185 
1186 
1187 def _object_cast_to_AllSameTripletPredicate(o):
1188  r"""_object_cast_to_AllSameTripletPredicate(Object o) -> AllSameTripletPredicate"""
1189  return _IMP_core._object_cast_to_AllSameTripletPredicate(o)
1190 
1191 _object_types.append("AllSameQuadPredicate")
1192 
1193 
1194 def _object_cast_to_AllSameQuadPredicate(o):
1195  r"""_object_cast_to_AllSameQuadPredicate(Object o) -> AllSameQuadPredicate"""
1196  return _IMP_core._object_cast_to_AllSameQuadPredicate(o)
1197 
1198 def XYZs(l=[]):
1199  return [XYZ(x) for x in l]
1200 _plural_types.append("XYZs")
1201 
1202 
1203 _value_types.append("XYZ")
1204 
1205 
1206 def XYZRs(l=[]):
1207  return [XYZR(x) for x in l]
1208 _plural_types.append("XYZRs")
1209 
1210 
1211 _value_types.append("XYZR")
1212 
1213 
1214 def RigidBodies(l=[]):
1215  return [RigidBody(x) for x in l]
1216 _plural_types.append("RigidBodies")
1217 
1218 
1219 _value_types.append("RigidBody")
1220 
1221 
1222 def RigidBodyMembers(l=[]):
1223  return [RigidBodyMember(x) for x in l]
1224 _plural_types.append("RigidBodyMembers")
1225 
1226 
1227 _value_types.append("RigidBodyMember")
1228 
1229 
1230 def RigidMembers(l=[]):
1231  return [RigidMember(x) for x in l]
1232 _plural_types.append("RigidMembers")
1233 
1234 
1235 _value_types.append("RigidMember")
1236 
1237 
1238 def NonRigidMembers(l=[]):
1239  return [NonRigidMember(x) for x in l]
1240 _plural_types.append("NonRigidMembers")
1241 
1242 
1243 _value_types.append("NonRigidMember")
1244 
1245 
1246 def Centroids(l=[]):
1247  return [Centroid(x) for x in l]
1248 _plural_types.append("Centroids")
1249 
1250 
1251 _value_types.append("Centroid")
1252 
1253 
1254 def Covers(l=[]):
1255  return [Cover(x) for x in l]
1256 _plural_types.append("Covers")
1257 
1258 
1259 _value_types.append("Cover")
1260 
1261 
1262 def References(l=[]):
1263  return [Reference(x) for x in l]
1264 _plural_types.append("References")
1265 
1266 
1267 _value_types.append("Reference")
1268 
1269 
1270 ParticleTypes=list
1271 _plural_types.append("ParticleTypes")
1272 _value_types.append("ParticleType")
1273 
1274 
1275 def Typeds(l=[]):
1276  return [Typed(x) for x in l]
1277 _plural_types.append("Typeds")
1278 
1279 
1280 _value_types.append("Typed")
1281 
1282 
1283 def GenericHierarchies(l=[]):
1284  return [Hierarchy(x) for x in l]
1285 _plural_types.append("GenericHierarchies")
1286 
1287 
1288 _value_types.append("Hierarchy")
1289 
1290 
1291 def Gaussians(l=[]):
1292  return [Gaussian(x) for x in l]
1293 _plural_types.append("Gaussians")
1294 
1295 
1296 _value_types.append("Gaussian")
1297 
1298 
1299 def Directions(l=[]):
1300  return [Direction(x) for x in l]
1301 _plural_types.append("Directions")
1302 
1303 
1304 _value_types.append("Direction")
1305 
1306 
1307 def DirectionAngles(l=[]):
1308  return [DirectionAngle(x) for x in l]
1309 _plural_types.append("DirectionAngles")
1310 
1311 
1312 _value_types.append("DirectionAngle")
1313 
1314 
1315 def Surfaces(l=[]):
1316  return [Surface(x) for x in l]
1317 _plural_types.append("Surfaces")
1318 
1319 
1320 _value_types.append("Surface")
1321 
1322 
1323 def Provenances(l=[]):
1324  return [Provenance(x) for x in l]
1325 _plural_types.append("Provenances")
1326 
1327 
1328 _value_types.append("Provenance")
1329 
1330 
1331 def StructureProvenances(l=[]):
1332  return [StructureProvenance(x) for x in l]
1333 _plural_types.append("StructureProvenances")
1334 
1335 
1336 _value_types.append("StructureProvenance")
1337 
1338 
1339 def SampleProvenances(l=[]):
1340  return [SampleProvenance(x) for x in l]
1341 _plural_types.append("SampleProvenances")
1342 
1343 
1344 _value_types.append("SampleProvenance")
1345 
1346 
1347 def ClusterProvenances(l=[]):
1348  return [ClusterProvenance(x) for x in l]
1349 _plural_types.append("ClusterProvenances")
1350 
1351 
1352 _value_types.append("ClusterProvenance")
1353 
1354 
1355 def CombineProvenances(l=[]):
1356  return [CombineProvenance(x) for x in l]
1357 _plural_types.append("CombineProvenances")
1358 
1359 
1360 _value_types.append("CombineProvenance")
1361 
1362 
1363 def FilterProvenances(l=[]):
1364  return [FilterProvenance(x) for x in l]
1365 _plural_types.append("FilterProvenances")
1366 
1367 
1368 _value_types.append("FilterProvenance")
1369 
1370 
1371 def ScriptProvenances(l=[]):
1372  return [ScriptProvenance(x) for x in l]
1373 _plural_types.append("ScriptProvenances")
1374 
1375 
1376 _value_types.append("ScriptProvenance")
1377 
1378 
1379 def SoftwareProvenances(l=[]):
1380  return [SoftwareProvenance(x) for x in l]
1381 _plural_types.append("SoftwareProvenances")
1382 
1383 
1384 _value_types.append("SoftwareProvenance")
1385 
1386 
1387 def Provenanceds(l=[]):
1388  return [Provenanced(x) for x in l]
1389 _plural_types.append("Provenanceds")
1390 
1391 
1392 _value_types.append("Provenanced")
1393 
1394 
1395 HierarchyCounters=list
1396 _plural_types.append("HierarchyCounters")
1397 _value_types.append("HierarchyCounter")
1398 
1399 
1400 HierarchyTraitsList=list
1401 _plural_types.append("HierarchyTraitsList")
1402 _value_types.append("HierarchyTraits")
1403 
1404 
1405 _object_types.append("TruncatedHarmonicBound")
1406 
1407 
1408 def _object_cast_to_TruncatedHarmonicBound(o):
1409  r"""_object_cast_to_TruncatedHarmonicBound(Object o) -> TruncatedHarmonicBound"""
1410  return _IMP_core._object_cast_to_TruncatedHarmonicBound(o)
1411 
1412 _object_types.append("TruncatedHarmonicLowerBound")
1413 
1414 
1415 def _object_cast_to_TruncatedHarmonicLowerBound(o):
1416  r"""_object_cast_to_TruncatedHarmonicLowerBound(Object o) -> TruncatedHarmonicLowerBound"""
1417  return _IMP_core._object_cast_to_TruncatedHarmonicLowerBound(o)
1418 
1419 _object_types.append("TruncatedHarmonicUpperBound")
1420 
1421 
1422 def _object_cast_to_TruncatedHarmonicUpperBound(o):
1423  r"""_object_cast_to_TruncatedHarmonicUpperBound(Object o) -> TruncatedHarmonicUpperBound"""
1424  return _IMP_core._object_cast_to_TruncatedHarmonicUpperBound(o)
1425 
1426 _object_types.append("HarmonicDistancePairScore")
1427 
1428 
1429 def _object_cast_to_HarmonicDistancePairScore(o):
1430  r"""_object_cast_to_HarmonicDistancePairScore(Object o) -> HarmonicDistancePairScore"""
1431  return _IMP_core._object_cast_to_HarmonicDistancePairScore(o)
1432 
1433 _object_types.append("DistancePairScore")
1434 
1435 
1436 def _object_cast_to_DistancePairScore(o):
1437  r"""_object_cast_to_DistancePairScore(Object o) -> DistancePairScore"""
1438  return _IMP_core._object_cast_to_DistancePairScore(o)
1439 
1440 _object_types.append("XYZRGeometry")
1441 
1442 
1443 def _object_cast_to_XYZRGeometry(o):
1444  r"""_object_cast_to_XYZRGeometry(Object o) -> XYZRGeometry"""
1445  return _IMP_core._object_cast_to_XYZRGeometry(o)
1446 
1447 _object_types.append("XYZRsGeometry")
1448 
1449 
1450 def _object_cast_to_XYZRsGeometry(o):
1451  r"""_object_cast_to_XYZRsGeometry(Object o) -> XYZRsGeometry"""
1452  return _IMP_core._object_cast_to_XYZRsGeometry(o)
1453 
1454 _object_types.append("XYZDerivativeGeometry")
1455 
1456 
1457 def _object_cast_to_XYZDerivativeGeometry(o):
1458  r"""_object_cast_to_XYZDerivativeGeometry(Object o) -> XYZDerivativeGeometry"""
1459  return _IMP_core._object_cast_to_XYZDerivativeGeometry(o)
1460 
1461 _object_types.append("XYZDerivativesGeometry")
1462 
1463 
1464 def _object_cast_to_XYZDerivativesGeometry(o):
1465  r"""_object_cast_to_XYZDerivativesGeometry(Object o) -> XYZDerivativesGeometry"""
1466  return _IMP_core._object_cast_to_XYZDerivativesGeometry(o)
1467 
1468 _object_types.append("RigidBodyDerivativeGeometry")
1469 
1470 
1471 def _object_cast_to_RigidBodyDerivativeGeometry(o):
1472  r"""_object_cast_to_RigidBodyDerivativeGeometry(Object o) -> RigidBodyDerivativeGeometry"""
1473  return _IMP_core._object_cast_to_RigidBodyDerivativeGeometry(o)
1474 
1475 _object_types.append("RigidBodyDerivativesGeometry")
1476 
1477 
1478 def _object_cast_to_RigidBodyDerivativesGeometry(o):
1479  r"""_object_cast_to_RigidBodyDerivativesGeometry(Object o) -> RigidBodyDerivativesGeometry"""
1480  return _IMP_core._object_cast_to_RigidBodyDerivativesGeometry(o)
1481 
1482 _object_types.append("RigidBodyHierarchyGeometry")
1483 
1484 
1485 def _object_cast_to_RigidBodyHierarchyGeometry(o):
1486  r"""_object_cast_to_RigidBodyHierarchyGeometry(Object o) -> RigidBodyHierarchyGeometry"""
1487  return _IMP_core._object_cast_to_RigidBodyHierarchyGeometry(o)
1488 
1489 _object_types.append("RigidBodyFrameGeometry")
1490 
1491 
1492 def _object_cast_to_RigidBodyFrameGeometry(o):
1493  r"""_object_cast_to_RigidBodyFrameGeometry(Object o) -> RigidBodyFrameGeometry"""
1494  return _IMP_core._object_cast_to_RigidBodyFrameGeometry(o)
1495 
1496 _object_types.append("RigidBodyFramesGeometry")
1497 
1498 
1499 def _object_cast_to_RigidBodyFramesGeometry(o):
1500  r"""_object_cast_to_RigidBodyFramesGeometry(Object o) -> RigidBodyFramesGeometry"""
1501  return _IMP_core._object_cast_to_RigidBodyFramesGeometry(o)
1502 
1503 _object_types.append("RigidBodyTorque")
1504 
1505 
1506 def _object_cast_to_RigidBodyTorque(o):
1507  r"""_object_cast_to_RigidBodyTorque(Object o) -> RigidBodyTorque"""
1508  return _IMP_core._object_cast_to_RigidBodyTorque(o)
1509 
1510 _object_types.append("EdgePairGeometry")
1511 
1512 
1513 def _object_cast_to_EdgePairGeometry(o):
1514  r"""_object_cast_to_EdgePairGeometry(Object o) -> EdgePairGeometry"""
1515  return _IMP_core._object_cast_to_EdgePairGeometry(o)
1516 
1517 _object_types.append("EdgePairsGeometry")
1518 
1519 
1520 def _object_cast_to_EdgePairsGeometry(o):
1521  r"""_object_cast_to_EdgePairsGeometry(Object o) -> EdgePairsGeometry"""
1522  return _IMP_core._object_cast_to_EdgePairsGeometry(o)
1523 
1524 _object_types.append("SurfaceGeometry")
1525 
1526 
1527 def _object_cast_to_SurfaceGeometry(o):
1528  r"""_object_cast_to_SurfaceGeometry(Object o) -> SurfaceGeometry"""
1529  return _IMP_core._object_cast_to_SurfaceGeometry(o)
1530 
1531 _object_types.append("SurfaceGeometryConstraint")
1532 
1533 
1534 def _object_cast_to_SurfaceGeometryConstraint(o):
1535  r"""_object_cast_to_SurfaceGeometryConstraint(Object o) -> SurfaceGeometryConstraint"""
1536  return _IMP_core._object_cast_to_SurfaceGeometryConstraint(o)
1537 
1538 _object_types.append("AttributeSingletonPredicate")
1539 
1540 
1541 def _object_cast_to_AttributeSingletonPredicate(o):
1542  r"""_object_cast_to_AttributeSingletonPredicate(Object o) -> AttributeSingletonPredicate"""
1543  return _IMP_core._object_cast_to_AttributeSingletonPredicate(o)
1544 
1545 _object_types.append("InBoundingBox3DSingletonPredicate")
1546 
1547 
1548 def _object_cast_to_InBoundingBox3DSingletonPredicate(o):
1549  r"""_object_cast_to_InBoundingBox3DSingletonPredicate(Object o) -> InBoundingBox3DSingletonPredicate"""
1550  return _IMP_core._object_cast_to_InBoundingBox3DSingletonPredicate(o)
1551 
1552 _object_types.append("IsCollisionPairPredicate")
1553 
1554 
1555 def _object_cast_to_IsCollisionPairPredicate(o):
1556  r"""_object_cast_to_IsCollisionPairPredicate(Object o) -> IsCollisionPairPredicate"""
1557  return _IMP_core._object_cast_to_IsCollisionPairPredicate(o)
1558 
1559 BinormalTermList=list
1560 _plural_types.append("BinormalTermList")
1561 _value_types.append("BinormalTerm")
1562 
1563 
1564 _object_types.append("MultipleBinormalRestraint")
1565 
1566 
1567 def _object_cast_to_MultipleBinormalRestraint(o):
1568  r"""_object_cast_to_MultipleBinormalRestraint(Object o) -> MultipleBinormalRestraint"""
1569  return _IMP_core._object_cast_to_MultipleBinormalRestraint(o)
1570 class ClosePairsFinder(IMP._ParticleInputs, IMP.Object):
1571  r"""Proxy of C++ IMP::core::ClosePairsFinder class."""
1572 
1573  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1574 
1575  def __init__(self, *args, **kwargs):
1576  raise AttributeError("No constructor defined - class is abstract")
1577  __swig_destroy__ = _IMP_core.delete_ClosePairsFinder
1578 
1579  def get_close_pairs(self, *args):
1580  r"""
1581  get_close_pairs(ClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
1582  get_close_pairs(ClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
1583  get_close_pairs(ClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
1584  get_close_pairs(ClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
1585  """
1586  return _IMP_core.ClosePairsFinder_get_close_pairs(self, *args)
1587 
1588  def set_distance(self, d):
1589  r"""set_distance(ClosePairsFinder self, double d)"""
1590  return _IMP_core.ClosePairsFinder_set_distance(self, d)
1591 
1592  def get_distance(self):
1593  r"""get_distance(ClosePairsFinder self) -> double"""
1594  return _IMP_core.ClosePairsFinder_get_distance(self)
1595  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)
1596  def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
1597  def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
1598  pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc="List of ##ucnames")
1599 
1600  def remove_pair_filter(self, d):
1601  r"""remove_pair_filter(ClosePairsFinder self, PairPredicate d)"""
1602  return _IMP_core.ClosePairsFinder_remove_pair_filter(self, d)
1603 
1604  def _python_index_pair_filter(self, d, start, stop):
1605  r"""_python_index_pair_filter(ClosePairsFinder self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
1606  return _IMP_core.ClosePairsFinder__python_index_pair_filter(self, d, start, stop)
1607 
1608  def remove_pair_filters(self, d):
1609  r"""remove_pair_filters(ClosePairsFinder self, IMP::PairPredicates const & d)"""
1610  return _IMP_core.ClosePairsFinder_remove_pair_filters(self, d)
1611 
1612  def set_pair_filters(self, ps):
1613  r"""set_pair_filters(ClosePairsFinder self, IMP::PairPredicates const & ps)"""
1614  return _IMP_core.ClosePairsFinder_set_pair_filters(self, ps)
1615 
1616  def set_pair_filters_order(self, objs):
1617  r"""set_pair_filters_order(ClosePairsFinder self, IMP::PairPredicates const & objs)"""
1618  return _IMP_core.ClosePairsFinder_set_pair_filters_order(self, objs)
1619 
1620  def add_pair_filter(self, obj):
1621  r"""add_pair_filter(ClosePairsFinder self, PairPredicate obj) -> unsigned int"""
1622  return _IMP_core.ClosePairsFinder_add_pair_filter(self, obj)
1623 
1624  def add_pair_filters(self, objs):
1625  r"""add_pair_filters(ClosePairsFinder self, IMP::PairPredicates const & objs)"""
1626  return _IMP_core.ClosePairsFinder_add_pair_filters(self, objs)
1627 
1628  def clear_pair_filters(self):
1629  r"""clear_pair_filters(ClosePairsFinder self)"""
1630  return _IMP_core.ClosePairsFinder_clear_pair_filters(self)
1631 
1632  def get_number_of_pair_filters(self):
1633  r"""get_number_of_pair_filters(ClosePairsFinder self) -> unsigned int"""
1634  return _IMP_core.ClosePairsFinder_get_number_of_pair_filters(self)
1635 
1636  def get_has_pair_filters(self):
1637  r"""get_has_pair_filters(ClosePairsFinder self) -> bool"""
1638  return _IMP_core.ClosePairsFinder_get_has_pair_filters(self)
1639 
1640  def get_pair_filter(self, i):
1641  r"""get_pair_filter(ClosePairsFinder self, unsigned int i) -> PairPredicate"""
1642  return _IMP_core.ClosePairsFinder_get_pair_filter(self, i)
1643 
1644  def get_pair_filters(self):
1645  r"""get_pair_filters(ClosePairsFinder self) -> IMP::PairPredicates"""
1646  return _IMP_core.ClosePairsFinder_get_pair_filters(self)
1647 
1648  def erase_pair_filter(self, i):
1649  r"""erase_pair_filter(ClosePairsFinder self, unsigned int i)"""
1650  return _IMP_core.ClosePairsFinder_erase_pair_filter(self, i)
1651 
1652  def reserve_pair_filters(self, sz):
1653  r"""reserve_pair_filters(ClosePairsFinder self, unsigned int sz)"""
1654  return _IMP_core.ClosePairsFinder_reserve_pair_filters(self, sz)
1655 
1656  def __str__(self):
1657  r"""__str__(ClosePairsFinder self) -> std::string"""
1658  return _IMP_core.ClosePairsFinder___str__(self)
1659 
1660  def __repr__(self):
1661  r"""__repr__(ClosePairsFinder self) -> std::string"""
1662  return _IMP_core.ClosePairsFinder___repr__(self)
1663 
1664  @staticmethod
1665  def get_from(o):
1666  return _object_cast_to_ClosePairsFinder(o)
1667 
1668 
1669 # Register ClosePairsFinder in _IMP_core:
1670 _IMP_core.ClosePairsFinder_swigregister(ClosePairsFinder)
1671 class MonteCarloMoverResult(IMP._Value):
1672  r"""Proxy of C++ IMP::core::MonteCarloMoverResult class."""
1673 
1674  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1675 
1676  def __init__(self, *args):
1677  r"""__init__(MonteCarloMoverResult self, IMP::ParticleIndexes i0=IMP::ParticleIndexes(), double i1=double()) -> MonteCarloMoverResult"""
1678  _IMP_core.MonteCarloMoverResult_swiginit(self, _IMP_core.new_MonteCarloMoverResult(*args))
1679 
1680  def __hash__(self):
1681  r"""__hash__(MonteCarloMoverResult self) -> std::size_t"""
1682  return _IMP_core.MonteCarloMoverResult___hash__(self)
1683 
1684  def show(self, *args):
1685  r"""show(MonteCarloMoverResult self, _ostream out=std::cout)"""
1686  return _IMP_core.MonteCarloMoverResult_show(self, *args)
1687 
1688  def __cmp__(self, o):
1689  r"""__cmp__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> int"""
1690  return _IMP_core.MonteCarloMoverResult___cmp__(self, o)
1691 
1692  def __eq__(self, o):
1693  r"""__eq__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1694  return _IMP_core.MonteCarloMoverResult___eq__(self, o)
1695 
1696  def __ne__(self, o):
1697  r"""__ne__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1698  return _IMP_core.MonteCarloMoverResult___ne__(self, o)
1699 
1700  def __lt__(self, o):
1701  r"""__lt__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1702  return _IMP_core.MonteCarloMoverResult___lt__(self, o)
1703 
1704  def __gt__(self, o):
1705  r"""__gt__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1706  return _IMP_core.MonteCarloMoverResult___gt__(self, o)
1707 
1708  def __ge__(self, o):
1709  r"""__ge__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1710  return _IMP_core.MonteCarloMoverResult___ge__(self, o)
1711 
1712  def __le__(self, o):
1713  r"""__le__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1714  return _IMP_core.MonteCarloMoverResult___le__(self, o)
1715 
1716  def get_moved_particles(self):
1717  r"""get_moved_particles(MonteCarloMoverResult self) -> IMP::ParticleIndexes const &"""
1718  return _IMP_core.MonteCarloMoverResult_get_moved_particles(self)
1719 
1720  def set_moved_particles(self, v):
1721  r"""set_moved_particles(MonteCarloMoverResult self, IMP::ParticleIndexes const & v)"""
1722  return _IMP_core.MonteCarloMoverResult_set_moved_particles(self, v)
1723 
1724  def get_proposal_ratio(self):
1725  r"""get_proposal_ratio(MonteCarloMoverResult self) -> double const &"""
1726  return _IMP_core.MonteCarloMoverResult_get_proposal_ratio(self)
1727 
1728  def set_proposal_ratio(self, v):
1729  r"""set_proposal_ratio(MonteCarloMoverResult self, double const & v)"""
1730  return _IMP_core.MonteCarloMoverResult_set_proposal_ratio(self, v)
1731 
1732  def __str__(self):
1733  r"""__str__(MonteCarloMoverResult self) -> std::string"""
1734  return _IMP_core.MonteCarloMoverResult___str__(self)
1735 
1736  def __repr__(self):
1737  r"""__repr__(MonteCarloMoverResult self) -> std::string"""
1738  return _IMP_core.MonteCarloMoverResult___repr__(self)
1739  __swig_destroy__ = _IMP_core.delete_MonteCarloMoverResult
1740 
1741 # Register MonteCarloMoverResult in _IMP_core:
1742 _IMP_core.MonteCarloMoverResult_swigregister(MonteCarloMoverResult)
1743 class MonteCarloMover(IMP.ModelObject):
1744  r"""Proxy of C++ IMP::core::MonteCarloMover class."""
1745 
1746  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1747 
1748  def __init__(self, *args):
1749  r"""
1750  __init__(MonteCarloMover self, Model m, std::string name) -> MonteCarloMover
1751  __init__(MonteCarloMover self) -> MonteCarloMover
1752  """
1753  if self.__class__ == MonteCarloMover:
1754  _self = None
1755  else:
1756  _self = self
1757  _IMP_core.MonteCarloMover_swiginit(self, _IMP_core.new_MonteCarloMover(_self, *args))
1758 
1759  if self.__class__ != MonteCarloMover:
1760  _director_objects.register(self)
1761 
1762 
1763 
1764 
1765  def propose(self):
1766  r"""propose(MonteCarloMover self) -> MonteCarloMoverResult"""
1767  return _IMP_core.MonteCarloMover_propose(self)
1768 
1769  def reject(self):
1770  r"""reject(MonteCarloMover self)"""
1771  return _IMP_core.MonteCarloMover_reject(self)
1772 
1773  def accept(self):
1774  r"""accept(MonteCarloMover self)"""
1775  return _IMP_core.MonteCarloMover_accept(self)
1776 
1777  def get_number_of_proposed(self):
1778  r"""get_number_of_proposed(MonteCarloMover self) -> unsigned int"""
1779  return _IMP_core.MonteCarloMover_get_number_of_proposed(self)
1780 
1781  def get_number_of_accepted(self):
1782  r"""get_number_of_accepted(MonteCarloMover self) -> unsigned int"""
1783  return _IMP_core.MonteCarloMover_get_number_of_accepted(self)
1784 
1785  def reset_statistics(self):
1786  r"""reset_statistics(MonteCarloMover self)"""
1787  return _IMP_core.MonteCarloMover_reset_statistics(self)
1788 
1789  def do_propose(self):
1790  r"""do_propose(MonteCarloMover self) -> MonteCarloMoverResult"""
1791  return _IMP_core.MonteCarloMover_do_propose(self)
1792 
1793  def do_reject(self):
1794  r"""do_reject(MonteCarloMover self)"""
1795  return _IMP_core.MonteCarloMover_do_reject(self)
1796 
1797  def do_accept(self):
1798  r"""do_accept(MonteCarloMover self)"""
1799  return _IMP_core.MonteCarloMover_do_accept(self)
1800 
1801  def do_get_outputs(self):
1802  r"""do_get_outputs(MonteCarloMover self) -> IMP::ModelObjectsTemp"""
1803  return _IMP_core.MonteCarloMover_do_get_outputs(self)
1804 
1805  def __str__(self):
1806  r"""__str__(MonteCarloMover self) -> std::string"""
1807  return _IMP_core.MonteCarloMover___str__(self)
1808 
1809  def __repr__(self):
1810  r"""__repr__(MonteCarloMover self) -> std::string"""
1811  return _IMP_core.MonteCarloMover___repr__(self)
1812 
1813  @staticmethod
1814  def get_from(o):
1815  return _object_cast_to_MonteCarloMover(o)
1816 
1817 
1818  def get_type_name(self):
1819  return self.__class__.__name__
1820  def do_show(self, out):
1821  pass
1822  def get_version_info(self):
1823  if"IMP::core" == "IMP":
1824  return VersionInfo(self.__module__,
1825  __import__(self.__module__).get_module_version())
1826  else:
1827  return IMP.VersionInfo(self.__module__,
1828  __import__(self.__module__).get_module_version())
1829  @staticmethod
1830  def get_from(o):
1831  return _object_cast_to_MonteCarloMover(o)
1832 
1833  __swig_destroy__ = _IMP_core.delete_MonteCarloMover
1834  def __disown__(self):
1835  self.this.disown()
1836  _IMP_core.disown_MonteCarloMover(self)
1837  return weakref.proxy(self)
1838 
1839  def do_destroy(self):
1840  r"""do_destroy(MonteCarloMover self)"""
1841  return _IMP_core.MonteCarloMover_do_destroy(self)
1842 
1843  def handle_set_has_required_score_states(self, arg0):
1844  r"""handle_set_has_required_score_states(MonteCarloMover self, bool arg0)"""
1845  return _IMP_core.MonteCarloMover_handle_set_has_required_score_states(self, arg0)
1846 
1847  def do_get_inputs(self):
1848  r"""do_get_inputs(MonteCarloMover self) -> IMP::ModelObjectsTemp"""
1849  return _IMP_core.MonteCarloMover_do_get_inputs(self)
1850 
1851  def do_get_interactions(self):
1852  r"""do_get_interactions(MonteCarloMover self) -> IMP::ModelObjectsTemps"""
1853  return _IMP_core.MonteCarloMover_do_get_interactions(self)
1854 
1855 # Register MonteCarloMover in _IMP_core:
1856 _IMP_core.MonteCarloMover_swigregister(MonteCarloMover)
1857 class XYZ(IMP.Decorator):
1858  r"""Proxy of C++ IMP::core::XYZ class."""
1859 
1860  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1861 
1862  @staticmethod
1863  def get_coordinate_key(i):
1864  r"""get_coordinate_key(unsigned int i) -> FloatKey"""
1865  return _IMP_core.XYZ_get_coordinate_key(i)
1866 
1867  def __init__(self, *args):
1868  r"""
1869  __init__(XYZ self) -> XYZ
1870  __init__(XYZ self, Model m, ParticleIndex id) -> XYZ
1871  __init__(XYZ self, _ParticleAdaptor d) -> XYZ
1872  """
1873  _IMP_core.XYZ_swiginit(self, _IMP_core.new_XYZ(*args))
1874 
1875  def show(self, *args):
1876  r"""show(XYZ self, _ostream out=std::cout)"""
1877  return _IMP_core.XYZ_show(self, *args)
1878 
1879  @staticmethod
1880  def setup_particle(*args):
1881  r"""
1882  setup_particle(Model m, ParticleIndex pi) -> XYZ
1883  setup_particle(_ParticleAdaptor pa) -> XYZ
1884  setup_particle(Model m, ParticleIndex pi, Vector3D v) -> XYZ
1885  setup_particle(_ParticleAdaptor pa, Vector3D v) -> XYZ
1886  """
1887  return _IMP_core.XYZ_setup_particle(*args)
1888 
1889  def get_x(self):
1890  r"""get_x(XYZ self) -> IMP::Float"""
1891  return _IMP_core.XYZ_get_x(self)
1892 
1893  def set_x(self, t):
1894  r"""set_x(XYZ self, IMP::Float t)"""
1895  return _IMP_core.XYZ_set_x(self, t)
1896 
1897  def get_y(self):
1898  r"""get_y(XYZ self) -> IMP::Float"""
1899  return _IMP_core.XYZ_get_y(self)
1900 
1901  def set_y(self, t):
1902  r"""set_y(XYZ self, IMP::Float t)"""
1903  return _IMP_core.XYZ_set_y(self, t)
1904 
1905  def get_z(self):
1906  r"""get_z(XYZ self) -> IMP::Float"""
1907  return _IMP_core.XYZ_get_z(self)
1908 
1909  def set_z(self, t):
1910  r"""set_z(XYZ self, IMP::Float t)"""
1911  return _IMP_core.XYZ_set_z(self, t)
1912 
1913  def set_coordinate(self, i, v):
1914  r"""set_coordinate(XYZ self, unsigned int i, IMP::Float v)"""
1915  return _IMP_core.XYZ_set_coordinate(self, i, v)
1916 
1917  def set_coordinates(self, v):
1918  r"""set_coordinates(XYZ self, Vector3D v)"""
1919  return _IMP_core.XYZ_set_coordinates(self, v)
1920 
1921  def get_coordinate(self, i):
1922  r"""get_coordinate(XYZ self, int i) -> IMP::Float"""
1923  return _IMP_core.XYZ_get_coordinate(self, i)
1924 
1925  def add_to_derivatives(self, v, d):
1926  r"""add_to_derivatives(XYZ self, Vector3D v, DerivativeAccumulator d)"""
1927  return _IMP_core.XYZ_add_to_derivatives(self, v, d)
1928 
1929  def get_coordinates_are_optimized(self):
1930  r"""get_coordinates_are_optimized(XYZ self) -> bool"""
1931  return _IMP_core.XYZ_get_coordinates_are_optimized(self)
1932 
1933  def set_coordinates_are_optimized(self, tf):
1934  r"""set_coordinates_are_optimized(XYZ self, bool tf)"""
1935  return _IMP_core.XYZ_set_coordinates_are_optimized(self, tf)
1936 
1937  def get_vector_to(self, b):
1938  r"""get_vector_to(XYZ self, XYZ b) -> Vector3D"""
1939  return _IMP_core.XYZ_get_vector_to(self, b)
1940 
1941  def get_coordinates(self):
1942  r"""get_coordinates(XYZ self) -> Vector3D"""
1943  return _IMP_core.XYZ_get_coordinates(self)
1944 
1945  def get_derivatives(self):
1946  r"""get_derivatives(XYZ self) -> Vector3D"""
1947  return _IMP_core.XYZ_get_derivatives(self)
1948 
1949  @staticmethod
1950  def get_is_setup(*args):
1951  r"""
1952  get_is_setup(_ParticleAdaptor p) -> bool
1953  get_is_setup(Model m, ParticleIndex pi) -> bool
1954  """
1955  return _IMP_core.XYZ_get_is_setup(*args)
1956 
1957  @staticmethod
1958  def get_xyz_keys():
1959  r"""get_xyz_keys() -> IMP::FloatKeys const &"""
1960  return _IMP_core.XYZ_get_xyz_keys()
1961 
1962  def add_attribute(self, *args):
1963  r"""
1964  add_attribute(XYZ self, FloatKey k, IMP::Float v, bool opt)
1965  add_attribute(XYZ self, FloatKey a0, IMP::Float a1)
1966  add_attribute(XYZ self, IntKey a0, IMP::Int a1)
1967  add_attribute(XYZ self, FloatsKey a0, IMP::Floats a1)
1968  add_attribute(XYZ self, IntsKey a0, IMP::Ints a1)
1969  add_attribute(XYZ self, StringKey a0, IMP::String a1)
1970  add_attribute(XYZ self, ParticleIndexKey a0, Particle a1)
1971  add_attribute(XYZ self, ObjectKey a0, Object a1)
1972  add_attribute(XYZ self, SparseFloatKey a0, IMP::Float a1)
1973  add_attribute(XYZ self, SparseIntKey a0, IMP::Int a1)
1974  add_attribute(XYZ self, SparseStringKey a0, IMP::String a1)
1975  add_attribute(XYZ self, SparseParticleIndexKey a0, ParticleIndex a1)
1976  """
1977  return _IMP_core.XYZ_add_attribute(self, *args)
1978 
1979  def get_value(self, *args):
1980  r"""
1981  get_value(XYZ self, FloatKey a0) -> IMP::Float
1982  get_value(XYZ self, IntKey a0) -> IMP::Int
1983  get_value(XYZ self, FloatsKey a0) -> IMP::Floats
1984  get_value(XYZ self, IntsKey a0) -> IMP::Ints
1985  get_value(XYZ self, StringKey a0) -> IMP::String
1986  get_value(XYZ self, ParticleIndexKey a0) -> Particle
1987  get_value(XYZ self, ObjectKey a0) -> Object
1988  get_value(XYZ self, SparseFloatKey a0) -> IMP::Float
1989  get_value(XYZ self, SparseIntKey a0) -> IMP::Int
1990  get_value(XYZ self, SparseStringKey a0) -> IMP::String
1991  get_value(XYZ self, SparseParticleIndexKey a0) -> ParticleIndex
1992  """
1993  return _IMP_core.XYZ_get_value(self, *args)
1994 
1995  def set_value(self, *args):
1996  r"""
1997  set_value(XYZ self, FloatKey a0, IMP::Float a1)
1998  set_value(XYZ self, IntKey a0, IMP::Int a1)
1999  set_value(XYZ self, FloatsKey a0, IMP::Floats a1)
2000  set_value(XYZ self, IntsKey a0, IMP::Ints a1)
2001  set_value(XYZ self, StringKey a0, IMP::String a1)
2002  set_value(XYZ self, ParticleIndexKey a0, Particle a1)
2003  set_value(XYZ self, ObjectKey a0, Object a1)
2004  set_value(XYZ self, SparseFloatKey a0, IMP::Float a1)
2005  set_value(XYZ self, SparseIntKey a0, IMP::Int a1)
2006  set_value(XYZ self, SparseStringKey a0, IMP::String a1)
2007  set_value(XYZ self, SparseParticleIndexKey a0, ParticleIndex a1)
2008  """
2009  return _IMP_core.XYZ_set_value(self, *args)
2010 
2011  def remove_attribute(self, *args):
2012  r"""
2013  remove_attribute(XYZ self, FloatKey a0)
2014  remove_attribute(XYZ self, IntKey a0)
2015  remove_attribute(XYZ self, FloatsKey a0)
2016  remove_attribute(XYZ self, IntsKey a0)
2017  remove_attribute(XYZ self, StringKey a0)
2018  remove_attribute(XYZ self, ParticleIndexKey a0)
2019  remove_attribute(XYZ self, ObjectKey a0)
2020  remove_attribute(XYZ self, SparseFloatKey a0)
2021  remove_attribute(XYZ self, SparseIntKey a0)
2022  remove_attribute(XYZ self, SparseStringKey a0)
2023  remove_attribute(XYZ self, SparseParticleIndexKey a0)
2024  """
2025  return _IMP_core.XYZ_remove_attribute(self, *args)
2026 
2027  def has_attribute(self, *args):
2028  r"""
2029  has_attribute(XYZ self, FloatKey a0) -> bool
2030  has_attribute(XYZ self, IntKey a0) -> bool
2031  has_attribute(XYZ self, FloatsKey a0) -> bool
2032  has_attribute(XYZ self, IntsKey a0) -> bool
2033  has_attribute(XYZ self, StringKey a0) -> bool
2034  has_attribute(XYZ self, ParticleIndexKey a0) -> bool
2035  has_attribute(XYZ self, ObjectKey a0) -> bool
2036  has_attribute(XYZ self, SparseFloatKey a0) -> bool
2037  has_attribute(XYZ self, SparseIntKey a0) -> bool
2038  has_attribute(XYZ self, SparseStringKey a0) -> bool
2039  has_attribute(XYZ self, SparseParticleIndexKey a0) -> bool
2040  """
2041  return _IMP_core.XYZ_has_attribute(self, *args)
2042 
2043  def get_derivative(self, *args):
2044  r"""
2045  get_derivative(XYZ self, int i) -> IMP::Float
2046  get_derivative(XYZ self, FloatKey a0) -> double
2047  """
2048  return _IMP_core.XYZ_get_derivative(self, *args)
2049 
2050  def get_name(self):
2051  r"""get_name(XYZ self) -> std::string"""
2052  return _IMP_core.XYZ_get_name(self)
2053 
2054  def clear_caches(self):
2055  r"""clear_caches(XYZ self)"""
2056  return _IMP_core.XYZ_clear_caches(self)
2057 
2058  def set_name(self, a0):
2059  r"""set_name(XYZ self, std::string a0)"""
2060  return _IMP_core.XYZ_set_name(self, a0)
2061 
2062  def set_check_level(self, a0):
2063  r"""set_check_level(XYZ self, IMP::CheckLevel a0)"""
2064  return _IMP_core.XYZ_set_check_level(self, a0)
2065 
2066  def add_to_derivative(self, *args):
2067  r"""
2068  add_to_derivative(XYZ self, int i, IMP::Float v, DerivativeAccumulator d)
2069  add_to_derivative(XYZ self, FloatKey a0, double a1, DerivativeAccumulator a2)
2070  """
2071  return _IMP_core.XYZ_add_to_derivative(self, *args)
2072 
2073  def set_is_optimized(self, a0, a1):
2074  r"""set_is_optimized(XYZ self, FloatKey a0, bool a1)"""
2075  return _IMP_core.XYZ_set_is_optimized(self, a0, a1)
2076 
2077  def get_is_optimized(self, a0):
2078  r"""get_is_optimized(XYZ self, FloatKey a0) -> bool"""
2079  return _IMP_core.XYZ_get_is_optimized(self, a0)
2080 
2081  def get_check_level(self):
2082  r"""get_check_level(XYZ self) -> IMP::CheckLevel"""
2083  return _IMP_core.XYZ_get_check_level(self)
2084 
2085  def __eq__(self, *args):
2086  r"""
2087  __eq__(XYZ self, XYZ o) -> bool
2088  __eq__(XYZ self, Particle d) -> bool
2089  """
2090  return _IMP_core.XYZ___eq__(self, *args)
2091 
2092  def __ne__(self, *args):
2093  r"""
2094  __ne__(XYZ self, XYZ o) -> bool
2095  __ne__(XYZ self, Particle d) -> bool
2096  """
2097  return _IMP_core.XYZ___ne__(self, *args)
2098 
2099  def __le__(self, *args):
2100  r"""
2101  __le__(XYZ self, XYZ o) -> bool
2102  __le__(XYZ self, Particle d) -> bool
2103  """
2104  return _IMP_core.XYZ___le__(self, *args)
2105 
2106  def __lt__(self, *args):
2107  r"""
2108  __lt__(XYZ self, XYZ o) -> bool
2109  __lt__(XYZ self, Particle d) -> bool
2110  """
2111  return _IMP_core.XYZ___lt__(self, *args)
2112 
2113  def __ge__(self, *args):
2114  r"""
2115  __ge__(XYZ self, XYZ o) -> bool
2116  __ge__(XYZ self, Particle d) -> bool
2117  """
2118  return _IMP_core.XYZ___ge__(self, *args)
2119 
2120  def __gt__(self, *args):
2121  r"""
2122  __gt__(XYZ self, XYZ o) -> bool
2123  __gt__(XYZ self, Particle d) -> bool
2124  """
2125  return _IMP_core.XYZ___gt__(self, *args)
2126 
2127  def __hash__(self):
2128  r"""__hash__(XYZ self) -> std::size_t"""
2129  return _IMP_core.XYZ___hash__(self)
2130 
2131  def __str__(self):
2132  r"""__str__(XYZ self) -> std::string"""
2133  return _IMP_core.XYZ___str__(self)
2134 
2135  def __repr__(self):
2136  r"""__repr__(XYZ self) -> std::string"""
2137  return _IMP_core.XYZ___repr__(self)
2138 
2139  def _get_as_binary(self):
2140  r"""_get_as_binary(XYZ self) -> PyObject *"""
2141  return _IMP_core.XYZ__get_as_binary(self)
2142 
2143  def _set_from_binary(self, p):
2144  r"""_set_from_binary(XYZ self, PyObject * p)"""
2145  return _IMP_core.XYZ__set_from_binary(self, p)
2146 
2147  def __getstate__(self):
2148  p = self._get_as_binary()
2149  if len(self.__dict__) > 1:
2150  d = self.__dict__.copy()
2151  del d['this']
2152  p = (d, p)
2153  return p
2154 
2155  def __setstate__(self, p):
2156  if not hasattr(self, 'this'):
2157  self.__init__()
2158  if isinstance(p, tuple):
2159  d, p = p
2160  self.__dict__.update(d)
2161  return self._set_from_binary(p)
2162 
2163  __swig_destroy__ = _IMP_core.delete_XYZ
2164 
2165 # Register XYZ in _IMP_core:
2166 _IMP_core.XYZ_swigregister(XYZ)
2167 
2168 def set_vector_geometry(d, v):
2169  r"""set_vector_geometry(XYZ d, Vector3D v)"""
2170  return _IMP_core.set_vector_geometry(d, v)
2171 
2172 def get_vector_geometry(d):
2173  r"""get_vector_geometry(XYZ d) -> Vector3D"""
2174  return _IMP_core.get_vector_geometry(d)
2175 
2176 def get_dihedral(a, b, c, d):
2177  r"""get_dihedral(XYZ a, XYZ b, XYZ c, XYZ d) -> double"""
2178  return _IMP_core.get_dihedral(a, b, c, d)
2179 class XYZR(XYZ):
2180  r"""Proxy of C++ IMP::core::XYZR class."""
2181 
2182  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2183 
2184  def __init__(self, *args):
2185  r"""
2186  __init__(XYZR self) -> XYZR
2187  __init__(XYZR self, Model m, ParticleIndex id) -> XYZR
2188  __init__(XYZR self, _ParticleAdaptor d) -> XYZR
2189  """
2190  _IMP_core.XYZR_swiginit(self, _IMP_core.new_XYZR(*args))
2191 
2192  def show(self, *args):
2193  r"""show(XYZR self, _ostream out=std::cout)"""
2194  return _IMP_core.XYZR_show(self, *args)
2195 
2196  @staticmethod
2197  def setup_particle(*args):
2198  r"""
2199  setup_particle(Model m, ParticleIndex pi) -> XYZR
2200  setup_particle(_ParticleAdaptor pa) -> XYZR
2201  setup_particle(Model m, ParticleIndex pi, IMP::Float radius) -> XYZR
2202  setup_particle(_ParticleAdaptor pa, IMP::Float radius) -> XYZR
2203  setup_particle(Model m, ParticleIndex pi, Sphere3D ball) -> XYZR
2204  setup_particle(_ParticleAdaptor pa, Sphere3D ball) -> XYZR
2205  """
2206  return _IMP_core.XYZR_setup_particle(*args)
2207 
2208  @staticmethod
2209  def get_is_setup(*args):
2210  r"""
2211  get_is_setup(_ParticleAdaptor p) -> bool
2212  get_is_setup(Model m, ParticleIndex pi) -> bool
2213  """
2214  return _IMP_core.XYZR_get_is_setup(*args)
2215 
2216  def get_radius(self):
2217  r"""get_radius(XYZR self) -> double"""
2218  return _IMP_core.XYZR_get_radius(self)
2219 
2220  def set_radius(self, r):
2221  r"""set_radius(XYZR self, double r)"""
2222  return _IMP_core.XYZR_set_radius(self, r)
2223 
2224  def get_sphere(self):
2225  r"""get_sphere(XYZR self) -> Sphere3D"""
2226  return _IMP_core.XYZR_get_sphere(self)
2227 
2228  def set_sphere(self, s):
2229  r"""set_sphere(XYZR self, Sphere3D s)"""
2230  return _IMP_core.XYZR_set_sphere(self, s)
2231 
2232  @staticmethod
2233  def get_radius_key():
2234  r"""get_radius_key() -> FloatKey"""
2235  return _IMP_core.XYZR_get_radius_key()
2236 
2237  def add_to_radius_derivative(self, v, d):
2238  r"""add_to_radius_derivative(XYZR self, double v, DerivativeAccumulator d)"""
2239  return _IMP_core.XYZR_add_to_radius_derivative(self, v, d)
2240 
2241  def add_attribute(self, *args):
2242  r"""
2243  add_attribute(XYZR self, FloatKey k, IMP::Float v, bool opt)
2244  add_attribute(XYZR self, FloatKey a0, IMP::Float a1)
2245  add_attribute(XYZR self, IntKey a0, IMP::Int a1)
2246  add_attribute(XYZR self, FloatsKey a0, IMP::Floats a1)
2247  add_attribute(XYZR self, IntsKey a0, IMP::Ints a1)
2248  add_attribute(XYZR self, StringKey a0, IMP::String a1)
2249  add_attribute(XYZR self, ParticleIndexKey a0, Particle a1)
2250  add_attribute(XYZR self, ObjectKey a0, Object a1)
2251  add_attribute(XYZR self, SparseFloatKey a0, IMP::Float a1)
2252  add_attribute(XYZR self, SparseIntKey a0, IMP::Int a1)
2253  add_attribute(XYZR self, SparseStringKey a0, IMP::String a1)
2254  add_attribute(XYZR self, SparseParticleIndexKey a0, ParticleIndex a1)
2255  """
2256  return _IMP_core.XYZR_add_attribute(self, *args)
2257 
2258  def get_value(self, *args):
2259  r"""
2260  get_value(XYZR self, FloatKey a0) -> IMP::Float
2261  get_value(XYZR self, IntKey a0) -> IMP::Int
2262  get_value(XYZR self, FloatsKey a0) -> IMP::Floats
2263  get_value(XYZR self, IntsKey a0) -> IMP::Ints
2264  get_value(XYZR self, StringKey a0) -> IMP::String
2265  get_value(XYZR self, ParticleIndexKey a0) -> Particle
2266  get_value(XYZR self, ObjectKey a0) -> Object
2267  get_value(XYZR self, SparseFloatKey a0) -> IMP::Float
2268  get_value(XYZR self, SparseIntKey a0) -> IMP::Int
2269  get_value(XYZR self, SparseStringKey a0) -> IMP::String
2270  get_value(XYZR self, SparseParticleIndexKey a0) -> ParticleIndex
2271  """
2272  return _IMP_core.XYZR_get_value(self, *args)
2273 
2274  def set_value(self, *args):
2275  r"""
2276  set_value(XYZR self, FloatKey a0, IMP::Float a1)
2277  set_value(XYZR self, IntKey a0, IMP::Int a1)
2278  set_value(XYZR self, FloatsKey a0, IMP::Floats a1)
2279  set_value(XYZR self, IntsKey a0, IMP::Ints a1)
2280  set_value(XYZR self, StringKey a0, IMP::String a1)
2281  set_value(XYZR self, ParticleIndexKey a0, Particle a1)
2282  set_value(XYZR self, ObjectKey a0, Object a1)
2283  set_value(XYZR self, SparseFloatKey a0, IMP::Float a1)
2284  set_value(XYZR self, SparseIntKey a0, IMP::Int a1)
2285  set_value(XYZR self, SparseStringKey a0, IMP::String a1)
2286  set_value(XYZR self, SparseParticleIndexKey a0, ParticleIndex a1)
2287  """
2288  return _IMP_core.XYZR_set_value(self, *args)
2289 
2290  def remove_attribute(self, *args):
2291  r"""
2292  remove_attribute(XYZR self, FloatKey a0)
2293  remove_attribute(XYZR self, IntKey a0)
2294  remove_attribute(XYZR self, FloatsKey a0)
2295  remove_attribute(XYZR self, IntsKey a0)
2296  remove_attribute(XYZR self, StringKey a0)
2297  remove_attribute(XYZR self, ParticleIndexKey a0)
2298  remove_attribute(XYZR self, ObjectKey a0)
2299  remove_attribute(XYZR self, SparseFloatKey a0)
2300  remove_attribute(XYZR self, SparseIntKey a0)
2301  remove_attribute(XYZR self, SparseStringKey a0)
2302  remove_attribute(XYZR self, SparseParticleIndexKey a0)
2303  """
2304  return _IMP_core.XYZR_remove_attribute(self, *args)
2305 
2306  def has_attribute(self, *args):
2307  r"""
2308  has_attribute(XYZR self, FloatKey a0) -> bool
2309  has_attribute(XYZR self, IntKey a0) -> bool
2310  has_attribute(XYZR self, FloatsKey a0) -> bool
2311  has_attribute(XYZR self, IntsKey a0) -> bool
2312  has_attribute(XYZR self, StringKey a0) -> bool
2313  has_attribute(XYZR self, ParticleIndexKey a0) -> bool
2314  has_attribute(XYZR self, ObjectKey a0) -> bool
2315  has_attribute(XYZR self, SparseFloatKey a0) -> bool
2316  has_attribute(XYZR self, SparseIntKey a0) -> bool
2317  has_attribute(XYZR self, SparseStringKey a0) -> bool
2318  has_attribute(XYZR self, SparseParticleIndexKey a0) -> bool
2319  """
2320  return _IMP_core.XYZR_has_attribute(self, *args)
2321 
2322  def get_derivative(self, a0):
2323  r"""get_derivative(XYZR self, FloatKey a0) -> double"""
2324  return _IMP_core.XYZR_get_derivative(self, a0)
2325 
2326  def get_name(self):
2327  r"""get_name(XYZR self) -> std::string"""
2328  return _IMP_core.XYZR_get_name(self)
2329 
2330  def clear_caches(self):
2331  r"""clear_caches(XYZR self)"""
2332  return _IMP_core.XYZR_clear_caches(self)
2333 
2334  def set_name(self, a0):
2335  r"""set_name(XYZR self, std::string a0)"""
2336  return _IMP_core.XYZR_set_name(self, a0)
2337 
2338  def set_check_level(self, a0):
2339  r"""set_check_level(XYZR self, IMP::CheckLevel a0)"""
2340  return _IMP_core.XYZR_set_check_level(self, a0)
2341 
2342  def add_to_derivative(self, a0, a1, a2):
2343  r"""add_to_derivative(XYZR self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2344  return _IMP_core.XYZR_add_to_derivative(self, a0, a1, a2)
2345 
2346  def set_is_optimized(self, a0, a1):
2347  r"""set_is_optimized(XYZR self, FloatKey a0, bool a1)"""
2348  return _IMP_core.XYZR_set_is_optimized(self, a0, a1)
2349 
2350  def get_is_optimized(self, a0):
2351  r"""get_is_optimized(XYZR self, FloatKey a0) -> bool"""
2352  return _IMP_core.XYZR_get_is_optimized(self, a0)
2353 
2354  def get_check_level(self):
2355  r"""get_check_level(XYZR self) -> IMP::CheckLevel"""
2356  return _IMP_core.XYZR_get_check_level(self)
2357 
2358  def __eq__(self, *args):
2359  r"""
2360  __eq__(XYZR self, XYZR o) -> bool
2361  __eq__(XYZR self, Particle d) -> bool
2362  """
2363  return _IMP_core.XYZR___eq__(self, *args)
2364 
2365  def __ne__(self, *args):
2366  r"""
2367  __ne__(XYZR self, XYZR o) -> bool
2368  __ne__(XYZR self, Particle d) -> bool
2369  """
2370  return _IMP_core.XYZR___ne__(self, *args)
2371 
2372  def __le__(self, *args):
2373  r"""
2374  __le__(XYZR self, XYZR o) -> bool
2375  __le__(XYZR self, Particle d) -> bool
2376  """
2377  return _IMP_core.XYZR___le__(self, *args)
2378 
2379  def __lt__(self, *args):
2380  r"""
2381  __lt__(XYZR self, XYZR o) -> bool
2382  __lt__(XYZR self, Particle d) -> bool
2383  """
2384  return _IMP_core.XYZR___lt__(self, *args)
2385 
2386  def __ge__(self, *args):
2387  r"""
2388  __ge__(XYZR self, XYZR o) -> bool
2389  __ge__(XYZR self, Particle d) -> bool
2390  """
2391  return _IMP_core.XYZR___ge__(self, *args)
2392 
2393  def __gt__(self, *args):
2394  r"""
2395  __gt__(XYZR self, XYZR o) -> bool
2396  __gt__(XYZR self, Particle d) -> bool
2397  """
2398  return _IMP_core.XYZR___gt__(self, *args)
2399 
2400  def __hash__(self):
2401  r"""__hash__(XYZR self) -> std::size_t"""
2402  return _IMP_core.XYZR___hash__(self)
2403 
2404  def __str__(self):
2405  r"""__str__(XYZR self) -> std::string"""
2406  return _IMP_core.XYZR___str__(self)
2407 
2408  def __repr__(self):
2409  r"""__repr__(XYZR self) -> std::string"""
2410  return _IMP_core.XYZR___repr__(self)
2411 
2412  def _get_as_binary(self):
2413  r"""_get_as_binary(XYZR self) -> PyObject *"""
2414  return _IMP_core.XYZR__get_as_binary(self)
2415 
2416  def _set_from_binary(self, p):
2417  r"""_set_from_binary(XYZR self, PyObject * p)"""
2418  return _IMP_core.XYZR__set_from_binary(self, p)
2419 
2420  def __getstate__(self):
2421  p = self._get_as_binary()
2422  if len(self.__dict__) > 1:
2423  d = self.__dict__.copy()
2424  del d['this']
2425  p = (d, p)
2426  return p
2427 
2428  def __setstate__(self, p):
2429  if not hasattr(self, 'this'):
2430  self.__init__()
2431  if isinstance(p, tuple):
2432  d, p = p
2433  self.__dict__.update(d)
2434  return self._set_from_binary(p)
2435 
2436  __swig_destroy__ = _IMP_core.delete_XYZR
2437 
2438 # Register XYZR in _IMP_core:
2439 _IMP_core.XYZR_swigregister(XYZR)
2440 
2441 def set_enclosing_sphere(b, v, slack=0):
2442  r"""set_enclosing_sphere(XYZR b, IMP::core::XYZs const & v, double slack=0)"""
2443  return _IMP_core.set_enclosing_sphere(b, v, slack)
2444 
2445 def set_enclosing_radius(b, v):
2446  r"""set_enclosing_radius(XYZR b, IMP::core::XYZs const & v)"""
2447  return _IMP_core.set_enclosing_radius(b, v)
2448 
2449 def get_enclosing_sphere(v):
2450  r"""get_enclosing_sphere(IMP::core::XYZs const & v) -> Sphere3D"""
2451  return _IMP_core.get_enclosing_sphere(v)
2452 
2453 def create_xyzr_particles(m, num, radius, box_side=10):
2454  r"""create_xyzr_particles(Model m, unsigned int num, IMP::Float radius, IMP::Float box_side=10) -> IMP::core::XYZRs"""
2455  return _IMP_core.create_xyzr_particles(m, num, radius, box_side)
2456 class XYZRGeometry(IMP.display.SingletonGeometry):
2457  r"""Proxy of C++ IMP::core::XYZRGeometry class."""
2458 
2459  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2460 
2461  def __init__(self, *args):
2462  r"""
2463  __init__(XYZRGeometry self, Particle p) -> XYZRGeometry
2464  __init__(XYZRGeometry self, XYZR d) -> XYZRGeometry
2465  """
2466  _IMP_core.XYZRGeometry_swiginit(self, _IMP_core.new_XYZRGeometry(*args))
2467 
2468  def get_version_info(self):
2469  r"""get_version_info(XYZRGeometry self) -> VersionInfo"""
2470  return _IMP_core.XYZRGeometry_get_version_info(self)
2471  __swig_destroy__ = _IMP_core.delete_XYZRGeometry
2472 
2473  def __str__(self):
2474  r"""__str__(XYZRGeometry self) -> std::string"""
2475  return _IMP_core.XYZRGeometry___str__(self)
2476 
2477  def __repr__(self):
2478  r"""__repr__(XYZRGeometry self) -> std::string"""
2479  return _IMP_core.XYZRGeometry___repr__(self)
2480 
2481  @staticmethod
2482  def get_from(o):
2483  return _object_cast_to_XYZRGeometry(o)
2484 
2485 
2486 # Register XYZRGeometry in _IMP_core:
2487 _IMP_core.XYZRGeometry_swigregister(XYZRGeometry)
2488 class XYZRsGeometry(IMP.display.SingletonsGeometry):
2489  r"""Proxy of C++ IMP::core::XYZRsGeometry class."""
2490 
2491  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2492 
2493  def __init__(self, sc):
2494  r"""__init__(XYZRsGeometry self, SingletonContainer sc) -> XYZRsGeometry"""
2495  _IMP_core.XYZRsGeometry_swiginit(self, _IMP_core.new_XYZRsGeometry(sc))
2496 
2497  def get_version_info(self):
2498  r"""get_version_info(XYZRsGeometry self) -> VersionInfo"""
2499  return _IMP_core.XYZRsGeometry_get_version_info(self)
2500  __swig_destroy__ = _IMP_core.delete_XYZRsGeometry
2501 
2502  def __str__(self):
2503  r"""__str__(XYZRsGeometry self) -> std::string"""
2504  return _IMP_core.XYZRsGeometry___str__(self)
2505 
2506  def __repr__(self):
2507  r"""__repr__(XYZRsGeometry self) -> std::string"""
2508  return _IMP_core.XYZRsGeometry___repr__(self)
2509 
2510  @staticmethod
2511  def get_from(o):
2512  return _object_cast_to_XYZRsGeometry(o)
2513 
2514 
2515 # Register XYZRsGeometry in _IMP_core:
2516 _IMP_core.XYZRsGeometry_swigregister(XYZRsGeometry)
2517 class XYZDerivativeGeometry(IMP.display.SingletonGeometry):
2518  r"""Proxy of C++ IMP::core::XYZDerivativeGeometry class."""
2519 
2520  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2521 
2522  def __init__(self, *args):
2523  r"""
2524  __init__(XYZDerivativeGeometry self, Particle p) -> XYZDerivativeGeometry
2525  __init__(XYZDerivativeGeometry self, XYZ d) -> XYZDerivativeGeometry
2526  """
2527  _IMP_core.XYZDerivativeGeometry_swiginit(self, _IMP_core.new_XYZDerivativeGeometry(*args))
2528 
2529  def get_version_info(self):
2530  r"""get_version_info(XYZDerivativeGeometry self) -> VersionInfo"""
2531  return _IMP_core.XYZDerivativeGeometry_get_version_info(self)
2532  __swig_destroy__ = _IMP_core.delete_XYZDerivativeGeometry
2533 
2534  def __str__(self):
2535  r"""__str__(XYZDerivativeGeometry self) -> std::string"""
2536  return _IMP_core.XYZDerivativeGeometry___str__(self)
2537 
2538  def __repr__(self):
2539  r"""__repr__(XYZDerivativeGeometry self) -> std::string"""
2540  return _IMP_core.XYZDerivativeGeometry___repr__(self)
2541 
2542  @staticmethod
2543  def get_from(o):
2544  return _object_cast_to_XYZDerivativeGeometry(o)
2545 
2546 
2547 # Register XYZDerivativeGeometry in _IMP_core:
2548 _IMP_core.XYZDerivativeGeometry_swigregister(XYZDerivativeGeometry)
2549 class XYZDerivativesGeometry(IMP.display.SingletonsGeometry):
2550  r"""Proxy of C++ IMP::core::XYZDerivativesGeometry class."""
2551 
2552  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2553 
2554  def __init__(self, sc):
2555  r"""__init__(XYZDerivativesGeometry self, SingletonContainer sc) -> XYZDerivativesGeometry"""
2556  _IMP_core.XYZDerivativesGeometry_swiginit(self, _IMP_core.new_XYZDerivativesGeometry(sc))
2557 
2558  def get_version_info(self):
2559  r"""get_version_info(XYZDerivativesGeometry self) -> VersionInfo"""
2560  return _IMP_core.XYZDerivativesGeometry_get_version_info(self)
2561  __swig_destroy__ = _IMP_core.delete_XYZDerivativesGeometry
2562 
2563  def __str__(self):
2564  r"""__str__(XYZDerivativesGeometry self) -> std::string"""
2565  return _IMP_core.XYZDerivativesGeometry___str__(self)
2566 
2567  def __repr__(self):
2568  r"""__repr__(XYZDerivativesGeometry self) -> std::string"""
2569  return _IMP_core.XYZDerivativesGeometry___repr__(self)
2570 
2571  @staticmethod
2572  def get_from(o):
2573  return _object_cast_to_XYZDerivativesGeometry(o)
2574 
2575 
2576 # Register XYZDerivativesGeometry in _IMP_core:
2577 _IMP_core.XYZDerivativesGeometry_swigregister(XYZDerivativesGeometry)
2578 class EdgePairGeometry(IMP.display.PairGeometry):
2579  r"""Proxy of C++ IMP::core::EdgePairGeometry class."""
2580 
2581  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2582 
2583  def __init__(self, pp):
2584  r"""__init__(EdgePairGeometry self, IMP::ParticlePair const & pp) -> EdgePairGeometry"""
2585  _IMP_core.EdgePairGeometry_swiginit(self, _IMP_core.new_EdgePairGeometry(pp))
2586 
2587  def get_version_info(self):
2588  r"""get_version_info(EdgePairGeometry self) -> VersionInfo"""
2589  return _IMP_core.EdgePairGeometry_get_version_info(self)
2590  __swig_destroy__ = _IMP_core.delete_EdgePairGeometry
2591 
2592  def __str__(self):
2593  r"""__str__(EdgePairGeometry self) -> std::string"""
2594  return _IMP_core.EdgePairGeometry___str__(self)
2595 
2596  def __repr__(self):
2597  r"""__repr__(EdgePairGeometry self) -> std::string"""
2598  return _IMP_core.EdgePairGeometry___repr__(self)
2599 
2600  @staticmethod
2601  def get_from(o):
2602  return _object_cast_to_EdgePairGeometry(o)
2603 
2604 
2605 # Register EdgePairGeometry in _IMP_core:
2606 _IMP_core.EdgePairGeometry_swigregister(EdgePairGeometry)
2607 class EdgePairsGeometry(IMP.display.PairsGeometry):
2608  r"""Proxy of C++ IMP::core::EdgePairsGeometry class."""
2609 
2610  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2611 
2612  def __init__(self, sc):
2613  r"""__init__(EdgePairsGeometry self, PairContainer sc) -> EdgePairsGeometry"""
2614  _IMP_core.EdgePairsGeometry_swiginit(self, _IMP_core.new_EdgePairsGeometry(sc))
2615 
2616  def get_version_info(self):
2617  r"""get_version_info(EdgePairsGeometry self) -> VersionInfo"""
2618  return _IMP_core.EdgePairsGeometry_get_version_info(self)
2619  __swig_destroy__ = _IMP_core.delete_EdgePairsGeometry
2620 
2621  def __str__(self):
2622  r"""__str__(EdgePairsGeometry self) -> std::string"""
2623  return _IMP_core.EdgePairsGeometry___str__(self)
2624 
2625  def __repr__(self):
2626  r"""__repr__(EdgePairsGeometry self) -> std::string"""
2627  return _IMP_core.EdgePairsGeometry___repr__(self)
2628 
2629  @staticmethod
2630  def get_from(o):
2631  return _object_cast_to_EdgePairsGeometry(o)
2632 
2633 
2634 # Register EdgePairsGeometry in _IMP_core:
2635 _IMP_core.EdgePairsGeometry_swigregister(EdgePairsGeometry)
2636 class Direction(IMP.Decorator):
2637  r"""Proxy of C++ IMP::core::Direction class."""
2638 
2639  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2640 
2641  @staticmethod
2642  def do_setup_particle(m, pi, v):
2643  r"""do_setup_particle(Model m, ParticleIndex pi, Vector3D v)"""
2644  return _IMP_core.Direction_do_setup_particle(m, pi, v)
2645 
2646  def __init__(self, *args):
2647  r"""
2648  __init__(Direction self) -> Direction
2649  __init__(Direction self, Model m, ParticleIndex id) -> Direction
2650  __init__(Direction self, _ParticleAdaptor d) -> Direction
2651  """
2652  _IMP_core.Direction_swiginit(self, _IMP_core.new_Direction(*args))
2653 
2654  def show(self, *args):
2655  r"""show(Direction self, _ostream out=std::cout)"""
2656  return _IMP_core.Direction_show(self, *args)
2657 
2658  @staticmethod
2659  def setup_particle(*args):
2660  r"""
2661  setup_particle(Model m, ParticleIndex pi, Vector3D v) -> Direction
2662  setup_particle(_ParticleAdaptor pa, Vector3D v) -> Direction
2663  """
2664  return _IMP_core.Direction_setup_particle(*args)
2665 
2666  @staticmethod
2667  def get_is_setup(*args):
2668  r"""
2669  get_is_setup(_ParticleAdaptor p) -> bool
2670  get_is_setup(Model m, ParticleIndex pi) -> bool
2671  """
2672  return _IMP_core.Direction_get_is_setup(*args)
2673 
2674  @staticmethod
2675  def get_direction_key(i):
2676  r"""get_direction_key(unsigned int i) -> FloatKey"""
2677  return _IMP_core.Direction_get_direction_key(i)
2678 
2679  def get_direction_derivative(self, i):
2680  r"""get_direction_derivative(Direction self, int i) -> IMP::Float"""
2681  return _IMP_core.Direction_get_direction_derivative(self, i)
2682 
2683  def get_direction_derivatives(self):
2684  r"""get_direction_derivatives(Direction self) -> Vector3D"""
2685  return _IMP_core.Direction_get_direction_derivatives(self)
2686 
2687  def add_to_direction_derivative(self, i, v, d):
2688  r"""add_to_direction_derivative(Direction self, int i, IMP::Float v, DerivativeAccumulator d)"""
2689  return _IMP_core.Direction_add_to_direction_derivative(self, i, v, d)
2690 
2691  def add_to_direction_derivatives(self, v, d):
2692  r"""add_to_direction_derivatives(Direction self, Vector3D v, DerivativeAccumulator d)"""
2693  return _IMP_core.Direction_add_to_direction_derivatives(self, v, d)
2694 
2695  def get_direction_is_optimized(self):
2696  r"""get_direction_is_optimized(Direction self) -> bool"""
2697  return _IMP_core.Direction_get_direction_is_optimized(self)
2698 
2699  def set_direction_is_optimized(self, tf):
2700  r"""set_direction_is_optimized(Direction self, bool tf)"""
2701  return _IMP_core.Direction_set_direction_is_optimized(self, tf)
2702 
2703  def get_direction(self):
2704  r"""get_direction(Direction self) -> Vector3D"""
2705  return _IMP_core.Direction_get_direction(self)
2706 
2707  def set_direction(self, v):
2708  r"""set_direction(Direction self, Vector3D v)"""
2709  return _IMP_core.Direction_set_direction(self, v)
2710 
2711  def reflect(self):
2712  r"""reflect(Direction self)"""
2713  return _IMP_core.Direction_reflect(self)
2714 
2715  def add_attribute(self, *args):
2716  r"""
2717  add_attribute(Direction self, FloatKey k, IMP::Float v, bool opt)
2718  add_attribute(Direction self, FloatKey a0, IMP::Float a1)
2719  add_attribute(Direction self, IntKey a0, IMP::Int a1)
2720  add_attribute(Direction self, FloatsKey a0, IMP::Floats a1)
2721  add_attribute(Direction self, IntsKey a0, IMP::Ints a1)
2722  add_attribute(Direction self, StringKey a0, IMP::String a1)
2723  add_attribute(Direction self, ParticleIndexKey a0, Particle a1)
2724  add_attribute(Direction self, ObjectKey a0, Object a1)
2725  add_attribute(Direction self, SparseFloatKey a0, IMP::Float a1)
2726  add_attribute(Direction self, SparseIntKey a0, IMP::Int a1)
2727  add_attribute(Direction self, SparseStringKey a0, IMP::String a1)
2728  add_attribute(Direction self, SparseParticleIndexKey a0, ParticleIndex a1)
2729  """
2730  return _IMP_core.Direction_add_attribute(self, *args)
2731 
2732  def get_value(self, *args):
2733  r"""
2734  get_value(Direction self, FloatKey a0) -> IMP::Float
2735  get_value(Direction self, IntKey a0) -> IMP::Int
2736  get_value(Direction self, FloatsKey a0) -> IMP::Floats
2737  get_value(Direction self, IntsKey a0) -> IMP::Ints
2738  get_value(Direction self, StringKey a0) -> IMP::String
2739  get_value(Direction self, ParticleIndexKey a0) -> Particle
2740  get_value(Direction self, ObjectKey a0) -> Object
2741  get_value(Direction self, SparseFloatKey a0) -> IMP::Float
2742  get_value(Direction self, SparseIntKey a0) -> IMP::Int
2743  get_value(Direction self, SparseStringKey a0) -> IMP::String
2744  get_value(Direction self, SparseParticleIndexKey a0) -> ParticleIndex
2745  """
2746  return _IMP_core.Direction_get_value(self, *args)
2747 
2748  def set_value(self, *args):
2749  r"""
2750  set_value(Direction self, FloatKey a0, IMP::Float a1)
2751  set_value(Direction self, IntKey a0, IMP::Int a1)
2752  set_value(Direction self, FloatsKey a0, IMP::Floats a1)
2753  set_value(Direction self, IntsKey a0, IMP::Ints a1)
2754  set_value(Direction self, StringKey a0, IMP::String a1)
2755  set_value(Direction self, ParticleIndexKey a0, Particle a1)
2756  set_value(Direction self, ObjectKey a0, Object a1)
2757  set_value(Direction self, SparseFloatKey a0, IMP::Float a1)
2758  set_value(Direction self, SparseIntKey a0, IMP::Int a1)
2759  set_value(Direction self, SparseStringKey a0, IMP::String a1)
2760  set_value(Direction self, SparseParticleIndexKey a0, ParticleIndex a1)
2761  """
2762  return _IMP_core.Direction_set_value(self, *args)
2763 
2764  def remove_attribute(self, *args):
2765  r"""
2766  remove_attribute(Direction self, FloatKey a0)
2767  remove_attribute(Direction self, IntKey a0)
2768  remove_attribute(Direction self, FloatsKey a0)
2769  remove_attribute(Direction self, IntsKey a0)
2770  remove_attribute(Direction self, StringKey a0)
2771  remove_attribute(Direction self, ParticleIndexKey a0)
2772  remove_attribute(Direction self, ObjectKey a0)
2773  remove_attribute(Direction self, SparseFloatKey a0)
2774  remove_attribute(Direction self, SparseIntKey a0)
2775  remove_attribute(Direction self, SparseStringKey a0)
2776  remove_attribute(Direction self, SparseParticleIndexKey a0)
2777  """
2778  return _IMP_core.Direction_remove_attribute(self, *args)
2779 
2780  def has_attribute(self, *args):
2781  r"""
2782  has_attribute(Direction self, FloatKey a0) -> bool
2783  has_attribute(Direction self, IntKey a0) -> bool
2784  has_attribute(Direction self, FloatsKey a0) -> bool
2785  has_attribute(Direction self, IntsKey a0) -> bool
2786  has_attribute(Direction self, StringKey a0) -> bool
2787  has_attribute(Direction self, ParticleIndexKey a0) -> bool
2788  has_attribute(Direction self, ObjectKey a0) -> bool
2789  has_attribute(Direction self, SparseFloatKey a0) -> bool
2790  has_attribute(Direction self, SparseIntKey a0) -> bool
2791  has_attribute(Direction self, SparseStringKey a0) -> bool
2792  has_attribute(Direction self, SparseParticleIndexKey a0) -> bool
2793  """
2794  return _IMP_core.Direction_has_attribute(self, *args)
2795 
2796  def get_derivative(self, a0):
2797  r"""get_derivative(Direction self, FloatKey a0) -> double"""
2798  return _IMP_core.Direction_get_derivative(self, a0)
2799 
2800  def get_name(self):
2801  r"""get_name(Direction self) -> std::string"""
2802  return _IMP_core.Direction_get_name(self)
2803 
2804  def clear_caches(self):
2805  r"""clear_caches(Direction self)"""
2806  return _IMP_core.Direction_clear_caches(self)
2807 
2808  def set_name(self, a0):
2809  r"""set_name(Direction self, std::string a0)"""
2810  return _IMP_core.Direction_set_name(self, a0)
2811 
2812  def set_check_level(self, a0):
2813  r"""set_check_level(Direction self, IMP::CheckLevel a0)"""
2814  return _IMP_core.Direction_set_check_level(self, a0)
2815 
2816  def add_to_derivative(self, a0, a1, a2):
2817  r"""add_to_derivative(Direction self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2818  return _IMP_core.Direction_add_to_derivative(self, a0, a1, a2)
2819 
2820  def set_is_optimized(self, a0, a1):
2821  r"""set_is_optimized(Direction self, FloatKey a0, bool a1)"""
2822  return _IMP_core.Direction_set_is_optimized(self, a0, a1)
2823 
2824  def get_is_optimized(self, a0):
2825  r"""get_is_optimized(Direction self, FloatKey a0) -> bool"""
2826  return _IMP_core.Direction_get_is_optimized(self, a0)
2827 
2828  def get_check_level(self):
2829  r"""get_check_level(Direction self) -> IMP::CheckLevel"""
2830  return _IMP_core.Direction_get_check_level(self)
2831 
2832  def __eq__(self, *args):
2833  r"""
2834  __eq__(Direction self, Direction o) -> bool
2835  __eq__(Direction self, Particle d) -> bool
2836  """
2837  return _IMP_core.Direction___eq__(self, *args)
2838 
2839  def __ne__(self, *args):
2840  r"""
2841  __ne__(Direction self, Direction o) -> bool
2842  __ne__(Direction self, Particle d) -> bool
2843  """
2844  return _IMP_core.Direction___ne__(self, *args)
2845 
2846  def __le__(self, *args):
2847  r"""
2848  __le__(Direction self, Direction o) -> bool
2849  __le__(Direction self, Particle d) -> bool
2850  """
2851  return _IMP_core.Direction___le__(self, *args)
2852 
2853  def __lt__(self, *args):
2854  r"""
2855  __lt__(Direction self, Direction o) -> bool
2856  __lt__(Direction self, Particle d) -> bool
2857  """
2858  return _IMP_core.Direction___lt__(self, *args)
2859 
2860  def __ge__(self, *args):
2861  r"""
2862  __ge__(Direction self, Direction o) -> bool
2863  __ge__(Direction self, Particle d) -> bool
2864  """
2865  return _IMP_core.Direction___ge__(self, *args)
2866 
2867  def __gt__(self, *args):
2868  r"""
2869  __gt__(Direction self, Direction o) -> bool
2870  __gt__(Direction self, Particle d) -> bool
2871  """
2872  return _IMP_core.Direction___gt__(self, *args)
2873 
2874  def __hash__(self):
2875  r"""__hash__(Direction self) -> std::size_t"""
2876  return _IMP_core.Direction___hash__(self)
2877 
2878  def __str__(self):
2879  r"""__str__(Direction self) -> std::string"""
2880  return _IMP_core.Direction___str__(self)
2881 
2882  def __repr__(self):
2883  r"""__repr__(Direction self) -> std::string"""
2884  return _IMP_core.Direction___repr__(self)
2885 
2886  def _get_as_binary(self):
2887  r"""_get_as_binary(Direction self) -> PyObject *"""
2888  return _IMP_core.Direction__get_as_binary(self)
2889 
2890  def _set_from_binary(self, p):
2891  r"""_set_from_binary(Direction self, PyObject * p)"""
2892  return _IMP_core.Direction__set_from_binary(self, p)
2893 
2894  def __getstate__(self):
2895  p = self._get_as_binary()
2896  if len(self.__dict__) > 1:
2897  d = self.__dict__.copy()
2898  del d['this']
2899  p = (d, p)
2900  return p
2901 
2902  def __setstate__(self, p):
2903  if not hasattr(self, 'this'):
2904  self.__init__()
2905  if isinstance(p, tuple):
2906  d, p = p
2907  self.__dict__.update(d)
2908  return self._set_from_binary(p)
2909 
2910  __swig_destroy__ = _IMP_core.delete_Direction
2911 
2912 # Register Direction in _IMP_core:
2913 _IMP_core.Direction_swigregister(Direction)
2914 
2915 def get_angle(a, b):
2916  r"""get_angle(Direction a, Direction b) -> double"""
2917  return _IMP_core.get_angle(a, b)
2918 class DirectionAngle(IMP.Decorator):
2919  r"""Proxy of C++ IMP::core::DirectionAngle class."""
2920 
2921  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2922 
2923  def __init__(self, *args):
2924  r"""
2925  __init__(DirectionAngle self) -> DirectionAngle
2926  __init__(DirectionAngle self, Model m, ParticleIndex id) -> DirectionAngle
2927  __init__(DirectionAngle self, _ParticleAdaptor d) -> DirectionAngle
2928  """
2929  _IMP_core.DirectionAngle_swiginit(self, _IMP_core.new_DirectionAngle(*args))
2930 
2931  def show(self, *args):
2932  r"""show(DirectionAngle self, _ostream out=std::cout)"""
2933  return _IMP_core.DirectionAngle_show(self, *args)
2934 
2935  @staticmethod
2936  def setup_particle(*args):
2937  r"""
2938  setup_particle(Model m, ParticleIndex pi, IMP::ParticleIndexPair ds) -> DirectionAngle
2939  setup_particle(_ParticleAdaptor pa, IMP::ParticleIndexPair ds) -> DirectionAngle
2940  setup_particle(Model m, ParticleIndex pi, _ParticleIndexAdaptor d0, _ParticleIndexAdaptor d1) -> DirectionAngle
2941  setup_particle(_ParticleAdaptor pa, _ParticleIndexAdaptor d0, _ParticleIndexAdaptor d1) -> DirectionAngle
2942  """
2943  return _IMP_core.DirectionAngle_setup_particle(*args)
2944 
2945  @staticmethod
2946  def get_is_setup(*args):
2947  r"""
2948  get_is_setup(_ParticleAdaptor p) -> bool
2949  get_is_setup(Model m, ParticleIndex pi) -> bool
2950  """
2951  return _IMP_core.DirectionAngle_get_is_setup(*args)
2952 
2953  @staticmethod
2954  def get_angle_key():
2955  r"""get_angle_key() -> FloatKey"""
2956  return _IMP_core.DirectionAngle_get_angle_key()
2957 
2958  @staticmethod
2959  def get_particle_key(i):
2960  r"""get_particle_key(unsigned int i) -> ParticleIndexKey"""
2961  return _IMP_core.DirectionAngle_get_particle_key(i)
2962 
2963  def get_particle(self, *args):
2964  r"""
2965  get_particle(DirectionAngle self, unsigned int i) -> Particle
2966  get_particle(DirectionAngle self) -> Particle
2967  """
2968  return _IMP_core.DirectionAngle_get_particle(self, *args)
2969 
2970  def get_particle_index(self, *args):
2971  r"""
2972  get_particle_index(DirectionAngle self, unsigned int i) -> ParticleIndex
2973  get_particle_index(DirectionAngle self) -> ParticleIndex
2974  """
2975  return _IMP_core.DirectionAngle_get_particle_index(self, *args)
2976 
2977  def get_angle(self):
2978  r"""get_angle(DirectionAngle self) -> IMP::Float"""
2979  return _IMP_core.DirectionAngle_get_angle(self)
2980 
2981  def get_angle_derivative(self):
2982  r"""get_angle_derivative(DirectionAngle self) -> IMP::Float"""
2983  return _IMP_core.DirectionAngle_get_angle_derivative(self)
2984 
2985  def add_to_angle_derivative(self, v, d):
2986  r"""add_to_angle_derivative(DirectionAngle self, IMP::Float v, DerivativeAccumulator d)"""
2987  return _IMP_core.DirectionAngle_add_to_angle_derivative(self, v, d)
2988 
2989  def add_attribute(self, *args):
2990  r"""
2991  add_attribute(DirectionAngle self, FloatKey k, IMP::Float v, bool opt)
2992  add_attribute(DirectionAngle self, FloatKey a0, IMP::Float a1)
2993  add_attribute(DirectionAngle self, IntKey a0, IMP::Int a1)
2994  add_attribute(DirectionAngle self, FloatsKey a0, IMP::Floats a1)
2995  add_attribute(DirectionAngle self, IntsKey a0, IMP::Ints a1)
2996  add_attribute(DirectionAngle self, StringKey a0, IMP::String a1)
2997  add_attribute(DirectionAngle self, ParticleIndexKey a0, Particle a1)
2998  add_attribute(DirectionAngle self, ObjectKey a0, Object a1)
2999  add_attribute(DirectionAngle self, SparseFloatKey a0, IMP::Float a1)
3000  add_attribute(DirectionAngle self, SparseIntKey a0, IMP::Int a1)
3001  add_attribute(DirectionAngle self, SparseStringKey a0, IMP::String a1)
3002  add_attribute(DirectionAngle self, SparseParticleIndexKey a0, ParticleIndex a1)
3003  """
3004  return _IMP_core.DirectionAngle_add_attribute(self, *args)
3005 
3006  def get_value(self, *args):
3007  r"""
3008  get_value(DirectionAngle self, FloatKey a0) -> IMP::Float
3009  get_value(DirectionAngle self, IntKey a0) -> IMP::Int
3010  get_value(DirectionAngle self, FloatsKey a0) -> IMP::Floats
3011  get_value(DirectionAngle self, IntsKey a0) -> IMP::Ints
3012  get_value(DirectionAngle self, StringKey a0) -> IMP::String
3013  get_value(DirectionAngle self, ParticleIndexKey a0) -> Particle
3014  get_value(DirectionAngle self, ObjectKey a0) -> Object
3015  get_value(DirectionAngle self, SparseFloatKey a0) -> IMP::Float
3016  get_value(DirectionAngle self, SparseIntKey a0) -> IMP::Int
3017  get_value(DirectionAngle self, SparseStringKey a0) -> IMP::String
3018  get_value(DirectionAngle self, SparseParticleIndexKey a0) -> ParticleIndex
3019  """
3020  return _IMP_core.DirectionAngle_get_value(self, *args)
3021 
3022  def set_value(self, *args):
3023  r"""
3024  set_value(DirectionAngle self, FloatKey a0, IMP::Float a1)
3025  set_value(DirectionAngle self, IntKey a0, IMP::Int a1)
3026  set_value(DirectionAngle self, FloatsKey a0, IMP::Floats a1)
3027  set_value(DirectionAngle self, IntsKey a0, IMP::Ints a1)
3028  set_value(DirectionAngle self, StringKey a0, IMP::String a1)
3029  set_value(DirectionAngle self, ParticleIndexKey a0, Particle a1)
3030  set_value(DirectionAngle self, ObjectKey a0, Object a1)
3031  set_value(DirectionAngle self, SparseFloatKey a0, IMP::Float a1)
3032  set_value(DirectionAngle self, SparseIntKey a0, IMP::Int a1)
3033  set_value(DirectionAngle self, SparseStringKey a0, IMP::String a1)
3034  set_value(DirectionAngle self, SparseParticleIndexKey a0, ParticleIndex a1)
3035  """
3036  return _IMP_core.DirectionAngle_set_value(self, *args)
3037 
3038  def remove_attribute(self, *args):
3039  r"""
3040  remove_attribute(DirectionAngle self, FloatKey a0)
3041  remove_attribute(DirectionAngle self, IntKey a0)
3042  remove_attribute(DirectionAngle self, FloatsKey a0)
3043  remove_attribute(DirectionAngle self, IntsKey a0)
3044  remove_attribute(DirectionAngle self, StringKey a0)
3045  remove_attribute(DirectionAngle self, ParticleIndexKey a0)
3046  remove_attribute(DirectionAngle self, ObjectKey a0)
3047  remove_attribute(DirectionAngle self, SparseFloatKey a0)
3048  remove_attribute(DirectionAngle self, SparseIntKey a0)
3049  remove_attribute(DirectionAngle self, SparseStringKey a0)
3050  remove_attribute(DirectionAngle self, SparseParticleIndexKey a0)
3051  """
3052  return _IMP_core.DirectionAngle_remove_attribute(self, *args)
3053 
3054  def has_attribute(self, *args):
3055  r"""
3056  has_attribute(DirectionAngle self, FloatKey a0) -> bool
3057  has_attribute(DirectionAngle self, IntKey a0) -> bool
3058  has_attribute(DirectionAngle self, FloatsKey a0) -> bool
3059  has_attribute(DirectionAngle self, IntsKey a0) -> bool
3060  has_attribute(DirectionAngle self, StringKey a0) -> bool
3061  has_attribute(DirectionAngle self, ParticleIndexKey a0) -> bool
3062  has_attribute(DirectionAngle self, ObjectKey a0) -> bool
3063  has_attribute(DirectionAngle self, SparseFloatKey a0) -> bool
3064  has_attribute(DirectionAngle self, SparseIntKey a0) -> bool
3065  has_attribute(DirectionAngle self, SparseStringKey a0) -> bool
3066  has_attribute(DirectionAngle self, SparseParticleIndexKey a0) -> bool
3067  """
3068  return _IMP_core.DirectionAngle_has_attribute(self, *args)
3069 
3070  def get_derivative(self, a0):
3071  r"""get_derivative(DirectionAngle self, FloatKey a0) -> double"""
3072  return _IMP_core.DirectionAngle_get_derivative(self, a0)
3073 
3074  def get_name(self):
3075  r"""get_name(DirectionAngle self) -> std::string"""
3076  return _IMP_core.DirectionAngle_get_name(self)
3077 
3078  def clear_caches(self):
3079  r"""clear_caches(DirectionAngle self)"""
3080  return _IMP_core.DirectionAngle_clear_caches(self)
3081 
3082  def set_name(self, a0):
3083  r"""set_name(DirectionAngle self, std::string a0)"""
3084  return _IMP_core.DirectionAngle_set_name(self, a0)
3085 
3086  def set_check_level(self, a0):
3087  r"""set_check_level(DirectionAngle self, IMP::CheckLevel a0)"""
3088  return _IMP_core.DirectionAngle_set_check_level(self, a0)
3089 
3090  def add_to_derivative(self, a0, a1, a2):
3091  r"""add_to_derivative(DirectionAngle self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3092  return _IMP_core.DirectionAngle_add_to_derivative(self, a0, a1, a2)
3093 
3094  def set_is_optimized(self, a0, a1):
3095  r"""set_is_optimized(DirectionAngle self, FloatKey a0, bool a1)"""
3096  return _IMP_core.DirectionAngle_set_is_optimized(self, a0, a1)
3097 
3098  def get_is_optimized(self, a0):
3099  r"""get_is_optimized(DirectionAngle self, FloatKey a0) -> bool"""
3100  return _IMP_core.DirectionAngle_get_is_optimized(self, a0)
3101 
3102  def get_check_level(self):
3103  r"""get_check_level(DirectionAngle self) -> IMP::CheckLevel"""
3104  return _IMP_core.DirectionAngle_get_check_level(self)
3105 
3106  def __eq__(self, *args):
3107  r"""
3108  __eq__(DirectionAngle self, DirectionAngle o) -> bool
3109  __eq__(DirectionAngle self, Particle d) -> bool
3110  """
3111  return _IMP_core.DirectionAngle___eq__(self, *args)
3112 
3113  def __ne__(self, *args):
3114  r"""
3115  __ne__(DirectionAngle self, DirectionAngle o) -> bool
3116  __ne__(DirectionAngle self, Particle d) -> bool
3117  """
3118  return _IMP_core.DirectionAngle___ne__(self, *args)
3119 
3120  def __le__(self, *args):
3121  r"""
3122  __le__(DirectionAngle self, DirectionAngle o) -> bool
3123  __le__(DirectionAngle self, Particle d) -> bool
3124  """
3125  return _IMP_core.DirectionAngle___le__(self, *args)
3126 
3127  def __lt__(self, *args):
3128  r"""
3129  __lt__(DirectionAngle self, DirectionAngle o) -> bool
3130  __lt__(DirectionAngle self, Particle d) -> bool
3131  """
3132  return _IMP_core.DirectionAngle___lt__(self, *args)
3133 
3134  def __ge__(self, *args):
3135  r"""
3136  __ge__(DirectionAngle self, DirectionAngle o) -> bool
3137  __ge__(DirectionAngle self, Particle d) -> bool
3138  """
3139  return _IMP_core.DirectionAngle___ge__(self, *args)
3140 
3141  def __gt__(self, *args):
3142  r"""
3143  __gt__(DirectionAngle self, DirectionAngle o) -> bool
3144  __gt__(DirectionAngle self, Particle d) -> bool
3145  """
3146  return _IMP_core.DirectionAngle___gt__(self, *args)
3147 
3148  def __hash__(self):
3149  r"""__hash__(DirectionAngle self) -> std::size_t"""
3150  return _IMP_core.DirectionAngle___hash__(self)
3151 
3152  def __str__(self):
3153  r"""__str__(DirectionAngle self) -> std::string"""
3154  return _IMP_core.DirectionAngle___str__(self)
3155 
3156  def __repr__(self):
3157  r"""__repr__(DirectionAngle self) -> std::string"""
3158  return _IMP_core.DirectionAngle___repr__(self)
3159 
3160  def _get_as_binary(self):
3161  r"""_get_as_binary(DirectionAngle self) -> PyObject *"""
3162  return _IMP_core.DirectionAngle__get_as_binary(self)
3163 
3164  def _set_from_binary(self, p):
3165  r"""_set_from_binary(DirectionAngle self, PyObject * p)"""
3166  return _IMP_core.DirectionAngle__set_from_binary(self, p)
3167 
3168  def __getstate__(self):
3169  p = self._get_as_binary()
3170  if len(self.__dict__) > 1:
3171  d = self.__dict__.copy()
3172  del d['this']
3173  p = (d, p)
3174  return p
3175 
3176  def __setstate__(self, p):
3177  if not hasattr(self, 'this'):
3178  self.__init__()
3179  if isinstance(p, tuple):
3180  d, p = p
3181  self.__dict__.update(d)
3182  return self._set_from_binary(p)
3183 
3184  __swig_destroy__ = _IMP_core.delete_DirectionAngle
3185 
3186 # Register DirectionAngle in _IMP_core:
3187 _IMP_core.DirectionAngle_swigregister(DirectionAngle)
3188 class Surface(XYZ):
3189  r"""Proxy of C++ IMP::core::Surface class."""
3190 
3191  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3192 
3193  @staticmethod
3194  def do_setup_particle(*args):
3195  r"""
3196  do_setup_particle(Model m, ParticleIndex pi, Vector3D center=IMP::algebra::Vector3D(0, 0, 0), Vector3D normal=IMP::algebra::Vector3D(0, 0, 1))
3197  do_setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf)
3198  """
3199  return _IMP_core.Surface_do_setup_particle(*args)
3200 
3201  def __init__(self, *args):
3202  r"""
3203  __init__(Surface self) -> Surface
3204  __init__(Surface self, Model m, ParticleIndex id) -> Surface
3205  __init__(Surface self, _ParticleAdaptor d) -> Surface
3206  """
3207  _IMP_core.Surface_swiginit(self, _IMP_core.new_Surface(*args))
3208 
3209  def show(self, *args):
3210  r"""show(Surface self, _ostream out=std::cout)"""
3211  return _IMP_core.Surface_show(self, *args)
3212 
3213  @staticmethod
3214  def setup_particle(*args):
3215  r"""
3216  setup_particle(Model m, ParticleIndex pi) -> Surface
3217  setup_particle(_ParticleAdaptor pa) -> Surface
3218  setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf) -> Surface
3219  setup_particle(_ParticleAdaptor pa, ReferenceFrame3D rf) -> Surface
3220  setup_particle(Model m, ParticleIndex pi, Vector3D center) -> Surface
3221  setup_particle(_ParticleAdaptor pa, Vector3D center) -> Surface
3222  setup_particle(Model m, ParticleIndex pi, Vector3D center, Vector3D normal) -> Surface
3223  setup_particle(_ParticleAdaptor pa, Vector3D center, Vector3D normal) -> Surface
3224  """
3225  return _IMP_core.Surface_setup_particle(*args)
3226 
3227  def get_normal_x(self):
3228  r"""get_normal_x(Surface self) -> IMP::Float"""
3229  return _IMP_core.Surface_get_normal_x(self)
3230 
3231  def set_normal_x(self, t):
3232  r"""set_normal_x(Surface self, IMP::Float t)"""
3233  return _IMP_core.Surface_set_normal_x(self, t)
3234 
3235  def get_normal_y(self):
3236  r"""get_normal_y(Surface self) -> IMP::Float"""
3237  return _IMP_core.Surface_get_normal_y(self)
3238 
3239  def set_normal_y(self, t):
3240  r"""set_normal_y(Surface self, IMP::Float t)"""
3241  return _IMP_core.Surface_set_normal_y(self, t)
3242 
3243  def get_normal_z(self):
3244  r"""get_normal_z(Surface self) -> IMP::Float"""
3245  return _IMP_core.Surface_get_normal_z(self)
3246 
3247  def set_normal_z(self, t):
3248  r"""set_normal_z(Surface self, IMP::Float t)"""
3249  return _IMP_core.Surface_set_normal_z(self, t)
3250 
3251  @staticmethod
3252  def get_is_setup(*args):
3253  r"""
3254  get_is_setup(_ParticleAdaptor p) -> bool
3255  get_is_setup(Model m, ParticleIndex pi) -> bool
3256  """
3257  return _IMP_core.Surface_get_is_setup(*args)
3258 
3259  @staticmethod
3260  def get_normal_key(i):
3261  r"""get_normal_key(unsigned int i) -> FloatKey"""
3262  return _IMP_core.Surface_get_normal_key(i)
3263 
3264  def get_normal_derivative(self, i):
3265  r"""get_normal_derivative(Surface self, int i) -> IMP::Float"""
3266  return _IMP_core.Surface_get_normal_derivative(self, i)
3267 
3268  def get_normal_derivatives(self):
3269  r"""get_normal_derivatives(Surface self) -> Vector3D"""
3270  return _IMP_core.Surface_get_normal_derivatives(self)
3271 
3272  def add_to_normal_derivative(self, i, v, d):
3273  r"""add_to_normal_derivative(Surface self, int i, IMP::Float v, DerivativeAccumulator d)"""
3274  return _IMP_core.Surface_add_to_normal_derivative(self, i, v, d)
3275 
3276  def add_to_normal_derivatives(self, v, d):
3277  r"""add_to_normal_derivatives(Surface self, Vector3D v, DerivativeAccumulator d)"""
3278  return _IMP_core.Surface_add_to_normal_derivatives(self, v, d)
3279 
3280  def get_normal_is_optimized(self):
3281  r"""get_normal_is_optimized(Surface self) -> bool"""
3282  return _IMP_core.Surface_get_normal_is_optimized(self)
3283 
3284  def set_normal_is_optimized(self, tf):
3285  r"""set_normal_is_optimized(Surface self, bool tf)"""
3286  return _IMP_core.Surface_set_normal_is_optimized(self, tf)
3287 
3288  def get_normal(self):
3289  r"""get_normal(Surface self) -> Vector3D"""
3290  return _IMP_core.Surface_get_normal(self)
3291 
3292  def set_normal(self, normal):
3293  r"""set_normal(Surface self, Vector3D normal)"""
3294  return _IMP_core.Surface_set_normal(self, normal)
3295 
3296  def reflect(self):
3297  r"""reflect(Surface self)"""
3298  return _IMP_core.Surface_reflect(self)
3299 
3300  def get_height(self, v):
3301  r"""get_height(Surface self, Vector3D v) -> double"""
3302  return _IMP_core.Surface_get_height(self, v)
3303 
3304  def get_depth(self, v):
3305  r"""get_depth(Surface self, Vector3D v) -> double"""
3306  return _IMP_core.Surface_get_depth(self, v)
3307 
3308  def get_distance_to(self, v):
3309  r"""get_distance_to(Surface self, Vector3D v) -> double"""
3310  return _IMP_core.Surface_get_distance_to(self, v)
3311 
3312  def get_distance_to_center(self, v):
3313  r"""get_distance_to_center(Surface self, Vector3D v) -> double"""
3314  return _IMP_core.Surface_get_distance_to_center(self, v)
3315 
3316  def set_reference_frame(self, rf):
3317  r"""set_reference_frame(Surface self, ReferenceFrame3D rf)"""
3318  return _IMP_core.Surface_set_reference_frame(self, rf)
3319 
3320  def get_reference_frame(self):
3321  r"""get_reference_frame(Surface self) -> ReferenceFrame3D"""
3322  return _IMP_core.Surface_get_reference_frame(self)
3323 
3324  def get_plane(self):
3325  r"""get_plane(Surface self) -> Plane3D"""
3326  return _IMP_core.Surface_get_plane(self)
3327 
3328  def add_attribute(self, *args):
3329  r"""
3330  add_attribute(Surface self, FloatKey k, IMP::Float v, bool opt)
3331  add_attribute(Surface self, FloatKey a0, IMP::Float a1)
3332  add_attribute(Surface self, IntKey a0, IMP::Int a1)
3333  add_attribute(Surface self, FloatsKey a0, IMP::Floats a1)
3334  add_attribute(Surface self, IntsKey a0, IMP::Ints a1)
3335  add_attribute(Surface self, StringKey a0, IMP::String a1)
3336  add_attribute(Surface self, ParticleIndexKey a0, Particle a1)
3337  add_attribute(Surface self, ObjectKey a0, Object a1)
3338  add_attribute(Surface self, SparseFloatKey a0, IMP::Float a1)
3339  add_attribute(Surface self, SparseIntKey a0, IMP::Int a1)
3340  add_attribute(Surface self, SparseStringKey a0, IMP::String a1)
3341  add_attribute(Surface self, SparseParticleIndexKey a0, ParticleIndex a1)
3342  """
3343  return _IMP_core.Surface_add_attribute(self, *args)
3344 
3345  def get_value(self, *args):
3346  r"""
3347  get_value(Surface self, FloatKey a0) -> IMP::Float
3348  get_value(Surface self, IntKey a0) -> IMP::Int
3349  get_value(Surface self, FloatsKey a0) -> IMP::Floats
3350  get_value(Surface self, IntsKey a0) -> IMP::Ints
3351  get_value(Surface self, StringKey a0) -> IMP::String
3352  get_value(Surface self, ParticleIndexKey a0) -> Particle
3353  get_value(Surface self, ObjectKey a0) -> Object
3354  get_value(Surface self, SparseFloatKey a0) -> IMP::Float
3355  get_value(Surface self, SparseIntKey a0) -> IMP::Int
3356  get_value(Surface self, SparseStringKey a0) -> IMP::String
3357  get_value(Surface self, SparseParticleIndexKey a0) -> ParticleIndex
3358  """
3359  return _IMP_core.Surface_get_value(self, *args)
3360 
3361  def set_value(self, *args):
3362  r"""
3363  set_value(Surface self, FloatKey a0, IMP::Float a1)
3364  set_value(Surface self, IntKey a0, IMP::Int a1)
3365  set_value(Surface self, FloatsKey a0, IMP::Floats a1)
3366  set_value(Surface self, IntsKey a0, IMP::Ints a1)
3367  set_value(Surface self, StringKey a0, IMP::String a1)
3368  set_value(Surface self, ParticleIndexKey a0, Particle a1)
3369  set_value(Surface self, ObjectKey a0, Object a1)
3370  set_value(Surface self, SparseFloatKey a0, IMP::Float a1)
3371  set_value(Surface self, SparseIntKey a0, IMP::Int a1)
3372  set_value(Surface self, SparseStringKey a0, IMP::String a1)
3373  set_value(Surface self, SparseParticleIndexKey a0, ParticleIndex a1)
3374  """
3375  return _IMP_core.Surface_set_value(self, *args)
3376 
3377  def remove_attribute(self, *args):
3378  r"""
3379  remove_attribute(Surface self, FloatKey a0)
3380  remove_attribute(Surface self, IntKey a0)
3381  remove_attribute(Surface self, FloatsKey a0)
3382  remove_attribute(Surface self, IntsKey a0)
3383  remove_attribute(Surface self, StringKey a0)
3384  remove_attribute(Surface self, ParticleIndexKey a0)
3385  remove_attribute(Surface self, ObjectKey a0)
3386  remove_attribute(Surface self, SparseFloatKey a0)
3387  remove_attribute(Surface self, SparseIntKey a0)
3388  remove_attribute(Surface self, SparseStringKey a0)
3389  remove_attribute(Surface self, SparseParticleIndexKey a0)
3390  """
3391  return _IMP_core.Surface_remove_attribute(self, *args)
3392 
3393  def has_attribute(self, *args):
3394  r"""
3395  has_attribute(Surface self, FloatKey a0) -> bool
3396  has_attribute(Surface self, IntKey a0) -> bool
3397  has_attribute(Surface self, FloatsKey a0) -> bool
3398  has_attribute(Surface self, IntsKey a0) -> bool
3399  has_attribute(Surface self, StringKey a0) -> bool
3400  has_attribute(Surface self, ParticleIndexKey a0) -> bool
3401  has_attribute(Surface self, ObjectKey a0) -> bool
3402  has_attribute(Surface self, SparseFloatKey a0) -> bool
3403  has_attribute(Surface self, SparseIntKey a0) -> bool
3404  has_attribute(Surface self, SparseStringKey a0) -> bool
3405  has_attribute(Surface self, SparseParticleIndexKey a0) -> bool
3406  """
3407  return _IMP_core.Surface_has_attribute(self, *args)
3408 
3409  def get_derivative(self, a0):
3410  r"""get_derivative(Surface self, FloatKey a0) -> double"""
3411  return _IMP_core.Surface_get_derivative(self, a0)
3412 
3413  def get_name(self):
3414  r"""get_name(Surface self) -> std::string"""
3415  return _IMP_core.Surface_get_name(self)
3416 
3417  def clear_caches(self):
3418  r"""clear_caches(Surface self)"""
3419  return _IMP_core.Surface_clear_caches(self)
3420 
3421  def set_name(self, a0):
3422  r"""set_name(Surface self, std::string a0)"""
3423  return _IMP_core.Surface_set_name(self, a0)
3424 
3425  def set_check_level(self, a0):
3426  r"""set_check_level(Surface self, IMP::CheckLevel a0)"""
3427  return _IMP_core.Surface_set_check_level(self, a0)
3428 
3429  def add_to_derivative(self, a0, a1, a2):
3430  r"""add_to_derivative(Surface self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3431  return _IMP_core.Surface_add_to_derivative(self, a0, a1, a2)
3432 
3433  def set_is_optimized(self, a0, a1):
3434  r"""set_is_optimized(Surface self, FloatKey a0, bool a1)"""
3435  return _IMP_core.Surface_set_is_optimized(self, a0, a1)
3436 
3437  def get_is_optimized(self, a0):
3438  r"""get_is_optimized(Surface self, FloatKey a0) -> bool"""
3439  return _IMP_core.Surface_get_is_optimized(self, a0)
3440 
3441  def get_check_level(self):
3442  r"""get_check_level(Surface self) -> IMP::CheckLevel"""
3443  return _IMP_core.Surface_get_check_level(self)
3444 
3445  def __eq__(self, *args):
3446  r"""
3447  __eq__(Surface self, Surface o) -> bool
3448  __eq__(Surface self, Particle d) -> bool
3449  """
3450  return _IMP_core.Surface___eq__(self, *args)
3451 
3452  def __ne__(self, *args):
3453  r"""
3454  __ne__(Surface self, Surface o) -> bool
3455  __ne__(Surface self, Particle d) -> bool
3456  """
3457  return _IMP_core.Surface___ne__(self, *args)
3458 
3459  def __le__(self, *args):
3460  r"""
3461  __le__(Surface self, Surface o) -> bool
3462  __le__(Surface self, Particle d) -> bool
3463  """
3464  return _IMP_core.Surface___le__(self, *args)
3465 
3466  def __lt__(self, *args):
3467  r"""
3468  __lt__(Surface self, Surface o) -> bool
3469  __lt__(Surface self, Particle d) -> bool
3470  """
3471  return _IMP_core.Surface___lt__(self, *args)
3472 
3473  def __ge__(self, *args):
3474  r"""
3475  __ge__(Surface self, Surface o) -> bool
3476  __ge__(Surface self, Particle d) -> bool
3477  """
3478  return _IMP_core.Surface___ge__(self, *args)
3479 
3480  def __gt__(self, *args):
3481  r"""
3482  __gt__(Surface self, Surface o) -> bool
3483  __gt__(Surface self, Particle d) -> bool
3484  """
3485  return _IMP_core.Surface___gt__(self, *args)
3486 
3487  def __hash__(self):
3488  r"""__hash__(Surface self) -> std::size_t"""
3489  return _IMP_core.Surface___hash__(self)
3490 
3491  def __str__(self):
3492  r"""__str__(Surface self) -> std::string"""
3493  return _IMP_core.Surface___str__(self)
3494 
3495  def __repr__(self):
3496  r"""__repr__(Surface self) -> std::string"""
3497  return _IMP_core.Surface___repr__(self)
3498 
3499  def _get_as_binary(self):
3500  r"""_get_as_binary(Surface self) -> PyObject *"""
3501  return _IMP_core.Surface__get_as_binary(self)
3502 
3503  def _set_from_binary(self, p):
3504  r"""_set_from_binary(Surface self, PyObject * p)"""
3505  return _IMP_core.Surface__set_from_binary(self, p)
3506 
3507  def __getstate__(self):
3508  p = self._get_as_binary()
3509  if len(self.__dict__) > 1:
3510  d = self.__dict__.copy()
3511  del d['this']
3512  p = (d, p)
3513  return p
3514 
3515  def __setstate__(self, p):
3516  if not hasattr(self, 'this'):
3517  self.__init__()
3518  if isinstance(p, tuple):
3519  d, p = p
3520  self.__dict__.update(d)
3521  return self._set_from_binary(p)
3522 
3523  __swig_destroy__ = _IMP_core.delete_Surface
3524 
3525 # Register Surface in _IMP_core:
3526 _IMP_core.Surface_swigregister(Surface)
3527 
3528 def get_height(*args):
3529  r"""
3530  get_height(Surface s, XYZR d) -> double
3531  get_height(Surface s, XYZ d) -> double
3532  """
3533  return _IMP_core.get_height(*args)
3534 
3535 def get_depth(*args):
3536  r"""
3537  get_depth(Surface s, XYZR d) -> double
3538  get_depth(Surface s, XYZ d) -> double
3539  """
3540  return _IMP_core.get_depth(*args)
3541 
3542 def get_distance(*args):
3543  r"""
3544  get_distance(XYZ a, XYZ b) -> double
3545  get_distance(XYZR a, XYZR b) -> double
3546  get_distance(Surface s, XYZR d) -> double
3547  get_distance(Surface s, XYZ d) -> double
3548  """
3549  return _IMP_core.get_distance(*args)
3550 class SurfaceGeometry(IMP.display.Geometry):
3551  r"""Proxy of C++ IMP::core::SurfaceGeometry class."""
3552 
3553  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3554 
3555  def __init__(self, *args):
3556  r"""
3557  __init__(SurfaceGeometry self, std::string n="SurfaceGeometry") -> SurfaceGeometry
3558  __init__(SurfaceGeometry self, Surface s, std::string const n="SurfaceGeometry") -> SurfaceGeometry
3559  __init__(SurfaceGeometry self, Surface s, Color c, std::string n="SurfaceGeometry") -> SurfaceGeometry
3560  """
3561  _IMP_core.SurfaceGeometry_swiginit(self, _IMP_core.new_SurfaceGeometry(*args))
3562 
3563  def get_geometry(self):
3564  r"""get_geometry(SurfaceGeometry self) -> Surface"""
3565  return _IMP_core.SurfaceGeometry_get_geometry(self)
3566 
3567  def set_geometry(self, s):
3568  r"""set_geometry(SurfaceGeometry self, Surface s)"""
3569  return _IMP_core.SurfaceGeometry_set_geometry(self, s)
3570 
3571  def get_version_info(self):
3572  r"""get_version_info(SurfaceGeometry self) -> VersionInfo"""
3573  return _IMP_core.SurfaceGeometry_get_version_info(self)
3574  __swig_destroy__ = _IMP_core.delete_SurfaceGeometry
3575 
3576  def __str__(self):
3577  r"""__str__(SurfaceGeometry self) -> std::string"""
3578  return _IMP_core.SurfaceGeometry___str__(self)
3579 
3580  def __repr__(self):
3581  r"""__repr__(SurfaceGeometry self) -> std::string"""
3582  return _IMP_core.SurfaceGeometry___repr__(self)
3583 
3584  @staticmethod
3585  def get_from(o):
3586  return _object_cast_to_SurfaceGeometry(o)
3587 
3588 
3589 # Register SurfaceGeometry in _IMP_core:
3590 _IMP_core.SurfaceGeometry_swigregister(SurfaceGeometry)
3591 
3592 def create_geometry(*args):
3593  r"""create_geometry(Surface s, std::string name=std::string("SurfaceGeometry%1%")) -> SurfaceGeometry"""
3594  return _IMP_core.create_geometry(*args)
3595 class SurfaceGeometryConstraint(IMP.Constraint):
3596  r"""Proxy of C++ IMP::core::SurfaceGeometryConstraint class."""
3597 
3598  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3599 
3600  def __init__(self, s, g):
3601  r"""__init__(SurfaceGeometryConstraint self, Surface s, SurfaceGeometry g) -> SurfaceGeometryConstraint"""
3602  _IMP_core.SurfaceGeometryConstraint_swiginit(self, _IMP_core.new_SurfaceGeometryConstraint(s, g))
3603 
3604  def get_surface(self):
3605  r"""get_surface(SurfaceGeometryConstraint self) -> Surface"""
3606  return _IMP_core.SurfaceGeometryConstraint_get_surface(self)
3607 
3608  def get_geometry(self):
3609  r"""get_geometry(SurfaceGeometryConstraint self) -> SurfaceGeometry"""
3610  return _IMP_core.SurfaceGeometryConstraint_get_geometry(self)
3611 
3612  def do_get_inputs(self):
3613  r"""do_get_inputs(SurfaceGeometryConstraint self) -> IMP::ModelObjectsTemp"""
3614  return _IMP_core.SurfaceGeometryConstraint_do_get_inputs(self)
3615 
3616  def do_get_outputs(self):
3617  r"""do_get_outputs(SurfaceGeometryConstraint self) -> IMP::ModelObjectsTemp"""
3618  return _IMP_core.SurfaceGeometryConstraint_do_get_outputs(self)
3619 
3620  def get_version_info(self):
3621  r"""get_version_info(SurfaceGeometryConstraint self) -> VersionInfo"""
3622  return _IMP_core.SurfaceGeometryConstraint_get_version_info(self)
3623  __swig_destroy__ = _IMP_core.delete_SurfaceGeometryConstraint
3624 
3625  def __str__(self):
3626  r"""__str__(SurfaceGeometryConstraint self) -> std::string"""
3627  return _IMP_core.SurfaceGeometryConstraint___str__(self)
3628 
3629  def __repr__(self):
3630  r"""__repr__(SurfaceGeometryConstraint self) -> std::string"""
3631  return _IMP_core.SurfaceGeometryConstraint___repr__(self)
3632 
3633  @staticmethod
3634  def get_from(o):
3635  return _object_cast_to_SurfaceGeometryConstraint(o)
3636 
3637 
3638 # Register SurfaceGeometryConstraint in _IMP_core:
3639 _IMP_core.SurfaceGeometryConstraint_swigregister(SurfaceGeometryConstraint)
3640 
3642  r"""get_constrained_surface_geometry(Surface s, std::string name="SurfaceGeometry%1%") -> SurfaceGeometry"""
3643  return _IMP_core.get_constrained_surface_geometry(*args)
3644 class LateralSurfaceConstraint(IMP.Constraint):
3645  r"""Proxy of C++ IMP::core::LateralSurfaceConstraint class."""
3646 
3647  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3648 
3649  def __init__(self, s, d):
3650  r"""__init__(LateralSurfaceConstraint self, Surface s, XYZ d) -> LateralSurfaceConstraint"""
3651  _IMP_core.LateralSurfaceConstraint_swiginit(self, _IMP_core.new_LateralSurfaceConstraint(s, d))
3652 
3653  def do_get_inputs(self):
3654  r"""do_get_inputs(LateralSurfaceConstraint self) -> IMP::ModelObjectsTemp"""
3655  return _IMP_core.LateralSurfaceConstraint_do_get_inputs(self)
3656 
3657  def do_get_outputs(self):
3658  r"""do_get_outputs(LateralSurfaceConstraint self) -> IMP::ModelObjectsTemp"""
3659  return _IMP_core.LateralSurfaceConstraint_do_get_outputs(self)
3660 
3661  def get_version_info(self):
3662  r"""get_version_info(LateralSurfaceConstraint self) -> VersionInfo"""
3663  return _IMP_core.LateralSurfaceConstraint_get_version_info(self)
3664  __swig_destroy__ = _IMP_core.delete_LateralSurfaceConstraint
3665 
3666  def __str__(self):
3667  r"""__str__(LateralSurfaceConstraint self) -> std::string"""
3668  return _IMP_core.LateralSurfaceConstraint___str__(self)
3669 
3670  def __repr__(self):
3671  r"""__repr__(LateralSurfaceConstraint self) -> std::string"""
3672  return _IMP_core.LateralSurfaceConstraint___repr__(self)
3673 
3674  @staticmethod
3675  def get_from(o):
3676  return _object_cast_to_LateralSurfaceConstraint(o)
3677 
3678 
3679 # Register LateralSurfaceConstraint in _IMP_core:
3680 _IMP_core.LateralSurfaceConstraint_swigregister(LateralSurfaceConstraint)
3681 class AngleTripletScore(IMP.TripletScore):
3682  r"""Proxy of C++ IMP::core::AngleTripletScore class."""
3683 
3684  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3685 
3686  def __init__(self, *args):
3687  r"""
3688  __init__(AngleTripletScore self, UnaryFunction f) -> AngleTripletScore
3689  __init__(AngleTripletScore self) -> AngleTripletScore
3690  """
3691  _IMP_core.AngleTripletScore_swiginit(self, _IMP_core.new_AngleTripletScore(*args))
3692 
3693  def do_get_inputs(self, m, pis):
3694  r"""do_get_inputs(AngleTripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3695  return _IMP_core.AngleTripletScore_do_get_inputs(self, m, pis)
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 get_version_info(self):
4582  r"""get_version_info(KClosePairsPairScore self) -> VersionInfo"""
4583  return _IMP_core.KClosePairsPairScore_get_version_info(self)
4584  __swig_destroy__ = _IMP_core.delete_KClosePairsPairScore
4585 
4586  def __str__(self):
4587  r"""__str__(KClosePairsPairScore self) -> std::string"""
4588  return _IMP_core.KClosePairsPairScore___str__(self)
4589 
4590  def __repr__(self):
4591  r"""__repr__(KClosePairsPairScore self) -> std::string"""
4592  return _IMP_core.KClosePairsPairScore___repr__(self)
4593 
4594  @staticmethod
4595  def get_from(o):
4596  return _object_cast_to_KClosePairsPairScore(o)
4597 
4598 
4599 # Register KClosePairsPairScore in _IMP_core:
4600 _IMP_core.KClosePairsPairScore_swigregister(KClosePairsPairScore)
4601 class ClosePairsPairScore(IMP.PairScore):
4602  r"""Proxy of C++ IMP::core::ClosePairsPairScore class."""
4603 
4604  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4605 
4606  def __init__(self, f, r, max_distance):
4607  r"""__init__(ClosePairsPairScore self, PairScore f, Refiner r, IMP::Float max_distance) -> ClosePairsPairScore"""
4608  _IMP_core.ClosePairsPairScore_swiginit(self, _IMP_core.new_ClosePairsPairScore(f, r, max_distance))
4609 
4610  def get_close_pairs(self, pp):
4611  r"""get_close_pairs(ClosePairsPairScore self, IMP::ParticlePair const & pp) -> IMP::ParticlePairsTemp"""
4612  return _IMP_core.ClosePairsPairScore_get_close_pairs(self, pp)
4613 
4614  def create_current_decomposition(self, m, vt):
4615  r"""create_current_decomposition(ClosePairsPairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
4616  return _IMP_core.ClosePairsPairScore_create_current_decomposition(self, m, vt)
4617 
4618  def do_get_inputs(self, m, pis):
4619  r"""do_get_inputs(ClosePairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4620  return _IMP_core.ClosePairsPairScore_do_get_inputs(self, m, pis)
4621 
4622  def get_version_info(self):
4623  r"""get_version_info(ClosePairsPairScore self) -> VersionInfo"""
4624  return _IMP_core.ClosePairsPairScore_get_version_info(self)
4625  __swig_destroy__ = _IMP_core.delete_ClosePairsPairScore
4626 
4627  def __str__(self):
4628  r"""__str__(ClosePairsPairScore self) -> std::string"""
4629  return _IMP_core.ClosePairsPairScore___str__(self)
4630 
4631  def __repr__(self):
4632  r"""__repr__(ClosePairsPairScore self) -> std::string"""
4633  return _IMP_core.ClosePairsPairScore___repr__(self)
4634 
4635  @staticmethod
4636  def get_from(o):
4637  return _object_cast_to_ClosePairsPairScore(o)
4638 
4639 
4640 # Register ClosePairsPairScore in _IMP_core:
4641 _IMP_core.ClosePairsPairScore_swigregister(ClosePairsPairScore)
4642 class ConjugateGradients(IMP.AttributeOptimizer):
4643  r"""Proxy of C++ IMP::core::ConjugateGradients class."""
4644 
4645  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4646 
4647  def __init__(self, *args):
4648  r"""
4649  __init__(ConjugateGradients self, Model m, std::string name="ConjugateGradients%1%") -> ConjugateGradients
4650  __init__(ConjugateGradients self) -> ConjugateGradients
4651  """
4652  _IMP_core.ConjugateGradients_swiginit(self, _IMP_core.new_ConjugateGradients(*args))
4653 
4654  def set_gradient_threshold(self, t):
4655  r"""set_gradient_threshold(ConjugateGradients self, IMP::Float t)"""
4656  return _IMP_core.ConjugateGradients_set_gradient_threshold(self, t)
4657 
4658  def set_max_change(self, t):
4659  r"""set_max_change(ConjugateGradients self, IMP::Float t)"""
4660  return _IMP_core.ConjugateGradients_set_max_change(self, t)
4661 
4662  def do_optimize(self, max_steps):
4663  r"""do_optimize(ConjugateGradients self, unsigned int max_steps) -> IMP::Float"""
4664  return _IMP_core.ConjugateGradients_do_optimize(self, max_steps)
4665 
4666  def get_version_info(self):
4667  r"""get_version_info(ConjugateGradients self) -> VersionInfo"""
4668  return _IMP_core.ConjugateGradients_get_version_info(self)
4669  __swig_destroy__ = _IMP_core.delete_ConjugateGradients
4670 
4671  def __str__(self):
4672  r"""__str__(ConjugateGradients self) -> std::string"""
4673  return _IMP_core.ConjugateGradients___str__(self)
4674 
4675  def __repr__(self):
4676  r"""__repr__(ConjugateGradients self) -> std::string"""
4677  return _IMP_core.ConjugateGradients___repr__(self)
4678 
4679  @staticmethod
4680  def get_from(o):
4681  return _object_cast_to_ConjugateGradients(o)
4682 
4683 
4684  def _get_as_binary(self):
4685  r"""_get_as_binary(ConjugateGradients self) -> PyObject *"""
4686  return _IMP_core.ConjugateGradients__get_as_binary(self)
4687 
4688  def _set_from_binary(self, p):
4689  r"""_set_from_binary(ConjugateGradients self, PyObject * p)"""
4690  return _IMP_core.ConjugateGradients__set_from_binary(self, p)
4691 
4692  def __getstate__(self):
4693  p = self._get_as_binary()
4694  if len(self.__dict__) > 1:
4695  d = self.__dict__.copy()
4696  del d['this']
4697  p = (d, p)
4698  return p
4699 
4700  def __setstate__(self, p):
4701  if not hasattr(self, 'this'):
4702  self.__init__()
4703  if isinstance(p, tuple):
4704  d, p = p
4705  self.__dict__.update(d)
4706  return self._set_from_binary(p)
4707 
4708 
4709 # Register ConjugateGradients in _IMP_core:
4710 _IMP_core.ConjugateGradients_swigregister(ConjugateGradients)
4711 class ConnectivityRestraint(IMP.Restraint):
4712  r"""Proxy of C++ IMP::core::ConnectivityRestraint class."""
4713 
4714  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4715 
4716  def __init__(self, ps, sc):
4717  r"""__init__(ConnectivityRestraint self, PairScore ps, _SingletonContainerAdaptor sc) -> ConnectivityRestraint"""
4718  _IMP_core.ConnectivityRestraint_swiginit(self, _IMP_core.new_ConnectivityRestraint(ps, sc))
4719 
4720  def get_connected_index_pairs(self):
4721  r"""get_connected_index_pairs(ConnectivityRestraint self) -> IMP::ParticleIndexPairs"""
4722  return _IMP_core.ConnectivityRestraint_get_connected_index_pairs(self)
4723 
4724  def get_pair_score(self):
4725  r"""get_pair_score(ConnectivityRestraint self) -> PairScore"""
4726  return _IMP_core.ConnectivityRestraint_get_pair_score(self)
4727 
4728  def do_create_current_decomposition(self):
4729  r"""do_create_current_decomposition(ConnectivityRestraint self) -> IMP::Restraints"""
4730  return _IMP_core.ConnectivityRestraint_do_create_current_decomposition(self)
4731 
4732  def do_get_inputs(self):
4733  r"""do_get_inputs(ConnectivityRestraint self) -> IMP::ModelObjectsTemp"""
4734  return _IMP_core.ConnectivityRestraint_do_get_inputs(self)
4735 
4736  def get_version_info(self):
4737  r"""get_version_info(ConnectivityRestraint self) -> VersionInfo"""
4738  return _IMP_core.ConnectivityRestraint_get_version_info(self)
4739  __swig_destroy__ = _IMP_core.delete_ConnectivityRestraint
4740 
4741  def __str__(self):
4742  r"""__str__(ConnectivityRestraint self) -> std::string"""
4743  return _IMP_core.ConnectivityRestraint___str__(self)
4744 
4745  def __repr__(self):
4746  r"""__repr__(ConnectivityRestraint self) -> std::string"""
4747  return _IMP_core.ConnectivityRestraint___repr__(self)
4748 
4749  @staticmethod
4750  def get_from(o):
4751  return _object_cast_to_ConnectivityRestraint(o)
4752 
4753 
4754 # Register ConnectivityRestraint in _IMP_core:
4755 _IMP_core.ConnectivityRestraint_swigregister(ConnectivityRestraint)
4756 class ConstantRestraint(IMP.Restraint):
4757  r"""Proxy of C++ IMP::core::ConstantRestraint class."""
4758 
4759  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4760 
4761  def __init__(self, *args):
4762  r"""
4763  __init__(ConstantRestraint self, Model m, IMP::Float v) -> ConstantRestraint
4764  __init__(ConstantRestraint self) -> ConstantRestraint
4765  """
4766  _IMP_core.ConstantRestraint_swiginit(self, _IMP_core.new_ConstantRestraint(*args))
4767 
4768  def do_get_inputs(self):
4769  r"""do_get_inputs(ConstantRestraint self) -> IMP::ModelObjectsTemp"""
4770  return _IMP_core.ConstantRestraint_do_get_inputs(self)
4771 
4772  def get_version_info(self):
4773  r"""get_version_info(ConstantRestraint self) -> VersionInfo"""
4774  return _IMP_core.ConstantRestraint_get_version_info(self)
4775  __swig_destroy__ = _IMP_core.delete_ConstantRestraint
4776 
4777  def __str__(self):
4778  r"""__str__(ConstantRestraint self) -> std::string"""
4779  return _IMP_core.ConstantRestraint___str__(self)
4780 
4781  def __repr__(self):
4782  r"""__repr__(ConstantRestraint self) -> std::string"""
4783  return _IMP_core.ConstantRestraint___repr__(self)
4784 
4785  @staticmethod
4786  def get_from(o):
4787  return _object_cast_to_ConstantRestraint(o)
4788 
4789 
4790  def _get_as_binary(self):
4791  r"""_get_as_binary(ConstantRestraint self) -> PyObject *"""
4792  return _IMP_core.ConstantRestraint__get_as_binary(self)
4793 
4794  def _set_from_binary(self, p):
4795  r"""_set_from_binary(ConstantRestraint self, PyObject * p)"""
4796  return _IMP_core.ConstantRestraint__set_from_binary(self, p)
4797 
4798  def __getstate__(self):
4799  p = self._get_as_binary()
4800  if len(self.__dict__) > 1:
4801  d = self.__dict__.copy()
4802  del d['this']
4803  p = (d, p)
4804  return p
4805 
4806  def __setstate__(self, p):
4807  if not hasattr(self, 'this'):
4808  self.__init__()
4809  if isinstance(p, tuple):
4810  d, p = p
4811  self.__dict__.update(d)
4812  return self._set_from_binary(p)
4813 
4814 
4815 # Register ConstantRestraint in _IMP_core:
4816 _IMP_core.ConstantRestraint_swigregister(ConstantRestraint)
4817 class Cosine(IMP.UnaryFunction):
4818  r"""Proxy of C++ IMP::core::Cosine class."""
4819 
4820  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4821 
4822  def __init__(self, *args):
4823  r"""
4824  __init__(Cosine self, IMP::Float force_constant, int periodicity, IMP::Float phase) -> Cosine
4825  __init__(Cosine self) -> Cosine
4826  """
4827  _IMP_core.Cosine_swiginit(self, _IMP_core.new_Cosine(*args))
4828 
4829  def get_version_info(self):
4830  r"""get_version_info(Cosine self) -> VersionInfo"""
4831  return _IMP_core.Cosine_get_version_info(self)
4832  __swig_destroy__ = _IMP_core.delete_Cosine
4833 
4834  def do_show(self, out):
4835  r"""do_show(Cosine self, _ostream out)"""
4836  return _IMP_core.Cosine_do_show(self, out)
4837 
4838  def __str__(self):
4839  r"""__str__(Cosine self) -> std::string"""
4840  return _IMP_core.Cosine___str__(self)
4841 
4842  def __repr__(self):
4843  r"""__repr__(Cosine self) -> std::string"""
4844  return _IMP_core.Cosine___repr__(self)
4845 
4846  @staticmethod
4847  def get_from(o):
4848  return _object_cast_to_Cosine(o)
4849 
4850 
4851  def _get_as_binary(self):
4852  r"""_get_as_binary(Cosine self) -> PyObject *"""
4853  return _IMP_core.Cosine__get_as_binary(self)
4854 
4855  def _set_from_binary(self, p):
4856  r"""_set_from_binary(Cosine self, PyObject * p)"""
4857  return _IMP_core.Cosine__set_from_binary(self, p)
4858 
4859  def __getstate__(self):
4860  p = self._get_as_binary()
4861  if len(self.__dict__) > 1:
4862  d = self.__dict__.copy()
4863  del d['this']
4864  p = (d, p)
4865  return p
4866 
4867  def __setstate__(self, p):
4868  if not hasattr(self, 'this'):
4869  self.__init__()
4870  if isinstance(p, tuple):
4871  d, p = p
4872  self.__dict__.update(d)
4873  return self._set_from_binary(p)
4874 
4875 
4876 # Register Cosine in _IMP_core:
4877 _IMP_core.Cosine_swigregister(Cosine)
4878 class CoverRefined(IMP.SingletonModifier):
4879  r"""Proxy of C++ IMP::core::CoverRefined class."""
4880 
4881  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4882 
4883  def __init__(self, ref, slack=0):
4884  r"""__init__(CoverRefined self, Refiner ref, IMP::Float slack=0) -> CoverRefined"""
4885  _IMP_core.CoverRefined_swiginit(self, _IMP_core.new_CoverRefined(ref, slack))
4886 
4887  def set_slack(self, slack):
4888  r"""set_slack(CoverRefined self, IMP::Float slack)"""
4889  return _IMP_core.CoverRefined_set_slack(self, slack)
4890 
4891  def do_get_inputs(self, m, pis):
4892  r"""do_get_inputs(CoverRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4893  return _IMP_core.CoverRefined_do_get_inputs(self, m, pis)
4894 
4895  def do_get_outputs(self, m, pis):
4896  r"""do_get_outputs(CoverRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4897  return _IMP_core.CoverRefined_do_get_outputs(self, m, pis)
4898 
4899  def get_version_info(self):
4900  r"""get_version_info(CoverRefined self) -> VersionInfo"""
4901  return _IMP_core.CoverRefined_get_version_info(self)
4902  __swig_destroy__ = _IMP_core.delete_CoverRefined
4903 
4904  def __str__(self):
4905  r"""__str__(CoverRefined self) -> std::string"""
4906  return _IMP_core.CoverRefined___str__(self)
4907 
4908  def __repr__(self):
4909  r"""__repr__(CoverRefined self) -> std::string"""
4910  return _IMP_core.CoverRefined___repr__(self)
4911 
4912  @staticmethod
4913  def get_from(o):
4914  return _object_cast_to_CoverRefined(o)
4915 
4916 
4917 # Register CoverRefined in _IMP_core:
4918 _IMP_core.CoverRefined_swigregister(CoverRefined)
4919 class Cover(XYZR):
4920  r"""Proxy of C++ IMP::core::Cover class."""
4921 
4922  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4923 
4924  def get_constraint(self):
4925  r"""get_constraint(Cover self) -> Constraint"""
4926  return _IMP_core.Cover_get_constraint(self)
4927 
4928  def __init__(self, *args):
4929  r"""
4930  __init__(Cover self) -> Cover
4931  __init__(Cover self, Model m, ParticleIndex id) -> Cover
4932  __init__(Cover self, _ParticleAdaptor d) -> Cover
4933  """
4934  _IMP_core.Cover_swiginit(self, _IMP_core.new_Cover(*args))
4935 
4936  def show(self, *args):
4937  r"""show(Cover self, _ostream out=std::cout)"""
4938  return _IMP_core.Cover_show(self, *args)
4939 
4940  @staticmethod
4941  def setup_particle(*args):
4942  r"""
4943  setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor members) -> Cover
4944  setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor members) -> Cover
4945  setup_particle(Model m, ParticleIndex pi, Refiner refiner) -> Cover
4946  setup_particle(_ParticleAdaptor pa, Refiner refiner) -> Cover
4947  """
4948  return _IMP_core.Cover_setup_particle(*args)
4949 
4950  @staticmethod
4951  def get_is_setup(*args):
4952  r"""
4953  get_is_setup(_ParticleAdaptor p) -> bool
4954  get_is_setup(Model m, ParticleIndex pi) -> bool
4955  """
4956  return _IMP_core.Cover_get_is_setup(*args)
4957 
4958  def add_attribute(self, *args):
4959  r"""
4960  add_attribute(Cover self, FloatKey k, IMP::Float v, bool opt)
4961  add_attribute(Cover self, FloatKey a0, IMP::Float a1)
4962  add_attribute(Cover self, IntKey a0, IMP::Int a1)
4963  add_attribute(Cover self, FloatsKey a0, IMP::Floats a1)
4964  add_attribute(Cover self, IntsKey a0, IMP::Ints a1)
4965  add_attribute(Cover self, StringKey a0, IMP::String a1)
4966  add_attribute(Cover self, ParticleIndexKey a0, Particle a1)
4967  add_attribute(Cover self, ObjectKey a0, Object a1)
4968  add_attribute(Cover self, SparseFloatKey a0, IMP::Float a1)
4969  add_attribute(Cover self, SparseIntKey a0, IMP::Int a1)
4970  add_attribute(Cover self, SparseStringKey a0, IMP::String a1)
4971  add_attribute(Cover self, SparseParticleIndexKey a0, ParticleIndex a1)
4972  """
4973  return _IMP_core.Cover_add_attribute(self, *args)
4974 
4975  def get_value(self, *args):
4976  r"""
4977  get_value(Cover self, FloatKey a0) -> IMP::Float
4978  get_value(Cover self, IntKey a0) -> IMP::Int
4979  get_value(Cover self, FloatsKey a0) -> IMP::Floats
4980  get_value(Cover self, IntsKey a0) -> IMP::Ints
4981  get_value(Cover self, StringKey a0) -> IMP::String
4982  get_value(Cover self, ParticleIndexKey a0) -> Particle
4983  get_value(Cover self, ObjectKey a0) -> Object
4984  get_value(Cover self, SparseFloatKey a0) -> IMP::Float
4985  get_value(Cover self, SparseIntKey a0) -> IMP::Int
4986  get_value(Cover self, SparseStringKey a0) -> IMP::String
4987  get_value(Cover self, SparseParticleIndexKey a0) -> ParticleIndex
4988  """
4989  return _IMP_core.Cover_get_value(self, *args)
4990 
4991  def set_value(self, *args):
4992  r"""
4993  set_value(Cover self, FloatKey a0, IMP::Float a1)
4994  set_value(Cover self, IntKey a0, IMP::Int a1)
4995  set_value(Cover self, FloatsKey a0, IMP::Floats a1)
4996  set_value(Cover self, IntsKey a0, IMP::Ints a1)
4997  set_value(Cover self, StringKey a0, IMP::String a1)
4998  set_value(Cover self, ParticleIndexKey a0, Particle a1)
4999  set_value(Cover self, ObjectKey a0, Object a1)
5000  set_value(Cover self, SparseFloatKey a0, IMP::Float a1)
5001  set_value(Cover self, SparseIntKey a0, IMP::Int a1)
5002  set_value(Cover self, SparseStringKey a0, IMP::String a1)
5003  set_value(Cover self, SparseParticleIndexKey a0, ParticleIndex a1)
5004  """
5005  return _IMP_core.Cover_set_value(self, *args)
5006 
5007  def remove_attribute(self, *args):
5008  r"""
5009  remove_attribute(Cover self, FloatKey a0)
5010  remove_attribute(Cover self, IntKey a0)
5011  remove_attribute(Cover self, FloatsKey a0)
5012  remove_attribute(Cover self, IntsKey a0)
5013  remove_attribute(Cover self, StringKey a0)
5014  remove_attribute(Cover self, ParticleIndexKey a0)
5015  remove_attribute(Cover self, ObjectKey a0)
5016  remove_attribute(Cover self, SparseFloatKey a0)
5017  remove_attribute(Cover self, SparseIntKey a0)
5018  remove_attribute(Cover self, SparseStringKey a0)
5019  remove_attribute(Cover self, SparseParticleIndexKey a0)
5020  """
5021  return _IMP_core.Cover_remove_attribute(self, *args)
5022 
5023  def has_attribute(self, *args):
5024  r"""
5025  has_attribute(Cover self, FloatKey a0) -> bool
5026  has_attribute(Cover self, IntKey a0) -> bool
5027  has_attribute(Cover self, FloatsKey a0) -> bool
5028  has_attribute(Cover self, IntsKey a0) -> bool
5029  has_attribute(Cover self, StringKey a0) -> bool
5030  has_attribute(Cover self, ParticleIndexKey a0) -> bool
5031  has_attribute(Cover self, ObjectKey a0) -> bool
5032  has_attribute(Cover self, SparseFloatKey a0) -> bool
5033  has_attribute(Cover self, SparseIntKey a0) -> bool
5034  has_attribute(Cover self, SparseStringKey a0) -> bool
5035  has_attribute(Cover self, SparseParticleIndexKey a0) -> bool
5036  """
5037  return _IMP_core.Cover_has_attribute(self, *args)
5038 
5039  def get_derivative(self, a0):
5040  r"""get_derivative(Cover self, FloatKey a0) -> double"""
5041  return _IMP_core.Cover_get_derivative(self, a0)
5042 
5043  def get_name(self):
5044  r"""get_name(Cover self) -> std::string"""
5045  return _IMP_core.Cover_get_name(self)
5046 
5047  def clear_caches(self):
5048  r"""clear_caches(Cover self)"""
5049  return _IMP_core.Cover_clear_caches(self)
5050 
5051  def set_name(self, a0):
5052  r"""set_name(Cover self, std::string a0)"""
5053  return _IMP_core.Cover_set_name(self, a0)
5054 
5055  def set_check_level(self, a0):
5056  r"""set_check_level(Cover self, IMP::CheckLevel a0)"""
5057  return _IMP_core.Cover_set_check_level(self, a0)
5058 
5059  def add_to_derivative(self, a0, a1, a2):
5060  r"""add_to_derivative(Cover self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5061  return _IMP_core.Cover_add_to_derivative(self, a0, a1, a2)
5062 
5063  def set_is_optimized(self, a0, a1):
5064  r"""set_is_optimized(Cover self, FloatKey a0, bool a1)"""
5065  return _IMP_core.Cover_set_is_optimized(self, a0, a1)
5066 
5067  def get_is_optimized(self, a0):
5068  r"""get_is_optimized(Cover self, FloatKey a0) -> bool"""
5069  return _IMP_core.Cover_get_is_optimized(self, a0)
5070 
5071  def get_check_level(self):
5072  r"""get_check_level(Cover self) -> IMP::CheckLevel"""
5073  return _IMP_core.Cover_get_check_level(self)
5074 
5075  def __eq__(self, *args):
5076  r"""
5077  __eq__(Cover self, Cover o) -> bool
5078  __eq__(Cover self, Particle d) -> bool
5079  """
5080  return _IMP_core.Cover___eq__(self, *args)
5081 
5082  def __ne__(self, *args):
5083  r"""
5084  __ne__(Cover self, Cover o) -> bool
5085  __ne__(Cover self, Particle d) -> bool
5086  """
5087  return _IMP_core.Cover___ne__(self, *args)
5088 
5089  def __le__(self, *args):
5090  r"""
5091  __le__(Cover self, Cover o) -> bool
5092  __le__(Cover self, Particle d) -> bool
5093  """
5094  return _IMP_core.Cover___le__(self, *args)
5095 
5096  def __lt__(self, *args):
5097  r"""
5098  __lt__(Cover self, Cover o) -> bool
5099  __lt__(Cover self, Particle d) -> bool
5100  """
5101  return _IMP_core.Cover___lt__(self, *args)
5102 
5103  def __ge__(self, *args):
5104  r"""
5105  __ge__(Cover self, Cover o) -> bool
5106  __ge__(Cover self, Particle d) -> bool
5107  """
5108  return _IMP_core.Cover___ge__(self, *args)
5109 
5110  def __gt__(self, *args):
5111  r"""
5112  __gt__(Cover self, Cover o) -> bool
5113  __gt__(Cover self, Particle d) -> bool
5114  """
5115  return _IMP_core.Cover___gt__(self, *args)
5116 
5117  def __hash__(self):
5118  r"""__hash__(Cover self) -> std::size_t"""
5119  return _IMP_core.Cover___hash__(self)
5120 
5121  def __str__(self):
5122  r"""__str__(Cover self) -> std::string"""
5123  return _IMP_core.Cover___str__(self)
5124 
5125  def __repr__(self):
5126  r"""__repr__(Cover self) -> std::string"""
5127  return _IMP_core.Cover___repr__(self)
5128 
5129  def _get_as_binary(self):
5130  r"""_get_as_binary(Cover self) -> PyObject *"""
5131  return _IMP_core.Cover__get_as_binary(self)
5132 
5133  def _set_from_binary(self, p):
5134  r"""_set_from_binary(Cover self, PyObject * p)"""
5135  return _IMP_core.Cover__set_from_binary(self, p)
5136 
5137  def __getstate__(self):
5138  p = self._get_as_binary()
5139  if len(self.__dict__) > 1:
5140  d = self.__dict__.copy()
5141  del d['this']
5142  p = (d, p)
5143  return p
5144 
5145  def __setstate__(self, p):
5146  if not hasattr(self, 'this'):
5147  self.__init__()
5148  if isinstance(p, tuple):
5149  d, p = p
5150  self.__dict__.update(d)
5151  return self._set_from_binary(p)
5152 
5153  __swig_destroy__ = _IMP_core.delete_Cover
5154 
5155 # Register Cover in _IMP_core:
5156 _IMP_core.Cover_swigregister(Cover)
5157 class DerivativesFromRefined(IMP.SingletonModifier):
5158  r"""Proxy of C++ IMP::core::DerivativesFromRefined class."""
5159 
5160  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5161 
5162  def __init__(self, *args):
5163  r"""__init__(DerivativesFromRefined self, Refiner r, IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> DerivativesFromRefined"""
5164  _IMP_core.DerivativesFromRefined_swiginit(self, _IMP_core.new_DerivativesFromRefined(*args))
5165 
5166  def do_get_inputs(self, m, pis):
5167  r"""do_get_inputs(DerivativesFromRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5168  return _IMP_core.DerivativesFromRefined_do_get_inputs(self, m, pis)
5169 
5170  def do_get_outputs(self, m, pis):
5171  r"""do_get_outputs(DerivativesFromRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5172  return _IMP_core.DerivativesFromRefined_do_get_outputs(self, m, pis)
5173 
5174  def get_version_info(self):
5175  r"""get_version_info(DerivativesFromRefined self) -> VersionInfo"""
5176  return _IMP_core.DerivativesFromRefined_get_version_info(self)
5177  __swig_destroy__ = _IMP_core.delete_DerivativesFromRefined
5178 
5179  def __str__(self):
5180  r"""__str__(DerivativesFromRefined self) -> std::string"""
5181  return _IMP_core.DerivativesFromRefined___str__(self)
5182 
5183  def __repr__(self):
5184  r"""__repr__(DerivativesFromRefined self) -> std::string"""
5185  return _IMP_core.DerivativesFromRefined___repr__(self)
5186 
5187  @staticmethod
5188  def get_from(o):
5189  return _object_cast_to_DerivativesFromRefined(o)
5190 
5191 
5192 # Register DerivativesFromRefined in _IMP_core:
5193 _IMP_core.DerivativesFromRefined_swigregister(DerivativesFromRefined)
5194 class DerivativesToRefined(IMP.SingletonModifier):
5195  r"""Proxy of C++ IMP::core::DerivativesToRefined class."""
5196 
5197  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5198 
5199  def __init__(self, *args):
5200  r"""__init__(DerivativesToRefined self, Refiner r, IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> DerivativesToRefined"""
5201  _IMP_core.DerivativesToRefined_swiginit(self, _IMP_core.new_DerivativesToRefined(*args))
5202 
5203  def do_get_inputs(self, m, pis):
5204  r"""do_get_inputs(DerivativesToRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5205  return _IMP_core.DerivativesToRefined_do_get_inputs(self, m, pis)
5206 
5207  def do_get_outputs(self, m, pis):
5208  r"""do_get_outputs(DerivativesToRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5209  return _IMP_core.DerivativesToRefined_do_get_outputs(self, m, pis)
5210 
5211  def get_version_info(self):
5212  r"""get_version_info(DerivativesToRefined self) -> VersionInfo"""
5213  return _IMP_core.DerivativesToRefined_get_version_info(self)
5214  __swig_destroy__ = _IMP_core.delete_DerivativesToRefined
5215 
5216  def __str__(self):
5217  r"""__str__(DerivativesToRefined self) -> std::string"""
5218  return _IMP_core.DerivativesToRefined___str__(self)
5219 
5220  def __repr__(self):
5221  r"""__repr__(DerivativesToRefined self) -> std::string"""
5222  return _IMP_core.DerivativesToRefined___repr__(self)
5223 
5224  @staticmethod
5225  def get_from(o):
5226  return _object_cast_to_DerivativesToRefined(o)
5227 
5228 
5229 # Register DerivativesToRefined in _IMP_core:
5230 _IMP_core.DerivativesToRefined_swigregister(DerivativesToRefined)
5231 class DiameterRestraint(IMP.Restraint):
5232  r"""Proxy of C++ IMP::core::DiameterRestraint class."""
5233 
5234  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5235 
5236  def __init__(self, f, sc, diameter):
5237  r"""__init__(DiameterRestraint self, UnaryFunction f, SingletonContainer sc, IMP::Float diameter) -> DiameterRestraint"""
5238  _IMP_core.DiameterRestraint_swiginit(self, _IMP_core.new_DiameterRestraint(f, sc, diameter))
5239 
5240  def do_get_inputs(self):
5241  r"""do_get_inputs(DiameterRestraint self) -> IMP::ModelObjectsTemp"""
5242  return _IMP_core.DiameterRestraint_do_get_inputs(self)
5243 
5244  def get_version_info(self):
5245  r"""get_version_info(DiameterRestraint self) -> VersionInfo"""
5246  return _IMP_core.DiameterRestraint_get_version_info(self)
5247  __swig_destroy__ = _IMP_core.delete_DiameterRestraint
5248 
5249  def do_create_decomposition(self):
5250  r"""do_create_decomposition(DiameterRestraint self) -> IMP::Restraints"""
5251  return _IMP_core.DiameterRestraint_do_create_decomposition(self)
5252 
5253  def do_create_current_decomposition(self):
5254  r"""do_create_current_decomposition(DiameterRestraint self) -> IMP::Restraints"""
5255  return _IMP_core.DiameterRestraint_do_create_current_decomposition(self)
5256 
5257  def __str__(self):
5258  r"""__str__(DiameterRestraint self) -> std::string"""
5259  return _IMP_core.DiameterRestraint___str__(self)
5260 
5261  def __repr__(self):
5262  r"""__repr__(DiameterRestraint self) -> std::string"""
5263  return _IMP_core.DiameterRestraint___repr__(self)
5264 
5265  @staticmethod
5266  def get_from(o):
5267  return _object_cast_to_DiameterRestraint(o)
5268 
5269 
5270 # Register DiameterRestraint in _IMP_core:
5271 _IMP_core.DiameterRestraint_swigregister(DiameterRestraint)
5272 class Transform(IMP.SingletonModifier):
5273  r"""Proxy of C++ IMP::core::Transform class."""
5274 
5275  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5276 
5277  def __init__(self, *args):
5278  r"""
5279  __init__(Transform self, Transformation3D t, bool ignore_non_xyz=False) -> Transform
5280  __init__(Transform self) -> Transform
5281  """
5282  _IMP_core.Transform_swiginit(self, _IMP_core.new_Transform(*args))
5283 
5284  def do_get_inputs(self, m, pis):
5285  r"""do_get_inputs(Transform self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5286  return _IMP_core.Transform_do_get_inputs(self, m, pis)
5287 
5288  def do_get_outputs(self, m, pis):
5289  r"""do_get_outputs(Transform self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5290  return _IMP_core.Transform_do_get_outputs(self, m, pis)
5291 
5292  def get_version_info(self):
5293  r"""get_version_info(Transform self) -> VersionInfo"""
5294  return _IMP_core.Transform_get_version_info(self)
5295  __swig_destroy__ = _IMP_core.delete_Transform
5296 
5297  def __str__(self):
5298  r"""__str__(Transform self) -> std::string"""
5299  return _IMP_core.Transform___str__(self)
5300 
5301  def __repr__(self):
5302  r"""__repr__(Transform self) -> std::string"""
5303  return _IMP_core.Transform___repr__(self)
5304 
5305  @staticmethod
5306  def get_from(o):
5307  return _object_cast_to_Transform(o)
5308 
5309 
5310  def _get_as_binary(self):
5311  r"""_get_as_binary(Transform self) -> PyObject *"""
5312  return _IMP_core.Transform__get_as_binary(self)
5313 
5314  def _set_from_binary(self, p):
5315  r"""_set_from_binary(Transform self, PyObject * p)"""
5316  return _IMP_core.Transform__set_from_binary(self, p)
5317 
5318  def __getstate__(self):
5319  p = self._get_as_binary()
5320  if len(self.__dict__) > 1:
5321  d = self.__dict__.copy()
5322  del d['this']
5323  p = (d, p)
5324  return p
5325 
5326  def __setstate__(self, p):
5327  if not hasattr(self, 'this'):
5328  self.__init__()
5329  if isinstance(p, tuple):
5330  d, p = p
5331  self.__dict__.update(d)
5332  return self._set_from_binary(p)
5333 
5334 
5335 # Register Transform in _IMP_core:
5336 _IMP_core.Transform_swigregister(Transform)
5337 class Reference(IMP.Decorator):
5338  r"""Proxy of C++ IMP::core::Reference class."""
5339 
5340  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5341 
5342  def __init__(self, *args):
5343  r"""
5344  __init__(Reference self) -> Reference
5345  __init__(Reference self, Model m, ParticleIndex id) -> Reference
5346  __init__(Reference self, _ParticleAdaptor d) -> Reference
5347  """
5348  _IMP_core.Reference_swiginit(self, _IMP_core.new_Reference(*args))
5349 
5350  def show(self, *args):
5351  r"""show(Reference self, _ostream out=std::cout)"""
5352  return _IMP_core.Reference_show(self, *args)
5353 
5354  @staticmethod
5355  def setup_particle(*args):
5356  r"""
5357  setup_particle(Model m, ParticleIndex pi, _ParticleIndexAdaptor reference) -> Reference
5358  setup_particle(_ParticleAdaptor pa, _ParticleIndexAdaptor reference) -> Reference
5359  """
5360  return _IMP_core.Reference_setup_particle(*args)
5361 
5362  def get_reference_particle(self):
5363  r"""get_reference_particle(Reference self) -> Particle"""
5364  return _IMP_core.Reference_get_reference_particle(self)
5365 
5366  @staticmethod
5367  def get_is_setup(*args):
5368  r"""
5369  get_is_setup(_ParticleAdaptor p) -> bool
5370  get_is_setup(Model m, ParticleIndex pi) -> bool
5371  """
5372  return _IMP_core.Reference_get_is_setup(*args)
5373 
5374  @staticmethod
5375  def get_reference_key():
5376  r"""get_reference_key() -> ParticleIndexKey"""
5377  return _IMP_core.Reference_get_reference_key()
5378 
5379  def add_attribute(self, *args):
5380  r"""
5381  add_attribute(Reference self, FloatKey k, IMP::Float v, bool opt)
5382  add_attribute(Reference self, FloatKey a0, IMP::Float a1)
5383  add_attribute(Reference self, IntKey a0, IMP::Int a1)
5384  add_attribute(Reference self, FloatsKey a0, IMP::Floats a1)
5385  add_attribute(Reference self, IntsKey a0, IMP::Ints a1)
5386  add_attribute(Reference self, StringKey a0, IMP::String a1)
5387  add_attribute(Reference self, ParticleIndexKey a0, Particle a1)
5388  add_attribute(Reference self, ObjectKey a0, Object a1)
5389  add_attribute(Reference self, SparseFloatKey a0, IMP::Float a1)
5390  add_attribute(Reference self, SparseIntKey a0, IMP::Int a1)
5391  add_attribute(Reference self, SparseStringKey a0, IMP::String a1)
5392  add_attribute(Reference self, SparseParticleIndexKey a0, ParticleIndex a1)
5393  """
5394  return _IMP_core.Reference_add_attribute(self, *args)
5395 
5396  def get_value(self, *args):
5397  r"""
5398  get_value(Reference self, FloatKey a0) -> IMP::Float
5399  get_value(Reference self, IntKey a0) -> IMP::Int
5400  get_value(Reference self, FloatsKey a0) -> IMP::Floats
5401  get_value(Reference self, IntsKey a0) -> IMP::Ints
5402  get_value(Reference self, StringKey a0) -> IMP::String
5403  get_value(Reference self, ParticleIndexKey a0) -> Particle
5404  get_value(Reference self, ObjectKey a0) -> Object
5405  get_value(Reference self, SparseFloatKey a0) -> IMP::Float
5406  get_value(Reference self, SparseIntKey a0) -> IMP::Int
5407  get_value(Reference self, SparseStringKey a0) -> IMP::String
5408  get_value(Reference self, SparseParticleIndexKey a0) -> ParticleIndex
5409  """
5410  return _IMP_core.Reference_get_value(self, *args)
5411 
5412  def set_value(self, *args):
5413  r"""
5414  set_value(Reference self, FloatKey a0, IMP::Float a1)
5415  set_value(Reference self, IntKey a0, IMP::Int a1)
5416  set_value(Reference self, FloatsKey a0, IMP::Floats a1)
5417  set_value(Reference self, IntsKey a0, IMP::Ints a1)
5418  set_value(Reference self, StringKey a0, IMP::String a1)
5419  set_value(Reference self, ParticleIndexKey a0, Particle a1)
5420  set_value(Reference self, ObjectKey a0, Object a1)
5421  set_value(Reference self, SparseFloatKey a0, IMP::Float a1)
5422  set_value(Reference self, SparseIntKey a0, IMP::Int a1)
5423  set_value(Reference self, SparseStringKey a0, IMP::String a1)
5424  set_value(Reference self, SparseParticleIndexKey a0, ParticleIndex a1)
5425  """
5426  return _IMP_core.Reference_set_value(self, *args)
5427 
5428  def remove_attribute(self, *args):
5429  r"""
5430  remove_attribute(Reference self, FloatKey a0)
5431  remove_attribute(Reference self, IntKey a0)
5432  remove_attribute(Reference self, FloatsKey a0)
5433  remove_attribute(Reference self, IntsKey a0)
5434  remove_attribute(Reference self, StringKey a0)
5435  remove_attribute(Reference self, ParticleIndexKey a0)
5436  remove_attribute(Reference self, ObjectKey a0)
5437  remove_attribute(Reference self, SparseFloatKey a0)
5438  remove_attribute(Reference self, SparseIntKey a0)
5439  remove_attribute(Reference self, SparseStringKey a0)
5440  remove_attribute(Reference self, SparseParticleIndexKey a0)
5441  """
5442  return _IMP_core.Reference_remove_attribute(self, *args)
5443 
5444  def has_attribute(self, *args):
5445  r"""
5446  has_attribute(Reference self, FloatKey a0) -> bool
5447  has_attribute(Reference self, IntKey a0) -> bool
5448  has_attribute(Reference self, FloatsKey a0) -> bool
5449  has_attribute(Reference self, IntsKey a0) -> bool
5450  has_attribute(Reference self, StringKey a0) -> bool
5451  has_attribute(Reference self, ParticleIndexKey a0) -> bool
5452  has_attribute(Reference self, ObjectKey a0) -> bool
5453  has_attribute(Reference self, SparseFloatKey a0) -> bool
5454  has_attribute(Reference self, SparseIntKey a0) -> bool
5455  has_attribute(Reference self, SparseStringKey a0) -> bool
5456  has_attribute(Reference self, SparseParticleIndexKey a0) -> bool
5457  """
5458  return _IMP_core.Reference_has_attribute(self, *args)
5459 
5460  def get_derivative(self, a0):
5461  r"""get_derivative(Reference self, FloatKey a0) -> double"""
5462  return _IMP_core.Reference_get_derivative(self, a0)
5463 
5464  def get_name(self):
5465  r"""get_name(Reference self) -> std::string"""
5466  return _IMP_core.Reference_get_name(self)
5467 
5468  def clear_caches(self):
5469  r"""clear_caches(Reference self)"""
5470  return _IMP_core.Reference_clear_caches(self)
5471 
5472  def set_name(self, a0):
5473  r"""set_name(Reference self, std::string a0)"""
5474  return _IMP_core.Reference_set_name(self, a0)
5475 
5476  def set_check_level(self, a0):
5477  r"""set_check_level(Reference self, IMP::CheckLevel a0)"""
5478  return _IMP_core.Reference_set_check_level(self, a0)
5479 
5480  def add_to_derivative(self, a0, a1, a2):
5481  r"""add_to_derivative(Reference self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5482  return _IMP_core.Reference_add_to_derivative(self, a0, a1, a2)
5483 
5484  def set_is_optimized(self, a0, a1):
5485  r"""set_is_optimized(Reference self, FloatKey a0, bool a1)"""
5486  return _IMP_core.Reference_set_is_optimized(self, a0, a1)
5487 
5488  def get_is_optimized(self, a0):
5489  r"""get_is_optimized(Reference self, FloatKey a0) -> bool"""
5490  return _IMP_core.Reference_get_is_optimized(self, a0)
5491 
5492  def get_check_level(self):
5493  r"""get_check_level(Reference self) -> IMP::CheckLevel"""
5494  return _IMP_core.Reference_get_check_level(self)
5495 
5496  def __eq__(self, *args):
5497  r"""
5498  __eq__(Reference self, Reference o) -> bool
5499  __eq__(Reference self, Particle d) -> bool
5500  """
5501  return _IMP_core.Reference___eq__(self, *args)
5502 
5503  def __ne__(self, *args):
5504  r"""
5505  __ne__(Reference self, Reference o) -> bool
5506  __ne__(Reference self, Particle d) -> bool
5507  """
5508  return _IMP_core.Reference___ne__(self, *args)
5509 
5510  def __le__(self, *args):
5511  r"""
5512  __le__(Reference self, Reference o) -> bool
5513  __le__(Reference self, Particle d) -> bool
5514  """
5515  return _IMP_core.Reference___le__(self, *args)
5516 
5517  def __lt__(self, *args):
5518  r"""
5519  __lt__(Reference self, Reference o) -> bool
5520  __lt__(Reference self, Particle d) -> bool
5521  """
5522  return _IMP_core.Reference___lt__(self, *args)
5523 
5524  def __ge__(self, *args):
5525  r"""
5526  __ge__(Reference self, Reference o) -> bool
5527  __ge__(Reference self, Particle d) -> bool
5528  """
5529  return _IMP_core.Reference___ge__(self, *args)
5530 
5531  def __gt__(self, *args):
5532  r"""
5533  __gt__(Reference self, Reference o) -> bool
5534  __gt__(Reference self, Particle d) -> bool
5535  """
5536  return _IMP_core.Reference___gt__(self, *args)
5537 
5538  def __hash__(self):
5539  r"""__hash__(Reference self) -> std::size_t"""
5540  return _IMP_core.Reference___hash__(self)
5541 
5542  def __str__(self):
5543  r"""__str__(Reference self) -> std::string"""
5544  return _IMP_core.Reference___str__(self)
5545 
5546  def __repr__(self):
5547  r"""__repr__(Reference self) -> std::string"""
5548  return _IMP_core.Reference___repr__(self)
5549 
5550  def _get_as_binary(self):
5551  r"""_get_as_binary(Reference self) -> PyObject *"""
5552  return _IMP_core.Reference__get_as_binary(self)
5553 
5554  def _set_from_binary(self, p):
5555  r"""_set_from_binary(Reference self, PyObject * p)"""
5556  return _IMP_core.Reference__set_from_binary(self, p)
5557 
5558  def __getstate__(self):
5559  p = self._get_as_binary()
5560  if len(self.__dict__) > 1:
5561  d = self.__dict__.copy()
5562  del d['this']
5563  p = (d, p)
5564  return p
5565 
5566  def __setstate__(self, p):
5567  if not hasattr(self, 'this'):
5568  self.__init__()
5569  if isinstance(p, tuple):
5570  d, p = p
5571  self.__dict__.update(d)
5572  return self._set_from_binary(p)
5573 
5574  __swig_destroy__ = _IMP_core.delete_Reference
5575 
5576 # Register Reference in _IMP_core:
5577 _IMP_core.Reference_swigregister(Reference)
5578 class TransformationAndReflectionSymmetry(IMP.SingletonModifier):
5579  r"""Proxy of C++ IMP::core::TransformationAndReflectionSymmetry class."""
5580 
5581  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5582 
5583  def __init__(self, t, r):
5584  r"""__init__(TransformationAndReflectionSymmetry self, Transformation3D t, Reflection3D r) -> TransformationAndReflectionSymmetry"""
5585  _IMP_core.TransformationAndReflectionSymmetry_swiginit(self, _IMP_core.new_TransformationAndReflectionSymmetry(t, r))
5586 
5587  def do_get_inputs(self, m, pis):
5588  r"""do_get_inputs(TransformationAndReflectionSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5589  return _IMP_core.TransformationAndReflectionSymmetry_do_get_inputs(self, m, pis)
5590 
5591  def do_get_outputs(self, m, pis):
5592  r"""do_get_outputs(TransformationAndReflectionSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5593  return _IMP_core.TransformationAndReflectionSymmetry_do_get_outputs(self, m, pis)
5594 
5595  def get_version_info(self):
5596  r"""get_version_info(TransformationAndReflectionSymmetry self) -> VersionInfo"""
5597  return _IMP_core.TransformationAndReflectionSymmetry_get_version_info(self)
5598  __swig_destroy__ = _IMP_core.delete_TransformationAndReflectionSymmetry
5599 
5600  def __str__(self):
5601  r"""__str__(TransformationAndReflectionSymmetry self) -> std::string"""
5602  return _IMP_core.TransformationAndReflectionSymmetry___str__(self)
5603 
5604  def __repr__(self):
5605  r"""__repr__(TransformationAndReflectionSymmetry self) -> std::string"""
5606  return _IMP_core.TransformationAndReflectionSymmetry___repr__(self)
5607 
5608  @staticmethod
5609  def get_from(o):
5610  return _object_cast_to_TransformationAndReflectionSymmetry(o)
5611 
5612 
5613 # Register TransformationAndReflectionSymmetry in _IMP_core:
5614 _IMP_core.TransformationAndReflectionSymmetry_swigregister(TransformationAndReflectionSymmetry)
5615 class TransformationSymmetry(IMP.SingletonModifier):
5616  r"""Proxy of C++ IMP::core::TransformationSymmetry class."""
5617 
5618  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5619 
5620  def __init__(self, *args):
5621  r"""
5622  __init__(TransformationSymmetry self, Transformation3D t) -> TransformationSymmetry
5623  __init__(TransformationSymmetry self, ParticleIndex rb_pi) -> TransformationSymmetry
5624  """
5625  _IMP_core.TransformationSymmetry_swiginit(self, _IMP_core.new_TransformationSymmetry(*args))
5626 
5627  def get_transformation(self):
5628  r"""get_transformation(TransformationSymmetry self) -> Transformation3D"""
5629  return _IMP_core.TransformationSymmetry_get_transformation(self)
5630 
5631  def set_transformation(self, t):
5632  r"""set_transformation(TransformationSymmetry self, Transformation3D t)"""
5633  return _IMP_core.TransformationSymmetry_set_transformation(self, t)
5634 
5635  def do_get_inputs(self, m, pis):
5636  r"""do_get_inputs(TransformationSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5637  return _IMP_core.TransformationSymmetry_do_get_inputs(self, m, pis)
5638 
5639  def do_get_outputs(self, m, pis):
5640  r"""do_get_outputs(TransformationSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5641  return _IMP_core.TransformationSymmetry_do_get_outputs(self, m, pis)
5642 
5643  def get_version_info(self):
5644  r"""get_version_info(TransformationSymmetry self) -> VersionInfo"""
5645  return _IMP_core.TransformationSymmetry_get_version_info(self)
5646  __swig_destroy__ = _IMP_core.delete_TransformationSymmetry
5647 
5648  def __str__(self):
5649  r"""__str__(TransformationSymmetry self) -> std::string"""
5650  return _IMP_core.TransformationSymmetry___str__(self)
5651 
5652  def __repr__(self):
5653  r"""__repr__(TransformationSymmetry self) -> std::string"""
5654  return _IMP_core.TransformationSymmetry___repr__(self)
5655 
5656  @staticmethod
5657  def get_from(o):
5658  return _object_cast_to_TransformationSymmetry(o)
5659 
5660 
5661 # Register TransformationSymmetry in _IMP_core:
5662 _IMP_core.TransformationSymmetry_swigregister(TransformationSymmetry)
5663 class TransformationSymmetryMover(MonteCarloMover):
5664  r"""Proxy of C++ IMP::core::TransformationSymmetryMover class."""
5665 
5666  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5667 
5668  def __init__(self, m, symm, pivot, max_translation, max_rotation):
5669  r"""__init__(TransformationSymmetryMover self, Model m, TransformationSymmetry symm, ParticleIndex pivot, IMP::Float max_translation, IMP::Float max_rotation) -> TransformationSymmetryMover"""
5670  _IMP_core.TransformationSymmetryMover_swiginit(self, _IMP_core.new_TransformationSymmetryMover(m, symm, pivot, max_translation, max_rotation))
5671 
5672  def set_maximum_translation(self, mt):
5673  r"""set_maximum_translation(TransformationSymmetryMover self, IMP::Float mt)"""
5674  return _IMP_core.TransformationSymmetryMover_set_maximum_translation(self, mt)
5675 
5676  def set_maximum_rotation(self, mr):
5677  r"""set_maximum_rotation(TransformationSymmetryMover self, IMP::Float mr)"""
5678  return _IMP_core.TransformationSymmetryMover_set_maximum_rotation(self, mr)
5679 
5680  def get_maximum_translation(self):
5681  r"""get_maximum_translation(TransformationSymmetryMover self) -> IMP::Float"""
5682  return _IMP_core.TransformationSymmetryMover_get_maximum_translation(self)
5683 
5684  def get_maximum_rotation(self):
5685  r"""get_maximum_rotation(TransformationSymmetryMover self) -> IMP::Float"""
5686  return _IMP_core.TransformationSymmetryMover_get_maximum_rotation(self)
5687 
5688  def get_version_info(self):
5689  r"""get_version_info(TransformationSymmetryMover self) -> VersionInfo"""
5690  return _IMP_core.TransformationSymmetryMover_get_version_info(self)
5691  __swig_destroy__ = _IMP_core.delete_TransformationSymmetryMover
5692 
5693  def __str__(self):
5694  r"""__str__(TransformationSymmetryMover self) -> std::string"""
5695  return _IMP_core.TransformationSymmetryMover___str__(self)
5696 
5697  def __repr__(self):
5698  r"""__repr__(TransformationSymmetryMover self) -> std::string"""
5699  return _IMP_core.TransformationSymmetryMover___repr__(self)
5700 
5701  @staticmethod
5702  def get_from(o):
5703  return _object_cast_to_TransformationSymmetryMover(o)
5704 
5705 
5706 # Register TransformationSymmetryMover in _IMP_core:
5707 _IMP_core.TransformationSymmetryMover_swigregister(TransformationSymmetryMover)
5708 class DihedralRestraint(IMP.Restraint):
5709  r"""Proxy of C++ IMP::core::DihedralRestraint class."""
5710 
5711  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5712 
5713  def __init__(self, m, score_func, p1, p2, p3, p4):
5714  r"""__init__(DihedralRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3, _ParticleIndexAdaptor p4) -> DihedralRestraint"""
5715  _IMP_core.DihedralRestraint_swiginit(self, _IMP_core.new_DihedralRestraint(m, score_func, p1, p2, p3, p4))
5716 
5717  def do_get_inputs(self):
5718  r"""do_get_inputs(DihedralRestraint self) -> IMP::ModelObjectsTemp"""
5719  return _IMP_core.DihedralRestraint_do_get_inputs(self)
5720 
5721  def get_version_info(self):
5722  r"""get_version_info(DihedralRestraint self) -> VersionInfo"""
5723  return _IMP_core.DihedralRestraint_get_version_info(self)
5724  __swig_destroy__ = _IMP_core.delete_DihedralRestraint
5725 
5726  def __str__(self):
5727  r"""__str__(DihedralRestraint self) -> std::string"""
5728  return _IMP_core.DihedralRestraint___str__(self)
5729 
5730  def __repr__(self):
5731  r"""__repr__(DihedralRestraint self) -> std::string"""
5732  return _IMP_core.DihedralRestraint___repr__(self)
5733 
5734  @staticmethod
5735  def get_from(o):
5736  return _object_cast_to_DihedralRestraint(o)
5737 
5738 
5739 # Register DihedralRestraint in _IMP_core:
5740 _IMP_core.DihedralRestraint_swigregister(DihedralRestraint)
5741 class DistancePairScore(IMP.PairScore):
5742  r"""Proxy of C++ IMP::core::DistancePairScore class."""
5743 
5744  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5745 
5746  def __init__(self, *args):
5747  r"""
5748  __init__(DistancePairScore self, UnaryFunction uf, std::string name="DistancePairScore%1%") -> DistancePairScore
5749  __init__(DistancePairScore self) -> DistancePairScore
5750  """
5751  _IMP_core.DistancePairScore_swiginit(self, _IMP_core.new_DistancePairScore(*args))
5752 
5753  def do_get_inputs(self, m, pis):
5754  r"""do_get_inputs(DistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5755  return _IMP_core.DistancePairScore_do_get_inputs(self, m, pis)
5756 
5757  def get_version_info(self):
5758  r"""get_version_info(DistancePairScore self) -> VersionInfo"""
5759  return _IMP_core.DistancePairScore_get_version_info(self)
5760  __swig_destroy__ = _IMP_core.delete_DistancePairScore
5761 
5762  def __str__(self):
5763  r"""__str__(DistancePairScore self) -> std::string"""
5764  return _IMP_core.DistancePairScore___str__(self)
5765 
5766  def __repr__(self):
5767  r"""__repr__(DistancePairScore self) -> std::string"""
5768  return _IMP_core.DistancePairScore___repr__(self)
5769 
5770  @staticmethod
5771  def get_from(o):
5772  return _object_cast_to_DistancePairScore(o)
5773 
5774 
5775  def _get_as_binary(self):
5776  r"""_get_as_binary(DistancePairScore self) -> PyObject *"""
5777  return _IMP_core.DistancePairScore__get_as_binary(self)
5778 
5779  def _set_from_binary(self, p):
5780  r"""_set_from_binary(DistancePairScore self, PyObject * p)"""
5781  return _IMP_core.DistancePairScore__set_from_binary(self, p)
5782 
5783  def __getstate__(self):
5784  p = self._get_as_binary()
5785  if len(self.__dict__) > 1:
5786  d = self.__dict__.copy()
5787  del d['this']
5788  p = (d, p)
5789  return p
5790 
5791  def __setstate__(self, p):
5792  if not hasattr(self, 'this'):
5793  self.__init__()
5794  if isinstance(p, tuple):
5795  d, p = p
5796  self.__dict__.update(d)
5797  return self._set_from_binary(p)
5798 
5799 
5800 # Register DistancePairScore in _IMP_core:
5801 _IMP_core.DistancePairScore_swigregister(DistancePairScore)
5802 class HarmonicDistancePairScore(IMP.PairScore):
5803  r"""Proxy of C++ IMP::core::HarmonicDistancePairScore class."""
5804 
5805  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5806 
5807  def __init__(self, *args):
5808  r"""
5809  __init__(HarmonicDistancePairScore self, double x0, double k, std::string name="HarmonicDistancePairScore%1%") -> HarmonicDistancePairScore
5810  __init__(HarmonicDistancePairScore self) -> HarmonicDistancePairScore
5811  """
5812  _IMP_core.HarmonicDistancePairScore_swiginit(self, _IMP_core.new_HarmonicDistancePairScore(*args))
5813 
5814  def do_get_inputs(self, m, pis):
5815  r"""do_get_inputs(HarmonicDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5816  return _IMP_core.HarmonicDistancePairScore_do_get_inputs(self, m, pis)
5817 
5818  def get_version_info(self):
5819  r"""get_version_info(HarmonicDistancePairScore self) -> VersionInfo"""
5820  return _IMP_core.HarmonicDistancePairScore_get_version_info(self)
5821  __swig_destroy__ = _IMP_core.delete_HarmonicDistancePairScore
5822 
5823  def __str__(self):
5824  r"""__str__(HarmonicDistancePairScore self) -> std::string"""
5825  return _IMP_core.HarmonicDistancePairScore___str__(self)
5826 
5827  def __repr__(self):
5828  r"""__repr__(HarmonicDistancePairScore self) -> std::string"""
5829  return _IMP_core.HarmonicDistancePairScore___repr__(self)
5830 
5831  @staticmethod
5832  def get_from(o):
5833  return _object_cast_to_HarmonicDistancePairScore(o)
5834 
5835 
5836  def _get_as_binary(self):
5837  r"""_get_as_binary(HarmonicDistancePairScore self) -> PyObject *"""
5838  return _IMP_core.HarmonicDistancePairScore__get_as_binary(self)
5839 
5840  def _set_from_binary(self, p):
5841  r"""_set_from_binary(HarmonicDistancePairScore self, PyObject * p)"""
5842  return _IMP_core.HarmonicDistancePairScore__set_from_binary(self, p)
5843 
5844  def __getstate__(self):
5845  p = self._get_as_binary()
5846  if len(self.__dict__) > 1:
5847  d = self.__dict__.copy()
5848  del d['this']
5849  p = (d, p)
5850  return p
5851 
5852  def __setstate__(self, p):
5853  if not hasattr(self, 'this'):
5854  self.__init__()
5855  if isinstance(p, tuple):
5856  d, p = p
5857  self.__dict__.update(d)
5858  return self._set_from_binary(p)
5859 
5860 
5861 # Register HarmonicDistancePairScore in _IMP_core:
5862 _IMP_core.HarmonicDistancePairScore_swigregister(HarmonicDistancePairScore)
5863 class DistanceRestraint(IMP.Restraint):
5864  r"""Proxy of C++ IMP::core::DistanceRestraint class."""
5865 
5866  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5867 
5868  def __init__(self, *args):
5869  r"""
5870  __init__(DistanceRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor a, _ParticleIndexAdaptor b, std::string name="DistanceRestraint %1%") -> DistanceRestraint
5871  __init__(DistanceRestraint self) -> DistanceRestraint
5872  """
5873  _IMP_core.DistanceRestraint_swiginit(self, _IMP_core.new_DistanceRestraint(*args))
5874 
5875  def get_version_info(self):
5876  r"""get_version_info(DistanceRestraint self) -> VersionInfo"""
5877  return _IMP_core.DistanceRestraint_get_version_info(self)
5878  __swig_destroy__ = _IMP_core.delete_DistanceRestraint
5879 
5880  def __str__(self):
5881  r"""__str__(DistanceRestraint self) -> std::string"""
5882  return _IMP_core.DistanceRestraint___str__(self)
5883 
5884  def __repr__(self):
5885  r"""__repr__(DistanceRestraint self) -> std::string"""
5886  return _IMP_core.DistanceRestraint___repr__(self)
5887 
5888  @staticmethod
5889  def get_from(o):
5890  return _object_cast_to_DistanceRestraint(o)
5891 
5892 
5893  def _get_as_binary(self):
5894  r"""_get_as_binary(DistanceRestraint self) -> PyObject *"""
5895  return _IMP_core.DistanceRestraint__get_as_binary(self)
5896 
5897  def _set_from_binary(self, p):
5898  r"""_set_from_binary(DistanceRestraint self, PyObject * p)"""
5899  return _IMP_core.DistanceRestraint__set_from_binary(self, p)
5900 
5901  def __getstate__(self):
5902  p = self._get_as_binary()
5903  if len(self.__dict__) > 1:
5904  d = self.__dict__.copy()
5905  del d['this']
5906  p = (d, p)
5907  return p
5908 
5909  def __setstate__(self, p):
5910  if not hasattr(self, 'this'):
5911  self.__init__()
5912  if isinstance(p, tuple):
5913  d, p = p
5914  self.__dict__.update(d)
5915  return self._set_from_binary(p)
5916 
5917 
5918 # Register DistanceRestraint in _IMP_core:
5919 _IMP_core.DistanceRestraint_swigregister(DistanceRestraint)
5920 class SphereDistanceToSingletonScore(IMP.SingletonScore):
5921  r"""Proxy of C++ IMP::core::SphereDistanceToSingletonScore class."""
5922 
5923  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5924 
5925  def __init__(self, f, pt):
5926  r"""__init__(SphereDistanceToSingletonScore self, UnaryFunction f, Vector3D pt) -> SphereDistanceToSingletonScore"""
5927  _IMP_core.SphereDistanceToSingletonScore_swiginit(self, _IMP_core.new_SphereDistanceToSingletonScore(f, pt))
5928 
5929  def do_get_inputs(self, m, pis):
5930  r"""do_get_inputs(SphereDistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5931  return _IMP_core.SphereDistanceToSingletonScore_do_get_inputs(self, m, pis)
5932 
5933  def get_version_info(self):
5934  r"""get_version_info(SphereDistanceToSingletonScore self) -> VersionInfo"""
5935  return _IMP_core.SphereDistanceToSingletonScore_get_version_info(self)
5936  __swig_destroy__ = _IMP_core.delete_SphereDistanceToSingletonScore
5937 
5938  def __str__(self):
5939  r"""__str__(SphereDistanceToSingletonScore self) -> std::string"""
5940  return _IMP_core.SphereDistanceToSingletonScore___str__(self)
5941 
5942  def __repr__(self):
5943  r"""__repr__(SphereDistanceToSingletonScore self) -> std::string"""
5944  return _IMP_core.SphereDistanceToSingletonScore___repr__(self)
5945 
5946  @staticmethod
5947  def get_from(o):
5948  return _object_cast_to_SphereDistanceToSingletonScore(o)
5949 
5950 
5951 # Register SphereDistanceToSingletonScore in _IMP_core:
5952 _IMP_core.SphereDistanceToSingletonScore_swigregister(SphereDistanceToSingletonScore)
5953 class ExcludedVolumeRestraint(IMP.Restraint):
5954  r"""Proxy of C++ IMP::core::ExcludedVolumeRestraint class."""
5955 
5956  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5957 
5958  def __init__(self, *args):
5959  r"""__init__(ExcludedVolumeRestraint self, _SingletonContainerAdaptor sc, double k=1, double slack=10, std::string name="ExcludedVolumeRestraint%1%") -> ExcludedVolumeRestraint"""
5960  _IMP_core.ExcludedVolumeRestraint_swiginit(self, _IMP_core.new_ExcludedVolumeRestraint(*args))
5961 
5962  def do_get_inputs(self):
5963  r"""do_get_inputs(ExcludedVolumeRestraint self) -> IMP::ModelObjectsTemp"""
5964  return _IMP_core.ExcludedVolumeRestraint_do_get_inputs(self)
5965 
5966  def get_version_info(self):
5967  r"""get_version_info(ExcludedVolumeRestraint self) -> VersionInfo"""
5968  return _IMP_core.ExcludedVolumeRestraint_get_version_info(self)
5969  __swig_destroy__ = _IMP_core.delete_ExcludedVolumeRestraint
5970 
5971  def do_create_decomposition(self):
5972  r"""do_create_decomposition(ExcludedVolumeRestraint self) -> IMP::Restraints"""
5973  return _IMP_core.ExcludedVolumeRestraint_do_create_decomposition(self)
5974 
5975  def do_create_current_decomposition(self):
5976  r"""do_create_current_decomposition(ExcludedVolumeRestraint self) -> IMP::Restraints"""
5977  return _IMP_core.ExcludedVolumeRestraint_do_create_current_decomposition(self)
5978 
5979  def get_indexes(self):
5980  r"""get_indexes(ExcludedVolumeRestraint self) -> IMP::ParticleIndexPairs const &"""
5981  return _IMP_core.ExcludedVolumeRestraint_get_indexes(self)
5982  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)
5983  def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
5984  def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
5985  pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc="List of ##ucnames")
5986 
5987  def remove_pair_filter(self, d):
5988  r"""remove_pair_filter(ExcludedVolumeRestraint self, PairPredicate d)"""
5989  return _IMP_core.ExcludedVolumeRestraint_remove_pair_filter(self, d)
5990 
5991  def _python_index_pair_filter(self, d, start, stop):
5992  r"""_python_index_pair_filter(ExcludedVolumeRestraint self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
5993  return _IMP_core.ExcludedVolumeRestraint__python_index_pair_filter(self, d, start, stop)
5994 
5995  def remove_pair_filters(self, d):
5996  r"""remove_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & d)"""
5997  return _IMP_core.ExcludedVolumeRestraint_remove_pair_filters(self, d)
5998 
5999  def set_pair_filters(self, ps):
6000  r"""set_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & ps)"""
6001  return _IMP_core.ExcludedVolumeRestraint_set_pair_filters(self, ps)
6002 
6003  def set_pair_filters_order(self, objs):
6004  r"""set_pair_filters_order(ExcludedVolumeRestraint self, IMP::PairPredicates const & objs)"""
6005  return _IMP_core.ExcludedVolumeRestraint_set_pair_filters_order(self, objs)
6006 
6007  def add_pair_filter(self, obj):
6008  r"""add_pair_filter(ExcludedVolumeRestraint self, PairPredicate obj) -> unsigned int"""
6009  return _IMP_core.ExcludedVolumeRestraint_add_pair_filter(self, obj)
6010 
6011  def add_pair_filters(self, objs):
6012  r"""add_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & objs)"""
6013  return _IMP_core.ExcludedVolumeRestraint_add_pair_filters(self, objs)
6014 
6015  def clear_pair_filters(self):
6016  r"""clear_pair_filters(ExcludedVolumeRestraint self)"""
6017  return _IMP_core.ExcludedVolumeRestraint_clear_pair_filters(self)
6018 
6019  def get_number_of_pair_filters(self):
6020  r"""get_number_of_pair_filters(ExcludedVolumeRestraint self) -> unsigned int"""
6021  return _IMP_core.ExcludedVolumeRestraint_get_number_of_pair_filters(self)
6022 
6023  def get_has_pair_filters(self):
6024  r"""get_has_pair_filters(ExcludedVolumeRestraint self) -> bool"""
6025  return _IMP_core.ExcludedVolumeRestraint_get_has_pair_filters(self)
6026 
6027  def get_pair_filter(self, i):
6028  r"""get_pair_filter(ExcludedVolumeRestraint self, unsigned int i) -> PairPredicate"""
6029  return _IMP_core.ExcludedVolumeRestraint_get_pair_filter(self, i)
6030 
6031  def get_pair_filters(self):
6032  r"""get_pair_filters(ExcludedVolumeRestraint self) -> IMP::PairPredicates"""
6033  return _IMP_core.ExcludedVolumeRestraint_get_pair_filters(self)
6034 
6035  def erase_pair_filter(self, i):
6036  r"""erase_pair_filter(ExcludedVolumeRestraint self, unsigned int i)"""
6037  return _IMP_core.ExcludedVolumeRestraint_erase_pair_filter(self, i)
6038 
6039  def reserve_pair_filters(self, sz):
6040  r"""reserve_pair_filters(ExcludedVolumeRestraint self, unsigned int sz)"""
6041  return _IMP_core.ExcludedVolumeRestraint_reserve_pair_filters(self, sz)
6042 
6043  def __str__(self):
6044  r"""__str__(ExcludedVolumeRestraint self) -> std::string"""
6045  return _IMP_core.ExcludedVolumeRestraint___str__(self)
6046 
6047  def __repr__(self):
6048  r"""__repr__(ExcludedVolumeRestraint self) -> std::string"""
6049  return _IMP_core.ExcludedVolumeRestraint___repr__(self)
6050 
6051  @staticmethod
6052  def get_from(o):
6053  return _object_cast_to_ExcludedVolumeRestraint(o)
6054 
6055 
6056 # Register ExcludedVolumeRestraint in _IMP_core:
6057 _IMP_core.ExcludedVolumeRestraint_swigregister(ExcludedVolumeRestraint)
6058 class FixedRefiner(IMP.Refiner):
6059  r"""Proxy of C++ IMP::core::FixedRefiner class."""
6060 
6061  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6062 
6063  def __init__(self, *args):
6064  r"""
6065  __init__(FixedRefiner self, IMP::ParticlesTemp const & ps) -> FixedRefiner
6066  __init__(FixedRefiner self, Model m, IMP::ParticleIndexes const & pis) -> FixedRefiner
6067  """
6068  _IMP_core.FixedRefiner_swiginit(self, _IMP_core.new_FixedRefiner(*args))
6069 
6070  def do_get_inputs(self, m, pis):
6071  r"""do_get_inputs(FixedRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6072  return _IMP_core.FixedRefiner_do_get_inputs(self, m, pis)
6073 
6074  def get_version_info(self):
6075  r"""get_version_info(FixedRefiner self) -> VersionInfo"""
6076  return _IMP_core.FixedRefiner_get_version_info(self)
6077  __swig_destroy__ = _IMP_core.delete_FixedRefiner
6078 
6079  def __str__(self):
6080  r"""__str__(FixedRefiner self) -> std::string"""
6081  return _IMP_core.FixedRefiner___str__(self)
6082 
6083  def __repr__(self):
6084  r"""__repr__(FixedRefiner self) -> std::string"""
6085  return _IMP_core.FixedRefiner___repr__(self)
6086 
6087  @staticmethod
6088  def get_from(o):
6089  return _object_cast_to_FixedRefiner(o)
6090 
6091 
6092 # Register FixedRefiner in _IMP_core:
6093 _IMP_core.FixedRefiner_swigregister(FixedRefiner)
6094 class GridClosePairsFinder(ClosePairsFinder):
6095  r"""Proxy of C++ IMP::core::GridClosePairsFinder class."""
6096 
6097  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6098 
6099  def __init__(self):
6100  r"""__init__(GridClosePairsFinder self) -> GridClosePairsFinder"""
6101  _IMP_core.GridClosePairsFinder_swiginit(self, _IMP_core.new_GridClosePairsFinder())
6102 
6103  def get_close_pairs(self, *args):
6104  r"""
6105  get_close_pairs(GridClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
6106  get_close_pairs(GridClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
6107  get_close_pairs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
6108  get_close_pairs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
6109  """
6110  return _IMP_core.GridClosePairsFinder_get_close_pairs(self, *args)
6111 
6112  def do_get_inputs(self, m, pis):
6113  r"""do_get_inputs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6114  return _IMP_core.GridClosePairsFinder_do_get_inputs(self, m, pis)
6115 
6116  def get_version_info(self):
6117  r"""get_version_info(GridClosePairsFinder self) -> VersionInfo"""
6118  return _IMP_core.GridClosePairsFinder_get_version_info(self)
6119  __swig_destroy__ = _IMP_core.delete_GridClosePairsFinder
6120 
6121  def __str__(self):
6122  r"""__str__(GridClosePairsFinder self) -> std::string"""
6123  return _IMP_core.GridClosePairsFinder___str__(self)
6124 
6125  def __repr__(self):
6126  r"""__repr__(GridClosePairsFinder self) -> std::string"""
6127  return _IMP_core.GridClosePairsFinder___repr__(self)
6128 
6129  @staticmethod
6130  def get_from(o):
6131  return _object_cast_to_GridClosePairsFinder(o)
6132 
6133 
6134  def _get_as_binary(self):
6135  r"""_get_as_binary(GridClosePairsFinder self) -> PyObject *"""
6136  return _IMP_core.GridClosePairsFinder__get_as_binary(self)
6137 
6138  def _set_from_binary(self, p):
6139  r"""_set_from_binary(GridClosePairsFinder self, PyObject * p)"""
6140  return _IMP_core.GridClosePairsFinder__set_from_binary(self, p)
6141 
6142  def __getstate__(self):
6143  p = self._get_as_binary()
6144  if len(self.__dict__) > 1:
6145  d = self.__dict__.copy()
6146  del d['this']
6147  p = (d, p)
6148  return p
6149 
6150  def __setstate__(self, p):
6151  if not hasattr(self, 'this'):
6152  self.__init__()
6153  if isinstance(p, tuple):
6154  d, p = p
6155  self.__dict__.update(d)
6156  return self._set_from_binary(p)
6157 
6158 
6159 # Register GridClosePairsFinder in _IMP_core:
6160 _IMP_core.GridClosePairsFinder_swigregister(GridClosePairsFinder)
6161 class Harmonic(IMP.UnaryFunction):
6162  r"""Proxy of C++ IMP::core::Harmonic class."""
6163 
6164  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6165 
6166  def __init__(self, *args):
6167  r"""
6168  __init__(Harmonic self, IMP::Float mean, IMP::Float k) -> Harmonic
6169  __init__(Harmonic self) -> Harmonic
6170  """
6171  _IMP_core.Harmonic_swiginit(self, _IMP_core.new_Harmonic(*args))
6172 
6173  def get_version_info(self):
6174  r"""get_version_info(Harmonic self) -> VersionInfo"""
6175  return _IMP_core.Harmonic_get_version_info(self)
6176  __swig_destroy__ = _IMP_core.delete_Harmonic
6177 
6178  def get_mean(self):
6179  r"""get_mean(Harmonic self) -> IMP::Float"""
6180  return _IMP_core.Harmonic_get_mean(self)
6181 
6182  def get_k(self):
6183  r"""get_k(Harmonic self) -> IMP::Float"""
6184  return _IMP_core.Harmonic_get_k(self)
6185 
6186  def set_mean(self, mean):
6187  r"""set_mean(Harmonic self, IMP::Float mean)"""
6188  return _IMP_core.Harmonic_set_mean(self, mean)
6189 
6190  def set_k(self, k):
6191  r"""set_k(Harmonic self, IMP::Float k)"""
6192  return _IMP_core.Harmonic_set_k(self, k)
6193 
6194  @staticmethod
6195  def get_k_from_standard_deviation(sd, t=297.15):
6196  r"""get_k_from_standard_deviation(IMP::Float sd, IMP::Float t=297.15) -> IMP::Float"""
6197  return _IMP_core.Harmonic_get_k_from_standard_deviation(sd, t)
6198 
6199  def __str__(self):
6200  r"""__str__(Harmonic self) -> std::string"""
6201  return _IMP_core.Harmonic___str__(self)
6202 
6203  def __repr__(self):
6204  r"""__repr__(Harmonic self) -> std::string"""
6205  return _IMP_core.Harmonic___repr__(self)
6206 
6207  @staticmethod
6208  def get_from(o):
6209  return _object_cast_to_Harmonic(o)
6210 
6211 
6212  def _get_as_binary(self):
6213  r"""_get_as_binary(Harmonic self) -> PyObject *"""
6214  return _IMP_core.Harmonic__get_as_binary(self)
6215 
6216  def _set_from_binary(self, p):
6217  r"""_set_from_binary(Harmonic self, PyObject * p)"""
6218  return _IMP_core.Harmonic__set_from_binary(self, p)
6219 
6220  def __getstate__(self):
6221  p = self._get_as_binary()
6222  if len(self.__dict__) > 1:
6223  d = self.__dict__.copy()
6224  del d['this']
6225  p = (d, p)
6226  return p
6227 
6228  def __setstate__(self, p):
6229  if not hasattr(self, 'this'):
6230  self.__init__()
6231  if isinstance(p, tuple):
6232  d, p = p
6233  self.__dict__.update(d)
6234  return self._set_from_binary(p)
6235 
6236 
6237 # Register Harmonic in _IMP_core:
6238 _IMP_core.Harmonic_swigregister(Harmonic)
6239 class HarmonicWell(IMP.UnaryFunction):
6240  r"""Proxy of C++ IMP::core::HarmonicWell class."""
6241 
6242  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6243 
6244  def __init__(self, well, k):
6245  r"""__init__(HarmonicWell self, IMP::FloatRange const & well, double k) -> HarmonicWell"""
6246  _IMP_core.HarmonicWell_swiginit(self, _IMP_core.new_HarmonicWell(well, k))
6247 
6248  def get_version_info(self):
6249  r"""get_version_info(HarmonicWell self) -> VersionInfo"""
6250  return _IMP_core.HarmonicWell_get_version_info(self)
6251  __swig_destroy__ = _IMP_core.delete_HarmonicWell
6252 
6253  def __str__(self):
6254  r"""__str__(HarmonicWell self) -> std::string"""
6255  return _IMP_core.HarmonicWell___str__(self)
6256 
6257  def __repr__(self):
6258  r"""__repr__(HarmonicWell self) -> std::string"""
6259  return _IMP_core.HarmonicWell___repr__(self)
6260 
6261  @staticmethod
6262  def get_from(o):
6263  return _object_cast_to_HarmonicWell(o)
6264 
6265 
6266 # Register HarmonicWell in _IMP_core:
6267 _IMP_core.HarmonicWell_swigregister(HarmonicWell)
6268 class HarmonicLowerBound(Harmonic):
6269  r"""Proxy of C++ IMP::core::HarmonicLowerBound class."""
6270 
6271  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6272 
6273  def __init__(self, *args):
6274  r"""
6275  __init__(HarmonicLowerBound self, IMP::Float mean, IMP::Float k) -> HarmonicLowerBound
6276  __init__(HarmonicLowerBound self) -> HarmonicLowerBound
6277  """
6278  _IMP_core.HarmonicLowerBound_swiginit(self, _IMP_core.new_HarmonicLowerBound(*args))
6279  __swig_destroy__ = _IMP_core.delete_HarmonicLowerBound
6280 
6281  def __str__(self):
6282  r"""__str__(HarmonicLowerBound self) -> std::string"""
6283  return _IMP_core.HarmonicLowerBound___str__(self)
6284 
6285  def __repr__(self):
6286  r"""__repr__(HarmonicLowerBound self) -> std::string"""
6287  return _IMP_core.HarmonicLowerBound___repr__(self)
6288 
6289  @staticmethod
6290  def get_from(o):
6291  return _object_cast_to_HarmonicLowerBound(o)
6292 
6293 
6294  def _get_as_binary(self):
6295  r"""_get_as_binary(HarmonicLowerBound self) -> PyObject *"""
6296  return _IMP_core.HarmonicLowerBound__get_as_binary(self)
6297 
6298  def _set_from_binary(self, p):
6299  r"""_set_from_binary(HarmonicLowerBound self, PyObject * p)"""
6300  return _IMP_core.HarmonicLowerBound__set_from_binary(self, p)
6301 
6302  def __getstate__(self):
6303  p = self._get_as_binary()
6304  if len(self.__dict__) > 1:
6305  d = self.__dict__.copy()
6306  del d['this']
6307  p = (d, p)
6308  return p
6309 
6310  def __setstate__(self, p):
6311  if not hasattr(self, 'this'):
6312  self.__init__()
6313  if isinstance(p, tuple):
6314  d, p = p
6315  self.__dict__.update(d)
6316  return self._set_from_binary(p)
6317 
6318 
6319 # Register HarmonicLowerBound in _IMP_core:
6320 _IMP_core.HarmonicLowerBound_swigregister(HarmonicLowerBound)
6321 class HarmonicUpperBound(Harmonic):
6322  r"""Proxy of C++ IMP::core::HarmonicUpperBound class."""
6323 
6324  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6325 
6326  def __init__(self, *args):
6327  r"""
6328  __init__(HarmonicUpperBound self, IMP::Float mean, IMP::Float k) -> HarmonicUpperBound
6329  __init__(HarmonicUpperBound self) -> HarmonicUpperBound
6330  """
6331  _IMP_core.HarmonicUpperBound_swiginit(self, _IMP_core.new_HarmonicUpperBound(*args))
6332  __swig_destroy__ = _IMP_core.delete_HarmonicUpperBound
6333 
6334  def __str__(self):
6335  r"""__str__(HarmonicUpperBound self) -> std::string"""
6336  return _IMP_core.HarmonicUpperBound___str__(self)
6337 
6338  def __repr__(self):
6339  r"""__repr__(HarmonicUpperBound self) -> std::string"""
6340  return _IMP_core.HarmonicUpperBound___repr__(self)
6341 
6342  @staticmethod
6343  def get_from(o):
6344  return _object_cast_to_HarmonicUpperBound(o)
6345 
6346 
6347  def _get_as_binary(self):
6348  r"""_get_as_binary(HarmonicUpperBound self) -> PyObject *"""
6349  return _IMP_core.HarmonicUpperBound__get_as_binary(self)
6350 
6351  def _set_from_binary(self, p):
6352  r"""_set_from_binary(HarmonicUpperBound self, PyObject * p)"""
6353  return _IMP_core.HarmonicUpperBound__set_from_binary(self, p)
6354 
6355  def __getstate__(self):
6356  p = self._get_as_binary()
6357  if len(self.__dict__) > 1:
6358  d = self.__dict__.copy()
6359  del d['this']
6360  p = (d, p)
6361  return p
6362 
6363  def __setstate__(self, p):
6364  if not hasattr(self, 'this'):
6365  self.__init__()
6366  if isinstance(p, tuple):
6367  d, p = p
6368  self.__dict__.update(d)
6369  return self._set_from_binary(p)
6370 
6371 
6372 # Register HarmonicUpperBound in _IMP_core:
6373 _IMP_core.HarmonicUpperBound_swigregister(HarmonicUpperBound)
6374 class WeightedSum(IMP.UnaryFunction):
6375  r"""Proxy of C++ IMP::core::WeightedSum class."""
6376 
6377  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6378 
6379  def __init__(self, funcs, weights):
6380  r"""__init__(WeightedSum self, IMP::UnaryFunctions funcs, IMP::Floats weights) -> WeightedSum"""
6381  _IMP_core.WeightedSum_swiginit(self, _IMP_core.new_WeightedSum(funcs, weights))
6382 
6383  def get_function_number(self):
6384  r"""get_function_number(WeightedSum self) -> unsigned int"""
6385  return _IMP_core.WeightedSum_get_function_number(self)
6386 
6387  def set_weights(self, weights):
6388  r"""set_weights(WeightedSum self, IMP::Floats weights)"""
6389  return _IMP_core.WeightedSum_set_weights(self, weights)
6390 
6391  def get_weights(self):
6392  r"""get_weights(WeightedSum self) -> IMP::Floats"""
6393  return _IMP_core.WeightedSum_get_weights(self)
6394 
6395  def get_weight(self, i):
6396  r"""get_weight(WeightedSum self, unsigned int i) -> double"""
6397  return _IMP_core.WeightedSum_get_weight(self, i)
6398 
6399  def get_function(self, i):
6400  r"""get_function(WeightedSum self, unsigned int i) -> UnaryFunction"""
6401  return _IMP_core.WeightedSum_get_function(self, i)
6402 
6403  def get_version_info(self):
6404  r"""get_version_info(WeightedSum self) -> VersionInfo"""
6405  return _IMP_core.WeightedSum_get_version_info(self)
6406  __swig_destroy__ = _IMP_core.delete_WeightedSum
6407 
6408  def __str__(self):
6409  r"""__str__(WeightedSum self) -> std::string"""
6410  return _IMP_core.WeightedSum___str__(self)
6411 
6412  def __repr__(self):
6413  r"""__repr__(WeightedSum self) -> std::string"""
6414  return _IMP_core.WeightedSum___repr__(self)
6415 
6416  @staticmethod
6417  def get_from(o):
6418  return _object_cast_to_WeightedSum(o)
6419 
6420 
6421 # Register WeightedSum in _IMP_core:
6422 _IMP_core.WeightedSum_swigregister(WeightedSum)
6423 class WeightedSumOfExponential(IMP.UnaryFunction):
6424  r"""Proxy of C++ IMP::core::WeightedSumOfExponential class."""
6425 
6426  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6427 
6428  def __init__(self, funcs, weights, denom=1.0):
6429  r"""__init__(WeightedSumOfExponential self, IMP::UnaryFunctions funcs, IMP::Floats weights, IMP::Float denom=1.0) -> WeightedSumOfExponential"""
6430  _IMP_core.WeightedSumOfExponential_swiginit(self, _IMP_core.new_WeightedSumOfExponential(funcs, weights, denom))
6431 
6432  def get_function_number(self):
6433  r"""get_function_number(WeightedSumOfExponential self) -> unsigned int"""
6434  return _IMP_core.WeightedSumOfExponential_get_function_number(self)
6435 
6436  def set_weights(self, weights):
6437  r"""set_weights(WeightedSumOfExponential self, IMP::Floats weights)"""
6438  return _IMP_core.WeightedSumOfExponential_set_weights(self, weights)
6439 
6440  def get_weights(self):
6441  r"""get_weights(WeightedSumOfExponential self) -> IMP::Floats"""
6442  return _IMP_core.WeightedSumOfExponential_get_weights(self)
6443 
6444  def get_weight(self, i):
6445  r"""get_weight(WeightedSumOfExponential self, unsigned int i) -> double"""
6446  return _IMP_core.WeightedSumOfExponential_get_weight(self, i)
6447 
6448  def get_function(self, i):
6449  r"""get_function(WeightedSumOfExponential self, unsigned int i) -> UnaryFunction"""
6450  return _IMP_core.WeightedSumOfExponential_get_function(self, i)
6451 
6452  def set_denominator(self, denom):
6453  r"""set_denominator(WeightedSumOfExponential self, double denom)"""
6454  return _IMP_core.WeightedSumOfExponential_set_denominator(self, denom)
6455 
6456  def get_denominator(self):
6457  r"""get_denominator(WeightedSumOfExponential self) -> double"""
6458  return _IMP_core.WeightedSumOfExponential_get_denominator(self)
6459 
6460  def get_version_info(self):
6461  r"""get_version_info(WeightedSumOfExponential self) -> VersionInfo"""
6462  return _IMP_core.WeightedSumOfExponential_get_version_info(self)
6463  __swig_destroy__ = _IMP_core.delete_WeightedSumOfExponential
6464 
6465  def __str__(self):
6466  r"""__str__(WeightedSumOfExponential self) -> std::string"""
6467  return _IMP_core.WeightedSumOfExponential___str__(self)
6468 
6469  def __repr__(self):
6470  r"""__repr__(WeightedSumOfExponential self) -> std::string"""
6471  return _IMP_core.WeightedSumOfExponential___repr__(self)
6472 
6473  @staticmethod
6474  def get_from(o):
6475  return _object_cast_to_WeightedSumOfExponential(o)
6476 
6477 
6478 # Register WeightedSumOfExponential in _IMP_core:
6479 _IMP_core.WeightedSumOfExponential_swigregister(WeightedSumOfExponential)
6480 class MSConnectivityRestraint(IMP.Restraint):
6481  r"""Proxy of C++ IMP::core::MSConnectivityRestraint class."""
6482 
6483  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6484 
6485  def __init__(self, m, ps, eps=0.1):
6486  r"""__init__(MSConnectivityRestraint self, Model m, PairScore ps, double eps=0.1) -> MSConnectivityRestraint"""
6487  _IMP_core.MSConnectivityRestraint_swiginit(self, _IMP_core.new_MSConnectivityRestraint(m, ps, eps))
6488 
6489  def add_type(self, ps):
6490  r"""add_type(MSConnectivityRestraint self, IMP::ParticlesTemp const & ps) -> unsigned int"""
6491  return _IMP_core.MSConnectivityRestraint_add_type(self, ps)
6492 
6493  def add_composite(self, *args):
6494  r"""
6495  add_composite(MSConnectivityRestraint self, IMP::Ints const & components) -> unsigned int
6496  add_composite(MSConnectivityRestraint self, IMP::Ints const & components, unsigned int parent) -> unsigned int
6497  """
6498  return _IMP_core.MSConnectivityRestraint_add_composite(self, *args)
6499 
6500  def get_connected_pairs(self):
6501  r"""get_connected_pairs(MSConnectivityRestraint self) -> IMP::ParticlePairsTemp"""
6502  return _IMP_core.MSConnectivityRestraint_get_connected_pairs(self)
6503 
6504  def get_pair_score(self):
6505  r"""get_pair_score(MSConnectivityRestraint self) -> PairScore"""
6506  return _IMP_core.MSConnectivityRestraint_get_pair_score(self)
6507 
6508  def do_create_current_decomposition(self):
6509  r"""do_create_current_decomposition(MSConnectivityRestraint self) -> IMP::Restraints"""
6510  return _IMP_core.MSConnectivityRestraint_do_create_current_decomposition(self)
6511 
6512  def do_get_inputs(self):
6513  r"""do_get_inputs(MSConnectivityRestraint self) -> IMP::ModelObjectsTemp"""
6514  return _IMP_core.MSConnectivityRestraint_do_get_inputs(self)
6515 
6516  def get_version_info(self):
6517  r"""get_version_info(MSConnectivityRestraint self) -> VersionInfo"""
6518  return _IMP_core.MSConnectivityRestraint_get_version_info(self)
6519  __swig_destroy__ = _IMP_core.delete_MSConnectivityRestraint
6520 
6521  def __str__(self):
6522  r"""__str__(MSConnectivityRestraint self) -> std::string"""
6523  return _IMP_core.MSConnectivityRestraint___str__(self)
6524 
6525  def __repr__(self):
6526  r"""__repr__(MSConnectivityRestraint self) -> std::string"""
6527  return _IMP_core.MSConnectivityRestraint___repr__(self)
6528 
6529  @staticmethod
6530  def get_from(o):
6531  return _object_cast_to_MSConnectivityRestraint(o)
6532 
6533 
6534 # Register MSConnectivityRestraint in _IMP_core:
6535 _IMP_core.MSConnectivityRestraint_swigregister(MSConnectivityRestraint)
6536 class HierarchyTraits(object):
6537  r"""Proxy of C++ IMP::core::HierarchyTraits class."""
6538 
6539  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6540 
6541  def __init__(self, *args):
6542  r"""
6543  __init__(HierarchyTraits self) -> HierarchyTraits
6544  __init__(HierarchyTraits self, std::string name) -> HierarchyTraits
6545  """
6546  _IMP_core.HierarchyTraits_swiginit(self, _IMP_core.new_HierarchyTraits(*args))
6547 
6548  def get_children_key(self):
6549  r"""get_children_key(HierarchyTraits self) -> ParticleIndexesKey"""
6550  return _IMP_core.HierarchyTraits_get_children_key(self)
6551 
6552  def get_parent_key(self):
6553  r"""get_parent_key(HierarchyTraits self) -> ParticleIndexKey"""
6554  return _IMP_core.HierarchyTraits_get_parent_key(self)
6555 
6556  def __eq__(self, o):
6557  r"""__eq__(HierarchyTraits self, HierarchyTraits o) -> bool"""
6558  return _IMP_core.HierarchyTraits___eq__(self, o)
6559 
6560  def show(self, *args):
6561  r"""show(HierarchyTraits self, _ostream out=std::cout)"""
6562  return _IMP_core.HierarchyTraits_show(self, *args)
6563 
6564  def __str__(self):
6565  r"""__str__(HierarchyTraits self) -> std::string"""
6566  return _IMP_core.HierarchyTraits___str__(self)
6567 
6568  def __repr__(self):
6569  r"""__repr__(HierarchyTraits self) -> std::string"""
6570  return _IMP_core.HierarchyTraits___repr__(self)
6571  __swig_destroy__ = _IMP_core.delete_HierarchyTraits
6572 
6573 # Register HierarchyTraits in _IMP_core:
6574 _IMP_core.HierarchyTraits_swigregister(HierarchyTraits)
6575 class Hierarchy(IMP.Decorator):
6576  r"""Proxy of C++ IMP::core::Hierarchy class."""
6577 
6578  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6579 
6580  def get_decorator_traits(self):
6581  r"""get_decorator_traits(Hierarchy self) -> HierarchyTraits"""
6582  return _IMP_core.Hierarchy_get_decorator_traits(self)
6583 
6584  @staticmethod
6585  def get_default_decorator_traits():
6586  r"""get_default_decorator_traits() -> HierarchyTraits"""
6587  return _IMP_core.Hierarchy_get_default_decorator_traits()
6588 
6589  def __init__(self, *args):
6590  r"""
6591  __init__(Hierarchy self) -> Hierarchy
6592  __init__(Hierarchy self, Model m, ParticleIndex id, HierarchyTraits tr=get_default_traits()) -> Hierarchy
6593  __init__(Hierarchy self, _ParticleAdaptor d, HierarchyTraits tr=get_default_traits()) -> Hierarchy
6594  """
6595  _IMP_core.Hierarchy_swiginit(self, _IMP_core.new_Hierarchy(*args))
6596 
6597  def show(self, *args):
6598  r"""show(Hierarchy self, _ostream out=std::cout)"""
6599  return _IMP_core.Hierarchy_show(self, *args)
6600 
6601  @staticmethod
6602  def setup_particle(*args):
6603  r"""
6604  setup_particle(Model m, ParticleIndex pi, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6605  setup_particle(_ParticleAdaptor d, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6606  setup_particle(Model m, ParticleIndex pi, IMP::ParticleIndexes children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6607  setup_particle(_ParticleAdaptor d, IMP::ParticleIndexes children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6608  setup_particle(Model m, ParticleIndex pi, IMP::ParticlesTemp children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6609  setup_particle(_ParticleAdaptor d, IMP::ParticlesTemp children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6610  """
6611  return _IMP_core.Hierarchy_setup_particle(*args)
6612 
6613  @staticmethod
6614  def get_is_setup(*args):
6615  r"""
6616  get_is_setup(_ParticleAdaptor p, HierarchyTraits tr=get_default_traits()) -> bool
6617  get_is_setup(Model arg1, ParticleIndex arg2, HierarchyTraits arg3=Hierarchy::get_default_traits()) -> bool
6618  """
6619  return _IMP_core.Hierarchy_get_is_setup(*args)
6620 
6621  @staticmethod
6622  def get_changed_key():
6623  r"""get_changed_key() -> TriggerKey"""
6624  return _IMP_core.Hierarchy_get_changed_key()
6625 
6626  def get_parent(self):
6627  r"""get_parent(Hierarchy self) -> Hierarchy"""
6628  return _IMP_core.Hierarchy_get_parent(self)
6629 
6630  def get_number_of_children(self):
6631  r"""get_number_of_children(Hierarchy self) -> unsigned int"""
6632  return _IMP_core.Hierarchy_get_number_of_children(self)
6633 
6634  def get_child(self, i):
6635  r"""get_child(Hierarchy self, unsigned int i) -> Hierarchy"""
6636  return _IMP_core.Hierarchy_get_child(self, i)
6637 
6638  def get_children_indexes(self):
6639  r"""get_children_indexes(Hierarchy self) -> IMP::ParticleIndexes"""
6640  return _IMP_core.Hierarchy_get_children_indexes(self)
6641 
6642  def get_children(self):
6643  r"""get_children(Hierarchy self) -> IMP::core::GenericHierarchies"""
6644  return _IMP_core.Hierarchy_get_children(self)
6645 
6646  def remove_child(self, *args):
6647  r"""
6648  remove_child(Hierarchy self, unsigned int i)
6649  remove_child(Hierarchy self, Hierarchy h)
6650  """
6651  return _IMP_core.Hierarchy_remove_child(self, *args)
6652 
6653  def clear_children(self):
6654  r"""clear_children(Hierarchy self)"""
6655  return _IMP_core.Hierarchy_clear_children(self)
6656 
6657  def add_child(self, h):
6658  r"""add_child(Hierarchy self, Hierarchy h)"""
6659  return _IMP_core.Hierarchy_add_child(self, h)
6660 
6661  def add_child_at(self, h, pos):
6662  r"""add_child_at(Hierarchy self, Hierarchy h, unsigned int pos)"""
6663  return _IMP_core.Hierarchy_add_child_at(self, h, pos)
6664 
6665  def get_child_index(self, *args):
6666  r"""
6667  get_child_index(Hierarchy self, unsigned int i) -> ParticleIndex
6668  get_child_index(Hierarchy self) -> int
6669  """
6670  return _IMP_core.Hierarchy_get_child_index(self, *args)
6671 
6672  @staticmethod
6673  def get_default_traits():
6674  r"""get_default_traits() -> HierarchyTraits"""
6675  return _IMP_core.Hierarchy_get_default_traits()
6676 
6677  def get_traits(self):
6678  r"""get_traits(Hierarchy self) -> HierarchyTraits"""
6679  return _IMP_core.Hierarchy_get_traits(self)
6680 
6681  def add_attribute(self, *args):
6682  r"""
6683  add_attribute(Hierarchy self, FloatKey k, IMP::Float v, bool opt)
6684  add_attribute(Hierarchy self, FloatKey a0, IMP::Float a1)
6685  add_attribute(Hierarchy self, IntKey a0, IMP::Int a1)
6686  add_attribute(Hierarchy self, FloatsKey a0, IMP::Floats a1)
6687  add_attribute(Hierarchy self, IntsKey a0, IMP::Ints a1)
6688  add_attribute(Hierarchy self, StringKey a0, IMP::String a1)
6689  add_attribute(Hierarchy self, ParticleIndexKey a0, Particle a1)
6690  add_attribute(Hierarchy self, ObjectKey a0, Object a1)
6691  add_attribute(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
6692  add_attribute(Hierarchy self, SparseIntKey a0, IMP::Int a1)
6693  add_attribute(Hierarchy self, SparseStringKey a0, IMP::String a1)
6694  add_attribute(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
6695  """
6696  return _IMP_core.Hierarchy_add_attribute(self, *args)
6697 
6698  def get_value(self, *args):
6699  r"""
6700  get_value(Hierarchy self, FloatKey a0) -> IMP::Float
6701  get_value(Hierarchy self, IntKey a0) -> IMP::Int
6702  get_value(Hierarchy self, FloatsKey a0) -> IMP::Floats
6703  get_value(Hierarchy self, IntsKey a0) -> IMP::Ints
6704  get_value(Hierarchy self, StringKey a0) -> IMP::String
6705  get_value(Hierarchy self, ParticleIndexKey a0) -> Particle
6706  get_value(Hierarchy self, ObjectKey a0) -> Object
6707  get_value(Hierarchy self, SparseFloatKey a0) -> IMP::Float
6708  get_value(Hierarchy self, SparseIntKey a0) -> IMP::Int
6709  get_value(Hierarchy self, SparseStringKey a0) -> IMP::String
6710  get_value(Hierarchy self, SparseParticleIndexKey a0) -> ParticleIndex
6711  """
6712  return _IMP_core.Hierarchy_get_value(self, *args)
6713 
6714  def set_value(self, *args):
6715  r"""
6716  set_value(Hierarchy self, FloatKey a0, IMP::Float a1)
6717  set_value(Hierarchy self, IntKey a0, IMP::Int a1)
6718  set_value(Hierarchy self, FloatsKey a0, IMP::Floats a1)
6719  set_value(Hierarchy self, IntsKey a0, IMP::Ints a1)
6720  set_value(Hierarchy self, StringKey a0, IMP::String a1)
6721  set_value(Hierarchy self, ParticleIndexKey a0, Particle a1)
6722  set_value(Hierarchy self, ObjectKey a0, Object a1)
6723  set_value(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
6724  set_value(Hierarchy self, SparseIntKey a0, IMP::Int a1)
6725  set_value(Hierarchy self, SparseStringKey a0, IMP::String a1)
6726  set_value(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
6727  """
6728  return _IMP_core.Hierarchy_set_value(self, *args)
6729 
6730  def remove_attribute(self, *args):
6731  r"""
6732  remove_attribute(Hierarchy self, FloatKey a0)
6733  remove_attribute(Hierarchy self, IntKey a0)
6734  remove_attribute(Hierarchy self, FloatsKey a0)
6735  remove_attribute(Hierarchy self, IntsKey a0)
6736  remove_attribute(Hierarchy self, StringKey a0)
6737  remove_attribute(Hierarchy self, ParticleIndexKey a0)
6738  remove_attribute(Hierarchy self, ObjectKey a0)
6739  remove_attribute(Hierarchy self, SparseFloatKey a0)
6740  remove_attribute(Hierarchy self, SparseIntKey a0)
6741  remove_attribute(Hierarchy self, SparseStringKey a0)
6742  remove_attribute(Hierarchy self, SparseParticleIndexKey a0)
6743  """
6744  return _IMP_core.Hierarchy_remove_attribute(self, *args)
6745 
6746  def has_attribute(self, *args):
6747  r"""
6748  has_attribute(Hierarchy self, FloatKey a0) -> bool
6749  has_attribute(Hierarchy self, IntKey a0) -> bool
6750  has_attribute(Hierarchy self, FloatsKey a0) -> bool
6751  has_attribute(Hierarchy self, IntsKey a0) -> bool
6752  has_attribute(Hierarchy self, StringKey a0) -> bool
6753  has_attribute(Hierarchy self, ParticleIndexKey a0) -> bool
6754  has_attribute(Hierarchy self, ObjectKey a0) -> bool
6755  has_attribute(Hierarchy self, SparseFloatKey a0) -> bool
6756  has_attribute(Hierarchy self, SparseIntKey a0) -> bool
6757  has_attribute(Hierarchy self, SparseStringKey a0) -> bool
6758  has_attribute(Hierarchy self, SparseParticleIndexKey a0) -> bool
6759  """
6760  return _IMP_core.Hierarchy_has_attribute(self, *args)
6761 
6762  def get_derivative(self, a0):
6763  r"""get_derivative(Hierarchy self, FloatKey a0) -> double"""
6764  return _IMP_core.Hierarchy_get_derivative(self, a0)
6765 
6766  def get_name(self):
6767  r"""get_name(Hierarchy self) -> std::string"""
6768  return _IMP_core.Hierarchy_get_name(self)
6769 
6770  def clear_caches(self):
6771  r"""clear_caches(Hierarchy self)"""
6772  return _IMP_core.Hierarchy_clear_caches(self)
6773 
6774  def set_name(self, a0):
6775  r"""set_name(Hierarchy self, std::string a0)"""
6776  return _IMP_core.Hierarchy_set_name(self, a0)
6777 
6778  def set_check_level(self, a0):
6779  r"""set_check_level(Hierarchy self, IMP::CheckLevel a0)"""
6780  return _IMP_core.Hierarchy_set_check_level(self, a0)
6781 
6782  def add_to_derivative(self, a0, a1, a2):
6783  r"""add_to_derivative(Hierarchy self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6784  return _IMP_core.Hierarchy_add_to_derivative(self, a0, a1, a2)
6785 
6786  def set_is_optimized(self, a0, a1):
6787  r"""set_is_optimized(Hierarchy self, FloatKey a0, bool a1)"""
6788  return _IMP_core.Hierarchy_set_is_optimized(self, a0, a1)
6789 
6790  def get_is_optimized(self, a0):
6791  r"""get_is_optimized(Hierarchy self, FloatKey a0) -> bool"""
6792  return _IMP_core.Hierarchy_get_is_optimized(self, a0)
6793 
6794  def get_check_level(self):
6795  r"""get_check_level(Hierarchy self) -> IMP::CheckLevel"""
6796  return _IMP_core.Hierarchy_get_check_level(self)
6797 
6798  def __eq__(self, *args):
6799  r"""
6800  __eq__(Hierarchy self, Hierarchy o) -> bool
6801  __eq__(Hierarchy self, Particle d) -> bool
6802  """
6803  return _IMP_core.Hierarchy___eq__(self, *args)
6804 
6805  def __ne__(self, *args):
6806  r"""
6807  __ne__(Hierarchy self, Hierarchy o) -> bool
6808  __ne__(Hierarchy self, Particle d) -> bool
6809  """
6810  return _IMP_core.Hierarchy___ne__(self, *args)
6811 
6812  def __le__(self, *args):
6813  r"""
6814  __le__(Hierarchy self, Hierarchy o) -> bool
6815  __le__(Hierarchy self, Particle d) -> bool
6816  """
6817  return _IMP_core.Hierarchy___le__(self, *args)
6818 
6819  def __lt__(self, *args):
6820  r"""
6821  __lt__(Hierarchy self, Hierarchy o) -> bool
6822  __lt__(Hierarchy self, Particle d) -> bool
6823  """
6824  return _IMP_core.Hierarchy___lt__(self, *args)
6825 
6826  def __ge__(self, *args):
6827  r"""
6828  __ge__(Hierarchy self, Hierarchy o) -> bool
6829  __ge__(Hierarchy self, Particle d) -> bool
6830  """
6831  return _IMP_core.Hierarchy___ge__(self, *args)
6832 
6833  def __gt__(self, *args):
6834  r"""
6835  __gt__(Hierarchy self, Hierarchy o) -> bool
6836  __gt__(Hierarchy self, Particle d) -> bool
6837  """
6838  return _IMP_core.Hierarchy___gt__(self, *args)
6839 
6840  def __hash__(self):
6841  r"""__hash__(Hierarchy self) -> std::size_t"""
6842  return _IMP_core.Hierarchy___hash__(self)
6843 
6844  def __str__(self):
6845  r"""__str__(Hierarchy self) -> std::string"""
6846  return _IMP_core.Hierarchy___str__(self)
6847 
6848  def __repr__(self):
6849  r"""__repr__(Hierarchy self) -> std::string"""
6850  return _IMP_core.Hierarchy___repr__(self)
6851  __swig_destroy__ = _IMP_core.delete_Hierarchy
6852 
6853 # Register Hierarchy in _IMP_core:
6854 _IMP_core.Hierarchy_swigregister(Hierarchy)
6855 class HierarchyVisitor(object):
6856  r"""Proxy of C++ IMP::core::HierarchyVisitor class."""
6857 
6858  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6859  __repr__ = _swig_repr
6860 
6861  def __init__(self):
6862  r"""__init__(HierarchyVisitor self) -> HierarchyVisitor"""
6863  if self.__class__ == HierarchyVisitor:
6864  _self = None
6865  else:
6866  _self = self
6867  _IMP_core.HierarchyVisitor_swiginit(self, _IMP_core.new_HierarchyVisitor(_self, ))
6868 
6869  if self.__class__ != HierarchyVisitor:
6870  _director_objects.register(self)
6871 
6872 
6873 
6874 
6875  def __call__(self, p):
6876  r"""__call__(HierarchyVisitor self, Hierarchy p) -> bool"""
6877  return _IMP_core.HierarchyVisitor___call__(self, p)
6878  __swig_destroy__ = _IMP_core.delete_HierarchyVisitor
6879  def __disown__(self):
6880  self.this.disown()
6881  _IMP_core.disown_HierarchyVisitor(self)
6882  return weakref.proxy(self)
6883 
6884 # Register HierarchyVisitor in _IMP_core:
6885 _IMP_core.HierarchyVisitor_swigregister(HierarchyVisitor)
6886 class ModifierVisitor(HierarchyVisitor):
6887  r"""Proxy of C++ IMP::core::ModifierVisitor class."""
6888 
6889  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6890  __repr__ = _swig_repr
6891 
6892  def __init__(self, sm):
6893  r"""__init__(ModifierVisitor self, SingletonModifier sm) -> ModifierVisitor"""
6894  _IMP_core.ModifierVisitor_swiginit(self, _IMP_core.new_ModifierVisitor(sm))
6895  __swig_destroy__ = _IMP_core.delete_ModifierVisitor
6896 
6897 # Register ModifierVisitor in _IMP_core:
6898 _IMP_core.ModifierVisitor_swigregister(ModifierVisitor)
6899 class HierarchyCounter(HierarchyVisitor):
6900  r"""Proxy of C++ IMP::core::HierarchyCounter class."""
6901 
6902  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6903 
6904  def __init__(self):
6905  r"""__init__(HierarchyCounter self) -> HierarchyCounter"""
6906  _IMP_core.HierarchyCounter_swiginit(self, _IMP_core.new_HierarchyCounter())
6907 
6908  def get_count(self):
6909  r"""get_count(HierarchyCounter self) -> unsigned int"""
6910  return _IMP_core.HierarchyCounter_get_count(self)
6911 
6912  def show(self, *args):
6913  r"""show(HierarchyCounter self, _ostream out=std::cout)"""
6914  return _IMP_core.HierarchyCounter_show(self, *args)
6915 
6916  def __str__(self):
6917  r"""__str__(HierarchyCounter self) -> std::string"""
6918  return _IMP_core.HierarchyCounter___str__(self)
6919 
6920  def __repr__(self):
6921  r"""__repr__(HierarchyCounter self) -> std::string"""
6922  return _IMP_core.HierarchyCounter___repr__(self)
6923 
6924  def _get_as_binary(self):
6925  r"""_get_as_binary(HierarchyCounter self) -> PyObject *"""
6926  return _IMP_core.HierarchyCounter__get_as_binary(self)
6927 
6928  def _set_from_binary(self, p):
6929  r"""_set_from_binary(HierarchyCounter self, PyObject * p)"""
6930  return _IMP_core.HierarchyCounter__set_from_binary(self, p)
6931 
6932  def __getstate__(self):
6933  p = self._get_as_binary()
6934  if len(self.__dict__) > 1:
6935  d = self.__dict__.copy()
6936  del d['this']
6937  p = (d, p)
6938  return p
6939 
6940  def __setstate__(self, p):
6941  if not hasattr(self, 'this'):
6942  self.__init__()
6943  if isinstance(p, tuple):
6944  d, p = p
6945  self.__dict__.update(d)
6946  return self._set_from_binary(p)
6947 
6948  __swig_destroy__ = _IMP_core.delete_HierarchyCounter
6949 
6950 # Register HierarchyCounter in _IMP_core:
6951 _IMP_core.HierarchyCounter_swigregister(HierarchyCounter)
6952 
6953 def get_leaves(mhd):
6954  r"""get_leaves(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
6955  return _IMP_core.get_leaves(mhd)
6956 
6957 def get_internal(mhd):
6958  r"""get_internal(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
6959  return _IMP_core.get_internal(mhd)
6960 
6961 def get_all_descendants(mhd):
6962  r"""get_all_descendants(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
6963  return _IMP_core.get_all_descendants(mhd)
6964 
6965 def get_root(h):
6966  r"""get_root(Hierarchy h) -> Hierarchy"""
6967  return _IMP_core.get_root(h)
6968 
6969 def visit_breadth_first(d, f):
6970  r"""visit_breadth_first(Hierarchy d, HierarchyVisitor f)"""
6971  return _IMP_core.visit_breadth_first(d, f)
6972 
6973 def visit_depth_first(d, f):
6974  r"""visit_depth_first(Hierarchy d, HierarchyVisitor f)"""
6975  return _IMP_core.visit_depth_first(d, f)
6976 class LeavesRefiner(IMP.Refiner):
6977  r"""Proxy of C++ IMP::core::LeavesRefiner class."""
6978 
6979  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6980 
6981  def __init__(self, tr):
6982  r"""__init__(LeavesRefiner self, HierarchyTraits tr) -> LeavesRefiner"""
6983  _IMP_core.LeavesRefiner_swiginit(self, _IMP_core.new_LeavesRefiner(tr))
6984 
6985  def do_get_inputs(self, m, pis):
6986  r"""do_get_inputs(LeavesRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6987  return _IMP_core.LeavesRefiner_do_get_inputs(self, m, pis)
6988 
6989  def get_version_info(self):
6990  r"""get_version_info(LeavesRefiner self) -> VersionInfo"""
6991  return _IMP_core.LeavesRefiner_get_version_info(self)
6992  __swig_destroy__ = _IMP_core.delete_LeavesRefiner
6993 
6994  def __str__(self):
6995  r"""__str__(LeavesRefiner self) -> std::string"""
6996  return _IMP_core.LeavesRefiner___str__(self)
6997 
6998  def __repr__(self):
6999  r"""__repr__(LeavesRefiner self) -> std::string"""
7000  return _IMP_core.LeavesRefiner___repr__(self)
7001 
7002  @staticmethod
7003  def get_from(o):
7004  return _object_cast_to_LeavesRefiner(o)
7005 
7006 
7007 # Register LeavesRefiner in _IMP_core:
7008 _IMP_core.LeavesRefiner_swigregister(LeavesRefiner)
7009 class Linear(IMP.UnaryFunction):
7010  r"""Proxy of C++ IMP::core::Linear class."""
7011 
7012  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7013 
7014  def __init__(self, *args):
7015  r"""
7016  __init__(Linear self, double offset, double slope) -> Linear
7017  __init__(Linear self) -> Linear
7018  """
7019  _IMP_core.Linear_swiginit(self, _IMP_core.new_Linear(*args))
7020 
7021  def set_slope(self, f):
7022  r"""set_slope(Linear self, double f)"""
7023  return _IMP_core.Linear_set_slope(self, f)
7024 
7025  def set_offset(self, f):
7026  r"""set_offset(Linear self, double f)"""
7027  return _IMP_core.Linear_set_offset(self, f)
7028 
7029  def get_version_info(self):
7030  r"""get_version_info(Linear self) -> VersionInfo"""
7031  return _IMP_core.Linear_get_version_info(self)
7032  __swig_destroy__ = _IMP_core.delete_Linear
7033 
7034  def __str__(self):
7035  r"""__str__(Linear self) -> std::string"""
7036  return _IMP_core.Linear___str__(self)
7037 
7038  def __repr__(self):
7039  r"""__repr__(Linear self) -> std::string"""
7040  return _IMP_core.Linear___repr__(self)
7041 
7042  @staticmethod
7043  def get_from(o):
7044  return _object_cast_to_Linear(o)
7045 
7046 
7047  def _get_as_binary(self):
7048  r"""_get_as_binary(Linear self) -> PyObject *"""
7049  return _IMP_core.Linear__get_as_binary(self)
7050 
7051  def _set_from_binary(self, p):
7052  r"""_set_from_binary(Linear self, PyObject * p)"""
7053  return _IMP_core.Linear__set_from_binary(self, p)
7054 
7055  def __getstate__(self):
7056  p = self._get_as_binary()
7057  if len(self.__dict__) > 1:
7058  d = self.__dict__.copy()
7059  del d['this']
7060  p = (d, p)
7061  return p
7062 
7063  def __setstate__(self, p):
7064  if not hasattr(self, 'this'):
7065  self.__init__()
7066  if isinstance(p, tuple):
7067  d, p = p
7068  self.__dict__.update(d)
7069  return self._set_from_binary(p)
7070 
7071 
7072 # Register Linear in _IMP_core:
7073 _IMP_core.Linear_swigregister(Linear)
7074 class LogNormalMover(MonteCarloMover):
7075  r"""Proxy of C++ IMP::core::LogNormalMover class."""
7076 
7077  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7078 
7079  def __init__(self, *args):
7080  r"""
7081  __init__(LogNormalMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double stddev) -> LogNormalMover
7082  __init__(LogNormalMover self, Model m, ParticleIndex pi, double stddev) -> LogNormalMover
7083  __init__(LogNormalMover self, IMP::ParticlesTemp const & sc, IMP::FloatKeys const & vars, IMP::Float sigma) -> LogNormalMover
7084  __init__(LogNormalMover self, IMP::ParticlesTemp const & sc, IMP::Float radius) -> LogNormalMover
7085  __init__(LogNormalMover self) -> LogNormalMover
7086  """
7087  _IMP_core.LogNormalMover_swiginit(self, _IMP_core.new_LogNormalMover(*args))
7088 
7089  def set_sigma(self, sigma):
7090  r"""set_sigma(LogNormalMover self, IMP::Float sigma)"""
7091  return _IMP_core.LogNormalMover_set_sigma(self, sigma)
7092 
7093  def get_sigma(self):
7094  r"""get_sigma(LogNormalMover self) -> IMP::Float"""
7095  return _IMP_core.LogNormalMover_get_sigma(self)
7096 
7097  def get_version_info(self):
7098  r"""get_version_info(LogNormalMover self) -> VersionInfo"""
7099  return _IMP_core.LogNormalMover_get_version_info(self)
7100  __swig_destroy__ = _IMP_core.delete_LogNormalMover
7101 
7102  def __str__(self):
7103  r"""__str__(LogNormalMover self) -> std::string"""
7104  return _IMP_core.LogNormalMover___str__(self)
7105 
7106  def __repr__(self):
7107  r"""__repr__(LogNormalMover self) -> std::string"""
7108  return _IMP_core.LogNormalMover___repr__(self)
7109 
7110  @staticmethod
7111  def get_from(o):
7112  return _object_cast_to_LogNormalMover(o)
7113 
7114 
7115  def _get_as_binary(self):
7116  r"""_get_as_binary(LogNormalMover self) -> PyObject *"""
7117  return _IMP_core.LogNormalMover__get_as_binary(self)
7118 
7119  def _set_from_binary(self, p):
7120  r"""_set_from_binary(LogNormalMover self, PyObject * p)"""
7121  return _IMP_core.LogNormalMover__set_from_binary(self, p)
7122 
7123  def __getstate__(self):
7124  p = self._get_as_binary()
7125  if len(self.__dict__) > 1:
7126  d = self.__dict__.copy()
7127  del d['this']
7128  p = (d, p)
7129  return p
7130 
7131  def __setstate__(self, p):
7132  if not hasattr(self, 'this'):
7133  self.__init__()
7134  if isinstance(p, tuple):
7135  d, p = p
7136  self.__dict__.update(d)
7137  return self._set_from_binary(p)
7138 
7139 
7140 # Register LogNormalMover in _IMP_core:
7141 _IMP_core.LogNormalMover_swigregister(LogNormalMover)
7142 IMP_CORE_HAS_MONTE_CARLO_MOVER = _IMP_core.IMP_CORE_HAS_MONTE_CARLO_MOVER
7143 
7144 class MonteCarlo(IMP.Optimizer):
7145  r"""Proxy of C++ IMP::core::MonteCarlo 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, m):
7150  r"""__init__(MonteCarlo self, Model m) -> MonteCarlo"""
7151  _IMP_core.MonteCarlo_swiginit(self, _IMP_core.new_MonteCarlo(m))
7152 
7153  def get_version_info(self):
7154  r"""get_version_info(MonteCarlo self) -> VersionInfo"""
7155  return _IMP_core.MonteCarlo_get_version_info(self)
7156  __swig_destroy__ = _IMP_core.delete_MonteCarlo
7157 
7158  def set_return_best(self, tf):
7159  r"""set_return_best(MonteCarlo self, bool tf)"""
7160  return _IMP_core.MonteCarlo_set_return_best(self, tf)
7161 
7162  def set_score_moved(self, mv):
7163  r"""set_score_moved(MonteCarlo self, bool mv)"""
7164  return _IMP_core.MonteCarlo_set_score_moved(self, mv)
7165 
7166  def set_kt(self, t):
7167  r"""set_kt(MonteCarlo self, IMP::Float t)"""
7168  return _IMP_core.MonteCarlo_set_kt(self, t)
7169 
7170  def get_kt(self):
7171  r"""get_kt(MonteCarlo self) -> IMP::Float"""
7172  return _IMP_core.MonteCarlo_get_kt(self)
7173 
7174  def get_last_accepted_energy(self):
7175  r"""get_last_accepted_energy(MonteCarlo self) -> double"""
7176  return _IMP_core.MonteCarlo_get_last_accepted_energy(self)
7177 
7178  def get_best_accepted_energy(self):
7179  r"""get_best_accepted_energy(MonteCarlo self) -> double"""
7180  return _IMP_core.MonteCarlo_get_best_accepted_energy(self)
7181 
7182  def get_number_of_downward_steps(self):
7183  r"""get_number_of_downward_steps(MonteCarlo self) -> unsigned int"""
7184  return _IMP_core.MonteCarlo_get_number_of_downward_steps(self)
7185 
7186  def get_number_of_upward_steps(self):
7187  r"""get_number_of_upward_steps(MonteCarlo self) -> unsigned int"""
7188  return _IMP_core.MonteCarlo_get_number_of_upward_steps(self)
7189 
7190  def get_number_of_proposed_steps(self):
7191  r"""get_number_of_proposed_steps(MonteCarlo self) -> unsigned int"""
7192  return _IMP_core.MonteCarlo_get_number_of_proposed_steps(self)
7193 
7194  def get_number_of_accepted_steps(self):
7195  r"""get_number_of_accepted_steps(MonteCarlo self) -> unsigned int"""
7196  return _IMP_core.MonteCarlo_get_number_of_accepted_steps(self)
7197 
7198  def reset_statistics(self):
7199  r"""reset_statistics(MonteCarlo self)"""
7200  return _IMP_core.MonteCarlo_reset_statistics(self)
7201 
7202  def set_score_threshold(self, s):
7203  r"""set_score_threshold(MonteCarlo self, double s)"""
7204  return _IMP_core.MonteCarlo_set_score_threshold(self, s)
7205 
7206  def get_score_threshold(self):
7207  r"""get_score_threshold(MonteCarlo self) -> double"""
7208  return _IMP_core.MonteCarlo_get_score_threshold(self)
7209 
7210  def set_maximum_difference(self, d):
7211  r"""set_maximum_difference(MonteCarlo self, double d)"""
7212  return _IMP_core.MonteCarlo_set_maximum_difference(self, d)
7213 
7214  def get_maximum_difference(self):
7215  r"""get_maximum_difference(MonteCarlo self) -> double"""
7216  return _IMP_core.MonteCarlo_get_maximum_difference(self)
7217  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)
7218  def __set_movers(self, obj): IMP._list_util.set_varlist(self.movers, obj)
7219  def __del_movers(self): IMP._list_util.del_varlist(self.movers)
7220  movers = property(__get_movers, __set_movers, __del_movers, doc="List of ##ucnames")
7221 
7222  def remove_mover(self, d):
7223  r"""remove_mover(MonteCarlo self, MonteCarloMover d)"""
7224  return _IMP_core.MonteCarlo_remove_mover(self, d)
7225 
7226  def _python_index_mover(self, d, start, stop):
7227  r"""_python_index_mover(MonteCarlo self, MonteCarloMover d, unsigned int start, unsigned int stop) -> unsigned int"""
7228  return _IMP_core.MonteCarlo__python_index_mover(self, d, start, stop)
7229 
7230  def remove_movers(self, d):
7231  r"""remove_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & d)"""
7232  return _IMP_core.MonteCarlo_remove_movers(self, d)
7233 
7234  def set_movers(self, ps):
7235  r"""set_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & ps)"""
7236  return _IMP_core.MonteCarlo_set_movers(self, ps)
7237 
7238  def set_movers_order(self, objs):
7239  r"""set_movers_order(MonteCarlo self, IMP::core::MonteCarloMovers const & objs)"""
7240  return _IMP_core.MonteCarlo_set_movers_order(self, objs)
7241 
7242  def add_mover(self, obj):
7243  r"""add_mover(MonteCarlo self, MonteCarloMover obj) -> unsigned int"""
7244  return _IMP_core.MonteCarlo_add_mover(self, obj)
7245 
7246  def add_movers(self, objs):
7247  r"""add_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & objs)"""
7248  return _IMP_core.MonteCarlo_add_movers(self, objs)
7249 
7250  def clear_movers(self):
7251  r"""clear_movers(MonteCarlo self)"""
7252  return _IMP_core.MonteCarlo_clear_movers(self)
7253 
7254  def get_number_of_movers(self):
7255  r"""get_number_of_movers(MonteCarlo self) -> unsigned int"""
7256  return _IMP_core.MonteCarlo_get_number_of_movers(self)
7257 
7258  def get_has_movers(self):
7259  r"""get_has_movers(MonteCarlo self) -> bool"""
7260  return _IMP_core.MonteCarlo_get_has_movers(self)
7261 
7262  def get_mover(self, i):
7263  r"""get_mover(MonteCarlo self, unsigned int i) -> MonteCarloMover"""
7264  return _IMP_core.MonteCarlo_get_mover(self, i)
7265 
7266  def get_movers(self):
7267  r"""get_movers(MonteCarlo self) -> IMP::core::MonteCarloMovers"""
7268  return _IMP_core.MonteCarlo_get_movers(self)
7269 
7270  def erase_mover(self, i):
7271  r"""erase_mover(MonteCarlo self, unsigned int i)"""
7272  return _IMP_core.MonteCarlo_erase_mover(self, i)
7273 
7274  def reserve_movers(self, sz):
7275  r"""reserve_movers(MonteCarlo self, unsigned int sz)"""
7276  return _IMP_core.MonteCarlo_reserve_movers(self, sz)
7277 
7278  def __str__(self):
7279  r"""__str__(MonteCarlo self) -> std::string"""
7280  return _IMP_core.MonteCarlo___str__(self)
7281 
7282  def __repr__(self):
7283  r"""__repr__(MonteCarlo self) -> std::string"""
7284  return _IMP_core.MonteCarlo___repr__(self)
7285 
7286  @staticmethod
7287  def get_from(o):
7288  return _object_cast_to_MonteCarlo(o)
7289 
7290 
7291 # Register MonteCarlo in _IMP_core:
7292 _IMP_core.MonteCarlo_swigregister(MonteCarlo)
7293 class MonteCarloWithLocalOptimization(MonteCarlo):
7294  r"""Proxy of C++ IMP::core::MonteCarloWithLocalOptimization class."""
7295 
7296  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7297 
7298  def __init__(self, opt, steps):
7299  r"""__init__(MonteCarloWithLocalOptimization self, Optimizer opt, unsigned int steps) -> MonteCarloWithLocalOptimization"""
7300  _IMP_core.MonteCarloWithLocalOptimization_swiginit(self, _IMP_core.new_MonteCarloWithLocalOptimization(opt, steps))
7301 
7302  def get_number_of_steps(self):
7303  r"""get_number_of_steps(MonteCarloWithLocalOptimization self) -> unsigned int"""
7304  return _IMP_core.MonteCarloWithLocalOptimization_get_number_of_steps(self)
7305 
7306  def get_local_optimizer(self):
7307  r"""get_local_optimizer(MonteCarloWithLocalOptimization self) -> Optimizer"""
7308  return _IMP_core.MonteCarloWithLocalOptimization_get_local_optimizer(self)
7309  __swig_destroy__ = _IMP_core.delete_MonteCarloWithLocalOptimization
7310 
7311  def __str__(self):
7312  r"""__str__(MonteCarloWithLocalOptimization self) -> std::string"""
7313  return _IMP_core.MonteCarloWithLocalOptimization___str__(self)
7314 
7315  def __repr__(self):
7316  r"""__repr__(MonteCarloWithLocalOptimization self) -> std::string"""
7317  return _IMP_core.MonteCarloWithLocalOptimization___repr__(self)
7318 
7319  @staticmethod
7320  def get_from(o):
7321  return _object_cast_to_MonteCarloWithLocalOptimization(o)
7322 
7323 
7324 # Register MonteCarloWithLocalOptimization in _IMP_core:
7325 _IMP_core.MonteCarloWithLocalOptimization_swigregister(MonteCarloWithLocalOptimization)
7326 class MonteCarloWithBasinHopping(MonteCarloWithLocalOptimization):
7327  r"""Proxy of C++ IMP::core::MonteCarloWithBasinHopping class."""
7328 
7329  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7330 
7331  def __init__(self, opt, ns):
7332  r"""__init__(MonteCarloWithBasinHopping self, Optimizer opt, unsigned int ns) -> MonteCarloWithBasinHopping"""
7333  _IMP_core.MonteCarloWithBasinHopping_swiginit(self, _IMP_core.new_MonteCarloWithBasinHopping(opt, ns))
7334  __swig_destroy__ = _IMP_core.delete_MonteCarloWithBasinHopping
7335 
7336  def __str__(self):
7337  r"""__str__(MonteCarloWithBasinHopping self) -> std::string"""
7338  return _IMP_core.MonteCarloWithBasinHopping___str__(self)
7339 
7340  def __repr__(self):
7341  r"""__repr__(MonteCarloWithBasinHopping self) -> std::string"""
7342  return _IMP_core.MonteCarloWithBasinHopping___repr__(self)
7343 
7344  @staticmethod
7345  def get_from(o):
7346  return _object_cast_to_MonteCarloWithBasinHopping(o)
7347 
7348 
7349 # Register MonteCarloWithBasinHopping in _IMP_core:
7350 _IMP_core.MonteCarloWithBasinHopping_swigregister(MonteCarloWithBasinHopping)
7351 class NeighborsTable(IMP.ScoreState):
7352  r"""Proxy of C++ IMP::core::NeighborsTable class."""
7353 
7354  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7355 
7356  def __init__(self, *args):
7357  r"""__init__(NeighborsTable self, PairContainer input, std::string name="CloseNeighborsTable%1%") -> NeighborsTable"""
7358  _IMP_core.NeighborsTable_swiginit(self, _IMP_core.new_NeighborsTable(*args))
7359 
7360  def get_neighbors(self, pi):
7361  r"""get_neighbors(NeighborsTable self, ParticleIndex pi) -> IMP::ParticleIndexes const &"""
7362  return _IMP_core.NeighborsTable_get_neighbors(self, pi)
7363 
7364  def get_version_info(self):
7365  r"""get_version_info(NeighborsTable self) -> VersionInfo"""
7366  return _IMP_core.NeighborsTable_get_version_info(self)
7367  __swig_destroy__ = _IMP_core.delete_NeighborsTable
7368 
7369  def __str__(self):
7370  r"""__str__(NeighborsTable self) -> std::string"""
7371  return _IMP_core.NeighborsTable___str__(self)
7372 
7373  def __repr__(self):
7374  r"""__repr__(NeighborsTable self) -> std::string"""
7375  return _IMP_core.NeighborsTable___repr__(self)
7376 
7377  @staticmethod
7378  def get_from(o):
7379  return _object_cast_to_NeighborsTable(o)
7380 
7381 
7382 # Register NeighborsTable in _IMP_core:
7383 _IMP_core.NeighborsTable_swigregister(NeighborsTable)
7384 class NormalMover(MonteCarloMover):
7385  r"""Proxy of C++ IMP::core::NormalMover class."""
7386 
7387  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7388 
7389  def __init__(self, *args):
7390  r"""
7391  __init__(NormalMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double stddev) -> NormalMover
7392  __init__(NormalMover self, Model m, ParticleIndex pi, double stddev) -> NormalMover
7393  __init__(NormalMover self, IMP::ParticlesTemp const & sc, IMP::FloatKeys const & vars, IMP::Float sigma) -> NormalMover
7394  __init__(NormalMover self, IMP::ParticlesTemp const & sc, IMP::Float radius) -> NormalMover
7395  __init__(NormalMover self) -> NormalMover
7396  """
7397  _IMP_core.NormalMover_swiginit(self, _IMP_core.new_NormalMover(*args))
7398 
7399  def set_sigma(self, sigma):
7400  r"""set_sigma(NormalMover self, IMP::Float sigma)"""
7401  return _IMP_core.NormalMover_set_sigma(self, sigma)
7402 
7403  def get_sigma(self):
7404  r"""get_sigma(NormalMover self) -> IMP::Float"""
7405  return _IMP_core.NormalMover_get_sigma(self)
7406 
7407  def get_version_info(self):
7408  r"""get_version_info(NormalMover self) -> VersionInfo"""
7409  return _IMP_core.NormalMover_get_version_info(self)
7410  __swig_destroy__ = _IMP_core.delete_NormalMover
7411 
7412  def __str__(self):
7413  r"""__str__(NormalMover self) -> std::string"""
7414  return _IMP_core.NormalMover___str__(self)
7415 
7416  def __repr__(self):
7417  r"""__repr__(NormalMover self) -> std::string"""
7418  return _IMP_core.NormalMover___repr__(self)
7419 
7420  @staticmethod
7421  def get_from(o):
7422  return _object_cast_to_NormalMover(o)
7423 
7424 
7425  def _get_as_binary(self):
7426  r"""_get_as_binary(NormalMover self) -> PyObject *"""
7427  return _IMP_core.NormalMover__get_as_binary(self)
7428 
7429  def _set_from_binary(self, p):
7430  r"""_set_from_binary(NormalMover self, PyObject * p)"""
7431  return _IMP_core.NormalMover__set_from_binary(self, p)
7432 
7433  def __getstate__(self):
7434  p = self._get_as_binary()
7435  if len(self.__dict__) > 1:
7436  d = self.__dict__.copy()
7437  del d['this']
7438  p = (d, p)
7439  return p
7440 
7441  def __setstate__(self, p):
7442  if not hasattr(self, 'this'):
7443  self.__init__()
7444  if isinstance(p, tuple):
7445  d, p = p
7446  self.__dict__.update(d)
7447  return self._set_from_binary(p)
7448 
7449 
7450 # Register NormalMover in _IMP_core:
7451 _IMP_core.NormalMover_swigregister(NormalMover)
7452 class OpenCubicSpline(_OpenCubicSplineBase):
7453  r"""Proxy of C++ IMP::core::OpenCubicSpline class."""
7454 
7455  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7456 
7457  def __init__(self, values, minrange, spacing, extend=False):
7458  r"""__init__(OpenCubicSpline self, IMP::Floats const & values, IMP::Float minrange, IMP::Float spacing, bool extend=False) -> OpenCubicSpline"""
7459  _IMP_core.OpenCubicSpline_swiginit(self, _IMP_core.new_OpenCubicSpline(values, minrange, spacing, extend))
7460 
7461  def __str__(self):
7462  r"""__str__(OpenCubicSpline self) -> std::string"""
7463  return _IMP_core.OpenCubicSpline___str__(self)
7464 
7465  def __repr__(self):
7466  r"""__repr__(OpenCubicSpline self) -> std::string"""
7467  return _IMP_core.OpenCubicSpline___repr__(self)
7468 
7469  @staticmethod
7470  def get_from(o):
7471  return _object_cast_to_OpenCubicSpline(o)
7472 
7473  __swig_destroy__ = _IMP_core.delete_OpenCubicSpline
7474 
7475 # Register OpenCubicSpline in _IMP_core:
7476 _IMP_core.OpenCubicSpline_swigregister(OpenCubicSpline)
7477 class QuadraticClosePairsFinder(ClosePairsFinder):
7478  r"""Proxy of C++ IMP::core::QuadraticClosePairsFinder class."""
7479 
7480  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7481 
7482  def __init__(self):
7483  r"""__init__(QuadraticClosePairsFinder self) -> QuadraticClosePairsFinder"""
7484  _IMP_core.QuadraticClosePairsFinder_swiginit(self, _IMP_core.new_QuadraticClosePairsFinder())
7485 
7486  def get_are_close_and_filtered(self, *args):
7487  r"""
7488  get_are_close_and_filtered(QuadraticClosePairsFinder self, Particle a, Particle b) -> bool
7489  get_are_close_and_filtered(QuadraticClosePairsFinder self, Model m, ParticleIndex a, ParticleIndex b) -> bool
7490  """
7491  return _IMP_core.QuadraticClosePairsFinder_get_are_close_and_filtered(self, *args)
7492 
7493  def get_close_pairs(self, *args):
7494  r"""
7495  get_close_pairs(QuadraticClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
7496  get_close_pairs(QuadraticClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
7497  get_close_pairs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
7498  get_close_pairs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
7499  """
7500  return _IMP_core.QuadraticClosePairsFinder_get_close_pairs(self, *args)
7501 
7502  def do_get_inputs(self, m, pis):
7503  r"""do_get_inputs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7504  return _IMP_core.QuadraticClosePairsFinder_do_get_inputs(self, m, pis)
7505 
7506  def get_version_info(self):
7507  r"""get_version_info(QuadraticClosePairsFinder self) -> VersionInfo"""
7508  return _IMP_core.QuadraticClosePairsFinder_get_version_info(self)
7509  __swig_destroy__ = _IMP_core.delete_QuadraticClosePairsFinder
7510 
7511  def __str__(self):
7512  r"""__str__(QuadraticClosePairsFinder self) -> std::string"""
7513  return _IMP_core.QuadraticClosePairsFinder___str__(self)
7514 
7515  def __repr__(self):
7516  r"""__repr__(QuadraticClosePairsFinder self) -> std::string"""
7517  return _IMP_core.QuadraticClosePairsFinder___repr__(self)
7518 
7519  @staticmethod
7520  def get_from(o):
7521  return _object_cast_to_QuadraticClosePairsFinder(o)
7522 
7523 
7524 # Register QuadraticClosePairsFinder in _IMP_core:
7525 _IMP_core.QuadraticClosePairsFinder_swigregister(QuadraticClosePairsFinder)
7526 class RefinedPairsPairScore(IMP.PairScore):
7527  r"""Proxy of C++ IMP::core::RefinedPairsPairScore class."""
7528 
7529  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7530 
7531  def __init__(self, r, f):
7532  r"""__init__(RefinedPairsPairScore self, Refiner r, PairScore f) -> RefinedPairsPairScore"""
7533  _IMP_core.RefinedPairsPairScore_swiginit(self, _IMP_core.new_RefinedPairsPairScore(r, f))
7534 
7535  def do_get_inputs(self, m, pis):
7536  r"""do_get_inputs(RefinedPairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7537  return _IMP_core.RefinedPairsPairScore_do_get_inputs(self, m, pis)
7538 
7539  def get_version_info(self):
7540  r"""get_version_info(RefinedPairsPairScore self) -> VersionInfo"""
7541  return _IMP_core.RefinedPairsPairScore_get_version_info(self)
7542  __swig_destroy__ = _IMP_core.delete_RefinedPairsPairScore
7543 
7544  def __str__(self):
7545  r"""__str__(RefinedPairsPairScore self) -> std::string"""
7546  return _IMP_core.RefinedPairsPairScore___str__(self)
7547 
7548  def __repr__(self):
7549  r"""__repr__(RefinedPairsPairScore self) -> std::string"""
7550  return _IMP_core.RefinedPairsPairScore___repr__(self)
7551 
7552  @staticmethod
7553  def get_from(o):
7554  return _object_cast_to_RefinedPairsPairScore(o)
7555 
7556 
7557 # Register RefinedPairsPairScore in _IMP_core:
7558 _IMP_core.RefinedPairsPairScore_swigregister(RefinedPairsPairScore)
7559 class RigidBody(XYZ):
7560  r"""Proxy of C++ IMP::core::RigidBody class."""
7561 
7562  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7563 
7564  def get_rigid_members(self):
7565  r"""get_rigid_members(RigidBody self) -> IMP::core::RigidMembers"""
7566  return _IMP_core.RigidBody_get_rigid_members(self)
7567 
7568  @staticmethod
7569  def get_rotation_keys():
7570  r"""get_rotation_keys() -> IMP::FloatKeys"""
7571  return _IMP_core.RigidBody_get_rotation_keys()
7572 
7573  def get_member_particle_indexes(self):
7574  r"""get_member_particle_indexes(RigidBody self) -> IMP::ParticleIndexes const &"""
7575  return _IMP_core.RigidBody_get_member_particle_indexes(self)
7576 
7577  def get_body_member_particle_indexes(self):
7578  r"""get_body_member_particle_indexes(RigidBody self) -> IMP::ParticleIndexes const &"""
7579  return _IMP_core.RigidBody_get_body_member_particle_indexes(self)
7580 
7581  def get_member_indexes(self):
7582  r"""get_member_indexes(RigidBody self) -> IMP::ParticleIndexes"""
7583  return _IMP_core.RigidBody_get_member_indexes(self)
7584 
7585  def show(self, *args):
7586  r"""show(RigidBody self, _ostream out=std::cout)"""
7587  return _IMP_core.RigidBody_show(self, *args)
7588 
7589  @staticmethod
7590  def setup_particle(*args):
7591  r"""
7592  setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor ps) -> RigidBody
7593  setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor ps) -> RigidBody
7594  setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf) -> RigidBody
7595  setup_particle(_ParticleAdaptor pa, ReferenceFrame3D rf) -> RigidBody
7596  """
7597  return _IMP_core.RigidBody_setup_particle(*args)
7598 
7599  @staticmethod
7600  def teardown_particle(rb):
7601  r"""teardown_particle(RigidBody rb)"""
7602  return _IMP_core.RigidBody_teardown_particle(rb)
7603 
7604  def __init__(self, *args):
7605  r"""
7606  __init__(RigidBody self) -> RigidBody
7607  __init__(RigidBody self, Model m, ParticleIndex id) -> RigidBody
7608  __init__(RigidBody self, _ParticleAdaptor d) -> RigidBody
7609  __init__(RigidBody self, RigidBody arg2) -> RigidBody
7610  """
7611  _IMP_core.RigidBody_swiginit(self, _IMP_core.new_RigidBody(*args))
7612  __swig_destroy__ = _IMP_core.delete_RigidBody
7613 
7614  @staticmethod
7615  def get_is_setup(*args):
7616  r"""
7617  get_is_setup(_ParticleAdaptor p) -> bool
7618  get_is_setup(Model m, ParticleIndex pi) -> bool
7619  """
7620  return _IMP_core.RigidBody_get_is_setup(*args)
7621 
7622  def get_coordinates(self):
7623  r"""get_coordinates(RigidBody self) -> Vector3D"""
7624  return _IMP_core.RigidBody_get_coordinates(self)
7625 
7626  def get_rotation(self):
7627  r"""get_rotation(RigidBody self) -> Rotation3D"""
7628  return _IMP_core.RigidBody_get_rotation(self)
7629 
7630  def get_reference_frame(self):
7631  r"""get_reference_frame(RigidBody self) -> ReferenceFrame3D"""
7632  return _IMP_core.RigidBody_get_reference_frame(self)
7633 
7634  def set_reference_frame(self, tr):
7635  r"""set_reference_frame(RigidBody self, ReferenceFrame3D tr)"""
7636  return _IMP_core.RigidBody_set_reference_frame(self, tr)
7637 
7638  def set_reference_frame_lazy(self, tr):
7639  r"""set_reference_frame_lazy(RigidBody self, ReferenceFrame3D tr)"""
7640  return _IMP_core.RigidBody_set_reference_frame_lazy(self, tr)
7641 
7642  def set_reference_frame_from_members(self, members):
7643  r"""set_reference_frame_from_members(RigidBody self, IMP::ParticleIndexes const & members)"""
7644  return _IMP_core.RigidBody_set_reference_frame_from_members(self, members)
7645 
7646  def pull_back_members_adjoints(self, da):
7647  r"""pull_back_members_adjoints(RigidBody self, DerivativeAccumulator da)"""
7648  return _IMP_core.RigidBody_pull_back_members_adjoints(self, da)
7649 
7650  def pull_back_member_adjoints(self, pi, da):
7651  r"""pull_back_member_adjoints(RigidBody self, ParticleIndex pi, DerivativeAccumulator da)"""
7652  return _IMP_core.RigidBody_pull_back_member_adjoints(self, pi, da)
7653 
7654  def pull_back_body_member_adjoints(self, pi, da):
7655  r"""pull_back_body_member_adjoints(RigidBody self, ParticleIndex pi, DerivativeAccumulator da)"""
7656  return _IMP_core.RigidBody_pull_back_body_member_adjoints(self, pi, da)
7657 
7658  def add_to_derivatives(self, *args):
7659  r"""
7660  add_to_derivatives(RigidBody self, Vector3D local_derivative, Vector3D local_location, DerivativeAccumulator da)
7661  add_to_derivatives(RigidBody self, Vector3D local_derivative, Vector3D global_derivative, Vector3D local_location, Rotation3D rot_local_to_global, DerivativeAccumulator da)
7662  """
7663  return _IMP_core.RigidBody_add_to_derivatives(self, *args)
7664 
7665  def add_to_rotational_derivatives(self, *args):
7666  r"""
7667  add_to_rotational_derivatives(RigidBody self, Vector4D other_qderiv, Rotation3D rot_other_to_local, Rotation3D rot_local_to_global, DerivativeAccumulator da)
7668  add_to_rotational_derivatives(RigidBody self, Vector4D qderiv, DerivativeAccumulator da)
7669  """
7670  return _IMP_core.RigidBody_add_to_rotational_derivatives(self, *args)
7671 
7672  def add_to_torque(self, torque_local, da):
7673  r"""add_to_torque(RigidBody self, Vector3D torque_local, DerivativeAccumulator da)"""
7674  return _IMP_core.RigidBody_add_to_torque(self, torque_local, da)
7675 
7676  def get_torque(self):
7677  r"""get_torque(RigidBody self) -> Vector3D"""
7678  return _IMP_core.RigidBody_get_torque(self)
7679 
7680  def get_coordinates_are_optimized(self):
7681  r"""get_coordinates_are_optimized(RigidBody self) -> bool"""
7682  return _IMP_core.RigidBody_get_coordinates_are_optimized(self)
7683 
7684  def set_coordinates_are_optimized(self, tf):
7685  r"""set_coordinates_are_optimized(RigidBody self, bool tf)"""
7686  return _IMP_core.RigidBody_set_coordinates_are_optimized(self, tf)
7687 
7688  def normalize_rotation(self):
7689  r"""normalize_rotation(RigidBody self)"""
7690  return _IMP_core.RigidBody_normalize_rotation(self)
7691 
7692  def update_members(self):
7693  r"""update_members(RigidBody self)"""
7694  return _IMP_core.RigidBody_update_members(self)
7695 
7696  def get_rotational_derivatives(self):
7697  r"""get_rotational_derivatives(RigidBody self) -> Vector4D"""
7698  return _IMP_core.RigidBody_get_rotational_derivatives(self)
7699 
7700  def get_number_of_members(self):
7701  r"""get_number_of_members(RigidBody self) -> unsigned int"""
7702  return _IMP_core.RigidBody_get_number_of_members(self)
7703 
7704  def get_member(self, i):
7705  r"""get_member(RigidBody self, unsigned int i) -> RigidBodyMember"""
7706  return _IMP_core.RigidBody_get_member(self, i)
7707 
7708  def add_member(self, p):
7709  r"""add_member(RigidBody self, _ParticleIndexAdaptor p)"""
7710  return _IMP_core.RigidBody_add_member(self, p)
7711 
7712  def add_non_rigid_member(self, p):
7713  r"""add_non_rigid_member(RigidBody self, _ParticleIndexAdaptor p)"""
7714  return _IMP_core.RigidBody_add_non_rigid_member(self, p)
7715 
7716  def set_is_rigid_member(self, pi, tf):
7717  r"""set_is_rigid_member(RigidBody self, ParticleIndex pi, bool tf)"""
7718  return _IMP_core.RigidBody_set_is_rigid_member(self, pi, tf)
7719 
7720  def remove_member(self, p):
7721  r"""remove_member(RigidBody self, _ParticleIndexAdaptor p)"""
7722  return _IMP_core.RigidBody_remove_member(self, p)
7723 
7724  def add_attribute(self, *args):
7725  r"""
7726  add_attribute(RigidBody self, FloatKey k, IMP::Float v, bool opt)
7727  add_attribute(RigidBody self, FloatKey a0, IMP::Float a1)
7728  add_attribute(RigidBody self, IntKey a0, IMP::Int a1)
7729  add_attribute(RigidBody self, FloatsKey a0, IMP::Floats a1)
7730  add_attribute(RigidBody self, IntsKey a0, IMP::Ints a1)
7731  add_attribute(RigidBody self, StringKey a0, IMP::String a1)
7732  add_attribute(RigidBody self, ParticleIndexKey a0, Particle a1)
7733  add_attribute(RigidBody self, ObjectKey a0, Object a1)
7734  add_attribute(RigidBody self, SparseFloatKey a0, IMP::Float a1)
7735  add_attribute(RigidBody self, SparseIntKey a0, IMP::Int a1)
7736  add_attribute(RigidBody self, SparseStringKey a0, IMP::String a1)
7737  add_attribute(RigidBody self, SparseParticleIndexKey a0, ParticleIndex a1)
7738  """
7739  return _IMP_core.RigidBody_add_attribute(self, *args)
7740 
7741  def get_value(self, *args):
7742  r"""
7743  get_value(RigidBody self, FloatKey a0) -> IMP::Float
7744  get_value(RigidBody self, IntKey a0) -> IMP::Int
7745  get_value(RigidBody self, FloatsKey a0) -> IMP::Floats
7746  get_value(RigidBody self, IntsKey a0) -> IMP::Ints
7747  get_value(RigidBody self, StringKey a0) -> IMP::String
7748  get_value(RigidBody self, ParticleIndexKey a0) -> Particle
7749  get_value(RigidBody self, ObjectKey a0) -> Object
7750  get_value(RigidBody self, SparseFloatKey a0) -> IMP::Float
7751  get_value(RigidBody self, SparseIntKey a0) -> IMP::Int
7752  get_value(RigidBody self, SparseStringKey a0) -> IMP::String
7753  get_value(RigidBody self, SparseParticleIndexKey a0) -> ParticleIndex
7754  """
7755  return _IMP_core.RigidBody_get_value(self, *args)
7756 
7757  def set_value(self, *args):
7758  r"""
7759  set_value(RigidBody self, FloatKey a0, IMP::Float a1)
7760  set_value(RigidBody self, IntKey a0, IMP::Int a1)
7761  set_value(RigidBody self, FloatsKey a0, IMP::Floats a1)
7762  set_value(RigidBody self, IntsKey a0, IMP::Ints a1)
7763  set_value(RigidBody self, StringKey a0, IMP::String a1)
7764  set_value(RigidBody self, ParticleIndexKey a0, Particle a1)
7765  set_value(RigidBody self, ObjectKey a0, Object a1)
7766  set_value(RigidBody self, SparseFloatKey a0, IMP::Float a1)
7767  set_value(RigidBody self, SparseIntKey a0, IMP::Int a1)
7768  set_value(RigidBody self, SparseStringKey a0, IMP::String a1)
7769  set_value(RigidBody self, SparseParticleIndexKey a0, ParticleIndex a1)
7770  """
7771  return _IMP_core.RigidBody_set_value(self, *args)
7772 
7773  def remove_attribute(self, *args):
7774  r"""
7775  remove_attribute(RigidBody self, FloatKey a0)
7776  remove_attribute(RigidBody self, IntKey a0)
7777  remove_attribute(RigidBody self, FloatsKey a0)
7778  remove_attribute(RigidBody self, IntsKey a0)
7779  remove_attribute(RigidBody self, StringKey a0)
7780  remove_attribute(RigidBody self, ParticleIndexKey a0)
7781  remove_attribute(RigidBody self, ObjectKey a0)
7782  remove_attribute(RigidBody self, SparseFloatKey a0)
7783  remove_attribute(RigidBody self, SparseIntKey a0)
7784  remove_attribute(RigidBody self, SparseStringKey a0)
7785  remove_attribute(RigidBody self, SparseParticleIndexKey a0)
7786  """
7787  return _IMP_core.RigidBody_remove_attribute(self, *args)
7788 
7789  def has_attribute(self, *args):
7790  r"""
7791  has_attribute(RigidBody self, FloatKey a0) -> bool
7792  has_attribute(RigidBody self, IntKey a0) -> bool
7793  has_attribute(RigidBody self, FloatsKey a0) -> bool
7794  has_attribute(RigidBody self, IntsKey a0) -> bool
7795  has_attribute(RigidBody self, StringKey a0) -> bool
7796  has_attribute(RigidBody self, ParticleIndexKey a0) -> bool
7797  has_attribute(RigidBody self, ObjectKey a0) -> bool
7798  has_attribute(RigidBody self, SparseFloatKey a0) -> bool
7799  has_attribute(RigidBody self, SparseIntKey a0) -> bool
7800  has_attribute(RigidBody self, SparseStringKey a0) -> bool
7801  has_attribute(RigidBody self, SparseParticleIndexKey a0) -> bool
7802  """
7803  return _IMP_core.RigidBody_has_attribute(self, *args)
7804 
7805  def get_derivative(self, a0):
7806  r"""get_derivative(RigidBody self, FloatKey a0) -> double"""
7807  return _IMP_core.RigidBody_get_derivative(self, a0)
7808 
7809  def get_name(self):
7810  r"""get_name(RigidBody self) -> std::string"""
7811  return _IMP_core.RigidBody_get_name(self)
7812 
7813  def clear_caches(self):
7814  r"""clear_caches(RigidBody self)"""
7815  return _IMP_core.RigidBody_clear_caches(self)
7816 
7817  def set_name(self, a0):
7818  r"""set_name(RigidBody self, std::string a0)"""
7819  return _IMP_core.RigidBody_set_name(self, a0)
7820 
7821  def set_check_level(self, a0):
7822  r"""set_check_level(RigidBody self, IMP::CheckLevel a0)"""
7823  return _IMP_core.RigidBody_set_check_level(self, a0)
7824 
7825  def add_to_derivative(self, a0, a1, a2):
7826  r"""add_to_derivative(RigidBody self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
7827  return _IMP_core.RigidBody_add_to_derivative(self, a0, a1, a2)
7828 
7829  def set_is_optimized(self, a0, a1):
7830  r"""set_is_optimized(RigidBody self, FloatKey a0, bool a1)"""
7831  return _IMP_core.RigidBody_set_is_optimized(self, a0, a1)
7832 
7833  def get_is_optimized(self, a0):
7834  r"""get_is_optimized(RigidBody self, FloatKey a0) -> bool"""
7835  return _IMP_core.RigidBody_get_is_optimized(self, a0)
7836 
7837  def get_check_level(self):
7838  r"""get_check_level(RigidBody self) -> IMP::CheckLevel"""
7839  return _IMP_core.RigidBody_get_check_level(self)
7840 
7841  def __eq__(self, *args):
7842  r"""
7843  __eq__(RigidBody self, RigidBody o) -> bool
7844  __eq__(RigidBody self, Particle d) -> bool
7845  """
7846  return _IMP_core.RigidBody___eq__(self, *args)
7847 
7848  def __ne__(self, *args):
7849  r"""
7850  __ne__(RigidBody self, RigidBody o) -> bool
7851  __ne__(RigidBody self, Particle d) -> bool
7852  """
7853  return _IMP_core.RigidBody___ne__(self, *args)
7854 
7855  def __le__(self, *args):
7856  r"""
7857  __le__(RigidBody self, RigidBody o) -> bool
7858  __le__(RigidBody self, Particle d) -> bool
7859  """
7860  return _IMP_core.RigidBody___le__(self, *args)
7861 
7862  def __lt__(self, *args):
7863  r"""
7864  __lt__(RigidBody self, RigidBody o) -> bool
7865  __lt__(RigidBody self, Particle d) -> bool
7866  """
7867  return _IMP_core.RigidBody___lt__(self, *args)
7868 
7869  def __ge__(self, *args):
7870  r"""
7871  __ge__(RigidBody self, RigidBody o) -> bool
7872  __ge__(RigidBody self, Particle d) -> bool
7873  """
7874  return _IMP_core.RigidBody___ge__(self, *args)
7875 
7876  def __gt__(self, *args):
7877  r"""
7878  __gt__(RigidBody self, RigidBody o) -> bool
7879  __gt__(RigidBody self, Particle d) -> bool
7880  """
7881  return _IMP_core.RigidBody___gt__(self, *args)
7882 
7883  def __hash__(self):
7884  r"""__hash__(RigidBody self) -> std::size_t"""
7885  return _IMP_core.RigidBody___hash__(self)
7886 
7887  def __str__(self):
7888  r"""__str__(RigidBody self) -> std::string"""
7889  return _IMP_core.RigidBody___str__(self)
7890 
7891  def __repr__(self):
7892  r"""__repr__(RigidBody self) -> std::string"""
7893  return _IMP_core.RigidBody___repr__(self)
7894 
7895  def _get_as_binary(self):
7896  r"""_get_as_binary(RigidBody self) -> PyObject *"""
7897  return _IMP_core.RigidBody__get_as_binary(self)
7898 
7899  def _set_from_binary(self, p):
7900  r"""_set_from_binary(RigidBody self, PyObject * p)"""
7901  return _IMP_core.RigidBody__set_from_binary(self, p)
7902 
7903  def __getstate__(self):
7904  p = self._get_as_binary()
7905  if len(self.__dict__) > 1:
7906  d = self.__dict__.copy()
7907  del d['this']
7908  p = (d, p)
7909  return p
7910 
7911  def __setstate__(self, p):
7912  if not hasattr(self, 'this'):
7913  self.__init__()
7914  if isinstance(p, tuple):
7915  d, p = p
7916  self.__dict__.update(d)
7917  return self._set_from_binary(p)
7918 
7919 
7920 # Register RigidBody in _IMP_core:
7921 _IMP_core.RigidBody_swigregister(RigidBody)
7922 
7924  r"""add_rigid_body_cache_key(ObjectKey k)"""
7925  return _IMP_core.add_rigid_body_cache_key(k)
7926 class RigidBodyMember(XYZ):
7927  r"""Proxy of C++ IMP::core::RigidBodyMember class."""
7928 
7929  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7930 
7931  def show(self, *args):
7932  r"""show(RigidBodyMember self, _ostream out=std::cout)"""
7933  return _IMP_core.RigidBodyMember_show(self, *args)
7934 
7935  def get_rigid_body(self):
7936  r"""get_rigid_body(RigidBodyMember self) -> RigidBody"""
7937  return _IMP_core.RigidBodyMember_get_rigid_body(self)
7938 
7939  def get_internal_coordinates(self):
7940  r"""get_internal_coordinates(RigidBodyMember self) -> Vector3D"""
7941  return _IMP_core.RigidBodyMember_get_internal_coordinates(self)
7942 
7943  def set_internal_coordinates(self, v):
7944  r"""set_internal_coordinates(RigidBodyMember self, Vector3D v)"""
7945  return _IMP_core.RigidBodyMember_set_internal_coordinates(self, v)
7946 
7947  def set_internal_transformation(self, v):
7948  r"""set_internal_transformation(RigidBodyMember self, Transformation3D v)"""
7949  return _IMP_core.RigidBodyMember_set_internal_transformation(self, v)
7950 
7951  def get_internal_transformation(self):
7952  r"""get_internal_transformation(RigidBodyMember self) -> Transformation3D"""
7953  return _IMP_core.RigidBodyMember_get_internal_transformation(self)
7954  __swig_destroy__ = _IMP_core.delete_RigidBodyMember
7955 
7956  def set_coordinates(self, *args):
7957  r"""
7958  set_coordinates(RigidBodyMember self, Vector3D center)
7959  set_coordinates(RigidBodyMember self, Transformation3D tr)
7960  """
7961  return _IMP_core.RigidBodyMember_set_coordinates(self, *args)
7962 
7963  def __init__(self, *args):
7964  r"""
7965  __init__(RigidBodyMember self) -> RigidBodyMember
7966  __init__(RigidBodyMember self, Model m, ParticleIndex id) -> RigidBodyMember
7967  __init__(RigidBodyMember self, _ParticleAdaptor d) -> RigidBodyMember
7968  __init__(RigidBodyMember self, RigidBodyMember arg2) -> RigidBodyMember
7969  """
7970  _IMP_core.RigidBodyMember_swiginit(self, _IMP_core.new_RigidBodyMember(*args))
7971 
7972  @staticmethod
7973  def get_is_setup(*args):
7974  r"""
7975  get_is_setup(_ParticleAdaptor p) -> bool
7976  get_is_setup(Model m, _ParticleIndexAdaptor p) -> bool
7977  """
7978  return _IMP_core.RigidBodyMember_get_is_setup(*args)
7979 
7980  @staticmethod
7981  def get_internal_coordinate_keys():
7982  r"""get_internal_coordinate_keys() -> IMP::FloatKeys"""
7983  return _IMP_core.RigidBodyMember_get_internal_coordinate_keys()
7984 
7985  @staticmethod
7986  def get_internal_rotation_keys():
7987  r"""get_internal_rotation_keys() -> IMP::FloatKeys"""
7988  return _IMP_core.RigidBodyMember_get_internal_rotation_keys()
7989 
7990  def add_attribute(self, *args):
7991  r"""
7992  add_attribute(RigidBodyMember self, FloatKey k, IMP::Float v, bool opt)
7993  add_attribute(RigidBodyMember self, FloatKey a0, IMP::Float a1)
7994  add_attribute(RigidBodyMember self, IntKey a0, IMP::Int a1)
7995  add_attribute(RigidBodyMember self, FloatsKey a0, IMP::Floats a1)
7996  add_attribute(RigidBodyMember self, IntsKey a0, IMP::Ints a1)
7997  add_attribute(RigidBodyMember self, StringKey a0, IMP::String a1)
7998  add_attribute(RigidBodyMember self, ParticleIndexKey a0, Particle a1)
7999  add_attribute(RigidBodyMember self, ObjectKey a0, Object a1)
8000  add_attribute(RigidBodyMember self, SparseFloatKey a0, IMP::Float a1)
8001  add_attribute(RigidBodyMember self, SparseIntKey a0, IMP::Int a1)
8002  add_attribute(RigidBodyMember self, SparseStringKey a0, IMP::String a1)
8003  add_attribute(RigidBodyMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8004  """
8005  return _IMP_core.RigidBodyMember_add_attribute(self, *args)
8006 
8007  def get_value(self, *args):
8008  r"""
8009  get_value(RigidBodyMember self, FloatKey a0) -> IMP::Float
8010  get_value(RigidBodyMember self, IntKey a0) -> IMP::Int
8011  get_value(RigidBodyMember self, FloatsKey a0) -> IMP::Floats
8012  get_value(RigidBodyMember self, IntsKey a0) -> IMP::Ints
8013  get_value(RigidBodyMember self, StringKey a0) -> IMP::String
8014  get_value(RigidBodyMember self, ParticleIndexKey a0) -> Particle
8015  get_value(RigidBodyMember self, ObjectKey a0) -> Object
8016  get_value(RigidBodyMember self, SparseFloatKey a0) -> IMP::Float
8017  get_value(RigidBodyMember self, SparseIntKey a0) -> IMP::Int
8018  get_value(RigidBodyMember self, SparseStringKey a0) -> IMP::String
8019  get_value(RigidBodyMember self, SparseParticleIndexKey a0) -> ParticleIndex
8020  """
8021  return _IMP_core.RigidBodyMember_get_value(self, *args)
8022 
8023  def set_value(self, *args):
8024  r"""
8025  set_value(RigidBodyMember self, FloatKey a0, IMP::Float a1)
8026  set_value(RigidBodyMember self, IntKey a0, IMP::Int a1)
8027  set_value(RigidBodyMember self, FloatsKey a0, IMP::Floats a1)
8028  set_value(RigidBodyMember self, IntsKey a0, IMP::Ints a1)
8029  set_value(RigidBodyMember self, StringKey a0, IMP::String a1)
8030  set_value(RigidBodyMember self, ParticleIndexKey a0, Particle a1)
8031  set_value(RigidBodyMember self, ObjectKey a0, Object a1)
8032  set_value(RigidBodyMember self, SparseFloatKey a0, IMP::Float a1)
8033  set_value(RigidBodyMember self, SparseIntKey a0, IMP::Int a1)
8034  set_value(RigidBodyMember self, SparseStringKey a0, IMP::String a1)
8035  set_value(RigidBodyMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8036  """
8037  return _IMP_core.RigidBodyMember_set_value(self, *args)
8038 
8039  def remove_attribute(self, *args):
8040  r"""
8041  remove_attribute(RigidBodyMember self, FloatKey a0)
8042  remove_attribute(RigidBodyMember self, IntKey a0)
8043  remove_attribute(RigidBodyMember self, FloatsKey a0)
8044  remove_attribute(RigidBodyMember self, IntsKey a0)
8045  remove_attribute(RigidBodyMember self, StringKey a0)
8046  remove_attribute(RigidBodyMember self, ParticleIndexKey a0)
8047  remove_attribute(RigidBodyMember self, ObjectKey a0)
8048  remove_attribute(RigidBodyMember self, SparseFloatKey a0)
8049  remove_attribute(RigidBodyMember self, SparseIntKey a0)
8050  remove_attribute(RigidBodyMember self, SparseStringKey a0)
8051  remove_attribute(RigidBodyMember self, SparseParticleIndexKey a0)
8052  """
8053  return _IMP_core.RigidBodyMember_remove_attribute(self, *args)
8054 
8055  def has_attribute(self, *args):
8056  r"""
8057  has_attribute(RigidBodyMember self, FloatKey a0) -> bool
8058  has_attribute(RigidBodyMember self, IntKey a0) -> bool
8059  has_attribute(RigidBodyMember self, FloatsKey a0) -> bool
8060  has_attribute(RigidBodyMember self, IntsKey a0) -> bool
8061  has_attribute(RigidBodyMember self, StringKey a0) -> bool
8062  has_attribute(RigidBodyMember self, ParticleIndexKey a0) -> bool
8063  has_attribute(RigidBodyMember self, ObjectKey a0) -> bool
8064  has_attribute(RigidBodyMember self, SparseFloatKey a0) -> bool
8065  has_attribute(RigidBodyMember self, SparseIntKey a0) -> bool
8066  has_attribute(RigidBodyMember self, SparseStringKey a0) -> bool
8067  has_attribute(RigidBodyMember self, SparseParticleIndexKey a0) -> bool
8068  """
8069  return _IMP_core.RigidBodyMember_has_attribute(self, *args)
8070 
8071  def get_derivative(self, a0):
8072  r"""get_derivative(RigidBodyMember self, FloatKey a0) -> double"""
8073  return _IMP_core.RigidBodyMember_get_derivative(self, a0)
8074 
8075  def get_name(self):
8076  r"""get_name(RigidBodyMember self) -> std::string"""
8077  return _IMP_core.RigidBodyMember_get_name(self)
8078 
8079  def clear_caches(self):
8080  r"""clear_caches(RigidBodyMember self)"""
8081  return _IMP_core.RigidBodyMember_clear_caches(self)
8082 
8083  def set_name(self, a0):
8084  r"""set_name(RigidBodyMember self, std::string a0)"""
8085  return _IMP_core.RigidBodyMember_set_name(self, a0)
8086 
8087  def set_check_level(self, a0):
8088  r"""set_check_level(RigidBodyMember self, IMP::CheckLevel a0)"""
8089  return _IMP_core.RigidBodyMember_set_check_level(self, a0)
8090 
8091  def add_to_derivative(self, a0, a1, a2):
8092  r"""add_to_derivative(RigidBodyMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8093  return _IMP_core.RigidBodyMember_add_to_derivative(self, a0, a1, a2)
8094 
8095  def set_is_optimized(self, a0, a1):
8096  r"""set_is_optimized(RigidBodyMember self, FloatKey a0, bool a1)"""
8097  return _IMP_core.RigidBodyMember_set_is_optimized(self, a0, a1)
8098 
8099  def get_is_optimized(self, a0):
8100  r"""get_is_optimized(RigidBodyMember self, FloatKey a0) -> bool"""
8101  return _IMP_core.RigidBodyMember_get_is_optimized(self, a0)
8102 
8103  def get_check_level(self):
8104  r"""get_check_level(RigidBodyMember self) -> IMP::CheckLevel"""
8105  return _IMP_core.RigidBodyMember_get_check_level(self)
8106 
8107  def __eq__(self, *args):
8108  r"""
8109  __eq__(RigidBodyMember self, RigidBodyMember o) -> bool
8110  __eq__(RigidBodyMember self, Particle d) -> bool
8111  """
8112  return _IMP_core.RigidBodyMember___eq__(self, *args)
8113 
8114  def __ne__(self, *args):
8115  r"""
8116  __ne__(RigidBodyMember self, RigidBodyMember o) -> bool
8117  __ne__(RigidBodyMember self, Particle d) -> bool
8118  """
8119  return _IMP_core.RigidBodyMember___ne__(self, *args)
8120 
8121  def __le__(self, *args):
8122  r"""
8123  __le__(RigidBodyMember self, RigidBodyMember o) -> bool
8124  __le__(RigidBodyMember self, Particle d) -> bool
8125  """
8126  return _IMP_core.RigidBodyMember___le__(self, *args)
8127 
8128  def __lt__(self, *args):
8129  r"""
8130  __lt__(RigidBodyMember self, RigidBodyMember o) -> bool
8131  __lt__(RigidBodyMember self, Particle d) -> bool
8132  """
8133  return _IMP_core.RigidBodyMember___lt__(self, *args)
8134 
8135  def __ge__(self, *args):
8136  r"""
8137  __ge__(RigidBodyMember self, RigidBodyMember o) -> bool
8138  __ge__(RigidBodyMember self, Particle d) -> bool
8139  """
8140  return _IMP_core.RigidBodyMember___ge__(self, *args)
8141 
8142  def __gt__(self, *args):
8143  r"""
8144  __gt__(RigidBodyMember self, RigidBodyMember o) -> bool
8145  __gt__(RigidBodyMember self, Particle d) -> bool
8146  """
8147  return _IMP_core.RigidBodyMember___gt__(self, *args)
8148 
8149  def __hash__(self):
8150  r"""__hash__(RigidBodyMember self) -> std::size_t"""
8151  return _IMP_core.RigidBodyMember___hash__(self)
8152 
8153  def __str__(self):
8154  r"""__str__(RigidBodyMember self) -> std::string"""
8155  return _IMP_core.RigidBodyMember___str__(self)
8156 
8157  def __repr__(self):
8158  r"""__repr__(RigidBodyMember self) -> std::string"""
8159  return _IMP_core.RigidBodyMember___repr__(self)
8160 
8161  def _get_as_binary(self):
8162  r"""_get_as_binary(RigidBodyMember self) -> PyObject *"""
8163  return _IMP_core.RigidBodyMember__get_as_binary(self)
8164 
8165  def _set_from_binary(self, p):
8166  r"""_set_from_binary(RigidBodyMember self, PyObject * p)"""
8167  return _IMP_core.RigidBodyMember__set_from_binary(self, p)
8168 
8169  def __getstate__(self):
8170  p = self._get_as_binary()
8171  if len(self.__dict__) > 1:
8172  d = self.__dict__.copy()
8173  del d['this']
8174  p = (d, p)
8175  return p
8176 
8177  def __setstate__(self, p):
8178  if not hasattr(self, 'this'):
8179  self.__init__()
8180  if isinstance(p, tuple):
8181  d, p = p
8182  self.__dict__.update(d)
8183  return self._set_from_binary(p)
8184 
8185 
8186 # Register RigidBodyMember in _IMP_core:
8187 _IMP_core.RigidBodyMember_swigregister(RigidBodyMember)
8188 class RigidMember(RigidBodyMember):
8189  r"""Proxy of C++ IMP::core::RigidMember class."""
8190 
8191  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8192 
8193  def show(self, *args):
8194  r"""show(RigidMember self, _ostream out=std::cout)"""
8195  return _IMP_core.RigidMember_show(self, *args)
8196 
8197  def __init__(self, *args):
8198  r"""
8199  __init__(RigidMember self) -> RigidMember
8200  __init__(RigidMember self, Model m, ParticleIndex id) -> RigidMember
8201  __init__(RigidMember self, _ParticleAdaptor d) -> RigidMember
8202  __init__(RigidMember self, RigidMember arg2) -> RigidMember
8203  """
8204  _IMP_core.RigidMember_swiginit(self, _IMP_core.new_RigidMember(*args))
8205  __swig_destroy__ = _IMP_core.delete_RigidMember
8206 
8207  @staticmethod
8208  def get_is_setup(*args):
8209  r"""
8210  get_is_setup(_ParticleAdaptor p) -> bool
8211  get_is_setup(Model m, _ParticleIndexAdaptor p) -> bool
8212  """
8213  return _IMP_core.RigidMember_get_is_setup(*args)
8214 
8215  def add_attribute(self, *args):
8216  r"""
8217  add_attribute(RigidMember self, FloatKey k, IMP::Float v, bool opt)
8218  add_attribute(RigidMember self, FloatKey a0, IMP::Float a1)
8219  add_attribute(RigidMember self, IntKey a0, IMP::Int a1)
8220  add_attribute(RigidMember self, FloatsKey a0, IMP::Floats a1)
8221  add_attribute(RigidMember self, IntsKey a0, IMP::Ints a1)
8222  add_attribute(RigidMember self, StringKey a0, IMP::String a1)
8223  add_attribute(RigidMember self, ParticleIndexKey a0, Particle a1)
8224  add_attribute(RigidMember self, ObjectKey a0, Object a1)
8225  add_attribute(RigidMember self, SparseFloatKey a0, IMP::Float a1)
8226  add_attribute(RigidMember self, SparseIntKey a0, IMP::Int a1)
8227  add_attribute(RigidMember self, SparseStringKey a0, IMP::String a1)
8228  add_attribute(RigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8229  """
8230  return _IMP_core.RigidMember_add_attribute(self, *args)
8231 
8232  def get_value(self, *args):
8233  r"""
8234  get_value(RigidMember self, FloatKey a0) -> IMP::Float
8235  get_value(RigidMember self, IntKey a0) -> IMP::Int
8236  get_value(RigidMember self, FloatsKey a0) -> IMP::Floats
8237  get_value(RigidMember self, IntsKey a0) -> IMP::Ints
8238  get_value(RigidMember self, StringKey a0) -> IMP::String
8239  get_value(RigidMember self, ParticleIndexKey a0) -> Particle
8240  get_value(RigidMember self, ObjectKey a0) -> Object
8241  get_value(RigidMember self, SparseFloatKey a0) -> IMP::Float
8242  get_value(RigidMember self, SparseIntKey a0) -> IMP::Int
8243  get_value(RigidMember self, SparseStringKey a0) -> IMP::String
8244  get_value(RigidMember self, SparseParticleIndexKey a0) -> ParticleIndex
8245  """
8246  return _IMP_core.RigidMember_get_value(self, *args)
8247 
8248  def set_value(self, *args):
8249  r"""
8250  set_value(RigidMember self, FloatKey a0, IMP::Float a1)
8251  set_value(RigidMember self, IntKey a0, IMP::Int a1)
8252  set_value(RigidMember self, FloatsKey a0, IMP::Floats a1)
8253  set_value(RigidMember self, IntsKey a0, IMP::Ints a1)
8254  set_value(RigidMember self, StringKey a0, IMP::String a1)
8255  set_value(RigidMember self, ParticleIndexKey a0, Particle a1)
8256  set_value(RigidMember self, ObjectKey a0, Object a1)
8257  set_value(RigidMember self, SparseFloatKey a0, IMP::Float a1)
8258  set_value(RigidMember self, SparseIntKey a0, IMP::Int a1)
8259  set_value(RigidMember self, SparseStringKey a0, IMP::String a1)
8260  set_value(RigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8261  """
8262  return _IMP_core.RigidMember_set_value(self, *args)
8263 
8264  def remove_attribute(self, *args):
8265  r"""
8266  remove_attribute(RigidMember self, FloatKey a0)
8267  remove_attribute(RigidMember self, IntKey a0)
8268  remove_attribute(RigidMember self, FloatsKey a0)
8269  remove_attribute(RigidMember self, IntsKey a0)
8270  remove_attribute(RigidMember self, StringKey a0)
8271  remove_attribute(RigidMember self, ParticleIndexKey a0)
8272  remove_attribute(RigidMember self, ObjectKey a0)
8273  remove_attribute(RigidMember self, SparseFloatKey a0)
8274  remove_attribute(RigidMember self, SparseIntKey a0)
8275  remove_attribute(RigidMember self, SparseStringKey a0)
8276  remove_attribute(RigidMember self, SparseParticleIndexKey a0)
8277  """
8278  return _IMP_core.RigidMember_remove_attribute(self, *args)
8279 
8280  def has_attribute(self, *args):
8281  r"""
8282  has_attribute(RigidMember self, FloatKey a0) -> bool
8283  has_attribute(RigidMember self, IntKey a0) -> bool
8284  has_attribute(RigidMember self, FloatsKey a0) -> bool
8285  has_attribute(RigidMember self, IntsKey a0) -> bool
8286  has_attribute(RigidMember self, StringKey a0) -> bool
8287  has_attribute(RigidMember self, ParticleIndexKey a0) -> bool
8288  has_attribute(RigidMember self, ObjectKey a0) -> bool
8289  has_attribute(RigidMember self, SparseFloatKey a0) -> bool
8290  has_attribute(RigidMember self, SparseIntKey a0) -> bool
8291  has_attribute(RigidMember self, SparseStringKey a0) -> bool
8292  has_attribute(RigidMember self, SparseParticleIndexKey a0) -> bool
8293  """
8294  return _IMP_core.RigidMember_has_attribute(self, *args)
8295 
8296  def get_derivative(self, a0):
8297  r"""get_derivative(RigidMember self, FloatKey a0) -> double"""
8298  return _IMP_core.RigidMember_get_derivative(self, a0)
8299 
8300  def get_name(self):
8301  r"""get_name(RigidMember self) -> std::string"""
8302  return _IMP_core.RigidMember_get_name(self)
8303 
8304  def clear_caches(self):
8305  r"""clear_caches(RigidMember self)"""
8306  return _IMP_core.RigidMember_clear_caches(self)
8307 
8308  def set_name(self, a0):
8309  r"""set_name(RigidMember self, std::string a0)"""
8310  return _IMP_core.RigidMember_set_name(self, a0)
8311 
8312  def set_check_level(self, a0):
8313  r"""set_check_level(RigidMember self, IMP::CheckLevel a0)"""
8314  return _IMP_core.RigidMember_set_check_level(self, a0)
8315 
8316  def add_to_derivative(self, a0, a1, a2):
8317  r"""add_to_derivative(RigidMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8318  return _IMP_core.RigidMember_add_to_derivative(self, a0, a1, a2)
8319 
8320  def set_is_optimized(self, a0, a1):
8321  r"""set_is_optimized(RigidMember self, FloatKey a0, bool a1)"""
8322  return _IMP_core.RigidMember_set_is_optimized(self, a0, a1)
8323 
8324  def get_is_optimized(self, a0):
8325  r"""get_is_optimized(RigidMember self, FloatKey a0) -> bool"""
8326  return _IMP_core.RigidMember_get_is_optimized(self, a0)
8327 
8328  def get_check_level(self):
8329  r"""get_check_level(RigidMember self) -> IMP::CheckLevel"""
8330  return _IMP_core.RigidMember_get_check_level(self)
8331 
8332  def __eq__(self, *args):
8333  r"""
8334  __eq__(RigidMember self, RigidMember o) -> bool
8335  __eq__(RigidMember self, Particle d) -> bool
8336  """
8337  return _IMP_core.RigidMember___eq__(self, *args)
8338 
8339  def __ne__(self, *args):
8340  r"""
8341  __ne__(RigidMember self, RigidMember o) -> bool
8342  __ne__(RigidMember self, Particle d) -> bool
8343  """
8344  return _IMP_core.RigidMember___ne__(self, *args)
8345 
8346  def __le__(self, *args):
8347  r"""
8348  __le__(RigidMember self, RigidMember o) -> bool
8349  __le__(RigidMember self, Particle d) -> bool
8350  """
8351  return _IMP_core.RigidMember___le__(self, *args)
8352 
8353  def __lt__(self, *args):
8354  r"""
8355  __lt__(RigidMember self, RigidMember o) -> bool
8356  __lt__(RigidMember self, Particle d) -> bool
8357  """
8358  return _IMP_core.RigidMember___lt__(self, *args)
8359 
8360  def __ge__(self, *args):
8361  r"""
8362  __ge__(RigidMember self, RigidMember o) -> bool
8363  __ge__(RigidMember self, Particle d) -> bool
8364  """
8365  return _IMP_core.RigidMember___ge__(self, *args)
8366 
8367  def __gt__(self, *args):
8368  r"""
8369  __gt__(RigidMember self, RigidMember o) -> bool
8370  __gt__(RigidMember self, Particle d) -> bool
8371  """
8372  return _IMP_core.RigidMember___gt__(self, *args)
8373 
8374  def __hash__(self):
8375  r"""__hash__(RigidMember self) -> std::size_t"""
8376  return _IMP_core.RigidMember___hash__(self)
8377 
8378  def __str__(self):
8379  r"""__str__(RigidMember self) -> std::string"""
8380  return _IMP_core.RigidMember___str__(self)
8381 
8382  def __repr__(self):
8383  r"""__repr__(RigidMember self) -> std::string"""
8384  return _IMP_core.RigidMember___repr__(self)
8385 
8386  def _get_as_binary(self):
8387  r"""_get_as_binary(RigidMember self) -> PyObject *"""
8388  return _IMP_core.RigidMember__get_as_binary(self)
8389 
8390  def _set_from_binary(self, p):
8391  r"""_set_from_binary(RigidMember self, PyObject * p)"""
8392  return _IMP_core.RigidMember__set_from_binary(self, p)
8393 
8394  def __getstate__(self):
8395  p = self._get_as_binary()
8396  if len(self.__dict__) > 1:
8397  d = self.__dict__.copy()
8398  del d['this']
8399  p = (d, p)
8400  return p
8401 
8402  def __setstate__(self, p):
8403  if not hasattr(self, 'this'):
8404  self.__init__()
8405  if isinstance(p, tuple):
8406  d, p = p
8407  self.__dict__.update(d)
8408  return self._set_from_binary(p)
8409 
8410 
8411 # Register RigidMember in _IMP_core:
8412 _IMP_core.RigidMember_swigregister(RigidMember)
8413 class NonRigidMember(RigidBodyMember):
8414  r"""Proxy of C++ IMP::core::NonRigidMember class."""
8415 
8416  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8417 
8418  def show(self, *args):
8419  r"""show(NonRigidMember self, _ostream out=std::cout)"""
8420  return _IMP_core.NonRigidMember_show(self, *args)
8421 
8422  def __init__(self, *args):
8423  r"""
8424  __init__(NonRigidMember self) -> NonRigidMember
8425  __init__(NonRigidMember self, Model m, ParticleIndex id) -> NonRigidMember
8426  __init__(NonRigidMember self, _ParticleAdaptor d) -> NonRigidMember
8427  __init__(NonRigidMember self, NonRigidMember arg2) -> NonRigidMember
8428  """
8429  _IMP_core.NonRigidMember_swiginit(self, _IMP_core.new_NonRigidMember(*args))
8430  __swig_destroy__ = _IMP_core.delete_NonRigidMember
8431 
8432  @staticmethod
8433  def get_is_setup(*args):
8434  r"""
8435  get_is_setup(_ParticleAdaptor p) -> bool
8436  get_is_setup(Model m, ParticleIndex p) -> bool
8437  """
8438  return _IMP_core.NonRigidMember_get_is_setup(*args)
8439 
8440  def add_to_internal_derivatives(self, deriv_parent, da):
8441  r"""add_to_internal_derivatives(NonRigidMember self, Vector3D deriv_parent, DerivativeAccumulator da)"""
8442  return _IMP_core.NonRigidMember_add_to_internal_derivatives(self, deriv_parent, da)
8443 
8444  def add_to_internal_rotational_derivatives(self, *args):
8445  r"""
8446  add_to_internal_rotational_derivatives(NonRigidMember self, Vector4D local_qderiv, Rotation3D rot_local_to_parent, Rotation3D rot_parent_to_global, DerivativeAccumulator da)
8447  add_to_internal_rotational_derivatives(NonRigidMember self, Vector4D qderiv, DerivativeAccumulator da)
8448  """
8449  return _IMP_core.NonRigidMember_add_to_internal_rotational_derivatives(self, *args)
8450 
8451  def get_internal_derivatives(self):
8452  r"""get_internal_derivatives(NonRigidMember self) -> Vector3D"""
8453  return _IMP_core.NonRigidMember_get_internal_derivatives(self)
8454 
8455  def get_internal_rotational_derivatives(self):
8456  r"""get_internal_rotational_derivatives(NonRigidMember self) -> Vector4D"""
8457  return _IMP_core.NonRigidMember_get_internal_rotational_derivatives(self)
8458 
8459  def add_attribute(self, *args):
8460  r"""
8461  add_attribute(NonRigidMember self, FloatKey k, IMP::Float v, bool opt)
8462  add_attribute(NonRigidMember self, FloatKey a0, IMP::Float a1)
8463  add_attribute(NonRigidMember self, IntKey a0, IMP::Int a1)
8464  add_attribute(NonRigidMember self, FloatsKey a0, IMP::Floats a1)
8465  add_attribute(NonRigidMember self, IntsKey a0, IMP::Ints a1)
8466  add_attribute(NonRigidMember self, StringKey a0, IMP::String a1)
8467  add_attribute(NonRigidMember self, ParticleIndexKey a0, Particle a1)
8468  add_attribute(NonRigidMember self, ObjectKey a0, Object a1)
8469  add_attribute(NonRigidMember self, SparseFloatKey a0, IMP::Float a1)
8470  add_attribute(NonRigidMember self, SparseIntKey a0, IMP::Int a1)
8471  add_attribute(NonRigidMember self, SparseStringKey a0, IMP::String a1)
8472  add_attribute(NonRigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8473  """
8474  return _IMP_core.NonRigidMember_add_attribute(self, *args)
8475 
8476  def get_value(self, *args):
8477  r"""
8478  get_value(NonRigidMember self, FloatKey a0) -> IMP::Float
8479  get_value(NonRigidMember self, IntKey a0) -> IMP::Int
8480  get_value(NonRigidMember self, FloatsKey a0) -> IMP::Floats
8481  get_value(NonRigidMember self, IntsKey a0) -> IMP::Ints
8482  get_value(NonRigidMember self, StringKey a0) -> IMP::String
8483  get_value(NonRigidMember self, ParticleIndexKey a0) -> Particle
8484  get_value(NonRigidMember self, ObjectKey a0) -> Object
8485  get_value(NonRigidMember self, SparseFloatKey a0) -> IMP::Float
8486  get_value(NonRigidMember self, SparseIntKey a0) -> IMP::Int
8487  get_value(NonRigidMember self, SparseStringKey a0) -> IMP::String
8488  get_value(NonRigidMember self, SparseParticleIndexKey a0) -> ParticleIndex
8489  """
8490  return _IMP_core.NonRigidMember_get_value(self, *args)
8491 
8492  def set_value(self, *args):
8493  r"""
8494  set_value(NonRigidMember self, FloatKey a0, IMP::Float a1)
8495  set_value(NonRigidMember self, IntKey a0, IMP::Int a1)
8496  set_value(NonRigidMember self, FloatsKey a0, IMP::Floats a1)
8497  set_value(NonRigidMember self, IntsKey a0, IMP::Ints a1)
8498  set_value(NonRigidMember self, StringKey a0, IMP::String a1)
8499  set_value(NonRigidMember self, ParticleIndexKey a0, Particle a1)
8500  set_value(NonRigidMember self, ObjectKey a0, Object a1)
8501  set_value(NonRigidMember self, SparseFloatKey a0, IMP::Float a1)
8502  set_value(NonRigidMember self, SparseIntKey a0, IMP::Int a1)
8503  set_value(NonRigidMember self, SparseStringKey a0, IMP::String a1)
8504  set_value(NonRigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8505  """
8506  return _IMP_core.NonRigidMember_set_value(self, *args)
8507 
8508  def remove_attribute(self, *args):
8509  r"""
8510  remove_attribute(NonRigidMember self, FloatKey a0)
8511  remove_attribute(NonRigidMember self, IntKey a0)
8512  remove_attribute(NonRigidMember self, FloatsKey a0)
8513  remove_attribute(NonRigidMember self, IntsKey a0)
8514  remove_attribute(NonRigidMember self, StringKey a0)
8515  remove_attribute(NonRigidMember self, ParticleIndexKey a0)
8516  remove_attribute(NonRigidMember self, ObjectKey a0)
8517  remove_attribute(NonRigidMember self, SparseFloatKey a0)
8518  remove_attribute(NonRigidMember self, SparseIntKey a0)
8519  remove_attribute(NonRigidMember self, SparseStringKey a0)
8520  remove_attribute(NonRigidMember self, SparseParticleIndexKey a0)
8521  """
8522  return _IMP_core.NonRigidMember_remove_attribute(self, *args)
8523 
8524  def has_attribute(self, *args):
8525  r"""
8526  has_attribute(NonRigidMember self, FloatKey a0) -> bool
8527  has_attribute(NonRigidMember self, IntKey a0) -> bool
8528  has_attribute(NonRigidMember self, FloatsKey a0) -> bool
8529  has_attribute(NonRigidMember self, IntsKey a0) -> bool
8530  has_attribute(NonRigidMember self, StringKey a0) -> bool
8531  has_attribute(NonRigidMember self, ParticleIndexKey a0) -> bool
8532  has_attribute(NonRigidMember self, ObjectKey a0) -> bool
8533  has_attribute(NonRigidMember self, SparseFloatKey a0) -> bool
8534  has_attribute(NonRigidMember self, SparseIntKey a0) -> bool
8535  has_attribute(NonRigidMember self, SparseStringKey a0) -> bool
8536  has_attribute(NonRigidMember self, SparseParticleIndexKey a0) -> bool
8537  """
8538  return _IMP_core.NonRigidMember_has_attribute(self, *args)
8539 
8540  def get_derivative(self, a0):
8541  r"""get_derivative(NonRigidMember self, FloatKey a0) -> double"""
8542  return _IMP_core.NonRigidMember_get_derivative(self, a0)
8543 
8544  def get_name(self):
8545  r"""get_name(NonRigidMember self) -> std::string"""
8546  return _IMP_core.NonRigidMember_get_name(self)
8547 
8548  def clear_caches(self):
8549  r"""clear_caches(NonRigidMember self)"""
8550  return _IMP_core.NonRigidMember_clear_caches(self)
8551 
8552  def set_name(self, a0):
8553  r"""set_name(NonRigidMember self, std::string a0)"""
8554  return _IMP_core.NonRigidMember_set_name(self, a0)
8555 
8556  def set_check_level(self, a0):
8557  r"""set_check_level(NonRigidMember self, IMP::CheckLevel a0)"""
8558  return _IMP_core.NonRigidMember_set_check_level(self, a0)
8559 
8560  def add_to_derivative(self, a0, a1, a2):
8561  r"""add_to_derivative(NonRigidMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8562  return _IMP_core.NonRigidMember_add_to_derivative(self, a0, a1, a2)
8563 
8564  def set_is_optimized(self, a0, a1):
8565  r"""set_is_optimized(NonRigidMember self, FloatKey a0, bool a1)"""
8566  return _IMP_core.NonRigidMember_set_is_optimized(self, a0, a1)
8567 
8568  def get_is_optimized(self, a0):
8569  r"""get_is_optimized(NonRigidMember self, FloatKey a0) -> bool"""
8570  return _IMP_core.NonRigidMember_get_is_optimized(self, a0)
8571 
8572  def get_check_level(self):
8573  r"""get_check_level(NonRigidMember self) -> IMP::CheckLevel"""
8574  return _IMP_core.NonRigidMember_get_check_level(self)
8575 
8576  def __eq__(self, *args):
8577  r"""
8578  __eq__(NonRigidMember self, NonRigidMember o) -> bool
8579  __eq__(NonRigidMember self, Particle d) -> bool
8580  """
8581  return _IMP_core.NonRigidMember___eq__(self, *args)
8582 
8583  def __ne__(self, *args):
8584  r"""
8585  __ne__(NonRigidMember self, NonRigidMember o) -> bool
8586  __ne__(NonRigidMember self, Particle d) -> bool
8587  """
8588  return _IMP_core.NonRigidMember___ne__(self, *args)
8589 
8590  def __le__(self, *args):
8591  r"""
8592  __le__(NonRigidMember self, NonRigidMember o) -> bool
8593  __le__(NonRigidMember self, Particle d) -> bool
8594  """
8595  return _IMP_core.NonRigidMember___le__(self, *args)
8596 
8597  def __lt__(self, *args):
8598  r"""
8599  __lt__(NonRigidMember self, NonRigidMember o) -> bool
8600  __lt__(NonRigidMember self, Particle d) -> bool
8601  """
8602  return _IMP_core.NonRigidMember___lt__(self, *args)
8603 
8604  def __ge__(self, *args):
8605  r"""
8606  __ge__(NonRigidMember self, NonRigidMember o) -> bool
8607  __ge__(NonRigidMember self, Particle d) -> bool
8608  """
8609  return _IMP_core.NonRigidMember___ge__(self, *args)
8610 
8611  def __gt__(self, *args):
8612  r"""
8613  __gt__(NonRigidMember self, NonRigidMember o) -> bool
8614  __gt__(NonRigidMember self, Particle d) -> bool
8615  """
8616  return _IMP_core.NonRigidMember___gt__(self, *args)
8617 
8618  def __hash__(self):
8619  r"""__hash__(NonRigidMember self) -> std::size_t"""
8620  return _IMP_core.NonRigidMember___hash__(self)
8621 
8622  def __str__(self):
8623  r"""__str__(NonRigidMember self) -> std::string"""
8624  return _IMP_core.NonRigidMember___str__(self)
8625 
8626  def __repr__(self):
8627  r"""__repr__(NonRigidMember self) -> std::string"""
8628  return _IMP_core.NonRigidMember___repr__(self)
8629 
8630  def _get_as_binary(self):
8631  r"""_get_as_binary(NonRigidMember self) -> PyObject *"""
8632  return _IMP_core.NonRigidMember__get_as_binary(self)
8633 
8634  def _set_from_binary(self, p):
8635  r"""_set_from_binary(NonRigidMember self, PyObject * p)"""
8636  return _IMP_core.NonRigidMember__set_from_binary(self, p)
8637 
8638  def __getstate__(self):
8639  p = self._get_as_binary()
8640  if len(self.__dict__) > 1:
8641  d = self.__dict__.copy()
8642  del d['this']
8643  p = (d, p)
8644  return p
8645 
8646  def __setstate__(self, p):
8647  if not hasattr(self, 'this'):
8648  self.__init__()
8649  if isinstance(p, tuple):
8650  d, p = p
8651  self.__dict__.update(d)
8652  return self._set_from_binary(p)
8653 
8654 
8655 # Register NonRigidMember in _IMP_core:
8656 _IMP_core.NonRigidMember_swigregister(NonRigidMember)
8657 class RigidMembersRefiner(IMP.Refiner):
8658  r"""Proxy of C++ IMP::core::RigidMembersRefiner class."""
8659 
8660  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8661 
8662  def __init__(self, *args):
8663  r"""__init__(RigidMembersRefiner self, std::string name="RigidMembersRefiner%d") -> RigidMembersRefiner"""
8664  _IMP_core.RigidMembersRefiner_swiginit(self, _IMP_core.new_RigidMembersRefiner(*args))
8665 
8666  def do_get_inputs(self, m, pis):
8667  r"""do_get_inputs(RigidMembersRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8668  return _IMP_core.RigidMembersRefiner_do_get_inputs(self, m, pis)
8669 
8670  def get_version_info(self):
8671  r"""get_version_info(RigidMembersRefiner self) -> VersionInfo"""
8672  return _IMP_core.RigidMembersRefiner_get_version_info(self)
8673  __swig_destroy__ = _IMP_core.delete_RigidMembersRefiner
8674 
8675  def __str__(self):
8676  r"""__str__(RigidMembersRefiner self) -> std::string"""
8677  return _IMP_core.RigidMembersRefiner___str__(self)
8678 
8679  def __repr__(self):
8680  r"""__repr__(RigidMembersRefiner self) -> std::string"""
8681  return _IMP_core.RigidMembersRefiner___repr__(self)
8682 
8683  @staticmethod
8684  def get_from(o):
8685  return _object_cast_to_RigidMembersRefiner(o)
8686 
8687 
8688 # Register RigidMembersRefiner in _IMP_core:
8689 _IMP_core.RigidMembersRefiner_swigregister(RigidMembersRefiner)
8690 
8691 def get_rigid_members_refiner():
8692  r"""get_rigid_members_refiner() -> RigidMembersRefiner"""
8693  return _IMP_core.get_rigid_members_refiner()
8694 
8695 def transform(*args):
8696  r"""
8697  transform(XYZ a, Transformation3D tr)
8698  transform(RigidBody a, Transformation3D tr)
8699  """
8700  return _IMP_core.transform(*args)
8701 
8702 def get_initial_reference_frame(*args):
8703  r"""
8704  get_initial_reference_frame(Model m, IMP::ParticleIndexes const & pis) -> ReferenceFrame3D
8705  get_initial_reference_frame(IMP::ParticlesTemp const & ps) -> ReferenceFrame3D
8706  """
8707  return _IMP_core.get_initial_reference_frame(*args)
8708 
8709 def create_rigid_bodies(m, n, no_members=False):
8710  r"""create_rigid_bodies(Model m, unsigned int n, bool no_members=False) -> IMP::ParticlesTemp"""
8711  return _IMP_core.create_rigid_bodies(m, n, no_members)
8712 
8713 def show_rigid_body_hierarchy(*args):
8714  r"""show_rigid_body_hierarchy(RigidBody rb, TextOutput out=IMP::TextOutput(std::cout))"""
8715  return _IMP_core.show_rigid_body_hierarchy(*args)
8716 
8717 def get_root_rigid_body(m):
8718  r"""get_root_rigid_body(RigidMember m) -> ParticleIndex"""
8719  return _IMP_core.get_root_rigid_body(m)
8720 class RigidBodyHierarchyGeometry(IMP.display.SingletonGeometry):
8721  r"""Proxy of C++ IMP::core::RigidBodyHierarchyGeometry class."""
8722 
8723  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8724 
8725  def __init__(self, rb, constituents):
8726  r"""__init__(RigidBodyHierarchyGeometry self, RigidBody rb, IMP::ParticlesTemp const & constituents) -> RigidBodyHierarchyGeometry"""
8727  _IMP_core.RigidBodyHierarchyGeometry_swiginit(self, _IMP_core.new_RigidBodyHierarchyGeometry(rb, constituents))
8728 
8729  def get_version_info(self):
8730  r"""get_version_info(RigidBodyHierarchyGeometry self) -> VersionInfo"""
8731  return _IMP_core.RigidBodyHierarchyGeometry_get_version_info(self)
8732  __swig_destroy__ = _IMP_core.delete_RigidBodyHierarchyGeometry
8733 
8734  def __str__(self):
8735  r"""__str__(RigidBodyHierarchyGeometry self) -> std::string"""
8736  return _IMP_core.RigidBodyHierarchyGeometry___str__(self)
8737 
8738  def __repr__(self):
8739  r"""__repr__(RigidBodyHierarchyGeometry self) -> std::string"""
8740  return _IMP_core.RigidBodyHierarchyGeometry___repr__(self)
8741 
8742  @staticmethod
8743  def get_from(o):
8744  return _object_cast_to_RigidBodyHierarchyGeometry(o)
8745 
8746 
8747 # Register RigidBodyHierarchyGeometry in _IMP_core:
8748 _IMP_core.RigidBodyHierarchyGeometry_swigregister(RigidBodyHierarchyGeometry)
8749 class RigidBodyDerivativeGeometry(IMP.display.SingletonGeometry):
8750  r"""Proxy of C++ IMP::core::RigidBodyDerivativeGeometry class."""
8751 
8752  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8753 
8754  def __init__(self, *args):
8755  r"""
8756  __init__(RigidBodyDerivativeGeometry self, Particle p) -> RigidBodyDerivativeGeometry
8757  __init__(RigidBodyDerivativeGeometry self, RigidBody d) -> RigidBodyDerivativeGeometry
8758  """
8759  _IMP_core.RigidBodyDerivativeGeometry_swiginit(self, _IMP_core.new_RigidBodyDerivativeGeometry(*args))
8760 
8761  def get_version_info(self):
8762  r"""get_version_info(RigidBodyDerivativeGeometry self) -> VersionInfo"""
8763  return _IMP_core.RigidBodyDerivativeGeometry_get_version_info(self)
8764  __swig_destroy__ = _IMP_core.delete_RigidBodyDerivativeGeometry
8765 
8766  def __str__(self):
8767  r"""__str__(RigidBodyDerivativeGeometry self) -> std::string"""
8768  return _IMP_core.RigidBodyDerivativeGeometry___str__(self)
8769 
8770  def __repr__(self):
8771  r"""__repr__(RigidBodyDerivativeGeometry self) -> std::string"""
8772  return _IMP_core.RigidBodyDerivativeGeometry___repr__(self)
8773 
8774  @staticmethod
8775  def get_from(o):
8776  return _object_cast_to_RigidBodyDerivativeGeometry(o)
8777 
8778 
8779 # Register RigidBodyDerivativeGeometry in _IMP_core:
8780 _IMP_core.RigidBodyDerivativeGeometry_swigregister(RigidBodyDerivativeGeometry)
8781 class RigidBodyDerivativesGeometry(IMP.display.SingletonsGeometry):
8782  r"""Proxy of C++ IMP::core::RigidBodyDerivativesGeometry class."""
8783 
8784  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8785 
8786  def __init__(self, sc):
8787  r"""__init__(RigidBodyDerivativesGeometry self, SingletonContainer sc) -> RigidBodyDerivativesGeometry"""
8788  _IMP_core.RigidBodyDerivativesGeometry_swiginit(self, _IMP_core.new_RigidBodyDerivativesGeometry(sc))
8789 
8790  def get_version_info(self):
8791  r"""get_version_info(RigidBodyDerivativesGeometry self) -> VersionInfo"""
8792  return _IMP_core.RigidBodyDerivativesGeometry_get_version_info(self)
8793  __swig_destroy__ = _IMP_core.delete_RigidBodyDerivativesGeometry
8794 
8795  def __str__(self):
8796  r"""__str__(RigidBodyDerivativesGeometry self) -> std::string"""
8797  return _IMP_core.RigidBodyDerivativesGeometry___str__(self)
8798 
8799  def __repr__(self):
8800  r"""__repr__(RigidBodyDerivativesGeometry self) -> std::string"""
8801  return _IMP_core.RigidBodyDerivativesGeometry___repr__(self)
8802 
8803  @staticmethod
8804  def get_from(o):
8805  return _object_cast_to_RigidBodyDerivativesGeometry(o)
8806 
8807 
8808 # Register RigidBodyDerivativesGeometry in _IMP_core:
8809 _IMP_core.RigidBodyDerivativesGeometry_swigregister(RigidBodyDerivativesGeometry)
8810 class RigidBodyFrameGeometry(IMP.display.SingletonGeometry):
8811  r"""Proxy of C++ IMP::core::RigidBodyFrameGeometry class."""
8812 
8813  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8814 
8815  def __init__(self, *args):
8816  r"""
8817  __init__(RigidBodyFrameGeometry self, Particle p) -> RigidBodyFrameGeometry
8818  __init__(RigidBodyFrameGeometry self, RigidBody d) -> RigidBodyFrameGeometry
8819  """
8820  _IMP_core.RigidBodyFrameGeometry_swiginit(self, _IMP_core.new_RigidBodyFrameGeometry(*args))
8821 
8822  def get_version_info(self):
8823  r"""get_version_info(RigidBodyFrameGeometry self) -> VersionInfo"""
8824  return _IMP_core.RigidBodyFrameGeometry_get_version_info(self)
8825  __swig_destroy__ = _IMP_core.delete_RigidBodyFrameGeometry
8826 
8827  def __str__(self):
8828  r"""__str__(RigidBodyFrameGeometry self) -> std::string"""
8829  return _IMP_core.RigidBodyFrameGeometry___str__(self)
8830 
8831  def __repr__(self):
8832  r"""__repr__(RigidBodyFrameGeometry self) -> std::string"""
8833  return _IMP_core.RigidBodyFrameGeometry___repr__(self)
8834 
8835  @staticmethod
8836  def get_from(o):
8837  return _object_cast_to_RigidBodyFrameGeometry(o)
8838 
8839 
8840 # Register RigidBodyFrameGeometry in _IMP_core:
8841 _IMP_core.RigidBodyFrameGeometry_swigregister(RigidBodyFrameGeometry)
8842 class RigidBodyFramesGeometry(IMP.display.SingletonsGeometry):
8843  r"""Proxy of C++ IMP::core::RigidBodyFramesGeometry class."""
8844 
8845  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8846 
8847  def __init__(self, sc):
8848  r"""__init__(RigidBodyFramesGeometry self, SingletonContainer sc) -> RigidBodyFramesGeometry"""
8849  _IMP_core.RigidBodyFramesGeometry_swiginit(self, _IMP_core.new_RigidBodyFramesGeometry(sc))
8850 
8851  def get_version_info(self):
8852  r"""get_version_info(RigidBodyFramesGeometry self) -> VersionInfo"""
8853  return _IMP_core.RigidBodyFramesGeometry_get_version_info(self)
8854  __swig_destroy__ = _IMP_core.delete_RigidBodyFramesGeometry
8855 
8856  def __str__(self):
8857  r"""__str__(RigidBodyFramesGeometry self) -> std::string"""
8858  return _IMP_core.RigidBodyFramesGeometry___str__(self)
8859 
8860  def __repr__(self):
8861  r"""__repr__(RigidBodyFramesGeometry self) -> std::string"""
8862  return _IMP_core.RigidBodyFramesGeometry___repr__(self)
8863 
8864  @staticmethod
8865  def get_from(o):
8866  return _object_cast_to_RigidBodyFramesGeometry(o)
8867 
8868 
8869 # Register RigidBodyFramesGeometry in _IMP_core:
8870 _IMP_core.RigidBodyFramesGeometry_swigregister(RigidBodyFramesGeometry)
8871 class RigidBodyTorque(IMP.display.SegmentGeometry):
8872  r"""Proxy of C++ IMP::core::RigidBodyTorque class."""
8873 
8874  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8875 
8876  def __init__(self, p):
8877  r"""__init__(RigidBodyTorque self, Particle p) -> RigidBodyTorque"""
8878  _IMP_core.RigidBodyTorque_swiginit(self, _IMP_core.new_RigidBodyTorque(p))
8879 
8880  def __str__(self):
8881  r"""__str__(RigidBodyTorque self) -> std::string"""
8882  return _IMP_core.RigidBodyTorque___str__(self)
8883 
8884  def __repr__(self):
8885  r"""__repr__(RigidBodyTorque self) -> std::string"""
8886  return _IMP_core.RigidBodyTorque___repr__(self)
8887 
8888  @staticmethod
8889  def get_from(o):
8890  return _object_cast_to_RigidBodyTorque(o)
8891 
8892  __swig_destroy__ = _IMP_core.delete_RigidBodyTorque
8893 
8894 # Register RigidBodyTorque in _IMP_core:
8895 _IMP_core.RigidBodyTorque_swigregister(RigidBodyTorque)
8896 class NearestNeighborsClosePairsFinder(ClosePairsFinder):
8897  r"""Proxy of C++ IMP::core::NearestNeighborsClosePairsFinder 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):
8902  r"""__init__(NearestNeighborsClosePairsFinder self) -> NearestNeighborsClosePairsFinder"""
8903  _IMP_core.NearestNeighborsClosePairsFinder_swiginit(self, _IMP_core.new_NearestNeighborsClosePairsFinder())
8904 
8905  def get_close_pairs(self, *args):
8906  r"""
8907  get_close_pairs(NearestNeighborsClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
8908  get_close_pairs(NearestNeighborsClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
8909  get_close_pairs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
8910  get_close_pairs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
8911  """
8912  return _IMP_core.NearestNeighborsClosePairsFinder_get_close_pairs(self, *args)
8913 
8914  def do_get_inputs(self, m, pis):
8915  r"""do_get_inputs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8916  return _IMP_core.NearestNeighborsClosePairsFinder_do_get_inputs(self, m, pis)
8917 
8918  def get_version_info(self):
8919  r"""get_version_info(NearestNeighborsClosePairsFinder self) -> VersionInfo"""
8920  return _IMP_core.NearestNeighborsClosePairsFinder_get_version_info(self)
8921  __swig_destroy__ = _IMP_core.delete_NearestNeighborsClosePairsFinder
8922 
8923  def __str__(self):
8924  r"""__str__(NearestNeighborsClosePairsFinder self) -> std::string"""
8925  return _IMP_core.NearestNeighborsClosePairsFinder___str__(self)
8926 
8927  def __repr__(self):
8928  r"""__repr__(NearestNeighborsClosePairsFinder self) -> std::string"""
8929  return _IMP_core.NearestNeighborsClosePairsFinder___repr__(self)
8930 
8931  @staticmethod
8932  def get_from(o):
8933  return _object_cast_to_NearestNeighborsClosePairsFinder(o)
8934 
8935 
8936 # Register NearestNeighborsClosePairsFinder in _IMP_core:
8937 _IMP_core.NearestNeighborsClosePairsFinder_swigregister(NearestNeighborsClosePairsFinder)
8938 class RestraintsScoringFunction(IMP.ScoringFunction):
8939  r"""Proxy of C++ IMP::core::RestraintsScoringFunction class."""
8940 
8941  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8942 
8943  def __init__(self, *args):
8944  r"""
8945  __init__(RestraintsScoringFunction self, _RestraintsAdaptor rs, double weight=1.0, double max=NO_MAX, std::string name="RestraintsScoringFunction%1%") -> RestraintsScoringFunction
8946  __init__(RestraintsScoringFunction self, _RestraintsAdaptor rs, std::string name) -> RestraintsScoringFunction
8947  __init__(RestraintsScoringFunction self) -> RestraintsScoringFunction
8948  """
8949  _IMP_core.RestraintsScoringFunction_swiginit(self, _IMP_core.new_RestraintsScoringFunction(*args))
8950 
8951  def do_add_score_and_derivatives(self, sa, ss):
8952  r"""do_add_score_and_derivatives(RestraintsScoringFunction self, ScoreAccumulator sa, IMP::ScoreStatesTemp const & ss)"""
8953  return _IMP_core.RestraintsScoringFunction_do_add_score_and_derivatives(self, sa, ss)
8954 
8955  def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss):
8956  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)"""
8957  return _IMP_core.RestraintsScoringFunction_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss)
8958 
8959  def do_get_inputs(self):
8960  r"""do_get_inputs(RestraintsScoringFunction self) -> IMP::ModelObjectsTemp"""
8961  return _IMP_core.RestraintsScoringFunction_do_get_inputs(self)
8962 
8963  def get_restraints(self):
8964  r"""get_restraints(RestraintsScoringFunction self) -> IMP::Restraints"""
8965  return _IMP_core.RestraintsScoringFunction_get_restraints(self)
8966 
8967  def set_restraints(self, d):
8968  r"""set_restraints(RestraintsScoringFunction self, IMP::Restraints const & d)"""
8969  return _IMP_core.RestraintsScoringFunction_set_restraints(self, d)
8970 
8971  def get_number_of_restraints(self):
8972  r"""get_number_of_restraints(RestraintsScoringFunction self) -> unsigned int"""
8973  return _IMP_core.RestraintsScoringFunction_get_number_of_restraints(self)
8974 
8975  def clear_restraints(self):
8976  r"""clear_restraints(RestraintsScoringFunction self)"""
8977  return _IMP_core.RestraintsScoringFunction_clear_restraints(self)
8978 
8979  def get_restraint(self, i):
8980  r"""get_restraint(RestraintsScoringFunction self, unsigned int i) -> Restraint"""
8981  return _IMP_core.RestraintsScoringFunction_get_restraint(self, i)
8982 
8983  def erase_restraint(self, i):
8984  r"""erase_restraint(RestraintsScoringFunction self, unsigned int i)"""
8985  return _IMP_core.RestraintsScoringFunction_erase_restraint(self, i)
8986 
8987  def add_restraint(self, d):
8988  r"""add_restraint(RestraintsScoringFunction self, Restraint d) -> unsigned int"""
8989  return _IMP_core.RestraintsScoringFunction_add_restraint(self, d)
8990 
8991  def add_restraints(self, d):
8992  r"""add_restraints(RestraintsScoringFunction self, IMP::Restraints const & d)"""
8993  return _IMP_core.RestraintsScoringFunction_add_restraints(self, d)
8994 
8995  def _python_index_restraint(self, r, start, stop):
8996  r"""_python_index_restraint(RestraintsScoringFunction self, Restraint r, unsigned int start, unsigned int stop) -> unsigned int"""
8997  return _IMP_core.RestraintsScoringFunction__python_index_restraint(self, r, start, stop)
8998  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)
8999  def __set_restraints(self, obj): IMP._list_util.set_varlist(self.restraints, obj)
9000  def __del_restraints(self): IMP._list_util.del_varlist(self.restraints)
9001  restraints = property(__get_restraints, __set_restraints, __del_restraints, doc="List of ##Restraints")
9002 
9003  def get_version_info(self):
9004  r"""get_version_info(RestraintsScoringFunction self) -> VersionInfo"""
9005  return _IMP_core.RestraintsScoringFunction_get_version_info(self)
9006  __swig_destroy__ = _IMP_core.delete_RestraintsScoringFunction
9007 
9008  def __str__(self):
9009  r"""__str__(RestraintsScoringFunction self) -> std::string"""
9010  return _IMP_core.RestraintsScoringFunction___str__(self)
9011 
9012  def __repr__(self):
9013  r"""__repr__(RestraintsScoringFunction self) -> std::string"""
9014  return _IMP_core.RestraintsScoringFunction___repr__(self)
9015 
9016  @staticmethod
9017  def get_from(o):
9018  return _object_cast_to_RestraintsScoringFunction(o)
9019 
9020 
9021  def _get_as_binary(self):
9022  r"""_get_as_binary(RestraintsScoringFunction self) -> PyObject *"""
9023  return _IMP_core.RestraintsScoringFunction__get_as_binary(self)
9024 
9025  def _set_from_binary(self, p):
9026  r"""_set_from_binary(RestraintsScoringFunction self, PyObject * p)"""
9027  return _IMP_core.RestraintsScoringFunction__set_from_binary(self, p)
9028 
9029  def __getstate__(self):
9030  p = self._get_as_binary()
9031  if len(self.__dict__) > 1:
9032  d = self.__dict__.copy()
9033  del d['this']
9034  p = (d, p)
9035  return p
9036 
9037  def __setstate__(self, p):
9038  if not hasattr(self, 'this'):
9039  self.__init__()
9040  if isinstance(p, tuple):
9041  d, p = p
9042  self.__dict__.update(d)
9043  return self._set_from_binary(p)
9044 
9045 
9046 # Register RestraintsScoringFunction in _IMP_core:
9047 _IMP_core.RestraintsScoringFunction_swigregister(RestraintsScoringFunction)
9048 class RigidClosePairsFinder(ClosePairsFinder):
9049  r"""Proxy of C++ IMP::core::RigidClosePairsFinder class."""
9050 
9051  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9052 
9053  def __init__(self, cpf=None):
9054  r"""__init__(RigidClosePairsFinder self, ClosePairsFinder cpf=None) -> RigidClosePairsFinder"""
9055  _IMP_core.RigidClosePairsFinder_swiginit(self, _IMP_core.new_RigidClosePairsFinder(cpf))
9056 
9057  def do_get_inputs(self, m, pis):
9058  r"""do_get_inputs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9059  return _IMP_core.RigidClosePairsFinder_do_get_inputs(self, m, pis)
9060 
9061  def get_close_pairs(self, *args):
9062  r"""
9063  get_close_pairs(RigidClosePairsFinder self, Model m, ParticleIndex a, ParticleIndex b, IMP::ParticleIndexes const & pa, IMP::ParticleIndexes const & pb) -> IMP::ParticleIndexPairs
9064  get_close_pairs(RigidClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
9065  get_close_pairs(RigidClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
9066  get_close_pairs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
9067  get_close_pairs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
9068  """
9069  return _IMP_core.RigidClosePairsFinder_get_close_pairs(self, *args)
9070 
9071  def get_version_info(self):
9072  r"""get_version_info(RigidClosePairsFinder self) -> VersionInfo"""
9073  return _IMP_core.RigidClosePairsFinder_get_version_info(self)
9074  __swig_destroy__ = _IMP_core.delete_RigidClosePairsFinder
9075 
9076  def __str__(self):
9077  r"""__str__(RigidClosePairsFinder self) -> std::string"""
9078  return _IMP_core.RigidClosePairsFinder___str__(self)
9079 
9080  def __repr__(self):
9081  r"""__repr__(RigidClosePairsFinder self) -> std::string"""
9082  return _IMP_core.RigidClosePairsFinder___repr__(self)
9083 
9084  @staticmethod
9085  def get_from(o):
9086  return _object_cast_to_RigidClosePairsFinder(o)
9087 
9088 
9089  def _get_as_binary(self):
9090  r"""_get_as_binary(RigidClosePairsFinder self) -> PyObject *"""
9091  return _IMP_core.RigidClosePairsFinder__get_as_binary(self)
9092 
9093  def _set_from_binary(self, p):
9094  r"""_set_from_binary(RigidClosePairsFinder self, PyObject * p)"""
9095  return _IMP_core.RigidClosePairsFinder__set_from_binary(self, p)
9096 
9097  def __getstate__(self):
9098  p = self._get_as_binary()
9099  if len(self.__dict__) > 1:
9100  d = self.__dict__.copy()
9101  del d['this']
9102  p = (d, p)
9103  return p
9104 
9105  def __setstate__(self, p):
9106  if not hasattr(self, 'this'):
9107  self.__init__()
9108  if isinstance(p, tuple):
9109  d, p = p
9110  self.__dict__.update(d)
9111  return self._set_from_binary(p)
9112 
9113 
9114 # Register RigidClosePairsFinder in _IMP_core:
9115 _IMP_core.RigidClosePairsFinder_swigregister(RigidClosePairsFinder)
9116 class SphereDistancePairScore(IMP.PairScore):
9117  r"""Proxy of C++ IMP::core::SphereDistancePairScore class."""
9118 
9119  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9120 
9121  def __init__(self, *args):
9122  r"""
9123  __init__(SphereDistancePairScore self, UnaryFunction uf, std::string name="SphereDistancePairScore%1%") -> SphereDistancePairScore
9124  __init__(SphereDistancePairScore self) -> SphereDistancePairScore
9125  """
9126  _IMP_core.SphereDistancePairScore_swiginit(self, _IMP_core.new_SphereDistancePairScore(*args))
9127 
9128  def do_get_inputs(self, m, pis):
9129  r"""do_get_inputs(SphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9130  return _IMP_core.SphereDistancePairScore_do_get_inputs(self, m, pis)
9131 
9132  def get_version_info(self):
9133  r"""get_version_info(SphereDistancePairScore self) -> VersionInfo"""
9134  return _IMP_core.SphereDistancePairScore_get_version_info(self)
9135  __swig_destroy__ = _IMP_core.delete_SphereDistancePairScore
9136 
9137  def __str__(self):
9138  r"""__str__(SphereDistancePairScore self) -> std::string"""
9139  return _IMP_core.SphereDistancePairScore___str__(self)
9140 
9141  def __repr__(self):
9142  r"""__repr__(SphereDistancePairScore self) -> std::string"""
9143  return _IMP_core.SphereDistancePairScore___repr__(self)
9144 
9145  @staticmethod
9146  def get_from(o):
9147  return _object_cast_to_SphereDistancePairScore(o)
9148 
9149 
9150  def _get_as_binary(self):
9151  r"""_get_as_binary(SphereDistancePairScore self) -> PyObject *"""
9152  return _IMP_core.SphereDistancePairScore__get_as_binary(self)
9153 
9154  def _set_from_binary(self, p):
9155  r"""_set_from_binary(SphereDistancePairScore self, PyObject * p)"""
9156  return _IMP_core.SphereDistancePairScore__set_from_binary(self, p)
9157 
9158  def __getstate__(self):
9159  p = self._get_as_binary()
9160  if len(self.__dict__) > 1:
9161  d = self.__dict__.copy()
9162  del d['this']
9163  p = (d, p)
9164  return p
9165 
9166  def __setstate__(self, p):
9167  if not hasattr(self, 'this'):
9168  self.__init__()
9169  if isinstance(p, tuple):
9170  d, p = p
9171  self.__dict__.update(d)
9172  return self._set_from_binary(p)
9173 
9174 
9175 # Register SphereDistancePairScore in _IMP_core:
9176 _IMP_core.SphereDistancePairScore_swigregister(SphereDistancePairScore)
9177 class HarmonicUpperBoundSphereDistancePairScore(IMP.PairScore):
9178  r"""Proxy of C++ IMP::core::HarmonicUpperBoundSphereDistancePairScore class."""
9179 
9180  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9181 
9182  def __init__(self, *args):
9183  r"""
9184  __init__(HarmonicUpperBoundSphereDistancePairScore self, double x0, double k, std::string name="HarmonicUpperBoundSphereDistancePairScore%1%") -> HarmonicUpperBoundSphereDistancePairScore
9185  __init__(HarmonicUpperBoundSphereDistancePairScore self) -> HarmonicUpperBoundSphereDistancePairScore
9186  """
9187  _IMP_core.HarmonicUpperBoundSphereDistancePairScore_swiginit(self, _IMP_core.new_HarmonicUpperBoundSphereDistancePairScore(*args))
9188 
9189  def do_get_inputs(self, m, pis):
9190  r"""do_get_inputs(HarmonicUpperBoundSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9191  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore_do_get_inputs(self, m, pis)
9192 
9193  def get_version_info(self):
9194  r"""get_version_info(HarmonicUpperBoundSphereDistancePairScore self) -> VersionInfo"""
9195  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore_get_version_info(self)
9196  __swig_destroy__ = _IMP_core.delete_HarmonicUpperBoundSphereDistancePairScore
9197 
9198  def __str__(self):
9199  r"""__str__(HarmonicUpperBoundSphereDistancePairScore self) -> std::string"""
9200  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore___str__(self)
9201 
9202  def __repr__(self):
9203  r"""__repr__(HarmonicUpperBoundSphereDistancePairScore self) -> std::string"""
9204  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore___repr__(self)
9205 
9206  @staticmethod
9207  def get_from(o):
9208  return _object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o)
9209 
9210 
9211  def _get_as_binary(self):
9212  r"""_get_as_binary(HarmonicUpperBoundSphereDistancePairScore self) -> PyObject *"""
9213  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore__get_as_binary(self)
9214 
9215  def _set_from_binary(self, p):
9216  r"""_set_from_binary(HarmonicUpperBoundSphereDistancePairScore self, PyObject * p)"""
9217  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore__set_from_binary(self, p)
9218 
9219  def __getstate__(self):
9220  p = self._get_as_binary()
9221  if len(self.__dict__) > 1:
9222  d = self.__dict__.copy()
9223  del d['this']
9224  p = (d, p)
9225  return p
9226 
9227  def __setstate__(self, p):
9228  if not hasattr(self, 'this'):
9229  self.__init__()
9230  if isinstance(p, tuple):
9231  d, p = p
9232  self.__dict__.update(d)
9233  return self._set_from_binary(p)
9234 
9235 
9236 # Register HarmonicUpperBoundSphereDistancePairScore in _IMP_core:
9237 _IMP_core.HarmonicUpperBoundSphereDistancePairScore_swigregister(HarmonicUpperBoundSphereDistancePairScore)
9238 class HarmonicUpperBoundSphereDiameterPairScore(IMP.PairScore):
9239  r"""Proxy of C++ IMP::core::HarmonicUpperBoundSphereDiameterPairScore class."""
9240 
9241  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9242 
9243  def __init__(self, d0, k):
9244  r"""__init__(HarmonicUpperBoundSphereDiameterPairScore self, double d0, double k) -> HarmonicUpperBoundSphereDiameterPairScore"""
9245  _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_swiginit(self, _IMP_core.new_HarmonicUpperBoundSphereDiameterPairScore(d0, k))
9246 
9247  def get_rest_length(self):
9248  r"""get_rest_length(HarmonicUpperBoundSphereDiameterPairScore self) -> double"""
9249  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_rest_length(self)
9250 
9251  def get_stiffness(self):
9252  r"""get_stiffness(HarmonicUpperBoundSphereDiameterPairScore self) -> double"""
9253  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_stiffness(self)
9254 
9255  def do_get_inputs(self, m, pis):
9256  r"""do_get_inputs(HarmonicUpperBoundSphereDiameterPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9257  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_do_get_inputs(self, m, pis)
9258 
9259  def get_version_info(self):
9260  r"""get_version_info(HarmonicUpperBoundSphereDiameterPairScore self) -> VersionInfo"""
9261  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_version_info(self)
9262  __swig_destroy__ = _IMP_core.delete_HarmonicUpperBoundSphereDiameterPairScore
9263 
9264  def __str__(self):
9265  r"""__str__(HarmonicUpperBoundSphereDiameterPairScore self) -> std::string"""
9266  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore___str__(self)
9267 
9268  def __repr__(self):
9269  r"""__repr__(HarmonicUpperBoundSphereDiameterPairScore self) -> std::string"""
9270  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore___repr__(self)
9271 
9272  @staticmethod
9273  def get_from(o):
9274  return _object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o)
9275 
9276 
9277 # Register HarmonicUpperBoundSphereDiameterPairScore in _IMP_core:
9278 _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_swigregister(HarmonicUpperBoundSphereDiameterPairScore)
9279 class HarmonicSphereDistancePairScore(IMP.PairScore):
9280  r"""Proxy of C++ IMP::core::HarmonicSphereDistancePairScore class."""
9281 
9282  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9283 
9284  def __init__(self, *args):
9285  r"""
9286  __init__(HarmonicSphereDistancePairScore self, double x0, double k, std::string name="HarmonicSphereDistancePairScore%1%") -> HarmonicSphereDistancePairScore
9287  __init__(HarmonicSphereDistancePairScore self) -> HarmonicSphereDistancePairScore
9288  """
9289  _IMP_core.HarmonicSphereDistancePairScore_swiginit(self, _IMP_core.new_HarmonicSphereDistancePairScore(*args))
9290 
9291  def do_get_inputs(self, m, pis):
9292  r"""do_get_inputs(HarmonicSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9293  return _IMP_core.HarmonicSphereDistancePairScore_do_get_inputs(self, m, pis)
9294 
9295  def get_version_info(self):
9296  r"""get_version_info(HarmonicSphereDistancePairScore self) -> VersionInfo"""
9297  return _IMP_core.HarmonicSphereDistancePairScore_get_version_info(self)
9298  __swig_destroy__ = _IMP_core.delete_HarmonicSphereDistancePairScore
9299 
9300  def __str__(self):
9301  r"""__str__(HarmonicSphereDistancePairScore self) -> std::string"""
9302  return _IMP_core.HarmonicSphereDistancePairScore___str__(self)
9303 
9304  def __repr__(self):
9305  r"""__repr__(HarmonicSphereDistancePairScore self) -> std::string"""
9306  return _IMP_core.HarmonicSphereDistancePairScore___repr__(self)
9307 
9308  @staticmethod
9309  def get_from(o):
9310  return _object_cast_to_HarmonicSphereDistancePairScore(o)
9311 
9312 
9313  def _get_as_binary(self):
9314  r"""_get_as_binary(HarmonicSphereDistancePairScore self) -> PyObject *"""
9315  return _IMP_core.HarmonicSphereDistancePairScore__get_as_binary(self)
9316 
9317  def _set_from_binary(self, p):
9318  r"""_set_from_binary(HarmonicSphereDistancePairScore self, PyObject * p)"""
9319  return _IMP_core.HarmonicSphereDistancePairScore__set_from_binary(self, p)
9320 
9321  def __getstate__(self):
9322  p = self._get_as_binary()
9323  if len(self.__dict__) > 1:
9324  d = self.__dict__.copy()
9325  del d['this']
9326  p = (d, p)
9327  return p
9328 
9329  def __setstate__(self, p):
9330  if not hasattr(self, 'this'):
9331  self.__init__()
9332  if isinstance(p, tuple):
9333  d, p = p
9334  self.__dict__.update(d)
9335  return self._set_from_binary(p)
9336 
9337 
9338 # Register HarmonicSphereDistancePairScore in _IMP_core:
9339 _IMP_core.HarmonicSphereDistancePairScore_swigregister(HarmonicSphereDistancePairScore)
9340 class NormalizedSphereDistancePairScore(IMP.PairScore):
9341  r"""Proxy of C++ IMP::core::NormalizedSphereDistancePairScore class."""
9342 
9343  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9344 
9345  def __init__(self, *args):
9346  r"""__init__(NormalizedSphereDistancePairScore self, UnaryFunction f, FloatKey radius=IMP::FloatKey("radius")) -> NormalizedSphereDistancePairScore"""
9347  _IMP_core.NormalizedSphereDistancePairScore_swiginit(self, _IMP_core.new_NormalizedSphereDistancePairScore(*args))
9348 
9349  def do_get_inputs(self, m, pis):
9350  r"""do_get_inputs(NormalizedSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9351  return _IMP_core.NormalizedSphereDistancePairScore_do_get_inputs(self, m, pis)
9352 
9353  def get_version_info(self):
9354  r"""get_version_info(NormalizedSphereDistancePairScore self) -> VersionInfo"""
9355  return _IMP_core.NormalizedSphereDistancePairScore_get_version_info(self)
9356  __swig_destroy__ = _IMP_core.delete_NormalizedSphereDistancePairScore
9357 
9358  def __str__(self):
9359  r"""__str__(NormalizedSphereDistancePairScore self) -> std::string"""
9360  return _IMP_core.NormalizedSphereDistancePairScore___str__(self)
9361 
9362  def __repr__(self):
9363  r"""__repr__(NormalizedSphereDistancePairScore self) -> std::string"""
9364  return _IMP_core.NormalizedSphereDistancePairScore___repr__(self)
9365 
9366  @staticmethod
9367  def get_from(o):
9368  return _object_cast_to_NormalizedSphereDistancePairScore(o)
9369 
9370 
9371 # Register NormalizedSphereDistancePairScore in _IMP_core:
9372 _IMP_core.NormalizedSphereDistancePairScore_swigregister(NormalizedSphereDistancePairScore)
9373 class WeightedSphereDistancePairScore(IMP.PairScore):
9374  r"""Proxy of C++ IMP::core::WeightedSphereDistancePairScore class."""
9375 
9376  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9377 
9378  def __init__(self, *args):
9379  r"""__init__(WeightedSphereDistancePairScore self, UnaryFunction f, FloatKey weight, FloatKey radius=IMP::FloatKey("radius")) -> WeightedSphereDistancePairScore"""
9380  _IMP_core.WeightedSphereDistancePairScore_swiginit(self, _IMP_core.new_WeightedSphereDistancePairScore(*args))
9381 
9382  def do_get_inputs(self, m, pis):
9383  r"""do_get_inputs(WeightedSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9384  return _IMP_core.WeightedSphereDistancePairScore_do_get_inputs(self, m, pis)
9385 
9386  def get_version_info(self):
9387  r"""get_version_info(WeightedSphereDistancePairScore self) -> VersionInfo"""
9388  return _IMP_core.WeightedSphereDistancePairScore_get_version_info(self)
9389  __swig_destroy__ = _IMP_core.delete_WeightedSphereDistancePairScore
9390 
9391  def __str__(self):
9392  r"""__str__(WeightedSphereDistancePairScore self) -> std::string"""
9393  return _IMP_core.WeightedSphereDistancePairScore___str__(self)
9394 
9395  def __repr__(self):
9396  r"""__repr__(WeightedSphereDistancePairScore self) -> std::string"""
9397  return _IMP_core.WeightedSphereDistancePairScore___repr__(self)
9398 
9399  @staticmethod
9400  def get_from(o):
9401  return _object_cast_to_WeightedSphereDistancePairScore(o)
9402 
9403 
9404 # Register WeightedSphereDistancePairScore in _IMP_core:
9405 _IMP_core.WeightedSphereDistancePairScore_swigregister(WeightedSphereDistancePairScore)
9406 class SoftSpherePairScore(IMP.PairScore):
9407  r"""Proxy of C++ IMP::core::SoftSpherePairScore class."""
9408 
9409  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9410 
9411  def __init__(self, *args):
9412  r"""
9413  __init__(SoftSpherePairScore self, double k, std::string name="SoftSpherePairScore%1%") -> SoftSpherePairScore
9414  __init__(SoftSpherePairScore self) -> SoftSpherePairScore
9415  """
9416  _IMP_core.SoftSpherePairScore_swiginit(self, _IMP_core.new_SoftSpherePairScore(*args))
9417 
9418  def do_get_inputs(self, m, pis):
9419  r"""do_get_inputs(SoftSpherePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9420  return _IMP_core.SoftSpherePairScore_do_get_inputs(self, m, pis)
9421 
9422  def get_version_info(self):
9423  r"""get_version_info(SoftSpherePairScore self) -> VersionInfo"""
9424  return _IMP_core.SoftSpherePairScore_get_version_info(self)
9425  __swig_destroy__ = _IMP_core.delete_SoftSpherePairScore
9426 
9427  def __str__(self):
9428  r"""__str__(SoftSpherePairScore self) -> std::string"""
9429  return _IMP_core.SoftSpherePairScore___str__(self)
9430 
9431  def __repr__(self):
9432  r"""__repr__(SoftSpherePairScore self) -> std::string"""
9433  return _IMP_core.SoftSpherePairScore___repr__(self)
9434 
9435  @staticmethod
9436  def get_from(o):
9437  return _object_cast_to_SoftSpherePairScore(o)
9438 
9439 
9440  def _get_as_binary(self):
9441  r"""_get_as_binary(SoftSpherePairScore self) -> PyObject *"""
9442  return _IMP_core.SoftSpherePairScore__get_as_binary(self)
9443 
9444  def _set_from_binary(self, p):
9445  r"""_set_from_binary(SoftSpherePairScore self, PyObject * p)"""
9446  return _IMP_core.SoftSpherePairScore__set_from_binary(self, p)
9447 
9448  def __getstate__(self):
9449  p = self._get_as_binary()
9450  if len(self.__dict__) > 1:
9451  d = self.__dict__.copy()
9452  del d['this']
9453  p = (d, p)
9454  return p
9455 
9456  def __setstate__(self, p):
9457  if not hasattr(self, 'this'):
9458  self.__init__()
9459  if isinstance(p, tuple):
9460  d, p = p
9461  self.__dict__.update(d)
9462  return self._set_from_binary(p)
9463 
9464 
9465 # Register SoftSpherePairScore in _IMP_core:
9466 _IMP_core.SoftSpherePairScore_swigregister(SoftSpherePairScore)
9467 class SurfaceDistancePairScore(IMP.PairScore):
9468  r"""Proxy of C++ IMP::core::SurfaceDistancePairScore class."""
9469 
9470  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9471 
9472  def __init__(self, *args):
9473  r"""__init__(SurfaceDistancePairScore self, UnaryFunction uf, std::string name="SurfaceDistancePairScore%1%") -> SurfaceDistancePairScore"""
9474  _IMP_core.SurfaceDistancePairScore_swiginit(self, _IMP_core.new_SurfaceDistancePairScore(*args))
9475 
9476  def do_get_inputs(self, m, pis):
9477  r"""do_get_inputs(SurfaceDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9478  return _IMP_core.SurfaceDistancePairScore_do_get_inputs(self, m, pis)
9479 
9480  def get_version_info(self):
9481  r"""get_version_info(SurfaceDistancePairScore self) -> VersionInfo"""
9482  return _IMP_core.SurfaceDistancePairScore_get_version_info(self)
9483  __swig_destroy__ = _IMP_core.delete_SurfaceDistancePairScore
9484 
9485  def __str__(self):
9486  r"""__str__(SurfaceDistancePairScore self) -> std::string"""
9487  return _IMP_core.SurfaceDistancePairScore___str__(self)
9488 
9489  def __repr__(self):
9490  r"""__repr__(SurfaceDistancePairScore self) -> std::string"""
9491  return _IMP_core.SurfaceDistancePairScore___repr__(self)
9492 
9493  @staticmethod
9494  def get_from(o):
9495  return _object_cast_to_SurfaceDistancePairScore(o)
9496 
9497 
9498 # Register SurfaceDistancePairScore in _IMP_core:
9499 _IMP_core.SurfaceDistancePairScore_swigregister(SurfaceDistancePairScore)
9500 class SurfaceHeightPairScore(IMP.PairScore):
9501  r"""Proxy of C++ IMP::core::SurfaceHeightPairScore class."""
9502 
9503  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9504 
9505  def __init__(self, *args):
9506  r"""__init__(SurfaceHeightPairScore self, UnaryFunction uf, std::string name="SurfaceHeightPairScore%1%") -> SurfaceHeightPairScore"""
9507  _IMP_core.SurfaceHeightPairScore_swiginit(self, _IMP_core.new_SurfaceHeightPairScore(*args))
9508 
9509  def do_get_inputs(self, m, pis):
9510  r"""do_get_inputs(SurfaceHeightPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9511  return _IMP_core.SurfaceHeightPairScore_do_get_inputs(self, m, pis)
9512 
9513  def get_version_info(self):
9514  r"""get_version_info(SurfaceHeightPairScore self) -> VersionInfo"""
9515  return _IMP_core.SurfaceHeightPairScore_get_version_info(self)
9516  __swig_destroy__ = _IMP_core.delete_SurfaceHeightPairScore
9517 
9518  def __str__(self):
9519  r"""__str__(SurfaceHeightPairScore self) -> std::string"""
9520  return _IMP_core.SurfaceHeightPairScore___str__(self)
9521 
9522  def __repr__(self):
9523  r"""__repr__(SurfaceHeightPairScore self) -> std::string"""
9524  return _IMP_core.SurfaceHeightPairScore___repr__(self)
9525 
9526  @staticmethod
9527  def get_from(o):
9528  return _object_cast_to_SurfaceHeightPairScore(o)
9529 
9530 
9531 # Register SurfaceHeightPairScore in _IMP_core:
9532 _IMP_core.SurfaceHeightPairScore_swigregister(SurfaceHeightPairScore)
9533 class SurfaceDepthPairScore(IMP.PairScore):
9534  r"""Proxy of C++ IMP::core::SurfaceDepthPairScore class."""
9535 
9536  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9537 
9538  def __init__(self, *args):
9539  r"""__init__(SurfaceDepthPairScore self, UnaryFunction uf, std::string name="SurfaceDepthPairScore%1%") -> SurfaceDepthPairScore"""
9540  _IMP_core.SurfaceDepthPairScore_swiginit(self, _IMP_core.new_SurfaceDepthPairScore(*args))
9541 
9542  def do_get_inputs(self, m, pis):
9543  r"""do_get_inputs(SurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9544  return _IMP_core.SurfaceDepthPairScore_do_get_inputs(self, m, pis)
9545 
9546  def get_version_info(self):
9547  r"""get_version_info(SurfaceDepthPairScore self) -> VersionInfo"""
9548  return _IMP_core.SurfaceDepthPairScore_get_version_info(self)
9549  __swig_destroy__ = _IMP_core.delete_SurfaceDepthPairScore
9550 
9551  def __str__(self):
9552  r"""__str__(SurfaceDepthPairScore self) -> std::string"""
9553  return _IMP_core.SurfaceDepthPairScore___str__(self)
9554 
9555  def __repr__(self):
9556  r"""__repr__(SurfaceDepthPairScore self) -> std::string"""
9557  return _IMP_core.SurfaceDepthPairScore___repr__(self)
9558 
9559  @staticmethod
9560  def get_from(o):
9561  return _object_cast_to_SurfaceDepthPairScore(o)
9562 
9563 
9564 # Register SurfaceDepthPairScore in _IMP_core:
9565 _IMP_core.SurfaceDepthPairScore_swigregister(SurfaceDepthPairScore)
9566 class HarmonicSurfaceDistancePairScore(IMP.PairScore):
9567  r"""Proxy of C++ IMP::core::HarmonicSurfaceDistancePairScore class."""
9568 
9569  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9570 
9571  def __init__(self, *args):
9572  r"""__init__(HarmonicSurfaceDistancePairScore self, double x0, double k, std::string name="HarmonicSurfaceDistancePairScore%1%") -> HarmonicSurfaceDistancePairScore"""
9573  _IMP_core.HarmonicSurfaceDistancePairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceDistancePairScore(*args))
9574 
9575  def do_get_inputs(self, m, pis):
9576  r"""do_get_inputs(HarmonicSurfaceDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9577  return _IMP_core.HarmonicSurfaceDistancePairScore_do_get_inputs(self, m, pis)
9578 
9579  def get_version_info(self):
9580  r"""get_version_info(HarmonicSurfaceDistancePairScore self) -> VersionInfo"""
9581  return _IMP_core.HarmonicSurfaceDistancePairScore_get_version_info(self)
9582  __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceDistancePairScore
9583 
9584  def __str__(self):
9585  r"""__str__(HarmonicSurfaceDistancePairScore self) -> std::string"""
9586  return _IMP_core.HarmonicSurfaceDistancePairScore___str__(self)
9587 
9588  def __repr__(self):
9589  r"""__repr__(HarmonicSurfaceDistancePairScore self) -> std::string"""
9590  return _IMP_core.HarmonicSurfaceDistancePairScore___repr__(self)
9591 
9592  @staticmethod
9593  def get_from(o):
9594  return _object_cast_to_HarmonicSurfaceDistancePairScore(o)
9595 
9596 
9597 # Register HarmonicSurfaceDistancePairScore in _IMP_core:
9598 _IMP_core.HarmonicSurfaceDistancePairScore_swigregister(HarmonicSurfaceDistancePairScore)
9599 class HarmonicSurfaceHeightPairScore(IMP.PairScore):
9600  r"""Proxy of C++ IMP::core::HarmonicSurfaceHeightPairScore class."""
9601 
9602  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9603 
9604  def __init__(self, *args):
9605  r"""__init__(HarmonicSurfaceHeightPairScore self, double x0, double k, std::string name="HarmonicSurfaceHeightPairScore%1%") -> HarmonicSurfaceHeightPairScore"""
9606  _IMP_core.HarmonicSurfaceHeightPairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceHeightPairScore(*args))
9607 
9608  def do_get_inputs(self, m, pis):
9609  r"""do_get_inputs(HarmonicSurfaceHeightPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9610  return _IMP_core.HarmonicSurfaceHeightPairScore_do_get_inputs(self, m, pis)
9611 
9612  def get_version_info(self):
9613  r"""get_version_info(HarmonicSurfaceHeightPairScore self) -> VersionInfo"""
9614  return _IMP_core.HarmonicSurfaceHeightPairScore_get_version_info(self)
9615  __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceHeightPairScore
9616 
9617  def __str__(self):
9618  r"""__str__(HarmonicSurfaceHeightPairScore self) -> std::string"""
9619  return _IMP_core.HarmonicSurfaceHeightPairScore___str__(self)
9620 
9621  def __repr__(self):
9622  r"""__repr__(HarmonicSurfaceHeightPairScore self) -> std::string"""
9623  return _IMP_core.HarmonicSurfaceHeightPairScore___repr__(self)
9624 
9625  @staticmethod
9626  def get_from(o):
9627  return _object_cast_to_HarmonicSurfaceHeightPairScore(o)
9628 
9629 
9630 # Register HarmonicSurfaceHeightPairScore in _IMP_core:
9631 _IMP_core.HarmonicSurfaceHeightPairScore_swigregister(HarmonicSurfaceHeightPairScore)
9632 class HarmonicSurfaceDepthPairScore(IMP.PairScore):
9633  r"""Proxy of C++ IMP::core::HarmonicSurfaceDepthPairScore class."""
9634 
9635  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9636 
9637  def __init__(self, *args):
9638  r"""__init__(HarmonicSurfaceDepthPairScore self, double x0, double k, std::string name="HarmonicSurfaceDepthPairScore%1%") -> HarmonicSurfaceDepthPairScore"""
9639  _IMP_core.HarmonicSurfaceDepthPairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceDepthPairScore(*args))
9640 
9641  def do_get_inputs(self, m, pis):
9642  r"""do_get_inputs(HarmonicSurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9643  return _IMP_core.HarmonicSurfaceDepthPairScore_do_get_inputs(self, m, pis)
9644 
9645  def get_version_info(self):
9646  r"""get_version_info(HarmonicSurfaceDepthPairScore self) -> VersionInfo"""
9647  return _IMP_core.HarmonicSurfaceDepthPairScore_get_version_info(self)
9648  __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceDepthPairScore
9649 
9650  def __str__(self):
9651  r"""__str__(HarmonicSurfaceDepthPairScore self) -> std::string"""
9652  return _IMP_core.HarmonicSurfaceDepthPairScore___str__(self)
9653 
9654  def __repr__(self):
9655  r"""__repr__(HarmonicSurfaceDepthPairScore self) -> std::string"""
9656  return _IMP_core.HarmonicSurfaceDepthPairScore___repr__(self)
9657 
9658  @staticmethod
9659  def get_from(o):
9660  return _object_cast_to_HarmonicSurfaceDepthPairScore(o)
9661 
9662 
9663 # Register HarmonicSurfaceDepthPairScore in _IMP_core:
9664 _IMP_core.HarmonicSurfaceDepthPairScore_swigregister(HarmonicSurfaceDepthPairScore)
9665 class SoftSuperSurfacePairScore(IMP.PairScore):
9666  r"""Proxy of C++ IMP::core::SoftSuperSurfacePairScore class."""
9667 
9668  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9669 
9670  def __init__(self, *args):
9671  r"""__init__(SoftSuperSurfacePairScore self, double k, std::string name="SoftSuperSurfacePairScore%1%") -> SoftSuperSurfacePairScore"""
9672  _IMP_core.SoftSuperSurfacePairScore_swiginit(self, _IMP_core.new_SoftSuperSurfacePairScore(*args))
9673 
9674  def do_get_inputs(self, m, pis):
9675  r"""do_get_inputs(SoftSuperSurfacePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9676  return _IMP_core.SoftSuperSurfacePairScore_do_get_inputs(self, m, pis)
9677 
9678  def get_version_info(self):
9679  r"""get_version_info(SoftSuperSurfacePairScore self) -> VersionInfo"""
9680  return _IMP_core.SoftSuperSurfacePairScore_get_version_info(self)
9681  __swig_destroy__ = _IMP_core.delete_SoftSuperSurfacePairScore
9682 
9683  def __str__(self):
9684  r"""__str__(SoftSuperSurfacePairScore self) -> std::string"""
9685  return _IMP_core.SoftSuperSurfacePairScore___str__(self)
9686 
9687  def __repr__(self):
9688  r"""__repr__(SoftSuperSurfacePairScore self) -> std::string"""
9689  return _IMP_core.SoftSuperSurfacePairScore___repr__(self)
9690 
9691  @staticmethod
9692  def get_from(o):
9693  return _object_cast_to_SoftSuperSurfacePairScore(o)
9694 
9695 
9696 # Register SoftSuperSurfacePairScore in _IMP_core:
9697 _IMP_core.SoftSuperSurfacePairScore_swigregister(SoftSuperSurfacePairScore)
9698 class SoftSubSurfacePairScore(IMP.PairScore):
9699  r"""Proxy of C++ IMP::core::SoftSubSurfacePairScore class."""
9700 
9701  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9702 
9703  def __init__(self, *args):
9704  r"""__init__(SoftSubSurfacePairScore self, double k, std::string name="SoftSubSurfacePairScore%1%") -> SoftSubSurfacePairScore"""
9705  _IMP_core.SoftSubSurfacePairScore_swiginit(self, _IMP_core.new_SoftSubSurfacePairScore(*args))
9706 
9707  def do_get_inputs(self, m, pis):
9708  r"""do_get_inputs(SoftSubSurfacePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9709  return _IMP_core.SoftSubSurfacePairScore_do_get_inputs(self, m, pis)
9710 
9711  def get_version_info(self):
9712  r"""get_version_info(SoftSubSurfacePairScore self) -> VersionInfo"""
9713  return _IMP_core.SoftSubSurfacePairScore_get_version_info(self)
9714  __swig_destroy__ = _IMP_core.delete_SoftSubSurfacePairScore
9715 
9716  def __str__(self):
9717  r"""__str__(SoftSubSurfacePairScore self) -> std::string"""
9718  return _IMP_core.SoftSubSurfacePairScore___str__(self)
9719 
9720  def __repr__(self):
9721  r"""__repr__(SoftSubSurfacePairScore self) -> std::string"""
9722  return _IMP_core.SoftSubSurfacePairScore___repr__(self)
9723 
9724  @staticmethod
9725  def get_from(o):
9726  return _object_cast_to_SoftSubSurfacePairScore(o)
9727 
9728 
9729 # Register SoftSubSurfacePairScore in _IMP_core:
9730 _IMP_core.SoftSubSurfacePairScore_swigregister(SoftSubSurfacePairScore)
9731 class SurfaceTetheredChain(IMP.UnaryFunction):
9732  r"""Proxy of C++ IMP::core::SurfaceTetheredChain class."""
9733 
9734  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9735 
9736  def __init__(self, link_num, link_length):
9737  r"""__init__(SurfaceTetheredChain self, int link_num, double link_length) -> SurfaceTetheredChain"""
9738  _IMP_core.SurfaceTetheredChain_swiginit(self, _IMP_core.new_SurfaceTetheredChain(link_num, link_length))
9739 
9740  def get_version_info(self):
9741  r"""get_version_info(SurfaceTetheredChain self) -> VersionInfo"""
9742  return _IMP_core.SurfaceTetheredChain_get_version_info(self)
9743  __swig_destroy__ = _IMP_core.delete_SurfaceTetheredChain
9744 
9745  def get_link_number(self):
9746  r"""get_link_number(SurfaceTetheredChain self) -> int"""
9747  return _IMP_core.SurfaceTetheredChain_get_link_number(self)
9748 
9749  def get_link_length(self):
9750  r"""get_link_length(SurfaceTetheredChain self) -> double"""
9751  return _IMP_core.SurfaceTetheredChain_get_link_length(self)
9752 
9753  def set_link_number(self, N):
9754  r"""set_link_number(SurfaceTetheredChain self, int N)"""
9755  return _IMP_core.SurfaceTetheredChain_set_link_number(self, N)
9756 
9757  def set_link_length(self, b):
9758  r"""set_link_length(SurfaceTetheredChain self, double b)"""
9759  return _IMP_core.SurfaceTetheredChain_set_link_length(self, b)
9760 
9761  def get_distance_at_minimum(self):
9762  r"""get_distance_at_minimum(SurfaceTetheredChain self) -> double"""
9763  return _IMP_core.SurfaceTetheredChain_get_distance_at_minimum(self)
9764 
9765  def get_average_distance(self):
9766  r"""get_average_distance(SurfaceTetheredChain self) -> double"""
9767  return _IMP_core.SurfaceTetheredChain_get_average_distance(self)
9768 
9769  def __str__(self):
9770  r"""__str__(SurfaceTetheredChain self) -> std::string"""
9771  return _IMP_core.SurfaceTetheredChain___str__(self)
9772 
9773  def __repr__(self):
9774  r"""__repr__(SurfaceTetheredChain self) -> std::string"""
9775  return _IMP_core.SurfaceTetheredChain___repr__(self)
9776 
9777  @staticmethod
9778  def get_from(o):
9779  return _object_cast_to_SurfaceTetheredChain(o)
9780 
9781 
9782 # Register SurfaceTetheredChain in _IMP_core:
9783 _IMP_core.SurfaceTetheredChain_swigregister(SurfaceTetheredChain)
9784 class SurfaceSymmetryConstraint(IMP.Constraint):
9785  r"""Proxy of C++ IMP::core::SurfaceSymmetryConstraint class."""
9786 
9787  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9788 
9789  def __init__(self, m, ss, rbs):
9790  r"""__init__(SurfaceSymmetryConstraint self, Model m, IMP::ParticleIndexPair const & ss, IMP::ParticleIndexPair const & rbs) -> SurfaceSymmetryConstraint"""
9791  _IMP_core.SurfaceSymmetryConstraint_swiginit(self, _IMP_core.new_SurfaceSymmetryConstraint(m, ss, rbs))
9792 
9793  def do_get_inputs(self):
9794  r"""do_get_inputs(SurfaceSymmetryConstraint self) -> IMP::ModelObjectsTemp"""
9795  return _IMP_core.SurfaceSymmetryConstraint_do_get_inputs(self)
9796 
9797  def do_get_outputs(self):
9798  r"""do_get_outputs(SurfaceSymmetryConstraint self) -> IMP::ModelObjectsTemp"""
9799  return _IMP_core.SurfaceSymmetryConstraint_do_get_outputs(self)
9800 
9801  def get_version_info(self):
9802  r"""get_version_info(SurfaceSymmetryConstraint self) -> VersionInfo"""
9803  return _IMP_core.SurfaceSymmetryConstraint_get_version_info(self)
9804  __swig_destroy__ = _IMP_core.delete_SurfaceSymmetryConstraint
9805 
9806  def __str__(self):
9807  r"""__str__(SurfaceSymmetryConstraint self) -> std::string"""
9808  return _IMP_core.SurfaceSymmetryConstraint___str__(self)
9809 
9810  def __repr__(self):
9811  r"""__repr__(SurfaceSymmetryConstraint self) -> std::string"""
9812  return _IMP_core.SurfaceSymmetryConstraint___repr__(self)
9813 
9814  @staticmethod
9815  def get_from(o):
9816  return _object_cast_to_SurfaceSymmetryConstraint(o)
9817 
9818 
9819 # Register SurfaceSymmetryConstraint in _IMP_core:
9820 _IMP_core.SurfaceSymmetryConstraint_swigregister(SurfaceSymmetryConstraint)
9821 class SteepestDescent(IMP.AttributeOptimizer):
9822  r"""Proxy of C++ IMP::core::SteepestDescent class."""
9823 
9824  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9825 
9826  def __init__(self, *args):
9827  r"""__init__(SteepestDescent self, Model m, std::string name="SteepestDescent%1%") -> SteepestDescent"""
9828  _IMP_core.SteepestDescent_swiginit(self, _IMP_core.new_SteepestDescent(*args))
9829 
9830  def do_optimize(self, max_steps):
9831  r"""do_optimize(SteepestDescent self, unsigned int max_steps) -> IMP::Float"""
9832  return _IMP_core.SteepestDescent_do_optimize(self, max_steps)
9833 
9834  def get_version_info(self):
9835  r"""get_version_info(SteepestDescent self) -> VersionInfo"""
9836  return _IMP_core.SteepestDescent_get_version_info(self)
9837  __swig_destroy__ = _IMP_core.delete_SteepestDescent
9838 
9839  def set_threshold(self, t):
9840  r"""set_threshold(SteepestDescent self, IMP::Float t)"""
9841  return _IMP_core.SteepestDescent_set_threshold(self, t)
9842 
9843  def set_step_size(self, t):
9844  r"""set_step_size(SteepestDescent self, IMP::Float t)"""
9845  return _IMP_core.SteepestDescent_set_step_size(self, t)
9846 
9847  def set_maximum_step_size(self, t):
9848  r"""set_maximum_step_size(SteepestDescent self, IMP::Float t)"""
9849  return _IMP_core.SteepestDescent_set_maximum_step_size(self, t)
9850 
9851  def __str__(self):
9852  r"""__str__(SteepestDescent self) -> std::string"""
9853  return _IMP_core.SteepestDescent___str__(self)
9854 
9855  def __repr__(self):
9856  r"""__repr__(SteepestDescent self) -> std::string"""
9857  return _IMP_core.SteepestDescent___repr__(self)
9858 
9859  @staticmethod
9860  def get_from(o):
9861  return _object_cast_to_SteepestDescent(o)
9862 
9863 
9864 # Register SteepestDescent in _IMP_core:
9865 _IMP_core.SteepestDescent_swigregister(SteepestDescent)
9866 class TransformedDistancePairScore(IMP.PairScore):
9867  r"""Proxy of C++ IMP::core::TransformedDistancePairScore class."""
9868 
9869  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9870 
9871  def __init__(self, f, transformation):
9872  r"""__init__(TransformedDistancePairScore self, UnaryFunction f, Transformation3D transformation) -> TransformedDistancePairScore"""
9873  _IMP_core.TransformedDistancePairScore_swiginit(self, _IMP_core.new_TransformedDistancePairScore(f, transformation))
9874 
9875  def set_transformation(self, rot):
9876  r"""set_transformation(TransformedDistancePairScore self, Transformation3D rot)"""
9877  return _IMP_core.TransformedDistancePairScore_set_transformation(self, rot)
9878 
9879  def do_get_inputs(self, m, pis):
9880  r"""do_get_inputs(TransformedDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9881  return _IMP_core.TransformedDistancePairScore_do_get_inputs(self, m, pis)
9882 
9883  def get_version_info(self):
9884  r"""get_version_info(TransformedDistancePairScore self) -> VersionInfo"""
9885  return _IMP_core.TransformedDistancePairScore_get_version_info(self)
9886  __swig_destroy__ = _IMP_core.delete_TransformedDistancePairScore
9887 
9888  def __str__(self):
9889  r"""__str__(TransformedDistancePairScore self) -> std::string"""
9890  return _IMP_core.TransformedDistancePairScore___str__(self)
9891 
9892  def __repr__(self):
9893  r"""__repr__(TransformedDistancePairScore self) -> std::string"""
9894  return _IMP_core.TransformedDistancePairScore___repr__(self)
9895 
9896  @staticmethod
9897  def get_from(o):
9898  return _object_cast_to_TransformedDistancePairScore(o)
9899 
9900 
9901 # Register TransformedDistancePairScore in _IMP_core:
9902 _IMP_core.TransformedDistancePairScore_swigregister(TransformedDistancePairScore)
9903 class TypedPairScore(IMP.PairScore):
9904  r"""Proxy of C++ IMP::core::TypedPairScore class."""
9905 
9906  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9907 
9908  def __init__(self, typekey, allow_invalid_types=True):
9909  r"""__init__(TypedPairScore self, IntKey typekey, bool allow_invalid_types=True) -> TypedPairScore"""
9910  _IMP_core.TypedPairScore_swiginit(self, _IMP_core.new_TypedPairScore(typekey, allow_invalid_types))
9911 
9912  def set_particle_type(self, arg2):
9913  r"""set_particle_type(TypedPairScore self, Particle arg2)"""
9914  return _IMP_core.TypedPairScore_set_particle_type(self, arg2)
9915 
9916  def set_pair_score(self, ps, atype, btype):
9917  r"""set_pair_score(TypedPairScore self, PairScore ps, IMP::Int atype, IMP::Int btype)"""
9918  return _IMP_core.TypedPairScore_set_pair_score(self, ps, atype, btype)
9919 
9920  def do_get_inputs(self, m, pis):
9921  r"""do_get_inputs(TypedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9922  return _IMP_core.TypedPairScore_do_get_inputs(self, m, pis)
9923 
9924  def get_version_info(self):
9925  r"""get_version_info(TypedPairScore self) -> VersionInfo"""
9926  return _IMP_core.TypedPairScore_get_version_info(self)
9927  __swig_destroy__ = _IMP_core.delete_TypedPairScore
9928 
9929  def __str__(self):
9930  r"""__str__(TypedPairScore self) -> std::string"""
9931  return _IMP_core.TypedPairScore___str__(self)
9932 
9933  def __repr__(self):
9934  r"""__repr__(TypedPairScore self) -> std::string"""
9935  return _IMP_core.TypedPairScore___repr__(self)
9936 
9937  @staticmethod
9938  def get_from(o):
9939  return _object_cast_to_TypedPairScore(o)
9940 
9941 
9942 # Register TypedPairScore in _IMP_core:
9943 _IMP_core.TypedPairScore_swigregister(TypedPairScore)
9944 class RigidBodyDistancePairScore(KClosePairsPairScore):
9945  r"""Proxy of C++ IMP::core::RigidBodyDistancePairScore class."""
9946 
9947  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9948 
9949  def __init__(self, ps, r):
9950  r"""__init__(RigidBodyDistancePairScore self, PairScore ps, Refiner r) -> RigidBodyDistancePairScore"""
9951  _IMP_core.RigidBodyDistancePairScore_swiginit(self, _IMP_core.new_RigidBodyDistancePairScore(ps, r))
9952 
9953  def __str__(self):
9954  r"""__str__(RigidBodyDistancePairScore self) -> std::string"""
9955  return _IMP_core.RigidBodyDistancePairScore___str__(self)
9956 
9957  def __repr__(self):
9958  r"""__repr__(RigidBodyDistancePairScore self) -> std::string"""
9959  return _IMP_core.RigidBodyDistancePairScore___repr__(self)
9960 
9961  @staticmethod
9962  def get_from(o):
9963  return _object_cast_to_RigidBodyDistancePairScore(o)
9964 
9965  __swig_destroy__ = _IMP_core.delete_RigidBodyDistancePairScore
9966 
9967 # Register RigidBodyDistancePairScore in _IMP_core:
9968 _IMP_core.RigidBodyDistancePairScore_swigregister(RigidBodyDistancePairScore)
9969 class RigidBodyAnglePairScore(IMP.PairScore):
9970  r"""Proxy of C++ IMP::core::RigidBodyAnglePairScore class."""
9971 
9972  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9973 
9974  def __init__(self, f):
9975  r"""__init__(RigidBodyAnglePairScore self, UnaryFunction f) -> RigidBodyAnglePairScore"""
9976  _IMP_core.RigidBodyAnglePairScore_swiginit(self, _IMP_core.new_RigidBodyAnglePairScore(f))
9977 
9978  def do_get_inputs(self, m, pis):
9979  r"""do_get_inputs(RigidBodyAnglePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9980  return _IMP_core.RigidBodyAnglePairScore_do_get_inputs(self, m, pis)
9981 
9982  def get_version_info(self):
9983  r"""get_version_info(RigidBodyAnglePairScore self) -> VersionInfo"""
9984  return _IMP_core.RigidBodyAnglePairScore_get_version_info(self)
9985  __swig_destroy__ = _IMP_core.delete_RigidBodyAnglePairScore
9986 
9987  def __str__(self):
9988  r"""__str__(RigidBodyAnglePairScore self) -> std::string"""
9989  return _IMP_core.RigidBodyAnglePairScore___str__(self)
9990 
9991  def __repr__(self):
9992  r"""__repr__(RigidBodyAnglePairScore self) -> std::string"""
9993  return _IMP_core.RigidBodyAnglePairScore___repr__(self)
9994 
9995  @staticmethod
9996  def get_from(o):
9997  return _object_cast_to_RigidBodyAnglePairScore(o)
9998 
9999 
10000 # Register RigidBodyAnglePairScore in _IMP_core:
10001 _IMP_core.RigidBodyAnglePairScore_swigregister(RigidBodyAnglePairScore)
10002 class TableRefiner(IMP.Refiner):
10003  r"""Proxy of C++ IMP::core::TableRefiner class."""
10004 
10005  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10006 
10007  def __init__(self):
10008  r"""__init__(TableRefiner self) -> TableRefiner"""
10009  _IMP_core.TableRefiner_swiginit(self, _IMP_core.new_TableRefiner())
10010 
10011  def add_particle(self, p, ps):
10012  r"""add_particle(TableRefiner self, Particle p, IMP::ParticlesTemp const & ps)"""
10013  return _IMP_core.TableRefiner_add_particle(self, p, ps)
10014 
10015  def remove_particle(self, p):
10016  r"""remove_particle(TableRefiner self, Particle p)"""
10017  return _IMP_core.TableRefiner_remove_particle(self, p)
10018 
10019  def set_particle(self, p, ps):
10020  r"""set_particle(TableRefiner self, Particle p, IMP::ParticlesTemp const & ps)"""
10021  return _IMP_core.TableRefiner_set_particle(self, p, ps)
10022 
10023  def do_get_inputs(self, m, pis):
10024  r"""do_get_inputs(TableRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10025  return _IMP_core.TableRefiner_do_get_inputs(self, m, pis)
10026 
10027  def get_version_info(self):
10028  r"""get_version_info(TableRefiner self) -> VersionInfo"""
10029  return _IMP_core.TableRefiner_get_version_info(self)
10030  __swig_destroy__ = _IMP_core.delete_TableRefiner
10031 
10032  def __str__(self):
10033  r"""__str__(TableRefiner self) -> std::string"""
10034  return _IMP_core.TableRefiner___str__(self)
10035 
10036  def __repr__(self):
10037  r"""__repr__(TableRefiner self) -> std::string"""
10038  return _IMP_core.TableRefiner___repr__(self)
10039 
10040  @staticmethod
10041  def get_from(o):
10042  return _object_cast_to_TableRefiner(o)
10043 
10044 
10045 # Register TableRefiner in _IMP_core:
10046 _IMP_core.TableRefiner_swigregister(TableRefiner)
10047 LOWER = _IMP_core.LOWER
10048 
10049 BOTH = _IMP_core.BOTH
10050 
10051 UPPER = _IMP_core.UPPER
10052 
10053 class MCCGSampler(IMP.Sampler):
10054  r"""Proxy of C++ IMP::core::MCCGSampler class."""
10055 
10056  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10057 
10058  def __init__(self, *args):
10059  r"""__init__(MCCGSampler self, Model m, std::string name="MCCG Sampler %1%") -> MCCGSampler"""
10060  _IMP_core.MCCGSampler_swiginit(self, _IMP_core.new_MCCGSampler(*args))
10061 
10062  def set_bounding_box(self, bb):
10063  r"""set_bounding_box(MCCGSampler self, BoundingBox3D bb)"""
10064  return _IMP_core.MCCGSampler_set_bounding_box(self, bb)
10065 
10066  def set_number_of_attempts(self, att):
10067  r"""set_number_of_attempts(MCCGSampler self, unsigned int att)"""
10068  return _IMP_core.MCCGSampler_set_number_of_attempts(self, att)
10069 
10070  def set_number_of_monte_carlo_steps(self, cg):
10071  r"""set_number_of_monte_carlo_steps(MCCGSampler self, unsigned int cg)"""
10072  return _IMP_core.MCCGSampler_set_number_of_monte_carlo_steps(self, cg)
10073 
10074  def set_number_of_conjugate_gradient_steps(self, cg):
10075  r"""set_number_of_conjugate_gradient_steps(MCCGSampler self, unsigned int cg)"""
10076  return _IMP_core.MCCGSampler_set_number_of_conjugate_gradient_steps(self, cg)
10077 
10078  def set_max_monte_carlo_step_size(self, *args):
10079  r"""
10080  set_max_monte_carlo_step_size(MCCGSampler self, double d)
10081  set_max_monte_carlo_step_size(MCCGSampler self, FloatKey k, double d)
10082  """
10083  return _IMP_core.MCCGSampler_set_max_monte_carlo_step_size(self, *args)
10084 
10085  def set_is_refining(self, tf):
10086  r"""set_is_refining(MCCGSampler self, bool tf)"""
10087  return _IMP_core.MCCGSampler_set_is_refining(self, tf)
10088 
10089  def set_local_optimizer(self, opt):
10090  r"""set_local_optimizer(MCCGSampler self, Optimizer opt)"""
10091  return _IMP_core.MCCGSampler_set_local_optimizer(self, opt)
10092 
10093  def set_save_rejected_configurations(self, tf):
10094  r"""set_save_rejected_configurations(MCCGSampler self, bool tf)"""
10095  return _IMP_core.MCCGSampler_set_save_rejected_configurations(self, tf)
10096 
10097  def get_rejected_configurations(self):
10098  r"""get_rejected_configurations(MCCGSampler self) -> ConfigurationSet"""
10099  return _IMP_core.MCCGSampler_get_rejected_configurations(self)
10100  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)
10101  def __set_optimizer_states(self, obj): IMP._list_util.set_varlist(self.optimizer_states, obj)
10102  def __del_optimizer_states(self): IMP._list_util.del_varlist(self.optimizer_states)
10103  optimizer_states = property(__get_optimizer_states, __set_optimizer_states, __del_optimizer_states, doc="List of ##ucnames")
10104 
10105  def remove_optimizer_state(self, d):
10106  r"""remove_optimizer_state(MCCGSampler self, OptimizerState d)"""
10107  return _IMP_core.MCCGSampler_remove_optimizer_state(self, d)
10108 
10109  def _python_index_optimizer_state(self, d, start, stop):
10110  r"""_python_index_optimizer_state(MCCGSampler self, OptimizerState d, unsigned int start, unsigned int stop) -> unsigned int"""
10111  return _IMP_core.MCCGSampler__python_index_optimizer_state(self, d, start, stop)
10112 
10113  def remove_optimizer_states(self, d):
10114  r"""remove_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & d)"""
10115  return _IMP_core.MCCGSampler_remove_optimizer_states(self, d)
10116 
10117  def set_optimizer_states(self, ps):
10118  r"""set_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & ps)"""
10119  return _IMP_core.MCCGSampler_set_optimizer_states(self, ps)
10120 
10121  def set_optimizer_states_order(self, objs):
10122  r"""set_optimizer_states_order(MCCGSampler self, IMP::OptimizerStates const & objs)"""
10123  return _IMP_core.MCCGSampler_set_optimizer_states_order(self, objs)
10124 
10125  def add_optimizer_state(self, obj):
10126  r"""add_optimizer_state(MCCGSampler self, OptimizerState obj) -> unsigned int"""
10127  return _IMP_core.MCCGSampler_add_optimizer_state(self, obj)
10128 
10129  def add_optimizer_states(self, objs):
10130  r"""add_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & objs)"""
10131  return _IMP_core.MCCGSampler_add_optimizer_states(self, objs)
10132 
10133  def clear_optimizer_states(self):
10134  r"""clear_optimizer_states(MCCGSampler self)"""
10135  return _IMP_core.MCCGSampler_clear_optimizer_states(self)
10136 
10137  def get_number_of_optimizer_states(self):
10138  r"""get_number_of_optimizer_states(MCCGSampler self) -> unsigned int"""
10139  return _IMP_core.MCCGSampler_get_number_of_optimizer_states(self)
10140 
10141  def get_has_optimizer_states(self):
10142  r"""get_has_optimizer_states(MCCGSampler self) -> bool"""
10143  return _IMP_core.MCCGSampler_get_has_optimizer_states(self)
10144 
10145  def get_optimizer_state(self, i):
10146  r"""get_optimizer_state(MCCGSampler self, unsigned int i) -> OptimizerState"""
10147  return _IMP_core.MCCGSampler_get_optimizer_state(self, i)
10148 
10149  def get_optimizer_states(self):
10150  r"""get_optimizer_states(MCCGSampler self) -> IMP::OptimizerStates"""
10151  return _IMP_core.MCCGSampler_get_optimizer_states(self)
10152 
10153  def erase_optimizer_state(self, i):
10154  r"""erase_optimizer_state(MCCGSampler self, unsigned int i)"""
10155  return _IMP_core.MCCGSampler_erase_optimizer_state(self, i)
10156 
10157  def reserve_optimizer_states(self, sz):
10158  r"""reserve_optimizer_states(MCCGSampler self, unsigned int sz)"""
10159  return _IMP_core.MCCGSampler_reserve_optimizer_states(self, sz)
10160 
10161  def do_sample(self):
10162  r"""do_sample(MCCGSampler self) -> ConfigurationSet"""
10163  return _IMP_core.MCCGSampler_do_sample(self)
10164 
10165  def get_version_info(self):
10166  r"""get_version_info(MCCGSampler self) -> VersionInfo"""
10167  return _IMP_core.MCCGSampler_get_version_info(self)
10168  __swig_destroy__ = _IMP_core.delete_MCCGSampler
10169 
10170  def __str__(self):
10171  r"""__str__(MCCGSampler self) -> std::string"""
10172  return _IMP_core.MCCGSampler___str__(self)
10173 
10174  def __repr__(self):
10175  r"""__repr__(MCCGSampler self) -> std::string"""
10176  return _IMP_core.MCCGSampler___repr__(self)
10177 
10178  @staticmethod
10179  def get_from(o):
10180  return _object_cast_to_MCCGSampler(o)
10181 
10182 
10183 # Register MCCGSampler in _IMP_core:
10184 _IMP_core.MCCGSampler_swigregister(MCCGSampler)
10185 class MinimumRestraint(IMP.Restraint):
10186  r"""Proxy of C++ IMP::core::MinimumRestraint class."""
10187 
10188  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10189 
10190  def __init__(self, *args):
10191  r"""__init__(MinimumRestraint self, unsigned int num, IMP::Restraints const & rs=IMP::Restraints(), std::string name="MinimumRestraint %1%") -> MinimumRestraint"""
10192  _IMP_core.MinimumRestraint_swiginit(self, _IMP_core.new_MinimumRestraint(*args))
10193 
10194  def do_get_inputs(self):
10195  r"""do_get_inputs(MinimumRestraint self) -> IMP::ModelObjectsTemp"""
10196  return _IMP_core.MinimumRestraint_do_get_inputs(self)
10197 
10198  def get_version_info(self):
10199  r"""get_version_info(MinimumRestraint self) -> VersionInfo"""
10200  return _IMP_core.MinimumRestraint_get_version_info(self)
10201  __swig_destroy__ = _IMP_core.delete_MinimumRestraint
10202  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)
10203  def __set_restraints(self, obj): IMP._list_util.set_varlist(self.restraints, obj)
10204  def __del_restraints(self): IMP._list_util.del_varlist(self.restraints)
10205  restraints = property(__get_restraints, __set_restraints, __del_restraints, doc="List of ##ucnames")
10206 
10207  def remove_restraint(self, d):
10208  r"""remove_restraint(MinimumRestraint self, Restraint d)"""
10209  return _IMP_core.MinimumRestraint_remove_restraint(self, d)
10210 
10211  def _python_index_restraint(self, d, start, stop):
10212  r"""_python_index_restraint(MinimumRestraint self, Restraint d, unsigned int start, unsigned int stop) -> unsigned int"""
10213  return _IMP_core.MinimumRestraint__python_index_restraint(self, d, start, stop)
10214 
10215  def remove_restraints(self, d):
10216  r"""remove_restraints(MinimumRestraint self, IMP::Restraints const & d)"""
10217  return _IMP_core.MinimumRestraint_remove_restraints(self, d)
10218 
10219  def set_restraints(self, ps):
10220  r"""set_restraints(MinimumRestraint self, IMP::Restraints const & ps)"""
10221  return _IMP_core.MinimumRestraint_set_restraints(self, ps)
10222 
10223  def set_restraints_order(self, objs):
10224  r"""set_restraints_order(MinimumRestraint self, IMP::Restraints const & objs)"""
10225  return _IMP_core.MinimumRestraint_set_restraints_order(self, objs)
10226 
10227  def add_restraint(self, obj):
10228  r"""add_restraint(MinimumRestraint self, Restraint obj) -> unsigned int"""
10229  return _IMP_core.MinimumRestraint_add_restraint(self, obj)
10230 
10231  def add_restraints(self, objs):
10232  r"""add_restraints(MinimumRestraint self, IMP::Restraints const & objs)"""
10233  return _IMP_core.MinimumRestraint_add_restraints(self, objs)
10234 
10235  def clear_restraints(self):
10236  r"""clear_restraints(MinimumRestraint self)"""
10237  return _IMP_core.MinimumRestraint_clear_restraints(self)
10238 
10239  def get_number_of_restraints(self):
10240  r"""get_number_of_restraints(MinimumRestraint self) -> unsigned int"""
10241  return _IMP_core.MinimumRestraint_get_number_of_restraints(self)
10242 
10243  def get_has_restraints(self):
10244  r"""get_has_restraints(MinimumRestraint self) -> bool"""
10245  return _IMP_core.MinimumRestraint_get_has_restraints(self)
10246 
10247  def get_restraint(self, i):
10248  r"""get_restraint(MinimumRestraint self, unsigned int i) -> Restraint"""
10249  return _IMP_core.MinimumRestraint_get_restraint(self, i)
10250 
10251  def get_restraints(self):
10252  r"""get_restraints(MinimumRestraint self) -> IMP::Restraints"""
10253  return _IMP_core.MinimumRestraint_get_restraints(self)
10254 
10255  def erase_restraint(self, i):
10256  r"""erase_restraint(MinimumRestraint self, unsigned int i)"""
10257  return _IMP_core.MinimumRestraint_erase_restraint(self, i)
10258 
10259  def reserve_restraints(self, sz):
10260  r"""reserve_restraints(MinimumRestraint self, unsigned int sz)"""
10261  return _IMP_core.MinimumRestraint_reserve_restraints(self, sz)
10262 
10263  def __str__(self):
10264  r"""__str__(MinimumRestraint self) -> std::string"""
10265  return _IMP_core.MinimumRestraint___str__(self)
10266 
10267  def __repr__(self):
10268  r"""__repr__(MinimumRestraint self) -> std::string"""
10269  return _IMP_core.MinimumRestraint___repr__(self)
10270 
10271  @staticmethod
10272  def get_from(o):
10273  return _object_cast_to_MinimumRestraint(o)
10274 
10275 
10276 # Register MinimumRestraint in _IMP_core:
10277 _IMP_core.MinimumRestraint_swigregister(MinimumRestraint)
10278 class Gaussian(RigidBody):
10279  r"""Proxy of C++ IMP::core::Gaussian class."""
10280 
10281  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10282 
10283  def __init__(self, *args):
10284  r"""
10285  __init__(Gaussian self) -> Gaussian
10286  __init__(Gaussian self, Model m, ParticleIndex id) -> Gaussian
10287  __init__(Gaussian self, _ParticleAdaptor d) -> Gaussian
10288  """
10289  _IMP_core.Gaussian_swiginit(self, _IMP_core.new_Gaussian(*args))
10290 
10291  def show(self, *args):
10292  r"""show(Gaussian self, _ostream out=std::cout)"""
10293  return _IMP_core.Gaussian_show(self, *args)
10294 
10295  @staticmethod
10296  def setup_particle(*args):
10297  r"""
10298  setup_particle(Model m, ParticleIndex pi) -> Gaussian
10299  setup_particle(_ParticleAdaptor pa) -> Gaussian
10300  setup_particle(Model m, ParticleIndex pi, Gaussian3D g) -> Gaussian
10301  setup_particle(_ParticleAdaptor pa, Gaussian3D g) -> Gaussian
10302  """
10303  return _IMP_core.Gaussian_setup_particle(*args)
10304 
10305  @staticmethod
10306  def get_local_covariance_key():
10307  r"""get_local_covariance_key() -> ObjectKey"""
10308  return _IMP_core.Gaussian_get_local_covariance_key()
10309 
10310  @staticmethod
10311  def get_global_covariance_key():
10312  r"""get_global_covariance_key() -> ObjectKey"""
10313  return _IMP_core.Gaussian_get_global_covariance_key()
10314 
10315  @staticmethod
10316  def get_is_setup(*args):
10317  r"""
10318  get_is_setup(_ParticleAdaptor p) -> bool
10319  get_is_setup(Model m, ParticleIndex pi) -> bool
10320  """
10321  return _IMP_core.Gaussian_get_is_setup(*args)
10322 
10323  def get_local_covariance(self):
10324  r"""get_local_covariance(Gaussian self) -> Eigen::Matrix3d"""
10325  return _IMP_core.Gaussian_get_local_covariance(self)
10326 
10327  def get_variances(self):
10328  r"""get_variances(Gaussian self) -> Vector3D"""
10329  return _IMP_core.Gaussian_get_variances(self)
10330 
10331  def get_global_covariance(self):
10332  r"""get_global_covariance(Gaussian self) -> Eigen::Matrix3d"""
10333  return _IMP_core.Gaussian_get_global_covariance(self)
10334 
10335  def get_gaussian(self):
10336  r"""get_gaussian(Gaussian self) -> Gaussian3D"""
10337  return _IMP_core.Gaussian_get_gaussian(self)
10338 
10339  def set_gaussian(self, g):
10340  r"""set_gaussian(Gaussian self, Gaussian3D g)"""
10341  return _IMP_core.Gaussian_set_gaussian(self, g)
10342 
10343  def set_local_covariance(self, covar):
10344  r"""set_local_covariance(Gaussian self, Eigen::Vector3d const covar)"""
10345  return _IMP_core.Gaussian_set_local_covariance(self, covar)
10346 
10347  def set_variances(self, v):
10348  r"""set_variances(Gaussian self, Vector3D v)"""
10349  return _IMP_core.Gaussian_set_variances(self, v)
10350 
10351  def set_global_covariance(self, covar):
10352  r"""set_global_covariance(Gaussian self, Eigen::Matrix3d covar)"""
10353  return _IMP_core.Gaussian_set_global_covariance(self, covar)
10354 
10355  def update_global_covariance(self):
10356  r"""update_global_covariance(Gaussian self)"""
10357  return _IMP_core.Gaussian_update_global_covariance(self)
10358 
10359  def add_attribute(self, *args):
10360  r"""
10361  add_attribute(Gaussian self, FloatKey k, IMP::Float v, bool opt)
10362  add_attribute(Gaussian self, FloatKey a0, IMP::Float a1)
10363  add_attribute(Gaussian self, IntKey a0, IMP::Int a1)
10364  add_attribute(Gaussian self, FloatsKey a0, IMP::Floats a1)
10365  add_attribute(Gaussian self, IntsKey a0, IMP::Ints a1)
10366  add_attribute(Gaussian self, StringKey a0, IMP::String a1)
10367  add_attribute(Gaussian self, ParticleIndexKey a0, Particle a1)
10368  add_attribute(Gaussian self, ObjectKey a0, Object a1)
10369  add_attribute(Gaussian self, SparseFloatKey a0, IMP::Float a1)
10370  add_attribute(Gaussian self, SparseIntKey a0, IMP::Int a1)
10371  add_attribute(Gaussian self, SparseStringKey a0, IMP::String a1)
10372  add_attribute(Gaussian self, SparseParticleIndexKey a0, ParticleIndex a1)
10373  """
10374  return _IMP_core.Gaussian_add_attribute(self, *args)
10375 
10376  def get_value(self, *args):
10377  r"""
10378  get_value(Gaussian self, FloatKey a0) -> IMP::Float
10379  get_value(Gaussian self, IntKey a0) -> IMP::Int
10380  get_value(Gaussian self, FloatsKey a0) -> IMP::Floats
10381  get_value(Gaussian self, IntsKey a0) -> IMP::Ints
10382  get_value(Gaussian self, StringKey a0) -> IMP::String
10383  get_value(Gaussian self, ParticleIndexKey a0) -> Particle
10384  get_value(Gaussian self, ObjectKey a0) -> Object
10385  get_value(Gaussian self, SparseFloatKey a0) -> IMP::Float
10386  get_value(Gaussian self, SparseIntKey a0) -> IMP::Int
10387  get_value(Gaussian self, SparseStringKey a0) -> IMP::String
10388  get_value(Gaussian self, SparseParticleIndexKey a0) -> ParticleIndex
10389  """
10390  return _IMP_core.Gaussian_get_value(self, *args)
10391 
10392  def set_value(self, *args):
10393  r"""
10394  set_value(Gaussian self, FloatKey a0, IMP::Float a1)
10395  set_value(Gaussian self, IntKey a0, IMP::Int a1)
10396  set_value(Gaussian self, FloatsKey a0, IMP::Floats a1)
10397  set_value(Gaussian self, IntsKey a0, IMP::Ints a1)
10398  set_value(Gaussian self, StringKey a0, IMP::String a1)
10399  set_value(Gaussian self, ParticleIndexKey a0, Particle a1)
10400  set_value(Gaussian self, ObjectKey a0, Object a1)
10401  set_value(Gaussian self, SparseFloatKey a0, IMP::Float a1)
10402  set_value(Gaussian self, SparseIntKey a0, IMP::Int a1)
10403  set_value(Gaussian self, SparseStringKey a0, IMP::String a1)
10404  set_value(Gaussian self, SparseParticleIndexKey a0, ParticleIndex a1)
10405  """
10406  return _IMP_core.Gaussian_set_value(self, *args)
10407 
10408  def remove_attribute(self, *args):
10409  r"""
10410  remove_attribute(Gaussian self, FloatKey a0)
10411  remove_attribute(Gaussian self, IntKey a0)
10412  remove_attribute(Gaussian self, FloatsKey a0)
10413  remove_attribute(Gaussian self, IntsKey a0)
10414  remove_attribute(Gaussian self, StringKey a0)
10415  remove_attribute(Gaussian self, ParticleIndexKey a0)
10416  remove_attribute(Gaussian self, ObjectKey a0)
10417  remove_attribute(Gaussian self, SparseFloatKey a0)
10418  remove_attribute(Gaussian self, SparseIntKey a0)
10419  remove_attribute(Gaussian self, SparseStringKey a0)
10420  remove_attribute(Gaussian self, SparseParticleIndexKey a0)
10421  """
10422  return _IMP_core.Gaussian_remove_attribute(self, *args)
10423 
10424  def has_attribute(self, *args):
10425  r"""
10426  has_attribute(Gaussian self, FloatKey a0) -> bool
10427  has_attribute(Gaussian self, IntKey a0) -> bool
10428  has_attribute(Gaussian self, FloatsKey a0) -> bool
10429  has_attribute(Gaussian self, IntsKey a0) -> bool
10430  has_attribute(Gaussian self, StringKey a0) -> bool
10431  has_attribute(Gaussian self, ParticleIndexKey a0) -> bool
10432  has_attribute(Gaussian self, ObjectKey a0) -> bool
10433  has_attribute(Gaussian self, SparseFloatKey a0) -> bool
10434  has_attribute(Gaussian self, SparseIntKey a0) -> bool
10435  has_attribute(Gaussian self, SparseStringKey a0) -> bool
10436  has_attribute(Gaussian self, SparseParticleIndexKey a0) -> bool
10437  """
10438  return _IMP_core.Gaussian_has_attribute(self, *args)
10439 
10440  def get_derivative(self, a0):
10441  r"""get_derivative(Gaussian self, FloatKey a0) -> double"""
10442  return _IMP_core.Gaussian_get_derivative(self, a0)
10443 
10444  def get_name(self):
10445  r"""get_name(Gaussian self) -> std::string"""
10446  return _IMP_core.Gaussian_get_name(self)
10447 
10448  def clear_caches(self):
10449  r"""clear_caches(Gaussian self)"""
10450  return _IMP_core.Gaussian_clear_caches(self)
10451 
10452  def set_name(self, a0):
10453  r"""set_name(Gaussian self, std::string a0)"""
10454  return _IMP_core.Gaussian_set_name(self, a0)
10455 
10456  def set_check_level(self, a0):
10457  r"""set_check_level(Gaussian self, IMP::CheckLevel a0)"""
10458  return _IMP_core.Gaussian_set_check_level(self, a0)
10459 
10460  def add_to_derivative(self, a0, a1, a2):
10461  r"""add_to_derivative(Gaussian self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
10462  return _IMP_core.Gaussian_add_to_derivative(self, a0, a1, a2)
10463 
10464  def set_is_optimized(self, a0, a1):
10465  r"""set_is_optimized(Gaussian self, FloatKey a0, bool a1)"""
10466  return _IMP_core.Gaussian_set_is_optimized(self, a0, a1)
10467 
10468  def get_is_optimized(self, a0):
10469  r"""get_is_optimized(Gaussian self, FloatKey a0) -> bool"""
10470  return _IMP_core.Gaussian_get_is_optimized(self, a0)
10471 
10472  def get_check_level(self):
10473  r"""get_check_level(Gaussian self) -> IMP::CheckLevel"""
10474  return _IMP_core.Gaussian_get_check_level(self)
10475 
10476  def __eq__(self, *args):
10477  r"""
10478  __eq__(Gaussian self, Gaussian o) -> bool
10479  __eq__(Gaussian self, Particle d) -> bool
10480  """
10481  return _IMP_core.Gaussian___eq__(self, *args)
10482 
10483  def __ne__(self, *args):
10484  r"""
10485  __ne__(Gaussian self, Gaussian o) -> bool
10486  __ne__(Gaussian self, Particle d) -> bool
10487  """
10488  return _IMP_core.Gaussian___ne__(self, *args)
10489 
10490  def __le__(self, *args):
10491  r"""
10492  __le__(Gaussian self, Gaussian o) -> bool
10493  __le__(Gaussian self, Particle d) -> bool
10494  """
10495  return _IMP_core.Gaussian___le__(self, *args)
10496 
10497  def __lt__(self, *args):
10498  r"""
10499  __lt__(Gaussian self, Gaussian o) -> bool
10500  __lt__(Gaussian self, Particle d) -> bool
10501  """
10502  return _IMP_core.Gaussian___lt__(self, *args)
10503 
10504  def __ge__(self, *args):
10505  r"""
10506  __ge__(Gaussian self, Gaussian o) -> bool
10507  __ge__(Gaussian self, Particle d) -> bool
10508  """
10509  return _IMP_core.Gaussian___ge__(self, *args)
10510 
10511  def __gt__(self, *args):
10512  r"""
10513  __gt__(Gaussian self, Gaussian o) -> bool
10514  __gt__(Gaussian self, Particle d) -> bool
10515  """
10516  return _IMP_core.Gaussian___gt__(self, *args)
10517 
10518  def __hash__(self):
10519  r"""__hash__(Gaussian self) -> std::size_t"""
10520  return _IMP_core.Gaussian___hash__(self)
10521 
10522  def __str__(self):
10523  r"""__str__(Gaussian self) -> std::string"""
10524  return _IMP_core.Gaussian___str__(self)
10525 
10526  def __repr__(self):
10527  r"""__repr__(Gaussian self) -> std::string"""
10528  return _IMP_core.Gaussian___repr__(self)
10529 
10530  def _get_as_binary(self):
10531  r"""_get_as_binary(Gaussian self) -> PyObject *"""
10532  return _IMP_core.Gaussian__get_as_binary(self)
10533 
10534  def _set_from_binary(self, p):
10535  r"""_set_from_binary(Gaussian self, PyObject * p)"""
10536  return _IMP_core.Gaussian__set_from_binary(self, p)
10537 
10538  def __getstate__(self):
10539  p = self._get_as_binary()
10540  if len(self.__dict__) > 1:
10541  d = self.__dict__.copy()
10542  del d['this']
10543  p = (d, p)
10544  return p
10545 
10546  def __setstate__(self, p):
10547  if not hasattr(self, 'this'):
10548  self.__init__()
10549  if isinstance(p, tuple):
10550  d, p = p
10551  self.__dict__.update(d)
10552  return self._set_from_binary(p)
10553 
10554  __swig_destroy__ = _IMP_core.delete_Gaussian
10555 
10556 # Register Gaussian in _IMP_core:
10557 _IMP_core.Gaussian_swigregister(Gaussian)
10558 class PairRestraint(IMP.Restraint):
10559  r"""Proxy of C++ IMP::core::PairRestraint class."""
10560 
10561  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10562 
10563  def __init__(self, *args):
10564  r"""
10565  __init__(PairRestraint self, Model m, PairScore ss, IMP::ParticleIndexPair const & vt, std::string name="PairRestraint %1%") -> PairRestraint
10566  __init__(PairRestraint self) -> PairRestraint
10567  """
10568  _IMP_core.PairRestraint_swiginit(self, _IMP_core.new_PairRestraint(*args))
10569 
10570  def get_version_info(self):
10571  r"""get_version_info(PairRestraint self) -> VersionInfo"""
10572  return _IMP_core.PairRestraint_get_version_info(self)
10573  __swig_destroy__ = _IMP_core.delete_PairRestraint
10574 
10575  def __str__(self):
10576  r"""__str__(PairRestraint self) -> std::string"""
10577  return _IMP_core.PairRestraint___str__(self)
10578 
10579  def __repr__(self):
10580  r"""__repr__(PairRestraint self) -> std::string"""
10581  return _IMP_core.PairRestraint___repr__(self)
10582 
10583  @staticmethod
10584  def get_from(o):
10585  return _object_cast_to_PairRestraint(o)
10586 
10587 
10588  def _get_as_binary(self):
10589  r"""_get_as_binary(PairRestraint self) -> PyObject *"""
10590  return _IMP_core.PairRestraint__get_as_binary(self)
10591 
10592  def _set_from_binary(self, p):
10593  r"""_set_from_binary(PairRestraint self, PyObject * p)"""
10594  return _IMP_core.PairRestraint__set_from_binary(self, p)
10595 
10596  def __getstate__(self):
10597  p = self._get_as_binary()
10598  if len(self.__dict__) > 1:
10599  d = self.__dict__.copy()
10600  del d['this']
10601  p = (d, p)
10602  return p
10603 
10604  def __setstate__(self, p):
10605  if not hasattr(self, 'this'):
10606  self.__init__()
10607  if isinstance(p, tuple):
10608  d, p = p
10609  self.__dict__.update(d)
10610  return self._set_from_binary(p)
10611 
10612 
10613 # Register PairRestraint in _IMP_core:
10614 _IMP_core.PairRestraint_swigregister(PairRestraint)
10615 class SingletonRestraint(IMP.Restraint):
10616  r"""Proxy of C++ IMP::core::SingletonRestraint class."""
10617 
10618  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10619 
10620  def __init__(self, *args):
10621  r"""
10622  __init__(SingletonRestraint self, Model m, SingletonScore ss, ParticleIndex vt, std::string name="SingletonRestraint %1%") -> SingletonRestraint
10623  __init__(SingletonRestraint self) -> SingletonRestraint
10624  """
10625  _IMP_core.SingletonRestraint_swiginit(self, _IMP_core.new_SingletonRestraint(*args))
10626 
10627  def get_version_info(self):
10628  r"""get_version_info(SingletonRestraint self) -> VersionInfo"""
10629  return _IMP_core.SingletonRestraint_get_version_info(self)
10630  __swig_destroy__ = _IMP_core.delete_SingletonRestraint
10631 
10632  def __str__(self):
10633  r"""__str__(SingletonRestraint self) -> std::string"""
10634  return _IMP_core.SingletonRestraint___str__(self)
10635 
10636  def __repr__(self):
10637  r"""__repr__(SingletonRestraint self) -> std::string"""
10638  return _IMP_core.SingletonRestraint___repr__(self)
10639 
10640  @staticmethod
10641  def get_from(o):
10642  return _object_cast_to_SingletonRestraint(o)
10643 
10644 
10645  def _get_as_binary(self):
10646  r"""_get_as_binary(SingletonRestraint self) -> PyObject *"""
10647  return _IMP_core.SingletonRestraint__get_as_binary(self)
10648 
10649  def _set_from_binary(self, p):
10650  r"""_set_from_binary(SingletonRestraint self, PyObject * p)"""
10651  return _IMP_core.SingletonRestraint__set_from_binary(self, p)
10652 
10653  def __getstate__(self):
10654  p = self._get_as_binary()
10655  if len(self.__dict__) > 1:
10656  d = self.__dict__.copy()
10657  del d['this']
10658  p = (d, p)
10659  return p
10660 
10661  def __setstate__(self, p):
10662  if not hasattr(self, 'this'):
10663  self.__init__()
10664  if isinstance(p, tuple):
10665  d, p = p
10666  self.__dict__.update(d)
10667  return self._set_from_binary(p)
10668 
10669 
10670 # Register SingletonRestraint in _IMP_core:
10671 _IMP_core.SingletonRestraint_swigregister(SingletonRestraint)
10672 class TripletRestraint(IMP.Restraint):
10673  r"""Proxy of C++ IMP::core::TripletRestraint class."""
10674 
10675  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10676 
10677  def __init__(self, *args):
10678  r"""
10679  __init__(TripletRestraint self, Model m, TripletScore ss, IMP::ParticleIndexTriplet const & vt, std::string name="TripletRestraint %1%") -> TripletRestraint
10680  __init__(TripletRestraint self) -> TripletRestraint
10681  """
10682  _IMP_core.TripletRestraint_swiginit(self, _IMP_core.new_TripletRestraint(*args))
10683 
10684  def get_version_info(self):
10685  r"""get_version_info(TripletRestraint self) -> VersionInfo"""
10686  return _IMP_core.TripletRestraint_get_version_info(self)
10687  __swig_destroy__ = _IMP_core.delete_TripletRestraint
10688 
10689  def __str__(self):
10690  r"""__str__(TripletRestraint self) -> std::string"""
10691  return _IMP_core.TripletRestraint___str__(self)
10692 
10693  def __repr__(self):
10694  r"""__repr__(TripletRestraint self) -> std::string"""
10695  return _IMP_core.TripletRestraint___repr__(self)
10696 
10697  @staticmethod
10698  def get_from(o):
10699  return _object_cast_to_TripletRestraint(o)
10700 
10701 
10702  def _get_as_binary(self):
10703  r"""_get_as_binary(TripletRestraint self) -> PyObject *"""
10704  return _IMP_core.TripletRestraint__get_as_binary(self)
10705 
10706  def _set_from_binary(self, p):
10707  r"""_set_from_binary(TripletRestraint self, PyObject * p)"""
10708  return _IMP_core.TripletRestraint__set_from_binary(self, p)
10709 
10710  def __getstate__(self):
10711  p = self._get_as_binary()
10712  if len(self.__dict__) > 1:
10713  d = self.__dict__.copy()
10714  del d['this']
10715  p = (d, p)
10716  return p
10717 
10718  def __setstate__(self, p):
10719  if not hasattr(self, 'this'):
10720  self.__init__()
10721  if isinstance(p, tuple):
10722  d, p = p
10723  self.__dict__.update(d)
10724  return self._set_from_binary(p)
10725 
10726 
10727 # Register TripletRestraint in _IMP_core:
10728 _IMP_core.TripletRestraint_swigregister(TripletRestraint)
10729 class QuadRestraint(IMP.Restraint):
10730  r"""Proxy of C++ IMP::core::QuadRestraint class."""
10731 
10732  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10733 
10734  def __init__(self, *args):
10735  r"""
10736  __init__(QuadRestraint self, Model m, QuadScore ss, IMP::ParticleIndexQuad const & vt, std::string name="QuadRestraint %1%") -> QuadRestraint
10737  __init__(QuadRestraint self) -> QuadRestraint
10738  """
10739  _IMP_core.QuadRestraint_swiginit(self, _IMP_core.new_QuadRestraint(*args))
10740 
10741  def get_version_info(self):
10742  r"""get_version_info(QuadRestraint self) -> VersionInfo"""
10743  return _IMP_core.QuadRestraint_get_version_info(self)
10744  __swig_destroy__ = _IMP_core.delete_QuadRestraint
10745 
10746  def __str__(self):
10747  r"""__str__(QuadRestraint self) -> std::string"""
10748  return _IMP_core.QuadRestraint___str__(self)
10749 
10750  def __repr__(self):
10751  r"""__repr__(QuadRestraint self) -> std::string"""
10752  return _IMP_core.QuadRestraint___repr__(self)
10753 
10754  @staticmethod
10755  def get_from(o):
10756  return _object_cast_to_QuadRestraint(o)
10757 
10758 
10759  def _get_as_binary(self):
10760  r"""_get_as_binary(QuadRestraint self) -> PyObject *"""
10761  return _IMP_core.QuadRestraint__get_as_binary(self)
10762 
10763  def _set_from_binary(self, p):
10764  r"""_set_from_binary(QuadRestraint self, PyObject * p)"""
10765  return _IMP_core.QuadRestraint__set_from_binary(self, p)
10766 
10767  def __getstate__(self):
10768  p = self._get_as_binary()
10769  if len(self.__dict__) > 1:
10770  d = self.__dict__.copy()
10771  del d['this']
10772  p = (d, p)
10773  return p
10774 
10775  def __setstate__(self, p):
10776  if not hasattr(self, 'this'):
10777  self.__init__()
10778  if isinstance(p, tuple):
10779  d, p = p
10780  self.__dict__.update(d)
10781  return self._set_from_binary(p)
10782 
10783 
10784 # Register QuadRestraint in _IMP_core:
10785 _IMP_core.QuadRestraint_swigregister(QuadRestraint)
10786 class SingletonConstraint(IMP.Constraint):
10787  r"""Proxy of C++ IMP::core::SingletonConstraint class."""
10788 
10789  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10790 
10791  def __init__(self, *args):
10792  r"""
10793  __init__(SingletonConstraint self, SingletonModifier before, SingletonModifier after, Model m, ParticleIndex vt, std::string name="SingletonConstraint %1%", bool can_skip=False) -> SingletonConstraint
10794  __init__(SingletonConstraint self) -> SingletonConstraint
10795  """
10796  _IMP_core.SingletonConstraint_swiginit(self, _IMP_core.new_SingletonConstraint(*args))
10797 
10798  def get_version_info(self):
10799  r"""get_version_info(SingletonConstraint self) -> VersionInfo"""
10800  return _IMP_core.SingletonConstraint_get_version_info(self)
10801  __swig_destroy__ = _IMP_core.delete_SingletonConstraint
10802 
10803  def __str__(self):
10804  r"""__str__(SingletonConstraint self) -> std::string"""
10805  return _IMP_core.SingletonConstraint___str__(self)
10806 
10807  def __repr__(self):
10808  r"""__repr__(SingletonConstraint self) -> std::string"""
10809  return _IMP_core.SingletonConstraint___repr__(self)
10810 
10811  @staticmethod
10812  def get_from(o):
10813  return _object_cast_to_SingletonConstraint(o)
10814 
10815 
10816  def _get_as_binary(self):
10817  r"""_get_as_binary(SingletonConstraint self) -> PyObject *"""
10818  return _IMP_core.SingletonConstraint__get_as_binary(self)
10819 
10820  def _set_from_binary(self, p):
10821  r"""_set_from_binary(SingletonConstraint self, PyObject * p)"""
10822  return _IMP_core.SingletonConstraint__set_from_binary(self, p)
10823 
10824  def __getstate__(self):
10825  p = self._get_as_binary()
10826  if len(self.__dict__) > 1:
10827  d = self.__dict__.copy()
10828  del d['this']
10829  p = (d, p)
10830  return p
10831 
10832  def __setstate__(self, p):
10833  if not hasattr(self, 'this'):
10834  self.__init__()
10835  if isinstance(p, tuple):
10836  d, p = p
10837  self.__dict__.update(d)
10838  return self._set_from_binary(p)
10839 
10840 
10841 # Register SingletonConstraint in _IMP_core:
10842 _IMP_core.SingletonConstraint_swigregister(SingletonConstraint)
10843 class PairConstraint(IMP.Constraint):
10844  r"""Proxy of C++ IMP::core::PairConstraint class."""
10845 
10846  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10847 
10848  def __init__(self, *args):
10849  r"""
10850  __init__(PairConstraint self, PairModifier before, PairModifier after, Model m, IMP::ParticleIndexPair const & vt, std::string name="PairConstraint %1%", bool can_skip=False) -> PairConstraint
10851  __init__(PairConstraint self) -> PairConstraint
10852  """
10853  _IMP_core.PairConstraint_swiginit(self, _IMP_core.new_PairConstraint(*args))
10854 
10855  def get_version_info(self):
10856  r"""get_version_info(PairConstraint self) -> VersionInfo"""
10857  return _IMP_core.PairConstraint_get_version_info(self)
10858  __swig_destroy__ = _IMP_core.delete_PairConstraint
10859 
10860  def __str__(self):
10861  r"""__str__(PairConstraint self) -> std::string"""
10862  return _IMP_core.PairConstraint___str__(self)
10863 
10864  def __repr__(self):
10865  r"""__repr__(PairConstraint self) -> std::string"""
10866  return _IMP_core.PairConstraint___repr__(self)
10867 
10868  @staticmethod
10869  def get_from(o):
10870  return _object_cast_to_PairConstraint(o)
10871 
10872 
10873  def _get_as_binary(self):
10874  r"""_get_as_binary(PairConstraint self) -> PyObject *"""
10875  return _IMP_core.PairConstraint__get_as_binary(self)
10876 
10877  def _set_from_binary(self, p):
10878  r"""_set_from_binary(PairConstraint self, PyObject * p)"""
10879  return _IMP_core.PairConstraint__set_from_binary(self, p)
10880 
10881  def __getstate__(self):
10882  p = self._get_as_binary()
10883  if len(self.__dict__) > 1:
10884  d = self.__dict__.copy()
10885  del d['this']
10886  p = (d, p)
10887  return p
10888 
10889  def __setstate__(self, p):
10890  if not hasattr(self, 'this'):
10891  self.__init__()
10892  if isinstance(p, tuple):
10893  d, p = p
10894  self.__dict__.update(d)
10895  return self._set_from_binary(p)
10896 
10897 
10898 # Register PairConstraint in _IMP_core:
10899 _IMP_core.PairConstraint_swigregister(PairConstraint)
10900 class TripletConstraint(IMP.Constraint):
10901  r"""Proxy of C++ IMP::core::TripletConstraint class."""
10902 
10903  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10904 
10905  def __init__(self, *args):
10906  r"""
10907  __init__(TripletConstraint self, TripletModifier before, TripletModifier after, Model m, IMP::ParticleIndexTriplet const & vt, std::string name="TripletConstraint %1%", bool can_skip=False) -> TripletConstraint
10908  __init__(TripletConstraint self) -> TripletConstraint
10909  """
10910  _IMP_core.TripletConstraint_swiginit(self, _IMP_core.new_TripletConstraint(*args))
10911 
10912  def get_version_info(self):
10913  r"""get_version_info(TripletConstraint self) -> VersionInfo"""
10914  return _IMP_core.TripletConstraint_get_version_info(self)
10915  __swig_destroy__ = _IMP_core.delete_TripletConstraint
10916 
10917  def __str__(self):
10918  r"""__str__(TripletConstraint self) -> std::string"""
10919  return _IMP_core.TripletConstraint___str__(self)
10920 
10921  def __repr__(self):
10922  r"""__repr__(TripletConstraint self) -> std::string"""
10923  return _IMP_core.TripletConstraint___repr__(self)
10924 
10925  @staticmethod
10926  def get_from(o):
10927  return _object_cast_to_TripletConstraint(o)
10928 
10929 
10930  def _get_as_binary(self):
10931  r"""_get_as_binary(TripletConstraint self) -> PyObject *"""
10932  return _IMP_core.TripletConstraint__get_as_binary(self)
10933 
10934  def _set_from_binary(self, p):
10935  r"""_set_from_binary(TripletConstraint self, PyObject * p)"""
10936  return _IMP_core.TripletConstraint__set_from_binary(self, p)
10937 
10938  def __getstate__(self):
10939  p = self._get_as_binary()
10940  if len(self.__dict__) > 1:
10941  d = self.__dict__.copy()
10942  del d['this']
10943  p = (d, p)
10944  return p
10945 
10946  def __setstate__(self, p):
10947  if not hasattr(self, 'this'):
10948  self.__init__()
10949  if isinstance(p, tuple):
10950  d, p = p
10951  self.__dict__.update(d)
10952  return self._set_from_binary(p)
10953 
10954 
10955 # Register TripletConstraint in _IMP_core:
10956 _IMP_core.TripletConstraint_swigregister(TripletConstraint)
10957 class QuadConstraint(IMP.Constraint):
10958  r"""Proxy of C++ IMP::core::QuadConstraint class."""
10959 
10960  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10961 
10962  def __init__(self, *args):
10963  r"""
10964  __init__(QuadConstraint self, QuadModifier before, QuadModifier after, Model m, IMP::ParticleIndexQuad const & vt, std::string name="QuadConstraint %1%", bool can_skip=False) -> QuadConstraint
10965  __init__(QuadConstraint self) -> QuadConstraint
10966  """
10967  _IMP_core.QuadConstraint_swiginit(self, _IMP_core.new_QuadConstraint(*args))
10968 
10969  def get_version_info(self):
10970  r"""get_version_info(QuadConstraint self) -> VersionInfo"""
10971  return _IMP_core.QuadConstraint_get_version_info(self)
10972  __swig_destroy__ = _IMP_core.delete_QuadConstraint
10973 
10974  def __str__(self):
10975  r"""__str__(QuadConstraint self) -> std::string"""
10976  return _IMP_core.QuadConstraint___str__(self)
10977 
10978  def __repr__(self):
10979  r"""__repr__(QuadConstraint self) -> std::string"""
10980  return _IMP_core.QuadConstraint___repr__(self)
10981 
10982  @staticmethod
10983  def get_from(o):
10984  return _object_cast_to_QuadConstraint(o)
10985 
10986 
10987  def _get_as_binary(self):
10988  r"""_get_as_binary(QuadConstraint self) -> PyObject *"""
10989  return _IMP_core.QuadConstraint__get_as_binary(self)
10990 
10991  def _set_from_binary(self, p):
10992  r"""_set_from_binary(QuadConstraint self, PyObject * p)"""
10993  return _IMP_core.QuadConstraint__set_from_binary(self, p)
10994 
10995  def __getstate__(self):
10996  p = self._get_as_binary()
10997  if len(self.__dict__) > 1:
10998  d = self.__dict__.copy()
10999  del d['this']
11000  p = (d, p)
11001  return p
11002 
11003  def __setstate__(self, p):
11004  if not hasattr(self, 'this'):
11005  self.__init__()
11006  if isinstance(p, tuple):
11007  d, p = p
11008  self.__dict__.update(d)
11009  return self._set_from_binary(p)
11010 
11011 
11012 # Register QuadConstraint in _IMP_core:
11013 _IMP_core.QuadConstraint_swigregister(QuadConstraint)
11014 class ConstantSingletonPredicate(IMP.SingletonPredicate):
11015  r"""Proxy of C++ IMP::core::ConstantSingletonPredicate class."""
11016 
11017  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11018 
11019  def __init__(self, *args):
11020  r"""
11021  __init__(ConstantSingletonPredicate self, int v, std::string name="ConstSingletonPredicate%1%") -> ConstantSingletonPredicate
11022  __init__(ConstantSingletonPredicate self) -> ConstantSingletonPredicate
11023  """
11024  _IMP_core.ConstantSingletonPredicate_swiginit(self, _IMP_core.new_ConstantSingletonPredicate(*args))
11025 
11026  def do_get_inputs(self, arg2, arg3):
11027  r"""do_get_inputs(ConstantSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11028  return _IMP_core.ConstantSingletonPredicate_do_get_inputs(self, arg2, arg3)
11029 
11030  def get_value(self, *args):
11031  r"""
11032  get_value(ConstantSingletonPredicate self, Particle a) -> int
11033  get_value(ConstantSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11034  """
11035  return _IMP_core.ConstantSingletonPredicate_get_value(self, *args)
11036 
11037  def get_value_index(self, *args):
11038  r"""
11039  get_value_index(ConstantSingletonPredicate self, Model arg2, ParticleIndex arg3) -> int
11040  get_value_index(ConstantSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11041  """
11042  return _IMP_core.ConstantSingletonPredicate_get_value_index(self, *args)
11043 
11044  def get_version_info(self):
11045  r"""get_version_info(ConstantSingletonPredicate self) -> VersionInfo"""
11046  return _IMP_core.ConstantSingletonPredicate_get_version_info(self)
11047  __swig_destroy__ = _IMP_core.delete_ConstantSingletonPredicate
11048 
11049  def __str__(self):
11050  r"""__str__(ConstantSingletonPredicate self) -> std::string"""
11051  return _IMP_core.ConstantSingletonPredicate___str__(self)
11052 
11053  def __repr__(self):
11054  r"""__repr__(ConstantSingletonPredicate self) -> std::string"""
11055  return _IMP_core.ConstantSingletonPredicate___repr__(self)
11056 
11057  @staticmethod
11058  def get_from(o):
11059  return _object_cast_to_ConstantSingletonPredicate(o)
11060 
11061 
11062  def _get_as_binary(self):
11063  r"""_get_as_binary(ConstantSingletonPredicate self) -> PyObject *"""
11064  return _IMP_core.ConstantSingletonPredicate__get_as_binary(self)
11065 
11066  def _set_from_binary(self, p):
11067  r"""_set_from_binary(ConstantSingletonPredicate self, PyObject * p)"""
11068  return _IMP_core.ConstantSingletonPredicate__set_from_binary(self, p)
11069 
11070  def __getstate__(self):
11071  p = self._get_as_binary()
11072  if len(self.__dict__) > 1:
11073  d = self.__dict__.copy()
11074  del d['this']
11075  p = (d, p)
11076  return p
11077 
11078  def __setstate__(self, p):
11079  if not hasattr(self, 'this'):
11080  self.__init__()
11081  if isinstance(p, tuple):
11082  d, p = p
11083  self.__dict__.update(d)
11084  return self._set_from_binary(p)
11085 
11086 
11087 # Register ConstantSingletonPredicate in _IMP_core:
11088 _IMP_core.ConstantSingletonPredicate_swigregister(ConstantSingletonPredicate)
11089 class UnorderedTypeSingletonPredicate(IMP.SingletonPredicate):
11090  r"""Proxy of C++ IMP::core::UnorderedTypeSingletonPredicate class."""
11091 
11092  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11093 
11094  def __init__(self, *args):
11095  r"""__init__(UnorderedTypeSingletonPredicate self, std::string name="UnorderedTypeSingletonPredicate%1%") -> UnorderedTypeSingletonPredicate"""
11096  _IMP_core.UnorderedTypeSingletonPredicate_swiginit(self, _IMP_core.new_UnorderedTypeSingletonPredicate(*args))
11097 
11098  def do_get_inputs(self, m, pis):
11099  r"""do_get_inputs(UnorderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11100  return _IMP_core.UnorderedTypeSingletonPredicate_do_get_inputs(self, m, pis)
11101 
11102  def get_value(self, *args):
11103  r"""
11104  get_value(UnorderedTypeSingletonPredicate self, Particle a) -> int
11105  get_value(UnorderedTypeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11106  """
11107  return _IMP_core.UnorderedTypeSingletonPredicate_get_value(self, *args)
11108 
11109  def get_value_index(self, *args):
11110  r"""
11111  get_value_index(UnorderedTypeSingletonPredicate self, Model m, ParticleIndex pi) -> int
11112  get_value_index(UnorderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11113  """
11114  return _IMP_core.UnorderedTypeSingletonPredicate_get_value_index(self, *args)
11115 
11116  def get_version_info(self):
11117  r"""get_version_info(UnorderedTypeSingletonPredicate self) -> VersionInfo"""
11118  return _IMP_core.UnorderedTypeSingletonPredicate_get_version_info(self)
11119  __swig_destroy__ = _IMP_core.delete_UnorderedTypeSingletonPredicate
11120 
11121  def __str__(self):
11122  r"""__str__(UnorderedTypeSingletonPredicate self) -> std::string"""
11123  return _IMP_core.UnorderedTypeSingletonPredicate___str__(self)
11124 
11125  def __repr__(self):
11126  r"""__repr__(UnorderedTypeSingletonPredicate self) -> std::string"""
11127  return _IMP_core.UnorderedTypeSingletonPredicate___repr__(self)
11128 
11129  @staticmethod
11130  def get_from(o):
11131  return _object_cast_to_UnorderedTypeSingletonPredicate(o)
11132 
11133 
11134  def _get_as_binary(self):
11135  r"""_get_as_binary(UnorderedTypeSingletonPredicate self) -> PyObject *"""
11136  return _IMP_core.UnorderedTypeSingletonPredicate__get_as_binary(self)
11137 
11138  def _set_from_binary(self, p):
11139  r"""_set_from_binary(UnorderedTypeSingletonPredicate self, PyObject * p)"""
11140  return _IMP_core.UnorderedTypeSingletonPredicate__set_from_binary(self, p)
11141 
11142  def __getstate__(self):
11143  p = self._get_as_binary()
11144  if len(self.__dict__) > 1:
11145  d = self.__dict__.copy()
11146  del d['this']
11147  p = (d, p)
11148  return p
11149 
11150  def __setstate__(self, p):
11151  if not hasattr(self, 'this'):
11152  self.__init__()
11153  if isinstance(p, tuple):
11154  d, p = p
11155  self.__dict__.update(d)
11156  return self._set_from_binary(p)
11157 
11158 
11159 # Register UnorderedTypeSingletonPredicate in _IMP_core:
11160 _IMP_core.UnorderedTypeSingletonPredicate_swigregister(UnorderedTypeSingletonPredicate)
11161 class OrderedTypeSingletonPredicate(IMP.SingletonPredicate):
11162  r"""Proxy of C++ IMP::core::OrderedTypeSingletonPredicate class."""
11163 
11164  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11165 
11166  def __init__(self, *args):
11167  r"""__init__(OrderedTypeSingletonPredicate self, std::string name="OrderedTypeSingletonPredicate%1%") -> OrderedTypeSingletonPredicate"""
11168  _IMP_core.OrderedTypeSingletonPredicate_swiginit(self, _IMP_core.new_OrderedTypeSingletonPredicate(*args))
11169 
11170  def do_get_inputs(self, m, pis):
11171  r"""do_get_inputs(OrderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11172  return _IMP_core.OrderedTypeSingletonPredicate_do_get_inputs(self, m, pis)
11173 
11174  def get_value(self, *args):
11175  r"""
11176  get_value(OrderedTypeSingletonPredicate self, IMP::core::ParticleTypes const & types) -> int
11177  get_value(OrderedTypeSingletonPredicate self, Particle a) -> int
11178  get_value(OrderedTypeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11179  """
11180  return _IMP_core.OrderedTypeSingletonPredicate_get_value(self, *args)
11181 
11182  def get_value_index(self, *args):
11183  r"""
11184  get_value_index(OrderedTypeSingletonPredicate self, Model m, ParticleIndex pi) -> int
11185  get_value_index(OrderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11186  """
11187  return _IMP_core.OrderedTypeSingletonPredicate_get_value_index(self, *args)
11188 
11189  def get_version_info(self):
11190  r"""get_version_info(OrderedTypeSingletonPredicate self) -> VersionInfo"""
11191  return _IMP_core.OrderedTypeSingletonPredicate_get_version_info(self)
11192  __swig_destroy__ = _IMP_core.delete_OrderedTypeSingletonPredicate
11193 
11194  def __str__(self):
11195  r"""__str__(OrderedTypeSingletonPredicate self) -> std::string"""
11196  return _IMP_core.OrderedTypeSingletonPredicate___str__(self)
11197 
11198  def __repr__(self):
11199  r"""__repr__(OrderedTypeSingletonPredicate self) -> std::string"""
11200  return _IMP_core.OrderedTypeSingletonPredicate___repr__(self)
11201 
11202  @staticmethod
11203  def get_from(o):
11204  return _object_cast_to_OrderedTypeSingletonPredicate(o)
11205 
11206 
11207 # Register OrderedTypeSingletonPredicate in _IMP_core:
11208 _IMP_core.OrderedTypeSingletonPredicate_swigregister(OrderedTypeSingletonPredicate)
11209 class AllSameSingletonPredicate(IMP.SingletonPredicate):
11210  r"""Proxy of C++ IMP::core::AllSameSingletonPredicate class."""
11211 
11212  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11213 
11214  def __init__(self, *args):
11215  r"""__init__(AllSameSingletonPredicate self, std::string name="AllSameSingletonPredicate%1%") -> AllSameSingletonPredicate"""
11216  _IMP_core.AllSameSingletonPredicate_swiginit(self, _IMP_core.new_AllSameSingletonPredicate(*args))
11217 
11218  def do_get_inputs(self, arg2, arg3):
11219  r"""do_get_inputs(AllSameSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11220  return _IMP_core.AllSameSingletonPredicate_do_get_inputs(self, arg2, arg3)
11221 
11222  def get_value(self, *args):
11223  r"""
11224  get_value(AllSameSingletonPredicate self, Particle a) -> int
11225  get_value(AllSameSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11226  """
11227  return _IMP_core.AllSameSingletonPredicate_get_value(self, *args)
11228 
11229  def get_value_index(self, *args):
11230  r"""
11231  get_value_index(AllSameSingletonPredicate self, Model m, ParticleIndex pi) -> int
11232  get_value_index(AllSameSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11233  """
11234  return _IMP_core.AllSameSingletonPredicate_get_value_index(self, *args)
11235 
11236  def get_version_info(self):
11237  r"""get_version_info(AllSameSingletonPredicate self) -> VersionInfo"""
11238  return _IMP_core.AllSameSingletonPredicate_get_version_info(self)
11239  __swig_destroy__ = _IMP_core.delete_AllSameSingletonPredicate
11240 
11241  def __str__(self):
11242  r"""__str__(AllSameSingletonPredicate self) -> std::string"""
11243  return _IMP_core.AllSameSingletonPredicate___str__(self)
11244 
11245  def __repr__(self):
11246  r"""__repr__(AllSameSingletonPredicate self) -> std::string"""
11247  return _IMP_core.AllSameSingletonPredicate___repr__(self)
11248 
11249  @staticmethod
11250  def get_from(o):
11251  return _object_cast_to_AllSameSingletonPredicate(o)
11252 
11253 
11254  def _get_as_binary(self):
11255  r"""_get_as_binary(AllSameSingletonPredicate self) -> PyObject *"""
11256  return _IMP_core.AllSameSingletonPredicate__get_as_binary(self)
11257 
11258  def _set_from_binary(self, p):
11259  r"""_set_from_binary(AllSameSingletonPredicate self, PyObject * p)"""
11260  return _IMP_core.AllSameSingletonPredicate__set_from_binary(self, p)
11261 
11262  def __getstate__(self):
11263  p = self._get_as_binary()
11264  if len(self.__dict__) > 1:
11265  d = self.__dict__.copy()
11266  del d['this']
11267  p = (d, p)
11268  return p
11269 
11270  def __setstate__(self, p):
11271  if not hasattr(self, 'this'):
11272  self.__init__()
11273  if isinstance(p, tuple):
11274  d, p = p
11275  self.__dict__.update(d)
11276  return self._set_from_binary(p)
11277 
11278 
11279 # Register AllSameSingletonPredicate in _IMP_core:
11280 _IMP_core.AllSameSingletonPredicate_swigregister(AllSameSingletonPredicate)
11281 class CoinFlipSingletonPredicate(IMP.SingletonPredicate):
11282  r"""Proxy of C++ IMP::core::CoinFlipSingletonPredicate class."""
11283 
11284  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11285 
11286  def __init__(self, *args):
11287  r"""__init__(CoinFlipSingletonPredicate self, double p, std::string name="CoinFlipSingletonPredicate%1%") -> CoinFlipSingletonPredicate"""
11288  _IMP_core.CoinFlipSingletonPredicate_swiginit(self, _IMP_core.new_CoinFlipSingletonPredicate(*args))
11289 
11290  def do_get_inputs(self, arg2, arg3):
11291  r"""do_get_inputs(CoinFlipSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11292  return _IMP_core.CoinFlipSingletonPredicate_do_get_inputs(self, arg2, arg3)
11293 
11294  def get_value(self, *args):
11295  r"""
11296  get_value(CoinFlipSingletonPredicate self, Particle a) -> int
11297  get_value(CoinFlipSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11298  """
11299  return _IMP_core.CoinFlipSingletonPredicate_get_value(self, *args)
11300 
11301  def get_value_index(self, *args):
11302  r"""
11303  get_value_index(CoinFlipSingletonPredicate self, Model arg2, ParticleIndex arg3) -> int
11304  get_value_index(CoinFlipSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11305  """
11306  return _IMP_core.CoinFlipSingletonPredicate_get_value_index(self, *args)
11307 
11308  def get_version_info(self):
11309  r"""get_version_info(CoinFlipSingletonPredicate self) -> VersionInfo"""
11310  return _IMP_core.CoinFlipSingletonPredicate_get_version_info(self)
11311  __swig_destroy__ = _IMP_core.delete_CoinFlipSingletonPredicate
11312 
11313  def __str__(self):
11314  r"""__str__(CoinFlipSingletonPredicate self) -> std::string"""
11315  return _IMP_core.CoinFlipSingletonPredicate___str__(self)
11316 
11317  def __repr__(self):
11318  r"""__repr__(CoinFlipSingletonPredicate self) -> std::string"""
11319  return _IMP_core.CoinFlipSingletonPredicate___repr__(self)
11320 
11321  @staticmethod
11322  def get_from(o):
11323  return _object_cast_to_CoinFlipSingletonPredicate(o)
11324 
11325 
11326 # Register CoinFlipSingletonPredicate in _IMP_core:
11327 _IMP_core.CoinFlipSingletonPredicate_swigregister(CoinFlipSingletonPredicate)
11328 class ConstantPairPredicate(IMP.PairPredicate):
11329  r"""Proxy of C++ IMP::core::ConstantPairPredicate class."""
11330 
11331  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11332 
11333  def __init__(self, *args):
11334  r"""
11335  __init__(ConstantPairPredicate self, int v, std::string name="ConstPairPredicate%1%") -> ConstantPairPredicate
11336  __init__(ConstantPairPredicate self) -> ConstantPairPredicate
11337  """
11338  _IMP_core.ConstantPairPredicate_swiginit(self, _IMP_core.new_ConstantPairPredicate(*args))
11339 
11340  def do_get_inputs(self, arg2, arg3):
11341  r"""do_get_inputs(ConstantPairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11342  return _IMP_core.ConstantPairPredicate_do_get_inputs(self, arg2, arg3)
11343 
11344  def get_value(self, *args):
11345  r"""
11346  get_value(ConstantPairPredicate self, IMP::ParticlePair const & a) -> int
11347  get_value(ConstantPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11348  """
11349  return _IMP_core.ConstantPairPredicate_get_value(self, *args)
11350 
11351  def get_value_index(self, *args):
11352  r"""
11353  get_value_index(ConstantPairPredicate self, Model arg2, IMP::ParticleIndexPair const & arg3) -> int
11354  get_value_index(ConstantPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11355  """
11356  return _IMP_core.ConstantPairPredicate_get_value_index(self, *args)
11357 
11358  def get_version_info(self):
11359  r"""get_version_info(ConstantPairPredicate self) -> VersionInfo"""
11360  return _IMP_core.ConstantPairPredicate_get_version_info(self)
11361  __swig_destroy__ = _IMP_core.delete_ConstantPairPredicate
11362 
11363  def __str__(self):
11364  r"""__str__(ConstantPairPredicate self) -> std::string"""
11365  return _IMP_core.ConstantPairPredicate___str__(self)
11366 
11367  def __repr__(self):
11368  r"""__repr__(ConstantPairPredicate self) -> std::string"""
11369  return _IMP_core.ConstantPairPredicate___repr__(self)
11370 
11371  @staticmethod
11372  def get_from(o):
11373  return _object_cast_to_ConstantPairPredicate(o)
11374 
11375 
11376  def _get_as_binary(self):
11377  r"""_get_as_binary(ConstantPairPredicate self) -> PyObject *"""
11378  return _IMP_core.ConstantPairPredicate__get_as_binary(self)
11379 
11380  def _set_from_binary(self, p):
11381  r"""_set_from_binary(ConstantPairPredicate self, PyObject * p)"""
11382  return _IMP_core.ConstantPairPredicate__set_from_binary(self, p)
11383 
11384  def __getstate__(self):
11385  p = self._get_as_binary()
11386  if len(self.__dict__) > 1:
11387  d = self.__dict__.copy()
11388  del d['this']
11389  p = (d, p)
11390  return p
11391 
11392  def __setstate__(self, p):
11393  if not hasattr(self, 'this'):
11394  self.__init__()
11395  if isinstance(p, tuple):
11396  d, p = p
11397  self.__dict__.update(d)
11398  return self._set_from_binary(p)
11399 
11400 
11401 # Register ConstantPairPredicate in _IMP_core:
11402 _IMP_core.ConstantPairPredicate_swigregister(ConstantPairPredicate)
11403 class UnorderedTypePairPredicate(IMP.PairPredicate):
11404  r"""Proxy of C++ IMP::core::UnorderedTypePairPredicate class."""
11405 
11406  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11407 
11408  def __init__(self, *args):
11409  r"""__init__(UnorderedTypePairPredicate self, std::string name="UnorderedTypePairPredicate%1%") -> UnorderedTypePairPredicate"""
11410  _IMP_core.UnorderedTypePairPredicate_swiginit(self, _IMP_core.new_UnorderedTypePairPredicate(*args))
11411 
11412  def do_get_inputs(self, m, pis):
11413  r"""do_get_inputs(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11414  return _IMP_core.UnorderedTypePairPredicate_do_get_inputs(self, m, pis)
11415 
11416  def get_value(self, *args):
11417  r"""
11418  get_value(UnorderedTypePairPredicate self, IMP::ParticlePair const & a) -> int
11419  get_value(UnorderedTypePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11420  """
11421  return _IMP_core.UnorderedTypePairPredicate_get_value(self, *args)
11422 
11423  def get_value_index(self, *args):
11424  r"""
11425  get_value_index(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11426  get_value_index(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11427  """
11428  return _IMP_core.UnorderedTypePairPredicate_get_value_index(self, *args)
11429 
11430  def get_version_info(self):
11431  r"""get_version_info(UnorderedTypePairPredicate self) -> VersionInfo"""
11432  return _IMP_core.UnorderedTypePairPredicate_get_version_info(self)
11433  __swig_destroy__ = _IMP_core.delete_UnorderedTypePairPredicate
11434 
11435  def __str__(self):
11436  r"""__str__(UnorderedTypePairPredicate self) -> std::string"""
11437  return _IMP_core.UnorderedTypePairPredicate___str__(self)
11438 
11439  def __repr__(self):
11440  r"""__repr__(UnorderedTypePairPredicate self) -> std::string"""
11441  return _IMP_core.UnorderedTypePairPredicate___repr__(self)
11442 
11443  @staticmethod
11444  def get_from(o):
11445  return _object_cast_to_UnorderedTypePairPredicate(o)
11446 
11447 
11448  def _get_as_binary(self):
11449  r"""_get_as_binary(UnorderedTypePairPredicate self) -> PyObject *"""
11450  return _IMP_core.UnorderedTypePairPredicate__get_as_binary(self)
11451 
11452  def _set_from_binary(self, p):
11453  r"""_set_from_binary(UnorderedTypePairPredicate self, PyObject * p)"""
11454  return _IMP_core.UnorderedTypePairPredicate__set_from_binary(self, p)
11455 
11456  def __getstate__(self):
11457  p = self._get_as_binary()
11458  if len(self.__dict__) > 1:
11459  d = self.__dict__.copy()
11460  del d['this']
11461  p = (d, p)
11462  return p
11463 
11464  def __setstate__(self, p):
11465  if not hasattr(self, 'this'):
11466  self.__init__()
11467  if isinstance(p, tuple):
11468  d, p = p
11469  self.__dict__.update(d)
11470  return self._set_from_binary(p)
11471 
11472 
11473 # Register UnorderedTypePairPredicate in _IMP_core:
11474 _IMP_core.UnorderedTypePairPredicate_swigregister(UnorderedTypePairPredicate)
11475 class OrderedTypePairPredicate(IMP.PairPredicate):
11476  r"""Proxy of C++ IMP::core::OrderedTypePairPredicate class."""
11477 
11478  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11479 
11480  def __init__(self, *args):
11481  r"""__init__(OrderedTypePairPredicate self, std::string name="OrderedTypePairPredicate%1%") -> OrderedTypePairPredicate"""
11482  _IMP_core.OrderedTypePairPredicate_swiginit(self, _IMP_core.new_OrderedTypePairPredicate(*args))
11483 
11484  def do_get_inputs(self, m, pis):
11485  r"""do_get_inputs(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11486  return _IMP_core.OrderedTypePairPredicate_do_get_inputs(self, m, pis)
11487 
11488  def get_value(self, *args):
11489  r"""
11490  get_value(OrderedTypePairPredicate self, IMP::core::ParticleTypes const & types) -> int
11491  get_value(OrderedTypePairPredicate self, IMP::ParticlePair const & a) -> int
11492  get_value(OrderedTypePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11493  """
11494  return _IMP_core.OrderedTypePairPredicate_get_value(self, *args)
11495 
11496  def get_value_index(self, *args):
11497  r"""
11498  get_value_index(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11499  get_value_index(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11500  """
11501  return _IMP_core.OrderedTypePairPredicate_get_value_index(self, *args)
11502 
11503  def get_version_info(self):
11504  r"""get_version_info(OrderedTypePairPredicate self) -> VersionInfo"""
11505  return _IMP_core.OrderedTypePairPredicate_get_version_info(self)
11506  __swig_destroy__ = _IMP_core.delete_OrderedTypePairPredicate
11507 
11508  def __str__(self):
11509  r"""__str__(OrderedTypePairPredicate self) -> std::string"""
11510  return _IMP_core.OrderedTypePairPredicate___str__(self)
11511 
11512  def __repr__(self):
11513  r"""__repr__(OrderedTypePairPredicate self) -> std::string"""
11514  return _IMP_core.OrderedTypePairPredicate___repr__(self)
11515 
11516  @staticmethod
11517  def get_from(o):
11518  return _object_cast_to_OrderedTypePairPredicate(o)
11519 
11520 
11521 # Register OrderedTypePairPredicate in _IMP_core:
11522 _IMP_core.OrderedTypePairPredicate_swigregister(OrderedTypePairPredicate)
11523 class AllSamePairPredicate(IMP.PairPredicate):
11524  r"""Proxy of C++ IMP::core::AllSamePairPredicate class."""
11525 
11526  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11527 
11528  def __init__(self, *args):
11529  r"""__init__(AllSamePairPredicate self, std::string name="AllSamePairPredicate%1%") -> AllSamePairPredicate"""
11530  _IMP_core.AllSamePairPredicate_swiginit(self, _IMP_core.new_AllSamePairPredicate(*args))
11531 
11532  def do_get_inputs(self, arg2, arg3):
11533  r"""do_get_inputs(AllSamePairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11534  return _IMP_core.AllSamePairPredicate_do_get_inputs(self, arg2, arg3)
11535 
11536  def get_value(self, *args):
11537  r"""
11538  get_value(AllSamePairPredicate self, IMP::ParticlePair const & a) -> int
11539  get_value(AllSamePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11540  """
11541  return _IMP_core.AllSamePairPredicate_get_value(self, *args)
11542 
11543  def get_value_index(self, *args):
11544  r"""
11545  get_value_index(AllSamePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11546  get_value_index(AllSamePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11547  """
11548  return _IMP_core.AllSamePairPredicate_get_value_index(self, *args)
11549 
11550  def get_version_info(self):
11551  r"""get_version_info(AllSamePairPredicate self) -> VersionInfo"""
11552  return _IMP_core.AllSamePairPredicate_get_version_info(self)
11553  __swig_destroy__ = _IMP_core.delete_AllSamePairPredicate
11554 
11555  def __str__(self):
11556  r"""__str__(AllSamePairPredicate self) -> std::string"""
11557  return _IMP_core.AllSamePairPredicate___str__(self)
11558 
11559  def __repr__(self):
11560  r"""__repr__(AllSamePairPredicate self) -> std::string"""
11561  return _IMP_core.AllSamePairPredicate___repr__(self)
11562 
11563  @staticmethod
11564  def get_from(o):
11565  return _object_cast_to_AllSamePairPredicate(o)
11566 
11567 
11568  def _get_as_binary(self):
11569  r"""_get_as_binary(AllSamePairPredicate self) -> PyObject *"""
11570  return _IMP_core.AllSamePairPredicate__get_as_binary(self)
11571 
11572  def _set_from_binary(self, p):
11573  r"""_set_from_binary(AllSamePairPredicate self, PyObject * p)"""
11574  return _IMP_core.AllSamePairPredicate__set_from_binary(self, p)
11575 
11576  def __getstate__(self):
11577  p = self._get_as_binary()
11578  if len(self.__dict__) > 1:
11579  d = self.__dict__.copy()
11580  del d['this']
11581  p = (d, p)
11582  return p
11583 
11584  def __setstate__(self, p):
11585  if not hasattr(self, 'this'):
11586  self.__init__()
11587  if isinstance(p, tuple):
11588  d, p = p
11589  self.__dict__.update(d)
11590  return self._set_from_binary(p)
11591 
11592 
11593 # Register AllSamePairPredicate in _IMP_core:
11594 _IMP_core.AllSamePairPredicate_swigregister(AllSamePairPredicate)
11595 class CoinFlipPairPredicate(IMP.PairPredicate):
11596  r"""Proxy of C++ IMP::core::CoinFlipPairPredicate class."""
11597 
11598  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11599 
11600  def __init__(self, *args):
11601  r"""__init__(CoinFlipPairPredicate self, double p, std::string name="CoinFlipPairPredicate%1%") -> CoinFlipPairPredicate"""
11602  _IMP_core.CoinFlipPairPredicate_swiginit(self, _IMP_core.new_CoinFlipPairPredicate(*args))
11603 
11604  def do_get_inputs(self, arg2, arg3):
11605  r"""do_get_inputs(CoinFlipPairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11606  return _IMP_core.CoinFlipPairPredicate_do_get_inputs(self, arg2, arg3)
11607 
11608  def get_value(self, *args):
11609  r"""
11610  get_value(CoinFlipPairPredicate self, IMP::ParticlePair const & a) -> int
11611  get_value(CoinFlipPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11612  """
11613  return _IMP_core.CoinFlipPairPredicate_get_value(self, *args)
11614 
11615  def get_value_index(self, *args):
11616  r"""
11617  get_value_index(CoinFlipPairPredicate self, Model arg2, IMP::ParticleIndexPair const & arg3) -> int
11618  get_value_index(CoinFlipPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11619  """
11620  return _IMP_core.CoinFlipPairPredicate_get_value_index(self, *args)
11621 
11622  def get_version_info(self):
11623  r"""get_version_info(CoinFlipPairPredicate self) -> VersionInfo"""
11624  return _IMP_core.CoinFlipPairPredicate_get_version_info(self)
11625  __swig_destroy__ = _IMP_core.delete_CoinFlipPairPredicate
11626 
11627  def __str__(self):
11628  r"""__str__(CoinFlipPairPredicate self) -> std::string"""
11629  return _IMP_core.CoinFlipPairPredicate___str__(self)
11630 
11631  def __repr__(self):
11632  r"""__repr__(CoinFlipPairPredicate self) -> std::string"""
11633  return _IMP_core.CoinFlipPairPredicate___repr__(self)
11634 
11635  @staticmethod
11636  def get_from(o):
11637  return _object_cast_to_CoinFlipPairPredicate(o)
11638 
11639 
11640 # Register CoinFlipPairPredicate in _IMP_core:
11641 _IMP_core.CoinFlipPairPredicate_swigregister(CoinFlipPairPredicate)
11642 class ConstantTripletPredicate(IMP.TripletPredicate):
11643  r"""Proxy of C++ IMP::core::ConstantTripletPredicate class."""
11644 
11645  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11646 
11647  def __init__(self, *args):
11648  r"""
11649  __init__(ConstantTripletPredicate self, int v, std::string name="ConstTripletPredicate%1%") -> ConstantTripletPredicate
11650  __init__(ConstantTripletPredicate self) -> ConstantTripletPredicate
11651  """
11652  _IMP_core.ConstantTripletPredicate_swiginit(self, _IMP_core.new_ConstantTripletPredicate(*args))
11653 
11654  def do_get_inputs(self, arg2, arg3):
11655  r"""do_get_inputs(ConstantTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11656  return _IMP_core.ConstantTripletPredicate_do_get_inputs(self, arg2, arg3)
11657 
11658  def get_value(self, *args):
11659  r"""
11660  get_value(ConstantTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11661  get_value(ConstantTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11662  """
11663  return _IMP_core.ConstantTripletPredicate_get_value(self, *args)
11664 
11665  def get_value_index(self, *args):
11666  r"""
11667  get_value_index(ConstantTripletPredicate self, Model arg2, IMP::ParticleIndexTriplet const & arg3) -> int
11668  get_value_index(ConstantTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11669  """
11670  return _IMP_core.ConstantTripletPredicate_get_value_index(self, *args)
11671 
11672  def get_version_info(self):
11673  r"""get_version_info(ConstantTripletPredicate self) -> VersionInfo"""
11674  return _IMP_core.ConstantTripletPredicate_get_version_info(self)
11675  __swig_destroy__ = _IMP_core.delete_ConstantTripletPredicate
11676 
11677  def __str__(self):
11678  r"""__str__(ConstantTripletPredicate self) -> std::string"""
11679  return _IMP_core.ConstantTripletPredicate___str__(self)
11680 
11681  def __repr__(self):
11682  r"""__repr__(ConstantTripletPredicate self) -> std::string"""
11683  return _IMP_core.ConstantTripletPredicate___repr__(self)
11684 
11685  @staticmethod
11686  def get_from(o):
11687  return _object_cast_to_ConstantTripletPredicate(o)
11688 
11689 
11690  def _get_as_binary(self):
11691  r"""_get_as_binary(ConstantTripletPredicate self) -> PyObject *"""
11692  return _IMP_core.ConstantTripletPredicate__get_as_binary(self)
11693 
11694  def _set_from_binary(self, p):
11695  r"""_set_from_binary(ConstantTripletPredicate self, PyObject * p)"""
11696  return _IMP_core.ConstantTripletPredicate__set_from_binary(self, p)
11697 
11698  def __getstate__(self):
11699  p = self._get_as_binary()
11700  if len(self.__dict__) > 1:
11701  d = self.__dict__.copy()
11702  del d['this']
11703  p = (d, p)
11704  return p
11705 
11706  def __setstate__(self, p):
11707  if not hasattr(self, 'this'):
11708  self.__init__()
11709  if isinstance(p, tuple):
11710  d, p = p
11711  self.__dict__.update(d)
11712  return self._set_from_binary(p)
11713 
11714 
11715 # Register ConstantTripletPredicate in _IMP_core:
11716 _IMP_core.ConstantTripletPredicate_swigregister(ConstantTripletPredicate)
11717 class UnorderedTypeTripletPredicate(IMP.TripletPredicate):
11718  r"""Proxy of C++ IMP::core::UnorderedTypeTripletPredicate class."""
11719 
11720  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11721 
11722  def __init__(self, *args):
11723  r"""__init__(UnorderedTypeTripletPredicate self, std::string name="UnorderedTypeTripletPredicate%1%") -> UnorderedTypeTripletPredicate"""
11724  _IMP_core.UnorderedTypeTripletPredicate_swiginit(self, _IMP_core.new_UnorderedTypeTripletPredicate(*args))
11725 
11726  def do_get_inputs(self, m, pis):
11727  r"""do_get_inputs(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11728  return _IMP_core.UnorderedTypeTripletPredicate_do_get_inputs(self, m, pis)
11729 
11730  def get_value(self, *args):
11731  r"""
11732  get_value(UnorderedTypeTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11733  get_value(UnorderedTypeTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11734  """
11735  return _IMP_core.UnorderedTypeTripletPredicate_get_value(self, *args)
11736 
11737  def get_value_index(self, *args):
11738  r"""
11739  get_value_index(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
11740  get_value_index(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11741  """
11742  return _IMP_core.UnorderedTypeTripletPredicate_get_value_index(self, *args)
11743 
11744  def get_version_info(self):
11745  r"""get_version_info(UnorderedTypeTripletPredicate self) -> VersionInfo"""
11746  return _IMP_core.UnorderedTypeTripletPredicate_get_version_info(self)
11747  __swig_destroy__ = _IMP_core.delete_UnorderedTypeTripletPredicate
11748 
11749  def __str__(self):
11750  r"""__str__(UnorderedTypeTripletPredicate self) -> std::string"""
11751  return _IMP_core.UnorderedTypeTripletPredicate___str__(self)
11752 
11753  def __repr__(self):
11754  r"""__repr__(UnorderedTypeTripletPredicate self) -> std::string"""
11755  return _IMP_core.UnorderedTypeTripletPredicate___repr__(self)
11756 
11757  @staticmethod
11758  def get_from(o):
11759  return _object_cast_to_UnorderedTypeTripletPredicate(o)
11760 
11761 
11762  def _get_as_binary(self):
11763  r"""_get_as_binary(UnorderedTypeTripletPredicate self) -> PyObject *"""
11764  return _IMP_core.UnorderedTypeTripletPredicate__get_as_binary(self)
11765 
11766  def _set_from_binary(self, p):
11767  r"""_set_from_binary(UnorderedTypeTripletPredicate self, PyObject * p)"""
11768  return _IMP_core.UnorderedTypeTripletPredicate__set_from_binary(self, p)
11769 
11770  def __getstate__(self):
11771  p = self._get_as_binary()
11772  if len(self.__dict__) > 1:
11773  d = self.__dict__.copy()
11774  del d['this']
11775  p = (d, p)
11776  return p
11777 
11778  def __setstate__(self, p):
11779  if not hasattr(self, 'this'):
11780  self.__init__()
11781  if isinstance(p, tuple):
11782  d, p = p
11783  self.__dict__.update(d)
11784  return self._set_from_binary(p)
11785 
11786 
11787 # Register UnorderedTypeTripletPredicate in _IMP_core:
11788 _IMP_core.UnorderedTypeTripletPredicate_swigregister(UnorderedTypeTripletPredicate)
11789 class OrderedTypeTripletPredicate(IMP.TripletPredicate):
11790  r"""Proxy of C++ IMP::core::OrderedTypeTripletPredicate class."""
11791 
11792  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11793 
11794  def __init__(self, *args):
11795  r"""__init__(OrderedTypeTripletPredicate self, std::string name="OrderedTypeTripletPredicate%1%") -> OrderedTypeTripletPredicate"""
11796  _IMP_core.OrderedTypeTripletPredicate_swiginit(self, _IMP_core.new_OrderedTypeTripletPredicate(*args))
11797 
11798  def do_get_inputs(self, m, pis):
11799  r"""do_get_inputs(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11800  return _IMP_core.OrderedTypeTripletPredicate_do_get_inputs(self, m, pis)
11801 
11802  def get_value(self, *args):
11803  r"""
11804  get_value(OrderedTypeTripletPredicate self, IMP::core::ParticleTypes const & types) -> int
11805  get_value(OrderedTypeTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11806  get_value(OrderedTypeTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11807  """
11808  return _IMP_core.OrderedTypeTripletPredicate_get_value(self, *args)
11809 
11810  def get_value_index(self, *args):
11811  r"""
11812  get_value_index(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
11813  get_value_index(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11814  """
11815  return _IMP_core.OrderedTypeTripletPredicate_get_value_index(self, *args)
11816 
11817  def get_version_info(self):
11818  r"""get_version_info(OrderedTypeTripletPredicate self) -> VersionInfo"""
11819  return _IMP_core.OrderedTypeTripletPredicate_get_version_info(self)
11820  __swig_destroy__ = _IMP_core.delete_OrderedTypeTripletPredicate
11821 
11822  def __str__(self):
11823  r"""__str__(OrderedTypeTripletPredicate self) -> std::string"""
11824  return _IMP_core.OrderedTypeTripletPredicate___str__(self)
11825 
11826  def __repr__(self):
11827  r"""__repr__(OrderedTypeTripletPredicate self) -> std::string"""
11828  return _IMP_core.OrderedTypeTripletPredicate___repr__(self)
11829 
11830  @staticmethod
11831  def get_from(o):
11832  return _object_cast_to_OrderedTypeTripletPredicate(o)
11833 
11834 
11835 # Register OrderedTypeTripletPredicate in _IMP_core:
11836 _IMP_core.OrderedTypeTripletPredicate_swigregister(OrderedTypeTripletPredicate)
11837 class AllSameTripletPredicate(IMP.TripletPredicate):
11838  r"""Proxy of C++ IMP::core::AllSameTripletPredicate class."""
11839 
11840  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11841 
11842  def __init__(self, *args):
11843  r"""__init__(AllSameTripletPredicate self, std::string name="AllSameTripletPredicate%1%") -> AllSameTripletPredicate"""
11844  _IMP_core.AllSameTripletPredicate_swiginit(self, _IMP_core.new_AllSameTripletPredicate(*args))
11845 
11846  def do_get_inputs(self, arg2, arg3):
11847  r"""do_get_inputs(AllSameTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11848  return _IMP_core.AllSameTripletPredicate_do_get_inputs(self, arg2, arg3)
11849 
11850  def get_value(self, *args):
11851  r"""
11852  get_value(AllSameTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11853  get_value(AllSameTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11854  """
11855  return _IMP_core.AllSameTripletPredicate_get_value(self, *args)
11856 
11857  def get_value_index(self, *args):
11858  r"""
11859  get_value_index(AllSameTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
11860  get_value_index(AllSameTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11861  """
11862  return _IMP_core.AllSameTripletPredicate_get_value_index(self, *args)
11863 
11864  def get_version_info(self):
11865  r"""get_version_info(AllSameTripletPredicate self) -> VersionInfo"""
11866  return _IMP_core.AllSameTripletPredicate_get_version_info(self)
11867  __swig_destroy__ = _IMP_core.delete_AllSameTripletPredicate
11868 
11869  def __str__(self):
11870  r"""__str__(AllSameTripletPredicate self) -> std::string"""
11871  return _IMP_core.AllSameTripletPredicate___str__(self)
11872 
11873  def __repr__(self):
11874  r"""__repr__(AllSameTripletPredicate self) -> std::string"""
11875  return _IMP_core.AllSameTripletPredicate___repr__(self)
11876 
11877  @staticmethod
11878  def get_from(o):
11879  return _object_cast_to_AllSameTripletPredicate(o)
11880 
11881 
11882  def _get_as_binary(self):
11883  r"""_get_as_binary(AllSameTripletPredicate self) -> PyObject *"""
11884  return _IMP_core.AllSameTripletPredicate__get_as_binary(self)
11885 
11886  def _set_from_binary(self, p):
11887  r"""_set_from_binary(AllSameTripletPredicate self, PyObject * p)"""
11888  return _IMP_core.AllSameTripletPredicate__set_from_binary(self, p)
11889 
11890  def __getstate__(self):
11891  p = self._get_as_binary()
11892  if len(self.__dict__) > 1:
11893  d = self.__dict__.copy()
11894  del d['this']
11895  p = (d, p)
11896  return p
11897 
11898  def __setstate__(self, p):
11899  if not hasattr(self, 'this'):
11900  self.__init__()
11901  if isinstance(p, tuple):
11902  d, p = p
11903  self.__dict__.update(d)
11904  return self._set_from_binary(p)
11905 
11906 
11907 # Register AllSameTripletPredicate in _IMP_core:
11908 _IMP_core.AllSameTripletPredicate_swigregister(AllSameTripletPredicate)
11909 class CoinFlipTripletPredicate(IMP.TripletPredicate):
11910  r"""Proxy of C++ IMP::core::CoinFlipTripletPredicate class."""
11911 
11912  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11913 
11914  def __init__(self, *args):
11915  r"""__init__(CoinFlipTripletPredicate self, double p, std::string name="CoinFlipTripletPredicate%1%") -> CoinFlipTripletPredicate"""
11916  _IMP_core.CoinFlipTripletPredicate_swiginit(self, _IMP_core.new_CoinFlipTripletPredicate(*args))
11917 
11918  def do_get_inputs(self, arg2, arg3):
11919  r"""do_get_inputs(CoinFlipTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11920  return _IMP_core.CoinFlipTripletPredicate_do_get_inputs(self, arg2, arg3)
11921 
11922  def get_value(self, *args):
11923  r"""
11924  get_value(CoinFlipTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11925  get_value(CoinFlipTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11926  """
11927  return _IMP_core.CoinFlipTripletPredicate_get_value(self, *args)
11928 
11929  def get_value_index(self, *args):
11930  r"""
11931  get_value_index(CoinFlipTripletPredicate self, Model arg2, IMP::ParticleIndexTriplet const & arg3) -> int
11932  get_value_index(CoinFlipTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11933  """
11934  return _IMP_core.CoinFlipTripletPredicate_get_value_index(self, *args)
11935 
11936  def get_version_info(self):
11937  r"""get_version_info(CoinFlipTripletPredicate self) -> VersionInfo"""
11938  return _IMP_core.CoinFlipTripletPredicate_get_version_info(self)
11939  __swig_destroy__ = _IMP_core.delete_CoinFlipTripletPredicate
11940 
11941  def __str__(self):
11942  r"""__str__(CoinFlipTripletPredicate self) -> std::string"""
11943  return _IMP_core.CoinFlipTripletPredicate___str__(self)
11944 
11945  def __repr__(self):
11946  r"""__repr__(CoinFlipTripletPredicate self) -> std::string"""
11947  return _IMP_core.CoinFlipTripletPredicate___repr__(self)
11948 
11949  @staticmethod
11950  def get_from(o):
11951  return _object_cast_to_CoinFlipTripletPredicate(o)
11952 
11953 
11954 # Register CoinFlipTripletPredicate in _IMP_core:
11955 _IMP_core.CoinFlipTripletPredicate_swigregister(CoinFlipTripletPredicate)
11956 class ConstantQuadPredicate(IMP.QuadPredicate):
11957  r"""Proxy of C++ IMP::core::ConstantQuadPredicate class."""
11958 
11959  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11960 
11961  def __init__(self, *args):
11962  r"""
11963  __init__(ConstantQuadPredicate self, int v, std::string name="ConstQuadPredicate%1%") -> ConstantQuadPredicate
11964  __init__(ConstantQuadPredicate self) -> ConstantQuadPredicate
11965  """
11966  _IMP_core.ConstantQuadPredicate_swiginit(self, _IMP_core.new_ConstantQuadPredicate(*args))
11967 
11968  def do_get_inputs(self, arg2, arg3):
11969  r"""do_get_inputs(ConstantQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11970  return _IMP_core.ConstantQuadPredicate_do_get_inputs(self, arg2, arg3)
11971 
11972  def get_value(self, *args):
11973  r"""
11974  get_value(ConstantQuadPredicate self, IMP::ParticleQuad const & a) -> int
11975  get_value(ConstantQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
11976  """
11977  return _IMP_core.ConstantQuadPredicate_get_value(self, *args)
11978 
11979  def get_value_index(self, *args):
11980  r"""
11981  get_value_index(ConstantQuadPredicate self, Model arg2, IMP::ParticleIndexQuad const & arg3) -> int
11982  get_value_index(ConstantQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
11983  """
11984  return _IMP_core.ConstantQuadPredicate_get_value_index(self, *args)
11985 
11986  def get_version_info(self):
11987  r"""get_version_info(ConstantQuadPredicate self) -> VersionInfo"""
11988  return _IMP_core.ConstantQuadPredicate_get_version_info(self)
11989  __swig_destroy__ = _IMP_core.delete_ConstantQuadPredicate
11990 
11991  def __str__(self):
11992  r"""__str__(ConstantQuadPredicate self) -> std::string"""
11993  return _IMP_core.ConstantQuadPredicate___str__(self)
11994 
11995  def __repr__(self):
11996  r"""__repr__(ConstantQuadPredicate self) -> std::string"""
11997  return _IMP_core.ConstantQuadPredicate___repr__(self)
11998 
11999  @staticmethod
12000  def get_from(o):
12001  return _object_cast_to_ConstantQuadPredicate(o)
12002 
12003 
12004  def _get_as_binary(self):
12005  r"""_get_as_binary(ConstantQuadPredicate self) -> PyObject *"""
12006  return _IMP_core.ConstantQuadPredicate__get_as_binary(self)
12007 
12008  def _set_from_binary(self, p):
12009  r"""_set_from_binary(ConstantQuadPredicate self, PyObject * p)"""
12010  return _IMP_core.ConstantQuadPredicate__set_from_binary(self, p)
12011 
12012  def __getstate__(self):
12013  p = self._get_as_binary()
12014  if len(self.__dict__) > 1:
12015  d = self.__dict__.copy()
12016  del d['this']
12017  p = (d, p)
12018  return p
12019 
12020  def __setstate__(self, p):
12021  if not hasattr(self, 'this'):
12022  self.__init__()
12023  if isinstance(p, tuple):
12024  d, p = p
12025  self.__dict__.update(d)
12026  return self._set_from_binary(p)
12027 
12028 
12029 # Register ConstantQuadPredicate in _IMP_core:
12030 _IMP_core.ConstantQuadPredicate_swigregister(ConstantQuadPredicate)
12031 class UnorderedTypeQuadPredicate(IMP.QuadPredicate):
12032  r"""Proxy of C++ IMP::core::UnorderedTypeQuadPredicate class."""
12033 
12034  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12035 
12036  def __init__(self, *args):
12037  r"""__init__(UnorderedTypeQuadPredicate self, std::string name="UnorderedTypeQuadPredicate%1%") -> UnorderedTypeQuadPredicate"""
12038  _IMP_core.UnorderedTypeQuadPredicate_swiginit(self, _IMP_core.new_UnorderedTypeQuadPredicate(*args))
12039 
12040  def do_get_inputs(self, m, pis):
12041  r"""do_get_inputs(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12042  return _IMP_core.UnorderedTypeQuadPredicate_do_get_inputs(self, m, pis)
12043 
12044  def get_value(self, *args):
12045  r"""
12046  get_value(UnorderedTypeQuadPredicate self, IMP::ParticleQuad const & a) -> int
12047  get_value(UnorderedTypeQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12048  """
12049  return _IMP_core.UnorderedTypeQuadPredicate_get_value(self, *args)
12050 
12051  def get_value_index(self, *args):
12052  r"""
12053  get_value_index(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12054  get_value_index(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12055  """
12056  return _IMP_core.UnorderedTypeQuadPredicate_get_value_index(self, *args)
12057 
12058  def get_version_info(self):
12059  r"""get_version_info(UnorderedTypeQuadPredicate self) -> VersionInfo"""
12060  return _IMP_core.UnorderedTypeQuadPredicate_get_version_info(self)
12061  __swig_destroy__ = _IMP_core.delete_UnorderedTypeQuadPredicate
12062 
12063  def __str__(self):
12064  r"""__str__(UnorderedTypeQuadPredicate self) -> std::string"""
12065  return _IMP_core.UnorderedTypeQuadPredicate___str__(self)
12066 
12067  def __repr__(self):
12068  r"""__repr__(UnorderedTypeQuadPredicate self) -> std::string"""
12069  return _IMP_core.UnorderedTypeQuadPredicate___repr__(self)
12070 
12071  @staticmethod
12072  def get_from(o):
12073  return _object_cast_to_UnorderedTypeQuadPredicate(o)
12074 
12075 
12076  def _get_as_binary(self):
12077  r"""_get_as_binary(UnorderedTypeQuadPredicate self) -> PyObject *"""
12078  return _IMP_core.UnorderedTypeQuadPredicate__get_as_binary(self)
12079 
12080  def _set_from_binary(self, p):
12081  r"""_set_from_binary(UnorderedTypeQuadPredicate self, PyObject * p)"""
12082  return _IMP_core.UnorderedTypeQuadPredicate__set_from_binary(self, p)
12083 
12084  def __getstate__(self):
12085  p = self._get_as_binary()
12086  if len(self.__dict__) > 1:
12087  d = self.__dict__.copy()
12088  del d['this']
12089  p = (d, p)
12090  return p
12091 
12092  def __setstate__(self, p):
12093  if not hasattr(self, 'this'):
12094  self.__init__()
12095  if isinstance(p, tuple):
12096  d, p = p
12097  self.__dict__.update(d)
12098  return self._set_from_binary(p)
12099 
12100 
12101 # Register UnorderedTypeQuadPredicate in _IMP_core:
12102 _IMP_core.UnorderedTypeQuadPredicate_swigregister(UnorderedTypeQuadPredicate)
12103 class OrderedTypeQuadPredicate(IMP.QuadPredicate):
12104  r"""Proxy of C++ IMP::core::OrderedTypeQuadPredicate class."""
12105 
12106  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12107 
12108  def __init__(self, *args):
12109  r"""__init__(OrderedTypeQuadPredicate self, std::string name="OrderedTypeQuadPredicate%1%") -> OrderedTypeQuadPredicate"""
12110  _IMP_core.OrderedTypeQuadPredicate_swiginit(self, _IMP_core.new_OrderedTypeQuadPredicate(*args))
12111 
12112  def do_get_inputs(self, m, pis):
12113  r"""do_get_inputs(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12114  return _IMP_core.OrderedTypeQuadPredicate_do_get_inputs(self, m, pis)
12115 
12116  def get_value(self, *args):
12117  r"""
12118  get_value(OrderedTypeQuadPredicate self, IMP::core::ParticleTypes const & types) -> int
12119  get_value(OrderedTypeQuadPredicate self, IMP::ParticleQuad const & a) -> int
12120  get_value(OrderedTypeQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12121  """
12122  return _IMP_core.OrderedTypeQuadPredicate_get_value(self, *args)
12123 
12124  def get_value_index(self, *args):
12125  r"""
12126  get_value_index(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12127  get_value_index(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12128  """
12129  return _IMP_core.OrderedTypeQuadPredicate_get_value_index(self, *args)
12130 
12131  def get_version_info(self):
12132  r"""get_version_info(OrderedTypeQuadPredicate self) -> VersionInfo"""
12133  return _IMP_core.OrderedTypeQuadPredicate_get_version_info(self)
12134  __swig_destroy__ = _IMP_core.delete_OrderedTypeQuadPredicate
12135 
12136  def __str__(self):
12137  r"""__str__(OrderedTypeQuadPredicate self) -> std::string"""
12138  return _IMP_core.OrderedTypeQuadPredicate___str__(self)
12139 
12140  def __repr__(self):
12141  r"""__repr__(OrderedTypeQuadPredicate self) -> std::string"""
12142  return _IMP_core.OrderedTypeQuadPredicate___repr__(self)
12143 
12144  @staticmethod
12145  def get_from(o):
12146  return _object_cast_to_OrderedTypeQuadPredicate(o)
12147 
12148 
12149 # Register OrderedTypeQuadPredicate in _IMP_core:
12150 _IMP_core.OrderedTypeQuadPredicate_swigregister(OrderedTypeQuadPredicate)
12151 class AllSameQuadPredicate(IMP.QuadPredicate):
12152  r"""Proxy of C++ IMP::core::AllSameQuadPredicate class."""
12153 
12154  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12155 
12156  def __init__(self, *args):
12157  r"""__init__(AllSameQuadPredicate self, std::string name="AllSameQuadPredicate%1%") -> AllSameQuadPredicate"""
12158  _IMP_core.AllSameQuadPredicate_swiginit(self, _IMP_core.new_AllSameQuadPredicate(*args))
12159 
12160  def do_get_inputs(self, arg2, arg3):
12161  r"""do_get_inputs(AllSameQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12162  return _IMP_core.AllSameQuadPredicate_do_get_inputs(self, arg2, arg3)
12163 
12164  def get_value(self, *args):
12165  r"""
12166  get_value(AllSameQuadPredicate self, IMP::ParticleQuad const & a) -> int
12167  get_value(AllSameQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12168  """
12169  return _IMP_core.AllSameQuadPredicate_get_value(self, *args)
12170 
12171  def get_value_index(self, *args):
12172  r"""
12173  get_value_index(AllSameQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12174  get_value_index(AllSameQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12175  """
12176  return _IMP_core.AllSameQuadPredicate_get_value_index(self, *args)
12177 
12178  def get_version_info(self):
12179  r"""get_version_info(AllSameQuadPredicate self) -> VersionInfo"""
12180  return _IMP_core.AllSameQuadPredicate_get_version_info(self)
12181  __swig_destroy__ = _IMP_core.delete_AllSameQuadPredicate
12182 
12183  def __str__(self):
12184  r"""__str__(AllSameQuadPredicate self) -> std::string"""
12185  return _IMP_core.AllSameQuadPredicate___str__(self)
12186 
12187  def __repr__(self):
12188  r"""__repr__(AllSameQuadPredicate self) -> std::string"""
12189  return _IMP_core.AllSameQuadPredicate___repr__(self)
12190 
12191  @staticmethod
12192  def get_from(o):
12193  return _object_cast_to_AllSameQuadPredicate(o)
12194 
12195 
12196  def _get_as_binary(self):
12197  r"""_get_as_binary(AllSameQuadPredicate self) -> PyObject *"""
12198  return _IMP_core.AllSameQuadPredicate__get_as_binary(self)
12199 
12200  def _set_from_binary(self, p):
12201  r"""_set_from_binary(AllSameQuadPredicate self, PyObject * p)"""
12202  return _IMP_core.AllSameQuadPredicate__set_from_binary(self, p)
12203 
12204  def __getstate__(self):
12205  p = self._get_as_binary()
12206  if len(self.__dict__) > 1:
12207  d = self.__dict__.copy()
12208  del d['this']
12209  p = (d, p)
12210  return p
12211 
12212  def __setstate__(self, p):
12213  if not hasattr(self, 'this'):
12214  self.__init__()
12215  if isinstance(p, tuple):
12216  d, p = p
12217  self.__dict__.update(d)
12218  return self._set_from_binary(p)
12219 
12220 
12221 # Register AllSameQuadPredicate in _IMP_core:
12222 _IMP_core.AllSameQuadPredicate_swigregister(AllSameQuadPredicate)
12223 class CoinFlipQuadPredicate(IMP.QuadPredicate):
12224  r"""Proxy of C++ IMP::core::CoinFlipQuadPredicate class."""
12225 
12226  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12227 
12228  def __init__(self, *args):
12229  r"""__init__(CoinFlipQuadPredicate self, double p, std::string name="CoinFlipQuadPredicate%1%") -> CoinFlipQuadPredicate"""
12230  _IMP_core.CoinFlipQuadPredicate_swiginit(self, _IMP_core.new_CoinFlipQuadPredicate(*args))
12231 
12232  def do_get_inputs(self, arg2, arg3):
12233  r"""do_get_inputs(CoinFlipQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12234  return _IMP_core.CoinFlipQuadPredicate_do_get_inputs(self, arg2, arg3)
12235 
12236  def get_value(self, *args):
12237  r"""
12238  get_value(CoinFlipQuadPredicate self, IMP::ParticleQuad const & a) -> int
12239  get_value(CoinFlipQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12240  """
12241  return _IMP_core.CoinFlipQuadPredicate_get_value(self, *args)
12242 
12243  def get_value_index(self, *args):
12244  r"""
12245  get_value_index(CoinFlipQuadPredicate self, Model arg2, IMP::ParticleIndexQuad const & arg3) -> int
12246  get_value_index(CoinFlipQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12247  """
12248  return _IMP_core.CoinFlipQuadPredicate_get_value_index(self, *args)
12249 
12250  def get_version_info(self):
12251  r"""get_version_info(CoinFlipQuadPredicate self) -> VersionInfo"""
12252  return _IMP_core.CoinFlipQuadPredicate_get_version_info(self)
12253  __swig_destroy__ = _IMP_core.delete_CoinFlipQuadPredicate
12254 
12255  def __str__(self):
12256  r"""__str__(CoinFlipQuadPredicate self) -> std::string"""
12257  return _IMP_core.CoinFlipQuadPredicate___str__(self)
12258 
12259  def __repr__(self):
12260  r"""__repr__(CoinFlipQuadPredicate self) -> std::string"""
12261  return _IMP_core.CoinFlipQuadPredicate___repr__(self)
12262 
12263  @staticmethod
12264  def get_from(o):
12265  return _object_cast_to_CoinFlipQuadPredicate(o)
12266 
12267 
12268 # Register CoinFlipQuadPredicate in _IMP_core:
12269 _IMP_core.CoinFlipQuadPredicate_swigregister(CoinFlipQuadPredicate)
12270 class InBoundingBox3DSingletonPredicate(IMP.SingletonPredicate):
12271  r"""Proxy of C++ IMP::core::InBoundingBox3DSingletonPredicate class."""
12272 
12273  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12274 
12275  def __init__(self, *args):
12276  r"""__init__(InBoundingBox3DSingletonPredicate self, BoundingBox3D bb, std::string name="InBoundingBox3DSingletonPredicate%1%") -> InBoundingBox3DSingletonPredicate"""
12277  _IMP_core.InBoundingBox3DSingletonPredicate_swiginit(self, _IMP_core.new_InBoundingBox3DSingletonPredicate(*args))
12278 
12279  def do_get_inputs(self, m, pi):
12280  r"""do_get_inputs(InBoundingBox3DSingletonPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12281  return _IMP_core.InBoundingBox3DSingletonPredicate_do_get_inputs(self, m, pi)
12282 
12283  def get_value(self, *args):
12284  r"""
12285  get_value(InBoundingBox3DSingletonPredicate self, Particle a) -> int
12286  get_value(InBoundingBox3DSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
12287  """
12288  return _IMP_core.InBoundingBox3DSingletonPredicate_get_value(self, *args)
12289 
12290  def get_value_index(self, *args):
12291  r"""
12292  get_value_index(InBoundingBox3DSingletonPredicate self, Model m, ParticleIndex pi) -> int
12293  get_value_index(InBoundingBox3DSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
12294  """
12295  return _IMP_core.InBoundingBox3DSingletonPredicate_get_value_index(self, *args)
12296 
12297  def get_version_info(self):
12298  r"""get_version_info(InBoundingBox3DSingletonPredicate self) -> VersionInfo"""
12299  return _IMP_core.InBoundingBox3DSingletonPredicate_get_version_info(self)
12300  __swig_destroy__ = _IMP_core.delete_InBoundingBox3DSingletonPredicate
12301 
12302  def __str__(self):
12303  r"""__str__(InBoundingBox3DSingletonPredicate self) -> std::string"""
12304  return _IMP_core.InBoundingBox3DSingletonPredicate___str__(self)
12305 
12306  def __repr__(self):
12307  r"""__repr__(InBoundingBox3DSingletonPredicate self) -> std::string"""
12308  return _IMP_core.InBoundingBox3DSingletonPredicate___repr__(self)
12309 
12310  @staticmethod
12311  def get_from(o):
12312  return _object_cast_to_InBoundingBox3DSingletonPredicate(o)
12313 
12314 
12315 # Register InBoundingBox3DSingletonPredicate in _IMP_core:
12316 _IMP_core.InBoundingBox3DSingletonPredicate_swigregister(InBoundingBox3DSingletonPredicate)
12317 class AttributeSingletonPredicate(IMP.SingletonPredicate):
12318  r"""Proxy of C++ IMP::core::AttributeSingletonPredicate class."""
12319 
12320  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12321 
12322  def __init__(self, *args):
12323  r"""__init__(AttributeSingletonPredicate self, IntKey bb, std::string name="AttributeSingletonPredicate%1%") -> AttributeSingletonPredicate"""
12324  _IMP_core.AttributeSingletonPredicate_swiginit(self, _IMP_core.new_AttributeSingletonPredicate(*args))
12325 
12326  def do_get_inputs(self, m, pi):
12327  r"""do_get_inputs(AttributeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12328  return _IMP_core.AttributeSingletonPredicate_do_get_inputs(self, m, pi)
12329 
12330  def get_value(self, *args):
12331  r"""
12332  get_value(AttributeSingletonPredicate self, Particle a) -> int
12333  get_value(AttributeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
12334  """
12335  return _IMP_core.AttributeSingletonPredicate_get_value(self, *args)
12336 
12337  def get_value_index(self, *args):
12338  r"""
12339  get_value_index(AttributeSingletonPredicate self, Model m, ParticleIndex pi) -> int
12340  get_value_index(AttributeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
12341  """
12342  return _IMP_core.AttributeSingletonPredicate_get_value_index(self, *args)
12343 
12344  def get_version_info(self):
12345  r"""get_version_info(AttributeSingletonPredicate self) -> VersionInfo"""
12346  return _IMP_core.AttributeSingletonPredicate_get_version_info(self)
12347  __swig_destroy__ = _IMP_core.delete_AttributeSingletonPredicate
12348 
12349  def __str__(self):
12350  r"""__str__(AttributeSingletonPredicate self) -> std::string"""
12351  return _IMP_core.AttributeSingletonPredicate___str__(self)
12352 
12353  def __repr__(self):
12354  r"""__repr__(AttributeSingletonPredicate self) -> std::string"""
12355  return _IMP_core.AttributeSingletonPredicate___repr__(self)
12356 
12357  @staticmethod
12358  def get_from(o):
12359  return _object_cast_to_AttributeSingletonPredicate(o)
12360 
12361 
12362 # Register AttributeSingletonPredicate in _IMP_core:
12363 _IMP_core.AttributeSingletonPredicate_swigregister(AttributeSingletonPredicate)
12364 class IsCollisionPairPredicate(IMP.PairPredicate):
12365  r"""Proxy of C++ IMP::core::IsCollisionPairPredicate class."""
12366 
12367  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12368 
12369  def __init__(self, *args):
12370  r"""__init__(IsCollisionPairPredicate self, std::string name="CollisionPairPredicate%1%") -> IsCollisionPairPredicate"""
12371  _IMP_core.IsCollisionPairPredicate_swiginit(self, _IMP_core.new_IsCollisionPairPredicate(*args))
12372 
12373  def do_get_inputs(self, m, pi):
12374  r"""do_get_inputs(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12375  return _IMP_core.IsCollisionPairPredicate_do_get_inputs(self, m, pi)
12376 
12377  def get_value(self, *args):
12378  r"""
12379  get_value(IsCollisionPairPredicate self, IMP::ParticlePair const & a) -> int
12380  get_value(IsCollisionPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
12381  """
12382  return _IMP_core.IsCollisionPairPredicate_get_value(self, *args)
12383 
12384  def get_value_index(self, *args):
12385  r"""
12386  get_value_index(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
12387  get_value_index(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
12388  """
12389  return _IMP_core.IsCollisionPairPredicate_get_value_index(self, *args)
12390 
12391  def get_version_info(self):
12392  r"""get_version_info(IsCollisionPairPredicate self) -> VersionInfo"""
12393  return _IMP_core.IsCollisionPairPredicate_get_version_info(self)
12394  __swig_destroy__ = _IMP_core.delete_IsCollisionPairPredicate
12395 
12396  def __str__(self):
12397  r"""__str__(IsCollisionPairPredicate self) -> std::string"""
12398  return _IMP_core.IsCollisionPairPredicate___str__(self)
12399 
12400  def __repr__(self):
12401  r"""__repr__(IsCollisionPairPredicate self) -> std::string"""
12402  return _IMP_core.IsCollisionPairPredicate___repr__(self)
12403 
12404  @staticmethod
12405  def get_from(o):
12406  return _object_cast_to_IsCollisionPairPredicate(o)
12407 
12408 
12409 # Register IsCollisionPairPredicate in _IMP_core:
12410 _IMP_core.IsCollisionPairPredicate_swigregister(IsCollisionPairPredicate)
12411 class AngleRestraint(TripletRestraint):
12412  r"""Proxy of C++ IMP::core::AngleRestraint class."""
12413 
12414  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12415 
12416  def __init__(self, *args):
12417  r"""
12418  __init__(AngleRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3) -> AngleRestraint
12419  __init__(AngleRestraint self) -> AngleRestraint
12420  """
12421  _IMP_core.AngleRestraint_swiginit(self, _IMP_core.new_AngleRestraint(*args))
12422  __swig_destroy__ = _IMP_core.delete_AngleRestraint
12423 
12424  def __str__(self):
12425  r"""__str__(AngleRestraint self) -> std::string"""
12426  return _IMP_core.AngleRestraint___str__(self)
12427 
12428  def __repr__(self):
12429  r"""__repr__(AngleRestraint self) -> std::string"""
12430  return _IMP_core.AngleRestraint___repr__(self)
12431 
12432  @staticmethod
12433  def get_from(o):
12434  return _object_cast_to_AngleRestraint(o)
12435 
12436 
12437  def _get_as_binary(self):
12438  r"""_get_as_binary(AngleRestraint self) -> PyObject *"""
12439  return _IMP_core.AngleRestraint__get_as_binary(self)
12440 
12441  def _set_from_binary(self, p):
12442  r"""_set_from_binary(AngleRestraint self, PyObject * p)"""
12443  return _IMP_core.AngleRestraint__set_from_binary(self, p)
12444 
12445  def __getstate__(self):
12446  p = self._get_as_binary()
12447  if len(self.__dict__) > 1:
12448  d = self.__dict__.copy()
12449  del d['this']
12450  p = (d, p)
12451  return p
12452 
12453  def __setstate__(self, p):
12454  if not hasattr(self, 'this'):
12455  self.__init__()
12456  if isinstance(p, tuple):
12457  d, p = p
12458  self.__dict__.update(d)
12459  return self._set_from_binary(p)
12460 
12461 
12462 # Register AngleRestraint in _IMP_core:
12463 _IMP_core.AngleRestraint_swigregister(AngleRestraint)
12464 class RigidBodyMover(MonteCarloMover):
12465  r"""Proxy of C++ IMP::core::RigidBodyMover class."""
12466 
12467  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12468 
12469  def __init__(self, *args):
12470  r"""
12471  __init__(RigidBodyMover self, Model m, ParticleIndex pi, IMP::Float max_translation, IMP::Float max_rotation) -> RigidBodyMover
12472  __init__(RigidBodyMover self) -> RigidBodyMover
12473  """
12474  _IMP_core.RigidBodyMover_swiginit(self, _IMP_core.new_RigidBodyMover(*args))
12475 
12476  def set_maximum_translation(self, mt):
12477  r"""set_maximum_translation(RigidBodyMover self, IMP::Float mt)"""
12478  return _IMP_core.RigidBodyMover_set_maximum_translation(self, mt)
12479 
12480  def set_maximum_rotation(self, mr):
12481  r"""set_maximum_rotation(RigidBodyMover self, IMP::Float mr)"""
12482  return _IMP_core.RigidBodyMover_set_maximum_rotation(self, mr)
12483 
12484  def get_maximum_translation(self):
12485  r"""get_maximum_translation(RigidBodyMover self) -> IMP::Float"""
12486  return _IMP_core.RigidBodyMover_get_maximum_translation(self)
12487 
12488  def get_maximum_rotation(self):
12489  r"""get_maximum_rotation(RigidBodyMover self) -> IMP::Float"""
12490  return _IMP_core.RigidBodyMover_get_maximum_rotation(self)
12491 
12492  def get_version_info(self):
12493  r"""get_version_info(RigidBodyMover self) -> VersionInfo"""
12494  return _IMP_core.RigidBodyMover_get_version_info(self)
12495  __swig_destroy__ = _IMP_core.delete_RigidBodyMover
12496 
12497  def __str__(self):
12498  r"""__str__(RigidBodyMover self) -> std::string"""
12499  return _IMP_core.RigidBodyMover___str__(self)
12500 
12501  def __repr__(self):
12502  r"""__repr__(RigidBodyMover self) -> std::string"""
12503  return _IMP_core.RigidBodyMover___repr__(self)
12504 
12505  @staticmethod
12506  def get_from(o):
12507  return _object_cast_to_RigidBodyMover(o)
12508 
12509 
12510  def _get_as_binary(self):
12511  r"""_get_as_binary(RigidBodyMover self) -> PyObject *"""
12512  return _IMP_core.RigidBodyMover__get_as_binary(self)
12513 
12514  def _set_from_binary(self, p):
12515  r"""_set_from_binary(RigidBodyMover self, PyObject * p)"""
12516  return _IMP_core.RigidBodyMover__set_from_binary(self, p)
12517 
12518  def __getstate__(self):
12519  p = self._get_as_binary()
12520  if len(self.__dict__) > 1:
12521  d = self.__dict__.copy()
12522  del d['this']
12523  p = (d, p)
12524  return p
12525 
12526  def __setstate__(self, p):
12527  if not hasattr(self, 'this'):
12528  self.__init__()
12529  if isinstance(p, tuple):
12530  d, p = p
12531  self.__dict__.update(d)
12532  return self._set_from_binary(p)
12533 
12534 
12535 # Register RigidBodyMover in _IMP_core:
12536 _IMP_core.RigidBodyMover_swigregister(RigidBodyMover)
12537 class RigidBodyTunneler(MonteCarloMover):
12538  r"""Proxy of C++ IMP::core::RigidBodyTunneler class."""
12539 
12540  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12541 
12542  def __init__(self, m, pis, ref, k, move_probability=1.):
12543  r"""__init__(RigidBodyTunneler self, Model m, IMP::ParticleIndexes pis, ParticleIndex ref, double k, double move_probability=1.) -> RigidBodyTunneler"""
12544  _IMP_core.RigidBodyTunneler_swiginit(self, _IMP_core.new_RigidBodyTunneler(m, pis, ref, k, move_probability))
12545 
12546  def add_entry_point(self, fl):
12547  r"""add_entry_point(RigidBodyTunneler self, IMP::Floats fl)"""
12548  return _IMP_core.RigidBodyTunneler_add_entry_point(self, fl)
12549 
12550  def reset_stats(self):
12551  r"""reset_stats(RigidBodyTunneler self)"""
12552  return _IMP_core.RigidBodyTunneler_reset_stats(self)
12553 
12554  def get_number_of_rejected_moves(self):
12555  r"""get_number_of_rejected_moves(RigidBodyTunneler self) -> unsigned int"""
12556  return _IMP_core.RigidBodyTunneler_get_number_of_rejected_moves(self)
12557 
12558  def get_number_of_proposed_moves(self):
12559  r"""get_number_of_proposed_moves(RigidBodyTunneler self) -> unsigned int"""
12560  return _IMP_core.RigidBodyTunneler_get_number_of_proposed_moves(self)
12561 
12562  def get_number_of_impossible_moves(self):
12563  r"""get_number_of_impossible_moves(RigidBodyTunneler self) -> unsigned int"""
12564  return _IMP_core.RigidBodyTunneler_get_number_of_impossible_moves(self)
12565 
12566  def get_number_of_calls(self):
12567  r"""get_number_of_calls(RigidBodyTunneler self) -> unsigned int"""
12568  return _IMP_core.RigidBodyTunneler_get_number_of_calls(self)
12569 
12570  @staticmethod
12571  def get_reduced_coordinates(*args):
12572  r"""
12573  get_reduced_coordinates(Model m, ParticleIndex target, ParticleIndex ref) -> IMP::Floats
12574  get_reduced_coordinates(Model m, ParticleIndex pi) -> IMP::Floats
12575  """
12576  return _IMP_core.RigidBodyTunneler_get_reduced_coordinates(*args)
12577 
12578  @staticmethod
12579  def set_reduced_coordinates(m, target, ref, coords):
12580  r"""set_reduced_coordinates(Model m, ParticleIndex target, ParticleIndex ref, IMP::Floats coords)"""
12581  return _IMP_core.RigidBodyTunneler_set_reduced_coordinates(m, target, ref, coords)
12582 
12583  def get_version_info(self):
12584  r"""get_version_info(RigidBodyTunneler self) -> VersionInfo"""
12585  return _IMP_core.RigidBodyTunneler_get_version_info(self)
12586  __swig_destroy__ = _IMP_core.delete_RigidBodyTunneler
12587 
12588  def __str__(self):
12589  r"""__str__(RigidBodyTunneler self) -> std::string"""
12590  return _IMP_core.RigidBodyTunneler___str__(self)
12591 
12592  def __repr__(self):
12593  r"""__repr__(RigidBodyTunneler self) -> std::string"""
12594  return _IMP_core.RigidBodyTunneler___repr__(self)
12595 
12596  @staticmethod
12597  def get_from(o):
12598  return _object_cast_to_RigidBodyTunneler(o)
12599 
12600 
12601 # Register RigidBodyTunneler in _IMP_core:
12602 _IMP_core.RigidBodyTunneler_swigregister(RigidBodyTunneler)
12603 class RigidBodyUmbrella(IMP.Restraint):
12604  r"""Proxy of C++ IMP::core::RigidBodyUmbrella class."""
12605 
12606  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12607 
12608  def __init__(self, *args):
12609  r"""
12610  __init__(RigidBodyUmbrella self, Model m, ParticleIndex pi, ParticleIndex ref, IMP::Floats x0, double alpha, double k, std::string name="RigidBodyUmbrella %1%") -> RigidBodyUmbrella
12611  __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
12612  """
12613  _IMP_core.RigidBodyUmbrella_swiginit(self, _IMP_core.new_RigidBodyUmbrella(*args))
12614 
12615  def set_x0(self, *args):
12616  r"""
12617  set_x0(RigidBodyUmbrella self, IMP::Floats x0)
12618  set_x0(RigidBodyUmbrella self, double _lambda, IMP::Floats x1, IMP::Floats x2)
12619  """
12620  return _IMP_core.RigidBodyUmbrella_set_x0(self, *args)
12621 
12622  def get_x0(self):
12623  r"""get_x0(RigidBodyUmbrella self) -> IMP::Floats"""
12624  return _IMP_core.RigidBodyUmbrella_get_x0(self)
12625 
12626  def get_x(self):
12627  r"""get_x(RigidBodyUmbrella self) -> IMP::Floats"""
12628  return _IMP_core.RigidBodyUmbrella_get_x(self)
12629 
12630  def set_alpha(self, alpha):
12631  r"""set_alpha(RigidBodyUmbrella self, double alpha)"""
12632  return _IMP_core.RigidBodyUmbrella_set_alpha(self, alpha)
12633 
12634  def set_k(self, k):
12635  r"""set_k(RigidBodyUmbrella self, double k)"""
12636  return _IMP_core.RigidBodyUmbrella_set_k(self, k)
12637 
12638  def get_version_info(self):
12639  r"""get_version_info(RigidBodyUmbrella self) -> VersionInfo"""
12640  return _IMP_core.RigidBodyUmbrella_get_version_info(self)
12641  __swig_destroy__ = _IMP_core.delete_RigidBodyUmbrella
12642 
12643  def __str__(self):
12644  r"""__str__(RigidBodyUmbrella self) -> std::string"""
12645  return _IMP_core.RigidBodyUmbrella___str__(self)
12646 
12647  def __repr__(self):
12648  r"""__repr__(RigidBodyUmbrella self) -> std::string"""
12649  return _IMP_core.RigidBodyUmbrella___repr__(self)
12650 
12651  @staticmethod
12652  def get_from(o):
12653  return _object_cast_to_RigidBodyUmbrella(o)
12654 
12655 
12656 # Register RigidBodyUmbrella in _IMP_core:
12657 _IMP_core.RigidBodyUmbrella_swigregister(RigidBodyUmbrella)
12658 class VolumeRestraint(IMP.Restraint):
12659  r"""Proxy of C++ IMP::core::VolumeRestraint class."""
12660 
12661  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12662 
12663  def __init__(self, f, sc, volume):
12664  r"""__init__(VolumeRestraint self, UnaryFunction f, SingletonContainer sc, double volume) -> VolumeRestraint"""
12665  _IMP_core.VolumeRestraint_swiginit(self, _IMP_core.new_VolumeRestraint(f, sc, volume))
12666 
12667  def do_get_inputs(self):
12668  r"""do_get_inputs(VolumeRestraint self) -> IMP::ModelObjectsTemp"""
12669  return _IMP_core.VolumeRestraint_do_get_inputs(self)
12670 
12671  def get_version_info(self):
12672  r"""get_version_info(VolumeRestraint self) -> VersionInfo"""
12673  return _IMP_core.VolumeRestraint_get_version_info(self)
12674  __swig_destroy__ = _IMP_core.delete_VolumeRestraint
12675 
12676  def __str__(self):
12677  r"""__str__(VolumeRestraint self) -> std::string"""
12678  return _IMP_core.VolumeRestraint___str__(self)
12679 
12680  def __repr__(self):
12681  r"""__repr__(VolumeRestraint self) -> std::string"""
12682  return _IMP_core.VolumeRestraint___repr__(self)
12683 
12684  @staticmethod
12685  def get_from(o):
12686  return _object_cast_to_VolumeRestraint(o)
12687 
12688 
12689 # Register VolumeRestraint in _IMP_core:
12690 _IMP_core.VolumeRestraint_swigregister(VolumeRestraint)
12691 
12692 def get_centroid(ps):
12693  r"""get_centroid(IMP::core::XYZs const & ps) -> Vector3D"""
12694  return _IMP_core.get_centroid(ps)
12695 
12696 def get_bounding_box(ps):
12697  r"""get_bounding_box(IMP::core::XYZRs const & ps) -> BoundingBox3D"""
12698  return _IMP_core.get_bounding_box(ps)
12699 class MoveStatisticsScoreState(IMP.ScoreState):
12700  r"""Proxy of C++ IMP::core::MoveStatisticsScoreState class."""
12701 
12702  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12703 
12704  def __init__(self, ps):
12705  r"""__init__(MoveStatisticsScoreState self, IMP::ParticlesTemp const & ps) -> MoveStatisticsScoreState"""
12706  _IMP_core.MoveStatisticsScoreState_swiginit(self, _IMP_core.new_MoveStatisticsScoreState(ps))
12707 
12708  def show_statistics(self, *args):
12709  r"""show_statistics(MoveStatisticsScoreState self, _ostream out=std::cout)"""
12710  return _IMP_core.MoveStatisticsScoreState_show_statistics(self, *args)
12711 
12712  def reset(self):
12713  r"""reset(MoveStatisticsScoreState self)"""
12714  return _IMP_core.MoveStatisticsScoreState_reset(self)
12715 
12716  def do_before_evaluate(self):
12717  r"""do_before_evaluate(MoveStatisticsScoreState self)"""
12718  return _IMP_core.MoveStatisticsScoreState_do_before_evaluate(self)
12719 
12720  def do_after_evaluate(self, da):
12721  r"""do_after_evaluate(MoveStatisticsScoreState self, DerivativeAccumulator da)"""
12722  return _IMP_core.MoveStatisticsScoreState_do_after_evaluate(self, da)
12723 
12724  def do_get_inputs(self):
12725  r"""do_get_inputs(MoveStatisticsScoreState self) -> IMP::ModelObjectsTemp"""
12726  return _IMP_core.MoveStatisticsScoreState_do_get_inputs(self)
12727 
12728  def do_get_outputs(self):
12729  r"""do_get_outputs(MoveStatisticsScoreState self) -> IMP::ModelObjectsTemp"""
12730  return _IMP_core.MoveStatisticsScoreState_do_get_outputs(self)
12731 
12732  def get_version_info(self):
12733  r"""get_version_info(MoveStatisticsScoreState self) -> VersionInfo"""
12734  return _IMP_core.MoveStatisticsScoreState_get_version_info(self)
12735  __swig_destroy__ = _IMP_core.delete_MoveStatisticsScoreState
12736 
12737  def __str__(self):
12738  r"""__str__(MoveStatisticsScoreState self) -> std::string"""
12739  return _IMP_core.MoveStatisticsScoreState___str__(self)
12740 
12741  def __repr__(self):
12742  r"""__repr__(MoveStatisticsScoreState self) -> std::string"""
12743  return _IMP_core.MoveStatisticsScoreState___repr__(self)
12744 
12745  @staticmethod
12746  def get_from(o):
12747  return _object_cast_to_MoveStatisticsScoreState(o)
12748 
12749 
12750 # Register MoveStatisticsScoreState in _IMP_core:
12751 _IMP_core.MoveStatisticsScoreState_swigregister(MoveStatisticsScoreState)
12752 IMP_PARTICLE_TYPE_INDEX = _IMP_core.IMP_PARTICLE_TYPE_INDEX
12753 
12754 class Typed(IMP.Decorator):
12755  r"""Proxy of C++ IMP::core::Typed class."""
12756 
12757  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12758 
12759  @staticmethod
12760  def get_type_key():
12761  r"""get_type_key() -> IntKey"""
12762  return _IMP_core.Typed_get_type_key()
12763 
12764  def __init__(self, *args):
12765  r"""
12766  __init__(Typed self) -> Typed
12767  __init__(Typed self, Model m, ParticleIndex id) -> Typed
12768  __init__(Typed self, _ParticleAdaptor d) -> Typed
12769  """
12770  _IMP_core.Typed_swiginit(self, _IMP_core.new_Typed(*args))
12771 
12772  def show(self, *args):
12773  r"""show(Typed self, _ostream out=std::cout)"""
12774  return _IMP_core.Typed_show(self, *args)
12775 
12776  @staticmethod
12777  def setup_particle(*args):
12778  r"""
12779  setup_particle(Model m, ParticleIndex pi, ParticleType t) -> Typed
12780  setup_particle(_ParticleAdaptor pa, ParticleType t) -> Typed
12781  """
12782  return _IMP_core.Typed_setup_particle(*args)
12783 
12784  @staticmethod
12785  def get_is_setup(*args):
12786  r"""
12787  get_is_setup(_ParticleAdaptor p) -> bool
12788  get_is_setup(Model m, ParticleIndex pi) -> bool
12789  """
12790  return _IMP_core.Typed_get_is_setup(*args)
12791 
12792  def get_type(self):
12793  r"""get_type(Typed self) -> ParticleType"""
12794  return _IMP_core.Typed_get_type(self)
12795 
12796  def set_type(self, pt):
12797  r"""set_type(Typed self, ParticleType pt)"""
12798  return _IMP_core.Typed_set_type(self, pt)
12799 
12800  def add_attribute(self, *args):
12801  r"""
12802  add_attribute(Typed self, FloatKey k, IMP::Float v, bool opt)
12803  add_attribute(Typed self, FloatKey a0, IMP::Float a1)
12804  add_attribute(Typed self, IntKey a0, IMP::Int a1)
12805  add_attribute(Typed self, FloatsKey a0, IMP::Floats a1)
12806  add_attribute(Typed self, IntsKey a0, IMP::Ints a1)
12807  add_attribute(Typed self, StringKey a0, IMP::String a1)
12808  add_attribute(Typed self, ParticleIndexKey a0, Particle a1)
12809  add_attribute(Typed self, ObjectKey a0, Object a1)
12810  add_attribute(Typed self, SparseFloatKey a0, IMP::Float a1)
12811  add_attribute(Typed self, SparseIntKey a0, IMP::Int a1)
12812  add_attribute(Typed self, SparseStringKey a0, IMP::String a1)
12813  add_attribute(Typed self, SparseParticleIndexKey a0, ParticleIndex a1)
12814  """
12815  return _IMP_core.Typed_add_attribute(self, *args)
12816 
12817  def get_value(self, *args):
12818  r"""
12819  get_value(Typed self, FloatKey a0) -> IMP::Float
12820  get_value(Typed self, IntKey a0) -> IMP::Int
12821  get_value(Typed self, FloatsKey a0) -> IMP::Floats
12822  get_value(Typed self, IntsKey a0) -> IMP::Ints
12823  get_value(Typed self, StringKey a0) -> IMP::String
12824  get_value(Typed self, ParticleIndexKey a0) -> Particle
12825  get_value(Typed self, ObjectKey a0) -> Object
12826  get_value(Typed self, SparseFloatKey a0) -> IMP::Float
12827  get_value(Typed self, SparseIntKey a0) -> IMP::Int
12828  get_value(Typed self, SparseStringKey a0) -> IMP::String
12829  get_value(Typed self, SparseParticleIndexKey a0) -> ParticleIndex
12830  """
12831  return _IMP_core.Typed_get_value(self, *args)
12832 
12833  def set_value(self, *args):
12834  r"""
12835  set_value(Typed self, FloatKey a0, IMP::Float a1)
12836  set_value(Typed self, IntKey a0, IMP::Int a1)
12837  set_value(Typed self, FloatsKey a0, IMP::Floats a1)
12838  set_value(Typed self, IntsKey a0, IMP::Ints a1)
12839  set_value(Typed self, StringKey a0, IMP::String a1)
12840  set_value(Typed self, ParticleIndexKey a0, Particle a1)
12841  set_value(Typed self, ObjectKey a0, Object a1)
12842  set_value(Typed self, SparseFloatKey a0, IMP::Float a1)
12843  set_value(Typed self, SparseIntKey a0, IMP::Int a1)
12844  set_value(Typed self, SparseStringKey a0, IMP::String a1)
12845  set_value(Typed self, SparseParticleIndexKey a0, ParticleIndex a1)
12846  """
12847  return _IMP_core.Typed_set_value(self, *args)
12848 
12849  def remove_attribute(self, *args):
12850  r"""
12851  remove_attribute(Typed self, FloatKey a0)
12852  remove_attribute(Typed self, IntKey a0)
12853  remove_attribute(Typed self, FloatsKey a0)
12854  remove_attribute(Typed self, IntsKey a0)
12855  remove_attribute(Typed self, StringKey a0)
12856  remove_attribute(Typed self, ParticleIndexKey a0)
12857  remove_attribute(Typed self, ObjectKey a0)
12858  remove_attribute(Typed self, SparseFloatKey a0)
12859  remove_attribute(Typed self, SparseIntKey a0)
12860  remove_attribute(Typed self, SparseStringKey a0)
12861  remove_attribute(Typed self, SparseParticleIndexKey a0)
12862  """
12863  return _IMP_core.Typed_remove_attribute(self, *args)
12864 
12865  def has_attribute(self, *args):
12866  r"""
12867  has_attribute(Typed self, FloatKey a0) -> bool
12868  has_attribute(Typed self, IntKey a0) -> bool
12869  has_attribute(Typed self, FloatsKey a0) -> bool
12870  has_attribute(Typed self, IntsKey a0) -> bool
12871  has_attribute(Typed self, StringKey a0) -> bool
12872  has_attribute(Typed self, ParticleIndexKey a0) -> bool
12873  has_attribute(Typed self, ObjectKey a0) -> bool
12874  has_attribute(Typed self, SparseFloatKey a0) -> bool
12875  has_attribute(Typed self, SparseIntKey a0) -> bool
12876  has_attribute(Typed self, SparseStringKey a0) -> bool
12877  has_attribute(Typed self, SparseParticleIndexKey a0) -> bool
12878  """
12879  return _IMP_core.Typed_has_attribute(self, *args)
12880 
12881  def get_derivative(self, a0):
12882  r"""get_derivative(Typed self, FloatKey a0) -> double"""
12883  return _IMP_core.Typed_get_derivative(self, a0)
12884 
12885  def get_name(self):
12886  r"""get_name(Typed self) -> std::string"""
12887  return _IMP_core.Typed_get_name(self)
12888 
12889  def clear_caches(self):
12890  r"""clear_caches(Typed self)"""
12891  return _IMP_core.Typed_clear_caches(self)
12892 
12893  def set_name(self, a0):
12894  r"""set_name(Typed self, std::string a0)"""
12895  return _IMP_core.Typed_set_name(self, a0)
12896 
12897  def set_check_level(self, a0):
12898  r"""set_check_level(Typed self, IMP::CheckLevel a0)"""
12899  return _IMP_core.Typed_set_check_level(self, a0)
12900 
12901  def add_to_derivative(self, a0, a1, a2):
12902  r"""add_to_derivative(Typed self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
12903  return _IMP_core.Typed_add_to_derivative(self, a0, a1, a2)
12904 
12905  def set_is_optimized(self, a0, a1):
12906  r"""set_is_optimized(Typed self, FloatKey a0, bool a1)"""
12907  return _IMP_core.Typed_set_is_optimized(self, a0, a1)
12908 
12909  def get_is_optimized(self, a0):
12910  r"""get_is_optimized(Typed self, FloatKey a0) -> bool"""
12911  return _IMP_core.Typed_get_is_optimized(self, a0)
12912 
12913  def get_check_level(self):
12914  r"""get_check_level(Typed self) -> IMP::CheckLevel"""
12915  return _IMP_core.Typed_get_check_level(self)
12916 
12917  def __eq__(self, *args):
12918  r"""
12919  __eq__(Typed self, Typed o) -> bool
12920  __eq__(Typed self, Particle d) -> bool
12921  """
12922  return _IMP_core.Typed___eq__(self, *args)
12923 
12924  def __ne__(self, *args):
12925  r"""
12926  __ne__(Typed self, Typed o) -> bool
12927  __ne__(Typed self, Particle d) -> bool
12928  """
12929  return _IMP_core.Typed___ne__(self, *args)
12930 
12931  def __le__(self, *args):
12932  r"""
12933  __le__(Typed self, Typed o) -> bool
12934  __le__(Typed self, Particle d) -> bool
12935  """
12936  return _IMP_core.Typed___le__(self, *args)
12937 
12938  def __lt__(self, *args):
12939  r"""
12940  __lt__(Typed self, Typed o) -> bool
12941  __lt__(Typed self, Particle d) -> bool
12942  """
12943  return _IMP_core.Typed___lt__(self, *args)
12944 
12945  def __ge__(self, *args):
12946  r"""
12947  __ge__(Typed self, Typed o) -> bool
12948  __ge__(Typed self, Particle d) -> bool
12949  """
12950  return _IMP_core.Typed___ge__(self, *args)
12951 
12952  def __gt__(self, *args):
12953  r"""
12954  __gt__(Typed self, Typed o) -> bool
12955  __gt__(Typed self, Particle d) -> bool
12956  """
12957  return _IMP_core.Typed___gt__(self, *args)
12958 
12959  def __hash__(self):
12960  r"""__hash__(Typed self) -> std::size_t"""
12961  return _IMP_core.Typed___hash__(self)
12962 
12963  def __str__(self):
12964  r"""__str__(Typed self) -> std::string"""
12965  return _IMP_core.Typed___str__(self)
12966 
12967  def __repr__(self):
12968  r"""__repr__(Typed self) -> std::string"""
12969  return _IMP_core.Typed___repr__(self)
12970 
12971  def _get_as_binary(self):
12972  r"""_get_as_binary(Typed self) -> PyObject *"""
12973  return _IMP_core.Typed__get_as_binary(self)
12974 
12975  def _set_from_binary(self, p):
12976  r"""_set_from_binary(Typed self, PyObject * p)"""
12977  return _IMP_core.Typed__set_from_binary(self, p)
12978 
12979  def __getstate__(self):
12980  p = self._get_as_binary()
12981  if len(self.__dict__) > 1:
12982  d = self.__dict__.copy()
12983  del d['this']
12984  p = (d, p)
12985  return p
12986 
12987  def __setstate__(self, p):
12988  if not hasattr(self, 'this'):
12989  self.__init__()
12990  if isinstance(p, tuple):
12991  d, p = p
12992  self.__dict__.update(d)
12993  return self._set_from_binary(p)
12994 
12995  __swig_destroy__ = _IMP_core.delete_Typed
12996 
12997 # Register Typed in _IMP_core:
12998 _IMP_core.Typed_swigregister(Typed)
12999 
13000 def __lshift__(*args):
13001  r"""
13002  __lshift__(_ostream out, XYZ n) -> _ostream
13003  __lshift__(_ostream out, XYZR n) -> _ostream
13004  __lshift__(_ostream out, Direction n) -> _ostream
13005  __lshift__(_ostream out, DirectionAngle n) -> _ostream
13006  __lshift__(_ostream out, Surface n) -> _ostream
13007  __lshift__(_ostream out, Centroid n) -> _ostream
13008  __lshift__(_ostream out, Cover n) -> _ostream
13009  __lshift__(_ostream out, Reference n) -> _ostream
13010  __lshift__(_ostream out, RigidMember n) -> _ostream
13011  __lshift__(_ostream out, RigidBody n) -> _ostream
13012  __lshift__(_ostream out, Gaussian n) -> _ostream
13013  __lshift__(_ostream out, Typed n) -> _ostream
13014  """
13015  return _IMP_core.__lshift__(*args)
13016 class WriteRestraintScoresOptimizerState(IMP.OptimizerState):
13017  r"""Proxy of C++ IMP::core::WriteRestraintScoresOptimizerState class."""
13018 
13019  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13020 
13021  def __init__(self, rs, out):
13022  r"""__init__(WriteRestraintScoresOptimizerState self, IMP::Restraints const & rs, TextOutput out) -> WriteRestraintScoresOptimizerState"""
13023  _IMP_core.WriteRestraintScoresOptimizerState_swiginit(self, _IMP_core.new_WriteRestraintScoresOptimizerState(rs, out))
13024 
13025  def get_version_info(self):
13026  r"""get_version_info(WriteRestraintScoresOptimizerState self) -> VersionInfo"""
13027  return _IMP_core.WriteRestraintScoresOptimizerState_get_version_info(self)
13028  __swig_destroy__ = _IMP_core.delete_WriteRestraintScoresOptimizerState
13029 
13030  def __str__(self):
13031  r"""__str__(WriteRestraintScoresOptimizerState self) -> std::string"""
13032  return _IMP_core.WriteRestraintScoresOptimizerState___str__(self)
13033 
13034  def __repr__(self):
13035  r"""__repr__(WriteRestraintScoresOptimizerState self) -> std::string"""
13036  return _IMP_core.WriteRestraintScoresOptimizerState___repr__(self)
13037 
13038  @staticmethod
13039  def get_from(o):
13040  return _object_cast_to_WriteRestraintScoresOptimizerState(o)
13041 
13042 
13043 # Register WriteRestraintScoresOptimizerState in _IMP_core:
13044 _IMP_core.WriteRestraintScoresOptimizerState_swigregister(WriteRestraintScoresOptimizerState)
13045 
13046 def assign_blame(rs, ps, attribute):
13047  r"""assign_blame(IMP::RestraintsTemp const & rs, IMP::ParticlesTemp const & ps, FloatKey attribute)"""
13048  return _IMP_core.assign_blame(rs, ps, attribute)
13049 
13050 def create_blame_geometries(*args):
13051  r"""create_blame_geometries(IMP::RestraintsTemp const & rs, IMP::ParticlesTemp const & ps, double max=NO_MAX, std::string name=std::string()) -> IMP::display::Geometries"""
13052  return _IMP_core.create_blame_geometries(*args)
13053 class MultipleBinormalRestraint(IMP.Restraint):
13054  r"""Proxy of C++ IMP::core::MultipleBinormalRestraint class."""
13055 
13056  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13057 
13058  def __init__(self, m, q1, q2):
13059  r"""__init__(MultipleBinormalRestraint self, Model m, IMP::ParticleIndexQuad const & q1, IMP::ParticleIndexQuad const & q2) -> MultipleBinormalRestraint"""
13060  _IMP_core.MultipleBinormalRestraint_swiginit(self, _IMP_core.new_MultipleBinormalRestraint(m, q1, q2))
13061 
13062  def add_term(self, term):
13063  r"""add_term(MultipleBinormalRestraint self, BinormalTerm term)"""
13064  return _IMP_core.MultipleBinormalRestraint_add_term(self, term)
13065 
13066  def do_get_inputs(self):
13067  r"""do_get_inputs(MultipleBinormalRestraint self) -> IMP::ModelObjectsTemp"""
13068  return _IMP_core.MultipleBinormalRestraint_do_get_inputs(self)
13069 
13070  def get_version_info(self):
13071  r"""get_version_info(MultipleBinormalRestraint self) -> VersionInfo"""
13072  return _IMP_core.MultipleBinormalRestraint_get_version_info(self)
13073  __swig_destroy__ = _IMP_core.delete_MultipleBinormalRestraint
13074 
13075  def __str__(self):
13076  r"""__str__(MultipleBinormalRestraint self) -> std::string"""
13077  return _IMP_core.MultipleBinormalRestraint___str__(self)
13078 
13079  def __repr__(self):
13080  r"""__repr__(MultipleBinormalRestraint self) -> std::string"""
13081  return _IMP_core.MultipleBinormalRestraint___repr__(self)
13082 
13083  @staticmethod
13084  def get_from(o):
13085  return _object_cast_to_MultipleBinormalRestraint(o)
13086 
13087 
13088 # Register MultipleBinormalRestraint in _IMP_core:
13089 _IMP_core.MultipleBinormalRestraint_swigregister(MultipleBinormalRestraint)
13090 class BinormalTerm(object):
13091  r"""Proxy of C++ IMP::core::BinormalTerm class."""
13092 
13093  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13094 
13095  def __init__(self):
13096  r"""__init__(BinormalTerm self) -> BinormalTerm"""
13097  _IMP_core.BinormalTerm_swiginit(self, _IMP_core.new_BinormalTerm())
13098 
13099  def set_correlation(self, correlation):
13100  r"""set_correlation(BinormalTerm self, double correlation)"""
13101  return _IMP_core.BinormalTerm_set_correlation(self, correlation)
13102 
13103  def set_weight(self, weight):
13104  r"""set_weight(BinormalTerm self, double weight)"""
13105  return _IMP_core.BinormalTerm_set_weight(self, weight)
13106 
13107  def set_means(self, means):
13108  r"""set_means(BinormalTerm self, IMP::FloatPair means)"""
13109  return _IMP_core.BinormalTerm_set_means(self, means)
13110 
13111  def set_standard_deviations(self, stdevs):
13112  r"""set_standard_deviations(BinormalTerm self, IMP::FloatPair stdevs)"""
13113  return _IMP_core.BinormalTerm_set_standard_deviations(self, stdevs)
13114 
13115  def show(self, *args):
13116  r"""show(BinormalTerm self, _ostream out=std::cout)"""
13117  return _IMP_core.BinormalTerm_show(self, *args)
13118 
13119  def __str__(self):
13120  r"""__str__(BinormalTerm self) -> std::string"""
13121  return _IMP_core.BinormalTerm___str__(self)
13122 
13123  def __repr__(self):
13124  r"""__repr__(BinormalTerm self) -> std::string"""
13125  return _IMP_core.BinormalTerm___repr__(self)
13126 
13127  def _get_as_binary(self):
13128  r"""_get_as_binary(BinormalTerm self) -> PyObject *"""
13129  return _IMP_core.BinormalTerm__get_as_binary(self)
13130 
13131  def _set_from_binary(self, p):
13132  r"""_set_from_binary(BinormalTerm self, PyObject * p)"""
13133  return _IMP_core.BinormalTerm__set_from_binary(self, p)
13134 
13135  def __getstate__(self):
13136  p = self._get_as_binary()
13137  if len(self.__dict__) > 1:
13138  d = self.__dict__.copy()
13139  del d['this']
13140  p = (d, p)
13141  return p
13142 
13143  def __setstate__(self, p):
13144  if not hasattr(self, 'this'):
13145  self.__init__()
13146  if isinstance(p, tuple):
13147  d, p = p
13148  self.__dict__.update(d)
13149  return self._set_from_binary(p)
13150 
13151  __swig_destroy__ = _IMP_core.delete_BinormalTerm
13152 
13153 # Register BinormalTerm in _IMP_core:
13154 _IMP_core.BinormalTerm_swigregister(BinormalTerm)
13155 class Provenance(IMP.Decorator):
13156  r"""Proxy of C++ IMP::core::Provenance class."""
13157 
13158  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13159 
13160  def get_previous(self):
13161  r"""get_previous(Provenance self) -> Provenance"""
13162  return _IMP_core.Provenance_get_previous(self)
13163 
13164  def set_previous(self, p):
13165  r"""set_previous(Provenance self, Provenance p)"""
13166  return _IMP_core.Provenance_set_previous(self, p)
13167 
13168  def __init__(self, *args):
13169  r"""
13170  __init__(Provenance self) -> Provenance
13171  __init__(Provenance self, Model m, ParticleIndex id) -> Provenance
13172  __init__(Provenance self, _ParticleAdaptor d) -> Provenance
13173  """
13174  _IMP_core.Provenance_swiginit(self, _IMP_core.new_Provenance(*args))
13175 
13176  @staticmethod
13177  def get_is_setup(*args):
13178  r"""
13179  get_is_setup(Model m, ParticleIndex pi) -> bool
13180  get_is_setup(_ParticleAdaptor p) -> bool
13181  """
13182  return _IMP_core.Provenance_get_is_setup(*args)
13183 
13184  def show(self, *args):
13185  r"""show(Provenance self, _ostream out=std::cout)"""
13186  return _IMP_core.Provenance_show(self, *args)
13187 
13188  @staticmethod
13189  def setup_particle(*args):
13190  r"""
13191  setup_particle(Model m, ParticleIndex pi) -> Provenance
13192  setup_particle(_ParticleAdaptor pa) -> Provenance
13193  """
13194  return _IMP_core.Provenance_setup_particle(*args)
13195 
13196  def add_attribute(self, *args):
13197  r"""
13198  add_attribute(Provenance self, FloatKey k, IMP::Float v, bool opt)
13199  add_attribute(Provenance self, FloatKey a0, IMP::Float a1)
13200  add_attribute(Provenance self, IntKey a0, IMP::Int a1)
13201  add_attribute(Provenance self, FloatsKey a0, IMP::Floats a1)
13202  add_attribute(Provenance self, IntsKey a0, IMP::Ints a1)
13203  add_attribute(Provenance self, StringKey a0, IMP::String a1)
13204  add_attribute(Provenance self, ParticleIndexKey a0, Particle a1)
13205  add_attribute(Provenance self, ObjectKey a0, Object a1)
13206  add_attribute(Provenance self, SparseFloatKey a0, IMP::Float a1)
13207  add_attribute(Provenance self, SparseIntKey a0, IMP::Int a1)
13208  add_attribute(Provenance self, SparseStringKey a0, IMP::String a1)
13209  add_attribute(Provenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13210  """
13211  return _IMP_core.Provenance_add_attribute(self, *args)
13212 
13213  def get_value(self, *args):
13214  r"""
13215  get_value(Provenance self, FloatKey a0) -> IMP::Float
13216  get_value(Provenance self, IntKey a0) -> IMP::Int
13217  get_value(Provenance self, FloatsKey a0) -> IMP::Floats
13218  get_value(Provenance self, IntsKey a0) -> IMP::Ints
13219  get_value(Provenance self, StringKey a0) -> IMP::String
13220  get_value(Provenance self, ParticleIndexKey a0) -> Particle
13221  get_value(Provenance self, ObjectKey a0) -> Object
13222  get_value(Provenance self, SparseFloatKey a0) -> IMP::Float
13223  get_value(Provenance self, SparseIntKey a0) -> IMP::Int
13224  get_value(Provenance self, SparseStringKey a0) -> IMP::String
13225  get_value(Provenance self, SparseParticleIndexKey a0) -> ParticleIndex
13226  """
13227  return _IMP_core.Provenance_get_value(self, *args)
13228 
13229  def set_value(self, *args):
13230  r"""
13231  set_value(Provenance self, FloatKey a0, IMP::Float a1)
13232  set_value(Provenance self, IntKey a0, IMP::Int a1)
13233  set_value(Provenance self, FloatsKey a0, IMP::Floats a1)
13234  set_value(Provenance self, IntsKey a0, IMP::Ints a1)
13235  set_value(Provenance self, StringKey a0, IMP::String a1)
13236  set_value(Provenance self, ParticleIndexKey a0, Particle a1)
13237  set_value(Provenance self, ObjectKey a0, Object a1)
13238  set_value(Provenance self, SparseFloatKey a0, IMP::Float a1)
13239  set_value(Provenance self, SparseIntKey a0, IMP::Int a1)
13240  set_value(Provenance self, SparseStringKey a0, IMP::String a1)
13241  set_value(Provenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13242  """
13243  return _IMP_core.Provenance_set_value(self, *args)
13244 
13245  def remove_attribute(self, *args):
13246  r"""
13247  remove_attribute(Provenance self, FloatKey a0)
13248  remove_attribute(Provenance self, IntKey a0)
13249  remove_attribute(Provenance self, FloatsKey a0)
13250  remove_attribute(Provenance self, IntsKey a0)
13251  remove_attribute(Provenance self, StringKey a0)
13252  remove_attribute(Provenance self, ParticleIndexKey a0)
13253  remove_attribute(Provenance self, ObjectKey a0)
13254  remove_attribute(Provenance self, SparseFloatKey a0)
13255  remove_attribute(Provenance self, SparseIntKey a0)
13256  remove_attribute(Provenance self, SparseStringKey a0)
13257  remove_attribute(Provenance self, SparseParticleIndexKey a0)
13258  """
13259  return _IMP_core.Provenance_remove_attribute(self, *args)
13260 
13261  def has_attribute(self, *args):
13262  r"""
13263  has_attribute(Provenance self, FloatKey a0) -> bool
13264  has_attribute(Provenance self, IntKey a0) -> bool
13265  has_attribute(Provenance self, FloatsKey a0) -> bool
13266  has_attribute(Provenance self, IntsKey a0) -> bool
13267  has_attribute(Provenance self, StringKey a0) -> bool
13268  has_attribute(Provenance self, ParticleIndexKey a0) -> bool
13269  has_attribute(Provenance self, ObjectKey a0) -> bool
13270  has_attribute(Provenance self, SparseFloatKey a0) -> bool
13271  has_attribute(Provenance self, SparseIntKey a0) -> bool
13272  has_attribute(Provenance self, SparseStringKey a0) -> bool
13273  has_attribute(Provenance self, SparseParticleIndexKey a0) -> bool
13274  """
13275  return _IMP_core.Provenance_has_attribute(self, *args)
13276 
13277  def get_derivative(self, a0):
13278  r"""get_derivative(Provenance self, FloatKey a0) -> double"""
13279  return _IMP_core.Provenance_get_derivative(self, a0)
13280 
13281  def get_name(self):
13282  r"""get_name(Provenance self) -> std::string"""
13283  return _IMP_core.Provenance_get_name(self)
13284 
13285  def clear_caches(self):
13286  r"""clear_caches(Provenance self)"""
13287  return _IMP_core.Provenance_clear_caches(self)
13288 
13289  def set_name(self, a0):
13290  r"""set_name(Provenance self, std::string a0)"""
13291  return _IMP_core.Provenance_set_name(self, a0)
13292 
13293  def set_check_level(self, a0):
13294  r"""set_check_level(Provenance self, IMP::CheckLevel a0)"""
13295  return _IMP_core.Provenance_set_check_level(self, a0)
13296 
13297  def add_to_derivative(self, a0, a1, a2):
13298  r"""add_to_derivative(Provenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13299  return _IMP_core.Provenance_add_to_derivative(self, a0, a1, a2)
13300 
13301  def set_is_optimized(self, a0, a1):
13302  r"""set_is_optimized(Provenance self, FloatKey a0, bool a1)"""
13303  return _IMP_core.Provenance_set_is_optimized(self, a0, a1)
13304 
13305  def get_is_optimized(self, a0):
13306  r"""get_is_optimized(Provenance self, FloatKey a0) -> bool"""
13307  return _IMP_core.Provenance_get_is_optimized(self, a0)
13308 
13309  def get_check_level(self):
13310  r"""get_check_level(Provenance self) -> IMP::CheckLevel"""
13311  return _IMP_core.Provenance_get_check_level(self)
13312 
13313  def __eq__(self, *args):
13314  r"""
13315  __eq__(Provenance self, Provenance o) -> bool
13316  __eq__(Provenance self, Particle d) -> bool
13317  """
13318  return _IMP_core.Provenance___eq__(self, *args)
13319 
13320  def __ne__(self, *args):
13321  r"""
13322  __ne__(Provenance self, Provenance o) -> bool
13323  __ne__(Provenance self, Particle d) -> bool
13324  """
13325  return _IMP_core.Provenance___ne__(self, *args)
13326 
13327  def __le__(self, *args):
13328  r"""
13329  __le__(Provenance self, Provenance o) -> bool
13330  __le__(Provenance self, Particle d) -> bool
13331  """
13332  return _IMP_core.Provenance___le__(self, *args)
13333 
13334  def __lt__(self, *args):
13335  r"""
13336  __lt__(Provenance self, Provenance o) -> bool
13337  __lt__(Provenance self, Particle d) -> bool
13338  """
13339  return _IMP_core.Provenance___lt__(self, *args)
13340 
13341  def __ge__(self, *args):
13342  r"""
13343  __ge__(Provenance self, Provenance o) -> bool
13344  __ge__(Provenance self, Particle d) -> bool
13345  """
13346  return _IMP_core.Provenance___ge__(self, *args)
13347 
13348  def __gt__(self, *args):
13349  r"""
13350  __gt__(Provenance self, Provenance o) -> bool
13351  __gt__(Provenance self, Particle d) -> bool
13352  """
13353  return _IMP_core.Provenance___gt__(self, *args)
13354 
13355  def __hash__(self):
13356  r"""__hash__(Provenance self) -> std::size_t"""
13357  return _IMP_core.Provenance___hash__(self)
13358 
13359  def __str__(self):
13360  r"""__str__(Provenance self) -> std::string"""
13361  return _IMP_core.Provenance___str__(self)
13362 
13363  def __repr__(self):
13364  r"""__repr__(Provenance self) -> std::string"""
13365  return _IMP_core.Provenance___repr__(self)
13366 
13367  def _get_as_binary(self):
13368  r"""_get_as_binary(Provenance self) -> PyObject *"""
13369  return _IMP_core.Provenance__get_as_binary(self)
13370 
13371  def _set_from_binary(self, p):
13372  r"""_set_from_binary(Provenance self, PyObject * p)"""
13373  return _IMP_core.Provenance__set_from_binary(self, p)
13374 
13375  def __getstate__(self):
13376  p = self._get_as_binary()
13377  if len(self.__dict__) > 1:
13378  d = self.__dict__.copy()
13379  del d['this']
13380  p = (d, p)
13381  return p
13382 
13383  def __setstate__(self, p):
13384  if not hasattr(self, 'this'):
13385  self.__init__()
13386  if isinstance(p, tuple):
13387  d, p = p
13388  self.__dict__.update(d)
13389  return self._set_from_binary(p)
13390 
13391  __swig_destroy__ = _IMP_core.delete_Provenance
13392 
13393 # Register Provenance in _IMP_core:
13394 _IMP_core.Provenance_swigregister(Provenance)
13395 class StructureProvenance(Provenance):
13396  r"""Proxy of C++ IMP::core::StructureProvenance class."""
13397 
13398  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13399 
13400  def set_filename(self, filename):
13401  r"""set_filename(StructureProvenance self, std::string filename)"""
13402  return _IMP_core.StructureProvenance_set_filename(self, filename)
13403 
13404  def get_filename(self):
13405  r"""get_filename(StructureProvenance self) -> std::string"""
13406  return _IMP_core.StructureProvenance_get_filename(self)
13407 
13408  def set_chain_id(self, chain_id):
13409  r"""set_chain_id(StructureProvenance self, std::string chain_id)"""
13410  return _IMP_core.StructureProvenance_set_chain_id(self, chain_id)
13411 
13412  def get_chain_id(self):
13413  r"""get_chain_id(StructureProvenance self) -> std::string"""
13414  return _IMP_core.StructureProvenance_get_chain_id(self)
13415 
13416  def set_residue_offset(self, residue_offset):
13417  r"""set_residue_offset(StructureProvenance self, int residue_offset)"""
13418  return _IMP_core.StructureProvenance_set_residue_offset(self, residue_offset)
13419 
13420  def get_residue_offset(self):
13421  r"""get_residue_offset(StructureProvenance self) -> int"""
13422  return _IMP_core.StructureProvenance_get_residue_offset(self)
13423 
13424  def __init__(self, *args):
13425  r"""
13426  __init__(StructureProvenance self) -> StructureProvenance
13427  __init__(StructureProvenance self, Model m, ParticleIndex id) -> StructureProvenance
13428  __init__(StructureProvenance self, _ParticleAdaptor d) -> StructureProvenance
13429  """
13430  _IMP_core.StructureProvenance_swiginit(self, _IMP_core.new_StructureProvenance(*args))
13431 
13432  @staticmethod
13433  def get_is_setup(*args):
13434  r"""
13435  get_is_setup(Model m, ParticleIndex pi) -> bool
13436  get_is_setup(_ParticleAdaptor p) -> bool
13437  """
13438  return _IMP_core.StructureProvenance_get_is_setup(*args)
13439 
13440  def show(self, *args):
13441  r"""show(StructureProvenance self, _ostream out=std::cout)"""
13442  return _IMP_core.StructureProvenance_show(self, *args)
13443 
13444  @staticmethod
13445  def setup_particle(*args):
13446  r"""
13447  setup_particle(Model m, ParticleIndex pi, std::string filename, std::string chain_id, int residue_offset) -> StructureProvenance
13448  setup_particle(_ParticleAdaptor pa, std::string filename, std::string chain_id, int residue_offset) -> StructureProvenance
13449  setup_particle(Model m, ParticleIndex pi, std::string filename, std::string chain_id) -> StructureProvenance
13450  setup_particle(_ParticleAdaptor pa, std::string filename, std::string chain_id) -> StructureProvenance
13451  setup_particle(Model m, ParticleIndex pi, StructureProvenance o) -> StructureProvenance
13452  setup_particle(_ParticleAdaptor pa, StructureProvenance o) -> StructureProvenance
13453  """
13454  return _IMP_core.StructureProvenance_setup_particle(*args)
13455 
13456  def add_attribute(self, *args):
13457  r"""
13458  add_attribute(StructureProvenance self, FloatKey k, IMP::Float v, bool opt)
13459  add_attribute(StructureProvenance self, FloatKey a0, IMP::Float a1)
13460  add_attribute(StructureProvenance self, IntKey a0, IMP::Int a1)
13461  add_attribute(StructureProvenance self, FloatsKey a0, IMP::Floats a1)
13462  add_attribute(StructureProvenance self, IntsKey a0, IMP::Ints a1)
13463  add_attribute(StructureProvenance self, StringKey a0, IMP::String a1)
13464  add_attribute(StructureProvenance self, ParticleIndexKey a0, Particle a1)
13465  add_attribute(StructureProvenance self, ObjectKey a0, Object a1)
13466  add_attribute(StructureProvenance self, SparseFloatKey a0, IMP::Float a1)
13467  add_attribute(StructureProvenance self, SparseIntKey a0, IMP::Int a1)
13468  add_attribute(StructureProvenance self, SparseStringKey a0, IMP::String a1)
13469  add_attribute(StructureProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13470  """
13471  return _IMP_core.StructureProvenance_add_attribute(self, *args)
13472 
13473  def get_value(self, *args):
13474  r"""
13475  get_value(StructureProvenance self, FloatKey a0) -> IMP::Float
13476  get_value(StructureProvenance self, IntKey a0) -> IMP::Int
13477  get_value(StructureProvenance self, FloatsKey a0) -> IMP::Floats
13478  get_value(StructureProvenance self, IntsKey a0) -> IMP::Ints
13479  get_value(StructureProvenance self, StringKey a0) -> IMP::String
13480  get_value(StructureProvenance self, ParticleIndexKey a0) -> Particle
13481  get_value(StructureProvenance self, ObjectKey a0) -> Object
13482  get_value(StructureProvenance self, SparseFloatKey a0) -> IMP::Float
13483  get_value(StructureProvenance self, SparseIntKey a0) -> IMP::Int
13484  get_value(StructureProvenance self, SparseStringKey a0) -> IMP::String
13485  get_value(StructureProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
13486  """
13487  return _IMP_core.StructureProvenance_get_value(self, *args)
13488 
13489  def set_value(self, *args):
13490  r"""
13491  set_value(StructureProvenance self, FloatKey a0, IMP::Float a1)
13492  set_value(StructureProvenance self, IntKey a0, IMP::Int a1)
13493  set_value(StructureProvenance self, FloatsKey a0, IMP::Floats a1)
13494  set_value(StructureProvenance self, IntsKey a0, IMP::Ints a1)
13495  set_value(StructureProvenance self, StringKey a0, IMP::String a1)
13496  set_value(StructureProvenance self, ParticleIndexKey a0, Particle a1)
13497  set_value(StructureProvenance self, ObjectKey a0, Object a1)
13498  set_value(StructureProvenance self, SparseFloatKey a0, IMP::Float a1)
13499  set_value(StructureProvenance self, SparseIntKey a0, IMP::Int a1)
13500  set_value(StructureProvenance self, SparseStringKey a0, IMP::String a1)
13501  set_value(StructureProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13502  """
13503  return _IMP_core.StructureProvenance_set_value(self, *args)
13504 
13505  def remove_attribute(self, *args):
13506  r"""
13507  remove_attribute(StructureProvenance self, FloatKey a0)
13508  remove_attribute(StructureProvenance self, IntKey a0)
13509  remove_attribute(StructureProvenance self, FloatsKey a0)
13510  remove_attribute(StructureProvenance self, IntsKey a0)
13511  remove_attribute(StructureProvenance self, StringKey a0)
13512  remove_attribute(StructureProvenance self, ParticleIndexKey a0)
13513  remove_attribute(StructureProvenance self, ObjectKey a0)
13514  remove_attribute(StructureProvenance self, SparseFloatKey a0)
13515  remove_attribute(StructureProvenance self, SparseIntKey a0)
13516  remove_attribute(StructureProvenance self, SparseStringKey a0)
13517  remove_attribute(StructureProvenance self, SparseParticleIndexKey a0)
13518  """
13519  return _IMP_core.StructureProvenance_remove_attribute(self, *args)
13520 
13521  def has_attribute(self, *args):
13522  r"""
13523  has_attribute(StructureProvenance self, FloatKey a0) -> bool
13524  has_attribute(StructureProvenance self, IntKey a0) -> bool
13525  has_attribute(StructureProvenance self, FloatsKey a0) -> bool
13526  has_attribute(StructureProvenance self, IntsKey a0) -> bool
13527  has_attribute(StructureProvenance self, StringKey a0) -> bool
13528  has_attribute(StructureProvenance self, ParticleIndexKey a0) -> bool
13529  has_attribute(StructureProvenance self, ObjectKey a0) -> bool
13530  has_attribute(StructureProvenance self, SparseFloatKey a0) -> bool
13531  has_attribute(StructureProvenance self, SparseIntKey a0) -> bool
13532  has_attribute(StructureProvenance self, SparseStringKey a0) -> bool
13533  has_attribute(StructureProvenance self, SparseParticleIndexKey a0) -> bool
13534  """
13535  return _IMP_core.StructureProvenance_has_attribute(self, *args)
13536 
13537  def get_derivative(self, a0):
13538  r"""get_derivative(StructureProvenance self, FloatKey a0) -> double"""
13539  return _IMP_core.StructureProvenance_get_derivative(self, a0)
13540 
13541  def get_name(self):
13542  r"""get_name(StructureProvenance self) -> std::string"""
13543  return _IMP_core.StructureProvenance_get_name(self)
13544 
13545  def clear_caches(self):
13546  r"""clear_caches(StructureProvenance self)"""
13547  return _IMP_core.StructureProvenance_clear_caches(self)
13548 
13549  def set_name(self, a0):
13550  r"""set_name(StructureProvenance self, std::string a0)"""
13551  return _IMP_core.StructureProvenance_set_name(self, a0)
13552 
13553  def set_check_level(self, a0):
13554  r"""set_check_level(StructureProvenance self, IMP::CheckLevel a0)"""
13555  return _IMP_core.StructureProvenance_set_check_level(self, a0)
13556 
13557  def add_to_derivative(self, a0, a1, a2):
13558  r"""add_to_derivative(StructureProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13559  return _IMP_core.StructureProvenance_add_to_derivative(self, a0, a1, a2)
13560 
13561  def set_is_optimized(self, a0, a1):
13562  r"""set_is_optimized(StructureProvenance self, FloatKey a0, bool a1)"""
13563  return _IMP_core.StructureProvenance_set_is_optimized(self, a0, a1)
13564 
13565  def get_is_optimized(self, a0):
13566  r"""get_is_optimized(StructureProvenance self, FloatKey a0) -> bool"""
13567  return _IMP_core.StructureProvenance_get_is_optimized(self, a0)
13568 
13569  def get_check_level(self):
13570  r"""get_check_level(StructureProvenance self) -> IMP::CheckLevel"""
13571  return _IMP_core.StructureProvenance_get_check_level(self)
13572 
13573  def __eq__(self, *args):
13574  r"""
13575  __eq__(StructureProvenance self, StructureProvenance o) -> bool
13576  __eq__(StructureProvenance self, Particle d) -> bool
13577  """
13578  return _IMP_core.StructureProvenance___eq__(self, *args)
13579 
13580  def __ne__(self, *args):
13581  r"""
13582  __ne__(StructureProvenance self, StructureProvenance o) -> bool
13583  __ne__(StructureProvenance self, Particle d) -> bool
13584  """
13585  return _IMP_core.StructureProvenance___ne__(self, *args)
13586 
13587  def __le__(self, *args):
13588  r"""
13589  __le__(StructureProvenance self, StructureProvenance o) -> bool
13590  __le__(StructureProvenance self, Particle d) -> bool
13591  """
13592  return _IMP_core.StructureProvenance___le__(self, *args)
13593 
13594  def __lt__(self, *args):
13595  r"""
13596  __lt__(StructureProvenance self, StructureProvenance o) -> bool
13597  __lt__(StructureProvenance self, Particle d) -> bool
13598  """
13599  return _IMP_core.StructureProvenance___lt__(self, *args)
13600 
13601  def __ge__(self, *args):
13602  r"""
13603  __ge__(StructureProvenance self, StructureProvenance o) -> bool
13604  __ge__(StructureProvenance self, Particle d) -> bool
13605  """
13606  return _IMP_core.StructureProvenance___ge__(self, *args)
13607 
13608  def __gt__(self, *args):
13609  r"""
13610  __gt__(StructureProvenance self, StructureProvenance o) -> bool
13611  __gt__(StructureProvenance self, Particle d) -> bool
13612  """
13613  return _IMP_core.StructureProvenance___gt__(self, *args)
13614 
13615  def __hash__(self):
13616  r"""__hash__(StructureProvenance self) -> std::size_t"""
13617  return _IMP_core.StructureProvenance___hash__(self)
13618 
13619  def __str__(self):
13620  r"""__str__(StructureProvenance self) -> std::string"""
13621  return _IMP_core.StructureProvenance___str__(self)
13622 
13623  def __repr__(self):
13624  r"""__repr__(StructureProvenance self) -> std::string"""
13625  return _IMP_core.StructureProvenance___repr__(self)
13626 
13627  def _get_as_binary(self):
13628  r"""_get_as_binary(StructureProvenance self) -> PyObject *"""
13629  return _IMP_core.StructureProvenance__get_as_binary(self)
13630 
13631  def _set_from_binary(self, p):
13632  r"""_set_from_binary(StructureProvenance self, PyObject * p)"""
13633  return _IMP_core.StructureProvenance__set_from_binary(self, p)
13634 
13635  def __getstate__(self):
13636  p = self._get_as_binary()
13637  if len(self.__dict__) > 1:
13638  d = self.__dict__.copy()
13639  del d['this']
13640  p = (d, p)
13641  return p
13642 
13643  def __setstate__(self, p):
13644  if not hasattr(self, 'this'):
13645  self.__init__()
13646  if isinstance(p, tuple):
13647  d, p = p
13648  self.__dict__.update(d)
13649  return self._set_from_binary(p)
13650 
13651  __swig_destroy__ = _IMP_core.delete_StructureProvenance
13652 
13653 # Register StructureProvenance in _IMP_core:
13654 _IMP_core.StructureProvenance_swigregister(StructureProvenance)
13655 class SampleProvenance(Provenance):
13656  r"""Proxy of C++ IMP::core::SampleProvenance class."""
13657 
13658  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13659 
13660  def set_method(self, method):
13661  r"""set_method(SampleProvenance self, std::string method)"""
13662  return _IMP_core.SampleProvenance_set_method(self, method)
13663 
13664  def get_method(self):
13665  r"""get_method(SampleProvenance self) -> std::string"""
13666  return _IMP_core.SampleProvenance_get_method(self)
13667 
13668  def set_number_of_frames(self, frames):
13669  r"""set_number_of_frames(SampleProvenance self, int frames)"""
13670  return _IMP_core.SampleProvenance_set_number_of_frames(self, frames)
13671 
13672  def get_number_of_frames(self):
13673  r"""get_number_of_frames(SampleProvenance self) -> int"""
13674  return _IMP_core.SampleProvenance_get_number_of_frames(self)
13675 
13676  def set_number_of_iterations(self, iterations):
13677  r"""set_number_of_iterations(SampleProvenance self, int iterations)"""
13678  return _IMP_core.SampleProvenance_set_number_of_iterations(self, iterations)
13679 
13680  def get_number_of_iterations(self):
13681  r"""get_number_of_iterations(SampleProvenance self) -> int"""
13682  return _IMP_core.SampleProvenance_get_number_of_iterations(self)
13683 
13684  def set_number_of_replicas(self, replicas):
13685  r"""set_number_of_replicas(SampleProvenance self, int replicas)"""
13686  return _IMP_core.SampleProvenance_set_number_of_replicas(self, replicas)
13687 
13688  def get_number_of_replicas(self):
13689  r"""get_number_of_replicas(SampleProvenance self) -> int"""
13690  return _IMP_core.SampleProvenance_get_number_of_replicas(self)
13691 
13692  def __init__(self, *args):
13693  r"""
13694  __init__(SampleProvenance self) -> SampleProvenance
13695  __init__(SampleProvenance self, Model m, ParticleIndex id) -> SampleProvenance
13696  __init__(SampleProvenance self, _ParticleAdaptor d) -> SampleProvenance
13697  """
13698  _IMP_core.SampleProvenance_swiginit(self, _IMP_core.new_SampleProvenance(*args))
13699 
13700  @staticmethod
13701  def get_is_setup(*args):
13702  r"""
13703  get_is_setup(Model m, ParticleIndex pi) -> bool
13704  get_is_setup(_ParticleAdaptor p) -> bool
13705  """
13706  return _IMP_core.SampleProvenance_get_is_setup(*args)
13707 
13708  def show(self, *args):
13709  r"""show(SampleProvenance self, _ostream out=std::cout)"""
13710  return _IMP_core.SampleProvenance_show(self, *args)
13711 
13712  @staticmethod
13713  def setup_particle(*args):
13714  r"""
13715  setup_particle(Model m, ParticleIndex pi, std::string method, int frames, int iterations, int replicas) -> SampleProvenance
13716  setup_particle(_ParticleAdaptor pa, std::string method, int frames, int iterations, int replicas) -> SampleProvenance
13717  setup_particle(Model m, ParticleIndex pi, std::string method, int frames, int iterations) -> SampleProvenance
13718  setup_particle(_ParticleAdaptor pa, std::string method, int frames, int iterations) -> SampleProvenance
13719  setup_particle(Model m, ParticleIndex pi, SampleProvenance o) -> SampleProvenance
13720  setup_particle(_ParticleAdaptor pa, SampleProvenance o) -> SampleProvenance
13721  """
13722  return _IMP_core.SampleProvenance_setup_particle(*args)
13723 
13724  def add_attribute(self, *args):
13725  r"""
13726  add_attribute(SampleProvenance self, FloatKey k, IMP::Float v, bool opt)
13727  add_attribute(SampleProvenance self, FloatKey a0, IMP::Float a1)
13728  add_attribute(SampleProvenance self, IntKey a0, IMP::Int a1)
13729  add_attribute(SampleProvenance self, FloatsKey a0, IMP::Floats a1)
13730  add_attribute(SampleProvenance self, IntsKey a0, IMP::Ints a1)
13731  add_attribute(SampleProvenance self, StringKey a0, IMP::String a1)
13732  add_attribute(SampleProvenance self, ParticleIndexKey a0, Particle a1)
13733  add_attribute(SampleProvenance self, ObjectKey a0, Object a1)
13734  add_attribute(SampleProvenance self, SparseFloatKey a0, IMP::Float a1)
13735  add_attribute(SampleProvenance self, SparseIntKey a0, IMP::Int a1)
13736  add_attribute(SampleProvenance self, SparseStringKey a0, IMP::String a1)
13737  add_attribute(SampleProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13738  """
13739  return _IMP_core.SampleProvenance_add_attribute(self, *args)
13740 
13741  def get_value(self, *args):
13742  r"""
13743  get_value(SampleProvenance self, FloatKey a0) -> IMP::Float
13744  get_value(SampleProvenance self, IntKey a0) -> IMP::Int
13745  get_value(SampleProvenance self, FloatsKey a0) -> IMP::Floats
13746  get_value(SampleProvenance self, IntsKey a0) -> IMP::Ints
13747  get_value(SampleProvenance self, StringKey a0) -> IMP::String
13748  get_value(SampleProvenance self, ParticleIndexKey a0) -> Particle
13749  get_value(SampleProvenance self, ObjectKey a0) -> Object
13750  get_value(SampleProvenance self, SparseFloatKey a0) -> IMP::Float
13751  get_value(SampleProvenance self, SparseIntKey a0) -> IMP::Int
13752  get_value(SampleProvenance self, SparseStringKey a0) -> IMP::String
13753  get_value(SampleProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
13754  """
13755  return _IMP_core.SampleProvenance_get_value(self, *args)
13756 
13757  def set_value(self, *args):
13758  r"""
13759  set_value(SampleProvenance self, FloatKey a0, IMP::Float a1)
13760  set_value(SampleProvenance self, IntKey a0, IMP::Int a1)
13761  set_value(SampleProvenance self, FloatsKey a0, IMP::Floats a1)
13762  set_value(SampleProvenance self, IntsKey a0, IMP::Ints a1)
13763  set_value(SampleProvenance self, StringKey a0, IMP::String a1)
13764  set_value(SampleProvenance self, ParticleIndexKey a0, Particle a1)
13765  set_value(SampleProvenance self, ObjectKey a0, Object a1)
13766  set_value(SampleProvenance self, SparseFloatKey a0, IMP::Float a1)
13767  set_value(SampleProvenance self, SparseIntKey a0, IMP::Int a1)
13768  set_value(SampleProvenance self, SparseStringKey a0, IMP::String a1)
13769  set_value(SampleProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13770  """
13771  return _IMP_core.SampleProvenance_set_value(self, *args)
13772 
13773  def remove_attribute(self, *args):
13774  r"""
13775  remove_attribute(SampleProvenance self, FloatKey a0)
13776  remove_attribute(SampleProvenance self, IntKey a0)
13777  remove_attribute(SampleProvenance self, FloatsKey a0)
13778  remove_attribute(SampleProvenance self, IntsKey a0)
13779  remove_attribute(SampleProvenance self, StringKey a0)
13780  remove_attribute(SampleProvenance self, ParticleIndexKey a0)
13781  remove_attribute(SampleProvenance self, ObjectKey a0)
13782  remove_attribute(SampleProvenance self, SparseFloatKey a0)
13783  remove_attribute(SampleProvenance self, SparseIntKey a0)
13784  remove_attribute(SampleProvenance self, SparseStringKey a0)
13785  remove_attribute(SampleProvenance self, SparseParticleIndexKey a0)
13786  """
13787  return _IMP_core.SampleProvenance_remove_attribute(self, *args)
13788 
13789  def has_attribute(self, *args):
13790  r"""
13791  has_attribute(SampleProvenance self, FloatKey a0) -> bool
13792  has_attribute(SampleProvenance self, IntKey a0) -> bool
13793  has_attribute(SampleProvenance self, FloatsKey a0) -> bool
13794  has_attribute(SampleProvenance self, IntsKey a0) -> bool
13795  has_attribute(SampleProvenance self, StringKey a0) -> bool
13796  has_attribute(SampleProvenance self, ParticleIndexKey a0) -> bool
13797  has_attribute(SampleProvenance self, ObjectKey a0) -> bool
13798  has_attribute(SampleProvenance self, SparseFloatKey a0) -> bool
13799  has_attribute(SampleProvenance self, SparseIntKey a0) -> bool
13800  has_attribute(SampleProvenance self, SparseStringKey a0) -> bool
13801  has_attribute(SampleProvenance self, SparseParticleIndexKey a0) -> bool
13802  """
13803  return _IMP_core.SampleProvenance_has_attribute(self, *args)
13804 
13805  def get_derivative(self, a0):
13806  r"""get_derivative(SampleProvenance self, FloatKey a0) -> double"""
13807  return _IMP_core.SampleProvenance_get_derivative(self, a0)
13808 
13809  def get_name(self):
13810  r"""get_name(SampleProvenance self) -> std::string"""
13811  return _IMP_core.SampleProvenance_get_name(self)
13812 
13813  def clear_caches(self):
13814  r"""clear_caches(SampleProvenance self)"""
13815  return _IMP_core.SampleProvenance_clear_caches(self)
13816 
13817  def set_name(self, a0):
13818  r"""set_name(SampleProvenance self, std::string a0)"""
13819  return _IMP_core.SampleProvenance_set_name(self, a0)
13820 
13821  def set_check_level(self, a0):
13822  r"""set_check_level(SampleProvenance self, IMP::CheckLevel a0)"""
13823  return _IMP_core.SampleProvenance_set_check_level(self, a0)
13824 
13825  def add_to_derivative(self, a0, a1, a2):
13826  r"""add_to_derivative(SampleProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13827  return _IMP_core.SampleProvenance_add_to_derivative(self, a0, a1, a2)
13828 
13829  def set_is_optimized(self, a0, a1):
13830  r"""set_is_optimized(SampleProvenance self, FloatKey a0, bool a1)"""
13831  return _IMP_core.SampleProvenance_set_is_optimized(self, a0, a1)
13832 
13833  def get_is_optimized(self, a0):
13834  r"""get_is_optimized(SampleProvenance self, FloatKey a0) -> bool"""
13835  return _IMP_core.SampleProvenance_get_is_optimized(self, a0)
13836 
13837  def get_check_level(self):
13838  r"""get_check_level(SampleProvenance self) -> IMP::CheckLevel"""
13839  return _IMP_core.SampleProvenance_get_check_level(self)
13840 
13841  def __eq__(self, *args):
13842  r"""
13843  __eq__(SampleProvenance self, SampleProvenance o) -> bool
13844  __eq__(SampleProvenance self, Particle d) -> bool
13845  """
13846  return _IMP_core.SampleProvenance___eq__(self, *args)
13847 
13848  def __ne__(self, *args):
13849  r"""
13850  __ne__(SampleProvenance self, SampleProvenance o) -> bool
13851  __ne__(SampleProvenance self, Particle d) -> bool
13852  """
13853  return _IMP_core.SampleProvenance___ne__(self, *args)
13854 
13855  def __le__(self, *args):
13856  r"""
13857  __le__(SampleProvenance self, SampleProvenance o) -> bool
13858  __le__(SampleProvenance self, Particle d) -> bool
13859  """
13860  return _IMP_core.SampleProvenance___le__(self, *args)
13861 
13862  def __lt__(self, *args):
13863  r"""
13864  __lt__(SampleProvenance self, SampleProvenance o) -> bool
13865  __lt__(SampleProvenance self, Particle d) -> bool
13866  """
13867  return _IMP_core.SampleProvenance___lt__(self, *args)
13868 
13869  def __ge__(self, *args):
13870  r"""
13871  __ge__(SampleProvenance self, SampleProvenance o) -> bool
13872  __ge__(SampleProvenance self, Particle d) -> bool
13873  """
13874  return _IMP_core.SampleProvenance___ge__(self, *args)
13875 
13876  def __gt__(self, *args):
13877  r"""
13878  __gt__(SampleProvenance self, SampleProvenance o) -> bool
13879  __gt__(SampleProvenance self, Particle d) -> bool
13880  """
13881  return _IMP_core.SampleProvenance___gt__(self, *args)
13882 
13883  def __hash__(self):
13884  r"""__hash__(SampleProvenance self) -> std::size_t"""
13885  return _IMP_core.SampleProvenance___hash__(self)
13886 
13887  def __str__(self):
13888  r"""__str__(SampleProvenance self) -> std::string"""
13889  return _IMP_core.SampleProvenance___str__(self)
13890 
13891  def __repr__(self):
13892  r"""__repr__(SampleProvenance self) -> std::string"""
13893  return _IMP_core.SampleProvenance___repr__(self)
13894 
13895  def _get_as_binary(self):
13896  r"""_get_as_binary(SampleProvenance self) -> PyObject *"""
13897  return _IMP_core.SampleProvenance__get_as_binary(self)
13898 
13899  def _set_from_binary(self, p):
13900  r"""_set_from_binary(SampleProvenance self, PyObject * p)"""
13901  return _IMP_core.SampleProvenance__set_from_binary(self, p)
13902 
13903  def __getstate__(self):
13904  p = self._get_as_binary()
13905  if len(self.__dict__) > 1:
13906  d = self.__dict__.copy()
13907  del d['this']
13908  p = (d, p)
13909  return p
13910 
13911  def __setstate__(self, p):
13912  if not hasattr(self, 'this'):
13913  self.__init__()
13914  if isinstance(p, tuple):
13915  d, p = p
13916  self.__dict__.update(d)
13917  return self._set_from_binary(p)
13918 
13919  __swig_destroy__ = _IMP_core.delete_SampleProvenance
13920 
13921 # Register SampleProvenance in _IMP_core:
13922 _IMP_core.SampleProvenance_swigregister(SampleProvenance)
13923 class CombineProvenance(Provenance):
13924  r"""Proxy of C++ IMP::core::CombineProvenance class."""
13925 
13926  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13927 
13928  def set_number_of_frames(self, frames):
13929  r"""set_number_of_frames(CombineProvenance self, int frames)"""
13930  return _IMP_core.CombineProvenance_set_number_of_frames(self, frames)
13931 
13932  def get_number_of_frames(self):
13933  r"""get_number_of_frames(CombineProvenance self) -> int"""
13934  return _IMP_core.CombineProvenance_get_number_of_frames(self)
13935 
13936  def set_number_of_runs(self, runs):
13937  r"""set_number_of_runs(CombineProvenance self, int runs)"""
13938  return _IMP_core.CombineProvenance_set_number_of_runs(self, runs)
13939 
13940  def get_number_of_runs(self):
13941  r"""get_number_of_runs(CombineProvenance self) -> int"""
13942  return _IMP_core.CombineProvenance_get_number_of_runs(self)
13943 
13944  def __init__(self, *args):
13945  r"""
13946  __init__(CombineProvenance self) -> CombineProvenance
13947  __init__(CombineProvenance self, Model m, ParticleIndex id) -> CombineProvenance
13948  __init__(CombineProvenance self, _ParticleAdaptor d) -> CombineProvenance
13949  """
13950  _IMP_core.CombineProvenance_swiginit(self, _IMP_core.new_CombineProvenance(*args))
13951 
13952  @staticmethod
13953  def get_is_setup(*args):
13954  r"""
13955  get_is_setup(Model m, ParticleIndex pi) -> bool
13956  get_is_setup(_ParticleAdaptor p) -> bool
13957  """
13958  return _IMP_core.CombineProvenance_get_is_setup(*args)
13959 
13960  def show(self, *args):
13961  r"""show(CombineProvenance self, _ostream out=std::cout)"""
13962  return _IMP_core.CombineProvenance_show(self, *args)
13963 
13964  @staticmethod
13965  def setup_particle(*args):
13966  r"""
13967  setup_particle(Model m, ParticleIndex pi, int runs, int frames) -> CombineProvenance
13968  setup_particle(_ParticleAdaptor pa, int runs, int frames) -> CombineProvenance
13969  setup_particle(Model m, ParticleIndex pi, CombineProvenance o) -> CombineProvenance
13970  setup_particle(_ParticleAdaptor pa, CombineProvenance o) -> CombineProvenance
13971  """
13972  return _IMP_core.CombineProvenance_setup_particle(*args)
13973 
13974  def add_attribute(self, *args):
13975  r"""
13976  add_attribute(CombineProvenance self, FloatKey k, IMP::Float v, bool opt)
13977  add_attribute(CombineProvenance self, FloatKey a0, IMP::Float a1)
13978  add_attribute(CombineProvenance self, IntKey a0, IMP::Int a1)
13979  add_attribute(CombineProvenance self, FloatsKey a0, IMP::Floats a1)
13980  add_attribute(CombineProvenance self, IntsKey a0, IMP::Ints a1)
13981  add_attribute(CombineProvenance self, StringKey a0, IMP::String a1)
13982  add_attribute(CombineProvenance self, ParticleIndexKey a0, Particle a1)
13983  add_attribute(CombineProvenance self, ObjectKey a0, Object a1)
13984  add_attribute(CombineProvenance self, SparseFloatKey a0, IMP::Float a1)
13985  add_attribute(CombineProvenance self, SparseIntKey a0, IMP::Int a1)
13986  add_attribute(CombineProvenance self, SparseStringKey a0, IMP::String a1)
13987  add_attribute(CombineProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13988  """
13989  return _IMP_core.CombineProvenance_add_attribute(self, *args)
13990 
13991  def get_value(self, *args):
13992  r"""
13993  get_value(CombineProvenance self, FloatKey a0) -> IMP::Float
13994  get_value(CombineProvenance self, IntKey a0) -> IMP::Int
13995  get_value(CombineProvenance self, FloatsKey a0) -> IMP::Floats
13996  get_value(CombineProvenance self, IntsKey a0) -> IMP::Ints
13997  get_value(CombineProvenance self, StringKey a0) -> IMP::String
13998  get_value(CombineProvenance self, ParticleIndexKey a0) -> Particle
13999  get_value(CombineProvenance self, ObjectKey a0) -> Object
14000  get_value(CombineProvenance self, SparseFloatKey a0) -> IMP::Float
14001  get_value(CombineProvenance self, SparseIntKey a0) -> IMP::Int
14002  get_value(CombineProvenance self, SparseStringKey a0) -> IMP::String
14003  get_value(CombineProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14004  """
14005  return _IMP_core.CombineProvenance_get_value(self, *args)
14006 
14007  def set_value(self, *args):
14008  r"""
14009  set_value(CombineProvenance self, FloatKey a0, IMP::Float a1)
14010  set_value(CombineProvenance self, IntKey a0, IMP::Int a1)
14011  set_value(CombineProvenance self, FloatsKey a0, IMP::Floats a1)
14012  set_value(CombineProvenance self, IntsKey a0, IMP::Ints a1)
14013  set_value(CombineProvenance self, StringKey a0, IMP::String a1)
14014  set_value(CombineProvenance self, ParticleIndexKey a0, Particle a1)
14015  set_value(CombineProvenance self, ObjectKey a0, Object a1)
14016  set_value(CombineProvenance self, SparseFloatKey a0, IMP::Float a1)
14017  set_value(CombineProvenance self, SparseIntKey a0, IMP::Int a1)
14018  set_value(CombineProvenance self, SparseStringKey a0, IMP::String a1)
14019  set_value(CombineProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14020  """
14021  return _IMP_core.CombineProvenance_set_value(self, *args)
14022 
14023  def remove_attribute(self, *args):
14024  r"""
14025  remove_attribute(CombineProvenance self, FloatKey a0)
14026  remove_attribute(CombineProvenance self, IntKey a0)
14027  remove_attribute(CombineProvenance self, FloatsKey a0)
14028  remove_attribute(CombineProvenance self, IntsKey a0)
14029  remove_attribute(CombineProvenance self, StringKey a0)
14030  remove_attribute(CombineProvenance self, ParticleIndexKey a0)
14031  remove_attribute(CombineProvenance self, ObjectKey a0)
14032  remove_attribute(CombineProvenance self, SparseFloatKey a0)
14033  remove_attribute(CombineProvenance self, SparseIntKey a0)
14034  remove_attribute(CombineProvenance self, SparseStringKey a0)
14035  remove_attribute(CombineProvenance self, SparseParticleIndexKey a0)
14036  """
14037  return _IMP_core.CombineProvenance_remove_attribute(self, *args)
14038 
14039  def has_attribute(self, *args):
14040  r"""
14041  has_attribute(CombineProvenance self, FloatKey a0) -> bool
14042  has_attribute(CombineProvenance self, IntKey a0) -> bool
14043  has_attribute(CombineProvenance self, FloatsKey a0) -> bool
14044  has_attribute(CombineProvenance self, IntsKey a0) -> bool
14045  has_attribute(CombineProvenance self, StringKey a0) -> bool
14046  has_attribute(CombineProvenance self, ParticleIndexKey a0) -> bool
14047  has_attribute(CombineProvenance self, ObjectKey a0) -> bool
14048  has_attribute(CombineProvenance self, SparseFloatKey a0) -> bool
14049  has_attribute(CombineProvenance self, SparseIntKey a0) -> bool
14050  has_attribute(CombineProvenance self, SparseStringKey a0) -> bool
14051  has_attribute(CombineProvenance self, SparseParticleIndexKey a0) -> bool
14052  """
14053  return _IMP_core.CombineProvenance_has_attribute(self, *args)
14054 
14055  def get_derivative(self, a0):
14056  r"""get_derivative(CombineProvenance self, FloatKey a0) -> double"""
14057  return _IMP_core.CombineProvenance_get_derivative(self, a0)
14058 
14059  def get_name(self):
14060  r"""get_name(CombineProvenance self) -> std::string"""
14061  return _IMP_core.CombineProvenance_get_name(self)
14062 
14063  def clear_caches(self):
14064  r"""clear_caches(CombineProvenance self)"""
14065  return _IMP_core.CombineProvenance_clear_caches(self)
14066 
14067  def set_name(self, a0):
14068  r"""set_name(CombineProvenance self, std::string a0)"""
14069  return _IMP_core.CombineProvenance_set_name(self, a0)
14070 
14071  def set_check_level(self, a0):
14072  r"""set_check_level(CombineProvenance self, IMP::CheckLevel a0)"""
14073  return _IMP_core.CombineProvenance_set_check_level(self, a0)
14074 
14075  def add_to_derivative(self, a0, a1, a2):
14076  r"""add_to_derivative(CombineProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14077  return _IMP_core.CombineProvenance_add_to_derivative(self, a0, a1, a2)
14078 
14079  def set_is_optimized(self, a0, a1):
14080  r"""set_is_optimized(CombineProvenance self, FloatKey a0, bool a1)"""
14081  return _IMP_core.CombineProvenance_set_is_optimized(self, a0, a1)
14082 
14083  def get_is_optimized(self, a0):
14084  r"""get_is_optimized(CombineProvenance self, FloatKey a0) -> bool"""
14085  return _IMP_core.CombineProvenance_get_is_optimized(self, a0)
14086 
14087  def get_check_level(self):
14088  r"""get_check_level(CombineProvenance self) -> IMP::CheckLevel"""
14089  return _IMP_core.CombineProvenance_get_check_level(self)
14090 
14091  def __eq__(self, *args):
14092  r"""
14093  __eq__(CombineProvenance self, CombineProvenance o) -> bool
14094  __eq__(CombineProvenance self, Particle d) -> bool
14095  """
14096  return _IMP_core.CombineProvenance___eq__(self, *args)
14097 
14098  def __ne__(self, *args):
14099  r"""
14100  __ne__(CombineProvenance self, CombineProvenance o) -> bool
14101  __ne__(CombineProvenance self, Particle d) -> bool
14102  """
14103  return _IMP_core.CombineProvenance___ne__(self, *args)
14104 
14105  def __le__(self, *args):
14106  r"""
14107  __le__(CombineProvenance self, CombineProvenance o) -> bool
14108  __le__(CombineProvenance self, Particle d) -> bool
14109  """
14110  return _IMP_core.CombineProvenance___le__(self, *args)
14111 
14112  def __lt__(self, *args):
14113  r"""
14114  __lt__(CombineProvenance self, CombineProvenance o) -> bool
14115  __lt__(CombineProvenance self, Particle d) -> bool
14116  """
14117  return _IMP_core.CombineProvenance___lt__(self, *args)
14118 
14119  def __ge__(self, *args):
14120  r"""
14121  __ge__(CombineProvenance self, CombineProvenance o) -> bool
14122  __ge__(CombineProvenance self, Particle d) -> bool
14123  """
14124  return _IMP_core.CombineProvenance___ge__(self, *args)
14125 
14126  def __gt__(self, *args):
14127  r"""
14128  __gt__(CombineProvenance self, CombineProvenance o) -> bool
14129  __gt__(CombineProvenance self, Particle d) -> bool
14130  """
14131  return _IMP_core.CombineProvenance___gt__(self, *args)
14132 
14133  def __hash__(self):
14134  r"""__hash__(CombineProvenance self) -> std::size_t"""
14135  return _IMP_core.CombineProvenance___hash__(self)
14136 
14137  def __str__(self):
14138  r"""__str__(CombineProvenance self) -> std::string"""
14139  return _IMP_core.CombineProvenance___str__(self)
14140 
14141  def __repr__(self):
14142  r"""__repr__(CombineProvenance self) -> std::string"""
14143  return _IMP_core.CombineProvenance___repr__(self)
14144 
14145  def _get_as_binary(self):
14146  r"""_get_as_binary(CombineProvenance self) -> PyObject *"""
14147  return _IMP_core.CombineProvenance__get_as_binary(self)
14148 
14149  def _set_from_binary(self, p):
14150  r"""_set_from_binary(CombineProvenance self, PyObject * p)"""
14151  return _IMP_core.CombineProvenance__set_from_binary(self, p)
14152 
14153  def __getstate__(self):
14154  p = self._get_as_binary()
14155  if len(self.__dict__) > 1:
14156  d = self.__dict__.copy()
14157  del d['this']
14158  p = (d, p)
14159  return p
14160 
14161  def __setstate__(self, p):
14162  if not hasattr(self, 'this'):
14163  self.__init__()
14164  if isinstance(p, tuple):
14165  d, p = p
14166  self.__dict__.update(d)
14167  return self._set_from_binary(p)
14168 
14169  __swig_destroy__ = _IMP_core.delete_CombineProvenance
14170 
14171 # Register CombineProvenance in _IMP_core:
14172 _IMP_core.CombineProvenance_swigregister(CombineProvenance)
14173 class FilterProvenance(Provenance):
14174  r"""Proxy of C++ IMP::core::FilterProvenance class."""
14175 
14176  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14177 
14178  def set_method(self, method):
14179  r"""set_method(FilterProvenance self, std::string method)"""
14180  return _IMP_core.FilterProvenance_set_method(self, method)
14181 
14182  def get_method(self):
14183  r"""get_method(FilterProvenance self) -> std::string"""
14184  return _IMP_core.FilterProvenance_get_method(self)
14185 
14186  def set_number_of_frames(self, frames):
14187  r"""set_number_of_frames(FilterProvenance self, int frames)"""
14188  return _IMP_core.FilterProvenance_set_number_of_frames(self, frames)
14189 
14190  def get_number_of_frames(self):
14191  r"""get_number_of_frames(FilterProvenance self) -> int"""
14192  return _IMP_core.FilterProvenance_get_number_of_frames(self)
14193 
14194  def set_threshold(self, threshold):
14195  r"""set_threshold(FilterProvenance self, double threshold)"""
14196  return _IMP_core.FilterProvenance_set_threshold(self, threshold)
14197 
14198  def get_threshold(self):
14199  r"""get_threshold(FilterProvenance self) -> double"""
14200  return _IMP_core.FilterProvenance_get_threshold(self)
14201 
14202  def __init__(self, *args):
14203  r"""
14204  __init__(FilterProvenance self) -> FilterProvenance
14205  __init__(FilterProvenance self, Model m, ParticleIndex id) -> FilterProvenance
14206  __init__(FilterProvenance self, _ParticleAdaptor d) -> FilterProvenance
14207  """
14208  _IMP_core.FilterProvenance_swiginit(self, _IMP_core.new_FilterProvenance(*args))
14209 
14210  @staticmethod
14211  def get_is_setup(*args):
14212  r"""
14213  get_is_setup(Model m, ParticleIndex pi) -> bool
14214  get_is_setup(_ParticleAdaptor p) -> bool
14215  """
14216  return _IMP_core.FilterProvenance_get_is_setup(*args)
14217 
14218  def show(self, *args):
14219  r"""show(FilterProvenance self, _ostream out=std::cout)"""
14220  return _IMP_core.FilterProvenance_show(self, *args)
14221 
14222  @staticmethod
14223  def setup_particle(*args):
14224  r"""
14225  setup_particle(Model m, ParticleIndex pi, std::string method, double threshold, int frames) -> FilterProvenance
14226  setup_particle(_ParticleAdaptor pa, std::string method, double threshold, int frames) -> FilterProvenance
14227  setup_particle(Model m, ParticleIndex pi, FilterProvenance o) -> FilterProvenance
14228  setup_particle(_ParticleAdaptor pa, FilterProvenance o) -> FilterProvenance
14229  """
14230  return _IMP_core.FilterProvenance_setup_particle(*args)
14231 
14232  def add_attribute(self, *args):
14233  r"""
14234  add_attribute(FilterProvenance self, FloatKey k, IMP::Float v, bool opt)
14235  add_attribute(FilterProvenance self, FloatKey a0, IMP::Float a1)
14236  add_attribute(FilterProvenance self, IntKey a0, IMP::Int a1)
14237  add_attribute(FilterProvenance self, FloatsKey a0, IMP::Floats a1)
14238  add_attribute(FilterProvenance self, IntsKey a0, IMP::Ints a1)
14239  add_attribute(FilterProvenance self, StringKey a0, IMP::String a1)
14240  add_attribute(FilterProvenance self, ParticleIndexKey a0, Particle a1)
14241  add_attribute(FilterProvenance self, ObjectKey a0, Object a1)
14242  add_attribute(FilterProvenance self, SparseFloatKey a0, IMP::Float a1)
14243  add_attribute(FilterProvenance self, SparseIntKey a0, IMP::Int a1)
14244  add_attribute(FilterProvenance self, SparseStringKey a0, IMP::String a1)
14245  add_attribute(FilterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14246  """
14247  return _IMP_core.FilterProvenance_add_attribute(self, *args)
14248 
14249  def get_value(self, *args):
14250  r"""
14251  get_value(FilterProvenance self, FloatKey a0) -> IMP::Float
14252  get_value(FilterProvenance self, IntKey a0) -> IMP::Int
14253  get_value(FilterProvenance self, FloatsKey a0) -> IMP::Floats
14254  get_value(FilterProvenance self, IntsKey a0) -> IMP::Ints
14255  get_value(FilterProvenance self, StringKey a0) -> IMP::String
14256  get_value(FilterProvenance self, ParticleIndexKey a0) -> Particle
14257  get_value(FilterProvenance self, ObjectKey a0) -> Object
14258  get_value(FilterProvenance self, SparseFloatKey a0) -> IMP::Float
14259  get_value(FilterProvenance self, SparseIntKey a0) -> IMP::Int
14260  get_value(FilterProvenance self, SparseStringKey a0) -> IMP::String
14261  get_value(FilterProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14262  """
14263  return _IMP_core.FilterProvenance_get_value(self, *args)
14264 
14265  def set_value(self, *args):
14266  r"""
14267  set_value(FilterProvenance self, FloatKey a0, IMP::Float a1)
14268  set_value(FilterProvenance self, IntKey a0, IMP::Int a1)
14269  set_value(FilterProvenance self, FloatsKey a0, IMP::Floats a1)
14270  set_value(FilterProvenance self, IntsKey a0, IMP::Ints a1)
14271  set_value(FilterProvenance self, StringKey a0, IMP::String a1)
14272  set_value(FilterProvenance self, ParticleIndexKey a0, Particle a1)
14273  set_value(FilterProvenance self, ObjectKey a0, Object a1)
14274  set_value(FilterProvenance self, SparseFloatKey a0, IMP::Float a1)
14275  set_value(FilterProvenance self, SparseIntKey a0, IMP::Int a1)
14276  set_value(FilterProvenance self, SparseStringKey a0, IMP::String a1)
14277  set_value(FilterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14278  """
14279  return _IMP_core.FilterProvenance_set_value(self, *args)
14280 
14281  def remove_attribute(self, *args):
14282  r"""
14283  remove_attribute(FilterProvenance self, FloatKey a0)
14284  remove_attribute(FilterProvenance self, IntKey a0)
14285  remove_attribute(FilterProvenance self, FloatsKey a0)
14286  remove_attribute(FilterProvenance self, IntsKey a0)
14287  remove_attribute(FilterProvenance self, StringKey a0)
14288  remove_attribute(FilterProvenance self, ParticleIndexKey a0)
14289  remove_attribute(FilterProvenance self, ObjectKey a0)
14290  remove_attribute(FilterProvenance self, SparseFloatKey a0)
14291  remove_attribute(FilterProvenance self, SparseIntKey a0)
14292  remove_attribute(FilterProvenance self, SparseStringKey a0)
14293  remove_attribute(FilterProvenance self, SparseParticleIndexKey a0)
14294  """
14295  return _IMP_core.FilterProvenance_remove_attribute(self, *args)
14296 
14297  def has_attribute(self, *args):
14298  r"""
14299  has_attribute(FilterProvenance self, FloatKey a0) -> bool
14300  has_attribute(FilterProvenance self, IntKey a0) -> bool
14301  has_attribute(FilterProvenance self, FloatsKey a0) -> bool
14302  has_attribute(FilterProvenance self, IntsKey a0) -> bool
14303  has_attribute(FilterProvenance self, StringKey a0) -> bool
14304  has_attribute(FilterProvenance self, ParticleIndexKey a0) -> bool
14305  has_attribute(FilterProvenance self, ObjectKey a0) -> bool
14306  has_attribute(FilterProvenance self, SparseFloatKey a0) -> bool
14307  has_attribute(FilterProvenance self, SparseIntKey a0) -> bool
14308  has_attribute(FilterProvenance self, SparseStringKey a0) -> bool
14309  has_attribute(FilterProvenance self, SparseParticleIndexKey a0) -> bool
14310  """
14311  return _IMP_core.FilterProvenance_has_attribute(self, *args)
14312 
14313  def get_derivative(self, a0):
14314  r"""get_derivative(FilterProvenance self, FloatKey a0) -> double"""
14315  return _IMP_core.FilterProvenance_get_derivative(self, a0)
14316 
14317  def get_name(self):
14318  r"""get_name(FilterProvenance self) -> std::string"""
14319  return _IMP_core.FilterProvenance_get_name(self)
14320 
14321  def clear_caches(self):
14322  r"""clear_caches(FilterProvenance self)"""
14323  return _IMP_core.FilterProvenance_clear_caches(self)
14324 
14325  def set_name(self, a0):
14326  r"""set_name(FilterProvenance self, std::string a0)"""
14327  return _IMP_core.FilterProvenance_set_name(self, a0)
14328 
14329  def set_check_level(self, a0):
14330  r"""set_check_level(FilterProvenance self, IMP::CheckLevel a0)"""
14331  return _IMP_core.FilterProvenance_set_check_level(self, a0)
14332 
14333  def add_to_derivative(self, a0, a1, a2):
14334  r"""add_to_derivative(FilterProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14335  return _IMP_core.FilterProvenance_add_to_derivative(self, a0, a1, a2)
14336 
14337  def set_is_optimized(self, a0, a1):
14338  r"""set_is_optimized(FilterProvenance self, FloatKey a0, bool a1)"""
14339  return _IMP_core.FilterProvenance_set_is_optimized(self, a0, a1)
14340 
14341  def get_is_optimized(self, a0):
14342  r"""get_is_optimized(FilterProvenance self, FloatKey a0) -> bool"""
14343  return _IMP_core.FilterProvenance_get_is_optimized(self, a0)
14344 
14345  def get_check_level(self):
14346  r"""get_check_level(FilterProvenance self) -> IMP::CheckLevel"""
14347  return _IMP_core.FilterProvenance_get_check_level(self)
14348 
14349  def __eq__(self, *args):
14350  r"""
14351  __eq__(FilterProvenance self, FilterProvenance o) -> bool
14352  __eq__(FilterProvenance self, Particle d) -> bool
14353  """
14354  return _IMP_core.FilterProvenance___eq__(self, *args)
14355 
14356  def __ne__(self, *args):
14357  r"""
14358  __ne__(FilterProvenance self, FilterProvenance o) -> bool
14359  __ne__(FilterProvenance self, Particle d) -> bool
14360  """
14361  return _IMP_core.FilterProvenance___ne__(self, *args)
14362 
14363  def __le__(self, *args):
14364  r"""
14365  __le__(FilterProvenance self, FilterProvenance o) -> bool
14366  __le__(FilterProvenance self, Particle d) -> bool
14367  """
14368  return _IMP_core.FilterProvenance___le__(self, *args)
14369 
14370  def __lt__(self, *args):
14371  r"""
14372  __lt__(FilterProvenance self, FilterProvenance o) -> bool
14373  __lt__(FilterProvenance self, Particle d) -> bool
14374  """
14375  return _IMP_core.FilterProvenance___lt__(self, *args)
14376 
14377  def __ge__(self, *args):
14378  r"""
14379  __ge__(FilterProvenance self, FilterProvenance o) -> bool
14380  __ge__(FilterProvenance self, Particle d) -> bool
14381  """
14382  return _IMP_core.FilterProvenance___ge__(self, *args)
14383 
14384  def __gt__(self, *args):
14385  r"""
14386  __gt__(FilterProvenance self, FilterProvenance o) -> bool
14387  __gt__(FilterProvenance self, Particle d) -> bool
14388  """
14389  return _IMP_core.FilterProvenance___gt__(self, *args)
14390 
14391  def __hash__(self):
14392  r"""__hash__(FilterProvenance self) -> std::size_t"""
14393  return _IMP_core.FilterProvenance___hash__(self)
14394 
14395  def __str__(self):
14396  r"""__str__(FilterProvenance self) -> std::string"""
14397  return _IMP_core.FilterProvenance___str__(self)
14398 
14399  def __repr__(self):
14400  r"""__repr__(FilterProvenance self) -> std::string"""
14401  return _IMP_core.FilterProvenance___repr__(self)
14402 
14403  def _get_as_binary(self):
14404  r"""_get_as_binary(FilterProvenance self) -> PyObject *"""
14405  return _IMP_core.FilterProvenance__get_as_binary(self)
14406 
14407  def _set_from_binary(self, p):
14408  r"""_set_from_binary(FilterProvenance self, PyObject * p)"""
14409  return _IMP_core.FilterProvenance__set_from_binary(self, p)
14410 
14411  def __getstate__(self):
14412  p = self._get_as_binary()
14413  if len(self.__dict__) > 1:
14414  d = self.__dict__.copy()
14415  del d['this']
14416  p = (d, p)
14417  return p
14418 
14419  def __setstate__(self, p):
14420  if not hasattr(self, 'this'):
14421  self.__init__()
14422  if isinstance(p, tuple):
14423  d, p = p
14424  self.__dict__.update(d)
14425  return self._set_from_binary(p)
14426 
14427  __swig_destroy__ = _IMP_core.delete_FilterProvenance
14428 
14429 # Register FilterProvenance in _IMP_core:
14430 _IMP_core.FilterProvenance_swigregister(FilterProvenance)
14431 class ClusterProvenance(Provenance):
14432  r"""Proxy of C++ IMP::core::ClusterProvenance class."""
14433 
14434  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14435 
14436  def set_number_of_members(self, members):
14437  r"""set_number_of_members(ClusterProvenance self, int members)"""
14438  return _IMP_core.ClusterProvenance_set_number_of_members(self, members)
14439 
14440  def get_number_of_members(self):
14441  r"""get_number_of_members(ClusterProvenance self) -> int"""
14442  return _IMP_core.ClusterProvenance_get_number_of_members(self)
14443 
14444  def set_precision(self, precision):
14445  r"""set_precision(ClusterProvenance self, double precision)"""
14446  return _IMP_core.ClusterProvenance_set_precision(self, precision)
14447 
14448  def get_precision(self):
14449  r"""get_precision(ClusterProvenance self) -> double"""
14450  return _IMP_core.ClusterProvenance_get_precision(self)
14451 
14452  def set_density(self, density):
14453  r"""set_density(ClusterProvenance self, std::string density)"""
14454  return _IMP_core.ClusterProvenance_set_density(self, density)
14455 
14456  def get_density(self):
14457  r"""get_density(ClusterProvenance self) -> std::string"""
14458  return _IMP_core.ClusterProvenance_get_density(self)
14459 
14460  def __init__(self, *args):
14461  r"""
14462  __init__(ClusterProvenance self) -> ClusterProvenance
14463  __init__(ClusterProvenance self, Model m, ParticleIndex id) -> ClusterProvenance
14464  __init__(ClusterProvenance self, _ParticleAdaptor d) -> ClusterProvenance
14465  """
14466  _IMP_core.ClusterProvenance_swiginit(self, _IMP_core.new_ClusterProvenance(*args))
14467 
14468  @staticmethod
14469  def get_is_setup(*args):
14470  r"""
14471  get_is_setup(Model m, ParticleIndex pi) -> bool
14472  get_is_setup(_ParticleAdaptor p) -> bool
14473  """
14474  return _IMP_core.ClusterProvenance_get_is_setup(*args)
14475 
14476  def show(self, *args):
14477  r"""show(ClusterProvenance self, _ostream out=std::cout)"""
14478  return _IMP_core.ClusterProvenance_show(self, *args)
14479 
14480  @staticmethod
14481  def setup_particle(*args):
14482  r"""
14483  setup_particle(Model m, ParticleIndex pi, int members) -> ClusterProvenance
14484  setup_particle(_ParticleAdaptor pa, int members) -> ClusterProvenance
14485  setup_particle(Model m, ParticleIndex pi, int members, double precision) -> ClusterProvenance
14486  setup_particle(_ParticleAdaptor pa, int members, double precision) -> ClusterProvenance
14487  setup_particle(Model m, ParticleIndex pi, int members, double precision, std::string density) -> ClusterProvenance
14488  setup_particle(_ParticleAdaptor pa, int members, double precision, std::string density) -> ClusterProvenance
14489  setup_particle(Model m, ParticleIndex pi, ClusterProvenance o) -> ClusterProvenance
14490  setup_particle(_ParticleAdaptor pa, ClusterProvenance o) -> ClusterProvenance
14491  """
14492  return _IMP_core.ClusterProvenance_setup_particle(*args)
14493 
14494  def add_attribute(self, *args):
14495  r"""
14496  add_attribute(ClusterProvenance self, FloatKey k, IMP::Float v, bool opt)
14497  add_attribute(ClusterProvenance self, FloatKey a0, IMP::Float a1)
14498  add_attribute(ClusterProvenance self, IntKey a0, IMP::Int a1)
14499  add_attribute(ClusterProvenance self, FloatsKey a0, IMP::Floats a1)
14500  add_attribute(ClusterProvenance self, IntsKey a0, IMP::Ints a1)
14501  add_attribute(ClusterProvenance self, StringKey a0, IMP::String a1)
14502  add_attribute(ClusterProvenance self, ParticleIndexKey a0, Particle a1)
14503  add_attribute(ClusterProvenance self, ObjectKey a0, Object a1)
14504  add_attribute(ClusterProvenance self, SparseFloatKey a0, IMP::Float a1)
14505  add_attribute(ClusterProvenance self, SparseIntKey a0, IMP::Int a1)
14506  add_attribute(ClusterProvenance self, SparseStringKey a0, IMP::String a1)
14507  add_attribute(ClusterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14508  """
14509  return _IMP_core.ClusterProvenance_add_attribute(self, *args)
14510 
14511  def get_value(self, *args):
14512  r"""
14513  get_value(ClusterProvenance self, FloatKey a0) -> IMP::Float
14514  get_value(ClusterProvenance self, IntKey a0) -> IMP::Int
14515  get_value(ClusterProvenance self, FloatsKey a0) -> IMP::Floats
14516  get_value(ClusterProvenance self, IntsKey a0) -> IMP::Ints
14517  get_value(ClusterProvenance self, StringKey a0) -> IMP::String
14518  get_value(ClusterProvenance self, ParticleIndexKey a0) -> Particle
14519  get_value(ClusterProvenance self, ObjectKey a0) -> Object
14520  get_value(ClusterProvenance self, SparseFloatKey a0) -> IMP::Float
14521  get_value(ClusterProvenance self, SparseIntKey a0) -> IMP::Int
14522  get_value(ClusterProvenance self, SparseStringKey a0) -> IMP::String
14523  get_value(ClusterProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14524  """
14525  return _IMP_core.ClusterProvenance_get_value(self, *args)
14526 
14527  def set_value(self, *args):
14528  r"""
14529  set_value(ClusterProvenance self, FloatKey a0, IMP::Float a1)
14530  set_value(ClusterProvenance self, IntKey a0, IMP::Int a1)
14531  set_value(ClusterProvenance self, FloatsKey a0, IMP::Floats a1)
14532  set_value(ClusterProvenance self, IntsKey a0, IMP::Ints a1)
14533  set_value(ClusterProvenance self, StringKey a0, IMP::String a1)
14534  set_value(ClusterProvenance self, ParticleIndexKey a0, Particle a1)
14535  set_value(ClusterProvenance self, ObjectKey a0, Object a1)
14536  set_value(ClusterProvenance self, SparseFloatKey a0, IMP::Float a1)
14537  set_value(ClusterProvenance self, SparseIntKey a0, IMP::Int a1)
14538  set_value(ClusterProvenance self, SparseStringKey a0, IMP::String a1)
14539  set_value(ClusterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14540  """
14541  return _IMP_core.ClusterProvenance_set_value(self, *args)
14542 
14543  def remove_attribute(self, *args):
14544  r"""
14545  remove_attribute(ClusterProvenance self, FloatKey a0)
14546  remove_attribute(ClusterProvenance self, IntKey a0)
14547  remove_attribute(ClusterProvenance self, FloatsKey a0)
14548  remove_attribute(ClusterProvenance self, IntsKey a0)
14549  remove_attribute(ClusterProvenance self, StringKey a0)
14550  remove_attribute(ClusterProvenance self, ParticleIndexKey a0)
14551  remove_attribute(ClusterProvenance self, ObjectKey a0)
14552  remove_attribute(ClusterProvenance self, SparseFloatKey a0)
14553  remove_attribute(ClusterProvenance self, SparseIntKey a0)
14554  remove_attribute(ClusterProvenance self, SparseStringKey a0)
14555  remove_attribute(ClusterProvenance self, SparseParticleIndexKey a0)
14556  """
14557  return _IMP_core.ClusterProvenance_remove_attribute(self, *args)
14558 
14559  def has_attribute(self, *args):
14560  r"""
14561  has_attribute(ClusterProvenance self, FloatKey a0) -> bool
14562  has_attribute(ClusterProvenance self, IntKey a0) -> bool
14563  has_attribute(ClusterProvenance self, FloatsKey a0) -> bool
14564  has_attribute(ClusterProvenance self, IntsKey a0) -> bool
14565  has_attribute(ClusterProvenance self, StringKey a0) -> bool
14566  has_attribute(ClusterProvenance self, ParticleIndexKey a0) -> bool
14567  has_attribute(ClusterProvenance self, ObjectKey a0) -> bool
14568  has_attribute(ClusterProvenance self, SparseFloatKey a0) -> bool
14569  has_attribute(ClusterProvenance self, SparseIntKey a0) -> bool
14570  has_attribute(ClusterProvenance self, SparseStringKey a0) -> bool
14571  has_attribute(ClusterProvenance self, SparseParticleIndexKey a0) -> bool
14572  """
14573  return _IMP_core.ClusterProvenance_has_attribute(self, *args)
14574 
14575  def get_derivative(self, a0):
14576  r"""get_derivative(ClusterProvenance self, FloatKey a0) -> double"""
14577  return _IMP_core.ClusterProvenance_get_derivative(self, a0)
14578 
14579  def get_name(self):
14580  r"""get_name(ClusterProvenance self) -> std::string"""
14581  return _IMP_core.ClusterProvenance_get_name(self)
14582 
14583  def clear_caches(self):
14584  r"""clear_caches(ClusterProvenance self)"""
14585  return _IMP_core.ClusterProvenance_clear_caches(self)
14586 
14587  def set_name(self, a0):
14588  r"""set_name(ClusterProvenance self, std::string a0)"""
14589  return _IMP_core.ClusterProvenance_set_name(self, a0)
14590 
14591  def set_check_level(self, a0):
14592  r"""set_check_level(ClusterProvenance self, IMP::CheckLevel a0)"""
14593  return _IMP_core.ClusterProvenance_set_check_level(self, a0)
14594 
14595  def add_to_derivative(self, a0, a1, a2):
14596  r"""add_to_derivative(ClusterProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14597  return _IMP_core.ClusterProvenance_add_to_derivative(self, a0, a1, a2)
14598 
14599  def set_is_optimized(self, a0, a1):
14600  r"""set_is_optimized(ClusterProvenance self, FloatKey a0, bool a1)"""
14601  return _IMP_core.ClusterProvenance_set_is_optimized(self, a0, a1)
14602 
14603  def get_is_optimized(self, a0):
14604  r"""get_is_optimized(ClusterProvenance self, FloatKey a0) -> bool"""
14605  return _IMP_core.ClusterProvenance_get_is_optimized(self, a0)
14606 
14607  def get_check_level(self):
14608  r"""get_check_level(ClusterProvenance self) -> IMP::CheckLevel"""
14609  return _IMP_core.ClusterProvenance_get_check_level(self)
14610 
14611  def __eq__(self, *args):
14612  r"""
14613  __eq__(ClusterProvenance self, ClusterProvenance o) -> bool
14614  __eq__(ClusterProvenance self, Particle d) -> bool
14615  """
14616  return _IMP_core.ClusterProvenance___eq__(self, *args)
14617 
14618  def __ne__(self, *args):
14619  r"""
14620  __ne__(ClusterProvenance self, ClusterProvenance o) -> bool
14621  __ne__(ClusterProvenance self, Particle d) -> bool
14622  """
14623  return _IMP_core.ClusterProvenance___ne__(self, *args)
14624 
14625  def __le__(self, *args):
14626  r"""
14627  __le__(ClusterProvenance self, ClusterProvenance o) -> bool
14628  __le__(ClusterProvenance self, Particle d) -> bool
14629  """
14630  return _IMP_core.ClusterProvenance___le__(self, *args)
14631 
14632  def __lt__(self, *args):
14633  r"""
14634  __lt__(ClusterProvenance self, ClusterProvenance o) -> bool
14635  __lt__(ClusterProvenance self, Particle d) -> bool
14636  """
14637  return _IMP_core.ClusterProvenance___lt__(self, *args)
14638 
14639  def __ge__(self, *args):
14640  r"""
14641  __ge__(ClusterProvenance self, ClusterProvenance o) -> bool
14642  __ge__(ClusterProvenance self, Particle d) -> bool
14643  """
14644  return _IMP_core.ClusterProvenance___ge__(self, *args)
14645 
14646  def __gt__(self, *args):
14647  r"""
14648  __gt__(ClusterProvenance self, ClusterProvenance o) -> bool
14649  __gt__(ClusterProvenance self, Particle d) -> bool
14650  """
14651  return _IMP_core.ClusterProvenance___gt__(self, *args)
14652 
14653  def __hash__(self):
14654  r"""__hash__(ClusterProvenance self) -> std::size_t"""
14655  return _IMP_core.ClusterProvenance___hash__(self)
14656 
14657  def __str__(self):
14658  r"""__str__(ClusterProvenance self) -> std::string"""
14659  return _IMP_core.ClusterProvenance___str__(self)
14660 
14661  def __repr__(self):
14662  r"""__repr__(ClusterProvenance self) -> std::string"""
14663  return _IMP_core.ClusterProvenance___repr__(self)
14664 
14665  def _get_as_binary(self):
14666  r"""_get_as_binary(ClusterProvenance self) -> PyObject *"""
14667  return _IMP_core.ClusterProvenance__get_as_binary(self)
14668 
14669  def _set_from_binary(self, p):
14670  r"""_set_from_binary(ClusterProvenance self, PyObject * p)"""
14671  return _IMP_core.ClusterProvenance__set_from_binary(self, p)
14672 
14673  def __getstate__(self):
14674  p = self._get_as_binary()
14675  if len(self.__dict__) > 1:
14676  d = self.__dict__.copy()
14677  del d['this']
14678  p = (d, p)
14679  return p
14680 
14681  def __setstate__(self, p):
14682  if not hasattr(self, 'this'):
14683  self.__init__()
14684  if isinstance(p, tuple):
14685  d, p = p
14686  self.__dict__.update(d)
14687  return self._set_from_binary(p)
14688 
14689  __swig_destroy__ = _IMP_core.delete_ClusterProvenance
14690 
14691 # Register ClusterProvenance in _IMP_core:
14692 _IMP_core.ClusterProvenance_swigregister(ClusterProvenance)
14693 class ScriptProvenance(Provenance):
14694  r"""Proxy of C++ IMP::core::ScriptProvenance class."""
14695 
14696  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14697 
14698  def set_filename(self, filename):
14699  r"""set_filename(ScriptProvenance self, std::string filename)"""
14700  return _IMP_core.ScriptProvenance_set_filename(self, filename)
14701 
14702  def get_filename(self):
14703  r"""get_filename(ScriptProvenance self) -> std::string"""
14704  return _IMP_core.ScriptProvenance_get_filename(self)
14705 
14706  def __init__(self, *args):
14707  r"""
14708  __init__(ScriptProvenance self) -> ScriptProvenance
14709  __init__(ScriptProvenance self, Model m, ParticleIndex id) -> ScriptProvenance
14710  __init__(ScriptProvenance self, _ParticleAdaptor d) -> ScriptProvenance
14711  """
14712  _IMP_core.ScriptProvenance_swiginit(self, _IMP_core.new_ScriptProvenance(*args))
14713 
14714  @staticmethod
14715  def get_is_setup(*args):
14716  r"""
14717  get_is_setup(Model m, ParticleIndex pi) -> bool
14718  get_is_setup(_ParticleAdaptor p) -> bool
14719  """
14720  return _IMP_core.ScriptProvenance_get_is_setup(*args)
14721 
14722  def show(self, *args):
14723  r"""show(ScriptProvenance self, _ostream out=std::cout)"""
14724  return _IMP_core.ScriptProvenance_show(self, *args)
14725 
14726  @staticmethod
14727  def setup_particle(*args):
14728  r"""
14729  setup_particle(Model m, ParticleIndex pi, std::string filename) -> ScriptProvenance
14730  setup_particle(_ParticleAdaptor pa, std::string filename) -> ScriptProvenance
14731  setup_particle(Model m, ParticleIndex pi, ScriptProvenance o) -> ScriptProvenance
14732  setup_particle(_ParticleAdaptor pa, ScriptProvenance o) -> ScriptProvenance
14733  """
14734  return _IMP_core.ScriptProvenance_setup_particle(*args)
14735 
14736  def add_attribute(self, *args):
14737  r"""
14738  add_attribute(ScriptProvenance self, FloatKey k, IMP::Float v, bool opt)
14739  add_attribute(ScriptProvenance self, FloatKey a0, IMP::Float a1)
14740  add_attribute(ScriptProvenance self, IntKey a0, IMP::Int a1)
14741  add_attribute(ScriptProvenance self, FloatsKey a0, IMP::Floats a1)
14742  add_attribute(ScriptProvenance self, IntsKey a0, IMP::Ints a1)
14743  add_attribute(ScriptProvenance self, StringKey a0, IMP::String a1)
14744  add_attribute(ScriptProvenance self, ParticleIndexKey a0, Particle a1)
14745  add_attribute(ScriptProvenance self, ObjectKey a0, Object a1)
14746  add_attribute(ScriptProvenance self, SparseFloatKey a0, IMP::Float a1)
14747  add_attribute(ScriptProvenance self, SparseIntKey a0, IMP::Int a1)
14748  add_attribute(ScriptProvenance self, SparseStringKey a0, IMP::String a1)
14749  add_attribute(ScriptProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14750  """
14751  return _IMP_core.ScriptProvenance_add_attribute(self, *args)
14752 
14753  def get_value(self, *args):
14754  r"""
14755  get_value(ScriptProvenance self, FloatKey a0) -> IMP::Float
14756  get_value(ScriptProvenance self, IntKey a0) -> IMP::Int
14757  get_value(ScriptProvenance self, FloatsKey a0) -> IMP::Floats
14758  get_value(ScriptProvenance self, IntsKey a0) -> IMP::Ints
14759  get_value(ScriptProvenance self, StringKey a0) -> IMP::String
14760  get_value(ScriptProvenance self, ParticleIndexKey a0) -> Particle
14761  get_value(ScriptProvenance self, ObjectKey a0) -> Object
14762  get_value(ScriptProvenance self, SparseFloatKey a0) -> IMP::Float
14763  get_value(ScriptProvenance self, SparseIntKey a0) -> IMP::Int
14764  get_value(ScriptProvenance self, SparseStringKey a0) -> IMP::String
14765  get_value(ScriptProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14766  """
14767  return _IMP_core.ScriptProvenance_get_value(self, *args)
14768 
14769  def set_value(self, *args):
14770  r"""
14771  set_value(ScriptProvenance self, FloatKey a0, IMP::Float a1)
14772  set_value(ScriptProvenance self, IntKey a0, IMP::Int a1)
14773  set_value(ScriptProvenance self, FloatsKey a0, IMP::Floats a1)
14774  set_value(ScriptProvenance self, IntsKey a0, IMP::Ints a1)
14775  set_value(ScriptProvenance self, StringKey a0, IMP::String a1)
14776  set_value(ScriptProvenance self, ParticleIndexKey a0, Particle a1)
14777  set_value(ScriptProvenance self, ObjectKey a0, Object a1)
14778  set_value(ScriptProvenance self, SparseFloatKey a0, IMP::Float a1)
14779  set_value(ScriptProvenance self, SparseIntKey a0, IMP::Int a1)
14780  set_value(ScriptProvenance self, SparseStringKey a0, IMP::String a1)
14781  set_value(ScriptProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14782  """
14783  return _IMP_core.ScriptProvenance_set_value(self, *args)
14784 
14785  def remove_attribute(self, *args):
14786  r"""
14787  remove_attribute(ScriptProvenance self, FloatKey a0)
14788  remove_attribute(ScriptProvenance self, IntKey a0)
14789  remove_attribute(ScriptProvenance self, FloatsKey a0)
14790  remove_attribute(ScriptProvenance self, IntsKey a0)
14791  remove_attribute(ScriptProvenance self, StringKey a0)
14792  remove_attribute(ScriptProvenance self, ParticleIndexKey a0)
14793  remove_attribute(ScriptProvenance self, ObjectKey a0)
14794  remove_attribute(ScriptProvenance self, SparseFloatKey a0)
14795  remove_attribute(ScriptProvenance self, SparseIntKey a0)
14796  remove_attribute(ScriptProvenance self, SparseStringKey a0)
14797  remove_attribute(ScriptProvenance self, SparseParticleIndexKey a0)
14798  """
14799  return _IMP_core.ScriptProvenance_remove_attribute(self, *args)
14800 
14801  def has_attribute(self, *args):
14802  r"""
14803  has_attribute(ScriptProvenance self, FloatKey a0) -> bool
14804  has_attribute(ScriptProvenance self, IntKey a0) -> bool
14805  has_attribute(ScriptProvenance self, FloatsKey a0) -> bool
14806  has_attribute(ScriptProvenance self, IntsKey a0) -> bool
14807  has_attribute(ScriptProvenance self, StringKey a0) -> bool
14808  has_attribute(ScriptProvenance self, ParticleIndexKey a0) -> bool
14809  has_attribute(ScriptProvenance self, ObjectKey a0) -> bool
14810  has_attribute(ScriptProvenance self, SparseFloatKey a0) -> bool
14811  has_attribute(ScriptProvenance self, SparseIntKey a0) -> bool
14812  has_attribute(ScriptProvenance self, SparseStringKey a0) -> bool
14813  has_attribute(ScriptProvenance self, SparseParticleIndexKey a0) -> bool
14814  """
14815  return _IMP_core.ScriptProvenance_has_attribute(self, *args)
14816 
14817  def get_derivative(self, a0):
14818  r"""get_derivative(ScriptProvenance self, FloatKey a0) -> double"""
14819  return _IMP_core.ScriptProvenance_get_derivative(self, a0)
14820 
14821  def get_name(self):
14822  r"""get_name(ScriptProvenance self) -> std::string"""
14823  return _IMP_core.ScriptProvenance_get_name(self)
14824 
14825  def clear_caches(self):
14826  r"""clear_caches(ScriptProvenance self)"""
14827  return _IMP_core.ScriptProvenance_clear_caches(self)
14828 
14829  def set_name(self, a0):
14830  r"""set_name(ScriptProvenance self, std::string a0)"""
14831  return _IMP_core.ScriptProvenance_set_name(self, a0)
14832 
14833  def set_check_level(self, a0):
14834  r"""set_check_level(ScriptProvenance self, IMP::CheckLevel a0)"""
14835  return _IMP_core.ScriptProvenance_set_check_level(self, a0)
14836 
14837  def add_to_derivative(self, a0, a1, a2):
14838  r"""add_to_derivative(ScriptProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14839  return _IMP_core.ScriptProvenance_add_to_derivative(self, a0, a1, a2)
14840 
14841  def set_is_optimized(self, a0, a1):
14842  r"""set_is_optimized(ScriptProvenance self, FloatKey a0, bool a1)"""
14843  return _IMP_core.ScriptProvenance_set_is_optimized(self, a0, a1)
14844 
14845  def get_is_optimized(self, a0):
14846  r"""get_is_optimized(ScriptProvenance self, FloatKey a0) -> bool"""
14847  return _IMP_core.ScriptProvenance_get_is_optimized(self, a0)
14848 
14849  def get_check_level(self):
14850  r"""get_check_level(ScriptProvenance self) -> IMP::CheckLevel"""
14851  return _IMP_core.ScriptProvenance_get_check_level(self)
14852 
14853  def __eq__(self, *args):
14854  r"""
14855  __eq__(ScriptProvenance self, ScriptProvenance o) -> bool
14856  __eq__(ScriptProvenance self, Particle d) -> bool
14857  """
14858  return _IMP_core.ScriptProvenance___eq__(self, *args)
14859 
14860  def __ne__(self, *args):
14861  r"""
14862  __ne__(ScriptProvenance self, ScriptProvenance o) -> bool
14863  __ne__(ScriptProvenance self, Particle d) -> bool
14864  """
14865  return _IMP_core.ScriptProvenance___ne__(self, *args)
14866 
14867  def __le__(self, *args):
14868  r"""
14869  __le__(ScriptProvenance self, ScriptProvenance o) -> bool
14870  __le__(ScriptProvenance self, Particle d) -> bool
14871  """
14872  return _IMP_core.ScriptProvenance___le__(self, *args)
14873 
14874  def __lt__(self, *args):
14875  r"""
14876  __lt__(ScriptProvenance self, ScriptProvenance o) -> bool
14877  __lt__(ScriptProvenance self, Particle d) -> bool
14878  """
14879  return _IMP_core.ScriptProvenance___lt__(self, *args)
14880 
14881  def __ge__(self, *args):
14882  r"""
14883  __ge__(ScriptProvenance self, ScriptProvenance o) -> bool
14884  __ge__(ScriptProvenance self, Particle d) -> bool
14885  """
14886  return _IMP_core.ScriptProvenance___ge__(self, *args)
14887 
14888  def __gt__(self, *args):
14889  r"""
14890  __gt__(ScriptProvenance self, ScriptProvenance o) -> bool
14891  __gt__(ScriptProvenance self, Particle d) -> bool
14892  """
14893  return _IMP_core.ScriptProvenance___gt__(self, *args)
14894 
14895  def __hash__(self):
14896  r"""__hash__(ScriptProvenance self) -> std::size_t"""
14897  return _IMP_core.ScriptProvenance___hash__(self)
14898 
14899  def __str__(self):
14900  r"""__str__(ScriptProvenance self) -> std::string"""
14901  return _IMP_core.ScriptProvenance___str__(self)
14902 
14903  def __repr__(self):
14904  r"""__repr__(ScriptProvenance self) -> std::string"""
14905  return _IMP_core.ScriptProvenance___repr__(self)
14906 
14907  def _get_as_binary(self):
14908  r"""_get_as_binary(ScriptProvenance self) -> PyObject *"""
14909  return _IMP_core.ScriptProvenance__get_as_binary(self)
14910 
14911  def _set_from_binary(self, p):
14912  r"""_set_from_binary(ScriptProvenance self, PyObject * p)"""
14913  return _IMP_core.ScriptProvenance__set_from_binary(self, p)
14914 
14915  def __getstate__(self):
14916  p = self._get_as_binary()
14917  if len(self.__dict__) > 1:
14918  d = self.__dict__.copy()
14919  del d['this']
14920  p = (d, p)
14921  return p
14922 
14923  def __setstate__(self, p):
14924  if not hasattr(self, 'this'):
14925  self.__init__()
14926  if isinstance(p, tuple):
14927  d, p = p
14928  self.__dict__.update(d)
14929  return self._set_from_binary(p)
14930 
14931  __swig_destroy__ = _IMP_core.delete_ScriptProvenance
14932 
14933 # Register ScriptProvenance in _IMP_core:
14934 _IMP_core.ScriptProvenance_swigregister(ScriptProvenance)
14935 class SoftwareProvenance(Provenance):
14936  r"""Proxy of C++ IMP::core::SoftwareProvenance class."""
14937 
14938  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14939 
14940  def set_software_name(self, name):
14941  r"""set_software_name(SoftwareProvenance self, std::string name)"""
14942  return _IMP_core.SoftwareProvenance_set_software_name(self, name)
14943 
14944  def get_software_name(self):
14945  r"""get_software_name(SoftwareProvenance self) -> std::string"""
14946  return _IMP_core.SoftwareProvenance_get_software_name(self)
14947 
14948  def set_version(self, version):
14949  r"""set_version(SoftwareProvenance self, std::string version)"""
14950  return _IMP_core.SoftwareProvenance_set_version(self, version)
14951 
14952  def get_version(self):
14953  r"""get_version(SoftwareProvenance self) -> std::string"""
14954  return _IMP_core.SoftwareProvenance_get_version(self)
14955 
14956  def set_location(self, location):
14957  r"""set_location(SoftwareProvenance self, std::string location)"""
14958  return _IMP_core.SoftwareProvenance_set_location(self, location)
14959 
14960  def get_location(self):
14961  r"""get_location(SoftwareProvenance self) -> std::string"""
14962  return _IMP_core.SoftwareProvenance_get_location(self)
14963 
14964  def __init__(self, *args):
14965  r"""
14966  __init__(SoftwareProvenance self) -> SoftwareProvenance
14967  __init__(SoftwareProvenance self, Model m, ParticleIndex id) -> SoftwareProvenance
14968  __init__(SoftwareProvenance self, _ParticleAdaptor d) -> SoftwareProvenance
14969  """
14970  _IMP_core.SoftwareProvenance_swiginit(self, _IMP_core.new_SoftwareProvenance(*args))
14971 
14972  @staticmethod
14973  def get_is_setup(*args):
14974  r"""
14975  get_is_setup(Model m, ParticleIndex pi) -> bool
14976  get_is_setup(_ParticleAdaptor p) -> bool
14977  """
14978  return _IMP_core.SoftwareProvenance_get_is_setup(*args)
14979 
14980  def show(self, *args):
14981  r"""show(SoftwareProvenance self, _ostream out=std::cout)"""
14982  return _IMP_core.SoftwareProvenance_show(self, *args)
14983 
14984  @staticmethod
14985  def setup_particle(*args):
14986  r"""
14987  setup_particle(Model m, ParticleIndex pi, std::string name, std::string version, std::string location) -> SoftwareProvenance
14988  setup_particle(_ParticleAdaptor pa, std::string name, std::string version, std::string location) -> SoftwareProvenance
14989  setup_particle(Model m, ParticleIndex pi, SoftwareProvenance o) -> SoftwareProvenance
14990  setup_particle(_ParticleAdaptor pa, SoftwareProvenance o) -> SoftwareProvenance
14991  """
14992  return _IMP_core.SoftwareProvenance_setup_particle(*args)
14993 
14994  def add_attribute(self, *args):
14995  r"""
14996  add_attribute(SoftwareProvenance self, FloatKey k, IMP::Float v, bool opt)
14997  add_attribute(SoftwareProvenance self, FloatKey a0, IMP::Float a1)
14998  add_attribute(SoftwareProvenance self, IntKey a0, IMP::Int a1)
14999  add_attribute(SoftwareProvenance self, FloatsKey a0, IMP::Floats a1)
15000  add_attribute(SoftwareProvenance self, IntsKey a0, IMP::Ints a1)
15001  add_attribute(SoftwareProvenance self, StringKey a0, IMP::String a1)
15002  add_attribute(SoftwareProvenance self, ParticleIndexKey a0, Particle a1)
15003  add_attribute(SoftwareProvenance self, ObjectKey a0, Object a1)
15004  add_attribute(SoftwareProvenance self, SparseFloatKey a0, IMP::Float a1)
15005  add_attribute(SoftwareProvenance self, SparseIntKey a0, IMP::Int a1)
15006  add_attribute(SoftwareProvenance self, SparseStringKey a0, IMP::String a1)
15007  add_attribute(SoftwareProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
15008  """
15009  return _IMP_core.SoftwareProvenance_add_attribute(self, *args)
15010 
15011  def get_value(self, *args):
15012  r"""
15013  get_value(SoftwareProvenance self, FloatKey a0) -> IMP::Float
15014  get_value(SoftwareProvenance self, IntKey a0) -> IMP::Int
15015  get_value(SoftwareProvenance self, FloatsKey a0) -> IMP::Floats
15016  get_value(SoftwareProvenance self, IntsKey a0) -> IMP::Ints
15017  get_value(SoftwareProvenance self, StringKey a0) -> IMP::String
15018  get_value(SoftwareProvenance self, ParticleIndexKey a0) -> Particle
15019  get_value(SoftwareProvenance self, ObjectKey a0) -> Object
15020  get_value(SoftwareProvenance self, SparseFloatKey a0) -> IMP::Float
15021  get_value(SoftwareProvenance self, SparseIntKey a0) -> IMP::Int
15022  get_value(SoftwareProvenance self, SparseStringKey a0) -> IMP::String
15023  get_value(SoftwareProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
15024  """
15025  return _IMP_core.SoftwareProvenance_get_value(self, *args)
15026 
15027  def set_value(self, *args):
15028  r"""
15029  set_value(SoftwareProvenance self, FloatKey a0, IMP::Float a1)
15030  set_value(SoftwareProvenance self, IntKey a0, IMP::Int a1)
15031  set_value(SoftwareProvenance self, FloatsKey a0, IMP::Floats a1)
15032  set_value(SoftwareProvenance self, IntsKey a0, IMP::Ints a1)
15033  set_value(SoftwareProvenance self, StringKey a0, IMP::String a1)
15034  set_value(SoftwareProvenance self, ParticleIndexKey a0, Particle a1)
15035  set_value(SoftwareProvenance self, ObjectKey a0, Object a1)
15036  set_value(SoftwareProvenance self, SparseFloatKey a0, IMP::Float a1)
15037  set_value(SoftwareProvenance self, SparseIntKey a0, IMP::Int a1)
15038  set_value(SoftwareProvenance self, SparseStringKey a0, IMP::String a1)
15039  set_value(SoftwareProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
15040  """
15041  return _IMP_core.SoftwareProvenance_set_value(self, *args)
15042 
15043  def remove_attribute(self, *args):
15044  r"""
15045  remove_attribute(SoftwareProvenance self, FloatKey a0)
15046  remove_attribute(SoftwareProvenance self, IntKey a0)
15047  remove_attribute(SoftwareProvenance self, FloatsKey a0)
15048  remove_attribute(SoftwareProvenance self, IntsKey a0)
15049  remove_attribute(SoftwareProvenance self, StringKey a0)
15050  remove_attribute(SoftwareProvenance self, ParticleIndexKey a0)
15051  remove_attribute(SoftwareProvenance self, ObjectKey a0)
15052  remove_attribute(SoftwareProvenance self, SparseFloatKey a0)
15053  remove_attribute(SoftwareProvenance self, SparseIntKey a0)
15054  remove_attribute(SoftwareProvenance self, SparseStringKey a0)
15055  remove_attribute(SoftwareProvenance self, SparseParticleIndexKey a0)
15056  """
15057  return _IMP_core.SoftwareProvenance_remove_attribute(self, *args)
15058 
15059  def has_attribute(self, *args):
15060  r"""
15061  has_attribute(SoftwareProvenance self, FloatKey a0) -> bool
15062  has_attribute(SoftwareProvenance self, IntKey a0) -> bool
15063  has_attribute(SoftwareProvenance self, FloatsKey a0) -> bool
15064  has_attribute(SoftwareProvenance self, IntsKey a0) -> bool
15065  has_attribute(SoftwareProvenance self, StringKey a0) -> bool
15066  has_attribute(SoftwareProvenance self, ParticleIndexKey a0) -> bool
15067  has_attribute(SoftwareProvenance self, ObjectKey a0) -> bool
15068  has_attribute(SoftwareProvenance self, SparseFloatKey a0) -> bool
15069  has_attribute(SoftwareProvenance self, SparseIntKey a0) -> bool
15070  has_attribute(SoftwareProvenance self, SparseStringKey a0) -> bool
15071  has_attribute(SoftwareProvenance self, SparseParticleIndexKey a0) -> bool
15072  """
15073  return _IMP_core.SoftwareProvenance_has_attribute(self, *args)
15074 
15075  def get_derivative(self, a0):
15076  r"""get_derivative(SoftwareProvenance self, FloatKey a0) -> double"""
15077  return _IMP_core.SoftwareProvenance_get_derivative(self, a0)
15078 
15079  def get_name(self):
15080  r"""get_name(SoftwareProvenance self) -> std::string"""
15081  return _IMP_core.SoftwareProvenance_get_name(self)
15082 
15083  def clear_caches(self):
15084  r"""clear_caches(SoftwareProvenance self)"""
15085  return _IMP_core.SoftwareProvenance_clear_caches(self)
15086 
15087  def set_name(self, a0):
15088  r"""set_name(SoftwareProvenance self, std::string a0)"""
15089  return _IMP_core.SoftwareProvenance_set_name(self, a0)
15090 
15091  def set_check_level(self, a0):
15092  r"""set_check_level(SoftwareProvenance self, IMP::CheckLevel a0)"""
15093  return _IMP_core.SoftwareProvenance_set_check_level(self, a0)
15094 
15095  def add_to_derivative(self, a0, a1, a2):
15096  r"""add_to_derivative(SoftwareProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15097  return _IMP_core.SoftwareProvenance_add_to_derivative(self, a0, a1, a2)
15098 
15099  def set_is_optimized(self, a0, a1):
15100  r"""set_is_optimized(SoftwareProvenance self, FloatKey a0, bool a1)"""
15101  return _IMP_core.SoftwareProvenance_set_is_optimized(self, a0, a1)
15102 
15103  def get_is_optimized(self, a0):
15104  r"""get_is_optimized(SoftwareProvenance self, FloatKey a0) -> bool"""
15105  return _IMP_core.SoftwareProvenance_get_is_optimized(self, a0)
15106 
15107  def get_check_level(self):
15108  r"""get_check_level(SoftwareProvenance self) -> IMP::CheckLevel"""
15109  return _IMP_core.SoftwareProvenance_get_check_level(self)
15110 
15111  def __eq__(self, *args):
15112  r"""
15113  __eq__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15114  __eq__(SoftwareProvenance self, Particle d) -> bool
15115  """
15116  return _IMP_core.SoftwareProvenance___eq__(self, *args)
15117 
15118  def __ne__(self, *args):
15119  r"""
15120  __ne__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15121  __ne__(SoftwareProvenance self, Particle d) -> bool
15122  """
15123  return _IMP_core.SoftwareProvenance___ne__(self, *args)
15124 
15125  def __le__(self, *args):
15126  r"""
15127  __le__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15128  __le__(SoftwareProvenance self, Particle d) -> bool
15129  """
15130  return _IMP_core.SoftwareProvenance___le__(self, *args)
15131 
15132  def __lt__(self, *args):
15133  r"""
15134  __lt__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15135  __lt__(SoftwareProvenance self, Particle d) -> bool
15136  """
15137  return _IMP_core.SoftwareProvenance___lt__(self, *args)
15138 
15139  def __ge__(self, *args):
15140  r"""
15141  __ge__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15142  __ge__(SoftwareProvenance self, Particle d) -> bool
15143  """
15144  return _IMP_core.SoftwareProvenance___ge__(self, *args)
15145 
15146  def __gt__(self, *args):
15147  r"""
15148  __gt__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15149  __gt__(SoftwareProvenance self, Particle d) -> bool
15150  """
15151  return _IMP_core.SoftwareProvenance___gt__(self, *args)
15152 
15153  def __hash__(self):
15154  r"""__hash__(SoftwareProvenance self) -> std::size_t"""
15155  return _IMP_core.SoftwareProvenance___hash__(self)
15156 
15157  def __str__(self):
15158  r"""__str__(SoftwareProvenance self) -> std::string"""
15159  return _IMP_core.SoftwareProvenance___str__(self)
15160 
15161  def __repr__(self):
15162  r"""__repr__(SoftwareProvenance self) -> std::string"""
15163  return _IMP_core.SoftwareProvenance___repr__(self)
15164 
15165  def _get_as_binary(self):
15166  r"""_get_as_binary(SoftwareProvenance self) -> PyObject *"""
15167  return _IMP_core.SoftwareProvenance__get_as_binary(self)
15168 
15169  def _set_from_binary(self, p):
15170  r"""_set_from_binary(SoftwareProvenance self, PyObject * p)"""
15171  return _IMP_core.SoftwareProvenance__set_from_binary(self, p)
15172 
15173  def __getstate__(self):
15174  p = self._get_as_binary()
15175  if len(self.__dict__) > 1:
15176  d = self.__dict__.copy()
15177  del d['this']
15178  p = (d, p)
15179  return p
15180 
15181  def __setstate__(self, p):
15182  if not hasattr(self, 'this'):
15183  self.__init__()
15184  if isinstance(p, tuple):
15185  d, p = p
15186  self.__dict__.update(d)
15187  return self._set_from_binary(p)
15188 
15189  __swig_destroy__ = _IMP_core.delete_SoftwareProvenance
15190 
15191 # Register SoftwareProvenance in _IMP_core:
15192 _IMP_core.SoftwareProvenance_swigregister(SoftwareProvenance)
15193 class Provenanced(IMP.Decorator):
15194  r"""Proxy of C++ IMP::core::Provenanced class."""
15195 
15196  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15197 
15198  def get_provenance(self):
15199  r"""get_provenance(Provenanced self) -> Provenance"""
15200  return _IMP_core.Provenanced_get_provenance(self)
15201 
15202  def set_provenance(self, p):
15203  r"""set_provenance(Provenanced self, Provenance p)"""
15204  return _IMP_core.Provenanced_set_provenance(self, p)
15205 
15206  def __init__(self, *args):
15207  r"""
15208  __init__(Provenanced self) -> Provenanced
15209  __init__(Provenanced self, Model m, ParticleIndex id) -> Provenanced
15210  __init__(Provenanced self, _ParticleAdaptor d) -> Provenanced
15211  """
15212  _IMP_core.Provenanced_swiginit(self, _IMP_core.new_Provenanced(*args))
15213 
15214  @staticmethod
15215  def get_is_setup(*args):
15216  r"""
15217  get_is_setup(Model m, ParticleIndex pi) -> bool
15218  get_is_setup(_ParticleAdaptor p) -> bool
15219  """
15220  return _IMP_core.Provenanced_get_is_setup(*args)
15221 
15222  def show(self, *args):
15223  r"""show(Provenanced self, _ostream out=std::cout)"""
15224  return _IMP_core.Provenanced_show(self, *args)
15225 
15226  @staticmethod
15227  def setup_particle(*args):
15228  r"""
15229  setup_particle(Model m, ParticleIndex pi, Provenance p) -> Provenanced
15230  setup_particle(_ParticleAdaptor pa, Provenance p) -> Provenanced
15231  """
15232  return _IMP_core.Provenanced_setup_particle(*args)
15233 
15234  def add_attribute(self, *args):
15235  r"""
15236  add_attribute(Provenanced self, FloatKey k, IMP::Float v, bool opt)
15237  add_attribute(Provenanced self, FloatKey a0, IMP::Float a1)
15238  add_attribute(Provenanced self, IntKey a0, IMP::Int a1)
15239  add_attribute(Provenanced self, FloatsKey a0, IMP::Floats a1)
15240  add_attribute(Provenanced self, IntsKey a0, IMP::Ints a1)
15241  add_attribute(Provenanced self, StringKey a0, IMP::String a1)
15242  add_attribute(Provenanced self, ParticleIndexKey a0, Particle a1)
15243  add_attribute(Provenanced self, ObjectKey a0, Object a1)
15244  add_attribute(Provenanced self, SparseFloatKey a0, IMP::Float a1)
15245  add_attribute(Provenanced self, SparseIntKey a0, IMP::Int a1)
15246  add_attribute(Provenanced self, SparseStringKey a0, IMP::String a1)
15247  add_attribute(Provenanced self, SparseParticleIndexKey a0, ParticleIndex a1)
15248  """
15249  return _IMP_core.Provenanced_add_attribute(self, *args)
15250 
15251  def get_value(self, *args):
15252  r"""
15253  get_value(Provenanced self, FloatKey a0) -> IMP::Float
15254  get_value(Provenanced self, IntKey a0) -> IMP::Int
15255  get_value(Provenanced self, FloatsKey a0) -> IMP::Floats
15256  get_value(Provenanced self, IntsKey a0) -> IMP::Ints
15257  get_value(Provenanced self, StringKey a0) -> IMP::String
15258  get_value(Provenanced self, ParticleIndexKey a0) -> Particle
15259  get_value(Provenanced self, ObjectKey a0) -> Object
15260  get_value(Provenanced self, SparseFloatKey a0) -> IMP::Float
15261  get_value(Provenanced self, SparseIntKey a0) -> IMP::Int
15262  get_value(Provenanced self, SparseStringKey a0) -> IMP::String
15263  get_value(Provenanced self, SparseParticleIndexKey a0) -> ParticleIndex
15264  """
15265  return _IMP_core.Provenanced_get_value(self, *args)
15266 
15267  def set_value(self, *args):
15268  r"""
15269  set_value(Provenanced self, FloatKey a0, IMP::Float a1)
15270  set_value(Provenanced self, IntKey a0, IMP::Int a1)
15271  set_value(Provenanced self, FloatsKey a0, IMP::Floats a1)
15272  set_value(Provenanced self, IntsKey a0, IMP::Ints a1)
15273  set_value(Provenanced self, StringKey a0, IMP::String a1)
15274  set_value(Provenanced self, ParticleIndexKey a0, Particle a1)
15275  set_value(Provenanced self, ObjectKey a0, Object a1)
15276  set_value(Provenanced self, SparseFloatKey a0, IMP::Float a1)
15277  set_value(Provenanced self, SparseIntKey a0, IMP::Int a1)
15278  set_value(Provenanced self, SparseStringKey a0, IMP::String a1)
15279  set_value(Provenanced self, SparseParticleIndexKey a0, ParticleIndex a1)
15280  """
15281  return _IMP_core.Provenanced_set_value(self, *args)
15282 
15283  def remove_attribute(self, *args):
15284  r"""
15285  remove_attribute(Provenanced self, FloatKey a0)
15286  remove_attribute(Provenanced self, IntKey a0)
15287  remove_attribute(Provenanced self, FloatsKey a0)
15288  remove_attribute(Provenanced self, IntsKey a0)
15289  remove_attribute(Provenanced self, StringKey a0)
15290  remove_attribute(Provenanced self, ParticleIndexKey a0)
15291  remove_attribute(Provenanced self, ObjectKey a0)
15292  remove_attribute(Provenanced self, SparseFloatKey a0)
15293  remove_attribute(Provenanced self, SparseIntKey a0)
15294  remove_attribute(Provenanced self, SparseStringKey a0)
15295  remove_attribute(Provenanced self, SparseParticleIndexKey a0)
15296  """
15297  return _IMP_core.Provenanced_remove_attribute(self, *args)
15298 
15299  def has_attribute(self, *args):
15300  r"""
15301  has_attribute(Provenanced self, FloatKey a0) -> bool
15302  has_attribute(Provenanced self, IntKey a0) -> bool
15303  has_attribute(Provenanced self, FloatsKey a0) -> bool
15304  has_attribute(Provenanced self, IntsKey a0) -> bool
15305  has_attribute(Provenanced self, StringKey a0) -> bool
15306  has_attribute(Provenanced self, ParticleIndexKey a0) -> bool
15307  has_attribute(Provenanced self, ObjectKey a0) -> bool
15308  has_attribute(Provenanced self, SparseFloatKey a0) -> bool
15309  has_attribute(Provenanced self, SparseIntKey a0) -> bool
15310  has_attribute(Provenanced self, SparseStringKey a0) -> bool
15311  has_attribute(Provenanced self, SparseParticleIndexKey a0) -> bool
15312  """
15313  return _IMP_core.Provenanced_has_attribute(self, *args)
15314 
15315  def get_derivative(self, a0):
15316  r"""get_derivative(Provenanced self, FloatKey a0) -> double"""
15317  return _IMP_core.Provenanced_get_derivative(self, a0)
15318 
15319  def get_name(self):
15320  r"""get_name(Provenanced self) -> std::string"""
15321  return _IMP_core.Provenanced_get_name(self)
15322 
15323  def clear_caches(self):
15324  r"""clear_caches(Provenanced self)"""
15325  return _IMP_core.Provenanced_clear_caches(self)
15326 
15327  def set_name(self, a0):
15328  r"""set_name(Provenanced self, std::string a0)"""
15329  return _IMP_core.Provenanced_set_name(self, a0)
15330 
15331  def set_check_level(self, a0):
15332  r"""set_check_level(Provenanced self, IMP::CheckLevel a0)"""
15333  return _IMP_core.Provenanced_set_check_level(self, a0)
15334 
15335  def add_to_derivative(self, a0, a1, a2):
15336  r"""add_to_derivative(Provenanced self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15337  return _IMP_core.Provenanced_add_to_derivative(self, a0, a1, a2)
15338 
15339  def set_is_optimized(self, a0, a1):
15340  r"""set_is_optimized(Provenanced self, FloatKey a0, bool a1)"""
15341  return _IMP_core.Provenanced_set_is_optimized(self, a0, a1)
15342 
15343  def get_is_optimized(self, a0):
15344  r"""get_is_optimized(Provenanced self, FloatKey a0) -> bool"""
15345  return _IMP_core.Provenanced_get_is_optimized(self, a0)
15346 
15347  def get_check_level(self):
15348  r"""get_check_level(Provenanced self) -> IMP::CheckLevel"""
15349  return _IMP_core.Provenanced_get_check_level(self)
15350 
15351  def __eq__(self, *args):
15352  r"""
15353  __eq__(Provenanced self, Provenanced o) -> bool
15354  __eq__(Provenanced self, Particle d) -> bool
15355  """
15356  return _IMP_core.Provenanced___eq__(self, *args)
15357 
15358  def __ne__(self, *args):
15359  r"""
15360  __ne__(Provenanced self, Provenanced o) -> bool
15361  __ne__(Provenanced self, Particle d) -> bool
15362  """
15363  return _IMP_core.Provenanced___ne__(self, *args)
15364 
15365  def __le__(self, *args):
15366  r"""
15367  __le__(Provenanced self, Provenanced o) -> bool
15368  __le__(Provenanced self, Particle d) -> bool
15369  """
15370  return _IMP_core.Provenanced___le__(self, *args)
15371 
15372  def __lt__(self, *args):
15373  r"""
15374  __lt__(Provenanced self, Provenanced o) -> bool
15375  __lt__(Provenanced self, Particle d) -> bool
15376  """
15377  return _IMP_core.Provenanced___lt__(self, *args)
15378 
15379  def __ge__(self, *args):
15380  r"""
15381  __ge__(Provenanced self, Provenanced o) -> bool
15382  __ge__(Provenanced self, Particle d) -> bool
15383  """
15384  return _IMP_core.Provenanced___ge__(self, *args)
15385 
15386  def __gt__(self, *args):
15387  r"""
15388  __gt__(Provenanced self, Provenanced o) -> bool
15389  __gt__(Provenanced self, Particle d) -> bool
15390  """
15391  return _IMP_core.Provenanced___gt__(self, *args)
15392 
15393  def __hash__(self):
15394  r"""__hash__(Provenanced self) -> std::size_t"""
15395  return _IMP_core.Provenanced___hash__(self)
15396 
15397  def __str__(self):
15398  r"""__str__(Provenanced self) -> std::string"""
15399  return _IMP_core.Provenanced___str__(self)
15400 
15401  def __repr__(self):
15402  r"""__repr__(Provenanced self) -> std::string"""
15403  return _IMP_core.Provenanced___repr__(self)
15404 
15405  def _get_as_binary(self):
15406  r"""_get_as_binary(Provenanced self) -> PyObject *"""
15407  return _IMP_core.Provenanced__get_as_binary(self)
15408 
15409  def _set_from_binary(self, p):
15410  r"""_set_from_binary(Provenanced self, PyObject * p)"""
15411  return _IMP_core.Provenanced__set_from_binary(self, p)
15412 
15413  def __getstate__(self):
15414  p = self._get_as_binary()
15415  if len(self.__dict__) > 1:
15416  d = self.__dict__.copy()
15417  del d['this']
15418  p = (d, p)
15419  return p
15420 
15421  def __setstate__(self, p):
15422  if not hasattr(self, 'this'):
15423  self.__init__()
15424  if isinstance(p, tuple):
15425  d, p = p
15426  self.__dict__.update(d)
15427  return self._set_from_binary(p)
15428 
15429  __swig_destroy__ = _IMP_core.delete_Provenanced
15430 
15431 # Register Provenanced in _IMP_core:
15432 _IMP_core.Provenanced_swigregister(Provenanced)
15433 
15434 def add_provenance(m, pi, p):
15435  r"""add_provenance(Model m, ParticleIndex pi, Provenance p)"""
15436  return _IMP_core.add_provenance(m, pi, p)
15437 
15438 def create_clone(p):
15439  r"""create_clone(Provenance p) -> Provenance"""
15440  return _IMP_core.create_clone(p)
15441 
15443  r"""
15444  get_transformation_aligning_first_to_second(IMP::ParticlesTemp const & a, IMP::ParticlesTemp const & b) -> Transformation3D
15445  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
15446  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
15447  """
15448  return _IMP_core.get_transformation_aligning_first_to_second(*args)
15449 
15450 def create_restraint(ps, pp):
15451  r"""create_restraint(PairScore ps, IMP::ParticlePair pp) -> Restraint"""
15452  return _IMP_core.create_restraint(ps, pp)
15454  r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::LOWER > class."""
15455 
15456  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15457 
15458  def __init__(self, *args):
15459  r"""
15460  __init__(TruncatedHarmonicLowerBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicLowerBound
15461  __init__(TruncatedHarmonicLowerBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicLowerBound
15462  """
15463  _IMP_core.TruncatedHarmonicLowerBound_swiginit(self, _IMP_core.new_TruncatedHarmonicLowerBound(*args))
15464 
15465  def get_version_info(self):
15466  r"""get_version_info(TruncatedHarmonicLowerBound self) -> VersionInfo"""
15467  return _IMP_core.TruncatedHarmonicLowerBound_get_version_info(self)
15468  __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicLowerBound
15469 
15470  def __str__(self):
15471  r"""__str__(TruncatedHarmonicLowerBound self) -> std::string"""
15472  return _IMP_core.TruncatedHarmonicLowerBound___str__(self)
15473 
15474  def __repr__(self):
15475  r"""__repr__(TruncatedHarmonicLowerBound self) -> std::string"""
15476  return _IMP_core.TruncatedHarmonicLowerBound___repr__(self)
15477 
15478  @staticmethod
15479  def get_from(o):
15480  return _object_cast_to_TruncatedHarmonic(o)
15481 
15482 
15483 # Register TruncatedHarmonicLowerBound in _IMP_core:
15484 _IMP_core.TruncatedHarmonicLowerBound_swigregister(TruncatedHarmonicLowerBound)
15486  r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::UPPER > class."""
15487 
15488  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15489 
15490  def __init__(self, *args):
15491  r"""
15492  __init__(TruncatedHarmonicUpperBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicUpperBound
15493  __init__(TruncatedHarmonicUpperBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicUpperBound
15494  """
15495  _IMP_core.TruncatedHarmonicUpperBound_swiginit(self, _IMP_core.new_TruncatedHarmonicUpperBound(*args))
15496 
15497  def get_version_info(self):
15498  r"""get_version_info(TruncatedHarmonicUpperBound self) -> VersionInfo"""
15499  return _IMP_core.TruncatedHarmonicUpperBound_get_version_info(self)
15500  __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicUpperBound
15501 
15502  def __str__(self):
15503  r"""__str__(TruncatedHarmonicUpperBound self) -> std::string"""
15504  return _IMP_core.TruncatedHarmonicUpperBound___str__(self)
15505 
15506  def __repr__(self):
15507  r"""__repr__(TruncatedHarmonicUpperBound self) -> std::string"""
15508  return _IMP_core.TruncatedHarmonicUpperBound___repr__(self)
15509 
15510  @staticmethod
15511  def get_from(o):
15512  return _object_cast_to_TruncatedHarmonic(o)
15513 
15514 
15515 # Register TruncatedHarmonicUpperBound in _IMP_core:
15516 _IMP_core.TruncatedHarmonicUpperBound_swigregister(TruncatedHarmonicUpperBound)
15518  r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::BOTH > class."""
15519 
15520  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15521 
15522  def __init__(self, *args):
15523  r"""
15524  __init__(TruncatedHarmonicBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicBound
15525  __init__(TruncatedHarmonicBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicBound
15526  """
15527  _IMP_core.TruncatedHarmonicBound_swiginit(self, _IMP_core.new_TruncatedHarmonicBound(*args))
15528 
15529  def get_version_info(self):
15530  r"""get_version_info(TruncatedHarmonicBound self) -> VersionInfo"""
15531  return _IMP_core.TruncatedHarmonicBound_get_version_info(self)
15532  __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicBound
15533 
15534  def __str__(self):
15535  r"""__str__(TruncatedHarmonicBound self) -> std::string"""
15536  return _IMP_core.TruncatedHarmonicBound___str__(self)
15537 
15538  def __repr__(self):
15539  r"""__repr__(TruncatedHarmonicBound self) -> std::string"""
15540  return _IMP_core.TruncatedHarmonicBound___repr__(self)
15541 
15542  @staticmethod
15543  def get_from(o):
15544  return _object_cast_to_TruncatedHarmonic(o)
15545 
15546 
15547 # Register TruncatedHarmonicBound in _IMP_core:
15548 _IMP_core.TruncatedHarmonicBound_swigregister(TruncatedHarmonicBound)
15549 class ParticleType(IMP._Value):
15550  r"""Proxy of C++ IMP::Key< 34897493 > class."""
15551 
15552  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15553 
15554  def __init__(self, *args):
15555  r"""
15556  __init__(ParticleType self) -> ParticleType
15557  __init__(ParticleType self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleType
15558  __init__(ParticleType self, unsigned int i) -> ParticleType
15559  """
15560  _IMP_core.ParticleType_swiginit(self, _IMP_core.new_ParticleType(*args))
15561 
15562  @staticmethod
15563  def add_key(sc):
15564  r"""add_key(std::string sc) -> unsigned int"""
15565  return _IMP_core.ParticleType_add_key(sc)
15566 
15567  @staticmethod
15568  def get_key_exists(sc):
15569  r"""get_key_exists(std::string sc) -> bool"""
15570  return _IMP_core.ParticleType_get_key_exists(sc)
15571 
15572  def get_string(self):
15573  r"""get_string(ParticleType self) -> std::string const"""
15574  return _IMP_core.ParticleType_get_string(self)
15575 
15576  def __cmp__(self, o):
15577  r"""__cmp__(ParticleType self, ParticleType o) -> int"""
15578  return _IMP_core.ParticleType___cmp__(self, o)
15579 
15580  def __eq__(self, o):
15581  r"""__eq__(ParticleType self, ParticleType o) -> bool"""
15582  return _IMP_core.ParticleType___eq__(self, o)
15583 
15584  def __ne__(self, o):
15585  r"""__ne__(ParticleType self, ParticleType o) -> bool"""
15586  return _IMP_core.ParticleType___ne__(self, o)
15587 
15588  def __lt__(self, o):
15589  r"""__lt__(ParticleType self, ParticleType o) -> bool"""
15590  return _IMP_core.ParticleType___lt__(self, o)
15591 
15592  def __gt__(self, o):
15593  r"""__gt__(ParticleType self, ParticleType o) -> bool"""
15594  return _IMP_core.ParticleType___gt__(self, o)
15595 
15596  def __ge__(self, o):
15597  r"""__ge__(ParticleType self, ParticleType o) -> bool"""
15598  return _IMP_core.ParticleType___ge__(self, o)
15599 
15600  def __le__(self, o):
15601  r"""__le__(ParticleType self, ParticleType o) -> bool"""
15602  return _IMP_core.ParticleType___le__(self, o)
15603 
15604  def __hash__(self):
15605  r"""__hash__(ParticleType self) -> std::size_t"""
15606  return _IMP_core.ParticleType___hash__(self)
15607 
15608  def show(self, *args):
15609  r"""show(ParticleType self, _ostream out=std::cout)"""
15610  return _IMP_core.ParticleType_show(self, *args)
15611 
15612  @staticmethod
15613  def add_alias(old_key, new_name):
15614  r"""add_alias(ParticleType old_key, std::string new_name) -> ParticleType"""
15615  return _IMP_core.ParticleType_add_alias(old_key, new_name)
15616 
15617  @staticmethod
15618  def get_number_of_keys():
15619  r"""get_number_of_keys() -> unsigned int"""
15620  return _IMP_core.ParticleType_get_number_of_keys()
15621 
15622  def get_index(self):
15623  r"""get_index(ParticleType self) -> unsigned int"""
15624  return _IMP_core.ParticleType_get_index(self)
15625 
15626  @staticmethod
15627  def show_all(out):
15628  r"""show_all(_ostream out)"""
15629  return _IMP_core.ParticleType_show_all(out)
15630 
15631  @staticmethod
15632  def get_all_strings():
15633  r"""get_all_strings() -> IMP::Vector< std::string >"""
15634  return _IMP_core.ParticleType_get_all_strings()
15635 
15636  @staticmethod
15637  def get_number_unique():
15638  r"""get_number_unique() -> unsigned int"""
15639  return _IMP_core.ParticleType_get_number_unique()
15640 
15641  def __str__(self):
15642  r"""__str__(ParticleType self) -> std::string"""
15643  return _IMP_core.ParticleType___str__(self)
15644 
15645  def __repr__(self):
15646  r"""__repr__(ParticleType self) -> std::string"""
15647  return _IMP_core.ParticleType___repr__(self)
15648  __swig_destroy__ = _IMP_core.delete_ParticleType
15649 
15650 # Register ParticleType in _IMP_core:
15651 _IMP_core.ParticleType_swigregister(ParticleType)
15653  r"""Proxy of C++ IMP::core::GenericAttributeSingletonScore< UnaryFunction > class."""
15654 
15655  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15656  __repr__ = _swig_repr
15657 
15658  def __init__(self, f, k):
15659  r"""__init__(AttributeSingletonScore self, UnaryFunction f, FloatKey k) -> AttributeSingletonScore"""
15660  _IMP_core.AttributeSingletonScore_swiginit(self, _IMP_core.new_AttributeSingletonScore(f, k))
15661 
15662  def do_get_inputs(self, m, pis):
15663  r"""do_get_inputs(AttributeSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15664  return _IMP_core.AttributeSingletonScore_do_get_inputs(self, m, pis)
15665 
15666  def get_unary_function(self):
15667  r"""get_unary_function(AttributeSingletonScore self) -> UnaryFunction"""
15668  return _IMP_core.AttributeSingletonScore_get_unary_function(self)
15669 
15670  def get_version_info(self):
15671  r"""get_version_info(AttributeSingletonScore self) -> VersionInfo"""
15672  return _IMP_core.AttributeSingletonScore_get_version_info(self)
15673  __swig_destroy__ = _IMP_core.delete_AttributeSingletonScore
15674 
15675 # Register AttributeSingletonScore in _IMP_core:
15676 _IMP_core.AttributeSingletonScore_swigregister(AttributeSingletonScore)
15677 
15679  r"""create_generic_attribute_singleton_score(UnaryFunction uf, FloatKey k) -> AttributeSingletonScore"""
15680  return _IMP_core.create_generic_attribute_singleton_score(uf, k)
15682  r"""Proxy of C++ IMP::core::GenericBoundingBox3DSingletonScore< UnaryFunction > class."""
15683 
15684  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15685  __repr__ = _swig_repr
15686 
15687  def __init__(self, f, bb):
15688  r"""__init__(BoundingBox3DSingletonScore self, UnaryFunction f, BoundingBox3D bb) -> BoundingBox3DSingletonScore"""
15689  _IMP_core.BoundingBox3DSingletonScore_swiginit(self, _IMP_core.new_BoundingBox3DSingletonScore(f, bb))
15690 
15691  def do_get_inputs(self, m, pis):
15692  r"""do_get_inputs(BoundingBox3DSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15693  return _IMP_core.BoundingBox3DSingletonScore_do_get_inputs(self, m, pis)
15694 
15695  def get_version_info(self):
15696  r"""get_version_info(BoundingBox3DSingletonScore self) -> VersionInfo"""
15697  return _IMP_core.BoundingBox3DSingletonScore_get_version_info(self)
15698  __swig_destroy__ = _IMP_core.delete_BoundingBox3DSingletonScore
15699 
15700 # Register BoundingBox3DSingletonScore in _IMP_core:
15701 _IMP_core.BoundingBox3DSingletonScore_swigregister(BoundingBox3DSingletonScore)
15702 
15703 def create_bounding_box_3d_singleton_score(f, bb):
15704  r"""create_bounding_box_3d_singleton_score(UnaryFunction f, BoundingBox3D bb) -> BoundingBox3DSingletonScore"""
15705  return _IMP_core.create_bounding_box_3d_singleton_score(f, bb)
15707  r"""Proxy of C++ IMP::core::GenericBoundingSphere3DSingletonScore< UnaryFunction > class."""
15708 
15709  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15710  __repr__ = _swig_repr
15711 
15712  def __init__(self, f, sphere):
15713  r"""__init__(BoundingSphere3DSingletonScore self, UnaryFunction f, Sphere3D sphere) -> BoundingSphere3DSingletonScore"""
15714  _IMP_core.BoundingSphere3DSingletonScore_swiginit(self, _IMP_core.new_BoundingSphere3DSingletonScore(f, sphere))
15715 
15716  def do_get_inputs(self, m, pis):
15717  r"""do_get_inputs(BoundingSphere3DSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15718  return _IMP_core.BoundingSphere3DSingletonScore_do_get_inputs(self, m, pis)
15719 
15720  def get_version_info(self):
15721  r"""get_version_info(BoundingSphere3DSingletonScore self) -> VersionInfo"""
15722  return _IMP_core.BoundingSphere3DSingletonScore_get_version_info(self)
15723  __swig_destroy__ = _IMP_core.delete_BoundingSphere3DSingletonScore
15724 
15725 # Register BoundingSphere3DSingletonScore in _IMP_core:
15726 _IMP_core.BoundingSphere3DSingletonScore_swigregister(BoundingSphere3DSingletonScore)
15727 
15728 def create_bounding_sphere_3d_singleton_score(f, sphere):
15729  r"""create_bounding_sphere_3d_singleton_score(UnaryFunction f, Sphere3D sphere) -> BoundingSphere3DSingletonScore"""
15730  return _IMP_core.create_bounding_sphere_3d_singleton_score(f, sphere)
15732  r"""Proxy of C++ IMP::core::GenericDistanceToSingletonScore< UnaryFunction > class."""
15733 
15734  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15735  __repr__ = _swig_repr
15736 
15737  def __init__(self, *args):
15738  r"""
15739  __init__(DistanceToSingletonScore self, UnaryFunction f, Vector3D pt) -> DistanceToSingletonScore
15740  __init__(DistanceToSingletonScore self) -> DistanceToSingletonScore
15741  """
15742  _IMP_core.DistanceToSingletonScore_swiginit(self, _IMP_core.new_DistanceToSingletonScore(*args))
15743 
15744  def do_get_inputs(self, m, pis):
15745  r"""do_get_inputs(DistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15746  return _IMP_core.DistanceToSingletonScore_do_get_inputs(self, m, pis)
15747 
15748  def get_version_info(self):
15749  r"""get_version_info(DistanceToSingletonScore self) -> VersionInfo"""
15750  return _IMP_core.DistanceToSingletonScore_get_version_info(self)
15751  __swig_destroy__ = _IMP_core.delete_DistanceToSingletonScore
15752 
15753  def _get_as_binary(self):
15754  r"""_get_as_binary(DistanceToSingletonScore self) -> PyObject *"""
15755  return _IMP_core.DistanceToSingletonScore__get_as_binary(self)
15756 
15757  def _set_from_binary(self, p):
15758  r"""_set_from_binary(DistanceToSingletonScore self, PyObject * p)"""
15759  return _IMP_core.DistanceToSingletonScore__set_from_binary(self, p)
15760 
15761  def __getstate__(self):
15762  p = self._get_as_binary()
15763  if len(self.__dict__) > 1:
15764  d = self.__dict__.copy()
15765  del d['this']
15766  p = (d, p)
15767  return p
15768 
15769  def __setstate__(self, p):
15770  if not hasattr(self, 'this'):
15771  self.__init__()
15772  if isinstance(p, tuple):
15773  d, p = p
15774  self.__dict__.update(d)
15775  return self._set_from_binary(p)
15776 
15777 
15778 # Register DistanceToSingletonScore in _IMP_core:
15779 _IMP_core.DistanceToSingletonScore_swigregister(DistanceToSingletonScore)
15780 
15781 def create_distance_to_singleton_score(f, pt):
15782  r"""create_distance_to_singleton_score(UnaryFunction f, Vector3D pt) -> DistanceToSingletonScore"""
15783  return _IMP_core.create_distance_to_singleton_score(f, pt)
15784 
15785 
15786 def get_all_provenance(p, types=[StructureProvenance, SampleProvenance,
15787  CombineProvenance, FilterProvenance,
15788  ClusterProvenance, ScriptProvenance,
15789  SoftwareProvenance]):
15790  """Yield all provenance decorators of the given types for the particle.
15791  By default, all provenance types are returned. Provenance is returned
15792  in order, most recent first. If the particle has no provenance
15793  information, an empty generator is returned."""
15794  if Provenanced.get_is_setup(p):
15795  prov = Provenanced(p).get_provenance()
15796  while prov:
15797  for c in types:
15798  if c.get_is_setup(prov):
15799  yield c(prov)
15800  prov = prov.get_previous()
15801 
15803  """Tag the given particle with the current Python script.
15804  This is a noop if the particle is already so tagged."""
15805  main = sys.modules['__main__']
15806 # Can't do anything if running from an interactive interpreter
15807  if not hasattr(main, '__file__'):
15808  return
15809  f = IMP.get_absolute_path(main.__file__)
15810  for prov in get_all_provenance(p, types=[ScriptProvenance]):
15811  if prov.get_filename() == f:
15812  return
15813  m = p.get_model()
15814  provp = IMP.Particle(m)
15815  provp.set_name('script')
15816  prov = ScriptProvenance.setup_particle(provp, f)
15817  add_provenance(m, p, prov)
15818 
15819 def add_software_provenance(p, name, version, location):
15820  """Tag the given particle with the software used to create it.
15821  This is a noop if the particle is already so tagged."""
15822  for prov in get_all_provenance(p, types=[SoftwareProvenance]):
15823  if prov.get_software_name() == name and prov.get_version() == version \
15824  and prov.get_location() == location:
15825  return
15826  m = p.get_model()
15827  provp = IMP.Particle(m)
15828  provp.set_name('software')
15829  prov = SoftwareProvenance.setup_particle(provp, name, version, location)
15830  add_provenance(m, p, prov)
15831 
15833  """Tag the given particle as being created by the current version of IMP."""
15834  add_software_provenance(p, name="Integrative Modeling Platform (IMP)",
15835  version=IMP.get_module_version(),
15836  location="https://integrativemodeling.org")
15837 
15838 
15839 def get_module_version():
15840  r"""get_module_version() -> std::string const"""
15841  return _IMP_core.get_module_version()
15842 
15843 def get_example_path(fname):
15844  r"""get_example_path(std::string fname) -> std::string"""
15845  return _IMP_core.get_example_path(fname)
15846 
15847 def get_data_path(fname):
15848  r"""get_data_path(std::string fname) -> std::string"""
15849  return _IMP_core.get_data_path(fname)
15850 
15851 from . import _version_check
15852 _version_check.check_version(get_module_version())
15853 __version__ = get_module_version()
15854 
15855 
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.
Version and module information for Objects.
Definition: VersionInfo.h:29
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