IMP logo
IMP Reference Guide  2.19.0
The Integrative Modeling Platform
core/__init__.py
1 # This file was automatically generated by SWIG (https://www.swig.org).
2 # Version 4.1.1
3 #
4 # Do not make changes to this file unless you know what you are doing - modify
5 # the SWIG interface file instead.
6 
7 
8 # This wrapper is part of IMP,
9 # Copyright 2007-2023 IMP Inventors. All rights reserved.
10 
11 from __future__ import print_function, division, absolute_import
12 
13 
14 
15 from sys import version_info as _swig_python_version_info
16 import _IMP_core
17 
18 try:
19  import builtins as __builtin__
20 except ImportError:
21  import __builtin__
22 
23 def _swig_repr(self):
24  try:
25  strthis = "proxy of " + self.this.__repr__()
26  except __builtin__.Exception:
27  strthis = ""
28  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
29 
30 
31 def _swig_setattr_nondynamic_instance_variable(set):
32  def set_instance_attr(self, name, value):
33  if name == "this":
34  set(self, name, value)
35  elif name == "thisown":
36  self.this.own(value)
37  elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
38  set(self, name, value)
39  else:
40  raise AttributeError("You cannot add instance attributes to %s" % self)
41  return set_instance_attr
42 
43 
44 def _swig_setattr_nondynamic_class_variable(set):
45  def set_class_attr(cls, name, value):
46  if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
47  set(cls, name, value)
48  else:
49  raise AttributeError("You cannot add class attributes to %s" % cls)
50  return set_class_attr
51 
52 
53 def _swig_add_metaclass(metaclass):
54  """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
55  def wrapper(cls):
56  return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
57  return wrapper
58 
59 
60 class _SwigNonDynamicMeta(type):
61  """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
62  __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
63 
64 
65 import weakref
66 
67 class IMP_CORE_SwigPyIterator(object):
68  r"""Proxy of C++ swig::IMP_CORE_SwigPyIterator class."""
69 
70  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
71 
72  def __init__(self, *args, **kwargs):
73  raise AttributeError("No constructor defined - class is abstract")
74  __repr__ = _swig_repr
75  __swig_destroy__ = _IMP_core.delete_IMP_CORE_SwigPyIterator
76 
77  def value(self):
78  r"""value(IMP_CORE_SwigPyIterator self) -> PyObject *"""
79  return _IMP_core.IMP_CORE_SwigPyIterator_value(self)
80 
81  def incr(self, n=1):
82  r"""incr(IMP_CORE_SwigPyIterator self, size_t n=1) -> IMP_CORE_SwigPyIterator"""
83  return _IMP_core.IMP_CORE_SwigPyIterator_incr(self, n)
84 
85  def decr(self, n=1):
86  r"""decr(IMP_CORE_SwigPyIterator self, size_t n=1) -> IMP_CORE_SwigPyIterator"""
87  return _IMP_core.IMP_CORE_SwigPyIterator_decr(self, n)
88 
89  def distance(self, x):
90  r"""distance(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> ptrdiff_t"""
91  return _IMP_core.IMP_CORE_SwigPyIterator_distance(self, x)
92 
93  def equal(self, x):
94  r"""equal(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> bool"""
95  return _IMP_core.IMP_CORE_SwigPyIterator_equal(self, x)
96 
97  def copy(self):
98  r"""copy(IMP_CORE_SwigPyIterator self) -> IMP_CORE_SwigPyIterator"""
99  return _IMP_core.IMP_CORE_SwigPyIterator_copy(self)
100 
101  def next(self):
102  r"""next(IMP_CORE_SwigPyIterator self) -> PyObject *"""
103  return _IMP_core.IMP_CORE_SwigPyIterator_next(self)
104 
105  def __next__(self):
106  r"""__next__(IMP_CORE_SwigPyIterator self) -> PyObject *"""
107  return _IMP_core.IMP_CORE_SwigPyIterator___next__(self)
108 
109  def previous(self):
110  r"""previous(IMP_CORE_SwigPyIterator self) -> PyObject *"""
111  return _IMP_core.IMP_CORE_SwigPyIterator_previous(self)
112 
113  def advance(self, n):
114  r"""advance(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator"""
115  return _IMP_core.IMP_CORE_SwigPyIterator_advance(self, n)
116 
117  def __eq__(self, x):
118  r"""__eq__(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> bool"""
119  return _IMP_core.IMP_CORE_SwigPyIterator___eq__(self, x)
120 
121  def __ne__(self, x):
122  r"""__ne__(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> bool"""
123  return _IMP_core.IMP_CORE_SwigPyIterator___ne__(self, x)
124 
125  def __iadd__(self, n):
126  r"""__iadd__(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator"""
127  return _IMP_core.IMP_CORE_SwigPyIterator___iadd__(self, n)
128 
129  def __isub__(self, n):
130  r"""__isub__(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator"""
131  return _IMP_core.IMP_CORE_SwigPyIterator___isub__(self, n)
132 
133  def __add__(self, n):
134  r"""__add__(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator"""
135  return _IMP_core.IMP_CORE_SwigPyIterator___add__(self, n)
136 
137  def __sub__(self, *args):
138  r"""
139  __sub__(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator
140  __sub__(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> ptrdiff_t
141  """
142  return _IMP_core.IMP_CORE_SwigPyIterator___sub__(self, *args)
143  def __iter__(self):
144  return self
145 
146 # Register IMP_CORE_SwigPyIterator in _IMP_core:
147 _IMP_core.IMP_CORE_SwigPyIterator_swigregister(IMP_CORE_SwigPyIterator)
148 
149 _value_types=[]
150 _object_types=[]
151 _raii_types=[]
152 _plural_types=[]
153 
154 IMP_DEBUG = _IMP_core.IMP_DEBUG
155 
156 IMP_RELEASE = _IMP_core.IMP_RELEASE
157 
158 IMP_SILENT = _IMP_core.IMP_SILENT
159 
160 IMP_PROGRESS = _IMP_core.IMP_PROGRESS
161 
162 IMP_TERSE = _IMP_core.IMP_TERSE
163 
164 IMP_VERBOSE = _IMP_core.IMP_VERBOSE
165 
166 IMP_MEMORY = _IMP_core.IMP_MEMORY
167 
168 IMP_NONE = _IMP_core.IMP_NONE
169 
170 IMP_USAGE = _IMP_core.IMP_USAGE
171 
172 IMP_INTERNAL = _IMP_core.IMP_INTERNAL
173 
174 IMP_KERNEL_HAS_LOG4CXX = _IMP_core.IMP_KERNEL_HAS_LOG4CXX
175 
176 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_core.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
177 
178 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_core.IMP_COMPILER_HAS_DEBUG_VECTOR
179 
180 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_core.IMP_COMPILER_HAS_RANDOM_SHUFFLE
181 
182 IMP_COMPILER_HAS_THREE_WAY = _IMP_core.IMP_COMPILER_HAS_THREE_WAY
183 
184 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_core.IMP_KERNEL_HAS_BOOST_RANDOM
185 
186 IMP_KERNEL_HAS_NUMPY = _IMP_core.IMP_KERNEL_HAS_NUMPY
187 
188 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_core.IMP_KERNEL_HAS_GPERFTOOLS
189 
190 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_core.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
191 
192 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_core.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
193 
194 IMPKERNEL_SHOW_WARNINGS = _IMP_core.IMPKERNEL_SHOW_WARNINGS
195 
196 
197 import sys
198 class _DirectorObjects(object):
199  """@internal Simple class to keep references to director objects
200  to prevent premature deletion."""
201  def __init__(self):
202  self._objects = []
203  def register(self, obj):
204  """Take a reference to a director object; will only work for
205  refcounted C++ classes"""
206  if hasattr(obj, 'get_ref_count'):
207  self._objects.append(obj)
208  def cleanup(self):
209  """Only drop our reference and allow cleanup by Python if no other
210  Python references exist (we hold 3 references: one in self._objects,
211  one in x, and one in the argument list for getrefcount) *and* no
212  other C++ references exist (the Python object always holds one)"""
213  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
214  or x.get_ref_count() > 1]
215 # Do in two steps so the references are kept until the end of the
216 # function (deleting references may trigger a fresh call to this method)
217  self._objects = objs
218  def get_object_count(self):
219  """Get number of director objects (useful for testing only)"""
220  return len(self._objects)
221 _director_objects = _DirectorObjects()
222 
223 class _ostream(object):
224  r"""Proxy of C++ std::ostream class."""
225 
226  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
227 
228  def __init__(self, *args, **kwargs):
229  raise AttributeError("No constructor defined")
230  __repr__ = _swig_repr
231 
232  def write(self, osa_buf):
233  r"""write(_ostream self, char const * osa_buf)"""
234  return _IMP_core._ostream_write(self, osa_buf)
235 
236 # Register _ostream in _IMP_core:
237 _IMP_core._ostream_swigregister(_ostream)
238 IMP_C_OPEN_BINARY = _IMP_core.IMP_C_OPEN_BINARY
239 
240 import IMP
241 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_CGAL_HAS_BOOST_FILESYSTEM
242 
243 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
244 
245 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_core.IMP_CGAL_HAS_BOOST_RANDOM
246 
247 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_core.IMP_CGAL_HAS_BOOST_SYSTEM
248 
249 IMP_CGAL_HAS_NUMPY = _IMP_core.IMP_CGAL_HAS_NUMPY
250 
251 IMPCGAL_SHOW_WARNINGS = _IMP_core.IMPCGAL_SHOW_WARNINGS
252 
253 import IMP.cgal
254 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_core.IMP_ALGEBRA_HAS_IMP_CGAL
255 
256 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
257 
258 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
259 
260 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_core.IMP_ALGEBRA_HAS_BOOST_RANDOM
261 
262 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_core.IMP_ALGEBRA_HAS_BOOST_SYSTEM
263 
264 IMP_ALGEBRA_HAS_CGAL = _IMP_core.IMP_ALGEBRA_HAS_CGAL
265 
266 IMP_ALGEBRA_HAS_NUMPY = _IMP_core.IMP_ALGEBRA_HAS_NUMPY
267 
268 IMP_ALGEBRA_HAS_ANN = _IMP_core.IMP_ALGEBRA_HAS_ANN
269 
270 IMPALGEBRA_SHOW_WARNINGS = _IMP_core.IMPALGEBRA_SHOW_WARNINGS
271 
272 import IMP.algebra
273 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_core.IMP_DISPLAY_HAS_IMP_CGAL
274 
275 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
276 
277 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
278 
279 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_core.IMP_DISPLAY_HAS_BOOST_RANDOM
280 
281 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_core.IMP_DISPLAY_HAS_BOOST_SYSTEM
282 
283 IMP_DISPLAY_HAS_CGAL = _IMP_core.IMP_DISPLAY_HAS_CGAL
284 
285 IMP_DISPLAY_HAS_NUMPY = _IMP_core.IMP_DISPLAY_HAS_NUMPY
286 
287 IMPDISPLAY_SHOW_WARNINGS = _IMP_core.IMPDISPLAY_SHOW_WARNINGS
288 
289 import IMP.display
290 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_core.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
291 
292 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
293 
294 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
295 
296 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
297 
298 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
299 
300 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_core.IMP_SCORE_FUNCTOR_HAS_CGAL
301 
302 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_core.IMP_SCORE_FUNCTOR_HAS_HDF5
303 
304 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_core.IMP_SCORE_FUNCTOR_HAS_NUMPY
305 
306 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_core.IMPSCOREFUNCTOR_SHOW_WARNINGS
307 
308 import IMP.score_functor
309 IMP_CORE_HAS_IMP_CGAL = _IMP_core.IMP_CORE_HAS_IMP_CGAL
310 
311 IMP_CORE_HAS_IMP_KERNEL = _IMP_core.IMP_CORE_HAS_IMP_KERNEL
312 
313 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_CORE_HAS_BOOST_FILESYSTEM
314 
315 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
316 
317 IMP_CORE_HAS_BOOST_RANDOM = _IMP_core.IMP_CORE_HAS_BOOST_RANDOM
318 
319 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_core.IMP_CORE_HAS_BOOST_SYSTEM
320 
321 IMP_CORE_HAS_CGAL = _IMP_core.IMP_CORE_HAS_CGAL
322 
323 IMP_CORE_HAS_HDF5 = _IMP_core.IMP_CORE_HAS_HDF5
324 
325 IMP_CORE_HAS_NUMPY = _IMP_core.IMP_CORE_HAS_NUMPY
326 
327 IMPCORE_SHOW_WARNINGS = _IMP_core.IMPCORE_SHOW_WARNINGS
328 
329 class _OpenCubicSplineBase(IMP.UnaryFunction):
330  r"""Proxy of C++ IMP::score_functor::ScoreUnaryFunction< IMP::score_functor::OpenCubicSpline > class."""
331 
332  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
333  __repr__ = _swig_repr
334 
335  def __init__(self, *args):
336  r"""__init__(_OpenCubicSplineBase self, IMP::score_functor::OpenCubicSpline const & score, std::string name="UnaryFunction%1%") -> _OpenCubicSplineBase"""
337  _IMP_core._OpenCubicSplineBase_swiginit(self, _IMP_core.new__OpenCubicSplineBase(*args))
338 
339  def get_version_info(self):
340  r"""get_version_info(_OpenCubicSplineBase self) -> VersionInfo"""
341  return _IMP_core._OpenCubicSplineBase_get_version_info(self)
342  __swig_destroy__ = _IMP_core.delete__OpenCubicSplineBase
343 
344 # Register _OpenCubicSplineBase in _IMP_core:
345 _IMP_core._OpenCubicSplineBase_swigregister(_OpenCubicSplineBase)
346 
347 _object_types.append("MonteCarloMover")
348 
349 
350 def _object_cast_to_MonteCarloMover(o):
351  r"""_object_cast_to_MonteCarloMover(Object o) -> MonteCarloMover"""
352  return _IMP_core._object_cast_to_MonteCarloMover(o)
353 
354 MonteCarloMoverResults=list
355 _plural_types.append("MonteCarloMoverResults")
356 _value_types.append("MonteCarloMoverResult")
357 
358 
359 _object_types.append("AngleRestraint")
360 
361 
362 def _object_cast_to_AngleRestraint(o):
363  r"""_object_cast_to_AngleRestraint(Object o) -> AngleRestraint"""
364  return _IMP_core._object_cast_to_AngleRestraint(o)
365 
366 _object_types.append("AngleTripletScore")
367 
368 
369 def _object_cast_to_AngleTripletScore(o):
370  r"""_object_cast_to_AngleTripletScore(Object o) -> AngleTripletScore"""
371  return _IMP_core._object_cast_to_AngleTripletScore(o)
372 
373 _object_types.append("AttributeSingletonScore")
374 
375 
376 def _object_cast_to_AttributeSingletonScore(o):
377  r"""_object_cast_to_AttributeSingletonScore(Object o) -> AttributeSingletonScore"""
378  return _IMP_core._object_cast_to_AttributeSingletonScore(o)
379 
380 _object_types.append("BallMover")
381 
382 
383 def _object_cast_to_BallMover(o):
384  r"""_object_cast_to_BallMover(Object o) -> BallMover"""
385  return _IMP_core._object_cast_to_BallMover(o)
386 
387 _object_types.append("SerialMover")
388 
389 
390 def _object_cast_to_SerialMover(o):
391  r"""_object_cast_to_SerialMover(Object o) -> SerialMover"""
392  return _IMP_core._object_cast_to_SerialMover(o)
393 
394 _object_types.append("SubsetMover")
395 
396 
397 def _object_cast_to_SubsetMover(o):
398  r"""_object_cast_to_SubsetMover(Object o) -> SubsetMover"""
399  return _IMP_core._object_cast_to_SubsetMover(o)
400 
401 _object_types.append("DirectionMover")
402 
403 
404 def _object_cast_to_DirectionMover(o):
405  r"""_object_cast_to_DirectionMover(Object o) -> DirectionMover"""
406  return _IMP_core._object_cast_to_DirectionMover(o)
407 
408 _object_types.append("SurfaceMover")
409 
410 
411 def _object_cast_to_SurfaceMover(o):
412  r"""_object_cast_to_SurfaceMover(Object o) -> SurfaceMover"""
413  return _IMP_core._object_cast_to_SurfaceMover(o)
414 
415 _object_types.append("BoundingBox3DSingletonScore")
416 
417 
418 def _object_cast_to_BoundingBox3DSingletonScore(o):
419  r"""_object_cast_to_BoundingBox3DSingletonScore(Object o) -> BoundingBox3DSingletonScore"""
420  return _IMP_core._object_cast_to_BoundingBox3DSingletonScore(o)
421 
422 _object_types.append("BoundingSphere3DSingletonScore")
423 
424 
425 def _object_cast_to_BoundingSphere3DSingletonScore(o):
426  r"""_object_cast_to_BoundingSphere3DSingletonScore(Object o) -> BoundingSphere3DSingletonScore"""
427  return _IMP_core._object_cast_to_BoundingSphere3DSingletonScore(o)
428 
429 _object_types.append("BoxSweepClosePairsFinder")
430 
431 
432 def _object_cast_to_BoxSweepClosePairsFinder(o):
433  r"""_object_cast_to_BoxSweepClosePairsFinder(Object o) -> BoxSweepClosePairsFinder"""
434  return _IMP_core._object_cast_to_BoxSweepClosePairsFinder(o)
435 
436 _object_types.append("NearestNeighborsClosePairsFinder")
437 
438 
439 def _object_cast_to_NearestNeighborsClosePairsFinder(o):
440  r"""_object_cast_to_NearestNeighborsClosePairsFinder(Object o) -> NearestNeighborsClosePairsFinder"""
441  return _IMP_core._object_cast_to_NearestNeighborsClosePairsFinder(o)
442 
443 _object_types.append("CentroidOfRefined")
444 
445 
446 def _object_cast_to_CentroidOfRefined(o):
447  r"""_object_cast_to_CentroidOfRefined(Object o) -> CentroidOfRefined"""
448  return _IMP_core._object_cast_to_CentroidOfRefined(o)
449 
450 _object_types.append("ChecksScoreState")
451 
452 
453 def _object_cast_to_ChecksScoreState(o):
454  r"""_object_cast_to_ChecksScoreState(Object o) -> ChecksScoreState"""
455  return _IMP_core._object_cast_to_ChecksScoreState(o)
456 
457 _object_types.append("ChildrenRefiner")
458 
459 
460 def _object_cast_to_ChildrenRefiner(o):
461  r"""_object_cast_to_ChildrenRefiner(Object o) -> ChildrenRefiner"""
462  return _IMP_core._object_cast_to_ChildrenRefiner(o)
463 
464 _object_types.append("ClosePairsFinder")
465 
466 
467 def _object_cast_to_ClosePairsFinder(o):
468  r"""_object_cast_to_ClosePairsFinder(Object o) -> ClosePairsFinder"""
469  return _IMP_core._object_cast_to_ClosePairsFinder(o)
470 
471 _object_types.append("ClosePairsPairScore")
472 
473 
474 def _object_cast_to_ClosePairsPairScore(o):
475  r"""_object_cast_to_ClosePairsPairScore(Object o) -> ClosePairsPairScore"""
476  return _IMP_core._object_cast_to_ClosePairsPairScore(o)
477 
478 _object_types.append("ClosedCubicSpline")
479 
480 
481 def _object_cast_to_ClosedCubicSpline(o):
482  r"""_object_cast_to_ClosedCubicSpline(Object o) -> ClosedCubicSpline"""
483  return _IMP_core._object_cast_to_ClosedCubicSpline(o)
484 
485 _object_types.append("ConjugateGradients")
486 
487 
488 def _object_cast_to_ConjugateGradients(o):
489  r"""_object_cast_to_ConjugateGradients(Object o) -> ConjugateGradients"""
490  return _IMP_core._object_cast_to_ConjugateGradients(o)
491 
492 _object_types.append("ConnectivityRestraint")
493 
494 
495 def _object_cast_to_ConnectivityRestraint(o):
496  r"""_object_cast_to_ConnectivityRestraint(Object o) -> ConnectivityRestraint"""
497  return _IMP_core._object_cast_to_ConnectivityRestraint(o)
498 
499 _object_types.append("ConstantRestraint")
500 
501 
502 def _object_cast_to_ConstantRestraint(o):
503  r"""_object_cast_to_ConstantRestraint(Object o) -> ConstantRestraint"""
504  return _IMP_core._object_cast_to_ConstantRestraint(o)
505 
506 _object_types.append("Cosine")
507 
508 
509 def _object_cast_to_Cosine(o):
510  r"""_object_cast_to_Cosine(Object o) -> Cosine"""
511  return _IMP_core._object_cast_to_Cosine(o)
512 
513 _object_types.append("CoverRefined")
514 
515 
516 def _object_cast_to_CoverRefined(o):
517  r"""_object_cast_to_CoverRefined(Object o) -> CoverRefined"""
518  return _IMP_core._object_cast_to_CoverRefined(o)
519 
520 _object_types.append("DerivativesFromRefined")
521 
522 
523 def _object_cast_to_DerivativesFromRefined(o):
524  r"""_object_cast_to_DerivativesFromRefined(Object o) -> DerivativesFromRefined"""
525  return _IMP_core._object_cast_to_DerivativesFromRefined(o)
526 
527 _object_types.append("DerivativesToRefined")
528 
529 
530 def _object_cast_to_DerivativesToRefined(o):
531  r"""_object_cast_to_DerivativesToRefined(Object o) -> DerivativesToRefined"""
532  return _IMP_core._object_cast_to_DerivativesToRefined(o)
533 
534 _object_types.append("WeightedDerivativesToRefined")
535 
536 
537 def _object_cast_to_WeightedDerivativesToRefined(o):
538  r"""_object_cast_to_WeightedDerivativesToRefined(Object o) -> IMP::core::WeightedDerivativesToRefined *"""
539  return _IMP_core._object_cast_to_WeightedDerivativesToRefined(o)
540 
541 _object_types.append("DiameterRestraint")
542 
543 
544 def _object_cast_to_DiameterRestraint(o):
545  r"""_object_cast_to_DiameterRestraint(Object o) -> DiameterRestraint"""
546  return _IMP_core._object_cast_to_DiameterRestraint(o)
547 
548 _object_types.append("DihedralRestraint")
549 
550 
551 def _object_cast_to_DihedralRestraint(o):
552  r"""_object_cast_to_DihedralRestraint(Object o) -> DihedralRestraint"""
553  return _IMP_core._object_cast_to_DihedralRestraint(o)
554 
555 _object_types.append("DistanceRestraint")
556 
557 
558 def _object_cast_to_DistanceRestraint(o):
559  r"""_object_cast_to_DistanceRestraint(Object o) -> DistanceRestraint"""
560  return _IMP_core._object_cast_to_DistanceRestraint(o)
561 
562 _object_types.append("DistanceToSingletonScore")
563 
564 
565 def _object_cast_to_DistanceToSingletonScore(o):
566  r"""_object_cast_to_DistanceToSingletonScore(Object o) -> DistanceToSingletonScore"""
567  return _IMP_core._object_cast_to_DistanceToSingletonScore(o)
568 
569 _object_types.append("ExcludedVolumeRestraint")
570 
571 
572 def _object_cast_to_ExcludedVolumeRestraint(o):
573  r"""_object_cast_to_ExcludedVolumeRestraint(Object o) -> ExcludedVolumeRestraint"""
574  return _IMP_core._object_cast_to_ExcludedVolumeRestraint(o)
575 
576 _object_types.append("FixedRefiner")
577 
578 
579 def _object_cast_to_FixedRefiner(o):
580  r"""_object_cast_to_FixedRefiner(Object o) -> FixedRefiner"""
581  return _IMP_core._object_cast_to_FixedRefiner(o)
582 
583 _object_types.append("GridClosePairsFinder")
584 
585 
586 def _object_cast_to_GridClosePairsFinder(o):
587  r"""_object_cast_to_GridClosePairsFinder(Object o) -> GridClosePairsFinder"""
588  return _IMP_core._object_cast_to_GridClosePairsFinder(o)
589 
590 _object_types.append("Harmonic")
591 
592 
593 def _object_cast_to_Harmonic(o):
594  r"""_object_cast_to_Harmonic(Object o) -> Harmonic"""
595  return _IMP_core._object_cast_to_Harmonic(o)
596 
597 _object_types.append("HarmonicWell")
598 
599 
600 def _object_cast_to_HarmonicWell(o):
601  r"""_object_cast_to_HarmonicWell(Object o) -> HarmonicWell"""
602  return _IMP_core._object_cast_to_HarmonicWell(o)
603 
604 _object_types.append("HarmonicLowerBound")
605 
606 
607 def _object_cast_to_HarmonicLowerBound(o):
608  r"""_object_cast_to_HarmonicLowerBound(Object o) -> HarmonicLowerBound"""
609  return _IMP_core._object_cast_to_HarmonicLowerBound(o)
610 
611 _object_types.append("HarmonicUpperBound")
612 
613 
614 def _object_cast_to_HarmonicUpperBound(o):
615  r"""_object_cast_to_HarmonicUpperBound(Object o) -> HarmonicUpperBound"""
616  return _IMP_core._object_cast_to_HarmonicUpperBound(o)
617 
618 _object_types.append("HarmonicSphereDistancePairScore")
619 
620 
621 def _object_cast_to_HarmonicSphereDistancePairScore(o):
622  r"""_object_cast_to_HarmonicSphereDistancePairScore(Object o) -> HarmonicSphereDistancePairScore"""
623  return _IMP_core._object_cast_to_HarmonicSphereDistancePairScore(o)
624 
625 _object_types.append("HarmonicUpperBoundSphereDistancePairScore")
626 
627 
628 def _object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o):
629  r"""_object_cast_to_HarmonicUpperBoundSphereDistancePairScore(Object o) -> HarmonicUpperBoundSphereDistancePairScore"""
630  return _IMP_core._object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o)
631 
632 _object_types.append("HarmonicUpperBoundSphereDiameterPairScore")
633 
634 
635 def _object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o):
636  r"""_object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(Object o) -> HarmonicUpperBoundSphereDiameterPairScore"""
637  return _IMP_core._object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o)
638 
639 _object_types.append("HarmonicSurfaceDistancePairScore")
640 
641 
642 def _object_cast_to_HarmonicSurfaceDistancePairScore(o):
643  r"""_object_cast_to_HarmonicSurfaceDistancePairScore(Object o) -> HarmonicSurfaceDistancePairScore"""
644  return _IMP_core._object_cast_to_HarmonicSurfaceDistancePairScore(o)
645 
646 _object_types.append("HarmonicSurfaceHeightPairScore")
647 
648 
649 def _object_cast_to_HarmonicSurfaceHeightPairScore(o):
650  r"""_object_cast_to_HarmonicSurfaceHeightPairScore(Object o) -> HarmonicSurfaceHeightPairScore"""
651  return _IMP_core._object_cast_to_HarmonicSurfaceHeightPairScore(o)
652 
653 _object_types.append("HarmonicSurfaceDepthPairScore")
654 
655 
656 def _object_cast_to_HarmonicSurfaceDepthPairScore(o):
657  r"""_object_cast_to_HarmonicSurfaceDepthPairScore(Object o) -> HarmonicSurfaceDepthPairScore"""
658  return _IMP_core._object_cast_to_HarmonicSurfaceDepthPairScore(o)
659 
660 _object_types.append("WeightedSum")
661 
662 
663 def _object_cast_to_WeightedSum(o):
664  r"""_object_cast_to_WeightedSum(Object o) -> WeightedSum"""
665  return _IMP_core._object_cast_to_WeightedSum(o)
666 
667 _object_types.append("WeightedSumOfExponential")
668 
669 
670 def _object_cast_to_WeightedSumOfExponential(o):
671  r"""_object_cast_to_WeightedSumOfExponential(Object o) -> WeightedSumOfExponential"""
672  return _IMP_core._object_cast_to_WeightedSumOfExponential(o)
673 
674 _object_types.append("IncrementalScoringFunction")
675 
676 
677 def _object_cast_to_IncrementalScoringFunction(o):
678  r"""_object_cast_to_IncrementalScoringFunction(Object o) -> IncrementalScoringFunction"""
679  return _IMP_core._object_cast_to_IncrementalScoringFunction(o)
680 
681 _object_types.append("KClosePairsPairScore")
682 
683 
684 def _object_cast_to_KClosePairsPairScore(o):
685  r"""_object_cast_to_KClosePairsPairScore(Object o) -> KClosePairsPairScore"""
686  return _IMP_core._object_cast_to_KClosePairsPairScore(o)
687 
688 _object_types.append("LeavesRefiner")
689 
690 
691 def _object_cast_to_LeavesRefiner(o):
692  r"""_object_cast_to_LeavesRefiner(Object o) -> LeavesRefiner"""
693  return _IMP_core._object_cast_to_LeavesRefiner(o)
694 
695 _object_types.append("Linear")
696 
697 
698 def _object_cast_to_Linear(o):
699  r"""_object_cast_to_Linear(Object o) -> Linear"""
700  return _IMP_core._object_cast_to_Linear(o)
701 
702 _object_types.append("LogNormalMover")
703 
704 
705 def _object_cast_to_LogNormalMover(o):
706  r"""_object_cast_to_LogNormalMover(Object o) -> LogNormalMover"""
707  return _IMP_core._object_cast_to_LogNormalMover(o)
708 
709 _object_types.append("MCCGSampler")
710 
711 
712 def _object_cast_to_MCCGSampler(o):
713  r"""_object_cast_to_MCCGSampler(Object o) -> MCCGSampler"""
714  return _IMP_core._object_cast_to_MCCGSampler(o)
715 
716 _object_types.append("MonteCarlo")
717 
718 
719 def _object_cast_to_MonteCarlo(o):
720  r"""_object_cast_to_MonteCarlo(Object o) -> MonteCarlo"""
721  return _IMP_core._object_cast_to_MonteCarlo(o)
722 
723 _object_types.append("MonteCarloWithLocalOptimization")
724 
725 
726 def _object_cast_to_MonteCarloWithLocalOptimization(o):
727  r"""_object_cast_to_MonteCarloWithLocalOptimization(Object o) -> MonteCarloWithLocalOptimization"""
728  return _IMP_core._object_cast_to_MonteCarloWithLocalOptimization(o)
729 
730 _object_types.append("MonteCarloWithBasinHopping")
731 
732 
733 def _object_cast_to_MonteCarloWithBasinHopping(o):
734  r"""_object_cast_to_MonteCarloWithBasinHopping(Object o) -> MonteCarloWithBasinHopping"""
735  return _IMP_core._object_cast_to_MonteCarloWithBasinHopping(o)
736 
737 _object_types.append("MSConnectivityRestraint")
738 
739 
740 def _object_cast_to_MSConnectivityRestraint(o):
741  r"""_object_cast_to_MSConnectivityRestraint(Object o) -> MSConnectivityRestraint"""
742  return _IMP_core._object_cast_to_MSConnectivityRestraint(o)
743 
744 _object_types.append("NeighborsTable")
745 
746 
747 def _object_cast_to_NeighborsTable(o):
748  r"""_object_cast_to_NeighborsTable(Object o) -> NeighborsTable"""
749  return _IMP_core._object_cast_to_NeighborsTable(o)
750 
751 _object_types.append("NormalMover")
752 
753 
754 def _object_cast_to_NormalMover(o):
755  r"""_object_cast_to_NormalMover(Object o) -> NormalMover"""
756  return _IMP_core._object_cast_to_NormalMover(o)
757 
758 _object_types.append("NormalizedSphereDistancePairScore")
759 
760 
761 def _object_cast_to_NormalizedSphereDistancePairScore(o):
762  r"""_object_cast_to_NormalizedSphereDistancePairScore(Object o) -> NormalizedSphereDistancePairScore"""
763  return _IMP_core._object_cast_to_NormalizedSphereDistancePairScore(o)
764 
765 _object_types.append("OpenCubicSpline")
766 
767 
768 def _object_cast_to_OpenCubicSpline(o):
769  r"""_object_cast_to_OpenCubicSpline(Object o) -> OpenCubicSpline"""
770  return _IMP_core._object_cast_to_OpenCubicSpline(o)
771 
772 _object_types.append("PairConstraint")
773 
774 
775 def _object_cast_to_PairConstraint(o):
776  r"""_object_cast_to_PairConstraint(Object o) -> PairConstraint"""
777  return _IMP_core._object_cast_to_PairConstraint(o)
778 
779 _object_types.append("PairRestraint")
780 
781 
782 def _object_cast_to_PairRestraint(o):
783  r"""_object_cast_to_PairRestraint(Object o) -> PairRestraint"""
784  return _IMP_core._object_cast_to_PairRestraint(o)
785 
786 _object_types.append("QuadConstraint")
787 
788 
789 def _object_cast_to_QuadConstraint(o):
790  r"""_object_cast_to_QuadConstraint(Object o) -> QuadConstraint"""
791  return _IMP_core._object_cast_to_QuadConstraint(o)
792 
793 _object_types.append("QuadRestraint")
794 
795 
796 def _object_cast_to_QuadRestraint(o):
797  r"""_object_cast_to_QuadRestraint(Object o) -> QuadRestraint"""
798  return _IMP_core._object_cast_to_QuadRestraint(o)
799 
800 _object_types.append("QuadraticClosePairsFinder")
801 
802 
803 def _object_cast_to_QuadraticClosePairsFinder(o):
804  r"""_object_cast_to_QuadraticClosePairsFinder(Object o) -> QuadraticClosePairsFinder"""
805  return _IMP_core._object_cast_to_QuadraticClosePairsFinder(o)
806 
807 _object_types.append("RefinedPairsPairScore")
808 
809 
810 def _object_cast_to_RefinedPairsPairScore(o):
811  r"""_object_cast_to_RefinedPairsPairScore(Object o) -> RefinedPairsPairScore"""
812  return _IMP_core._object_cast_to_RefinedPairsPairScore(o)
813 
814 _object_types.append("RestraintsScoringFunction")
815 
816 
817 def _object_cast_to_RestraintsScoringFunction(o):
818  r"""_object_cast_to_RestraintsScoringFunction(Object o) -> RestraintsScoringFunction"""
819  return _IMP_core._object_cast_to_RestraintsScoringFunction(o)
820 
821 _object_types.append("RigidBodyDistancePairScore")
822 
823 
824 def _object_cast_to_RigidBodyDistancePairScore(o):
825  r"""_object_cast_to_RigidBodyDistancePairScore(Object o) -> RigidBodyDistancePairScore"""
826  return _IMP_core._object_cast_to_RigidBodyDistancePairScore(o)
827 
828 _object_types.append("RigidBodyAnglePairScore")
829 
830 
831 def _object_cast_to_RigidBodyAnglePairScore(o):
832  r"""_object_cast_to_RigidBodyAnglePairScore(Object o) -> RigidBodyAnglePairScore"""
833  return _IMP_core._object_cast_to_RigidBodyAnglePairScore(o)
834 
835 _object_types.append("RigidBodyMover")
836 
837 
838 def _object_cast_to_RigidBodyMover(o):
839  r"""_object_cast_to_RigidBodyMover(Object o) -> RigidBodyMover"""
840  return _IMP_core._object_cast_to_RigidBodyMover(o)
841 
842 _object_types.append("RigidBodyTunneler")
843 
844 
845 def _object_cast_to_RigidBodyTunneler(o):
846  r"""_object_cast_to_RigidBodyTunneler(Object o) -> RigidBodyTunneler"""
847  return _IMP_core._object_cast_to_RigidBodyTunneler(o)
848 
849 _object_types.append("RigidBodyUmbrella")
850 
851 
852 def _object_cast_to_RigidBodyUmbrella(o):
853  r"""_object_cast_to_RigidBodyUmbrella(Object o) -> RigidBodyUmbrella"""
854  return _IMP_core._object_cast_to_RigidBodyUmbrella(o)
855 
856 _object_types.append("RigidClosePairsFinder")
857 
858 
859 def _object_cast_to_RigidClosePairsFinder(o):
860  r"""_object_cast_to_RigidClosePairsFinder(Object o) -> RigidClosePairsFinder"""
861  return _IMP_core._object_cast_to_RigidClosePairsFinder(o)
862 
863 _object_types.append("RigidMembersRefiner")
864 
865 
866 def _object_cast_to_RigidMembersRefiner(o):
867  r"""_object_cast_to_RigidMembersRefiner(Object o) -> RigidMembersRefiner"""
868  return _IMP_core._object_cast_to_RigidMembersRefiner(o)
869 
870 _object_types.append("SingletonConstraint")
871 
872 
873 def _object_cast_to_SingletonConstraint(o):
874  r"""_object_cast_to_SingletonConstraint(Object o) -> SingletonConstraint"""
875  return _IMP_core._object_cast_to_SingletonConstraint(o)
876 
877 _object_types.append("SingletonRestraint")
878 
879 
880 def _object_cast_to_SingletonRestraint(o):
881  r"""_object_cast_to_SingletonRestraint(Object o) -> SingletonRestraint"""
882  return _IMP_core._object_cast_to_SingletonRestraint(o)
883 
884 _object_types.append("SoftSpherePairScore")
885 
886 
887 def _object_cast_to_SoftSpherePairScore(o):
888  r"""_object_cast_to_SoftSpherePairScore(Object o) -> SoftSpherePairScore"""
889  return _IMP_core._object_cast_to_SoftSpherePairScore(o)
890 
891 _object_types.append("SphereDistancePairScore")
892 
893 
894 def _object_cast_to_SphereDistancePairScore(o):
895  r"""_object_cast_to_SphereDistancePairScore(Object o) -> SphereDistancePairScore"""
896  return _IMP_core._object_cast_to_SphereDistancePairScore(o)
897 
898 _object_types.append("SphereDistanceToSingletonScore")
899 
900 
901 def _object_cast_to_SphereDistanceToSingletonScore(o):
902  r"""_object_cast_to_SphereDistanceToSingletonScore(Object o) -> SphereDistanceToSingletonScore"""
903  return _IMP_core._object_cast_to_SphereDistanceToSingletonScore(o)
904 
905 _object_types.append("SoftSubSurfacePairScore")
906 
907 
908 def _object_cast_to_SoftSubSurfacePairScore(o):
909  r"""_object_cast_to_SoftSubSurfacePairScore(Object o) -> SoftSubSurfacePairScore"""
910  return _IMP_core._object_cast_to_SoftSubSurfacePairScore(o)
911 
912 _object_types.append("SoftSuperSurfacePairScore")
913 
914 
915 def _object_cast_to_SoftSuperSurfacePairScore(o):
916  r"""_object_cast_to_SoftSuperSurfacePairScore(Object o) -> SoftSuperSurfacePairScore"""
917  return _IMP_core._object_cast_to_SoftSuperSurfacePairScore(o)
918 
919 _object_types.append("SurfaceDistancePairScore")
920 
921 
922 def _object_cast_to_SurfaceDistancePairScore(o):
923  r"""_object_cast_to_SurfaceDistancePairScore(Object o) -> SurfaceDistancePairScore"""
924  return _IMP_core._object_cast_to_SurfaceDistancePairScore(o)
925 
926 _object_types.append("SurfaceHeightPairScore")
927 
928 
929 def _object_cast_to_SurfaceHeightPairScore(o):
930  r"""_object_cast_to_SurfaceHeightPairScore(Object o) -> SurfaceHeightPairScore"""
931  return _IMP_core._object_cast_to_SurfaceHeightPairScore(o)
932 
933 _object_types.append("SurfaceDepthPairScore")
934 
935 
936 def _object_cast_to_SurfaceDepthPairScore(o):
937  r"""_object_cast_to_SurfaceDepthPairScore(Object o) -> SurfaceDepthPairScore"""
938  return _IMP_core._object_cast_to_SurfaceDepthPairScore(o)
939 
940 _object_types.append("SurfaceTetheredChain")
941 
942 
943 def _object_cast_to_SurfaceTetheredChain(o):
944  r"""_object_cast_to_SurfaceTetheredChain(Object o) -> SurfaceTetheredChain"""
945  return _IMP_core._object_cast_to_SurfaceTetheredChain(o)
946 
947 _object_types.append("SurfaceSymmetryConstraint")
948 
949 
950 def _object_cast_to_SurfaceSymmetryConstraint(o):
951  r"""_object_cast_to_SurfaceSymmetryConstraint(Object o) -> SurfaceSymmetryConstraint"""
952  return _IMP_core._object_cast_to_SurfaceSymmetryConstraint(o)
953 
954 _object_types.append("SteepestDescent")
955 
956 
957 def _object_cast_to_SteepestDescent(o):
958  r"""_object_cast_to_SteepestDescent(Object o) -> SteepestDescent"""
959  return _IMP_core._object_cast_to_SteepestDescent(o)
960 
961 _object_types.append("TableRefiner")
962 
963 
964 def _object_cast_to_TableRefiner(o):
965  r"""_object_cast_to_TableRefiner(Object o) -> TableRefiner"""
966  return _IMP_core._object_cast_to_TableRefiner(o)
967 
968 _object_types.append("Transform")
969 
970 
971 def _object_cast_to_Transform(o):
972  r"""_object_cast_to_Transform(Object o) -> Transform"""
973  return _IMP_core._object_cast_to_Transform(o)
974 
975 _object_types.append("TransformationAndReflectionSymmetry")
976 
977 
978 def _object_cast_to_TransformationAndReflectionSymmetry(o):
979  r"""_object_cast_to_TransformationAndReflectionSymmetry(Object o) -> TransformationAndReflectionSymmetry"""
980  return _IMP_core._object_cast_to_TransformationAndReflectionSymmetry(o)
981 
982 _object_types.append("TransformationSymmetry")
983 
984 
985 def _object_cast_to_TransformationSymmetry(o):
986  r"""_object_cast_to_TransformationSymmetry(Object o) -> TransformationSymmetry"""
987  return _IMP_core._object_cast_to_TransformationSymmetry(o)
988 
989 _object_types.append("TransformationSymmetryMover")
990 
991 
992 def _object_cast_to_TransformationSymmetryMover(o):
993  r"""_object_cast_to_TransformationSymmetryMover(Object o) -> TransformationSymmetryMover"""
994  return _IMP_core._object_cast_to_TransformationSymmetryMover(o)
995 
996 _object_types.append("TransformedDistancePairScore")
997 
998 
999 def _object_cast_to_TransformedDistancePairScore(o):
1000  r"""_object_cast_to_TransformedDistancePairScore(Object o) -> TransformedDistancePairScore"""
1001  return _IMP_core._object_cast_to_TransformedDistancePairScore(o)
1002 
1003 _object_types.append("TripletConstraint")
1004 
1005 
1006 def _object_cast_to_TripletConstraint(o):
1007  r"""_object_cast_to_TripletConstraint(Object o) -> TripletConstraint"""
1008  return _IMP_core._object_cast_to_TripletConstraint(o)
1009 
1010 _object_types.append("TripletRestraint")
1011 
1012 
1013 def _object_cast_to_TripletRestraint(o):
1014  r"""_object_cast_to_TripletRestraint(Object o) -> TripletRestraint"""
1015  return _IMP_core._object_cast_to_TripletRestraint(o)
1016 
1017 _object_types.append("TypedPairScore")
1018 
1019 
1020 def _object_cast_to_TypedPairScore(o):
1021  r"""_object_cast_to_TypedPairScore(Object o) -> TypedPairScore"""
1022  return _IMP_core._object_cast_to_TypedPairScore(o)
1023 
1024 _object_types.append("VolumeRestraint")
1025 
1026 
1027 def _object_cast_to_VolumeRestraint(o):
1028  r"""_object_cast_to_VolumeRestraint(Object o) -> VolumeRestraint"""
1029  return _IMP_core._object_cast_to_VolumeRestraint(o)
1030 
1031 _object_types.append("WeightedSphereDistancePairScore")
1032 
1033 
1034 def _object_cast_to_WeightedSphereDistancePairScore(o):
1035  r"""_object_cast_to_WeightedSphereDistancePairScore(Object o) -> WeightedSphereDistancePairScore"""
1036  return _IMP_core._object_cast_to_WeightedSphereDistancePairScore(o)
1037 
1038 _object_types.append("MoveStatisticsScoreState")
1039 
1040 
1041 def _object_cast_to_MoveStatisticsScoreState(o):
1042  r"""_object_cast_to_MoveStatisticsScoreState(Object o) -> MoveStatisticsScoreState"""
1043  return _IMP_core._object_cast_to_MoveStatisticsScoreState(o)
1044 
1045 _object_types.append("MinimumRestraint")
1046 
1047 
1048 def _object_cast_to_MinimumRestraint(o):
1049  r"""_object_cast_to_MinimumRestraint(Object o) -> MinimumRestraint"""
1050  return _IMP_core._object_cast_to_MinimumRestraint(o)
1051 
1052 _object_types.append("WriteRestraintScoresOptimizerState")
1053 
1054 
1055 def _object_cast_to_WriteRestraintScoresOptimizerState(o):
1056  r"""_object_cast_to_WriteRestraintScoresOptimizerState(Object o) -> WriteRestraintScoresOptimizerState"""
1057  return _IMP_core._object_cast_to_WriteRestraintScoresOptimizerState(o)
1058 
1059 _object_types.append("LateralSurfaceConstraint")
1060 
1061 
1062 def _object_cast_to_LateralSurfaceConstraint(o):
1063  r"""_object_cast_to_LateralSurfaceConstraint(Object o) -> LateralSurfaceConstraint"""
1064  return _IMP_core._object_cast_to_LateralSurfaceConstraint(o)
1065 
1066 _object_types.append("ConstantSingletonPredicate")
1067 
1068 
1069 def _object_cast_to_ConstantSingletonPredicate(o):
1070  r"""_object_cast_to_ConstantSingletonPredicate(Object o) -> ConstantSingletonPredicate"""
1071  return _IMP_core._object_cast_to_ConstantSingletonPredicate(o)
1072 
1073 _object_types.append("ConstantPairPredicate")
1074 
1075 
1076 def _object_cast_to_ConstantPairPredicate(o):
1077  r"""_object_cast_to_ConstantPairPredicate(Object o) -> ConstantPairPredicate"""
1078  return _IMP_core._object_cast_to_ConstantPairPredicate(o)
1079 
1080 _object_types.append("ConstantTripletPredicate")
1081 
1082 
1083 def _object_cast_to_ConstantTripletPredicate(o):
1084  r"""_object_cast_to_ConstantTripletPredicate(Object o) -> ConstantTripletPredicate"""
1085  return _IMP_core._object_cast_to_ConstantTripletPredicate(o)
1086 
1087 _object_types.append("ConstantQuadPredicate")
1088 
1089 
1090 def _object_cast_to_ConstantQuadPredicate(o):
1091  r"""_object_cast_to_ConstantQuadPredicate(Object o) -> ConstantQuadPredicate"""
1092  return _IMP_core._object_cast_to_ConstantQuadPredicate(o)
1093 
1094 _object_types.append("CoinFlipSingletonPredicate")
1095 
1096 
1097 def _object_cast_to_CoinFlipSingletonPredicate(o):
1098  r"""_object_cast_to_CoinFlipSingletonPredicate(Object o) -> CoinFlipSingletonPredicate"""
1099  return _IMP_core._object_cast_to_CoinFlipSingletonPredicate(o)
1100 
1101 _object_types.append("CoinFlipPairPredicate")
1102 
1103 
1104 def _object_cast_to_CoinFlipPairPredicate(o):
1105  r"""_object_cast_to_CoinFlipPairPredicate(Object o) -> CoinFlipPairPredicate"""
1106  return _IMP_core._object_cast_to_CoinFlipPairPredicate(o)
1107 
1108 _object_types.append("CoinFlipTripletPredicate")
1109 
1110 
1111 def _object_cast_to_CoinFlipTripletPredicate(o):
1112  r"""_object_cast_to_CoinFlipTripletPredicate(Object o) -> CoinFlipTripletPredicate"""
1113  return _IMP_core._object_cast_to_CoinFlipTripletPredicate(o)
1114 
1115 _object_types.append("CoinFlipQuadPredicate")
1116 
1117 
1118 def _object_cast_to_CoinFlipQuadPredicate(o):
1119  r"""_object_cast_to_CoinFlipQuadPredicate(Object o) -> CoinFlipQuadPredicate"""
1120  return _IMP_core._object_cast_to_CoinFlipQuadPredicate(o)
1121 
1122 _object_types.append("UnorderedTypeSingletonPredicate")
1123 
1124 
1125 def _object_cast_to_UnorderedTypeSingletonPredicate(o):
1126  r"""_object_cast_to_UnorderedTypeSingletonPredicate(Object o) -> UnorderedTypeSingletonPredicate"""
1127  return _IMP_core._object_cast_to_UnorderedTypeSingletonPredicate(o)
1128 
1129 _object_types.append("UnorderedTypePairPredicate")
1130 
1131 
1132 def _object_cast_to_UnorderedTypePairPredicate(o):
1133  r"""_object_cast_to_UnorderedTypePairPredicate(Object o) -> UnorderedTypePairPredicate"""
1134  return _IMP_core._object_cast_to_UnorderedTypePairPredicate(o)
1135 
1136 _object_types.append("UnorderedTypeTripletPredicate")
1137 
1138 
1139 def _object_cast_to_UnorderedTypeTripletPredicate(o):
1140  r"""_object_cast_to_UnorderedTypeTripletPredicate(Object o) -> UnorderedTypeTripletPredicate"""
1141  return _IMP_core._object_cast_to_UnorderedTypeTripletPredicate(o)
1142 
1143 _object_types.append("UnorderedTypeQuadPredicate")
1144 
1145 
1146 def _object_cast_to_UnorderedTypeQuadPredicate(o):
1147  r"""_object_cast_to_UnorderedTypeQuadPredicate(Object o) -> UnorderedTypeQuadPredicate"""
1148  return _IMP_core._object_cast_to_UnorderedTypeQuadPredicate(o)
1149 
1150 _object_types.append("OrderedTypeSingletonPredicate")
1151 
1152 
1153 def _object_cast_to_OrderedTypeSingletonPredicate(o):
1154  r"""_object_cast_to_OrderedTypeSingletonPredicate(Object o) -> OrderedTypeSingletonPredicate"""
1155  return _IMP_core._object_cast_to_OrderedTypeSingletonPredicate(o)
1156 
1157 _object_types.append("OrderedTypePairPredicate")
1158 
1159 
1160 def _object_cast_to_OrderedTypePairPredicate(o):
1161  r"""_object_cast_to_OrderedTypePairPredicate(Object o) -> OrderedTypePairPredicate"""
1162  return _IMP_core._object_cast_to_OrderedTypePairPredicate(o)
1163 
1164 _object_types.append("OrderedTypeTripletPredicate")
1165 
1166 
1167 def _object_cast_to_OrderedTypeTripletPredicate(o):
1168  r"""_object_cast_to_OrderedTypeTripletPredicate(Object o) -> OrderedTypeTripletPredicate"""
1169  return _IMP_core._object_cast_to_OrderedTypeTripletPredicate(o)
1170 
1171 _object_types.append("OrderedTypeQuadPredicate")
1172 
1173 
1174 def _object_cast_to_OrderedTypeQuadPredicate(o):
1175  r"""_object_cast_to_OrderedTypeQuadPredicate(Object o) -> OrderedTypeQuadPredicate"""
1176  return _IMP_core._object_cast_to_OrderedTypeQuadPredicate(o)
1177 
1178 _object_types.append("AllSameSingletonPredicate")
1179 
1180 
1181 def _object_cast_to_AllSameSingletonPredicate(o):
1182  r"""_object_cast_to_AllSameSingletonPredicate(Object o) -> AllSameSingletonPredicate"""
1183  return _IMP_core._object_cast_to_AllSameSingletonPredicate(o)
1184 
1185 _object_types.append("AllSamePairPredicate")
1186 
1187 
1188 def _object_cast_to_AllSamePairPredicate(o):
1189  r"""_object_cast_to_AllSamePairPredicate(Object o) -> AllSamePairPredicate"""
1190  return _IMP_core._object_cast_to_AllSamePairPredicate(o)
1191 
1192 _object_types.append("AllSameTripletPredicate")
1193 
1194 
1195 def _object_cast_to_AllSameTripletPredicate(o):
1196  r"""_object_cast_to_AllSameTripletPredicate(Object o) -> AllSameTripletPredicate"""
1197  return _IMP_core._object_cast_to_AllSameTripletPredicate(o)
1198 
1199 _object_types.append("AllSameQuadPredicate")
1200 
1201 
1202 def _object_cast_to_AllSameQuadPredicate(o):
1203  r"""_object_cast_to_AllSameQuadPredicate(Object o) -> AllSameQuadPredicate"""
1204  return _IMP_core._object_cast_to_AllSameQuadPredicate(o)
1205 
1206 def XYZs(l=[]):
1207  return [XYZ(x) for x in l]
1208 _plural_types.append("XYZs")
1209 
1210 
1211 _value_types.append("XYZ")
1212 
1213 
1214 def XYZRs(l=[]):
1215  return [XYZR(x) for x in l]
1216 _plural_types.append("XYZRs")
1217 
1218 
1219 _value_types.append("XYZR")
1220 
1221 
1222 def RigidBodies(l=[]):
1223  return [RigidBody(x) for x in l]
1224 _plural_types.append("RigidBodies")
1225 
1226 
1227 _value_types.append("RigidBody")
1228 
1229 
1230 def RigidBodyMembers(l=[]):
1231  return [RigidBodyMember(x) for x in l]
1232 _plural_types.append("RigidBodyMembers")
1233 
1234 
1235 _value_types.append("RigidBodyMember")
1236 
1237 
1238 def RigidMembers(l=[]):
1239  return [RigidMember(x) for x in l]
1240 _plural_types.append("RigidMembers")
1241 
1242 
1243 _value_types.append("RigidMember")
1244 
1245 
1246 def NonRigidMembers(l=[]):
1247  return [NonRigidMember(x) for x in l]
1248 _plural_types.append("NonRigidMembers")
1249 
1250 
1251 _value_types.append("NonRigidMember")
1252 
1253 
1254 def Centroids(l=[]):
1255  return [Centroid(x) for x in l]
1256 _plural_types.append("Centroids")
1257 
1258 
1259 _value_types.append("Centroid")
1260 
1261 
1262 def Covers(l=[]):
1263  return [Cover(x) for x in l]
1264 _plural_types.append("Covers")
1265 
1266 
1267 _value_types.append("Cover")
1268 
1269 
1270 def References(l=[]):
1271  return [Reference(x) for x in l]
1272 _plural_types.append("References")
1273 
1274 
1275 _value_types.append("Reference")
1276 
1277 
1278 ParticleTypes=list
1279 _plural_types.append("ParticleTypes")
1280 _value_types.append("ParticleType")
1281 
1282 
1283 def Typeds(l=[]):
1284  return [Typed(x) for x in l]
1285 _plural_types.append("Typeds")
1286 
1287 
1288 _value_types.append("Typed")
1289 
1290 
1291 def GenericHierarchies(l=[]):
1292  return [Hierarchy(x) for x in l]
1293 _plural_types.append("GenericHierarchies")
1294 
1295 
1296 _value_types.append("Hierarchy")
1297 
1298 
1299 def Gaussians(l=[]):
1300  return [Gaussian(x) for x in l]
1301 _plural_types.append("Gaussians")
1302 
1303 
1304 _value_types.append("Gaussian")
1305 
1306 
1307 def Directions(l=[]):
1308  return [Direction(x) for x in l]
1309 _plural_types.append("Directions")
1310 
1311 
1312 _value_types.append("Direction")
1313 
1314 
1315 def DirectionAngles(l=[]):
1316  return [DirectionAngle(x) for x in l]
1317 _plural_types.append("DirectionAngles")
1318 
1319 
1320 _value_types.append("DirectionAngle")
1321 
1322 
1323 def Surfaces(l=[]):
1324  return [Surface(x) for x in l]
1325 _plural_types.append("Surfaces")
1326 
1327 
1328 _value_types.append("Surface")
1329 
1330 
1331 def Provenances(l=[]):
1332  return [Provenance(x) for x in l]
1333 _plural_types.append("Provenances")
1334 
1335 
1336 _value_types.append("Provenance")
1337 
1338 
1339 def StructureProvenances(l=[]):
1340  return [StructureProvenance(x) for x in l]
1341 _plural_types.append("StructureProvenances")
1342 
1343 
1344 _value_types.append("StructureProvenance")
1345 
1346 
1347 def SampleProvenances(l=[]):
1348  return [SampleProvenance(x) for x in l]
1349 _plural_types.append("SampleProvenances")
1350 
1351 
1352 _value_types.append("SampleProvenance")
1353 
1354 
1355 def ClusterProvenances(l=[]):
1356  return [ClusterProvenance(x) for x in l]
1357 _plural_types.append("ClusterProvenances")
1358 
1359 
1360 _value_types.append("ClusterProvenance")
1361 
1362 
1363 def CombineProvenances(l=[]):
1364  return [CombineProvenance(x) for x in l]
1365 _plural_types.append("CombineProvenances")
1366 
1367 
1368 _value_types.append("CombineProvenance")
1369 
1370 
1371 def FilterProvenances(l=[]):
1372  return [FilterProvenance(x) for x in l]
1373 _plural_types.append("FilterProvenances")
1374 
1375 
1376 _value_types.append("FilterProvenance")
1377 
1378 
1379 def ScriptProvenances(l=[]):
1380  return [ScriptProvenance(x) for x in l]
1381 _plural_types.append("ScriptProvenances")
1382 
1383 
1384 _value_types.append("ScriptProvenance")
1385 
1386 
1387 def SoftwareProvenances(l=[]):
1388  return [SoftwareProvenance(x) for x in l]
1389 _plural_types.append("SoftwareProvenances")
1390 
1391 
1392 _value_types.append("SoftwareProvenance")
1393 
1394 
1395 def Provenanceds(l=[]):
1396  return [Provenanced(x) for x in l]
1397 _plural_types.append("Provenanceds")
1398 
1399 
1400 _value_types.append("Provenanced")
1401 
1402 
1403 HierarchyCounters=list
1404 _plural_types.append("HierarchyCounters")
1405 _value_types.append("HierarchyCounter")
1406 
1407 
1408 HierarchyTraitsList=list
1409 _plural_types.append("HierarchyTraitsList")
1410 _value_types.append("HierarchyTraits")
1411 
1412 
1413 _object_types.append("TruncatedHarmonicBound")
1414 
1415 
1416 def _object_cast_to_TruncatedHarmonicBound(o):
1417  r"""_object_cast_to_TruncatedHarmonicBound(Object o) -> TruncatedHarmonicBound"""
1418  return _IMP_core._object_cast_to_TruncatedHarmonicBound(o)
1419 
1420 _object_types.append("TruncatedHarmonicLowerBound")
1421 
1422 
1423 def _object_cast_to_TruncatedHarmonicLowerBound(o):
1424  r"""_object_cast_to_TruncatedHarmonicLowerBound(Object o) -> TruncatedHarmonicLowerBound"""
1425  return _IMP_core._object_cast_to_TruncatedHarmonicLowerBound(o)
1426 
1427 _object_types.append("TruncatedHarmonicUpperBound")
1428 
1429 
1430 def _object_cast_to_TruncatedHarmonicUpperBound(o):
1431  r"""_object_cast_to_TruncatedHarmonicUpperBound(Object o) -> TruncatedHarmonicUpperBound"""
1432  return _IMP_core._object_cast_to_TruncatedHarmonicUpperBound(o)
1433 
1434 _object_types.append("HarmonicDistancePairScore")
1435 
1436 
1437 def _object_cast_to_HarmonicDistancePairScore(o):
1438  r"""_object_cast_to_HarmonicDistancePairScore(Object o) -> HarmonicDistancePairScore"""
1439  return _IMP_core._object_cast_to_HarmonicDistancePairScore(o)
1440 
1441 _object_types.append("DistancePairScore")
1442 
1443 
1444 def _object_cast_to_DistancePairScore(o):
1445  r"""_object_cast_to_DistancePairScore(Object o) -> DistancePairScore"""
1446  return _IMP_core._object_cast_to_DistancePairScore(o)
1447 
1448 _object_types.append("XYZRGeometry")
1449 
1450 
1451 def _object_cast_to_XYZRGeometry(o):
1452  r"""_object_cast_to_XYZRGeometry(Object o) -> XYZRGeometry"""
1453  return _IMP_core._object_cast_to_XYZRGeometry(o)
1454 
1455 _object_types.append("XYZRsGeometry")
1456 
1457 
1458 def _object_cast_to_XYZRsGeometry(o):
1459  r"""_object_cast_to_XYZRsGeometry(Object o) -> XYZRsGeometry"""
1460  return _IMP_core._object_cast_to_XYZRsGeometry(o)
1461 
1462 _object_types.append("XYZDerivativeGeometry")
1463 
1464 
1465 def _object_cast_to_XYZDerivativeGeometry(o):
1466  r"""_object_cast_to_XYZDerivativeGeometry(Object o) -> XYZDerivativeGeometry"""
1467  return _IMP_core._object_cast_to_XYZDerivativeGeometry(o)
1468 
1469 _object_types.append("XYZDerivativesGeometry")
1470 
1471 
1472 def _object_cast_to_XYZDerivativesGeometry(o):
1473  r"""_object_cast_to_XYZDerivativesGeometry(Object o) -> XYZDerivativesGeometry"""
1474  return _IMP_core._object_cast_to_XYZDerivativesGeometry(o)
1475 
1476 _object_types.append("RigidBodyDerivativeGeometry")
1477 
1478 
1479 def _object_cast_to_RigidBodyDerivativeGeometry(o):
1480  r"""_object_cast_to_RigidBodyDerivativeGeometry(Object o) -> RigidBodyDerivativeGeometry"""
1481  return _IMP_core._object_cast_to_RigidBodyDerivativeGeometry(o)
1482 
1483 _object_types.append("RigidBodyDerivativesGeometry")
1484 
1485 
1486 def _object_cast_to_RigidBodyDerivativesGeometry(o):
1487  r"""_object_cast_to_RigidBodyDerivativesGeometry(Object o) -> RigidBodyDerivativesGeometry"""
1488  return _IMP_core._object_cast_to_RigidBodyDerivativesGeometry(o)
1489 
1490 _object_types.append("RigidBodyHierarchyGeometry")
1491 
1492 
1493 def _object_cast_to_RigidBodyHierarchyGeometry(o):
1494  r"""_object_cast_to_RigidBodyHierarchyGeometry(Object o) -> RigidBodyHierarchyGeometry"""
1495  return _IMP_core._object_cast_to_RigidBodyHierarchyGeometry(o)
1496 
1497 _object_types.append("RigidBodyFrameGeometry")
1498 
1499 
1500 def _object_cast_to_RigidBodyFrameGeometry(o):
1501  r"""_object_cast_to_RigidBodyFrameGeometry(Object o) -> RigidBodyFrameGeometry"""
1502  return _IMP_core._object_cast_to_RigidBodyFrameGeometry(o)
1503 
1504 _object_types.append("RigidBodyFramesGeometry")
1505 
1506 
1507 def _object_cast_to_RigidBodyFramesGeometry(o):
1508  r"""_object_cast_to_RigidBodyFramesGeometry(Object o) -> RigidBodyFramesGeometry"""
1509  return _IMP_core._object_cast_to_RigidBodyFramesGeometry(o)
1510 
1511 _object_types.append("RigidBodyTorque")
1512 
1513 
1514 def _object_cast_to_RigidBodyTorque(o):
1515  r"""_object_cast_to_RigidBodyTorque(Object o) -> RigidBodyTorque"""
1516  return _IMP_core._object_cast_to_RigidBodyTorque(o)
1517 
1518 _object_types.append("EdgePairGeometry")
1519 
1520 
1521 def _object_cast_to_EdgePairGeometry(o):
1522  r"""_object_cast_to_EdgePairGeometry(Object o) -> EdgePairGeometry"""
1523  return _IMP_core._object_cast_to_EdgePairGeometry(o)
1524 
1525 _object_types.append("EdgePairsGeometry")
1526 
1527 
1528 def _object_cast_to_EdgePairsGeometry(o):
1529  r"""_object_cast_to_EdgePairsGeometry(Object o) -> EdgePairsGeometry"""
1530  return _IMP_core._object_cast_to_EdgePairsGeometry(o)
1531 
1532 _object_types.append("SurfaceGeometry")
1533 
1534 
1535 def _object_cast_to_SurfaceGeometry(o):
1536  r"""_object_cast_to_SurfaceGeometry(Object o) -> SurfaceGeometry"""
1537  return _IMP_core._object_cast_to_SurfaceGeometry(o)
1538 
1539 _object_types.append("SurfaceGeometryConstraint")
1540 
1541 
1542 def _object_cast_to_SurfaceGeometryConstraint(o):
1543  r"""_object_cast_to_SurfaceGeometryConstraint(Object o) -> SurfaceGeometryConstraint"""
1544  return _IMP_core._object_cast_to_SurfaceGeometryConstraint(o)
1545 
1546 _object_types.append("AttributeSingletonPredicate")
1547 
1548 
1549 def _object_cast_to_AttributeSingletonPredicate(o):
1550  r"""_object_cast_to_AttributeSingletonPredicate(Object o) -> AttributeSingletonPredicate"""
1551  return _IMP_core._object_cast_to_AttributeSingletonPredicate(o)
1552 
1553 _object_types.append("InBoundingBox3DSingletonPredicate")
1554 
1555 
1556 def _object_cast_to_InBoundingBox3DSingletonPredicate(o):
1557  r"""_object_cast_to_InBoundingBox3DSingletonPredicate(Object o) -> InBoundingBox3DSingletonPredicate"""
1558  return _IMP_core._object_cast_to_InBoundingBox3DSingletonPredicate(o)
1559 
1560 _object_types.append("IsCollisionPairPredicate")
1561 
1562 
1563 def _object_cast_to_IsCollisionPairPredicate(o):
1564  r"""_object_cast_to_IsCollisionPairPredicate(Object o) -> IsCollisionPairPredicate"""
1565  return _IMP_core._object_cast_to_IsCollisionPairPredicate(o)
1566 
1567 BinormalTermList=list
1568 _plural_types.append("BinormalTermList")
1569 _value_types.append("BinormalTerm")
1570 
1571 
1572 _object_types.append("MultipleBinormalRestraint")
1573 
1574 
1575 def _object_cast_to_MultipleBinormalRestraint(o):
1576  r"""_object_cast_to_MultipleBinormalRestraint(Object o) -> MultipleBinormalRestraint"""
1577  return _IMP_core._object_cast_to_MultipleBinormalRestraint(o)
1578 class ClosePairsFinder(IMP._ParticleInputs, IMP.Object):
1579  r"""Proxy of C++ IMP::core::ClosePairsFinder class."""
1580 
1581  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1582 
1583  def __init__(self, *args, **kwargs):
1584  raise AttributeError("No constructor defined - class is abstract")
1585  __swig_destroy__ = _IMP_core.delete_ClosePairsFinder
1586 
1587  def get_close_pairs(self, *args):
1588  r"""
1589  get_close_pairs(ClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
1590  get_close_pairs(ClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
1591  get_close_pairs(ClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
1592  get_close_pairs(ClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
1593  """
1594  return _IMP_core.ClosePairsFinder_get_close_pairs(self, *args)
1595 
1596  def set_distance(self, d):
1597  r"""set_distance(ClosePairsFinder self, double d)"""
1598  return _IMP_core.ClosePairsFinder_set_distance(self, d)
1599 
1600  def get_distance(self):
1601  r"""get_distance(ClosePairsFinder self) -> double"""
1602  return _IMP_core.ClosePairsFinder_get_distance(self)
1603  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)
1604  def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
1605  def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
1606  pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc="List of ##ucnames")
1607 
1608  def remove_pair_filter(self, d):
1609  r"""remove_pair_filter(ClosePairsFinder self, PairPredicate d)"""
1610  return _IMP_core.ClosePairsFinder_remove_pair_filter(self, d)
1611 
1612  def _python_index_pair_filter(self, d, start, stop):
1613  r"""_python_index_pair_filter(ClosePairsFinder self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
1614  return _IMP_core.ClosePairsFinder__python_index_pair_filter(self, d, start, stop)
1615 
1616  def remove_pair_filters(self, d):
1617  r"""remove_pair_filters(ClosePairsFinder self, IMP::PairPredicates const & d)"""
1618  return _IMP_core.ClosePairsFinder_remove_pair_filters(self, d)
1619 
1620  def set_pair_filters(self, ps):
1621  r"""set_pair_filters(ClosePairsFinder self, IMP::PairPredicates const & ps)"""
1622  return _IMP_core.ClosePairsFinder_set_pair_filters(self, ps)
1623 
1624  def set_pair_filters_order(self, objs):
1625  r"""set_pair_filters_order(ClosePairsFinder self, IMP::PairPredicates const & objs)"""
1626  return _IMP_core.ClosePairsFinder_set_pair_filters_order(self, objs)
1627 
1628  def add_pair_filter(self, obj):
1629  r"""add_pair_filter(ClosePairsFinder self, PairPredicate obj) -> unsigned int"""
1630  return _IMP_core.ClosePairsFinder_add_pair_filter(self, obj)
1631 
1632  def add_pair_filters(self, objs):
1633  r"""add_pair_filters(ClosePairsFinder self, IMP::PairPredicates const & objs)"""
1634  return _IMP_core.ClosePairsFinder_add_pair_filters(self, objs)
1635 
1636  def clear_pair_filters(self):
1637  r"""clear_pair_filters(ClosePairsFinder self)"""
1638  return _IMP_core.ClosePairsFinder_clear_pair_filters(self)
1639 
1640  def get_number_of_pair_filters(self):
1641  r"""get_number_of_pair_filters(ClosePairsFinder self) -> unsigned int"""
1642  return _IMP_core.ClosePairsFinder_get_number_of_pair_filters(self)
1643 
1644  def get_has_pair_filters(self):
1645  r"""get_has_pair_filters(ClosePairsFinder self) -> bool"""
1646  return _IMP_core.ClosePairsFinder_get_has_pair_filters(self)
1647 
1648  def get_pair_filter(self, i):
1649  r"""get_pair_filter(ClosePairsFinder self, unsigned int i) -> PairPredicate"""
1650  return _IMP_core.ClosePairsFinder_get_pair_filter(self, i)
1651 
1652  def get_pair_filters(self):
1653  r"""get_pair_filters(ClosePairsFinder self) -> IMP::PairPredicates"""
1654  return _IMP_core.ClosePairsFinder_get_pair_filters(self)
1655 
1656  def erase_pair_filter(self, i):
1657  r"""erase_pair_filter(ClosePairsFinder self, unsigned int i)"""
1658  return _IMP_core.ClosePairsFinder_erase_pair_filter(self, i)
1659 
1660  def reserve_pair_filters(self, sz):
1661  r"""reserve_pair_filters(ClosePairsFinder self, unsigned int sz)"""
1662  return _IMP_core.ClosePairsFinder_reserve_pair_filters(self, sz)
1663 
1664  def __str__(self):
1665  r"""__str__(ClosePairsFinder self) -> std::string"""
1666  return _IMP_core.ClosePairsFinder___str__(self)
1667 
1668  def __repr__(self):
1669  r"""__repr__(ClosePairsFinder self) -> std::string"""
1670  return _IMP_core.ClosePairsFinder___repr__(self)
1671 
1672  @staticmethod
1673  def get_from(o):
1674  return _object_cast_to_ClosePairsFinder(o)
1675 
1676 
1677 # Register ClosePairsFinder in _IMP_core:
1678 _IMP_core.ClosePairsFinder_swigregister(ClosePairsFinder)
1679 class MonteCarloMoverResult(IMP._Value):
1680  r"""Proxy of C++ IMP::core::MonteCarloMoverResult class."""
1681 
1682  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1683 
1684  def __init__(self, *args):
1685  r"""__init__(MonteCarloMoverResult self, IMP::ParticleIndexes i0=IMP::ParticleIndexes(), double i1=double()) -> MonteCarloMoverResult"""
1686  _IMP_core.MonteCarloMoverResult_swiginit(self, _IMP_core.new_MonteCarloMoverResult(*args))
1687 
1688  def __hash__(self):
1689  r"""__hash__(MonteCarloMoverResult self) -> std::size_t"""
1690  return _IMP_core.MonteCarloMoverResult___hash__(self)
1691 
1692  def show(self, *args):
1693  r"""show(MonteCarloMoverResult self, _ostream out=std::cout)"""
1694  return _IMP_core.MonteCarloMoverResult_show(self, *args)
1695 
1696  def __cmp__(self, o):
1697  r"""__cmp__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> int"""
1698  return _IMP_core.MonteCarloMoverResult___cmp__(self, o)
1699 
1700  def __eq__(self, o):
1701  r"""__eq__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1702  return _IMP_core.MonteCarloMoverResult___eq__(self, o)
1703 
1704  def __ne__(self, o):
1705  r"""__ne__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1706  return _IMP_core.MonteCarloMoverResult___ne__(self, o)
1707 
1708  def __lt__(self, o):
1709  r"""__lt__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1710  return _IMP_core.MonteCarloMoverResult___lt__(self, o)
1711 
1712  def __gt__(self, o):
1713  r"""__gt__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1714  return _IMP_core.MonteCarloMoverResult___gt__(self, o)
1715 
1716  def __ge__(self, o):
1717  r"""__ge__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1718  return _IMP_core.MonteCarloMoverResult___ge__(self, o)
1719 
1720  def __le__(self, o):
1721  r"""__le__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1722  return _IMP_core.MonteCarloMoverResult___le__(self, o)
1723 
1724  def get_moved_particles(self):
1725  r"""get_moved_particles(MonteCarloMoverResult self) -> IMP::ParticleIndexes const &"""
1726  return _IMP_core.MonteCarloMoverResult_get_moved_particles(self)
1727 
1728  def set_moved_particles(self, v):
1729  r"""set_moved_particles(MonteCarloMoverResult self, IMP::ParticleIndexes const & v)"""
1730  return _IMP_core.MonteCarloMoverResult_set_moved_particles(self, v)
1731 
1732  def get_proposal_ratio(self):
1733  r"""get_proposal_ratio(MonteCarloMoverResult self) -> double const &"""
1734  return _IMP_core.MonteCarloMoverResult_get_proposal_ratio(self)
1735 
1736  def set_proposal_ratio(self, v):
1737  r"""set_proposal_ratio(MonteCarloMoverResult self, double const & v)"""
1738  return _IMP_core.MonteCarloMoverResult_set_proposal_ratio(self, v)
1739 
1740  def __str__(self):
1741  r"""__str__(MonteCarloMoverResult self) -> std::string"""
1742  return _IMP_core.MonteCarloMoverResult___str__(self)
1743 
1744  def __repr__(self):
1745  r"""__repr__(MonteCarloMoverResult self) -> std::string"""
1746  return _IMP_core.MonteCarloMoverResult___repr__(self)
1747  __swig_destroy__ = _IMP_core.delete_MonteCarloMoverResult
1748 
1749 # Register MonteCarloMoverResult in _IMP_core:
1750 _IMP_core.MonteCarloMoverResult_swigregister(MonteCarloMoverResult)
1751 class MonteCarloMover(IMP.ModelObject):
1752  r"""Proxy of C++ IMP::core::MonteCarloMover class."""
1753 
1754  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1755 
1756  def __init__(self, *args):
1757  r"""
1758  __init__(MonteCarloMover self, Model m, std::string name) -> MonteCarloMover
1759  __init__(MonteCarloMover self) -> MonteCarloMover
1760  """
1761  if self.__class__ == MonteCarloMover:
1762  _self = None
1763  else:
1764  _self = self
1765  _IMP_core.MonteCarloMover_swiginit(self, _IMP_core.new_MonteCarloMover(_self, *args))
1766 
1767  if self.__class__ != MonteCarloMover:
1768  _director_objects.register(self)
1769 
1770 
1771 
1772 
1773  def propose(self):
1774  r"""propose(MonteCarloMover self) -> MonteCarloMoverResult"""
1775  return _IMP_core.MonteCarloMover_propose(self)
1776 
1777  def reject(self):
1778  r"""reject(MonteCarloMover self)"""
1779  return _IMP_core.MonteCarloMover_reject(self)
1780 
1781  def accept(self):
1782  r"""accept(MonteCarloMover self)"""
1783  return _IMP_core.MonteCarloMover_accept(self)
1784 
1785  def get_number_of_proposed(self):
1786  r"""get_number_of_proposed(MonteCarloMover self) -> unsigned int"""
1787  return _IMP_core.MonteCarloMover_get_number_of_proposed(self)
1788 
1789  def get_number_of_accepted(self):
1790  r"""get_number_of_accepted(MonteCarloMover self) -> unsigned int"""
1791  return _IMP_core.MonteCarloMover_get_number_of_accepted(self)
1792 
1793  def reset_statistics(self):
1794  r"""reset_statistics(MonteCarloMover self)"""
1795  return _IMP_core.MonteCarloMover_reset_statistics(self)
1796 
1797  def do_propose(self):
1798  r"""do_propose(MonteCarloMover self) -> MonteCarloMoverResult"""
1799  return _IMP_core.MonteCarloMover_do_propose(self)
1800 
1801  def do_reject(self):
1802  r"""do_reject(MonteCarloMover self)"""
1803  return _IMP_core.MonteCarloMover_do_reject(self)
1804 
1805  def do_accept(self):
1806  r"""do_accept(MonteCarloMover self)"""
1807  return _IMP_core.MonteCarloMover_do_accept(self)
1808 
1809  def do_get_outputs(self):
1810  r"""do_get_outputs(MonteCarloMover self) -> IMP::ModelObjectsTemp"""
1811  return _IMP_core.MonteCarloMover_do_get_outputs(self)
1812 
1813  def __str__(self):
1814  r"""__str__(MonteCarloMover self) -> std::string"""
1815  return _IMP_core.MonteCarloMover___str__(self)
1816 
1817  def __repr__(self):
1818  r"""__repr__(MonteCarloMover self) -> std::string"""
1819  return _IMP_core.MonteCarloMover___repr__(self)
1820 
1821  @staticmethod
1822  def get_from(o):
1823  return _object_cast_to_MonteCarloMover(o)
1824 
1825 
1826  def get_type_name(self):
1827  return self.__class__.__name__
1828  def do_show(self, out):
1829  pass
1830  def get_version_info(self):
1831  if"IMP::core" == "IMP":
1832  return VersionInfo(self.__module__,
1833  __import__(self.__module__).get_module_version())
1834  else:
1835  return IMP.VersionInfo(self.__module__,
1836  __import__(self.__module__).get_module_version())
1837  @staticmethod
1838  def get_from(o):
1839  return _object_cast_to_MonteCarloMover(o)
1840 
1841  __swig_destroy__ = _IMP_core.delete_MonteCarloMover
1842  def __disown__(self):
1843  self.this.disown()
1844  _IMP_core.disown_MonteCarloMover(self)
1845  return weakref.proxy(self)
1846 
1847  def do_destroy(self):
1848  r"""do_destroy(MonteCarloMover self)"""
1849  return _IMP_core.MonteCarloMover_do_destroy(self)
1850 
1851  def handle_set_has_required_score_states(self, arg0):
1852  r"""handle_set_has_required_score_states(MonteCarloMover self, bool arg0)"""
1853  return _IMP_core.MonteCarloMover_handle_set_has_required_score_states(self, arg0)
1854 
1855  def do_get_inputs(self):
1856  r"""do_get_inputs(MonteCarloMover self) -> IMP::ModelObjectsTemp"""
1857  return _IMP_core.MonteCarloMover_do_get_inputs(self)
1858 
1859  def do_get_interactions(self):
1860  r"""do_get_interactions(MonteCarloMover self) -> IMP::ModelObjectsTemps"""
1861  return _IMP_core.MonteCarloMover_do_get_interactions(self)
1862 
1863 # Register MonteCarloMover in _IMP_core:
1864 _IMP_core.MonteCarloMover_swigregister(MonteCarloMover)
1865 class XYZ(IMP.Decorator):
1866  r"""Proxy of C++ IMP::core::XYZ class."""
1867 
1868  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1869 
1870  @staticmethod
1871  def get_coordinate_key(i):
1872  r"""get_coordinate_key(unsigned int i) -> FloatKey"""
1873  return _IMP_core.XYZ_get_coordinate_key(i)
1874 
1875  def __init__(self, *args):
1876  r"""
1877  __init__(XYZ self) -> XYZ
1878  __init__(XYZ self, Model m, ParticleIndex id) -> XYZ
1879  __init__(XYZ self, _ParticleAdaptor d) -> XYZ
1880  """
1881  _IMP_core.XYZ_swiginit(self, _IMP_core.new_XYZ(*args))
1882 
1883  def show(self, *args):
1884  r"""show(XYZ self, _ostream out=std::cout)"""
1885  return _IMP_core.XYZ_show(self, *args)
1886 
1887  @staticmethod
1888  def setup_particle(*args):
1889  r"""
1890  setup_particle(Model m, ParticleIndex pi) -> XYZ
1891  setup_particle(_ParticleAdaptor pa) -> XYZ
1892  setup_particle(Model m, ParticleIndex pi, Vector3D v) -> XYZ
1893  setup_particle(_ParticleAdaptor pa, Vector3D v) -> XYZ
1894  """
1895  return _IMP_core.XYZ_setup_particle(*args)
1896 
1897  def get_x(self):
1898  r"""get_x(XYZ self) -> IMP::Float"""
1899  return _IMP_core.XYZ_get_x(self)
1900 
1901  def set_x(self, t):
1902  r"""set_x(XYZ self, IMP::Float t)"""
1903  return _IMP_core.XYZ_set_x(self, t)
1904 
1905  def get_y(self):
1906  r"""get_y(XYZ self) -> IMP::Float"""
1907  return _IMP_core.XYZ_get_y(self)
1908 
1909  def set_y(self, t):
1910  r"""set_y(XYZ self, IMP::Float t)"""
1911  return _IMP_core.XYZ_set_y(self, t)
1912 
1913  def get_z(self):
1914  r"""get_z(XYZ self) -> IMP::Float"""
1915  return _IMP_core.XYZ_get_z(self)
1916 
1917  def set_z(self, t):
1918  r"""set_z(XYZ self, IMP::Float t)"""
1919  return _IMP_core.XYZ_set_z(self, t)
1920 
1921  def set_coordinate(self, i, v):
1922  r"""set_coordinate(XYZ self, unsigned int i, IMP::Float v)"""
1923  return _IMP_core.XYZ_set_coordinate(self, i, v)
1924 
1925  def set_coordinates(self, v):
1926  r"""set_coordinates(XYZ self, Vector3D v)"""
1927  return _IMP_core.XYZ_set_coordinates(self, v)
1928 
1929  def get_coordinate(self, i):
1930  r"""get_coordinate(XYZ self, int i) -> IMP::Float"""
1931  return _IMP_core.XYZ_get_coordinate(self, i)
1932 
1933  def add_to_derivatives(self, v, d):
1934  r"""add_to_derivatives(XYZ self, Vector3D v, DerivativeAccumulator d)"""
1935  return _IMP_core.XYZ_add_to_derivatives(self, v, d)
1936 
1937  def get_coordinates_are_optimized(self):
1938  r"""get_coordinates_are_optimized(XYZ self) -> bool"""
1939  return _IMP_core.XYZ_get_coordinates_are_optimized(self)
1940 
1941  def set_coordinates_are_optimized(self, tf):
1942  r"""set_coordinates_are_optimized(XYZ self, bool tf)"""
1943  return _IMP_core.XYZ_set_coordinates_are_optimized(self, tf)
1944 
1945  def get_vector_to(self, b):
1946  r"""get_vector_to(XYZ self, XYZ b) -> Vector3D"""
1947  return _IMP_core.XYZ_get_vector_to(self, b)
1948 
1949  def get_coordinates(self):
1950  r"""get_coordinates(XYZ self) -> Vector3D"""
1951  return _IMP_core.XYZ_get_coordinates(self)
1952 
1953  def get_derivatives(self):
1954  r"""get_derivatives(XYZ self) -> Vector3D"""
1955  return _IMP_core.XYZ_get_derivatives(self)
1956 
1957  @staticmethod
1958  def get_is_setup(*args):
1959  r"""
1960  get_is_setup(_ParticleAdaptor p) -> bool
1961  get_is_setup(Model m, ParticleIndex pi) -> bool
1962  """
1963  return _IMP_core.XYZ_get_is_setup(*args)
1964 
1965  @staticmethod
1966  def get_xyz_keys():
1967  r"""get_xyz_keys() -> IMP::FloatKeys const &"""
1968  return _IMP_core.XYZ_get_xyz_keys()
1969 
1970  def add_attribute(self, *args):
1971  r"""
1972  add_attribute(XYZ self, FloatKey k, IMP::Float v, bool opt)
1973  add_attribute(XYZ self, FloatKey a0, IMP::Float a1)
1974  add_attribute(XYZ self, IntKey a0, IMP::Int a1)
1975  add_attribute(XYZ self, FloatsKey a0, IMP::Floats a1)
1976  add_attribute(XYZ self, IntsKey a0, IMP::Ints a1)
1977  add_attribute(XYZ self, StringKey a0, IMP::String a1)
1978  add_attribute(XYZ self, ParticleIndexKey a0, Particle a1)
1979  add_attribute(XYZ self, ObjectKey a0, Object a1)
1980  """
1981  return _IMP_core.XYZ_add_attribute(self, *args)
1982 
1983  def get_value(self, *args):
1984  r"""
1985  get_value(XYZ self, FloatKey a0) -> IMP::Float
1986  get_value(XYZ self, IntKey a0) -> IMP::Int
1987  get_value(XYZ self, FloatsKey a0) -> IMP::Floats
1988  get_value(XYZ self, IntsKey a0) -> IMP::Ints
1989  get_value(XYZ self, StringKey a0) -> IMP::String
1990  get_value(XYZ self, ParticleIndexKey a0) -> Particle
1991  get_value(XYZ self, ObjectKey a0) -> Object
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  """
2005  return _IMP_core.XYZ_set_value(self, *args)
2006 
2007  def remove_attribute(self, *args):
2008  r"""
2009  remove_attribute(XYZ self, FloatKey a0)
2010  remove_attribute(XYZ self, IntKey a0)
2011  remove_attribute(XYZ self, FloatsKey a0)
2012  remove_attribute(XYZ self, IntsKey a0)
2013  remove_attribute(XYZ self, StringKey a0)
2014  remove_attribute(XYZ self, ParticleIndexKey a0)
2015  remove_attribute(XYZ self, ObjectKey a0)
2016  """
2017  return _IMP_core.XYZ_remove_attribute(self, *args)
2018 
2019  def has_attribute(self, *args):
2020  r"""
2021  has_attribute(XYZ self, FloatKey a0) -> bool
2022  has_attribute(XYZ self, IntKey a0) -> bool
2023  has_attribute(XYZ self, FloatsKey a0) -> bool
2024  has_attribute(XYZ self, IntsKey a0) -> bool
2025  has_attribute(XYZ self, StringKey a0) -> bool
2026  has_attribute(XYZ self, ParticleIndexKey a0) -> bool
2027  has_attribute(XYZ self, ObjectKey a0) -> bool
2028  """
2029  return _IMP_core.XYZ_has_attribute(self, *args)
2030 
2031  def get_derivative(self, *args):
2032  r"""
2033  get_derivative(XYZ self, int i) -> IMP::Float
2034  get_derivative(XYZ self, FloatKey a0) -> double
2035  """
2036  return _IMP_core.XYZ_get_derivative(self, *args)
2037 
2038  def get_name(self):
2039  r"""get_name(XYZ self) -> std::string"""
2040  return _IMP_core.XYZ_get_name(self)
2041 
2042  def clear_caches(self):
2043  r"""clear_caches(XYZ self)"""
2044  return _IMP_core.XYZ_clear_caches(self)
2045 
2046  def set_name(self, a0):
2047  r"""set_name(XYZ self, std::string a0)"""
2048  return _IMP_core.XYZ_set_name(self, a0)
2049 
2050  def set_check_level(self, a0):
2051  r"""set_check_level(XYZ self, IMP::CheckLevel a0)"""
2052  return _IMP_core.XYZ_set_check_level(self, a0)
2053 
2054  def add_to_derivative(self, *args):
2055  r"""
2056  add_to_derivative(XYZ self, int i, IMP::Float v, DerivativeAccumulator d)
2057  add_to_derivative(XYZ self, FloatKey a0, double a1, DerivativeAccumulator a2)
2058  """
2059  return _IMP_core.XYZ_add_to_derivative(self, *args)
2060 
2061  def set_is_optimized(self, a0, a1):
2062  r"""set_is_optimized(XYZ self, FloatKey a0, bool a1)"""
2063  return _IMP_core.XYZ_set_is_optimized(self, a0, a1)
2064 
2065  def get_is_optimized(self, a0):
2066  r"""get_is_optimized(XYZ self, FloatKey a0) -> bool"""
2067  return _IMP_core.XYZ_get_is_optimized(self, a0)
2068 
2069  def get_check_level(self):
2070  r"""get_check_level(XYZ self) -> IMP::CheckLevel"""
2071  return _IMP_core.XYZ_get_check_level(self)
2072 
2073  def __eq__(self, *args):
2074  r"""
2075  __eq__(XYZ self, XYZ o) -> bool
2076  __eq__(XYZ self, Particle d) -> bool
2077  """
2078  return _IMP_core.XYZ___eq__(self, *args)
2079 
2080  def __ne__(self, *args):
2081  r"""
2082  __ne__(XYZ self, XYZ o) -> bool
2083  __ne__(XYZ self, Particle d) -> bool
2084  """
2085  return _IMP_core.XYZ___ne__(self, *args)
2086 
2087  def __le__(self, *args):
2088  r"""
2089  __le__(XYZ self, XYZ o) -> bool
2090  __le__(XYZ self, Particle d) -> bool
2091  """
2092  return _IMP_core.XYZ___le__(self, *args)
2093 
2094  def __lt__(self, *args):
2095  r"""
2096  __lt__(XYZ self, XYZ o) -> bool
2097  __lt__(XYZ self, Particle d) -> bool
2098  """
2099  return _IMP_core.XYZ___lt__(self, *args)
2100 
2101  def __ge__(self, *args):
2102  r"""
2103  __ge__(XYZ self, XYZ o) -> bool
2104  __ge__(XYZ self, Particle d) -> bool
2105  """
2106  return _IMP_core.XYZ___ge__(self, *args)
2107 
2108  def __gt__(self, *args):
2109  r"""
2110  __gt__(XYZ self, XYZ o) -> bool
2111  __gt__(XYZ self, Particle d) -> bool
2112  """
2113  return _IMP_core.XYZ___gt__(self, *args)
2114 
2115  def __hash__(self):
2116  r"""__hash__(XYZ self) -> std::size_t"""
2117  return _IMP_core.XYZ___hash__(self)
2118 
2119  def __str__(self):
2120  r"""__str__(XYZ self) -> std::string"""
2121  return _IMP_core.XYZ___str__(self)
2122 
2123  def __repr__(self):
2124  r"""__repr__(XYZ self) -> std::string"""
2125  return _IMP_core.XYZ___repr__(self)
2126 
2127  def _get_as_binary(self):
2128  r"""_get_as_binary(XYZ self) -> PyObject *"""
2129  return _IMP_core.XYZ__get_as_binary(self)
2130 
2131  def _set_from_binary(self, p):
2132  r"""_set_from_binary(XYZ self, PyObject * p)"""
2133  return _IMP_core.XYZ__set_from_binary(self, p)
2134 
2135  def __getstate__(self):
2136  p = self._get_as_binary()
2137  if len(self.__dict__) > 1:
2138  d = self.__dict__.copy()
2139  del d['this']
2140  p = (d, p)
2141  return p
2142 
2143  def __setstate__(self, p):
2144  if not hasattr(self, 'this'):
2145  self.__init__()
2146  if isinstance(p, tuple):
2147  d, p = p
2148  self.__dict__.update(d)
2149  return self._set_from_binary(p)
2150 
2151  __swig_destroy__ = _IMP_core.delete_XYZ
2152 
2153 # Register XYZ in _IMP_core:
2154 _IMP_core.XYZ_swigregister(XYZ)
2155 
2156 def set_vector_geometry(d, v):
2157  r"""set_vector_geometry(XYZ d, Vector3D v)"""
2158  return _IMP_core.set_vector_geometry(d, v)
2159 
2160 def get_vector_geometry(d):
2161  r"""get_vector_geometry(XYZ d) -> Vector3D"""
2162  return _IMP_core.get_vector_geometry(d)
2163 
2164 def get_dihedral(a, b, c, d):
2165  r"""get_dihedral(XYZ a, XYZ b, XYZ c, XYZ d) -> double"""
2166  return _IMP_core.get_dihedral(a, b, c, d)
2167 class XYZR(XYZ):
2168  r"""Proxy of C++ IMP::core::XYZR class."""
2169 
2170  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2171 
2172  def __init__(self, *args):
2173  r"""
2174  __init__(XYZR self) -> XYZR
2175  __init__(XYZR self, Model m, ParticleIndex id) -> XYZR
2176  __init__(XYZR self, _ParticleAdaptor d) -> XYZR
2177  """
2178  _IMP_core.XYZR_swiginit(self, _IMP_core.new_XYZR(*args))
2179 
2180  def show(self, *args):
2181  r"""show(XYZR self, _ostream out=std::cout)"""
2182  return _IMP_core.XYZR_show(self, *args)
2183 
2184  @staticmethod
2185  def setup_particle(*args):
2186  r"""
2187  setup_particle(Model m, ParticleIndex pi) -> XYZR
2188  setup_particle(_ParticleAdaptor pa) -> XYZR
2189  setup_particle(Model m, ParticleIndex pi, IMP::Float radius) -> XYZR
2190  setup_particle(_ParticleAdaptor pa, IMP::Float radius) -> XYZR
2191  setup_particle(Model m, ParticleIndex pi, Sphere3D ball) -> XYZR
2192  setup_particle(_ParticleAdaptor pa, Sphere3D ball) -> XYZR
2193  """
2194  return _IMP_core.XYZR_setup_particle(*args)
2195 
2196  @staticmethod
2197  def get_is_setup(*args):
2198  r"""
2199  get_is_setup(_ParticleAdaptor p) -> bool
2200  get_is_setup(Model m, ParticleIndex pi) -> bool
2201  """
2202  return _IMP_core.XYZR_get_is_setup(*args)
2203 
2204  def get_radius(self):
2205  r"""get_radius(XYZR self) -> double"""
2206  return _IMP_core.XYZR_get_radius(self)
2207 
2208  def set_radius(self, r):
2209  r"""set_radius(XYZR self, double r)"""
2210  return _IMP_core.XYZR_set_radius(self, r)
2211 
2212  def get_sphere(self):
2213  r"""get_sphere(XYZR self) -> Sphere3D"""
2214  return _IMP_core.XYZR_get_sphere(self)
2215 
2216  def set_sphere(self, s):
2217  r"""set_sphere(XYZR self, Sphere3D s)"""
2218  return _IMP_core.XYZR_set_sphere(self, s)
2219 
2220  @staticmethod
2221  def get_radius_key():
2222  r"""get_radius_key() -> FloatKey"""
2223  return _IMP_core.XYZR_get_radius_key()
2224 
2225  def add_to_radius_derivative(self, v, d):
2226  r"""add_to_radius_derivative(XYZR self, double v, DerivativeAccumulator d)"""
2227  return _IMP_core.XYZR_add_to_radius_derivative(self, v, d)
2228 
2229  def add_attribute(self, *args):
2230  r"""
2231  add_attribute(XYZR self, FloatKey k, IMP::Float v, bool opt)
2232  add_attribute(XYZR self, FloatKey a0, IMP::Float a1)
2233  add_attribute(XYZR self, IntKey a0, IMP::Int a1)
2234  add_attribute(XYZR self, FloatsKey a0, IMP::Floats a1)
2235  add_attribute(XYZR self, IntsKey a0, IMP::Ints a1)
2236  add_attribute(XYZR self, StringKey a0, IMP::String a1)
2237  add_attribute(XYZR self, ParticleIndexKey a0, Particle a1)
2238  add_attribute(XYZR self, ObjectKey a0, Object a1)
2239  """
2240  return _IMP_core.XYZR_add_attribute(self, *args)
2241 
2242  def get_value(self, *args):
2243  r"""
2244  get_value(XYZR self, FloatKey a0) -> IMP::Float
2245  get_value(XYZR self, IntKey a0) -> IMP::Int
2246  get_value(XYZR self, FloatsKey a0) -> IMP::Floats
2247  get_value(XYZR self, IntsKey a0) -> IMP::Ints
2248  get_value(XYZR self, StringKey a0) -> IMP::String
2249  get_value(XYZR self, ParticleIndexKey a0) -> Particle
2250  get_value(XYZR self, ObjectKey a0) -> Object
2251  """
2252  return _IMP_core.XYZR_get_value(self, *args)
2253 
2254  def set_value(self, *args):
2255  r"""
2256  set_value(XYZR self, FloatKey a0, IMP::Float a1)
2257  set_value(XYZR self, IntKey a0, IMP::Int a1)
2258  set_value(XYZR self, FloatsKey a0, IMP::Floats a1)
2259  set_value(XYZR self, IntsKey a0, IMP::Ints a1)
2260  set_value(XYZR self, StringKey a0, IMP::String a1)
2261  set_value(XYZR self, ParticleIndexKey a0, Particle a1)
2262  set_value(XYZR self, ObjectKey a0, Object a1)
2263  """
2264  return _IMP_core.XYZR_set_value(self, *args)
2265 
2266  def remove_attribute(self, *args):
2267  r"""
2268  remove_attribute(XYZR self, FloatKey a0)
2269  remove_attribute(XYZR self, IntKey a0)
2270  remove_attribute(XYZR self, FloatsKey a0)
2271  remove_attribute(XYZR self, IntsKey a0)
2272  remove_attribute(XYZR self, StringKey a0)
2273  remove_attribute(XYZR self, ParticleIndexKey a0)
2274  remove_attribute(XYZR self, ObjectKey a0)
2275  """
2276  return _IMP_core.XYZR_remove_attribute(self, *args)
2277 
2278  def has_attribute(self, *args):
2279  r"""
2280  has_attribute(XYZR self, FloatKey a0) -> bool
2281  has_attribute(XYZR self, IntKey a0) -> bool
2282  has_attribute(XYZR self, FloatsKey a0) -> bool
2283  has_attribute(XYZR self, IntsKey a0) -> bool
2284  has_attribute(XYZR self, StringKey a0) -> bool
2285  has_attribute(XYZR self, ParticleIndexKey a0) -> bool
2286  has_attribute(XYZR self, ObjectKey a0) -> bool
2287  """
2288  return _IMP_core.XYZR_has_attribute(self, *args)
2289 
2290  def get_derivative(self, a0):
2291  r"""get_derivative(XYZR self, FloatKey a0) -> double"""
2292  return _IMP_core.XYZR_get_derivative(self, a0)
2293 
2294  def get_name(self):
2295  r"""get_name(XYZR self) -> std::string"""
2296  return _IMP_core.XYZR_get_name(self)
2297 
2298  def clear_caches(self):
2299  r"""clear_caches(XYZR self)"""
2300  return _IMP_core.XYZR_clear_caches(self)
2301 
2302  def set_name(self, a0):
2303  r"""set_name(XYZR self, std::string a0)"""
2304  return _IMP_core.XYZR_set_name(self, a0)
2305 
2306  def set_check_level(self, a0):
2307  r"""set_check_level(XYZR self, IMP::CheckLevel a0)"""
2308  return _IMP_core.XYZR_set_check_level(self, a0)
2309 
2310  def add_to_derivative(self, a0, a1, a2):
2311  r"""add_to_derivative(XYZR self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2312  return _IMP_core.XYZR_add_to_derivative(self, a0, a1, a2)
2313 
2314  def set_is_optimized(self, a0, a1):
2315  r"""set_is_optimized(XYZR self, FloatKey a0, bool a1)"""
2316  return _IMP_core.XYZR_set_is_optimized(self, a0, a1)
2317 
2318  def get_is_optimized(self, a0):
2319  r"""get_is_optimized(XYZR self, FloatKey a0) -> bool"""
2320  return _IMP_core.XYZR_get_is_optimized(self, a0)
2321 
2322  def get_check_level(self):
2323  r"""get_check_level(XYZR self) -> IMP::CheckLevel"""
2324  return _IMP_core.XYZR_get_check_level(self)
2325 
2326  def __eq__(self, *args):
2327  r"""
2328  __eq__(XYZR self, XYZR o) -> bool
2329  __eq__(XYZR self, Particle d) -> bool
2330  """
2331  return _IMP_core.XYZR___eq__(self, *args)
2332 
2333  def __ne__(self, *args):
2334  r"""
2335  __ne__(XYZR self, XYZR o) -> bool
2336  __ne__(XYZR self, Particle d) -> bool
2337  """
2338  return _IMP_core.XYZR___ne__(self, *args)
2339 
2340  def __le__(self, *args):
2341  r"""
2342  __le__(XYZR self, XYZR o) -> bool
2343  __le__(XYZR self, Particle d) -> bool
2344  """
2345  return _IMP_core.XYZR___le__(self, *args)
2346 
2347  def __lt__(self, *args):
2348  r"""
2349  __lt__(XYZR self, XYZR o) -> bool
2350  __lt__(XYZR self, Particle d) -> bool
2351  """
2352  return _IMP_core.XYZR___lt__(self, *args)
2353 
2354  def __ge__(self, *args):
2355  r"""
2356  __ge__(XYZR self, XYZR o) -> bool
2357  __ge__(XYZR self, Particle d) -> bool
2358  """
2359  return _IMP_core.XYZR___ge__(self, *args)
2360 
2361  def __gt__(self, *args):
2362  r"""
2363  __gt__(XYZR self, XYZR o) -> bool
2364  __gt__(XYZR self, Particle d) -> bool
2365  """
2366  return _IMP_core.XYZR___gt__(self, *args)
2367 
2368  def __hash__(self):
2369  r"""__hash__(XYZR self) -> std::size_t"""
2370  return _IMP_core.XYZR___hash__(self)
2371 
2372  def __str__(self):
2373  r"""__str__(XYZR self) -> std::string"""
2374  return _IMP_core.XYZR___str__(self)
2375 
2376  def __repr__(self):
2377  r"""__repr__(XYZR self) -> std::string"""
2378  return _IMP_core.XYZR___repr__(self)
2379 
2380  def _get_as_binary(self):
2381  r"""_get_as_binary(XYZR self) -> PyObject *"""
2382  return _IMP_core.XYZR__get_as_binary(self)
2383 
2384  def _set_from_binary(self, p):
2385  r"""_set_from_binary(XYZR self, PyObject * p)"""
2386  return _IMP_core.XYZR__set_from_binary(self, p)
2387 
2388  def __getstate__(self):
2389  p = self._get_as_binary()
2390  if len(self.__dict__) > 1:
2391  d = self.__dict__.copy()
2392  del d['this']
2393  p = (d, p)
2394  return p
2395 
2396  def __setstate__(self, p):
2397  if not hasattr(self, 'this'):
2398  self.__init__()
2399  if isinstance(p, tuple):
2400  d, p = p
2401  self.__dict__.update(d)
2402  return self._set_from_binary(p)
2403 
2404  __swig_destroy__ = _IMP_core.delete_XYZR
2405 
2406 # Register XYZR in _IMP_core:
2407 _IMP_core.XYZR_swigregister(XYZR)
2408 
2409 def set_enclosing_sphere(b, v, slack=0):
2410  r"""set_enclosing_sphere(XYZR b, IMP::core::XYZs const & v, double slack=0)"""
2411  return _IMP_core.set_enclosing_sphere(b, v, slack)
2412 
2413 def set_enclosing_radius(b, v):
2414  r"""set_enclosing_radius(XYZR b, IMP::core::XYZs const & v)"""
2415  return _IMP_core.set_enclosing_radius(b, v)
2416 
2417 def get_enclosing_sphere(v):
2418  r"""get_enclosing_sphere(IMP::core::XYZs const & v) -> Sphere3D"""
2419  return _IMP_core.get_enclosing_sphere(v)
2420 
2421 def create_xyzr_particles(m, num, radius, box_side=10):
2422  r"""create_xyzr_particles(Model m, unsigned int num, IMP::Float radius, IMP::Float box_side=10) -> IMP::core::XYZRs"""
2423  return _IMP_core.create_xyzr_particles(m, num, radius, box_side)
2424 class XYZRGeometry(IMP.display.SingletonGeometry):
2425  r"""Proxy of C++ IMP::core::XYZRGeometry class."""
2426 
2427  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2428 
2429  def __init__(self, *args):
2430  r"""
2431  __init__(XYZRGeometry self, Particle p) -> XYZRGeometry
2432  __init__(XYZRGeometry self, XYZR d) -> XYZRGeometry
2433  """
2434  _IMP_core.XYZRGeometry_swiginit(self, _IMP_core.new_XYZRGeometry(*args))
2435 
2436  def get_version_info(self):
2437  r"""get_version_info(XYZRGeometry self) -> VersionInfo"""
2438  return _IMP_core.XYZRGeometry_get_version_info(self)
2439  __swig_destroy__ = _IMP_core.delete_XYZRGeometry
2440 
2441  def __str__(self):
2442  r"""__str__(XYZRGeometry self) -> std::string"""
2443  return _IMP_core.XYZRGeometry___str__(self)
2444 
2445  def __repr__(self):
2446  r"""__repr__(XYZRGeometry self) -> std::string"""
2447  return _IMP_core.XYZRGeometry___repr__(self)
2448 
2449  @staticmethod
2450  def get_from(o):
2451  return _object_cast_to_XYZRGeometry(o)
2452 
2453 
2454 # Register XYZRGeometry in _IMP_core:
2455 _IMP_core.XYZRGeometry_swigregister(XYZRGeometry)
2456 class XYZRsGeometry(IMP.display.SingletonsGeometry):
2457  r"""Proxy of C++ IMP::core::XYZRsGeometry 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, sc):
2462  r"""__init__(XYZRsGeometry self, SingletonContainer sc) -> XYZRsGeometry"""
2463  _IMP_core.XYZRsGeometry_swiginit(self, _IMP_core.new_XYZRsGeometry(sc))
2464 
2465  def get_version_info(self):
2466  r"""get_version_info(XYZRsGeometry self) -> VersionInfo"""
2467  return _IMP_core.XYZRsGeometry_get_version_info(self)
2468  __swig_destroy__ = _IMP_core.delete_XYZRsGeometry
2469 
2470  def __str__(self):
2471  r"""__str__(XYZRsGeometry self) -> std::string"""
2472  return _IMP_core.XYZRsGeometry___str__(self)
2473 
2474  def __repr__(self):
2475  r"""__repr__(XYZRsGeometry self) -> std::string"""
2476  return _IMP_core.XYZRsGeometry___repr__(self)
2477 
2478  @staticmethod
2479  def get_from(o):
2480  return _object_cast_to_XYZRsGeometry(o)
2481 
2482 
2483 # Register XYZRsGeometry in _IMP_core:
2484 _IMP_core.XYZRsGeometry_swigregister(XYZRsGeometry)
2485 class XYZDerivativeGeometry(IMP.display.SingletonGeometry):
2486  r"""Proxy of C++ IMP::core::XYZDerivativeGeometry class."""
2487 
2488  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2489 
2490  def __init__(self, *args):
2491  r"""
2492  __init__(XYZDerivativeGeometry self, Particle p) -> XYZDerivativeGeometry
2493  __init__(XYZDerivativeGeometry self, XYZ d) -> XYZDerivativeGeometry
2494  """
2495  _IMP_core.XYZDerivativeGeometry_swiginit(self, _IMP_core.new_XYZDerivativeGeometry(*args))
2496 
2497  def get_version_info(self):
2498  r"""get_version_info(XYZDerivativeGeometry self) -> VersionInfo"""
2499  return _IMP_core.XYZDerivativeGeometry_get_version_info(self)
2500  __swig_destroy__ = _IMP_core.delete_XYZDerivativeGeometry
2501 
2502  def __str__(self):
2503  r"""__str__(XYZDerivativeGeometry self) -> std::string"""
2504  return _IMP_core.XYZDerivativeGeometry___str__(self)
2505 
2506  def __repr__(self):
2507  r"""__repr__(XYZDerivativeGeometry self) -> std::string"""
2508  return _IMP_core.XYZDerivativeGeometry___repr__(self)
2509 
2510  @staticmethod
2511  def get_from(o):
2512  return _object_cast_to_XYZDerivativeGeometry(o)
2513 
2514 
2515 # Register XYZDerivativeGeometry in _IMP_core:
2516 _IMP_core.XYZDerivativeGeometry_swigregister(XYZDerivativeGeometry)
2517 class XYZDerivativesGeometry(IMP.display.SingletonsGeometry):
2518  r"""Proxy of C++ IMP::core::XYZDerivativesGeometry 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, sc):
2523  r"""__init__(XYZDerivativesGeometry self, SingletonContainer sc) -> XYZDerivativesGeometry"""
2524  _IMP_core.XYZDerivativesGeometry_swiginit(self, _IMP_core.new_XYZDerivativesGeometry(sc))
2525 
2526  def get_version_info(self):
2527  r"""get_version_info(XYZDerivativesGeometry self) -> VersionInfo"""
2528  return _IMP_core.XYZDerivativesGeometry_get_version_info(self)
2529  __swig_destroy__ = _IMP_core.delete_XYZDerivativesGeometry
2530 
2531  def __str__(self):
2532  r"""__str__(XYZDerivativesGeometry self) -> std::string"""
2533  return _IMP_core.XYZDerivativesGeometry___str__(self)
2534 
2535  def __repr__(self):
2536  r"""__repr__(XYZDerivativesGeometry self) -> std::string"""
2537  return _IMP_core.XYZDerivativesGeometry___repr__(self)
2538 
2539  @staticmethod
2540  def get_from(o):
2541  return _object_cast_to_XYZDerivativesGeometry(o)
2542 
2543 
2544 # Register XYZDerivativesGeometry in _IMP_core:
2545 _IMP_core.XYZDerivativesGeometry_swigregister(XYZDerivativesGeometry)
2546 class EdgePairGeometry(IMP.display.PairGeometry):
2547  r"""Proxy of C++ IMP::core::EdgePairGeometry class."""
2548 
2549  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2550 
2551  def __init__(self, pp):
2552  r"""__init__(EdgePairGeometry self, IMP::ParticlePair const & pp) -> EdgePairGeometry"""
2553  _IMP_core.EdgePairGeometry_swiginit(self, _IMP_core.new_EdgePairGeometry(pp))
2554 
2555  def get_version_info(self):
2556  r"""get_version_info(EdgePairGeometry self) -> VersionInfo"""
2557  return _IMP_core.EdgePairGeometry_get_version_info(self)
2558  __swig_destroy__ = _IMP_core.delete_EdgePairGeometry
2559 
2560  def __str__(self):
2561  r"""__str__(EdgePairGeometry self) -> std::string"""
2562  return _IMP_core.EdgePairGeometry___str__(self)
2563 
2564  def __repr__(self):
2565  r"""__repr__(EdgePairGeometry self) -> std::string"""
2566  return _IMP_core.EdgePairGeometry___repr__(self)
2567 
2568  @staticmethod
2569  def get_from(o):
2570  return _object_cast_to_EdgePairGeometry(o)
2571 
2572 
2573 # Register EdgePairGeometry in _IMP_core:
2574 _IMP_core.EdgePairGeometry_swigregister(EdgePairGeometry)
2575 class EdgePairsGeometry(IMP.display.PairsGeometry):
2576  r"""Proxy of C++ IMP::core::EdgePairsGeometry class."""
2577 
2578  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2579 
2580  def __init__(self, sc):
2581  r"""__init__(EdgePairsGeometry self, PairContainer sc) -> EdgePairsGeometry"""
2582  _IMP_core.EdgePairsGeometry_swiginit(self, _IMP_core.new_EdgePairsGeometry(sc))
2583 
2584  def get_version_info(self):
2585  r"""get_version_info(EdgePairsGeometry self) -> VersionInfo"""
2586  return _IMP_core.EdgePairsGeometry_get_version_info(self)
2587  __swig_destroy__ = _IMP_core.delete_EdgePairsGeometry
2588 
2589  def __str__(self):
2590  r"""__str__(EdgePairsGeometry self) -> std::string"""
2591  return _IMP_core.EdgePairsGeometry___str__(self)
2592 
2593  def __repr__(self):
2594  r"""__repr__(EdgePairsGeometry self) -> std::string"""
2595  return _IMP_core.EdgePairsGeometry___repr__(self)
2596 
2597  @staticmethod
2598  def get_from(o):
2599  return _object_cast_to_EdgePairsGeometry(o)
2600 
2601 
2602 # Register EdgePairsGeometry in _IMP_core:
2603 _IMP_core.EdgePairsGeometry_swigregister(EdgePairsGeometry)
2604 class Direction(IMP.Decorator):
2605  r"""Proxy of C++ IMP::core::Direction class."""
2606 
2607  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2608 
2609  @staticmethod
2610  def do_setup_particle(m, pi, v):
2611  r"""do_setup_particle(Model m, ParticleIndex pi, Vector3D v)"""
2612  return _IMP_core.Direction_do_setup_particle(m, pi, v)
2613 
2614  def __init__(self, *args):
2615  r"""
2616  __init__(Direction self) -> Direction
2617  __init__(Direction self, Model m, ParticleIndex id) -> Direction
2618  __init__(Direction self, _ParticleAdaptor d) -> Direction
2619  """
2620  _IMP_core.Direction_swiginit(self, _IMP_core.new_Direction(*args))
2621 
2622  def show(self, *args):
2623  r"""show(Direction self, _ostream out=std::cout)"""
2624  return _IMP_core.Direction_show(self, *args)
2625 
2626  @staticmethod
2627  def setup_particle(*args):
2628  r"""
2629  setup_particle(Model m, ParticleIndex pi, Vector3D v) -> Direction
2630  setup_particle(_ParticleAdaptor pa, Vector3D v) -> Direction
2631  """
2632  return _IMP_core.Direction_setup_particle(*args)
2633 
2634  @staticmethod
2635  def get_is_setup(*args):
2636  r"""
2637  get_is_setup(_ParticleAdaptor p) -> bool
2638  get_is_setup(Model m, ParticleIndex pi) -> bool
2639  """
2640  return _IMP_core.Direction_get_is_setup(*args)
2641 
2642  @staticmethod
2643  def get_direction_key(i):
2644  r"""get_direction_key(unsigned int i) -> FloatKey"""
2645  return _IMP_core.Direction_get_direction_key(i)
2646 
2647  def get_direction_derivative(self, i):
2648  r"""get_direction_derivative(Direction self, int i) -> IMP::Float"""
2649  return _IMP_core.Direction_get_direction_derivative(self, i)
2650 
2651  def get_direction_derivatives(self):
2652  r"""get_direction_derivatives(Direction self) -> Vector3D"""
2653  return _IMP_core.Direction_get_direction_derivatives(self)
2654 
2655  def add_to_direction_derivative(self, i, v, d):
2656  r"""add_to_direction_derivative(Direction self, int i, IMP::Float v, DerivativeAccumulator d)"""
2657  return _IMP_core.Direction_add_to_direction_derivative(self, i, v, d)
2658 
2659  def add_to_direction_derivatives(self, v, d):
2660  r"""add_to_direction_derivatives(Direction self, Vector3D v, DerivativeAccumulator d)"""
2661  return _IMP_core.Direction_add_to_direction_derivatives(self, v, d)
2662 
2663  def get_direction_is_optimized(self):
2664  r"""get_direction_is_optimized(Direction self) -> bool"""
2665  return _IMP_core.Direction_get_direction_is_optimized(self)
2666 
2667  def set_direction_is_optimized(self, tf):
2668  r"""set_direction_is_optimized(Direction self, bool tf)"""
2669  return _IMP_core.Direction_set_direction_is_optimized(self, tf)
2670 
2671  def get_direction(self):
2672  r"""get_direction(Direction self) -> Vector3D"""
2673  return _IMP_core.Direction_get_direction(self)
2674 
2675  def set_direction(self, v):
2676  r"""set_direction(Direction self, Vector3D v)"""
2677  return _IMP_core.Direction_set_direction(self, v)
2678 
2679  def reflect(self):
2680  r"""reflect(Direction self)"""
2681  return _IMP_core.Direction_reflect(self)
2682 
2683  def add_attribute(self, *args):
2684  r"""
2685  add_attribute(Direction self, FloatKey k, IMP::Float v, bool opt)
2686  add_attribute(Direction self, FloatKey a0, IMP::Float a1)
2687  add_attribute(Direction self, IntKey a0, IMP::Int a1)
2688  add_attribute(Direction self, FloatsKey a0, IMP::Floats a1)
2689  add_attribute(Direction self, IntsKey a0, IMP::Ints a1)
2690  add_attribute(Direction self, StringKey a0, IMP::String a1)
2691  add_attribute(Direction self, ParticleIndexKey a0, Particle a1)
2692  add_attribute(Direction self, ObjectKey a0, Object a1)
2693  """
2694  return _IMP_core.Direction_add_attribute(self, *args)
2695 
2696  def get_value(self, *args):
2697  r"""
2698  get_value(Direction self, FloatKey a0) -> IMP::Float
2699  get_value(Direction self, IntKey a0) -> IMP::Int
2700  get_value(Direction self, FloatsKey a0) -> IMP::Floats
2701  get_value(Direction self, IntsKey a0) -> IMP::Ints
2702  get_value(Direction self, StringKey a0) -> IMP::String
2703  get_value(Direction self, ParticleIndexKey a0) -> Particle
2704  get_value(Direction self, ObjectKey a0) -> Object
2705  """
2706  return _IMP_core.Direction_get_value(self, *args)
2707 
2708  def set_value(self, *args):
2709  r"""
2710  set_value(Direction self, FloatKey a0, IMP::Float a1)
2711  set_value(Direction self, IntKey a0, IMP::Int a1)
2712  set_value(Direction self, FloatsKey a0, IMP::Floats a1)
2713  set_value(Direction self, IntsKey a0, IMP::Ints a1)
2714  set_value(Direction self, StringKey a0, IMP::String a1)
2715  set_value(Direction self, ParticleIndexKey a0, Particle a1)
2716  set_value(Direction self, ObjectKey a0, Object a1)
2717  """
2718  return _IMP_core.Direction_set_value(self, *args)
2719 
2720  def remove_attribute(self, *args):
2721  r"""
2722  remove_attribute(Direction self, FloatKey a0)
2723  remove_attribute(Direction self, IntKey a0)
2724  remove_attribute(Direction self, FloatsKey a0)
2725  remove_attribute(Direction self, IntsKey a0)
2726  remove_attribute(Direction self, StringKey a0)
2727  remove_attribute(Direction self, ParticleIndexKey a0)
2728  remove_attribute(Direction self, ObjectKey a0)
2729  """
2730  return _IMP_core.Direction_remove_attribute(self, *args)
2731 
2732  def has_attribute(self, *args):
2733  r"""
2734  has_attribute(Direction self, FloatKey a0) -> bool
2735  has_attribute(Direction self, IntKey a0) -> bool
2736  has_attribute(Direction self, FloatsKey a0) -> bool
2737  has_attribute(Direction self, IntsKey a0) -> bool
2738  has_attribute(Direction self, StringKey a0) -> bool
2739  has_attribute(Direction self, ParticleIndexKey a0) -> bool
2740  has_attribute(Direction self, ObjectKey a0) -> bool
2741  """
2742  return _IMP_core.Direction_has_attribute(self, *args)
2743 
2744  def get_derivative(self, a0):
2745  r"""get_derivative(Direction self, FloatKey a0) -> double"""
2746  return _IMP_core.Direction_get_derivative(self, a0)
2747 
2748  def get_name(self):
2749  r"""get_name(Direction self) -> std::string"""
2750  return _IMP_core.Direction_get_name(self)
2751 
2752  def clear_caches(self):
2753  r"""clear_caches(Direction self)"""
2754  return _IMP_core.Direction_clear_caches(self)
2755 
2756  def set_name(self, a0):
2757  r"""set_name(Direction self, std::string a0)"""
2758  return _IMP_core.Direction_set_name(self, a0)
2759 
2760  def set_check_level(self, a0):
2761  r"""set_check_level(Direction self, IMP::CheckLevel a0)"""
2762  return _IMP_core.Direction_set_check_level(self, a0)
2763 
2764  def add_to_derivative(self, a0, a1, a2):
2765  r"""add_to_derivative(Direction self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2766  return _IMP_core.Direction_add_to_derivative(self, a0, a1, a2)
2767 
2768  def set_is_optimized(self, a0, a1):
2769  r"""set_is_optimized(Direction self, FloatKey a0, bool a1)"""
2770  return _IMP_core.Direction_set_is_optimized(self, a0, a1)
2771 
2772  def get_is_optimized(self, a0):
2773  r"""get_is_optimized(Direction self, FloatKey a0) -> bool"""
2774  return _IMP_core.Direction_get_is_optimized(self, a0)
2775 
2776  def get_check_level(self):
2777  r"""get_check_level(Direction self) -> IMP::CheckLevel"""
2778  return _IMP_core.Direction_get_check_level(self)
2779 
2780  def __eq__(self, *args):
2781  r"""
2782  __eq__(Direction self, Direction o) -> bool
2783  __eq__(Direction self, Particle d) -> bool
2784  """
2785  return _IMP_core.Direction___eq__(self, *args)
2786 
2787  def __ne__(self, *args):
2788  r"""
2789  __ne__(Direction self, Direction o) -> bool
2790  __ne__(Direction self, Particle d) -> bool
2791  """
2792  return _IMP_core.Direction___ne__(self, *args)
2793 
2794  def __le__(self, *args):
2795  r"""
2796  __le__(Direction self, Direction o) -> bool
2797  __le__(Direction self, Particle d) -> bool
2798  """
2799  return _IMP_core.Direction___le__(self, *args)
2800 
2801  def __lt__(self, *args):
2802  r"""
2803  __lt__(Direction self, Direction o) -> bool
2804  __lt__(Direction self, Particle d) -> bool
2805  """
2806  return _IMP_core.Direction___lt__(self, *args)
2807 
2808  def __ge__(self, *args):
2809  r"""
2810  __ge__(Direction self, Direction o) -> bool
2811  __ge__(Direction self, Particle d) -> bool
2812  """
2813  return _IMP_core.Direction___ge__(self, *args)
2814 
2815  def __gt__(self, *args):
2816  r"""
2817  __gt__(Direction self, Direction o) -> bool
2818  __gt__(Direction self, Particle d) -> bool
2819  """
2820  return _IMP_core.Direction___gt__(self, *args)
2821 
2822  def __hash__(self):
2823  r"""__hash__(Direction self) -> std::size_t"""
2824  return _IMP_core.Direction___hash__(self)
2825 
2826  def __str__(self):
2827  r"""__str__(Direction self) -> std::string"""
2828  return _IMP_core.Direction___str__(self)
2829 
2830  def __repr__(self):
2831  r"""__repr__(Direction self) -> std::string"""
2832  return _IMP_core.Direction___repr__(self)
2833 
2834  def _get_as_binary(self):
2835  r"""_get_as_binary(Direction self) -> PyObject *"""
2836  return _IMP_core.Direction__get_as_binary(self)
2837 
2838  def _set_from_binary(self, p):
2839  r"""_set_from_binary(Direction self, PyObject * p)"""
2840  return _IMP_core.Direction__set_from_binary(self, p)
2841 
2842  def __getstate__(self):
2843  p = self._get_as_binary()
2844  if len(self.__dict__) > 1:
2845  d = self.__dict__.copy()
2846  del d['this']
2847  p = (d, p)
2848  return p
2849 
2850  def __setstate__(self, p):
2851  if not hasattr(self, 'this'):
2852  self.__init__()
2853  if isinstance(p, tuple):
2854  d, p = p
2855  self.__dict__.update(d)
2856  return self._set_from_binary(p)
2857 
2858  __swig_destroy__ = _IMP_core.delete_Direction
2859 
2860 # Register Direction in _IMP_core:
2861 _IMP_core.Direction_swigregister(Direction)
2862 
2863 def get_angle(a, b):
2864  r"""get_angle(Direction a, Direction b) -> double"""
2865  return _IMP_core.get_angle(a, b)
2866 class DirectionAngle(IMP.Decorator):
2867  r"""Proxy of C++ IMP::core::DirectionAngle class."""
2868 
2869  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2870 
2871  def __init__(self, *args):
2872  r"""
2873  __init__(DirectionAngle self) -> DirectionAngle
2874  __init__(DirectionAngle self, Model m, ParticleIndex id) -> DirectionAngle
2875  __init__(DirectionAngle self, _ParticleAdaptor d) -> DirectionAngle
2876  """
2877  _IMP_core.DirectionAngle_swiginit(self, _IMP_core.new_DirectionAngle(*args))
2878 
2879  def show(self, *args):
2880  r"""show(DirectionAngle self, _ostream out=std::cout)"""
2881  return _IMP_core.DirectionAngle_show(self, *args)
2882 
2883  @staticmethod
2884  def setup_particle(*args):
2885  r"""
2886  setup_particle(Model m, ParticleIndex pi, IMP::ParticleIndexPair ds) -> DirectionAngle
2887  setup_particle(_ParticleAdaptor pa, IMP::ParticleIndexPair ds) -> DirectionAngle
2888  setup_particle(Model m, ParticleIndex pi, _ParticleIndexAdaptor d0, _ParticleIndexAdaptor d1) -> DirectionAngle
2889  setup_particle(_ParticleAdaptor pa, _ParticleIndexAdaptor d0, _ParticleIndexAdaptor d1) -> DirectionAngle
2890  """
2891  return _IMP_core.DirectionAngle_setup_particle(*args)
2892 
2893  @staticmethod
2894  def get_is_setup(*args):
2895  r"""
2896  get_is_setup(_ParticleAdaptor p) -> bool
2897  get_is_setup(Model m, ParticleIndex pi) -> bool
2898  """
2899  return _IMP_core.DirectionAngle_get_is_setup(*args)
2900 
2901  @staticmethod
2902  def get_angle_key():
2903  r"""get_angle_key() -> FloatKey"""
2904  return _IMP_core.DirectionAngle_get_angle_key()
2905 
2906  @staticmethod
2907  def get_particle_key(i):
2908  r"""get_particle_key(unsigned int i) -> ParticleIndexKey"""
2909  return _IMP_core.DirectionAngle_get_particle_key(i)
2910 
2911  def get_particle(self, *args):
2912  r"""
2913  get_particle(DirectionAngle self, unsigned int i) -> Particle
2914  get_particle(DirectionAngle self) -> Particle
2915  """
2916  return _IMP_core.DirectionAngle_get_particle(self, *args)
2917 
2918  def get_particle_index(self, *args):
2919  r"""
2920  get_particle_index(DirectionAngle self, unsigned int i) -> ParticleIndex
2921  get_particle_index(DirectionAngle self) -> ParticleIndex
2922  """
2923  return _IMP_core.DirectionAngle_get_particle_index(self, *args)
2924 
2925  def get_angle(self):
2926  r"""get_angle(DirectionAngle self) -> IMP::Float"""
2927  return _IMP_core.DirectionAngle_get_angle(self)
2928 
2929  def get_angle_derivative(self):
2930  r"""get_angle_derivative(DirectionAngle self) -> IMP::Float"""
2931  return _IMP_core.DirectionAngle_get_angle_derivative(self)
2932 
2933  def add_to_angle_derivative(self, v, d):
2934  r"""add_to_angle_derivative(DirectionAngle self, IMP::Float v, DerivativeAccumulator d)"""
2935  return _IMP_core.DirectionAngle_add_to_angle_derivative(self, v, d)
2936 
2937  def add_attribute(self, *args):
2938  r"""
2939  add_attribute(DirectionAngle self, FloatKey k, IMP::Float v, bool opt)
2940  add_attribute(DirectionAngle self, FloatKey a0, IMP::Float a1)
2941  add_attribute(DirectionAngle self, IntKey a0, IMP::Int a1)
2942  add_attribute(DirectionAngle self, FloatsKey a0, IMP::Floats a1)
2943  add_attribute(DirectionAngle self, IntsKey a0, IMP::Ints a1)
2944  add_attribute(DirectionAngle self, StringKey a0, IMP::String a1)
2945  add_attribute(DirectionAngle self, ParticleIndexKey a0, Particle a1)
2946  add_attribute(DirectionAngle self, ObjectKey a0, Object a1)
2947  """
2948  return _IMP_core.DirectionAngle_add_attribute(self, *args)
2949 
2950  def get_value(self, *args):
2951  r"""
2952  get_value(DirectionAngle self, FloatKey a0) -> IMP::Float
2953  get_value(DirectionAngle self, IntKey a0) -> IMP::Int
2954  get_value(DirectionAngle self, FloatsKey a0) -> IMP::Floats
2955  get_value(DirectionAngle self, IntsKey a0) -> IMP::Ints
2956  get_value(DirectionAngle self, StringKey a0) -> IMP::String
2957  get_value(DirectionAngle self, ParticleIndexKey a0) -> Particle
2958  get_value(DirectionAngle self, ObjectKey a0) -> Object
2959  """
2960  return _IMP_core.DirectionAngle_get_value(self, *args)
2961 
2962  def set_value(self, *args):
2963  r"""
2964  set_value(DirectionAngle self, FloatKey a0, IMP::Float a1)
2965  set_value(DirectionAngle self, IntKey a0, IMP::Int a1)
2966  set_value(DirectionAngle self, FloatsKey a0, IMP::Floats a1)
2967  set_value(DirectionAngle self, IntsKey a0, IMP::Ints a1)
2968  set_value(DirectionAngle self, StringKey a0, IMP::String a1)
2969  set_value(DirectionAngle self, ParticleIndexKey a0, Particle a1)
2970  set_value(DirectionAngle self, ObjectKey a0, Object a1)
2971  """
2972  return _IMP_core.DirectionAngle_set_value(self, *args)
2973 
2974  def remove_attribute(self, *args):
2975  r"""
2976  remove_attribute(DirectionAngle self, FloatKey a0)
2977  remove_attribute(DirectionAngle self, IntKey a0)
2978  remove_attribute(DirectionAngle self, FloatsKey a0)
2979  remove_attribute(DirectionAngle self, IntsKey a0)
2980  remove_attribute(DirectionAngle self, StringKey a0)
2981  remove_attribute(DirectionAngle self, ParticleIndexKey a0)
2982  remove_attribute(DirectionAngle self, ObjectKey a0)
2983  """
2984  return _IMP_core.DirectionAngle_remove_attribute(self, *args)
2985 
2986  def has_attribute(self, *args):
2987  r"""
2988  has_attribute(DirectionAngle self, FloatKey a0) -> bool
2989  has_attribute(DirectionAngle self, IntKey a0) -> bool
2990  has_attribute(DirectionAngle self, FloatsKey a0) -> bool
2991  has_attribute(DirectionAngle self, IntsKey a0) -> bool
2992  has_attribute(DirectionAngle self, StringKey a0) -> bool
2993  has_attribute(DirectionAngle self, ParticleIndexKey a0) -> bool
2994  has_attribute(DirectionAngle self, ObjectKey a0) -> bool
2995  """
2996  return _IMP_core.DirectionAngle_has_attribute(self, *args)
2997 
2998  def get_derivative(self, a0):
2999  r"""get_derivative(DirectionAngle self, FloatKey a0) -> double"""
3000  return _IMP_core.DirectionAngle_get_derivative(self, a0)
3001 
3002  def get_name(self):
3003  r"""get_name(DirectionAngle self) -> std::string"""
3004  return _IMP_core.DirectionAngle_get_name(self)
3005 
3006  def clear_caches(self):
3007  r"""clear_caches(DirectionAngle self)"""
3008  return _IMP_core.DirectionAngle_clear_caches(self)
3009 
3010  def set_name(self, a0):
3011  r"""set_name(DirectionAngle self, std::string a0)"""
3012  return _IMP_core.DirectionAngle_set_name(self, a0)
3013 
3014  def set_check_level(self, a0):
3015  r"""set_check_level(DirectionAngle self, IMP::CheckLevel a0)"""
3016  return _IMP_core.DirectionAngle_set_check_level(self, a0)
3017 
3018  def add_to_derivative(self, a0, a1, a2):
3019  r"""add_to_derivative(DirectionAngle self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3020  return _IMP_core.DirectionAngle_add_to_derivative(self, a0, a1, a2)
3021 
3022  def set_is_optimized(self, a0, a1):
3023  r"""set_is_optimized(DirectionAngle self, FloatKey a0, bool a1)"""
3024  return _IMP_core.DirectionAngle_set_is_optimized(self, a0, a1)
3025 
3026  def get_is_optimized(self, a0):
3027  r"""get_is_optimized(DirectionAngle self, FloatKey a0) -> bool"""
3028  return _IMP_core.DirectionAngle_get_is_optimized(self, a0)
3029 
3030  def get_check_level(self):
3031  r"""get_check_level(DirectionAngle self) -> IMP::CheckLevel"""
3032  return _IMP_core.DirectionAngle_get_check_level(self)
3033 
3034  def __eq__(self, *args):
3035  r"""
3036  __eq__(DirectionAngle self, DirectionAngle o) -> bool
3037  __eq__(DirectionAngle self, Particle d) -> bool
3038  """
3039  return _IMP_core.DirectionAngle___eq__(self, *args)
3040 
3041  def __ne__(self, *args):
3042  r"""
3043  __ne__(DirectionAngle self, DirectionAngle o) -> bool
3044  __ne__(DirectionAngle self, Particle d) -> bool
3045  """
3046  return _IMP_core.DirectionAngle___ne__(self, *args)
3047 
3048  def __le__(self, *args):
3049  r"""
3050  __le__(DirectionAngle self, DirectionAngle o) -> bool
3051  __le__(DirectionAngle self, Particle d) -> bool
3052  """
3053  return _IMP_core.DirectionAngle___le__(self, *args)
3054 
3055  def __lt__(self, *args):
3056  r"""
3057  __lt__(DirectionAngle self, DirectionAngle o) -> bool
3058  __lt__(DirectionAngle self, Particle d) -> bool
3059  """
3060  return _IMP_core.DirectionAngle___lt__(self, *args)
3061 
3062  def __ge__(self, *args):
3063  r"""
3064  __ge__(DirectionAngle self, DirectionAngle o) -> bool
3065  __ge__(DirectionAngle self, Particle d) -> bool
3066  """
3067  return _IMP_core.DirectionAngle___ge__(self, *args)
3068 
3069  def __gt__(self, *args):
3070  r"""
3071  __gt__(DirectionAngle self, DirectionAngle o) -> bool
3072  __gt__(DirectionAngle self, Particle d) -> bool
3073  """
3074  return _IMP_core.DirectionAngle___gt__(self, *args)
3075 
3076  def __hash__(self):
3077  r"""__hash__(DirectionAngle self) -> std::size_t"""
3078  return _IMP_core.DirectionAngle___hash__(self)
3079 
3080  def __str__(self):
3081  r"""__str__(DirectionAngle self) -> std::string"""
3082  return _IMP_core.DirectionAngle___str__(self)
3083 
3084  def __repr__(self):
3085  r"""__repr__(DirectionAngle self) -> std::string"""
3086  return _IMP_core.DirectionAngle___repr__(self)
3087 
3088  def _get_as_binary(self):
3089  r"""_get_as_binary(DirectionAngle self) -> PyObject *"""
3090  return _IMP_core.DirectionAngle__get_as_binary(self)
3091 
3092  def _set_from_binary(self, p):
3093  r"""_set_from_binary(DirectionAngle self, PyObject * p)"""
3094  return _IMP_core.DirectionAngle__set_from_binary(self, p)
3095 
3096  def __getstate__(self):
3097  p = self._get_as_binary()
3098  if len(self.__dict__) > 1:
3099  d = self.__dict__.copy()
3100  del d['this']
3101  p = (d, p)
3102  return p
3103 
3104  def __setstate__(self, p):
3105  if not hasattr(self, 'this'):
3106  self.__init__()
3107  if isinstance(p, tuple):
3108  d, p = p
3109  self.__dict__.update(d)
3110  return self._set_from_binary(p)
3111 
3112  __swig_destroy__ = _IMP_core.delete_DirectionAngle
3113 
3114 # Register DirectionAngle in _IMP_core:
3115 _IMP_core.DirectionAngle_swigregister(DirectionAngle)
3116 class Surface(XYZ):
3117  r"""Proxy of C++ IMP::core::Surface class."""
3118 
3119  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3120 
3121  @staticmethod
3122  def do_setup_particle(*args):
3123  r"""
3124  do_setup_particle(Model m, ParticleIndex pi, Vector3D center=IMP::algebra::Vector3D(0, 0, 0), Vector3D normal=IMP::algebra::Vector3D(0, 0, 1))
3125  do_setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf)
3126  """
3127  return _IMP_core.Surface_do_setup_particle(*args)
3128 
3129  def __init__(self, *args):
3130  r"""
3131  __init__(Surface self) -> Surface
3132  __init__(Surface self, Model m, ParticleIndex id) -> Surface
3133  __init__(Surface self, _ParticleAdaptor d) -> Surface
3134  """
3135  _IMP_core.Surface_swiginit(self, _IMP_core.new_Surface(*args))
3136 
3137  def show(self, *args):
3138  r"""show(Surface self, _ostream out=std::cout)"""
3139  return _IMP_core.Surface_show(self, *args)
3140 
3141  @staticmethod
3142  def setup_particle(*args):
3143  r"""
3144  setup_particle(Model m, ParticleIndex pi) -> Surface
3145  setup_particle(_ParticleAdaptor pa) -> Surface
3146  setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf) -> Surface
3147  setup_particle(_ParticleAdaptor pa, ReferenceFrame3D rf) -> Surface
3148  setup_particle(Model m, ParticleIndex pi, Vector3D center) -> Surface
3149  setup_particle(_ParticleAdaptor pa, Vector3D center) -> Surface
3150  setup_particle(Model m, ParticleIndex pi, Vector3D center, Vector3D normal) -> Surface
3151  setup_particle(_ParticleAdaptor pa, Vector3D center, Vector3D normal) -> Surface
3152  """
3153  return _IMP_core.Surface_setup_particle(*args)
3154 
3155  def get_normal_x(self):
3156  r"""get_normal_x(Surface self) -> IMP::Float"""
3157  return _IMP_core.Surface_get_normal_x(self)
3158 
3159  def set_normal_x(self, t):
3160  r"""set_normal_x(Surface self, IMP::Float t)"""
3161  return _IMP_core.Surface_set_normal_x(self, t)
3162 
3163  def get_normal_y(self):
3164  r"""get_normal_y(Surface self) -> IMP::Float"""
3165  return _IMP_core.Surface_get_normal_y(self)
3166 
3167  def set_normal_y(self, t):
3168  r"""set_normal_y(Surface self, IMP::Float t)"""
3169  return _IMP_core.Surface_set_normal_y(self, t)
3170 
3171  def get_normal_z(self):
3172  r"""get_normal_z(Surface self) -> IMP::Float"""
3173  return _IMP_core.Surface_get_normal_z(self)
3174 
3175  def set_normal_z(self, t):
3176  r"""set_normal_z(Surface self, IMP::Float t)"""
3177  return _IMP_core.Surface_set_normal_z(self, t)
3178 
3179  @staticmethod
3180  def get_is_setup(*args):
3181  r"""
3182  get_is_setup(_ParticleAdaptor p) -> bool
3183  get_is_setup(Model m, ParticleIndex pi) -> bool
3184  """
3185  return _IMP_core.Surface_get_is_setup(*args)
3186 
3187  @staticmethod
3188  def get_normal_key(i):
3189  r"""get_normal_key(unsigned int i) -> FloatKey"""
3190  return _IMP_core.Surface_get_normal_key(i)
3191 
3192  def get_normal_derivative(self, i):
3193  r"""get_normal_derivative(Surface self, int i) -> IMP::Float"""
3194  return _IMP_core.Surface_get_normal_derivative(self, i)
3195 
3196  def get_normal_derivatives(self):
3197  r"""get_normal_derivatives(Surface self) -> Vector3D"""
3198  return _IMP_core.Surface_get_normal_derivatives(self)
3199 
3200  def add_to_normal_derivative(self, i, v, d):
3201  r"""add_to_normal_derivative(Surface self, int i, IMP::Float v, DerivativeAccumulator d)"""
3202  return _IMP_core.Surface_add_to_normal_derivative(self, i, v, d)
3203 
3204  def add_to_normal_derivatives(self, v, d):
3205  r"""add_to_normal_derivatives(Surface self, Vector3D v, DerivativeAccumulator d)"""
3206  return _IMP_core.Surface_add_to_normal_derivatives(self, v, d)
3207 
3208  def get_normal_is_optimized(self):
3209  r"""get_normal_is_optimized(Surface self) -> bool"""
3210  return _IMP_core.Surface_get_normal_is_optimized(self)
3211 
3212  def set_normal_is_optimized(self, tf):
3213  r"""set_normal_is_optimized(Surface self, bool tf)"""
3214  return _IMP_core.Surface_set_normal_is_optimized(self, tf)
3215 
3216  def get_normal(self):
3217  r"""get_normal(Surface self) -> Vector3D"""
3218  return _IMP_core.Surface_get_normal(self)
3219 
3220  def set_normal(self, normal):
3221  r"""set_normal(Surface self, Vector3D normal)"""
3222  return _IMP_core.Surface_set_normal(self, normal)
3223 
3224  def reflect(self):
3225  r"""reflect(Surface self)"""
3226  return _IMP_core.Surface_reflect(self)
3227 
3228  def get_height(self, v):
3229  r"""get_height(Surface self, Vector3D v) -> double"""
3230  return _IMP_core.Surface_get_height(self, v)
3231 
3232  def get_depth(self, v):
3233  r"""get_depth(Surface self, Vector3D v) -> double"""
3234  return _IMP_core.Surface_get_depth(self, v)
3235 
3236  def get_distance_to(self, v):
3237  r"""get_distance_to(Surface self, Vector3D v) -> double"""
3238  return _IMP_core.Surface_get_distance_to(self, v)
3239 
3240  def get_distance_to_center(self, v):
3241  r"""get_distance_to_center(Surface self, Vector3D v) -> double"""
3242  return _IMP_core.Surface_get_distance_to_center(self, v)
3243 
3244  def set_reference_frame(self, rf):
3245  r"""set_reference_frame(Surface self, ReferenceFrame3D rf)"""
3246  return _IMP_core.Surface_set_reference_frame(self, rf)
3247 
3248  def get_reference_frame(self):
3249  r"""get_reference_frame(Surface self) -> ReferenceFrame3D"""
3250  return _IMP_core.Surface_get_reference_frame(self)
3251 
3252  def get_plane(self):
3253  r"""get_plane(Surface self) -> Plane3D"""
3254  return _IMP_core.Surface_get_plane(self)
3255 
3256  def add_attribute(self, *args):
3257  r"""
3258  add_attribute(Surface self, FloatKey k, IMP::Float v, bool opt)
3259  add_attribute(Surface self, FloatKey a0, IMP::Float a1)
3260  add_attribute(Surface self, IntKey a0, IMP::Int a1)
3261  add_attribute(Surface self, FloatsKey a0, IMP::Floats a1)
3262  add_attribute(Surface self, IntsKey a0, IMP::Ints a1)
3263  add_attribute(Surface self, StringKey a0, IMP::String a1)
3264  add_attribute(Surface self, ParticleIndexKey a0, Particle a1)
3265  add_attribute(Surface self, ObjectKey a0, Object a1)
3266  """
3267  return _IMP_core.Surface_add_attribute(self, *args)
3268 
3269  def get_value(self, *args):
3270  r"""
3271  get_value(Surface self, FloatKey a0) -> IMP::Float
3272  get_value(Surface self, IntKey a0) -> IMP::Int
3273  get_value(Surface self, FloatsKey a0) -> IMP::Floats
3274  get_value(Surface self, IntsKey a0) -> IMP::Ints
3275  get_value(Surface self, StringKey a0) -> IMP::String
3276  get_value(Surface self, ParticleIndexKey a0) -> Particle
3277  get_value(Surface self, ObjectKey a0) -> Object
3278  """
3279  return _IMP_core.Surface_get_value(self, *args)
3280 
3281  def set_value(self, *args):
3282  r"""
3283  set_value(Surface self, FloatKey a0, IMP::Float a1)
3284  set_value(Surface self, IntKey a0, IMP::Int a1)
3285  set_value(Surface self, FloatsKey a0, IMP::Floats a1)
3286  set_value(Surface self, IntsKey a0, IMP::Ints a1)
3287  set_value(Surface self, StringKey a0, IMP::String a1)
3288  set_value(Surface self, ParticleIndexKey a0, Particle a1)
3289  set_value(Surface self, ObjectKey a0, Object a1)
3290  """
3291  return _IMP_core.Surface_set_value(self, *args)
3292 
3293  def remove_attribute(self, *args):
3294  r"""
3295  remove_attribute(Surface self, FloatKey a0)
3296  remove_attribute(Surface self, IntKey a0)
3297  remove_attribute(Surface self, FloatsKey a0)
3298  remove_attribute(Surface self, IntsKey a0)
3299  remove_attribute(Surface self, StringKey a0)
3300  remove_attribute(Surface self, ParticleIndexKey a0)
3301  remove_attribute(Surface self, ObjectKey a0)
3302  """
3303  return _IMP_core.Surface_remove_attribute(self, *args)
3304 
3305  def has_attribute(self, *args):
3306  r"""
3307  has_attribute(Surface self, FloatKey a0) -> bool
3308  has_attribute(Surface self, IntKey a0) -> bool
3309  has_attribute(Surface self, FloatsKey a0) -> bool
3310  has_attribute(Surface self, IntsKey a0) -> bool
3311  has_attribute(Surface self, StringKey a0) -> bool
3312  has_attribute(Surface self, ParticleIndexKey a0) -> bool
3313  has_attribute(Surface self, ObjectKey a0) -> bool
3314  """
3315  return _IMP_core.Surface_has_attribute(self, *args)
3316 
3317  def get_derivative(self, a0):
3318  r"""get_derivative(Surface self, FloatKey a0) -> double"""
3319  return _IMP_core.Surface_get_derivative(self, a0)
3320 
3321  def get_name(self):
3322  r"""get_name(Surface self) -> std::string"""
3323  return _IMP_core.Surface_get_name(self)
3324 
3325  def clear_caches(self):
3326  r"""clear_caches(Surface self)"""
3327  return _IMP_core.Surface_clear_caches(self)
3328 
3329  def set_name(self, a0):
3330  r"""set_name(Surface self, std::string a0)"""
3331  return _IMP_core.Surface_set_name(self, a0)
3332 
3333  def set_check_level(self, a0):
3334  r"""set_check_level(Surface self, IMP::CheckLevel a0)"""
3335  return _IMP_core.Surface_set_check_level(self, a0)
3336 
3337  def add_to_derivative(self, a0, a1, a2):
3338  r"""add_to_derivative(Surface self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3339  return _IMP_core.Surface_add_to_derivative(self, a0, a1, a2)
3340 
3341  def set_is_optimized(self, a0, a1):
3342  r"""set_is_optimized(Surface self, FloatKey a0, bool a1)"""
3343  return _IMP_core.Surface_set_is_optimized(self, a0, a1)
3344 
3345  def get_is_optimized(self, a0):
3346  r"""get_is_optimized(Surface self, FloatKey a0) -> bool"""
3347  return _IMP_core.Surface_get_is_optimized(self, a0)
3348 
3349  def get_check_level(self):
3350  r"""get_check_level(Surface self) -> IMP::CheckLevel"""
3351  return _IMP_core.Surface_get_check_level(self)
3352 
3353  def __eq__(self, *args):
3354  r"""
3355  __eq__(Surface self, Surface o) -> bool
3356  __eq__(Surface self, Particle d) -> bool
3357  """
3358  return _IMP_core.Surface___eq__(self, *args)
3359 
3360  def __ne__(self, *args):
3361  r"""
3362  __ne__(Surface self, Surface o) -> bool
3363  __ne__(Surface self, Particle d) -> bool
3364  """
3365  return _IMP_core.Surface___ne__(self, *args)
3366 
3367  def __le__(self, *args):
3368  r"""
3369  __le__(Surface self, Surface o) -> bool
3370  __le__(Surface self, Particle d) -> bool
3371  """
3372  return _IMP_core.Surface___le__(self, *args)
3373 
3374  def __lt__(self, *args):
3375  r"""
3376  __lt__(Surface self, Surface o) -> bool
3377  __lt__(Surface self, Particle d) -> bool
3378  """
3379  return _IMP_core.Surface___lt__(self, *args)
3380 
3381  def __ge__(self, *args):
3382  r"""
3383  __ge__(Surface self, Surface o) -> bool
3384  __ge__(Surface self, Particle d) -> bool
3385  """
3386  return _IMP_core.Surface___ge__(self, *args)
3387 
3388  def __gt__(self, *args):
3389  r"""
3390  __gt__(Surface self, Surface o) -> bool
3391  __gt__(Surface self, Particle d) -> bool
3392  """
3393  return _IMP_core.Surface___gt__(self, *args)
3394 
3395  def __hash__(self):
3396  r"""__hash__(Surface self) -> std::size_t"""
3397  return _IMP_core.Surface___hash__(self)
3398 
3399  def __str__(self):
3400  r"""__str__(Surface self) -> std::string"""
3401  return _IMP_core.Surface___str__(self)
3402 
3403  def __repr__(self):
3404  r"""__repr__(Surface self) -> std::string"""
3405  return _IMP_core.Surface___repr__(self)
3406 
3407  def _get_as_binary(self):
3408  r"""_get_as_binary(Surface self) -> PyObject *"""
3409  return _IMP_core.Surface__get_as_binary(self)
3410 
3411  def _set_from_binary(self, p):
3412  r"""_set_from_binary(Surface self, PyObject * p)"""
3413  return _IMP_core.Surface__set_from_binary(self, p)
3414 
3415  def __getstate__(self):
3416  p = self._get_as_binary()
3417  if len(self.__dict__) > 1:
3418  d = self.__dict__.copy()
3419  del d['this']
3420  p = (d, p)
3421  return p
3422 
3423  def __setstate__(self, p):
3424  if not hasattr(self, 'this'):
3425  self.__init__()
3426  if isinstance(p, tuple):
3427  d, p = p
3428  self.__dict__.update(d)
3429  return self._set_from_binary(p)
3430 
3431  __swig_destroy__ = _IMP_core.delete_Surface
3432 
3433 # Register Surface in _IMP_core:
3434 _IMP_core.Surface_swigregister(Surface)
3435 
3436 def get_height(*args):
3437  r"""
3438  get_height(Surface s, XYZR d) -> double
3439  get_height(Surface s, XYZ d) -> double
3440  """
3441  return _IMP_core.get_height(*args)
3442 
3443 def get_depth(*args):
3444  r"""
3445  get_depth(Surface s, XYZR d) -> double
3446  get_depth(Surface s, XYZ d) -> double
3447  """
3448  return _IMP_core.get_depth(*args)
3449 
3450 def get_distance(*args):
3451  r"""
3452  get_distance(XYZ a, XYZ b) -> double
3453  get_distance(XYZR a, XYZR b) -> double
3454  get_distance(Surface s, XYZR d) -> double
3455  get_distance(Surface s, XYZ d) -> double
3456  """
3457  return _IMP_core.get_distance(*args)
3458 class SurfaceGeometry(IMP.display.Geometry):
3459  r"""Proxy of C++ IMP::core::SurfaceGeometry class."""
3460 
3461  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3462 
3463  def __init__(self, *args):
3464  r"""
3465  __init__(SurfaceGeometry self, std::string n="SurfaceGeometry") -> SurfaceGeometry
3466  __init__(SurfaceGeometry self, Surface s, std::string const n="SurfaceGeometry") -> SurfaceGeometry
3467  __init__(SurfaceGeometry self, Surface s, Color c, std::string n="SurfaceGeometry") -> SurfaceGeometry
3468  """
3469  _IMP_core.SurfaceGeometry_swiginit(self, _IMP_core.new_SurfaceGeometry(*args))
3470 
3471  def get_geometry(self):
3472  r"""get_geometry(SurfaceGeometry self) -> Surface"""
3473  return _IMP_core.SurfaceGeometry_get_geometry(self)
3474 
3475  def set_geometry(self, s):
3476  r"""set_geometry(SurfaceGeometry self, Surface s)"""
3477  return _IMP_core.SurfaceGeometry_set_geometry(self, s)
3478 
3479  def get_version_info(self):
3480  r"""get_version_info(SurfaceGeometry self) -> VersionInfo"""
3481  return _IMP_core.SurfaceGeometry_get_version_info(self)
3482  __swig_destroy__ = _IMP_core.delete_SurfaceGeometry
3483 
3484  def __str__(self):
3485  r"""__str__(SurfaceGeometry self) -> std::string"""
3486  return _IMP_core.SurfaceGeometry___str__(self)
3487 
3488  def __repr__(self):
3489  r"""__repr__(SurfaceGeometry self) -> std::string"""
3490  return _IMP_core.SurfaceGeometry___repr__(self)
3491 
3492  @staticmethod
3493  def get_from(o):
3494  return _object_cast_to_SurfaceGeometry(o)
3495 
3496 
3497 # Register SurfaceGeometry in _IMP_core:
3498 _IMP_core.SurfaceGeometry_swigregister(SurfaceGeometry)
3499 
3500 def create_geometry(*args):
3501  r"""create_geometry(Surface s, std::string name=std::string("SurfaceGeometry%1%")) -> SurfaceGeometry"""
3502  return _IMP_core.create_geometry(*args)
3503 class SurfaceGeometryConstraint(IMP.Constraint):
3504  r"""Proxy of C++ IMP::core::SurfaceGeometryConstraint class."""
3505 
3506  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3507 
3508  def __init__(self, s, g):
3509  r"""__init__(SurfaceGeometryConstraint self, Surface s, SurfaceGeometry g) -> SurfaceGeometryConstraint"""
3510  _IMP_core.SurfaceGeometryConstraint_swiginit(self, _IMP_core.new_SurfaceGeometryConstraint(s, g))
3511 
3512  def get_surface(self):
3513  r"""get_surface(SurfaceGeometryConstraint self) -> Surface"""
3514  return _IMP_core.SurfaceGeometryConstraint_get_surface(self)
3515 
3516  def get_geometry(self):
3517  r"""get_geometry(SurfaceGeometryConstraint self) -> SurfaceGeometry"""
3518  return _IMP_core.SurfaceGeometryConstraint_get_geometry(self)
3519 
3520  def do_get_inputs(self):
3521  r"""do_get_inputs(SurfaceGeometryConstraint self) -> IMP::ModelObjectsTemp"""
3522  return _IMP_core.SurfaceGeometryConstraint_do_get_inputs(self)
3523 
3524  def do_get_outputs(self):
3525  r"""do_get_outputs(SurfaceGeometryConstraint self) -> IMP::ModelObjectsTemp"""
3526  return _IMP_core.SurfaceGeometryConstraint_do_get_outputs(self)
3527 
3528  def get_version_info(self):
3529  r"""get_version_info(SurfaceGeometryConstraint self) -> VersionInfo"""
3530  return _IMP_core.SurfaceGeometryConstraint_get_version_info(self)
3531  __swig_destroy__ = _IMP_core.delete_SurfaceGeometryConstraint
3532 
3533  def __str__(self):
3534  r"""__str__(SurfaceGeometryConstraint self) -> std::string"""
3535  return _IMP_core.SurfaceGeometryConstraint___str__(self)
3536 
3537  def __repr__(self):
3538  r"""__repr__(SurfaceGeometryConstraint self) -> std::string"""
3539  return _IMP_core.SurfaceGeometryConstraint___repr__(self)
3540 
3541  @staticmethod
3542  def get_from(o):
3543  return _object_cast_to_SurfaceGeometryConstraint(o)
3544 
3545 
3546 # Register SurfaceGeometryConstraint in _IMP_core:
3547 _IMP_core.SurfaceGeometryConstraint_swigregister(SurfaceGeometryConstraint)
3548 
3550  r"""get_constrained_surface_geometry(Surface s, std::string name="SurfaceGeometry%1%") -> SurfaceGeometry"""
3551  return _IMP_core.get_constrained_surface_geometry(*args)
3552 class LateralSurfaceConstraint(IMP.Constraint):
3553  r"""Proxy of C++ IMP::core::LateralSurfaceConstraint class."""
3554 
3555  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3556 
3557  def __init__(self, s, d):
3558  r"""__init__(LateralSurfaceConstraint self, Surface s, XYZ d) -> LateralSurfaceConstraint"""
3559  _IMP_core.LateralSurfaceConstraint_swiginit(self, _IMP_core.new_LateralSurfaceConstraint(s, d))
3560 
3561  def do_get_inputs(self):
3562  r"""do_get_inputs(LateralSurfaceConstraint self) -> IMP::ModelObjectsTemp"""
3563  return _IMP_core.LateralSurfaceConstraint_do_get_inputs(self)
3564 
3565  def do_get_outputs(self):
3566  r"""do_get_outputs(LateralSurfaceConstraint self) -> IMP::ModelObjectsTemp"""
3567  return _IMP_core.LateralSurfaceConstraint_do_get_outputs(self)
3568 
3569  def get_version_info(self):
3570  r"""get_version_info(LateralSurfaceConstraint self) -> VersionInfo"""
3571  return _IMP_core.LateralSurfaceConstraint_get_version_info(self)
3572  __swig_destroy__ = _IMP_core.delete_LateralSurfaceConstraint
3573 
3574  def __str__(self):
3575  r"""__str__(LateralSurfaceConstraint self) -> std::string"""
3576  return _IMP_core.LateralSurfaceConstraint___str__(self)
3577 
3578  def __repr__(self):
3579  r"""__repr__(LateralSurfaceConstraint self) -> std::string"""
3580  return _IMP_core.LateralSurfaceConstraint___repr__(self)
3581 
3582  @staticmethod
3583  def get_from(o):
3584  return _object_cast_to_LateralSurfaceConstraint(o)
3585 
3586 
3587 # Register LateralSurfaceConstraint in _IMP_core:
3588 _IMP_core.LateralSurfaceConstraint_swigregister(LateralSurfaceConstraint)
3589 class AngleTripletScore(IMP.TripletScore):
3590  r"""Proxy of C++ IMP::core::AngleTripletScore class."""
3591 
3592  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3593 
3594  def __init__(self, *args):
3595  r"""
3596  __init__(AngleTripletScore self, UnaryFunction f) -> AngleTripletScore
3597  __init__(AngleTripletScore self) -> AngleTripletScore
3598  """
3599  _IMP_core.AngleTripletScore_swiginit(self, _IMP_core.new_AngleTripletScore(*args))
3600 
3601  def do_get_inputs(self, m, pis):
3602  r"""do_get_inputs(AngleTripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3603  return _IMP_core.AngleTripletScore_do_get_inputs(self, m, pis)
3604 
3605  def get_version_info(self):
3606  r"""get_version_info(AngleTripletScore self) -> VersionInfo"""
3607  return _IMP_core.AngleTripletScore_get_version_info(self)
3608  __swig_destroy__ = _IMP_core.delete_AngleTripletScore
3609 
3610  def __str__(self):
3611  r"""__str__(AngleTripletScore self) -> std::string"""
3612  return _IMP_core.AngleTripletScore___str__(self)
3613 
3614  def __repr__(self):
3615  r"""__repr__(AngleTripletScore self) -> std::string"""
3616  return _IMP_core.AngleTripletScore___repr__(self)
3617 
3618  @staticmethod
3619  def get_from(o):
3620  return _object_cast_to_AngleTripletScore(o)
3621 
3622 
3623  def _get_as_binary(self):
3624  r"""_get_as_binary(AngleTripletScore self) -> PyObject *"""
3625  return _IMP_core.AngleTripletScore__get_as_binary(self)
3626 
3627  def _set_from_binary(self, p):
3628  r"""_set_from_binary(AngleTripletScore self, PyObject * p)"""
3629  return _IMP_core.AngleTripletScore__set_from_binary(self, p)
3630 
3631  def __getstate__(self):
3632  p = self._get_as_binary()
3633  if len(self.__dict__) > 1:
3634  d = self.__dict__.copy()
3635  del d['this']
3636  p = (d, p)
3637  return p
3638 
3639  def __setstate__(self, p):
3640  if not hasattr(self, 'this'):
3641  self.__init__()
3642  if isinstance(p, tuple):
3643  d, p = p
3644  self.__dict__.update(d)
3645  return self._set_from_binary(p)
3646 
3647 
3648 # Register AngleTripletScore in _IMP_core:
3649 _IMP_core.AngleTripletScore_swigregister(AngleTripletScore)
3650 class BallMover(MonteCarloMover):
3651  r"""Proxy of C++ IMP::core::BallMover class."""
3652 
3653  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3654 
3655  def __init__(self, *args):
3656  r"""
3657  __init__(BallMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double radius) -> BallMover
3658  __init__(BallMover self, Model m, ParticleIndex pi, double radius) -> BallMover
3659  __init__(BallMover self, Model m, IMP::ParticleIndexes const & pis, IMP::FloatKeys const & vars, IMP::Float radius) -> BallMover
3660  __init__(BallMover self, Model m, IMP::ParticleIndexes const & pis, IMP::Float radius) -> BallMover
3661  __init__(BallMover self) -> BallMover
3662  """
3663  _IMP_core.BallMover_swiginit(self, _IMP_core.new_BallMover(*args))
3664 
3665  def set_radius(self, radius):
3666  r"""set_radius(BallMover self, IMP::Float radius)"""
3667  return _IMP_core.BallMover_set_radius(self, radius)
3668 
3669  def get_radius(self):
3670  r"""get_radius(BallMover self) -> IMP::Float"""
3671  return _IMP_core.BallMover_get_radius(self)
3672 
3673  def get_version_info(self):
3674  r"""get_version_info(BallMover self) -> VersionInfo"""
3675  return _IMP_core.BallMover_get_version_info(self)
3676  __swig_destroy__ = _IMP_core.delete_BallMover
3677 
3678  def __str__(self):
3679  r"""__str__(BallMover self) -> std::string"""
3680  return _IMP_core.BallMover___str__(self)
3681 
3682  def __repr__(self):
3683  r"""__repr__(BallMover self) -> std::string"""
3684  return _IMP_core.BallMover___repr__(self)
3685 
3686  @staticmethod
3687  def get_from(o):
3688  return _object_cast_to_BallMover(o)
3689 
3690 
3691  def _get_as_binary(self):
3692  r"""_get_as_binary(BallMover self) -> PyObject *"""
3693  return _IMP_core.BallMover__get_as_binary(self)
3694 
3695  def _set_from_binary(self, p):
3696  r"""_set_from_binary(BallMover self, PyObject * p)"""
3697  return _IMP_core.BallMover__set_from_binary(self, p)
3698 
3699  def __getstate__(self):
3700  p = self._get_as_binary()
3701  if len(self.__dict__) > 1:
3702  d = self.__dict__.copy()
3703  del d['this']
3704  p = (d, p)
3705  return p
3706 
3707  def __setstate__(self, p):
3708  if not hasattr(self, 'this'):
3709  self.__init__()
3710  if isinstance(p, tuple):
3711  d, p = p
3712  self.__dict__.update(d)
3713  return self._set_from_binary(p)
3714 
3715 
3716 # Register BallMover in _IMP_core:
3717 _IMP_core.BallMover_swigregister(BallMover)
3718 class SerialMover(MonteCarloMover):
3719  r"""Proxy of C++ IMP::core::SerialMover class."""
3720 
3721  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3722 
3723  def __init__(self, *args):
3724  r"""
3725  __init__(SerialMover self, IMP::core::MonteCarloMoversTemp const & mvs) -> SerialMover
3726  __init__(SerialMover self) -> SerialMover
3727  """
3728  _IMP_core.SerialMover_swiginit(self, _IMP_core.new_SerialMover(*args))
3729 
3730  def get_movers(self):
3731  r"""get_movers(SerialMover self) -> IMP::core::MonteCarloMovers const &"""
3732  return _IMP_core.SerialMover_get_movers(self)
3733 
3734  def get_version_info(self):
3735  r"""get_version_info(SerialMover self) -> VersionInfo"""
3736  return _IMP_core.SerialMover_get_version_info(self)
3737  __swig_destroy__ = _IMP_core.delete_SerialMover
3738 
3739  def __str__(self):
3740  r"""__str__(SerialMover self) -> std::string"""
3741  return _IMP_core.SerialMover___str__(self)
3742 
3743  def __repr__(self):
3744  r"""__repr__(SerialMover self) -> std::string"""
3745  return _IMP_core.SerialMover___repr__(self)
3746 
3747  @staticmethod
3748  def get_from(o):
3749  return _object_cast_to_SerialMover(o)
3750 
3751 
3752  def _get_as_binary(self):
3753  r"""_get_as_binary(SerialMover self) -> PyObject *"""
3754  return _IMP_core.SerialMover__get_as_binary(self)
3755 
3756  def _set_from_binary(self, p):
3757  r"""_set_from_binary(SerialMover self, PyObject * p)"""
3758  return _IMP_core.SerialMover__set_from_binary(self, p)
3759 
3760  def __getstate__(self):
3761  p = self._get_as_binary()
3762  if len(self.__dict__) > 1:
3763  d = self.__dict__.copy()
3764  del d['this']
3765  p = (d, p)
3766  return p
3767 
3768  def __setstate__(self, p):
3769  if not hasattr(self, 'this'):
3770  self.__init__()
3771  if isinstance(p, tuple):
3772  d, p = p
3773  self.__dict__.update(d)
3774  return self._set_from_binary(p)
3775 
3776 
3777 # Register SerialMover in _IMP_core:
3778 _IMP_core.SerialMover_swigregister(SerialMover)
3779 class SubsetMover(MonteCarloMover):
3780  r"""Proxy of C++ IMP::core::SubsetMover class."""
3781 
3782  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3783 
3784  def __init__(self, *args):
3785  r"""
3786  __init__(SubsetMover self, IMP::core::MonteCarloMoversTemp const & mvs, unsigned int n) -> SubsetMover
3787  __init__(SubsetMover self) -> SubsetMover
3788  """
3789  _IMP_core.SubsetMover_swiginit(self, _IMP_core.new_SubsetMover(*args))
3790 
3791  def get_movers(self):
3792  r"""get_movers(SubsetMover self) -> IMP::core::MonteCarloMovers const &"""
3793  return _IMP_core.SubsetMover_get_movers(self)
3794 
3795  def get_subset_size(self):
3796  r"""get_subset_size(SubsetMover self) -> unsigned int"""
3797  return _IMP_core.SubsetMover_get_subset_size(self)
3798 
3799  def get_version_info(self):
3800  r"""get_version_info(SubsetMover self) -> VersionInfo"""
3801  return _IMP_core.SubsetMover_get_version_info(self)
3802  __swig_destroy__ = _IMP_core.delete_SubsetMover
3803 
3804  def __str__(self):
3805  r"""__str__(SubsetMover self) -> std::string"""
3806  return _IMP_core.SubsetMover___str__(self)
3807 
3808  def __repr__(self):
3809  r"""__repr__(SubsetMover self) -> std::string"""
3810  return _IMP_core.SubsetMover___repr__(self)
3811 
3812  @staticmethod
3813  def get_from(o):
3814  return _object_cast_to_SubsetMover(o)
3815 
3816 
3817  def _get_as_binary(self):
3818  r"""_get_as_binary(SubsetMover self) -> PyObject *"""
3819  return _IMP_core.SubsetMover__get_as_binary(self)
3820 
3821  def _set_from_binary(self, p):
3822  r"""_set_from_binary(SubsetMover self, PyObject * p)"""
3823  return _IMP_core.SubsetMover__set_from_binary(self, p)
3824 
3825  def __getstate__(self):
3826  p = self._get_as_binary()
3827  if len(self.__dict__) > 1:
3828  d = self.__dict__.copy()
3829  del d['this']
3830  p = (d, p)
3831  return p
3832 
3833  def __setstate__(self, p):
3834  if not hasattr(self, 'this'):
3835  self.__init__()
3836  if isinstance(p, tuple):
3837  d, p = p
3838  self.__dict__.update(d)
3839  return self._set_from_binary(p)
3840 
3841 
3842 # Register SubsetMover in _IMP_core:
3843 _IMP_core.SubsetMover_swigregister(SubsetMover)
3844 class DirectionMover(MonteCarloMover):
3845  r"""Proxy of C++ IMP::core::DirectionMover class."""
3846 
3847  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3848 
3849  def __init__(self, *args):
3850  r"""
3851  __init__(DirectionMover self, Model m, ParticleIndex pi, IMP::Float max_rotation, IMP::Float reflect_probability) -> DirectionMover
3852  __init__(DirectionMover self, Direction d, IMP::Float max_rotation, IMP::Float reflect_probability) -> DirectionMover
3853  """
3854  _IMP_core.DirectionMover_swiginit(self, _IMP_core.new_DirectionMover(*args))
3855 
3856  def set_maximum_rotation(self, mr):
3857  r"""set_maximum_rotation(DirectionMover self, IMP::Float mr)"""
3858  return _IMP_core.DirectionMover_set_maximum_rotation(self, mr)
3859 
3860  def set_reflect_probability(self, rp):
3861  r"""set_reflect_probability(DirectionMover self, IMP::Float rp)"""
3862  return _IMP_core.DirectionMover_set_reflect_probability(self, rp)
3863 
3864  def get_maximum_rotation(self):
3865  r"""get_maximum_rotation(DirectionMover self) -> IMP::Float"""
3866  return _IMP_core.DirectionMover_get_maximum_rotation(self)
3867 
3868  def get_reflect_probability(self):
3869  r"""get_reflect_probability(DirectionMover self) -> IMP::Float"""
3870  return _IMP_core.DirectionMover_get_reflect_probability(self)
3871 
3872  def get_direction(self):
3873  r"""get_direction(DirectionMover self) -> Direction"""
3874  return _IMP_core.DirectionMover_get_direction(self)
3875 
3876  def get_version_info(self):
3877  r"""get_version_info(DirectionMover self) -> VersionInfo"""
3878  return _IMP_core.DirectionMover_get_version_info(self)
3879  __swig_destroy__ = _IMP_core.delete_DirectionMover
3880 
3881  def __str__(self):
3882  r"""__str__(DirectionMover self) -> std::string"""
3883  return _IMP_core.DirectionMover___str__(self)
3884 
3885  def __repr__(self):
3886  r"""__repr__(DirectionMover self) -> std::string"""
3887  return _IMP_core.DirectionMover___repr__(self)
3888 
3889  @staticmethod
3890  def get_from(o):
3891  return _object_cast_to_DirectionMover(o)
3892 
3893 
3894 # Register DirectionMover in _IMP_core:
3895 _IMP_core.DirectionMover_swigregister(DirectionMover)
3896 class SurfaceMover(MonteCarloMover):
3897  r"""Proxy of C++ IMP::core::SurfaceMover class."""
3898 
3899  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3900 
3901  def __init__(self, *args):
3902  r"""
3903  __init__(SurfaceMover self, Model m, ParticleIndex pi, IMP::Float max_translation, IMP::Float max_rotation, IMP::Float reflect_probability) -> SurfaceMover
3904  __init__(SurfaceMover self, Surface s, IMP::Float max_translation, IMP::Float max_rotation, IMP::Float reflect_probability) -> SurfaceMover
3905  """
3906  _IMP_core.SurfaceMover_swiginit(self, _IMP_core.new_SurfaceMover(*args))
3907 
3908  def set_maximum_translation(self, mt):
3909  r"""set_maximum_translation(SurfaceMover self, IMP::Float mt)"""
3910  return _IMP_core.SurfaceMover_set_maximum_translation(self, mt)
3911 
3912  def set_maximum_rotation(self, mr):
3913  r"""set_maximum_rotation(SurfaceMover self, IMP::Float mr)"""
3914  return _IMP_core.SurfaceMover_set_maximum_rotation(self, mr)
3915 
3916  def set_reflect_probability(self, rp):
3917  r"""set_reflect_probability(SurfaceMover self, IMP::Float rp)"""
3918  return _IMP_core.SurfaceMover_set_reflect_probability(self, rp)
3919 
3920  def get_maximum_translation(self):
3921  r"""get_maximum_translation(SurfaceMover self) -> IMP::Float"""
3922  return _IMP_core.SurfaceMover_get_maximum_translation(self)
3923 
3924  def get_maximum_rotation(self):
3925  r"""get_maximum_rotation(SurfaceMover self) -> IMP::Float"""
3926  return _IMP_core.SurfaceMover_get_maximum_rotation(self)
3927 
3928  def get_reflect_probability(self):
3929  r"""get_reflect_probability(SurfaceMover self) -> IMP::Float"""
3930  return _IMP_core.SurfaceMover_get_reflect_probability(self)
3931 
3932  def get_surface(self):
3933  r"""get_surface(SurfaceMover self) -> Surface"""
3934  return _IMP_core.SurfaceMover_get_surface(self)
3935 
3936  def get_version_info(self):
3937  r"""get_version_info(SurfaceMover self) -> VersionInfo"""
3938  return _IMP_core.SurfaceMover_get_version_info(self)
3939  __swig_destroy__ = _IMP_core.delete_SurfaceMover
3940 
3941  def __str__(self):
3942  r"""__str__(SurfaceMover self) -> std::string"""
3943  return _IMP_core.SurfaceMover___str__(self)
3944 
3945  def __repr__(self):
3946  r"""__repr__(SurfaceMover self) -> std::string"""
3947  return _IMP_core.SurfaceMover___repr__(self)
3948 
3949  @staticmethod
3950  def get_from(o):
3951  return _object_cast_to_SurfaceMover(o)
3952 
3953 
3954 # Register SurfaceMover in _IMP_core:
3955 _IMP_core.SurfaceMover_swigregister(SurfaceMover)
3956 class BoxSweepClosePairsFinder(ClosePairsFinder):
3957  r"""Proxy of C++ IMP::core::BoxSweepClosePairsFinder class."""
3958 
3959  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3960 
3961  def __init__(self):
3962  r"""__init__(BoxSweepClosePairsFinder self) -> BoxSweepClosePairsFinder"""
3963  _IMP_core.BoxSweepClosePairsFinder_swiginit(self, _IMP_core.new_BoxSweepClosePairsFinder())
3964 
3965  def get_close_pairs(self, *args):
3966  r"""
3967  get_close_pairs(BoxSweepClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
3968  get_close_pairs(BoxSweepClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
3969  get_close_pairs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
3970  get_close_pairs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
3971  """
3972  return _IMP_core.BoxSweepClosePairsFinder_get_close_pairs(self, *args)
3973 
3974  def do_get_inputs(self, m, pis):
3975  r"""do_get_inputs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3976  return _IMP_core.BoxSweepClosePairsFinder_do_get_inputs(self, m, pis)
3977 
3978  def get_version_info(self):
3979  r"""get_version_info(BoxSweepClosePairsFinder self) -> VersionInfo"""
3980  return _IMP_core.BoxSweepClosePairsFinder_get_version_info(self)
3981  __swig_destroy__ = _IMP_core.delete_BoxSweepClosePairsFinder
3982 
3983  def __str__(self):
3984  r"""__str__(BoxSweepClosePairsFinder self) -> std::string"""
3985  return _IMP_core.BoxSweepClosePairsFinder___str__(self)
3986 
3987  def __repr__(self):
3988  r"""__repr__(BoxSweepClosePairsFinder self) -> std::string"""
3989  return _IMP_core.BoxSweepClosePairsFinder___repr__(self)
3990 
3991  @staticmethod
3992  def get_from(o):
3993  return _object_cast_to_BoxSweepClosePairsFinder(o)
3994 
3995 
3996 # Register BoxSweepClosePairsFinder in _IMP_core:
3997 _IMP_core.BoxSweepClosePairsFinder_swigregister(BoxSweepClosePairsFinder)
3998 class CentroidOfRefined(IMP.SingletonModifier):
3999  r"""Proxy of C++ IMP::core::CentroidOfRefined class."""
4000 
4001  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4002 
4003  def __init__(self, *args):
4004  r"""__init__(CentroidOfRefined self, Refiner r, FloatKey weight=FloatKey(), IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> CentroidOfRefined"""
4005  _IMP_core.CentroidOfRefined_swiginit(self, _IMP_core.new_CentroidOfRefined(*args))
4006 
4007  def do_get_inputs(self, m, pis):
4008  r"""do_get_inputs(CentroidOfRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4009  return _IMP_core.CentroidOfRefined_do_get_inputs(self, m, pis)
4010 
4011  def do_get_outputs(self, m, pis):
4012  r"""do_get_outputs(CentroidOfRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4013  return _IMP_core.CentroidOfRefined_do_get_outputs(self, m, pis)
4014 
4015  def get_version_info(self):
4016  r"""get_version_info(CentroidOfRefined self) -> VersionInfo"""
4017  return _IMP_core.CentroidOfRefined_get_version_info(self)
4018  __swig_destroy__ = _IMP_core.delete_CentroidOfRefined
4019 
4020  def __str__(self):
4021  r"""__str__(CentroidOfRefined self) -> std::string"""
4022  return _IMP_core.CentroidOfRefined___str__(self)
4023 
4024  def __repr__(self):
4025  r"""__repr__(CentroidOfRefined self) -> std::string"""
4026  return _IMP_core.CentroidOfRefined___repr__(self)
4027 
4028  @staticmethod
4029  def get_from(o):
4030  return _object_cast_to_CentroidOfRefined(o)
4031 
4032 
4033 # Register CentroidOfRefined in _IMP_core:
4034 _IMP_core.CentroidOfRefined_swigregister(CentroidOfRefined)
4035 class Centroid(XYZ):
4036  r"""Proxy of C++ IMP::core::Centroid class."""
4037 
4038  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4039 
4040  def get_constraint(self):
4041  r"""get_constraint(Centroid self) -> Constraint"""
4042  return _IMP_core.Centroid_get_constraint(self)
4043 
4044  def __init__(self, *args):
4045  r"""
4046  __init__(Centroid self) -> Centroid
4047  __init__(Centroid self, Model m, ParticleIndex id) -> Centroid
4048  __init__(Centroid self, _ParticleAdaptor d) -> Centroid
4049  """
4050  _IMP_core.Centroid_swiginit(self, _IMP_core.new_Centroid(*args))
4051 
4052  def show(self, *args):
4053  r"""show(Centroid self, _ostream out=std::cout)"""
4054  return _IMP_core.Centroid_show(self, *args)
4055 
4056  @staticmethod
4057  def setup_particle(*args):
4058  r"""
4059  setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor members) -> Centroid
4060  setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor members) -> Centroid
4061  setup_particle(Model m, ParticleIndex pi, Refiner refiner) -> Centroid
4062  setup_particle(_ParticleAdaptor pa, Refiner refiner) -> Centroid
4063  """
4064  return _IMP_core.Centroid_setup_particle(*args)
4065 
4066  @staticmethod
4067  def get_is_setup(*args):
4068  r"""
4069  get_is_setup(_ParticleAdaptor p) -> bool
4070  get_is_setup(Model m, ParticleIndex pi) -> bool
4071  """
4072  return _IMP_core.Centroid_get_is_setup(*args)
4073 
4074  def add_attribute(self, *args):
4075  r"""
4076  add_attribute(Centroid self, FloatKey k, IMP::Float v, bool opt)
4077  add_attribute(Centroid self, FloatKey a0, IMP::Float a1)
4078  add_attribute(Centroid self, IntKey a0, IMP::Int a1)
4079  add_attribute(Centroid self, FloatsKey a0, IMP::Floats a1)
4080  add_attribute(Centroid self, IntsKey a0, IMP::Ints a1)
4081  add_attribute(Centroid self, StringKey a0, IMP::String a1)
4082  add_attribute(Centroid self, ParticleIndexKey a0, Particle a1)
4083  add_attribute(Centroid self, ObjectKey a0, Object a1)
4084  """
4085  return _IMP_core.Centroid_add_attribute(self, *args)
4086 
4087  def get_value(self, *args):
4088  r"""
4089  get_value(Centroid self, FloatKey a0) -> IMP::Float
4090  get_value(Centroid self, IntKey a0) -> IMP::Int
4091  get_value(Centroid self, FloatsKey a0) -> IMP::Floats
4092  get_value(Centroid self, IntsKey a0) -> IMP::Ints
4093  get_value(Centroid self, StringKey a0) -> IMP::String
4094  get_value(Centroid self, ParticleIndexKey a0) -> Particle
4095  get_value(Centroid self, ObjectKey a0) -> Object
4096  """
4097  return _IMP_core.Centroid_get_value(self, *args)
4098 
4099  def set_value(self, *args):
4100  r"""
4101  set_value(Centroid self, FloatKey a0, IMP::Float a1)
4102  set_value(Centroid self, IntKey a0, IMP::Int a1)
4103  set_value(Centroid self, FloatsKey a0, IMP::Floats a1)
4104  set_value(Centroid self, IntsKey a0, IMP::Ints a1)
4105  set_value(Centroid self, StringKey a0, IMP::String a1)
4106  set_value(Centroid self, ParticleIndexKey a0, Particle a1)
4107  set_value(Centroid self, ObjectKey a0, Object a1)
4108  """
4109  return _IMP_core.Centroid_set_value(self, *args)
4110 
4111  def remove_attribute(self, *args):
4112  r"""
4113  remove_attribute(Centroid self, FloatKey a0)
4114  remove_attribute(Centroid self, IntKey a0)
4115  remove_attribute(Centroid self, FloatsKey a0)
4116  remove_attribute(Centroid self, IntsKey a0)
4117  remove_attribute(Centroid self, StringKey a0)
4118  remove_attribute(Centroid self, ParticleIndexKey a0)
4119  remove_attribute(Centroid self, ObjectKey a0)
4120  """
4121  return _IMP_core.Centroid_remove_attribute(self, *args)
4122 
4123  def has_attribute(self, *args):
4124  r"""
4125  has_attribute(Centroid self, FloatKey a0) -> bool
4126  has_attribute(Centroid self, IntKey a0) -> bool
4127  has_attribute(Centroid self, FloatsKey a0) -> bool
4128  has_attribute(Centroid self, IntsKey a0) -> bool
4129  has_attribute(Centroid self, StringKey a0) -> bool
4130  has_attribute(Centroid self, ParticleIndexKey a0) -> bool
4131  has_attribute(Centroid self, ObjectKey a0) -> bool
4132  """
4133  return _IMP_core.Centroid_has_attribute(self, *args)
4134 
4135  def get_derivative(self, a0):
4136  r"""get_derivative(Centroid self, FloatKey a0) -> double"""
4137  return _IMP_core.Centroid_get_derivative(self, a0)
4138 
4139  def get_name(self):
4140  r"""get_name(Centroid self) -> std::string"""
4141  return _IMP_core.Centroid_get_name(self)
4142 
4143  def clear_caches(self):
4144  r"""clear_caches(Centroid self)"""
4145  return _IMP_core.Centroid_clear_caches(self)
4146 
4147  def set_name(self, a0):
4148  r"""set_name(Centroid self, std::string a0)"""
4149  return _IMP_core.Centroid_set_name(self, a0)
4150 
4151  def set_check_level(self, a0):
4152  r"""set_check_level(Centroid self, IMP::CheckLevel a0)"""
4153  return _IMP_core.Centroid_set_check_level(self, a0)
4154 
4155  def add_to_derivative(self, a0, a1, a2):
4156  r"""add_to_derivative(Centroid self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4157  return _IMP_core.Centroid_add_to_derivative(self, a0, a1, a2)
4158 
4159  def set_is_optimized(self, a0, a1):
4160  r"""set_is_optimized(Centroid self, FloatKey a0, bool a1)"""
4161  return _IMP_core.Centroid_set_is_optimized(self, a0, a1)
4162 
4163  def get_is_optimized(self, a0):
4164  r"""get_is_optimized(Centroid self, FloatKey a0) -> bool"""
4165  return _IMP_core.Centroid_get_is_optimized(self, a0)
4166 
4167  def get_check_level(self):
4168  r"""get_check_level(Centroid self) -> IMP::CheckLevel"""
4169  return _IMP_core.Centroid_get_check_level(self)
4170 
4171  def __eq__(self, *args):
4172  r"""
4173  __eq__(Centroid self, Centroid o) -> bool
4174  __eq__(Centroid self, Particle d) -> bool
4175  """
4176  return _IMP_core.Centroid___eq__(self, *args)
4177 
4178  def __ne__(self, *args):
4179  r"""
4180  __ne__(Centroid self, Centroid o) -> bool
4181  __ne__(Centroid self, Particle d) -> bool
4182  """
4183  return _IMP_core.Centroid___ne__(self, *args)
4184 
4185  def __le__(self, *args):
4186  r"""
4187  __le__(Centroid self, Centroid o) -> bool
4188  __le__(Centroid self, Particle d) -> bool
4189  """
4190  return _IMP_core.Centroid___le__(self, *args)
4191 
4192  def __lt__(self, *args):
4193  r"""
4194  __lt__(Centroid self, Centroid o) -> bool
4195  __lt__(Centroid self, Particle d) -> bool
4196  """
4197  return _IMP_core.Centroid___lt__(self, *args)
4198 
4199  def __ge__(self, *args):
4200  r"""
4201  __ge__(Centroid self, Centroid o) -> bool
4202  __ge__(Centroid self, Particle d) -> bool
4203  """
4204  return _IMP_core.Centroid___ge__(self, *args)
4205 
4206  def __gt__(self, *args):
4207  r"""
4208  __gt__(Centroid self, Centroid o) -> bool
4209  __gt__(Centroid self, Particle d) -> bool
4210  """
4211  return _IMP_core.Centroid___gt__(self, *args)
4212 
4213  def __hash__(self):
4214  r"""__hash__(Centroid self) -> std::size_t"""
4215  return _IMP_core.Centroid___hash__(self)
4216 
4217  def __str__(self):
4218  r"""__str__(Centroid self) -> std::string"""
4219  return _IMP_core.Centroid___str__(self)
4220 
4221  def __repr__(self):
4222  r"""__repr__(Centroid self) -> std::string"""
4223  return _IMP_core.Centroid___repr__(self)
4224 
4225  def _get_as_binary(self):
4226  r"""_get_as_binary(Centroid self) -> PyObject *"""
4227  return _IMP_core.Centroid__get_as_binary(self)
4228 
4229  def _set_from_binary(self, p):
4230  r"""_set_from_binary(Centroid self, PyObject * p)"""
4231  return _IMP_core.Centroid__set_from_binary(self, p)
4232 
4233  def __getstate__(self):
4234  p = self._get_as_binary()
4235  if len(self.__dict__) > 1:
4236  d = self.__dict__.copy()
4237  del d['this']
4238  p = (d, p)
4239  return p
4240 
4241  def __setstate__(self, p):
4242  if not hasattr(self, 'this'):
4243  self.__init__()
4244  if isinstance(p, tuple):
4245  d, p = p
4246  self.__dict__.update(d)
4247  return self._set_from_binary(p)
4248 
4249  __swig_destroy__ = _IMP_core.delete_Centroid
4250 
4251 # Register Centroid in _IMP_core:
4252 _IMP_core.Centroid_swigregister(Centroid)
4253 class ChecksScoreState(IMP.ScoreState):
4254  r"""Proxy of C++ IMP::core::ChecksScoreState class."""
4255 
4256  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4257 
4258  def __init__(self, *args):
4259  r"""
4260  __init__(ChecksScoreState self, Model m, double probability) -> ChecksScoreState
4261  __init__(ChecksScoreState self) -> ChecksScoreState
4262  """
4263  _IMP_core.ChecksScoreState_swiginit(self, _IMP_core.new_ChecksScoreState(*args))
4264 
4265  def get_number_of_checked(self):
4266  r"""get_number_of_checked(ChecksScoreState self) -> unsigned int"""
4267  return _IMP_core.ChecksScoreState_get_number_of_checked(self)
4268 
4269  def do_before_evaluate(self):
4270  r"""do_before_evaluate(ChecksScoreState self)"""
4271  return _IMP_core.ChecksScoreState_do_before_evaluate(self)
4272 
4273  def do_after_evaluate(self, da):
4274  r"""do_after_evaluate(ChecksScoreState self, DerivativeAccumulator da)"""
4275  return _IMP_core.ChecksScoreState_do_after_evaluate(self, da)
4276 
4277  def do_get_outputs(self):
4278  r"""do_get_outputs(ChecksScoreState self) -> IMP::ModelObjectsTemp"""
4279  return _IMP_core.ChecksScoreState_do_get_outputs(self)
4280 
4281  def do_get_inputs(self):
4282  r"""do_get_inputs(ChecksScoreState self) -> IMP::ModelObjectsTemp"""
4283  return _IMP_core.ChecksScoreState_do_get_inputs(self)
4284 
4285  def get_version_info(self):
4286  r"""get_version_info(ChecksScoreState self) -> VersionInfo"""
4287  return _IMP_core.ChecksScoreState_get_version_info(self)
4288  __swig_destroy__ = _IMP_core.delete_ChecksScoreState
4289 
4290  def __str__(self):
4291  r"""__str__(ChecksScoreState self) -> std::string"""
4292  return _IMP_core.ChecksScoreState___str__(self)
4293 
4294  def __repr__(self):
4295  r"""__repr__(ChecksScoreState self) -> std::string"""
4296  return _IMP_core.ChecksScoreState___repr__(self)
4297 
4298  @staticmethod
4299  def get_from(o):
4300  return _object_cast_to_ChecksScoreState(o)
4301 
4302 
4303  def _get_as_binary(self):
4304  r"""_get_as_binary(ChecksScoreState self) -> PyObject *"""
4305  return _IMP_core.ChecksScoreState__get_as_binary(self)
4306 
4307  def _set_from_binary(self, p):
4308  r"""_set_from_binary(ChecksScoreState self, PyObject * p)"""
4309  return _IMP_core.ChecksScoreState__set_from_binary(self, p)
4310 
4311  def __getstate__(self):
4312  p = self._get_as_binary()
4313  if len(self.__dict__) > 1:
4314  d = self.__dict__.copy()
4315  del d['this']
4316  p = (d, p)
4317  return p
4318 
4319  def __setstate__(self, p):
4320  if not hasattr(self, 'this'):
4321  self.__init__()
4322  if isinstance(p, tuple):
4323  d, p = p
4324  self.__dict__.update(d)
4325  return self._set_from_binary(p)
4326 
4327 
4328 # Register ChecksScoreState in _IMP_core:
4329 _IMP_core.ChecksScoreState_swigregister(ChecksScoreState)
4330 class ChildrenRefiner(IMP.Refiner):
4331  r"""Proxy of C++ IMP::core::ChildrenRefiner class."""
4332 
4333  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4334 
4335  def __init__(self, tr):
4336  r"""__init__(ChildrenRefiner self, HierarchyTraits tr) -> ChildrenRefiner"""
4337  _IMP_core.ChildrenRefiner_swiginit(self, _IMP_core.new_ChildrenRefiner(tr))
4338 
4339  def do_get_inputs(self, m, pis):
4340  r"""do_get_inputs(ChildrenRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4341  return _IMP_core.ChildrenRefiner_do_get_inputs(self, m, pis)
4342 
4343  def get_version_info(self):
4344  r"""get_version_info(ChildrenRefiner self) -> VersionInfo"""
4345  return _IMP_core.ChildrenRefiner_get_version_info(self)
4346  __swig_destroy__ = _IMP_core.delete_ChildrenRefiner
4347 
4348  def __str__(self):
4349  r"""__str__(ChildrenRefiner self) -> std::string"""
4350  return _IMP_core.ChildrenRefiner___str__(self)
4351 
4352  def __repr__(self):
4353  r"""__repr__(ChildrenRefiner self) -> std::string"""
4354  return _IMP_core.ChildrenRefiner___repr__(self)
4355 
4356  @staticmethod
4357  def get_from(o):
4358  return _object_cast_to_ChildrenRefiner(o)
4359 
4360 
4361 # Register ChildrenRefiner in _IMP_core:
4362 _IMP_core.ChildrenRefiner_swigregister(ChildrenRefiner)
4363 class ClosedCubicSpline(IMP.UnaryFunction):
4364  r"""Proxy of C++ IMP::core::ClosedCubicSpline class."""
4365 
4366  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4367 
4368  def __init__(self, values, minrange, spacing):
4369  r"""__init__(ClosedCubicSpline self, IMP::Floats const & values, double minrange, double spacing) -> ClosedCubicSpline"""
4370  _IMP_core.ClosedCubicSpline_swiginit(self, _IMP_core.new_ClosedCubicSpline(values, minrange, spacing))
4371 
4372  def get_version_info(self):
4373  r"""get_version_info(ClosedCubicSpline self) -> VersionInfo"""
4374  return _IMP_core.ClosedCubicSpline_get_version_info(self)
4375  __swig_destroy__ = _IMP_core.delete_ClosedCubicSpline
4376 
4377  def do_show(self, out):
4378  r"""do_show(ClosedCubicSpline self, _ostream out)"""
4379  return _IMP_core.ClosedCubicSpline_do_show(self, out)
4380 
4381  def __str__(self):
4382  r"""__str__(ClosedCubicSpline self) -> std::string"""
4383  return _IMP_core.ClosedCubicSpline___str__(self)
4384 
4385  def __repr__(self):
4386  r"""__repr__(ClosedCubicSpline self) -> std::string"""
4387  return _IMP_core.ClosedCubicSpline___repr__(self)
4388 
4389  @staticmethod
4390  def get_from(o):
4391  return _object_cast_to_ClosedCubicSpline(o)
4392 
4393 
4394 # Register ClosedCubicSpline in _IMP_core:
4395 _IMP_core.ClosedCubicSpline_swigregister(ClosedCubicSpline)
4396 class KClosePairsPairScore(IMP.PairScore):
4397  r"""Proxy of C++ IMP::core::KClosePairsPairScore class."""
4398 
4399  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4400 
4401  def __init__(self, f, r, k=1):
4402  r"""__init__(KClosePairsPairScore self, PairScore f, Refiner r, int k=1) -> KClosePairsPairScore"""
4403  _IMP_core.KClosePairsPairScore_swiginit(self, _IMP_core.new_KClosePairsPairScore(f, r, k))
4404 
4405  def get_close_pairs(self, pp):
4406  r"""get_close_pairs(KClosePairsPairScore self, IMP::ParticlePair const & pp) -> IMP::ParticlePairsTemp"""
4407  return _IMP_core.KClosePairsPairScore_get_close_pairs(self, pp)
4408 
4409  def create_current_decomposition(self, m, vt):
4410  r"""create_current_decomposition(KClosePairsPairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
4411  return _IMP_core.KClosePairsPairScore_create_current_decomposition(self, m, vt)
4412 
4413  def do_get_inputs(self, m, pis):
4414  r"""do_get_inputs(KClosePairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4415  return _IMP_core.KClosePairsPairScore_do_get_inputs(self, m, pis)
4416 
4417  def get_version_info(self):
4418  r"""get_version_info(KClosePairsPairScore self) -> VersionInfo"""
4419  return _IMP_core.KClosePairsPairScore_get_version_info(self)
4420  __swig_destroy__ = _IMP_core.delete_KClosePairsPairScore
4421 
4422  def __str__(self):
4423  r"""__str__(KClosePairsPairScore self) -> std::string"""
4424  return _IMP_core.KClosePairsPairScore___str__(self)
4425 
4426  def __repr__(self):
4427  r"""__repr__(KClosePairsPairScore self) -> std::string"""
4428  return _IMP_core.KClosePairsPairScore___repr__(self)
4429 
4430  @staticmethod
4431  def get_from(o):
4432  return _object_cast_to_KClosePairsPairScore(o)
4433 
4434 
4435 # Register KClosePairsPairScore in _IMP_core:
4436 _IMP_core.KClosePairsPairScore_swigregister(KClosePairsPairScore)
4437 class ClosePairsPairScore(IMP.PairScore):
4438  r"""Proxy of C++ IMP::core::ClosePairsPairScore class."""
4439 
4440  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4441 
4442  def __init__(self, f, r, max_distance):
4443  r"""__init__(ClosePairsPairScore self, PairScore f, Refiner r, IMP::Float max_distance) -> ClosePairsPairScore"""
4444  _IMP_core.ClosePairsPairScore_swiginit(self, _IMP_core.new_ClosePairsPairScore(f, r, max_distance))
4445 
4446  def get_close_pairs(self, pp):
4447  r"""get_close_pairs(ClosePairsPairScore self, IMP::ParticlePair const & pp) -> IMP::ParticlePairsTemp"""
4448  return _IMP_core.ClosePairsPairScore_get_close_pairs(self, pp)
4449 
4450  def create_current_decomposition(self, m, vt):
4451  r"""create_current_decomposition(ClosePairsPairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
4452  return _IMP_core.ClosePairsPairScore_create_current_decomposition(self, m, vt)
4453 
4454  def do_get_inputs(self, m, pis):
4455  r"""do_get_inputs(ClosePairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4456  return _IMP_core.ClosePairsPairScore_do_get_inputs(self, m, pis)
4457 
4458  def get_version_info(self):
4459  r"""get_version_info(ClosePairsPairScore self) -> VersionInfo"""
4460  return _IMP_core.ClosePairsPairScore_get_version_info(self)
4461  __swig_destroy__ = _IMP_core.delete_ClosePairsPairScore
4462 
4463  def __str__(self):
4464  r"""__str__(ClosePairsPairScore self) -> std::string"""
4465  return _IMP_core.ClosePairsPairScore___str__(self)
4466 
4467  def __repr__(self):
4468  r"""__repr__(ClosePairsPairScore self) -> std::string"""
4469  return _IMP_core.ClosePairsPairScore___repr__(self)
4470 
4471  @staticmethod
4472  def get_from(o):
4473  return _object_cast_to_ClosePairsPairScore(o)
4474 
4475 
4476 # Register ClosePairsPairScore in _IMP_core:
4477 _IMP_core.ClosePairsPairScore_swigregister(ClosePairsPairScore)
4478 class ConjugateGradients(IMP.AttributeOptimizer):
4479  r"""Proxy of C++ IMP::core::ConjugateGradients class."""
4480 
4481  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4482 
4483  def __init__(self, *args):
4484  r"""
4485  __init__(ConjugateGradients self, Model m, std::string name="ConjugateGradients%1%") -> ConjugateGradients
4486  __init__(ConjugateGradients self) -> ConjugateGradients
4487  """
4488  _IMP_core.ConjugateGradients_swiginit(self, _IMP_core.new_ConjugateGradients(*args))
4489 
4490  def set_gradient_threshold(self, t):
4491  r"""set_gradient_threshold(ConjugateGradients self, IMP::Float t)"""
4492  return _IMP_core.ConjugateGradients_set_gradient_threshold(self, t)
4493 
4494  def set_threshold(self, t):
4495  r"""set_threshold(ConjugateGradients self, IMP::Float t)"""
4496  return _IMP_core.ConjugateGradients_set_threshold(self, t)
4497 
4498  def set_max_change(self, t):
4499  r"""set_max_change(ConjugateGradients self, IMP::Float t)"""
4500  return _IMP_core.ConjugateGradients_set_max_change(self, t)
4501 
4502  def do_optimize(self, max_steps):
4503  r"""do_optimize(ConjugateGradients self, unsigned int max_steps) -> IMP::Float"""
4504  return _IMP_core.ConjugateGradients_do_optimize(self, max_steps)
4505 
4506  def get_version_info(self):
4507  r"""get_version_info(ConjugateGradients self) -> VersionInfo"""
4508  return _IMP_core.ConjugateGradients_get_version_info(self)
4509  __swig_destroy__ = _IMP_core.delete_ConjugateGradients
4510 
4511  def __str__(self):
4512  r"""__str__(ConjugateGradients self) -> std::string"""
4513  return _IMP_core.ConjugateGradients___str__(self)
4514 
4515  def __repr__(self):
4516  r"""__repr__(ConjugateGradients self) -> std::string"""
4517  return _IMP_core.ConjugateGradients___repr__(self)
4518 
4519  @staticmethod
4520  def get_from(o):
4521  return _object_cast_to_ConjugateGradients(o)
4522 
4523 
4524  def _get_as_binary(self):
4525  r"""_get_as_binary(ConjugateGradients self) -> PyObject *"""
4526  return _IMP_core.ConjugateGradients__get_as_binary(self)
4527 
4528  def _set_from_binary(self, p):
4529  r"""_set_from_binary(ConjugateGradients self, PyObject * p)"""
4530  return _IMP_core.ConjugateGradients__set_from_binary(self, p)
4531 
4532  def __getstate__(self):
4533  p = self._get_as_binary()
4534  if len(self.__dict__) > 1:
4535  d = self.__dict__.copy()
4536  del d['this']
4537  p = (d, p)
4538  return p
4539 
4540  def __setstate__(self, p):
4541  if not hasattr(self, 'this'):
4542  self.__init__()
4543  if isinstance(p, tuple):
4544  d, p = p
4545  self.__dict__.update(d)
4546  return self._set_from_binary(p)
4547 
4548 
4549 # Register ConjugateGradients in _IMP_core:
4550 _IMP_core.ConjugateGradients_swigregister(ConjugateGradients)
4551 class ConnectivityRestraint(IMP.Restraint):
4552  r"""Proxy of C++ IMP::core::ConnectivityRestraint class."""
4553 
4554  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4555 
4556  def __init__(self, ps, sc):
4557  r"""__init__(ConnectivityRestraint self, PairScore ps, _SingletonContainerAdaptor sc) -> ConnectivityRestraint"""
4558  _IMP_core.ConnectivityRestraint_swiginit(self, _IMP_core.new_ConnectivityRestraint(ps, sc))
4559 
4560  def get_connected_index_pairs(self):
4561  r"""get_connected_index_pairs(ConnectivityRestraint self) -> IMP::ParticleIndexPairs"""
4562  return _IMP_core.ConnectivityRestraint_get_connected_index_pairs(self)
4563 
4564  def get_pair_score(self):
4565  r"""get_pair_score(ConnectivityRestraint self) -> PairScore"""
4566  return _IMP_core.ConnectivityRestraint_get_pair_score(self)
4567 
4568  def do_create_current_decomposition(self):
4569  r"""do_create_current_decomposition(ConnectivityRestraint self) -> IMP::Restraints"""
4570  return _IMP_core.ConnectivityRestraint_do_create_current_decomposition(self)
4571 
4572  def do_get_inputs(self):
4573  r"""do_get_inputs(ConnectivityRestraint self) -> IMP::ModelObjectsTemp"""
4574  return _IMP_core.ConnectivityRestraint_do_get_inputs(self)
4575 
4576  def get_version_info(self):
4577  r"""get_version_info(ConnectivityRestraint self) -> VersionInfo"""
4578  return _IMP_core.ConnectivityRestraint_get_version_info(self)
4579  __swig_destroy__ = _IMP_core.delete_ConnectivityRestraint
4580 
4581  def __str__(self):
4582  r"""__str__(ConnectivityRestraint self) -> std::string"""
4583  return _IMP_core.ConnectivityRestraint___str__(self)
4584 
4585  def __repr__(self):
4586  r"""__repr__(ConnectivityRestraint self) -> std::string"""
4587  return _IMP_core.ConnectivityRestraint___repr__(self)
4588 
4589  @staticmethod
4590  def get_from(o):
4591  return _object_cast_to_ConnectivityRestraint(o)
4592 
4593 
4594 # Register ConnectivityRestraint in _IMP_core:
4595 _IMP_core.ConnectivityRestraint_swigregister(ConnectivityRestraint)
4596 class ConstantRestraint(IMP.Restraint):
4597  r"""Proxy of C++ IMP::core::ConstantRestraint class."""
4598 
4599  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4600 
4601  def __init__(self, *args):
4602  r"""
4603  __init__(ConstantRestraint self, Model m, IMP::Float v) -> ConstantRestraint
4604  __init__(ConstantRestraint self) -> ConstantRestraint
4605  """
4606  _IMP_core.ConstantRestraint_swiginit(self, _IMP_core.new_ConstantRestraint(*args))
4607 
4608  def do_get_inputs(self):
4609  r"""do_get_inputs(ConstantRestraint self) -> IMP::ModelObjectsTemp"""
4610  return _IMP_core.ConstantRestraint_do_get_inputs(self)
4611 
4612  def get_version_info(self):
4613  r"""get_version_info(ConstantRestraint self) -> VersionInfo"""
4614  return _IMP_core.ConstantRestraint_get_version_info(self)
4615  __swig_destroy__ = _IMP_core.delete_ConstantRestraint
4616 
4617  def __str__(self):
4618  r"""__str__(ConstantRestraint self) -> std::string"""
4619  return _IMP_core.ConstantRestraint___str__(self)
4620 
4621  def __repr__(self):
4622  r"""__repr__(ConstantRestraint self) -> std::string"""
4623  return _IMP_core.ConstantRestraint___repr__(self)
4624 
4625  @staticmethod
4626  def get_from(o):
4627  return _object_cast_to_ConstantRestraint(o)
4628 
4629 
4630  def _get_as_binary(self):
4631  r"""_get_as_binary(ConstantRestraint self) -> PyObject *"""
4632  return _IMP_core.ConstantRestraint__get_as_binary(self)
4633 
4634  def _set_from_binary(self, p):
4635  r"""_set_from_binary(ConstantRestraint self, PyObject * p)"""
4636  return _IMP_core.ConstantRestraint__set_from_binary(self, p)
4637 
4638  def __getstate__(self):
4639  p = self._get_as_binary()
4640  if len(self.__dict__) > 1:
4641  d = self.__dict__.copy()
4642  del d['this']
4643  p = (d, p)
4644  return p
4645 
4646  def __setstate__(self, p):
4647  if not hasattr(self, 'this'):
4648  self.__init__()
4649  if isinstance(p, tuple):
4650  d, p = p
4651  self.__dict__.update(d)
4652  return self._set_from_binary(p)
4653 
4654 
4655 # Register ConstantRestraint in _IMP_core:
4656 _IMP_core.ConstantRestraint_swigregister(ConstantRestraint)
4657 class Cosine(IMP.UnaryFunction):
4658  r"""Proxy of C++ IMP::core::Cosine class."""
4659 
4660  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4661 
4662  def __init__(self, *args):
4663  r"""
4664  __init__(Cosine self, IMP::Float force_constant, int periodicity, IMP::Float phase) -> Cosine
4665  __init__(Cosine self) -> Cosine
4666  """
4667  _IMP_core.Cosine_swiginit(self, _IMP_core.new_Cosine(*args))
4668 
4669  def get_version_info(self):
4670  r"""get_version_info(Cosine self) -> VersionInfo"""
4671  return _IMP_core.Cosine_get_version_info(self)
4672  __swig_destroy__ = _IMP_core.delete_Cosine
4673 
4674  def do_show(self, out):
4675  r"""do_show(Cosine self, _ostream out)"""
4676  return _IMP_core.Cosine_do_show(self, out)
4677 
4678  def __str__(self):
4679  r"""__str__(Cosine self) -> std::string"""
4680  return _IMP_core.Cosine___str__(self)
4681 
4682  def __repr__(self):
4683  r"""__repr__(Cosine self) -> std::string"""
4684  return _IMP_core.Cosine___repr__(self)
4685 
4686  @staticmethod
4687  def get_from(o):
4688  return _object_cast_to_Cosine(o)
4689 
4690 
4691  def _get_as_binary(self):
4692  r"""_get_as_binary(Cosine self) -> PyObject *"""
4693  return _IMP_core.Cosine__get_as_binary(self)
4694 
4695  def _set_from_binary(self, p):
4696  r"""_set_from_binary(Cosine self, PyObject * p)"""
4697  return _IMP_core.Cosine__set_from_binary(self, p)
4698 
4699  def __getstate__(self):
4700  p = self._get_as_binary()
4701  if len(self.__dict__) > 1:
4702  d = self.__dict__.copy()
4703  del d['this']
4704  p = (d, p)
4705  return p
4706 
4707  def __setstate__(self, p):
4708  if not hasattr(self, 'this'):
4709  self.__init__()
4710  if isinstance(p, tuple):
4711  d, p = p
4712  self.__dict__.update(d)
4713  return self._set_from_binary(p)
4714 
4715 
4716 # Register Cosine in _IMP_core:
4717 _IMP_core.Cosine_swigregister(Cosine)
4718 class CoverRefined(IMP.SingletonModifier):
4719  r"""Proxy of C++ IMP::core::CoverRefined class."""
4720 
4721  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4722 
4723  def __init__(self, ref, slack=0):
4724  r"""__init__(CoverRefined self, Refiner ref, IMP::Float slack=0) -> CoverRefined"""
4725  _IMP_core.CoverRefined_swiginit(self, _IMP_core.new_CoverRefined(ref, slack))
4726 
4727  def set_slack(self, slack):
4728  r"""set_slack(CoverRefined self, IMP::Float slack)"""
4729  return _IMP_core.CoverRefined_set_slack(self, slack)
4730 
4731  def do_get_inputs(self, m, pis):
4732  r"""do_get_inputs(CoverRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4733  return _IMP_core.CoverRefined_do_get_inputs(self, m, pis)
4734 
4735  def do_get_outputs(self, m, pis):
4736  r"""do_get_outputs(CoverRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4737  return _IMP_core.CoverRefined_do_get_outputs(self, m, pis)
4738 
4739  def get_version_info(self):
4740  r"""get_version_info(CoverRefined self) -> VersionInfo"""
4741  return _IMP_core.CoverRefined_get_version_info(self)
4742  __swig_destroy__ = _IMP_core.delete_CoverRefined
4743 
4744  def __str__(self):
4745  r"""__str__(CoverRefined self) -> std::string"""
4746  return _IMP_core.CoverRefined___str__(self)
4747 
4748  def __repr__(self):
4749  r"""__repr__(CoverRefined self) -> std::string"""
4750  return _IMP_core.CoverRefined___repr__(self)
4751 
4752  @staticmethod
4753  def get_from(o):
4754  return _object_cast_to_CoverRefined(o)
4755 
4756 
4757 # Register CoverRefined in _IMP_core:
4758 _IMP_core.CoverRefined_swigregister(CoverRefined)
4759 class Cover(XYZR):
4760  r"""Proxy of C++ IMP::core::Cover class."""
4761 
4762  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4763 
4764  def get_constraint(self):
4765  r"""get_constraint(Cover self) -> Constraint"""
4766  return _IMP_core.Cover_get_constraint(self)
4767 
4768  def __init__(self, *args):
4769  r"""
4770  __init__(Cover self) -> Cover
4771  __init__(Cover self, Model m, ParticleIndex id) -> Cover
4772  __init__(Cover self, _ParticleAdaptor d) -> Cover
4773  """
4774  _IMP_core.Cover_swiginit(self, _IMP_core.new_Cover(*args))
4775 
4776  def show(self, *args):
4777  r"""show(Cover self, _ostream out=std::cout)"""
4778  return _IMP_core.Cover_show(self, *args)
4779 
4780  @staticmethod
4781  def setup_particle(*args):
4782  r"""
4783  setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor members) -> Cover
4784  setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor members) -> Cover
4785  setup_particle(Model m, ParticleIndex pi, Refiner refiner) -> Cover
4786  setup_particle(_ParticleAdaptor pa, Refiner refiner) -> Cover
4787  """
4788  return _IMP_core.Cover_setup_particle(*args)
4789 
4790  @staticmethod
4791  def get_is_setup(*args):
4792  r"""
4793  get_is_setup(_ParticleAdaptor p) -> bool
4794  get_is_setup(Model m, ParticleIndex pi) -> bool
4795  """
4796  return _IMP_core.Cover_get_is_setup(*args)
4797 
4798  def add_attribute(self, *args):
4799  r"""
4800  add_attribute(Cover self, FloatKey k, IMP::Float v, bool opt)
4801  add_attribute(Cover self, FloatKey a0, IMP::Float a1)
4802  add_attribute(Cover self, IntKey a0, IMP::Int a1)
4803  add_attribute(Cover self, FloatsKey a0, IMP::Floats a1)
4804  add_attribute(Cover self, IntsKey a0, IMP::Ints a1)
4805  add_attribute(Cover self, StringKey a0, IMP::String a1)
4806  add_attribute(Cover self, ParticleIndexKey a0, Particle a1)
4807  add_attribute(Cover self, ObjectKey a0, Object a1)
4808  """
4809  return _IMP_core.Cover_add_attribute(self, *args)
4810 
4811  def get_value(self, *args):
4812  r"""
4813  get_value(Cover self, FloatKey a0) -> IMP::Float
4814  get_value(Cover self, IntKey a0) -> IMP::Int
4815  get_value(Cover self, FloatsKey a0) -> IMP::Floats
4816  get_value(Cover self, IntsKey a0) -> IMP::Ints
4817  get_value(Cover self, StringKey a0) -> IMP::String
4818  get_value(Cover self, ParticleIndexKey a0) -> Particle
4819  get_value(Cover self, ObjectKey a0) -> Object
4820  """
4821  return _IMP_core.Cover_get_value(self, *args)
4822 
4823  def set_value(self, *args):
4824  r"""
4825  set_value(Cover self, FloatKey a0, IMP::Float a1)
4826  set_value(Cover self, IntKey a0, IMP::Int a1)
4827  set_value(Cover self, FloatsKey a0, IMP::Floats a1)
4828  set_value(Cover self, IntsKey a0, IMP::Ints a1)
4829  set_value(Cover self, StringKey a0, IMP::String a1)
4830  set_value(Cover self, ParticleIndexKey a0, Particle a1)
4831  set_value(Cover self, ObjectKey a0, Object a1)
4832  """
4833  return _IMP_core.Cover_set_value(self, *args)
4834 
4835  def remove_attribute(self, *args):
4836  r"""
4837  remove_attribute(Cover self, FloatKey a0)
4838  remove_attribute(Cover self, IntKey a0)
4839  remove_attribute(Cover self, FloatsKey a0)
4840  remove_attribute(Cover self, IntsKey a0)
4841  remove_attribute(Cover self, StringKey a0)
4842  remove_attribute(Cover self, ParticleIndexKey a0)
4843  remove_attribute(Cover self, ObjectKey a0)
4844  """
4845  return _IMP_core.Cover_remove_attribute(self, *args)
4846 
4847  def has_attribute(self, *args):
4848  r"""
4849  has_attribute(Cover self, FloatKey a0) -> bool
4850  has_attribute(Cover self, IntKey a0) -> bool
4851  has_attribute(Cover self, FloatsKey a0) -> bool
4852  has_attribute(Cover self, IntsKey a0) -> bool
4853  has_attribute(Cover self, StringKey a0) -> bool
4854  has_attribute(Cover self, ParticleIndexKey a0) -> bool
4855  has_attribute(Cover self, ObjectKey a0) -> bool
4856  """
4857  return _IMP_core.Cover_has_attribute(self, *args)
4858 
4859  def get_derivative(self, a0):
4860  r"""get_derivative(Cover self, FloatKey a0) -> double"""
4861  return _IMP_core.Cover_get_derivative(self, a0)
4862 
4863  def get_name(self):
4864  r"""get_name(Cover self) -> std::string"""
4865  return _IMP_core.Cover_get_name(self)
4866 
4867  def clear_caches(self):
4868  r"""clear_caches(Cover self)"""
4869  return _IMP_core.Cover_clear_caches(self)
4870 
4871  def set_name(self, a0):
4872  r"""set_name(Cover self, std::string a0)"""
4873  return _IMP_core.Cover_set_name(self, a0)
4874 
4875  def set_check_level(self, a0):
4876  r"""set_check_level(Cover self, IMP::CheckLevel a0)"""
4877  return _IMP_core.Cover_set_check_level(self, a0)
4878 
4879  def add_to_derivative(self, a0, a1, a2):
4880  r"""add_to_derivative(Cover self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4881  return _IMP_core.Cover_add_to_derivative(self, a0, a1, a2)
4882 
4883  def set_is_optimized(self, a0, a1):
4884  r"""set_is_optimized(Cover self, FloatKey a0, bool a1)"""
4885  return _IMP_core.Cover_set_is_optimized(self, a0, a1)
4886 
4887  def get_is_optimized(self, a0):
4888  r"""get_is_optimized(Cover self, FloatKey a0) -> bool"""
4889  return _IMP_core.Cover_get_is_optimized(self, a0)
4890 
4891  def get_check_level(self):
4892  r"""get_check_level(Cover self) -> IMP::CheckLevel"""
4893  return _IMP_core.Cover_get_check_level(self)
4894 
4895  def __eq__(self, *args):
4896  r"""
4897  __eq__(Cover self, Cover o) -> bool
4898  __eq__(Cover self, Particle d) -> bool
4899  """
4900  return _IMP_core.Cover___eq__(self, *args)
4901 
4902  def __ne__(self, *args):
4903  r"""
4904  __ne__(Cover self, Cover o) -> bool
4905  __ne__(Cover self, Particle d) -> bool
4906  """
4907  return _IMP_core.Cover___ne__(self, *args)
4908 
4909  def __le__(self, *args):
4910  r"""
4911  __le__(Cover self, Cover o) -> bool
4912  __le__(Cover self, Particle d) -> bool
4913  """
4914  return _IMP_core.Cover___le__(self, *args)
4915 
4916  def __lt__(self, *args):
4917  r"""
4918  __lt__(Cover self, Cover o) -> bool
4919  __lt__(Cover self, Particle d) -> bool
4920  """
4921  return _IMP_core.Cover___lt__(self, *args)
4922 
4923  def __ge__(self, *args):
4924  r"""
4925  __ge__(Cover self, Cover o) -> bool
4926  __ge__(Cover self, Particle d) -> bool
4927  """
4928  return _IMP_core.Cover___ge__(self, *args)
4929 
4930  def __gt__(self, *args):
4931  r"""
4932  __gt__(Cover self, Cover o) -> bool
4933  __gt__(Cover self, Particle d) -> bool
4934  """
4935  return _IMP_core.Cover___gt__(self, *args)
4936 
4937  def __hash__(self):
4938  r"""__hash__(Cover self) -> std::size_t"""
4939  return _IMP_core.Cover___hash__(self)
4940 
4941  def __str__(self):
4942  r"""__str__(Cover self) -> std::string"""
4943  return _IMP_core.Cover___str__(self)
4944 
4945  def __repr__(self):
4946  r"""__repr__(Cover self) -> std::string"""
4947  return _IMP_core.Cover___repr__(self)
4948 
4949  def _get_as_binary(self):
4950  r"""_get_as_binary(Cover self) -> PyObject *"""
4951  return _IMP_core.Cover__get_as_binary(self)
4952 
4953  def _set_from_binary(self, p):
4954  r"""_set_from_binary(Cover self, PyObject * p)"""
4955  return _IMP_core.Cover__set_from_binary(self, p)
4956 
4957  def __getstate__(self):
4958  p = self._get_as_binary()
4959  if len(self.__dict__) > 1:
4960  d = self.__dict__.copy()
4961  del d['this']
4962  p = (d, p)
4963  return p
4964 
4965  def __setstate__(self, p):
4966  if not hasattr(self, 'this'):
4967  self.__init__()
4968  if isinstance(p, tuple):
4969  d, p = p
4970  self.__dict__.update(d)
4971  return self._set_from_binary(p)
4972 
4973  __swig_destroy__ = _IMP_core.delete_Cover
4974 
4975 # Register Cover in _IMP_core:
4976 _IMP_core.Cover_swigregister(Cover)
4977 class DerivativesFromRefined(IMP.SingletonModifier):
4978  r"""Proxy of C++ IMP::core::DerivativesFromRefined class."""
4979 
4980  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4981 
4982  def __init__(self, *args):
4983  r"""__init__(DerivativesFromRefined self, Refiner r, IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> DerivativesFromRefined"""
4984  _IMP_core.DerivativesFromRefined_swiginit(self, _IMP_core.new_DerivativesFromRefined(*args))
4985 
4986  def do_get_inputs(self, m, pis):
4987  r"""do_get_inputs(DerivativesFromRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4988  return _IMP_core.DerivativesFromRefined_do_get_inputs(self, m, pis)
4989 
4990  def do_get_outputs(self, m, pis):
4991  r"""do_get_outputs(DerivativesFromRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4992  return _IMP_core.DerivativesFromRefined_do_get_outputs(self, m, pis)
4993 
4994  def get_version_info(self):
4995  r"""get_version_info(DerivativesFromRefined self) -> VersionInfo"""
4996  return _IMP_core.DerivativesFromRefined_get_version_info(self)
4997  __swig_destroy__ = _IMP_core.delete_DerivativesFromRefined
4998 
4999  def __str__(self):
5000  r"""__str__(DerivativesFromRefined self) -> std::string"""
5001  return _IMP_core.DerivativesFromRefined___str__(self)
5002 
5003  def __repr__(self):
5004  r"""__repr__(DerivativesFromRefined self) -> std::string"""
5005  return _IMP_core.DerivativesFromRefined___repr__(self)
5006 
5007  @staticmethod
5008  def get_from(o):
5009  return _object_cast_to_DerivativesFromRefined(o)
5010 
5011 
5012 # Register DerivativesFromRefined in _IMP_core:
5013 _IMP_core.DerivativesFromRefined_swigregister(DerivativesFromRefined)
5014 class DerivativesToRefined(IMP.SingletonModifier):
5015  r"""Proxy of C++ IMP::core::DerivativesToRefined class."""
5016 
5017  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5018 
5019  def __init__(self, *args):
5020  r"""__init__(DerivativesToRefined self, Refiner r, IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> DerivativesToRefined"""
5021  _IMP_core.DerivativesToRefined_swiginit(self, _IMP_core.new_DerivativesToRefined(*args))
5022 
5023  def do_get_inputs(self, m, pis):
5024  r"""do_get_inputs(DerivativesToRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5025  return _IMP_core.DerivativesToRefined_do_get_inputs(self, m, pis)
5026 
5027  def do_get_outputs(self, m, pis):
5028  r"""do_get_outputs(DerivativesToRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5029  return _IMP_core.DerivativesToRefined_do_get_outputs(self, m, pis)
5030 
5031  def get_version_info(self):
5032  r"""get_version_info(DerivativesToRefined self) -> VersionInfo"""
5033  return _IMP_core.DerivativesToRefined_get_version_info(self)
5034  __swig_destroy__ = _IMP_core.delete_DerivativesToRefined
5035 
5036  def __str__(self):
5037  r"""__str__(DerivativesToRefined self) -> std::string"""
5038  return _IMP_core.DerivativesToRefined___str__(self)
5039 
5040  def __repr__(self):
5041  r"""__repr__(DerivativesToRefined self) -> std::string"""
5042  return _IMP_core.DerivativesToRefined___repr__(self)
5043 
5044  @staticmethod
5045  def get_from(o):
5046  return _object_cast_to_DerivativesToRefined(o)
5047 
5048 
5049 # Register DerivativesToRefined in _IMP_core:
5050 _IMP_core.DerivativesToRefined_swigregister(DerivativesToRefined)
5051 class DiameterRestraint(IMP.Restraint):
5052  r"""Proxy of C++ IMP::core::DiameterRestraint class."""
5053 
5054  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5055 
5056  def __init__(self, f, sc, diameter):
5057  r"""__init__(DiameterRestraint self, UnaryFunction f, SingletonContainer sc, IMP::Float diameter) -> DiameterRestraint"""
5058  _IMP_core.DiameterRestraint_swiginit(self, _IMP_core.new_DiameterRestraint(f, sc, diameter))
5059 
5060  def do_get_inputs(self):
5061  r"""do_get_inputs(DiameterRestraint self) -> IMP::ModelObjectsTemp"""
5062  return _IMP_core.DiameterRestraint_do_get_inputs(self)
5063 
5064  def get_version_info(self):
5065  r"""get_version_info(DiameterRestraint self) -> VersionInfo"""
5066  return _IMP_core.DiameterRestraint_get_version_info(self)
5067  __swig_destroy__ = _IMP_core.delete_DiameterRestraint
5068 
5069  def do_create_decomposition(self):
5070  r"""do_create_decomposition(DiameterRestraint self) -> IMP::Restraints"""
5071  return _IMP_core.DiameterRestraint_do_create_decomposition(self)
5072 
5073  def do_create_current_decomposition(self):
5074  r"""do_create_current_decomposition(DiameterRestraint self) -> IMP::Restraints"""
5075  return _IMP_core.DiameterRestraint_do_create_current_decomposition(self)
5076 
5077  def __str__(self):
5078  r"""__str__(DiameterRestraint self) -> std::string"""
5079  return _IMP_core.DiameterRestraint___str__(self)
5080 
5081  def __repr__(self):
5082  r"""__repr__(DiameterRestraint self) -> std::string"""
5083  return _IMP_core.DiameterRestraint___repr__(self)
5084 
5085  @staticmethod
5086  def get_from(o):
5087  return _object_cast_to_DiameterRestraint(o)
5088 
5089 
5090 # Register DiameterRestraint in _IMP_core:
5091 _IMP_core.DiameterRestraint_swigregister(DiameterRestraint)
5092 class Transform(IMP.SingletonModifier):
5093  r"""Proxy of C++ IMP::core::Transform class."""
5094 
5095  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5096 
5097  def __init__(self, *args):
5098  r"""
5099  __init__(Transform self, Transformation3D t, bool ignore_non_xyz=False) -> Transform
5100  __init__(Transform self) -> Transform
5101  """
5102  _IMP_core.Transform_swiginit(self, _IMP_core.new_Transform(*args))
5103 
5104  def do_get_inputs(self, m, pis):
5105  r"""do_get_inputs(Transform self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5106  return _IMP_core.Transform_do_get_inputs(self, m, pis)
5107 
5108  def do_get_outputs(self, m, pis):
5109  r"""do_get_outputs(Transform self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5110  return _IMP_core.Transform_do_get_outputs(self, m, pis)
5111 
5112  def get_version_info(self):
5113  r"""get_version_info(Transform self) -> VersionInfo"""
5114  return _IMP_core.Transform_get_version_info(self)
5115  __swig_destroy__ = _IMP_core.delete_Transform
5116 
5117  def __str__(self):
5118  r"""__str__(Transform self) -> std::string"""
5119  return _IMP_core.Transform___str__(self)
5120 
5121  def __repr__(self):
5122  r"""__repr__(Transform self) -> std::string"""
5123  return _IMP_core.Transform___repr__(self)
5124 
5125  @staticmethod
5126  def get_from(o):
5127  return _object_cast_to_Transform(o)
5128 
5129 
5130  def _get_as_binary(self):
5131  r"""_get_as_binary(Transform self) -> PyObject *"""
5132  return _IMP_core.Transform__get_as_binary(self)
5133 
5134  def _set_from_binary(self, p):
5135  r"""_set_from_binary(Transform self, PyObject * p)"""
5136  return _IMP_core.Transform__set_from_binary(self, p)
5137 
5138  def __getstate__(self):
5139  p = self._get_as_binary()
5140  if len(self.__dict__) > 1:
5141  d = self.__dict__.copy()
5142  del d['this']
5143  p = (d, p)
5144  return p
5145 
5146  def __setstate__(self, p):
5147  if not hasattr(self, 'this'):
5148  self.__init__()
5149  if isinstance(p, tuple):
5150  d, p = p
5151  self.__dict__.update(d)
5152  return self._set_from_binary(p)
5153 
5154 
5155 # Register Transform in _IMP_core:
5156 _IMP_core.Transform_swigregister(Transform)
5157 class Reference(IMP.Decorator):
5158  r"""Proxy of C++ IMP::core::Reference 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"""
5164  __init__(Reference self) -> Reference
5165  __init__(Reference self, Model m, ParticleIndex id) -> Reference
5166  __init__(Reference self, _ParticleAdaptor d) -> Reference
5167  """
5168  _IMP_core.Reference_swiginit(self, _IMP_core.new_Reference(*args))
5169 
5170  def show(self, *args):
5171  r"""show(Reference self, _ostream out=std::cout)"""
5172  return _IMP_core.Reference_show(self, *args)
5173 
5174  @staticmethod
5175  def setup_particle(*args):
5176  r"""
5177  setup_particle(Model m, ParticleIndex pi, _ParticleIndexAdaptor reference) -> Reference
5178  setup_particle(_ParticleAdaptor pa, _ParticleIndexAdaptor reference) -> Reference
5179  """
5180  return _IMP_core.Reference_setup_particle(*args)
5181 
5182  def get_reference_particle(self):
5183  r"""get_reference_particle(Reference self) -> Particle"""
5184  return _IMP_core.Reference_get_reference_particle(self)
5185 
5186  @staticmethod
5187  def get_is_setup(*args):
5188  r"""
5189  get_is_setup(_ParticleAdaptor p) -> bool
5190  get_is_setup(Model m, ParticleIndex pi) -> bool
5191  """
5192  return _IMP_core.Reference_get_is_setup(*args)
5193 
5194  @staticmethod
5195  def get_reference_key():
5196  r"""get_reference_key() -> ParticleIndexKey"""
5197  return _IMP_core.Reference_get_reference_key()
5198 
5199  def add_attribute(self, *args):
5200  r"""
5201  add_attribute(Reference self, FloatKey k, IMP::Float v, bool opt)
5202  add_attribute(Reference self, FloatKey a0, IMP::Float a1)
5203  add_attribute(Reference self, IntKey a0, IMP::Int a1)
5204  add_attribute(Reference self, FloatsKey a0, IMP::Floats a1)
5205  add_attribute(Reference self, IntsKey a0, IMP::Ints a1)
5206  add_attribute(Reference self, StringKey a0, IMP::String a1)
5207  add_attribute(Reference self, ParticleIndexKey a0, Particle a1)
5208  add_attribute(Reference self, ObjectKey a0, Object a1)
5209  """
5210  return _IMP_core.Reference_add_attribute(self, *args)
5211 
5212  def get_value(self, *args):
5213  r"""
5214  get_value(Reference self, FloatKey a0) -> IMP::Float
5215  get_value(Reference self, IntKey a0) -> IMP::Int
5216  get_value(Reference self, FloatsKey a0) -> IMP::Floats
5217  get_value(Reference self, IntsKey a0) -> IMP::Ints
5218  get_value(Reference self, StringKey a0) -> IMP::String
5219  get_value(Reference self, ParticleIndexKey a0) -> Particle
5220  get_value(Reference self, ObjectKey a0) -> Object
5221  """
5222  return _IMP_core.Reference_get_value(self, *args)
5223 
5224  def set_value(self, *args):
5225  r"""
5226  set_value(Reference self, FloatKey a0, IMP::Float a1)
5227  set_value(Reference self, IntKey a0, IMP::Int a1)
5228  set_value(Reference self, FloatsKey a0, IMP::Floats a1)
5229  set_value(Reference self, IntsKey a0, IMP::Ints a1)
5230  set_value(Reference self, StringKey a0, IMP::String a1)
5231  set_value(Reference self, ParticleIndexKey a0, Particle a1)
5232  set_value(Reference self, ObjectKey a0, Object a1)
5233  """
5234  return _IMP_core.Reference_set_value(self, *args)
5235 
5236  def remove_attribute(self, *args):
5237  r"""
5238  remove_attribute(Reference self, FloatKey a0)
5239  remove_attribute(Reference self, IntKey a0)
5240  remove_attribute(Reference self, FloatsKey a0)
5241  remove_attribute(Reference self, IntsKey a0)
5242  remove_attribute(Reference self, StringKey a0)
5243  remove_attribute(Reference self, ParticleIndexKey a0)
5244  remove_attribute(Reference self, ObjectKey a0)
5245  """
5246  return _IMP_core.Reference_remove_attribute(self, *args)
5247 
5248  def has_attribute(self, *args):
5249  r"""
5250  has_attribute(Reference self, FloatKey a0) -> bool
5251  has_attribute(Reference self, IntKey a0) -> bool
5252  has_attribute(Reference self, FloatsKey a0) -> bool
5253  has_attribute(Reference self, IntsKey a0) -> bool
5254  has_attribute(Reference self, StringKey a0) -> bool
5255  has_attribute(Reference self, ParticleIndexKey a0) -> bool
5256  has_attribute(Reference self, ObjectKey a0) -> bool
5257  """
5258  return _IMP_core.Reference_has_attribute(self, *args)
5259 
5260  def get_derivative(self, a0):
5261  r"""get_derivative(Reference self, FloatKey a0) -> double"""
5262  return _IMP_core.Reference_get_derivative(self, a0)
5263 
5264  def get_name(self):
5265  r"""get_name(Reference self) -> std::string"""
5266  return _IMP_core.Reference_get_name(self)
5267 
5268  def clear_caches(self):
5269  r"""clear_caches(Reference self)"""
5270  return _IMP_core.Reference_clear_caches(self)
5271 
5272  def set_name(self, a0):
5273  r"""set_name(Reference self, std::string a0)"""
5274  return _IMP_core.Reference_set_name(self, a0)
5275 
5276  def set_check_level(self, a0):
5277  r"""set_check_level(Reference self, IMP::CheckLevel a0)"""
5278  return _IMP_core.Reference_set_check_level(self, a0)
5279 
5280  def add_to_derivative(self, a0, a1, a2):
5281  r"""add_to_derivative(Reference self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5282  return _IMP_core.Reference_add_to_derivative(self, a0, a1, a2)
5283 
5284  def set_is_optimized(self, a0, a1):
5285  r"""set_is_optimized(Reference self, FloatKey a0, bool a1)"""
5286  return _IMP_core.Reference_set_is_optimized(self, a0, a1)
5287 
5288  def get_is_optimized(self, a0):
5289  r"""get_is_optimized(Reference self, FloatKey a0) -> bool"""
5290  return _IMP_core.Reference_get_is_optimized(self, a0)
5291 
5292  def get_check_level(self):
5293  r"""get_check_level(Reference self) -> IMP::CheckLevel"""
5294  return _IMP_core.Reference_get_check_level(self)
5295 
5296  def __eq__(self, *args):
5297  r"""
5298  __eq__(Reference self, Reference o) -> bool
5299  __eq__(Reference self, Particle d) -> bool
5300  """
5301  return _IMP_core.Reference___eq__(self, *args)
5302 
5303  def __ne__(self, *args):
5304  r"""
5305  __ne__(Reference self, Reference o) -> bool
5306  __ne__(Reference self, Particle d) -> bool
5307  """
5308  return _IMP_core.Reference___ne__(self, *args)
5309 
5310  def __le__(self, *args):
5311  r"""
5312  __le__(Reference self, Reference o) -> bool
5313  __le__(Reference self, Particle d) -> bool
5314  """
5315  return _IMP_core.Reference___le__(self, *args)
5316 
5317  def __lt__(self, *args):
5318  r"""
5319  __lt__(Reference self, Reference o) -> bool
5320  __lt__(Reference self, Particle d) -> bool
5321  """
5322  return _IMP_core.Reference___lt__(self, *args)
5323 
5324  def __ge__(self, *args):
5325  r"""
5326  __ge__(Reference self, Reference o) -> bool
5327  __ge__(Reference self, Particle d) -> bool
5328  """
5329  return _IMP_core.Reference___ge__(self, *args)
5330 
5331  def __gt__(self, *args):
5332  r"""
5333  __gt__(Reference self, Reference o) -> bool
5334  __gt__(Reference self, Particle d) -> bool
5335  """
5336  return _IMP_core.Reference___gt__(self, *args)
5337 
5338  def __hash__(self):
5339  r"""__hash__(Reference self) -> std::size_t"""
5340  return _IMP_core.Reference___hash__(self)
5341 
5342  def __str__(self):
5343  r"""__str__(Reference self) -> std::string"""
5344  return _IMP_core.Reference___str__(self)
5345 
5346  def __repr__(self):
5347  r"""__repr__(Reference self) -> std::string"""
5348  return _IMP_core.Reference___repr__(self)
5349 
5350  def _get_as_binary(self):
5351  r"""_get_as_binary(Reference self) -> PyObject *"""
5352  return _IMP_core.Reference__get_as_binary(self)
5353 
5354  def _set_from_binary(self, p):
5355  r"""_set_from_binary(Reference self, PyObject * p)"""
5356  return _IMP_core.Reference__set_from_binary(self, p)
5357 
5358  def __getstate__(self):
5359  p = self._get_as_binary()
5360  if len(self.__dict__) > 1:
5361  d = self.__dict__.copy()
5362  del d['this']
5363  p = (d, p)
5364  return p
5365 
5366  def __setstate__(self, p):
5367  if not hasattr(self, 'this'):
5368  self.__init__()
5369  if isinstance(p, tuple):
5370  d, p = p
5371  self.__dict__.update(d)
5372  return self._set_from_binary(p)
5373 
5374  __swig_destroy__ = _IMP_core.delete_Reference
5375 
5376 # Register Reference in _IMP_core:
5377 _IMP_core.Reference_swigregister(Reference)
5378 class TransformationAndReflectionSymmetry(IMP.SingletonModifier):
5379  r"""Proxy of C++ IMP::core::TransformationAndReflectionSymmetry class."""
5380 
5381  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5382 
5383  def __init__(self, t, r):
5384  r"""__init__(TransformationAndReflectionSymmetry self, Transformation3D t, Reflection3D r) -> TransformationAndReflectionSymmetry"""
5385  _IMP_core.TransformationAndReflectionSymmetry_swiginit(self, _IMP_core.new_TransformationAndReflectionSymmetry(t, r))
5386 
5387  def do_get_inputs(self, m, pis):
5388  r"""do_get_inputs(TransformationAndReflectionSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5389  return _IMP_core.TransformationAndReflectionSymmetry_do_get_inputs(self, m, pis)
5390 
5391  def do_get_outputs(self, m, pis):
5392  r"""do_get_outputs(TransformationAndReflectionSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5393  return _IMP_core.TransformationAndReflectionSymmetry_do_get_outputs(self, m, pis)
5394 
5395  def get_version_info(self):
5396  r"""get_version_info(TransformationAndReflectionSymmetry self) -> VersionInfo"""
5397  return _IMP_core.TransformationAndReflectionSymmetry_get_version_info(self)
5398  __swig_destroy__ = _IMP_core.delete_TransformationAndReflectionSymmetry
5399 
5400  def __str__(self):
5401  r"""__str__(TransformationAndReflectionSymmetry self) -> std::string"""
5402  return _IMP_core.TransformationAndReflectionSymmetry___str__(self)
5403 
5404  def __repr__(self):
5405  r"""__repr__(TransformationAndReflectionSymmetry self) -> std::string"""
5406  return _IMP_core.TransformationAndReflectionSymmetry___repr__(self)
5407 
5408  @staticmethod
5409  def get_from(o):
5410  return _object_cast_to_TransformationAndReflectionSymmetry(o)
5411 
5412 
5413 # Register TransformationAndReflectionSymmetry in _IMP_core:
5414 _IMP_core.TransformationAndReflectionSymmetry_swigregister(TransformationAndReflectionSymmetry)
5415 class TransformationSymmetry(IMP.SingletonModifier):
5416  r"""Proxy of C++ IMP::core::TransformationSymmetry class."""
5417 
5418  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5419 
5420  def __init__(self, *args):
5421  r"""
5422  __init__(TransformationSymmetry self, Transformation3D t) -> TransformationSymmetry
5423  __init__(TransformationSymmetry self, ParticleIndex rb_pi) -> TransformationSymmetry
5424  """
5425  _IMP_core.TransformationSymmetry_swiginit(self, _IMP_core.new_TransformationSymmetry(*args))
5426 
5427  def get_transformation(self):
5428  r"""get_transformation(TransformationSymmetry self) -> Transformation3D"""
5429  return _IMP_core.TransformationSymmetry_get_transformation(self)
5430 
5431  def set_transformation(self, t):
5432  r"""set_transformation(TransformationSymmetry self, Transformation3D t)"""
5433  return _IMP_core.TransformationSymmetry_set_transformation(self, t)
5434 
5435  def do_get_inputs(self, m, pis):
5436  r"""do_get_inputs(TransformationSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5437  return _IMP_core.TransformationSymmetry_do_get_inputs(self, m, pis)
5438 
5439  def do_get_outputs(self, m, pis):
5440  r"""do_get_outputs(TransformationSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5441  return _IMP_core.TransformationSymmetry_do_get_outputs(self, m, pis)
5442 
5443  def get_version_info(self):
5444  r"""get_version_info(TransformationSymmetry self) -> VersionInfo"""
5445  return _IMP_core.TransformationSymmetry_get_version_info(self)
5446  __swig_destroy__ = _IMP_core.delete_TransformationSymmetry
5447 
5448  def __str__(self):
5449  r"""__str__(TransformationSymmetry self) -> std::string"""
5450  return _IMP_core.TransformationSymmetry___str__(self)
5451 
5452  def __repr__(self):
5453  r"""__repr__(TransformationSymmetry self) -> std::string"""
5454  return _IMP_core.TransformationSymmetry___repr__(self)
5455 
5456  @staticmethod
5457  def get_from(o):
5458  return _object_cast_to_TransformationSymmetry(o)
5459 
5460 
5461 # Register TransformationSymmetry in _IMP_core:
5462 _IMP_core.TransformationSymmetry_swigregister(TransformationSymmetry)
5463 class TransformationSymmetryMover(MonteCarloMover):
5464  r"""Proxy of C++ IMP::core::TransformationSymmetryMover class."""
5465 
5466  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5467 
5468  def __init__(self, m, symm, pivot, max_translation, max_rotation):
5469  r"""__init__(TransformationSymmetryMover self, Model m, TransformationSymmetry symm, ParticleIndex pivot, IMP::Float max_translation, IMP::Float max_rotation) -> TransformationSymmetryMover"""
5470  _IMP_core.TransformationSymmetryMover_swiginit(self, _IMP_core.new_TransformationSymmetryMover(m, symm, pivot, max_translation, max_rotation))
5471 
5472  def set_maximum_translation(self, mt):
5473  r"""set_maximum_translation(TransformationSymmetryMover self, IMP::Float mt)"""
5474  return _IMP_core.TransformationSymmetryMover_set_maximum_translation(self, mt)
5475 
5476  def set_maximum_rotation(self, mr):
5477  r"""set_maximum_rotation(TransformationSymmetryMover self, IMP::Float mr)"""
5478  return _IMP_core.TransformationSymmetryMover_set_maximum_rotation(self, mr)
5479 
5480  def get_maximum_translation(self):
5481  r"""get_maximum_translation(TransformationSymmetryMover self) -> IMP::Float"""
5482  return _IMP_core.TransformationSymmetryMover_get_maximum_translation(self)
5483 
5484  def get_maximum_rotation(self):
5485  r"""get_maximum_rotation(TransformationSymmetryMover self) -> IMP::Float"""
5486  return _IMP_core.TransformationSymmetryMover_get_maximum_rotation(self)
5487 
5488  def get_version_info(self):
5489  r"""get_version_info(TransformationSymmetryMover self) -> VersionInfo"""
5490  return _IMP_core.TransformationSymmetryMover_get_version_info(self)
5491  __swig_destroy__ = _IMP_core.delete_TransformationSymmetryMover
5492 
5493  def __str__(self):
5494  r"""__str__(TransformationSymmetryMover self) -> std::string"""
5495  return _IMP_core.TransformationSymmetryMover___str__(self)
5496 
5497  def __repr__(self):
5498  r"""__repr__(TransformationSymmetryMover self) -> std::string"""
5499  return _IMP_core.TransformationSymmetryMover___repr__(self)
5500 
5501  @staticmethod
5502  def get_from(o):
5503  return _object_cast_to_TransformationSymmetryMover(o)
5504 
5505 
5506 # Register TransformationSymmetryMover in _IMP_core:
5507 _IMP_core.TransformationSymmetryMover_swigregister(TransformationSymmetryMover)
5508 class DihedralRestraint(IMP.Restraint):
5509  r"""Proxy of C++ IMP::core::DihedralRestraint class."""
5510 
5511  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5512 
5513  def __init__(self, m, score_func, p1, p2, p3, p4):
5514  r"""__init__(DihedralRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3, _ParticleIndexAdaptor p4) -> DihedralRestraint"""
5515  _IMP_core.DihedralRestraint_swiginit(self, _IMP_core.new_DihedralRestraint(m, score_func, p1, p2, p3, p4))
5516 
5517  def do_get_inputs(self):
5518  r"""do_get_inputs(DihedralRestraint self) -> IMP::ModelObjectsTemp"""
5519  return _IMP_core.DihedralRestraint_do_get_inputs(self)
5520 
5521  def get_version_info(self):
5522  r"""get_version_info(DihedralRestraint self) -> VersionInfo"""
5523  return _IMP_core.DihedralRestraint_get_version_info(self)
5524  __swig_destroy__ = _IMP_core.delete_DihedralRestraint
5525 
5526  def __str__(self):
5527  r"""__str__(DihedralRestraint self) -> std::string"""
5528  return _IMP_core.DihedralRestraint___str__(self)
5529 
5530  def __repr__(self):
5531  r"""__repr__(DihedralRestraint self) -> std::string"""
5532  return _IMP_core.DihedralRestraint___repr__(self)
5533 
5534  @staticmethod
5535  def get_from(o):
5536  return _object_cast_to_DihedralRestraint(o)
5537 
5538 
5539 # Register DihedralRestraint in _IMP_core:
5540 _IMP_core.DihedralRestraint_swigregister(DihedralRestraint)
5541 class DistancePairScore(IMP.PairScore):
5542  r"""Proxy of C++ IMP::core::DistancePairScore class."""
5543 
5544  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5545 
5546  def __init__(self, *args):
5547  r"""
5548  __init__(DistancePairScore self, UnaryFunction uf, std::string name="DistancePairScore%1%") -> DistancePairScore
5549  __init__(DistancePairScore self) -> DistancePairScore
5550  """
5551  _IMP_core.DistancePairScore_swiginit(self, _IMP_core.new_DistancePairScore(*args))
5552 
5553  def do_get_inputs(self, m, pis):
5554  r"""do_get_inputs(DistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5555  return _IMP_core.DistancePairScore_do_get_inputs(self, m, pis)
5556 
5557  def get_version_info(self):
5558  r"""get_version_info(DistancePairScore self) -> VersionInfo"""
5559  return _IMP_core.DistancePairScore_get_version_info(self)
5560  __swig_destroy__ = _IMP_core.delete_DistancePairScore
5561 
5562  def __str__(self):
5563  r"""__str__(DistancePairScore self) -> std::string"""
5564  return _IMP_core.DistancePairScore___str__(self)
5565 
5566  def __repr__(self):
5567  r"""__repr__(DistancePairScore self) -> std::string"""
5568  return _IMP_core.DistancePairScore___repr__(self)
5569 
5570  @staticmethod
5571  def get_from(o):
5572  return _object_cast_to_DistancePairScore(o)
5573 
5574 
5575  def _get_as_binary(self):
5576  r"""_get_as_binary(DistancePairScore self) -> PyObject *"""
5577  return _IMP_core.DistancePairScore__get_as_binary(self)
5578 
5579  def _set_from_binary(self, p):
5580  r"""_set_from_binary(DistancePairScore self, PyObject * p)"""
5581  return _IMP_core.DistancePairScore__set_from_binary(self, p)
5582 
5583  def __getstate__(self):
5584  p = self._get_as_binary()
5585  if len(self.__dict__) > 1:
5586  d = self.__dict__.copy()
5587  del d['this']
5588  p = (d, p)
5589  return p
5590 
5591  def __setstate__(self, p):
5592  if not hasattr(self, 'this'):
5593  self.__init__()
5594  if isinstance(p, tuple):
5595  d, p = p
5596  self.__dict__.update(d)
5597  return self._set_from_binary(p)
5598 
5599 
5600 # Register DistancePairScore in _IMP_core:
5601 _IMP_core.DistancePairScore_swigregister(DistancePairScore)
5602 class HarmonicDistancePairScore(IMP.PairScore):
5603  r"""Proxy of C++ IMP::core::HarmonicDistancePairScore class."""
5604 
5605  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5606 
5607  def __init__(self, *args):
5608  r"""
5609  __init__(HarmonicDistancePairScore self, double x0, double k, std::string name="HarmonicDistancePairScore%1%") -> HarmonicDistancePairScore
5610  __init__(HarmonicDistancePairScore self) -> HarmonicDistancePairScore
5611  """
5612  _IMP_core.HarmonicDistancePairScore_swiginit(self, _IMP_core.new_HarmonicDistancePairScore(*args))
5613 
5614  def do_get_inputs(self, m, pis):
5615  r"""do_get_inputs(HarmonicDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5616  return _IMP_core.HarmonicDistancePairScore_do_get_inputs(self, m, pis)
5617 
5618  def get_version_info(self):
5619  r"""get_version_info(HarmonicDistancePairScore self) -> VersionInfo"""
5620  return _IMP_core.HarmonicDistancePairScore_get_version_info(self)
5621  __swig_destroy__ = _IMP_core.delete_HarmonicDistancePairScore
5622 
5623  def __str__(self):
5624  r"""__str__(HarmonicDistancePairScore self) -> std::string"""
5625  return _IMP_core.HarmonicDistancePairScore___str__(self)
5626 
5627  def __repr__(self):
5628  r"""__repr__(HarmonicDistancePairScore self) -> std::string"""
5629  return _IMP_core.HarmonicDistancePairScore___repr__(self)
5630 
5631  @staticmethod
5632  def get_from(o):
5633  return _object_cast_to_HarmonicDistancePairScore(o)
5634 
5635 
5636  def _get_as_binary(self):
5637  r"""_get_as_binary(HarmonicDistancePairScore self) -> PyObject *"""
5638  return _IMP_core.HarmonicDistancePairScore__get_as_binary(self)
5639 
5640  def _set_from_binary(self, p):
5641  r"""_set_from_binary(HarmonicDistancePairScore self, PyObject * p)"""
5642  return _IMP_core.HarmonicDistancePairScore__set_from_binary(self, p)
5643 
5644  def __getstate__(self):
5645  p = self._get_as_binary()
5646  if len(self.__dict__) > 1:
5647  d = self.__dict__.copy()
5648  del d['this']
5649  p = (d, p)
5650  return p
5651 
5652  def __setstate__(self, p):
5653  if not hasattr(self, 'this'):
5654  self.__init__()
5655  if isinstance(p, tuple):
5656  d, p = p
5657  self.__dict__.update(d)
5658  return self._set_from_binary(p)
5659 
5660 
5661 # Register HarmonicDistancePairScore in _IMP_core:
5662 _IMP_core.HarmonicDistancePairScore_swigregister(HarmonicDistancePairScore)
5663 class DistanceRestraint(IMP.Restraint):
5664  r"""Proxy of C++ IMP::core::DistanceRestraint 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, *args):
5669  r"""
5670  __init__(DistanceRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor a, _ParticleIndexAdaptor b, std::string name="DistanceRestraint %1%") -> DistanceRestraint
5671  __init__(DistanceRestraint self) -> DistanceRestraint
5672  """
5673  _IMP_core.DistanceRestraint_swiginit(self, _IMP_core.new_DistanceRestraint(*args))
5674 
5675  def get_version_info(self):
5676  r"""get_version_info(DistanceRestraint self) -> VersionInfo"""
5677  return _IMP_core.DistanceRestraint_get_version_info(self)
5678  __swig_destroy__ = _IMP_core.delete_DistanceRestraint
5679 
5680  def __str__(self):
5681  r"""__str__(DistanceRestraint self) -> std::string"""
5682  return _IMP_core.DistanceRestraint___str__(self)
5683 
5684  def __repr__(self):
5685  r"""__repr__(DistanceRestraint self) -> std::string"""
5686  return _IMP_core.DistanceRestraint___repr__(self)
5687 
5688  @staticmethod
5689  def get_from(o):
5690  return _object_cast_to_DistanceRestraint(o)
5691 
5692 
5693  def _get_as_binary(self):
5694  r"""_get_as_binary(DistanceRestraint self) -> PyObject *"""
5695  return _IMP_core.DistanceRestraint__get_as_binary(self)
5696 
5697  def _set_from_binary(self, p):
5698  r"""_set_from_binary(DistanceRestraint self, PyObject * p)"""
5699  return _IMP_core.DistanceRestraint__set_from_binary(self, p)
5700 
5701  def __getstate__(self):
5702  p = self._get_as_binary()
5703  if len(self.__dict__) > 1:
5704  d = self.__dict__.copy()
5705  del d['this']
5706  p = (d, p)
5707  return p
5708 
5709  def __setstate__(self, p):
5710  if not hasattr(self, 'this'):
5711  self.__init__()
5712  if isinstance(p, tuple):
5713  d, p = p
5714  self.__dict__.update(d)
5715  return self._set_from_binary(p)
5716 
5717 
5718 # Register DistanceRestraint in _IMP_core:
5719 _IMP_core.DistanceRestraint_swigregister(DistanceRestraint)
5720 class SphereDistanceToSingletonScore(IMP.SingletonScore):
5721  r"""Proxy of C++ IMP::core::SphereDistanceToSingletonScore class."""
5722 
5723  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5724 
5725  def __init__(self, f, pt):
5726  r"""__init__(SphereDistanceToSingletonScore self, UnaryFunction f, Vector3D pt) -> SphereDistanceToSingletonScore"""
5727  _IMP_core.SphereDistanceToSingletonScore_swiginit(self, _IMP_core.new_SphereDistanceToSingletonScore(f, pt))
5728 
5729  def do_get_inputs(self, m, pis):
5730  r"""do_get_inputs(SphereDistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5731  return _IMP_core.SphereDistanceToSingletonScore_do_get_inputs(self, m, pis)
5732 
5733  def get_version_info(self):
5734  r"""get_version_info(SphereDistanceToSingletonScore self) -> VersionInfo"""
5735  return _IMP_core.SphereDistanceToSingletonScore_get_version_info(self)
5736  __swig_destroy__ = _IMP_core.delete_SphereDistanceToSingletonScore
5737 
5738  def __str__(self):
5739  r"""__str__(SphereDistanceToSingletonScore self) -> std::string"""
5740  return _IMP_core.SphereDistanceToSingletonScore___str__(self)
5741 
5742  def __repr__(self):
5743  r"""__repr__(SphereDistanceToSingletonScore self) -> std::string"""
5744  return _IMP_core.SphereDistanceToSingletonScore___repr__(self)
5745 
5746  @staticmethod
5747  def get_from(o):
5748  return _object_cast_to_SphereDistanceToSingletonScore(o)
5749 
5750 
5751 # Register SphereDistanceToSingletonScore in _IMP_core:
5752 _IMP_core.SphereDistanceToSingletonScore_swigregister(SphereDistanceToSingletonScore)
5753 class ExcludedVolumeRestraint(IMP.Restraint):
5754  r"""Proxy of C++ IMP::core::ExcludedVolumeRestraint class."""
5755 
5756  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5757 
5758  def __init__(self, *args):
5759  r"""__init__(ExcludedVolumeRestraint self, _SingletonContainerAdaptor sc, double k=1, double slack=10, std::string name="ExcludedVolumeRestraint%1%") -> ExcludedVolumeRestraint"""
5760  _IMP_core.ExcludedVolumeRestraint_swiginit(self, _IMP_core.new_ExcludedVolumeRestraint(*args))
5761 
5762  def do_get_inputs(self):
5763  r"""do_get_inputs(ExcludedVolumeRestraint self) -> IMP::ModelObjectsTemp"""
5764  return _IMP_core.ExcludedVolumeRestraint_do_get_inputs(self)
5765 
5766  def get_version_info(self):
5767  r"""get_version_info(ExcludedVolumeRestraint self) -> VersionInfo"""
5768  return _IMP_core.ExcludedVolumeRestraint_get_version_info(self)
5769  __swig_destroy__ = _IMP_core.delete_ExcludedVolumeRestraint
5770 
5771  def do_create_decomposition(self):
5772  r"""do_create_decomposition(ExcludedVolumeRestraint self) -> IMP::Restraints"""
5773  return _IMP_core.ExcludedVolumeRestraint_do_create_decomposition(self)
5774 
5775  def do_create_current_decomposition(self):
5776  r"""do_create_current_decomposition(ExcludedVolumeRestraint self) -> IMP::Restraints"""
5777  return _IMP_core.ExcludedVolumeRestraint_do_create_current_decomposition(self)
5778 
5779  def get_indexes(self):
5780  r"""get_indexes(ExcludedVolumeRestraint self) -> IMP::ParticleIndexPairs const &"""
5781  return _IMP_core.ExcludedVolumeRestraint_get_indexes(self)
5782  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)
5783  def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
5784  def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
5785  pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc="List of ##ucnames")
5786 
5787  def remove_pair_filter(self, d):
5788  r"""remove_pair_filter(ExcludedVolumeRestraint self, PairPredicate d)"""
5789  return _IMP_core.ExcludedVolumeRestraint_remove_pair_filter(self, d)
5790 
5791  def _python_index_pair_filter(self, d, start, stop):
5792  r"""_python_index_pair_filter(ExcludedVolumeRestraint self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
5793  return _IMP_core.ExcludedVolumeRestraint__python_index_pair_filter(self, d, start, stop)
5794 
5795  def remove_pair_filters(self, d):
5796  r"""remove_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & d)"""
5797  return _IMP_core.ExcludedVolumeRestraint_remove_pair_filters(self, d)
5798 
5799  def set_pair_filters(self, ps):
5800  r"""set_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & ps)"""
5801  return _IMP_core.ExcludedVolumeRestraint_set_pair_filters(self, ps)
5802 
5803  def set_pair_filters_order(self, objs):
5804  r"""set_pair_filters_order(ExcludedVolumeRestraint self, IMP::PairPredicates const & objs)"""
5805  return _IMP_core.ExcludedVolumeRestraint_set_pair_filters_order(self, objs)
5806 
5807  def add_pair_filter(self, obj):
5808  r"""add_pair_filter(ExcludedVolumeRestraint self, PairPredicate obj) -> unsigned int"""
5809  return _IMP_core.ExcludedVolumeRestraint_add_pair_filter(self, obj)
5810 
5811  def add_pair_filters(self, objs):
5812  r"""add_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & objs)"""
5813  return _IMP_core.ExcludedVolumeRestraint_add_pair_filters(self, objs)
5814 
5815  def clear_pair_filters(self):
5816  r"""clear_pair_filters(ExcludedVolumeRestraint self)"""
5817  return _IMP_core.ExcludedVolumeRestraint_clear_pair_filters(self)
5818 
5819  def get_number_of_pair_filters(self):
5820  r"""get_number_of_pair_filters(ExcludedVolumeRestraint self) -> unsigned int"""
5821  return _IMP_core.ExcludedVolumeRestraint_get_number_of_pair_filters(self)
5822 
5823  def get_has_pair_filters(self):
5824  r"""get_has_pair_filters(ExcludedVolumeRestraint self) -> bool"""
5825  return _IMP_core.ExcludedVolumeRestraint_get_has_pair_filters(self)
5826 
5827  def get_pair_filter(self, i):
5828  r"""get_pair_filter(ExcludedVolumeRestraint self, unsigned int i) -> PairPredicate"""
5829  return _IMP_core.ExcludedVolumeRestraint_get_pair_filter(self, i)
5830 
5831  def get_pair_filters(self):
5832  r"""get_pair_filters(ExcludedVolumeRestraint self) -> IMP::PairPredicates"""
5833  return _IMP_core.ExcludedVolumeRestraint_get_pair_filters(self)
5834 
5835  def erase_pair_filter(self, i):
5836  r"""erase_pair_filter(ExcludedVolumeRestraint self, unsigned int i)"""
5837  return _IMP_core.ExcludedVolumeRestraint_erase_pair_filter(self, i)
5838 
5839  def reserve_pair_filters(self, sz):
5840  r"""reserve_pair_filters(ExcludedVolumeRestraint self, unsigned int sz)"""
5841  return _IMP_core.ExcludedVolumeRestraint_reserve_pair_filters(self, sz)
5842 
5843  def __str__(self):
5844  r"""__str__(ExcludedVolumeRestraint self) -> std::string"""
5845  return _IMP_core.ExcludedVolumeRestraint___str__(self)
5846 
5847  def __repr__(self):
5848  r"""__repr__(ExcludedVolumeRestraint self) -> std::string"""
5849  return _IMP_core.ExcludedVolumeRestraint___repr__(self)
5850 
5851  @staticmethod
5852  def get_from(o):
5853  return _object_cast_to_ExcludedVolumeRestraint(o)
5854 
5855 
5856 # Register ExcludedVolumeRestraint in _IMP_core:
5857 _IMP_core.ExcludedVolumeRestraint_swigregister(ExcludedVolumeRestraint)
5858 class FixedRefiner(IMP.Refiner):
5859  r"""Proxy of C++ IMP::core::FixedRefiner class."""
5860 
5861  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5862 
5863  def __init__(self, *args):
5864  r"""
5865  __init__(FixedRefiner self, IMP::ParticlesTemp const & ps) -> FixedRefiner
5866  __init__(FixedRefiner self, Model m, IMP::ParticleIndexes const & pis) -> FixedRefiner
5867  """
5868  _IMP_core.FixedRefiner_swiginit(self, _IMP_core.new_FixedRefiner(*args))
5869 
5870  def do_get_inputs(self, m, pis):
5871  r"""do_get_inputs(FixedRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5872  return _IMP_core.FixedRefiner_do_get_inputs(self, m, pis)
5873 
5874  def get_version_info(self):
5875  r"""get_version_info(FixedRefiner self) -> VersionInfo"""
5876  return _IMP_core.FixedRefiner_get_version_info(self)
5877  __swig_destroy__ = _IMP_core.delete_FixedRefiner
5878 
5879  def __str__(self):
5880  r"""__str__(FixedRefiner self) -> std::string"""
5881  return _IMP_core.FixedRefiner___str__(self)
5882 
5883  def __repr__(self):
5884  r"""__repr__(FixedRefiner self) -> std::string"""
5885  return _IMP_core.FixedRefiner___repr__(self)
5886 
5887  @staticmethod
5888  def get_from(o):
5889  return _object_cast_to_FixedRefiner(o)
5890 
5891 
5892 # Register FixedRefiner in _IMP_core:
5893 _IMP_core.FixedRefiner_swigregister(FixedRefiner)
5894 class GridClosePairsFinder(ClosePairsFinder):
5895  r"""Proxy of C++ IMP::core::GridClosePairsFinder class."""
5896 
5897  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5898 
5899  def __init__(self):
5900  r"""__init__(GridClosePairsFinder self) -> GridClosePairsFinder"""
5901  _IMP_core.GridClosePairsFinder_swiginit(self, _IMP_core.new_GridClosePairsFinder())
5902 
5903  def get_close_pairs(self, *args):
5904  r"""
5905  get_close_pairs(GridClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
5906  get_close_pairs(GridClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
5907  get_close_pairs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
5908  get_close_pairs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
5909  """
5910  return _IMP_core.GridClosePairsFinder_get_close_pairs(self, *args)
5911 
5912  def do_get_inputs(self, m, pis):
5913  r"""do_get_inputs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5914  return _IMP_core.GridClosePairsFinder_do_get_inputs(self, m, pis)
5915 
5916  def get_version_info(self):
5917  r"""get_version_info(GridClosePairsFinder self) -> VersionInfo"""
5918  return _IMP_core.GridClosePairsFinder_get_version_info(self)
5919  __swig_destroy__ = _IMP_core.delete_GridClosePairsFinder
5920 
5921  def __str__(self):
5922  r"""__str__(GridClosePairsFinder self) -> std::string"""
5923  return _IMP_core.GridClosePairsFinder___str__(self)
5924 
5925  def __repr__(self):
5926  r"""__repr__(GridClosePairsFinder self) -> std::string"""
5927  return _IMP_core.GridClosePairsFinder___repr__(self)
5928 
5929  @staticmethod
5930  def get_from(o):
5931  return _object_cast_to_GridClosePairsFinder(o)
5932 
5933 
5934  def _get_as_binary(self):
5935  r"""_get_as_binary(GridClosePairsFinder self) -> PyObject *"""
5936  return _IMP_core.GridClosePairsFinder__get_as_binary(self)
5937 
5938  def _set_from_binary(self, p):
5939  r"""_set_from_binary(GridClosePairsFinder self, PyObject * p)"""
5940  return _IMP_core.GridClosePairsFinder__set_from_binary(self, p)
5941 
5942  def __getstate__(self):
5943  p = self._get_as_binary()
5944  if len(self.__dict__) > 1:
5945  d = self.__dict__.copy()
5946  del d['this']
5947  p = (d, p)
5948  return p
5949 
5950  def __setstate__(self, p):
5951  if not hasattr(self, 'this'):
5952  self.__init__()
5953  if isinstance(p, tuple):
5954  d, p = p
5955  self.__dict__.update(d)
5956  return self._set_from_binary(p)
5957 
5958 
5959 # Register GridClosePairsFinder in _IMP_core:
5960 _IMP_core.GridClosePairsFinder_swigregister(GridClosePairsFinder)
5961 class Harmonic(IMP.UnaryFunction):
5962  r"""Proxy of C++ IMP::core::Harmonic class."""
5963 
5964  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5965 
5966  def __init__(self, *args):
5967  r"""
5968  __init__(Harmonic self, IMP::Float mean, IMP::Float k) -> Harmonic
5969  __init__(Harmonic self) -> Harmonic
5970  """
5971  _IMP_core.Harmonic_swiginit(self, _IMP_core.new_Harmonic(*args))
5972 
5973  def get_version_info(self):
5974  r"""get_version_info(Harmonic self) -> VersionInfo"""
5975  return _IMP_core.Harmonic_get_version_info(self)
5976  __swig_destroy__ = _IMP_core.delete_Harmonic
5977 
5978  def get_mean(self):
5979  r"""get_mean(Harmonic self) -> IMP::Float"""
5980  return _IMP_core.Harmonic_get_mean(self)
5981 
5982  def get_k(self):
5983  r"""get_k(Harmonic self) -> IMP::Float"""
5984  return _IMP_core.Harmonic_get_k(self)
5985 
5986  def set_mean(self, mean):
5987  r"""set_mean(Harmonic self, IMP::Float mean)"""
5988  return _IMP_core.Harmonic_set_mean(self, mean)
5989 
5990  def set_k(self, k):
5991  r"""set_k(Harmonic self, IMP::Float k)"""
5992  return _IMP_core.Harmonic_set_k(self, k)
5993 
5994  @staticmethod
5995  def get_k_from_standard_deviation(sd, t=297.15):
5996  r"""get_k_from_standard_deviation(IMP::Float sd, IMP::Float t=297.15) -> IMP::Float"""
5997  return _IMP_core.Harmonic_get_k_from_standard_deviation(sd, t)
5998 
5999  def __str__(self):
6000  r"""__str__(Harmonic self) -> std::string"""
6001  return _IMP_core.Harmonic___str__(self)
6002 
6003  def __repr__(self):
6004  r"""__repr__(Harmonic self) -> std::string"""
6005  return _IMP_core.Harmonic___repr__(self)
6006 
6007  @staticmethod
6008  def get_from(o):
6009  return _object_cast_to_Harmonic(o)
6010 
6011 
6012  def _get_as_binary(self):
6013  r"""_get_as_binary(Harmonic self) -> PyObject *"""
6014  return _IMP_core.Harmonic__get_as_binary(self)
6015 
6016  def _set_from_binary(self, p):
6017  r"""_set_from_binary(Harmonic self, PyObject * p)"""
6018  return _IMP_core.Harmonic__set_from_binary(self, p)
6019 
6020  def __getstate__(self):
6021  p = self._get_as_binary()
6022  if len(self.__dict__) > 1:
6023  d = self.__dict__.copy()
6024  del d['this']
6025  p = (d, p)
6026  return p
6027 
6028  def __setstate__(self, p):
6029  if not hasattr(self, 'this'):
6030  self.__init__()
6031  if isinstance(p, tuple):
6032  d, p = p
6033  self.__dict__.update(d)
6034  return self._set_from_binary(p)
6035 
6036 
6037 # Register Harmonic in _IMP_core:
6038 _IMP_core.Harmonic_swigregister(Harmonic)
6039 class HarmonicWell(IMP.UnaryFunction):
6040  r"""Proxy of C++ IMP::core::HarmonicWell class."""
6041 
6042  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6043 
6044  def __init__(self, well, k):
6045  r"""__init__(HarmonicWell self, IMP::FloatRange const & well, double k) -> HarmonicWell"""
6046  _IMP_core.HarmonicWell_swiginit(self, _IMP_core.new_HarmonicWell(well, k))
6047 
6048  def get_version_info(self):
6049  r"""get_version_info(HarmonicWell self) -> VersionInfo"""
6050  return _IMP_core.HarmonicWell_get_version_info(self)
6051  __swig_destroy__ = _IMP_core.delete_HarmonicWell
6052 
6053  def __str__(self):
6054  r"""__str__(HarmonicWell self) -> std::string"""
6055  return _IMP_core.HarmonicWell___str__(self)
6056 
6057  def __repr__(self):
6058  r"""__repr__(HarmonicWell self) -> std::string"""
6059  return _IMP_core.HarmonicWell___repr__(self)
6060 
6061  @staticmethod
6062  def get_from(o):
6063  return _object_cast_to_HarmonicWell(o)
6064 
6065 
6066 # Register HarmonicWell in _IMP_core:
6067 _IMP_core.HarmonicWell_swigregister(HarmonicWell)
6068 class HarmonicLowerBound(Harmonic):
6069  r"""Proxy of C++ IMP::core::HarmonicLowerBound class."""
6070 
6071  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6072 
6073  def __init__(self, *args):
6074  r"""
6075  __init__(HarmonicLowerBound self, IMP::Float mean, IMP::Float k) -> HarmonicLowerBound
6076  __init__(HarmonicLowerBound self) -> HarmonicLowerBound
6077  """
6078  _IMP_core.HarmonicLowerBound_swiginit(self, _IMP_core.new_HarmonicLowerBound(*args))
6079  __swig_destroy__ = _IMP_core.delete_HarmonicLowerBound
6080 
6081  def __str__(self):
6082  r"""__str__(HarmonicLowerBound self) -> std::string"""
6083  return _IMP_core.HarmonicLowerBound___str__(self)
6084 
6085  def __repr__(self):
6086  r"""__repr__(HarmonicLowerBound self) -> std::string"""
6087  return _IMP_core.HarmonicLowerBound___repr__(self)
6088 
6089  @staticmethod
6090  def get_from(o):
6091  return _object_cast_to_HarmonicLowerBound(o)
6092 
6093 
6094  def _get_as_binary(self):
6095  r"""_get_as_binary(HarmonicLowerBound self) -> PyObject *"""
6096  return _IMP_core.HarmonicLowerBound__get_as_binary(self)
6097 
6098  def _set_from_binary(self, p):
6099  r"""_set_from_binary(HarmonicLowerBound self, PyObject * p)"""
6100  return _IMP_core.HarmonicLowerBound__set_from_binary(self, p)
6101 
6102  def __getstate__(self):
6103  p = self._get_as_binary()
6104  if len(self.__dict__) > 1:
6105  d = self.__dict__.copy()
6106  del d['this']
6107  p = (d, p)
6108  return p
6109 
6110  def __setstate__(self, p):
6111  if not hasattr(self, 'this'):
6112  self.__init__()
6113  if isinstance(p, tuple):
6114  d, p = p
6115  self.__dict__.update(d)
6116  return self._set_from_binary(p)
6117 
6118 
6119 # Register HarmonicLowerBound in _IMP_core:
6120 _IMP_core.HarmonicLowerBound_swigregister(HarmonicLowerBound)
6121 class HarmonicUpperBound(Harmonic):
6122  r"""Proxy of C++ IMP::core::HarmonicUpperBound class."""
6123 
6124  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6125 
6126  def __init__(self, *args):
6127  r"""
6128  __init__(HarmonicUpperBound self, IMP::Float mean, IMP::Float k) -> HarmonicUpperBound
6129  __init__(HarmonicUpperBound self) -> HarmonicUpperBound
6130  """
6131  _IMP_core.HarmonicUpperBound_swiginit(self, _IMP_core.new_HarmonicUpperBound(*args))
6132  __swig_destroy__ = _IMP_core.delete_HarmonicUpperBound
6133 
6134  def __str__(self):
6135  r"""__str__(HarmonicUpperBound self) -> std::string"""
6136  return _IMP_core.HarmonicUpperBound___str__(self)
6137 
6138  def __repr__(self):
6139  r"""__repr__(HarmonicUpperBound self) -> std::string"""
6140  return _IMP_core.HarmonicUpperBound___repr__(self)
6141 
6142  @staticmethod
6143  def get_from(o):
6144  return _object_cast_to_HarmonicUpperBound(o)
6145 
6146 
6147  def _get_as_binary(self):
6148  r"""_get_as_binary(HarmonicUpperBound self) -> PyObject *"""
6149  return _IMP_core.HarmonicUpperBound__get_as_binary(self)
6150 
6151  def _set_from_binary(self, p):
6152  r"""_set_from_binary(HarmonicUpperBound self, PyObject * p)"""
6153  return _IMP_core.HarmonicUpperBound__set_from_binary(self, p)
6154 
6155  def __getstate__(self):
6156  p = self._get_as_binary()
6157  if len(self.__dict__) > 1:
6158  d = self.__dict__.copy()
6159  del d['this']
6160  p = (d, p)
6161  return p
6162 
6163  def __setstate__(self, p):
6164  if not hasattr(self, 'this'):
6165  self.__init__()
6166  if isinstance(p, tuple):
6167  d, p = p
6168  self.__dict__.update(d)
6169  return self._set_from_binary(p)
6170 
6171 
6172 # Register HarmonicUpperBound in _IMP_core:
6173 _IMP_core.HarmonicUpperBound_swigregister(HarmonicUpperBound)
6174 class WeightedSum(IMP.UnaryFunction):
6175  r"""Proxy of C++ IMP::core::WeightedSum class."""
6176 
6177  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6178 
6179  def __init__(self, funcs, weights):
6180  r"""__init__(WeightedSum self, IMP::UnaryFunctions funcs, IMP::Floats weights) -> WeightedSum"""
6181  _IMP_core.WeightedSum_swiginit(self, _IMP_core.new_WeightedSum(funcs, weights))
6182 
6183  def get_function_number(self):
6184  r"""get_function_number(WeightedSum self) -> unsigned int"""
6185  return _IMP_core.WeightedSum_get_function_number(self)
6186 
6187  def set_weights(self, weights):
6188  r"""set_weights(WeightedSum self, IMP::Floats weights)"""
6189  return _IMP_core.WeightedSum_set_weights(self, weights)
6190 
6191  def get_weights(self):
6192  r"""get_weights(WeightedSum self) -> IMP::Floats"""
6193  return _IMP_core.WeightedSum_get_weights(self)
6194 
6195  def get_weight(self, i):
6196  r"""get_weight(WeightedSum self, unsigned int i) -> double"""
6197  return _IMP_core.WeightedSum_get_weight(self, i)
6198 
6199  def get_function(self, i):
6200  r"""get_function(WeightedSum self, unsigned int i) -> UnaryFunction"""
6201  return _IMP_core.WeightedSum_get_function(self, i)
6202 
6203  def get_version_info(self):
6204  r"""get_version_info(WeightedSum self) -> VersionInfo"""
6205  return _IMP_core.WeightedSum_get_version_info(self)
6206  __swig_destroy__ = _IMP_core.delete_WeightedSum
6207 
6208  def __str__(self):
6209  r"""__str__(WeightedSum self) -> std::string"""
6210  return _IMP_core.WeightedSum___str__(self)
6211 
6212  def __repr__(self):
6213  r"""__repr__(WeightedSum self) -> std::string"""
6214  return _IMP_core.WeightedSum___repr__(self)
6215 
6216  @staticmethod
6217  def get_from(o):
6218  return _object_cast_to_WeightedSum(o)
6219 
6220 
6221 # Register WeightedSum in _IMP_core:
6222 _IMP_core.WeightedSum_swigregister(WeightedSum)
6223 class WeightedSumOfExponential(IMP.UnaryFunction):
6224  r"""Proxy of C++ IMP::core::WeightedSumOfExponential class."""
6225 
6226  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6227 
6228  def __init__(self, funcs, weights, denom=1.0):
6229  r"""__init__(WeightedSumOfExponential self, IMP::UnaryFunctions funcs, IMP::Floats weights, IMP::Float denom=1.0) -> WeightedSumOfExponential"""
6230  _IMP_core.WeightedSumOfExponential_swiginit(self, _IMP_core.new_WeightedSumOfExponential(funcs, weights, denom))
6231 
6232  def get_function_number(self):
6233  r"""get_function_number(WeightedSumOfExponential self) -> unsigned int"""
6234  return _IMP_core.WeightedSumOfExponential_get_function_number(self)
6235 
6236  def set_weights(self, weights):
6237  r"""set_weights(WeightedSumOfExponential self, IMP::Floats weights)"""
6238  return _IMP_core.WeightedSumOfExponential_set_weights(self, weights)
6239 
6240  def get_weights(self):
6241  r"""get_weights(WeightedSumOfExponential self) -> IMP::Floats"""
6242  return _IMP_core.WeightedSumOfExponential_get_weights(self)
6243 
6244  def get_weight(self, i):
6245  r"""get_weight(WeightedSumOfExponential self, unsigned int i) -> double"""
6246  return _IMP_core.WeightedSumOfExponential_get_weight(self, i)
6247 
6248  def get_function(self, i):
6249  r"""get_function(WeightedSumOfExponential self, unsigned int i) -> UnaryFunction"""
6250  return _IMP_core.WeightedSumOfExponential_get_function(self, i)
6251 
6252  def set_denominator(self, denom):
6253  r"""set_denominator(WeightedSumOfExponential self, double denom)"""
6254  return _IMP_core.WeightedSumOfExponential_set_denominator(self, denom)
6255 
6256  def get_denominator(self):
6257  r"""get_denominator(WeightedSumOfExponential self) -> double"""
6258  return _IMP_core.WeightedSumOfExponential_get_denominator(self)
6259 
6260  def get_version_info(self):
6261  r"""get_version_info(WeightedSumOfExponential self) -> VersionInfo"""
6262  return _IMP_core.WeightedSumOfExponential_get_version_info(self)
6263  __swig_destroy__ = _IMP_core.delete_WeightedSumOfExponential
6264 
6265  def __str__(self):
6266  r"""__str__(WeightedSumOfExponential self) -> std::string"""
6267  return _IMP_core.WeightedSumOfExponential___str__(self)
6268 
6269  def __repr__(self):
6270  r"""__repr__(WeightedSumOfExponential self) -> std::string"""
6271  return _IMP_core.WeightedSumOfExponential___repr__(self)
6272 
6273  @staticmethod
6274  def get_from(o):
6275  return _object_cast_to_WeightedSumOfExponential(o)
6276 
6277 
6278 # Register WeightedSumOfExponential in _IMP_core:
6279 _IMP_core.WeightedSumOfExponential_swigregister(WeightedSumOfExponential)
6280 class MSConnectivityRestraint(IMP.Restraint):
6281  r"""Proxy of C++ IMP::core::MSConnectivityRestraint class."""
6282 
6283  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6284 
6285  def __init__(self, m, ps, eps=0.1):
6286  r"""__init__(MSConnectivityRestraint self, Model m, PairScore ps, double eps=0.1) -> MSConnectivityRestraint"""
6287  _IMP_core.MSConnectivityRestraint_swiginit(self, _IMP_core.new_MSConnectivityRestraint(m, ps, eps))
6288 
6289  def add_type(self, ps):
6290  r"""add_type(MSConnectivityRestraint self, IMP::ParticlesTemp const & ps) -> unsigned int"""
6291  return _IMP_core.MSConnectivityRestraint_add_type(self, ps)
6292 
6293  def add_composite(self, *args):
6294  r"""
6295  add_composite(MSConnectivityRestraint self, IMP::Ints const & components) -> unsigned int
6296  add_composite(MSConnectivityRestraint self, IMP::Ints const & components, unsigned int parent) -> unsigned int
6297  """
6298  return _IMP_core.MSConnectivityRestraint_add_composite(self, *args)
6299 
6300  def get_connected_pairs(self):
6301  r"""get_connected_pairs(MSConnectivityRestraint self) -> IMP::ParticlePairsTemp"""
6302  return _IMP_core.MSConnectivityRestraint_get_connected_pairs(self)
6303 
6304  def get_pair_score(self):
6305  r"""get_pair_score(MSConnectivityRestraint self) -> PairScore"""
6306  return _IMP_core.MSConnectivityRestraint_get_pair_score(self)
6307 
6308  def do_create_current_decomposition(self):
6309  r"""do_create_current_decomposition(MSConnectivityRestraint self) -> IMP::Restraints"""
6310  return _IMP_core.MSConnectivityRestraint_do_create_current_decomposition(self)
6311 
6312  def do_get_inputs(self):
6313  r"""do_get_inputs(MSConnectivityRestraint self) -> IMP::ModelObjectsTemp"""
6314  return _IMP_core.MSConnectivityRestraint_do_get_inputs(self)
6315 
6316  def get_version_info(self):
6317  r"""get_version_info(MSConnectivityRestraint self) -> VersionInfo"""
6318  return _IMP_core.MSConnectivityRestraint_get_version_info(self)
6319  __swig_destroy__ = _IMP_core.delete_MSConnectivityRestraint
6320 
6321  def __str__(self):
6322  r"""__str__(MSConnectivityRestraint self) -> std::string"""
6323  return _IMP_core.MSConnectivityRestraint___str__(self)
6324 
6325  def __repr__(self):
6326  r"""__repr__(MSConnectivityRestraint self) -> std::string"""
6327  return _IMP_core.MSConnectivityRestraint___repr__(self)
6328 
6329  @staticmethod
6330  def get_from(o):
6331  return _object_cast_to_MSConnectivityRestraint(o)
6332 
6333 
6334 # Register MSConnectivityRestraint in _IMP_core:
6335 _IMP_core.MSConnectivityRestraint_swigregister(MSConnectivityRestraint)
6336 class HierarchyTraits(object):
6337  r"""Proxy of C++ IMP::core::HierarchyTraits class."""
6338 
6339  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6340 
6341  def __init__(self, *args):
6342  r"""
6343  __init__(HierarchyTraits self) -> HierarchyTraits
6344  __init__(HierarchyTraits self, std::string name) -> HierarchyTraits
6345  """
6346  _IMP_core.HierarchyTraits_swiginit(self, _IMP_core.new_HierarchyTraits(*args))
6347 
6348  def get_children_key(self):
6349  r"""get_children_key(HierarchyTraits self) -> ParticleIndexesKey"""
6350  return _IMP_core.HierarchyTraits_get_children_key(self)
6351 
6352  def get_parent_key(self):
6353  r"""get_parent_key(HierarchyTraits self) -> ParticleIndexKey"""
6354  return _IMP_core.HierarchyTraits_get_parent_key(self)
6355 
6356  def __eq__(self, o):
6357  r"""__eq__(HierarchyTraits self, HierarchyTraits o) -> bool"""
6358  return _IMP_core.HierarchyTraits___eq__(self, o)
6359 
6360  def show(self, *args):
6361  r"""show(HierarchyTraits self, _ostream out=std::cout)"""
6362  return _IMP_core.HierarchyTraits_show(self, *args)
6363 
6364  def __str__(self):
6365  r"""__str__(HierarchyTraits self) -> std::string"""
6366  return _IMP_core.HierarchyTraits___str__(self)
6367 
6368  def __repr__(self):
6369  r"""__repr__(HierarchyTraits self) -> std::string"""
6370  return _IMP_core.HierarchyTraits___repr__(self)
6371  __swig_destroy__ = _IMP_core.delete_HierarchyTraits
6372 
6373 # Register HierarchyTraits in _IMP_core:
6374 _IMP_core.HierarchyTraits_swigregister(HierarchyTraits)
6375 class Hierarchy(IMP.Decorator):
6376  r"""Proxy of C++ IMP::core::Hierarchy class."""
6377 
6378  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6379 
6380  def get_decorator_traits(self):
6381  r"""get_decorator_traits(Hierarchy self) -> HierarchyTraits"""
6382  return _IMP_core.Hierarchy_get_decorator_traits(self)
6383 
6384  @staticmethod
6385  def get_default_decorator_traits():
6386  r"""get_default_decorator_traits() -> HierarchyTraits"""
6387  return _IMP_core.Hierarchy_get_default_decorator_traits()
6388 
6389  def __init__(self, *args):
6390  r"""
6391  __init__(Hierarchy self) -> Hierarchy
6392  __init__(Hierarchy self, Model m, ParticleIndex id, HierarchyTraits tr=get_default_traits()) -> Hierarchy
6393  __init__(Hierarchy self, _ParticleAdaptor d, HierarchyTraits tr=get_default_traits()) -> Hierarchy
6394  """
6395  _IMP_core.Hierarchy_swiginit(self, _IMP_core.new_Hierarchy(*args))
6396 
6397  def show(self, *args):
6398  r"""show(Hierarchy self, _ostream out=std::cout)"""
6399  return _IMP_core.Hierarchy_show(self, *args)
6400 
6401  @staticmethod
6402  def setup_particle(*args):
6403  r"""
6404  setup_particle(Model m, ParticleIndex pi, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6405  setup_particle(_ParticleAdaptor d, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6406  setup_particle(Model m, ParticleIndex pi, IMP::ParticleIndexes children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6407  setup_particle(_ParticleAdaptor d, IMP::ParticleIndexes children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6408  setup_particle(Model m, ParticleIndex pi, IMP::ParticlesTemp children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6409  setup_particle(_ParticleAdaptor d, IMP::ParticlesTemp children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6410  """
6411  return _IMP_core.Hierarchy_setup_particle(*args)
6412 
6413  @staticmethod
6414  def get_is_setup(*args):
6415  r"""
6416  get_is_setup(_ParticleAdaptor p, HierarchyTraits tr=get_default_traits()) -> bool
6417  get_is_setup(Model arg1, ParticleIndex arg2, HierarchyTraits arg3=Hierarchy::get_default_traits()) -> bool
6418  """
6419  return _IMP_core.Hierarchy_get_is_setup(*args)
6420 
6421  @staticmethod
6422  def get_changed_key():
6423  r"""get_changed_key() -> TriggerKey"""
6424  return _IMP_core.Hierarchy_get_changed_key()
6425 
6426  def get_parent(self):
6427  r"""get_parent(Hierarchy self) -> Hierarchy"""
6428  return _IMP_core.Hierarchy_get_parent(self)
6429 
6430  def get_number_of_children(self):
6431  r"""get_number_of_children(Hierarchy self) -> unsigned int"""
6432  return _IMP_core.Hierarchy_get_number_of_children(self)
6433 
6434  def get_child(self, i):
6435  r"""get_child(Hierarchy self, unsigned int i) -> Hierarchy"""
6436  return _IMP_core.Hierarchy_get_child(self, i)
6437 
6438  def get_children_indexes(self):
6439  r"""get_children_indexes(Hierarchy self) -> IMP::ParticleIndexes"""
6440  return _IMP_core.Hierarchy_get_children_indexes(self)
6441 
6442  def get_children(self):
6443  r"""get_children(Hierarchy self) -> IMP::core::GenericHierarchies"""
6444  return _IMP_core.Hierarchy_get_children(self)
6445 
6446  def remove_child(self, *args):
6447  r"""
6448  remove_child(Hierarchy self, unsigned int i)
6449  remove_child(Hierarchy self, Hierarchy h)
6450  """
6451  return _IMP_core.Hierarchy_remove_child(self, *args)
6452 
6453  def clear_children(self):
6454  r"""clear_children(Hierarchy self)"""
6455  return _IMP_core.Hierarchy_clear_children(self)
6456 
6457  def add_child(self, h):
6458  r"""add_child(Hierarchy self, Hierarchy h)"""
6459  return _IMP_core.Hierarchy_add_child(self, h)
6460 
6461  def add_child_at(self, h, pos):
6462  r"""add_child_at(Hierarchy self, Hierarchy h, unsigned int pos)"""
6463  return _IMP_core.Hierarchy_add_child_at(self, h, pos)
6464 
6465  def get_child_index(self, *args):
6466  r"""
6467  get_child_index(Hierarchy self, unsigned int i) -> ParticleIndex
6468  get_child_index(Hierarchy self) -> int
6469  """
6470  return _IMP_core.Hierarchy_get_child_index(self, *args)
6471 
6472  @staticmethod
6473  def get_default_traits():
6474  r"""get_default_traits() -> HierarchyTraits"""
6475  return _IMP_core.Hierarchy_get_default_traits()
6476 
6477  def get_traits(self):
6478  r"""get_traits(Hierarchy self) -> HierarchyTraits"""
6479  return _IMP_core.Hierarchy_get_traits(self)
6480 
6481  def add_attribute(self, *args):
6482  r"""
6483  add_attribute(Hierarchy self, FloatKey k, IMP::Float v, bool opt)
6484  add_attribute(Hierarchy self, FloatKey a0, IMP::Float a1)
6485  add_attribute(Hierarchy self, IntKey a0, IMP::Int a1)
6486  add_attribute(Hierarchy self, FloatsKey a0, IMP::Floats a1)
6487  add_attribute(Hierarchy self, IntsKey a0, IMP::Ints a1)
6488  add_attribute(Hierarchy self, StringKey a0, IMP::String a1)
6489  add_attribute(Hierarchy self, ParticleIndexKey a0, Particle a1)
6490  add_attribute(Hierarchy self, ObjectKey a0, Object a1)
6491  """
6492  return _IMP_core.Hierarchy_add_attribute(self, *args)
6493 
6494  def get_value(self, *args):
6495  r"""
6496  get_value(Hierarchy self, FloatKey a0) -> IMP::Float
6497  get_value(Hierarchy self, IntKey a0) -> IMP::Int
6498  get_value(Hierarchy self, FloatsKey a0) -> IMP::Floats
6499  get_value(Hierarchy self, IntsKey a0) -> IMP::Ints
6500  get_value(Hierarchy self, StringKey a0) -> IMP::String
6501  get_value(Hierarchy self, ParticleIndexKey a0) -> Particle
6502  get_value(Hierarchy self, ObjectKey a0) -> Object
6503  """
6504  return _IMP_core.Hierarchy_get_value(self, *args)
6505 
6506  def set_value(self, *args):
6507  r"""
6508  set_value(Hierarchy self, FloatKey a0, IMP::Float a1)
6509  set_value(Hierarchy self, IntKey a0, IMP::Int a1)
6510  set_value(Hierarchy self, FloatsKey a0, IMP::Floats a1)
6511  set_value(Hierarchy self, IntsKey a0, IMP::Ints a1)
6512  set_value(Hierarchy self, StringKey a0, IMP::String a1)
6513  set_value(Hierarchy self, ParticleIndexKey a0, Particle a1)
6514  set_value(Hierarchy self, ObjectKey a0, Object a1)
6515  """
6516  return _IMP_core.Hierarchy_set_value(self, *args)
6517 
6518  def remove_attribute(self, *args):
6519  r"""
6520  remove_attribute(Hierarchy self, FloatKey a0)
6521  remove_attribute(Hierarchy self, IntKey a0)
6522  remove_attribute(Hierarchy self, FloatsKey a0)
6523  remove_attribute(Hierarchy self, IntsKey a0)
6524  remove_attribute(Hierarchy self, StringKey a0)
6525  remove_attribute(Hierarchy self, ParticleIndexKey a0)
6526  remove_attribute(Hierarchy self, ObjectKey a0)
6527  """
6528  return _IMP_core.Hierarchy_remove_attribute(self, *args)
6529 
6530  def has_attribute(self, *args):
6531  r"""
6532  has_attribute(Hierarchy self, FloatKey a0) -> bool
6533  has_attribute(Hierarchy self, IntKey a0) -> bool
6534  has_attribute(Hierarchy self, FloatsKey a0) -> bool
6535  has_attribute(Hierarchy self, IntsKey a0) -> bool
6536  has_attribute(Hierarchy self, StringKey a0) -> bool
6537  has_attribute(Hierarchy self, ParticleIndexKey a0) -> bool
6538  has_attribute(Hierarchy self, ObjectKey a0) -> bool
6539  """
6540  return _IMP_core.Hierarchy_has_attribute(self, *args)
6541 
6542  def get_derivative(self, a0):
6543  r"""get_derivative(Hierarchy self, FloatKey a0) -> double"""
6544  return _IMP_core.Hierarchy_get_derivative(self, a0)
6545 
6546  def get_name(self):
6547  r"""get_name(Hierarchy self) -> std::string"""
6548  return _IMP_core.Hierarchy_get_name(self)
6549 
6550  def clear_caches(self):
6551  r"""clear_caches(Hierarchy self)"""
6552  return _IMP_core.Hierarchy_clear_caches(self)
6553 
6554  def set_name(self, a0):
6555  r"""set_name(Hierarchy self, std::string a0)"""
6556  return _IMP_core.Hierarchy_set_name(self, a0)
6557 
6558  def set_check_level(self, a0):
6559  r"""set_check_level(Hierarchy self, IMP::CheckLevel a0)"""
6560  return _IMP_core.Hierarchy_set_check_level(self, a0)
6561 
6562  def add_to_derivative(self, a0, a1, a2):
6563  r"""add_to_derivative(Hierarchy self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6564  return _IMP_core.Hierarchy_add_to_derivative(self, a0, a1, a2)
6565 
6566  def set_is_optimized(self, a0, a1):
6567  r"""set_is_optimized(Hierarchy self, FloatKey a0, bool a1)"""
6568  return _IMP_core.Hierarchy_set_is_optimized(self, a0, a1)
6569 
6570  def get_is_optimized(self, a0):
6571  r"""get_is_optimized(Hierarchy self, FloatKey a0) -> bool"""
6572  return _IMP_core.Hierarchy_get_is_optimized(self, a0)
6573 
6574  def get_check_level(self):
6575  r"""get_check_level(Hierarchy self) -> IMP::CheckLevel"""
6576  return _IMP_core.Hierarchy_get_check_level(self)
6577 
6578  def __eq__(self, *args):
6579  r"""
6580  __eq__(Hierarchy self, Hierarchy o) -> bool
6581  __eq__(Hierarchy self, Particle d) -> bool
6582  """
6583  return _IMP_core.Hierarchy___eq__(self, *args)
6584 
6585  def __ne__(self, *args):
6586  r"""
6587  __ne__(Hierarchy self, Hierarchy o) -> bool
6588  __ne__(Hierarchy self, Particle d) -> bool
6589  """
6590  return _IMP_core.Hierarchy___ne__(self, *args)
6591 
6592  def __le__(self, *args):
6593  r"""
6594  __le__(Hierarchy self, Hierarchy o) -> bool
6595  __le__(Hierarchy self, Particle d) -> bool
6596  """
6597  return _IMP_core.Hierarchy___le__(self, *args)
6598 
6599  def __lt__(self, *args):
6600  r"""
6601  __lt__(Hierarchy self, Hierarchy o) -> bool
6602  __lt__(Hierarchy self, Particle d) -> bool
6603  """
6604  return _IMP_core.Hierarchy___lt__(self, *args)
6605 
6606  def __ge__(self, *args):
6607  r"""
6608  __ge__(Hierarchy self, Hierarchy o) -> bool
6609  __ge__(Hierarchy self, Particle d) -> bool
6610  """
6611  return _IMP_core.Hierarchy___ge__(self, *args)
6612 
6613  def __gt__(self, *args):
6614  r"""
6615  __gt__(Hierarchy self, Hierarchy o) -> bool
6616  __gt__(Hierarchy self, Particle d) -> bool
6617  """
6618  return _IMP_core.Hierarchy___gt__(self, *args)
6619 
6620  def __hash__(self):
6621  r"""__hash__(Hierarchy self) -> std::size_t"""
6622  return _IMP_core.Hierarchy___hash__(self)
6623 
6624  def __str__(self):
6625  r"""__str__(Hierarchy self) -> std::string"""
6626  return _IMP_core.Hierarchy___str__(self)
6627 
6628  def __repr__(self):
6629  r"""__repr__(Hierarchy self) -> std::string"""
6630  return _IMP_core.Hierarchy___repr__(self)
6631  __swig_destroy__ = _IMP_core.delete_Hierarchy
6632 
6633 # Register Hierarchy in _IMP_core:
6634 _IMP_core.Hierarchy_swigregister(Hierarchy)
6635 class HierarchyVisitor(object):
6636  r"""Proxy of C++ IMP::core::HierarchyVisitor class."""
6637 
6638  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6639  __repr__ = _swig_repr
6640 
6641  def __init__(self):
6642  r"""__init__(HierarchyVisitor self) -> HierarchyVisitor"""
6643  if self.__class__ == HierarchyVisitor:
6644  _self = None
6645  else:
6646  _self = self
6647  _IMP_core.HierarchyVisitor_swiginit(self, _IMP_core.new_HierarchyVisitor(_self, ))
6648 
6649  if self.__class__ != HierarchyVisitor:
6650  _director_objects.register(self)
6651 
6652 
6653 
6654 
6655  def __call__(self, p):
6656  r"""__call__(HierarchyVisitor self, Hierarchy p) -> bool"""
6657  return _IMP_core.HierarchyVisitor___call__(self, p)
6658  __swig_destroy__ = _IMP_core.delete_HierarchyVisitor
6659  def __disown__(self):
6660  self.this.disown()
6661  _IMP_core.disown_HierarchyVisitor(self)
6662  return weakref.proxy(self)
6663 
6664 # Register HierarchyVisitor in _IMP_core:
6665 _IMP_core.HierarchyVisitor_swigregister(HierarchyVisitor)
6666 class ModifierVisitor(HierarchyVisitor):
6667  r"""Proxy of C++ IMP::core::ModifierVisitor class."""
6668 
6669  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6670  __repr__ = _swig_repr
6671 
6672  def __init__(self, sm):
6673  r"""__init__(ModifierVisitor self, SingletonModifier sm) -> ModifierVisitor"""
6674  _IMP_core.ModifierVisitor_swiginit(self, _IMP_core.new_ModifierVisitor(sm))
6675  __swig_destroy__ = _IMP_core.delete_ModifierVisitor
6676 
6677 # Register ModifierVisitor in _IMP_core:
6678 _IMP_core.ModifierVisitor_swigregister(ModifierVisitor)
6679 class HierarchyCounter(HierarchyVisitor):
6680  r"""Proxy of C++ IMP::core::HierarchyCounter class."""
6681 
6682  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6683 
6684  def __init__(self):
6685  r"""__init__(HierarchyCounter self) -> HierarchyCounter"""
6686  _IMP_core.HierarchyCounter_swiginit(self, _IMP_core.new_HierarchyCounter())
6687 
6688  def get_count(self):
6689  r"""get_count(HierarchyCounter self) -> unsigned int"""
6690  return _IMP_core.HierarchyCounter_get_count(self)
6691 
6692  def show(self, *args):
6693  r"""show(HierarchyCounter self, _ostream out=std::cout)"""
6694  return _IMP_core.HierarchyCounter_show(self, *args)
6695 
6696  def __str__(self):
6697  r"""__str__(HierarchyCounter self) -> std::string"""
6698  return _IMP_core.HierarchyCounter___str__(self)
6699 
6700  def __repr__(self):
6701  r"""__repr__(HierarchyCounter self) -> std::string"""
6702  return _IMP_core.HierarchyCounter___repr__(self)
6703 
6704  def _get_as_binary(self):
6705  r"""_get_as_binary(HierarchyCounter self) -> PyObject *"""
6706  return _IMP_core.HierarchyCounter__get_as_binary(self)
6707 
6708  def _set_from_binary(self, p):
6709  r"""_set_from_binary(HierarchyCounter self, PyObject * p)"""
6710  return _IMP_core.HierarchyCounter__set_from_binary(self, p)
6711 
6712  def __getstate__(self):
6713  p = self._get_as_binary()
6714  if len(self.__dict__) > 1:
6715  d = self.__dict__.copy()
6716  del d['this']
6717  p = (d, p)
6718  return p
6719 
6720  def __setstate__(self, p):
6721  if not hasattr(self, 'this'):
6722  self.__init__()
6723  if isinstance(p, tuple):
6724  d, p = p
6725  self.__dict__.update(d)
6726  return self._set_from_binary(p)
6727 
6728  __swig_destroy__ = _IMP_core.delete_HierarchyCounter
6729 
6730 # Register HierarchyCounter in _IMP_core:
6731 _IMP_core.HierarchyCounter_swigregister(HierarchyCounter)
6732 
6733 def get_leaves(mhd):
6734  r"""get_leaves(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
6735  return _IMP_core.get_leaves(mhd)
6736 
6737 def get_internal(mhd):
6738  r"""get_internal(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
6739  return _IMP_core.get_internal(mhd)
6740 
6741 def get_all_descendants(mhd):
6742  r"""get_all_descendants(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
6743  return _IMP_core.get_all_descendants(mhd)
6744 
6745 def get_root(h):
6746  r"""get_root(Hierarchy h) -> Hierarchy"""
6747  return _IMP_core.get_root(h)
6748 
6749 def visit_breadth_first(d, f):
6750  r"""visit_breadth_first(Hierarchy d, HierarchyVisitor f)"""
6751  return _IMP_core.visit_breadth_first(d, f)
6752 
6753 def visit_depth_first(d, f):
6754  r"""visit_depth_first(Hierarchy d, HierarchyVisitor f)"""
6755  return _IMP_core.visit_depth_first(d, f)
6756 class LeavesRefiner(IMP.Refiner):
6757  r"""Proxy of C++ IMP::core::LeavesRefiner class."""
6758 
6759  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6760 
6761  def __init__(self, tr):
6762  r"""__init__(LeavesRefiner self, HierarchyTraits tr) -> LeavesRefiner"""
6763  _IMP_core.LeavesRefiner_swiginit(self, _IMP_core.new_LeavesRefiner(tr))
6764 
6765  def do_get_inputs(self, m, pis):
6766  r"""do_get_inputs(LeavesRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6767  return _IMP_core.LeavesRefiner_do_get_inputs(self, m, pis)
6768 
6769  def get_version_info(self):
6770  r"""get_version_info(LeavesRefiner self) -> VersionInfo"""
6771  return _IMP_core.LeavesRefiner_get_version_info(self)
6772  __swig_destroy__ = _IMP_core.delete_LeavesRefiner
6773 
6774  def __str__(self):
6775  r"""__str__(LeavesRefiner self) -> std::string"""
6776  return _IMP_core.LeavesRefiner___str__(self)
6777 
6778  def __repr__(self):
6779  r"""__repr__(LeavesRefiner self) -> std::string"""
6780  return _IMP_core.LeavesRefiner___repr__(self)
6781 
6782  @staticmethod
6783  def get_from(o):
6784  return _object_cast_to_LeavesRefiner(o)
6785 
6786 
6787 # Register LeavesRefiner in _IMP_core:
6788 _IMP_core.LeavesRefiner_swigregister(LeavesRefiner)
6789 class Linear(IMP.UnaryFunction):
6790  r"""Proxy of C++ IMP::core::Linear class."""
6791 
6792  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6793 
6794  def __init__(self, *args):
6795  r"""
6796  __init__(Linear self, double offset, double slope) -> Linear
6797  __init__(Linear self) -> Linear
6798  """
6799  _IMP_core.Linear_swiginit(self, _IMP_core.new_Linear(*args))
6800 
6801  def set_slope(self, f):
6802  r"""set_slope(Linear self, double f)"""
6803  return _IMP_core.Linear_set_slope(self, f)
6804 
6805  def set_offset(self, f):
6806  r"""set_offset(Linear self, double f)"""
6807  return _IMP_core.Linear_set_offset(self, f)
6808 
6809  def get_version_info(self):
6810  r"""get_version_info(Linear self) -> VersionInfo"""
6811  return _IMP_core.Linear_get_version_info(self)
6812  __swig_destroy__ = _IMP_core.delete_Linear
6813 
6814  def __str__(self):
6815  r"""__str__(Linear self) -> std::string"""
6816  return _IMP_core.Linear___str__(self)
6817 
6818  def __repr__(self):
6819  r"""__repr__(Linear self) -> std::string"""
6820  return _IMP_core.Linear___repr__(self)
6821 
6822  @staticmethod
6823  def get_from(o):
6824  return _object_cast_to_Linear(o)
6825 
6826 
6827  def _get_as_binary(self):
6828  r"""_get_as_binary(Linear self) -> PyObject *"""
6829  return _IMP_core.Linear__get_as_binary(self)
6830 
6831  def _set_from_binary(self, p):
6832  r"""_set_from_binary(Linear self, PyObject * p)"""
6833  return _IMP_core.Linear__set_from_binary(self, p)
6834 
6835  def __getstate__(self):
6836  p = self._get_as_binary()
6837  if len(self.__dict__) > 1:
6838  d = self.__dict__.copy()
6839  del d['this']
6840  p = (d, p)
6841  return p
6842 
6843  def __setstate__(self, p):
6844  if not hasattr(self, 'this'):
6845  self.__init__()
6846  if isinstance(p, tuple):
6847  d, p = p
6848  self.__dict__.update(d)
6849  return self._set_from_binary(p)
6850 
6851 
6852 # Register Linear in _IMP_core:
6853 _IMP_core.Linear_swigregister(Linear)
6854 class LogNormalMover(MonteCarloMover):
6855  r"""Proxy of C++ IMP::core::LogNormalMover class."""
6856 
6857  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6858 
6859  def __init__(self, *args):
6860  r"""
6861  __init__(LogNormalMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double stddev) -> LogNormalMover
6862  __init__(LogNormalMover self, Model m, ParticleIndex pi, double stddev) -> LogNormalMover
6863  __init__(LogNormalMover self, IMP::ParticlesTemp const & sc, IMP::FloatKeys const & vars, IMP::Float sigma) -> LogNormalMover
6864  __init__(LogNormalMover self, IMP::ParticlesTemp const & sc, IMP::Float radius) -> LogNormalMover
6865  """
6866  _IMP_core.LogNormalMover_swiginit(self, _IMP_core.new_LogNormalMover(*args))
6867 
6868  def set_sigma(self, sigma):
6869  r"""set_sigma(LogNormalMover self, IMP::Float sigma)"""
6870  return _IMP_core.LogNormalMover_set_sigma(self, sigma)
6871 
6872  def get_sigma(self):
6873  r"""get_sigma(LogNormalMover self) -> IMP::Float"""
6874  return _IMP_core.LogNormalMover_get_sigma(self)
6875 
6876  def get_version_info(self):
6877  r"""get_version_info(LogNormalMover self) -> VersionInfo"""
6878  return _IMP_core.LogNormalMover_get_version_info(self)
6879  __swig_destroy__ = _IMP_core.delete_LogNormalMover
6880 
6881  def __str__(self):
6882  r"""__str__(LogNormalMover self) -> std::string"""
6883  return _IMP_core.LogNormalMover___str__(self)
6884 
6885  def __repr__(self):
6886  r"""__repr__(LogNormalMover self) -> std::string"""
6887  return _IMP_core.LogNormalMover___repr__(self)
6888 
6889  @staticmethod
6890  def get_from(o):
6891  return _object_cast_to_LogNormalMover(o)
6892 
6893 
6894 # Register LogNormalMover in _IMP_core:
6895 _IMP_core.LogNormalMover_swigregister(LogNormalMover)
6896 class IncrementalScoringFunction(IMP.ScoringFunction):
6897  r"""Proxy of C++ IMP::core::IncrementalScoringFunction class."""
6898 
6899  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6900 
6901  def __init__(self, *args):
6902  r"""__init__(IncrementalScoringFunction self, Model m, IMP::ParticleIndexes const & to_move, IMP::RestraintsTemp const & rs, double weight=1.0, double max=NO_MAX, std::string name="IncrementalScoringFunction%1%") -> IncrementalScoringFunction"""
6903  _IMP_core.IncrementalScoringFunction_swiginit(self, _IMP_core.new_IncrementalScoringFunction(*args))
6904 
6905  def reset_moved_particles(self):
6906  r"""reset_moved_particles(IncrementalScoringFunction self)"""
6907  return _IMP_core.IncrementalScoringFunction_reset_moved_particles(self)
6908 
6909  def set_moved_particles(self, p):
6910  r"""set_moved_particles(IncrementalScoringFunction self, IMP::ParticleIndexes const & p)"""
6911  return _IMP_core.IncrementalScoringFunction_set_moved_particles(self, p)
6912 
6913  def add_close_pair_score(self, *args):
6914  r"""
6915  add_close_pair_score(IncrementalScoringFunction self, PairScore ps, double distance, IMP::ParticlesTemp const & particles, IMP::PairPredicates const & filters)
6916  add_close_pair_score(IncrementalScoringFunction self, PairScore ps, double distance, IMP::ParticlesTemp const & particles)
6917  """
6918  return _IMP_core.IncrementalScoringFunction_add_close_pair_score(self, *args)
6919 
6920  def clear_close_pair_scores(self):
6921  r"""clear_close_pair_scores(IncrementalScoringFunction self)"""
6922  return _IMP_core.IncrementalScoringFunction_clear_close_pair_scores(self)
6923 
6924  def get_movable_indexes(self):
6925  r"""get_movable_indexes(IncrementalScoringFunction self) -> IMP::ParticleIndexes"""
6926  return _IMP_core.IncrementalScoringFunction_get_movable_indexes(self)
6927 
6928  def do_add_score_and_derivatives(self, sa, ss):
6929  r"""do_add_score_and_derivatives(IncrementalScoringFunction self, ScoreAccumulator sa, IMP::ScoreStatesTemp const & ss)"""
6930  return _IMP_core.IncrementalScoringFunction_do_add_score_and_derivatives(self, sa, ss)
6931 
6932  def do_get_inputs(self):
6933  r"""do_get_inputs(IncrementalScoringFunction self) -> IMP::ModelObjectsTemp"""
6934  return _IMP_core.IncrementalScoringFunction_do_get_inputs(self)
6935 
6936  def handle_set_has_required_score_states(self, arg2):
6937  r"""handle_set_has_required_score_states(IncrementalScoringFunction self, bool arg2)"""
6938  return _IMP_core.IncrementalScoringFunction_handle_set_has_required_score_states(self, arg2)
6939 
6940  def get_version_info(self):
6941  r"""get_version_info(IncrementalScoringFunction self) -> VersionInfo"""
6942  return _IMP_core.IncrementalScoringFunction_get_version_info(self)
6943  __swig_destroy__ = _IMP_core.delete_IncrementalScoringFunction
6944 
6945  def __str__(self):
6946  r"""__str__(IncrementalScoringFunction self) -> std::string"""
6947  return _IMP_core.IncrementalScoringFunction___str__(self)
6948 
6949  def __repr__(self):
6950  r"""__repr__(IncrementalScoringFunction self) -> std::string"""
6951  return _IMP_core.IncrementalScoringFunction___repr__(self)
6952 
6953  @staticmethod
6954  def get_from(o):
6955  return _object_cast_to_IncrementalScoringFunction(o)
6956 
6957 
6958 # Register IncrementalScoringFunction in _IMP_core:
6959 _IMP_core.IncrementalScoringFunction_swigregister(IncrementalScoringFunction)
6960 IMP_CORE_HAS_MONTE_CARLO_MOVER = _IMP_core.IMP_CORE_HAS_MONTE_CARLO_MOVER
6961 
6962 class MonteCarlo(IMP.Optimizer):
6963  r"""Proxy of C++ IMP::core::MonteCarlo class."""
6964 
6965  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6966 
6967  def __init__(self, m):
6968  r"""__init__(MonteCarlo self, Model m) -> MonteCarlo"""
6969  _IMP_core.MonteCarlo_swiginit(self, _IMP_core.new_MonteCarlo(m))
6970 
6971  def get_version_info(self):
6972  r"""get_version_info(MonteCarlo self) -> VersionInfo"""
6973  return _IMP_core.MonteCarlo_get_version_info(self)
6974  __swig_destroy__ = _IMP_core.delete_MonteCarlo
6975 
6976  def set_return_best(self, tf):
6977  r"""set_return_best(MonteCarlo self, bool tf)"""
6978  return _IMP_core.MonteCarlo_set_return_best(self, tf)
6979 
6980  def set_score_moved(self, mv):
6981  r"""set_score_moved(MonteCarlo self, bool mv)"""
6982  return _IMP_core.MonteCarlo_set_score_moved(self, mv)
6983 
6984  def set_kt(self, t):
6985  r"""set_kt(MonteCarlo self, IMP::Float t)"""
6986  return _IMP_core.MonteCarlo_set_kt(self, t)
6987 
6988  def get_kt(self):
6989  r"""get_kt(MonteCarlo self) -> IMP::Float"""
6990  return _IMP_core.MonteCarlo_get_kt(self)
6991 
6992  def get_last_accepted_energy(self):
6993  r"""get_last_accepted_energy(MonteCarlo self) -> double"""
6994  return _IMP_core.MonteCarlo_get_last_accepted_energy(self)
6995 
6996  def get_best_accepted_energy(self):
6997  r"""get_best_accepted_energy(MonteCarlo self) -> double"""
6998  return _IMP_core.MonteCarlo_get_best_accepted_energy(self)
6999 
7000  def get_number_of_downward_steps(self):
7001  r"""get_number_of_downward_steps(MonteCarlo self) -> unsigned int"""
7002  return _IMP_core.MonteCarlo_get_number_of_downward_steps(self)
7003 
7004  def get_number_of_upward_steps(self):
7005  r"""get_number_of_upward_steps(MonteCarlo self) -> unsigned int"""
7006  return _IMP_core.MonteCarlo_get_number_of_upward_steps(self)
7007 
7008  def get_number_of_proposed_steps(self):
7009  r"""get_number_of_proposed_steps(MonteCarlo self) -> unsigned int"""
7010  return _IMP_core.MonteCarlo_get_number_of_proposed_steps(self)
7011 
7012  def get_number_of_accepted_steps(self):
7013  r"""get_number_of_accepted_steps(MonteCarlo self) -> unsigned int"""
7014  return _IMP_core.MonteCarlo_get_number_of_accepted_steps(self)
7015 
7016  def reset_statistics(self):
7017  r"""reset_statistics(MonteCarlo self)"""
7018  return _IMP_core.MonteCarlo_reset_statistics(self)
7019 
7020  def set_score_threshold(self, s):
7021  r"""set_score_threshold(MonteCarlo self, double s)"""
7022  return _IMP_core.MonteCarlo_set_score_threshold(self, s)
7023 
7024  def get_score_threshold(self):
7025  r"""get_score_threshold(MonteCarlo self) -> double"""
7026  return _IMP_core.MonteCarlo_get_score_threshold(self)
7027 
7028  def set_maximum_difference(self, d):
7029  r"""set_maximum_difference(MonteCarlo self, double d)"""
7030  return _IMP_core.MonteCarlo_set_maximum_difference(self, d)
7031 
7032  def get_maximum_difference(self):
7033  r"""get_maximum_difference(MonteCarlo self) -> double"""
7034  return _IMP_core.MonteCarlo_get_maximum_difference(self)
7035  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)
7036  def __set_movers(self, obj): IMP._list_util.set_varlist(self.movers, obj)
7037  def __del_movers(self): IMP._list_util.del_varlist(self.movers)
7038  movers = property(__get_movers, __set_movers, __del_movers, doc="List of ##ucnames")
7039 
7040  def remove_mover(self, d):
7041  r"""remove_mover(MonteCarlo self, MonteCarloMover d)"""
7042  return _IMP_core.MonteCarlo_remove_mover(self, d)
7043 
7044  def _python_index_mover(self, d, start, stop):
7045  r"""_python_index_mover(MonteCarlo self, MonteCarloMover d, unsigned int start, unsigned int stop) -> unsigned int"""
7046  return _IMP_core.MonteCarlo__python_index_mover(self, d, start, stop)
7047 
7048  def remove_movers(self, d):
7049  r"""remove_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & d)"""
7050  return _IMP_core.MonteCarlo_remove_movers(self, d)
7051 
7052  def set_movers(self, ps):
7053  r"""set_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & ps)"""
7054  return _IMP_core.MonteCarlo_set_movers(self, ps)
7055 
7056  def set_movers_order(self, objs):
7057  r"""set_movers_order(MonteCarlo self, IMP::core::MonteCarloMovers const & objs)"""
7058  return _IMP_core.MonteCarlo_set_movers_order(self, objs)
7059 
7060  def add_mover(self, obj):
7061  r"""add_mover(MonteCarlo self, MonteCarloMover obj) -> unsigned int"""
7062  return _IMP_core.MonteCarlo_add_mover(self, obj)
7063 
7064  def add_movers(self, objs):
7065  r"""add_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & objs)"""
7066  return _IMP_core.MonteCarlo_add_movers(self, objs)
7067 
7068  def clear_movers(self):
7069  r"""clear_movers(MonteCarlo self)"""
7070  return _IMP_core.MonteCarlo_clear_movers(self)
7071 
7072  def get_number_of_movers(self):
7073  r"""get_number_of_movers(MonteCarlo self) -> unsigned int"""
7074  return _IMP_core.MonteCarlo_get_number_of_movers(self)
7075 
7076  def get_has_movers(self):
7077  r"""get_has_movers(MonteCarlo self) -> bool"""
7078  return _IMP_core.MonteCarlo_get_has_movers(self)
7079 
7080  def get_mover(self, i):
7081  r"""get_mover(MonteCarlo self, unsigned int i) -> MonteCarloMover"""
7082  return _IMP_core.MonteCarlo_get_mover(self, i)
7083 
7084  def get_movers(self):
7085  r"""get_movers(MonteCarlo self) -> IMP::core::MonteCarloMovers"""
7086  return _IMP_core.MonteCarlo_get_movers(self)
7087 
7088  def erase_mover(self, i):
7089  r"""erase_mover(MonteCarlo self, unsigned int i)"""
7090  return _IMP_core.MonteCarlo_erase_mover(self, i)
7091 
7092  def reserve_movers(self, sz):
7093  r"""reserve_movers(MonteCarlo self, unsigned int sz)"""
7094  return _IMP_core.MonteCarlo_reserve_movers(self, sz)
7095 
7096  def set_incremental_scoring_function(self, isf):
7097  r"""set_incremental_scoring_function(MonteCarlo self, IncrementalScoringFunction isf)"""
7098  return _IMP_core.MonteCarlo_set_incremental_scoring_function(self, isf)
7099 
7100  def get_use_incremental_scoring_function(self):
7101  r"""get_use_incremental_scoring_function(MonteCarlo self) -> bool"""
7102  return _IMP_core.MonteCarlo_get_use_incremental_scoring_function(self)
7103 
7104  def get_incremental_scoring_function(self):
7105  r"""get_incremental_scoring_function(MonteCarlo self) -> IncrementalScoringFunction"""
7106  return _IMP_core.MonteCarlo_get_incremental_scoring_function(self)
7107 
7108  def __str__(self):
7109  r"""__str__(MonteCarlo self) -> std::string"""
7110  return _IMP_core.MonteCarlo___str__(self)
7111 
7112  def __repr__(self):
7113  r"""__repr__(MonteCarlo self) -> std::string"""
7114  return _IMP_core.MonteCarlo___repr__(self)
7115 
7116  @staticmethod
7117  def get_from(o):
7118  return _object_cast_to_MonteCarlo(o)
7119 
7120 
7121 # Register MonteCarlo in _IMP_core:
7122 _IMP_core.MonteCarlo_swigregister(MonteCarlo)
7123 class MonteCarloWithLocalOptimization(MonteCarlo):
7124  r"""Proxy of C++ IMP::core::MonteCarloWithLocalOptimization class."""
7125 
7126  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7127 
7128  def __init__(self, opt, steps):
7129  r"""__init__(MonteCarloWithLocalOptimization self, Optimizer opt, unsigned int steps) -> MonteCarloWithLocalOptimization"""
7130  _IMP_core.MonteCarloWithLocalOptimization_swiginit(self, _IMP_core.new_MonteCarloWithLocalOptimization(opt, steps))
7131 
7132  def get_number_of_steps(self):
7133  r"""get_number_of_steps(MonteCarloWithLocalOptimization self) -> unsigned int"""
7134  return _IMP_core.MonteCarloWithLocalOptimization_get_number_of_steps(self)
7135 
7136  def get_local_optimizer(self):
7137  r"""get_local_optimizer(MonteCarloWithLocalOptimization self) -> Optimizer"""
7138  return _IMP_core.MonteCarloWithLocalOptimization_get_local_optimizer(self)
7139  __swig_destroy__ = _IMP_core.delete_MonteCarloWithLocalOptimization
7140 
7141  def __str__(self):
7142  r"""__str__(MonteCarloWithLocalOptimization self) -> std::string"""
7143  return _IMP_core.MonteCarloWithLocalOptimization___str__(self)
7144 
7145  def __repr__(self):
7146  r"""__repr__(MonteCarloWithLocalOptimization self) -> std::string"""
7147  return _IMP_core.MonteCarloWithLocalOptimization___repr__(self)
7148 
7149  @staticmethod
7150  def get_from(o):
7151  return _object_cast_to_MonteCarloWithLocalOptimization(o)
7152 
7153 
7154 # Register MonteCarloWithLocalOptimization in _IMP_core:
7155 _IMP_core.MonteCarloWithLocalOptimization_swigregister(MonteCarloWithLocalOptimization)
7156 class MonteCarloWithBasinHopping(MonteCarloWithLocalOptimization):
7157  r"""Proxy of C++ IMP::core::MonteCarloWithBasinHopping class."""
7158 
7159  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7160 
7161  def __init__(self, opt, ns):
7162  r"""__init__(MonteCarloWithBasinHopping self, Optimizer opt, unsigned int ns) -> MonteCarloWithBasinHopping"""
7163  _IMP_core.MonteCarloWithBasinHopping_swiginit(self, _IMP_core.new_MonteCarloWithBasinHopping(opt, ns))
7164  __swig_destroy__ = _IMP_core.delete_MonteCarloWithBasinHopping
7165 
7166  def __str__(self):
7167  r"""__str__(MonteCarloWithBasinHopping self) -> std::string"""
7168  return _IMP_core.MonteCarloWithBasinHopping___str__(self)
7169 
7170  def __repr__(self):
7171  r"""__repr__(MonteCarloWithBasinHopping self) -> std::string"""
7172  return _IMP_core.MonteCarloWithBasinHopping___repr__(self)
7173 
7174  @staticmethod
7175  def get_from(o):
7176  return _object_cast_to_MonteCarloWithBasinHopping(o)
7177 
7178 
7179 # Register MonteCarloWithBasinHopping in _IMP_core:
7180 _IMP_core.MonteCarloWithBasinHopping_swigregister(MonteCarloWithBasinHopping)
7181 class NeighborsTable(IMP.ScoreState):
7182  r"""Proxy of C++ IMP::core::NeighborsTable class."""
7183 
7184  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7185 
7186  def __init__(self, *args):
7187  r"""__init__(NeighborsTable self, PairContainer input, std::string name="CloseNeighborsTable%1%") -> NeighborsTable"""
7188  _IMP_core.NeighborsTable_swiginit(self, _IMP_core.new_NeighborsTable(*args))
7189 
7190  def get_neighbors(self, pi):
7191  r"""get_neighbors(NeighborsTable self, ParticleIndex pi) -> IMP::ParticleIndexes const &"""
7192  return _IMP_core.NeighborsTable_get_neighbors(self, pi)
7193 
7194  def get_version_info(self):
7195  r"""get_version_info(NeighborsTable self) -> VersionInfo"""
7196  return _IMP_core.NeighborsTable_get_version_info(self)
7197  __swig_destroy__ = _IMP_core.delete_NeighborsTable
7198 
7199  def __str__(self):
7200  r"""__str__(NeighborsTable self) -> std::string"""
7201  return _IMP_core.NeighborsTable___str__(self)
7202 
7203  def __repr__(self):
7204  r"""__repr__(NeighborsTable self) -> std::string"""
7205  return _IMP_core.NeighborsTable___repr__(self)
7206 
7207  @staticmethod
7208  def get_from(o):
7209  return _object_cast_to_NeighborsTable(o)
7210 
7211 
7212 # Register NeighborsTable in _IMP_core:
7213 _IMP_core.NeighborsTable_swigregister(NeighborsTable)
7214 class NormalMover(MonteCarloMover):
7215  r"""Proxy of C++ IMP::core::NormalMover class."""
7216 
7217  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7218 
7219  def __init__(self, *args):
7220  r"""
7221  __init__(NormalMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double stddev) -> NormalMover
7222  __init__(NormalMover self, Model m, ParticleIndex pi, double stddev) -> NormalMover
7223  __init__(NormalMover self, IMP::ParticlesTemp const & sc, IMP::FloatKeys const & vars, IMP::Float sigma) -> NormalMover
7224  __init__(NormalMover self, IMP::ParticlesTemp const & sc, IMP::Float radius) -> NormalMover
7225  """
7226  _IMP_core.NormalMover_swiginit(self, _IMP_core.new_NormalMover(*args))
7227 
7228  def set_sigma(self, sigma):
7229  r"""set_sigma(NormalMover self, IMP::Float sigma)"""
7230  return _IMP_core.NormalMover_set_sigma(self, sigma)
7231 
7232  def get_sigma(self):
7233  r"""get_sigma(NormalMover self) -> IMP::Float"""
7234  return _IMP_core.NormalMover_get_sigma(self)
7235 
7236  def get_version_info(self):
7237  r"""get_version_info(NormalMover self) -> VersionInfo"""
7238  return _IMP_core.NormalMover_get_version_info(self)
7239  __swig_destroy__ = _IMP_core.delete_NormalMover
7240 
7241  def __str__(self):
7242  r"""__str__(NormalMover self) -> std::string"""
7243  return _IMP_core.NormalMover___str__(self)
7244 
7245  def __repr__(self):
7246  r"""__repr__(NormalMover self) -> std::string"""
7247  return _IMP_core.NormalMover___repr__(self)
7248 
7249  @staticmethod
7250  def get_from(o):
7251  return _object_cast_to_NormalMover(o)
7252 
7253 
7254 # Register NormalMover in _IMP_core:
7255 _IMP_core.NormalMover_swigregister(NormalMover)
7256 class OpenCubicSpline(_OpenCubicSplineBase):
7257  r"""Proxy of C++ IMP::core::OpenCubicSpline class."""
7258 
7259  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7260 
7261  def __init__(self, values, minrange, spacing, extend=False):
7262  r"""__init__(OpenCubicSpline self, IMP::Floats const & values, IMP::Float minrange, IMP::Float spacing, bool extend=False) -> OpenCubicSpline"""
7263  _IMP_core.OpenCubicSpline_swiginit(self, _IMP_core.new_OpenCubicSpline(values, minrange, spacing, extend))
7264 
7265  def __str__(self):
7266  r"""__str__(OpenCubicSpline self) -> std::string"""
7267  return _IMP_core.OpenCubicSpline___str__(self)
7268 
7269  def __repr__(self):
7270  r"""__repr__(OpenCubicSpline self) -> std::string"""
7271  return _IMP_core.OpenCubicSpline___repr__(self)
7272 
7273  @staticmethod
7274  def get_from(o):
7275  return _object_cast_to_OpenCubicSpline(o)
7276 
7277  __swig_destroy__ = _IMP_core.delete_OpenCubicSpline
7278 
7279 # Register OpenCubicSpline in _IMP_core:
7280 _IMP_core.OpenCubicSpline_swigregister(OpenCubicSpline)
7281 class QuadraticClosePairsFinder(ClosePairsFinder):
7282  r"""Proxy of C++ IMP::core::QuadraticClosePairsFinder class."""
7283 
7284  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7285 
7286  def __init__(self):
7287  r"""__init__(QuadraticClosePairsFinder self) -> QuadraticClosePairsFinder"""
7288  _IMP_core.QuadraticClosePairsFinder_swiginit(self, _IMP_core.new_QuadraticClosePairsFinder())
7289 
7290  def get_are_close_and_filtered(self, *args):
7291  r"""
7292  get_are_close_and_filtered(QuadraticClosePairsFinder self, Particle a, Particle b) -> bool
7293  get_are_close_and_filtered(QuadraticClosePairsFinder self, Model m, ParticleIndex a, ParticleIndex b) -> bool
7294  """
7295  return _IMP_core.QuadraticClosePairsFinder_get_are_close_and_filtered(self, *args)
7296 
7297  def get_close_pairs(self, *args):
7298  r"""
7299  get_close_pairs(QuadraticClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
7300  get_close_pairs(QuadraticClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
7301  get_close_pairs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
7302  get_close_pairs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
7303  """
7304  return _IMP_core.QuadraticClosePairsFinder_get_close_pairs(self, *args)
7305 
7306  def do_get_inputs(self, m, pis):
7307  r"""do_get_inputs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7308  return _IMP_core.QuadraticClosePairsFinder_do_get_inputs(self, m, pis)
7309 
7310  def get_version_info(self):
7311  r"""get_version_info(QuadraticClosePairsFinder self) -> VersionInfo"""
7312  return _IMP_core.QuadraticClosePairsFinder_get_version_info(self)
7313  __swig_destroy__ = _IMP_core.delete_QuadraticClosePairsFinder
7314 
7315  def __str__(self):
7316  r"""__str__(QuadraticClosePairsFinder self) -> std::string"""
7317  return _IMP_core.QuadraticClosePairsFinder___str__(self)
7318 
7319  def __repr__(self):
7320  r"""__repr__(QuadraticClosePairsFinder self) -> std::string"""
7321  return _IMP_core.QuadraticClosePairsFinder___repr__(self)
7322 
7323  @staticmethod
7324  def get_from(o):
7325  return _object_cast_to_QuadraticClosePairsFinder(o)
7326 
7327 
7328 # Register QuadraticClosePairsFinder in _IMP_core:
7329 _IMP_core.QuadraticClosePairsFinder_swigregister(QuadraticClosePairsFinder)
7330 class RefinedPairsPairScore(IMP.PairScore):
7331  r"""Proxy of C++ IMP::core::RefinedPairsPairScore class."""
7332 
7333  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7334 
7335  def __init__(self, r, f):
7336  r"""__init__(RefinedPairsPairScore self, Refiner r, PairScore f) -> RefinedPairsPairScore"""
7337  _IMP_core.RefinedPairsPairScore_swiginit(self, _IMP_core.new_RefinedPairsPairScore(r, f))
7338 
7339  def do_get_inputs(self, m, pis):
7340  r"""do_get_inputs(RefinedPairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7341  return _IMP_core.RefinedPairsPairScore_do_get_inputs(self, m, pis)
7342 
7343  def get_version_info(self):
7344  r"""get_version_info(RefinedPairsPairScore self) -> VersionInfo"""
7345  return _IMP_core.RefinedPairsPairScore_get_version_info(self)
7346  __swig_destroy__ = _IMP_core.delete_RefinedPairsPairScore
7347 
7348  def __str__(self):
7349  r"""__str__(RefinedPairsPairScore self) -> std::string"""
7350  return _IMP_core.RefinedPairsPairScore___str__(self)
7351 
7352  def __repr__(self):
7353  r"""__repr__(RefinedPairsPairScore self) -> std::string"""
7354  return _IMP_core.RefinedPairsPairScore___repr__(self)
7355 
7356  @staticmethod
7357  def get_from(o):
7358  return _object_cast_to_RefinedPairsPairScore(o)
7359 
7360 
7361 # Register RefinedPairsPairScore in _IMP_core:
7362 _IMP_core.RefinedPairsPairScore_swigregister(RefinedPairsPairScore)
7363 class RigidBody(XYZ):
7364  r"""Proxy of C++ IMP::core::RigidBody class."""
7365 
7366  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7367 
7368  def get_rigid_members(self):
7369  r"""get_rigid_members(RigidBody self) -> IMP::core::RigidMembers"""
7370  return _IMP_core.RigidBody_get_rigid_members(self)
7371 
7372  @staticmethod
7373  def get_rotation_keys():
7374  r"""get_rotation_keys() -> IMP::FloatKeys"""
7375  return _IMP_core.RigidBody_get_rotation_keys()
7376 
7377  def get_member_particle_indexes(self):
7378  r"""get_member_particle_indexes(RigidBody self) -> IMP::ParticleIndexes const &"""
7379  return _IMP_core.RigidBody_get_member_particle_indexes(self)
7380 
7381  def get_body_member_particle_indexes(self):
7382  r"""get_body_member_particle_indexes(RigidBody self) -> IMP::ParticleIndexes const &"""
7383  return _IMP_core.RigidBody_get_body_member_particle_indexes(self)
7384 
7385  def get_member_indexes(self):
7386  r"""get_member_indexes(RigidBody self) -> IMP::ParticleIndexes"""
7387  return _IMP_core.RigidBody_get_member_indexes(self)
7388 
7389  def show(self, *args):
7390  r"""show(RigidBody self, _ostream out=std::cout)"""
7391  return _IMP_core.RigidBody_show(self, *args)
7392 
7393  @staticmethod
7394  def setup_particle(*args):
7395  r"""
7396  setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor ps) -> RigidBody
7397  setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor ps) -> RigidBody
7398  setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf) -> RigidBody
7399  setup_particle(_ParticleAdaptor pa, ReferenceFrame3D rf) -> RigidBody
7400  """
7401  return _IMP_core.RigidBody_setup_particle(*args)
7402 
7403  @staticmethod
7404  def teardown_particle(rb):
7405  r"""teardown_particle(RigidBody rb)"""
7406  return _IMP_core.RigidBody_teardown_particle(rb)
7407 
7408  def __init__(self, *args):
7409  r"""
7410  __init__(RigidBody self) -> RigidBody
7411  __init__(RigidBody self, Model m, ParticleIndex id) -> RigidBody
7412  __init__(RigidBody self, _ParticleAdaptor d) -> RigidBody
7413  __init__(RigidBody self, RigidBody arg2) -> RigidBody
7414  """
7415  _IMP_core.RigidBody_swiginit(self, _IMP_core.new_RigidBody(*args))
7416  __swig_destroy__ = _IMP_core.delete_RigidBody
7417 
7418  @staticmethod
7419  def get_is_setup(*args):
7420  r"""
7421  get_is_setup(_ParticleAdaptor p) -> bool
7422  get_is_setup(Model m, ParticleIndex pi) -> bool
7423  """
7424  return _IMP_core.RigidBody_get_is_setup(*args)
7425 
7426  def get_coordinates(self):
7427  r"""get_coordinates(RigidBody self) -> Vector3D"""
7428  return _IMP_core.RigidBody_get_coordinates(self)
7429 
7430  def get_rotation(self):
7431  r"""get_rotation(RigidBody self) -> Rotation3D"""
7432  return _IMP_core.RigidBody_get_rotation(self)
7433 
7434  def get_reference_frame(self):
7435  r"""get_reference_frame(RigidBody self) -> ReferenceFrame3D"""
7436  return _IMP_core.RigidBody_get_reference_frame(self)
7437 
7438  def set_reference_frame(self, tr):
7439  r"""set_reference_frame(RigidBody self, ReferenceFrame3D tr)"""
7440  return _IMP_core.RigidBody_set_reference_frame(self, tr)
7441 
7442  def set_reference_frame_lazy(self, tr):
7443  r"""set_reference_frame_lazy(RigidBody self, ReferenceFrame3D tr)"""
7444  return _IMP_core.RigidBody_set_reference_frame_lazy(self, tr)
7445 
7446  def set_reference_frame_from_members(self, members):
7447  r"""set_reference_frame_from_members(RigidBody self, IMP::ParticleIndexes const & members)"""
7448  return _IMP_core.RigidBody_set_reference_frame_from_members(self, members)
7449 
7450  def pull_back_members_adjoints(self, da):
7451  r"""pull_back_members_adjoints(RigidBody self, DerivativeAccumulator da)"""
7452  return _IMP_core.RigidBody_pull_back_members_adjoints(self, da)
7453 
7454  def pull_back_member_adjoints(self, pi, da):
7455  r"""pull_back_member_adjoints(RigidBody self, ParticleIndex pi, DerivativeAccumulator da)"""
7456  return _IMP_core.RigidBody_pull_back_member_adjoints(self, pi, da)
7457 
7458  def pull_back_body_member_adjoints(self, pi, da):
7459  r"""pull_back_body_member_adjoints(RigidBody self, ParticleIndex pi, DerivativeAccumulator da)"""
7460  return _IMP_core.RigidBody_pull_back_body_member_adjoints(self, pi, da)
7461 
7462  def add_to_derivatives(self, *args):
7463  r"""
7464  add_to_derivatives(RigidBody self, Vector3D local_derivative, Vector3D local_location, DerivativeAccumulator da)
7465  add_to_derivatives(RigidBody self, Vector3D local_derivative, Vector3D global_derivative, Vector3D local_location, Rotation3D rot_local_to_global, DerivativeAccumulator da)
7466  """
7467  return _IMP_core.RigidBody_add_to_derivatives(self, *args)
7468 
7469  def add_to_rotational_derivatives(self, *args):
7470  r"""
7471  add_to_rotational_derivatives(RigidBody self, Vector4D other_qderiv, Rotation3D rot_other_to_local, Rotation3D rot_local_to_global, DerivativeAccumulator da)
7472  add_to_rotational_derivatives(RigidBody self, Vector4D qderiv, DerivativeAccumulator da)
7473  """
7474  return _IMP_core.RigidBody_add_to_rotational_derivatives(self, *args)
7475 
7476  def add_to_torque(self, torque_local, da):
7477  r"""add_to_torque(RigidBody self, Vector3D torque_local, DerivativeAccumulator da)"""
7478  return _IMP_core.RigidBody_add_to_torque(self, torque_local, da)
7479 
7480  def get_torque(self):
7481  r"""get_torque(RigidBody self) -> Vector3D"""
7482  return _IMP_core.RigidBody_get_torque(self)
7483 
7484  def get_coordinates_are_optimized(self):
7485  r"""get_coordinates_are_optimized(RigidBody self) -> bool"""
7486  return _IMP_core.RigidBody_get_coordinates_are_optimized(self)
7487 
7488  def set_coordinates_are_optimized(self, tf):
7489  r"""set_coordinates_are_optimized(RigidBody self, bool tf)"""
7490  return _IMP_core.RigidBody_set_coordinates_are_optimized(self, tf)
7491 
7492  def normalize_rotation(self):
7493  r"""normalize_rotation(RigidBody self)"""
7494  return _IMP_core.RigidBody_normalize_rotation(self)
7495 
7496  def update_members(self):
7497  r"""update_members(RigidBody self)"""
7498  return _IMP_core.RigidBody_update_members(self)
7499 
7500  def get_rotational_derivatives(self):
7501  r"""get_rotational_derivatives(RigidBody self) -> Vector4D"""
7502  return _IMP_core.RigidBody_get_rotational_derivatives(self)
7503 
7504  def get_number_of_members(self):
7505  r"""get_number_of_members(RigidBody self) -> unsigned int"""
7506  return _IMP_core.RigidBody_get_number_of_members(self)
7507 
7508  def get_member(self, i):
7509  r"""get_member(RigidBody self, unsigned int i) -> RigidBodyMember"""
7510  return _IMP_core.RigidBody_get_member(self, i)
7511 
7512  def add_member(self, p):
7513  r"""add_member(RigidBody self, _ParticleIndexAdaptor p)"""
7514  return _IMP_core.RigidBody_add_member(self, p)
7515 
7516  def add_non_rigid_member(self, p):
7517  r"""add_non_rigid_member(RigidBody self, _ParticleIndexAdaptor p)"""
7518  return _IMP_core.RigidBody_add_non_rigid_member(self, p)
7519 
7520  def set_is_rigid_member(self, pi, tf):
7521  r"""set_is_rigid_member(RigidBody self, ParticleIndex pi, bool tf)"""
7522  return _IMP_core.RigidBody_set_is_rigid_member(self, pi, tf)
7523 
7524  def remove_member(self, p):
7525  r"""remove_member(RigidBody self, _ParticleIndexAdaptor p)"""
7526  return _IMP_core.RigidBody_remove_member(self, p)
7527 
7528  def add_attribute(self, *args):
7529  r"""
7530  add_attribute(RigidBody self, FloatKey k, IMP::Float v, bool opt)
7531  add_attribute(RigidBody self, FloatKey a0, IMP::Float a1)
7532  add_attribute(RigidBody self, IntKey a0, IMP::Int a1)
7533  add_attribute(RigidBody self, FloatsKey a0, IMP::Floats a1)
7534  add_attribute(RigidBody self, IntsKey a0, IMP::Ints a1)
7535  add_attribute(RigidBody self, StringKey a0, IMP::String a1)
7536  add_attribute(RigidBody self, ParticleIndexKey a0, Particle a1)
7537  add_attribute(RigidBody self, ObjectKey a0, Object a1)
7538  """
7539  return _IMP_core.RigidBody_add_attribute(self, *args)
7540 
7541  def get_value(self, *args):
7542  r"""
7543  get_value(RigidBody self, FloatKey a0) -> IMP::Float
7544  get_value(RigidBody self, IntKey a0) -> IMP::Int
7545  get_value(RigidBody self, FloatsKey a0) -> IMP::Floats
7546  get_value(RigidBody self, IntsKey a0) -> IMP::Ints
7547  get_value(RigidBody self, StringKey a0) -> IMP::String
7548  get_value(RigidBody self, ParticleIndexKey a0) -> Particle
7549  get_value(RigidBody self, ObjectKey a0) -> Object
7550  """
7551  return _IMP_core.RigidBody_get_value(self, *args)
7552 
7553  def set_value(self, *args):
7554  r"""
7555  set_value(RigidBody self, FloatKey a0, IMP::Float a1)
7556  set_value(RigidBody self, IntKey a0, IMP::Int a1)
7557  set_value(RigidBody self, FloatsKey a0, IMP::Floats a1)
7558  set_value(RigidBody self, IntsKey a0, IMP::Ints a1)
7559  set_value(RigidBody self, StringKey a0, IMP::String a1)
7560  set_value(RigidBody self, ParticleIndexKey a0, Particle a1)
7561  set_value(RigidBody self, ObjectKey a0, Object a1)
7562  """
7563  return _IMP_core.RigidBody_set_value(self, *args)
7564 
7565  def remove_attribute(self, *args):
7566  r"""
7567  remove_attribute(RigidBody self, FloatKey a0)
7568  remove_attribute(RigidBody self, IntKey a0)
7569  remove_attribute(RigidBody self, FloatsKey a0)
7570  remove_attribute(RigidBody self, IntsKey a0)
7571  remove_attribute(RigidBody self, StringKey a0)
7572  remove_attribute(RigidBody self, ParticleIndexKey a0)
7573  remove_attribute(RigidBody self, ObjectKey a0)
7574  """
7575  return _IMP_core.RigidBody_remove_attribute(self, *args)
7576 
7577  def has_attribute(self, *args):
7578  r"""
7579  has_attribute(RigidBody self, FloatKey a0) -> bool
7580  has_attribute(RigidBody self, IntKey a0) -> bool
7581  has_attribute(RigidBody self, FloatsKey a0) -> bool
7582  has_attribute(RigidBody self, IntsKey a0) -> bool
7583  has_attribute(RigidBody self, StringKey a0) -> bool
7584  has_attribute(RigidBody self, ParticleIndexKey a0) -> bool
7585  has_attribute(RigidBody self, ObjectKey a0) -> bool
7586  """
7587  return _IMP_core.RigidBody_has_attribute(self, *args)
7588 
7589  def get_derivative(self, a0):
7590  r"""get_derivative(RigidBody self, FloatKey a0) -> double"""
7591  return _IMP_core.RigidBody_get_derivative(self, a0)
7592 
7593  def get_name(self):
7594  r"""get_name(RigidBody self) -> std::string"""
7595  return _IMP_core.RigidBody_get_name(self)
7596 
7597  def clear_caches(self):
7598  r"""clear_caches(RigidBody self)"""
7599  return _IMP_core.RigidBody_clear_caches(self)
7600 
7601  def set_name(self, a0):
7602  r"""set_name(RigidBody self, std::string a0)"""
7603  return _IMP_core.RigidBody_set_name(self, a0)
7604 
7605  def set_check_level(self, a0):
7606  r"""set_check_level(RigidBody self, IMP::CheckLevel a0)"""
7607  return _IMP_core.RigidBody_set_check_level(self, a0)
7608 
7609  def add_to_derivative(self, a0, a1, a2):
7610  r"""add_to_derivative(RigidBody self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
7611  return _IMP_core.RigidBody_add_to_derivative(self, a0, a1, a2)
7612 
7613  def set_is_optimized(self, a0, a1):
7614  r"""set_is_optimized(RigidBody self, FloatKey a0, bool a1)"""
7615  return _IMP_core.RigidBody_set_is_optimized(self, a0, a1)
7616 
7617  def get_is_optimized(self, a0):
7618  r"""get_is_optimized(RigidBody self, FloatKey a0) -> bool"""
7619  return _IMP_core.RigidBody_get_is_optimized(self, a0)
7620 
7621  def get_check_level(self):
7622  r"""get_check_level(RigidBody self) -> IMP::CheckLevel"""
7623  return _IMP_core.RigidBody_get_check_level(self)
7624 
7625  def __eq__(self, *args):
7626  r"""
7627  __eq__(RigidBody self, RigidBody o) -> bool
7628  __eq__(RigidBody self, Particle d) -> bool
7629  """
7630  return _IMP_core.RigidBody___eq__(self, *args)
7631 
7632  def __ne__(self, *args):
7633  r"""
7634  __ne__(RigidBody self, RigidBody o) -> bool
7635  __ne__(RigidBody self, Particle d) -> bool
7636  """
7637  return _IMP_core.RigidBody___ne__(self, *args)
7638 
7639  def __le__(self, *args):
7640  r"""
7641  __le__(RigidBody self, RigidBody o) -> bool
7642  __le__(RigidBody self, Particle d) -> bool
7643  """
7644  return _IMP_core.RigidBody___le__(self, *args)
7645 
7646  def __lt__(self, *args):
7647  r"""
7648  __lt__(RigidBody self, RigidBody o) -> bool
7649  __lt__(RigidBody self, Particle d) -> bool
7650  """
7651  return _IMP_core.RigidBody___lt__(self, *args)
7652 
7653  def __ge__(self, *args):
7654  r"""
7655  __ge__(RigidBody self, RigidBody o) -> bool
7656  __ge__(RigidBody self, Particle d) -> bool
7657  """
7658  return _IMP_core.RigidBody___ge__(self, *args)
7659 
7660  def __gt__(self, *args):
7661  r"""
7662  __gt__(RigidBody self, RigidBody o) -> bool
7663  __gt__(RigidBody self, Particle d) -> bool
7664  """
7665  return _IMP_core.RigidBody___gt__(self, *args)
7666 
7667  def __hash__(self):
7668  r"""__hash__(RigidBody self) -> std::size_t"""
7669  return _IMP_core.RigidBody___hash__(self)
7670 
7671  def __str__(self):
7672  r"""__str__(RigidBody self) -> std::string"""
7673  return _IMP_core.RigidBody___str__(self)
7674 
7675  def __repr__(self):
7676  r"""__repr__(RigidBody self) -> std::string"""
7677  return _IMP_core.RigidBody___repr__(self)
7678 
7679  def _get_as_binary(self):
7680  r"""_get_as_binary(RigidBody self) -> PyObject *"""
7681  return _IMP_core.RigidBody__get_as_binary(self)
7682 
7683  def _set_from_binary(self, p):
7684  r"""_set_from_binary(RigidBody self, PyObject * p)"""
7685  return _IMP_core.RigidBody__set_from_binary(self, p)
7686 
7687  def __getstate__(self):
7688  p = self._get_as_binary()
7689  if len(self.__dict__) > 1:
7690  d = self.__dict__.copy()
7691  del d['this']
7692  p = (d, p)
7693  return p
7694 
7695  def __setstate__(self, p):
7696  if not hasattr(self, 'this'):
7697  self.__init__()
7698  if isinstance(p, tuple):
7699  d, p = p
7700  self.__dict__.update(d)
7701  return self._set_from_binary(p)
7702 
7703 
7704 # Register RigidBody in _IMP_core:
7705 _IMP_core.RigidBody_swigregister(RigidBody)
7706 
7708  r"""add_rigid_body_cache_key(ObjectKey k)"""
7709  return _IMP_core.add_rigid_body_cache_key(k)
7710 class RigidBodyMember(XYZ):
7711  r"""Proxy of C++ IMP::core::RigidBodyMember class."""
7712 
7713  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7714 
7715  def show(self, *args):
7716  r"""show(RigidBodyMember self, _ostream out=std::cout)"""
7717  return _IMP_core.RigidBodyMember_show(self, *args)
7718 
7719  def get_rigid_body(self):
7720  r"""get_rigid_body(RigidBodyMember self) -> RigidBody"""
7721  return _IMP_core.RigidBodyMember_get_rigid_body(self)
7722 
7723  def get_internal_coordinates(self):
7724  r"""get_internal_coordinates(RigidBodyMember self) -> Vector3D"""
7725  return _IMP_core.RigidBodyMember_get_internal_coordinates(self)
7726 
7727  def set_internal_coordinates(self, v):
7728  r"""set_internal_coordinates(RigidBodyMember self, Vector3D v)"""
7729  return _IMP_core.RigidBodyMember_set_internal_coordinates(self, v)
7730 
7731  def set_internal_transformation(self, v):
7732  r"""set_internal_transformation(RigidBodyMember self, Transformation3D v)"""
7733  return _IMP_core.RigidBodyMember_set_internal_transformation(self, v)
7734 
7735  def get_internal_transformation(self):
7736  r"""get_internal_transformation(RigidBodyMember self) -> Transformation3D"""
7737  return _IMP_core.RigidBodyMember_get_internal_transformation(self)
7738  __swig_destroy__ = _IMP_core.delete_RigidBodyMember
7739 
7740  def set_coordinates(self, *args):
7741  r"""
7742  set_coordinates(RigidBodyMember self, Vector3D center)
7743  set_coordinates(RigidBodyMember self, Transformation3D tr)
7744  """
7745  return _IMP_core.RigidBodyMember_set_coordinates(self, *args)
7746 
7747  def __init__(self, *args):
7748  r"""
7749  __init__(RigidBodyMember self) -> RigidBodyMember
7750  __init__(RigidBodyMember self, Model m, ParticleIndex id) -> RigidBodyMember
7751  __init__(RigidBodyMember self, _ParticleAdaptor d) -> RigidBodyMember
7752  __init__(RigidBodyMember self, RigidBodyMember arg2) -> RigidBodyMember
7753  """
7754  _IMP_core.RigidBodyMember_swiginit(self, _IMP_core.new_RigidBodyMember(*args))
7755 
7756  @staticmethod
7757  def get_is_setup(*args):
7758  r"""
7759  get_is_setup(_ParticleAdaptor p) -> bool
7760  get_is_setup(Model m, _ParticleIndexAdaptor p) -> bool
7761  """
7762  return _IMP_core.RigidBodyMember_get_is_setup(*args)
7763 
7764  @staticmethod
7765  def get_internal_coordinate_keys():
7766  r"""get_internal_coordinate_keys() -> IMP::FloatKeys"""
7767  return _IMP_core.RigidBodyMember_get_internal_coordinate_keys()
7768 
7769  @staticmethod
7770  def get_internal_rotation_keys():
7771  r"""get_internal_rotation_keys() -> IMP::FloatKeys"""
7772  return _IMP_core.RigidBodyMember_get_internal_rotation_keys()
7773 
7774  def add_attribute(self, *args):
7775  r"""
7776  add_attribute(RigidBodyMember self, FloatKey k, IMP::Float v, bool opt)
7777  add_attribute(RigidBodyMember self, FloatKey a0, IMP::Float a1)
7778  add_attribute(RigidBodyMember self, IntKey a0, IMP::Int a1)
7779  add_attribute(RigidBodyMember self, FloatsKey a0, IMP::Floats a1)
7780  add_attribute(RigidBodyMember self, IntsKey a0, IMP::Ints a1)
7781  add_attribute(RigidBodyMember self, StringKey a0, IMP::String a1)
7782  add_attribute(RigidBodyMember self, ParticleIndexKey a0, Particle a1)
7783  add_attribute(RigidBodyMember self, ObjectKey a0, Object a1)
7784  """
7785  return _IMP_core.RigidBodyMember_add_attribute(self, *args)
7786 
7787  def get_value(self, *args):
7788  r"""
7789  get_value(RigidBodyMember self, FloatKey a0) -> IMP::Float
7790  get_value(RigidBodyMember self, IntKey a0) -> IMP::Int
7791  get_value(RigidBodyMember self, FloatsKey a0) -> IMP::Floats
7792  get_value(RigidBodyMember self, IntsKey a0) -> IMP::Ints
7793  get_value(RigidBodyMember self, StringKey a0) -> IMP::String
7794  get_value(RigidBodyMember self, ParticleIndexKey a0) -> Particle
7795  get_value(RigidBodyMember self, ObjectKey a0) -> Object
7796  """
7797  return _IMP_core.RigidBodyMember_get_value(self, *args)
7798 
7799  def set_value(self, *args):
7800  r"""
7801  set_value(RigidBodyMember self, FloatKey a0, IMP::Float a1)
7802  set_value(RigidBodyMember self, IntKey a0, IMP::Int a1)
7803  set_value(RigidBodyMember self, FloatsKey a0, IMP::Floats a1)
7804  set_value(RigidBodyMember self, IntsKey a0, IMP::Ints a1)
7805  set_value(RigidBodyMember self, StringKey a0, IMP::String a1)
7806  set_value(RigidBodyMember self, ParticleIndexKey a0, Particle a1)
7807  set_value(RigidBodyMember self, ObjectKey a0, Object a1)
7808  """
7809  return _IMP_core.RigidBodyMember_set_value(self, *args)
7810 
7811  def remove_attribute(self, *args):
7812  r"""
7813  remove_attribute(RigidBodyMember self, FloatKey a0)
7814  remove_attribute(RigidBodyMember self, IntKey a0)
7815  remove_attribute(RigidBodyMember self, FloatsKey a0)
7816  remove_attribute(RigidBodyMember self, IntsKey a0)
7817  remove_attribute(RigidBodyMember self, StringKey a0)
7818  remove_attribute(RigidBodyMember self, ParticleIndexKey a0)
7819  remove_attribute(RigidBodyMember self, ObjectKey a0)
7820  """
7821  return _IMP_core.RigidBodyMember_remove_attribute(self, *args)
7822 
7823  def has_attribute(self, *args):
7824  r"""
7825  has_attribute(RigidBodyMember self, FloatKey a0) -> bool
7826  has_attribute(RigidBodyMember self, IntKey a0) -> bool
7827  has_attribute(RigidBodyMember self, FloatsKey a0) -> bool
7828  has_attribute(RigidBodyMember self, IntsKey a0) -> bool
7829  has_attribute(RigidBodyMember self, StringKey a0) -> bool
7830  has_attribute(RigidBodyMember self, ParticleIndexKey a0) -> bool
7831  has_attribute(RigidBodyMember self, ObjectKey a0) -> bool
7832  """
7833  return _IMP_core.RigidBodyMember_has_attribute(self, *args)
7834 
7835  def get_derivative(self, a0):
7836  r"""get_derivative(RigidBodyMember self, FloatKey a0) -> double"""
7837  return _IMP_core.RigidBodyMember_get_derivative(self, a0)
7838 
7839  def get_name(self):
7840  r"""get_name(RigidBodyMember self) -> std::string"""
7841  return _IMP_core.RigidBodyMember_get_name(self)
7842 
7843  def clear_caches(self):
7844  r"""clear_caches(RigidBodyMember self)"""
7845  return _IMP_core.RigidBodyMember_clear_caches(self)
7846 
7847  def set_name(self, a0):
7848  r"""set_name(RigidBodyMember self, std::string a0)"""
7849  return _IMP_core.RigidBodyMember_set_name(self, a0)
7850 
7851  def set_check_level(self, a0):
7852  r"""set_check_level(RigidBodyMember self, IMP::CheckLevel a0)"""
7853  return _IMP_core.RigidBodyMember_set_check_level(self, a0)
7854 
7855  def add_to_derivative(self, a0, a1, a2):
7856  r"""add_to_derivative(RigidBodyMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
7857  return _IMP_core.RigidBodyMember_add_to_derivative(self, a0, a1, a2)
7858 
7859  def set_is_optimized(self, a0, a1):
7860  r"""set_is_optimized(RigidBodyMember self, FloatKey a0, bool a1)"""
7861  return _IMP_core.RigidBodyMember_set_is_optimized(self, a0, a1)
7862 
7863  def get_is_optimized(self, a0):
7864  r"""get_is_optimized(RigidBodyMember self, FloatKey a0) -> bool"""
7865  return _IMP_core.RigidBodyMember_get_is_optimized(self, a0)
7866 
7867  def get_check_level(self):
7868  r"""get_check_level(RigidBodyMember self) -> IMP::CheckLevel"""
7869  return _IMP_core.RigidBodyMember_get_check_level(self)
7870 
7871  def __eq__(self, *args):
7872  r"""
7873  __eq__(RigidBodyMember self, RigidBodyMember o) -> bool
7874  __eq__(RigidBodyMember self, Particle d) -> bool
7875  """
7876  return _IMP_core.RigidBodyMember___eq__(self, *args)
7877 
7878  def __ne__(self, *args):
7879  r"""
7880  __ne__(RigidBodyMember self, RigidBodyMember o) -> bool
7881  __ne__(RigidBodyMember self, Particle d) -> bool
7882  """
7883  return _IMP_core.RigidBodyMember___ne__(self, *args)
7884 
7885  def __le__(self, *args):
7886  r"""
7887  __le__(RigidBodyMember self, RigidBodyMember o) -> bool
7888  __le__(RigidBodyMember self, Particle d) -> bool
7889  """
7890  return _IMP_core.RigidBodyMember___le__(self, *args)
7891 
7892  def __lt__(self, *args):
7893  r"""
7894  __lt__(RigidBodyMember self, RigidBodyMember o) -> bool
7895  __lt__(RigidBodyMember self, Particle d) -> bool
7896  """
7897  return _IMP_core.RigidBodyMember___lt__(self, *args)
7898 
7899  def __ge__(self, *args):
7900  r"""
7901  __ge__(RigidBodyMember self, RigidBodyMember o) -> bool
7902  __ge__(RigidBodyMember self, Particle d) -> bool
7903  """
7904  return _IMP_core.RigidBodyMember___ge__(self, *args)
7905 
7906  def __gt__(self, *args):
7907  r"""
7908  __gt__(RigidBodyMember self, RigidBodyMember o) -> bool
7909  __gt__(RigidBodyMember self, Particle d) -> bool
7910  """
7911  return _IMP_core.RigidBodyMember___gt__(self, *args)
7912 
7913  def __hash__(self):
7914  r"""__hash__(RigidBodyMember self) -> std::size_t"""
7915  return _IMP_core.RigidBodyMember___hash__(self)
7916 
7917  def __str__(self):
7918  r"""__str__(RigidBodyMember self) -> std::string"""
7919  return _IMP_core.RigidBodyMember___str__(self)
7920 
7921  def __repr__(self):
7922  r"""__repr__(RigidBodyMember self) -> std::string"""
7923  return _IMP_core.RigidBodyMember___repr__(self)
7924 
7925  def _get_as_binary(self):
7926  r"""_get_as_binary(RigidBodyMember self) -> PyObject *"""
7927  return _IMP_core.RigidBodyMember__get_as_binary(self)
7928 
7929  def _set_from_binary(self, p):
7930  r"""_set_from_binary(RigidBodyMember self, PyObject * p)"""
7931  return _IMP_core.RigidBodyMember__set_from_binary(self, p)
7932 
7933  def __getstate__(self):
7934  p = self._get_as_binary()
7935  if len(self.__dict__) > 1:
7936  d = self.__dict__.copy()
7937  del d['this']
7938  p = (d, p)
7939  return p
7940 
7941  def __setstate__(self, p):
7942  if not hasattr(self, 'this'):
7943  self.__init__()
7944  if isinstance(p, tuple):
7945  d, p = p
7946  self.__dict__.update(d)
7947  return self._set_from_binary(p)
7948 
7949 
7950 # Register RigidBodyMember in _IMP_core:
7951 _IMP_core.RigidBodyMember_swigregister(RigidBodyMember)
7952 class RigidMember(RigidBodyMember):
7953  r"""Proxy of C++ IMP::core::RigidMember class."""
7954 
7955  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7956 
7957  def show(self, *args):
7958  r"""show(RigidMember self, _ostream out=std::cout)"""
7959  return _IMP_core.RigidMember_show(self, *args)
7960 
7961  def __init__(self, *args):
7962  r"""
7963  __init__(RigidMember self) -> RigidMember
7964  __init__(RigidMember self, Model m, ParticleIndex id) -> RigidMember
7965  __init__(RigidMember self, _ParticleAdaptor d) -> RigidMember
7966  __init__(RigidMember self, RigidMember arg2) -> RigidMember
7967  """
7968  _IMP_core.RigidMember_swiginit(self, _IMP_core.new_RigidMember(*args))
7969  __swig_destroy__ = _IMP_core.delete_RigidMember
7970 
7971  @staticmethod
7972  def get_is_setup(*args):
7973  r"""
7974  get_is_setup(_ParticleAdaptor p) -> bool
7975  get_is_setup(Model m, _ParticleIndexAdaptor p) -> bool
7976  """
7977  return _IMP_core.RigidMember_get_is_setup(*args)
7978 
7979  def add_attribute(self, *args):
7980  r"""
7981  add_attribute(RigidMember self, FloatKey k, IMP::Float v, bool opt)
7982  add_attribute(RigidMember self, FloatKey a0, IMP::Float a1)
7983  add_attribute(RigidMember self, IntKey a0, IMP::Int a1)
7984  add_attribute(RigidMember self, FloatsKey a0, IMP::Floats a1)
7985  add_attribute(RigidMember self, IntsKey a0, IMP::Ints a1)
7986  add_attribute(RigidMember self, StringKey a0, IMP::String a1)
7987  add_attribute(RigidMember self, ParticleIndexKey a0, Particle a1)
7988  add_attribute(RigidMember self, ObjectKey a0, Object a1)
7989  """
7990  return _IMP_core.RigidMember_add_attribute(self, *args)
7991 
7992  def get_value(self, *args):
7993  r"""
7994  get_value(RigidMember self, FloatKey a0) -> IMP::Float
7995  get_value(RigidMember self, IntKey a0) -> IMP::Int
7996  get_value(RigidMember self, FloatsKey a0) -> IMP::Floats
7997  get_value(RigidMember self, IntsKey a0) -> IMP::Ints
7998  get_value(RigidMember self, StringKey a0) -> IMP::String
7999  get_value(RigidMember self, ParticleIndexKey a0) -> Particle
8000  get_value(RigidMember self, ObjectKey a0) -> Object
8001  """
8002  return _IMP_core.RigidMember_get_value(self, *args)
8003 
8004  def set_value(self, *args):
8005  r"""
8006  set_value(RigidMember self, FloatKey a0, IMP::Float a1)
8007  set_value(RigidMember self, IntKey a0, IMP::Int a1)
8008  set_value(RigidMember self, FloatsKey a0, IMP::Floats a1)
8009  set_value(RigidMember self, IntsKey a0, IMP::Ints a1)
8010  set_value(RigidMember self, StringKey a0, IMP::String a1)
8011  set_value(RigidMember self, ParticleIndexKey a0, Particle a1)
8012  set_value(RigidMember self, ObjectKey a0, Object a1)
8013  """
8014  return _IMP_core.RigidMember_set_value(self, *args)
8015 
8016  def remove_attribute(self, *args):
8017  r"""
8018  remove_attribute(RigidMember self, FloatKey a0)
8019  remove_attribute(RigidMember self, IntKey a0)
8020  remove_attribute(RigidMember self, FloatsKey a0)
8021  remove_attribute(RigidMember self, IntsKey a0)
8022  remove_attribute(RigidMember self, StringKey a0)
8023  remove_attribute(RigidMember self, ParticleIndexKey a0)
8024  remove_attribute(RigidMember self, ObjectKey a0)
8025  """
8026  return _IMP_core.RigidMember_remove_attribute(self, *args)
8027 
8028  def has_attribute(self, *args):
8029  r"""
8030  has_attribute(RigidMember self, FloatKey a0) -> bool
8031  has_attribute(RigidMember self, IntKey a0) -> bool
8032  has_attribute(RigidMember self, FloatsKey a0) -> bool
8033  has_attribute(RigidMember self, IntsKey a0) -> bool
8034  has_attribute(RigidMember self, StringKey a0) -> bool
8035  has_attribute(RigidMember self, ParticleIndexKey a0) -> bool
8036  has_attribute(RigidMember self, ObjectKey a0) -> bool
8037  """
8038  return _IMP_core.RigidMember_has_attribute(self, *args)
8039 
8040  def get_derivative(self, a0):
8041  r"""get_derivative(RigidMember self, FloatKey a0) -> double"""
8042  return _IMP_core.RigidMember_get_derivative(self, a0)
8043 
8044  def get_name(self):
8045  r"""get_name(RigidMember self) -> std::string"""
8046  return _IMP_core.RigidMember_get_name(self)
8047 
8048  def clear_caches(self):
8049  r"""clear_caches(RigidMember self)"""
8050  return _IMP_core.RigidMember_clear_caches(self)
8051 
8052  def set_name(self, a0):
8053  r"""set_name(RigidMember self, std::string a0)"""
8054  return _IMP_core.RigidMember_set_name(self, a0)
8055 
8056  def set_check_level(self, a0):
8057  r"""set_check_level(RigidMember self, IMP::CheckLevel a0)"""
8058  return _IMP_core.RigidMember_set_check_level(self, a0)
8059 
8060  def add_to_derivative(self, a0, a1, a2):
8061  r"""add_to_derivative(RigidMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8062  return _IMP_core.RigidMember_add_to_derivative(self, a0, a1, a2)
8063 
8064  def set_is_optimized(self, a0, a1):
8065  r"""set_is_optimized(RigidMember self, FloatKey a0, bool a1)"""
8066  return _IMP_core.RigidMember_set_is_optimized(self, a0, a1)
8067 
8068  def get_is_optimized(self, a0):
8069  r"""get_is_optimized(RigidMember self, FloatKey a0) -> bool"""
8070  return _IMP_core.RigidMember_get_is_optimized(self, a0)
8071 
8072  def get_check_level(self):
8073  r"""get_check_level(RigidMember self) -> IMP::CheckLevel"""
8074  return _IMP_core.RigidMember_get_check_level(self)
8075 
8076  def __eq__(self, *args):
8077  r"""
8078  __eq__(RigidMember self, RigidMember o) -> bool
8079  __eq__(RigidMember self, Particle d) -> bool
8080  """
8081  return _IMP_core.RigidMember___eq__(self, *args)
8082 
8083  def __ne__(self, *args):
8084  r"""
8085  __ne__(RigidMember self, RigidMember o) -> bool
8086  __ne__(RigidMember self, Particle d) -> bool
8087  """
8088  return _IMP_core.RigidMember___ne__(self, *args)
8089 
8090  def __le__(self, *args):
8091  r"""
8092  __le__(RigidMember self, RigidMember o) -> bool
8093  __le__(RigidMember self, Particle d) -> bool
8094  """
8095  return _IMP_core.RigidMember___le__(self, *args)
8096 
8097  def __lt__(self, *args):
8098  r"""
8099  __lt__(RigidMember self, RigidMember o) -> bool
8100  __lt__(RigidMember self, Particle d) -> bool
8101  """
8102  return _IMP_core.RigidMember___lt__(self, *args)
8103 
8104  def __ge__(self, *args):
8105  r"""
8106  __ge__(RigidMember self, RigidMember o) -> bool
8107  __ge__(RigidMember self, Particle d) -> bool
8108  """
8109  return _IMP_core.RigidMember___ge__(self, *args)
8110 
8111  def __gt__(self, *args):
8112  r"""
8113  __gt__(RigidMember self, RigidMember o) -> bool
8114  __gt__(RigidMember self, Particle d) -> bool
8115  """
8116  return _IMP_core.RigidMember___gt__(self, *args)
8117 
8118  def __hash__(self):
8119  r"""__hash__(RigidMember self) -> std::size_t"""
8120  return _IMP_core.RigidMember___hash__(self)
8121 
8122  def __str__(self):
8123  r"""__str__(RigidMember self) -> std::string"""
8124  return _IMP_core.RigidMember___str__(self)
8125 
8126  def __repr__(self):
8127  r"""__repr__(RigidMember self) -> std::string"""
8128  return _IMP_core.RigidMember___repr__(self)
8129 
8130  def _get_as_binary(self):
8131  r"""_get_as_binary(RigidMember self) -> PyObject *"""
8132  return _IMP_core.RigidMember__get_as_binary(self)
8133 
8134  def _set_from_binary(self, p):
8135  r"""_set_from_binary(RigidMember self, PyObject * p)"""
8136  return _IMP_core.RigidMember__set_from_binary(self, p)
8137 
8138  def __getstate__(self):
8139  p = self._get_as_binary()
8140  if len(self.__dict__) > 1:
8141  d = self.__dict__.copy()
8142  del d['this']
8143  p = (d, p)
8144  return p
8145 
8146  def __setstate__(self, p):
8147  if not hasattr(self, 'this'):
8148  self.__init__()
8149  if isinstance(p, tuple):
8150  d, p = p
8151  self.__dict__.update(d)
8152  return self._set_from_binary(p)
8153 
8154 
8155 # Register RigidMember in _IMP_core:
8156 _IMP_core.RigidMember_swigregister(RigidMember)
8157 class NonRigidMember(RigidBodyMember):
8158  r"""Proxy of C++ IMP::core::NonRigidMember class."""
8159 
8160  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8161 
8162  def show(self, *args):
8163  r"""show(NonRigidMember self, _ostream out=std::cout)"""
8164  return _IMP_core.NonRigidMember_show(self, *args)
8165 
8166  def __init__(self, *args):
8167  r"""
8168  __init__(NonRigidMember self) -> NonRigidMember
8169  __init__(NonRigidMember self, Model m, ParticleIndex id) -> NonRigidMember
8170  __init__(NonRigidMember self, _ParticleAdaptor d) -> NonRigidMember
8171  __init__(NonRigidMember self, NonRigidMember arg2) -> NonRigidMember
8172  """
8173  _IMP_core.NonRigidMember_swiginit(self, _IMP_core.new_NonRigidMember(*args))
8174  __swig_destroy__ = _IMP_core.delete_NonRigidMember
8175 
8176  @staticmethod
8177  def get_is_setup(*args):
8178  r"""
8179  get_is_setup(_ParticleAdaptor p) -> bool
8180  get_is_setup(Model m, ParticleIndex p) -> bool
8181  """
8182  return _IMP_core.NonRigidMember_get_is_setup(*args)
8183 
8184  def add_to_internal_derivatives(self, deriv_parent, da):
8185  r"""add_to_internal_derivatives(NonRigidMember self, Vector3D deriv_parent, DerivativeAccumulator da)"""
8186  return _IMP_core.NonRigidMember_add_to_internal_derivatives(self, deriv_parent, da)
8187 
8188  def add_to_internal_rotational_derivatives(self, *args):
8189  r"""
8190  add_to_internal_rotational_derivatives(NonRigidMember self, Vector4D local_qderiv, Rotation3D rot_local_to_parent, Rotation3D rot_parent_to_global, DerivativeAccumulator da)
8191  add_to_internal_rotational_derivatives(NonRigidMember self, Vector4D qderiv, DerivativeAccumulator da)
8192  """
8193  return _IMP_core.NonRigidMember_add_to_internal_rotational_derivatives(self, *args)
8194 
8195  def get_internal_derivatives(self):
8196  r"""get_internal_derivatives(NonRigidMember self) -> Vector3D"""
8197  return _IMP_core.NonRigidMember_get_internal_derivatives(self)
8198 
8199  def get_internal_rotational_derivatives(self):
8200  r"""get_internal_rotational_derivatives(NonRigidMember self) -> Vector4D"""
8201  return _IMP_core.NonRigidMember_get_internal_rotational_derivatives(self)
8202 
8203  def add_attribute(self, *args):
8204  r"""
8205  add_attribute(NonRigidMember self, FloatKey k, IMP::Float v, bool opt)
8206  add_attribute(NonRigidMember self, FloatKey a0, IMP::Float a1)
8207  add_attribute(NonRigidMember self, IntKey a0, IMP::Int a1)
8208  add_attribute(NonRigidMember self, FloatsKey a0, IMP::Floats a1)
8209  add_attribute(NonRigidMember self, IntsKey a0, IMP::Ints a1)
8210  add_attribute(NonRigidMember self, StringKey a0, IMP::String a1)
8211  add_attribute(NonRigidMember self, ParticleIndexKey a0, Particle a1)
8212  add_attribute(NonRigidMember self, ObjectKey a0, Object a1)
8213  """
8214  return _IMP_core.NonRigidMember_add_attribute(self, *args)
8215 
8216  def get_value(self, *args):
8217  r"""
8218  get_value(NonRigidMember self, FloatKey a0) -> IMP::Float
8219  get_value(NonRigidMember self, IntKey a0) -> IMP::Int
8220  get_value(NonRigidMember self, FloatsKey a0) -> IMP::Floats
8221  get_value(NonRigidMember self, IntsKey a0) -> IMP::Ints
8222  get_value(NonRigidMember self, StringKey a0) -> IMP::String
8223  get_value(NonRigidMember self, ParticleIndexKey a0) -> Particle
8224  get_value(NonRigidMember self, ObjectKey a0) -> Object
8225  """
8226  return _IMP_core.NonRigidMember_get_value(self, *args)
8227 
8228  def set_value(self, *args):
8229  r"""
8230  set_value(NonRigidMember self, FloatKey a0, IMP::Float a1)
8231  set_value(NonRigidMember self, IntKey a0, IMP::Int a1)
8232  set_value(NonRigidMember self, FloatsKey a0, IMP::Floats a1)
8233  set_value(NonRigidMember self, IntsKey a0, IMP::Ints a1)
8234  set_value(NonRigidMember self, StringKey a0, IMP::String a1)
8235  set_value(NonRigidMember self, ParticleIndexKey a0, Particle a1)
8236  set_value(NonRigidMember self, ObjectKey a0, Object a1)
8237  """
8238  return _IMP_core.NonRigidMember_set_value(self, *args)
8239 
8240  def remove_attribute(self, *args):
8241  r"""
8242  remove_attribute(NonRigidMember self, FloatKey a0)
8243  remove_attribute(NonRigidMember self, IntKey a0)
8244  remove_attribute(NonRigidMember self, FloatsKey a0)
8245  remove_attribute(NonRigidMember self, IntsKey a0)
8246  remove_attribute(NonRigidMember self, StringKey a0)
8247  remove_attribute(NonRigidMember self, ParticleIndexKey a0)
8248  remove_attribute(NonRigidMember self, ObjectKey a0)
8249  """
8250  return _IMP_core.NonRigidMember_remove_attribute(self, *args)
8251 
8252  def has_attribute(self, *args):
8253  r"""
8254  has_attribute(NonRigidMember self, FloatKey a0) -> bool
8255  has_attribute(NonRigidMember self, IntKey a0) -> bool
8256  has_attribute(NonRigidMember self, FloatsKey a0) -> bool
8257  has_attribute(NonRigidMember self, IntsKey a0) -> bool
8258  has_attribute(NonRigidMember self, StringKey a0) -> bool
8259  has_attribute(NonRigidMember self, ParticleIndexKey a0) -> bool
8260  has_attribute(NonRigidMember self, ObjectKey a0) -> bool
8261  """
8262  return _IMP_core.NonRigidMember_has_attribute(self, *args)
8263 
8264  def get_derivative(self, a0):
8265  r"""get_derivative(NonRigidMember self, FloatKey a0) -> double"""
8266  return _IMP_core.NonRigidMember_get_derivative(self, a0)
8267 
8268  def get_name(self):
8269  r"""get_name(NonRigidMember self) -> std::string"""
8270  return _IMP_core.NonRigidMember_get_name(self)
8271 
8272  def clear_caches(self):
8273  r"""clear_caches(NonRigidMember self)"""
8274  return _IMP_core.NonRigidMember_clear_caches(self)
8275 
8276  def set_name(self, a0):
8277  r"""set_name(NonRigidMember self, std::string a0)"""
8278  return _IMP_core.NonRigidMember_set_name(self, a0)
8279 
8280  def set_check_level(self, a0):
8281  r"""set_check_level(NonRigidMember self, IMP::CheckLevel a0)"""
8282  return _IMP_core.NonRigidMember_set_check_level(self, a0)
8283 
8284  def add_to_derivative(self, a0, a1, a2):
8285  r"""add_to_derivative(NonRigidMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8286  return _IMP_core.NonRigidMember_add_to_derivative(self, a0, a1, a2)
8287 
8288  def set_is_optimized(self, a0, a1):
8289  r"""set_is_optimized(NonRigidMember self, FloatKey a0, bool a1)"""
8290  return _IMP_core.NonRigidMember_set_is_optimized(self, a0, a1)
8291 
8292  def get_is_optimized(self, a0):
8293  r"""get_is_optimized(NonRigidMember self, FloatKey a0) -> bool"""
8294  return _IMP_core.NonRigidMember_get_is_optimized(self, a0)
8295 
8296  def get_check_level(self):
8297  r"""get_check_level(NonRigidMember self) -> IMP::CheckLevel"""
8298  return _IMP_core.NonRigidMember_get_check_level(self)
8299 
8300  def __eq__(self, *args):
8301  r"""
8302  __eq__(NonRigidMember self, NonRigidMember o) -> bool
8303  __eq__(NonRigidMember self, Particle d) -> bool
8304  """
8305  return _IMP_core.NonRigidMember___eq__(self, *args)
8306 
8307  def __ne__(self, *args):
8308  r"""
8309  __ne__(NonRigidMember self, NonRigidMember o) -> bool
8310  __ne__(NonRigidMember self, Particle d) -> bool
8311  """
8312  return _IMP_core.NonRigidMember___ne__(self, *args)
8313 
8314  def __le__(self, *args):
8315  r"""
8316  __le__(NonRigidMember self, NonRigidMember o) -> bool
8317  __le__(NonRigidMember self, Particle d) -> bool
8318  """
8319  return _IMP_core.NonRigidMember___le__(self, *args)
8320 
8321  def __lt__(self, *args):
8322  r"""
8323  __lt__(NonRigidMember self, NonRigidMember o) -> bool
8324  __lt__(NonRigidMember self, Particle d) -> bool
8325  """
8326  return _IMP_core.NonRigidMember___lt__(self, *args)
8327 
8328  def __ge__(self, *args):
8329  r"""
8330  __ge__(NonRigidMember self, NonRigidMember o) -> bool
8331  __ge__(NonRigidMember self, Particle d) -> bool
8332  """
8333  return _IMP_core.NonRigidMember___ge__(self, *args)
8334 
8335  def __gt__(self, *args):
8336  r"""
8337  __gt__(NonRigidMember self, NonRigidMember o) -> bool
8338  __gt__(NonRigidMember self, Particle d) -> bool
8339  """
8340  return _IMP_core.NonRigidMember___gt__(self, *args)
8341 
8342  def __hash__(self):
8343  r"""__hash__(NonRigidMember self) -> std::size_t"""
8344  return _IMP_core.NonRigidMember___hash__(self)
8345 
8346  def __str__(self):
8347  r"""__str__(NonRigidMember self) -> std::string"""
8348  return _IMP_core.NonRigidMember___str__(self)
8349 
8350  def __repr__(self):
8351  r"""__repr__(NonRigidMember self) -> std::string"""
8352  return _IMP_core.NonRigidMember___repr__(self)
8353 
8354  def _get_as_binary(self):
8355  r"""_get_as_binary(NonRigidMember self) -> PyObject *"""
8356  return _IMP_core.NonRigidMember__get_as_binary(self)
8357 
8358  def _set_from_binary(self, p):
8359  r"""_set_from_binary(NonRigidMember self, PyObject * p)"""
8360  return _IMP_core.NonRigidMember__set_from_binary(self, p)
8361 
8362  def __getstate__(self):
8363  p = self._get_as_binary()
8364  if len(self.__dict__) > 1:
8365  d = self.__dict__.copy()
8366  del d['this']
8367  p = (d, p)
8368  return p
8369 
8370  def __setstate__(self, p):
8371  if not hasattr(self, 'this'):
8372  self.__init__()
8373  if isinstance(p, tuple):
8374  d, p = p
8375  self.__dict__.update(d)
8376  return self._set_from_binary(p)
8377 
8378 
8379 # Register NonRigidMember in _IMP_core:
8380 _IMP_core.NonRigidMember_swigregister(NonRigidMember)
8381 class RigidMembersRefiner(IMP.Refiner):
8382  r"""Proxy of C++ IMP::core::RigidMembersRefiner class."""
8383 
8384  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8385 
8386  def __init__(self, *args):
8387  r"""__init__(RigidMembersRefiner self, std::string name="RigidMembersRefiner%d") -> RigidMembersRefiner"""
8388  _IMP_core.RigidMembersRefiner_swiginit(self, _IMP_core.new_RigidMembersRefiner(*args))
8389 
8390  def do_get_inputs(self, m, pis):
8391  r"""do_get_inputs(RigidMembersRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8392  return _IMP_core.RigidMembersRefiner_do_get_inputs(self, m, pis)
8393 
8394  def get_version_info(self):
8395  r"""get_version_info(RigidMembersRefiner self) -> VersionInfo"""
8396  return _IMP_core.RigidMembersRefiner_get_version_info(self)
8397  __swig_destroy__ = _IMP_core.delete_RigidMembersRefiner
8398 
8399  def __str__(self):
8400  r"""__str__(RigidMembersRefiner self) -> std::string"""
8401  return _IMP_core.RigidMembersRefiner___str__(self)
8402 
8403  def __repr__(self):
8404  r"""__repr__(RigidMembersRefiner self) -> std::string"""
8405  return _IMP_core.RigidMembersRefiner___repr__(self)
8406 
8407  @staticmethod
8408  def get_from(o):
8409  return _object_cast_to_RigidMembersRefiner(o)
8410 
8411 
8412 # Register RigidMembersRefiner in _IMP_core:
8413 _IMP_core.RigidMembersRefiner_swigregister(RigidMembersRefiner)
8414 
8415 def get_rigid_members_refiner():
8416  r"""get_rigid_members_refiner() -> RigidMembersRefiner"""
8417  return _IMP_core.get_rigid_members_refiner()
8418 
8419 def transform(*args):
8420  r"""
8421  transform(XYZ a, Transformation3D tr)
8422  transform(RigidBody a, Transformation3D tr)
8423  """
8424  return _IMP_core.transform(*args)
8425 
8426 def get_initial_reference_frame(*args):
8427  r"""
8428  get_initial_reference_frame(Model m, IMP::ParticleIndexes const & pis) -> ReferenceFrame3D
8429  get_initial_reference_frame(IMP::ParticlesTemp const & ps) -> ReferenceFrame3D
8430  """
8431  return _IMP_core.get_initial_reference_frame(*args)
8432 
8433 def create_rigid_bodies(m, n, no_members=False):
8434  r"""create_rigid_bodies(Model m, unsigned int n, bool no_members=False) -> IMP::ParticlesTemp"""
8435  return _IMP_core.create_rigid_bodies(m, n, no_members)
8436 
8437 def show_rigid_body_hierarchy(*args):
8438  r"""show_rigid_body_hierarchy(RigidBody rb, TextOutput out=IMP::TextOutput(std::cout))"""
8439  return _IMP_core.show_rigid_body_hierarchy(*args)
8440 
8441 def get_root_rigid_body(m):
8442  r"""get_root_rigid_body(RigidMember m) -> ParticleIndex"""
8443  return _IMP_core.get_root_rigid_body(m)
8444 class RigidBodyHierarchyGeometry(IMP.display.SingletonGeometry):
8445  r"""Proxy of C++ IMP::core::RigidBodyHierarchyGeometry class."""
8446 
8447  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8448 
8449  def __init__(self, rb, constituents):
8450  r"""__init__(RigidBodyHierarchyGeometry self, RigidBody rb, IMP::ParticlesTemp const & constituents) -> RigidBodyHierarchyGeometry"""
8451  _IMP_core.RigidBodyHierarchyGeometry_swiginit(self, _IMP_core.new_RigidBodyHierarchyGeometry(rb, constituents))
8452 
8453  def get_version_info(self):
8454  r"""get_version_info(RigidBodyHierarchyGeometry self) -> VersionInfo"""
8455  return _IMP_core.RigidBodyHierarchyGeometry_get_version_info(self)
8456  __swig_destroy__ = _IMP_core.delete_RigidBodyHierarchyGeometry
8457 
8458  def __str__(self):
8459  r"""__str__(RigidBodyHierarchyGeometry self) -> std::string"""
8460  return _IMP_core.RigidBodyHierarchyGeometry___str__(self)
8461 
8462  def __repr__(self):
8463  r"""__repr__(RigidBodyHierarchyGeometry self) -> std::string"""
8464  return _IMP_core.RigidBodyHierarchyGeometry___repr__(self)
8465 
8466  @staticmethod
8467  def get_from(o):
8468  return _object_cast_to_RigidBodyHierarchyGeometry(o)
8469 
8470 
8471 # Register RigidBodyHierarchyGeometry in _IMP_core:
8472 _IMP_core.RigidBodyHierarchyGeometry_swigregister(RigidBodyHierarchyGeometry)
8473 class RigidBodyDerivativeGeometry(IMP.display.SingletonGeometry):
8474  r"""Proxy of C++ IMP::core::RigidBodyDerivativeGeometry class."""
8475 
8476  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8477 
8478  def __init__(self, *args):
8479  r"""
8480  __init__(RigidBodyDerivativeGeometry self, Particle p) -> RigidBodyDerivativeGeometry
8481  __init__(RigidBodyDerivativeGeometry self, RigidBody d) -> RigidBodyDerivativeGeometry
8482  """
8483  _IMP_core.RigidBodyDerivativeGeometry_swiginit(self, _IMP_core.new_RigidBodyDerivativeGeometry(*args))
8484 
8485  def get_version_info(self):
8486  r"""get_version_info(RigidBodyDerivativeGeometry self) -> VersionInfo"""
8487  return _IMP_core.RigidBodyDerivativeGeometry_get_version_info(self)
8488  __swig_destroy__ = _IMP_core.delete_RigidBodyDerivativeGeometry
8489 
8490  def __str__(self):
8491  r"""__str__(RigidBodyDerivativeGeometry self) -> std::string"""
8492  return _IMP_core.RigidBodyDerivativeGeometry___str__(self)
8493 
8494  def __repr__(self):
8495  r"""__repr__(RigidBodyDerivativeGeometry self) -> std::string"""
8496  return _IMP_core.RigidBodyDerivativeGeometry___repr__(self)
8497 
8498  @staticmethod
8499  def get_from(o):
8500  return _object_cast_to_RigidBodyDerivativeGeometry(o)
8501 
8502 
8503 # Register RigidBodyDerivativeGeometry in _IMP_core:
8504 _IMP_core.RigidBodyDerivativeGeometry_swigregister(RigidBodyDerivativeGeometry)
8505 class RigidBodyDerivativesGeometry(IMP.display.SingletonsGeometry):
8506  r"""Proxy of C++ IMP::core::RigidBodyDerivativesGeometry class."""
8507 
8508  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8509 
8510  def __init__(self, sc):
8511  r"""__init__(RigidBodyDerivativesGeometry self, SingletonContainer sc) -> RigidBodyDerivativesGeometry"""
8512  _IMP_core.RigidBodyDerivativesGeometry_swiginit(self, _IMP_core.new_RigidBodyDerivativesGeometry(sc))
8513 
8514  def get_version_info(self):
8515  r"""get_version_info(RigidBodyDerivativesGeometry self) -> VersionInfo"""
8516  return _IMP_core.RigidBodyDerivativesGeometry_get_version_info(self)
8517  __swig_destroy__ = _IMP_core.delete_RigidBodyDerivativesGeometry
8518 
8519  def __str__(self):
8520  r"""__str__(RigidBodyDerivativesGeometry self) -> std::string"""
8521  return _IMP_core.RigidBodyDerivativesGeometry___str__(self)
8522 
8523  def __repr__(self):
8524  r"""__repr__(RigidBodyDerivativesGeometry self) -> std::string"""
8525  return _IMP_core.RigidBodyDerivativesGeometry___repr__(self)
8526 
8527  @staticmethod
8528  def get_from(o):
8529  return _object_cast_to_RigidBodyDerivativesGeometry(o)
8530 
8531 
8532 # Register RigidBodyDerivativesGeometry in _IMP_core:
8533 _IMP_core.RigidBodyDerivativesGeometry_swigregister(RigidBodyDerivativesGeometry)
8534 class RigidBodyFrameGeometry(IMP.display.SingletonGeometry):
8535  r"""Proxy of C++ IMP::core::RigidBodyFrameGeometry class."""
8536 
8537  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8538 
8539  def __init__(self, *args):
8540  r"""
8541  __init__(RigidBodyFrameGeometry self, Particle p) -> RigidBodyFrameGeometry
8542  __init__(RigidBodyFrameGeometry self, RigidBody d) -> RigidBodyFrameGeometry
8543  """
8544  _IMP_core.RigidBodyFrameGeometry_swiginit(self, _IMP_core.new_RigidBodyFrameGeometry(*args))
8545 
8546  def get_version_info(self):
8547  r"""get_version_info(RigidBodyFrameGeometry self) -> VersionInfo"""
8548  return _IMP_core.RigidBodyFrameGeometry_get_version_info(self)
8549  __swig_destroy__ = _IMP_core.delete_RigidBodyFrameGeometry
8550 
8551  def __str__(self):
8552  r"""__str__(RigidBodyFrameGeometry self) -> std::string"""
8553  return _IMP_core.RigidBodyFrameGeometry___str__(self)
8554 
8555  def __repr__(self):
8556  r"""__repr__(RigidBodyFrameGeometry self) -> std::string"""
8557  return _IMP_core.RigidBodyFrameGeometry___repr__(self)
8558 
8559  @staticmethod
8560  def get_from(o):
8561  return _object_cast_to_RigidBodyFrameGeometry(o)
8562 
8563 
8564 # Register RigidBodyFrameGeometry in _IMP_core:
8565 _IMP_core.RigidBodyFrameGeometry_swigregister(RigidBodyFrameGeometry)
8566 class RigidBodyFramesGeometry(IMP.display.SingletonsGeometry):
8567  r"""Proxy of C++ IMP::core::RigidBodyFramesGeometry class."""
8568 
8569  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8570 
8571  def __init__(self, sc):
8572  r"""__init__(RigidBodyFramesGeometry self, SingletonContainer sc) -> RigidBodyFramesGeometry"""
8573  _IMP_core.RigidBodyFramesGeometry_swiginit(self, _IMP_core.new_RigidBodyFramesGeometry(sc))
8574 
8575  def get_version_info(self):
8576  r"""get_version_info(RigidBodyFramesGeometry self) -> VersionInfo"""
8577  return _IMP_core.RigidBodyFramesGeometry_get_version_info(self)
8578  __swig_destroy__ = _IMP_core.delete_RigidBodyFramesGeometry
8579 
8580  def __str__(self):
8581  r"""__str__(RigidBodyFramesGeometry self) -> std::string"""
8582  return _IMP_core.RigidBodyFramesGeometry___str__(self)
8583 
8584  def __repr__(self):
8585  r"""__repr__(RigidBodyFramesGeometry self) -> std::string"""
8586  return _IMP_core.RigidBodyFramesGeometry___repr__(self)
8587 
8588  @staticmethod
8589  def get_from(o):
8590  return _object_cast_to_RigidBodyFramesGeometry(o)
8591 
8592 
8593 # Register RigidBodyFramesGeometry in _IMP_core:
8594 _IMP_core.RigidBodyFramesGeometry_swigregister(RigidBodyFramesGeometry)
8595 class RigidBodyTorque(IMP.display.SegmentGeometry):
8596  r"""Proxy of C++ IMP::core::RigidBodyTorque class."""
8597 
8598  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8599 
8600  def __init__(self, p):
8601  r"""__init__(RigidBodyTorque self, Particle p) -> RigidBodyTorque"""
8602  _IMP_core.RigidBodyTorque_swiginit(self, _IMP_core.new_RigidBodyTorque(p))
8603 
8604  def __str__(self):
8605  r"""__str__(RigidBodyTorque self) -> std::string"""
8606  return _IMP_core.RigidBodyTorque___str__(self)
8607 
8608  def __repr__(self):
8609  r"""__repr__(RigidBodyTorque self) -> std::string"""
8610  return _IMP_core.RigidBodyTorque___repr__(self)
8611 
8612  @staticmethod
8613  def get_from(o):
8614  return _object_cast_to_RigidBodyTorque(o)
8615 
8616  __swig_destroy__ = _IMP_core.delete_RigidBodyTorque
8617 
8618 # Register RigidBodyTorque in _IMP_core:
8619 _IMP_core.RigidBodyTorque_swigregister(RigidBodyTorque)
8620 class NearestNeighborsClosePairsFinder(ClosePairsFinder):
8621  r"""Proxy of C++ IMP::core::NearestNeighborsClosePairsFinder class."""
8622 
8623  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8624 
8625  def __init__(self):
8626  r"""__init__(NearestNeighborsClosePairsFinder self) -> NearestNeighborsClosePairsFinder"""
8627  _IMP_core.NearestNeighborsClosePairsFinder_swiginit(self, _IMP_core.new_NearestNeighborsClosePairsFinder())
8628 
8629  def get_close_pairs(self, *args):
8630  r"""
8631  get_close_pairs(NearestNeighborsClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
8632  get_close_pairs(NearestNeighborsClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
8633  get_close_pairs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
8634  get_close_pairs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
8635  """
8636  return _IMP_core.NearestNeighborsClosePairsFinder_get_close_pairs(self, *args)
8637 
8638  def do_get_inputs(self, m, pis):
8639  r"""do_get_inputs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8640  return _IMP_core.NearestNeighborsClosePairsFinder_do_get_inputs(self, m, pis)
8641 
8642  def get_version_info(self):
8643  r"""get_version_info(NearestNeighborsClosePairsFinder self) -> VersionInfo"""
8644  return _IMP_core.NearestNeighborsClosePairsFinder_get_version_info(self)
8645  __swig_destroy__ = _IMP_core.delete_NearestNeighborsClosePairsFinder
8646 
8647  def __str__(self):
8648  r"""__str__(NearestNeighborsClosePairsFinder self) -> std::string"""
8649  return _IMP_core.NearestNeighborsClosePairsFinder___str__(self)
8650 
8651  def __repr__(self):
8652  r"""__repr__(NearestNeighborsClosePairsFinder self) -> std::string"""
8653  return _IMP_core.NearestNeighborsClosePairsFinder___repr__(self)
8654 
8655  @staticmethod
8656  def get_from(o):
8657  return _object_cast_to_NearestNeighborsClosePairsFinder(o)
8658 
8659 
8660 # Register NearestNeighborsClosePairsFinder in _IMP_core:
8661 _IMP_core.NearestNeighborsClosePairsFinder_swigregister(NearestNeighborsClosePairsFinder)
8662 class RestraintsScoringFunction(IMP.ScoringFunction):
8663  r"""Proxy of C++ IMP::core::RestraintsScoringFunction class."""
8664 
8665  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8666 
8667  def __init__(self, *args):
8668  r"""
8669  __init__(RestraintsScoringFunction self, _RestraintsAdaptor rs, double weight=1.0, double max=NO_MAX, std::string name="RestraintsScoringFunction%1%") -> RestraintsScoringFunction
8670  __init__(RestraintsScoringFunction self, _RestraintsAdaptor rs, std::string name) -> RestraintsScoringFunction
8671  __init__(RestraintsScoringFunction self) -> RestraintsScoringFunction
8672  """
8673  _IMP_core.RestraintsScoringFunction_swiginit(self, _IMP_core.new_RestraintsScoringFunction(*args))
8674 
8675  def do_add_score_and_derivatives(self, sa, ss):
8676  r"""do_add_score_and_derivatives(RestraintsScoringFunction self, ScoreAccumulator sa, IMP::ScoreStatesTemp const & ss)"""
8677  return _IMP_core.RestraintsScoringFunction_do_add_score_and_derivatives(self, sa, ss)
8678 
8679  def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss):
8680  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)"""
8681  return _IMP_core.RestraintsScoringFunction_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss)
8682 
8683  def do_get_inputs(self):
8684  r"""do_get_inputs(RestraintsScoringFunction self) -> IMP::ModelObjectsTemp"""
8685  return _IMP_core.RestraintsScoringFunction_do_get_inputs(self)
8686 
8687  def get_restraints(self):
8688  r"""get_restraints(RestraintsScoringFunction self) -> IMP::Restraints"""
8689  return _IMP_core.RestraintsScoringFunction_get_restraints(self)
8690 
8691  def set_restraints(self, d):
8692  r"""set_restraints(RestraintsScoringFunction self, IMP::Restraints const & d)"""
8693  return _IMP_core.RestraintsScoringFunction_set_restraints(self, d)
8694 
8695  def get_number_of_restraints(self):
8696  r"""get_number_of_restraints(RestraintsScoringFunction self) -> unsigned int"""
8697  return _IMP_core.RestraintsScoringFunction_get_number_of_restraints(self)
8698 
8699  def clear_restraints(self):
8700  r"""clear_restraints(RestraintsScoringFunction self)"""
8701  return _IMP_core.RestraintsScoringFunction_clear_restraints(self)
8702 
8703  def get_restraint(self, i):
8704  r"""get_restraint(RestraintsScoringFunction self, unsigned int i) -> Restraint"""
8705  return _IMP_core.RestraintsScoringFunction_get_restraint(self, i)
8706 
8707  def erase_restraint(self, i):
8708  r"""erase_restraint(RestraintsScoringFunction self, unsigned int i)"""
8709  return _IMP_core.RestraintsScoringFunction_erase_restraint(self, i)
8710 
8711  def add_restraint(self, d):
8712  r"""add_restraint(RestraintsScoringFunction self, Restraint d) -> unsigned int"""
8713  return _IMP_core.RestraintsScoringFunction_add_restraint(self, d)
8714 
8715  def add_restraints(self, d):
8716  r"""add_restraints(RestraintsScoringFunction self, IMP::Restraints const & d)"""
8717  return _IMP_core.RestraintsScoringFunction_add_restraints(self, d)
8718 
8719  def _python_index_restraint(self, r, start, stop):
8720  r"""_python_index_restraint(RestraintsScoringFunction self, Restraint r, unsigned int start, unsigned int stop) -> unsigned int"""
8721  return _IMP_core.RestraintsScoringFunction__python_index_restraint(self, r, start, stop)
8722  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)
8723  def __set_restraints(self, obj): IMP._list_util.set_varlist(self.restraints, obj)
8724  def __del_restraints(self): IMP._list_util.del_varlist(self.restraints)
8725  restraints = property(__get_restraints, __set_restraints, __del_restraints, doc="List of ##Restraints")
8726 
8727  def get_version_info(self):
8728  r"""get_version_info(RestraintsScoringFunction self) -> VersionInfo"""
8729  return _IMP_core.RestraintsScoringFunction_get_version_info(self)
8730  __swig_destroy__ = _IMP_core.delete_RestraintsScoringFunction
8731 
8732  def __str__(self):
8733  r"""__str__(RestraintsScoringFunction self) -> std::string"""
8734  return _IMP_core.RestraintsScoringFunction___str__(self)
8735 
8736  def __repr__(self):
8737  r"""__repr__(RestraintsScoringFunction self) -> std::string"""
8738  return _IMP_core.RestraintsScoringFunction___repr__(self)
8739 
8740  @staticmethod
8741  def get_from(o):
8742  return _object_cast_to_RestraintsScoringFunction(o)
8743 
8744 
8745  def _get_as_binary(self):
8746  r"""_get_as_binary(RestraintsScoringFunction self) -> PyObject *"""
8747  return _IMP_core.RestraintsScoringFunction__get_as_binary(self)
8748 
8749  def _set_from_binary(self, p):
8750  r"""_set_from_binary(RestraintsScoringFunction self, PyObject * p)"""
8751  return _IMP_core.RestraintsScoringFunction__set_from_binary(self, p)
8752 
8753  def __getstate__(self):
8754  p = self._get_as_binary()
8755  if len(self.__dict__) > 1:
8756  d = self.__dict__.copy()
8757  del d['this']
8758  p = (d, p)
8759  return p
8760 
8761  def __setstate__(self, p):
8762  if not hasattr(self, 'this'):
8763  self.__init__()
8764  if isinstance(p, tuple):
8765  d, p = p
8766  self.__dict__.update(d)
8767  return self._set_from_binary(p)
8768 
8769 
8770 # Register RestraintsScoringFunction in _IMP_core:
8771 _IMP_core.RestraintsScoringFunction_swigregister(RestraintsScoringFunction)
8772 class RigidClosePairsFinder(ClosePairsFinder):
8773  r"""Proxy of C++ IMP::core::RigidClosePairsFinder class."""
8774 
8775  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8776 
8777  def __init__(self, cpf=None):
8778  r"""__init__(RigidClosePairsFinder self, ClosePairsFinder cpf=None) -> RigidClosePairsFinder"""
8779  _IMP_core.RigidClosePairsFinder_swiginit(self, _IMP_core.new_RigidClosePairsFinder(cpf))
8780 
8781  def do_get_inputs(self, m, pis):
8782  r"""do_get_inputs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8783  return _IMP_core.RigidClosePairsFinder_do_get_inputs(self, m, pis)
8784 
8785  def get_close_pairs(self, *args):
8786  r"""
8787  get_close_pairs(RigidClosePairsFinder self, Model m, ParticleIndex a, ParticleIndex b, IMP::ParticleIndexes const & pa, IMP::ParticleIndexes const & pb) -> IMP::ParticleIndexPairs
8788  get_close_pairs(RigidClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
8789  get_close_pairs(RigidClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
8790  get_close_pairs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
8791  get_close_pairs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
8792  """
8793  return _IMP_core.RigidClosePairsFinder_get_close_pairs(self, *args)
8794 
8795  def get_version_info(self):
8796  r"""get_version_info(RigidClosePairsFinder self) -> VersionInfo"""
8797  return _IMP_core.RigidClosePairsFinder_get_version_info(self)
8798  __swig_destroy__ = _IMP_core.delete_RigidClosePairsFinder
8799 
8800  def __str__(self):
8801  r"""__str__(RigidClosePairsFinder self) -> std::string"""
8802  return _IMP_core.RigidClosePairsFinder___str__(self)
8803 
8804  def __repr__(self):
8805  r"""__repr__(RigidClosePairsFinder self) -> std::string"""
8806  return _IMP_core.RigidClosePairsFinder___repr__(self)
8807 
8808  @staticmethod
8809  def get_from(o):
8810  return _object_cast_to_RigidClosePairsFinder(o)
8811 
8812 
8813  def _get_as_binary(self):
8814  r"""_get_as_binary(RigidClosePairsFinder self) -> PyObject *"""
8815  return _IMP_core.RigidClosePairsFinder__get_as_binary(self)
8816 
8817  def _set_from_binary(self, p):
8818  r"""_set_from_binary(RigidClosePairsFinder self, PyObject * p)"""
8819  return _IMP_core.RigidClosePairsFinder__set_from_binary(self, p)
8820 
8821  def __getstate__(self):
8822  p = self._get_as_binary()
8823  if len(self.__dict__) > 1:
8824  d = self.__dict__.copy()
8825  del d['this']
8826  p = (d, p)
8827  return p
8828 
8829  def __setstate__(self, p):
8830  if not hasattr(self, 'this'):
8831  self.__init__()
8832  if isinstance(p, tuple):
8833  d, p = p
8834  self.__dict__.update(d)
8835  return self._set_from_binary(p)
8836 
8837 
8838 # Register RigidClosePairsFinder in _IMP_core:
8839 _IMP_core.RigidClosePairsFinder_swigregister(RigidClosePairsFinder)
8840 class SphereDistancePairScore(IMP.PairScore):
8841  r"""Proxy of C++ IMP::core::SphereDistancePairScore class."""
8842 
8843  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8844 
8845  def __init__(self, *args):
8846  r"""
8847  __init__(SphereDistancePairScore self, UnaryFunction uf, std::string name="SphereDistancePairScore%1%") -> SphereDistancePairScore
8848  __init__(SphereDistancePairScore self) -> SphereDistancePairScore
8849  """
8850  _IMP_core.SphereDistancePairScore_swiginit(self, _IMP_core.new_SphereDistancePairScore(*args))
8851 
8852  def do_get_inputs(self, m, pis):
8853  r"""do_get_inputs(SphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8854  return _IMP_core.SphereDistancePairScore_do_get_inputs(self, m, pis)
8855 
8856  def get_version_info(self):
8857  r"""get_version_info(SphereDistancePairScore self) -> VersionInfo"""
8858  return _IMP_core.SphereDistancePairScore_get_version_info(self)
8859  __swig_destroy__ = _IMP_core.delete_SphereDistancePairScore
8860 
8861  def __str__(self):
8862  r"""__str__(SphereDistancePairScore self) -> std::string"""
8863  return _IMP_core.SphereDistancePairScore___str__(self)
8864 
8865  def __repr__(self):
8866  r"""__repr__(SphereDistancePairScore self) -> std::string"""
8867  return _IMP_core.SphereDistancePairScore___repr__(self)
8868 
8869  @staticmethod
8870  def get_from(o):
8871  return _object_cast_to_SphereDistancePairScore(o)
8872 
8873 
8874  def _get_as_binary(self):
8875  r"""_get_as_binary(SphereDistancePairScore self) -> PyObject *"""
8876  return _IMP_core.SphereDistancePairScore__get_as_binary(self)
8877 
8878  def _set_from_binary(self, p):
8879  r"""_set_from_binary(SphereDistancePairScore self, PyObject * p)"""
8880  return _IMP_core.SphereDistancePairScore__set_from_binary(self, p)
8881 
8882  def __getstate__(self):
8883  p = self._get_as_binary()
8884  if len(self.__dict__) > 1:
8885  d = self.__dict__.copy()
8886  del d['this']
8887  p = (d, p)
8888  return p
8889 
8890  def __setstate__(self, p):
8891  if not hasattr(self, 'this'):
8892  self.__init__()
8893  if isinstance(p, tuple):
8894  d, p = p
8895  self.__dict__.update(d)
8896  return self._set_from_binary(p)
8897 
8898 
8899 # Register SphereDistancePairScore in _IMP_core:
8900 _IMP_core.SphereDistancePairScore_swigregister(SphereDistancePairScore)
8901 class HarmonicUpperBoundSphereDistancePairScore(IMP.PairScore):
8902  r"""Proxy of C++ IMP::core::HarmonicUpperBoundSphereDistancePairScore class."""
8903 
8904  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8905 
8906  def __init__(self, *args):
8907  r"""
8908  __init__(HarmonicUpperBoundSphereDistancePairScore self, double x0, double k, std::string name="HarmonicUpperBoundSphereDistancePairScore%1%") -> HarmonicUpperBoundSphereDistancePairScore
8909  __init__(HarmonicUpperBoundSphereDistancePairScore self) -> HarmonicUpperBoundSphereDistancePairScore
8910  """
8911  _IMP_core.HarmonicUpperBoundSphereDistancePairScore_swiginit(self, _IMP_core.new_HarmonicUpperBoundSphereDistancePairScore(*args))
8912 
8913  def do_get_inputs(self, m, pis):
8914  r"""do_get_inputs(HarmonicUpperBoundSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8915  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore_do_get_inputs(self, m, pis)
8916 
8917  def get_version_info(self):
8918  r"""get_version_info(HarmonicUpperBoundSphereDistancePairScore self) -> VersionInfo"""
8919  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore_get_version_info(self)
8920  __swig_destroy__ = _IMP_core.delete_HarmonicUpperBoundSphereDistancePairScore
8921 
8922  def __str__(self):
8923  r"""__str__(HarmonicUpperBoundSphereDistancePairScore self) -> std::string"""
8924  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore___str__(self)
8925 
8926  def __repr__(self):
8927  r"""__repr__(HarmonicUpperBoundSphereDistancePairScore self) -> std::string"""
8928  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore___repr__(self)
8929 
8930  @staticmethod
8931  def get_from(o):
8932  return _object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o)
8933 
8934 
8935  def _get_as_binary(self):
8936  r"""_get_as_binary(HarmonicUpperBoundSphereDistancePairScore self) -> PyObject *"""
8937  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore__get_as_binary(self)
8938 
8939  def _set_from_binary(self, p):
8940  r"""_set_from_binary(HarmonicUpperBoundSphereDistancePairScore self, PyObject * p)"""
8941  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore__set_from_binary(self, p)
8942 
8943  def __getstate__(self):
8944  p = self._get_as_binary()
8945  if len(self.__dict__) > 1:
8946  d = self.__dict__.copy()
8947  del d['this']
8948  p = (d, p)
8949  return p
8950 
8951  def __setstate__(self, p):
8952  if not hasattr(self, 'this'):
8953  self.__init__()
8954  if isinstance(p, tuple):
8955  d, p = p
8956  self.__dict__.update(d)
8957  return self._set_from_binary(p)
8958 
8959 
8960 # Register HarmonicUpperBoundSphereDistancePairScore in _IMP_core:
8961 _IMP_core.HarmonicUpperBoundSphereDistancePairScore_swigregister(HarmonicUpperBoundSphereDistancePairScore)
8962 class HarmonicUpperBoundSphereDiameterPairScore(IMP.PairScore):
8963  r"""Proxy of C++ IMP::core::HarmonicUpperBoundSphereDiameterPairScore class."""
8964 
8965  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8966 
8967  def __init__(self, d0, k):
8968  r"""__init__(HarmonicUpperBoundSphereDiameterPairScore self, double d0, double k) -> HarmonicUpperBoundSphereDiameterPairScore"""
8969  _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_swiginit(self, _IMP_core.new_HarmonicUpperBoundSphereDiameterPairScore(d0, k))
8970 
8971  def get_rest_length(self):
8972  r"""get_rest_length(HarmonicUpperBoundSphereDiameterPairScore self) -> double"""
8973  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_rest_length(self)
8974 
8975  def get_stiffness(self):
8976  r"""get_stiffness(HarmonicUpperBoundSphereDiameterPairScore self) -> double"""
8977  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_stiffness(self)
8978 
8979  def do_get_inputs(self, m, pis):
8980  r"""do_get_inputs(HarmonicUpperBoundSphereDiameterPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8981  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_do_get_inputs(self, m, pis)
8982 
8983  def get_version_info(self):
8984  r"""get_version_info(HarmonicUpperBoundSphereDiameterPairScore self) -> VersionInfo"""
8985  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_version_info(self)
8986  __swig_destroy__ = _IMP_core.delete_HarmonicUpperBoundSphereDiameterPairScore
8987 
8988  def __str__(self):
8989  r"""__str__(HarmonicUpperBoundSphereDiameterPairScore self) -> std::string"""
8990  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore___str__(self)
8991 
8992  def __repr__(self):
8993  r"""__repr__(HarmonicUpperBoundSphereDiameterPairScore self) -> std::string"""
8994  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore___repr__(self)
8995 
8996  @staticmethod
8997  def get_from(o):
8998  return _object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o)
8999 
9000 
9001 # Register HarmonicUpperBoundSphereDiameterPairScore in _IMP_core:
9002 _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_swigregister(HarmonicUpperBoundSphereDiameterPairScore)
9003 class HarmonicSphereDistancePairScore(IMP.PairScore):
9004  r"""Proxy of C++ IMP::core::HarmonicSphereDistancePairScore class."""
9005 
9006  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9007 
9008  def __init__(self, *args):
9009  r"""
9010  __init__(HarmonicSphereDistancePairScore self, double x0, double k, std::string name="HarmonicSphereDistancePairScore%1%") -> HarmonicSphereDistancePairScore
9011  __init__(HarmonicSphereDistancePairScore self) -> HarmonicSphereDistancePairScore
9012  """
9013  _IMP_core.HarmonicSphereDistancePairScore_swiginit(self, _IMP_core.new_HarmonicSphereDistancePairScore(*args))
9014 
9015  def do_get_inputs(self, m, pis):
9016  r"""do_get_inputs(HarmonicSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9017  return _IMP_core.HarmonicSphereDistancePairScore_do_get_inputs(self, m, pis)
9018 
9019  def get_version_info(self):
9020  r"""get_version_info(HarmonicSphereDistancePairScore self) -> VersionInfo"""
9021  return _IMP_core.HarmonicSphereDistancePairScore_get_version_info(self)
9022  __swig_destroy__ = _IMP_core.delete_HarmonicSphereDistancePairScore
9023 
9024  def __str__(self):
9025  r"""__str__(HarmonicSphereDistancePairScore self) -> std::string"""
9026  return _IMP_core.HarmonicSphereDistancePairScore___str__(self)
9027 
9028  def __repr__(self):
9029  r"""__repr__(HarmonicSphereDistancePairScore self) -> std::string"""
9030  return _IMP_core.HarmonicSphereDistancePairScore___repr__(self)
9031 
9032  @staticmethod
9033  def get_from(o):
9034  return _object_cast_to_HarmonicSphereDistancePairScore(o)
9035 
9036 
9037  def _get_as_binary(self):
9038  r"""_get_as_binary(HarmonicSphereDistancePairScore self) -> PyObject *"""
9039  return _IMP_core.HarmonicSphereDistancePairScore__get_as_binary(self)
9040 
9041  def _set_from_binary(self, p):
9042  r"""_set_from_binary(HarmonicSphereDistancePairScore self, PyObject * p)"""
9043  return _IMP_core.HarmonicSphereDistancePairScore__set_from_binary(self, p)
9044 
9045  def __getstate__(self):
9046  p = self._get_as_binary()
9047  if len(self.__dict__) > 1:
9048  d = self.__dict__.copy()
9049  del d['this']
9050  p = (d, p)
9051  return p
9052 
9053  def __setstate__(self, p):
9054  if not hasattr(self, 'this'):
9055  self.__init__()
9056  if isinstance(p, tuple):
9057  d, p = p
9058  self.__dict__.update(d)
9059  return self._set_from_binary(p)
9060 
9061 
9062 # Register HarmonicSphereDistancePairScore in _IMP_core:
9063 _IMP_core.HarmonicSphereDistancePairScore_swigregister(HarmonicSphereDistancePairScore)
9064 class NormalizedSphereDistancePairScore(IMP.PairScore):
9065  r"""Proxy of C++ IMP::core::NormalizedSphereDistancePairScore class."""
9066 
9067  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9068 
9069  def __init__(self, *args):
9070  r"""__init__(NormalizedSphereDistancePairScore self, UnaryFunction f, FloatKey radius=FloatKey("radius")) -> NormalizedSphereDistancePairScore"""
9071  _IMP_core.NormalizedSphereDistancePairScore_swiginit(self, _IMP_core.new_NormalizedSphereDistancePairScore(*args))
9072 
9073  def do_get_inputs(self, m, pis):
9074  r"""do_get_inputs(NormalizedSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9075  return _IMP_core.NormalizedSphereDistancePairScore_do_get_inputs(self, m, pis)
9076 
9077  def get_version_info(self):
9078  r"""get_version_info(NormalizedSphereDistancePairScore self) -> VersionInfo"""
9079  return _IMP_core.NormalizedSphereDistancePairScore_get_version_info(self)
9080  __swig_destroy__ = _IMP_core.delete_NormalizedSphereDistancePairScore
9081 
9082  def __str__(self):
9083  r"""__str__(NormalizedSphereDistancePairScore self) -> std::string"""
9084  return _IMP_core.NormalizedSphereDistancePairScore___str__(self)
9085 
9086  def __repr__(self):
9087  r"""__repr__(NormalizedSphereDistancePairScore self) -> std::string"""
9088  return _IMP_core.NormalizedSphereDistancePairScore___repr__(self)
9089 
9090  @staticmethod
9091  def get_from(o):
9092  return _object_cast_to_NormalizedSphereDistancePairScore(o)
9093 
9094 
9095 # Register NormalizedSphereDistancePairScore in _IMP_core:
9096 _IMP_core.NormalizedSphereDistancePairScore_swigregister(NormalizedSphereDistancePairScore)
9097 class WeightedSphereDistancePairScore(IMP.PairScore):
9098  r"""Proxy of C++ IMP::core::WeightedSphereDistancePairScore class."""
9099 
9100  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9101 
9102  def __init__(self, *args):
9103  r"""__init__(WeightedSphereDistancePairScore self, UnaryFunction f, FloatKey weight, FloatKey radius=FloatKey("radius")) -> WeightedSphereDistancePairScore"""
9104  _IMP_core.WeightedSphereDistancePairScore_swiginit(self, _IMP_core.new_WeightedSphereDistancePairScore(*args))
9105 
9106  def do_get_inputs(self, m, pis):
9107  r"""do_get_inputs(WeightedSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9108  return _IMP_core.WeightedSphereDistancePairScore_do_get_inputs(self, m, pis)
9109 
9110  def get_version_info(self):
9111  r"""get_version_info(WeightedSphereDistancePairScore self) -> VersionInfo"""
9112  return _IMP_core.WeightedSphereDistancePairScore_get_version_info(self)
9113  __swig_destroy__ = _IMP_core.delete_WeightedSphereDistancePairScore
9114 
9115  def __str__(self):
9116  r"""__str__(WeightedSphereDistancePairScore self) -> std::string"""
9117  return _IMP_core.WeightedSphereDistancePairScore___str__(self)
9118 
9119  def __repr__(self):
9120  r"""__repr__(WeightedSphereDistancePairScore self) -> std::string"""
9121  return _IMP_core.WeightedSphereDistancePairScore___repr__(self)
9122 
9123  @staticmethod
9124  def get_from(o):
9125  return _object_cast_to_WeightedSphereDistancePairScore(o)
9126 
9127 
9128 # Register WeightedSphereDistancePairScore in _IMP_core:
9129 _IMP_core.WeightedSphereDistancePairScore_swigregister(WeightedSphereDistancePairScore)
9130 class SoftSpherePairScore(IMP.PairScore):
9131  r"""Proxy of C++ IMP::core::SoftSpherePairScore class."""
9132 
9133  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9134 
9135  def __init__(self, *args):
9136  r"""
9137  __init__(SoftSpherePairScore self, double k, std::string name="SoftSpherePairScore%1%") -> SoftSpherePairScore
9138  __init__(SoftSpherePairScore self) -> SoftSpherePairScore
9139  """
9140  _IMP_core.SoftSpherePairScore_swiginit(self, _IMP_core.new_SoftSpherePairScore(*args))
9141 
9142  def do_get_inputs(self, m, pis):
9143  r"""do_get_inputs(SoftSpherePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9144  return _IMP_core.SoftSpherePairScore_do_get_inputs(self, m, pis)
9145 
9146  def get_version_info(self):
9147  r"""get_version_info(SoftSpherePairScore self) -> VersionInfo"""
9148  return _IMP_core.SoftSpherePairScore_get_version_info(self)
9149  __swig_destroy__ = _IMP_core.delete_SoftSpherePairScore
9150 
9151  def __str__(self):
9152  r"""__str__(SoftSpherePairScore self) -> std::string"""
9153  return _IMP_core.SoftSpherePairScore___str__(self)
9154 
9155  def __repr__(self):
9156  r"""__repr__(SoftSpherePairScore self) -> std::string"""
9157  return _IMP_core.SoftSpherePairScore___repr__(self)
9158 
9159  @staticmethod
9160  def get_from(o):
9161  return _object_cast_to_SoftSpherePairScore(o)
9162 
9163 
9164  def _get_as_binary(self):
9165  r"""_get_as_binary(SoftSpherePairScore self) -> PyObject *"""
9166  return _IMP_core.SoftSpherePairScore__get_as_binary(self)
9167 
9168  def _set_from_binary(self, p):
9169  r"""_set_from_binary(SoftSpherePairScore self, PyObject * p)"""
9170  return _IMP_core.SoftSpherePairScore__set_from_binary(self, p)
9171 
9172  def __getstate__(self):
9173  p = self._get_as_binary()
9174  if len(self.__dict__) > 1:
9175  d = self.__dict__.copy()
9176  del d['this']
9177  p = (d, p)
9178  return p
9179 
9180  def __setstate__(self, p):
9181  if not hasattr(self, 'this'):
9182  self.__init__()
9183  if isinstance(p, tuple):
9184  d, p = p
9185  self.__dict__.update(d)
9186  return self._set_from_binary(p)
9187 
9188 
9189 # Register SoftSpherePairScore in _IMP_core:
9190 _IMP_core.SoftSpherePairScore_swigregister(SoftSpherePairScore)
9191 class SurfaceDistancePairScore(IMP.PairScore):
9192  r"""Proxy of C++ IMP::core::SurfaceDistancePairScore class."""
9193 
9194  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9195 
9196  def __init__(self, *args):
9197  r"""__init__(SurfaceDistancePairScore self, UnaryFunction uf, std::string name="SurfaceDistancePairScore%1%") -> SurfaceDistancePairScore"""
9198  _IMP_core.SurfaceDistancePairScore_swiginit(self, _IMP_core.new_SurfaceDistancePairScore(*args))
9199 
9200  def do_get_inputs(self, m, pis):
9201  r"""do_get_inputs(SurfaceDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9202  return _IMP_core.SurfaceDistancePairScore_do_get_inputs(self, m, pis)
9203 
9204  def get_version_info(self):
9205  r"""get_version_info(SurfaceDistancePairScore self) -> VersionInfo"""
9206  return _IMP_core.SurfaceDistancePairScore_get_version_info(self)
9207  __swig_destroy__ = _IMP_core.delete_SurfaceDistancePairScore
9208 
9209  def __str__(self):
9210  r"""__str__(SurfaceDistancePairScore self) -> std::string"""
9211  return _IMP_core.SurfaceDistancePairScore___str__(self)
9212 
9213  def __repr__(self):
9214  r"""__repr__(SurfaceDistancePairScore self) -> std::string"""
9215  return _IMP_core.SurfaceDistancePairScore___repr__(self)
9216 
9217  @staticmethod
9218  def get_from(o):
9219  return _object_cast_to_SurfaceDistancePairScore(o)
9220 
9221 
9222 # Register SurfaceDistancePairScore in _IMP_core:
9223 _IMP_core.SurfaceDistancePairScore_swigregister(SurfaceDistancePairScore)
9224 class SurfaceHeightPairScore(IMP.PairScore):
9225  r"""Proxy of C++ IMP::core::SurfaceHeightPairScore class."""
9226 
9227  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9228 
9229  def __init__(self, *args):
9230  r"""__init__(SurfaceHeightPairScore self, UnaryFunction uf, std::string name="SurfaceHeightPairScore%1%") -> SurfaceHeightPairScore"""
9231  _IMP_core.SurfaceHeightPairScore_swiginit(self, _IMP_core.new_SurfaceHeightPairScore(*args))
9232 
9233  def do_get_inputs(self, m, pis):
9234  r"""do_get_inputs(SurfaceHeightPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9235  return _IMP_core.SurfaceHeightPairScore_do_get_inputs(self, m, pis)
9236 
9237  def get_version_info(self):
9238  r"""get_version_info(SurfaceHeightPairScore self) -> VersionInfo"""
9239  return _IMP_core.SurfaceHeightPairScore_get_version_info(self)
9240  __swig_destroy__ = _IMP_core.delete_SurfaceHeightPairScore
9241 
9242  def __str__(self):
9243  r"""__str__(SurfaceHeightPairScore self) -> std::string"""
9244  return _IMP_core.SurfaceHeightPairScore___str__(self)
9245 
9246  def __repr__(self):
9247  r"""__repr__(SurfaceHeightPairScore self) -> std::string"""
9248  return _IMP_core.SurfaceHeightPairScore___repr__(self)
9249 
9250  @staticmethod
9251  def get_from(o):
9252  return _object_cast_to_SurfaceHeightPairScore(o)
9253 
9254 
9255 # Register SurfaceHeightPairScore in _IMP_core:
9256 _IMP_core.SurfaceHeightPairScore_swigregister(SurfaceHeightPairScore)
9257 class SurfaceDepthPairScore(IMP.PairScore):
9258  r"""Proxy of C++ IMP::core::SurfaceDepthPairScore class."""
9259 
9260  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9261 
9262  def __init__(self, *args):
9263  r"""__init__(SurfaceDepthPairScore self, UnaryFunction uf, std::string name="SurfaceDepthPairScore%1%") -> SurfaceDepthPairScore"""
9264  _IMP_core.SurfaceDepthPairScore_swiginit(self, _IMP_core.new_SurfaceDepthPairScore(*args))
9265 
9266  def do_get_inputs(self, m, pis):
9267  r"""do_get_inputs(SurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9268  return _IMP_core.SurfaceDepthPairScore_do_get_inputs(self, m, pis)
9269 
9270  def get_version_info(self):
9271  r"""get_version_info(SurfaceDepthPairScore self) -> VersionInfo"""
9272  return _IMP_core.SurfaceDepthPairScore_get_version_info(self)
9273  __swig_destroy__ = _IMP_core.delete_SurfaceDepthPairScore
9274 
9275  def __str__(self):
9276  r"""__str__(SurfaceDepthPairScore self) -> std::string"""
9277  return _IMP_core.SurfaceDepthPairScore___str__(self)
9278 
9279  def __repr__(self):
9280  r"""__repr__(SurfaceDepthPairScore self) -> std::string"""
9281  return _IMP_core.SurfaceDepthPairScore___repr__(self)
9282 
9283  @staticmethod
9284  def get_from(o):
9285  return _object_cast_to_SurfaceDepthPairScore(o)
9286 
9287 
9288 # Register SurfaceDepthPairScore in _IMP_core:
9289 _IMP_core.SurfaceDepthPairScore_swigregister(SurfaceDepthPairScore)
9290 class HarmonicSurfaceDistancePairScore(IMP.PairScore):
9291  r"""Proxy of C++ IMP::core::HarmonicSurfaceDistancePairScore class."""
9292 
9293  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9294 
9295  def __init__(self, *args):
9296  r"""__init__(HarmonicSurfaceDistancePairScore self, double x0, double k, std::string name="HarmonicSurfaceDistancePairScore%1%") -> HarmonicSurfaceDistancePairScore"""
9297  _IMP_core.HarmonicSurfaceDistancePairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceDistancePairScore(*args))
9298 
9299  def do_get_inputs(self, m, pis):
9300  r"""do_get_inputs(HarmonicSurfaceDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9301  return _IMP_core.HarmonicSurfaceDistancePairScore_do_get_inputs(self, m, pis)
9302 
9303  def get_version_info(self):
9304  r"""get_version_info(HarmonicSurfaceDistancePairScore self) -> VersionInfo"""
9305  return _IMP_core.HarmonicSurfaceDistancePairScore_get_version_info(self)
9306  __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceDistancePairScore
9307 
9308  def __str__(self):
9309  r"""__str__(HarmonicSurfaceDistancePairScore self) -> std::string"""
9310  return _IMP_core.HarmonicSurfaceDistancePairScore___str__(self)
9311 
9312  def __repr__(self):
9313  r"""__repr__(HarmonicSurfaceDistancePairScore self) -> std::string"""
9314  return _IMP_core.HarmonicSurfaceDistancePairScore___repr__(self)
9315 
9316  @staticmethod
9317  def get_from(o):
9318  return _object_cast_to_HarmonicSurfaceDistancePairScore(o)
9319 
9320 
9321 # Register HarmonicSurfaceDistancePairScore in _IMP_core:
9322 _IMP_core.HarmonicSurfaceDistancePairScore_swigregister(HarmonicSurfaceDistancePairScore)
9323 class HarmonicSurfaceHeightPairScore(IMP.PairScore):
9324  r"""Proxy of C++ IMP::core::HarmonicSurfaceHeightPairScore class."""
9325 
9326  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9327 
9328  def __init__(self, *args):
9329  r"""__init__(HarmonicSurfaceHeightPairScore self, double x0, double k, std::string name="HarmonicSurfaceHeightPairScore%1%") -> HarmonicSurfaceHeightPairScore"""
9330  _IMP_core.HarmonicSurfaceHeightPairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceHeightPairScore(*args))
9331 
9332  def do_get_inputs(self, m, pis):
9333  r"""do_get_inputs(HarmonicSurfaceHeightPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9334  return _IMP_core.HarmonicSurfaceHeightPairScore_do_get_inputs(self, m, pis)
9335 
9336  def get_version_info(self):
9337  r"""get_version_info(HarmonicSurfaceHeightPairScore self) -> VersionInfo"""
9338  return _IMP_core.HarmonicSurfaceHeightPairScore_get_version_info(self)
9339  __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceHeightPairScore
9340 
9341  def __str__(self):
9342  r"""__str__(HarmonicSurfaceHeightPairScore self) -> std::string"""
9343  return _IMP_core.HarmonicSurfaceHeightPairScore___str__(self)
9344 
9345  def __repr__(self):
9346  r"""__repr__(HarmonicSurfaceHeightPairScore self) -> std::string"""
9347  return _IMP_core.HarmonicSurfaceHeightPairScore___repr__(self)
9348 
9349  @staticmethod
9350  def get_from(o):
9351  return _object_cast_to_HarmonicSurfaceHeightPairScore(o)
9352 
9353 
9354 # Register HarmonicSurfaceHeightPairScore in _IMP_core:
9355 _IMP_core.HarmonicSurfaceHeightPairScore_swigregister(HarmonicSurfaceHeightPairScore)
9356 class HarmonicSurfaceDepthPairScore(IMP.PairScore):
9357  r"""Proxy of C++ IMP::core::HarmonicSurfaceDepthPairScore class."""
9358 
9359  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9360 
9361  def __init__(self, *args):
9362  r"""__init__(HarmonicSurfaceDepthPairScore self, double x0, double k, std::string name="HarmonicSurfaceDepthPairScore%1%") -> HarmonicSurfaceDepthPairScore"""
9363  _IMP_core.HarmonicSurfaceDepthPairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceDepthPairScore(*args))
9364 
9365  def do_get_inputs(self, m, pis):
9366  r"""do_get_inputs(HarmonicSurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9367  return _IMP_core.HarmonicSurfaceDepthPairScore_do_get_inputs(self, m, pis)
9368 
9369  def get_version_info(self):
9370  r"""get_version_info(HarmonicSurfaceDepthPairScore self) -> VersionInfo"""
9371  return _IMP_core.HarmonicSurfaceDepthPairScore_get_version_info(self)
9372  __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceDepthPairScore
9373 
9374  def __str__(self):
9375  r"""__str__(HarmonicSurfaceDepthPairScore self) -> std::string"""
9376  return _IMP_core.HarmonicSurfaceDepthPairScore___str__(self)
9377 
9378  def __repr__(self):
9379  r"""__repr__(HarmonicSurfaceDepthPairScore self) -> std::string"""
9380  return _IMP_core.HarmonicSurfaceDepthPairScore___repr__(self)
9381 
9382  @staticmethod
9383  def get_from(o):
9384  return _object_cast_to_HarmonicSurfaceDepthPairScore(o)
9385 
9386 
9387 # Register HarmonicSurfaceDepthPairScore in _IMP_core:
9388 _IMP_core.HarmonicSurfaceDepthPairScore_swigregister(HarmonicSurfaceDepthPairScore)
9389 class SoftSuperSurfacePairScore(IMP.PairScore):
9390  r"""Proxy of C++ IMP::core::SoftSuperSurfacePairScore class."""
9391 
9392  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9393 
9394  def __init__(self, *args):
9395  r"""__init__(SoftSuperSurfacePairScore self, double k, std::string name="SoftSuperSurfacePairScore%1%") -> SoftSuperSurfacePairScore"""
9396  _IMP_core.SoftSuperSurfacePairScore_swiginit(self, _IMP_core.new_SoftSuperSurfacePairScore(*args))
9397 
9398  def do_get_inputs(self, m, pis):
9399  r"""do_get_inputs(SoftSuperSurfacePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9400  return _IMP_core.SoftSuperSurfacePairScore_do_get_inputs(self, m, pis)
9401 
9402  def get_version_info(self):
9403  r"""get_version_info(SoftSuperSurfacePairScore self) -> VersionInfo"""
9404  return _IMP_core.SoftSuperSurfacePairScore_get_version_info(self)
9405  __swig_destroy__ = _IMP_core.delete_SoftSuperSurfacePairScore
9406 
9407  def __str__(self):
9408  r"""__str__(SoftSuperSurfacePairScore self) -> std::string"""
9409  return _IMP_core.SoftSuperSurfacePairScore___str__(self)
9410 
9411  def __repr__(self):
9412  r"""__repr__(SoftSuperSurfacePairScore self) -> std::string"""
9413  return _IMP_core.SoftSuperSurfacePairScore___repr__(self)
9414 
9415  @staticmethod
9416  def get_from(o):
9417  return _object_cast_to_SoftSuperSurfacePairScore(o)
9418 
9419 
9420 # Register SoftSuperSurfacePairScore in _IMP_core:
9421 _IMP_core.SoftSuperSurfacePairScore_swigregister(SoftSuperSurfacePairScore)
9422 class SoftSubSurfacePairScore(IMP.PairScore):
9423  r"""Proxy of C++ IMP::core::SoftSubSurfacePairScore class."""
9424 
9425  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9426 
9427  def __init__(self, *args):
9428  r"""__init__(SoftSubSurfacePairScore self, double k, std::string name="SoftSubSurfacePairScore%1%") -> SoftSubSurfacePairScore"""
9429  _IMP_core.SoftSubSurfacePairScore_swiginit(self, _IMP_core.new_SoftSubSurfacePairScore(*args))
9430 
9431  def do_get_inputs(self, m, pis):
9432  r"""do_get_inputs(SoftSubSurfacePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9433  return _IMP_core.SoftSubSurfacePairScore_do_get_inputs(self, m, pis)
9434 
9435  def get_version_info(self):
9436  r"""get_version_info(SoftSubSurfacePairScore self) -> VersionInfo"""
9437  return _IMP_core.SoftSubSurfacePairScore_get_version_info(self)
9438  __swig_destroy__ = _IMP_core.delete_SoftSubSurfacePairScore
9439 
9440  def __str__(self):
9441  r"""__str__(SoftSubSurfacePairScore self) -> std::string"""
9442  return _IMP_core.SoftSubSurfacePairScore___str__(self)
9443 
9444  def __repr__(self):
9445  r"""__repr__(SoftSubSurfacePairScore self) -> std::string"""
9446  return _IMP_core.SoftSubSurfacePairScore___repr__(self)
9447 
9448  @staticmethod
9449  def get_from(o):
9450  return _object_cast_to_SoftSubSurfacePairScore(o)
9451 
9452 
9453 # Register SoftSubSurfacePairScore in _IMP_core:
9454 _IMP_core.SoftSubSurfacePairScore_swigregister(SoftSubSurfacePairScore)
9455 class SurfaceTetheredChain(IMP.UnaryFunction):
9456  r"""Proxy of C++ IMP::core::SurfaceTetheredChain class."""
9457 
9458  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9459 
9460  def __init__(self, link_num, link_length):
9461  r"""__init__(SurfaceTetheredChain self, int link_num, double link_length) -> SurfaceTetheredChain"""
9462  _IMP_core.SurfaceTetheredChain_swiginit(self, _IMP_core.new_SurfaceTetheredChain(link_num, link_length))
9463 
9464  def get_version_info(self):
9465  r"""get_version_info(SurfaceTetheredChain self) -> VersionInfo"""
9466  return _IMP_core.SurfaceTetheredChain_get_version_info(self)
9467  __swig_destroy__ = _IMP_core.delete_SurfaceTetheredChain
9468 
9469  def get_link_number(self):
9470  r"""get_link_number(SurfaceTetheredChain self) -> int"""
9471  return _IMP_core.SurfaceTetheredChain_get_link_number(self)
9472 
9473  def get_link_length(self):
9474  r"""get_link_length(SurfaceTetheredChain self) -> double"""
9475  return _IMP_core.SurfaceTetheredChain_get_link_length(self)
9476 
9477  def set_link_number(self, N):
9478  r"""set_link_number(SurfaceTetheredChain self, int N)"""
9479  return _IMP_core.SurfaceTetheredChain_set_link_number(self, N)
9480 
9481  def set_link_length(self, b):
9482  r"""set_link_length(SurfaceTetheredChain self, double b)"""
9483  return _IMP_core.SurfaceTetheredChain_set_link_length(self, b)
9484 
9485  def get_distance_at_minimum(self):
9486  r"""get_distance_at_minimum(SurfaceTetheredChain self) -> double"""
9487  return _IMP_core.SurfaceTetheredChain_get_distance_at_minimum(self)
9488 
9489  def get_average_distance(self):
9490  r"""get_average_distance(SurfaceTetheredChain self) -> double"""
9491  return _IMP_core.SurfaceTetheredChain_get_average_distance(self)
9492 
9493  def __str__(self):
9494  r"""__str__(SurfaceTetheredChain self) -> std::string"""
9495  return _IMP_core.SurfaceTetheredChain___str__(self)
9496 
9497  def __repr__(self):
9498  r"""__repr__(SurfaceTetheredChain self) -> std::string"""
9499  return _IMP_core.SurfaceTetheredChain___repr__(self)
9500 
9501  @staticmethod
9502  def get_from(o):
9503  return _object_cast_to_SurfaceTetheredChain(o)
9504 
9505 
9506 # Register SurfaceTetheredChain in _IMP_core:
9507 _IMP_core.SurfaceTetheredChain_swigregister(SurfaceTetheredChain)
9508 class SurfaceSymmetryConstraint(IMP.Constraint):
9509  r"""Proxy of C++ IMP::core::SurfaceSymmetryConstraint class."""
9510 
9511  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9512 
9513  def __init__(self, m, ss, rbs):
9514  r"""__init__(SurfaceSymmetryConstraint self, Model m, IMP::ParticleIndexPair const & ss, IMP::ParticleIndexPair const & rbs) -> SurfaceSymmetryConstraint"""
9515  _IMP_core.SurfaceSymmetryConstraint_swiginit(self, _IMP_core.new_SurfaceSymmetryConstraint(m, ss, rbs))
9516 
9517  def do_get_inputs(self):
9518  r"""do_get_inputs(SurfaceSymmetryConstraint self) -> IMP::ModelObjectsTemp"""
9519  return _IMP_core.SurfaceSymmetryConstraint_do_get_inputs(self)
9520 
9521  def do_get_outputs(self):
9522  r"""do_get_outputs(SurfaceSymmetryConstraint self) -> IMP::ModelObjectsTemp"""
9523  return _IMP_core.SurfaceSymmetryConstraint_do_get_outputs(self)
9524 
9525  def get_version_info(self):
9526  r"""get_version_info(SurfaceSymmetryConstraint self) -> VersionInfo"""
9527  return _IMP_core.SurfaceSymmetryConstraint_get_version_info(self)
9528  __swig_destroy__ = _IMP_core.delete_SurfaceSymmetryConstraint
9529 
9530  def __str__(self):
9531  r"""__str__(SurfaceSymmetryConstraint self) -> std::string"""
9532  return _IMP_core.SurfaceSymmetryConstraint___str__(self)
9533 
9534  def __repr__(self):
9535  r"""__repr__(SurfaceSymmetryConstraint self) -> std::string"""
9536  return _IMP_core.SurfaceSymmetryConstraint___repr__(self)
9537 
9538  @staticmethod
9539  def get_from(o):
9540  return _object_cast_to_SurfaceSymmetryConstraint(o)
9541 
9542 
9543 # Register SurfaceSymmetryConstraint in _IMP_core:
9544 _IMP_core.SurfaceSymmetryConstraint_swigregister(SurfaceSymmetryConstraint)
9545 class SteepestDescent(IMP.AttributeOptimizer):
9546  r"""Proxy of C++ IMP::core::SteepestDescent class."""
9547 
9548  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9549 
9550  def __init__(self, *args):
9551  r"""__init__(SteepestDescent self, Model m, std::string name="SteepestDescent%1%") -> SteepestDescent"""
9552  _IMP_core.SteepestDescent_swiginit(self, _IMP_core.new_SteepestDescent(*args))
9553 
9554  def do_optimize(self, max_steps):
9555  r"""do_optimize(SteepestDescent self, unsigned int max_steps) -> IMP::Float"""
9556  return _IMP_core.SteepestDescent_do_optimize(self, max_steps)
9557 
9558  def get_version_info(self):
9559  r"""get_version_info(SteepestDescent self) -> VersionInfo"""
9560  return _IMP_core.SteepestDescent_get_version_info(self)
9561  __swig_destroy__ = _IMP_core.delete_SteepestDescent
9562 
9563  def set_threshold(self, t):
9564  r"""set_threshold(SteepestDescent self, IMP::Float t)"""
9565  return _IMP_core.SteepestDescent_set_threshold(self, t)
9566 
9567  def set_step_size(self, t):
9568  r"""set_step_size(SteepestDescent self, IMP::Float t)"""
9569  return _IMP_core.SteepestDescent_set_step_size(self, t)
9570 
9571  def set_maximum_step_size(self, t):
9572  r"""set_maximum_step_size(SteepestDescent self, IMP::Float t)"""
9573  return _IMP_core.SteepestDescent_set_maximum_step_size(self, t)
9574 
9575  def __str__(self):
9576  r"""__str__(SteepestDescent self) -> std::string"""
9577  return _IMP_core.SteepestDescent___str__(self)
9578 
9579  def __repr__(self):
9580  r"""__repr__(SteepestDescent self) -> std::string"""
9581  return _IMP_core.SteepestDescent___repr__(self)
9582 
9583  @staticmethod
9584  def get_from(o):
9585  return _object_cast_to_SteepestDescent(o)
9586 
9587 
9588 # Register SteepestDescent in _IMP_core:
9589 _IMP_core.SteepestDescent_swigregister(SteepestDescent)
9590 class TransformedDistancePairScore(IMP.PairScore):
9591  r"""Proxy of C++ IMP::core::TransformedDistancePairScore class."""
9592 
9593  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9594 
9595  def __init__(self, f, transformation):
9596  r"""__init__(TransformedDistancePairScore self, UnaryFunction f, Transformation3D transformation) -> TransformedDistancePairScore"""
9597  _IMP_core.TransformedDistancePairScore_swiginit(self, _IMP_core.new_TransformedDistancePairScore(f, transformation))
9598 
9599  def set_transformation(self, rot):
9600  r"""set_transformation(TransformedDistancePairScore self, Transformation3D rot)"""
9601  return _IMP_core.TransformedDistancePairScore_set_transformation(self, rot)
9602 
9603  def do_get_inputs(self, m, pis):
9604  r"""do_get_inputs(TransformedDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9605  return _IMP_core.TransformedDistancePairScore_do_get_inputs(self, m, pis)
9606 
9607  def get_version_info(self):
9608  r"""get_version_info(TransformedDistancePairScore self) -> VersionInfo"""
9609  return _IMP_core.TransformedDistancePairScore_get_version_info(self)
9610  __swig_destroy__ = _IMP_core.delete_TransformedDistancePairScore
9611 
9612  def __str__(self):
9613  r"""__str__(TransformedDistancePairScore self) -> std::string"""
9614  return _IMP_core.TransformedDistancePairScore___str__(self)
9615 
9616  def __repr__(self):
9617  r"""__repr__(TransformedDistancePairScore self) -> std::string"""
9618  return _IMP_core.TransformedDistancePairScore___repr__(self)
9619 
9620  @staticmethod
9621  def get_from(o):
9622  return _object_cast_to_TransformedDistancePairScore(o)
9623 
9624 
9625 # Register TransformedDistancePairScore in _IMP_core:
9626 _IMP_core.TransformedDistancePairScore_swigregister(TransformedDistancePairScore)
9627 class TypedPairScore(IMP.PairScore):
9628  r"""Proxy of C++ IMP::core::TypedPairScore class."""
9629 
9630  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9631 
9632  def __init__(self, typekey, allow_invalid_types=True):
9633  r"""__init__(TypedPairScore self, IntKey typekey, bool allow_invalid_types=True) -> TypedPairScore"""
9634  _IMP_core.TypedPairScore_swiginit(self, _IMP_core.new_TypedPairScore(typekey, allow_invalid_types))
9635 
9636  def set_particle_type(self, arg2):
9637  r"""set_particle_type(TypedPairScore self, Particle arg2)"""
9638  return _IMP_core.TypedPairScore_set_particle_type(self, arg2)
9639 
9640  def set_pair_score(self, ps, atype, btype):
9641  r"""set_pair_score(TypedPairScore self, PairScore ps, IMP::Int atype, IMP::Int btype)"""
9642  return _IMP_core.TypedPairScore_set_pair_score(self, ps, atype, btype)
9643 
9644  def do_get_inputs(self, m, pis):
9645  r"""do_get_inputs(TypedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9646  return _IMP_core.TypedPairScore_do_get_inputs(self, m, pis)
9647 
9648  def get_version_info(self):
9649  r"""get_version_info(TypedPairScore self) -> VersionInfo"""
9650  return _IMP_core.TypedPairScore_get_version_info(self)
9651  __swig_destroy__ = _IMP_core.delete_TypedPairScore
9652 
9653  def __str__(self):
9654  r"""__str__(TypedPairScore self) -> std::string"""
9655  return _IMP_core.TypedPairScore___str__(self)
9656 
9657  def __repr__(self):
9658  r"""__repr__(TypedPairScore self) -> std::string"""
9659  return _IMP_core.TypedPairScore___repr__(self)
9660 
9661  @staticmethod
9662  def get_from(o):
9663  return _object_cast_to_TypedPairScore(o)
9664 
9665 
9666 # Register TypedPairScore in _IMP_core:
9667 _IMP_core.TypedPairScore_swigregister(TypedPairScore)
9668 class RigidBodyDistancePairScore(KClosePairsPairScore):
9669  r"""Proxy of C++ IMP::core::RigidBodyDistancePairScore class."""
9670 
9671  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9672 
9673  def __init__(self, ps, r):
9674  r"""__init__(RigidBodyDistancePairScore self, PairScore ps, Refiner r) -> RigidBodyDistancePairScore"""
9675  _IMP_core.RigidBodyDistancePairScore_swiginit(self, _IMP_core.new_RigidBodyDistancePairScore(ps, r))
9676 
9677  def __str__(self):
9678  r"""__str__(RigidBodyDistancePairScore self) -> std::string"""
9679  return _IMP_core.RigidBodyDistancePairScore___str__(self)
9680 
9681  def __repr__(self):
9682  r"""__repr__(RigidBodyDistancePairScore self) -> std::string"""
9683  return _IMP_core.RigidBodyDistancePairScore___repr__(self)
9684 
9685  @staticmethod
9686  def get_from(o):
9687  return _object_cast_to_RigidBodyDistancePairScore(o)
9688 
9689  __swig_destroy__ = _IMP_core.delete_RigidBodyDistancePairScore
9690 
9691 # Register RigidBodyDistancePairScore in _IMP_core:
9692 _IMP_core.RigidBodyDistancePairScore_swigregister(RigidBodyDistancePairScore)
9693 class RigidBodyAnglePairScore(IMP.PairScore):
9694  r"""Proxy of C++ IMP::core::RigidBodyAnglePairScore class."""
9695 
9696  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9697 
9698  def __init__(self, f):
9699  r"""__init__(RigidBodyAnglePairScore self, UnaryFunction f) -> RigidBodyAnglePairScore"""
9700  _IMP_core.RigidBodyAnglePairScore_swiginit(self, _IMP_core.new_RigidBodyAnglePairScore(f))
9701 
9702  def do_get_inputs(self, m, pis):
9703  r"""do_get_inputs(RigidBodyAnglePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9704  return _IMP_core.RigidBodyAnglePairScore_do_get_inputs(self, m, pis)
9705 
9706  def get_version_info(self):
9707  r"""get_version_info(RigidBodyAnglePairScore self) -> VersionInfo"""
9708  return _IMP_core.RigidBodyAnglePairScore_get_version_info(self)
9709  __swig_destroy__ = _IMP_core.delete_RigidBodyAnglePairScore
9710 
9711  def __str__(self):
9712  r"""__str__(RigidBodyAnglePairScore self) -> std::string"""
9713  return _IMP_core.RigidBodyAnglePairScore___str__(self)
9714 
9715  def __repr__(self):
9716  r"""__repr__(RigidBodyAnglePairScore self) -> std::string"""
9717  return _IMP_core.RigidBodyAnglePairScore___repr__(self)
9718 
9719  @staticmethod
9720  def get_from(o):
9721  return _object_cast_to_RigidBodyAnglePairScore(o)
9722 
9723 
9724 # Register RigidBodyAnglePairScore in _IMP_core:
9725 _IMP_core.RigidBodyAnglePairScore_swigregister(RigidBodyAnglePairScore)
9726 class TableRefiner(IMP.Refiner):
9727  r"""Proxy of C++ IMP::core::TableRefiner class."""
9728 
9729  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9730 
9731  def __init__(self):
9732  r"""__init__(TableRefiner self) -> TableRefiner"""
9733  _IMP_core.TableRefiner_swiginit(self, _IMP_core.new_TableRefiner())
9734 
9735  def add_particle(self, p, ps):
9736  r"""add_particle(TableRefiner self, Particle p, IMP::ParticlesTemp const & ps)"""
9737  return _IMP_core.TableRefiner_add_particle(self, p, ps)
9738 
9739  def remove_particle(self, p):
9740  r"""remove_particle(TableRefiner self, Particle p)"""
9741  return _IMP_core.TableRefiner_remove_particle(self, p)
9742 
9743  def set_particle(self, p, ps):
9744  r"""set_particle(TableRefiner self, Particle p, IMP::ParticlesTemp const & ps)"""
9745  return _IMP_core.TableRefiner_set_particle(self, p, ps)
9746 
9747  def do_get_inputs(self, m, pis):
9748  r"""do_get_inputs(TableRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9749  return _IMP_core.TableRefiner_do_get_inputs(self, m, pis)
9750 
9751  def get_version_info(self):
9752  r"""get_version_info(TableRefiner self) -> VersionInfo"""
9753  return _IMP_core.TableRefiner_get_version_info(self)
9754  __swig_destroy__ = _IMP_core.delete_TableRefiner
9755 
9756  def __str__(self):
9757  r"""__str__(TableRefiner self) -> std::string"""
9758  return _IMP_core.TableRefiner___str__(self)
9759 
9760  def __repr__(self):
9761  r"""__repr__(TableRefiner self) -> std::string"""
9762  return _IMP_core.TableRefiner___repr__(self)
9763 
9764  @staticmethod
9765  def get_from(o):
9766  return _object_cast_to_TableRefiner(o)
9767 
9768 
9769 # Register TableRefiner in _IMP_core:
9770 _IMP_core.TableRefiner_swigregister(TableRefiner)
9771 LOWER = _IMP_core.LOWER
9772 
9773 BOTH = _IMP_core.BOTH
9774 
9775 UPPER = _IMP_core.UPPER
9776 
9777 class MCCGSampler(IMP.Sampler):
9778  r"""Proxy of C++ IMP::core::MCCGSampler class."""
9779 
9780  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9781 
9782  def __init__(self, *args):
9783  r"""__init__(MCCGSampler self, Model m, std::string name="MCCG Sampler %1%") -> MCCGSampler"""
9784  _IMP_core.MCCGSampler_swiginit(self, _IMP_core.new_MCCGSampler(*args))
9785 
9786  def set_bounding_box(self, bb):
9787  r"""set_bounding_box(MCCGSampler self, BoundingBox3D bb)"""
9788  return _IMP_core.MCCGSampler_set_bounding_box(self, bb)
9789 
9790  def set_number_of_attempts(self, att):
9791  r"""set_number_of_attempts(MCCGSampler self, unsigned int att)"""
9792  return _IMP_core.MCCGSampler_set_number_of_attempts(self, att)
9793 
9794  def set_number_of_monte_carlo_steps(self, cg):
9795  r"""set_number_of_monte_carlo_steps(MCCGSampler self, unsigned int cg)"""
9796  return _IMP_core.MCCGSampler_set_number_of_monte_carlo_steps(self, cg)
9797 
9798  def set_number_of_conjugate_gradient_steps(self, cg):
9799  r"""set_number_of_conjugate_gradient_steps(MCCGSampler self, unsigned int cg)"""
9800  return _IMP_core.MCCGSampler_set_number_of_conjugate_gradient_steps(self, cg)
9801 
9802  def set_max_monte_carlo_step_size(self, *args):
9803  r"""
9804  set_max_monte_carlo_step_size(MCCGSampler self, double d)
9805  set_max_monte_carlo_step_size(MCCGSampler self, FloatKey k, double d)
9806  """
9807  return _IMP_core.MCCGSampler_set_max_monte_carlo_step_size(self, *args)
9808 
9809  def set_is_refining(self, tf):
9810  r"""set_is_refining(MCCGSampler self, bool tf)"""
9811  return _IMP_core.MCCGSampler_set_is_refining(self, tf)
9812 
9813  def set_local_optimizer(self, opt):
9814  r"""set_local_optimizer(MCCGSampler self, Optimizer opt)"""
9815  return _IMP_core.MCCGSampler_set_local_optimizer(self, opt)
9816 
9817  def set_save_rejected_configurations(self, tf):
9818  r"""set_save_rejected_configurations(MCCGSampler self, bool tf)"""
9819  return _IMP_core.MCCGSampler_set_save_rejected_configurations(self, tf)
9820 
9821  def get_rejected_configurations(self):
9822  r"""get_rejected_configurations(MCCGSampler self) -> ConfigurationSet"""
9823  return _IMP_core.MCCGSampler_get_rejected_configurations(self)
9824  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)
9825  def __set_optimizer_states(self, obj): IMP._list_util.set_varlist(self.optimizer_states, obj)
9826  def __del_optimizer_states(self): IMP._list_util.del_varlist(self.optimizer_states)
9827  optimizer_states = property(__get_optimizer_states, __set_optimizer_states, __del_optimizer_states, doc="List of ##ucnames")
9828 
9829  def remove_optimizer_state(self, d):
9830  r"""remove_optimizer_state(MCCGSampler self, OptimizerState d)"""
9831  return _IMP_core.MCCGSampler_remove_optimizer_state(self, d)
9832 
9833  def _python_index_optimizer_state(self, d, start, stop):
9834  r"""_python_index_optimizer_state(MCCGSampler self, OptimizerState d, unsigned int start, unsigned int stop) -> unsigned int"""
9835  return _IMP_core.MCCGSampler__python_index_optimizer_state(self, d, start, stop)
9836 
9837  def remove_optimizer_states(self, d):
9838  r"""remove_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & d)"""
9839  return _IMP_core.MCCGSampler_remove_optimizer_states(self, d)
9840 
9841  def set_optimizer_states(self, ps):
9842  r"""set_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & ps)"""
9843  return _IMP_core.MCCGSampler_set_optimizer_states(self, ps)
9844 
9845  def set_optimizer_states_order(self, objs):
9846  r"""set_optimizer_states_order(MCCGSampler self, IMP::OptimizerStates const & objs)"""
9847  return _IMP_core.MCCGSampler_set_optimizer_states_order(self, objs)
9848 
9849  def add_optimizer_state(self, obj):
9850  r"""add_optimizer_state(MCCGSampler self, OptimizerState obj) -> unsigned int"""
9851  return _IMP_core.MCCGSampler_add_optimizer_state(self, obj)
9852 
9853  def add_optimizer_states(self, objs):
9854  r"""add_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & objs)"""
9855  return _IMP_core.MCCGSampler_add_optimizer_states(self, objs)
9856 
9857  def clear_optimizer_states(self):
9858  r"""clear_optimizer_states(MCCGSampler self)"""
9859  return _IMP_core.MCCGSampler_clear_optimizer_states(self)
9860 
9861  def get_number_of_optimizer_states(self):
9862  r"""get_number_of_optimizer_states(MCCGSampler self) -> unsigned int"""
9863  return _IMP_core.MCCGSampler_get_number_of_optimizer_states(self)
9864 
9865  def get_has_optimizer_states(self):
9866  r"""get_has_optimizer_states(MCCGSampler self) -> bool"""
9867  return _IMP_core.MCCGSampler_get_has_optimizer_states(self)
9868 
9869  def get_optimizer_state(self, i):
9870  r"""get_optimizer_state(MCCGSampler self, unsigned int i) -> OptimizerState"""
9871  return _IMP_core.MCCGSampler_get_optimizer_state(self, i)
9872 
9873  def get_optimizer_states(self):
9874  r"""get_optimizer_states(MCCGSampler self) -> IMP::OptimizerStates"""
9875  return _IMP_core.MCCGSampler_get_optimizer_states(self)
9876 
9877  def erase_optimizer_state(self, i):
9878  r"""erase_optimizer_state(MCCGSampler self, unsigned int i)"""
9879  return _IMP_core.MCCGSampler_erase_optimizer_state(self, i)
9880 
9881  def reserve_optimizer_states(self, sz):
9882  r"""reserve_optimizer_states(MCCGSampler self, unsigned int sz)"""
9883  return _IMP_core.MCCGSampler_reserve_optimizer_states(self, sz)
9884 
9885  def do_sample(self):
9886  r"""do_sample(MCCGSampler self) -> ConfigurationSet"""
9887  return _IMP_core.MCCGSampler_do_sample(self)
9888 
9889  def get_version_info(self):
9890  r"""get_version_info(MCCGSampler self) -> VersionInfo"""
9891  return _IMP_core.MCCGSampler_get_version_info(self)
9892  __swig_destroy__ = _IMP_core.delete_MCCGSampler
9893 
9894  def __str__(self):
9895  r"""__str__(MCCGSampler self) -> std::string"""
9896  return _IMP_core.MCCGSampler___str__(self)
9897 
9898  def __repr__(self):
9899  r"""__repr__(MCCGSampler self) -> std::string"""
9900  return _IMP_core.MCCGSampler___repr__(self)
9901 
9902  @staticmethod
9903  def get_from(o):
9904  return _object_cast_to_MCCGSampler(o)
9905 
9906 
9907 # Register MCCGSampler in _IMP_core:
9908 _IMP_core.MCCGSampler_swigregister(MCCGSampler)
9909 class MinimumRestraint(IMP.Restraint):
9910  r"""Proxy of C++ IMP::core::MinimumRestraint class."""
9911 
9912  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9913 
9914  def __init__(self, *args):
9915  r"""__init__(MinimumRestraint self, unsigned int num, IMP::Restraints const & rs=IMP::Restraints(), std::string name="MinimumRestraint %1%") -> MinimumRestraint"""
9916  _IMP_core.MinimumRestraint_swiginit(self, _IMP_core.new_MinimumRestraint(*args))
9917 
9918  def do_get_inputs(self):
9919  r"""do_get_inputs(MinimumRestraint self) -> IMP::ModelObjectsTemp"""
9920  return _IMP_core.MinimumRestraint_do_get_inputs(self)
9921 
9922  def get_version_info(self):
9923  r"""get_version_info(MinimumRestraint self) -> VersionInfo"""
9924  return _IMP_core.MinimumRestraint_get_version_info(self)
9925  __swig_destroy__ = _IMP_core.delete_MinimumRestraint
9926  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)
9927  def __set_restraints(self, obj): IMP._list_util.set_varlist(self.restraints, obj)
9928  def __del_restraints(self): IMP._list_util.del_varlist(self.restraints)
9929  restraints = property(__get_restraints, __set_restraints, __del_restraints, doc="List of ##ucnames")
9930 
9931  def remove_restraint(self, d):
9932  r"""remove_restraint(MinimumRestraint self, Restraint d)"""
9933  return _IMP_core.MinimumRestraint_remove_restraint(self, d)
9934 
9935  def _python_index_restraint(self, d, start, stop):
9936  r"""_python_index_restraint(MinimumRestraint self, Restraint d, unsigned int start, unsigned int stop) -> unsigned int"""
9937  return _IMP_core.MinimumRestraint__python_index_restraint(self, d, start, stop)
9938 
9939  def remove_restraints(self, d):
9940  r"""remove_restraints(MinimumRestraint self, IMP::Restraints const & d)"""
9941  return _IMP_core.MinimumRestraint_remove_restraints(self, d)
9942 
9943  def set_restraints(self, ps):
9944  r"""set_restraints(MinimumRestraint self, IMP::Restraints const & ps)"""
9945  return _IMP_core.MinimumRestraint_set_restraints(self, ps)
9946 
9947  def set_restraints_order(self, objs):
9948  r"""set_restraints_order(MinimumRestraint self, IMP::Restraints const & objs)"""
9949  return _IMP_core.MinimumRestraint_set_restraints_order(self, objs)
9950 
9951  def add_restraint(self, obj):
9952  r"""add_restraint(MinimumRestraint self, Restraint obj) -> unsigned int"""
9953  return _IMP_core.MinimumRestraint_add_restraint(self, obj)
9954 
9955  def add_restraints(self, objs):
9956  r"""add_restraints(MinimumRestraint self, IMP::Restraints const & objs)"""
9957  return _IMP_core.MinimumRestraint_add_restraints(self, objs)
9958 
9959  def clear_restraints(self):
9960  r"""clear_restraints(MinimumRestraint self)"""
9961  return _IMP_core.MinimumRestraint_clear_restraints(self)
9962 
9963  def get_number_of_restraints(self):
9964  r"""get_number_of_restraints(MinimumRestraint self) -> unsigned int"""
9965  return _IMP_core.MinimumRestraint_get_number_of_restraints(self)
9966 
9967  def get_has_restraints(self):
9968  r"""get_has_restraints(MinimumRestraint self) -> bool"""
9969  return _IMP_core.MinimumRestraint_get_has_restraints(self)
9970 
9971  def get_restraint(self, i):
9972  r"""get_restraint(MinimumRestraint self, unsigned int i) -> Restraint"""
9973  return _IMP_core.MinimumRestraint_get_restraint(self, i)
9974 
9975  def get_restraints(self):
9976  r"""get_restraints(MinimumRestraint self) -> IMP::Restraints"""
9977  return _IMP_core.MinimumRestraint_get_restraints(self)
9978 
9979  def erase_restraint(self, i):
9980  r"""erase_restraint(MinimumRestraint self, unsigned int i)"""
9981  return _IMP_core.MinimumRestraint_erase_restraint(self, i)
9982 
9983  def reserve_restraints(self, sz):
9984  r"""reserve_restraints(MinimumRestraint self, unsigned int sz)"""
9985  return _IMP_core.MinimumRestraint_reserve_restraints(self, sz)
9986 
9987  def __str__(self):
9988  r"""__str__(MinimumRestraint self) -> std::string"""
9989  return _IMP_core.MinimumRestraint___str__(self)
9990 
9991  def __repr__(self):
9992  r"""__repr__(MinimumRestraint self) -> std::string"""
9993  return _IMP_core.MinimumRestraint___repr__(self)
9994 
9995  @staticmethod
9996  def get_from(o):
9997  return _object_cast_to_MinimumRestraint(o)
9998 
9999 
10000 # Register MinimumRestraint in _IMP_core:
10001 _IMP_core.MinimumRestraint_swigregister(MinimumRestraint)
10002 class Gaussian(RigidBody):
10003  r"""Proxy of C++ IMP::core::Gaussian 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, *args):
10008  r"""
10009  __init__(Gaussian self) -> Gaussian
10010  __init__(Gaussian self, Model m, ParticleIndex id) -> Gaussian
10011  __init__(Gaussian self, _ParticleAdaptor d) -> Gaussian
10012  """
10013  _IMP_core.Gaussian_swiginit(self, _IMP_core.new_Gaussian(*args))
10014 
10015  def show(self, *args):
10016  r"""show(Gaussian self, _ostream out=std::cout)"""
10017  return _IMP_core.Gaussian_show(self, *args)
10018 
10019  @staticmethod
10020  def setup_particle(*args):
10021  r"""
10022  setup_particle(Model m, ParticleIndex pi) -> Gaussian
10023  setup_particle(_ParticleAdaptor pa) -> Gaussian
10024  setup_particle(Model m, ParticleIndex pi, Gaussian3D g) -> Gaussian
10025  setup_particle(_ParticleAdaptor pa, Gaussian3D g) -> Gaussian
10026  """
10027  return _IMP_core.Gaussian_setup_particle(*args)
10028 
10029  @staticmethod
10030  def get_local_covariance_key():
10031  r"""get_local_covariance_key() -> ObjectKey"""
10032  return _IMP_core.Gaussian_get_local_covariance_key()
10033 
10034  @staticmethod
10035  def get_global_covariance_key():
10036  r"""get_global_covariance_key() -> ObjectKey"""
10037  return _IMP_core.Gaussian_get_global_covariance_key()
10038 
10039  @staticmethod
10040  def get_is_setup(*args):
10041  r"""
10042  get_is_setup(_ParticleAdaptor p) -> bool
10043  get_is_setup(Model m, ParticleIndex pi) -> bool
10044  """
10045  return _IMP_core.Gaussian_get_is_setup(*args)
10046 
10047  def get_local_covariance(self):
10048  r"""get_local_covariance(Gaussian self) -> Eigen::Matrix3d"""
10049  return _IMP_core.Gaussian_get_local_covariance(self)
10050 
10051  def get_variances(self):
10052  r"""get_variances(Gaussian self) -> Vector3D"""
10053  return _IMP_core.Gaussian_get_variances(self)
10054 
10055  def get_global_covariance(self):
10056  r"""get_global_covariance(Gaussian self) -> Eigen::Matrix3d"""
10057  return _IMP_core.Gaussian_get_global_covariance(self)
10058 
10059  def get_gaussian(self):
10060  r"""get_gaussian(Gaussian self) -> Gaussian3D"""
10061  return _IMP_core.Gaussian_get_gaussian(self)
10062 
10063  def set_gaussian(self, g):
10064  r"""set_gaussian(Gaussian self, Gaussian3D g)"""
10065  return _IMP_core.Gaussian_set_gaussian(self, g)
10066 
10067  def set_local_covariance(self, covar):
10068  r"""set_local_covariance(Gaussian self, Eigen::Vector3d const covar)"""
10069  return _IMP_core.Gaussian_set_local_covariance(self, covar)
10070 
10071  def set_variances(self, v):
10072  r"""set_variances(Gaussian self, Vector3D v)"""
10073  return _IMP_core.Gaussian_set_variances(self, v)
10074 
10075  def set_global_covariance(self, covar):
10076  r"""set_global_covariance(Gaussian self, Eigen::Matrix3d covar)"""
10077  return _IMP_core.Gaussian_set_global_covariance(self, covar)
10078 
10079  def update_global_covariance(self):
10080  r"""update_global_covariance(Gaussian self)"""
10081  return _IMP_core.Gaussian_update_global_covariance(self)
10082 
10083  def add_attribute(self, *args):
10084  r"""
10085  add_attribute(Gaussian self, FloatKey k, IMP::Float v, bool opt)
10086  add_attribute(Gaussian self, FloatKey a0, IMP::Float a1)
10087  add_attribute(Gaussian self, IntKey a0, IMP::Int a1)
10088  add_attribute(Gaussian self, FloatsKey a0, IMP::Floats a1)
10089  add_attribute(Gaussian self, IntsKey a0, IMP::Ints a1)
10090  add_attribute(Gaussian self, StringKey a0, IMP::String a1)
10091  add_attribute(Gaussian self, ParticleIndexKey a0, Particle a1)
10092  add_attribute(Gaussian self, ObjectKey a0, Object a1)
10093  """
10094  return _IMP_core.Gaussian_add_attribute(self, *args)
10095 
10096  def get_value(self, *args):
10097  r"""
10098  get_value(Gaussian self, FloatKey a0) -> IMP::Float
10099  get_value(Gaussian self, IntKey a0) -> IMP::Int
10100  get_value(Gaussian self, FloatsKey a0) -> IMP::Floats
10101  get_value(Gaussian self, IntsKey a0) -> IMP::Ints
10102  get_value(Gaussian self, StringKey a0) -> IMP::String
10103  get_value(Gaussian self, ParticleIndexKey a0) -> Particle
10104  get_value(Gaussian self, ObjectKey a0) -> Object
10105  """
10106  return _IMP_core.Gaussian_get_value(self, *args)
10107 
10108  def set_value(self, *args):
10109  r"""
10110  set_value(Gaussian self, FloatKey a0, IMP::Float a1)
10111  set_value(Gaussian self, IntKey a0, IMP::Int a1)
10112  set_value(Gaussian self, FloatsKey a0, IMP::Floats a1)
10113  set_value(Gaussian self, IntsKey a0, IMP::Ints a1)
10114  set_value(Gaussian self, StringKey a0, IMP::String a1)
10115  set_value(Gaussian self, ParticleIndexKey a0, Particle a1)
10116  set_value(Gaussian self, ObjectKey a0, Object a1)
10117  """
10118  return _IMP_core.Gaussian_set_value(self, *args)
10119 
10120  def remove_attribute(self, *args):
10121  r"""
10122  remove_attribute(Gaussian self, FloatKey a0)
10123  remove_attribute(Gaussian self, IntKey a0)
10124  remove_attribute(Gaussian self, FloatsKey a0)
10125  remove_attribute(Gaussian self, IntsKey a0)
10126  remove_attribute(Gaussian self, StringKey a0)
10127  remove_attribute(Gaussian self, ParticleIndexKey a0)
10128  remove_attribute(Gaussian self, ObjectKey a0)
10129  """
10130  return _IMP_core.Gaussian_remove_attribute(self, *args)
10131 
10132  def has_attribute(self, *args):
10133  r"""
10134  has_attribute(Gaussian self, FloatKey a0) -> bool
10135  has_attribute(Gaussian self, IntKey a0) -> bool
10136  has_attribute(Gaussian self, FloatsKey a0) -> bool
10137  has_attribute(Gaussian self, IntsKey a0) -> bool
10138  has_attribute(Gaussian self, StringKey a0) -> bool
10139  has_attribute(Gaussian self, ParticleIndexKey a0) -> bool
10140  has_attribute(Gaussian self, ObjectKey a0) -> bool
10141  """
10142  return _IMP_core.Gaussian_has_attribute(self, *args)
10143 
10144  def get_derivative(self, a0):
10145  r"""get_derivative(Gaussian self, FloatKey a0) -> double"""
10146  return _IMP_core.Gaussian_get_derivative(self, a0)
10147 
10148  def get_name(self):
10149  r"""get_name(Gaussian self) -> std::string"""
10150  return _IMP_core.Gaussian_get_name(self)
10151 
10152  def clear_caches(self):
10153  r"""clear_caches(Gaussian self)"""
10154  return _IMP_core.Gaussian_clear_caches(self)
10155 
10156  def set_name(self, a0):
10157  r"""set_name(Gaussian self, std::string a0)"""
10158  return _IMP_core.Gaussian_set_name(self, a0)
10159 
10160  def set_check_level(self, a0):
10161  r"""set_check_level(Gaussian self, IMP::CheckLevel a0)"""
10162  return _IMP_core.Gaussian_set_check_level(self, a0)
10163 
10164  def add_to_derivative(self, a0, a1, a2):
10165  r"""add_to_derivative(Gaussian self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
10166  return _IMP_core.Gaussian_add_to_derivative(self, a0, a1, a2)
10167 
10168  def set_is_optimized(self, a0, a1):
10169  r"""set_is_optimized(Gaussian self, FloatKey a0, bool a1)"""
10170  return _IMP_core.Gaussian_set_is_optimized(self, a0, a1)
10171 
10172  def get_is_optimized(self, a0):
10173  r"""get_is_optimized(Gaussian self, FloatKey a0) -> bool"""
10174  return _IMP_core.Gaussian_get_is_optimized(self, a0)
10175 
10176  def get_check_level(self):
10177  r"""get_check_level(Gaussian self) -> IMP::CheckLevel"""
10178  return _IMP_core.Gaussian_get_check_level(self)
10179 
10180  def __eq__(self, *args):
10181  r"""
10182  __eq__(Gaussian self, Gaussian o) -> bool
10183  __eq__(Gaussian self, Particle d) -> bool
10184  """
10185  return _IMP_core.Gaussian___eq__(self, *args)
10186 
10187  def __ne__(self, *args):
10188  r"""
10189  __ne__(Gaussian self, Gaussian o) -> bool
10190  __ne__(Gaussian self, Particle d) -> bool
10191  """
10192  return _IMP_core.Gaussian___ne__(self, *args)
10193 
10194  def __le__(self, *args):
10195  r"""
10196  __le__(Gaussian self, Gaussian o) -> bool
10197  __le__(Gaussian self, Particle d) -> bool
10198  """
10199  return _IMP_core.Gaussian___le__(self, *args)
10200 
10201  def __lt__(self, *args):
10202  r"""
10203  __lt__(Gaussian self, Gaussian o) -> bool
10204  __lt__(Gaussian self, Particle d) -> bool
10205  """
10206  return _IMP_core.Gaussian___lt__(self, *args)
10207 
10208  def __ge__(self, *args):
10209  r"""
10210  __ge__(Gaussian self, Gaussian o) -> bool
10211  __ge__(Gaussian self, Particle d) -> bool
10212  """
10213  return _IMP_core.Gaussian___ge__(self, *args)
10214 
10215  def __gt__(self, *args):
10216  r"""
10217  __gt__(Gaussian self, Gaussian o) -> bool
10218  __gt__(Gaussian self, Particle d) -> bool
10219  """
10220  return _IMP_core.Gaussian___gt__(self, *args)
10221 
10222  def __hash__(self):
10223  r"""__hash__(Gaussian self) -> std::size_t"""
10224  return _IMP_core.Gaussian___hash__(self)
10225 
10226  def __str__(self):
10227  r"""__str__(Gaussian self) -> std::string"""
10228  return _IMP_core.Gaussian___str__(self)
10229 
10230  def __repr__(self):
10231  r"""__repr__(Gaussian self) -> std::string"""
10232  return _IMP_core.Gaussian___repr__(self)
10233 
10234  def _get_as_binary(self):
10235  r"""_get_as_binary(Gaussian self) -> PyObject *"""
10236  return _IMP_core.Gaussian__get_as_binary(self)
10237 
10238  def _set_from_binary(self, p):
10239  r"""_set_from_binary(Gaussian self, PyObject * p)"""
10240  return _IMP_core.Gaussian__set_from_binary(self, p)
10241 
10242  def __getstate__(self):
10243  p = self._get_as_binary()
10244  if len(self.__dict__) > 1:
10245  d = self.__dict__.copy()
10246  del d['this']
10247  p = (d, p)
10248  return p
10249 
10250  def __setstate__(self, p):
10251  if not hasattr(self, 'this'):
10252  self.__init__()
10253  if isinstance(p, tuple):
10254  d, p = p
10255  self.__dict__.update(d)
10256  return self._set_from_binary(p)
10257 
10258  __swig_destroy__ = _IMP_core.delete_Gaussian
10259 
10260 # Register Gaussian in _IMP_core:
10261 _IMP_core.Gaussian_swigregister(Gaussian)
10262 class PairRestraint(IMP.Restraint):
10263  r"""Proxy of C++ IMP::core::PairRestraint class."""
10264 
10265  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10266 
10267  def __init__(self, *args):
10268  r"""
10269  __init__(PairRestraint self, Model m, PairScore ss, IMP::ParticleIndexPair const & vt, std::string name="PairRestraint %1%") -> PairRestraint
10270  __init__(PairRestraint self) -> PairRestraint
10271  """
10272  _IMP_core.PairRestraint_swiginit(self, _IMP_core.new_PairRestraint(*args))
10273 
10274  def get_version_info(self):
10275  r"""get_version_info(PairRestraint self) -> VersionInfo"""
10276  return _IMP_core.PairRestraint_get_version_info(self)
10277  __swig_destroy__ = _IMP_core.delete_PairRestraint
10278 
10279  def __str__(self):
10280  r"""__str__(PairRestraint self) -> std::string"""
10281  return _IMP_core.PairRestraint___str__(self)
10282 
10283  def __repr__(self):
10284  r"""__repr__(PairRestraint self) -> std::string"""
10285  return _IMP_core.PairRestraint___repr__(self)
10286 
10287  @staticmethod
10288  def get_from(o):
10289  return _object_cast_to_PairRestraint(o)
10290 
10291 
10292  def _get_as_binary(self):
10293  r"""_get_as_binary(PairRestraint self) -> PyObject *"""
10294  return _IMP_core.PairRestraint__get_as_binary(self)
10295 
10296  def _set_from_binary(self, p):
10297  r"""_set_from_binary(PairRestraint self, PyObject * p)"""
10298  return _IMP_core.PairRestraint__set_from_binary(self, p)
10299 
10300  def __getstate__(self):
10301  p = self._get_as_binary()
10302  if len(self.__dict__) > 1:
10303  d = self.__dict__.copy()
10304  del d['this']
10305  p = (d, p)
10306  return p
10307 
10308  def __setstate__(self, p):
10309  if not hasattr(self, 'this'):
10310  self.__init__()
10311  if isinstance(p, tuple):
10312  d, p = p
10313  self.__dict__.update(d)
10314  return self._set_from_binary(p)
10315 
10316 
10317 # Register PairRestraint in _IMP_core:
10318 _IMP_core.PairRestraint_swigregister(PairRestraint)
10319 class SingletonRestraint(IMP.Restraint):
10320  r"""Proxy of C++ IMP::core::SingletonRestraint class."""
10321 
10322  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10323 
10324  def __init__(self, *args):
10325  r"""
10326  __init__(SingletonRestraint self, Model m, SingletonScore ss, ParticleIndex vt, std::string name="SingletonRestraint %1%") -> SingletonRestraint
10327  __init__(SingletonRestraint self) -> SingletonRestraint
10328  """
10329  _IMP_core.SingletonRestraint_swiginit(self, _IMP_core.new_SingletonRestraint(*args))
10330 
10331  def get_version_info(self):
10332  r"""get_version_info(SingletonRestraint self) -> VersionInfo"""
10333  return _IMP_core.SingletonRestraint_get_version_info(self)
10334  __swig_destroy__ = _IMP_core.delete_SingletonRestraint
10335 
10336  def __str__(self):
10337  r"""__str__(SingletonRestraint self) -> std::string"""
10338  return _IMP_core.SingletonRestraint___str__(self)
10339 
10340  def __repr__(self):
10341  r"""__repr__(SingletonRestraint self) -> std::string"""
10342  return _IMP_core.SingletonRestraint___repr__(self)
10343 
10344  @staticmethod
10345  def get_from(o):
10346  return _object_cast_to_SingletonRestraint(o)
10347 
10348 
10349  def _get_as_binary(self):
10350  r"""_get_as_binary(SingletonRestraint self) -> PyObject *"""
10351  return _IMP_core.SingletonRestraint__get_as_binary(self)
10352 
10353  def _set_from_binary(self, p):
10354  r"""_set_from_binary(SingletonRestraint self, PyObject * p)"""
10355  return _IMP_core.SingletonRestraint__set_from_binary(self, p)
10356 
10357  def __getstate__(self):
10358  p = self._get_as_binary()
10359  if len(self.__dict__) > 1:
10360  d = self.__dict__.copy()
10361  del d['this']
10362  p = (d, p)
10363  return p
10364 
10365  def __setstate__(self, p):
10366  if not hasattr(self, 'this'):
10367  self.__init__()
10368  if isinstance(p, tuple):
10369  d, p = p
10370  self.__dict__.update(d)
10371  return self._set_from_binary(p)
10372 
10373 
10374 # Register SingletonRestraint in _IMP_core:
10375 _IMP_core.SingletonRestraint_swigregister(SingletonRestraint)
10376 class TripletRestraint(IMP.Restraint):
10377  r"""Proxy of C++ IMP::core::TripletRestraint class."""
10378 
10379  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10380 
10381  def __init__(self, *args):
10382  r"""
10383  __init__(TripletRestraint self, Model m, TripletScore ss, IMP::ParticleIndexTriplet const & vt, std::string name="TripletRestraint %1%") -> TripletRestraint
10384  __init__(TripletRestraint self) -> TripletRestraint
10385  """
10386  _IMP_core.TripletRestraint_swiginit(self, _IMP_core.new_TripletRestraint(*args))
10387 
10388  def get_version_info(self):
10389  r"""get_version_info(TripletRestraint self) -> VersionInfo"""
10390  return _IMP_core.TripletRestraint_get_version_info(self)
10391  __swig_destroy__ = _IMP_core.delete_TripletRestraint
10392 
10393  def __str__(self):
10394  r"""__str__(TripletRestraint self) -> std::string"""
10395  return _IMP_core.TripletRestraint___str__(self)
10396 
10397  def __repr__(self):
10398  r"""__repr__(TripletRestraint self) -> std::string"""
10399  return _IMP_core.TripletRestraint___repr__(self)
10400 
10401  @staticmethod
10402  def get_from(o):
10403  return _object_cast_to_TripletRestraint(o)
10404 
10405 
10406  def _get_as_binary(self):
10407  r"""_get_as_binary(TripletRestraint self) -> PyObject *"""
10408  return _IMP_core.TripletRestraint__get_as_binary(self)
10409 
10410  def _set_from_binary(self, p):
10411  r"""_set_from_binary(TripletRestraint self, PyObject * p)"""
10412  return _IMP_core.TripletRestraint__set_from_binary(self, p)
10413 
10414  def __getstate__(self):
10415  p = self._get_as_binary()
10416  if len(self.__dict__) > 1:
10417  d = self.__dict__.copy()
10418  del d['this']
10419  p = (d, p)
10420  return p
10421 
10422  def __setstate__(self, p):
10423  if not hasattr(self, 'this'):
10424  self.__init__()
10425  if isinstance(p, tuple):
10426  d, p = p
10427  self.__dict__.update(d)
10428  return self._set_from_binary(p)
10429 
10430 
10431 # Register TripletRestraint in _IMP_core:
10432 _IMP_core.TripletRestraint_swigregister(TripletRestraint)
10433 class QuadRestraint(IMP.Restraint):
10434  r"""Proxy of C++ IMP::core::QuadRestraint class."""
10435 
10436  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10437 
10438  def __init__(self, *args):
10439  r"""
10440  __init__(QuadRestraint self, Model m, QuadScore ss, IMP::ParticleIndexQuad const & vt, std::string name="QuadRestraint %1%") -> QuadRestraint
10441  __init__(QuadRestraint self) -> QuadRestraint
10442  """
10443  _IMP_core.QuadRestraint_swiginit(self, _IMP_core.new_QuadRestraint(*args))
10444 
10445  def get_version_info(self):
10446  r"""get_version_info(QuadRestraint self) -> VersionInfo"""
10447  return _IMP_core.QuadRestraint_get_version_info(self)
10448  __swig_destroy__ = _IMP_core.delete_QuadRestraint
10449 
10450  def __str__(self):
10451  r"""__str__(QuadRestraint self) -> std::string"""
10452  return _IMP_core.QuadRestraint___str__(self)
10453 
10454  def __repr__(self):
10455  r"""__repr__(QuadRestraint self) -> std::string"""
10456  return _IMP_core.QuadRestraint___repr__(self)
10457 
10458  @staticmethod
10459  def get_from(o):
10460  return _object_cast_to_QuadRestraint(o)
10461 
10462 
10463  def _get_as_binary(self):
10464  r"""_get_as_binary(QuadRestraint self) -> PyObject *"""
10465  return _IMP_core.QuadRestraint__get_as_binary(self)
10466 
10467  def _set_from_binary(self, p):
10468  r"""_set_from_binary(QuadRestraint self, PyObject * p)"""
10469  return _IMP_core.QuadRestraint__set_from_binary(self, p)
10470 
10471  def __getstate__(self):
10472  p = self._get_as_binary()
10473  if len(self.__dict__) > 1:
10474  d = self.__dict__.copy()
10475  del d['this']
10476  p = (d, p)
10477  return p
10478 
10479  def __setstate__(self, p):
10480  if not hasattr(self, 'this'):
10481  self.__init__()
10482  if isinstance(p, tuple):
10483  d, p = p
10484  self.__dict__.update(d)
10485  return self._set_from_binary(p)
10486 
10487 
10488 # Register QuadRestraint in _IMP_core:
10489 _IMP_core.QuadRestraint_swigregister(QuadRestraint)
10490 class SingletonConstraint(IMP.Constraint):
10491  r"""Proxy of C++ IMP::core::SingletonConstraint class."""
10492 
10493  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10494 
10495  def __init__(self, *args):
10496  r"""
10497  __init__(SingletonConstraint self, SingletonModifier before, SingletonModifier after, Model m, ParticleIndex vt, std::string name="SingletonConstraint %1%", bool can_skip=False) -> SingletonConstraint
10498  __init__(SingletonConstraint self) -> SingletonConstraint
10499  """
10500  _IMP_core.SingletonConstraint_swiginit(self, _IMP_core.new_SingletonConstraint(*args))
10501 
10502  def get_version_info(self):
10503  r"""get_version_info(SingletonConstraint self) -> VersionInfo"""
10504  return _IMP_core.SingletonConstraint_get_version_info(self)
10505  __swig_destroy__ = _IMP_core.delete_SingletonConstraint
10506 
10507  def __str__(self):
10508  r"""__str__(SingletonConstraint self) -> std::string"""
10509  return _IMP_core.SingletonConstraint___str__(self)
10510 
10511  def __repr__(self):
10512  r"""__repr__(SingletonConstraint self) -> std::string"""
10513  return _IMP_core.SingletonConstraint___repr__(self)
10514 
10515  @staticmethod
10516  def get_from(o):
10517  return _object_cast_to_SingletonConstraint(o)
10518 
10519 
10520  def _get_as_binary(self):
10521  r"""_get_as_binary(SingletonConstraint self) -> PyObject *"""
10522  return _IMP_core.SingletonConstraint__get_as_binary(self)
10523 
10524  def _set_from_binary(self, p):
10525  r"""_set_from_binary(SingletonConstraint self, PyObject * p)"""
10526  return _IMP_core.SingletonConstraint__set_from_binary(self, p)
10527 
10528  def __getstate__(self):
10529  p = self._get_as_binary()
10530  if len(self.__dict__) > 1:
10531  d = self.__dict__.copy()
10532  del d['this']
10533  p = (d, p)
10534  return p
10535 
10536  def __setstate__(self, p):
10537  if not hasattr(self, 'this'):
10538  self.__init__()
10539  if isinstance(p, tuple):
10540  d, p = p
10541  self.__dict__.update(d)
10542  return self._set_from_binary(p)
10543 
10544 
10545 # Register SingletonConstraint in _IMP_core:
10546 _IMP_core.SingletonConstraint_swigregister(SingletonConstraint)
10547 class PairConstraint(IMP.Constraint):
10548  r"""Proxy of C++ IMP::core::PairConstraint class."""
10549 
10550  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10551 
10552  def __init__(self, *args):
10553  r"""
10554  __init__(PairConstraint self, PairModifier before, PairModifier after, Model m, IMP::ParticleIndexPair const & vt, std::string name="PairConstraint %1%", bool can_skip=False) -> PairConstraint
10555  __init__(PairConstraint self) -> PairConstraint
10556  """
10557  _IMP_core.PairConstraint_swiginit(self, _IMP_core.new_PairConstraint(*args))
10558 
10559  def get_version_info(self):
10560  r"""get_version_info(PairConstraint self) -> VersionInfo"""
10561  return _IMP_core.PairConstraint_get_version_info(self)
10562  __swig_destroy__ = _IMP_core.delete_PairConstraint
10563 
10564  def __str__(self):
10565  r"""__str__(PairConstraint self) -> std::string"""
10566  return _IMP_core.PairConstraint___str__(self)
10567 
10568  def __repr__(self):
10569  r"""__repr__(PairConstraint self) -> std::string"""
10570  return _IMP_core.PairConstraint___repr__(self)
10571 
10572  @staticmethod
10573  def get_from(o):
10574  return _object_cast_to_PairConstraint(o)
10575 
10576 
10577  def _get_as_binary(self):
10578  r"""_get_as_binary(PairConstraint self) -> PyObject *"""
10579  return _IMP_core.PairConstraint__get_as_binary(self)
10580 
10581  def _set_from_binary(self, p):
10582  r"""_set_from_binary(PairConstraint self, PyObject * p)"""
10583  return _IMP_core.PairConstraint__set_from_binary(self, p)
10584 
10585  def __getstate__(self):
10586  p = self._get_as_binary()
10587  if len(self.__dict__) > 1:
10588  d = self.__dict__.copy()
10589  del d['this']
10590  p = (d, p)
10591  return p
10592 
10593  def __setstate__(self, p):
10594  if not hasattr(self, 'this'):
10595  self.__init__()
10596  if isinstance(p, tuple):
10597  d, p = p
10598  self.__dict__.update(d)
10599  return self._set_from_binary(p)
10600 
10601 
10602 # Register PairConstraint in _IMP_core:
10603 _IMP_core.PairConstraint_swigregister(PairConstraint)
10604 class TripletConstraint(IMP.Constraint):
10605  r"""Proxy of C++ IMP::core::TripletConstraint class."""
10606 
10607  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10608 
10609  def __init__(self, *args):
10610  r"""
10611  __init__(TripletConstraint self, TripletModifier before, TripletModifier after, Model m, IMP::ParticleIndexTriplet const & vt, std::string name="TripletConstraint %1%", bool can_skip=False) -> TripletConstraint
10612  __init__(TripletConstraint self) -> TripletConstraint
10613  """
10614  _IMP_core.TripletConstraint_swiginit(self, _IMP_core.new_TripletConstraint(*args))
10615 
10616  def get_version_info(self):
10617  r"""get_version_info(TripletConstraint self) -> VersionInfo"""
10618  return _IMP_core.TripletConstraint_get_version_info(self)
10619  __swig_destroy__ = _IMP_core.delete_TripletConstraint
10620 
10621  def __str__(self):
10622  r"""__str__(TripletConstraint self) -> std::string"""
10623  return _IMP_core.TripletConstraint___str__(self)
10624 
10625  def __repr__(self):
10626  r"""__repr__(TripletConstraint self) -> std::string"""
10627  return _IMP_core.TripletConstraint___repr__(self)
10628 
10629  @staticmethod
10630  def get_from(o):
10631  return _object_cast_to_TripletConstraint(o)
10632 
10633 
10634  def _get_as_binary(self):
10635  r"""_get_as_binary(TripletConstraint self) -> PyObject *"""
10636  return _IMP_core.TripletConstraint__get_as_binary(self)
10637 
10638  def _set_from_binary(self, p):
10639  r"""_set_from_binary(TripletConstraint self, PyObject * p)"""
10640  return _IMP_core.TripletConstraint__set_from_binary(self, p)
10641 
10642  def __getstate__(self):
10643  p = self._get_as_binary()
10644  if len(self.__dict__) > 1:
10645  d = self.__dict__.copy()
10646  del d['this']
10647  p = (d, p)
10648  return p
10649 
10650  def __setstate__(self, p):
10651  if not hasattr(self, 'this'):
10652  self.__init__()
10653  if isinstance(p, tuple):
10654  d, p = p
10655  self.__dict__.update(d)
10656  return self._set_from_binary(p)
10657 
10658 
10659 # Register TripletConstraint in _IMP_core:
10660 _IMP_core.TripletConstraint_swigregister(TripletConstraint)
10661 class QuadConstraint(IMP.Constraint):
10662  r"""Proxy of C++ IMP::core::QuadConstraint class."""
10663 
10664  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10665 
10666  def __init__(self, *args):
10667  r"""
10668  __init__(QuadConstraint self, QuadModifier before, QuadModifier after, Model m, IMP::ParticleIndexQuad const & vt, std::string name="QuadConstraint %1%", bool can_skip=False) -> QuadConstraint
10669  __init__(QuadConstraint self) -> QuadConstraint
10670  """
10671  _IMP_core.QuadConstraint_swiginit(self, _IMP_core.new_QuadConstraint(*args))
10672 
10673  def get_version_info(self):
10674  r"""get_version_info(QuadConstraint self) -> VersionInfo"""
10675  return _IMP_core.QuadConstraint_get_version_info(self)
10676  __swig_destroy__ = _IMP_core.delete_QuadConstraint
10677 
10678  def __str__(self):
10679  r"""__str__(QuadConstraint self) -> std::string"""
10680  return _IMP_core.QuadConstraint___str__(self)
10681 
10682  def __repr__(self):
10683  r"""__repr__(QuadConstraint self) -> std::string"""
10684  return _IMP_core.QuadConstraint___repr__(self)
10685 
10686  @staticmethod
10687  def get_from(o):
10688  return _object_cast_to_QuadConstraint(o)
10689 
10690 
10691  def _get_as_binary(self):
10692  r"""_get_as_binary(QuadConstraint self) -> PyObject *"""
10693  return _IMP_core.QuadConstraint__get_as_binary(self)
10694 
10695  def _set_from_binary(self, p):
10696  r"""_set_from_binary(QuadConstraint self, PyObject * p)"""
10697  return _IMP_core.QuadConstraint__set_from_binary(self, p)
10698 
10699  def __getstate__(self):
10700  p = self._get_as_binary()
10701  if len(self.__dict__) > 1:
10702  d = self.__dict__.copy()
10703  del d['this']
10704  p = (d, p)
10705  return p
10706 
10707  def __setstate__(self, p):
10708  if not hasattr(self, 'this'):
10709  self.__init__()
10710  if isinstance(p, tuple):
10711  d, p = p
10712  self.__dict__.update(d)
10713  return self._set_from_binary(p)
10714 
10715 
10716 # Register QuadConstraint in _IMP_core:
10717 _IMP_core.QuadConstraint_swigregister(QuadConstraint)
10718 class ConstantSingletonPredicate(IMP.SingletonPredicate):
10719  r"""Proxy of C++ IMP::core::ConstantSingletonPredicate class."""
10720 
10721  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10722 
10723  def __init__(self, *args):
10724  r"""
10725  __init__(ConstantSingletonPredicate self, int v, std::string name="ConstSingletonPredicate%1%") -> ConstantSingletonPredicate
10726  __init__(ConstantSingletonPredicate self) -> ConstantSingletonPredicate
10727  """
10728  _IMP_core.ConstantSingletonPredicate_swiginit(self, _IMP_core.new_ConstantSingletonPredicate(*args))
10729 
10730  def do_get_inputs(self, arg2, arg3):
10731  r"""do_get_inputs(ConstantSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
10732  return _IMP_core.ConstantSingletonPredicate_do_get_inputs(self, arg2, arg3)
10733 
10734  def get_value(self, *args):
10735  r"""
10736  get_value(ConstantSingletonPredicate self, Particle a) -> int
10737  get_value(ConstantSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
10738  """
10739  return _IMP_core.ConstantSingletonPredicate_get_value(self, *args)
10740 
10741  def get_value_index(self, *args):
10742  r"""
10743  get_value_index(ConstantSingletonPredicate self, Model arg2, ParticleIndex arg3) -> int
10744  get_value_index(ConstantSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
10745  """
10746  return _IMP_core.ConstantSingletonPredicate_get_value_index(self, *args)
10747 
10748  def get_version_info(self):
10749  r"""get_version_info(ConstantSingletonPredicate self) -> VersionInfo"""
10750  return _IMP_core.ConstantSingletonPredicate_get_version_info(self)
10751  __swig_destroy__ = _IMP_core.delete_ConstantSingletonPredicate
10752 
10753  def __str__(self):
10754  r"""__str__(ConstantSingletonPredicate self) -> std::string"""
10755  return _IMP_core.ConstantSingletonPredicate___str__(self)
10756 
10757  def __repr__(self):
10758  r"""__repr__(ConstantSingletonPredicate self) -> std::string"""
10759  return _IMP_core.ConstantSingletonPredicate___repr__(self)
10760 
10761  @staticmethod
10762  def get_from(o):
10763  return _object_cast_to_ConstantSingletonPredicate(o)
10764 
10765 
10766  def _get_as_binary(self):
10767  r"""_get_as_binary(ConstantSingletonPredicate self) -> PyObject *"""
10768  return _IMP_core.ConstantSingletonPredicate__get_as_binary(self)
10769 
10770  def _set_from_binary(self, p):
10771  r"""_set_from_binary(ConstantSingletonPredicate self, PyObject * p)"""
10772  return _IMP_core.ConstantSingletonPredicate__set_from_binary(self, p)
10773 
10774  def __getstate__(self):
10775  p = self._get_as_binary()
10776  if len(self.__dict__) > 1:
10777  d = self.__dict__.copy()
10778  del d['this']
10779  p = (d, p)
10780  return p
10781 
10782  def __setstate__(self, p):
10783  if not hasattr(self, 'this'):
10784  self.__init__()
10785  if isinstance(p, tuple):
10786  d, p = p
10787  self.__dict__.update(d)
10788  return self._set_from_binary(p)
10789 
10790 
10791 # Register ConstantSingletonPredicate in _IMP_core:
10792 _IMP_core.ConstantSingletonPredicate_swigregister(ConstantSingletonPredicate)
10793 class UnorderedTypeSingletonPredicate(IMP.SingletonPredicate):
10794  r"""Proxy of C++ IMP::core::UnorderedTypeSingletonPredicate class."""
10795 
10796  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10797 
10798  def __init__(self, *args):
10799  r"""__init__(UnorderedTypeSingletonPredicate self, std::string name="UnorderedTypeSingletonPredicate%1%") -> UnorderedTypeSingletonPredicate"""
10800  _IMP_core.UnorderedTypeSingletonPredicate_swiginit(self, _IMP_core.new_UnorderedTypeSingletonPredicate(*args))
10801 
10802  def do_get_inputs(self, m, pis):
10803  r"""do_get_inputs(UnorderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10804  return _IMP_core.UnorderedTypeSingletonPredicate_do_get_inputs(self, m, pis)
10805 
10806  def get_value(self, *args):
10807  r"""
10808  get_value(UnorderedTypeSingletonPredicate self, Particle a) -> int
10809  get_value(UnorderedTypeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
10810  """
10811  return _IMP_core.UnorderedTypeSingletonPredicate_get_value(self, *args)
10812 
10813  def get_value_index(self, *args):
10814  r"""
10815  get_value_index(UnorderedTypeSingletonPredicate self, Model m, ParticleIndex pi) -> int
10816  get_value_index(UnorderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
10817  """
10818  return _IMP_core.UnorderedTypeSingletonPredicate_get_value_index(self, *args)
10819 
10820  def get_version_info(self):
10821  r"""get_version_info(UnorderedTypeSingletonPredicate self) -> VersionInfo"""
10822  return _IMP_core.UnorderedTypeSingletonPredicate_get_version_info(self)
10823  __swig_destroy__ = _IMP_core.delete_UnorderedTypeSingletonPredicate
10824 
10825  def __str__(self):
10826  r"""__str__(UnorderedTypeSingletonPredicate self) -> std::string"""
10827  return _IMP_core.UnorderedTypeSingletonPredicate___str__(self)
10828 
10829  def __repr__(self):
10830  r"""__repr__(UnorderedTypeSingletonPredicate self) -> std::string"""
10831  return _IMP_core.UnorderedTypeSingletonPredicate___repr__(self)
10832 
10833  @staticmethod
10834  def get_from(o):
10835  return _object_cast_to_UnorderedTypeSingletonPredicate(o)
10836 
10837 
10838  def _get_as_binary(self):
10839  r"""_get_as_binary(UnorderedTypeSingletonPredicate self) -> PyObject *"""
10840  return _IMP_core.UnorderedTypeSingletonPredicate__get_as_binary(self)
10841 
10842  def _set_from_binary(self, p):
10843  r"""_set_from_binary(UnorderedTypeSingletonPredicate self, PyObject * p)"""
10844  return _IMP_core.UnorderedTypeSingletonPredicate__set_from_binary(self, p)
10845 
10846  def __getstate__(self):
10847  p = self._get_as_binary()
10848  if len(self.__dict__) > 1:
10849  d = self.__dict__.copy()
10850  del d['this']
10851  p = (d, p)
10852  return p
10853 
10854  def __setstate__(self, p):
10855  if not hasattr(self, 'this'):
10856  self.__init__()
10857  if isinstance(p, tuple):
10858  d, p = p
10859  self.__dict__.update(d)
10860  return self._set_from_binary(p)
10861 
10862 
10863 # Register UnorderedTypeSingletonPredicate in _IMP_core:
10864 _IMP_core.UnorderedTypeSingletonPredicate_swigregister(UnorderedTypeSingletonPredicate)
10865 class OrderedTypeSingletonPredicate(IMP.SingletonPredicate):
10866  r"""Proxy of C++ IMP::core::OrderedTypeSingletonPredicate class."""
10867 
10868  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10869 
10870  def __init__(self, *args):
10871  r"""__init__(OrderedTypeSingletonPredicate self, std::string name="OrderedTypeSingletonPredicate%1%") -> OrderedTypeSingletonPredicate"""
10872  _IMP_core.OrderedTypeSingletonPredicate_swiginit(self, _IMP_core.new_OrderedTypeSingletonPredicate(*args))
10873 
10874  def do_get_inputs(self, m, pis):
10875  r"""do_get_inputs(OrderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10876  return _IMP_core.OrderedTypeSingletonPredicate_do_get_inputs(self, m, pis)
10877 
10878  def get_value(self, *args):
10879  r"""
10880  get_value(OrderedTypeSingletonPredicate self, IMP::core::ParticleTypes const & types) -> int
10881  get_value(OrderedTypeSingletonPredicate self, Particle a) -> int
10882  get_value(OrderedTypeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
10883  """
10884  return _IMP_core.OrderedTypeSingletonPredicate_get_value(self, *args)
10885 
10886  def get_value_index(self, *args):
10887  r"""
10888  get_value_index(OrderedTypeSingletonPredicate self, Model m, ParticleIndex pi) -> int
10889  get_value_index(OrderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
10890  """
10891  return _IMP_core.OrderedTypeSingletonPredicate_get_value_index(self, *args)
10892 
10893  def get_version_info(self):
10894  r"""get_version_info(OrderedTypeSingletonPredicate self) -> VersionInfo"""
10895  return _IMP_core.OrderedTypeSingletonPredicate_get_version_info(self)
10896  __swig_destroy__ = _IMP_core.delete_OrderedTypeSingletonPredicate
10897 
10898  def __str__(self):
10899  r"""__str__(OrderedTypeSingletonPredicate self) -> std::string"""
10900  return _IMP_core.OrderedTypeSingletonPredicate___str__(self)
10901 
10902  def __repr__(self):
10903  r"""__repr__(OrderedTypeSingletonPredicate self) -> std::string"""
10904  return _IMP_core.OrderedTypeSingletonPredicate___repr__(self)
10905 
10906  @staticmethod
10907  def get_from(o):
10908  return _object_cast_to_OrderedTypeSingletonPredicate(o)
10909 
10910 
10911 # Register OrderedTypeSingletonPredicate in _IMP_core:
10912 _IMP_core.OrderedTypeSingletonPredicate_swigregister(OrderedTypeSingletonPredicate)
10913 class AllSameSingletonPredicate(IMP.SingletonPredicate):
10914  r"""Proxy of C++ IMP::core::AllSameSingletonPredicate class."""
10915 
10916  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10917 
10918  def __init__(self, *args):
10919  r"""__init__(AllSameSingletonPredicate self, std::string name="AllSameSingletonPredicate%1%") -> AllSameSingletonPredicate"""
10920  _IMP_core.AllSameSingletonPredicate_swiginit(self, _IMP_core.new_AllSameSingletonPredicate(*args))
10921 
10922  def do_get_inputs(self, arg2, arg3):
10923  r"""do_get_inputs(AllSameSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
10924  return _IMP_core.AllSameSingletonPredicate_do_get_inputs(self, arg2, arg3)
10925 
10926  def get_value(self, *args):
10927  r"""
10928  get_value(AllSameSingletonPredicate self, Particle a) -> int
10929  get_value(AllSameSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
10930  """
10931  return _IMP_core.AllSameSingletonPredicate_get_value(self, *args)
10932 
10933  def get_value_index(self, *args):
10934  r"""
10935  get_value_index(AllSameSingletonPredicate self, Model m, ParticleIndex pi) -> int
10936  get_value_index(AllSameSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
10937  """
10938  return _IMP_core.AllSameSingletonPredicate_get_value_index(self, *args)
10939 
10940  def get_version_info(self):
10941  r"""get_version_info(AllSameSingletonPredicate self) -> VersionInfo"""
10942  return _IMP_core.AllSameSingletonPredicate_get_version_info(self)
10943  __swig_destroy__ = _IMP_core.delete_AllSameSingletonPredicate
10944 
10945  def __str__(self):
10946  r"""__str__(AllSameSingletonPredicate self) -> std::string"""
10947  return _IMP_core.AllSameSingletonPredicate___str__(self)
10948 
10949  def __repr__(self):
10950  r"""__repr__(AllSameSingletonPredicate self) -> std::string"""
10951  return _IMP_core.AllSameSingletonPredicate___repr__(self)
10952 
10953  @staticmethod
10954  def get_from(o):
10955  return _object_cast_to_AllSameSingletonPredicate(o)
10956 
10957 
10958  def _get_as_binary(self):
10959  r"""_get_as_binary(AllSameSingletonPredicate self) -> PyObject *"""
10960  return _IMP_core.AllSameSingletonPredicate__get_as_binary(self)
10961 
10962  def _set_from_binary(self, p):
10963  r"""_set_from_binary(AllSameSingletonPredicate self, PyObject * p)"""
10964  return _IMP_core.AllSameSingletonPredicate__set_from_binary(self, p)
10965 
10966  def __getstate__(self):
10967  p = self._get_as_binary()
10968  if len(self.__dict__) > 1:
10969  d = self.__dict__.copy()
10970  del d['this']
10971  p = (d, p)
10972  return p
10973 
10974  def __setstate__(self, p):
10975  if not hasattr(self, 'this'):
10976  self.__init__()
10977  if isinstance(p, tuple):
10978  d, p = p
10979  self.__dict__.update(d)
10980  return self._set_from_binary(p)
10981 
10982 
10983 # Register AllSameSingletonPredicate in _IMP_core:
10984 _IMP_core.AllSameSingletonPredicate_swigregister(AllSameSingletonPredicate)
10985 class CoinFlipSingletonPredicate(IMP.SingletonPredicate):
10986  r"""Proxy of C++ IMP::core::CoinFlipSingletonPredicate class."""
10987 
10988  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10989 
10990  def __init__(self, *args):
10991  r"""__init__(CoinFlipSingletonPredicate self, double p, std::string name="CoinFlipSingletonPredicate%1%") -> CoinFlipSingletonPredicate"""
10992  _IMP_core.CoinFlipSingletonPredicate_swiginit(self, _IMP_core.new_CoinFlipSingletonPredicate(*args))
10993 
10994  def do_get_inputs(self, arg2, arg3):
10995  r"""do_get_inputs(CoinFlipSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
10996  return _IMP_core.CoinFlipSingletonPredicate_do_get_inputs(self, arg2, arg3)
10997 
10998  def get_value(self, *args):
10999  r"""
11000  get_value(CoinFlipSingletonPredicate self, Particle a) -> int
11001  get_value(CoinFlipSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11002  """
11003  return _IMP_core.CoinFlipSingletonPredicate_get_value(self, *args)
11004 
11005  def get_value_index(self, *args):
11006  r"""
11007  get_value_index(CoinFlipSingletonPredicate self, Model arg2, ParticleIndex arg3) -> int
11008  get_value_index(CoinFlipSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11009  """
11010  return _IMP_core.CoinFlipSingletonPredicate_get_value_index(self, *args)
11011 
11012  def get_version_info(self):
11013  r"""get_version_info(CoinFlipSingletonPredicate self) -> VersionInfo"""
11014  return _IMP_core.CoinFlipSingletonPredicate_get_version_info(self)
11015  __swig_destroy__ = _IMP_core.delete_CoinFlipSingletonPredicate
11016 
11017  def __str__(self):
11018  r"""__str__(CoinFlipSingletonPredicate self) -> std::string"""
11019  return _IMP_core.CoinFlipSingletonPredicate___str__(self)
11020 
11021  def __repr__(self):
11022  r"""__repr__(CoinFlipSingletonPredicate self) -> std::string"""
11023  return _IMP_core.CoinFlipSingletonPredicate___repr__(self)
11024 
11025  @staticmethod
11026  def get_from(o):
11027  return _object_cast_to_CoinFlipSingletonPredicate(o)
11028 
11029 
11030 # Register CoinFlipSingletonPredicate in _IMP_core:
11031 _IMP_core.CoinFlipSingletonPredicate_swigregister(CoinFlipSingletonPredicate)
11032 class ConstantPairPredicate(IMP.PairPredicate):
11033  r"""Proxy of C++ IMP::core::ConstantPairPredicate class."""
11034 
11035  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11036 
11037  def __init__(self, *args):
11038  r"""
11039  __init__(ConstantPairPredicate self, int v, std::string name="ConstPairPredicate%1%") -> ConstantPairPredicate
11040  __init__(ConstantPairPredicate self) -> ConstantPairPredicate
11041  """
11042  _IMP_core.ConstantPairPredicate_swiginit(self, _IMP_core.new_ConstantPairPredicate(*args))
11043 
11044  def do_get_inputs(self, arg2, arg3):
11045  r"""do_get_inputs(ConstantPairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11046  return _IMP_core.ConstantPairPredicate_do_get_inputs(self, arg2, arg3)
11047 
11048  def get_value(self, *args):
11049  r"""
11050  get_value(ConstantPairPredicate self, IMP::ParticlePair const & a) -> int
11051  get_value(ConstantPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11052  """
11053  return _IMP_core.ConstantPairPredicate_get_value(self, *args)
11054 
11055  def get_value_index(self, *args):
11056  r"""
11057  get_value_index(ConstantPairPredicate self, Model arg2, IMP::ParticleIndexPair const & arg3) -> int
11058  get_value_index(ConstantPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11059  """
11060  return _IMP_core.ConstantPairPredicate_get_value_index(self, *args)
11061 
11062  def get_version_info(self):
11063  r"""get_version_info(ConstantPairPredicate self) -> VersionInfo"""
11064  return _IMP_core.ConstantPairPredicate_get_version_info(self)
11065  __swig_destroy__ = _IMP_core.delete_ConstantPairPredicate
11066 
11067  def __str__(self):
11068  r"""__str__(ConstantPairPredicate self) -> std::string"""
11069  return _IMP_core.ConstantPairPredicate___str__(self)
11070 
11071  def __repr__(self):
11072  r"""__repr__(ConstantPairPredicate self) -> std::string"""
11073  return _IMP_core.ConstantPairPredicate___repr__(self)
11074 
11075  @staticmethod
11076  def get_from(o):
11077  return _object_cast_to_ConstantPairPredicate(o)
11078 
11079 
11080  def _get_as_binary(self):
11081  r"""_get_as_binary(ConstantPairPredicate self) -> PyObject *"""
11082  return _IMP_core.ConstantPairPredicate__get_as_binary(self)
11083 
11084  def _set_from_binary(self, p):
11085  r"""_set_from_binary(ConstantPairPredicate self, PyObject * p)"""
11086  return _IMP_core.ConstantPairPredicate__set_from_binary(self, p)
11087 
11088  def __getstate__(self):
11089  p = self._get_as_binary()
11090  if len(self.__dict__) > 1:
11091  d = self.__dict__.copy()
11092  del d['this']
11093  p = (d, p)
11094  return p
11095 
11096  def __setstate__(self, p):
11097  if not hasattr(self, 'this'):
11098  self.__init__()
11099  if isinstance(p, tuple):
11100  d, p = p
11101  self.__dict__.update(d)
11102  return self._set_from_binary(p)
11103 
11104 
11105 # Register ConstantPairPredicate in _IMP_core:
11106 _IMP_core.ConstantPairPredicate_swigregister(ConstantPairPredicate)
11107 class UnorderedTypePairPredicate(IMP.PairPredicate):
11108  r"""Proxy of C++ IMP::core::UnorderedTypePairPredicate class."""
11109 
11110  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11111 
11112  def __init__(self, *args):
11113  r"""__init__(UnorderedTypePairPredicate self, std::string name="UnorderedTypePairPredicate%1%") -> UnorderedTypePairPredicate"""
11114  _IMP_core.UnorderedTypePairPredicate_swiginit(self, _IMP_core.new_UnorderedTypePairPredicate(*args))
11115 
11116  def do_get_inputs(self, m, pis):
11117  r"""do_get_inputs(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11118  return _IMP_core.UnorderedTypePairPredicate_do_get_inputs(self, m, pis)
11119 
11120  def get_value(self, *args):
11121  r"""
11122  get_value(UnorderedTypePairPredicate self, IMP::ParticlePair const & a) -> int
11123  get_value(UnorderedTypePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11124  """
11125  return _IMP_core.UnorderedTypePairPredicate_get_value(self, *args)
11126 
11127  def get_value_index(self, *args):
11128  r"""
11129  get_value_index(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11130  get_value_index(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11131  """
11132  return _IMP_core.UnorderedTypePairPredicate_get_value_index(self, *args)
11133 
11134  def get_version_info(self):
11135  r"""get_version_info(UnorderedTypePairPredicate self) -> VersionInfo"""
11136  return _IMP_core.UnorderedTypePairPredicate_get_version_info(self)
11137  __swig_destroy__ = _IMP_core.delete_UnorderedTypePairPredicate
11138 
11139  def __str__(self):
11140  r"""__str__(UnorderedTypePairPredicate self) -> std::string"""
11141  return _IMP_core.UnorderedTypePairPredicate___str__(self)
11142 
11143  def __repr__(self):
11144  r"""__repr__(UnorderedTypePairPredicate self) -> std::string"""
11145  return _IMP_core.UnorderedTypePairPredicate___repr__(self)
11146 
11147  @staticmethod
11148  def get_from(o):
11149  return _object_cast_to_UnorderedTypePairPredicate(o)
11150 
11151 
11152  def _get_as_binary(self):
11153  r"""_get_as_binary(UnorderedTypePairPredicate self) -> PyObject *"""
11154  return _IMP_core.UnorderedTypePairPredicate__get_as_binary(self)
11155 
11156  def _set_from_binary(self, p):
11157  r"""_set_from_binary(UnorderedTypePairPredicate self, PyObject * p)"""
11158  return _IMP_core.UnorderedTypePairPredicate__set_from_binary(self, p)
11159 
11160  def __getstate__(self):
11161  p = self._get_as_binary()
11162  if len(self.__dict__) > 1:
11163  d = self.__dict__.copy()
11164  del d['this']
11165  p = (d, p)
11166  return p
11167 
11168  def __setstate__(self, p):
11169  if not hasattr(self, 'this'):
11170  self.__init__()
11171  if isinstance(p, tuple):
11172  d, p = p
11173  self.__dict__.update(d)
11174  return self._set_from_binary(p)
11175 
11176 
11177 # Register UnorderedTypePairPredicate in _IMP_core:
11178 _IMP_core.UnorderedTypePairPredicate_swigregister(UnorderedTypePairPredicate)
11179 class OrderedTypePairPredicate(IMP.PairPredicate):
11180  r"""Proxy of C++ IMP::core::OrderedTypePairPredicate class."""
11181 
11182  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11183 
11184  def __init__(self, *args):
11185  r"""__init__(OrderedTypePairPredicate self, std::string name="OrderedTypePairPredicate%1%") -> OrderedTypePairPredicate"""
11186  _IMP_core.OrderedTypePairPredicate_swiginit(self, _IMP_core.new_OrderedTypePairPredicate(*args))
11187 
11188  def do_get_inputs(self, m, pis):
11189  r"""do_get_inputs(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11190  return _IMP_core.OrderedTypePairPredicate_do_get_inputs(self, m, pis)
11191 
11192  def get_value(self, *args):
11193  r"""
11194  get_value(OrderedTypePairPredicate self, IMP::core::ParticleTypes const & types) -> int
11195  get_value(OrderedTypePairPredicate self, IMP::ParticlePair const & a) -> int
11196  get_value(OrderedTypePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11197  """
11198  return _IMP_core.OrderedTypePairPredicate_get_value(self, *args)
11199 
11200  def get_value_index(self, *args):
11201  r"""
11202  get_value_index(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11203  get_value_index(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11204  """
11205  return _IMP_core.OrderedTypePairPredicate_get_value_index(self, *args)
11206 
11207  def get_version_info(self):
11208  r"""get_version_info(OrderedTypePairPredicate self) -> VersionInfo"""
11209  return _IMP_core.OrderedTypePairPredicate_get_version_info(self)
11210  __swig_destroy__ = _IMP_core.delete_OrderedTypePairPredicate
11211 
11212  def __str__(self):
11213  r"""__str__(OrderedTypePairPredicate self) -> std::string"""
11214  return _IMP_core.OrderedTypePairPredicate___str__(self)
11215 
11216  def __repr__(self):
11217  r"""__repr__(OrderedTypePairPredicate self) -> std::string"""
11218  return _IMP_core.OrderedTypePairPredicate___repr__(self)
11219 
11220  @staticmethod
11221  def get_from(o):
11222  return _object_cast_to_OrderedTypePairPredicate(o)
11223 
11224 
11225 # Register OrderedTypePairPredicate in _IMP_core:
11226 _IMP_core.OrderedTypePairPredicate_swigregister(OrderedTypePairPredicate)
11227 class AllSamePairPredicate(IMP.PairPredicate):
11228  r"""Proxy of C++ IMP::core::AllSamePairPredicate class."""
11229 
11230  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11231 
11232  def __init__(self, *args):
11233  r"""__init__(AllSamePairPredicate self, std::string name="AllSamePairPredicate%1%") -> AllSamePairPredicate"""
11234  _IMP_core.AllSamePairPredicate_swiginit(self, _IMP_core.new_AllSamePairPredicate(*args))
11235 
11236  def do_get_inputs(self, arg2, arg3):
11237  r"""do_get_inputs(AllSamePairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11238  return _IMP_core.AllSamePairPredicate_do_get_inputs(self, arg2, arg3)
11239 
11240  def get_value(self, *args):
11241  r"""
11242  get_value(AllSamePairPredicate self, IMP::ParticlePair const & a) -> int
11243  get_value(AllSamePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11244  """
11245  return _IMP_core.AllSamePairPredicate_get_value(self, *args)
11246 
11247  def get_value_index(self, *args):
11248  r"""
11249  get_value_index(AllSamePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11250  get_value_index(AllSamePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11251  """
11252  return _IMP_core.AllSamePairPredicate_get_value_index(self, *args)
11253 
11254  def get_version_info(self):
11255  r"""get_version_info(AllSamePairPredicate self) -> VersionInfo"""
11256  return _IMP_core.AllSamePairPredicate_get_version_info(self)
11257  __swig_destroy__ = _IMP_core.delete_AllSamePairPredicate
11258 
11259  def __str__(self):
11260  r"""__str__(AllSamePairPredicate self) -> std::string"""
11261  return _IMP_core.AllSamePairPredicate___str__(self)
11262 
11263  def __repr__(self):
11264  r"""__repr__(AllSamePairPredicate self) -> std::string"""
11265  return _IMP_core.AllSamePairPredicate___repr__(self)
11266 
11267  @staticmethod
11268  def get_from(o):
11269  return _object_cast_to_AllSamePairPredicate(o)
11270 
11271 
11272  def _get_as_binary(self):
11273  r"""_get_as_binary(AllSamePairPredicate self) -> PyObject *"""
11274  return _IMP_core.AllSamePairPredicate__get_as_binary(self)
11275 
11276  def _set_from_binary(self, p):
11277  r"""_set_from_binary(AllSamePairPredicate self, PyObject * p)"""
11278  return _IMP_core.AllSamePairPredicate__set_from_binary(self, p)
11279 
11280  def __getstate__(self):
11281  p = self._get_as_binary()
11282  if len(self.__dict__) > 1:
11283  d = self.__dict__.copy()
11284  del d['this']
11285  p = (d, p)
11286  return p
11287 
11288  def __setstate__(self, p):
11289  if not hasattr(self, 'this'):
11290  self.__init__()
11291  if isinstance(p, tuple):
11292  d, p = p
11293  self.__dict__.update(d)
11294  return self._set_from_binary(p)
11295 
11296 
11297 # Register AllSamePairPredicate in _IMP_core:
11298 _IMP_core.AllSamePairPredicate_swigregister(AllSamePairPredicate)
11299 class CoinFlipPairPredicate(IMP.PairPredicate):
11300  r"""Proxy of C++ IMP::core::CoinFlipPairPredicate class."""
11301 
11302  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11303 
11304  def __init__(self, *args):
11305  r"""__init__(CoinFlipPairPredicate self, double p, std::string name="CoinFlipPairPredicate%1%") -> CoinFlipPairPredicate"""
11306  _IMP_core.CoinFlipPairPredicate_swiginit(self, _IMP_core.new_CoinFlipPairPredicate(*args))
11307 
11308  def do_get_inputs(self, arg2, arg3):
11309  r"""do_get_inputs(CoinFlipPairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11310  return _IMP_core.CoinFlipPairPredicate_do_get_inputs(self, arg2, arg3)
11311 
11312  def get_value(self, *args):
11313  r"""
11314  get_value(CoinFlipPairPredicate self, IMP::ParticlePair const & a) -> int
11315  get_value(CoinFlipPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11316  """
11317  return _IMP_core.CoinFlipPairPredicate_get_value(self, *args)
11318 
11319  def get_value_index(self, *args):
11320  r"""
11321  get_value_index(CoinFlipPairPredicate self, Model arg2, IMP::ParticleIndexPair const & arg3) -> int
11322  get_value_index(CoinFlipPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11323  """
11324  return _IMP_core.CoinFlipPairPredicate_get_value_index(self, *args)
11325 
11326  def get_version_info(self):
11327  r"""get_version_info(CoinFlipPairPredicate self) -> VersionInfo"""
11328  return _IMP_core.CoinFlipPairPredicate_get_version_info(self)
11329  __swig_destroy__ = _IMP_core.delete_CoinFlipPairPredicate
11330 
11331  def __str__(self):
11332  r"""__str__(CoinFlipPairPredicate self) -> std::string"""
11333  return _IMP_core.CoinFlipPairPredicate___str__(self)
11334 
11335  def __repr__(self):
11336  r"""__repr__(CoinFlipPairPredicate self) -> std::string"""
11337  return _IMP_core.CoinFlipPairPredicate___repr__(self)
11338 
11339  @staticmethod
11340  def get_from(o):
11341  return _object_cast_to_CoinFlipPairPredicate(o)
11342 
11343 
11344 # Register CoinFlipPairPredicate in _IMP_core:
11345 _IMP_core.CoinFlipPairPredicate_swigregister(CoinFlipPairPredicate)
11346 class ConstantTripletPredicate(IMP.TripletPredicate):
11347  r"""Proxy of C++ IMP::core::ConstantTripletPredicate class."""
11348 
11349  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11350 
11351  def __init__(self, *args):
11352  r"""
11353  __init__(ConstantTripletPredicate self, int v, std::string name="ConstTripletPredicate%1%") -> ConstantTripletPredicate
11354  __init__(ConstantTripletPredicate self) -> ConstantTripletPredicate
11355  """
11356  _IMP_core.ConstantTripletPredicate_swiginit(self, _IMP_core.new_ConstantTripletPredicate(*args))
11357 
11358  def do_get_inputs(self, arg2, arg3):
11359  r"""do_get_inputs(ConstantTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11360  return _IMP_core.ConstantTripletPredicate_do_get_inputs(self, arg2, arg3)
11361 
11362  def get_value(self, *args):
11363  r"""
11364  get_value(ConstantTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11365  get_value(ConstantTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11366  """
11367  return _IMP_core.ConstantTripletPredicate_get_value(self, *args)
11368 
11369  def get_value_index(self, *args):
11370  r"""
11371  get_value_index(ConstantTripletPredicate self, Model arg2, IMP::ParticleIndexTriplet const & arg3) -> int
11372  get_value_index(ConstantTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11373  """
11374  return _IMP_core.ConstantTripletPredicate_get_value_index(self, *args)
11375 
11376  def get_version_info(self):
11377  r"""get_version_info(ConstantTripletPredicate self) -> VersionInfo"""
11378  return _IMP_core.ConstantTripletPredicate_get_version_info(self)
11379  __swig_destroy__ = _IMP_core.delete_ConstantTripletPredicate
11380 
11381  def __str__(self):
11382  r"""__str__(ConstantTripletPredicate self) -> std::string"""
11383  return _IMP_core.ConstantTripletPredicate___str__(self)
11384 
11385  def __repr__(self):
11386  r"""__repr__(ConstantTripletPredicate self) -> std::string"""
11387  return _IMP_core.ConstantTripletPredicate___repr__(self)
11388 
11389  @staticmethod
11390  def get_from(o):
11391  return _object_cast_to_ConstantTripletPredicate(o)
11392 
11393 
11394  def _get_as_binary(self):
11395  r"""_get_as_binary(ConstantTripletPredicate self) -> PyObject *"""
11396  return _IMP_core.ConstantTripletPredicate__get_as_binary(self)
11397 
11398  def _set_from_binary(self, p):
11399  r"""_set_from_binary(ConstantTripletPredicate self, PyObject * p)"""
11400  return _IMP_core.ConstantTripletPredicate__set_from_binary(self, p)
11401 
11402  def __getstate__(self):
11403  p = self._get_as_binary()
11404  if len(self.__dict__) > 1:
11405  d = self.__dict__.copy()
11406  del d['this']
11407  p = (d, p)
11408  return p
11409 
11410  def __setstate__(self, p):
11411  if not hasattr(self, 'this'):
11412  self.__init__()
11413  if isinstance(p, tuple):
11414  d, p = p
11415  self.__dict__.update(d)
11416  return self._set_from_binary(p)
11417 
11418 
11419 # Register ConstantTripletPredicate in _IMP_core:
11420 _IMP_core.ConstantTripletPredicate_swigregister(ConstantTripletPredicate)
11421 class UnorderedTypeTripletPredicate(IMP.TripletPredicate):
11422  r"""Proxy of C++ IMP::core::UnorderedTypeTripletPredicate class."""
11423 
11424  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11425 
11426  def __init__(self, *args):
11427  r"""__init__(UnorderedTypeTripletPredicate self, std::string name="UnorderedTypeTripletPredicate%1%") -> UnorderedTypeTripletPredicate"""
11428  _IMP_core.UnorderedTypeTripletPredicate_swiginit(self, _IMP_core.new_UnorderedTypeTripletPredicate(*args))
11429 
11430  def do_get_inputs(self, m, pis):
11431  r"""do_get_inputs(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11432  return _IMP_core.UnorderedTypeTripletPredicate_do_get_inputs(self, m, pis)
11433 
11434  def get_value(self, *args):
11435  r"""
11436  get_value(UnorderedTypeTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11437  get_value(UnorderedTypeTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11438  """
11439  return _IMP_core.UnorderedTypeTripletPredicate_get_value(self, *args)
11440 
11441  def get_value_index(self, *args):
11442  r"""
11443  get_value_index(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
11444  get_value_index(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11445  """
11446  return _IMP_core.UnorderedTypeTripletPredicate_get_value_index(self, *args)
11447 
11448  def get_version_info(self):
11449  r"""get_version_info(UnorderedTypeTripletPredicate self) -> VersionInfo"""
11450  return _IMP_core.UnorderedTypeTripletPredicate_get_version_info(self)
11451  __swig_destroy__ = _IMP_core.delete_UnorderedTypeTripletPredicate
11452 
11453  def __str__(self):
11454  r"""__str__(UnorderedTypeTripletPredicate self) -> std::string"""
11455  return _IMP_core.UnorderedTypeTripletPredicate___str__(self)
11456 
11457  def __repr__(self):
11458  r"""__repr__(UnorderedTypeTripletPredicate self) -> std::string"""
11459  return _IMP_core.UnorderedTypeTripletPredicate___repr__(self)
11460 
11461  @staticmethod
11462  def get_from(o):
11463  return _object_cast_to_UnorderedTypeTripletPredicate(o)
11464 
11465 
11466  def _get_as_binary(self):
11467  r"""_get_as_binary(UnorderedTypeTripletPredicate self) -> PyObject *"""
11468  return _IMP_core.UnorderedTypeTripletPredicate__get_as_binary(self)
11469 
11470  def _set_from_binary(self, p):
11471  r"""_set_from_binary(UnorderedTypeTripletPredicate self, PyObject * p)"""
11472  return _IMP_core.UnorderedTypeTripletPredicate__set_from_binary(self, p)
11473 
11474  def __getstate__(self):
11475  p = self._get_as_binary()
11476  if len(self.__dict__) > 1:
11477  d = self.__dict__.copy()
11478  del d['this']
11479  p = (d, p)
11480  return p
11481 
11482  def __setstate__(self, p):
11483  if not hasattr(self, 'this'):
11484  self.__init__()
11485  if isinstance(p, tuple):
11486  d, p = p
11487  self.__dict__.update(d)
11488  return self._set_from_binary(p)
11489 
11490 
11491 # Register UnorderedTypeTripletPredicate in _IMP_core:
11492 _IMP_core.UnorderedTypeTripletPredicate_swigregister(UnorderedTypeTripletPredicate)
11493 class OrderedTypeTripletPredicate(IMP.TripletPredicate):
11494  r"""Proxy of C++ IMP::core::OrderedTypeTripletPredicate class."""
11495 
11496  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11497 
11498  def __init__(self, *args):
11499  r"""__init__(OrderedTypeTripletPredicate self, std::string name="OrderedTypeTripletPredicate%1%") -> OrderedTypeTripletPredicate"""
11500  _IMP_core.OrderedTypeTripletPredicate_swiginit(self, _IMP_core.new_OrderedTypeTripletPredicate(*args))
11501 
11502  def do_get_inputs(self, m, pis):
11503  r"""do_get_inputs(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11504  return _IMP_core.OrderedTypeTripletPredicate_do_get_inputs(self, m, pis)
11505 
11506  def get_value(self, *args):
11507  r"""
11508  get_value(OrderedTypeTripletPredicate self, IMP::core::ParticleTypes const & types) -> int
11509  get_value(OrderedTypeTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11510  get_value(OrderedTypeTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11511  """
11512  return _IMP_core.OrderedTypeTripletPredicate_get_value(self, *args)
11513 
11514  def get_value_index(self, *args):
11515  r"""
11516  get_value_index(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
11517  get_value_index(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11518  """
11519  return _IMP_core.OrderedTypeTripletPredicate_get_value_index(self, *args)
11520 
11521  def get_version_info(self):
11522  r"""get_version_info(OrderedTypeTripletPredicate self) -> VersionInfo"""
11523  return _IMP_core.OrderedTypeTripletPredicate_get_version_info(self)
11524  __swig_destroy__ = _IMP_core.delete_OrderedTypeTripletPredicate
11525 
11526  def __str__(self):
11527  r"""__str__(OrderedTypeTripletPredicate self) -> std::string"""
11528  return _IMP_core.OrderedTypeTripletPredicate___str__(self)
11529 
11530  def __repr__(self):
11531  r"""__repr__(OrderedTypeTripletPredicate self) -> std::string"""
11532  return _IMP_core.OrderedTypeTripletPredicate___repr__(self)
11533 
11534  @staticmethod
11535  def get_from(o):
11536  return _object_cast_to_OrderedTypeTripletPredicate(o)
11537 
11538 
11539 # Register OrderedTypeTripletPredicate in _IMP_core:
11540 _IMP_core.OrderedTypeTripletPredicate_swigregister(OrderedTypeTripletPredicate)
11541 class AllSameTripletPredicate(IMP.TripletPredicate):
11542  r"""Proxy of C++ IMP::core::AllSameTripletPredicate class."""
11543 
11544  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11545 
11546  def __init__(self, *args):
11547  r"""__init__(AllSameTripletPredicate self, std::string name="AllSameTripletPredicate%1%") -> AllSameTripletPredicate"""
11548  _IMP_core.AllSameTripletPredicate_swiginit(self, _IMP_core.new_AllSameTripletPredicate(*args))
11549 
11550  def do_get_inputs(self, arg2, arg3):
11551  r"""do_get_inputs(AllSameTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11552  return _IMP_core.AllSameTripletPredicate_do_get_inputs(self, arg2, arg3)
11553 
11554  def get_value(self, *args):
11555  r"""
11556  get_value(AllSameTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11557  get_value(AllSameTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11558  """
11559  return _IMP_core.AllSameTripletPredicate_get_value(self, *args)
11560 
11561  def get_value_index(self, *args):
11562  r"""
11563  get_value_index(AllSameTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
11564  get_value_index(AllSameTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11565  """
11566  return _IMP_core.AllSameTripletPredicate_get_value_index(self, *args)
11567 
11568  def get_version_info(self):
11569  r"""get_version_info(AllSameTripletPredicate self) -> VersionInfo"""
11570  return _IMP_core.AllSameTripletPredicate_get_version_info(self)
11571  __swig_destroy__ = _IMP_core.delete_AllSameTripletPredicate
11572 
11573  def __str__(self):
11574  r"""__str__(AllSameTripletPredicate self) -> std::string"""
11575  return _IMP_core.AllSameTripletPredicate___str__(self)
11576 
11577  def __repr__(self):
11578  r"""__repr__(AllSameTripletPredicate self) -> std::string"""
11579  return _IMP_core.AllSameTripletPredicate___repr__(self)
11580 
11581  @staticmethod
11582  def get_from(o):
11583  return _object_cast_to_AllSameTripletPredicate(o)
11584 
11585 
11586  def _get_as_binary(self):
11587  r"""_get_as_binary(AllSameTripletPredicate self) -> PyObject *"""
11588  return _IMP_core.AllSameTripletPredicate__get_as_binary(self)
11589 
11590  def _set_from_binary(self, p):
11591  r"""_set_from_binary(AllSameTripletPredicate self, PyObject * p)"""
11592  return _IMP_core.AllSameTripletPredicate__set_from_binary(self, p)
11593 
11594  def __getstate__(self):
11595  p = self._get_as_binary()
11596  if len(self.__dict__) > 1:
11597  d = self.__dict__.copy()
11598  del d['this']
11599  p = (d, p)
11600  return p
11601 
11602  def __setstate__(self, p):
11603  if not hasattr(self, 'this'):
11604  self.__init__()
11605  if isinstance(p, tuple):
11606  d, p = p
11607  self.__dict__.update(d)
11608  return self._set_from_binary(p)
11609 
11610 
11611 # Register AllSameTripletPredicate in _IMP_core:
11612 _IMP_core.AllSameTripletPredicate_swigregister(AllSameTripletPredicate)
11613 class CoinFlipTripletPredicate(IMP.TripletPredicate):
11614  r"""Proxy of C++ IMP::core::CoinFlipTripletPredicate class."""
11615 
11616  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11617 
11618  def __init__(self, *args):
11619  r"""__init__(CoinFlipTripletPredicate self, double p, std::string name="CoinFlipTripletPredicate%1%") -> CoinFlipTripletPredicate"""
11620  _IMP_core.CoinFlipTripletPredicate_swiginit(self, _IMP_core.new_CoinFlipTripletPredicate(*args))
11621 
11622  def do_get_inputs(self, arg2, arg3):
11623  r"""do_get_inputs(CoinFlipTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11624  return _IMP_core.CoinFlipTripletPredicate_do_get_inputs(self, arg2, arg3)
11625 
11626  def get_value(self, *args):
11627  r"""
11628  get_value(CoinFlipTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11629  get_value(CoinFlipTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11630  """
11631  return _IMP_core.CoinFlipTripletPredicate_get_value(self, *args)
11632 
11633  def get_value_index(self, *args):
11634  r"""
11635  get_value_index(CoinFlipTripletPredicate self, Model arg2, IMP::ParticleIndexTriplet const & arg3) -> int
11636  get_value_index(CoinFlipTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11637  """
11638  return _IMP_core.CoinFlipTripletPredicate_get_value_index(self, *args)
11639 
11640  def get_version_info(self):
11641  r"""get_version_info(CoinFlipTripletPredicate self) -> VersionInfo"""
11642  return _IMP_core.CoinFlipTripletPredicate_get_version_info(self)
11643  __swig_destroy__ = _IMP_core.delete_CoinFlipTripletPredicate
11644 
11645  def __str__(self):
11646  r"""__str__(CoinFlipTripletPredicate self) -> std::string"""
11647  return _IMP_core.CoinFlipTripletPredicate___str__(self)
11648 
11649  def __repr__(self):
11650  r"""__repr__(CoinFlipTripletPredicate self) -> std::string"""
11651  return _IMP_core.CoinFlipTripletPredicate___repr__(self)
11652 
11653  @staticmethod
11654  def get_from(o):
11655  return _object_cast_to_CoinFlipTripletPredicate(o)
11656 
11657 
11658 # Register CoinFlipTripletPredicate in _IMP_core:
11659 _IMP_core.CoinFlipTripletPredicate_swigregister(CoinFlipTripletPredicate)
11660 class ConstantQuadPredicate(IMP.QuadPredicate):
11661  r"""Proxy of C++ IMP::core::ConstantQuadPredicate class."""
11662 
11663  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11664 
11665  def __init__(self, *args):
11666  r"""
11667  __init__(ConstantQuadPredicate self, int v, std::string name="ConstQuadPredicate%1%") -> ConstantQuadPredicate
11668  __init__(ConstantQuadPredicate self) -> ConstantQuadPredicate
11669  """
11670  _IMP_core.ConstantQuadPredicate_swiginit(self, _IMP_core.new_ConstantQuadPredicate(*args))
11671 
11672  def do_get_inputs(self, arg2, arg3):
11673  r"""do_get_inputs(ConstantQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11674  return _IMP_core.ConstantQuadPredicate_do_get_inputs(self, arg2, arg3)
11675 
11676  def get_value(self, *args):
11677  r"""
11678  get_value(ConstantQuadPredicate self, IMP::ParticleQuad const & a) -> int
11679  get_value(ConstantQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
11680  """
11681  return _IMP_core.ConstantQuadPredicate_get_value(self, *args)
11682 
11683  def get_value_index(self, *args):
11684  r"""
11685  get_value_index(ConstantQuadPredicate self, Model arg2, IMP::ParticleIndexQuad const & arg3) -> int
11686  get_value_index(ConstantQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
11687  """
11688  return _IMP_core.ConstantQuadPredicate_get_value_index(self, *args)
11689 
11690  def get_version_info(self):
11691  r"""get_version_info(ConstantQuadPredicate self) -> VersionInfo"""
11692  return _IMP_core.ConstantQuadPredicate_get_version_info(self)
11693  __swig_destroy__ = _IMP_core.delete_ConstantQuadPredicate
11694 
11695  def __str__(self):
11696  r"""__str__(ConstantQuadPredicate self) -> std::string"""
11697  return _IMP_core.ConstantQuadPredicate___str__(self)
11698 
11699  def __repr__(self):
11700  r"""__repr__(ConstantQuadPredicate self) -> std::string"""
11701  return _IMP_core.ConstantQuadPredicate___repr__(self)
11702 
11703  @staticmethod
11704  def get_from(o):
11705  return _object_cast_to_ConstantQuadPredicate(o)
11706 
11707 
11708  def _get_as_binary(self):
11709  r"""_get_as_binary(ConstantQuadPredicate self) -> PyObject *"""
11710  return _IMP_core.ConstantQuadPredicate__get_as_binary(self)
11711 
11712  def _set_from_binary(self, p):
11713  r"""_set_from_binary(ConstantQuadPredicate self, PyObject * p)"""
11714  return _IMP_core.ConstantQuadPredicate__set_from_binary(self, p)
11715 
11716  def __getstate__(self):
11717  p = self._get_as_binary()
11718  if len(self.__dict__) > 1:
11719  d = self.__dict__.copy()
11720  del d['this']
11721  p = (d, p)
11722  return p
11723 
11724  def __setstate__(self, p):
11725  if not hasattr(self, 'this'):
11726  self.__init__()
11727  if isinstance(p, tuple):
11728  d, p = p
11729  self.__dict__.update(d)
11730  return self._set_from_binary(p)
11731 
11732 
11733 # Register ConstantQuadPredicate in _IMP_core:
11734 _IMP_core.ConstantQuadPredicate_swigregister(ConstantQuadPredicate)
11735 class UnorderedTypeQuadPredicate(IMP.QuadPredicate):
11736  r"""Proxy of C++ IMP::core::UnorderedTypeQuadPredicate class."""
11737 
11738  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11739 
11740  def __init__(self, *args):
11741  r"""__init__(UnorderedTypeQuadPredicate self, std::string name="UnorderedTypeQuadPredicate%1%") -> UnorderedTypeQuadPredicate"""
11742  _IMP_core.UnorderedTypeQuadPredicate_swiginit(self, _IMP_core.new_UnorderedTypeQuadPredicate(*args))
11743 
11744  def do_get_inputs(self, m, pis):
11745  r"""do_get_inputs(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11746  return _IMP_core.UnorderedTypeQuadPredicate_do_get_inputs(self, m, pis)
11747 
11748  def get_value(self, *args):
11749  r"""
11750  get_value(UnorderedTypeQuadPredicate self, IMP::ParticleQuad const & a) -> int
11751  get_value(UnorderedTypeQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
11752  """
11753  return _IMP_core.UnorderedTypeQuadPredicate_get_value(self, *args)
11754 
11755  def get_value_index(self, *args):
11756  r"""
11757  get_value_index(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
11758  get_value_index(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
11759  """
11760  return _IMP_core.UnorderedTypeQuadPredicate_get_value_index(self, *args)
11761 
11762  def get_version_info(self):
11763  r"""get_version_info(UnorderedTypeQuadPredicate self) -> VersionInfo"""
11764  return _IMP_core.UnorderedTypeQuadPredicate_get_version_info(self)
11765  __swig_destroy__ = _IMP_core.delete_UnorderedTypeQuadPredicate
11766 
11767  def __str__(self):
11768  r"""__str__(UnorderedTypeQuadPredicate self) -> std::string"""
11769  return _IMP_core.UnorderedTypeQuadPredicate___str__(self)
11770 
11771  def __repr__(self):
11772  r"""__repr__(UnorderedTypeQuadPredicate self) -> std::string"""
11773  return _IMP_core.UnorderedTypeQuadPredicate___repr__(self)
11774 
11775  @staticmethod
11776  def get_from(o):
11777  return _object_cast_to_UnorderedTypeQuadPredicate(o)
11778 
11779 
11780  def _get_as_binary(self):
11781  r"""_get_as_binary(UnorderedTypeQuadPredicate self) -> PyObject *"""
11782  return _IMP_core.UnorderedTypeQuadPredicate__get_as_binary(self)
11783 
11784  def _set_from_binary(self, p):
11785  r"""_set_from_binary(UnorderedTypeQuadPredicate self, PyObject * p)"""
11786  return _IMP_core.UnorderedTypeQuadPredicate__set_from_binary(self, p)
11787 
11788  def __getstate__(self):
11789  p = self._get_as_binary()
11790  if len(self.__dict__) > 1:
11791  d = self.__dict__.copy()
11792  del d['this']
11793  p = (d, p)
11794  return p
11795 
11796  def __setstate__(self, p):
11797  if not hasattr(self, 'this'):
11798  self.__init__()
11799  if isinstance(p, tuple):
11800  d, p = p
11801  self.__dict__.update(d)
11802  return self._set_from_binary(p)
11803 
11804 
11805 # Register UnorderedTypeQuadPredicate in _IMP_core:
11806 _IMP_core.UnorderedTypeQuadPredicate_swigregister(UnorderedTypeQuadPredicate)
11807 class OrderedTypeQuadPredicate(IMP.QuadPredicate):
11808  r"""Proxy of C++ IMP::core::OrderedTypeQuadPredicate class."""
11809 
11810  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11811 
11812  def __init__(self, *args):
11813  r"""__init__(OrderedTypeQuadPredicate self, std::string name="OrderedTypeQuadPredicate%1%") -> OrderedTypeQuadPredicate"""
11814  _IMP_core.OrderedTypeQuadPredicate_swiginit(self, _IMP_core.new_OrderedTypeQuadPredicate(*args))
11815 
11816  def do_get_inputs(self, m, pis):
11817  r"""do_get_inputs(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11818  return _IMP_core.OrderedTypeQuadPredicate_do_get_inputs(self, m, pis)
11819 
11820  def get_value(self, *args):
11821  r"""
11822  get_value(OrderedTypeQuadPredicate self, IMP::core::ParticleTypes const & types) -> int
11823  get_value(OrderedTypeQuadPredicate self, IMP::ParticleQuad const & a) -> int
11824  get_value(OrderedTypeQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
11825  """
11826  return _IMP_core.OrderedTypeQuadPredicate_get_value(self, *args)
11827 
11828  def get_value_index(self, *args):
11829  r"""
11830  get_value_index(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
11831  get_value_index(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
11832  """
11833  return _IMP_core.OrderedTypeQuadPredicate_get_value_index(self, *args)
11834 
11835  def get_version_info(self):
11836  r"""get_version_info(OrderedTypeQuadPredicate self) -> VersionInfo"""
11837  return _IMP_core.OrderedTypeQuadPredicate_get_version_info(self)
11838  __swig_destroy__ = _IMP_core.delete_OrderedTypeQuadPredicate
11839 
11840  def __str__(self):
11841  r"""__str__(OrderedTypeQuadPredicate self) -> std::string"""
11842  return _IMP_core.OrderedTypeQuadPredicate___str__(self)
11843 
11844  def __repr__(self):
11845  r"""__repr__(OrderedTypeQuadPredicate self) -> std::string"""
11846  return _IMP_core.OrderedTypeQuadPredicate___repr__(self)
11847 
11848  @staticmethod
11849  def get_from(o):
11850  return _object_cast_to_OrderedTypeQuadPredicate(o)
11851 
11852 
11853 # Register OrderedTypeQuadPredicate in _IMP_core:
11854 _IMP_core.OrderedTypeQuadPredicate_swigregister(OrderedTypeQuadPredicate)
11855 class AllSameQuadPredicate(IMP.QuadPredicate):
11856  r"""Proxy of C++ IMP::core::AllSameQuadPredicate class."""
11857 
11858  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11859 
11860  def __init__(self, *args):
11861  r"""__init__(AllSameQuadPredicate self, std::string name="AllSameQuadPredicate%1%") -> AllSameQuadPredicate"""
11862  _IMP_core.AllSameQuadPredicate_swiginit(self, _IMP_core.new_AllSameQuadPredicate(*args))
11863 
11864  def do_get_inputs(self, arg2, arg3):
11865  r"""do_get_inputs(AllSameQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11866  return _IMP_core.AllSameQuadPredicate_do_get_inputs(self, arg2, arg3)
11867 
11868  def get_value(self, *args):
11869  r"""
11870  get_value(AllSameQuadPredicate self, IMP::ParticleQuad const & a) -> int
11871  get_value(AllSameQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
11872  """
11873  return _IMP_core.AllSameQuadPredicate_get_value(self, *args)
11874 
11875  def get_value_index(self, *args):
11876  r"""
11877  get_value_index(AllSameQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
11878  get_value_index(AllSameQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
11879  """
11880  return _IMP_core.AllSameQuadPredicate_get_value_index(self, *args)
11881 
11882  def get_version_info(self):
11883  r"""get_version_info(AllSameQuadPredicate self) -> VersionInfo"""
11884  return _IMP_core.AllSameQuadPredicate_get_version_info(self)
11885  __swig_destroy__ = _IMP_core.delete_AllSameQuadPredicate
11886 
11887  def __str__(self):
11888  r"""__str__(AllSameQuadPredicate self) -> std::string"""
11889  return _IMP_core.AllSameQuadPredicate___str__(self)
11890 
11891  def __repr__(self):
11892  r"""__repr__(AllSameQuadPredicate self) -> std::string"""
11893  return _IMP_core.AllSameQuadPredicate___repr__(self)
11894 
11895  @staticmethod
11896  def get_from(o):
11897  return _object_cast_to_AllSameQuadPredicate(o)
11898 
11899 
11900  def _get_as_binary(self):
11901  r"""_get_as_binary(AllSameQuadPredicate self) -> PyObject *"""
11902  return _IMP_core.AllSameQuadPredicate__get_as_binary(self)
11903 
11904  def _set_from_binary(self, p):
11905  r"""_set_from_binary(AllSameQuadPredicate self, PyObject * p)"""
11906  return _IMP_core.AllSameQuadPredicate__set_from_binary(self, p)
11907 
11908  def __getstate__(self):
11909  p = self._get_as_binary()
11910  if len(self.__dict__) > 1:
11911  d = self.__dict__.copy()
11912  del d['this']
11913  p = (d, p)
11914  return p
11915 
11916  def __setstate__(self, p):
11917  if not hasattr(self, 'this'):
11918  self.__init__()
11919  if isinstance(p, tuple):
11920  d, p = p
11921  self.__dict__.update(d)
11922  return self._set_from_binary(p)
11923 
11924 
11925 # Register AllSameQuadPredicate in _IMP_core:
11926 _IMP_core.AllSameQuadPredicate_swigregister(AllSameQuadPredicate)
11927 class CoinFlipQuadPredicate(IMP.QuadPredicate):
11928  r"""Proxy of C++ IMP::core::CoinFlipQuadPredicate class."""
11929 
11930  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11931 
11932  def __init__(self, *args):
11933  r"""__init__(CoinFlipQuadPredicate self, double p, std::string name="CoinFlipQuadPredicate%1%") -> CoinFlipQuadPredicate"""
11934  _IMP_core.CoinFlipQuadPredicate_swiginit(self, _IMP_core.new_CoinFlipQuadPredicate(*args))
11935 
11936  def do_get_inputs(self, arg2, arg3):
11937  r"""do_get_inputs(CoinFlipQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11938  return _IMP_core.CoinFlipQuadPredicate_do_get_inputs(self, arg2, arg3)
11939 
11940  def get_value(self, *args):
11941  r"""
11942  get_value(CoinFlipQuadPredicate self, IMP::ParticleQuad const & a) -> int
11943  get_value(CoinFlipQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
11944  """
11945  return _IMP_core.CoinFlipQuadPredicate_get_value(self, *args)
11946 
11947  def get_value_index(self, *args):
11948  r"""
11949  get_value_index(CoinFlipQuadPredicate self, Model arg2, IMP::ParticleIndexQuad const & arg3) -> int
11950  get_value_index(CoinFlipQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
11951  """
11952  return _IMP_core.CoinFlipQuadPredicate_get_value_index(self, *args)
11953 
11954  def get_version_info(self):
11955  r"""get_version_info(CoinFlipQuadPredicate self) -> VersionInfo"""
11956  return _IMP_core.CoinFlipQuadPredicate_get_version_info(self)
11957  __swig_destroy__ = _IMP_core.delete_CoinFlipQuadPredicate
11958 
11959  def __str__(self):
11960  r"""__str__(CoinFlipQuadPredicate self) -> std::string"""
11961  return _IMP_core.CoinFlipQuadPredicate___str__(self)
11962 
11963  def __repr__(self):
11964  r"""__repr__(CoinFlipQuadPredicate self) -> std::string"""
11965  return _IMP_core.CoinFlipQuadPredicate___repr__(self)
11966 
11967  @staticmethod
11968  def get_from(o):
11969  return _object_cast_to_CoinFlipQuadPredicate(o)
11970 
11971 
11972 # Register CoinFlipQuadPredicate in _IMP_core:
11973 _IMP_core.CoinFlipQuadPredicate_swigregister(CoinFlipQuadPredicate)
11974 class InBoundingBox3DSingletonPredicate(IMP.SingletonPredicate):
11975  r"""Proxy of C++ IMP::core::InBoundingBox3DSingletonPredicate class."""
11976 
11977  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11978 
11979  def __init__(self, *args):
11980  r"""__init__(InBoundingBox3DSingletonPredicate self, BoundingBox3D bb, std::string name="InBoundingBox3DSingletonPredicate%1%") -> InBoundingBox3DSingletonPredicate"""
11981  _IMP_core.InBoundingBox3DSingletonPredicate_swiginit(self, _IMP_core.new_InBoundingBox3DSingletonPredicate(*args))
11982 
11983  def do_get_inputs(self, m, pi):
11984  r"""do_get_inputs(InBoundingBox3DSingletonPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
11985  return _IMP_core.InBoundingBox3DSingletonPredicate_do_get_inputs(self, m, pi)
11986 
11987  def get_value(self, *args):
11988  r"""
11989  get_value(InBoundingBox3DSingletonPredicate self, Particle a) -> int
11990  get_value(InBoundingBox3DSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11991  """
11992  return _IMP_core.InBoundingBox3DSingletonPredicate_get_value(self, *args)
11993 
11994  def get_value_index(self, *args):
11995  r"""
11996  get_value_index(InBoundingBox3DSingletonPredicate self, Model m, ParticleIndex pi) -> int
11997  get_value_index(InBoundingBox3DSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11998  """
11999  return _IMP_core.InBoundingBox3DSingletonPredicate_get_value_index(self, *args)
12000 
12001  def get_version_info(self):
12002  r"""get_version_info(InBoundingBox3DSingletonPredicate self) -> VersionInfo"""
12003  return _IMP_core.InBoundingBox3DSingletonPredicate_get_version_info(self)
12004  __swig_destroy__ = _IMP_core.delete_InBoundingBox3DSingletonPredicate
12005 
12006  def __str__(self):
12007  r"""__str__(InBoundingBox3DSingletonPredicate self) -> std::string"""
12008  return _IMP_core.InBoundingBox3DSingletonPredicate___str__(self)
12009 
12010  def __repr__(self):
12011  r"""__repr__(InBoundingBox3DSingletonPredicate self) -> std::string"""
12012  return _IMP_core.InBoundingBox3DSingletonPredicate___repr__(self)
12013 
12014  @staticmethod
12015  def get_from(o):
12016  return _object_cast_to_InBoundingBox3DSingletonPredicate(o)
12017 
12018 
12019 # Register InBoundingBox3DSingletonPredicate in _IMP_core:
12020 _IMP_core.InBoundingBox3DSingletonPredicate_swigregister(InBoundingBox3DSingletonPredicate)
12021 class AttributeSingletonPredicate(IMP.SingletonPredicate):
12022  r"""Proxy of C++ IMP::core::AttributeSingletonPredicate class."""
12023 
12024  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12025 
12026  def __init__(self, *args):
12027  r"""__init__(AttributeSingletonPredicate self, IntKey bb, std::string name="AttributeSingletonPredicate%1%") -> AttributeSingletonPredicate"""
12028  _IMP_core.AttributeSingletonPredicate_swiginit(self, _IMP_core.new_AttributeSingletonPredicate(*args))
12029 
12030  def do_get_inputs(self, m, pi):
12031  r"""do_get_inputs(AttributeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12032  return _IMP_core.AttributeSingletonPredicate_do_get_inputs(self, m, pi)
12033 
12034  def get_value(self, *args):
12035  r"""
12036  get_value(AttributeSingletonPredicate self, Particle a) -> int
12037  get_value(AttributeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
12038  """
12039  return _IMP_core.AttributeSingletonPredicate_get_value(self, *args)
12040 
12041  def get_value_index(self, *args):
12042  r"""
12043  get_value_index(AttributeSingletonPredicate self, Model m, ParticleIndex pi) -> int
12044  get_value_index(AttributeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
12045  """
12046  return _IMP_core.AttributeSingletonPredicate_get_value_index(self, *args)
12047 
12048  def get_version_info(self):
12049  r"""get_version_info(AttributeSingletonPredicate self) -> VersionInfo"""
12050  return _IMP_core.AttributeSingletonPredicate_get_version_info(self)
12051  __swig_destroy__ = _IMP_core.delete_AttributeSingletonPredicate
12052 
12053  def __str__(self):
12054  r"""__str__(AttributeSingletonPredicate self) -> std::string"""
12055  return _IMP_core.AttributeSingletonPredicate___str__(self)
12056 
12057  def __repr__(self):
12058  r"""__repr__(AttributeSingletonPredicate self) -> std::string"""
12059  return _IMP_core.AttributeSingletonPredicate___repr__(self)
12060 
12061  @staticmethod
12062  def get_from(o):
12063  return _object_cast_to_AttributeSingletonPredicate(o)
12064 
12065 
12066 # Register AttributeSingletonPredicate in _IMP_core:
12067 _IMP_core.AttributeSingletonPredicate_swigregister(AttributeSingletonPredicate)
12068 class IsCollisionPairPredicate(IMP.PairPredicate):
12069  r"""Proxy of C++ IMP::core::IsCollisionPairPredicate class."""
12070 
12071  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12072 
12073  def __init__(self, *args):
12074  r"""__init__(IsCollisionPairPredicate self, std::string name="CollisionPairPredicate%1%") -> IsCollisionPairPredicate"""
12075  _IMP_core.IsCollisionPairPredicate_swiginit(self, _IMP_core.new_IsCollisionPairPredicate(*args))
12076 
12077  def do_get_inputs(self, m, pi):
12078  r"""do_get_inputs(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12079  return _IMP_core.IsCollisionPairPredicate_do_get_inputs(self, m, pi)
12080 
12081  def get_value(self, *args):
12082  r"""
12083  get_value(IsCollisionPairPredicate self, IMP::ParticlePair const & a) -> int
12084  get_value(IsCollisionPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
12085  """
12086  return _IMP_core.IsCollisionPairPredicate_get_value(self, *args)
12087 
12088  def get_value_index(self, *args):
12089  r"""
12090  get_value_index(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
12091  get_value_index(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
12092  """
12093  return _IMP_core.IsCollisionPairPredicate_get_value_index(self, *args)
12094 
12095  def get_version_info(self):
12096  r"""get_version_info(IsCollisionPairPredicate self) -> VersionInfo"""
12097  return _IMP_core.IsCollisionPairPredicate_get_version_info(self)
12098  __swig_destroy__ = _IMP_core.delete_IsCollisionPairPredicate
12099 
12100  def __str__(self):
12101  r"""__str__(IsCollisionPairPredicate self) -> std::string"""
12102  return _IMP_core.IsCollisionPairPredicate___str__(self)
12103 
12104  def __repr__(self):
12105  r"""__repr__(IsCollisionPairPredicate self) -> std::string"""
12106  return _IMP_core.IsCollisionPairPredicate___repr__(self)
12107 
12108  @staticmethod
12109  def get_from(o):
12110  return _object_cast_to_IsCollisionPairPredicate(o)
12111 
12112 
12113 # Register IsCollisionPairPredicate in _IMP_core:
12114 _IMP_core.IsCollisionPairPredicate_swigregister(IsCollisionPairPredicate)
12115 class AngleRestraint(TripletRestraint):
12116  r"""Proxy of C++ IMP::core::AngleRestraint class."""
12117 
12118  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12119 
12120  def __init__(self, *args):
12121  r"""
12122  __init__(AngleRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3) -> AngleRestraint
12123  __init__(AngleRestraint self) -> AngleRestraint
12124  """
12125  _IMP_core.AngleRestraint_swiginit(self, _IMP_core.new_AngleRestraint(*args))
12126  __swig_destroy__ = _IMP_core.delete_AngleRestraint
12127 
12128  def __str__(self):
12129  r"""__str__(AngleRestraint self) -> std::string"""
12130  return _IMP_core.AngleRestraint___str__(self)
12131 
12132  def __repr__(self):
12133  r"""__repr__(AngleRestraint self) -> std::string"""
12134  return _IMP_core.AngleRestraint___repr__(self)
12135 
12136  @staticmethod
12137  def get_from(o):
12138  return _object_cast_to_AngleRestraint(o)
12139 
12140 
12141  def _get_as_binary(self):
12142  r"""_get_as_binary(AngleRestraint self) -> PyObject *"""
12143  return _IMP_core.AngleRestraint__get_as_binary(self)
12144 
12145  def _set_from_binary(self, p):
12146  r"""_set_from_binary(AngleRestraint self, PyObject * p)"""
12147  return _IMP_core.AngleRestraint__set_from_binary(self, p)
12148 
12149  def __getstate__(self):
12150  p = self._get_as_binary()
12151  if len(self.__dict__) > 1:
12152  d = self.__dict__.copy()
12153  del d['this']
12154  p = (d, p)
12155  return p
12156 
12157  def __setstate__(self, p):
12158  if not hasattr(self, 'this'):
12159  self.__init__()
12160  if isinstance(p, tuple):
12161  d, p = p
12162  self.__dict__.update(d)
12163  return self._set_from_binary(p)
12164 
12165 
12166 # Register AngleRestraint in _IMP_core:
12167 _IMP_core.AngleRestraint_swigregister(AngleRestraint)
12168 class RigidBodyMover(MonteCarloMover):
12169  r"""Proxy of C++ IMP::core::RigidBodyMover class."""
12170 
12171  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12172 
12173  def __init__(self, *args):
12174  r"""
12175  __init__(RigidBodyMover self, Model m, ParticleIndex pi, IMP::Float max_translation, IMP::Float max_rotation) -> RigidBodyMover
12176  __init__(RigidBodyMover self) -> RigidBodyMover
12177  """
12178  _IMP_core.RigidBodyMover_swiginit(self, _IMP_core.new_RigidBodyMover(*args))
12179 
12180  def set_maximum_translation(self, mt):
12181  r"""set_maximum_translation(RigidBodyMover self, IMP::Float mt)"""
12182  return _IMP_core.RigidBodyMover_set_maximum_translation(self, mt)
12183 
12184  def set_maximum_rotation(self, mr):
12185  r"""set_maximum_rotation(RigidBodyMover self, IMP::Float mr)"""
12186  return _IMP_core.RigidBodyMover_set_maximum_rotation(self, mr)
12187 
12188  def get_maximum_translation(self):
12189  r"""get_maximum_translation(RigidBodyMover self) -> IMP::Float"""
12190  return _IMP_core.RigidBodyMover_get_maximum_translation(self)
12191 
12192  def get_maximum_rotation(self):
12193  r"""get_maximum_rotation(RigidBodyMover self) -> IMP::Float"""
12194  return _IMP_core.RigidBodyMover_get_maximum_rotation(self)
12195 
12196  def get_version_info(self):
12197  r"""get_version_info(RigidBodyMover self) -> VersionInfo"""
12198  return _IMP_core.RigidBodyMover_get_version_info(self)
12199  __swig_destroy__ = _IMP_core.delete_RigidBodyMover
12200 
12201  def __str__(self):
12202  r"""__str__(RigidBodyMover self) -> std::string"""
12203  return _IMP_core.RigidBodyMover___str__(self)
12204 
12205  def __repr__(self):
12206  r"""__repr__(RigidBodyMover self) -> std::string"""
12207  return _IMP_core.RigidBodyMover___repr__(self)
12208 
12209  @staticmethod
12210  def get_from(o):
12211  return _object_cast_to_RigidBodyMover(o)
12212 
12213 
12214  def _get_as_binary(self):
12215  r"""_get_as_binary(RigidBodyMover self) -> PyObject *"""
12216  return _IMP_core.RigidBodyMover__get_as_binary(self)
12217 
12218  def _set_from_binary(self, p):
12219  r"""_set_from_binary(RigidBodyMover self, PyObject * p)"""
12220  return _IMP_core.RigidBodyMover__set_from_binary(self, p)
12221 
12222  def __getstate__(self):
12223  p = self._get_as_binary()
12224  if len(self.__dict__) > 1:
12225  d = self.__dict__.copy()
12226  del d['this']
12227  p = (d, p)
12228  return p
12229 
12230  def __setstate__(self, p):
12231  if not hasattr(self, 'this'):
12232  self.__init__()
12233  if isinstance(p, tuple):
12234  d, p = p
12235  self.__dict__.update(d)
12236  return self._set_from_binary(p)
12237 
12238 
12239 # Register RigidBodyMover in _IMP_core:
12240 _IMP_core.RigidBodyMover_swigregister(RigidBodyMover)
12241 class RigidBodyTunneler(MonteCarloMover):
12242  r"""Proxy of C++ IMP::core::RigidBodyTunneler class."""
12243 
12244  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12245 
12246  def __init__(self, m, pis, ref, k, move_probability=1.):
12247  r"""__init__(RigidBodyTunneler self, Model m, IMP::ParticleIndexes pis, ParticleIndex ref, double k, double move_probability=1.) -> RigidBodyTunneler"""
12248  _IMP_core.RigidBodyTunneler_swiginit(self, _IMP_core.new_RigidBodyTunneler(m, pis, ref, k, move_probability))
12249 
12250  def add_entry_point(self, fl):
12251  r"""add_entry_point(RigidBodyTunneler self, IMP::Floats fl)"""
12252  return _IMP_core.RigidBodyTunneler_add_entry_point(self, fl)
12253 
12254  def reset_stats(self):
12255  r"""reset_stats(RigidBodyTunneler self)"""
12256  return _IMP_core.RigidBodyTunneler_reset_stats(self)
12257 
12258  def get_number_of_rejected_moves(self):
12259  r"""get_number_of_rejected_moves(RigidBodyTunneler self) -> unsigned int"""
12260  return _IMP_core.RigidBodyTunneler_get_number_of_rejected_moves(self)
12261 
12262  def get_number_of_proposed_moves(self):
12263  r"""get_number_of_proposed_moves(RigidBodyTunneler self) -> unsigned int"""
12264  return _IMP_core.RigidBodyTunneler_get_number_of_proposed_moves(self)
12265 
12266  def get_number_of_impossible_moves(self):
12267  r"""get_number_of_impossible_moves(RigidBodyTunneler self) -> unsigned int"""
12268  return _IMP_core.RigidBodyTunneler_get_number_of_impossible_moves(self)
12269 
12270  def get_number_of_calls(self):
12271  r"""get_number_of_calls(RigidBodyTunneler self) -> unsigned int"""
12272  return _IMP_core.RigidBodyTunneler_get_number_of_calls(self)
12273 
12274  @staticmethod
12275  def get_reduced_coordinates(*args):
12276  r"""
12277  get_reduced_coordinates(Model m, ParticleIndex target, ParticleIndex ref) -> IMP::Floats
12278  get_reduced_coordinates(Model m, ParticleIndex pi) -> IMP::Floats
12279  """
12280  return _IMP_core.RigidBodyTunneler_get_reduced_coordinates(*args)
12281 
12282  @staticmethod
12283  def set_reduced_coordinates(m, target, ref, coords):
12284  r"""set_reduced_coordinates(Model m, ParticleIndex target, ParticleIndex ref, IMP::Floats coords)"""
12285  return _IMP_core.RigidBodyTunneler_set_reduced_coordinates(m, target, ref, coords)
12286 
12287  def get_version_info(self):
12288  r"""get_version_info(RigidBodyTunneler self) -> VersionInfo"""
12289  return _IMP_core.RigidBodyTunneler_get_version_info(self)
12290  __swig_destroy__ = _IMP_core.delete_RigidBodyTunneler
12291 
12292  def __str__(self):
12293  r"""__str__(RigidBodyTunneler self) -> std::string"""
12294  return _IMP_core.RigidBodyTunneler___str__(self)
12295 
12296  def __repr__(self):
12297  r"""__repr__(RigidBodyTunneler self) -> std::string"""
12298  return _IMP_core.RigidBodyTunneler___repr__(self)
12299 
12300  @staticmethod
12301  def get_from(o):
12302  return _object_cast_to_RigidBodyTunneler(o)
12303 
12304 
12305 # Register RigidBodyTunneler in _IMP_core:
12306 _IMP_core.RigidBodyTunneler_swigregister(RigidBodyTunneler)
12307 class RigidBodyUmbrella(IMP.Restraint):
12308  r"""Proxy of C++ IMP::core::RigidBodyUmbrella class."""
12309 
12310  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12311 
12312  def __init__(self, *args):
12313  r"""
12314  __init__(RigidBodyUmbrella self, Model m, ParticleIndex pi, ParticleIndex ref, IMP::Floats x0, double alpha, double k, std::string name="RigidBodyUmbrella %1%") -> RigidBodyUmbrella
12315  __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
12316  """
12317  _IMP_core.RigidBodyUmbrella_swiginit(self, _IMP_core.new_RigidBodyUmbrella(*args))
12318 
12319  def set_x0(self, *args):
12320  r"""
12321  set_x0(RigidBodyUmbrella self, IMP::Floats x0)
12322  set_x0(RigidBodyUmbrella self, double _lambda, IMP::Floats x1, IMP::Floats x2)
12323  """
12324  return _IMP_core.RigidBodyUmbrella_set_x0(self, *args)
12325 
12326  def get_x0(self):
12327  r"""get_x0(RigidBodyUmbrella self) -> IMP::Floats"""
12328  return _IMP_core.RigidBodyUmbrella_get_x0(self)
12329 
12330  def get_x(self):
12331  r"""get_x(RigidBodyUmbrella self) -> IMP::Floats"""
12332  return _IMP_core.RigidBodyUmbrella_get_x(self)
12333 
12334  def set_alpha(self, alpha):
12335  r"""set_alpha(RigidBodyUmbrella self, double alpha)"""
12336  return _IMP_core.RigidBodyUmbrella_set_alpha(self, alpha)
12337 
12338  def set_k(self, k):
12339  r"""set_k(RigidBodyUmbrella self, double k)"""
12340  return _IMP_core.RigidBodyUmbrella_set_k(self, k)
12341 
12342  def get_version_info(self):
12343  r"""get_version_info(RigidBodyUmbrella self) -> VersionInfo"""
12344  return _IMP_core.RigidBodyUmbrella_get_version_info(self)
12345  __swig_destroy__ = _IMP_core.delete_RigidBodyUmbrella
12346 
12347  def __str__(self):
12348  r"""__str__(RigidBodyUmbrella self) -> std::string"""
12349  return _IMP_core.RigidBodyUmbrella___str__(self)
12350 
12351  def __repr__(self):
12352  r"""__repr__(RigidBodyUmbrella self) -> std::string"""
12353  return _IMP_core.RigidBodyUmbrella___repr__(self)
12354 
12355  @staticmethod
12356  def get_from(o):
12357  return _object_cast_to_RigidBodyUmbrella(o)
12358 
12359 
12360 # Register RigidBodyUmbrella in _IMP_core:
12361 _IMP_core.RigidBodyUmbrella_swigregister(RigidBodyUmbrella)
12362 class VolumeRestraint(IMP.Restraint):
12363  r"""Proxy of C++ IMP::core::VolumeRestraint class."""
12364 
12365  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12366 
12367  def __init__(self, f, sc, volume):
12368  r"""__init__(VolumeRestraint self, UnaryFunction f, SingletonContainer sc, double volume) -> VolumeRestraint"""
12369  _IMP_core.VolumeRestraint_swiginit(self, _IMP_core.new_VolumeRestraint(f, sc, volume))
12370 
12371  def do_get_inputs(self):
12372  r"""do_get_inputs(VolumeRestraint self) -> IMP::ModelObjectsTemp"""
12373  return _IMP_core.VolumeRestraint_do_get_inputs(self)
12374 
12375  def get_version_info(self):
12376  r"""get_version_info(VolumeRestraint self) -> VersionInfo"""
12377  return _IMP_core.VolumeRestraint_get_version_info(self)
12378  __swig_destroy__ = _IMP_core.delete_VolumeRestraint
12379 
12380  def __str__(self):
12381  r"""__str__(VolumeRestraint self) -> std::string"""
12382  return _IMP_core.VolumeRestraint___str__(self)
12383 
12384  def __repr__(self):
12385  r"""__repr__(VolumeRestraint self) -> std::string"""
12386  return _IMP_core.VolumeRestraint___repr__(self)
12387 
12388  @staticmethod
12389  def get_from(o):
12390  return _object_cast_to_VolumeRestraint(o)
12391 
12392 
12393 # Register VolumeRestraint in _IMP_core:
12394 _IMP_core.VolumeRestraint_swigregister(VolumeRestraint)
12395 
12396 def get_centroid(ps):
12397  r"""get_centroid(IMP::core::XYZs const & ps) -> Vector3D"""
12398  return _IMP_core.get_centroid(ps)
12399 
12400 def get_bounding_box(ps):
12401  r"""get_bounding_box(IMP::core::XYZRs const & ps) -> BoundingBox3D"""
12402  return _IMP_core.get_bounding_box(ps)
12403 class MoveStatisticsScoreState(IMP.ScoreState):
12404  r"""Proxy of C++ IMP::core::MoveStatisticsScoreState class."""
12405 
12406  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12407 
12408  def __init__(self, ps):
12409  r"""__init__(MoveStatisticsScoreState self, IMP::ParticlesTemp const & ps) -> MoveStatisticsScoreState"""
12410  _IMP_core.MoveStatisticsScoreState_swiginit(self, _IMP_core.new_MoveStatisticsScoreState(ps))
12411 
12412  def show_statistics(self, *args):
12413  r"""show_statistics(MoveStatisticsScoreState self, _ostream out=std::cout)"""
12414  return _IMP_core.MoveStatisticsScoreState_show_statistics(self, *args)
12415 
12416  def reset(self):
12417  r"""reset(MoveStatisticsScoreState self)"""
12418  return _IMP_core.MoveStatisticsScoreState_reset(self)
12419 
12420  def do_before_evaluate(self):
12421  r"""do_before_evaluate(MoveStatisticsScoreState self)"""
12422  return _IMP_core.MoveStatisticsScoreState_do_before_evaluate(self)
12423 
12424  def do_after_evaluate(self, da):
12425  r"""do_after_evaluate(MoveStatisticsScoreState self, DerivativeAccumulator da)"""
12426  return _IMP_core.MoveStatisticsScoreState_do_after_evaluate(self, da)
12427 
12428  def do_get_inputs(self):
12429  r"""do_get_inputs(MoveStatisticsScoreState self) -> IMP::ModelObjectsTemp"""
12430  return _IMP_core.MoveStatisticsScoreState_do_get_inputs(self)
12431 
12432  def do_get_outputs(self):
12433  r"""do_get_outputs(MoveStatisticsScoreState self) -> IMP::ModelObjectsTemp"""
12434  return _IMP_core.MoveStatisticsScoreState_do_get_outputs(self)
12435 
12436  def get_version_info(self):
12437  r"""get_version_info(MoveStatisticsScoreState self) -> VersionInfo"""
12438  return _IMP_core.MoveStatisticsScoreState_get_version_info(self)
12439  __swig_destroy__ = _IMP_core.delete_MoveStatisticsScoreState
12440 
12441  def __str__(self):
12442  r"""__str__(MoveStatisticsScoreState self) -> std::string"""
12443  return _IMP_core.MoveStatisticsScoreState___str__(self)
12444 
12445  def __repr__(self):
12446  r"""__repr__(MoveStatisticsScoreState self) -> std::string"""
12447  return _IMP_core.MoveStatisticsScoreState___repr__(self)
12448 
12449  @staticmethod
12450  def get_from(o):
12451  return _object_cast_to_MoveStatisticsScoreState(o)
12452 
12453 
12454 # Register MoveStatisticsScoreState in _IMP_core:
12455 _IMP_core.MoveStatisticsScoreState_swigregister(MoveStatisticsScoreState)
12456 IMP_PARTICLE_TYPE_INDEX = _IMP_core.IMP_PARTICLE_TYPE_INDEX
12457 
12458 class Typed(IMP.Decorator):
12459  r"""Proxy of C++ IMP::core::Typed class."""
12460 
12461  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12462 
12463  @staticmethod
12464  def get_type_key():
12465  r"""get_type_key() -> IntKey"""
12466  return _IMP_core.Typed_get_type_key()
12467 
12468  def __init__(self, *args):
12469  r"""
12470  __init__(Typed self) -> Typed
12471  __init__(Typed self, Model m, ParticleIndex id) -> Typed
12472  __init__(Typed self, _ParticleAdaptor d) -> Typed
12473  """
12474  _IMP_core.Typed_swiginit(self, _IMP_core.new_Typed(*args))
12475 
12476  def show(self, *args):
12477  r"""show(Typed self, _ostream out=std::cout)"""
12478  return _IMP_core.Typed_show(self, *args)
12479 
12480  @staticmethod
12481  def setup_particle(*args):
12482  r"""
12483  setup_particle(Model m, ParticleIndex pi, ParticleType t) -> Typed
12484  setup_particle(_ParticleAdaptor pa, ParticleType t) -> Typed
12485  """
12486  return _IMP_core.Typed_setup_particle(*args)
12487 
12488  @staticmethod
12489  def get_is_setup(*args):
12490  r"""
12491  get_is_setup(_ParticleAdaptor p) -> bool
12492  get_is_setup(Model m, ParticleIndex pi) -> bool
12493  """
12494  return _IMP_core.Typed_get_is_setup(*args)
12495 
12496  def get_type(self):
12497  r"""get_type(Typed self) -> ParticleType"""
12498  return _IMP_core.Typed_get_type(self)
12499 
12500  def set_type(self, pt):
12501  r"""set_type(Typed self, ParticleType pt)"""
12502  return _IMP_core.Typed_set_type(self, pt)
12503 
12504  def add_attribute(self, *args):
12505  r"""
12506  add_attribute(Typed self, FloatKey k, IMP::Float v, bool opt)
12507  add_attribute(Typed self, FloatKey a0, IMP::Float a1)
12508  add_attribute(Typed self, IntKey a0, IMP::Int a1)
12509  add_attribute(Typed self, FloatsKey a0, IMP::Floats a1)
12510  add_attribute(Typed self, IntsKey a0, IMP::Ints a1)
12511  add_attribute(Typed self, StringKey a0, IMP::String a1)
12512  add_attribute(Typed self, ParticleIndexKey a0, Particle a1)
12513  add_attribute(Typed self, ObjectKey a0, Object a1)
12514  """
12515  return _IMP_core.Typed_add_attribute(self, *args)
12516 
12517  def get_value(self, *args):
12518  r"""
12519  get_value(Typed self, FloatKey a0) -> IMP::Float
12520  get_value(Typed self, IntKey a0) -> IMP::Int
12521  get_value(Typed self, FloatsKey a0) -> IMP::Floats
12522  get_value(Typed self, IntsKey a0) -> IMP::Ints
12523  get_value(Typed self, StringKey a0) -> IMP::String
12524  get_value(Typed self, ParticleIndexKey a0) -> Particle
12525  get_value(Typed self, ObjectKey a0) -> Object
12526  """
12527  return _IMP_core.Typed_get_value(self, *args)
12528 
12529  def set_value(self, *args):
12530  r"""
12531  set_value(Typed self, FloatKey a0, IMP::Float a1)
12532  set_value(Typed self, IntKey a0, IMP::Int a1)
12533  set_value(Typed self, FloatsKey a0, IMP::Floats a1)
12534  set_value(Typed self, IntsKey a0, IMP::Ints a1)
12535  set_value(Typed self, StringKey a0, IMP::String a1)
12536  set_value(Typed self, ParticleIndexKey a0, Particle a1)
12537  set_value(Typed self, ObjectKey a0, Object a1)
12538  """
12539  return _IMP_core.Typed_set_value(self, *args)
12540 
12541  def remove_attribute(self, *args):
12542  r"""
12543  remove_attribute(Typed self, FloatKey a0)
12544  remove_attribute(Typed self, IntKey a0)
12545  remove_attribute(Typed self, FloatsKey a0)
12546  remove_attribute(Typed self, IntsKey a0)
12547  remove_attribute(Typed self, StringKey a0)
12548  remove_attribute(Typed self, ParticleIndexKey a0)
12549  remove_attribute(Typed self, ObjectKey a0)
12550  """
12551  return _IMP_core.Typed_remove_attribute(self, *args)
12552 
12553  def has_attribute(self, *args):
12554  r"""
12555  has_attribute(Typed self, FloatKey a0) -> bool
12556  has_attribute(Typed self, IntKey a0) -> bool
12557  has_attribute(Typed self, FloatsKey a0) -> bool
12558  has_attribute(Typed self, IntsKey a0) -> bool
12559  has_attribute(Typed self, StringKey a0) -> bool
12560  has_attribute(Typed self, ParticleIndexKey a0) -> bool
12561  has_attribute(Typed self, ObjectKey a0) -> bool
12562  """
12563  return _IMP_core.Typed_has_attribute(self, *args)
12564 
12565  def get_derivative(self, a0):
12566  r"""get_derivative(Typed self, FloatKey a0) -> double"""
12567  return _IMP_core.Typed_get_derivative(self, a0)
12568 
12569  def get_name(self):
12570  r"""get_name(Typed self) -> std::string"""
12571  return _IMP_core.Typed_get_name(self)
12572 
12573  def clear_caches(self):
12574  r"""clear_caches(Typed self)"""
12575  return _IMP_core.Typed_clear_caches(self)
12576 
12577  def set_name(self, a0):
12578  r"""set_name(Typed self, std::string a0)"""
12579  return _IMP_core.Typed_set_name(self, a0)
12580 
12581  def set_check_level(self, a0):
12582  r"""set_check_level(Typed self, IMP::CheckLevel a0)"""
12583  return _IMP_core.Typed_set_check_level(self, a0)
12584 
12585  def add_to_derivative(self, a0, a1, a2):
12586  r"""add_to_derivative(Typed self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
12587  return _IMP_core.Typed_add_to_derivative(self, a0, a1, a2)
12588 
12589  def set_is_optimized(self, a0, a1):
12590  r"""set_is_optimized(Typed self, FloatKey a0, bool a1)"""
12591  return _IMP_core.Typed_set_is_optimized(self, a0, a1)
12592 
12593  def get_is_optimized(self, a0):
12594  r"""get_is_optimized(Typed self, FloatKey a0) -> bool"""
12595  return _IMP_core.Typed_get_is_optimized(self, a0)
12596 
12597  def get_check_level(self):
12598  r"""get_check_level(Typed self) -> IMP::CheckLevel"""
12599  return _IMP_core.Typed_get_check_level(self)
12600 
12601  def __eq__(self, *args):
12602  r"""
12603  __eq__(Typed self, Typed o) -> bool
12604  __eq__(Typed self, Particle d) -> bool
12605  """
12606  return _IMP_core.Typed___eq__(self, *args)
12607 
12608  def __ne__(self, *args):
12609  r"""
12610  __ne__(Typed self, Typed o) -> bool
12611  __ne__(Typed self, Particle d) -> bool
12612  """
12613  return _IMP_core.Typed___ne__(self, *args)
12614 
12615  def __le__(self, *args):
12616  r"""
12617  __le__(Typed self, Typed o) -> bool
12618  __le__(Typed self, Particle d) -> bool
12619  """
12620  return _IMP_core.Typed___le__(self, *args)
12621 
12622  def __lt__(self, *args):
12623  r"""
12624  __lt__(Typed self, Typed o) -> bool
12625  __lt__(Typed self, Particle d) -> bool
12626  """
12627  return _IMP_core.Typed___lt__(self, *args)
12628 
12629  def __ge__(self, *args):
12630  r"""
12631  __ge__(Typed self, Typed o) -> bool
12632  __ge__(Typed self, Particle d) -> bool
12633  """
12634  return _IMP_core.Typed___ge__(self, *args)
12635 
12636  def __gt__(self, *args):
12637  r"""
12638  __gt__(Typed self, Typed o) -> bool
12639  __gt__(Typed self, Particle d) -> bool
12640  """
12641  return _IMP_core.Typed___gt__(self, *args)
12642 
12643  def __hash__(self):
12644  r"""__hash__(Typed self) -> std::size_t"""
12645  return _IMP_core.Typed___hash__(self)
12646 
12647  def __str__(self):
12648  r"""__str__(Typed self) -> std::string"""
12649  return _IMP_core.Typed___str__(self)
12650 
12651  def __repr__(self):
12652  r"""__repr__(Typed self) -> std::string"""
12653  return _IMP_core.Typed___repr__(self)
12654 
12655  def _get_as_binary(self):
12656  r"""_get_as_binary(Typed self) -> PyObject *"""
12657  return _IMP_core.Typed__get_as_binary(self)
12658 
12659  def _set_from_binary(self, p):
12660  r"""_set_from_binary(Typed self, PyObject * p)"""
12661  return _IMP_core.Typed__set_from_binary(self, p)
12662 
12663  def __getstate__(self):
12664  p = self._get_as_binary()
12665  if len(self.__dict__) > 1:
12666  d = self.__dict__.copy()
12667  del d['this']
12668  p = (d, p)
12669  return p
12670 
12671  def __setstate__(self, p):
12672  if not hasattr(self, 'this'):
12673  self.__init__()
12674  if isinstance(p, tuple):
12675  d, p = p
12676  self.__dict__.update(d)
12677  return self._set_from_binary(p)
12678 
12679  __swig_destroy__ = _IMP_core.delete_Typed
12680 
12681 # Register Typed in _IMP_core:
12682 _IMP_core.Typed_swigregister(Typed)
12683 
12684 def __lshift__(*args):
12685  r"""
12686  __lshift__(_ostream out, XYZ n) -> _ostream
12687  __lshift__(_ostream out, XYZR n) -> _ostream
12688  __lshift__(_ostream out, Direction n) -> _ostream
12689  __lshift__(_ostream out, DirectionAngle n) -> _ostream
12690  __lshift__(_ostream out, Surface n) -> _ostream
12691  __lshift__(_ostream out, Centroid n) -> _ostream
12692  __lshift__(_ostream out, Cover n) -> _ostream
12693  __lshift__(_ostream out, Reference n) -> _ostream
12694  __lshift__(_ostream out, RigidMember n) -> _ostream
12695  __lshift__(_ostream out, RigidBody n) -> _ostream
12696  __lshift__(_ostream out, Gaussian n) -> _ostream
12697  __lshift__(_ostream out, Typed n) -> _ostream
12698  """
12699  return _IMP_core.__lshift__(*args)
12700 class WriteRestraintScoresOptimizerState(IMP.OptimizerState):
12701  r"""Proxy of C++ IMP::core::WriteRestraintScoresOptimizerState class."""
12702 
12703  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12704 
12705  def __init__(self, rs, out):
12706  r"""__init__(WriteRestraintScoresOptimizerState self, IMP::Restraints const & rs, TextOutput out) -> WriteRestraintScoresOptimizerState"""
12707  _IMP_core.WriteRestraintScoresOptimizerState_swiginit(self, _IMP_core.new_WriteRestraintScoresOptimizerState(rs, out))
12708 
12709  def get_version_info(self):
12710  r"""get_version_info(WriteRestraintScoresOptimizerState self) -> VersionInfo"""
12711  return _IMP_core.WriteRestraintScoresOptimizerState_get_version_info(self)
12712  __swig_destroy__ = _IMP_core.delete_WriteRestraintScoresOptimizerState
12713 
12714  def __str__(self):
12715  r"""__str__(WriteRestraintScoresOptimizerState self) -> std::string"""
12716  return _IMP_core.WriteRestraintScoresOptimizerState___str__(self)
12717 
12718  def __repr__(self):
12719  r"""__repr__(WriteRestraintScoresOptimizerState self) -> std::string"""
12720  return _IMP_core.WriteRestraintScoresOptimizerState___repr__(self)
12721 
12722  @staticmethod
12723  def get_from(o):
12724  return _object_cast_to_WriteRestraintScoresOptimizerState(o)
12725 
12726 
12727 # Register WriteRestraintScoresOptimizerState in _IMP_core:
12728 _IMP_core.WriteRestraintScoresOptimizerState_swigregister(WriteRestraintScoresOptimizerState)
12729 
12730 def assign_blame(rs, ps, attribute):
12731  r"""assign_blame(IMP::RestraintsTemp const & rs, IMP::ParticlesTemp const & ps, FloatKey attribute)"""
12732  return _IMP_core.assign_blame(rs, ps, attribute)
12733 
12734 def create_blame_geometries(*args):
12735  r"""create_blame_geometries(IMP::RestraintsTemp const & rs, IMP::ParticlesTemp const & ps, double max=NO_MAX, std::string name=std::string()) -> IMP::display::Geometries"""
12736  return _IMP_core.create_blame_geometries(*args)
12737 class MultipleBinormalRestraint(IMP.Restraint):
12738  r"""Proxy of C++ IMP::core::MultipleBinormalRestraint class."""
12739 
12740  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12741 
12742  def __init__(self, m, q1, q2):
12743  r"""__init__(MultipleBinormalRestraint self, Model m, IMP::ParticleIndexQuad const & q1, IMP::ParticleIndexQuad const & q2) -> MultipleBinormalRestraint"""
12744  _IMP_core.MultipleBinormalRestraint_swiginit(self, _IMP_core.new_MultipleBinormalRestraint(m, q1, q2))
12745 
12746  def add_term(self, term):
12747  r"""add_term(MultipleBinormalRestraint self, BinormalTerm term)"""
12748  return _IMP_core.MultipleBinormalRestraint_add_term(self, term)
12749 
12750  def do_get_inputs(self):
12751  r"""do_get_inputs(MultipleBinormalRestraint self) -> IMP::ModelObjectsTemp"""
12752  return _IMP_core.MultipleBinormalRestraint_do_get_inputs(self)
12753 
12754  def get_version_info(self):
12755  r"""get_version_info(MultipleBinormalRestraint self) -> VersionInfo"""
12756  return _IMP_core.MultipleBinormalRestraint_get_version_info(self)
12757  __swig_destroy__ = _IMP_core.delete_MultipleBinormalRestraint
12758 
12759  def __str__(self):
12760  r"""__str__(MultipleBinormalRestraint self) -> std::string"""
12761  return _IMP_core.MultipleBinormalRestraint___str__(self)
12762 
12763  def __repr__(self):
12764  r"""__repr__(MultipleBinormalRestraint self) -> std::string"""
12765  return _IMP_core.MultipleBinormalRestraint___repr__(self)
12766 
12767  @staticmethod
12768  def get_from(o):
12769  return _object_cast_to_MultipleBinormalRestraint(o)
12770 
12771 
12772 # Register MultipleBinormalRestraint in _IMP_core:
12773 _IMP_core.MultipleBinormalRestraint_swigregister(MultipleBinormalRestraint)
12774 class BinormalTerm(object):
12775  r"""Proxy of C++ IMP::core::BinormalTerm class."""
12776 
12777  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12778 
12779  def __init__(self):
12780  r"""__init__(BinormalTerm self) -> BinormalTerm"""
12781  _IMP_core.BinormalTerm_swiginit(self, _IMP_core.new_BinormalTerm())
12782 
12783  def set_correlation(self, correlation):
12784  r"""set_correlation(BinormalTerm self, double correlation)"""
12785  return _IMP_core.BinormalTerm_set_correlation(self, correlation)
12786 
12787  def set_weight(self, weight):
12788  r"""set_weight(BinormalTerm self, double weight)"""
12789  return _IMP_core.BinormalTerm_set_weight(self, weight)
12790 
12791  def set_means(self, means):
12792  r"""set_means(BinormalTerm self, IMP::FloatPair means)"""
12793  return _IMP_core.BinormalTerm_set_means(self, means)
12794 
12795  def set_standard_deviations(self, stdevs):
12796  r"""set_standard_deviations(BinormalTerm self, IMP::FloatPair stdevs)"""
12797  return _IMP_core.BinormalTerm_set_standard_deviations(self, stdevs)
12798 
12799  def show(self, *args):
12800  r"""show(BinormalTerm self, _ostream out=std::cout)"""
12801  return _IMP_core.BinormalTerm_show(self, *args)
12802 
12803  def __str__(self):
12804  r"""__str__(BinormalTerm self) -> std::string"""
12805  return _IMP_core.BinormalTerm___str__(self)
12806 
12807  def __repr__(self):
12808  r"""__repr__(BinormalTerm self) -> std::string"""
12809  return _IMP_core.BinormalTerm___repr__(self)
12810 
12811  def _get_as_binary(self):
12812  r"""_get_as_binary(BinormalTerm self) -> PyObject *"""
12813  return _IMP_core.BinormalTerm__get_as_binary(self)
12814 
12815  def _set_from_binary(self, p):
12816  r"""_set_from_binary(BinormalTerm self, PyObject * p)"""
12817  return _IMP_core.BinormalTerm__set_from_binary(self, p)
12818 
12819  def __getstate__(self):
12820  p = self._get_as_binary()
12821  if len(self.__dict__) > 1:
12822  d = self.__dict__.copy()
12823  del d['this']
12824  p = (d, p)
12825  return p
12826 
12827  def __setstate__(self, p):
12828  if not hasattr(self, 'this'):
12829  self.__init__()
12830  if isinstance(p, tuple):
12831  d, p = p
12832  self.__dict__.update(d)
12833  return self._set_from_binary(p)
12834 
12835  __swig_destroy__ = _IMP_core.delete_BinormalTerm
12836 
12837 # Register BinormalTerm in _IMP_core:
12838 _IMP_core.BinormalTerm_swigregister(BinormalTerm)
12839 class Provenance(IMP.Decorator):
12840  r"""Proxy of C++ IMP::core::Provenance class."""
12841 
12842  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12843 
12844  def get_previous(self):
12845  r"""get_previous(Provenance self) -> Provenance"""
12846  return _IMP_core.Provenance_get_previous(self)
12847 
12848  def set_previous(self, p):
12849  r"""set_previous(Provenance self, Provenance p)"""
12850  return _IMP_core.Provenance_set_previous(self, p)
12851 
12852  def __init__(self, *args):
12853  r"""
12854  __init__(Provenance self) -> Provenance
12855  __init__(Provenance self, Model m, ParticleIndex id) -> Provenance
12856  __init__(Provenance self, _ParticleAdaptor d) -> Provenance
12857  """
12858  _IMP_core.Provenance_swiginit(self, _IMP_core.new_Provenance(*args))
12859 
12860  @staticmethod
12861  def get_is_setup(*args):
12862  r"""
12863  get_is_setup(Model m, ParticleIndex pi) -> bool
12864  get_is_setup(_ParticleAdaptor p) -> bool
12865  """
12866  return _IMP_core.Provenance_get_is_setup(*args)
12867 
12868  def show(self, *args):
12869  r"""show(Provenance self, _ostream out=std::cout)"""
12870  return _IMP_core.Provenance_show(self, *args)
12871 
12872  @staticmethod
12873  def setup_particle(*args):
12874  r"""
12875  setup_particle(Model m, ParticleIndex pi) -> Provenance
12876  setup_particle(_ParticleAdaptor pa) -> Provenance
12877  """
12878  return _IMP_core.Provenance_setup_particle(*args)
12879 
12880  def add_attribute(self, *args):
12881  r"""
12882  add_attribute(Provenance self, FloatKey k, IMP::Float v, bool opt)
12883  add_attribute(Provenance self, FloatKey a0, IMP::Float a1)
12884  add_attribute(Provenance self, IntKey a0, IMP::Int a1)
12885  add_attribute(Provenance self, FloatsKey a0, IMP::Floats a1)
12886  add_attribute(Provenance self, IntsKey a0, IMP::Ints a1)
12887  add_attribute(Provenance self, StringKey a0, IMP::String a1)
12888  add_attribute(Provenance self, ParticleIndexKey a0, Particle a1)
12889  add_attribute(Provenance self, ObjectKey a0, Object a1)
12890  """
12891  return _IMP_core.Provenance_add_attribute(self, *args)
12892 
12893  def get_value(self, *args):
12894  r"""
12895  get_value(Provenance self, FloatKey a0) -> IMP::Float
12896  get_value(Provenance self, IntKey a0) -> IMP::Int
12897  get_value(Provenance self, FloatsKey a0) -> IMP::Floats
12898  get_value(Provenance self, IntsKey a0) -> IMP::Ints
12899  get_value(Provenance self, StringKey a0) -> IMP::String
12900  get_value(Provenance self, ParticleIndexKey a0) -> Particle
12901  get_value(Provenance self, ObjectKey a0) -> Object
12902  """
12903  return _IMP_core.Provenance_get_value(self, *args)
12904 
12905  def set_value(self, *args):
12906  r"""
12907  set_value(Provenance self, FloatKey a0, IMP::Float a1)
12908  set_value(Provenance self, IntKey a0, IMP::Int a1)
12909  set_value(Provenance self, FloatsKey a0, IMP::Floats a1)
12910  set_value(Provenance self, IntsKey a0, IMP::Ints a1)
12911  set_value(Provenance self, StringKey a0, IMP::String a1)
12912  set_value(Provenance self, ParticleIndexKey a0, Particle a1)
12913  set_value(Provenance self, ObjectKey a0, Object a1)
12914  """
12915  return _IMP_core.Provenance_set_value(self, *args)
12916 
12917  def remove_attribute(self, *args):
12918  r"""
12919  remove_attribute(Provenance self, FloatKey a0)
12920  remove_attribute(Provenance self, IntKey a0)
12921  remove_attribute(Provenance self, FloatsKey a0)
12922  remove_attribute(Provenance self, IntsKey a0)
12923  remove_attribute(Provenance self, StringKey a0)
12924  remove_attribute(Provenance self, ParticleIndexKey a0)
12925  remove_attribute(Provenance self, ObjectKey a0)
12926  """
12927  return _IMP_core.Provenance_remove_attribute(self, *args)
12928 
12929  def has_attribute(self, *args):
12930  r"""
12931  has_attribute(Provenance self, FloatKey a0) -> bool
12932  has_attribute(Provenance self, IntKey a0) -> bool
12933  has_attribute(Provenance self, FloatsKey a0) -> bool
12934  has_attribute(Provenance self, IntsKey a0) -> bool
12935  has_attribute(Provenance self, StringKey a0) -> bool
12936  has_attribute(Provenance self, ParticleIndexKey a0) -> bool
12937  has_attribute(Provenance self, ObjectKey a0) -> bool
12938  """
12939  return _IMP_core.Provenance_has_attribute(self, *args)
12940 
12941  def get_derivative(self, a0):
12942  r"""get_derivative(Provenance self, FloatKey a0) -> double"""
12943  return _IMP_core.Provenance_get_derivative(self, a0)
12944 
12945  def get_name(self):
12946  r"""get_name(Provenance self) -> std::string"""
12947  return _IMP_core.Provenance_get_name(self)
12948 
12949  def clear_caches(self):
12950  r"""clear_caches(Provenance self)"""
12951  return _IMP_core.Provenance_clear_caches(self)
12952 
12953  def set_name(self, a0):
12954  r"""set_name(Provenance self, std::string a0)"""
12955  return _IMP_core.Provenance_set_name(self, a0)
12956 
12957  def set_check_level(self, a0):
12958  r"""set_check_level(Provenance self, IMP::CheckLevel a0)"""
12959  return _IMP_core.Provenance_set_check_level(self, a0)
12960 
12961  def add_to_derivative(self, a0, a1, a2):
12962  r"""add_to_derivative(Provenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
12963  return _IMP_core.Provenance_add_to_derivative(self, a0, a1, a2)
12964 
12965  def set_is_optimized(self, a0, a1):
12966  r"""set_is_optimized(Provenance self, FloatKey a0, bool a1)"""
12967  return _IMP_core.Provenance_set_is_optimized(self, a0, a1)
12968 
12969  def get_is_optimized(self, a0):
12970  r"""get_is_optimized(Provenance self, FloatKey a0) -> bool"""
12971  return _IMP_core.Provenance_get_is_optimized(self, a0)
12972 
12973  def get_check_level(self):
12974  r"""get_check_level(Provenance self) -> IMP::CheckLevel"""
12975  return _IMP_core.Provenance_get_check_level(self)
12976 
12977  def __eq__(self, *args):
12978  r"""
12979  __eq__(Provenance self, Provenance o) -> bool
12980  __eq__(Provenance self, Particle d) -> bool
12981  """
12982  return _IMP_core.Provenance___eq__(self, *args)
12983 
12984  def __ne__(self, *args):
12985  r"""
12986  __ne__(Provenance self, Provenance o) -> bool
12987  __ne__(Provenance self, Particle d) -> bool
12988  """
12989  return _IMP_core.Provenance___ne__(self, *args)
12990 
12991  def __le__(self, *args):
12992  r"""
12993  __le__(Provenance self, Provenance o) -> bool
12994  __le__(Provenance self, Particle d) -> bool
12995  """
12996  return _IMP_core.Provenance___le__(self, *args)
12997 
12998  def __lt__(self, *args):
12999  r"""
13000  __lt__(Provenance self, Provenance o) -> bool
13001  __lt__(Provenance self, Particle d) -> bool
13002  """
13003  return _IMP_core.Provenance___lt__(self, *args)
13004 
13005  def __ge__(self, *args):
13006  r"""
13007  __ge__(Provenance self, Provenance o) -> bool
13008  __ge__(Provenance self, Particle d) -> bool
13009  """
13010  return _IMP_core.Provenance___ge__(self, *args)
13011 
13012  def __gt__(self, *args):
13013  r"""
13014  __gt__(Provenance self, Provenance o) -> bool
13015  __gt__(Provenance self, Particle d) -> bool
13016  """
13017  return _IMP_core.Provenance___gt__(self, *args)
13018 
13019  def __hash__(self):
13020  r"""__hash__(Provenance self) -> std::size_t"""
13021  return _IMP_core.Provenance___hash__(self)
13022 
13023  def __str__(self):
13024  r"""__str__(Provenance self) -> std::string"""
13025  return _IMP_core.Provenance___str__(self)
13026 
13027  def __repr__(self):
13028  r"""__repr__(Provenance self) -> std::string"""
13029  return _IMP_core.Provenance___repr__(self)
13030 
13031  def _get_as_binary(self):
13032  r"""_get_as_binary(Provenance self) -> PyObject *"""
13033  return _IMP_core.Provenance__get_as_binary(self)
13034 
13035  def _set_from_binary(self, p):
13036  r"""_set_from_binary(Provenance self, PyObject * p)"""
13037  return _IMP_core.Provenance__set_from_binary(self, p)
13038 
13039  def __getstate__(self):
13040  p = self._get_as_binary()
13041  if len(self.__dict__) > 1:
13042  d = self.__dict__.copy()
13043  del d['this']
13044  p = (d, p)
13045  return p
13046 
13047  def __setstate__(self, p):
13048  if not hasattr(self, 'this'):
13049  self.__init__()
13050  if isinstance(p, tuple):
13051  d, p = p
13052  self.__dict__.update(d)
13053  return self._set_from_binary(p)
13054 
13055  __swig_destroy__ = _IMP_core.delete_Provenance
13056 
13057 # Register Provenance in _IMP_core:
13058 _IMP_core.Provenance_swigregister(Provenance)
13059 class StructureProvenance(Provenance):
13060  r"""Proxy of C++ IMP::core::StructureProvenance class."""
13061 
13062  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13063 
13064  def set_filename(self, filename):
13065  r"""set_filename(StructureProvenance self, std::string filename)"""
13066  return _IMP_core.StructureProvenance_set_filename(self, filename)
13067 
13068  def get_filename(self):
13069  r"""get_filename(StructureProvenance self) -> std::string"""
13070  return _IMP_core.StructureProvenance_get_filename(self)
13071 
13072  def set_chain_id(self, chain_id):
13073  r"""set_chain_id(StructureProvenance self, std::string chain_id)"""
13074  return _IMP_core.StructureProvenance_set_chain_id(self, chain_id)
13075 
13076  def get_chain_id(self):
13077  r"""get_chain_id(StructureProvenance self) -> std::string"""
13078  return _IMP_core.StructureProvenance_get_chain_id(self)
13079 
13080  def set_residue_offset(self, residue_offset):
13081  r"""set_residue_offset(StructureProvenance self, int residue_offset)"""
13082  return _IMP_core.StructureProvenance_set_residue_offset(self, residue_offset)
13083 
13084  def get_residue_offset(self):
13085  r"""get_residue_offset(StructureProvenance self) -> int"""
13086  return _IMP_core.StructureProvenance_get_residue_offset(self)
13087 
13088  def __init__(self, *args):
13089  r"""
13090  __init__(StructureProvenance self) -> StructureProvenance
13091  __init__(StructureProvenance self, Model m, ParticleIndex id) -> StructureProvenance
13092  __init__(StructureProvenance self, _ParticleAdaptor d) -> StructureProvenance
13093  """
13094  _IMP_core.StructureProvenance_swiginit(self, _IMP_core.new_StructureProvenance(*args))
13095 
13096  @staticmethod
13097  def get_is_setup(*args):
13098  r"""
13099  get_is_setup(Model m, ParticleIndex pi) -> bool
13100  get_is_setup(_ParticleAdaptor p) -> bool
13101  """
13102  return _IMP_core.StructureProvenance_get_is_setup(*args)
13103 
13104  def show(self, *args):
13105  r"""show(StructureProvenance self, _ostream out=std::cout)"""
13106  return _IMP_core.StructureProvenance_show(self, *args)
13107 
13108  @staticmethod
13109  def setup_particle(*args):
13110  r"""
13111  setup_particle(Model m, ParticleIndex pi, std::string filename, std::string chain_id, int residue_offset) -> StructureProvenance
13112  setup_particle(_ParticleAdaptor pa, std::string filename, std::string chain_id, int residue_offset) -> StructureProvenance
13113  setup_particle(Model m, ParticleIndex pi, std::string filename, std::string chain_id) -> StructureProvenance
13114  setup_particle(_ParticleAdaptor pa, std::string filename, std::string chain_id) -> StructureProvenance
13115  setup_particle(Model m, ParticleIndex pi, StructureProvenance o) -> StructureProvenance
13116  setup_particle(_ParticleAdaptor pa, StructureProvenance o) -> StructureProvenance
13117  """
13118  return _IMP_core.StructureProvenance_setup_particle(*args)
13119 
13120  def add_attribute(self, *args):
13121  r"""
13122  add_attribute(StructureProvenance self, FloatKey k, IMP::Float v, bool opt)
13123  add_attribute(StructureProvenance self, FloatKey a0, IMP::Float a1)
13124  add_attribute(StructureProvenance self, IntKey a0, IMP::Int a1)
13125  add_attribute(StructureProvenance self, FloatsKey a0, IMP::Floats a1)
13126  add_attribute(StructureProvenance self, IntsKey a0, IMP::Ints a1)
13127  add_attribute(StructureProvenance self, StringKey a0, IMP::String a1)
13128  add_attribute(StructureProvenance self, ParticleIndexKey a0, Particle a1)
13129  add_attribute(StructureProvenance self, ObjectKey a0, Object a1)
13130  """
13131  return _IMP_core.StructureProvenance_add_attribute(self, *args)
13132 
13133  def get_value(self, *args):
13134  r"""
13135  get_value(StructureProvenance self, FloatKey a0) -> IMP::Float
13136  get_value(StructureProvenance self, IntKey a0) -> IMP::Int
13137  get_value(StructureProvenance self, FloatsKey a0) -> IMP::Floats
13138  get_value(StructureProvenance self, IntsKey a0) -> IMP::Ints
13139  get_value(StructureProvenance self, StringKey a0) -> IMP::String
13140  get_value(StructureProvenance self, ParticleIndexKey a0) -> Particle
13141  get_value(StructureProvenance self, ObjectKey a0) -> Object
13142  """
13143  return _IMP_core.StructureProvenance_get_value(self, *args)
13144 
13145  def set_value(self, *args):
13146  r"""
13147  set_value(StructureProvenance self, FloatKey a0, IMP::Float a1)
13148  set_value(StructureProvenance self, IntKey a0, IMP::Int a1)
13149  set_value(StructureProvenance self, FloatsKey a0, IMP::Floats a1)
13150  set_value(StructureProvenance self, IntsKey a0, IMP::Ints a1)
13151  set_value(StructureProvenance self, StringKey a0, IMP::String a1)
13152  set_value(StructureProvenance self, ParticleIndexKey a0, Particle a1)
13153  set_value(StructureProvenance self, ObjectKey a0, Object a1)
13154  """
13155  return _IMP_core.StructureProvenance_set_value(self, *args)
13156 
13157  def remove_attribute(self, *args):
13158  r"""
13159  remove_attribute(StructureProvenance self, FloatKey a0)
13160  remove_attribute(StructureProvenance self, IntKey a0)
13161  remove_attribute(StructureProvenance self, FloatsKey a0)
13162  remove_attribute(StructureProvenance self, IntsKey a0)
13163  remove_attribute(StructureProvenance self, StringKey a0)
13164  remove_attribute(StructureProvenance self, ParticleIndexKey a0)
13165  remove_attribute(StructureProvenance self, ObjectKey a0)
13166  """
13167  return _IMP_core.StructureProvenance_remove_attribute(self, *args)
13168 
13169  def has_attribute(self, *args):
13170  r"""
13171  has_attribute(StructureProvenance self, FloatKey a0) -> bool
13172  has_attribute(StructureProvenance self, IntKey a0) -> bool
13173  has_attribute(StructureProvenance self, FloatsKey a0) -> bool
13174  has_attribute(StructureProvenance self, IntsKey a0) -> bool
13175  has_attribute(StructureProvenance self, StringKey a0) -> bool
13176  has_attribute(StructureProvenance self, ParticleIndexKey a0) -> bool
13177  has_attribute(StructureProvenance self, ObjectKey a0) -> bool
13178  """
13179  return _IMP_core.StructureProvenance_has_attribute(self, *args)
13180 
13181  def get_derivative(self, a0):
13182  r"""get_derivative(StructureProvenance self, FloatKey a0) -> double"""
13183  return _IMP_core.StructureProvenance_get_derivative(self, a0)
13184 
13185  def get_name(self):
13186  r"""get_name(StructureProvenance self) -> std::string"""
13187  return _IMP_core.StructureProvenance_get_name(self)
13188 
13189  def clear_caches(self):
13190  r"""clear_caches(StructureProvenance self)"""
13191  return _IMP_core.StructureProvenance_clear_caches(self)
13192 
13193  def set_name(self, a0):
13194  r"""set_name(StructureProvenance self, std::string a0)"""
13195  return _IMP_core.StructureProvenance_set_name(self, a0)
13196 
13197  def set_check_level(self, a0):
13198  r"""set_check_level(StructureProvenance self, IMP::CheckLevel a0)"""
13199  return _IMP_core.StructureProvenance_set_check_level(self, a0)
13200 
13201  def add_to_derivative(self, a0, a1, a2):
13202  r"""add_to_derivative(StructureProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13203  return _IMP_core.StructureProvenance_add_to_derivative(self, a0, a1, a2)
13204 
13205  def set_is_optimized(self, a0, a1):
13206  r"""set_is_optimized(StructureProvenance self, FloatKey a0, bool a1)"""
13207  return _IMP_core.StructureProvenance_set_is_optimized(self, a0, a1)
13208 
13209  def get_is_optimized(self, a0):
13210  r"""get_is_optimized(StructureProvenance self, FloatKey a0) -> bool"""
13211  return _IMP_core.StructureProvenance_get_is_optimized(self, a0)
13212 
13213  def get_check_level(self):
13214  r"""get_check_level(StructureProvenance self) -> IMP::CheckLevel"""
13215  return _IMP_core.StructureProvenance_get_check_level(self)
13216 
13217  def __eq__(self, *args):
13218  r"""
13219  __eq__(StructureProvenance self, StructureProvenance o) -> bool
13220  __eq__(StructureProvenance self, Particle d) -> bool
13221  """
13222  return _IMP_core.StructureProvenance___eq__(self, *args)
13223 
13224  def __ne__(self, *args):
13225  r"""
13226  __ne__(StructureProvenance self, StructureProvenance o) -> bool
13227  __ne__(StructureProvenance self, Particle d) -> bool
13228  """
13229  return _IMP_core.StructureProvenance___ne__(self, *args)
13230 
13231  def __le__(self, *args):
13232  r"""
13233  __le__(StructureProvenance self, StructureProvenance o) -> bool
13234  __le__(StructureProvenance self, Particle d) -> bool
13235  """
13236  return _IMP_core.StructureProvenance___le__(self, *args)
13237 
13238  def __lt__(self, *args):
13239  r"""
13240  __lt__(StructureProvenance self, StructureProvenance o) -> bool
13241  __lt__(StructureProvenance self, Particle d) -> bool
13242  """
13243  return _IMP_core.StructureProvenance___lt__(self, *args)
13244 
13245  def __ge__(self, *args):
13246  r"""
13247  __ge__(StructureProvenance self, StructureProvenance o) -> bool
13248  __ge__(StructureProvenance self, Particle d) -> bool
13249  """
13250  return _IMP_core.StructureProvenance___ge__(self, *args)
13251 
13252  def __gt__(self, *args):
13253  r"""
13254  __gt__(StructureProvenance self, StructureProvenance o) -> bool
13255  __gt__(StructureProvenance self, Particle d) -> bool
13256  """
13257  return _IMP_core.StructureProvenance___gt__(self, *args)
13258 
13259  def __hash__(self):
13260  r"""__hash__(StructureProvenance self) -> std::size_t"""
13261  return _IMP_core.StructureProvenance___hash__(self)
13262 
13263  def __str__(self):
13264  r"""__str__(StructureProvenance self) -> std::string"""
13265  return _IMP_core.StructureProvenance___str__(self)
13266 
13267  def __repr__(self):
13268  r"""__repr__(StructureProvenance self) -> std::string"""
13269  return _IMP_core.StructureProvenance___repr__(self)
13270 
13271  def _get_as_binary(self):
13272  r"""_get_as_binary(StructureProvenance self) -> PyObject *"""
13273  return _IMP_core.StructureProvenance__get_as_binary(self)
13274 
13275  def _set_from_binary(self, p):
13276  r"""_set_from_binary(StructureProvenance self, PyObject * p)"""
13277  return _IMP_core.StructureProvenance__set_from_binary(self, p)
13278 
13279  def __getstate__(self):
13280  p = self._get_as_binary()
13281  if len(self.__dict__) > 1:
13282  d = self.__dict__.copy()
13283  del d['this']
13284  p = (d, p)
13285  return p
13286 
13287  def __setstate__(self, p):
13288  if not hasattr(self, 'this'):
13289  self.__init__()
13290  if isinstance(p, tuple):
13291  d, p = p
13292  self.__dict__.update(d)
13293  return self._set_from_binary(p)
13294 
13295  __swig_destroy__ = _IMP_core.delete_StructureProvenance
13296 
13297 # Register StructureProvenance in _IMP_core:
13298 _IMP_core.StructureProvenance_swigregister(StructureProvenance)
13299 class SampleProvenance(Provenance):
13300  r"""Proxy of C++ IMP::core::SampleProvenance class."""
13301 
13302  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13303 
13304  def set_method(self, method):
13305  r"""set_method(SampleProvenance self, std::string method)"""
13306  return _IMP_core.SampleProvenance_set_method(self, method)
13307 
13308  def get_method(self):
13309  r"""get_method(SampleProvenance self) -> std::string"""
13310  return _IMP_core.SampleProvenance_get_method(self)
13311 
13312  def set_number_of_frames(self, frames):
13313  r"""set_number_of_frames(SampleProvenance self, int frames)"""
13314  return _IMP_core.SampleProvenance_set_number_of_frames(self, frames)
13315 
13316  def get_number_of_frames(self):
13317  r"""get_number_of_frames(SampleProvenance self) -> int"""
13318  return _IMP_core.SampleProvenance_get_number_of_frames(self)
13319 
13320  def set_number_of_iterations(self, iterations):
13321  r"""set_number_of_iterations(SampleProvenance self, int iterations)"""
13322  return _IMP_core.SampleProvenance_set_number_of_iterations(self, iterations)
13323 
13324  def get_number_of_iterations(self):
13325  r"""get_number_of_iterations(SampleProvenance self) -> int"""
13326  return _IMP_core.SampleProvenance_get_number_of_iterations(self)
13327 
13328  def set_number_of_replicas(self, replicas):
13329  r"""set_number_of_replicas(SampleProvenance self, int replicas)"""
13330  return _IMP_core.SampleProvenance_set_number_of_replicas(self, replicas)
13331 
13332  def get_number_of_replicas(self):
13333  r"""get_number_of_replicas(SampleProvenance self) -> int"""
13334  return _IMP_core.SampleProvenance_get_number_of_replicas(self)
13335 
13336  def __init__(self, *args):
13337  r"""
13338  __init__(SampleProvenance self) -> SampleProvenance
13339  __init__(SampleProvenance self, Model m, ParticleIndex id) -> SampleProvenance
13340  __init__(SampleProvenance self, _ParticleAdaptor d) -> SampleProvenance
13341  """
13342  _IMP_core.SampleProvenance_swiginit(self, _IMP_core.new_SampleProvenance(*args))
13343 
13344  @staticmethod
13345  def get_is_setup(*args):
13346  r"""
13347  get_is_setup(Model m, ParticleIndex pi) -> bool
13348  get_is_setup(_ParticleAdaptor p) -> bool
13349  """
13350  return _IMP_core.SampleProvenance_get_is_setup(*args)
13351 
13352  def show(self, *args):
13353  r"""show(SampleProvenance self, _ostream out=std::cout)"""
13354  return _IMP_core.SampleProvenance_show(self, *args)
13355 
13356  @staticmethod
13357  def setup_particle(*args):
13358  r"""
13359  setup_particle(Model m, ParticleIndex pi, std::string method, int frames, int iterations, int replicas) -> SampleProvenance
13360  setup_particle(_ParticleAdaptor pa, std::string method, int frames, int iterations, int replicas) -> SampleProvenance
13361  setup_particle(Model m, ParticleIndex pi, std::string method, int frames, int iterations) -> SampleProvenance
13362  setup_particle(_ParticleAdaptor pa, std::string method, int frames, int iterations) -> SampleProvenance
13363  setup_particle(Model m, ParticleIndex pi, SampleProvenance o) -> SampleProvenance
13364  setup_particle(_ParticleAdaptor pa, SampleProvenance o) -> SampleProvenance
13365  """
13366  return _IMP_core.SampleProvenance_setup_particle(*args)
13367 
13368  def add_attribute(self, *args):
13369  r"""
13370  add_attribute(SampleProvenance self, FloatKey k, IMP::Float v, bool opt)
13371  add_attribute(SampleProvenance self, FloatKey a0, IMP::Float a1)
13372  add_attribute(SampleProvenance self, IntKey a0, IMP::Int a1)
13373  add_attribute(SampleProvenance self, FloatsKey a0, IMP::Floats a1)
13374  add_attribute(SampleProvenance self, IntsKey a0, IMP::Ints a1)
13375  add_attribute(SampleProvenance self, StringKey a0, IMP::String a1)
13376  add_attribute(SampleProvenance self, ParticleIndexKey a0, Particle a1)
13377  add_attribute(SampleProvenance self, ObjectKey a0, Object a1)
13378  """
13379  return _IMP_core.SampleProvenance_add_attribute(self, *args)
13380 
13381  def get_value(self, *args):
13382  r"""
13383  get_value(SampleProvenance self, FloatKey a0) -> IMP::Float
13384  get_value(SampleProvenance self, IntKey a0) -> IMP::Int
13385  get_value(SampleProvenance self, FloatsKey a0) -> IMP::Floats
13386  get_value(SampleProvenance self, IntsKey a0) -> IMP::Ints
13387  get_value(SampleProvenance self, StringKey a0) -> IMP::String
13388  get_value(SampleProvenance self, ParticleIndexKey a0) -> Particle
13389  get_value(SampleProvenance self, ObjectKey a0) -> Object
13390  """
13391  return _IMP_core.SampleProvenance_get_value(self, *args)
13392 
13393  def set_value(self, *args):
13394  r"""
13395  set_value(SampleProvenance self, FloatKey a0, IMP::Float a1)
13396  set_value(SampleProvenance self, IntKey a0, IMP::Int a1)
13397  set_value(SampleProvenance self, FloatsKey a0, IMP::Floats a1)
13398  set_value(SampleProvenance self, IntsKey a0, IMP::Ints a1)
13399  set_value(SampleProvenance self, StringKey a0, IMP::String a1)
13400  set_value(SampleProvenance self, ParticleIndexKey a0, Particle a1)
13401  set_value(SampleProvenance self, ObjectKey a0, Object a1)
13402  """
13403  return _IMP_core.SampleProvenance_set_value(self, *args)
13404 
13405  def remove_attribute(self, *args):
13406  r"""
13407  remove_attribute(SampleProvenance self, FloatKey a0)
13408  remove_attribute(SampleProvenance self, IntKey a0)
13409  remove_attribute(SampleProvenance self, FloatsKey a0)
13410  remove_attribute(SampleProvenance self, IntsKey a0)
13411  remove_attribute(SampleProvenance self, StringKey a0)
13412  remove_attribute(SampleProvenance self, ParticleIndexKey a0)
13413  remove_attribute(SampleProvenance self, ObjectKey a0)
13414  """
13415  return _IMP_core.SampleProvenance_remove_attribute(self, *args)
13416 
13417  def has_attribute(self, *args):
13418  r"""
13419  has_attribute(SampleProvenance self, FloatKey a0) -> bool
13420  has_attribute(SampleProvenance self, IntKey a0) -> bool
13421  has_attribute(SampleProvenance self, FloatsKey a0) -> bool
13422  has_attribute(SampleProvenance self, IntsKey a0) -> bool
13423  has_attribute(SampleProvenance self, StringKey a0) -> bool
13424  has_attribute(SampleProvenance self, ParticleIndexKey a0) -> bool
13425  has_attribute(SampleProvenance self, ObjectKey a0) -> bool
13426  """
13427  return _IMP_core.SampleProvenance_has_attribute(self, *args)
13428 
13429  def get_derivative(self, a0):
13430  r"""get_derivative(SampleProvenance self, FloatKey a0) -> double"""
13431  return _IMP_core.SampleProvenance_get_derivative(self, a0)
13432 
13433  def get_name(self):
13434  r"""get_name(SampleProvenance self) -> std::string"""
13435  return _IMP_core.SampleProvenance_get_name(self)
13436 
13437  def clear_caches(self):
13438  r"""clear_caches(SampleProvenance self)"""
13439  return _IMP_core.SampleProvenance_clear_caches(self)
13440 
13441  def set_name(self, a0):
13442  r"""set_name(SampleProvenance self, std::string a0)"""
13443  return _IMP_core.SampleProvenance_set_name(self, a0)
13444 
13445  def set_check_level(self, a0):
13446  r"""set_check_level(SampleProvenance self, IMP::CheckLevel a0)"""
13447  return _IMP_core.SampleProvenance_set_check_level(self, a0)
13448 
13449  def add_to_derivative(self, a0, a1, a2):
13450  r"""add_to_derivative(SampleProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13451  return _IMP_core.SampleProvenance_add_to_derivative(self, a0, a1, a2)
13452 
13453  def set_is_optimized(self, a0, a1):
13454  r"""set_is_optimized(SampleProvenance self, FloatKey a0, bool a1)"""
13455  return _IMP_core.SampleProvenance_set_is_optimized(self, a0, a1)
13456 
13457  def get_is_optimized(self, a0):
13458  r"""get_is_optimized(SampleProvenance self, FloatKey a0) -> bool"""
13459  return _IMP_core.SampleProvenance_get_is_optimized(self, a0)
13460 
13461  def get_check_level(self):
13462  r"""get_check_level(SampleProvenance self) -> IMP::CheckLevel"""
13463  return _IMP_core.SampleProvenance_get_check_level(self)
13464 
13465  def __eq__(self, *args):
13466  r"""
13467  __eq__(SampleProvenance self, SampleProvenance o) -> bool
13468  __eq__(SampleProvenance self, Particle d) -> bool
13469  """
13470  return _IMP_core.SampleProvenance___eq__(self, *args)
13471 
13472  def __ne__(self, *args):
13473  r"""
13474  __ne__(SampleProvenance self, SampleProvenance o) -> bool
13475  __ne__(SampleProvenance self, Particle d) -> bool
13476  """
13477  return _IMP_core.SampleProvenance___ne__(self, *args)
13478 
13479  def __le__(self, *args):
13480  r"""
13481  __le__(SampleProvenance self, SampleProvenance o) -> bool
13482  __le__(SampleProvenance self, Particle d) -> bool
13483  """
13484  return _IMP_core.SampleProvenance___le__(self, *args)
13485 
13486  def __lt__(self, *args):
13487  r"""
13488  __lt__(SampleProvenance self, SampleProvenance o) -> bool
13489  __lt__(SampleProvenance self, Particle d) -> bool
13490  """
13491  return _IMP_core.SampleProvenance___lt__(self, *args)
13492 
13493  def __ge__(self, *args):
13494  r"""
13495  __ge__(SampleProvenance self, SampleProvenance o) -> bool
13496  __ge__(SampleProvenance self, Particle d) -> bool
13497  """
13498  return _IMP_core.SampleProvenance___ge__(self, *args)
13499 
13500  def __gt__(self, *args):
13501  r"""
13502  __gt__(SampleProvenance self, SampleProvenance o) -> bool
13503  __gt__(SampleProvenance self, Particle d) -> bool
13504  """
13505  return _IMP_core.SampleProvenance___gt__(self, *args)
13506 
13507  def __hash__(self):
13508  r"""__hash__(SampleProvenance self) -> std::size_t"""
13509  return _IMP_core.SampleProvenance___hash__(self)
13510 
13511  def __str__(self):
13512  r"""__str__(SampleProvenance self) -> std::string"""
13513  return _IMP_core.SampleProvenance___str__(self)
13514 
13515  def __repr__(self):
13516  r"""__repr__(SampleProvenance self) -> std::string"""
13517  return _IMP_core.SampleProvenance___repr__(self)
13518 
13519  def _get_as_binary(self):
13520  r"""_get_as_binary(SampleProvenance self) -> PyObject *"""
13521  return _IMP_core.SampleProvenance__get_as_binary(self)
13522 
13523  def _set_from_binary(self, p):
13524  r"""_set_from_binary(SampleProvenance self, PyObject * p)"""
13525  return _IMP_core.SampleProvenance__set_from_binary(self, p)
13526 
13527  def __getstate__(self):
13528  p = self._get_as_binary()
13529  if len(self.__dict__) > 1:
13530  d = self.__dict__.copy()
13531  del d['this']
13532  p = (d, p)
13533  return p
13534 
13535  def __setstate__(self, p):
13536  if not hasattr(self, 'this'):
13537  self.__init__()
13538  if isinstance(p, tuple):
13539  d, p = p
13540  self.__dict__.update(d)
13541  return self._set_from_binary(p)
13542 
13543  __swig_destroy__ = _IMP_core.delete_SampleProvenance
13544 
13545 # Register SampleProvenance in _IMP_core:
13546 _IMP_core.SampleProvenance_swigregister(SampleProvenance)
13547 class CombineProvenance(Provenance):
13548  r"""Proxy of C++ IMP::core::CombineProvenance class."""
13549 
13550  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13551 
13552  def set_number_of_frames(self, frames):
13553  r"""set_number_of_frames(CombineProvenance self, int frames)"""
13554  return _IMP_core.CombineProvenance_set_number_of_frames(self, frames)
13555 
13556  def get_number_of_frames(self):
13557  r"""get_number_of_frames(CombineProvenance self) -> int"""
13558  return _IMP_core.CombineProvenance_get_number_of_frames(self)
13559 
13560  def set_number_of_runs(self, runs):
13561  r"""set_number_of_runs(CombineProvenance self, int runs)"""
13562  return _IMP_core.CombineProvenance_set_number_of_runs(self, runs)
13563 
13564  def get_number_of_runs(self):
13565  r"""get_number_of_runs(CombineProvenance self) -> int"""
13566  return _IMP_core.CombineProvenance_get_number_of_runs(self)
13567 
13568  def __init__(self, *args):
13569  r"""
13570  __init__(CombineProvenance self) -> CombineProvenance
13571  __init__(CombineProvenance self, Model m, ParticleIndex id) -> CombineProvenance
13572  __init__(CombineProvenance self, _ParticleAdaptor d) -> CombineProvenance
13573  """
13574  _IMP_core.CombineProvenance_swiginit(self, _IMP_core.new_CombineProvenance(*args))
13575 
13576  @staticmethod
13577  def get_is_setup(*args):
13578  r"""
13579  get_is_setup(Model m, ParticleIndex pi) -> bool
13580  get_is_setup(_ParticleAdaptor p) -> bool
13581  """
13582  return _IMP_core.CombineProvenance_get_is_setup(*args)
13583 
13584  def show(self, *args):
13585  r"""show(CombineProvenance self, _ostream out=std::cout)"""
13586  return _IMP_core.CombineProvenance_show(self, *args)
13587 
13588  @staticmethod
13589  def setup_particle(*args):
13590  r"""
13591  setup_particle(Model m, ParticleIndex pi, int runs, int frames) -> CombineProvenance
13592  setup_particle(_ParticleAdaptor pa, int runs, int frames) -> CombineProvenance
13593  setup_particle(Model m, ParticleIndex pi, CombineProvenance o) -> CombineProvenance
13594  setup_particle(_ParticleAdaptor pa, CombineProvenance o) -> CombineProvenance
13595  """
13596  return _IMP_core.CombineProvenance_setup_particle(*args)
13597 
13598  def add_attribute(self, *args):
13599  r"""
13600  add_attribute(CombineProvenance self, FloatKey k, IMP::Float v, bool opt)
13601  add_attribute(CombineProvenance self, FloatKey a0, IMP::Float a1)
13602  add_attribute(CombineProvenance self, IntKey a0, IMP::Int a1)
13603  add_attribute(CombineProvenance self, FloatsKey a0, IMP::Floats a1)
13604  add_attribute(CombineProvenance self, IntsKey a0, IMP::Ints a1)
13605  add_attribute(CombineProvenance self, StringKey a0, IMP::String a1)
13606  add_attribute(CombineProvenance self, ParticleIndexKey a0, Particle a1)
13607  add_attribute(CombineProvenance self, ObjectKey a0, Object a1)
13608  """
13609  return _IMP_core.CombineProvenance_add_attribute(self, *args)
13610 
13611  def get_value(self, *args):
13612  r"""
13613  get_value(CombineProvenance self, FloatKey a0) -> IMP::Float
13614  get_value(CombineProvenance self, IntKey a0) -> IMP::Int
13615  get_value(CombineProvenance self, FloatsKey a0) -> IMP::Floats
13616  get_value(CombineProvenance self, IntsKey a0) -> IMP::Ints
13617  get_value(CombineProvenance self, StringKey a0) -> IMP::String
13618  get_value(CombineProvenance self, ParticleIndexKey a0) -> Particle
13619  get_value(CombineProvenance self, ObjectKey a0) -> Object
13620  """
13621  return _IMP_core.CombineProvenance_get_value(self, *args)
13622 
13623  def set_value(self, *args):
13624  r"""
13625  set_value(CombineProvenance self, FloatKey a0, IMP::Float a1)
13626  set_value(CombineProvenance self, IntKey a0, IMP::Int a1)
13627  set_value(CombineProvenance self, FloatsKey a0, IMP::Floats a1)
13628  set_value(CombineProvenance self, IntsKey a0, IMP::Ints a1)
13629  set_value(CombineProvenance self, StringKey a0, IMP::String a1)
13630  set_value(CombineProvenance self, ParticleIndexKey a0, Particle a1)
13631  set_value(CombineProvenance self, ObjectKey a0, Object a1)
13632  """
13633  return _IMP_core.CombineProvenance_set_value(self, *args)
13634 
13635  def remove_attribute(self, *args):
13636  r"""
13637  remove_attribute(CombineProvenance self, FloatKey a0)
13638  remove_attribute(CombineProvenance self, IntKey a0)
13639  remove_attribute(CombineProvenance self, FloatsKey a0)
13640  remove_attribute(CombineProvenance self, IntsKey a0)
13641  remove_attribute(CombineProvenance self, StringKey a0)
13642  remove_attribute(CombineProvenance self, ParticleIndexKey a0)
13643  remove_attribute(CombineProvenance self, ObjectKey a0)
13644  """
13645  return _IMP_core.CombineProvenance_remove_attribute(self, *args)
13646 
13647  def has_attribute(self, *args):
13648  r"""
13649  has_attribute(CombineProvenance self, FloatKey a0) -> bool
13650  has_attribute(CombineProvenance self, IntKey a0) -> bool
13651  has_attribute(CombineProvenance self, FloatsKey a0) -> bool
13652  has_attribute(CombineProvenance self, IntsKey a0) -> bool
13653  has_attribute(CombineProvenance self, StringKey a0) -> bool
13654  has_attribute(CombineProvenance self, ParticleIndexKey a0) -> bool
13655  has_attribute(CombineProvenance self, ObjectKey a0) -> bool
13656  """
13657  return _IMP_core.CombineProvenance_has_attribute(self, *args)
13658 
13659  def get_derivative(self, a0):
13660  r"""get_derivative(CombineProvenance self, FloatKey a0) -> double"""
13661  return _IMP_core.CombineProvenance_get_derivative(self, a0)
13662 
13663  def get_name(self):
13664  r"""get_name(CombineProvenance self) -> std::string"""
13665  return _IMP_core.CombineProvenance_get_name(self)
13666 
13667  def clear_caches(self):
13668  r"""clear_caches(CombineProvenance self)"""
13669  return _IMP_core.CombineProvenance_clear_caches(self)
13670 
13671  def set_name(self, a0):
13672  r"""set_name(CombineProvenance self, std::string a0)"""
13673  return _IMP_core.CombineProvenance_set_name(self, a0)
13674 
13675  def set_check_level(self, a0):
13676  r"""set_check_level(CombineProvenance self, IMP::CheckLevel a0)"""
13677  return _IMP_core.CombineProvenance_set_check_level(self, a0)
13678 
13679  def add_to_derivative(self, a0, a1, a2):
13680  r"""add_to_derivative(CombineProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13681  return _IMP_core.CombineProvenance_add_to_derivative(self, a0, a1, a2)
13682 
13683  def set_is_optimized(self, a0, a1):
13684  r"""set_is_optimized(CombineProvenance self, FloatKey a0, bool a1)"""
13685  return _IMP_core.CombineProvenance_set_is_optimized(self, a0, a1)
13686 
13687  def get_is_optimized(self, a0):
13688  r"""get_is_optimized(CombineProvenance self, FloatKey a0) -> bool"""
13689  return _IMP_core.CombineProvenance_get_is_optimized(self, a0)
13690 
13691  def get_check_level(self):
13692  r"""get_check_level(CombineProvenance self) -> IMP::CheckLevel"""
13693  return _IMP_core.CombineProvenance_get_check_level(self)
13694 
13695  def __eq__(self, *args):
13696  r"""
13697  __eq__(CombineProvenance self, CombineProvenance o) -> bool
13698  __eq__(CombineProvenance self, Particle d) -> bool
13699  """
13700  return _IMP_core.CombineProvenance___eq__(self, *args)
13701 
13702  def __ne__(self, *args):
13703  r"""
13704  __ne__(CombineProvenance self, CombineProvenance o) -> bool
13705  __ne__(CombineProvenance self, Particle d) -> bool
13706  """
13707  return _IMP_core.CombineProvenance___ne__(self, *args)
13708 
13709  def __le__(self, *args):
13710  r"""
13711  __le__(CombineProvenance self, CombineProvenance o) -> bool
13712  __le__(CombineProvenance self, Particle d) -> bool
13713  """
13714  return _IMP_core.CombineProvenance___le__(self, *args)
13715 
13716  def __lt__(self, *args):
13717  r"""
13718  __lt__(CombineProvenance self, CombineProvenance o) -> bool
13719  __lt__(CombineProvenance self, Particle d) -> bool
13720  """
13721  return _IMP_core.CombineProvenance___lt__(self, *args)
13722 
13723  def __ge__(self, *args):
13724  r"""
13725  __ge__(CombineProvenance self, CombineProvenance o) -> bool
13726  __ge__(CombineProvenance self, Particle d) -> bool
13727  """
13728  return _IMP_core.CombineProvenance___ge__(self, *args)
13729 
13730  def __gt__(self, *args):
13731  r"""
13732  __gt__(CombineProvenance self, CombineProvenance o) -> bool
13733  __gt__(CombineProvenance self, Particle d) -> bool
13734  """
13735  return _IMP_core.CombineProvenance___gt__(self, *args)
13736 
13737  def __hash__(self):
13738  r"""__hash__(CombineProvenance self) -> std::size_t"""
13739  return _IMP_core.CombineProvenance___hash__(self)
13740 
13741  def __str__(self):
13742  r"""__str__(CombineProvenance self) -> std::string"""
13743  return _IMP_core.CombineProvenance___str__(self)
13744 
13745  def __repr__(self):
13746  r"""__repr__(CombineProvenance self) -> std::string"""
13747  return _IMP_core.CombineProvenance___repr__(self)
13748 
13749  def _get_as_binary(self):
13750  r"""_get_as_binary(CombineProvenance self) -> PyObject *"""
13751  return _IMP_core.CombineProvenance__get_as_binary(self)
13752 
13753  def _set_from_binary(self, p):
13754  r"""_set_from_binary(CombineProvenance self, PyObject * p)"""
13755  return _IMP_core.CombineProvenance__set_from_binary(self, p)
13756 
13757  def __getstate__(self):
13758  p = self._get_as_binary()
13759  if len(self.__dict__) > 1:
13760  d = self.__dict__.copy()
13761  del d['this']
13762  p = (d, p)
13763  return p
13764 
13765  def __setstate__(self, p):
13766  if not hasattr(self, 'this'):
13767  self.__init__()
13768  if isinstance(p, tuple):
13769  d, p = p
13770  self.__dict__.update(d)
13771  return self._set_from_binary(p)
13772 
13773  __swig_destroy__ = _IMP_core.delete_CombineProvenance
13774 
13775 # Register CombineProvenance in _IMP_core:
13776 _IMP_core.CombineProvenance_swigregister(CombineProvenance)
13777 class FilterProvenance(Provenance):
13778  r"""Proxy of C++ IMP::core::FilterProvenance class."""
13779 
13780  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13781 
13782  def set_method(self, method):
13783  r"""set_method(FilterProvenance self, std::string method)"""
13784  return _IMP_core.FilterProvenance_set_method(self, method)
13785 
13786  def get_method(self):
13787  r"""get_method(FilterProvenance self) -> std::string"""
13788  return _IMP_core.FilterProvenance_get_method(self)
13789 
13790  def set_number_of_frames(self, frames):
13791  r"""set_number_of_frames(FilterProvenance self, int frames)"""
13792  return _IMP_core.FilterProvenance_set_number_of_frames(self, frames)
13793 
13794  def get_number_of_frames(self):
13795  r"""get_number_of_frames(FilterProvenance self) -> int"""
13796  return _IMP_core.FilterProvenance_get_number_of_frames(self)
13797 
13798  def set_threshold(self, threshold):
13799  r"""set_threshold(FilterProvenance self, double threshold)"""
13800  return _IMP_core.FilterProvenance_set_threshold(self, threshold)
13801 
13802  def get_threshold(self):
13803  r"""get_threshold(FilterProvenance self) -> double"""
13804  return _IMP_core.FilterProvenance_get_threshold(self)
13805 
13806  def __init__(self, *args):
13807  r"""
13808  __init__(FilterProvenance self) -> FilterProvenance
13809  __init__(FilterProvenance self, Model m, ParticleIndex id) -> FilterProvenance
13810  __init__(FilterProvenance self, _ParticleAdaptor d) -> FilterProvenance
13811  """
13812  _IMP_core.FilterProvenance_swiginit(self, _IMP_core.new_FilterProvenance(*args))
13813 
13814  @staticmethod
13815  def get_is_setup(*args):
13816  r"""
13817  get_is_setup(Model m, ParticleIndex pi) -> bool
13818  get_is_setup(_ParticleAdaptor p) -> bool
13819  """
13820  return _IMP_core.FilterProvenance_get_is_setup(*args)
13821 
13822  def show(self, *args):
13823  r"""show(FilterProvenance self, _ostream out=std::cout)"""
13824  return _IMP_core.FilterProvenance_show(self, *args)
13825 
13826  @staticmethod
13827  def setup_particle(*args):
13828  r"""
13829  setup_particle(Model m, ParticleIndex pi, std::string method, double threshold, int frames) -> FilterProvenance
13830  setup_particle(_ParticleAdaptor pa, std::string method, double threshold, int frames) -> FilterProvenance
13831  setup_particle(Model m, ParticleIndex pi, FilterProvenance o) -> FilterProvenance
13832  setup_particle(_ParticleAdaptor pa, FilterProvenance o) -> FilterProvenance
13833  """
13834  return _IMP_core.FilterProvenance_setup_particle(*args)
13835 
13836  def add_attribute(self, *args):
13837  r"""
13838  add_attribute(FilterProvenance self, FloatKey k, IMP::Float v, bool opt)
13839  add_attribute(FilterProvenance self, FloatKey a0, IMP::Float a1)
13840  add_attribute(FilterProvenance self, IntKey a0, IMP::Int a1)
13841  add_attribute(FilterProvenance self, FloatsKey a0, IMP::Floats a1)
13842  add_attribute(FilterProvenance self, IntsKey a0, IMP::Ints a1)
13843  add_attribute(FilterProvenance self, StringKey a0, IMP::String a1)
13844  add_attribute(FilterProvenance self, ParticleIndexKey a0, Particle a1)
13845  add_attribute(FilterProvenance self, ObjectKey a0, Object a1)
13846  """
13847  return _IMP_core.FilterProvenance_add_attribute(self, *args)
13848 
13849  def get_value(self, *args):
13850  r"""
13851  get_value(FilterProvenance self, FloatKey a0) -> IMP::Float
13852  get_value(FilterProvenance self, IntKey a0) -> IMP::Int
13853  get_value(FilterProvenance self, FloatsKey a0) -> IMP::Floats
13854  get_value(FilterProvenance self, IntsKey a0) -> IMP::Ints
13855  get_value(FilterProvenance self, StringKey a0) -> IMP::String
13856  get_value(FilterProvenance self, ParticleIndexKey a0) -> Particle
13857  get_value(FilterProvenance self, ObjectKey a0) -> Object
13858  """
13859  return _IMP_core.FilterProvenance_get_value(self, *args)
13860 
13861  def set_value(self, *args):
13862  r"""
13863  set_value(FilterProvenance self, FloatKey a0, IMP::Float a1)
13864  set_value(FilterProvenance self, IntKey a0, IMP::Int a1)
13865  set_value(FilterProvenance self, FloatsKey a0, IMP::Floats a1)
13866  set_value(FilterProvenance self, IntsKey a0, IMP::Ints a1)
13867  set_value(FilterProvenance self, StringKey a0, IMP::String a1)
13868  set_value(FilterProvenance self, ParticleIndexKey a0, Particle a1)
13869  set_value(FilterProvenance self, ObjectKey a0, Object a1)
13870  """
13871  return _IMP_core.FilterProvenance_set_value(self, *args)
13872 
13873  def remove_attribute(self, *args):
13874  r"""
13875  remove_attribute(FilterProvenance self, FloatKey a0)
13876  remove_attribute(FilterProvenance self, IntKey a0)
13877  remove_attribute(FilterProvenance self, FloatsKey a0)
13878  remove_attribute(FilterProvenance self, IntsKey a0)
13879  remove_attribute(FilterProvenance self, StringKey a0)
13880  remove_attribute(FilterProvenance self, ParticleIndexKey a0)
13881  remove_attribute(FilterProvenance self, ObjectKey a0)
13882  """
13883  return _IMP_core.FilterProvenance_remove_attribute(self, *args)
13884 
13885  def has_attribute(self, *args):
13886  r"""
13887  has_attribute(FilterProvenance self, FloatKey a0) -> bool
13888  has_attribute(FilterProvenance self, IntKey a0) -> bool
13889  has_attribute(FilterProvenance self, FloatsKey a0) -> bool
13890  has_attribute(FilterProvenance self, IntsKey a0) -> bool
13891  has_attribute(FilterProvenance self, StringKey a0) -> bool
13892  has_attribute(FilterProvenance self, ParticleIndexKey a0) -> bool
13893  has_attribute(FilterProvenance self, ObjectKey a0) -> bool
13894  """
13895  return _IMP_core.FilterProvenance_has_attribute(self, *args)
13896 
13897  def get_derivative(self, a0):
13898  r"""get_derivative(FilterProvenance self, FloatKey a0) -> double"""
13899  return _IMP_core.FilterProvenance_get_derivative(self, a0)
13900 
13901  def get_name(self):
13902  r"""get_name(FilterProvenance self) -> std::string"""
13903  return _IMP_core.FilterProvenance_get_name(self)
13904 
13905  def clear_caches(self):
13906  r"""clear_caches(FilterProvenance self)"""
13907  return _IMP_core.FilterProvenance_clear_caches(self)
13908 
13909  def set_name(self, a0):
13910  r"""set_name(FilterProvenance self, std::string a0)"""
13911  return _IMP_core.FilterProvenance_set_name(self, a0)
13912 
13913  def set_check_level(self, a0):
13914  r"""set_check_level(FilterProvenance self, IMP::CheckLevel a0)"""
13915  return _IMP_core.FilterProvenance_set_check_level(self, a0)
13916 
13917  def add_to_derivative(self, a0, a1, a2):
13918  r"""add_to_derivative(FilterProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13919  return _IMP_core.FilterProvenance_add_to_derivative(self, a0, a1, a2)
13920 
13921  def set_is_optimized(self, a0, a1):
13922  r"""set_is_optimized(FilterProvenance self, FloatKey a0, bool a1)"""
13923  return _IMP_core.FilterProvenance_set_is_optimized(self, a0, a1)
13924 
13925  def get_is_optimized(self, a0):
13926  r"""get_is_optimized(FilterProvenance self, FloatKey a0) -> bool"""
13927  return _IMP_core.FilterProvenance_get_is_optimized(self, a0)
13928 
13929  def get_check_level(self):
13930  r"""get_check_level(FilterProvenance self) -> IMP::CheckLevel"""
13931  return _IMP_core.FilterProvenance_get_check_level(self)
13932 
13933  def __eq__(self, *args):
13934  r"""
13935  __eq__(FilterProvenance self, FilterProvenance o) -> bool
13936  __eq__(FilterProvenance self, Particle d) -> bool
13937  """
13938  return _IMP_core.FilterProvenance___eq__(self, *args)
13939 
13940  def __ne__(self, *args):
13941  r"""
13942  __ne__(FilterProvenance self, FilterProvenance o) -> bool
13943  __ne__(FilterProvenance self, Particle d) -> bool
13944  """
13945  return _IMP_core.FilterProvenance___ne__(self, *args)
13946 
13947  def __le__(self, *args):
13948  r"""
13949  __le__(FilterProvenance self, FilterProvenance o) -> bool
13950  __le__(FilterProvenance self, Particle d) -> bool
13951  """
13952  return _IMP_core.FilterProvenance___le__(self, *args)
13953 
13954  def __lt__(self, *args):
13955  r"""
13956  __lt__(FilterProvenance self, FilterProvenance o) -> bool
13957  __lt__(FilterProvenance self, Particle d) -> bool
13958  """
13959  return _IMP_core.FilterProvenance___lt__(self, *args)
13960 
13961  def __ge__(self, *args):
13962  r"""
13963  __ge__(FilterProvenance self, FilterProvenance o) -> bool
13964  __ge__(FilterProvenance self, Particle d) -> bool
13965  """
13966  return _IMP_core.FilterProvenance___ge__(self, *args)
13967 
13968  def __gt__(self, *args):
13969  r"""
13970  __gt__(FilterProvenance self, FilterProvenance o) -> bool
13971  __gt__(FilterProvenance self, Particle d) -> bool
13972  """
13973  return _IMP_core.FilterProvenance___gt__(self, *args)
13974 
13975  def __hash__(self):
13976  r"""__hash__(FilterProvenance self) -> std::size_t"""
13977  return _IMP_core.FilterProvenance___hash__(self)
13978 
13979  def __str__(self):
13980  r"""__str__(FilterProvenance self) -> std::string"""
13981  return _IMP_core.FilterProvenance___str__(self)
13982 
13983  def __repr__(self):
13984  r"""__repr__(FilterProvenance self) -> std::string"""
13985  return _IMP_core.FilterProvenance___repr__(self)
13986 
13987  def _get_as_binary(self):
13988  r"""_get_as_binary(FilterProvenance self) -> PyObject *"""
13989  return _IMP_core.FilterProvenance__get_as_binary(self)
13990 
13991  def _set_from_binary(self, p):
13992  r"""_set_from_binary(FilterProvenance self, PyObject * p)"""
13993  return _IMP_core.FilterProvenance__set_from_binary(self, p)
13994 
13995  def __getstate__(self):
13996  p = self._get_as_binary()
13997  if len(self.__dict__) > 1:
13998  d = self.__dict__.copy()
13999  del d['this']
14000  p = (d, p)
14001  return p
14002 
14003  def __setstate__(self, p):
14004  if not hasattr(self, 'this'):
14005  self.__init__()
14006  if isinstance(p, tuple):
14007  d, p = p
14008  self.__dict__.update(d)
14009  return self._set_from_binary(p)
14010 
14011  __swig_destroy__ = _IMP_core.delete_FilterProvenance
14012 
14013 # Register FilterProvenance in _IMP_core:
14014 _IMP_core.FilterProvenance_swigregister(FilterProvenance)
14015 class ClusterProvenance(Provenance):
14016  r"""Proxy of C++ IMP::core::ClusterProvenance class."""
14017 
14018  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14019 
14020  def set_number_of_members(self, members):
14021  r"""set_number_of_members(ClusterProvenance self, int members)"""
14022  return _IMP_core.ClusterProvenance_set_number_of_members(self, members)
14023 
14024  def get_number_of_members(self):
14025  r"""get_number_of_members(ClusterProvenance self) -> int"""
14026  return _IMP_core.ClusterProvenance_get_number_of_members(self)
14027 
14028  def set_precision(self, precision):
14029  r"""set_precision(ClusterProvenance self, double precision)"""
14030  return _IMP_core.ClusterProvenance_set_precision(self, precision)
14031 
14032  def get_precision(self):
14033  r"""get_precision(ClusterProvenance self) -> double"""
14034  return _IMP_core.ClusterProvenance_get_precision(self)
14035 
14036  def set_density(self, density):
14037  r"""set_density(ClusterProvenance self, std::string density)"""
14038  return _IMP_core.ClusterProvenance_set_density(self, density)
14039 
14040  def get_density(self):
14041  r"""get_density(ClusterProvenance self) -> std::string"""
14042  return _IMP_core.ClusterProvenance_get_density(self)
14043 
14044  def __init__(self, *args):
14045  r"""
14046  __init__(ClusterProvenance self) -> ClusterProvenance
14047  __init__(ClusterProvenance self, Model m, ParticleIndex id) -> ClusterProvenance
14048  __init__(ClusterProvenance self, _ParticleAdaptor d) -> ClusterProvenance
14049  """
14050  _IMP_core.ClusterProvenance_swiginit(self, _IMP_core.new_ClusterProvenance(*args))
14051 
14052  @staticmethod
14053  def get_is_setup(*args):
14054  r"""
14055  get_is_setup(Model m, ParticleIndex pi) -> bool
14056  get_is_setup(_ParticleAdaptor p) -> bool
14057  """
14058  return _IMP_core.ClusterProvenance_get_is_setup(*args)
14059 
14060  def show(self, *args):
14061  r"""show(ClusterProvenance self, _ostream out=std::cout)"""
14062  return _IMP_core.ClusterProvenance_show(self, *args)
14063 
14064  @staticmethod
14065  def setup_particle(*args):
14066  r"""
14067  setup_particle(Model m, ParticleIndex pi, int members) -> ClusterProvenance
14068  setup_particle(_ParticleAdaptor pa, int members) -> ClusterProvenance
14069  setup_particle(Model m, ParticleIndex pi, int members, double precision) -> ClusterProvenance
14070  setup_particle(_ParticleAdaptor pa, int members, double precision) -> ClusterProvenance
14071  setup_particle(Model m, ParticleIndex pi, int members, double precision, std::string density) -> ClusterProvenance
14072  setup_particle(_ParticleAdaptor pa, int members, double precision, std::string density) -> ClusterProvenance
14073  setup_particle(Model m, ParticleIndex pi, ClusterProvenance o) -> ClusterProvenance
14074  setup_particle(_ParticleAdaptor pa, ClusterProvenance o) -> ClusterProvenance
14075  """
14076  return _IMP_core.ClusterProvenance_setup_particle(*args)
14077 
14078  def add_attribute(self, *args):
14079  r"""
14080  add_attribute(ClusterProvenance self, FloatKey k, IMP::Float v, bool opt)
14081  add_attribute(ClusterProvenance self, FloatKey a0, IMP::Float a1)
14082  add_attribute(ClusterProvenance self, IntKey a0, IMP::Int a1)
14083  add_attribute(ClusterProvenance self, FloatsKey a0, IMP::Floats a1)
14084  add_attribute(ClusterProvenance self, IntsKey a0, IMP::Ints a1)
14085  add_attribute(ClusterProvenance self, StringKey a0, IMP::String a1)
14086  add_attribute(ClusterProvenance self, ParticleIndexKey a0, Particle a1)
14087  add_attribute(ClusterProvenance self, ObjectKey a0, Object a1)
14088  """
14089  return _IMP_core.ClusterProvenance_add_attribute(self, *args)
14090 
14091  def get_value(self, *args):
14092  r"""
14093  get_value(ClusterProvenance self, FloatKey a0) -> IMP::Float
14094  get_value(ClusterProvenance self, IntKey a0) -> IMP::Int
14095  get_value(ClusterProvenance self, FloatsKey a0) -> IMP::Floats
14096  get_value(ClusterProvenance self, IntsKey a0) -> IMP::Ints
14097  get_value(ClusterProvenance self, StringKey a0) -> IMP::String
14098  get_value(ClusterProvenance self, ParticleIndexKey a0) -> Particle
14099  get_value(ClusterProvenance self, ObjectKey a0) -> Object
14100  """
14101  return _IMP_core.ClusterProvenance_get_value(self, *args)
14102 
14103  def set_value(self, *args):
14104  r"""
14105  set_value(ClusterProvenance self, FloatKey a0, IMP::Float a1)
14106  set_value(ClusterProvenance self, IntKey a0, IMP::Int a1)
14107  set_value(ClusterProvenance self, FloatsKey a0, IMP::Floats a1)
14108  set_value(ClusterProvenance self, IntsKey a0, IMP::Ints a1)
14109  set_value(ClusterProvenance self, StringKey a0, IMP::String a1)
14110  set_value(ClusterProvenance self, ParticleIndexKey a0, Particle a1)
14111  set_value(ClusterProvenance self, ObjectKey a0, Object a1)
14112  """
14113  return _IMP_core.ClusterProvenance_set_value(self, *args)
14114 
14115  def remove_attribute(self, *args):
14116  r"""
14117  remove_attribute(ClusterProvenance self, FloatKey a0)
14118  remove_attribute(ClusterProvenance self, IntKey a0)
14119  remove_attribute(ClusterProvenance self, FloatsKey a0)
14120  remove_attribute(ClusterProvenance self, IntsKey a0)
14121  remove_attribute(ClusterProvenance self, StringKey a0)
14122  remove_attribute(ClusterProvenance self, ParticleIndexKey a0)
14123  remove_attribute(ClusterProvenance self, ObjectKey a0)
14124  """
14125  return _IMP_core.ClusterProvenance_remove_attribute(self, *args)
14126 
14127  def has_attribute(self, *args):
14128  r"""
14129  has_attribute(ClusterProvenance self, FloatKey a0) -> bool
14130  has_attribute(ClusterProvenance self, IntKey a0) -> bool
14131  has_attribute(ClusterProvenance self, FloatsKey a0) -> bool
14132  has_attribute(ClusterProvenance self, IntsKey a0) -> bool
14133  has_attribute(ClusterProvenance self, StringKey a0) -> bool
14134  has_attribute(ClusterProvenance self, ParticleIndexKey a0) -> bool
14135  has_attribute(ClusterProvenance self, ObjectKey a0) -> bool
14136  """
14137  return _IMP_core.ClusterProvenance_has_attribute(self, *args)
14138 
14139  def get_derivative(self, a0):
14140  r"""get_derivative(ClusterProvenance self, FloatKey a0) -> double"""
14141  return _IMP_core.ClusterProvenance_get_derivative(self, a0)
14142 
14143  def get_name(self):
14144  r"""get_name(ClusterProvenance self) -> std::string"""
14145  return _IMP_core.ClusterProvenance_get_name(self)
14146 
14147  def clear_caches(self):
14148  r"""clear_caches(ClusterProvenance self)"""
14149  return _IMP_core.ClusterProvenance_clear_caches(self)
14150 
14151  def set_name(self, a0):
14152  r"""set_name(ClusterProvenance self, std::string a0)"""
14153  return _IMP_core.ClusterProvenance_set_name(self, a0)
14154 
14155  def set_check_level(self, a0):
14156  r"""set_check_level(ClusterProvenance self, IMP::CheckLevel a0)"""
14157  return _IMP_core.ClusterProvenance_set_check_level(self, a0)
14158 
14159  def add_to_derivative(self, a0, a1, a2):
14160  r"""add_to_derivative(ClusterProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14161  return _IMP_core.ClusterProvenance_add_to_derivative(self, a0, a1, a2)
14162 
14163  def set_is_optimized(self, a0, a1):
14164  r"""set_is_optimized(ClusterProvenance self, FloatKey a0, bool a1)"""
14165  return _IMP_core.ClusterProvenance_set_is_optimized(self, a0, a1)
14166 
14167  def get_is_optimized(self, a0):
14168  r"""get_is_optimized(ClusterProvenance self, FloatKey a0) -> bool"""
14169  return _IMP_core.ClusterProvenance_get_is_optimized(self, a0)
14170 
14171  def get_check_level(self):
14172  r"""get_check_level(ClusterProvenance self) -> IMP::CheckLevel"""
14173  return _IMP_core.ClusterProvenance_get_check_level(self)
14174 
14175  def __eq__(self, *args):
14176  r"""
14177  __eq__(ClusterProvenance self, ClusterProvenance o) -> bool
14178  __eq__(ClusterProvenance self, Particle d) -> bool
14179  """
14180  return _IMP_core.ClusterProvenance___eq__(self, *args)
14181 
14182  def __ne__(self, *args):
14183  r"""
14184  __ne__(ClusterProvenance self, ClusterProvenance o) -> bool
14185  __ne__(ClusterProvenance self, Particle d) -> bool
14186  """
14187  return _IMP_core.ClusterProvenance___ne__(self, *args)
14188 
14189  def __le__(self, *args):
14190  r"""
14191  __le__(ClusterProvenance self, ClusterProvenance o) -> bool
14192  __le__(ClusterProvenance self, Particle d) -> bool
14193  """
14194  return _IMP_core.ClusterProvenance___le__(self, *args)
14195 
14196  def __lt__(self, *args):
14197  r"""
14198  __lt__(ClusterProvenance self, ClusterProvenance o) -> bool
14199  __lt__(ClusterProvenance self, Particle d) -> bool
14200  """
14201  return _IMP_core.ClusterProvenance___lt__(self, *args)
14202 
14203  def __ge__(self, *args):
14204  r"""
14205  __ge__(ClusterProvenance self, ClusterProvenance o) -> bool
14206  __ge__(ClusterProvenance self, Particle d) -> bool
14207  """
14208  return _IMP_core.ClusterProvenance___ge__(self, *args)
14209 
14210  def __gt__(self, *args):
14211  r"""
14212  __gt__(ClusterProvenance self, ClusterProvenance o) -> bool
14213  __gt__(ClusterProvenance self, Particle d) -> bool
14214  """
14215  return _IMP_core.ClusterProvenance___gt__(self, *args)
14216 
14217  def __hash__(self):
14218  r"""__hash__(ClusterProvenance self) -> std::size_t"""
14219  return _IMP_core.ClusterProvenance___hash__(self)
14220 
14221  def __str__(self):
14222  r"""__str__(ClusterProvenance self) -> std::string"""
14223  return _IMP_core.ClusterProvenance___str__(self)
14224 
14225  def __repr__(self):
14226  r"""__repr__(ClusterProvenance self) -> std::string"""
14227  return _IMP_core.ClusterProvenance___repr__(self)
14228 
14229  def _get_as_binary(self):
14230  r"""_get_as_binary(ClusterProvenance self) -> PyObject *"""
14231  return _IMP_core.ClusterProvenance__get_as_binary(self)
14232 
14233  def _set_from_binary(self, p):
14234  r"""_set_from_binary(ClusterProvenance self, PyObject * p)"""
14235  return _IMP_core.ClusterProvenance__set_from_binary(self, p)
14236 
14237  def __getstate__(self):
14238  p = self._get_as_binary()
14239  if len(self.__dict__) > 1:
14240  d = self.__dict__.copy()
14241  del d['this']
14242  p = (d, p)
14243  return p
14244 
14245  def __setstate__(self, p):
14246  if not hasattr(self, 'this'):
14247  self.__init__()
14248  if isinstance(p, tuple):
14249  d, p = p
14250  self.__dict__.update(d)
14251  return self._set_from_binary(p)
14252 
14253  __swig_destroy__ = _IMP_core.delete_ClusterProvenance
14254 
14255 # Register ClusterProvenance in _IMP_core:
14256 _IMP_core.ClusterProvenance_swigregister(ClusterProvenance)
14257 class ScriptProvenance(Provenance):
14258  r"""Proxy of C++ IMP::core::ScriptProvenance class."""
14259 
14260  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14261 
14262  def set_filename(self, filename):
14263  r"""set_filename(ScriptProvenance self, std::string filename)"""
14264  return _IMP_core.ScriptProvenance_set_filename(self, filename)
14265 
14266  def get_filename(self):
14267  r"""get_filename(ScriptProvenance self) -> std::string"""
14268  return _IMP_core.ScriptProvenance_get_filename(self)
14269 
14270  def __init__(self, *args):
14271  r"""
14272  __init__(ScriptProvenance self) -> ScriptProvenance
14273  __init__(ScriptProvenance self, Model m, ParticleIndex id) -> ScriptProvenance
14274  __init__(ScriptProvenance self, _ParticleAdaptor d) -> ScriptProvenance
14275  """
14276  _IMP_core.ScriptProvenance_swiginit(self, _IMP_core.new_ScriptProvenance(*args))
14277 
14278  @staticmethod
14279  def get_is_setup(*args):
14280  r"""
14281  get_is_setup(Model m, ParticleIndex pi) -> bool
14282  get_is_setup(_ParticleAdaptor p) -> bool
14283  """
14284  return _IMP_core.ScriptProvenance_get_is_setup(*args)
14285 
14286  def show(self, *args):
14287  r"""show(ScriptProvenance self, _ostream out=std::cout)"""
14288  return _IMP_core.ScriptProvenance_show(self, *args)
14289 
14290  @staticmethod
14291  def setup_particle(*args):
14292  r"""
14293  setup_particle(Model m, ParticleIndex pi, std::string filename) -> ScriptProvenance
14294  setup_particle(_ParticleAdaptor pa, std::string filename) -> ScriptProvenance
14295  setup_particle(Model m, ParticleIndex pi, ScriptProvenance o) -> ScriptProvenance
14296  setup_particle(_ParticleAdaptor pa, ScriptProvenance o) -> ScriptProvenance
14297  """
14298  return _IMP_core.ScriptProvenance_setup_particle(*args)
14299 
14300  def add_attribute(self, *args):
14301  r"""
14302  add_attribute(ScriptProvenance self, FloatKey k, IMP::Float v, bool opt)
14303  add_attribute(ScriptProvenance self, FloatKey a0, IMP::Float a1)
14304  add_attribute(ScriptProvenance self, IntKey a0, IMP::Int a1)
14305  add_attribute(ScriptProvenance self, FloatsKey a0, IMP::Floats a1)
14306  add_attribute(ScriptProvenance self, IntsKey a0, IMP::Ints a1)
14307  add_attribute(ScriptProvenance self, StringKey a0, IMP::String a1)
14308  add_attribute(ScriptProvenance self, ParticleIndexKey a0, Particle a1)
14309  add_attribute(ScriptProvenance self, ObjectKey a0, Object a1)
14310  """
14311  return _IMP_core.ScriptProvenance_add_attribute(self, *args)
14312 
14313  def get_value(self, *args):
14314  r"""
14315  get_value(ScriptProvenance self, FloatKey a0) -> IMP::Float
14316  get_value(ScriptProvenance self, IntKey a0) -> IMP::Int
14317  get_value(ScriptProvenance self, FloatsKey a0) -> IMP::Floats
14318  get_value(ScriptProvenance self, IntsKey a0) -> IMP::Ints
14319  get_value(ScriptProvenance self, StringKey a0) -> IMP::String
14320  get_value(ScriptProvenance self, ParticleIndexKey a0) -> Particle
14321  get_value(ScriptProvenance self, ObjectKey a0) -> Object
14322  """
14323  return _IMP_core.ScriptProvenance_get_value(self, *args)
14324 
14325  def set_value(self, *args):
14326  r"""
14327  set_value(ScriptProvenance self, FloatKey a0, IMP::Float a1)
14328  set_value(ScriptProvenance self, IntKey a0, IMP::Int a1)
14329  set_value(ScriptProvenance self, FloatsKey a0, IMP::Floats a1)
14330  set_value(ScriptProvenance self, IntsKey a0, IMP::Ints a1)
14331  set_value(ScriptProvenance self, StringKey a0, IMP::String a1)
14332  set_value(ScriptProvenance self, ParticleIndexKey a0, Particle a1)
14333  set_value(ScriptProvenance self, ObjectKey a0, Object a1)
14334  """
14335  return _IMP_core.ScriptProvenance_set_value(self, *args)
14336 
14337  def remove_attribute(self, *args):
14338  r"""
14339  remove_attribute(ScriptProvenance self, FloatKey a0)
14340  remove_attribute(ScriptProvenance self, IntKey a0)
14341  remove_attribute(ScriptProvenance self, FloatsKey a0)
14342  remove_attribute(ScriptProvenance self, IntsKey a0)
14343  remove_attribute(ScriptProvenance self, StringKey a0)
14344  remove_attribute(ScriptProvenance self, ParticleIndexKey a0)
14345  remove_attribute(ScriptProvenance self, ObjectKey a0)
14346  """
14347  return _IMP_core.ScriptProvenance_remove_attribute(self, *args)
14348 
14349  def has_attribute(self, *args):
14350  r"""
14351  has_attribute(ScriptProvenance self, FloatKey a0) -> bool
14352  has_attribute(ScriptProvenance self, IntKey a0) -> bool
14353  has_attribute(ScriptProvenance self, FloatsKey a0) -> bool
14354  has_attribute(ScriptProvenance self, IntsKey a0) -> bool
14355  has_attribute(ScriptProvenance self, StringKey a0) -> bool
14356  has_attribute(ScriptProvenance self, ParticleIndexKey a0) -> bool
14357  has_attribute(ScriptProvenance self, ObjectKey a0) -> bool
14358  """
14359  return _IMP_core.ScriptProvenance_has_attribute(self, *args)
14360 
14361  def get_derivative(self, a0):
14362  r"""get_derivative(ScriptProvenance self, FloatKey a0) -> double"""
14363  return _IMP_core.ScriptProvenance_get_derivative(self, a0)
14364 
14365  def get_name(self):
14366  r"""get_name(ScriptProvenance self) -> std::string"""
14367  return _IMP_core.ScriptProvenance_get_name(self)
14368 
14369  def clear_caches(self):
14370  r"""clear_caches(ScriptProvenance self)"""
14371  return _IMP_core.ScriptProvenance_clear_caches(self)
14372 
14373  def set_name(self, a0):
14374  r"""set_name(ScriptProvenance self, std::string a0)"""
14375  return _IMP_core.ScriptProvenance_set_name(self, a0)
14376 
14377  def set_check_level(self, a0):
14378  r"""set_check_level(ScriptProvenance self, IMP::CheckLevel a0)"""
14379  return _IMP_core.ScriptProvenance_set_check_level(self, a0)
14380 
14381  def add_to_derivative(self, a0, a1, a2):
14382  r"""add_to_derivative(ScriptProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14383  return _IMP_core.ScriptProvenance_add_to_derivative(self, a0, a1, a2)
14384 
14385  def set_is_optimized(self, a0, a1):
14386  r"""set_is_optimized(ScriptProvenance self, FloatKey a0, bool a1)"""
14387  return _IMP_core.ScriptProvenance_set_is_optimized(self, a0, a1)
14388 
14389  def get_is_optimized(self, a0):
14390  r"""get_is_optimized(ScriptProvenance self, FloatKey a0) -> bool"""
14391  return _IMP_core.ScriptProvenance_get_is_optimized(self, a0)
14392 
14393  def get_check_level(self):
14394  r"""get_check_level(ScriptProvenance self) -> IMP::CheckLevel"""
14395  return _IMP_core.ScriptProvenance_get_check_level(self)
14396 
14397  def __eq__(self, *args):
14398  r"""
14399  __eq__(ScriptProvenance self, ScriptProvenance o) -> bool
14400  __eq__(ScriptProvenance self, Particle d) -> bool
14401  """
14402  return _IMP_core.ScriptProvenance___eq__(self, *args)
14403 
14404  def __ne__(self, *args):
14405  r"""
14406  __ne__(ScriptProvenance self, ScriptProvenance o) -> bool
14407  __ne__(ScriptProvenance self, Particle d) -> bool
14408  """
14409  return _IMP_core.ScriptProvenance___ne__(self, *args)
14410 
14411  def __le__(self, *args):
14412  r"""
14413  __le__(ScriptProvenance self, ScriptProvenance o) -> bool
14414  __le__(ScriptProvenance self, Particle d) -> bool
14415  """
14416  return _IMP_core.ScriptProvenance___le__(self, *args)
14417 
14418  def __lt__(self, *args):
14419  r"""
14420  __lt__(ScriptProvenance self, ScriptProvenance o) -> bool
14421  __lt__(ScriptProvenance self, Particle d) -> bool
14422  """
14423  return _IMP_core.ScriptProvenance___lt__(self, *args)
14424 
14425  def __ge__(self, *args):
14426  r"""
14427  __ge__(ScriptProvenance self, ScriptProvenance o) -> bool
14428  __ge__(ScriptProvenance self, Particle d) -> bool
14429  """
14430  return _IMP_core.ScriptProvenance___ge__(self, *args)
14431 
14432  def __gt__(self, *args):
14433  r"""
14434  __gt__(ScriptProvenance self, ScriptProvenance o) -> bool
14435  __gt__(ScriptProvenance self, Particle d) -> bool
14436  """
14437  return _IMP_core.ScriptProvenance___gt__(self, *args)
14438 
14439  def __hash__(self):
14440  r"""__hash__(ScriptProvenance self) -> std::size_t"""
14441  return _IMP_core.ScriptProvenance___hash__(self)
14442 
14443  def __str__(self):
14444  r"""__str__(ScriptProvenance self) -> std::string"""
14445  return _IMP_core.ScriptProvenance___str__(self)
14446 
14447  def __repr__(self):
14448  r"""__repr__(ScriptProvenance self) -> std::string"""
14449  return _IMP_core.ScriptProvenance___repr__(self)
14450 
14451  def _get_as_binary(self):
14452  r"""_get_as_binary(ScriptProvenance self) -> PyObject *"""
14453  return _IMP_core.ScriptProvenance__get_as_binary(self)
14454 
14455  def _set_from_binary(self, p):
14456  r"""_set_from_binary(ScriptProvenance self, PyObject * p)"""
14457  return _IMP_core.ScriptProvenance__set_from_binary(self, p)
14458 
14459  def __getstate__(self):
14460  p = self._get_as_binary()
14461  if len(self.__dict__) > 1:
14462  d = self.__dict__.copy()
14463  del d['this']
14464  p = (d, p)
14465  return p
14466 
14467  def __setstate__(self, p):
14468  if not hasattr(self, 'this'):
14469  self.__init__()
14470  if isinstance(p, tuple):
14471  d, p = p
14472  self.__dict__.update(d)
14473  return self._set_from_binary(p)
14474 
14475  __swig_destroy__ = _IMP_core.delete_ScriptProvenance
14476 
14477 # Register ScriptProvenance in _IMP_core:
14478 _IMP_core.ScriptProvenance_swigregister(ScriptProvenance)
14479 class SoftwareProvenance(Provenance):
14480  r"""Proxy of C++ IMP::core::SoftwareProvenance class."""
14481 
14482  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14483 
14484  def set_software_name(self, name):
14485  r"""set_software_name(SoftwareProvenance self, std::string name)"""
14486  return _IMP_core.SoftwareProvenance_set_software_name(self, name)
14487 
14488  def get_software_name(self):
14489  r"""get_software_name(SoftwareProvenance self) -> std::string"""
14490  return _IMP_core.SoftwareProvenance_get_software_name(self)
14491 
14492  def set_version(self, version):
14493  r"""set_version(SoftwareProvenance self, std::string version)"""
14494  return _IMP_core.SoftwareProvenance_set_version(self, version)
14495 
14496  def get_version(self):
14497  r"""get_version(SoftwareProvenance self) -> std::string"""
14498  return _IMP_core.SoftwareProvenance_get_version(self)
14499 
14500  def set_location(self, location):
14501  r"""set_location(SoftwareProvenance self, std::string location)"""
14502  return _IMP_core.SoftwareProvenance_set_location(self, location)
14503 
14504  def get_location(self):
14505  r"""get_location(SoftwareProvenance self) -> std::string"""
14506  return _IMP_core.SoftwareProvenance_get_location(self)
14507 
14508  def __init__(self, *args):
14509  r"""
14510  __init__(SoftwareProvenance self) -> SoftwareProvenance
14511  __init__(SoftwareProvenance self, Model m, ParticleIndex id) -> SoftwareProvenance
14512  __init__(SoftwareProvenance self, _ParticleAdaptor d) -> SoftwareProvenance
14513  """
14514  _IMP_core.SoftwareProvenance_swiginit(self, _IMP_core.new_SoftwareProvenance(*args))
14515 
14516  @staticmethod
14517  def get_is_setup(*args):
14518  r"""
14519  get_is_setup(Model m, ParticleIndex pi) -> bool
14520  get_is_setup(_ParticleAdaptor p) -> bool
14521  """
14522  return _IMP_core.SoftwareProvenance_get_is_setup(*args)
14523 
14524  def show(self, *args):
14525  r"""show(SoftwareProvenance self, _ostream out=std::cout)"""
14526  return _IMP_core.SoftwareProvenance_show(self, *args)
14527 
14528  @staticmethod
14529  def setup_particle(*args):
14530  r"""
14531  setup_particle(Model m, ParticleIndex pi, std::string name, std::string version, std::string location) -> SoftwareProvenance
14532  setup_particle(_ParticleAdaptor pa, std::string name, std::string version, std::string location) -> SoftwareProvenance
14533  setup_particle(Model m, ParticleIndex pi, SoftwareProvenance o) -> SoftwareProvenance
14534  setup_particle(_ParticleAdaptor pa, SoftwareProvenance o) -> SoftwareProvenance
14535  """
14536  return _IMP_core.SoftwareProvenance_setup_particle(*args)
14537 
14538  def add_attribute(self, *args):
14539  r"""
14540  add_attribute(SoftwareProvenance self, FloatKey k, IMP::Float v, bool opt)
14541  add_attribute(SoftwareProvenance self, FloatKey a0, IMP::Float a1)
14542  add_attribute(SoftwareProvenance self, IntKey a0, IMP::Int a1)
14543  add_attribute(SoftwareProvenance self, FloatsKey a0, IMP::Floats a1)
14544  add_attribute(SoftwareProvenance self, IntsKey a0, IMP::Ints a1)
14545  add_attribute(SoftwareProvenance self, StringKey a0, IMP::String a1)
14546  add_attribute(SoftwareProvenance self, ParticleIndexKey a0, Particle a1)
14547  add_attribute(SoftwareProvenance self, ObjectKey a0, Object a1)
14548  """
14549  return _IMP_core.SoftwareProvenance_add_attribute(self, *args)
14550 
14551  def get_value(self, *args):
14552  r"""
14553  get_value(SoftwareProvenance self, FloatKey a0) -> IMP::Float
14554  get_value(SoftwareProvenance self, IntKey a0) -> IMP::Int
14555  get_value(SoftwareProvenance self, FloatsKey a0) -> IMP::Floats
14556  get_value(SoftwareProvenance self, IntsKey a0) -> IMP::Ints
14557  get_value(SoftwareProvenance self, StringKey a0) -> IMP::String
14558  get_value(SoftwareProvenance self, ParticleIndexKey a0) -> Particle
14559  get_value(SoftwareProvenance self, ObjectKey a0) -> Object
14560  """
14561  return _IMP_core.SoftwareProvenance_get_value(self, *args)
14562 
14563  def set_value(self, *args):
14564  r"""
14565  set_value(SoftwareProvenance self, FloatKey a0, IMP::Float a1)
14566  set_value(SoftwareProvenance self, IntKey a0, IMP::Int a1)
14567  set_value(SoftwareProvenance self, FloatsKey a0, IMP::Floats a1)
14568  set_value(SoftwareProvenance self, IntsKey a0, IMP::Ints a1)
14569  set_value(SoftwareProvenance self, StringKey a0, IMP::String a1)
14570  set_value(SoftwareProvenance self, ParticleIndexKey a0, Particle a1)
14571  set_value(SoftwareProvenance self, ObjectKey a0, Object a1)
14572  """
14573  return _IMP_core.SoftwareProvenance_set_value(self, *args)
14574 
14575  def remove_attribute(self, *args):
14576  r"""
14577  remove_attribute(SoftwareProvenance self, FloatKey a0)
14578  remove_attribute(SoftwareProvenance self, IntKey a0)
14579  remove_attribute(SoftwareProvenance self, FloatsKey a0)
14580  remove_attribute(SoftwareProvenance self, IntsKey a0)
14581  remove_attribute(SoftwareProvenance self, StringKey a0)
14582  remove_attribute(SoftwareProvenance self, ParticleIndexKey a0)
14583  remove_attribute(SoftwareProvenance self, ObjectKey a0)
14584  """
14585  return _IMP_core.SoftwareProvenance_remove_attribute(self, *args)
14586 
14587  def has_attribute(self, *args):
14588  r"""
14589  has_attribute(SoftwareProvenance self, FloatKey a0) -> bool
14590  has_attribute(SoftwareProvenance self, IntKey a0) -> bool
14591  has_attribute(SoftwareProvenance self, FloatsKey a0) -> bool
14592  has_attribute(SoftwareProvenance self, IntsKey a0) -> bool
14593  has_attribute(SoftwareProvenance self, StringKey a0) -> bool
14594  has_attribute(SoftwareProvenance self, ParticleIndexKey a0) -> bool
14595  has_attribute(SoftwareProvenance self, ObjectKey a0) -> bool
14596  """
14597  return _IMP_core.SoftwareProvenance_has_attribute(self, *args)
14598 
14599  def get_derivative(self, a0):
14600  r"""get_derivative(SoftwareProvenance self, FloatKey a0) -> double"""
14601  return _IMP_core.SoftwareProvenance_get_derivative(self, a0)
14602 
14603  def get_name(self):
14604  r"""get_name(SoftwareProvenance self) -> std::string"""
14605  return _IMP_core.SoftwareProvenance_get_name(self)
14606 
14607  def clear_caches(self):
14608  r"""clear_caches(SoftwareProvenance self)"""
14609  return _IMP_core.SoftwareProvenance_clear_caches(self)
14610 
14611  def set_name(self, a0):
14612  r"""set_name(SoftwareProvenance self, std::string a0)"""
14613  return _IMP_core.SoftwareProvenance_set_name(self, a0)
14614 
14615  def set_check_level(self, a0):
14616  r"""set_check_level(SoftwareProvenance self, IMP::CheckLevel a0)"""
14617  return _IMP_core.SoftwareProvenance_set_check_level(self, a0)
14618 
14619  def add_to_derivative(self, a0, a1, a2):
14620  r"""add_to_derivative(SoftwareProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14621  return _IMP_core.SoftwareProvenance_add_to_derivative(self, a0, a1, a2)
14622 
14623  def set_is_optimized(self, a0, a1):
14624  r"""set_is_optimized(SoftwareProvenance self, FloatKey a0, bool a1)"""
14625  return _IMP_core.SoftwareProvenance_set_is_optimized(self, a0, a1)
14626 
14627  def get_is_optimized(self, a0):
14628  r"""get_is_optimized(SoftwareProvenance self, FloatKey a0) -> bool"""
14629  return _IMP_core.SoftwareProvenance_get_is_optimized(self, a0)
14630 
14631  def get_check_level(self):
14632  r"""get_check_level(SoftwareProvenance self) -> IMP::CheckLevel"""
14633  return _IMP_core.SoftwareProvenance_get_check_level(self)
14634 
14635  def __eq__(self, *args):
14636  r"""
14637  __eq__(SoftwareProvenance self, SoftwareProvenance o) -> bool
14638  __eq__(SoftwareProvenance self, Particle d) -> bool
14639  """
14640  return _IMP_core.SoftwareProvenance___eq__(self, *args)
14641 
14642  def __ne__(self, *args):
14643  r"""
14644  __ne__(SoftwareProvenance self, SoftwareProvenance o) -> bool
14645  __ne__(SoftwareProvenance self, Particle d) -> bool
14646  """
14647  return _IMP_core.SoftwareProvenance___ne__(self, *args)
14648 
14649  def __le__(self, *args):
14650  r"""
14651  __le__(SoftwareProvenance self, SoftwareProvenance o) -> bool
14652  __le__(SoftwareProvenance self, Particle d) -> bool
14653  """
14654  return _IMP_core.SoftwareProvenance___le__(self, *args)
14655 
14656  def __lt__(self, *args):
14657  r"""
14658  __lt__(SoftwareProvenance self, SoftwareProvenance o) -> bool
14659  __lt__(SoftwareProvenance self, Particle d) -> bool
14660  """
14661  return _IMP_core.SoftwareProvenance___lt__(self, *args)
14662 
14663  def __ge__(self, *args):
14664  r"""
14665  __ge__(SoftwareProvenance self, SoftwareProvenance o) -> bool
14666  __ge__(SoftwareProvenance self, Particle d) -> bool
14667  """
14668  return _IMP_core.SoftwareProvenance___ge__(self, *args)
14669 
14670  def __gt__(self, *args):
14671  r"""
14672  __gt__(SoftwareProvenance self, SoftwareProvenance o) -> bool
14673  __gt__(SoftwareProvenance self, Particle d) -> bool
14674  """
14675  return _IMP_core.SoftwareProvenance___gt__(self, *args)
14676 
14677  def __hash__(self):
14678  r"""__hash__(SoftwareProvenance self) -> std::size_t"""
14679  return _IMP_core.SoftwareProvenance___hash__(self)
14680 
14681  def __str__(self):
14682  r"""__str__(SoftwareProvenance self) -> std::string"""
14683  return _IMP_core.SoftwareProvenance___str__(self)
14684 
14685  def __repr__(self):
14686  r"""__repr__(SoftwareProvenance self) -> std::string"""
14687  return _IMP_core.SoftwareProvenance___repr__(self)
14688 
14689  def _get_as_binary(self):
14690  r"""_get_as_binary(SoftwareProvenance self) -> PyObject *"""
14691  return _IMP_core.SoftwareProvenance__get_as_binary(self)
14692 
14693  def _set_from_binary(self, p):
14694  r"""_set_from_binary(SoftwareProvenance self, PyObject * p)"""
14695  return _IMP_core.SoftwareProvenance__set_from_binary(self, p)
14696 
14697  def __getstate__(self):
14698  p = self._get_as_binary()
14699  if len(self.__dict__) > 1:
14700  d = self.__dict__.copy()
14701  del d['this']
14702  p = (d, p)
14703  return p
14704 
14705  def __setstate__(self, p):
14706  if not hasattr(self, 'this'):
14707  self.__init__()
14708  if isinstance(p, tuple):
14709  d, p = p
14710  self.__dict__.update(d)
14711  return self._set_from_binary(p)
14712 
14713  __swig_destroy__ = _IMP_core.delete_SoftwareProvenance
14714 
14715 # Register SoftwareProvenance in _IMP_core:
14716 _IMP_core.SoftwareProvenance_swigregister(SoftwareProvenance)
14717 class Provenanced(IMP.Decorator):
14718  r"""Proxy of C++ IMP::core::Provenanced class."""
14719 
14720  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14721 
14722  def get_provenance(self):
14723  r"""get_provenance(Provenanced self) -> Provenance"""
14724  return _IMP_core.Provenanced_get_provenance(self)
14725 
14726  def set_provenance(self, p):
14727  r"""set_provenance(Provenanced self, Provenance p)"""
14728  return _IMP_core.Provenanced_set_provenance(self, p)
14729 
14730  def __init__(self, *args):
14731  r"""
14732  __init__(Provenanced self) -> Provenanced
14733  __init__(Provenanced self, Model m, ParticleIndex id) -> Provenanced
14734  __init__(Provenanced self, _ParticleAdaptor d) -> Provenanced
14735  """
14736  _IMP_core.Provenanced_swiginit(self, _IMP_core.new_Provenanced(*args))
14737 
14738  @staticmethod
14739  def get_is_setup(*args):
14740  r"""
14741  get_is_setup(Model m, ParticleIndex pi) -> bool
14742  get_is_setup(_ParticleAdaptor p) -> bool
14743  """
14744  return _IMP_core.Provenanced_get_is_setup(*args)
14745 
14746  def show(self, *args):
14747  r"""show(Provenanced self, _ostream out=std::cout)"""
14748  return _IMP_core.Provenanced_show(self, *args)
14749 
14750  @staticmethod
14751  def setup_particle(*args):
14752  r"""
14753  setup_particle(Model m, ParticleIndex pi, Provenance p) -> Provenanced
14754  setup_particle(_ParticleAdaptor pa, Provenance p) -> Provenanced
14755  """
14756  return _IMP_core.Provenanced_setup_particle(*args)
14757 
14758  def add_attribute(self, *args):
14759  r"""
14760  add_attribute(Provenanced self, FloatKey k, IMP::Float v, bool opt)
14761  add_attribute(Provenanced self, FloatKey a0, IMP::Float a1)
14762  add_attribute(Provenanced self, IntKey a0, IMP::Int a1)
14763  add_attribute(Provenanced self, FloatsKey a0, IMP::Floats a1)
14764  add_attribute(Provenanced self, IntsKey a0, IMP::Ints a1)
14765  add_attribute(Provenanced self, StringKey a0, IMP::String a1)
14766  add_attribute(Provenanced self, ParticleIndexKey a0, Particle a1)
14767  add_attribute(Provenanced self, ObjectKey a0, Object a1)
14768  """
14769  return _IMP_core.Provenanced_add_attribute(self, *args)
14770 
14771  def get_value(self, *args):
14772  r"""
14773  get_value(Provenanced self, FloatKey a0) -> IMP::Float
14774  get_value(Provenanced self, IntKey a0) -> IMP::Int
14775  get_value(Provenanced self, FloatsKey a0) -> IMP::Floats
14776  get_value(Provenanced self, IntsKey a0) -> IMP::Ints
14777  get_value(Provenanced self, StringKey a0) -> IMP::String
14778  get_value(Provenanced self, ParticleIndexKey a0) -> Particle
14779  get_value(Provenanced self, ObjectKey a0) -> Object
14780  """
14781  return _IMP_core.Provenanced_get_value(self, *args)
14782 
14783  def set_value(self, *args):
14784  r"""
14785  set_value(Provenanced self, FloatKey a0, IMP::Float a1)
14786  set_value(Provenanced self, IntKey a0, IMP::Int a1)
14787  set_value(Provenanced self, FloatsKey a0, IMP::Floats a1)
14788  set_value(Provenanced self, IntsKey a0, IMP::Ints a1)
14789  set_value(Provenanced self, StringKey a0, IMP::String a1)
14790  set_value(Provenanced self, ParticleIndexKey a0, Particle a1)
14791  set_value(Provenanced self, ObjectKey a0, Object a1)
14792  """
14793  return _IMP_core.Provenanced_set_value(self, *args)
14794 
14795  def remove_attribute(self, *args):
14796  r"""
14797  remove_attribute(Provenanced self, FloatKey a0)
14798  remove_attribute(Provenanced self, IntKey a0)
14799  remove_attribute(Provenanced self, FloatsKey a0)
14800  remove_attribute(Provenanced self, IntsKey a0)
14801  remove_attribute(Provenanced self, StringKey a0)
14802  remove_attribute(Provenanced self, ParticleIndexKey a0)
14803  remove_attribute(Provenanced self, ObjectKey a0)
14804  """
14805  return _IMP_core.Provenanced_remove_attribute(self, *args)
14806 
14807  def has_attribute(self, *args):
14808  r"""
14809  has_attribute(Provenanced self, FloatKey a0) -> bool
14810  has_attribute(Provenanced self, IntKey a0) -> bool
14811  has_attribute(Provenanced self, FloatsKey a0) -> bool
14812  has_attribute(Provenanced self, IntsKey a0) -> bool
14813  has_attribute(Provenanced self, StringKey a0) -> bool
14814  has_attribute(Provenanced self, ParticleIndexKey a0) -> bool
14815  has_attribute(Provenanced self, ObjectKey a0) -> bool
14816  """
14817  return _IMP_core.Provenanced_has_attribute(self, *args)
14818 
14819  def get_derivative(self, a0):
14820  r"""get_derivative(Provenanced self, FloatKey a0) -> double"""
14821  return _IMP_core.Provenanced_get_derivative(self, a0)
14822 
14823  def get_name(self):
14824  r"""get_name(Provenanced self) -> std::string"""
14825  return _IMP_core.Provenanced_get_name(self)
14826 
14827  def clear_caches(self):
14828  r"""clear_caches(Provenanced self)"""
14829  return _IMP_core.Provenanced_clear_caches(self)
14830 
14831  def set_name(self, a0):
14832  r"""set_name(Provenanced self, std::string a0)"""
14833  return _IMP_core.Provenanced_set_name(self, a0)
14834 
14835  def set_check_level(self, a0):
14836  r"""set_check_level(Provenanced self, IMP::CheckLevel a0)"""
14837  return _IMP_core.Provenanced_set_check_level(self, a0)
14838 
14839  def add_to_derivative(self, a0, a1, a2):
14840  r"""add_to_derivative(Provenanced self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14841  return _IMP_core.Provenanced_add_to_derivative(self, a0, a1, a2)
14842 
14843  def set_is_optimized(self, a0, a1):
14844  r"""set_is_optimized(Provenanced self, FloatKey a0, bool a1)"""
14845  return _IMP_core.Provenanced_set_is_optimized(self, a0, a1)
14846 
14847  def get_is_optimized(self, a0):
14848  r"""get_is_optimized(Provenanced self, FloatKey a0) -> bool"""
14849  return _IMP_core.Provenanced_get_is_optimized(self, a0)
14850 
14851  def get_check_level(self):
14852  r"""get_check_level(Provenanced self) -> IMP::CheckLevel"""
14853  return _IMP_core.Provenanced_get_check_level(self)
14854 
14855  def __eq__(self, *args):
14856  r"""
14857  __eq__(Provenanced self, Provenanced o) -> bool
14858  __eq__(Provenanced self, Particle d) -> bool
14859  """
14860  return _IMP_core.Provenanced___eq__(self, *args)
14861 
14862  def __ne__(self, *args):
14863  r"""
14864  __ne__(Provenanced self, Provenanced o) -> bool
14865  __ne__(Provenanced self, Particle d) -> bool
14866  """
14867  return _IMP_core.Provenanced___ne__(self, *args)
14868 
14869  def __le__(self, *args):
14870  r"""
14871  __le__(Provenanced self, Provenanced o) -> bool
14872  __le__(Provenanced self, Particle d) -> bool
14873  """
14874  return _IMP_core.Provenanced___le__(self, *args)
14875 
14876  def __lt__(self, *args):
14877  r"""
14878  __lt__(Provenanced self, Provenanced o) -> bool
14879  __lt__(Provenanced self, Particle d) -> bool
14880  """
14881  return _IMP_core.Provenanced___lt__(self, *args)
14882 
14883  def __ge__(self, *args):
14884  r"""
14885  __ge__(Provenanced self, Provenanced o) -> bool
14886  __ge__(Provenanced self, Particle d) -> bool
14887  """
14888  return _IMP_core.Provenanced___ge__(self, *args)
14889 
14890  def __gt__(self, *args):
14891  r"""
14892  __gt__(Provenanced self, Provenanced o) -> bool
14893  __gt__(Provenanced self, Particle d) -> bool
14894  """
14895  return _IMP_core.Provenanced___gt__(self, *args)
14896 
14897  def __hash__(self):
14898  r"""__hash__(Provenanced self) -> std::size_t"""
14899  return _IMP_core.Provenanced___hash__(self)
14900 
14901  def __str__(self):
14902  r"""__str__(Provenanced self) -> std::string"""
14903  return _IMP_core.Provenanced___str__(self)
14904 
14905  def __repr__(self):
14906  r"""__repr__(Provenanced self) -> std::string"""
14907  return _IMP_core.Provenanced___repr__(self)
14908 
14909  def _get_as_binary(self):
14910  r"""_get_as_binary(Provenanced self) -> PyObject *"""
14911  return _IMP_core.Provenanced__get_as_binary(self)
14912 
14913  def _set_from_binary(self, p):
14914  r"""_set_from_binary(Provenanced self, PyObject * p)"""
14915  return _IMP_core.Provenanced__set_from_binary(self, p)
14916 
14917  def __getstate__(self):
14918  p = self._get_as_binary()
14919  if len(self.__dict__) > 1:
14920  d = self.__dict__.copy()
14921  del d['this']
14922  p = (d, p)
14923  return p
14924 
14925  def __setstate__(self, p):
14926  if not hasattr(self, 'this'):
14927  self.__init__()
14928  if isinstance(p, tuple):
14929  d, p = p
14930  self.__dict__.update(d)
14931  return self._set_from_binary(p)
14932 
14933  __swig_destroy__ = _IMP_core.delete_Provenanced
14934 
14935 # Register Provenanced in _IMP_core:
14936 _IMP_core.Provenanced_swigregister(Provenanced)
14937 
14938 def add_provenance(m, pi, p):
14939  r"""add_provenance(Model m, ParticleIndex pi, Provenance p)"""
14940  return _IMP_core.add_provenance(m, pi, p)
14941 
14942 def create_clone(p):
14943  r"""create_clone(Provenance p) -> Provenance"""
14944  return _IMP_core.create_clone(p)
14945 
14947  r"""
14948  get_transformation_aligning_first_to_second(IMP::ParticlesTemp const & a, IMP::ParticlesTemp const & b) -> Transformation3D
14949  get_transformation_aligning_first_to_second(IMP::ParticlesTemp const & a, IMP::Vector< IMP::algebra::VectorD< 3 > > const & b) -> Transformation3D
14950  get_transformation_aligning_first_to_second(IMP::Vector< IMP::algebra::VectorD< 3 > > const & a, IMP::ParticlesTemp const & b) -> Transformation3D
14951  """
14952  return _IMP_core.get_transformation_aligning_first_to_second(*args)
14953 
14954 def create_restraint(ps, pp):
14955  r"""create_restraint(PairScore ps, IMP::ParticlePair pp) -> Restraint"""
14956  return _IMP_core.create_restraint(ps, pp)
14958  r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::LOWER > class."""
14959 
14960  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14961 
14962  def __init__(self, *args):
14963  r"""
14964  __init__(TruncatedHarmonicLowerBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicLowerBound
14965  __init__(TruncatedHarmonicLowerBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicLowerBound
14966  """
14967  _IMP_core.TruncatedHarmonicLowerBound_swiginit(self, _IMP_core.new_TruncatedHarmonicLowerBound(*args))
14968 
14969  def get_version_info(self):
14970  r"""get_version_info(TruncatedHarmonicLowerBound self) -> VersionInfo"""
14971  return _IMP_core.TruncatedHarmonicLowerBound_get_version_info(self)
14972  __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicLowerBound
14973 
14974  def __str__(self):
14975  r"""__str__(TruncatedHarmonicLowerBound self) -> std::string"""
14976  return _IMP_core.TruncatedHarmonicLowerBound___str__(self)
14977 
14978  def __repr__(self):
14979  r"""__repr__(TruncatedHarmonicLowerBound self) -> std::string"""
14980  return _IMP_core.TruncatedHarmonicLowerBound___repr__(self)
14981 
14982  @staticmethod
14983  def get_from(o):
14984  return _object_cast_to_TruncatedHarmonic(o)
14985 
14986 
14987 # Register TruncatedHarmonicLowerBound in _IMP_core:
14988 _IMP_core.TruncatedHarmonicLowerBound_swigregister(TruncatedHarmonicLowerBound)
14990  r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::UPPER > class."""
14991 
14992  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14993 
14994  def __init__(self, *args):
14995  r"""
14996  __init__(TruncatedHarmonicUpperBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicUpperBound
14997  __init__(TruncatedHarmonicUpperBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicUpperBound
14998  """
14999  _IMP_core.TruncatedHarmonicUpperBound_swiginit(self, _IMP_core.new_TruncatedHarmonicUpperBound(*args))
15000 
15001  def get_version_info(self):
15002  r"""get_version_info(TruncatedHarmonicUpperBound self) -> VersionInfo"""
15003  return _IMP_core.TruncatedHarmonicUpperBound_get_version_info(self)
15004  __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicUpperBound
15005 
15006  def __str__(self):
15007  r"""__str__(TruncatedHarmonicUpperBound self) -> std::string"""
15008  return _IMP_core.TruncatedHarmonicUpperBound___str__(self)
15009 
15010  def __repr__(self):
15011  r"""__repr__(TruncatedHarmonicUpperBound self) -> std::string"""
15012  return _IMP_core.TruncatedHarmonicUpperBound___repr__(self)
15013 
15014  @staticmethod
15015  def get_from(o):
15016  return _object_cast_to_TruncatedHarmonic(o)
15017 
15018 
15019 # Register TruncatedHarmonicUpperBound in _IMP_core:
15020 _IMP_core.TruncatedHarmonicUpperBound_swigregister(TruncatedHarmonicUpperBound)
15022  r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::BOTH > class."""
15023 
15024  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15025 
15026  def __init__(self, *args):
15027  r"""
15028  __init__(TruncatedHarmonicBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicBound
15029  __init__(TruncatedHarmonicBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicBound
15030  """
15031  _IMP_core.TruncatedHarmonicBound_swiginit(self, _IMP_core.new_TruncatedHarmonicBound(*args))
15032 
15033  def get_version_info(self):
15034  r"""get_version_info(TruncatedHarmonicBound self) -> VersionInfo"""
15035  return _IMP_core.TruncatedHarmonicBound_get_version_info(self)
15036  __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicBound
15037 
15038  def __str__(self):
15039  r"""__str__(TruncatedHarmonicBound self) -> std::string"""
15040  return _IMP_core.TruncatedHarmonicBound___str__(self)
15041 
15042  def __repr__(self):
15043  r"""__repr__(TruncatedHarmonicBound self) -> std::string"""
15044  return _IMP_core.TruncatedHarmonicBound___repr__(self)
15045 
15046  @staticmethod
15047  def get_from(o):
15048  return _object_cast_to_TruncatedHarmonic(o)
15049 
15050 
15051 # Register TruncatedHarmonicBound in _IMP_core:
15052 _IMP_core.TruncatedHarmonicBound_swigregister(TruncatedHarmonicBound)
15053 class ParticleType(IMP._Value):
15054  r"""Proxy of C++ IMP::Key< 34897493 > class."""
15055 
15056  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15057 
15058  def __init__(self, *args):
15059  r"""
15060  __init__(ParticleType self) -> ParticleType
15061  __init__(ParticleType self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleType
15062  __init__(ParticleType self, unsigned int i) -> ParticleType
15063  """
15064  _IMP_core.ParticleType_swiginit(self, _IMP_core.new_ParticleType(*args))
15065 
15066  @staticmethod
15067  def add_key(sc):
15068  r"""add_key(std::string sc) -> unsigned int"""
15069  return _IMP_core.ParticleType_add_key(sc)
15070 
15071  @staticmethod
15072  def get_key_exists(sc):
15073  r"""get_key_exists(std::string sc) -> bool"""
15074  return _IMP_core.ParticleType_get_key_exists(sc)
15075 
15076  def get_string(self):
15077  r"""get_string(ParticleType self) -> std::string const"""
15078  return _IMP_core.ParticleType_get_string(self)
15079 
15080  def __cmp__(self, o):
15081  r"""__cmp__(ParticleType self, ParticleType o) -> int"""
15082  return _IMP_core.ParticleType___cmp__(self, o)
15083 
15084  def __eq__(self, o):
15085  r"""__eq__(ParticleType self, ParticleType o) -> bool"""
15086  return _IMP_core.ParticleType___eq__(self, o)
15087 
15088  def __ne__(self, o):
15089  r"""__ne__(ParticleType self, ParticleType o) -> bool"""
15090  return _IMP_core.ParticleType___ne__(self, o)
15091 
15092  def __lt__(self, o):
15093  r"""__lt__(ParticleType self, ParticleType o) -> bool"""
15094  return _IMP_core.ParticleType___lt__(self, o)
15095 
15096  def __gt__(self, o):
15097  r"""__gt__(ParticleType self, ParticleType o) -> bool"""
15098  return _IMP_core.ParticleType___gt__(self, o)
15099 
15100  def __ge__(self, o):
15101  r"""__ge__(ParticleType self, ParticleType o) -> bool"""
15102  return _IMP_core.ParticleType___ge__(self, o)
15103 
15104  def __le__(self, o):
15105  r"""__le__(ParticleType self, ParticleType o) -> bool"""
15106  return _IMP_core.ParticleType___le__(self, o)
15107 
15108  def __hash__(self):
15109  r"""__hash__(ParticleType self) -> std::size_t"""
15110  return _IMP_core.ParticleType___hash__(self)
15111 
15112  def show(self, *args):
15113  r"""show(ParticleType self, _ostream out=std::cout)"""
15114  return _IMP_core.ParticleType_show(self, *args)
15115 
15116  @staticmethod
15117  def add_alias(old_key, new_name):
15118  r"""add_alias(ParticleType old_key, std::string new_name) -> ParticleType"""
15119  return _IMP_core.ParticleType_add_alias(old_key, new_name)
15120 
15121  @staticmethod
15122  def get_number_of_keys():
15123  r"""get_number_of_keys() -> unsigned int"""
15124  return _IMP_core.ParticleType_get_number_of_keys()
15125 
15126  def get_index(self):
15127  r"""get_index(ParticleType self) -> unsigned int"""
15128  return _IMP_core.ParticleType_get_index(self)
15129 
15130  @staticmethod
15131  def show_all(out):
15132  r"""show_all(_ostream out)"""
15133  return _IMP_core.ParticleType_show_all(out)
15134 
15135  @staticmethod
15136  def get_all_strings():
15137  r"""get_all_strings() -> IMP::Vector< std::string >"""
15138  return _IMP_core.ParticleType_get_all_strings()
15139 
15140  @staticmethod
15141  def get_number_unique():
15142  r"""get_number_unique() -> unsigned int"""
15143  return _IMP_core.ParticleType_get_number_unique()
15144 
15145  def __str__(self):
15146  r"""__str__(ParticleType self) -> std::string"""
15147  return _IMP_core.ParticleType___str__(self)
15148 
15149  def __repr__(self):
15150  r"""__repr__(ParticleType self) -> std::string"""
15151  return _IMP_core.ParticleType___repr__(self)
15152  __swig_destroy__ = _IMP_core.delete_ParticleType
15153 
15154 # Register ParticleType in _IMP_core:
15155 _IMP_core.ParticleType_swigregister(ParticleType)
15157  r"""Proxy of C++ IMP::core::GenericAttributeSingletonScore< UnaryFunction > class."""
15158 
15159  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15160  __repr__ = _swig_repr
15161 
15162  def __init__(self, f, k):
15163  r"""__init__(AttributeSingletonScore self, UnaryFunction f, FloatKey k) -> AttributeSingletonScore"""
15164  _IMP_core.AttributeSingletonScore_swiginit(self, _IMP_core.new_AttributeSingletonScore(f, k))
15165 
15166  def do_get_inputs(self, m, pis):
15167  r"""do_get_inputs(AttributeSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15168  return _IMP_core.AttributeSingletonScore_do_get_inputs(self, m, pis)
15169 
15170  def get_unary_function(self):
15171  r"""get_unary_function(AttributeSingletonScore self) -> UnaryFunction"""
15172  return _IMP_core.AttributeSingletonScore_get_unary_function(self)
15173 
15174  def get_version_info(self):
15175  r"""get_version_info(AttributeSingletonScore self) -> VersionInfo"""
15176  return _IMP_core.AttributeSingletonScore_get_version_info(self)
15177  __swig_destroy__ = _IMP_core.delete_AttributeSingletonScore
15178 
15179 # Register AttributeSingletonScore in _IMP_core:
15180 _IMP_core.AttributeSingletonScore_swigregister(AttributeSingletonScore)
15181 
15183  r"""create_generic_attribute_singleton_score(UnaryFunction uf, FloatKey k) -> AttributeSingletonScore"""
15184  return _IMP_core.create_generic_attribute_singleton_score(uf, k)
15186  r"""Proxy of C++ IMP::core::GenericBoundingBox3DSingletonScore< UnaryFunction > class."""
15187 
15188  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15189  __repr__ = _swig_repr
15190 
15191  def __init__(self, f, bb):
15192  r"""__init__(BoundingBox3DSingletonScore self, UnaryFunction f, BoundingBox3D bb) -> BoundingBox3DSingletonScore"""
15193  _IMP_core.BoundingBox3DSingletonScore_swiginit(self, _IMP_core.new_BoundingBox3DSingletonScore(f, bb))
15194 
15195  def do_get_inputs(self, m, pis):
15196  r"""do_get_inputs(BoundingBox3DSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15197  return _IMP_core.BoundingBox3DSingletonScore_do_get_inputs(self, m, pis)
15198 
15199  def get_version_info(self):
15200  r"""get_version_info(BoundingBox3DSingletonScore self) -> VersionInfo"""
15201  return _IMP_core.BoundingBox3DSingletonScore_get_version_info(self)
15202  __swig_destroy__ = _IMP_core.delete_BoundingBox3DSingletonScore
15203 
15204 # Register BoundingBox3DSingletonScore in _IMP_core:
15205 _IMP_core.BoundingBox3DSingletonScore_swigregister(BoundingBox3DSingletonScore)
15206 
15207 def create_bounding_box_3d_singleton_score(f, bb):
15208  r"""create_bounding_box_3d_singleton_score(UnaryFunction f, BoundingBox3D bb) -> BoundingBox3DSingletonScore"""
15209  return _IMP_core.create_bounding_box_3d_singleton_score(f, bb)
15211  r"""Proxy of C++ IMP::core::GenericBoundingSphere3DSingletonScore< UnaryFunction > class."""
15212 
15213  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15214  __repr__ = _swig_repr
15215 
15216  def __init__(self, f, sphere):
15217  r"""__init__(BoundingSphere3DSingletonScore self, UnaryFunction f, Sphere3D sphere) -> BoundingSphere3DSingletonScore"""
15218  _IMP_core.BoundingSphere3DSingletonScore_swiginit(self, _IMP_core.new_BoundingSphere3DSingletonScore(f, sphere))
15219 
15220  def do_get_inputs(self, m, pis):
15221  r"""do_get_inputs(BoundingSphere3DSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15222  return _IMP_core.BoundingSphere3DSingletonScore_do_get_inputs(self, m, pis)
15223 
15224  def get_version_info(self):
15225  r"""get_version_info(BoundingSphere3DSingletonScore self) -> VersionInfo"""
15226  return _IMP_core.BoundingSphere3DSingletonScore_get_version_info(self)
15227  __swig_destroy__ = _IMP_core.delete_BoundingSphere3DSingletonScore
15228 
15229 # Register BoundingSphere3DSingletonScore in _IMP_core:
15230 _IMP_core.BoundingSphere3DSingletonScore_swigregister(BoundingSphere3DSingletonScore)
15231 
15232 def create_bounding_sphere_3d_singleton_score(f, sphere):
15233  r"""create_bounding_sphere_3d_singleton_score(UnaryFunction f, Sphere3D sphere) -> BoundingSphere3DSingletonScore"""
15234  return _IMP_core.create_bounding_sphere_3d_singleton_score(f, sphere)
15236  r"""Proxy of C++ IMP::core::GenericDistanceToSingletonScore< UnaryFunction > class."""
15237 
15238  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15239  __repr__ = _swig_repr
15240 
15241  def __init__(self, *args):
15242  r"""
15243  __init__(DistanceToSingletonScore self, UnaryFunction f, Vector3D pt) -> DistanceToSingletonScore
15244  __init__(DistanceToSingletonScore self) -> DistanceToSingletonScore
15245  """
15246  _IMP_core.DistanceToSingletonScore_swiginit(self, _IMP_core.new_DistanceToSingletonScore(*args))
15247 
15248  def do_get_inputs(self, m, pis):
15249  r"""do_get_inputs(DistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15250  return _IMP_core.DistanceToSingletonScore_do_get_inputs(self, m, pis)
15251 
15252  def get_version_info(self):
15253  r"""get_version_info(DistanceToSingletonScore self) -> VersionInfo"""
15254  return _IMP_core.DistanceToSingletonScore_get_version_info(self)
15255  __swig_destroy__ = _IMP_core.delete_DistanceToSingletonScore
15256 
15257  def _get_as_binary(self):
15258  r"""_get_as_binary(DistanceToSingletonScore self) -> PyObject *"""
15259  return _IMP_core.DistanceToSingletonScore__get_as_binary(self)
15260 
15261  def _set_from_binary(self, p):
15262  r"""_set_from_binary(DistanceToSingletonScore self, PyObject * p)"""
15263  return _IMP_core.DistanceToSingletonScore__set_from_binary(self, p)
15264 
15265  def __getstate__(self):
15266  p = self._get_as_binary()
15267  if len(self.__dict__) > 1:
15268  d = self.__dict__.copy()
15269  del d['this']
15270  p = (d, p)
15271  return p
15272 
15273  def __setstate__(self, p):
15274  if not hasattr(self, 'this'):
15275  self.__init__()
15276  if isinstance(p, tuple):
15277  d, p = p
15278  self.__dict__.update(d)
15279  return self._set_from_binary(p)
15280 
15281 
15282 # Register DistanceToSingletonScore in _IMP_core:
15283 _IMP_core.DistanceToSingletonScore_swigregister(DistanceToSingletonScore)
15284 
15285 def create_distance_to_singleton_score(f, pt):
15286  r"""create_distance_to_singleton_score(UnaryFunction f, Vector3D pt) -> DistanceToSingletonScore"""
15287  return _IMP_core.create_distance_to_singleton_score(f, pt)
15288 
15289 
15290 def get_all_provenance(p, types=[StructureProvenance, SampleProvenance,
15291  CombineProvenance, FilterProvenance,
15292  ClusterProvenance, ScriptProvenance,
15293  SoftwareProvenance]):
15294  """Yield all provenance decorators of the given types for the particle.
15295  By default, all provenance types are returned. Provenance is returned
15296  in order, most recent first. If the particle has no provenance
15297  information, an empty generator is returned."""
15298  if Provenanced.get_is_setup(p):
15299  prov = Provenanced(p).get_provenance()
15300  while prov:
15301  for c in types:
15302  if c.get_is_setup(prov):
15303  yield c(prov)
15304  prov = prov.get_previous()
15305 
15307  """Tag the given particle with the current Python script.
15308  This is a noop if the particle is already so tagged."""
15309  main = sys.modules['__main__']
15310 # Can't do anything if running from an interactive interpreter
15311  if not hasattr(main, '__file__'):
15312  return
15313  f = IMP.get_absolute_path(main.__file__)
15314  for prov in get_all_provenance(p, types=[ScriptProvenance]):
15315  if prov.get_filename() == f:
15316  return
15317  m = p.get_model()
15318  provp = IMP.Particle(m)
15319  provp.set_name('script')
15320  prov = ScriptProvenance.setup_particle(provp, f)
15321  add_provenance(m, p, prov)
15322 
15323 def add_software_provenance(p, name, version, location):
15324  """Tag the given particle with the software used to create it.
15325  This is a noop if the particle is already so tagged."""
15326  for prov in get_all_provenance(p, types=[SoftwareProvenance]):
15327  if prov.get_software_name() == name and prov.get_version() == version \
15328  and prov.get_location() == location:
15329  return
15330  m = p.get_model()
15331  provp = IMP.Particle(m)
15332  provp.set_name('software')
15333  prov = SoftwareProvenance.setup_particle(provp, name, version, location)
15334  add_provenance(m, p, prov)
15335 
15337  """Tag the given particle as being created by the current version of IMP."""
15338  add_software_provenance(p, name="Integrative Modeling Platform (IMP)",
15339  version=IMP.get_module_version(),
15340  location="https://integrativemodeling.org")
15341 
15342 
15343 def get_module_version():
15344  r"""get_module_version() -> std::string const"""
15345  return _IMP_core.get_module_version()
15346 
15347 def get_example_path(fname):
15348  r"""get_example_path(std::string fname) -> std::string"""
15349  return _IMP_core.get_example_path(fname)
15350 
15351 def get_data_path(fname):
15352  r"""get_data_path(std::string fname) -> std::string"""
15353  return _IMP_core.get_data_path(fname)
15354 
15355 from . import _version_check
15356 _version_check.check_version(get_module_version())
15357 __version__ = get_module_version()
15358 
15359 
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