IMP logo
IMP Reference Guide  develop.ae08f42f4a,2025/04/14
The Integrative Modeling Platform
core/__init__.py
1 # This file was automatically generated by SWIG (https://www.swig.org).
2 # Version 4.3.0
3 #
4 # Do not make changes to this file unless you know what you are doing - modify
5 # the SWIG interface file instead.
6 
7 
8 # This wrapper is part of IMP,
9 # Copyright 2007-2025 IMP Inventors. All rights reserved.
10 
11 
12 
13 
14 from sys import version_info as _swig_python_version_info
15 import _IMP_core
16 
17 try:
18  import builtins as __builtin__
19 except ImportError:
20  import __builtin__
21 
22 def _swig_repr(self):
23  try:
24  strthis = "proxy of " + self.this.__repr__()
25  except __builtin__.Exception:
26  strthis = ""
27  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
28 
29 
30 def _swig_setattr_nondynamic_instance_variable(set):
31  def set_instance_attr(self, name, value):
32  if name == "this":
33  set(self, name, value)
34  elif name == "thisown":
35  self.this.own(value)
36  elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
37  set(self, name, value)
38  else:
39  raise AttributeError("You cannot add instance attributes to %s" % self)
40  return set_instance_attr
41 
42 
43 def _swig_setattr_nondynamic_class_variable(set):
44  def set_class_attr(cls, name, value):
45  if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
46  set(cls, name, value)
47  else:
48  raise AttributeError("You cannot add class attributes to %s" % cls)
49  return set_class_attr
50 
51 
52 def _swig_add_metaclass(metaclass):
53  """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
54  def wrapper(cls):
55  return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
56  return wrapper
57 
58 
59 class _SwigNonDynamicMeta(type):
60  """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
61  __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
62 
63 
64 import weakref
65 
66 class IMP_CORE_SwigPyIterator(object):
67  r"""Proxy of C++ swig::IMP_CORE_SwigPyIterator class."""
68 
69  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
70 
71  def __init__(self, *args, **kwargs):
72  raise AttributeError("No constructor defined - class is abstract")
73  __repr__ = _swig_repr
74  __swig_destroy__ = _IMP_core.delete_IMP_CORE_SwigPyIterator
75 
76  def value(self):
77  r"""value(IMP_CORE_SwigPyIterator self) -> PyObject *"""
78  return _IMP_core.IMP_CORE_SwigPyIterator_value(self)
79 
80  def incr(self, n=1):
81  r"""incr(IMP_CORE_SwigPyIterator self, size_t n=1) -> IMP_CORE_SwigPyIterator"""
82  return _IMP_core.IMP_CORE_SwigPyIterator_incr(self, n)
83 
84  def decr(self, n=1):
85  r"""decr(IMP_CORE_SwigPyIterator self, size_t n=1) -> IMP_CORE_SwigPyIterator"""
86  return _IMP_core.IMP_CORE_SwigPyIterator_decr(self, n)
87 
88  def distance(self, x):
89  r"""distance(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> ptrdiff_t"""
90  return _IMP_core.IMP_CORE_SwigPyIterator_distance(self, x)
91 
92  def equal(self, x):
93  r"""equal(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> bool"""
94  return _IMP_core.IMP_CORE_SwigPyIterator_equal(self, x)
95 
96  def copy(self):
97  r"""copy(IMP_CORE_SwigPyIterator self) -> IMP_CORE_SwigPyIterator"""
98  return _IMP_core.IMP_CORE_SwigPyIterator_copy(self)
99 
100  def next(self):
101  r"""next(IMP_CORE_SwigPyIterator self) -> PyObject *"""
102  return _IMP_core.IMP_CORE_SwigPyIterator_next(self)
103 
104  def __next__(self):
105  r"""__next__(IMP_CORE_SwigPyIterator self) -> PyObject *"""
106  return _IMP_core.IMP_CORE_SwigPyIterator___next__(self)
107 
108  def previous(self):
109  r"""previous(IMP_CORE_SwigPyIterator self) -> PyObject *"""
110  return _IMP_core.IMP_CORE_SwigPyIterator_previous(self)
111 
112  def advance(self, n):
113  r"""advance(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator"""
114  return _IMP_core.IMP_CORE_SwigPyIterator_advance(self, n)
115 
116  def __eq__(self, x):
117  r"""__eq__(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> bool"""
118  return _IMP_core.IMP_CORE_SwigPyIterator___eq__(self, x)
119 
120  def __ne__(self, x):
121  r"""__ne__(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> bool"""
122  return _IMP_core.IMP_CORE_SwigPyIterator___ne__(self, x)
123 
124  def __iadd__(self, n):
125  r"""__iadd__(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator"""
126  return _IMP_core.IMP_CORE_SwigPyIterator___iadd__(self, n)
127 
128  def __isub__(self, n):
129  r"""__isub__(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator"""
130  return _IMP_core.IMP_CORE_SwigPyIterator___isub__(self, n)
131 
132  def __add__(self, n):
133  r"""__add__(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator"""
134  return _IMP_core.IMP_CORE_SwigPyIterator___add__(self, n)
135 
136  def __sub__(self, *args):
137  r"""
138  __sub__(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator
139  __sub__(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> ptrdiff_t
140  """
141  return _IMP_core.IMP_CORE_SwigPyIterator___sub__(self, *args)
142  def __iter__(self):
143  return self
144 
145 # Register IMP_CORE_SwigPyIterator in _IMP_core:
146 _IMP_core.IMP_CORE_SwigPyIterator_swigregister(IMP_CORE_SwigPyIterator)
147 
148 _value_types=[]
149 _object_types=[]
150 _raii_types=[]
151 _plural_types=[]
152 
153 IMP_DEBUG = _IMP_core.IMP_DEBUG
154 
155 IMP_RELEASE = _IMP_core.IMP_RELEASE
156 
157 IMP_SILENT = _IMP_core.IMP_SILENT
158 
159 IMP_PROGRESS = _IMP_core.IMP_PROGRESS
160 
161 IMP_TERSE = _IMP_core.IMP_TERSE
162 
163 IMP_VERBOSE = _IMP_core.IMP_VERBOSE
164 
165 IMP_MEMORY = _IMP_core.IMP_MEMORY
166 
167 IMP_NONE = _IMP_core.IMP_NONE
168 
169 IMP_USAGE = _IMP_core.IMP_USAGE
170 
171 IMP_INTERNAL = _IMP_core.IMP_INTERNAL
172 
173 IMP_KERNEL_HAS_LOG4CXX = _IMP_core.IMP_KERNEL_HAS_LOG4CXX
174 
175 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_core.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
176 
177 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_core.IMP_COMPILER_HAS_DEBUG_VECTOR
178 
179 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_core.IMP_COMPILER_HAS_RANDOM_SHUFFLE
180 
181 IMP_COMPILER_HAS_THREE_WAY = _IMP_core.IMP_COMPILER_HAS_THREE_WAY
182 
183 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_core.IMP_KERNEL_HAS_BOOST_RANDOM
184 
185 IMP_KERNEL_HAS_NUMPY = _IMP_core.IMP_KERNEL_HAS_NUMPY
186 
187 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_core.IMP_KERNEL_HAS_GPERFTOOLS
188 
189 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_core.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
190 
191 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_core.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
192 
193 IMPKERNEL_SHOW_WARNINGS = _IMP_core.IMPKERNEL_SHOW_WARNINGS
194 
195 
196 import sys
197 class _DirectorObjects:
198  """@internal Simple class to keep references to director objects
199  to prevent premature deletion."""
200  def __init__(self):
201  self._objects = []
202  def register(self, obj):
203  """Take a reference to a director object; will only work for
204  refcounted C++ classes"""
205  if hasattr(obj, 'get_ref_count'):
206  self._objects.append(obj)
207  def cleanup(self):
208  """Only drop our reference and allow cleanup by Python if no other
209  Python references exist (we hold 3 references: one in self._objects,
210  one in x, and one in the argument list for getrefcount) *and* no
211  other C++ references exist (the Python object always holds one)"""
212  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
213  or x.get_ref_count() > 1]
214 # Do in two steps so the references are kept until the end of the
215 # function (deleting references may trigger a fresh call to this method)
216  self._objects = objs
217  def get_object_count(self):
218  """Get number of director objects (useful for testing only)"""
219  return len(self._objects)
220 _director_objects = _DirectorObjects()
221 
222 class _ostream(object):
223  r"""Proxy of C++ std::ostream class."""
224 
225  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
226 
227  def __init__(self, *args, **kwargs):
228  raise AttributeError("No constructor defined")
229  __repr__ = _swig_repr
230 
231  def write(self, osa_buf):
232  r"""write(_ostream self, char const * osa_buf)"""
233  return _IMP_core._ostream_write(self, osa_buf)
234 
235 # Register _ostream in _IMP_core:
236 _IMP_core._ostream_swigregister(_ostream)
237 IMP_C_OPEN_BINARY = _IMP_core.IMP_C_OPEN_BINARY
238 
239 import IMP
240 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_CGAL_HAS_BOOST_FILESYSTEM
241 
242 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
243 
244 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_core.IMP_CGAL_HAS_BOOST_RANDOM
245 
246 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_core.IMP_CGAL_HAS_BOOST_SYSTEM
247 
248 IMP_CGAL_HAS_NUMPY = _IMP_core.IMP_CGAL_HAS_NUMPY
249 
250 IMPCGAL_SHOW_WARNINGS = _IMP_core.IMPCGAL_SHOW_WARNINGS
251 
252 import IMP.cgal
253 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_core.IMP_ALGEBRA_HAS_IMP_CGAL
254 
255 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
256 
257 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
258 
259 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_core.IMP_ALGEBRA_HAS_BOOST_RANDOM
260 
261 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_core.IMP_ALGEBRA_HAS_BOOST_SYSTEM
262 
263 IMP_ALGEBRA_HAS_CGAL = _IMP_core.IMP_ALGEBRA_HAS_CGAL
264 
265 IMP_ALGEBRA_HAS_NUMPY = _IMP_core.IMP_ALGEBRA_HAS_NUMPY
266 
267 IMP_ALGEBRA_HAS_ANN = _IMP_core.IMP_ALGEBRA_HAS_ANN
268 
269 IMPALGEBRA_SHOW_WARNINGS = _IMP_core.IMPALGEBRA_SHOW_WARNINGS
270 
271 import IMP.algebra
272 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_core.IMP_DISPLAY_HAS_IMP_CGAL
273 
274 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
275 
276 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
277 
278 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_core.IMP_DISPLAY_HAS_BOOST_RANDOM
279 
280 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_core.IMP_DISPLAY_HAS_BOOST_SYSTEM
281 
282 IMP_DISPLAY_HAS_CGAL = _IMP_core.IMP_DISPLAY_HAS_CGAL
283 
284 IMP_DISPLAY_HAS_NUMPY = _IMP_core.IMP_DISPLAY_HAS_NUMPY
285 
286 IMPDISPLAY_SHOW_WARNINGS = _IMP_core.IMPDISPLAY_SHOW_WARNINGS
287 
288 import IMP.display
289 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_core.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
290 
291 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
292 
293 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
294 
295 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
296 
297 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
298 
299 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_core.IMP_SCORE_FUNCTOR_HAS_CGAL
300 
301 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_core.IMP_SCORE_FUNCTOR_HAS_HDF5
302 
303 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_core.IMP_SCORE_FUNCTOR_HAS_NUMPY
304 
305 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_core.IMPSCOREFUNCTOR_SHOW_WARNINGS
306 
307 import IMP.score_functor
308 IMP_CORE_HAS_IMP_CGAL = _IMP_core.IMP_CORE_HAS_IMP_CGAL
309 
310 IMP_CORE_HAS_IMP_KERNEL = _IMP_core.IMP_CORE_HAS_IMP_KERNEL
311 
312 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_CORE_HAS_BOOST_FILESYSTEM
313 
314 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
315 
316 IMP_CORE_HAS_BOOST_RANDOM = _IMP_core.IMP_CORE_HAS_BOOST_RANDOM
317 
318 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_core.IMP_CORE_HAS_BOOST_SYSTEM
319 
320 IMP_CORE_HAS_CGAL = _IMP_core.IMP_CORE_HAS_CGAL
321 
322 IMP_CORE_HAS_HDF5 = _IMP_core.IMP_CORE_HAS_HDF5
323 
324 IMP_CORE_HAS_NUMPY = _IMP_core.IMP_CORE_HAS_NUMPY
325 
326 IMPCORE_SHOW_WARNINGS = _IMP_core.IMPCORE_SHOW_WARNINGS
327 
328 class _OpenCubicSplineBase(IMP.UnaryFunction):
329  r"""Proxy of C++ IMP::score_functor::ScoreUnaryFunction< IMP::score_functor::OpenCubicSpline > class."""
330 
331  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
332  __repr__ = _swig_repr
333 
334  def __init__(self, *args):
335  r"""__init__(_OpenCubicSplineBase self, IMP::score_functor::OpenCubicSpline const & score, std::string name="UnaryFunction%1%") -> _OpenCubicSplineBase"""
336  _IMP_core._OpenCubicSplineBase_swiginit(self, _IMP_core.new__OpenCubicSplineBase(*args))
337 
338  def get_version_info(self):
339  r"""get_version_info(_OpenCubicSplineBase self) -> VersionInfo"""
340  return _IMP_core._OpenCubicSplineBase_get_version_info(self)
341  __swig_destroy__ = _IMP_core.delete__OpenCubicSplineBase
342 
343 # Register _OpenCubicSplineBase in _IMP_core:
344 _IMP_core._OpenCubicSplineBase_swigregister(_OpenCubicSplineBase)
345 
346 _object_types.append("MonteCarloMover")
347 
348 
349 def _object_cast_to_MonteCarloMover(o):
350  r"""_object_cast_to_MonteCarloMover(Object o) -> MonteCarloMover"""
351  return _IMP_core._object_cast_to_MonteCarloMover(o)
352 
353 MonteCarloMoverResults=list
354 _plural_types.append("MonteCarloMoverResults")
355 _value_types.append("MonteCarloMoverResult")
356 
357 
358 _object_types.append("AngleRestraint")
359 
360 
361 def _object_cast_to_AngleRestraint(o):
362  r"""_object_cast_to_AngleRestraint(Object o) -> AngleRestraint"""
363  return _IMP_core._object_cast_to_AngleRestraint(o)
364 
365 _object_types.append("AngleTripletScore")
366 
367 
368 def _object_cast_to_AngleTripletScore(o):
369  r"""_object_cast_to_AngleTripletScore(Object o) -> AngleTripletScore"""
370  return _IMP_core._object_cast_to_AngleTripletScore(o)
371 
372 _object_types.append("AttributeSingletonScore")
373 
374 
375 def _object_cast_to_AttributeSingletonScore(o):
376  r"""_object_cast_to_AttributeSingletonScore(Object o) -> AttributeSingletonScore"""
377  return _IMP_core._object_cast_to_AttributeSingletonScore(o)
378 
379 _object_types.append("BallMover")
380 
381 
382 def _object_cast_to_BallMover(o):
383  r"""_object_cast_to_BallMover(Object o) -> BallMover"""
384  return _IMP_core._object_cast_to_BallMover(o)
385 
386 _object_types.append("SerialMover")
387 
388 
389 def _object_cast_to_SerialMover(o):
390  r"""_object_cast_to_SerialMover(Object o) -> SerialMover"""
391  return _IMP_core._object_cast_to_SerialMover(o)
392 
393 _object_types.append("SubsetMover")
394 
395 
396 def _object_cast_to_SubsetMover(o):
397  r"""_object_cast_to_SubsetMover(Object o) -> SubsetMover"""
398  return _IMP_core._object_cast_to_SubsetMover(o)
399 
400 _object_types.append("DirectionMover")
401 
402 
403 def _object_cast_to_DirectionMover(o):
404  r"""_object_cast_to_DirectionMover(Object o) -> DirectionMover"""
405  return _IMP_core._object_cast_to_DirectionMover(o)
406 
407 _object_types.append("SurfaceMover")
408 
409 
410 def _object_cast_to_SurfaceMover(o):
411  r"""_object_cast_to_SurfaceMover(Object o) -> SurfaceMover"""
412  return _IMP_core._object_cast_to_SurfaceMover(o)
413 
414 _object_types.append("BoundingBox3DSingletonScore")
415 
416 
417 def _object_cast_to_BoundingBox3DSingletonScore(o):
418  r"""_object_cast_to_BoundingBox3DSingletonScore(Object o) -> BoundingBox3DSingletonScore"""
419  return _IMP_core._object_cast_to_BoundingBox3DSingletonScore(o)
420 
421 _object_types.append("BoundingSphere3DSingletonScore")
422 
423 
424 def _object_cast_to_BoundingSphere3DSingletonScore(o):
425  r"""_object_cast_to_BoundingSphere3DSingletonScore(Object o) -> BoundingSphere3DSingletonScore"""
426  return _IMP_core._object_cast_to_BoundingSphere3DSingletonScore(o)
427 
428 _object_types.append("BoxSweepClosePairsFinder")
429 
430 
431 def _object_cast_to_BoxSweepClosePairsFinder(o):
432  r"""_object_cast_to_BoxSweepClosePairsFinder(Object o) -> BoxSweepClosePairsFinder"""
433  return _IMP_core._object_cast_to_BoxSweepClosePairsFinder(o)
434 
435 _object_types.append("NearestNeighborsClosePairsFinder")
436 
437 
438 def _object_cast_to_NearestNeighborsClosePairsFinder(o):
439  r"""_object_cast_to_NearestNeighborsClosePairsFinder(Object o) -> NearestNeighborsClosePairsFinder"""
440  return _IMP_core._object_cast_to_NearestNeighborsClosePairsFinder(o)
441 
442 _object_types.append("CentroidOfRefined")
443 
444 
445 def _object_cast_to_CentroidOfRefined(o):
446  r"""_object_cast_to_CentroidOfRefined(Object o) -> CentroidOfRefined"""
447  return _IMP_core._object_cast_to_CentroidOfRefined(o)
448 
449 _object_types.append("ChecksScoreState")
450 
451 
452 def _object_cast_to_ChecksScoreState(o):
453  r"""_object_cast_to_ChecksScoreState(Object o) -> ChecksScoreState"""
454  return _IMP_core._object_cast_to_ChecksScoreState(o)
455 
456 _object_types.append("ChildrenRefiner")
457 
458 
459 def _object_cast_to_ChildrenRefiner(o):
460  r"""_object_cast_to_ChildrenRefiner(Object o) -> ChildrenRefiner"""
461  return _IMP_core._object_cast_to_ChildrenRefiner(o)
462 
463 _object_types.append("ClosePairsFinder")
464 
465 
466 def _object_cast_to_ClosePairsFinder(o):
467  r"""_object_cast_to_ClosePairsFinder(Object o) -> ClosePairsFinder"""
468  return _IMP_core._object_cast_to_ClosePairsFinder(o)
469 
470 _object_types.append("ClosePairsPairScore")
471 
472 
473 def _object_cast_to_ClosePairsPairScore(o):
474  r"""_object_cast_to_ClosePairsPairScore(Object o) -> ClosePairsPairScore"""
475  return _IMP_core._object_cast_to_ClosePairsPairScore(o)
476 
477 _object_types.append("ClosedCubicSpline")
478 
479 
480 def _object_cast_to_ClosedCubicSpline(o):
481  r"""_object_cast_to_ClosedCubicSpline(Object o) -> ClosedCubicSpline"""
482  return _IMP_core._object_cast_to_ClosedCubicSpline(o)
483 
484 _object_types.append("ConjugateGradients")
485 
486 
487 def _object_cast_to_ConjugateGradients(o):
488  r"""_object_cast_to_ConjugateGradients(Object o) -> ConjugateGradients"""
489  return _IMP_core._object_cast_to_ConjugateGradients(o)
490 
491 _object_types.append("ConnectivityRestraint")
492 
493 
494 def _object_cast_to_ConnectivityRestraint(o):
495  r"""_object_cast_to_ConnectivityRestraint(Object o) -> ConnectivityRestraint"""
496  return _IMP_core._object_cast_to_ConnectivityRestraint(o)
497 
498 _object_types.append("ConstantRestraint")
499 
500 
501 def _object_cast_to_ConstantRestraint(o):
502  r"""_object_cast_to_ConstantRestraint(Object o) -> ConstantRestraint"""
503  return _IMP_core._object_cast_to_ConstantRestraint(o)
504 
505 _object_types.append("Cosine")
506 
507 
508 def _object_cast_to_Cosine(o):
509  r"""_object_cast_to_Cosine(Object o) -> Cosine"""
510  return _IMP_core._object_cast_to_Cosine(o)
511 
512 _object_types.append("CoverRefined")
513 
514 
515 def _object_cast_to_CoverRefined(o):
516  r"""_object_cast_to_CoverRefined(Object o) -> CoverRefined"""
517  return _IMP_core._object_cast_to_CoverRefined(o)
518 
519 _object_types.append("DerivativesFromRefined")
520 
521 
522 def _object_cast_to_DerivativesFromRefined(o):
523  r"""_object_cast_to_DerivativesFromRefined(Object o) -> DerivativesFromRefined"""
524  return _IMP_core._object_cast_to_DerivativesFromRefined(o)
525 
526 _object_types.append("DerivativesToRefined")
527 
528 
529 def _object_cast_to_DerivativesToRefined(o):
530  r"""_object_cast_to_DerivativesToRefined(Object o) -> DerivativesToRefined"""
531  return _IMP_core._object_cast_to_DerivativesToRefined(o)
532 
533 _object_types.append("WeightedDerivativesToRefined")
534 
535 
536 def _object_cast_to_WeightedDerivativesToRefined(o):
537  r"""_object_cast_to_WeightedDerivativesToRefined(Object o) -> IMP::core::WeightedDerivativesToRefined *"""
538  return _IMP_core._object_cast_to_WeightedDerivativesToRefined(o)
539 
540 _object_types.append("DiameterRestraint")
541 
542 
543 def _object_cast_to_DiameterRestraint(o):
544  r"""_object_cast_to_DiameterRestraint(Object o) -> DiameterRestraint"""
545  return _IMP_core._object_cast_to_DiameterRestraint(o)
546 
547 _object_types.append("DihedralRestraint")
548 
549 
550 def _object_cast_to_DihedralRestraint(o):
551  r"""_object_cast_to_DihedralRestraint(Object o) -> DihedralRestraint"""
552  return _IMP_core._object_cast_to_DihedralRestraint(o)
553 
554 _object_types.append("DistanceRestraint")
555 
556 
557 def _object_cast_to_DistanceRestraint(o):
558  r"""_object_cast_to_DistanceRestraint(Object o) -> DistanceRestraint"""
559  return _IMP_core._object_cast_to_DistanceRestraint(o)
560 
561 _object_types.append("DistanceToSingletonScore")
562 
563 
564 def _object_cast_to_DistanceToSingletonScore(o):
565  r"""_object_cast_to_DistanceToSingletonScore(Object o) -> DistanceToSingletonScore"""
566  return _IMP_core._object_cast_to_DistanceToSingletonScore(o)
567 
568 _object_types.append("ExcludedVolumeRestraint")
569 
570 
571 def _object_cast_to_ExcludedVolumeRestraint(o):
572  r"""_object_cast_to_ExcludedVolumeRestraint(Object o) -> ExcludedVolumeRestraint"""
573  return _IMP_core._object_cast_to_ExcludedVolumeRestraint(o)
574 
575 _object_types.append("FixedRefiner")
576 
577 
578 def _object_cast_to_FixedRefiner(o):
579  r"""_object_cast_to_FixedRefiner(Object o) -> FixedRefiner"""
580  return _IMP_core._object_cast_to_FixedRefiner(o)
581 
582 _object_types.append("GridClosePairsFinder")
583 
584 
585 def _object_cast_to_GridClosePairsFinder(o):
586  r"""_object_cast_to_GridClosePairsFinder(Object o) -> GridClosePairsFinder"""
587  return _IMP_core._object_cast_to_GridClosePairsFinder(o)
588 
589 _object_types.append("Harmonic")
590 
591 
592 def _object_cast_to_Harmonic(o):
593  r"""_object_cast_to_Harmonic(Object o) -> Harmonic"""
594  return _IMP_core._object_cast_to_Harmonic(o)
595 
596 _object_types.append("HarmonicWell")
597 
598 
599 def _object_cast_to_HarmonicWell(o):
600  r"""_object_cast_to_HarmonicWell(Object o) -> HarmonicWell"""
601  return _IMP_core._object_cast_to_HarmonicWell(o)
602 
603 _object_types.append("HarmonicLowerBound")
604 
605 
606 def _object_cast_to_HarmonicLowerBound(o):
607  r"""_object_cast_to_HarmonicLowerBound(Object o) -> HarmonicLowerBound"""
608  return _IMP_core._object_cast_to_HarmonicLowerBound(o)
609 
610 _object_types.append("HarmonicUpperBound")
611 
612 
613 def _object_cast_to_HarmonicUpperBound(o):
614  r"""_object_cast_to_HarmonicUpperBound(Object o) -> HarmonicUpperBound"""
615  return _IMP_core._object_cast_to_HarmonicUpperBound(o)
616 
617 _object_types.append("HarmonicSphereDistancePairScore")
618 
619 
620 def _object_cast_to_HarmonicSphereDistancePairScore(o):
621  r"""_object_cast_to_HarmonicSphereDistancePairScore(Object o) -> HarmonicSphereDistancePairScore"""
622  return _IMP_core._object_cast_to_HarmonicSphereDistancePairScore(o)
623 
624 _object_types.append("HarmonicUpperBoundSphereDistancePairScore")
625 
626 
627 def _object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o):
628  r"""_object_cast_to_HarmonicUpperBoundSphereDistancePairScore(Object o) -> HarmonicUpperBoundSphereDistancePairScore"""
629  return _IMP_core._object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o)
630 
631 _object_types.append("HarmonicUpperBoundSphereDiameterPairScore")
632 
633 
634 def _object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o):
635  r"""_object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(Object o) -> HarmonicUpperBoundSphereDiameterPairScore"""
636  return _IMP_core._object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o)
637 
638 _object_types.append("HarmonicSurfaceDistancePairScore")
639 
640 
641 def _object_cast_to_HarmonicSurfaceDistancePairScore(o):
642  r"""_object_cast_to_HarmonicSurfaceDistancePairScore(Object o) -> HarmonicSurfaceDistancePairScore"""
643  return _IMP_core._object_cast_to_HarmonicSurfaceDistancePairScore(o)
644 
645 _object_types.append("HarmonicSurfaceHeightPairScore")
646 
647 
648 def _object_cast_to_HarmonicSurfaceHeightPairScore(o):
649  r"""_object_cast_to_HarmonicSurfaceHeightPairScore(Object o) -> HarmonicSurfaceHeightPairScore"""
650  return _IMP_core._object_cast_to_HarmonicSurfaceHeightPairScore(o)
651 
652 _object_types.append("HarmonicSurfaceDepthPairScore")
653 
654 
655 def _object_cast_to_HarmonicSurfaceDepthPairScore(o):
656  r"""_object_cast_to_HarmonicSurfaceDepthPairScore(Object o) -> HarmonicSurfaceDepthPairScore"""
657  return _IMP_core._object_cast_to_HarmonicSurfaceDepthPairScore(o)
658 
659 _object_types.append("WeightedSum")
660 
661 
662 def _object_cast_to_WeightedSum(o):
663  r"""_object_cast_to_WeightedSum(Object o) -> WeightedSum"""
664  return _IMP_core._object_cast_to_WeightedSum(o)
665 
666 _object_types.append("WeightedSumOfExponential")
667 
668 
669 def _object_cast_to_WeightedSumOfExponential(o):
670  r"""_object_cast_to_WeightedSumOfExponential(Object o) -> WeightedSumOfExponential"""
671  return _IMP_core._object_cast_to_WeightedSumOfExponential(o)
672 
673 _object_types.append("KClosePairsPairScore")
674 
675 
676 def _object_cast_to_KClosePairsPairScore(o):
677  r"""_object_cast_to_KClosePairsPairScore(Object o) -> KClosePairsPairScore"""
678  return _IMP_core._object_cast_to_KClosePairsPairScore(o)
679 
680 _object_types.append("LeavesRefiner")
681 
682 
683 def _object_cast_to_LeavesRefiner(o):
684  r"""_object_cast_to_LeavesRefiner(Object o) -> LeavesRefiner"""
685  return _IMP_core._object_cast_to_LeavesRefiner(o)
686 
687 _object_types.append("Linear")
688 
689 
690 def _object_cast_to_Linear(o):
691  r"""_object_cast_to_Linear(Object o) -> Linear"""
692  return _IMP_core._object_cast_to_Linear(o)
693 
694 _object_types.append("LogNormalMover")
695 
696 
697 def _object_cast_to_LogNormalMover(o):
698  r"""_object_cast_to_LogNormalMover(Object o) -> LogNormalMover"""
699  return _IMP_core._object_cast_to_LogNormalMover(o)
700 
701 _object_types.append("MCCGSampler")
702 
703 
704 def _object_cast_to_MCCGSampler(o):
705  r"""_object_cast_to_MCCGSampler(Object o) -> MCCGSampler"""
706  return _IMP_core._object_cast_to_MCCGSampler(o)
707 
708 _object_types.append("MonteCarlo")
709 
710 
711 def _object_cast_to_MonteCarlo(o):
712  r"""_object_cast_to_MonteCarlo(Object o) -> MonteCarlo"""
713  return _IMP_core._object_cast_to_MonteCarlo(o)
714 
715 _object_types.append("MonteCarloWithLocalOptimization")
716 
717 
718 def _object_cast_to_MonteCarloWithLocalOptimization(o):
719  r"""_object_cast_to_MonteCarloWithLocalOptimization(Object o) -> MonteCarloWithLocalOptimization"""
720  return _IMP_core._object_cast_to_MonteCarloWithLocalOptimization(o)
721 
722 _object_types.append("MonteCarloWithBasinHopping")
723 
724 
725 def _object_cast_to_MonteCarloWithBasinHopping(o):
726  r"""_object_cast_to_MonteCarloWithBasinHopping(Object o) -> MonteCarloWithBasinHopping"""
727  return _IMP_core._object_cast_to_MonteCarloWithBasinHopping(o)
728 
729 _object_types.append("MSConnectivityRestraint")
730 
731 
732 def _object_cast_to_MSConnectivityRestraint(o):
733  r"""_object_cast_to_MSConnectivityRestraint(Object o) -> MSConnectivityRestraint"""
734  return _IMP_core._object_cast_to_MSConnectivityRestraint(o)
735 
736 _object_types.append("NeighborsTable")
737 
738 
739 def _object_cast_to_NeighborsTable(o):
740  r"""_object_cast_to_NeighborsTable(Object o) -> NeighborsTable"""
741  return _IMP_core._object_cast_to_NeighborsTable(o)
742 
743 _object_types.append("NormalMover")
744 
745 
746 def _object_cast_to_NormalMover(o):
747  r"""_object_cast_to_NormalMover(Object o) -> NormalMover"""
748  return _IMP_core._object_cast_to_NormalMover(o)
749 
750 _object_types.append("NormalizedSphereDistancePairScore")
751 
752 
753 def _object_cast_to_NormalizedSphereDistancePairScore(o):
754  r"""_object_cast_to_NormalizedSphereDistancePairScore(Object o) -> NormalizedSphereDistancePairScore"""
755  return _IMP_core._object_cast_to_NormalizedSphereDistancePairScore(o)
756 
757 _object_types.append("OpenCubicSpline")
758 
759 
760 def _object_cast_to_OpenCubicSpline(o):
761  r"""_object_cast_to_OpenCubicSpline(Object o) -> OpenCubicSpline"""
762  return _IMP_core._object_cast_to_OpenCubicSpline(o)
763 
764 _object_types.append("PairConstraint")
765 
766 
767 def _object_cast_to_PairConstraint(o):
768  r"""_object_cast_to_PairConstraint(Object o) -> PairConstraint"""
769  return _IMP_core._object_cast_to_PairConstraint(o)
770 
771 _object_types.append("PairRestraint")
772 
773 
774 def _object_cast_to_PairRestraint(o):
775  r"""_object_cast_to_PairRestraint(Object o) -> PairRestraint"""
776  return _IMP_core._object_cast_to_PairRestraint(o)
777 
778 _object_types.append("QuadConstraint")
779 
780 
781 def _object_cast_to_QuadConstraint(o):
782  r"""_object_cast_to_QuadConstraint(Object o) -> QuadConstraint"""
783  return _IMP_core._object_cast_to_QuadConstraint(o)
784 
785 _object_types.append("QuadRestraint")
786 
787 
788 def _object_cast_to_QuadRestraint(o):
789  r"""_object_cast_to_QuadRestraint(Object o) -> QuadRestraint"""
790  return _IMP_core._object_cast_to_QuadRestraint(o)
791 
792 _object_types.append("QuadraticClosePairsFinder")
793 
794 
795 def _object_cast_to_QuadraticClosePairsFinder(o):
796  r"""_object_cast_to_QuadraticClosePairsFinder(Object o) -> QuadraticClosePairsFinder"""
797  return _IMP_core._object_cast_to_QuadraticClosePairsFinder(o)
798 
799 _object_types.append("RefinedPairsPairScore")
800 
801 
802 def _object_cast_to_RefinedPairsPairScore(o):
803  r"""_object_cast_to_RefinedPairsPairScore(Object o) -> RefinedPairsPairScore"""
804  return _IMP_core._object_cast_to_RefinedPairsPairScore(o)
805 
806 _object_types.append("RestraintsScoringFunction")
807 
808 
809 def _object_cast_to_RestraintsScoringFunction(o):
810  r"""_object_cast_to_RestraintsScoringFunction(Object o) -> RestraintsScoringFunction"""
811  return _IMP_core._object_cast_to_RestraintsScoringFunction(o)
812 
813 _object_types.append("RigidBodyDistancePairScore")
814 
815 
816 def _object_cast_to_RigidBodyDistancePairScore(o):
817  r"""_object_cast_to_RigidBodyDistancePairScore(Object o) -> RigidBodyDistancePairScore"""
818  return _IMP_core._object_cast_to_RigidBodyDistancePairScore(o)
819 
820 _object_types.append("RigidBodyAnglePairScore")
821 
822 
823 def _object_cast_to_RigidBodyAnglePairScore(o):
824  r"""_object_cast_to_RigidBodyAnglePairScore(Object o) -> RigidBodyAnglePairScore"""
825  return _IMP_core._object_cast_to_RigidBodyAnglePairScore(o)
826 
827 _object_types.append("RigidBodyMover")
828 
829 
830 def _object_cast_to_RigidBodyMover(o):
831  r"""_object_cast_to_RigidBodyMover(Object o) -> RigidBodyMover"""
832  return _IMP_core._object_cast_to_RigidBodyMover(o)
833 
834 _object_types.append("RigidBodyTunneler")
835 
836 
837 def _object_cast_to_RigidBodyTunneler(o):
838  r"""_object_cast_to_RigidBodyTunneler(Object o) -> RigidBodyTunneler"""
839  return _IMP_core._object_cast_to_RigidBodyTunneler(o)
840 
841 _object_types.append("RigidBodyUmbrella")
842 
843 
844 def _object_cast_to_RigidBodyUmbrella(o):
845  r"""_object_cast_to_RigidBodyUmbrella(Object o) -> RigidBodyUmbrella"""
846  return _IMP_core._object_cast_to_RigidBodyUmbrella(o)
847 
848 _object_types.append("RigidClosePairsFinder")
849 
850 
851 def _object_cast_to_RigidClosePairsFinder(o):
852  r"""_object_cast_to_RigidClosePairsFinder(Object o) -> RigidClosePairsFinder"""
853  return _IMP_core._object_cast_to_RigidClosePairsFinder(o)
854 
855 _object_types.append("RigidMembersRefiner")
856 
857 
858 def _object_cast_to_RigidMembersRefiner(o):
859  r"""_object_cast_to_RigidMembersRefiner(Object o) -> RigidMembersRefiner"""
860  return _IMP_core._object_cast_to_RigidMembersRefiner(o)
861 
862 _object_types.append("SingletonConstraint")
863 
864 
865 def _object_cast_to_SingletonConstraint(o):
866  r"""_object_cast_to_SingletonConstraint(Object o) -> SingletonConstraint"""
867  return _IMP_core._object_cast_to_SingletonConstraint(o)
868 
869 _object_types.append("SingletonRestraint")
870 
871 
872 def _object_cast_to_SingletonRestraint(o):
873  r"""_object_cast_to_SingletonRestraint(Object o) -> SingletonRestraint"""
874  return _IMP_core._object_cast_to_SingletonRestraint(o)
875 
876 _object_types.append("SoftSpherePairScore")
877 
878 
879 def _object_cast_to_SoftSpherePairScore(o):
880  r"""_object_cast_to_SoftSpherePairScore(Object o) -> SoftSpherePairScore"""
881  return _IMP_core._object_cast_to_SoftSpherePairScore(o)
882 
883 _object_types.append("_SphereDistancePairScore")
884 
885 
886 def _object_cast_to__SphereDistancePairScore(o):
887  r"""_object_cast_to__SphereDistancePairScore(Object o) -> _SphereDistancePairScore"""
888  return _IMP_core._object_cast_to__SphereDistancePairScore(o)
889 
890 _object_types.append("SphereDistanceToSingletonScore")
891 
892 
893 def _object_cast_to_SphereDistanceToSingletonScore(o):
894  r"""_object_cast_to_SphereDistanceToSingletonScore(Object o) -> SphereDistanceToSingletonScore"""
895  return _IMP_core._object_cast_to_SphereDistanceToSingletonScore(o)
896 
897 _object_types.append("SoftSubSurfacePairScore")
898 
899 
900 def _object_cast_to_SoftSubSurfacePairScore(o):
901  r"""_object_cast_to_SoftSubSurfacePairScore(Object o) -> SoftSubSurfacePairScore"""
902  return _IMP_core._object_cast_to_SoftSubSurfacePairScore(o)
903 
904 _object_types.append("SoftSuperSurfacePairScore")
905 
906 
907 def _object_cast_to_SoftSuperSurfacePairScore(o):
908  r"""_object_cast_to_SoftSuperSurfacePairScore(Object o) -> SoftSuperSurfacePairScore"""
909  return _IMP_core._object_cast_to_SoftSuperSurfacePairScore(o)
910 
911 _object_types.append("SurfaceDistancePairScore")
912 
913 
914 def _object_cast_to_SurfaceDistancePairScore(o):
915  r"""_object_cast_to_SurfaceDistancePairScore(Object o) -> SurfaceDistancePairScore"""
916  return _IMP_core._object_cast_to_SurfaceDistancePairScore(o)
917 
918 _object_types.append("SurfaceHeightPairScore")
919 
920 
921 def _object_cast_to_SurfaceHeightPairScore(o):
922  r"""_object_cast_to_SurfaceHeightPairScore(Object o) -> SurfaceHeightPairScore"""
923  return _IMP_core._object_cast_to_SurfaceHeightPairScore(o)
924 
925 _object_types.append("SurfaceDepthPairScore")
926 
927 
928 def _object_cast_to_SurfaceDepthPairScore(o):
929  r"""_object_cast_to_SurfaceDepthPairScore(Object o) -> SurfaceDepthPairScore"""
930  return _IMP_core._object_cast_to_SurfaceDepthPairScore(o)
931 
932 _object_types.append("SurfaceTetheredChain")
933 
934 
935 def _object_cast_to_SurfaceTetheredChain(o):
936  r"""_object_cast_to_SurfaceTetheredChain(Object o) -> SurfaceTetheredChain"""
937  return _IMP_core._object_cast_to_SurfaceTetheredChain(o)
938 
939 _object_types.append("SurfaceSymmetryConstraint")
940 
941 
942 def _object_cast_to_SurfaceSymmetryConstraint(o):
943  r"""_object_cast_to_SurfaceSymmetryConstraint(Object o) -> SurfaceSymmetryConstraint"""
944  return _IMP_core._object_cast_to_SurfaceSymmetryConstraint(o)
945 
946 _object_types.append("SteepestDescent")
947 
948 
949 def _object_cast_to_SteepestDescent(o):
950  r"""_object_cast_to_SteepestDescent(Object o) -> SteepestDescent"""
951  return _IMP_core._object_cast_to_SteepestDescent(o)
952 
953 _object_types.append("TableRefiner")
954 
955 
956 def _object_cast_to_TableRefiner(o):
957  r"""_object_cast_to_TableRefiner(Object o) -> TableRefiner"""
958  return _IMP_core._object_cast_to_TableRefiner(o)
959 
960 _object_types.append("Transform")
961 
962 
963 def _object_cast_to_Transform(o):
964  r"""_object_cast_to_Transform(Object o) -> Transform"""
965  return _IMP_core._object_cast_to_Transform(o)
966 
967 _object_types.append("TransformationAndReflectionSymmetry")
968 
969 
970 def _object_cast_to_TransformationAndReflectionSymmetry(o):
971  r"""_object_cast_to_TransformationAndReflectionSymmetry(Object o) -> TransformationAndReflectionSymmetry"""
972  return _IMP_core._object_cast_to_TransformationAndReflectionSymmetry(o)
973 
974 _object_types.append("TransformationSymmetry")
975 
976 
977 def _object_cast_to_TransformationSymmetry(o):
978  r"""_object_cast_to_TransformationSymmetry(Object o) -> TransformationSymmetry"""
979  return _IMP_core._object_cast_to_TransformationSymmetry(o)
980 
981 _object_types.append("TransformationSymmetryMover")
982 
983 
984 def _object_cast_to_TransformationSymmetryMover(o):
985  r"""_object_cast_to_TransformationSymmetryMover(Object o) -> TransformationSymmetryMover"""
986  return _IMP_core._object_cast_to_TransformationSymmetryMover(o)
987 
988 _object_types.append("TransformedDistancePairScore")
989 
990 
991 def _object_cast_to_TransformedDistancePairScore(o):
992  r"""_object_cast_to_TransformedDistancePairScore(Object o) -> TransformedDistancePairScore"""
993  return _IMP_core._object_cast_to_TransformedDistancePairScore(o)
994 
995 _object_types.append("TripletConstraint")
996 
997 
998 def _object_cast_to_TripletConstraint(o):
999  r"""_object_cast_to_TripletConstraint(Object o) -> TripletConstraint"""
1000  return _IMP_core._object_cast_to_TripletConstraint(o)
1001 
1002 _object_types.append("TripletRestraint")
1003 
1004 
1005 def _object_cast_to_TripletRestraint(o):
1006  r"""_object_cast_to_TripletRestraint(Object o) -> TripletRestraint"""
1007  return _IMP_core._object_cast_to_TripletRestraint(o)
1008 
1009 _object_types.append("TypedPairScore")
1010 
1011 
1012 def _object_cast_to_TypedPairScore(o):
1013  r"""_object_cast_to_TypedPairScore(Object o) -> TypedPairScore"""
1014  return _IMP_core._object_cast_to_TypedPairScore(o)
1015 
1016 _object_types.append("VolumeRestraint")
1017 
1018 
1019 def _object_cast_to_VolumeRestraint(o):
1020  r"""_object_cast_to_VolumeRestraint(Object o) -> VolumeRestraint"""
1021  return _IMP_core._object_cast_to_VolumeRestraint(o)
1022 
1023 _object_types.append("WeightedSphereDistancePairScore")
1024 
1025 
1026 def _object_cast_to_WeightedSphereDistancePairScore(o):
1027  r"""_object_cast_to_WeightedSphereDistancePairScore(Object o) -> WeightedSphereDistancePairScore"""
1028  return _IMP_core._object_cast_to_WeightedSphereDistancePairScore(o)
1029 
1030 _object_types.append("MoveStatisticsScoreState")
1031 
1032 
1033 def _object_cast_to_MoveStatisticsScoreState(o):
1034  r"""_object_cast_to_MoveStatisticsScoreState(Object o) -> MoveStatisticsScoreState"""
1035  return _IMP_core._object_cast_to_MoveStatisticsScoreState(o)
1036 
1037 _object_types.append("MinimumRestraint")
1038 
1039 
1040 def _object_cast_to_MinimumRestraint(o):
1041  r"""_object_cast_to_MinimumRestraint(Object o) -> MinimumRestraint"""
1042  return _IMP_core._object_cast_to_MinimumRestraint(o)
1043 
1044 _object_types.append("WriteRestraintScoresOptimizerState")
1045 
1046 
1047 def _object_cast_to_WriteRestraintScoresOptimizerState(o):
1048  r"""_object_cast_to_WriteRestraintScoresOptimizerState(Object o) -> WriteRestraintScoresOptimizerState"""
1049  return _IMP_core._object_cast_to_WriteRestraintScoresOptimizerState(o)
1050 
1051 _object_types.append("LateralSurfaceConstraint")
1052 
1053 
1054 def _object_cast_to_LateralSurfaceConstraint(o):
1055  r"""_object_cast_to_LateralSurfaceConstraint(Object o) -> LateralSurfaceConstraint"""
1056  return _IMP_core._object_cast_to_LateralSurfaceConstraint(o)
1057 
1058 _object_types.append("ConstantSingletonPredicate")
1059 
1060 
1061 def _object_cast_to_ConstantSingletonPredicate(o):
1062  r"""_object_cast_to_ConstantSingletonPredicate(Object o) -> ConstantSingletonPredicate"""
1063  return _IMP_core._object_cast_to_ConstantSingletonPredicate(o)
1064 
1065 _object_types.append("ConstantPairPredicate")
1066 
1067 
1068 def _object_cast_to_ConstantPairPredicate(o):
1069  r"""_object_cast_to_ConstantPairPredicate(Object o) -> ConstantPairPredicate"""
1070  return _IMP_core._object_cast_to_ConstantPairPredicate(o)
1071 
1072 _object_types.append("ConstantTripletPredicate")
1073 
1074 
1075 def _object_cast_to_ConstantTripletPredicate(o):
1076  r"""_object_cast_to_ConstantTripletPredicate(Object o) -> ConstantTripletPredicate"""
1077  return _IMP_core._object_cast_to_ConstantTripletPredicate(o)
1078 
1079 _object_types.append("ConstantQuadPredicate")
1080 
1081 
1082 def _object_cast_to_ConstantQuadPredicate(o):
1083  r"""_object_cast_to_ConstantQuadPredicate(Object o) -> ConstantQuadPredicate"""
1084  return _IMP_core._object_cast_to_ConstantQuadPredicate(o)
1085 
1086 _object_types.append("CoinFlipSingletonPredicate")
1087 
1088 
1089 def _object_cast_to_CoinFlipSingletonPredicate(o):
1090  r"""_object_cast_to_CoinFlipSingletonPredicate(Object o) -> CoinFlipSingletonPredicate"""
1091  return _IMP_core._object_cast_to_CoinFlipSingletonPredicate(o)
1092 
1093 _object_types.append("CoinFlipPairPredicate")
1094 
1095 
1096 def _object_cast_to_CoinFlipPairPredicate(o):
1097  r"""_object_cast_to_CoinFlipPairPredicate(Object o) -> CoinFlipPairPredicate"""
1098  return _IMP_core._object_cast_to_CoinFlipPairPredicate(o)
1099 
1100 _object_types.append("CoinFlipTripletPredicate")
1101 
1102 
1103 def _object_cast_to_CoinFlipTripletPredicate(o):
1104  r"""_object_cast_to_CoinFlipTripletPredicate(Object o) -> CoinFlipTripletPredicate"""
1105  return _IMP_core._object_cast_to_CoinFlipTripletPredicate(o)
1106 
1107 _object_types.append("CoinFlipQuadPredicate")
1108 
1109 
1110 def _object_cast_to_CoinFlipQuadPredicate(o):
1111  r"""_object_cast_to_CoinFlipQuadPredicate(Object o) -> CoinFlipQuadPredicate"""
1112  return _IMP_core._object_cast_to_CoinFlipQuadPredicate(o)
1113 
1114 _object_types.append("UnorderedTypeSingletonPredicate")
1115 
1116 
1117 def _object_cast_to_UnorderedTypeSingletonPredicate(o):
1118  r"""_object_cast_to_UnorderedTypeSingletonPredicate(Object o) -> UnorderedTypeSingletonPredicate"""
1119  return _IMP_core._object_cast_to_UnorderedTypeSingletonPredicate(o)
1120 
1121 _object_types.append("UnorderedTypePairPredicate")
1122 
1123 
1124 def _object_cast_to_UnorderedTypePairPredicate(o):
1125  r"""_object_cast_to_UnorderedTypePairPredicate(Object o) -> UnorderedTypePairPredicate"""
1126  return _IMP_core._object_cast_to_UnorderedTypePairPredicate(o)
1127 
1128 _object_types.append("UnorderedTypeTripletPredicate")
1129 
1130 
1131 def _object_cast_to_UnorderedTypeTripletPredicate(o):
1132  r"""_object_cast_to_UnorderedTypeTripletPredicate(Object o) -> UnorderedTypeTripletPredicate"""
1133  return _IMP_core._object_cast_to_UnorderedTypeTripletPredicate(o)
1134 
1135 _object_types.append("UnorderedTypeQuadPredicate")
1136 
1137 
1138 def _object_cast_to_UnorderedTypeQuadPredicate(o):
1139  r"""_object_cast_to_UnorderedTypeQuadPredicate(Object o) -> UnorderedTypeQuadPredicate"""
1140  return _IMP_core._object_cast_to_UnorderedTypeQuadPredicate(o)
1141 
1142 _object_types.append("OrderedTypeSingletonPredicate")
1143 
1144 
1145 def _object_cast_to_OrderedTypeSingletonPredicate(o):
1146  r"""_object_cast_to_OrderedTypeSingletonPredicate(Object o) -> OrderedTypeSingletonPredicate"""
1147  return _IMP_core._object_cast_to_OrderedTypeSingletonPredicate(o)
1148 
1149 _object_types.append("OrderedTypePairPredicate")
1150 
1151 
1152 def _object_cast_to_OrderedTypePairPredicate(o):
1153  r"""_object_cast_to_OrderedTypePairPredicate(Object o) -> OrderedTypePairPredicate"""
1154  return _IMP_core._object_cast_to_OrderedTypePairPredicate(o)
1155 
1156 _object_types.append("OrderedTypeTripletPredicate")
1157 
1158 
1159 def _object_cast_to_OrderedTypeTripletPredicate(o):
1160  r"""_object_cast_to_OrderedTypeTripletPredicate(Object o) -> OrderedTypeTripletPredicate"""
1161  return _IMP_core._object_cast_to_OrderedTypeTripletPredicate(o)
1162 
1163 _object_types.append("OrderedTypeQuadPredicate")
1164 
1165 
1166 def _object_cast_to_OrderedTypeQuadPredicate(o):
1167  r"""_object_cast_to_OrderedTypeQuadPredicate(Object o) -> OrderedTypeQuadPredicate"""
1168  return _IMP_core._object_cast_to_OrderedTypeQuadPredicate(o)
1169 
1170 _object_types.append("AllSameSingletonPredicate")
1171 
1172 
1173 def _object_cast_to_AllSameSingletonPredicate(o):
1174  r"""_object_cast_to_AllSameSingletonPredicate(Object o) -> AllSameSingletonPredicate"""
1175  return _IMP_core._object_cast_to_AllSameSingletonPredicate(o)
1176 
1177 _object_types.append("AllSamePairPredicate")
1178 
1179 
1180 def _object_cast_to_AllSamePairPredicate(o):
1181  r"""_object_cast_to_AllSamePairPredicate(Object o) -> AllSamePairPredicate"""
1182  return _IMP_core._object_cast_to_AllSamePairPredicate(o)
1183 
1184 _object_types.append("AllSameTripletPredicate")
1185 
1186 
1187 def _object_cast_to_AllSameTripletPredicate(o):
1188  r"""_object_cast_to_AllSameTripletPredicate(Object o) -> AllSameTripletPredicate"""
1189  return _IMP_core._object_cast_to_AllSameTripletPredicate(o)
1190 
1191 _object_types.append("AllSameQuadPredicate")
1192 
1193 
1194 def _object_cast_to_AllSameQuadPredicate(o):
1195  r"""_object_cast_to_AllSameQuadPredicate(Object o) -> AllSameQuadPredicate"""
1196  return _IMP_core._object_cast_to_AllSameQuadPredicate(o)
1197 
1198 def XYZs(l=[]):
1199  return [XYZ(x) for x in l]
1200 _plural_types.append("XYZs")
1201 
1202 
1203 _value_types.append("XYZ")
1204 
1205 
1206 def XYZRs(l=[]):
1207  return [XYZR(x) for x in l]
1208 _plural_types.append("XYZRs")
1209 
1210 
1211 _value_types.append("XYZR")
1212 
1213 
1214 def RigidBodies(l=[]):
1215  return [RigidBody(x) for x in l]
1216 _plural_types.append("RigidBodies")
1217 
1218 
1219 _value_types.append("RigidBody")
1220 
1221 
1222 def RigidBodyMembers(l=[]):
1223  return [RigidBodyMember(x) for x in l]
1224 _plural_types.append("RigidBodyMembers")
1225 
1226 
1227 _value_types.append("RigidBodyMember")
1228 
1229 
1230 def RigidMembers(l=[]):
1231  return [RigidMember(x) for x in l]
1232 _plural_types.append("RigidMembers")
1233 
1234 
1235 _value_types.append("RigidMember")
1236 
1237 
1238 def NonRigidMembers(l=[]):
1239  return [NonRigidMember(x) for x in l]
1240 _plural_types.append("NonRigidMembers")
1241 
1242 
1243 _value_types.append("NonRigidMember")
1244 
1245 
1246 def Centroids(l=[]):
1247  return [Centroid(x) for x in l]
1248 _plural_types.append("Centroids")
1249 
1250 
1251 _value_types.append("Centroid")
1252 
1253 
1254 def Covers(l=[]):
1255  return [Cover(x) for x in l]
1256 _plural_types.append("Covers")
1257 
1258 
1259 _value_types.append("Cover")
1260 
1261 
1262 def References(l=[]):
1263  return [Reference(x) for x in l]
1264 _plural_types.append("References")
1265 
1266 
1267 _value_types.append("Reference")
1268 
1269 
1270 ParticleTypes=list
1271 _plural_types.append("ParticleTypes")
1272 _value_types.append("ParticleType")
1273 
1274 
1275 def Typeds(l=[]):
1276  return [Typed(x) for x in l]
1277 _plural_types.append("Typeds")
1278 
1279 
1280 _value_types.append("Typed")
1281 
1282 
1283 def GenericHierarchies(l=[]):
1284  return [Hierarchy(x) for x in l]
1285 _plural_types.append("GenericHierarchies")
1286 
1287 
1288 _value_types.append("Hierarchy")
1289 
1290 
1291 def Gaussians(l=[]):
1292  return [Gaussian(x) for x in l]
1293 _plural_types.append("Gaussians")
1294 
1295 
1296 _value_types.append("Gaussian")
1297 
1298 
1299 def Directions(l=[]):
1300  return [Direction(x) for x in l]
1301 _plural_types.append("Directions")
1302 
1303 
1304 _value_types.append("Direction")
1305 
1306 
1307 def DirectionAngles(l=[]):
1308  return [DirectionAngle(x) for x in l]
1309 _plural_types.append("DirectionAngles")
1310 
1311 
1312 _value_types.append("DirectionAngle")
1313 
1314 
1315 def Surfaces(l=[]):
1316  return [Surface(x) for x in l]
1317 _plural_types.append("Surfaces")
1318 
1319 
1320 _value_types.append("Surface")
1321 
1322 
1323 def Provenances(l=[]):
1324  return [Provenance(x) for x in l]
1325 _plural_types.append("Provenances")
1326 
1327 
1328 _value_types.append("Provenance")
1329 
1330 
1331 def StructureProvenances(l=[]):
1332  return [StructureProvenance(x) for x in l]
1333 _plural_types.append("StructureProvenances")
1334 
1335 
1336 _value_types.append("StructureProvenance")
1337 
1338 
1339 def SampleProvenances(l=[]):
1340  return [SampleProvenance(x) for x in l]
1341 _plural_types.append("SampleProvenances")
1342 
1343 
1344 _value_types.append("SampleProvenance")
1345 
1346 
1347 def ClusterProvenances(l=[]):
1348  return [ClusterProvenance(x) for x in l]
1349 _plural_types.append("ClusterProvenances")
1350 
1351 
1352 _value_types.append("ClusterProvenance")
1353 
1354 
1355 def CombineProvenances(l=[]):
1356  return [CombineProvenance(x) for x in l]
1357 _plural_types.append("CombineProvenances")
1358 
1359 
1360 _value_types.append("CombineProvenance")
1361 
1362 
1363 def FilterProvenances(l=[]):
1364  return [FilterProvenance(x) for x in l]
1365 _plural_types.append("FilterProvenances")
1366 
1367 
1368 _value_types.append("FilterProvenance")
1369 
1370 
1371 def ScriptProvenances(l=[]):
1372  return [ScriptProvenance(x) for x in l]
1373 _plural_types.append("ScriptProvenances")
1374 
1375 
1376 _value_types.append("ScriptProvenance")
1377 
1378 
1379 def SoftwareProvenances(l=[]):
1380  return [SoftwareProvenance(x) for x in l]
1381 _plural_types.append("SoftwareProvenances")
1382 
1383 
1384 _value_types.append("SoftwareProvenance")
1385 
1386 
1387 def Provenanceds(l=[]):
1388  return [Provenanced(x) for x in l]
1389 _plural_types.append("Provenanceds")
1390 
1391 
1392 _value_types.append("Provenanced")
1393 
1394 
1395 HierarchyCounters=list
1396 _plural_types.append("HierarchyCounters")
1397 _value_types.append("HierarchyCounter")
1398 
1399 
1400 HierarchyTraitsList=list
1401 _plural_types.append("HierarchyTraitsList")
1402 _value_types.append("HierarchyTraits")
1403 
1404 
1405 _object_types.append("TruncatedHarmonicBound")
1406 
1407 
1408 def _object_cast_to_TruncatedHarmonicBound(o):
1409  r"""_object_cast_to_TruncatedHarmonicBound(Object o) -> TruncatedHarmonicBound"""
1410  return _IMP_core._object_cast_to_TruncatedHarmonicBound(o)
1411 
1412 _object_types.append("TruncatedHarmonicLowerBound")
1413 
1414 
1415 def _object_cast_to_TruncatedHarmonicLowerBound(o):
1416  r"""_object_cast_to_TruncatedHarmonicLowerBound(Object o) -> TruncatedHarmonicLowerBound"""
1417  return _IMP_core._object_cast_to_TruncatedHarmonicLowerBound(o)
1418 
1419 _object_types.append("TruncatedHarmonicUpperBound")
1420 
1421 
1422 def _object_cast_to_TruncatedHarmonicUpperBound(o):
1423  r"""_object_cast_to_TruncatedHarmonicUpperBound(Object o) -> TruncatedHarmonicUpperBound"""
1424  return _IMP_core._object_cast_to_TruncatedHarmonicUpperBound(o)
1425 
1426 _object_types.append("HarmonicDistancePairScore")
1427 
1428 
1429 def _object_cast_to_HarmonicDistancePairScore(o):
1430  r"""_object_cast_to_HarmonicDistancePairScore(Object o) -> HarmonicDistancePairScore"""
1431  return _IMP_core._object_cast_to_HarmonicDistancePairScore(o)
1432 
1433 _object_types.append("DistancePairScore")
1434 
1435 
1436 def _object_cast_to_DistancePairScore(o):
1437  r"""_object_cast_to_DistancePairScore(Object o) -> DistancePairScore"""
1438  return _IMP_core._object_cast_to_DistancePairScore(o)
1439 
1440 _object_types.append("XYZRGeometry")
1441 
1442 
1443 def _object_cast_to_XYZRGeometry(o):
1444  r"""_object_cast_to_XYZRGeometry(Object o) -> XYZRGeometry"""
1445  return _IMP_core._object_cast_to_XYZRGeometry(o)
1446 
1447 _object_types.append("XYZRsGeometry")
1448 
1449 
1450 def _object_cast_to_XYZRsGeometry(o):
1451  r"""_object_cast_to_XYZRsGeometry(Object o) -> XYZRsGeometry"""
1452  return _IMP_core._object_cast_to_XYZRsGeometry(o)
1453 
1454 _object_types.append("XYZDerivativeGeometry")
1455 
1456 
1457 def _object_cast_to_XYZDerivativeGeometry(o):
1458  r"""_object_cast_to_XYZDerivativeGeometry(Object o) -> XYZDerivativeGeometry"""
1459  return _IMP_core._object_cast_to_XYZDerivativeGeometry(o)
1460 
1461 _object_types.append("XYZDerivativesGeometry")
1462 
1463 
1464 def _object_cast_to_XYZDerivativesGeometry(o):
1465  r"""_object_cast_to_XYZDerivativesGeometry(Object o) -> XYZDerivativesGeometry"""
1466  return _IMP_core._object_cast_to_XYZDerivativesGeometry(o)
1467 
1468 _object_types.append("RigidBodyDerivativeGeometry")
1469 
1470 
1471 def _object_cast_to_RigidBodyDerivativeGeometry(o):
1472  r"""_object_cast_to_RigidBodyDerivativeGeometry(Object o) -> RigidBodyDerivativeGeometry"""
1473  return _IMP_core._object_cast_to_RigidBodyDerivativeGeometry(o)
1474 
1475 _object_types.append("RigidBodyDerivativesGeometry")
1476 
1477 
1478 def _object_cast_to_RigidBodyDerivativesGeometry(o):
1479  r"""_object_cast_to_RigidBodyDerivativesGeometry(Object o) -> RigidBodyDerivativesGeometry"""
1480  return _IMP_core._object_cast_to_RigidBodyDerivativesGeometry(o)
1481 
1482 _object_types.append("RigidBodyHierarchyGeometry")
1483 
1484 
1485 def _object_cast_to_RigidBodyHierarchyGeometry(o):
1486  r"""_object_cast_to_RigidBodyHierarchyGeometry(Object o) -> RigidBodyHierarchyGeometry"""
1487  return _IMP_core._object_cast_to_RigidBodyHierarchyGeometry(o)
1488 
1489 _object_types.append("RigidBodyFrameGeometry")
1490 
1491 
1492 def _object_cast_to_RigidBodyFrameGeometry(o):
1493  r"""_object_cast_to_RigidBodyFrameGeometry(Object o) -> RigidBodyFrameGeometry"""
1494  return _IMP_core._object_cast_to_RigidBodyFrameGeometry(o)
1495 
1496 _object_types.append("RigidBodyFramesGeometry")
1497 
1498 
1499 def _object_cast_to_RigidBodyFramesGeometry(o):
1500  r"""_object_cast_to_RigidBodyFramesGeometry(Object o) -> RigidBodyFramesGeometry"""
1501  return _IMP_core._object_cast_to_RigidBodyFramesGeometry(o)
1502 
1503 _object_types.append("RigidBodyTorque")
1504 
1505 
1506 def _object_cast_to_RigidBodyTorque(o):
1507  r"""_object_cast_to_RigidBodyTorque(Object o) -> RigidBodyTorque"""
1508  return _IMP_core._object_cast_to_RigidBodyTorque(o)
1509 
1510 _object_types.append("EdgePairGeometry")
1511 
1512 
1513 def _object_cast_to_EdgePairGeometry(o):
1514  r"""_object_cast_to_EdgePairGeometry(Object o) -> EdgePairGeometry"""
1515  return _IMP_core._object_cast_to_EdgePairGeometry(o)
1516 
1517 _object_types.append("EdgePairsGeometry")
1518 
1519 
1520 def _object_cast_to_EdgePairsGeometry(o):
1521  r"""_object_cast_to_EdgePairsGeometry(Object o) -> EdgePairsGeometry"""
1522  return _IMP_core._object_cast_to_EdgePairsGeometry(o)
1523 
1524 _object_types.append("SurfaceGeometry")
1525 
1526 
1527 def _object_cast_to_SurfaceGeometry(o):
1528  r"""_object_cast_to_SurfaceGeometry(Object o) -> SurfaceGeometry"""
1529  return _IMP_core._object_cast_to_SurfaceGeometry(o)
1530 
1531 _object_types.append("SurfaceGeometryConstraint")
1532 
1533 
1534 def _object_cast_to_SurfaceGeometryConstraint(o):
1535  r"""_object_cast_to_SurfaceGeometryConstraint(Object o) -> SurfaceGeometryConstraint"""
1536  return _IMP_core._object_cast_to_SurfaceGeometryConstraint(o)
1537 
1538 _object_types.append("AttributeSingletonPredicate")
1539 
1540 
1541 def _object_cast_to_AttributeSingletonPredicate(o):
1542  r"""_object_cast_to_AttributeSingletonPredicate(Object o) -> AttributeSingletonPredicate"""
1543  return _IMP_core._object_cast_to_AttributeSingletonPredicate(o)
1544 
1545 _object_types.append("InBoundingBox3DSingletonPredicate")
1546 
1547 
1548 def _object_cast_to_InBoundingBox3DSingletonPredicate(o):
1549  r"""_object_cast_to_InBoundingBox3DSingletonPredicate(Object o) -> InBoundingBox3DSingletonPredicate"""
1550  return _IMP_core._object_cast_to_InBoundingBox3DSingletonPredicate(o)
1551 
1552 _object_types.append("IsCollisionPairPredicate")
1553 
1554 
1555 def _object_cast_to_IsCollisionPairPredicate(o):
1556  r"""_object_cast_to_IsCollisionPairPredicate(Object o) -> IsCollisionPairPredicate"""
1557  return _IMP_core._object_cast_to_IsCollisionPairPredicate(o)
1558 
1559 BinormalTermList=list
1560 _plural_types.append("BinormalTermList")
1561 _value_types.append("BinormalTerm")
1562 
1563 
1564 _object_types.append("MultipleBinormalRestraint")
1565 
1566 
1567 def _object_cast_to_MultipleBinormalRestraint(o):
1568  r"""_object_cast_to_MultipleBinormalRestraint(Object o) -> MultipleBinormalRestraint"""
1569  return _IMP_core._object_cast_to_MultipleBinormalRestraint(o)
1570 class ClosePairsFinder(IMP._ParticleInputs, IMP.Object):
1571  r"""Proxy of C++ IMP::core::ClosePairsFinder class."""
1572 
1573  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1574 
1575  def __init__(self, *args, **kwargs):
1576  raise AttributeError("No constructor defined - class is abstract")
1577  __swig_destroy__ = _IMP_core.delete_ClosePairsFinder
1578 
1579  def get_close_pairs(self, *args):
1580  r"""
1581  get_close_pairs(ClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
1582  get_close_pairs(ClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
1583  get_close_pairs(ClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
1584  get_close_pairs(ClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
1585  """
1586  return _IMP_core.ClosePairsFinder_get_close_pairs(self, *args)
1587 
1588  def set_distance(self, d):
1589  r"""set_distance(ClosePairsFinder self, double d)"""
1590  return _IMP_core.ClosePairsFinder_set_distance(self, d)
1591 
1592  def get_distance(self):
1593  r"""get_distance(ClosePairsFinder self) -> double"""
1594  return _IMP_core.ClosePairsFinder_get_distance(self)
1595  def __get_pair_filters(self): return IMP._list_util.VarList(getdimfunc=self.get_number_of_pair_filters, getfunc=self.get_pair_filter, erasefunc=self.erase_pair_filter, appendfunc=self.add_pair_filter, extendfunc=self.add_pair_filters, clearfunc=self.clear_pair_filters, indexfunc=self._python_index_pair_filter)
1596  def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
1597  def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
1598  pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc="List of ##ucnames")
1599 
1600  def remove_pair_filter(self, d):
1601  r"""remove_pair_filter(ClosePairsFinder self, PairPredicate d)"""
1602  return _IMP_core.ClosePairsFinder_remove_pair_filter(self, d)
1603 
1604  def _python_index_pair_filter(self, d, start, stop):
1605  r"""_python_index_pair_filter(ClosePairsFinder self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
1606  return _IMP_core.ClosePairsFinder__python_index_pair_filter(self, d, start, stop)
1607 
1608  def remove_pair_filters(self, d):
1609  r"""remove_pair_filters(ClosePairsFinder self, IMP::PairPredicates const & d)"""
1610  return _IMP_core.ClosePairsFinder_remove_pair_filters(self, d)
1611 
1612  def set_pair_filters(self, ps):
1613  r"""set_pair_filters(ClosePairsFinder self, IMP::PairPredicates const & ps)"""
1614  return _IMP_core.ClosePairsFinder_set_pair_filters(self, ps)
1615 
1616  def set_pair_filters_order(self, objs):
1617  r"""set_pair_filters_order(ClosePairsFinder self, IMP::PairPredicates const & objs)"""
1618  return _IMP_core.ClosePairsFinder_set_pair_filters_order(self, objs)
1619 
1620  def add_pair_filter(self, obj):
1621  r"""add_pair_filter(ClosePairsFinder self, PairPredicate obj) -> unsigned int"""
1622  return _IMP_core.ClosePairsFinder_add_pair_filter(self, obj)
1623 
1624  def add_pair_filters(self, objs):
1625  r"""add_pair_filters(ClosePairsFinder self, IMP::PairPredicates const & objs)"""
1626  return _IMP_core.ClosePairsFinder_add_pair_filters(self, objs)
1627 
1628  def clear_pair_filters(self):
1629  r"""clear_pair_filters(ClosePairsFinder self)"""
1630  return _IMP_core.ClosePairsFinder_clear_pair_filters(self)
1631 
1632  def get_number_of_pair_filters(self):
1633  r"""get_number_of_pair_filters(ClosePairsFinder self) -> unsigned int"""
1634  return _IMP_core.ClosePairsFinder_get_number_of_pair_filters(self)
1635 
1636  def get_has_pair_filters(self):
1637  r"""get_has_pair_filters(ClosePairsFinder self) -> bool"""
1638  return _IMP_core.ClosePairsFinder_get_has_pair_filters(self)
1639 
1640  def get_pair_filter(self, i):
1641  r"""get_pair_filter(ClosePairsFinder self, unsigned int i) -> PairPredicate"""
1642  return _IMP_core.ClosePairsFinder_get_pair_filter(self, i)
1643 
1644  def get_pair_filters(self):
1645  r"""get_pair_filters(ClosePairsFinder self) -> IMP::PairPredicates"""
1646  return _IMP_core.ClosePairsFinder_get_pair_filters(self)
1647 
1648  def erase_pair_filter(self, i):
1649  r"""erase_pair_filter(ClosePairsFinder self, unsigned int i)"""
1650  return _IMP_core.ClosePairsFinder_erase_pair_filter(self, i)
1651 
1652  def reserve_pair_filters(self, sz):
1653  r"""reserve_pair_filters(ClosePairsFinder self, unsigned int sz)"""
1654  return _IMP_core.ClosePairsFinder_reserve_pair_filters(self, sz)
1655 
1656  def __str__(self):
1657  r"""__str__(ClosePairsFinder self) -> std::string"""
1658  return _IMP_core.ClosePairsFinder___str__(self)
1659 
1660  def __repr__(self):
1661  r"""__repr__(ClosePairsFinder self) -> std::string"""
1662  return _IMP_core.ClosePairsFinder___repr__(self)
1663 
1664  @staticmethod
1665  def get_from(o):
1666  return _object_cast_to_ClosePairsFinder(o)
1667 
1668 
1669 # Register ClosePairsFinder in _IMP_core:
1670 _IMP_core.ClosePairsFinder_swigregister(ClosePairsFinder)
1671 class MonteCarloMoverResult(IMP._Value):
1672  r"""Proxy of C++ IMP::core::MonteCarloMoverResult class."""
1673 
1674  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1675 
1676  def __init__(self, *args):
1677  r"""__init__(MonteCarloMoverResult self, IMP::ParticleIndexes i0=IMP::ParticleIndexes(), double i1=double()) -> MonteCarloMoverResult"""
1678  _IMP_core.MonteCarloMoverResult_swiginit(self, _IMP_core.new_MonteCarloMoverResult(*args))
1679 
1680  def __hash__(self):
1681  r"""__hash__(MonteCarloMoverResult self) -> std::size_t"""
1682  return _IMP_core.MonteCarloMoverResult___hash__(self)
1683 
1684  def show(self, *args):
1685  r"""show(MonteCarloMoverResult self, _ostream out=std::cout)"""
1686  return _IMP_core.MonteCarloMoverResult_show(self, *args)
1687 
1688  def __cmp__(self, o):
1689  r"""__cmp__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> int"""
1690  return _IMP_core.MonteCarloMoverResult___cmp__(self, o)
1691 
1692  def __eq__(self, o):
1693  r"""__eq__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1694  return _IMP_core.MonteCarloMoverResult___eq__(self, o)
1695 
1696  def __ne__(self, o):
1697  r"""__ne__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1698  return _IMP_core.MonteCarloMoverResult___ne__(self, o)
1699 
1700  def __lt__(self, o):
1701  r"""__lt__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1702  return _IMP_core.MonteCarloMoverResult___lt__(self, o)
1703 
1704  def __gt__(self, o):
1705  r"""__gt__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1706  return _IMP_core.MonteCarloMoverResult___gt__(self, o)
1707 
1708  def __ge__(self, o):
1709  r"""__ge__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1710  return _IMP_core.MonteCarloMoverResult___ge__(self, o)
1711 
1712  def __le__(self, o):
1713  r"""__le__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1714  return _IMP_core.MonteCarloMoverResult___le__(self, o)
1715 
1716  def get_moved_particles(self):
1717  r"""get_moved_particles(MonteCarloMoverResult self) -> IMP::ParticleIndexes const &"""
1718  return _IMP_core.MonteCarloMoverResult_get_moved_particles(self)
1719 
1720  def set_moved_particles(self, v):
1721  r"""set_moved_particles(MonteCarloMoverResult self, IMP::ParticleIndexes const & v)"""
1722  return _IMP_core.MonteCarloMoverResult_set_moved_particles(self, v)
1723 
1724  def get_proposal_ratio(self):
1725  r"""get_proposal_ratio(MonteCarloMoverResult self) -> double const &"""
1726  return _IMP_core.MonteCarloMoverResult_get_proposal_ratio(self)
1727 
1728  def set_proposal_ratio(self, v):
1729  r"""set_proposal_ratio(MonteCarloMoverResult self, double const & v)"""
1730  return _IMP_core.MonteCarloMoverResult_set_proposal_ratio(self, v)
1731 
1732  def __str__(self):
1733  r"""__str__(MonteCarloMoverResult self) -> std::string"""
1734  return _IMP_core.MonteCarloMoverResult___str__(self)
1735 
1736  def __repr__(self):
1737  r"""__repr__(MonteCarloMoverResult self) -> std::string"""
1738  return _IMP_core.MonteCarloMoverResult___repr__(self)
1739  __swig_destroy__ = _IMP_core.delete_MonteCarloMoverResult
1740 
1741 # Register MonteCarloMoverResult in _IMP_core:
1742 _IMP_core.MonteCarloMoverResult_swigregister(MonteCarloMoverResult)
1743 class MonteCarloMover(IMP.ModelObject):
1744  r"""Proxy of C++ IMP::core::MonteCarloMover class."""
1745 
1746  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1747 
1748  def __init__(self, *args):
1749  r"""
1750  __init__(MonteCarloMover self, Model m, std::string name) -> MonteCarloMover
1751  __init__(MonteCarloMover self) -> MonteCarloMover
1752  """
1753  if self.__class__ == MonteCarloMover:
1754  _self = None
1755  else:
1756  _self = self
1757  _IMP_core.MonteCarloMover_swiginit(self, _IMP_core.new_MonteCarloMover(_self, *args))
1758 
1759  if self.__class__ != MonteCarloMover:
1760  _director_objects.register(self)
1761 
1762 
1763 
1764 
1765  def propose(self):
1766  r"""propose(MonteCarloMover self) -> MonteCarloMoverResult"""
1767  return _IMP_core.MonteCarloMover_propose(self)
1768 
1769  def reject(self):
1770  r"""reject(MonteCarloMover self)"""
1771  return _IMP_core.MonteCarloMover_reject(self)
1772 
1773  def accept(self):
1774  r"""accept(MonteCarloMover self)"""
1775  return _IMP_core.MonteCarloMover_accept(self)
1776 
1777  def get_number_of_proposed(self):
1778  r"""get_number_of_proposed(MonteCarloMover self) -> unsigned int"""
1779  return _IMP_core.MonteCarloMover_get_number_of_proposed(self)
1780 
1781  def get_number_of_accepted(self):
1782  r"""get_number_of_accepted(MonteCarloMover self) -> unsigned int"""
1783  return _IMP_core.MonteCarloMover_get_number_of_accepted(self)
1784 
1785  def reset_statistics(self):
1786  r"""reset_statistics(MonteCarloMover self)"""
1787  return _IMP_core.MonteCarloMover_reset_statistics(self)
1788 
1789  def do_propose(self):
1790  r"""do_propose(MonteCarloMover self) -> MonteCarloMoverResult"""
1791  return _IMP_core.MonteCarloMover_do_propose(self)
1792 
1793  def do_reject(self):
1794  r"""do_reject(MonteCarloMover self)"""
1795  return _IMP_core.MonteCarloMover_do_reject(self)
1796 
1797  def do_accept(self):
1798  r"""do_accept(MonteCarloMover self)"""
1799  return _IMP_core.MonteCarloMover_do_accept(self)
1800 
1801  def do_get_outputs(self):
1802  r"""do_get_outputs(MonteCarloMover self) -> IMP::ModelObjectsTemp"""
1803  return _IMP_core.MonteCarloMover_do_get_outputs(self)
1804 
1805  def __str__(self):
1806  r"""__str__(MonteCarloMover self) -> std::string"""
1807  return _IMP_core.MonteCarloMover___str__(self)
1808 
1809  def __repr__(self):
1810  r"""__repr__(MonteCarloMover self) -> std::string"""
1811  return _IMP_core.MonteCarloMover___repr__(self)
1812 
1813  @staticmethod
1814  def get_from(o):
1815  return _object_cast_to_MonteCarloMover(o)
1816 
1817 
1818  def get_type_name(self):
1819  return self.__class__.__name__
1820  def do_show(self, out):
1821  pass
1822  def get_version_info(self):
1823  if"IMP::core" == "IMP":
1824  return VersionInfo(self.__module__,
1825  __import__(self.__module__).get_module_version())
1826  else:
1827  return IMP.VersionInfo(self.__module__,
1828  __import__(self.__module__).get_module_version())
1829  @staticmethod
1830  def get_from(o):
1831  return _object_cast_to_MonteCarloMover(o)
1832 
1833  __swig_destroy__ = _IMP_core.delete_MonteCarloMover
1834  def __disown__(self):
1835  self.this.disown()
1836  _IMP_core.disown_MonteCarloMover(self)
1837  return weakref.proxy(self)
1838 
1839  def do_destroy(self):
1840  r"""do_destroy(MonteCarloMover self)"""
1841  return _IMP_core.MonteCarloMover_do_destroy(self)
1842 
1843  def handle_set_has_required_score_states(self, arg0):
1844  r"""handle_set_has_required_score_states(MonteCarloMover self, bool arg0)"""
1845  return _IMP_core.MonteCarloMover_handle_set_has_required_score_states(self, arg0)
1846 
1847  def do_get_inputs(self):
1848  r"""do_get_inputs(MonteCarloMover self) -> IMP::ModelObjectsTemp"""
1849  return _IMP_core.MonteCarloMover_do_get_inputs(self)
1850 
1851  def do_get_interactions(self):
1852  r"""do_get_interactions(MonteCarloMover self) -> IMP::ModelObjectsTemps"""
1853  return _IMP_core.MonteCarloMover_do_get_interactions(self)
1854 
1855 # Register MonteCarloMover in _IMP_core:
1856 _IMP_core.MonteCarloMover_swigregister(MonteCarloMover)
1857 class XYZ(IMP.Decorator):
1858  r"""Proxy of C++ IMP::core::XYZ class."""
1859 
1860  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1861 
1862  @staticmethod
1863  def get_coordinate_key(i):
1864  r"""get_coordinate_key(unsigned int i) -> FloatKey"""
1865  return _IMP_core.XYZ_get_coordinate_key(i)
1866 
1867  def __init__(self, *args):
1868  r"""
1869  __init__(XYZ self) -> XYZ
1870  __init__(XYZ self, Model m, ParticleIndex id) -> XYZ
1871  __init__(XYZ self, _ParticleAdaptor d) -> XYZ
1872  """
1873  _IMP_core.XYZ_swiginit(self, _IMP_core.new_XYZ(*args))
1874 
1875  def show(self, *args):
1876  r"""show(XYZ self, _ostream out=std::cout)"""
1877  return _IMP_core.XYZ_show(self, *args)
1878 
1879  @staticmethod
1880  def setup_particle(*args):
1881  r"""
1882  setup_particle(Model m, ParticleIndex pi) -> XYZ
1883  setup_particle(_ParticleAdaptor pa) -> XYZ
1884  setup_particle(Model m, ParticleIndex pi, Vector3D v) -> XYZ
1885  setup_particle(_ParticleAdaptor pa, Vector3D v) -> XYZ
1886  """
1887  return _IMP_core.XYZ_setup_particle(*args)
1888 
1889  def get_x(self):
1890  r"""get_x(XYZ self) -> IMP::Float"""
1891  return _IMP_core.XYZ_get_x(self)
1892 
1893  def set_x(self, t):
1894  r"""set_x(XYZ self, IMP::Float t)"""
1895  return _IMP_core.XYZ_set_x(self, t)
1896 
1897  def get_y(self):
1898  r"""get_y(XYZ self) -> IMP::Float"""
1899  return _IMP_core.XYZ_get_y(self)
1900 
1901  def set_y(self, t):
1902  r"""set_y(XYZ self, IMP::Float t)"""
1903  return _IMP_core.XYZ_set_y(self, t)
1904 
1905  def get_z(self):
1906  r"""get_z(XYZ self) -> IMP::Float"""
1907  return _IMP_core.XYZ_get_z(self)
1908 
1909  def set_z(self, t):
1910  r"""set_z(XYZ self, IMP::Float t)"""
1911  return _IMP_core.XYZ_set_z(self, t)
1912 
1913  def set_coordinate(self, i, v):
1914  r"""set_coordinate(XYZ self, unsigned int i, IMP::Float v)"""
1915  return _IMP_core.XYZ_set_coordinate(self, i, v)
1916 
1917  def set_coordinates(self, v):
1918  r"""set_coordinates(XYZ self, Vector3D v)"""
1919  return _IMP_core.XYZ_set_coordinates(self, v)
1920 
1921  def get_coordinate(self, i):
1922  r"""get_coordinate(XYZ self, int i) -> IMP::Float"""
1923  return _IMP_core.XYZ_get_coordinate(self, i)
1924 
1925  def add_to_derivatives(self, v, d):
1926  r"""add_to_derivatives(XYZ self, Vector3D v, DerivativeAccumulator d)"""
1927  return _IMP_core.XYZ_add_to_derivatives(self, v, d)
1928 
1929  def get_coordinates_are_optimized(self):
1930  r"""get_coordinates_are_optimized(XYZ self) -> bool"""
1931  return _IMP_core.XYZ_get_coordinates_are_optimized(self)
1932 
1933  def set_coordinates_are_optimized(self, tf):
1934  r"""set_coordinates_are_optimized(XYZ self, bool tf)"""
1935  return _IMP_core.XYZ_set_coordinates_are_optimized(self, tf)
1936 
1937  def get_vector_to(self, b):
1938  r"""get_vector_to(XYZ self, XYZ b) -> Vector3D"""
1939  return _IMP_core.XYZ_get_vector_to(self, b)
1940 
1941  def get_coordinates(self):
1942  r"""get_coordinates(XYZ self) -> Vector3D"""
1943  return _IMP_core.XYZ_get_coordinates(self)
1944 
1945  def get_derivatives(self):
1946  r"""get_derivatives(XYZ self) -> Vector3D"""
1947  return _IMP_core.XYZ_get_derivatives(self)
1948 
1949  @staticmethod
1950  def get_is_setup(*args):
1951  r"""
1952  get_is_setup(_ParticleAdaptor p) -> bool
1953  get_is_setup(Model m, ParticleIndex pi) -> bool
1954  """
1955  return _IMP_core.XYZ_get_is_setup(*args)
1956 
1957  @staticmethod
1958  def get_xyz_keys():
1959  r"""get_xyz_keys() -> IMP::FloatKeys const &"""
1960  return _IMP_core.XYZ_get_xyz_keys()
1961 
1962  def add_attribute(self, *args):
1963  r"""
1964  add_attribute(XYZ self, FloatKey k, IMP::Float v, bool opt)
1965  add_attribute(XYZ self, FloatKey a0, IMP::Float a1)
1966  add_attribute(XYZ self, IntKey a0, IMP::Int a1)
1967  add_attribute(XYZ self, FloatsKey a0, IMP::Floats a1)
1968  add_attribute(XYZ self, IntsKey a0, IMP::Ints a1)
1969  add_attribute(XYZ self, StringKey a0, IMP::String a1)
1970  add_attribute(XYZ self, ParticleIndexKey a0, Particle a1)
1971  add_attribute(XYZ self, ObjectKey a0, Object a1)
1972  add_attribute(XYZ self, SparseFloatKey a0, IMP::Float a1)
1973  add_attribute(XYZ self, SparseIntKey a0, IMP::Int a1)
1974  add_attribute(XYZ self, SparseStringKey a0, IMP::String a1)
1975  add_attribute(XYZ self, SparseParticleIndexKey a0, ParticleIndex a1)
1976  """
1977  return _IMP_core.XYZ_add_attribute(self, *args)
1978 
1979  def get_value(self, *args):
1980  r"""
1981  get_value(XYZ self, FloatKey a0) -> IMP::Float
1982  get_value(XYZ self, IntKey a0) -> IMP::Int
1983  get_value(XYZ self, FloatsKey a0) -> IMP::Floats
1984  get_value(XYZ self, IntsKey a0) -> IMP::Ints
1985  get_value(XYZ self, StringKey a0) -> IMP::String
1986  get_value(XYZ self, ParticleIndexKey a0) -> Particle
1987  get_value(XYZ self, ObjectKey a0) -> Object
1988  get_value(XYZ self, SparseFloatKey a0) -> IMP::Float
1989  get_value(XYZ self, SparseIntKey a0) -> IMP::Int
1990  get_value(XYZ self, SparseStringKey a0) -> IMP::String
1991  get_value(XYZ self, SparseParticleIndexKey a0) -> ParticleIndex
1992  """
1993  return _IMP_core.XYZ_get_value(self, *args)
1994 
1995  def set_value(self, *args):
1996  r"""
1997  set_value(XYZ self, FloatKey a0, IMP::Float a1)
1998  set_value(XYZ self, IntKey a0, IMP::Int a1)
1999  set_value(XYZ self, FloatsKey a0, IMP::Floats a1)
2000  set_value(XYZ self, IntsKey a0, IMP::Ints a1)
2001  set_value(XYZ self, StringKey a0, IMP::String a1)
2002  set_value(XYZ self, ParticleIndexKey a0, Particle a1)
2003  set_value(XYZ self, ObjectKey a0, Object a1)
2004  set_value(XYZ self, SparseFloatKey a0, IMP::Float a1)
2005  set_value(XYZ self, SparseIntKey a0, IMP::Int a1)
2006  set_value(XYZ self, SparseStringKey a0, IMP::String a1)
2007  set_value(XYZ self, SparseParticleIndexKey a0, ParticleIndex a1)
2008  """
2009  return _IMP_core.XYZ_set_value(self, *args)
2010 
2011  def remove_attribute(self, *args):
2012  r"""
2013  remove_attribute(XYZ self, FloatKey a0)
2014  remove_attribute(XYZ self, IntKey a0)
2015  remove_attribute(XYZ self, FloatsKey a0)
2016  remove_attribute(XYZ self, IntsKey a0)
2017  remove_attribute(XYZ self, StringKey a0)
2018  remove_attribute(XYZ self, ParticleIndexKey a0)
2019  remove_attribute(XYZ self, ObjectKey a0)
2020  remove_attribute(XYZ self, SparseFloatKey a0)
2021  remove_attribute(XYZ self, SparseIntKey a0)
2022  remove_attribute(XYZ self, SparseStringKey a0)
2023  remove_attribute(XYZ self, SparseParticleIndexKey a0)
2024  """
2025  return _IMP_core.XYZ_remove_attribute(self, *args)
2026 
2027  def has_attribute(self, *args):
2028  r"""
2029  has_attribute(XYZ self, FloatKey a0) -> bool
2030  has_attribute(XYZ self, IntKey a0) -> bool
2031  has_attribute(XYZ self, FloatsKey a0) -> bool
2032  has_attribute(XYZ self, IntsKey a0) -> bool
2033  has_attribute(XYZ self, StringKey a0) -> bool
2034  has_attribute(XYZ self, ParticleIndexKey a0) -> bool
2035  has_attribute(XYZ self, ObjectKey a0) -> bool
2036  has_attribute(XYZ self, SparseFloatKey a0) -> bool
2037  has_attribute(XYZ self, SparseIntKey a0) -> bool
2038  has_attribute(XYZ self, SparseStringKey a0) -> bool
2039  has_attribute(XYZ self, SparseParticleIndexKey a0) -> bool
2040  """
2041  return _IMP_core.XYZ_has_attribute(self, *args)
2042 
2043  def get_derivative(self, *args):
2044  r"""
2045  get_derivative(XYZ self, int i) -> IMP::Float
2046  get_derivative(XYZ self, FloatKey a0) -> double
2047  """
2048  return _IMP_core.XYZ_get_derivative(self, *args)
2049 
2050  def get_name(self):
2051  r"""get_name(XYZ self) -> std::string"""
2052  return _IMP_core.XYZ_get_name(self)
2053 
2054  def clear_caches(self):
2055  r"""clear_caches(XYZ self)"""
2056  return _IMP_core.XYZ_clear_caches(self)
2057 
2058  def set_name(self, a0):
2059  r"""set_name(XYZ self, std::string a0)"""
2060  return _IMP_core.XYZ_set_name(self, a0)
2061 
2062  def set_check_level(self, a0):
2063  r"""set_check_level(XYZ self, IMP::CheckLevel a0)"""
2064  return _IMP_core.XYZ_set_check_level(self, a0)
2065 
2066  def add_to_derivative(self, *args):
2067  r"""
2068  add_to_derivative(XYZ self, int i, IMP::Float v, DerivativeAccumulator d)
2069  add_to_derivative(XYZ self, FloatKey a0, double a1, DerivativeAccumulator a2)
2070  """
2071  return _IMP_core.XYZ_add_to_derivative(self, *args)
2072 
2073  def set_is_optimized(self, a0, a1):
2074  r"""set_is_optimized(XYZ self, FloatKey a0, bool a1)"""
2075  return _IMP_core.XYZ_set_is_optimized(self, a0, a1)
2076 
2077  def get_is_optimized(self, a0):
2078  r"""get_is_optimized(XYZ self, FloatKey a0) -> bool"""
2079  return _IMP_core.XYZ_get_is_optimized(self, a0)
2080 
2081  def get_check_level(self):
2082  r"""get_check_level(XYZ self) -> IMP::CheckLevel"""
2083  return _IMP_core.XYZ_get_check_level(self)
2084 
2085  def __eq__(self, *args):
2086  r"""
2087  __eq__(XYZ self, XYZ o) -> bool
2088  __eq__(XYZ self, Particle d) -> bool
2089  """
2090  return _IMP_core.XYZ___eq__(self, *args)
2091 
2092  def __ne__(self, *args):
2093  r"""
2094  __ne__(XYZ self, XYZ o) -> bool
2095  __ne__(XYZ self, Particle d) -> bool
2096  """
2097  return _IMP_core.XYZ___ne__(self, *args)
2098 
2099  def __le__(self, *args):
2100  r"""
2101  __le__(XYZ self, XYZ o) -> bool
2102  __le__(XYZ self, Particle d) -> bool
2103  """
2104  return _IMP_core.XYZ___le__(self, *args)
2105 
2106  def __lt__(self, *args):
2107  r"""
2108  __lt__(XYZ self, XYZ o) -> bool
2109  __lt__(XYZ self, Particle d) -> bool
2110  """
2111  return _IMP_core.XYZ___lt__(self, *args)
2112 
2113  def __ge__(self, *args):
2114  r"""
2115  __ge__(XYZ self, XYZ o) -> bool
2116  __ge__(XYZ self, Particle d) -> bool
2117  """
2118  return _IMP_core.XYZ___ge__(self, *args)
2119 
2120  def __gt__(self, *args):
2121  r"""
2122  __gt__(XYZ self, XYZ o) -> bool
2123  __gt__(XYZ self, Particle d) -> bool
2124  """
2125  return _IMP_core.XYZ___gt__(self, *args)
2126 
2127  def __hash__(self):
2128  r"""__hash__(XYZ self) -> std::size_t"""
2129  return _IMP_core.XYZ___hash__(self)
2130 
2131  def __str__(self):
2132  r"""__str__(XYZ self) -> std::string"""
2133  return _IMP_core.XYZ___str__(self)
2134 
2135  def __repr__(self):
2136  r"""__repr__(XYZ self) -> std::string"""
2137  return _IMP_core.XYZ___repr__(self)
2138 
2139  def _get_as_binary(self):
2140  r"""_get_as_binary(XYZ self) -> PyObject *"""
2141  return _IMP_core.XYZ__get_as_binary(self)
2142 
2143  def _set_from_binary(self, p):
2144  r"""_set_from_binary(XYZ self, PyObject * p)"""
2145  return _IMP_core.XYZ__set_from_binary(self, p)
2146 
2147  def __getstate__(self):
2148  p = self._get_as_binary()
2149  if len(self.__dict__) > 1:
2150  d = self.__dict__.copy()
2151  del d['this']
2152  p = (d, p)
2153  return p
2154 
2155  def __setstate__(self, p):
2156  if not hasattr(self, 'this'):
2157  self.__init__()
2158  if isinstance(p, tuple):
2159  d, p = p
2160  self.__dict__.update(d)
2161  return self._set_from_binary(p)
2162 
2163  __swig_destroy__ = _IMP_core.delete_XYZ
2164 
2165 # Register XYZ in _IMP_core:
2166 _IMP_core.XYZ_swigregister(XYZ)
2167 
2168 def set_vector_geometry(d, v):
2169  r"""set_vector_geometry(XYZ d, Vector3D v)"""
2170  return _IMP_core.set_vector_geometry(d, v)
2171 
2172 def get_vector_geometry(d):
2173  r"""get_vector_geometry(XYZ d) -> Vector3D"""
2174  return _IMP_core.get_vector_geometry(d)
2175 
2176 def get_dihedral(a, b, c, d):
2177  r"""get_dihedral(XYZ a, XYZ b, XYZ c, XYZ d) -> double"""
2178  return _IMP_core.get_dihedral(a, b, c, d)
2179 class XYZR(XYZ):
2180  r"""Proxy of C++ IMP::core::XYZR class."""
2181 
2182  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2183 
2184  def __init__(self, *args):
2185  r"""
2186  __init__(XYZR self) -> XYZR
2187  __init__(XYZR self, Model m, ParticleIndex id) -> XYZR
2188  __init__(XYZR self, _ParticleAdaptor d) -> XYZR
2189  """
2190  _IMP_core.XYZR_swiginit(self, _IMP_core.new_XYZR(*args))
2191 
2192  def show(self, *args):
2193  r"""show(XYZR self, _ostream out=std::cout)"""
2194  return _IMP_core.XYZR_show(self, *args)
2195 
2196  @staticmethod
2197  def setup_particle(*args):
2198  r"""
2199  setup_particle(Model m, ParticleIndex pi) -> XYZR
2200  setup_particle(_ParticleAdaptor pa) -> XYZR
2201  setup_particle(Model m, ParticleIndex pi, IMP::Float radius) -> XYZR
2202  setup_particle(_ParticleAdaptor pa, IMP::Float radius) -> XYZR
2203  setup_particle(Model m, ParticleIndex pi, Sphere3D ball) -> XYZR
2204  setup_particle(_ParticleAdaptor pa, Sphere3D ball) -> XYZR
2205  """
2206  return _IMP_core.XYZR_setup_particle(*args)
2207 
2208  @staticmethod
2209  def get_is_setup(*args):
2210  r"""
2211  get_is_setup(_ParticleAdaptor p) -> bool
2212  get_is_setup(Model m, ParticleIndex pi) -> bool
2213  """
2214  return _IMP_core.XYZR_get_is_setup(*args)
2215 
2216  def get_radius(self):
2217  r"""get_radius(XYZR self) -> double"""
2218  return _IMP_core.XYZR_get_radius(self)
2219 
2220  def set_radius(self, r):
2221  r"""set_radius(XYZR self, double r)"""
2222  return _IMP_core.XYZR_set_radius(self, r)
2223 
2224  def get_sphere(self):
2225  r"""get_sphere(XYZR self) -> Sphere3D"""
2226  return _IMP_core.XYZR_get_sphere(self)
2227 
2228  def set_sphere(self, s):
2229  r"""set_sphere(XYZR self, Sphere3D s)"""
2230  return _IMP_core.XYZR_set_sphere(self, s)
2231 
2232  @staticmethod
2233  def get_radius_key():
2234  r"""get_radius_key() -> FloatKey"""
2235  return _IMP_core.XYZR_get_radius_key()
2236 
2237  def add_to_radius_derivative(self, v, d):
2238  r"""add_to_radius_derivative(XYZR self, double v, DerivativeAccumulator d)"""
2239  return _IMP_core.XYZR_add_to_radius_derivative(self, v, d)
2240 
2241  def add_attribute(self, *args):
2242  r"""
2243  add_attribute(XYZR self, FloatKey k, IMP::Float v, bool opt)
2244  add_attribute(XYZR self, FloatKey a0, IMP::Float a1)
2245  add_attribute(XYZR self, IntKey a0, IMP::Int a1)
2246  add_attribute(XYZR self, FloatsKey a0, IMP::Floats a1)
2247  add_attribute(XYZR self, IntsKey a0, IMP::Ints a1)
2248  add_attribute(XYZR self, StringKey a0, IMP::String a1)
2249  add_attribute(XYZR self, ParticleIndexKey a0, Particle a1)
2250  add_attribute(XYZR self, ObjectKey a0, Object a1)
2251  add_attribute(XYZR self, SparseFloatKey a0, IMP::Float a1)
2252  add_attribute(XYZR self, SparseIntKey a0, IMP::Int a1)
2253  add_attribute(XYZR self, SparseStringKey a0, IMP::String a1)
2254  add_attribute(XYZR self, SparseParticleIndexKey a0, ParticleIndex a1)
2255  """
2256  return _IMP_core.XYZR_add_attribute(self, *args)
2257 
2258  def get_value(self, *args):
2259  r"""
2260  get_value(XYZR self, FloatKey a0) -> IMP::Float
2261  get_value(XYZR self, IntKey a0) -> IMP::Int
2262  get_value(XYZR self, FloatsKey a0) -> IMP::Floats
2263  get_value(XYZR self, IntsKey a0) -> IMP::Ints
2264  get_value(XYZR self, StringKey a0) -> IMP::String
2265  get_value(XYZR self, ParticleIndexKey a0) -> Particle
2266  get_value(XYZR self, ObjectKey a0) -> Object
2267  get_value(XYZR self, SparseFloatKey a0) -> IMP::Float
2268  get_value(XYZR self, SparseIntKey a0) -> IMP::Int
2269  get_value(XYZR self, SparseStringKey a0) -> IMP::String
2270  get_value(XYZR self, SparseParticleIndexKey a0) -> ParticleIndex
2271  """
2272  return _IMP_core.XYZR_get_value(self, *args)
2273 
2274  def set_value(self, *args):
2275  r"""
2276  set_value(XYZR self, FloatKey a0, IMP::Float a1)
2277  set_value(XYZR self, IntKey a0, IMP::Int a1)
2278  set_value(XYZR self, FloatsKey a0, IMP::Floats a1)
2279  set_value(XYZR self, IntsKey a0, IMP::Ints a1)
2280  set_value(XYZR self, StringKey a0, IMP::String a1)
2281  set_value(XYZR self, ParticleIndexKey a0, Particle a1)
2282  set_value(XYZR self, ObjectKey a0, Object a1)
2283  set_value(XYZR self, SparseFloatKey a0, IMP::Float a1)
2284  set_value(XYZR self, SparseIntKey a0, IMP::Int a1)
2285  set_value(XYZR self, SparseStringKey a0, IMP::String a1)
2286  set_value(XYZR self, SparseParticleIndexKey a0, ParticleIndex a1)
2287  """
2288  return _IMP_core.XYZR_set_value(self, *args)
2289 
2290  def remove_attribute(self, *args):
2291  r"""
2292  remove_attribute(XYZR self, FloatKey a0)
2293  remove_attribute(XYZR self, IntKey a0)
2294  remove_attribute(XYZR self, FloatsKey a0)
2295  remove_attribute(XYZR self, IntsKey a0)
2296  remove_attribute(XYZR self, StringKey a0)
2297  remove_attribute(XYZR self, ParticleIndexKey a0)
2298  remove_attribute(XYZR self, ObjectKey a0)
2299  remove_attribute(XYZR self, SparseFloatKey a0)
2300  remove_attribute(XYZR self, SparseIntKey a0)
2301  remove_attribute(XYZR self, SparseStringKey a0)
2302  remove_attribute(XYZR self, SparseParticleIndexKey a0)
2303  """
2304  return _IMP_core.XYZR_remove_attribute(self, *args)
2305 
2306  def has_attribute(self, *args):
2307  r"""
2308  has_attribute(XYZR self, FloatKey a0) -> bool
2309  has_attribute(XYZR self, IntKey a0) -> bool
2310  has_attribute(XYZR self, FloatsKey a0) -> bool
2311  has_attribute(XYZR self, IntsKey a0) -> bool
2312  has_attribute(XYZR self, StringKey a0) -> bool
2313  has_attribute(XYZR self, ParticleIndexKey a0) -> bool
2314  has_attribute(XYZR self, ObjectKey a0) -> bool
2315  has_attribute(XYZR self, SparseFloatKey a0) -> bool
2316  has_attribute(XYZR self, SparseIntKey a0) -> bool
2317  has_attribute(XYZR self, SparseStringKey a0) -> bool
2318  has_attribute(XYZR self, SparseParticleIndexKey a0) -> bool
2319  """
2320  return _IMP_core.XYZR_has_attribute(self, *args)
2321 
2322  def get_derivative(self, a0):
2323  r"""get_derivative(XYZR self, FloatKey a0) -> double"""
2324  return _IMP_core.XYZR_get_derivative(self, a0)
2325 
2326  def get_name(self):
2327  r"""get_name(XYZR self) -> std::string"""
2328  return _IMP_core.XYZR_get_name(self)
2329 
2330  def clear_caches(self):
2331  r"""clear_caches(XYZR self)"""
2332  return _IMP_core.XYZR_clear_caches(self)
2333 
2334  def set_name(self, a0):
2335  r"""set_name(XYZR self, std::string a0)"""
2336  return _IMP_core.XYZR_set_name(self, a0)
2337 
2338  def set_check_level(self, a0):
2339  r"""set_check_level(XYZR self, IMP::CheckLevel a0)"""
2340  return _IMP_core.XYZR_set_check_level(self, a0)
2341 
2342  def add_to_derivative(self, a0, a1, a2):
2343  r"""add_to_derivative(XYZR self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2344  return _IMP_core.XYZR_add_to_derivative(self, a0, a1, a2)
2345 
2346  def set_is_optimized(self, a0, a1):
2347  r"""set_is_optimized(XYZR self, FloatKey a0, bool a1)"""
2348  return _IMP_core.XYZR_set_is_optimized(self, a0, a1)
2349 
2350  def get_is_optimized(self, a0):
2351  r"""get_is_optimized(XYZR self, FloatKey a0) -> bool"""
2352  return _IMP_core.XYZR_get_is_optimized(self, a0)
2353 
2354  def get_check_level(self):
2355  r"""get_check_level(XYZR self) -> IMP::CheckLevel"""
2356  return _IMP_core.XYZR_get_check_level(self)
2357 
2358  def __eq__(self, *args):
2359  r"""
2360  __eq__(XYZR self, XYZR o) -> bool
2361  __eq__(XYZR self, Particle d) -> bool
2362  """
2363  return _IMP_core.XYZR___eq__(self, *args)
2364 
2365  def __ne__(self, *args):
2366  r"""
2367  __ne__(XYZR self, XYZR o) -> bool
2368  __ne__(XYZR self, Particle d) -> bool
2369  """
2370  return _IMP_core.XYZR___ne__(self, *args)
2371 
2372  def __le__(self, *args):
2373  r"""
2374  __le__(XYZR self, XYZR o) -> bool
2375  __le__(XYZR self, Particle d) -> bool
2376  """
2377  return _IMP_core.XYZR___le__(self, *args)
2378 
2379  def __lt__(self, *args):
2380  r"""
2381  __lt__(XYZR self, XYZR o) -> bool
2382  __lt__(XYZR self, Particle d) -> bool
2383  """
2384  return _IMP_core.XYZR___lt__(self, *args)
2385 
2386  def __ge__(self, *args):
2387  r"""
2388  __ge__(XYZR self, XYZR o) -> bool
2389  __ge__(XYZR self, Particle d) -> bool
2390  """
2391  return _IMP_core.XYZR___ge__(self, *args)
2392 
2393  def __gt__(self, *args):
2394  r"""
2395  __gt__(XYZR self, XYZR o) -> bool
2396  __gt__(XYZR self, Particle d) -> bool
2397  """
2398  return _IMP_core.XYZR___gt__(self, *args)
2399 
2400  def __hash__(self):
2401  r"""__hash__(XYZR self) -> std::size_t"""
2402  return _IMP_core.XYZR___hash__(self)
2403 
2404  def __str__(self):
2405  r"""__str__(XYZR self) -> std::string"""
2406  return _IMP_core.XYZR___str__(self)
2407 
2408  def __repr__(self):
2409  r"""__repr__(XYZR self) -> std::string"""
2410  return _IMP_core.XYZR___repr__(self)
2411 
2412  def _get_as_binary(self):
2413  r"""_get_as_binary(XYZR self) -> PyObject *"""
2414  return _IMP_core.XYZR__get_as_binary(self)
2415 
2416  def _set_from_binary(self, p):
2417  r"""_set_from_binary(XYZR self, PyObject * p)"""
2418  return _IMP_core.XYZR__set_from_binary(self, p)
2419 
2420  def __getstate__(self):
2421  p = self._get_as_binary()
2422  if len(self.__dict__) > 1:
2423  d = self.__dict__.copy()
2424  del d['this']
2425  p = (d, p)
2426  return p
2427 
2428  def __setstate__(self, p):
2429  if not hasattr(self, 'this'):
2430  self.__init__()
2431  if isinstance(p, tuple):
2432  d, p = p
2433  self.__dict__.update(d)
2434  return self._set_from_binary(p)
2435 
2436  __swig_destroy__ = _IMP_core.delete_XYZR
2437 
2438 # Register XYZR in _IMP_core:
2439 _IMP_core.XYZR_swigregister(XYZR)
2440 
2441 def set_enclosing_sphere(b, v, slack=0):
2442  r"""set_enclosing_sphere(XYZR b, IMP::core::XYZs const & v, double slack=0)"""
2443  return _IMP_core.set_enclosing_sphere(b, v, slack)
2444 
2445 def set_enclosing_radius(b, v):
2446  r"""set_enclosing_radius(XYZR b, IMP::core::XYZs const & v)"""
2447  return _IMP_core.set_enclosing_radius(b, v)
2448 
2449 def get_enclosing_sphere(v):
2450  r"""get_enclosing_sphere(IMP::core::XYZs const & v) -> Sphere3D"""
2451  return _IMP_core.get_enclosing_sphere(v)
2452 
2453 def create_xyzr_particles(m, num, radius, box_side=10):
2454  r"""create_xyzr_particles(Model m, unsigned int num, IMP::Float radius, IMP::Float box_side=10) -> IMP::core::XYZRs"""
2455  return _IMP_core.create_xyzr_particles(m, num, radius, box_side)
2456 class XYZRGeometry(IMP.display.SingletonGeometry):
2457  r"""Proxy of C++ IMP::core::XYZRGeometry class."""
2458 
2459  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2460 
2461  def __init__(self, *args):
2462  r"""
2463  __init__(XYZRGeometry self, Particle p) -> XYZRGeometry
2464  __init__(XYZRGeometry self, XYZR d) -> XYZRGeometry
2465  """
2466  _IMP_core.XYZRGeometry_swiginit(self, _IMP_core.new_XYZRGeometry(*args))
2467 
2468  def get_version_info(self):
2469  r"""get_version_info(XYZRGeometry self) -> VersionInfo"""
2470  return _IMP_core.XYZRGeometry_get_version_info(self)
2471  __swig_destroy__ = _IMP_core.delete_XYZRGeometry
2472 
2473  def __str__(self):
2474  r"""__str__(XYZRGeometry self) -> std::string"""
2475  return _IMP_core.XYZRGeometry___str__(self)
2476 
2477  def __repr__(self):
2478  r"""__repr__(XYZRGeometry self) -> std::string"""
2479  return _IMP_core.XYZRGeometry___repr__(self)
2480 
2481  @staticmethod
2482  def get_from(o):
2483  return _object_cast_to_XYZRGeometry(o)
2484 
2485 
2486 # Register XYZRGeometry in _IMP_core:
2487 _IMP_core.XYZRGeometry_swigregister(XYZRGeometry)
2488 class XYZRsGeometry(IMP.display.SingletonsGeometry):
2489  r"""Proxy of C++ IMP::core::XYZRsGeometry class."""
2490 
2491  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2492 
2493  def __init__(self, sc):
2494  r"""__init__(XYZRsGeometry self, SingletonContainer sc) -> XYZRsGeometry"""
2495  _IMP_core.XYZRsGeometry_swiginit(self, _IMP_core.new_XYZRsGeometry(sc))
2496 
2497  def get_version_info(self):
2498  r"""get_version_info(XYZRsGeometry self) -> VersionInfo"""
2499  return _IMP_core.XYZRsGeometry_get_version_info(self)
2500  __swig_destroy__ = _IMP_core.delete_XYZRsGeometry
2501 
2502  def __str__(self):
2503  r"""__str__(XYZRsGeometry self) -> std::string"""
2504  return _IMP_core.XYZRsGeometry___str__(self)
2505 
2506  def __repr__(self):
2507  r"""__repr__(XYZRsGeometry self) -> std::string"""
2508  return _IMP_core.XYZRsGeometry___repr__(self)
2509 
2510  @staticmethod
2511  def get_from(o):
2512  return _object_cast_to_XYZRsGeometry(o)
2513 
2514 
2515 # Register XYZRsGeometry in _IMP_core:
2516 _IMP_core.XYZRsGeometry_swigregister(XYZRsGeometry)
2517 class XYZDerivativeGeometry(IMP.display.SingletonGeometry):
2518  r"""Proxy of C++ IMP::core::XYZDerivativeGeometry class."""
2519 
2520  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2521 
2522  def __init__(self, *args):
2523  r"""
2524  __init__(XYZDerivativeGeometry self, Particle p) -> XYZDerivativeGeometry
2525  __init__(XYZDerivativeGeometry self, XYZ d) -> XYZDerivativeGeometry
2526  """
2527  _IMP_core.XYZDerivativeGeometry_swiginit(self, _IMP_core.new_XYZDerivativeGeometry(*args))
2528 
2529  def get_version_info(self):
2530  r"""get_version_info(XYZDerivativeGeometry self) -> VersionInfo"""
2531  return _IMP_core.XYZDerivativeGeometry_get_version_info(self)
2532  __swig_destroy__ = _IMP_core.delete_XYZDerivativeGeometry
2533 
2534  def __str__(self):
2535  r"""__str__(XYZDerivativeGeometry self) -> std::string"""
2536  return _IMP_core.XYZDerivativeGeometry___str__(self)
2537 
2538  def __repr__(self):
2539  r"""__repr__(XYZDerivativeGeometry self) -> std::string"""
2540  return _IMP_core.XYZDerivativeGeometry___repr__(self)
2541 
2542  @staticmethod
2543  def get_from(o):
2544  return _object_cast_to_XYZDerivativeGeometry(o)
2545 
2546 
2547 # Register XYZDerivativeGeometry in _IMP_core:
2548 _IMP_core.XYZDerivativeGeometry_swigregister(XYZDerivativeGeometry)
2549 class XYZDerivativesGeometry(IMP.display.SingletonsGeometry):
2550  r"""Proxy of C++ IMP::core::XYZDerivativesGeometry class."""
2551 
2552  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2553 
2554  def __init__(self, sc):
2555  r"""__init__(XYZDerivativesGeometry self, SingletonContainer sc) -> XYZDerivativesGeometry"""
2556  _IMP_core.XYZDerivativesGeometry_swiginit(self, _IMP_core.new_XYZDerivativesGeometry(sc))
2557 
2558  def get_version_info(self):
2559  r"""get_version_info(XYZDerivativesGeometry self) -> VersionInfo"""
2560  return _IMP_core.XYZDerivativesGeometry_get_version_info(self)
2561  __swig_destroy__ = _IMP_core.delete_XYZDerivativesGeometry
2562 
2563  def __str__(self):
2564  r"""__str__(XYZDerivativesGeometry self) -> std::string"""
2565  return _IMP_core.XYZDerivativesGeometry___str__(self)
2566 
2567  def __repr__(self):
2568  r"""__repr__(XYZDerivativesGeometry self) -> std::string"""
2569  return _IMP_core.XYZDerivativesGeometry___repr__(self)
2570 
2571  @staticmethod
2572  def get_from(o):
2573  return _object_cast_to_XYZDerivativesGeometry(o)
2574 
2575 
2576 # Register XYZDerivativesGeometry in _IMP_core:
2577 _IMP_core.XYZDerivativesGeometry_swigregister(XYZDerivativesGeometry)
2578 class EdgePairGeometry(IMP.display.PairGeometry):
2579  r"""Proxy of C++ IMP::core::EdgePairGeometry class."""
2580 
2581  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2582 
2583  def __init__(self, pp):
2584  r"""__init__(EdgePairGeometry self, IMP::ParticlePair const & pp) -> EdgePairGeometry"""
2585  _IMP_core.EdgePairGeometry_swiginit(self, _IMP_core.new_EdgePairGeometry(pp))
2586 
2587  def get_version_info(self):
2588  r"""get_version_info(EdgePairGeometry self) -> VersionInfo"""
2589  return _IMP_core.EdgePairGeometry_get_version_info(self)
2590  __swig_destroy__ = _IMP_core.delete_EdgePairGeometry
2591 
2592  def __str__(self):
2593  r"""__str__(EdgePairGeometry self) -> std::string"""
2594  return _IMP_core.EdgePairGeometry___str__(self)
2595 
2596  def __repr__(self):
2597  r"""__repr__(EdgePairGeometry self) -> std::string"""
2598  return _IMP_core.EdgePairGeometry___repr__(self)
2599 
2600  @staticmethod
2601  def get_from(o):
2602  return _object_cast_to_EdgePairGeometry(o)
2603 
2604 
2605 # Register EdgePairGeometry in _IMP_core:
2606 _IMP_core.EdgePairGeometry_swigregister(EdgePairGeometry)
2607 class EdgePairsGeometry(IMP.display.PairsGeometry):
2608  r"""Proxy of C++ IMP::core::EdgePairsGeometry class."""
2609 
2610  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2611 
2612  def __init__(self, sc):
2613  r"""__init__(EdgePairsGeometry self, PairContainer sc) -> EdgePairsGeometry"""
2614  _IMP_core.EdgePairsGeometry_swiginit(self, _IMP_core.new_EdgePairsGeometry(sc))
2615 
2616  def get_version_info(self):
2617  r"""get_version_info(EdgePairsGeometry self) -> VersionInfo"""
2618  return _IMP_core.EdgePairsGeometry_get_version_info(self)
2619  __swig_destroy__ = _IMP_core.delete_EdgePairsGeometry
2620 
2621  def __str__(self):
2622  r"""__str__(EdgePairsGeometry self) -> std::string"""
2623  return _IMP_core.EdgePairsGeometry___str__(self)
2624 
2625  def __repr__(self):
2626  r"""__repr__(EdgePairsGeometry self) -> std::string"""
2627  return _IMP_core.EdgePairsGeometry___repr__(self)
2628 
2629  @staticmethod
2630  def get_from(o):
2631  return _object_cast_to_EdgePairsGeometry(o)
2632 
2633 
2634 # Register EdgePairsGeometry in _IMP_core:
2635 _IMP_core.EdgePairsGeometry_swigregister(EdgePairsGeometry)
2636 class Direction(IMP.Decorator):
2637  r"""Proxy of C++ IMP::core::Direction class."""
2638 
2639  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2640 
2641  @staticmethod
2642  def do_setup_particle(m, pi, v):
2643  r"""do_setup_particle(Model m, ParticleIndex pi, Vector3D v)"""
2644  return _IMP_core.Direction_do_setup_particle(m, pi, v)
2645 
2646  def __init__(self, *args):
2647  r"""
2648  __init__(Direction self) -> Direction
2649  __init__(Direction self, Model m, ParticleIndex id) -> Direction
2650  __init__(Direction self, _ParticleAdaptor d) -> Direction
2651  """
2652  _IMP_core.Direction_swiginit(self, _IMP_core.new_Direction(*args))
2653 
2654  def show(self, *args):
2655  r"""show(Direction self, _ostream out=std::cout)"""
2656  return _IMP_core.Direction_show(self, *args)
2657 
2658  @staticmethod
2659  def setup_particle(*args):
2660  r"""
2661  setup_particle(Model m, ParticleIndex pi, Vector3D v) -> Direction
2662  setup_particle(_ParticleAdaptor pa, Vector3D v) -> Direction
2663  """
2664  return _IMP_core.Direction_setup_particle(*args)
2665 
2666  @staticmethod
2667  def get_is_setup(*args):
2668  r"""
2669  get_is_setup(_ParticleAdaptor p) -> bool
2670  get_is_setup(Model m, ParticleIndex pi) -> bool
2671  """
2672  return _IMP_core.Direction_get_is_setup(*args)
2673 
2674  @staticmethod
2675  def get_direction_key(i):
2676  r"""get_direction_key(unsigned int i) -> FloatKey"""
2677  return _IMP_core.Direction_get_direction_key(i)
2678 
2679  def get_direction_derivative(self, i):
2680  r"""get_direction_derivative(Direction self, int i) -> IMP::Float"""
2681  return _IMP_core.Direction_get_direction_derivative(self, i)
2682 
2683  def get_direction_derivatives(self):
2684  r"""get_direction_derivatives(Direction self) -> Vector3D"""
2685  return _IMP_core.Direction_get_direction_derivatives(self)
2686 
2687  def add_to_direction_derivative(self, i, v, d):
2688  r"""add_to_direction_derivative(Direction self, int i, IMP::Float v, DerivativeAccumulator d)"""
2689  return _IMP_core.Direction_add_to_direction_derivative(self, i, v, d)
2690 
2691  def add_to_direction_derivatives(self, v, d):
2692  r"""add_to_direction_derivatives(Direction self, Vector3D v, DerivativeAccumulator d)"""
2693  return _IMP_core.Direction_add_to_direction_derivatives(self, v, d)
2694 
2695  def get_direction_is_optimized(self):
2696  r"""get_direction_is_optimized(Direction self) -> bool"""
2697  return _IMP_core.Direction_get_direction_is_optimized(self)
2698 
2699  def set_direction_is_optimized(self, tf):
2700  r"""set_direction_is_optimized(Direction self, bool tf)"""
2701  return _IMP_core.Direction_set_direction_is_optimized(self, tf)
2702 
2703  def get_direction(self):
2704  r"""get_direction(Direction self) -> Vector3D"""
2705  return _IMP_core.Direction_get_direction(self)
2706 
2707  def set_direction(self, v):
2708  r"""set_direction(Direction self, Vector3D v)"""
2709  return _IMP_core.Direction_set_direction(self, v)
2710 
2711  def reflect(self):
2712  r"""reflect(Direction self)"""
2713  return _IMP_core.Direction_reflect(self)
2714 
2715  def add_attribute(self, *args):
2716  r"""
2717  add_attribute(Direction self, FloatKey k, IMP::Float v, bool opt)
2718  add_attribute(Direction self, FloatKey a0, IMP::Float a1)
2719  add_attribute(Direction self, IntKey a0, IMP::Int a1)
2720  add_attribute(Direction self, FloatsKey a0, IMP::Floats a1)
2721  add_attribute(Direction self, IntsKey a0, IMP::Ints a1)
2722  add_attribute(Direction self, StringKey a0, IMP::String a1)
2723  add_attribute(Direction self, ParticleIndexKey a0, Particle a1)
2724  add_attribute(Direction self, ObjectKey a0, Object a1)
2725  add_attribute(Direction self, SparseFloatKey a0, IMP::Float a1)
2726  add_attribute(Direction self, SparseIntKey a0, IMP::Int a1)
2727  add_attribute(Direction self, SparseStringKey a0, IMP::String a1)
2728  add_attribute(Direction self, SparseParticleIndexKey a0, ParticleIndex a1)
2729  """
2730  return _IMP_core.Direction_add_attribute(self, *args)
2731 
2732  def get_value(self, *args):
2733  r"""
2734  get_value(Direction self, FloatKey a0) -> IMP::Float
2735  get_value(Direction self, IntKey a0) -> IMP::Int
2736  get_value(Direction self, FloatsKey a0) -> IMP::Floats
2737  get_value(Direction self, IntsKey a0) -> IMP::Ints
2738  get_value(Direction self, StringKey a0) -> IMP::String
2739  get_value(Direction self, ParticleIndexKey a0) -> Particle
2740  get_value(Direction self, ObjectKey a0) -> Object
2741  get_value(Direction self, SparseFloatKey a0) -> IMP::Float
2742  get_value(Direction self, SparseIntKey a0) -> IMP::Int
2743  get_value(Direction self, SparseStringKey a0) -> IMP::String
2744  get_value(Direction self, SparseParticleIndexKey a0) -> ParticleIndex
2745  """
2746  return _IMP_core.Direction_get_value(self, *args)
2747 
2748  def set_value(self, *args):
2749  r"""
2750  set_value(Direction self, FloatKey a0, IMP::Float a1)
2751  set_value(Direction self, IntKey a0, IMP::Int a1)
2752  set_value(Direction self, FloatsKey a0, IMP::Floats a1)
2753  set_value(Direction self, IntsKey a0, IMP::Ints a1)
2754  set_value(Direction self, StringKey a0, IMP::String a1)
2755  set_value(Direction self, ParticleIndexKey a0, Particle a1)
2756  set_value(Direction self, ObjectKey a0, Object a1)
2757  set_value(Direction self, SparseFloatKey a0, IMP::Float a1)
2758  set_value(Direction self, SparseIntKey a0, IMP::Int a1)
2759  set_value(Direction self, SparseStringKey a0, IMP::String a1)
2760  set_value(Direction self, SparseParticleIndexKey a0, ParticleIndex a1)
2761  """
2762  return _IMP_core.Direction_set_value(self, *args)
2763 
2764  def remove_attribute(self, *args):
2765  r"""
2766  remove_attribute(Direction self, FloatKey a0)
2767  remove_attribute(Direction self, IntKey a0)
2768  remove_attribute(Direction self, FloatsKey a0)
2769  remove_attribute(Direction self, IntsKey a0)
2770  remove_attribute(Direction self, StringKey a0)
2771  remove_attribute(Direction self, ParticleIndexKey a0)
2772  remove_attribute(Direction self, ObjectKey a0)
2773  remove_attribute(Direction self, SparseFloatKey a0)
2774  remove_attribute(Direction self, SparseIntKey a0)
2775  remove_attribute(Direction self, SparseStringKey a0)
2776  remove_attribute(Direction self, SparseParticleIndexKey a0)
2777  """
2778  return _IMP_core.Direction_remove_attribute(self, *args)
2779 
2780  def has_attribute(self, *args):
2781  r"""
2782  has_attribute(Direction self, FloatKey a0) -> bool
2783  has_attribute(Direction self, IntKey a0) -> bool
2784  has_attribute(Direction self, FloatsKey a0) -> bool
2785  has_attribute(Direction self, IntsKey a0) -> bool
2786  has_attribute(Direction self, StringKey a0) -> bool
2787  has_attribute(Direction self, ParticleIndexKey a0) -> bool
2788  has_attribute(Direction self, ObjectKey a0) -> bool
2789  has_attribute(Direction self, SparseFloatKey a0) -> bool
2790  has_attribute(Direction self, SparseIntKey a0) -> bool
2791  has_attribute(Direction self, SparseStringKey a0) -> bool
2792  has_attribute(Direction self, SparseParticleIndexKey a0) -> bool
2793  """
2794  return _IMP_core.Direction_has_attribute(self, *args)
2795 
2796  def get_derivative(self, a0):
2797  r"""get_derivative(Direction self, FloatKey a0) -> double"""
2798  return _IMP_core.Direction_get_derivative(self, a0)
2799 
2800  def get_name(self):
2801  r"""get_name(Direction self) -> std::string"""
2802  return _IMP_core.Direction_get_name(self)
2803 
2804  def clear_caches(self):
2805  r"""clear_caches(Direction self)"""
2806  return _IMP_core.Direction_clear_caches(self)
2807 
2808  def set_name(self, a0):
2809  r"""set_name(Direction self, std::string a0)"""
2810  return _IMP_core.Direction_set_name(self, a0)
2811 
2812  def set_check_level(self, a0):
2813  r"""set_check_level(Direction self, IMP::CheckLevel a0)"""
2814  return _IMP_core.Direction_set_check_level(self, a0)
2815 
2816  def add_to_derivative(self, a0, a1, a2):
2817  r"""add_to_derivative(Direction self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2818  return _IMP_core.Direction_add_to_derivative(self, a0, a1, a2)
2819 
2820  def set_is_optimized(self, a0, a1):
2821  r"""set_is_optimized(Direction self, FloatKey a0, bool a1)"""
2822  return _IMP_core.Direction_set_is_optimized(self, a0, a1)
2823 
2824  def get_is_optimized(self, a0):
2825  r"""get_is_optimized(Direction self, FloatKey a0) -> bool"""
2826  return _IMP_core.Direction_get_is_optimized(self, a0)
2827 
2828  def get_check_level(self):
2829  r"""get_check_level(Direction self) -> IMP::CheckLevel"""
2830  return _IMP_core.Direction_get_check_level(self)
2831 
2832  def __eq__(self, *args):
2833  r"""
2834  __eq__(Direction self, Direction o) -> bool
2835  __eq__(Direction self, Particle d) -> bool
2836  """
2837  return _IMP_core.Direction___eq__(self, *args)
2838 
2839  def __ne__(self, *args):
2840  r"""
2841  __ne__(Direction self, Direction o) -> bool
2842  __ne__(Direction self, Particle d) -> bool
2843  """
2844  return _IMP_core.Direction___ne__(self, *args)
2845 
2846  def __le__(self, *args):
2847  r"""
2848  __le__(Direction self, Direction o) -> bool
2849  __le__(Direction self, Particle d) -> bool
2850  """
2851  return _IMP_core.Direction___le__(self, *args)
2852 
2853  def __lt__(self, *args):
2854  r"""
2855  __lt__(Direction self, Direction o) -> bool
2856  __lt__(Direction self, Particle d) -> bool
2857  """
2858  return _IMP_core.Direction___lt__(self, *args)
2859 
2860  def __ge__(self, *args):
2861  r"""
2862  __ge__(Direction self, Direction o) -> bool
2863  __ge__(Direction self, Particle d) -> bool
2864  """
2865  return _IMP_core.Direction___ge__(self, *args)
2866 
2867  def __gt__(self, *args):
2868  r"""
2869  __gt__(Direction self, Direction o) -> bool
2870  __gt__(Direction self, Particle d) -> bool
2871  """
2872  return _IMP_core.Direction___gt__(self, *args)
2873 
2874  def __hash__(self):
2875  r"""__hash__(Direction self) -> std::size_t"""
2876  return _IMP_core.Direction___hash__(self)
2877 
2878  def __str__(self):
2879  r"""__str__(Direction self) -> std::string"""
2880  return _IMP_core.Direction___str__(self)
2881 
2882  def __repr__(self):
2883  r"""__repr__(Direction self) -> std::string"""
2884  return _IMP_core.Direction___repr__(self)
2885 
2886  def _get_as_binary(self):
2887  r"""_get_as_binary(Direction self) -> PyObject *"""
2888  return _IMP_core.Direction__get_as_binary(self)
2889 
2890  def _set_from_binary(self, p):
2891  r"""_set_from_binary(Direction self, PyObject * p)"""
2892  return _IMP_core.Direction__set_from_binary(self, p)
2893 
2894  def __getstate__(self):
2895  p = self._get_as_binary()
2896  if len(self.__dict__) > 1:
2897  d = self.__dict__.copy()
2898  del d['this']
2899  p = (d, p)
2900  return p
2901 
2902  def __setstate__(self, p):
2903  if not hasattr(self, 'this'):
2904  self.__init__()
2905  if isinstance(p, tuple):
2906  d, p = p
2907  self.__dict__.update(d)
2908  return self._set_from_binary(p)
2909 
2910  __swig_destroy__ = _IMP_core.delete_Direction
2911 
2912 # Register Direction in _IMP_core:
2913 _IMP_core.Direction_swigregister(Direction)
2914 
2915 def get_angle(a, b):
2916  r"""get_angle(Direction a, Direction b) -> double"""
2917  return _IMP_core.get_angle(a, b)
2918 class DirectionAngle(IMP.Decorator):
2919  r"""Proxy of C++ IMP::core::DirectionAngle class."""
2920 
2921  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2922 
2923  def __init__(self, *args):
2924  r"""
2925  __init__(DirectionAngle self) -> DirectionAngle
2926  __init__(DirectionAngle self, Model m, ParticleIndex id) -> DirectionAngle
2927  __init__(DirectionAngle self, _ParticleAdaptor d) -> DirectionAngle
2928  """
2929  _IMP_core.DirectionAngle_swiginit(self, _IMP_core.new_DirectionAngle(*args))
2930 
2931  def show(self, *args):
2932  r"""show(DirectionAngle self, _ostream out=std::cout)"""
2933  return _IMP_core.DirectionAngle_show(self, *args)
2934 
2935  @staticmethod
2936  def setup_particle(*args):
2937  r"""
2938  setup_particle(Model m, ParticleIndex pi, IMP::ParticleIndexPair ds) -> DirectionAngle
2939  setup_particle(_ParticleAdaptor pa, IMP::ParticleIndexPair ds) -> DirectionAngle
2940  setup_particle(Model m, ParticleIndex pi, _ParticleIndexAdaptor d0, _ParticleIndexAdaptor d1) -> DirectionAngle
2941  setup_particle(_ParticleAdaptor pa, _ParticleIndexAdaptor d0, _ParticleIndexAdaptor d1) -> DirectionAngle
2942  """
2943  return _IMP_core.DirectionAngle_setup_particle(*args)
2944 
2945  @staticmethod
2946  def get_is_setup(*args):
2947  r"""
2948  get_is_setup(_ParticleAdaptor p) -> bool
2949  get_is_setup(Model m, ParticleIndex pi) -> bool
2950  """
2951  return _IMP_core.DirectionAngle_get_is_setup(*args)
2952 
2953  @staticmethod
2954  def get_angle_key():
2955  r"""get_angle_key() -> FloatKey"""
2956  return _IMP_core.DirectionAngle_get_angle_key()
2957 
2958  @staticmethod
2959  def get_particle_key(i):
2960  r"""get_particle_key(unsigned int i) -> ParticleIndexKey"""
2961  return _IMP_core.DirectionAngle_get_particle_key(i)
2962 
2963  def get_particle(self, *args):
2964  r"""
2965  get_particle(DirectionAngle self, unsigned int i) -> Particle
2966  get_particle(DirectionAngle self) -> Particle
2967  """
2968  return _IMP_core.DirectionAngle_get_particle(self, *args)
2969 
2970  def get_particle_index(self, *args):
2971  r"""
2972  get_particle_index(DirectionAngle self, unsigned int i) -> ParticleIndex
2973  get_particle_index(DirectionAngle self) -> ParticleIndex
2974  """
2975  return _IMP_core.DirectionAngle_get_particle_index(self, *args)
2976 
2977  def get_angle(self):
2978  r"""get_angle(DirectionAngle self) -> IMP::Float"""
2979  return _IMP_core.DirectionAngle_get_angle(self)
2980 
2981  def get_angle_derivative(self):
2982  r"""get_angle_derivative(DirectionAngle self) -> IMP::Float"""
2983  return _IMP_core.DirectionAngle_get_angle_derivative(self)
2984 
2985  def add_to_angle_derivative(self, v, d):
2986  r"""add_to_angle_derivative(DirectionAngle self, IMP::Float v, DerivativeAccumulator d)"""
2987  return _IMP_core.DirectionAngle_add_to_angle_derivative(self, v, d)
2988 
2989  def add_attribute(self, *args):
2990  r"""
2991  add_attribute(DirectionAngle self, FloatKey k, IMP::Float v, bool opt)
2992  add_attribute(DirectionAngle self, FloatKey a0, IMP::Float a1)
2993  add_attribute(DirectionAngle self, IntKey a0, IMP::Int a1)
2994  add_attribute(DirectionAngle self, FloatsKey a0, IMP::Floats a1)
2995  add_attribute(DirectionAngle self, IntsKey a0, IMP::Ints a1)
2996  add_attribute(DirectionAngle self, StringKey a0, IMP::String a1)
2997  add_attribute(DirectionAngle self, ParticleIndexKey a0, Particle a1)
2998  add_attribute(DirectionAngle self, ObjectKey a0, Object a1)
2999  add_attribute(DirectionAngle self, SparseFloatKey a0, IMP::Float a1)
3000  add_attribute(DirectionAngle self, SparseIntKey a0, IMP::Int a1)
3001  add_attribute(DirectionAngle self, SparseStringKey a0, IMP::String a1)
3002  add_attribute(DirectionAngle self, SparseParticleIndexKey a0, ParticleIndex a1)
3003  """
3004  return _IMP_core.DirectionAngle_add_attribute(self, *args)
3005 
3006  def get_value(self, *args):
3007  r"""
3008  get_value(DirectionAngle self, FloatKey a0) -> IMP::Float
3009  get_value(DirectionAngle self, IntKey a0) -> IMP::Int
3010  get_value(DirectionAngle self, FloatsKey a0) -> IMP::Floats
3011  get_value(DirectionAngle self, IntsKey a0) -> IMP::Ints
3012  get_value(DirectionAngle self, StringKey a0) -> IMP::String
3013  get_value(DirectionAngle self, ParticleIndexKey a0) -> Particle
3014  get_value(DirectionAngle self, ObjectKey a0) -> Object
3015  get_value(DirectionAngle self, SparseFloatKey a0) -> IMP::Float
3016  get_value(DirectionAngle self, SparseIntKey a0) -> IMP::Int
3017  get_value(DirectionAngle self, SparseStringKey a0) -> IMP::String
3018  get_value(DirectionAngle self, SparseParticleIndexKey a0) -> ParticleIndex
3019  """
3020  return _IMP_core.DirectionAngle_get_value(self, *args)
3021 
3022  def set_value(self, *args):
3023  r"""
3024  set_value(DirectionAngle self, FloatKey a0, IMP::Float a1)
3025  set_value(DirectionAngle self, IntKey a0, IMP::Int a1)
3026  set_value(DirectionAngle self, FloatsKey a0, IMP::Floats a1)
3027  set_value(DirectionAngle self, IntsKey a0, IMP::Ints a1)
3028  set_value(DirectionAngle self, StringKey a0, IMP::String a1)
3029  set_value(DirectionAngle self, ParticleIndexKey a0, Particle a1)
3030  set_value(DirectionAngle self, ObjectKey a0, Object a1)
3031  set_value(DirectionAngle self, SparseFloatKey a0, IMP::Float a1)
3032  set_value(DirectionAngle self, SparseIntKey a0, IMP::Int a1)
3033  set_value(DirectionAngle self, SparseStringKey a0, IMP::String a1)
3034  set_value(DirectionAngle self, SparseParticleIndexKey a0, ParticleIndex a1)
3035  """
3036  return _IMP_core.DirectionAngle_set_value(self, *args)
3037 
3038  def remove_attribute(self, *args):
3039  r"""
3040  remove_attribute(DirectionAngle self, FloatKey a0)
3041  remove_attribute(DirectionAngle self, IntKey a0)
3042  remove_attribute(DirectionAngle self, FloatsKey a0)
3043  remove_attribute(DirectionAngle self, IntsKey a0)
3044  remove_attribute(DirectionAngle self, StringKey a0)
3045  remove_attribute(DirectionAngle self, ParticleIndexKey a0)
3046  remove_attribute(DirectionAngle self, ObjectKey a0)
3047  remove_attribute(DirectionAngle self, SparseFloatKey a0)
3048  remove_attribute(DirectionAngle self, SparseIntKey a0)
3049  remove_attribute(DirectionAngle self, SparseStringKey a0)
3050  remove_attribute(DirectionAngle self, SparseParticleIndexKey a0)
3051  """
3052  return _IMP_core.DirectionAngle_remove_attribute(self, *args)
3053 
3054  def has_attribute(self, *args):
3055  r"""
3056  has_attribute(DirectionAngle self, FloatKey a0) -> bool
3057  has_attribute(DirectionAngle self, IntKey a0) -> bool
3058  has_attribute(DirectionAngle self, FloatsKey a0) -> bool
3059  has_attribute(DirectionAngle self, IntsKey a0) -> bool
3060  has_attribute(DirectionAngle self, StringKey a0) -> bool
3061  has_attribute(DirectionAngle self, ParticleIndexKey a0) -> bool
3062  has_attribute(DirectionAngle self, ObjectKey a0) -> bool
3063  has_attribute(DirectionAngle self, SparseFloatKey a0) -> bool
3064  has_attribute(DirectionAngle self, SparseIntKey a0) -> bool
3065  has_attribute(DirectionAngle self, SparseStringKey a0) -> bool
3066  has_attribute(DirectionAngle self, SparseParticleIndexKey a0) -> bool
3067  """
3068  return _IMP_core.DirectionAngle_has_attribute(self, *args)
3069 
3070  def get_derivative(self, a0):
3071  r"""get_derivative(DirectionAngle self, FloatKey a0) -> double"""
3072  return _IMP_core.DirectionAngle_get_derivative(self, a0)
3073 
3074  def get_name(self):
3075  r"""get_name(DirectionAngle self) -> std::string"""
3076  return _IMP_core.DirectionAngle_get_name(self)
3077 
3078  def clear_caches(self):
3079  r"""clear_caches(DirectionAngle self)"""
3080  return _IMP_core.DirectionAngle_clear_caches(self)
3081 
3082  def set_name(self, a0):
3083  r"""set_name(DirectionAngle self, std::string a0)"""
3084  return _IMP_core.DirectionAngle_set_name(self, a0)
3085 
3086  def set_check_level(self, a0):
3087  r"""set_check_level(DirectionAngle self, IMP::CheckLevel a0)"""
3088  return _IMP_core.DirectionAngle_set_check_level(self, a0)
3089 
3090  def add_to_derivative(self, a0, a1, a2):
3091  r"""add_to_derivative(DirectionAngle self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3092  return _IMP_core.DirectionAngle_add_to_derivative(self, a0, a1, a2)
3093 
3094  def set_is_optimized(self, a0, a1):
3095  r"""set_is_optimized(DirectionAngle self, FloatKey a0, bool a1)"""
3096  return _IMP_core.DirectionAngle_set_is_optimized(self, a0, a1)
3097 
3098  def get_is_optimized(self, a0):
3099  r"""get_is_optimized(DirectionAngle self, FloatKey a0) -> bool"""
3100  return _IMP_core.DirectionAngle_get_is_optimized(self, a0)
3101 
3102  def get_check_level(self):
3103  r"""get_check_level(DirectionAngle self) -> IMP::CheckLevel"""
3104  return _IMP_core.DirectionAngle_get_check_level(self)
3105 
3106  def __eq__(self, *args):
3107  r"""
3108  __eq__(DirectionAngle self, DirectionAngle o) -> bool
3109  __eq__(DirectionAngle self, Particle d) -> bool
3110  """
3111  return _IMP_core.DirectionAngle___eq__(self, *args)
3112 
3113  def __ne__(self, *args):
3114  r"""
3115  __ne__(DirectionAngle self, DirectionAngle o) -> bool
3116  __ne__(DirectionAngle self, Particle d) -> bool
3117  """
3118  return _IMP_core.DirectionAngle___ne__(self, *args)
3119 
3120  def __le__(self, *args):
3121  r"""
3122  __le__(DirectionAngle self, DirectionAngle o) -> bool
3123  __le__(DirectionAngle self, Particle d) -> bool
3124  """
3125  return _IMP_core.DirectionAngle___le__(self, *args)
3126 
3127  def __lt__(self, *args):
3128  r"""
3129  __lt__(DirectionAngle self, DirectionAngle o) -> bool
3130  __lt__(DirectionAngle self, Particle d) -> bool
3131  """
3132  return _IMP_core.DirectionAngle___lt__(self, *args)
3133 
3134  def __ge__(self, *args):
3135  r"""
3136  __ge__(DirectionAngle self, DirectionAngle o) -> bool
3137  __ge__(DirectionAngle self, Particle d) -> bool
3138  """
3139  return _IMP_core.DirectionAngle___ge__(self, *args)
3140 
3141  def __gt__(self, *args):
3142  r"""
3143  __gt__(DirectionAngle self, DirectionAngle o) -> bool
3144  __gt__(DirectionAngle self, Particle d) -> bool
3145  """
3146  return _IMP_core.DirectionAngle___gt__(self, *args)
3147 
3148  def __hash__(self):
3149  r"""__hash__(DirectionAngle self) -> std::size_t"""
3150  return _IMP_core.DirectionAngle___hash__(self)
3151 
3152  def __str__(self):
3153  r"""__str__(DirectionAngle self) -> std::string"""
3154  return _IMP_core.DirectionAngle___str__(self)
3155 
3156  def __repr__(self):
3157  r"""__repr__(DirectionAngle self) -> std::string"""
3158  return _IMP_core.DirectionAngle___repr__(self)
3159 
3160  def _get_as_binary(self):
3161  r"""_get_as_binary(DirectionAngle self) -> PyObject *"""
3162  return _IMP_core.DirectionAngle__get_as_binary(self)
3163 
3164  def _set_from_binary(self, p):
3165  r"""_set_from_binary(DirectionAngle self, PyObject * p)"""
3166  return _IMP_core.DirectionAngle__set_from_binary(self, p)
3167 
3168  def __getstate__(self):
3169  p = self._get_as_binary()
3170  if len(self.__dict__) > 1:
3171  d = self.__dict__.copy()
3172  del d['this']
3173  p = (d, p)
3174  return p
3175 
3176  def __setstate__(self, p):
3177  if not hasattr(self, 'this'):
3178  self.__init__()
3179  if isinstance(p, tuple):
3180  d, p = p
3181  self.__dict__.update(d)
3182  return self._set_from_binary(p)
3183 
3184  __swig_destroy__ = _IMP_core.delete_DirectionAngle
3185 
3186 # Register DirectionAngle in _IMP_core:
3187 _IMP_core.DirectionAngle_swigregister(DirectionAngle)
3188 class Surface(XYZ):
3189  r"""Proxy of C++ IMP::core::Surface class."""
3190 
3191  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3192 
3193  @staticmethod
3194  def do_setup_particle(*args):
3195  r"""
3196  do_setup_particle(Model m, ParticleIndex pi, Vector3D center=IMP::algebra::Vector3D(0, 0, 0), Vector3D normal=IMP::algebra::Vector3D(0, 0, 1))
3197  do_setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf)
3198  """
3199  return _IMP_core.Surface_do_setup_particle(*args)
3200 
3201  def __init__(self, *args):
3202  r"""
3203  __init__(Surface self) -> Surface
3204  __init__(Surface self, Model m, ParticleIndex id) -> Surface
3205  __init__(Surface self, _ParticleAdaptor d) -> Surface
3206  """
3207  _IMP_core.Surface_swiginit(self, _IMP_core.new_Surface(*args))
3208 
3209  def show(self, *args):
3210  r"""show(Surface self, _ostream out=std::cout)"""
3211  return _IMP_core.Surface_show(self, *args)
3212 
3213  @staticmethod
3214  def setup_particle(*args):
3215  r"""
3216  setup_particle(Model m, ParticleIndex pi) -> Surface
3217  setup_particle(_ParticleAdaptor pa) -> Surface
3218  setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf) -> Surface
3219  setup_particle(_ParticleAdaptor pa, ReferenceFrame3D rf) -> Surface
3220  setup_particle(Model m, ParticleIndex pi, Vector3D center) -> Surface
3221  setup_particle(_ParticleAdaptor pa, Vector3D center) -> Surface
3222  setup_particle(Model m, ParticleIndex pi, Vector3D center, Vector3D normal) -> Surface
3223  setup_particle(_ParticleAdaptor pa, Vector3D center, Vector3D normal) -> Surface
3224  """
3225  return _IMP_core.Surface_setup_particle(*args)
3226 
3227  def get_normal_x(self):
3228  r"""get_normal_x(Surface self) -> IMP::Float"""
3229  return _IMP_core.Surface_get_normal_x(self)
3230 
3231  def set_normal_x(self, t):
3232  r"""set_normal_x(Surface self, IMP::Float t)"""
3233  return _IMP_core.Surface_set_normal_x(self, t)
3234 
3235  def get_normal_y(self):
3236  r"""get_normal_y(Surface self) -> IMP::Float"""
3237  return _IMP_core.Surface_get_normal_y(self)
3238 
3239  def set_normal_y(self, t):
3240  r"""set_normal_y(Surface self, IMP::Float t)"""
3241  return _IMP_core.Surface_set_normal_y(self, t)
3242 
3243  def get_normal_z(self):
3244  r"""get_normal_z(Surface self) -> IMP::Float"""
3245  return _IMP_core.Surface_get_normal_z(self)
3246 
3247  def set_normal_z(self, t):
3248  r"""set_normal_z(Surface self, IMP::Float t)"""
3249  return _IMP_core.Surface_set_normal_z(self, t)
3250 
3251  @staticmethod
3252  def get_is_setup(*args):
3253  r"""
3254  get_is_setup(_ParticleAdaptor p) -> bool
3255  get_is_setup(Model m, ParticleIndex pi) -> bool
3256  """
3257  return _IMP_core.Surface_get_is_setup(*args)
3258 
3259  @staticmethod
3260  def get_normal_key(i):
3261  r"""get_normal_key(unsigned int i) -> FloatKey"""
3262  return _IMP_core.Surface_get_normal_key(i)
3263 
3264  def get_normal_derivative(self, i):
3265  r"""get_normal_derivative(Surface self, int i) -> IMP::Float"""
3266  return _IMP_core.Surface_get_normal_derivative(self, i)
3267 
3268  def get_normal_derivatives(self):
3269  r"""get_normal_derivatives(Surface self) -> Vector3D"""
3270  return _IMP_core.Surface_get_normal_derivatives(self)
3271 
3272  def add_to_normal_derivative(self, i, v, d):
3273  r"""add_to_normal_derivative(Surface self, int i, IMP::Float v, DerivativeAccumulator d)"""
3274  return _IMP_core.Surface_add_to_normal_derivative(self, i, v, d)
3275 
3276  def add_to_normal_derivatives(self, v, d):
3277  r"""add_to_normal_derivatives(Surface self, Vector3D v, DerivativeAccumulator d)"""
3278  return _IMP_core.Surface_add_to_normal_derivatives(self, v, d)
3279 
3280  def get_normal_is_optimized(self):
3281  r"""get_normal_is_optimized(Surface self) -> bool"""
3282  return _IMP_core.Surface_get_normal_is_optimized(self)
3283 
3284  def set_normal_is_optimized(self, tf):
3285  r"""set_normal_is_optimized(Surface self, bool tf)"""
3286  return _IMP_core.Surface_set_normal_is_optimized(self, tf)
3287 
3288  def get_normal(self):
3289  r"""get_normal(Surface self) -> Vector3D"""
3290  return _IMP_core.Surface_get_normal(self)
3291 
3292  def set_normal(self, normal):
3293  r"""set_normal(Surface self, Vector3D normal)"""
3294  return _IMP_core.Surface_set_normal(self, normal)
3295 
3296  def reflect(self):
3297  r"""reflect(Surface self)"""
3298  return _IMP_core.Surface_reflect(self)
3299 
3300  def get_height(self, v):
3301  r"""get_height(Surface self, Vector3D v) -> double"""
3302  return _IMP_core.Surface_get_height(self, v)
3303 
3304  def get_depth(self, v):
3305  r"""get_depth(Surface self, Vector3D v) -> double"""
3306  return _IMP_core.Surface_get_depth(self, v)
3307 
3308  def get_distance_to(self, v):
3309  r"""get_distance_to(Surface self, Vector3D v) -> double"""
3310  return _IMP_core.Surface_get_distance_to(self, v)
3311 
3312  def get_distance_to_center(self, v):
3313  r"""get_distance_to_center(Surface self, Vector3D v) -> double"""
3314  return _IMP_core.Surface_get_distance_to_center(self, v)
3315 
3316  def set_reference_frame(self, rf):
3317  r"""set_reference_frame(Surface self, ReferenceFrame3D rf)"""
3318  return _IMP_core.Surface_set_reference_frame(self, rf)
3319 
3320  def get_reference_frame(self):
3321  r"""get_reference_frame(Surface self) -> ReferenceFrame3D"""
3322  return _IMP_core.Surface_get_reference_frame(self)
3323 
3324  def get_plane(self):
3325  r"""get_plane(Surface self) -> Plane3D"""
3326  return _IMP_core.Surface_get_plane(self)
3327 
3328  def add_attribute(self, *args):
3329  r"""
3330  add_attribute(Surface self, FloatKey k, IMP::Float v, bool opt)
3331  add_attribute(Surface self, FloatKey a0, IMP::Float a1)
3332  add_attribute(Surface self, IntKey a0, IMP::Int a1)
3333  add_attribute(Surface self, FloatsKey a0, IMP::Floats a1)
3334  add_attribute(Surface self, IntsKey a0, IMP::Ints a1)
3335  add_attribute(Surface self, StringKey a0, IMP::String a1)
3336  add_attribute(Surface self, ParticleIndexKey a0, Particle a1)
3337  add_attribute(Surface self, ObjectKey a0, Object a1)
3338  add_attribute(Surface self, SparseFloatKey a0, IMP::Float a1)
3339  add_attribute(Surface self, SparseIntKey a0, IMP::Int a1)
3340  add_attribute(Surface self, SparseStringKey a0, IMP::String a1)
3341  add_attribute(Surface self, SparseParticleIndexKey a0, ParticleIndex a1)
3342  """
3343  return _IMP_core.Surface_add_attribute(self, *args)
3344 
3345  def get_value(self, *args):
3346  r"""
3347  get_value(Surface self, FloatKey a0) -> IMP::Float
3348  get_value(Surface self, IntKey a0) -> IMP::Int
3349  get_value(Surface self, FloatsKey a0) -> IMP::Floats
3350  get_value(Surface self, IntsKey a0) -> IMP::Ints
3351  get_value(Surface self, StringKey a0) -> IMP::String
3352  get_value(Surface self, ParticleIndexKey a0) -> Particle
3353  get_value(Surface self, ObjectKey a0) -> Object
3354  get_value(Surface self, SparseFloatKey a0) -> IMP::Float
3355  get_value(Surface self, SparseIntKey a0) -> IMP::Int
3356  get_value(Surface self, SparseStringKey a0) -> IMP::String
3357  get_value(Surface self, SparseParticleIndexKey a0) -> ParticleIndex
3358  """
3359  return _IMP_core.Surface_get_value(self, *args)
3360 
3361  def set_value(self, *args):
3362  r"""
3363  set_value(Surface self, FloatKey a0, IMP::Float a1)
3364  set_value(Surface self, IntKey a0, IMP::Int a1)
3365  set_value(Surface self, FloatsKey a0, IMP::Floats a1)
3366  set_value(Surface self, IntsKey a0, IMP::Ints a1)
3367  set_value(Surface self, StringKey a0, IMP::String a1)
3368  set_value(Surface self, ParticleIndexKey a0, Particle a1)
3369  set_value(Surface self, ObjectKey a0, Object a1)
3370  set_value(Surface self, SparseFloatKey a0, IMP::Float a1)
3371  set_value(Surface self, SparseIntKey a0, IMP::Int a1)
3372  set_value(Surface self, SparseStringKey a0, IMP::String a1)
3373  set_value(Surface self, SparseParticleIndexKey a0, ParticleIndex a1)
3374  """
3375  return _IMP_core.Surface_set_value(self, *args)
3376 
3377  def remove_attribute(self, *args):
3378  r"""
3379  remove_attribute(Surface self, FloatKey a0)
3380  remove_attribute(Surface self, IntKey a0)
3381  remove_attribute(Surface self, FloatsKey a0)
3382  remove_attribute(Surface self, IntsKey a0)
3383  remove_attribute(Surface self, StringKey a0)
3384  remove_attribute(Surface self, ParticleIndexKey a0)
3385  remove_attribute(Surface self, ObjectKey a0)
3386  remove_attribute(Surface self, SparseFloatKey a0)
3387  remove_attribute(Surface self, SparseIntKey a0)
3388  remove_attribute(Surface self, SparseStringKey a0)
3389  remove_attribute(Surface self, SparseParticleIndexKey a0)
3390  """
3391  return _IMP_core.Surface_remove_attribute(self, *args)
3392 
3393  def has_attribute(self, *args):
3394  r"""
3395  has_attribute(Surface self, FloatKey a0) -> bool
3396  has_attribute(Surface self, IntKey a0) -> bool
3397  has_attribute(Surface self, FloatsKey a0) -> bool
3398  has_attribute(Surface self, IntsKey a0) -> bool
3399  has_attribute(Surface self, StringKey a0) -> bool
3400  has_attribute(Surface self, ParticleIndexKey a0) -> bool
3401  has_attribute(Surface self, ObjectKey a0) -> bool
3402  has_attribute(Surface self, SparseFloatKey a0) -> bool
3403  has_attribute(Surface self, SparseIntKey a0) -> bool
3404  has_attribute(Surface self, SparseStringKey a0) -> bool
3405  has_attribute(Surface self, SparseParticleIndexKey a0) -> bool
3406  """
3407  return _IMP_core.Surface_has_attribute(self, *args)
3408 
3409  def get_derivative(self, a0):
3410  r"""get_derivative(Surface self, FloatKey a0) -> double"""
3411  return _IMP_core.Surface_get_derivative(self, a0)
3412 
3413  def get_name(self):
3414  r"""get_name(Surface self) -> std::string"""
3415  return _IMP_core.Surface_get_name(self)
3416 
3417  def clear_caches(self):
3418  r"""clear_caches(Surface self)"""
3419  return _IMP_core.Surface_clear_caches(self)
3420 
3421  def set_name(self, a0):
3422  r"""set_name(Surface self, std::string a0)"""
3423  return _IMP_core.Surface_set_name(self, a0)
3424 
3425  def set_check_level(self, a0):
3426  r"""set_check_level(Surface self, IMP::CheckLevel a0)"""
3427  return _IMP_core.Surface_set_check_level(self, a0)
3428 
3429  def add_to_derivative(self, a0, a1, a2):
3430  r"""add_to_derivative(Surface self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3431  return _IMP_core.Surface_add_to_derivative(self, a0, a1, a2)
3432 
3433  def set_is_optimized(self, a0, a1):
3434  r"""set_is_optimized(Surface self, FloatKey a0, bool a1)"""
3435  return _IMP_core.Surface_set_is_optimized(self, a0, a1)
3436 
3437  def get_is_optimized(self, a0):
3438  r"""get_is_optimized(Surface self, FloatKey a0) -> bool"""
3439  return _IMP_core.Surface_get_is_optimized(self, a0)
3440 
3441  def get_check_level(self):
3442  r"""get_check_level(Surface self) -> IMP::CheckLevel"""
3443  return _IMP_core.Surface_get_check_level(self)
3444 
3445  def __eq__(self, *args):
3446  r"""
3447  __eq__(Surface self, Surface o) -> bool
3448  __eq__(Surface self, Particle d) -> bool
3449  """
3450  return _IMP_core.Surface___eq__(self, *args)
3451 
3452  def __ne__(self, *args):
3453  r"""
3454  __ne__(Surface self, Surface o) -> bool
3455  __ne__(Surface self, Particle d) -> bool
3456  """
3457  return _IMP_core.Surface___ne__(self, *args)
3458 
3459  def __le__(self, *args):
3460  r"""
3461  __le__(Surface self, Surface o) -> bool
3462  __le__(Surface self, Particle d) -> bool
3463  """
3464  return _IMP_core.Surface___le__(self, *args)
3465 
3466  def __lt__(self, *args):
3467  r"""
3468  __lt__(Surface self, Surface o) -> bool
3469  __lt__(Surface self, Particle d) -> bool
3470  """
3471  return _IMP_core.Surface___lt__(self, *args)
3472 
3473  def __ge__(self, *args):
3474  r"""
3475  __ge__(Surface self, Surface o) -> bool
3476  __ge__(Surface self, Particle d) -> bool
3477  """
3478  return _IMP_core.Surface___ge__(self, *args)
3479 
3480  def __gt__(self, *args):
3481  r"""
3482  __gt__(Surface self, Surface o) -> bool
3483  __gt__(Surface self, Particle d) -> bool
3484  """
3485  return _IMP_core.Surface___gt__(self, *args)
3486 
3487  def __hash__(self):
3488  r"""__hash__(Surface self) -> std::size_t"""
3489  return _IMP_core.Surface___hash__(self)
3490 
3491  def __str__(self):
3492  r"""__str__(Surface self) -> std::string"""
3493  return _IMP_core.Surface___str__(self)
3494 
3495  def __repr__(self):
3496  r"""__repr__(Surface self) -> std::string"""
3497  return _IMP_core.Surface___repr__(self)
3498 
3499  def _get_as_binary(self):
3500  r"""_get_as_binary(Surface self) -> PyObject *"""
3501  return _IMP_core.Surface__get_as_binary(self)
3502 
3503  def _set_from_binary(self, p):
3504  r"""_set_from_binary(Surface self, PyObject * p)"""
3505  return _IMP_core.Surface__set_from_binary(self, p)
3506 
3507  def __getstate__(self):
3508  p = self._get_as_binary()
3509  if len(self.__dict__) > 1:
3510  d = self.__dict__.copy()
3511  del d['this']
3512  p = (d, p)
3513  return p
3514 
3515  def __setstate__(self, p):
3516  if not hasattr(self, 'this'):
3517  self.__init__()
3518  if isinstance(p, tuple):
3519  d, p = p
3520  self.__dict__.update(d)
3521  return self._set_from_binary(p)
3522 
3523  __swig_destroy__ = _IMP_core.delete_Surface
3524 
3525 # Register Surface in _IMP_core:
3526 _IMP_core.Surface_swigregister(Surface)
3527 
3528 def get_height(*args):
3529  r"""
3530  get_height(Surface s, XYZR d) -> double
3531  get_height(Surface s, XYZ d) -> double
3532  """
3533  return _IMP_core.get_height(*args)
3534 
3535 def get_depth(*args):
3536  r"""
3537  get_depth(Surface s, XYZR d) -> double
3538  get_depth(Surface s, XYZ d) -> double
3539  """
3540  return _IMP_core.get_depth(*args)
3541 
3542 def get_distance(*args):
3543  r"""
3544  get_distance(XYZ a, XYZ b) -> double
3545  get_distance(XYZR a, XYZR b) -> double
3546  get_distance(Surface s, XYZR d) -> double
3547  get_distance(Surface s, XYZ d) -> double
3548  """
3549  return _IMP_core.get_distance(*args)
3550 class SurfaceGeometry(IMP.display.Geometry):
3551  r"""Proxy of C++ IMP::core::SurfaceGeometry class."""
3552 
3553  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3554 
3555  def __init__(self, *args):
3556  r"""
3557  __init__(SurfaceGeometry self, std::string n="SurfaceGeometry") -> SurfaceGeometry
3558  __init__(SurfaceGeometry self, Surface s, std::string const n="SurfaceGeometry") -> SurfaceGeometry
3559  __init__(SurfaceGeometry self, Surface s, Color c, std::string n="SurfaceGeometry") -> SurfaceGeometry
3560  """
3561  _IMP_core.SurfaceGeometry_swiginit(self, _IMP_core.new_SurfaceGeometry(*args))
3562 
3563  def get_geometry(self):
3564  r"""get_geometry(SurfaceGeometry self) -> Surface"""
3565  return _IMP_core.SurfaceGeometry_get_geometry(self)
3566 
3567  def set_geometry(self, s):
3568  r"""set_geometry(SurfaceGeometry self, Surface s)"""
3569  return _IMP_core.SurfaceGeometry_set_geometry(self, s)
3570 
3571  def get_version_info(self):
3572  r"""get_version_info(SurfaceGeometry self) -> VersionInfo"""
3573  return _IMP_core.SurfaceGeometry_get_version_info(self)
3574  __swig_destroy__ = _IMP_core.delete_SurfaceGeometry
3575 
3576  def __str__(self):
3577  r"""__str__(SurfaceGeometry self) -> std::string"""
3578  return _IMP_core.SurfaceGeometry___str__(self)
3579 
3580  def __repr__(self):
3581  r"""__repr__(SurfaceGeometry self) -> std::string"""
3582  return _IMP_core.SurfaceGeometry___repr__(self)
3583 
3584  @staticmethod
3585  def get_from(o):
3586  return _object_cast_to_SurfaceGeometry(o)
3587 
3588 
3589 # Register SurfaceGeometry in _IMP_core:
3590 _IMP_core.SurfaceGeometry_swigregister(SurfaceGeometry)
3591 
3592 def create_geometry(*args):
3593  r"""create_geometry(Surface s, std::string name=std::string("SurfaceGeometry%1%")) -> SurfaceGeometry"""
3594  return _IMP_core.create_geometry(*args)
3595 class SurfaceGeometryConstraint(IMP.Constraint):
3596  r"""Proxy of C++ IMP::core::SurfaceGeometryConstraint class."""
3597 
3598  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3599 
3600  def __init__(self, s, g):
3601  r"""__init__(SurfaceGeometryConstraint self, Surface s, SurfaceGeometry g) -> SurfaceGeometryConstraint"""
3602  _IMP_core.SurfaceGeometryConstraint_swiginit(self, _IMP_core.new_SurfaceGeometryConstraint(s, g))
3603 
3604  def get_surface(self):
3605  r"""get_surface(SurfaceGeometryConstraint self) -> Surface"""
3606  return _IMP_core.SurfaceGeometryConstraint_get_surface(self)
3607 
3608  def get_geometry(self):
3609  r"""get_geometry(SurfaceGeometryConstraint self) -> SurfaceGeometry"""
3610  return _IMP_core.SurfaceGeometryConstraint_get_geometry(self)
3611 
3612  def do_get_inputs(self):
3613  r"""do_get_inputs(SurfaceGeometryConstraint self) -> IMP::ModelObjectsTemp"""
3614  return _IMP_core.SurfaceGeometryConstraint_do_get_inputs(self)
3615 
3616  def do_get_outputs(self):
3617  r"""do_get_outputs(SurfaceGeometryConstraint self) -> IMP::ModelObjectsTemp"""
3618  return _IMP_core.SurfaceGeometryConstraint_do_get_outputs(self)
3619 
3620  def get_version_info(self):
3621  r"""get_version_info(SurfaceGeometryConstraint self) -> VersionInfo"""
3622  return _IMP_core.SurfaceGeometryConstraint_get_version_info(self)
3623  __swig_destroy__ = _IMP_core.delete_SurfaceGeometryConstraint
3624 
3625  def __str__(self):
3626  r"""__str__(SurfaceGeometryConstraint self) -> std::string"""
3627  return _IMP_core.SurfaceGeometryConstraint___str__(self)
3628 
3629  def __repr__(self):
3630  r"""__repr__(SurfaceGeometryConstraint self) -> std::string"""
3631  return _IMP_core.SurfaceGeometryConstraint___repr__(self)
3632 
3633  @staticmethod
3634  def get_from(o):
3635  return _object_cast_to_SurfaceGeometryConstraint(o)
3636 
3637 
3638 # Register SurfaceGeometryConstraint in _IMP_core:
3639 _IMP_core.SurfaceGeometryConstraint_swigregister(SurfaceGeometryConstraint)
3640 
3642  r"""get_constrained_surface_geometry(Surface s, std::string name="SurfaceGeometry%1%") -> SurfaceGeometry"""
3643  return _IMP_core.get_constrained_surface_geometry(*args)
3644 class LateralSurfaceConstraint(IMP.Constraint):
3645  r"""Proxy of C++ IMP::core::LateralSurfaceConstraint class."""
3646 
3647  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3648 
3649  def __init__(self, s, d):
3650  r"""__init__(LateralSurfaceConstraint self, Surface s, XYZ d) -> LateralSurfaceConstraint"""
3651  _IMP_core.LateralSurfaceConstraint_swiginit(self, _IMP_core.new_LateralSurfaceConstraint(s, d))
3652 
3653  def do_get_inputs(self):
3654  r"""do_get_inputs(LateralSurfaceConstraint self) -> IMP::ModelObjectsTemp"""
3655  return _IMP_core.LateralSurfaceConstraint_do_get_inputs(self)
3656 
3657  def do_get_outputs(self):
3658  r"""do_get_outputs(LateralSurfaceConstraint self) -> IMP::ModelObjectsTemp"""
3659  return _IMP_core.LateralSurfaceConstraint_do_get_outputs(self)
3660 
3661  def get_version_info(self):
3662  r"""get_version_info(LateralSurfaceConstraint self) -> VersionInfo"""
3663  return _IMP_core.LateralSurfaceConstraint_get_version_info(self)
3664  __swig_destroy__ = _IMP_core.delete_LateralSurfaceConstraint
3665 
3666  def __str__(self):
3667  r"""__str__(LateralSurfaceConstraint self) -> std::string"""
3668  return _IMP_core.LateralSurfaceConstraint___str__(self)
3669 
3670  def __repr__(self):
3671  r"""__repr__(LateralSurfaceConstraint self) -> std::string"""
3672  return _IMP_core.LateralSurfaceConstraint___repr__(self)
3673 
3674  @staticmethod
3675  def get_from(o):
3676  return _object_cast_to_LateralSurfaceConstraint(o)
3677 
3678 
3679 # Register LateralSurfaceConstraint in _IMP_core:
3680 _IMP_core.LateralSurfaceConstraint_swigregister(LateralSurfaceConstraint)
3681 class AngleTripletScore(IMP.TripletScore):
3682  r"""Proxy of C++ IMP::core::AngleTripletScore class."""
3683 
3684  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3685 
3686  def __init__(self, *args):
3687  r"""
3688  __init__(AngleTripletScore self, UnaryFunction f) -> AngleTripletScore
3689  __init__(AngleTripletScore self) -> AngleTripletScore
3690  """
3691  _IMP_core.AngleTripletScore_swiginit(self, _IMP_core.new_AngleTripletScore(*args))
3692 
3693  def do_get_inputs(self, m, pis):
3694  r"""do_get_inputs(AngleTripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3695  return _IMP_core.AngleTripletScore_do_get_inputs(self, m, pis)
3696 
3697  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
3698  r"""evaluate_indexes(AngleTripletScore self, Model m, IMP::ParticleIndexTriplets const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
3699  return _IMP_core.AngleTripletScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
3700 
3701  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
3702  r"""evaluate_indexes_scores(AngleTripletScore self, Model m, IMP::ParticleIndexTriplets const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
3703  return _IMP_core.AngleTripletScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
3704 
3705  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
3706  r"""evaluate_indexes_delta(AngleTripletScore self, Model m, IMP::ParticleIndexTriplets const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
3707  return _IMP_core.AngleTripletScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
3708 
3709  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
3710  r"""evaluate_if_good_indexes(AngleTripletScore self, Model m, IMP::ParticleIndexTriplets const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
3711  return _IMP_core.AngleTripletScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
3712 
3713  def get_version_info(self):
3714  r"""get_version_info(AngleTripletScore self) -> VersionInfo"""
3715  return _IMP_core.AngleTripletScore_get_version_info(self)
3716  __swig_destroy__ = _IMP_core.delete_AngleTripletScore
3717 
3718  def __str__(self):
3719  r"""__str__(AngleTripletScore self) -> std::string"""
3720  return _IMP_core.AngleTripletScore___str__(self)
3721 
3722  def __repr__(self):
3723  r"""__repr__(AngleTripletScore self) -> std::string"""
3724  return _IMP_core.AngleTripletScore___repr__(self)
3725 
3726  @staticmethod
3727  def get_from(o):
3728  return _object_cast_to_AngleTripletScore(o)
3729 
3730 
3731  def _get_as_binary(self):
3732  r"""_get_as_binary(AngleTripletScore self) -> PyObject *"""
3733  return _IMP_core.AngleTripletScore__get_as_binary(self)
3734 
3735  def _set_from_binary(self, p):
3736  r"""_set_from_binary(AngleTripletScore self, PyObject * p)"""
3737  return _IMP_core.AngleTripletScore__set_from_binary(self, p)
3738 
3739  def __getstate__(self):
3740  p = self._get_as_binary()
3741  if len(self.__dict__) > 1:
3742  d = self.__dict__.copy()
3743  del d['this']
3744  p = (d, p)
3745  return p
3746 
3747  def __setstate__(self, p):
3748  if not hasattr(self, 'this'):
3749  self.__init__()
3750  if isinstance(p, tuple):
3751  d, p = p
3752  self.__dict__.update(d)
3753  return self._set_from_binary(p)
3754 
3755 
3756 # Register AngleTripletScore in _IMP_core:
3757 _IMP_core.AngleTripletScore_swigregister(AngleTripletScore)
3758 class BallMover(MonteCarloMover):
3759  r"""Proxy of C++ IMP::core::BallMover class."""
3760 
3761  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3762 
3763  def __init__(self, *args):
3764  r"""
3765  __init__(BallMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double radius) -> BallMover
3766  __init__(BallMover self, Model m, ParticleIndex pi, double radius) -> BallMover
3767  __init__(BallMover self, Model m, IMP::ParticleIndexes const & pis, IMP::FloatKeys const & vars, IMP::Float radius) -> BallMover
3768  __init__(BallMover self, Model m, IMP::ParticleIndexes const & pis, IMP::Float radius) -> BallMover
3769  __init__(BallMover self) -> BallMover
3770  """
3771  _IMP_core.BallMover_swiginit(self, _IMP_core.new_BallMover(*args))
3772 
3773  def set_radius(self, radius):
3774  r"""set_radius(BallMover self, IMP::Float radius)"""
3775  return _IMP_core.BallMover_set_radius(self, radius)
3776 
3777  def get_radius(self):
3778  r"""get_radius(BallMover self) -> IMP::Float"""
3779  return _IMP_core.BallMover_get_radius(self)
3780 
3781  def get_version_info(self):
3782  r"""get_version_info(BallMover self) -> VersionInfo"""
3783  return _IMP_core.BallMover_get_version_info(self)
3784  __swig_destroy__ = _IMP_core.delete_BallMover
3785 
3786  def __str__(self):
3787  r"""__str__(BallMover self) -> std::string"""
3788  return _IMP_core.BallMover___str__(self)
3789 
3790  def __repr__(self):
3791  r"""__repr__(BallMover self) -> std::string"""
3792  return _IMP_core.BallMover___repr__(self)
3793 
3794  @staticmethod
3795  def get_from(o):
3796  return _object_cast_to_BallMover(o)
3797 
3798 
3799  def _get_as_binary(self):
3800  r"""_get_as_binary(BallMover self) -> PyObject *"""
3801  return _IMP_core.BallMover__get_as_binary(self)
3802 
3803  def _set_from_binary(self, p):
3804  r"""_set_from_binary(BallMover self, PyObject * p)"""
3805  return _IMP_core.BallMover__set_from_binary(self, p)
3806 
3807  def __getstate__(self):
3808  p = self._get_as_binary()
3809  if len(self.__dict__) > 1:
3810  d = self.__dict__.copy()
3811  del d['this']
3812  p = (d, p)
3813  return p
3814 
3815  def __setstate__(self, p):
3816  if not hasattr(self, 'this'):
3817  self.__init__()
3818  if isinstance(p, tuple):
3819  d, p = p
3820  self.__dict__.update(d)
3821  return self._set_from_binary(p)
3822 
3823 
3824 # Register BallMover in _IMP_core:
3825 _IMP_core.BallMover_swigregister(BallMover)
3826 class SerialMover(MonteCarloMover):
3827  r"""Proxy of C++ IMP::core::SerialMover class."""
3828 
3829  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3830 
3831  def __init__(self, *args):
3832  r"""
3833  __init__(SerialMover self, IMP::core::MonteCarloMoversTemp const & mvs) -> SerialMover
3834  __init__(SerialMover self) -> SerialMover
3835  """
3836  _IMP_core.SerialMover_swiginit(self, _IMP_core.new_SerialMover(*args))
3837 
3838  def get_movers(self):
3839  r"""get_movers(SerialMover self) -> IMP::core::MonteCarloMovers const &"""
3840  return _IMP_core.SerialMover_get_movers(self)
3841 
3842  def get_version_info(self):
3843  r"""get_version_info(SerialMover self) -> VersionInfo"""
3844  return _IMP_core.SerialMover_get_version_info(self)
3845  __swig_destroy__ = _IMP_core.delete_SerialMover
3846 
3847  def __str__(self):
3848  r"""__str__(SerialMover self) -> std::string"""
3849  return _IMP_core.SerialMover___str__(self)
3850 
3851  def __repr__(self):
3852  r"""__repr__(SerialMover self) -> std::string"""
3853  return _IMP_core.SerialMover___repr__(self)
3854 
3855  @staticmethod
3856  def get_from(o):
3857  return _object_cast_to_SerialMover(o)
3858 
3859 
3860  def _get_as_binary(self):
3861  r"""_get_as_binary(SerialMover self) -> PyObject *"""
3862  return _IMP_core.SerialMover__get_as_binary(self)
3863 
3864  def _set_from_binary(self, p):
3865  r"""_set_from_binary(SerialMover self, PyObject * p)"""
3866  return _IMP_core.SerialMover__set_from_binary(self, p)
3867 
3868  def __getstate__(self):
3869  p = self._get_as_binary()
3870  if len(self.__dict__) > 1:
3871  d = self.__dict__.copy()
3872  del d['this']
3873  p = (d, p)
3874  return p
3875 
3876  def __setstate__(self, p):
3877  if not hasattr(self, 'this'):
3878  self.__init__()
3879  if isinstance(p, tuple):
3880  d, p = p
3881  self.__dict__.update(d)
3882  return self._set_from_binary(p)
3883 
3884 
3885 # Register SerialMover in _IMP_core:
3886 _IMP_core.SerialMover_swigregister(SerialMover)
3887 class SubsetMover(MonteCarloMover):
3888  r"""Proxy of C++ IMP::core::SubsetMover class."""
3889 
3890  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3891 
3892  def __init__(self, *args):
3893  r"""
3894  __init__(SubsetMover self, IMP::core::MonteCarloMoversTemp const & mvs, unsigned int n) -> SubsetMover
3895  __init__(SubsetMover self) -> SubsetMover
3896  """
3897  _IMP_core.SubsetMover_swiginit(self, _IMP_core.new_SubsetMover(*args))
3898 
3899  def get_movers(self):
3900  r"""get_movers(SubsetMover self) -> IMP::core::MonteCarloMovers const &"""
3901  return _IMP_core.SubsetMover_get_movers(self)
3902 
3903  def get_subset_size(self):
3904  r"""get_subset_size(SubsetMover self) -> unsigned int"""
3905  return _IMP_core.SubsetMover_get_subset_size(self)
3906 
3907  def get_version_info(self):
3908  r"""get_version_info(SubsetMover self) -> VersionInfo"""
3909  return _IMP_core.SubsetMover_get_version_info(self)
3910  __swig_destroy__ = _IMP_core.delete_SubsetMover
3911 
3912  def __str__(self):
3913  r"""__str__(SubsetMover self) -> std::string"""
3914  return _IMP_core.SubsetMover___str__(self)
3915 
3916  def __repr__(self):
3917  r"""__repr__(SubsetMover self) -> std::string"""
3918  return _IMP_core.SubsetMover___repr__(self)
3919 
3920  @staticmethod
3921  def get_from(o):
3922  return _object_cast_to_SubsetMover(o)
3923 
3924 
3925  def _get_as_binary(self):
3926  r"""_get_as_binary(SubsetMover self) -> PyObject *"""
3927  return _IMP_core.SubsetMover__get_as_binary(self)
3928 
3929  def _set_from_binary(self, p):
3930  r"""_set_from_binary(SubsetMover self, PyObject * p)"""
3931  return _IMP_core.SubsetMover__set_from_binary(self, p)
3932 
3933  def __getstate__(self):
3934  p = self._get_as_binary()
3935  if len(self.__dict__) > 1:
3936  d = self.__dict__.copy()
3937  del d['this']
3938  p = (d, p)
3939  return p
3940 
3941  def __setstate__(self, p):
3942  if not hasattr(self, 'this'):
3943  self.__init__()
3944  if isinstance(p, tuple):
3945  d, p = p
3946  self.__dict__.update(d)
3947  return self._set_from_binary(p)
3948 
3949 
3950 # Register SubsetMover in _IMP_core:
3951 _IMP_core.SubsetMover_swigregister(SubsetMover)
3952 class DirectionMover(MonteCarloMover):
3953  r"""Proxy of C++ IMP::core::DirectionMover class."""
3954 
3955  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3956 
3957  def __init__(self, *args):
3958  r"""
3959  __init__(DirectionMover self, Model m, ParticleIndex pi, IMP::Float max_rotation, IMP::Float reflect_probability) -> DirectionMover
3960  __init__(DirectionMover self, Direction d, IMP::Float max_rotation, IMP::Float reflect_probability) -> DirectionMover
3961  __init__(DirectionMover self) -> DirectionMover
3962  """
3963  _IMP_core.DirectionMover_swiginit(self, _IMP_core.new_DirectionMover(*args))
3964 
3965  def set_maximum_rotation(self, mr):
3966  r"""set_maximum_rotation(DirectionMover self, IMP::Float mr)"""
3967  return _IMP_core.DirectionMover_set_maximum_rotation(self, mr)
3968 
3969  def set_reflect_probability(self, rp):
3970  r"""set_reflect_probability(DirectionMover self, IMP::Float rp)"""
3971  return _IMP_core.DirectionMover_set_reflect_probability(self, rp)
3972 
3973  def get_maximum_rotation(self):
3974  r"""get_maximum_rotation(DirectionMover self) -> IMP::Float"""
3975  return _IMP_core.DirectionMover_get_maximum_rotation(self)
3976 
3977  def get_reflect_probability(self):
3978  r"""get_reflect_probability(DirectionMover self) -> IMP::Float"""
3979  return _IMP_core.DirectionMover_get_reflect_probability(self)
3980 
3981  def get_direction(self):
3982  r"""get_direction(DirectionMover self) -> Direction"""
3983  return _IMP_core.DirectionMover_get_direction(self)
3984 
3985  def get_version_info(self):
3986  r"""get_version_info(DirectionMover self) -> VersionInfo"""
3987  return _IMP_core.DirectionMover_get_version_info(self)
3988  __swig_destroy__ = _IMP_core.delete_DirectionMover
3989 
3990  def __str__(self):
3991  r"""__str__(DirectionMover self) -> std::string"""
3992  return _IMP_core.DirectionMover___str__(self)
3993 
3994  def __repr__(self):
3995  r"""__repr__(DirectionMover self) -> std::string"""
3996  return _IMP_core.DirectionMover___repr__(self)
3997 
3998  @staticmethod
3999  def get_from(o):
4000  return _object_cast_to_DirectionMover(o)
4001 
4002 
4003  def _get_as_binary(self):
4004  r"""_get_as_binary(DirectionMover self) -> PyObject *"""
4005  return _IMP_core.DirectionMover__get_as_binary(self)
4006 
4007  def _set_from_binary(self, p):
4008  r"""_set_from_binary(DirectionMover self, PyObject * p)"""
4009  return _IMP_core.DirectionMover__set_from_binary(self, p)
4010 
4011  def __getstate__(self):
4012  p = self._get_as_binary()
4013  if len(self.__dict__) > 1:
4014  d = self.__dict__.copy()
4015  del d['this']
4016  p = (d, p)
4017  return p
4018 
4019  def __setstate__(self, p):
4020  if not hasattr(self, 'this'):
4021  self.__init__()
4022  if isinstance(p, tuple):
4023  d, p = p
4024  self.__dict__.update(d)
4025  return self._set_from_binary(p)
4026 
4027 
4028 # Register DirectionMover in _IMP_core:
4029 _IMP_core.DirectionMover_swigregister(DirectionMover)
4030 class SurfaceMover(MonteCarloMover):
4031  r"""Proxy of C++ IMP::core::SurfaceMover class."""
4032 
4033  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4034 
4035  def __init__(self, *args):
4036  r"""
4037  __init__(SurfaceMover self, Model m, ParticleIndex pi, IMP::Float max_translation, IMP::Float max_rotation, IMP::Float reflect_probability) -> SurfaceMover
4038  __init__(SurfaceMover self, Surface s, IMP::Float max_translation, IMP::Float max_rotation, IMP::Float reflect_probability) -> SurfaceMover
4039  __init__(SurfaceMover self) -> SurfaceMover
4040  """
4041  _IMP_core.SurfaceMover_swiginit(self, _IMP_core.new_SurfaceMover(*args))
4042 
4043  def set_maximum_translation(self, mt):
4044  r"""set_maximum_translation(SurfaceMover self, IMP::Float mt)"""
4045  return _IMP_core.SurfaceMover_set_maximum_translation(self, mt)
4046 
4047  def set_maximum_rotation(self, mr):
4048  r"""set_maximum_rotation(SurfaceMover self, IMP::Float mr)"""
4049  return _IMP_core.SurfaceMover_set_maximum_rotation(self, mr)
4050 
4051  def set_reflect_probability(self, rp):
4052  r"""set_reflect_probability(SurfaceMover self, IMP::Float rp)"""
4053  return _IMP_core.SurfaceMover_set_reflect_probability(self, rp)
4054 
4055  def get_maximum_translation(self):
4056  r"""get_maximum_translation(SurfaceMover self) -> IMP::Float"""
4057  return _IMP_core.SurfaceMover_get_maximum_translation(self)
4058 
4059  def get_maximum_rotation(self):
4060  r"""get_maximum_rotation(SurfaceMover self) -> IMP::Float"""
4061  return _IMP_core.SurfaceMover_get_maximum_rotation(self)
4062 
4063  def get_reflect_probability(self):
4064  r"""get_reflect_probability(SurfaceMover self) -> IMP::Float"""
4065  return _IMP_core.SurfaceMover_get_reflect_probability(self)
4066 
4067  def get_surface(self):
4068  r"""get_surface(SurfaceMover self) -> Surface"""
4069  return _IMP_core.SurfaceMover_get_surface(self)
4070 
4071  def get_version_info(self):
4072  r"""get_version_info(SurfaceMover self) -> VersionInfo"""
4073  return _IMP_core.SurfaceMover_get_version_info(self)
4074  __swig_destroy__ = _IMP_core.delete_SurfaceMover
4075 
4076  def __str__(self):
4077  r"""__str__(SurfaceMover self) -> std::string"""
4078  return _IMP_core.SurfaceMover___str__(self)
4079 
4080  def __repr__(self):
4081  r"""__repr__(SurfaceMover self) -> std::string"""
4082  return _IMP_core.SurfaceMover___repr__(self)
4083 
4084  @staticmethod
4085  def get_from(o):
4086  return _object_cast_to_SurfaceMover(o)
4087 
4088 
4089  def _get_as_binary(self):
4090  r"""_get_as_binary(SurfaceMover self) -> PyObject *"""
4091  return _IMP_core.SurfaceMover__get_as_binary(self)
4092 
4093  def _set_from_binary(self, p):
4094  r"""_set_from_binary(SurfaceMover self, PyObject * p)"""
4095  return _IMP_core.SurfaceMover__set_from_binary(self, p)
4096 
4097  def __getstate__(self):
4098  p = self._get_as_binary()
4099  if len(self.__dict__) > 1:
4100  d = self.__dict__.copy()
4101  del d['this']
4102  p = (d, p)
4103  return p
4104 
4105  def __setstate__(self, p):
4106  if not hasattr(self, 'this'):
4107  self.__init__()
4108  if isinstance(p, tuple):
4109  d, p = p
4110  self.__dict__.update(d)
4111  return self._set_from_binary(p)
4112 
4113 
4114 # Register SurfaceMover in _IMP_core:
4115 _IMP_core.SurfaceMover_swigregister(SurfaceMover)
4116 class BoxSweepClosePairsFinder(ClosePairsFinder):
4117  r"""Proxy of C++ IMP::core::BoxSweepClosePairsFinder class."""
4118 
4119  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4120 
4121  def __init__(self):
4122  r"""__init__(BoxSweepClosePairsFinder self) -> BoxSweepClosePairsFinder"""
4123  _IMP_core.BoxSweepClosePairsFinder_swiginit(self, _IMP_core.new_BoxSweepClosePairsFinder())
4124 
4125  def get_close_pairs(self, *args):
4126  r"""
4127  get_close_pairs(BoxSweepClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
4128  get_close_pairs(BoxSweepClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
4129  get_close_pairs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
4130  get_close_pairs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
4131  """
4132  return _IMP_core.BoxSweepClosePairsFinder_get_close_pairs(self, *args)
4133 
4134  def do_get_inputs(self, m, pis):
4135  r"""do_get_inputs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4136  return _IMP_core.BoxSweepClosePairsFinder_do_get_inputs(self, m, pis)
4137 
4138  def get_version_info(self):
4139  r"""get_version_info(BoxSweepClosePairsFinder self) -> VersionInfo"""
4140  return _IMP_core.BoxSweepClosePairsFinder_get_version_info(self)
4141  __swig_destroy__ = _IMP_core.delete_BoxSweepClosePairsFinder
4142 
4143  def __str__(self):
4144  r"""__str__(BoxSweepClosePairsFinder self) -> std::string"""
4145  return _IMP_core.BoxSweepClosePairsFinder___str__(self)
4146 
4147  def __repr__(self):
4148  r"""__repr__(BoxSweepClosePairsFinder self) -> std::string"""
4149  return _IMP_core.BoxSweepClosePairsFinder___repr__(self)
4150 
4151  @staticmethod
4152  def get_from(o):
4153  return _object_cast_to_BoxSweepClosePairsFinder(o)
4154 
4155 
4156 # Register BoxSweepClosePairsFinder in _IMP_core:
4157 _IMP_core.BoxSweepClosePairsFinder_swigregister(BoxSweepClosePairsFinder)
4158 class CentroidOfRefined(IMP.SingletonModifier):
4159  r"""Proxy of C++ IMP::core::CentroidOfRefined class."""
4160 
4161  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4162 
4163  def __init__(self, *args):
4164  r"""__init__(CentroidOfRefined self, Refiner r, FloatKey weight=IMP::FloatKey(), IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> CentroidOfRefined"""
4165  _IMP_core.CentroidOfRefined_swiginit(self, _IMP_core.new_CentroidOfRefined(*args))
4166 
4167  def do_get_inputs(self, m, pis):
4168  r"""do_get_inputs(CentroidOfRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4169  return _IMP_core.CentroidOfRefined_do_get_inputs(self, m, pis)
4170 
4171  def do_get_outputs(self, m, pis):
4172  r"""do_get_outputs(CentroidOfRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4173  return _IMP_core.CentroidOfRefined_do_get_outputs(self, m, pis)
4174 
4175  def get_version_info(self):
4176  r"""get_version_info(CentroidOfRefined self) -> VersionInfo"""
4177  return _IMP_core.CentroidOfRefined_get_version_info(self)
4178  __swig_destroy__ = _IMP_core.delete_CentroidOfRefined
4179 
4180  def __str__(self):
4181  r"""__str__(CentroidOfRefined self) -> std::string"""
4182  return _IMP_core.CentroidOfRefined___str__(self)
4183 
4184  def __repr__(self):
4185  r"""__repr__(CentroidOfRefined self) -> std::string"""
4186  return _IMP_core.CentroidOfRefined___repr__(self)
4187 
4188  @staticmethod
4189  def get_from(o):
4190  return _object_cast_to_CentroidOfRefined(o)
4191 
4192 
4193 # Register CentroidOfRefined in _IMP_core:
4194 _IMP_core.CentroidOfRefined_swigregister(CentroidOfRefined)
4195 class Centroid(XYZ):
4196  r"""Proxy of C++ IMP::core::Centroid class."""
4197 
4198  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4199 
4200  def get_constraint(self):
4201  r"""get_constraint(Centroid self) -> Constraint"""
4202  return _IMP_core.Centroid_get_constraint(self)
4203 
4204  def __init__(self, *args):
4205  r"""
4206  __init__(Centroid self) -> Centroid
4207  __init__(Centroid self, Model m, ParticleIndex id) -> Centroid
4208  __init__(Centroid self, _ParticleAdaptor d) -> Centroid
4209  """
4210  _IMP_core.Centroid_swiginit(self, _IMP_core.new_Centroid(*args))
4211 
4212  def show(self, *args):
4213  r"""show(Centroid self, _ostream out=std::cout)"""
4214  return _IMP_core.Centroid_show(self, *args)
4215 
4216  @staticmethod
4217  def setup_particle(*args):
4218  r"""
4219  setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor members) -> Centroid
4220  setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor members) -> Centroid
4221  setup_particle(Model m, ParticleIndex pi, Refiner refiner) -> Centroid
4222  setup_particle(_ParticleAdaptor pa, Refiner refiner) -> Centroid
4223  """
4224  return _IMP_core.Centroid_setup_particle(*args)
4225 
4226  @staticmethod
4227  def get_is_setup(*args):
4228  r"""
4229  get_is_setup(_ParticleAdaptor p) -> bool
4230  get_is_setup(Model m, ParticleIndex pi) -> bool
4231  """
4232  return _IMP_core.Centroid_get_is_setup(*args)
4233 
4234  def add_attribute(self, *args):
4235  r"""
4236  add_attribute(Centroid self, FloatKey k, IMP::Float v, bool opt)
4237  add_attribute(Centroid self, FloatKey a0, IMP::Float a1)
4238  add_attribute(Centroid self, IntKey a0, IMP::Int a1)
4239  add_attribute(Centroid self, FloatsKey a0, IMP::Floats a1)
4240  add_attribute(Centroid self, IntsKey a0, IMP::Ints a1)
4241  add_attribute(Centroid self, StringKey a0, IMP::String a1)
4242  add_attribute(Centroid self, ParticleIndexKey a0, Particle a1)
4243  add_attribute(Centroid self, ObjectKey a0, Object a1)
4244  add_attribute(Centroid self, SparseFloatKey a0, IMP::Float a1)
4245  add_attribute(Centroid self, SparseIntKey a0, IMP::Int a1)
4246  add_attribute(Centroid self, SparseStringKey a0, IMP::String a1)
4247  add_attribute(Centroid self, SparseParticleIndexKey a0, ParticleIndex a1)
4248  """
4249  return _IMP_core.Centroid_add_attribute(self, *args)
4250 
4251  def get_value(self, *args):
4252  r"""
4253  get_value(Centroid self, FloatKey a0) -> IMP::Float
4254  get_value(Centroid self, IntKey a0) -> IMP::Int
4255  get_value(Centroid self, FloatsKey a0) -> IMP::Floats
4256  get_value(Centroid self, IntsKey a0) -> IMP::Ints
4257  get_value(Centroid self, StringKey a0) -> IMP::String
4258  get_value(Centroid self, ParticleIndexKey a0) -> Particle
4259  get_value(Centroid self, ObjectKey a0) -> Object
4260  get_value(Centroid self, SparseFloatKey a0) -> IMP::Float
4261  get_value(Centroid self, SparseIntKey a0) -> IMP::Int
4262  get_value(Centroid self, SparseStringKey a0) -> IMP::String
4263  get_value(Centroid self, SparseParticleIndexKey a0) -> ParticleIndex
4264  """
4265  return _IMP_core.Centroid_get_value(self, *args)
4266 
4267  def set_value(self, *args):
4268  r"""
4269  set_value(Centroid self, FloatKey a0, IMP::Float a1)
4270  set_value(Centroid self, IntKey a0, IMP::Int a1)
4271  set_value(Centroid self, FloatsKey a0, IMP::Floats a1)
4272  set_value(Centroid self, IntsKey a0, IMP::Ints a1)
4273  set_value(Centroid self, StringKey a0, IMP::String a1)
4274  set_value(Centroid self, ParticleIndexKey a0, Particle a1)
4275  set_value(Centroid self, ObjectKey a0, Object a1)
4276  set_value(Centroid self, SparseFloatKey a0, IMP::Float a1)
4277  set_value(Centroid self, SparseIntKey a0, IMP::Int a1)
4278  set_value(Centroid self, SparseStringKey a0, IMP::String a1)
4279  set_value(Centroid self, SparseParticleIndexKey a0, ParticleIndex a1)
4280  """
4281  return _IMP_core.Centroid_set_value(self, *args)
4282 
4283  def remove_attribute(self, *args):
4284  r"""
4285  remove_attribute(Centroid self, FloatKey a0)
4286  remove_attribute(Centroid self, IntKey a0)
4287  remove_attribute(Centroid self, FloatsKey a0)
4288  remove_attribute(Centroid self, IntsKey a0)
4289  remove_attribute(Centroid self, StringKey a0)
4290  remove_attribute(Centroid self, ParticleIndexKey a0)
4291  remove_attribute(Centroid self, ObjectKey a0)
4292  remove_attribute(Centroid self, SparseFloatKey a0)
4293  remove_attribute(Centroid self, SparseIntKey a0)
4294  remove_attribute(Centroid self, SparseStringKey a0)
4295  remove_attribute(Centroid self, SparseParticleIndexKey a0)
4296  """
4297  return _IMP_core.Centroid_remove_attribute(self, *args)
4298 
4299  def has_attribute(self, *args):
4300  r"""
4301  has_attribute(Centroid self, FloatKey a0) -> bool
4302  has_attribute(Centroid self, IntKey a0) -> bool
4303  has_attribute(Centroid self, FloatsKey a0) -> bool
4304  has_attribute(Centroid self, IntsKey a0) -> bool
4305  has_attribute(Centroid self, StringKey a0) -> bool
4306  has_attribute(Centroid self, ParticleIndexKey a0) -> bool
4307  has_attribute(Centroid self, ObjectKey a0) -> bool
4308  has_attribute(Centroid self, SparseFloatKey a0) -> bool
4309  has_attribute(Centroid self, SparseIntKey a0) -> bool
4310  has_attribute(Centroid self, SparseStringKey a0) -> bool
4311  has_attribute(Centroid self, SparseParticleIndexKey a0) -> bool
4312  """
4313  return _IMP_core.Centroid_has_attribute(self, *args)
4314 
4315  def get_derivative(self, a0):
4316  r"""get_derivative(Centroid self, FloatKey a0) -> double"""
4317  return _IMP_core.Centroid_get_derivative(self, a0)
4318 
4319  def get_name(self):
4320  r"""get_name(Centroid self) -> std::string"""
4321  return _IMP_core.Centroid_get_name(self)
4322 
4323  def clear_caches(self):
4324  r"""clear_caches(Centroid self)"""
4325  return _IMP_core.Centroid_clear_caches(self)
4326 
4327  def set_name(self, a0):
4328  r"""set_name(Centroid self, std::string a0)"""
4329  return _IMP_core.Centroid_set_name(self, a0)
4330 
4331  def set_check_level(self, a0):
4332  r"""set_check_level(Centroid self, IMP::CheckLevel a0)"""
4333  return _IMP_core.Centroid_set_check_level(self, a0)
4334 
4335  def add_to_derivative(self, a0, a1, a2):
4336  r"""add_to_derivative(Centroid self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4337  return _IMP_core.Centroid_add_to_derivative(self, a0, a1, a2)
4338 
4339  def set_is_optimized(self, a0, a1):
4340  r"""set_is_optimized(Centroid self, FloatKey a0, bool a1)"""
4341  return _IMP_core.Centroid_set_is_optimized(self, a0, a1)
4342 
4343  def get_is_optimized(self, a0):
4344  r"""get_is_optimized(Centroid self, FloatKey a0) -> bool"""
4345  return _IMP_core.Centroid_get_is_optimized(self, a0)
4346 
4347  def get_check_level(self):
4348  r"""get_check_level(Centroid self) -> IMP::CheckLevel"""
4349  return _IMP_core.Centroid_get_check_level(self)
4350 
4351  def __eq__(self, *args):
4352  r"""
4353  __eq__(Centroid self, Centroid o) -> bool
4354  __eq__(Centroid self, Particle d) -> bool
4355  """
4356  return _IMP_core.Centroid___eq__(self, *args)
4357 
4358  def __ne__(self, *args):
4359  r"""
4360  __ne__(Centroid self, Centroid o) -> bool
4361  __ne__(Centroid self, Particle d) -> bool
4362  """
4363  return _IMP_core.Centroid___ne__(self, *args)
4364 
4365  def __le__(self, *args):
4366  r"""
4367  __le__(Centroid self, Centroid o) -> bool
4368  __le__(Centroid self, Particle d) -> bool
4369  """
4370  return _IMP_core.Centroid___le__(self, *args)
4371 
4372  def __lt__(self, *args):
4373  r"""
4374  __lt__(Centroid self, Centroid o) -> bool
4375  __lt__(Centroid self, Particle d) -> bool
4376  """
4377  return _IMP_core.Centroid___lt__(self, *args)
4378 
4379  def __ge__(self, *args):
4380  r"""
4381  __ge__(Centroid self, Centroid o) -> bool
4382  __ge__(Centroid self, Particle d) -> bool
4383  """
4384  return _IMP_core.Centroid___ge__(self, *args)
4385 
4386  def __gt__(self, *args):
4387  r"""
4388  __gt__(Centroid self, Centroid o) -> bool
4389  __gt__(Centroid self, Particle d) -> bool
4390  """
4391  return _IMP_core.Centroid___gt__(self, *args)
4392 
4393  def __hash__(self):
4394  r"""__hash__(Centroid self) -> std::size_t"""
4395  return _IMP_core.Centroid___hash__(self)
4396 
4397  def __str__(self):
4398  r"""__str__(Centroid self) -> std::string"""
4399  return _IMP_core.Centroid___str__(self)
4400 
4401  def __repr__(self):
4402  r"""__repr__(Centroid self) -> std::string"""
4403  return _IMP_core.Centroid___repr__(self)
4404 
4405  def _get_as_binary(self):
4406  r"""_get_as_binary(Centroid self) -> PyObject *"""
4407  return _IMP_core.Centroid__get_as_binary(self)
4408 
4409  def _set_from_binary(self, p):
4410  r"""_set_from_binary(Centroid self, PyObject * p)"""
4411  return _IMP_core.Centroid__set_from_binary(self, p)
4412 
4413  def __getstate__(self):
4414  p = self._get_as_binary()
4415  if len(self.__dict__) > 1:
4416  d = self.__dict__.copy()
4417  del d['this']
4418  p = (d, p)
4419  return p
4420 
4421  def __setstate__(self, p):
4422  if not hasattr(self, 'this'):
4423  self.__init__()
4424  if isinstance(p, tuple):
4425  d, p = p
4426  self.__dict__.update(d)
4427  return self._set_from_binary(p)
4428 
4429  __swig_destroy__ = _IMP_core.delete_Centroid
4430 
4431 # Register Centroid in _IMP_core:
4432 _IMP_core.Centroid_swigregister(Centroid)
4433 class ChecksScoreState(IMP.ScoreState):
4434  r"""Proxy of C++ IMP::core::ChecksScoreState class."""
4435 
4436  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4437 
4438  def __init__(self, *args):
4439  r"""
4440  __init__(ChecksScoreState self, Model m, double probability) -> ChecksScoreState
4441  __init__(ChecksScoreState self) -> ChecksScoreState
4442  """
4443  _IMP_core.ChecksScoreState_swiginit(self, _IMP_core.new_ChecksScoreState(*args))
4444 
4445  def get_number_of_checked(self):
4446  r"""get_number_of_checked(ChecksScoreState self) -> unsigned int"""
4447  return _IMP_core.ChecksScoreState_get_number_of_checked(self)
4448 
4449  def do_before_evaluate(self):
4450  r"""do_before_evaluate(ChecksScoreState self)"""
4451  return _IMP_core.ChecksScoreState_do_before_evaluate(self)
4452 
4453  def do_after_evaluate(self, da):
4454  r"""do_after_evaluate(ChecksScoreState self, DerivativeAccumulator da)"""
4455  return _IMP_core.ChecksScoreState_do_after_evaluate(self, da)
4456 
4457  def do_get_outputs(self):
4458  r"""do_get_outputs(ChecksScoreState self) -> IMP::ModelObjectsTemp"""
4459  return _IMP_core.ChecksScoreState_do_get_outputs(self)
4460 
4461  def do_get_inputs(self):
4462  r"""do_get_inputs(ChecksScoreState self) -> IMP::ModelObjectsTemp"""
4463  return _IMP_core.ChecksScoreState_do_get_inputs(self)
4464 
4465  def get_version_info(self):
4466  r"""get_version_info(ChecksScoreState self) -> VersionInfo"""
4467  return _IMP_core.ChecksScoreState_get_version_info(self)
4468  __swig_destroy__ = _IMP_core.delete_ChecksScoreState
4469 
4470  def __str__(self):
4471  r"""__str__(ChecksScoreState self) -> std::string"""
4472  return _IMP_core.ChecksScoreState___str__(self)
4473 
4474  def __repr__(self):
4475  r"""__repr__(ChecksScoreState self) -> std::string"""
4476  return _IMP_core.ChecksScoreState___repr__(self)
4477 
4478  @staticmethod
4479  def get_from(o):
4480  return _object_cast_to_ChecksScoreState(o)
4481 
4482 
4483  def _get_as_binary(self):
4484  r"""_get_as_binary(ChecksScoreState self) -> PyObject *"""
4485  return _IMP_core.ChecksScoreState__get_as_binary(self)
4486 
4487  def _set_from_binary(self, p):
4488  r"""_set_from_binary(ChecksScoreState self, PyObject * p)"""
4489  return _IMP_core.ChecksScoreState__set_from_binary(self, p)
4490 
4491  def __getstate__(self):
4492  p = self._get_as_binary()
4493  if len(self.__dict__) > 1:
4494  d = self.__dict__.copy()
4495  del d['this']
4496  p = (d, p)
4497  return p
4498 
4499  def __setstate__(self, p):
4500  if not hasattr(self, 'this'):
4501  self.__init__()
4502  if isinstance(p, tuple):
4503  d, p = p
4504  self.__dict__.update(d)
4505  return self._set_from_binary(p)
4506 
4507 
4508 # Register ChecksScoreState in _IMP_core:
4509 _IMP_core.ChecksScoreState_swigregister(ChecksScoreState)
4510 class ChildrenRefiner(IMP.Refiner):
4511  r"""Proxy of C++ IMP::core::ChildrenRefiner class."""
4512 
4513  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4514 
4515  def __init__(self, tr):
4516  r"""__init__(ChildrenRefiner self, HierarchyTraits tr) -> ChildrenRefiner"""
4517  _IMP_core.ChildrenRefiner_swiginit(self, _IMP_core.new_ChildrenRefiner(tr))
4518 
4519  def do_get_inputs(self, m, pis):
4520  r"""do_get_inputs(ChildrenRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4521  return _IMP_core.ChildrenRefiner_do_get_inputs(self, m, pis)
4522 
4523  def get_version_info(self):
4524  r"""get_version_info(ChildrenRefiner self) -> VersionInfo"""
4525  return _IMP_core.ChildrenRefiner_get_version_info(self)
4526  __swig_destroy__ = _IMP_core.delete_ChildrenRefiner
4527 
4528  def __str__(self):
4529  r"""__str__(ChildrenRefiner self) -> std::string"""
4530  return _IMP_core.ChildrenRefiner___str__(self)
4531 
4532  def __repr__(self):
4533  r"""__repr__(ChildrenRefiner self) -> std::string"""
4534  return _IMP_core.ChildrenRefiner___repr__(self)
4535 
4536  @staticmethod
4537  def get_from(o):
4538  return _object_cast_to_ChildrenRefiner(o)
4539 
4540 
4541 # Register ChildrenRefiner in _IMP_core:
4542 _IMP_core.ChildrenRefiner_swigregister(ChildrenRefiner)
4543 class ClosedCubicSpline(IMP.UnaryFunction):
4544  r"""Proxy of C++ IMP::core::ClosedCubicSpline class."""
4545 
4546  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4547 
4548  def __init__(self, values, minrange, spacing):
4549  r"""__init__(ClosedCubicSpline self, IMP::Floats const & values, double minrange, double spacing) -> ClosedCubicSpline"""
4550  _IMP_core.ClosedCubicSpline_swiginit(self, _IMP_core.new_ClosedCubicSpline(values, minrange, spacing))
4551 
4552  def get_version_info(self):
4553  r"""get_version_info(ClosedCubicSpline self) -> VersionInfo"""
4554  return _IMP_core.ClosedCubicSpline_get_version_info(self)
4555  __swig_destroy__ = _IMP_core.delete_ClosedCubicSpline
4556 
4557  def do_show(self, out):
4558  r"""do_show(ClosedCubicSpline self, _ostream out)"""
4559  return _IMP_core.ClosedCubicSpline_do_show(self, out)
4560 
4561  def __str__(self):
4562  r"""__str__(ClosedCubicSpline self) -> std::string"""
4563  return _IMP_core.ClosedCubicSpline___str__(self)
4564 
4565  def __repr__(self):
4566  r"""__repr__(ClosedCubicSpline self) -> std::string"""
4567  return _IMP_core.ClosedCubicSpline___repr__(self)
4568 
4569  @staticmethod
4570  def get_from(o):
4571  return _object_cast_to_ClosedCubicSpline(o)
4572 
4573 
4574 # Register ClosedCubicSpline in _IMP_core:
4575 _IMP_core.ClosedCubicSpline_swigregister(ClosedCubicSpline)
4576 class KClosePairsPairScore(IMP.PairScore):
4577  r"""Proxy of C++ IMP::core::KClosePairsPairScore class."""
4578 
4579  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4580 
4581  def __init__(self, f, r, k=1):
4582  r"""__init__(KClosePairsPairScore self, PairScore f, Refiner r, int k=1) -> KClosePairsPairScore"""
4583  _IMP_core.KClosePairsPairScore_swiginit(self, _IMP_core.new_KClosePairsPairScore(f, r, k))
4584 
4585  def get_close_pairs(self, pp):
4586  r"""get_close_pairs(KClosePairsPairScore self, IMP::ParticlePair const & pp) -> IMP::ParticlePairsTemp"""
4587  return _IMP_core.KClosePairsPairScore_get_close_pairs(self, pp)
4588 
4589  def create_current_decomposition(self, m, vt):
4590  r"""create_current_decomposition(KClosePairsPairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
4591  return _IMP_core.KClosePairsPairScore_create_current_decomposition(self, m, vt)
4592 
4593  def do_get_inputs(self, m, pis):
4594  r"""do_get_inputs(KClosePairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4595  return _IMP_core.KClosePairsPairScore_do_get_inputs(self, m, pis)
4596 
4597  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
4598  r"""evaluate_indexes(KClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
4599  return _IMP_core.KClosePairsPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
4600 
4601  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
4602  r"""evaluate_indexes_scores(KClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
4603  return _IMP_core.KClosePairsPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
4604 
4605  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
4606  r"""evaluate_indexes_delta(KClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
4607  return _IMP_core.KClosePairsPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
4608 
4609  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
4610  r"""evaluate_if_good_indexes(KClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
4611  return _IMP_core.KClosePairsPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
4612 
4613  def get_version_info(self):
4614  r"""get_version_info(KClosePairsPairScore self) -> VersionInfo"""
4615  return _IMP_core.KClosePairsPairScore_get_version_info(self)
4616  __swig_destroy__ = _IMP_core.delete_KClosePairsPairScore
4617 
4618  def __str__(self):
4619  r"""__str__(KClosePairsPairScore self) -> std::string"""
4620  return _IMP_core.KClosePairsPairScore___str__(self)
4621 
4622  def __repr__(self):
4623  r"""__repr__(KClosePairsPairScore self) -> std::string"""
4624  return _IMP_core.KClosePairsPairScore___repr__(self)
4625 
4626  @staticmethod
4627  def get_from(o):
4628  return _object_cast_to_KClosePairsPairScore(o)
4629 
4630 
4631 # Register KClosePairsPairScore in _IMP_core:
4632 _IMP_core.KClosePairsPairScore_swigregister(KClosePairsPairScore)
4633 class ClosePairsPairScore(IMP.PairScore):
4634  r"""Proxy of C++ IMP::core::ClosePairsPairScore class."""
4635 
4636  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4637 
4638  def __init__(self, f, r, max_distance):
4639  r"""__init__(ClosePairsPairScore self, PairScore f, Refiner r, IMP::Float max_distance) -> ClosePairsPairScore"""
4640  _IMP_core.ClosePairsPairScore_swiginit(self, _IMP_core.new_ClosePairsPairScore(f, r, max_distance))
4641 
4642  def get_close_pairs(self, pp):
4643  r"""get_close_pairs(ClosePairsPairScore self, IMP::ParticlePair const & pp) -> IMP::ParticlePairsTemp"""
4644  return _IMP_core.ClosePairsPairScore_get_close_pairs(self, pp)
4645 
4646  def create_current_decomposition(self, m, vt):
4647  r"""create_current_decomposition(ClosePairsPairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
4648  return _IMP_core.ClosePairsPairScore_create_current_decomposition(self, m, vt)
4649 
4650  def do_get_inputs(self, m, pis):
4651  r"""do_get_inputs(ClosePairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4652  return _IMP_core.ClosePairsPairScore_do_get_inputs(self, m, pis)
4653 
4654  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
4655  r"""evaluate_indexes(ClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
4656  return _IMP_core.ClosePairsPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
4657 
4658  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
4659  r"""evaluate_indexes_scores(ClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
4660  return _IMP_core.ClosePairsPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
4661 
4662  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
4663  r"""evaluate_indexes_delta(ClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
4664  return _IMP_core.ClosePairsPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
4665 
4666  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
4667  r"""evaluate_if_good_indexes(ClosePairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
4668  return _IMP_core.ClosePairsPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
4669 
4670  def get_version_info(self):
4671  r"""get_version_info(ClosePairsPairScore self) -> VersionInfo"""
4672  return _IMP_core.ClosePairsPairScore_get_version_info(self)
4673  __swig_destroy__ = _IMP_core.delete_ClosePairsPairScore
4674 
4675  def __str__(self):
4676  r"""__str__(ClosePairsPairScore self) -> std::string"""
4677  return _IMP_core.ClosePairsPairScore___str__(self)
4678 
4679  def __repr__(self):
4680  r"""__repr__(ClosePairsPairScore self) -> std::string"""
4681  return _IMP_core.ClosePairsPairScore___repr__(self)
4682 
4683  @staticmethod
4684  def get_from(o):
4685  return _object_cast_to_ClosePairsPairScore(o)
4686 
4687 
4688 # Register ClosePairsPairScore in _IMP_core:
4689 _IMP_core.ClosePairsPairScore_swigregister(ClosePairsPairScore)
4690 class ConjugateGradients(IMP.AttributeOptimizer):
4691  r"""Proxy of C++ IMP::core::ConjugateGradients class."""
4692 
4693  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4694 
4695  def __init__(self, *args):
4696  r"""
4697  __init__(ConjugateGradients self, Model m, std::string name="ConjugateGradients%1%") -> ConjugateGradients
4698  __init__(ConjugateGradients self) -> ConjugateGradients
4699  """
4700  _IMP_core.ConjugateGradients_swiginit(self, _IMP_core.new_ConjugateGradients(*args))
4701 
4702  def set_gradient_threshold(self, t):
4703  r"""set_gradient_threshold(ConjugateGradients self, IMP::Float t)"""
4704  return _IMP_core.ConjugateGradients_set_gradient_threshold(self, t)
4705 
4706  def set_max_change(self, t):
4707  r"""set_max_change(ConjugateGradients self, IMP::Float t)"""
4708  return _IMP_core.ConjugateGradients_set_max_change(self, t)
4709 
4710  def do_optimize(self, max_steps):
4711  r"""do_optimize(ConjugateGradients self, unsigned int max_steps) -> IMP::Float"""
4712  return _IMP_core.ConjugateGradients_do_optimize(self, max_steps)
4713 
4714  def get_version_info(self):
4715  r"""get_version_info(ConjugateGradients self) -> VersionInfo"""
4716  return _IMP_core.ConjugateGradients_get_version_info(self)
4717  __swig_destroy__ = _IMP_core.delete_ConjugateGradients
4718 
4719  def __str__(self):
4720  r"""__str__(ConjugateGradients self) -> std::string"""
4721  return _IMP_core.ConjugateGradients___str__(self)
4722 
4723  def __repr__(self):
4724  r"""__repr__(ConjugateGradients self) -> std::string"""
4725  return _IMP_core.ConjugateGradients___repr__(self)
4726 
4727  @staticmethod
4728  def get_from(o):
4729  return _object_cast_to_ConjugateGradients(o)
4730 
4731 
4732  def _get_as_binary(self):
4733  r"""_get_as_binary(ConjugateGradients self) -> PyObject *"""
4734  return _IMP_core.ConjugateGradients__get_as_binary(self)
4735 
4736  def _set_from_binary(self, p):
4737  r"""_set_from_binary(ConjugateGradients self, PyObject * p)"""
4738  return _IMP_core.ConjugateGradients__set_from_binary(self, p)
4739 
4740  def __getstate__(self):
4741  p = self._get_as_binary()
4742  if len(self.__dict__) > 1:
4743  d = self.__dict__.copy()
4744  del d['this']
4745  p = (d, p)
4746  return p
4747 
4748  def __setstate__(self, p):
4749  if not hasattr(self, 'this'):
4750  self.__init__()
4751  if isinstance(p, tuple):
4752  d, p = p
4753  self.__dict__.update(d)
4754  return self._set_from_binary(p)
4755 
4756 
4757 # Register ConjugateGradients in _IMP_core:
4758 _IMP_core.ConjugateGradients_swigregister(ConjugateGradients)
4759 class ConnectivityRestraint(IMP.Restraint):
4760  r"""Proxy of C++ IMP::core::ConnectivityRestraint class."""
4761 
4762  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4763 
4764  def __init__(self, ps, sc):
4765  r"""__init__(ConnectivityRestraint self, PairScore ps, _SingletonContainerAdaptor sc) -> ConnectivityRestraint"""
4766  _IMP_core.ConnectivityRestraint_swiginit(self, _IMP_core.new_ConnectivityRestraint(ps, sc))
4767 
4768  def get_connected_index_pairs(self):
4769  r"""get_connected_index_pairs(ConnectivityRestraint self) -> IMP::ParticleIndexPairs"""
4770  return _IMP_core.ConnectivityRestraint_get_connected_index_pairs(self)
4771 
4772  def get_pair_score(self):
4773  r"""get_pair_score(ConnectivityRestraint self) -> PairScore"""
4774  return _IMP_core.ConnectivityRestraint_get_pair_score(self)
4775 
4776  def do_create_current_decomposition(self):
4777  r"""do_create_current_decomposition(ConnectivityRestraint self) -> IMP::Restraints"""
4778  return _IMP_core.ConnectivityRestraint_do_create_current_decomposition(self)
4779 
4780  def do_get_inputs(self):
4781  r"""do_get_inputs(ConnectivityRestraint self) -> IMP::ModelObjectsTemp"""
4782  return _IMP_core.ConnectivityRestraint_do_get_inputs(self)
4783 
4784  def get_version_info(self):
4785  r"""get_version_info(ConnectivityRestraint self) -> VersionInfo"""
4786  return _IMP_core.ConnectivityRestraint_get_version_info(self)
4787  __swig_destroy__ = _IMP_core.delete_ConnectivityRestraint
4788 
4789  def __str__(self):
4790  r"""__str__(ConnectivityRestraint self) -> std::string"""
4791  return _IMP_core.ConnectivityRestraint___str__(self)
4792 
4793  def __repr__(self):
4794  r"""__repr__(ConnectivityRestraint self) -> std::string"""
4795  return _IMP_core.ConnectivityRestraint___repr__(self)
4796 
4797  @staticmethod
4798  def get_from(o):
4799  return _object_cast_to_ConnectivityRestraint(o)
4800 
4801 
4802 # Register ConnectivityRestraint in _IMP_core:
4803 _IMP_core.ConnectivityRestraint_swigregister(ConnectivityRestraint)
4804 class ConstantRestraint(IMP.Restraint):
4805  r"""Proxy of C++ IMP::core::ConstantRestraint class."""
4806 
4807  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4808 
4809  def __init__(self, *args):
4810  r"""
4811  __init__(ConstantRestraint self, Model m, IMP::Float v) -> ConstantRestraint
4812  __init__(ConstantRestraint self) -> ConstantRestraint
4813  """
4814  _IMP_core.ConstantRestraint_swiginit(self, _IMP_core.new_ConstantRestraint(*args))
4815 
4816  def do_get_inputs(self):
4817  r"""do_get_inputs(ConstantRestraint self) -> IMP::ModelObjectsTemp"""
4818  return _IMP_core.ConstantRestraint_do_get_inputs(self)
4819 
4820  def get_version_info(self):
4821  r"""get_version_info(ConstantRestraint self) -> VersionInfo"""
4822  return _IMP_core.ConstantRestraint_get_version_info(self)
4823  __swig_destroy__ = _IMP_core.delete_ConstantRestraint
4824 
4825  def __str__(self):
4826  r"""__str__(ConstantRestraint self) -> std::string"""
4827  return _IMP_core.ConstantRestraint___str__(self)
4828 
4829  def __repr__(self):
4830  r"""__repr__(ConstantRestraint self) -> std::string"""
4831  return _IMP_core.ConstantRestraint___repr__(self)
4832 
4833  @staticmethod
4834  def get_from(o):
4835  return _object_cast_to_ConstantRestraint(o)
4836 
4837 
4838  def _get_as_binary(self):
4839  r"""_get_as_binary(ConstantRestraint self) -> PyObject *"""
4840  return _IMP_core.ConstantRestraint__get_as_binary(self)
4841 
4842  def _set_from_binary(self, p):
4843  r"""_set_from_binary(ConstantRestraint self, PyObject * p)"""
4844  return _IMP_core.ConstantRestraint__set_from_binary(self, p)
4845 
4846  def __getstate__(self):
4847  p = self._get_as_binary()
4848  if len(self.__dict__) > 1:
4849  d = self.__dict__.copy()
4850  del d['this']
4851  p = (d, p)
4852  return p
4853 
4854  def __setstate__(self, p):
4855  if not hasattr(self, 'this'):
4856  self.__init__()
4857  if isinstance(p, tuple):
4858  d, p = p
4859  self.__dict__.update(d)
4860  return self._set_from_binary(p)
4861 
4862 
4863 # Register ConstantRestraint in _IMP_core:
4864 _IMP_core.ConstantRestraint_swigregister(ConstantRestraint)
4865 class Cosine(IMP.UnaryFunction):
4866  r"""Proxy of C++ IMP::core::Cosine class."""
4867 
4868  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4869 
4870  def __init__(self, *args):
4871  r"""
4872  __init__(Cosine self, IMP::Float force_constant, int periodicity, IMP::Float phase) -> Cosine
4873  __init__(Cosine self) -> Cosine
4874  """
4875  _IMP_core.Cosine_swiginit(self, _IMP_core.new_Cosine(*args))
4876 
4877  def get_version_info(self):
4878  r"""get_version_info(Cosine self) -> VersionInfo"""
4879  return _IMP_core.Cosine_get_version_info(self)
4880  __swig_destroy__ = _IMP_core.delete_Cosine
4881 
4882  def do_show(self, out):
4883  r"""do_show(Cosine self, _ostream out)"""
4884  return _IMP_core.Cosine_do_show(self, out)
4885 
4886  def __str__(self):
4887  r"""__str__(Cosine self) -> std::string"""
4888  return _IMP_core.Cosine___str__(self)
4889 
4890  def __repr__(self):
4891  r"""__repr__(Cosine self) -> std::string"""
4892  return _IMP_core.Cosine___repr__(self)
4893 
4894  @staticmethod
4895  def get_from(o):
4896  return _object_cast_to_Cosine(o)
4897 
4898 
4899  def _get_as_binary(self):
4900  r"""_get_as_binary(Cosine self) -> PyObject *"""
4901  return _IMP_core.Cosine__get_as_binary(self)
4902 
4903  def _set_from_binary(self, p):
4904  r"""_set_from_binary(Cosine self, PyObject * p)"""
4905  return _IMP_core.Cosine__set_from_binary(self, p)
4906 
4907  def __getstate__(self):
4908  p = self._get_as_binary()
4909  if len(self.__dict__) > 1:
4910  d = self.__dict__.copy()
4911  del d['this']
4912  p = (d, p)
4913  return p
4914 
4915  def __setstate__(self, p):
4916  if not hasattr(self, 'this'):
4917  self.__init__()
4918  if isinstance(p, tuple):
4919  d, p = p
4920  self.__dict__.update(d)
4921  return self._set_from_binary(p)
4922 
4923 
4924 # Register Cosine in _IMP_core:
4925 _IMP_core.Cosine_swigregister(Cosine)
4926 class CoverRefined(IMP.SingletonModifier):
4927  r"""Proxy of C++ IMP::core::CoverRefined class."""
4928 
4929  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4930 
4931  def __init__(self, ref, slack=0):
4932  r"""__init__(CoverRefined self, Refiner ref, IMP::Float slack=0) -> CoverRefined"""
4933  _IMP_core.CoverRefined_swiginit(self, _IMP_core.new_CoverRefined(ref, slack))
4934 
4935  def set_slack(self, slack):
4936  r"""set_slack(CoverRefined self, IMP::Float slack)"""
4937  return _IMP_core.CoverRefined_set_slack(self, slack)
4938 
4939  def do_get_inputs(self, m, pis):
4940  r"""do_get_inputs(CoverRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4941  return _IMP_core.CoverRefined_do_get_inputs(self, m, pis)
4942 
4943  def do_get_outputs(self, m, pis):
4944  r"""do_get_outputs(CoverRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4945  return _IMP_core.CoverRefined_do_get_outputs(self, m, pis)
4946 
4947  def get_version_info(self):
4948  r"""get_version_info(CoverRefined self) -> VersionInfo"""
4949  return _IMP_core.CoverRefined_get_version_info(self)
4950  __swig_destroy__ = _IMP_core.delete_CoverRefined
4951 
4952  def __str__(self):
4953  r"""__str__(CoverRefined self) -> std::string"""
4954  return _IMP_core.CoverRefined___str__(self)
4955 
4956  def __repr__(self):
4957  r"""__repr__(CoverRefined self) -> std::string"""
4958  return _IMP_core.CoverRefined___repr__(self)
4959 
4960  @staticmethod
4961  def get_from(o):
4962  return _object_cast_to_CoverRefined(o)
4963 
4964 
4965 # Register CoverRefined in _IMP_core:
4966 _IMP_core.CoverRefined_swigregister(CoverRefined)
4967 class Cover(XYZR):
4968  r"""Proxy of C++ IMP::core::Cover class."""
4969 
4970  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4971 
4972  def get_constraint(self):
4973  r"""get_constraint(Cover self) -> Constraint"""
4974  return _IMP_core.Cover_get_constraint(self)
4975 
4976  def __init__(self, *args):
4977  r"""
4978  __init__(Cover self) -> Cover
4979  __init__(Cover self, Model m, ParticleIndex id) -> Cover
4980  __init__(Cover self, _ParticleAdaptor d) -> Cover
4981  """
4982  _IMP_core.Cover_swiginit(self, _IMP_core.new_Cover(*args))
4983 
4984  def show(self, *args):
4985  r"""show(Cover self, _ostream out=std::cout)"""
4986  return _IMP_core.Cover_show(self, *args)
4987 
4988  @staticmethod
4989  def setup_particle(*args):
4990  r"""
4991  setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor members) -> Cover
4992  setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor members) -> Cover
4993  setup_particle(Model m, ParticleIndex pi, Refiner refiner) -> Cover
4994  setup_particle(_ParticleAdaptor pa, Refiner refiner) -> Cover
4995  """
4996  return _IMP_core.Cover_setup_particle(*args)
4997 
4998  @staticmethod
4999  def get_is_setup(*args):
5000  r"""
5001  get_is_setup(_ParticleAdaptor p) -> bool
5002  get_is_setup(Model m, ParticleIndex pi) -> bool
5003  """
5004  return _IMP_core.Cover_get_is_setup(*args)
5005 
5006  def add_attribute(self, *args):
5007  r"""
5008  add_attribute(Cover self, FloatKey k, IMP::Float v, bool opt)
5009  add_attribute(Cover self, FloatKey a0, IMP::Float a1)
5010  add_attribute(Cover self, IntKey a0, IMP::Int a1)
5011  add_attribute(Cover self, FloatsKey a0, IMP::Floats a1)
5012  add_attribute(Cover self, IntsKey a0, IMP::Ints a1)
5013  add_attribute(Cover self, StringKey a0, IMP::String a1)
5014  add_attribute(Cover self, ParticleIndexKey a0, Particle a1)
5015  add_attribute(Cover self, ObjectKey a0, Object a1)
5016  add_attribute(Cover self, SparseFloatKey a0, IMP::Float a1)
5017  add_attribute(Cover self, SparseIntKey a0, IMP::Int a1)
5018  add_attribute(Cover self, SparseStringKey a0, IMP::String a1)
5019  add_attribute(Cover self, SparseParticleIndexKey a0, ParticleIndex a1)
5020  """
5021  return _IMP_core.Cover_add_attribute(self, *args)
5022 
5023  def get_value(self, *args):
5024  r"""
5025  get_value(Cover self, FloatKey a0) -> IMP::Float
5026  get_value(Cover self, IntKey a0) -> IMP::Int
5027  get_value(Cover self, FloatsKey a0) -> IMP::Floats
5028  get_value(Cover self, IntsKey a0) -> IMP::Ints
5029  get_value(Cover self, StringKey a0) -> IMP::String
5030  get_value(Cover self, ParticleIndexKey a0) -> Particle
5031  get_value(Cover self, ObjectKey a0) -> Object
5032  get_value(Cover self, SparseFloatKey a0) -> IMP::Float
5033  get_value(Cover self, SparseIntKey a0) -> IMP::Int
5034  get_value(Cover self, SparseStringKey a0) -> IMP::String
5035  get_value(Cover self, SparseParticleIndexKey a0) -> ParticleIndex
5036  """
5037  return _IMP_core.Cover_get_value(self, *args)
5038 
5039  def set_value(self, *args):
5040  r"""
5041  set_value(Cover self, FloatKey a0, IMP::Float a1)
5042  set_value(Cover self, IntKey a0, IMP::Int a1)
5043  set_value(Cover self, FloatsKey a0, IMP::Floats a1)
5044  set_value(Cover self, IntsKey a0, IMP::Ints a1)
5045  set_value(Cover self, StringKey a0, IMP::String a1)
5046  set_value(Cover self, ParticleIndexKey a0, Particle a1)
5047  set_value(Cover self, ObjectKey a0, Object a1)
5048  set_value(Cover self, SparseFloatKey a0, IMP::Float a1)
5049  set_value(Cover self, SparseIntKey a0, IMP::Int a1)
5050  set_value(Cover self, SparseStringKey a0, IMP::String a1)
5051  set_value(Cover self, SparseParticleIndexKey a0, ParticleIndex a1)
5052  """
5053  return _IMP_core.Cover_set_value(self, *args)
5054 
5055  def remove_attribute(self, *args):
5056  r"""
5057  remove_attribute(Cover self, FloatKey a0)
5058  remove_attribute(Cover self, IntKey a0)
5059  remove_attribute(Cover self, FloatsKey a0)
5060  remove_attribute(Cover self, IntsKey a0)
5061  remove_attribute(Cover self, StringKey a0)
5062  remove_attribute(Cover self, ParticleIndexKey a0)
5063  remove_attribute(Cover self, ObjectKey a0)
5064  remove_attribute(Cover self, SparseFloatKey a0)
5065  remove_attribute(Cover self, SparseIntKey a0)
5066  remove_attribute(Cover self, SparseStringKey a0)
5067  remove_attribute(Cover self, SparseParticleIndexKey a0)
5068  """
5069  return _IMP_core.Cover_remove_attribute(self, *args)
5070 
5071  def has_attribute(self, *args):
5072  r"""
5073  has_attribute(Cover self, FloatKey a0) -> bool
5074  has_attribute(Cover self, IntKey a0) -> bool
5075  has_attribute(Cover self, FloatsKey a0) -> bool
5076  has_attribute(Cover self, IntsKey a0) -> bool
5077  has_attribute(Cover self, StringKey a0) -> bool
5078  has_attribute(Cover self, ParticleIndexKey a0) -> bool
5079  has_attribute(Cover self, ObjectKey a0) -> bool
5080  has_attribute(Cover self, SparseFloatKey a0) -> bool
5081  has_attribute(Cover self, SparseIntKey a0) -> bool
5082  has_attribute(Cover self, SparseStringKey a0) -> bool
5083  has_attribute(Cover self, SparseParticleIndexKey a0) -> bool
5084  """
5085  return _IMP_core.Cover_has_attribute(self, *args)
5086 
5087  def get_derivative(self, a0):
5088  r"""get_derivative(Cover self, FloatKey a0) -> double"""
5089  return _IMP_core.Cover_get_derivative(self, a0)
5090 
5091  def get_name(self):
5092  r"""get_name(Cover self) -> std::string"""
5093  return _IMP_core.Cover_get_name(self)
5094 
5095  def clear_caches(self):
5096  r"""clear_caches(Cover self)"""
5097  return _IMP_core.Cover_clear_caches(self)
5098 
5099  def set_name(self, a0):
5100  r"""set_name(Cover self, std::string a0)"""
5101  return _IMP_core.Cover_set_name(self, a0)
5102 
5103  def set_check_level(self, a0):
5104  r"""set_check_level(Cover self, IMP::CheckLevel a0)"""
5105  return _IMP_core.Cover_set_check_level(self, a0)
5106 
5107  def add_to_derivative(self, a0, a1, a2):
5108  r"""add_to_derivative(Cover self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5109  return _IMP_core.Cover_add_to_derivative(self, a0, a1, a2)
5110 
5111  def set_is_optimized(self, a0, a1):
5112  r"""set_is_optimized(Cover self, FloatKey a0, bool a1)"""
5113  return _IMP_core.Cover_set_is_optimized(self, a0, a1)
5114 
5115  def get_is_optimized(self, a0):
5116  r"""get_is_optimized(Cover self, FloatKey a0) -> bool"""
5117  return _IMP_core.Cover_get_is_optimized(self, a0)
5118 
5119  def get_check_level(self):
5120  r"""get_check_level(Cover self) -> IMP::CheckLevel"""
5121  return _IMP_core.Cover_get_check_level(self)
5122 
5123  def __eq__(self, *args):
5124  r"""
5125  __eq__(Cover self, Cover o) -> bool
5126  __eq__(Cover self, Particle d) -> bool
5127  """
5128  return _IMP_core.Cover___eq__(self, *args)
5129 
5130  def __ne__(self, *args):
5131  r"""
5132  __ne__(Cover self, Cover o) -> bool
5133  __ne__(Cover self, Particle d) -> bool
5134  """
5135  return _IMP_core.Cover___ne__(self, *args)
5136 
5137  def __le__(self, *args):
5138  r"""
5139  __le__(Cover self, Cover o) -> bool
5140  __le__(Cover self, Particle d) -> bool
5141  """
5142  return _IMP_core.Cover___le__(self, *args)
5143 
5144  def __lt__(self, *args):
5145  r"""
5146  __lt__(Cover self, Cover o) -> bool
5147  __lt__(Cover self, Particle d) -> bool
5148  """
5149  return _IMP_core.Cover___lt__(self, *args)
5150 
5151  def __ge__(self, *args):
5152  r"""
5153  __ge__(Cover self, Cover o) -> bool
5154  __ge__(Cover self, Particle d) -> bool
5155  """
5156  return _IMP_core.Cover___ge__(self, *args)
5157 
5158  def __gt__(self, *args):
5159  r"""
5160  __gt__(Cover self, Cover o) -> bool
5161  __gt__(Cover self, Particle d) -> bool
5162  """
5163  return _IMP_core.Cover___gt__(self, *args)
5164 
5165  def __hash__(self):
5166  r"""__hash__(Cover self) -> std::size_t"""
5167  return _IMP_core.Cover___hash__(self)
5168 
5169  def __str__(self):
5170  r"""__str__(Cover self) -> std::string"""
5171  return _IMP_core.Cover___str__(self)
5172 
5173  def __repr__(self):
5174  r"""__repr__(Cover self) -> std::string"""
5175  return _IMP_core.Cover___repr__(self)
5176 
5177  def _get_as_binary(self):
5178  r"""_get_as_binary(Cover self) -> PyObject *"""
5179  return _IMP_core.Cover__get_as_binary(self)
5180 
5181  def _set_from_binary(self, p):
5182  r"""_set_from_binary(Cover self, PyObject * p)"""
5183  return _IMP_core.Cover__set_from_binary(self, p)
5184 
5185  def __getstate__(self):
5186  p = self._get_as_binary()
5187  if len(self.__dict__) > 1:
5188  d = self.__dict__.copy()
5189  del d['this']
5190  p = (d, p)
5191  return p
5192 
5193  def __setstate__(self, p):
5194  if not hasattr(self, 'this'):
5195  self.__init__()
5196  if isinstance(p, tuple):
5197  d, p = p
5198  self.__dict__.update(d)
5199  return self._set_from_binary(p)
5200 
5201  __swig_destroy__ = _IMP_core.delete_Cover
5202 
5203 # Register Cover in _IMP_core:
5204 _IMP_core.Cover_swigregister(Cover)
5205 class DerivativesFromRefined(IMP.SingletonModifier):
5206  r"""Proxy of C++ IMP::core::DerivativesFromRefined class."""
5207 
5208  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5209 
5210  def __init__(self, *args):
5211  r"""__init__(DerivativesFromRefined self, Refiner r, IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> DerivativesFromRefined"""
5212  _IMP_core.DerivativesFromRefined_swiginit(self, _IMP_core.new_DerivativesFromRefined(*args))
5213 
5214  def do_get_inputs(self, m, pis):
5215  r"""do_get_inputs(DerivativesFromRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5216  return _IMP_core.DerivativesFromRefined_do_get_inputs(self, m, pis)
5217 
5218  def do_get_outputs(self, m, pis):
5219  r"""do_get_outputs(DerivativesFromRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5220  return _IMP_core.DerivativesFromRefined_do_get_outputs(self, m, pis)
5221 
5222  def get_version_info(self):
5223  r"""get_version_info(DerivativesFromRefined self) -> VersionInfo"""
5224  return _IMP_core.DerivativesFromRefined_get_version_info(self)
5225  __swig_destroy__ = _IMP_core.delete_DerivativesFromRefined
5226 
5227  def __str__(self):
5228  r"""__str__(DerivativesFromRefined self) -> std::string"""
5229  return _IMP_core.DerivativesFromRefined___str__(self)
5230 
5231  def __repr__(self):
5232  r"""__repr__(DerivativesFromRefined self) -> std::string"""
5233  return _IMP_core.DerivativesFromRefined___repr__(self)
5234 
5235  @staticmethod
5236  def get_from(o):
5237  return _object_cast_to_DerivativesFromRefined(o)
5238 
5239 
5240 # Register DerivativesFromRefined in _IMP_core:
5241 _IMP_core.DerivativesFromRefined_swigregister(DerivativesFromRefined)
5242 class DerivativesToRefined(IMP.SingletonModifier):
5243  r"""Proxy of C++ IMP::core::DerivativesToRefined class."""
5244 
5245  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5246 
5247  def __init__(self, *args):
5248  r"""__init__(DerivativesToRefined self, Refiner r, IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> DerivativesToRefined"""
5249  _IMP_core.DerivativesToRefined_swiginit(self, _IMP_core.new_DerivativesToRefined(*args))
5250 
5251  def do_get_inputs(self, m, pis):
5252  r"""do_get_inputs(DerivativesToRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5253  return _IMP_core.DerivativesToRefined_do_get_inputs(self, m, pis)
5254 
5255  def do_get_outputs(self, m, pis):
5256  r"""do_get_outputs(DerivativesToRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5257  return _IMP_core.DerivativesToRefined_do_get_outputs(self, m, pis)
5258 
5259  def get_version_info(self):
5260  r"""get_version_info(DerivativesToRefined self) -> VersionInfo"""
5261  return _IMP_core.DerivativesToRefined_get_version_info(self)
5262  __swig_destroy__ = _IMP_core.delete_DerivativesToRefined
5263 
5264  def __str__(self):
5265  r"""__str__(DerivativesToRefined self) -> std::string"""
5266  return _IMP_core.DerivativesToRefined___str__(self)
5267 
5268  def __repr__(self):
5269  r"""__repr__(DerivativesToRefined self) -> std::string"""
5270  return _IMP_core.DerivativesToRefined___repr__(self)
5271 
5272  @staticmethod
5273  def get_from(o):
5274  return _object_cast_to_DerivativesToRefined(o)
5275 
5276 
5277 # Register DerivativesToRefined in _IMP_core:
5278 _IMP_core.DerivativesToRefined_swigregister(DerivativesToRefined)
5279 class DiameterRestraint(IMP.Restraint):
5280  r"""Proxy of C++ IMP::core::DiameterRestraint class."""
5281 
5282  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5283 
5284  def __init__(self, f, sc, diameter):
5285  r"""__init__(DiameterRestraint self, UnaryFunction f, SingletonContainer sc, IMP::Float diameter) -> DiameterRestraint"""
5286  _IMP_core.DiameterRestraint_swiginit(self, _IMP_core.new_DiameterRestraint(f, sc, diameter))
5287 
5288  def do_get_inputs(self):
5289  r"""do_get_inputs(DiameterRestraint self) -> IMP::ModelObjectsTemp"""
5290  return _IMP_core.DiameterRestraint_do_get_inputs(self)
5291 
5292  def get_version_info(self):
5293  r"""get_version_info(DiameterRestraint self) -> VersionInfo"""
5294  return _IMP_core.DiameterRestraint_get_version_info(self)
5295  __swig_destroy__ = _IMP_core.delete_DiameterRestraint
5296 
5297  def do_create_decomposition(self):
5298  r"""do_create_decomposition(DiameterRestraint self) -> IMP::Restraints"""
5299  return _IMP_core.DiameterRestraint_do_create_decomposition(self)
5300 
5301  def do_create_current_decomposition(self):
5302  r"""do_create_current_decomposition(DiameterRestraint self) -> IMP::Restraints"""
5303  return _IMP_core.DiameterRestraint_do_create_current_decomposition(self)
5304 
5305  def __str__(self):
5306  r"""__str__(DiameterRestraint self) -> std::string"""
5307  return _IMP_core.DiameterRestraint___str__(self)
5308 
5309  def __repr__(self):
5310  r"""__repr__(DiameterRestraint self) -> std::string"""
5311  return _IMP_core.DiameterRestraint___repr__(self)
5312 
5313  @staticmethod
5314  def get_from(o):
5315  return _object_cast_to_DiameterRestraint(o)
5316 
5317 
5318 # Register DiameterRestraint in _IMP_core:
5319 _IMP_core.DiameterRestraint_swigregister(DiameterRestraint)
5320 class Transform(IMP.SingletonModifier):
5321  r"""Proxy of C++ IMP::core::Transform class."""
5322 
5323  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5324 
5325  def __init__(self, *args):
5326  r"""
5327  __init__(Transform self, Transformation3D t, bool ignore_non_xyz=False) -> Transform
5328  __init__(Transform self) -> Transform
5329  """
5330  _IMP_core.Transform_swiginit(self, _IMP_core.new_Transform(*args))
5331 
5332  def do_get_inputs(self, m, pis):
5333  r"""do_get_inputs(Transform self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5334  return _IMP_core.Transform_do_get_inputs(self, m, pis)
5335 
5336  def do_get_outputs(self, m, pis):
5337  r"""do_get_outputs(Transform self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5338  return _IMP_core.Transform_do_get_outputs(self, m, pis)
5339 
5340  def get_version_info(self):
5341  r"""get_version_info(Transform self) -> VersionInfo"""
5342  return _IMP_core.Transform_get_version_info(self)
5343  __swig_destroy__ = _IMP_core.delete_Transform
5344 
5345  def __str__(self):
5346  r"""__str__(Transform self) -> std::string"""
5347  return _IMP_core.Transform___str__(self)
5348 
5349  def __repr__(self):
5350  r"""__repr__(Transform self) -> std::string"""
5351  return _IMP_core.Transform___repr__(self)
5352 
5353  @staticmethod
5354  def get_from(o):
5355  return _object_cast_to_Transform(o)
5356 
5357 
5358  def _get_as_binary(self):
5359  r"""_get_as_binary(Transform self) -> PyObject *"""
5360  return _IMP_core.Transform__get_as_binary(self)
5361 
5362  def _set_from_binary(self, p):
5363  r"""_set_from_binary(Transform self, PyObject * p)"""
5364  return _IMP_core.Transform__set_from_binary(self, p)
5365 
5366  def __getstate__(self):
5367  p = self._get_as_binary()
5368  if len(self.__dict__) > 1:
5369  d = self.__dict__.copy()
5370  del d['this']
5371  p = (d, p)
5372  return p
5373 
5374  def __setstate__(self, p):
5375  if not hasattr(self, 'this'):
5376  self.__init__()
5377  if isinstance(p, tuple):
5378  d, p = p
5379  self.__dict__.update(d)
5380  return self._set_from_binary(p)
5381 
5382 
5383 # Register Transform in _IMP_core:
5384 _IMP_core.Transform_swigregister(Transform)
5385 class Reference(IMP.Decorator):
5386  r"""Proxy of C++ IMP::core::Reference class."""
5387 
5388  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5389 
5390  def __init__(self, *args):
5391  r"""
5392  __init__(Reference self) -> Reference
5393  __init__(Reference self, Model m, ParticleIndex id) -> Reference
5394  __init__(Reference self, _ParticleAdaptor d) -> Reference
5395  """
5396  _IMP_core.Reference_swiginit(self, _IMP_core.new_Reference(*args))
5397 
5398  def show(self, *args):
5399  r"""show(Reference self, _ostream out=std::cout)"""
5400  return _IMP_core.Reference_show(self, *args)
5401 
5402  @staticmethod
5403  def setup_particle(*args):
5404  r"""
5405  setup_particle(Model m, ParticleIndex pi, _ParticleIndexAdaptor reference) -> Reference
5406  setup_particle(_ParticleAdaptor pa, _ParticleIndexAdaptor reference) -> Reference
5407  """
5408  return _IMP_core.Reference_setup_particle(*args)
5409 
5410  def get_reference_particle(self):
5411  r"""get_reference_particle(Reference self) -> Particle"""
5412  return _IMP_core.Reference_get_reference_particle(self)
5413 
5414  @staticmethod
5415  def get_is_setup(*args):
5416  r"""
5417  get_is_setup(_ParticleAdaptor p) -> bool
5418  get_is_setup(Model m, ParticleIndex pi) -> bool
5419  """
5420  return _IMP_core.Reference_get_is_setup(*args)
5421 
5422  @staticmethod
5423  def get_reference_key():
5424  r"""get_reference_key() -> ParticleIndexKey"""
5425  return _IMP_core.Reference_get_reference_key()
5426 
5427  def add_attribute(self, *args):
5428  r"""
5429  add_attribute(Reference self, FloatKey k, IMP::Float v, bool opt)
5430  add_attribute(Reference self, FloatKey a0, IMP::Float a1)
5431  add_attribute(Reference self, IntKey a0, IMP::Int a1)
5432  add_attribute(Reference self, FloatsKey a0, IMP::Floats a1)
5433  add_attribute(Reference self, IntsKey a0, IMP::Ints a1)
5434  add_attribute(Reference self, StringKey a0, IMP::String a1)
5435  add_attribute(Reference self, ParticleIndexKey a0, Particle a1)
5436  add_attribute(Reference self, ObjectKey a0, Object a1)
5437  add_attribute(Reference self, SparseFloatKey a0, IMP::Float a1)
5438  add_attribute(Reference self, SparseIntKey a0, IMP::Int a1)
5439  add_attribute(Reference self, SparseStringKey a0, IMP::String a1)
5440  add_attribute(Reference self, SparseParticleIndexKey a0, ParticleIndex a1)
5441  """
5442  return _IMP_core.Reference_add_attribute(self, *args)
5443 
5444  def get_value(self, *args):
5445  r"""
5446  get_value(Reference self, FloatKey a0) -> IMP::Float
5447  get_value(Reference self, IntKey a0) -> IMP::Int
5448  get_value(Reference self, FloatsKey a0) -> IMP::Floats
5449  get_value(Reference self, IntsKey a0) -> IMP::Ints
5450  get_value(Reference self, StringKey a0) -> IMP::String
5451  get_value(Reference self, ParticleIndexKey a0) -> Particle
5452  get_value(Reference self, ObjectKey a0) -> Object
5453  get_value(Reference self, SparseFloatKey a0) -> IMP::Float
5454  get_value(Reference self, SparseIntKey a0) -> IMP::Int
5455  get_value(Reference self, SparseStringKey a0) -> IMP::String
5456  get_value(Reference self, SparseParticleIndexKey a0) -> ParticleIndex
5457  """
5458  return _IMP_core.Reference_get_value(self, *args)
5459 
5460  def set_value(self, *args):
5461  r"""
5462  set_value(Reference self, FloatKey a0, IMP::Float a1)
5463  set_value(Reference self, IntKey a0, IMP::Int a1)
5464  set_value(Reference self, FloatsKey a0, IMP::Floats a1)
5465  set_value(Reference self, IntsKey a0, IMP::Ints a1)
5466  set_value(Reference self, StringKey a0, IMP::String a1)
5467  set_value(Reference self, ParticleIndexKey a0, Particle a1)
5468  set_value(Reference self, ObjectKey a0, Object a1)
5469  set_value(Reference self, SparseFloatKey a0, IMP::Float a1)
5470  set_value(Reference self, SparseIntKey a0, IMP::Int a1)
5471  set_value(Reference self, SparseStringKey a0, IMP::String a1)
5472  set_value(Reference self, SparseParticleIndexKey a0, ParticleIndex a1)
5473  """
5474  return _IMP_core.Reference_set_value(self, *args)
5475 
5476  def remove_attribute(self, *args):
5477  r"""
5478  remove_attribute(Reference self, FloatKey a0)
5479  remove_attribute(Reference self, IntKey a0)
5480  remove_attribute(Reference self, FloatsKey a0)
5481  remove_attribute(Reference self, IntsKey a0)
5482  remove_attribute(Reference self, StringKey a0)
5483  remove_attribute(Reference self, ParticleIndexKey a0)
5484  remove_attribute(Reference self, ObjectKey a0)
5485  remove_attribute(Reference self, SparseFloatKey a0)
5486  remove_attribute(Reference self, SparseIntKey a0)
5487  remove_attribute(Reference self, SparseStringKey a0)
5488  remove_attribute(Reference self, SparseParticleIndexKey a0)
5489  """
5490  return _IMP_core.Reference_remove_attribute(self, *args)
5491 
5492  def has_attribute(self, *args):
5493  r"""
5494  has_attribute(Reference self, FloatKey a0) -> bool
5495  has_attribute(Reference self, IntKey a0) -> bool
5496  has_attribute(Reference self, FloatsKey a0) -> bool
5497  has_attribute(Reference self, IntsKey a0) -> bool
5498  has_attribute(Reference self, StringKey a0) -> bool
5499  has_attribute(Reference self, ParticleIndexKey a0) -> bool
5500  has_attribute(Reference self, ObjectKey a0) -> bool
5501  has_attribute(Reference self, SparseFloatKey a0) -> bool
5502  has_attribute(Reference self, SparseIntKey a0) -> bool
5503  has_attribute(Reference self, SparseStringKey a0) -> bool
5504  has_attribute(Reference self, SparseParticleIndexKey a0) -> bool
5505  """
5506  return _IMP_core.Reference_has_attribute(self, *args)
5507 
5508  def get_derivative(self, a0):
5509  r"""get_derivative(Reference self, FloatKey a0) -> double"""
5510  return _IMP_core.Reference_get_derivative(self, a0)
5511 
5512  def get_name(self):
5513  r"""get_name(Reference self) -> std::string"""
5514  return _IMP_core.Reference_get_name(self)
5515 
5516  def clear_caches(self):
5517  r"""clear_caches(Reference self)"""
5518  return _IMP_core.Reference_clear_caches(self)
5519 
5520  def set_name(self, a0):
5521  r"""set_name(Reference self, std::string a0)"""
5522  return _IMP_core.Reference_set_name(self, a0)
5523 
5524  def set_check_level(self, a0):
5525  r"""set_check_level(Reference self, IMP::CheckLevel a0)"""
5526  return _IMP_core.Reference_set_check_level(self, a0)
5527 
5528  def add_to_derivative(self, a0, a1, a2):
5529  r"""add_to_derivative(Reference self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5530  return _IMP_core.Reference_add_to_derivative(self, a0, a1, a2)
5531 
5532  def set_is_optimized(self, a0, a1):
5533  r"""set_is_optimized(Reference self, FloatKey a0, bool a1)"""
5534  return _IMP_core.Reference_set_is_optimized(self, a0, a1)
5535 
5536  def get_is_optimized(self, a0):
5537  r"""get_is_optimized(Reference self, FloatKey a0) -> bool"""
5538  return _IMP_core.Reference_get_is_optimized(self, a0)
5539 
5540  def get_check_level(self):
5541  r"""get_check_level(Reference self) -> IMP::CheckLevel"""
5542  return _IMP_core.Reference_get_check_level(self)
5543 
5544  def __eq__(self, *args):
5545  r"""
5546  __eq__(Reference self, Reference o) -> bool
5547  __eq__(Reference self, Particle d) -> bool
5548  """
5549  return _IMP_core.Reference___eq__(self, *args)
5550 
5551  def __ne__(self, *args):
5552  r"""
5553  __ne__(Reference self, Reference o) -> bool
5554  __ne__(Reference self, Particle d) -> bool
5555  """
5556  return _IMP_core.Reference___ne__(self, *args)
5557 
5558  def __le__(self, *args):
5559  r"""
5560  __le__(Reference self, Reference o) -> bool
5561  __le__(Reference self, Particle d) -> bool
5562  """
5563  return _IMP_core.Reference___le__(self, *args)
5564 
5565  def __lt__(self, *args):
5566  r"""
5567  __lt__(Reference self, Reference o) -> bool
5568  __lt__(Reference self, Particle d) -> bool
5569  """
5570  return _IMP_core.Reference___lt__(self, *args)
5571 
5572  def __ge__(self, *args):
5573  r"""
5574  __ge__(Reference self, Reference o) -> bool
5575  __ge__(Reference self, Particle d) -> bool
5576  """
5577  return _IMP_core.Reference___ge__(self, *args)
5578 
5579  def __gt__(self, *args):
5580  r"""
5581  __gt__(Reference self, Reference o) -> bool
5582  __gt__(Reference self, Particle d) -> bool
5583  """
5584  return _IMP_core.Reference___gt__(self, *args)
5585 
5586  def __hash__(self):
5587  r"""__hash__(Reference self) -> std::size_t"""
5588  return _IMP_core.Reference___hash__(self)
5589 
5590  def __str__(self):
5591  r"""__str__(Reference self) -> std::string"""
5592  return _IMP_core.Reference___str__(self)
5593 
5594  def __repr__(self):
5595  r"""__repr__(Reference self) -> std::string"""
5596  return _IMP_core.Reference___repr__(self)
5597 
5598  def _get_as_binary(self):
5599  r"""_get_as_binary(Reference self) -> PyObject *"""
5600  return _IMP_core.Reference__get_as_binary(self)
5601 
5602  def _set_from_binary(self, p):
5603  r"""_set_from_binary(Reference self, PyObject * p)"""
5604  return _IMP_core.Reference__set_from_binary(self, p)
5605 
5606  def __getstate__(self):
5607  p = self._get_as_binary()
5608  if len(self.__dict__) > 1:
5609  d = self.__dict__.copy()
5610  del d['this']
5611  p = (d, p)
5612  return p
5613 
5614  def __setstate__(self, p):
5615  if not hasattr(self, 'this'):
5616  self.__init__()
5617  if isinstance(p, tuple):
5618  d, p = p
5619  self.__dict__.update(d)
5620  return self._set_from_binary(p)
5621 
5622  __swig_destroy__ = _IMP_core.delete_Reference
5623 
5624 # Register Reference in _IMP_core:
5625 _IMP_core.Reference_swigregister(Reference)
5626 class TransformationAndReflectionSymmetry(IMP.SingletonModifier):
5627  r"""Proxy of C++ IMP::core::TransformationAndReflectionSymmetry class."""
5628 
5629  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5630 
5631  def __init__(self, t, r):
5632  r"""__init__(TransformationAndReflectionSymmetry self, Transformation3D t, Reflection3D r) -> TransformationAndReflectionSymmetry"""
5633  _IMP_core.TransformationAndReflectionSymmetry_swiginit(self, _IMP_core.new_TransformationAndReflectionSymmetry(t, r))
5634 
5635  def do_get_inputs(self, m, pis):
5636  r"""do_get_inputs(TransformationAndReflectionSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5637  return _IMP_core.TransformationAndReflectionSymmetry_do_get_inputs(self, m, pis)
5638 
5639  def do_get_outputs(self, m, pis):
5640  r"""do_get_outputs(TransformationAndReflectionSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5641  return _IMP_core.TransformationAndReflectionSymmetry_do_get_outputs(self, m, pis)
5642 
5643  def get_version_info(self):
5644  r"""get_version_info(TransformationAndReflectionSymmetry self) -> VersionInfo"""
5645  return _IMP_core.TransformationAndReflectionSymmetry_get_version_info(self)
5646  __swig_destroy__ = _IMP_core.delete_TransformationAndReflectionSymmetry
5647 
5648  def __str__(self):
5649  r"""__str__(TransformationAndReflectionSymmetry self) -> std::string"""
5650  return _IMP_core.TransformationAndReflectionSymmetry___str__(self)
5651 
5652  def __repr__(self):
5653  r"""__repr__(TransformationAndReflectionSymmetry self) -> std::string"""
5654  return _IMP_core.TransformationAndReflectionSymmetry___repr__(self)
5655 
5656  @staticmethod
5657  def get_from(o):
5658  return _object_cast_to_TransformationAndReflectionSymmetry(o)
5659 
5660 
5661 # Register TransformationAndReflectionSymmetry in _IMP_core:
5662 _IMP_core.TransformationAndReflectionSymmetry_swigregister(TransformationAndReflectionSymmetry)
5663 class TransformationSymmetry(IMP.SingletonModifier):
5664  r"""Proxy of C++ IMP::core::TransformationSymmetry 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__(TransformationSymmetry self, Transformation3D t) -> TransformationSymmetry
5671  __init__(TransformationSymmetry self, ParticleIndex rb_pi) -> TransformationSymmetry
5672  """
5673  _IMP_core.TransformationSymmetry_swiginit(self, _IMP_core.new_TransformationSymmetry(*args))
5674 
5675  def get_transformation(self):
5676  r"""get_transformation(TransformationSymmetry self) -> Transformation3D"""
5677  return _IMP_core.TransformationSymmetry_get_transformation(self)
5678 
5679  def set_transformation(self, t):
5680  r"""set_transformation(TransformationSymmetry self, Transformation3D t)"""
5681  return _IMP_core.TransformationSymmetry_set_transformation(self, t)
5682 
5683  def do_get_inputs(self, m, pis):
5684  r"""do_get_inputs(TransformationSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5685  return _IMP_core.TransformationSymmetry_do_get_inputs(self, m, pis)
5686 
5687  def do_get_outputs(self, m, pis):
5688  r"""do_get_outputs(TransformationSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5689  return _IMP_core.TransformationSymmetry_do_get_outputs(self, m, pis)
5690 
5691  def get_version_info(self):
5692  r"""get_version_info(TransformationSymmetry self) -> VersionInfo"""
5693  return _IMP_core.TransformationSymmetry_get_version_info(self)
5694  __swig_destroy__ = _IMP_core.delete_TransformationSymmetry
5695 
5696  def __str__(self):
5697  r"""__str__(TransformationSymmetry self) -> std::string"""
5698  return _IMP_core.TransformationSymmetry___str__(self)
5699 
5700  def __repr__(self):
5701  r"""__repr__(TransformationSymmetry self) -> std::string"""
5702  return _IMP_core.TransformationSymmetry___repr__(self)
5703 
5704  @staticmethod
5705  def get_from(o):
5706  return _object_cast_to_TransformationSymmetry(o)
5707 
5708 
5709 # Register TransformationSymmetry in _IMP_core:
5710 _IMP_core.TransformationSymmetry_swigregister(TransformationSymmetry)
5711 class TransformationSymmetryMover(MonteCarloMover):
5712  r"""Proxy of C++ IMP::core::TransformationSymmetryMover class."""
5713 
5714  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5715 
5716  def __init__(self, m, symm, pivot, max_translation, max_rotation):
5717  r"""__init__(TransformationSymmetryMover self, Model m, TransformationSymmetry symm, ParticleIndex pivot, IMP::Float max_translation, IMP::Float max_rotation) -> TransformationSymmetryMover"""
5718  _IMP_core.TransformationSymmetryMover_swiginit(self, _IMP_core.new_TransformationSymmetryMover(m, symm, pivot, max_translation, max_rotation))
5719 
5720  def set_maximum_translation(self, mt):
5721  r"""set_maximum_translation(TransformationSymmetryMover self, IMP::Float mt)"""
5722  return _IMP_core.TransformationSymmetryMover_set_maximum_translation(self, mt)
5723 
5724  def set_maximum_rotation(self, mr):
5725  r"""set_maximum_rotation(TransformationSymmetryMover self, IMP::Float mr)"""
5726  return _IMP_core.TransformationSymmetryMover_set_maximum_rotation(self, mr)
5727 
5728  def get_maximum_translation(self):
5729  r"""get_maximum_translation(TransformationSymmetryMover self) -> IMP::Float"""
5730  return _IMP_core.TransformationSymmetryMover_get_maximum_translation(self)
5731 
5732  def get_maximum_rotation(self):
5733  r"""get_maximum_rotation(TransformationSymmetryMover self) -> IMP::Float"""
5734  return _IMP_core.TransformationSymmetryMover_get_maximum_rotation(self)
5735 
5736  def get_version_info(self):
5737  r"""get_version_info(TransformationSymmetryMover self) -> VersionInfo"""
5738  return _IMP_core.TransformationSymmetryMover_get_version_info(self)
5739  __swig_destroy__ = _IMP_core.delete_TransformationSymmetryMover
5740 
5741  def __str__(self):
5742  r"""__str__(TransformationSymmetryMover self) -> std::string"""
5743  return _IMP_core.TransformationSymmetryMover___str__(self)
5744 
5745  def __repr__(self):
5746  r"""__repr__(TransformationSymmetryMover self) -> std::string"""
5747  return _IMP_core.TransformationSymmetryMover___repr__(self)
5748 
5749  @staticmethod
5750  def get_from(o):
5751  return _object_cast_to_TransformationSymmetryMover(o)
5752 
5753 
5754 # Register TransformationSymmetryMover in _IMP_core:
5755 _IMP_core.TransformationSymmetryMover_swigregister(TransformationSymmetryMover)
5756 class DihedralRestraint(IMP.Restraint):
5757  r"""Proxy of C++ IMP::core::DihedralRestraint class."""
5758 
5759  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5760 
5761  def __init__(self, m, score_func, p1, p2, p3, p4):
5762  r"""__init__(DihedralRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3, _ParticleIndexAdaptor p4) -> DihedralRestraint"""
5763  _IMP_core.DihedralRestraint_swiginit(self, _IMP_core.new_DihedralRestraint(m, score_func, p1, p2, p3, p4))
5764 
5765  def do_get_inputs(self):
5766  r"""do_get_inputs(DihedralRestraint self) -> IMP::ModelObjectsTemp"""
5767  return _IMP_core.DihedralRestraint_do_get_inputs(self)
5768 
5769  def get_version_info(self):
5770  r"""get_version_info(DihedralRestraint self) -> VersionInfo"""
5771  return _IMP_core.DihedralRestraint_get_version_info(self)
5772  __swig_destroy__ = _IMP_core.delete_DihedralRestraint
5773 
5774  def __str__(self):
5775  r"""__str__(DihedralRestraint self) -> std::string"""
5776  return _IMP_core.DihedralRestraint___str__(self)
5777 
5778  def __repr__(self):
5779  r"""__repr__(DihedralRestraint self) -> std::string"""
5780  return _IMP_core.DihedralRestraint___repr__(self)
5781 
5782  @staticmethod
5783  def get_from(o):
5784  return _object_cast_to_DihedralRestraint(o)
5785 
5786 
5787 # Register DihedralRestraint in _IMP_core:
5788 _IMP_core.DihedralRestraint_swigregister(DihedralRestraint)
5789 class DistancePairScore(IMP.PairScore):
5790  r"""Proxy of C++ IMP::core::DistancePairScore class."""
5791 
5792  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5793 
5794  def __init__(self, *args):
5795  r"""
5796  __init__(DistancePairScore self, UnaryFunction uf, std::string name="DistancePairScore%1%") -> DistancePairScore
5797  __init__(DistancePairScore self) -> DistancePairScore
5798  """
5799  _IMP_core.DistancePairScore_swiginit(self, _IMP_core.new_DistancePairScore(*args))
5800 
5801  def do_get_inputs(self, m, pis):
5802  r"""do_get_inputs(DistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5803  return _IMP_core.DistancePairScore_do_get_inputs(self, m, pis)
5804 
5805  def get_version_info(self):
5806  r"""get_version_info(DistancePairScore self) -> VersionInfo"""
5807  return _IMP_core.DistancePairScore_get_version_info(self)
5808  __swig_destroy__ = _IMP_core.delete_DistancePairScore
5809 
5810  def __str__(self):
5811  r"""__str__(DistancePairScore self) -> std::string"""
5812  return _IMP_core.DistancePairScore___str__(self)
5813 
5814  def __repr__(self):
5815  r"""__repr__(DistancePairScore self) -> std::string"""
5816  return _IMP_core.DistancePairScore___repr__(self)
5817 
5818  @staticmethod
5819  def get_from(o):
5820  return _object_cast_to_DistancePairScore(o)
5821 
5822 
5823  def _get_as_binary(self):
5824  r"""_get_as_binary(DistancePairScore self) -> PyObject *"""
5825  return _IMP_core.DistancePairScore__get_as_binary(self)
5826 
5827  def _set_from_binary(self, p):
5828  r"""_set_from_binary(DistancePairScore self, PyObject * p)"""
5829  return _IMP_core.DistancePairScore__set_from_binary(self, p)
5830 
5831  def __getstate__(self):
5832  p = self._get_as_binary()
5833  if len(self.__dict__) > 1:
5834  d = self.__dict__.copy()
5835  del d['this']
5836  p = (d, p)
5837  return p
5838 
5839  def __setstate__(self, p):
5840  if not hasattr(self, 'this'):
5841  self.__init__()
5842  if isinstance(p, tuple):
5843  d, p = p
5844  self.__dict__.update(d)
5845  return self._set_from_binary(p)
5846 
5847 
5848 # Register DistancePairScore in _IMP_core:
5849 _IMP_core.DistancePairScore_swigregister(DistancePairScore)
5850 class HarmonicDistancePairScore(IMP.PairScore):
5851  r"""Proxy of C++ IMP::core::HarmonicDistancePairScore class."""
5852 
5853  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5854 
5855  def __init__(self, *args):
5856  r"""
5857  __init__(HarmonicDistancePairScore self, double x0, double k, std::string name="HarmonicDistancePairScore%1%") -> HarmonicDistancePairScore
5858  __init__(HarmonicDistancePairScore self) -> HarmonicDistancePairScore
5859  """
5860  _IMP_core.HarmonicDistancePairScore_swiginit(self, _IMP_core.new_HarmonicDistancePairScore(*args))
5861 
5862  def do_get_inputs(self, m, pis):
5863  r"""do_get_inputs(HarmonicDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5864  return _IMP_core.HarmonicDistancePairScore_do_get_inputs(self, m, pis)
5865 
5866  def get_version_info(self):
5867  r"""get_version_info(HarmonicDistancePairScore self) -> VersionInfo"""
5868  return _IMP_core.HarmonicDistancePairScore_get_version_info(self)
5869  __swig_destroy__ = _IMP_core.delete_HarmonicDistancePairScore
5870 
5871  def __str__(self):
5872  r"""__str__(HarmonicDistancePairScore self) -> std::string"""
5873  return _IMP_core.HarmonicDistancePairScore___str__(self)
5874 
5875  def __repr__(self):
5876  r"""__repr__(HarmonicDistancePairScore self) -> std::string"""
5877  return _IMP_core.HarmonicDistancePairScore___repr__(self)
5878 
5879  @staticmethod
5880  def get_from(o):
5881  return _object_cast_to_HarmonicDistancePairScore(o)
5882 
5883 
5884  def _get_as_binary(self):
5885  r"""_get_as_binary(HarmonicDistancePairScore self) -> PyObject *"""
5886  return _IMP_core.HarmonicDistancePairScore__get_as_binary(self)
5887 
5888  def _set_from_binary(self, p):
5889  r"""_set_from_binary(HarmonicDistancePairScore self, PyObject * p)"""
5890  return _IMP_core.HarmonicDistancePairScore__set_from_binary(self, p)
5891 
5892  def __getstate__(self):
5893  p = self._get_as_binary()
5894  if len(self.__dict__) > 1:
5895  d = self.__dict__.copy()
5896  del d['this']
5897  p = (d, p)
5898  return p
5899 
5900  def __setstate__(self, p):
5901  if not hasattr(self, 'this'):
5902  self.__init__()
5903  if isinstance(p, tuple):
5904  d, p = p
5905  self.__dict__.update(d)
5906  return self._set_from_binary(p)
5907 
5908 
5909 # Register HarmonicDistancePairScore in _IMP_core:
5910 _IMP_core.HarmonicDistancePairScore_swigregister(HarmonicDistancePairScore)
5911 class DistanceRestraint(IMP.Restraint):
5912  r"""Proxy of C++ IMP::core::DistanceRestraint class."""
5913 
5914  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5915 
5916  def __init__(self, *args):
5917  r"""
5918  __init__(DistanceRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor a, _ParticleIndexAdaptor b, std::string name="DistanceRestraint %1%") -> DistanceRestraint
5919  __init__(DistanceRestraint self) -> DistanceRestraint
5920  """
5921  _IMP_core.DistanceRestraint_swiginit(self, _IMP_core.new_DistanceRestraint(*args))
5922 
5923  def get_version_info(self):
5924  r"""get_version_info(DistanceRestraint self) -> VersionInfo"""
5925  return _IMP_core.DistanceRestraint_get_version_info(self)
5926  __swig_destroy__ = _IMP_core.delete_DistanceRestraint
5927 
5928  def __str__(self):
5929  r"""__str__(DistanceRestraint self) -> std::string"""
5930  return _IMP_core.DistanceRestraint___str__(self)
5931 
5932  def __repr__(self):
5933  r"""__repr__(DistanceRestraint self) -> std::string"""
5934  return _IMP_core.DistanceRestraint___repr__(self)
5935 
5936  @staticmethod
5937  def get_from(o):
5938  return _object_cast_to_DistanceRestraint(o)
5939 
5940 
5941  def _get_as_binary(self):
5942  r"""_get_as_binary(DistanceRestraint self) -> PyObject *"""
5943  return _IMP_core.DistanceRestraint__get_as_binary(self)
5944 
5945  def _set_from_binary(self, p):
5946  r"""_set_from_binary(DistanceRestraint self, PyObject * p)"""
5947  return _IMP_core.DistanceRestraint__set_from_binary(self, p)
5948 
5949  def __getstate__(self):
5950  p = self._get_as_binary()
5951  if len(self.__dict__) > 1:
5952  d = self.__dict__.copy()
5953  del d['this']
5954  p = (d, p)
5955  return p
5956 
5957  def __setstate__(self, p):
5958  if not hasattr(self, 'this'):
5959  self.__init__()
5960  if isinstance(p, tuple):
5961  d, p = p
5962  self.__dict__.update(d)
5963  return self._set_from_binary(p)
5964 
5965 
5966 # Register DistanceRestraint in _IMP_core:
5967 _IMP_core.DistanceRestraint_swigregister(DistanceRestraint)
5968 class SphereDistanceToSingletonScore(IMP.SingletonScore):
5969  r"""Proxy of C++ IMP::core::SphereDistanceToSingletonScore class."""
5970 
5971  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5972 
5973  def __init__(self, f, pt):
5974  r"""__init__(SphereDistanceToSingletonScore self, UnaryFunction f, Vector3D pt) -> SphereDistanceToSingletonScore"""
5975  _IMP_core.SphereDistanceToSingletonScore_swiginit(self, _IMP_core.new_SphereDistanceToSingletonScore(f, pt))
5976 
5977  def do_get_inputs(self, m, pis):
5978  r"""do_get_inputs(SphereDistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5979  return _IMP_core.SphereDistanceToSingletonScore_do_get_inputs(self, m, pis)
5980 
5981  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
5982  r"""evaluate_indexes(SphereDistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
5983  return _IMP_core.SphereDistanceToSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
5984 
5985  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
5986  r"""evaluate_indexes_scores(SphereDistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
5987  return _IMP_core.SphereDistanceToSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
5988 
5989  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
5990  r"""evaluate_indexes_delta(SphereDistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
5991  return _IMP_core.SphereDistanceToSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
5992 
5993  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
5994  r"""evaluate_if_good_indexes(SphereDistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
5995  return _IMP_core.SphereDistanceToSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
5996 
5997  def get_version_info(self):
5998  r"""get_version_info(SphereDistanceToSingletonScore self) -> VersionInfo"""
5999  return _IMP_core.SphereDistanceToSingletonScore_get_version_info(self)
6000  __swig_destroy__ = _IMP_core.delete_SphereDistanceToSingletonScore
6001 
6002  def __str__(self):
6003  r"""__str__(SphereDistanceToSingletonScore self) -> std::string"""
6004  return _IMP_core.SphereDistanceToSingletonScore___str__(self)
6005 
6006  def __repr__(self):
6007  r"""__repr__(SphereDistanceToSingletonScore self) -> std::string"""
6008  return _IMP_core.SphereDistanceToSingletonScore___repr__(self)
6009 
6010  @staticmethod
6011  def get_from(o):
6012  return _object_cast_to_SphereDistanceToSingletonScore(o)
6013 
6014 
6015 # Register SphereDistanceToSingletonScore in _IMP_core:
6016 _IMP_core.SphereDistanceToSingletonScore_swigregister(SphereDistanceToSingletonScore)
6017 class ExcludedVolumeRestraint(IMP.Restraint):
6018  r"""Proxy of C++ IMP::core::ExcludedVolumeRestraint class."""
6019 
6020  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6021 
6022  def __init__(self, *args):
6023  r"""__init__(ExcludedVolumeRestraint self, _SingletonContainerAdaptor sc, double k=1, double slack=10, std::string name="ExcludedVolumeRestraint%1%") -> ExcludedVolumeRestraint"""
6024  _IMP_core.ExcludedVolumeRestraint_swiginit(self, _IMP_core.new_ExcludedVolumeRestraint(*args))
6025 
6026  def do_get_inputs(self):
6027  r"""do_get_inputs(ExcludedVolumeRestraint self) -> IMP::ModelObjectsTemp"""
6028  return _IMP_core.ExcludedVolumeRestraint_do_get_inputs(self)
6029 
6030  def get_version_info(self):
6031  r"""get_version_info(ExcludedVolumeRestraint self) -> VersionInfo"""
6032  return _IMP_core.ExcludedVolumeRestraint_get_version_info(self)
6033  __swig_destroy__ = _IMP_core.delete_ExcludedVolumeRestraint
6034 
6035  def do_create_decomposition(self):
6036  r"""do_create_decomposition(ExcludedVolumeRestraint self) -> IMP::Restraints"""
6037  return _IMP_core.ExcludedVolumeRestraint_do_create_decomposition(self)
6038 
6039  def do_create_current_decomposition(self):
6040  r"""do_create_current_decomposition(ExcludedVolumeRestraint self) -> IMP::Restraints"""
6041  return _IMP_core.ExcludedVolumeRestraint_do_create_current_decomposition(self)
6042 
6043  def get_indexes(self):
6044  r"""get_indexes(ExcludedVolumeRestraint self) -> IMP::ParticleIndexPairs const &"""
6045  return _IMP_core.ExcludedVolumeRestraint_get_indexes(self)
6046  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)
6047  def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
6048  def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
6049  pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc="List of ##ucnames")
6050 
6051  def remove_pair_filter(self, d):
6052  r"""remove_pair_filter(ExcludedVolumeRestraint self, PairPredicate d)"""
6053  return _IMP_core.ExcludedVolumeRestraint_remove_pair_filter(self, d)
6054 
6055  def _python_index_pair_filter(self, d, start, stop):
6056  r"""_python_index_pair_filter(ExcludedVolumeRestraint self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
6057  return _IMP_core.ExcludedVolumeRestraint__python_index_pair_filter(self, d, start, stop)
6058 
6059  def remove_pair_filters(self, d):
6060  r"""remove_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & d)"""
6061  return _IMP_core.ExcludedVolumeRestraint_remove_pair_filters(self, d)
6062 
6063  def set_pair_filters(self, ps):
6064  r"""set_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & ps)"""
6065  return _IMP_core.ExcludedVolumeRestraint_set_pair_filters(self, ps)
6066 
6067  def set_pair_filters_order(self, objs):
6068  r"""set_pair_filters_order(ExcludedVolumeRestraint self, IMP::PairPredicates const & objs)"""
6069  return _IMP_core.ExcludedVolumeRestraint_set_pair_filters_order(self, objs)
6070 
6071  def add_pair_filter(self, obj):
6072  r"""add_pair_filter(ExcludedVolumeRestraint self, PairPredicate obj) -> unsigned int"""
6073  return _IMP_core.ExcludedVolumeRestraint_add_pair_filter(self, obj)
6074 
6075  def add_pair_filters(self, objs):
6076  r"""add_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & objs)"""
6077  return _IMP_core.ExcludedVolumeRestraint_add_pair_filters(self, objs)
6078 
6079  def clear_pair_filters(self):
6080  r"""clear_pair_filters(ExcludedVolumeRestraint self)"""
6081  return _IMP_core.ExcludedVolumeRestraint_clear_pair_filters(self)
6082 
6083  def get_number_of_pair_filters(self):
6084  r"""get_number_of_pair_filters(ExcludedVolumeRestraint self) -> unsigned int"""
6085  return _IMP_core.ExcludedVolumeRestraint_get_number_of_pair_filters(self)
6086 
6087  def get_has_pair_filters(self):
6088  r"""get_has_pair_filters(ExcludedVolumeRestraint self) -> bool"""
6089  return _IMP_core.ExcludedVolumeRestraint_get_has_pair_filters(self)
6090 
6091  def get_pair_filter(self, i):
6092  r"""get_pair_filter(ExcludedVolumeRestraint self, unsigned int i) -> PairPredicate"""
6093  return _IMP_core.ExcludedVolumeRestraint_get_pair_filter(self, i)
6094 
6095  def get_pair_filters(self):
6096  r"""get_pair_filters(ExcludedVolumeRestraint self) -> IMP::PairPredicates"""
6097  return _IMP_core.ExcludedVolumeRestraint_get_pair_filters(self)
6098 
6099  def erase_pair_filter(self, i):
6100  r"""erase_pair_filter(ExcludedVolumeRestraint self, unsigned int i)"""
6101  return _IMP_core.ExcludedVolumeRestraint_erase_pair_filter(self, i)
6102 
6103  def reserve_pair_filters(self, sz):
6104  r"""reserve_pair_filters(ExcludedVolumeRestraint self, unsigned int sz)"""
6105  return _IMP_core.ExcludedVolumeRestraint_reserve_pair_filters(self, sz)
6106 
6107  def __str__(self):
6108  r"""__str__(ExcludedVolumeRestraint self) -> std::string"""
6109  return _IMP_core.ExcludedVolumeRestraint___str__(self)
6110 
6111  def __repr__(self):
6112  r"""__repr__(ExcludedVolumeRestraint self) -> std::string"""
6113  return _IMP_core.ExcludedVolumeRestraint___repr__(self)
6114 
6115  @staticmethod
6116  def get_from(o):
6117  return _object_cast_to_ExcludedVolumeRestraint(o)
6118 
6119 
6120 # Register ExcludedVolumeRestraint in _IMP_core:
6121 _IMP_core.ExcludedVolumeRestraint_swigregister(ExcludedVolumeRestraint)
6122 class FixedRefiner(IMP.Refiner):
6123  r"""Proxy of C++ IMP::core::FixedRefiner class."""
6124 
6125  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6126 
6127  def __init__(self, *args):
6128  r"""
6129  __init__(FixedRefiner self, IMP::ParticlesTemp const & ps) -> FixedRefiner
6130  __init__(FixedRefiner self, Model m, IMP::ParticleIndexes const & pis) -> FixedRefiner
6131  """
6132  _IMP_core.FixedRefiner_swiginit(self, _IMP_core.new_FixedRefiner(*args))
6133 
6134  def do_get_inputs(self, m, pis):
6135  r"""do_get_inputs(FixedRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6136  return _IMP_core.FixedRefiner_do_get_inputs(self, m, pis)
6137 
6138  def get_version_info(self):
6139  r"""get_version_info(FixedRefiner self) -> VersionInfo"""
6140  return _IMP_core.FixedRefiner_get_version_info(self)
6141  __swig_destroy__ = _IMP_core.delete_FixedRefiner
6142 
6143  def __str__(self):
6144  r"""__str__(FixedRefiner self) -> std::string"""
6145  return _IMP_core.FixedRefiner___str__(self)
6146 
6147  def __repr__(self):
6148  r"""__repr__(FixedRefiner self) -> std::string"""
6149  return _IMP_core.FixedRefiner___repr__(self)
6150 
6151  @staticmethod
6152  def get_from(o):
6153  return _object_cast_to_FixedRefiner(o)
6154 
6155 
6156 # Register FixedRefiner in _IMP_core:
6157 _IMP_core.FixedRefiner_swigregister(FixedRefiner)
6158 class GridClosePairsFinder(ClosePairsFinder):
6159  r"""Proxy of C++ IMP::core::GridClosePairsFinder class."""
6160 
6161  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6162 
6163  def __init__(self):
6164  r"""__init__(GridClosePairsFinder self) -> GridClosePairsFinder"""
6165  _IMP_core.GridClosePairsFinder_swiginit(self, _IMP_core.new_GridClosePairsFinder())
6166 
6167  def get_close_pairs(self, *args):
6168  r"""
6169  get_close_pairs(GridClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
6170  get_close_pairs(GridClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
6171  get_close_pairs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
6172  get_close_pairs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
6173  """
6174  return _IMP_core.GridClosePairsFinder_get_close_pairs(self, *args)
6175 
6176  def do_get_inputs(self, m, pis):
6177  r"""do_get_inputs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6178  return _IMP_core.GridClosePairsFinder_do_get_inputs(self, m, pis)
6179 
6180  def get_version_info(self):
6181  r"""get_version_info(GridClosePairsFinder self) -> VersionInfo"""
6182  return _IMP_core.GridClosePairsFinder_get_version_info(self)
6183  __swig_destroy__ = _IMP_core.delete_GridClosePairsFinder
6184 
6185  def __str__(self):
6186  r"""__str__(GridClosePairsFinder self) -> std::string"""
6187  return _IMP_core.GridClosePairsFinder___str__(self)
6188 
6189  def __repr__(self):
6190  r"""__repr__(GridClosePairsFinder self) -> std::string"""
6191  return _IMP_core.GridClosePairsFinder___repr__(self)
6192 
6193  @staticmethod
6194  def get_from(o):
6195  return _object_cast_to_GridClosePairsFinder(o)
6196 
6197 
6198  def _get_as_binary(self):
6199  r"""_get_as_binary(GridClosePairsFinder self) -> PyObject *"""
6200  return _IMP_core.GridClosePairsFinder__get_as_binary(self)
6201 
6202  def _set_from_binary(self, p):
6203  r"""_set_from_binary(GridClosePairsFinder self, PyObject * p)"""
6204  return _IMP_core.GridClosePairsFinder__set_from_binary(self, p)
6205 
6206  def __getstate__(self):
6207  p = self._get_as_binary()
6208  if len(self.__dict__) > 1:
6209  d = self.__dict__.copy()
6210  del d['this']
6211  p = (d, p)
6212  return p
6213 
6214  def __setstate__(self, p):
6215  if not hasattr(self, 'this'):
6216  self.__init__()
6217  if isinstance(p, tuple):
6218  d, p = p
6219  self.__dict__.update(d)
6220  return self._set_from_binary(p)
6221 
6222 
6223 # Register GridClosePairsFinder in _IMP_core:
6224 _IMP_core.GridClosePairsFinder_swigregister(GridClosePairsFinder)
6225 class Harmonic(IMP.UnaryFunction):
6226  r"""Proxy of C++ IMP::core::Harmonic class."""
6227 
6228  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6229 
6230  def __init__(self, *args):
6231  r"""
6232  __init__(Harmonic self, IMP::Float mean, IMP::Float k) -> Harmonic
6233  __init__(Harmonic self) -> Harmonic
6234  """
6235  _IMP_core.Harmonic_swiginit(self, _IMP_core.new_Harmonic(*args))
6236 
6237  def get_version_info(self):
6238  r"""get_version_info(Harmonic self) -> VersionInfo"""
6239  return _IMP_core.Harmonic_get_version_info(self)
6240  __swig_destroy__ = _IMP_core.delete_Harmonic
6241 
6242  def get_mean(self):
6243  r"""get_mean(Harmonic self) -> IMP::Float"""
6244  return _IMP_core.Harmonic_get_mean(self)
6245 
6246  def get_k(self):
6247  r"""get_k(Harmonic self) -> IMP::Float"""
6248  return _IMP_core.Harmonic_get_k(self)
6249 
6250  def set_mean(self, mean):
6251  r"""set_mean(Harmonic self, IMP::Float mean)"""
6252  return _IMP_core.Harmonic_set_mean(self, mean)
6253 
6254  def set_k(self, k):
6255  r"""set_k(Harmonic self, IMP::Float k)"""
6256  return _IMP_core.Harmonic_set_k(self, k)
6257 
6258  @staticmethod
6259  def get_k_from_standard_deviation(sd, t=297.15):
6260  r"""get_k_from_standard_deviation(IMP::Float sd, IMP::Float t=297.15) -> IMP::Float"""
6261  return _IMP_core.Harmonic_get_k_from_standard_deviation(sd, t)
6262 
6263  def __str__(self):
6264  r"""__str__(Harmonic self) -> std::string"""
6265  return _IMP_core.Harmonic___str__(self)
6266 
6267  def __repr__(self):
6268  r"""__repr__(Harmonic self) -> std::string"""
6269  return _IMP_core.Harmonic___repr__(self)
6270 
6271  @staticmethod
6272  def get_from(o):
6273  return _object_cast_to_Harmonic(o)
6274 
6275 
6276  def _get_as_binary(self):
6277  r"""_get_as_binary(Harmonic self) -> PyObject *"""
6278  return _IMP_core.Harmonic__get_as_binary(self)
6279 
6280  def _set_from_binary(self, p):
6281  r"""_set_from_binary(Harmonic self, PyObject * p)"""
6282  return _IMP_core.Harmonic__set_from_binary(self, p)
6283 
6284  def __getstate__(self):
6285  p = self._get_as_binary()
6286  if len(self.__dict__) > 1:
6287  d = self.__dict__.copy()
6288  del d['this']
6289  p = (d, p)
6290  return p
6291 
6292  def __setstate__(self, p):
6293  if not hasattr(self, 'this'):
6294  self.__init__()
6295  if isinstance(p, tuple):
6296  d, p = p
6297  self.__dict__.update(d)
6298  return self._set_from_binary(p)
6299 
6300 
6301 # Register Harmonic in _IMP_core:
6302 _IMP_core.Harmonic_swigregister(Harmonic)
6303 class HarmonicWell(IMP.UnaryFunction):
6304  r"""Proxy of C++ IMP::core::HarmonicWell class."""
6305 
6306  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6307 
6308  def __init__(self, well, k):
6309  r"""__init__(HarmonicWell self, IMP::FloatRange const & well, double k) -> HarmonicWell"""
6310  _IMP_core.HarmonicWell_swiginit(self, _IMP_core.new_HarmonicWell(well, k))
6311 
6312  def get_version_info(self):
6313  r"""get_version_info(HarmonicWell self) -> VersionInfo"""
6314  return _IMP_core.HarmonicWell_get_version_info(self)
6315  __swig_destroy__ = _IMP_core.delete_HarmonicWell
6316 
6317  def __str__(self):
6318  r"""__str__(HarmonicWell self) -> std::string"""
6319  return _IMP_core.HarmonicWell___str__(self)
6320 
6321  def __repr__(self):
6322  r"""__repr__(HarmonicWell self) -> std::string"""
6323  return _IMP_core.HarmonicWell___repr__(self)
6324 
6325  @staticmethod
6326  def get_from(o):
6327  return _object_cast_to_HarmonicWell(o)
6328 
6329 
6330 # Register HarmonicWell in _IMP_core:
6331 _IMP_core.HarmonicWell_swigregister(HarmonicWell)
6332 class HarmonicLowerBound(Harmonic):
6333  r"""Proxy of C++ IMP::core::HarmonicLowerBound class."""
6334 
6335  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6336 
6337  def __init__(self, *args):
6338  r"""
6339  __init__(HarmonicLowerBound self, IMP::Float mean, IMP::Float k) -> HarmonicLowerBound
6340  __init__(HarmonicLowerBound self) -> HarmonicLowerBound
6341  """
6342  _IMP_core.HarmonicLowerBound_swiginit(self, _IMP_core.new_HarmonicLowerBound(*args))
6343  __swig_destroy__ = _IMP_core.delete_HarmonicLowerBound
6344 
6345  def __str__(self):
6346  r"""__str__(HarmonicLowerBound self) -> std::string"""
6347  return _IMP_core.HarmonicLowerBound___str__(self)
6348 
6349  def __repr__(self):
6350  r"""__repr__(HarmonicLowerBound self) -> std::string"""
6351  return _IMP_core.HarmonicLowerBound___repr__(self)
6352 
6353  @staticmethod
6354  def get_from(o):
6355  return _object_cast_to_HarmonicLowerBound(o)
6356 
6357 
6358  def _get_as_binary(self):
6359  r"""_get_as_binary(HarmonicLowerBound self) -> PyObject *"""
6360  return _IMP_core.HarmonicLowerBound__get_as_binary(self)
6361 
6362  def _set_from_binary(self, p):
6363  r"""_set_from_binary(HarmonicLowerBound self, PyObject * p)"""
6364  return _IMP_core.HarmonicLowerBound__set_from_binary(self, p)
6365 
6366  def __getstate__(self):
6367  p = self._get_as_binary()
6368  if len(self.__dict__) > 1:
6369  d = self.__dict__.copy()
6370  del d['this']
6371  p = (d, p)
6372  return p
6373 
6374  def __setstate__(self, p):
6375  if not hasattr(self, 'this'):
6376  self.__init__()
6377  if isinstance(p, tuple):
6378  d, p = p
6379  self.__dict__.update(d)
6380  return self._set_from_binary(p)
6381 
6382 
6383 # Register HarmonicLowerBound in _IMP_core:
6384 _IMP_core.HarmonicLowerBound_swigregister(HarmonicLowerBound)
6385 class HarmonicUpperBound(Harmonic):
6386  r"""Proxy of C++ IMP::core::HarmonicUpperBound class."""
6387 
6388  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6389 
6390  def __init__(self, *args):
6391  r"""
6392  __init__(HarmonicUpperBound self, IMP::Float mean, IMP::Float k) -> HarmonicUpperBound
6393  __init__(HarmonicUpperBound self) -> HarmonicUpperBound
6394  """
6395  _IMP_core.HarmonicUpperBound_swiginit(self, _IMP_core.new_HarmonicUpperBound(*args))
6396  __swig_destroy__ = _IMP_core.delete_HarmonicUpperBound
6397 
6398  def __str__(self):
6399  r"""__str__(HarmonicUpperBound self) -> std::string"""
6400  return _IMP_core.HarmonicUpperBound___str__(self)
6401 
6402  def __repr__(self):
6403  r"""__repr__(HarmonicUpperBound self) -> std::string"""
6404  return _IMP_core.HarmonicUpperBound___repr__(self)
6405 
6406  @staticmethod
6407  def get_from(o):
6408  return _object_cast_to_HarmonicUpperBound(o)
6409 
6410 
6411  def _get_as_binary(self):
6412  r"""_get_as_binary(HarmonicUpperBound self) -> PyObject *"""
6413  return _IMP_core.HarmonicUpperBound__get_as_binary(self)
6414 
6415  def _set_from_binary(self, p):
6416  r"""_set_from_binary(HarmonicUpperBound self, PyObject * p)"""
6417  return _IMP_core.HarmonicUpperBound__set_from_binary(self, p)
6418 
6419  def __getstate__(self):
6420  p = self._get_as_binary()
6421  if len(self.__dict__) > 1:
6422  d = self.__dict__.copy()
6423  del d['this']
6424  p = (d, p)
6425  return p
6426 
6427  def __setstate__(self, p):
6428  if not hasattr(self, 'this'):
6429  self.__init__()
6430  if isinstance(p, tuple):
6431  d, p = p
6432  self.__dict__.update(d)
6433  return self._set_from_binary(p)
6434 
6435 
6436 # Register HarmonicUpperBound in _IMP_core:
6437 _IMP_core.HarmonicUpperBound_swigregister(HarmonicUpperBound)
6438 class WeightedSum(IMP.UnaryFunction):
6439  r"""Proxy of C++ IMP::core::WeightedSum class."""
6440 
6441  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6442 
6443  def __init__(self, funcs, weights):
6444  r"""__init__(WeightedSum self, IMP::UnaryFunctions funcs, IMP::Floats weights) -> WeightedSum"""
6445  _IMP_core.WeightedSum_swiginit(self, _IMP_core.new_WeightedSum(funcs, weights))
6446 
6447  def get_function_number(self):
6448  r"""get_function_number(WeightedSum self) -> unsigned int"""
6449  return _IMP_core.WeightedSum_get_function_number(self)
6450 
6451  def set_weights(self, weights):
6452  r"""set_weights(WeightedSum self, IMP::Floats weights)"""
6453  return _IMP_core.WeightedSum_set_weights(self, weights)
6454 
6455  def get_weights(self):
6456  r"""get_weights(WeightedSum self) -> IMP::Floats"""
6457  return _IMP_core.WeightedSum_get_weights(self)
6458 
6459  def get_weight(self, i):
6460  r"""get_weight(WeightedSum self, unsigned int i) -> double"""
6461  return _IMP_core.WeightedSum_get_weight(self, i)
6462 
6463  def get_function(self, i):
6464  r"""get_function(WeightedSum self, unsigned int i) -> UnaryFunction"""
6465  return _IMP_core.WeightedSum_get_function(self, i)
6466 
6467  def get_version_info(self):
6468  r"""get_version_info(WeightedSum self) -> VersionInfo"""
6469  return _IMP_core.WeightedSum_get_version_info(self)
6470  __swig_destroy__ = _IMP_core.delete_WeightedSum
6471 
6472  def __str__(self):
6473  r"""__str__(WeightedSum self) -> std::string"""
6474  return _IMP_core.WeightedSum___str__(self)
6475 
6476  def __repr__(self):
6477  r"""__repr__(WeightedSum self) -> std::string"""
6478  return _IMP_core.WeightedSum___repr__(self)
6479 
6480  @staticmethod
6481  def get_from(o):
6482  return _object_cast_to_WeightedSum(o)
6483 
6484 
6485 # Register WeightedSum in _IMP_core:
6486 _IMP_core.WeightedSum_swigregister(WeightedSum)
6487 class WeightedSumOfExponential(IMP.UnaryFunction):
6488  r"""Proxy of C++ IMP::core::WeightedSumOfExponential class."""
6489 
6490  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6491 
6492  def __init__(self, funcs, weights, denom=1.0):
6493  r"""__init__(WeightedSumOfExponential self, IMP::UnaryFunctions funcs, IMP::Floats weights, IMP::Float denom=1.0) -> WeightedSumOfExponential"""
6494  _IMP_core.WeightedSumOfExponential_swiginit(self, _IMP_core.new_WeightedSumOfExponential(funcs, weights, denom))
6495 
6496  def get_function_number(self):
6497  r"""get_function_number(WeightedSumOfExponential self) -> unsigned int"""
6498  return _IMP_core.WeightedSumOfExponential_get_function_number(self)
6499 
6500  def set_weights(self, weights):
6501  r"""set_weights(WeightedSumOfExponential self, IMP::Floats weights)"""
6502  return _IMP_core.WeightedSumOfExponential_set_weights(self, weights)
6503 
6504  def get_weights(self):
6505  r"""get_weights(WeightedSumOfExponential self) -> IMP::Floats"""
6506  return _IMP_core.WeightedSumOfExponential_get_weights(self)
6507 
6508  def get_weight(self, i):
6509  r"""get_weight(WeightedSumOfExponential self, unsigned int i) -> double"""
6510  return _IMP_core.WeightedSumOfExponential_get_weight(self, i)
6511 
6512  def get_function(self, i):
6513  r"""get_function(WeightedSumOfExponential self, unsigned int i) -> UnaryFunction"""
6514  return _IMP_core.WeightedSumOfExponential_get_function(self, i)
6515 
6516  def set_denominator(self, denom):
6517  r"""set_denominator(WeightedSumOfExponential self, double denom)"""
6518  return _IMP_core.WeightedSumOfExponential_set_denominator(self, denom)
6519 
6520  def get_denominator(self):
6521  r"""get_denominator(WeightedSumOfExponential self) -> double"""
6522  return _IMP_core.WeightedSumOfExponential_get_denominator(self)
6523 
6524  def get_version_info(self):
6525  r"""get_version_info(WeightedSumOfExponential self) -> VersionInfo"""
6526  return _IMP_core.WeightedSumOfExponential_get_version_info(self)
6527  __swig_destroy__ = _IMP_core.delete_WeightedSumOfExponential
6528 
6529  def __str__(self):
6530  r"""__str__(WeightedSumOfExponential self) -> std::string"""
6531  return _IMP_core.WeightedSumOfExponential___str__(self)
6532 
6533  def __repr__(self):
6534  r"""__repr__(WeightedSumOfExponential self) -> std::string"""
6535  return _IMP_core.WeightedSumOfExponential___repr__(self)
6536 
6537  @staticmethod
6538  def get_from(o):
6539  return _object_cast_to_WeightedSumOfExponential(o)
6540 
6541 
6542 # Register WeightedSumOfExponential in _IMP_core:
6543 _IMP_core.WeightedSumOfExponential_swigregister(WeightedSumOfExponential)
6544 class MSConnectivityRestraint(IMP.Restraint):
6545  r"""Proxy of C++ IMP::core::MSConnectivityRestraint class."""
6546 
6547  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6548 
6549  def __init__(self, m, ps, eps=0.1):
6550  r"""__init__(MSConnectivityRestraint self, Model m, PairScore ps, double eps=0.1) -> MSConnectivityRestraint"""
6551  _IMP_core.MSConnectivityRestraint_swiginit(self, _IMP_core.new_MSConnectivityRestraint(m, ps, eps))
6552 
6553  def add_type(self, ps):
6554  r"""add_type(MSConnectivityRestraint self, IMP::ParticlesTemp const & ps) -> unsigned int"""
6555  return _IMP_core.MSConnectivityRestraint_add_type(self, ps)
6556 
6557  def add_composite(self, *args):
6558  r"""
6559  add_composite(MSConnectivityRestraint self, IMP::Ints const & components) -> unsigned int
6560  add_composite(MSConnectivityRestraint self, IMP::Ints const & components, unsigned int parent) -> unsigned int
6561  """
6562  return _IMP_core.MSConnectivityRestraint_add_composite(self, *args)
6563 
6564  def get_connected_pairs(self):
6565  r"""get_connected_pairs(MSConnectivityRestraint self) -> IMP::ParticlePairsTemp"""
6566  return _IMP_core.MSConnectivityRestraint_get_connected_pairs(self)
6567 
6568  def get_pair_score(self):
6569  r"""get_pair_score(MSConnectivityRestraint self) -> PairScore"""
6570  return _IMP_core.MSConnectivityRestraint_get_pair_score(self)
6571 
6572  def do_create_current_decomposition(self):
6573  r"""do_create_current_decomposition(MSConnectivityRestraint self) -> IMP::Restraints"""
6574  return _IMP_core.MSConnectivityRestraint_do_create_current_decomposition(self)
6575 
6576  def do_get_inputs(self):
6577  r"""do_get_inputs(MSConnectivityRestraint self) -> IMP::ModelObjectsTemp"""
6578  return _IMP_core.MSConnectivityRestraint_do_get_inputs(self)
6579 
6580  def get_version_info(self):
6581  r"""get_version_info(MSConnectivityRestraint self) -> VersionInfo"""
6582  return _IMP_core.MSConnectivityRestraint_get_version_info(self)
6583  __swig_destroy__ = _IMP_core.delete_MSConnectivityRestraint
6584 
6585  def __str__(self):
6586  r"""__str__(MSConnectivityRestraint self) -> std::string"""
6587  return _IMP_core.MSConnectivityRestraint___str__(self)
6588 
6589  def __repr__(self):
6590  r"""__repr__(MSConnectivityRestraint self) -> std::string"""
6591  return _IMP_core.MSConnectivityRestraint___repr__(self)
6592 
6593  @staticmethod
6594  def get_from(o):
6595  return _object_cast_to_MSConnectivityRestraint(o)
6596 
6597 
6598 # Register MSConnectivityRestraint in _IMP_core:
6599 _IMP_core.MSConnectivityRestraint_swigregister(MSConnectivityRestraint)
6600 class HierarchyTraits(object):
6601  r"""Proxy of C++ IMP::core::HierarchyTraits class."""
6602 
6603  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6604 
6605  def __init__(self, *args):
6606  r"""
6607  __init__(HierarchyTraits self) -> HierarchyTraits
6608  __init__(HierarchyTraits self, std::string name) -> HierarchyTraits
6609  """
6610  _IMP_core.HierarchyTraits_swiginit(self, _IMP_core.new_HierarchyTraits(*args))
6611 
6612  def get_children_key(self):
6613  r"""get_children_key(HierarchyTraits self) -> ParticleIndexesKey"""
6614  return _IMP_core.HierarchyTraits_get_children_key(self)
6615 
6616  def get_parent_key(self):
6617  r"""get_parent_key(HierarchyTraits self) -> ParticleIndexKey"""
6618  return _IMP_core.HierarchyTraits_get_parent_key(self)
6619 
6620  def __eq__(self, o):
6621  r"""__eq__(HierarchyTraits self, HierarchyTraits o) -> bool"""
6622  return _IMP_core.HierarchyTraits___eq__(self, o)
6623 
6624  def show(self, *args):
6625  r"""show(HierarchyTraits self, _ostream out=std::cout)"""
6626  return _IMP_core.HierarchyTraits_show(self, *args)
6627 
6628  def __str__(self):
6629  r"""__str__(HierarchyTraits self) -> std::string"""
6630  return _IMP_core.HierarchyTraits___str__(self)
6631 
6632  def __repr__(self):
6633  r"""__repr__(HierarchyTraits self) -> std::string"""
6634  return _IMP_core.HierarchyTraits___repr__(self)
6635  __swig_destroy__ = _IMP_core.delete_HierarchyTraits
6636 
6637 # Register HierarchyTraits in _IMP_core:
6638 _IMP_core.HierarchyTraits_swigregister(HierarchyTraits)
6639 class Hierarchy(IMP.Decorator):
6640  r"""Proxy of C++ IMP::core::Hierarchy class."""
6641 
6642  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6643 
6644  def get_decorator_traits(self):
6645  r"""get_decorator_traits(Hierarchy self) -> HierarchyTraits"""
6646  return _IMP_core.Hierarchy_get_decorator_traits(self)
6647 
6648  @staticmethod
6649  def get_default_decorator_traits():
6650  r"""get_default_decorator_traits() -> HierarchyTraits"""
6651  return _IMP_core.Hierarchy_get_default_decorator_traits()
6652 
6653  def __init__(self, *args):
6654  r"""
6655  __init__(Hierarchy self) -> Hierarchy
6656  __init__(Hierarchy self, Model m, ParticleIndex id, HierarchyTraits tr=get_default_traits()) -> Hierarchy
6657  __init__(Hierarchy self, _ParticleAdaptor d, HierarchyTraits tr=get_default_traits()) -> Hierarchy
6658  """
6659  _IMP_core.Hierarchy_swiginit(self, _IMP_core.new_Hierarchy(*args))
6660 
6661  def show(self, *args):
6662  r"""show(Hierarchy self, _ostream out=std::cout)"""
6663  return _IMP_core.Hierarchy_show(self, *args)
6664 
6665  @staticmethod
6666  def setup_particle(*args):
6667  r"""
6668  setup_particle(Model m, ParticleIndex pi, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6669  setup_particle(_ParticleAdaptor d, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6670  setup_particle(Model m, ParticleIndex pi, IMP::ParticleIndexes children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6671  setup_particle(_ParticleAdaptor d, IMP::ParticleIndexes children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6672  setup_particle(Model m, ParticleIndex pi, IMP::ParticlesTemp children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6673  setup_particle(_ParticleAdaptor d, IMP::ParticlesTemp children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6674  """
6675  return _IMP_core.Hierarchy_setup_particle(*args)
6676 
6677  @staticmethod
6678  def get_is_setup(*args):
6679  r"""
6680  get_is_setup(_ParticleAdaptor p, HierarchyTraits tr=get_default_traits()) -> bool
6681  get_is_setup(Model arg1, ParticleIndex arg2, HierarchyTraits arg3=Hierarchy::get_default_traits()) -> bool
6682  """
6683  return _IMP_core.Hierarchy_get_is_setup(*args)
6684 
6685  @staticmethod
6686  def get_changed_key():
6687  r"""get_changed_key() -> TriggerKey"""
6688  return _IMP_core.Hierarchy_get_changed_key()
6689 
6690  def get_parent(self):
6691  r"""get_parent(Hierarchy self) -> Hierarchy"""
6692  return _IMP_core.Hierarchy_get_parent(self)
6693 
6694  def get_number_of_children(self):
6695  r"""get_number_of_children(Hierarchy self) -> unsigned int"""
6696  return _IMP_core.Hierarchy_get_number_of_children(self)
6697 
6698  def get_child(self, i):
6699  r"""get_child(Hierarchy self, unsigned int i) -> Hierarchy"""
6700  return _IMP_core.Hierarchy_get_child(self, i)
6701 
6702  def get_children_indexes(self):
6703  r"""get_children_indexes(Hierarchy self) -> IMP::ParticleIndexes"""
6704  return _IMP_core.Hierarchy_get_children_indexes(self)
6705 
6706  def get_children(self):
6707  r"""get_children(Hierarchy self) -> IMP::core::GenericHierarchies"""
6708  return _IMP_core.Hierarchy_get_children(self)
6709 
6710  def remove_child(self, *args):
6711  r"""
6712  remove_child(Hierarchy self, unsigned int i)
6713  remove_child(Hierarchy self, Hierarchy h)
6714  """
6715  return _IMP_core.Hierarchy_remove_child(self, *args)
6716 
6717  def clear_children(self):
6718  r"""clear_children(Hierarchy self)"""
6719  return _IMP_core.Hierarchy_clear_children(self)
6720 
6721  def add_child(self, h):
6722  r"""add_child(Hierarchy self, Hierarchy h)"""
6723  return _IMP_core.Hierarchy_add_child(self, h)
6724 
6725  def add_child_at(self, h, pos):
6726  r"""add_child_at(Hierarchy self, Hierarchy h, unsigned int pos)"""
6727  return _IMP_core.Hierarchy_add_child_at(self, h, pos)
6728 
6729  def get_child_index(self, *args):
6730  r"""
6731  get_child_index(Hierarchy self, unsigned int i) -> ParticleIndex
6732  get_child_index(Hierarchy self) -> int
6733  """
6734  return _IMP_core.Hierarchy_get_child_index(self, *args)
6735 
6736  @staticmethod
6737  def get_default_traits():
6738  r"""get_default_traits() -> HierarchyTraits"""
6739  return _IMP_core.Hierarchy_get_default_traits()
6740 
6741  def get_traits(self):
6742  r"""get_traits(Hierarchy self) -> HierarchyTraits"""
6743  return _IMP_core.Hierarchy_get_traits(self)
6744 
6745  def add_attribute(self, *args):
6746  r"""
6747  add_attribute(Hierarchy self, FloatKey k, IMP::Float v, bool opt)
6748  add_attribute(Hierarchy self, FloatKey a0, IMP::Float a1)
6749  add_attribute(Hierarchy self, IntKey a0, IMP::Int a1)
6750  add_attribute(Hierarchy self, FloatsKey a0, IMP::Floats a1)
6751  add_attribute(Hierarchy self, IntsKey a0, IMP::Ints a1)
6752  add_attribute(Hierarchy self, StringKey a0, IMP::String a1)
6753  add_attribute(Hierarchy self, ParticleIndexKey a0, Particle a1)
6754  add_attribute(Hierarchy self, ObjectKey a0, Object a1)
6755  add_attribute(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
6756  add_attribute(Hierarchy self, SparseIntKey a0, IMP::Int a1)
6757  add_attribute(Hierarchy self, SparseStringKey a0, IMP::String a1)
6758  add_attribute(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
6759  """
6760  return _IMP_core.Hierarchy_add_attribute(self, *args)
6761 
6762  def get_value(self, *args):
6763  r"""
6764  get_value(Hierarchy self, FloatKey a0) -> IMP::Float
6765  get_value(Hierarchy self, IntKey a0) -> IMP::Int
6766  get_value(Hierarchy self, FloatsKey a0) -> IMP::Floats
6767  get_value(Hierarchy self, IntsKey a0) -> IMP::Ints
6768  get_value(Hierarchy self, StringKey a0) -> IMP::String
6769  get_value(Hierarchy self, ParticleIndexKey a0) -> Particle
6770  get_value(Hierarchy self, ObjectKey a0) -> Object
6771  get_value(Hierarchy self, SparseFloatKey a0) -> IMP::Float
6772  get_value(Hierarchy self, SparseIntKey a0) -> IMP::Int
6773  get_value(Hierarchy self, SparseStringKey a0) -> IMP::String
6774  get_value(Hierarchy self, SparseParticleIndexKey a0) -> ParticleIndex
6775  """
6776  return _IMP_core.Hierarchy_get_value(self, *args)
6777 
6778  def set_value(self, *args):
6779  r"""
6780  set_value(Hierarchy self, FloatKey a0, IMP::Float a1)
6781  set_value(Hierarchy self, IntKey a0, IMP::Int a1)
6782  set_value(Hierarchy self, FloatsKey a0, IMP::Floats a1)
6783  set_value(Hierarchy self, IntsKey a0, IMP::Ints a1)
6784  set_value(Hierarchy self, StringKey a0, IMP::String a1)
6785  set_value(Hierarchy self, ParticleIndexKey a0, Particle a1)
6786  set_value(Hierarchy self, ObjectKey a0, Object a1)
6787  set_value(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
6788  set_value(Hierarchy self, SparseIntKey a0, IMP::Int a1)
6789  set_value(Hierarchy self, SparseStringKey a0, IMP::String a1)
6790  set_value(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
6791  """
6792  return _IMP_core.Hierarchy_set_value(self, *args)
6793 
6794  def remove_attribute(self, *args):
6795  r"""
6796  remove_attribute(Hierarchy self, FloatKey a0)
6797  remove_attribute(Hierarchy self, IntKey a0)
6798  remove_attribute(Hierarchy self, FloatsKey a0)
6799  remove_attribute(Hierarchy self, IntsKey a0)
6800  remove_attribute(Hierarchy self, StringKey a0)
6801  remove_attribute(Hierarchy self, ParticleIndexKey a0)
6802  remove_attribute(Hierarchy self, ObjectKey a0)
6803  remove_attribute(Hierarchy self, SparseFloatKey a0)
6804  remove_attribute(Hierarchy self, SparseIntKey a0)
6805  remove_attribute(Hierarchy self, SparseStringKey a0)
6806  remove_attribute(Hierarchy self, SparseParticleIndexKey a0)
6807  """
6808  return _IMP_core.Hierarchy_remove_attribute(self, *args)
6809 
6810  def has_attribute(self, *args):
6811  r"""
6812  has_attribute(Hierarchy self, FloatKey a0) -> bool
6813  has_attribute(Hierarchy self, IntKey a0) -> bool
6814  has_attribute(Hierarchy self, FloatsKey a0) -> bool
6815  has_attribute(Hierarchy self, IntsKey a0) -> bool
6816  has_attribute(Hierarchy self, StringKey a0) -> bool
6817  has_attribute(Hierarchy self, ParticleIndexKey a0) -> bool
6818  has_attribute(Hierarchy self, ObjectKey a0) -> bool
6819  has_attribute(Hierarchy self, SparseFloatKey a0) -> bool
6820  has_attribute(Hierarchy self, SparseIntKey a0) -> bool
6821  has_attribute(Hierarchy self, SparseStringKey a0) -> bool
6822  has_attribute(Hierarchy self, SparseParticleIndexKey a0) -> bool
6823  """
6824  return _IMP_core.Hierarchy_has_attribute(self, *args)
6825 
6826  def get_derivative(self, a0):
6827  r"""get_derivative(Hierarchy self, FloatKey a0) -> double"""
6828  return _IMP_core.Hierarchy_get_derivative(self, a0)
6829 
6830  def get_name(self):
6831  r"""get_name(Hierarchy self) -> std::string"""
6832  return _IMP_core.Hierarchy_get_name(self)
6833 
6834  def clear_caches(self):
6835  r"""clear_caches(Hierarchy self)"""
6836  return _IMP_core.Hierarchy_clear_caches(self)
6837 
6838  def set_name(self, a0):
6839  r"""set_name(Hierarchy self, std::string a0)"""
6840  return _IMP_core.Hierarchy_set_name(self, a0)
6841 
6842  def set_check_level(self, a0):
6843  r"""set_check_level(Hierarchy self, IMP::CheckLevel a0)"""
6844  return _IMP_core.Hierarchy_set_check_level(self, a0)
6845 
6846  def add_to_derivative(self, a0, a1, a2):
6847  r"""add_to_derivative(Hierarchy self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6848  return _IMP_core.Hierarchy_add_to_derivative(self, a0, a1, a2)
6849 
6850  def set_is_optimized(self, a0, a1):
6851  r"""set_is_optimized(Hierarchy self, FloatKey a0, bool a1)"""
6852  return _IMP_core.Hierarchy_set_is_optimized(self, a0, a1)
6853 
6854  def get_is_optimized(self, a0):
6855  r"""get_is_optimized(Hierarchy self, FloatKey a0) -> bool"""
6856  return _IMP_core.Hierarchy_get_is_optimized(self, a0)
6857 
6858  def get_check_level(self):
6859  r"""get_check_level(Hierarchy self) -> IMP::CheckLevel"""
6860  return _IMP_core.Hierarchy_get_check_level(self)
6861 
6862  def __eq__(self, *args):
6863  r"""
6864  __eq__(Hierarchy self, Hierarchy o) -> bool
6865  __eq__(Hierarchy self, Particle d) -> bool
6866  """
6867  return _IMP_core.Hierarchy___eq__(self, *args)
6868 
6869  def __ne__(self, *args):
6870  r"""
6871  __ne__(Hierarchy self, Hierarchy o) -> bool
6872  __ne__(Hierarchy self, Particle d) -> bool
6873  """
6874  return _IMP_core.Hierarchy___ne__(self, *args)
6875 
6876  def __le__(self, *args):
6877  r"""
6878  __le__(Hierarchy self, Hierarchy o) -> bool
6879  __le__(Hierarchy self, Particle d) -> bool
6880  """
6881  return _IMP_core.Hierarchy___le__(self, *args)
6882 
6883  def __lt__(self, *args):
6884  r"""
6885  __lt__(Hierarchy self, Hierarchy o) -> bool
6886  __lt__(Hierarchy self, Particle d) -> bool
6887  """
6888  return _IMP_core.Hierarchy___lt__(self, *args)
6889 
6890  def __ge__(self, *args):
6891  r"""
6892  __ge__(Hierarchy self, Hierarchy o) -> bool
6893  __ge__(Hierarchy self, Particle d) -> bool
6894  """
6895  return _IMP_core.Hierarchy___ge__(self, *args)
6896 
6897  def __gt__(self, *args):
6898  r"""
6899  __gt__(Hierarchy self, Hierarchy o) -> bool
6900  __gt__(Hierarchy self, Particle d) -> bool
6901  """
6902  return _IMP_core.Hierarchy___gt__(self, *args)
6903 
6904  def __hash__(self):
6905  r"""__hash__(Hierarchy self) -> std::size_t"""
6906  return _IMP_core.Hierarchy___hash__(self)
6907 
6908  def __str__(self):
6909  r"""__str__(Hierarchy self) -> std::string"""
6910  return _IMP_core.Hierarchy___str__(self)
6911 
6912  def __repr__(self):
6913  r"""__repr__(Hierarchy self) -> std::string"""
6914  return _IMP_core.Hierarchy___repr__(self)
6915  __swig_destroy__ = _IMP_core.delete_Hierarchy
6916 
6917 # Register Hierarchy in _IMP_core:
6918 _IMP_core.Hierarchy_swigregister(Hierarchy)
6919 class HierarchyVisitor(object):
6920  r"""Proxy of C++ IMP::core::HierarchyVisitor class."""
6921 
6922  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6923  __repr__ = _swig_repr
6924 
6925  def __init__(self):
6926  r"""__init__(HierarchyVisitor self) -> HierarchyVisitor"""
6927  if self.__class__ == HierarchyVisitor:
6928  _self = None
6929  else:
6930  _self = self
6931  _IMP_core.HierarchyVisitor_swiginit(self, _IMP_core.new_HierarchyVisitor(_self, ))
6932 
6933  if self.__class__ != HierarchyVisitor:
6934  _director_objects.register(self)
6935 
6936 
6937 
6938 
6939  def __call__(self, p):
6940  r"""__call__(HierarchyVisitor self, Hierarchy p) -> bool"""
6941  return _IMP_core.HierarchyVisitor___call__(self, p)
6942  __swig_destroy__ = _IMP_core.delete_HierarchyVisitor
6943  def __disown__(self):
6944  self.this.disown()
6945  _IMP_core.disown_HierarchyVisitor(self)
6946  return weakref.proxy(self)
6947 
6948 # Register HierarchyVisitor in _IMP_core:
6949 _IMP_core.HierarchyVisitor_swigregister(HierarchyVisitor)
6950 class ModifierVisitor(HierarchyVisitor):
6951  r"""Proxy of C++ IMP::core::ModifierVisitor class."""
6952 
6953  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6954  __repr__ = _swig_repr
6955 
6956  def __init__(self, sm):
6957  r"""__init__(ModifierVisitor self, SingletonModifier sm) -> ModifierVisitor"""
6958  _IMP_core.ModifierVisitor_swiginit(self, _IMP_core.new_ModifierVisitor(sm))
6959  __swig_destroy__ = _IMP_core.delete_ModifierVisitor
6960 
6961 # Register ModifierVisitor in _IMP_core:
6962 _IMP_core.ModifierVisitor_swigregister(ModifierVisitor)
6963 class HierarchyCounter(HierarchyVisitor):
6964  r"""Proxy of C++ IMP::core::HierarchyCounter class."""
6965 
6966  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6967 
6968  def __init__(self):
6969  r"""__init__(HierarchyCounter self) -> HierarchyCounter"""
6970  _IMP_core.HierarchyCounter_swiginit(self, _IMP_core.new_HierarchyCounter())
6971 
6972  def get_count(self):
6973  r"""get_count(HierarchyCounter self) -> unsigned int"""
6974  return _IMP_core.HierarchyCounter_get_count(self)
6975 
6976  def show(self, *args):
6977  r"""show(HierarchyCounter self, _ostream out=std::cout)"""
6978  return _IMP_core.HierarchyCounter_show(self, *args)
6979 
6980  def __str__(self):
6981  r"""__str__(HierarchyCounter self) -> std::string"""
6982  return _IMP_core.HierarchyCounter___str__(self)
6983 
6984  def __repr__(self):
6985  r"""__repr__(HierarchyCounter self) -> std::string"""
6986  return _IMP_core.HierarchyCounter___repr__(self)
6987 
6988  def _get_as_binary(self):
6989  r"""_get_as_binary(HierarchyCounter self) -> PyObject *"""
6990  return _IMP_core.HierarchyCounter__get_as_binary(self)
6991 
6992  def _set_from_binary(self, p):
6993  r"""_set_from_binary(HierarchyCounter self, PyObject * p)"""
6994  return _IMP_core.HierarchyCounter__set_from_binary(self, p)
6995 
6996  def __getstate__(self):
6997  p = self._get_as_binary()
6998  if len(self.__dict__) > 1:
6999  d = self.__dict__.copy()
7000  del d['this']
7001  p = (d, p)
7002  return p
7003 
7004  def __setstate__(self, p):
7005  if not hasattr(self, 'this'):
7006  self.__init__()
7007  if isinstance(p, tuple):
7008  d, p = p
7009  self.__dict__.update(d)
7010  return self._set_from_binary(p)
7011 
7012  __swig_destroy__ = _IMP_core.delete_HierarchyCounter
7013 
7014 # Register HierarchyCounter in _IMP_core:
7015 _IMP_core.HierarchyCounter_swigregister(HierarchyCounter)
7016 
7017 def get_leaves(mhd):
7018  r"""get_leaves(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
7019  return _IMP_core.get_leaves(mhd)
7020 
7021 def get_internal(mhd):
7022  r"""get_internal(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
7023  return _IMP_core.get_internal(mhd)
7024 
7025 def get_all_descendants(mhd):
7026  r"""get_all_descendants(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
7027  return _IMP_core.get_all_descendants(mhd)
7028 
7029 def get_root(h):
7030  r"""get_root(Hierarchy h) -> Hierarchy"""
7031  return _IMP_core.get_root(h)
7032 
7033 def visit_breadth_first(d, f):
7034  r"""visit_breadth_first(Hierarchy d, HierarchyVisitor f)"""
7035  return _IMP_core.visit_breadth_first(d, f)
7036 
7037 def visit_depth_first(d, f):
7038  r"""visit_depth_first(Hierarchy d, HierarchyVisitor f)"""
7039  return _IMP_core.visit_depth_first(d, f)
7040 class LeavesRefiner(IMP.Refiner):
7041  r"""Proxy of C++ IMP::core::LeavesRefiner class."""
7042 
7043  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7044 
7045  def __init__(self, tr):
7046  r"""__init__(LeavesRefiner self, HierarchyTraits tr) -> LeavesRefiner"""
7047  _IMP_core.LeavesRefiner_swiginit(self, _IMP_core.new_LeavesRefiner(tr))
7048 
7049  def do_get_inputs(self, m, pis):
7050  r"""do_get_inputs(LeavesRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7051  return _IMP_core.LeavesRefiner_do_get_inputs(self, m, pis)
7052 
7053  def get_version_info(self):
7054  r"""get_version_info(LeavesRefiner self) -> VersionInfo"""
7055  return _IMP_core.LeavesRefiner_get_version_info(self)
7056  __swig_destroy__ = _IMP_core.delete_LeavesRefiner
7057 
7058  def __str__(self):
7059  r"""__str__(LeavesRefiner self) -> std::string"""
7060  return _IMP_core.LeavesRefiner___str__(self)
7061 
7062  def __repr__(self):
7063  r"""__repr__(LeavesRefiner self) -> std::string"""
7064  return _IMP_core.LeavesRefiner___repr__(self)
7065 
7066  @staticmethod
7067  def get_from(o):
7068  return _object_cast_to_LeavesRefiner(o)
7069 
7070 
7071 # Register LeavesRefiner in _IMP_core:
7072 _IMP_core.LeavesRefiner_swigregister(LeavesRefiner)
7073 class Linear(IMP.UnaryFunction):
7074  r"""Proxy of C++ IMP::core::Linear class."""
7075 
7076  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7077 
7078  def __init__(self, *args):
7079  r"""
7080  __init__(Linear self, double offset, double slope) -> Linear
7081  __init__(Linear self) -> Linear
7082  """
7083  _IMP_core.Linear_swiginit(self, _IMP_core.new_Linear(*args))
7084 
7085  def set_slope(self, f):
7086  r"""set_slope(Linear self, double f)"""
7087  return _IMP_core.Linear_set_slope(self, f)
7088 
7089  def set_offset(self, f):
7090  r"""set_offset(Linear self, double f)"""
7091  return _IMP_core.Linear_set_offset(self, f)
7092 
7093  def get_version_info(self):
7094  r"""get_version_info(Linear self) -> VersionInfo"""
7095  return _IMP_core.Linear_get_version_info(self)
7096  __swig_destroy__ = _IMP_core.delete_Linear
7097 
7098  def __str__(self):
7099  r"""__str__(Linear self) -> std::string"""
7100  return _IMP_core.Linear___str__(self)
7101 
7102  def __repr__(self):
7103  r"""__repr__(Linear self) -> std::string"""
7104  return _IMP_core.Linear___repr__(self)
7105 
7106  @staticmethod
7107  def get_from(o):
7108  return _object_cast_to_Linear(o)
7109 
7110 
7111  def _get_as_binary(self):
7112  r"""_get_as_binary(Linear self) -> PyObject *"""
7113  return _IMP_core.Linear__get_as_binary(self)
7114 
7115  def _set_from_binary(self, p):
7116  r"""_set_from_binary(Linear self, PyObject * p)"""
7117  return _IMP_core.Linear__set_from_binary(self, p)
7118 
7119  def __getstate__(self):
7120  p = self._get_as_binary()
7121  if len(self.__dict__) > 1:
7122  d = self.__dict__.copy()
7123  del d['this']
7124  p = (d, p)
7125  return p
7126 
7127  def __setstate__(self, p):
7128  if not hasattr(self, 'this'):
7129  self.__init__()
7130  if isinstance(p, tuple):
7131  d, p = p
7132  self.__dict__.update(d)
7133  return self._set_from_binary(p)
7134 
7135 
7136 # Register Linear in _IMP_core:
7137 _IMP_core.Linear_swigregister(Linear)
7138 class LogNormalMover(MonteCarloMover):
7139  r"""Proxy of C++ IMP::core::LogNormalMover class."""
7140 
7141  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7142 
7143  def __init__(self, *args):
7144  r"""
7145  __init__(LogNormalMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double stddev) -> LogNormalMover
7146  __init__(LogNormalMover self, Model m, ParticleIndex pi, double stddev) -> LogNormalMover
7147  __init__(LogNormalMover self, IMP::ParticlesTemp const & sc, IMP::FloatKeys const & vars, IMP::Float sigma) -> LogNormalMover
7148  __init__(LogNormalMover self, IMP::ParticlesTemp const & sc, IMP::Float radius) -> LogNormalMover
7149  __init__(LogNormalMover self) -> LogNormalMover
7150  """
7151  _IMP_core.LogNormalMover_swiginit(self, _IMP_core.new_LogNormalMover(*args))
7152 
7153  def set_sigma(self, sigma):
7154  r"""set_sigma(LogNormalMover self, IMP::Float sigma)"""
7155  return _IMP_core.LogNormalMover_set_sigma(self, sigma)
7156 
7157  def get_sigma(self):
7158  r"""get_sigma(LogNormalMover self) -> IMP::Float"""
7159  return _IMP_core.LogNormalMover_get_sigma(self)
7160 
7161  def get_version_info(self):
7162  r"""get_version_info(LogNormalMover self) -> VersionInfo"""
7163  return _IMP_core.LogNormalMover_get_version_info(self)
7164  __swig_destroy__ = _IMP_core.delete_LogNormalMover
7165 
7166  def __str__(self):
7167  r"""__str__(LogNormalMover self) -> std::string"""
7168  return _IMP_core.LogNormalMover___str__(self)
7169 
7170  def __repr__(self):
7171  r"""__repr__(LogNormalMover self) -> std::string"""
7172  return _IMP_core.LogNormalMover___repr__(self)
7173 
7174  @staticmethod
7175  def get_from(o):
7176  return _object_cast_to_LogNormalMover(o)
7177 
7178 
7179  def _get_as_binary(self):
7180  r"""_get_as_binary(LogNormalMover self) -> PyObject *"""
7181  return _IMP_core.LogNormalMover__get_as_binary(self)
7182 
7183  def _set_from_binary(self, p):
7184  r"""_set_from_binary(LogNormalMover self, PyObject * p)"""
7185  return _IMP_core.LogNormalMover__set_from_binary(self, p)
7186 
7187  def __getstate__(self):
7188  p = self._get_as_binary()
7189  if len(self.__dict__) > 1:
7190  d = self.__dict__.copy()
7191  del d['this']
7192  p = (d, p)
7193  return p
7194 
7195  def __setstate__(self, p):
7196  if not hasattr(self, 'this'):
7197  self.__init__()
7198  if isinstance(p, tuple):
7199  d, p = p
7200  self.__dict__.update(d)
7201  return self._set_from_binary(p)
7202 
7203 
7204 # Register LogNormalMover in _IMP_core:
7205 _IMP_core.LogNormalMover_swigregister(LogNormalMover)
7206 IMP_CORE_HAS_MONTE_CARLO_MOVER = _IMP_core.IMP_CORE_HAS_MONTE_CARLO_MOVER
7207 
7208 class MonteCarlo(IMP.Optimizer):
7209  r"""Proxy of C++ IMP::core::MonteCarlo class."""
7210 
7211  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7212 
7213  def __init__(self, m):
7214  r"""__init__(MonteCarlo self, Model m) -> MonteCarlo"""
7215  _IMP_core.MonteCarlo_swiginit(self, _IMP_core.new_MonteCarlo(m))
7216 
7217  def get_version_info(self):
7218  r"""get_version_info(MonteCarlo self) -> VersionInfo"""
7219  return _IMP_core.MonteCarlo_get_version_info(self)
7220  __swig_destroy__ = _IMP_core.delete_MonteCarlo
7221 
7222  def set_return_best(self, tf):
7223  r"""set_return_best(MonteCarlo self, bool tf)"""
7224  return _IMP_core.MonteCarlo_set_return_best(self, tf)
7225 
7226  def set_score_moved(self, mv):
7227  r"""set_score_moved(MonteCarlo self, bool mv)"""
7228  return _IMP_core.MonteCarlo_set_score_moved(self, mv)
7229 
7230  def set_kt(self, t):
7231  r"""set_kt(MonteCarlo self, IMP::Float t)"""
7232  return _IMP_core.MonteCarlo_set_kt(self, t)
7233 
7234  def get_kt(self):
7235  r"""get_kt(MonteCarlo self) -> IMP::Float"""
7236  return _IMP_core.MonteCarlo_get_kt(self)
7237 
7238  def get_last_accepted_energy(self):
7239  r"""get_last_accepted_energy(MonteCarlo self) -> double"""
7240  return _IMP_core.MonteCarlo_get_last_accepted_energy(self)
7241 
7242  def get_best_accepted_energy(self):
7243  r"""get_best_accepted_energy(MonteCarlo self) -> double"""
7244  return _IMP_core.MonteCarlo_get_best_accepted_energy(self)
7245 
7246  def get_number_of_downward_steps(self):
7247  r"""get_number_of_downward_steps(MonteCarlo self) -> unsigned int"""
7248  return _IMP_core.MonteCarlo_get_number_of_downward_steps(self)
7249 
7250  def get_number_of_upward_steps(self):
7251  r"""get_number_of_upward_steps(MonteCarlo self) -> unsigned int"""
7252  return _IMP_core.MonteCarlo_get_number_of_upward_steps(self)
7253 
7254  def get_number_of_proposed_steps(self):
7255  r"""get_number_of_proposed_steps(MonteCarlo self) -> unsigned int"""
7256  return _IMP_core.MonteCarlo_get_number_of_proposed_steps(self)
7257 
7258  def get_number_of_accepted_steps(self):
7259  r"""get_number_of_accepted_steps(MonteCarlo self) -> unsigned int"""
7260  return _IMP_core.MonteCarlo_get_number_of_accepted_steps(self)
7261 
7262  def reset_statistics(self):
7263  r"""reset_statistics(MonteCarlo self)"""
7264  return _IMP_core.MonteCarlo_reset_statistics(self)
7265 
7266  def set_score_threshold(self, s):
7267  r"""set_score_threshold(MonteCarlo self, double s)"""
7268  return _IMP_core.MonteCarlo_set_score_threshold(self, s)
7269 
7270  def get_score_threshold(self):
7271  r"""get_score_threshold(MonteCarlo self) -> double"""
7272  return _IMP_core.MonteCarlo_get_score_threshold(self)
7273 
7274  def set_maximum_difference(self, d):
7275  r"""set_maximum_difference(MonteCarlo self, double d)"""
7276  return _IMP_core.MonteCarlo_set_maximum_difference(self, d)
7277 
7278  def get_maximum_difference(self):
7279  r"""get_maximum_difference(MonteCarlo self) -> double"""
7280  return _IMP_core.MonteCarlo_get_maximum_difference(self)
7281  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)
7282  def __set_movers(self, obj): IMP._list_util.set_varlist(self.movers, obj)
7283  def __del_movers(self): IMP._list_util.del_varlist(self.movers)
7284  movers = property(__get_movers, __set_movers, __del_movers, doc="List of ##ucnames")
7285 
7286  def remove_mover(self, d):
7287  r"""remove_mover(MonteCarlo self, MonteCarloMover d)"""
7288  return _IMP_core.MonteCarlo_remove_mover(self, d)
7289 
7290  def _python_index_mover(self, d, start, stop):
7291  r"""_python_index_mover(MonteCarlo self, MonteCarloMover d, unsigned int start, unsigned int stop) -> unsigned int"""
7292  return _IMP_core.MonteCarlo__python_index_mover(self, d, start, stop)
7293 
7294  def remove_movers(self, d):
7295  r"""remove_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & d)"""
7296  return _IMP_core.MonteCarlo_remove_movers(self, d)
7297 
7298  def set_movers(self, ps):
7299  r"""set_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & ps)"""
7300  return _IMP_core.MonteCarlo_set_movers(self, ps)
7301 
7302  def set_movers_order(self, objs):
7303  r"""set_movers_order(MonteCarlo self, IMP::core::MonteCarloMovers const & objs)"""
7304  return _IMP_core.MonteCarlo_set_movers_order(self, objs)
7305 
7306  def add_mover(self, obj):
7307  r"""add_mover(MonteCarlo self, MonteCarloMover obj) -> unsigned int"""
7308  return _IMP_core.MonteCarlo_add_mover(self, obj)
7309 
7310  def add_movers(self, objs):
7311  r"""add_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & objs)"""
7312  return _IMP_core.MonteCarlo_add_movers(self, objs)
7313 
7314  def clear_movers(self):
7315  r"""clear_movers(MonteCarlo self)"""
7316  return _IMP_core.MonteCarlo_clear_movers(self)
7317 
7318  def get_number_of_movers(self):
7319  r"""get_number_of_movers(MonteCarlo self) -> unsigned int"""
7320  return _IMP_core.MonteCarlo_get_number_of_movers(self)
7321 
7322  def get_has_movers(self):
7323  r"""get_has_movers(MonteCarlo self) -> bool"""
7324  return _IMP_core.MonteCarlo_get_has_movers(self)
7325 
7326  def get_mover(self, i):
7327  r"""get_mover(MonteCarlo self, unsigned int i) -> MonteCarloMover"""
7328  return _IMP_core.MonteCarlo_get_mover(self, i)
7329 
7330  def get_movers(self):
7331  r"""get_movers(MonteCarlo self) -> IMP::core::MonteCarloMovers"""
7332  return _IMP_core.MonteCarlo_get_movers(self)
7333 
7334  def erase_mover(self, i):
7335  r"""erase_mover(MonteCarlo self, unsigned int i)"""
7336  return _IMP_core.MonteCarlo_erase_mover(self, i)
7337 
7338  def reserve_movers(self, sz):
7339  r"""reserve_movers(MonteCarlo self, unsigned int sz)"""
7340  return _IMP_core.MonteCarlo_reserve_movers(self, sz)
7341 
7342  def __str__(self):
7343  r"""__str__(MonteCarlo self) -> std::string"""
7344  return _IMP_core.MonteCarlo___str__(self)
7345 
7346  def __repr__(self):
7347  r"""__repr__(MonteCarlo self) -> std::string"""
7348  return _IMP_core.MonteCarlo___repr__(self)
7349 
7350  @staticmethod
7351  def get_from(o):
7352  return _object_cast_to_MonteCarlo(o)
7353 
7354 
7355 # Register MonteCarlo in _IMP_core:
7356 _IMP_core.MonteCarlo_swigregister(MonteCarlo)
7357 class MonteCarloWithLocalOptimization(MonteCarlo):
7358  r"""Proxy of C++ IMP::core::MonteCarloWithLocalOptimization class."""
7359 
7360  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7361 
7362  def __init__(self, opt, steps):
7363  r"""__init__(MonteCarloWithLocalOptimization self, Optimizer opt, unsigned int steps) -> MonteCarloWithLocalOptimization"""
7364  _IMP_core.MonteCarloWithLocalOptimization_swiginit(self, _IMP_core.new_MonteCarloWithLocalOptimization(opt, steps))
7365 
7366  def get_number_of_steps(self):
7367  r"""get_number_of_steps(MonteCarloWithLocalOptimization self) -> unsigned int"""
7368  return _IMP_core.MonteCarloWithLocalOptimization_get_number_of_steps(self)
7369 
7370  def get_local_optimizer(self):
7371  r"""get_local_optimizer(MonteCarloWithLocalOptimization self) -> Optimizer"""
7372  return _IMP_core.MonteCarloWithLocalOptimization_get_local_optimizer(self)
7373  __swig_destroy__ = _IMP_core.delete_MonteCarloWithLocalOptimization
7374 
7375  def __str__(self):
7376  r"""__str__(MonteCarloWithLocalOptimization self) -> std::string"""
7377  return _IMP_core.MonteCarloWithLocalOptimization___str__(self)
7378 
7379  def __repr__(self):
7380  r"""__repr__(MonteCarloWithLocalOptimization self) -> std::string"""
7381  return _IMP_core.MonteCarloWithLocalOptimization___repr__(self)
7382 
7383  @staticmethod
7384  def get_from(o):
7385  return _object_cast_to_MonteCarloWithLocalOptimization(o)
7386 
7387 
7388 # Register MonteCarloWithLocalOptimization in _IMP_core:
7389 _IMP_core.MonteCarloWithLocalOptimization_swigregister(MonteCarloWithLocalOptimization)
7390 class MonteCarloWithBasinHopping(MonteCarloWithLocalOptimization):
7391  r"""Proxy of C++ IMP::core::MonteCarloWithBasinHopping class."""
7392 
7393  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7394 
7395  def __init__(self, opt, ns):
7396  r"""__init__(MonteCarloWithBasinHopping self, Optimizer opt, unsigned int ns) -> MonteCarloWithBasinHopping"""
7397  _IMP_core.MonteCarloWithBasinHopping_swiginit(self, _IMP_core.new_MonteCarloWithBasinHopping(opt, ns))
7398  __swig_destroy__ = _IMP_core.delete_MonteCarloWithBasinHopping
7399 
7400  def __str__(self):
7401  r"""__str__(MonteCarloWithBasinHopping self) -> std::string"""
7402  return _IMP_core.MonteCarloWithBasinHopping___str__(self)
7403 
7404  def __repr__(self):
7405  r"""__repr__(MonteCarloWithBasinHopping self) -> std::string"""
7406  return _IMP_core.MonteCarloWithBasinHopping___repr__(self)
7407 
7408  @staticmethod
7409  def get_from(o):
7410  return _object_cast_to_MonteCarloWithBasinHopping(o)
7411 
7412 
7413 # Register MonteCarloWithBasinHopping in _IMP_core:
7414 _IMP_core.MonteCarloWithBasinHopping_swigregister(MonteCarloWithBasinHopping)
7415 class NeighborsTable(IMP.ScoreState):
7416  r"""Proxy of C++ IMP::core::NeighborsTable class."""
7417 
7418  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7419 
7420  def __init__(self, *args):
7421  r"""__init__(NeighborsTable self, PairContainer input, std::string name="CloseNeighborsTable%1%") -> NeighborsTable"""
7422  _IMP_core.NeighborsTable_swiginit(self, _IMP_core.new_NeighborsTable(*args))
7423 
7424  def get_neighbors(self, pi):
7425  r"""get_neighbors(NeighborsTable self, ParticleIndex pi) -> IMP::ParticleIndexes const &"""
7426  return _IMP_core.NeighborsTable_get_neighbors(self, pi)
7427 
7428  def get_version_info(self):
7429  r"""get_version_info(NeighborsTable self) -> VersionInfo"""
7430  return _IMP_core.NeighborsTable_get_version_info(self)
7431  __swig_destroy__ = _IMP_core.delete_NeighborsTable
7432 
7433  def __str__(self):
7434  r"""__str__(NeighborsTable self) -> std::string"""
7435  return _IMP_core.NeighborsTable___str__(self)
7436 
7437  def __repr__(self):
7438  r"""__repr__(NeighborsTable self) -> std::string"""
7439  return _IMP_core.NeighborsTable___repr__(self)
7440 
7441  @staticmethod
7442  def get_from(o):
7443  return _object_cast_to_NeighborsTable(o)
7444 
7445 
7446 # Register NeighborsTable in _IMP_core:
7447 _IMP_core.NeighborsTable_swigregister(NeighborsTable)
7448 class NormalMover(MonteCarloMover):
7449  r"""Proxy of C++ IMP::core::NormalMover class."""
7450 
7451  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7452 
7453  def __init__(self, *args):
7454  r"""
7455  __init__(NormalMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double stddev) -> NormalMover
7456  __init__(NormalMover self, Model m, ParticleIndex pi, double stddev) -> NormalMover
7457  __init__(NormalMover self, IMP::ParticlesTemp const & sc, IMP::FloatKeys const & vars, IMP::Float sigma) -> NormalMover
7458  __init__(NormalMover self, IMP::ParticlesTemp const & sc, IMP::Float radius) -> NormalMover
7459  __init__(NormalMover self) -> NormalMover
7460  """
7461  _IMP_core.NormalMover_swiginit(self, _IMP_core.new_NormalMover(*args))
7462 
7463  def set_sigma(self, sigma):
7464  r"""set_sigma(NormalMover self, IMP::Float sigma)"""
7465  return _IMP_core.NormalMover_set_sigma(self, sigma)
7466 
7467  def get_sigma(self):
7468  r"""get_sigma(NormalMover self) -> IMP::Float"""
7469  return _IMP_core.NormalMover_get_sigma(self)
7470 
7471  def get_version_info(self):
7472  r"""get_version_info(NormalMover self) -> VersionInfo"""
7473  return _IMP_core.NormalMover_get_version_info(self)
7474  __swig_destroy__ = _IMP_core.delete_NormalMover
7475 
7476  def __str__(self):
7477  r"""__str__(NormalMover self) -> std::string"""
7478  return _IMP_core.NormalMover___str__(self)
7479 
7480  def __repr__(self):
7481  r"""__repr__(NormalMover self) -> std::string"""
7482  return _IMP_core.NormalMover___repr__(self)
7483 
7484  @staticmethod
7485  def get_from(o):
7486  return _object_cast_to_NormalMover(o)
7487 
7488 
7489  def _get_as_binary(self):
7490  r"""_get_as_binary(NormalMover self) -> PyObject *"""
7491  return _IMP_core.NormalMover__get_as_binary(self)
7492 
7493  def _set_from_binary(self, p):
7494  r"""_set_from_binary(NormalMover self, PyObject * p)"""
7495  return _IMP_core.NormalMover__set_from_binary(self, p)
7496 
7497  def __getstate__(self):
7498  p = self._get_as_binary()
7499  if len(self.__dict__) > 1:
7500  d = self.__dict__.copy()
7501  del d['this']
7502  p = (d, p)
7503  return p
7504 
7505  def __setstate__(self, p):
7506  if not hasattr(self, 'this'):
7507  self.__init__()
7508  if isinstance(p, tuple):
7509  d, p = p
7510  self.__dict__.update(d)
7511  return self._set_from_binary(p)
7512 
7513 
7514 # Register NormalMover in _IMP_core:
7515 _IMP_core.NormalMover_swigregister(NormalMover)
7516 class OpenCubicSpline(_OpenCubicSplineBase):
7517  r"""Proxy of C++ IMP::core::OpenCubicSpline class."""
7518 
7519  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7520 
7521  def __init__(self, values, minrange, spacing, extend=False):
7522  r"""__init__(OpenCubicSpline self, IMP::Floats const & values, IMP::Float minrange, IMP::Float spacing, bool extend=False) -> OpenCubicSpline"""
7523  _IMP_core.OpenCubicSpline_swiginit(self, _IMP_core.new_OpenCubicSpline(values, minrange, spacing, extend))
7524 
7525  def __str__(self):
7526  r"""__str__(OpenCubicSpline self) -> std::string"""
7527  return _IMP_core.OpenCubicSpline___str__(self)
7528 
7529  def __repr__(self):
7530  r"""__repr__(OpenCubicSpline self) -> std::string"""
7531  return _IMP_core.OpenCubicSpline___repr__(self)
7532 
7533  @staticmethod
7534  def get_from(o):
7535  return _object_cast_to_OpenCubicSpline(o)
7536 
7537  __swig_destroy__ = _IMP_core.delete_OpenCubicSpline
7538 
7539 # Register OpenCubicSpline in _IMP_core:
7540 _IMP_core.OpenCubicSpline_swigregister(OpenCubicSpline)
7541 class QuadraticClosePairsFinder(ClosePairsFinder):
7542  r"""Proxy of C++ IMP::core::QuadraticClosePairsFinder class."""
7543 
7544  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7545 
7546  def __init__(self):
7547  r"""__init__(QuadraticClosePairsFinder self) -> QuadraticClosePairsFinder"""
7548  _IMP_core.QuadraticClosePairsFinder_swiginit(self, _IMP_core.new_QuadraticClosePairsFinder())
7549 
7550  def get_are_close_and_filtered(self, *args):
7551  r"""
7552  get_are_close_and_filtered(QuadraticClosePairsFinder self, Particle a, Particle b) -> bool
7553  get_are_close_and_filtered(QuadraticClosePairsFinder self, Model m, ParticleIndex a, ParticleIndex b) -> bool
7554  """
7555  return _IMP_core.QuadraticClosePairsFinder_get_are_close_and_filtered(self, *args)
7556 
7557  def get_close_pairs(self, *args):
7558  r"""
7559  get_close_pairs(QuadraticClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
7560  get_close_pairs(QuadraticClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
7561  get_close_pairs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
7562  get_close_pairs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
7563  """
7564  return _IMP_core.QuadraticClosePairsFinder_get_close_pairs(self, *args)
7565 
7566  def do_get_inputs(self, m, pis):
7567  r"""do_get_inputs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7568  return _IMP_core.QuadraticClosePairsFinder_do_get_inputs(self, m, pis)
7569 
7570  def get_version_info(self):
7571  r"""get_version_info(QuadraticClosePairsFinder self) -> VersionInfo"""
7572  return _IMP_core.QuadraticClosePairsFinder_get_version_info(self)
7573  __swig_destroy__ = _IMP_core.delete_QuadraticClosePairsFinder
7574 
7575  def __str__(self):
7576  r"""__str__(QuadraticClosePairsFinder self) -> std::string"""
7577  return _IMP_core.QuadraticClosePairsFinder___str__(self)
7578 
7579  def __repr__(self):
7580  r"""__repr__(QuadraticClosePairsFinder self) -> std::string"""
7581  return _IMP_core.QuadraticClosePairsFinder___repr__(self)
7582 
7583  @staticmethod
7584  def get_from(o):
7585  return _object_cast_to_QuadraticClosePairsFinder(o)
7586 
7587 
7588 # Register QuadraticClosePairsFinder in _IMP_core:
7589 _IMP_core.QuadraticClosePairsFinder_swigregister(QuadraticClosePairsFinder)
7590 class RefinedPairsPairScore(IMP.PairScore):
7591  r"""Proxy of C++ IMP::core::RefinedPairsPairScore class."""
7592 
7593  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7594 
7595  def __init__(self, r, f):
7596  r"""__init__(RefinedPairsPairScore self, Refiner r, PairScore f) -> RefinedPairsPairScore"""
7597  _IMP_core.RefinedPairsPairScore_swiginit(self, _IMP_core.new_RefinedPairsPairScore(r, f))
7598 
7599  def do_get_inputs(self, m, pis):
7600  r"""do_get_inputs(RefinedPairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7601  return _IMP_core.RefinedPairsPairScore_do_get_inputs(self, m, pis)
7602 
7603  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
7604  r"""evaluate_indexes(RefinedPairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
7605  return _IMP_core.RefinedPairsPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
7606 
7607  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
7608  r"""evaluate_indexes_scores(RefinedPairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
7609  return _IMP_core.RefinedPairsPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
7610 
7611  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
7612  r"""evaluate_indexes_delta(RefinedPairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
7613  return _IMP_core.RefinedPairsPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
7614 
7615  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
7616  r"""evaluate_if_good_indexes(RefinedPairsPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
7617  return _IMP_core.RefinedPairsPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
7618 
7619  def get_version_info(self):
7620  r"""get_version_info(RefinedPairsPairScore self) -> VersionInfo"""
7621  return _IMP_core.RefinedPairsPairScore_get_version_info(self)
7622  __swig_destroy__ = _IMP_core.delete_RefinedPairsPairScore
7623 
7624  def __str__(self):
7625  r"""__str__(RefinedPairsPairScore self) -> std::string"""
7626  return _IMP_core.RefinedPairsPairScore___str__(self)
7627 
7628  def __repr__(self):
7629  r"""__repr__(RefinedPairsPairScore self) -> std::string"""
7630  return _IMP_core.RefinedPairsPairScore___repr__(self)
7631 
7632  @staticmethod
7633  def get_from(o):
7634  return _object_cast_to_RefinedPairsPairScore(o)
7635 
7636 
7637 # Register RefinedPairsPairScore in _IMP_core:
7638 _IMP_core.RefinedPairsPairScore_swigregister(RefinedPairsPairScore)
7639 class RigidBody(XYZ):
7640  r"""Proxy of C++ IMP::core::RigidBody class."""
7641 
7642  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7643 
7644  def get_rigid_members(self):
7645  r"""get_rigid_members(RigidBody self) -> IMP::core::RigidMembers"""
7646  return _IMP_core.RigidBody_get_rigid_members(self)
7647 
7648  @staticmethod
7649  def get_rotation_keys():
7650  r"""get_rotation_keys() -> IMP::FloatKeys"""
7651  return _IMP_core.RigidBody_get_rotation_keys()
7652 
7653  def get_member_particle_indexes(self):
7654  r"""get_member_particle_indexes(RigidBody self) -> IMP::ParticleIndexes const &"""
7655  return _IMP_core.RigidBody_get_member_particle_indexes(self)
7656 
7657  def get_body_member_particle_indexes(self):
7658  r"""get_body_member_particle_indexes(RigidBody self) -> IMP::ParticleIndexes const &"""
7659  return _IMP_core.RigidBody_get_body_member_particle_indexes(self)
7660 
7661  def get_member_indexes(self):
7662  r"""get_member_indexes(RigidBody self) -> IMP::ParticleIndexes"""
7663  return _IMP_core.RigidBody_get_member_indexes(self)
7664 
7665  def show(self, *args):
7666  r"""show(RigidBody self, _ostream out=std::cout)"""
7667  return _IMP_core.RigidBody_show(self, *args)
7668 
7669  @staticmethod
7670  def setup_particle(*args):
7671  r"""
7672  setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor ps) -> RigidBody
7673  setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor ps) -> RigidBody
7674  setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf) -> RigidBody
7675  setup_particle(_ParticleAdaptor pa, ReferenceFrame3D rf) -> RigidBody
7676  """
7677  return _IMP_core.RigidBody_setup_particle(*args)
7678 
7679  @staticmethod
7680  def teardown_particle(rb):
7681  r"""teardown_particle(RigidBody rb)"""
7682  return _IMP_core.RigidBody_teardown_particle(rb)
7683 
7684  def __init__(self, *args):
7685  r"""
7686  __init__(RigidBody self) -> RigidBody
7687  __init__(RigidBody self, Model m, ParticleIndex id) -> RigidBody
7688  __init__(RigidBody self, _ParticleAdaptor d) -> RigidBody
7689  __init__(RigidBody self, RigidBody arg2) -> RigidBody
7690  """
7691  _IMP_core.RigidBody_swiginit(self, _IMP_core.new_RigidBody(*args))
7692  __swig_destroy__ = _IMP_core.delete_RigidBody
7693 
7694  @staticmethod
7695  def get_is_setup(*args):
7696  r"""
7697  get_is_setup(_ParticleAdaptor p) -> bool
7698  get_is_setup(Model m, ParticleIndex pi) -> bool
7699  """
7700  return _IMP_core.RigidBody_get_is_setup(*args)
7701 
7702  def get_coordinates(self):
7703  r"""get_coordinates(RigidBody self) -> Vector3D"""
7704  return _IMP_core.RigidBody_get_coordinates(self)
7705 
7706  def get_rotation(self):
7707  r"""get_rotation(RigidBody self) -> Rotation3D"""
7708  return _IMP_core.RigidBody_get_rotation(self)
7709 
7710  def get_reference_frame(self):
7711  r"""get_reference_frame(RigidBody self) -> ReferenceFrame3D"""
7712  return _IMP_core.RigidBody_get_reference_frame(self)
7713 
7714  def set_reference_frame(self, tr):
7715  r"""set_reference_frame(RigidBody self, ReferenceFrame3D tr)"""
7716  return _IMP_core.RigidBody_set_reference_frame(self, tr)
7717 
7718  def set_reference_frame_lazy(self, tr):
7719  r"""set_reference_frame_lazy(RigidBody self, ReferenceFrame3D tr)"""
7720  return _IMP_core.RigidBody_set_reference_frame_lazy(self, tr)
7721 
7722  def set_reference_frame_from_members(self, members):
7723  r"""set_reference_frame_from_members(RigidBody self, IMP::ParticleIndexes const & members)"""
7724  return _IMP_core.RigidBody_set_reference_frame_from_members(self, members)
7725 
7726  def pull_back_members_adjoints(self, da):
7727  r"""pull_back_members_adjoints(RigidBody self, DerivativeAccumulator da)"""
7728  return _IMP_core.RigidBody_pull_back_members_adjoints(self, da)
7729 
7730  def pull_back_member_adjoints(self, pi, da):
7731  r"""pull_back_member_adjoints(RigidBody self, ParticleIndex pi, DerivativeAccumulator da)"""
7732  return _IMP_core.RigidBody_pull_back_member_adjoints(self, pi, da)
7733 
7734  def pull_back_body_member_adjoints(self, pi, da):
7735  r"""pull_back_body_member_adjoints(RigidBody self, ParticleIndex pi, DerivativeAccumulator da)"""
7736  return _IMP_core.RigidBody_pull_back_body_member_adjoints(self, pi, da)
7737 
7738  def add_to_derivatives(self, *args):
7739  r"""
7740  add_to_derivatives(RigidBody self, Vector3D local_derivative, Vector3D local_location, DerivativeAccumulator da)
7741  add_to_derivatives(RigidBody self, Vector3D local_derivative, Vector3D global_derivative, Vector3D local_location, Rotation3D rot_local_to_global, DerivativeAccumulator da)
7742  """
7743  return _IMP_core.RigidBody_add_to_derivatives(self, *args)
7744 
7745  def add_to_rotational_derivatives(self, *args):
7746  r"""
7747  add_to_rotational_derivatives(RigidBody self, Vector4D other_qderiv, Rotation3D rot_other_to_local, Rotation3D rot_local_to_global, DerivativeAccumulator da)
7748  add_to_rotational_derivatives(RigidBody self, Vector4D qderiv, DerivativeAccumulator da)
7749  """
7750  return _IMP_core.RigidBody_add_to_rotational_derivatives(self, *args)
7751 
7752  def add_to_torque(self, torque_local, da):
7753  r"""add_to_torque(RigidBody self, Vector3D torque_local, DerivativeAccumulator da)"""
7754  return _IMP_core.RigidBody_add_to_torque(self, torque_local, da)
7755 
7756  def get_torque(self):
7757  r"""get_torque(RigidBody self) -> Vector3D"""
7758  return _IMP_core.RigidBody_get_torque(self)
7759 
7760  def get_coordinates_are_optimized(self):
7761  r"""get_coordinates_are_optimized(RigidBody self) -> bool"""
7762  return _IMP_core.RigidBody_get_coordinates_are_optimized(self)
7763 
7764  def set_coordinates_are_optimized(self, tf):
7765  r"""set_coordinates_are_optimized(RigidBody self, bool tf)"""
7766  return _IMP_core.RigidBody_set_coordinates_are_optimized(self, tf)
7767 
7768  def normalize_rotation(self):
7769  r"""normalize_rotation(RigidBody self)"""
7770  return _IMP_core.RigidBody_normalize_rotation(self)
7771 
7772  def update_members(self):
7773  r"""update_members(RigidBody self)"""
7774  return _IMP_core.RigidBody_update_members(self)
7775 
7776  def get_rotational_derivatives(self):
7777  r"""get_rotational_derivatives(RigidBody self) -> Vector4D"""
7778  return _IMP_core.RigidBody_get_rotational_derivatives(self)
7779 
7780  def get_number_of_members(self):
7781  r"""get_number_of_members(RigidBody self) -> unsigned int"""
7782  return _IMP_core.RigidBody_get_number_of_members(self)
7783 
7784  def get_member(self, i):
7785  r"""get_member(RigidBody self, unsigned int i) -> RigidBodyMember"""
7786  return _IMP_core.RigidBody_get_member(self, i)
7787 
7788  def add_member(self, p):
7789  r"""add_member(RigidBody self, _ParticleIndexAdaptor p)"""
7790  return _IMP_core.RigidBody_add_member(self, p)
7791 
7792  def add_non_rigid_member(self, p):
7793  r"""add_non_rigid_member(RigidBody self, _ParticleIndexAdaptor p)"""
7794  return _IMP_core.RigidBody_add_non_rigid_member(self, p)
7795 
7796  def set_is_rigid_member(self, pi, tf):
7797  r"""set_is_rigid_member(RigidBody self, ParticleIndex pi, bool tf)"""
7798  return _IMP_core.RigidBody_set_is_rigid_member(self, pi, tf)
7799 
7800  def remove_member(self, p):
7801  r"""remove_member(RigidBody self, _ParticleIndexAdaptor p)"""
7802  return _IMP_core.RigidBody_remove_member(self, p)
7803 
7804  def add_attribute(self, *args):
7805  r"""
7806  add_attribute(RigidBody self, FloatKey k, IMP::Float v, bool opt)
7807  add_attribute(RigidBody self, FloatKey a0, IMP::Float a1)
7808  add_attribute(RigidBody self, IntKey a0, IMP::Int a1)
7809  add_attribute(RigidBody self, FloatsKey a0, IMP::Floats a1)
7810  add_attribute(RigidBody self, IntsKey a0, IMP::Ints a1)
7811  add_attribute(RigidBody self, StringKey a0, IMP::String a1)
7812  add_attribute(RigidBody self, ParticleIndexKey a0, Particle a1)
7813  add_attribute(RigidBody self, ObjectKey a0, Object a1)
7814  add_attribute(RigidBody self, SparseFloatKey a0, IMP::Float a1)
7815  add_attribute(RigidBody self, SparseIntKey a0, IMP::Int a1)
7816  add_attribute(RigidBody self, SparseStringKey a0, IMP::String a1)
7817  add_attribute(RigidBody self, SparseParticleIndexKey a0, ParticleIndex a1)
7818  """
7819  return _IMP_core.RigidBody_add_attribute(self, *args)
7820 
7821  def get_value(self, *args):
7822  r"""
7823  get_value(RigidBody self, FloatKey a0) -> IMP::Float
7824  get_value(RigidBody self, IntKey a0) -> IMP::Int
7825  get_value(RigidBody self, FloatsKey a0) -> IMP::Floats
7826  get_value(RigidBody self, IntsKey a0) -> IMP::Ints
7827  get_value(RigidBody self, StringKey a0) -> IMP::String
7828  get_value(RigidBody self, ParticleIndexKey a0) -> Particle
7829  get_value(RigidBody self, ObjectKey a0) -> Object
7830  get_value(RigidBody self, SparseFloatKey a0) -> IMP::Float
7831  get_value(RigidBody self, SparseIntKey a0) -> IMP::Int
7832  get_value(RigidBody self, SparseStringKey a0) -> IMP::String
7833  get_value(RigidBody self, SparseParticleIndexKey a0) -> ParticleIndex
7834  """
7835  return _IMP_core.RigidBody_get_value(self, *args)
7836 
7837  def set_value(self, *args):
7838  r"""
7839  set_value(RigidBody self, FloatKey a0, IMP::Float a1)
7840  set_value(RigidBody self, IntKey a0, IMP::Int a1)
7841  set_value(RigidBody self, FloatsKey a0, IMP::Floats a1)
7842  set_value(RigidBody self, IntsKey a0, IMP::Ints a1)
7843  set_value(RigidBody self, StringKey a0, IMP::String a1)
7844  set_value(RigidBody self, ParticleIndexKey a0, Particle a1)
7845  set_value(RigidBody self, ObjectKey a0, Object a1)
7846  set_value(RigidBody self, SparseFloatKey a0, IMP::Float a1)
7847  set_value(RigidBody self, SparseIntKey a0, IMP::Int a1)
7848  set_value(RigidBody self, SparseStringKey a0, IMP::String a1)
7849  set_value(RigidBody self, SparseParticleIndexKey a0, ParticleIndex a1)
7850  """
7851  return _IMP_core.RigidBody_set_value(self, *args)
7852 
7853  def remove_attribute(self, *args):
7854  r"""
7855  remove_attribute(RigidBody self, FloatKey a0)
7856  remove_attribute(RigidBody self, IntKey a0)
7857  remove_attribute(RigidBody self, FloatsKey a0)
7858  remove_attribute(RigidBody self, IntsKey a0)
7859  remove_attribute(RigidBody self, StringKey a0)
7860  remove_attribute(RigidBody self, ParticleIndexKey a0)
7861  remove_attribute(RigidBody self, ObjectKey a0)
7862  remove_attribute(RigidBody self, SparseFloatKey a0)
7863  remove_attribute(RigidBody self, SparseIntKey a0)
7864  remove_attribute(RigidBody self, SparseStringKey a0)
7865  remove_attribute(RigidBody self, SparseParticleIndexKey a0)
7866  """
7867  return _IMP_core.RigidBody_remove_attribute(self, *args)
7868 
7869  def has_attribute(self, *args):
7870  r"""
7871  has_attribute(RigidBody self, FloatKey a0) -> bool
7872  has_attribute(RigidBody self, IntKey a0) -> bool
7873  has_attribute(RigidBody self, FloatsKey a0) -> bool
7874  has_attribute(RigidBody self, IntsKey a0) -> bool
7875  has_attribute(RigidBody self, StringKey a0) -> bool
7876  has_attribute(RigidBody self, ParticleIndexKey a0) -> bool
7877  has_attribute(RigidBody self, ObjectKey a0) -> bool
7878  has_attribute(RigidBody self, SparseFloatKey a0) -> bool
7879  has_attribute(RigidBody self, SparseIntKey a0) -> bool
7880  has_attribute(RigidBody self, SparseStringKey a0) -> bool
7881  has_attribute(RigidBody self, SparseParticleIndexKey a0) -> bool
7882  """
7883  return _IMP_core.RigidBody_has_attribute(self, *args)
7884 
7885  def get_derivative(self, a0):
7886  r"""get_derivative(RigidBody self, FloatKey a0) -> double"""
7887  return _IMP_core.RigidBody_get_derivative(self, a0)
7888 
7889  def get_name(self):
7890  r"""get_name(RigidBody self) -> std::string"""
7891  return _IMP_core.RigidBody_get_name(self)
7892 
7893  def clear_caches(self):
7894  r"""clear_caches(RigidBody self)"""
7895  return _IMP_core.RigidBody_clear_caches(self)
7896 
7897  def set_name(self, a0):
7898  r"""set_name(RigidBody self, std::string a0)"""
7899  return _IMP_core.RigidBody_set_name(self, a0)
7900 
7901  def set_check_level(self, a0):
7902  r"""set_check_level(RigidBody self, IMP::CheckLevel a0)"""
7903  return _IMP_core.RigidBody_set_check_level(self, a0)
7904 
7905  def add_to_derivative(self, a0, a1, a2):
7906  r"""add_to_derivative(RigidBody self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
7907  return _IMP_core.RigidBody_add_to_derivative(self, a0, a1, a2)
7908 
7909  def set_is_optimized(self, a0, a1):
7910  r"""set_is_optimized(RigidBody self, FloatKey a0, bool a1)"""
7911  return _IMP_core.RigidBody_set_is_optimized(self, a0, a1)
7912 
7913  def get_is_optimized(self, a0):
7914  r"""get_is_optimized(RigidBody self, FloatKey a0) -> bool"""
7915  return _IMP_core.RigidBody_get_is_optimized(self, a0)
7916 
7917  def get_check_level(self):
7918  r"""get_check_level(RigidBody self) -> IMP::CheckLevel"""
7919  return _IMP_core.RigidBody_get_check_level(self)
7920 
7921  def __eq__(self, *args):
7922  r"""
7923  __eq__(RigidBody self, RigidBody o) -> bool
7924  __eq__(RigidBody self, Particle d) -> bool
7925  """
7926  return _IMP_core.RigidBody___eq__(self, *args)
7927 
7928  def __ne__(self, *args):
7929  r"""
7930  __ne__(RigidBody self, RigidBody o) -> bool
7931  __ne__(RigidBody self, Particle d) -> bool
7932  """
7933  return _IMP_core.RigidBody___ne__(self, *args)
7934 
7935  def __le__(self, *args):
7936  r"""
7937  __le__(RigidBody self, RigidBody o) -> bool
7938  __le__(RigidBody self, Particle d) -> bool
7939  """
7940  return _IMP_core.RigidBody___le__(self, *args)
7941 
7942  def __lt__(self, *args):
7943  r"""
7944  __lt__(RigidBody self, RigidBody o) -> bool
7945  __lt__(RigidBody self, Particle d) -> bool
7946  """
7947  return _IMP_core.RigidBody___lt__(self, *args)
7948 
7949  def __ge__(self, *args):
7950  r"""
7951  __ge__(RigidBody self, RigidBody o) -> bool
7952  __ge__(RigidBody self, Particle d) -> bool
7953  """
7954  return _IMP_core.RigidBody___ge__(self, *args)
7955 
7956  def __gt__(self, *args):
7957  r"""
7958  __gt__(RigidBody self, RigidBody o) -> bool
7959  __gt__(RigidBody self, Particle d) -> bool
7960  """
7961  return _IMP_core.RigidBody___gt__(self, *args)
7962 
7963  def __hash__(self):
7964  r"""__hash__(RigidBody self) -> std::size_t"""
7965  return _IMP_core.RigidBody___hash__(self)
7966 
7967  def __str__(self):
7968  r"""__str__(RigidBody self) -> std::string"""
7969  return _IMP_core.RigidBody___str__(self)
7970 
7971  def __repr__(self):
7972  r"""__repr__(RigidBody self) -> std::string"""
7973  return _IMP_core.RigidBody___repr__(self)
7974 
7975  def _get_as_binary(self):
7976  r"""_get_as_binary(RigidBody self) -> PyObject *"""
7977  return _IMP_core.RigidBody__get_as_binary(self)
7978 
7979  def _set_from_binary(self, p):
7980  r"""_set_from_binary(RigidBody self, PyObject * p)"""
7981  return _IMP_core.RigidBody__set_from_binary(self, p)
7982 
7983  def __getstate__(self):
7984  p = self._get_as_binary()
7985  if len(self.__dict__) > 1:
7986  d = self.__dict__.copy()
7987  del d['this']
7988  p = (d, p)
7989  return p
7990 
7991  def __setstate__(self, p):
7992  if not hasattr(self, 'this'):
7993  self.__init__()
7994  if isinstance(p, tuple):
7995  d, p = p
7996  self.__dict__.update(d)
7997  return self._set_from_binary(p)
7998 
7999 
8000 # Register RigidBody in _IMP_core:
8001 _IMP_core.RigidBody_swigregister(RigidBody)
8002 
8004  r"""add_rigid_body_cache_key(ObjectKey k)"""
8005  return _IMP_core.add_rigid_body_cache_key(k)
8006 class RigidBodyMember(XYZ):
8007  r"""Proxy of C++ IMP::core::RigidBodyMember class."""
8008 
8009  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8010 
8011  def show(self, *args):
8012  r"""show(RigidBodyMember self, _ostream out=std::cout)"""
8013  return _IMP_core.RigidBodyMember_show(self, *args)
8014 
8015  def get_rigid_body(self):
8016  r"""get_rigid_body(RigidBodyMember self) -> RigidBody"""
8017  return _IMP_core.RigidBodyMember_get_rigid_body(self)
8018 
8019  def get_internal_coordinates(self):
8020  r"""get_internal_coordinates(RigidBodyMember self) -> Vector3D"""
8021  return _IMP_core.RigidBodyMember_get_internal_coordinates(self)
8022 
8023  def set_internal_coordinates(self, v):
8024  r"""set_internal_coordinates(RigidBodyMember self, Vector3D v)"""
8025  return _IMP_core.RigidBodyMember_set_internal_coordinates(self, v)
8026 
8027  def set_internal_transformation(self, v):
8028  r"""set_internal_transformation(RigidBodyMember self, Transformation3D v)"""
8029  return _IMP_core.RigidBodyMember_set_internal_transformation(self, v)
8030 
8031  def get_internal_transformation(self):
8032  r"""get_internal_transformation(RigidBodyMember self) -> Transformation3D"""
8033  return _IMP_core.RigidBodyMember_get_internal_transformation(self)
8034  __swig_destroy__ = _IMP_core.delete_RigidBodyMember
8035 
8036  def set_coordinates(self, *args):
8037  r"""
8038  set_coordinates(RigidBodyMember self, Vector3D center)
8039  set_coordinates(RigidBodyMember self, Transformation3D tr)
8040  """
8041  return _IMP_core.RigidBodyMember_set_coordinates(self, *args)
8042 
8043  def __init__(self, *args):
8044  r"""
8045  __init__(RigidBodyMember self) -> RigidBodyMember
8046  __init__(RigidBodyMember self, Model m, ParticleIndex id) -> RigidBodyMember
8047  __init__(RigidBodyMember self, _ParticleAdaptor d) -> RigidBodyMember
8048  __init__(RigidBodyMember self, RigidBodyMember arg2) -> RigidBodyMember
8049  """
8050  _IMP_core.RigidBodyMember_swiginit(self, _IMP_core.new_RigidBodyMember(*args))
8051 
8052  @staticmethod
8053  def get_is_setup(*args):
8054  r"""
8055  get_is_setup(_ParticleAdaptor p) -> bool
8056  get_is_setup(Model m, _ParticleIndexAdaptor p) -> bool
8057  """
8058  return _IMP_core.RigidBodyMember_get_is_setup(*args)
8059 
8060  @staticmethod
8061  def get_internal_coordinate_keys():
8062  r"""get_internal_coordinate_keys() -> IMP::FloatKeys"""
8063  return _IMP_core.RigidBodyMember_get_internal_coordinate_keys()
8064 
8065  @staticmethod
8066  def get_internal_rotation_keys():
8067  r"""get_internal_rotation_keys() -> IMP::FloatKeys"""
8068  return _IMP_core.RigidBodyMember_get_internal_rotation_keys()
8069 
8070  def add_attribute(self, *args):
8071  r"""
8072  add_attribute(RigidBodyMember self, FloatKey k, IMP::Float v, bool opt)
8073  add_attribute(RigidBodyMember self, FloatKey a0, IMP::Float a1)
8074  add_attribute(RigidBodyMember self, IntKey a0, IMP::Int a1)
8075  add_attribute(RigidBodyMember self, FloatsKey a0, IMP::Floats a1)
8076  add_attribute(RigidBodyMember self, IntsKey a0, IMP::Ints a1)
8077  add_attribute(RigidBodyMember self, StringKey a0, IMP::String a1)
8078  add_attribute(RigidBodyMember self, ParticleIndexKey a0, Particle a1)
8079  add_attribute(RigidBodyMember self, ObjectKey a0, Object a1)
8080  add_attribute(RigidBodyMember self, SparseFloatKey a0, IMP::Float a1)
8081  add_attribute(RigidBodyMember self, SparseIntKey a0, IMP::Int a1)
8082  add_attribute(RigidBodyMember self, SparseStringKey a0, IMP::String a1)
8083  add_attribute(RigidBodyMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8084  """
8085  return _IMP_core.RigidBodyMember_add_attribute(self, *args)
8086 
8087  def get_value(self, *args):
8088  r"""
8089  get_value(RigidBodyMember self, FloatKey a0) -> IMP::Float
8090  get_value(RigidBodyMember self, IntKey a0) -> IMP::Int
8091  get_value(RigidBodyMember self, FloatsKey a0) -> IMP::Floats
8092  get_value(RigidBodyMember self, IntsKey a0) -> IMP::Ints
8093  get_value(RigidBodyMember self, StringKey a0) -> IMP::String
8094  get_value(RigidBodyMember self, ParticleIndexKey a0) -> Particle
8095  get_value(RigidBodyMember self, ObjectKey a0) -> Object
8096  get_value(RigidBodyMember self, SparseFloatKey a0) -> IMP::Float
8097  get_value(RigidBodyMember self, SparseIntKey a0) -> IMP::Int
8098  get_value(RigidBodyMember self, SparseStringKey a0) -> IMP::String
8099  get_value(RigidBodyMember self, SparseParticleIndexKey a0) -> ParticleIndex
8100  """
8101  return _IMP_core.RigidBodyMember_get_value(self, *args)
8102 
8103  def set_value(self, *args):
8104  r"""
8105  set_value(RigidBodyMember self, FloatKey a0, IMP::Float a1)
8106  set_value(RigidBodyMember self, IntKey a0, IMP::Int a1)
8107  set_value(RigidBodyMember self, FloatsKey a0, IMP::Floats a1)
8108  set_value(RigidBodyMember self, IntsKey a0, IMP::Ints a1)
8109  set_value(RigidBodyMember self, StringKey a0, IMP::String a1)
8110  set_value(RigidBodyMember self, ParticleIndexKey a0, Particle a1)
8111  set_value(RigidBodyMember self, ObjectKey a0, Object a1)
8112  set_value(RigidBodyMember self, SparseFloatKey a0, IMP::Float a1)
8113  set_value(RigidBodyMember self, SparseIntKey a0, IMP::Int a1)
8114  set_value(RigidBodyMember self, SparseStringKey a0, IMP::String a1)
8115  set_value(RigidBodyMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8116  """
8117  return _IMP_core.RigidBodyMember_set_value(self, *args)
8118 
8119  def remove_attribute(self, *args):
8120  r"""
8121  remove_attribute(RigidBodyMember self, FloatKey a0)
8122  remove_attribute(RigidBodyMember self, IntKey a0)
8123  remove_attribute(RigidBodyMember self, FloatsKey a0)
8124  remove_attribute(RigidBodyMember self, IntsKey a0)
8125  remove_attribute(RigidBodyMember self, StringKey a0)
8126  remove_attribute(RigidBodyMember self, ParticleIndexKey a0)
8127  remove_attribute(RigidBodyMember self, ObjectKey a0)
8128  remove_attribute(RigidBodyMember self, SparseFloatKey a0)
8129  remove_attribute(RigidBodyMember self, SparseIntKey a0)
8130  remove_attribute(RigidBodyMember self, SparseStringKey a0)
8131  remove_attribute(RigidBodyMember self, SparseParticleIndexKey a0)
8132  """
8133  return _IMP_core.RigidBodyMember_remove_attribute(self, *args)
8134 
8135  def has_attribute(self, *args):
8136  r"""
8137  has_attribute(RigidBodyMember self, FloatKey a0) -> bool
8138  has_attribute(RigidBodyMember self, IntKey a0) -> bool
8139  has_attribute(RigidBodyMember self, FloatsKey a0) -> bool
8140  has_attribute(RigidBodyMember self, IntsKey a0) -> bool
8141  has_attribute(RigidBodyMember self, StringKey a0) -> bool
8142  has_attribute(RigidBodyMember self, ParticleIndexKey a0) -> bool
8143  has_attribute(RigidBodyMember self, ObjectKey a0) -> bool
8144  has_attribute(RigidBodyMember self, SparseFloatKey a0) -> bool
8145  has_attribute(RigidBodyMember self, SparseIntKey a0) -> bool
8146  has_attribute(RigidBodyMember self, SparseStringKey a0) -> bool
8147  has_attribute(RigidBodyMember self, SparseParticleIndexKey a0) -> bool
8148  """
8149  return _IMP_core.RigidBodyMember_has_attribute(self, *args)
8150 
8151  def get_derivative(self, a0):
8152  r"""get_derivative(RigidBodyMember self, FloatKey a0) -> double"""
8153  return _IMP_core.RigidBodyMember_get_derivative(self, a0)
8154 
8155  def get_name(self):
8156  r"""get_name(RigidBodyMember self) -> std::string"""
8157  return _IMP_core.RigidBodyMember_get_name(self)
8158 
8159  def clear_caches(self):
8160  r"""clear_caches(RigidBodyMember self)"""
8161  return _IMP_core.RigidBodyMember_clear_caches(self)
8162 
8163  def set_name(self, a0):
8164  r"""set_name(RigidBodyMember self, std::string a0)"""
8165  return _IMP_core.RigidBodyMember_set_name(self, a0)
8166 
8167  def set_check_level(self, a0):
8168  r"""set_check_level(RigidBodyMember self, IMP::CheckLevel a0)"""
8169  return _IMP_core.RigidBodyMember_set_check_level(self, a0)
8170 
8171  def add_to_derivative(self, a0, a1, a2):
8172  r"""add_to_derivative(RigidBodyMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8173  return _IMP_core.RigidBodyMember_add_to_derivative(self, a0, a1, a2)
8174 
8175  def set_is_optimized(self, a0, a1):
8176  r"""set_is_optimized(RigidBodyMember self, FloatKey a0, bool a1)"""
8177  return _IMP_core.RigidBodyMember_set_is_optimized(self, a0, a1)
8178 
8179  def get_is_optimized(self, a0):
8180  r"""get_is_optimized(RigidBodyMember self, FloatKey a0) -> bool"""
8181  return _IMP_core.RigidBodyMember_get_is_optimized(self, a0)
8182 
8183  def get_check_level(self):
8184  r"""get_check_level(RigidBodyMember self) -> IMP::CheckLevel"""
8185  return _IMP_core.RigidBodyMember_get_check_level(self)
8186 
8187  def __eq__(self, *args):
8188  r"""
8189  __eq__(RigidBodyMember self, RigidBodyMember o) -> bool
8190  __eq__(RigidBodyMember self, Particle d) -> bool
8191  """
8192  return _IMP_core.RigidBodyMember___eq__(self, *args)
8193 
8194  def __ne__(self, *args):
8195  r"""
8196  __ne__(RigidBodyMember self, RigidBodyMember o) -> bool
8197  __ne__(RigidBodyMember self, Particle d) -> bool
8198  """
8199  return _IMP_core.RigidBodyMember___ne__(self, *args)
8200 
8201  def __le__(self, *args):
8202  r"""
8203  __le__(RigidBodyMember self, RigidBodyMember o) -> bool
8204  __le__(RigidBodyMember self, Particle d) -> bool
8205  """
8206  return _IMP_core.RigidBodyMember___le__(self, *args)
8207 
8208  def __lt__(self, *args):
8209  r"""
8210  __lt__(RigidBodyMember self, RigidBodyMember o) -> bool
8211  __lt__(RigidBodyMember self, Particle d) -> bool
8212  """
8213  return _IMP_core.RigidBodyMember___lt__(self, *args)
8214 
8215  def __ge__(self, *args):
8216  r"""
8217  __ge__(RigidBodyMember self, RigidBodyMember o) -> bool
8218  __ge__(RigidBodyMember self, Particle d) -> bool
8219  """
8220  return _IMP_core.RigidBodyMember___ge__(self, *args)
8221 
8222  def __gt__(self, *args):
8223  r"""
8224  __gt__(RigidBodyMember self, RigidBodyMember o) -> bool
8225  __gt__(RigidBodyMember self, Particle d) -> bool
8226  """
8227  return _IMP_core.RigidBodyMember___gt__(self, *args)
8228 
8229  def __hash__(self):
8230  r"""__hash__(RigidBodyMember self) -> std::size_t"""
8231  return _IMP_core.RigidBodyMember___hash__(self)
8232 
8233  def __str__(self):
8234  r"""__str__(RigidBodyMember self) -> std::string"""
8235  return _IMP_core.RigidBodyMember___str__(self)
8236 
8237  def __repr__(self):
8238  r"""__repr__(RigidBodyMember self) -> std::string"""
8239  return _IMP_core.RigidBodyMember___repr__(self)
8240 
8241  def _get_as_binary(self):
8242  r"""_get_as_binary(RigidBodyMember self) -> PyObject *"""
8243  return _IMP_core.RigidBodyMember__get_as_binary(self)
8244 
8245  def _set_from_binary(self, p):
8246  r"""_set_from_binary(RigidBodyMember self, PyObject * p)"""
8247  return _IMP_core.RigidBodyMember__set_from_binary(self, p)
8248 
8249  def __getstate__(self):
8250  p = self._get_as_binary()
8251  if len(self.__dict__) > 1:
8252  d = self.__dict__.copy()
8253  del d['this']
8254  p = (d, p)
8255  return p
8256 
8257  def __setstate__(self, p):
8258  if not hasattr(self, 'this'):
8259  self.__init__()
8260  if isinstance(p, tuple):
8261  d, p = p
8262  self.__dict__.update(d)
8263  return self._set_from_binary(p)
8264 
8265 
8266 # Register RigidBodyMember in _IMP_core:
8267 _IMP_core.RigidBodyMember_swigregister(RigidBodyMember)
8268 class RigidMember(RigidBodyMember):
8269  r"""Proxy of C++ IMP::core::RigidMember class."""
8270 
8271  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8272 
8273  def show(self, *args):
8274  r"""show(RigidMember self, _ostream out=std::cout)"""
8275  return _IMP_core.RigidMember_show(self, *args)
8276 
8277  def __init__(self, *args):
8278  r"""
8279  __init__(RigidMember self) -> RigidMember
8280  __init__(RigidMember self, Model m, ParticleIndex id) -> RigidMember
8281  __init__(RigidMember self, _ParticleAdaptor d) -> RigidMember
8282  __init__(RigidMember self, RigidMember arg2) -> RigidMember
8283  """
8284  _IMP_core.RigidMember_swiginit(self, _IMP_core.new_RigidMember(*args))
8285  __swig_destroy__ = _IMP_core.delete_RigidMember
8286 
8287  @staticmethod
8288  def get_is_setup(*args):
8289  r"""
8290  get_is_setup(_ParticleAdaptor p) -> bool
8291  get_is_setup(Model m, _ParticleIndexAdaptor p) -> bool
8292  """
8293  return _IMP_core.RigidMember_get_is_setup(*args)
8294 
8295  def add_attribute(self, *args):
8296  r"""
8297  add_attribute(RigidMember self, FloatKey k, IMP::Float v, bool opt)
8298  add_attribute(RigidMember self, FloatKey a0, IMP::Float a1)
8299  add_attribute(RigidMember self, IntKey a0, IMP::Int a1)
8300  add_attribute(RigidMember self, FloatsKey a0, IMP::Floats a1)
8301  add_attribute(RigidMember self, IntsKey a0, IMP::Ints a1)
8302  add_attribute(RigidMember self, StringKey a0, IMP::String a1)
8303  add_attribute(RigidMember self, ParticleIndexKey a0, Particle a1)
8304  add_attribute(RigidMember self, ObjectKey a0, Object a1)
8305  add_attribute(RigidMember self, SparseFloatKey a0, IMP::Float a1)
8306  add_attribute(RigidMember self, SparseIntKey a0, IMP::Int a1)
8307  add_attribute(RigidMember self, SparseStringKey a0, IMP::String a1)
8308  add_attribute(RigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8309  """
8310  return _IMP_core.RigidMember_add_attribute(self, *args)
8311 
8312  def get_value(self, *args):
8313  r"""
8314  get_value(RigidMember self, FloatKey a0) -> IMP::Float
8315  get_value(RigidMember self, IntKey a0) -> IMP::Int
8316  get_value(RigidMember self, FloatsKey a0) -> IMP::Floats
8317  get_value(RigidMember self, IntsKey a0) -> IMP::Ints
8318  get_value(RigidMember self, StringKey a0) -> IMP::String
8319  get_value(RigidMember self, ParticleIndexKey a0) -> Particle
8320  get_value(RigidMember self, ObjectKey a0) -> Object
8321  get_value(RigidMember self, SparseFloatKey a0) -> IMP::Float
8322  get_value(RigidMember self, SparseIntKey a0) -> IMP::Int
8323  get_value(RigidMember self, SparseStringKey a0) -> IMP::String
8324  get_value(RigidMember self, SparseParticleIndexKey a0) -> ParticleIndex
8325  """
8326  return _IMP_core.RigidMember_get_value(self, *args)
8327 
8328  def set_value(self, *args):
8329  r"""
8330  set_value(RigidMember self, FloatKey a0, IMP::Float a1)
8331  set_value(RigidMember self, IntKey a0, IMP::Int a1)
8332  set_value(RigidMember self, FloatsKey a0, IMP::Floats a1)
8333  set_value(RigidMember self, IntsKey a0, IMP::Ints a1)
8334  set_value(RigidMember self, StringKey a0, IMP::String a1)
8335  set_value(RigidMember self, ParticleIndexKey a0, Particle a1)
8336  set_value(RigidMember self, ObjectKey a0, Object a1)
8337  set_value(RigidMember self, SparseFloatKey a0, IMP::Float a1)
8338  set_value(RigidMember self, SparseIntKey a0, IMP::Int a1)
8339  set_value(RigidMember self, SparseStringKey a0, IMP::String a1)
8340  set_value(RigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8341  """
8342  return _IMP_core.RigidMember_set_value(self, *args)
8343 
8344  def remove_attribute(self, *args):
8345  r"""
8346  remove_attribute(RigidMember self, FloatKey a0)
8347  remove_attribute(RigidMember self, IntKey a0)
8348  remove_attribute(RigidMember self, FloatsKey a0)
8349  remove_attribute(RigidMember self, IntsKey a0)
8350  remove_attribute(RigidMember self, StringKey a0)
8351  remove_attribute(RigidMember self, ParticleIndexKey a0)
8352  remove_attribute(RigidMember self, ObjectKey a0)
8353  remove_attribute(RigidMember self, SparseFloatKey a0)
8354  remove_attribute(RigidMember self, SparseIntKey a0)
8355  remove_attribute(RigidMember self, SparseStringKey a0)
8356  remove_attribute(RigidMember self, SparseParticleIndexKey a0)
8357  """
8358  return _IMP_core.RigidMember_remove_attribute(self, *args)
8359 
8360  def has_attribute(self, *args):
8361  r"""
8362  has_attribute(RigidMember self, FloatKey a0) -> bool
8363  has_attribute(RigidMember self, IntKey a0) -> bool
8364  has_attribute(RigidMember self, FloatsKey a0) -> bool
8365  has_attribute(RigidMember self, IntsKey a0) -> bool
8366  has_attribute(RigidMember self, StringKey a0) -> bool
8367  has_attribute(RigidMember self, ParticleIndexKey a0) -> bool
8368  has_attribute(RigidMember self, ObjectKey a0) -> bool
8369  has_attribute(RigidMember self, SparseFloatKey a0) -> bool
8370  has_attribute(RigidMember self, SparseIntKey a0) -> bool
8371  has_attribute(RigidMember self, SparseStringKey a0) -> bool
8372  has_attribute(RigidMember self, SparseParticleIndexKey a0) -> bool
8373  """
8374  return _IMP_core.RigidMember_has_attribute(self, *args)
8375 
8376  def get_derivative(self, a0):
8377  r"""get_derivative(RigidMember self, FloatKey a0) -> double"""
8378  return _IMP_core.RigidMember_get_derivative(self, a0)
8379 
8380  def get_name(self):
8381  r"""get_name(RigidMember self) -> std::string"""
8382  return _IMP_core.RigidMember_get_name(self)
8383 
8384  def clear_caches(self):
8385  r"""clear_caches(RigidMember self)"""
8386  return _IMP_core.RigidMember_clear_caches(self)
8387 
8388  def set_name(self, a0):
8389  r"""set_name(RigidMember self, std::string a0)"""
8390  return _IMP_core.RigidMember_set_name(self, a0)
8391 
8392  def set_check_level(self, a0):
8393  r"""set_check_level(RigidMember self, IMP::CheckLevel a0)"""
8394  return _IMP_core.RigidMember_set_check_level(self, a0)
8395 
8396  def add_to_derivative(self, a0, a1, a2):
8397  r"""add_to_derivative(RigidMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8398  return _IMP_core.RigidMember_add_to_derivative(self, a0, a1, a2)
8399 
8400  def set_is_optimized(self, a0, a1):
8401  r"""set_is_optimized(RigidMember self, FloatKey a0, bool a1)"""
8402  return _IMP_core.RigidMember_set_is_optimized(self, a0, a1)
8403 
8404  def get_is_optimized(self, a0):
8405  r"""get_is_optimized(RigidMember self, FloatKey a0) -> bool"""
8406  return _IMP_core.RigidMember_get_is_optimized(self, a0)
8407 
8408  def get_check_level(self):
8409  r"""get_check_level(RigidMember self) -> IMP::CheckLevel"""
8410  return _IMP_core.RigidMember_get_check_level(self)
8411 
8412  def __eq__(self, *args):
8413  r"""
8414  __eq__(RigidMember self, RigidMember o) -> bool
8415  __eq__(RigidMember self, Particle d) -> bool
8416  """
8417  return _IMP_core.RigidMember___eq__(self, *args)
8418 
8419  def __ne__(self, *args):
8420  r"""
8421  __ne__(RigidMember self, RigidMember o) -> bool
8422  __ne__(RigidMember self, Particle d) -> bool
8423  """
8424  return _IMP_core.RigidMember___ne__(self, *args)
8425 
8426  def __le__(self, *args):
8427  r"""
8428  __le__(RigidMember self, RigidMember o) -> bool
8429  __le__(RigidMember self, Particle d) -> bool
8430  """
8431  return _IMP_core.RigidMember___le__(self, *args)
8432 
8433  def __lt__(self, *args):
8434  r"""
8435  __lt__(RigidMember self, RigidMember o) -> bool
8436  __lt__(RigidMember self, Particle d) -> bool
8437  """
8438  return _IMP_core.RigidMember___lt__(self, *args)
8439 
8440  def __ge__(self, *args):
8441  r"""
8442  __ge__(RigidMember self, RigidMember o) -> bool
8443  __ge__(RigidMember self, Particle d) -> bool
8444  """
8445  return _IMP_core.RigidMember___ge__(self, *args)
8446 
8447  def __gt__(self, *args):
8448  r"""
8449  __gt__(RigidMember self, RigidMember o) -> bool
8450  __gt__(RigidMember self, Particle d) -> bool
8451  """
8452  return _IMP_core.RigidMember___gt__(self, *args)
8453 
8454  def __hash__(self):
8455  r"""__hash__(RigidMember self) -> std::size_t"""
8456  return _IMP_core.RigidMember___hash__(self)
8457 
8458  def __str__(self):
8459  r"""__str__(RigidMember self) -> std::string"""
8460  return _IMP_core.RigidMember___str__(self)
8461 
8462  def __repr__(self):
8463  r"""__repr__(RigidMember self) -> std::string"""
8464  return _IMP_core.RigidMember___repr__(self)
8465 
8466  def _get_as_binary(self):
8467  r"""_get_as_binary(RigidMember self) -> PyObject *"""
8468  return _IMP_core.RigidMember__get_as_binary(self)
8469 
8470  def _set_from_binary(self, p):
8471  r"""_set_from_binary(RigidMember self, PyObject * p)"""
8472  return _IMP_core.RigidMember__set_from_binary(self, p)
8473 
8474  def __getstate__(self):
8475  p = self._get_as_binary()
8476  if len(self.__dict__) > 1:
8477  d = self.__dict__.copy()
8478  del d['this']
8479  p = (d, p)
8480  return p
8481 
8482  def __setstate__(self, p):
8483  if not hasattr(self, 'this'):
8484  self.__init__()
8485  if isinstance(p, tuple):
8486  d, p = p
8487  self.__dict__.update(d)
8488  return self._set_from_binary(p)
8489 
8490 
8491 # Register RigidMember in _IMP_core:
8492 _IMP_core.RigidMember_swigregister(RigidMember)
8493 class NonRigidMember(RigidBodyMember):
8494  r"""Proxy of C++ IMP::core::NonRigidMember class."""
8495 
8496  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8497 
8498  def show(self, *args):
8499  r"""show(NonRigidMember self, _ostream out=std::cout)"""
8500  return _IMP_core.NonRigidMember_show(self, *args)
8501 
8502  def __init__(self, *args):
8503  r"""
8504  __init__(NonRigidMember self) -> NonRigidMember
8505  __init__(NonRigidMember self, Model m, ParticleIndex id) -> NonRigidMember
8506  __init__(NonRigidMember self, _ParticleAdaptor d) -> NonRigidMember
8507  __init__(NonRigidMember self, NonRigidMember arg2) -> NonRigidMember
8508  """
8509  _IMP_core.NonRigidMember_swiginit(self, _IMP_core.new_NonRigidMember(*args))
8510  __swig_destroy__ = _IMP_core.delete_NonRigidMember
8511 
8512  @staticmethod
8513  def get_is_setup(*args):
8514  r"""
8515  get_is_setup(_ParticleAdaptor p) -> bool
8516  get_is_setup(Model m, ParticleIndex p) -> bool
8517  """
8518  return _IMP_core.NonRigidMember_get_is_setup(*args)
8519 
8520  def add_to_internal_derivatives(self, deriv_parent, da):
8521  r"""add_to_internal_derivatives(NonRigidMember self, Vector3D deriv_parent, DerivativeAccumulator da)"""
8522  return _IMP_core.NonRigidMember_add_to_internal_derivatives(self, deriv_parent, da)
8523 
8524  def add_to_internal_rotational_derivatives(self, *args):
8525  r"""
8526  add_to_internal_rotational_derivatives(NonRigidMember self, Vector4D local_qderiv, Rotation3D rot_local_to_parent, Rotation3D rot_parent_to_global, DerivativeAccumulator da)
8527  add_to_internal_rotational_derivatives(NonRigidMember self, Vector4D qderiv, DerivativeAccumulator da)
8528  """
8529  return _IMP_core.NonRigidMember_add_to_internal_rotational_derivatives(self, *args)
8530 
8531  def get_internal_derivatives(self):
8532  r"""get_internal_derivatives(NonRigidMember self) -> Vector3D"""
8533  return _IMP_core.NonRigidMember_get_internal_derivatives(self)
8534 
8535  def get_internal_rotational_derivatives(self):
8536  r"""get_internal_rotational_derivatives(NonRigidMember self) -> Vector4D"""
8537  return _IMP_core.NonRigidMember_get_internal_rotational_derivatives(self)
8538 
8539  def add_attribute(self, *args):
8540  r"""
8541  add_attribute(NonRigidMember self, FloatKey k, IMP::Float v, bool opt)
8542  add_attribute(NonRigidMember self, FloatKey a0, IMP::Float a1)
8543  add_attribute(NonRigidMember self, IntKey a0, IMP::Int a1)
8544  add_attribute(NonRigidMember self, FloatsKey a0, IMP::Floats a1)
8545  add_attribute(NonRigidMember self, IntsKey a0, IMP::Ints a1)
8546  add_attribute(NonRigidMember self, StringKey a0, IMP::String a1)
8547  add_attribute(NonRigidMember self, ParticleIndexKey a0, Particle a1)
8548  add_attribute(NonRigidMember self, ObjectKey a0, Object a1)
8549  add_attribute(NonRigidMember self, SparseFloatKey a0, IMP::Float a1)
8550  add_attribute(NonRigidMember self, SparseIntKey a0, IMP::Int a1)
8551  add_attribute(NonRigidMember self, SparseStringKey a0, IMP::String a1)
8552  add_attribute(NonRigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8553  """
8554  return _IMP_core.NonRigidMember_add_attribute(self, *args)
8555 
8556  def get_value(self, *args):
8557  r"""
8558  get_value(NonRigidMember self, FloatKey a0) -> IMP::Float
8559  get_value(NonRigidMember self, IntKey a0) -> IMP::Int
8560  get_value(NonRigidMember self, FloatsKey a0) -> IMP::Floats
8561  get_value(NonRigidMember self, IntsKey a0) -> IMP::Ints
8562  get_value(NonRigidMember self, StringKey a0) -> IMP::String
8563  get_value(NonRigidMember self, ParticleIndexKey a0) -> Particle
8564  get_value(NonRigidMember self, ObjectKey a0) -> Object
8565  get_value(NonRigidMember self, SparseFloatKey a0) -> IMP::Float
8566  get_value(NonRigidMember self, SparseIntKey a0) -> IMP::Int
8567  get_value(NonRigidMember self, SparseStringKey a0) -> IMP::String
8568  get_value(NonRigidMember self, SparseParticleIndexKey a0) -> ParticleIndex
8569  """
8570  return _IMP_core.NonRigidMember_get_value(self, *args)
8571 
8572  def set_value(self, *args):
8573  r"""
8574  set_value(NonRigidMember self, FloatKey a0, IMP::Float a1)
8575  set_value(NonRigidMember self, IntKey a0, IMP::Int a1)
8576  set_value(NonRigidMember self, FloatsKey a0, IMP::Floats a1)
8577  set_value(NonRigidMember self, IntsKey a0, IMP::Ints a1)
8578  set_value(NonRigidMember self, StringKey a0, IMP::String a1)
8579  set_value(NonRigidMember self, ParticleIndexKey a0, Particle a1)
8580  set_value(NonRigidMember self, ObjectKey a0, Object a1)
8581  set_value(NonRigidMember self, SparseFloatKey a0, IMP::Float a1)
8582  set_value(NonRigidMember self, SparseIntKey a0, IMP::Int a1)
8583  set_value(NonRigidMember self, SparseStringKey a0, IMP::String a1)
8584  set_value(NonRigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8585  """
8586  return _IMP_core.NonRigidMember_set_value(self, *args)
8587 
8588  def remove_attribute(self, *args):
8589  r"""
8590  remove_attribute(NonRigidMember self, FloatKey a0)
8591  remove_attribute(NonRigidMember self, IntKey a0)
8592  remove_attribute(NonRigidMember self, FloatsKey a0)
8593  remove_attribute(NonRigidMember self, IntsKey a0)
8594  remove_attribute(NonRigidMember self, StringKey a0)
8595  remove_attribute(NonRigidMember self, ParticleIndexKey a0)
8596  remove_attribute(NonRigidMember self, ObjectKey a0)
8597  remove_attribute(NonRigidMember self, SparseFloatKey a0)
8598  remove_attribute(NonRigidMember self, SparseIntKey a0)
8599  remove_attribute(NonRigidMember self, SparseStringKey a0)
8600  remove_attribute(NonRigidMember self, SparseParticleIndexKey a0)
8601  """
8602  return _IMP_core.NonRigidMember_remove_attribute(self, *args)
8603 
8604  def has_attribute(self, *args):
8605  r"""
8606  has_attribute(NonRigidMember self, FloatKey a0) -> bool
8607  has_attribute(NonRigidMember self, IntKey a0) -> bool
8608  has_attribute(NonRigidMember self, FloatsKey a0) -> bool
8609  has_attribute(NonRigidMember self, IntsKey a0) -> bool
8610  has_attribute(NonRigidMember self, StringKey a0) -> bool
8611  has_attribute(NonRigidMember self, ParticleIndexKey a0) -> bool
8612  has_attribute(NonRigidMember self, ObjectKey a0) -> bool
8613  has_attribute(NonRigidMember self, SparseFloatKey a0) -> bool
8614  has_attribute(NonRigidMember self, SparseIntKey a0) -> bool
8615  has_attribute(NonRigidMember self, SparseStringKey a0) -> bool
8616  has_attribute(NonRigidMember self, SparseParticleIndexKey a0) -> bool
8617  """
8618  return _IMP_core.NonRigidMember_has_attribute(self, *args)
8619 
8620  def get_derivative(self, a0):
8621  r"""get_derivative(NonRigidMember self, FloatKey a0) -> double"""
8622  return _IMP_core.NonRigidMember_get_derivative(self, a0)
8623 
8624  def get_name(self):
8625  r"""get_name(NonRigidMember self) -> std::string"""
8626  return _IMP_core.NonRigidMember_get_name(self)
8627 
8628  def clear_caches(self):
8629  r"""clear_caches(NonRigidMember self)"""
8630  return _IMP_core.NonRigidMember_clear_caches(self)
8631 
8632  def set_name(self, a0):
8633  r"""set_name(NonRigidMember self, std::string a0)"""
8634  return _IMP_core.NonRigidMember_set_name(self, a0)
8635 
8636  def set_check_level(self, a0):
8637  r"""set_check_level(NonRigidMember self, IMP::CheckLevel a0)"""
8638  return _IMP_core.NonRigidMember_set_check_level(self, a0)
8639 
8640  def add_to_derivative(self, a0, a1, a2):
8641  r"""add_to_derivative(NonRigidMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8642  return _IMP_core.NonRigidMember_add_to_derivative(self, a0, a1, a2)
8643 
8644  def set_is_optimized(self, a0, a1):
8645  r"""set_is_optimized(NonRigidMember self, FloatKey a0, bool a1)"""
8646  return _IMP_core.NonRigidMember_set_is_optimized(self, a0, a1)
8647 
8648  def get_is_optimized(self, a0):
8649  r"""get_is_optimized(NonRigidMember self, FloatKey a0) -> bool"""
8650  return _IMP_core.NonRigidMember_get_is_optimized(self, a0)
8651 
8652  def get_check_level(self):
8653  r"""get_check_level(NonRigidMember self) -> IMP::CheckLevel"""
8654  return _IMP_core.NonRigidMember_get_check_level(self)
8655 
8656  def __eq__(self, *args):
8657  r"""
8658  __eq__(NonRigidMember self, NonRigidMember o) -> bool
8659  __eq__(NonRigidMember self, Particle d) -> bool
8660  """
8661  return _IMP_core.NonRigidMember___eq__(self, *args)
8662 
8663  def __ne__(self, *args):
8664  r"""
8665  __ne__(NonRigidMember self, NonRigidMember o) -> bool
8666  __ne__(NonRigidMember self, Particle d) -> bool
8667  """
8668  return _IMP_core.NonRigidMember___ne__(self, *args)
8669 
8670  def __le__(self, *args):
8671  r"""
8672  __le__(NonRigidMember self, NonRigidMember o) -> bool
8673  __le__(NonRigidMember self, Particle d) -> bool
8674  """
8675  return _IMP_core.NonRigidMember___le__(self, *args)
8676 
8677  def __lt__(self, *args):
8678  r"""
8679  __lt__(NonRigidMember self, NonRigidMember o) -> bool
8680  __lt__(NonRigidMember self, Particle d) -> bool
8681  """
8682  return _IMP_core.NonRigidMember___lt__(self, *args)
8683 
8684  def __ge__(self, *args):
8685  r"""
8686  __ge__(NonRigidMember self, NonRigidMember o) -> bool
8687  __ge__(NonRigidMember self, Particle d) -> bool
8688  """
8689  return _IMP_core.NonRigidMember___ge__(self, *args)
8690 
8691  def __gt__(self, *args):
8692  r"""
8693  __gt__(NonRigidMember self, NonRigidMember o) -> bool
8694  __gt__(NonRigidMember self, Particle d) -> bool
8695  """
8696  return _IMP_core.NonRigidMember___gt__(self, *args)
8697 
8698  def __hash__(self):
8699  r"""__hash__(NonRigidMember self) -> std::size_t"""
8700  return _IMP_core.NonRigidMember___hash__(self)
8701 
8702  def __str__(self):
8703  r"""__str__(NonRigidMember self) -> std::string"""
8704  return _IMP_core.NonRigidMember___str__(self)
8705 
8706  def __repr__(self):
8707  r"""__repr__(NonRigidMember self) -> std::string"""
8708  return _IMP_core.NonRigidMember___repr__(self)
8709 
8710  def _get_as_binary(self):
8711  r"""_get_as_binary(NonRigidMember self) -> PyObject *"""
8712  return _IMP_core.NonRigidMember__get_as_binary(self)
8713 
8714  def _set_from_binary(self, p):
8715  r"""_set_from_binary(NonRigidMember self, PyObject * p)"""
8716  return _IMP_core.NonRigidMember__set_from_binary(self, p)
8717 
8718  def __getstate__(self):
8719  p = self._get_as_binary()
8720  if len(self.__dict__) > 1:
8721  d = self.__dict__.copy()
8722  del d['this']
8723  p = (d, p)
8724  return p
8725 
8726  def __setstate__(self, p):
8727  if not hasattr(self, 'this'):
8728  self.__init__()
8729  if isinstance(p, tuple):
8730  d, p = p
8731  self.__dict__.update(d)
8732  return self._set_from_binary(p)
8733 
8734 
8735 # Register NonRigidMember in _IMP_core:
8736 _IMP_core.NonRigidMember_swigregister(NonRigidMember)
8737 class RigidMembersRefiner(IMP.Refiner):
8738  r"""Proxy of C++ IMP::core::RigidMembersRefiner class."""
8739 
8740  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8741 
8742  def __init__(self, *args):
8743  r"""__init__(RigidMembersRefiner self, std::string name="RigidMembersRefiner%d") -> RigidMembersRefiner"""
8744  _IMP_core.RigidMembersRefiner_swiginit(self, _IMP_core.new_RigidMembersRefiner(*args))
8745 
8746  def do_get_inputs(self, m, pis):
8747  r"""do_get_inputs(RigidMembersRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8748  return _IMP_core.RigidMembersRefiner_do_get_inputs(self, m, pis)
8749 
8750  def get_version_info(self):
8751  r"""get_version_info(RigidMembersRefiner self) -> VersionInfo"""
8752  return _IMP_core.RigidMembersRefiner_get_version_info(self)
8753  __swig_destroy__ = _IMP_core.delete_RigidMembersRefiner
8754 
8755  def __str__(self):
8756  r"""__str__(RigidMembersRefiner self) -> std::string"""
8757  return _IMP_core.RigidMembersRefiner___str__(self)
8758 
8759  def __repr__(self):
8760  r"""__repr__(RigidMembersRefiner self) -> std::string"""
8761  return _IMP_core.RigidMembersRefiner___repr__(self)
8762 
8763  @staticmethod
8764  def get_from(o):
8765  return _object_cast_to_RigidMembersRefiner(o)
8766 
8767 
8768 # Register RigidMembersRefiner in _IMP_core:
8769 _IMP_core.RigidMembersRefiner_swigregister(RigidMembersRefiner)
8770 
8771 def get_rigid_members_refiner():
8772  r"""get_rigid_members_refiner() -> RigidMembersRefiner"""
8773  return _IMP_core.get_rigid_members_refiner()
8774 
8775 def transform(*args):
8776  r"""
8777  transform(XYZ a, Transformation3D tr)
8778  transform(RigidBody a, Transformation3D tr)
8779  """
8780  return _IMP_core.transform(*args)
8781 
8782 def get_initial_reference_frame(*args):
8783  r"""
8784  get_initial_reference_frame(Model m, IMP::ParticleIndexes const & pis) -> ReferenceFrame3D
8785  get_initial_reference_frame(IMP::ParticlesTemp const & ps) -> ReferenceFrame3D
8786  """
8787  return _IMP_core.get_initial_reference_frame(*args)
8788 
8789 def create_rigid_bodies(m, n, no_members=False):
8790  r"""create_rigid_bodies(Model m, unsigned int n, bool no_members=False) -> IMP::ParticlesTemp"""
8791  return _IMP_core.create_rigid_bodies(m, n, no_members)
8792 
8793 def show_rigid_body_hierarchy(*args):
8794  r"""show_rigid_body_hierarchy(RigidBody rb, TextOutput out=IMP::TextOutput(std::cout))"""
8795  return _IMP_core.show_rigid_body_hierarchy(*args)
8796 
8797 def get_root_rigid_body(m):
8798  r"""get_root_rigid_body(RigidMember m) -> ParticleIndex"""
8799  return _IMP_core.get_root_rigid_body(m)
8800 class RigidBodyHierarchyGeometry(IMP.display.SingletonGeometry):
8801  r"""Proxy of C++ IMP::core::RigidBodyHierarchyGeometry class."""
8802 
8803  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8804 
8805  def __init__(self, rb, constituents):
8806  r"""__init__(RigidBodyHierarchyGeometry self, RigidBody rb, IMP::ParticlesTemp const & constituents) -> RigidBodyHierarchyGeometry"""
8807  _IMP_core.RigidBodyHierarchyGeometry_swiginit(self, _IMP_core.new_RigidBodyHierarchyGeometry(rb, constituents))
8808 
8809  def get_version_info(self):
8810  r"""get_version_info(RigidBodyHierarchyGeometry self) -> VersionInfo"""
8811  return _IMP_core.RigidBodyHierarchyGeometry_get_version_info(self)
8812  __swig_destroy__ = _IMP_core.delete_RigidBodyHierarchyGeometry
8813 
8814  def __str__(self):
8815  r"""__str__(RigidBodyHierarchyGeometry self) -> std::string"""
8816  return _IMP_core.RigidBodyHierarchyGeometry___str__(self)
8817 
8818  def __repr__(self):
8819  r"""__repr__(RigidBodyHierarchyGeometry self) -> std::string"""
8820  return _IMP_core.RigidBodyHierarchyGeometry___repr__(self)
8821 
8822  @staticmethod
8823  def get_from(o):
8824  return _object_cast_to_RigidBodyHierarchyGeometry(o)
8825 
8826 
8827 # Register RigidBodyHierarchyGeometry in _IMP_core:
8828 _IMP_core.RigidBodyHierarchyGeometry_swigregister(RigidBodyHierarchyGeometry)
8829 class RigidBodyDerivativeGeometry(IMP.display.SingletonGeometry):
8830  r"""Proxy of C++ IMP::core::RigidBodyDerivativeGeometry class."""
8831 
8832  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8833 
8834  def __init__(self, *args):
8835  r"""
8836  __init__(RigidBodyDerivativeGeometry self, Particle p) -> RigidBodyDerivativeGeometry
8837  __init__(RigidBodyDerivativeGeometry self, RigidBody d) -> RigidBodyDerivativeGeometry
8838  """
8839  _IMP_core.RigidBodyDerivativeGeometry_swiginit(self, _IMP_core.new_RigidBodyDerivativeGeometry(*args))
8840 
8841  def get_version_info(self):
8842  r"""get_version_info(RigidBodyDerivativeGeometry self) -> VersionInfo"""
8843  return _IMP_core.RigidBodyDerivativeGeometry_get_version_info(self)
8844  __swig_destroy__ = _IMP_core.delete_RigidBodyDerivativeGeometry
8845 
8846  def __str__(self):
8847  r"""__str__(RigidBodyDerivativeGeometry self) -> std::string"""
8848  return _IMP_core.RigidBodyDerivativeGeometry___str__(self)
8849 
8850  def __repr__(self):
8851  r"""__repr__(RigidBodyDerivativeGeometry self) -> std::string"""
8852  return _IMP_core.RigidBodyDerivativeGeometry___repr__(self)
8853 
8854  @staticmethod
8855  def get_from(o):
8856  return _object_cast_to_RigidBodyDerivativeGeometry(o)
8857 
8858 
8859 # Register RigidBodyDerivativeGeometry in _IMP_core:
8860 _IMP_core.RigidBodyDerivativeGeometry_swigregister(RigidBodyDerivativeGeometry)
8861 class RigidBodyDerivativesGeometry(IMP.display.SingletonsGeometry):
8862  r"""Proxy of C++ IMP::core::RigidBodyDerivativesGeometry class."""
8863 
8864  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8865 
8866  def __init__(self, sc):
8867  r"""__init__(RigidBodyDerivativesGeometry self, SingletonContainer sc) -> RigidBodyDerivativesGeometry"""
8868  _IMP_core.RigidBodyDerivativesGeometry_swiginit(self, _IMP_core.new_RigidBodyDerivativesGeometry(sc))
8869 
8870  def get_version_info(self):
8871  r"""get_version_info(RigidBodyDerivativesGeometry self) -> VersionInfo"""
8872  return _IMP_core.RigidBodyDerivativesGeometry_get_version_info(self)
8873  __swig_destroy__ = _IMP_core.delete_RigidBodyDerivativesGeometry
8874 
8875  def __str__(self):
8876  r"""__str__(RigidBodyDerivativesGeometry self) -> std::string"""
8877  return _IMP_core.RigidBodyDerivativesGeometry___str__(self)
8878 
8879  def __repr__(self):
8880  r"""__repr__(RigidBodyDerivativesGeometry self) -> std::string"""
8881  return _IMP_core.RigidBodyDerivativesGeometry___repr__(self)
8882 
8883  @staticmethod
8884  def get_from(o):
8885  return _object_cast_to_RigidBodyDerivativesGeometry(o)
8886 
8887 
8888 # Register RigidBodyDerivativesGeometry in _IMP_core:
8889 _IMP_core.RigidBodyDerivativesGeometry_swigregister(RigidBodyDerivativesGeometry)
8890 class RigidBodyFrameGeometry(IMP.display.SingletonGeometry):
8891  r"""Proxy of C++ IMP::core::RigidBodyFrameGeometry class."""
8892 
8893  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8894 
8895  def __init__(self, *args):
8896  r"""
8897  __init__(RigidBodyFrameGeometry self, Particle p) -> RigidBodyFrameGeometry
8898  __init__(RigidBodyFrameGeometry self, RigidBody d) -> RigidBodyFrameGeometry
8899  """
8900  _IMP_core.RigidBodyFrameGeometry_swiginit(self, _IMP_core.new_RigidBodyFrameGeometry(*args))
8901 
8902  def get_version_info(self):
8903  r"""get_version_info(RigidBodyFrameGeometry self) -> VersionInfo"""
8904  return _IMP_core.RigidBodyFrameGeometry_get_version_info(self)
8905  __swig_destroy__ = _IMP_core.delete_RigidBodyFrameGeometry
8906 
8907  def __str__(self):
8908  r"""__str__(RigidBodyFrameGeometry self) -> std::string"""
8909  return _IMP_core.RigidBodyFrameGeometry___str__(self)
8910 
8911  def __repr__(self):
8912  r"""__repr__(RigidBodyFrameGeometry self) -> std::string"""
8913  return _IMP_core.RigidBodyFrameGeometry___repr__(self)
8914 
8915  @staticmethod
8916  def get_from(o):
8917  return _object_cast_to_RigidBodyFrameGeometry(o)
8918 
8919 
8920 # Register RigidBodyFrameGeometry in _IMP_core:
8921 _IMP_core.RigidBodyFrameGeometry_swigregister(RigidBodyFrameGeometry)
8922 class RigidBodyFramesGeometry(IMP.display.SingletonsGeometry):
8923  r"""Proxy of C++ IMP::core::RigidBodyFramesGeometry class."""
8924 
8925  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8926 
8927  def __init__(self, sc):
8928  r"""__init__(RigidBodyFramesGeometry self, SingletonContainer sc) -> RigidBodyFramesGeometry"""
8929  _IMP_core.RigidBodyFramesGeometry_swiginit(self, _IMP_core.new_RigidBodyFramesGeometry(sc))
8930 
8931  def get_version_info(self):
8932  r"""get_version_info(RigidBodyFramesGeometry self) -> VersionInfo"""
8933  return _IMP_core.RigidBodyFramesGeometry_get_version_info(self)
8934  __swig_destroy__ = _IMP_core.delete_RigidBodyFramesGeometry
8935 
8936  def __str__(self):
8937  r"""__str__(RigidBodyFramesGeometry self) -> std::string"""
8938  return _IMP_core.RigidBodyFramesGeometry___str__(self)
8939 
8940  def __repr__(self):
8941  r"""__repr__(RigidBodyFramesGeometry self) -> std::string"""
8942  return _IMP_core.RigidBodyFramesGeometry___repr__(self)
8943 
8944  @staticmethod
8945  def get_from(o):
8946  return _object_cast_to_RigidBodyFramesGeometry(o)
8947 
8948 
8949 # Register RigidBodyFramesGeometry in _IMP_core:
8950 _IMP_core.RigidBodyFramesGeometry_swigregister(RigidBodyFramesGeometry)
8951 class RigidBodyTorque(IMP.display.SegmentGeometry):
8952  r"""Proxy of C++ IMP::core::RigidBodyTorque class."""
8953 
8954  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8955 
8956  def __init__(self, p):
8957  r"""__init__(RigidBodyTorque self, Particle p) -> RigidBodyTorque"""
8958  _IMP_core.RigidBodyTorque_swiginit(self, _IMP_core.new_RigidBodyTorque(p))
8959 
8960  def __str__(self):
8961  r"""__str__(RigidBodyTorque self) -> std::string"""
8962  return _IMP_core.RigidBodyTorque___str__(self)
8963 
8964  def __repr__(self):
8965  r"""__repr__(RigidBodyTorque self) -> std::string"""
8966  return _IMP_core.RigidBodyTorque___repr__(self)
8967 
8968  @staticmethod
8969  def get_from(o):
8970  return _object_cast_to_RigidBodyTorque(o)
8971 
8972  __swig_destroy__ = _IMP_core.delete_RigidBodyTorque
8973 
8974 # Register RigidBodyTorque in _IMP_core:
8975 _IMP_core.RigidBodyTorque_swigregister(RigidBodyTorque)
8976 class NearestNeighborsClosePairsFinder(ClosePairsFinder):
8977  r"""Proxy of C++ IMP::core::NearestNeighborsClosePairsFinder class."""
8978 
8979  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8980 
8981  def __init__(self):
8982  r"""__init__(NearestNeighborsClosePairsFinder self) -> NearestNeighborsClosePairsFinder"""
8983  _IMP_core.NearestNeighborsClosePairsFinder_swiginit(self, _IMP_core.new_NearestNeighborsClosePairsFinder())
8984 
8985  def get_close_pairs(self, *args):
8986  r"""
8987  get_close_pairs(NearestNeighborsClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
8988  get_close_pairs(NearestNeighborsClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
8989  get_close_pairs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
8990  get_close_pairs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
8991  """
8992  return _IMP_core.NearestNeighborsClosePairsFinder_get_close_pairs(self, *args)
8993 
8994  def do_get_inputs(self, m, pis):
8995  r"""do_get_inputs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8996  return _IMP_core.NearestNeighborsClosePairsFinder_do_get_inputs(self, m, pis)
8997 
8998  def get_version_info(self):
8999  r"""get_version_info(NearestNeighborsClosePairsFinder self) -> VersionInfo"""
9000  return _IMP_core.NearestNeighborsClosePairsFinder_get_version_info(self)
9001  __swig_destroy__ = _IMP_core.delete_NearestNeighborsClosePairsFinder
9002 
9003  def __str__(self):
9004  r"""__str__(NearestNeighborsClosePairsFinder self) -> std::string"""
9005  return _IMP_core.NearestNeighborsClosePairsFinder___str__(self)
9006 
9007  def __repr__(self):
9008  r"""__repr__(NearestNeighborsClosePairsFinder self) -> std::string"""
9009  return _IMP_core.NearestNeighborsClosePairsFinder___repr__(self)
9010 
9011  @staticmethod
9012  def get_from(o):
9013  return _object_cast_to_NearestNeighborsClosePairsFinder(o)
9014 
9015 
9016 # Register NearestNeighborsClosePairsFinder in _IMP_core:
9017 _IMP_core.NearestNeighborsClosePairsFinder_swigregister(NearestNeighborsClosePairsFinder)
9018 class RestraintsScoringFunction(IMP.ScoringFunction):
9019  r"""Proxy of C++ IMP::core::RestraintsScoringFunction class."""
9020 
9021  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9022 
9023  def __init__(self, *args):
9024  r"""
9025  __init__(RestraintsScoringFunction self, _RestraintsAdaptor rs, double weight=1.0, double max=NO_MAX, std::string name="RestraintsScoringFunction%1%") -> RestraintsScoringFunction
9026  __init__(RestraintsScoringFunction self, _RestraintsAdaptor rs, std::string name) -> RestraintsScoringFunction
9027  __init__(RestraintsScoringFunction self) -> RestraintsScoringFunction
9028  """
9029  _IMP_core.RestraintsScoringFunction_swiginit(self, _IMP_core.new_RestraintsScoringFunction(*args))
9030 
9031  def do_add_score_and_derivatives(self, sa, ss):
9032  r"""do_add_score_and_derivatives(RestraintsScoringFunction self, ScoreAccumulator sa, IMP::ScoreStatesTemp const & ss)"""
9033  return _IMP_core.RestraintsScoringFunction_do_add_score_and_derivatives(self, sa, ss)
9034 
9035  def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss):
9036  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)"""
9037  return _IMP_core.RestraintsScoringFunction_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss)
9038 
9039  def do_get_inputs(self):
9040  r"""do_get_inputs(RestraintsScoringFunction self) -> IMP::ModelObjectsTemp"""
9041  return _IMP_core.RestraintsScoringFunction_do_get_inputs(self)
9042 
9043  def get_restraints(self):
9044  r"""get_restraints(RestraintsScoringFunction self) -> IMP::Restraints"""
9045  return _IMP_core.RestraintsScoringFunction_get_restraints(self)
9046 
9047  def set_restraints(self, d):
9048  r"""set_restraints(RestraintsScoringFunction self, IMP::Restraints const & d)"""
9049  return _IMP_core.RestraintsScoringFunction_set_restraints(self, d)
9050 
9051  def get_number_of_restraints(self):
9052  r"""get_number_of_restraints(RestraintsScoringFunction self) -> unsigned int"""
9053  return _IMP_core.RestraintsScoringFunction_get_number_of_restraints(self)
9054 
9055  def clear_restraints(self):
9056  r"""clear_restraints(RestraintsScoringFunction self)"""
9057  return _IMP_core.RestraintsScoringFunction_clear_restraints(self)
9058 
9059  def get_restraint(self, i):
9060  r"""get_restraint(RestraintsScoringFunction self, unsigned int i) -> Restraint"""
9061  return _IMP_core.RestraintsScoringFunction_get_restraint(self, i)
9062 
9063  def erase_restraint(self, i):
9064  r"""erase_restraint(RestraintsScoringFunction self, unsigned int i)"""
9065  return _IMP_core.RestraintsScoringFunction_erase_restraint(self, i)
9066 
9067  def add_restraint(self, d):
9068  r"""add_restraint(RestraintsScoringFunction self, Restraint d) -> unsigned int"""
9069  return _IMP_core.RestraintsScoringFunction_add_restraint(self, d)
9070 
9071  def add_restraints(self, d):
9072  r"""add_restraints(RestraintsScoringFunction self, IMP::Restraints const & d)"""
9073  return _IMP_core.RestraintsScoringFunction_add_restraints(self, d)
9074 
9075  def _python_index_restraint(self, r, start, stop):
9076  r"""_python_index_restraint(RestraintsScoringFunction self, Restraint r, unsigned int start, unsigned int stop) -> unsigned int"""
9077  return _IMP_core.RestraintsScoringFunction__python_index_restraint(self, r, start, stop)
9078  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)
9079  def __set_restraints(self, obj): IMP._list_util.set_varlist(self.restraints, obj)
9080  def __del_restraints(self): IMP._list_util.del_varlist(self.restraints)
9081  restraints = property(__get_restraints, __set_restraints, __del_restraints, doc="List of ##Restraints")
9082 
9083  def get_version_info(self):
9084  r"""get_version_info(RestraintsScoringFunction self) -> VersionInfo"""
9085  return _IMP_core.RestraintsScoringFunction_get_version_info(self)
9086  __swig_destroy__ = _IMP_core.delete_RestraintsScoringFunction
9087 
9088  def __str__(self):
9089  r"""__str__(RestraintsScoringFunction self) -> std::string"""
9090  return _IMP_core.RestraintsScoringFunction___str__(self)
9091 
9092  def __repr__(self):
9093  r"""__repr__(RestraintsScoringFunction self) -> std::string"""
9094  return _IMP_core.RestraintsScoringFunction___repr__(self)
9095 
9096  @staticmethod
9097  def get_from(o):
9098  return _object_cast_to_RestraintsScoringFunction(o)
9099 
9100 
9101  def _get_as_binary(self):
9102  r"""_get_as_binary(RestraintsScoringFunction self) -> PyObject *"""
9103  return _IMP_core.RestraintsScoringFunction__get_as_binary(self)
9104 
9105  def _set_from_binary(self, p):
9106  r"""_set_from_binary(RestraintsScoringFunction self, PyObject * p)"""
9107  return _IMP_core.RestraintsScoringFunction__set_from_binary(self, p)
9108 
9109  def __getstate__(self):
9110  p = self._get_as_binary()
9111  if len(self.__dict__) > 1:
9112  d = self.__dict__.copy()
9113  del d['this']
9114  p = (d, p)
9115  return p
9116 
9117  def __setstate__(self, p):
9118  if not hasattr(self, 'this'):
9119  self.__init__()
9120  if isinstance(p, tuple):
9121  d, p = p
9122  self.__dict__.update(d)
9123  return self._set_from_binary(p)
9124 
9125 
9126 # Register RestraintsScoringFunction in _IMP_core:
9127 _IMP_core.RestraintsScoringFunction_swigregister(RestraintsScoringFunction)
9128 class RigidClosePairsFinder(ClosePairsFinder):
9129  r"""Proxy of C++ IMP::core::RigidClosePairsFinder class."""
9130 
9131  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9132 
9133  def __init__(self, cpf=None):
9134  r"""__init__(RigidClosePairsFinder self, ClosePairsFinder cpf=None) -> RigidClosePairsFinder"""
9135  _IMP_core.RigidClosePairsFinder_swiginit(self, _IMP_core.new_RigidClosePairsFinder(cpf))
9136 
9137  def do_get_inputs(self, m, pis):
9138  r"""do_get_inputs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9139  return _IMP_core.RigidClosePairsFinder_do_get_inputs(self, m, pis)
9140 
9141  def get_close_pairs(self, *args):
9142  r"""
9143  get_close_pairs(RigidClosePairsFinder self, Model m, ParticleIndex a, ParticleIndex b, IMP::ParticleIndexes const & pa, IMP::ParticleIndexes const & pb) -> IMP::ParticleIndexPairs
9144  get_close_pairs(RigidClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
9145  get_close_pairs(RigidClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
9146  get_close_pairs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
9147  get_close_pairs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
9148  """
9149  return _IMP_core.RigidClosePairsFinder_get_close_pairs(self, *args)
9150 
9151  def get_version_info(self):
9152  r"""get_version_info(RigidClosePairsFinder self) -> VersionInfo"""
9153  return _IMP_core.RigidClosePairsFinder_get_version_info(self)
9154  __swig_destroy__ = _IMP_core.delete_RigidClosePairsFinder
9155 
9156  def __str__(self):
9157  r"""__str__(RigidClosePairsFinder self) -> std::string"""
9158  return _IMP_core.RigidClosePairsFinder___str__(self)
9159 
9160  def __repr__(self):
9161  r"""__repr__(RigidClosePairsFinder self) -> std::string"""
9162  return _IMP_core.RigidClosePairsFinder___repr__(self)
9163 
9164  @staticmethod
9165  def get_from(o):
9166  return _object_cast_to_RigidClosePairsFinder(o)
9167 
9168 
9169  def _get_as_binary(self):
9170  r"""_get_as_binary(RigidClosePairsFinder self) -> PyObject *"""
9171  return _IMP_core.RigidClosePairsFinder__get_as_binary(self)
9172 
9173  def _set_from_binary(self, p):
9174  r"""_set_from_binary(RigidClosePairsFinder self, PyObject * p)"""
9175  return _IMP_core.RigidClosePairsFinder__set_from_binary(self, p)
9176 
9177  def __getstate__(self):
9178  p = self._get_as_binary()
9179  if len(self.__dict__) > 1:
9180  d = self.__dict__.copy()
9181  del d['this']
9182  p = (d, p)
9183  return p
9184 
9185  def __setstate__(self, p):
9186  if not hasattr(self, 'this'):
9187  self.__init__()
9188  if isinstance(p, tuple):
9189  d, p = p
9190  self.__dict__.update(d)
9191  return self._set_from_binary(p)
9192 
9193 
9194 # Register RigidClosePairsFinder in _IMP_core:
9195 _IMP_core.RigidClosePairsFinder_swigregister(RigidClosePairsFinder)
9196 class _SphereDistancePairScore(IMP.PairScore):
9197  r"""Proxy of C++ IMP::core::SphereDistancePairScore class."""
9198 
9199  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9200  __repr__ = _swig_repr
9201 
9202  def __init__(self, *args):
9203  r"""
9204  SphereDistancePairScore(UnaryFunction uf, std::string name="SphereDistancePairScore%1%") -> _SphereDistancePairScore
9205  __init__(_SphereDistancePairScore self) -> _SphereDistancePairScore
9206  """
9207  _IMP_core._SphereDistancePairScore_swiginit(self, _IMP_core.new__SphereDistancePairScore(*args))
9208 
9209  def do_get_inputs(self, m, pis):
9210  r"""do_get_inputs(_SphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9211  return _IMP_core._SphereDistancePairScore_do_get_inputs(self, m, pis)
9212 
9213  def get_version_info(self):
9214  r"""get_version_info(_SphereDistancePairScore self) -> VersionInfo"""
9215  return _IMP_core._SphereDistancePairScore_get_version_info(self)
9216  __swig_destroy__ = _IMP_core.delete__SphereDistancePairScore
9217 
9218  @staticmethod
9219  def get_from(o):
9220  return _object_cast_to__SphereDistancePairScore(o)
9221 
9222 
9223  def _get_as_binary(self):
9224  r"""_get_as_binary(_SphereDistancePairScore self) -> PyObject *"""
9225  return _IMP_core._SphereDistancePairScore__get_as_binary(self)
9226 
9227  def _set_from_binary(self, p):
9228  r"""_set_from_binary(_SphereDistancePairScore self, PyObject * p)"""
9229  return _IMP_core._SphereDistancePairScore__set_from_binary(self, p)
9230 
9231  def __getstate__(self):
9232  p = self._get_as_binary()
9233  if len(self.__dict__) > 1:
9234  d = self.__dict__.copy()
9235  del d['this']
9236  p = (d, p)
9237  return p
9238 
9239  def __setstate__(self, p):
9240  if not hasattr(self, 'this'):
9241  self.__init__()
9242  if isinstance(p, tuple):
9243  d, p = p
9244  self.__dict__.update(d)
9245  return self._set_from_binary(p)
9246 
9247 
9248 # Register _SphereDistancePairScore in _IMP_core:
9249 _IMP_core._SphereDistancePairScore_swigregister(_SphereDistancePairScore)
9250 class HarmonicUpperBoundSphereDistancePairScore(IMP.PairScore):
9251  r"""Proxy of C++ IMP::core::HarmonicUpperBoundSphereDistancePairScore class."""
9252 
9253  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9254 
9255  def __init__(self, *args):
9256  r"""
9257  __init__(HarmonicUpperBoundSphereDistancePairScore self, double x0, double k, std::string name="HarmonicUpperBoundSphereDistancePairScore%1%") -> HarmonicUpperBoundSphereDistancePairScore
9258  __init__(HarmonicUpperBoundSphereDistancePairScore self) -> HarmonicUpperBoundSphereDistancePairScore
9259  """
9260  _IMP_core.HarmonicUpperBoundSphereDistancePairScore_swiginit(self, _IMP_core.new_HarmonicUpperBoundSphereDistancePairScore(*args))
9261 
9262  def do_get_inputs(self, m, pis):
9263  r"""do_get_inputs(HarmonicUpperBoundSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9264  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore_do_get_inputs(self, m, pis)
9265 
9266  def get_version_info(self):
9267  r"""get_version_info(HarmonicUpperBoundSphereDistancePairScore self) -> VersionInfo"""
9268  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore_get_version_info(self)
9269  __swig_destroy__ = _IMP_core.delete_HarmonicUpperBoundSphereDistancePairScore
9270 
9271  def __str__(self):
9272  r"""__str__(HarmonicUpperBoundSphereDistancePairScore self) -> std::string"""
9273  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore___str__(self)
9274 
9275  def __repr__(self):
9276  r"""__repr__(HarmonicUpperBoundSphereDistancePairScore self) -> std::string"""
9277  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore___repr__(self)
9278 
9279  @staticmethod
9280  def get_from(o):
9281  return _object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o)
9282 
9283 
9284  def _get_as_binary(self):
9285  r"""_get_as_binary(HarmonicUpperBoundSphereDistancePairScore self) -> PyObject *"""
9286  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore__get_as_binary(self)
9287 
9288  def _set_from_binary(self, p):
9289  r"""_set_from_binary(HarmonicUpperBoundSphereDistancePairScore self, PyObject * p)"""
9290  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore__set_from_binary(self, p)
9291 
9292  def __getstate__(self):
9293  p = self._get_as_binary()
9294  if len(self.__dict__) > 1:
9295  d = self.__dict__.copy()
9296  del d['this']
9297  p = (d, p)
9298  return p
9299 
9300  def __setstate__(self, p):
9301  if not hasattr(self, 'this'):
9302  self.__init__()
9303  if isinstance(p, tuple):
9304  d, p = p
9305  self.__dict__.update(d)
9306  return self._set_from_binary(p)
9307 
9308 
9309 # Register HarmonicUpperBoundSphereDistancePairScore in _IMP_core:
9310 _IMP_core.HarmonicUpperBoundSphereDistancePairScore_swigregister(HarmonicUpperBoundSphereDistancePairScore)
9311 class HarmonicUpperBoundSphereDiameterPairScore(IMP.PairScore):
9312  r"""Proxy of C++ IMP::core::HarmonicUpperBoundSphereDiameterPairScore class."""
9313 
9314  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9315 
9316  def __init__(self, d0, k):
9317  r"""__init__(HarmonicUpperBoundSphereDiameterPairScore self, double d0, double k) -> HarmonicUpperBoundSphereDiameterPairScore"""
9318  _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_swiginit(self, _IMP_core.new_HarmonicUpperBoundSphereDiameterPairScore(d0, k))
9319 
9320  def get_rest_length(self):
9321  r"""get_rest_length(HarmonicUpperBoundSphereDiameterPairScore self) -> double"""
9322  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_rest_length(self)
9323 
9324  def get_stiffness(self):
9325  r"""get_stiffness(HarmonicUpperBoundSphereDiameterPairScore self) -> double"""
9326  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_stiffness(self)
9327 
9328  def do_get_inputs(self, m, pis):
9329  r"""do_get_inputs(HarmonicUpperBoundSphereDiameterPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9330  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_do_get_inputs(self, m, pis)
9331 
9332  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
9333  r"""evaluate_indexes(HarmonicUpperBoundSphereDiameterPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
9334  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
9335 
9336  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
9337  r"""evaluate_indexes_scores(HarmonicUpperBoundSphereDiameterPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
9338  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
9339 
9340  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
9341  r"""evaluate_indexes_delta(HarmonicUpperBoundSphereDiameterPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
9342  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
9343 
9344  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
9345  r"""evaluate_if_good_indexes(HarmonicUpperBoundSphereDiameterPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
9346  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
9347 
9348  def get_version_info(self):
9349  r"""get_version_info(HarmonicUpperBoundSphereDiameterPairScore self) -> VersionInfo"""
9350  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_version_info(self)
9351  __swig_destroy__ = _IMP_core.delete_HarmonicUpperBoundSphereDiameterPairScore
9352 
9353  def __str__(self):
9354  r"""__str__(HarmonicUpperBoundSphereDiameterPairScore self) -> std::string"""
9355  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore___str__(self)
9356 
9357  def __repr__(self):
9358  r"""__repr__(HarmonicUpperBoundSphereDiameterPairScore self) -> std::string"""
9359  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore___repr__(self)
9360 
9361  @staticmethod
9362  def get_from(o):
9363  return _object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o)
9364 
9365 
9366 # Register HarmonicUpperBoundSphereDiameterPairScore in _IMP_core:
9367 _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_swigregister(HarmonicUpperBoundSphereDiameterPairScore)
9368 class HarmonicSphereDistancePairScore(IMP.PairScore):
9369  r"""Proxy of C++ IMP::core::HarmonicSphereDistancePairScore class."""
9370 
9371  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9372 
9373  def __init__(self, *args):
9374  r"""
9375  __init__(HarmonicSphereDistancePairScore self, double x0, double k, std::string name="HarmonicSphereDistancePairScore%1%") -> HarmonicSphereDistancePairScore
9376  __init__(HarmonicSphereDistancePairScore self) -> HarmonicSphereDistancePairScore
9377  """
9378  _IMP_core.HarmonicSphereDistancePairScore_swiginit(self, _IMP_core.new_HarmonicSphereDistancePairScore(*args))
9379 
9380  def do_get_inputs(self, m, pis):
9381  r"""do_get_inputs(HarmonicSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9382  return _IMP_core.HarmonicSphereDistancePairScore_do_get_inputs(self, m, pis)
9383 
9384  def get_version_info(self):
9385  r"""get_version_info(HarmonicSphereDistancePairScore self) -> VersionInfo"""
9386  return _IMP_core.HarmonicSphereDistancePairScore_get_version_info(self)
9387  __swig_destroy__ = _IMP_core.delete_HarmonicSphereDistancePairScore
9388 
9389  def __str__(self):
9390  r"""__str__(HarmonicSphereDistancePairScore self) -> std::string"""
9391  return _IMP_core.HarmonicSphereDistancePairScore___str__(self)
9392 
9393  def __repr__(self):
9394  r"""__repr__(HarmonicSphereDistancePairScore self) -> std::string"""
9395  return _IMP_core.HarmonicSphereDistancePairScore___repr__(self)
9396 
9397  @staticmethod
9398  def get_from(o):
9399  return _object_cast_to_HarmonicSphereDistancePairScore(o)
9400 
9401 
9402  def _get_as_binary(self):
9403  r"""_get_as_binary(HarmonicSphereDistancePairScore self) -> PyObject *"""
9404  return _IMP_core.HarmonicSphereDistancePairScore__get_as_binary(self)
9405 
9406  def _set_from_binary(self, p):
9407  r"""_set_from_binary(HarmonicSphereDistancePairScore self, PyObject * p)"""
9408  return _IMP_core.HarmonicSphereDistancePairScore__set_from_binary(self, p)
9409 
9410  def __getstate__(self):
9411  p = self._get_as_binary()
9412  if len(self.__dict__) > 1:
9413  d = self.__dict__.copy()
9414  del d['this']
9415  p = (d, p)
9416  return p
9417 
9418  def __setstate__(self, p):
9419  if not hasattr(self, 'this'):
9420  self.__init__()
9421  if isinstance(p, tuple):
9422  d, p = p
9423  self.__dict__.update(d)
9424  return self._set_from_binary(p)
9425 
9426 
9427 # Register HarmonicSphereDistancePairScore in _IMP_core:
9428 _IMP_core.HarmonicSphereDistancePairScore_swigregister(HarmonicSphereDistancePairScore)
9429 class NormalizedSphereDistancePairScore(IMP.PairScore):
9430  r"""Proxy of C++ IMP::core::NormalizedSphereDistancePairScore class."""
9431 
9432  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9433 
9434  def __init__(self, *args):
9435  r"""__init__(NormalizedSphereDistancePairScore self, UnaryFunction f, FloatKey radius=IMP::FloatKey("radius")) -> NormalizedSphereDistancePairScore"""
9436  _IMP_core.NormalizedSphereDistancePairScore_swiginit(self, _IMP_core.new_NormalizedSphereDistancePairScore(*args))
9437 
9438  def do_get_inputs(self, m, pis):
9439  r"""do_get_inputs(NormalizedSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9440  return _IMP_core.NormalizedSphereDistancePairScore_do_get_inputs(self, m, pis)
9441 
9442  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
9443  r"""evaluate_indexes(NormalizedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
9444  return _IMP_core.NormalizedSphereDistancePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
9445 
9446  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
9447  r"""evaluate_indexes_scores(NormalizedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
9448  return _IMP_core.NormalizedSphereDistancePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
9449 
9450  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
9451  r"""evaluate_indexes_delta(NormalizedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
9452  return _IMP_core.NormalizedSphereDistancePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
9453 
9454  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
9455  r"""evaluate_if_good_indexes(NormalizedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
9456  return _IMP_core.NormalizedSphereDistancePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
9457 
9458  def get_version_info(self):
9459  r"""get_version_info(NormalizedSphereDistancePairScore self) -> VersionInfo"""
9460  return _IMP_core.NormalizedSphereDistancePairScore_get_version_info(self)
9461  __swig_destroy__ = _IMP_core.delete_NormalizedSphereDistancePairScore
9462 
9463  def __str__(self):
9464  r"""__str__(NormalizedSphereDistancePairScore self) -> std::string"""
9465  return _IMP_core.NormalizedSphereDistancePairScore___str__(self)
9466 
9467  def __repr__(self):
9468  r"""__repr__(NormalizedSphereDistancePairScore self) -> std::string"""
9469  return _IMP_core.NormalizedSphereDistancePairScore___repr__(self)
9470 
9471  @staticmethod
9472  def get_from(o):
9473  return _object_cast_to_NormalizedSphereDistancePairScore(o)
9474 
9475 
9476 # Register NormalizedSphereDistancePairScore in _IMP_core:
9477 _IMP_core.NormalizedSphereDistancePairScore_swigregister(NormalizedSphereDistancePairScore)
9478 class WeightedSphereDistancePairScore(IMP.PairScore):
9479  r"""Proxy of C++ IMP::core::WeightedSphereDistancePairScore class."""
9480 
9481  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9482 
9483  def __init__(self, *args):
9484  r"""__init__(WeightedSphereDistancePairScore self, UnaryFunction f, FloatKey weight, FloatKey radius=IMP::FloatKey("radius")) -> WeightedSphereDistancePairScore"""
9485  _IMP_core.WeightedSphereDistancePairScore_swiginit(self, _IMP_core.new_WeightedSphereDistancePairScore(*args))
9486 
9487  def do_get_inputs(self, m, pis):
9488  r"""do_get_inputs(WeightedSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9489  return _IMP_core.WeightedSphereDistancePairScore_do_get_inputs(self, m, pis)
9490 
9491  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
9492  r"""evaluate_indexes(WeightedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
9493  return _IMP_core.WeightedSphereDistancePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
9494 
9495  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
9496  r"""evaluate_indexes_scores(WeightedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
9497  return _IMP_core.WeightedSphereDistancePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
9498 
9499  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
9500  r"""evaluate_indexes_delta(WeightedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
9501  return _IMP_core.WeightedSphereDistancePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
9502 
9503  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
9504  r"""evaluate_if_good_indexes(WeightedSphereDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
9505  return _IMP_core.WeightedSphereDistancePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
9506 
9507  def get_version_info(self):
9508  r"""get_version_info(WeightedSphereDistancePairScore self) -> VersionInfo"""
9509  return _IMP_core.WeightedSphereDistancePairScore_get_version_info(self)
9510  __swig_destroy__ = _IMP_core.delete_WeightedSphereDistancePairScore
9511 
9512  def __str__(self):
9513  r"""__str__(WeightedSphereDistancePairScore self) -> std::string"""
9514  return _IMP_core.WeightedSphereDistancePairScore___str__(self)
9515 
9516  def __repr__(self):
9517  r"""__repr__(WeightedSphereDistancePairScore self) -> std::string"""
9518  return _IMP_core.WeightedSphereDistancePairScore___repr__(self)
9519 
9520  @staticmethod
9521  def get_from(o):
9522  return _object_cast_to_WeightedSphereDistancePairScore(o)
9523 
9524 
9525 # Register WeightedSphereDistancePairScore in _IMP_core:
9526 _IMP_core.WeightedSphereDistancePairScore_swigregister(WeightedSphereDistancePairScore)
9527 class SoftSpherePairScore(IMP.PairScore):
9528  r"""Proxy of C++ IMP::core::SoftSpherePairScore class."""
9529 
9530  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9531 
9532  def __init__(self, *args):
9533  r"""
9534  __init__(SoftSpherePairScore self, double k, std::string name="SoftSpherePairScore%1%") -> SoftSpherePairScore
9535  __init__(SoftSpherePairScore self) -> SoftSpherePairScore
9536  """
9537  _IMP_core.SoftSpherePairScore_swiginit(self, _IMP_core.new_SoftSpherePairScore(*args))
9538 
9539  def do_get_inputs(self, m, pis):
9540  r"""do_get_inputs(SoftSpherePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9541  return _IMP_core.SoftSpherePairScore_do_get_inputs(self, m, pis)
9542 
9543  def get_version_info(self):
9544  r"""get_version_info(SoftSpherePairScore self) -> VersionInfo"""
9545  return _IMP_core.SoftSpherePairScore_get_version_info(self)
9546  __swig_destroy__ = _IMP_core.delete_SoftSpherePairScore
9547 
9548  def __str__(self):
9549  r"""__str__(SoftSpherePairScore self) -> std::string"""
9550  return _IMP_core.SoftSpherePairScore___str__(self)
9551 
9552  def __repr__(self):
9553  r"""__repr__(SoftSpherePairScore self) -> std::string"""
9554  return _IMP_core.SoftSpherePairScore___repr__(self)
9555 
9556  @staticmethod
9557  def get_from(o):
9558  return _object_cast_to_SoftSpherePairScore(o)
9559 
9560 
9561  def _get_as_binary(self):
9562  r"""_get_as_binary(SoftSpherePairScore self) -> PyObject *"""
9563  return _IMP_core.SoftSpherePairScore__get_as_binary(self)
9564 
9565  def _set_from_binary(self, p):
9566  r"""_set_from_binary(SoftSpherePairScore self, PyObject * p)"""
9567  return _IMP_core.SoftSpherePairScore__set_from_binary(self, p)
9568 
9569  def __getstate__(self):
9570  p = self._get_as_binary()
9571  if len(self.__dict__) > 1:
9572  d = self.__dict__.copy()
9573  del d['this']
9574  p = (d, p)
9575  return p
9576 
9577  def __setstate__(self, p):
9578  if not hasattr(self, 'this'):
9579  self.__init__()
9580  if isinstance(p, tuple):
9581  d, p = p
9582  self.__dict__.update(d)
9583  return self._set_from_binary(p)
9584 
9585 
9586 # Register SoftSpherePairScore in _IMP_core:
9587 _IMP_core.SoftSpherePairScore_swigregister(SoftSpherePairScore)
9588 class SurfaceDistancePairScore(IMP.PairScore):
9589  r"""Proxy of C++ IMP::core::SurfaceDistancePairScore class."""
9590 
9591  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9592 
9593  def __init__(self, *args):
9594  r"""__init__(SurfaceDistancePairScore self, UnaryFunction uf, std::string name="SurfaceDistancePairScore%1%") -> SurfaceDistancePairScore"""
9595  _IMP_core.SurfaceDistancePairScore_swiginit(self, _IMP_core.new_SurfaceDistancePairScore(*args))
9596 
9597  def do_get_inputs(self, m, pis):
9598  r"""do_get_inputs(SurfaceDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9599  return _IMP_core.SurfaceDistancePairScore_do_get_inputs(self, m, pis)
9600 
9601  def get_version_info(self):
9602  r"""get_version_info(SurfaceDistancePairScore self) -> VersionInfo"""
9603  return _IMP_core.SurfaceDistancePairScore_get_version_info(self)
9604  __swig_destroy__ = _IMP_core.delete_SurfaceDistancePairScore
9605 
9606  def __str__(self):
9607  r"""__str__(SurfaceDistancePairScore self) -> std::string"""
9608  return _IMP_core.SurfaceDistancePairScore___str__(self)
9609 
9610  def __repr__(self):
9611  r"""__repr__(SurfaceDistancePairScore self) -> std::string"""
9612  return _IMP_core.SurfaceDistancePairScore___repr__(self)
9613 
9614  @staticmethod
9615  def get_from(o):
9616  return _object_cast_to_SurfaceDistancePairScore(o)
9617 
9618 
9619 # Register SurfaceDistancePairScore in _IMP_core:
9620 _IMP_core.SurfaceDistancePairScore_swigregister(SurfaceDistancePairScore)
9621 class SurfaceHeightPairScore(IMP.PairScore):
9622  r"""Proxy of C++ IMP::core::SurfaceHeightPairScore class."""
9623 
9624  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9625 
9626  def __init__(self, *args):
9627  r"""__init__(SurfaceHeightPairScore self, UnaryFunction uf, std::string name="SurfaceHeightPairScore%1%") -> SurfaceHeightPairScore"""
9628  _IMP_core.SurfaceHeightPairScore_swiginit(self, _IMP_core.new_SurfaceHeightPairScore(*args))
9629 
9630  def do_get_inputs(self, m, pis):
9631  r"""do_get_inputs(SurfaceHeightPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9632  return _IMP_core.SurfaceHeightPairScore_do_get_inputs(self, m, pis)
9633 
9634  def get_version_info(self):
9635  r"""get_version_info(SurfaceHeightPairScore self) -> VersionInfo"""
9636  return _IMP_core.SurfaceHeightPairScore_get_version_info(self)
9637  __swig_destroy__ = _IMP_core.delete_SurfaceHeightPairScore
9638 
9639  def __str__(self):
9640  r"""__str__(SurfaceHeightPairScore self) -> std::string"""
9641  return _IMP_core.SurfaceHeightPairScore___str__(self)
9642 
9643  def __repr__(self):
9644  r"""__repr__(SurfaceHeightPairScore self) -> std::string"""
9645  return _IMP_core.SurfaceHeightPairScore___repr__(self)
9646 
9647  @staticmethod
9648  def get_from(o):
9649  return _object_cast_to_SurfaceHeightPairScore(o)
9650 
9651 
9652 # Register SurfaceHeightPairScore in _IMP_core:
9653 _IMP_core.SurfaceHeightPairScore_swigregister(SurfaceHeightPairScore)
9654 class SurfaceDepthPairScore(IMP.PairScore):
9655  r"""Proxy of C++ IMP::core::SurfaceDepthPairScore class."""
9656 
9657  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9658 
9659  def __init__(self, *args):
9660  r"""__init__(SurfaceDepthPairScore self, UnaryFunction uf, std::string name="SurfaceDepthPairScore%1%") -> SurfaceDepthPairScore"""
9661  _IMP_core.SurfaceDepthPairScore_swiginit(self, _IMP_core.new_SurfaceDepthPairScore(*args))
9662 
9663  def do_get_inputs(self, m, pis):
9664  r"""do_get_inputs(SurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9665  return _IMP_core.SurfaceDepthPairScore_do_get_inputs(self, m, pis)
9666 
9667  def get_version_info(self):
9668  r"""get_version_info(SurfaceDepthPairScore self) -> VersionInfo"""
9669  return _IMP_core.SurfaceDepthPairScore_get_version_info(self)
9670  __swig_destroy__ = _IMP_core.delete_SurfaceDepthPairScore
9671 
9672  def __str__(self):
9673  r"""__str__(SurfaceDepthPairScore self) -> std::string"""
9674  return _IMP_core.SurfaceDepthPairScore___str__(self)
9675 
9676  def __repr__(self):
9677  r"""__repr__(SurfaceDepthPairScore self) -> std::string"""
9678  return _IMP_core.SurfaceDepthPairScore___repr__(self)
9679 
9680  @staticmethod
9681  def get_from(o):
9682  return _object_cast_to_SurfaceDepthPairScore(o)
9683 
9684 
9685 # Register SurfaceDepthPairScore in _IMP_core:
9686 _IMP_core.SurfaceDepthPairScore_swigregister(SurfaceDepthPairScore)
9687 class HarmonicSurfaceDistancePairScore(IMP.PairScore):
9688  r"""Proxy of C++ IMP::core::HarmonicSurfaceDistancePairScore class."""
9689 
9690  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9691 
9692  def __init__(self, *args):
9693  r"""__init__(HarmonicSurfaceDistancePairScore self, double x0, double k, std::string name="HarmonicSurfaceDistancePairScore%1%") -> HarmonicSurfaceDistancePairScore"""
9694  _IMP_core.HarmonicSurfaceDistancePairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceDistancePairScore(*args))
9695 
9696  def do_get_inputs(self, m, pis):
9697  r"""do_get_inputs(HarmonicSurfaceDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9698  return _IMP_core.HarmonicSurfaceDistancePairScore_do_get_inputs(self, m, pis)
9699 
9700  def get_version_info(self):
9701  r"""get_version_info(HarmonicSurfaceDistancePairScore self) -> VersionInfo"""
9702  return _IMP_core.HarmonicSurfaceDistancePairScore_get_version_info(self)
9703  __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceDistancePairScore
9704 
9705  def __str__(self):
9706  r"""__str__(HarmonicSurfaceDistancePairScore self) -> std::string"""
9707  return _IMP_core.HarmonicSurfaceDistancePairScore___str__(self)
9708 
9709  def __repr__(self):
9710  r"""__repr__(HarmonicSurfaceDistancePairScore self) -> std::string"""
9711  return _IMP_core.HarmonicSurfaceDistancePairScore___repr__(self)
9712 
9713  @staticmethod
9714  def get_from(o):
9715  return _object_cast_to_HarmonicSurfaceDistancePairScore(o)
9716 
9717 
9718 # Register HarmonicSurfaceDistancePairScore in _IMP_core:
9719 _IMP_core.HarmonicSurfaceDistancePairScore_swigregister(HarmonicSurfaceDistancePairScore)
9720 class HarmonicSurfaceHeightPairScore(IMP.PairScore):
9721  r"""Proxy of C++ IMP::core::HarmonicSurfaceHeightPairScore class."""
9722 
9723  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9724 
9725  def __init__(self, *args):
9726  r"""__init__(HarmonicSurfaceHeightPairScore self, double x0, double k, std::string name="HarmonicSurfaceHeightPairScore%1%") -> HarmonicSurfaceHeightPairScore"""
9727  _IMP_core.HarmonicSurfaceHeightPairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceHeightPairScore(*args))
9728 
9729  def do_get_inputs(self, m, pis):
9730  r"""do_get_inputs(HarmonicSurfaceHeightPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9731  return _IMP_core.HarmonicSurfaceHeightPairScore_do_get_inputs(self, m, pis)
9732 
9733  def get_version_info(self):
9734  r"""get_version_info(HarmonicSurfaceHeightPairScore self) -> VersionInfo"""
9735  return _IMP_core.HarmonicSurfaceHeightPairScore_get_version_info(self)
9736  __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceHeightPairScore
9737 
9738  def __str__(self):
9739  r"""__str__(HarmonicSurfaceHeightPairScore self) -> std::string"""
9740  return _IMP_core.HarmonicSurfaceHeightPairScore___str__(self)
9741 
9742  def __repr__(self):
9743  r"""__repr__(HarmonicSurfaceHeightPairScore self) -> std::string"""
9744  return _IMP_core.HarmonicSurfaceHeightPairScore___repr__(self)
9745 
9746  @staticmethod
9747  def get_from(o):
9748  return _object_cast_to_HarmonicSurfaceHeightPairScore(o)
9749 
9750 
9751 # Register HarmonicSurfaceHeightPairScore in _IMP_core:
9752 _IMP_core.HarmonicSurfaceHeightPairScore_swigregister(HarmonicSurfaceHeightPairScore)
9753 class HarmonicSurfaceDepthPairScore(IMP.PairScore):
9754  r"""Proxy of C++ IMP::core::HarmonicSurfaceDepthPairScore class."""
9755 
9756  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9757 
9758  def __init__(self, *args):
9759  r"""__init__(HarmonicSurfaceDepthPairScore self, double x0, double k, std::string name="HarmonicSurfaceDepthPairScore%1%") -> HarmonicSurfaceDepthPairScore"""
9760  _IMP_core.HarmonicSurfaceDepthPairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceDepthPairScore(*args))
9761 
9762  def do_get_inputs(self, m, pis):
9763  r"""do_get_inputs(HarmonicSurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9764  return _IMP_core.HarmonicSurfaceDepthPairScore_do_get_inputs(self, m, pis)
9765 
9766  def get_version_info(self):
9767  r"""get_version_info(HarmonicSurfaceDepthPairScore self) -> VersionInfo"""
9768  return _IMP_core.HarmonicSurfaceDepthPairScore_get_version_info(self)
9769  __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceDepthPairScore
9770 
9771  def __str__(self):
9772  r"""__str__(HarmonicSurfaceDepthPairScore self) -> std::string"""
9773  return _IMP_core.HarmonicSurfaceDepthPairScore___str__(self)
9774 
9775  def __repr__(self):
9776  r"""__repr__(HarmonicSurfaceDepthPairScore self) -> std::string"""
9777  return _IMP_core.HarmonicSurfaceDepthPairScore___repr__(self)
9778 
9779  @staticmethod
9780  def get_from(o):
9781  return _object_cast_to_HarmonicSurfaceDepthPairScore(o)
9782 
9783 
9784 # Register HarmonicSurfaceDepthPairScore in _IMP_core:
9785 _IMP_core.HarmonicSurfaceDepthPairScore_swigregister(HarmonicSurfaceDepthPairScore)
9786 class SoftSuperSurfacePairScore(IMP.PairScore):
9787  r"""Proxy of C++ IMP::core::SoftSuperSurfacePairScore class."""
9788 
9789  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9790 
9791  def __init__(self, *args):
9792  r"""__init__(SoftSuperSurfacePairScore self, double k, std::string name="SoftSuperSurfacePairScore%1%") -> SoftSuperSurfacePairScore"""
9793  _IMP_core.SoftSuperSurfacePairScore_swiginit(self, _IMP_core.new_SoftSuperSurfacePairScore(*args))
9794 
9795  def do_get_inputs(self, m, pis):
9796  r"""do_get_inputs(SoftSuperSurfacePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9797  return _IMP_core.SoftSuperSurfacePairScore_do_get_inputs(self, m, pis)
9798 
9799  def get_version_info(self):
9800  r"""get_version_info(SoftSuperSurfacePairScore self) -> VersionInfo"""
9801  return _IMP_core.SoftSuperSurfacePairScore_get_version_info(self)
9802  __swig_destroy__ = _IMP_core.delete_SoftSuperSurfacePairScore
9803 
9804  def __str__(self):
9805  r"""__str__(SoftSuperSurfacePairScore self) -> std::string"""
9806  return _IMP_core.SoftSuperSurfacePairScore___str__(self)
9807 
9808  def __repr__(self):
9809  r"""__repr__(SoftSuperSurfacePairScore self) -> std::string"""
9810  return _IMP_core.SoftSuperSurfacePairScore___repr__(self)
9811 
9812  @staticmethod
9813  def get_from(o):
9814  return _object_cast_to_SoftSuperSurfacePairScore(o)
9815 
9816 
9817 # Register SoftSuperSurfacePairScore in _IMP_core:
9818 _IMP_core.SoftSuperSurfacePairScore_swigregister(SoftSuperSurfacePairScore)
9819 class SoftSubSurfacePairScore(IMP.PairScore):
9820  r"""Proxy of C++ IMP::core::SoftSubSurfacePairScore class."""
9821 
9822  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9823 
9824  def __init__(self, *args):
9825  r"""__init__(SoftSubSurfacePairScore self, double k, std::string name="SoftSubSurfacePairScore%1%") -> SoftSubSurfacePairScore"""
9826  _IMP_core.SoftSubSurfacePairScore_swiginit(self, _IMP_core.new_SoftSubSurfacePairScore(*args))
9827 
9828  def do_get_inputs(self, m, pis):
9829  r"""do_get_inputs(SoftSubSurfacePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9830  return _IMP_core.SoftSubSurfacePairScore_do_get_inputs(self, m, pis)
9831 
9832  def get_version_info(self):
9833  r"""get_version_info(SoftSubSurfacePairScore self) -> VersionInfo"""
9834  return _IMP_core.SoftSubSurfacePairScore_get_version_info(self)
9835  __swig_destroy__ = _IMP_core.delete_SoftSubSurfacePairScore
9836 
9837  def __str__(self):
9838  r"""__str__(SoftSubSurfacePairScore self) -> std::string"""
9839  return _IMP_core.SoftSubSurfacePairScore___str__(self)
9840 
9841  def __repr__(self):
9842  r"""__repr__(SoftSubSurfacePairScore self) -> std::string"""
9843  return _IMP_core.SoftSubSurfacePairScore___repr__(self)
9844 
9845  @staticmethod
9846  def get_from(o):
9847  return _object_cast_to_SoftSubSurfacePairScore(o)
9848 
9849 
9850 # Register SoftSubSurfacePairScore in _IMP_core:
9851 _IMP_core.SoftSubSurfacePairScore_swigregister(SoftSubSurfacePairScore)
9852 class SurfaceTetheredChain(IMP.UnaryFunction):
9853  r"""Proxy of C++ IMP::core::SurfaceTetheredChain class."""
9854 
9855  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9856 
9857  def __init__(self, link_num, link_length):
9858  r"""__init__(SurfaceTetheredChain self, int link_num, double link_length) -> SurfaceTetheredChain"""
9859  _IMP_core.SurfaceTetheredChain_swiginit(self, _IMP_core.new_SurfaceTetheredChain(link_num, link_length))
9860 
9861  def get_version_info(self):
9862  r"""get_version_info(SurfaceTetheredChain self) -> VersionInfo"""
9863  return _IMP_core.SurfaceTetheredChain_get_version_info(self)
9864  __swig_destroy__ = _IMP_core.delete_SurfaceTetheredChain
9865 
9866  def get_link_number(self):
9867  r"""get_link_number(SurfaceTetheredChain self) -> int"""
9868  return _IMP_core.SurfaceTetheredChain_get_link_number(self)
9869 
9870  def get_link_length(self):
9871  r"""get_link_length(SurfaceTetheredChain self) -> double"""
9872  return _IMP_core.SurfaceTetheredChain_get_link_length(self)
9873 
9874  def set_link_number(self, N):
9875  r"""set_link_number(SurfaceTetheredChain self, int N)"""
9876  return _IMP_core.SurfaceTetheredChain_set_link_number(self, N)
9877 
9878  def set_link_length(self, b):
9879  r"""set_link_length(SurfaceTetheredChain self, double b)"""
9880  return _IMP_core.SurfaceTetheredChain_set_link_length(self, b)
9881 
9882  def get_distance_at_minimum(self):
9883  r"""get_distance_at_minimum(SurfaceTetheredChain self) -> double"""
9884  return _IMP_core.SurfaceTetheredChain_get_distance_at_minimum(self)
9885 
9886  def get_average_distance(self):
9887  r"""get_average_distance(SurfaceTetheredChain self) -> double"""
9888  return _IMP_core.SurfaceTetheredChain_get_average_distance(self)
9889 
9890  def __str__(self):
9891  r"""__str__(SurfaceTetheredChain self) -> std::string"""
9892  return _IMP_core.SurfaceTetheredChain___str__(self)
9893 
9894  def __repr__(self):
9895  r"""__repr__(SurfaceTetheredChain self) -> std::string"""
9896  return _IMP_core.SurfaceTetheredChain___repr__(self)
9897 
9898  @staticmethod
9899  def get_from(o):
9900  return _object_cast_to_SurfaceTetheredChain(o)
9901 
9902 
9903 # Register SurfaceTetheredChain in _IMP_core:
9904 _IMP_core.SurfaceTetheredChain_swigregister(SurfaceTetheredChain)
9905 class SurfaceSymmetryConstraint(IMP.Constraint):
9906  r"""Proxy of C++ IMP::core::SurfaceSymmetryConstraint class."""
9907 
9908  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9909 
9910  def __init__(self, m, ss, rbs):
9911  r"""__init__(SurfaceSymmetryConstraint self, Model m, IMP::ParticleIndexPair const & ss, IMP::ParticleIndexPair const & rbs) -> SurfaceSymmetryConstraint"""
9912  _IMP_core.SurfaceSymmetryConstraint_swiginit(self, _IMP_core.new_SurfaceSymmetryConstraint(m, ss, rbs))
9913 
9914  def do_get_inputs(self):
9915  r"""do_get_inputs(SurfaceSymmetryConstraint self) -> IMP::ModelObjectsTemp"""
9916  return _IMP_core.SurfaceSymmetryConstraint_do_get_inputs(self)
9917 
9918  def do_get_outputs(self):
9919  r"""do_get_outputs(SurfaceSymmetryConstraint self) -> IMP::ModelObjectsTemp"""
9920  return _IMP_core.SurfaceSymmetryConstraint_do_get_outputs(self)
9921 
9922  def get_version_info(self):
9923  r"""get_version_info(SurfaceSymmetryConstraint self) -> VersionInfo"""
9924  return _IMP_core.SurfaceSymmetryConstraint_get_version_info(self)
9925  __swig_destroy__ = _IMP_core.delete_SurfaceSymmetryConstraint
9926 
9927  def __str__(self):
9928  r"""__str__(SurfaceSymmetryConstraint self) -> std::string"""
9929  return _IMP_core.SurfaceSymmetryConstraint___str__(self)
9930 
9931  def __repr__(self):
9932  r"""__repr__(SurfaceSymmetryConstraint self) -> std::string"""
9933  return _IMP_core.SurfaceSymmetryConstraint___repr__(self)
9934 
9935  @staticmethod
9936  def get_from(o):
9937  return _object_cast_to_SurfaceSymmetryConstraint(o)
9938 
9939 
9940 # Register SurfaceSymmetryConstraint in _IMP_core:
9941 _IMP_core.SurfaceSymmetryConstraint_swigregister(SurfaceSymmetryConstraint)
9942 class SteepestDescent(IMP.AttributeOptimizer):
9943  r"""Proxy of C++ IMP::core::SteepestDescent class."""
9944 
9945  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9946 
9947  def __init__(self, *args):
9948  r"""__init__(SteepestDescent self, Model m, std::string name="SteepestDescent%1%") -> SteepestDescent"""
9949  _IMP_core.SteepestDescent_swiginit(self, _IMP_core.new_SteepestDescent(*args))
9950 
9951  def do_optimize(self, max_steps):
9952  r"""do_optimize(SteepestDescent self, unsigned int max_steps) -> IMP::Float"""
9953  return _IMP_core.SteepestDescent_do_optimize(self, max_steps)
9954 
9955  def get_version_info(self):
9956  r"""get_version_info(SteepestDescent self) -> VersionInfo"""
9957  return _IMP_core.SteepestDescent_get_version_info(self)
9958  __swig_destroy__ = _IMP_core.delete_SteepestDescent
9959 
9960  def set_threshold(self, t):
9961  r"""set_threshold(SteepestDescent self, IMP::Float t)"""
9962  return _IMP_core.SteepestDescent_set_threshold(self, t)
9963 
9964  def set_step_size(self, t):
9965  r"""set_step_size(SteepestDescent self, IMP::Float t)"""
9966  return _IMP_core.SteepestDescent_set_step_size(self, t)
9967 
9968  def set_maximum_step_size(self, t):
9969  r"""set_maximum_step_size(SteepestDescent self, IMP::Float t)"""
9970  return _IMP_core.SteepestDescent_set_maximum_step_size(self, t)
9971 
9972  def __str__(self):
9973  r"""__str__(SteepestDescent self) -> std::string"""
9974  return _IMP_core.SteepestDescent___str__(self)
9975 
9976  def __repr__(self):
9977  r"""__repr__(SteepestDescent self) -> std::string"""
9978  return _IMP_core.SteepestDescent___repr__(self)
9979 
9980  @staticmethod
9981  def get_from(o):
9982  return _object_cast_to_SteepestDescent(o)
9983 
9984 
9985 # Register SteepestDescent in _IMP_core:
9986 _IMP_core.SteepestDescent_swigregister(SteepestDescent)
9987 class TransformedDistancePairScore(IMP.PairScore):
9988  r"""Proxy of C++ IMP::core::TransformedDistancePairScore class."""
9989 
9990  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9991 
9992  def __init__(self, f, transformation):
9993  r"""__init__(TransformedDistancePairScore self, UnaryFunction f, Transformation3D transformation) -> TransformedDistancePairScore"""
9994  _IMP_core.TransformedDistancePairScore_swiginit(self, _IMP_core.new_TransformedDistancePairScore(f, transformation))
9995 
9996  def set_transformation(self, rot):
9997  r"""set_transformation(TransformedDistancePairScore self, Transformation3D rot)"""
9998  return _IMP_core.TransformedDistancePairScore_set_transformation(self, rot)
9999 
10000  def do_get_inputs(self, m, pis):
10001  r"""do_get_inputs(TransformedDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10002  return _IMP_core.TransformedDistancePairScore_do_get_inputs(self, m, pis)
10003 
10004  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
10005  r"""evaluate_indexes(TransformedDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
10006  return _IMP_core.TransformedDistancePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
10007 
10008  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
10009  r"""evaluate_indexes_scores(TransformedDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
10010  return _IMP_core.TransformedDistancePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
10011 
10012  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
10013  r"""evaluate_indexes_delta(TransformedDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
10014  return _IMP_core.TransformedDistancePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
10015 
10016  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
10017  r"""evaluate_if_good_indexes(TransformedDistancePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
10018  return _IMP_core.TransformedDistancePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
10019 
10020  def get_version_info(self):
10021  r"""get_version_info(TransformedDistancePairScore self) -> VersionInfo"""
10022  return _IMP_core.TransformedDistancePairScore_get_version_info(self)
10023  __swig_destroy__ = _IMP_core.delete_TransformedDistancePairScore
10024 
10025  def __str__(self):
10026  r"""__str__(TransformedDistancePairScore self) -> std::string"""
10027  return _IMP_core.TransformedDistancePairScore___str__(self)
10028 
10029  def __repr__(self):
10030  r"""__repr__(TransformedDistancePairScore self) -> std::string"""
10031  return _IMP_core.TransformedDistancePairScore___repr__(self)
10032 
10033  @staticmethod
10034  def get_from(o):
10035  return _object_cast_to_TransformedDistancePairScore(o)
10036 
10037 
10038 # Register TransformedDistancePairScore in _IMP_core:
10039 _IMP_core.TransformedDistancePairScore_swigregister(TransformedDistancePairScore)
10040 class TypedPairScore(IMP.PairScore):
10041  r"""Proxy of C++ IMP::core::TypedPairScore class."""
10042 
10043  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10044 
10045  def __init__(self, typekey, allow_invalid_types=True):
10046  r"""__init__(TypedPairScore self, IntKey typekey, bool allow_invalid_types=True) -> TypedPairScore"""
10047  _IMP_core.TypedPairScore_swiginit(self, _IMP_core.new_TypedPairScore(typekey, allow_invalid_types))
10048 
10049  def set_particle_type(self, arg2):
10050  r"""set_particle_type(TypedPairScore self, Particle arg2)"""
10051  return _IMP_core.TypedPairScore_set_particle_type(self, arg2)
10052 
10053  def set_pair_score(self, ps, atype, btype):
10054  r"""set_pair_score(TypedPairScore self, PairScore ps, IMP::Int atype, IMP::Int btype)"""
10055  return _IMP_core.TypedPairScore_set_pair_score(self, ps, atype, btype)
10056 
10057  def do_get_inputs(self, m, pis):
10058  r"""do_get_inputs(TypedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10059  return _IMP_core.TypedPairScore_do_get_inputs(self, m, pis)
10060 
10061  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
10062  r"""evaluate_indexes(TypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
10063  return _IMP_core.TypedPairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
10064 
10065  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
10066  r"""evaluate_indexes_scores(TypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
10067  return _IMP_core.TypedPairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
10068 
10069  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
10070  r"""evaluate_indexes_delta(TypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
10071  return _IMP_core.TypedPairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
10072 
10073  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
10074  r"""evaluate_if_good_indexes(TypedPairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
10075  return _IMP_core.TypedPairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
10076 
10077  def get_version_info(self):
10078  r"""get_version_info(TypedPairScore self) -> VersionInfo"""
10079  return _IMP_core.TypedPairScore_get_version_info(self)
10080  __swig_destroy__ = _IMP_core.delete_TypedPairScore
10081 
10082  def __str__(self):
10083  r"""__str__(TypedPairScore self) -> std::string"""
10084  return _IMP_core.TypedPairScore___str__(self)
10085 
10086  def __repr__(self):
10087  r"""__repr__(TypedPairScore self) -> std::string"""
10088  return _IMP_core.TypedPairScore___repr__(self)
10089 
10090  @staticmethod
10091  def get_from(o):
10092  return _object_cast_to_TypedPairScore(o)
10093 
10094 
10095 # Register TypedPairScore in _IMP_core:
10096 _IMP_core.TypedPairScore_swigregister(TypedPairScore)
10097 class RigidBodyDistancePairScore(KClosePairsPairScore):
10098  r"""Proxy of C++ IMP::core::RigidBodyDistancePairScore class."""
10099 
10100  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10101 
10102  def __init__(self, ps, r):
10103  r"""__init__(RigidBodyDistancePairScore self, PairScore ps, Refiner r) -> RigidBodyDistancePairScore"""
10104  _IMP_core.RigidBodyDistancePairScore_swiginit(self, _IMP_core.new_RigidBodyDistancePairScore(ps, r))
10105 
10106  def __str__(self):
10107  r"""__str__(RigidBodyDistancePairScore self) -> std::string"""
10108  return _IMP_core.RigidBodyDistancePairScore___str__(self)
10109 
10110  def __repr__(self):
10111  r"""__repr__(RigidBodyDistancePairScore self) -> std::string"""
10112  return _IMP_core.RigidBodyDistancePairScore___repr__(self)
10113 
10114  @staticmethod
10115  def get_from(o):
10116  return _object_cast_to_RigidBodyDistancePairScore(o)
10117 
10118  __swig_destroy__ = _IMP_core.delete_RigidBodyDistancePairScore
10119 
10120 # Register RigidBodyDistancePairScore in _IMP_core:
10121 _IMP_core.RigidBodyDistancePairScore_swigregister(RigidBodyDistancePairScore)
10122 class RigidBodyAnglePairScore(IMP.PairScore):
10123  r"""Proxy of C++ IMP::core::RigidBodyAnglePairScore class."""
10124 
10125  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10126 
10127  def __init__(self, f):
10128  r"""__init__(RigidBodyAnglePairScore self, UnaryFunction f) -> RigidBodyAnglePairScore"""
10129  _IMP_core.RigidBodyAnglePairScore_swiginit(self, _IMP_core.new_RigidBodyAnglePairScore(f))
10130 
10131  def do_get_inputs(self, m, pis):
10132  r"""do_get_inputs(RigidBodyAnglePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10133  return _IMP_core.RigidBodyAnglePairScore_do_get_inputs(self, m, pis)
10134 
10135  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
10136  r"""evaluate_indexes(RigidBodyAnglePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
10137  return _IMP_core.RigidBodyAnglePairScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
10138 
10139  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
10140  r"""evaluate_indexes_scores(RigidBodyAnglePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
10141  return _IMP_core.RigidBodyAnglePairScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
10142 
10143  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
10144  r"""evaluate_indexes_delta(RigidBodyAnglePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
10145  return _IMP_core.RigidBodyAnglePairScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
10146 
10147  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
10148  r"""evaluate_if_good_indexes(RigidBodyAnglePairScore self, Model m, IMP::ParticleIndexPairs const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
10149  return _IMP_core.RigidBodyAnglePairScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
10150 
10151  def get_version_info(self):
10152  r"""get_version_info(RigidBodyAnglePairScore self) -> VersionInfo"""
10153  return _IMP_core.RigidBodyAnglePairScore_get_version_info(self)
10154  __swig_destroy__ = _IMP_core.delete_RigidBodyAnglePairScore
10155 
10156  def __str__(self):
10157  r"""__str__(RigidBodyAnglePairScore self) -> std::string"""
10158  return _IMP_core.RigidBodyAnglePairScore___str__(self)
10159 
10160  def __repr__(self):
10161  r"""__repr__(RigidBodyAnglePairScore self) -> std::string"""
10162  return _IMP_core.RigidBodyAnglePairScore___repr__(self)
10163 
10164  @staticmethod
10165  def get_from(o):
10166  return _object_cast_to_RigidBodyAnglePairScore(o)
10167 
10168 
10169 # Register RigidBodyAnglePairScore in _IMP_core:
10170 _IMP_core.RigidBodyAnglePairScore_swigregister(RigidBodyAnglePairScore)
10171 class TableRefiner(IMP.Refiner):
10172  r"""Proxy of C++ IMP::core::TableRefiner class."""
10173 
10174  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10175 
10176  def __init__(self):
10177  r"""__init__(TableRefiner self) -> TableRefiner"""
10178  _IMP_core.TableRefiner_swiginit(self, _IMP_core.new_TableRefiner())
10179 
10180  def add_particle(self, p, ps):
10181  r"""add_particle(TableRefiner self, Particle p, IMP::ParticlesTemp const & ps)"""
10182  return _IMP_core.TableRefiner_add_particle(self, p, ps)
10183 
10184  def remove_particle(self, p):
10185  r"""remove_particle(TableRefiner self, Particle p)"""
10186  return _IMP_core.TableRefiner_remove_particle(self, p)
10187 
10188  def set_particle(self, p, ps):
10189  r"""set_particle(TableRefiner self, Particle p, IMP::ParticlesTemp const & ps)"""
10190  return _IMP_core.TableRefiner_set_particle(self, p, ps)
10191 
10192  def do_get_inputs(self, m, pis):
10193  r"""do_get_inputs(TableRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10194  return _IMP_core.TableRefiner_do_get_inputs(self, m, pis)
10195 
10196  def get_version_info(self):
10197  r"""get_version_info(TableRefiner self) -> VersionInfo"""
10198  return _IMP_core.TableRefiner_get_version_info(self)
10199  __swig_destroy__ = _IMP_core.delete_TableRefiner
10200 
10201  def __str__(self):
10202  r"""__str__(TableRefiner self) -> std::string"""
10203  return _IMP_core.TableRefiner___str__(self)
10204 
10205  def __repr__(self):
10206  r"""__repr__(TableRefiner self) -> std::string"""
10207  return _IMP_core.TableRefiner___repr__(self)
10208 
10209  @staticmethod
10210  def get_from(o):
10211  return _object_cast_to_TableRefiner(o)
10212 
10213 
10214 # Register TableRefiner in _IMP_core:
10215 _IMP_core.TableRefiner_swigregister(TableRefiner)
10216 LOWER = _IMP_core.LOWER
10217 
10218 BOTH = _IMP_core.BOTH
10219 
10220 UPPER = _IMP_core.UPPER
10221 
10222 class MCCGSampler(IMP.Sampler):
10223  r"""Proxy of C++ IMP::core::MCCGSampler class."""
10224 
10225  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10226 
10227  def __init__(self, *args):
10228  r"""__init__(MCCGSampler self, Model m, std::string name="MCCG Sampler %1%") -> MCCGSampler"""
10229  _IMP_core.MCCGSampler_swiginit(self, _IMP_core.new_MCCGSampler(*args))
10230 
10231  def set_bounding_box(self, bb):
10232  r"""set_bounding_box(MCCGSampler self, BoundingBox3D bb)"""
10233  return _IMP_core.MCCGSampler_set_bounding_box(self, bb)
10234 
10235  def set_number_of_attempts(self, att):
10236  r"""set_number_of_attempts(MCCGSampler self, unsigned int att)"""
10237  return _IMP_core.MCCGSampler_set_number_of_attempts(self, att)
10238 
10239  def set_number_of_monte_carlo_steps(self, cg):
10240  r"""set_number_of_monte_carlo_steps(MCCGSampler self, unsigned int cg)"""
10241  return _IMP_core.MCCGSampler_set_number_of_monte_carlo_steps(self, cg)
10242 
10243  def set_number_of_conjugate_gradient_steps(self, cg):
10244  r"""set_number_of_conjugate_gradient_steps(MCCGSampler self, unsigned int cg)"""
10245  return _IMP_core.MCCGSampler_set_number_of_conjugate_gradient_steps(self, cg)
10246 
10247  def set_max_monte_carlo_step_size(self, *args):
10248  r"""
10249  set_max_monte_carlo_step_size(MCCGSampler self, double d)
10250  set_max_monte_carlo_step_size(MCCGSampler self, FloatKey k, double d)
10251  """
10252  return _IMP_core.MCCGSampler_set_max_monte_carlo_step_size(self, *args)
10253 
10254  def set_is_refining(self, tf):
10255  r"""set_is_refining(MCCGSampler self, bool tf)"""
10256  return _IMP_core.MCCGSampler_set_is_refining(self, tf)
10257 
10258  def set_local_optimizer(self, opt):
10259  r"""set_local_optimizer(MCCGSampler self, Optimizer opt)"""
10260  return _IMP_core.MCCGSampler_set_local_optimizer(self, opt)
10261 
10262  def set_save_rejected_configurations(self, tf):
10263  r"""set_save_rejected_configurations(MCCGSampler self, bool tf)"""
10264  return _IMP_core.MCCGSampler_set_save_rejected_configurations(self, tf)
10265 
10266  def get_rejected_configurations(self):
10267  r"""get_rejected_configurations(MCCGSampler self) -> ConfigurationSet"""
10268  return _IMP_core.MCCGSampler_get_rejected_configurations(self)
10269  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)
10270  def __set_optimizer_states(self, obj): IMP._list_util.set_varlist(self.optimizer_states, obj)
10271  def __del_optimizer_states(self): IMP._list_util.del_varlist(self.optimizer_states)
10272  optimizer_states = property(__get_optimizer_states, __set_optimizer_states, __del_optimizer_states, doc="List of ##ucnames")
10273 
10274  def remove_optimizer_state(self, d):
10275  r"""remove_optimizer_state(MCCGSampler self, OptimizerState d)"""
10276  return _IMP_core.MCCGSampler_remove_optimizer_state(self, d)
10277 
10278  def _python_index_optimizer_state(self, d, start, stop):
10279  r"""_python_index_optimizer_state(MCCGSampler self, OptimizerState d, unsigned int start, unsigned int stop) -> unsigned int"""
10280  return _IMP_core.MCCGSampler__python_index_optimizer_state(self, d, start, stop)
10281 
10282  def remove_optimizer_states(self, d):
10283  r"""remove_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & d)"""
10284  return _IMP_core.MCCGSampler_remove_optimizer_states(self, d)
10285 
10286  def set_optimizer_states(self, ps):
10287  r"""set_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & ps)"""
10288  return _IMP_core.MCCGSampler_set_optimizer_states(self, ps)
10289 
10290  def set_optimizer_states_order(self, objs):
10291  r"""set_optimizer_states_order(MCCGSampler self, IMP::OptimizerStates const & objs)"""
10292  return _IMP_core.MCCGSampler_set_optimizer_states_order(self, objs)
10293 
10294  def add_optimizer_state(self, obj):
10295  r"""add_optimizer_state(MCCGSampler self, OptimizerState obj) -> unsigned int"""
10296  return _IMP_core.MCCGSampler_add_optimizer_state(self, obj)
10297 
10298  def add_optimizer_states(self, objs):
10299  r"""add_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & objs)"""
10300  return _IMP_core.MCCGSampler_add_optimizer_states(self, objs)
10301 
10302  def clear_optimizer_states(self):
10303  r"""clear_optimizer_states(MCCGSampler self)"""
10304  return _IMP_core.MCCGSampler_clear_optimizer_states(self)
10305 
10306  def get_number_of_optimizer_states(self):
10307  r"""get_number_of_optimizer_states(MCCGSampler self) -> unsigned int"""
10308  return _IMP_core.MCCGSampler_get_number_of_optimizer_states(self)
10309 
10310  def get_has_optimizer_states(self):
10311  r"""get_has_optimizer_states(MCCGSampler self) -> bool"""
10312  return _IMP_core.MCCGSampler_get_has_optimizer_states(self)
10313 
10314  def get_optimizer_state(self, i):
10315  r"""get_optimizer_state(MCCGSampler self, unsigned int i) -> OptimizerState"""
10316  return _IMP_core.MCCGSampler_get_optimizer_state(self, i)
10317 
10318  def get_optimizer_states(self):
10319  r"""get_optimizer_states(MCCGSampler self) -> IMP::OptimizerStates"""
10320  return _IMP_core.MCCGSampler_get_optimizer_states(self)
10321 
10322  def erase_optimizer_state(self, i):
10323  r"""erase_optimizer_state(MCCGSampler self, unsigned int i)"""
10324  return _IMP_core.MCCGSampler_erase_optimizer_state(self, i)
10325 
10326  def reserve_optimizer_states(self, sz):
10327  r"""reserve_optimizer_states(MCCGSampler self, unsigned int sz)"""
10328  return _IMP_core.MCCGSampler_reserve_optimizer_states(self, sz)
10329 
10330  def do_sample(self):
10331  r"""do_sample(MCCGSampler self) -> ConfigurationSet"""
10332  return _IMP_core.MCCGSampler_do_sample(self)
10333 
10334  def get_version_info(self):
10335  r"""get_version_info(MCCGSampler self) -> VersionInfo"""
10336  return _IMP_core.MCCGSampler_get_version_info(self)
10337  __swig_destroy__ = _IMP_core.delete_MCCGSampler
10338 
10339  def __str__(self):
10340  r"""__str__(MCCGSampler self) -> std::string"""
10341  return _IMP_core.MCCGSampler___str__(self)
10342 
10343  def __repr__(self):
10344  r"""__repr__(MCCGSampler self) -> std::string"""
10345  return _IMP_core.MCCGSampler___repr__(self)
10346 
10347  @staticmethod
10348  def get_from(o):
10349  return _object_cast_to_MCCGSampler(o)
10350 
10351 
10352 # Register MCCGSampler in _IMP_core:
10353 _IMP_core.MCCGSampler_swigregister(MCCGSampler)
10354 class MinimumRestraint(IMP.Restraint):
10355  r"""Proxy of C++ IMP::core::MinimumRestraint class."""
10356 
10357  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10358 
10359  def __init__(self, *args):
10360  r"""__init__(MinimumRestraint self, unsigned int num, IMP::Restraints const & rs=IMP::Restraints(), std::string name="MinimumRestraint %1%") -> MinimumRestraint"""
10361  _IMP_core.MinimumRestraint_swiginit(self, _IMP_core.new_MinimumRestraint(*args))
10362 
10363  def do_get_inputs(self):
10364  r"""do_get_inputs(MinimumRestraint self) -> IMP::ModelObjectsTemp"""
10365  return _IMP_core.MinimumRestraint_do_get_inputs(self)
10366 
10367  def get_version_info(self):
10368  r"""get_version_info(MinimumRestraint self) -> VersionInfo"""
10369  return _IMP_core.MinimumRestraint_get_version_info(self)
10370  __swig_destroy__ = _IMP_core.delete_MinimumRestraint
10371  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)
10372  def __set_restraints(self, obj): IMP._list_util.set_varlist(self.restraints, obj)
10373  def __del_restraints(self): IMP._list_util.del_varlist(self.restraints)
10374  restraints = property(__get_restraints, __set_restraints, __del_restraints, doc="List of ##ucnames")
10375 
10376  def remove_restraint(self, d):
10377  r"""remove_restraint(MinimumRestraint self, Restraint d)"""
10378  return _IMP_core.MinimumRestraint_remove_restraint(self, d)
10379 
10380  def _python_index_restraint(self, d, start, stop):
10381  r"""_python_index_restraint(MinimumRestraint self, Restraint d, unsigned int start, unsigned int stop) -> unsigned int"""
10382  return _IMP_core.MinimumRestraint__python_index_restraint(self, d, start, stop)
10383 
10384  def remove_restraints(self, d):
10385  r"""remove_restraints(MinimumRestraint self, IMP::Restraints const & d)"""
10386  return _IMP_core.MinimumRestraint_remove_restraints(self, d)
10387 
10388  def set_restraints(self, ps):
10389  r"""set_restraints(MinimumRestraint self, IMP::Restraints const & ps)"""
10390  return _IMP_core.MinimumRestraint_set_restraints(self, ps)
10391 
10392  def set_restraints_order(self, objs):
10393  r"""set_restraints_order(MinimumRestraint self, IMP::Restraints const & objs)"""
10394  return _IMP_core.MinimumRestraint_set_restraints_order(self, objs)
10395 
10396  def add_restraint(self, obj):
10397  r"""add_restraint(MinimumRestraint self, Restraint obj) -> unsigned int"""
10398  return _IMP_core.MinimumRestraint_add_restraint(self, obj)
10399 
10400  def add_restraints(self, objs):
10401  r"""add_restraints(MinimumRestraint self, IMP::Restraints const & objs)"""
10402  return _IMP_core.MinimumRestraint_add_restraints(self, objs)
10403 
10404  def clear_restraints(self):
10405  r"""clear_restraints(MinimumRestraint self)"""
10406  return _IMP_core.MinimumRestraint_clear_restraints(self)
10407 
10408  def get_number_of_restraints(self):
10409  r"""get_number_of_restraints(MinimumRestraint self) -> unsigned int"""
10410  return _IMP_core.MinimumRestraint_get_number_of_restraints(self)
10411 
10412  def get_has_restraints(self):
10413  r"""get_has_restraints(MinimumRestraint self) -> bool"""
10414  return _IMP_core.MinimumRestraint_get_has_restraints(self)
10415 
10416  def get_restraint(self, i):
10417  r"""get_restraint(MinimumRestraint self, unsigned int i) -> Restraint"""
10418  return _IMP_core.MinimumRestraint_get_restraint(self, i)
10419 
10420  def get_restraints(self):
10421  r"""get_restraints(MinimumRestraint self) -> IMP::Restraints"""
10422  return _IMP_core.MinimumRestraint_get_restraints(self)
10423 
10424  def erase_restraint(self, i):
10425  r"""erase_restraint(MinimumRestraint self, unsigned int i)"""
10426  return _IMP_core.MinimumRestraint_erase_restraint(self, i)
10427 
10428  def reserve_restraints(self, sz):
10429  r"""reserve_restraints(MinimumRestraint self, unsigned int sz)"""
10430  return _IMP_core.MinimumRestraint_reserve_restraints(self, sz)
10431 
10432  def __str__(self):
10433  r"""__str__(MinimumRestraint self) -> std::string"""
10434  return _IMP_core.MinimumRestraint___str__(self)
10435 
10436  def __repr__(self):
10437  r"""__repr__(MinimumRestraint self) -> std::string"""
10438  return _IMP_core.MinimumRestraint___repr__(self)
10439 
10440  @staticmethod
10441  def get_from(o):
10442  return _object_cast_to_MinimumRestraint(o)
10443 
10444 
10445 # Register MinimumRestraint in _IMP_core:
10446 _IMP_core.MinimumRestraint_swigregister(MinimumRestraint)
10447 class Gaussian(RigidBody):
10448  r"""Proxy of C++ IMP::core::Gaussian class."""
10449 
10450  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10451 
10452  def __init__(self, *args):
10453  r"""
10454  __init__(Gaussian self) -> Gaussian
10455  __init__(Gaussian self, Model m, ParticleIndex id) -> Gaussian
10456  __init__(Gaussian self, _ParticleAdaptor d) -> Gaussian
10457  """
10458  _IMP_core.Gaussian_swiginit(self, _IMP_core.new_Gaussian(*args))
10459 
10460  def show(self, *args):
10461  r"""show(Gaussian self, _ostream out=std::cout)"""
10462  return _IMP_core.Gaussian_show(self, *args)
10463 
10464  @staticmethod
10465  def setup_particle(*args):
10466  r"""
10467  setup_particle(Model m, ParticleIndex pi) -> Gaussian
10468  setup_particle(_ParticleAdaptor pa) -> Gaussian
10469  setup_particle(Model m, ParticleIndex pi, Gaussian3D g) -> Gaussian
10470  setup_particle(_ParticleAdaptor pa, Gaussian3D g) -> Gaussian
10471  """
10472  return _IMP_core.Gaussian_setup_particle(*args)
10473 
10474  @staticmethod
10475  def get_local_covariance_key():
10476  r"""get_local_covariance_key() -> ObjectKey"""
10477  return _IMP_core.Gaussian_get_local_covariance_key()
10478 
10479  @staticmethod
10480  def get_global_covariance_key():
10481  r"""get_global_covariance_key() -> ObjectKey"""
10482  return _IMP_core.Gaussian_get_global_covariance_key()
10483 
10484  @staticmethod
10485  def get_is_setup(*args):
10486  r"""
10487  get_is_setup(_ParticleAdaptor p) -> bool
10488  get_is_setup(Model m, ParticleIndex pi) -> bool
10489  """
10490  return _IMP_core.Gaussian_get_is_setup(*args)
10491 
10492  def get_local_covariance(self):
10493  r"""get_local_covariance(Gaussian self) -> Eigen::Matrix3d"""
10494  return _IMP_core.Gaussian_get_local_covariance(self)
10495 
10496  def get_variances(self):
10497  r"""get_variances(Gaussian self) -> Vector3D"""
10498  return _IMP_core.Gaussian_get_variances(self)
10499 
10500  def get_global_covariance(self):
10501  r"""get_global_covariance(Gaussian self) -> Eigen::Matrix3d"""
10502  return _IMP_core.Gaussian_get_global_covariance(self)
10503 
10504  def get_gaussian(self):
10505  r"""get_gaussian(Gaussian self) -> Gaussian3D"""
10506  return _IMP_core.Gaussian_get_gaussian(self)
10507 
10508  def set_gaussian(self, g):
10509  r"""set_gaussian(Gaussian self, Gaussian3D g)"""
10510  return _IMP_core.Gaussian_set_gaussian(self, g)
10511 
10512  def set_local_covariance(self, covar):
10513  r"""set_local_covariance(Gaussian self, Eigen::Vector3d const covar)"""
10514  return _IMP_core.Gaussian_set_local_covariance(self, covar)
10515 
10516  def set_variances(self, v):
10517  r"""set_variances(Gaussian self, Vector3D v)"""
10518  return _IMP_core.Gaussian_set_variances(self, v)
10519 
10520  def set_global_covariance(self, covar):
10521  r"""set_global_covariance(Gaussian self, Eigen::Matrix3d covar)"""
10522  return _IMP_core.Gaussian_set_global_covariance(self, covar)
10523 
10524  def update_global_covariance(self):
10525  r"""update_global_covariance(Gaussian self)"""
10526  return _IMP_core.Gaussian_update_global_covariance(self)
10527 
10528  def add_attribute(self, *args):
10529  r"""
10530  add_attribute(Gaussian self, FloatKey k, IMP::Float v, bool opt)
10531  add_attribute(Gaussian self, FloatKey a0, IMP::Float a1)
10532  add_attribute(Gaussian self, IntKey a0, IMP::Int a1)
10533  add_attribute(Gaussian self, FloatsKey a0, IMP::Floats a1)
10534  add_attribute(Gaussian self, IntsKey a0, IMP::Ints a1)
10535  add_attribute(Gaussian self, StringKey a0, IMP::String a1)
10536  add_attribute(Gaussian self, ParticleIndexKey a0, Particle a1)
10537  add_attribute(Gaussian self, ObjectKey a0, Object a1)
10538  add_attribute(Gaussian self, SparseFloatKey a0, IMP::Float a1)
10539  add_attribute(Gaussian self, SparseIntKey a0, IMP::Int a1)
10540  add_attribute(Gaussian self, SparseStringKey a0, IMP::String a1)
10541  add_attribute(Gaussian self, SparseParticleIndexKey a0, ParticleIndex a1)
10542  """
10543  return _IMP_core.Gaussian_add_attribute(self, *args)
10544 
10545  def get_value(self, *args):
10546  r"""
10547  get_value(Gaussian self, FloatKey a0) -> IMP::Float
10548  get_value(Gaussian self, IntKey a0) -> IMP::Int
10549  get_value(Gaussian self, FloatsKey a0) -> IMP::Floats
10550  get_value(Gaussian self, IntsKey a0) -> IMP::Ints
10551  get_value(Gaussian self, StringKey a0) -> IMP::String
10552  get_value(Gaussian self, ParticleIndexKey a0) -> Particle
10553  get_value(Gaussian self, ObjectKey a0) -> Object
10554  get_value(Gaussian self, SparseFloatKey a0) -> IMP::Float
10555  get_value(Gaussian self, SparseIntKey a0) -> IMP::Int
10556  get_value(Gaussian self, SparseStringKey a0) -> IMP::String
10557  get_value(Gaussian self, SparseParticleIndexKey a0) -> ParticleIndex
10558  """
10559  return _IMP_core.Gaussian_get_value(self, *args)
10560 
10561  def set_value(self, *args):
10562  r"""
10563  set_value(Gaussian self, FloatKey a0, IMP::Float a1)
10564  set_value(Gaussian self, IntKey a0, IMP::Int a1)
10565  set_value(Gaussian self, FloatsKey a0, IMP::Floats a1)
10566  set_value(Gaussian self, IntsKey a0, IMP::Ints a1)
10567  set_value(Gaussian self, StringKey a0, IMP::String a1)
10568  set_value(Gaussian self, ParticleIndexKey a0, Particle a1)
10569  set_value(Gaussian self, ObjectKey a0, Object a1)
10570  set_value(Gaussian self, SparseFloatKey a0, IMP::Float a1)
10571  set_value(Gaussian self, SparseIntKey a0, IMP::Int a1)
10572  set_value(Gaussian self, SparseStringKey a0, IMP::String a1)
10573  set_value(Gaussian self, SparseParticleIndexKey a0, ParticleIndex a1)
10574  """
10575  return _IMP_core.Gaussian_set_value(self, *args)
10576 
10577  def remove_attribute(self, *args):
10578  r"""
10579  remove_attribute(Gaussian self, FloatKey a0)
10580  remove_attribute(Gaussian self, IntKey a0)
10581  remove_attribute(Gaussian self, FloatsKey a0)
10582  remove_attribute(Gaussian self, IntsKey a0)
10583  remove_attribute(Gaussian self, StringKey a0)
10584  remove_attribute(Gaussian self, ParticleIndexKey a0)
10585  remove_attribute(Gaussian self, ObjectKey a0)
10586  remove_attribute(Gaussian self, SparseFloatKey a0)
10587  remove_attribute(Gaussian self, SparseIntKey a0)
10588  remove_attribute(Gaussian self, SparseStringKey a0)
10589  remove_attribute(Gaussian self, SparseParticleIndexKey a0)
10590  """
10591  return _IMP_core.Gaussian_remove_attribute(self, *args)
10592 
10593  def has_attribute(self, *args):
10594  r"""
10595  has_attribute(Gaussian self, FloatKey a0) -> bool
10596  has_attribute(Gaussian self, IntKey a0) -> bool
10597  has_attribute(Gaussian self, FloatsKey a0) -> bool
10598  has_attribute(Gaussian self, IntsKey a0) -> bool
10599  has_attribute(Gaussian self, StringKey a0) -> bool
10600  has_attribute(Gaussian self, ParticleIndexKey a0) -> bool
10601  has_attribute(Gaussian self, ObjectKey a0) -> bool
10602  has_attribute(Gaussian self, SparseFloatKey a0) -> bool
10603  has_attribute(Gaussian self, SparseIntKey a0) -> bool
10604  has_attribute(Gaussian self, SparseStringKey a0) -> bool
10605  has_attribute(Gaussian self, SparseParticleIndexKey a0) -> bool
10606  """
10607  return _IMP_core.Gaussian_has_attribute(self, *args)
10608 
10609  def get_derivative(self, a0):
10610  r"""get_derivative(Gaussian self, FloatKey a0) -> double"""
10611  return _IMP_core.Gaussian_get_derivative(self, a0)
10612 
10613  def get_name(self):
10614  r"""get_name(Gaussian self) -> std::string"""
10615  return _IMP_core.Gaussian_get_name(self)
10616 
10617  def clear_caches(self):
10618  r"""clear_caches(Gaussian self)"""
10619  return _IMP_core.Gaussian_clear_caches(self)
10620 
10621  def set_name(self, a0):
10622  r"""set_name(Gaussian self, std::string a0)"""
10623  return _IMP_core.Gaussian_set_name(self, a0)
10624 
10625  def set_check_level(self, a0):
10626  r"""set_check_level(Gaussian self, IMP::CheckLevel a0)"""
10627  return _IMP_core.Gaussian_set_check_level(self, a0)
10628 
10629  def add_to_derivative(self, a0, a1, a2):
10630  r"""add_to_derivative(Gaussian self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
10631  return _IMP_core.Gaussian_add_to_derivative(self, a0, a1, a2)
10632 
10633  def set_is_optimized(self, a0, a1):
10634  r"""set_is_optimized(Gaussian self, FloatKey a0, bool a1)"""
10635  return _IMP_core.Gaussian_set_is_optimized(self, a0, a1)
10636 
10637  def get_is_optimized(self, a0):
10638  r"""get_is_optimized(Gaussian self, FloatKey a0) -> bool"""
10639  return _IMP_core.Gaussian_get_is_optimized(self, a0)
10640 
10641  def get_check_level(self):
10642  r"""get_check_level(Gaussian self) -> IMP::CheckLevel"""
10643  return _IMP_core.Gaussian_get_check_level(self)
10644 
10645  def __eq__(self, *args):
10646  r"""
10647  __eq__(Gaussian self, Gaussian o) -> bool
10648  __eq__(Gaussian self, Particle d) -> bool
10649  """
10650  return _IMP_core.Gaussian___eq__(self, *args)
10651 
10652  def __ne__(self, *args):
10653  r"""
10654  __ne__(Gaussian self, Gaussian o) -> bool
10655  __ne__(Gaussian self, Particle d) -> bool
10656  """
10657  return _IMP_core.Gaussian___ne__(self, *args)
10658 
10659  def __le__(self, *args):
10660  r"""
10661  __le__(Gaussian self, Gaussian o) -> bool
10662  __le__(Gaussian self, Particle d) -> bool
10663  """
10664  return _IMP_core.Gaussian___le__(self, *args)
10665 
10666  def __lt__(self, *args):
10667  r"""
10668  __lt__(Gaussian self, Gaussian o) -> bool
10669  __lt__(Gaussian self, Particle d) -> bool
10670  """
10671  return _IMP_core.Gaussian___lt__(self, *args)
10672 
10673  def __ge__(self, *args):
10674  r"""
10675  __ge__(Gaussian self, Gaussian o) -> bool
10676  __ge__(Gaussian self, Particle d) -> bool
10677  """
10678  return _IMP_core.Gaussian___ge__(self, *args)
10679 
10680  def __gt__(self, *args):
10681  r"""
10682  __gt__(Gaussian self, Gaussian o) -> bool
10683  __gt__(Gaussian self, Particle d) -> bool
10684  """
10685  return _IMP_core.Gaussian___gt__(self, *args)
10686 
10687  def __hash__(self):
10688  r"""__hash__(Gaussian self) -> std::size_t"""
10689  return _IMP_core.Gaussian___hash__(self)
10690 
10691  def __str__(self):
10692  r"""__str__(Gaussian self) -> std::string"""
10693  return _IMP_core.Gaussian___str__(self)
10694 
10695  def __repr__(self):
10696  r"""__repr__(Gaussian self) -> std::string"""
10697  return _IMP_core.Gaussian___repr__(self)
10698 
10699  def _get_as_binary(self):
10700  r"""_get_as_binary(Gaussian self) -> PyObject *"""
10701  return _IMP_core.Gaussian__get_as_binary(self)
10702 
10703  def _set_from_binary(self, p):
10704  r"""_set_from_binary(Gaussian self, PyObject * p)"""
10705  return _IMP_core.Gaussian__set_from_binary(self, p)
10706 
10707  def __getstate__(self):
10708  p = self._get_as_binary()
10709  if len(self.__dict__) > 1:
10710  d = self.__dict__.copy()
10711  del d['this']
10712  p = (d, p)
10713  return p
10714 
10715  def __setstate__(self, p):
10716  if not hasattr(self, 'this'):
10717  self.__init__()
10718  if isinstance(p, tuple):
10719  d, p = p
10720  self.__dict__.update(d)
10721  return self._set_from_binary(p)
10722 
10723  __swig_destroy__ = _IMP_core.delete_Gaussian
10724 
10725 # Register Gaussian in _IMP_core:
10726 _IMP_core.Gaussian_swigregister(Gaussian)
10727 class PairRestraint(IMP.Restraint):
10728  r"""Proxy of C++ IMP::core::PairRestraint class."""
10729 
10730  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10731 
10732  def __init__(self, *args):
10733  r"""
10734  __init__(PairRestraint self, Model m, PairScore ss, IMP::ParticleIndexPair const & vt, std::string name="PairRestraint %1%") -> PairRestraint
10735  __init__(PairRestraint self) -> PairRestraint
10736  """
10737  _IMP_core.PairRestraint_swiginit(self, _IMP_core.new_PairRestraint(*args))
10738 
10739  def get_version_info(self):
10740  r"""get_version_info(PairRestraint self) -> VersionInfo"""
10741  return _IMP_core.PairRestraint_get_version_info(self)
10742  __swig_destroy__ = _IMP_core.delete_PairRestraint
10743 
10744  def __str__(self):
10745  r"""__str__(PairRestraint self) -> std::string"""
10746  return _IMP_core.PairRestraint___str__(self)
10747 
10748  def __repr__(self):
10749  r"""__repr__(PairRestraint self) -> std::string"""
10750  return _IMP_core.PairRestraint___repr__(self)
10751 
10752  @staticmethod
10753  def get_from(o):
10754  return _object_cast_to_PairRestraint(o)
10755 
10756 
10757  def _get_as_binary(self):
10758  r"""_get_as_binary(PairRestraint self) -> PyObject *"""
10759  return _IMP_core.PairRestraint__get_as_binary(self)
10760 
10761  def _set_from_binary(self, p):
10762  r"""_set_from_binary(PairRestraint self, PyObject * p)"""
10763  return _IMP_core.PairRestraint__set_from_binary(self, p)
10764 
10765  def __getstate__(self):
10766  p = self._get_as_binary()
10767  if len(self.__dict__) > 1:
10768  d = self.__dict__.copy()
10769  del d['this']
10770  p = (d, p)
10771  return p
10772 
10773  def __setstate__(self, p):
10774  if not hasattr(self, 'this'):
10775  self.__init__()
10776  if isinstance(p, tuple):
10777  d, p = p
10778  self.__dict__.update(d)
10779  return self._set_from_binary(p)
10780 
10781 
10782 # Register PairRestraint in _IMP_core:
10783 _IMP_core.PairRestraint_swigregister(PairRestraint)
10784 class SingletonRestraint(IMP.Restraint):
10785  r"""Proxy of C++ IMP::core::SingletonRestraint class."""
10786 
10787  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10788 
10789  def __init__(self, *args):
10790  r"""
10791  __init__(SingletonRestraint self, Model m, SingletonScore ss, ParticleIndex vt, std::string name="SingletonRestraint %1%") -> SingletonRestraint
10792  __init__(SingletonRestraint self) -> SingletonRestraint
10793  """
10794  _IMP_core.SingletonRestraint_swiginit(self, _IMP_core.new_SingletonRestraint(*args))
10795 
10796  def get_version_info(self):
10797  r"""get_version_info(SingletonRestraint self) -> VersionInfo"""
10798  return _IMP_core.SingletonRestraint_get_version_info(self)
10799  __swig_destroy__ = _IMP_core.delete_SingletonRestraint
10800 
10801  def __str__(self):
10802  r"""__str__(SingletonRestraint self) -> std::string"""
10803  return _IMP_core.SingletonRestraint___str__(self)
10804 
10805  def __repr__(self):
10806  r"""__repr__(SingletonRestraint self) -> std::string"""
10807  return _IMP_core.SingletonRestraint___repr__(self)
10808 
10809  @staticmethod
10810  def get_from(o):
10811  return _object_cast_to_SingletonRestraint(o)
10812 
10813 
10814  def _get_as_binary(self):
10815  r"""_get_as_binary(SingletonRestraint self) -> PyObject *"""
10816  return _IMP_core.SingletonRestraint__get_as_binary(self)
10817 
10818  def _set_from_binary(self, p):
10819  r"""_set_from_binary(SingletonRestraint self, PyObject * p)"""
10820  return _IMP_core.SingletonRestraint__set_from_binary(self, p)
10821 
10822  def __getstate__(self):
10823  p = self._get_as_binary()
10824  if len(self.__dict__) > 1:
10825  d = self.__dict__.copy()
10826  del d['this']
10827  p = (d, p)
10828  return p
10829 
10830  def __setstate__(self, p):
10831  if not hasattr(self, 'this'):
10832  self.__init__()
10833  if isinstance(p, tuple):
10834  d, p = p
10835  self.__dict__.update(d)
10836  return self._set_from_binary(p)
10837 
10838 
10839 # Register SingletonRestraint in _IMP_core:
10840 _IMP_core.SingletonRestraint_swigregister(SingletonRestraint)
10841 class TripletRestraint(IMP.Restraint):
10842  r"""Proxy of C++ IMP::core::TripletRestraint class."""
10843 
10844  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10845 
10846  def __init__(self, *args):
10847  r"""
10848  __init__(TripletRestraint self, Model m, TripletScore ss, IMP::ParticleIndexTriplet const & vt, std::string name="TripletRestraint %1%") -> TripletRestraint
10849  __init__(TripletRestraint self) -> TripletRestraint
10850  """
10851  _IMP_core.TripletRestraint_swiginit(self, _IMP_core.new_TripletRestraint(*args))
10852 
10853  def get_version_info(self):
10854  r"""get_version_info(TripletRestraint self) -> VersionInfo"""
10855  return _IMP_core.TripletRestraint_get_version_info(self)
10856  __swig_destroy__ = _IMP_core.delete_TripletRestraint
10857 
10858  def __str__(self):
10859  r"""__str__(TripletRestraint self) -> std::string"""
10860  return _IMP_core.TripletRestraint___str__(self)
10861 
10862  def __repr__(self):
10863  r"""__repr__(TripletRestraint self) -> std::string"""
10864  return _IMP_core.TripletRestraint___repr__(self)
10865 
10866  @staticmethod
10867  def get_from(o):
10868  return _object_cast_to_TripletRestraint(o)
10869 
10870 
10871  def _get_as_binary(self):
10872  r"""_get_as_binary(TripletRestraint self) -> PyObject *"""
10873  return _IMP_core.TripletRestraint__get_as_binary(self)
10874 
10875  def _set_from_binary(self, p):
10876  r"""_set_from_binary(TripletRestraint self, PyObject * p)"""
10877  return _IMP_core.TripletRestraint__set_from_binary(self, p)
10878 
10879  def __getstate__(self):
10880  p = self._get_as_binary()
10881  if len(self.__dict__) > 1:
10882  d = self.__dict__.copy()
10883  del d['this']
10884  p = (d, p)
10885  return p
10886 
10887  def __setstate__(self, p):
10888  if not hasattr(self, 'this'):
10889  self.__init__()
10890  if isinstance(p, tuple):
10891  d, p = p
10892  self.__dict__.update(d)
10893  return self._set_from_binary(p)
10894 
10895 
10896 # Register TripletRestraint in _IMP_core:
10897 _IMP_core.TripletRestraint_swigregister(TripletRestraint)
10898 class QuadRestraint(IMP.Restraint):
10899  r"""Proxy of C++ IMP::core::QuadRestraint class."""
10900 
10901  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10902 
10903  def __init__(self, *args):
10904  r"""
10905  __init__(QuadRestraint self, Model m, QuadScore ss, IMP::ParticleIndexQuad const & vt, std::string name="QuadRestraint %1%") -> QuadRestraint
10906  __init__(QuadRestraint self) -> QuadRestraint
10907  """
10908  _IMP_core.QuadRestraint_swiginit(self, _IMP_core.new_QuadRestraint(*args))
10909 
10910  def get_version_info(self):
10911  r"""get_version_info(QuadRestraint self) -> VersionInfo"""
10912  return _IMP_core.QuadRestraint_get_version_info(self)
10913  __swig_destroy__ = _IMP_core.delete_QuadRestraint
10914 
10915  def __str__(self):
10916  r"""__str__(QuadRestraint self) -> std::string"""
10917  return _IMP_core.QuadRestraint___str__(self)
10918 
10919  def __repr__(self):
10920  r"""__repr__(QuadRestraint self) -> std::string"""
10921  return _IMP_core.QuadRestraint___repr__(self)
10922 
10923  @staticmethod
10924  def get_from(o):
10925  return _object_cast_to_QuadRestraint(o)
10926 
10927 
10928  def _get_as_binary(self):
10929  r"""_get_as_binary(QuadRestraint self) -> PyObject *"""
10930  return _IMP_core.QuadRestraint__get_as_binary(self)
10931 
10932  def _set_from_binary(self, p):
10933  r"""_set_from_binary(QuadRestraint self, PyObject * p)"""
10934  return _IMP_core.QuadRestraint__set_from_binary(self, p)
10935 
10936  def __getstate__(self):
10937  p = self._get_as_binary()
10938  if len(self.__dict__) > 1:
10939  d = self.__dict__.copy()
10940  del d['this']
10941  p = (d, p)
10942  return p
10943 
10944  def __setstate__(self, p):
10945  if not hasattr(self, 'this'):
10946  self.__init__()
10947  if isinstance(p, tuple):
10948  d, p = p
10949  self.__dict__.update(d)
10950  return self._set_from_binary(p)
10951 
10952 
10953 # Register QuadRestraint in _IMP_core:
10954 _IMP_core.QuadRestraint_swigregister(QuadRestraint)
10955 class SingletonConstraint(IMP.Constraint):
10956  r"""Proxy of C++ IMP::core::SingletonConstraint class."""
10957 
10958  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10959 
10960  def __init__(self, *args):
10961  r"""
10962  __init__(SingletonConstraint self, SingletonModifier before, SingletonModifier after, Model m, ParticleIndex vt, std::string name="SingletonConstraint %1%", bool can_skip=False) -> SingletonConstraint
10963  __init__(SingletonConstraint self) -> SingletonConstraint
10964  """
10965  _IMP_core.SingletonConstraint_swiginit(self, _IMP_core.new_SingletonConstraint(*args))
10966 
10967  def get_version_info(self):
10968  r"""get_version_info(SingletonConstraint self) -> VersionInfo"""
10969  return _IMP_core.SingletonConstraint_get_version_info(self)
10970  __swig_destroy__ = _IMP_core.delete_SingletonConstraint
10971 
10972  def __str__(self):
10973  r"""__str__(SingletonConstraint self) -> std::string"""
10974  return _IMP_core.SingletonConstraint___str__(self)
10975 
10976  def __repr__(self):
10977  r"""__repr__(SingletonConstraint self) -> std::string"""
10978  return _IMP_core.SingletonConstraint___repr__(self)
10979 
10980  @staticmethod
10981  def get_from(o):
10982  return _object_cast_to_SingletonConstraint(o)
10983 
10984 
10985  def _get_as_binary(self):
10986  r"""_get_as_binary(SingletonConstraint self) -> PyObject *"""
10987  return _IMP_core.SingletonConstraint__get_as_binary(self)
10988 
10989  def _set_from_binary(self, p):
10990  r"""_set_from_binary(SingletonConstraint self, PyObject * p)"""
10991  return _IMP_core.SingletonConstraint__set_from_binary(self, p)
10992 
10993  def __getstate__(self):
10994  p = self._get_as_binary()
10995  if len(self.__dict__) > 1:
10996  d = self.__dict__.copy()
10997  del d['this']
10998  p = (d, p)
10999  return p
11000 
11001  def __setstate__(self, p):
11002  if not hasattr(self, 'this'):
11003  self.__init__()
11004  if isinstance(p, tuple):
11005  d, p = p
11006  self.__dict__.update(d)
11007  return self._set_from_binary(p)
11008 
11009 
11010 # Register SingletonConstraint in _IMP_core:
11011 _IMP_core.SingletonConstraint_swigregister(SingletonConstraint)
11012 class PairConstraint(IMP.Constraint):
11013  r"""Proxy of C++ IMP::core::PairConstraint class."""
11014 
11015  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11016 
11017  def __init__(self, *args):
11018  r"""
11019  __init__(PairConstraint self, PairModifier before, PairModifier after, Model m, IMP::ParticleIndexPair const & vt, std::string name="PairConstraint %1%", bool can_skip=False) -> PairConstraint
11020  __init__(PairConstraint self) -> PairConstraint
11021  """
11022  _IMP_core.PairConstraint_swiginit(self, _IMP_core.new_PairConstraint(*args))
11023 
11024  def get_version_info(self):
11025  r"""get_version_info(PairConstraint self) -> VersionInfo"""
11026  return _IMP_core.PairConstraint_get_version_info(self)
11027  __swig_destroy__ = _IMP_core.delete_PairConstraint
11028 
11029  def __str__(self):
11030  r"""__str__(PairConstraint self) -> std::string"""
11031  return _IMP_core.PairConstraint___str__(self)
11032 
11033  def __repr__(self):
11034  r"""__repr__(PairConstraint self) -> std::string"""
11035  return _IMP_core.PairConstraint___repr__(self)
11036 
11037  @staticmethod
11038  def get_from(o):
11039  return _object_cast_to_PairConstraint(o)
11040 
11041 
11042  def _get_as_binary(self):
11043  r"""_get_as_binary(PairConstraint self) -> PyObject *"""
11044  return _IMP_core.PairConstraint__get_as_binary(self)
11045 
11046  def _set_from_binary(self, p):
11047  r"""_set_from_binary(PairConstraint self, PyObject * p)"""
11048  return _IMP_core.PairConstraint__set_from_binary(self, p)
11049 
11050  def __getstate__(self):
11051  p = self._get_as_binary()
11052  if len(self.__dict__) > 1:
11053  d = self.__dict__.copy()
11054  del d['this']
11055  p = (d, p)
11056  return p
11057 
11058  def __setstate__(self, p):
11059  if not hasattr(self, 'this'):
11060  self.__init__()
11061  if isinstance(p, tuple):
11062  d, p = p
11063  self.__dict__.update(d)
11064  return self._set_from_binary(p)
11065 
11066 
11067 # Register PairConstraint in _IMP_core:
11068 _IMP_core.PairConstraint_swigregister(PairConstraint)
11069 class TripletConstraint(IMP.Constraint):
11070  r"""Proxy of C++ IMP::core::TripletConstraint class."""
11071 
11072  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11073 
11074  def __init__(self, *args):
11075  r"""
11076  __init__(TripletConstraint self, TripletModifier before, TripletModifier after, Model m, IMP::ParticleIndexTriplet const & vt, std::string name="TripletConstraint %1%", bool can_skip=False) -> TripletConstraint
11077  __init__(TripletConstraint self) -> TripletConstraint
11078  """
11079  _IMP_core.TripletConstraint_swiginit(self, _IMP_core.new_TripletConstraint(*args))
11080 
11081  def get_version_info(self):
11082  r"""get_version_info(TripletConstraint self) -> VersionInfo"""
11083  return _IMP_core.TripletConstraint_get_version_info(self)
11084  __swig_destroy__ = _IMP_core.delete_TripletConstraint
11085 
11086  def __str__(self):
11087  r"""__str__(TripletConstraint self) -> std::string"""
11088  return _IMP_core.TripletConstraint___str__(self)
11089 
11090  def __repr__(self):
11091  r"""__repr__(TripletConstraint self) -> std::string"""
11092  return _IMP_core.TripletConstraint___repr__(self)
11093 
11094  @staticmethod
11095  def get_from(o):
11096  return _object_cast_to_TripletConstraint(o)
11097 
11098 
11099  def _get_as_binary(self):
11100  r"""_get_as_binary(TripletConstraint self) -> PyObject *"""
11101  return _IMP_core.TripletConstraint__get_as_binary(self)
11102 
11103  def _set_from_binary(self, p):
11104  r"""_set_from_binary(TripletConstraint self, PyObject * p)"""
11105  return _IMP_core.TripletConstraint__set_from_binary(self, p)
11106 
11107  def __getstate__(self):
11108  p = self._get_as_binary()
11109  if len(self.__dict__) > 1:
11110  d = self.__dict__.copy()
11111  del d['this']
11112  p = (d, p)
11113  return p
11114 
11115  def __setstate__(self, p):
11116  if not hasattr(self, 'this'):
11117  self.__init__()
11118  if isinstance(p, tuple):
11119  d, p = p
11120  self.__dict__.update(d)
11121  return self._set_from_binary(p)
11122 
11123 
11124 # Register TripletConstraint in _IMP_core:
11125 _IMP_core.TripletConstraint_swigregister(TripletConstraint)
11126 class QuadConstraint(IMP.Constraint):
11127  r"""Proxy of C++ IMP::core::QuadConstraint class."""
11128 
11129  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11130 
11131  def __init__(self, *args):
11132  r"""
11133  __init__(QuadConstraint self, QuadModifier before, QuadModifier after, Model m, IMP::ParticleIndexQuad const & vt, std::string name="QuadConstraint %1%", bool can_skip=False) -> QuadConstraint
11134  __init__(QuadConstraint self) -> QuadConstraint
11135  """
11136  _IMP_core.QuadConstraint_swiginit(self, _IMP_core.new_QuadConstraint(*args))
11137 
11138  def get_version_info(self):
11139  r"""get_version_info(QuadConstraint self) -> VersionInfo"""
11140  return _IMP_core.QuadConstraint_get_version_info(self)
11141  __swig_destroy__ = _IMP_core.delete_QuadConstraint
11142 
11143  def __str__(self):
11144  r"""__str__(QuadConstraint self) -> std::string"""
11145  return _IMP_core.QuadConstraint___str__(self)
11146 
11147  def __repr__(self):
11148  r"""__repr__(QuadConstraint self) -> std::string"""
11149  return _IMP_core.QuadConstraint___repr__(self)
11150 
11151  @staticmethod
11152  def get_from(o):
11153  return _object_cast_to_QuadConstraint(o)
11154 
11155 
11156  def _get_as_binary(self):
11157  r"""_get_as_binary(QuadConstraint self) -> PyObject *"""
11158  return _IMP_core.QuadConstraint__get_as_binary(self)
11159 
11160  def _set_from_binary(self, p):
11161  r"""_set_from_binary(QuadConstraint self, PyObject * p)"""
11162  return _IMP_core.QuadConstraint__set_from_binary(self, p)
11163 
11164  def __getstate__(self):
11165  p = self._get_as_binary()
11166  if len(self.__dict__) > 1:
11167  d = self.__dict__.copy()
11168  del d['this']
11169  p = (d, p)
11170  return p
11171 
11172  def __setstate__(self, p):
11173  if not hasattr(self, 'this'):
11174  self.__init__()
11175  if isinstance(p, tuple):
11176  d, p = p
11177  self.__dict__.update(d)
11178  return self._set_from_binary(p)
11179 
11180 
11181 # Register QuadConstraint in _IMP_core:
11182 _IMP_core.QuadConstraint_swigregister(QuadConstraint)
11183 class ConstantSingletonPredicate(IMP.SingletonPredicate):
11184  r"""Proxy of C++ IMP::core::ConstantSingletonPredicate class."""
11185 
11186  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11187 
11188  def __init__(self, *args):
11189  r"""
11190  __init__(ConstantSingletonPredicate self, int v, std::string name="ConstSingletonPredicate%1%") -> ConstantSingletonPredicate
11191  __init__(ConstantSingletonPredicate self) -> ConstantSingletonPredicate
11192  """
11193  _IMP_core.ConstantSingletonPredicate_swiginit(self, _IMP_core.new_ConstantSingletonPredicate(*args))
11194 
11195  def do_get_inputs(self, arg2, arg3):
11196  r"""do_get_inputs(ConstantSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11197  return _IMP_core.ConstantSingletonPredicate_do_get_inputs(self, arg2, arg3)
11198 
11199  def get_value(self, *args):
11200  r"""
11201  get_value(ConstantSingletonPredicate self, Particle a) -> int
11202  get_value(ConstantSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11203  """
11204  return _IMP_core.ConstantSingletonPredicate_get_value(self, *args)
11205 
11206  def get_value_index(self, *args):
11207  r"""
11208  get_value_index(ConstantSingletonPredicate self, Model arg2, ParticleIndex arg3) -> int
11209  get_value_index(ConstantSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11210  """
11211  return _IMP_core.ConstantSingletonPredicate_get_value_index(self, *args)
11212 
11213  def get_version_info(self):
11214  r"""get_version_info(ConstantSingletonPredicate self) -> VersionInfo"""
11215  return _IMP_core.ConstantSingletonPredicate_get_version_info(self)
11216  __swig_destroy__ = _IMP_core.delete_ConstantSingletonPredicate
11217 
11218  def __str__(self):
11219  r"""__str__(ConstantSingletonPredicate self) -> std::string"""
11220  return _IMP_core.ConstantSingletonPredicate___str__(self)
11221 
11222  def __repr__(self):
11223  r"""__repr__(ConstantSingletonPredicate self) -> std::string"""
11224  return _IMP_core.ConstantSingletonPredicate___repr__(self)
11225 
11226  @staticmethod
11227  def get_from(o):
11228  return _object_cast_to_ConstantSingletonPredicate(o)
11229 
11230 
11231  def _get_as_binary(self):
11232  r"""_get_as_binary(ConstantSingletonPredicate self) -> PyObject *"""
11233  return _IMP_core.ConstantSingletonPredicate__get_as_binary(self)
11234 
11235  def _set_from_binary(self, p):
11236  r"""_set_from_binary(ConstantSingletonPredicate self, PyObject * p)"""
11237  return _IMP_core.ConstantSingletonPredicate__set_from_binary(self, p)
11238 
11239  def __getstate__(self):
11240  p = self._get_as_binary()
11241  if len(self.__dict__) > 1:
11242  d = self.__dict__.copy()
11243  del d['this']
11244  p = (d, p)
11245  return p
11246 
11247  def __setstate__(self, p):
11248  if not hasattr(self, 'this'):
11249  self.__init__()
11250  if isinstance(p, tuple):
11251  d, p = p
11252  self.__dict__.update(d)
11253  return self._set_from_binary(p)
11254 
11255 
11256 # Register ConstantSingletonPredicate in _IMP_core:
11257 _IMP_core.ConstantSingletonPredicate_swigregister(ConstantSingletonPredicate)
11258 class UnorderedTypeSingletonPredicate(IMP.SingletonPredicate):
11259  r"""Proxy of C++ IMP::core::UnorderedTypeSingletonPredicate class."""
11260 
11261  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11262 
11263  def __init__(self, *args):
11264  r"""__init__(UnorderedTypeSingletonPredicate self, std::string name="UnorderedTypeSingletonPredicate%1%") -> UnorderedTypeSingletonPredicate"""
11265  _IMP_core.UnorderedTypeSingletonPredicate_swiginit(self, _IMP_core.new_UnorderedTypeSingletonPredicate(*args))
11266 
11267  def do_get_inputs(self, m, pis):
11268  r"""do_get_inputs(UnorderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11269  return _IMP_core.UnorderedTypeSingletonPredicate_do_get_inputs(self, m, pis)
11270 
11271  def get_value(self, *args):
11272  r"""
11273  get_value(UnorderedTypeSingletonPredicate self, Particle a) -> int
11274  get_value(UnorderedTypeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11275  """
11276  return _IMP_core.UnorderedTypeSingletonPredicate_get_value(self, *args)
11277 
11278  def get_value_index(self, *args):
11279  r"""
11280  get_value_index(UnorderedTypeSingletonPredicate self, Model m, ParticleIndex pi) -> int
11281  get_value_index(UnorderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11282  """
11283  return _IMP_core.UnorderedTypeSingletonPredicate_get_value_index(self, *args)
11284 
11285  def get_version_info(self):
11286  r"""get_version_info(UnorderedTypeSingletonPredicate self) -> VersionInfo"""
11287  return _IMP_core.UnorderedTypeSingletonPredicate_get_version_info(self)
11288  __swig_destroy__ = _IMP_core.delete_UnorderedTypeSingletonPredicate
11289 
11290  def __str__(self):
11291  r"""__str__(UnorderedTypeSingletonPredicate self) -> std::string"""
11292  return _IMP_core.UnorderedTypeSingletonPredicate___str__(self)
11293 
11294  def __repr__(self):
11295  r"""__repr__(UnorderedTypeSingletonPredicate self) -> std::string"""
11296  return _IMP_core.UnorderedTypeSingletonPredicate___repr__(self)
11297 
11298  @staticmethod
11299  def get_from(o):
11300  return _object_cast_to_UnorderedTypeSingletonPredicate(o)
11301 
11302 
11303  def _get_as_binary(self):
11304  r"""_get_as_binary(UnorderedTypeSingletonPredicate self) -> PyObject *"""
11305  return _IMP_core.UnorderedTypeSingletonPredicate__get_as_binary(self)
11306 
11307  def _set_from_binary(self, p):
11308  r"""_set_from_binary(UnorderedTypeSingletonPredicate self, PyObject * p)"""
11309  return _IMP_core.UnorderedTypeSingletonPredicate__set_from_binary(self, p)
11310 
11311  def __getstate__(self):
11312  p = self._get_as_binary()
11313  if len(self.__dict__) > 1:
11314  d = self.__dict__.copy()
11315  del d['this']
11316  p = (d, p)
11317  return p
11318 
11319  def __setstate__(self, p):
11320  if not hasattr(self, 'this'):
11321  self.__init__()
11322  if isinstance(p, tuple):
11323  d, p = p
11324  self.__dict__.update(d)
11325  return self._set_from_binary(p)
11326 
11327 
11328 # Register UnorderedTypeSingletonPredicate in _IMP_core:
11329 _IMP_core.UnorderedTypeSingletonPredicate_swigregister(UnorderedTypeSingletonPredicate)
11330 class OrderedTypeSingletonPredicate(IMP.SingletonPredicate):
11331  r"""Proxy of C++ IMP::core::OrderedTypeSingletonPredicate class."""
11332 
11333  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11334 
11335  def __init__(self, *args):
11336  r"""__init__(OrderedTypeSingletonPredicate self, std::string name="OrderedTypeSingletonPredicate%1%") -> OrderedTypeSingletonPredicate"""
11337  _IMP_core.OrderedTypeSingletonPredicate_swiginit(self, _IMP_core.new_OrderedTypeSingletonPredicate(*args))
11338 
11339  def do_get_inputs(self, m, pis):
11340  r"""do_get_inputs(OrderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11341  return _IMP_core.OrderedTypeSingletonPredicate_do_get_inputs(self, m, pis)
11342 
11343  def get_value(self, *args):
11344  r"""
11345  get_value(OrderedTypeSingletonPredicate self, IMP::core::ParticleTypes const & types) -> int
11346  get_value(OrderedTypeSingletonPredicate self, Particle a) -> int
11347  get_value(OrderedTypeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11348  """
11349  return _IMP_core.OrderedTypeSingletonPredicate_get_value(self, *args)
11350 
11351  def get_value_index(self, *args):
11352  r"""
11353  get_value_index(OrderedTypeSingletonPredicate self, Model m, ParticleIndex pi) -> int
11354  get_value_index(OrderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11355  """
11356  return _IMP_core.OrderedTypeSingletonPredicate_get_value_index(self, *args)
11357 
11358  def get_version_info(self):
11359  r"""get_version_info(OrderedTypeSingletonPredicate self) -> VersionInfo"""
11360  return _IMP_core.OrderedTypeSingletonPredicate_get_version_info(self)
11361  __swig_destroy__ = _IMP_core.delete_OrderedTypeSingletonPredicate
11362 
11363  def __str__(self):
11364  r"""__str__(OrderedTypeSingletonPredicate self) -> std::string"""
11365  return _IMP_core.OrderedTypeSingletonPredicate___str__(self)
11366 
11367  def __repr__(self):
11368  r"""__repr__(OrderedTypeSingletonPredicate self) -> std::string"""
11369  return _IMP_core.OrderedTypeSingletonPredicate___repr__(self)
11370 
11371  @staticmethod
11372  def get_from(o):
11373  return _object_cast_to_OrderedTypeSingletonPredicate(o)
11374 
11375 
11376 # Register OrderedTypeSingletonPredicate in _IMP_core:
11377 _IMP_core.OrderedTypeSingletonPredicate_swigregister(OrderedTypeSingletonPredicate)
11378 class AllSameSingletonPredicate(IMP.SingletonPredicate):
11379  r"""Proxy of C++ IMP::core::AllSameSingletonPredicate class."""
11380 
11381  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11382 
11383  def __init__(self, *args):
11384  r"""__init__(AllSameSingletonPredicate self, std::string name="AllSameSingletonPredicate%1%") -> AllSameSingletonPredicate"""
11385  _IMP_core.AllSameSingletonPredicate_swiginit(self, _IMP_core.new_AllSameSingletonPredicate(*args))
11386 
11387  def do_get_inputs(self, arg2, arg3):
11388  r"""do_get_inputs(AllSameSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11389  return _IMP_core.AllSameSingletonPredicate_do_get_inputs(self, arg2, arg3)
11390 
11391  def get_value(self, *args):
11392  r"""
11393  get_value(AllSameSingletonPredicate self, Particle a) -> int
11394  get_value(AllSameSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11395  """
11396  return _IMP_core.AllSameSingletonPredicate_get_value(self, *args)
11397 
11398  def get_value_index(self, *args):
11399  r"""
11400  get_value_index(AllSameSingletonPredicate self, Model m, ParticleIndex pi) -> int
11401  get_value_index(AllSameSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11402  """
11403  return _IMP_core.AllSameSingletonPredicate_get_value_index(self, *args)
11404 
11405  def get_version_info(self):
11406  r"""get_version_info(AllSameSingletonPredicate self) -> VersionInfo"""
11407  return _IMP_core.AllSameSingletonPredicate_get_version_info(self)
11408  __swig_destroy__ = _IMP_core.delete_AllSameSingletonPredicate
11409 
11410  def __str__(self):
11411  r"""__str__(AllSameSingletonPredicate self) -> std::string"""
11412  return _IMP_core.AllSameSingletonPredicate___str__(self)
11413 
11414  def __repr__(self):
11415  r"""__repr__(AllSameSingletonPredicate self) -> std::string"""
11416  return _IMP_core.AllSameSingletonPredicate___repr__(self)
11417 
11418  @staticmethod
11419  def get_from(o):
11420  return _object_cast_to_AllSameSingletonPredicate(o)
11421 
11422 
11423  def _get_as_binary(self):
11424  r"""_get_as_binary(AllSameSingletonPredicate self) -> PyObject *"""
11425  return _IMP_core.AllSameSingletonPredicate__get_as_binary(self)
11426 
11427  def _set_from_binary(self, p):
11428  r"""_set_from_binary(AllSameSingletonPredicate self, PyObject * p)"""
11429  return _IMP_core.AllSameSingletonPredicate__set_from_binary(self, p)
11430 
11431  def __getstate__(self):
11432  p = self._get_as_binary()
11433  if len(self.__dict__) > 1:
11434  d = self.__dict__.copy()
11435  del d['this']
11436  p = (d, p)
11437  return p
11438 
11439  def __setstate__(self, p):
11440  if not hasattr(self, 'this'):
11441  self.__init__()
11442  if isinstance(p, tuple):
11443  d, p = p
11444  self.__dict__.update(d)
11445  return self._set_from_binary(p)
11446 
11447 
11448 # Register AllSameSingletonPredicate in _IMP_core:
11449 _IMP_core.AllSameSingletonPredicate_swigregister(AllSameSingletonPredicate)
11450 class CoinFlipSingletonPredicate(IMP.SingletonPredicate):
11451  r"""Proxy of C++ IMP::core::CoinFlipSingletonPredicate class."""
11452 
11453  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11454 
11455  def __init__(self, *args):
11456  r"""__init__(CoinFlipSingletonPredicate self, double p, std::string name="CoinFlipSingletonPredicate%1%") -> CoinFlipSingletonPredicate"""
11457  _IMP_core.CoinFlipSingletonPredicate_swiginit(self, _IMP_core.new_CoinFlipSingletonPredicate(*args))
11458 
11459  def do_get_inputs(self, arg2, arg3):
11460  r"""do_get_inputs(CoinFlipSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11461  return _IMP_core.CoinFlipSingletonPredicate_do_get_inputs(self, arg2, arg3)
11462 
11463  def get_value(self, *args):
11464  r"""
11465  get_value(CoinFlipSingletonPredicate self, Particle a) -> int
11466  get_value(CoinFlipSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11467  """
11468  return _IMP_core.CoinFlipSingletonPredicate_get_value(self, *args)
11469 
11470  def get_value_index(self, *args):
11471  r"""
11472  get_value_index(CoinFlipSingletonPredicate self, Model arg2, ParticleIndex arg3) -> int
11473  get_value_index(CoinFlipSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11474  """
11475  return _IMP_core.CoinFlipSingletonPredicate_get_value_index(self, *args)
11476 
11477  def get_version_info(self):
11478  r"""get_version_info(CoinFlipSingletonPredicate self) -> VersionInfo"""
11479  return _IMP_core.CoinFlipSingletonPredicate_get_version_info(self)
11480  __swig_destroy__ = _IMP_core.delete_CoinFlipSingletonPredicate
11481 
11482  def __str__(self):
11483  r"""__str__(CoinFlipSingletonPredicate self) -> std::string"""
11484  return _IMP_core.CoinFlipSingletonPredicate___str__(self)
11485 
11486  def __repr__(self):
11487  r"""__repr__(CoinFlipSingletonPredicate self) -> std::string"""
11488  return _IMP_core.CoinFlipSingletonPredicate___repr__(self)
11489 
11490  @staticmethod
11491  def get_from(o):
11492  return _object_cast_to_CoinFlipSingletonPredicate(o)
11493 
11494 
11495 # Register CoinFlipSingletonPredicate in _IMP_core:
11496 _IMP_core.CoinFlipSingletonPredicate_swigregister(CoinFlipSingletonPredicate)
11497 class ConstantPairPredicate(IMP.PairPredicate):
11498  r"""Proxy of C++ IMP::core::ConstantPairPredicate class."""
11499 
11500  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11501 
11502  def __init__(self, *args):
11503  r"""
11504  __init__(ConstantPairPredicate self, int v, std::string name="ConstPairPredicate%1%") -> ConstantPairPredicate
11505  __init__(ConstantPairPredicate self) -> ConstantPairPredicate
11506  """
11507  _IMP_core.ConstantPairPredicate_swiginit(self, _IMP_core.new_ConstantPairPredicate(*args))
11508 
11509  def do_get_inputs(self, arg2, arg3):
11510  r"""do_get_inputs(ConstantPairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11511  return _IMP_core.ConstantPairPredicate_do_get_inputs(self, arg2, arg3)
11512 
11513  def get_value(self, *args):
11514  r"""
11515  get_value(ConstantPairPredicate self, IMP::ParticlePair const & a) -> int
11516  get_value(ConstantPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11517  """
11518  return _IMP_core.ConstantPairPredicate_get_value(self, *args)
11519 
11520  def get_value_index(self, *args):
11521  r"""
11522  get_value_index(ConstantPairPredicate self, Model arg2, IMP::ParticleIndexPair const & arg3) -> int
11523  get_value_index(ConstantPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11524  """
11525  return _IMP_core.ConstantPairPredicate_get_value_index(self, *args)
11526 
11527  def get_version_info(self):
11528  r"""get_version_info(ConstantPairPredicate self) -> VersionInfo"""
11529  return _IMP_core.ConstantPairPredicate_get_version_info(self)
11530  __swig_destroy__ = _IMP_core.delete_ConstantPairPredicate
11531 
11532  def __str__(self):
11533  r"""__str__(ConstantPairPredicate self) -> std::string"""
11534  return _IMP_core.ConstantPairPredicate___str__(self)
11535 
11536  def __repr__(self):
11537  r"""__repr__(ConstantPairPredicate self) -> std::string"""
11538  return _IMP_core.ConstantPairPredicate___repr__(self)
11539 
11540  @staticmethod
11541  def get_from(o):
11542  return _object_cast_to_ConstantPairPredicate(o)
11543 
11544 
11545  def _get_as_binary(self):
11546  r"""_get_as_binary(ConstantPairPredicate self) -> PyObject *"""
11547  return _IMP_core.ConstantPairPredicate__get_as_binary(self)
11548 
11549  def _set_from_binary(self, p):
11550  r"""_set_from_binary(ConstantPairPredicate self, PyObject * p)"""
11551  return _IMP_core.ConstantPairPredicate__set_from_binary(self, p)
11552 
11553  def __getstate__(self):
11554  p = self._get_as_binary()
11555  if len(self.__dict__) > 1:
11556  d = self.__dict__.copy()
11557  del d['this']
11558  p = (d, p)
11559  return p
11560 
11561  def __setstate__(self, p):
11562  if not hasattr(self, 'this'):
11563  self.__init__()
11564  if isinstance(p, tuple):
11565  d, p = p
11566  self.__dict__.update(d)
11567  return self._set_from_binary(p)
11568 
11569 
11570 # Register ConstantPairPredicate in _IMP_core:
11571 _IMP_core.ConstantPairPredicate_swigregister(ConstantPairPredicate)
11572 class UnorderedTypePairPredicate(IMP.PairPredicate):
11573  r"""Proxy of C++ IMP::core::UnorderedTypePairPredicate class."""
11574 
11575  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11576 
11577  def __init__(self, *args):
11578  r"""__init__(UnorderedTypePairPredicate self, std::string name="UnorderedTypePairPredicate%1%") -> UnorderedTypePairPredicate"""
11579  _IMP_core.UnorderedTypePairPredicate_swiginit(self, _IMP_core.new_UnorderedTypePairPredicate(*args))
11580 
11581  def do_get_inputs(self, m, pis):
11582  r"""do_get_inputs(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11583  return _IMP_core.UnorderedTypePairPredicate_do_get_inputs(self, m, pis)
11584 
11585  def get_value(self, *args):
11586  r"""
11587  get_value(UnorderedTypePairPredicate self, IMP::ParticlePair const & a) -> int
11588  get_value(UnorderedTypePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11589  """
11590  return _IMP_core.UnorderedTypePairPredicate_get_value(self, *args)
11591 
11592  def get_value_index(self, *args):
11593  r"""
11594  get_value_index(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11595  get_value_index(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11596  """
11597  return _IMP_core.UnorderedTypePairPredicate_get_value_index(self, *args)
11598 
11599  def get_version_info(self):
11600  r"""get_version_info(UnorderedTypePairPredicate self) -> VersionInfo"""
11601  return _IMP_core.UnorderedTypePairPredicate_get_version_info(self)
11602  __swig_destroy__ = _IMP_core.delete_UnorderedTypePairPredicate
11603 
11604  def __str__(self):
11605  r"""__str__(UnorderedTypePairPredicate self) -> std::string"""
11606  return _IMP_core.UnorderedTypePairPredicate___str__(self)
11607 
11608  def __repr__(self):
11609  r"""__repr__(UnorderedTypePairPredicate self) -> std::string"""
11610  return _IMP_core.UnorderedTypePairPredicate___repr__(self)
11611 
11612  @staticmethod
11613  def get_from(o):
11614  return _object_cast_to_UnorderedTypePairPredicate(o)
11615 
11616 
11617  def _get_as_binary(self):
11618  r"""_get_as_binary(UnorderedTypePairPredicate self) -> PyObject *"""
11619  return _IMP_core.UnorderedTypePairPredicate__get_as_binary(self)
11620 
11621  def _set_from_binary(self, p):
11622  r"""_set_from_binary(UnorderedTypePairPredicate self, PyObject * p)"""
11623  return _IMP_core.UnorderedTypePairPredicate__set_from_binary(self, p)
11624 
11625  def __getstate__(self):
11626  p = self._get_as_binary()
11627  if len(self.__dict__) > 1:
11628  d = self.__dict__.copy()
11629  del d['this']
11630  p = (d, p)
11631  return p
11632 
11633  def __setstate__(self, p):
11634  if not hasattr(self, 'this'):
11635  self.__init__()
11636  if isinstance(p, tuple):
11637  d, p = p
11638  self.__dict__.update(d)
11639  return self._set_from_binary(p)
11640 
11641 
11642 # Register UnorderedTypePairPredicate in _IMP_core:
11643 _IMP_core.UnorderedTypePairPredicate_swigregister(UnorderedTypePairPredicate)
11644 class OrderedTypePairPredicate(IMP.PairPredicate):
11645  r"""Proxy of C++ IMP::core::OrderedTypePairPredicate class."""
11646 
11647  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11648 
11649  def __init__(self, *args):
11650  r"""__init__(OrderedTypePairPredicate self, std::string name="OrderedTypePairPredicate%1%") -> OrderedTypePairPredicate"""
11651  _IMP_core.OrderedTypePairPredicate_swiginit(self, _IMP_core.new_OrderedTypePairPredicate(*args))
11652 
11653  def do_get_inputs(self, m, pis):
11654  r"""do_get_inputs(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11655  return _IMP_core.OrderedTypePairPredicate_do_get_inputs(self, m, pis)
11656 
11657  def get_value(self, *args):
11658  r"""
11659  get_value(OrderedTypePairPredicate self, IMP::core::ParticleTypes const & types) -> int
11660  get_value(OrderedTypePairPredicate self, IMP::ParticlePair const & a) -> int
11661  get_value(OrderedTypePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11662  """
11663  return _IMP_core.OrderedTypePairPredicate_get_value(self, *args)
11664 
11665  def get_value_index(self, *args):
11666  r"""
11667  get_value_index(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11668  get_value_index(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11669  """
11670  return _IMP_core.OrderedTypePairPredicate_get_value_index(self, *args)
11671 
11672  def get_version_info(self):
11673  r"""get_version_info(OrderedTypePairPredicate self) -> VersionInfo"""
11674  return _IMP_core.OrderedTypePairPredicate_get_version_info(self)
11675  __swig_destroy__ = _IMP_core.delete_OrderedTypePairPredicate
11676 
11677  def __str__(self):
11678  r"""__str__(OrderedTypePairPredicate self) -> std::string"""
11679  return _IMP_core.OrderedTypePairPredicate___str__(self)
11680 
11681  def __repr__(self):
11682  r"""__repr__(OrderedTypePairPredicate self) -> std::string"""
11683  return _IMP_core.OrderedTypePairPredicate___repr__(self)
11684 
11685  @staticmethod
11686  def get_from(o):
11687  return _object_cast_to_OrderedTypePairPredicate(o)
11688 
11689 
11690 # Register OrderedTypePairPredicate in _IMP_core:
11691 _IMP_core.OrderedTypePairPredicate_swigregister(OrderedTypePairPredicate)
11692 class AllSamePairPredicate(IMP.PairPredicate):
11693  r"""Proxy of C++ IMP::core::AllSamePairPredicate class."""
11694 
11695  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11696 
11697  def __init__(self, *args):
11698  r"""__init__(AllSamePairPredicate self, std::string name="AllSamePairPredicate%1%") -> AllSamePairPredicate"""
11699  _IMP_core.AllSamePairPredicate_swiginit(self, _IMP_core.new_AllSamePairPredicate(*args))
11700 
11701  def do_get_inputs(self, arg2, arg3):
11702  r"""do_get_inputs(AllSamePairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11703  return _IMP_core.AllSamePairPredicate_do_get_inputs(self, arg2, arg3)
11704 
11705  def get_value(self, *args):
11706  r"""
11707  get_value(AllSamePairPredicate self, IMP::ParticlePair const & a) -> int
11708  get_value(AllSamePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11709  """
11710  return _IMP_core.AllSamePairPredicate_get_value(self, *args)
11711 
11712  def get_value_index(self, *args):
11713  r"""
11714  get_value_index(AllSamePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11715  get_value_index(AllSamePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11716  """
11717  return _IMP_core.AllSamePairPredicate_get_value_index(self, *args)
11718 
11719  def get_version_info(self):
11720  r"""get_version_info(AllSamePairPredicate self) -> VersionInfo"""
11721  return _IMP_core.AllSamePairPredicate_get_version_info(self)
11722  __swig_destroy__ = _IMP_core.delete_AllSamePairPredicate
11723 
11724  def __str__(self):
11725  r"""__str__(AllSamePairPredicate self) -> std::string"""
11726  return _IMP_core.AllSamePairPredicate___str__(self)
11727 
11728  def __repr__(self):
11729  r"""__repr__(AllSamePairPredicate self) -> std::string"""
11730  return _IMP_core.AllSamePairPredicate___repr__(self)
11731 
11732  @staticmethod
11733  def get_from(o):
11734  return _object_cast_to_AllSamePairPredicate(o)
11735 
11736 
11737  def _get_as_binary(self):
11738  r"""_get_as_binary(AllSamePairPredicate self) -> PyObject *"""
11739  return _IMP_core.AllSamePairPredicate__get_as_binary(self)
11740 
11741  def _set_from_binary(self, p):
11742  r"""_set_from_binary(AllSamePairPredicate self, PyObject * p)"""
11743  return _IMP_core.AllSamePairPredicate__set_from_binary(self, p)
11744 
11745  def __getstate__(self):
11746  p = self._get_as_binary()
11747  if len(self.__dict__) > 1:
11748  d = self.__dict__.copy()
11749  del d['this']
11750  p = (d, p)
11751  return p
11752 
11753  def __setstate__(self, p):
11754  if not hasattr(self, 'this'):
11755  self.__init__()
11756  if isinstance(p, tuple):
11757  d, p = p
11758  self.__dict__.update(d)
11759  return self._set_from_binary(p)
11760 
11761 
11762 # Register AllSamePairPredicate in _IMP_core:
11763 _IMP_core.AllSamePairPredicate_swigregister(AllSamePairPredicate)
11764 class CoinFlipPairPredicate(IMP.PairPredicate):
11765  r"""Proxy of C++ IMP::core::CoinFlipPairPredicate class."""
11766 
11767  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11768 
11769  def __init__(self, *args):
11770  r"""__init__(CoinFlipPairPredicate self, double p, std::string name="CoinFlipPairPredicate%1%") -> CoinFlipPairPredicate"""
11771  _IMP_core.CoinFlipPairPredicate_swiginit(self, _IMP_core.new_CoinFlipPairPredicate(*args))
11772 
11773  def do_get_inputs(self, arg2, arg3):
11774  r"""do_get_inputs(CoinFlipPairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11775  return _IMP_core.CoinFlipPairPredicate_do_get_inputs(self, arg2, arg3)
11776 
11777  def get_value(self, *args):
11778  r"""
11779  get_value(CoinFlipPairPredicate self, IMP::ParticlePair const & a) -> int
11780  get_value(CoinFlipPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11781  """
11782  return _IMP_core.CoinFlipPairPredicate_get_value(self, *args)
11783 
11784  def get_value_index(self, *args):
11785  r"""
11786  get_value_index(CoinFlipPairPredicate self, Model arg2, IMP::ParticleIndexPair const & arg3) -> int
11787  get_value_index(CoinFlipPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11788  """
11789  return _IMP_core.CoinFlipPairPredicate_get_value_index(self, *args)
11790 
11791  def get_version_info(self):
11792  r"""get_version_info(CoinFlipPairPredicate self) -> VersionInfo"""
11793  return _IMP_core.CoinFlipPairPredicate_get_version_info(self)
11794  __swig_destroy__ = _IMP_core.delete_CoinFlipPairPredicate
11795 
11796  def __str__(self):
11797  r"""__str__(CoinFlipPairPredicate self) -> std::string"""
11798  return _IMP_core.CoinFlipPairPredicate___str__(self)
11799 
11800  def __repr__(self):
11801  r"""__repr__(CoinFlipPairPredicate self) -> std::string"""
11802  return _IMP_core.CoinFlipPairPredicate___repr__(self)
11803 
11804  @staticmethod
11805  def get_from(o):
11806  return _object_cast_to_CoinFlipPairPredicate(o)
11807 
11808 
11809 # Register CoinFlipPairPredicate in _IMP_core:
11810 _IMP_core.CoinFlipPairPredicate_swigregister(CoinFlipPairPredicate)
11811 class ConstantTripletPredicate(IMP.TripletPredicate):
11812  r"""Proxy of C++ IMP::core::ConstantTripletPredicate class."""
11813 
11814  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11815 
11816  def __init__(self, *args):
11817  r"""
11818  __init__(ConstantTripletPredicate self, int v, std::string name="ConstTripletPredicate%1%") -> ConstantTripletPredicate
11819  __init__(ConstantTripletPredicate self) -> ConstantTripletPredicate
11820  """
11821  _IMP_core.ConstantTripletPredicate_swiginit(self, _IMP_core.new_ConstantTripletPredicate(*args))
11822 
11823  def do_get_inputs(self, arg2, arg3):
11824  r"""do_get_inputs(ConstantTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11825  return _IMP_core.ConstantTripletPredicate_do_get_inputs(self, arg2, arg3)
11826 
11827  def get_value(self, *args):
11828  r"""
11829  get_value(ConstantTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11830  get_value(ConstantTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11831  """
11832  return _IMP_core.ConstantTripletPredicate_get_value(self, *args)
11833 
11834  def get_value_index(self, *args):
11835  r"""
11836  get_value_index(ConstantTripletPredicate self, Model arg2, IMP::ParticleIndexTriplet const & arg3) -> int
11837  get_value_index(ConstantTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11838  """
11839  return _IMP_core.ConstantTripletPredicate_get_value_index(self, *args)
11840 
11841  def get_version_info(self):
11842  r"""get_version_info(ConstantTripletPredicate self) -> VersionInfo"""
11843  return _IMP_core.ConstantTripletPredicate_get_version_info(self)
11844  __swig_destroy__ = _IMP_core.delete_ConstantTripletPredicate
11845 
11846  def __str__(self):
11847  r"""__str__(ConstantTripletPredicate self) -> std::string"""
11848  return _IMP_core.ConstantTripletPredicate___str__(self)
11849 
11850  def __repr__(self):
11851  r"""__repr__(ConstantTripletPredicate self) -> std::string"""
11852  return _IMP_core.ConstantTripletPredicate___repr__(self)
11853 
11854  @staticmethod
11855  def get_from(o):
11856  return _object_cast_to_ConstantTripletPredicate(o)
11857 
11858 
11859  def _get_as_binary(self):
11860  r"""_get_as_binary(ConstantTripletPredicate self) -> PyObject *"""
11861  return _IMP_core.ConstantTripletPredicate__get_as_binary(self)
11862 
11863  def _set_from_binary(self, p):
11864  r"""_set_from_binary(ConstantTripletPredicate self, PyObject * p)"""
11865  return _IMP_core.ConstantTripletPredicate__set_from_binary(self, p)
11866 
11867  def __getstate__(self):
11868  p = self._get_as_binary()
11869  if len(self.__dict__) > 1:
11870  d = self.__dict__.copy()
11871  del d['this']
11872  p = (d, p)
11873  return p
11874 
11875  def __setstate__(self, p):
11876  if not hasattr(self, 'this'):
11877  self.__init__()
11878  if isinstance(p, tuple):
11879  d, p = p
11880  self.__dict__.update(d)
11881  return self._set_from_binary(p)
11882 
11883 
11884 # Register ConstantTripletPredicate in _IMP_core:
11885 _IMP_core.ConstantTripletPredicate_swigregister(ConstantTripletPredicate)
11886 class UnorderedTypeTripletPredicate(IMP.TripletPredicate):
11887  r"""Proxy of C++ IMP::core::UnorderedTypeTripletPredicate class."""
11888 
11889  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11890 
11891  def __init__(self, *args):
11892  r"""__init__(UnorderedTypeTripletPredicate self, std::string name="UnorderedTypeTripletPredicate%1%") -> UnorderedTypeTripletPredicate"""
11893  _IMP_core.UnorderedTypeTripletPredicate_swiginit(self, _IMP_core.new_UnorderedTypeTripletPredicate(*args))
11894 
11895  def do_get_inputs(self, m, pis):
11896  r"""do_get_inputs(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11897  return _IMP_core.UnorderedTypeTripletPredicate_do_get_inputs(self, m, pis)
11898 
11899  def get_value(self, *args):
11900  r"""
11901  get_value(UnorderedTypeTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11902  get_value(UnorderedTypeTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11903  """
11904  return _IMP_core.UnorderedTypeTripletPredicate_get_value(self, *args)
11905 
11906  def get_value_index(self, *args):
11907  r"""
11908  get_value_index(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
11909  get_value_index(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11910  """
11911  return _IMP_core.UnorderedTypeTripletPredicate_get_value_index(self, *args)
11912 
11913  def get_version_info(self):
11914  r"""get_version_info(UnorderedTypeTripletPredicate self) -> VersionInfo"""
11915  return _IMP_core.UnorderedTypeTripletPredicate_get_version_info(self)
11916  __swig_destroy__ = _IMP_core.delete_UnorderedTypeTripletPredicate
11917 
11918  def __str__(self):
11919  r"""__str__(UnorderedTypeTripletPredicate self) -> std::string"""
11920  return _IMP_core.UnorderedTypeTripletPredicate___str__(self)
11921 
11922  def __repr__(self):
11923  r"""__repr__(UnorderedTypeTripletPredicate self) -> std::string"""
11924  return _IMP_core.UnorderedTypeTripletPredicate___repr__(self)
11925 
11926  @staticmethod
11927  def get_from(o):
11928  return _object_cast_to_UnorderedTypeTripletPredicate(o)
11929 
11930 
11931  def _get_as_binary(self):
11932  r"""_get_as_binary(UnorderedTypeTripletPredicate self) -> PyObject *"""
11933  return _IMP_core.UnorderedTypeTripletPredicate__get_as_binary(self)
11934 
11935  def _set_from_binary(self, p):
11936  r"""_set_from_binary(UnorderedTypeTripletPredicate self, PyObject * p)"""
11937  return _IMP_core.UnorderedTypeTripletPredicate__set_from_binary(self, p)
11938 
11939  def __getstate__(self):
11940  p = self._get_as_binary()
11941  if len(self.__dict__) > 1:
11942  d = self.__dict__.copy()
11943  del d['this']
11944  p = (d, p)
11945  return p
11946 
11947  def __setstate__(self, p):
11948  if not hasattr(self, 'this'):
11949  self.__init__()
11950  if isinstance(p, tuple):
11951  d, p = p
11952  self.__dict__.update(d)
11953  return self._set_from_binary(p)
11954 
11955 
11956 # Register UnorderedTypeTripletPredicate in _IMP_core:
11957 _IMP_core.UnorderedTypeTripletPredicate_swigregister(UnorderedTypeTripletPredicate)
11958 class OrderedTypeTripletPredicate(IMP.TripletPredicate):
11959  r"""Proxy of C++ IMP::core::OrderedTypeTripletPredicate class."""
11960 
11961  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11962 
11963  def __init__(self, *args):
11964  r"""__init__(OrderedTypeTripletPredicate self, std::string name="OrderedTypeTripletPredicate%1%") -> OrderedTypeTripletPredicate"""
11965  _IMP_core.OrderedTypeTripletPredicate_swiginit(self, _IMP_core.new_OrderedTypeTripletPredicate(*args))
11966 
11967  def do_get_inputs(self, m, pis):
11968  r"""do_get_inputs(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11969  return _IMP_core.OrderedTypeTripletPredicate_do_get_inputs(self, m, pis)
11970 
11971  def get_value(self, *args):
11972  r"""
11973  get_value(OrderedTypeTripletPredicate self, IMP::core::ParticleTypes const & types) -> int
11974  get_value(OrderedTypeTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11975  get_value(OrderedTypeTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11976  """
11977  return _IMP_core.OrderedTypeTripletPredicate_get_value(self, *args)
11978 
11979  def get_value_index(self, *args):
11980  r"""
11981  get_value_index(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
11982  get_value_index(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11983  """
11984  return _IMP_core.OrderedTypeTripletPredicate_get_value_index(self, *args)
11985 
11986  def get_version_info(self):
11987  r"""get_version_info(OrderedTypeTripletPredicate self) -> VersionInfo"""
11988  return _IMP_core.OrderedTypeTripletPredicate_get_version_info(self)
11989  __swig_destroy__ = _IMP_core.delete_OrderedTypeTripletPredicate
11990 
11991  def __str__(self):
11992  r"""__str__(OrderedTypeTripletPredicate self) -> std::string"""
11993  return _IMP_core.OrderedTypeTripletPredicate___str__(self)
11994 
11995  def __repr__(self):
11996  r"""__repr__(OrderedTypeTripletPredicate self) -> std::string"""
11997  return _IMP_core.OrderedTypeTripletPredicate___repr__(self)
11998 
11999  @staticmethod
12000  def get_from(o):
12001  return _object_cast_to_OrderedTypeTripletPredicate(o)
12002 
12003 
12004 # Register OrderedTypeTripletPredicate in _IMP_core:
12005 _IMP_core.OrderedTypeTripletPredicate_swigregister(OrderedTypeTripletPredicate)
12006 class AllSameTripletPredicate(IMP.TripletPredicate):
12007  r"""Proxy of C++ IMP::core::AllSameTripletPredicate class."""
12008 
12009  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12010 
12011  def __init__(self, *args):
12012  r"""__init__(AllSameTripletPredicate self, std::string name="AllSameTripletPredicate%1%") -> AllSameTripletPredicate"""
12013  _IMP_core.AllSameTripletPredicate_swiginit(self, _IMP_core.new_AllSameTripletPredicate(*args))
12014 
12015  def do_get_inputs(self, arg2, arg3):
12016  r"""do_get_inputs(AllSameTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12017  return _IMP_core.AllSameTripletPredicate_do_get_inputs(self, arg2, arg3)
12018 
12019  def get_value(self, *args):
12020  r"""
12021  get_value(AllSameTripletPredicate self, IMP::ParticleTriplet const & a) -> int
12022  get_value(AllSameTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
12023  """
12024  return _IMP_core.AllSameTripletPredicate_get_value(self, *args)
12025 
12026  def get_value_index(self, *args):
12027  r"""
12028  get_value_index(AllSameTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
12029  get_value_index(AllSameTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
12030  """
12031  return _IMP_core.AllSameTripletPredicate_get_value_index(self, *args)
12032 
12033  def get_version_info(self):
12034  r"""get_version_info(AllSameTripletPredicate self) -> VersionInfo"""
12035  return _IMP_core.AllSameTripletPredicate_get_version_info(self)
12036  __swig_destroy__ = _IMP_core.delete_AllSameTripletPredicate
12037 
12038  def __str__(self):
12039  r"""__str__(AllSameTripletPredicate self) -> std::string"""
12040  return _IMP_core.AllSameTripletPredicate___str__(self)
12041 
12042  def __repr__(self):
12043  r"""__repr__(AllSameTripletPredicate self) -> std::string"""
12044  return _IMP_core.AllSameTripletPredicate___repr__(self)
12045 
12046  @staticmethod
12047  def get_from(o):
12048  return _object_cast_to_AllSameTripletPredicate(o)
12049 
12050 
12051  def _get_as_binary(self):
12052  r"""_get_as_binary(AllSameTripletPredicate self) -> PyObject *"""
12053  return _IMP_core.AllSameTripletPredicate__get_as_binary(self)
12054 
12055  def _set_from_binary(self, p):
12056  r"""_set_from_binary(AllSameTripletPredicate self, PyObject * p)"""
12057  return _IMP_core.AllSameTripletPredicate__set_from_binary(self, p)
12058 
12059  def __getstate__(self):
12060  p = self._get_as_binary()
12061  if len(self.__dict__) > 1:
12062  d = self.__dict__.copy()
12063  del d['this']
12064  p = (d, p)
12065  return p
12066 
12067  def __setstate__(self, p):
12068  if not hasattr(self, 'this'):
12069  self.__init__()
12070  if isinstance(p, tuple):
12071  d, p = p
12072  self.__dict__.update(d)
12073  return self._set_from_binary(p)
12074 
12075 
12076 # Register AllSameTripletPredicate in _IMP_core:
12077 _IMP_core.AllSameTripletPredicate_swigregister(AllSameTripletPredicate)
12078 class CoinFlipTripletPredicate(IMP.TripletPredicate):
12079  r"""Proxy of C++ IMP::core::CoinFlipTripletPredicate class."""
12080 
12081  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12082 
12083  def __init__(self, *args):
12084  r"""__init__(CoinFlipTripletPredicate self, double p, std::string name="CoinFlipTripletPredicate%1%") -> CoinFlipTripletPredicate"""
12085  _IMP_core.CoinFlipTripletPredicate_swiginit(self, _IMP_core.new_CoinFlipTripletPredicate(*args))
12086 
12087  def do_get_inputs(self, arg2, arg3):
12088  r"""do_get_inputs(CoinFlipTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12089  return _IMP_core.CoinFlipTripletPredicate_do_get_inputs(self, arg2, arg3)
12090 
12091  def get_value(self, *args):
12092  r"""
12093  get_value(CoinFlipTripletPredicate self, IMP::ParticleTriplet const & a) -> int
12094  get_value(CoinFlipTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
12095  """
12096  return _IMP_core.CoinFlipTripletPredicate_get_value(self, *args)
12097 
12098  def get_value_index(self, *args):
12099  r"""
12100  get_value_index(CoinFlipTripletPredicate self, Model arg2, IMP::ParticleIndexTriplet const & arg3) -> int
12101  get_value_index(CoinFlipTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
12102  """
12103  return _IMP_core.CoinFlipTripletPredicate_get_value_index(self, *args)
12104 
12105  def get_version_info(self):
12106  r"""get_version_info(CoinFlipTripletPredicate self) -> VersionInfo"""
12107  return _IMP_core.CoinFlipTripletPredicate_get_version_info(self)
12108  __swig_destroy__ = _IMP_core.delete_CoinFlipTripletPredicate
12109 
12110  def __str__(self):
12111  r"""__str__(CoinFlipTripletPredicate self) -> std::string"""
12112  return _IMP_core.CoinFlipTripletPredicate___str__(self)
12113 
12114  def __repr__(self):
12115  r"""__repr__(CoinFlipTripletPredicate self) -> std::string"""
12116  return _IMP_core.CoinFlipTripletPredicate___repr__(self)
12117 
12118  @staticmethod
12119  def get_from(o):
12120  return _object_cast_to_CoinFlipTripletPredicate(o)
12121 
12122 
12123 # Register CoinFlipTripletPredicate in _IMP_core:
12124 _IMP_core.CoinFlipTripletPredicate_swigregister(CoinFlipTripletPredicate)
12125 class ConstantQuadPredicate(IMP.QuadPredicate):
12126  r"""Proxy of C++ IMP::core::ConstantQuadPredicate class."""
12127 
12128  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12129 
12130  def __init__(self, *args):
12131  r"""
12132  __init__(ConstantQuadPredicate self, int v, std::string name="ConstQuadPredicate%1%") -> ConstantQuadPredicate
12133  __init__(ConstantQuadPredicate self) -> ConstantQuadPredicate
12134  """
12135  _IMP_core.ConstantQuadPredicate_swiginit(self, _IMP_core.new_ConstantQuadPredicate(*args))
12136 
12137  def do_get_inputs(self, arg2, arg3):
12138  r"""do_get_inputs(ConstantQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12139  return _IMP_core.ConstantQuadPredicate_do_get_inputs(self, arg2, arg3)
12140 
12141  def get_value(self, *args):
12142  r"""
12143  get_value(ConstantQuadPredicate self, IMP::ParticleQuad const & a) -> int
12144  get_value(ConstantQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12145  """
12146  return _IMP_core.ConstantQuadPredicate_get_value(self, *args)
12147 
12148  def get_value_index(self, *args):
12149  r"""
12150  get_value_index(ConstantQuadPredicate self, Model arg2, IMP::ParticleIndexQuad const & arg3) -> int
12151  get_value_index(ConstantQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12152  """
12153  return _IMP_core.ConstantQuadPredicate_get_value_index(self, *args)
12154 
12155  def get_version_info(self):
12156  r"""get_version_info(ConstantQuadPredicate self) -> VersionInfo"""
12157  return _IMP_core.ConstantQuadPredicate_get_version_info(self)
12158  __swig_destroy__ = _IMP_core.delete_ConstantQuadPredicate
12159 
12160  def __str__(self):
12161  r"""__str__(ConstantQuadPredicate self) -> std::string"""
12162  return _IMP_core.ConstantQuadPredicate___str__(self)
12163 
12164  def __repr__(self):
12165  r"""__repr__(ConstantQuadPredicate self) -> std::string"""
12166  return _IMP_core.ConstantQuadPredicate___repr__(self)
12167 
12168  @staticmethod
12169  def get_from(o):
12170  return _object_cast_to_ConstantQuadPredicate(o)
12171 
12172 
12173  def _get_as_binary(self):
12174  r"""_get_as_binary(ConstantQuadPredicate self) -> PyObject *"""
12175  return _IMP_core.ConstantQuadPredicate__get_as_binary(self)
12176 
12177  def _set_from_binary(self, p):
12178  r"""_set_from_binary(ConstantQuadPredicate self, PyObject * p)"""
12179  return _IMP_core.ConstantQuadPredicate__set_from_binary(self, p)
12180 
12181  def __getstate__(self):
12182  p = self._get_as_binary()
12183  if len(self.__dict__) > 1:
12184  d = self.__dict__.copy()
12185  del d['this']
12186  p = (d, p)
12187  return p
12188 
12189  def __setstate__(self, p):
12190  if not hasattr(self, 'this'):
12191  self.__init__()
12192  if isinstance(p, tuple):
12193  d, p = p
12194  self.__dict__.update(d)
12195  return self._set_from_binary(p)
12196 
12197 
12198 # Register ConstantQuadPredicate in _IMP_core:
12199 _IMP_core.ConstantQuadPredicate_swigregister(ConstantQuadPredicate)
12200 class UnorderedTypeQuadPredicate(IMP.QuadPredicate):
12201  r"""Proxy of C++ IMP::core::UnorderedTypeQuadPredicate class."""
12202 
12203  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12204 
12205  def __init__(self, *args):
12206  r"""__init__(UnorderedTypeQuadPredicate self, std::string name="UnorderedTypeQuadPredicate%1%") -> UnorderedTypeQuadPredicate"""
12207  _IMP_core.UnorderedTypeQuadPredicate_swiginit(self, _IMP_core.new_UnorderedTypeQuadPredicate(*args))
12208 
12209  def do_get_inputs(self, m, pis):
12210  r"""do_get_inputs(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12211  return _IMP_core.UnorderedTypeQuadPredicate_do_get_inputs(self, m, pis)
12212 
12213  def get_value(self, *args):
12214  r"""
12215  get_value(UnorderedTypeQuadPredicate self, IMP::ParticleQuad const & a) -> int
12216  get_value(UnorderedTypeQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12217  """
12218  return _IMP_core.UnorderedTypeQuadPredicate_get_value(self, *args)
12219 
12220  def get_value_index(self, *args):
12221  r"""
12222  get_value_index(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12223  get_value_index(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12224  """
12225  return _IMP_core.UnorderedTypeQuadPredicate_get_value_index(self, *args)
12226 
12227  def get_version_info(self):
12228  r"""get_version_info(UnorderedTypeQuadPredicate self) -> VersionInfo"""
12229  return _IMP_core.UnorderedTypeQuadPredicate_get_version_info(self)
12230  __swig_destroy__ = _IMP_core.delete_UnorderedTypeQuadPredicate
12231 
12232  def __str__(self):
12233  r"""__str__(UnorderedTypeQuadPredicate self) -> std::string"""
12234  return _IMP_core.UnorderedTypeQuadPredicate___str__(self)
12235 
12236  def __repr__(self):
12237  r"""__repr__(UnorderedTypeQuadPredicate self) -> std::string"""
12238  return _IMP_core.UnorderedTypeQuadPredicate___repr__(self)
12239 
12240  @staticmethod
12241  def get_from(o):
12242  return _object_cast_to_UnorderedTypeQuadPredicate(o)
12243 
12244 
12245  def _get_as_binary(self):
12246  r"""_get_as_binary(UnorderedTypeQuadPredicate self) -> PyObject *"""
12247  return _IMP_core.UnorderedTypeQuadPredicate__get_as_binary(self)
12248 
12249  def _set_from_binary(self, p):
12250  r"""_set_from_binary(UnorderedTypeQuadPredicate self, PyObject * p)"""
12251  return _IMP_core.UnorderedTypeQuadPredicate__set_from_binary(self, p)
12252 
12253  def __getstate__(self):
12254  p = self._get_as_binary()
12255  if len(self.__dict__) > 1:
12256  d = self.__dict__.copy()
12257  del d['this']
12258  p = (d, p)
12259  return p
12260 
12261  def __setstate__(self, p):
12262  if not hasattr(self, 'this'):
12263  self.__init__()
12264  if isinstance(p, tuple):
12265  d, p = p
12266  self.__dict__.update(d)
12267  return self._set_from_binary(p)
12268 
12269 
12270 # Register UnorderedTypeQuadPredicate in _IMP_core:
12271 _IMP_core.UnorderedTypeQuadPredicate_swigregister(UnorderedTypeQuadPredicate)
12272 class OrderedTypeQuadPredicate(IMP.QuadPredicate):
12273  r"""Proxy of C++ IMP::core::OrderedTypeQuadPredicate class."""
12274 
12275  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12276 
12277  def __init__(self, *args):
12278  r"""__init__(OrderedTypeQuadPredicate self, std::string name="OrderedTypeQuadPredicate%1%") -> OrderedTypeQuadPredicate"""
12279  _IMP_core.OrderedTypeQuadPredicate_swiginit(self, _IMP_core.new_OrderedTypeQuadPredicate(*args))
12280 
12281  def do_get_inputs(self, m, pis):
12282  r"""do_get_inputs(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12283  return _IMP_core.OrderedTypeQuadPredicate_do_get_inputs(self, m, pis)
12284 
12285  def get_value(self, *args):
12286  r"""
12287  get_value(OrderedTypeQuadPredicate self, IMP::core::ParticleTypes const & types) -> int
12288  get_value(OrderedTypeQuadPredicate self, IMP::ParticleQuad const & a) -> int
12289  get_value(OrderedTypeQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12290  """
12291  return _IMP_core.OrderedTypeQuadPredicate_get_value(self, *args)
12292 
12293  def get_value_index(self, *args):
12294  r"""
12295  get_value_index(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12296  get_value_index(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12297  """
12298  return _IMP_core.OrderedTypeQuadPredicate_get_value_index(self, *args)
12299 
12300  def get_version_info(self):
12301  r"""get_version_info(OrderedTypeQuadPredicate self) -> VersionInfo"""
12302  return _IMP_core.OrderedTypeQuadPredicate_get_version_info(self)
12303  __swig_destroy__ = _IMP_core.delete_OrderedTypeQuadPredicate
12304 
12305  def __str__(self):
12306  r"""__str__(OrderedTypeQuadPredicate self) -> std::string"""
12307  return _IMP_core.OrderedTypeQuadPredicate___str__(self)
12308 
12309  def __repr__(self):
12310  r"""__repr__(OrderedTypeQuadPredicate self) -> std::string"""
12311  return _IMP_core.OrderedTypeQuadPredicate___repr__(self)
12312 
12313  @staticmethod
12314  def get_from(o):
12315  return _object_cast_to_OrderedTypeQuadPredicate(o)
12316 
12317 
12318 # Register OrderedTypeQuadPredicate in _IMP_core:
12319 _IMP_core.OrderedTypeQuadPredicate_swigregister(OrderedTypeQuadPredicate)
12320 class AllSameQuadPredicate(IMP.QuadPredicate):
12321  r"""Proxy of C++ IMP::core::AllSameQuadPredicate class."""
12322 
12323  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12324 
12325  def __init__(self, *args):
12326  r"""__init__(AllSameQuadPredicate self, std::string name="AllSameQuadPredicate%1%") -> AllSameQuadPredicate"""
12327  _IMP_core.AllSameQuadPredicate_swiginit(self, _IMP_core.new_AllSameQuadPredicate(*args))
12328 
12329  def do_get_inputs(self, arg2, arg3):
12330  r"""do_get_inputs(AllSameQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12331  return _IMP_core.AllSameQuadPredicate_do_get_inputs(self, arg2, arg3)
12332 
12333  def get_value(self, *args):
12334  r"""
12335  get_value(AllSameQuadPredicate self, IMP::ParticleQuad const & a) -> int
12336  get_value(AllSameQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12337  """
12338  return _IMP_core.AllSameQuadPredicate_get_value(self, *args)
12339 
12340  def get_value_index(self, *args):
12341  r"""
12342  get_value_index(AllSameQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12343  get_value_index(AllSameQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12344  """
12345  return _IMP_core.AllSameQuadPredicate_get_value_index(self, *args)
12346 
12347  def get_version_info(self):
12348  r"""get_version_info(AllSameQuadPredicate self) -> VersionInfo"""
12349  return _IMP_core.AllSameQuadPredicate_get_version_info(self)
12350  __swig_destroy__ = _IMP_core.delete_AllSameQuadPredicate
12351 
12352  def __str__(self):
12353  r"""__str__(AllSameQuadPredicate self) -> std::string"""
12354  return _IMP_core.AllSameQuadPredicate___str__(self)
12355 
12356  def __repr__(self):
12357  r"""__repr__(AllSameQuadPredicate self) -> std::string"""
12358  return _IMP_core.AllSameQuadPredicate___repr__(self)
12359 
12360  @staticmethod
12361  def get_from(o):
12362  return _object_cast_to_AllSameQuadPredicate(o)
12363 
12364 
12365  def _get_as_binary(self):
12366  r"""_get_as_binary(AllSameQuadPredicate self) -> PyObject *"""
12367  return _IMP_core.AllSameQuadPredicate__get_as_binary(self)
12368 
12369  def _set_from_binary(self, p):
12370  r"""_set_from_binary(AllSameQuadPredicate self, PyObject * p)"""
12371  return _IMP_core.AllSameQuadPredicate__set_from_binary(self, p)
12372 
12373  def __getstate__(self):
12374  p = self._get_as_binary()
12375  if len(self.__dict__) > 1:
12376  d = self.__dict__.copy()
12377  del d['this']
12378  p = (d, p)
12379  return p
12380 
12381  def __setstate__(self, p):
12382  if not hasattr(self, 'this'):
12383  self.__init__()
12384  if isinstance(p, tuple):
12385  d, p = p
12386  self.__dict__.update(d)
12387  return self._set_from_binary(p)
12388 
12389 
12390 # Register AllSameQuadPredicate in _IMP_core:
12391 _IMP_core.AllSameQuadPredicate_swigregister(AllSameQuadPredicate)
12392 class CoinFlipQuadPredicate(IMP.QuadPredicate):
12393  r"""Proxy of C++ IMP::core::CoinFlipQuadPredicate class."""
12394 
12395  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12396 
12397  def __init__(self, *args):
12398  r"""__init__(CoinFlipQuadPredicate self, double p, std::string name="CoinFlipQuadPredicate%1%") -> CoinFlipQuadPredicate"""
12399  _IMP_core.CoinFlipQuadPredicate_swiginit(self, _IMP_core.new_CoinFlipQuadPredicate(*args))
12400 
12401  def do_get_inputs(self, arg2, arg3):
12402  r"""do_get_inputs(CoinFlipQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12403  return _IMP_core.CoinFlipQuadPredicate_do_get_inputs(self, arg2, arg3)
12404 
12405  def get_value(self, *args):
12406  r"""
12407  get_value(CoinFlipQuadPredicate self, IMP::ParticleQuad const & a) -> int
12408  get_value(CoinFlipQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12409  """
12410  return _IMP_core.CoinFlipQuadPredicate_get_value(self, *args)
12411 
12412  def get_value_index(self, *args):
12413  r"""
12414  get_value_index(CoinFlipQuadPredicate self, Model arg2, IMP::ParticleIndexQuad const & arg3) -> int
12415  get_value_index(CoinFlipQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12416  """
12417  return _IMP_core.CoinFlipQuadPredicate_get_value_index(self, *args)
12418 
12419  def get_version_info(self):
12420  r"""get_version_info(CoinFlipQuadPredicate self) -> VersionInfo"""
12421  return _IMP_core.CoinFlipQuadPredicate_get_version_info(self)
12422  __swig_destroy__ = _IMP_core.delete_CoinFlipQuadPredicate
12423 
12424  def __str__(self):
12425  r"""__str__(CoinFlipQuadPredicate self) -> std::string"""
12426  return _IMP_core.CoinFlipQuadPredicate___str__(self)
12427 
12428  def __repr__(self):
12429  r"""__repr__(CoinFlipQuadPredicate self) -> std::string"""
12430  return _IMP_core.CoinFlipQuadPredicate___repr__(self)
12431 
12432  @staticmethod
12433  def get_from(o):
12434  return _object_cast_to_CoinFlipQuadPredicate(o)
12435 
12436 
12437 # Register CoinFlipQuadPredicate in _IMP_core:
12438 _IMP_core.CoinFlipQuadPredicate_swigregister(CoinFlipQuadPredicate)
12439 class InBoundingBox3DSingletonPredicate(IMP.SingletonPredicate):
12440  r"""Proxy of C++ IMP::core::InBoundingBox3DSingletonPredicate class."""
12441 
12442  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12443 
12444  def __init__(self, *args):
12445  r"""__init__(InBoundingBox3DSingletonPredicate self, BoundingBox3D bb, std::string name="InBoundingBox3DSingletonPredicate%1%") -> InBoundingBox3DSingletonPredicate"""
12446  _IMP_core.InBoundingBox3DSingletonPredicate_swiginit(self, _IMP_core.new_InBoundingBox3DSingletonPredicate(*args))
12447 
12448  def do_get_inputs(self, m, pi):
12449  r"""do_get_inputs(InBoundingBox3DSingletonPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12450  return _IMP_core.InBoundingBox3DSingletonPredicate_do_get_inputs(self, m, pi)
12451 
12452  def get_value(self, *args):
12453  r"""
12454  get_value(InBoundingBox3DSingletonPredicate self, Particle a) -> int
12455  get_value(InBoundingBox3DSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
12456  """
12457  return _IMP_core.InBoundingBox3DSingletonPredicate_get_value(self, *args)
12458 
12459  def get_value_index(self, *args):
12460  r"""
12461  get_value_index(InBoundingBox3DSingletonPredicate self, Model m, ParticleIndex pi) -> int
12462  get_value_index(InBoundingBox3DSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
12463  """
12464  return _IMP_core.InBoundingBox3DSingletonPredicate_get_value_index(self, *args)
12465 
12466  def get_version_info(self):
12467  r"""get_version_info(InBoundingBox3DSingletonPredicate self) -> VersionInfo"""
12468  return _IMP_core.InBoundingBox3DSingletonPredicate_get_version_info(self)
12469  __swig_destroy__ = _IMP_core.delete_InBoundingBox3DSingletonPredicate
12470 
12471  def __str__(self):
12472  r"""__str__(InBoundingBox3DSingletonPredicate self) -> std::string"""
12473  return _IMP_core.InBoundingBox3DSingletonPredicate___str__(self)
12474 
12475  def __repr__(self):
12476  r"""__repr__(InBoundingBox3DSingletonPredicate self) -> std::string"""
12477  return _IMP_core.InBoundingBox3DSingletonPredicate___repr__(self)
12478 
12479  @staticmethod
12480  def get_from(o):
12481  return _object_cast_to_InBoundingBox3DSingletonPredicate(o)
12482 
12483 
12484 # Register InBoundingBox3DSingletonPredicate in _IMP_core:
12485 _IMP_core.InBoundingBox3DSingletonPredicate_swigregister(InBoundingBox3DSingletonPredicate)
12486 class AttributeSingletonPredicate(IMP.SingletonPredicate):
12487  r"""Proxy of C++ IMP::core::AttributeSingletonPredicate class."""
12488 
12489  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12490 
12491  def __init__(self, *args):
12492  r"""__init__(AttributeSingletonPredicate self, IntKey bb, std::string name="AttributeSingletonPredicate%1%") -> AttributeSingletonPredicate"""
12493  _IMP_core.AttributeSingletonPredicate_swiginit(self, _IMP_core.new_AttributeSingletonPredicate(*args))
12494 
12495  def do_get_inputs(self, m, pi):
12496  r"""do_get_inputs(AttributeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12497  return _IMP_core.AttributeSingletonPredicate_do_get_inputs(self, m, pi)
12498 
12499  def get_value(self, *args):
12500  r"""
12501  get_value(AttributeSingletonPredicate self, Particle a) -> int
12502  get_value(AttributeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
12503  """
12504  return _IMP_core.AttributeSingletonPredicate_get_value(self, *args)
12505 
12506  def get_value_index(self, *args):
12507  r"""
12508  get_value_index(AttributeSingletonPredicate self, Model m, ParticleIndex pi) -> int
12509  get_value_index(AttributeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
12510  """
12511  return _IMP_core.AttributeSingletonPredicate_get_value_index(self, *args)
12512 
12513  def get_version_info(self):
12514  r"""get_version_info(AttributeSingletonPredicate self) -> VersionInfo"""
12515  return _IMP_core.AttributeSingletonPredicate_get_version_info(self)
12516  __swig_destroy__ = _IMP_core.delete_AttributeSingletonPredicate
12517 
12518  def __str__(self):
12519  r"""__str__(AttributeSingletonPredicate self) -> std::string"""
12520  return _IMP_core.AttributeSingletonPredicate___str__(self)
12521 
12522  def __repr__(self):
12523  r"""__repr__(AttributeSingletonPredicate self) -> std::string"""
12524  return _IMP_core.AttributeSingletonPredicate___repr__(self)
12525 
12526  @staticmethod
12527  def get_from(o):
12528  return _object_cast_to_AttributeSingletonPredicate(o)
12529 
12530 
12531 # Register AttributeSingletonPredicate in _IMP_core:
12532 _IMP_core.AttributeSingletonPredicate_swigregister(AttributeSingletonPredicate)
12533 class IsCollisionPairPredicate(IMP.PairPredicate):
12534  r"""Proxy of C++ IMP::core::IsCollisionPairPredicate class."""
12535 
12536  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12537 
12538  def __init__(self, *args):
12539  r"""__init__(IsCollisionPairPredicate self, std::string name="CollisionPairPredicate%1%") -> IsCollisionPairPredicate"""
12540  _IMP_core.IsCollisionPairPredicate_swiginit(self, _IMP_core.new_IsCollisionPairPredicate(*args))
12541 
12542  def do_get_inputs(self, m, pi):
12543  r"""do_get_inputs(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12544  return _IMP_core.IsCollisionPairPredicate_do_get_inputs(self, m, pi)
12545 
12546  def get_value(self, *args):
12547  r"""
12548  get_value(IsCollisionPairPredicate self, IMP::ParticlePair const & a) -> int
12549  get_value(IsCollisionPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
12550  """
12551  return _IMP_core.IsCollisionPairPredicate_get_value(self, *args)
12552 
12553  def get_value_index(self, *args):
12554  r"""
12555  get_value_index(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
12556  get_value_index(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
12557  """
12558  return _IMP_core.IsCollisionPairPredicate_get_value_index(self, *args)
12559 
12560  def get_version_info(self):
12561  r"""get_version_info(IsCollisionPairPredicate self) -> VersionInfo"""
12562  return _IMP_core.IsCollisionPairPredicate_get_version_info(self)
12563  __swig_destroy__ = _IMP_core.delete_IsCollisionPairPredicate
12564 
12565  def __str__(self):
12566  r"""__str__(IsCollisionPairPredicate self) -> std::string"""
12567  return _IMP_core.IsCollisionPairPredicate___str__(self)
12568 
12569  def __repr__(self):
12570  r"""__repr__(IsCollisionPairPredicate self) -> std::string"""
12571  return _IMP_core.IsCollisionPairPredicate___repr__(self)
12572 
12573  @staticmethod
12574  def get_from(o):
12575  return _object_cast_to_IsCollisionPairPredicate(o)
12576 
12577 
12578 # Register IsCollisionPairPredicate in _IMP_core:
12579 _IMP_core.IsCollisionPairPredicate_swigregister(IsCollisionPairPredicate)
12580 class AngleRestraint(TripletRestraint):
12581  r"""Proxy of C++ IMP::core::AngleRestraint class."""
12582 
12583  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12584 
12585  def __init__(self, *args):
12586  r"""
12587  __init__(AngleRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3) -> AngleRestraint
12588  __init__(AngleRestraint self) -> AngleRestraint
12589  """
12590  _IMP_core.AngleRestraint_swiginit(self, _IMP_core.new_AngleRestraint(*args))
12591  __swig_destroy__ = _IMP_core.delete_AngleRestraint
12592 
12593  def __str__(self):
12594  r"""__str__(AngleRestraint self) -> std::string"""
12595  return _IMP_core.AngleRestraint___str__(self)
12596 
12597  def __repr__(self):
12598  r"""__repr__(AngleRestraint self) -> std::string"""
12599  return _IMP_core.AngleRestraint___repr__(self)
12600 
12601  @staticmethod
12602  def get_from(o):
12603  return _object_cast_to_AngleRestraint(o)
12604 
12605 
12606  def _get_as_binary(self):
12607  r"""_get_as_binary(AngleRestraint self) -> PyObject *"""
12608  return _IMP_core.AngleRestraint__get_as_binary(self)
12609 
12610  def _set_from_binary(self, p):
12611  r"""_set_from_binary(AngleRestraint self, PyObject * p)"""
12612  return _IMP_core.AngleRestraint__set_from_binary(self, p)
12613 
12614  def __getstate__(self):
12615  p = self._get_as_binary()
12616  if len(self.__dict__) > 1:
12617  d = self.__dict__.copy()
12618  del d['this']
12619  p = (d, p)
12620  return p
12621 
12622  def __setstate__(self, p):
12623  if not hasattr(self, 'this'):
12624  self.__init__()
12625  if isinstance(p, tuple):
12626  d, p = p
12627  self.__dict__.update(d)
12628  return self._set_from_binary(p)
12629 
12630 
12631 # Register AngleRestraint in _IMP_core:
12632 _IMP_core.AngleRestraint_swigregister(AngleRestraint)
12633 class RigidBodyMover(MonteCarloMover):
12634  r"""Proxy of C++ IMP::core::RigidBodyMover class."""
12635 
12636  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12637 
12638  def __init__(self, *args):
12639  r"""
12640  __init__(RigidBodyMover self, Model m, ParticleIndex pi, IMP::Float max_translation, IMP::Float max_rotation) -> RigidBodyMover
12641  __init__(RigidBodyMover self) -> RigidBodyMover
12642  """
12643  _IMP_core.RigidBodyMover_swiginit(self, _IMP_core.new_RigidBodyMover(*args))
12644 
12645  def set_maximum_translation(self, mt):
12646  r"""set_maximum_translation(RigidBodyMover self, IMP::Float mt)"""
12647  return _IMP_core.RigidBodyMover_set_maximum_translation(self, mt)
12648 
12649  def set_maximum_rotation(self, mr):
12650  r"""set_maximum_rotation(RigidBodyMover self, IMP::Float mr)"""
12651  return _IMP_core.RigidBodyMover_set_maximum_rotation(self, mr)
12652 
12653  def get_maximum_translation(self):
12654  r"""get_maximum_translation(RigidBodyMover self) -> IMP::Float"""
12655  return _IMP_core.RigidBodyMover_get_maximum_translation(self)
12656 
12657  def get_maximum_rotation(self):
12658  r"""get_maximum_rotation(RigidBodyMover self) -> IMP::Float"""
12659  return _IMP_core.RigidBodyMover_get_maximum_rotation(self)
12660 
12661  def get_version_info(self):
12662  r"""get_version_info(RigidBodyMover self) -> VersionInfo"""
12663  return _IMP_core.RigidBodyMover_get_version_info(self)
12664  __swig_destroy__ = _IMP_core.delete_RigidBodyMover
12665 
12666  def __str__(self):
12667  r"""__str__(RigidBodyMover self) -> std::string"""
12668  return _IMP_core.RigidBodyMover___str__(self)
12669 
12670  def __repr__(self):
12671  r"""__repr__(RigidBodyMover self) -> std::string"""
12672  return _IMP_core.RigidBodyMover___repr__(self)
12673 
12674  @staticmethod
12675  def get_from(o):
12676  return _object_cast_to_RigidBodyMover(o)
12677 
12678 
12679  def _get_as_binary(self):
12680  r"""_get_as_binary(RigidBodyMover self) -> PyObject *"""
12681  return _IMP_core.RigidBodyMover__get_as_binary(self)
12682 
12683  def _set_from_binary(self, p):
12684  r"""_set_from_binary(RigidBodyMover self, PyObject * p)"""
12685  return _IMP_core.RigidBodyMover__set_from_binary(self, p)
12686 
12687  def __getstate__(self):
12688  p = self._get_as_binary()
12689  if len(self.__dict__) > 1:
12690  d = self.__dict__.copy()
12691  del d['this']
12692  p = (d, p)
12693  return p
12694 
12695  def __setstate__(self, p):
12696  if not hasattr(self, 'this'):
12697  self.__init__()
12698  if isinstance(p, tuple):
12699  d, p = p
12700  self.__dict__.update(d)
12701  return self._set_from_binary(p)
12702 
12703 
12704 # Register RigidBodyMover in _IMP_core:
12705 _IMP_core.RigidBodyMover_swigregister(RigidBodyMover)
12706 class RigidBodyTunneler(MonteCarloMover):
12707  r"""Proxy of C++ IMP::core::RigidBodyTunneler class."""
12708 
12709  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12710 
12711  def __init__(self, m, pis, ref, k, move_probability=1.):
12712  r"""__init__(RigidBodyTunneler self, Model m, IMP::ParticleIndexes pis, ParticleIndex ref, double k, double move_probability=1.) -> RigidBodyTunneler"""
12713  _IMP_core.RigidBodyTunneler_swiginit(self, _IMP_core.new_RigidBodyTunneler(m, pis, ref, k, move_probability))
12714 
12715  def add_entry_point(self, fl):
12716  r"""add_entry_point(RigidBodyTunneler self, IMP::Floats fl)"""
12717  return _IMP_core.RigidBodyTunneler_add_entry_point(self, fl)
12718 
12719  def reset_stats(self):
12720  r"""reset_stats(RigidBodyTunneler self)"""
12721  return _IMP_core.RigidBodyTunneler_reset_stats(self)
12722 
12723  def get_number_of_rejected_moves(self):
12724  r"""get_number_of_rejected_moves(RigidBodyTunneler self) -> unsigned int"""
12725  return _IMP_core.RigidBodyTunneler_get_number_of_rejected_moves(self)
12726 
12727  def get_number_of_proposed_moves(self):
12728  r"""get_number_of_proposed_moves(RigidBodyTunneler self) -> unsigned int"""
12729  return _IMP_core.RigidBodyTunneler_get_number_of_proposed_moves(self)
12730 
12731  def get_number_of_impossible_moves(self):
12732  r"""get_number_of_impossible_moves(RigidBodyTunneler self) -> unsigned int"""
12733  return _IMP_core.RigidBodyTunneler_get_number_of_impossible_moves(self)
12734 
12735  def get_number_of_calls(self):
12736  r"""get_number_of_calls(RigidBodyTunneler self) -> unsigned int"""
12737  return _IMP_core.RigidBodyTunneler_get_number_of_calls(self)
12738 
12739  @staticmethod
12740  def get_reduced_coordinates(*args):
12741  r"""
12742  get_reduced_coordinates(Model m, ParticleIndex target, ParticleIndex ref) -> IMP::Floats
12743  get_reduced_coordinates(Model m, ParticleIndex pi) -> IMP::Floats
12744  """
12745  return _IMP_core.RigidBodyTunneler_get_reduced_coordinates(*args)
12746 
12747  @staticmethod
12748  def set_reduced_coordinates(m, target, ref, coords):
12749  r"""set_reduced_coordinates(Model m, ParticleIndex target, ParticleIndex ref, IMP::Floats coords)"""
12750  return _IMP_core.RigidBodyTunneler_set_reduced_coordinates(m, target, ref, coords)
12751 
12752  def get_version_info(self):
12753  r"""get_version_info(RigidBodyTunneler self) -> VersionInfo"""
12754  return _IMP_core.RigidBodyTunneler_get_version_info(self)
12755  __swig_destroy__ = _IMP_core.delete_RigidBodyTunneler
12756 
12757  def __str__(self):
12758  r"""__str__(RigidBodyTunneler self) -> std::string"""
12759  return _IMP_core.RigidBodyTunneler___str__(self)
12760 
12761  def __repr__(self):
12762  r"""__repr__(RigidBodyTunneler self) -> std::string"""
12763  return _IMP_core.RigidBodyTunneler___repr__(self)
12764 
12765  @staticmethod
12766  def get_from(o):
12767  return _object_cast_to_RigidBodyTunneler(o)
12768 
12769 
12770 # Register RigidBodyTunneler in _IMP_core:
12771 _IMP_core.RigidBodyTunneler_swigregister(RigidBodyTunneler)
12772 class RigidBodyUmbrella(IMP.Restraint):
12773  r"""Proxy of C++ IMP::core::RigidBodyUmbrella class."""
12774 
12775  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12776 
12777  def __init__(self, *args):
12778  r"""
12779  __init__(RigidBodyUmbrella self, Model m, ParticleIndex pi, ParticleIndex ref, IMP::Floats x0, double alpha, double k, std::string name="RigidBodyUmbrella %1%") -> RigidBodyUmbrella
12780  __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
12781  """
12782  _IMP_core.RigidBodyUmbrella_swiginit(self, _IMP_core.new_RigidBodyUmbrella(*args))
12783 
12784  def set_x0(self, *args):
12785  r"""
12786  set_x0(RigidBodyUmbrella self, IMP::Floats x0)
12787  set_x0(RigidBodyUmbrella self, double _lambda, IMP::Floats x1, IMP::Floats x2)
12788  """
12789  return _IMP_core.RigidBodyUmbrella_set_x0(self, *args)
12790 
12791  def get_x0(self):
12792  r"""get_x0(RigidBodyUmbrella self) -> IMP::Floats"""
12793  return _IMP_core.RigidBodyUmbrella_get_x0(self)
12794 
12795  def get_x(self):
12796  r"""get_x(RigidBodyUmbrella self) -> IMP::Floats"""
12797  return _IMP_core.RigidBodyUmbrella_get_x(self)
12798 
12799  def set_alpha(self, alpha):
12800  r"""set_alpha(RigidBodyUmbrella self, double alpha)"""
12801  return _IMP_core.RigidBodyUmbrella_set_alpha(self, alpha)
12802 
12803  def set_k(self, k):
12804  r"""set_k(RigidBodyUmbrella self, double k)"""
12805  return _IMP_core.RigidBodyUmbrella_set_k(self, k)
12806 
12807  def get_version_info(self):
12808  r"""get_version_info(RigidBodyUmbrella self) -> VersionInfo"""
12809  return _IMP_core.RigidBodyUmbrella_get_version_info(self)
12810  __swig_destroy__ = _IMP_core.delete_RigidBodyUmbrella
12811 
12812  def __str__(self):
12813  r"""__str__(RigidBodyUmbrella self) -> std::string"""
12814  return _IMP_core.RigidBodyUmbrella___str__(self)
12815 
12816  def __repr__(self):
12817  r"""__repr__(RigidBodyUmbrella self) -> std::string"""
12818  return _IMP_core.RigidBodyUmbrella___repr__(self)
12819 
12820  @staticmethod
12821  def get_from(o):
12822  return _object_cast_to_RigidBodyUmbrella(o)
12823 
12824 
12825 # Register RigidBodyUmbrella in _IMP_core:
12826 _IMP_core.RigidBodyUmbrella_swigregister(RigidBodyUmbrella)
12827 class VolumeRestraint(IMP.Restraint):
12828  r"""Proxy of C++ IMP::core::VolumeRestraint class."""
12829 
12830  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12831 
12832  def __init__(self, f, sc, volume):
12833  r"""__init__(VolumeRestraint self, UnaryFunction f, SingletonContainer sc, double volume) -> VolumeRestraint"""
12834  _IMP_core.VolumeRestraint_swiginit(self, _IMP_core.new_VolumeRestraint(f, sc, volume))
12835 
12836  def do_get_inputs(self):
12837  r"""do_get_inputs(VolumeRestraint self) -> IMP::ModelObjectsTemp"""
12838  return _IMP_core.VolumeRestraint_do_get_inputs(self)
12839 
12840  def get_version_info(self):
12841  r"""get_version_info(VolumeRestraint self) -> VersionInfo"""
12842  return _IMP_core.VolumeRestraint_get_version_info(self)
12843  __swig_destroy__ = _IMP_core.delete_VolumeRestraint
12844 
12845  def __str__(self):
12846  r"""__str__(VolumeRestraint self) -> std::string"""
12847  return _IMP_core.VolumeRestraint___str__(self)
12848 
12849  def __repr__(self):
12850  r"""__repr__(VolumeRestraint self) -> std::string"""
12851  return _IMP_core.VolumeRestraint___repr__(self)
12852 
12853  @staticmethod
12854  def get_from(o):
12855  return _object_cast_to_VolumeRestraint(o)
12856 
12857 
12858 # Register VolumeRestraint in _IMP_core:
12859 _IMP_core.VolumeRestraint_swigregister(VolumeRestraint)
12860 
12861 def get_centroid(ps):
12862  r"""get_centroid(IMP::core::XYZs const & ps) -> Vector3D"""
12863  return _IMP_core.get_centroid(ps)
12864 
12865 def get_bounding_box(ps):
12866  r"""get_bounding_box(IMP::core::XYZRs const & ps) -> BoundingBox3D"""
12867  return _IMP_core.get_bounding_box(ps)
12868 class MoveStatisticsScoreState(IMP.ScoreState):
12869  r"""Proxy of C++ IMP::core::MoveStatisticsScoreState class."""
12870 
12871  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12872 
12873  def __init__(self, ps):
12874  r"""__init__(MoveStatisticsScoreState self, IMP::ParticlesTemp const & ps) -> MoveStatisticsScoreState"""
12875  _IMP_core.MoveStatisticsScoreState_swiginit(self, _IMP_core.new_MoveStatisticsScoreState(ps))
12876 
12877  def show_statistics(self, *args):
12878  r"""show_statistics(MoveStatisticsScoreState self, _ostream out=std::cout)"""
12879  return _IMP_core.MoveStatisticsScoreState_show_statistics(self, *args)
12880 
12881  def reset(self):
12882  r"""reset(MoveStatisticsScoreState self)"""
12883  return _IMP_core.MoveStatisticsScoreState_reset(self)
12884 
12885  def do_before_evaluate(self):
12886  r"""do_before_evaluate(MoveStatisticsScoreState self)"""
12887  return _IMP_core.MoveStatisticsScoreState_do_before_evaluate(self)
12888 
12889  def do_after_evaluate(self, da):
12890  r"""do_after_evaluate(MoveStatisticsScoreState self, DerivativeAccumulator da)"""
12891  return _IMP_core.MoveStatisticsScoreState_do_after_evaluate(self, da)
12892 
12893  def do_get_inputs(self):
12894  r"""do_get_inputs(MoveStatisticsScoreState self) -> IMP::ModelObjectsTemp"""
12895  return _IMP_core.MoveStatisticsScoreState_do_get_inputs(self)
12896 
12897  def do_get_outputs(self):
12898  r"""do_get_outputs(MoveStatisticsScoreState self) -> IMP::ModelObjectsTemp"""
12899  return _IMP_core.MoveStatisticsScoreState_do_get_outputs(self)
12900 
12901  def get_version_info(self):
12902  r"""get_version_info(MoveStatisticsScoreState self) -> VersionInfo"""
12903  return _IMP_core.MoveStatisticsScoreState_get_version_info(self)
12904  __swig_destroy__ = _IMP_core.delete_MoveStatisticsScoreState
12905 
12906  def __str__(self):
12907  r"""__str__(MoveStatisticsScoreState self) -> std::string"""
12908  return _IMP_core.MoveStatisticsScoreState___str__(self)
12909 
12910  def __repr__(self):
12911  r"""__repr__(MoveStatisticsScoreState self) -> std::string"""
12912  return _IMP_core.MoveStatisticsScoreState___repr__(self)
12913 
12914  @staticmethod
12915  def get_from(o):
12916  return _object_cast_to_MoveStatisticsScoreState(o)
12917 
12918 
12919 # Register MoveStatisticsScoreState in _IMP_core:
12920 _IMP_core.MoveStatisticsScoreState_swigregister(MoveStatisticsScoreState)
12921 IMP_PARTICLE_TYPE_INDEX = _IMP_core.IMP_PARTICLE_TYPE_INDEX
12922 
12923 class Typed(IMP.Decorator):
12924  r"""Proxy of C++ IMP::core::Typed class."""
12925 
12926  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12927 
12928  @staticmethod
12929  def get_type_key():
12930  r"""get_type_key() -> IntKey"""
12931  return _IMP_core.Typed_get_type_key()
12932 
12933  def __init__(self, *args):
12934  r"""
12935  __init__(Typed self) -> Typed
12936  __init__(Typed self, Model m, ParticleIndex id) -> Typed
12937  __init__(Typed self, _ParticleAdaptor d) -> Typed
12938  """
12939  _IMP_core.Typed_swiginit(self, _IMP_core.new_Typed(*args))
12940 
12941  def show(self, *args):
12942  r"""show(Typed self, _ostream out=std::cout)"""
12943  return _IMP_core.Typed_show(self, *args)
12944 
12945  @staticmethod
12946  def setup_particle(*args):
12947  r"""
12948  setup_particle(Model m, ParticleIndex pi, ParticleType t) -> Typed
12949  setup_particle(_ParticleAdaptor pa, ParticleType t) -> Typed
12950  """
12951  return _IMP_core.Typed_setup_particle(*args)
12952 
12953  @staticmethod
12954  def get_is_setup(*args):
12955  r"""
12956  get_is_setup(_ParticleAdaptor p) -> bool
12957  get_is_setup(Model m, ParticleIndex pi) -> bool
12958  """
12959  return _IMP_core.Typed_get_is_setup(*args)
12960 
12961  def get_type(self):
12962  r"""get_type(Typed self) -> ParticleType"""
12963  return _IMP_core.Typed_get_type(self)
12964 
12965  def set_type(self, pt):
12966  r"""set_type(Typed self, ParticleType pt)"""
12967  return _IMP_core.Typed_set_type(self, pt)
12968 
12969  def add_attribute(self, *args):
12970  r"""
12971  add_attribute(Typed self, FloatKey k, IMP::Float v, bool opt)
12972  add_attribute(Typed self, FloatKey a0, IMP::Float a1)
12973  add_attribute(Typed self, IntKey a0, IMP::Int a1)
12974  add_attribute(Typed self, FloatsKey a0, IMP::Floats a1)
12975  add_attribute(Typed self, IntsKey a0, IMP::Ints a1)
12976  add_attribute(Typed self, StringKey a0, IMP::String a1)
12977  add_attribute(Typed self, ParticleIndexKey a0, Particle a1)
12978  add_attribute(Typed self, ObjectKey a0, Object a1)
12979  add_attribute(Typed self, SparseFloatKey a0, IMP::Float a1)
12980  add_attribute(Typed self, SparseIntKey a0, IMP::Int a1)
12981  add_attribute(Typed self, SparseStringKey a0, IMP::String a1)
12982  add_attribute(Typed self, SparseParticleIndexKey a0, ParticleIndex a1)
12983  """
12984  return _IMP_core.Typed_add_attribute(self, *args)
12985 
12986  def get_value(self, *args):
12987  r"""
12988  get_value(Typed self, FloatKey a0) -> IMP::Float
12989  get_value(Typed self, IntKey a0) -> IMP::Int
12990  get_value(Typed self, FloatsKey a0) -> IMP::Floats
12991  get_value(Typed self, IntsKey a0) -> IMP::Ints
12992  get_value(Typed self, StringKey a0) -> IMP::String
12993  get_value(Typed self, ParticleIndexKey a0) -> Particle
12994  get_value(Typed self, ObjectKey a0) -> Object
12995  get_value(Typed self, SparseFloatKey a0) -> IMP::Float
12996  get_value(Typed self, SparseIntKey a0) -> IMP::Int
12997  get_value(Typed self, SparseStringKey a0) -> IMP::String
12998  get_value(Typed self, SparseParticleIndexKey a0) -> ParticleIndex
12999  """
13000  return _IMP_core.Typed_get_value(self, *args)
13001 
13002  def set_value(self, *args):
13003  r"""
13004  set_value(Typed self, FloatKey a0, IMP::Float a1)
13005  set_value(Typed self, IntKey a0, IMP::Int a1)
13006  set_value(Typed self, FloatsKey a0, IMP::Floats a1)
13007  set_value(Typed self, IntsKey a0, IMP::Ints a1)
13008  set_value(Typed self, StringKey a0, IMP::String a1)
13009  set_value(Typed self, ParticleIndexKey a0, Particle a1)
13010  set_value(Typed self, ObjectKey a0, Object a1)
13011  set_value(Typed self, SparseFloatKey a0, IMP::Float a1)
13012  set_value(Typed self, SparseIntKey a0, IMP::Int a1)
13013  set_value(Typed self, SparseStringKey a0, IMP::String a1)
13014  set_value(Typed self, SparseParticleIndexKey a0, ParticleIndex a1)
13015  """
13016  return _IMP_core.Typed_set_value(self, *args)
13017 
13018  def remove_attribute(self, *args):
13019  r"""
13020  remove_attribute(Typed self, FloatKey a0)
13021  remove_attribute(Typed self, IntKey a0)
13022  remove_attribute(Typed self, FloatsKey a0)
13023  remove_attribute(Typed self, IntsKey a0)
13024  remove_attribute(Typed self, StringKey a0)
13025  remove_attribute(Typed self, ParticleIndexKey a0)
13026  remove_attribute(Typed self, ObjectKey a0)
13027  remove_attribute(Typed self, SparseFloatKey a0)
13028  remove_attribute(Typed self, SparseIntKey a0)
13029  remove_attribute(Typed self, SparseStringKey a0)
13030  remove_attribute(Typed self, SparseParticleIndexKey a0)
13031  """
13032  return _IMP_core.Typed_remove_attribute(self, *args)
13033 
13034  def has_attribute(self, *args):
13035  r"""
13036  has_attribute(Typed self, FloatKey a0) -> bool
13037  has_attribute(Typed self, IntKey a0) -> bool
13038  has_attribute(Typed self, FloatsKey a0) -> bool
13039  has_attribute(Typed self, IntsKey a0) -> bool
13040  has_attribute(Typed self, StringKey a0) -> bool
13041  has_attribute(Typed self, ParticleIndexKey a0) -> bool
13042  has_attribute(Typed self, ObjectKey a0) -> bool
13043  has_attribute(Typed self, SparseFloatKey a0) -> bool
13044  has_attribute(Typed self, SparseIntKey a0) -> bool
13045  has_attribute(Typed self, SparseStringKey a0) -> bool
13046  has_attribute(Typed self, SparseParticleIndexKey a0) -> bool
13047  """
13048  return _IMP_core.Typed_has_attribute(self, *args)
13049 
13050  def get_derivative(self, a0):
13051  r"""get_derivative(Typed self, FloatKey a0) -> double"""
13052  return _IMP_core.Typed_get_derivative(self, a0)
13053 
13054  def get_name(self):
13055  r"""get_name(Typed self) -> std::string"""
13056  return _IMP_core.Typed_get_name(self)
13057 
13058  def clear_caches(self):
13059  r"""clear_caches(Typed self)"""
13060  return _IMP_core.Typed_clear_caches(self)
13061 
13062  def set_name(self, a0):
13063  r"""set_name(Typed self, std::string a0)"""
13064  return _IMP_core.Typed_set_name(self, a0)
13065 
13066  def set_check_level(self, a0):
13067  r"""set_check_level(Typed self, IMP::CheckLevel a0)"""
13068  return _IMP_core.Typed_set_check_level(self, a0)
13069 
13070  def add_to_derivative(self, a0, a1, a2):
13071  r"""add_to_derivative(Typed self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13072  return _IMP_core.Typed_add_to_derivative(self, a0, a1, a2)
13073 
13074  def set_is_optimized(self, a0, a1):
13075  r"""set_is_optimized(Typed self, FloatKey a0, bool a1)"""
13076  return _IMP_core.Typed_set_is_optimized(self, a0, a1)
13077 
13078  def get_is_optimized(self, a0):
13079  r"""get_is_optimized(Typed self, FloatKey a0) -> bool"""
13080  return _IMP_core.Typed_get_is_optimized(self, a0)
13081 
13082  def get_check_level(self):
13083  r"""get_check_level(Typed self) -> IMP::CheckLevel"""
13084  return _IMP_core.Typed_get_check_level(self)
13085 
13086  def __eq__(self, *args):
13087  r"""
13088  __eq__(Typed self, Typed o) -> bool
13089  __eq__(Typed self, Particle d) -> bool
13090  """
13091  return _IMP_core.Typed___eq__(self, *args)
13092 
13093  def __ne__(self, *args):
13094  r"""
13095  __ne__(Typed self, Typed o) -> bool
13096  __ne__(Typed self, Particle d) -> bool
13097  """
13098  return _IMP_core.Typed___ne__(self, *args)
13099 
13100  def __le__(self, *args):
13101  r"""
13102  __le__(Typed self, Typed o) -> bool
13103  __le__(Typed self, Particle d) -> bool
13104  """
13105  return _IMP_core.Typed___le__(self, *args)
13106 
13107  def __lt__(self, *args):
13108  r"""
13109  __lt__(Typed self, Typed o) -> bool
13110  __lt__(Typed self, Particle d) -> bool
13111  """
13112  return _IMP_core.Typed___lt__(self, *args)
13113 
13114  def __ge__(self, *args):
13115  r"""
13116  __ge__(Typed self, Typed o) -> bool
13117  __ge__(Typed self, Particle d) -> bool
13118  """
13119  return _IMP_core.Typed___ge__(self, *args)
13120 
13121  def __gt__(self, *args):
13122  r"""
13123  __gt__(Typed self, Typed o) -> bool
13124  __gt__(Typed self, Particle d) -> bool
13125  """
13126  return _IMP_core.Typed___gt__(self, *args)
13127 
13128  def __hash__(self):
13129  r"""__hash__(Typed self) -> std::size_t"""
13130  return _IMP_core.Typed___hash__(self)
13131 
13132  def __str__(self):
13133  r"""__str__(Typed self) -> std::string"""
13134  return _IMP_core.Typed___str__(self)
13135 
13136  def __repr__(self):
13137  r"""__repr__(Typed self) -> std::string"""
13138  return _IMP_core.Typed___repr__(self)
13139 
13140  def _get_as_binary(self):
13141  r"""_get_as_binary(Typed self) -> PyObject *"""
13142  return _IMP_core.Typed__get_as_binary(self)
13143 
13144  def _set_from_binary(self, p):
13145  r"""_set_from_binary(Typed self, PyObject * p)"""
13146  return _IMP_core.Typed__set_from_binary(self, p)
13147 
13148  def __getstate__(self):
13149  p = self._get_as_binary()
13150  if len(self.__dict__) > 1:
13151  d = self.__dict__.copy()
13152  del d['this']
13153  p = (d, p)
13154  return p
13155 
13156  def __setstate__(self, p):
13157  if not hasattr(self, 'this'):
13158  self.__init__()
13159  if isinstance(p, tuple):
13160  d, p = p
13161  self.__dict__.update(d)
13162  return self._set_from_binary(p)
13163 
13164  __swig_destroy__ = _IMP_core.delete_Typed
13165 
13166 # Register Typed in _IMP_core:
13167 _IMP_core.Typed_swigregister(Typed)
13168 
13169 def __lshift__(*args):
13170  r"""
13171  __lshift__(_ostream out, XYZ n) -> _ostream
13172  __lshift__(_ostream out, XYZR n) -> _ostream
13173  __lshift__(_ostream out, Direction n) -> _ostream
13174  __lshift__(_ostream out, DirectionAngle n) -> _ostream
13175  __lshift__(_ostream out, Surface n) -> _ostream
13176  __lshift__(_ostream out, Centroid n) -> _ostream
13177  __lshift__(_ostream out, Cover n) -> _ostream
13178  __lshift__(_ostream out, Reference n) -> _ostream
13179  __lshift__(_ostream out, RigidMember n) -> _ostream
13180  __lshift__(_ostream out, RigidBody n) -> _ostream
13181  __lshift__(_ostream out, Gaussian n) -> _ostream
13182  __lshift__(_ostream out, Typed n) -> _ostream
13183  """
13184  return _IMP_core.__lshift__(*args)
13185 class WriteRestraintScoresOptimizerState(IMP.OptimizerState):
13186  r"""Proxy of C++ IMP::core::WriteRestraintScoresOptimizerState class."""
13187 
13188  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13189 
13190  def __init__(self, rs, out):
13191  r"""__init__(WriteRestraintScoresOptimizerState self, IMP::Restraints const & rs, TextOutput out) -> WriteRestraintScoresOptimizerState"""
13192  _IMP_core.WriteRestraintScoresOptimizerState_swiginit(self, _IMP_core.new_WriteRestraintScoresOptimizerState(rs, out))
13193 
13194  def get_version_info(self):
13195  r"""get_version_info(WriteRestraintScoresOptimizerState self) -> VersionInfo"""
13196  return _IMP_core.WriteRestraintScoresOptimizerState_get_version_info(self)
13197  __swig_destroy__ = _IMP_core.delete_WriteRestraintScoresOptimizerState
13198 
13199  def __str__(self):
13200  r"""__str__(WriteRestraintScoresOptimizerState self) -> std::string"""
13201  return _IMP_core.WriteRestraintScoresOptimizerState___str__(self)
13202 
13203  def __repr__(self):
13204  r"""__repr__(WriteRestraintScoresOptimizerState self) -> std::string"""
13205  return _IMP_core.WriteRestraintScoresOptimizerState___repr__(self)
13206 
13207  @staticmethod
13208  def get_from(o):
13209  return _object_cast_to_WriteRestraintScoresOptimizerState(o)
13210 
13211 
13212 # Register WriteRestraintScoresOptimizerState in _IMP_core:
13213 _IMP_core.WriteRestraintScoresOptimizerState_swigregister(WriteRestraintScoresOptimizerState)
13214 
13215 def assign_blame(rs, ps, attribute):
13216  r"""assign_blame(IMP::RestraintsTemp const & rs, IMP::ParticlesTemp const & ps, FloatKey attribute)"""
13217  return _IMP_core.assign_blame(rs, ps, attribute)
13218 
13219 def create_blame_geometries(*args):
13220  r"""create_blame_geometries(IMP::RestraintsTemp const & rs, IMP::ParticlesTemp const & ps, double max=NO_MAX, std::string name=std::string()) -> IMP::display::Geometries"""
13221  return _IMP_core.create_blame_geometries(*args)
13222 class MultipleBinormalRestraint(IMP.Restraint):
13223  r"""Proxy of C++ IMP::core::MultipleBinormalRestraint class."""
13224 
13225  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13226 
13227  def __init__(self, m, q1, q2):
13228  r"""__init__(MultipleBinormalRestraint self, Model m, IMP::ParticleIndexQuad const & q1, IMP::ParticleIndexQuad const & q2) -> MultipleBinormalRestraint"""
13229  _IMP_core.MultipleBinormalRestraint_swiginit(self, _IMP_core.new_MultipleBinormalRestraint(m, q1, q2))
13230 
13231  def add_term(self, term):
13232  r"""add_term(MultipleBinormalRestraint self, BinormalTerm term)"""
13233  return _IMP_core.MultipleBinormalRestraint_add_term(self, term)
13234 
13235  def do_get_inputs(self):
13236  r"""do_get_inputs(MultipleBinormalRestraint self) -> IMP::ModelObjectsTemp"""
13237  return _IMP_core.MultipleBinormalRestraint_do_get_inputs(self)
13238 
13239  def get_version_info(self):
13240  r"""get_version_info(MultipleBinormalRestraint self) -> VersionInfo"""
13241  return _IMP_core.MultipleBinormalRestraint_get_version_info(self)
13242  __swig_destroy__ = _IMP_core.delete_MultipleBinormalRestraint
13243 
13244  def __str__(self):
13245  r"""__str__(MultipleBinormalRestraint self) -> std::string"""
13246  return _IMP_core.MultipleBinormalRestraint___str__(self)
13247 
13248  def __repr__(self):
13249  r"""__repr__(MultipleBinormalRestraint self) -> std::string"""
13250  return _IMP_core.MultipleBinormalRestraint___repr__(self)
13251 
13252  @staticmethod
13253  def get_from(o):
13254  return _object_cast_to_MultipleBinormalRestraint(o)
13255 
13256 
13257 # Register MultipleBinormalRestraint in _IMP_core:
13258 _IMP_core.MultipleBinormalRestraint_swigregister(MultipleBinormalRestraint)
13259 class BinormalTerm(object):
13260  r"""Proxy of C++ IMP::core::BinormalTerm class."""
13261 
13262  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13263 
13264  def __init__(self):
13265  r"""__init__(BinormalTerm self) -> BinormalTerm"""
13266  _IMP_core.BinormalTerm_swiginit(self, _IMP_core.new_BinormalTerm())
13267 
13268  def set_correlation(self, correlation):
13269  r"""set_correlation(BinormalTerm self, double correlation)"""
13270  return _IMP_core.BinormalTerm_set_correlation(self, correlation)
13271 
13272  def set_weight(self, weight):
13273  r"""set_weight(BinormalTerm self, double weight)"""
13274  return _IMP_core.BinormalTerm_set_weight(self, weight)
13275 
13276  def set_means(self, means):
13277  r"""set_means(BinormalTerm self, IMP::FloatPair means)"""
13278  return _IMP_core.BinormalTerm_set_means(self, means)
13279 
13280  def set_standard_deviations(self, stdevs):
13281  r"""set_standard_deviations(BinormalTerm self, IMP::FloatPair stdevs)"""
13282  return _IMP_core.BinormalTerm_set_standard_deviations(self, stdevs)
13283 
13284  def show(self, *args):
13285  r"""show(BinormalTerm self, _ostream out=std::cout)"""
13286  return _IMP_core.BinormalTerm_show(self, *args)
13287 
13288  def __str__(self):
13289  r"""__str__(BinormalTerm self) -> std::string"""
13290  return _IMP_core.BinormalTerm___str__(self)
13291 
13292  def __repr__(self):
13293  r"""__repr__(BinormalTerm self) -> std::string"""
13294  return _IMP_core.BinormalTerm___repr__(self)
13295 
13296  def _get_as_binary(self):
13297  r"""_get_as_binary(BinormalTerm self) -> PyObject *"""
13298  return _IMP_core.BinormalTerm__get_as_binary(self)
13299 
13300  def _set_from_binary(self, p):
13301  r"""_set_from_binary(BinormalTerm self, PyObject * p)"""
13302  return _IMP_core.BinormalTerm__set_from_binary(self, p)
13303 
13304  def __getstate__(self):
13305  p = self._get_as_binary()
13306  if len(self.__dict__) > 1:
13307  d = self.__dict__.copy()
13308  del d['this']
13309  p = (d, p)
13310  return p
13311 
13312  def __setstate__(self, p):
13313  if not hasattr(self, 'this'):
13314  self.__init__()
13315  if isinstance(p, tuple):
13316  d, p = p
13317  self.__dict__.update(d)
13318  return self._set_from_binary(p)
13319 
13320  __swig_destroy__ = _IMP_core.delete_BinormalTerm
13321 
13322 # Register BinormalTerm in _IMP_core:
13323 _IMP_core.BinormalTerm_swigregister(BinormalTerm)
13324 class Provenance(IMP.Decorator):
13325  r"""Proxy of C++ IMP::core::Provenance class."""
13326 
13327  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13328 
13329  def get_previous(self):
13330  r"""get_previous(Provenance self) -> Provenance"""
13331  return _IMP_core.Provenance_get_previous(self)
13332 
13333  def set_previous(self, p):
13334  r"""set_previous(Provenance self, Provenance p)"""
13335  return _IMP_core.Provenance_set_previous(self, p)
13336 
13337  def __init__(self, *args):
13338  r"""
13339  __init__(Provenance self) -> Provenance
13340  __init__(Provenance self, Model m, ParticleIndex id) -> Provenance
13341  __init__(Provenance self, _ParticleAdaptor d) -> Provenance
13342  """
13343  _IMP_core.Provenance_swiginit(self, _IMP_core.new_Provenance(*args))
13344 
13345  @staticmethod
13346  def get_is_setup(*args):
13347  r"""
13348  get_is_setup(Model m, ParticleIndex pi) -> bool
13349  get_is_setup(_ParticleAdaptor p) -> bool
13350  """
13351  return _IMP_core.Provenance_get_is_setup(*args)
13352 
13353  def show(self, *args):
13354  r"""show(Provenance self, _ostream out=std::cout)"""
13355  return _IMP_core.Provenance_show(self, *args)
13356 
13357  @staticmethod
13358  def setup_particle(*args):
13359  r"""
13360  setup_particle(Model m, ParticleIndex pi) -> Provenance
13361  setup_particle(_ParticleAdaptor pa) -> Provenance
13362  """
13363  return _IMP_core.Provenance_setup_particle(*args)
13364 
13365  def add_attribute(self, *args):
13366  r"""
13367  add_attribute(Provenance self, FloatKey k, IMP::Float v, bool opt)
13368  add_attribute(Provenance self, FloatKey a0, IMP::Float a1)
13369  add_attribute(Provenance self, IntKey a0, IMP::Int a1)
13370  add_attribute(Provenance self, FloatsKey a0, IMP::Floats a1)
13371  add_attribute(Provenance self, IntsKey a0, IMP::Ints a1)
13372  add_attribute(Provenance self, StringKey a0, IMP::String a1)
13373  add_attribute(Provenance self, ParticleIndexKey a0, Particle a1)
13374  add_attribute(Provenance self, ObjectKey a0, Object a1)
13375  add_attribute(Provenance self, SparseFloatKey a0, IMP::Float a1)
13376  add_attribute(Provenance self, SparseIntKey a0, IMP::Int a1)
13377  add_attribute(Provenance self, SparseStringKey a0, IMP::String a1)
13378  add_attribute(Provenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13379  """
13380  return _IMP_core.Provenance_add_attribute(self, *args)
13381 
13382  def get_value(self, *args):
13383  r"""
13384  get_value(Provenance self, FloatKey a0) -> IMP::Float
13385  get_value(Provenance self, IntKey a0) -> IMP::Int
13386  get_value(Provenance self, FloatsKey a0) -> IMP::Floats
13387  get_value(Provenance self, IntsKey a0) -> IMP::Ints
13388  get_value(Provenance self, StringKey a0) -> IMP::String
13389  get_value(Provenance self, ParticleIndexKey a0) -> Particle
13390  get_value(Provenance self, ObjectKey a0) -> Object
13391  get_value(Provenance self, SparseFloatKey a0) -> IMP::Float
13392  get_value(Provenance self, SparseIntKey a0) -> IMP::Int
13393  get_value(Provenance self, SparseStringKey a0) -> IMP::String
13394  get_value(Provenance self, SparseParticleIndexKey a0) -> ParticleIndex
13395  """
13396  return _IMP_core.Provenance_get_value(self, *args)
13397 
13398  def set_value(self, *args):
13399  r"""
13400  set_value(Provenance self, FloatKey a0, IMP::Float a1)
13401  set_value(Provenance self, IntKey a0, IMP::Int a1)
13402  set_value(Provenance self, FloatsKey a0, IMP::Floats a1)
13403  set_value(Provenance self, IntsKey a0, IMP::Ints a1)
13404  set_value(Provenance self, StringKey a0, IMP::String a1)
13405  set_value(Provenance self, ParticleIndexKey a0, Particle a1)
13406  set_value(Provenance self, ObjectKey a0, Object a1)
13407  set_value(Provenance self, SparseFloatKey a0, IMP::Float a1)
13408  set_value(Provenance self, SparseIntKey a0, IMP::Int a1)
13409  set_value(Provenance self, SparseStringKey a0, IMP::String a1)
13410  set_value(Provenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13411  """
13412  return _IMP_core.Provenance_set_value(self, *args)
13413 
13414  def remove_attribute(self, *args):
13415  r"""
13416  remove_attribute(Provenance self, FloatKey a0)
13417  remove_attribute(Provenance self, IntKey a0)
13418  remove_attribute(Provenance self, FloatsKey a0)
13419  remove_attribute(Provenance self, IntsKey a0)
13420  remove_attribute(Provenance self, StringKey a0)
13421  remove_attribute(Provenance self, ParticleIndexKey a0)
13422  remove_attribute(Provenance self, ObjectKey a0)
13423  remove_attribute(Provenance self, SparseFloatKey a0)
13424  remove_attribute(Provenance self, SparseIntKey a0)
13425  remove_attribute(Provenance self, SparseStringKey a0)
13426  remove_attribute(Provenance self, SparseParticleIndexKey a0)
13427  """
13428  return _IMP_core.Provenance_remove_attribute(self, *args)
13429 
13430  def has_attribute(self, *args):
13431  r"""
13432  has_attribute(Provenance self, FloatKey a0) -> bool
13433  has_attribute(Provenance self, IntKey a0) -> bool
13434  has_attribute(Provenance self, FloatsKey a0) -> bool
13435  has_attribute(Provenance self, IntsKey a0) -> bool
13436  has_attribute(Provenance self, StringKey a0) -> bool
13437  has_attribute(Provenance self, ParticleIndexKey a0) -> bool
13438  has_attribute(Provenance self, ObjectKey a0) -> bool
13439  has_attribute(Provenance self, SparseFloatKey a0) -> bool
13440  has_attribute(Provenance self, SparseIntKey a0) -> bool
13441  has_attribute(Provenance self, SparseStringKey a0) -> bool
13442  has_attribute(Provenance self, SparseParticleIndexKey a0) -> bool
13443  """
13444  return _IMP_core.Provenance_has_attribute(self, *args)
13445 
13446  def get_derivative(self, a0):
13447  r"""get_derivative(Provenance self, FloatKey a0) -> double"""
13448  return _IMP_core.Provenance_get_derivative(self, a0)
13449 
13450  def get_name(self):
13451  r"""get_name(Provenance self) -> std::string"""
13452  return _IMP_core.Provenance_get_name(self)
13453 
13454  def clear_caches(self):
13455  r"""clear_caches(Provenance self)"""
13456  return _IMP_core.Provenance_clear_caches(self)
13457 
13458  def set_name(self, a0):
13459  r"""set_name(Provenance self, std::string a0)"""
13460  return _IMP_core.Provenance_set_name(self, a0)
13461 
13462  def set_check_level(self, a0):
13463  r"""set_check_level(Provenance self, IMP::CheckLevel a0)"""
13464  return _IMP_core.Provenance_set_check_level(self, a0)
13465 
13466  def add_to_derivative(self, a0, a1, a2):
13467  r"""add_to_derivative(Provenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13468  return _IMP_core.Provenance_add_to_derivative(self, a0, a1, a2)
13469 
13470  def set_is_optimized(self, a0, a1):
13471  r"""set_is_optimized(Provenance self, FloatKey a0, bool a1)"""
13472  return _IMP_core.Provenance_set_is_optimized(self, a0, a1)
13473 
13474  def get_is_optimized(self, a0):
13475  r"""get_is_optimized(Provenance self, FloatKey a0) -> bool"""
13476  return _IMP_core.Provenance_get_is_optimized(self, a0)
13477 
13478  def get_check_level(self):
13479  r"""get_check_level(Provenance self) -> IMP::CheckLevel"""
13480  return _IMP_core.Provenance_get_check_level(self)
13481 
13482  def __eq__(self, *args):
13483  r"""
13484  __eq__(Provenance self, Provenance o) -> bool
13485  __eq__(Provenance self, Particle d) -> bool
13486  """
13487  return _IMP_core.Provenance___eq__(self, *args)
13488 
13489  def __ne__(self, *args):
13490  r"""
13491  __ne__(Provenance self, Provenance o) -> bool
13492  __ne__(Provenance self, Particle d) -> bool
13493  """
13494  return _IMP_core.Provenance___ne__(self, *args)
13495 
13496  def __le__(self, *args):
13497  r"""
13498  __le__(Provenance self, Provenance o) -> bool
13499  __le__(Provenance self, Particle d) -> bool
13500  """
13501  return _IMP_core.Provenance___le__(self, *args)
13502 
13503  def __lt__(self, *args):
13504  r"""
13505  __lt__(Provenance self, Provenance o) -> bool
13506  __lt__(Provenance self, Particle d) -> bool
13507  """
13508  return _IMP_core.Provenance___lt__(self, *args)
13509 
13510  def __ge__(self, *args):
13511  r"""
13512  __ge__(Provenance self, Provenance o) -> bool
13513  __ge__(Provenance self, Particle d) -> bool
13514  """
13515  return _IMP_core.Provenance___ge__(self, *args)
13516 
13517  def __gt__(self, *args):
13518  r"""
13519  __gt__(Provenance self, Provenance o) -> bool
13520  __gt__(Provenance self, Particle d) -> bool
13521  """
13522  return _IMP_core.Provenance___gt__(self, *args)
13523 
13524  def __hash__(self):
13525  r"""__hash__(Provenance self) -> std::size_t"""
13526  return _IMP_core.Provenance___hash__(self)
13527 
13528  def __str__(self):
13529  r"""__str__(Provenance self) -> std::string"""
13530  return _IMP_core.Provenance___str__(self)
13531 
13532  def __repr__(self):
13533  r"""__repr__(Provenance self) -> std::string"""
13534  return _IMP_core.Provenance___repr__(self)
13535 
13536  def _get_as_binary(self):
13537  r"""_get_as_binary(Provenance self) -> PyObject *"""
13538  return _IMP_core.Provenance__get_as_binary(self)
13539 
13540  def _set_from_binary(self, p):
13541  r"""_set_from_binary(Provenance self, PyObject * p)"""
13542  return _IMP_core.Provenance__set_from_binary(self, p)
13543 
13544  def __getstate__(self):
13545  p = self._get_as_binary()
13546  if len(self.__dict__) > 1:
13547  d = self.__dict__.copy()
13548  del d['this']
13549  p = (d, p)
13550  return p
13551 
13552  def __setstate__(self, p):
13553  if not hasattr(self, 'this'):
13554  self.__init__()
13555  if isinstance(p, tuple):
13556  d, p = p
13557  self.__dict__.update(d)
13558  return self._set_from_binary(p)
13559 
13560  __swig_destroy__ = _IMP_core.delete_Provenance
13561 
13562 # Register Provenance in _IMP_core:
13563 _IMP_core.Provenance_swigregister(Provenance)
13564 class StructureProvenance(Provenance):
13565  r"""Proxy of C++ IMP::core::StructureProvenance class."""
13566 
13567  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13568 
13569  def set_filename(self, filename):
13570  r"""set_filename(StructureProvenance self, std::string filename)"""
13571  return _IMP_core.StructureProvenance_set_filename(self, filename)
13572 
13573  def get_filename(self):
13574  r"""get_filename(StructureProvenance self) -> std::string"""
13575  return _IMP_core.StructureProvenance_get_filename(self)
13576 
13577  def set_chain_id(self, chain_id):
13578  r"""set_chain_id(StructureProvenance self, std::string chain_id)"""
13579  return _IMP_core.StructureProvenance_set_chain_id(self, chain_id)
13580 
13581  def get_chain_id(self):
13582  r"""get_chain_id(StructureProvenance self) -> std::string"""
13583  return _IMP_core.StructureProvenance_get_chain_id(self)
13584 
13585  def set_residue_offset(self, residue_offset):
13586  r"""set_residue_offset(StructureProvenance self, int residue_offset)"""
13587  return _IMP_core.StructureProvenance_set_residue_offset(self, residue_offset)
13588 
13589  def get_residue_offset(self):
13590  r"""get_residue_offset(StructureProvenance self) -> int"""
13591  return _IMP_core.StructureProvenance_get_residue_offset(self)
13592 
13593  def __init__(self, *args):
13594  r"""
13595  __init__(StructureProvenance self) -> StructureProvenance
13596  __init__(StructureProvenance self, Model m, ParticleIndex id) -> StructureProvenance
13597  __init__(StructureProvenance self, _ParticleAdaptor d) -> StructureProvenance
13598  """
13599  _IMP_core.StructureProvenance_swiginit(self, _IMP_core.new_StructureProvenance(*args))
13600 
13601  @staticmethod
13602  def get_is_setup(*args):
13603  r"""
13604  get_is_setup(Model m, ParticleIndex pi) -> bool
13605  get_is_setup(_ParticleAdaptor p) -> bool
13606  """
13607  return _IMP_core.StructureProvenance_get_is_setup(*args)
13608 
13609  def show(self, *args):
13610  r"""show(StructureProvenance self, _ostream out=std::cout)"""
13611  return _IMP_core.StructureProvenance_show(self, *args)
13612 
13613  @staticmethod
13614  def setup_particle(*args):
13615  r"""
13616  setup_particle(Model m, ParticleIndex pi, std::string filename, std::string chain_id, int residue_offset) -> StructureProvenance
13617  setup_particle(_ParticleAdaptor pa, std::string filename, std::string chain_id, int residue_offset) -> StructureProvenance
13618  setup_particle(Model m, ParticleIndex pi, std::string filename, std::string chain_id) -> StructureProvenance
13619  setup_particle(_ParticleAdaptor pa, std::string filename, std::string chain_id) -> StructureProvenance
13620  setup_particle(Model m, ParticleIndex pi, StructureProvenance o) -> StructureProvenance
13621  setup_particle(_ParticleAdaptor pa, StructureProvenance o) -> StructureProvenance
13622  """
13623  return _IMP_core.StructureProvenance_setup_particle(*args)
13624 
13625  def add_attribute(self, *args):
13626  r"""
13627  add_attribute(StructureProvenance self, FloatKey k, IMP::Float v, bool opt)
13628  add_attribute(StructureProvenance self, FloatKey a0, IMP::Float a1)
13629  add_attribute(StructureProvenance self, IntKey a0, IMP::Int a1)
13630  add_attribute(StructureProvenance self, FloatsKey a0, IMP::Floats a1)
13631  add_attribute(StructureProvenance self, IntsKey a0, IMP::Ints a1)
13632  add_attribute(StructureProvenance self, StringKey a0, IMP::String a1)
13633  add_attribute(StructureProvenance self, ParticleIndexKey a0, Particle a1)
13634  add_attribute(StructureProvenance self, ObjectKey a0, Object a1)
13635  add_attribute(StructureProvenance self, SparseFloatKey a0, IMP::Float a1)
13636  add_attribute(StructureProvenance self, SparseIntKey a0, IMP::Int a1)
13637  add_attribute(StructureProvenance self, SparseStringKey a0, IMP::String a1)
13638  add_attribute(StructureProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13639  """
13640  return _IMP_core.StructureProvenance_add_attribute(self, *args)
13641 
13642  def get_value(self, *args):
13643  r"""
13644  get_value(StructureProvenance self, FloatKey a0) -> IMP::Float
13645  get_value(StructureProvenance self, IntKey a0) -> IMP::Int
13646  get_value(StructureProvenance self, FloatsKey a0) -> IMP::Floats
13647  get_value(StructureProvenance self, IntsKey a0) -> IMP::Ints
13648  get_value(StructureProvenance self, StringKey a0) -> IMP::String
13649  get_value(StructureProvenance self, ParticleIndexKey a0) -> Particle
13650  get_value(StructureProvenance self, ObjectKey a0) -> Object
13651  get_value(StructureProvenance self, SparseFloatKey a0) -> IMP::Float
13652  get_value(StructureProvenance self, SparseIntKey a0) -> IMP::Int
13653  get_value(StructureProvenance self, SparseStringKey a0) -> IMP::String
13654  get_value(StructureProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
13655  """
13656  return _IMP_core.StructureProvenance_get_value(self, *args)
13657 
13658  def set_value(self, *args):
13659  r"""
13660  set_value(StructureProvenance self, FloatKey a0, IMP::Float a1)
13661  set_value(StructureProvenance self, IntKey a0, IMP::Int a1)
13662  set_value(StructureProvenance self, FloatsKey a0, IMP::Floats a1)
13663  set_value(StructureProvenance self, IntsKey a0, IMP::Ints a1)
13664  set_value(StructureProvenance self, StringKey a0, IMP::String a1)
13665  set_value(StructureProvenance self, ParticleIndexKey a0, Particle a1)
13666  set_value(StructureProvenance self, ObjectKey a0, Object a1)
13667  set_value(StructureProvenance self, SparseFloatKey a0, IMP::Float a1)
13668  set_value(StructureProvenance self, SparseIntKey a0, IMP::Int a1)
13669  set_value(StructureProvenance self, SparseStringKey a0, IMP::String a1)
13670  set_value(StructureProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13671  """
13672  return _IMP_core.StructureProvenance_set_value(self, *args)
13673 
13674  def remove_attribute(self, *args):
13675  r"""
13676  remove_attribute(StructureProvenance self, FloatKey a0)
13677  remove_attribute(StructureProvenance self, IntKey a0)
13678  remove_attribute(StructureProvenance self, FloatsKey a0)
13679  remove_attribute(StructureProvenance self, IntsKey a0)
13680  remove_attribute(StructureProvenance self, StringKey a0)
13681  remove_attribute(StructureProvenance self, ParticleIndexKey a0)
13682  remove_attribute(StructureProvenance self, ObjectKey a0)
13683  remove_attribute(StructureProvenance self, SparseFloatKey a0)
13684  remove_attribute(StructureProvenance self, SparseIntKey a0)
13685  remove_attribute(StructureProvenance self, SparseStringKey a0)
13686  remove_attribute(StructureProvenance self, SparseParticleIndexKey a0)
13687  """
13688  return _IMP_core.StructureProvenance_remove_attribute(self, *args)
13689 
13690  def has_attribute(self, *args):
13691  r"""
13692  has_attribute(StructureProvenance self, FloatKey a0) -> bool
13693  has_attribute(StructureProvenance self, IntKey a0) -> bool
13694  has_attribute(StructureProvenance self, FloatsKey a0) -> bool
13695  has_attribute(StructureProvenance self, IntsKey a0) -> bool
13696  has_attribute(StructureProvenance self, StringKey a0) -> bool
13697  has_attribute(StructureProvenance self, ParticleIndexKey a0) -> bool
13698  has_attribute(StructureProvenance self, ObjectKey a0) -> bool
13699  has_attribute(StructureProvenance self, SparseFloatKey a0) -> bool
13700  has_attribute(StructureProvenance self, SparseIntKey a0) -> bool
13701  has_attribute(StructureProvenance self, SparseStringKey a0) -> bool
13702  has_attribute(StructureProvenance self, SparseParticleIndexKey a0) -> bool
13703  """
13704  return _IMP_core.StructureProvenance_has_attribute(self, *args)
13705 
13706  def get_derivative(self, a0):
13707  r"""get_derivative(StructureProvenance self, FloatKey a0) -> double"""
13708  return _IMP_core.StructureProvenance_get_derivative(self, a0)
13709 
13710  def get_name(self):
13711  r"""get_name(StructureProvenance self) -> std::string"""
13712  return _IMP_core.StructureProvenance_get_name(self)
13713 
13714  def clear_caches(self):
13715  r"""clear_caches(StructureProvenance self)"""
13716  return _IMP_core.StructureProvenance_clear_caches(self)
13717 
13718  def set_name(self, a0):
13719  r"""set_name(StructureProvenance self, std::string a0)"""
13720  return _IMP_core.StructureProvenance_set_name(self, a0)
13721 
13722  def set_check_level(self, a0):
13723  r"""set_check_level(StructureProvenance self, IMP::CheckLevel a0)"""
13724  return _IMP_core.StructureProvenance_set_check_level(self, a0)
13725 
13726  def add_to_derivative(self, a0, a1, a2):
13727  r"""add_to_derivative(StructureProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13728  return _IMP_core.StructureProvenance_add_to_derivative(self, a0, a1, a2)
13729 
13730  def set_is_optimized(self, a0, a1):
13731  r"""set_is_optimized(StructureProvenance self, FloatKey a0, bool a1)"""
13732  return _IMP_core.StructureProvenance_set_is_optimized(self, a0, a1)
13733 
13734  def get_is_optimized(self, a0):
13735  r"""get_is_optimized(StructureProvenance self, FloatKey a0) -> bool"""
13736  return _IMP_core.StructureProvenance_get_is_optimized(self, a0)
13737 
13738  def get_check_level(self):
13739  r"""get_check_level(StructureProvenance self) -> IMP::CheckLevel"""
13740  return _IMP_core.StructureProvenance_get_check_level(self)
13741 
13742  def __eq__(self, *args):
13743  r"""
13744  __eq__(StructureProvenance self, StructureProvenance o) -> bool
13745  __eq__(StructureProvenance self, Particle d) -> bool
13746  """
13747  return _IMP_core.StructureProvenance___eq__(self, *args)
13748 
13749  def __ne__(self, *args):
13750  r"""
13751  __ne__(StructureProvenance self, StructureProvenance o) -> bool
13752  __ne__(StructureProvenance self, Particle d) -> bool
13753  """
13754  return _IMP_core.StructureProvenance___ne__(self, *args)
13755 
13756  def __le__(self, *args):
13757  r"""
13758  __le__(StructureProvenance self, StructureProvenance o) -> bool
13759  __le__(StructureProvenance self, Particle d) -> bool
13760  """
13761  return _IMP_core.StructureProvenance___le__(self, *args)
13762 
13763  def __lt__(self, *args):
13764  r"""
13765  __lt__(StructureProvenance self, StructureProvenance o) -> bool
13766  __lt__(StructureProvenance self, Particle d) -> bool
13767  """
13768  return _IMP_core.StructureProvenance___lt__(self, *args)
13769 
13770  def __ge__(self, *args):
13771  r"""
13772  __ge__(StructureProvenance self, StructureProvenance o) -> bool
13773  __ge__(StructureProvenance self, Particle d) -> bool
13774  """
13775  return _IMP_core.StructureProvenance___ge__(self, *args)
13776 
13777  def __gt__(self, *args):
13778  r"""
13779  __gt__(StructureProvenance self, StructureProvenance o) -> bool
13780  __gt__(StructureProvenance self, Particle d) -> bool
13781  """
13782  return _IMP_core.StructureProvenance___gt__(self, *args)
13783 
13784  def __hash__(self):
13785  r"""__hash__(StructureProvenance self) -> std::size_t"""
13786  return _IMP_core.StructureProvenance___hash__(self)
13787 
13788  def __str__(self):
13789  r"""__str__(StructureProvenance self) -> std::string"""
13790  return _IMP_core.StructureProvenance___str__(self)
13791 
13792  def __repr__(self):
13793  r"""__repr__(StructureProvenance self) -> std::string"""
13794  return _IMP_core.StructureProvenance___repr__(self)
13795 
13796  def _get_as_binary(self):
13797  r"""_get_as_binary(StructureProvenance self) -> PyObject *"""
13798  return _IMP_core.StructureProvenance__get_as_binary(self)
13799 
13800  def _set_from_binary(self, p):
13801  r"""_set_from_binary(StructureProvenance self, PyObject * p)"""
13802  return _IMP_core.StructureProvenance__set_from_binary(self, p)
13803 
13804  def __getstate__(self):
13805  p = self._get_as_binary()
13806  if len(self.__dict__) > 1:
13807  d = self.__dict__.copy()
13808  del d['this']
13809  p = (d, p)
13810  return p
13811 
13812  def __setstate__(self, p):
13813  if not hasattr(self, 'this'):
13814  self.__init__()
13815  if isinstance(p, tuple):
13816  d, p = p
13817  self.__dict__.update(d)
13818  return self._set_from_binary(p)
13819 
13820  __swig_destroy__ = _IMP_core.delete_StructureProvenance
13821 
13822 # Register StructureProvenance in _IMP_core:
13823 _IMP_core.StructureProvenance_swigregister(StructureProvenance)
13824 class SampleProvenance(Provenance):
13825  r"""Proxy of C++ IMP::core::SampleProvenance class."""
13826 
13827  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13828 
13829  def set_method(self, method):
13830  r"""set_method(SampleProvenance self, std::string method)"""
13831  return _IMP_core.SampleProvenance_set_method(self, method)
13832 
13833  def get_method(self):
13834  r"""get_method(SampleProvenance self) -> std::string"""
13835  return _IMP_core.SampleProvenance_get_method(self)
13836 
13837  def set_number_of_frames(self, frames):
13838  r"""set_number_of_frames(SampleProvenance self, int frames)"""
13839  return _IMP_core.SampleProvenance_set_number_of_frames(self, frames)
13840 
13841  def get_number_of_frames(self):
13842  r"""get_number_of_frames(SampleProvenance self) -> int"""
13843  return _IMP_core.SampleProvenance_get_number_of_frames(self)
13844 
13845  def set_number_of_iterations(self, iterations):
13846  r"""set_number_of_iterations(SampleProvenance self, int iterations)"""
13847  return _IMP_core.SampleProvenance_set_number_of_iterations(self, iterations)
13848 
13849  def get_number_of_iterations(self):
13850  r"""get_number_of_iterations(SampleProvenance self) -> int"""
13851  return _IMP_core.SampleProvenance_get_number_of_iterations(self)
13852 
13853  def set_number_of_replicas(self, replicas):
13854  r"""set_number_of_replicas(SampleProvenance self, int replicas)"""
13855  return _IMP_core.SampleProvenance_set_number_of_replicas(self, replicas)
13856 
13857  def get_number_of_replicas(self):
13858  r"""get_number_of_replicas(SampleProvenance self) -> int"""
13859  return _IMP_core.SampleProvenance_get_number_of_replicas(self)
13860 
13861  def __init__(self, *args):
13862  r"""
13863  __init__(SampleProvenance self) -> SampleProvenance
13864  __init__(SampleProvenance self, Model m, ParticleIndex id) -> SampleProvenance
13865  __init__(SampleProvenance self, _ParticleAdaptor d) -> SampleProvenance
13866  """
13867  _IMP_core.SampleProvenance_swiginit(self, _IMP_core.new_SampleProvenance(*args))
13868 
13869  @staticmethod
13870  def get_is_setup(*args):
13871  r"""
13872  get_is_setup(Model m, ParticleIndex pi) -> bool
13873  get_is_setup(_ParticleAdaptor p) -> bool
13874  """
13875  return _IMP_core.SampleProvenance_get_is_setup(*args)
13876 
13877  def show(self, *args):
13878  r"""show(SampleProvenance self, _ostream out=std::cout)"""
13879  return _IMP_core.SampleProvenance_show(self, *args)
13880 
13881  @staticmethod
13882  def setup_particle(*args):
13883  r"""
13884  setup_particle(Model m, ParticleIndex pi, std::string method, int frames, int iterations, int replicas) -> SampleProvenance
13885  setup_particle(_ParticleAdaptor pa, std::string method, int frames, int iterations, int replicas) -> SampleProvenance
13886  setup_particle(Model m, ParticleIndex pi, std::string method, int frames, int iterations) -> SampleProvenance
13887  setup_particle(_ParticleAdaptor pa, std::string method, int frames, int iterations) -> SampleProvenance
13888  setup_particle(Model m, ParticleIndex pi, SampleProvenance o) -> SampleProvenance
13889  setup_particle(_ParticleAdaptor pa, SampleProvenance o) -> SampleProvenance
13890  """
13891  return _IMP_core.SampleProvenance_setup_particle(*args)
13892 
13893  def add_attribute(self, *args):
13894  r"""
13895  add_attribute(SampleProvenance self, FloatKey k, IMP::Float v, bool opt)
13896  add_attribute(SampleProvenance self, FloatKey a0, IMP::Float a1)
13897  add_attribute(SampleProvenance self, IntKey a0, IMP::Int a1)
13898  add_attribute(SampleProvenance self, FloatsKey a0, IMP::Floats a1)
13899  add_attribute(SampleProvenance self, IntsKey a0, IMP::Ints a1)
13900  add_attribute(SampleProvenance self, StringKey a0, IMP::String a1)
13901  add_attribute(SampleProvenance self, ParticleIndexKey a0, Particle a1)
13902  add_attribute(SampleProvenance self, ObjectKey a0, Object a1)
13903  add_attribute(SampleProvenance self, SparseFloatKey a0, IMP::Float a1)
13904  add_attribute(SampleProvenance self, SparseIntKey a0, IMP::Int a1)
13905  add_attribute(SampleProvenance self, SparseStringKey a0, IMP::String a1)
13906  add_attribute(SampleProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13907  """
13908  return _IMP_core.SampleProvenance_add_attribute(self, *args)
13909 
13910  def get_value(self, *args):
13911  r"""
13912  get_value(SampleProvenance self, FloatKey a0) -> IMP::Float
13913  get_value(SampleProvenance self, IntKey a0) -> IMP::Int
13914  get_value(SampleProvenance self, FloatsKey a0) -> IMP::Floats
13915  get_value(SampleProvenance self, IntsKey a0) -> IMP::Ints
13916  get_value(SampleProvenance self, StringKey a0) -> IMP::String
13917  get_value(SampleProvenance self, ParticleIndexKey a0) -> Particle
13918  get_value(SampleProvenance self, ObjectKey a0) -> Object
13919  get_value(SampleProvenance self, SparseFloatKey a0) -> IMP::Float
13920  get_value(SampleProvenance self, SparseIntKey a0) -> IMP::Int
13921  get_value(SampleProvenance self, SparseStringKey a0) -> IMP::String
13922  get_value(SampleProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
13923  """
13924  return _IMP_core.SampleProvenance_get_value(self, *args)
13925 
13926  def set_value(self, *args):
13927  r"""
13928  set_value(SampleProvenance self, FloatKey a0, IMP::Float a1)
13929  set_value(SampleProvenance self, IntKey a0, IMP::Int a1)
13930  set_value(SampleProvenance self, FloatsKey a0, IMP::Floats a1)
13931  set_value(SampleProvenance self, IntsKey a0, IMP::Ints a1)
13932  set_value(SampleProvenance self, StringKey a0, IMP::String a1)
13933  set_value(SampleProvenance self, ParticleIndexKey a0, Particle a1)
13934  set_value(SampleProvenance self, ObjectKey a0, Object a1)
13935  set_value(SampleProvenance self, SparseFloatKey a0, IMP::Float a1)
13936  set_value(SampleProvenance self, SparseIntKey a0, IMP::Int a1)
13937  set_value(SampleProvenance self, SparseStringKey a0, IMP::String a1)
13938  set_value(SampleProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13939  """
13940  return _IMP_core.SampleProvenance_set_value(self, *args)
13941 
13942  def remove_attribute(self, *args):
13943  r"""
13944  remove_attribute(SampleProvenance self, FloatKey a0)
13945  remove_attribute(SampleProvenance self, IntKey a0)
13946  remove_attribute(SampleProvenance self, FloatsKey a0)
13947  remove_attribute(SampleProvenance self, IntsKey a0)
13948  remove_attribute(SampleProvenance self, StringKey a0)
13949  remove_attribute(SampleProvenance self, ParticleIndexKey a0)
13950  remove_attribute(SampleProvenance self, ObjectKey a0)
13951  remove_attribute(SampleProvenance self, SparseFloatKey a0)
13952  remove_attribute(SampleProvenance self, SparseIntKey a0)
13953  remove_attribute(SampleProvenance self, SparseStringKey a0)
13954  remove_attribute(SampleProvenance self, SparseParticleIndexKey a0)
13955  """
13956  return _IMP_core.SampleProvenance_remove_attribute(self, *args)
13957 
13958  def has_attribute(self, *args):
13959  r"""
13960  has_attribute(SampleProvenance self, FloatKey a0) -> bool
13961  has_attribute(SampleProvenance self, IntKey a0) -> bool
13962  has_attribute(SampleProvenance self, FloatsKey a0) -> bool
13963  has_attribute(SampleProvenance self, IntsKey a0) -> bool
13964  has_attribute(SampleProvenance self, StringKey a0) -> bool
13965  has_attribute(SampleProvenance self, ParticleIndexKey a0) -> bool
13966  has_attribute(SampleProvenance self, ObjectKey a0) -> bool
13967  has_attribute(SampleProvenance self, SparseFloatKey a0) -> bool
13968  has_attribute(SampleProvenance self, SparseIntKey a0) -> bool
13969  has_attribute(SampleProvenance self, SparseStringKey a0) -> bool
13970  has_attribute(SampleProvenance self, SparseParticleIndexKey a0) -> bool
13971  """
13972  return _IMP_core.SampleProvenance_has_attribute(self, *args)
13973 
13974  def get_derivative(self, a0):
13975  r"""get_derivative(SampleProvenance self, FloatKey a0) -> double"""
13976  return _IMP_core.SampleProvenance_get_derivative(self, a0)
13977 
13978  def get_name(self):
13979  r"""get_name(SampleProvenance self) -> std::string"""
13980  return _IMP_core.SampleProvenance_get_name(self)
13981 
13982  def clear_caches(self):
13983  r"""clear_caches(SampleProvenance self)"""
13984  return _IMP_core.SampleProvenance_clear_caches(self)
13985 
13986  def set_name(self, a0):
13987  r"""set_name(SampleProvenance self, std::string a0)"""
13988  return _IMP_core.SampleProvenance_set_name(self, a0)
13989 
13990  def set_check_level(self, a0):
13991  r"""set_check_level(SampleProvenance self, IMP::CheckLevel a0)"""
13992  return _IMP_core.SampleProvenance_set_check_level(self, a0)
13993 
13994  def add_to_derivative(self, a0, a1, a2):
13995  r"""add_to_derivative(SampleProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13996  return _IMP_core.SampleProvenance_add_to_derivative(self, a0, a1, a2)
13997 
13998  def set_is_optimized(self, a0, a1):
13999  r"""set_is_optimized(SampleProvenance self, FloatKey a0, bool a1)"""
14000  return _IMP_core.SampleProvenance_set_is_optimized(self, a0, a1)
14001 
14002  def get_is_optimized(self, a0):
14003  r"""get_is_optimized(SampleProvenance self, FloatKey a0) -> bool"""
14004  return _IMP_core.SampleProvenance_get_is_optimized(self, a0)
14005 
14006  def get_check_level(self):
14007  r"""get_check_level(SampleProvenance self) -> IMP::CheckLevel"""
14008  return _IMP_core.SampleProvenance_get_check_level(self)
14009 
14010  def __eq__(self, *args):
14011  r"""
14012  __eq__(SampleProvenance self, SampleProvenance o) -> bool
14013  __eq__(SampleProvenance self, Particle d) -> bool
14014  """
14015  return _IMP_core.SampleProvenance___eq__(self, *args)
14016 
14017  def __ne__(self, *args):
14018  r"""
14019  __ne__(SampleProvenance self, SampleProvenance o) -> bool
14020  __ne__(SampleProvenance self, Particle d) -> bool
14021  """
14022  return _IMP_core.SampleProvenance___ne__(self, *args)
14023 
14024  def __le__(self, *args):
14025  r"""
14026  __le__(SampleProvenance self, SampleProvenance o) -> bool
14027  __le__(SampleProvenance self, Particle d) -> bool
14028  """
14029  return _IMP_core.SampleProvenance___le__(self, *args)
14030 
14031  def __lt__(self, *args):
14032  r"""
14033  __lt__(SampleProvenance self, SampleProvenance o) -> bool
14034  __lt__(SampleProvenance self, Particle d) -> bool
14035  """
14036  return _IMP_core.SampleProvenance___lt__(self, *args)
14037 
14038  def __ge__(self, *args):
14039  r"""
14040  __ge__(SampleProvenance self, SampleProvenance o) -> bool
14041  __ge__(SampleProvenance self, Particle d) -> bool
14042  """
14043  return _IMP_core.SampleProvenance___ge__(self, *args)
14044 
14045  def __gt__(self, *args):
14046  r"""
14047  __gt__(SampleProvenance self, SampleProvenance o) -> bool
14048  __gt__(SampleProvenance self, Particle d) -> bool
14049  """
14050  return _IMP_core.SampleProvenance___gt__(self, *args)
14051 
14052  def __hash__(self):
14053  r"""__hash__(SampleProvenance self) -> std::size_t"""
14054  return _IMP_core.SampleProvenance___hash__(self)
14055 
14056  def __str__(self):
14057  r"""__str__(SampleProvenance self) -> std::string"""
14058  return _IMP_core.SampleProvenance___str__(self)
14059 
14060  def __repr__(self):
14061  r"""__repr__(SampleProvenance self) -> std::string"""
14062  return _IMP_core.SampleProvenance___repr__(self)
14063 
14064  def _get_as_binary(self):
14065  r"""_get_as_binary(SampleProvenance self) -> PyObject *"""
14066  return _IMP_core.SampleProvenance__get_as_binary(self)
14067 
14068  def _set_from_binary(self, p):
14069  r"""_set_from_binary(SampleProvenance self, PyObject * p)"""
14070  return _IMP_core.SampleProvenance__set_from_binary(self, p)
14071 
14072  def __getstate__(self):
14073  p = self._get_as_binary()
14074  if len(self.__dict__) > 1:
14075  d = self.__dict__.copy()
14076  del d['this']
14077  p = (d, p)
14078  return p
14079 
14080  def __setstate__(self, p):
14081  if not hasattr(self, 'this'):
14082  self.__init__()
14083  if isinstance(p, tuple):
14084  d, p = p
14085  self.__dict__.update(d)
14086  return self._set_from_binary(p)
14087 
14088  __swig_destroy__ = _IMP_core.delete_SampleProvenance
14089 
14090 # Register SampleProvenance in _IMP_core:
14091 _IMP_core.SampleProvenance_swigregister(SampleProvenance)
14092 class CombineProvenance(Provenance):
14093  r"""Proxy of C++ IMP::core::CombineProvenance class."""
14094 
14095  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14096 
14097  def set_number_of_frames(self, frames):
14098  r"""set_number_of_frames(CombineProvenance self, int frames)"""
14099  return _IMP_core.CombineProvenance_set_number_of_frames(self, frames)
14100 
14101  def get_number_of_frames(self):
14102  r"""get_number_of_frames(CombineProvenance self) -> int"""
14103  return _IMP_core.CombineProvenance_get_number_of_frames(self)
14104 
14105  def set_number_of_runs(self, runs):
14106  r"""set_number_of_runs(CombineProvenance self, int runs)"""
14107  return _IMP_core.CombineProvenance_set_number_of_runs(self, runs)
14108 
14109  def get_number_of_runs(self):
14110  r"""get_number_of_runs(CombineProvenance self) -> int"""
14111  return _IMP_core.CombineProvenance_get_number_of_runs(self)
14112 
14113  def __init__(self, *args):
14114  r"""
14115  __init__(CombineProvenance self) -> CombineProvenance
14116  __init__(CombineProvenance self, Model m, ParticleIndex id) -> CombineProvenance
14117  __init__(CombineProvenance self, _ParticleAdaptor d) -> CombineProvenance
14118  """
14119  _IMP_core.CombineProvenance_swiginit(self, _IMP_core.new_CombineProvenance(*args))
14120 
14121  @staticmethod
14122  def get_is_setup(*args):
14123  r"""
14124  get_is_setup(Model m, ParticleIndex pi) -> bool
14125  get_is_setup(_ParticleAdaptor p) -> bool
14126  """
14127  return _IMP_core.CombineProvenance_get_is_setup(*args)
14128 
14129  def show(self, *args):
14130  r"""show(CombineProvenance self, _ostream out=std::cout)"""
14131  return _IMP_core.CombineProvenance_show(self, *args)
14132 
14133  @staticmethod
14134  def setup_particle(*args):
14135  r"""
14136  setup_particle(Model m, ParticleIndex pi, int runs, int frames) -> CombineProvenance
14137  setup_particle(_ParticleAdaptor pa, int runs, int frames) -> CombineProvenance
14138  setup_particle(Model m, ParticleIndex pi, CombineProvenance o) -> CombineProvenance
14139  setup_particle(_ParticleAdaptor pa, CombineProvenance o) -> CombineProvenance
14140  """
14141  return _IMP_core.CombineProvenance_setup_particle(*args)
14142 
14143  def add_attribute(self, *args):
14144  r"""
14145  add_attribute(CombineProvenance self, FloatKey k, IMP::Float v, bool opt)
14146  add_attribute(CombineProvenance self, FloatKey a0, IMP::Float a1)
14147  add_attribute(CombineProvenance self, IntKey a0, IMP::Int a1)
14148  add_attribute(CombineProvenance self, FloatsKey a0, IMP::Floats a1)
14149  add_attribute(CombineProvenance self, IntsKey a0, IMP::Ints a1)
14150  add_attribute(CombineProvenance self, StringKey a0, IMP::String a1)
14151  add_attribute(CombineProvenance self, ParticleIndexKey a0, Particle a1)
14152  add_attribute(CombineProvenance self, ObjectKey a0, Object a1)
14153  add_attribute(CombineProvenance self, SparseFloatKey a0, IMP::Float a1)
14154  add_attribute(CombineProvenance self, SparseIntKey a0, IMP::Int a1)
14155  add_attribute(CombineProvenance self, SparseStringKey a0, IMP::String a1)
14156  add_attribute(CombineProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14157  """
14158  return _IMP_core.CombineProvenance_add_attribute(self, *args)
14159 
14160  def get_value(self, *args):
14161  r"""
14162  get_value(CombineProvenance self, FloatKey a0) -> IMP::Float
14163  get_value(CombineProvenance self, IntKey a0) -> IMP::Int
14164  get_value(CombineProvenance self, FloatsKey a0) -> IMP::Floats
14165  get_value(CombineProvenance self, IntsKey a0) -> IMP::Ints
14166  get_value(CombineProvenance self, StringKey a0) -> IMP::String
14167  get_value(CombineProvenance self, ParticleIndexKey a0) -> Particle
14168  get_value(CombineProvenance self, ObjectKey a0) -> Object
14169  get_value(CombineProvenance self, SparseFloatKey a0) -> IMP::Float
14170  get_value(CombineProvenance self, SparseIntKey a0) -> IMP::Int
14171  get_value(CombineProvenance self, SparseStringKey a0) -> IMP::String
14172  get_value(CombineProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14173  """
14174  return _IMP_core.CombineProvenance_get_value(self, *args)
14175 
14176  def set_value(self, *args):
14177  r"""
14178  set_value(CombineProvenance self, FloatKey a0, IMP::Float a1)
14179  set_value(CombineProvenance self, IntKey a0, IMP::Int a1)
14180  set_value(CombineProvenance self, FloatsKey a0, IMP::Floats a1)
14181  set_value(CombineProvenance self, IntsKey a0, IMP::Ints a1)
14182  set_value(CombineProvenance self, StringKey a0, IMP::String a1)
14183  set_value(CombineProvenance self, ParticleIndexKey a0, Particle a1)
14184  set_value(CombineProvenance self, ObjectKey a0, Object a1)
14185  set_value(CombineProvenance self, SparseFloatKey a0, IMP::Float a1)
14186  set_value(CombineProvenance self, SparseIntKey a0, IMP::Int a1)
14187  set_value(CombineProvenance self, SparseStringKey a0, IMP::String a1)
14188  set_value(CombineProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14189  """
14190  return _IMP_core.CombineProvenance_set_value(self, *args)
14191 
14192  def remove_attribute(self, *args):
14193  r"""
14194  remove_attribute(CombineProvenance self, FloatKey a0)
14195  remove_attribute(CombineProvenance self, IntKey a0)
14196  remove_attribute(CombineProvenance self, FloatsKey a0)
14197  remove_attribute(CombineProvenance self, IntsKey a0)
14198  remove_attribute(CombineProvenance self, StringKey a0)
14199  remove_attribute(CombineProvenance self, ParticleIndexKey a0)
14200  remove_attribute(CombineProvenance self, ObjectKey a0)
14201  remove_attribute(CombineProvenance self, SparseFloatKey a0)
14202  remove_attribute(CombineProvenance self, SparseIntKey a0)
14203  remove_attribute(CombineProvenance self, SparseStringKey a0)
14204  remove_attribute(CombineProvenance self, SparseParticleIndexKey a0)
14205  """
14206  return _IMP_core.CombineProvenance_remove_attribute(self, *args)
14207 
14208  def has_attribute(self, *args):
14209  r"""
14210  has_attribute(CombineProvenance self, FloatKey a0) -> bool
14211  has_attribute(CombineProvenance self, IntKey a0) -> bool
14212  has_attribute(CombineProvenance self, FloatsKey a0) -> bool
14213  has_attribute(CombineProvenance self, IntsKey a0) -> bool
14214  has_attribute(CombineProvenance self, StringKey a0) -> bool
14215  has_attribute(CombineProvenance self, ParticleIndexKey a0) -> bool
14216  has_attribute(CombineProvenance self, ObjectKey a0) -> bool
14217  has_attribute(CombineProvenance self, SparseFloatKey a0) -> bool
14218  has_attribute(CombineProvenance self, SparseIntKey a0) -> bool
14219  has_attribute(CombineProvenance self, SparseStringKey a0) -> bool
14220  has_attribute(CombineProvenance self, SparseParticleIndexKey a0) -> bool
14221  """
14222  return _IMP_core.CombineProvenance_has_attribute(self, *args)
14223 
14224  def get_derivative(self, a0):
14225  r"""get_derivative(CombineProvenance self, FloatKey a0) -> double"""
14226  return _IMP_core.CombineProvenance_get_derivative(self, a0)
14227 
14228  def get_name(self):
14229  r"""get_name(CombineProvenance self) -> std::string"""
14230  return _IMP_core.CombineProvenance_get_name(self)
14231 
14232  def clear_caches(self):
14233  r"""clear_caches(CombineProvenance self)"""
14234  return _IMP_core.CombineProvenance_clear_caches(self)
14235 
14236  def set_name(self, a0):
14237  r"""set_name(CombineProvenance self, std::string a0)"""
14238  return _IMP_core.CombineProvenance_set_name(self, a0)
14239 
14240  def set_check_level(self, a0):
14241  r"""set_check_level(CombineProvenance self, IMP::CheckLevel a0)"""
14242  return _IMP_core.CombineProvenance_set_check_level(self, a0)
14243 
14244  def add_to_derivative(self, a0, a1, a2):
14245  r"""add_to_derivative(CombineProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14246  return _IMP_core.CombineProvenance_add_to_derivative(self, a0, a1, a2)
14247 
14248  def set_is_optimized(self, a0, a1):
14249  r"""set_is_optimized(CombineProvenance self, FloatKey a0, bool a1)"""
14250  return _IMP_core.CombineProvenance_set_is_optimized(self, a0, a1)
14251 
14252  def get_is_optimized(self, a0):
14253  r"""get_is_optimized(CombineProvenance self, FloatKey a0) -> bool"""
14254  return _IMP_core.CombineProvenance_get_is_optimized(self, a0)
14255 
14256  def get_check_level(self):
14257  r"""get_check_level(CombineProvenance self) -> IMP::CheckLevel"""
14258  return _IMP_core.CombineProvenance_get_check_level(self)
14259 
14260  def __eq__(self, *args):
14261  r"""
14262  __eq__(CombineProvenance self, CombineProvenance o) -> bool
14263  __eq__(CombineProvenance self, Particle d) -> bool
14264  """
14265  return _IMP_core.CombineProvenance___eq__(self, *args)
14266 
14267  def __ne__(self, *args):
14268  r"""
14269  __ne__(CombineProvenance self, CombineProvenance o) -> bool
14270  __ne__(CombineProvenance self, Particle d) -> bool
14271  """
14272  return _IMP_core.CombineProvenance___ne__(self, *args)
14273 
14274  def __le__(self, *args):
14275  r"""
14276  __le__(CombineProvenance self, CombineProvenance o) -> bool
14277  __le__(CombineProvenance self, Particle d) -> bool
14278  """
14279  return _IMP_core.CombineProvenance___le__(self, *args)
14280 
14281  def __lt__(self, *args):
14282  r"""
14283  __lt__(CombineProvenance self, CombineProvenance o) -> bool
14284  __lt__(CombineProvenance self, Particle d) -> bool
14285  """
14286  return _IMP_core.CombineProvenance___lt__(self, *args)
14287 
14288  def __ge__(self, *args):
14289  r"""
14290  __ge__(CombineProvenance self, CombineProvenance o) -> bool
14291  __ge__(CombineProvenance self, Particle d) -> bool
14292  """
14293  return _IMP_core.CombineProvenance___ge__(self, *args)
14294 
14295  def __gt__(self, *args):
14296  r"""
14297  __gt__(CombineProvenance self, CombineProvenance o) -> bool
14298  __gt__(CombineProvenance self, Particle d) -> bool
14299  """
14300  return _IMP_core.CombineProvenance___gt__(self, *args)
14301 
14302  def __hash__(self):
14303  r"""__hash__(CombineProvenance self) -> std::size_t"""
14304  return _IMP_core.CombineProvenance___hash__(self)
14305 
14306  def __str__(self):
14307  r"""__str__(CombineProvenance self) -> std::string"""
14308  return _IMP_core.CombineProvenance___str__(self)
14309 
14310  def __repr__(self):
14311  r"""__repr__(CombineProvenance self) -> std::string"""
14312  return _IMP_core.CombineProvenance___repr__(self)
14313 
14314  def _get_as_binary(self):
14315  r"""_get_as_binary(CombineProvenance self) -> PyObject *"""
14316  return _IMP_core.CombineProvenance__get_as_binary(self)
14317 
14318  def _set_from_binary(self, p):
14319  r"""_set_from_binary(CombineProvenance self, PyObject * p)"""
14320  return _IMP_core.CombineProvenance__set_from_binary(self, p)
14321 
14322  def __getstate__(self):
14323  p = self._get_as_binary()
14324  if len(self.__dict__) > 1:
14325  d = self.__dict__.copy()
14326  del d['this']
14327  p = (d, p)
14328  return p
14329 
14330  def __setstate__(self, p):
14331  if not hasattr(self, 'this'):
14332  self.__init__()
14333  if isinstance(p, tuple):
14334  d, p = p
14335  self.__dict__.update(d)
14336  return self._set_from_binary(p)
14337 
14338  __swig_destroy__ = _IMP_core.delete_CombineProvenance
14339 
14340 # Register CombineProvenance in _IMP_core:
14341 _IMP_core.CombineProvenance_swigregister(CombineProvenance)
14342 class FilterProvenance(Provenance):
14343  r"""Proxy of C++ IMP::core::FilterProvenance class."""
14344 
14345  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14346 
14347  def set_method(self, method):
14348  r"""set_method(FilterProvenance self, std::string method)"""
14349  return _IMP_core.FilterProvenance_set_method(self, method)
14350 
14351  def get_method(self):
14352  r"""get_method(FilterProvenance self) -> std::string"""
14353  return _IMP_core.FilterProvenance_get_method(self)
14354 
14355  def set_number_of_frames(self, frames):
14356  r"""set_number_of_frames(FilterProvenance self, int frames)"""
14357  return _IMP_core.FilterProvenance_set_number_of_frames(self, frames)
14358 
14359  def get_number_of_frames(self):
14360  r"""get_number_of_frames(FilterProvenance self) -> int"""
14361  return _IMP_core.FilterProvenance_get_number_of_frames(self)
14362 
14363  def set_threshold(self, threshold):
14364  r"""set_threshold(FilterProvenance self, double threshold)"""
14365  return _IMP_core.FilterProvenance_set_threshold(self, threshold)
14366 
14367  def get_threshold(self):
14368  r"""get_threshold(FilterProvenance self) -> double"""
14369  return _IMP_core.FilterProvenance_get_threshold(self)
14370 
14371  def __init__(self, *args):
14372  r"""
14373  __init__(FilterProvenance self) -> FilterProvenance
14374  __init__(FilterProvenance self, Model m, ParticleIndex id) -> FilterProvenance
14375  __init__(FilterProvenance self, _ParticleAdaptor d) -> FilterProvenance
14376  """
14377  _IMP_core.FilterProvenance_swiginit(self, _IMP_core.new_FilterProvenance(*args))
14378 
14379  @staticmethod
14380  def get_is_setup(*args):
14381  r"""
14382  get_is_setup(Model m, ParticleIndex pi) -> bool
14383  get_is_setup(_ParticleAdaptor p) -> bool
14384  """
14385  return _IMP_core.FilterProvenance_get_is_setup(*args)
14386 
14387  def show(self, *args):
14388  r"""show(FilterProvenance self, _ostream out=std::cout)"""
14389  return _IMP_core.FilterProvenance_show(self, *args)
14390 
14391  @staticmethod
14392  def setup_particle(*args):
14393  r"""
14394  setup_particle(Model m, ParticleIndex pi, std::string method, double threshold, int frames) -> FilterProvenance
14395  setup_particle(_ParticleAdaptor pa, std::string method, double threshold, int frames) -> FilterProvenance
14396  setup_particle(Model m, ParticleIndex pi, FilterProvenance o) -> FilterProvenance
14397  setup_particle(_ParticleAdaptor pa, FilterProvenance o) -> FilterProvenance
14398  """
14399  return _IMP_core.FilterProvenance_setup_particle(*args)
14400 
14401  def add_attribute(self, *args):
14402  r"""
14403  add_attribute(FilterProvenance self, FloatKey k, IMP::Float v, bool opt)
14404  add_attribute(FilterProvenance self, FloatKey a0, IMP::Float a1)
14405  add_attribute(FilterProvenance self, IntKey a0, IMP::Int a1)
14406  add_attribute(FilterProvenance self, FloatsKey a0, IMP::Floats a1)
14407  add_attribute(FilterProvenance self, IntsKey a0, IMP::Ints a1)
14408  add_attribute(FilterProvenance self, StringKey a0, IMP::String a1)
14409  add_attribute(FilterProvenance self, ParticleIndexKey a0, Particle a1)
14410  add_attribute(FilterProvenance self, ObjectKey a0, Object a1)
14411  add_attribute(FilterProvenance self, SparseFloatKey a0, IMP::Float a1)
14412  add_attribute(FilterProvenance self, SparseIntKey a0, IMP::Int a1)
14413  add_attribute(FilterProvenance self, SparseStringKey a0, IMP::String a1)
14414  add_attribute(FilterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14415  """
14416  return _IMP_core.FilterProvenance_add_attribute(self, *args)
14417 
14418  def get_value(self, *args):
14419  r"""
14420  get_value(FilterProvenance self, FloatKey a0) -> IMP::Float
14421  get_value(FilterProvenance self, IntKey a0) -> IMP::Int
14422  get_value(FilterProvenance self, FloatsKey a0) -> IMP::Floats
14423  get_value(FilterProvenance self, IntsKey a0) -> IMP::Ints
14424  get_value(FilterProvenance self, StringKey a0) -> IMP::String
14425  get_value(FilterProvenance self, ParticleIndexKey a0) -> Particle
14426  get_value(FilterProvenance self, ObjectKey a0) -> Object
14427  get_value(FilterProvenance self, SparseFloatKey a0) -> IMP::Float
14428  get_value(FilterProvenance self, SparseIntKey a0) -> IMP::Int
14429  get_value(FilterProvenance self, SparseStringKey a0) -> IMP::String
14430  get_value(FilterProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14431  """
14432  return _IMP_core.FilterProvenance_get_value(self, *args)
14433 
14434  def set_value(self, *args):
14435  r"""
14436  set_value(FilterProvenance self, FloatKey a0, IMP::Float a1)
14437  set_value(FilterProvenance self, IntKey a0, IMP::Int a1)
14438  set_value(FilterProvenance self, FloatsKey a0, IMP::Floats a1)
14439  set_value(FilterProvenance self, IntsKey a0, IMP::Ints a1)
14440  set_value(FilterProvenance self, StringKey a0, IMP::String a1)
14441  set_value(FilterProvenance self, ParticleIndexKey a0, Particle a1)
14442  set_value(FilterProvenance self, ObjectKey a0, Object a1)
14443  set_value(FilterProvenance self, SparseFloatKey a0, IMP::Float a1)
14444  set_value(FilterProvenance self, SparseIntKey a0, IMP::Int a1)
14445  set_value(FilterProvenance self, SparseStringKey a0, IMP::String a1)
14446  set_value(FilterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14447  """
14448  return _IMP_core.FilterProvenance_set_value(self, *args)
14449 
14450  def remove_attribute(self, *args):
14451  r"""
14452  remove_attribute(FilterProvenance self, FloatKey a0)
14453  remove_attribute(FilterProvenance self, IntKey a0)
14454  remove_attribute(FilterProvenance self, FloatsKey a0)
14455  remove_attribute(FilterProvenance self, IntsKey a0)
14456  remove_attribute(FilterProvenance self, StringKey a0)
14457  remove_attribute(FilterProvenance self, ParticleIndexKey a0)
14458  remove_attribute(FilterProvenance self, ObjectKey a0)
14459  remove_attribute(FilterProvenance self, SparseFloatKey a0)
14460  remove_attribute(FilterProvenance self, SparseIntKey a0)
14461  remove_attribute(FilterProvenance self, SparseStringKey a0)
14462  remove_attribute(FilterProvenance self, SparseParticleIndexKey a0)
14463  """
14464  return _IMP_core.FilterProvenance_remove_attribute(self, *args)
14465 
14466  def has_attribute(self, *args):
14467  r"""
14468  has_attribute(FilterProvenance self, FloatKey a0) -> bool
14469  has_attribute(FilterProvenance self, IntKey a0) -> bool
14470  has_attribute(FilterProvenance self, FloatsKey a0) -> bool
14471  has_attribute(FilterProvenance self, IntsKey a0) -> bool
14472  has_attribute(FilterProvenance self, StringKey a0) -> bool
14473  has_attribute(FilterProvenance self, ParticleIndexKey a0) -> bool
14474  has_attribute(FilterProvenance self, ObjectKey a0) -> bool
14475  has_attribute(FilterProvenance self, SparseFloatKey a0) -> bool
14476  has_attribute(FilterProvenance self, SparseIntKey a0) -> bool
14477  has_attribute(FilterProvenance self, SparseStringKey a0) -> bool
14478  has_attribute(FilterProvenance self, SparseParticleIndexKey a0) -> bool
14479  """
14480  return _IMP_core.FilterProvenance_has_attribute(self, *args)
14481 
14482  def get_derivative(self, a0):
14483  r"""get_derivative(FilterProvenance self, FloatKey a0) -> double"""
14484  return _IMP_core.FilterProvenance_get_derivative(self, a0)
14485 
14486  def get_name(self):
14487  r"""get_name(FilterProvenance self) -> std::string"""
14488  return _IMP_core.FilterProvenance_get_name(self)
14489 
14490  def clear_caches(self):
14491  r"""clear_caches(FilterProvenance self)"""
14492  return _IMP_core.FilterProvenance_clear_caches(self)
14493 
14494  def set_name(self, a0):
14495  r"""set_name(FilterProvenance self, std::string a0)"""
14496  return _IMP_core.FilterProvenance_set_name(self, a0)
14497 
14498  def set_check_level(self, a0):
14499  r"""set_check_level(FilterProvenance self, IMP::CheckLevel a0)"""
14500  return _IMP_core.FilterProvenance_set_check_level(self, a0)
14501 
14502  def add_to_derivative(self, a0, a1, a2):
14503  r"""add_to_derivative(FilterProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14504  return _IMP_core.FilterProvenance_add_to_derivative(self, a0, a1, a2)
14505 
14506  def set_is_optimized(self, a0, a1):
14507  r"""set_is_optimized(FilterProvenance self, FloatKey a0, bool a1)"""
14508  return _IMP_core.FilterProvenance_set_is_optimized(self, a0, a1)
14509 
14510  def get_is_optimized(self, a0):
14511  r"""get_is_optimized(FilterProvenance self, FloatKey a0) -> bool"""
14512  return _IMP_core.FilterProvenance_get_is_optimized(self, a0)
14513 
14514  def get_check_level(self):
14515  r"""get_check_level(FilterProvenance self) -> IMP::CheckLevel"""
14516  return _IMP_core.FilterProvenance_get_check_level(self)
14517 
14518  def __eq__(self, *args):
14519  r"""
14520  __eq__(FilterProvenance self, FilterProvenance o) -> bool
14521  __eq__(FilterProvenance self, Particle d) -> bool
14522  """
14523  return _IMP_core.FilterProvenance___eq__(self, *args)
14524 
14525  def __ne__(self, *args):
14526  r"""
14527  __ne__(FilterProvenance self, FilterProvenance o) -> bool
14528  __ne__(FilterProvenance self, Particle d) -> bool
14529  """
14530  return _IMP_core.FilterProvenance___ne__(self, *args)
14531 
14532  def __le__(self, *args):
14533  r"""
14534  __le__(FilterProvenance self, FilterProvenance o) -> bool
14535  __le__(FilterProvenance self, Particle d) -> bool
14536  """
14537  return _IMP_core.FilterProvenance___le__(self, *args)
14538 
14539  def __lt__(self, *args):
14540  r"""
14541  __lt__(FilterProvenance self, FilterProvenance o) -> bool
14542  __lt__(FilterProvenance self, Particle d) -> bool
14543  """
14544  return _IMP_core.FilterProvenance___lt__(self, *args)
14545 
14546  def __ge__(self, *args):
14547  r"""
14548  __ge__(FilterProvenance self, FilterProvenance o) -> bool
14549  __ge__(FilterProvenance self, Particle d) -> bool
14550  """
14551  return _IMP_core.FilterProvenance___ge__(self, *args)
14552 
14553  def __gt__(self, *args):
14554  r"""
14555  __gt__(FilterProvenance self, FilterProvenance o) -> bool
14556  __gt__(FilterProvenance self, Particle d) -> bool
14557  """
14558  return _IMP_core.FilterProvenance___gt__(self, *args)
14559 
14560  def __hash__(self):
14561  r"""__hash__(FilterProvenance self) -> std::size_t"""
14562  return _IMP_core.FilterProvenance___hash__(self)
14563 
14564  def __str__(self):
14565  r"""__str__(FilterProvenance self) -> std::string"""
14566  return _IMP_core.FilterProvenance___str__(self)
14567 
14568  def __repr__(self):
14569  r"""__repr__(FilterProvenance self) -> std::string"""
14570  return _IMP_core.FilterProvenance___repr__(self)
14571 
14572  def _get_as_binary(self):
14573  r"""_get_as_binary(FilterProvenance self) -> PyObject *"""
14574  return _IMP_core.FilterProvenance__get_as_binary(self)
14575 
14576  def _set_from_binary(self, p):
14577  r"""_set_from_binary(FilterProvenance self, PyObject * p)"""
14578  return _IMP_core.FilterProvenance__set_from_binary(self, p)
14579 
14580  def __getstate__(self):
14581  p = self._get_as_binary()
14582  if len(self.__dict__) > 1:
14583  d = self.__dict__.copy()
14584  del d['this']
14585  p = (d, p)
14586  return p
14587 
14588  def __setstate__(self, p):
14589  if not hasattr(self, 'this'):
14590  self.__init__()
14591  if isinstance(p, tuple):
14592  d, p = p
14593  self.__dict__.update(d)
14594  return self._set_from_binary(p)
14595 
14596  __swig_destroy__ = _IMP_core.delete_FilterProvenance
14597 
14598 # Register FilterProvenance in _IMP_core:
14599 _IMP_core.FilterProvenance_swigregister(FilterProvenance)
14600 class ClusterProvenance(Provenance):
14601  r"""Proxy of C++ IMP::core::ClusterProvenance class."""
14602 
14603  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14604 
14605  def set_number_of_members(self, members):
14606  r"""set_number_of_members(ClusterProvenance self, int members)"""
14607  return _IMP_core.ClusterProvenance_set_number_of_members(self, members)
14608 
14609  def get_number_of_members(self):
14610  r"""get_number_of_members(ClusterProvenance self) -> int"""
14611  return _IMP_core.ClusterProvenance_get_number_of_members(self)
14612 
14613  def set_precision(self, precision):
14614  r"""set_precision(ClusterProvenance self, double precision)"""
14615  return _IMP_core.ClusterProvenance_set_precision(self, precision)
14616 
14617  def get_precision(self):
14618  r"""get_precision(ClusterProvenance self) -> double"""
14619  return _IMP_core.ClusterProvenance_get_precision(self)
14620 
14621  def set_density(self, density):
14622  r"""set_density(ClusterProvenance self, std::string density)"""
14623  return _IMP_core.ClusterProvenance_set_density(self, density)
14624 
14625  def get_density(self):
14626  r"""get_density(ClusterProvenance self) -> std::string"""
14627  return _IMP_core.ClusterProvenance_get_density(self)
14628 
14629  def __init__(self, *args):
14630  r"""
14631  __init__(ClusterProvenance self) -> ClusterProvenance
14632  __init__(ClusterProvenance self, Model m, ParticleIndex id) -> ClusterProvenance
14633  __init__(ClusterProvenance self, _ParticleAdaptor d) -> ClusterProvenance
14634  """
14635  _IMP_core.ClusterProvenance_swiginit(self, _IMP_core.new_ClusterProvenance(*args))
14636 
14637  @staticmethod
14638  def get_is_setup(*args):
14639  r"""
14640  get_is_setup(Model m, ParticleIndex pi) -> bool
14641  get_is_setup(_ParticleAdaptor p) -> bool
14642  """
14643  return _IMP_core.ClusterProvenance_get_is_setup(*args)
14644 
14645  def show(self, *args):
14646  r"""show(ClusterProvenance self, _ostream out=std::cout)"""
14647  return _IMP_core.ClusterProvenance_show(self, *args)
14648 
14649  @staticmethod
14650  def setup_particle(*args):
14651  r"""
14652  setup_particle(Model m, ParticleIndex pi, int members) -> ClusterProvenance
14653  setup_particle(_ParticleAdaptor pa, int members) -> ClusterProvenance
14654  setup_particle(Model m, ParticleIndex pi, int members, double precision) -> ClusterProvenance
14655  setup_particle(_ParticleAdaptor pa, int members, double precision) -> ClusterProvenance
14656  setup_particle(Model m, ParticleIndex pi, int members, double precision, std::string density) -> ClusterProvenance
14657  setup_particle(_ParticleAdaptor pa, int members, double precision, std::string density) -> ClusterProvenance
14658  setup_particle(Model m, ParticleIndex pi, ClusterProvenance o) -> ClusterProvenance
14659  setup_particle(_ParticleAdaptor pa, ClusterProvenance o) -> ClusterProvenance
14660  """
14661  return _IMP_core.ClusterProvenance_setup_particle(*args)
14662 
14663  def add_attribute(self, *args):
14664  r"""
14665  add_attribute(ClusterProvenance self, FloatKey k, IMP::Float v, bool opt)
14666  add_attribute(ClusterProvenance self, FloatKey a0, IMP::Float a1)
14667  add_attribute(ClusterProvenance self, IntKey a0, IMP::Int a1)
14668  add_attribute(ClusterProvenance self, FloatsKey a0, IMP::Floats a1)
14669  add_attribute(ClusterProvenance self, IntsKey a0, IMP::Ints a1)
14670  add_attribute(ClusterProvenance self, StringKey a0, IMP::String a1)
14671  add_attribute(ClusterProvenance self, ParticleIndexKey a0, Particle a1)
14672  add_attribute(ClusterProvenance self, ObjectKey a0, Object a1)
14673  add_attribute(ClusterProvenance self, SparseFloatKey a0, IMP::Float a1)
14674  add_attribute(ClusterProvenance self, SparseIntKey a0, IMP::Int a1)
14675  add_attribute(ClusterProvenance self, SparseStringKey a0, IMP::String a1)
14676  add_attribute(ClusterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14677  """
14678  return _IMP_core.ClusterProvenance_add_attribute(self, *args)
14679 
14680  def get_value(self, *args):
14681  r"""
14682  get_value(ClusterProvenance self, FloatKey a0) -> IMP::Float
14683  get_value(ClusterProvenance self, IntKey a0) -> IMP::Int
14684  get_value(ClusterProvenance self, FloatsKey a0) -> IMP::Floats
14685  get_value(ClusterProvenance self, IntsKey a0) -> IMP::Ints
14686  get_value(ClusterProvenance self, StringKey a0) -> IMP::String
14687  get_value(ClusterProvenance self, ParticleIndexKey a0) -> Particle
14688  get_value(ClusterProvenance self, ObjectKey a0) -> Object
14689  get_value(ClusterProvenance self, SparseFloatKey a0) -> IMP::Float
14690  get_value(ClusterProvenance self, SparseIntKey a0) -> IMP::Int
14691  get_value(ClusterProvenance self, SparseStringKey a0) -> IMP::String
14692  get_value(ClusterProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14693  """
14694  return _IMP_core.ClusterProvenance_get_value(self, *args)
14695 
14696  def set_value(self, *args):
14697  r"""
14698  set_value(ClusterProvenance self, FloatKey a0, IMP::Float a1)
14699  set_value(ClusterProvenance self, IntKey a0, IMP::Int a1)
14700  set_value(ClusterProvenance self, FloatsKey a0, IMP::Floats a1)
14701  set_value(ClusterProvenance self, IntsKey a0, IMP::Ints a1)
14702  set_value(ClusterProvenance self, StringKey a0, IMP::String a1)
14703  set_value(ClusterProvenance self, ParticleIndexKey a0, Particle a1)
14704  set_value(ClusterProvenance self, ObjectKey a0, Object a1)
14705  set_value(ClusterProvenance self, SparseFloatKey a0, IMP::Float a1)
14706  set_value(ClusterProvenance self, SparseIntKey a0, IMP::Int a1)
14707  set_value(ClusterProvenance self, SparseStringKey a0, IMP::String a1)
14708  set_value(ClusterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14709  """
14710  return _IMP_core.ClusterProvenance_set_value(self, *args)
14711 
14712  def remove_attribute(self, *args):
14713  r"""
14714  remove_attribute(ClusterProvenance self, FloatKey a0)
14715  remove_attribute(ClusterProvenance self, IntKey a0)
14716  remove_attribute(ClusterProvenance self, FloatsKey a0)
14717  remove_attribute(ClusterProvenance self, IntsKey a0)
14718  remove_attribute(ClusterProvenance self, StringKey a0)
14719  remove_attribute(ClusterProvenance self, ParticleIndexKey a0)
14720  remove_attribute(ClusterProvenance self, ObjectKey a0)
14721  remove_attribute(ClusterProvenance self, SparseFloatKey a0)
14722  remove_attribute(ClusterProvenance self, SparseIntKey a0)
14723  remove_attribute(ClusterProvenance self, SparseStringKey a0)
14724  remove_attribute(ClusterProvenance self, SparseParticleIndexKey a0)
14725  """
14726  return _IMP_core.ClusterProvenance_remove_attribute(self, *args)
14727 
14728  def has_attribute(self, *args):
14729  r"""
14730  has_attribute(ClusterProvenance self, FloatKey a0) -> bool
14731  has_attribute(ClusterProvenance self, IntKey a0) -> bool
14732  has_attribute(ClusterProvenance self, FloatsKey a0) -> bool
14733  has_attribute(ClusterProvenance self, IntsKey a0) -> bool
14734  has_attribute(ClusterProvenance self, StringKey a0) -> bool
14735  has_attribute(ClusterProvenance self, ParticleIndexKey a0) -> bool
14736  has_attribute(ClusterProvenance self, ObjectKey a0) -> bool
14737  has_attribute(ClusterProvenance self, SparseFloatKey a0) -> bool
14738  has_attribute(ClusterProvenance self, SparseIntKey a0) -> bool
14739  has_attribute(ClusterProvenance self, SparseStringKey a0) -> bool
14740  has_attribute(ClusterProvenance self, SparseParticleIndexKey a0) -> bool
14741  """
14742  return _IMP_core.ClusterProvenance_has_attribute(self, *args)
14743 
14744  def get_derivative(self, a0):
14745  r"""get_derivative(ClusterProvenance self, FloatKey a0) -> double"""
14746  return _IMP_core.ClusterProvenance_get_derivative(self, a0)
14747 
14748  def get_name(self):
14749  r"""get_name(ClusterProvenance self) -> std::string"""
14750  return _IMP_core.ClusterProvenance_get_name(self)
14751 
14752  def clear_caches(self):
14753  r"""clear_caches(ClusterProvenance self)"""
14754  return _IMP_core.ClusterProvenance_clear_caches(self)
14755 
14756  def set_name(self, a0):
14757  r"""set_name(ClusterProvenance self, std::string a0)"""
14758  return _IMP_core.ClusterProvenance_set_name(self, a0)
14759 
14760  def set_check_level(self, a0):
14761  r"""set_check_level(ClusterProvenance self, IMP::CheckLevel a0)"""
14762  return _IMP_core.ClusterProvenance_set_check_level(self, a0)
14763 
14764  def add_to_derivative(self, a0, a1, a2):
14765  r"""add_to_derivative(ClusterProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14766  return _IMP_core.ClusterProvenance_add_to_derivative(self, a0, a1, a2)
14767 
14768  def set_is_optimized(self, a0, a1):
14769  r"""set_is_optimized(ClusterProvenance self, FloatKey a0, bool a1)"""
14770  return _IMP_core.ClusterProvenance_set_is_optimized(self, a0, a1)
14771 
14772  def get_is_optimized(self, a0):
14773  r"""get_is_optimized(ClusterProvenance self, FloatKey a0) -> bool"""
14774  return _IMP_core.ClusterProvenance_get_is_optimized(self, a0)
14775 
14776  def get_check_level(self):
14777  r"""get_check_level(ClusterProvenance self) -> IMP::CheckLevel"""
14778  return _IMP_core.ClusterProvenance_get_check_level(self)
14779 
14780  def __eq__(self, *args):
14781  r"""
14782  __eq__(ClusterProvenance self, ClusterProvenance o) -> bool
14783  __eq__(ClusterProvenance self, Particle d) -> bool
14784  """
14785  return _IMP_core.ClusterProvenance___eq__(self, *args)
14786 
14787  def __ne__(self, *args):
14788  r"""
14789  __ne__(ClusterProvenance self, ClusterProvenance o) -> bool
14790  __ne__(ClusterProvenance self, Particle d) -> bool
14791  """
14792  return _IMP_core.ClusterProvenance___ne__(self, *args)
14793 
14794  def __le__(self, *args):
14795  r"""
14796  __le__(ClusterProvenance self, ClusterProvenance o) -> bool
14797  __le__(ClusterProvenance self, Particle d) -> bool
14798  """
14799  return _IMP_core.ClusterProvenance___le__(self, *args)
14800 
14801  def __lt__(self, *args):
14802  r"""
14803  __lt__(ClusterProvenance self, ClusterProvenance o) -> bool
14804  __lt__(ClusterProvenance self, Particle d) -> bool
14805  """
14806  return _IMP_core.ClusterProvenance___lt__(self, *args)
14807 
14808  def __ge__(self, *args):
14809  r"""
14810  __ge__(ClusterProvenance self, ClusterProvenance o) -> bool
14811  __ge__(ClusterProvenance self, Particle d) -> bool
14812  """
14813  return _IMP_core.ClusterProvenance___ge__(self, *args)
14814 
14815  def __gt__(self, *args):
14816  r"""
14817  __gt__(ClusterProvenance self, ClusterProvenance o) -> bool
14818  __gt__(ClusterProvenance self, Particle d) -> bool
14819  """
14820  return _IMP_core.ClusterProvenance___gt__(self, *args)
14821 
14822  def __hash__(self):
14823  r"""__hash__(ClusterProvenance self) -> std::size_t"""
14824  return _IMP_core.ClusterProvenance___hash__(self)
14825 
14826  def __str__(self):
14827  r"""__str__(ClusterProvenance self) -> std::string"""
14828  return _IMP_core.ClusterProvenance___str__(self)
14829 
14830  def __repr__(self):
14831  r"""__repr__(ClusterProvenance self) -> std::string"""
14832  return _IMP_core.ClusterProvenance___repr__(self)
14833 
14834  def _get_as_binary(self):
14835  r"""_get_as_binary(ClusterProvenance self) -> PyObject *"""
14836  return _IMP_core.ClusterProvenance__get_as_binary(self)
14837 
14838  def _set_from_binary(self, p):
14839  r"""_set_from_binary(ClusterProvenance self, PyObject * p)"""
14840  return _IMP_core.ClusterProvenance__set_from_binary(self, p)
14841 
14842  def __getstate__(self):
14843  p = self._get_as_binary()
14844  if len(self.__dict__) > 1:
14845  d = self.__dict__.copy()
14846  del d['this']
14847  p = (d, p)
14848  return p
14849 
14850  def __setstate__(self, p):
14851  if not hasattr(self, 'this'):
14852  self.__init__()
14853  if isinstance(p, tuple):
14854  d, p = p
14855  self.__dict__.update(d)
14856  return self._set_from_binary(p)
14857 
14858  __swig_destroy__ = _IMP_core.delete_ClusterProvenance
14859 
14860 # Register ClusterProvenance in _IMP_core:
14861 _IMP_core.ClusterProvenance_swigregister(ClusterProvenance)
14862 class ScriptProvenance(Provenance):
14863  r"""Proxy of C++ IMP::core::ScriptProvenance class."""
14864 
14865  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14866 
14867  def set_filename(self, filename):
14868  r"""set_filename(ScriptProvenance self, std::string filename)"""
14869  return _IMP_core.ScriptProvenance_set_filename(self, filename)
14870 
14871  def get_filename(self):
14872  r"""get_filename(ScriptProvenance self) -> std::string"""
14873  return _IMP_core.ScriptProvenance_get_filename(self)
14874 
14875  def __init__(self, *args):
14876  r"""
14877  __init__(ScriptProvenance self) -> ScriptProvenance
14878  __init__(ScriptProvenance self, Model m, ParticleIndex id) -> ScriptProvenance
14879  __init__(ScriptProvenance self, _ParticleAdaptor d) -> ScriptProvenance
14880  """
14881  _IMP_core.ScriptProvenance_swiginit(self, _IMP_core.new_ScriptProvenance(*args))
14882 
14883  @staticmethod
14884  def get_is_setup(*args):
14885  r"""
14886  get_is_setup(Model m, ParticleIndex pi) -> bool
14887  get_is_setup(_ParticleAdaptor p) -> bool
14888  """
14889  return _IMP_core.ScriptProvenance_get_is_setup(*args)
14890 
14891  def show(self, *args):
14892  r"""show(ScriptProvenance self, _ostream out=std::cout)"""
14893  return _IMP_core.ScriptProvenance_show(self, *args)
14894 
14895  @staticmethod
14896  def setup_particle(*args):
14897  r"""
14898  setup_particle(Model m, ParticleIndex pi, std::string filename) -> ScriptProvenance
14899  setup_particle(_ParticleAdaptor pa, std::string filename) -> ScriptProvenance
14900  setup_particle(Model m, ParticleIndex pi, ScriptProvenance o) -> ScriptProvenance
14901  setup_particle(_ParticleAdaptor pa, ScriptProvenance o) -> ScriptProvenance
14902  """
14903  return _IMP_core.ScriptProvenance_setup_particle(*args)
14904 
14905  def add_attribute(self, *args):
14906  r"""
14907  add_attribute(ScriptProvenance self, FloatKey k, IMP::Float v, bool opt)
14908  add_attribute(ScriptProvenance self, FloatKey a0, IMP::Float a1)
14909  add_attribute(ScriptProvenance self, IntKey a0, IMP::Int a1)
14910  add_attribute(ScriptProvenance self, FloatsKey a0, IMP::Floats a1)
14911  add_attribute(ScriptProvenance self, IntsKey a0, IMP::Ints a1)
14912  add_attribute(ScriptProvenance self, StringKey a0, IMP::String a1)
14913  add_attribute(ScriptProvenance self, ParticleIndexKey a0, Particle a1)
14914  add_attribute(ScriptProvenance self, ObjectKey a0, Object a1)
14915  add_attribute(ScriptProvenance self, SparseFloatKey a0, IMP::Float a1)
14916  add_attribute(ScriptProvenance self, SparseIntKey a0, IMP::Int a1)
14917  add_attribute(ScriptProvenance self, SparseStringKey a0, IMP::String a1)
14918  add_attribute(ScriptProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14919  """
14920  return _IMP_core.ScriptProvenance_add_attribute(self, *args)
14921 
14922  def get_value(self, *args):
14923  r"""
14924  get_value(ScriptProvenance self, FloatKey a0) -> IMP::Float
14925  get_value(ScriptProvenance self, IntKey a0) -> IMP::Int
14926  get_value(ScriptProvenance self, FloatsKey a0) -> IMP::Floats
14927  get_value(ScriptProvenance self, IntsKey a0) -> IMP::Ints
14928  get_value(ScriptProvenance self, StringKey a0) -> IMP::String
14929  get_value(ScriptProvenance self, ParticleIndexKey a0) -> Particle
14930  get_value(ScriptProvenance self, ObjectKey a0) -> Object
14931  get_value(ScriptProvenance self, SparseFloatKey a0) -> IMP::Float
14932  get_value(ScriptProvenance self, SparseIntKey a0) -> IMP::Int
14933  get_value(ScriptProvenance self, SparseStringKey a0) -> IMP::String
14934  get_value(ScriptProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14935  """
14936  return _IMP_core.ScriptProvenance_get_value(self, *args)
14937 
14938  def set_value(self, *args):
14939  r"""
14940  set_value(ScriptProvenance self, FloatKey a0, IMP::Float a1)
14941  set_value(ScriptProvenance self, IntKey a0, IMP::Int a1)
14942  set_value(ScriptProvenance self, FloatsKey a0, IMP::Floats a1)
14943  set_value(ScriptProvenance self, IntsKey a0, IMP::Ints a1)
14944  set_value(ScriptProvenance self, StringKey a0, IMP::String a1)
14945  set_value(ScriptProvenance self, ParticleIndexKey a0, Particle a1)
14946  set_value(ScriptProvenance self, ObjectKey a0, Object a1)
14947  set_value(ScriptProvenance self, SparseFloatKey a0, IMP::Float a1)
14948  set_value(ScriptProvenance self, SparseIntKey a0, IMP::Int a1)
14949  set_value(ScriptProvenance self, SparseStringKey a0, IMP::String a1)
14950  set_value(ScriptProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14951  """
14952  return _IMP_core.ScriptProvenance_set_value(self, *args)
14953 
14954  def remove_attribute(self, *args):
14955  r"""
14956  remove_attribute(ScriptProvenance self, FloatKey a0)
14957  remove_attribute(ScriptProvenance self, IntKey a0)
14958  remove_attribute(ScriptProvenance self, FloatsKey a0)
14959  remove_attribute(ScriptProvenance self, IntsKey a0)
14960  remove_attribute(ScriptProvenance self, StringKey a0)
14961  remove_attribute(ScriptProvenance self, ParticleIndexKey a0)
14962  remove_attribute(ScriptProvenance self, ObjectKey a0)
14963  remove_attribute(ScriptProvenance self, SparseFloatKey a0)
14964  remove_attribute(ScriptProvenance self, SparseIntKey a0)
14965  remove_attribute(ScriptProvenance self, SparseStringKey a0)
14966  remove_attribute(ScriptProvenance self, SparseParticleIndexKey a0)
14967  """
14968  return _IMP_core.ScriptProvenance_remove_attribute(self, *args)
14969 
14970  def has_attribute(self, *args):
14971  r"""
14972  has_attribute(ScriptProvenance self, FloatKey a0) -> bool
14973  has_attribute(ScriptProvenance self, IntKey a0) -> bool
14974  has_attribute(ScriptProvenance self, FloatsKey a0) -> bool
14975  has_attribute(ScriptProvenance self, IntsKey a0) -> bool
14976  has_attribute(ScriptProvenance self, StringKey a0) -> bool
14977  has_attribute(ScriptProvenance self, ParticleIndexKey a0) -> bool
14978  has_attribute(ScriptProvenance self, ObjectKey a0) -> bool
14979  has_attribute(ScriptProvenance self, SparseFloatKey a0) -> bool
14980  has_attribute(ScriptProvenance self, SparseIntKey a0) -> bool
14981  has_attribute(ScriptProvenance self, SparseStringKey a0) -> bool
14982  has_attribute(ScriptProvenance self, SparseParticleIndexKey a0) -> bool
14983  """
14984  return _IMP_core.ScriptProvenance_has_attribute(self, *args)
14985 
14986  def get_derivative(self, a0):
14987  r"""get_derivative(ScriptProvenance self, FloatKey a0) -> double"""
14988  return _IMP_core.ScriptProvenance_get_derivative(self, a0)
14989 
14990  def get_name(self):
14991  r"""get_name(ScriptProvenance self) -> std::string"""
14992  return _IMP_core.ScriptProvenance_get_name(self)
14993 
14994  def clear_caches(self):
14995  r"""clear_caches(ScriptProvenance self)"""
14996  return _IMP_core.ScriptProvenance_clear_caches(self)
14997 
14998  def set_name(self, a0):
14999  r"""set_name(ScriptProvenance self, std::string a0)"""
15000  return _IMP_core.ScriptProvenance_set_name(self, a0)
15001 
15002  def set_check_level(self, a0):
15003  r"""set_check_level(ScriptProvenance self, IMP::CheckLevel a0)"""
15004  return _IMP_core.ScriptProvenance_set_check_level(self, a0)
15005 
15006  def add_to_derivative(self, a0, a1, a2):
15007  r"""add_to_derivative(ScriptProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15008  return _IMP_core.ScriptProvenance_add_to_derivative(self, a0, a1, a2)
15009 
15010  def set_is_optimized(self, a0, a1):
15011  r"""set_is_optimized(ScriptProvenance self, FloatKey a0, bool a1)"""
15012  return _IMP_core.ScriptProvenance_set_is_optimized(self, a0, a1)
15013 
15014  def get_is_optimized(self, a0):
15015  r"""get_is_optimized(ScriptProvenance self, FloatKey a0) -> bool"""
15016  return _IMP_core.ScriptProvenance_get_is_optimized(self, a0)
15017 
15018  def get_check_level(self):
15019  r"""get_check_level(ScriptProvenance self) -> IMP::CheckLevel"""
15020  return _IMP_core.ScriptProvenance_get_check_level(self)
15021 
15022  def __eq__(self, *args):
15023  r"""
15024  __eq__(ScriptProvenance self, ScriptProvenance o) -> bool
15025  __eq__(ScriptProvenance self, Particle d) -> bool
15026  """
15027  return _IMP_core.ScriptProvenance___eq__(self, *args)
15028 
15029  def __ne__(self, *args):
15030  r"""
15031  __ne__(ScriptProvenance self, ScriptProvenance o) -> bool
15032  __ne__(ScriptProvenance self, Particle d) -> bool
15033  """
15034  return _IMP_core.ScriptProvenance___ne__(self, *args)
15035 
15036  def __le__(self, *args):
15037  r"""
15038  __le__(ScriptProvenance self, ScriptProvenance o) -> bool
15039  __le__(ScriptProvenance self, Particle d) -> bool
15040  """
15041  return _IMP_core.ScriptProvenance___le__(self, *args)
15042 
15043  def __lt__(self, *args):
15044  r"""
15045  __lt__(ScriptProvenance self, ScriptProvenance o) -> bool
15046  __lt__(ScriptProvenance self, Particle d) -> bool
15047  """
15048  return _IMP_core.ScriptProvenance___lt__(self, *args)
15049 
15050  def __ge__(self, *args):
15051  r"""
15052  __ge__(ScriptProvenance self, ScriptProvenance o) -> bool
15053  __ge__(ScriptProvenance self, Particle d) -> bool
15054  """
15055  return _IMP_core.ScriptProvenance___ge__(self, *args)
15056 
15057  def __gt__(self, *args):
15058  r"""
15059  __gt__(ScriptProvenance self, ScriptProvenance o) -> bool
15060  __gt__(ScriptProvenance self, Particle d) -> bool
15061  """
15062  return _IMP_core.ScriptProvenance___gt__(self, *args)
15063 
15064  def __hash__(self):
15065  r"""__hash__(ScriptProvenance self) -> std::size_t"""
15066  return _IMP_core.ScriptProvenance___hash__(self)
15067 
15068  def __str__(self):
15069  r"""__str__(ScriptProvenance self) -> std::string"""
15070  return _IMP_core.ScriptProvenance___str__(self)
15071 
15072  def __repr__(self):
15073  r"""__repr__(ScriptProvenance self) -> std::string"""
15074  return _IMP_core.ScriptProvenance___repr__(self)
15075 
15076  def _get_as_binary(self):
15077  r"""_get_as_binary(ScriptProvenance self) -> PyObject *"""
15078  return _IMP_core.ScriptProvenance__get_as_binary(self)
15079 
15080  def _set_from_binary(self, p):
15081  r"""_set_from_binary(ScriptProvenance self, PyObject * p)"""
15082  return _IMP_core.ScriptProvenance__set_from_binary(self, p)
15083 
15084  def __getstate__(self):
15085  p = self._get_as_binary()
15086  if len(self.__dict__) > 1:
15087  d = self.__dict__.copy()
15088  del d['this']
15089  p = (d, p)
15090  return p
15091 
15092  def __setstate__(self, p):
15093  if not hasattr(self, 'this'):
15094  self.__init__()
15095  if isinstance(p, tuple):
15096  d, p = p
15097  self.__dict__.update(d)
15098  return self._set_from_binary(p)
15099 
15100  __swig_destroy__ = _IMP_core.delete_ScriptProvenance
15101 
15102 # Register ScriptProvenance in _IMP_core:
15103 _IMP_core.ScriptProvenance_swigregister(ScriptProvenance)
15104 class SoftwareProvenance(Provenance):
15105  r"""Proxy of C++ IMP::core::SoftwareProvenance class."""
15106 
15107  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15108 
15109  def set_software_name(self, name):
15110  r"""set_software_name(SoftwareProvenance self, std::string name)"""
15111  return _IMP_core.SoftwareProvenance_set_software_name(self, name)
15112 
15113  def get_software_name(self):
15114  r"""get_software_name(SoftwareProvenance self) -> std::string"""
15115  return _IMP_core.SoftwareProvenance_get_software_name(self)
15116 
15117  def set_version(self, version):
15118  r"""set_version(SoftwareProvenance self, std::string version)"""
15119  return _IMP_core.SoftwareProvenance_set_version(self, version)
15120 
15121  def get_version(self):
15122  r"""get_version(SoftwareProvenance self) -> std::string"""
15123  return _IMP_core.SoftwareProvenance_get_version(self)
15124 
15125  def set_location(self, location):
15126  r"""set_location(SoftwareProvenance self, std::string location)"""
15127  return _IMP_core.SoftwareProvenance_set_location(self, location)
15128 
15129  def get_location(self):
15130  r"""get_location(SoftwareProvenance self) -> std::string"""
15131  return _IMP_core.SoftwareProvenance_get_location(self)
15132 
15133  def __init__(self, *args):
15134  r"""
15135  __init__(SoftwareProvenance self) -> SoftwareProvenance
15136  __init__(SoftwareProvenance self, Model m, ParticleIndex id) -> SoftwareProvenance
15137  __init__(SoftwareProvenance self, _ParticleAdaptor d) -> SoftwareProvenance
15138  """
15139  _IMP_core.SoftwareProvenance_swiginit(self, _IMP_core.new_SoftwareProvenance(*args))
15140 
15141  @staticmethod
15142  def get_is_setup(*args):
15143  r"""
15144  get_is_setup(Model m, ParticleIndex pi) -> bool
15145  get_is_setup(_ParticleAdaptor p) -> bool
15146  """
15147  return _IMP_core.SoftwareProvenance_get_is_setup(*args)
15148 
15149  def show(self, *args):
15150  r"""show(SoftwareProvenance self, _ostream out=std::cout)"""
15151  return _IMP_core.SoftwareProvenance_show(self, *args)
15152 
15153  @staticmethod
15154  def setup_particle(*args):
15155  r"""
15156  setup_particle(Model m, ParticleIndex pi, std::string name, std::string version, std::string location) -> SoftwareProvenance
15157  setup_particle(_ParticleAdaptor pa, std::string name, std::string version, std::string location) -> SoftwareProvenance
15158  setup_particle(Model m, ParticleIndex pi, SoftwareProvenance o) -> SoftwareProvenance
15159  setup_particle(_ParticleAdaptor pa, SoftwareProvenance o) -> SoftwareProvenance
15160  """
15161  return _IMP_core.SoftwareProvenance_setup_particle(*args)
15162 
15163  def add_attribute(self, *args):
15164  r"""
15165  add_attribute(SoftwareProvenance self, FloatKey k, IMP::Float v, bool opt)
15166  add_attribute(SoftwareProvenance self, FloatKey a0, IMP::Float a1)
15167  add_attribute(SoftwareProvenance self, IntKey a0, IMP::Int a1)
15168  add_attribute(SoftwareProvenance self, FloatsKey a0, IMP::Floats a1)
15169  add_attribute(SoftwareProvenance self, IntsKey a0, IMP::Ints a1)
15170  add_attribute(SoftwareProvenance self, StringKey a0, IMP::String a1)
15171  add_attribute(SoftwareProvenance self, ParticleIndexKey a0, Particle a1)
15172  add_attribute(SoftwareProvenance self, ObjectKey a0, Object a1)
15173  add_attribute(SoftwareProvenance self, SparseFloatKey a0, IMP::Float a1)
15174  add_attribute(SoftwareProvenance self, SparseIntKey a0, IMP::Int a1)
15175  add_attribute(SoftwareProvenance self, SparseStringKey a0, IMP::String a1)
15176  add_attribute(SoftwareProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
15177  """
15178  return _IMP_core.SoftwareProvenance_add_attribute(self, *args)
15179 
15180  def get_value(self, *args):
15181  r"""
15182  get_value(SoftwareProvenance self, FloatKey a0) -> IMP::Float
15183  get_value(SoftwareProvenance self, IntKey a0) -> IMP::Int
15184  get_value(SoftwareProvenance self, FloatsKey a0) -> IMP::Floats
15185  get_value(SoftwareProvenance self, IntsKey a0) -> IMP::Ints
15186  get_value(SoftwareProvenance self, StringKey a0) -> IMP::String
15187  get_value(SoftwareProvenance self, ParticleIndexKey a0) -> Particle
15188  get_value(SoftwareProvenance self, ObjectKey a0) -> Object
15189  get_value(SoftwareProvenance self, SparseFloatKey a0) -> IMP::Float
15190  get_value(SoftwareProvenance self, SparseIntKey a0) -> IMP::Int
15191  get_value(SoftwareProvenance self, SparseStringKey a0) -> IMP::String
15192  get_value(SoftwareProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
15193  """
15194  return _IMP_core.SoftwareProvenance_get_value(self, *args)
15195 
15196  def set_value(self, *args):
15197  r"""
15198  set_value(SoftwareProvenance self, FloatKey a0, IMP::Float a1)
15199  set_value(SoftwareProvenance self, IntKey a0, IMP::Int a1)
15200  set_value(SoftwareProvenance self, FloatsKey a0, IMP::Floats a1)
15201  set_value(SoftwareProvenance self, IntsKey a0, IMP::Ints a1)
15202  set_value(SoftwareProvenance self, StringKey a0, IMP::String a1)
15203  set_value(SoftwareProvenance self, ParticleIndexKey a0, Particle a1)
15204  set_value(SoftwareProvenance self, ObjectKey a0, Object a1)
15205  set_value(SoftwareProvenance self, SparseFloatKey a0, IMP::Float a1)
15206  set_value(SoftwareProvenance self, SparseIntKey a0, IMP::Int a1)
15207  set_value(SoftwareProvenance self, SparseStringKey a0, IMP::String a1)
15208  set_value(SoftwareProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
15209  """
15210  return _IMP_core.SoftwareProvenance_set_value(self, *args)
15211 
15212  def remove_attribute(self, *args):
15213  r"""
15214  remove_attribute(SoftwareProvenance self, FloatKey a0)
15215  remove_attribute(SoftwareProvenance self, IntKey a0)
15216  remove_attribute(SoftwareProvenance self, FloatsKey a0)
15217  remove_attribute(SoftwareProvenance self, IntsKey a0)
15218  remove_attribute(SoftwareProvenance self, StringKey a0)
15219  remove_attribute(SoftwareProvenance self, ParticleIndexKey a0)
15220  remove_attribute(SoftwareProvenance self, ObjectKey a0)
15221  remove_attribute(SoftwareProvenance self, SparseFloatKey a0)
15222  remove_attribute(SoftwareProvenance self, SparseIntKey a0)
15223  remove_attribute(SoftwareProvenance self, SparseStringKey a0)
15224  remove_attribute(SoftwareProvenance self, SparseParticleIndexKey a0)
15225  """
15226  return _IMP_core.SoftwareProvenance_remove_attribute(self, *args)
15227 
15228  def has_attribute(self, *args):
15229  r"""
15230  has_attribute(SoftwareProvenance self, FloatKey a0) -> bool
15231  has_attribute(SoftwareProvenance self, IntKey a0) -> bool
15232  has_attribute(SoftwareProvenance self, FloatsKey a0) -> bool
15233  has_attribute(SoftwareProvenance self, IntsKey a0) -> bool
15234  has_attribute(SoftwareProvenance self, StringKey a0) -> bool
15235  has_attribute(SoftwareProvenance self, ParticleIndexKey a0) -> bool
15236  has_attribute(SoftwareProvenance self, ObjectKey a0) -> bool
15237  has_attribute(SoftwareProvenance self, SparseFloatKey a0) -> bool
15238  has_attribute(SoftwareProvenance self, SparseIntKey a0) -> bool
15239  has_attribute(SoftwareProvenance self, SparseStringKey a0) -> bool
15240  has_attribute(SoftwareProvenance self, SparseParticleIndexKey a0) -> bool
15241  """
15242  return _IMP_core.SoftwareProvenance_has_attribute(self, *args)
15243 
15244  def get_derivative(self, a0):
15245  r"""get_derivative(SoftwareProvenance self, FloatKey a0) -> double"""
15246  return _IMP_core.SoftwareProvenance_get_derivative(self, a0)
15247 
15248  def get_name(self):
15249  r"""get_name(SoftwareProvenance self) -> std::string"""
15250  return _IMP_core.SoftwareProvenance_get_name(self)
15251 
15252  def clear_caches(self):
15253  r"""clear_caches(SoftwareProvenance self)"""
15254  return _IMP_core.SoftwareProvenance_clear_caches(self)
15255 
15256  def set_name(self, a0):
15257  r"""set_name(SoftwareProvenance self, std::string a0)"""
15258  return _IMP_core.SoftwareProvenance_set_name(self, a0)
15259 
15260  def set_check_level(self, a0):
15261  r"""set_check_level(SoftwareProvenance self, IMP::CheckLevel a0)"""
15262  return _IMP_core.SoftwareProvenance_set_check_level(self, a0)
15263 
15264  def add_to_derivative(self, a0, a1, a2):
15265  r"""add_to_derivative(SoftwareProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15266  return _IMP_core.SoftwareProvenance_add_to_derivative(self, a0, a1, a2)
15267 
15268  def set_is_optimized(self, a0, a1):
15269  r"""set_is_optimized(SoftwareProvenance self, FloatKey a0, bool a1)"""
15270  return _IMP_core.SoftwareProvenance_set_is_optimized(self, a0, a1)
15271 
15272  def get_is_optimized(self, a0):
15273  r"""get_is_optimized(SoftwareProvenance self, FloatKey a0) -> bool"""
15274  return _IMP_core.SoftwareProvenance_get_is_optimized(self, a0)
15275 
15276  def get_check_level(self):
15277  r"""get_check_level(SoftwareProvenance self) -> IMP::CheckLevel"""
15278  return _IMP_core.SoftwareProvenance_get_check_level(self)
15279 
15280  def __eq__(self, *args):
15281  r"""
15282  __eq__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15283  __eq__(SoftwareProvenance self, Particle d) -> bool
15284  """
15285  return _IMP_core.SoftwareProvenance___eq__(self, *args)
15286 
15287  def __ne__(self, *args):
15288  r"""
15289  __ne__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15290  __ne__(SoftwareProvenance self, Particle d) -> bool
15291  """
15292  return _IMP_core.SoftwareProvenance___ne__(self, *args)
15293 
15294  def __le__(self, *args):
15295  r"""
15296  __le__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15297  __le__(SoftwareProvenance self, Particle d) -> bool
15298  """
15299  return _IMP_core.SoftwareProvenance___le__(self, *args)
15300 
15301  def __lt__(self, *args):
15302  r"""
15303  __lt__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15304  __lt__(SoftwareProvenance self, Particle d) -> bool
15305  """
15306  return _IMP_core.SoftwareProvenance___lt__(self, *args)
15307 
15308  def __ge__(self, *args):
15309  r"""
15310  __ge__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15311  __ge__(SoftwareProvenance self, Particle d) -> bool
15312  """
15313  return _IMP_core.SoftwareProvenance___ge__(self, *args)
15314 
15315  def __gt__(self, *args):
15316  r"""
15317  __gt__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15318  __gt__(SoftwareProvenance self, Particle d) -> bool
15319  """
15320  return _IMP_core.SoftwareProvenance___gt__(self, *args)
15321 
15322  def __hash__(self):
15323  r"""__hash__(SoftwareProvenance self) -> std::size_t"""
15324  return _IMP_core.SoftwareProvenance___hash__(self)
15325 
15326  def __str__(self):
15327  r"""__str__(SoftwareProvenance self) -> std::string"""
15328  return _IMP_core.SoftwareProvenance___str__(self)
15329 
15330  def __repr__(self):
15331  r"""__repr__(SoftwareProvenance self) -> std::string"""
15332  return _IMP_core.SoftwareProvenance___repr__(self)
15333 
15334  def _get_as_binary(self):
15335  r"""_get_as_binary(SoftwareProvenance self) -> PyObject *"""
15336  return _IMP_core.SoftwareProvenance__get_as_binary(self)
15337 
15338  def _set_from_binary(self, p):
15339  r"""_set_from_binary(SoftwareProvenance self, PyObject * p)"""
15340  return _IMP_core.SoftwareProvenance__set_from_binary(self, p)
15341 
15342  def __getstate__(self):
15343  p = self._get_as_binary()
15344  if len(self.__dict__) > 1:
15345  d = self.__dict__.copy()
15346  del d['this']
15347  p = (d, p)
15348  return p
15349 
15350  def __setstate__(self, p):
15351  if not hasattr(self, 'this'):
15352  self.__init__()
15353  if isinstance(p, tuple):
15354  d, p = p
15355  self.__dict__.update(d)
15356  return self._set_from_binary(p)
15357 
15358  __swig_destroy__ = _IMP_core.delete_SoftwareProvenance
15359 
15360 # Register SoftwareProvenance in _IMP_core:
15361 _IMP_core.SoftwareProvenance_swigregister(SoftwareProvenance)
15362 class Provenanced(IMP.Decorator):
15363  r"""Proxy of C++ IMP::core::Provenanced class."""
15364 
15365  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15366 
15367  def get_provenance(self):
15368  r"""get_provenance(Provenanced self) -> Provenance"""
15369  return _IMP_core.Provenanced_get_provenance(self)
15370 
15371  def set_provenance(self, p):
15372  r"""set_provenance(Provenanced self, Provenance p)"""
15373  return _IMP_core.Provenanced_set_provenance(self, p)
15374 
15375  def __init__(self, *args):
15376  r"""
15377  __init__(Provenanced self) -> Provenanced
15378  __init__(Provenanced self, Model m, ParticleIndex id) -> Provenanced
15379  __init__(Provenanced self, _ParticleAdaptor d) -> Provenanced
15380  """
15381  _IMP_core.Provenanced_swiginit(self, _IMP_core.new_Provenanced(*args))
15382 
15383  @staticmethod
15384  def get_is_setup(*args):
15385  r"""
15386  get_is_setup(Model m, ParticleIndex pi) -> bool
15387  get_is_setup(_ParticleAdaptor p) -> bool
15388  """
15389  return _IMP_core.Provenanced_get_is_setup(*args)
15390 
15391  def show(self, *args):
15392  r"""show(Provenanced self, _ostream out=std::cout)"""
15393  return _IMP_core.Provenanced_show(self, *args)
15394 
15395  @staticmethod
15396  def setup_particle(*args):
15397  r"""
15398  setup_particle(Model m, ParticleIndex pi, Provenance p) -> Provenanced
15399  setup_particle(_ParticleAdaptor pa, Provenance p) -> Provenanced
15400  """
15401  return _IMP_core.Provenanced_setup_particle(*args)
15402 
15403  def add_attribute(self, *args):
15404  r"""
15405  add_attribute(Provenanced self, FloatKey k, IMP::Float v, bool opt)
15406  add_attribute(Provenanced self, FloatKey a0, IMP::Float a1)
15407  add_attribute(Provenanced self, IntKey a0, IMP::Int a1)
15408  add_attribute(Provenanced self, FloatsKey a0, IMP::Floats a1)
15409  add_attribute(Provenanced self, IntsKey a0, IMP::Ints a1)
15410  add_attribute(Provenanced self, StringKey a0, IMP::String a1)
15411  add_attribute(Provenanced self, ParticleIndexKey a0, Particle a1)
15412  add_attribute(Provenanced self, ObjectKey a0, Object a1)
15413  add_attribute(Provenanced self, SparseFloatKey a0, IMP::Float a1)
15414  add_attribute(Provenanced self, SparseIntKey a0, IMP::Int a1)
15415  add_attribute(Provenanced self, SparseStringKey a0, IMP::String a1)
15416  add_attribute(Provenanced self, SparseParticleIndexKey a0, ParticleIndex a1)
15417  """
15418  return _IMP_core.Provenanced_add_attribute(self, *args)
15419 
15420  def get_value(self, *args):
15421  r"""
15422  get_value(Provenanced self, FloatKey a0) -> IMP::Float
15423  get_value(Provenanced self, IntKey a0) -> IMP::Int
15424  get_value(Provenanced self, FloatsKey a0) -> IMP::Floats
15425  get_value(Provenanced self, IntsKey a0) -> IMP::Ints
15426  get_value(Provenanced self, StringKey a0) -> IMP::String
15427  get_value(Provenanced self, ParticleIndexKey a0) -> Particle
15428  get_value(Provenanced self, ObjectKey a0) -> Object
15429  get_value(Provenanced self, SparseFloatKey a0) -> IMP::Float
15430  get_value(Provenanced self, SparseIntKey a0) -> IMP::Int
15431  get_value(Provenanced self, SparseStringKey a0) -> IMP::String
15432  get_value(Provenanced self, SparseParticleIndexKey a0) -> ParticleIndex
15433  """
15434  return _IMP_core.Provenanced_get_value(self, *args)
15435 
15436  def set_value(self, *args):
15437  r"""
15438  set_value(Provenanced self, FloatKey a0, IMP::Float a1)
15439  set_value(Provenanced self, IntKey a0, IMP::Int a1)
15440  set_value(Provenanced self, FloatsKey a0, IMP::Floats a1)
15441  set_value(Provenanced self, IntsKey a0, IMP::Ints a1)
15442  set_value(Provenanced self, StringKey a0, IMP::String a1)
15443  set_value(Provenanced self, ParticleIndexKey a0, Particle a1)
15444  set_value(Provenanced self, ObjectKey a0, Object a1)
15445  set_value(Provenanced self, SparseFloatKey a0, IMP::Float a1)
15446  set_value(Provenanced self, SparseIntKey a0, IMP::Int a1)
15447  set_value(Provenanced self, SparseStringKey a0, IMP::String a1)
15448  set_value(Provenanced self, SparseParticleIndexKey a0, ParticleIndex a1)
15449  """
15450  return _IMP_core.Provenanced_set_value(self, *args)
15451 
15452  def remove_attribute(self, *args):
15453  r"""
15454  remove_attribute(Provenanced self, FloatKey a0)
15455  remove_attribute(Provenanced self, IntKey a0)
15456  remove_attribute(Provenanced self, FloatsKey a0)
15457  remove_attribute(Provenanced self, IntsKey a0)
15458  remove_attribute(Provenanced self, StringKey a0)
15459  remove_attribute(Provenanced self, ParticleIndexKey a0)
15460  remove_attribute(Provenanced self, ObjectKey a0)
15461  remove_attribute(Provenanced self, SparseFloatKey a0)
15462  remove_attribute(Provenanced self, SparseIntKey a0)
15463  remove_attribute(Provenanced self, SparseStringKey a0)
15464  remove_attribute(Provenanced self, SparseParticleIndexKey a0)
15465  """
15466  return _IMP_core.Provenanced_remove_attribute(self, *args)
15467 
15468  def has_attribute(self, *args):
15469  r"""
15470  has_attribute(Provenanced self, FloatKey a0) -> bool
15471  has_attribute(Provenanced self, IntKey a0) -> bool
15472  has_attribute(Provenanced self, FloatsKey a0) -> bool
15473  has_attribute(Provenanced self, IntsKey a0) -> bool
15474  has_attribute(Provenanced self, StringKey a0) -> bool
15475  has_attribute(Provenanced self, ParticleIndexKey a0) -> bool
15476  has_attribute(Provenanced self, ObjectKey a0) -> bool
15477  has_attribute(Provenanced self, SparseFloatKey a0) -> bool
15478  has_attribute(Provenanced self, SparseIntKey a0) -> bool
15479  has_attribute(Provenanced self, SparseStringKey a0) -> bool
15480  has_attribute(Provenanced self, SparseParticleIndexKey a0) -> bool
15481  """
15482  return _IMP_core.Provenanced_has_attribute(self, *args)
15483 
15484  def get_derivative(self, a0):
15485  r"""get_derivative(Provenanced self, FloatKey a0) -> double"""
15486  return _IMP_core.Provenanced_get_derivative(self, a0)
15487 
15488  def get_name(self):
15489  r"""get_name(Provenanced self) -> std::string"""
15490  return _IMP_core.Provenanced_get_name(self)
15491 
15492  def clear_caches(self):
15493  r"""clear_caches(Provenanced self)"""
15494  return _IMP_core.Provenanced_clear_caches(self)
15495 
15496  def set_name(self, a0):
15497  r"""set_name(Provenanced self, std::string a0)"""
15498  return _IMP_core.Provenanced_set_name(self, a0)
15499 
15500  def set_check_level(self, a0):
15501  r"""set_check_level(Provenanced self, IMP::CheckLevel a0)"""
15502  return _IMP_core.Provenanced_set_check_level(self, a0)
15503 
15504  def add_to_derivative(self, a0, a1, a2):
15505  r"""add_to_derivative(Provenanced self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15506  return _IMP_core.Provenanced_add_to_derivative(self, a0, a1, a2)
15507 
15508  def set_is_optimized(self, a0, a1):
15509  r"""set_is_optimized(Provenanced self, FloatKey a0, bool a1)"""
15510  return _IMP_core.Provenanced_set_is_optimized(self, a0, a1)
15511 
15512  def get_is_optimized(self, a0):
15513  r"""get_is_optimized(Provenanced self, FloatKey a0) -> bool"""
15514  return _IMP_core.Provenanced_get_is_optimized(self, a0)
15515 
15516  def get_check_level(self):
15517  r"""get_check_level(Provenanced self) -> IMP::CheckLevel"""
15518  return _IMP_core.Provenanced_get_check_level(self)
15519 
15520  def __eq__(self, *args):
15521  r"""
15522  __eq__(Provenanced self, Provenanced o) -> bool
15523  __eq__(Provenanced self, Particle d) -> bool
15524  """
15525  return _IMP_core.Provenanced___eq__(self, *args)
15526 
15527  def __ne__(self, *args):
15528  r"""
15529  __ne__(Provenanced self, Provenanced o) -> bool
15530  __ne__(Provenanced self, Particle d) -> bool
15531  """
15532  return _IMP_core.Provenanced___ne__(self, *args)
15533 
15534  def __le__(self, *args):
15535  r"""
15536  __le__(Provenanced self, Provenanced o) -> bool
15537  __le__(Provenanced self, Particle d) -> bool
15538  """
15539  return _IMP_core.Provenanced___le__(self, *args)
15540 
15541  def __lt__(self, *args):
15542  r"""
15543  __lt__(Provenanced self, Provenanced o) -> bool
15544  __lt__(Provenanced self, Particle d) -> bool
15545  """
15546  return _IMP_core.Provenanced___lt__(self, *args)
15547 
15548  def __ge__(self, *args):
15549  r"""
15550  __ge__(Provenanced self, Provenanced o) -> bool
15551  __ge__(Provenanced self, Particle d) -> bool
15552  """
15553  return _IMP_core.Provenanced___ge__(self, *args)
15554 
15555  def __gt__(self, *args):
15556  r"""
15557  __gt__(Provenanced self, Provenanced o) -> bool
15558  __gt__(Provenanced self, Particle d) -> bool
15559  """
15560  return _IMP_core.Provenanced___gt__(self, *args)
15561 
15562  def __hash__(self):
15563  r"""__hash__(Provenanced self) -> std::size_t"""
15564  return _IMP_core.Provenanced___hash__(self)
15565 
15566  def __str__(self):
15567  r"""__str__(Provenanced self) -> std::string"""
15568  return _IMP_core.Provenanced___str__(self)
15569 
15570  def __repr__(self):
15571  r"""__repr__(Provenanced self) -> std::string"""
15572  return _IMP_core.Provenanced___repr__(self)
15573 
15574  def _get_as_binary(self):
15575  r"""_get_as_binary(Provenanced self) -> PyObject *"""
15576  return _IMP_core.Provenanced__get_as_binary(self)
15577 
15578  def _set_from_binary(self, p):
15579  r"""_set_from_binary(Provenanced self, PyObject * p)"""
15580  return _IMP_core.Provenanced__set_from_binary(self, p)
15581 
15582  def __getstate__(self):
15583  p = self._get_as_binary()
15584  if len(self.__dict__) > 1:
15585  d = self.__dict__.copy()
15586  del d['this']
15587  p = (d, p)
15588  return p
15589 
15590  def __setstate__(self, p):
15591  if not hasattr(self, 'this'):
15592  self.__init__()
15593  if isinstance(p, tuple):
15594  d, p = p
15595  self.__dict__.update(d)
15596  return self._set_from_binary(p)
15597 
15598  __swig_destroy__ = _IMP_core.delete_Provenanced
15599 
15600 # Register Provenanced in _IMP_core:
15601 _IMP_core.Provenanced_swigregister(Provenanced)
15602 
15603 def add_provenance(m, pi, p):
15604  r"""add_provenance(Model m, ParticleIndex pi, Provenance p)"""
15605  return _IMP_core.add_provenance(m, pi, p)
15606 
15607 def create_clone(p):
15608  r"""create_clone(Provenance p) -> Provenance"""
15609  return _IMP_core.create_clone(p)
15610 
15612  r"""
15613  get_transformation_aligning_first_to_second(IMP::ParticlesTemp const & a, IMP::ParticlesTemp const & b) -> Transformation3D
15614  get_transformation_aligning_first_to_second(IMP::ParticlesTemp const & a, IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & b) -> Transformation3D
15615  get_transformation_aligning_first_to_second(IMP::Vector< IMP::algebra::VectorD< 3 >,std::allocator< IMP::algebra::VectorD< 3 > > > const & a, IMP::ParticlesTemp const & b) -> Transformation3D
15616  """
15617  return _IMP_core.get_transformation_aligning_first_to_second(*args)
15618 
15619 def create_restraint(ps, pp):
15620  r"""create_restraint(PairScore ps, IMP::ParticlePair pp) -> Restraint"""
15621  return _IMP_core.create_restraint(ps, pp)
15623  r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::LOWER > class."""
15624 
15625  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15626 
15627  def __init__(self, *args):
15628  r"""
15629  __init__(TruncatedHarmonicLowerBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicLowerBound
15630  __init__(TruncatedHarmonicLowerBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicLowerBound
15631  """
15632  _IMP_core.TruncatedHarmonicLowerBound_swiginit(self, _IMP_core.new_TruncatedHarmonicLowerBound(*args))
15633 
15634  def get_version_info(self):
15635  r"""get_version_info(TruncatedHarmonicLowerBound self) -> VersionInfo"""
15636  return _IMP_core.TruncatedHarmonicLowerBound_get_version_info(self)
15637  __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicLowerBound
15638 
15639  def __str__(self):
15640  r"""__str__(TruncatedHarmonicLowerBound self) -> std::string"""
15641  return _IMP_core.TruncatedHarmonicLowerBound___str__(self)
15642 
15643  def __repr__(self):
15644  r"""__repr__(TruncatedHarmonicLowerBound self) -> std::string"""
15645  return _IMP_core.TruncatedHarmonicLowerBound___repr__(self)
15646 
15647  @staticmethod
15648  def get_from(o):
15649  return _object_cast_to_TruncatedHarmonic(o)
15650 
15651 
15652 # Register TruncatedHarmonicLowerBound in _IMP_core:
15653 _IMP_core.TruncatedHarmonicLowerBound_swigregister(TruncatedHarmonicLowerBound)
15655  r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::UPPER > class."""
15656 
15657  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15658 
15659  def __init__(self, *args):
15660  r"""
15661  __init__(TruncatedHarmonicUpperBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicUpperBound
15662  __init__(TruncatedHarmonicUpperBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicUpperBound
15663  """
15664  _IMP_core.TruncatedHarmonicUpperBound_swiginit(self, _IMP_core.new_TruncatedHarmonicUpperBound(*args))
15665 
15666  def get_version_info(self):
15667  r"""get_version_info(TruncatedHarmonicUpperBound self) -> VersionInfo"""
15668  return _IMP_core.TruncatedHarmonicUpperBound_get_version_info(self)
15669  __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicUpperBound
15670 
15671  def __str__(self):
15672  r"""__str__(TruncatedHarmonicUpperBound self) -> std::string"""
15673  return _IMP_core.TruncatedHarmonicUpperBound___str__(self)
15674 
15675  def __repr__(self):
15676  r"""__repr__(TruncatedHarmonicUpperBound self) -> std::string"""
15677  return _IMP_core.TruncatedHarmonicUpperBound___repr__(self)
15678 
15679  @staticmethod
15680  def get_from(o):
15681  return _object_cast_to_TruncatedHarmonic(o)
15682 
15683 
15684 # Register TruncatedHarmonicUpperBound in _IMP_core:
15685 _IMP_core.TruncatedHarmonicUpperBound_swigregister(TruncatedHarmonicUpperBound)
15687  r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::BOTH > class."""
15688 
15689  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15690 
15691  def __init__(self, *args):
15692  r"""
15693  __init__(TruncatedHarmonicBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicBound
15694  __init__(TruncatedHarmonicBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicBound
15695  """
15696  _IMP_core.TruncatedHarmonicBound_swiginit(self, _IMP_core.new_TruncatedHarmonicBound(*args))
15697 
15698  def get_version_info(self):
15699  r"""get_version_info(TruncatedHarmonicBound self) -> VersionInfo"""
15700  return _IMP_core.TruncatedHarmonicBound_get_version_info(self)
15701  __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicBound
15702 
15703  def __str__(self):
15704  r"""__str__(TruncatedHarmonicBound self) -> std::string"""
15705  return _IMP_core.TruncatedHarmonicBound___str__(self)
15706 
15707  def __repr__(self):
15708  r"""__repr__(TruncatedHarmonicBound self) -> std::string"""
15709  return _IMP_core.TruncatedHarmonicBound___repr__(self)
15710 
15711  @staticmethod
15712  def get_from(o):
15713  return _object_cast_to_TruncatedHarmonic(o)
15714 
15715 
15716 # Register TruncatedHarmonicBound in _IMP_core:
15717 _IMP_core.TruncatedHarmonicBound_swigregister(TruncatedHarmonicBound)
15718 class ParticleType(IMP._Value):
15719  r"""Proxy of C++ IMP::Key< 34897493 > class."""
15720 
15721  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15722 
15723  def __init__(self, *args):
15724  r"""
15725  __init__(ParticleType self) -> ParticleType
15726  __init__(ParticleType self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleType
15727  __init__(ParticleType self, unsigned int i) -> ParticleType
15728  """
15729  _IMP_core.ParticleType_swiginit(self, _IMP_core.new_ParticleType(*args))
15730 
15731  @staticmethod
15732  def add_key(sc):
15733  r"""add_key(std::string sc) -> unsigned int"""
15734  return _IMP_core.ParticleType_add_key(sc)
15735 
15736  @staticmethod
15737  def get_key_exists(sc):
15738  r"""get_key_exists(std::string sc) -> bool"""
15739  return _IMP_core.ParticleType_get_key_exists(sc)
15740 
15741  def get_string(self):
15742  r"""get_string(ParticleType self) -> std::string const"""
15743  return _IMP_core.ParticleType_get_string(self)
15744 
15745  def __cmp__(self, o):
15746  r"""__cmp__(ParticleType self, ParticleType o) -> int"""
15747  return _IMP_core.ParticleType___cmp__(self, o)
15748 
15749  def __eq__(self, o):
15750  r"""__eq__(ParticleType self, ParticleType o) -> bool"""
15751  return _IMP_core.ParticleType___eq__(self, o)
15752 
15753  def __ne__(self, o):
15754  r"""__ne__(ParticleType self, ParticleType o) -> bool"""
15755  return _IMP_core.ParticleType___ne__(self, o)
15756 
15757  def __lt__(self, o):
15758  r"""__lt__(ParticleType self, ParticleType o) -> bool"""
15759  return _IMP_core.ParticleType___lt__(self, o)
15760 
15761  def __gt__(self, o):
15762  r"""__gt__(ParticleType self, ParticleType o) -> bool"""
15763  return _IMP_core.ParticleType___gt__(self, o)
15764 
15765  def __ge__(self, o):
15766  r"""__ge__(ParticleType self, ParticleType o) -> bool"""
15767  return _IMP_core.ParticleType___ge__(self, o)
15768 
15769  def __le__(self, o):
15770  r"""__le__(ParticleType self, ParticleType o) -> bool"""
15771  return _IMP_core.ParticleType___le__(self, o)
15772 
15773  def __hash__(self):
15774  r"""__hash__(ParticleType self) -> std::size_t"""
15775  return _IMP_core.ParticleType___hash__(self)
15776 
15777  def show(self, *args):
15778  r"""show(ParticleType self, _ostream out=std::cout)"""
15779  return _IMP_core.ParticleType_show(self, *args)
15780 
15781  @staticmethod
15782  def add_alias(old_key, new_name):
15783  r"""add_alias(ParticleType old_key, std::string new_name) -> ParticleType"""
15784  return _IMP_core.ParticleType_add_alias(old_key, new_name)
15785 
15786  @staticmethod
15787  def get_number_of_keys():
15788  r"""get_number_of_keys() -> unsigned int"""
15789  return _IMP_core.ParticleType_get_number_of_keys()
15790 
15791  def get_index(self):
15792  r"""get_index(ParticleType self) -> unsigned int"""
15793  return _IMP_core.ParticleType_get_index(self)
15794 
15795  @staticmethod
15796  def show_all(out):
15797  r"""show_all(_ostream out)"""
15798  return _IMP_core.ParticleType_show_all(out)
15799 
15800  @staticmethod
15801  def get_all_strings():
15802  r"""get_all_strings() -> IMP::Vector< std::string >"""
15803  return _IMP_core.ParticleType_get_all_strings()
15804 
15805  @staticmethod
15806  def get_number_unique():
15807  r"""get_number_unique() -> unsigned int"""
15808  return _IMP_core.ParticleType_get_number_unique()
15809 
15810  def __str__(self):
15811  r"""__str__(ParticleType self) -> std::string"""
15812  return _IMP_core.ParticleType___str__(self)
15813 
15814  def __repr__(self):
15815  r"""__repr__(ParticleType self) -> std::string"""
15816  return _IMP_core.ParticleType___repr__(self)
15817  __swig_destroy__ = _IMP_core.delete_ParticleType
15818 
15819 # Register ParticleType in _IMP_core:
15820 _IMP_core.ParticleType_swigregister(ParticleType)
15822  r"""Proxy of C++ IMP::core::GenericAttributeSingletonScore< UnaryFunction > class."""
15823 
15824  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15825  __repr__ = _swig_repr
15826 
15827  def __init__(self, f, k):
15828  r"""__init__(AttributeSingletonScore self, UnaryFunction f, FloatKey k) -> AttributeSingletonScore"""
15829  _IMP_core.AttributeSingletonScore_swiginit(self, _IMP_core.new_AttributeSingletonScore(f, k))
15830 
15831  def do_get_inputs(self, m, pis):
15832  r"""do_get_inputs(AttributeSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15833  return _IMP_core.AttributeSingletonScore_do_get_inputs(self, m, pis)
15834 
15835  def get_unary_function(self):
15836  r"""get_unary_function(AttributeSingletonScore self) -> UnaryFunction"""
15837  return _IMP_core.AttributeSingletonScore_get_unary_function(self)
15838 
15839  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
15840  r"""evaluate_indexes(AttributeSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
15841  return _IMP_core.AttributeSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
15842 
15843  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
15844  r"""evaluate_indexes_scores(AttributeSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
15845  return _IMP_core.AttributeSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
15846 
15847  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
15848  r"""evaluate_indexes_delta(AttributeSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
15849  return _IMP_core.AttributeSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
15850 
15851  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
15852  r"""evaluate_if_good_indexes(AttributeSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
15853  return _IMP_core.AttributeSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
15854 
15855  def get_version_info(self):
15856  r"""get_version_info(AttributeSingletonScore self) -> VersionInfo"""
15857  return _IMP_core.AttributeSingletonScore_get_version_info(self)
15858  __swig_destroy__ = _IMP_core.delete_AttributeSingletonScore
15859 
15860 # Register AttributeSingletonScore in _IMP_core:
15861 _IMP_core.AttributeSingletonScore_swigregister(AttributeSingletonScore)
15862 
15864  r"""create_generic_attribute_singleton_score(UnaryFunction uf, FloatKey k) -> AttributeSingletonScore"""
15865  return _IMP_core.create_generic_attribute_singleton_score(uf, k)
15867  r"""Proxy of C++ IMP::core::GenericBoundingBox3DSingletonScore< UnaryFunction > class."""
15868 
15869  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15870  __repr__ = _swig_repr
15871 
15872  def __init__(self, f, bb):
15873  r"""__init__(BoundingBox3DSingletonScore self, UnaryFunction f, BoundingBox3D bb) -> BoundingBox3DSingletonScore"""
15874  _IMP_core.BoundingBox3DSingletonScore_swiginit(self, _IMP_core.new_BoundingBox3DSingletonScore(f, bb))
15875 
15876  def do_get_inputs(self, m, pis):
15877  r"""do_get_inputs(BoundingBox3DSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15878  return _IMP_core.BoundingBox3DSingletonScore_do_get_inputs(self, m, pis)
15879 
15880  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
15881  r"""evaluate_indexes(BoundingBox3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
15882  return _IMP_core.BoundingBox3DSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
15883 
15884  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
15885  r"""evaluate_indexes_scores(BoundingBox3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
15886  return _IMP_core.BoundingBox3DSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
15887 
15888  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
15889  r"""evaluate_indexes_delta(BoundingBox3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
15890  return _IMP_core.BoundingBox3DSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
15891 
15892  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
15893  r"""evaluate_if_good_indexes(BoundingBox3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
15894  return _IMP_core.BoundingBox3DSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
15895 
15896  def get_version_info(self):
15897  r"""get_version_info(BoundingBox3DSingletonScore self) -> VersionInfo"""
15898  return _IMP_core.BoundingBox3DSingletonScore_get_version_info(self)
15899  __swig_destroy__ = _IMP_core.delete_BoundingBox3DSingletonScore
15900 
15901 # Register BoundingBox3DSingletonScore in _IMP_core:
15902 _IMP_core.BoundingBox3DSingletonScore_swigregister(BoundingBox3DSingletonScore)
15903 
15904 def create_bounding_box_3d_singleton_score(f, bb):
15905  r"""create_bounding_box_3d_singleton_score(UnaryFunction f, BoundingBox3D bb) -> BoundingBox3DSingletonScore"""
15906  return _IMP_core.create_bounding_box_3d_singleton_score(f, bb)
15908  r"""Proxy of C++ IMP::core::GenericBoundingSphere3DSingletonScore< UnaryFunction > class."""
15909 
15910  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15911  __repr__ = _swig_repr
15912 
15913  def __init__(self, f, sphere):
15914  r"""__init__(BoundingSphere3DSingletonScore self, UnaryFunction f, Sphere3D sphere) -> BoundingSphere3DSingletonScore"""
15915  _IMP_core.BoundingSphere3DSingletonScore_swiginit(self, _IMP_core.new_BoundingSphere3DSingletonScore(f, sphere))
15916 
15917  def do_get_inputs(self, m, pis):
15918  r"""do_get_inputs(BoundingSphere3DSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15919  return _IMP_core.BoundingSphere3DSingletonScore_do_get_inputs(self, m, pis)
15920 
15921  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
15922  r"""evaluate_indexes(BoundingSphere3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
15923  return _IMP_core.BoundingSphere3DSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
15924 
15925  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
15926  r"""evaluate_indexes_scores(BoundingSphere3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
15927  return _IMP_core.BoundingSphere3DSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
15928 
15929  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
15930  r"""evaluate_indexes_delta(BoundingSphere3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
15931  return _IMP_core.BoundingSphere3DSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
15932 
15933  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
15934  r"""evaluate_if_good_indexes(BoundingSphere3DSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
15935  return _IMP_core.BoundingSphere3DSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
15936 
15937  def get_version_info(self):
15938  r"""get_version_info(BoundingSphere3DSingletonScore self) -> VersionInfo"""
15939  return _IMP_core.BoundingSphere3DSingletonScore_get_version_info(self)
15940  __swig_destroy__ = _IMP_core.delete_BoundingSphere3DSingletonScore
15941 
15942 # Register BoundingSphere3DSingletonScore in _IMP_core:
15943 _IMP_core.BoundingSphere3DSingletonScore_swigregister(BoundingSphere3DSingletonScore)
15944 
15945 def create_bounding_sphere_3d_singleton_score(f, sphere):
15946  r"""create_bounding_sphere_3d_singleton_score(UnaryFunction f, Sphere3D sphere) -> BoundingSphere3DSingletonScore"""
15947  return _IMP_core.create_bounding_sphere_3d_singleton_score(f, sphere)
15949  r"""Proxy of C++ IMP::core::GenericDistanceToSingletonScore< UnaryFunction > class."""
15950 
15951  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15952  __repr__ = _swig_repr
15953 
15954  def __init__(self, *args):
15955  r"""
15956  __init__(DistanceToSingletonScore self, UnaryFunction f, Vector3D pt) -> DistanceToSingletonScore
15957  __init__(DistanceToSingletonScore self) -> DistanceToSingletonScore
15958  """
15959  _IMP_core.DistanceToSingletonScore_swiginit(self, _IMP_core.new_DistanceToSingletonScore(*args))
15960 
15961  def do_get_inputs(self, m, pis):
15962  r"""do_get_inputs(DistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15963  return _IMP_core.DistanceToSingletonScore_do_get_inputs(self, m, pis)
15964 
15965  def evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked=False):
15966  r"""evaluate_indexes(DistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
15967  return _IMP_core.DistanceToSingletonScore_evaluate_indexes(self, m, p, da, lower_bound, upper_bound, all_indexes_checked)
15968 
15969  def evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked=False):
15970  r"""evaluate_indexes_scores(DistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, unsigned int lower_bound, unsigned int upper_bound, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
15971  return _IMP_core.DistanceToSingletonScore_evaluate_indexes_scores(self, m, p, da, lower_bound, upper_bound, score, all_indexes_checked)
15972 
15973  def evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked=False):
15974  r"""evaluate_indexes_delta(DistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, std::vector< unsigned int,std::allocator< unsigned int > > const & indexes, std::vector< double,std::allocator< double > > & score, bool all_indexes_checked=False) -> double"""
15975  return _IMP_core.DistanceToSingletonScore_evaluate_indexes_delta(self, m, p, da, indexes, score, all_indexes_checked)
15976 
15977  def evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked=False):
15978  r"""evaluate_if_good_indexes(DistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & p, DerivativeAccumulator da, double max, unsigned int lower_bound, unsigned int upper_bound, bool all_indexes_checked=False) -> double"""
15979  return _IMP_core.DistanceToSingletonScore_evaluate_if_good_indexes(self, m, p, da, max, lower_bound, upper_bound, all_indexes_checked)
15980 
15981  def get_version_info(self):
15982  r"""get_version_info(DistanceToSingletonScore self) -> VersionInfo"""
15983  return _IMP_core.DistanceToSingletonScore_get_version_info(self)
15984  __swig_destroy__ = _IMP_core.delete_DistanceToSingletonScore
15985 
15986  def _get_as_binary(self):
15987  r"""_get_as_binary(DistanceToSingletonScore self) -> PyObject *"""
15988  return _IMP_core.DistanceToSingletonScore__get_as_binary(self)
15989 
15990  def _set_from_binary(self, p):
15991  r"""_set_from_binary(DistanceToSingletonScore self, PyObject * p)"""
15992  return _IMP_core.DistanceToSingletonScore__set_from_binary(self, p)
15993 
15994  def __getstate__(self):
15995  p = self._get_as_binary()
15996  if len(self.__dict__) > 1:
15997  d = self.__dict__.copy()
15998  del d['this']
15999  p = (d, p)
16000  return p
16001 
16002  def __setstate__(self, p):
16003  if not hasattr(self, 'this'):
16004  self.__init__()
16005  if isinstance(p, tuple):
16006  d, p = p
16007  self.__dict__.update(d)
16008  return self._set_from_binary(p)
16009 
16010 
16011 # Register DistanceToSingletonScore in _IMP_core:
16012 _IMP_core.DistanceToSingletonScore_swigregister(DistanceToSingletonScore)
16013 
16014 def create_distance_to_singleton_score(f, pt):
16015  r"""create_distance_to_singleton_score(UnaryFunction f, Vector3D pt) -> DistanceToSingletonScore"""
16016  return _IMP_core.create_distance_to_singleton_score(f, pt)
16017 
16018 class SphereDistancePairScore(_SphereDistancePairScore.__bases__[0]):
16019  def __init__(self, uf):
16020  if isinstance(uf, HarmonicUpperBound):
16021  p = HarmonicUpperBoundSphereDistancePairScore(
16022  uf.get_mean(), uf.get_k())
16023  elif isinstance(uf, HarmonicLowerBound):
16024  if uf.get_mean() == 0.0:
16025  p = SoftSpherePairScore(uf.get_k())
16026  else:
16027  p = _SphereDistancePairScore(uf)
16028  elif isinstance(uf, Harmonic):
16029  p = HarmonicSphereDistancePairScore(
16030  uf.get_mean(), uf.get_k())
16031  else:
16032  p = _SphereDistancePairScore(uf)
16033  self.__dict__['_proxied'] = p
16034  def __getattr__(self, key):
16035  return getattr(self._proxied, key)
16036  def __setattr__(self, key, val):
16037  return setattr(self._proxied, key, val)
16038 
16039  def __getstate__(self):
16040  return self.__dict__['_proxied']
16041 
16042  def __setstate__(self, p):
16043  self.__dict__['_proxied'] = p
16044 
16045  @staticmethod
16046  def get_from(o):
16047  try:
16048  p = HarmonicUpperBoundSphereDistancePairScore.get_from(o)
16049  except ValueError:
16050  try:
16051  p = HarmonicSphereDistancePairScore.get_from(o)
16052  except ValueError:
16053  try:
16054  p = SoftSpherePairScore.get_from(o)
16055  except ValueError:
16056  p = _SphereDistancePairScore.get_from(o)
16057  obj = object.__new__(SphereDistancePairScore)
16058  obj.__dict__['_proxied'] = p
16059  return obj
16060 
16061 
16062 
16063 def get_all_provenance(p, types=[StructureProvenance, SampleProvenance,
16064  CombineProvenance, FilterProvenance,
16065  ClusterProvenance, ScriptProvenance,
16066  SoftwareProvenance]):
16067  """Yield all provenance decorators of the given types for the particle.
16068  By default, all provenance types are returned. Provenance is returned
16069  in order, most recent first. If the particle has no provenance
16070  information, an empty generator is returned."""
16071  if Provenanced.get_is_setup(p):
16072  prov = Provenanced(p).get_provenance()
16073  while prov:
16074  for c in types:
16075  if c.get_is_setup(prov):
16076  yield c(prov)
16077  prov = prov.get_previous()
16078 
16080  """Tag the given particle with the current Python script.
16081  This is a noop if the particle is already so tagged."""
16082  main = sys.modules['__main__']
16083 # Can't do anything if running from an interactive interpreter
16084  if not hasattr(main, '__file__'):
16085  return
16086  f = IMP.get_absolute_path(main.__file__)
16087  for prov in get_all_provenance(p, types=[ScriptProvenance]):
16088  if prov.get_filename() == f:
16089  return
16090  m = p.get_model()
16091  provp = IMP.Particle(m)
16092  provp.set_name('script')
16093  prov = ScriptProvenance.setup_particle(provp, f)
16094  add_provenance(m, p, prov)
16095 
16096 def add_software_provenance(p, name, version, location):
16097  """Tag the given particle with the software used to create it.
16098  This is a noop if the particle is already so tagged."""
16099  for prov in get_all_provenance(p, types=[SoftwareProvenance]):
16100  if prov.get_software_name() == name and prov.get_version() == version \
16101  and prov.get_location() == location:
16102  return
16103  m = p.get_model()
16104  provp = IMP.Particle(m)
16105  provp.set_name('software')
16106  prov = SoftwareProvenance.setup_particle(provp, name, version, location)
16107  add_provenance(m, p, prov)
16108 
16110  """Tag the given particle as being created by the current version of IMP."""
16111  add_software_provenance(p, name="Integrative Modeling Platform (IMP)",
16112  version=IMP.get_module_version(),
16113  location="https://integrativemodeling.org")
16114 
16115 
16116 def get_module_version():
16117  r"""get_module_version() -> std::string const"""
16118  return _IMP_core.get_module_version()
16119 
16120 def get_example_path(fname):
16121  r"""get_example_path(std::string fname) -> std::string"""
16122  return _IMP_core.get_example_path(fname)
16123 
16124 def get_data_path(fname):
16125  r"""get_data_path(std::string fname) -> std::string"""
16126  return _IMP_core.get_data_path(fname)
16127 
16128 from . import _version_check
16129 _version_check.check_version(get_module_version())
16130 __version__ = get_module_version()
16131 
16132 
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