IMP logo
IMP Reference Guide  develop.e004443c3b,2024/04/25
The Integrative Modeling Platform
core/__init__.py
1 # This file was automatically generated by SWIG (https://www.swig.org).
2 # Version 4.2.1
3 #
4 # Do not make changes to this file unless you know what you are doing - modify
5 # the SWIG interface file instead.
6 
7 
8 # This wrapper is part of IMP,
9 # Copyright 2007-2024 IMP Inventors. All rights reserved.
10 
11 from __future__ import print_function, division, absolute_import
12 
13 
14 
15 from sys import version_info as _swig_python_version_info
16 import _IMP_core
17 
18 try:
19  import builtins as __builtin__
20 except ImportError:
21  import __builtin__
22 
23 def _swig_repr(self):
24  try:
25  strthis = "proxy of " + self.this.__repr__()
26  except __builtin__.Exception:
27  strthis = ""
28  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
29 
30 
31 def _swig_setattr_nondynamic_instance_variable(set):
32  def set_instance_attr(self, name, value):
33  if name == "this":
34  set(self, name, value)
35  elif name == "thisown":
36  self.this.own(value)
37  elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
38  set(self, name, value)
39  else:
40  raise AttributeError("You cannot add instance attributes to %s" % self)
41  return set_instance_attr
42 
43 
44 def _swig_setattr_nondynamic_class_variable(set):
45  def set_class_attr(cls, name, value):
46  if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
47  set(cls, name, value)
48  else:
49  raise AttributeError("You cannot add class attributes to %s" % cls)
50  return set_class_attr
51 
52 
53 def _swig_add_metaclass(metaclass):
54  """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
55  def wrapper(cls):
56  return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
57  return wrapper
58 
59 
60 class _SwigNonDynamicMeta(type):
61  """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
62  __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
63 
64 
65 import weakref
66 
67 class IMP_CORE_SwigPyIterator(object):
68  r"""Proxy of C++ swig::IMP_CORE_SwigPyIterator class."""
69 
70  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
71 
72  def __init__(self, *args, **kwargs):
73  raise AttributeError("No constructor defined - class is abstract")
74  __repr__ = _swig_repr
75  __swig_destroy__ = _IMP_core.delete_IMP_CORE_SwigPyIterator
76 
77  def value(self):
78  r"""value(IMP_CORE_SwigPyIterator self) -> PyObject *"""
79  return _IMP_core.IMP_CORE_SwigPyIterator_value(self)
80 
81  def incr(self, n=1):
82  r"""incr(IMP_CORE_SwigPyIterator self, size_t n=1) -> IMP_CORE_SwigPyIterator"""
83  return _IMP_core.IMP_CORE_SwigPyIterator_incr(self, n)
84 
85  def decr(self, n=1):
86  r"""decr(IMP_CORE_SwigPyIterator self, size_t n=1) -> IMP_CORE_SwigPyIterator"""
87  return _IMP_core.IMP_CORE_SwigPyIterator_decr(self, n)
88 
89  def distance(self, x):
90  r"""distance(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> ptrdiff_t"""
91  return _IMP_core.IMP_CORE_SwigPyIterator_distance(self, x)
92 
93  def equal(self, x):
94  r"""equal(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> bool"""
95  return _IMP_core.IMP_CORE_SwigPyIterator_equal(self, x)
96 
97  def copy(self):
98  r"""copy(IMP_CORE_SwigPyIterator self) -> IMP_CORE_SwigPyIterator"""
99  return _IMP_core.IMP_CORE_SwigPyIterator_copy(self)
100 
101  def next(self):
102  r"""next(IMP_CORE_SwigPyIterator self) -> PyObject *"""
103  return _IMP_core.IMP_CORE_SwigPyIterator_next(self)
104 
105  def __next__(self):
106  r"""__next__(IMP_CORE_SwigPyIterator self) -> PyObject *"""
107  return _IMP_core.IMP_CORE_SwigPyIterator___next__(self)
108 
109  def previous(self):
110  r"""previous(IMP_CORE_SwigPyIterator self) -> PyObject *"""
111  return _IMP_core.IMP_CORE_SwigPyIterator_previous(self)
112 
113  def advance(self, n):
114  r"""advance(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator"""
115  return _IMP_core.IMP_CORE_SwigPyIterator_advance(self, n)
116 
117  def __eq__(self, x):
118  r"""__eq__(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> bool"""
119  return _IMP_core.IMP_CORE_SwigPyIterator___eq__(self, x)
120 
121  def __ne__(self, x):
122  r"""__ne__(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> bool"""
123  return _IMP_core.IMP_CORE_SwigPyIterator___ne__(self, x)
124 
125  def __iadd__(self, n):
126  r"""__iadd__(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator"""
127  return _IMP_core.IMP_CORE_SwigPyIterator___iadd__(self, n)
128 
129  def __isub__(self, n):
130  r"""__isub__(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator"""
131  return _IMP_core.IMP_CORE_SwigPyIterator___isub__(self, n)
132 
133  def __add__(self, n):
134  r"""__add__(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator"""
135  return _IMP_core.IMP_CORE_SwigPyIterator___add__(self, n)
136 
137  def __sub__(self, *args):
138  r"""
139  __sub__(IMP_CORE_SwigPyIterator self, ptrdiff_t n) -> IMP_CORE_SwigPyIterator
140  __sub__(IMP_CORE_SwigPyIterator self, IMP_CORE_SwigPyIterator x) -> ptrdiff_t
141  """
142  return _IMP_core.IMP_CORE_SwigPyIterator___sub__(self, *args)
143  def __iter__(self):
144  return self
145 
146 # Register IMP_CORE_SwigPyIterator in _IMP_core:
147 _IMP_core.IMP_CORE_SwigPyIterator_swigregister(IMP_CORE_SwigPyIterator)
148 
149 _value_types=[]
150 _object_types=[]
151 _raii_types=[]
152 _plural_types=[]
153 
154 IMP_DEBUG = _IMP_core.IMP_DEBUG
155 
156 IMP_RELEASE = _IMP_core.IMP_RELEASE
157 
158 IMP_SILENT = _IMP_core.IMP_SILENT
159 
160 IMP_PROGRESS = _IMP_core.IMP_PROGRESS
161 
162 IMP_TERSE = _IMP_core.IMP_TERSE
163 
164 IMP_VERBOSE = _IMP_core.IMP_VERBOSE
165 
166 IMP_MEMORY = _IMP_core.IMP_MEMORY
167 
168 IMP_NONE = _IMP_core.IMP_NONE
169 
170 IMP_USAGE = _IMP_core.IMP_USAGE
171 
172 IMP_INTERNAL = _IMP_core.IMP_INTERNAL
173 
174 IMP_KERNEL_HAS_LOG4CXX = _IMP_core.IMP_KERNEL_HAS_LOG4CXX
175 
176 IMP_COMPILER_HAS_CEREAL_RAW_POINTER = _IMP_core.IMP_COMPILER_HAS_CEREAL_RAW_POINTER
177 
178 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_core.IMP_COMPILER_HAS_DEBUG_VECTOR
179 
180 IMP_COMPILER_HAS_RANDOM_SHUFFLE = _IMP_core.IMP_COMPILER_HAS_RANDOM_SHUFFLE
181 
182 IMP_COMPILER_HAS_THREE_WAY = _IMP_core.IMP_COMPILER_HAS_THREE_WAY
183 
184 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_core.IMP_KERNEL_HAS_BOOST_RANDOM
185 
186 IMP_KERNEL_HAS_NUMPY = _IMP_core.IMP_KERNEL_HAS_NUMPY
187 
188 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_core.IMP_KERNEL_HAS_GPERFTOOLS
189 
190 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_core.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
191 
192 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_core.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
193 
194 IMPKERNEL_SHOW_WARNINGS = _IMP_core.IMPKERNEL_SHOW_WARNINGS
195 
196 
197 import sys
198 class _DirectorObjects(object):
199  """@internal Simple class to keep references to director objects
200  to prevent premature deletion."""
201  def __init__(self):
202  self._objects = []
203  def register(self, obj):
204  """Take a reference to a director object; will only work for
205  refcounted C++ classes"""
206  if hasattr(obj, 'get_ref_count'):
207  self._objects.append(obj)
208  def cleanup(self):
209  """Only drop our reference and allow cleanup by Python if no other
210  Python references exist (we hold 3 references: one in self._objects,
211  one in x, and one in the argument list for getrefcount) *and* no
212  other C++ references exist (the Python object always holds one)"""
213  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
214  or x.get_ref_count() > 1]
215 # Do in two steps so the references are kept until the end of the
216 # function (deleting references may trigger a fresh call to this method)
217  self._objects = objs
218  def get_object_count(self):
219  """Get number of director objects (useful for testing only)"""
220  return len(self._objects)
221 _director_objects = _DirectorObjects()
222 
223 class _ostream(object):
224  r"""Proxy of C++ std::ostream class."""
225 
226  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
227 
228  def __init__(self, *args, **kwargs):
229  raise AttributeError("No constructor defined")
230  __repr__ = _swig_repr
231 
232  def write(self, osa_buf):
233  r"""write(_ostream self, char const * osa_buf)"""
234  return _IMP_core._ostream_write(self, osa_buf)
235 
236 # Register _ostream in _IMP_core:
237 _IMP_core._ostream_swigregister(_ostream)
238 IMP_C_OPEN_BINARY = _IMP_core.IMP_C_OPEN_BINARY
239 
240 import IMP
241 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_CGAL_HAS_BOOST_FILESYSTEM
242 
243 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
244 
245 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_core.IMP_CGAL_HAS_BOOST_RANDOM
246 
247 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_core.IMP_CGAL_HAS_BOOST_SYSTEM
248 
249 IMP_CGAL_HAS_NUMPY = _IMP_core.IMP_CGAL_HAS_NUMPY
250 
251 IMPCGAL_SHOW_WARNINGS = _IMP_core.IMPCGAL_SHOW_WARNINGS
252 
253 import IMP.cgal
254 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_core.IMP_ALGEBRA_HAS_IMP_CGAL
255 
256 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
257 
258 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
259 
260 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_core.IMP_ALGEBRA_HAS_BOOST_RANDOM
261 
262 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_core.IMP_ALGEBRA_HAS_BOOST_SYSTEM
263 
264 IMP_ALGEBRA_HAS_CGAL = _IMP_core.IMP_ALGEBRA_HAS_CGAL
265 
266 IMP_ALGEBRA_HAS_NUMPY = _IMP_core.IMP_ALGEBRA_HAS_NUMPY
267 
268 IMP_ALGEBRA_HAS_ANN = _IMP_core.IMP_ALGEBRA_HAS_ANN
269 
270 IMPALGEBRA_SHOW_WARNINGS = _IMP_core.IMPALGEBRA_SHOW_WARNINGS
271 
272 import IMP.algebra
273 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_core.IMP_DISPLAY_HAS_IMP_CGAL
274 
275 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
276 
277 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
278 
279 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_core.IMP_DISPLAY_HAS_BOOST_RANDOM
280 
281 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_core.IMP_DISPLAY_HAS_BOOST_SYSTEM
282 
283 IMP_DISPLAY_HAS_CGAL = _IMP_core.IMP_DISPLAY_HAS_CGAL
284 
285 IMP_DISPLAY_HAS_NUMPY = _IMP_core.IMP_DISPLAY_HAS_NUMPY
286 
287 IMPDISPLAY_SHOW_WARNINGS = _IMP_core.IMPDISPLAY_SHOW_WARNINGS
288 
289 import IMP.display
290 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_core.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
291 
292 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
293 
294 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
295 
296 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
297 
298 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_core.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
299 
300 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_core.IMP_SCORE_FUNCTOR_HAS_CGAL
301 
302 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_core.IMP_SCORE_FUNCTOR_HAS_HDF5
303 
304 IMP_SCORE_FUNCTOR_HAS_NUMPY = _IMP_core.IMP_SCORE_FUNCTOR_HAS_NUMPY
305 
306 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_core.IMPSCOREFUNCTOR_SHOW_WARNINGS
307 
308 import IMP.score_functor
309 IMP_CORE_HAS_IMP_CGAL = _IMP_core.IMP_CORE_HAS_IMP_CGAL
310 
311 IMP_CORE_HAS_IMP_KERNEL = _IMP_core.IMP_CORE_HAS_IMP_KERNEL
312 
313 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_core.IMP_CORE_HAS_BOOST_FILESYSTEM
314 
315 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_core.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
316 
317 IMP_CORE_HAS_BOOST_RANDOM = _IMP_core.IMP_CORE_HAS_BOOST_RANDOM
318 
319 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_core.IMP_CORE_HAS_BOOST_SYSTEM
320 
321 IMP_CORE_HAS_CGAL = _IMP_core.IMP_CORE_HAS_CGAL
322 
323 IMP_CORE_HAS_HDF5 = _IMP_core.IMP_CORE_HAS_HDF5
324 
325 IMP_CORE_HAS_NUMPY = _IMP_core.IMP_CORE_HAS_NUMPY
326 
327 IMPCORE_SHOW_WARNINGS = _IMP_core.IMPCORE_SHOW_WARNINGS
328 
329 class _OpenCubicSplineBase(IMP.UnaryFunction):
330  r"""Proxy of C++ IMP::score_functor::ScoreUnaryFunction< IMP::score_functor::OpenCubicSpline > class."""
331 
332  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
333  __repr__ = _swig_repr
334 
335  def __init__(self, *args):
336  r"""__init__(_OpenCubicSplineBase self, IMP::score_functor::OpenCubicSpline const & score, std::string name="UnaryFunction%1%") -> _OpenCubicSplineBase"""
337  _IMP_core._OpenCubicSplineBase_swiginit(self, _IMP_core.new__OpenCubicSplineBase(*args))
338 
339  def get_version_info(self):
340  r"""get_version_info(_OpenCubicSplineBase self) -> VersionInfo"""
341  return _IMP_core._OpenCubicSplineBase_get_version_info(self)
342  __swig_destroy__ = _IMP_core.delete__OpenCubicSplineBase
343 
344 # Register _OpenCubicSplineBase in _IMP_core:
345 _IMP_core._OpenCubicSplineBase_swigregister(_OpenCubicSplineBase)
346 
347 _object_types.append("MonteCarloMover")
348 
349 
350 def _object_cast_to_MonteCarloMover(o):
351  r"""_object_cast_to_MonteCarloMover(Object o) -> MonteCarloMover"""
352  return _IMP_core._object_cast_to_MonteCarloMover(o)
353 
354 MonteCarloMoverResults=list
355 _plural_types.append("MonteCarloMoverResults")
356 _value_types.append("MonteCarloMoverResult")
357 
358 
359 _object_types.append("AngleRestraint")
360 
361 
362 def _object_cast_to_AngleRestraint(o):
363  r"""_object_cast_to_AngleRestraint(Object o) -> AngleRestraint"""
364  return _IMP_core._object_cast_to_AngleRestraint(o)
365 
366 _object_types.append("AngleTripletScore")
367 
368 
369 def _object_cast_to_AngleTripletScore(o):
370  r"""_object_cast_to_AngleTripletScore(Object o) -> AngleTripletScore"""
371  return _IMP_core._object_cast_to_AngleTripletScore(o)
372 
373 _object_types.append("AttributeSingletonScore")
374 
375 
376 def _object_cast_to_AttributeSingletonScore(o):
377  r"""_object_cast_to_AttributeSingletonScore(Object o) -> AttributeSingletonScore"""
378  return _IMP_core._object_cast_to_AttributeSingletonScore(o)
379 
380 _object_types.append("BallMover")
381 
382 
383 def _object_cast_to_BallMover(o):
384  r"""_object_cast_to_BallMover(Object o) -> BallMover"""
385  return _IMP_core._object_cast_to_BallMover(o)
386 
387 _object_types.append("SerialMover")
388 
389 
390 def _object_cast_to_SerialMover(o):
391  r"""_object_cast_to_SerialMover(Object o) -> SerialMover"""
392  return _IMP_core._object_cast_to_SerialMover(o)
393 
394 _object_types.append("SubsetMover")
395 
396 
397 def _object_cast_to_SubsetMover(o):
398  r"""_object_cast_to_SubsetMover(Object o) -> SubsetMover"""
399  return _IMP_core._object_cast_to_SubsetMover(o)
400 
401 _object_types.append("DirectionMover")
402 
403 
404 def _object_cast_to_DirectionMover(o):
405  r"""_object_cast_to_DirectionMover(Object o) -> DirectionMover"""
406  return _IMP_core._object_cast_to_DirectionMover(o)
407 
408 _object_types.append("SurfaceMover")
409 
410 
411 def _object_cast_to_SurfaceMover(o):
412  r"""_object_cast_to_SurfaceMover(Object o) -> SurfaceMover"""
413  return _IMP_core._object_cast_to_SurfaceMover(o)
414 
415 _object_types.append("BoundingBox3DSingletonScore")
416 
417 
418 def _object_cast_to_BoundingBox3DSingletonScore(o):
419  r"""_object_cast_to_BoundingBox3DSingletonScore(Object o) -> BoundingBox3DSingletonScore"""
420  return _IMP_core._object_cast_to_BoundingBox3DSingletonScore(o)
421 
422 _object_types.append("BoundingSphere3DSingletonScore")
423 
424 
425 def _object_cast_to_BoundingSphere3DSingletonScore(o):
426  r"""_object_cast_to_BoundingSphere3DSingletonScore(Object o) -> BoundingSphere3DSingletonScore"""
427  return _IMP_core._object_cast_to_BoundingSphere3DSingletonScore(o)
428 
429 _object_types.append("BoxSweepClosePairsFinder")
430 
431 
432 def _object_cast_to_BoxSweepClosePairsFinder(o):
433  r"""_object_cast_to_BoxSweepClosePairsFinder(Object o) -> BoxSweepClosePairsFinder"""
434  return _IMP_core._object_cast_to_BoxSweepClosePairsFinder(o)
435 
436 _object_types.append("NearestNeighborsClosePairsFinder")
437 
438 
439 def _object_cast_to_NearestNeighborsClosePairsFinder(o):
440  r"""_object_cast_to_NearestNeighborsClosePairsFinder(Object o) -> NearestNeighborsClosePairsFinder"""
441  return _IMP_core._object_cast_to_NearestNeighborsClosePairsFinder(o)
442 
443 _object_types.append("CentroidOfRefined")
444 
445 
446 def _object_cast_to_CentroidOfRefined(o):
447  r"""_object_cast_to_CentroidOfRefined(Object o) -> CentroidOfRefined"""
448  return _IMP_core._object_cast_to_CentroidOfRefined(o)
449 
450 _object_types.append("ChecksScoreState")
451 
452 
453 def _object_cast_to_ChecksScoreState(o):
454  r"""_object_cast_to_ChecksScoreState(Object o) -> ChecksScoreState"""
455  return _IMP_core._object_cast_to_ChecksScoreState(o)
456 
457 _object_types.append("ChildrenRefiner")
458 
459 
460 def _object_cast_to_ChildrenRefiner(o):
461  r"""_object_cast_to_ChildrenRefiner(Object o) -> ChildrenRefiner"""
462  return _IMP_core._object_cast_to_ChildrenRefiner(o)
463 
464 _object_types.append("ClosePairsFinder")
465 
466 
467 def _object_cast_to_ClosePairsFinder(o):
468  r"""_object_cast_to_ClosePairsFinder(Object o) -> ClosePairsFinder"""
469  return _IMP_core._object_cast_to_ClosePairsFinder(o)
470 
471 _object_types.append("ClosePairsPairScore")
472 
473 
474 def _object_cast_to_ClosePairsPairScore(o):
475  r"""_object_cast_to_ClosePairsPairScore(Object o) -> ClosePairsPairScore"""
476  return _IMP_core._object_cast_to_ClosePairsPairScore(o)
477 
478 _object_types.append("ClosedCubicSpline")
479 
480 
481 def _object_cast_to_ClosedCubicSpline(o):
482  r"""_object_cast_to_ClosedCubicSpline(Object o) -> ClosedCubicSpline"""
483  return _IMP_core._object_cast_to_ClosedCubicSpline(o)
484 
485 _object_types.append("ConjugateGradients")
486 
487 
488 def _object_cast_to_ConjugateGradients(o):
489  r"""_object_cast_to_ConjugateGradients(Object o) -> ConjugateGradients"""
490  return _IMP_core._object_cast_to_ConjugateGradients(o)
491 
492 _object_types.append("ConnectivityRestraint")
493 
494 
495 def _object_cast_to_ConnectivityRestraint(o):
496  r"""_object_cast_to_ConnectivityRestraint(Object o) -> ConnectivityRestraint"""
497  return _IMP_core._object_cast_to_ConnectivityRestraint(o)
498 
499 _object_types.append("ConstantRestraint")
500 
501 
502 def _object_cast_to_ConstantRestraint(o):
503  r"""_object_cast_to_ConstantRestraint(Object o) -> ConstantRestraint"""
504  return _IMP_core._object_cast_to_ConstantRestraint(o)
505 
506 _object_types.append("Cosine")
507 
508 
509 def _object_cast_to_Cosine(o):
510  r"""_object_cast_to_Cosine(Object o) -> Cosine"""
511  return _IMP_core._object_cast_to_Cosine(o)
512 
513 _object_types.append("CoverRefined")
514 
515 
516 def _object_cast_to_CoverRefined(o):
517  r"""_object_cast_to_CoverRefined(Object o) -> CoverRefined"""
518  return _IMP_core._object_cast_to_CoverRefined(o)
519 
520 _object_types.append("DerivativesFromRefined")
521 
522 
523 def _object_cast_to_DerivativesFromRefined(o):
524  r"""_object_cast_to_DerivativesFromRefined(Object o) -> DerivativesFromRefined"""
525  return _IMP_core._object_cast_to_DerivativesFromRefined(o)
526 
527 _object_types.append("DerivativesToRefined")
528 
529 
530 def _object_cast_to_DerivativesToRefined(o):
531  r"""_object_cast_to_DerivativesToRefined(Object o) -> DerivativesToRefined"""
532  return _IMP_core._object_cast_to_DerivativesToRefined(o)
533 
534 _object_types.append("WeightedDerivativesToRefined")
535 
536 
537 def _object_cast_to_WeightedDerivativesToRefined(o):
538  r"""_object_cast_to_WeightedDerivativesToRefined(Object o) -> IMP::core::WeightedDerivativesToRefined *"""
539  return _IMP_core._object_cast_to_WeightedDerivativesToRefined(o)
540 
541 _object_types.append("DiameterRestraint")
542 
543 
544 def _object_cast_to_DiameterRestraint(o):
545  r"""_object_cast_to_DiameterRestraint(Object o) -> DiameterRestraint"""
546  return _IMP_core._object_cast_to_DiameterRestraint(o)
547 
548 _object_types.append("DihedralRestraint")
549 
550 
551 def _object_cast_to_DihedralRestraint(o):
552  r"""_object_cast_to_DihedralRestraint(Object o) -> DihedralRestraint"""
553  return _IMP_core._object_cast_to_DihedralRestraint(o)
554 
555 _object_types.append("DistanceRestraint")
556 
557 
558 def _object_cast_to_DistanceRestraint(o):
559  r"""_object_cast_to_DistanceRestraint(Object o) -> DistanceRestraint"""
560  return _IMP_core._object_cast_to_DistanceRestraint(o)
561 
562 _object_types.append("DistanceToSingletonScore")
563 
564 
565 def _object_cast_to_DistanceToSingletonScore(o):
566  r"""_object_cast_to_DistanceToSingletonScore(Object o) -> DistanceToSingletonScore"""
567  return _IMP_core._object_cast_to_DistanceToSingletonScore(o)
568 
569 _object_types.append("ExcludedVolumeRestraint")
570 
571 
572 def _object_cast_to_ExcludedVolumeRestraint(o):
573  r"""_object_cast_to_ExcludedVolumeRestraint(Object o) -> ExcludedVolumeRestraint"""
574  return _IMP_core._object_cast_to_ExcludedVolumeRestraint(o)
575 
576 _object_types.append("FixedRefiner")
577 
578 
579 def _object_cast_to_FixedRefiner(o):
580  r"""_object_cast_to_FixedRefiner(Object o) -> FixedRefiner"""
581  return _IMP_core._object_cast_to_FixedRefiner(o)
582 
583 _object_types.append("GridClosePairsFinder")
584 
585 
586 def _object_cast_to_GridClosePairsFinder(o):
587  r"""_object_cast_to_GridClosePairsFinder(Object o) -> GridClosePairsFinder"""
588  return _IMP_core._object_cast_to_GridClosePairsFinder(o)
589 
590 _object_types.append("Harmonic")
591 
592 
593 def _object_cast_to_Harmonic(o):
594  r"""_object_cast_to_Harmonic(Object o) -> Harmonic"""
595  return _IMP_core._object_cast_to_Harmonic(o)
596 
597 _object_types.append("HarmonicWell")
598 
599 
600 def _object_cast_to_HarmonicWell(o):
601  r"""_object_cast_to_HarmonicWell(Object o) -> HarmonicWell"""
602  return _IMP_core._object_cast_to_HarmonicWell(o)
603 
604 _object_types.append("HarmonicLowerBound")
605 
606 
607 def _object_cast_to_HarmonicLowerBound(o):
608  r"""_object_cast_to_HarmonicLowerBound(Object o) -> HarmonicLowerBound"""
609  return _IMP_core._object_cast_to_HarmonicLowerBound(o)
610 
611 _object_types.append("HarmonicUpperBound")
612 
613 
614 def _object_cast_to_HarmonicUpperBound(o):
615  r"""_object_cast_to_HarmonicUpperBound(Object o) -> HarmonicUpperBound"""
616  return _IMP_core._object_cast_to_HarmonicUpperBound(o)
617 
618 _object_types.append("HarmonicSphereDistancePairScore")
619 
620 
621 def _object_cast_to_HarmonicSphereDistancePairScore(o):
622  r"""_object_cast_to_HarmonicSphereDistancePairScore(Object o) -> HarmonicSphereDistancePairScore"""
623  return _IMP_core._object_cast_to_HarmonicSphereDistancePairScore(o)
624 
625 _object_types.append("HarmonicUpperBoundSphereDistancePairScore")
626 
627 
628 def _object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o):
629  r"""_object_cast_to_HarmonicUpperBoundSphereDistancePairScore(Object o) -> HarmonicUpperBoundSphereDistancePairScore"""
630  return _IMP_core._object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o)
631 
632 _object_types.append("HarmonicUpperBoundSphereDiameterPairScore")
633 
634 
635 def _object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o):
636  r"""_object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(Object o) -> HarmonicUpperBoundSphereDiameterPairScore"""
637  return _IMP_core._object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o)
638 
639 _object_types.append("HarmonicSurfaceDistancePairScore")
640 
641 
642 def _object_cast_to_HarmonicSurfaceDistancePairScore(o):
643  r"""_object_cast_to_HarmonicSurfaceDistancePairScore(Object o) -> HarmonicSurfaceDistancePairScore"""
644  return _IMP_core._object_cast_to_HarmonicSurfaceDistancePairScore(o)
645 
646 _object_types.append("HarmonicSurfaceHeightPairScore")
647 
648 
649 def _object_cast_to_HarmonicSurfaceHeightPairScore(o):
650  r"""_object_cast_to_HarmonicSurfaceHeightPairScore(Object o) -> HarmonicSurfaceHeightPairScore"""
651  return _IMP_core._object_cast_to_HarmonicSurfaceHeightPairScore(o)
652 
653 _object_types.append("HarmonicSurfaceDepthPairScore")
654 
655 
656 def _object_cast_to_HarmonicSurfaceDepthPairScore(o):
657  r"""_object_cast_to_HarmonicSurfaceDepthPairScore(Object o) -> HarmonicSurfaceDepthPairScore"""
658  return _IMP_core._object_cast_to_HarmonicSurfaceDepthPairScore(o)
659 
660 _object_types.append("WeightedSum")
661 
662 
663 def _object_cast_to_WeightedSum(o):
664  r"""_object_cast_to_WeightedSum(Object o) -> WeightedSum"""
665  return _IMP_core._object_cast_to_WeightedSum(o)
666 
667 _object_types.append("WeightedSumOfExponential")
668 
669 
670 def _object_cast_to_WeightedSumOfExponential(o):
671  r"""_object_cast_to_WeightedSumOfExponential(Object o) -> WeightedSumOfExponential"""
672  return _IMP_core._object_cast_to_WeightedSumOfExponential(o)
673 
674 _object_types.append("KClosePairsPairScore")
675 
676 
677 def _object_cast_to_KClosePairsPairScore(o):
678  r"""_object_cast_to_KClosePairsPairScore(Object o) -> KClosePairsPairScore"""
679  return _IMP_core._object_cast_to_KClosePairsPairScore(o)
680 
681 _object_types.append("LeavesRefiner")
682 
683 
684 def _object_cast_to_LeavesRefiner(o):
685  r"""_object_cast_to_LeavesRefiner(Object o) -> LeavesRefiner"""
686  return _IMP_core._object_cast_to_LeavesRefiner(o)
687 
688 _object_types.append("Linear")
689 
690 
691 def _object_cast_to_Linear(o):
692  r"""_object_cast_to_Linear(Object o) -> Linear"""
693  return _IMP_core._object_cast_to_Linear(o)
694 
695 _object_types.append("LogNormalMover")
696 
697 
698 def _object_cast_to_LogNormalMover(o):
699  r"""_object_cast_to_LogNormalMover(Object o) -> LogNormalMover"""
700  return _IMP_core._object_cast_to_LogNormalMover(o)
701 
702 _object_types.append("MCCGSampler")
703 
704 
705 def _object_cast_to_MCCGSampler(o):
706  r"""_object_cast_to_MCCGSampler(Object o) -> MCCGSampler"""
707  return _IMP_core._object_cast_to_MCCGSampler(o)
708 
709 _object_types.append("MonteCarlo")
710 
711 
712 def _object_cast_to_MonteCarlo(o):
713  r"""_object_cast_to_MonteCarlo(Object o) -> MonteCarlo"""
714  return _IMP_core._object_cast_to_MonteCarlo(o)
715 
716 _object_types.append("MonteCarloWithLocalOptimization")
717 
718 
719 def _object_cast_to_MonteCarloWithLocalOptimization(o):
720  r"""_object_cast_to_MonteCarloWithLocalOptimization(Object o) -> MonteCarloWithLocalOptimization"""
721  return _IMP_core._object_cast_to_MonteCarloWithLocalOptimization(o)
722 
723 _object_types.append("MonteCarloWithBasinHopping")
724 
725 
726 def _object_cast_to_MonteCarloWithBasinHopping(o):
727  r"""_object_cast_to_MonteCarloWithBasinHopping(Object o) -> MonteCarloWithBasinHopping"""
728  return _IMP_core._object_cast_to_MonteCarloWithBasinHopping(o)
729 
730 _object_types.append("MSConnectivityRestraint")
731 
732 
733 def _object_cast_to_MSConnectivityRestraint(o):
734  r"""_object_cast_to_MSConnectivityRestraint(Object o) -> MSConnectivityRestraint"""
735  return _IMP_core._object_cast_to_MSConnectivityRestraint(o)
736 
737 _object_types.append("NeighborsTable")
738 
739 
740 def _object_cast_to_NeighborsTable(o):
741  r"""_object_cast_to_NeighborsTable(Object o) -> NeighborsTable"""
742  return _IMP_core._object_cast_to_NeighborsTable(o)
743 
744 _object_types.append("NormalMover")
745 
746 
747 def _object_cast_to_NormalMover(o):
748  r"""_object_cast_to_NormalMover(Object o) -> NormalMover"""
749  return _IMP_core._object_cast_to_NormalMover(o)
750 
751 _object_types.append("NormalizedSphereDistancePairScore")
752 
753 
754 def _object_cast_to_NormalizedSphereDistancePairScore(o):
755  r"""_object_cast_to_NormalizedSphereDistancePairScore(Object o) -> NormalizedSphereDistancePairScore"""
756  return _IMP_core._object_cast_to_NormalizedSphereDistancePairScore(o)
757 
758 _object_types.append("OpenCubicSpline")
759 
760 
761 def _object_cast_to_OpenCubicSpline(o):
762  r"""_object_cast_to_OpenCubicSpline(Object o) -> OpenCubicSpline"""
763  return _IMP_core._object_cast_to_OpenCubicSpline(o)
764 
765 _object_types.append("PairConstraint")
766 
767 
768 def _object_cast_to_PairConstraint(o):
769  r"""_object_cast_to_PairConstraint(Object o) -> PairConstraint"""
770  return _IMP_core._object_cast_to_PairConstraint(o)
771 
772 _object_types.append("PairRestraint")
773 
774 
775 def _object_cast_to_PairRestraint(o):
776  r"""_object_cast_to_PairRestraint(Object o) -> PairRestraint"""
777  return _IMP_core._object_cast_to_PairRestraint(o)
778 
779 _object_types.append("QuadConstraint")
780 
781 
782 def _object_cast_to_QuadConstraint(o):
783  r"""_object_cast_to_QuadConstraint(Object o) -> QuadConstraint"""
784  return _IMP_core._object_cast_to_QuadConstraint(o)
785 
786 _object_types.append("QuadRestraint")
787 
788 
789 def _object_cast_to_QuadRestraint(o):
790  r"""_object_cast_to_QuadRestraint(Object o) -> QuadRestraint"""
791  return _IMP_core._object_cast_to_QuadRestraint(o)
792 
793 _object_types.append("QuadraticClosePairsFinder")
794 
795 
796 def _object_cast_to_QuadraticClosePairsFinder(o):
797  r"""_object_cast_to_QuadraticClosePairsFinder(Object o) -> QuadraticClosePairsFinder"""
798  return _IMP_core._object_cast_to_QuadraticClosePairsFinder(o)
799 
800 _object_types.append("RefinedPairsPairScore")
801 
802 
803 def _object_cast_to_RefinedPairsPairScore(o):
804  r"""_object_cast_to_RefinedPairsPairScore(Object o) -> RefinedPairsPairScore"""
805  return _IMP_core._object_cast_to_RefinedPairsPairScore(o)
806 
807 _object_types.append("RestraintsScoringFunction")
808 
809 
810 def _object_cast_to_RestraintsScoringFunction(o):
811  r"""_object_cast_to_RestraintsScoringFunction(Object o) -> RestraintsScoringFunction"""
812  return _IMP_core._object_cast_to_RestraintsScoringFunction(o)
813 
814 _object_types.append("RigidBodyDistancePairScore")
815 
816 
817 def _object_cast_to_RigidBodyDistancePairScore(o):
818  r"""_object_cast_to_RigidBodyDistancePairScore(Object o) -> RigidBodyDistancePairScore"""
819  return _IMP_core._object_cast_to_RigidBodyDistancePairScore(o)
820 
821 _object_types.append("RigidBodyAnglePairScore")
822 
823 
824 def _object_cast_to_RigidBodyAnglePairScore(o):
825  r"""_object_cast_to_RigidBodyAnglePairScore(Object o) -> RigidBodyAnglePairScore"""
826  return _IMP_core._object_cast_to_RigidBodyAnglePairScore(o)
827 
828 _object_types.append("RigidBodyMover")
829 
830 
831 def _object_cast_to_RigidBodyMover(o):
832  r"""_object_cast_to_RigidBodyMover(Object o) -> RigidBodyMover"""
833  return _IMP_core._object_cast_to_RigidBodyMover(o)
834 
835 _object_types.append("RigidBodyTunneler")
836 
837 
838 def _object_cast_to_RigidBodyTunneler(o):
839  r"""_object_cast_to_RigidBodyTunneler(Object o) -> RigidBodyTunneler"""
840  return _IMP_core._object_cast_to_RigidBodyTunneler(o)
841 
842 _object_types.append("RigidBodyUmbrella")
843 
844 
845 def _object_cast_to_RigidBodyUmbrella(o):
846  r"""_object_cast_to_RigidBodyUmbrella(Object o) -> RigidBodyUmbrella"""
847  return _IMP_core._object_cast_to_RigidBodyUmbrella(o)
848 
849 _object_types.append("RigidClosePairsFinder")
850 
851 
852 def _object_cast_to_RigidClosePairsFinder(o):
853  r"""_object_cast_to_RigidClosePairsFinder(Object o) -> RigidClosePairsFinder"""
854  return _IMP_core._object_cast_to_RigidClosePairsFinder(o)
855 
856 _object_types.append("RigidMembersRefiner")
857 
858 
859 def _object_cast_to_RigidMembersRefiner(o):
860  r"""_object_cast_to_RigidMembersRefiner(Object o) -> RigidMembersRefiner"""
861  return _IMP_core._object_cast_to_RigidMembersRefiner(o)
862 
863 _object_types.append("SingletonConstraint")
864 
865 
866 def _object_cast_to_SingletonConstraint(o):
867  r"""_object_cast_to_SingletonConstraint(Object o) -> SingletonConstraint"""
868  return _IMP_core._object_cast_to_SingletonConstraint(o)
869 
870 _object_types.append("SingletonRestraint")
871 
872 
873 def _object_cast_to_SingletonRestraint(o):
874  r"""_object_cast_to_SingletonRestraint(Object o) -> SingletonRestraint"""
875  return _IMP_core._object_cast_to_SingletonRestraint(o)
876 
877 _object_types.append("SoftSpherePairScore")
878 
879 
880 def _object_cast_to_SoftSpherePairScore(o):
881  r"""_object_cast_to_SoftSpherePairScore(Object o) -> SoftSpherePairScore"""
882  return _IMP_core._object_cast_to_SoftSpherePairScore(o)
883 
884 _object_types.append("SphereDistancePairScore")
885 
886 
887 def _object_cast_to_SphereDistancePairScore(o):
888  r"""_object_cast_to_SphereDistancePairScore(Object o) -> SphereDistancePairScore"""
889  return _IMP_core._object_cast_to_SphereDistancePairScore(o)
890 
891 _object_types.append("SphereDistanceToSingletonScore")
892 
893 
894 def _object_cast_to_SphereDistanceToSingletonScore(o):
895  r"""_object_cast_to_SphereDistanceToSingletonScore(Object o) -> SphereDistanceToSingletonScore"""
896  return _IMP_core._object_cast_to_SphereDistanceToSingletonScore(o)
897 
898 _object_types.append("SoftSubSurfacePairScore")
899 
900 
901 def _object_cast_to_SoftSubSurfacePairScore(o):
902  r"""_object_cast_to_SoftSubSurfacePairScore(Object o) -> SoftSubSurfacePairScore"""
903  return _IMP_core._object_cast_to_SoftSubSurfacePairScore(o)
904 
905 _object_types.append("SoftSuperSurfacePairScore")
906 
907 
908 def _object_cast_to_SoftSuperSurfacePairScore(o):
909  r"""_object_cast_to_SoftSuperSurfacePairScore(Object o) -> SoftSuperSurfacePairScore"""
910  return _IMP_core._object_cast_to_SoftSuperSurfacePairScore(o)
911 
912 _object_types.append("SurfaceDistancePairScore")
913 
914 
915 def _object_cast_to_SurfaceDistancePairScore(o):
916  r"""_object_cast_to_SurfaceDistancePairScore(Object o) -> SurfaceDistancePairScore"""
917  return _IMP_core._object_cast_to_SurfaceDistancePairScore(o)
918 
919 _object_types.append("SurfaceHeightPairScore")
920 
921 
922 def _object_cast_to_SurfaceHeightPairScore(o):
923  r"""_object_cast_to_SurfaceHeightPairScore(Object o) -> SurfaceHeightPairScore"""
924  return _IMP_core._object_cast_to_SurfaceHeightPairScore(o)
925 
926 _object_types.append("SurfaceDepthPairScore")
927 
928 
929 def _object_cast_to_SurfaceDepthPairScore(o):
930  r"""_object_cast_to_SurfaceDepthPairScore(Object o) -> SurfaceDepthPairScore"""
931  return _IMP_core._object_cast_to_SurfaceDepthPairScore(o)
932 
933 _object_types.append("SurfaceTetheredChain")
934 
935 
936 def _object_cast_to_SurfaceTetheredChain(o):
937  r"""_object_cast_to_SurfaceTetheredChain(Object o) -> SurfaceTetheredChain"""
938  return _IMP_core._object_cast_to_SurfaceTetheredChain(o)
939 
940 _object_types.append("SurfaceSymmetryConstraint")
941 
942 
943 def _object_cast_to_SurfaceSymmetryConstraint(o):
944  r"""_object_cast_to_SurfaceSymmetryConstraint(Object o) -> SurfaceSymmetryConstraint"""
945  return _IMP_core._object_cast_to_SurfaceSymmetryConstraint(o)
946 
947 _object_types.append("SteepestDescent")
948 
949 
950 def _object_cast_to_SteepestDescent(o):
951  r"""_object_cast_to_SteepestDescent(Object o) -> SteepestDescent"""
952  return _IMP_core._object_cast_to_SteepestDescent(o)
953 
954 _object_types.append("TableRefiner")
955 
956 
957 def _object_cast_to_TableRefiner(o):
958  r"""_object_cast_to_TableRefiner(Object o) -> TableRefiner"""
959  return _IMP_core._object_cast_to_TableRefiner(o)
960 
961 _object_types.append("Transform")
962 
963 
964 def _object_cast_to_Transform(o):
965  r"""_object_cast_to_Transform(Object o) -> Transform"""
966  return _IMP_core._object_cast_to_Transform(o)
967 
968 _object_types.append("TransformationAndReflectionSymmetry")
969 
970 
971 def _object_cast_to_TransformationAndReflectionSymmetry(o):
972  r"""_object_cast_to_TransformationAndReflectionSymmetry(Object o) -> TransformationAndReflectionSymmetry"""
973  return _IMP_core._object_cast_to_TransformationAndReflectionSymmetry(o)
974 
975 _object_types.append("TransformationSymmetry")
976 
977 
978 def _object_cast_to_TransformationSymmetry(o):
979  r"""_object_cast_to_TransformationSymmetry(Object o) -> TransformationSymmetry"""
980  return _IMP_core._object_cast_to_TransformationSymmetry(o)
981 
982 _object_types.append("TransformationSymmetryMover")
983 
984 
985 def _object_cast_to_TransformationSymmetryMover(o):
986  r"""_object_cast_to_TransformationSymmetryMover(Object o) -> TransformationSymmetryMover"""
987  return _IMP_core._object_cast_to_TransformationSymmetryMover(o)
988 
989 _object_types.append("TransformedDistancePairScore")
990 
991 
992 def _object_cast_to_TransformedDistancePairScore(o):
993  r"""_object_cast_to_TransformedDistancePairScore(Object o) -> TransformedDistancePairScore"""
994  return _IMP_core._object_cast_to_TransformedDistancePairScore(o)
995 
996 _object_types.append("TripletConstraint")
997 
998 
999 def _object_cast_to_TripletConstraint(o):
1000  r"""_object_cast_to_TripletConstraint(Object o) -> TripletConstraint"""
1001  return _IMP_core._object_cast_to_TripletConstraint(o)
1002 
1003 _object_types.append("TripletRestraint")
1004 
1005 
1006 def _object_cast_to_TripletRestraint(o):
1007  r"""_object_cast_to_TripletRestraint(Object o) -> TripletRestraint"""
1008  return _IMP_core._object_cast_to_TripletRestraint(o)
1009 
1010 _object_types.append("TypedPairScore")
1011 
1012 
1013 def _object_cast_to_TypedPairScore(o):
1014  r"""_object_cast_to_TypedPairScore(Object o) -> TypedPairScore"""
1015  return _IMP_core._object_cast_to_TypedPairScore(o)
1016 
1017 _object_types.append("VolumeRestraint")
1018 
1019 
1020 def _object_cast_to_VolumeRestraint(o):
1021  r"""_object_cast_to_VolumeRestraint(Object o) -> VolumeRestraint"""
1022  return _IMP_core._object_cast_to_VolumeRestraint(o)
1023 
1024 _object_types.append("WeightedSphereDistancePairScore")
1025 
1026 
1027 def _object_cast_to_WeightedSphereDistancePairScore(o):
1028  r"""_object_cast_to_WeightedSphereDistancePairScore(Object o) -> WeightedSphereDistancePairScore"""
1029  return _IMP_core._object_cast_to_WeightedSphereDistancePairScore(o)
1030 
1031 _object_types.append("MoveStatisticsScoreState")
1032 
1033 
1034 def _object_cast_to_MoveStatisticsScoreState(o):
1035  r"""_object_cast_to_MoveStatisticsScoreState(Object o) -> MoveStatisticsScoreState"""
1036  return _IMP_core._object_cast_to_MoveStatisticsScoreState(o)
1037 
1038 _object_types.append("MinimumRestraint")
1039 
1040 
1041 def _object_cast_to_MinimumRestraint(o):
1042  r"""_object_cast_to_MinimumRestraint(Object o) -> MinimumRestraint"""
1043  return _IMP_core._object_cast_to_MinimumRestraint(o)
1044 
1045 _object_types.append("WriteRestraintScoresOptimizerState")
1046 
1047 
1048 def _object_cast_to_WriteRestraintScoresOptimizerState(o):
1049  r"""_object_cast_to_WriteRestraintScoresOptimizerState(Object o) -> WriteRestraintScoresOptimizerState"""
1050  return _IMP_core._object_cast_to_WriteRestraintScoresOptimizerState(o)
1051 
1052 _object_types.append("LateralSurfaceConstraint")
1053 
1054 
1055 def _object_cast_to_LateralSurfaceConstraint(o):
1056  r"""_object_cast_to_LateralSurfaceConstraint(Object o) -> LateralSurfaceConstraint"""
1057  return _IMP_core._object_cast_to_LateralSurfaceConstraint(o)
1058 
1059 _object_types.append("ConstantSingletonPredicate")
1060 
1061 
1062 def _object_cast_to_ConstantSingletonPredicate(o):
1063  r"""_object_cast_to_ConstantSingletonPredicate(Object o) -> ConstantSingletonPredicate"""
1064  return _IMP_core._object_cast_to_ConstantSingletonPredicate(o)
1065 
1066 _object_types.append("ConstantPairPredicate")
1067 
1068 
1069 def _object_cast_to_ConstantPairPredicate(o):
1070  r"""_object_cast_to_ConstantPairPredicate(Object o) -> ConstantPairPredicate"""
1071  return _IMP_core._object_cast_to_ConstantPairPredicate(o)
1072 
1073 _object_types.append("ConstantTripletPredicate")
1074 
1075 
1076 def _object_cast_to_ConstantTripletPredicate(o):
1077  r"""_object_cast_to_ConstantTripletPredicate(Object o) -> ConstantTripletPredicate"""
1078  return _IMP_core._object_cast_to_ConstantTripletPredicate(o)
1079 
1080 _object_types.append("ConstantQuadPredicate")
1081 
1082 
1083 def _object_cast_to_ConstantQuadPredicate(o):
1084  r"""_object_cast_to_ConstantQuadPredicate(Object o) -> ConstantQuadPredicate"""
1085  return _IMP_core._object_cast_to_ConstantQuadPredicate(o)
1086 
1087 _object_types.append("CoinFlipSingletonPredicate")
1088 
1089 
1090 def _object_cast_to_CoinFlipSingletonPredicate(o):
1091  r"""_object_cast_to_CoinFlipSingletonPredicate(Object o) -> CoinFlipSingletonPredicate"""
1092  return _IMP_core._object_cast_to_CoinFlipSingletonPredicate(o)
1093 
1094 _object_types.append("CoinFlipPairPredicate")
1095 
1096 
1097 def _object_cast_to_CoinFlipPairPredicate(o):
1098  r"""_object_cast_to_CoinFlipPairPredicate(Object o) -> CoinFlipPairPredicate"""
1099  return _IMP_core._object_cast_to_CoinFlipPairPredicate(o)
1100 
1101 _object_types.append("CoinFlipTripletPredicate")
1102 
1103 
1104 def _object_cast_to_CoinFlipTripletPredicate(o):
1105  r"""_object_cast_to_CoinFlipTripletPredicate(Object o) -> CoinFlipTripletPredicate"""
1106  return _IMP_core._object_cast_to_CoinFlipTripletPredicate(o)
1107 
1108 _object_types.append("CoinFlipQuadPredicate")
1109 
1110 
1111 def _object_cast_to_CoinFlipQuadPredicate(o):
1112  r"""_object_cast_to_CoinFlipQuadPredicate(Object o) -> CoinFlipQuadPredicate"""
1113  return _IMP_core._object_cast_to_CoinFlipQuadPredicate(o)
1114 
1115 _object_types.append("UnorderedTypeSingletonPredicate")
1116 
1117 
1118 def _object_cast_to_UnorderedTypeSingletonPredicate(o):
1119  r"""_object_cast_to_UnorderedTypeSingletonPredicate(Object o) -> UnorderedTypeSingletonPredicate"""
1120  return _IMP_core._object_cast_to_UnorderedTypeSingletonPredicate(o)
1121 
1122 _object_types.append("UnorderedTypePairPredicate")
1123 
1124 
1125 def _object_cast_to_UnorderedTypePairPredicate(o):
1126  r"""_object_cast_to_UnorderedTypePairPredicate(Object o) -> UnorderedTypePairPredicate"""
1127  return _IMP_core._object_cast_to_UnorderedTypePairPredicate(o)
1128 
1129 _object_types.append("UnorderedTypeTripletPredicate")
1130 
1131 
1132 def _object_cast_to_UnorderedTypeTripletPredicate(o):
1133  r"""_object_cast_to_UnorderedTypeTripletPredicate(Object o) -> UnorderedTypeTripletPredicate"""
1134  return _IMP_core._object_cast_to_UnorderedTypeTripletPredicate(o)
1135 
1136 _object_types.append("UnorderedTypeQuadPredicate")
1137 
1138 
1139 def _object_cast_to_UnorderedTypeQuadPredicate(o):
1140  r"""_object_cast_to_UnorderedTypeQuadPredicate(Object o) -> UnorderedTypeQuadPredicate"""
1141  return _IMP_core._object_cast_to_UnorderedTypeQuadPredicate(o)
1142 
1143 _object_types.append("OrderedTypeSingletonPredicate")
1144 
1145 
1146 def _object_cast_to_OrderedTypeSingletonPredicate(o):
1147  r"""_object_cast_to_OrderedTypeSingletonPredicate(Object o) -> OrderedTypeSingletonPredicate"""
1148  return _IMP_core._object_cast_to_OrderedTypeSingletonPredicate(o)
1149 
1150 _object_types.append("OrderedTypePairPredicate")
1151 
1152 
1153 def _object_cast_to_OrderedTypePairPredicate(o):
1154  r"""_object_cast_to_OrderedTypePairPredicate(Object o) -> OrderedTypePairPredicate"""
1155  return _IMP_core._object_cast_to_OrderedTypePairPredicate(o)
1156 
1157 _object_types.append("OrderedTypeTripletPredicate")
1158 
1159 
1160 def _object_cast_to_OrderedTypeTripletPredicate(o):
1161  r"""_object_cast_to_OrderedTypeTripletPredicate(Object o) -> OrderedTypeTripletPredicate"""
1162  return _IMP_core._object_cast_to_OrderedTypeTripletPredicate(o)
1163 
1164 _object_types.append("OrderedTypeQuadPredicate")
1165 
1166 
1167 def _object_cast_to_OrderedTypeQuadPredicate(o):
1168  r"""_object_cast_to_OrderedTypeQuadPredicate(Object o) -> OrderedTypeQuadPredicate"""
1169  return _IMP_core._object_cast_to_OrderedTypeQuadPredicate(o)
1170 
1171 _object_types.append("AllSameSingletonPredicate")
1172 
1173 
1174 def _object_cast_to_AllSameSingletonPredicate(o):
1175  r"""_object_cast_to_AllSameSingletonPredicate(Object o) -> AllSameSingletonPredicate"""
1176  return _IMP_core._object_cast_to_AllSameSingletonPredicate(o)
1177 
1178 _object_types.append("AllSamePairPredicate")
1179 
1180 
1181 def _object_cast_to_AllSamePairPredicate(o):
1182  r"""_object_cast_to_AllSamePairPredicate(Object o) -> AllSamePairPredicate"""
1183  return _IMP_core._object_cast_to_AllSamePairPredicate(o)
1184 
1185 _object_types.append("AllSameTripletPredicate")
1186 
1187 
1188 def _object_cast_to_AllSameTripletPredicate(o):
1189  r"""_object_cast_to_AllSameTripletPredicate(Object o) -> AllSameTripletPredicate"""
1190  return _IMP_core._object_cast_to_AllSameTripletPredicate(o)
1191 
1192 _object_types.append("AllSameQuadPredicate")
1193 
1194 
1195 def _object_cast_to_AllSameQuadPredicate(o):
1196  r"""_object_cast_to_AllSameQuadPredicate(Object o) -> AllSameQuadPredicate"""
1197  return _IMP_core._object_cast_to_AllSameQuadPredicate(o)
1198 
1199 def XYZs(l=[]):
1200  return [XYZ(x) for x in l]
1201 _plural_types.append("XYZs")
1202 
1203 
1204 _value_types.append("XYZ")
1205 
1206 
1207 def XYZRs(l=[]):
1208  return [XYZR(x) for x in l]
1209 _plural_types.append("XYZRs")
1210 
1211 
1212 _value_types.append("XYZR")
1213 
1214 
1215 def RigidBodies(l=[]):
1216  return [RigidBody(x) for x in l]
1217 _plural_types.append("RigidBodies")
1218 
1219 
1220 _value_types.append("RigidBody")
1221 
1222 
1223 def RigidBodyMembers(l=[]):
1224  return [RigidBodyMember(x) for x in l]
1225 _plural_types.append("RigidBodyMembers")
1226 
1227 
1228 _value_types.append("RigidBodyMember")
1229 
1230 
1231 def RigidMembers(l=[]):
1232  return [RigidMember(x) for x in l]
1233 _plural_types.append("RigidMembers")
1234 
1235 
1236 _value_types.append("RigidMember")
1237 
1238 
1239 def NonRigidMembers(l=[]):
1240  return [NonRigidMember(x) for x in l]
1241 _plural_types.append("NonRigidMembers")
1242 
1243 
1244 _value_types.append("NonRigidMember")
1245 
1246 
1247 def Centroids(l=[]):
1248  return [Centroid(x) for x in l]
1249 _plural_types.append("Centroids")
1250 
1251 
1252 _value_types.append("Centroid")
1253 
1254 
1255 def Covers(l=[]):
1256  return [Cover(x) for x in l]
1257 _plural_types.append("Covers")
1258 
1259 
1260 _value_types.append("Cover")
1261 
1262 
1263 def References(l=[]):
1264  return [Reference(x) for x in l]
1265 _plural_types.append("References")
1266 
1267 
1268 _value_types.append("Reference")
1269 
1270 
1271 ParticleTypes=list
1272 _plural_types.append("ParticleTypes")
1273 _value_types.append("ParticleType")
1274 
1275 
1276 def Typeds(l=[]):
1277  return [Typed(x) for x in l]
1278 _plural_types.append("Typeds")
1279 
1280 
1281 _value_types.append("Typed")
1282 
1283 
1284 def GenericHierarchies(l=[]):
1285  return [Hierarchy(x) for x in l]
1286 _plural_types.append("GenericHierarchies")
1287 
1288 
1289 _value_types.append("Hierarchy")
1290 
1291 
1292 def Gaussians(l=[]):
1293  return [Gaussian(x) for x in l]
1294 _plural_types.append("Gaussians")
1295 
1296 
1297 _value_types.append("Gaussian")
1298 
1299 
1300 def Directions(l=[]):
1301  return [Direction(x) for x in l]
1302 _plural_types.append("Directions")
1303 
1304 
1305 _value_types.append("Direction")
1306 
1307 
1308 def DirectionAngles(l=[]):
1309  return [DirectionAngle(x) for x in l]
1310 _plural_types.append("DirectionAngles")
1311 
1312 
1313 _value_types.append("DirectionAngle")
1314 
1315 
1316 def Surfaces(l=[]):
1317  return [Surface(x) for x in l]
1318 _plural_types.append("Surfaces")
1319 
1320 
1321 _value_types.append("Surface")
1322 
1323 
1324 def Provenances(l=[]):
1325  return [Provenance(x) for x in l]
1326 _plural_types.append("Provenances")
1327 
1328 
1329 _value_types.append("Provenance")
1330 
1331 
1332 def StructureProvenances(l=[]):
1333  return [StructureProvenance(x) for x in l]
1334 _plural_types.append("StructureProvenances")
1335 
1336 
1337 _value_types.append("StructureProvenance")
1338 
1339 
1340 def SampleProvenances(l=[]):
1341  return [SampleProvenance(x) for x in l]
1342 _plural_types.append("SampleProvenances")
1343 
1344 
1345 _value_types.append("SampleProvenance")
1346 
1347 
1348 def ClusterProvenances(l=[]):
1349  return [ClusterProvenance(x) for x in l]
1350 _plural_types.append("ClusterProvenances")
1351 
1352 
1353 _value_types.append("ClusterProvenance")
1354 
1355 
1356 def CombineProvenances(l=[]):
1357  return [CombineProvenance(x) for x in l]
1358 _plural_types.append("CombineProvenances")
1359 
1360 
1361 _value_types.append("CombineProvenance")
1362 
1363 
1364 def FilterProvenances(l=[]):
1365  return [FilterProvenance(x) for x in l]
1366 _plural_types.append("FilterProvenances")
1367 
1368 
1369 _value_types.append("FilterProvenance")
1370 
1371 
1372 def ScriptProvenances(l=[]):
1373  return [ScriptProvenance(x) for x in l]
1374 _plural_types.append("ScriptProvenances")
1375 
1376 
1377 _value_types.append("ScriptProvenance")
1378 
1379 
1380 def SoftwareProvenances(l=[]):
1381  return [SoftwareProvenance(x) for x in l]
1382 _plural_types.append("SoftwareProvenances")
1383 
1384 
1385 _value_types.append("SoftwareProvenance")
1386 
1387 
1388 def Provenanceds(l=[]):
1389  return [Provenanced(x) for x in l]
1390 _plural_types.append("Provenanceds")
1391 
1392 
1393 _value_types.append("Provenanced")
1394 
1395 
1396 HierarchyCounters=list
1397 _plural_types.append("HierarchyCounters")
1398 _value_types.append("HierarchyCounter")
1399 
1400 
1401 HierarchyTraitsList=list
1402 _plural_types.append("HierarchyTraitsList")
1403 _value_types.append("HierarchyTraits")
1404 
1405 
1406 _object_types.append("TruncatedHarmonicBound")
1407 
1408 
1409 def _object_cast_to_TruncatedHarmonicBound(o):
1410  r"""_object_cast_to_TruncatedHarmonicBound(Object o) -> TruncatedHarmonicBound"""
1411  return _IMP_core._object_cast_to_TruncatedHarmonicBound(o)
1412 
1413 _object_types.append("TruncatedHarmonicLowerBound")
1414 
1415 
1416 def _object_cast_to_TruncatedHarmonicLowerBound(o):
1417  r"""_object_cast_to_TruncatedHarmonicLowerBound(Object o) -> TruncatedHarmonicLowerBound"""
1418  return _IMP_core._object_cast_to_TruncatedHarmonicLowerBound(o)
1419 
1420 _object_types.append("TruncatedHarmonicUpperBound")
1421 
1422 
1423 def _object_cast_to_TruncatedHarmonicUpperBound(o):
1424  r"""_object_cast_to_TruncatedHarmonicUpperBound(Object o) -> TruncatedHarmonicUpperBound"""
1425  return _IMP_core._object_cast_to_TruncatedHarmonicUpperBound(o)
1426 
1427 _object_types.append("HarmonicDistancePairScore")
1428 
1429 
1430 def _object_cast_to_HarmonicDistancePairScore(o):
1431  r"""_object_cast_to_HarmonicDistancePairScore(Object o) -> HarmonicDistancePairScore"""
1432  return _IMP_core._object_cast_to_HarmonicDistancePairScore(o)
1433 
1434 _object_types.append("DistancePairScore")
1435 
1436 
1437 def _object_cast_to_DistancePairScore(o):
1438  r"""_object_cast_to_DistancePairScore(Object o) -> DistancePairScore"""
1439  return _IMP_core._object_cast_to_DistancePairScore(o)
1440 
1441 _object_types.append("XYZRGeometry")
1442 
1443 
1444 def _object_cast_to_XYZRGeometry(o):
1445  r"""_object_cast_to_XYZRGeometry(Object o) -> XYZRGeometry"""
1446  return _IMP_core._object_cast_to_XYZRGeometry(o)
1447 
1448 _object_types.append("XYZRsGeometry")
1449 
1450 
1451 def _object_cast_to_XYZRsGeometry(o):
1452  r"""_object_cast_to_XYZRsGeometry(Object o) -> XYZRsGeometry"""
1453  return _IMP_core._object_cast_to_XYZRsGeometry(o)
1454 
1455 _object_types.append("XYZDerivativeGeometry")
1456 
1457 
1458 def _object_cast_to_XYZDerivativeGeometry(o):
1459  r"""_object_cast_to_XYZDerivativeGeometry(Object o) -> XYZDerivativeGeometry"""
1460  return _IMP_core._object_cast_to_XYZDerivativeGeometry(o)
1461 
1462 _object_types.append("XYZDerivativesGeometry")
1463 
1464 
1465 def _object_cast_to_XYZDerivativesGeometry(o):
1466  r"""_object_cast_to_XYZDerivativesGeometry(Object o) -> XYZDerivativesGeometry"""
1467  return _IMP_core._object_cast_to_XYZDerivativesGeometry(o)
1468 
1469 _object_types.append("RigidBodyDerivativeGeometry")
1470 
1471 
1472 def _object_cast_to_RigidBodyDerivativeGeometry(o):
1473  r"""_object_cast_to_RigidBodyDerivativeGeometry(Object o) -> RigidBodyDerivativeGeometry"""
1474  return _IMP_core._object_cast_to_RigidBodyDerivativeGeometry(o)
1475 
1476 _object_types.append("RigidBodyDerivativesGeometry")
1477 
1478 
1479 def _object_cast_to_RigidBodyDerivativesGeometry(o):
1480  r"""_object_cast_to_RigidBodyDerivativesGeometry(Object o) -> RigidBodyDerivativesGeometry"""
1481  return _IMP_core._object_cast_to_RigidBodyDerivativesGeometry(o)
1482 
1483 _object_types.append("RigidBodyHierarchyGeometry")
1484 
1485 
1486 def _object_cast_to_RigidBodyHierarchyGeometry(o):
1487  r"""_object_cast_to_RigidBodyHierarchyGeometry(Object o) -> RigidBodyHierarchyGeometry"""
1488  return _IMP_core._object_cast_to_RigidBodyHierarchyGeometry(o)
1489 
1490 _object_types.append("RigidBodyFrameGeometry")
1491 
1492 
1493 def _object_cast_to_RigidBodyFrameGeometry(o):
1494  r"""_object_cast_to_RigidBodyFrameGeometry(Object o) -> RigidBodyFrameGeometry"""
1495  return _IMP_core._object_cast_to_RigidBodyFrameGeometry(o)
1496 
1497 _object_types.append("RigidBodyFramesGeometry")
1498 
1499 
1500 def _object_cast_to_RigidBodyFramesGeometry(o):
1501  r"""_object_cast_to_RigidBodyFramesGeometry(Object o) -> RigidBodyFramesGeometry"""
1502  return _IMP_core._object_cast_to_RigidBodyFramesGeometry(o)
1503 
1504 _object_types.append("RigidBodyTorque")
1505 
1506 
1507 def _object_cast_to_RigidBodyTorque(o):
1508  r"""_object_cast_to_RigidBodyTorque(Object o) -> RigidBodyTorque"""
1509  return _IMP_core._object_cast_to_RigidBodyTorque(o)
1510 
1511 _object_types.append("EdgePairGeometry")
1512 
1513 
1514 def _object_cast_to_EdgePairGeometry(o):
1515  r"""_object_cast_to_EdgePairGeometry(Object o) -> EdgePairGeometry"""
1516  return _IMP_core._object_cast_to_EdgePairGeometry(o)
1517 
1518 _object_types.append("EdgePairsGeometry")
1519 
1520 
1521 def _object_cast_to_EdgePairsGeometry(o):
1522  r"""_object_cast_to_EdgePairsGeometry(Object o) -> EdgePairsGeometry"""
1523  return _IMP_core._object_cast_to_EdgePairsGeometry(o)
1524 
1525 _object_types.append("SurfaceGeometry")
1526 
1527 
1528 def _object_cast_to_SurfaceGeometry(o):
1529  r"""_object_cast_to_SurfaceGeometry(Object o) -> SurfaceGeometry"""
1530  return _IMP_core._object_cast_to_SurfaceGeometry(o)
1531 
1532 _object_types.append("SurfaceGeometryConstraint")
1533 
1534 
1535 def _object_cast_to_SurfaceGeometryConstraint(o):
1536  r"""_object_cast_to_SurfaceGeometryConstraint(Object o) -> SurfaceGeometryConstraint"""
1537  return _IMP_core._object_cast_to_SurfaceGeometryConstraint(o)
1538 
1539 _object_types.append("AttributeSingletonPredicate")
1540 
1541 
1542 def _object_cast_to_AttributeSingletonPredicate(o):
1543  r"""_object_cast_to_AttributeSingletonPredicate(Object o) -> AttributeSingletonPredicate"""
1544  return _IMP_core._object_cast_to_AttributeSingletonPredicate(o)
1545 
1546 _object_types.append("InBoundingBox3DSingletonPredicate")
1547 
1548 
1549 def _object_cast_to_InBoundingBox3DSingletonPredicate(o):
1550  r"""_object_cast_to_InBoundingBox3DSingletonPredicate(Object o) -> InBoundingBox3DSingletonPredicate"""
1551  return _IMP_core._object_cast_to_InBoundingBox3DSingletonPredicate(o)
1552 
1553 _object_types.append("IsCollisionPairPredicate")
1554 
1555 
1556 def _object_cast_to_IsCollisionPairPredicate(o):
1557  r"""_object_cast_to_IsCollisionPairPredicate(Object o) -> IsCollisionPairPredicate"""
1558  return _IMP_core._object_cast_to_IsCollisionPairPredicate(o)
1559 
1560 BinormalTermList=list
1561 _plural_types.append("BinormalTermList")
1562 _value_types.append("BinormalTerm")
1563 
1564 
1565 _object_types.append("MultipleBinormalRestraint")
1566 
1567 
1568 def _object_cast_to_MultipleBinormalRestraint(o):
1569  r"""_object_cast_to_MultipleBinormalRestraint(Object o) -> MultipleBinormalRestraint"""
1570  return _IMP_core._object_cast_to_MultipleBinormalRestraint(o)
1571 class ClosePairsFinder(IMP._ParticleInputs, IMP.Object):
1572  r"""Proxy of C++ IMP::core::ClosePairsFinder class."""
1573 
1574  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1575 
1576  def __init__(self, *args, **kwargs):
1577  raise AttributeError("No constructor defined - class is abstract")
1578  __swig_destroy__ = _IMP_core.delete_ClosePairsFinder
1579 
1580  def get_close_pairs(self, *args):
1581  r"""
1582  get_close_pairs(ClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
1583  get_close_pairs(ClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
1584  get_close_pairs(ClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
1585  get_close_pairs(ClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
1586  """
1587  return _IMP_core.ClosePairsFinder_get_close_pairs(self, *args)
1588 
1589  def set_distance(self, d):
1590  r"""set_distance(ClosePairsFinder self, double d)"""
1591  return _IMP_core.ClosePairsFinder_set_distance(self, d)
1592 
1593  def get_distance(self):
1594  r"""get_distance(ClosePairsFinder self) -> double"""
1595  return _IMP_core.ClosePairsFinder_get_distance(self)
1596  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)
1597  def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
1598  def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
1599  pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc="List of ##ucnames")
1600 
1601  def remove_pair_filter(self, d):
1602  r"""remove_pair_filter(ClosePairsFinder self, PairPredicate d)"""
1603  return _IMP_core.ClosePairsFinder_remove_pair_filter(self, d)
1604 
1605  def _python_index_pair_filter(self, d, start, stop):
1606  r"""_python_index_pair_filter(ClosePairsFinder self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
1607  return _IMP_core.ClosePairsFinder__python_index_pair_filter(self, d, start, stop)
1608 
1609  def remove_pair_filters(self, d):
1610  r"""remove_pair_filters(ClosePairsFinder self, IMP::PairPredicates const & d)"""
1611  return _IMP_core.ClosePairsFinder_remove_pair_filters(self, d)
1612 
1613  def set_pair_filters(self, ps):
1614  r"""set_pair_filters(ClosePairsFinder self, IMP::PairPredicates const & ps)"""
1615  return _IMP_core.ClosePairsFinder_set_pair_filters(self, ps)
1616 
1617  def set_pair_filters_order(self, objs):
1618  r"""set_pair_filters_order(ClosePairsFinder self, IMP::PairPredicates const & objs)"""
1619  return _IMP_core.ClosePairsFinder_set_pair_filters_order(self, objs)
1620 
1621  def add_pair_filter(self, obj):
1622  r"""add_pair_filter(ClosePairsFinder self, PairPredicate obj) -> unsigned int"""
1623  return _IMP_core.ClosePairsFinder_add_pair_filter(self, obj)
1624 
1625  def add_pair_filters(self, objs):
1626  r"""add_pair_filters(ClosePairsFinder self, IMP::PairPredicates const & objs)"""
1627  return _IMP_core.ClosePairsFinder_add_pair_filters(self, objs)
1628 
1629  def clear_pair_filters(self):
1630  r"""clear_pair_filters(ClosePairsFinder self)"""
1631  return _IMP_core.ClosePairsFinder_clear_pair_filters(self)
1632 
1633  def get_number_of_pair_filters(self):
1634  r"""get_number_of_pair_filters(ClosePairsFinder self) -> unsigned int"""
1635  return _IMP_core.ClosePairsFinder_get_number_of_pair_filters(self)
1636 
1637  def get_has_pair_filters(self):
1638  r"""get_has_pair_filters(ClosePairsFinder self) -> bool"""
1639  return _IMP_core.ClosePairsFinder_get_has_pair_filters(self)
1640 
1641  def get_pair_filter(self, i):
1642  r"""get_pair_filter(ClosePairsFinder self, unsigned int i) -> PairPredicate"""
1643  return _IMP_core.ClosePairsFinder_get_pair_filter(self, i)
1644 
1645  def get_pair_filters(self):
1646  r"""get_pair_filters(ClosePairsFinder self) -> IMP::PairPredicates"""
1647  return _IMP_core.ClosePairsFinder_get_pair_filters(self)
1648 
1649  def erase_pair_filter(self, i):
1650  r"""erase_pair_filter(ClosePairsFinder self, unsigned int i)"""
1651  return _IMP_core.ClosePairsFinder_erase_pair_filter(self, i)
1652 
1653  def reserve_pair_filters(self, sz):
1654  r"""reserve_pair_filters(ClosePairsFinder self, unsigned int sz)"""
1655  return _IMP_core.ClosePairsFinder_reserve_pair_filters(self, sz)
1656 
1657  def __str__(self):
1658  r"""__str__(ClosePairsFinder self) -> std::string"""
1659  return _IMP_core.ClosePairsFinder___str__(self)
1660 
1661  def __repr__(self):
1662  r"""__repr__(ClosePairsFinder self) -> std::string"""
1663  return _IMP_core.ClosePairsFinder___repr__(self)
1664 
1665  @staticmethod
1666  def get_from(o):
1667  return _object_cast_to_ClosePairsFinder(o)
1668 
1669 
1670 # Register ClosePairsFinder in _IMP_core:
1671 _IMP_core.ClosePairsFinder_swigregister(ClosePairsFinder)
1672 class MonteCarloMoverResult(IMP._Value):
1673  r"""Proxy of C++ IMP::core::MonteCarloMoverResult class."""
1674 
1675  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1676 
1677  def __init__(self, *args):
1678  r"""__init__(MonteCarloMoverResult self, IMP::ParticleIndexes i0=IMP::ParticleIndexes(), double i1=double()) -> MonteCarloMoverResult"""
1679  _IMP_core.MonteCarloMoverResult_swiginit(self, _IMP_core.new_MonteCarloMoverResult(*args))
1680 
1681  def __hash__(self):
1682  r"""__hash__(MonteCarloMoverResult self) -> std::size_t"""
1683  return _IMP_core.MonteCarloMoverResult___hash__(self)
1684 
1685  def show(self, *args):
1686  r"""show(MonteCarloMoverResult self, _ostream out=std::cout)"""
1687  return _IMP_core.MonteCarloMoverResult_show(self, *args)
1688 
1689  def __cmp__(self, o):
1690  r"""__cmp__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> int"""
1691  return _IMP_core.MonteCarloMoverResult___cmp__(self, o)
1692 
1693  def __eq__(self, o):
1694  r"""__eq__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1695  return _IMP_core.MonteCarloMoverResult___eq__(self, o)
1696 
1697  def __ne__(self, o):
1698  r"""__ne__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1699  return _IMP_core.MonteCarloMoverResult___ne__(self, o)
1700 
1701  def __lt__(self, o):
1702  r"""__lt__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1703  return _IMP_core.MonteCarloMoverResult___lt__(self, o)
1704 
1705  def __gt__(self, o):
1706  r"""__gt__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1707  return _IMP_core.MonteCarloMoverResult___gt__(self, o)
1708 
1709  def __ge__(self, o):
1710  r"""__ge__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1711  return _IMP_core.MonteCarloMoverResult___ge__(self, o)
1712 
1713  def __le__(self, o):
1714  r"""__le__(MonteCarloMoverResult self, MonteCarloMoverResult o) -> bool"""
1715  return _IMP_core.MonteCarloMoverResult___le__(self, o)
1716 
1717  def get_moved_particles(self):
1718  r"""get_moved_particles(MonteCarloMoverResult self) -> IMP::ParticleIndexes const &"""
1719  return _IMP_core.MonteCarloMoverResult_get_moved_particles(self)
1720 
1721  def set_moved_particles(self, v):
1722  r"""set_moved_particles(MonteCarloMoverResult self, IMP::ParticleIndexes const & v)"""
1723  return _IMP_core.MonteCarloMoverResult_set_moved_particles(self, v)
1724 
1725  def get_proposal_ratio(self):
1726  r"""get_proposal_ratio(MonteCarloMoverResult self) -> double const &"""
1727  return _IMP_core.MonteCarloMoverResult_get_proposal_ratio(self)
1728 
1729  def set_proposal_ratio(self, v):
1730  r"""set_proposal_ratio(MonteCarloMoverResult self, double const & v)"""
1731  return _IMP_core.MonteCarloMoverResult_set_proposal_ratio(self, v)
1732 
1733  def __str__(self):
1734  r"""__str__(MonteCarloMoverResult self) -> std::string"""
1735  return _IMP_core.MonteCarloMoverResult___str__(self)
1736 
1737  def __repr__(self):
1738  r"""__repr__(MonteCarloMoverResult self) -> std::string"""
1739  return _IMP_core.MonteCarloMoverResult___repr__(self)
1740  __swig_destroy__ = _IMP_core.delete_MonteCarloMoverResult
1741 
1742 # Register MonteCarloMoverResult in _IMP_core:
1743 _IMP_core.MonteCarloMoverResult_swigregister(MonteCarloMoverResult)
1744 class MonteCarloMover(IMP.ModelObject):
1745  r"""Proxy of C++ IMP::core::MonteCarloMover class."""
1746 
1747  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1748 
1749  def __init__(self, *args):
1750  r"""
1751  __init__(MonteCarloMover self, Model m, std::string name) -> MonteCarloMover
1752  __init__(MonteCarloMover self) -> MonteCarloMover
1753  """
1754  if self.__class__ == MonteCarloMover:
1755  _self = None
1756  else:
1757  _self = self
1758  _IMP_core.MonteCarloMover_swiginit(self, _IMP_core.new_MonteCarloMover(_self, *args))
1759 
1760  if self.__class__ != MonteCarloMover:
1761  _director_objects.register(self)
1762 
1763 
1764 
1765 
1766  def propose(self):
1767  r"""propose(MonteCarloMover self) -> MonteCarloMoverResult"""
1768  return _IMP_core.MonteCarloMover_propose(self)
1769 
1770  def reject(self):
1771  r"""reject(MonteCarloMover self)"""
1772  return _IMP_core.MonteCarloMover_reject(self)
1773 
1774  def accept(self):
1775  r"""accept(MonteCarloMover self)"""
1776  return _IMP_core.MonteCarloMover_accept(self)
1777 
1778  def get_number_of_proposed(self):
1779  r"""get_number_of_proposed(MonteCarloMover self) -> unsigned int"""
1780  return _IMP_core.MonteCarloMover_get_number_of_proposed(self)
1781 
1782  def get_number_of_accepted(self):
1783  r"""get_number_of_accepted(MonteCarloMover self) -> unsigned int"""
1784  return _IMP_core.MonteCarloMover_get_number_of_accepted(self)
1785 
1786  def reset_statistics(self):
1787  r"""reset_statistics(MonteCarloMover self)"""
1788  return _IMP_core.MonteCarloMover_reset_statistics(self)
1789 
1790  def do_propose(self):
1791  r"""do_propose(MonteCarloMover self) -> MonteCarloMoverResult"""
1792  return _IMP_core.MonteCarloMover_do_propose(self)
1793 
1794  def do_reject(self):
1795  r"""do_reject(MonteCarloMover self)"""
1796  return _IMP_core.MonteCarloMover_do_reject(self)
1797 
1798  def do_accept(self):
1799  r"""do_accept(MonteCarloMover self)"""
1800  return _IMP_core.MonteCarloMover_do_accept(self)
1801 
1802  def do_get_outputs(self):
1803  r"""do_get_outputs(MonteCarloMover self) -> IMP::ModelObjectsTemp"""
1804  return _IMP_core.MonteCarloMover_do_get_outputs(self)
1805 
1806  def __str__(self):
1807  r"""__str__(MonteCarloMover self) -> std::string"""
1808  return _IMP_core.MonteCarloMover___str__(self)
1809 
1810  def __repr__(self):
1811  r"""__repr__(MonteCarloMover self) -> std::string"""
1812  return _IMP_core.MonteCarloMover___repr__(self)
1813 
1814  @staticmethod
1815  def get_from(o):
1816  return _object_cast_to_MonteCarloMover(o)
1817 
1818 
1819  def get_type_name(self):
1820  return self.__class__.__name__
1821  def do_show(self, out):
1822  pass
1823  def get_version_info(self):
1824  if"IMP::core" == "IMP":
1825  return VersionInfo(self.__module__,
1826  __import__(self.__module__).get_module_version())
1827  else:
1828  return IMP.VersionInfo(self.__module__,
1829  __import__(self.__module__).get_module_version())
1830  @staticmethod
1831  def get_from(o):
1832  return _object_cast_to_MonteCarloMover(o)
1833 
1834  __swig_destroy__ = _IMP_core.delete_MonteCarloMover
1835  def __disown__(self):
1836  self.this.disown()
1837  _IMP_core.disown_MonteCarloMover(self)
1838  return weakref.proxy(self)
1839 
1840  def do_destroy(self):
1841  r"""do_destroy(MonteCarloMover self)"""
1842  return _IMP_core.MonteCarloMover_do_destroy(self)
1843 
1844  def handle_set_has_required_score_states(self, arg0):
1845  r"""handle_set_has_required_score_states(MonteCarloMover self, bool arg0)"""
1846  return _IMP_core.MonteCarloMover_handle_set_has_required_score_states(self, arg0)
1847 
1848  def do_get_inputs(self):
1849  r"""do_get_inputs(MonteCarloMover self) -> IMP::ModelObjectsTemp"""
1850  return _IMP_core.MonteCarloMover_do_get_inputs(self)
1851 
1852  def do_get_interactions(self):
1853  r"""do_get_interactions(MonteCarloMover self) -> IMP::ModelObjectsTemps"""
1854  return _IMP_core.MonteCarloMover_do_get_interactions(self)
1855 
1856 # Register MonteCarloMover in _IMP_core:
1857 _IMP_core.MonteCarloMover_swigregister(MonteCarloMover)
1858 class XYZ(IMP.Decorator):
1859  r"""Proxy of C++ IMP::core::XYZ class."""
1860 
1861  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
1862 
1863  @staticmethod
1864  def get_coordinate_key(i):
1865  r"""get_coordinate_key(unsigned int i) -> FloatKey"""
1866  return _IMP_core.XYZ_get_coordinate_key(i)
1867 
1868  def __init__(self, *args):
1869  r"""
1870  __init__(XYZ self) -> XYZ
1871  __init__(XYZ self, Model m, ParticleIndex id) -> XYZ
1872  __init__(XYZ self, _ParticleAdaptor d) -> XYZ
1873  """
1874  _IMP_core.XYZ_swiginit(self, _IMP_core.new_XYZ(*args))
1875 
1876  def show(self, *args):
1877  r"""show(XYZ self, _ostream out=std::cout)"""
1878  return _IMP_core.XYZ_show(self, *args)
1879 
1880  @staticmethod
1881  def setup_particle(*args):
1882  r"""
1883  setup_particle(Model m, ParticleIndex pi) -> XYZ
1884  setup_particle(_ParticleAdaptor pa) -> XYZ
1885  setup_particle(Model m, ParticleIndex pi, Vector3D v) -> XYZ
1886  setup_particle(_ParticleAdaptor pa, Vector3D v) -> XYZ
1887  """
1888  return _IMP_core.XYZ_setup_particle(*args)
1889 
1890  def get_x(self):
1891  r"""get_x(XYZ self) -> IMP::Float"""
1892  return _IMP_core.XYZ_get_x(self)
1893 
1894  def set_x(self, t):
1895  r"""set_x(XYZ self, IMP::Float t)"""
1896  return _IMP_core.XYZ_set_x(self, t)
1897 
1898  def get_y(self):
1899  r"""get_y(XYZ self) -> IMP::Float"""
1900  return _IMP_core.XYZ_get_y(self)
1901 
1902  def set_y(self, t):
1903  r"""set_y(XYZ self, IMP::Float t)"""
1904  return _IMP_core.XYZ_set_y(self, t)
1905 
1906  def get_z(self):
1907  r"""get_z(XYZ self) -> IMP::Float"""
1908  return _IMP_core.XYZ_get_z(self)
1909 
1910  def set_z(self, t):
1911  r"""set_z(XYZ self, IMP::Float t)"""
1912  return _IMP_core.XYZ_set_z(self, t)
1913 
1914  def set_coordinate(self, i, v):
1915  r"""set_coordinate(XYZ self, unsigned int i, IMP::Float v)"""
1916  return _IMP_core.XYZ_set_coordinate(self, i, v)
1917 
1918  def set_coordinates(self, v):
1919  r"""set_coordinates(XYZ self, Vector3D v)"""
1920  return _IMP_core.XYZ_set_coordinates(self, v)
1921 
1922  def get_coordinate(self, i):
1923  r"""get_coordinate(XYZ self, int i) -> IMP::Float"""
1924  return _IMP_core.XYZ_get_coordinate(self, i)
1925 
1926  def add_to_derivatives(self, v, d):
1927  r"""add_to_derivatives(XYZ self, Vector3D v, DerivativeAccumulator d)"""
1928  return _IMP_core.XYZ_add_to_derivatives(self, v, d)
1929 
1930  def get_coordinates_are_optimized(self):
1931  r"""get_coordinates_are_optimized(XYZ self) -> bool"""
1932  return _IMP_core.XYZ_get_coordinates_are_optimized(self)
1933 
1934  def set_coordinates_are_optimized(self, tf):
1935  r"""set_coordinates_are_optimized(XYZ self, bool tf)"""
1936  return _IMP_core.XYZ_set_coordinates_are_optimized(self, tf)
1937 
1938  def get_vector_to(self, b):
1939  r"""get_vector_to(XYZ self, XYZ b) -> Vector3D"""
1940  return _IMP_core.XYZ_get_vector_to(self, b)
1941 
1942  def get_coordinates(self):
1943  r"""get_coordinates(XYZ self) -> Vector3D"""
1944  return _IMP_core.XYZ_get_coordinates(self)
1945 
1946  def get_derivatives(self):
1947  r"""get_derivatives(XYZ self) -> Vector3D"""
1948  return _IMP_core.XYZ_get_derivatives(self)
1949 
1950  @staticmethod
1951  def get_is_setup(*args):
1952  r"""
1953  get_is_setup(_ParticleAdaptor p) -> bool
1954  get_is_setup(Model m, ParticleIndex pi) -> bool
1955  """
1956  return _IMP_core.XYZ_get_is_setup(*args)
1957 
1958  @staticmethod
1959  def get_xyz_keys():
1960  r"""get_xyz_keys() -> IMP::FloatKeys const &"""
1961  return _IMP_core.XYZ_get_xyz_keys()
1962 
1963  def add_attribute(self, *args):
1964  r"""
1965  add_attribute(XYZ self, FloatKey k, IMP::Float v, bool opt)
1966  add_attribute(XYZ self, FloatKey a0, IMP::Float a1)
1967  add_attribute(XYZ self, IntKey a0, IMP::Int a1)
1968  add_attribute(XYZ self, FloatsKey a0, IMP::Floats a1)
1969  add_attribute(XYZ self, IntsKey a0, IMP::Ints a1)
1970  add_attribute(XYZ self, StringKey a0, IMP::String a1)
1971  add_attribute(XYZ self, ParticleIndexKey a0, Particle a1)
1972  add_attribute(XYZ self, ObjectKey a0, Object a1)
1973  add_attribute(XYZ self, SparseFloatKey a0, IMP::Float a1)
1974  add_attribute(XYZ self, SparseIntKey a0, IMP::Int a1)
1975  add_attribute(XYZ self, SparseStringKey a0, IMP::String a1)
1976  add_attribute(XYZ self, SparseParticleIndexKey a0, ParticleIndex a1)
1977  """
1978  return _IMP_core.XYZ_add_attribute(self, *args)
1979 
1980  def get_value(self, *args):
1981  r"""
1982  get_value(XYZ self, FloatKey a0) -> IMP::Float
1983  get_value(XYZ self, IntKey a0) -> IMP::Int
1984  get_value(XYZ self, FloatsKey a0) -> IMP::Floats
1985  get_value(XYZ self, IntsKey a0) -> IMP::Ints
1986  get_value(XYZ self, StringKey a0) -> IMP::String
1987  get_value(XYZ self, ParticleIndexKey a0) -> Particle
1988  get_value(XYZ self, ObjectKey a0) -> Object
1989  get_value(XYZ self, SparseFloatKey a0) -> IMP::Float
1990  get_value(XYZ self, SparseIntKey a0) -> IMP::Int
1991  get_value(XYZ self, SparseStringKey a0) -> IMP::String
1992  get_value(XYZ self, SparseParticleIndexKey a0) -> ParticleIndex
1993  """
1994  return _IMP_core.XYZ_get_value(self, *args)
1995 
1996  def set_value(self, *args):
1997  r"""
1998  set_value(XYZ self, FloatKey a0, IMP::Float a1)
1999  set_value(XYZ self, IntKey a0, IMP::Int a1)
2000  set_value(XYZ self, FloatsKey a0, IMP::Floats a1)
2001  set_value(XYZ self, IntsKey a0, IMP::Ints a1)
2002  set_value(XYZ self, StringKey a0, IMP::String a1)
2003  set_value(XYZ self, ParticleIndexKey a0, Particle a1)
2004  set_value(XYZ self, ObjectKey a0, Object a1)
2005  set_value(XYZ self, SparseFloatKey a0, IMP::Float a1)
2006  set_value(XYZ self, SparseIntKey a0, IMP::Int a1)
2007  set_value(XYZ self, SparseStringKey a0, IMP::String a1)
2008  set_value(XYZ self, SparseParticleIndexKey a0, ParticleIndex a1)
2009  """
2010  return _IMP_core.XYZ_set_value(self, *args)
2011 
2012  def remove_attribute(self, *args):
2013  r"""
2014  remove_attribute(XYZ self, FloatKey a0)
2015  remove_attribute(XYZ self, IntKey a0)
2016  remove_attribute(XYZ self, FloatsKey a0)
2017  remove_attribute(XYZ self, IntsKey a0)
2018  remove_attribute(XYZ self, StringKey a0)
2019  remove_attribute(XYZ self, ParticleIndexKey a0)
2020  remove_attribute(XYZ self, ObjectKey a0)
2021  remove_attribute(XYZ self, SparseFloatKey a0)
2022  remove_attribute(XYZ self, SparseIntKey a0)
2023  remove_attribute(XYZ self, SparseStringKey a0)
2024  remove_attribute(XYZ self, SparseParticleIndexKey a0)
2025  """
2026  return _IMP_core.XYZ_remove_attribute(self, *args)
2027 
2028  def has_attribute(self, *args):
2029  r"""
2030  has_attribute(XYZ self, FloatKey a0) -> bool
2031  has_attribute(XYZ self, IntKey a0) -> bool
2032  has_attribute(XYZ self, FloatsKey a0) -> bool
2033  has_attribute(XYZ self, IntsKey a0) -> bool
2034  has_attribute(XYZ self, StringKey a0) -> bool
2035  has_attribute(XYZ self, ParticleIndexKey a0) -> bool
2036  has_attribute(XYZ self, ObjectKey a0) -> bool
2037  has_attribute(XYZ self, SparseFloatKey a0) -> bool
2038  has_attribute(XYZ self, SparseIntKey a0) -> bool
2039  has_attribute(XYZ self, SparseStringKey a0) -> bool
2040  has_attribute(XYZ self, SparseParticleIndexKey a0) -> bool
2041  """
2042  return _IMP_core.XYZ_has_attribute(self, *args)
2043 
2044  def get_derivative(self, *args):
2045  r"""
2046  get_derivative(XYZ self, int i) -> IMP::Float
2047  get_derivative(XYZ self, FloatKey a0) -> double
2048  """
2049  return _IMP_core.XYZ_get_derivative(self, *args)
2050 
2051  def get_name(self):
2052  r"""get_name(XYZ self) -> std::string"""
2053  return _IMP_core.XYZ_get_name(self)
2054 
2055  def clear_caches(self):
2056  r"""clear_caches(XYZ self)"""
2057  return _IMP_core.XYZ_clear_caches(self)
2058 
2059  def set_name(self, a0):
2060  r"""set_name(XYZ self, std::string a0)"""
2061  return _IMP_core.XYZ_set_name(self, a0)
2062 
2063  def set_check_level(self, a0):
2064  r"""set_check_level(XYZ self, IMP::CheckLevel a0)"""
2065  return _IMP_core.XYZ_set_check_level(self, a0)
2066 
2067  def add_to_derivative(self, *args):
2068  r"""
2069  add_to_derivative(XYZ self, int i, IMP::Float v, DerivativeAccumulator d)
2070  add_to_derivative(XYZ self, FloatKey a0, double a1, DerivativeAccumulator a2)
2071  """
2072  return _IMP_core.XYZ_add_to_derivative(self, *args)
2073 
2074  def set_is_optimized(self, a0, a1):
2075  r"""set_is_optimized(XYZ self, FloatKey a0, bool a1)"""
2076  return _IMP_core.XYZ_set_is_optimized(self, a0, a1)
2077 
2078  def get_is_optimized(self, a0):
2079  r"""get_is_optimized(XYZ self, FloatKey a0) -> bool"""
2080  return _IMP_core.XYZ_get_is_optimized(self, a0)
2081 
2082  def get_check_level(self):
2083  r"""get_check_level(XYZ self) -> IMP::CheckLevel"""
2084  return _IMP_core.XYZ_get_check_level(self)
2085 
2086  def __eq__(self, *args):
2087  r"""
2088  __eq__(XYZ self, XYZ o) -> bool
2089  __eq__(XYZ self, Particle d) -> bool
2090  """
2091  return _IMP_core.XYZ___eq__(self, *args)
2092 
2093  def __ne__(self, *args):
2094  r"""
2095  __ne__(XYZ self, XYZ o) -> bool
2096  __ne__(XYZ self, Particle d) -> bool
2097  """
2098  return _IMP_core.XYZ___ne__(self, *args)
2099 
2100  def __le__(self, *args):
2101  r"""
2102  __le__(XYZ self, XYZ o) -> bool
2103  __le__(XYZ self, Particle d) -> bool
2104  """
2105  return _IMP_core.XYZ___le__(self, *args)
2106 
2107  def __lt__(self, *args):
2108  r"""
2109  __lt__(XYZ self, XYZ o) -> bool
2110  __lt__(XYZ self, Particle d) -> bool
2111  """
2112  return _IMP_core.XYZ___lt__(self, *args)
2113 
2114  def __ge__(self, *args):
2115  r"""
2116  __ge__(XYZ self, XYZ o) -> bool
2117  __ge__(XYZ self, Particle d) -> bool
2118  """
2119  return _IMP_core.XYZ___ge__(self, *args)
2120 
2121  def __gt__(self, *args):
2122  r"""
2123  __gt__(XYZ self, XYZ o) -> bool
2124  __gt__(XYZ self, Particle d) -> bool
2125  """
2126  return _IMP_core.XYZ___gt__(self, *args)
2127 
2128  def __hash__(self):
2129  r"""__hash__(XYZ self) -> std::size_t"""
2130  return _IMP_core.XYZ___hash__(self)
2131 
2132  def __str__(self):
2133  r"""__str__(XYZ self) -> std::string"""
2134  return _IMP_core.XYZ___str__(self)
2135 
2136  def __repr__(self):
2137  r"""__repr__(XYZ self) -> std::string"""
2138  return _IMP_core.XYZ___repr__(self)
2139 
2140  def _get_as_binary(self):
2141  r"""_get_as_binary(XYZ self) -> PyObject *"""
2142  return _IMP_core.XYZ__get_as_binary(self)
2143 
2144  def _set_from_binary(self, p):
2145  r"""_set_from_binary(XYZ self, PyObject * p)"""
2146  return _IMP_core.XYZ__set_from_binary(self, p)
2147 
2148  def __getstate__(self):
2149  p = self._get_as_binary()
2150  if len(self.__dict__) > 1:
2151  d = self.__dict__.copy()
2152  del d['this']
2153  p = (d, p)
2154  return p
2155 
2156  def __setstate__(self, p):
2157  if not hasattr(self, 'this'):
2158  self.__init__()
2159  if isinstance(p, tuple):
2160  d, p = p
2161  self.__dict__.update(d)
2162  return self._set_from_binary(p)
2163 
2164  __swig_destroy__ = _IMP_core.delete_XYZ
2165 
2166 # Register XYZ in _IMP_core:
2167 _IMP_core.XYZ_swigregister(XYZ)
2168 
2169 def set_vector_geometry(d, v):
2170  r"""set_vector_geometry(XYZ d, Vector3D v)"""
2171  return _IMP_core.set_vector_geometry(d, v)
2172 
2173 def get_vector_geometry(d):
2174  r"""get_vector_geometry(XYZ d) -> Vector3D"""
2175  return _IMP_core.get_vector_geometry(d)
2176 
2177 def get_dihedral(a, b, c, d):
2178  r"""get_dihedral(XYZ a, XYZ b, XYZ c, XYZ d) -> double"""
2179  return _IMP_core.get_dihedral(a, b, c, d)
2180 class XYZR(XYZ):
2181  r"""Proxy of C++ IMP::core::XYZR class."""
2182 
2183  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2184 
2185  def __init__(self, *args):
2186  r"""
2187  __init__(XYZR self) -> XYZR
2188  __init__(XYZR self, Model m, ParticleIndex id) -> XYZR
2189  __init__(XYZR self, _ParticleAdaptor d) -> XYZR
2190  """
2191  _IMP_core.XYZR_swiginit(self, _IMP_core.new_XYZR(*args))
2192 
2193  def show(self, *args):
2194  r"""show(XYZR self, _ostream out=std::cout)"""
2195  return _IMP_core.XYZR_show(self, *args)
2196 
2197  @staticmethod
2198  def setup_particle(*args):
2199  r"""
2200  setup_particle(Model m, ParticleIndex pi) -> XYZR
2201  setup_particle(_ParticleAdaptor pa) -> XYZR
2202  setup_particle(Model m, ParticleIndex pi, IMP::Float radius) -> XYZR
2203  setup_particle(_ParticleAdaptor pa, IMP::Float radius) -> XYZR
2204  setup_particle(Model m, ParticleIndex pi, Sphere3D ball) -> XYZR
2205  setup_particle(_ParticleAdaptor pa, Sphere3D ball) -> XYZR
2206  """
2207  return _IMP_core.XYZR_setup_particle(*args)
2208 
2209  @staticmethod
2210  def get_is_setup(*args):
2211  r"""
2212  get_is_setup(_ParticleAdaptor p) -> bool
2213  get_is_setup(Model m, ParticleIndex pi) -> bool
2214  """
2215  return _IMP_core.XYZR_get_is_setup(*args)
2216 
2217  def get_radius(self):
2218  r"""get_radius(XYZR self) -> double"""
2219  return _IMP_core.XYZR_get_radius(self)
2220 
2221  def set_radius(self, r):
2222  r"""set_radius(XYZR self, double r)"""
2223  return _IMP_core.XYZR_set_radius(self, r)
2224 
2225  def get_sphere(self):
2226  r"""get_sphere(XYZR self) -> Sphere3D"""
2227  return _IMP_core.XYZR_get_sphere(self)
2228 
2229  def set_sphere(self, s):
2230  r"""set_sphere(XYZR self, Sphere3D s)"""
2231  return _IMP_core.XYZR_set_sphere(self, s)
2232 
2233  @staticmethod
2234  def get_radius_key():
2235  r"""get_radius_key() -> FloatKey"""
2236  return _IMP_core.XYZR_get_radius_key()
2237 
2238  def add_to_radius_derivative(self, v, d):
2239  r"""add_to_radius_derivative(XYZR self, double v, DerivativeAccumulator d)"""
2240  return _IMP_core.XYZR_add_to_radius_derivative(self, v, d)
2241 
2242  def add_attribute(self, *args):
2243  r"""
2244  add_attribute(XYZR self, FloatKey k, IMP::Float v, bool opt)
2245  add_attribute(XYZR self, FloatKey a0, IMP::Float a1)
2246  add_attribute(XYZR self, IntKey a0, IMP::Int a1)
2247  add_attribute(XYZR self, FloatsKey a0, IMP::Floats a1)
2248  add_attribute(XYZR self, IntsKey a0, IMP::Ints a1)
2249  add_attribute(XYZR self, StringKey a0, IMP::String a1)
2250  add_attribute(XYZR self, ParticleIndexKey a0, Particle a1)
2251  add_attribute(XYZR self, ObjectKey a0, Object a1)
2252  add_attribute(XYZR self, SparseFloatKey a0, IMP::Float a1)
2253  add_attribute(XYZR self, SparseIntKey a0, IMP::Int a1)
2254  add_attribute(XYZR self, SparseStringKey a0, IMP::String a1)
2255  add_attribute(XYZR self, SparseParticleIndexKey a0, ParticleIndex a1)
2256  """
2257  return _IMP_core.XYZR_add_attribute(self, *args)
2258 
2259  def get_value(self, *args):
2260  r"""
2261  get_value(XYZR self, FloatKey a0) -> IMP::Float
2262  get_value(XYZR self, IntKey a0) -> IMP::Int
2263  get_value(XYZR self, FloatsKey a0) -> IMP::Floats
2264  get_value(XYZR self, IntsKey a0) -> IMP::Ints
2265  get_value(XYZR self, StringKey a0) -> IMP::String
2266  get_value(XYZR self, ParticleIndexKey a0) -> Particle
2267  get_value(XYZR self, ObjectKey a0) -> Object
2268  get_value(XYZR self, SparseFloatKey a0) -> IMP::Float
2269  get_value(XYZR self, SparseIntKey a0) -> IMP::Int
2270  get_value(XYZR self, SparseStringKey a0) -> IMP::String
2271  get_value(XYZR self, SparseParticleIndexKey a0) -> ParticleIndex
2272  """
2273  return _IMP_core.XYZR_get_value(self, *args)
2274 
2275  def set_value(self, *args):
2276  r"""
2277  set_value(XYZR self, FloatKey a0, IMP::Float a1)
2278  set_value(XYZR self, IntKey a0, IMP::Int a1)
2279  set_value(XYZR self, FloatsKey a0, IMP::Floats a1)
2280  set_value(XYZR self, IntsKey a0, IMP::Ints a1)
2281  set_value(XYZR self, StringKey a0, IMP::String a1)
2282  set_value(XYZR self, ParticleIndexKey a0, Particle a1)
2283  set_value(XYZR self, ObjectKey a0, Object a1)
2284  set_value(XYZR self, SparseFloatKey a0, IMP::Float a1)
2285  set_value(XYZR self, SparseIntKey a0, IMP::Int a1)
2286  set_value(XYZR self, SparseStringKey a0, IMP::String a1)
2287  set_value(XYZR self, SparseParticleIndexKey a0, ParticleIndex a1)
2288  """
2289  return _IMP_core.XYZR_set_value(self, *args)
2290 
2291  def remove_attribute(self, *args):
2292  r"""
2293  remove_attribute(XYZR self, FloatKey a0)
2294  remove_attribute(XYZR self, IntKey a0)
2295  remove_attribute(XYZR self, FloatsKey a0)
2296  remove_attribute(XYZR self, IntsKey a0)
2297  remove_attribute(XYZR self, StringKey a0)
2298  remove_attribute(XYZR self, ParticleIndexKey a0)
2299  remove_attribute(XYZR self, ObjectKey a0)
2300  remove_attribute(XYZR self, SparseFloatKey a0)
2301  remove_attribute(XYZR self, SparseIntKey a0)
2302  remove_attribute(XYZR self, SparseStringKey a0)
2303  remove_attribute(XYZR self, SparseParticleIndexKey a0)
2304  """
2305  return _IMP_core.XYZR_remove_attribute(self, *args)
2306 
2307  def has_attribute(self, *args):
2308  r"""
2309  has_attribute(XYZR self, FloatKey a0) -> bool
2310  has_attribute(XYZR self, IntKey a0) -> bool
2311  has_attribute(XYZR self, FloatsKey a0) -> bool
2312  has_attribute(XYZR self, IntsKey a0) -> bool
2313  has_attribute(XYZR self, StringKey a0) -> bool
2314  has_attribute(XYZR self, ParticleIndexKey a0) -> bool
2315  has_attribute(XYZR self, ObjectKey a0) -> bool
2316  has_attribute(XYZR self, SparseFloatKey a0) -> bool
2317  has_attribute(XYZR self, SparseIntKey a0) -> bool
2318  has_attribute(XYZR self, SparseStringKey a0) -> bool
2319  has_attribute(XYZR self, SparseParticleIndexKey a0) -> bool
2320  """
2321  return _IMP_core.XYZR_has_attribute(self, *args)
2322 
2323  def get_derivative(self, a0):
2324  r"""get_derivative(XYZR self, FloatKey a0) -> double"""
2325  return _IMP_core.XYZR_get_derivative(self, a0)
2326 
2327  def get_name(self):
2328  r"""get_name(XYZR self) -> std::string"""
2329  return _IMP_core.XYZR_get_name(self)
2330 
2331  def clear_caches(self):
2332  r"""clear_caches(XYZR self)"""
2333  return _IMP_core.XYZR_clear_caches(self)
2334 
2335  def set_name(self, a0):
2336  r"""set_name(XYZR self, std::string a0)"""
2337  return _IMP_core.XYZR_set_name(self, a0)
2338 
2339  def set_check_level(self, a0):
2340  r"""set_check_level(XYZR self, IMP::CheckLevel a0)"""
2341  return _IMP_core.XYZR_set_check_level(self, a0)
2342 
2343  def add_to_derivative(self, a0, a1, a2):
2344  r"""add_to_derivative(XYZR self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2345  return _IMP_core.XYZR_add_to_derivative(self, a0, a1, a2)
2346 
2347  def set_is_optimized(self, a0, a1):
2348  r"""set_is_optimized(XYZR self, FloatKey a0, bool a1)"""
2349  return _IMP_core.XYZR_set_is_optimized(self, a0, a1)
2350 
2351  def get_is_optimized(self, a0):
2352  r"""get_is_optimized(XYZR self, FloatKey a0) -> bool"""
2353  return _IMP_core.XYZR_get_is_optimized(self, a0)
2354 
2355  def get_check_level(self):
2356  r"""get_check_level(XYZR self) -> IMP::CheckLevel"""
2357  return _IMP_core.XYZR_get_check_level(self)
2358 
2359  def __eq__(self, *args):
2360  r"""
2361  __eq__(XYZR self, XYZR o) -> bool
2362  __eq__(XYZR self, Particle d) -> bool
2363  """
2364  return _IMP_core.XYZR___eq__(self, *args)
2365 
2366  def __ne__(self, *args):
2367  r"""
2368  __ne__(XYZR self, XYZR o) -> bool
2369  __ne__(XYZR self, Particle d) -> bool
2370  """
2371  return _IMP_core.XYZR___ne__(self, *args)
2372 
2373  def __le__(self, *args):
2374  r"""
2375  __le__(XYZR self, XYZR o) -> bool
2376  __le__(XYZR self, Particle d) -> bool
2377  """
2378  return _IMP_core.XYZR___le__(self, *args)
2379 
2380  def __lt__(self, *args):
2381  r"""
2382  __lt__(XYZR self, XYZR o) -> bool
2383  __lt__(XYZR self, Particle d) -> bool
2384  """
2385  return _IMP_core.XYZR___lt__(self, *args)
2386 
2387  def __ge__(self, *args):
2388  r"""
2389  __ge__(XYZR self, XYZR o) -> bool
2390  __ge__(XYZR self, Particle d) -> bool
2391  """
2392  return _IMP_core.XYZR___ge__(self, *args)
2393 
2394  def __gt__(self, *args):
2395  r"""
2396  __gt__(XYZR self, XYZR o) -> bool
2397  __gt__(XYZR self, Particle d) -> bool
2398  """
2399  return _IMP_core.XYZR___gt__(self, *args)
2400 
2401  def __hash__(self):
2402  r"""__hash__(XYZR self) -> std::size_t"""
2403  return _IMP_core.XYZR___hash__(self)
2404 
2405  def __str__(self):
2406  r"""__str__(XYZR self) -> std::string"""
2407  return _IMP_core.XYZR___str__(self)
2408 
2409  def __repr__(self):
2410  r"""__repr__(XYZR self) -> std::string"""
2411  return _IMP_core.XYZR___repr__(self)
2412 
2413  def _get_as_binary(self):
2414  r"""_get_as_binary(XYZR self) -> PyObject *"""
2415  return _IMP_core.XYZR__get_as_binary(self)
2416 
2417  def _set_from_binary(self, p):
2418  r"""_set_from_binary(XYZR self, PyObject * p)"""
2419  return _IMP_core.XYZR__set_from_binary(self, p)
2420 
2421  def __getstate__(self):
2422  p = self._get_as_binary()
2423  if len(self.__dict__) > 1:
2424  d = self.__dict__.copy()
2425  del d['this']
2426  p = (d, p)
2427  return p
2428 
2429  def __setstate__(self, p):
2430  if not hasattr(self, 'this'):
2431  self.__init__()
2432  if isinstance(p, tuple):
2433  d, p = p
2434  self.__dict__.update(d)
2435  return self._set_from_binary(p)
2436 
2437  __swig_destroy__ = _IMP_core.delete_XYZR
2438 
2439 # Register XYZR in _IMP_core:
2440 _IMP_core.XYZR_swigregister(XYZR)
2441 
2442 def set_enclosing_sphere(b, v, slack=0):
2443  r"""set_enclosing_sphere(XYZR b, IMP::core::XYZs const & v, double slack=0)"""
2444  return _IMP_core.set_enclosing_sphere(b, v, slack)
2445 
2446 def set_enclosing_radius(b, v):
2447  r"""set_enclosing_radius(XYZR b, IMP::core::XYZs const & v)"""
2448  return _IMP_core.set_enclosing_radius(b, v)
2449 
2450 def get_enclosing_sphere(v):
2451  r"""get_enclosing_sphere(IMP::core::XYZs const & v) -> Sphere3D"""
2452  return _IMP_core.get_enclosing_sphere(v)
2453 
2454 def create_xyzr_particles(m, num, radius, box_side=10):
2455  r"""create_xyzr_particles(Model m, unsigned int num, IMP::Float radius, IMP::Float box_side=10) -> IMP::core::XYZRs"""
2456  return _IMP_core.create_xyzr_particles(m, num, radius, box_side)
2457 class XYZRGeometry(IMP.display.SingletonGeometry):
2458  r"""Proxy of C++ IMP::core::XYZRGeometry class."""
2459 
2460  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2461 
2462  def __init__(self, *args):
2463  r"""
2464  __init__(XYZRGeometry self, Particle p) -> XYZRGeometry
2465  __init__(XYZRGeometry self, XYZR d) -> XYZRGeometry
2466  """
2467  _IMP_core.XYZRGeometry_swiginit(self, _IMP_core.new_XYZRGeometry(*args))
2468 
2469  def get_version_info(self):
2470  r"""get_version_info(XYZRGeometry self) -> VersionInfo"""
2471  return _IMP_core.XYZRGeometry_get_version_info(self)
2472  __swig_destroy__ = _IMP_core.delete_XYZRGeometry
2473 
2474  def __str__(self):
2475  r"""__str__(XYZRGeometry self) -> std::string"""
2476  return _IMP_core.XYZRGeometry___str__(self)
2477 
2478  def __repr__(self):
2479  r"""__repr__(XYZRGeometry self) -> std::string"""
2480  return _IMP_core.XYZRGeometry___repr__(self)
2481 
2482  @staticmethod
2483  def get_from(o):
2484  return _object_cast_to_XYZRGeometry(o)
2485 
2486 
2487 # Register XYZRGeometry in _IMP_core:
2488 _IMP_core.XYZRGeometry_swigregister(XYZRGeometry)
2489 class XYZRsGeometry(IMP.display.SingletonsGeometry):
2490  r"""Proxy of C++ IMP::core::XYZRsGeometry class."""
2491 
2492  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2493 
2494  def __init__(self, sc):
2495  r"""__init__(XYZRsGeometry self, SingletonContainer sc) -> XYZRsGeometry"""
2496  _IMP_core.XYZRsGeometry_swiginit(self, _IMP_core.new_XYZRsGeometry(sc))
2497 
2498  def get_version_info(self):
2499  r"""get_version_info(XYZRsGeometry self) -> VersionInfo"""
2500  return _IMP_core.XYZRsGeometry_get_version_info(self)
2501  __swig_destroy__ = _IMP_core.delete_XYZRsGeometry
2502 
2503  def __str__(self):
2504  r"""__str__(XYZRsGeometry self) -> std::string"""
2505  return _IMP_core.XYZRsGeometry___str__(self)
2506 
2507  def __repr__(self):
2508  r"""__repr__(XYZRsGeometry self) -> std::string"""
2509  return _IMP_core.XYZRsGeometry___repr__(self)
2510 
2511  @staticmethod
2512  def get_from(o):
2513  return _object_cast_to_XYZRsGeometry(o)
2514 
2515 
2516 # Register XYZRsGeometry in _IMP_core:
2517 _IMP_core.XYZRsGeometry_swigregister(XYZRsGeometry)
2518 class XYZDerivativeGeometry(IMP.display.SingletonGeometry):
2519  r"""Proxy of C++ IMP::core::XYZDerivativeGeometry class."""
2520 
2521  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2522 
2523  def __init__(self, *args):
2524  r"""
2525  __init__(XYZDerivativeGeometry self, Particle p) -> XYZDerivativeGeometry
2526  __init__(XYZDerivativeGeometry self, XYZ d) -> XYZDerivativeGeometry
2527  """
2528  _IMP_core.XYZDerivativeGeometry_swiginit(self, _IMP_core.new_XYZDerivativeGeometry(*args))
2529 
2530  def get_version_info(self):
2531  r"""get_version_info(XYZDerivativeGeometry self) -> VersionInfo"""
2532  return _IMP_core.XYZDerivativeGeometry_get_version_info(self)
2533  __swig_destroy__ = _IMP_core.delete_XYZDerivativeGeometry
2534 
2535  def __str__(self):
2536  r"""__str__(XYZDerivativeGeometry self) -> std::string"""
2537  return _IMP_core.XYZDerivativeGeometry___str__(self)
2538 
2539  def __repr__(self):
2540  r"""__repr__(XYZDerivativeGeometry self) -> std::string"""
2541  return _IMP_core.XYZDerivativeGeometry___repr__(self)
2542 
2543  @staticmethod
2544  def get_from(o):
2545  return _object_cast_to_XYZDerivativeGeometry(o)
2546 
2547 
2548 # Register XYZDerivativeGeometry in _IMP_core:
2549 _IMP_core.XYZDerivativeGeometry_swigregister(XYZDerivativeGeometry)
2550 class XYZDerivativesGeometry(IMP.display.SingletonsGeometry):
2551  r"""Proxy of C++ IMP::core::XYZDerivativesGeometry class."""
2552 
2553  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2554 
2555  def __init__(self, sc):
2556  r"""__init__(XYZDerivativesGeometry self, SingletonContainer sc) -> XYZDerivativesGeometry"""
2557  _IMP_core.XYZDerivativesGeometry_swiginit(self, _IMP_core.new_XYZDerivativesGeometry(sc))
2558 
2559  def get_version_info(self):
2560  r"""get_version_info(XYZDerivativesGeometry self) -> VersionInfo"""
2561  return _IMP_core.XYZDerivativesGeometry_get_version_info(self)
2562  __swig_destroy__ = _IMP_core.delete_XYZDerivativesGeometry
2563 
2564  def __str__(self):
2565  r"""__str__(XYZDerivativesGeometry self) -> std::string"""
2566  return _IMP_core.XYZDerivativesGeometry___str__(self)
2567 
2568  def __repr__(self):
2569  r"""__repr__(XYZDerivativesGeometry self) -> std::string"""
2570  return _IMP_core.XYZDerivativesGeometry___repr__(self)
2571 
2572  @staticmethod
2573  def get_from(o):
2574  return _object_cast_to_XYZDerivativesGeometry(o)
2575 
2576 
2577 # Register XYZDerivativesGeometry in _IMP_core:
2578 _IMP_core.XYZDerivativesGeometry_swigregister(XYZDerivativesGeometry)
2579 class EdgePairGeometry(IMP.display.PairGeometry):
2580  r"""Proxy of C++ IMP::core::EdgePairGeometry class."""
2581 
2582  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2583 
2584  def __init__(self, pp):
2585  r"""__init__(EdgePairGeometry self, IMP::ParticlePair const & pp) -> EdgePairGeometry"""
2586  _IMP_core.EdgePairGeometry_swiginit(self, _IMP_core.new_EdgePairGeometry(pp))
2587 
2588  def get_version_info(self):
2589  r"""get_version_info(EdgePairGeometry self) -> VersionInfo"""
2590  return _IMP_core.EdgePairGeometry_get_version_info(self)
2591  __swig_destroy__ = _IMP_core.delete_EdgePairGeometry
2592 
2593  def __str__(self):
2594  r"""__str__(EdgePairGeometry self) -> std::string"""
2595  return _IMP_core.EdgePairGeometry___str__(self)
2596 
2597  def __repr__(self):
2598  r"""__repr__(EdgePairGeometry self) -> std::string"""
2599  return _IMP_core.EdgePairGeometry___repr__(self)
2600 
2601  @staticmethod
2602  def get_from(o):
2603  return _object_cast_to_EdgePairGeometry(o)
2604 
2605 
2606 # Register EdgePairGeometry in _IMP_core:
2607 _IMP_core.EdgePairGeometry_swigregister(EdgePairGeometry)
2608 class EdgePairsGeometry(IMP.display.PairsGeometry):
2609  r"""Proxy of C++ IMP::core::EdgePairsGeometry class."""
2610 
2611  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2612 
2613  def __init__(self, sc):
2614  r"""__init__(EdgePairsGeometry self, PairContainer sc) -> EdgePairsGeometry"""
2615  _IMP_core.EdgePairsGeometry_swiginit(self, _IMP_core.new_EdgePairsGeometry(sc))
2616 
2617  def get_version_info(self):
2618  r"""get_version_info(EdgePairsGeometry self) -> VersionInfo"""
2619  return _IMP_core.EdgePairsGeometry_get_version_info(self)
2620  __swig_destroy__ = _IMP_core.delete_EdgePairsGeometry
2621 
2622  def __str__(self):
2623  r"""__str__(EdgePairsGeometry self) -> std::string"""
2624  return _IMP_core.EdgePairsGeometry___str__(self)
2625 
2626  def __repr__(self):
2627  r"""__repr__(EdgePairsGeometry self) -> std::string"""
2628  return _IMP_core.EdgePairsGeometry___repr__(self)
2629 
2630  @staticmethod
2631  def get_from(o):
2632  return _object_cast_to_EdgePairsGeometry(o)
2633 
2634 
2635 # Register EdgePairsGeometry in _IMP_core:
2636 _IMP_core.EdgePairsGeometry_swigregister(EdgePairsGeometry)
2637 class Direction(IMP.Decorator):
2638  r"""Proxy of C++ IMP::core::Direction class."""
2639 
2640  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2641 
2642  @staticmethod
2643  def do_setup_particle(m, pi, v):
2644  r"""do_setup_particle(Model m, ParticleIndex pi, Vector3D v)"""
2645  return _IMP_core.Direction_do_setup_particle(m, pi, v)
2646 
2647  def __init__(self, *args):
2648  r"""
2649  __init__(Direction self) -> Direction
2650  __init__(Direction self, Model m, ParticleIndex id) -> Direction
2651  __init__(Direction self, _ParticleAdaptor d) -> Direction
2652  """
2653  _IMP_core.Direction_swiginit(self, _IMP_core.new_Direction(*args))
2654 
2655  def show(self, *args):
2656  r"""show(Direction self, _ostream out=std::cout)"""
2657  return _IMP_core.Direction_show(self, *args)
2658 
2659  @staticmethod
2660  def setup_particle(*args):
2661  r"""
2662  setup_particle(Model m, ParticleIndex pi, Vector3D v) -> Direction
2663  setup_particle(_ParticleAdaptor pa, Vector3D v) -> Direction
2664  """
2665  return _IMP_core.Direction_setup_particle(*args)
2666 
2667  @staticmethod
2668  def get_is_setup(*args):
2669  r"""
2670  get_is_setup(_ParticleAdaptor p) -> bool
2671  get_is_setup(Model m, ParticleIndex pi) -> bool
2672  """
2673  return _IMP_core.Direction_get_is_setup(*args)
2674 
2675  @staticmethod
2676  def get_direction_key(i):
2677  r"""get_direction_key(unsigned int i) -> FloatKey"""
2678  return _IMP_core.Direction_get_direction_key(i)
2679 
2680  def get_direction_derivative(self, i):
2681  r"""get_direction_derivative(Direction self, int i) -> IMP::Float"""
2682  return _IMP_core.Direction_get_direction_derivative(self, i)
2683 
2684  def get_direction_derivatives(self):
2685  r"""get_direction_derivatives(Direction self) -> Vector3D"""
2686  return _IMP_core.Direction_get_direction_derivatives(self)
2687 
2688  def add_to_direction_derivative(self, i, v, d):
2689  r"""add_to_direction_derivative(Direction self, int i, IMP::Float v, DerivativeAccumulator d)"""
2690  return _IMP_core.Direction_add_to_direction_derivative(self, i, v, d)
2691 
2692  def add_to_direction_derivatives(self, v, d):
2693  r"""add_to_direction_derivatives(Direction self, Vector3D v, DerivativeAccumulator d)"""
2694  return _IMP_core.Direction_add_to_direction_derivatives(self, v, d)
2695 
2696  def get_direction_is_optimized(self):
2697  r"""get_direction_is_optimized(Direction self) -> bool"""
2698  return _IMP_core.Direction_get_direction_is_optimized(self)
2699 
2700  def set_direction_is_optimized(self, tf):
2701  r"""set_direction_is_optimized(Direction self, bool tf)"""
2702  return _IMP_core.Direction_set_direction_is_optimized(self, tf)
2703 
2704  def get_direction(self):
2705  r"""get_direction(Direction self) -> Vector3D"""
2706  return _IMP_core.Direction_get_direction(self)
2707 
2708  def set_direction(self, v):
2709  r"""set_direction(Direction self, Vector3D v)"""
2710  return _IMP_core.Direction_set_direction(self, v)
2711 
2712  def reflect(self):
2713  r"""reflect(Direction self)"""
2714  return _IMP_core.Direction_reflect(self)
2715 
2716  def add_attribute(self, *args):
2717  r"""
2718  add_attribute(Direction self, FloatKey k, IMP::Float v, bool opt)
2719  add_attribute(Direction self, FloatKey a0, IMP::Float a1)
2720  add_attribute(Direction self, IntKey a0, IMP::Int a1)
2721  add_attribute(Direction self, FloatsKey a0, IMP::Floats a1)
2722  add_attribute(Direction self, IntsKey a0, IMP::Ints a1)
2723  add_attribute(Direction self, StringKey a0, IMP::String a1)
2724  add_attribute(Direction self, ParticleIndexKey a0, Particle a1)
2725  add_attribute(Direction self, ObjectKey a0, Object a1)
2726  add_attribute(Direction self, SparseFloatKey a0, IMP::Float a1)
2727  add_attribute(Direction self, SparseIntKey a0, IMP::Int a1)
2728  add_attribute(Direction self, SparseStringKey a0, IMP::String a1)
2729  add_attribute(Direction self, SparseParticleIndexKey a0, ParticleIndex a1)
2730  """
2731  return _IMP_core.Direction_add_attribute(self, *args)
2732 
2733  def get_value(self, *args):
2734  r"""
2735  get_value(Direction self, FloatKey a0) -> IMP::Float
2736  get_value(Direction self, IntKey a0) -> IMP::Int
2737  get_value(Direction self, FloatsKey a0) -> IMP::Floats
2738  get_value(Direction self, IntsKey a0) -> IMP::Ints
2739  get_value(Direction self, StringKey a0) -> IMP::String
2740  get_value(Direction self, ParticleIndexKey a0) -> Particle
2741  get_value(Direction self, ObjectKey a0) -> Object
2742  get_value(Direction self, SparseFloatKey a0) -> IMP::Float
2743  get_value(Direction self, SparseIntKey a0) -> IMP::Int
2744  get_value(Direction self, SparseStringKey a0) -> IMP::String
2745  get_value(Direction self, SparseParticleIndexKey a0) -> ParticleIndex
2746  """
2747  return _IMP_core.Direction_get_value(self, *args)
2748 
2749  def set_value(self, *args):
2750  r"""
2751  set_value(Direction self, FloatKey a0, IMP::Float a1)
2752  set_value(Direction self, IntKey a0, IMP::Int a1)
2753  set_value(Direction self, FloatsKey a0, IMP::Floats a1)
2754  set_value(Direction self, IntsKey a0, IMP::Ints a1)
2755  set_value(Direction self, StringKey a0, IMP::String a1)
2756  set_value(Direction self, ParticleIndexKey a0, Particle a1)
2757  set_value(Direction self, ObjectKey a0, Object a1)
2758  set_value(Direction self, SparseFloatKey a0, IMP::Float a1)
2759  set_value(Direction self, SparseIntKey a0, IMP::Int a1)
2760  set_value(Direction self, SparseStringKey a0, IMP::String a1)
2761  set_value(Direction self, SparseParticleIndexKey a0, ParticleIndex a1)
2762  """
2763  return _IMP_core.Direction_set_value(self, *args)
2764 
2765  def remove_attribute(self, *args):
2766  r"""
2767  remove_attribute(Direction self, FloatKey a0)
2768  remove_attribute(Direction self, IntKey a0)
2769  remove_attribute(Direction self, FloatsKey a0)
2770  remove_attribute(Direction self, IntsKey a0)
2771  remove_attribute(Direction self, StringKey a0)
2772  remove_attribute(Direction self, ParticleIndexKey a0)
2773  remove_attribute(Direction self, ObjectKey a0)
2774  remove_attribute(Direction self, SparseFloatKey a0)
2775  remove_attribute(Direction self, SparseIntKey a0)
2776  remove_attribute(Direction self, SparseStringKey a0)
2777  remove_attribute(Direction self, SparseParticleIndexKey a0)
2778  """
2779  return _IMP_core.Direction_remove_attribute(self, *args)
2780 
2781  def has_attribute(self, *args):
2782  r"""
2783  has_attribute(Direction self, FloatKey a0) -> bool
2784  has_attribute(Direction self, IntKey a0) -> bool
2785  has_attribute(Direction self, FloatsKey a0) -> bool
2786  has_attribute(Direction self, IntsKey a0) -> bool
2787  has_attribute(Direction self, StringKey a0) -> bool
2788  has_attribute(Direction self, ParticleIndexKey a0) -> bool
2789  has_attribute(Direction self, ObjectKey a0) -> bool
2790  has_attribute(Direction self, SparseFloatKey a0) -> bool
2791  has_attribute(Direction self, SparseIntKey a0) -> bool
2792  has_attribute(Direction self, SparseStringKey a0) -> bool
2793  has_attribute(Direction self, SparseParticleIndexKey a0) -> bool
2794  """
2795  return _IMP_core.Direction_has_attribute(self, *args)
2796 
2797  def get_derivative(self, a0):
2798  r"""get_derivative(Direction self, FloatKey a0) -> double"""
2799  return _IMP_core.Direction_get_derivative(self, a0)
2800 
2801  def get_name(self):
2802  r"""get_name(Direction self) -> std::string"""
2803  return _IMP_core.Direction_get_name(self)
2804 
2805  def clear_caches(self):
2806  r"""clear_caches(Direction self)"""
2807  return _IMP_core.Direction_clear_caches(self)
2808 
2809  def set_name(self, a0):
2810  r"""set_name(Direction self, std::string a0)"""
2811  return _IMP_core.Direction_set_name(self, a0)
2812 
2813  def set_check_level(self, a0):
2814  r"""set_check_level(Direction self, IMP::CheckLevel a0)"""
2815  return _IMP_core.Direction_set_check_level(self, a0)
2816 
2817  def add_to_derivative(self, a0, a1, a2):
2818  r"""add_to_derivative(Direction self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
2819  return _IMP_core.Direction_add_to_derivative(self, a0, a1, a2)
2820 
2821  def set_is_optimized(self, a0, a1):
2822  r"""set_is_optimized(Direction self, FloatKey a0, bool a1)"""
2823  return _IMP_core.Direction_set_is_optimized(self, a0, a1)
2824 
2825  def get_is_optimized(self, a0):
2826  r"""get_is_optimized(Direction self, FloatKey a0) -> bool"""
2827  return _IMP_core.Direction_get_is_optimized(self, a0)
2828 
2829  def get_check_level(self):
2830  r"""get_check_level(Direction self) -> IMP::CheckLevel"""
2831  return _IMP_core.Direction_get_check_level(self)
2832 
2833  def __eq__(self, *args):
2834  r"""
2835  __eq__(Direction self, Direction o) -> bool
2836  __eq__(Direction self, Particle d) -> bool
2837  """
2838  return _IMP_core.Direction___eq__(self, *args)
2839 
2840  def __ne__(self, *args):
2841  r"""
2842  __ne__(Direction self, Direction o) -> bool
2843  __ne__(Direction self, Particle d) -> bool
2844  """
2845  return _IMP_core.Direction___ne__(self, *args)
2846 
2847  def __le__(self, *args):
2848  r"""
2849  __le__(Direction self, Direction o) -> bool
2850  __le__(Direction self, Particle d) -> bool
2851  """
2852  return _IMP_core.Direction___le__(self, *args)
2853 
2854  def __lt__(self, *args):
2855  r"""
2856  __lt__(Direction self, Direction o) -> bool
2857  __lt__(Direction self, Particle d) -> bool
2858  """
2859  return _IMP_core.Direction___lt__(self, *args)
2860 
2861  def __ge__(self, *args):
2862  r"""
2863  __ge__(Direction self, Direction o) -> bool
2864  __ge__(Direction self, Particle d) -> bool
2865  """
2866  return _IMP_core.Direction___ge__(self, *args)
2867 
2868  def __gt__(self, *args):
2869  r"""
2870  __gt__(Direction self, Direction o) -> bool
2871  __gt__(Direction self, Particle d) -> bool
2872  """
2873  return _IMP_core.Direction___gt__(self, *args)
2874 
2875  def __hash__(self):
2876  r"""__hash__(Direction self) -> std::size_t"""
2877  return _IMP_core.Direction___hash__(self)
2878 
2879  def __str__(self):
2880  r"""__str__(Direction self) -> std::string"""
2881  return _IMP_core.Direction___str__(self)
2882 
2883  def __repr__(self):
2884  r"""__repr__(Direction self) -> std::string"""
2885  return _IMP_core.Direction___repr__(self)
2886 
2887  def _get_as_binary(self):
2888  r"""_get_as_binary(Direction self) -> PyObject *"""
2889  return _IMP_core.Direction__get_as_binary(self)
2890 
2891  def _set_from_binary(self, p):
2892  r"""_set_from_binary(Direction self, PyObject * p)"""
2893  return _IMP_core.Direction__set_from_binary(self, p)
2894 
2895  def __getstate__(self):
2896  p = self._get_as_binary()
2897  if len(self.__dict__) > 1:
2898  d = self.__dict__.copy()
2899  del d['this']
2900  p = (d, p)
2901  return p
2902 
2903  def __setstate__(self, p):
2904  if not hasattr(self, 'this'):
2905  self.__init__()
2906  if isinstance(p, tuple):
2907  d, p = p
2908  self.__dict__.update(d)
2909  return self._set_from_binary(p)
2910 
2911  __swig_destroy__ = _IMP_core.delete_Direction
2912 
2913 # Register Direction in _IMP_core:
2914 _IMP_core.Direction_swigregister(Direction)
2915 
2916 def get_angle(a, b):
2917  r"""get_angle(Direction a, Direction b) -> double"""
2918  return _IMP_core.get_angle(a, b)
2919 class DirectionAngle(IMP.Decorator):
2920  r"""Proxy of C++ IMP::core::DirectionAngle class."""
2921 
2922  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
2923 
2924  def __init__(self, *args):
2925  r"""
2926  __init__(DirectionAngle self) -> DirectionAngle
2927  __init__(DirectionAngle self, Model m, ParticleIndex id) -> DirectionAngle
2928  __init__(DirectionAngle self, _ParticleAdaptor d) -> DirectionAngle
2929  """
2930  _IMP_core.DirectionAngle_swiginit(self, _IMP_core.new_DirectionAngle(*args))
2931 
2932  def show(self, *args):
2933  r"""show(DirectionAngle self, _ostream out=std::cout)"""
2934  return _IMP_core.DirectionAngle_show(self, *args)
2935 
2936  @staticmethod
2937  def setup_particle(*args):
2938  r"""
2939  setup_particle(Model m, ParticleIndex pi, IMP::ParticleIndexPair ds) -> DirectionAngle
2940  setup_particle(_ParticleAdaptor pa, IMP::ParticleIndexPair ds) -> DirectionAngle
2941  setup_particle(Model m, ParticleIndex pi, _ParticleIndexAdaptor d0, _ParticleIndexAdaptor d1) -> DirectionAngle
2942  setup_particle(_ParticleAdaptor pa, _ParticleIndexAdaptor d0, _ParticleIndexAdaptor d1) -> DirectionAngle
2943  """
2944  return _IMP_core.DirectionAngle_setup_particle(*args)
2945 
2946  @staticmethod
2947  def get_is_setup(*args):
2948  r"""
2949  get_is_setup(_ParticleAdaptor p) -> bool
2950  get_is_setup(Model m, ParticleIndex pi) -> bool
2951  """
2952  return _IMP_core.DirectionAngle_get_is_setup(*args)
2953 
2954  @staticmethod
2955  def get_angle_key():
2956  r"""get_angle_key() -> FloatKey"""
2957  return _IMP_core.DirectionAngle_get_angle_key()
2958 
2959  @staticmethod
2960  def get_particle_key(i):
2961  r"""get_particle_key(unsigned int i) -> ParticleIndexKey"""
2962  return _IMP_core.DirectionAngle_get_particle_key(i)
2963 
2964  def get_particle(self, *args):
2965  r"""
2966  get_particle(DirectionAngle self, unsigned int i) -> Particle
2967  get_particle(DirectionAngle self) -> Particle
2968  """
2969  return _IMP_core.DirectionAngle_get_particle(self, *args)
2970 
2971  def get_particle_index(self, *args):
2972  r"""
2973  get_particle_index(DirectionAngle self, unsigned int i) -> ParticleIndex
2974  get_particle_index(DirectionAngle self) -> ParticleIndex
2975  """
2976  return _IMP_core.DirectionAngle_get_particle_index(self, *args)
2977 
2978  def get_angle(self):
2979  r"""get_angle(DirectionAngle self) -> IMP::Float"""
2980  return _IMP_core.DirectionAngle_get_angle(self)
2981 
2982  def get_angle_derivative(self):
2983  r"""get_angle_derivative(DirectionAngle self) -> IMP::Float"""
2984  return _IMP_core.DirectionAngle_get_angle_derivative(self)
2985 
2986  def add_to_angle_derivative(self, v, d):
2987  r"""add_to_angle_derivative(DirectionAngle self, IMP::Float v, DerivativeAccumulator d)"""
2988  return _IMP_core.DirectionAngle_add_to_angle_derivative(self, v, d)
2989 
2990  def add_attribute(self, *args):
2991  r"""
2992  add_attribute(DirectionAngle self, FloatKey k, IMP::Float v, bool opt)
2993  add_attribute(DirectionAngle self, FloatKey a0, IMP::Float a1)
2994  add_attribute(DirectionAngle self, IntKey a0, IMP::Int a1)
2995  add_attribute(DirectionAngle self, FloatsKey a0, IMP::Floats a1)
2996  add_attribute(DirectionAngle self, IntsKey a0, IMP::Ints a1)
2997  add_attribute(DirectionAngle self, StringKey a0, IMP::String a1)
2998  add_attribute(DirectionAngle self, ParticleIndexKey a0, Particle a1)
2999  add_attribute(DirectionAngle self, ObjectKey a0, Object a1)
3000  add_attribute(DirectionAngle self, SparseFloatKey a0, IMP::Float a1)
3001  add_attribute(DirectionAngle self, SparseIntKey a0, IMP::Int a1)
3002  add_attribute(DirectionAngle self, SparseStringKey a0, IMP::String a1)
3003  add_attribute(DirectionAngle self, SparseParticleIndexKey a0, ParticleIndex a1)
3004  """
3005  return _IMP_core.DirectionAngle_add_attribute(self, *args)
3006 
3007  def get_value(self, *args):
3008  r"""
3009  get_value(DirectionAngle self, FloatKey a0) -> IMP::Float
3010  get_value(DirectionAngle self, IntKey a0) -> IMP::Int
3011  get_value(DirectionAngle self, FloatsKey a0) -> IMP::Floats
3012  get_value(DirectionAngle self, IntsKey a0) -> IMP::Ints
3013  get_value(DirectionAngle self, StringKey a0) -> IMP::String
3014  get_value(DirectionAngle self, ParticleIndexKey a0) -> Particle
3015  get_value(DirectionAngle self, ObjectKey a0) -> Object
3016  get_value(DirectionAngle self, SparseFloatKey a0) -> IMP::Float
3017  get_value(DirectionAngle self, SparseIntKey a0) -> IMP::Int
3018  get_value(DirectionAngle self, SparseStringKey a0) -> IMP::String
3019  get_value(DirectionAngle self, SparseParticleIndexKey a0) -> ParticleIndex
3020  """
3021  return _IMP_core.DirectionAngle_get_value(self, *args)
3022 
3023  def set_value(self, *args):
3024  r"""
3025  set_value(DirectionAngle self, FloatKey a0, IMP::Float a1)
3026  set_value(DirectionAngle self, IntKey a0, IMP::Int a1)
3027  set_value(DirectionAngle self, FloatsKey a0, IMP::Floats a1)
3028  set_value(DirectionAngle self, IntsKey a0, IMP::Ints a1)
3029  set_value(DirectionAngle self, StringKey a0, IMP::String a1)
3030  set_value(DirectionAngle self, ParticleIndexKey a0, Particle a1)
3031  set_value(DirectionAngle self, ObjectKey a0, Object a1)
3032  set_value(DirectionAngle self, SparseFloatKey a0, IMP::Float a1)
3033  set_value(DirectionAngle self, SparseIntKey a0, IMP::Int a1)
3034  set_value(DirectionAngle self, SparseStringKey a0, IMP::String a1)
3035  set_value(DirectionAngle self, SparseParticleIndexKey a0, ParticleIndex a1)
3036  """
3037  return _IMP_core.DirectionAngle_set_value(self, *args)
3038 
3039  def remove_attribute(self, *args):
3040  r"""
3041  remove_attribute(DirectionAngle self, FloatKey a0)
3042  remove_attribute(DirectionAngle self, IntKey a0)
3043  remove_attribute(DirectionAngle self, FloatsKey a0)
3044  remove_attribute(DirectionAngle self, IntsKey a0)
3045  remove_attribute(DirectionAngle self, StringKey a0)
3046  remove_attribute(DirectionAngle self, ParticleIndexKey a0)
3047  remove_attribute(DirectionAngle self, ObjectKey a0)
3048  remove_attribute(DirectionAngle self, SparseFloatKey a0)
3049  remove_attribute(DirectionAngle self, SparseIntKey a0)
3050  remove_attribute(DirectionAngle self, SparseStringKey a0)
3051  remove_attribute(DirectionAngle self, SparseParticleIndexKey a0)
3052  """
3053  return _IMP_core.DirectionAngle_remove_attribute(self, *args)
3054 
3055  def has_attribute(self, *args):
3056  r"""
3057  has_attribute(DirectionAngle self, FloatKey a0) -> bool
3058  has_attribute(DirectionAngle self, IntKey a0) -> bool
3059  has_attribute(DirectionAngle self, FloatsKey a0) -> bool
3060  has_attribute(DirectionAngle self, IntsKey a0) -> bool
3061  has_attribute(DirectionAngle self, StringKey a0) -> bool
3062  has_attribute(DirectionAngle self, ParticleIndexKey a0) -> bool
3063  has_attribute(DirectionAngle self, ObjectKey a0) -> bool
3064  has_attribute(DirectionAngle self, SparseFloatKey a0) -> bool
3065  has_attribute(DirectionAngle self, SparseIntKey a0) -> bool
3066  has_attribute(DirectionAngle self, SparseStringKey a0) -> bool
3067  has_attribute(DirectionAngle self, SparseParticleIndexKey a0) -> bool
3068  """
3069  return _IMP_core.DirectionAngle_has_attribute(self, *args)
3070 
3071  def get_derivative(self, a0):
3072  r"""get_derivative(DirectionAngle self, FloatKey a0) -> double"""
3073  return _IMP_core.DirectionAngle_get_derivative(self, a0)
3074 
3075  def get_name(self):
3076  r"""get_name(DirectionAngle self) -> std::string"""
3077  return _IMP_core.DirectionAngle_get_name(self)
3078 
3079  def clear_caches(self):
3080  r"""clear_caches(DirectionAngle self)"""
3081  return _IMP_core.DirectionAngle_clear_caches(self)
3082 
3083  def set_name(self, a0):
3084  r"""set_name(DirectionAngle self, std::string a0)"""
3085  return _IMP_core.DirectionAngle_set_name(self, a0)
3086 
3087  def set_check_level(self, a0):
3088  r"""set_check_level(DirectionAngle self, IMP::CheckLevel a0)"""
3089  return _IMP_core.DirectionAngle_set_check_level(self, a0)
3090 
3091  def add_to_derivative(self, a0, a1, a2):
3092  r"""add_to_derivative(DirectionAngle self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3093  return _IMP_core.DirectionAngle_add_to_derivative(self, a0, a1, a2)
3094 
3095  def set_is_optimized(self, a0, a1):
3096  r"""set_is_optimized(DirectionAngle self, FloatKey a0, bool a1)"""
3097  return _IMP_core.DirectionAngle_set_is_optimized(self, a0, a1)
3098 
3099  def get_is_optimized(self, a0):
3100  r"""get_is_optimized(DirectionAngle self, FloatKey a0) -> bool"""
3101  return _IMP_core.DirectionAngle_get_is_optimized(self, a0)
3102 
3103  def get_check_level(self):
3104  r"""get_check_level(DirectionAngle self) -> IMP::CheckLevel"""
3105  return _IMP_core.DirectionAngle_get_check_level(self)
3106 
3107  def __eq__(self, *args):
3108  r"""
3109  __eq__(DirectionAngle self, DirectionAngle o) -> bool
3110  __eq__(DirectionAngle self, Particle d) -> bool
3111  """
3112  return _IMP_core.DirectionAngle___eq__(self, *args)
3113 
3114  def __ne__(self, *args):
3115  r"""
3116  __ne__(DirectionAngle self, DirectionAngle o) -> bool
3117  __ne__(DirectionAngle self, Particle d) -> bool
3118  """
3119  return _IMP_core.DirectionAngle___ne__(self, *args)
3120 
3121  def __le__(self, *args):
3122  r"""
3123  __le__(DirectionAngle self, DirectionAngle o) -> bool
3124  __le__(DirectionAngle self, Particle d) -> bool
3125  """
3126  return _IMP_core.DirectionAngle___le__(self, *args)
3127 
3128  def __lt__(self, *args):
3129  r"""
3130  __lt__(DirectionAngle self, DirectionAngle o) -> bool
3131  __lt__(DirectionAngle self, Particle d) -> bool
3132  """
3133  return _IMP_core.DirectionAngle___lt__(self, *args)
3134 
3135  def __ge__(self, *args):
3136  r"""
3137  __ge__(DirectionAngle self, DirectionAngle o) -> bool
3138  __ge__(DirectionAngle self, Particle d) -> bool
3139  """
3140  return _IMP_core.DirectionAngle___ge__(self, *args)
3141 
3142  def __gt__(self, *args):
3143  r"""
3144  __gt__(DirectionAngle self, DirectionAngle o) -> bool
3145  __gt__(DirectionAngle self, Particle d) -> bool
3146  """
3147  return _IMP_core.DirectionAngle___gt__(self, *args)
3148 
3149  def __hash__(self):
3150  r"""__hash__(DirectionAngle self) -> std::size_t"""
3151  return _IMP_core.DirectionAngle___hash__(self)
3152 
3153  def __str__(self):
3154  r"""__str__(DirectionAngle self) -> std::string"""
3155  return _IMP_core.DirectionAngle___str__(self)
3156 
3157  def __repr__(self):
3158  r"""__repr__(DirectionAngle self) -> std::string"""
3159  return _IMP_core.DirectionAngle___repr__(self)
3160 
3161  def _get_as_binary(self):
3162  r"""_get_as_binary(DirectionAngle self) -> PyObject *"""
3163  return _IMP_core.DirectionAngle__get_as_binary(self)
3164 
3165  def _set_from_binary(self, p):
3166  r"""_set_from_binary(DirectionAngle self, PyObject * p)"""
3167  return _IMP_core.DirectionAngle__set_from_binary(self, p)
3168 
3169  def __getstate__(self):
3170  p = self._get_as_binary()
3171  if len(self.__dict__) > 1:
3172  d = self.__dict__.copy()
3173  del d['this']
3174  p = (d, p)
3175  return p
3176 
3177  def __setstate__(self, p):
3178  if not hasattr(self, 'this'):
3179  self.__init__()
3180  if isinstance(p, tuple):
3181  d, p = p
3182  self.__dict__.update(d)
3183  return self._set_from_binary(p)
3184 
3185  __swig_destroy__ = _IMP_core.delete_DirectionAngle
3186 
3187 # Register DirectionAngle in _IMP_core:
3188 _IMP_core.DirectionAngle_swigregister(DirectionAngle)
3189 class Surface(XYZ):
3190  r"""Proxy of C++ IMP::core::Surface class."""
3191 
3192  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3193 
3194  @staticmethod
3195  def do_setup_particle(*args):
3196  r"""
3197  do_setup_particle(Model m, ParticleIndex pi, Vector3D center=IMP::algebra::Vector3D(0, 0, 0), Vector3D normal=IMP::algebra::Vector3D(0, 0, 1))
3198  do_setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf)
3199  """
3200  return _IMP_core.Surface_do_setup_particle(*args)
3201 
3202  def __init__(self, *args):
3203  r"""
3204  __init__(Surface self) -> Surface
3205  __init__(Surface self, Model m, ParticleIndex id) -> Surface
3206  __init__(Surface self, _ParticleAdaptor d) -> Surface
3207  """
3208  _IMP_core.Surface_swiginit(self, _IMP_core.new_Surface(*args))
3209 
3210  def show(self, *args):
3211  r"""show(Surface self, _ostream out=std::cout)"""
3212  return _IMP_core.Surface_show(self, *args)
3213 
3214  @staticmethod
3215  def setup_particle(*args):
3216  r"""
3217  setup_particle(Model m, ParticleIndex pi) -> Surface
3218  setup_particle(_ParticleAdaptor pa) -> Surface
3219  setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf) -> Surface
3220  setup_particle(_ParticleAdaptor pa, ReferenceFrame3D rf) -> Surface
3221  setup_particle(Model m, ParticleIndex pi, Vector3D center) -> Surface
3222  setup_particle(_ParticleAdaptor pa, Vector3D center) -> Surface
3223  setup_particle(Model m, ParticleIndex pi, Vector3D center, Vector3D normal) -> Surface
3224  setup_particle(_ParticleAdaptor pa, Vector3D center, Vector3D normal) -> Surface
3225  """
3226  return _IMP_core.Surface_setup_particle(*args)
3227 
3228  def get_normal_x(self):
3229  r"""get_normal_x(Surface self) -> IMP::Float"""
3230  return _IMP_core.Surface_get_normal_x(self)
3231 
3232  def set_normal_x(self, t):
3233  r"""set_normal_x(Surface self, IMP::Float t)"""
3234  return _IMP_core.Surface_set_normal_x(self, t)
3235 
3236  def get_normal_y(self):
3237  r"""get_normal_y(Surface self) -> IMP::Float"""
3238  return _IMP_core.Surface_get_normal_y(self)
3239 
3240  def set_normal_y(self, t):
3241  r"""set_normal_y(Surface self, IMP::Float t)"""
3242  return _IMP_core.Surface_set_normal_y(self, t)
3243 
3244  def get_normal_z(self):
3245  r"""get_normal_z(Surface self) -> IMP::Float"""
3246  return _IMP_core.Surface_get_normal_z(self)
3247 
3248  def set_normal_z(self, t):
3249  r"""set_normal_z(Surface self, IMP::Float t)"""
3250  return _IMP_core.Surface_set_normal_z(self, t)
3251 
3252  @staticmethod
3253  def get_is_setup(*args):
3254  r"""
3255  get_is_setup(_ParticleAdaptor p) -> bool
3256  get_is_setup(Model m, ParticleIndex pi) -> bool
3257  """
3258  return _IMP_core.Surface_get_is_setup(*args)
3259 
3260  @staticmethod
3261  def get_normal_key(i):
3262  r"""get_normal_key(unsigned int i) -> FloatKey"""
3263  return _IMP_core.Surface_get_normal_key(i)
3264 
3265  def get_normal_derivative(self, i):
3266  r"""get_normal_derivative(Surface self, int i) -> IMP::Float"""
3267  return _IMP_core.Surface_get_normal_derivative(self, i)
3268 
3269  def get_normal_derivatives(self):
3270  r"""get_normal_derivatives(Surface self) -> Vector3D"""
3271  return _IMP_core.Surface_get_normal_derivatives(self)
3272 
3273  def add_to_normal_derivative(self, i, v, d):
3274  r"""add_to_normal_derivative(Surface self, int i, IMP::Float v, DerivativeAccumulator d)"""
3275  return _IMP_core.Surface_add_to_normal_derivative(self, i, v, d)
3276 
3277  def add_to_normal_derivatives(self, v, d):
3278  r"""add_to_normal_derivatives(Surface self, Vector3D v, DerivativeAccumulator d)"""
3279  return _IMP_core.Surface_add_to_normal_derivatives(self, v, d)
3280 
3281  def get_normal_is_optimized(self):
3282  r"""get_normal_is_optimized(Surface self) -> bool"""
3283  return _IMP_core.Surface_get_normal_is_optimized(self)
3284 
3285  def set_normal_is_optimized(self, tf):
3286  r"""set_normal_is_optimized(Surface self, bool tf)"""
3287  return _IMP_core.Surface_set_normal_is_optimized(self, tf)
3288 
3289  def get_normal(self):
3290  r"""get_normal(Surface self) -> Vector3D"""
3291  return _IMP_core.Surface_get_normal(self)
3292 
3293  def set_normal(self, normal):
3294  r"""set_normal(Surface self, Vector3D normal)"""
3295  return _IMP_core.Surface_set_normal(self, normal)
3296 
3297  def reflect(self):
3298  r"""reflect(Surface self)"""
3299  return _IMP_core.Surface_reflect(self)
3300 
3301  def get_height(self, v):
3302  r"""get_height(Surface self, Vector3D v) -> double"""
3303  return _IMP_core.Surface_get_height(self, v)
3304 
3305  def get_depth(self, v):
3306  r"""get_depth(Surface self, Vector3D v) -> double"""
3307  return _IMP_core.Surface_get_depth(self, v)
3308 
3309  def get_distance_to(self, v):
3310  r"""get_distance_to(Surface self, Vector3D v) -> double"""
3311  return _IMP_core.Surface_get_distance_to(self, v)
3312 
3313  def get_distance_to_center(self, v):
3314  r"""get_distance_to_center(Surface self, Vector3D v) -> double"""
3315  return _IMP_core.Surface_get_distance_to_center(self, v)
3316 
3317  def set_reference_frame(self, rf):
3318  r"""set_reference_frame(Surface self, ReferenceFrame3D rf)"""
3319  return _IMP_core.Surface_set_reference_frame(self, rf)
3320 
3321  def get_reference_frame(self):
3322  r"""get_reference_frame(Surface self) -> ReferenceFrame3D"""
3323  return _IMP_core.Surface_get_reference_frame(self)
3324 
3325  def get_plane(self):
3326  r"""get_plane(Surface self) -> Plane3D"""
3327  return _IMP_core.Surface_get_plane(self)
3328 
3329  def add_attribute(self, *args):
3330  r"""
3331  add_attribute(Surface self, FloatKey k, IMP::Float v, bool opt)
3332  add_attribute(Surface self, FloatKey a0, IMP::Float a1)
3333  add_attribute(Surface self, IntKey a0, IMP::Int a1)
3334  add_attribute(Surface self, FloatsKey a0, IMP::Floats a1)
3335  add_attribute(Surface self, IntsKey a0, IMP::Ints a1)
3336  add_attribute(Surface self, StringKey a0, IMP::String a1)
3337  add_attribute(Surface self, ParticleIndexKey a0, Particle a1)
3338  add_attribute(Surface self, ObjectKey a0, Object a1)
3339  add_attribute(Surface self, SparseFloatKey a0, IMP::Float a1)
3340  add_attribute(Surface self, SparseIntKey a0, IMP::Int a1)
3341  add_attribute(Surface self, SparseStringKey a0, IMP::String a1)
3342  add_attribute(Surface self, SparseParticleIndexKey a0, ParticleIndex a1)
3343  """
3344  return _IMP_core.Surface_add_attribute(self, *args)
3345 
3346  def get_value(self, *args):
3347  r"""
3348  get_value(Surface self, FloatKey a0) -> IMP::Float
3349  get_value(Surface self, IntKey a0) -> IMP::Int
3350  get_value(Surface self, FloatsKey a0) -> IMP::Floats
3351  get_value(Surface self, IntsKey a0) -> IMP::Ints
3352  get_value(Surface self, StringKey a0) -> IMP::String
3353  get_value(Surface self, ParticleIndexKey a0) -> Particle
3354  get_value(Surface self, ObjectKey a0) -> Object
3355  get_value(Surface self, SparseFloatKey a0) -> IMP::Float
3356  get_value(Surface self, SparseIntKey a0) -> IMP::Int
3357  get_value(Surface self, SparseStringKey a0) -> IMP::String
3358  get_value(Surface self, SparseParticleIndexKey a0) -> ParticleIndex
3359  """
3360  return _IMP_core.Surface_get_value(self, *args)
3361 
3362  def set_value(self, *args):
3363  r"""
3364  set_value(Surface self, FloatKey a0, IMP::Float a1)
3365  set_value(Surface self, IntKey a0, IMP::Int a1)
3366  set_value(Surface self, FloatsKey a0, IMP::Floats a1)
3367  set_value(Surface self, IntsKey a0, IMP::Ints a1)
3368  set_value(Surface self, StringKey a0, IMP::String a1)
3369  set_value(Surface self, ParticleIndexKey a0, Particle a1)
3370  set_value(Surface self, ObjectKey a0, Object a1)
3371  set_value(Surface self, SparseFloatKey a0, IMP::Float a1)
3372  set_value(Surface self, SparseIntKey a0, IMP::Int a1)
3373  set_value(Surface self, SparseStringKey a0, IMP::String a1)
3374  set_value(Surface self, SparseParticleIndexKey a0, ParticleIndex a1)
3375  """
3376  return _IMP_core.Surface_set_value(self, *args)
3377 
3378  def remove_attribute(self, *args):
3379  r"""
3380  remove_attribute(Surface self, FloatKey a0)
3381  remove_attribute(Surface self, IntKey a0)
3382  remove_attribute(Surface self, FloatsKey a0)
3383  remove_attribute(Surface self, IntsKey a0)
3384  remove_attribute(Surface self, StringKey a0)
3385  remove_attribute(Surface self, ParticleIndexKey a0)
3386  remove_attribute(Surface self, ObjectKey a0)
3387  remove_attribute(Surface self, SparseFloatKey a0)
3388  remove_attribute(Surface self, SparseIntKey a0)
3389  remove_attribute(Surface self, SparseStringKey a0)
3390  remove_attribute(Surface self, SparseParticleIndexKey a0)
3391  """
3392  return _IMP_core.Surface_remove_attribute(self, *args)
3393 
3394  def has_attribute(self, *args):
3395  r"""
3396  has_attribute(Surface self, FloatKey a0) -> bool
3397  has_attribute(Surface self, IntKey a0) -> bool
3398  has_attribute(Surface self, FloatsKey a0) -> bool
3399  has_attribute(Surface self, IntsKey a0) -> bool
3400  has_attribute(Surface self, StringKey a0) -> bool
3401  has_attribute(Surface self, ParticleIndexKey a0) -> bool
3402  has_attribute(Surface self, ObjectKey a0) -> bool
3403  has_attribute(Surface self, SparseFloatKey a0) -> bool
3404  has_attribute(Surface self, SparseIntKey a0) -> bool
3405  has_attribute(Surface self, SparseStringKey a0) -> bool
3406  has_attribute(Surface self, SparseParticleIndexKey a0) -> bool
3407  """
3408  return _IMP_core.Surface_has_attribute(self, *args)
3409 
3410  def get_derivative(self, a0):
3411  r"""get_derivative(Surface self, FloatKey a0) -> double"""
3412  return _IMP_core.Surface_get_derivative(self, a0)
3413 
3414  def get_name(self):
3415  r"""get_name(Surface self) -> std::string"""
3416  return _IMP_core.Surface_get_name(self)
3417 
3418  def clear_caches(self):
3419  r"""clear_caches(Surface self)"""
3420  return _IMP_core.Surface_clear_caches(self)
3421 
3422  def set_name(self, a0):
3423  r"""set_name(Surface self, std::string a0)"""
3424  return _IMP_core.Surface_set_name(self, a0)
3425 
3426  def set_check_level(self, a0):
3427  r"""set_check_level(Surface self, IMP::CheckLevel a0)"""
3428  return _IMP_core.Surface_set_check_level(self, a0)
3429 
3430  def add_to_derivative(self, a0, a1, a2):
3431  r"""add_to_derivative(Surface self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
3432  return _IMP_core.Surface_add_to_derivative(self, a0, a1, a2)
3433 
3434  def set_is_optimized(self, a0, a1):
3435  r"""set_is_optimized(Surface self, FloatKey a0, bool a1)"""
3436  return _IMP_core.Surface_set_is_optimized(self, a0, a1)
3437 
3438  def get_is_optimized(self, a0):
3439  r"""get_is_optimized(Surface self, FloatKey a0) -> bool"""
3440  return _IMP_core.Surface_get_is_optimized(self, a0)
3441 
3442  def get_check_level(self):
3443  r"""get_check_level(Surface self) -> IMP::CheckLevel"""
3444  return _IMP_core.Surface_get_check_level(self)
3445 
3446  def __eq__(self, *args):
3447  r"""
3448  __eq__(Surface self, Surface o) -> bool
3449  __eq__(Surface self, Particle d) -> bool
3450  """
3451  return _IMP_core.Surface___eq__(self, *args)
3452 
3453  def __ne__(self, *args):
3454  r"""
3455  __ne__(Surface self, Surface o) -> bool
3456  __ne__(Surface self, Particle d) -> bool
3457  """
3458  return _IMP_core.Surface___ne__(self, *args)
3459 
3460  def __le__(self, *args):
3461  r"""
3462  __le__(Surface self, Surface o) -> bool
3463  __le__(Surface self, Particle d) -> bool
3464  """
3465  return _IMP_core.Surface___le__(self, *args)
3466 
3467  def __lt__(self, *args):
3468  r"""
3469  __lt__(Surface self, Surface o) -> bool
3470  __lt__(Surface self, Particle d) -> bool
3471  """
3472  return _IMP_core.Surface___lt__(self, *args)
3473 
3474  def __ge__(self, *args):
3475  r"""
3476  __ge__(Surface self, Surface o) -> bool
3477  __ge__(Surface self, Particle d) -> bool
3478  """
3479  return _IMP_core.Surface___ge__(self, *args)
3480 
3481  def __gt__(self, *args):
3482  r"""
3483  __gt__(Surface self, Surface o) -> bool
3484  __gt__(Surface self, Particle d) -> bool
3485  """
3486  return _IMP_core.Surface___gt__(self, *args)
3487 
3488  def __hash__(self):
3489  r"""__hash__(Surface self) -> std::size_t"""
3490  return _IMP_core.Surface___hash__(self)
3491 
3492  def __str__(self):
3493  r"""__str__(Surface self) -> std::string"""
3494  return _IMP_core.Surface___str__(self)
3495 
3496  def __repr__(self):
3497  r"""__repr__(Surface self) -> std::string"""
3498  return _IMP_core.Surface___repr__(self)
3499 
3500  def _get_as_binary(self):
3501  r"""_get_as_binary(Surface self) -> PyObject *"""
3502  return _IMP_core.Surface__get_as_binary(self)
3503 
3504  def _set_from_binary(self, p):
3505  r"""_set_from_binary(Surface self, PyObject * p)"""
3506  return _IMP_core.Surface__set_from_binary(self, p)
3507 
3508  def __getstate__(self):
3509  p = self._get_as_binary()
3510  if len(self.__dict__) > 1:
3511  d = self.__dict__.copy()
3512  del d['this']
3513  p = (d, p)
3514  return p
3515 
3516  def __setstate__(self, p):
3517  if not hasattr(self, 'this'):
3518  self.__init__()
3519  if isinstance(p, tuple):
3520  d, p = p
3521  self.__dict__.update(d)
3522  return self._set_from_binary(p)
3523 
3524  __swig_destroy__ = _IMP_core.delete_Surface
3525 
3526 # Register Surface in _IMP_core:
3527 _IMP_core.Surface_swigregister(Surface)
3528 
3529 def get_height(*args):
3530  r"""
3531  get_height(Surface s, XYZR d) -> double
3532  get_height(Surface s, XYZ d) -> double
3533  """
3534  return _IMP_core.get_height(*args)
3535 
3536 def get_depth(*args):
3537  r"""
3538  get_depth(Surface s, XYZR d) -> double
3539  get_depth(Surface s, XYZ d) -> double
3540  """
3541  return _IMP_core.get_depth(*args)
3542 
3543 def get_distance(*args):
3544  r"""
3545  get_distance(XYZ a, XYZ b) -> double
3546  get_distance(XYZR a, XYZR b) -> double
3547  get_distance(Surface s, XYZR d) -> double
3548  get_distance(Surface s, XYZ d) -> double
3549  """
3550  return _IMP_core.get_distance(*args)
3551 class SurfaceGeometry(IMP.display.Geometry):
3552  r"""Proxy of C++ IMP::core::SurfaceGeometry class."""
3553 
3554  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3555 
3556  def __init__(self, *args):
3557  r"""
3558  __init__(SurfaceGeometry self, std::string n="SurfaceGeometry") -> SurfaceGeometry
3559  __init__(SurfaceGeometry self, Surface s, std::string const n="SurfaceGeometry") -> SurfaceGeometry
3560  __init__(SurfaceGeometry self, Surface s, Color c, std::string n="SurfaceGeometry") -> SurfaceGeometry
3561  """
3562  _IMP_core.SurfaceGeometry_swiginit(self, _IMP_core.new_SurfaceGeometry(*args))
3563 
3564  def get_geometry(self):
3565  r"""get_geometry(SurfaceGeometry self) -> Surface"""
3566  return _IMP_core.SurfaceGeometry_get_geometry(self)
3567 
3568  def set_geometry(self, s):
3569  r"""set_geometry(SurfaceGeometry self, Surface s)"""
3570  return _IMP_core.SurfaceGeometry_set_geometry(self, s)
3571 
3572  def get_version_info(self):
3573  r"""get_version_info(SurfaceGeometry self) -> VersionInfo"""
3574  return _IMP_core.SurfaceGeometry_get_version_info(self)
3575  __swig_destroy__ = _IMP_core.delete_SurfaceGeometry
3576 
3577  def __str__(self):
3578  r"""__str__(SurfaceGeometry self) -> std::string"""
3579  return _IMP_core.SurfaceGeometry___str__(self)
3580 
3581  def __repr__(self):
3582  r"""__repr__(SurfaceGeometry self) -> std::string"""
3583  return _IMP_core.SurfaceGeometry___repr__(self)
3584 
3585  @staticmethod
3586  def get_from(o):
3587  return _object_cast_to_SurfaceGeometry(o)
3588 
3589 
3590 # Register SurfaceGeometry in _IMP_core:
3591 _IMP_core.SurfaceGeometry_swigregister(SurfaceGeometry)
3592 
3593 def create_geometry(*args):
3594  r"""create_geometry(Surface s, std::string name=std::string("SurfaceGeometry%1%")) -> SurfaceGeometry"""
3595  return _IMP_core.create_geometry(*args)
3596 class SurfaceGeometryConstraint(IMP.Constraint):
3597  r"""Proxy of C++ IMP::core::SurfaceGeometryConstraint class."""
3598 
3599  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3600 
3601  def __init__(self, s, g):
3602  r"""__init__(SurfaceGeometryConstraint self, Surface s, SurfaceGeometry g) -> SurfaceGeometryConstraint"""
3603  _IMP_core.SurfaceGeometryConstraint_swiginit(self, _IMP_core.new_SurfaceGeometryConstraint(s, g))
3604 
3605  def get_surface(self):
3606  r"""get_surface(SurfaceGeometryConstraint self) -> Surface"""
3607  return _IMP_core.SurfaceGeometryConstraint_get_surface(self)
3608 
3609  def get_geometry(self):
3610  r"""get_geometry(SurfaceGeometryConstraint self) -> SurfaceGeometry"""
3611  return _IMP_core.SurfaceGeometryConstraint_get_geometry(self)
3612 
3613  def do_get_inputs(self):
3614  r"""do_get_inputs(SurfaceGeometryConstraint self) -> IMP::ModelObjectsTemp"""
3615  return _IMP_core.SurfaceGeometryConstraint_do_get_inputs(self)
3616 
3617  def do_get_outputs(self):
3618  r"""do_get_outputs(SurfaceGeometryConstraint self) -> IMP::ModelObjectsTemp"""
3619  return _IMP_core.SurfaceGeometryConstraint_do_get_outputs(self)
3620 
3621  def get_version_info(self):
3622  r"""get_version_info(SurfaceGeometryConstraint self) -> VersionInfo"""
3623  return _IMP_core.SurfaceGeometryConstraint_get_version_info(self)
3624  __swig_destroy__ = _IMP_core.delete_SurfaceGeometryConstraint
3625 
3626  def __str__(self):
3627  r"""__str__(SurfaceGeometryConstraint self) -> std::string"""
3628  return _IMP_core.SurfaceGeometryConstraint___str__(self)
3629 
3630  def __repr__(self):
3631  r"""__repr__(SurfaceGeometryConstraint self) -> std::string"""
3632  return _IMP_core.SurfaceGeometryConstraint___repr__(self)
3633 
3634  @staticmethod
3635  def get_from(o):
3636  return _object_cast_to_SurfaceGeometryConstraint(o)
3637 
3638 
3639 # Register SurfaceGeometryConstraint in _IMP_core:
3640 _IMP_core.SurfaceGeometryConstraint_swigregister(SurfaceGeometryConstraint)
3641 
3643  r"""get_constrained_surface_geometry(Surface s, std::string name="SurfaceGeometry%1%") -> SurfaceGeometry"""
3644  return _IMP_core.get_constrained_surface_geometry(*args)
3645 class LateralSurfaceConstraint(IMP.Constraint):
3646  r"""Proxy of C++ IMP::core::LateralSurfaceConstraint class."""
3647 
3648  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3649 
3650  def __init__(self, s, d):
3651  r"""__init__(LateralSurfaceConstraint self, Surface s, XYZ d) -> LateralSurfaceConstraint"""
3652  _IMP_core.LateralSurfaceConstraint_swiginit(self, _IMP_core.new_LateralSurfaceConstraint(s, d))
3653 
3654  def do_get_inputs(self):
3655  r"""do_get_inputs(LateralSurfaceConstraint self) -> IMP::ModelObjectsTemp"""
3656  return _IMP_core.LateralSurfaceConstraint_do_get_inputs(self)
3657 
3658  def do_get_outputs(self):
3659  r"""do_get_outputs(LateralSurfaceConstraint self) -> IMP::ModelObjectsTemp"""
3660  return _IMP_core.LateralSurfaceConstraint_do_get_outputs(self)
3661 
3662  def get_version_info(self):
3663  r"""get_version_info(LateralSurfaceConstraint self) -> VersionInfo"""
3664  return _IMP_core.LateralSurfaceConstraint_get_version_info(self)
3665  __swig_destroy__ = _IMP_core.delete_LateralSurfaceConstraint
3666 
3667  def __str__(self):
3668  r"""__str__(LateralSurfaceConstraint self) -> std::string"""
3669  return _IMP_core.LateralSurfaceConstraint___str__(self)
3670 
3671  def __repr__(self):
3672  r"""__repr__(LateralSurfaceConstraint self) -> std::string"""
3673  return _IMP_core.LateralSurfaceConstraint___repr__(self)
3674 
3675  @staticmethod
3676  def get_from(o):
3677  return _object_cast_to_LateralSurfaceConstraint(o)
3678 
3679 
3680 # Register LateralSurfaceConstraint in _IMP_core:
3681 _IMP_core.LateralSurfaceConstraint_swigregister(LateralSurfaceConstraint)
3682 class AngleTripletScore(IMP.TripletScore):
3683  r"""Proxy of C++ IMP::core::AngleTripletScore class."""
3684 
3685  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3686 
3687  def __init__(self, *args):
3688  r"""
3689  __init__(AngleTripletScore self, UnaryFunction f) -> AngleTripletScore
3690  __init__(AngleTripletScore self) -> AngleTripletScore
3691  """
3692  _IMP_core.AngleTripletScore_swiginit(self, _IMP_core.new_AngleTripletScore(*args))
3693 
3694  def do_get_inputs(self, m, pis):
3695  r"""do_get_inputs(AngleTripletScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
3696  return _IMP_core.AngleTripletScore_do_get_inputs(self, m, pis)
3697 
3698  def get_version_info(self):
3699  r"""get_version_info(AngleTripletScore self) -> VersionInfo"""
3700  return _IMP_core.AngleTripletScore_get_version_info(self)
3701  __swig_destroy__ = _IMP_core.delete_AngleTripletScore
3702 
3703  def __str__(self):
3704  r"""__str__(AngleTripletScore self) -> std::string"""
3705  return _IMP_core.AngleTripletScore___str__(self)
3706 
3707  def __repr__(self):
3708  r"""__repr__(AngleTripletScore self) -> std::string"""
3709  return _IMP_core.AngleTripletScore___repr__(self)
3710 
3711  @staticmethod
3712  def get_from(o):
3713  return _object_cast_to_AngleTripletScore(o)
3714 
3715 
3716  def _get_as_binary(self):
3717  r"""_get_as_binary(AngleTripletScore self) -> PyObject *"""
3718  return _IMP_core.AngleTripletScore__get_as_binary(self)
3719 
3720  def _set_from_binary(self, p):
3721  r"""_set_from_binary(AngleTripletScore self, PyObject * p)"""
3722  return _IMP_core.AngleTripletScore__set_from_binary(self, p)
3723 
3724  def __getstate__(self):
3725  p = self._get_as_binary()
3726  if len(self.__dict__) > 1:
3727  d = self.__dict__.copy()
3728  del d['this']
3729  p = (d, p)
3730  return p
3731 
3732  def __setstate__(self, p):
3733  if not hasattr(self, 'this'):
3734  self.__init__()
3735  if isinstance(p, tuple):
3736  d, p = p
3737  self.__dict__.update(d)
3738  return self._set_from_binary(p)
3739 
3740 
3741 # Register AngleTripletScore in _IMP_core:
3742 _IMP_core.AngleTripletScore_swigregister(AngleTripletScore)
3743 class BallMover(MonteCarloMover):
3744  r"""Proxy of C++ IMP::core::BallMover class."""
3745 
3746  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3747 
3748  def __init__(self, *args):
3749  r"""
3750  __init__(BallMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double radius) -> BallMover
3751  __init__(BallMover self, Model m, ParticleIndex pi, double radius) -> BallMover
3752  __init__(BallMover self, Model m, IMP::ParticleIndexes const & pis, IMP::FloatKeys const & vars, IMP::Float radius) -> BallMover
3753  __init__(BallMover self, Model m, IMP::ParticleIndexes const & pis, IMP::Float radius) -> BallMover
3754  __init__(BallMover self) -> BallMover
3755  """
3756  _IMP_core.BallMover_swiginit(self, _IMP_core.new_BallMover(*args))
3757 
3758  def set_radius(self, radius):
3759  r"""set_radius(BallMover self, IMP::Float radius)"""
3760  return _IMP_core.BallMover_set_radius(self, radius)
3761 
3762  def get_radius(self):
3763  r"""get_radius(BallMover self) -> IMP::Float"""
3764  return _IMP_core.BallMover_get_radius(self)
3765 
3766  def get_version_info(self):
3767  r"""get_version_info(BallMover self) -> VersionInfo"""
3768  return _IMP_core.BallMover_get_version_info(self)
3769  __swig_destroy__ = _IMP_core.delete_BallMover
3770 
3771  def __str__(self):
3772  r"""__str__(BallMover self) -> std::string"""
3773  return _IMP_core.BallMover___str__(self)
3774 
3775  def __repr__(self):
3776  r"""__repr__(BallMover self) -> std::string"""
3777  return _IMP_core.BallMover___repr__(self)
3778 
3779  @staticmethod
3780  def get_from(o):
3781  return _object_cast_to_BallMover(o)
3782 
3783 
3784  def _get_as_binary(self):
3785  r"""_get_as_binary(BallMover self) -> PyObject *"""
3786  return _IMP_core.BallMover__get_as_binary(self)
3787 
3788  def _set_from_binary(self, p):
3789  r"""_set_from_binary(BallMover self, PyObject * p)"""
3790  return _IMP_core.BallMover__set_from_binary(self, p)
3791 
3792  def __getstate__(self):
3793  p = self._get_as_binary()
3794  if len(self.__dict__) > 1:
3795  d = self.__dict__.copy()
3796  del d['this']
3797  p = (d, p)
3798  return p
3799 
3800  def __setstate__(self, p):
3801  if not hasattr(self, 'this'):
3802  self.__init__()
3803  if isinstance(p, tuple):
3804  d, p = p
3805  self.__dict__.update(d)
3806  return self._set_from_binary(p)
3807 
3808 
3809 # Register BallMover in _IMP_core:
3810 _IMP_core.BallMover_swigregister(BallMover)
3811 class SerialMover(MonteCarloMover):
3812  r"""Proxy of C++ IMP::core::SerialMover class."""
3813 
3814  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3815 
3816  def __init__(self, *args):
3817  r"""
3818  __init__(SerialMover self, IMP::core::MonteCarloMoversTemp const & mvs) -> SerialMover
3819  __init__(SerialMover self) -> SerialMover
3820  """
3821  _IMP_core.SerialMover_swiginit(self, _IMP_core.new_SerialMover(*args))
3822 
3823  def get_movers(self):
3824  r"""get_movers(SerialMover self) -> IMP::core::MonteCarloMovers const &"""
3825  return _IMP_core.SerialMover_get_movers(self)
3826 
3827  def get_version_info(self):
3828  r"""get_version_info(SerialMover self) -> VersionInfo"""
3829  return _IMP_core.SerialMover_get_version_info(self)
3830  __swig_destroy__ = _IMP_core.delete_SerialMover
3831 
3832  def __str__(self):
3833  r"""__str__(SerialMover self) -> std::string"""
3834  return _IMP_core.SerialMover___str__(self)
3835 
3836  def __repr__(self):
3837  r"""__repr__(SerialMover self) -> std::string"""
3838  return _IMP_core.SerialMover___repr__(self)
3839 
3840  @staticmethod
3841  def get_from(o):
3842  return _object_cast_to_SerialMover(o)
3843 
3844 
3845  def _get_as_binary(self):
3846  r"""_get_as_binary(SerialMover self) -> PyObject *"""
3847  return _IMP_core.SerialMover__get_as_binary(self)
3848 
3849  def _set_from_binary(self, p):
3850  r"""_set_from_binary(SerialMover self, PyObject * p)"""
3851  return _IMP_core.SerialMover__set_from_binary(self, p)
3852 
3853  def __getstate__(self):
3854  p = self._get_as_binary()
3855  if len(self.__dict__) > 1:
3856  d = self.__dict__.copy()
3857  del d['this']
3858  p = (d, p)
3859  return p
3860 
3861  def __setstate__(self, p):
3862  if not hasattr(self, 'this'):
3863  self.__init__()
3864  if isinstance(p, tuple):
3865  d, p = p
3866  self.__dict__.update(d)
3867  return self._set_from_binary(p)
3868 
3869 
3870 # Register SerialMover in _IMP_core:
3871 _IMP_core.SerialMover_swigregister(SerialMover)
3872 class SubsetMover(MonteCarloMover):
3873  r"""Proxy of C++ IMP::core::SubsetMover class."""
3874 
3875  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3876 
3877  def __init__(self, *args):
3878  r"""
3879  __init__(SubsetMover self, IMP::core::MonteCarloMoversTemp const & mvs, unsigned int n) -> SubsetMover
3880  __init__(SubsetMover self) -> SubsetMover
3881  """
3882  _IMP_core.SubsetMover_swiginit(self, _IMP_core.new_SubsetMover(*args))
3883 
3884  def get_movers(self):
3885  r"""get_movers(SubsetMover self) -> IMP::core::MonteCarloMovers const &"""
3886  return _IMP_core.SubsetMover_get_movers(self)
3887 
3888  def get_subset_size(self):
3889  r"""get_subset_size(SubsetMover self) -> unsigned int"""
3890  return _IMP_core.SubsetMover_get_subset_size(self)
3891 
3892  def get_version_info(self):
3893  r"""get_version_info(SubsetMover self) -> VersionInfo"""
3894  return _IMP_core.SubsetMover_get_version_info(self)
3895  __swig_destroy__ = _IMP_core.delete_SubsetMover
3896 
3897  def __str__(self):
3898  r"""__str__(SubsetMover self) -> std::string"""
3899  return _IMP_core.SubsetMover___str__(self)
3900 
3901  def __repr__(self):
3902  r"""__repr__(SubsetMover self) -> std::string"""
3903  return _IMP_core.SubsetMover___repr__(self)
3904 
3905  @staticmethod
3906  def get_from(o):
3907  return _object_cast_to_SubsetMover(o)
3908 
3909 
3910  def _get_as_binary(self):
3911  r"""_get_as_binary(SubsetMover self) -> PyObject *"""
3912  return _IMP_core.SubsetMover__get_as_binary(self)
3913 
3914  def _set_from_binary(self, p):
3915  r"""_set_from_binary(SubsetMover self, PyObject * p)"""
3916  return _IMP_core.SubsetMover__set_from_binary(self, p)
3917 
3918  def __getstate__(self):
3919  p = self._get_as_binary()
3920  if len(self.__dict__) > 1:
3921  d = self.__dict__.copy()
3922  del d['this']
3923  p = (d, p)
3924  return p
3925 
3926  def __setstate__(self, p):
3927  if not hasattr(self, 'this'):
3928  self.__init__()
3929  if isinstance(p, tuple):
3930  d, p = p
3931  self.__dict__.update(d)
3932  return self._set_from_binary(p)
3933 
3934 
3935 # Register SubsetMover in _IMP_core:
3936 _IMP_core.SubsetMover_swigregister(SubsetMover)
3937 class DirectionMover(MonteCarloMover):
3938  r"""Proxy of C++ IMP::core::DirectionMover class."""
3939 
3940  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
3941 
3942  def __init__(self, *args):
3943  r"""
3944  __init__(DirectionMover self, Model m, ParticleIndex pi, IMP::Float max_rotation, IMP::Float reflect_probability) -> DirectionMover
3945  __init__(DirectionMover self, Direction d, IMP::Float max_rotation, IMP::Float reflect_probability) -> DirectionMover
3946  __init__(DirectionMover self) -> DirectionMover
3947  """
3948  _IMP_core.DirectionMover_swiginit(self, _IMP_core.new_DirectionMover(*args))
3949 
3950  def set_maximum_rotation(self, mr):
3951  r"""set_maximum_rotation(DirectionMover self, IMP::Float mr)"""
3952  return _IMP_core.DirectionMover_set_maximum_rotation(self, mr)
3953 
3954  def set_reflect_probability(self, rp):
3955  r"""set_reflect_probability(DirectionMover self, IMP::Float rp)"""
3956  return _IMP_core.DirectionMover_set_reflect_probability(self, rp)
3957 
3958  def get_maximum_rotation(self):
3959  r"""get_maximum_rotation(DirectionMover self) -> IMP::Float"""
3960  return _IMP_core.DirectionMover_get_maximum_rotation(self)
3961 
3962  def get_reflect_probability(self):
3963  r"""get_reflect_probability(DirectionMover self) -> IMP::Float"""
3964  return _IMP_core.DirectionMover_get_reflect_probability(self)
3965 
3966  def get_direction(self):
3967  r"""get_direction(DirectionMover self) -> Direction"""
3968  return _IMP_core.DirectionMover_get_direction(self)
3969 
3970  def get_version_info(self):
3971  r"""get_version_info(DirectionMover self) -> VersionInfo"""
3972  return _IMP_core.DirectionMover_get_version_info(self)
3973  __swig_destroy__ = _IMP_core.delete_DirectionMover
3974 
3975  def __str__(self):
3976  r"""__str__(DirectionMover self) -> std::string"""
3977  return _IMP_core.DirectionMover___str__(self)
3978 
3979  def __repr__(self):
3980  r"""__repr__(DirectionMover self) -> std::string"""
3981  return _IMP_core.DirectionMover___repr__(self)
3982 
3983  @staticmethod
3984  def get_from(o):
3985  return _object_cast_to_DirectionMover(o)
3986 
3987 
3988  def _get_as_binary(self):
3989  r"""_get_as_binary(DirectionMover self) -> PyObject *"""
3990  return _IMP_core.DirectionMover__get_as_binary(self)
3991 
3992  def _set_from_binary(self, p):
3993  r"""_set_from_binary(DirectionMover self, PyObject * p)"""
3994  return _IMP_core.DirectionMover__set_from_binary(self, p)
3995 
3996  def __getstate__(self):
3997  p = self._get_as_binary()
3998  if len(self.__dict__) > 1:
3999  d = self.__dict__.copy()
4000  del d['this']
4001  p = (d, p)
4002  return p
4003 
4004  def __setstate__(self, p):
4005  if not hasattr(self, 'this'):
4006  self.__init__()
4007  if isinstance(p, tuple):
4008  d, p = p
4009  self.__dict__.update(d)
4010  return self._set_from_binary(p)
4011 
4012 
4013 # Register DirectionMover in _IMP_core:
4014 _IMP_core.DirectionMover_swigregister(DirectionMover)
4015 class SurfaceMover(MonteCarloMover):
4016  r"""Proxy of C++ IMP::core::SurfaceMover class."""
4017 
4018  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4019 
4020  def __init__(self, *args):
4021  r"""
4022  __init__(SurfaceMover self, Model m, ParticleIndex pi, IMP::Float max_translation, IMP::Float max_rotation, IMP::Float reflect_probability) -> SurfaceMover
4023  __init__(SurfaceMover self, Surface s, IMP::Float max_translation, IMP::Float max_rotation, IMP::Float reflect_probability) -> SurfaceMover
4024  __init__(SurfaceMover self) -> SurfaceMover
4025  """
4026  _IMP_core.SurfaceMover_swiginit(self, _IMP_core.new_SurfaceMover(*args))
4027 
4028  def set_maximum_translation(self, mt):
4029  r"""set_maximum_translation(SurfaceMover self, IMP::Float mt)"""
4030  return _IMP_core.SurfaceMover_set_maximum_translation(self, mt)
4031 
4032  def set_maximum_rotation(self, mr):
4033  r"""set_maximum_rotation(SurfaceMover self, IMP::Float mr)"""
4034  return _IMP_core.SurfaceMover_set_maximum_rotation(self, mr)
4035 
4036  def set_reflect_probability(self, rp):
4037  r"""set_reflect_probability(SurfaceMover self, IMP::Float rp)"""
4038  return _IMP_core.SurfaceMover_set_reflect_probability(self, rp)
4039 
4040  def get_maximum_translation(self):
4041  r"""get_maximum_translation(SurfaceMover self) -> IMP::Float"""
4042  return _IMP_core.SurfaceMover_get_maximum_translation(self)
4043 
4044  def get_maximum_rotation(self):
4045  r"""get_maximum_rotation(SurfaceMover self) -> IMP::Float"""
4046  return _IMP_core.SurfaceMover_get_maximum_rotation(self)
4047 
4048  def get_reflect_probability(self):
4049  r"""get_reflect_probability(SurfaceMover self) -> IMP::Float"""
4050  return _IMP_core.SurfaceMover_get_reflect_probability(self)
4051 
4052  def get_surface(self):
4053  r"""get_surface(SurfaceMover self) -> Surface"""
4054  return _IMP_core.SurfaceMover_get_surface(self)
4055 
4056  def get_version_info(self):
4057  r"""get_version_info(SurfaceMover self) -> VersionInfo"""
4058  return _IMP_core.SurfaceMover_get_version_info(self)
4059  __swig_destroy__ = _IMP_core.delete_SurfaceMover
4060 
4061  def __str__(self):
4062  r"""__str__(SurfaceMover self) -> std::string"""
4063  return _IMP_core.SurfaceMover___str__(self)
4064 
4065  def __repr__(self):
4066  r"""__repr__(SurfaceMover self) -> std::string"""
4067  return _IMP_core.SurfaceMover___repr__(self)
4068 
4069  @staticmethod
4070  def get_from(o):
4071  return _object_cast_to_SurfaceMover(o)
4072 
4073 
4074  def _get_as_binary(self):
4075  r"""_get_as_binary(SurfaceMover self) -> PyObject *"""
4076  return _IMP_core.SurfaceMover__get_as_binary(self)
4077 
4078  def _set_from_binary(self, p):
4079  r"""_set_from_binary(SurfaceMover self, PyObject * p)"""
4080  return _IMP_core.SurfaceMover__set_from_binary(self, p)
4081 
4082  def __getstate__(self):
4083  p = self._get_as_binary()
4084  if len(self.__dict__) > 1:
4085  d = self.__dict__.copy()
4086  del d['this']
4087  p = (d, p)
4088  return p
4089 
4090  def __setstate__(self, p):
4091  if not hasattr(self, 'this'):
4092  self.__init__()
4093  if isinstance(p, tuple):
4094  d, p = p
4095  self.__dict__.update(d)
4096  return self._set_from_binary(p)
4097 
4098 
4099 # Register SurfaceMover in _IMP_core:
4100 _IMP_core.SurfaceMover_swigregister(SurfaceMover)
4101 class BoxSweepClosePairsFinder(ClosePairsFinder):
4102  r"""Proxy of C++ IMP::core::BoxSweepClosePairsFinder class."""
4103 
4104  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4105 
4106  def __init__(self):
4107  r"""__init__(BoxSweepClosePairsFinder self) -> BoxSweepClosePairsFinder"""
4108  _IMP_core.BoxSweepClosePairsFinder_swiginit(self, _IMP_core.new_BoxSweepClosePairsFinder())
4109 
4110  def get_close_pairs(self, *args):
4111  r"""
4112  get_close_pairs(BoxSweepClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
4113  get_close_pairs(BoxSweepClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
4114  get_close_pairs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
4115  get_close_pairs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
4116  """
4117  return _IMP_core.BoxSweepClosePairsFinder_get_close_pairs(self, *args)
4118 
4119  def do_get_inputs(self, m, pis):
4120  r"""do_get_inputs(BoxSweepClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4121  return _IMP_core.BoxSweepClosePairsFinder_do_get_inputs(self, m, pis)
4122 
4123  def get_version_info(self):
4124  r"""get_version_info(BoxSweepClosePairsFinder self) -> VersionInfo"""
4125  return _IMP_core.BoxSweepClosePairsFinder_get_version_info(self)
4126  __swig_destroy__ = _IMP_core.delete_BoxSweepClosePairsFinder
4127 
4128  def __str__(self):
4129  r"""__str__(BoxSweepClosePairsFinder self) -> std::string"""
4130  return _IMP_core.BoxSweepClosePairsFinder___str__(self)
4131 
4132  def __repr__(self):
4133  r"""__repr__(BoxSweepClosePairsFinder self) -> std::string"""
4134  return _IMP_core.BoxSweepClosePairsFinder___repr__(self)
4135 
4136  @staticmethod
4137  def get_from(o):
4138  return _object_cast_to_BoxSweepClosePairsFinder(o)
4139 
4140 
4141 # Register BoxSweepClosePairsFinder in _IMP_core:
4142 _IMP_core.BoxSweepClosePairsFinder_swigregister(BoxSweepClosePairsFinder)
4143 class CentroidOfRefined(IMP.SingletonModifier):
4144  r"""Proxy of C++ IMP::core::CentroidOfRefined class."""
4145 
4146  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4147 
4148  def __init__(self, *args):
4149  r"""__init__(CentroidOfRefined self, Refiner r, FloatKey weight=IMP::FloatKey(), IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> CentroidOfRefined"""
4150  _IMP_core.CentroidOfRefined_swiginit(self, _IMP_core.new_CentroidOfRefined(*args))
4151 
4152  def do_get_inputs(self, m, pis):
4153  r"""do_get_inputs(CentroidOfRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4154  return _IMP_core.CentroidOfRefined_do_get_inputs(self, m, pis)
4155 
4156  def do_get_outputs(self, m, pis):
4157  r"""do_get_outputs(CentroidOfRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4158  return _IMP_core.CentroidOfRefined_do_get_outputs(self, m, pis)
4159 
4160  def get_version_info(self):
4161  r"""get_version_info(CentroidOfRefined self) -> VersionInfo"""
4162  return _IMP_core.CentroidOfRefined_get_version_info(self)
4163  __swig_destroy__ = _IMP_core.delete_CentroidOfRefined
4164 
4165  def __str__(self):
4166  r"""__str__(CentroidOfRefined self) -> std::string"""
4167  return _IMP_core.CentroidOfRefined___str__(self)
4168 
4169  def __repr__(self):
4170  r"""__repr__(CentroidOfRefined self) -> std::string"""
4171  return _IMP_core.CentroidOfRefined___repr__(self)
4172 
4173  @staticmethod
4174  def get_from(o):
4175  return _object_cast_to_CentroidOfRefined(o)
4176 
4177 
4178 # Register CentroidOfRefined in _IMP_core:
4179 _IMP_core.CentroidOfRefined_swigregister(CentroidOfRefined)
4180 class Centroid(XYZ):
4181  r"""Proxy of C++ IMP::core::Centroid class."""
4182 
4183  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4184 
4185  def get_constraint(self):
4186  r"""get_constraint(Centroid self) -> Constraint"""
4187  return _IMP_core.Centroid_get_constraint(self)
4188 
4189  def __init__(self, *args):
4190  r"""
4191  __init__(Centroid self) -> Centroid
4192  __init__(Centroid self, Model m, ParticleIndex id) -> Centroid
4193  __init__(Centroid self, _ParticleAdaptor d) -> Centroid
4194  """
4195  _IMP_core.Centroid_swiginit(self, _IMP_core.new_Centroid(*args))
4196 
4197  def show(self, *args):
4198  r"""show(Centroid self, _ostream out=std::cout)"""
4199  return _IMP_core.Centroid_show(self, *args)
4200 
4201  @staticmethod
4202  def setup_particle(*args):
4203  r"""
4204  setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor members) -> Centroid
4205  setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor members) -> Centroid
4206  setup_particle(Model m, ParticleIndex pi, Refiner refiner) -> Centroid
4207  setup_particle(_ParticleAdaptor pa, Refiner refiner) -> Centroid
4208  """
4209  return _IMP_core.Centroid_setup_particle(*args)
4210 
4211  @staticmethod
4212  def get_is_setup(*args):
4213  r"""
4214  get_is_setup(_ParticleAdaptor p) -> bool
4215  get_is_setup(Model m, ParticleIndex pi) -> bool
4216  """
4217  return _IMP_core.Centroid_get_is_setup(*args)
4218 
4219  def add_attribute(self, *args):
4220  r"""
4221  add_attribute(Centroid self, FloatKey k, IMP::Float v, bool opt)
4222  add_attribute(Centroid self, FloatKey a0, IMP::Float a1)
4223  add_attribute(Centroid self, IntKey a0, IMP::Int a1)
4224  add_attribute(Centroid self, FloatsKey a0, IMP::Floats a1)
4225  add_attribute(Centroid self, IntsKey a0, IMP::Ints a1)
4226  add_attribute(Centroid self, StringKey a0, IMP::String a1)
4227  add_attribute(Centroid self, ParticleIndexKey a0, Particle a1)
4228  add_attribute(Centroid self, ObjectKey a0, Object a1)
4229  add_attribute(Centroid self, SparseFloatKey a0, IMP::Float a1)
4230  add_attribute(Centroid self, SparseIntKey a0, IMP::Int a1)
4231  add_attribute(Centroid self, SparseStringKey a0, IMP::String a1)
4232  add_attribute(Centroid self, SparseParticleIndexKey a0, ParticleIndex a1)
4233  """
4234  return _IMP_core.Centroid_add_attribute(self, *args)
4235 
4236  def get_value(self, *args):
4237  r"""
4238  get_value(Centroid self, FloatKey a0) -> IMP::Float
4239  get_value(Centroid self, IntKey a0) -> IMP::Int
4240  get_value(Centroid self, FloatsKey a0) -> IMP::Floats
4241  get_value(Centroid self, IntsKey a0) -> IMP::Ints
4242  get_value(Centroid self, StringKey a0) -> IMP::String
4243  get_value(Centroid self, ParticleIndexKey a0) -> Particle
4244  get_value(Centroid self, ObjectKey a0) -> Object
4245  get_value(Centroid self, SparseFloatKey a0) -> IMP::Float
4246  get_value(Centroid self, SparseIntKey a0) -> IMP::Int
4247  get_value(Centroid self, SparseStringKey a0) -> IMP::String
4248  get_value(Centroid self, SparseParticleIndexKey a0) -> ParticleIndex
4249  """
4250  return _IMP_core.Centroid_get_value(self, *args)
4251 
4252  def set_value(self, *args):
4253  r"""
4254  set_value(Centroid self, FloatKey a0, IMP::Float a1)
4255  set_value(Centroid self, IntKey a0, IMP::Int a1)
4256  set_value(Centroid self, FloatsKey a0, IMP::Floats a1)
4257  set_value(Centroid self, IntsKey a0, IMP::Ints a1)
4258  set_value(Centroid self, StringKey a0, IMP::String a1)
4259  set_value(Centroid self, ParticleIndexKey a0, Particle a1)
4260  set_value(Centroid self, ObjectKey a0, Object a1)
4261  set_value(Centroid self, SparseFloatKey a0, IMP::Float a1)
4262  set_value(Centroid self, SparseIntKey a0, IMP::Int a1)
4263  set_value(Centroid self, SparseStringKey a0, IMP::String a1)
4264  set_value(Centroid self, SparseParticleIndexKey a0, ParticleIndex a1)
4265  """
4266  return _IMP_core.Centroid_set_value(self, *args)
4267 
4268  def remove_attribute(self, *args):
4269  r"""
4270  remove_attribute(Centroid self, FloatKey a0)
4271  remove_attribute(Centroid self, IntKey a0)
4272  remove_attribute(Centroid self, FloatsKey a0)
4273  remove_attribute(Centroid self, IntsKey a0)
4274  remove_attribute(Centroid self, StringKey a0)
4275  remove_attribute(Centroid self, ParticleIndexKey a0)
4276  remove_attribute(Centroid self, ObjectKey a0)
4277  remove_attribute(Centroid self, SparseFloatKey a0)
4278  remove_attribute(Centroid self, SparseIntKey a0)
4279  remove_attribute(Centroid self, SparseStringKey a0)
4280  remove_attribute(Centroid self, SparseParticleIndexKey a0)
4281  """
4282  return _IMP_core.Centroid_remove_attribute(self, *args)
4283 
4284  def has_attribute(self, *args):
4285  r"""
4286  has_attribute(Centroid self, FloatKey a0) -> bool
4287  has_attribute(Centroid self, IntKey a0) -> bool
4288  has_attribute(Centroid self, FloatsKey a0) -> bool
4289  has_attribute(Centroid self, IntsKey a0) -> bool
4290  has_attribute(Centroid self, StringKey a0) -> bool
4291  has_attribute(Centroid self, ParticleIndexKey a0) -> bool
4292  has_attribute(Centroid self, ObjectKey a0) -> bool
4293  has_attribute(Centroid self, SparseFloatKey a0) -> bool
4294  has_attribute(Centroid self, SparseIntKey a0) -> bool
4295  has_attribute(Centroid self, SparseStringKey a0) -> bool
4296  has_attribute(Centroid self, SparseParticleIndexKey a0) -> bool
4297  """
4298  return _IMP_core.Centroid_has_attribute(self, *args)
4299 
4300  def get_derivative(self, a0):
4301  r"""get_derivative(Centroid self, FloatKey a0) -> double"""
4302  return _IMP_core.Centroid_get_derivative(self, a0)
4303 
4304  def get_name(self):
4305  r"""get_name(Centroid self) -> std::string"""
4306  return _IMP_core.Centroid_get_name(self)
4307 
4308  def clear_caches(self):
4309  r"""clear_caches(Centroid self)"""
4310  return _IMP_core.Centroid_clear_caches(self)
4311 
4312  def set_name(self, a0):
4313  r"""set_name(Centroid self, std::string a0)"""
4314  return _IMP_core.Centroid_set_name(self, a0)
4315 
4316  def set_check_level(self, a0):
4317  r"""set_check_level(Centroid self, IMP::CheckLevel a0)"""
4318  return _IMP_core.Centroid_set_check_level(self, a0)
4319 
4320  def add_to_derivative(self, a0, a1, a2):
4321  r"""add_to_derivative(Centroid self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
4322  return _IMP_core.Centroid_add_to_derivative(self, a0, a1, a2)
4323 
4324  def set_is_optimized(self, a0, a1):
4325  r"""set_is_optimized(Centroid self, FloatKey a0, bool a1)"""
4326  return _IMP_core.Centroid_set_is_optimized(self, a0, a1)
4327 
4328  def get_is_optimized(self, a0):
4329  r"""get_is_optimized(Centroid self, FloatKey a0) -> bool"""
4330  return _IMP_core.Centroid_get_is_optimized(self, a0)
4331 
4332  def get_check_level(self):
4333  r"""get_check_level(Centroid self) -> IMP::CheckLevel"""
4334  return _IMP_core.Centroid_get_check_level(self)
4335 
4336  def __eq__(self, *args):
4337  r"""
4338  __eq__(Centroid self, Centroid o) -> bool
4339  __eq__(Centroid self, Particle d) -> bool
4340  """
4341  return _IMP_core.Centroid___eq__(self, *args)
4342 
4343  def __ne__(self, *args):
4344  r"""
4345  __ne__(Centroid self, Centroid o) -> bool
4346  __ne__(Centroid self, Particle d) -> bool
4347  """
4348  return _IMP_core.Centroid___ne__(self, *args)
4349 
4350  def __le__(self, *args):
4351  r"""
4352  __le__(Centroid self, Centroid o) -> bool
4353  __le__(Centroid self, Particle d) -> bool
4354  """
4355  return _IMP_core.Centroid___le__(self, *args)
4356 
4357  def __lt__(self, *args):
4358  r"""
4359  __lt__(Centroid self, Centroid o) -> bool
4360  __lt__(Centroid self, Particle d) -> bool
4361  """
4362  return _IMP_core.Centroid___lt__(self, *args)
4363 
4364  def __ge__(self, *args):
4365  r"""
4366  __ge__(Centroid self, Centroid o) -> bool
4367  __ge__(Centroid self, Particle d) -> bool
4368  """
4369  return _IMP_core.Centroid___ge__(self, *args)
4370 
4371  def __gt__(self, *args):
4372  r"""
4373  __gt__(Centroid self, Centroid o) -> bool
4374  __gt__(Centroid self, Particle d) -> bool
4375  """
4376  return _IMP_core.Centroid___gt__(self, *args)
4377 
4378  def __hash__(self):
4379  r"""__hash__(Centroid self) -> std::size_t"""
4380  return _IMP_core.Centroid___hash__(self)
4381 
4382  def __str__(self):
4383  r"""__str__(Centroid self) -> std::string"""
4384  return _IMP_core.Centroid___str__(self)
4385 
4386  def __repr__(self):
4387  r"""__repr__(Centroid self) -> std::string"""
4388  return _IMP_core.Centroid___repr__(self)
4389 
4390  def _get_as_binary(self):
4391  r"""_get_as_binary(Centroid self) -> PyObject *"""
4392  return _IMP_core.Centroid__get_as_binary(self)
4393 
4394  def _set_from_binary(self, p):
4395  r"""_set_from_binary(Centroid self, PyObject * p)"""
4396  return _IMP_core.Centroid__set_from_binary(self, p)
4397 
4398  def __getstate__(self):
4399  p = self._get_as_binary()
4400  if len(self.__dict__) > 1:
4401  d = self.__dict__.copy()
4402  del d['this']
4403  p = (d, p)
4404  return p
4405 
4406  def __setstate__(self, p):
4407  if not hasattr(self, 'this'):
4408  self.__init__()
4409  if isinstance(p, tuple):
4410  d, p = p
4411  self.__dict__.update(d)
4412  return self._set_from_binary(p)
4413 
4414  __swig_destroy__ = _IMP_core.delete_Centroid
4415 
4416 # Register Centroid in _IMP_core:
4417 _IMP_core.Centroid_swigregister(Centroid)
4418 class ChecksScoreState(IMP.ScoreState):
4419  r"""Proxy of C++ IMP::core::ChecksScoreState class."""
4420 
4421  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4422 
4423  def __init__(self, *args):
4424  r"""
4425  __init__(ChecksScoreState self, Model m, double probability) -> ChecksScoreState
4426  __init__(ChecksScoreState self) -> ChecksScoreState
4427  """
4428  _IMP_core.ChecksScoreState_swiginit(self, _IMP_core.new_ChecksScoreState(*args))
4429 
4430  def get_number_of_checked(self):
4431  r"""get_number_of_checked(ChecksScoreState self) -> unsigned int"""
4432  return _IMP_core.ChecksScoreState_get_number_of_checked(self)
4433 
4434  def do_before_evaluate(self):
4435  r"""do_before_evaluate(ChecksScoreState self)"""
4436  return _IMP_core.ChecksScoreState_do_before_evaluate(self)
4437 
4438  def do_after_evaluate(self, da):
4439  r"""do_after_evaluate(ChecksScoreState self, DerivativeAccumulator da)"""
4440  return _IMP_core.ChecksScoreState_do_after_evaluate(self, da)
4441 
4442  def do_get_outputs(self):
4443  r"""do_get_outputs(ChecksScoreState self) -> IMP::ModelObjectsTemp"""
4444  return _IMP_core.ChecksScoreState_do_get_outputs(self)
4445 
4446  def do_get_inputs(self):
4447  r"""do_get_inputs(ChecksScoreState self) -> IMP::ModelObjectsTemp"""
4448  return _IMP_core.ChecksScoreState_do_get_inputs(self)
4449 
4450  def get_version_info(self):
4451  r"""get_version_info(ChecksScoreState self) -> VersionInfo"""
4452  return _IMP_core.ChecksScoreState_get_version_info(self)
4453  __swig_destroy__ = _IMP_core.delete_ChecksScoreState
4454 
4455  def __str__(self):
4456  r"""__str__(ChecksScoreState self) -> std::string"""
4457  return _IMP_core.ChecksScoreState___str__(self)
4458 
4459  def __repr__(self):
4460  r"""__repr__(ChecksScoreState self) -> std::string"""
4461  return _IMP_core.ChecksScoreState___repr__(self)
4462 
4463  @staticmethod
4464  def get_from(o):
4465  return _object_cast_to_ChecksScoreState(o)
4466 
4467 
4468  def _get_as_binary(self):
4469  r"""_get_as_binary(ChecksScoreState self) -> PyObject *"""
4470  return _IMP_core.ChecksScoreState__get_as_binary(self)
4471 
4472  def _set_from_binary(self, p):
4473  r"""_set_from_binary(ChecksScoreState self, PyObject * p)"""
4474  return _IMP_core.ChecksScoreState__set_from_binary(self, p)
4475 
4476  def __getstate__(self):
4477  p = self._get_as_binary()
4478  if len(self.__dict__) > 1:
4479  d = self.__dict__.copy()
4480  del d['this']
4481  p = (d, p)
4482  return p
4483 
4484  def __setstate__(self, p):
4485  if not hasattr(self, 'this'):
4486  self.__init__()
4487  if isinstance(p, tuple):
4488  d, p = p
4489  self.__dict__.update(d)
4490  return self._set_from_binary(p)
4491 
4492 
4493 # Register ChecksScoreState in _IMP_core:
4494 _IMP_core.ChecksScoreState_swigregister(ChecksScoreState)
4495 class ChildrenRefiner(IMP.Refiner):
4496  r"""Proxy of C++ IMP::core::ChildrenRefiner class."""
4497 
4498  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4499 
4500  def __init__(self, tr):
4501  r"""__init__(ChildrenRefiner self, HierarchyTraits tr) -> ChildrenRefiner"""
4502  _IMP_core.ChildrenRefiner_swiginit(self, _IMP_core.new_ChildrenRefiner(tr))
4503 
4504  def do_get_inputs(self, m, pis):
4505  r"""do_get_inputs(ChildrenRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4506  return _IMP_core.ChildrenRefiner_do_get_inputs(self, m, pis)
4507 
4508  def get_version_info(self):
4509  r"""get_version_info(ChildrenRefiner self) -> VersionInfo"""
4510  return _IMP_core.ChildrenRefiner_get_version_info(self)
4511  __swig_destroy__ = _IMP_core.delete_ChildrenRefiner
4512 
4513  def __str__(self):
4514  r"""__str__(ChildrenRefiner self) -> std::string"""
4515  return _IMP_core.ChildrenRefiner___str__(self)
4516 
4517  def __repr__(self):
4518  r"""__repr__(ChildrenRefiner self) -> std::string"""
4519  return _IMP_core.ChildrenRefiner___repr__(self)
4520 
4521  @staticmethod
4522  def get_from(o):
4523  return _object_cast_to_ChildrenRefiner(o)
4524 
4525 
4526 # Register ChildrenRefiner in _IMP_core:
4527 _IMP_core.ChildrenRefiner_swigregister(ChildrenRefiner)
4528 class ClosedCubicSpline(IMP.UnaryFunction):
4529  r"""Proxy of C++ IMP::core::ClosedCubicSpline class."""
4530 
4531  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4532 
4533  def __init__(self, values, minrange, spacing):
4534  r"""__init__(ClosedCubicSpline self, IMP::Floats const & values, double minrange, double spacing) -> ClosedCubicSpline"""
4535  _IMP_core.ClosedCubicSpline_swiginit(self, _IMP_core.new_ClosedCubicSpline(values, minrange, spacing))
4536 
4537  def get_version_info(self):
4538  r"""get_version_info(ClosedCubicSpline self) -> VersionInfo"""
4539  return _IMP_core.ClosedCubicSpline_get_version_info(self)
4540  __swig_destroy__ = _IMP_core.delete_ClosedCubicSpline
4541 
4542  def do_show(self, out):
4543  r"""do_show(ClosedCubicSpline self, _ostream out)"""
4544  return _IMP_core.ClosedCubicSpline_do_show(self, out)
4545 
4546  def __str__(self):
4547  r"""__str__(ClosedCubicSpline self) -> std::string"""
4548  return _IMP_core.ClosedCubicSpline___str__(self)
4549 
4550  def __repr__(self):
4551  r"""__repr__(ClosedCubicSpline self) -> std::string"""
4552  return _IMP_core.ClosedCubicSpline___repr__(self)
4553 
4554  @staticmethod
4555  def get_from(o):
4556  return _object_cast_to_ClosedCubicSpline(o)
4557 
4558 
4559 # Register ClosedCubicSpline in _IMP_core:
4560 _IMP_core.ClosedCubicSpline_swigregister(ClosedCubicSpline)
4561 class KClosePairsPairScore(IMP.PairScore):
4562  r"""Proxy of C++ IMP::core::KClosePairsPairScore class."""
4563 
4564  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4565 
4566  def __init__(self, f, r, k=1):
4567  r"""__init__(KClosePairsPairScore self, PairScore f, Refiner r, int k=1) -> KClosePairsPairScore"""
4568  _IMP_core.KClosePairsPairScore_swiginit(self, _IMP_core.new_KClosePairsPairScore(f, r, k))
4569 
4570  def get_close_pairs(self, pp):
4571  r"""get_close_pairs(KClosePairsPairScore self, IMP::ParticlePair const & pp) -> IMP::ParticlePairsTemp"""
4572  return _IMP_core.KClosePairsPairScore_get_close_pairs(self, pp)
4573 
4574  def create_current_decomposition(self, m, vt):
4575  r"""create_current_decomposition(KClosePairsPairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
4576  return _IMP_core.KClosePairsPairScore_create_current_decomposition(self, m, vt)
4577 
4578  def do_get_inputs(self, m, pis):
4579  r"""do_get_inputs(KClosePairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4580  return _IMP_core.KClosePairsPairScore_do_get_inputs(self, m, pis)
4581 
4582  def get_version_info(self):
4583  r"""get_version_info(KClosePairsPairScore self) -> VersionInfo"""
4584  return _IMP_core.KClosePairsPairScore_get_version_info(self)
4585  __swig_destroy__ = _IMP_core.delete_KClosePairsPairScore
4586 
4587  def __str__(self):
4588  r"""__str__(KClosePairsPairScore self) -> std::string"""
4589  return _IMP_core.KClosePairsPairScore___str__(self)
4590 
4591  def __repr__(self):
4592  r"""__repr__(KClosePairsPairScore self) -> std::string"""
4593  return _IMP_core.KClosePairsPairScore___repr__(self)
4594 
4595  @staticmethod
4596  def get_from(o):
4597  return _object_cast_to_KClosePairsPairScore(o)
4598 
4599 
4600 # Register KClosePairsPairScore in _IMP_core:
4601 _IMP_core.KClosePairsPairScore_swigregister(KClosePairsPairScore)
4602 class ClosePairsPairScore(IMP.PairScore):
4603  r"""Proxy of C++ IMP::core::ClosePairsPairScore class."""
4604 
4605  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4606 
4607  def __init__(self, f, r, max_distance):
4608  r"""__init__(ClosePairsPairScore self, PairScore f, Refiner r, IMP::Float max_distance) -> ClosePairsPairScore"""
4609  _IMP_core.ClosePairsPairScore_swiginit(self, _IMP_core.new_ClosePairsPairScore(f, r, max_distance))
4610 
4611  def get_close_pairs(self, pp):
4612  r"""get_close_pairs(ClosePairsPairScore self, IMP::ParticlePair const & pp) -> IMP::ParticlePairsTemp"""
4613  return _IMP_core.ClosePairsPairScore_get_close_pairs(self, pp)
4614 
4615  def create_current_decomposition(self, m, vt):
4616  r"""create_current_decomposition(ClosePairsPairScore self, Model m, IMP::ParticleIndexPair const & vt) -> IMP::Restraints"""
4617  return _IMP_core.ClosePairsPairScore_create_current_decomposition(self, m, vt)
4618 
4619  def do_get_inputs(self, m, pis):
4620  r"""do_get_inputs(ClosePairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4621  return _IMP_core.ClosePairsPairScore_do_get_inputs(self, m, pis)
4622 
4623  def get_version_info(self):
4624  r"""get_version_info(ClosePairsPairScore self) -> VersionInfo"""
4625  return _IMP_core.ClosePairsPairScore_get_version_info(self)
4626  __swig_destroy__ = _IMP_core.delete_ClosePairsPairScore
4627 
4628  def __str__(self):
4629  r"""__str__(ClosePairsPairScore self) -> std::string"""
4630  return _IMP_core.ClosePairsPairScore___str__(self)
4631 
4632  def __repr__(self):
4633  r"""__repr__(ClosePairsPairScore self) -> std::string"""
4634  return _IMP_core.ClosePairsPairScore___repr__(self)
4635 
4636  @staticmethod
4637  def get_from(o):
4638  return _object_cast_to_ClosePairsPairScore(o)
4639 
4640 
4641 # Register ClosePairsPairScore in _IMP_core:
4642 _IMP_core.ClosePairsPairScore_swigregister(ClosePairsPairScore)
4643 class ConjugateGradients(IMP.AttributeOptimizer):
4644  r"""Proxy of C++ IMP::core::ConjugateGradients class."""
4645 
4646  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4647 
4648  def __init__(self, *args):
4649  r"""
4650  __init__(ConjugateGradients self, Model m, std::string name="ConjugateGradients%1%") -> ConjugateGradients
4651  __init__(ConjugateGradients self) -> ConjugateGradients
4652  """
4653  _IMP_core.ConjugateGradients_swiginit(self, _IMP_core.new_ConjugateGradients(*args))
4654 
4655  def set_gradient_threshold(self, t):
4656  r"""set_gradient_threshold(ConjugateGradients self, IMP::Float t)"""
4657  return _IMP_core.ConjugateGradients_set_gradient_threshold(self, t)
4658 
4659  def set_max_change(self, t):
4660  r"""set_max_change(ConjugateGradients self, IMP::Float t)"""
4661  return _IMP_core.ConjugateGradients_set_max_change(self, t)
4662 
4663  def do_optimize(self, max_steps):
4664  r"""do_optimize(ConjugateGradients self, unsigned int max_steps) -> IMP::Float"""
4665  return _IMP_core.ConjugateGradients_do_optimize(self, max_steps)
4666 
4667  def get_version_info(self):
4668  r"""get_version_info(ConjugateGradients self) -> VersionInfo"""
4669  return _IMP_core.ConjugateGradients_get_version_info(self)
4670  __swig_destroy__ = _IMP_core.delete_ConjugateGradients
4671 
4672  def __str__(self):
4673  r"""__str__(ConjugateGradients self) -> std::string"""
4674  return _IMP_core.ConjugateGradients___str__(self)
4675 
4676  def __repr__(self):
4677  r"""__repr__(ConjugateGradients self) -> std::string"""
4678  return _IMP_core.ConjugateGradients___repr__(self)
4679 
4680  @staticmethod
4681  def get_from(o):
4682  return _object_cast_to_ConjugateGradients(o)
4683 
4684 
4685  def _get_as_binary(self):
4686  r"""_get_as_binary(ConjugateGradients self) -> PyObject *"""
4687  return _IMP_core.ConjugateGradients__get_as_binary(self)
4688 
4689  def _set_from_binary(self, p):
4690  r"""_set_from_binary(ConjugateGradients self, PyObject * p)"""
4691  return _IMP_core.ConjugateGradients__set_from_binary(self, p)
4692 
4693  def __getstate__(self):
4694  p = self._get_as_binary()
4695  if len(self.__dict__) > 1:
4696  d = self.__dict__.copy()
4697  del d['this']
4698  p = (d, p)
4699  return p
4700 
4701  def __setstate__(self, p):
4702  if not hasattr(self, 'this'):
4703  self.__init__()
4704  if isinstance(p, tuple):
4705  d, p = p
4706  self.__dict__.update(d)
4707  return self._set_from_binary(p)
4708 
4709 
4710 # Register ConjugateGradients in _IMP_core:
4711 _IMP_core.ConjugateGradients_swigregister(ConjugateGradients)
4712 class ConnectivityRestraint(IMP.Restraint):
4713  r"""Proxy of C++ IMP::core::ConnectivityRestraint class."""
4714 
4715  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4716 
4717  def __init__(self, ps, sc):
4718  r"""__init__(ConnectivityRestraint self, PairScore ps, _SingletonContainerAdaptor sc) -> ConnectivityRestraint"""
4719  _IMP_core.ConnectivityRestraint_swiginit(self, _IMP_core.new_ConnectivityRestraint(ps, sc))
4720 
4721  def get_connected_index_pairs(self):
4722  r"""get_connected_index_pairs(ConnectivityRestraint self) -> IMP::ParticleIndexPairs"""
4723  return _IMP_core.ConnectivityRestraint_get_connected_index_pairs(self)
4724 
4725  def get_pair_score(self):
4726  r"""get_pair_score(ConnectivityRestraint self) -> PairScore"""
4727  return _IMP_core.ConnectivityRestraint_get_pair_score(self)
4728 
4729  def do_create_current_decomposition(self):
4730  r"""do_create_current_decomposition(ConnectivityRestraint self) -> IMP::Restraints"""
4731  return _IMP_core.ConnectivityRestraint_do_create_current_decomposition(self)
4732 
4733  def do_get_inputs(self):
4734  r"""do_get_inputs(ConnectivityRestraint self) -> IMP::ModelObjectsTemp"""
4735  return _IMP_core.ConnectivityRestraint_do_get_inputs(self)
4736 
4737  def get_version_info(self):
4738  r"""get_version_info(ConnectivityRestraint self) -> VersionInfo"""
4739  return _IMP_core.ConnectivityRestraint_get_version_info(self)
4740  __swig_destroy__ = _IMP_core.delete_ConnectivityRestraint
4741 
4742  def __str__(self):
4743  r"""__str__(ConnectivityRestraint self) -> std::string"""
4744  return _IMP_core.ConnectivityRestraint___str__(self)
4745 
4746  def __repr__(self):
4747  r"""__repr__(ConnectivityRestraint self) -> std::string"""
4748  return _IMP_core.ConnectivityRestraint___repr__(self)
4749 
4750  @staticmethod
4751  def get_from(o):
4752  return _object_cast_to_ConnectivityRestraint(o)
4753 
4754 
4755 # Register ConnectivityRestraint in _IMP_core:
4756 _IMP_core.ConnectivityRestraint_swigregister(ConnectivityRestraint)
4757 class ConstantRestraint(IMP.Restraint):
4758  r"""Proxy of C++ IMP::core::ConstantRestraint class."""
4759 
4760  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4761 
4762  def __init__(self, *args):
4763  r"""
4764  __init__(ConstantRestraint self, Model m, IMP::Float v) -> ConstantRestraint
4765  __init__(ConstantRestraint self) -> ConstantRestraint
4766  """
4767  _IMP_core.ConstantRestraint_swiginit(self, _IMP_core.new_ConstantRestraint(*args))
4768 
4769  def do_get_inputs(self):
4770  r"""do_get_inputs(ConstantRestraint self) -> IMP::ModelObjectsTemp"""
4771  return _IMP_core.ConstantRestraint_do_get_inputs(self)
4772 
4773  def get_version_info(self):
4774  r"""get_version_info(ConstantRestraint self) -> VersionInfo"""
4775  return _IMP_core.ConstantRestraint_get_version_info(self)
4776  __swig_destroy__ = _IMP_core.delete_ConstantRestraint
4777 
4778  def __str__(self):
4779  r"""__str__(ConstantRestraint self) -> std::string"""
4780  return _IMP_core.ConstantRestraint___str__(self)
4781 
4782  def __repr__(self):
4783  r"""__repr__(ConstantRestraint self) -> std::string"""
4784  return _IMP_core.ConstantRestraint___repr__(self)
4785 
4786  @staticmethod
4787  def get_from(o):
4788  return _object_cast_to_ConstantRestraint(o)
4789 
4790 
4791  def _get_as_binary(self):
4792  r"""_get_as_binary(ConstantRestraint self) -> PyObject *"""
4793  return _IMP_core.ConstantRestraint__get_as_binary(self)
4794 
4795  def _set_from_binary(self, p):
4796  r"""_set_from_binary(ConstantRestraint self, PyObject * p)"""
4797  return _IMP_core.ConstantRestraint__set_from_binary(self, p)
4798 
4799  def __getstate__(self):
4800  p = self._get_as_binary()
4801  if len(self.__dict__) > 1:
4802  d = self.__dict__.copy()
4803  del d['this']
4804  p = (d, p)
4805  return p
4806 
4807  def __setstate__(self, p):
4808  if not hasattr(self, 'this'):
4809  self.__init__()
4810  if isinstance(p, tuple):
4811  d, p = p
4812  self.__dict__.update(d)
4813  return self._set_from_binary(p)
4814 
4815 
4816 # Register ConstantRestraint in _IMP_core:
4817 _IMP_core.ConstantRestraint_swigregister(ConstantRestraint)
4818 class Cosine(IMP.UnaryFunction):
4819  r"""Proxy of C++ IMP::core::Cosine class."""
4820 
4821  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4822 
4823  def __init__(self, *args):
4824  r"""
4825  __init__(Cosine self, IMP::Float force_constant, int periodicity, IMP::Float phase) -> Cosine
4826  __init__(Cosine self) -> Cosine
4827  """
4828  _IMP_core.Cosine_swiginit(self, _IMP_core.new_Cosine(*args))
4829 
4830  def get_version_info(self):
4831  r"""get_version_info(Cosine self) -> VersionInfo"""
4832  return _IMP_core.Cosine_get_version_info(self)
4833  __swig_destroy__ = _IMP_core.delete_Cosine
4834 
4835  def do_show(self, out):
4836  r"""do_show(Cosine self, _ostream out)"""
4837  return _IMP_core.Cosine_do_show(self, out)
4838 
4839  def __str__(self):
4840  r"""__str__(Cosine self) -> std::string"""
4841  return _IMP_core.Cosine___str__(self)
4842 
4843  def __repr__(self):
4844  r"""__repr__(Cosine self) -> std::string"""
4845  return _IMP_core.Cosine___repr__(self)
4846 
4847  @staticmethod
4848  def get_from(o):
4849  return _object_cast_to_Cosine(o)
4850 
4851 
4852  def _get_as_binary(self):
4853  r"""_get_as_binary(Cosine self) -> PyObject *"""
4854  return _IMP_core.Cosine__get_as_binary(self)
4855 
4856  def _set_from_binary(self, p):
4857  r"""_set_from_binary(Cosine self, PyObject * p)"""
4858  return _IMP_core.Cosine__set_from_binary(self, p)
4859 
4860  def __getstate__(self):
4861  p = self._get_as_binary()
4862  if len(self.__dict__) > 1:
4863  d = self.__dict__.copy()
4864  del d['this']
4865  p = (d, p)
4866  return p
4867 
4868  def __setstate__(self, p):
4869  if not hasattr(self, 'this'):
4870  self.__init__()
4871  if isinstance(p, tuple):
4872  d, p = p
4873  self.__dict__.update(d)
4874  return self._set_from_binary(p)
4875 
4876 
4877 # Register Cosine in _IMP_core:
4878 _IMP_core.Cosine_swigregister(Cosine)
4879 class CoverRefined(IMP.SingletonModifier):
4880  r"""Proxy of C++ IMP::core::CoverRefined class."""
4881 
4882  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4883 
4884  def __init__(self, ref, slack=0):
4885  r"""__init__(CoverRefined self, Refiner ref, IMP::Float slack=0) -> CoverRefined"""
4886  _IMP_core.CoverRefined_swiginit(self, _IMP_core.new_CoverRefined(ref, slack))
4887 
4888  def set_slack(self, slack):
4889  r"""set_slack(CoverRefined self, IMP::Float slack)"""
4890  return _IMP_core.CoverRefined_set_slack(self, slack)
4891 
4892  def do_get_inputs(self, m, pis):
4893  r"""do_get_inputs(CoverRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4894  return _IMP_core.CoverRefined_do_get_inputs(self, m, pis)
4895 
4896  def do_get_outputs(self, m, pis):
4897  r"""do_get_outputs(CoverRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
4898  return _IMP_core.CoverRefined_do_get_outputs(self, m, pis)
4899 
4900  def get_version_info(self):
4901  r"""get_version_info(CoverRefined self) -> VersionInfo"""
4902  return _IMP_core.CoverRefined_get_version_info(self)
4903  __swig_destroy__ = _IMP_core.delete_CoverRefined
4904 
4905  def __str__(self):
4906  r"""__str__(CoverRefined self) -> std::string"""
4907  return _IMP_core.CoverRefined___str__(self)
4908 
4909  def __repr__(self):
4910  r"""__repr__(CoverRefined self) -> std::string"""
4911  return _IMP_core.CoverRefined___repr__(self)
4912 
4913  @staticmethod
4914  def get_from(o):
4915  return _object_cast_to_CoverRefined(o)
4916 
4917 
4918 # Register CoverRefined in _IMP_core:
4919 _IMP_core.CoverRefined_swigregister(CoverRefined)
4920 class Cover(XYZR):
4921  r"""Proxy of C++ IMP::core::Cover class."""
4922 
4923  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
4924 
4925  def get_constraint(self):
4926  r"""get_constraint(Cover self) -> Constraint"""
4927  return _IMP_core.Cover_get_constraint(self)
4928 
4929  def __init__(self, *args):
4930  r"""
4931  __init__(Cover self) -> Cover
4932  __init__(Cover self, Model m, ParticleIndex id) -> Cover
4933  __init__(Cover self, _ParticleAdaptor d) -> Cover
4934  """
4935  _IMP_core.Cover_swiginit(self, _IMP_core.new_Cover(*args))
4936 
4937  def show(self, *args):
4938  r"""show(Cover self, _ostream out=std::cout)"""
4939  return _IMP_core.Cover_show(self, *args)
4940 
4941  @staticmethod
4942  def setup_particle(*args):
4943  r"""
4944  setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor members) -> Cover
4945  setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor members) -> Cover
4946  setup_particle(Model m, ParticleIndex pi, Refiner refiner) -> Cover
4947  setup_particle(_ParticleAdaptor pa, Refiner refiner) -> Cover
4948  """
4949  return _IMP_core.Cover_setup_particle(*args)
4950 
4951  @staticmethod
4952  def get_is_setup(*args):
4953  r"""
4954  get_is_setup(_ParticleAdaptor p) -> bool
4955  get_is_setup(Model m, ParticleIndex pi) -> bool
4956  """
4957  return _IMP_core.Cover_get_is_setup(*args)
4958 
4959  def add_attribute(self, *args):
4960  r"""
4961  add_attribute(Cover self, FloatKey k, IMP::Float v, bool opt)
4962  add_attribute(Cover self, FloatKey a0, IMP::Float a1)
4963  add_attribute(Cover self, IntKey a0, IMP::Int a1)
4964  add_attribute(Cover self, FloatsKey a0, IMP::Floats a1)
4965  add_attribute(Cover self, IntsKey a0, IMP::Ints a1)
4966  add_attribute(Cover self, StringKey a0, IMP::String a1)
4967  add_attribute(Cover self, ParticleIndexKey a0, Particle a1)
4968  add_attribute(Cover self, ObjectKey a0, Object a1)
4969  add_attribute(Cover self, SparseFloatKey a0, IMP::Float a1)
4970  add_attribute(Cover self, SparseIntKey a0, IMP::Int a1)
4971  add_attribute(Cover self, SparseStringKey a0, IMP::String a1)
4972  add_attribute(Cover self, SparseParticleIndexKey a0, ParticleIndex a1)
4973  """
4974  return _IMP_core.Cover_add_attribute(self, *args)
4975 
4976  def get_value(self, *args):
4977  r"""
4978  get_value(Cover self, FloatKey a0) -> IMP::Float
4979  get_value(Cover self, IntKey a0) -> IMP::Int
4980  get_value(Cover self, FloatsKey a0) -> IMP::Floats
4981  get_value(Cover self, IntsKey a0) -> IMP::Ints
4982  get_value(Cover self, StringKey a0) -> IMP::String
4983  get_value(Cover self, ParticleIndexKey a0) -> Particle
4984  get_value(Cover self, ObjectKey a0) -> Object
4985  get_value(Cover self, SparseFloatKey a0) -> IMP::Float
4986  get_value(Cover self, SparseIntKey a0) -> IMP::Int
4987  get_value(Cover self, SparseStringKey a0) -> IMP::String
4988  get_value(Cover self, SparseParticleIndexKey a0) -> ParticleIndex
4989  """
4990  return _IMP_core.Cover_get_value(self, *args)
4991 
4992  def set_value(self, *args):
4993  r"""
4994  set_value(Cover self, FloatKey a0, IMP::Float a1)
4995  set_value(Cover self, IntKey a0, IMP::Int a1)
4996  set_value(Cover self, FloatsKey a0, IMP::Floats a1)
4997  set_value(Cover self, IntsKey a0, IMP::Ints a1)
4998  set_value(Cover self, StringKey a0, IMP::String a1)
4999  set_value(Cover self, ParticleIndexKey a0, Particle a1)
5000  set_value(Cover self, ObjectKey a0, Object a1)
5001  set_value(Cover self, SparseFloatKey a0, IMP::Float a1)
5002  set_value(Cover self, SparseIntKey a0, IMP::Int a1)
5003  set_value(Cover self, SparseStringKey a0, IMP::String a1)
5004  set_value(Cover self, SparseParticleIndexKey a0, ParticleIndex a1)
5005  """
5006  return _IMP_core.Cover_set_value(self, *args)
5007 
5008  def remove_attribute(self, *args):
5009  r"""
5010  remove_attribute(Cover self, FloatKey a0)
5011  remove_attribute(Cover self, IntKey a0)
5012  remove_attribute(Cover self, FloatsKey a0)
5013  remove_attribute(Cover self, IntsKey a0)
5014  remove_attribute(Cover self, StringKey a0)
5015  remove_attribute(Cover self, ParticleIndexKey a0)
5016  remove_attribute(Cover self, ObjectKey a0)
5017  remove_attribute(Cover self, SparseFloatKey a0)
5018  remove_attribute(Cover self, SparseIntKey a0)
5019  remove_attribute(Cover self, SparseStringKey a0)
5020  remove_attribute(Cover self, SparseParticleIndexKey a0)
5021  """
5022  return _IMP_core.Cover_remove_attribute(self, *args)
5023 
5024  def has_attribute(self, *args):
5025  r"""
5026  has_attribute(Cover self, FloatKey a0) -> bool
5027  has_attribute(Cover self, IntKey a0) -> bool
5028  has_attribute(Cover self, FloatsKey a0) -> bool
5029  has_attribute(Cover self, IntsKey a0) -> bool
5030  has_attribute(Cover self, StringKey a0) -> bool
5031  has_attribute(Cover self, ParticleIndexKey a0) -> bool
5032  has_attribute(Cover self, ObjectKey a0) -> bool
5033  has_attribute(Cover self, SparseFloatKey a0) -> bool
5034  has_attribute(Cover self, SparseIntKey a0) -> bool
5035  has_attribute(Cover self, SparseStringKey a0) -> bool
5036  has_attribute(Cover self, SparseParticleIndexKey a0) -> bool
5037  """
5038  return _IMP_core.Cover_has_attribute(self, *args)
5039 
5040  def get_derivative(self, a0):
5041  r"""get_derivative(Cover self, FloatKey a0) -> double"""
5042  return _IMP_core.Cover_get_derivative(self, a0)
5043 
5044  def get_name(self):
5045  r"""get_name(Cover self) -> std::string"""
5046  return _IMP_core.Cover_get_name(self)
5047 
5048  def clear_caches(self):
5049  r"""clear_caches(Cover self)"""
5050  return _IMP_core.Cover_clear_caches(self)
5051 
5052  def set_name(self, a0):
5053  r"""set_name(Cover self, std::string a0)"""
5054  return _IMP_core.Cover_set_name(self, a0)
5055 
5056  def set_check_level(self, a0):
5057  r"""set_check_level(Cover self, IMP::CheckLevel a0)"""
5058  return _IMP_core.Cover_set_check_level(self, a0)
5059 
5060  def add_to_derivative(self, a0, a1, a2):
5061  r"""add_to_derivative(Cover self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5062  return _IMP_core.Cover_add_to_derivative(self, a0, a1, a2)
5063 
5064  def set_is_optimized(self, a0, a1):
5065  r"""set_is_optimized(Cover self, FloatKey a0, bool a1)"""
5066  return _IMP_core.Cover_set_is_optimized(self, a0, a1)
5067 
5068  def get_is_optimized(self, a0):
5069  r"""get_is_optimized(Cover self, FloatKey a0) -> bool"""
5070  return _IMP_core.Cover_get_is_optimized(self, a0)
5071 
5072  def get_check_level(self):
5073  r"""get_check_level(Cover self) -> IMP::CheckLevel"""
5074  return _IMP_core.Cover_get_check_level(self)
5075 
5076  def __eq__(self, *args):
5077  r"""
5078  __eq__(Cover self, Cover o) -> bool
5079  __eq__(Cover self, Particle d) -> bool
5080  """
5081  return _IMP_core.Cover___eq__(self, *args)
5082 
5083  def __ne__(self, *args):
5084  r"""
5085  __ne__(Cover self, Cover o) -> bool
5086  __ne__(Cover self, Particle d) -> bool
5087  """
5088  return _IMP_core.Cover___ne__(self, *args)
5089 
5090  def __le__(self, *args):
5091  r"""
5092  __le__(Cover self, Cover o) -> bool
5093  __le__(Cover self, Particle d) -> bool
5094  """
5095  return _IMP_core.Cover___le__(self, *args)
5096 
5097  def __lt__(self, *args):
5098  r"""
5099  __lt__(Cover self, Cover o) -> bool
5100  __lt__(Cover self, Particle d) -> bool
5101  """
5102  return _IMP_core.Cover___lt__(self, *args)
5103 
5104  def __ge__(self, *args):
5105  r"""
5106  __ge__(Cover self, Cover o) -> bool
5107  __ge__(Cover self, Particle d) -> bool
5108  """
5109  return _IMP_core.Cover___ge__(self, *args)
5110 
5111  def __gt__(self, *args):
5112  r"""
5113  __gt__(Cover self, Cover o) -> bool
5114  __gt__(Cover self, Particle d) -> bool
5115  """
5116  return _IMP_core.Cover___gt__(self, *args)
5117 
5118  def __hash__(self):
5119  r"""__hash__(Cover self) -> std::size_t"""
5120  return _IMP_core.Cover___hash__(self)
5121 
5122  def __str__(self):
5123  r"""__str__(Cover self) -> std::string"""
5124  return _IMP_core.Cover___str__(self)
5125 
5126  def __repr__(self):
5127  r"""__repr__(Cover self) -> std::string"""
5128  return _IMP_core.Cover___repr__(self)
5129 
5130  def _get_as_binary(self):
5131  r"""_get_as_binary(Cover self) -> PyObject *"""
5132  return _IMP_core.Cover__get_as_binary(self)
5133 
5134  def _set_from_binary(self, p):
5135  r"""_set_from_binary(Cover self, PyObject * p)"""
5136  return _IMP_core.Cover__set_from_binary(self, p)
5137 
5138  def __getstate__(self):
5139  p = self._get_as_binary()
5140  if len(self.__dict__) > 1:
5141  d = self.__dict__.copy()
5142  del d['this']
5143  p = (d, p)
5144  return p
5145 
5146  def __setstate__(self, p):
5147  if not hasattr(self, 'this'):
5148  self.__init__()
5149  if isinstance(p, tuple):
5150  d, p = p
5151  self.__dict__.update(d)
5152  return self._set_from_binary(p)
5153 
5154  __swig_destroy__ = _IMP_core.delete_Cover
5155 
5156 # Register Cover in _IMP_core:
5157 _IMP_core.Cover_swigregister(Cover)
5158 class DerivativesFromRefined(IMP.SingletonModifier):
5159  r"""Proxy of C++ IMP::core::DerivativesFromRefined class."""
5160 
5161  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5162 
5163  def __init__(self, *args):
5164  r"""__init__(DerivativesFromRefined self, Refiner r, IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> DerivativesFromRefined"""
5165  _IMP_core.DerivativesFromRefined_swiginit(self, _IMP_core.new_DerivativesFromRefined(*args))
5166 
5167  def do_get_inputs(self, m, pis):
5168  r"""do_get_inputs(DerivativesFromRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5169  return _IMP_core.DerivativesFromRefined_do_get_inputs(self, m, pis)
5170 
5171  def do_get_outputs(self, m, pis):
5172  r"""do_get_outputs(DerivativesFromRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5173  return _IMP_core.DerivativesFromRefined_do_get_outputs(self, m, pis)
5174 
5175  def get_version_info(self):
5176  r"""get_version_info(DerivativesFromRefined self) -> VersionInfo"""
5177  return _IMP_core.DerivativesFromRefined_get_version_info(self)
5178  __swig_destroy__ = _IMP_core.delete_DerivativesFromRefined
5179 
5180  def __str__(self):
5181  r"""__str__(DerivativesFromRefined self) -> std::string"""
5182  return _IMP_core.DerivativesFromRefined___str__(self)
5183 
5184  def __repr__(self):
5185  r"""__repr__(DerivativesFromRefined self) -> std::string"""
5186  return _IMP_core.DerivativesFromRefined___repr__(self)
5187 
5188  @staticmethod
5189  def get_from(o):
5190  return _object_cast_to_DerivativesFromRefined(o)
5191 
5192 
5193 # Register DerivativesFromRefined in _IMP_core:
5194 _IMP_core.DerivativesFromRefined_swigregister(DerivativesFromRefined)
5195 class DerivativesToRefined(IMP.SingletonModifier):
5196  r"""Proxy of C++ IMP::core::DerivativesToRefined class."""
5197 
5198  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5199 
5200  def __init__(self, *args):
5201  r"""__init__(DerivativesToRefined self, Refiner r, IMP::FloatKeys ks=IMP::core::XYZ::get_xyz_keys()) -> DerivativesToRefined"""
5202  _IMP_core.DerivativesToRefined_swiginit(self, _IMP_core.new_DerivativesToRefined(*args))
5203 
5204  def do_get_inputs(self, m, pis):
5205  r"""do_get_inputs(DerivativesToRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5206  return _IMP_core.DerivativesToRefined_do_get_inputs(self, m, pis)
5207 
5208  def do_get_outputs(self, m, pis):
5209  r"""do_get_outputs(DerivativesToRefined self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5210  return _IMP_core.DerivativesToRefined_do_get_outputs(self, m, pis)
5211 
5212  def get_version_info(self):
5213  r"""get_version_info(DerivativesToRefined self) -> VersionInfo"""
5214  return _IMP_core.DerivativesToRefined_get_version_info(self)
5215  __swig_destroy__ = _IMP_core.delete_DerivativesToRefined
5216 
5217  def __str__(self):
5218  r"""__str__(DerivativesToRefined self) -> std::string"""
5219  return _IMP_core.DerivativesToRefined___str__(self)
5220 
5221  def __repr__(self):
5222  r"""__repr__(DerivativesToRefined self) -> std::string"""
5223  return _IMP_core.DerivativesToRefined___repr__(self)
5224 
5225  @staticmethod
5226  def get_from(o):
5227  return _object_cast_to_DerivativesToRefined(o)
5228 
5229 
5230 # Register DerivativesToRefined in _IMP_core:
5231 _IMP_core.DerivativesToRefined_swigregister(DerivativesToRefined)
5232 class DiameterRestraint(IMP.Restraint):
5233  r"""Proxy of C++ IMP::core::DiameterRestraint class."""
5234 
5235  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5236 
5237  def __init__(self, f, sc, diameter):
5238  r"""__init__(DiameterRestraint self, UnaryFunction f, SingletonContainer sc, IMP::Float diameter) -> DiameterRestraint"""
5239  _IMP_core.DiameterRestraint_swiginit(self, _IMP_core.new_DiameterRestraint(f, sc, diameter))
5240 
5241  def do_get_inputs(self):
5242  r"""do_get_inputs(DiameterRestraint self) -> IMP::ModelObjectsTemp"""
5243  return _IMP_core.DiameterRestraint_do_get_inputs(self)
5244 
5245  def get_version_info(self):
5246  r"""get_version_info(DiameterRestraint self) -> VersionInfo"""
5247  return _IMP_core.DiameterRestraint_get_version_info(self)
5248  __swig_destroy__ = _IMP_core.delete_DiameterRestraint
5249 
5250  def do_create_decomposition(self):
5251  r"""do_create_decomposition(DiameterRestraint self) -> IMP::Restraints"""
5252  return _IMP_core.DiameterRestraint_do_create_decomposition(self)
5253 
5254  def do_create_current_decomposition(self):
5255  r"""do_create_current_decomposition(DiameterRestraint self) -> IMP::Restraints"""
5256  return _IMP_core.DiameterRestraint_do_create_current_decomposition(self)
5257 
5258  def __str__(self):
5259  r"""__str__(DiameterRestraint self) -> std::string"""
5260  return _IMP_core.DiameterRestraint___str__(self)
5261 
5262  def __repr__(self):
5263  r"""__repr__(DiameterRestraint self) -> std::string"""
5264  return _IMP_core.DiameterRestraint___repr__(self)
5265 
5266  @staticmethod
5267  def get_from(o):
5268  return _object_cast_to_DiameterRestraint(o)
5269 
5270 
5271 # Register DiameterRestraint in _IMP_core:
5272 _IMP_core.DiameterRestraint_swigregister(DiameterRestraint)
5273 class Transform(IMP.SingletonModifier):
5274  r"""Proxy of C++ IMP::core::Transform class."""
5275 
5276  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5277 
5278  def __init__(self, *args):
5279  r"""
5280  __init__(Transform self, Transformation3D t, bool ignore_non_xyz=False) -> Transform
5281  __init__(Transform self) -> Transform
5282  """
5283  _IMP_core.Transform_swiginit(self, _IMP_core.new_Transform(*args))
5284 
5285  def do_get_inputs(self, m, pis):
5286  r"""do_get_inputs(Transform self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5287  return _IMP_core.Transform_do_get_inputs(self, m, pis)
5288 
5289  def do_get_outputs(self, m, pis):
5290  r"""do_get_outputs(Transform self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5291  return _IMP_core.Transform_do_get_outputs(self, m, pis)
5292 
5293  def get_version_info(self):
5294  r"""get_version_info(Transform self) -> VersionInfo"""
5295  return _IMP_core.Transform_get_version_info(self)
5296  __swig_destroy__ = _IMP_core.delete_Transform
5297 
5298  def __str__(self):
5299  r"""__str__(Transform self) -> std::string"""
5300  return _IMP_core.Transform___str__(self)
5301 
5302  def __repr__(self):
5303  r"""__repr__(Transform self) -> std::string"""
5304  return _IMP_core.Transform___repr__(self)
5305 
5306  @staticmethod
5307  def get_from(o):
5308  return _object_cast_to_Transform(o)
5309 
5310 
5311  def _get_as_binary(self):
5312  r"""_get_as_binary(Transform self) -> PyObject *"""
5313  return _IMP_core.Transform__get_as_binary(self)
5314 
5315  def _set_from_binary(self, p):
5316  r"""_set_from_binary(Transform self, PyObject * p)"""
5317  return _IMP_core.Transform__set_from_binary(self, p)
5318 
5319  def __getstate__(self):
5320  p = self._get_as_binary()
5321  if len(self.__dict__) > 1:
5322  d = self.__dict__.copy()
5323  del d['this']
5324  p = (d, p)
5325  return p
5326 
5327  def __setstate__(self, p):
5328  if not hasattr(self, 'this'):
5329  self.__init__()
5330  if isinstance(p, tuple):
5331  d, p = p
5332  self.__dict__.update(d)
5333  return self._set_from_binary(p)
5334 
5335 
5336 # Register Transform in _IMP_core:
5337 _IMP_core.Transform_swigregister(Transform)
5338 class Reference(IMP.Decorator):
5339  r"""Proxy of C++ IMP::core::Reference class."""
5340 
5341  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5342 
5343  def __init__(self, *args):
5344  r"""
5345  __init__(Reference self) -> Reference
5346  __init__(Reference self, Model m, ParticleIndex id) -> Reference
5347  __init__(Reference self, _ParticleAdaptor d) -> Reference
5348  """
5349  _IMP_core.Reference_swiginit(self, _IMP_core.new_Reference(*args))
5350 
5351  def show(self, *args):
5352  r"""show(Reference self, _ostream out=std::cout)"""
5353  return _IMP_core.Reference_show(self, *args)
5354 
5355  @staticmethod
5356  def setup_particle(*args):
5357  r"""
5358  setup_particle(Model m, ParticleIndex pi, _ParticleIndexAdaptor reference) -> Reference
5359  setup_particle(_ParticleAdaptor pa, _ParticleIndexAdaptor reference) -> Reference
5360  """
5361  return _IMP_core.Reference_setup_particle(*args)
5362 
5363  def get_reference_particle(self):
5364  r"""get_reference_particle(Reference self) -> Particle"""
5365  return _IMP_core.Reference_get_reference_particle(self)
5366 
5367  @staticmethod
5368  def get_is_setup(*args):
5369  r"""
5370  get_is_setup(_ParticleAdaptor p) -> bool
5371  get_is_setup(Model m, ParticleIndex pi) -> bool
5372  """
5373  return _IMP_core.Reference_get_is_setup(*args)
5374 
5375  @staticmethod
5376  def get_reference_key():
5377  r"""get_reference_key() -> ParticleIndexKey"""
5378  return _IMP_core.Reference_get_reference_key()
5379 
5380  def add_attribute(self, *args):
5381  r"""
5382  add_attribute(Reference self, FloatKey k, IMP::Float v, bool opt)
5383  add_attribute(Reference self, FloatKey a0, IMP::Float a1)
5384  add_attribute(Reference self, IntKey a0, IMP::Int a1)
5385  add_attribute(Reference self, FloatsKey a0, IMP::Floats a1)
5386  add_attribute(Reference self, IntsKey a0, IMP::Ints a1)
5387  add_attribute(Reference self, StringKey a0, IMP::String a1)
5388  add_attribute(Reference self, ParticleIndexKey a0, Particle a1)
5389  add_attribute(Reference self, ObjectKey a0, Object a1)
5390  add_attribute(Reference self, SparseFloatKey a0, IMP::Float a1)
5391  add_attribute(Reference self, SparseIntKey a0, IMP::Int a1)
5392  add_attribute(Reference self, SparseStringKey a0, IMP::String a1)
5393  add_attribute(Reference self, SparseParticleIndexKey a0, ParticleIndex a1)
5394  """
5395  return _IMP_core.Reference_add_attribute(self, *args)
5396 
5397  def get_value(self, *args):
5398  r"""
5399  get_value(Reference self, FloatKey a0) -> IMP::Float
5400  get_value(Reference self, IntKey a0) -> IMP::Int
5401  get_value(Reference self, FloatsKey a0) -> IMP::Floats
5402  get_value(Reference self, IntsKey a0) -> IMP::Ints
5403  get_value(Reference self, StringKey a0) -> IMP::String
5404  get_value(Reference self, ParticleIndexKey a0) -> Particle
5405  get_value(Reference self, ObjectKey a0) -> Object
5406  get_value(Reference self, SparseFloatKey a0) -> IMP::Float
5407  get_value(Reference self, SparseIntKey a0) -> IMP::Int
5408  get_value(Reference self, SparseStringKey a0) -> IMP::String
5409  get_value(Reference self, SparseParticleIndexKey a0) -> ParticleIndex
5410  """
5411  return _IMP_core.Reference_get_value(self, *args)
5412 
5413  def set_value(self, *args):
5414  r"""
5415  set_value(Reference self, FloatKey a0, IMP::Float a1)
5416  set_value(Reference self, IntKey a0, IMP::Int a1)
5417  set_value(Reference self, FloatsKey a0, IMP::Floats a1)
5418  set_value(Reference self, IntsKey a0, IMP::Ints a1)
5419  set_value(Reference self, StringKey a0, IMP::String a1)
5420  set_value(Reference self, ParticleIndexKey a0, Particle a1)
5421  set_value(Reference self, ObjectKey a0, Object a1)
5422  set_value(Reference self, SparseFloatKey a0, IMP::Float a1)
5423  set_value(Reference self, SparseIntKey a0, IMP::Int a1)
5424  set_value(Reference self, SparseStringKey a0, IMP::String a1)
5425  set_value(Reference self, SparseParticleIndexKey a0, ParticleIndex a1)
5426  """
5427  return _IMP_core.Reference_set_value(self, *args)
5428 
5429  def remove_attribute(self, *args):
5430  r"""
5431  remove_attribute(Reference self, FloatKey a0)
5432  remove_attribute(Reference self, IntKey a0)
5433  remove_attribute(Reference self, FloatsKey a0)
5434  remove_attribute(Reference self, IntsKey a0)
5435  remove_attribute(Reference self, StringKey a0)
5436  remove_attribute(Reference self, ParticleIndexKey a0)
5437  remove_attribute(Reference self, ObjectKey a0)
5438  remove_attribute(Reference self, SparseFloatKey a0)
5439  remove_attribute(Reference self, SparseIntKey a0)
5440  remove_attribute(Reference self, SparseStringKey a0)
5441  remove_attribute(Reference self, SparseParticleIndexKey a0)
5442  """
5443  return _IMP_core.Reference_remove_attribute(self, *args)
5444 
5445  def has_attribute(self, *args):
5446  r"""
5447  has_attribute(Reference self, FloatKey a0) -> bool
5448  has_attribute(Reference self, IntKey a0) -> bool
5449  has_attribute(Reference self, FloatsKey a0) -> bool
5450  has_attribute(Reference self, IntsKey a0) -> bool
5451  has_attribute(Reference self, StringKey a0) -> bool
5452  has_attribute(Reference self, ParticleIndexKey a0) -> bool
5453  has_attribute(Reference self, ObjectKey a0) -> bool
5454  has_attribute(Reference self, SparseFloatKey a0) -> bool
5455  has_attribute(Reference self, SparseIntKey a0) -> bool
5456  has_attribute(Reference self, SparseStringKey a0) -> bool
5457  has_attribute(Reference self, SparseParticleIndexKey a0) -> bool
5458  """
5459  return _IMP_core.Reference_has_attribute(self, *args)
5460 
5461  def get_derivative(self, a0):
5462  r"""get_derivative(Reference self, FloatKey a0) -> double"""
5463  return _IMP_core.Reference_get_derivative(self, a0)
5464 
5465  def get_name(self):
5466  r"""get_name(Reference self) -> std::string"""
5467  return _IMP_core.Reference_get_name(self)
5468 
5469  def clear_caches(self):
5470  r"""clear_caches(Reference self)"""
5471  return _IMP_core.Reference_clear_caches(self)
5472 
5473  def set_name(self, a0):
5474  r"""set_name(Reference self, std::string a0)"""
5475  return _IMP_core.Reference_set_name(self, a0)
5476 
5477  def set_check_level(self, a0):
5478  r"""set_check_level(Reference self, IMP::CheckLevel a0)"""
5479  return _IMP_core.Reference_set_check_level(self, a0)
5480 
5481  def add_to_derivative(self, a0, a1, a2):
5482  r"""add_to_derivative(Reference self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
5483  return _IMP_core.Reference_add_to_derivative(self, a0, a1, a2)
5484 
5485  def set_is_optimized(self, a0, a1):
5486  r"""set_is_optimized(Reference self, FloatKey a0, bool a1)"""
5487  return _IMP_core.Reference_set_is_optimized(self, a0, a1)
5488 
5489  def get_is_optimized(self, a0):
5490  r"""get_is_optimized(Reference self, FloatKey a0) -> bool"""
5491  return _IMP_core.Reference_get_is_optimized(self, a0)
5492 
5493  def get_check_level(self):
5494  r"""get_check_level(Reference self) -> IMP::CheckLevel"""
5495  return _IMP_core.Reference_get_check_level(self)
5496 
5497  def __eq__(self, *args):
5498  r"""
5499  __eq__(Reference self, Reference o) -> bool
5500  __eq__(Reference self, Particle d) -> bool
5501  """
5502  return _IMP_core.Reference___eq__(self, *args)
5503 
5504  def __ne__(self, *args):
5505  r"""
5506  __ne__(Reference self, Reference o) -> bool
5507  __ne__(Reference self, Particle d) -> bool
5508  """
5509  return _IMP_core.Reference___ne__(self, *args)
5510 
5511  def __le__(self, *args):
5512  r"""
5513  __le__(Reference self, Reference o) -> bool
5514  __le__(Reference self, Particle d) -> bool
5515  """
5516  return _IMP_core.Reference___le__(self, *args)
5517 
5518  def __lt__(self, *args):
5519  r"""
5520  __lt__(Reference self, Reference o) -> bool
5521  __lt__(Reference self, Particle d) -> bool
5522  """
5523  return _IMP_core.Reference___lt__(self, *args)
5524 
5525  def __ge__(self, *args):
5526  r"""
5527  __ge__(Reference self, Reference o) -> bool
5528  __ge__(Reference self, Particle d) -> bool
5529  """
5530  return _IMP_core.Reference___ge__(self, *args)
5531 
5532  def __gt__(self, *args):
5533  r"""
5534  __gt__(Reference self, Reference o) -> bool
5535  __gt__(Reference self, Particle d) -> bool
5536  """
5537  return _IMP_core.Reference___gt__(self, *args)
5538 
5539  def __hash__(self):
5540  r"""__hash__(Reference self) -> std::size_t"""
5541  return _IMP_core.Reference___hash__(self)
5542 
5543  def __str__(self):
5544  r"""__str__(Reference self) -> std::string"""
5545  return _IMP_core.Reference___str__(self)
5546 
5547  def __repr__(self):
5548  r"""__repr__(Reference self) -> std::string"""
5549  return _IMP_core.Reference___repr__(self)
5550 
5551  def _get_as_binary(self):
5552  r"""_get_as_binary(Reference self) -> PyObject *"""
5553  return _IMP_core.Reference__get_as_binary(self)
5554 
5555  def _set_from_binary(self, p):
5556  r"""_set_from_binary(Reference self, PyObject * p)"""
5557  return _IMP_core.Reference__set_from_binary(self, p)
5558 
5559  def __getstate__(self):
5560  p = self._get_as_binary()
5561  if len(self.__dict__) > 1:
5562  d = self.__dict__.copy()
5563  del d['this']
5564  p = (d, p)
5565  return p
5566 
5567  def __setstate__(self, p):
5568  if not hasattr(self, 'this'):
5569  self.__init__()
5570  if isinstance(p, tuple):
5571  d, p = p
5572  self.__dict__.update(d)
5573  return self._set_from_binary(p)
5574 
5575  __swig_destroy__ = _IMP_core.delete_Reference
5576 
5577 # Register Reference in _IMP_core:
5578 _IMP_core.Reference_swigregister(Reference)
5579 class TransformationAndReflectionSymmetry(IMP.SingletonModifier):
5580  r"""Proxy of C++ IMP::core::TransformationAndReflectionSymmetry class."""
5581 
5582  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5583 
5584  def __init__(self, t, r):
5585  r"""__init__(TransformationAndReflectionSymmetry self, Transformation3D t, Reflection3D r) -> TransformationAndReflectionSymmetry"""
5586  _IMP_core.TransformationAndReflectionSymmetry_swiginit(self, _IMP_core.new_TransformationAndReflectionSymmetry(t, r))
5587 
5588  def do_get_inputs(self, m, pis):
5589  r"""do_get_inputs(TransformationAndReflectionSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5590  return _IMP_core.TransformationAndReflectionSymmetry_do_get_inputs(self, m, pis)
5591 
5592  def do_get_outputs(self, m, pis):
5593  r"""do_get_outputs(TransformationAndReflectionSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5594  return _IMP_core.TransformationAndReflectionSymmetry_do_get_outputs(self, m, pis)
5595 
5596  def get_version_info(self):
5597  r"""get_version_info(TransformationAndReflectionSymmetry self) -> VersionInfo"""
5598  return _IMP_core.TransformationAndReflectionSymmetry_get_version_info(self)
5599  __swig_destroy__ = _IMP_core.delete_TransformationAndReflectionSymmetry
5600 
5601  def __str__(self):
5602  r"""__str__(TransformationAndReflectionSymmetry self) -> std::string"""
5603  return _IMP_core.TransformationAndReflectionSymmetry___str__(self)
5604 
5605  def __repr__(self):
5606  r"""__repr__(TransformationAndReflectionSymmetry self) -> std::string"""
5607  return _IMP_core.TransformationAndReflectionSymmetry___repr__(self)
5608 
5609  @staticmethod
5610  def get_from(o):
5611  return _object_cast_to_TransformationAndReflectionSymmetry(o)
5612 
5613 
5614 # Register TransformationAndReflectionSymmetry in _IMP_core:
5615 _IMP_core.TransformationAndReflectionSymmetry_swigregister(TransformationAndReflectionSymmetry)
5616 class TransformationSymmetry(IMP.SingletonModifier):
5617  r"""Proxy of C++ IMP::core::TransformationSymmetry class."""
5618 
5619  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5620 
5621  def __init__(self, *args):
5622  r"""
5623  __init__(TransformationSymmetry self, Transformation3D t) -> TransformationSymmetry
5624  __init__(TransformationSymmetry self, ParticleIndex rb_pi) -> TransformationSymmetry
5625  """
5626  _IMP_core.TransformationSymmetry_swiginit(self, _IMP_core.new_TransformationSymmetry(*args))
5627 
5628  def get_transformation(self):
5629  r"""get_transformation(TransformationSymmetry self) -> Transformation3D"""
5630  return _IMP_core.TransformationSymmetry_get_transformation(self)
5631 
5632  def set_transformation(self, t):
5633  r"""set_transformation(TransformationSymmetry self, Transformation3D t)"""
5634  return _IMP_core.TransformationSymmetry_set_transformation(self, t)
5635 
5636  def do_get_inputs(self, m, pis):
5637  r"""do_get_inputs(TransformationSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5638  return _IMP_core.TransformationSymmetry_do_get_inputs(self, m, pis)
5639 
5640  def do_get_outputs(self, m, pis):
5641  r"""do_get_outputs(TransformationSymmetry self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5642  return _IMP_core.TransformationSymmetry_do_get_outputs(self, m, pis)
5643 
5644  def get_version_info(self):
5645  r"""get_version_info(TransformationSymmetry self) -> VersionInfo"""
5646  return _IMP_core.TransformationSymmetry_get_version_info(self)
5647  __swig_destroy__ = _IMP_core.delete_TransformationSymmetry
5648 
5649  def __str__(self):
5650  r"""__str__(TransformationSymmetry self) -> std::string"""
5651  return _IMP_core.TransformationSymmetry___str__(self)
5652 
5653  def __repr__(self):
5654  r"""__repr__(TransformationSymmetry self) -> std::string"""
5655  return _IMP_core.TransformationSymmetry___repr__(self)
5656 
5657  @staticmethod
5658  def get_from(o):
5659  return _object_cast_to_TransformationSymmetry(o)
5660 
5661 
5662 # Register TransformationSymmetry in _IMP_core:
5663 _IMP_core.TransformationSymmetry_swigregister(TransformationSymmetry)
5664 class TransformationSymmetryMover(MonteCarloMover):
5665  r"""Proxy of C++ IMP::core::TransformationSymmetryMover class."""
5666 
5667  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5668 
5669  def __init__(self, m, symm, pivot, max_translation, max_rotation):
5670  r"""__init__(TransformationSymmetryMover self, Model m, TransformationSymmetry symm, ParticleIndex pivot, IMP::Float max_translation, IMP::Float max_rotation) -> TransformationSymmetryMover"""
5671  _IMP_core.TransformationSymmetryMover_swiginit(self, _IMP_core.new_TransformationSymmetryMover(m, symm, pivot, max_translation, max_rotation))
5672 
5673  def set_maximum_translation(self, mt):
5674  r"""set_maximum_translation(TransformationSymmetryMover self, IMP::Float mt)"""
5675  return _IMP_core.TransformationSymmetryMover_set_maximum_translation(self, mt)
5676 
5677  def set_maximum_rotation(self, mr):
5678  r"""set_maximum_rotation(TransformationSymmetryMover self, IMP::Float mr)"""
5679  return _IMP_core.TransformationSymmetryMover_set_maximum_rotation(self, mr)
5680 
5681  def get_maximum_translation(self):
5682  r"""get_maximum_translation(TransformationSymmetryMover self) -> IMP::Float"""
5683  return _IMP_core.TransformationSymmetryMover_get_maximum_translation(self)
5684 
5685  def get_maximum_rotation(self):
5686  r"""get_maximum_rotation(TransformationSymmetryMover self) -> IMP::Float"""
5687  return _IMP_core.TransformationSymmetryMover_get_maximum_rotation(self)
5688 
5689  def get_version_info(self):
5690  r"""get_version_info(TransformationSymmetryMover self) -> VersionInfo"""
5691  return _IMP_core.TransformationSymmetryMover_get_version_info(self)
5692  __swig_destroy__ = _IMP_core.delete_TransformationSymmetryMover
5693 
5694  def __str__(self):
5695  r"""__str__(TransformationSymmetryMover self) -> std::string"""
5696  return _IMP_core.TransformationSymmetryMover___str__(self)
5697 
5698  def __repr__(self):
5699  r"""__repr__(TransformationSymmetryMover self) -> std::string"""
5700  return _IMP_core.TransformationSymmetryMover___repr__(self)
5701 
5702  @staticmethod
5703  def get_from(o):
5704  return _object_cast_to_TransformationSymmetryMover(o)
5705 
5706 
5707 # Register TransformationSymmetryMover in _IMP_core:
5708 _IMP_core.TransformationSymmetryMover_swigregister(TransformationSymmetryMover)
5709 class DihedralRestraint(IMP.Restraint):
5710  r"""Proxy of C++ IMP::core::DihedralRestraint class."""
5711 
5712  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5713 
5714  def __init__(self, m, score_func, p1, p2, p3, p4):
5715  r"""__init__(DihedralRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3, _ParticleIndexAdaptor p4) -> DihedralRestraint"""
5716  _IMP_core.DihedralRestraint_swiginit(self, _IMP_core.new_DihedralRestraint(m, score_func, p1, p2, p3, p4))
5717 
5718  def do_get_inputs(self):
5719  r"""do_get_inputs(DihedralRestraint self) -> IMP::ModelObjectsTemp"""
5720  return _IMP_core.DihedralRestraint_do_get_inputs(self)
5721 
5722  def get_version_info(self):
5723  r"""get_version_info(DihedralRestraint self) -> VersionInfo"""
5724  return _IMP_core.DihedralRestraint_get_version_info(self)
5725  __swig_destroy__ = _IMP_core.delete_DihedralRestraint
5726 
5727  def __str__(self):
5728  r"""__str__(DihedralRestraint self) -> std::string"""
5729  return _IMP_core.DihedralRestraint___str__(self)
5730 
5731  def __repr__(self):
5732  r"""__repr__(DihedralRestraint self) -> std::string"""
5733  return _IMP_core.DihedralRestraint___repr__(self)
5734 
5735  @staticmethod
5736  def get_from(o):
5737  return _object_cast_to_DihedralRestraint(o)
5738 
5739 
5740 # Register DihedralRestraint in _IMP_core:
5741 _IMP_core.DihedralRestraint_swigregister(DihedralRestraint)
5742 class DistancePairScore(IMP.PairScore):
5743  r"""Proxy of C++ IMP::core::DistancePairScore class."""
5744 
5745  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5746 
5747  def __init__(self, *args):
5748  r"""
5749  __init__(DistancePairScore self, UnaryFunction uf, std::string name="DistancePairScore%1%") -> DistancePairScore
5750  __init__(DistancePairScore self) -> DistancePairScore
5751  """
5752  _IMP_core.DistancePairScore_swiginit(self, _IMP_core.new_DistancePairScore(*args))
5753 
5754  def do_get_inputs(self, m, pis):
5755  r"""do_get_inputs(DistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5756  return _IMP_core.DistancePairScore_do_get_inputs(self, m, pis)
5757 
5758  def get_version_info(self):
5759  r"""get_version_info(DistancePairScore self) -> VersionInfo"""
5760  return _IMP_core.DistancePairScore_get_version_info(self)
5761  __swig_destroy__ = _IMP_core.delete_DistancePairScore
5762 
5763  def __str__(self):
5764  r"""__str__(DistancePairScore self) -> std::string"""
5765  return _IMP_core.DistancePairScore___str__(self)
5766 
5767  def __repr__(self):
5768  r"""__repr__(DistancePairScore self) -> std::string"""
5769  return _IMP_core.DistancePairScore___repr__(self)
5770 
5771  @staticmethod
5772  def get_from(o):
5773  return _object_cast_to_DistancePairScore(o)
5774 
5775 
5776  def _get_as_binary(self):
5777  r"""_get_as_binary(DistancePairScore self) -> PyObject *"""
5778  return _IMP_core.DistancePairScore__get_as_binary(self)
5779 
5780  def _set_from_binary(self, p):
5781  r"""_set_from_binary(DistancePairScore self, PyObject * p)"""
5782  return _IMP_core.DistancePairScore__set_from_binary(self, p)
5783 
5784  def __getstate__(self):
5785  p = self._get_as_binary()
5786  if len(self.__dict__) > 1:
5787  d = self.__dict__.copy()
5788  del d['this']
5789  p = (d, p)
5790  return p
5791 
5792  def __setstate__(self, p):
5793  if not hasattr(self, 'this'):
5794  self.__init__()
5795  if isinstance(p, tuple):
5796  d, p = p
5797  self.__dict__.update(d)
5798  return self._set_from_binary(p)
5799 
5800 
5801 # Register DistancePairScore in _IMP_core:
5802 _IMP_core.DistancePairScore_swigregister(DistancePairScore)
5803 class HarmonicDistancePairScore(IMP.PairScore):
5804  r"""Proxy of C++ IMP::core::HarmonicDistancePairScore class."""
5805 
5806  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5807 
5808  def __init__(self, *args):
5809  r"""
5810  __init__(HarmonicDistancePairScore self, double x0, double k, std::string name="HarmonicDistancePairScore%1%") -> HarmonicDistancePairScore
5811  __init__(HarmonicDistancePairScore self) -> HarmonicDistancePairScore
5812  """
5813  _IMP_core.HarmonicDistancePairScore_swiginit(self, _IMP_core.new_HarmonicDistancePairScore(*args))
5814 
5815  def do_get_inputs(self, m, pis):
5816  r"""do_get_inputs(HarmonicDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5817  return _IMP_core.HarmonicDistancePairScore_do_get_inputs(self, m, pis)
5818 
5819  def get_version_info(self):
5820  r"""get_version_info(HarmonicDistancePairScore self) -> VersionInfo"""
5821  return _IMP_core.HarmonicDistancePairScore_get_version_info(self)
5822  __swig_destroy__ = _IMP_core.delete_HarmonicDistancePairScore
5823 
5824  def __str__(self):
5825  r"""__str__(HarmonicDistancePairScore self) -> std::string"""
5826  return _IMP_core.HarmonicDistancePairScore___str__(self)
5827 
5828  def __repr__(self):
5829  r"""__repr__(HarmonicDistancePairScore self) -> std::string"""
5830  return _IMP_core.HarmonicDistancePairScore___repr__(self)
5831 
5832  @staticmethod
5833  def get_from(o):
5834  return _object_cast_to_HarmonicDistancePairScore(o)
5835 
5836 
5837  def _get_as_binary(self):
5838  r"""_get_as_binary(HarmonicDistancePairScore self) -> PyObject *"""
5839  return _IMP_core.HarmonicDistancePairScore__get_as_binary(self)
5840 
5841  def _set_from_binary(self, p):
5842  r"""_set_from_binary(HarmonicDistancePairScore self, PyObject * p)"""
5843  return _IMP_core.HarmonicDistancePairScore__set_from_binary(self, p)
5844 
5845  def __getstate__(self):
5846  p = self._get_as_binary()
5847  if len(self.__dict__) > 1:
5848  d = self.__dict__.copy()
5849  del d['this']
5850  p = (d, p)
5851  return p
5852 
5853  def __setstate__(self, p):
5854  if not hasattr(self, 'this'):
5855  self.__init__()
5856  if isinstance(p, tuple):
5857  d, p = p
5858  self.__dict__.update(d)
5859  return self._set_from_binary(p)
5860 
5861 
5862 # Register HarmonicDistancePairScore in _IMP_core:
5863 _IMP_core.HarmonicDistancePairScore_swigregister(HarmonicDistancePairScore)
5864 class DistanceRestraint(IMP.Restraint):
5865  r"""Proxy of C++ IMP::core::DistanceRestraint class."""
5866 
5867  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5868 
5869  def __init__(self, *args):
5870  r"""
5871  __init__(DistanceRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor a, _ParticleIndexAdaptor b, std::string name="DistanceRestraint %1%") -> DistanceRestraint
5872  __init__(DistanceRestraint self) -> DistanceRestraint
5873  """
5874  _IMP_core.DistanceRestraint_swiginit(self, _IMP_core.new_DistanceRestraint(*args))
5875 
5876  def get_version_info(self):
5877  r"""get_version_info(DistanceRestraint self) -> VersionInfo"""
5878  return _IMP_core.DistanceRestraint_get_version_info(self)
5879  __swig_destroy__ = _IMP_core.delete_DistanceRestraint
5880 
5881  def __str__(self):
5882  r"""__str__(DistanceRestraint self) -> std::string"""
5883  return _IMP_core.DistanceRestraint___str__(self)
5884 
5885  def __repr__(self):
5886  r"""__repr__(DistanceRestraint self) -> std::string"""
5887  return _IMP_core.DistanceRestraint___repr__(self)
5888 
5889  @staticmethod
5890  def get_from(o):
5891  return _object_cast_to_DistanceRestraint(o)
5892 
5893 
5894  def _get_as_binary(self):
5895  r"""_get_as_binary(DistanceRestraint self) -> PyObject *"""
5896  return _IMP_core.DistanceRestraint__get_as_binary(self)
5897 
5898  def _set_from_binary(self, p):
5899  r"""_set_from_binary(DistanceRestraint self, PyObject * p)"""
5900  return _IMP_core.DistanceRestraint__set_from_binary(self, p)
5901 
5902  def __getstate__(self):
5903  p = self._get_as_binary()
5904  if len(self.__dict__) > 1:
5905  d = self.__dict__.copy()
5906  del d['this']
5907  p = (d, p)
5908  return p
5909 
5910  def __setstate__(self, p):
5911  if not hasattr(self, 'this'):
5912  self.__init__()
5913  if isinstance(p, tuple):
5914  d, p = p
5915  self.__dict__.update(d)
5916  return self._set_from_binary(p)
5917 
5918 
5919 # Register DistanceRestraint in _IMP_core:
5920 _IMP_core.DistanceRestraint_swigregister(DistanceRestraint)
5921 class SphereDistanceToSingletonScore(IMP.SingletonScore):
5922  r"""Proxy of C++ IMP::core::SphereDistanceToSingletonScore class."""
5923 
5924  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5925 
5926  def __init__(self, f, pt):
5927  r"""__init__(SphereDistanceToSingletonScore self, UnaryFunction f, Vector3D pt) -> SphereDistanceToSingletonScore"""
5928  _IMP_core.SphereDistanceToSingletonScore_swiginit(self, _IMP_core.new_SphereDistanceToSingletonScore(f, pt))
5929 
5930  def do_get_inputs(self, m, pis):
5931  r"""do_get_inputs(SphereDistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
5932  return _IMP_core.SphereDistanceToSingletonScore_do_get_inputs(self, m, pis)
5933 
5934  def get_version_info(self):
5935  r"""get_version_info(SphereDistanceToSingletonScore self) -> VersionInfo"""
5936  return _IMP_core.SphereDistanceToSingletonScore_get_version_info(self)
5937  __swig_destroy__ = _IMP_core.delete_SphereDistanceToSingletonScore
5938 
5939  def __str__(self):
5940  r"""__str__(SphereDistanceToSingletonScore self) -> std::string"""
5941  return _IMP_core.SphereDistanceToSingletonScore___str__(self)
5942 
5943  def __repr__(self):
5944  r"""__repr__(SphereDistanceToSingletonScore self) -> std::string"""
5945  return _IMP_core.SphereDistanceToSingletonScore___repr__(self)
5946 
5947  @staticmethod
5948  def get_from(o):
5949  return _object_cast_to_SphereDistanceToSingletonScore(o)
5950 
5951 
5952 # Register SphereDistanceToSingletonScore in _IMP_core:
5953 _IMP_core.SphereDistanceToSingletonScore_swigregister(SphereDistanceToSingletonScore)
5954 class ExcludedVolumeRestraint(IMP.Restraint):
5955  r"""Proxy of C++ IMP::core::ExcludedVolumeRestraint class."""
5956 
5957  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
5958 
5959  def __init__(self, *args):
5960  r"""__init__(ExcludedVolumeRestraint self, _SingletonContainerAdaptor sc, double k=1, double slack=10, std::string name="ExcludedVolumeRestraint%1%") -> ExcludedVolumeRestraint"""
5961  _IMP_core.ExcludedVolumeRestraint_swiginit(self, _IMP_core.new_ExcludedVolumeRestraint(*args))
5962 
5963  def do_get_inputs(self):
5964  r"""do_get_inputs(ExcludedVolumeRestraint self) -> IMP::ModelObjectsTemp"""
5965  return _IMP_core.ExcludedVolumeRestraint_do_get_inputs(self)
5966 
5967  def get_version_info(self):
5968  r"""get_version_info(ExcludedVolumeRestraint self) -> VersionInfo"""
5969  return _IMP_core.ExcludedVolumeRestraint_get_version_info(self)
5970  __swig_destroy__ = _IMP_core.delete_ExcludedVolumeRestraint
5971 
5972  def do_create_decomposition(self):
5973  r"""do_create_decomposition(ExcludedVolumeRestraint self) -> IMP::Restraints"""
5974  return _IMP_core.ExcludedVolumeRestraint_do_create_decomposition(self)
5975 
5976  def do_create_current_decomposition(self):
5977  r"""do_create_current_decomposition(ExcludedVolumeRestraint self) -> IMP::Restraints"""
5978  return _IMP_core.ExcludedVolumeRestraint_do_create_current_decomposition(self)
5979 
5980  def get_indexes(self):
5981  r"""get_indexes(ExcludedVolumeRestraint self) -> IMP::ParticleIndexPairs const &"""
5982  return _IMP_core.ExcludedVolumeRestraint_get_indexes(self)
5983  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)
5984  def __set_pair_filters(self, obj): IMP._list_util.set_varlist(self.pair_filters, obj)
5985  def __del_pair_filters(self): IMP._list_util.del_varlist(self.pair_filters)
5986  pair_filters = property(__get_pair_filters, __set_pair_filters, __del_pair_filters, doc="List of ##ucnames")
5987 
5988  def remove_pair_filter(self, d):
5989  r"""remove_pair_filter(ExcludedVolumeRestraint self, PairPredicate d)"""
5990  return _IMP_core.ExcludedVolumeRestraint_remove_pair_filter(self, d)
5991 
5992  def _python_index_pair_filter(self, d, start, stop):
5993  r"""_python_index_pair_filter(ExcludedVolumeRestraint self, PairPredicate d, unsigned int start, unsigned int stop) -> unsigned int"""
5994  return _IMP_core.ExcludedVolumeRestraint__python_index_pair_filter(self, d, start, stop)
5995 
5996  def remove_pair_filters(self, d):
5997  r"""remove_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & d)"""
5998  return _IMP_core.ExcludedVolumeRestraint_remove_pair_filters(self, d)
5999 
6000  def set_pair_filters(self, ps):
6001  r"""set_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & ps)"""
6002  return _IMP_core.ExcludedVolumeRestraint_set_pair_filters(self, ps)
6003 
6004  def set_pair_filters_order(self, objs):
6005  r"""set_pair_filters_order(ExcludedVolumeRestraint self, IMP::PairPredicates const & objs)"""
6006  return _IMP_core.ExcludedVolumeRestraint_set_pair_filters_order(self, objs)
6007 
6008  def add_pair_filter(self, obj):
6009  r"""add_pair_filter(ExcludedVolumeRestraint self, PairPredicate obj) -> unsigned int"""
6010  return _IMP_core.ExcludedVolumeRestraint_add_pair_filter(self, obj)
6011 
6012  def add_pair_filters(self, objs):
6013  r"""add_pair_filters(ExcludedVolumeRestraint self, IMP::PairPredicates const & objs)"""
6014  return _IMP_core.ExcludedVolumeRestraint_add_pair_filters(self, objs)
6015 
6016  def clear_pair_filters(self):
6017  r"""clear_pair_filters(ExcludedVolumeRestraint self)"""
6018  return _IMP_core.ExcludedVolumeRestraint_clear_pair_filters(self)
6019 
6020  def get_number_of_pair_filters(self):
6021  r"""get_number_of_pair_filters(ExcludedVolumeRestraint self) -> unsigned int"""
6022  return _IMP_core.ExcludedVolumeRestraint_get_number_of_pair_filters(self)
6023 
6024  def get_has_pair_filters(self):
6025  r"""get_has_pair_filters(ExcludedVolumeRestraint self) -> bool"""
6026  return _IMP_core.ExcludedVolumeRestraint_get_has_pair_filters(self)
6027 
6028  def get_pair_filter(self, i):
6029  r"""get_pair_filter(ExcludedVolumeRestraint self, unsigned int i) -> PairPredicate"""
6030  return _IMP_core.ExcludedVolumeRestraint_get_pair_filter(self, i)
6031 
6032  def get_pair_filters(self):
6033  r"""get_pair_filters(ExcludedVolumeRestraint self) -> IMP::PairPredicates"""
6034  return _IMP_core.ExcludedVolumeRestraint_get_pair_filters(self)
6035 
6036  def erase_pair_filter(self, i):
6037  r"""erase_pair_filter(ExcludedVolumeRestraint self, unsigned int i)"""
6038  return _IMP_core.ExcludedVolumeRestraint_erase_pair_filter(self, i)
6039 
6040  def reserve_pair_filters(self, sz):
6041  r"""reserve_pair_filters(ExcludedVolumeRestraint self, unsigned int sz)"""
6042  return _IMP_core.ExcludedVolumeRestraint_reserve_pair_filters(self, sz)
6043 
6044  def __str__(self):
6045  r"""__str__(ExcludedVolumeRestraint self) -> std::string"""
6046  return _IMP_core.ExcludedVolumeRestraint___str__(self)
6047 
6048  def __repr__(self):
6049  r"""__repr__(ExcludedVolumeRestraint self) -> std::string"""
6050  return _IMP_core.ExcludedVolumeRestraint___repr__(self)
6051 
6052  @staticmethod
6053  def get_from(o):
6054  return _object_cast_to_ExcludedVolumeRestraint(o)
6055 
6056 
6057 # Register ExcludedVolumeRestraint in _IMP_core:
6058 _IMP_core.ExcludedVolumeRestraint_swigregister(ExcludedVolumeRestraint)
6059 class FixedRefiner(IMP.Refiner):
6060  r"""Proxy of C++ IMP::core::FixedRefiner class."""
6061 
6062  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6063 
6064  def __init__(self, *args):
6065  r"""
6066  __init__(FixedRefiner self, IMP::ParticlesTemp const & ps) -> FixedRefiner
6067  __init__(FixedRefiner self, Model m, IMP::ParticleIndexes const & pis) -> FixedRefiner
6068  """
6069  _IMP_core.FixedRefiner_swiginit(self, _IMP_core.new_FixedRefiner(*args))
6070 
6071  def do_get_inputs(self, m, pis):
6072  r"""do_get_inputs(FixedRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6073  return _IMP_core.FixedRefiner_do_get_inputs(self, m, pis)
6074 
6075  def get_version_info(self):
6076  r"""get_version_info(FixedRefiner self) -> VersionInfo"""
6077  return _IMP_core.FixedRefiner_get_version_info(self)
6078  __swig_destroy__ = _IMP_core.delete_FixedRefiner
6079 
6080  def __str__(self):
6081  r"""__str__(FixedRefiner self) -> std::string"""
6082  return _IMP_core.FixedRefiner___str__(self)
6083 
6084  def __repr__(self):
6085  r"""__repr__(FixedRefiner self) -> std::string"""
6086  return _IMP_core.FixedRefiner___repr__(self)
6087 
6088  @staticmethod
6089  def get_from(o):
6090  return _object_cast_to_FixedRefiner(o)
6091 
6092 
6093 # Register FixedRefiner in _IMP_core:
6094 _IMP_core.FixedRefiner_swigregister(FixedRefiner)
6095 class GridClosePairsFinder(ClosePairsFinder):
6096  r"""Proxy of C++ IMP::core::GridClosePairsFinder class."""
6097 
6098  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6099 
6100  def __init__(self):
6101  r"""__init__(GridClosePairsFinder self) -> GridClosePairsFinder"""
6102  _IMP_core.GridClosePairsFinder_swiginit(self, _IMP_core.new_GridClosePairsFinder())
6103 
6104  def get_close_pairs(self, *args):
6105  r"""
6106  get_close_pairs(GridClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
6107  get_close_pairs(GridClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
6108  get_close_pairs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
6109  get_close_pairs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
6110  """
6111  return _IMP_core.GridClosePairsFinder_get_close_pairs(self, *args)
6112 
6113  def do_get_inputs(self, m, pis):
6114  r"""do_get_inputs(GridClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6115  return _IMP_core.GridClosePairsFinder_do_get_inputs(self, m, pis)
6116 
6117  def get_version_info(self):
6118  r"""get_version_info(GridClosePairsFinder self) -> VersionInfo"""
6119  return _IMP_core.GridClosePairsFinder_get_version_info(self)
6120  __swig_destroy__ = _IMP_core.delete_GridClosePairsFinder
6121 
6122  def __str__(self):
6123  r"""__str__(GridClosePairsFinder self) -> std::string"""
6124  return _IMP_core.GridClosePairsFinder___str__(self)
6125 
6126  def __repr__(self):
6127  r"""__repr__(GridClosePairsFinder self) -> std::string"""
6128  return _IMP_core.GridClosePairsFinder___repr__(self)
6129 
6130  @staticmethod
6131  def get_from(o):
6132  return _object_cast_to_GridClosePairsFinder(o)
6133 
6134 
6135  def _get_as_binary(self):
6136  r"""_get_as_binary(GridClosePairsFinder self) -> PyObject *"""
6137  return _IMP_core.GridClosePairsFinder__get_as_binary(self)
6138 
6139  def _set_from_binary(self, p):
6140  r"""_set_from_binary(GridClosePairsFinder self, PyObject * p)"""
6141  return _IMP_core.GridClosePairsFinder__set_from_binary(self, p)
6142 
6143  def __getstate__(self):
6144  p = self._get_as_binary()
6145  if len(self.__dict__) > 1:
6146  d = self.__dict__.copy()
6147  del d['this']
6148  p = (d, p)
6149  return p
6150 
6151  def __setstate__(self, p):
6152  if not hasattr(self, 'this'):
6153  self.__init__()
6154  if isinstance(p, tuple):
6155  d, p = p
6156  self.__dict__.update(d)
6157  return self._set_from_binary(p)
6158 
6159 
6160 # Register GridClosePairsFinder in _IMP_core:
6161 _IMP_core.GridClosePairsFinder_swigregister(GridClosePairsFinder)
6162 class Harmonic(IMP.UnaryFunction):
6163  r"""Proxy of C++ IMP::core::Harmonic class."""
6164 
6165  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6166 
6167  def __init__(self, *args):
6168  r"""
6169  __init__(Harmonic self, IMP::Float mean, IMP::Float k) -> Harmonic
6170  __init__(Harmonic self) -> Harmonic
6171  """
6172  _IMP_core.Harmonic_swiginit(self, _IMP_core.new_Harmonic(*args))
6173 
6174  def get_version_info(self):
6175  r"""get_version_info(Harmonic self) -> VersionInfo"""
6176  return _IMP_core.Harmonic_get_version_info(self)
6177  __swig_destroy__ = _IMP_core.delete_Harmonic
6178 
6179  def get_mean(self):
6180  r"""get_mean(Harmonic self) -> IMP::Float"""
6181  return _IMP_core.Harmonic_get_mean(self)
6182 
6183  def get_k(self):
6184  r"""get_k(Harmonic self) -> IMP::Float"""
6185  return _IMP_core.Harmonic_get_k(self)
6186 
6187  def set_mean(self, mean):
6188  r"""set_mean(Harmonic self, IMP::Float mean)"""
6189  return _IMP_core.Harmonic_set_mean(self, mean)
6190 
6191  def set_k(self, k):
6192  r"""set_k(Harmonic self, IMP::Float k)"""
6193  return _IMP_core.Harmonic_set_k(self, k)
6194 
6195  @staticmethod
6196  def get_k_from_standard_deviation(sd, t=297.15):
6197  r"""get_k_from_standard_deviation(IMP::Float sd, IMP::Float t=297.15) -> IMP::Float"""
6198  return _IMP_core.Harmonic_get_k_from_standard_deviation(sd, t)
6199 
6200  def __str__(self):
6201  r"""__str__(Harmonic self) -> std::string"""
6202  return _IMP_core.Harmonic___str__(self)
6203 
6204  def __repr__(self):
6205  r"""__repr__(Harmonic self) -> std::string"""
6206  return _IMP_core.Harmonic___repr__(self)
6207 
6208  @staticmethod
6209  def get_from(o):
6210  return _object_cast_to_Harmonic(o)
6211 
6212 
6213  def _get_as_binary(self):
6214  r"""_get_as_binary(Harmonic self) -> PyObject *"""
6215  return _IMP_core.Harmonic__get_as_binary(self)
6216 
6217  def _set_from_binary(self, p):
6218  r"""_set_from_binary(Harmonic self, PyObject * p)"""
6219  return _IMP_core.Harmonic__set_from_binary(self, p)
6220 
6221  def __getstate__(self):
6222  p = self._get_as_binary()
6223  if len(self.__dict__) > 1:
6224  d = self.__dict__.copy()
6225  del d['this']
6226  p = (d, p)
6227  return p
6228 
6229  def __setstate__(self, p):
6230  if not hasattr(self, 'this'):
6231  self.__init__()
6232  if isinstance(p, tuple):
6233  d, p = p
6234  self.__dict__.update(d)
6235  return self._set_from_binary(p)
6236 
6237 
6238 # Register Harmonic in _IMP_core:
6239 _IMP_core.Harmonic_swigregister(Harmonic)
6240 class HarmonicWell(IMP.UnaryFunction):
6241  r"""Proxy of C++ IMP::core::HarmonicWell class."""
6242 
6243  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6244 
6245  def __init__(self, well, k):
6246  r"""__init__(HarmonicWell self, IMP::FloatRange const & well, double k) -> HarmonicWell"""
6247  _IMP_core.HarmonicWell_swiginit(self, _IMP_core.new_HarmonicWell(well, k))
6248 
6249  def get_version_info(self):
6250  r"""get_version_info(HarmonicWell self) -> VersionInfo"""
6251  return _IMP_core.HarmonicWell_get_version_info(self)
6252  __swig_destroy__ = _IMP_core.delete_HarmonicWell
6253 
6254  def __str__(self):
6255  r"""__str__(HarmonicWell self) -> std::string"""
6256  return _IMP_core.HarmonicWell___str__(self)
6257 
6258  def __repr__(self):
6259  r"""__repr__(HarmonicWell self) -> std::string"""
6260  return _IMP_core.HarmonicWell___repr__(self)
6261 
6262  @staticmethod
6263  def get_from(o):
6264  return _object_cast_to_HarmonicWell(o)
6265 
6266 
6267 # Register HarmonicWell in _IMP_core:
6268 _IMP_core.HarmonicWell_swigregister(HarmonicWell)
6269 class HarmonicLowerBound(Harmonic):
6270  r"""Proxy of C++ IMP::core::HarmonicLowerBound class."""
6271 
6272  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6273 
6274  def __init__(self, *args):
6275  r"""
6276  __init__(HarmonicLowerBound self, IMP::Float mean, IMP::Float k) -> HarmonicLowerBound
6277  __init__(HarmonicLowerBound self) -> HarmonicLowerBound
6278  """
6279  _IMP_core.HarmonicLowerBound_swiginit(self, _IMP_core.new_HarmonicLowerBound(*args))
6280  __swig_destroy__ = _IMP_core.delete_HarmonicLowerBound
6281 
6282  def __str__(self):
6283  r"""__str__(HarmonicLowerBound self) -> std::string"""
6284  return _IMP_core.HarmonicLowerBound___str__(self)
6285 
6286  def __repr__(self):
6287  r"""__repr__(HarmonicLowerBound self) -> std::string"""
6288  return _IMP_core.HarmonicLowerBound___repr__(self)
6289 
6290  @staticmethod
6291  def get_from(o):
6292  return _object_cast_to_HarmonicLowerBound(o)
6293 
6294 
6295  def _get_as_binary(self):
6296  r"""_get_as_binary(HarmonicLowerBound self) -> PyObject *"""
6297  return _IMP_core.HarmonicLowerBound__get_as_binary(self)
6298 
6299  def _set_from_binary(self, p):
6300  r"""_set_from_binary(HarmonicLowerBound self, PyObject * p)"""
6301  return _IMP_core.HarmonicLowerBound__set_from_binary(self, p)
6302 
6303  def __getstate__(self):
6304  p = self._get_as_binary()
6305  if len(self.__dict__) > 1:
6306  d = self.__dict__.copy()
6307  del d['this']
6308  p = (d, p)
6309  return p
6310 
6311  def __setstate__(self, p):
6312  if not hasattr(self, 'this'):
6313  self.__init__()
6314  if isinstance(p, tuple):
6315  d, p = p
6316  self.__dict__.update(d)
6317  return self._set_from_binary(p)
6318 
6319 
6320 # Register HarmonicLowerBound in _IMP_core:
6321 _IMP_core.HarmonicLowerBound_swigregister(HarmonicLowerBound)
6322 class HarmonicUpperBound(Harmonic):
6323  r"""Proxy of C++ IMP::core::HarmonicUpperBound class."""
6324 
6325  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6326 
6327  def __init__(self, *args):
6328  r"""
6329  __init__(HarmonicUpperBound self, IMP::Float mean, IMP::Float k) -> HarmonicUpperBound
6330  __init__(HarmonicUpperBound self) -> HarmonicUpperBound
6331  """
6332  _IMP_core.HarmonicUpperBound_swiginit(self, _IMP_core.new_HarmonicUpperBound(*args))
6333  __swig_destroy__ = _IMP_core.delete_HarmonicUpperBound
6334 
6335  def __str__(self):
6336  r"""__str__(HarmonicUpperBound self) -> std::string"""
6337  return _IMP_core.HarmonicUpperBound___str__(self)
6338 
6339  def __repr__(self):
6340  r"""__repr__(HarmonicUpperBound self) -> std::string"""
6341  return _IMP_core.HarmonicUpperBound___repr__(self)
6342 
6343  @staticmethod
6344  def get_from(o):
6345  return _object_cast_to_HarmonicUpperBound(o)
6346 
6347 
6348  def _get_as_binary(self):
6349  r"""_get_as_binary(HarmonicUpperBound self) -> PyObject *"""
6350  return _IMP_core.HarmonicUpperBound__get_as_binary(self)
6351 
6352  def _set_from_binary(self, p):
6353  r"""_set_from_binary(HarmonicUpperBound self, PyObject * p)"""
6354  return _IMP_core.HarmonicUpperBound__set_from_binary(self, p)
6355 
6356  def __getstate__(self):
6357  p = self._get_as_binary()
6358  if len(self.__dict__) > 1:
6359  d = self.__dict__.copy()
6360  del d['this']
6361  p = (d, p)
6362  return p
6363 
6364  def __setstate__(self, p):
6365  if not hasattr(self, 'this'):
6366  self.__init__()
6367  if isinstance(p, tuple):
6368  d, p = p
6369  self.__dict__.update(d)
6370  return self._set_from_binary(p)
6371 
6372 
6373 # Register HarmonicUpperBound in _IMP_core:
6374 _IMP_core.HarmonicUpperBound_swigregister(HarmonicUpperBound)
6375 class WeightedSum(IMP.UnaryFunction):
6376  r"""Proxy of C++ IMP::core::WeightedSum class."""
6377 
6378  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6379 
6380  def __init__(self, funcs, weights):
6381  r"""__init__(WeightedSum self, IMP::UnaryFunctions funcs, IMP::Floats weights) -> WeightedSum"""
6382  _IMP_core.WeightedSum_swiginit(self, _IMP_core.new_WeightedSum(funcs, weights))
6383 
6384  def get_function_number(self):
6385  r"""get_function_number(WeightedSum self) -> unsigned int"""
6386  return _IMP_core.WeightedSum_get_function_number(self)
6387 
6388  def set_weights(self, weights):
6389  r"""set_weights(WeightedSum self, IMP::Floats weights)"""
6390  return _IMP_core.WeightedSum_set_weights(self, weights)
6391 
6392  def get_weights(self):
6393  r"""get_weights(WeightedSum self) -> IMP::Floats"""
6394  return _IMP_core.WeightedSum_get_weights(self)
6395 
6396  def get_weight(self, i):
6397  r"""get_weight(WeightedSum self, unsigned int i) -> double"""
6398  return _IMP_core.WeightedSum_get_weight(self, i)
6399 
6400  def get_function(self, i):
6401  r"""get_function(WeightedSum self, unsigned int i) -> UnaryFunction"""
6402  return _IMP_core.WeightedSum_get_function(self, i)
6403 
6404  def get_version_info(self):
6405  r"""get_version_info(WeightedSum self) -> VersionInfo"""
6406  return _IMP_core.WeightedSum_get_version_info(self)
6407  __swig_destroy__ = _IMP_core.delete_WeightedSum
6408 
6409  def __str__(self):
6410  r"""__str__(WeightedSum self) -> std::string"""
6411  return _IMP_core.WeightedSum___str__(self)
6412 
6413  def __repr__(self):
6414  r"""__repr__(WeightedSum self) -> std::string"""
6415  return _IMP_core.WeightedSum___repr__(self)
6416 
6417  @staticmethod
6418  def get_from(o):
6419  return _object_cast_to_WeightedSum(o)
6420 
6421 
6422 # Register WeightedSum in _IMP_core:
6423 _IMP_core.WeightedSum_swigregister(WeightedSum)
6424 class WeightedSumOfExponential(IMP.UnaryFunction):
6425  r"""Proxy of C++ IMP::core::WeightedSumOfExponential class."""
6426 
6427  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6428 
6429  def __init__(self, funcs, weights, denom=1.0):
6430  r"""__init__(WeightedSumOfExponential self, IMP::UnaryFunctions funcs, IMP::Floats weights, IMP::Float denom=1.0) -> WeightedSumOfExponential"""
6431  _IMP_core.WeightedSumOfExponential_swiginit(self, _IMP_core.new_WeightedSumOfExponential(funcs, weights, denom))
6432 
6433  def get_function_number(self):
6434  r"""get_function_number(WeightedSumOfExponential self) -> unsigned int"""
6435  return _IMP_core.WeightedSumOfExponential_get_function_number(self)
6436 
6437  def set_weights(self, weights):
6438  r"""set_weights(WeightedSumOfExponential self, IMP::Floats weights)"""
6439  return _IMP_core.WeightedSumOfExponential_set_weights(self, weights)
6440 
6441  def get_weights(self):
6442  r"""get_weights(WeightedSumOfExponential self) -> IMP::Floats"""
6443  return _IMP_core.WeightedSumOfExponential_get_weights(self)
6444 
6445  def get_weight(self, i):
6446  r"""get_weight(WeightedSumOfExponential self, unsigned int i) -> double"""
6447  return _IMP_core.WeightedSumOfExponential_get_weight(self, i)
6448 
6449  def get_function(self, i):
6450  r"""get_function(WeightedSumOfExponential self, unsigned int i) -> UnaryFunction"""
6451  return _IMP_core.WeightedSumOfExponential_get_function(self, i)
6452 
6453  def set_denominator(self, denom):
6454  r"""set_denominator(WeightedSumOfExponential self, double denom)"""
6455  return _IMP_core.WeightedSumOfExponential_set_denominator(self, denom)
6456 
6457  def get_denominator(self):
6458  r"""get_denominator(WeightedSumOfExponential self) -> double"""
6459  return _IMP_core.WeightedSumOfExponential_get_denominator(self)
6460 
6461  def get_version_info(self):
6462  r"""get_version_info(WeightedSumOfExponential self) -> VersionInfo"""
6463  return _IMP_core.WeightedSumOfExponential_get_version_info(self)
6464  __swig_destroy__ = _IMP_core.delete_WeightedSumOfExponential
6465 
6466  def __str__(self):
6467  r"""__str__(WeightedSumOfExponential self) -> std::string"""
6468  return _IMP_core.WeightedSumOfExponential___str__(self)
6469 
6470  def __repr__(self):
6471  r"""__repr__(WeightedSumOfExponential self) -> std::string"""
6472  return _IMP_core.WeightedSumOfExponential___repr__(self)
6473 
6474  @staticmethod
6475  def get_from(o):
6476  return _object_cast_to_WeightedSumOfExponential(o)
6477 
6478 
6479 # Register WeightedSumOfExponential in _IMP_core:
6480 _IMP_core.WeightedSumOfExponential_swigregister(WeightedSumOfExponential)
6481 class MSConnectivityRestraint(IMP.Restraint):
6482  r"""Proxy of C++ IMP::core::MSConnectivityRestraint class."""
6483 
6484  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6485 
6486  def __init__(self, m, ps, eps=0.1):
6487  r"""__init__(MSConnectivityRestraint self, Model m, PairScore ps, double eps=0.1) -> MSConnectivityRestraint"""
6488  _IMP_core.MSConnectivityRestraint_swiginit(self, _IMP_core.new_MSConnectivityRestraint(m, ps, eps))
6489 
6490  def add_type(self, ps):
6491  r"""add_type(MSConnectivityRestraint self, IMP::ParticlesTemp const & ps) -> unsigned int"""
6492  return _IMP_core.MSConnectivityRestraint_add_type(self, ps)
6493 
6494  def add_composite(self, *args):
6495  r"""
6496  add_composite(MSConnectivityRestraint self, IMP::Ints const & components) -> unsigned int
6497  add_composite(MSConnectivityRestraint self, IMP::Ints const & components, unsigned int parent) -> unsigned int
6498  """
6499  return _IMP_core.MSConnectivityRestraint_add_composite(self, *args)
6500 
6501  def get_connected_pairs(self):
6502  r"""get_connected_pairs(MSConnectivityRestraint self) -> IMP::ParticlePairsTemp"""
6503  return _IMP_core.MSConnectivityRestraint_get_connected_pairs(self)
6504 
6505  def get_pair_score(self):
6506  r"""get_pair_score(MSConnectivityRestraint self) -> PairScore"""
6507  return _IMP_core.MSConnectivityRestraint_get_pair_score(self)
6508 
6509  def do_create_current_decomposition(self):
6510  r"""do_create_current_decomposition(MSConnectivityRestraint self) -> IMP::Restraints"""
6511  return _IMP_core.MSConnectivityRestraint_do_create_current_decomposition(self)
6512 
6513  def do_get_inputs(self):
6514  r"""do_get_inputs(MSConnectivityRestraint self) -> IMP::ModelObjectsTemp"""
6515  return _IMP_core.MSConnectivityRestraint_do_get_inputs(self)
6516 
6517  def get_version_info(self):
6518  r"""get_version_info(MSConnectivityRestraint self) -> VersionInfo"""
6519  return _IMP_core.MSConnectivityRestraint_get_version_info(self)
6520  __swig_destroy__ = _IMP_core.delete_MSConnectivityRestraint
6521 
6522  def __str__(self):
6523  r"""__str__(MSConnectivityRestraint self) -> std::string"""
6524  return _IMP_core.MSConnectivityRestraint___str__(self)
6525 
6526  def __repr__(self):
6527  r"""__repr__(MSConnectivityRestraint self) -> std::string"""
6528  return _IMP_core.MSConnectivityRestraint___repr__(self)
6529 
6530  @staticmethod
6531  def get_from(o):
6532  return _object_cast_to_MSConnectivityRestraint(o)
6533 
6534 
6535 # Register MSConnectivityRestraint in _IMP_core:
6536 _IMP_core.MSConnectivityRestraint_swigregister(MSConnectivityRestraint)
6537 class HierarchyTraits(object):
6538  r"""Proxy of C++ IMP::core::HierarchyTraits class."""
6539 
6540  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6541 
6542  def __init__(self, *args):
6543  r"""
6544  __init__(HierarchyTraits self) -> HierarchyTraits
6545  __init__(HierarchyTraits self, std::string name) -> HierarchyTraits
6546  """
6547  _IMP_core.HierarchyTraits_swiginit(self, _IMP_core.new_HierarchyTraits(*args))
6548 
6549  def get_children_key(self):
6550  r"""get_children_key(HierarchyTraits self) -> ParticleIndexesKey"""
6551  return _IMP_core.HierarchyTraits_get_children_key(self)
6552 
6553  def get_parent_key(self):
6554  r"""get_parent_key(HierarchyTraits self) -> ParticleIndexKey"""
6555  return _IMP_core.HierarchyTraits_get_parent_key(self)
6556 
6557  def __eq__(self, o):
6558  r"""__eq__(HierarchyTraits self, HierarchyTraits o) -> bool"""
6559  return _IMP_core.HierarchyTraits___eq__(self, o)
6560 
6561  def show(self, *args):
6562  r"""show(HierarchyTraits self, _ostream out=std::cout)"""
6563  return _IMP_core.HierarchyTraits_show(self, *args)
6564 
6565  def __str__(self):
6566  r"""__str__(HierarchyTraits self) -> std::string"""
6567  return _IMP_core.HierarchyTraits___str__(self)
6568 
6569  def __repr__(self):
6570  r"""__repr__(HierarchyTraits self) -> std::string"""
6571  return _IMP_core.HierarchyTraits___repr__(self)
6572  __swig_destroy__ = _IMP_core.delete_HierarchyTraits
6573 
6574 # Register HierarchyTraits in _IMP_core:
6575 _IMP_core.HierarchyTraits_swigregister(HierarchyTraits)
6576 class Hierarchy(IMP.Decorator):
6577  r"""Proxy of C++ IMP::core::Hierarchy class."""
6578 
6579  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6580 
6581  def get_decorator_traits(self):
6582  r"""get_decorator_traits(Hierarchy self) -> HierarchyTraits"""
6583  return _IMP_core.Hierarchy_get_decorator_traits(self)
6584 
6585  @staticmethod
6586  def get_default_decorator_traits():
6587  r"""get_default_decorator_traits() -> HierarchyTraits"""
6588  return _IMP_core.Hierarchy_get_default_decorator_traits()
6589 
6590  def __init__(self, *args):
6591  r"""
6592  __init__(Hierarchy self) -> Hierarchy
6593  __init__(Hierarchy self, Model m, ParticleIndex id, HierarchyTraits tr=get_default_traits()) -> Hierarchy
6594  __init__(Hierarchy self, _ParticleAdaptor d, HierarchyTraits tr=get_default_traits()) -> Hierarchy
6595  """
6596  _IMP_core.Hierarchy_swiginit(self, _IMP_core.new_Hierarchy(*args))
6597 
6598  def show(self, *args):
6599  r"""show(Hierarchy self, _ostream out=std::cout)"""
6600  return _IMP_core.Hierarchy_show(self, *args)
6601 
6602  @staticmethod
6603  def setup_particle(*args):
6604  r"""
6605  setup_particle(Model m, ParticleIndex pi, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6606  setup_particle(_ParticleAdaptor d, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6607  setup_particle(Model m, ParticleIndex pi, IMP::ParticleIndexes children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6608  setup_particle(_ParticleAdaptor d, IMP::ParticleIndexes children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6609  setup_particle(Model m, ParticleIndex pi, IMP::ParticlesTemp children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6610  setup_particle(_ParticleAdaptor d, IMP::ParticlesTemp children, HierarchyTraits tr=IMP::core::Hierarchy::get_default_decorator_traits()) -> Hierarchy
6611  """
6612  return _IMP_core.Hierarchy_setup_particle(*args)
6613 
6614  @staticmethod
6615  def get_is_setup(*args):
6616  r"""
6617  get_is_setup(_ParticleAdaptor p, HierarchyTraits tr=get_default_traits()) -> bool
6618  get_is_setup(Model arg1, ParticleIndex arg2, HierarchyTraits arg3=Hierarchy::get_default_traits()) -> bool
6619  """
6620  return _IMP_core.Hierarchy_get_is_setup(*args)
6621 
6622  @staticmethod
6623  def get_changed_key():
6624  r"""get_changed_key() -> TriggerKey"""
6625  return _IMP_core.Hierarchy_get_changed_key()
6626 
6627  def get_parent(self):
6628  r"""get_parent(Hierarchy self) -> Hierarchy"""
6629  return _IMP_core.Hierarchy_get_parent(self)
6630 
6631  def get_number_of_children(self):
6632  r"""get_number_of_children(Hierarchy self) -> unsigned int"""
6633  return _IMP_core.Hierarchy_get_number_of_children(self)
6634 
6635  def get_child(self, i):
6636  r"""get_child(Hierarchy self, unsigned int i) -> Hierarchy"""
6637  return _IMP_core.Hierarchy_get_child(self, i)
6638 
6639  def get_children_indexes(self):
6640  r"""get_children_indexes(Hierarchy self) -> IMP::ParticleIndexes"""
6641  return _IMP_core.Hierarchy_get_children_indexes(self)
6642 
6643  def get_children(self):
6644  r"""get_children(Hierarchy self) -> IMP::core::GenericHierarchies"""
6645  return _IMP_core.Hierarchy_get_children(self)
6646 
6647  def remove_child(self, *args):
6648  r"""
6649  remove_child(Hierarchy self, unsigned int i)
6650  remove_child(Hierarchy self, Hierarchy h)
6651  """
6652  return _IMP_core.Hierarchy_remove_child(self, *args)
6653 
6654  def clear_children(self):
6655  r"""clear_children(Hierarchy self)"""
6656  return _IMP_core.Hierarchy_clear_children(self)
6657 
6658  def add_child(self, h):
6659  r"""add_child(Hierarchy self, Hierarchy h)"""
6660  return _IMP_core.Hierarchy_add_child(self, h)
6661 
6662  def add_child_at(self, h, pos):
6663  r"""add_child_at(Hierarchy self, Hierarchy h, unsigned int pos)"""
6664  return _IMP_core.Hierarchy_add_child_at(self, h, pos)
6665 
6666  def get_child_index(self, *args):
6667  r"""
6668  get_child_index(Hierarchy self, unsigned int i) -> ParticleIndex
6669  get_child_index(Hierarchy self) -> int
6670  """
6671  return _IMP_core.Hierarchy_get_child_index(self, *args)
6672 
6673  @staticmethod
6674  def get_default_traits():
6675  r"""get_default_traits() -> HierarchyTraits"""
6676  return _IMP_core.Hierarchy_get_default_traits()
6677 
6678  def get_traits(self):
6679  r"""get_traits(Hierarchy self) -> HierarchyTraits"""
6680  return _IMP_core.Hierarchy_get_traits(self)
6681 
6682  def add_attribute(self, *args):
6683  r"""
6684  add_attribute(Hierarchy self, FloatKey k, IMP::Float v, bool opt)
6685  add_attribute(Hierarchy self, FloatKey a0, IMP::Float a1)
6686  add_attribute(Hierarchy self, IntKey a0, IMP::Int a1)
6687  add_attribute(Hierarchy self, FloatsKey a0, IMP::Floats a1)
6688  add_attribute(Hierarchy self, IntsKey a0, IMP::Ints a1)
6689  add_attribute(Hierarchy self, StringKey a0, IMP::String a1)
6690  add_attribute(Hierarchy self, ParticleIndexKey a0, Particle a1)
6691  add_attribute(Hierarchy self, ObjectKey a0, Object a1)
6692  add_attribute(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
6693  add_attribute(Hierarchy self, SparseIntKey a0, IMP::Int a1)
6694  add_attribute(Hierarchy self, SparseStringKey a0, IMP::String a1)
6695  add_attribute(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
6696  """
6697  return _IMP_core.Hierarchy_add_attribute(self, *args)
6698 
6699  def get_value(self, *args):
6700  r"""
6701  get_value(Hierarchy self, FloatKey a0) -> IMP::Float
6702  get_value(Hierarchy self, IntKey a0) -> IMP::Int
6703  get_value(Hierarchy self, FloatsKey a0) -> IMP::Floats
6704  get_value(Hierarchy self, IntsKey a0) -> IMP::Ints
6705  get_value(Hierarchy self, StringKey a0) -> IMP::String
6706  get_value(Hierarchy self, ParticleIndexKey a0) -> Particle
6707  get_value(Hierarchy self, ObjectKey a0) -> Object
6708  get_value(Hierarchy self, SparseFloatKey a0) -> IMP::Float
6709  get_value(Hierarchy self, SparseIntKey a0) -> IMP::Int
6710  get_value(Hierarchy self, SparseStringKey a0) -> IMP::String
6711  get_value(Hierarchy self, SparseParticleIndexKey a0) -> ParticleIndex
6712  """
6713  return _IMP_core.Hierarchy_get_value(self, *args)
6714 
6715  def set_value(self, *args):
6716  r"""
6717  set_value(Hierarchy self, FloatKey a0, IMP::Float a1)
6718  set_value(Hierarchy self, IntKey a0, IMP::Int a1)
6719  set_value(Hierarchy self, FloatsKey a0, IMP::Floats a1)
6720  set_value(Hierarchy self, IntsKey a0, IMP::Ints a1)
6721  set_value(Hierarchy self, StringKey a0, IMP::String a1)
6722  set_value(Hierarchy self, ParticleIndexKey a0, Particle a1)
6723  set_value(Hierarchy self, ObjectKey a0, Object a1)
6724  set_value(Hierarchy self, SparseFloatKey a0, IMP::Float a1)
6725  set_value(Hierarchy self, SparseIntKey a0, IMP::Int a1)
6726  set_value(Hierarchy self, SparseStringKey a0, IMP::String a1)
6727  set_value(Hierarchy self, SparseParticleIndexKey a0, ParticleIndex a1)
6728  """
6729  return _IMP_core.Hierarchy_set_value(self, *args)
6730 
6731  def remove_attribute(self, *args):
6732  r"""
6733  remove_attribute(Hierarchy self, FloatKey a0)
6734  remove_attribute(Hierarchy self, IntKey a0)
6735  remove_attribute(Hierarchy self, FloatsKey a0)
6736  remove_attribute(Hierarchy self, IntsKey a0)
6737  remove_attribute(Hierarchy self, StringKey a0)
6738  remove_attribute(Hierarchy self, ParticleIndexKey a0)
6739  remove_attribute(Hierarchy self, ObjectKey a0)
6740  remove_attribute(Hierarchy self, SparseFloatKey a0)
6741  remove_attribute(Hierarchy self, SparseIntKey a0)
6742  remove_attribute(Hierarchy self, SparseStringKey a0)
6743  remove_attribute(Hierarchy self, SparseParticleIndexKey a0)
6744  """
6745  return _IMP_core.Hierarchy_remove_attribute(self, *args)
6746 
6747  def has_attribute(self, *args):
6748  r"""
6749  has_attribute(Hierarchy self, FloatKey a0) -> bool
6750  has_attribute(Hierarchy self, IntKey a0) -> bool
6751  has_attribute(Hierarchy self, FloatsKey a0) -> bool
6752  has_attribute(Hierarchy self, IntsKey a0) -> bool
6753  has_attribute(Hierarchy self, StringKey a0) -> bool
6754  has_attribute(Hierarchy self, ParticleIndexKey a0) -> bool
6755  has_attribute(Hierarchy self, ObjectKey a0) -> bool
6756  has_attribute(Hierarchy self, SparseFloatKey a0) -> bool
6757  has_attribute(Hierarchy self, SparseIntKey a0) -> bool
6758  has_attribute(Hierarchy self, SparseStringKey a0) -> bool
6759  has_attribute(Hierarchy self, SparseParticleIndexKey a0) -> bool
6760  """
6761  return _IMP_core.Hierarchy_has_attribute(self, *args)
6762 
6763  def get_derivative(self, a0):
6764  r"""get_derivative(Hierarchy self, FloatKey a0) -> double"""
6765  return _IMP_core.Hierarchy_get_derivative(self, a0)
6766 
6767  def get_name(self):
6768  r"""get_name(Hierarchy self) -> std::string"""
6769  return _IMP_core.Hierarchy_get_name(self)
6770 
6771  def clear_caches(self):
6772  r"""clear_caches(Hierarchy self)"""
6773  return _IMP_core.Hierarchy_clear_caches(self)
6774 
6775  def set_name(self, a0):
6776  r"""set_name(Hierarchy self, std::string a0)"""
6777  return _IMP_core.Hierarchy_set_name(self, a0)
6778 
6779  def set_check_level(self, a0):
6780  r"""set_check_level(Hierarchy self, IMP::CheckLevel a0)"""
6781  return _IMP_core.Hierarchy_set_check_level(self, a0)
6782 
6783  def add_to_derivative(self, a0, a1, a2):
6784  r"""add_to_derivative(Hierarchy self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
6785  return _IMP_core.Hierarchy_add_to_derivative(self, a0, a1, a2)
6786 
6787  def set_is_optimized(self, a0, a1):
6788  r"""set_is_optimized(Hierarchy self, FloatKey a0, bool a1)"""
6789  return _IMP_core.Hierarchy_set_is_optimized(self, a0, a1)
6790 
6791  def get_is_optimized(self, a0):
6792  r"""get_is_optimized(Hierarchy self, FloatKey a0) -> bool"""
6793  return _IMP_core.Hierarchy_get_is_optimized(self, a0)
6794 
6795  def get_check_level(self):
6796  r"""get_check_level(Hierarchy self) -> IMP::CheckLevel"""
6797  return _IMP_core.Hierarchy_get_check_level(self)
6798 
6799  def __eq__(self, *args):
6800  r"""
6801  __eq__(Hierarchy self, Hierarchy o) -> bool
6802  __eq__(Hierarchy self, Particle d) -> bool
6803  """
6804  return _IMP_core.Hierarchy___eq__(self, *args)
6805 
6806  def __ne__(self, *args):
6807  r"""
6808  __ne__(Hierarchy self, Hierarchy o) -> bool
6809  __ne__(Hierarchy self, Particle d) -> bool
6810  """
6811  return _IMP_core.Hierarchy___ne__(self, *args)
6812 
6813  def __le__(self, *args):
6814  r"""
6815  __le__(Hierarchy self, Hierarchy o) -> bool
6816  __le__(Hierarchy self, Particle d) -> bool
6817  """
6818  return _IMP_core.Hierarchy___le__(self, *args)
6819 
6820  def __lt__(self, *args):
6821  r"""
6822  __lt__(Hierarchy self, Hierarchy o) -> bool
6823  __lt__(Hierarchy self, Particle d) -> bool
6824  """
6825  return _IMP_core.Hierarchy___lt__(self, *args)
6826 
6827  def __ge__(self, *args):
6828  r"""
6829  __ge__(Hierarchy self, Hierarchy o) -> bool
6830  __ge__(Hierarchy self, Particle d) -> bool
6831  """
6832  return _IMP_core.Hierarchy___ge__(self, *args)
6833 
6834  def __gt__(self, *args):
6835  r"""
6836  __gt__(Hierarchy self, Hierarchy o) -> bool
6837  __gt__(Hierarchy self, Particle d) -> bool
6838  """
6839  return _IMP_core.Hierarchy___gt__(self, *args)
6840 
6841  def __hash__(self):
6842  r"""__hash__(Hierarchy self) -> std::size_t"""
6843  return _IMP_core.Hierarchy___hash__(self)
6844 
6845  def __str__(self):
6846  r"""__str__(Hierarchy self) -> std::string"""
6847  return _IMP_core.Hierarchy___str__(self)
6848 
6849  def __repr__(self):
6850  r"""__repr__(Hierarchy self) -> std::string"""
6851  return _IMP_core.Hierarchy___repr__(self)
6852  __swig_destroy__ = _IMP_core.delete_Hierarchy
6853 
6854 # Register Hierarchy in _IMP_core:
6855 _IMP_core.Hierarchy_swigregister(Hierarchy)
6856 class HierarchyVisitor(object):
6857  r"""Proxy of C++ IMP::core::HierarchyVisitor class."""
6858 
6859  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6860  __repr__ = _swig_repr
6861 
6862  def __init__(self):
6863  r"""__init__(HierarchyVisitor self) -> HierarchyVisitor"""
6864  if self.__class__ == HierarchyVisitor:
6865  _self = None
6866  else:
6867  _self = self
6868  _IMP_core.HierarchyVisitor_swiginit(self, _IMP_core.new_HierarchyVisitor(_self, ))
6869 
6870  if self.__class__ != HierarchyVisitor:
6871  _director_objects.register(self)
6872 
6873 
6874 
6875 
6876  def __call__(self, p):
6877  r"""__call__(HierarchyVisitor self, Hierarchy p) -> bool"""
6878  return _IMP_core.HierarchyVisitor___call__(self, p)
6879  __swig_destroy__ = _IMP_core.delete_HierarchyVisitor
6880  def __disown__(self):
6881  self.this.disown()
6882  _IMP_core.disown_HierarchyVisitor(self)
6883  return weakref.proxy(self)
6884 
6885 # Register HierarchyVisitor in _IMP_core:
6886 _IMP_core.HierarchyVisitor_swigregister(HierarchyVisitor)
6887 class ModifierVisitor(HierarchyVisitor):
6888  r"""Proxy of C++ IMP::core::ModifierVisitor class."""
6889 
6890  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6891  __repr__ = _swig_repr
6892 
6893  def __init__(self, sm):
6894  r"""__init__(ModifierVisitor self, SingletonModifier sm) -> ModifierVisitor"""
6895  _IMP_core.ModifierVisitor_swiginit(self, _IMP_core.new_ModifierVisitor(sm))
6896  __swig_destroy__ = _IMP_core.delete_ModifierVisitor
6897 
6898 # Register ModifierVisitor in _IMP_core:
6899 _IMP_core.ModifierVisitor_swigregister(ModifierVisitor)
6900 class HierarchyCounter(HierarchyVisitor):
6901  r"""Proxy of C++ IMP::core::HierarchyCounter class."""
6902 
6903  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6904 
6905  def __init__(self):
6906  r"""__init__(HierarchyCounter self) -> HierarchyCounter"""
6907  _IMP_core.HierarchyCounter_swiginit(self, _IMP_core.new_HierarchyCounter())
6908 
6909  def get_count(self):
6910  r"""get_count(HierarchyCounter self) -> unsigned int"""
6911  return _IMP_core.HierarchyCounter_get_count(self)
6912 
6913  def show(self, *args):
6914  r"""show(HierarchyCounter self, _ostream out=std::cout)"""
6915  return _IMP_core.HierarchyCounter_show(self, *args)
6916 
6917  def __str__(self):
6918  r"""__str__(HierarchyCounter self) -> std::string"""
6919  return _IMP_core.HierarchyCounter___str__(self)
6920 
6921  def __repr__(self):
6922  r"""__repr__(HierarchyCounter self) -> std::string"""
6923  return _IMP_core.HierarchyCounter___repr__(self)
6924 
6925  def _get_as_binary(self):
6926  r"""_get_as_binary(HierarchyCounter self) -> PyObject *"""
6927  return _IMP_core.HierarchyCounter__get_as_binary(self)
6928 
6929  def _set_from_binary(self, p):
6930  r"""_set_from_binary(HierarchyCounter self, PyObject * p)"""
6931  return _IMP_core.HierarchyCounter__set_from_binary(self, p)
6932 
6933  def __getstate__(self):
6934  p = self._get_as_binary()
6935  if len(self.__dict__) > 1:
6936  d = self.__dict__.copy()
6937  del d['this']
6938  p = (d, p)
6939  return p
6940 
6941  def __setstate__(self, p):
6942  if not hasattr(self, 'this'):
6943  self.__init__()
6944  if isinstance(p, tuple):
6945  d, p = p
6946  self.__dict__.update(d)
6947  return self._set_from_binary(p)
6948 
6949  __swig_destroy__ = _IMP_core.delete_HierarchyCounter
6950 
6951 # Register HierarchyCounter in _IMP_core:
6952 _IMP_core.HierarchyCounter_swigregister(HierarchyCounter)
6953 
6954 def get_leaves(mhd):
6955  r"""get_leaves(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
6956  return _IMP_core.get_leaves(mhd)
6957 
6958 def get_internal(mhd):
6959  r"""get_internal(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
6960  return _IMP_core.get_internal(mhd)
6961 
6962 def get_all_descendants(mhd):
6963  r"""get_all_descendants(Hierarchy mhd) -> IMP::core::GenericHierarchies"""
6964  return _IMP_core.get_all_descendants(mhd)
6965 
6966 def get_root(h):
6967  r"""get_root(Hierarchy h) -> Hierarchy"""
6968  return _IMP_core.get_root(h)
6969 
6970 def visit_breadth_first(d, f):
6971  r"""visit_breadth_first(Hierarchy d, HierarchyVisitor f)"""
6972  return _IMP_core.visit_breadth_first(d, f)
6973 
6974 def visit_depth_first(d, f):
6975  r"""visit_depth_first(Hierarchy d, HierarchyVisitor f)"""
6976  return _IMP_core.visit_depth_first(d, f)
6977 class LeavesRefiner(IMP.Refiner):
6978  r"""Proxy of C++ IMP::core::LeavesRefiner class."""
6979 
6980  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
6981 
6982  def __init__(self, tr):
6983  r"""__init__(LeavesRefiner self, HierarchyTraits tr) -> LeavesRefiner"""
6984  _IMP_core.LeavesRefiner_swiginit(self, _IMP_core.new_LeavesRefiner(tr))
6985 
6986  def do_get_inputs(self, m, pis):
6987  r"""do_get_inputs(LeavesRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
6988  return _IMP_core.LeavesRefiner_do_get_inputs(self, m, pis)
6989 
6990  def get_version_info(self):
6991  r"""get_version_info(LeavesRefiner self) -> VersionInfo"""
6992  return _IMP_core.LeavesRefiner_get_version_info(self)
6993  __swig_destroy__ = _IMP_core.delete_LeavesRefiner
6994 
6995  def __str__(self):
6996  r"""__str__(LeavesRefiner self) -> std::string"""
6997  return _IMP_core.LeavesRefiner___str__(self)
6998 
6999  def __repr__(self):
7000  r"""__repr__(LeavesRefiner self) -> std::string"""
7001  return _IMP_core.LeavesRefiner___repr__(self)
7002 
7003  @staticmethod
7004  def get_from(o):
7005  return _object_cast_to_LeavesRefiner(o)
7006 
7007 
7008 # Register LeavesRefiner in _IMP_core:
7009 _IMP_core.LeavesRefiner_swigregister(LeavesRefiner)
7010 class Linear(IMP.UnaryFunction):
7011  r"""Proxy of C++ IMP::core::Linear class."""
7012 
7013  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7014 
7015  def __init__(self, *args):
7016  r"""
7017  __init__(Linear self, double offset, double slope) -> Linear
7018  __init__(Linear self) -> Linear
7019  """
7020  _IMP_core.Linear_swiginit(self, _IMP_core.new_Linear(*args))
7021 
7022  def set_slope(self, f):
7023  r"""set_slope(Linear self, double f)"""
7024  return _IMP_core.Linear_set_slope(self, f)
7025 
7026  def set_offset(self, f):
7027  r"""set_offset(Linear self, double f)"""
7028  return _IMP_core.Linear_set_offset(self, f)
7029 
7030  def get_version_info(self):
7031  r"""get_version_info(Linear self) -> VersionInfo"""
7032  return _IMP_core.Linear_get_version_info(self)
7033  __swig_destroy__ = _IMP_core.delete_Linear
7034 
7035  def __str__(self):
7036  r"""__str__(Linear self) -> std::string"""
7037  return _IMP_core.Linear___str__(self)
7038 
7039  def __repr__(self):
7040  r"""__repr__(Linear self) -> std::string"""
7041  return _IMP_core.Linear___repr__(self)
7042 
7043  @staticmethod
7044  def get_from(o):
7045  return _object_cast_to_Linear(o)
7046 
7047 
7048  def _get_as_binary(self):
7049  r"""_get_as_binary(Linear self) -> PyObject *"""
7050  return _IMP_core.Linear__get_as_binary(self)
7051 
7052  def _set_from_binary(self, p):
7053  r"""_set_from_binary(Linear self, PyObject * p)"""
7054  return _IMP_core.Linear__set_from_binary(self, p)
7055 
7056  def __getstate__(self):
7057  p = self._get_as_binary()
7058  if len(self.__dict__) > 1:
7059  d = self.__dict__.copy()
7060  del d['this']
7061  p = (d, p)
7062  return p
7063 
7064  def __setstate__(self, p):
7065  if not hasattr(self, 'this'):
7066  self.__init__()
7067  if isinstance(p, tuple):
7068  d, p = p
7069  self.__dict__.update(d)
7070  return self._set_from_binary(p)
7071 
7072 
7073 # Register Linear in _IMP_core:
7074 _IMP_core.Linear_swigregister(Linear)
7075 class LogNormalMover(MonteCarloMover):
7076  r"""Proxy of C++ IMP::core::LogNormalMover class."""
7077 
7078  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7079 
7080  def __init__(self, *args):
7081  r"""
7082  __init__(LogNormalMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double stddev) -> LogNormalMover
7083  __init__(LogNormalMover self, Model m, ParticleIndex pi, double stddev) -> LogNormalMover
7084  __init__(LogNormalMover self, IMP::ParticlesTemp const & sc, IMP::FloatKeys const & vars, IMP::Float sigma) -> LogNormalMover
7085  __init__(LogNormalMover self, IMP::ParticlesTemp const & sc, IMP::Float radius) -> LogNormalMover
7086  __init__(LogNormalMover self) -> LogNormalMover
7087  """
7088  _IMP_core.LogNormalMover_swiginit(self, _IMP_core.new_LogNormalMover(*args))
7089 
7090  def set_sigma(self, sigma):
7091  r"""set_sigma(LogNormalMover self, IMP::Float sigma)"""
7092  return _IMP_core.LogNormalMover_set_sigma(self, sigma)
7093 
7094  def get_sigma(self):
7095  r"""get_sigma(LogNormalMover self) -> IMP::Float"""
7096  return _IMP_core.LogNormalMover_get_sigma(self)
7097 
7098  def get_version_info(self):
7099  r"""get_version_info(LogNormalMover self) -> VersionInfo"""
7100  return _IMP_core.LogNormalMover_get_version_info(self)
7101  __swig_destroy__ = _IMP_core.delete_LogNormalMover
7102 
7103  def __str__(self):
7104  r"""__str__(LogNormalMover self) -> std::string"""
7105  return _IMP_core.LogNormalMover___str__(self)
7106 
7107  def __repr__(self):
7108  r"""__repr__(LogNormalMover self) -> std::string"""
7109  return _IMP_core.LogNormalMover___repr__(self)
7110 
7111  @staticmethod
7112  def get_from(o):
7113  return _object_cast_to_LogNormalMover(o)
7114 
7115 
7116  def _get_as_binary(self):
7117  r"""_get_as_binary(LogNormalMover self) -> PyObject *"""
7118  return _IMP_core.LogNormalMover__get_as_binary(self)
7119 
7120  def _set_from_binary(self, p):
7121  r"""_set_from_binary(LogNormalMover self, PyObject * p)"""
7122  return _IMP_core.LogNormalMover__set_from_binary(self, p)
7123 
7124  def __getstate__(self):
7125  p = self._get_as_binary()
7126  if len(self.__dict__) > 1:
7127  d = self.__dict__.copy()
7128  del d['this']
7129  p = (d, p)
7130  return p
7131 
7132  def __setstate__(self, p):
7133  if not hasattr(self, 'this'):
7134  self.__init__()
7135  if isinstance(p, tuple):
7136  d, p = p
7137  self.__dict__.update(d)
7138  return self._set_from_binary(p)
7139 
7140 
7141 # Register LogNormalMover in _IMP_core:
7142 _IMP_core.LogNormalMover_swigregister(LogNormalMover)
7143 IMP_CORE_HAS_MONTE_CARLO_MOVER = _IMP_core.IMP_CORE_HAS_MONTE_CARLO_MOVER
7144 
7145 class MonteCarlo(IMP.Optimizer):
7146  r"""Proxy of C++ IMP::core::MonteCarlo class."""
7147 
7148  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7149 
7150  def __init__(self, m):
7151  r"""__init__(MonteCarlo self, Model m) -> MonteCarlo"""
7152  _IMP_core.MonteCarlo_swiginit(self, _IMP_core.new_MonteCarlo(m))
7153 
7154  def get_version_info(self):
7155  r"""get_version_info(MonteCarlo self) -> VersionInfo"""
7156  return _IMP_core.MonteCarlo_get_version_info(self)
7157  __swig_destroy__ = _IMP_core.delete_MonteCarlo
7158 
7159  def set_return_best(self, tf):
7160  r"""set_return_best(MonteCarlo self, bool tf)"""
7161  return _IMP_core.MonteCarlo_set_return_best(self, tf)
7162 
7163  def set_score_moved(self, mv):
7164  r"""set_score_moved(MonteCarlo self, bool mv)"""
7165  return _IMP_core.MonteCarlo_set_score_moved(self, mv)
7166 
7167  def set_kt(self, t):
7168  r"""set_kt(MonteCarlo self, IMP::Float t)"""
7169  return _IMP_core.MonteCarlo_set_kt(self, t)
7170 
7171  def get_kt(self):
7172  r"""get_kt(MonteCarlo self) -> IMP::Float"""
7173  return _IMP_core.MonteCarlo_get_kt(self)
7174 
7175  def get_last_accepted_energy(self):
7176  r"""get_last_accepted_energy(MonteCarlo self) -> double"""
7177  return _IMP_core.MonteCarlo_get_last_accepted_energy(self)
7178 
7179  def get_best_accepted_energy(self):
7180  r"""get_best_accepted_energy(MonteCarlo self) -> double"""
7181  return _IMP_core.MonteCarlo_get_best_accepted_energy(self)
7182 
7183  def get_number_of_downward_steps(self):
7184  r"""get_number_of_downward_steps(MonteCarlo self) -> unsigned int"""
7185  return _IMP_core.MonteCarlo_get_number_of_downward_steps(self)
7186 
7187  def get_number_of_upward_steps(self):
7188  r"""get_number_of_upward_steps(MonteCarlo self) -> unsigned int"""
7189  return _IMP_core.MonteCarlo_get_number_of_upward_steps(self)
7190 
7191  def get_number_of_proposed_steps(self):
7192  r"""get_number_of_proposed_steps(MonteCarlo self) -> unsigned int"""
7193  return _IMP_core.MonteCarlo_get_number_of_proposed_steps(self)
7194 
7195  def get_number_of_accepted_steps(self):
7196  r"""get_number_of_accepted_steps(MonteCarlo self) -> unsigned int"""
7197  return _IMP_core.MonteCarlo_get_number_of_accepted_steps(self)
7198 
7199  def reset_statistics(self):
7200  r"""reset_statistics(MonteCarlo self)"""
7201  return _IMP_core.MonteCarlo_reset_statistics(self)
7202 
7203  def set_score_threshold(self, s):
7204  r"""set_score_threshold(MonteCarlo self, double s)"""
7205  return _IMP_core.MonteCarlo_set_score_threshold(self, s)
7206 
7207  def get_score_threshold(self):
7208  r"""get_score_threshold(MonteCarlo self) -> double"""
7209  return _IMP_core.MonteCarlo_get_score_threshold(self)
7210 
7211  def set_maximum_difference(self, d):
7212  r"""set_maximum_difference(MonteCarlo self, double d)"""
7213  return _IMP_core.MonteCarlo_set_maximum_difference(self, d)
7214 
7215  def get_maximum_difference(self):
7216  r"""get_maximum_difference(MonteCarlo self) -> double"""
7217  return _IMP_core.MonteCarlo_get_maximum_difference(self)
7218  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)
7219  def __set_movers(self, obj): IMP._list_util.set_varlist(self.movers, obj)
7220  def __del_movers(self): IMP._list_util.del_varlist(self.movers)
7221  movers = property(__get_movers, __set_movers, __del_movers, doc="List of ##ucnames")
7222 
7223  def remove_mover(self, d):
7224  r"""remove_mover(MonteCarlo self, MonteCarloMover d)"""
7225  return _IMP_core.MonteCarlo_remove_mover(self, d)
7226 
7227  def _python_index_mover(self, d, start, stop):
7228  r"""_python_index_mover(MonteCarlo self, MonteCarloMover d, unsigned int start, unsigned int stop) -> unsigned int"""
7229  return _IMP_core.MonteCarlo__python_index_mover(self, d, start, stop)
7230 
7231  def remove_movers(self, d):
7232  r"""remove_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & d)"""
7233  return _IMP_core.MonteCarlo_remove_movers(self, d)
7234 
7235  def set_movers(self, ps):
7236  r"""set_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & ps)"""
7237  return _IMP_core.MonteCarlo_set_movers(self, ps)
7238 
7239  def set_movers_order(self, objs):
7240  r"""set_movers_order(MonteCarlo self, IMP::core::MonteCarloMovers const & objs)"""
7241  return _IMP_core.MonteCarlo_set_movers_order(self, objs)
7242 
7243  def add_mover(self, obj):
7244  r"""add_mover(MonteCarlo self, MonteCarloMover obj) -> unsigned int"""
7245  return _IMP_core.MonteCarlo_add_mover(self, obj)
7246 
7247  def add_movers(self, objs):
7248  r"""add_movers(MonteCarlo self, IMP::core::MonteCarloMovers const & objs)"""
7249  return _IMP_core.MonteCarlo_add_movers(self, objs)
7250 
7251  def clear_movers(self):
7252  r"""clear_movers(MonteCarlo self)"""
7253  return _IMP_core.MonteCarlo_clear_movers(self)
7254 
7255  def get_number_of_movers(self):
7256  r"""get_number_of_movers(MonteCarlo self) -> unsigned int"""
7257  return _IMP_core.MonteCarlo_get_number_of_movers(self)
7258 
7259  def get_has_movers(self):
7260  r"""get_has_movers(MonteCarlo self) -> bool"""
7261  return _IMP_core.MonteCarlo_get_has_movers(self)
7262 
7263  def get_mover(self, i):
7264  r"""get_mover(MonteCarlo self, unsigned int i) -> MonteCarloMover"""
7265  return _IMP_core.MonteCarlo_get_mover(self, i)
7266 
7267  def get_movers(self):
7268  r"""get_movers(MonteCarlo self) -> IMP::core::MonteCarloMovers"""
7269  return _IMP_core.MonteCarlo_get_movers(self)
7270 
7271  def erase_mover(self, i):
7272  r"""erase_mover(MonteCarlo self, unsigned int i)"""
7273  return _IMP_core.MonteCarlo_erase_mover(self, i)
7274 
7275  def reserve_movers(self, sz):
7276  r"""reserve_movers(MonteCarlo self, unsigned int sz)"""
7277  return _IMP_core.MonteCarlo_reserve_movers(self, sz)
7278 
7279  def __str__(self):
7280  r"""__str__(MonteCarlo self) -> std::string"""
7281  return _IMP_core.MonteCarlo___str__(self)
7282 
7283  def __repr__(self):
7284  r"""__repr__(MonteCarlo self) -> std::string"""
7285  return _IMP_core.MonteCarlo___repr__(self)
7286 
7287  @staticmethod
7288  def get_from(o):
7289  return _object_cast_to_MonteCarlo(o)
7290 
7291 
7292 # Register MonteCarlo in _IMP_core:
7293 _IMP_core.MonteCarlo_swigregister(MonteCarlo)
7294 class MonteCarloWithLocalOptimization(MonteCarlo):
7295  r"""Proxy of C++ IMP::core::MonteCarloWithLocalOptimization class."""
7296 
7297  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7298 
7299  def __init__(self, opt, steps):
7300  r"""__init__(MonteCarloWithLocalOptimization self, Optimizer opt, unsigned int steps) -> MonteCarloWithLocalOptimization"""
7301  _IMP_core.MonteCarloWithLocalOptimization_swiginit(self, _IMP_core.new_MonteCarloWithLocalOptimization(opt, steps))
7302 
7303  def get_number_of_steps(self):
7304  r"""get_number_of_steps(MonteCarloWithLocalOptimization self) -> unsigned int"""
7305  return _IMP_core.MonteCarloWithLocalOptimization_get_number_of_steps(self)
7306 
7307  def get_local_optimizer(self):
7308  r"""get_local_optimizer(MonteCarloWithLocalOptimization self) -> Optimizer"""
7309  return _IMP_core.MonteCarloWithLocalOptimization_get_local_optimizer(self)
7310  __swig_destroy__ = _IMP_core.delete_MonteCarloWithLocalOptimization
7311 
7312  def __str__(self):
7313  r"""__str__(MonteCarloWithLocalOptimization self) -> std::string"""
7314  return _IMP_core.MonteCarloWithLocalOptimization___str__(self)
7315 
7316  def __repr__(self):
7317  r"""__repr__(MonteCarloWithLocalOptimization self) -> std::string"""
7318  return _IMP_core.MonteCarloWithLocalOptimization___repr__(self)
7319 
7320  @staticmethod
7321  def get_from(o):
7322  return _object_cast_to_MonteCarloWithLocalOptimization(o)
7323 
7324 
7325 # Register MonteCarloWithLocalOptimization in _IMP_core:
7326 _IMP_core.MonteCarloWithLocalOptimization_swigregister(MonteCarloWithLocalOptimization)
7327 class MonteCarloWithBasinHopping(MonteCarloWithLocalOptimization):
7328  r"""Proxy of C++ IMP::core::MonteCarloWithBasinHopping class."""
7329 
7330  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7331 
7332  def __init__(self, opt, ns):
7333  r"""__init__(MonteCarloWithBasinHopping self, Optimizer opt, unsigned int ns) -> MonteCarloWithBasinHopping"""
7334  _IMP_core.MonteCarloWithBasinHopping_swiginit(self, _IMP_core.new_MonteCarloWithBasinHopping(opt, ns))
7335  __swig_destroy__ = _IMP_core.delete_MonteCarloWithBasinHopping
7336 
7337  def __str__(self):
7338  r"""__str__(MonteCarloWithBasinHopping self) -> std::string"""
7339  return _IMP_core.MonteCarloWithBasinHopping___str__(self)
7340 
7341  def __repr__(self):
7342  r"""__repr__(MonteCarloWithBasinHopping self) -> std::string"""
7343  return _IMP_core.MonteCarloWithBasinHopping___repr__(self)
7344 
7345  @staticmethod
7346  def get_from(o):
7347  return _object_cast_to_MonteCarloWithBasinHopping(o)
7348 
7349 
7350 # Register MonteCarloWithBasinHopping in _IMP_core:
7351 _IMP_core.MonteCarloWithBasinHopping_swigregister(MonteCarloWithBasinHopping)
7352 class NeighborsTable(IMP.ScoreState):
7353  r"""Proxy of C++ IMP::core::NeighborsTable class."""
7354 
7355  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7356 
7357  def __init__(self, *args):
7358  r"""__init__(NeighborsTable self, PairContainer input, std::string name="CloseNeighborsTable%1%") -> NeighborsTable"""
7359  _IMP_core.NeighborsTable_swiginit(self, _IMP_core.new_NeighborsTable(*args))
7360 
7361  def get_neighbors(self, pi):
7362  r"""get_neighbors(NeighborsTable self, ParticleIndex pi) -> IMP::ParticleIndexes const &"""
7363  return _IMP_core.NeighborsTable_get_neighbors(self, pi)
7364 
7365  def get_version_info(self):
7366  r"""get_version_info(NeighborsTable self) -> VersionInfo"""
7367  return _IMP_core.NeighborsTable_get_version_info(self)
7368  __swig_destroy__ = _IMP_core.delete_NeighborsTable
7369 
7370  def __str__(self):
7371  r"""__str__(NeighborsTable self) -> std::string"""
7372  return _IMP_core.NeighborsTable___str__(self)
7373 
7374  def __repr__(self):
7375  r"""__repr__(NeighborsTable self) -> std::string"""
7376  return _IMP_core.NeighborsTable___repr__(self)
7377 
7378  @staticmethod
7379  def get_from(o):
7380  return _object_cast_to_NeighborsTable(o)
7381 
7382 
7383 # Register NeighborsTable in _IMP_core:
7384 _IMP_core.NeighborsTable_swigregister(NeighborsTable)
7385 class NormalMover(MonteCarloMover):
7386  r"""Proxy of C++ IMP::core::NormalMover class."""
7387 
7388  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7389 
7390  def __init__(self, *args):
7391  r"""
7392  __init__(NormalMover self, Model m, ParticleIndex pi, IMP::FloatKeys const & vars, double stddev) -> NormalMover
7393  __init__(NormalMover self, Model m, ParticleIndex pi, double stddev) -> NormalMover
7394  __init__(NormalMover self, IMP::ParticlesTemp const & sc, IMP::FloatKeys const & vars, IMP::Float sigma) -> NormalMover
7395  __init__(NormalMover self, IMP::ParticlesTemp const & sc, IMP::Float radius) -> NormalMover
7396  __init__(NormalMover self) -> NormalMover
7397  """
7398  _IMP_core.NormalMover_swiginit(self, _IMP_core.new_NormalMover(*args))
7399 
7400  def set_sigma(self, sigma):
7401  r"""set_sigma(NormalMover self, IMP::Float sigma)"""
7402  return _IMP_core.NormalMover_set_sigma(self, sigma)
7403 
7404  def get_sigma(self):
7405  r"""get_sigma(NormalMover self) -> IMP::Float"""
7406  return _IMP_core.NormalMover_get_sigma(self)
7407 
7408  def get_version_info(self):
7409  r"""get_version_info(NormalMover self) -> VersionInfo"""
7410  return _IMP_core.NormalMover_get_version_info(self)
7411  __swig_destroy__ = _IMP_core.delete_NormalMover
7412 
7413  def __str__(self):
7414  r"""__str__(NormalMover self) -> std::string"""
7415  return _IMP_core.NormalMover___str__(self)
7416 
7417  def __repr__(self):
7418  r"""__repr__(NormalMover self) -> std::string"""
7419  return _IMP_core.NormalMover___repr__(self)
7420 
7421  @staticmethod
7422  def get_from(o):
7423  return _object_cast_to_NormalMover(o)
7424 
7425 
7426  def _get_as_binary(self):
7427  r"""_get_as_binary(NormalMover self) -> PyObject *"""
7428  return _IMP_core.NormalMover__get_as_binary(self)
7429 
7430  def _set_from_binary(self, p):
7431  r"""_set_from_binary(NormalMover self, PyObject * p)"""
7432  return _IMP_core.NormalMover__set_from_binary(self, p)
7433 
7434  def __getstate__(self):
7435  p = self._get_as_binary()
7436  if len(self.__dict__) > 1:
7437  d = self.__dict__.copy()
7438  del d['this']
7439  p = (d, p)
7440  return p
7441 
7442  def __setstate__(self, p):
7443  if not hasattr(self, 'this'):
7444  self.__init__()
7445  if isinstance(p, tuple):
7446  d, p = p
7447  self.__dict__.update(d)
7448  return self._set_from_binary(p)
7449 
7450 
7451 # Register NormalMover in _IMP_core:
7452 _IMP_core.NormalMover_swigregister(NormalMover)
7453 class OpenCubicSpline(_OpenCubicSplineBase):
7454  r"""Proxy of C++ IMP::core::OpenCubicSpline class."""
7455 
7456  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7457 
7458  def __init__(self, values, minrange, spacing, extend=False):
7459  r"""__init__(OpenCubicSpline self, IMP::Floats const & values, IMP::Float minrange, IMP::Float spacing, bool extend=False) -> OpenCubicSpline"""
7460  _IMP_core.OpenCubicSpline_swiginit(self, _IMP_core.new_OpenCubicSpline(values, minrange, spacing, extend))
7461 
7462  def __str__(self):
7463  r"""__str__(OpenCubicSpline self) -> std::string"""
7464  return _IMP_core.OpenCubicSpline___str__(self)
7465 
7466  def __repr__(self):
7467  r"""__repr__(OpenCubicSpline self) -> std::string"""
7468  return _IMP_core.OpenCubicSpline___repr__(self)
7469 
7470  @staticmethod
7471  def get_from(o):
7472  return _object_cast_to_OpenCubicSpline(o)
7473 
7474  __swig_destroy__ = _IMP_core.delete_OpenCubicSpline
7475 
7476 # Register OpenCubicSpline in _IMP_core:
7477 _IMP_core.OpenCubicSpline_swigregister(OpenCubicSpline)
7478 class QuadraticClosePairsFinder(ClosePairsFinder):
7479  r"""Proxy of C++ IMP::core::QuadraticClosePairsFinder class."""
7480 
7481  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7482 
7483  def __init__(self):
7484  r"""__init__(QuadraticClosePairsFinder self) -> QuadraticClosePairsFinder"""
7485  _IMP_core.QuadraticClosePairsFinder_swiginit(self, _IMP_core.new_QuadraticClosePairsFinder())
7486 
7487  def get_are_close_and_filtered(self, *args):
7488  r"""
7489  get_are_close_and_filtered(QuadraticClosePairsFinder self, Particle a, Particle b) -> bool
7490  get_are_close_and_filtered(QuadraticClosePairsFinder self, Model m, ParticleIndex a, ParticleIndex b) -> bool
7491  """
7492  return _IMP_core.QuadraticClosePairsFinder_get_are_close_and_filtered(self, *args)
7493 
7494  def get_close_pairs(self, *args):
7495  r"""
7496  get_close_pairs(QuadraticClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
7497  get_close_pairs(QuadraticClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
7498  get_close_pairs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
7499  get_close_pairs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
7500  """
7501  return _IMP_core.QuadraticClosePairsFinder_get_close_pairs(self, *args)
7502 
7503  def do_get_inputs(self, m, pis):
7504  r"""do_get_inputs(QuadraticClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7505  return _IMP_core.QuadraticClosePairsFinder_do_get_inputs(self, m, pis)
7506 
7507  def get_version_info(self):
7508  r"""get_version_info(QuadraticClosePairsFinder self) -> VersionInfo"""
7509  return _IMP_core.QuadraticClosePairsFinder_get_version_info(self)
7510  __swig_destroy__ = _IMP_core.delete_QuadraticClosePairsFinder
7511 
7512  def __str__(self):
7513  r"""__str__(QuadraticClosePairsFinder self) -> std::string"""
7514  return _IMP_core.QuadraticClosePairsFinder___str__(self)
7515 
7516  def __repr__(self):
7517  r"""__repr__(QuadraticClosePairsFinder self) -> std::string"""
7518  return _IMP_core.QuadraticClosePairsFinder___repr__(self)
7519 
7520  @staticmethod
7521  def get_from(o):
7522  return _object_cast_to_QuadraticClosePairsFinder(o)
7523 
7524 
7525 # Register QuadraticClosePairsFinder in _IMP_core:
7526 _IMP_core.QuadraticClosePairsFinder_swigregister(QuadraticClosePairsFinder)
7527 class RefinedPairsPairScore(IMP.PairScore):
7528  r"""Proxy of C++ IMP::core::RefinedPairsPairScore class."""
7529 
7530  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7531 
7532  def __init__(self, r, f):
7533  r"""__init__(RefinedPairsPairScore self, Refiner r, PairScore f) -> RefinedPairsPairScore"""
7534  _IMP_core.RefinedPairsPairScore_swiginit(self, _IMP_core.new_RefinedPairsPairScore(r, f))
7535 
7536  def do_get_inputs(self, m, pis):
7537  r"""do_get_inputs(RefinedPairsPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
7538  return _IMP_core.RefinedPairsPairScore_do_get_inputs(self, m, pis)
7539 
7540  def get_version_info(self):
7541  r"""get_version_info(RefinedPairsPairScore self) -> VersionInfo"""
7542  return _IMP_core.RefinedPairsPairScore_get_version_info(self)
7543  __swig_destroy__ = _IMP_core.delete_RefinedPairsPairScore
7544 
7545  def __str__(self):
7546  r"""__str__(RefinedPairsPairScore self) -> std::string"""
7547  return _IMP_core.RefinedPairsPairScore___str__(self)
7548 
7549  def __repr__(self):
7550  r"""__repr__(RefinedPairsPairScore self) -> std::string"""
7551  return _IMP_core.RefinedPairsPairScore___repr__(self)
7552 
7553  @staticmethod
7554  def get_from(o):
7555  return _object_cast_to_RefinedPairsPairScore(o)
7556 
7557 
7558 # Register RefinedPairsPairScore in _IMP_core:
7559 _IMP_core.RefinedPairsPairScore_swigregister(RefinedPairsPairScore)
7560 class RigidBody(XYZ):
7561  r"""Proxy of C++ IMP::core::RigidBody class."""
7562 
7563  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7564 
7565  def get_rigid_members(self):
7566  r"""get_rigid_members(RigidBody self) -> IMP::core::RigidMembers"""
7567  return _IMP_core.RigidBody_get_rigid_members(self)
7568 
7569  @staticmethod
7570  def get_rotation_keys():
7571  r"""get_rotation_keys() -> IMP::FloatKeys"""
7572  return _IMP_core.RigidBody_get_rotation_keys()
7573 
7574  def get_member_particle_indexes(self):
7575  r"""get_member_particle_indexes(RigidBody self) -> IMP::ParticleIndexes const &"""
7576  return _IMP_core.RigidBody_get_member_particle_indexes(self)
7577 
7578  def get_body_member_particle_indexes(self):
7579  r"""get_body_member_particle_indexes(RigidBody self) -> IMP::ParticleIndexes const &"""
7580  return _IMP_core.RigidBody_get_body_member_particle_indexes(self)
7581 
7582  def get_member_indexes(self):
7583  r"""get_member_indexes(RigidBody self) -> IMP::ParticleIndexes"""
7584  return _IMP_core.RigidBody_get_member_indexes(self)
7585 
7586  def show(self, *args):
7587  r"""show(RigidBody self, _ostream out=std::cout)"""
7588  return _IMP_core.RigidBody_show(self, *args)
7589 
7590  @staticmethod
7591  def setup_particle(*args):
7592  r"""
7593  setup_particle(Model m, ParticleIndex pi, _ParticleIndexesAdaptor ps) -> RigidBody
7594  setup_particle(_ParticleAdaptor pa, _ParticleIndexesAdaptor ps) -> RigidBody
7595  setup_particle(Model m, ParticleIndex pi, ReferenceFrame3D rf) -> RigidBody
7596  setup_particle(_ParticleAdaptor pa, ReferenceFrame3D rf) -> RigidBody
7597  """
7598  return _IMP_core.RigidBody_setup_particle(*args)
7599 
7600  @staticmethod
7601  def teardown_particle(rb):
7602  r"""teardown_particle(RigidBody rb)"""
7603  return _IMP_core.RigidBody_teardown_particle(rb)
7604 
7605  def __init__(self, *args):
7606  r"""
7607  __init__(RigidBody self) -> RigidBody
7608  __init__(RigidBody self, Model m, ParticleIndex id) -> RigidBody
7609  __init__(RigidBody self, _ParticleAdaptor d) -> RigidBody
7610  __init__(RigidBody self, RigidBody arg2) -> RigidBody
7611  """
7612  _IMP_core.RigidBody_swiginit(self, _IMP_core.new_RigidBody(*args))
7613  __swig_destroy__ = _IMP_core.delete_RigidBody
7614 
7615  @staticmethod
7616  def get_is_setup(*args):
7617  r"""
7618  get_is_setup(_ParticleAdaptor p) -> bool
7619  get_is_setup(Model m, ParticleIndex pi) -> bool
7620  """
7621  return _IMP_core.RigidBody_get_is_setup(*args)
7622 
7623  def get_coordinates(self):
7624  r"""get_coordinates(RigidBody self) -> Vector3D"""
7625  return _IMP_core.RigidBody_get_coordinates(self)
7626 
7627  def get_rotation(self):
7628  r"""get_rotation(RigidBody self) -> Rotation3D"""
7629  return _IMP_core.RigidBody_get_rotation(self)
7630 
7631  def get_reference_frame(self):
7632  r"""get_reference_frame(RigidBody self) -> ReferenceFrame3D"""
7633  return _IMP_core.RigidBody_get_reference_frame(self)
7634 
7635  def set_reference_frame(self, tr):
7636  r"""set_reference_frame(RigidBody self, ReferenceFrame3D tr)"""
7637  return _IMP_core.RigidBody_set_reference_frame(self, tr)
7638 
7639  def set_reference_frame_lazy(self, tr):
7640  r"""set_reference_frame_lazy(RigidBody self, ReferenceFrame3D tr)"""
7641  return _IMP_core.RigidBody_set_reference_frame_lazy(self, tr)
7642 
7643  def set_reference_frame_from_members(self, members):
7644  r"""set_reference_frame_from_members(RigidBody self, IMP::ParticleIndexes const & members)"""
7645  return _IMP_core.RigidBody_set_reference_frame_from_members(self, members)
7646 
7647  def pull_back_members_adjoints(self, da):
7648  r"""pull_back_members_adjoints(RigidBody self, DerivativeAccumulator da)"""
7649  return _IMP_core.RigidBody_pull_back_members_adjoints(self, da)
7650 
7651  def pull_back_member_adjoints(self, pi, da):
7652  r"""pull_back_member_adjoints(RigidBody self, ParticleIndex pi, DerivativeAccumulator da)"""
7653  return _IMP_core.RigidBody_pull_back_member_adjoints(self, pi, da)
7654 
7655  def pull_back_body_member_adjoints(self, pi, da):
7656  r"""pull_back_body_member_adjoints(RigidBody self, ParticleIndex pi, DerivativeAccumulator da)"""
7657  return _IMP_core.RigidBody_pull_back_body_member_adjoints(self, pi, da)
7658 
7659  def add_to_derivatives(self, *args):
7660  r"""
7661  add_to_derivatives(RigidBody self, Vector3D local_derivative, Vector3D local_location, DerivativeAccumulator da)
7662  add_to_derivatives(RigidBody self, Vector3D local_derivative, Vector3D global_derivative, Vector3D local_location, Rotation3D rot_local_to_global, DerivativeAccumulator da)
7663  """
7664  return _IMP_core.RigidBody_add_to_derivatives(self, *args)
7665 
7666  def add_to_rotational_derivatives(self, *args):
7667  r"""
7668  add_to_rotational_derivatives(RigidBody self, Vector4D other_qderiv, Rotation3D rot_other_to_local, Rotation3D rot_local_to_global, DerivativeAccumulator da)
7669  add_to_rotational_derivatives(RigidBody self, Vector4D qderiv, DerivativeAccumulator da)
7670  """
7671  return _IMP_core.RigidBody_add_to_rotational_derivatives(self, *args)
7672 
7673  def add_to_torque(self, torque_local, da):
7674  r"""add_to_torque(RigidBody self, Vector3D torque_local, DerivativeAccumulator da)"""
7675  return _IMP_core.RigidBody_add_to_torque(self, torque_local, da)
7676 
7677  def get_torque(self):
7678  r"""get_torque(RigidBody self) -> Vector3D"""
7679  return _IMP_core.RigidBody_get_torque(self)
7680 
7681  def get_coordinates_are_optimized(self):
7682  r"""get_coordinates_are_optimized(RigidBody self) -> bool"""
7683  return _IMP_core.RigidBody_get_coordinates_are_optimized(self)
7684 
7685  def set_coordinates_are_optimized(self, tf):
7686  r"""set_coordinates_are_optimized(RigidBody self, bool tf)"""
7687  return _IMP_core.RigidBody_set_coordinates_are_optimized(self, tf)
7688 
7689  def normalize_rotation(self):
7690  r"""normalize_rotation(RigidBody self)"""
7691  return _IMP_core.RigidBody_normalize_rotation(self)
7692 
7693  def update_members(self):
7694  r"""update_members(RigidBody self)"""
7695  return _IMP_core.RigidBody_update_members(self)
7696 
7697  def get_rotational_derivatives(self):
7698  r"""get_rotational_derivatives(RigidBody self) -> Vector4D"""
7699  return _IMP_core.RigidBody_get_rotational_derivatives(self)
7700 
7701  def get_number_of_members(self):
7702  r"""get_number_of_members(RigidBody self) -> unsigned int"""
7703  return _IMP_core.RigidBody_get_number_of_members(self)
7704 
7705  def get_member(self, i):
7706  r"""get_member(RigidBody self, unsigned int i) -> RigidBodyMember"""
7707  return _IMP_core.RigidBody_get_member(self, i)
7708 
7709  def add_member(self, p):
7710  r"""add_member(RigidBody self, _ParticleIndexAdaptor p)"""
7711  return _IMP_core.RigidBody_add_member(self, p)
7712 
7713  def add_non_rigid_member(self, p):
7714  r"""add_non_rigid_member(RigidBody self, _ParticleIndexAdaptor p)"""
7715  return _IMP_core.RigidBody_add_non_rigid_member(self, p)
7716 
7717  def set_is_rigid_member(self, pi, tf):
7718  r"""set_is_rigid_member(RigidBody self, ParticleIndex pi, bool tf)"""
7719  return _IMP_core.RigidBody_set_is_rigid_member(self, pi, tf)
7720 
7721  def remove_member(self, p):
7722  r"""remove_member(RigidBody self, _ParticleIndexAdaptor p)"""
7723  return _IMP_core.RigidBody_remove_member(self, p)
7724 
7725  def add_attribute(self, *args):
7726  r"""
7727  add_attribute(RigidBody self, FloatKey k, IMP::Float v, bool opt)
7728  add_attribute(RigidBody self, FloatKey a0, IMP::Float a1)
7729  add_attribute(RigidBody self, IntKey a0, IMP::Int a1)
7730  add_attribute(RigidBody self, FloatsKey a0, IMP::Floats a1)
7731  add_attribute(RigidBody self, IntsKey a0, IMP::Ints a1)
7732  add_attribute(RigidBody self, StringKey a0, IMP::String a1)
7733  add_attribute(RigidBody self, ParticleIndexKey a0, Particle a1)
7734  add_attribute(RigidBody self, ObjectKey a0, Object a1)
7735  add_attribute(RigidBody self, SparseFloatKey a0, IMP::Float a1)
7736  add_attribute(RigidBody self, SparseIntKey a0, IMP::Int a1)
7737  add_attribute(RigidBody self, SparseStringKey a0, IMP::String a1)
7738  add_attribute(RigidBody self, SparseParticleIndexKey a0, ParticleIndex a1)
7739  """
7740  return _IMP_core.RigidBody_add_attribute(self, *args)
7741 
7742  def get_value(self, *args):
7743  r"""
7744  get_value(RigidBody self, FloatKey a0) -> IMP::Float
7745  get_value(RigidBody self, IntKey a0) -> IMP::Int
7746  get_value(RigidBody self, FloatsKey a0) -> IMP::Floats
7747  get_value(RigidBody self, IntsKey a0) -> IMP::Ints
7748  get_value(RigidBody self, StringKey a0) -> IMP::String
7749  get_value(RigidBody self, ParticleIndexKey a0) -> Particle
7750  get_value(RigidBody self, ObjectKey a0) -> Object
7751  get_value(RigidBody self, SparseFloatKey a0) -> IMP::Float
7752  get_value(RigidBody self, SparseIntKey a0) -> IMP::Int
7753  get_value(RigidBody self, SparseStringKey a0) -> IMP::String
7754  get_value(RigidBody self, SparseParticleIndexKey a0) -> ParticleIndex
7755  """
7756  return _IMP_core.RigidBody_get_value(self, *args)
7757 
7758  def set_value(self, *args):
7759  r"""
7760  set_value(RigidBody self, FloatKey a0, IMP::Float a1)
7761  set_value(RigidBody self, IntKey a0, IMP::Int a1)
7762  set_value(RigidBody self, FloatsKey a0, IMP::Floats a1)
7763  set_value(RigidBody self, IntsKey a0, IMP::Ints a1)
7764  set_value(RigidBody self, StringKey a0, IMP::String a1)
7765  set_value(RigidBody self, ParticleIndexKey a0, Particle a1)
7766  set_value(RigidBody self, ObjectKey a0, Object a1)
7767  set_value(RigidBody self, SparseFloatKey a0, IMP::Float a1)
7768  set_value(RigidBody self, SparseIntKey a0, IMP::Int a1)
7769  set_value(RigidBody self, SparseStringKey a0, IMP::String a1)
7770  set_value(RigidBody self, SparseParticleIndexKey a0, ParticleIndex a1)
7771  """
7772  return _IMP_core.RigidBody_set_value(self, *args)
7773 
7774  def remove_attribute(self, *args):
7775  r"""
7776  remove_attribute(RigidBody self, FloatKey a0)
7777  remove_attribute(RigidBody self, IntKey a0)
7778  remove_attribute(RigidBody self, FloatsKey a0)
7779  remove_attribute(RigidBody self, IntsKey a0)
7780  remove_attribute(RigidBody self, StringKey a0)
7781  remove_attribute(RigidBody self, ParticleIndexKey a0)
7782  remove_attribute(RigidBody self, ObjectKey a0)
7783  remove_attribute(RigidBody self, SparseFloatKey a0)
7784  remove_attribute(RigidBody self, SparseIntKey a0)
7785  remove_attribute(RigidBody self, SparseStringKey a0)
7786  remove_attribute(RigidBody self, SparseParticleIndexKey a0)
7787  """
7788  return _IMP_core.RigidBody_remove_attribute(self, *args)
7789 
7790  def has_attribute(self, *args):
7791  r"""
7792  has_attribute(RigidBody self, FloatKey a0) -> bool
7793  has_attribute(RigidBody self, IntKey a0) -> bool
7794  has_attribute(RigidBody self, FloatsKey a0) -> bool
7795  has_attribute(RigidBody self, IntsKey a0) -> bool
7796  has_attribute(RigidBody self, StringKey a0) -> bool
7797  has_attribute(RigidBody self, ParticleIndexKey a0) -> bool
7798  has_attribute(RigidBody self, ObjectKey a0) -> bool
7799  has_attribute(RigidBody self, SparseFloatKey a0) -> bool
7800  has_attribute(RigidBody self, SparseIntKey a0) -> bool
7801  has_attribute(RigidBody self, SparseStringKey a0) -> bool
7802  has_attribute(RigidBody self, SparseParticleIndexKey a0) -> bool
7803  """
7804  return _IMP_core.RigidBody_has_attribute(self, *args)
7805 
7806  def get_derivative(self, a0):
7807  r"""get_derivative(RigidBody self, FloatKey a0) -> double"""
7808  return _IMP_core.RigidBody_get_derivative(self, a0)
7809 
7810  def get_name(self):
7811  r"""get_name(RigidBody self) -> std::string"""
7812  return _IMP_core.RigidBody_get_name(self)
7813 
7814  def clear_caches(self):
7815  r"""clear_caches(RigidBody self)"""
7816  return _IMP_core.RigidBody_clear_caches(self)
7817 
7818  def set_name(self, a0):
7819  r"""set_name(RigidBody self, std::string a0)"""
7820  return _IMP_core.RigidBody_set_name(self, a0)
7821 
7822  def set_check_level(self, a0):
7823  r"""set_check_level(RigidBody self, IMP::CheckLevel a0)"""
7824  return _IMP_core.RigidBody_set_check_level(self, a0)
7825 
7826  def add_to_derivative(self, a0, a1, a2):
7827  r"""add_to_derivative(RigidBody self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
7828  return _IMP_core.RigidBody_add_to_derivative(self, a0, a1, a2)
7829 
7830  def set_is_optimized(self, a0, a1):
7831  r"""set_is_optimized(RigidBody self, FloatKey a0, bool a1)"""
7832  return _IMP_core.RigidBody_set_is_optimized(self, a0, a1)
7833 
7834  def get_is_optimized(self, a0):
7835  r"""get_is_optimized(RigidBody self, FloatKey a0) -> bool"""
7836  return _IMP_core.RigidBody_get_is_optimized(self, a0)
7837 
7838  def get_check_level(self):
7839  r"""get_check_level(RigidBody self) -> IMP::CheckLevel"""
7840  return _IMP_core.RigidBody_get_check_level(self)
7841 
7842  def __eq__(self, *args):
7843  r"""
7844  __eq__(RigidBody self, RigidBody o) -> bool
7845  __eq__(RigidBody self, Particle d) -> bool
7846  """
7847  return _IMP_core.RigidBody___eq__(self, *args)
7848 
7849  def __ne__(self, *args):
7850  r"""
7851  __ne__(RigidBody self, RigidBody o) -> bool
7852  __ne__(RigidBody self, Particle d) -> bool
7853  """
7854  return _IMP_core.RigidBody___ne__(self, *args)
7855 
7856  def __le__(self, *args):
7857  r"""
7858  __le__(RigidBody self, RigidBody o) -> bool
7859  __le__(RigidBody self, Particle d) -> bool
7860  """
7861  return _IMP_core.RigidBody___le__(self, *args)
7862 
7863  def __lt__(self, *args):
7864  r"""
7865  __lt__(RigidBody self, RigidBody o) -> bool
7866  __lt__(RigidBody self, Particle d) -> bool
7867  """
7868  return _IMP_core.RigidBody___lt__(self, *args)
7869 
7870  def __ge__(self, *args):
7871  r"""
7872  __ge__(RigidBody self, RigidBody o) -> bool
7873  __ge__(RigidBody self, Particle d) -> bool
7874  """
7875  return _IMP_core.RigidBody___ge__(self, *args)
7876 
7877  def __gt__(self, *args):
7878  r"""
7879  __gt__(RigidBody self, RigidBody o) -> bool
7880  __gt__(RigidBody self, Particle d) -> bool
7881  """
7882  return _IMP_core.RigidBody___gt__(self, *args)
7883 
7884  def __hash__(self):
7885  r"""__hash__(RigidBody self) -> std::size_t"""
7886  return _IMP_core.RigidBody___hash__(self)
7887 
7888  def __str__(self):
7889  r"""__str__(RigidBody self) -> std::string"""
7890  return _IMP_core.RigidBody___str__(self)
7891 
7892  def __repr__(self):
7893  r"""__repr__(RigidBody self) -> std::string"""
7894  return _IMP_core.RigidBody___repr__(self)
7895 
7896  def _get_as_binary(self):
7897  r"""_get_as_binary(RigidBody self) -> PyObject *"""
7898  return _IMP_core.RigidBody__get_as_binary(self)
7899 
7900  def _set_from_binary(self, p):
7901  r"""_set_from_binary(RigidBody self, PyObject * p)"""
7902  return _IMP_core.RigidBody__set_from_binary(self, p)
7903 
7904  def __getstate__(self):
7905  p = self._get_as_binary()
7906  if len(self.__dict__) > 1:
7907  d = self.__dict__.copy()
7908  del d['this']
7909  p = (d, p)
7910  return p
7911 
7912  def __setstate__(self, p):
7913  if not hasattr(self, 'this'):
7914  self.__init__()
7915  if isinstance(p, tuple):
7916  d, p = p
7917  self.__dict__.update(d)
7918  return self._set_from_binary(p)
7919 
7920 
7921 # Register RigidBody in _IMP_core:
7922 _IMP_core.RigidBody_swigregister(RigidBody)
7923 
7925  r"""add_rigid_body_cache_key(ObjectKey k)"""
7926  return _IMP_core.add_rigid_body_cache_key(k)
7927 class RigidBodyMember(XYZ):
7928  r"""Proxy of C++ IMP::core::RigidBodyMember class."""
7929 
7930  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
7931 
7932  def show(self, *args):
7933  r"""show(RigidBodyMember self, _ostream out=std::cout)"""
7934  return _IMP_core.RigidBodyMember_show(self, *args)
7935 
7936  def get_rigid_body(self):
7937  r"""get_rigid_body(RigidBodyMember self) -> RigidBody"""
7938  return _IMP_core.RigidBodyMember_get_rigid_body(self)
7939 
7940  def get_internal_coordinates(self):
7941  r"""get_internal_coordinates(RigidBodyMember self) -> Vector3D"""
7942  return _IMP_core.RigidBodyMember_get_internal_coordinates(self)
7943 
7944  def set_internal_coordinates(self, v):
7945  r"""set_internal_coordinates(RigidBodyMember self, Vector3D v)"""
7946  return _IMP_core.RigidBodyMember_set_internal_coordinates(self, v)
7947 
7948  def set_internal_transformation(self, v):
7949  r"""set_internal_transformation(RigidBodyMember self, Transformation3D v)"""
7950  return _IMP_core.RigidBodyMember_set_internal_transformation(self, v)
7951 
7952  def get_internal_transformation(self):
7953  r"""get_internal_transformation(RigidBodyMember self) -> Transformation3D"""
7954  return _IMP_core.RigidBodyMember_get_internal_transformation(self)
7955  __swig_destroy__ = _IMP_core.delete_RigidBodyMember
7956 
7957  def set_coordinates(self, *args):
7958  r"""
7959  set_coordinates(RigidBodyMember self, Vector3D center)
7960  set_coordinates(RigidBodyMember self, Transformation3D tr)
7961  """
7962  return _IMP_core.RigidBodyMember_set_coordinates(self, *args)
7963 
7964  def __init__(self, *args):
7965  r"""
7966  __init__(RigidBodyMember self) -> RigidBodyMember
7967  __init__(RigidBodyMember self, Model m, ParticleIndex id) -> RigidBodyMember
7968  __init__(RigidBodyMember self, _ParticleAdaptor d) -> RigidBodyMember
7969  __init__(RigidBodyMember self, RigidBodyMember arg2) -> RigidBodyMember
7970  """
7971  _IMP_core.RigidBodyMember_swiginit(self, _IMP_core.new_RigidBodyMember(*args))
7972 
7973  @staticmethod
7974  def get_is_setup(*args):
7975  r"""
7976  get_is_setup(_ParticleAdaptor p) -> bool
7977  get_is_setup(Model m, _ParticleIndexAdaptor p) -> bool
7978  """
7979  return _IMP_core.RigidBodyMember_get_is_setup(*args)
7980 
7981  @staticmethod
7982  def get_internal_coordinate_keys():
7983  r"""get_internal_coordinate_keys() -> IMP::FloatKeys"""
7984  return _IMP_core.RigidBodyMember_get_internal_coordinate_keys()
7985 
7986  @staticmethod
7987  def get_internal_rotation_keys():
7988  r"""get_internal_rotation_keys() -> IMP::FloatKeys"""
7989  return _IMP_core.RigidBodyMember_get_internal_rotation_keys()
7990 
7991  def add_attribute(self, *args):
7992  r"""
7993  add_attribute(RigidBodyMember self, FloatKey k, IMP::Float v, bool opt)
7994  add_attribute(RigidBodyMember self, FloatKey a0, IMP::Float a1)
7995  add_attribute(RigidBodyMember self, IntKey a0, IMP::Int a1)
7996  add_attribute(RigidBodyMember self, FloatsKey a0, IMP::Floats a1)
7997  add_attribute(RigidBodyMember self, IntsKey a0, IMP::Ints a1)
7998  add_attribute(RigidBodyMember self, StringKey a0, IMP::String a1)
7999  add_attribute(RigidBodyMember self, ParticleIndexKey a0, Particle a1)
8000  add_attribute(RigidBodyMember self, ObjectKey a0, Object a1)
8001  add_attribute(RigidBodyMember self, SparseFloatKey a0, IMP::Float a1)
8002  add_attribute(RigidBodyMember self, SparseIntKey a0, IMP::Int a1)
8003  add_attribute(RigidBodyMember self, SparseStringKey a0, IMP::String a1)
8004  add_attribute(RigidBodyMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8005  """
8006  return _IMP_core.RigidBodyMember_add_attribute(self, *args)
8007 
8008  def get_value(self, *args):
8009  r"""
8010  get_value(RigidBodyMember self, FloatKey a0) -> IMP::Float
8011  get_value(RigidBodyMember self, IntKey a0) -> IMP::Int
8012  get_value(RigidBodyMember self, FloatsKey a0) -> IMP::Floats
8013  get_value(RigidBodyMember self, IntsKey a0) -> IMP::Ints
8014  get_value(RigidBodyMember self, StringKey a0) -> IMP::String
8015  get_value(RigidBodyMember self, ParticleIndexKey a0) -> Particle
8016  get_value(RigidBodyMember self, ObjectKey a0) -> Object
8017  get_value(RigidBodyMember self, SparseFloatKey a0) -> IMP::Float
8018  get_value(RigidBodyMember self, SparseIntKey a0) -> IMP::Int
8019  get_value(RigidBodyMember self, SparseStringKey a0) -> IMP::String
8020  get_value(RigidBodyMember self, SparseParticleIndexKey a0) -> ParticleIndex
8021  """
8022  return _IMP_core.RigidBodyMember_get_value(self, *args)
8023 
8024  def set_value(self, *args):
8025  r"""
8026  set_value(RigidBodyMember self, FloatKey a0, IMP::Float a1)
8027  set_value(RigidBodyMember self, IntKey a0, IMP::Int a1)
8028  set_value(RigidBodyMember self, FloatsKey a0, IMP::Floats a1)
8029  set_value(RigidBodyMember self, IntsKey a0, IMP::Ints a1)
8030  set_value(RigidBodyMember self, StringKey a0, IMP::String a1)
8031  set_value(RigidBodyMember self, ParticleIndexKey a0, Particle a1)
8032  set_value(RigidBodyMember self, ObjectKey a0, Object a1)
8033  set_value(RigidBodyMember self, SparseFloatKey a0, IMP::Float a1)
8034  set_value(RigidBodyMember self, SparseIntKey a0, IMP::Int a1)
8035  set_value(RigidBodyMember self, SparseStringKey a0, IMP::String a1)
8036  set_value(RigidBodyMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8037  """
8038  return _IMP_core.RigidBodyMember_set_value(self, *args)
8039 
8040  def remove_attribute(self, *args):
8041  r"""
8042  remove_attribute(RigidBodyMember self, FloatKey a0)
8043  remove_attribute(RigidBodyMember self, IntKey a0)
8044  remove_attribute(RigidBodyMember self, FloatsKey a0)
8045  remove_attribute(RigidBodyMember self, IntsKey a0)
8046  remove_attribute(RigidBodyMember self, StringKey a0)
8047  remove_attribute(RigidBodyMember self, ParticleIndexKey a0)
8048  remove_attribute(RigidBodyMember self, ObjectKey a0)
8049  remove_attribute(RigidBodyMember self, SparseFloatKey a0)
8050  remove_attribute(RigidBodyMember self, SparseIntKey a0)
8051  remove_attribute(RigidBodyMember self, SparseStringKey a0)
8052  remove_attribute(RigidBodyMember self, SparseParticleIndexKey a0)
8053  """
8054  return _IMP_core.RigidBodyMember_remove_attribute(self, *args)
8055 
8056  def has_attribute(self, *args):
8057  r"""
8058  has_attribute(RigidBodyMember self, FloatKey a0) -> bool
8059  has_attribute(RigidBodyMember self, IntKey a0) -> bool
8060  has_attribute(RigidBodyMember self, FloatsKey a0) -> bool
8061  has_attribute(RigidBodyMember self, IntsKey a0) -> bool
8062  has_attribute(RigidBodyMember self, StringKey a0) -> bool
8063  has_attribute(RigidBodyMember self, ParticleIndexKey a0) -> bool
8064  has_attribute(RigidBodyMember self, ObjectKey a0) -> bool
8065  has_attribute(RigidBodyMember self, SparseFloatKey a0) -> bool
8066  has_attribute(RigidBodyMember self, SparseIntKey a0) -> bool
8067  has_attribute(RigidBodyMember self, SparseStringKey a0) -> bool
8068  has_attribute(RigidBodyMember self, SparseParticleIndexKey a0) -> bool
8069  """
8070  return _IMP_core.RigidBodyMember_has_attribute(self, *args)
8071 
8072  def get_derivative(self, a0):
8073  r"""get_derivative(RigidBodyMember self, FloatKey a0) -> double"""
8074  return _IMP_core.RigidBodyMember_get_derivative(self, a0)
8075 
8076  def get_name(self):
8077  r"""get_name(RigidBodyMember self) -> std::string"""
8078  return _IMP_core.RigidBodyMember_get_name(self)
8079 
8080  def clear_caches(self):
8081  r"""clear_caches(RigidBodyMember self)"""
8082  return _IMP_core.RigidBodyMember_clear_caches(self)
8083 
8084  def set_name(self, a0):
8085  r"""set_name(RigidBodyMember self, std::string a0)"""
8086  return _IMP_core.RigidBodyMember_set_name(self, a0)
8087 
8088  def set_check_level(self, a0):
8089  r"""set_check_level(RigidBodyMember self, IMP::CheckLevel a0)"""
8090  return _IMP_core.RigidBodyMember_set_check_level(self, a0)
8091 
8092  def add_to_derivative(self, a0, a1, a2):
8093  r"""add_to_derivative(RigidBodyMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8094  return _IMP_core.RigidBodyMember_add_to_derivative(self, a0, a1, a2)
8095 
8096  def set_is_optimized(self, a0, a1):
8097  r"""set_is_optimized(RigidBodyMember self, FloatKey a0, bool a1)"""
8098  return _IMP_core.RigidBodyMember_set_is_optimized(self, a0, a1)
8099 
8100  def get_is_optimized(self, a0):
8101  r"""get_is_optimized(RigidBodyMember self, FloatKey a0) -> bool"""
8102  return _IMP_core.RigidBodyMember_get_is_optimized(self, a0)
8103 
8104  def get_check_level(self):
8105  r"""get_check_level(RigidBodyMember self) -> IMP::CheckLevel"""
8106  return _IMP_core.RigidBodyMember_get_check_level(self)
8107 
8108  def __eq__(self, *args):
8109  r"""
8110  __eq__(RigidBodyMember self, RigidBodyMember o) -> bool
8111  __eq__(RigidBodyMember self, Particle d) -> bool
8112  """
8113  return _IMP_core.RigidBodyMember___eq__(self, *args)
8114 
8115  def __ne__(self, *args):
8116  r"""
8117  __ne__(RigidBodyMember self, RigidBodyMember o) -> bool
8118  __ne__(RigidBodyMember self, Particle d) -> bool
8119  """
8120  return _IMP_core.RigidBodyMember___ne__(self, *args)
8121 
8122  def __le__(self, *args):
8123  r"""
8124  __le__(RigidBodyMember self, RigidBodyMember o) -> bool
8125  __le__(RigidBodyMember self, Particle d) -> bool
8126  """
8127  return _IMP_core.RigidBodyMember___le__(self, *args)
8128 
8129  def __lt__(self, *args):
8130  r"""
8131  __lt__(RigidBodyMember self, RigidBodyMember o) -> bool
8132  __lt__(RigidBodyMember self, Particle d) -> bool
8133  """
8134  return _IMP_core.RigidBodyMember___lt__(self, *args)
8135 
8136  def __ge__(self, *args):
8137  r"""
8138  __ge__(RigidBodyMember self, RigidBodyMember o) -> bool
8139  __ge__(RigidBodyMember self, Particle d) -> bool
8140  """
8141  return _IMP_core.RigidBodyMember___ge__(self, *args)
8142 
8143  def __gt__(self, *args):
8144  r"""
8145  __gt__(RigidBodyMember self, RigidBodyMember o) -> bool
8146  __gt__(RigidBodyMember self, Particle d) -> bool
8147  """
8148  return _IMP_core.RigidBodyMember___gt__(self, *args)
8149 
8150  def __hash__(self):
8151  r"""__hash__(RigidBodyMember self) -> std::size_t"""
8152  return _IMP_core.RigidBodyMember___hash__(self)
8153 
8154  def __str__(self):
8155  r"""__str__(RigidBodyMember self) -> std::string"""
8156  return _IMP_core.RigidBodyMember___str__(self)
8157 
8158  def __repr__(self):
8159  r"""__repr__(RigidBodyMember self) -> std::string"""
8160  return _IMP_core.RigidBodyMember___repr__(self)
8161 
8162  def _get_as_binary(self):
8163  r"""_get_as_binary(RigidBodyMember self) -> PyObject *"""
8164  return _IMP_core.RigidBodyMember__get_as_binary(self)
8165 
8166  def _set_from_binary(self, p):
8167  r"""_set_from_binary(RigidBodyMember self, PyObject * p)"""
8168  return _IMP_core.RigidBodyMember__set_from_binary(self, p)
8169 
8170  def __getstate__(self):
8171  p = self._get_as_binary()
8172  if len(self.__dict__) > 1:
8173  d = self.__dict__.copy()
8174  del d['this']
8175  p = (d, p)
8176  return p
8177 
8178  def __setstate__(self, p):
8179  if not hasattr(self, 'this'):
8180  self.__init__()
8181  if isinstance(p, tuple):
8182  d, p = p
8183  self.__dict__.update(d)
8184  return self._set_from_binary(p)
8185 
8186 
8187 # Register RigidBodyMember in _IMP_core:
8188 _IMP_core.RigidBodyMember_swigregister(RigidBodyMember)
8189 class RigidMember(RigidBodyMember):
8190  r"""Proxy of C++ IMP::core::RigidMember class."""
8191 
8192  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8193 
8194  def show(self, *args):
8195  r"""show(RigidMember self, _ostream out=std::cout)"""
8196  return _IMP_core.RigidMember_show(self, *args)
8197 
8198  def __init__(self, *args):
8199  r"""
8200  __init__(RigidMember self) -> RigidMember
8201  __init__(RigidMember self, Model m, ParticleIndex id) -> RigidMember
8202  __init__(RigidMember self, _ParticleAdaptor d) -> RigidMember
8203  __init__(RigidMember self, RigidMember arg2) -> RigidMember
8204  """
8205  _IMP_core.RigidMember_swiginit(self, _IMP_core.new_RigidMember(*args))
8206  __swig_destroy__ = _IMP_core.delete_RigidMember
8207 
8208  @staticmethod
8209  def get_is_setup(*args):
8210  r"""
8211  get_is_setup(_ParticleAdaptor p) -> bool
8212  get_is_setup(Model m, _ParticleIndexAdaptor p) -> bool
8213  """
8214  return _IMP_core.RigidMember_get_is_setup(*args)
8215 
8216  def add_attribute(self, *args):
8217  r"""
8218  add_attribute(RigidMember self, FloatKey k, IMP::Float v, bool opt)
8219  add_attribute(RigidMember self, FloatKey a0, IMP::Float a1)
8220  add_attribute(RigidMember self, IntKey a0, IMP::Int a1)
8221  add_attribute(RigidMember self, FloatsKey a0, IMP::Floats a1)
8222  add_attribute(RigidMember self, IntsKey a0, IMP::Ints a1)
8223  add_attribute(RigidMember self, StringKey a0, IMP::String a1)
8224  add_attribute(RigidMember self, ParticleIndexKey a0, Particle a1)
8225  add_attribute(RigidMember self, ObjectKey a0, Object a1)
8226  add_attribute(RigidMember self, SparseFloatKey a0, IMP::Float a1)
8227  add_attribute(RigidMember self, SparseIntKey a0, IMP::Int a1)
8228  add_attribute(RigidMember self, SparseStringKey a0, IMP::String a1)
8229  add_attribute(RigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8230  """
8231  return _IMP_core.RigidMember_add_attribute(self, *args)
8232 
8233  def get_value(self, *args):
8234  r"""
8235  get_value(RigidMember self, FloatKey a0) -> IMP::Float
8236  get_value(RigidMember self, IntKey a0) -> IMP::Int
8237  get_value(RigidMember self, FloatsKey a0) -> IMP::Floats
8238  get_value(RigidMember self, IntsKey a0) -> IMP::Ints
8239  get_value(RigidMember self, StringKey a0) -> IMP::String
8240  get_value(RigidMember self, ParticleIndexKey a0) -> Particle
8241  get_value(RigidMember self, ObjectKey a0) -> Object
8242  get_value(RigidMember self, SparseFloatKey a0) -> IMP::Float
8243  get_value(RigidMember self, SparseIntKey a0) -> IMP::Int
8244  get_value(RigidMember self, SparseStringKey a0) -> IMP::String
8245  get_value(RigidMember self, SparseParticleIndexKey a0) -> ParticleIndex
8246  """
8247  return _IMP_core.RigidMember_get_value(self, *args)
8248 
8249  def set_value(self, *args):
8250  r"""
8251  set_value(RigidMember self, FloatKey a0, IMP::Float a1)
8252  set_value(RigidMember self, IntKey a0, IMP::Int a1)
8253  set_value(RigidMember self, FloatsKey a0, IMP::Floats a1)
8254  set_value(RigidMember self, IntsKey a0, IMP::Ints a1)
8255  set_value(RigidMember self, StringKey a0, IMP::String a1)
8256  set_value(RigidMember self, ParticleIndexKey a0, Particle a1)
8257  set_value(RigidMember self, ObjectKey a0, Object a1)
8258  set_value(RigidMember self, SparseFloatKey a0, IMP::Float a1)
8259  set_value(RigidMember self, SparseIntKey a0, IMP::Int a1)
8260  set_value(RigidMember self, SparseStringKey a0, IMP::String a1)
8261  set_value(RigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8262  """
8263  return _IMP_core.RigidMember_set_value(self, *args)
8264 
8265  def remove_attribute(self, *args):
8266  r"""
8267  remove_attribute(RigidMember self, FloatKey a0)
8268  remove_attribute(RigidMember self, IntKey a0)
8269  remove_attribute(RigidMember self, FloatsKey a0)
8270  remove_attribute(RigidMember self, IntsKey a0)
8271  remove_attribute(RigidMember self, StringKey a0)
8272  remove_attribute(RigidMember self, ParticleIndexKey a0)
8273  remove_attribute(RigidMember self, ObjectKey a0)
8274  remove_attribute(RigidMember self, SparseFloatKey a0)
8275  remove_attribute(RigidMember self, SparseIntKey a0)
8276  remove_attribute(RigidMember self, SparseStringKey a0)
8277  remove_attribute(RigidMember self, SparseParticleIndexKey a0)
8278  """
8279  return _IMP_core.RigidMember_remove_attribute(self, *args)
8280 
8281  def has_attribute(self, *args):
8282  r"""
8283  has_attribute(RigidMember self, FloatKey a0) -> bool
8284  has_attribute(RigidMember self, IntKey a0) -> bool
8285  has_attribute(RigidMember self, FloatsKey a0) -> bool
8286  has_attribute(RigidMember self, IntsKey a0) -> bool
8287  has_attribute(RigidMember self, StringKey a0) -> bool
8288  has_attribute(RigidMember self, ParticleIndexKey a0) -> bool
8289  has_attribute(RigidMember self, ObjectKey a0) -> bool
8290  has_attribute(RigidMember self, SparseFloatKey a0) -> bool
8291  has_attribute(RigidMember self, SparseIntKey a0) -> bool
8292  has_attribute(RigidMember self, SparseStringKey a0) -> bool
8293  has_attribute(RigidMember self, SparseParticleIndexKey a0) -> bool
8294  """
8295  return _IMP_core.RigidMember_has_attribute(self, *args)
8296 
8297  def get_derivative(self, a0):
8298  r"""get_derivative(RigidMember self, FloatKey a0) -> double"""
8299  return _IMP_core.RigidMember_get_derivative(self, a0)
8300 
8301  def get_name(self):
8302  r"""get_name(RigidMember self) -> std::string"""
8303  return _IMP_core.RigidMember_get_name(self)
8304 
8305  def clear_caches(self):
8306  r"""clear_caches(RigidMember self)"""
8307  return _IMP_core.RigidMember_clear_caches(self)
8308 
8309  def set_name(self, a0):
8310  r"""set_name(RigidMember self, std::string a0)"""
8311  return _IMP_core.RigidMember_set_name(self, a0)
8312 
8313  def set_check_level(self, a0):
8314  r"""set_check_level(RigidMember self, IMP::CheckLevel a0)"""
8315  return _IMP_core.RigidMember_set_check_level(self, a0)
8316 
8317  def add_to_derivative(self, a0, a1, a2):
8318  r"""add_to_derivative(RigidMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8319  return _IMP_core.RigidMember_add_to_derivative(self, a0, a1, a2)
8320 
8321  def set_is_optimized(self, a0, a1):
8322  r"""set_is_optimized(RigidMember self, FloatKey a0, bool a1)"""
8323  return _IMP_core.RigidMember_set_is_optimized(self, a0, a1)
8324 
8325  def get_is_optimized(self, a0):
8326  r"""get_is_optimized(RigidMember self, FloatKey a0) -> bool"""
8327  return _IMP_core.RigidMember_get_is_optimized(self, a0)
8328 
8329  def get_check_level(self):
8330  r"""get_check_level(RigidMember self) -> IMP::CheckLevel"""
8331  return _IMP_core.RigidMember_get_check_level(self)
8332 
8333  def __eq__(self, *args):
8334  r"""
8335  __eq__(RigidMember self, RigidMember o) -> bool
8336  __eq__(RigidMember self, Particle d) -> bool
8337  """
8338  return _IMP_core.RigidMember___eq__(self, *args)
8339 
8340  def __ne__(self, *args):
8341  r"""
8342  __ne__(RigidMember self, RigidMember o) -> bool
8343  __ne__(RigidMember self, Particle d) -> bool
8344  """
8345  return _IMP_core.RigidMember___ne__(self, *args)
8346 
8347  def __le__(self, *args):
8348  r"""
8349  __le__(RigidMember self, RigidMember o) -> bool
8350  __le__(RigidMember self, Particle d) -> bool
8351  """
8352  return _IMP_core.RigidMember___le__(self, *args)
8353 
8354  def __lt__(self, *args):
8355  r"""
8356  __lt__(RigidMember self, RigidMember o) -> bool
8357  __lt__(RigidMember self, Particle d) -> bool
8358  """
8359  return _IMP_core.RigidMember___lt__(self, *args)
8360 
8361  def __ge__(self, *args):
8362  r"""
8363  __ge__(RigidMember self, RigidMember o) -> bool
8364  __ge__(RigidMember self, Particle d) -> bool
8365  """
8366  return _IMP_core.RigidMember___ge__(self, *args)
8367 
8368  def __gt__(self, *args):
8369  r"""
8370  __gt__(RigidMember self, RigidMember o) -> bool
8371  __gt__(RigidMember self, Particle d) -> bool
8372  """
8373  return _IMP_core.RigidMember___gt__(self, *args)
8374 
8375  def __hash__(self):
8376  r"""__hash__(RigidMember self) -> std::size_t"""
8377  return _IMP_core.RigidMember___hash__(self)
8378 
8379  def __str__(self):
8380  r"""__str__(RigidMember self) -> std::string"""
8381  return _IMP_core.RigidMember___str__(self)
8382 
8383  def __repr__(self):
8384  r"""__repr__(RigidMember self) -> std::string"""
8385  return _IMP_core.RigidMember___repr__(self)
8386 
8387  def _get_as_binary(self):
8388  r"""_get_as_binary(RigidMember self) -> PyObject *"""
8389  return _IMP_core.RigidMember__get_as_binary(self)
8390 
8391  def _set_from_binary(self, p):
8392  r"""_set_from_binary(RigidMember self, PyObject * p)"""
8393  return _IMP_core.RigidMember__set_from_binary(self, p)
8394 
8395  def __getstate__(self):
8396  p = self._get_as_binary()
8397  if len(self.__dict__) > 1:
8398  d = self.__dict__.copy()
8399  del d['this']
8400  p = (d, p)
8401  return p
8402 
8403  def __setstate__(self, p):
8404  if not hasattr(self, 'this'):
8405  self.__init__()
8406  if isinstance(p, tuple):
8407  d, p = p
8408  self.__dict__.update(d)
8409  return self._set_from_binary(p)
8410 
8411 
8412 # Register RigidMember in _IMP_core:
8413 _IMP_core.RigidMember_swigregister(RigidMember)
8414 class NonRigidMember(RigidBodyMember):
8415  r"""Proxy of C++ IMP::core::NonRigidMember class."""
8416 
8417  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8418 
8419  def show(self, *args):
8420  r"""show(NonRigidMember self, _ostream out=std::cout)"""
8421  return _IMP_core.NonRigidMember_show(self, *args)
8422 
8423  def __init__(self, *args):
8424  r"""
8425  __init__(NonRigidMember self) -> NonRigidMember
8426  __init__(NonRigidMember self, Model m, ParticleIndex id) -> NonRigidMember
8427  __init__(NonRigidMember self, _ParticleAdaptor d) -> NonRigidMember
8428  __init__(NonRigidMember self, NonRigidMember arg2) -> NonRigidMember
8429  """
8430  _IMP_core.NonRigidMember_swiginit(self, _IMP_core.new_NonRigidMember(*args))
8431  __swig_destroy__ = _IMP_core.delete_NonRigidMember
8432 
8433  @staticmethod
8434  def get_is_setup(*args):
8435  r"""
8436  get_is_setup(_ParticleAdaptor p) -> bool
8437  get_is_setup(Model m, ParticleIndex p) -> bool
8438  """
8439  return _IMP_core.NonRigidMember_get_is_setup(*args)
8440 
8441  def add_to_internal_derivatives(self, deriv_parent, da):
8442  r"""add_to_internal_derivatives(NonRigidMember self, Vector3D deriv_parent, DerivativeAccumulator da)"""
8443  return _IMP_core.NonRigidMember_add_to_internal_derivatives(self, deriv_parent, da)
8444 
8445  def add_to_internal_rotational_derivatives(self, *args):
8446  r"""
8447  add_to_internal_rotational_derivatives(NonRigidMember self, Vector4D local_qderiv, Rotation3D rot_local_to_parent, Rotation3D rot_parent_to_global, DerivativeAccumulator da)
8448  add_to_internal_rotational_derivatives(NonRigidMember self, Vector4D qderiv, DerivativeAccumulator da)
8449  """
8450  return _IMP_core.NonRigidMember_add_to_internal_rotational_derivatives(self, *args)
8451 
8452  def get_internal_derivatives(self):
8453  r"""get_internal_derivatives(NonRigidMember self) -> Vector3D"""
8454  return _IMP_core.NonRigidMember_get_internal_derivatives(self)
8455 
8456  def get_internal_rotational_derivatives(self):
8457  r"""get_internal_rotational_derivatives(NonRigidMember self) -> Vector4D"""
8458  return _IMP_core.NonRigidMember_get_internal_rotational_derivatives(self)
8459 
8460  def add_attribute(self, *args):
8461  r"""
8462  add_attribute(NonRigidMember self, FloatKey k, IMP::Float v, bool opt)
8463  add_attribute(NonRigidMember self, FloatKey a0, IMP::Float a1)
8464  add_attribute(NonRigidMember self, IntKey a0, IMP::Int a1)
8465  add_attribute(NonRigidMember self, FloatsKey a0, IMP::Floats a1)
8466  add_attribute(NonRigidMember self, IntsKey a0, IMP::Ints a1)
8467  add_attribute(NonRigidMember self, StringKey a0, IMP::String a1)
8468  add_attribute(NonRigidMember self, ParticleIndexKey a0, Particle a1)
8469  add_attribute(NonRigidMember self, ObjectKey a0, Object a1)
8470  add_attribute(NonRigidMember self, SparseFloatKey a0, IMP::Float a1)
8471  add_attribute(NonRigidMember self, SparseIntKey a0, IMP::Int a1)
8472  add_attribute(NonRigidMember self, SparseStringKey a0, IMP::String a1)
8473  add_attribute(NonRigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8474  """
8475  return _IMP_core.NonRigidMember_add_attribute(self, *args)
8476 
8477  def get_value(self, *args):
8478  r"""
8479  get_value(NonRigidMember self, FloatKey a0) -> IMP::Float
8480  get_value(NonRigidMember self, IntKey a0) -> IMP::Int
8481  get_value(NonRigidMember self, FloatsKey a0) -> IMP::Floats
8482  get_value(NonRigidMember self, IntsKey a0) -> IMP::Ints
8483  get_value(NonRigidMember self, StringKey a0) -> IMP::String
8484  get_value(NonRigidMember self, ParticleIndexKey a0) -> Particle
8485  get_value(NonRigidMember self, ObjectKey a0) -> Object
8486  get_value(NonRigidMember self, SparseFloatKey a0) -> IMP::Float
8487  get_value(NonRigidMember self, SparseIntKey a0) -> IMP::Int
8488  get_value(NonRigidMember self, SparseStringKey a0) -> IMP::String
8489  get_value(NonRigidMember self, SparseParticleIndexKey a0) -> ParticleIndex
8490  """
8491  return _IMP_core.NonRigidMember_get_value(self, *args)
8492 
8493  def set_value(self, *args):
8494  r"""
8495  set_value(NonRigidMember self, FloatKey a0, IMP::Float a1)
8496  set_value(NonRigidMember self, IntKey a0, IMP::Int a1)
8497  set_value(NonRigidMember self, FloatsKey a0, IMP::Floats a1)
8498  set_value(NonRigidMember self, IntsKey a0, IMP::Ints a1)
8499  set_value(NonRigidMember self, StringKey a0, IMP::String a1)
8500  set_value(NonRigidMember self, ParticleIndexKey a0, Particle a1)
8501  set_value(NonRigidMember self, ObjectKey a0, Object a1)
8502  set_value(NonRigidMember self, SparseFloatKey a0, IMP::Float a1)
8503  set_value(NonRigidMember self, SparseIntKey a0, IMP::Int a1)
8504  set_value(NonRigidMember self, SparseStringKey a0, IMP::String a1)
8505  set_value(NonRigidMember self, SparseParticleIndexKey a0, ParticleIndex a1)
8506  """
8507  return _IMP_core.NonRigidMember_set_value(self, *args)
8508 
8509  def remove_attribute(self, *args):
8510  r"""
8511  remove_attribute(NonRigidMember self, FloatKey a0)
8512  remove_attribute(NonRigidMember self, IntKey a0)
8513  remove_attribute(NonRigidMember self, FloatsKey a0)
8514  remove_attribute(NonRigidMember self, IntsKey a0)
8515  remove_attribute(NonRigidMember self, StringKey a0)
8516  remove_attribute(NonRigidMember self, ParticleIndexKey a0)
8517  remove_attribute(NonRigidMember self, ObjectKey a0)
8518  remove_attribute(NonRigidMember self, SparseFloatKey a0)
8519  remove_attribute(NonRigidMember self, SparseIntKey a0)
8520  remove_attribute(NonRigidMember self, SparseStringKey a0)
8521  remove_attribute(NonRigidMember self, SparseParticleIndexKey a0)
8522  """
8523  return _IMP_core.NonRigidMember_remove_attribute(self, *args)
8524 
8525  def has_attribute(self, *args):
8526  r"""
8527  has_attribute(NonRigidMember self, FloatKey a0) -> bool
8528  has_attribute(NonRigidMember self, IntKey a0) -> bool
8529  has_attribute(NonRigidMember self, FloatsKey a0) -> bool
8530  has_attribute(NonRigidMember self, IntsKey a0) -> bool
8531  has_attribute(NonRigidMember self, StringKey a0) -> bool
8532  has_attribute(NonRigidMember self, ParticleIndexKey a0) -> bool
8533  has_attribute(NonRigidMember self, ObjectKey a0) -> bool
8534  has_attribute(NonRigidMember self, SparseFloatKey a0) -> bool
8535  has_attribute(NonRigidMember self, SparseIntKey a0) -> bool
8536  has_attribute(NonRigidMember self, SparseStringKey a0) -> bool
8537  has_attribute(NonRigidMember self, SparseParticleIndexKey a0) -> bool
8538  """
8539  return _IMP_core.NonRigidMember_has_attribute(self, *args)
8540 
8541  def get_derivative(self, a0):
8542  r"""get_derivative(NonRigidMember self, FloatKey a0) -> double"""
8543  return _IMP_core.NonRigidMember_get_derivative(self, a0)
8544 
8545  def get_name(self):
8546  r"""get_name(NonRigidMember self) -> std::string"""
8547  return _IMP_core.NonRigidMember_get_name(self)
8548 
8549  def clear_caches(self):
8550  r"""clear_caches(NonRigidMember self)"""
8551  return _IMP_core.NonRigidMember_clear_caches(self)
8552 
8553  def set_name(self, a0):
8554  r"""set_name(NonRigidMember self, std::string a0)"""
8555  return _IMP_core.NonRigidMember_set_name(self, a0)
8556 
8557  def set_check_level(self, a0):
8558  r"""set_check_level(NonRigidMember self, IMP::CheckLevel a0)"""
8559  return _IMP_core.NonRigidMember_set_check_level(self, a0)
8560 
8561  def add_to_derivative(self, a0, a1, a2):
8562  r"""add_to_derivative(NonRigidMember self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
8563  return _IMP_core.NonRigidMember_add_to_derivative(self, a0, a1, a2)
8564 
8565  def set_is_optimized(self, a0, a1):
8566  r"""set_is_optimized(NonRigidMember self, FloatKey a0, bool a1)"""
8567  return _IMP_core.NonRigidMember_set_is_optimized(self, a0, a1)
8568 
8569  def get_is_optimized(self, a0):
8570  r"""get_is_optimized(NonRigidMember self, FloatKey a0) -> bool"""
8571  return _IMP_core.NonRigidMember_get_is_optimized(self, a0)
8572 
8573  def get_check_level(self):
8574  r"""get_check_level(NonRigidMember self) -> IMP::CheckLevel"""
8575  return _IMP_core.NonRigidMember_get_check_level(self)
8576 
8577  def __eq__(self, *args):
8578  r"""
8579  __eq__(NonRigidMember self, NonRigidMember o) -> bool
8580  __eq__(NonRigidMember self, Particle d) -> bool
8581  """
8582  return _IMP_core.NonRigidMember___eq__(self, *args)
8583 
8584  def __ne__(self, *args):
8585  r"""
8586  __ne__(NonRigidMember self, NonRigidMember o) -> bool
8587  __ne__(NonRigidMember self, Particle d) -> bool
8588  """
8589  return _IMP_core.NonRigidMember___ne__(self, *args)
8590 
8591  def __le__(self, *args):
8592  r"""
8593  __le__(NonRigidMember self, NonRigidMember o) -> bool
8594  __le__(NonRigidMember self, Particle d) -> bool
8595  """
8596  return _IMP_core.NonRigidMember___le__(self, *args)
8597 
8598  def __lt__(self, *args):
8599  r"""
8600  __lt__(NonRigidMember self, NonRigidMember o) -> bool
8601  __lt__(NonRigidMember self, Particle d) -> bool
8602  """
8603  return _IMP_core.NonRigidMember___lt__(self, *args)
8604 
8605  def __ge__(self, *args):
8606  r"""
8607  __ge__(NonRigidMember self, NonRigidMember o) -> bool
8608  __ge__(NonRigidMember self, Particle d) -> bool
8609  """
8610  return _IMP_core.NonRigidMember___ge__(self, *args)
8611 
8612  def __gt__(self, *args):
8613  r"""
8614  __gt__(NonRigidMember self, NonRigidMember o) -> bool
8615  __gt__(NonRigidMember self, Particle d) -> bool
8616  """
8617  return _IMP_core.NonRigidMember___gt__(self, *args)
8618 
8619  def __hash__(self):
8620  r"""__hash__(NonRigidMember self) -> std::size_t"""
8621  return _IMP_core.NonRigidMember___hash__(self)
8622 
8623  def __str__(self):
8624  r"""__str__(NonRigidMember self) -> std::string"""
8625  return _IMP_core.NonRigidMember___str__(self)
8626 
8627  def __repr__(self):
8628  r"""__repr__(NonRigidMember self) -> std::string"""
8629  return _IMP_core.NonRigidMember___repr__(self)
8630 
8631  def _get_as_binary(self):
8632  r"""_get_as_binary(NonRigidMember self) -> PyObject *"""
8633  return _IMP_core.NonRigidMember__get_as_binary(self)
8634 
8635  def _set_from_binary(self, p):
8636  r"""_set_from_binary(NonRigidMember self, PyObject * p)"""
8637  return _IMP_core.NonRigidMember__set_from_binary(self, p)
8638 
8639  def __getstate__(self):
8640  p = self._get_as_binary()
8641  if len(self.__dict__) > 1:
8642  d = self.__dict__.copy()
8643  del d['this']
8644  p = (d, p)
8645  return p
8646 
8647  def __setstate__(self, p):
8648  if not hasattr(self, 'this'):
8649  self.__init__()
8650  if isinstance(p, tuple):
8651  d, p = p
8652  self.__dict__.update(d)
8653  return self._set_from_binary(p)
8654 
8655 
8656 # Register NonRigidMember in _IMP_core:
8657 _IMP_core.NonRigidMember_swigregister(NonRigidMember)
8658 class RigidMembersRefiner(IMP.Refiner):
8659  r"""Proxy of C++ IMP::core::RigidMembersRefiner class."""
8660 
8661  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8662 
8663  def __init__(self, *args):
8664  r"""__init__(RigidMembersRefiner self, std::string name="RigidMembersRefiner%d") -> RigidMembersRefiner"""
8665  _IMP_core.RigidMembersRefiner_swiginit(self, _IMP_core.new_RigidMembersRefiner(*args))
8666 
8667  def do_get_inputs(self, m, pis):
8668  r"""do_get_inputs(RigidMembersRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8669  return _IMP_core.RigidMembersRefiner_do_get_inputs(self, m, pis)
8670 
8671  def get_version_info(self):
8672  r"""get_version_info(RigidMembersRefiner self) -> VersionInfo"""
8673  return _IMP_core.RigidMembersRefiner_get_version_info(self)
8674  __swig_destroy__ = _IMP_core.delete_RigidMembersRefiner
8675 
8676  def __str__(self):
8677  r"""__str__(RigidMembersRefiner self) -> std::string"""
8678  return _IMP_core.RigidMembersRefiner___str__(self)
8679 
8680  def __repr__(self):
8681  r"""__repr__(RigidMembersRefiner self) -> std::string"""
8682  return _IMP_core.RigidMembersRefiner___repr__(self)
8683 
8684  @staticmethod
8685  def get_from(o):
8686  return _object_cast_to_RigidMembersRefiner(o)
8687 
8688 
8689 # Register RigidMembersRefiner in _IMP_core:
8690 _IMP_core.RigidMembersRefiner_swigregister(RigidMembersRefiner)
8691 
8692 def get_rigid_members_refiner():
8693  r"""get_rigid_members_refiner() -> RigidMembersRefiner"""
8694  return _IMP_core.get_rigid_members_refiner()
8695 
8696 def transform(*args):
8697  r"""
8698  transform(XYZ a, Transformation3D tr)
8699  transform(RigidBody a, Transformation3D tr)
8700  """
8701  return _IMP_core.transform(*args)
8702 
8703 def get_initial_reference_frame(*args):
8704  r"""
8705  get_initial_reference_frame(Model m, IMP::ParticleIndexes const & pis) -> ReferenceFrame3D
8706  get_initial_reference_frame(IMP::ParticlesTemp const & ps) -> ReferenceFrame3D
8707  """
8708  return _IMP_core.get_initial_reference_frame(*args)
8709 
8710 def create_rigid_bodies(m, n, no_members=False):
8711  r"""create_rigid_bodies(Model m, unsigned int n, bool no_members=False) -> IMP::ParticlesTemp"""
8712  return _IMP_core.create_rigid_bodies(m, n, no_members)
8713 
8714 def show_rigid_body_hierarchy(*args):
8715  r"""show_rigid_body_hierarchy(RigidBody rb, TextOutput out=IMP::TextOutput(std::cout))"""
8716  return _IMP_core.show_rigid_body_hierarchy(*args)
8717 
8718 def get_root_rigid_body(m):
8719  r"""get_root_rigid_body(RigidMember m) -> ParticleIndex"""
8720  return _IMP_core.get_root_rigid_body(m)
8721 class RigidBodyHierarchyGeometry(IMP.display.SingletonGeometry):
8722  r"""Proxy of C++ IMP::core::RigidBodyHierarchyGeometry class."""
8723 
8724  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8725 
8726  def __init__(self, rb, constituents):
8727  r"""__init__(RigidBodyHierarchyGeometry self, RigidBody rb, IMP::ParticlesTemp const & constituents) -> RigidBodyHierarchyGeometry"""
8728  _IMP_core.RigidBodyHierarchyGeometry_swiginit(self, _IMP_core.new_RigidBodyHierarchyGeometry(rb, constituents))
8729 
8730  def get_version_info(self):
8731  r"""get_version_info(RigidBodyHierarchyGeometry self) -> VersionInfo"""
8732  return _IMP_core.RigidBodyHierarchyGeometry_get_version_info(self)
8733  __swig_destroy__ = _IMP_core.delete_RigidBodyHierarchyGeometry
8734 
8735  def __str__(self):
8736  r"""__str__(RigidBodyHierarchyGeometry self) -> std::string"""
8737  return _IMP_core.RigidBodyHierarchyGeometry___str__(self)
8738 
8739  def __repr__(self):
8740  r"""__repr__(RigidBodyHierarchyGeometry self) -> std::string"""
8741  return _IMP_core.RigidBodyHierarchyGeometry___repr__(self)
8742 
8743  @staticmethod
8744  def get_from(o):
8745  return _object_cast_to_RigidBodyHierarchyGeometry(o)
8746 
8747 
8748 # Register RigidBodyHierarchyGeometry in _IMP_core:
8749 _IMP_core.RigidBodyHierarchyGeometry_swigregister(RigidBodyHierarchyGeometry)
8750 class RigidBodyDerivativeGeometry(IMP.display.SingletonGeometry):
8751  r"""Proxy of C++ IMP::core::RigidBodyDerivativeGeometry class."""
8752 
8753  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8754 
8755  def __init__(self, *args):
8756  r"""
8757  __init__(RigidBodyDerivativeGeometry self, Particle p) -> RigidBodyDerivativeGeometry
8758  __init__(RigidBodyDerivativeGeometry self, RigidBody d) -> RigidBodyDerivativeGeometry
8759  """
8760  _IMP_core.RigidBodyDerivativeGeometry_swiginit(self, _IMP_core.new_RigidBodyDerivativeGeometry(*args))
8761 
8762  def get_version_info(self):
8763  r"""get_version_info(RigidBodyDerivativeGeometry self) -> VersionInfo"""
8764  return _IMP_core.RigidBodyDerivativeGeometry_get_version_info(self)
8765  __swig_destroy__ = _IMP_core.delete_RigidBodyDerivativeGeometry
8766 
8767  def __str__(self):
8768  r"""__str__(RigidBodyDerivativeGeometry self) -> std::string"""
8769  return _IMP_core.RigidBodyDerivativeGeometry___str__(self)
8770 
8771  def __repr__(self):
8772  r"""__repr__(RigidBodyDerivativeGeometry self) -> std::string"""
8773  return _IMP_core.RigidBodyDerivativeGeometry___repr__(self)
8774 
8775  @staticmethod
8776  def get_from(o):
8777  return _object_cast_to_RigidBodyDerivativeGeometry(o)
8778 
8779 
8780 # Register RigidBodyDerivativeGeometry in _IMP_core:
8781 _IMP_core.RigidBodyDerivativeGeometry_swigregister(RigidBodyDerivativeGeometry)
8782 class RigidBodyDerivativesGeometry(IMP.display.SingletonsGeometry):
8783  r"""Proxy of C++ IMP::core::RigidBodyDerivativesGeometry class."""
8784 
8785  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8786 
8787  def __init__(self, sc):
8788  r"""__init__(RigidBodyDerivativesGeometry self, SingletonContainer sc) -> RigidBodyDerivativesGeometry"""
8789  _IMP_core.RigidBodyDerivativesGeometry_swiginit(self, _IMP_core.new_RigidBodyDerivativesGeometry(sc))
8790 
8791  def get_version_info(self):
8792  r"""get_version_info(RigidBodyDerivativesGeometry self) -> VersionInfo"""
8793  return _IMP_core.RigidBodyDerivativesGeometry_get_version_info(self)
8794  __swig_destroy__ = _IMP_core.delete_RigidBodyDerivativesGeometry
8795 
8796  def __str__(self):
8797  r"""__str__(RigidBodyDerivativesGeometry self) -> std::string"""
8798  return _IMP_core.RigidBodyDerivativesGeometry___str__(self)
8799 
8800  def __repr__(self):
8801  r"""__repr__(RigidBodyDerivativesGeometry self) -> std::string"""
8802  return _IMP_core.RigidBodyDerivativesGeometry___repr__(self)
8803 
8804  @staticmethod
8805  def get_from(o):
8806  return _object_cast_to_RigidBodyDerivativesGeometry(o)
8807 
8808 
8809 # Register RigidBodyDerivativesGeometry in _IMP_core:
8810 _IMP_core.RigidBodyDerivativesGeometry_swigregister(RigidBodyDerivativesGeometry)
8811 class RigidBodyFrameGeometry(IMP.display.SingletonGeometry):
8812  r"""Proxy of C++ IMP::core::RigidBodyFrameGeometry class."""
8813 
8814  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8815 
8816  def __init__(self, *args):
8817  r"""
8818  __init__(RigidBodyFrameGeometry self, Particle p) -> RigidBodyFrameGeometry
8819  __init__(RigidBodyFrameGeometry self, RigidBody d) -> RigidBodyFrameGeometry
8820  """
8821  _IMP_core.RigidBodyFrameGeometry_swiginit(self, _IMP_core.new_RigidBodyFrameGeometry(*args))
8822 
8823  def get_version_info(self):
8824  r"""get_version_info(RigidBodyFrameGeometry self) -> VersionInfo"""
8825  return _IMP_core.RigidBodyFrameGeometry_get_version_info(self)
8826  __swig_destroy__ = _IMP_core.delete_RigidBodyFrameGeometry
8827 
8828  def __str__(self):
8829  r"""__str__(RigidBodyFrameGeometry self) -> std::string"""
8830  return _IMP_core.RigidBodyFrameGeometry___str__(self)
8831 
8832  def __repr__(self):
8833  r"""__repr__(RigidBodyFrameGeometry self) -> std::string"""
8834  return _IMP_core.RigidBodyFrameGeometry___repr__(self)
8835 
8836  @staticmethod
8837  def get_from(o):
8838  return _object_cast_to_RigidBodyFrameGeometry(o)
8839 
8840 
8841 # Register RigidBodyFrameGeometry in _IMP_core:
8842 _IMP_core.RigidBodyFrameGeometry_swigregister(RigidBodyFrameGeometry)
8843 class RigidBodyFramesGeometry(IMP.display.SingletonsGeometry):
8844  r"""Proxy of C++ IMP::core::RigidBodyFramesGeometry class."""
8845 
8846  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8847 
8848  def __init__(self, sc):
8849  r"""__init__(RigidBodyFramesGeometry self, SingletonContainer sc) -> RigidBodyFramesGeometry"""
8850  _IMP_core.RigidBodyFramesGeometry_swiginit(self, _IMP_core.new_RigidBodyFramesGeometry(sc))
8851 
8852  def get_version_info(self):
8853  r"""get_version_info(RigidBodyFramesGeometry self) -> VersionInfo"""
8854  return _IMP_core.RigidBodyFramesGeometry_get_version_info(self)
8855  __swig_destroy__ = _IMP_core.delete_RigidBodyFramesGeometry
8856 
8857  def __str__(self):
8858  r"""__str__(RigidBodyFramesGeometry self) -> std::string"""
8859  return _IMP_core.RigidBodyFramesGeometry___str__(self)
8860 
8861  def __repr__(self):
8862  r"""__repr__(RigidBodyFramesGeometry self) -> std::string"""
8863  return _IMP_core.RigidBodyFramesGeometry___repr__(self)
8864 
8865  @staticmethod
8866  def get_from(o):
8867  return _object_cast_to_RigidBodyFramesGeometry(o)
8868 
8869 
8870 # Register RigidBodyFramesGeometry in _IMP_core:
8871 _IMP_core.RigidBodyFramesGeometry_swigregister(RigidBodyFramesGeometry)
8872 class RigidBodyTorque(IMP.display.SegmentGeometry):
8873  r"""Proxy of C++ IMP::core::RigidBodyTorque class."""
8874 
8875  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8876 
8877  def __init__(self, p):
8878  r"""__init__(RigidBodyTorque self, Particle p) -> RigidBodyTorque"""
8879  _IMP_core.RigidBodyTorque_swiginit(self, _IMP_core.new_RigidBodyTorque(p))
8880 
8881  def __str__(self):
8882  r"""__str__(RigidBodyTorque self) -> std::string"""
8883  return _IMP_core.RigidBodyTorque___str__(self)
8884 
8885  def __repr__(self):
8886  r"""__repr__(RigidBodyTorque self) -> std::string"""
8887  return _IMP_core.RigidBodyTorque___repr__(self)
8888 
8889  @staticmethod
8890  def get_from(o):
8891  return _object_cast_to_RigidBodyTorque(o)
8892 
8893  __swig_destroy__ = _IMP_core.delete_RigidBodyTorque
8894 
8895 # Register RigidBodyTorque in _IMP_core:
8896 _IMP_core.RigidBodyTorque_swigregister(RigidBodyTorque)
8897 class NearestNeighborsClosePairsFinder(ClosePairsFinder):
8898  r"""Proxy of C++ IMP::core::NearestNeighborsClosePairsFinder class."""
8899 
8900  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8901 
8902  def __init__(self):
8903  r"""__init__(NearestNeighborsClosePairsFinder self) -> NearestNeighborsClosePairsFinder"""
8904  _IMP_core.NearestNeighborsClosePairsFinder_swiginit(self, _IMP_core.new_NearestNeighborsClosePairsFinder())
8905 
8906  def get_close_pairs(self, *args):
8907  r"""
8908  get_close_pairs(NearestNeighborsClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
8909  get_close_pairs(NearestNeighborsClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
8910  get_close_pairs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
8911  get_close_pairs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
8912  """
8913  return _IMP_core.NearestNeighborsClosePairsFinder_get_close_pairs(self, *args)
8914 
8915  def do_get_inputs(self, m, pis):
8916  r"""do_get_inputs(NearestNeighborsClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
8917  return _IMP_core.NearestNeighborsClosePairsFinder_do_get_inputs(self, m, pis)
8918 
8919  def get_version_info(self):
8920  r"""get_version_info(NearestNeighborsClosePairsFinder self) -> VersionInfo"""
8921  return _IMP_core.NearestNeighborsClosePairsFinder_get_version_info(self)
8922  __swig_destroy__ = _IMP_core.delete_NearestNeighborsClosePairsFinder
8923 
8924  def __str__(self):
8925  r"""__str__(NearestNeighborsClosePairsFinder self) -> std::string"""
8926  return _IMP_core.NearestNeighborsClosePairsFinder___str__(self)
8927 
8928  def __repr__(self):
8929  r"""__repr__(NearestNeighborsClosePairsFinder self) -> std::string"""
8930  return _IMP_core.NearestNeighborsClosePairsFinder___repr__(self)
8931 
8932  @staticmethod
8933  def get_from(o):
8934  return _object_cast_to_NearestNeighborsClosePairsFinder(o)
8935 
8936 
8937 # Register NearestNeighborsClosePairsFinder in _IMP_core:
8938 _IMP_core.NearestNeighborsClosePairsFinder_swigregister(NearestNeighborsClosePairsFinder)
8939 class RestraintsScoringFunction(IMP.ScoringFunction):
8940  r"""Proxy of C++ IMP::core::RestraintsScoringFunction class."""
8941 
8942  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
8943 
8944  def __init__(self, *args):
8945  r"""
8946  __init__(RestraintsScoringFunction self, _RestraintsAdaptor rs, double weight=1.0, double max=NO_MAX, std::string name="RestraintsScoringFunction%1%") -> RestraintsScoringFunction
8947  __init__(RestraintsScoringFunction self, _RestraintsAdaptor rs, std::string name) -> RestraintsScoringFunction
8948  __init__(RestraintsScoringFunction self) -> RestraintsScoringFunction
8949  """
8950  _IMP_core.RestraintsScoringFunction_swiginit(self, _IMP_core.new_RestraintsScoringFunction(*args))
8951 
8952  def do_add_score_and_derivatives(self, sa, ss):
8953  r"""do_add_score_and_derivatives(RestraintsScoringFunction self, ScoreAccumulator sa, IMP::ScoreStatesTemp const & ss)"""
8954  return _IMP_core.RestraintsScoringFunction_do_add_score_and_derivatives(self, sa, ss)
8955 
8956  def do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss):
8957  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)"""
8958  return _IMP_core.RestraintsScoringFunction_do_add_score_and_derivatives_moved(self, sa, moved_pis, reset_pis, ss)
8959 
8960  def do_get_inputs(self):
8961  r"""do_get_inputs(RestraintsScoringFunction self) -> IMP::ModelObjectsTemp"""
8962  return _IMP_core.RestraintsScoringFunction_do_get_inputs(self)
8963 
8964  def get_restraints(self):
8965  r"""get_restraints(RestraintsScoringFunction self) -> IMP::Restraints"""
8966  return _IMP_core.RestraintsScoringFunction_get_restraints(self)
8967 
8968  def set_restraints(self, d):
8969  r"""set_restraints(RestraintsScoringFunction self, IMP::Restraints const & d)"""
8970  return _IMP_core.RestraintsScoringFunction_set_restraints(self, d)
8971 
8972  def get_number_of_restraints(self):
8973  r"""get_number_of_restraints(RestraintsScoringFunction self) -> unsigned int"""
8974  return _IMP_core.RestraintsScoringFunction_get_number_of_restraints(self)
8975 
8976  def clear_restraints(self):
8977  r"""clear_restraints(RestraintsScoringFunction self)"""
8978  return _IMP_core.RestraintsScoringFunction_clear_restraints(self)
8979 
8980  def get_restraint(self, i):
8981  r"""get_restraint(RestraintsScoringFunction self, unsigned int i) -> Restraint"""
8982  return _IMP_core.RestraintsScoringFunction_get_restraint(self, i)
8983 
8984  def erase_restraint(self, i):
8985  r"""erase_restraint(RestraintsScoringFunction self, unsigned int i)"""
8986  return _IMP_core.RestraintsScoringFunction_erase_restraint(self, i)
8987 
8988  def add_restraint(self, d):
8989  r"""add_restraint(RestraintsScoringFunction self, Restraint d) -> unsigned int"""
8990  return _IMP_core.RestraintsScoringFunction_add_restraint(self, d)
8991 
8992  def add_restraints(self, d):
8993  r"""add_restraints(RestraintsScoringFunction self, IMP::Restraints const & d)"""
8994  return _IMP_core.RestraintsScoringFunction_add_restraints(self, d)
8995 
8996  def _python_index_restraint(self, r, start, stop):
8997  r"""_python_index_restraint(RestraintsScoringFunction self, Restraint r, unsigned int start, unsigned int stop) -> unsigned int"""
8998  return _IMP_core.RestraintsScoringFunction__python_index_restraint(self, r, start, stop)
8999  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)
9000  def __set_restraints(self, obj): IMP._list_util.set_varlist(self.restraints, obj)
9001  def __del_restraints(self): IMP._list_util.del_varlist(self.restraints)
9002  restraints = property(__get_restraints, __set_restraints, __del_restraints, doc="List of ##Restraints")
9003 
9004  def get_version_info(self):
9005  r"""get_version_info(RestraintsScoringFunction self) -> VersionInfo"""
9006  return _IMP_core.RestraintsScoringFunction_get_version_info(self)
9007  __swig_destroy__ = _IMP_core.delete_RestraintsScoringFunction
9008 
9009  def __str__(self):
9010  r"""__str__(RestraintsScoringFunction self) -> std::string"""
9011  return _IMP_core.RestraintsScoringFunction___str__(self)
9012 
9013  def __repr__(self):
9014  r"""__repr__(RestraintsScoringFunction self) -> std::string"""
9015  return _IMP_core.RestraintsScoringFunction___repr__(self)
9016 
9017  @staticmethod
9018  def get_from(o):
9019  return _object_cast_to_RestraintsScoringFunction(o)
9020 
9021 
9022  def _get_as_binary(self):
9023  r"""_get_as_binary(RestraintsScoringFunction self) -> PyObject *"""
9024  return _IMP_core.RestraintsScoringFunction__get_as_binary(self)
9025 
9026  def _set_from_binary(self, p):
9027  r"""_set_from_binary(RestraintsScoringFunction self, PyObject * p)"""
9028  return _IMP_core.RestraintsScoringFunction__set_from_binary(self, p)
9029 
9030  def __getstate__(self):
9031  p = self._get_as_binary()
9032  if len(self.__dict__) > 1:
9033  d = self.__dict__.copy()
9034  del d['this']
9035  p = (d, p)
9036  return p
9037 
9038  def __setstate__(self, p):
9039  if not hasattr(self, 'this'):
9040  self.__init__()
9041  if isinstance(p, tuple):
9042  d, p = p
9043  self.__dict__.update(d)
9044  return self._set_from_binary(p)
9045 
9046 
9047 # Register RestraintsScoringFunction in _IMP_core:
9048 _IMP_core.RestraintsScoringFunction_swigregister(RestraintsScoringFunction)
9049 class RigidClosePairsFinder(ClosePairsFinder):
9050  r"""Proxy of C++ IMP::core::RigidClosePairsFinder class."""
9051 
9052  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9053 
9054  def __init__(self, cpf=None):
9055  r"""__init__(RigidClosePairsFinder self, ClosePairsFinder cpf=None) -> RigidClosePairsFinder"""
9056  _IMP_core.RigidClosePairsFinder_swiginit(self, _IMP_core.new_RigidClosePairsFinder(cpf))
9057 
9058  def do_get_inputs(self, m, pis):
9059  r"""do_get_inputs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9060  return _IMP_core.RigidClosePairsFinder_do_get_inputs(self, m, pis)
9061 
9062  def get_close_pairs(self, *args):
9063  r"""
9064  get_close_pairs(RigidClosePairsFinder self, Model m, ParticleIndex a, ParticleIndex b, IMP::ParticleIndexes const & pa, IMP::ParticleIndexes const & pb) -> IMP::ParticleIndexPairs
9065  get_close_pairs(RigidClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
9066  get_close_pairs(RigidClosePairsFinder self, IMP::algebra::BoundingBox3Ds const & bas, IMP::algebra::BoundingBox3Ds const & bbs) -> IMP::IntPairs
9067  get_close_pairs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pc) -> IMP::ParticleIndexPairs
9068  get_close_pairs(RigidClosePairsFinder self, Model m, IMP::ParticleIndexes const & pca, IMP::ParticleIndexes const & pcb) -> IMP::ParticleIndexPairs
9069  """
9070  return _IMP_core.RigidClosePairsFinder_get_close_pairs(self, *args)
9071 
9072  def get_version_info(self):
9073  r"""get_version_info(RigidClosePairsFinder self) -> VersionInfo"""
9074  return _IMP_core.RigidClosePairsFinder_get_version_info(self)
9075  __swig_destroy__ = _IMP_core.delete_RigidClosePairsFinder
9076 
9077  def __str__(self):
9078  r"""__str__(RigidClosePairsFinder self) -> std::string"""
9079  return _IMP_core.RigidClosePairsFinder___str__(self)
9080 
9081  def __repr__(self):
9082  r"""__repr__(RigidClosePairsFinder self) -> std::string"""
9083  return _IMP_core.RigidClosePairsFinder___repr__(self)
9084 
9085  @staticmethod
9086  def get_from(o):
9087  return _object_cast_to_RigidClosePairsFinder(o)
9088 
9089 
9090  def _get_as_binary(self):
9091  r"""_get_as_binary(RigidClosePairsFinder self) -> PyObject *"""
9092  return _IMP_core.RigidClosePairsFinder__get_as_binary(self)
9093 
9094  def _set_from_binary(self, p):
9095  r"""_set_from_binary(RigidClosePairsFinder self, PyObject * p)"""
9096  return _IMP_core.RigidClosePairsFinder__set_from_binary(self, p)
9097 
9098  def __getstate__(self):
9099  p = self._get_as_binary()
9100  if len(self.__dict__) > 1:
9101  d = self.__dict__.copy()
9102  del d['this']
9103  p = (d, p)
9104  return p
9105 
9106  def __setstate__(self, p):
9107  if not hasattr(self, 'this'):
9108  self.__init__()
9109  if isinstance(p, tuple):
9110  d, p = p
9111  self.__dict__.update(d)
9112  return self._set_from_binary(p)
9113 
9114 
9115 # Register RigidClosePairsFinder in _IMP_core:
9116 _IMP_core.RigidClosePairsFinder_swigregister(RigidClosePairsFinder)
9117 class SphereDistancePairScore(IMP.PairScore):
9118  r"""Proxy of C++ IMP::core::SphereDistancePairScore class."""
9119 
9120  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9121 
9122  def __init__(self, *args):
9123  r"""
9124  __init__(SphereDistancePairScore self, UnaryFunction uf, std::string name="SphereDistancePairScore%1%") -> SphereDistancePairScore
9125  __init__(SphereDistancePairScore self) -> SphereDistancePairScore
9126  """
9127  _IMP_core.SphereDistancePairScore_swiginit(self, _IMP_core.new_SphereDistancePairScore(*args))
9128 
9129  def do_get_inputs(self, m, pis):
9130  r"""do_get_inputs(SphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9131  return _IMP_core.SphereDistancePairScore_do_get_inputs(self, m, pis)
9132 
9133  def get_version_info(self):
9134  r"""get_version_info(SphereDistancePairScore self) -> VersionInfo"""
9135  return _IMP_core.SphereDistancePairScore_get_version_info(self)
9136  __swig_destroy__ = _IMP_core.delete_SphereDistancePairScore
9137 
9138  def __str__(self):
9139  r"""__str__(SphereDistancePairScore self) -> std::string"""
9140  return _IMP_core.SphereDistancePairScore___str__(self)
9141 
9142  def __repr__(self):
9143  r"""__repr__(SphereDistancePairScore self) -> std::string"""
9144  return _IMP_core.SphereDistancePairScore___repr__(self)
9145 
9146  @staticmethod
9147  def get_from(o):
9148  return _object_cast_to_SphereDistancePairScore(o)
9149 
9150 
9151  def _get_as_binary(self):
9152  r"""_get_as_binary(SphereDistancePairScore self) -> PyObject *"""
9153  return _IMP_core.SphereDistancePairScore__get_as_binary(self)
9154 
9155  def _set_from_binary(self, p):
9156  r"""_set_from_binary(SphereDistancePairScore self, PyObject * p)"""
9157  return _IMP_core.SphereDistancePairScore__set_from_binary(self, p)
9158 
9159  def __getstate__(self):
9160  p = self._get_as_binary()
9161  if len(self.__dict__) > 1:
9162  d = self.__dict__.copy()
9163  del d['this']
9164  p = (d, p)
9165  return p
9166 
9167  def __setstate__(self, p):
9168  if not hasattr(self, 'this'):
9169  self.__init__()
9170  if isinstance(p, tuple):
9171  d, p = p
9172  self.__dict__.update(d)
9173  return self._set_from_binary(p)
9174 
9175 
9176 # Register SphereDistancePairScore in _IMP_core:
9177 _IMP_core.SphereDistancePairScore_swigregister(SphereDistancePairScore)
9178 class HarmonicUpperBoundSphereDistancePairScore(IMP.PairScore):
9179  r"""Proxy of C++ IMP::core::HarmonicUpperBoundSphereDistancePairScore class."""
9180 
9181  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9182 
9183  def __init__(self, *args):
9184  r"""
9185  __init__(HarmonicUpperBoundSphereDistancePairScore self, double x0, double k, std::string name="HarmonicUpperBoundSphereDistancePairScore%1%") -> HarmonicUpperBoundSphereDistancePairScore
9186  __init__(HarmonicUpperBoundSphereDistancePairScore self) -> HarmonicUpperBoundSphereDistancePairScore
9187  """
9188  _IMP_core.HarmonicUpperBoundSphereDistancePairScore_swiginit(self, _IMP_core.new_HarmonicUpperBoundSphereDistancePairScore(*args))
9189 
9190  def do_get_inputs(self, m, pis):
9191  r"""do_get_inputs(HarmonicUpperBoundSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9192  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore_do_get_inputs(self, m, pis)
9193 
9194  def get_version_info(self):
9195  r"""get_version_info(HarmonicUpperBoundSphereDistancePairScore self) -> VersionInfo"""
9196  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore_get_version_info(self)
9197  __swig_destroy__ = _IMP_core.delete_HarmonicUpperBoundSphereDistancePairScore
9198 
9199  def __str__(self):
9200  r"""__str__(HarmonicUpperBoundSphereDistancePairScore self) -> std::string"""
9201  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore___str__(self)
9202 
9203  def __repr__(self):
9204  r"""__repr__(HarmonicUpperBoundSphereDistancePairScore self) -> std::string"""
9205  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore___repr__(self)
9206 
9207  @staticmethod
9208  def get_from(o):
9209  return _object_cast_to_HarmonicUpperBoundSphereDistancePairScore(o)
9210 
9211 
9212  def _get_as_binary(self):
9213  r"""_get_as_binary(HarmonicUpperBoundSphereDistancePairScore self) -> PyObject *"""
9214  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore__get_as_binary(self)
9215 
9216  def _set_from_binary(self, p):
9217  r"""_set_from_binary(HarmonicUpperBoundSphereDistancePairScore self, PyObject * p)"""
9218  return _IMP_core.HarmonicUpperBoundSphereDistancePairScore__set_from_binary(self, p)
9219 
9220  def __getstate__(self):
9221  p = self._get_as_binary()
9222  if len(self.__dict__) > 1:
9223  d = self.__dict__.copy()
9224  del d['this']
9225  p = (d, p)
9226  return p
9227 
9228  def __setstate__(self, p):
9229  if not hasattr(self, 'this'):
9230  self.__init__()
9231  if isinstance(p, tuple):
9232  d, p = p
9233  self.__dict__.update(d)
9234  return self._set_from_binary(p)
9235 
9236 
9237 # Register HarmonicUpperBoundSphereDistancePairScore in _IMP_core:
9238 _IMP_core.HarmonicUpperBoundSphereDistancePairScore_swigregister(HarmonicUpperBoundSphereDistancePairScore)
9239 class HarmonicUpperBoundSphereDiameterPairScore(IMP.PairScore):
9240  r"""Proxy of C++ IMP::core::HarmonicUpperBoundSphereDiameterPairScore class."""
9241 
9242  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9243 
9244  def __init__(self, d0, k):
9245  r"""__init__(HarmonicUpperBoundSphereDiameterPairScore self, double d0, double k) -> HarmonicUpperBoundSphereDiameterPairScore"""
9246  _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_swiginit(self, _IMP_core.new_HarmonicUpperBoundSphereDiameterPairScore(d0, k))
9247 
9248  def get_rest_length(self):
9249  r"""get_rest_length(HarmonicUpperBoundSphereDiameterPairScore self) -> double"""
9250  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_rest_length(self)
9251 
9252  def get_stiffness(self):
9253  r"""get_stiffness(HarmonicUpperBoundSphereDiameterPairScore self) -> double"""
9254  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_stiffness(self)
9255 
9256  def do_get_inputs(self, m, pis):
9257  r"""do_get_inputs(HarmonicUpperBoundSphereDiameterPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9258  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_do_get_inputs(self, m, pis)
9259 
9260  def get_version_info(self):
9261  r"""get_version_info(HarmonicUpperBoundSphereDiameterPairScore self) -> VersionInfo"""
9262  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_get_version_info(self)
9263  __swig_destroy__ = _IMP_core.delete_HarmonicUpperBoundSphereDiameterPairScore
9264 
9265  def __str__(self):
9266  r"""__str__(HarmonicUpperBoundSphereDiameterPairScore self) -> std::string"""
9267  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore___str__(self)
9268 
9269  def __repr__(self):
9270  r"""__repr__(HarmonicUpperBoundSphereDiameterPairScore self) -> std::string"""
9271  return _IMP_core.HarmonicUpperBoundSphereDiameterPairScore___repr__(self)
9272 
9273  @staticmethod
9274  def get_from(o):
9275  return _object_cast_to_HarmonicUpperBoundSphereDiameterPairScore(o)
9276 
9277 
9278 # Register HarmonicUpperBoundSphereDiameterPairScore in _IMP_core:
9279 _IMP_core.HarmonicUpperBoundSphereDiameterPairScore_swigregister(HarmonicUpperBoundSphereDiameterPairScore)
9280 class HarmonicSphereDistancePairScore(IMP.PairScore):
9281  r"""Proxy of C++ IMP::core::HarmonicSphereDistancePairScore class."""
9282 
9283  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9284 
9285  def __init__(self, *args):
9286  r"""
9287  __init__(HarmonicSphereDistancePairScore self, double x0, double k, std::string name="HarmonicSphereDistancePairScore%1%") -> HarmonicSphereDistancePairScore
9288  __init__(HarmonicSphereDistancePairScore self) -> HarmonicSphereDistancePairScore
9289  """
9290  _IMP_core.HarmonicSphereDistancePairScore_swiginit(self, _IMP_core.new_HarmonicSphereDistancePairScore(*args))
9291 
9292  def do_get_inputs(self, m, pis):
9293  r"""do_get_inputs(HarmonicSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9294  return _IMP_core.HarmonicSphereDistancePairScore_do_get_inputs(self, m, pis)
9295 
9296  def get_version_info(self):
9297  r"""get_version_info(HarmonicSphereDistancePairScore self) -> VersionInfo"""
9298  return _IMP_core.HarmonicSphereDistancePairScore_get_version_info(self)
9299  __swig_destroy__ = _IMP_core.delete_HarmonicSphereDistancePairScore
9300 
9301  def __str__(self):
9302  r"""__str__(HarmonicSphereDistancePairScore self) -> std::string"""
9303  return _IMP_core.HarmonicSphereDistancePairScore___str__(self)
9304 
9305  def __repr__(self):
9306  r"""__repr__(HarmonicSphereDistancePairScore self) -> std::string"""
9307  return _IMP_core.HarmonicSphereDistancePairScore___repr__(self)
9308 
9309  @staticmethod
9310  def get_from(o):
9311  return _object_cast_to_HarmonicSphereDistancePairScore(o)
9312 
9313 
9314  def _get_as_binary(self):
9315  r"""_get_as_binary(HarmonicSphereDistancePairScore self) -> PyObject *"""
9316  return _IMP_core.HarmonicSphereDistancePairScore__get_as_binary(self)
9317 
9318  def _set_from_binary(self, p):
9319  r"""_set_from_binary(HarmonicSphereDistancePairScore self, PyObject * p)"""
9320  return _IMP_core.HarmonicSphereDistancePairScore__set_from_binary(self, p)
9321 
9322  def __getstate__(self):
9323  p = self._get_as_binary()
9324  if len(self.__dict__) > 1:
9325  d = self.__dict__.copy()
9326  del d['this']
9327  p = (d, p)
9328  return p
9329 
9330  def __setstate__(self, p):
9331  if not hasattr(self, 'this'):
9332  self.__init__()
9333  if isinstance(p, tuple):
9334  d, p = p
9335  self.__dict__.update(d)
9336  return self._set_from_binary(p)
9337 
9338 
9339 # Register HarmonicSphereDistancePairScore in _IMP_core:
9340 _IMP_core.HarmonicSphereDistancePairScore_swigregister(HarmonicSphereDistancePairScore)
9341 class NormalizedSphereDistancePairScore(IMP.PairScore):
9342  r"""Proxy of C++ IMP::core::NormalizedSphereDistancePairScore class."""
9343 
9344  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9345 
9346  def __init__(self, *args):
9347  r"""__init__(NormalizedSphereDistancePairScore self, UnaryFunction f, FloatKey radius=IMP::FloatKey("radius")) -> NormalizedSphereDistancePairScore"""
9348  _IMP_core.NormalizedSphereDistancePairScore_swiginit(self, _IMP_core.new_NormalizedSphereDistancePairScore(*args))
9349 
9350  def do_get_inputs(self, m, pis):
9351  r"""do_get_inputs(NormalizedSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9352  return _IMP_core.NormalizedSphereDistancePairScore_do_get_inputs(self, m, pis)
9353 
9354  def get_version_info(self):
9355  r"""get_version_info(NormalizedSphereDistancePairScore self) -> VersionInfo"""
9356  return _IMP_core.NormalizedSphereDistancePairScore_get_version_info(self)
9357  __swig_destroy__ = _IMP_core.delete_NormalizedSphereDistancePairScore
9358 
9359  def __str__(self):
9360  r"""__str__(NormalizedSphereDistancePairScore self) -> std::string"""
9361  return _IMP_core.NormalizedSphereDistancePairScore___str__(self)
9362 
9363  def __repr__(self):
9364  r"""__repr__(NormalizedSphereDistancePairScore self) -> std::string"""
9365  return _IMP_core.NormalizedSphereDistancePairScore___repr__(self)
9366 
9367  @staticmethod
9368  def get_from(o):
9369  return _object_cast_to_NormalizedSphereDistancePairScore(o)
9370 
9371 
9372 # Register NormalizedSphereDistancePairScore in _IMP_core:
9373 _IMP_core.NormalizedSphereDistancePairScore_swigregister(NormalizedSphereDistancePairScore)
9374 class WeightedSphereDistancePairScore(IMP.PairScore):
9375  r"""Proxy of C++ IMP::core::WeightedSphereDistancePairScore class."""
9376 
9377  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9378 
9379  def __init__(self, *args):
9380  r"""__init__(WeightedSphereDistancePairScore self, UnaryFunction f, FloatKey weight, FloatKey radius=IMP::FloatKey("radius")) -> WeightedSphereDistancePairScore"""
9381  _IMP_core.WeightedSphereDistancePairScore_swiginit(self, _IMP_core.new_WeightedSphereDistancePairScore(*args))
9382 
9383  def do_get_inputs(self, m, pis):
9384  r"""do_get_inputs(WeightedSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9385  return _IMP_core.WeightedSphereDistancePairScore_do_get_inputs(self, m, pis)
9386 
9387  def get_version_info(self):
9388  r"""get_version_info(WeightedSphereDistancePairScore self) -> VersionInfo"""
9389  return _IMP_core.WeightedSphereDistancePairScore_get_version_info(self)
9390  __swig_destroy__ = _IMP_core.delete_WeightedSphereDistancePairScore
9391 
9392  def __str__(self):
9393  r"""__str__(WeightedSphereDistancePairScore self) -> std::string"""
9394  return _IMP_core.WeightedSphereDistancePairScore___str__(self)
9395 
9396  def __repr__(self):
9397  r"""__repr__(WeightedSphereDistancePairScore self) -> std::string"""
9398  return _IMP_core.WeightedSphereDistancePairScore___repr__(self)
9399 
9400  @staticmethod
9401  def get_from(o):
9402  return _object_cast_to_WeightedSphereDistancePairScore(o)
9403 
9404 
9405 # Register WeightedSphereDistancePairScore in _IMP_core:
9406 _IMP_core.WeightedSphereDistancePairScore_swigregister(WeightedSphereDistancePairScore)
9407 class SoftSpherePairScore(IMP.PairScore):
9408  r"""Proxy of C++ IMP::core::SoftSpherePairScore class."""
9409 
9410  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9411 
9412  def __init__(self, *args):
9413  r"""
9414  __init__(SoftSpherePairScore self, double k, std::string name="SoftSpherePairScore%1%") -> SoftSpherePairScore
9415  __init__(SoftSpherePairScore self) -> SoftSpherePairScore
9416  """
9417  _IMP_core.SoftSpherePairScore_swiginit(self, _IMP_core.new_SoftSpherePairScore(*args))
9418 
9419  def do_get_inputs(self, m, pis):
9420  r"""do_get_inputs(SoftSpherePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9421  return _IMP_core.SoftSpherePairScore_do_get_inputs(self, m, pis)
9422 
9423  def get_version_info(self):
9424  r"""get_version_info(SoftSpherePairScore self) -> VersionInfo"""
9425  return _IMP_core.SoftSpherePairScore_get_version_info(self)
9426  __swig_destroy__ = _IMP_core.delete_SoftSpherePairScore
9427 
9428  def __str__(self):
9429  r"""__str__(SoftSpherePairScore self) -> std::string"""
9430  return _IMP_core.SoftSpherePairScore___str__(self)
9431 
9432  def __repr__(self):
9433  r"""__repr__(SoftSpherePairScore self) -> std::string"""
9434  return _IMP_core.SoftSpherePairScore___repr__(self)
9435 
9436  @staticmethod
9437  def get_from(o):
9438  return _object_cast_to_SoftSpherePairScore(o)
9439 
9440 
9441  def _get_as_binary(self):
9442  r"""_get_as_binary(SoftSpherePairScore self) -> PyObject *"""
9443  return _IMP_core.SoftSpherePairScore__get_as_binary(self)
9444 
9445  def _set_from_binary(self, p):
9446  r"""_set_from_binary(SoftSpherePairScore self, PyObject * p)"""
9447  return _IMP_core.SoftSpherePairScore__set_from_binary(self, p)
9448 
9449  def __getstate__(self):
9450  p = self._get_as_binary()
9451  if len(self.__dict__) > 1:
9452  d = self.__dict__.copy()
9453  del d['this']
9454  p = (d, p)
9455  return p
9456 
9457  def __setstate__(self, p):
9458  if not hasattr(self, 'this'):
9459  self.__init__()
9460  if isinstance(p, tuple):
9461  d, p = p
9462  self.__dict__.update(d)
9463  return self._set_from_binary(p)
9464 
9465 
9466 # Register SoftSpherePairScore in _IMP_core:
9467 _IMP_core.SoftSpherePairScore_swigregister(SoftSpherePairScore)
9468 class SurfaceDistancePairScore(IMP.PairScore):
9469  r"""Proxy of C++ IMP::core::SurfaceDistancePairScore class."""
9470 
9471  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9472 
9473  def __init__(self, *args):
9474  r"""__init__(SurfaceDistancePairScore self, UnaryFunction uf, std::string name="SurfaceDistancePairScore%1%") -> SurfaceDistancePairScore"""
9475  _IMP_core.SurfaceDistancePairScore_swiginit(self, _IMP_core.new_SurfaceDistancePairScore(*args))
9476 
9477  def do_get_inputs(self, m, pis):
9478  r"""do_get_inputs(SurfaceDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9479  return _IMP_core.SurfaceDistancePairScore_do_get_inputs(self, m, pis)
9480 
9481  def get_version_info(self):
9482  r"""get_version_info(SurfaceDistancePairScore self) -> VersionInfo"""
9483  return _IMP_core.SurfaceDistancePairScore_get_version_info(self)
9484  __swig_destroy__ = _IMP_core.delete_SurfaceDistancePairScore
9485 
9486  def __str__(self):
9487  r"""__str__(SurfaceDistancePairScore self) -> std::string"""
9488  return _IMP_core.SurfaceDistancePairScore___str__(self)
9489 
9490  def __repr__(self):
9491  r"""__repr__(SurfaceDistancePairScore self) -> std::string"""
9492  return _IMP_core.SurfaceDistancePairScore___repr__(self)
9493 
9494  @staticmethod
9495  def get_from(o):
9496  return _object_cast_to_SurfaceDistancePairScore(o)
9497 
9498 
9499 # Register SurfaceDistancePairScore in _IMP_core:
9500 _IMP_core.SurfaceDistancePairScore_swigregister(SurfaceDistancePairScore)
9501 class SurfaceHeightPairScore(IMP.PairScore):
9502  r"""Proxy of C++ IMP::core::SurfaceHeightPairScore class."""
9503 
9504  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9505 
9506  def __init__(self, *args):
9507  r"""__init__(SurfaceHeightPairScore self, UnaryFunction uf, std::string name="SurfaceHeightPairScore%1%") -> SurfaceHeightPairScore"""
9508  _IMP_core.SurfaceHeightPairScore_swiginit(self, _IMP_core.new_SurfaceHeightPairScore(*args))
9509 
9510  def do_get_inputs(self, m, pis):
9511  r"""do_get_inputs(SurfaceHeightPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9512  return _IMP_core.SurfaceHeightPairScore_do_get_inputs(self, m, pis)
9513 
9514  def get_version_info(self):
9515  r"""get_version_info(SurfaceHeightPairScore self) -> VersionInfo"""
9516  return _IMP_core.SurfaceHeightPairScore_get_version_info(self)
9517  __swig_destroy__ = _IMP_core.delete_SurfaceHeightPairScore
9518 
9519  def __str__(self):
9520  r"""__str__(SurfaceHeightPairScore self) -> std::string"""
9521  return _IMP_core.SurfaceHeightPairScore___str__(self)
9522 
9523  def __repr__(self):
9524  r"""__repr__(SurfaceHeightPairScore self) -> std::string"""
9525  return _IMP_core.SurfaceHeightPairScore___repr__(self)
9526 
9527  @staticmethod
9528  def get_from(o):
9529  return _object_cast_to_SurfaceHeightPairScore(o)
9530 
9531 
9532 # Register SurfaceHeightPairScore in _IMP_core:
9533 _IMP_core.SurfaceHeightPairScore_swigregister(SurfaceHeightPairScore)
9534 class SurfaceDepthPairScore(IMP.PairScore):
9535  r"""Proxy of C++ IMP::core::SurfaceDepthPairScore class."""
9536 
9537  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9538 
9539  def __init__(self, *args):
9540  r"""__init__(SurfaceDepthPairScore self, UnaryFunction uf, std::string name="SurfaceDepthPairScore%1%") -> SurfaceDepthPairScore"""
9541  _IMP_core.SurfaceDepthPairScore_swiginit(self, _IMP_core.new_SurfaceDepthPairScore(*args))
9542 
9543  def do_get_inputs(self, m, pis):
9544  r"""do_get_inputs(SurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9545  return _IMP_core.SurfaceDepthPairScore_do_get_inputs(self, m, pis)
9546 
9547  def get_version_info(self):
9548  r"""get_version_info(SurfaceDepthPairScore self) -> VersionInfo"""
9549  return _IMP_core.SurfaceDepthPairScore_get_version_info(self)
9550  __swig_destroy__ = _IMP_core.delete_SurfaceDepthPairScore
9551 
9552  def __str__(self):
9553  r"""__str__(SurfaceDepthPairScore self) -> std::string"""
9554  return _IMP_core.SurfaceDepthPairScore___str__(self)
9555 
9556  def __repr__(self):
9557  r"""__repr__(SurfaceDepthPairScore self) -> std::string"""
9558  return _IMP_core.SurfaceDepthPairScore___repr__(self)
9559 
9560  @staticmethod
9561  def get_from(o):
9562  return _object_cast_to_SurfaceDepthPairScore(o)
9563 
9564 
9565 # Register SurfaceDepthPairScore in _IMP_core:
9566 _IMP_core.SurfaceDepthPairScore_swigregister(SurfaceDepthPairScore)
9567 class HarmonicSurfaceDistancePairScore(IMP.PairScore):
9568  r"""Proxy of C++ IMP::core::HarmonicSurfaceDistancePairScore class."""
9569 
9570  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9571 
9572  def __init__(self, *args):
9573  r"""__init__(HarmonicSurfaceDistancePairScore self, double x0, double k, std::string name="HarmonicSurfaceDistancePairScore%1%") -> HarmonicSurfaceDistancePairScore"""
9574  _IMP_core.HarmonicSurfaceDistancePairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceDistancePairScore(*args))
9575 
9576  def do_get_inputs(self, m, pis):
9577  r"""do_get_inputs(HarmonicSurfaceDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9578  return _IMP_core.HarmonicSurfaceDistancePairScore_do_get_inputs(self, m, pis)
9579 
9580  def get_version_info(self):
9581  r"""get_version_info(HarmonicSurfaceDistancePairScore self) -> VersionInfo"""
9582  return _IMP_core.HarmonicSurfaceDistancePairScore_get_version_info(self)
9583  __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceDistancePairScore
9584 
9585  def __str__(self):
9586  r"""__str__(HarmonicSurfaceDistancePairScore self) -> std::string"""
9587  return _IMP_core.HarmonicSurfaceDistancePairScore___str__(self)
9588 
9589  def __repr__(self):
9590  r"""__repr__(HarmonicSurfaceDistancePairScore self) -> std::string"""
9591  return _IMP_core.HarmonicSurfaceDistancePairScore___repr__(self)
9592 
9593  @staticmethod
9594  def get_from(o):
9595  return _object_cast_to_HarmonicSurfaceDistancePairScore(o)
9596 
9597 
9598 # Register HarmonicSurfaceDistancePairScore in _IMP_core:
9599 _IMP_core.HarmonicSurfaceDistancePairScore_swigregister(HarmonicSurfaceDistancePairScore)
9600 class HarmonicSurfaceHeightPairScore(IMP.PairScore):
9601  r"""Proxy of C++ IMP::core::HarmonicSurfaceHeightPairScore class."""
9602 
9603  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9604 
9605  def __init__(self, *args):
9606  r"""__init__(HarmonicSurfaceHeightPairScore self, double x0, double k, std::string name="HarmonicSurfaceHeightPairScore%1%") -> HarmonicSurfaceHeightPairScore"""
9607  _IMP_core.HarmonicSurfaceHeightPairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceHeightPairScore(*args))
9608 
9609  def do_get_inputs(self, m, pis):
9610  r"""do_get_inputs(HarmonicSurfaceHeightPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9611  return _IMP_core.HarmonicSurfaceHeightPairScore_do_get_inputs(self, m, pis)
9612 
9613  def get_version_info(self):
9614  r"""get_version_info(HarmonicSurfaceHeightPairScore self) -> VersionInfo"""
9615  return _IMP_core.HarmonicSurfaceHeightPairScore_get_version_info(self)
9616  __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceHeightPairScore
9617 
9618  def __str__(self):
9619  r"""__str__(HarmonicSurfaceHeightPairScore self) -> std::string"""
9620  return _IMP_core.HarmonicSurfaceHeightPairScore___str__(self)
9621 
9622  def __repr__(self):
9623  r"""__repr__(HarmonicSurfaceHeightPairScore self) -> std::string"""
9624  return _IMP_core.HarmonicSurfaceHeightPairScore___repr__(self)
9625 
9626  @staticmethod
9627  def get_from(o):
9628  return _object_cast_to_HarmonicSurfaceHeightPairScore(o)
9629 
9630 
9631 # Register HarmonicSurfaceHeightPairScore in _IMP_core:
9632 _IMP_core.HarmonicSurfaceHeightPairScore_swigregister(HarmonicSurfaceHeightPairScore)
9633 class HarmonicSurfaceDepthPairScore(IMP.PairScore):
9634  r"""Proxy of C++ IMP::core::HarmonicSurfaceDepthPairScore class."""
9635 
9636  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9637 
9638  def __init__(self, *args):
9639  r"""__init__(HarmonicSurfaceDepthPairScore self, double x0, double k, std::string name="HarmonicSurfaceDepthPairScore%1%") -> HarmonicSurfaceDepthPairScore"""
9640  _IMP_core.HarmonicSurfaceDepthPairScore_swiginit(self, _IMP_core.new_HarmonicSurfaceDepthPairScore(*args))
9641 
9642  def do_get_inputs(self, m, pis):
9643  r"""do_get_inputs(HarmonicSurfaceDepthPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9644  return _IMP_core.HarmonicSurfaceDepthPairScore_do_get_inputs(self, m, pis)
9645 
9646  def get_version_info(self):
9647  r"""get_version_info(HarmonicSurfaceDepthPairScore self) -> VersionInfo"""
9648  return _IMP_core.HarmonicSurfaceDepthPairScore_get_version_info(self)
9649  __swig_destroy__ = _IMP_core.delete_HarmonicSurfaceDepthPairScore
9650 
9651  def __str__(self):
9652  r"""__str__(HarmonicSurfaceDepthPairScore self) -> std::string"""
9653  return _IMP_core.HarmonicSurfaceDepthPairScore___str__(self)
9654 
9655  def __repr__(self):
9656  r"""__repr__(HarmonicSurfaceDepthPairScore self) -> std::string"""
9657  return _IMP_core.HarmonicSurfaceDepthPairScore___repr__(self)
9658 
9659  @staticmethod
9660  def get_from(o):
9661  return _object_cast_to_HarmonicSurfaceDepthPairScore(o)
9662 
9663 
9664 # Register HarmonicSurfaceDepthPairScore in _IMP_core:
9665 _IMP_core.HarmonicSurfaceDepthPairScore_swigregister(HarmonicSurfaceDepthPairScore)
9666 class SoftSuperSurfacePairScore(IMP.PairScore):
9667  r"""Proxy of C++ IMP::core::SoftSuperSurfacePairScore class."""
9668 
9669  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9670 
9671  def __init__(self, *args):
9672  r"""__init__(SoftSuperSurfacePairScore self, double k, std::string name="SoftSuperSurfacePairScore%1%") -> SoftSuperSurfacePairScore"""
9673  _IMP_core.SoftSuperSurfacePairScore_swiginit(self, _IMP_core.new_SoftSuperSurfacePairScore(*args))
9674 
9675  def do_get_inputs(self, m, pis):
9676  r"""do_get_inputs(SoftSuperSurfacePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9677  return _IMP_core.SoftSuperSurfacePairScore_do_get_inputs(self, m, pis)
9678 
9679  def get_version_info(self):
9680  r"""get_version_info(SoftSuperSurfacePairScore self) -> VersionInfo"""
9681  return _IMP_core.SoftSuperSurfacePairScore_get_version_info(self)
9682  __swig_destroy__ = _IMP_core.delete_SoftSuperSurfacePairScore
9683 
9684  def __str__(self):
9685  r"""__str__(SoftSuperSurfacePairScore self) -> std::string"""
9686  return _IMP_core.SoftSuperSurfacePairScore___str__(self)
9687 
9688  def __repr__(self):
9689  r"""__repr__(SoftSuperSurfacePairScore self) -> std::string"""
9690  return _IMP_core.SoftSuperSurfacePairScore___repr__(self)
9691 
9692  @staticmethod
9693  def get_from(o):
9694  return _object_cast_to_SoftSuperSurfacePairScore(o)
9695 
9696 
9697 # Register SoftSuperSurfacePairScore in _IMP_core:
9698 _IMP_core.SoftSuperSurfacePairScore_swigregister(SoftSuperSurfacePairScore)
9699 class SoftSubSurfacePairScore(IMP.PairScore):
9700  r"""Proxy of C++ IMP::core::SoftSubSurfacePairScore class."""
9701 
9702  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9703 
9704  def __init__(self, *args):
9705  r"""__init__(SoftSubSurfacePairScore self, double k, std::string name="SoftSubSurfacePairScore%1%") -> SoftSubSurfacePairScore"""
9706  _IMP_core.SoftSubSurfacePairScore_swiginit(self, _IMP_core.new_SoftSubSurfacePairScore(*args))
9707 
9708  def do_get_inputs(self, m, pis):
9709  r"""do_get_inputs(SoftSubSurfacePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9710  return _IMP_core.SoftSubSurfacePairScore_do_get_inputs(self, m, pis)
9711 
9712  def get_version_info(self):
9713  r"""get_version_info(SoftSubSurfacePairScore self) -> VersionInfo"""
9714  return _IMP_core.SoftSubSurfacePairScore_get_version_info(self)
9715  __swig_destroy__ = _IMP_core.delete_SoftSubSurfacePairScore
9716 
9717  def __str__(self):
9718  r"""__str__(SoftSubSurfacePairScore self) -> std::string"""
9719  return _IMP_core.SoftSubSurfacePairScore___str__(self)
9720 
9721  def __repr__(self):
9722  r"""__repr__(SoftSubSurfacePairScore self) -> std::string"""
9723  return _IMP_core.SoftSubSurfacePairScore___repr__(self)
9724 
9725  @staticmethod
9726  def get_from(o):
9727  return _object_cast_to_SoftSubSurfacePairScore(o)
9728 
9729 
9730 # Register SoftSubSurfacePairScore in _IMP_core:
9731 _IMP_core.SoftSubSurfacePairScore_swigregister(SoftSubSurfacePairScore)
9732 class SurfaceTetheredChain(IMP.UnaryFunction):
9733  r"""Proxy of C++ IMP::core::SurfaceTetheredChain class."""
9734 
9735  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9736 
9737  def __init__(self, link_num, link_length):
9738  r"""__init__(SurfaceTetheredChain self, int link_num, double link_length) -> SurfaceTetheredChain"""
9739  _IMP_core.SurfaceTetheredChain_swiginit(self, _IMP_core.new_SurfaceTetheredChain(link_num, link_length))
9740 
9741  def get_version_info(self):
9742  r"""get_version_info(SurfaceTetheredChain self) -> VersionInfo"""
9743  return _IMP_core.SurfaceTetheredChain_get_version_info(self)
9744  __swig_destroy__ = _IMP_core.delete_SurfaceTetheredChain
9745 
9746  def get_link_number(self):
9747  r"""get_link_number(SurfaceTetheredChain self) -> int"""
9748  return _IMP_core.SurfaceTetheredChain_get_link_number(self)
9749 
9750  def get_link_length(self):
9751  r"""get_link_length(SurfaceTetheredChain self) -> double"""
9752  return _IMP_core.SurfaceTetheredChain_get_link_length(self)
9753 
9754  def set_link_number(self, N):
9755  r"""set_link_number(SurfaceTetheredChain self, int N)"""
9756  return _IMP_core.SurfaceTetheredChain_set_link_number(self, N)
9757 
9758  def set_link_length(self, b):
9759  r"""set_link_length(SurfaceTetheredChain self, double b)"""
9760  return _IMP_core.SurfaceTetheredChain_set_link_length(self, b)
9761 
9762  def get_distance_at_minimum(self):
9763  r"""get_distance_at_minimum(SurfaceTetheredChain self) -> double"""
9764  return _IMP_core.SurfaceTetheredChain_get_distance_at_minimum(self)
9765 
9766  def get_average_distance(self):
9767  r"""get_average_distance(SurfaceTetheredChain self) -> double"""
9768  return _IMP_core.SurfaceTetheredChain_get_average_distance(self)
9769 
9770  def __str__(self):
9771  r"""__str__(SurfaceTetheredChain self) -> std::string"""
9772  return _IMP_core.SurfaceTetheredChain___str__(self)
9773 
9774  def __repr__(self):
9775  r"""__repr__(SurfaceTetheredChain self) -> std::string"""
9776  return _IMP_core.SurfaceTetheredChain___repr__(self)
9777 
9778  @staticmethod
9779  def get_from(o):
9780  return _object_cast_to_SurfaceTetheredChain(o)
9781 
9782 
9783 # Register SurfaceTetheredChain in _IMP_core:
9784 _IMP_core.SurfaceTetheredChain_swigregister(SurfaceTetheredChain)
9785 class SurfaceSymmetryConstraint(IMP.Constraint):
9786  r"""Proxy of C++ IMP::core::SurfaceSymmetryConstraint class."""
9787 
9788  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9789 
9790  def __init__(self, m, ss, rbs):
9791  r"""__init__(SurfaceSymmetryConstraint self, Model m, IMP::ParticleIndexPair const & ss, IMP::ParticleIndexPair const & rbs) -> SurfaceSymmetryConstraint"""
9792  _IMP_core.SurfaceSymmetryConstraint_swiginit(self, _IMP_core.new_SurfaceSymmetryConstraint(m, ss, rbs))
9793 
9794  def do_get_inputs(self):
9795  r"""do_get_inputs(SurfaceSymmetryConstraint self) -> IMP::ModelObjectsTemp"""
9796  return _IMP_core.SurfaceSymmetryConstraint_do_get_inputs(self)
9797 
9798  def do_get_outputs(self):
9799  r"""do_get_outputs(SurfaceSymmetryConstraint self) -> IMP::ModelObjectsTemp"""
9800  return _IMP_core.SurfaceSymmetryConstraint_do_get_outputs(self)
9801 
9802  def get_version_info(self):
9803  r"""get_version_info(SurfaceSymmetryConstraint self) -> VersionInfo"""
9804  return _IMP_core.SurfaceSymmetryConstraint_get_version_info(self)
9805  __swig_destroy__ = _IMP_core.delete_SurfaceSymmetryConstraint
9806 
9807  def __str__(self):
9808  r"""__str__(SurfaceSymmetryConstraint self) -> std::string"""
9809  return _IMP_core.SurfaceSymmetryConstraint___str__(self)
9810 
9811  def __repr__(self):
9812  r"""__repr__(SurfaceSymmetryConstraint self) -> std::string"""
9813  return _IMP_core.SurfaceSymmetryConstraint___repr__(self)
9814 
9815  @staticmethod
9816  def get_from(o):
9817  return _object_cast_to_SurfaceSymmetryConstraint(o)
9818 
9819 
9820 # Register SurfaceSymmetryConstraint in _IMP_core:
9821 _IMP_core.SurfaceSymmetryConstraint_swigregister(SurfaceSymmetryConstraint)
9822 class SteepestDescent(IMP.AttributeOptimizer):
9823  r"""Proxy of C++ IMP::core::SteepestDescent class."""
9824 
9825  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9826 
9827  def __init__(self, *args):
9828  r"""__init__(SteepestDescent self, Model m, std::string name="SteepestDescent%1%") -> SteepestDescent"""
9829  _IMP_core.SteepestDescent_swiginit(self, _IMP_core.new_SteepestDescent(*args))
9830 
9831  def do_optimize(self, max_steps):
9832  r"""do_optimize(SteepestDescent self, unsigned int max_steps) -> IMP::Float"""
9833  return _IMP_core.SteepestDescent_do_optimize(self, max_steps)
9834 
9835  def get_version_info(self):
9836  r"""get_version_info(SteepestDescent self) -> VersionInfo"""
9837  return _IMP_core.SteepestDescent_get_version_info(self)
9838  __swig_destroy__ = _IMP_core.delete_SteepestDescent
9839 
9840  def set_threshold(self, t):
9841  r"""set_threshold(SteepestDescent self, IMP::Float t)"""
9842  return _IMP_core.SteepestDescent_set_threshold(self, t)
9843 
9844  def set_step_size(self, t):
9845  r"""set_step_size(SteepestDescent self, IMP::Float t)"""
9846  return _IMP_core.SteepestDescent_set_step_size(self, t)
9847 
9848  def set_maximum_step_size(self, t):
9849  r"""set_maximum_step_size(SteepestDescent self, IMP::Float t)"""
9850  return _IMP_core.SteepestDescent_set_maximum_step_size(self, t)
9851 
9852  def __str__(self):
9853  r"""__str__(SteepestDescent self) -> std::string"""
9854  return _IMP_core.SteepestDescent___str__(self)
9855 
9856  def __repr__(self):
9857  r"""__repr__(SteepestDescent self) -> std::string"""
9858  return _IMP_core.SteepestDescent___repr__(self)
9859 
9860  @staticmethod
9861  def get_from(o):
9862  return _object_cast_to_SteepestDescent(o)
9863 
9864 
9865 # Register SteepestDescent in _IMP_core:
9866 _IMP_core.SteepestDescent_swigregister(SteepestDescent)
9867 class TransformedDistancePairScore(IMP.PairScore):
9868  r"""Proxy of C++ IMP::core::TransformedDistancePairScore class."""
9869 
9870  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9871 
9872  def __init__(self, f, transformation):
9873  r"""__init__(TransformedDistancePairScore self, UnaryFunction f, Transformation3D transformation) -> TransformedDistancePairScore"""
9874  _IMP_core.TransformedDistancePairScore_swiginit(self, _IMP_core.new_TransformedDistancePairScore(f, transformation))
9875 
9876  def set_transformation(self, rot):
9877  r"""set_transformation(TransformedDistancePairScore self, Transformation3D rot)"""
9878  return _IMP_core.TransformedDistancePairScore_set_transformation(self, rot)
9879 
9880  def do_get_inputs(self, m, pis):
9881  r"""do_get_inputs(TransformedDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9882  return _IMP_core.TransformedDistancePairScore_do_get_inputs(self, m, pis)
9883 
9884  def get_version_info(self):
9885  r"""get_version_info(TransformedDistancePairScore self) -> VersionInfo"""
9886  return _IMP_core.TransformedDistancePairScore_get_version_info(self)
9887  __swig_destroy__ = _IMP_core.delete_TransformedDistancePairScore
9888 
9889  def __str__(self):
9890  r"""__str__(TransformedDistancePairScore self) -> std::string"""
9891  return _IMP_core.TransformedDistancePairScore___str__(self)
9892 
9893  def __repr__(self):
9894  r"""__repr__(TransformedDistancePairScore self) -> std::string"""
9895  return _IMP_core.TransformedDistancePairScore___repr__(self)
9896 
9897  @staticmethod
9898  def get_from(o):
9899  return _object_cast_to_TransformedDistancePairScore(o)
9900 
9901 
9902 # Register TransformedDistancePairScore in _IMP_core:
9903 _IMP_core.TransformedDistancePairScore_swigregister(TransformedDistancePairScore)
9904 class TypedPairScore(IMP.PairScore):
9905  r"""Proxy of C++ IMP::core::TypedPairScore class."""
9906 
9907  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9908 
9909  def __init__(self, typekey, allow_invalid_types=True):
9910  r"""__init__(TypedPairScore self, IntKey typekey, bool allow_invalid_types=True) -> TypedPairScore"""
9911  _IMP_core.TypedPairScore_swiginit(self, _IMP_core.new_TypedPairScore(typekey, allow_invalid_types))
9912 
9913  def set_particle_type(self, arg2):
9914  r"""set_particle_type(TypedPairScore self, Particle arg2)"""
9915  return _IMP_core.TypedPairScore_set_particle_type(self, arg2)
9916 
9917  def set_pair_score(self, ps, atype, btype):
9918  r"""set_pair_score(TypedPairScore self, PairScore ps, IMP::Int atype, IMP::Int btype)"""
9919  return _IMP_core.TypedPairScore_set_pair_score(self, ps, atype, btype)
9920 
9921  def do_get_inputs(self, m, pis):
9922  r"""do_get_inputs(TypedPairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9923  return _IMP_core.TypedPairScore_do_get_inputs(self, m, pis)
9924 
9925  def get_version_info(self):
9926  r"""get_version_info(TypedPairScore self) -> VersionInfo"""
9927  return _IMP_core.TypedPairScore_get_version_info(self)
9928  __swig_destroy__ = _IMP_core.delete_TypedPairScore
9929 
9930  def __str__(self):
9931  r"""__str__(TypedPairScore self) -> std::string"""
9932  return _IMP_core.TypedPairScore___str__(self)
9933 
9934  def __repr__(self):
9935  r"""__repr__(TypedPairScore self) -> std::string"""
9936  return _IMP_core.TypedPairScore___repr__(self)
9937 
9938  @staticmethod
9939  def get_from(o):
9940  return _object_cast_to_TypedPairScore(o)
9941 
9942 
9943 # Register TypedPairScore in _IMP_core:
9944 _IMP_core.TypedPairScore_swigregister(TypedPairScore)
9945 class RigidBodyDistancePairScore(KClosePairsPairScore):
9946  r"""Proxy of C++ IMP::core::RigidBodyDistancePairScore class."""
9947 
9948  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9949 
9950  def __init__(self, ps, r):
9951  r"""__init__(RigidBodyDistancePairScore self, PairScore ps, Refiner r) -> RigidBodyDistancePairScore"""
9952  _IMP_core.RigidBodyDistancePairScore_swiginit(self, _IMP_core.new_RigidBodyDistancePairScore(ps, r))
9953 
9954  def __str__(self):
9955  r"""__str__(RigidBodyDistancePairScore self) -> std::string"""
9956  return _IMP_core.RigidBodyDistancePairScore___str__(self)
9957 
9958  def __repr__(self):
9959  r"""__repr__(RigidBodyDistancePairScore self) -> std::string"""
9960  return _IMP_core.RigidBodyDistancePairScore___repr__(self)
9961 
9962  @staticmethod
9963  def get_from(o):
9964  return _object_cast_to_RigidBodyDistancePairScore(o)
9965 
9966  __swig_destroy__ = _IMP_core.delete_RigidBodyDistancePairScore
9967 
9968 # Register RigidBodyDistancePairScore in _IMP_core:
9969 _IMP_core.RigidBodyDistancePairScore_swigregister(RigidBodyDistancePairScore)
9970 class RigidBodyAnglePairScore(IMP.PairScore):
9971  r"""Proxy of C++ IMP::core::RigidBodyAnglePairScore class."""
9972 
9973  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
9974 
9975  def __init__(self, f):
9976  r"""__init__(RigidBodyAnglePairScore self, UnaryFunction f) -> RigidBodyAnglePairScore"""
9977  _IMP_core.RigidBodyAnglePairScore_swiginit(self, _IMP_core.new_RigidBodyAnglePairScore(f))
9978 
9979  def do_get_inputs(self, m, pis):
9980  r"""do_get_inputs(RigidBodyAnglePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
9981  return _IMP_core.RigidBodyAnglePairScore_do_get_inputs(self, m, pis)
9982 
9983  def get_version_info(self):
9984  r"""get_version_info(RigidBodyAnglePairScore self) -> VersionInfo"""
9985  return _IMP_core.RigidBodyAnglePairScore_get_version_info(self)
9986  __swig_destroy__ = _IMP_core.delete_RigidBodyAnglePairScore
9987 
9988  def __str__(self):
9989  r"""__str__(RigidBodyAnglePairScore self) -> std::string"""
9990  return _IMP_core.RigidBodyAnglePairScore___str__(self)
9991 
9992  def __repr__(self):
9993  r"""__repr__(RigidBodyAnglePairScore self) -> std::string"""
9994  return _IMP_core.RigidBodyAnglePairScore___repr__(self)
9995 
9996  @staticmethod
9997  def get_from(o):
9998  return _object_cast_to_RigidBodyAnglePairScore(o)
9999 
10000 
10001 # Register RigidBodyAnglePairScore in _IMP_core:
10002 _IMP_core.RigidBodyAnglePairScore_swigregister(RigidBodyAnglePairScore)
10003 class TableRefiner(IMP.Refiner):
10004  r"""Proxy of C++ IMP::core::TableRefiner class."""
10005 
10006  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10007 
10008  def __init__(self):
10009  r"""__init__(TableRefiner self) -> TableRefiner"""
10010  _IMP_core.TableRefiner_swiginit(self, _IMP_core.new_TableRefiner())
10011 
10012  def add_particle(self, p, ps):
10013  r"""add_particle(TableRefiner self, Particle p, IMP::ParticlesTemp const & ps)"""
10014  return _IMP_core.TableRefiner_add_particle(self, p, ps)
10015 
10016  def remove_particle(self, p):
10017  r"""remove_particle(TableRefiner self, Particle p)"""
10018  return _IMP_core.TableRefiner_remove_particle(self, p)
10019 
10020  def set_particle(self, p, ps):
10021  r"""set_particle(TableRefiner self, Particle p, IMP::ParticlesTemp const & ps)"""
10022  return _IMP_core.TableRefiner_set_particle(self, p, ps)
10023 
10024  def do_get_inputs(self, m, pis):
10025  r"""do_get_inputs(TableRefiner self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
10026  return _IMP_core.TableRefiner_do_get_inputs(self, m, pis)
10027 
10028  def get_version_info(self):
10029  r"""get_version_info(TableRefiner self) -> VersionInfo"""
10030  return _IMP_core.TableRefiner_get_version_info(self)
10031  __swig_destroy__ = _IMP_core.delete_TableRefiner
10032 
10033  def __str__(self):
10034  r"""__str__(TableRefiner self) -> std::string"""
10035  return _IMP_core.TableRefiner___str__(self)
10036 
10037  def __repr__(self):
10038  r"""__repr__(TableRefiner self) -> std::string"""
10039  return _IMP_core.TableRefiner___repr__(self)
10040 
10041  @staticmethod
10042  def get_from(o):
10043  return _object_cast_to_TableRefiner(o)
10044 
10045 
10046 # Register TableRefiner in _IMP_core:
10047 _IMP_core.TableRefiner_swigregister(TableRefiner)
10048 LOWER = _IMP_core.LOWER
10049 
10050 BOTH = _IMP_core.BOTH
10051 
10052 UPPER = _IMP_core.UPPER
10053 
10054 class MCCGSampler(IMP.Sampler):
10055  r"""Proxy of C++ IMP::core::MCCGSampler class."""
10056 
10057  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10058 
10059  def __init__(self, *args):
10060  r"""__init__(MCCGSampler self, Model m, std::string name="MCCG Sampler %1%") -> MCCGSampler"""
10061  _IMP_core.MCCGSampler_swiginit(self, _IMP_core.new_MCCGSampler(*args))
10062 
10063  def set_bounding_box(self, bb):
10064  r"""set_bounding_box(MCCGSampler self, BoundingBox3D bb)"""
10065  return _IMP_core.MCCGSampler_set_bounding_box(self, bb)
10066 
10067  def set_number_of_attempts(self, att):
10068  r"""set_number_of_attempts(MCCGSampler self, unsigned int att)"""
10069  return _IMP_core.MCCGSampler_set_number_of_attempts(self, att)
10070 
10071  def set_number_of_monte_carlo_steps(self, cg):
10072  r"""set_number_of_monte_carlo_steps(MCCGSampler self, unsigned int cg)"""
10073  return _IMP_core.MCCGSampler_set_number_of_monte_carlo_steps(self, cg)
10074 
10075  def set_number_of_conjugate_gradient_steps(self, cg):
10076  r"""set_number_of_conjugate_gradient_steps(MCCGSampler self, unsigned int cg)"""
10077  return _IMP_core.MCCGSampler_set_number_of_conjugate_gradient_steps(self, cg)
10078 
10079  def set_max_monte_carlo_step_size(self, *args):
10080  r"""
10081  set_max_monte_carlo_step_size(MCCGSampler self, double d)
10082  set_max_monte_carlo_step_size(MCCGSampler self, FloatKey k, double d)
10083  """
10084  return _IMP_core.MCCGSampler_set_max_monte_carlo_step_size(self, *args)
10085 
10086  def set_is_refining(self, tf):
10087  r"""set_is_refining(MCCGSampler self, bool tf)"""
10088  return _IMP_core.MCCGSampler_set_is_refining(self, tf)
10089 
10090  def set_local_optimizer(self, opt):
10091  r"""set_local_optimizer(MCCGSampler self, Optimizer opt)"""
10092  return _IMP_core.MCCGSampler_set_local_optimizer(self, opt)
10093 
10094  def set_save_rejected_configurations(self, tf):
10095  r"""set_save_rejected_configurations(MCCGSampler self, bool tf)"""
10096  return _IMP_core.MCCGSampler_set_save_rejected_configurations(self, tf)
10097 
10098  def get_rejected_configurations(self):
10099  r"""get_rejected_configurations(MCCGSampler self) -> ConfigurationSet"""
10100  return _IMP_core.MCCGSampler_get_rejected_configurations(self)
10101  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)
10102  def __set_optimizer_states(self, obj): IMP._list_util.set_varlist(self.optimizer_states, obj)
10103  def __del_optimizer_states(self): IMP._list_util.del_varlist(self.optimizer_states)
10104  optimizer_states = property(__get_optimizer_states, __set_optimizer_states, __del_optimizer_states, doc="List of ##ucnames")
10105 
10106  def remove_optimizer_state(self, d):
10107  r"""remove_optimizer_state(MCCGSampler self, OptimizerState d)"""
10108  return _IMP_core.MCCGSampler_remove_optimizer_state(self, d)
10109 
10110  def _python_index_optimizer_state(self, d, start, stop):
10111  r"""_python_index_optimizer_state(MCCGSampler self, OptimizerState d, unsigned int start, unsigned int stop) -> unsigned int"""
10112  return _IMP_core.MCCGSampler__python_index_optimizer_state(self, d, start, stop)
10113 
10114  def remove_optimizer_states(self, d):
10115  r"""remove_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & d)"""
10116  return _IMP_core.MCCGSampler_remove_optimizer_states(self, d)
10117 
10118  def set_optimizer_states(self, ps):
10119  r"""set_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & ps)"""
10120  return _IMP_core.MCCGSampler_set_optimizer_states(self, ps)
10121 
10122  def set_optimizer_states_order(self, objs):
10123  r"""set_optimizer_states_order(MCCGSampler self, IMP::OptimizerStates const & objs)"""
10124  return _IMP_core.MCCGSampler_set_optimizer_states_order(self, objs)
10125 
10126  def add_optimizer_state(self, obj):
10127  r"""add_optimizer_state(MCCGSampler self, OptimizerState obj) -> unsigned int"""
10128  return _IMP_core.MCCGSampler_add_optimizer_state(self, obj)
10129 
10130  def add_optimizer_states(self, objs):
10131  r"""add_optimizer_states(MCCGSampler self, IMP::OptimizerStates const & objs)"""
10132  return _IMP_core.MCCGSampler_add_optimizer_states(self, objs)
10133 
10134  def clear_optimizer_states(self):
10135  r"""clear_optimizer_states(MCCGSampler self)"""
10136  return _IMP_core.MCCGSampler_clear_optimizer_states(self)
10137 
10138  def get_number_of_optimizer_states(self):
10139  r"""get_number_of_optimizer_states(MCCGSampler self) -> unsigned int"""
10140  return _IMP_core.MCCGSampler_get_number_of_optimizer_states(self)
10141 
10142  def get_has_optimizer_states(self):
10143  r"""get_has_optimizer_states(MCCGSampler self) -> bool"""
10144  return _IMP_core.MCCGSampler_get_has_optimizer_states(self)
10145 
10146  def get_optimizer_state(self, i):
10147  r"""get_optimizer_state(MCCGSampler self, unsigned int i) -> OptimizerState"""
10148  return _IMP_core.MCCGSampler_get_optimizer_state(self, i)
10149 
10150  def get_optimizer_states(self):
10151  r"""get_optimizer_states(MCCGSampler self) -> IMP::OptimizerStates"""
10152  return _IMP_core.MCCGSampler_get_optimizer_states(self)
10153 
10154  def erase_optimizer_state(self, i):
10155  r"""erase_optimizer_state(MCCGSampler self, unsigned int i)"""
10156  return _IMP_core.MCCGSampler_erase_optimizer_state(self, i)
10157 
10158  def reserve_optimizer_states(self, sz):
10159  r"""reserve_optimizer_states(MCCGSampler self, unsigned int sz)"""
10160  return _IMP_core.MCCGSampler_reserve_optimizer_states(self, sz)
10161 
10162  def do_sample(self):
10163  r"""do_sample(MCCGSampler self) -> ConfigurationSet"""
10164  return _IMP_core.MCCGSampler_do_sample(self)
10165 
10166  def get_version_info(self):
10167  r"""get_version_info(MCCGSampler self) -> VersionInfo"""
10168  return _IMP_core.MCCGSampler_get_version_info(self)
10169  __swig_destroy__ = _IMP_core.delete_MCCGSampler
10170 
10171  def __str__(self):
10172  r"""__str__(MCCGSampler self) -> std::string"""
10173  return _IMP_core.MCCGSampler___str__(self)
10174 
10175  def __repr__(self):
10176  r"""__repr__(MCCGSampler self) -> std::string"""
10177  return _IMP_core.MCCGSampler___repr__(self)
10178 
10179  @staticmethod
10180  def get_from(o):
10181  return _object_cast_to_MCCGSampler(o)
10182 
10183 
10184 # Register MCCGSampler in _IMP_core:
10185 _IMP_core.MCCGSampler_swigregister(MCCGSampler)
10186 class MinimumRestraint(IMP.Restraint):
10187  r"""Proxy of C++ IMP::core::MinimumRestraint class."""
10188 
10189  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10190 
10191  def __init__(self, *args):
10192  r"""__init__(MinimumRestraint self, unsigned int num, IMP::Restraints const & rs=IMP::Restraints(), std::string name="MinimumRestraint %1%") -> MinimumRestraint"""
10193  _IMP_core.MinimumRestraint_swiginit(self, _IMP_core.new_MinimumRestraint(*args))
10194 
10195  def do_get_inputs(self):
10196  r"""do_get_inputs(MinimumRestraint self) -> IMP::ModelObjectsTemp"""
10197  return _IMP_core.MinimumRestraint_do_get_inputs(self)
10198 
10199  def get_version_info(self):
10200  r"""get_version_info(MinimumRestraint self) -> VersionInfo"""
10201  return _IMP_core.MinimumRestraint_get_version_info(self)
10202  __swig_destroy__ = _IMP_core.delete_MinimumRestraint
10203  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)
10204  def __set_restraints(self, obj): IMP._list_util.set_varlist(self.restraints, obj)
10205  def __del_restraints(self): IMP._list_util.del_varlist(self.restraints)
10206  restraints = property(__get_restraints, __set_restraints, __del_restraints, doc="List of ##ucnames")
10207 
10208  def remove_restraint(self, d):
10209  r"""remove_restraint(MinimumRestraint self, Restraint d)"""
10210  return _IMP_core.MinimumRestraint_remove_restraint(self, d)
10211 
10212  def _python_index_restraint(self, d, start, stop):
10213  r"""_python_index_restraint(MinimumRestraint self, Restraint d, unsigned int start, unsigned int stop) -> unsigned int"""
10214  return _IMP_core.MinimumRestraint__python_index_restraint(self, d, start, stop)
10215 
10216  def remove_restraints(self, d):
10217  r"""remove_restraints(MinimumRestraint self, IMP::Restraints const & d)"""
10218  return _IMP_core.MinimumRestraint_remove_restraints(self, d)
10219 
10220  def set_restraints(self, ps):
10221  r"""set_restraints(MinimumRestraint self, IMP::Restraints const & ps)"""
10222  return _IMP_core.MinimumRestraint_set_restraints(self, ps)
10223 
10224  def set_restraints_order(self, objs):
10225  r"""set_restraints_order(MinimumRestraint self, IMP::Restraints const & objs)"""
10226  return _IMP_core.MinimumRestraint_set_restraints_order(self, objs)
10227 
10228  def add_restraint(self, obj):
10229  r"""add_restraint(MinimumRestraint self, Restraint obj) -> unsigned int"""
10230  return _IMP_core.MinimumRestraint_add_restraint(self, obj)
10231 
10232  def add_restraints(self, objs):
10233  r"""add_restraints(MinimumRestraint self, IMP::Restraints const & objs)"""
10234  return _IMP_core.MinimumRestraint_add_restraints(self, objs)
10235 
10236  def clear_restraints(self):
10237  r"""clear_restraints(MinimumRestraint self)"""
10238  return _IMP_core.MinimumRestraint_clear_restraints(self)
10239 
10240  def get_number_of_restraints(self):
10241  r"""get_number_of_restraints(MinimumRestraint self) -> unsigned int"""
10242  return _IMP_core.MinimumRestraint_get_number_of_restraints(self)
10243 
10244  def get_has_restraints(self):
10245  r"""get_has_restraints(MinimumRestraint self) -> bool"""
10246  return _IMP_core.MinimumRestraint_get_has_restraints(self)
10247 
10248  def get_restraint(self, i):
10249  r"""get_restraint(MinimumRestraint self, unsigned int i) -> Restraint"""
10250  return _IMP_core.MinimumRestraint_get_restraint(self, i)
10251 
10252  def get_restraints(self):
10253  r"""get_restraints(MinimumRestraint self) -> IMP::Restraints"""
10254  return _IMP_core.MinimumRestraint_get_restraints(self)
10255 
10256  def erase_restraint(self, i):
10257  r"""erase_restraint(MinimumRestraint self, unsigned int i)"""
10258  return _IMP_core.MinimumRestraint_erase_restraint(self, i)
10259 
10260  def reserve_restraints(self, sz):
10261  r"""reserve_restraints(MinimumRestraint self, unsigned int sz)"""
10262  return _IMP_core.MinimumRestraint_reserve_restraints(self, sz)
10263 
10264  def __str__(self):
10265  r"""__str__(MinimumRestraint self) -> std::string"""
10266  return _IMP_core.MinimumRestraint___str__(self)
10267 
10268  def __repr__(self):
10269  r"""__repr__(MinimumRestraint self) -> std::string"""
10270  return _IMP_core.MinimumRestraint___repr__(self)
10271 
10272  @staticmethod
10273  def get_from(o):
10274  return _object_cast_to_MinimumRestraint(o)
10275 
10276 
10277 # Register MinimumRestraint in _IMP_core:
10278 _IMP_core.MinimumRestraint_swigregister(MinimumRestraint)
10279 class Gaussian(RigidBody):
10280  r"""Proxy of C++ IMP::core::Gaussian class."""
10281 
10282  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10283 
10284  def __init__(self, *args):
10285  r"""
10286  __init__(Gaussian self) -> Gaussian
10287  __init__(Gaussian self, Model m, ParticleIndex id) -> Gaussian
10288  __init__(Gaussian self, _ParticleAdaptor d) -> Gaussian
10289  """
10290  _IMP_core.Gaussian_swiginit(self, _IMP_core.new_Gaussian(*args))
10291 
10292  def show(self, *args):
10293  r"""show(Gaussian self, _ostream out=std::cout)"""
10294  return _IMP_core.Gaussian_show(self, *args)
10295 
10296  @staticmethod
10297  def setup_particle(*args):
10298  r"""
10299  setup_particle(Model m, ParticleIndex pi) -> Gaussian
10300  setup_particle(_ParticleAdaptor pa) -> Gaussian
10301  setup_particle(Model m, ParticleIndex pi, Gaussian3D g) -> Gaussian
10302  setup_particle(_ParticleAdaptor pa, Gaussian3D g) -> Gaussian
10303  """
10304  return _IMP_core.Gaussian_setup_particle(*args)
10305 
10306  @staticmethod
10307  def get_local_covariance_key():
10308  r"""get_local_covariance_key() -> ObjectKey"""
10309  return _IMP_core.Gaussian_get_local_covariance_key()
10310 
10311  @staticmethod
10312  def get_global_covariance_key():
10313  r"""get_global_covariance_key() -> ObjectKey"""
10314  return _IMP_core.Gaussian_get_global_covariance_key()
10315 
10316  @staticmethod
10317  def get_is_setup(*args):
10318  r"""
10319  get_is_setup(_ParticleAdaptor p) -> bool
10320  get_is_setup(Model m, ParticleIndex pi) -> bool
10321  """
10322  return _IMP_core.Gaussian_get_is_setup(*args)
10323 
10324  def get_local_covariance(self):
10325  r"""get_local_covariance(Gaussian self) -> Eigen::Matrix3d"""
10326  return _IMP_core.Gaussian_get_local_covariance(self)
10327 
10328  def get_variances(self):
10329  r"""get_variances(Gaussian self) -> Vector3D"""
10330  return _IMP_core.Gaussian_get_variances(self)
10331 
10332  def get_global_covariance(self):
10333  r"""get_global_covariance(Gaussian self) -> Eigen::Matrix3d"""
10334  return _IMP_core.Gaussian_get_global_covariance(self)
10335 
10336  def get_gaussian(self):
10337  r"""get_gaussian(Gaussian self) -> Gaussian3D"""
10338  return _IMP_core.Gaussian_get_gaussian(self)
10339 
10340  def set_gaussian(self, g):
10341  r"""set_gaussian(Gaussian self, Gaussian3D g)"""
10342  return _IMP_core.Gaussian_set_gaussian(self, g)
10343 
10344  def set_local_covariance(self, covar):
10345  r"""set_local_covariance(Gaussian self, Eigen::Vector3d const covar)"""
10346  return _IMP_core.Gaussian_set_local_covariance(self, covar)
10347 
10348  def set_variances(self, v):
10349  r"""set_variances(Gaussian self, Vector3D v)"""
10350  return _IMP_core.Gaussian_set_variances(self, v)
10351 
10352  def set_global_covariance(self, covar):
10353  r"""set_global_covariance(Gaussian self, Eigen::Matrix3d covar)"""
10354  return _IMP_core.Gaussian_set_global_covariance(self, covar)
10355 
10356  def update_global_covariance(self):
10357  r"""update_global_covariance(Gaussian self)"""
10358  return _IMP_core.Gaussian_update_global_covariance(self)
10359 
10360  def add_attribute(self, *args):
10361  r"""
10362  add_attribute(Gaussian self, FloatKey k, IMP::Float v, bool opt)
10363  add_attribute(Gaussian self, FloatKey a0, IMP::Float a1)
10364  add_attribute(Gaussian self, IntKey a0, IMP::Int a1)
10365  add_attribute(Gaussian self, FloatsKey a0, IMP::Floats a1)
10366  add_attribute(Gaussian self, IntsKey a0, IMP::Ints a1)
10367  add_attribute(Gaussian self, StringKey a0, IMP::String a1)
10368  add_attribute(Gaussian self, ParticleIndexKey a0, Particle a1)
10369  add_attribute(Gaussian self, ObjectKey a0, Object a1)
10370  add_attribute(Gaussian self, SparseFloatKey a0, IMP::Float a1)
10371  add_attribute(Gaussian self, SparseIntKey a0, IMP::Int a1)
10372  add_attribute(Gaussian self, SparseStringKey a0, IMP::String a1)
10373  add_attribute(Gaussian self, SparseParticleIndexKey a0, ParticleIndex a1)
10374  """
10375  return _IMP_core.Gaussian_add_attribute(self, *args)
10376 
10377  def get_value(self, *args):
10378  r"""
10379  get_value(Gaussian self, FloatKey a0) -> IMP::Float
10380  get_value(Gaussian self, IntKey a0) -> IMP::Int
10381  get_value(Gaussian self, FloatsKey a0) -> IMP::Floats
10382  get_value(Gaussian self, IntsKey a0) -> IMP::Ints
10383  get_value(Gaussian self, StringKey a0) -> IMP::String
10384  get_value(Gaussian self, ParticleIndexKey a0) -> Particle
10385  get_value(Gaussian self, ObjectKey a0) -> Object
10386  get_value(Gaussian self, SparseFloatKey a0) -> IMP::Float
10387  get_value(Gaussian self, SparseIntKey a0) -> IMP::Int
10388  get_value(Gaussian self, SparseStringKey a0) -> IMP::String
10389  get_value(Gaussian self, SparseParticleIndexKey a0) -> ParticleIndex
10390  """
10391  return _IMP_core.Gaussian_get_value(self, *args)
10392 
10393  def set_value(self, *args):
10394  r"""
10395  set_value(Gaussian self, FloatKey a0, IMP::Float a1)
10396  set_value(Gaussian self, IntKey a0, IMP::Int a1)
10397  set_value(Gaussian self, FloatsKey a0, IMP::Floats a1)
10398  set_value(Gaussian self, IntsKey a0, IMP::Ints a1)
10399  set_value(Gaussian self, StringKey a0, IMP::String a1)
10400  set_value(Gaussian self, ParticleIndexKey a0, Particle a1)
10401  set_value(Gaussian self, ObjectKey a0, Object a1)
10402  set_value(Gaussian self, SparseFloatKey a0, IMP::Float a1)
10403  set_value(Gaussian self, SparseIntKey a0, IMP::Int a1)
10404  set_value(Gaussian self, SparseStringKey a0, IMP::String a1)
10405  set_value(Gaussian self, SparseParticleIndexKey a0, ParticleIndex a1)
10406  """
10407  return _IMP_core.Gaussian_set_value(self, *args)
10408 
10409  def remove_attribute(self, *args):
10410  r"""
10411  remove_attribute(Gaussian self, FloatKey a0)
10412  remove_attribute(Gaussian self, IntKey a0)
10413  remove_attribute(Gaussian self, FloatsKey a0)
10414  remove_attribute(Gaussian self, IntsKey a0)
10415  remove_attribute(Gaussian self, StringKey a0)
10416  remove_attribute(Gaussian self, ParticleIndexKey a0)
10417  remove_attribute(Gaussian self, ObjectKey a0)
10418  remove_attribute(Gaussian self, SparseFloatKey a0)
10419  remove_attribute(Gaussian self, SparseIntKey a0)
10420  remove_attribute(Gaussian self, SparseStringKey a0)
10421  remove_attribute(Gaussian self, SparseParticleIndexKey a0)
10422  """
10423  return _IMP_core.Gaussian_remove_attribute(self, *args)
10424 
10425  def has_attribute(self, *args):
10426  r"""
10427  has_attribute(Gaussian self, FloatKey a0) -> bool
10428  has_attribute(Gaussian self, IntKey a0) -> bool
10429  has_attribute(Gaussian self, FloatsKey a0) -> bool
10430  has_attribute(Gaussian self, IntsKey a0) -> bool
10431  has_attribute(Gaussian self, StringKey a0) -> bool
10432  has_attribute(Gaussian self, ParticleIndexKey a0) -> bool
10433  has_attribute(Gaussian self, ObjectKey a0) -> bool
10434  has_attribute(Gaussian self, SparseFloatKey a0) -> bool
10435  has_attribute(Gaussian self, SparseIntKey a0) -> bool
10436  has_attribute(Gaussian self, SparseStringKey a0) -> bool
10437  has_attribute(Gaussian self, SparseParticleIndexKey a0) -> bool
10438  """
10439  return _IMP_core.Gaussian_has_attribute(self, *args)
10440 
10441  def get_derivative(self, a0):
10442  r"""get_derivative(Gaussian self, FloatKey a0) -> double"""
10443  return _IMP_core.Gaussian_get_derivative(self, a0)
10444 
10445  def get_name(self):
10446  r"""get_name(Gaussian self) -> std::string"""
10447  return _IMP_core.Gaussian_get_name(self)
10448 
10449  def clear_caches(self):
10450  r"""clear_caches(Gaussian self)"""
10451  return _IMP_core.Gaussian_clear_caches(self)
10452 
10453  def set_name(self, a0):
10454  r"""set_name(Gaussian self, std::string a0)"""
10455  return _IMP_core.Gaussian_set_name(self, a0)
10456 
10457  def set_check_level(self, a0):
10458  r"""set_check_level(Gaussian self, IMP::CheckLevel a0)"""
10459  return _IMP_core.Gaussian_set_check_level(self, a0)
10460 
10461  def add_to_derivative(self, a0, a1, a2):
10462  r"""add_to_derivative(Gaussian self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
10463  return _IMP_core.Gaussian_add_to_derivative(self, a0, a1, a2)
10464 
10465  def set_is_optimized(self, a0, a1):
10466  r"""set_is_optimized(Gaussian self, FloatKey a0, bool a1)"""
10467  return _IMP_core.Gaussian_set_is_optimized(self, a0, a1)
10468 
10469  def get_is_optimized(self, a0):
10470  r"""get_is_optimized(Gaussian self, FloatKey a0) -> bool"""
10471  return _IMP_core.Gaussian_get_is_optimized(self, a0)
10472 
10473  def get_check_level(self):
10474  r"""get_check_level(Gaussian self) -> IMP::CheckLevel"""
10475  return _IMP_core.Gaussian_get_check_level(self)
10476 
10477  def __eq__(self, *args):
10478  r"""
10479  __eq__(Gaussian self, Gaussian o) -> bool
10480  __eq__(Gaussian self, Particle d) -> bool
10481  """
10482  return _IMP_core.Gaussian___eq__(self, *args)
10483 
10484  def __ne__(self, *args):
10485  r"""
10486  __ne__(Gaussian self, Gaussian o) -> bool
10487  __ne__(Gaussian self, Particle d) -> bool
10488  """
10489  return _IMP_core.Gaussian___ne__(self, *args)
10490 
10491  def __le__(self, *args):
10492  r"""
10493  __le__(Gaussian self, Gaussian o) -> bool
10494  __le__(Gaussian self, Particle d) -> bool
10495  """
10496  return _IMP_core.Gaussian___le__(self, *args)
10497 
10498  def __lt__(self, *args):
10499  r"""
10500  __lt__(Gaussian self, Gaussian o) -> bool
10501  __lt__(Gaussian self, Particle d) -> bool
10502  """
10503  return _IMP_core.Gaussian___lt__(self, *args)
10504 
10505  def __ge__(self, *args):
10506  r"""
10507  __ge__(Gaussian self, Gaussian o) -> bool
10508  __ge__(Gaussian self, Particle d) -> bool
10509  """
10510  return _IMP_core.Gaussian___ge__(self, *args)
10511 
10512  def __gt__(self, *args):
10513  r"""
10514  __gt__(Gaussian self, Gaussian o) -> bool
10515  __gt__(Gaussian self, Particle d) -> bool
10516  """
10517  return _IMP_core.Gaussian___gt__(self, *args)
10518 
10519  def __hash__(self):
10520  r"""__hash__(Gaussian self) -> std::size_t"""
10521  return _IMP_core.Gaussian___hash__(self)
10522 
10523  def __str__(self):
10524  r"""__str__(Gaussian self) -> std::string"""
10525  return _IMP_core.Gaussian___str__(self)
10526 
10527  def __repr__(self):
10528  r"""__repr__(Gaussian self) -> std::string"""
10529  return _IMP_core.Gaussian___repr__(self)
10530 
10531  def _get_as_binary(self):
10532  r"""_get_as_binary(Gaussian self) -> PyObject *"""
10533  return _IMP_core.Gaussian__get_as_binary(self)
10534 
10535  def _set_from_binary(self, p):
10536  r"""_set_from_binary(Gaussian self, PyObject * p)"""
10537  return _IMP_core.Gaussian__set_from_binary(self, p)
10538 
10539  def __getstate__(self):
10540  p = self._get_as_binary()
10541  if len(self.__dict__) > 1:
10542  d = self.__dict__.copy()
10543  del d['this']
10544  p = (d, p)
10545  return p
10546 
10547  def __setstate__(self, p):
10548  if not hasattr(self, 'this'):
10549  self.__init__()
10550  if isinstance(p, tuple):
10551  d, p = p
10552  self.__dict__.update(d)
10553  return self._set_from_binary(p)
10554 
10555  __swig_destroy__ = _IMP_core.delete_Gaussian
10556 
10557 # Register Gaussian in _IMP_core:
10558 _IMP_core.Gaussian_swigregister(Gaussian)
10559 class PairRestraint(IMP.Restraint):
10560  r"""Proxy of C++ IMP::core::PairRestraint class."""
10561 
10562  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10563 
10564  def __init__(self, *args):
10565  r"""
10566  __init__(PairRestraint self, Model m, PairScore ss, IMP::ParticleIndexPair const & vt, std::string name="PairRestraint %1%") -> PairRestraint
10567  __init__(PairRestraint self) -> PairRestraint
10568  """
10569  _IMP_core.PairRestraint_swiginit(self, _IMP_core.new_PairRestraint(*args))
10570 
10571  def get_version_info(self):
10572  r"""get_version_info(PairRestraint self) -> VersionInfo"""
10573  return _IMP_core.PairRestraint_get_version_info(self)
10574  __swig_destroy__ = _IMP_core.delete_PairRestraint
10575 
10576  def __str__(self):
10577  r"""__str__(PairRestraint self) -> std::string"""
10578  return _IMP_core.PairRestraint___str__(self)
10579 
10580  def __repr__(self):
10581  r"""__repr__(PairRestraint self) -> std::string"""
10582  return _IMP_core.PairRestraint___repr__(self)
10583 
10584  @staticmethod
10585  def get_from(o):
10586  return _object_cast_to_PairRestraint(o)
10587 
10588 
10589  def _get_as_binary(self):
10590  r"""_get_as_binary(PairRestraint self) -> PyObject *"""
10591  return _IMP_core.PairRestraint__get_as_binary(self)
10592 
10593  def _set_from_binary(self, p):
10594  r"""_set_from_binary(PairRestraint self, PyObject * p)"""
10595  return _IMP_core.PairRestraint__set_from_binary(self, p)
10596 
10597  def __getstate__(self):
10598  p = self._get_as_binary()
10599  if len(self.__dict__) > 1:
10600  d = self.__dict__.copy()
10601  del d['this']
10602  p = (d, p)
10603  return p
10604 
10605  def __setstate__(self, p):
10606  if not hasattr(self, 'this'):
10607  self.__init__()
10608  if isinstance(p, tuple):
10609  d, p = p
10610  self.__dict__.update(d)
10611  return self._set_from_binary(p)
10612 
10613 
10614 # Register PairRestraint in _IMP_core:
10615 _IMP_core.PairRestraint_swigregister(PairRestraint)
10616 class SingletonRestraint(IMP.Restraint):
10617  r"""Proxy of C++ IMP::core::SingletonRestraint class."""
10618 
10619  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10620 
10621  def __init__(self, *args):
10622  r"""
10623  __init__(SingletonRestraint self, Model m, SingletonScore ss, ParticleIndex vt, std::string name="SingletonRestraint %1%") -> SingletonRestraint
10624  __init__(SingletonRestraint self) -> SingletonRestraint
10625  """
10626  _IMP_core.SingletonRestraint_swiginit(self, _IMP_core.new_SingletonRestraint(*args))
10627 
10628  def get_version_info(self):
10629  r"""get_version_info(SingletonRestraint self) -> VersionInfo"""
10630  return _IMP_core.SingletonRestraint_get_version_info(self)
10631  __swig_destroy__ = _IMP_core.delete_SingletonRestraint
10632 
10633  def __str__(self):
10634  r"""__str__(SingletonRestraint self) -> std::string"""
10635  return _IMP_core.SingletonRestraint___str__(self)
10636 
10637  def __repr__(self):
10638  r"""__repr__(SingletonRestraint self) -> std::string"""
10639  return _IMP_core.SingletonRestraint___repr__(self)
10640 
10641  @staticmethod
10642  def get_from(o):
10643  return _object_cast_to_SingletonRestraint(o)
10644 
10645 
10646  def _get_as_binary(self):
10647  r"""_get_as_binary(SingletonRestraint self) -> PyObject *"""
10648  return _IMP_core.SingletonRestraint__get_as_binary(self)
10649 
10650  def _set_from_binary(self, p):
10651  r"""_set_from_binary(SingletonRestraint self, PyObject * p)"""
10652  return _IMP_core.SingletonRestraint__set_from_binary(self, p)
10653 
10654  def __getstate__(self):
10655  p = self._get_as_binary()
10656  if len(self.__dict__) > 1:
10657  d = self.__dict__.copy()
10658  del d['this']
10659  p = (d, p)
10660  return p
10661 
10662  def __setstate__(self, p):
10663  if not hasattr(self, 'this'):
10664  self.__init__()
10665  if isinstance(p, tuple):
10666  d, p = p
10667  self.__dict__.update(d)
10668  return self._set_from_binary(p)
10669 
10670 
10671 # Register SingletonRestraint in _IMP_core:
10672 _IMP_core.SingletonRestraint_swigregister(SingletonRestraint)
10673 class TripletRestraint(IMP.Restraint):
10674  r"""Proxy of C++ IMP::core::TripletRestraint class."""
10675 
10676  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10677 
10678  def __init__(self, *args):
10679  r"""
10680  __init__(TripletRestraint self, Model m, TripletScore ss, IMP::ParticleIndexTriplet const & vt, std::string name="TripletRestraint %1%") -> TripletRestraint
10681  __init__(TripletRestraint self) -> TripletRestraint
10682  """
10683  _IMP_core.TripletRestraint_swiginit(self, _IMP_core.new_TripletRestraint(*args))
10684 
10685  def get_version_info(self):
10686  r"""get_version_info(TripletRestraint self) -> VersionInfo"""
10687  return _IMP_core.TripletRestraint_get_version_info(self)
10688  __swig_destroy__ = _IMP_core.delete_TripletRestraint
10689 
10690  def __str__(self):
10691  r"""__str__(TripletRestraint self) -> std::string"""
10692  return _IMP_core.TripletRestraint___str__(self)
10693 
10694  def __repr__(self):
10695  r"""__repr__(TripletRestraint self) -> std::string"""
10696  return _IMP_core.TripletRestraint___repr__(self)
10697 
10698  @staticmethod
10699  def get_from(o):
10700  return _object_cast_to_TripletRestraint(o)
10701 
10702 
10703  def _get_as_binary(self):
10704  r"""_get_as_binary(TripletRestraint self) -> PyObject *"""
10705  return _IMP_core.TripletRestraint__get_as_binary(self)
10706 
10707  def _set_from_binary(self, p):
10708  r"""_set_from_binary(TripletRestraint self, PyObject * p)"""
10709  return _IMP_core.TripletRestraint__set_from_binary(self, p)
10710 
10711  def __getstate__(self):
10712  p = self._get_as_binary()
10713  if len(self.__dict__) > 1:
10714  d = self.__dict__.copy()
10715  del d['this']
10716  p = (d, p)
10717  return p
10718 
10719  def __setstate__(self, p):
10720  if not hasattr(self, 'this'):
10721  self.__init__()
10722  if isinstance(p, tuple):
10723  d, p = p
10724  self.__dict__.update(d)
10725  return self._set_from_binary(p)
10726 
10727 
10728 # Register TripletRestraint in _IMP_core:
10729 _IMP_core.TripletRestraint_swigregister(TripletRestraint)
10730 class QuadRestraint(IMP.Restraint):
10731  r"""Proxy of C++ IMP::core::QuadRestraint class."""
10732 
10733  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10734 
10735  def __init__(self, *args):
10736  r"""
10737  __init__(QuadRestraint self, Model m, QuadScore ss, IMP::ParticleIndexQuad const & vt, std::string name="QuadRestraint %1%") -> QuadRestraint
10738  __init__(QuadRestraint self) -> QuadRestraint
10739  """
10740  _IMP_core.QuadRestraint_swiginit(self, _IMP_core.new_QuadRestraint(*args))
10741 
10742  def get_version_info(self):
10743  r"""get_version_info(QuadRestraint self) -> VersionInfo"""
10744  return _IMP_core.QuadRestraint_get_version_info(self)
10745  __swig_destroy__ = _IMP_core.delete_QuadRestraint
10746 
10747  def __str__(self):
10748  r"""__str__(QuadRestraint self) -> std::string"""
10749  return _IMP_core.QuadRestraint___str__(self)
10750 
10751  def __repr__(self):
10752  r"""__repr__(QuadRestraint self) -> std::string"""
10753  return _IMP_core.QuadRestraint___repr__(self)
10754 
10755  @staticmethod
10756  def get_from(o):
10757  return _object_cast_to_QuadRestraint(o)
10758 
10759 
10760  def _get_as_binary(self):
10761  r"""_get_as_binary(QuadRestraint self) -> PyObject *"""
10762  return _IMP_core.QuadRestraint__get_as_binary(self)
10763 
10764  def _set_from_binary(self, p):
10765  r"""_set_from_binary(QuadRestraint self, PyObject * p)"""
10766  return _IMP_core.QuadRestraint__set_from_binary(self, p)
10767 
10768  def __getstate__(self):
10769  p = self._get_as_binary()
10770  if len(self.__dict__) > 1:
10771  d = self.__dict__.copy()
10772  del d['this']
10773  p = (d, p)
10774  return p
10775 
10776  def __setstate__(self, p):
10777  if not hasattr(self, 'this'):
10778  self.__init__()
10779  if isinstance(p, tuple):
10780  d, p = p
10781  self.__dict__.update(d)
10782  return self._set_from_binary(p)
10783 
10784 
10785 # Register QuadRestraint in _IMP_core:
10786 _IMP_core.QuadRestraint_swigregister(QuadRestraint)
10787 class SingletonConstraint(IMP.Constraint):
10788  r"""Proxy of C++ IMP::core::SingletonConstraint class."""
10789 
10790  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10791 
10792  def __init__(self, *args):
10793  r"""
10794  __init__(SingletonConstraint self, SingletonModifier before, SingletonModifier after, Model m, ParticleIndex vt, std::string name="SingletonConstraint %1%", bool can_skip=False) -> SingletonConstraint
10795  __init__(SingletonConstraint self) -> SingletonConstraint
10796  """
10797  _IMP_core.SingletonConstraint_swiginit(self, _IMP_core.new_SingletonConstraint(*args))
10798 
10799  def get_version_info(self):
10800  r"""get_version_info(SingletonConstraint self) -> VersionInfo"""
10801  return _IMP_core.SingletonConstraint_get_version_info(self)
10802  __swig_destroy__ = _IMP_core.delete_SingletonConstraint
10803 
10804  def __str__(self):
10805  r"""__str__(SingletonConstraint self) -> std::string"""
10806  return _IMP_core.SingletonConstraint___str__(self)
10807 
10808  def __repr__(self):
10809  r"""__repr__(SingletonConstraint self) -> std::string"""
10810  return _IMP_core.SingletonConstraint___repr__(self)
10811 
10812  @staticmethod
10813  def get_from(o):
10814  return _object_cast_to_SingletonConstraint(o)
10815 
10816 
10817  def _get_as_binary(self):
10818  r"""_get_as_binary(SingletonConstraint self) -> PyObject *"""
10819  return _IMP_core.SingletonConstraint__get_as_binary(self)
10820 
10821  def _set_from_binary(self, p):
10822  r"""_set_from_binary(SingletonConstraint self, PyObject * p)"""
10823  return _IMP_core.SingletonConstraint__set_from_binary(self, p)
10824 
10825  def __getstate__(self):
10826  p = self._get_as_binary()
10827  if len(self.__dict__) > 1:
10828  d = self.__dict__.copy()
10829  del d['this']
10830  p = (d, p)
10831  return p
10832 
10833  def __setstate__(self, p):
10834  if not hasattr(self, 'this'):
10835  self.__init__()
10836  if isinstance(p, tuple):
10837  d, p = p
10838  self.__dict__.update(d)
10839  return self._set_from_binary(p)
10840 
10841 
10842 # Register SingletonConstraint in _IMP_core:
10843 _IMP_core.SingletonConstraint_swigregister(SingletonConstraint)
10844 class PairConstraint(IMP.Constraint):
10845  r"""Proxy of C++ IMP::core::PairConstraint class."""
10846 
10847  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10848 
10849  def __init__(self, *args):
10850  r"""
10851  __init__(PairConstraint self, PairModifier before, PairModifier after, Model m, IMP::ParticleIndexPair const & vt, std::string name="PairConstraint %1%", bool can_skip=False) -> PairConstraint
10852  __init__(PairConstraint self) -> PairConstraint
10853  """
10854  _IMP_core.PairConstraint_swiginit(self, _IMP_core.new_PairConstraint(*args))
10855 
10856  def get_version_info(self):
10857  r"""get_version_info(PairConstraint self) -> VersionInfo"""
10858  return _IMP_core.PairConstraint_get_version_info(self)
10859  __swig_destroy__ = _IMP_core.delete_PairConstraint
10860 
10861  def __str__(self):
10862  r"""__str__(PairConstraint self) -> std::string"""
10863  return _IMP_core.PairConstraint___str__(self)
10864 
10865  def __repr__(self):
10866  r"""__repr__(PairConstraint self) -> std::string"""
10867  return _IMP_core.PairConstraint___repr__(self)
10868 
10869  @staticmethod
10870  def get_from(o):
10871  return _object_cast_to_PairConstraint(o)
10872 
10873 
10874  def _get_as_binary(self):
10875  r"""_get_as_binary(PairConstraint self) -> PyObject *"""
10876  return _IMP_core.PairConstraint__get_as_binary(self)
10877 
10878  def _set_from_binary(self, p):
10879  r"""_set_from_binary(PairConstraint self, PyObject * p)"""
10880  return _IMP_core.PairConstraint__set_from_binary(self, p)
10881 
10882  def __getstate__(self):
10883  p = self._get_as_binary()
10884  if len(self.__dict__) > 1:
10885  d = self.__dict__.copy()
10886  del d['this']
10887  p = (d, p)
10888  return p
10889 
10890  def __setstate__(self, p):
10891  if not hasattr(self, 'this'):
10892  self.__init__()
10893  if isinstance(p, tuple):
10894  d, p = p
10895  self.__dict__.update(d)
10896  return self._set_from_binary(p)
10897 
10898 
10899 # Register PairConstraint in _IMP_core:
10900 _IMP_core.PairConstraint_swigregister(PairConstraint)
10901 class TripletConstraint(IMP.Constraint):
10902  r"""Proxy of C++ IMP::core::TripletConstraint class."""
10903 
10904  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10905 
10906  def __init__(self, *args):
10907  r"""
10908  __init__(TripletConstraint self, TripletModifier before, TripletModifier after, Model m, IMP::ParticleIndexTriplet const & vt, std::string name="TripletConstraint %1%", bool can_skip=False) -> TripletConstraint
10909  __init__(TripletConstraint self) -> TripletConstraint
10910  """
10911  _IMP_core.TripletConstraint_swiginit(self, _IMP_core.new_TripletConstraint(*args))
10912 
10913  def get_version_info(self):
10914  r"""get_version_info(TripletConstraint self) -> VersionInfo"""
10915  return _IMP_core.TripletConstraint_get_version_info(self)
10916  __swig_destroy__ = _IMP_core.delete_TripletConstraint
10917 
10918  def __str__(self):
10919  r"""__str__(TripletConstraint self) -> std::string"""
10920  return _IMP_core.TripletConstraint___str__(self)
10921 
10922  def __repr__(self):
10923  r"""__repr__(TripletConstraint self) -> std::string"""
10924  return _IMP_core.TripletConstraint___repr__(self)
10925 
10926  @staticmethod
10927  def get_from(o):
10928  return _object_cast_to_TripletConstraint(o)
10929 
10930 
10931  def _get_as_binary(self):
10932  r"""_get_as_binary(TripletConstraint self) -> PyObject *"""
10933  return _IMP_core.TripletConstraint__get_as_binary(self)
10934 
10935  def _set_from_binary(self, p):
10936  r"""_set_from_binary(TripletConstraint self, PyObject * p)"""
10937  return _IMP_core.TripletConstraint__set_from_binary(self, p)
10938 
10939  def __getstate__(self):
10940  p = self._get_as_binary()
10941  if len(self.__dict__) > 1:
10942  d = self.__dict__.copy()
10943  del d['this']
10944  p = (d, p)
10945  return p
10946 
10947  def __setstate__(self, p):
10948  if not hasattr(self, 'this'):
10949  self.__init__()
10950  if isinstance(p, tuple):
10951  d, p = p
10952  self.__dict__.update(d)
10953  return self._set_from_binary(p)
10954 
10955 
10956 # Register TripletConstraint in _IMP_core:
10957 _IMP_core.TripletConstraint_swigregister(TripletConstraint)
10958 class QuadConstraint(IMP.Constraint):
10959  r"""Proxy of C++ IMP::core::QuadConstraint class."""
10960 
10961  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
10962 
10963  def __init__(self, *args):
10964  r"""
10965  __init__(QuadConstraint self, QuadModifier before, QuadModifier after, Model m, IMP::ParticleIndexQuad const & vt, std::string name="QuadConstraint %1%", bool can_skip=False) -> QuadConstraint
10966  __init__(QuadConstraint self) -> QuadConstraint
10967  """
10968  _IMP_core.QuadConstraint_swiginit(self, _IMP_core.new_QuadConstraint(*args))
10969 
10970  def get_version_info(self):
10971  r"""get_version_info(QuadConstraint self) -> VersionInfo"""
10972  return _IMP_core.QuadConstraint_get_version_info(self)
10973  __swig_destroy__ = _IMP_core.delete_QuadConstraint
10974 
10975  def __str__(self):
10976  r"""__str__(QuadConstraint self) -> std::string"""
10977  return _IMP_core.QuadConstraint___str__(self)
10978 
10979  def __repr__(self):
10980  r"""__repr__(QuadConstraint self) -> std::string"""
10981  return _IMP_core.QuadConstraint___repr__(self)
10982 
10983  @staticmethod
10984  def get_from(o):
10985  return _object_cast_to_QuadConstraint(o)
10986 
10987 
10988  def _get_as_binary(self):
10989  r"""_get_as_binary(QuadConstraint self) -> PyObject *"""
10990  return _IMP_core.QuadConstraint__get_as_binary(self)
10991 
10992  def _set_from_binary(self, p):
10993  r"""_set_from_binary(QuadConstraint self, PyObject * p)"""
10994  return _IMP_core.QuadConstraint__set_from_binary(self, p)
10995 
10996  def __getstate__(self):
10997  p = self._get_as_binary()
10998  if len(self.__dict__) > 1:
10999  d = self.__dict__.copy()
11000  del d['this']
11001  p = (d, p)
11002  return p
11003 
11004  def __setstate__(self, p):
11005  if not hasattr(self, 'this'):
11006  self.__init__()
11007  if isinstance(p, tuple):
11008  d, p = p
11009  self.__dict__.update(d)
11010  return self._set_from_binary(p)
11011 
11012 
11013 # Register QuadConstraint in _IMP_core:
11014 _IMP_core.QuadConstraint_swigregister(QuadConstraint)
11015 class ConstantSingletonPredicate(IMP.SingletonPredicate):
11016  r"""Proxy of C++ IMP::core::ConstantSingletonPredicate class."""
11017 
11018  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11019 
11020  def __init__(self, *args):
11021  r"""
11022  __init__(ConstantSingletonPredicate self, int v, std::string name="ConstSingletonPredicate%1%") -> ConstantSingletonPredicate
11023  __init__(ConstantSingletonPredicate self) -> ConstantSingletonPredicate
11024  """
11025  _IMP_core.ConstantSingletonPredicate_swiginit(self, _IMP_core.new_ConstantSingletonPredicate(*args))
11026 
11027  def do_get_inputs(self, arg2, arg3):
11028  r"""do_get_inputs(ConstantSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11029  return _IMP_core.ConstantSingletonPredicate_do_get_inputs(self, arg2, arg3)
11030 
11031  def get_value(self, *args):
11032  r"""
11033  get_value(ConstantSingletonPredicate self, Particle a) -> int
11034  get_value(ConstantSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11035  """
11036  return _IMP_core.ConstantSingletonPredicate_get_value(self, *args)
11037 
11038  def get_value_index(self, *args):
11039  r"""
11040  get_value_index(ConstantSingletonPredicate self, Model arg2, ParticleIndex arg3) -> int
11041  get_value_index(ConstantSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11042  """
11043  return _IMP_core.ConstantSingletonPredicate_get_value_index(self, *args)
11044 
11045  def get_version_info(self):
11046  r"""get_version_info(ConstantSingletonPredicate self) -> VersionInfo"""
11047  return _IMP_core.ConstantSingletonPredicate_get_version_info(self)
11048  __swig_destroy__ = _IMP_core.delete_ConstantSingletonPredicate
11049 
11050  def __str__(self):
11051  r"""__str__(ConstantSingletonPredicate self) -> std::string"""
11052  return _IMP_core.ConstantSingletonPredicate___str__(self)
11053 
11054  def __repr__(self):
11055  r"""__repr__(ConstantSingletonPredicate self) -> std::string"""
11056  return _IMP_core.ConstantSingletonPredicate___repr__(self)
11057 
11058  @staticmethod
11059  def get_from(o):
11060  return _object_cast_to_ConstantSingletonPredicate(o)
11061 
11062 
11063  def _get_as_binary(self):
11064  r"""_get_as_binary(ConstantSingletonPredicate self) -> PyObject *"""
11065  return _IMP_core.ConstantSingletonPredicate__get_as_binary(self)
11066 
11067  def _set_from_binary(self, p):
11068  r"""_set_from_binary(ConstantSingletonPredicate self, PyObject * p)"""
11069  return _IMP_core.ConstantSingletonPredicate__set_from_binary(self, p)
11070 
11071  def __getstate__(self):
11072  p = self._get_as_binary()
11073  if len(self.__dict__) > 1:
11074  d = self.__dict__.copy()
11075  del d['this']
11076  p = (d, p)
11077  return p
11078 
11079  def __setstate__(self, p):
11080  if not hasattr(self, 'this'):
11081  self.__init__()
11082  if isinstance(p, tuple):
11083  d, p = p
11084  self.__dict__.update(d)
11085  return self._set_from_binary(p)
11086 
11087 
11088 # Register ConstantSingletonPredicate in _IMP_core:
11089 _IMP_core.ConstantSingletonPredicate_swigregister(ConstantSingletonPredicate)
11090 class UnorderedTypeSingletonPredicate(IMP.SingletonPredicate):
11091  r"""Proxy of C++ IMP::core::UnorderedTypeSingletonPredicate class."""
11092 
11093  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11094 
11095  def __init__(self, *args):
11096  r"""__init__(UnorderedTypeSingletonPredicate self, std::string name="UnorderedTypeSingletonPredicate%1%") -> UnorderedTypeSingletonPredicate"""
11097  _IMP_core.UnorderedTypeSingletonPredicate_swiginit(self, _IMP_core.new_UnorderedTypeSingletonPredicate(*args))
11098 
11099  def do_get_inputs(self, m, pis):
11100  r"""do_get_inputs(UnorderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11101  return _IMP_core.UnorderedTypeSingletonPredicate_do_get_inputs(self, m, pis)
11102 
11103  def get_value(self, *args):
11104  r"""
11105  get_value(UnorderedTypeSingletonPredicate self, Particle a) -> int
11106  get_value(UnorderedTypeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11107  """
11108  return _IMP_core.UnorderedTypeSingletonPredicate_get_value(self, *args)
11109 
11110  def get_value_index(self, *args):
11111  r"""
11112  get_value_index(UnorderedTypeSingletonPredicate self, Model m, ParticleIndex pi) -> int
11113  get_value_index(UnorderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11114  """
11115  return _IMP_core.UnorderedTypeSingletonPredicate_get_value_index(self, *args)
11116 
11117  def get_version_info(self):
11118  r"""get_version_info(UnorderedTypeSingletonPredicate self) -> VersionInfo"""
11119  return _IMP_core.UnorderedTypeSingletonPredicate_get_version_info(self)
11120  __swig_destroy__ = _IMP_core.delete_UnorderedTypeSingletonPredicate
11121 
11122  def __str__(self):
11123  r"""__str__(UnorderedTypeSingletonPredicate self) -> std::string"""
11124  return _IMP_core.UnorderedTypeSingletonPredicate___str__(self)
11125 
11126  def __repr__(self):
11127  r"""__repr__(UnorderedTypeSingletonPredicate self) -> std::string"""
11128  return _IMP_core.UnorderedTypeSingletonPredicate___repr__(self)
11129 
11130  @staticmethod
11131  def get_from(o):
11132  return _object_cast_to_UnorderedTypeSingletonPredicate(o)
11133 
11134 
11135  def _get_as_binary(self):
11136  r"""_get_as_binary(UnorderedTypeSingletonPredicate self) -> PyObject *"""
11137  return _IMP_core.UnorderedTypeSingletonPredicate__get_as_binary(self)
11138 
11139  def _set_from_binary(self, p):
11140  r"""_set_from_binary(UnorderedTypeSingletonPredicate self, PyObject * p)"""
11141  return _IMP_core.UnorderedTypeSingletonPredicate__set_from_binary(self, p)
11142 
11143  def __getstate__(self):
11144  p = self._get_as_binary()
11145  if len(self.__dict__) > 1:
11146  d = self.__dict__.copy()
11147  del d['this']
11148  p = (d, p)
11149  return p
11150 
11151  def __setstate__(self, p):
11152  if not hasattr(self, 'this'):
11153  self.__init__()
11154  if isinstance(p, tuple):
11155  d, p = p
11156  self.__dict__.update(d)
11157  return self._set_from_binary(p)
11158 
11159 
11160 # Register UnorderedTypeSingletonPredicate in _IMP_core:
11161 _IMP_core.UnorderedTypeSingletonPredicate_swigregister(UnorderedTypeSingletonPredicate)
11162 class OrderedTypeSingletonPredicate(IMP.SingletonPredicate):
11163  r"""Proxy of C++ IMP::core::OrderedTypeSingletonPredicate class."""
11164 
11165  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11166 
11167  def __init__(self, *args):
11168  r"""__init__(OrderedTypeSingletonPredicate self, std::string name="OrderedTypeSingletonPredicate%1%") -> OrderedTypeSingletonPredicate"""
11169  _IMP_core.OrderedTypeSingletonPredicate_swiginit(self, _IMP_core.new_OrderedTypeSingletonPredicate(*args))
11170 
11171  def do_get_inputs(self, m, pis):
11172  r"""do_get_inputs(OrderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11173  return _IMP_core.OrderedTypeSingletonPredicate_do_get_inputs(self, m, pis)
11174 
11175  def get_value(self, *args):
11176  r"""
11177  get_value(OrderedTypeSingletonPredicate self, IMP::core::ParticleTypes const & types) -> int
11178  get_value(OrderedTypeSingletonPredicate self, Particle a) -> int
11179  get_value(OrderedTypeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11180  """
11181  return _IMP_core.OrderedTypeSingletonPredicate_get_value(self, *args)
11182 
11183  def get_value_index(self, *args):
11184  r"""
11185  get_value_index(OrderedTypeSingletonPredicate self, Model m, ParticleIndex pi) -> int
11186  get_value_index(OrderedTypeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11187  """
11188  return _IMP_core.OrderedTypeSingletonPredicate_get_value_index(self, *args)
11189 
11190  def get_version_info(self):
11191  r"""get_version_info(OrderedTypeSingletonPredicate self) -> VersionInfo"""
11192  return _IMP_core.OrderedTypeSingletonPredicate_get_version_info(self)
11193  __swig_destroy__ = _IMP_core.delete_OrderedTypeSingletonPredicate
11194 
11195  def __str__(self):
11196  r"""__str__(OrderedTypeSingletonPredicate self) -> std::string"""
11197  return _IMP_core.OrderedTypeSingletonPredicate___str__(self)
11198 
11199  def __repr__(self):
11200  r"""__repr__(OrderedTypeSingletonPredicate self) -> std::string"""
11201  return _IMP_core.OrderedTypeSingletonPredicate___repr__(self)
11202 
11203  @staticmethod
11204  def get_from(o):
11205  return _object_cast_to_OrderedTypeSingletonPredicate(o)
11206 
11207 
11208 # Register OrderedTypeSingletonPredicate in _IMP_core:
11209 _IMP_core.OrderedTypeSingletonPredicate_swigregister(OrderedTypeSingletonPredicate)
11210 class AllSameSingletonPredicate(IMP.SingletonPredicate):
11211  r"""Proxy of C++ IMP::core::AllSameSingletonPredicate class."""
11212 
11213  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11214 
11215  def __init__(self, *args):
11216  r"""__init__(AllSameSingletonPredicate self, std::string name="AllSameSingletonPredicate%1%") -> AllSameSingletonPredicate"""
11217  _IMP_core.AllSameSingletonPredicate_swiginit(self, _IMP_core.new_AllSameSingletonPredicate(*args))
11218 
11219  def do_get_inputs(self, arg2, arg3):
11220  r"""do_get_inputs(AllSameSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11221  return _IMP_core.AllSameSingletonPredicate_do_get_inputs(self, arg2, arg3)
11222 
11223  def get_value(self, *args):
11224  r"""
11225  get_value(AllSameSingletonPredicate self, Particle a) -> int
11226  get_value(AllSameSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11227  """
11228  return _IMP_core.AllSameSingletonPredicate_get_value(self, *args)
11229 
11230  def get_value_index(self, *args):
11231  r"""
11232  get_value_index(AllSameSingletonPredicate self, Model m, ParticleIndex pi) -> int
11233  get_value_index(AllSameSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11234  """
11235  return _IMP_core.AllSameSingletonPredicate_get_value_index(self, *args)
11236 
11237  def get_version_info(self):
11238  r"""get_version_info(AllSameSingletonPredicate self) -> VersionInfo"""
11239  return _IMP_core.AllSameSingletonPredicate_get_version_info(self)
11240  __swig_destroy__ = _IMP_core.delete_AllSameSingletonPredicate
11241 
11242  def __str__(self):
11243  r"""__str__(AllSameSingletonPredicate self) -> std::string"""
11244  return _IMP_core.AllSameSingletonPredicate___str__(self)
11245 
11246  def __repr__(self):
11247  r"""__repr__(AllSameSingletonPredicate self) -> std::string"""
11248  return _IMP_core.AllSameSingletonPredicate___repr__(self)
11249 
11250  @staticmethod
11251  def get_from(o):
11252  return _object_cast_to_AllSameSingletonPredicate(o)
11253 
11254 
11255  def _get_as_binary(self):
11256  r"""_get_as_binary(AllSameSingletonPredicate self) -> PyObject *"""
11257  return _IMP_core.AllSameSingletonPredicate__get_as_binary(self)
11258 
11259  def _set_from_binary(self, p):
11260  r"""_set_from_binary(AllSameSingletonPredicate self, PyObject * p)"""
11261  return _IMP_core.AllSameSingletonPredicate__set_from_binary(self, p)
11262 
11263  def __getstate__(self):
11264  p = self._get_as_binary()
11265  if len(self.__dict__) > 1:
11266  d = self.__dict__.copy()
11267  del d['this']
11268  p = (d, p)
11269  return p
11270 
11271  def __setstate__(self, p):
11272  if not hasattr(self, 'this'):
11273  self.__init__()
11274  if isinstance(p, tuple):
11275  d, p = p
11276  self.__dict__.update(d)
11277  return self._set_from_binary(p)
11278 
11279 
11280 # Register AllSameSingletonPredicate in _IMP_core:
11281 _IMP_core.AllSameSingletonPredicate_swigregister(AllSameSingletonPredicate)
11282 class CoinFlipSingletonPredicate(IMP.SingletonPredicate):
11283  r"""Proxy of C++ IMP::core::CoinFlipSingletonPredicate class."""
11284 
11285  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11286 
11287  def __init__(self, *args):
11288  r"""__init__(CoinFlipSingletonPredicate self, double p, std::string name="CoinFlipSingletonPredicate%1%") -> CoinFlipSingletonPredicate"""
11289  _IMP_core.CoinFlipSingletonPredicate_swiginit(self, _IMP_core.new_CoinFlipSingletonPredicate(*args))
11290 
11291  def do_get_inputs(self, arg2, arg3):
11292  r"""do_get_inputs(CoinFlipSingletonPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11293  return _IMP_core.CoinFlipSingletonPredicate_do_get_inputs(self, arg2, arg3)
11294 
11295  def get_value(self, *args):
11296  r"""
11297  get_value(CoinFlipSingletonPredicate self, Particle a) -> int
11298  get_value(CoinFlipSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
11299  """
11300  return _IMP_core.CoinFlipSingletonPredicate_get_value(self, *args)
11301 
11302  def get_value_index(self, *args):
11303  r"""
11304  get_value_index(CoinFlipSingletonPredicate self, Model arg2, ParticleIndex arg3) -> int
11305  get_value_index(CoinFlipSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
11306  """
11307  return _IMP_core.CoinFlipSingletonPredicate_get_value_index(self, *args)
11308 
11309  def get_version_info(self):
11310  r"""get_version_info(CoinFlipSingletonPredicate self) -> VersionInfo"""
11311  return _IMP_core.CoinFlipSingletonPredicate_get_version_info(self)
11312  __swig_destroy__ = _IMP_core.delete_CoinFlipSingletonPredicate
11313 
11314  def __str__(self):
11315  r"""__str__(CoinFlipSingletonPredicate self) -> std::string"""
11316  return _IMP_core.CoinFlipSingletonPredicate___str__(self)
11317 
11318  def __repr__(self):
11319  r"""__repr__(CoinFlipSingletonPredicate self) -> std::string"""
11320  return _IMP_core.CoinFlipSingletonPredicate___repr__(self)
11321 
11322  @staticmethod
11323  def get_from(o):
11324  return _object_cast_to_CoinFlipSingletonPredicate(o)
11325 
11326 
11327 # Register CoinFlipSingletonPredicate in _IMP_core:
11328 _IMP_core.CoinFlipSingletonPredicate_swigregister(CoinFlipSingletonPredicate)
11329 class ConstantPairPredicate(IMP.PairPredicate):
11330  r"""Proxy of C++ IMP::core::ConstantPairPredicate class."""
11331 
11332  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11333 
11334  def __init__(self, *args):
11335  r"""
11336  __init__(ConstantPairPredicate self, int v, std::string name="ConstPairPredicate%1%") -> ConstantPairPredicate
11337  __init__(ConstantPairPredicate self) -> ConstantPairPredicate
11338  """
11339  _IMP_core.ConstantPairPredicate_swiginit(self, _IMP_core.new_ConstantPairPredicate(*args))
11340 
11341  def do_get_inputs(self, arg2, arg3):
11342  r"""do_get_inputs(ConstantPairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11343  return _IMP_core.ConstantPairPredicate_do_get_inputs(self, arg2, arg3)
11344 
11345  def get_value(self, *args):
11346  r"""
11347  get_value(ConstantPairPredicate self, IMP::ParticlePair const & a) -> int
11348  get_value(ConstantPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11349  """
11350  return _IMP_core.ConstantPairPredicate_get_value(self, *args)
11351 
11352  def get_value_index(self, *args):
11353  r"""
11354  get_value_index(ConstantPairPredicate self, Model arg2, IMP::ParticleIndexPair const & arg3) -> int
11355  get_value_index(ConstantPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11356  """
11357  return _IMP_core.ConstantPairPredicate_get_value_index(self, *args)
11358 
11359  def get_version_info(self):
11360  r"""get_version_info(ConstantPairPredicate self) -> VersionInfo"""
11361  return _IMP_core.ConstantPairPredicate_get_version_info(self)
11362  __swig_destroy__ = _IMP_core.delete_ConstantPairPredicate
11363 
11364  def __str__(self):
11365  r"""__str__(ConstantPairPredicate self) -> std::string"""
11366  return _IMP_core.ConstantPairPredicate___str__(self)
11367 
11368  def __repr__(self):
11369  r"""__repr__(ConstantPairPredicate self) -> std::string"""
11370  return _IMP_core.ConstantPairPredicate___repr__(self)
11371 
11372  @staticmethod
11373  def get_from(o):
11374  return _object_cast_to_ConstantPairPredicate(o)
11375 
11376 
11377  def _get_as_binary(self):
11378  r"""_get_as_binary(ConstantPairPredicate self) -> PyObject *"""
11379  return _IMP_core.ConstantPairPredicate__get_as_binary(self)
11380 
11381  def _set_from_binary(self, p):
11382  r"""_set_from_binary(ConstantPairPredicate self, PyObject * p)"""
11383  return _IMP_core.ConstantPairPredicate__set_from_binary(self, p)
11384 
11385  def __getstate__(self):
11386  p = self._get_as_binary()
11387  if len(self.__dict__) > 1:
11388  d = self.__dict__.copy()
11389  del d['this']
11390  p = (d, p)
11391  return p
11392 
11393  def __setstate__(self, p):
11394  if not hasattr(self, 'this'):
11395  self.__init__()
11396  if isinstance(p, tuple):
11397  d, p = p
11398  self.__dict__.update(d)
11399  return self._set_from_binary(p)
11400 
11401 
11402 # Register ConstantPairPredicate in _IMP_core:
11403 _IMP_core.ConstantPairPredicate_swigregister(ConstantPairPredicate)
11404 class UnorderedTypePairPredicate(IMP.PairPredicate):
11405  r"""Proxy of C++ IMP::core::UnorderedTypePairPredicate class."""
11406 
11407  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11408 
11409  def __init__(self, *args):
11410  r"""__init__(UnorderedTypePairPredicate self, std::string name="UnorderedTypePairPredicate%1%") -> UnorderedTypePairPredicate"""
11411  _IMP_core.UnorderedTypePairPredicate_swiginit(self, _IMP_core.new_UnorderedTypePairPredicate(*args))
11412 
11413  def do_get_inputs(self, m, pis):
11414  r"""do_get_inputs(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11415  return _IMP_core.UnorderedTypePairPredicate_do_get_inputs(self, m, pis)
11416 
11417  def get_value(self, *args):
11418  r"""
11419  get_value(UnorderedTypePairPredicate self, IMP::ParticlePair const & a) -> int
11420  get_value(UnorderedTypePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11421  """
11422  return _IMP_core.UnorderedTypePairPredicate_get_value(self, *args)
11423 
11424  def get_value_index(self, *args):
11425  r"""
11426  get_value_index(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11427  get_value_index(UnorderedTypePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11428  """
11429  return _IMP_core.UnorderedTypePairPredicate_get_value_index(self, *args)
11430 
11431  def get_version_info(self):
11432  r"""get_version_info(UnorderedTypePairPredicate self) -> VersionInfo"""
11433  return _IMP_core.UnorderedTypePairPredicate_get_version_info(self)
11434  __swig_destroy__ = _IMP_core.delete_UnorderedTypePairPredicate
11435 
11436  def __str__(self):
11437  r"""__str__(UnorderedTypePairPredicate self) -> std::string"""
11438  return _IMP_core.UnorderedTypePairPredicate___str__(self)
11439 
11440  def __repr__(self):
11441  r"""__repr__(UnorderedTypePairPredicate self) -> std::string"""
11442  return _IMP_core.UnorderedTypePairPredicate___repr__(self)
11443 
11444  @staticmethod
11445  def get_from(o):
11446  return _object_cast_to_UnorderedTypePairPredicate(o)
11447 
11448 
11449  def _get_as_binary(self):
11450  r"""_get_as_binary(UnorderedTypePairPredicate self) -> PyObject *"""
11451  return _IMP_core.UnorderedTypePairPredicate__get_as_binary(self)
11452 
11453  def _set_from_binary(self, p):
11454  r"""_set_from_binary(UnorderedTypePairPredicate self, PyObject * p)"""
11455  return _IMP_core.UnorderedTypePairPredicate__set_from_binary(self, p)
11456 
11457  def __getstate__(self):
11458  p = self._get_as_binary()
11459  if len(self.__dict__) > 1:
11460  d = self.__dict__.copy()
11461  del d['this']
11462  p = (d, p)
11463  return p
11464 
11465  def __setstate__(self, p):
11466  if not hasattr(self, 'this'):
11467  self.__init__()
11468  if isinstance(p, tuple):
11469  d, p = p
11470  self.__dict__.update(d)
11471  return self._set_from_binary(p)
11472 
11473 
11474 # Register UnorderedTypePairPredicate in _IMP_core:
11475 _IMP_core.UnorderedTypePairPredicate_swigregister(UnorderedTypePairPredicate)
11476 class OrderedTypePairPredicate(IMP.PairPredicate):
11477  r"""Proxy of C++ IMP::core::OrderedTypePairPredicate class."""
11478 
11479  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11480 
11481  def __init__(self, *args):
11482  r"""__init__(OrderedTypePairPredicate self, std::string name="OrderedTypePairPredicate%1%") -> OrderedTypePairPredicate"""
11483  _IMP_core.OrderedTypePairPredicate_swiginit(self, _IMP_core.new_OrderedTypePairPredicate(*args))
11484 
11485  def do_get_inputs(self, m, pis):
11486  r"""do_get_inputs(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11487  return _IMP_core.OrderedTypePairPredicate_do_get_inputs(self, m, pis)
11488 
11489  def get_value(self, *args):
11490  r"""
11491  get_value(OrderedTypePairPredicate self, IMP::core::ParticleTypes const & types) -> int
11492  get_value(OrderedTypePairPredicate self, IMP::ParticlePair const & a) -> int
11493  get_value(OrderedTypePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11494  """
11495  return _IMP_core.OrderedTypePairPredicate_get_value(self, *args)
11496 
11497  def get_value_index(self, *args):
11498  r"""
11499  get_value_index(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11500  get_value_index(OrderedTypePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11501  """
11502  return _IMP_core.OrderedTypePairPredicate_get_value_index(self, *args)
11503 
11504  def get_version_info(self):
11505  r"""get_version_info(OrderedTypePairPredicate self) -> VersionInfo"""
11506  return _IMP_core.OrderedTypePairPredicate_get_version_info(self)
11507  __swig_destroy__ = _IMP_core.delete_OrderedTypePairPredicate
11508 
11509  def __str__(self):
11510  r"""__str__(OrderedTypePairPredicate self) -> std::string"""
11511  return _IMP_core.OrderedTypePairPredicate___str__(self)
11512 
11513  def __repr__(self):
11514  r"""__repr__(OrderedTypePairPredicate self) -> std::string"""
11515  return _IMP_core.OrderedTypePairPredicate___repr__(self)
11516 
11517  @staticmethod
11518  def get_from(o):
11519  return _object_cast_to_OrderedTypePairPredicate(o)
11520 
11521 
11522 # Register OrderedTypePairPredicate in _IMP_core:
11523 _IMP_core.OrderedTypePairPredicate_swigregister(OrderedTypePairPredicate)
11524 class AllSamePairPredicate(IMP.PairPredicate):
11525  r"""Proxy of C++ IMP::core::AllSamePairPredicate class."""
11526 
11527  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11528 
11529  def __init__(self, *args):
11530  r"""__init__(AllSamePairPredicate self, std::string name="AllSamePairPredicate%1%") -> AllSamePairPredicate"""
11531  _IMP_core.AllSamePairPredicate_swiginit(self, _IMP_core.new_AllSamePairPredicate(*args))
11532 
11533  def do_get_inputs(self, arg2, arg3):
11534  r"""do_get_inputs(AllSamePairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11535  return _IMP_core.AllSamePairPredicate_do_get_inputs(self, arg2, arg3)
11536 
11537  def get_value(self, *args):
11538  r"""
11539  get_value(AllSamePairPredicate self, IMP::ParticlePair const & a) -> int
11540  get_value(AllSamePairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11541  """
11542  return _IMP_core.AllSamePairPredicate_get_value(self, *args)
11543 
11544  def get_value_index(self, *args):
11545  r"""
11546  get_value_index(AllSamePairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
11547  get_value_index(AllSamePairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11548  """
11549  return _IMP_core.AllSamePairPredicate_get_value_index(self, *args)
11550 
11551  def get_version_info(self):
11552  r"""get_version_info(AllSamePairPredicate self) -> VersionInfo"""
11553  return _IMP_core.AllSamePairPredicate_get_version_info(self)
11554  __swig_destroy__ = _IMP_core.delete_AllSamePairPredicate
11555 
11556  def __str__(self):
11557  r"""__str__(AllSamePairPredicate self) -> std::string"""
11558  return _IMP_core.AllSamePairPredicate___str__(self)
11559 
11560  def __repr__(self):
11561  r"""__repr__(AllSamePairPredicate self) -> std::string"""
11562  return _IMP_core.AllSamePairPredicate___repr__(self)
11563 
11564  @staticmethod
11565  def get_from(o):
11566  return _object_cast_to_AllSamePairPredicate(o)
11567 
11568 
11569  def _get_as_binary(self):
11570  r"""_get_as_binary(AllSamePairPredicate self) -> PyObject *"""
11571  return _IMP_core.AllSamePairPredicate__get_as_binary(self)
11572 
11573  def _set_from_binary(self, p):
11574  r"""_set_from_binary(AllSamePairPredicate self, PyObject * p)"""
11575  return _IMP_core.AllSamePairPredicate__set_from_binary(self, p)
11576 
11577  def __getstate__(self):
11578  p = self._get_as_binary()
11579  if len(self.__dict__) > 1:
11580  d = self.__dict__.copy()
11581  del d['this']
11582  p = (d, p)
11583  return p
11584 
11585  def __setstate__(self, p):
11586  if not hasattr(self, 'this'):
11587  self.__init__()
11588  if isinstance(p, tuple):
11589  d, p = p
11590  self.__dict__.update(d)
11591  return self._set_from_binary(p)
11592 
11593 
11594 # Register AllSamePairPredicate in _IMP_core:
11595 _IMP_core.AllSamePairPredicate_swigregister(AllSamePairPredicate)
11596 class CoinFlipPairPredicate(IMP.PairPredicate):
11597  r"""Proxy of C++ IMP::core::CoinFlipPairPredicate class."""
11598 
11599  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11600 
11601  def __init__(self, *args):
11602  r"""__init__(CoinFlipPairPredicate self, double p, std::string name="CoinFlipPairPredicate%1%") -> CoinFlipPairPredicate"""
11603  _IMP_core.CoinFlipPairPredicate_swiginit(self, _IMP_core.new_CoinFlipPairPredicate(*args))
11604 
11605  def do_get_inputs(self, arg2, arg3):
11606  r"""do_get_inputs(CoinFlipPairPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11607  return _IMP_core.CoinFlipPairPredicate_do_get_inputs(self, arg2, arg3)
11608 
11609  def get_value(self, *args):
11610  r"""
11611  get_value(CoinFlipPairPredicate self, IMP::ParticlePair const & a) -> int
11612  get_value(CoinFlipPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
11613  """
11614  return _IMP_core.CoinFlipPairPredicate_get_value(self, *args)
11615 
11616  def get_value_index(self, *args):
11617  r"""
11618  get_value_index(CoinFlipPairPredicate self, Model arg2, IMP::ParticleIndexPair const & arg3) -> int
11619  get_value_index(CoinFlipPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
11620  """
11621  return _IMP_core.CoinFlipPairPredicate_get_value_index(self, *args)
11622 
11623  def get_version_info(self):
11624  r"""get_version_info(CoinFlipPairPredicate self) -> VersionInfo"""
11625  return _IMP_core.CoinFlipPairPredicate_get_version_info(self)
11626  __swig_destroy__ = _IMP_core.delete_CoinFlipPairPredicate
11627 
11628  def __str__(self):
11629  r"""__str__(CoinFlipPairPredicate self) -> std::string"""
11630  return _IMP_core.CoinFlipPairPredicate___str__(self)
11631 
11632  def __repr__(self):
11633  r"""__repr__(CoinFlipPairPredicate self) -> std::string"""
11634  return _IMP_core.CoinFlipPairPredicate___repr__(self)
11635 
11636  @staticmethod
11637  def get_from(o):
11638  return _object_cast_to_CoinFlipPairPredicate(o)
11639 
11640 
11641 # Register CoinFlipPairPredicate in _IMP_core:
11642 _IMP_core.CoinFlipPairPredicate_swigregister(CoinFlipPairPredicate)
11643 class ConstantTripletPredicate(IMP.TripletPredicate):
11644  r"""Proxy of C++ IMP::core::ConstantTripletPredicate class."""
11645 
11646  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11647 
11648  def __init__(self, *args):
11649  r"""
11650  __init__(ConstantTripletPredicate self, int v, std::string name="ConstTripletPredicate%1%") -> ConstantTripletPredicate
11651  __init__(ConstantTripletPredicate self) -> ConstantTripletPredicate
11652  """
11653  _IMP_core.ConstantTripletPredicate_swiginit(self, _IMP_core.new_ConstantTripletPredicate(*args))
11654 
11655  def do_get_inputs(self, arg2, arg3):
11656  r"""do_get_inputs(ConstantTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11657  return _IMP_core.ConstantTripletPredicate_do_get_inputs(self, arg2, arg3)
11658 
11659  def get_value(self, *args):
11660  r"""
11661  get_value(ConstantTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11662  get_value(ConstantTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11663  """
11664  return _IMP_core.ConstantTripletPredicate_get_value(self, *args)
11665 
11666  def get_value_index(self, *args):
11667  r"""
11668  get_value_index(ConstantTripletPredicate self, Model arg2, IMP::ParticleIndexTriplet const & arg3) -> int
11669  get_value_index(ConstantTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11670  """
11671  return _IMP_core.ConstantTripletPredicate_get_value_index(self, *args)
11672 
11673  def get_version_info(self):
11674  r"""get_version_info(ConstantTripletPredicate self) -> VersionInfo"""
11675  return _IMP_core.ConstantTripletPredicate_get_version_info(self)
11676  __swig_destroy__ = _IMP_core.delete_ConstantTripletPredicate
11677 
11678  def __str__(self):
11679  r"""__str__(ConstantTripletPredicate self) -> std::string"""
11680  return _IMP_core.ConstantTripletPredicate___str__(self)
11681 
11682  def __repr__(self):
11683  r"""__repr__(ConstantTripletPredicate self) -> std::string"""
11684  return _IMP_core.ConstantTripletPredicate___repr__(self)
11685 
11686  @staticmethod
11687  def get_from(o):
11688  return _object_cast_to_ConstantTripletPredicate(o)
11689 
11690 
11691  def _get_as_binary(self):
11692  r"""_get_as_binary(ConstantTripletPredicate self) -> PyObject *"""
11693  return _IMP_core.ConstantTripletPredicate__get_as_binary(self)
11694 
11695  def _set_from_binary(self, p):
11696  r"""_set_from_binary(ConstantTripletPredicate self, PyObject * p)"""
11697  return _IMP_core.ConstantTripletPredicate__set_from_binary(self, p)
11698 
11699  def __getstate__(self):
11700  p = self._get_as_binary()
11701  if len(self.__dict__) > 1:
11702  d = self.__dict__.copy()
11703  del d['this']
11704  p = (d, p)
11705  return p
11706 
11707  def __setstate__(self, p):
11708  if not hasattr(self, 'this'):
11709  self.__init__()
11710  if isinstance(p, tuple):
11711  d, p = p
11712  self.__dict__.update(d)
11713  return self._set_from_binary(p)
11714 
11715 
11716 # Register ConstantTripletPredicate in _IMP_core:
11717 _IMP_core.ConstantTripletPredicate_swigregister(ConstantTripletPredicate)
11718 class UnorderedTypeTripletPredicate(IMP.TripletPredicate):
11719  r"""Proxy of C++ IMP::core::UnorderedTypeTripletPredicate class."""
11720 
11721  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11722 
11723  def __init__(self, *args):
11724  r"""__init__(UnorderedTypeTripletPredicate self, std::string name="UnorderedTypeTripletPredicate%1%") -> UnorderedTypeTripletPredicate"""
11725  _IMP_core.UnorderedTypeTripletPredicate_swiginit(self, _IMP_core.new_UnorderedTypeTripletPredicate(*args))
11726 
11727  def do_get_inputs(self, m, pis):
11728  r"""do_get_inputs(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11729  return _IMP_core.UnorderedTypeTripletPredicate_do_get_inputs(self, m, pis)
11730 
11731  def get_value(self, *args):
11732  r"""
11733  get_value(UnorderedTypeTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11734  get_value(UnorderedTypeTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11735  """
11736  return _IMP_core.UnorderedTypeTripletPredicate_get_value(self, *args)
11737 
11738  def get_value_index(self, *args):
11739  r"""
11740  get_value_index(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
11741  get_value_index(UnorderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11742  """
11743  return _IMP_core.UnorderedTypeTripletPredicate_get_value_index(self, *args)
11744 
11745  def get_version_info(self):
11746  r"""get_version_info(UnorderedTypeTripletPredicate self) -> VersionInfo"""
11747  return _IMP_core.UnorderedTypeTripletPredicate_get_version_info(self)
11748  __swig_destroy__ = _IMP_core.delete_UnorderedTypeTripletPredicate
11749 
11750  def __str__(self):
11751  r"""__str__(UnorderedTypeTripletPredicate self) -> std::string"""
11752  return _IMP_core.UnorderedTypeTripletPredicate___str__(self)
11753 
11754  def __repr__(self):
11755  r"""__repr__(UnorderedTypeTripletPredicate self) -> std::string"""
11756  return _IMP_core.UnorderedTypeTripletPredicate___repr__(self)
11757 
11758  @staticmethod
11759  def get_from(o):
11760  return _object_cast_to_UnorderedTypeTripletPredicate(o)
11761 
11762 
11763  def _get_as_binary(self):
11764  r"""_get_as_binary(UnorderedTypeTripletPredicate self) -> PyObject *"""
11765  return _IMP_core.UnorderedTypeTripletPredicate__get_as_binary(self)
11766 
11767  def _set_from_binary(self, p):
11768  r"""_set_from_binary(UnorderedTypeTripletPredicate self, PyObject * p)"""
11769  return _IMP_core.UnorderedTypeTripletPredicate__set_from_binary(self, p)
11770 
11771  def __getstate__(self):
11772  p = self._get_as_binary()
11773  if len(self.__dict__) > 1:
11774  d = self.__dict__.copy()
11775  del d['this']
11776  p = (d, p)
11777  return p
11778 
11779  def __setstate__(self, p):
11780  if not hasattr(self, 'this'):
11781  self.__init__()
11782  if isinstance(p, tuple):
11783  d, p = p
11784  self.__dict__.update(d)
11785  return self._set_from_binary(p)
11786 
11787 
11788 # Register UnorderedTypeTripletPredicate in _IMP_core:
11789 _IMP_core.UnorderedTypeTripletPredicate_swigregister(UnorderedTypeTripletPredicate)
11790 class OrderedTypeTripletPredicate(IMP.TripletPredicate):
11791  r"""Proxy of C++ IMP::core::OrderedTypeTripletPredicate class."""
11792 
11793  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11794 
11795  def __init__(self, *args):
11796  r"""__init__(OrderedTypeTripletPredicate self, std::string name="OrderedTypeTripletPredicate%1%") -> OrderedTypeTripletPredicate"""
11797  _IMP_core.OrderedTypeTripletPredicate_swiginit(self, _IMP_core.new_OrderedTypeTripletPredicate(*args))
11798 
11799  def do_get_inputs(self, m, pis):
11800  r"""do_get_inputs(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
11801  return _IMP_core.OrderedTypeTripletPredicate_do_get_inputs(self, m, pis)
11802 
11803  def get_value(self, *args):
11804  r"""
11805  get_value(OrderedTypeTripletPredicate self, IMP::core::ParticleTypes const & types) -> int
11806  get_value(OrderedTypeTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11807  get_value(OrderedTypeTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11808  """
11809  return _IMP_core.OrderedTypeTripletPredicate_get_value(self, *args)
11810 
11811  def get_value_index(self, *args):
11812  r"""
11813  get_value_index(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
11814  get_value_index(OrderedTypeTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11815  """
11816  return _IMP_core.OrderedTypeTripletPredicate_get_value_index(self, *args)
11817 
11818  def get_version_info(self):
11819  r"""get_version_info(OrderedTypeTripletPredicate self) -> VersionInfo"""
11820  return _IMP_core.OrderedTypeTripletPredicate_get_version_info(self)
11821  __swig_destroy__ = _IMP_core.delete_OrderedTypeTripletPredicate
11822 
11823  def __str__(self):
11824  r"""__str__(OrderedTypeTripletPredicate self) -> std::string"""
11825  return _IMP_core.OrderedTypeTripletPredicate___str__(self)
11826 
11827  def __repr__(self):
11828  r"""__repr__(OrderedTypeTripletPredicate self) -> std::string"""
11829  return _IMP_core.OrderedTypeTripletPredicate___repr__(self)
11830 
11831  @staticmethod
11832  def get_from(o):
11833  return _object_cast_to_OrderedTypeTripletPredicate(o)
11834 
11835 
11836 # Register OrderedTypeTripletPredicate in _IMP_core:
11837 _IMP_core.OrderedTypeTripletPredicate_swigregister(OrderedTypeTripletPredicate)
11838 class AllSameTripletPredicate(IMP.TripletPredicate):
11839  r"""Proxy of C++ IMP::core::AllSameTripletPredicate class."""
11840 
11841  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11842 
11843  def __init__(self, *args):
11844  r"""__init__(AllSameTripletPredicate self, std::string name="AllSameTripletPredicate%1%") -> AllSameTripletPredicate"""
11845  _IMP_core.AllSameTripletPredicate_swiginit(self, _IMP_core.new_AllSameTripletPredicate(*args))
11846 
11847  def do_get_inputs(self, arg2, arg3):
11848  r"""do_get_inputs(AllSameTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11849  return _IMP_core.AllSameTripletPredicate_do_get_inputs(self, arg2, arg3)
11850 
11851  def get_value(self, *args):
11852  r"""
11853  get_value(AllSameTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11854  get_value(AllSameTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11855  """
11856  return _IMP_core.AllSameTripletPredicate_get_value(self, *args)
11857 
11858  def get_value_index(self, *args):
11859  r"""
11860  get_value_index(AllSameTripletPredicate self, Model m, IMP::ParticleIndexTriplet const & pi) -> int
11861  get_value_index(AllSameTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11862  """
11863  return _IMP_core.AllSameTripletPredicate_get_value_index(self, *args)
11864 
11865  def get_version_info(self):
11866  r"""get_version_info(AllSameTripletPredicate self) -> VersionInfo"""
11867  return _IMP_core.AllSameTripletPredicate_get_version_info(self)
11868  __swig_destroy__ = _IMP_core.delete_AllSameTripletPredicate
11869 
11870  def __str__(self):
11871  r"""__str__(AllSameTripletPredicate self) -> std::string"""
11872  return _IMP_core.AllSameTripletPredicate___str__(self)
11873 
11874  def __repr__(self):
11875  r"""__repr__(AllSameTripletPredicate self) -> std::string"""
11876  return _IMP_core.AllSameTripletPredicate___repr__(self)
11877 
11878  @staticmethod
11879  def get_from(o):
11880  return _object_cast_to_AllSameTripletPredicate(o)
11881 
11882 
11883  def _get_as_binary(self):
11884  r"""_get_as_binary(AllSameTripletPredicate self) -> PyObject *"""
11885  return _IMP_core.AllSameTripletPredicate__get_as_binary(self)
11886 
11887  def _set_from_binary(self, p):
11888  r"""_set_from_binary(AllSameTripletPredicate self, PyObject * p)"""
11889  return _IMP_core.AllSameTripletPredicate__set_from_binary(self, p)
11890 
11891  def __getstate__(self):
11892  p = self._get_as_binary()
11893  if len(self.__dict__) > 1:
11894  d = self.__dict__.copy()
11895  del d['this']
11896  p = (d, p)
11897  return p
11898 
11899  def __setstate__(self, p):
11900  if not hasattr(self, 'this'):
11901  self.__init__()
11902  if isinstance(p, tuple):
11903  d, p = p
11904  self.__dict__.update(d)
11905  return self._set_from_binary(p)
11906 
11907 
11908 # Register AllSameTripletPredicate in _IMP_core:
11909 _IMP_core.AllSameTripletPredicate_swigregister(AllSameTripletPredicate)
11910 class CoinFlipTripletPredicate(IMP.TripletPredicate):
11911  r"""Proxy of C++ IMP::core::CoinFlipTripletPredicate class."""
11912 
11913  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11914 
11915  def __init__(self, *args):
11916  r"""__init__(CoinFlipTripletPredicate self, double p, std::string name="CoinFlipTripletPredicate%1%") -> CoinFlipTripletPredicate"""
11917  _IMP_core.CoinFlipTripletPredicate_swiginit(self, _IMP_core.new_CoinFlipTripletPredicate(*args))
11918 
11919  def do_get_inputs(self, arg2, arg3):
11920  r"""do_get_inputs(CoinFlipTripletPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11921  return _IMP_core.CoinFlipTripletPredicate_do_get_inputs(self, arg2, arg3)
11922 
11923  def get_value(self, *args):
11924  r"""
11925  get_value(CoinFlipTripletPredicate self, IMP::ParticleTriplet const & a) -> int
11926  get_value(CoinFlipTripletPredicate self, IMP::ParticleTripletsTemp const & o) -> IMP::Ints
11927  """
11928  return _IMP_core.CoinFlipTripletPredicate_get_value(self, *args)
11929 
11930  def get_value_index(self, *args):
11931  r"""
11932  get_value_index(CoinFlipTripletPredicate self, Model arg2, IMP::ParticleIndexTriplet const & arg3) -> int
11933  get_value_index(CoinFlipTripletPredicate self, Model m, IMP::ParticleIndexTriplets const & o) -> IMP::Ints
11934  """
11935  return _IMP_core.CoinFlipTripletPredicate_get_value_index(self, *args)
11936 
11937  def get_version_info(self):
11938  r"""get_version_info(CoinFlipTripletPredicate self) -> VersionInfo"""
11939  return _IMP_core.CoinFlipTripletPredicate_get_version_info(self)
11940  __swig_destroy__ = _IMP_core.delete_CoinFlipTripletPredicate
11941 
11942  def __str__(self):
11943  r"""__str__(CoinFlipTripletPredicate self) -> std::string"""
11944  return _IMP_core.CoinFlipTripletPredicate___str__(self)
11945 
11946  def __repr__(self):
11947  r"""__repr__(CoinFlipTripletPredicate self) -> std::string"""
11948  return _IMP_core.CoinFlipTripletPredicate___repr__(self)
11949 
11950  @staticmethod
11951  def get_from(o):
11952  return _object_cast_to_CoinFlipTripletPredicate(o)
11953 
11954 
11955 # Register CoinFlipTripletPredicate in _IMP_core:
11956 _IMP_core.CoinFlipTripletPredicate_swigregister(CoinFlipTripletPredicate)
11957 class ConstantQuadPredicate(IMP.QuadPredicate):
11958  r"""Proxy of C++ IMP::core::ConstantQuadPredicate class."""
11959 
11960  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
11961 
11962  def __init__(self, *args):
11963  r"""
11964  __init__(ConstantQuadPredicate self, int v, std::string name="ConstQuadPredicate%1%") -> ConstantQuadPredicate
11965  __init__(ConstantQuadPredicate self) -> ConstantQuadPredicate
11966  """
11967  _IMP_core.ConstantQuadPredicate_swiginit(self, _IMP_core.new_ConstantQuadPredicate(*args))
11968 
11969  def do_get_inputs(self, arg2, arg3):
11970  r"""do_get_inputs(ConstantQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
11971  return _IMP_core.ConstantQuadPredicate_do_get_inputs(self, arg2, arg3)
11972 
11973  def get_value(self, *args):
11974  r"""
11975  get_value(ConstantQuadPredicate self, IMP::ParticleQuad const & a) -> int
11976  get_value(ConstantQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
11977  """
11978  return _IMP_core.ConstantQuadPredicate_get_value(self, *args)
11979 
11980  def get_value_index(self, *args):
11981  r"""
11982  get_value_index(ConstantQuadPredicate self, Model arg2, IMP::ParticleIndexQuad const & arg3) -> int
11983  get_value_index(ConstantQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
11984  """
11985  return _IMP_core.ConstantQuadPredicate_get_value_index(self, *args)
11986 
11987  def get_version_info(self):
11988  r"""get_version_info(ConstantQuadPredicate self) -> VersionInfo"""
11989  return _IMP_core.ConstantQuadPredicate_get_version_info(self)
11990  __swig_destroy__ = _IMP_core.delete_ConstantQuadPredicate
11991 
11992  def __str__(self):
11993  r"""__str__(ConstantQuadPredicate self) -> std::string"""
11994  return _IMP_core.ConstantQuadPredicate___str__(self)
11995 
11996  def __repr__(self):
11997  r"""__repr__(ConstantQuadPredicate self) -> std::string"""
11998  return _IMP_core.ConstantQuadPredicate___repr__(self)
11999 
12000  @staticmethod
12001  def get_from(o):
12002  return _object_cast_to_ConstantQuadPredicate(o)
12003 
12004 
12005  def _get_as_binary(self):
12006  r"""_get_as_binary(ConstantQuadPredicate self) -> PyObject *"""
12007  return _IMP_core.ConstantQuadPredicate__get_as_binary(self)
12008 
12009  def _set_from_binary(self, p):
12010  r"""_set_from_binary(ConstantQuadPredicate self, PyObject * p)"""
12011  return _IMP_core.ConstantQuadPredicate__set_from_binary(self, p)
12012 
12013  def __getstate__(self):
12014  p = self._get_as_binary()
12015  if len(self.__dict__) > 1:
12016  d = self.__dict__.copy()
12017  del d['this']
12018  p = (d, p)
12019  return p
12020 
12021  def __setstate__(self, p):
12022  if not hasattr(self, 'this'):
12023  self.__init__()
12024  if isinstance(p, tuple):
12025  d, p = p
12026  self.__dict__.update(d)
12027  return self._set_from_binary(p)
12028 
12029 
12030 # Register ConstantQuadPredicate in _IMP_core:
12031 _IMP_core.ConstantQuadPredicate_swigregister(ConstantQuadPredicate)
12032 class UnorderedTypeQuadPredicate(IMP.QuadPredicate):
12033  r"""Proxy of C++ IMP::core::UnorderedTypeQuadPredicate class."""
12034 
12035  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12036 
12037  def __init__(self, *args):
12038  r"""__init__(UnorderedTypeQuadPredicate self, std::string name="UnorderedTypeQuadPredicate%1%") -> UnorderedTypeQuadPredicate"""
12039  _IMP_core.UnorderedTypeQuadPredicate_swiginit(self, _IMP_core.new_UnorderedTypeQuadPredicate(*args))
12040 
12041  def do_get_inputs(self, m, pis):
12042  r"""do_get_inputs(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12043  return _IMP_core.UnorderedTypeQuadPredicate_do_get_inputs(self, m, pis)
12044 
12045  def get_value(self, *args):
12046  r"""
12047  get_value(UnorderedTypeQuadPredicate self, IMP::ParticleQuad const & a) -> int
12048  get_value(UnorderedTypeQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12049  """
12050  return _IMP_core.UnorderedTypeQuadPredicate_get_value(self, *args)
12051 
12052  def get_value_index(self, *args):
12053  r"""
12054  get_value_index(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12055  get_value_index(UnorderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12056  """
12057  return _IMP_core.UnorderedTypeQuadPredicate_get_value_index(self, *args)
12058 
12059  def get_version_info(self):
12060  r"""get_version_info(UnorderedTypeQuadPredicate self) -> VersionInfo"""
12061  return _IMP_core.UnorderedTypeQuadPredicate_get_version_info(self)
12062  __swig_destroy__ = _IMP_core.delete_UnorderedTypeQuadPredicate
12063 
12064  def __str__(self):
12065  r"""__str__(UnorderedTypeQuadPredicate self) -> std::string"""
12066  return _IMP_core.UnorderedTypeQuadPredicate___str__(self)
12067 
12068  def __repr__(self):
12069  r"""__repr__(UnorderedTypeQuadPredicate self) -> std::string"""
12070  return _IMP_core.UnorderedTypeQuadPredicate___repr__(self)
12071 
12072  @staticmethod
12073  def get_from(o):
12074  return _object_cast_to_UnorderedTypeQuadPredicate(o)
12075 
12076 
12077  def _get_as_binary(self):
12078  r"""_get_as_binary(UnorderedTypeQuadPredicate self) -> PyObject *"""
12079  return _IMP_core.UnorderedTypeQuadPredicate__get_as_binary(self)
12080 
12081  def _set_from_binary(self, p):
12082  r"""_set_from_binary(UnorderedTypeQuadPredicate self, PyObject * p)"""
12083  return _IMP_core.UnorderedTypeQuadPredicate__set_from_binary(self, p)
12084 
12085  def __getstate__(self):
12086  p = self._get_as_binary()
12087  if len(self.__dict__) > 1:
12088  d = self.__dict__.copy()
12089  del d['this']
12090  p = (d, p)
12091  return p
12092 
12093  def __setstate__(self, p):
12094  if not hasattr(self, 'this'):
12095  self.__init__()
12096  if isinstance(p, tuple):
12097  d, p = p
12098  self.__dict__.update(d)
12099  return self._set_from_binary(p)
12100 
12101 
12102 # Register UnorderedTypeQuadPredicate in _IMP_core:
12103 _IMP_core.UnorderedTypeQuadPredicate_swigregister(UnorderedTypeQuadPredicate)
12104 class OrderedTypeQuadPredicate(IMP.QuadPredicate):
12105  r"""Proxy of C++ IMP::core::OrderedTypeQuadPredicate class."""
12106 
12107  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12108 
12109  def __init__(self, *args):
12110  r"""__init__(OrderedTypeQuadPredicate self, std::string name="OrderedTypeQuadPredicate%1%") -> OrderedTypeQuadPredicate"""
12111  _IMP_core.OrderedTypeQuadPredicate_swiginit(self, _IMP_core.new_OrderedTypeQuadPredicate(*args))
12112 
12113  def do_get_inputs(self, m, pis):
12114  r"""do_get_inputs(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
12115  return _IMP_core.OrderedTypeQuadPredicate_do_get_inputs(self, m, pis)
12116 
12117  def get_value(self, *args):
12118  r"""
12119  get_value(OrderedTypeQuadPredicate self, IMP::core::ParticleTypes const & types) -> int
12120  get_value(OrderedTypeQuadPredicate self, IMP::ParticleQuad const & a) -> int
12121  get_value(OrderedTypeQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12122  """
12123  return _IMP_core.OrderedTypeQuadPredicate_get_value(self, *args)
12124 
12125  def get_value_index(self, *args):
12126  r"""
12127  get_value_index(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12128  get_value_index(OrderedTypeQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12129  """
12130  return _IMP_core.OrderedTypeQuadPredicate_get_value_index(self, *args)
12131 
12132  def get_version_info(self):
12133  r"""get_version_info(OrderedTypeQuadPredicate self) -> VersionInfo"""
12134  return _IMP_core.OrderedTypeQuadPredicate_get_version_info(self)
12135  __swig_destroy__ = _IMP_core.delete_OrderedTypeQuadPredicate
12136 
12137  def __str__(self):
12138  r"""__str__(OrderedTypeQuadPredicate self) -> std::string"""
12139  return _IMP_core.OrderedTypeQuadPredicate___str__(self)
12140 
12141  def __repr__(self):
12142  r"""__repr__(OrderedTypeQuadPredicate self) -> std::string"""
12143  return _IMP_core.OrderedTypeQuadPredicate___repr__(self)
12144 
12145  @staticmethod
12146  def get_from(o):
12147  return _object_cast_to_OrderedTypeQuadPredicate(o)
12148 
12149 
12150 # Register OrderedTypeQuadPredicate in _IMP_core:
12151 _IMP_core.OrderedTypeQuadPredicate_swigregister(OrderedTypeQuadPredicate)
12152 class AllSameQuadPredicate(IMP.QuadPredicate):
12153  r"""Proxy of C++ IMP::core::AllSameQuadPredicate class."""
12154 
12155  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12156 
12157  def __init__(self, *args):
12158  r"""__init__(AllSameQuadPredicate self, std::string name="AllSameQuadPredicate%1%") -> AllSameQuadPredicate"""
12159  _IMP_core.AllSameQuadPredicate_swiginit(self, _IMP_core.new_AllSameQuadPredicate(*args))
12160 
12161  def do_get_inputs(self, arg2, arg3):
12162  r"""do_get_inputs(AllSameQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12163  return _IMP_core.AllSameQuadPredicate_do_get_inputs(self, arg2, arg3)
12164 
12165  def get_value(self, *args):
12166  r"""
12167  get_value(AllSameQuadPredicate self, IMP::ParticleQuad const & a) -> int
12168  get_value(AllSameQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12169  """
12170  return _IMP_core.AllSameQuadPredicate_get_value(self, *args)
12171 
12172  def get_value_index(self, *args):
12173  r"""
12174  get_value_index(AllSameQuadPredicate self, Model m, IMP::ParticleIndexQuad const & pi) -> int
12175  get_value_index(AllSameQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12176  """
12177  return _IMP_core.AllSameQuadPredicate_get_value_index(self, *args)
12178 
12179  def get_version_info(self):
12180  r"""get_version_info(AllSameQuadPredicate self) -> VersionInfo"""
12181  return _IMP_core.AllSameQuadPredicate_get_version_info(self)
12182  __swig_destroy__ = _IMP_core.delete_AllSameQuadPredicate
12183 
12184  def __str__(self):
12185  r"""__str__(AllSameQuadPredicate self) -> std::string"""
12186  return _IMP_core.AllSameQuadPredicate___str__(self)
12187 
12188  def __repr__(self):
12189  r"""__repr__(AllSameQuadPredicate self) -> std::string"""
12190  return _IMP_core.AllSameQuadPredicate___repr__(self)
12191 
12192  @staticmethod
12193  def get_from(o):
12194  return _object_cast_to_AllSameQuadPredicate(o)
12195 
12196 
12197  def _get_as_binary(self):
12198  r"""_get_as_binary(AllSameQuadPredicate self) -> PyObject *"""
12199  return _IMP_core.AllSameQuadPredicate__get_as_binary(self)
12200 
12201  def _set_from_binary(self, p):
12202  r"""_set_from_binary(AllSameQuadPredicate self, PyObject * p)"""
12203  return _IMP_core.AllSameQuadPredicate__set_from_binary(self, p)
12204 
12205  def __getstate__(self):
12206  p = self._get_as_binary()
12207  if len(self.__dict__) > 1:
12208  d = self.__dict__.copy()
12209  del d['this']
12210  p = (d, p)
12211  return p
12212 
12213  def __setstate__(self, p):
12214  if not hasattr(self, 'this'):
12215  self.__init__()
12216  if isinstance(p, tuple):
12217  d, p = p
12218  self.__dict__.update(d)
12219  return self._set_from_binary(p)
12220 
12221 
12222 # Register AllSameQuadPredicate in _IMP_core:
12223 _IMP_core.AllSameQuadPredicate_swigregister(AllSameQuadPredicate)
12224 class CoinFlipQuadPredicate(IMP.QuadPredicate):
12225  r"""Proxy of C++ IMP::core::CoinFlipQuadPredicate class."""
12226 
12227  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12228 
12229  def __init__(self, *args):
12230  r"""__init__(CoinFlipQuadPredicate self, double p, std::string name="CoinFlipQuadPredicate%1%") -> CoinFlipQuadPredicate"""
12231  _IMP_core.CoinFlipQuadPredicate_swiginit(self, _IMP_core.new_CoinFlipQuadPredicate(*args))
12232 
12233  def do_get_inputs(self, arg2, arg3):
12234  r"""do_get_inputs(CoinFlipQuadPredicate self, Model arg2, IMP::ParticleIndexes const & arg3) -> IMP::ModelObjectsTemp"""
12235  return _IMP_core.CoinFlipQuadPredicate_do_get_inputs(self, arg2, arg3)
12236 
12237  def get_value(self, *args):
12238  r"""
12239  get_value(CoinFlipQuadPredicate self, IMP::ParticleQuad const & a) -> int
12240  get_value(CoinFlipQuadPredicate self, IMP::ParticleQuadsTemp const & o) -> IMP::Ints
12241  """
12242  return _IMP_core.CoinFlipQuadPredicate_get_value(self, *args)
12243 
12244  def get_value_index(self, *args):
12245  r"""
12246  get_value_index(CoinFlipQuadPredicate self, Model arg2, IMP::ParticleIndexQuad const & arg3) -> int
12247  get_value_index(CoinFlipQuadPredicate self, Model m, IMP::ParticleIndexQuads const & o) -> IMP::Ints
12248  """
12249  return _IMP_core.CoinFlipQuadPredicate_get_value_index(self, *args)
12250 
12251  def get_version_info(self):
12252  r"""get_version_info(CoinFlipQuadPredicate self) -> VersionInfo"""
12253  return _IMP_core.CoinFlipQuadPredicate_get_version_info(self)
12254  __swig_destroy__ = _IMP_core.delete_CoinFlipQuadPredicate
12255 
12256  def __str__(self):
12257  r"""__str__(CoinFlipQuadPredicate self) -> std::string"""
12258  return _IMP_core.CoinFlipQuadPredicate___str__(self)
12259 
12260  def __repr__(self):
12261  r"""__repr__(CoinFlipQuadPredicate self) -> std::string"""
12262  return _IMP_core.CoinFlipQuadPredicate___repr__(self)
12263 
12264  @staticmethod
12265  def get_from(o):
12266  return _object_cast_to_CoinFlipQuadPredicate(o)
12267 
12268 
12269 # Register CoinFlipQuadPredicate in _IMP_core:
12270 _IMP_core.CoinFlipQuadPredicate_swigregister(CoinFlipQuadPredicate)
12271 class InBoundingBox3DSingletonPredicate(IMP.SingletonPredicate):
12272  r"""Proxy of C++ IMP::core::InBoundingBox3DSingletonPredicate class."""
12273 
12274  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12275 
12276  def __init__(self, *args):
12277  r"""__init__(InBoundingBox3DSingletonPredicate self, BoundingBox3D bb, std::string name="InBoundingBox3DSingletonPredicate%1%") -> InBoundingBox3DSingletonPredicate"""
12278  _IMP_core.InBoundingBox3DSingletonPredicate_swiginit(self, _IMP_core.new_InBoundingBox3DSingletonPredicate(*args))
12279 
12280  def do_get_inputs(self, m, pi):
12281  r"""do_get_inputs(InBoundingBox3DSingletonPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12282  return _IMP_core.InBoundingBox3DSingletonPredicate_do_get_inputs(self, m, pi)
12283 
12284  def get_value(self, *args):
12285  r"""
12286  get_value(InBoundingBox3DSingletonPredicate self, Particle a) -> int
12287  get_value(InBoundingBox3DSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
12288  """
12289  return _IMP_core.InBoundingBox3DSingletonPredicate_get_value(self, *args)
12290 
12291  def get_value_index(self, *args):
12292  r"""
12293  get_value_index(InBoundingBox3DSingletonPredicate self, Model m, ParticleIndex pi) -> int
12294  get_value_index(InBoundingBox3DSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
12295  """
12296  return _IMP_core.InBoundingBox3DSingletonPredicate_get_value_index(self, *args)
12297 
12298  def get_version_info(self):
12299  r"""get_version_info(InBoundingBox3DSingletonPredicate self) -> VersionInfo"""
12300  return _IMP_core.InBoundingBox3DSingletonPredicate_get_version_info(self)
12301  __swig_destroy__ = _IMP_core.delete_InBoundingBox3DSingletonPredicate
12302 
12303  def __str__(self):
12304  r"""__str__(InBoundingBox3DSingletonPredicate self) -> std::string"""
12305  return _IMP_core.InBoundingBox3DSingletonPredicate___str__(self)
12306 
12307  def __repr__(self):
12308  r"""__repr__(InBoundingBox3DSingletonPredicate self) -> std::string"""
12309  return _IMP_core.InBoundingBox3DSingletonPredicate___repr__(self)
12310 
12311  @staticmethod
12312  def get_from(o):
12313  return _object_cast_to_InBoundingBox3DSingletonPredicate(o)
12314 
12315 
12316 # Register InBoundingBox3DSingletonPredicate in _IMP_core:
12317 _IMP_core.InBoundingBox3DSingletonPredicate_swigregister(InBoundingBox3DSingletonPredicate)
12318 class AttributeSingletonPredicate(IMP.SingletonPredicate):
12319  r"""Proxy of C++ IMP::core::AttributeSingletonPredicate class."""
12320 
12321  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12322 
12323  def __init__(self, *args):
12324  r"""__init__(AttributeSingletonPredicate self, IntKey bb, std::string name="AttributeSingletonPredicate%1%") -> AttributeSingletonPredicate"""
12325  _IMP_core.AttributeSingletonPredicate_swiginit(self, _IMP_core.new_AttributeSingletonPredicate(*args))
12326 
12327  def do_get_inputs(self, m, pi):
12328  r"""do_get_inputs(AttributeSingletonPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12329  return _IMP_core.AttributeSingletonPredicate_do_get_inputs(self, m, pi)
12330 
12331  def get_value(self, *args):
12332  r"""
12333  get_value(AttributeSingletonPredicate self, Particle a) -> int
12334  get_value(AttributeSingletonPredicate self, IMP::ParticlesTemp const & o) -> IMP::Ints
12335  """
12336  return _IMP_core.AttributeSingletonPredicate_get_value(self, *args)
12337 
12338  def get_value_index(self, *args):
12339  r"""
12340  get_value_index(AttributeSingletonPredicate self, Model m, ParticleIndex pi) -> int
12341  get_value_index(AttributeSingletonPredicate self, Model m, IMP::ParticleIndexes const & o) -> IMP::Ints
12342  """
12343  return _IMP_core.AttributeSingletonPredicate_get_value_index(self, *args)
12344 
12345  def get_version_info(self):
12346  r"""get_version_info(AttributeSingletonPredicate self) -> VersionInfo"""
12347  return _IMP_core.AttributeSingletonPredicate_get_version_info(self)
12348  __swig_destroy__ = _IMP_core.delete_AttributeSingletonPredicate
12349 
12350  def __str__(self):
12351  r"""__str__(AttributeSingletonPredicate self) -> std::string"""
12352  return _IMP_core.AttributeSingletonPredicate___str__(self)
12353 
12354  def __repr__(self):
12355  r"""__repr__(AttributeSingletonPredicate self) -> std::string"""
12356  return _IMP_core.AttributeSingletonPredicate___repr__(self)
12357 
12358  @staticmethod
12359  def get_from(o):
12360  return _object_cast_to_AttributeSingletonPredicate(o)
12361 
12362 
12363 # Register AttributeSingletonPredicate in _IMP_core:
12364 _IMP_core.AttributeSingletonPredicate_swigregister(AttributeSingletonPredicate)
12365 class IsCollisionPairPredicate(IMP.PairPredicate):
12366  r"""Proxy of C++ IMP::core::IsCollisionPairPredicate class."""
12367 
12368  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12369 
12370  def __init__(self, *args):
12371  r"""__init__(IsCollisionPairPredicate self, std::string name="CollisionPairPredicate%1%") -> IsCollisionPairPredicate"""
12372  _IMP_core.IsCollisionPairPredicate_swiginit(self, _IMP_core.new_IsCollisionPairPredicate(*args))
12373 
12374  def do_get_inputs(self, m, pi):
12375  r"""do_get_inputs(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexes const & pi) -> IMP::ModelObjectsTemp"""
12376  return _IMP_core.IsCollisionPairPredicate_do_get_inputs(self, m, pi)
12377 
12378  def get_value(self, *args):
12379  r"""
12380  get_value(IsCollisionPairPredicate self, IMP::ParticlePair const & a) -> int
12381  get_value(IsCollisionPairPredicate self, IMP::ParticlePairsTemp const & o) -> IMP::Ints
12382  """
12383  return _IMP_core.IsCollisionPairPredicate_get_value(self, *args)
12384 
12385  def get_value_index(self, *args):
12386  r"""
12387  get_value_index(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexPair const & pi) -> int
12388  get_value_index(IsCollisionPairPredicate self, Model m, IMP::ParticleIndexPairs const & o) -> IMP::Ints
12389  """
12390  return _IMP_core.IsCollisionPairPredicate_get_value_index(self, *args)
12391 
12392  def get_version_info(self):
12393  r"""get_version_info(IsCollisionPairPredicate self) -> VersionInfo"""
12394  return _IMP_core.IsCollisionPairPredicate_get_version_info(self)
12395  __swig_destroy__ = _IMP_core.delete_IsCollisionPairPredicate
12396 
12397  def __str__(self):
12398  r"""__str__(IsCollisionPairPredicate self) -> std::string"""
12399  return _IMP_core.IsCollisionPairPredicate___str__(self)
12400 
12401  def __repr__(self):
12402  r"""__repr__(IsCollisionPairPredicate self) -> std::string"""
12403  return _IMP_core.IsCollisionPairPredicate___repr__(self)
12404 
12405  @staticmethod
12406  def get_from(o):
12407  return _object_cast_to_IsCollisionPairPredicate(o)
12408 
12409 
12410 # Register IsCollisionPairPredicate in _IMP_core:
12411 _IMP_core.IsCollisionPairPredicate_swigregister(IsCollisionPairPredicate)
12412 class AngleRestraint(TripletRestraint):
12413  r"""Proxy of C++ IMP::core::AngleRestraint class."""
12414 
12415  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12416 
12417  def __init__(self, *args):
12418  r"""
12419  __init__(AngleRestraint self, Model m, UnaryFunction score_func, _ParticleIndexAdaptor p1, _ParticleIndexAdaptor p2, _ParticleIndexAdaptor p3) -> AngleRestraint
12420  __init__(AngleRestraint self) -> AngleRestraint
12421  """
12422  _IMP_core.AngleRestraint_swiginit(self, _IMP_core.new_AngleRestraint(*args))
12423  __swig_destroy__ = _IMP_core.delete_AngleRestraint
12424 
12425  def __str__(self):
12426  r"""__str__(AngleRestraint self) -> std::string"""
12427  return _IMP_core.AngleRestraint___str__(self)
12428 
12429  def __repr__(self):
12430  r"""__repr__(AngleRestraint self) -> std::string"""
12431  return _IMP_core.AngleRestraint___repr__(self)
12432 
12433  @staticmethod
12434  def get_from(o):
12435  return _object_cast_to_AngleRestraint(o)
12436 
12437 
12438  def _get_as_binary(self):
12439  r"""_get_as_binary(AngleRestraint self) -> PyObject *"""
12440  return _IMP_core.AngleRestraint__get_as_binary(self)
12441 
12442  def _set_from_binary(self, p):
12443  r"""_set_from_binary(AngleRestraint self, PyObject * p)"""
12444  return _IMP_core.AngleRestraint__set_from_binary(self, p)
12445 
12446  def __getstate__(self):
12447  p = self._get_as_binary()
12448  if len(self.__dict__) > 1:
12449  d = self.__dict__.copy()
12450  del d['this']
12451  p = (d, p)
12452  return p
12453 
12454  def __setstate__(self, p):
12455  if not hasattr(self, 'this'):
12456  self.__init__()
12457  if isinstance(p, tuple):
12458  d, p = p
12459  self.__dict__.update(d)
12460  return self._set_from_binary(p)
12461 
12462 
12463 # Register AngleRestraint in _IMP_core:
12464 _IMP_core.AngleRestraint_swigregister(AngleRestraint)
12465 class RigidBodyMover(MonteCarloMover):
12466  r"""Proxy of C++ IMP::core::RigidBodyMover class."""
12467 
12468  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12469 
12470  def __init__(self, *args):
12471  r"""
12472  __init__(RigidBodyMover self, Model m, ParticleIndex pi, IMP::Float max_translation, IMP::Float max_rotation) -> RigidBodyMover
12473  __init__(RigidBodyMover self) -> RigidBodyMover
12474  """
12475  _IMP_core.RigidBodyMover_swiginit(self, _IMP_core.new_RigidBodyMover(*args))
12476 
12477  def set_maximum_translation(self, mt):
12478  r"""set_maximum_translation(RigidBodyMover self, IMP::Float mt)"""
12479  return _IMP_core.RigidBodyMover_set_maximum_translation(self, mt)
12480 
12481  def set_maximum_rotation(self, mr):
12482  r"""set_maximum_rotation(RigidBodyMover self, IMP::Float mr)"""
12483  return _IMP_core.RigidBodyMover_set_maximum_rotation(self, mr)
12484 
12485  def get_maximum_translation(self):
12486  r"""get_maximum_translation(RigidBodyMover self) -> IMP::Float"""
12487  return _IMP_core.RigidBodyMover_get_maximum_translation(self)
12488 
12489  def get_maximum_rotation(self):
12490  r"""get_maximum_rotation(RigidBodyMover self) -> IMP::Float"""
12491  return _IMP_core.RigidBodyMover_get_maximum_rotation(self)
12492 
12493  def get_version_info(self):
12494  r"""get_version_info(RigidBodyMover self) -> VersionInfo"""
12495  return _IMP_core.RigidBodyMover_get_version_info(self)
12496  __swig_destroy__ = _IMP_core.delete_RigidBodyMover
12497 
12498  def __str__(self):
12499  r"""__str__(RigidBodyMover self) -> std::string"""
12500  return _IMP_core.RigidBodyMover___str__(self)
12501 
12502  def __repr__(self):
12503  r"""__repr__(RigidBodyMover self) -> std::string"""
12504  return _IMP_core.RigidBodyMover___repr__(self)
12505 
12506  @staticmethod
12507  def get_from(o):
12508  return _object_cast_to_RigidBodyMover(o)
12509 
12510 
12511  def _get_as_binary(self):
12512  r"""_get_as_binary(RigidBodyMover self) -> PyObject *"""
12513  return _IMP_core.RigidBodyMover__get_as_binary(self)
12514 
12515  def _set_from_binary(self, p):
12516  r"""_set_from_binary(RigidBodyMover self, PyObject * p)"""
12517  return _IMP_core.RigidBodyMover__set_from_binary(self, p)
12518 
12519  def __getstate__(self):
12520  p = self._get_as_binary()
12521  if len(self.__dict__) > 1:
12522  d = self.__dict__.copy()
12523  del d['this']
12524  p = (d, p)
12525  return p
12526 
12527  def __setstate__(self, p):
12528  if not hasattr(self, 'this'):
12529  self.__init__()
12530  if isinstance(p, tuple):
12531  d, p = p
12532  self.__dict__.update(d)
12533  return self._set_from_binary(p)
12534 
12535 
12536 # Register RigidBodyMover in _IMP_core:
12537 _IMP_core.RigidBodyMover_swigregister(RigidBodyMover)
12538 class RigidBodyTunneler(MonteCarloMover):
12539  r"""Proxy of C++ IMP::core::RigidBodyTunneler class."""
12540 
12541  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12542 
12543  def __init__(self, m, pis, ref, k, move_probability=1.):
12544  r"""__init__(RigidBodyTunneler self, Model m, IMP::ParticleIndexes pis, ParticleIndex ref, double k, double move_probability=1.) -> RigidBodyTunneler"""
12545  _IMP_core.RigidBodyTunneler_swiginit(self, _IMP_core.new_RigidBodyTunneler(m, pis, ref, k, move_probability))
12546 
12547  def add_entry_point(self, fl):
12548  r"""add_entry_point(RigidBodyTunneler self, IMP::Floats fl)"""
12549  return _IMP_core.RigidBodyTunneler_add_entry_point(self, fl)
12550 
12551  def reset_stats(self):
12552  r"""reset_stats(RigidBodyTunneler self)"""
12553  return _IMP_core.RigidBodyTunneler_reset_stats(self)
12554 
12555  def get_number_of_rejected_moves(self):
12556  r"""get_number_of_rejected_moves(RigidBodyTunneler self) -> unsigned int"""
12557  return _IMP_core.RigidBodyTunneler_get_number_of_rejected_moves(self)
12558 
12559  def get_number_of_proposed_moves(self):
12560  r"""get_number_of_proposed_moves(RigidBodyTunneler self) -> unsigned int"""
12561  return _IMP_core.RigidBodyTunneler_get_number_of_proposed_moves(self)
12562 
12563  def get_number_of_impossible_moves(self):
12564  r"""get_number_of_impossible_moves(RigidBodyTunneler self) -> unsigned int"""
12565  return _IMP_core.RigidBodyTunneler_get_number_of_impossible_moves(self)
12566 
12567  def get_number_of_calls(self):
12568  r"""get_number_of_calls(RigidBodyTunneler self) -> unsigned int"""
12569  return _IMP_core.RigidBodyTunneler_get_number_of_calls(self)
12570 
12571  @staticmethod
12572  def get_reduced_coordinates(*args):
12573  r"""
12574  get_reduced_coordinates(Model m, ParticleIndex target, ParticleIndex ref) -> IMP::Floats
12575  get_reduced_coordinates(Model m, ParticleIndex pi) -> IMP::Floats
12576  """
12577  return _IMP_core.RigidBodyTunneler_get_reduced_coordinates(*args)
12578 
12579  @staticmethod
12580  def set_reduced_coordinates(m, target, ref, coords):
12581  r"""set_reduced_coordinates(Model m, ParticleIndex target, ParticleIndex ref, IMP::Floats coords)"""
12582  return _IMP_core.RigidBodyTunneler_set_reduced_coordinates(m, target, ref, coords)
12583 
12584  def get_version_info(self):
12585  r"""get_version_info(RigidBodyTunneler self) -> VersionInfo"""
12586  return _IMP_core.RigidBodyTunneler_get_version_info(self)
12587  __swig_destroy__ = _IMP_core.delete_RigidBodyTunneler
12588 
12589  def __str__(self):
12590  r"""__str__(RigidBodyTunneler self) -> std::string"""
12591  return _IMP_core.RigidBodyTunneler___str__(self)
12592 
12593  def __repr__(self):
12594  r"""__repr__(RigidBodyTunneler self) -> std::string"""
12595  return _IMP_core.RigidBodyTunneler___repr__(self)
12596 
12597  @staticmethod
12598  def get_from(o):
12599  return _object_cast_to_RigidBodyTunneler(o)
12600 
12601 
12602 # Register RigidBodyTunneler in _IMP_core:
12603 _IMP_core.RigidBodyTunneler_swigregister(RigidBodyTunneler)
12604 class RigidBodyUmbrella(IMP.Restraint):
12605  r"""Proxy of C++ IMP::core::RigidBodyUmbrella class."""
12606 
12607  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12608 
12609  def __init__(self, *args):
12610  r"""
12611  __init__(RigidBodyUmbrella self, Model m, ParticleIndex pi, ParticleIndex ref, IMP::Floats x0, double alpha, double k, std::string name="RigidBodyUmbrella %1%") -> RigidBodyUmbrella
12612  __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
12613  """
12614  _IMP_core.RigidBodyUmbrella_swiginit(self, _IMP_core.new_RigidBodyUmbrella(*args))
12615 
12616  def set_x0(self, *args):
12617  r"""
12618  set_x0(RigidBodyUmbrella self, IMP::Floats x0)
12619  set_x0(RigidBodyUmbrella self, double _lambda, IMP::Floats x1, IMP::Floats x2)
12620  """
12621  return _IMP_core.RigidBodyUmbrella_set_x0(self, *args)
12622 
12623  def get_x0(self):
12624  r"""get_x0(RigidBodyUmbrella self) -> IMP::Floats"""
12625  return _IMP_core.RigidBodyUmbrella_get_x0(self)
12626 
12627  def get_x(self):
12628  r"""get_x(RigidBodyUmbrella self) -> IMP::Floats"""
12629  return _IMP_core.RigidBodyUmbrella_get_x(self)
12630 
12631  def set_alpha(self, alpha):
12632  r"""set_alpha(RigidBodyUmbrella self, double alpha)"""
12633  return _IMP_core.RigidBodyUmbrella_set_alpha(self, alpha)
12634 
12635  def set_k(self, k):
12636  r"""set_k(RigidBodyUmbrella self, double k)"""
12637  return _IMP_core.RigidBodyUmbrella_set_k(self, k)
12638 
12639  def get_version_info(self):
12640  r"""get_version_info(RigidBodyUmbrella self) -> VersionInfo"""
12641  return _IMP_core.RigidBodyUmbrella_get_version_info(self)
12642  __swig_destroy__ = _IMP_core.delete_RigidBodyUmbrella
12643 
12644  def __str__(self):
12645  r"""__str__(RigidBodyUmbrella self) -> std::string"""
12646  return _IMP_core.RigidBodyUmbrella___str__(self)
12647 
12648  def __repr__(self):
12649  r"""__repr__(RigidBodyUmbrella self) -> std::string"""
12650  return _IMP_core.RigidBodyUmbrella___repr__(self)
12651 
12652  @staticmethod
12653  def get_from(o):
12654  return _object_cast_to_RigidBodyUmbrella(o)
12655 
12656 
12657 # Register RigidBodyUmbrella in _IMP_core:
12658 _IMP_core.RigidBodyUmbrella_swigregister(RigidBodyUmbrella)
12659 class VolumeRestraint(IMP.Restraint):
12660  r"""Proxy of C++ IMP::core::VolumeRestraint class."""
12661 
12662  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12663 
12664  def __init__(self, f, sc, volume):
12665  r"""__init__(VolumeRestraint self, UnaryFunction f, SingletonContainer sc, double volume) -> VolumeRestraint"""
12666  _IMP_core.VolumeRestraint_swiginit(self, _IMP_core.new_VolumeRestraint(f, sc, volume))
12667 
12668  def do_get_inputs(self):
12669  r"""do_get_inputs(VolumeRestraint self) -> IMP::ModelObjectsTemp"""
12670  return _IMP_core.VolumeRestraint_do_get_inputs(self)
12671 
12672  def get_version_info(self):
12673  r"""get_version_info(VolumeRestraint self) -> VersionInfo"""
12674  return _IMP_core.VolumeRestraint_get_version_info(self)
12675  __swig_destroy__ = _IMP_core.delete_VolumeRestraint
12676 
12677  def __str__(self):
12678  r"""__str__(VolumeRestraint self) -> std::string"""
12679  return _IMP_core.VolumeRestraint___str__(self)
12680 
12681  def __repr__(self):
12682  r"""__repr__(VolumeRestraint self) -> std::string"""
12683  return _IMP_core.VolumeRestraint___repr__(self)
12684 
12685  @staticmethod
12686  def get_from(o):
12687  return _object_cast_to_VolumeRestraint(o)
12688 
12689 
12690 # Register VolumeRestraint in _IMP_core:
12691 _IMP_core.VolumeRestraint_swigregister(VolumeRestraint)
12692 
12693 def get_centroid(ps):
12694  r"""get_centroid(IMP::core::XYZs const & ps) -> Vector3D"""
12695  return _IMP_core.get_centroid(ps)
12696 
12697 def get_bounding_box(ps):
12698  r"""get_bounding_box(IMP::core::XYZRs const & ps) -> BoundingBox3D"""
12699  return _IMP_core.get_bounding_box(ps)
12700 class MoveStatisticsScoreState(IMP.ScoreState):
12701  r"""Proxy of C++ IMP::core::MoveStatisticsScoreState class."""
12702 
12703  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12704 
12705  def __init__(self, ps):
12706  r"""__init__(MoveStatisticsScoreState self, IMP::ParticlesTemp const & ps) -> MoveStatisticsScoreState"""
12707  _IMP_core.MoveStatisticsScoreState_swiginit(self, _IMP_core.new_MoveStatisticsScoreState(ps))
12708 
12709  def show_statistics(self, *args):
12710  r"""show_statistics(MoveStatisticsScoreState self, _ostream out=std::cout)"""
12711  return _IMP_core.MoveStatisticsScoreState_show_statistics(self, *args)
12712 
12713  def reset(self):
12714  r"""reset(MoveStatisticsScoreState self)"""
12715  return _IMP_core.MoveStatisticsScoreState_reset(self)
12716 
12717  def do_before_evaluate(self):
12718  r"""do_before_evaluate(MoveStatisticsScoreState self)"""
12719  return _IMP_core.MoveStatisticsScoreState_do_before_evaluate(self)
12720 
12721  def do_after_evaluate(self, da):
12722  r"""do_after_evaluate(MoveStatisticsScoreState self, DerivativeAccumulator da)"""
12723  return _IMP_core.MoveStatisticsScoreState_do_after_evaluate(self, da)
12724 
12725  def do_get_inputs(self):
12726  r"""do_get_inputs(MoveStatisticsScoreState self) -> IMP::ModelObjectsTemp"""
12727  return _IMP_core.MoveStatisticsScoreState_do_get_inputs(self)
12728 
12729  def do_get_outputs(self):
12730  r"""do_get_outputs(MoveStatisticsScoreState self) -> IMP::ModelObjectsTemp"""
12731  return _IMP_core.MoveStatisticsScoreState_do_get_outputs(self)
12732 
12733  def get_version_info(self):
12734  r"""get_version_info(MoveStatisticsScoreState self) -> VersionInfo"""
12735  return _IMP_core.MoveStatisticsScoreState_get_version_info(self)
12736  __swig_destroy__ = _IMP_core.delete_MoveStatisticsScoreState
12737 
12738  def __str__(self):
12739  r"""__str__(MoveStatisticsScoreState self) -> std::string"""
12740  return _IMP_core.MoveStatisticsScoreState___str__(self)
12741 
12742  def __repr__(self):
12743  r"""__repr__(MoveStatisticsScoreState self) -> std::string"""
12744  return _IMP_core.MoveStatisticsScoreState___repr__(self)
12745 
12746  @staticmethod
12747  def get_from(o):
12748  return _object_cast_to_MoveStatisticsScoreState(o)
12749 
12750 
12751 # Register MoveStatisticsScoreState in _IMP_core:
12752 _IMP_core.MoveStatisticsScoreState_swigregister(MoveStatisticsScoreState)
12753 IMP_PARTICLE_TYPE_INDEX = _IMP_core.IMP_PARTICLE_TYPE_INDEX
12754 
12755 class Typed(IMP.Decorator):
12756  r"""Proxy of C++ IMP::core::Typed class."""
12757 
12758  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
12759 
12760  @staticmethod
12761  def get_type_key():
12762  r"""get_type_key() -> IntKey"""
12763  return _IMP_core.Typed_get_type_key()
12764 
12765  def __init__(self, *args):
12766  r"""
12767  __init__(Typed self) -> Typed
12768  __init__(Typed self, Model m, ParticleIndex id) -> Typed
12769  __init__(Typed self, _ParticleAdaptor d) -> Typed
12770  """
12771  _IMP_core.Typed_swiginit(self, _IMP_core.new_Typed(*args))
12772 
12773  def show(self, *args):
12774  r"""show(Typed self, _ostream out=std::cout)"""
12775  return _IMP_core.Typed_show(self, *args)
12776 
12777  @staticmethod
12778  def setup_particle(*args):
12779  r"""
12780  setup_particle(Model m, ParticleIndex pi, ParticleType t) -> Typed
12781  setup_particle(_ParticleAdaptor pa, ParticleType t) -> Typed
12782  """
12783  return _IMP_core.Typed_setup_particle(*args)
12784 
12785  @staticmethod
12786  def get_is_setup(*args):
12787  r"""
12788  get_is_setup(_ParticleAdaptor p) -> bool
12789  get_is_setup(Model m, ParticleIndex pi) -> bool
12790  """
12791  return _IMP_core.Typed_get_is_setup(*args)
12792 
12793  def get_type(self):
12794  r"""get_type(Typed self) -> ParticleType"""
12795  return _IMP_core.Typed_get_type(self)
12796 
12797  def set_type(self, pt):
12798  r"""set_type(Typed self, ParticleType pt)"""
12799  return _IMP_core.Typed_set_type(self, pt)
12800 
12801  def add_attribute(self, *args):
12802  r"""
12803  add_attribute(Typed self, FloatKey k, IMP::Float v, bool opt)
12804  add_attribute(Typed self, FloatKey a0, IMP::Float a1)
12805  add_attribute(Typed self, IntKey a0, IMP::Int a1)
12806  add_attribute(Typed self, FloatsKey a0, IMP::Floats a1)
12807  add_attribute(Typed self, IntsKey a0, IMP::Ints a1)
12808  add_attribute(Typed self, StringKey a0, IMP::String a1)
12809  add_attribute(Typed self, ParticleIndexKey a0, Particle a1)
12810  add_attribute(Typed self, ObjectKey a0, Object a1)
12811  add_attribute(Typed self, SparseFloatKey a0, IMP::Float a1)
12812  add_attribute(Typed self, SparseIntKey a0, IMP::Int a1)
12813  add_attribute(Typed self, SparseStringKey a0, IMP::String a1)
12814  add_attribute(Typed self, SparseParticleIndexKey a0, ParticleIndex a1)
12815  """
12816  return _IMP_core.Typed_add_attribute(self, *args)
12817 
12818  def get_value(self, *args):
12819  r"""
12820  get_value(Typed self, FloatKey a0) -> IMP::Float
12821  get_value(Typed self, IntKey a0) -> IMP::Int
12822  get_value(Typed self, FloatsKey a0) -> IMP::Floats
12823  get_value(Typed self, IntsKey a0) -> IMP::Ints
12824  get_value(Typed self, StringKey a0) -> IMP::String
12825  get_value(Typed self, ParticleIndexKey a0) -> Particle
12826  get_value(Typed self, ObjectKey a0) -> Object
12827  get_value(Typed self, SparseFloatKey a0) -> IMP::Float
12828  get_value(Typed self, SparseIntKey a0) -> IMP::Int
12829  get_value(Typed self, SparseStringKey a0) -> IMP::String
12830  get_value(Typed self, SparseParticleIndexKey a0) -> ParticleIndex
12831  """
12832  return _IMP_core.Typed_get_value(self, *args)
12833 
12834  def set_value(self, *args):
12835  r"""
12836  set_value(Typed self, FloatKey a0, IMP::Float a1)
12837  set_value(Typed self, IntKey a0, IMP::Int a1)
12838  set_value(Typed self, FloatsKey a0, IMP::Floats a1)
12839  set_value(Typed self, IntsKey a0, IMP::Ints a1)
12840  set_value(Typed self, StringKey a0, IMP::String a1)
12841  set_value(Typed self, ParticleIndexKey a0, Particle a1)
12842  set_value(Typed self, ObjectKey a0, Object a1)
12843  set_value(Typed self, SparseFloatKey a0, IMP::Float a1)
12844  set_value(Typed self, SparseIntKey a0, IMP::Int a1)
12845  set_value(Typed self, SparseStringKey a0, IMP::String a1)
12846  set_value(Typed self, SparseParticleIndexKey a0, ParticleIndex a1)
12847  """
12848  return _IMP_core.Typed_set_value(self, *args)
12849 
12850  def remove_attribute(self, *args):
12851  r"""
12852  remove_attribute(Typed self, FloatKey a0)
12853  remove_attribute(Typed self, IntKey a0)
12854  remove_attribute(Typed self, FloatsKey a0)
12855  remove_attribute(Typed self, IntsKey a0)
12856  remove_attribute(Typed self, StringKey a0)
12857  remove_attribute(Typed self, ParticleIndexKey a0)
12858  remove_attribute(Typed self, ObjectKey a0)
12859  remove_attribute(Typed self, SparseFloatKey a0)
12860  remove_attribute(Typed self, SparseIntKey a0)
12861  remove_attribute(Typed self, SparseStringKey a0)
12862  remove_attribute(Typed self, SparseParticleIndexKey a0)
12863  """
12864  return _IMP_core.Typed_remove_attribute(self, *args)
12865 
12866  def has_attribute(self, *args):
12867  r"""
12868  has_attribute(Typed self, FloatKey a0) -> bool
12869  has_attribute(Typed self, IntKey a0) -> bool
12870  has_attribute(Typed self, FloatsKey a0) -> bool
12871  has_attribute(Typed self, IntsKey a0) -> bool
12872  has_attribute(Typed self, StringKey a0) -> bool
12873  has_attribute(Typed self, ParticleIndexKey a0) -> bool
12874  has_attribute(Typed self, ObjectKey a0) -> bool
12875  has_attribute(Typed self, SparseFloatKey a0) -> bool
12876  has_attribute(Typed self, SparseIntKey a0) -> bool
12877  has_attribute(Typed self, SparseStringKey a0) -> bool
12878  has_attribute(Typed self, SparseParticleIndexKey a0) -> bool
12879  """
12880  return _IMP_core.Typed_has_attribute(self, *args)
12881 
12882  def get_derivative(self, a0):
12883  r"""get_derivative(Typed self, FloatKey a0) -> double"""
12884  return _IMP_core.Typed_get_derivative(self, a0)
12885 
12886  def get_name(self):
12887  r"""get_name(Typed self) -> std::string"""
12888  return _IMP_core.Typed_get_name(self)
12889 
12890  def clear_caches(self):
12891  r"""clear_caches(Typed self)"""
12892  return _IMP_core.Typed_clear_caches(self)
12893 
12894  def set_name(self, a0):
12895  r"""set_name(Typed self, std::string a0)"""
12896  return _IMP_core.Typed_set_name(self, a0)
12897 
12898  def set_check_level(self, a0):
12899  r"""set_check_level(Typed self, IMP::CheckLevel a0)"""
12900  return _IMP_core.Typed_set_check_level(self, a0)
12901 
12902  def add_to_derivative(self, a0, a1, a2):
12903  r"""add_to_derivative(Typed self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
12904  return _IMP_core.Typed_add_to_derivative(self, a0, a1, a2)
12905 
12906  def set_is_optimized(self, a0, a1):
12907  r"""set_is_optimized(Typed self, FloatKey a0, bool a1)"""
12908  return _IMP_core.Typed_set_is_optimized(self, a0, a1)
12909 
12910  def get_is_optimized(self, a0):
12911  r"""get_is_optimized(Typed self, FloatKey a0) -> bool"""
12912  return _IMP_core.Typed_get_is_optimized(self, a0)
12913 
12914  def get_check_level(self):
12915  r"""get_check_level(Typed self) -> IMP::CheckLevel"""
12916  return _IMP_core.Typed_get_check_level(self)
12917 
12918  def __eq__(self, *args):
12919  r"""
12920  __eq__(Typed self, Typed o) -> bool
12921  __eq__(Typed self, Particle d) -> bool
12922  """
12923  return _IMP_core.Typed___eq__(self, *args)
12924 
12925  def __ne__(self, *args):
12926  r"""
12927  __ne__(Typed self, Typed o) -> bool
12928  __ne__(Typed self, Particle d) -> bool
12929  """
12930  return _IMP_core.Typed___ne__(self, *args)
12931 
12932  def __le__(self, *args):
12933  r"""
12934  __le__(Typed self, Typed o) -> bool
12935  __le__(Typed self, Particle d) -> bool
12936  """
12937  return _IMP_core.Typed___le__(self, *args)
12938 
12939  def __lt__(self, *args):
12940  r"""
12941  __lt__(Typed self, Typed o) -> bool
12942  __lt__(Typed self, Particle d) -> bool
12943  """
12944  return _IMP_core.Typed___lt__(self, *args)
12945 
12946  def __ge__(self, *args):
12947  r"""
12948  __ge__(Typed self, Typed o) -> bool
12949  __ge__(Typed self, Particle d) -> bool
12950  """
12951  return _IMP_core.Typed___ge__(self, *args)
12952 
12953  def __gt__(self, *args):
12954  r"""
12955  __gt__(Typed self, Typed o) -> bool
12956  __gt__(Typed self, Particle d) -> bool
12957  """
12958  return _IMP_core.Typed___gt__(self, *args)
12959 
12960  def __hash__(self):
12961  r"""__hash__(Typed self) -> std::size_t"""
12962  return _IMP_core.Typed___hash__(self)
12963 
12964  def __str__(self):
12965  r"""__str__(Typed self) -> std::string"""
12966  return _IMP_core.Typed___str__(self)
12967 
12968  def __repr__(self):
12969  r"""__repr__(Typed self) -> std::string"""
12970  return _IMP_core.Typed___repr__(self)
12971 
12972  def _get_as_binary(self):
12973  r"""_get_as_binary(Typed self) -> PyObject *"""
12974  return _IMP_core.Typed__get_as_binary(self)
12975 
12976  def _set_from_binary(self, p):
12977  r"""_set_from_binary(Typed self, PyObject * p)"""
12978  return _IMP_core.Typed__set_from_binary(self, p)
12979 
12980  def __getstate__(self):
12981  p = self._get_as_binary()
12982  if len(self.__dict__) > 1:
12983  d = self.__dict__.copy()
12984  del d['this']
12985  p = (d, p)
12986  return p
12987 
12988  def __setstate__(self, p):
12989  if not hasattr(self, 'this'):
12990  self.__init__()
12991  if isinstance(p, tuple):
12992  d, p = p
12993  self.__dict__.update(d)
12994  return self._set_from_binary(p)
12995 
12996  __swig_destroy__ = _IMP_core.delete_Typed
12997 
12998 # Register Typed in _IMP_core:
12999 _IMP_core.Typed_swigregister(Typed)
13000 
13001 def __lshift__(*args):
13002  r"""
13003  __lshift__(_ostream out, XYZ n) -> _ostream
13004  __lshift__(_ostream out, XYZR n) -> _ostream
13005  __lshift__(_ostream out, Direction n) -> _ostream
13006  __lshift__(_ostream out, DirectionAngle n) -> _ostream
13007  __lshift__(_ostream out, Surface n) -> _ostream
13008  __lshift__(_ostream out, Centroid n) -> _ostream
13009  __lshift__(_ostream out, Cover n) -> _ostream
13010  __lshift__(_ostream out, Reference n) -> _ostream
13011  __lshift__(_ostream out, RigidMember n) -> _ostream
13012  __lshift__(_ostream out, RigidBody n) -> _ostream
13013  __lshift__(_ostream out, Gaussian n) -> _ostream
13014  __lshift__(_ostream out, Typed n) -> _ostream
13015  """
13016  return _IMP_core.__lshift__(*args)
13017 class WriteRestraintScoresOptimizerState(IMP.OptimizerState):
13018  r"""Proxy of C++ IMP::core::WriteRestraintScoresOptimizerState class."""
13019 
13020  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13021 
13022  def __init__(self, rs, out):
13023  r"""__init__(WriteRestraintScoresOptimizerState self, IMP::Restraints const & rs, TextOutput out) -> WriteRestraintScoresOptimizerState"""
13024  _IMP_core.WriteRestraintScoresOptimizerState_swiginit(self, _IMP_core.new_WriteRestraintScoresOptimizerState(rs, out))
13025 
13026  def get_version_info(self):
13027  r"""get_version_info(WriteRestraintScoresOptimizerState self) -> VersionInfo"""
13028  return _IMP_core.WriteRestraintScoresOptimizerState_get_version_info(self)
13029  __swig_destroy__ = _IMP_core.delete_WriteRestraintScoresOptimizerState
13030 
13031  def __str__(self):
13032  r"""__str__(WriteRestraintScoresOptimizerState self) -> std::string"""
13033  return _IMP_core.WriteRestraintScoresOptimizerState___str__(self)
13034 
13035  def __repr__(self):
13036  r"""__repr__(WriteRestraintScoresOptimizerState self) -> std::string"""
13037  return _IMP_core.WriteRestraintScoresOptimizerState___repr__(self)
13038 
13039  @staticmethod
13040  def get_from(o):
13041  return _object_cast_to_WriteRestraintScoresOptimizerState(o)
13042 
13043 
13044 # Register WriteRestraintScoresOptimizerState in _IMP_core:
13045 _IMP_core.WriteRestraintScoresOptimizerState_swigregister(WriteRestraintScoresOptimizerState)
13046 
13047 def assign_blame(rs, ps, attribute):
13048  r"""assign_blame(IMP::RestraintsTemp const & rs, IMP::ParticlesTemp const & ps, FloatKey attribute)"""
13049  return _IMP_core.assign_blame(rs, ps, attribute)
13050 
13051 def create_blame_geometries(*args):
13052  r"""create_blame_geometries(IMP::RestraintsTemp const & rs, IMP::ParticlesTemp const & ps, double max=NO_MAX, std::string name=std::string()) -> IMP::display::Geometries"""
13053  return _IMP_core.create_blame_geometries(*args)
13054 class MultipleBinormalRestraint(IMP.Restraint):
13055  r"""Proxy of C++ IMP::core::MultipleBinormalRestraint class."""
13056 
13057  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13058 
13059  def __init__(self, m, q1, q2):
13060  r"""__init__(MultipleBinormalRestraint self, Model m, IMP::ParticleIndexQuad const & q1, IMP::ParticleIndexQuad const & q2) -> MultipleBinormalRestraint"""
13061  _IMP_core.MultipleBinormalRestraint_swiginit(self, _IMP_core.new_MultipleBinormalRestraint(m, q1, q2))
13062 
13063  def add_term(self, term):
13064  r"""add_term(MultipleBinormalRestraint self, BinormalTerm term)"""
13065  return _IMP_core.MultipleBinormalRestraint_add_term(self, term)
13066 
13067  def do_get_inputs(self):
13068  r"""do_get_inputs(MultipleBinormalRestraint self) -> IMP::ModelObjectsTemp"""
13069  return _IMP_core.MultipleBinormalRestraint_do_get_inputs(self)
13070 
13071  def get_version_info(self):
13072  r"""get_version_info(MultipleBinormalRestraint self) -> VersionInfo"""
13073  return _IMP_core.MultipleBinormalRestraint_get_version_info(self)
13074  __swig_destroy__ = _IMP_core.delete_MultipleBinormalRestraint
13075 
13076  def __str__(self):
13077  r"""__str__(MultipleBinormalRestraint self) -> std::string"""
13078  return _IMP_core.MultipleBinormalRestraint___str__(self)
13079 
13080  def __repr__(self):
13081  r"""__repr__(MultipleBinormalRestraint self) -> std::string"""
13082  return _IMP_core.MultipleBinormalRestraint___repr__(self)
13083 
13084  @staticmethod
13085  def get_from(o):
13086  return _object_cast_to_MultipleBinormalRestraint(o)
13087 
13088 
13089 # Register MultipleBinormalRestraint in _IMP_core:
13090 _IMP_core.MultipleBinormalRestraint_swigregister(MultipleBinormalRestraint)
13091 class BinormalTerm(object):
13092  r"""Proxy of C++ IMP::core::BinormalTerm class."""
13093 
13094  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13095 
13096  def __init__(self):
13097  r"""__init__(BinormalTerm self) -> BinormalTerm"""
13098  _IMP_core.BinormalTerm_swiginit(self, _IMP_core.new_BinormalTerm())
13099 
13100  def set_correlation(self, correlation):
13101  r"""set_correlation(BinormalTerm self, double correlation)"""
13102  return _IMP_core.BinormalTerm_set_correlation(self, correlation)
13103 
13104  def set_weight(self, weight):
13105  r"""set_weight(BinormalTerm self, double weight)"""
13106  return _IMP_core.BinormalTerm_set_weight(self, weight)
13107 
13108  def set_means(self, means):
13109  r"""set_means(BinormalTerm self, IMP::FloatPair means)"""
13110  return _IMP_core.BinormalTerm_set_means(self, means)
13111 
13112  def set_standard_deviations(self, stdevs):
13113  r"""set_standard_deviations(BinormalTerm self, IMP::FloatPair stdevs)"""
13114  return _IMP_core.BinormalTerm_set_standard_deviations(self, stdevs)
13115 
13116  def show(self, *args):
13117  r"""show(BinormalTerm self, _ostream out=std::cout)"""
13118  return _IMP_core.BinormalTerm_show(self, *args)
13119 
13120  def __str__(self):
13121  r"""__str__(BinormalTerm self) -> std::string"""
13122  return _IMP_core.BinormalTerm___str__(self)
13123 
13124  def __repr__(self):
13125  r"""__repr__(BinormalTerm self) -> std::string"""
13126  return _IMP_core.BinormalTerm___repr__(self)
13127 
13128  def _get_as_binary(self):
13129  r"""_get_as_binary(BinormalTerm self) -> PyObject *"""
13130  return _IMP_core.BinormalTerm__get_as_binary(self)
13131 
13132  def _set_from_binary(self, p):
13133  r"""_set_from_binary(BinormalTerm self, PyObject * p)"""
13134  return _IMP_core.BinormalTerm__set_from_binary(self, p)
13135 
13136  def __getstate__(self):
13137  p = self._get_as_binary()
13138  if len(self.__dict__) > 1:
13139  d = self.__dict__.copy()
13140  del d['this']
13141  p = (d, p)
13142  return p
13143 
13144  def __setstate__(self, p):
13145  if not hasattr(self, 'this'):
13146  self.__init__()
13147  if isinstance(p, tuple):
13148  d, p = p
13149  self.__dict__.update(d)
13150  return self._set_from_binary(p)
13151 
13152  __swig_destroy__ = _IMP_core.delete_BinormalTerm
13153 
13154 # Register BinormalTerm in _IMP_core:
13155 _IMP_core.BinormalTerm_swigregister(BinormalTerm)
13156 class Provenance(IMP.Decorator):
13157  r"""Proxy of C++ IMP::core::Provenance class."""
13158 
13159  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13160 
13161  def get_previous(self):
13162  r"""get_previous(Provenance self) -> Provenance"""
13163  return _IMP_core.Provenance_get_previous(self)
13164 
13165  def set_previous(self, p):
13166  r"""set_previous(Provenance self, Provenance p)"""
13167  return _IMP_core.Provenance_set_previous(self, p)
13168 
13169  def __init__(self, *args):
13170  r"""
13171  __init__(Provenance self) -> Provenance
13172  __init__(Provenance self, Model m, ParticleIndex id) -> Provenance
13173  __init__(Provenance self, _ParticleAdaptor d) -> Provenance
13174  """
13175  _IMP_core.Provenance_swiginit(self, _IMP_core.new_Provenance(*args))
13176 
13177  @staticmethod
13178  def get_is_setup(*args):
13179  r"""
13180  get_is_setup(Model m, ParticleIndex pi) -> bool
13181  get_is_setup(_ParticleAdaptor p) -> bool
13182  """
13183  return _IMP_core.Provenance_get_is_setup(*args)
13184 
13185  def show(self, *args):
13186  r"""show(Provenance self, _ostream out=std::cout)"""
13187  return _IMP_core.Provenance_show(self, *args)
13188 
13189  @staticmethod
13190  def setup_particle(*args):
13191  r"""
13192  setup_particle(Model m, ParticleIndex pi) -> Provenance
13193  setup_particle(_ParticleAdaptor pa) -> Provenance
13194  """
13195  return _IMP_core.Provenance_setup_particle(*args)
13196 
13197  def add_attribute(self, *args):
13198  r"""
13199  add_attribute(Provenance self, FloatKey k, IMP::Float v, bool opt)
13200  add_attribute(Provenance self, FloatKey a0, IMP::Float a1)
13201  add_attribute(Provenance self, IntKey a0, IMP::Int a1)
13202  add_attribute(Provenance self, FloatsKey a0, IMP::Floats a1)
13203  add_attribute(Provenance self, IntsKey a0, IMP::Ints a1)
13204  add_attribute(Provenance self, StringKey a0, IMP::String a1)
13205  add_attribute(Provenance self, ParticleIndexKey a0, Particle a1)
13206  add_attribute(Provenance self, ObjectKey a0, Object a1)
13207  add_attribute(Provenance self, SparseFloatKey a0, IMP::Float a1)
13208  add_attribute(Provenance self, SparseIntKey a0, IMP::Int a1)
13209  add_attribute(Provenance self, SparseStringKey a0, IMP::String a1)
13210  add_attribute(Provenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13211  """
13212  return _IMP_core.Provenance_add_attribute(self, *args)
13213 
13214  def get_value(self, *args):
13215  r"""
13216  get_value(Provenance self, FloatKey a0) -> IMP::Float
13217  get_value(Provenance self, IntKey a0) -> IMP::Int
13218  get_value(Provenance self, FloatsKey a0) -> IMP::Floats
13219  get_value(Provenance self, IntsKey a0) -> IMP::Ints
13220  get_value(Provenance self, StringKey a0) -> IMP::String
13221  get_value(Provenance self, ParticleIndexKey a0) -> Particle
13222  get_value(Provenance self, ObjectKey a0) -> Object
13223  get_value(Provenance self, SparseFloatKey a0) -> IMP::Float
13224  get_value(Provenance self, SparseIntKey a0) -> IMP::Int
13225  get_value(Provenance self, SparseStringKey a0) -> IMP::String
13226  get_value(Provenance self, SparseParticleIndexKey a0) -> ParticleIndex
13227  """
13228  return _IMP_core.Provenance_get_value(self, *args)
13229 
13230  def set_value(self, *args):
13231  r"""
13232  set_value(Provenance self, FloatKey a0, IMP::Float a1)
13233  set_value(Provenance self, IntKey a0, IMP::Int a1)
13234  set_value(Provenance self, FloatsKey a0, IMP::Floats a1)
13235  set_value(Provenance self, IntsKey a0, IMP::Ints a1)
13236  set_value(Provenance self, StringKey a0, IMP::String a1)
13237  set_value(Provenance self, ParticleIndexKey a0, Particle a1)
13238  set_value(Provenance self, ObjectKey a0, Object a1)
13239  set_value(Provenance self, SparseFloatKey a0, IMP::Float a1)
13240  set_value(Provenance self, SparseIntKey a0, IMP::Int a1)
13241  set_value(Provenance self, SparseStringKey a0, IMP::String a1)
13242  set_value(Provenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13243  """
13244  return _IMP_core.Provenance_set_value(self, *args)
13245 
13246  def remove_attribute(self, *args):
13247  r"""
13248  remove_attribute(Provenance self, FloatKey a0)
13249  remove_attribute(Provenance self, IntKey a0)
13250  remove_attribute(Provenance self, FloatsKey a0)
13251  remove_attribute(Provenance self, IntsKey a0)
13252  remove_attribute(Provenance self, StringKey a0)
13253  remove_attribute(Provenance self, ParticleIndexKey a0)
13254  remove_attribute(Provenance self, ObjectKey a0)
13255  remove_attribute(Provenance self, SparseFloatKey a0)
13256  remove_attribute(Provenance self, SparseIntKey a0)
13257  remove_attribute(Provenance self, SparseStringKey a0)
13258  remove_attribute(Provenance self, SparseParticleIndexKey a0)
13259  """
13260  return _IMP_core.Provenance_remove_attribute(self, *args)
13261 
13262  def has_attribute(self, *args):
13263  r"""
13264  has_attribute(Provenance self, FloatKey a0) -> bool
13265  has_attribute(Provenance self, IntKey a0) -> bool
13266  has_attribute(Provenance self, FloatsKey a0) -> bool
13267  has_attribute(Provenance self, IntsKey a0) -> bool
13268  has_attribute(Provenance self, StringKey a0) -> bool
13269  has_attribute(Provenance self, ParticleIndexKey a0) -> bool
13270  has_attribute(Provenance self, ObjectKey a0) -> bool
13271  has_attribute(Provenance self, SparseFloatKey a0) -> bool
13272  has_attribute(Provenance self, SparseIntKey a0) -> bool
13273  has_attribute(Provenance self, SparseStringKey a0) -> bool
13274  has_attribute(Provenance self, SparseParticleIndexKey a0) -> bool
13275  """
13276  return _IMP_core.Provenance_has_attribute(self, *args)
13277 
13278  def get_derivative(self, a0):
13279  r"""get_derivative(Provenance self, FloatKey a0) -> double"""
13280  return _IMP_core.Provenance_get_derivative(self, a0)
13281 
13282  def get_name(self):
13283  r"""get_name(Provenance self) -> std::string"""
13284  return _IMP_core.Provenance_get_name(self)
13285 
13286  def clear_caches(self):
13287  r"""clear_caches(Provenance self)"""
13288  return _IMP_core.Provenance_clear_caches(self)
13289 
13290  def set_name(self, a0):
13291  r"""set_name(Provenance self, std::string a0)"""
13292  return _IMP_core.Provenance_set_name(self, a0)
13293 
13294  def set_check_level(self, a0):
13295  r"""set_check_level(Provenance self, IMP::CheckLevel a0)"""
13296  return _IMP_core.Provenance_set_check_level(self, a0)
13297 
13298  def add_to_derivative(self, a0, a1, a2):
13299  r"""add_to_derivative(Provenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13300  return _IMP_core.Provenance_add_to_derivative(self, a0, a1, a2)
13301 
13302  def set_is_optimized(self, a0, a1):
13303  r"""set_is_optimized(Provenance self, FloatKey a0, bool a1)"""
13304  return _IMP_core.Provenance_set_is_optimized(self, a0, a1)
13305 
13306  def get_is_optimized(self, a0):
13307  r"""get_is_optimized(Provenance self, FloatKey a0) -> bool"""
13308  return _IMP_core.Provenance_get_is_optimized(self, a0)
13309 
13310  def get_check_level(self):
13311  r"""get_check_level(Provenance self) -> IMP::CheckLevel"""
13312  return _IMP_core.Provenance_get_check_level(self)
13313 
13314  def __eq__(self, *args):
13315  r"""
13316  __eq__(Provenance self, Provenance o) -> bool
13317  __eq__(Provenance self, Particle d) -> bool
13318  """
13319  return _IMP_core.Provenance___eq__(self, *args)
13320 
13321  def __ne__(self, *args):
13322  r"""
13323  __ne__(Provenance self, Provenance o) -> bool
13324  __ne__(Provenance self, Particle d) -> bool
13325  """
13326  return _IMP_core.Provenance___ne__(self, *args)
13327 
13328  def __le__(self, *args):
13329  r"""
13330  __le__(Provenance self, Provenance o) -> bool
13331  __le__(Provenance self, Particle d) -> bool
13332  """
13333  return _IMP_core.Provenance___le__(self, *args)
13334 
13335  def __lt__(self, *args):
13336  r"""
13337  __lt__(Provenance self, Provenance o) -> bool
13338  __lt__(Provenance self, Particle d) -> bool
13339  """
13340  return _IMP_core.Provenance___lt__(self, *args)
13341 
13342  def __ge__(self, *args):
13343  r"""
13344  __ge__(Provenance self, Provenance o) -> bool
13345  __ge__(Provenance self, Particle d) -> bool
13346  """
13347  return _IMP_core.Provenance___ge__(self, *args)
13348 
13349  def __gt__(self, *args):
13350  r"""
13351  __gt__(Provenance self, Provenance o) -> bool
13352  __gt__(Provenance self, Particle d) -> bool
13353  """
13354  return _IMP_core.Provenance___gt__(self, *args)
13355 
13356  def __hash__(self):
13357  r"""__hash__(Provenance self) -> std::size_t"""
13358  return _IMP_core.Provenance___hash__(self)
13359 
13360  def __str__(self):
13361  r"""__str__(Provenance self) -> std::string"""
13362  return _IMP_core.Provenance___str__(self)
13363 
13364  def __repr__(self):
13365  r"""__repr__(Provenance self) -> std::string"""
13366  return _IMP_core.Provenance___repr__(self)
13367 
13368  def _get_as_binary(self):
13369  r"""_get_as_binary(Provenance self) -> PyObject *"""
13370  return _IMP_core.Provenance__get_as_binary(self)
13371 
13372  def _set_from_binary(self, p):
13373  r"""_set_from_binary(Provenance self, PyObject * p)"""
13374  return _IMP_core.Provenance__set_from_binary(self, p)
13375 
13376  def __getstate__(self):
13377  p = self._get_as_binary()
13378  if len(self.__dict__) > 1:
13379  d = self.__dict__.copy()
13380  del d['this']
13381  p = (d, p)
13382  return p
13383 
13384  def __setstate__(self, p):
13385  if not hasattr(self, 'this'):
13386  self.__init__()
13387  if isinstance(p, tuple):
13388  d, p = p
13389  self.__dict__.update(d)
13390  return self._set_from_binary(p)
13391 
13392  __swig_destroy__ = _IMP_core.delete_Provenance
13393 
13394 # Register Provenance in _IMP_core:
13395 _IMP_core.Provenance_swigregister(Provenance)
13396 class StructureProvenance(Provenance):
13397  r"""Proxy of C++ IMP::core::StructureProvenance class."""
13398 
13399  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13400 
13401  def set_filename(self, filename):
13402  r"""set_filename(StructureProvenance self, std::string filename)"""
13403  return _IMP_core.StructureProvenance_set_filename(self, filename)
13404 
13405  def get_filename(self):
13406  r"""get_filename(StructureProvenance self) -> std::string"""
13407  return _IMP_core.StructureProvenance_get_filename(self)
13408 
13409  def set_chain_id(self, chain_id):
13410  r"""set_chain_id(StructureProvenance self, std::string chain_id)"""
13411  return _IMP_core.StructureProvenance_set_chain_id(self, chain_id)
13412 
13413  def get_chain_id(self):
13414  r"""get_chain_id(StructureProvenance self) -> std::string"""
13415  return _IMP_core.StructureProvenance_get_chain_id(self)
13416 
13417  def set_residue_offset(self, residue_offset):
13418  r"""set_residue_offset(StructureProvenance self, int residue_offset)"""
13419  return _IMP_core.StructureProvenance_set_residue_offset(self, residue_offset)
13420 
13421  def get_residue_offset(self):
13422  r"""get_residue_offset(StructureProvenance self) -> int"""
13423  return _IMP_core.StructureProvenance_get_residue_offset(self)
13424 
13425  def __init__(self, *args):
13426  r"""
13427  __init__(StructureProvenance self) -> StructureProvenance
13428  __init__(StructureProvenance self, Model m, ParticleIndex id) -> StructureProvenance
13429  __init__(StructureProvenance self, _ParticleAdaptor d) -> StructureProvenance
13430  """
13431  _IMP_core.StructureProvenance_swiginit(self, _IMP_core.new_StructureProvenance(*args))
13432 
13433  @staticmethod
13434  def get_is_setup(*args):
13435  r"""
13436  get_is_setup(Model m, ParticleIndex pi) -> bool
13437  get_is_setup(_ParticleAdaptor p) -> bool
13438  """
13439  return _IMP_core.StructureProvenance_get_is_setup(*args)
13440 
13441  def show(self, *args):
13442  r"""show(StructureProvenance self, _ostream out=std::cout)"""
13443  return _IMP_core.StructureProvenance_show(self, *args)
13444 
13445  @staticmethod
13446  def setup_particle(*args):
13447  r"""
13448  setup_particle(Model m, ParticleIndex pi, std::string filename, std::string chain_id, int residue_offset) -> StructureProvenance
13449  setup_particle(_ParticleAdaptor pa, std::string filename, std::string chain_id, int residue_offset) -> StructureProvenance
13450  setup_particle(Model m, ParticleIndex pi, std::string filename, std::string chain_id) -> StructureProvenance
13451  setup_particle(_ParticleAdaptor pa, std::string filename, std::string chain_id) -> StructureProvenance
13452  setup_particle(Model m, ParticleIndex pi, StructureProvenance o) -> StructureProvenance
13453  setup_particle(_ParticleAdaptor pa, StructureProvenance o) -> StructureProvenance
13454  """
13455  return _IMP_core.StructureProvenance_setup_particle(*args)
13456 
13457  def add_attribute(self, *args):
13458  r"""
13459  add_attribute(StructureProvenance self, FloatKey k, IMP::Float v, bool opt)
13460  add_attribute(StructureProvenance self, FloatKey a0, IMP::Float a1)
13461  add_attribute(StructureProvenance self, IntKey a0, IMP::Int a1)
13462  add_attribute(StructureProvenance self, FloatsKey a0, IMP::Floats a1)
13463  add_attribute(StructureProvenance self, IntsKey a0, IMP::Ints a1)
13464  add_attribute(StructureProvenance self, StringKey a0, IMP::String a1)
13465  add_attribute(StructureProvenance self, ParticleIndexKey a0, Particle a1)
13466  add_attribute(StructureProvenance self, ObjectKey a0, Object a1)
13467  add_attribute(StructureProvenance self, SparseFloatKey a0, IMP::Float a1)
13468  add_attribute(StructureProvenance self, SparseIntKey a0, IMP::Int a1)
13469  add_attribute(StructureProvenance self, SparseStringKey a0, IMP::String a1)
13470  add_attribute(StructureProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13471  """
13472  return _IMP_core.StructureProvenance_add_attribute(self, *args)
13473 
13474  def get_value(self, *args):
13475  r"""
13476  get_value(StructureProvenance self, FloatKey a0) -> IMP::Float
13477  get_value(StructureProvenance self, IntKey a0) -> IMP::Int
13478  get_value(StructureProvenance self, FloatsKey a0) -> IMP::Floats
13479  get_value(StructureProvenance self, IntsKey a0) -> IMP::Ints
13480  get_value(StructureProvenance self, StringKey a0) -> IMP::String
13481  get_value(StructureProvenance self, ParticleIndexKey a0) -> Particle
13482  get_value(StructureProvenance self, ObjectKey a0) -> Object
13483  get_value(StructureProvenance self, SparseFloatKey a0) -> IMP::Float
13484  get_value(StructureProvenance self, SparseIntKey a0) -> IMP::Int
13485  get_value(StructureProvenance self, SparseStringKey a0) -> IMP::String
13486  get_value(StructureProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
13487  """
13488  return _IMP_core.StructureProvenance_get_value(self, *args)
13489 
13490  def set_value(self, *args):
13491  r"""
13492  set_value(StructureProvenance self, FloatKey a0, IMP::Float a1)
13493  set_value(StructureProvenance self, IntKey a0, IMP::Int a1)
13494  set_value(StructureProvenance self, FloatsKey a0, IMP::Floats a1)
13495  set_value(StructureProvenance self, IntsKey a0, IMP::Ints a1)
13496  set_value(StructureProvenance self, StringKey a0, IMP::String a1)
13497  set_value(StructureProvenance self, ParticleIndexKey a0, Particle a1)
13498  set_value(StructureProvenance self, ObjectKey a0, Object a1)
13499  set_value(StructureProvenance self, SparseFloatKey a0, IMP::Float a1)
13500  set_value(StructureProvenance self, SparseIntKey a0, IMP::Int a1)
13501  set_value(StructureProvenance self, SparseStringKey a0, IMP::String a1)
13502  set_value(StructureProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13503  """
13504  return _IMP_core.StructureProvenance_set_value(self, *args)
13505 
13506  def remove_attribute(self, *args):
13507  r"""
13508  remove_attribute(StructureProvenance self, FloatKey a0)
13509  remove_attribute(StructureProvenance self, IntKey a0)
13510  remove_attribute(StructureProvenance self, FloatsKey a0)
13511  remove_attribute(StructureProvenance self, IntsKey a0)
13512  remove_attribute(StructureProvenance self, StringKey a0)
13513  remove_attribute(StructureProvenance self, ParticleIndexKey a0)
13514  remove_attribute(StructureProvenance self, ObjectKey a0)
13515  remove_attribute(StructureProvenance self, SparseFloatKey a0)
13516  remove_attribute(StructureProvenance self, SparseIntKey a0)
13517  remove_attribute(StructureProvenance self, SparseStringKey a0)
13518  remove_attribute(StructureProvenance self, SparseParticleIndexKey a0)
13519  """
13520  return _IMP_core.StructureProvenance_remove_attribute(self, *args)
13521 
13522  def has_attribute(self, *args):
13523  r"""
13524  has_attribute(StructureProvenance self, FloatKey a0) -> bool
13525  has_attribute(StructureProvenance self, IntKey a0) -> bool
13526  has_attribute(StructureProvenance self, FloatsKey a0) -> bool
13527  has_attribute(StructureProvenance self, IntsKey a0) -> bool
13528  has_attribute(StructureProvenance self, StringKey a0) -> bool
13529  has_attribute(StructureProvenance self, ParticleIndexKey a0) -> bool
13530  has_attribute(StructureProvenance self, ObjectKey a0) -> bool
13531  has_attribute(StructureProvenance self, SparseFloatKey a0) -> bool
13532  has_attribute(StructureProvenance self, SparseIntKey a0) -> bool
13533  has_attribute(StructureProvenance self, SparseStringKey a0) -> bool
13534  has_attribute(StructureProvenance self, SparseParticleIndexKey a0) -> bool
13535  """
13536  return _IMP_core.StructureProvenance_has_attribute(self, *args)
13537 
13538  def get_derivative(self, a0):
13539  r"""get_derivative(StructureProvenance self, FloatKey a0) -> double"""
13540  return _IMP_core.StructureProvenance_get_derivative(self, a0)
13541 
13542  def get_name(self):
13543  r"""get_name(StructureProvenance self) -> std::string"""
13544  return _IMP_core.StructureProvenance_get_name(self)
13545 
13546  def clear_caches(self):
13547  r"""clear_caches(StructureProvenance self)"""
13548  return _IMP_core.StructureProvenance_clear_caches(self)
13549 
13550  def set_name(self, a0):
13551  r"""set_name(StructureProvenance self, std::string a0)"""
13552  return _IMP_core.StructureProvenance_set_name(self, a0)
13553 
13554  def set_check_level(self, a0):
13555  r"""set_check_level(StructureProvenance self, IMP::CheckLevel a0)"""
13556  return _IMP_core.StructureProvenance_set_check_level(self, a0)
13557 
13558  def add_to_derivative(self, a0, a1, a2):
13559  r"""add_to_derivative(StructureProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13560  return _IMP_core.StructureProvenance_add_to_derivative(self, a0, a1, a2)
13561 
13562  def set_is_optimized(self, a0, a1):
13563  r"""set_is_optimized(StructureProvenance self, FloatKey a0, bool a1)"""
13564  return _IMP_core.StructureProvenance_set_is_optimized(self, a0, a1)
13565 
13566  def get_is_optimized(self, a0):
13567  r"""get_is_optimized(StructureProvenance self, FloatKey a0) -> bool"""
13568  return _IMP_core.StructureProvenance_get_is_optimized(self, a0)
13569 
13570  def get_check_level(self):
13571  r"""get_check_level(StructureProvenance self) -> IMP::CheckLevel"""
13572  return _IMP_core.StructureProvenance_get_check_level(self)
13573 
13574  def __eq__(self, *args):
13575  r"""
13576  __eq__(StructureProvenance self, StructureProvenance o) -> bool
13577  __eq__(StructureProvenance self, Particle d) -> bool
13578  """
13579  return _IMP_core.StructureProvenance___eq__(self, *args)
13580 
13581  def __ne__(self, *args):
13582  r"""
13583  __ne__(StructureProvenance self, StructureProvenance o) -> bool
13584  __ne__(StructureProvenance self, Particle d) -> bool
13585  """
13586  return _IMP_core.StructureProvenance___ne__(self, *args)
13587 
13588  def __le__(self, *args):
13589  r"""
13590  __le__(StructureProvenance self, StructureProvenance o) -> bool
13591  __le__(StructureProvenance self, Particle d) -> bool
13592  """
13593  return _IMP_core.StructureProvenance___le__(self, *args)
13594 
13595  def __lt__(self, *args):
13596  r"""
13597  __lt__(StructureProvenance self, StructureProvenance o) -> bool
13598  __lt__(StructureProvenance self, Particle d) -> bool
13599  """
13600  return _IMP_core.StructureProvenance___lt__(self, *args)
13601 
13602  def __ge__(self, *args):
13603  r"""
13604  __ge__(StructureProvenance self, StructureProvenance o) -> bool
13605  __ge__(StructureProvenance self, Particle d) -> bool
13606  """
13607  return _IMP_core.StructureProvenance___ge__(self, *args)
13608 
13609  def __gt__(self, *args):
13610  r"""
13611  __gt__(StructureProvenance self, StructureProvenance o) -> bool
13612  __gt__(StructureProvenance self, Particle d) -> bool
13613  """
13614  return _IMP_core.StructureProvenance___gt__(self, *args)
13615 
13616  def __hash__(self):
13617  r"""__hash__(StructureProvenance self) -> std::size_t"""
13618  return _IMP_core.StructureProvenance___hash__(self)
13619 
13620  def __str__(self):
13621  r"""__str__(StructureProvenance self) -> std::string"""
13622  return _IMP_core.StructureProvenance___str__(self)
13623 
13624  def __repr__(self):
13625  r"""__repr__(StructureProvenance self) -> std::string"""
13626  return _IMP_core.StructureProvenance___repr__(self)
13627 
13628  def _get_as_binary(self):
13629  r"""_get_as_binary(StructureProvenance self) -> PyObject *"""
13630  return _IMP_core.StructureProvenance__get_as_binary(self)
13631 
13632  def _set_from_binary(self, p):
13633  r"""_set_from_binary(StructureProvenance self, PyObject * p)"""
13634  return _IMP_core.StructureProvenance__set_from_binary(self, p)
13635 
13636  def __getstate__(self):
13637  p = self._get_as_binary()
13638  if len(self.__dict__) > 1:
13639  d = self.__dict__.copy()
13640  del d['this']
13641  p = (d, p)
13642  return p
13643 
13644  def __setstate__(self, p):
13645  if not hasattr(self, 'this'):
13646  self.__init__()
13647  if isinstance(p, tuple):
13648  d, p = p
13649  self.__dict__.update(d)
13650  return self._set_from_binary(p)
13651 
13652  __swig_destroy__ = _IMP_core.delete_StructureProvenance
13653 
13654 # Register StructureProvenance in _IMP_core:
13655 _IMP_core.StructureProvenance_swigregister(StructureProvenance)
13656 class SampleProvenance(Provenance):
13657  r"""Proxy of C++ IMP::core::SampleProvenance class."""
13658 
13659  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13660 
13661  def set_method(self, method):
13662  r"""set_method(SampleProvenance self, std::string method)"""
13663  return _IMP_core.SampleProvenance_set_method(self, method)
13664 
13665  def get_method(self):
13666  r"""get_method(SampleProvenance self) -> std::string"""
13667  return _IMP_core.SampleProvenance_get_method(self)
13668 
13669  def set_number_of_frames(self, frames):
13670  r"""set_number_of_frames(SampleProvenance self, int frames)"""
13671  return _IMP_core.SampleProvenance_set_number_of_frames(self, frames)
13672 
13673  def get_number_of_frames(self):
13674  r"""get_number_of_frames(SampleProvenance self) -> int"""
13675  return _IMP_core.SampleProvenance_get_number_of_frames(self)
13676 
13677  def set_number_of_iterations(self, iterations):
13678  r"""set_number_of_iterations(SampleProvenance self, int iterations)"""
13679  return _IMP_core.SampleProvenance_set_number_of_iterations(self, iterations)
13680 
13681  def get_number_of_iterations(self):
13682  r"""get_number_of_iterations(SampleProvenance self) -> int"""
13683  return _IMP_core.SampleProvenance_get_number_of_iterations(self)
13684 
13685  def set_number_of_replicas(self, replicas):
13686  r"""set_number_of_replicas(SampleProvenance self, int replicas)"""
13687  return _IMP_core.SampleProvenance_set_number_of_replicas(self, replicas)
13688 
13689  def get_number_of_replicas(self):
13690  r"""get_number_of_replicas(SampleProvenance self) -> int"""
13691  return _IMP_core.SampleProvenance_get_number_of_replicas(self)
13692 
13693  def __init__(self, *args):
13694  r"""
13695  __init__(SampleProvenance self) -> SampleProvenance
13696  __init__(SampleProvenance self, Model m, ParticleIndex id) -> SampleProvenance
13697  __init__(SampleProvenance self, _ParticleAdaptor d) -> SampleProvenance
13698  """
13699  _IMP_core.SampleProvenance_swiginit(self, _IMP_core.new_SampleProvenance(*args))
13700 
13701  @staticmethod
13702  def get_is_setup(*args):
13703  r"""
13704  get_is_setup(Model m, ParticleIndex pi) -> bool
13705  get_is_setup(_ParticleAdaptor p) -> bool
13706  """
13707  return _IMP_core.SampleProvenance_get_is_setup(*args)
13708 
13709  def show(self, *args):
13710  r"""show(SampleProvenance self, _ostream out=std::cout)"""
13711  return _IMP_core.SampleProvenance_show(self, *args)
13712 
13713  @staticmethod
13714  def setup_particle(*args):
13715  r"""
13716  setup_particle(Model m, ParticleIndex pi, std::string method, int frames, int iterations, int replicas) -> SampleProvenance
13717  setup_particle(_ParticleAdaptor pa, std::string method, int frames, int iterations, int replicas) -> SampleProvenance
13718  setup_particle(Model m, ParticleIndex pi, std::string method, int frames, int iterations) -> SampleProvenance
13719  setup_particle(_ParticleAdaptor pa, std::string method, int frames, int iterations) -> SampleProvenance
13720  setup_particle(Model m, ParticleIndex pi, SampleProvenance o) -> SampleProvenance
13721  setup_particle(_ParticleAdaptor pa, SampleProvenance o) -> SampleProvenance
13722  """
13723  return _IMP_core.SampleProvenance_setup_particle(*args)
13724 
13725  def add_attribute(self, *args):
13726  r"""
13727  add_attribute(SampleProvenance self, FloatKey k, IMP::Float v, bool opt)
13728  add_attribute(SampleProvenance self, FloatKey a0, IMP::Float a1)
13729  add_attribute(SampleProvenance self, IntKey a0, IMP::Int a1)
13730  add_attribute(SampleProvenance self, FloatsKey a0, IMP::Floats a1)
13731  add_attribute(SampleProvenance self, IntsKey a0, IMP::Ints a1)
13732  add_attribute(SampleProvenance self, StringKey a0, IMP::String a1)
13733  add_attribute(SampleProvenance self, ParticleIndexKey a0, Particle a1)
13734  add_attribute(SampleProvenance self, ObjectKey a0, Object a1)
13735  add_attribute(SampleProvenance self, SparseFloatKey a0, IMP::Float a1)
13736  add_attribute(SampleProvenance self, SparseIntKey a0, IMP::Int a1)
13737  add_attribute(SampleProvenance self, SparseStringKey a0, IMP::String a1)
13738  add_attribute(SampleProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13739  """
13740  return _IMP_core.SampleProvenance_add_attribute(self, *args)
13741 
13742  def get_value(self, *args):
13743  r"""
13744  get_value(SampleProvenance self, FloatKey a0) -> IMP::Float
13745  get_value(SampleProvenance self, IntKey a0) -> IMP::Int
13746  get_value(SampleProvenance self, FloatsKey a0) -> IMP::Floats
13747  get_value(SampleProvenance self, IntsKey a0) -> IMP::Ints
13748  get_value(SampleProvenance self, StringKey a0) -> IMP::String
13749  get_value(SampleProvenance self, ParticleIndexKey a0) -> Particle
13750  get_value(SampleProvenance self, ObjectKey a0) -> Object
13751  get_value(SampleProvenance self, SparseFloatKey a0) -> IMP::Float
13752  get_value(SampleProvenance self, SparseIntKey a0) -> IMP::Int
13753  get_value(SampleProvenance self, SparseStringKey a0) -> IMP::String
13754  get_value(SampleProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
13755  """
13756  return _IMP_core.SampleProvenance_get_value(self, *args)
13757 
13758  def set_value(self, *args):
13759  r"""
13760  set_value(SampleProvenance self, FloatKey a0, IMP::Float a1)
13761  set_value(SampleProvenance self, IntKey a0, IMP::Int a1)
13762  set_value(SampleProvenance self, FloatsKey a0, IMP::Floats a1)
13763  set_value(SampleProvenance self, IntsKey a0, IMP::Ints a1)
13764  set_value(SampleProvenance self, StringKey a0, IMP::String a1)
13765  set_value(SampleProvenance self, ParticleIndexKey a0, Particle a1)
13766  set_value(SampleProvenance self, ObjectKey a0, Object a1)
13767  set_value(SampleProvenance self, SparseFloatKey a0, IMP::Float a1)
13768  set_value(SampleProvenance self, SparseIntKey a0, IMP::Int a1)
13769  set_value(SampleProvenance self, SparseStringKey a0, IMP::String a1)
13770  set_value(SampleProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13771  """
13772  return _IMP_core.SampleProvenance_set_value(self, *args)
13773 
13774  def remove_attribute(self, *args):
13775  r"""
13776  remove_attribute(SampleProvenance self, FloatKey a0)
13777  remove_attribute(SampleProvenance self, IntKey a0)
13778  remove_attribute(SampleProvenance self, FloatsKey a0)
13779  remove_attribute(SampleProvenance self, IntsKey a0)
13780  remove_attribute(SampleProvenance self, StringKey a0)
13781  remove_attribute(SampleProvenance self, ParticleIndexKey a0)
13782  remove_attribute(SampleProvenance self, ObjectKey a0)
13783  remove_attribute(SampleProvenance self, SparseFloatKey a0)
13784  remove_attribute(SampleProvenance self, SparseIntKey a0)
13785  remove_attribute(SampleProvenance self, SparseStringKey a0)
13786  remove_attribute(SampleProvenance self, SparseParticleIndexKey a0)
13787  """
13788  return _IMP_core.SampleProvenance_remove_attribute(self, *args)
13789 
13790  def has_attribute(self, *args):
13791  r"""
13792  has_attribute(SampleProvenance self, FloatKey a0) -> bool
13793  has_attribute(SampleProvenance self, IntKey a0) -> bool
13794  has_attribute(SampleProvenance self, FloatsKey a0) -> bool
13795  has_attribute(SampleProvenance self, IntsKey a0) -> bool
13796  has_attribute(SampleProvenance self, StringKey a0) -> bool
13797  has_attribute(SampleProvenance self, ParticleIndexKey a0) -> bool
13798  has_attribute(SampleProvenance self, ObjectKey a0) -> bool
13799  has_attribute(SampleProvenance self, SparseFloatKey a0) -> bool
13800  has_attribute(SampleProvenance self, SparseIntKey a0) -> bool
13801  has_attribute(SampleProvenance self, SparseStringKey a0) -> bool
13802  has_attribute(SampleProvenance self, SparseParticleIndexKey a0) -> bool
13803  """
13804  return _IMP_core.SampleProvenance_has_attribute(self, *args)
13805 
13806  def get_derivative(self, a0):
13807  r"""get_derivative(SampleProvenance self, FloatKey a0) -> double"""
13808  return _IMP_core.SampleProvenance_get_derivative(self, a0)
13809 
13810  def get_name(self):
13811  r"""get_name(SampleProvenance self) -> std::string"""
13812  return _IMP_core.SampleProvenance_get_name(self)
13813 
13814  def clear_caches(self):
13815  r"""clear_caches(SampleProvenance self)"""
13816  return _IMP_core.SampleProvenance_clear_caches(self)
13817 
13818  def set_name(self, a0):
13819  r"""set_name(SampleProvenance self, std::string a0)"""
13820  return _IMP_core.SampleProvenance_set_name(self, a0)
13821 
13822  def set_check_level(self, a0):
13823  r"""set_check_level(SampleProvenance self, IMP::CheckLevel a0)"""
13824  return _IMP_core.SampleProvenance_set_check_level(self, a0)
13825 
13826  def add_to_derivative(self, a0, a1, a2):
13827  r"""add_to_derivative(SampleProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
13828  return _IMP_core.SampleProvenance_add_to_derivative(self, a0, a1, a2)
13829 
13830  def set_is_optimized(self, a0, a1):
13831  r"""set_is_optimized(SampleProvenance self, FloatKey a0, bool a1)"""
13832  return _IMP_core.SampleProvenance_set_is_optimized(self, a0, a1)
13833 
13834  def get_is_optimized(self, a0):
13835  r"""get_is_optimized(SampleProvenance self, FloatKey a0) -> bool"""
13836  return _IMP_core.SampleProvenance_get_is_optimized(self, a0)
13837 
13838  def get_check_level(self):
13839  r"""get_check_level(SampleProvenance self) -> IMP::CheckLevel"""
13840  return _IMP_core.SampleProvenance_get_check_level(self)
13841 
13842  def __eq__(self, *args):
13843  r"""
13844  __eq__(SampleProvenance self, SampleProvenance o) -> bool
13845  __eq__(SampleProvenance self, Particle d) -> bool
13846  """
13847  return _IMP_core.SampleProvenance___eq__(self, *args)
13848 
13849  def __ne__(self, *args):
13850  r"""
13851  __ne__(SampleProvenance self, SampleProvenance o) -> bool
13852  __ne__(SampleProvenance self, Particle d) -> bool
13853  """
13854  return _IMP_core.SampleProvenance___ne__(self, *args)
13855 
13856  def __le__(self, *args):
13857  r"""
13858  __le__(SampleProvenance self, SampleProvenance o) -> bool
13859  __le__(SampleProvenance self, Particle d) -> bool
13860  """
13861  return _IMP_core.SampleProvenance___le__(self, *args)
13862 
13863  def __lt__(self, *args):
13864  r"""
13865  __lt__(SampleProvenance self, SampleProvenance o) -> bool
13866  __lt__(SampleProvenance self, Particle d) -> bool
13867  """
13868  return _IMP_core.SampleProvenance___lt__(self, *args)
13869 
13870  def __ge__(self, *args):
13871  r"""
13872  __ge__(SampleProvenance self, SampleProvenance o) -> bool
13873  __ge__(SampleProvenance self, Particle d) -> bool
13874  """
13875  return _IMP_core.SampleProvenance___ge__(self, *args)
13876 
13877  def __gt__(self, *args):
13878  r"""
13879  __gt__(SampleProvenance self, SampleProvenance o) -> bool
13880  __gt__(SampleProvenance self, Particle d) -> bool
13881  """
13882  return _IMP_core.SampleProvenance___gt__(self, *args)
13883 
13884  def __hash__(self):
13885  r"""__hash__(SampleProvenance self) -> std::size_t"""
13886  return _IMP_core.SampleProvenance___hash__(self)
13887 
13888  def __str__(self):
13889  r"""__str__(SampleProvenance self) -> std::string"""
13890  return _IMP_core.SampleProvenance___str__(self)
13891 
13892  def __repr__(self):
13893  r"""__repr__(SampleProvenance self) -> std::string"""
13894  return _IMP_core.SampleProvenance___repr__(self)
13895 
13896  def _get_as_binary(self):
13897  r"""_get_as_binary(SampleProvenance self) -> PyObject *"""
13898  return _IMP_core.SampleProvenance__get_as_binary(self)
13899 
13900  def _set_from_binary(self, p):
13901  r"""_set_from_binary(SampleProvenance self, PyObject * p)"""
13902  return _IMP_core.SampleProvenance__set_from_binary(self, p)
13903 
13904  def __getstate__(self):
13905  p = self._get_as_binary()
13906  if len(self.__dict__) > 1:
13907  d = self.__dict__.copy()
13908  del d['this']
13909  p = (d, p)
13910  return p
13911 
13912  def __setstate__(self, p):
13913  if not hasattr(self, 'this'):
13914  self.__init__()
13915  if isinstance(p, tuple):
13916  d, p = p
13917  self.__dict__.update(d)
13918  return self._set_from_binary(p)
13919 
13920  __swig_destroy__ = _IMP_core.delete_SampleProvenance
13921 
13922 # Register SampleProvenance in _IMP_core:
13923 _IMP_core.SampleProvenance_swigregister(SampleProvenance)
13924 class CombineProvenance(Provenance):
13925  r"""Proxy of C++ IMP::core::CombineProvenance class."""
13926 
13927  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
13928 
13929  def set_number_of_frames(self, frames):
13930  r"""set_number_of_frames(CombineProvenance self, int frames)"""
13931  return _IMP_core.CombineProvenance_set_number_of_frames(self, frames)
13932 
13933  def get_number_of_frames(self):
13934  r"""get_number_of_frames(CombineProvenance self) -> int"""
13935  return _IMP_core.CombineProvenance_get_number_of_frames(self)
13936 
13937  def set_number_of_runs(self, runs):
13938  r"""set_number_of_runs(CombineProvenance self, int runs)"""
13939  return _IMP_core.CombineProvenance_set_number_of_runs(self, runs)
13940 
13941  def get_number_of_runs(self):
13942  r"""get_number_of_runs(CombineProvenance self) -> int"""
13943  return _IMP_core.CombineProvenance_get_number_of_runs(self)
13944 
13945  def __init__(self, *args):
13946  r"""
13947  __init__(CombineProvenance self) -> CombineProvenance
13948  __init__(CombineProvenance self, Model m, ParticleIndex id) -> CombineProvenance
13949  __init__(CombineProvenance self, _ParticleAdaptor d) -> CombineProvenance
13950  """
13951  _IMP_core.CombineProvenance_swiginit(self, _IMP_core.new_CombineProvenance(*args))
13952 
13953  @staticmethod
13954  def get_is_setup(*args):
13955  r"""
13956  get_is_setup(Model m, ParticleIndex pi) -> bool
13957  get_is_setup(_ParticleAdaptor p) -> bool
13958  """
13959  return _IMP_core.CombineProvenance_get_is_setup(*args)
13960 
13961  def show(self, *args):
13962  r"""show(CombineProvenance self, _ostream out=std::cout)"""
13963  return _IMP_core.CombineProvenance_show(self, *args)
13964 
13965  @staticmethod
13966  def setup_particle(*args):
13967  r"""
13968  setup_particle(Model m, ParticleIndex pi, int runs, int frames) -> CombineProvenance
13969  setup_particle(_ParticleAdaptor pa, int runs, int frames) -> CombineProvenance
13970  setup_particle(Model m, ParticleIndex pi, CombineProvenance o) -> CombineProvenance
13971  setup_particle(_ParticleAdaptor pa, CombineProvenance o) -> CombineProvenance
13972  """
13973  return _IMP_core.CombineProvenance_setup_particle(*args)
13974 
13975  def add_attribute(self, *args):
13976  r"""
13977  add_attribute(CombineProvenance self, FloatKey k, IMP::Float v, bool opt)
13978  add_attribute(CombineProvenance self, FloatKey a0, IMP::Float a1)
13979  add_attribute(CombineProvenance self, IntKey a0, IMP::Int a1)
13980  add_attribute(CombineProvenance self, FloatsKey a0, IMP::Floats a1)
13981  add_attribute(CombineProvenance self, IntsKey a0, IMP::Ints a1)
13982  add_attribute(CombineProvenance self, StringKey a0, IMP::String a1)
13983  add_attribute(CombineProvenance self, ParticleIndexKey a0, Particle a1)
13984  add_attribute(CombineProvenance self, ObjectKey a0, Object a1)
13985  add_attribute(CombineProvenance self, SparseFloatKey a0, IMP::Float a1)
13986  add_attribute(CombineProvenance self, SparseIntKey a0, IMP::Int a1)
13987  add_attribute(CombineProvenance self, SparseStringKey a0, IMP::String a1)
13988  add_attribute(CombineProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
13989  """
13990  return _IMP_core.CombineProvenance_add_attribute(self, *args)
13991 
13992  def get_value(self, *args):
13993  r"""
13994  get_value(CombineProvenance self, FloatKey a0) -> IMP::Float
13995  get_value(CombineProvenance self, IntKey a0) -> IMP::Int
13996  get_value(CombineProvenance self, FloatsKey a0) -> IMP::Floats
13997  get_value(CombineProvenance self, IntsKey a0) -> IMP::Ints
13998  get_value(CombineProvenance self, StringKey a0) -> IMP::String
13999  get_value(CombineProvenance self, ParticleIndexKey a0) -> Particle
14000  get_value(CombineProvenance self, ObjectKey a0) -> Object
14001  get_value(CombineProvenance self, SparseFloatKey a0) -> IMP::Float
14002  get_value(CombineProvenance self, SparseIntKey a0) -> IMP::Int
14003  get_value(CombineProvenance self, SparseStringKey a0) -> IMP::String
14004  get_value(CombineProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14005  """
14006  return _IMP_core.CombineProvenance_get_value(self, *args)
14007 
14008  def set_value(self, *args):
14009  r"""
14010  set_value(CombineProvenance self, FloatKey a0, IMP::Float a1)
14011  set_value(CombineProvenance self, IntKey a0, IMP::Int a1)
14012  set_value(CombineProvenance self, FloatsKey a0, IMP::Floats a1)
14013  set_value(CombineProvenance self, IntsKey a0, IMP::Ints a1)
14014  set_value(CombineProvenance self, StringKey a0, IMP::String a1)
14015  set_value(CombineProvenance self, ParticleIndexKey a0, Particle a1)
14016  set_value(CombineProvenance self, ObjectKey a0, Object a1)
14017  set_value(CombineProvenance self, SparseFloatKey a0, IMP::Float a1)
14018  set_value(CombineProvenance self, SparseIntKey a0, IMP::Int a1)
14019  set_value(CombineProvenance self, SparseStringKey a0, IMP::String a1)
14020  set_value(CombineProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14021  """
14022  return _IMP_core.CombineProvenance_set_value(self, *args)
14023 
14024  def remove_attribute(self, *args):
14025  r"""
14026  remove_attribute(CombineProvenance self, FloatKey a0)
14027  remove_attribute(CombineProvenance self, IntKey a0)
14028  remove_attribute(CombineProvenance self, FloatsKey a0)
14029  remove_attribute(CombineProvenance self, IntsKey a0)
14030  remove_attribute(CombineProvenance self, StringKey a0)
14031  remove_attribute(CombineProvenance self, ParticleIndexKey a0)
14032  remove_attribute(CombineProvenance self, ObjectKey a0)
14033  remove_attribute(CombineProvenance self, SparseFloatKey a0)
14034  remove_attribute(CombineProvenance self, SparseIntKey a0)
14035  remove_attribute(CombineProvenance self, SparseStringKey a0)
14036  remove_attribute(CombineProvenance self, SparseParticleIndexKey a0)
14037  """
14038  return _IMP_core.CombineProvenance_remove_attribute(self, *args)
14039 
14040  def has_attribute(self, *args):
14041  r"""
14042  has_attribute(CombineProvenance self, FloatKey a0) -> bool
14043  has_attribute(CombineProvenance self, IntKey a0) -> bool
14044  has_attribute(CombineProvenance self, FloatsKey a0) -> bool
14045  has_attribute(CombineProvenance self, IntsKey a0) -> bool
14046  has_attribute(CombineProvenance self, StringKey a0) -> bool
14047  has_attribute(CombineProvenance self, ParticleIndexKey a0) -> bool
14048  has_attribute(CombineProvenance self, ObjectKey a0) -> bool
14049  has_attribute(CombineProvenance self, SparseFloatKey a0) -> bool
14050  has_attribute(CombineProvenance self, SparseIntKey a0) -> bool
14051  has_attribute(CombineProvenance self, SparseStringKey a0) -> bool
14052  has_attribute(CombineProvenance self, SparseParticleIndexKey a0) -> bool
14053  """
14054  return _IMP_core.CombineProvenance_has_attribute(self, *args)
14055 
14056  def get_derivative(self, a0):
14057  r"""get_derivative(CombineProvenance self, FloatKey a0) -> double"""
14058  return _IMP_core.CombineProvenance_get_derivative(self, a0)
14059 
14060  def get_name(self):
14061  r"""get_name(CombineProvenance self) -> std::string"""
14062  return _IMP_core.CombineProvenance_get_name(self)
14063 
14064  def clear_caches(self):
14065  r"""clear_caches(CombineProvenance self)"""
14066  return _IMP_core.CombineProvenance_clear_caches(self)
14067 
14068  def set_name(self, a0):
14069  r"""set_name(CombineProvenance self, std::string a0)"""
14070  return _IMP_core.CombineProvenance_set_name(self, a0)
14071 
14072  def set_check_level(self, a0):
14073  r"""set_check_level(CombineProvenance self, IMP::CheckLevel a0)"""
14074  return _IMP_core.CombineProvenance_set_check_level(self, a0)
14075 
14076  def add_to_derivative(self, a0, a1, a2):
14077  r"""add_to_derivative(CombineProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14078  return _IMP_core.CombineProvenance_add_to_derivative(self, a0, a1, a2)
14079 
14080  def set_is_optimized(self, a0, a1):
14081  r"""set_is_optimized(CombineProvenance self, FloatKey a0, bool a1)"""
14082  return _IMP_core.CombineProvenance_set_is_optimized(self, a0, a1)
14083 
14084  def get_is_optimized(self, a0):
14085  r"""get_is_optimized(CombineProvenance self, FloatKey a0) -> bool"""
14086  return _IMP_core.CombineProvenance_get_is_optimized(self, a0)
14087 
14088  def get_check_level(self):
14089  r"""get_check_level(CombineProvenance self) -> IMP::CheckLevel"""
14090  return _IMP_core.CombineProvenance_get_check_level(self)
14091 
14092  def __eq__(self, *args):
14093  r"""
14094  __eq__(CombineProvenance self, CombineProvenance o) -> bool
14095  __eq__(CombineProvenance self, Particle d) -> bool
14096  """
14097  return _IMP_core.CombineProvenance___eq__(self, *args)
14098 
14099  def __ne__(self, *args):
14100  r"""
14101  __ne__(CombineProvenance self, CombineProvenance o) -> bool
14102  __ne__(CombineProvenance self, Particle d) -> bool
14103  """
14104  return _IMP_core.CombineProvenance___ne__(self, *args)
14105 
14106  def __le__(self, *args):
14107  r"""
14108  __le__(CombineProvenance self, CombineProvenance o) -> bool
14109  __le__(CombineProvenance self, Particle d) -> bool
14110  """
14111  return _IMP_core.CombineProvenance___le__(self, *args)
14112 
14113  def __lt__(self, *args):
14114  r"""
14115  __lt__(CombineProvenance self, CombineProvenance o) -> bool
14116  __lt__(CombineProvenance self, Particle d) -> bool
14117  """
14118  return _IMP_core.CombineProvenance___lt__(self, *args)
14119 
14120  def __ge__(self, *args):
14121  r"""
14122  __ge__(CombineProvenance self, CombineProvenance o) -> bool
14123  __ge__(CombineProvenance self, Particle d) -> bool
14124  """
14125  return _IMP_core.CombineProvenance___ge__(self, *args)
14126 
14127  def __gt__(self, *args):
14128  r"""
14129  __gt__(CombineProvenance self, CombineProvenance o) -> bool
14130  __gt__(CombineProvenance self, Particle d) -> bool
14131  """
14132  return _IMP_core.CombineProvenance___gt__(self, *args)
14133 
14134  def __hash__(self):
14135  r"""__hash__(CombineProvenance self) -> std::size_t"""
14136  return _IMP_core.CombineProvenance___hash__(self)
14137 
14138  def __str__(self):
14139  r"""__str__(CombineProvenance self) -> std::string"""
14140  return _IMP_core.CombineProvenance___str__(self)
14141 
14142  def __repr__(self):
14143  r"""__repr__(CombineProvenance self) -> std::string"""
14144  return _IMP_core.CombineProvenance___repr__(self)
14145 
14146  def _get_as_binary(self):
14147  r"""_get_as_binary(CombineProvenance self) -> PyObject *"""
14148  return _IMP_core.CombineProvenance__get_as_binary(self)
14149 
14150  def _set_from_binary(self, p):
14151  r"""_set_from_binary(CombineProvenance self, PyObject * p)"""
14152  return _IMP_core.CombineProvenance__set_from_binary(self, p)
14153 
14154  def __getstate__(self):
14155  p = self._get_as_binary()
14156  if len(self.__dict__) > 1:
14157  d = self.__dict__.copy()
14158  del d['this']
14159  p = (d, p)
14160  return p
14161 
14162  def __setstate__(self, p):
14163  if not hasattr(self, 'this'):
14164  self.__init__()
14165  if isinstance(p, tuple):
14166  d, p = p
14167  self.__dict__.update(d)
14168  return self._set_from_binary(p)
14169 
14170  __swig_destroy__ = _IMP_core.delete_CombineProvenance
14171 
14172 # Register CombineProvenance in _IMP_core:
14173 _IMP_core.CombineProvenance_swigregister(CombineProvenance)
14174 class FilterProvenance(Provenance):
14175  r"""Proxy of C++ IMP::core::FilterProvenance class."""
14176 
14177  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14178 
14179  def set_method(self, method):
14180  r"""set_method(FilterProvenance self, std::string method)"""
14181  return _IMP_core.FilterProvenance_set_method(self, method)
14182 
14183  def get_method(self):
14184  r"""get_method(FilterProvenance self) -> std::string"""
14185  return _IMP_core.FilterProvenance_get_method(self)
14186 
14187  def set_number_of_frames(self, frames):
14188  r"""set_number_of_frames(FilterProvenance self, int frames)"""
14189  return _IMP_core.FilterProvenance_set_number_of_frames(self, frames)
14190 
14191  def get_number_of_frames(self):
14192  r"""get_number_of_frames(FilterProvenance self) -> int"""
14193  return _IMP_core.FilterProvenance_get_number_of_frames(self)
14194 
14195  def set_threshold(self, threshold):
14196  r"""set_threshold(FilterProvenance self, double threshold)"""
14197  return _IMP_core.FilterProvenance_set_threshold(self, threshold)
14198 
14199  def get_threshold(self):
14200  r"""get_threshold(FilterProvenance self) -> double"""
14201  return _IMP_core.FilterProvenance_get_threshold(self)
14202 
14203  def __init__(self, *args):
14204  r"""
14205  __init__(FilterProvenance self) -> FilterProvenance
14206  __init__(FilterProvenance self, Model m, ParticleIndex id) -> FilterProvenance
14207  __init__(FilterProvenance self, _ParticleAdaptor d) -> FilterProvenance
14208  """
14209  _IMP_core.FilterProvenance_swiginit(self, _IMP_core.new_FilterProvenance(*args))
14210 
14211  @staticmethod
14212  def get_is_setup(*args):
14213  r"""
14214  get_is_setup(Model m, ParticleIndex pi) -> bool
14215  get_is_setup(_ParticleAdaptor p) -> bool
14216  """
14217  return _IMP_core.FilterProvenance_get_is_setup(*args)
14218 
14219  def show(self, *args):
14220  r"""show(FilterProvenance self, _ostream out=std::cout)"""
14221  return _IMP_core.FilterProvenance_show(self, *args)
14222 
14223  @staticmethod
14224  def setup_particle(*args):
14225  r"""
14226  setup_particle(Model m, ParticleIndex pi, std::string method, double threshold, int frames) -> FilterProvenance
14227  setup_particle(_ParticleAdaptor pa, std::string method, double threshold, int frames) -> FilterProvenance
14228  setup_particle(Model m, ParticleIndex pi, FilterProvenance o) -> FilterProvenance
14229  setup_particle(_ParticleAdaptor pa, FilterProvenance o) -> FilterProvenance
14230  """
14231  return _IMP_core.FilterProvenance_setup_particle(*args)
14232 
14233  def add_attribute(self, *args):
14234  r"""
14235  add_attribute(FilterProvenance self, FloatKey k, IMP::Float v, bool opt)
14236  add_attribute(FilterProvenance self, FloatKey a0, IMP::Float a1)
14237  add_attribute(FilterProvenance self, IntKey a0, IMP::Int a1)
14238  add_attribute(FilterProvenance self, FloatsKey a0, IMP::Floats a1)
14239  add_attribute(FilterProvenance self, IntsKey a0, IMP::Ints a1)
14240  add_attribute(FilterProvenance self, StringKey a0, IMP::String a1)
14241  add_attribute(FilterProvenance self, ParticleIndexKey a0, Particle a1)
14242  add_attribute(FilterProvenance self, ObjectKey a0, Object a1)
14243  add_attribute(FilterProvenance self, SparseFloatKey a0, IMP::Float a1)
14244  add_attribute(FilterProvenance self, SparseIntKey a0, IMP::Int a1)
14245  add_attribute(FilterProvenance self, SparseStringKey a0, IMP::String a1)
14246  add_attribute(FilterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14247  """
14248  return _IMP_core.FilterProvenance_add_attribute(self, *args)
14249 
14250  def get_value(self, *args):
14251  r"""
14252  get_value(FilterProvenance self, FloatKey a0) -> IMP::Float
14253  get_value(FilterProvenance self, IntKey a0) -> IMP::Int
14254  get_value(FilterProvenance self, FloatsKey a0) -> IMP::Floats
14255  get_value(FilterProvenance self, IntsKey a0) -> IMP::Ints
14256  get_value(FilterProvenance self, StringKey a0) -> IMP::String
14257  get_value(FilterProvenance self, ParticleIndexKey a0) -> Particle
14258  get_value(FilterProvenance self, ObjectKey a0) -> Object
14259  get_value(FilterProvenance self, SparseFloatKey a0) -> IMP::Float
14260  get_value(FilterProvenance self, SparseIntKey a0) -> IMP::Int
14261  get_value(FilterProvenance self, SparseStringKey a0) -> IMP::String
14262  get_value(FilterProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14263  """
14264  return _IMP_core.FilterProvenance_get_value(self, *args)
14265 
14266  def set_value(self, *args):
14267  r"""
14268  set_value(FilterProvenance self, FloatKey a0, IMP::Float a1)
14269  set_value(FilterProvenance self, IntKey a0, IMP::Int a1)
14270  set_value(FilterProvenance self, FloatsKey a0, IMP::Floats a1)
14271  set_value(FilterProvenance self, IntsKey a0, IMP::Ints a1)
14272  set_value(FilterProvenance self, StringKey a0, IMP::String a1)
14273  set_value(FilterProvenance self, ParticleIndexKey a0, Particle a1)
14274  set_value(FilterProvenance self, ObjectKey a0, Object a1)
14275  set_value(FilterProvenance self, SparseFloatKey a0, IMP::Float a1)
14276  set_value(FilterProvenance self, SparseIntKey a0, IMP::Int a1)
14277  set_value(FilterProvenance self, SparseStringKey a0, IMP::String a1)
14278  set_value(FilterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14279  """
14280  return _IMP_core.FilterProvenance_set_value(self, *args)
14281 
14282  def remove_attribute(self, *args):
14283  r"""
14284  remove_attribute(FilterProvenance self, FloatKey a0)
14285  remove_attribute(FilterProvenance self, IntKey a0)
14286  remove_attribute(FilterProvenance self, FloatsKey a0)
14287  remove_attribute(FilterProvenance self, IntsKey a0)
14288  remove_attribute(FilterProvenance self, StringKey a0)
14289  remove_attribute(FilterProvenance self, ParticleIndexKey a0)
14290  remove_attribute(FilterProvenance self, ObjectKey a0)
14291  remove_attribute(FilterProvenance self, SparseFloatKey a0)
14292  remove_attribute(FilterProvenance self, SparseIntKey a0)
14293  remove_attribute(FilterProvenance self, SparseStringKey a0)
14294  remove_attribute(FilterProvenance self, SparseParticleIndexKey a0)
14295  """
14296  return _IMP_core.FilterProvenance_remove_attribute(self, *args)
14297 
14298  def has_attribute(self, *args):
14299  r"""
14300  has_attribute(FilterProvenance self, FloatKey a0) -> bool
14301  has_attribute(FilterProvenance self, IntKey a0) -> bool
14302  has_attribute(FilterProvenance self, FloatsKey a0) -> bool
14303  has_attribute(FilterProvenance self, IntsKey a0) -> bool
14304  has_attribute(FilterProvenance self, StringKey a0) -> bool
14305  has_attribute(FilterProvenance self, ParticleIndexKey a0) -> bool
14306  has_attribute(FilterProvenance self, ObjectKey a0) -> bool
14307  has_attribute(FilterProvenance self, SparseFloatKey a0) -> bool
14308  has_attribute(FilterProvenance self, SparseIntKey a0) -> bool
14309  has_attribute(FilterProvenance self, SparseStringKey a0) -> bool
14310  has_attribute(FilterProvenance self, SparseParticleIndexKey a0) -> bool
14311  """
14312  return _IMP_core.FilterProvenance_has_attribute(self, *args)
14313 
14314  def get_derivative(self, a0):
14315  r"""get_derivative(FilterProvenance self, FloatKey a0) -> double"""
14316  return _IMP_core.FilterProvenance_get_derivative(self, a0)
14317 
14318  def get_name(self):
14319  r"""get_name(FilterProvenance self) -> std::string"""
14320  return _IMP_core.FilterProvenance_get_name(self)
14321 
14322  def clear_caches(self):
14323  r"""clear_caches(FilterProvenance self)"""
14324  return _IMP_core.FilterProvenance_clear_caches(self)
14325 
14326  def set_name(self, a0):
14327  r"""set_name(FilterProvenance self, std::string a0)"""
14328  return _IMP_core.FilterProvenance_set_name(self, a0)
14329 
14330  def set_check_level(self, a0):
14331  r"""set_check_level(FilterProvenance self, IMP::CheckLevel a0)"""
14332  return _IMP_core.FilterProvenance_set_check_level(self, a0)
14333 
14334  def add_to_derivative(self, a0, a1, a2):
14335  r"""add_to_derivative(FilterProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14336  return _IMP_core.FilterProvenance_add_to_derivative(self, a0, a1, a2)
14337 
14338  def set_is_optimized(self, a0, a1):
14339  r"""set_is_optimized(FilterProvenance self, FloatKey a0, bool a1)"""
14340  return _IMP_core.FilterProvenance_set_is_optimized(self, a0, a1)
14341 
14342  def get_is_optimized(self, a0):
14343  r"""get_is_optimized(FilterProvenance self, FloatKey a0) -> bool"""
14344  return _IMP_core.FilterProvenance_get_is_optimized(self, a0)
14345 
14346  def get_check_level(self):
14347  r"""get_check_level(FilterProvenance self) -> IMP::CheckLevel"""
14348  return _IMP_core.FilterProvenance_get_check_level(self)
14349 
14350  def __eq__(self, *args):
14351  r"""
14352  __eq__(FilterProvenance self, FilterProvenance o) -> bool
14353  __eq__(FilterProvenance self, Particle d) -> bool
14354  """
14355  return _IMP_core.FilterProvenance___eq__(self, *args)
14356 
14357  def __ne__(self, *args):
14358  r"""
14359  __ne__(FilterProvenance self, FilterProvenance o) -> bool
14360  __ne__(FilterProvenance self, Particle d) -> bool
14361  """
14362  return _IMP_core.FilterProvenance___ne__(self, *args)
14363 
14364  def __le__(self, *args):
14365  r"""
14366  __le__(FilterProvenance self, FilterProvenance o) -> bool
14367  __le__(FilterProvenance self, Particle d) -> bool
14368  """
14369  return _IMP_core.FilterProvenance___le__(self, *args)
14370 
14371  def __lt__(self, *args):
14372  r"""
14373  __lt__(FilterProvenance self, FilterProvenance o) -> bool
14374  __lt__(FilterProvenance self, Particle d) -> bool
14375  """
14376  return _IMP_core.FilterProvenance___lt__(self, *args)
14377 
14378  def __ge__(self, *args):
14379  r"""
14380  __ge__(FilterProvenance self, FilterProvenance o) -> bool
14381  __ge__(FilterProvenance self, Particle d) -> bool
14382  """
14383  return _IMP_core.FilterProvenance___ge__(self, *args)
14384 
14385  def __gt__(self, *args):
14386  r"""
14387  __gt__(FilterProvenance self, FilterProvenance o) -> bool
14388  __gt__(FilterProvenance self, Particle d) -> bool
14389  """
14390  return _IMP_core.FilterProvenance___gt__(self, *args)
14391 
14392  def __hash__(self):
14393  r"""__hash__(FilterProvenance self) -> std::size_t"""
14394  return _IMP_core.FilterProvenance___hash__(self)
14395 
14396  def __str__(self):
14397  r"""__str__(FilterProvenance self) -> std::string"""
14398  return _IMP_core.FilterProvenance___str__(self)
14399 
14400  def __repr__(self):
14401  r"""__repr__(FilterProvenance self) -> std::string"""
14402  return _IMP_core.FilterProvenance___repr__(self)
14403 
14404  def _get_as_binary(self):
14405  r"""_get_as_binary(FilterProvenance self) -> PyObject *"""
14406  return _IMP_core.FilterProvenance__get_as_binary(self)
14407 
14408  def _set_from_binary(self, p):
14409  r"""_set_from_binary(FilterProvenance self, PyObject * p)"""
14410  return _IMP_core.FilterProvenance__set_from_binary(self, p)
14411 
14412  def __getstate__(self):
14413  p = self._get_as_binary()
14414  if len(self.__dict__) > 1:
14415  d = self.__dict__.copy()
14416  del d['this']
14417  p = (d, p)
14418  return p
14419 
14420  def __setstate__(self, p):
14421  if not hasattr(self, 'this'):
14422  self.__init__()
14423  if isinstance(p, tuple):
14424  d, p = p
14425  self.__dict__.update(d)
14426  return self._set_from_binary(p)
14427 
14428  __swig_destroy__ = _IMP_core.delete_FilterProvenance
14429 
14430 # Register FilterProvenance in _IMP_core:
14431 _IMP_core.FilterProvenance_swigregister(FilterProvenance)
14432 class ClusterProvenance(Provenance):
14433  r"""Proxy of C++ IMP::core::ClusterProvenance class."""
14434 
14435  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14436 
14437  def set_number_of_members(self, members):
14438  r"""set_number_of_members(ClusterProvenance self, int members)"""
14439  return _IMP_core.ClusterProvenance_set_number_of_members(self, members)
14440 
14441  def get_number_of_members(self):
14442  r"""get_number_of_members(ClusterProvenance self) -> int"""
14443  return _IMP_core.ClusterProvenance_get_number_of_members(self)
14444 
14445  def set_precision(self, precision):
14446  r"""set_precision(ClusterProvenance self, double precision)"""
14447  return _IMP_core.ClusterProvenance_set_precision(self, precision)
14448 
14449  def get_precision(self):
14450  r"""get_precision(ClusterProvenance self) -> double"""
14451  return _IMP_core.ClusterProvenance_get_precision(self)
14452 
14453  def set_density(self, density):
14454  r"""set_density(ClusterProvenance self, std::string density)"""
14455  return _IMP_core.ClusterProvenance_set_density(self, density)
14456 
14457  def get_density(self):
14458  r"""get_density(ClusterProvenance self) -> std::string"""
14459  return _IMP_core.ClusterProvenance_get_density(self)
14460 
14461  def __init__(self, *args):
14462  r"""
14463  __init__(ClusterProvenance self) -> ClusterProvenance
14464  __init__(ClusterProvenance self, Model m, ParticleIndex id) -> ClusterProvenance
14465  __init__(ClusterProvenance self, _ParticleAdaptor d) -> ClusterProvenance
14466  """
14467  _IMP_core.ClusterProvenance_swiginit(self, _IMP_core.new_ClusterProvenance(*args))
14468 
14469  @staticmethod
14470  def get_is_setup(*args):
14471  r"""
14472  get_is_setup(Model m, ParticleIndex pi) -> bool
14473  get_is_setup(_ParticleAdaptor p) -> bool
14474  """
14475  return _IMP_core.ClusterProvenance_get_is_setup(*args)
14476 
14477  def show(self, *args):
14478  r"""show(ClusterProvenance self, _ostream out=std::cout)"""
14479  return _IMP_core.ClusterProvenance_show(self, *args)
14480 
14481  @staticmethod
14482  def setup_particle(*args):
14483  r"""
14484  setup_particle(Model m, ParticleIndex pi, int members) -> ClusterProvenance
14485  setup_particle(_ParticleAdaptor pa, int members) -> ClusterProvenance
14486  setup_particle(Model m, ParticleIndex pi, int members, double precision) -> ClusterProvenance
14487  setup_particle(_ParticleAdaptor pa, int members, double precision) -> ClusterProvenance
14488  setup_particle(Model m, ParticleIndex pi, int members, double precision, std::string density) -> ClusterProvenance
14489  setup_particle(_ParticleAdaptor pa, int members, double precision, std::string density) -> ClusterProvenance
14490  setup_particle(Model m, ParticleIndex pi, ClusterProvenance o) -> ClusterProvenance
14491  setup_particle(_ParticleAdaptor pa, ClusterProvenance o) -> ClusterProvenance
14492  """
14493  return _IMP_core.ClusterProvenance_setup_particle(*args)
14494 
14495  def add_attribute(self, *args):
14496  r"""
14497  add_attribute(ClusterProvenance self, FloatKey k, IMP::Float v, bool opt)
14498  add_attribute(ClusterProvenance self, FloatKey a0, IMP::Float a1)
14499  add_attribute(ClusterProvenance self, IntKey a0, IMP::Int a1)
14500  add_attribute(ClusterProvenance self, FloatsKey a0, IMP::Floats a1)
14501  add_attribute(ClusterProvenance self, IntsKey a0, IMP::Ints a1)
14502  add_attribute(ClusterProvenance self, StringKey a0, IMP::String a1)
14503  add_attribute(ClusterProvenance self, ParticleIndexKey a0, Particle a1)
14504  add_attribute(ClusterProvenance self, ObjectKey a0, Object a1)
14505  add_attribute(ClusterProvenance self, SparseFloatKey a0, IMP::Float a1)
14506  add_attribute(ClusterProvenance self, SparseIntKey a0, IMP::Int a1)
14507  add_attribute(ClusterProvenance self, SparseStringKey a0, IMP::String a1)
14508  add_attribute(ClusterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14509  """
14510  return _IMP_core.ClusterProvenance_add_attribute(self, *args)
14511 
14512  def get_value(self, *args):
14513  r"""
14514  get_value(ClusterProvenance self, FloatKey a0) -> IMP::Float
14515  get_value(ClusterProvenance self, IntKey a0) -> IMP::Int
14516  get_value(ClusterProvenance self, FloatsKey a0) -> IMP::Floats
14517  get_value(ClusterProvenance self, IntsKey a0) -> IMP::Ints
14518  get_value(ClusterProvenance self, StringKey a0) -> IMP::String
14519  get_value(ClusterProvenance self, ParticleIndexKey a0) -> Particle
14520  get_value(ClusterProvenance self, ObjectKey a0) -> Object
14521  get_value(ClusterProvenance self, SparseFloatKey a0) -> IMP::Float
14522  get_value(ClusterProvenance self, SparseIntKey a0) -> IMP::Int
14523  get_value(ClusterProvenance self, SparseStringKey a0) -> IMP::String
14524  get_value(ClusterProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14525  """
14526  return _IMP_core.ClusterProvenance_get_value(self, *args)
14527 
14528  def set_value(self, *args):
14529  r"""
14530  set_value(ClusterProvenance self, FloatKey a0, IMP::Float a1)
14531  set_value(ClusterProvenance self, IntKey a0, IMP::Int a1)
14532  set_value(ClusterProvenance self, FloatsKey a0, IMP::Floats a1)
14533  set_value(ClusterProvenance self, IntsKey a0, IMP::Ints a1)
14534  set_value(ClusterProvenance self, StringKey a0, IMP::String a1)
14535  set_value(ClusterProvenance self, ParticleIndexKey a0, Particle a1)
14536  set_value(ClusterProvenance self, ObjectKey a0, Object a1)
14537  set_value(ClusterProvenance self, SparseFloatKey a0, IMP::Float a1)
14538  set_value(ClusterProvenance self, SparseIntKey a0, IMP::Int a1)
14539  set_value(ClusterProvenance self, SparseStringKey a0, IMP::String a1)
14540  set_value(ClusterProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14541  """
14542  return _IMP_core.ClusterProvenance_set_value(self, *args)
14543 
14544  def remove_attribute(self, *args):
14545  r"""
14546  remove_attribute(ClusterProvenance self, FloatKey a0)
14547  remove_attribute(ClusterProvenance self, IntKey a0)
14548  remove_attribute(ClusterProvenance self, FloatsKey a0)
14549  remove_attribute(ClusterProvenance self, IntsKey a0)
14550  remove_attribute(ClusterProvenance self, StringKey a0)
14551  remove_attribute(ClusterProvenance self, ParticleIndexKey a0)
14552  remove_attribute(ClusterProvenance self, ObjectKey a0)
14553  remove_attribute(ClusterProvenance self, SparseFloatKey a0)
14554  remove_attribute(ClusterProvenance self, SparseIntKey a0)
14555  remove_attribute(ClusterProvenance self, SparseStringKey a0)
14556  remove_attribute(ClusterProvenance self, SparseParticleIndexKey a0)
14557  """
14558  return _IMP_core.ClusterProvenance_remove_attribute(self, *args)
14559 
14560  def has_attribute(self, *args):
14561  r"""
14562  has_attribute(ClusterProvenance self, FloatKey a0) -> bool
14563  has_attribute(ClusterProvenance self, IntKey a0) -> bool
14564  has_attribute(ClusterProvenance self, FloatsKey a0) -> bool
14565  has_attribute(ClusterProvenance self, IntsKey a0) -> bool
14566  has_attribute(ClusterProvenance self, StringKey a0) -> bool
14567  has_attribute(ClusterProvenance self, ParticleIndexKey a0) -> bool
14568  has_attribute(ClusterProvenance self, ObjectKey a0) -> bool
14569  has_attribute(ClusterProvenance self, SparseFloatKey a0) -> bool
14570  has_attribute(ClusterProvenance self, SparseIntKey a0) -> bool
14571  has_attribute(ClusterProvenance self, SparseStringKey a0) -> bool
14572  has_attribute(ClusterProvenance self, SparseParticleIndexKey a0) -> bool
14573  """
14574  return _IMP_core.ClusterProvenance_has_attribute(self, *args)
14575 
14576  def get_derivative(self, a0):
14577  r"""get_derivative(ClusterProvenance self, FloatKey a0) -> double"""
14578  return _IMP_core.ClusterProvenance_get_derivative(self, a0)
14579 
14580  def get_name(self):
14581  r"""get_name(ClusterProvenance self) -> std::string"""
14582  return _IMP_core.ClusterProvenance_get_name(self)
14583 
14584  def clear_caches(self):
14585  r"""clear_caches(ClusterProvenance self)"""
14586  return _IMP_core.ClusterProvenance_clear_caches(self)
14587 
14588  def set_name(self, a0):
14589  r"""set_name(ClusterProvenance self, std::string a0)"""
14590  return _IMP_core.ClusterProvenance_set_name(self, a0)
14591 
14592  def set_check_level(self, a0):
14593  r"""set_check_level(ClusterProvenance self, IMP::CheckLevel a0)"""
14594  return _IMP_core.ClusterProvenance_set_check_level(self, a0)
14595 
14596  def add_to_derivative(self, a0, a1, a2):
14597  r"""add_to_derivative(ClusterProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14598  return _IMP_core.ClusterProvenance_add_to_derivative(self, a0, a1, a2)
14599 
14600  def set_is_optimized(self, a0, a1):
14601  r"""set_is_optimized(ClusterProvenance self, FloatKey a0, bool a1)"""
14602  return _IMP_core.ClusterProvenance_set_is_optimized(self, a0, a1)
14603 
14604  def get_is_optimized(self, a0):
14605  r"""get_is_optimized(ClusterProvenance self, FloatKey a0) -> bool"""
14606  return _IMP_core.ClusterProvenance_get_is_optimized(self, a0)
14607 
14608  def get_check_level(self):
14609  r"""get_check_level(ClusterProvenance self) -> IMP::CheckLevel"""
14610  return _IMP_core.ClusterProvenance_get_check_level(self)
14611 
14612  def __eq__(self, *args):
14613  r"""
14614  __eq__(ClusterProvenance self, ClusterProvenance o) -> bool
14615  __eq__(ClusterProvenance self, Particle d) -> bool
14616  """
14617  return _IMP_core.ClusterProvenance___eq__(self, *args)
14618 
14619  def __ne__(self, *args):
14620  r"""
14621  __ne__(ClusterProvenance self, ClusterProvenance o) -> bool
14622  __ne__(ClusterProvenance self, Particle d) -> bool
14623  """
14624  return _IMP_core.ClusterProvenance___ne__(self, *args)
14625 
14626  def __le__(self, *args):
14627  r"""
14628  __le__(ClusterProvenance self, ClusterProvenance o) -> bool
14629  __le__(ClusterProvenance self, Particle d) -> bool
14630  """
14631  return _IMP_core.ClusterProvenance___le__(self, *args)
14632 
14633  def __lt__(self, *args):
14634  r"""
14635  __lt__(ClusterProvenance self, ClusterProvenance o) -> bool
14636  __lt__(ClusterProvenance self, Particle d) -> bool
14637  """
14638  return _IMP_core.ClusterProvenance___lt__(self, *args)
14639 
14640  def __ge__(self, *args):
14641  r"""
14642  __ge__(ClusterProvenance self, ClusterProvenance o) -> bool
14643  __ge__(ClusterProvenance self, Particle d) -> bool
14644  """
14645  return _IMP_core.ClusterProvenance___ge__(self, *args)
14646 
14647  def __gt__(self, *args):
14648  r"""
14649  __gt__(ClusterProvenance self, ClusterProvenance o) -> bool
14650  __gt__(ClusterProvenance self, Particle d) -> bool
14651  """
14652  return _IMP_core.ClusterProvenance___gt__(self, *args)
14653 
14654  def __hash__(self):
14655  r"""__hash__(ClusterProvenance self) -> std::size_t"""
14656  return _IMP_core.ClusterProvenance___hash__(self)
14657 
14658  def __str__(self):
14659  r"""__str__(ClusterProvenance self) -> std::string"""
14660  return _IMP_core.ClusterProvenance___str__(self)
14661 
14662  def __repr__(self):
14663  r"""__repr__(ClusterProvenance self) -> std::string"""
14664  return _IMP_core.ClusterProvenance___repr__(self)
14665 
14666  def _get_as_binary(self):
14667  r"""_get_as_binary(ClusterProvenance self) -> PyObject *"""
14668  return _IMP_core.ClusterProvenance__get_as_binary(self)
14669 
14670  def _set_from_binary(self, p):
14671  r"""_set_from_binary(ClusterProvenance self, PyObject * p)"""
14672  return _IMP_core.ClusterProvenance__set_from_binary(self, p)
14673 
14674  def __getstate__(self):
14675  p = self._get_as_binary()
14676  if len(self.__dict__) > 1:
14677  d = self.__dict__.copy()
14678  del d['this']
14679  p = (d, p)
14680  return p
14681 
14682  def __setstate__(self, p):
14683  if not hasattr(self, 'this'):
14684  self.__init__()
14685  if isinstance(p, tuple):
14686  d, p = p
14687  self.__dict__.update(d)
14688  return self._set_from_binary(p)
14689 
14690  __swig_destroy__ = _IMP_core.delete_ClusterProvenance
14691 
14692 # Register ClusterProvenance in _IMP_core:
14693 _IMP_core.ClusterProvenance_swigregister(ClusterProvenance)
14694 class ScriptProvenance(Provenance):
14695  r"""Proxy of C++ IMP::core::ScriptProvenance class."""
14696 
14697  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14698 
14699  def set_filename(self, filename):
14700  r"""set_filename(ScriptProvenance self, std::string filename)"""
14701  return _IMP_core.ScriptProvenance_set_filename(self, filename)
14702 
14703  def get_filename(self):
14704  r"""get_filename(ScriptProvenance self) -> std::string"""
14705  return _IMP_core.ScriptProvenance_get_filename(self)
14706 
14707  def __init__(self, *args):
14708  r"""
14709  __init__(ScriptProvenance self) -> ScriptProvenance
14710  __init__(ScriptProvenance self, Model m, ParticleIndex id) -> ScriptProvenance
14711  __init__(ScriptProvenance self, _ParticleAdaptor d) -> ScriptProvenance
14712  """
14713  _IMP_core.ScriptProvenance_swiginit(self, _IMP_core.new_ScriptProvenance(*args))
14714 
14715  @staticmethod
14716  def get_is_setup(*args):
14717  r"""
14718  get_is_setup(Model m, ParticleIndex pi) -> bool
14719  get_is_setup(_ParticleAdaptor p) -> bool
14720  """
14721  return _IMP_core.ScriptProvenance_get_is_setup(*args)
14722 
14723  def show(self, *args):
14724  r"""show(ScriptProvenance self, _ostream out=std::cout)"""
14725  return _IMP_core.ScriptProvenance_show(self, *args)
14726 
14727  @staticmethod
14728  def setup_particle(*args):
14729  r"""
14730  setup_particle(Model m, ParticleIndex pi, std::string filename) -> ScriptProvenance
14731  setup_particle(_ParticleAdaptor pa, std::string filename) -> ScriptProvenance
14732  setup_particle(Model m, ParticleIndex pi, ScriptProvenance o) -> ScriptProvenance
14733  setup_particle(_ParticleAdaptor pa, ScriptProvenance o) -> ScriptProvenance
14734  """
14735  return _IMP_core.ScriptProvenance_setup_particle(*args)
14736 
14737  def add_attribute(self, *args):
14738  r"""
14739  add_attribute(ScriptProvenance self, FloatKey k, IMP::Float v, bool opt)
14740  add_attribute(ScriptProvenance self, FloatKey a0, IMP::Float a1)
14741  add_attribute(ScriptProvenance self, IntKey a0, IMP::Int a1)
14742  add_attribute(ScriptProvenance self, FloatsKey a0, IMP::Floats a1)
14743  add_attribute(ScriptProvenance self, IntsKey a0, IMP::Ints a1)
14744  add_attribute(ScriptProvenance self, StringKey a0, IMP::String a1)
14745  add_attribute(ScriptProvenance self, ParticleIndexKey a0, Particle a1)
14746  add_attribute(ScriptProvenance self, ObjectKey a0, Object a1)
14747  add_attribute(ScriptProvenance self, SparseFloatKey a0, IMP::Float a1)
14748  add_attribute(ScriptProvenance self, SparseIntKey a0, IMP::Int a1)
14749  add_attribute(ScriptProvenance self, SparseStringKey a0, IMP::String a1)
14750  add_attribute(ScriptProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14751  """
14752  return _IMP_core.ScriptProvenance_add_attribute(self, *args)
14753 
14754  def get_value(self, *args):
14755  r"""
14756  get_value(ScriptProvenance self, FloatKey a0) -> IMP::Float
14757  get_value(ScriptProvenance self, IntKey a0) -> IMP::Int
14758  get_value(ScriptProvenance self, FloatsKey a0) -> IMP::Floats
14759  get_value(ScriptProvenance self, IntsKey a0) -> IMP::Ints
14760  get_value(ScriptProvenance self, StringKey a0) -> IMP::String
14761  get_value(ScriptProvenance self, ParticleIndexKey a0) -> Particle
14762  get_value(ScriptProvenance self, ObjectKey a0) -> Object
14763  get_value(ScriptProvenance self, SparseFloatKey a0) -> IMP::Float
14764  get_value(ScriptProvenance self, SparseIntKey a0) -> IMP::Int
14765  get_value(ScriptProvenance self, SparseStringKey a0) -> IMP::String
14766  get_value(ScriptProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
14767  """
14768  return _IMP_core.ScriptProvenance_get_value(self, *args)
14769 
14770  def set_value(self, *args):
14771  r"""
14772  set_value(ScriptProvenance self, FloatKey a0, IMP::Float a1)
14773  set_value(ScriptProvenance self, IntKey a0, IMP::Int a1)
14774  set_value(ScriptProvenance self, FloatsKey a0, IMP::Floats a1)
14775  set_value(ScriptProvenance self, IntsKey a0, IMP::Ints a1)
14776  set_value(ScriptProvenance self, StringKey a0, IMP::String a1)
14777  set_value(ScriptProvenance self, ParticleIndexKey a0, Particle a1)
14778  set_value(ScriptProvenance self, ObjectKey a0, Object a1)
14779  set_value(ScriptProvenance self, SparseFloatKey a0, IMP::Float a1)
14780  set_value(ScriptProvenance self, SparseIntKey a0, IMP::Int a1)
14781  set_value(ScriptProvenance self, SparseStringKey a0, IMP::String a1)
14782  set_value(ScriptProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
14783  """
14784  return _IMP_core.ScriptProvenance_set_value(self, *args)
14785 
14786  def remove_attribute(self, *args):
14787  r"""
14788  remove_attribute(ScriptProvenance self, FloatKey a0)
14789  remove_attribute(ScriptProvenance self, IntKey a0)
14790  remove_attribute(ScriptProvenance self, FloatsKey a0)
14791  remove_attribute(ScriptProvenance self, IntsKey a0)
14792  remove_attribute(ScriptProvenance self, StringKey a0)
14793  remove_attribute(ScriptProvenance self, ParticleIndexKey a0)
14794  remove_attribute(ScriptProvenance self, ObjectKey a0)
14795  remove_attribute(ScriptProvenance self, SparseFloatKey a0)
14796  remove_attribute(ScriptProvenance self, SparseIntKey a0)
14797  remove_attribute(ScriptProvenance self, SparseStringKey a0)
14798  remove_attribute(ScriptProvenance self, SparseParticleIndexKey a0)
14799  """
14800  return _IMP_core.ScriptProvenance_remove_attribute(self, *args)
14801 
14802  def has_attribute(self, *args):
14803  r"""
14804  has_attribute(ScriptProvenance self, FloatKey a0) -> bool
14805  has_attribute(ScriptProvenance self, IntKey a0) -> bool
14806  has_attribute(ScriptProvenance self, FloatsKey a0) -> bool
14807  has_attribute(ScriptProvenance self, IntsKey a0) -> bool
14808  has_attribute(ScriptProvenance self, StringKey a0) -> bool
14809  has_attribute(ScriptProvenance self, ParticleIndexKey a0) -> bool
14810  has_attribute(ScriptProvenance self, ObjectKey a0) -> bool
14811  has_attribute(ScriptProvenance self, SparseFloatKey a0) -> bool
14812  has_attribute(ScriptProvenance self, SparseIntKey a0) -> bool
14813  has_attribute(ScriptProvenance self, SparseStringKey a0) -> bool
14814  has_attribute(ScriptProvenance self, SparseParticleIndexKey a0) -> bool
14815  """
14816  return _IMP_core.ScriptProvenance_has_attribute(self, *args)
14817 
14818  def get_derivative(self, a0):
14819  r"""get_derivative(ScriptProvenance self, FloatKey a0) -> double"""
14820  return _IMP_core.ScriptProvenance_get_derivative(self, a0)
14821 
14822  def get_name(self):
14823  r"""get_name(ScriptProvenance self) -> std::string"""
14824  return _IMP_core.ScriptProvenance_get_name(self)
14825 
14826  def clear_caches(self):
14827  r"""clear_caches(ScriptProvenance self)"""
14828  return _IMP_core.ScriptProvenance_clear_caches(self)
14829 
14830  def set_name(self, a0):
14831  r"""set_name(ScriptProvenance self, std::string a0)"""
14832  return _IMP_core.ScriptProvenance_set_name(self, a0)
14833 
14834  def set_check_level(self, a0):
14835  r"""set_check_level(ScriptProvenance self, IMP::CheckLevel a0)"""
14836  return _IMP_core.ScriptProvenance_set_check_level(self, a0)
14837 
14838  def add_to_derivative(self, a0, a1, a2):
14839  r"""add_to_derivative(ScriptProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
14840  return _IMP_core.ScriptProvenance_add_to_derivative(self, a0, a1, a2)
14841 
14842  def set_is_optimized(self, a0, a1):
14843  r"""set_is_optimized(ScriptProvenance self, FloatKey a0, bool a1)"""
14844  return _IMP_core.ScriptProvenance_set_is_optimized(self, a0, a1)
14845 
14846  def get_is_optimized(self, a0):
14847  r"""get_is_optimized(ScriptProvenance self, FloatKey a0) -> bool"""
14848  return _IMP_core.ScriptProvenance_get_is_optimized(self, a0)
14849 
14850  def get_check_level(self):
14851  r"""get_check_level(ScriptProvenance self) -> IMP::CheckLevel"""
14852  return _IMP_core.ScriptProvenance_get_check_level(self)
14853 
14854  def __eq__(self, *args):
14855  r"""
14856  __eq__(ScriptProvenance self, ScriptProvenance o) -> bool
14857  __eq__(ScriptProvenance self, Particle d) -> bool
14858  """
14859  return _IMP_core.ScriptProvenance___eq__(self, *args)
14860 
14861  def __ne__(self, *args):
14862  r"""
14863  __ne__(ScriptProvenance self, ScriptProvenance o) -> bool
14864  __ne__(ScriptProvenance self, Particle d) -> bool
14865  """
14866  return _IMP_core.ScriptProvenance___ne__(self, *args)
14867 
14868  def __le__(self, *args):
14869  r"""
14870  __le__(ScriptProvenance self, ScriptProvenance o) -> bool
14871  __le__(ScriptProvenance self, Particle d) -> bool
14872  """
14873  return _IMP_core.ScriptProvenance___le__(self, *args)
14874 
14875  def __lt__(self, *args):
14876  r"""
14877  __lt__(ScriptProvenance self, ScriptProvenance o) -> bool
14878  __lt__(ScriptProvenance self, Particle d) -> bool
14879  """
14880  return _IMP_core.ScriptProvenance___lt__(self, *args)
14881 
14882  def __ge__(self, *args):
14883  r"""
14884  __ge__(ScriptProvenance self, ScriptProvenance o) -> bool
14885  __ge__(ScriptProvenance self, Particle d) -> bool
14886  """
14887  return _IMP_core.ScriptProvenance___ge__(self, *args)
14888 
14889  def __gt__(self, *args):
14890  r"""
14891  __gt__(ScriptProvenance self, ScriptProvenance o) -> bool
14892  __gt__(ScriptProvenance self, Particle d) -> bool
14893  """
14894  return _IMP_core.ScriptProvenance___gt__(self, *args)
14895 
14896  def __hash__(self):
14897  r"""__hash__(ScriptProvenance self) -> std::size_t"""
14898  return _IMP_core.ScriptProvenance___hash__(self)
14899 
14900  def __str__(self):
14901  r"""__str__(ScriptProvenance self) -> std::string"""
14902  return _IMP_core.ScriptProvenance___str__(self)
14903 
14904  def __repr__(self):
14905  r"""__repr__(ScriptProvenance self) -> std::string"""
14906  return _IMP_core.ScriptProvenance___repr__(self)
14907 
14908  def _get_as_binary(self):
14909  r"""_get_as_binary(ScriptProvenance self) -> PyObject *"""
14910  return _IMP_core.ScriptProvenance__get_as_binary(self)
14911 
14912  def _set_from_binary(self, p):
14913  r"""_set_from_binary(ScriptProvenance self, PyObject * p)"""
14914  return _IMP_core.ScriptProvenance__set_from_binary(self, p)
14915 
14916  def __getstate__(self):
14917  p = self._get_as_binary()
14918  if len(self.__dict__) > 1:
14919  d = self.__dict__.copy()
14920  del d['this']
14921  p = (d, p)
14922  return p
14923 
14924  def __setstate__(self, p):
14925  if not hasattr(self, 'this'):
14926  self.__init__()
14927  if isinstance(p, tuple):
14928  d, p = p
14929  self.__dict__.update(d)
14930  return self._set_from_binary(p)
14931 
14932  __swig_destroy__ = _IMP_core.delete_ScriptProvenance
14933 
14934 # Register ScriptProvenance in _IMP_core:
14935 _IMP_core.ScriptProvenance_swigregister(ScriptProvenance)
14936 class SoftwareProvenance(Provenance):
14937  r"""Proxy of C++ IMP::core::SoftwareProvenance class."""
14938 
14939  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
14940 
14941  def set_software_name(self, name):
14942  r"""set_software_name(SoftwareProvenance self, std::string name)"""
14943  return _IMP_core.SoftwareProvenance_set_software_name(self, name)
14944 
14945  def get_software_name(self):
14946  r"""get_software_name(SoftwareProvenance self) -> std::string"""
14947  return _IMP_core.SoftwareProvenance_get_software_name(self)
14948 
14949  def set_version(self, version):
14950  r"""set_version(SoftwareProvenance self, std::string version)"""
14951  return _IMP_core.SoftwareProvenance_set_version(self, version)
14952 
14953  def get_version(self):
14954  r"""get_version(SoftwareProvenance self) -> std::string"""
14955  return _IMP_core.SoftwareProvenance_get_version(self)
14956 
14957  def set_location(self, location):
14958  r"""set_location(SoftwareProvenance self, std::string location)"""
14959  return _IMP_core.SoftwareProvenance_set_location(self, location)
14960 
14961  def get_location(self):
14962  r"""get_location(SoftwareProvenance self) -> std::string"""
14963  return _IMP_core.SoftwareProvenance_get_location(self)
14964 
14965  def __init__(self, *args):
14966  r"""
14967  __init__(SoftwareProvenance self) -> SoftwareProvenance
14968  __init__(SoftwareProvenance self, Model m, ParticleIndex id) -> SoftwareProvenance
14969  __init__(SoftwareProvenance self, _ParticleAdaptor d) -> SoftwareProvenance
14970  """
14971  _IMP_core.SoftwareProvenance_swiginit(self, _IMP_core.new_SoftwareProvenance(*args))
14972 
14973  @staticmethod
14974  def get_is_setup(*args):
14975  r"""
14976  get_is_setup(Model m, ParticleIndex pi) -> bool
14977  get_is_setup(_ParticleAdaptor p) -> bool
14978  """
14979  return _IMP_core.SoftwareProvenance_get_is_setup(*args)
14980 
14981  def show(self, *args):
14982  r"""show(SoftwareProvenance self, _ostream out=std::cout)"""
14983  return _IMP_core.SoftwareProvenance_show(self, *args)
14984 
14985  @staticmethod
14986  def setup_particle(*args):
14987  r"""
14988  setup_particle(Model m, ParticleIndex pi, std::string name, std::string version, std::string location) -> SoftwareProvenance
14989  setup_particle(_ParticleAdaptor pa, std::string name, std::string version, std::string location) -> SoftwareProvenance
14990  setup_particle(Model m, ParticleIndex pi, SoftwareProvenance o) -> SoftwareProvenance
14991  setup_particle(_ParticleAdaptor pa, SoftwareProvenance o) -> SoftwareProvenance
14992  """
14993  return _IMP_core.SoftwareProvenance_setup_particle(*args)
14994 
14995  def add_attribute(self, *args):
14996  r"""
14997  add_attribute(SoftwareProvenance self, FloatKey k, IMP::Float v, bool opt)
14998  add_attribute(SoftwareProvenance self, FloatKey a0, IMP::Float a1)
14999  add_attribute(SoftwareProvenance self, IntKey a0, IMP::Int a1)
15000  add_attribute(SoftwareProvenance self, FloatsKey a0, IMP::Floats a1)
15001  add_attribute(SoftwareProvenance self, IntsKey a0, IMP::Ints a1)
15002  add_attribute(SoftwareProvenance self, StringKey a0, IMP::String a1)
15003  add_attribute(SoftwareProvenance self, ParticleIndexKey a0, Particle a1)
15004  add_attribute(SoftwareProvenance self, ObjectKey a0, Object a1)
15005  add_attribute(SoftwareProvenance self, SparseFloatKey a0, IMP::Float a1)
15006  add_attribute(SoftwareProvenance self, SparseIntKey a0, IMP::Int a1)
15007  add_attribute(SoftwareProvenance self, SparseStringKey a0, IMP::String a1)
15008  add_attribute(SoftwareProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
15009  """
15010  return _IMP_core.SoftwareProvenance_add_attribute(self, *args)
15011 
15012  def get_value(self, *args):
15013  r"""
15014  get_value(SoftwareProvenance self, FloatKey a0) -> IMP::Float
15015  get_value(SoftwareProvenance self, IntKey a0) -> IMP::Int
15016  get_value(SoftwareProvenance self, FloatsKey a0) -> IMP::Floats
15017  get_value(SoftwareProvenance self, IntsKey a0) -> IMP::Ints
15018  get_value(SoftwareProvenance self, StringKey a0) -> IMP::String
15019  get_value(SoftwareProvenance self, ParticleIndexKey a0) -> Particle
15020  get_value(SoftwareProvenance self, ObjectKey a0) -> Object
15021  get_value(SoftwareProvenance self, SparseFloatKey a0) -> IMP::Float
15022  get_value(SoftwareProvenance self, SparseIntKey a0) -> IMP::Int
15023  get_value(SoftwareProvenance self, SparseStringKey a0) -> IMP::String
15024  get_value(SoftwareProvenance self, SparseParticleIndexKey a0) -> ParticleIndex
15025  """
15026  return _IMP_core.SoftwareProvenance_get_value(self, *args)
15027 
15028  def set_value(self, *args):
15029  r"""
15030  set_value(SoftwareProvenance self, FloatKey a0, IMP::Float a1)
15031  set_value(SoftwareProvenance self, IntKey a0, IMP::Int a1)
15032  set_value(SoftwareProvenance self, FloatsKey a0, IMP::Floats a1)
15033  set_value(SoftwareProvenance self, IntsKey a0, IMP::Ints a1)
15034  set_value(SoftwareProvenance self, StringKey a0, IMP::String a1)
15035  set_value(SoftwareProvenance self, ParticleIndexKey a0, Particle a1)
15036  set_value(SoftwareProvenance self, ObjectKey a0, Object a1)
15037  set_value(SoftwareProvenance self, SparseFloatKey a0, IMP::Float a1)
15038  set_value(SoftwareProvenance self, SparseIntKey a0, IMP::Int a1)
15039  set_value(SoftwareProvenance self, SparseStringKey a0, IMP::String a1)
15040  set_value(SoftwareProvenance self, SparseParticleIndexKey a0, ParticleIndex a1)
15041  """
15042  return _IMP_core.SoftwareProvenance_set_value(self, *args)
15043 
15044  def remove_attribute(self, *args):
15045  r"""
15046  remove_attribute(SoftwareProvenance self, FloatKey a0)
15047  remove_attribute(SoftwareProvenance self, IntKey a0)
15048  remove_attribute(SoftwareProvenance self, FloatsKey a0)
15049  remove_attribute(SoftwareProvenance self, IntsKey a0)
15050  remove_attribute(SoftwareProvenance self, StringKey a0)
15051  remove_attribute(SoftwareProvenance self, ParticleIndexKey a0)
15052  remove_attribute(SoftwareProvenance self, ObjectKey a0)
15053  remove_attribute(SoftwareProvenance self, SparseFloatKey a0)
15054  remove_attribute(SoftwareProvenance self, SparseIntKey a0)
15055  remove_attribute(SoftwareProvenance self, SparseStringKey a0)
15056  remove_attribute(SoftwareProvenance self, SparseParticleIndexKey a0)
15057  """
15058  return _IMP_core.SoftwareProvenance_remove_attribute(self, *args)
15059 
15060  def has_attribute(self, *args):
15061  r"""
15062  has_attribute(SoftwareProvenance self, FloatKey a0) -> bool
15063  has_attribute(SoftwareProvenance self, IntKey a0) -> bool
15064  has_attribute(SoftwareProvenance self, FloatsKey a0) -> bool
15065  has_attribute(SoftwareProvenance self, IntsKey a0) -> bool
15066  has_attribute(SoftwareProvenance self, StringKey a0) -> bool
15067  has_attribute(SoftwareProvenance self, ParticleIndexKey a0) -> bool
15068  has_attribute(SoftwareProvenance self, ObjectKey a0) -> bool
15069  has_attribute(SoftwareProvenance self, SparseFloatKey a0) -> bool
15070  has_attribute(SoftwareProvenance self, SparseIntKey a0) -> bool
15071  has_attribute(SoftwareProvenance self, SparseStringKey a0) -> bool
15072  has_attribute(SoftwareProvenance self, SparseParticleIndexKey a0) -> bool
15073  """
15074  return _IMP_core.SoftwareProvenance_has_attribute(self, *args)
15075 
15076  def get_derivative(self, a0):
15077  r"""get_derivative(SoftwareProvenance self, FloatKey a0) -> double"""
15078  return _IMP_core.SoftwareProvenance_get_derivative(self, a0)
15079 
15080  def get_name(self):
15081  r"""get_name(SoftwareProvenance self) -> std::string"""
15082  return _IMP_core.SoftwareProvenance_get_name(self)
15083 
15084  def clear_caches(self):
15085  r"""clear_caches(SoftwareProvenance self)"""
15086  return _IMP_core.SoftwareProvenance_clear_caches(self)
15087 
15088  def set_name(self, a0):
15089  r"""set_name(SoftwareProvenance self, std::string a0)"""
15090  return _IMP_core.SoftwareProvenance_set_name(self, a0)
15091 
15092  def set_check_level(self, a0):
15093  r"""set_check_level(SoftwareProvenance self, IMP::CheckLevel a0)"""
15094  return _IMP_core.SoftwareProvenance_set_check_level(self, a0)
15095 
15096  def add_to_derivative(self, a0, a1, a2):
15097  r"""add_to_derivative(SoftwareProvenance self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15098  return _IMP_core.SoftwareProvenance_add_to_derivative(self, a0, a1, a2)
15099 
15100  def set_is_optimized(self, a0, a1):
15101  r"""set_is_optimized(SoftwareProvenance self, FloatKey a0, bool a1)"""
15102  return _IMP_core.SoftwareProvenance_set_is_optimized(self, a0, a1)
15103 
15104  def get_is_optimized(self, a0):
15105  r"""get_is_optimized(SoftwareProvenance self, FloatKey a0) -> bool"""
15106  return _IMP_core.SoftwareProvenance_get_is_optimized(self, a0)
15107 
15108  def get_check_level(self):
15109  r"""get_check_level(SoftwareProvenance self) -> IMP::CheckLevel"""
15110  return _IMP_core.SoftwareProvenance_get_check_level(self)
15111 
15112  def __eq__(self, *args):
15113  r"""
15114  __eq__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15115  __eq__(SoftwareProvenance self, Particle d) -> bool
15116  """
15117  return _IMP_core.SoftwareProvenance___eq__(self, *args)
15118 
15119  def __ne__(self, *args):
15120  r"""
15121  __ne__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15122  __ne__(SoftwareProvenance self, Particle d) -> bool
15123  """
15124  return _IMP_core.SoftwareProvenance___ne__(self, *args)
15125 
15126  def __le__(self, *args):
15127  r"""
15128  __le__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15129  __le__(SoftwareProvenance self, Particle d) -> bool
15130  """
15131  return _IMP_core.SoftwareProvenance___le__(self, *args)
15132 
15133  def __lt__(self, *args):
15134  r"""
15135  __lt__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15136  __lt__(SoftwareProvenance self, Particle d) -> bool
15137  """
15138  return _IMP_core.SoftwareProvenance___lt__(self, *args)
15139 
15140  def __ge__(self, *args):
15141  r"""
15142  __ge__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15143  __ge__(SoftwareProvenance self, Particle d) -> bool
15144  """
15145  return _IMP_core.SoftwareProvenance___ge__(self, *args)
15146 
15147  def __gt__(self, *args):
15148  r"""
15149  __gt__(SoftwareProvenance self, SoftwareProvenance o) -> bool
15150  __gt__(SoftwareProvenance self, Particle d) -> bool
15151  """
15152  return _IMP_core.SoftwareProvenance___gt__(self, *args)
15153 
15154  def __hash__(self):
15155  r"""__hash__(SoftwareProvenance self) -> std::size_t"""
15156  return _IMP_core.SoftwareProvenance___hash__(self)
15157 
15158  def __str__(self):
15159  r"""__str__(SoftwareProvenance self) -> std::string"""
15160  return _IMP_core.SoftwareProvenance___str__(self)
15161 
15162  def __repr__(self):
15163  r"""__repr__(SoftwareProvenance self) -> std::string"""
15164  return _IMP_core.SoftwareProvenance___repr__(self)
15165 
15166  def _get_as_binary(self):
15167  r"""_get_as_binary(SoftwareProvenance self) -> PyObject *"""
15168  return _IMP_core.SoftwareProvenance__get_as_binary(self)
15169 
15170  def _set_from_binary(self, p):
15171  r"""_set_from_binary(SoftwareProvenance self, PyObject * p)"""
15172  return _IMP_core.SoftwareProvenance__set_from_binary(self, p)
15173 
15174  def __getstate__(self):
15175  p = self._get_as_binary()
15176  if len(self.__dict__) > 1:
15177  d = self.__dict__.copy()
15178  del d['this']
15179  p = (d, p)
15180  return p
15181 
15182  def __setstate__(self, p):
15183  if not hasattr(self, 'this'):
15184  self.__init__()
15185  if isinstance(p, tuple):
15186  d, p = p
15187  self.__dict__.update(d)
15188  return self._set_from_binary(p)
15189 
15190  __swig_destroy__ = _IMP_core.delete_SoftwareProvenance
15191 
15192 # Register SoftwareProvenance in _IMP_core:
15193 _IMP_core.SoftwareProvenance_swigregister(SoftwareProvenance)
15194 class Provenanced(IMP.Decorator):
15195  r"""Proxy of C++ IMP::core::Provenanced class."""
15196 
15197  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15198 
15199  def get_provenance(self):
15200  r"""get_provenance(Provenanced self) -> Provenance"""
15201  return _IMP_core.Provenanced_get_provenance(self)
15202 
15203  def set_provenance(self, p):
15204  r"""set_provenance(Provenanced self, Provenance p)"""
15205  return _IMP_core.Provenanced_set_provenance(self, p)
15206 
15207  def __init__(self, *args):
15208  r"""
15209  __init__(Provenanced self) -> Provenanced
15210  __init__(Provenanced self, Model m, ParticleIndex id) -> Provenanced
15211  __init__(Provenanced self, _ParticleAdaptor d) -> Provenanced
15212  """
15213  _IMP_core.Provenanced_swiginit(self, _IMP_core.new_Provenanced(*args))
15214 
15215  @staticmethod
15216  def get_is_setup(*args):
15217  r"""
15218  get_is_setup(Model m, ParticleIndex pi) -> bool
15219  get_is_setup(_ParticleAdaptor p) -> bool
15220  """
15221  return _IMP_core.Provenanced_get_is_setup(*args)
15222 
15223  def show(self, *args):
15224  r"""show(Provenanced self, _ostream out=std::cout)"""
15225  return _IMP_core.Provenanced_show(self, *args)
15226 
15227  @staticmethod
15228  def setup_particle(*args):
15229  r"""
15230  setup_particle(Model m, ParticleIndex pi, Provenance p) -> Provenanced
15231  setup_particle(_ParticleAdaptor pa, Provenance p) -> Provenanced
15232  """
15233  return _IMP_core.Provenanced_setup_particle(*args)
15234 
15235  def add_attribute(self, *args):
15236  r"""
15237  add_attribute(Provenanced self, FloatKey k, IMP::Float v, bool opt)
15238  add_attribute(Provenanced self, FloatKey a0, IMP::Float a1)
15239  add_attribute(Provenanced self, IntKey a0, IMP::Int a1)
15240  add_attribute(Provenanced self, FloatsKey a0, IMP::Floats a1)
15241  add_attribute(Provenanced self, IntsKey a0, IMP::Ints a1)
15242  add_attribute(Provenanced self, StringKey a0, IMP::String a1)
15243  add_attribute(Provenanced self, ParticleIndexKey a0, Particle a1)
15244  add_attribute(Provenanced self, ObjectKey a0, Object a1)
15245  add_attribute(Provenanced self, SparseFloatKey a0, IMP::Float a1)
15246  add_attribute(Provenanced self, SparseIntKey a0, IMP::Int a1)
15247  add_attribute(Provenanced self, SparseStringKey a0, IMP::String a1)
15248  add_attribute(Provenanced self, SparseParticleIndexKey a0, ParticleIndex a1)
15249  """
15250  return _IMP_core.Provenanced_add_attribute(self, *args)
15251 
15252  def get_value(self, *args):
15253  r"""
15254  get_value(Provenanced self, FloatKey a0) -> IMP::Float
15255  get_value(Provenanced self, IntKey a0) -> IMP::Int
15256  get_value(Provenanced self, FloatsKey a0) -> IMP::Floats
15257  get_value(Provenanced self, IntsKey a0) -> IMP::Ints
15258  get_value(Provenanced self, StringKey a0) -> IMP::String
15259  get_value(Provenanced self, ParticleIndexKey a0) -> Particle
15260  get_value(Provenanced self, ObjectKey a0) -> Object
15261  get_value(Provenanced self, SparseFloatKey a0) -> IMP::Float
15262  get_value(Provenanced self, SparseIntKey a0) -> IMP::Int
15263  get_value(Provenanced self, SparseStringKey a0) -> IMP::String
15264  get_value(Provenanced self, SparseParticleIndexKey a0) -> ParticleIndex
15265  """
15266  return _IMP_core.Provenanced_get_value(self, *args)
15267 
15268  def set_value(self, *args):
15269  r"""
15270  set_value(Provenanced self, FloatKey a0, IMP::Float a1)
15271  set_value(Provenanced self, IntKey a0, IMP::Int a1)
15272  set_value(Provenanced self, FloatsKey a0, IMP::Floats a1)
15273  set_value(Provenanced self, IntsKey a0, IMP::Ints a1)
15274  set_value(Provenanced self, StringKey a0, IMP::String a1)
15275  set_value(Provenanced self, ParticleIndexKey a0, Particle a1)
15276  set_value(Provenanced self, ObjectKey a0, Object a1)
15277  set_value(Provenanced self, SparseFloatKey a0, IMP::Float a1)
15278  set_value(Provenanced self, SparseIntKey a0, IMP::Int a1)
15279  set_value(Provenanced self, SparseStringKey a0, IMP::String a1)
15280  set_value(Provenanced self, SparseParticleIndexKey a0, ParticleIndex a1)
15281  """
15282  return _IMP_core.Provenanced_set_value(self, *args)
15283 
15284  def remove_attribute(self, *args):
15285  r"""
15286  remove_attribute(Provenanced self, FloatKey a0)
15287  remove_attribute(Provenanced self, IntKey a0)
15288  remove_attribute(Provenanced self, FloatsKey a0)
15289  remove_attribute(Provenanced self, IntsKey a0)
15290  remove_attribute(Provenanced self, StringKey a0)
15291  remove_attribute(Provenanced self, ParticleIndexKey a0)
15292  remove_attribute(Provenanced self, ObjectKey a0)
15293  remove_attribute(Provenanced self, SparseFloatKey a0)
15294  remove_attribute(Provenanced self, SparseIntKey a0)
15295  remove_attribute(Provenanced self, SparseStringKey a0)
15296  remove_attribute(Provenanced self, SparseParticleIndexKey a0)
15297  """
15298  return _IMP_core.Provenanced_remove_attribute(self, *args)
15299 
15300  def has_attribute(self, *args):
15301  r"""
15302  has_attribute(Provenanced self, FloatKey a0) -> bool
15303  has_attribute(Provenanced self, IntKey a0) -> bool
15304  has_attribute(Provenanced self, FloatsKey a0) -> bool
15305  has_attribute(Provenanced self, IntsKey a0) -> bool
15306  has_attribute(Provenanced self, StringKey a0) -> bool
15307  has_attribute(Provenanced self, ParticleIndexKey a0) -> bool
15308  has_attribute(Provenanced self, ObjectKey a0) -> bool
15309  has_attribute(Provenanced self, SparseFloatKey a0) -> bool
15310  has_attribute(Provenanced self, SparseIntKey a0) -> bool
15311  has_attribute(Provenanced self, SparseStringKey a0) -> bool
15312  has_attribute(Provenanced self, SparseParticleIndexKey a0) -> bool
15313  """
15314  return _IMP_core.Provenanced_has_attribute(self, *args)
15315 
15316  def get_derivative(self, a0):
15317  r"""get_derivative(Provenanced self, FloatKey a0) -> double"""
15318  return _IMP_core.Provenanced_get_derivative(self, a0)
15319 
15320  def get_name(self):
15321  r"""get_name(Provenanced self) -> std::string"""
15322  return _IMP_core.Provenanced_get_name(self)
15323 
15324  def clear_caches(self):
15325  r"""clear_caches(Provenanced self)"""
15326  return _IMP_core.Provenanced_clear_caches(self)
15327 
15328  def set_name(self, a0):
15329  r"""set_name(Provenanced self, std::string a0)"""
15330  return _IMP_core.Provenanced_set_name(self, a0)
15331 
15332  def set_check_level(self, a0):
15333  r"""set_check_level(Provenanced self, IMP::CheckLevel a0)"""
15334  return _IMP_core.Provenanced_set_check_level(self, a0)
15335 
15336  def add_to_derivative(self, a0, a1, a2):
15337  r"""add_to_derivative(Provenanced self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
15338  return _IMP_core.Provenanced_add_to_derivative(self, a0, a1, a2)
15339 
15340  def set_is_optimized(self, a0, a1):
15341  r"""set_is_optimized(Provenanced self, FloatKey a0, bool a1)"""
15342  return _IMP_core.Provenanced_set_is_optimized(self, a0, a1)
15343 
15344  def get_is_optimized(self, a0):
15345  r"""get_is_optimized(Provenanced self, FloatKey a0) -> bool"""
15346  return _IMP_core.Provenanced_get_is_optimized(self, a0)
15347 
15348  def get_check_level(self):
15349  r"""get_check_level(Provenanced self) -> IMP::CheckLevel"""
15350  return _IMP_core.Provenanced_get_check_level(self)
15351 
15352  def __eq__(self, *args):
15353  r"""
15354  __eq__(Provenanced self, Provenanced o) -> bool
15355  __eq__(Provenanced self, Particle d) -> bool
15356  """
15357  return _IMP_core.Provenanced___eq__(self, *args)
15358 
15359  def __ne__(self, *args):
15360  r"""
15361  __ne__(Provenanced self, Provenanced o) -> bool
15362  __ne__(Provenanced self, Particle d) -> bool
15363  """
15364  return _IMP_core.Provenanced___ne__(self, *args)
15365 
15366  def __le__(self, *args):
15367  r"""
15368  __le__(Provenanced self, Provenanced o) -> bool
15369  __le__(Provenanced self, Particle d) -> bool
15370  """
15371  return _IMP_core.Provenanced___le__(self, *args)
15372 
15373  def __lt__(self, *args):
15374  r"""
15375  __lt__(Provenanced self, Provenanced o) -> bool
15376  __lt__(Provenanced self, Particle d) -> bool
15377  """
15378  return _IMP_core.Provenanced___lt__(self, *args)
15379 
15380  def __ge__(self, *args):
15381  r"""
15382  __ge__(Provenanced self, Provenanced o) -> bool
15383  __ge__(Provenanced self, Particle d) -> bool
15384  """
15385  return _IMP_core.Provenanced___ge__(self, *args)
15386 
15387  def __gt__(self, *args):
15388  r"""
15389  __gt__(Provenanced self, Provenanced o) -> bool
15390  __gt__(Provenanced self, Particle d) -> bool
15391  """
15392  return _IMP_core.Provenanced___gt__(self, *args)
15393 
15394  def __hash__(self):
15395  r"""__hash__(Provenanced self) -> std::size_t"""
15396  return _IMP_core.Provenanced___hash__(self)
15397 
15398  def __str__(self):
15399  r"""__str__(Provenanced self) -> std::string"""
15400  return _IMP_core.Provenanced___str__(self)
15401 
15402  def __repr__(self):
15403  r"""__repr__(Provenanced self) -> std::string"""
15404  return _IMP_core.Provenanced___repr__(self)
15405 
15406  def _get_as_binary(self):
15407  r"""_get_as_binary(Provenanced self) -> PyObject *"""
15408  return _IMP_core.Provenanced__get_as_binary(self)
15409 
15410  def _set_from_binary(self, p):
15411  r"""_set_from_binary(Provenanced self, PyObject * p)"""
15412  return _IMP_core.Provenanced__set_from_binary(self, p)
15413 
15414  def __getstate__(self):
15415  p = self._get_as_binary()
15416  if len(self.__dict__) > 1:
15417  d = self.__dict__.copy()
15418  del d['this']
15419  p = (d, p)
15420  return p
15421 
15422  def __setstate__(self, p):
15423  if not hasattr(self, 'this'):
15424  self.__init__()
15425  if isinstance(p, tuple):
15426  d, p = p
15427  self.__dict__.update(d)
15428  return self._set_from_binary(p)
15429 
15430  __swig_destroy__ = _IMP_core.delete_Provenanced
15431 
15432 # Register Provenanced in _IMP_core:
15433 _IMP_core.Provenanced_swigregister(Provenanced)
15434 
15435 def add_provenance(m, pi, p):
15436  r"""add_provenance(Model m, ParticleIndex pi, Provenance p)"""
15437  return _IMP_core.add_provenance(m, pi, p)
15438 
15439 def create_clone(p):
15440  r"""create_clone(Provenance p) -> Provenance"""
15441  return _IMP_core.create_clone(p)
15442 
15444  r"""
15445  get_transformation_aligning_first_to_second(IMP::ParticlesTemp const & a, IMP::ParticlesTemp const & b) -> Transformation3D
15446  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
15447  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
15448  """
15449  return _IMP_core.get_transformation_aligning_first_to_second(*args)
15450 
15451 def create_restraint(ps, pp):
15452  r"""create_restraint(PairScore ps, IMP::ParticlePair pp) -> Restraint"""
15453  return _IMP_core.create_restraint(ps, pp)
15455  r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::LOWER > class."""
15456 
15457  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15458 
15459  def __init__(self, *args):
15460  r"""
15461  __init__(TruncatedHarmonicLowerBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicLowerBound
15462  __init__(TruncatedHarmonicLowerBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicLowerBound
15463  """
15464  _IMP_core.TruncatedHarmonicLowerBound_swiginit(self, _IMP_core.new_TruncatedHarmonicLowerBound(*args))
15465 
15466  def get_version_info(self):
15467  r"""get_version_info(TruncatedHarmonicLowerBound self) -> VersionInfo"""
15468  return _IMP_core.TruncatedHarmonicLowerBound_get_version_info(self)
15469  __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicLowerBound
15470 
15471  def __str__(self):
15472  r"""__str__(TruncatedHarmonicLowerBound self) -> std::string"""
15473  return _IMP_core.TruncatedHarmonicLowerBound___str__(self)
15474 
15475  def __repr__(self):
15476  r"""__repr__(TruncatedHarmonicLowerBound self) -> std::string"""
15477  return _IMP_core.TruncatedHarmonicLowerBound___repr__(self)
15478 
15479  @staticmethod
15480  def get_from(o):
15481  return _object_cast_to_TruncatedHarmonic(o)
15482 
15483 
15484 # Register TruncatedHarmonicLowerBound in _IMP_core:
15485 _IMP_core.TruncatedHarmonicLowerBound_swigregister(TruncatedHarmonicLowerBound)
15487  r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::UPPER > class."""
15488 
15489  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15490 
15491  def __init__(self, *args):
15492  r"""
15493  __init__(TruncatedHarmonicUpperBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicUpperBound
15494  __init__(TruncatedHarmonicUpperBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicUpperBound
15495  """
15496  _IMP_core.TruncatedHarmonicUpperBound_swiginit(self, _IMP_core.new_TruncatedHarmonicUpperBound(*args))
15497 
15498  def get_version_info(self):
15499  r"""get_version_info(TruncatedHarmonicUpperBound self) -> VersionInfo"""
15500  return _IMP_core.TruncatedHarmonicUpperBound_get_version_info(self)
15501  __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicUpperBound
15502 
15503  def __str__(self):
15504  r"""__str__(TruncatedHarmonicUpperBound self) -> std::string"""
15505  return _IMP_core.TruncatedHarmonicUpperBound___str__(self)
15506 
15507  def __repr__(self):
15508  r"""__repr__(TruncatedHarmonicUpperBound self) -> std::string"""
15509  return _IMP_core.TruncatedHarmonicUpperBound___repr__(self)
15510 
15511  @staticmethod
15512  def get_from(o):
15513  return _object_cast_to_TruncatedHarmonic(o)
15514 
15515 
15516 # Register TruncatedHarmonicUpperBound in _IMP_core:
15517 _IMP_core.TruncatedHarmonicUpperBound_swigregister(TruncatedHarmonicUpperBound)
15519  r"""Proxy of C++ IMP::core::TruncatedHarmonic< IMP::core::BOTH > class."""
15520 
15521  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15522 
15523  def __init__(self, *args):
15524  r"""
15525  __init__(TruncatedHarmonicBound self, IMP::Float center, IMP::Float k, IMP::Float threshold, IMP::Float limit) -> TruncatedHarmonicBound
15526  __init__(TruncatedHarmonicBound self, IMP::Float center, IMP::Float k, IMP::Float threshold) -> TruncatedHarmonicBound
15527  """
15528  _IMP_core.TruncatedHarmonicBound_swiginit(self, _IMP_core.new_TruncatedHarmonicBound(*args))
15529 
15530  def get_version_info(self):
15531  r"""get_version_info(TruncatedHarmonicBound self) -> VersionInfo"""
15532  return _IMP_core.TruncatedHarmonicBound_get_version_info(self)
15533  __swig_destroy__ = _IMP_core.delete_TruncatedHarmonicBound
15534 
15535  def __str__(self):
15536  r"""__str__(TruncatedHarmonicBound self) -> std::string"""
15537  return _IMP_core.TruncatedHarmonicBound___str__(self)
15538 
15539  def __repr__(self):
15540  r"""__repr__(TruncatedHarmonicBound self) -> std::string"""
15541  return _IMP_core.TruncatedHarmonicBound___repr__(self)
15542 
15543  @staticmethod
15544  def get_from(o):
15545  return _object_cast_to_TruncatedHarmonic(o)
15546 
15547 
15548 # Register TruncatedHarmonicBound in _IMP_core:
15549 _IMP_core.TruncatedHarmonicBound_swigregister(TruncatedHarmonicBound)
15550 class ParticleType(IMP._Value):
15551  r"""Proxy of C++ IMP::Key< 34897493 > class."""
15552 
15553  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15554 
15555  def __init__(self, *args):
15556  r"""
15557  __init__(ParticleType self) -> ParticleType
15558  __init__(ParticleType self, std::string const & c, bool is_implicit_add_permitted=True) -> ParticleType
15559  __init__(ParticleType self, unsigned int i) -> ParticleType
15560  """
15561  _IMP_core.ParticleType_swiginit(self, _IMP_core.new_ParticleType(*args))
15562 
15563  @staticmethod
15564  def add_key(sc):
15565  r"""add_key(std::string sc) -> unsigned int"""
15566  return _IMP_core.ParticleType_add_key(sc)
15567 
15568  @staticmethod
15569  def get_key_exists(sc):
15570  r"""get_key_exists(std::string sc) -> bool"""
15571  return _IMP_core.ParticleType_get_key_exists(sc)
15572 
15573  def get_string(self):
15574  r"""get_string(ParticleType self) -> std::string const"""
15575  return _IMP_core.ParticleType_get_string(self)
15576 
15577  def __cmp__(self, o):
15578  r"""__cmp__(ParticleType self, ParticleType o) -> int"""
15579  return _IMP_core.ParticleType___cmp__(self, o)
15580 
15581  def __eq__(self, o):
15582  r"""__eq__(ParticleType self, ParticleType o) -> bool"""
15583  return _IMP_core.ParticleType___eq__(self, o)
15584 
15585  def __ne__(self, o):
15586  r"""__ne__(ParticleType self, ParticleType o) -> bool"""
15587  return _IMP_core.ParticleType___ne__(self, o)
15588 
15589  def __lt__(self, o):
15590  r"""__lt__(ParticleType self, ParticleType o) -> bool"""
15591  return _IMP_core.ParticleType___lt__(self, o)
15592 
15593  def __gt__(self, o):
15594  r"""__gt__(ParticleType self, ParticleType o) -> bool"""
15595  return _IMP_core.ParticleType___gt__(self, o)
15596 
15597  def __ge__(self, o):
15598  r"""__ge__(ParticleType self, ParticleType o) -> bool"""
15599  return _IMP_core.ParticleType___ge__(self, o)
15600 
15601  def __le__(self, o):
15602  r"""__le__(ParticleType self, ParticleType o) -> bool"""
15603  return _IMP_core.ParticleType___le__(self, o)
15604 
15605  def __hash__(self):
15606  r"""__hash__(ParticleType self) -> std::size_t"""
15607  return _IMP_core.ParticleType___hash__(self)
15608 
15609  def show(self, *args):
15610  r"""show(ParticleType self, _ostream out=std::cout)"""
15611  return _IMP_core.ParticleType_show(self, *args)
15612 
15613  @staticmethod
15614  def add_alias(old_key, new_name):
15615  r"""add_alias(ParticleType old_key, std::string new_name) -> ParticleType"""
15616  return _IMP_core.ParticleType_add_alias(old_key, new_name)
15617 
15618  @staticmethod
15619  def get_number_of_keys():
15620  r"""get_number_of_keys() -> unsigned int"""
15621  return _IMP_core.ParticleType_get_number_of_keys()
15622 
15623  def get_index(self):
15624  r"""get_index(ParticleType self) -> unsigned int"""
15625  return _IMP_core.ParticleType_get_index(self)
15626 
15627  @staticmethod
15628  def show_all(out):
15629  r"""show_all(_ostream out)"""
15630  return _IMP_core.ParticleType_show_all(out)
15631 
15632  @staticmethod
15633  def get_all_strings():
15634  r"""get_all_strings() -> IMP::Vector< std::string >"""
15635  return _IMP_core.ParticleType_get_all_strings()
15636 
15637  @staticmethod
15638  def get_number_unique():
15639  r"""get_number_unique() -> unsigned int"""
15640  return _IMP_core.ParticleType_get_number_unique()
15641 
15642  def __str__(self):
15643  r"""__str__(ParticleType self) -> std::string"""
15644  return _IMP_core.ParticleType___str__(self)
15645 
15646  def __repr__(self):
15647  r"""__repr__(ParticleType self) -> std::string"""
15648  return _IMP_core.ParticleType___repr__(self)
15649  __swig_destroy__ = _IMP_core.delete_ParticleType
15650 
15651 # Register ParticleType in _IMP_core:
15652 _IMP_core.ParticleType_swigregister(ParticleType)
15654  r"""Proxy of C++ IMP::core::GenericAttributeSingletonScore< UnaryFunction > class."""
15655 
15656  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15657  __repr__ = _swig_repr
15658 
15659  def __init__(self, f, k):
15660  r"""__init__(AttributeSingletonScore self, UnaryFunction f, FloatKey k) -> AttributeSingletonScore"""
15661  _IMP_core.AttributeSingletonScore_swiginit(self, _IMP_core.new_AttributeSingletonScore(f, k))
15662 
15663  def do_get_inputs(self, m, pis):
15664  r"""do_get_inputs(AttributeSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15665  return _IMP_core.AttributeSingletonScore_do_get_inputs(self, m, pis)
15666 
15667  def get_unary_function(self):
15668  r"""get_unary_function(AttributeSingletonScore self) -> UnaryFunction"""
15669  return _IMP_core.AttributeSingletonScore_get_unary_function(self)
15670 
15671  def get_version_info(self):
15672  r"""get_version_info(AttributeSingletonScore self) -> VersionInfo"""
15673  return _IMP_core.AttributeSingletonScore_get_version_info(self)
15674  __swig_destroy__ = _IMP_core.delete_AttributeSingletonScore
15675 
15676 # Register AttributeSingletonScore in _IMP_core:
15677 _IMP_core.AttributeSingletonScore_swigregister(AttributeSingletonScore)
15678 
15680  r"""create_generic_attribute_singleton_score(UnaryFunction uf, FloatKey k) -> AttributeSingletonScore"""
15681  return _IMP_core.create_generic_attribute_singleton_score(uf, k)
15683  r"""Proxy of C++ IMP::core::GenericBoundingBox3DSingletonScore< UnaryFunction > class."""
15684 
15685  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15686  __repr__ = _swig_repr
15687 
15688  def __init__(self, f, bb):
15689  r"""__init__(BoundingBox3DSingletonScore self, UnaryFunction f, BoundingBox3D bb) -> BoundingBox3DSingletonScore"""
15690  _IMP_core.BoundingBox3DSingletonScore_swiginit(self, _IMP_core.new_BoundingBox3DSingletonScore(f, bb))
15691 
15692  def do_get_inputs(self, m, pis):
15693  r"""do_get_inputs(BoundingBox3DSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15694  return _IMP_core.BoundingBox3DSingletonScore_do_get_inputs(self, m, pis)
15695 
15696  def get_version_info(self):
15697  r"""get_version_info(BoundingBox3DSingletonScore self) -> VersionInfo"""
15698  return _IMP_core.BoundingBox3DSingletonScore_get_version_info(self)
15699  __swig_destroy__ = _IMP_core.delete_BoundingBox3DSingletonScore
15700 
15701 # Register BoundingBox3DSingletonScore in _IMP_core:
15702 _IMP_core.BoundingBox3DSingletonScore_swigregister(BoundingBox3DSingletonScore)
15703 
15704 def create_bounding_box_3d_singleton_score(f, bb):
15705  r"""create_bounding_box_3d_singleton_score(UnaryFunction f, BoundingBox3D bb) -> BoundingBox3DSingletonScore"""
15706  return _IMP_core.create_bounding_box_3d_singleton_score(f, bb)
15708  r"""Proxy of C++ IMP::core::GenericBoundingSphere3DSingletonScore< UnaryFunction > class."""
15709 
15710  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15711  __repr__ = _swig_repr
15712 
15713  def __init__(self, f, sphere):
15714  r"""__init__(BoundingSphere3DSingletonScore self, UnaryFunction f, Sphere3D sphere) -> BoundingSphere3DSingletonScore"""
15715  _IMP_core.BoundingSphere3DSingletonScore_swiginit(self, _IMP_core.new_BoundingSphere3DSingletonScore(f, sphere))
15716 
15717  def do_get_inputs(self, m, pis):
15718  r"""do_get_inputs(BoundingSphere3DSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15719  return _IMP_core.BoundingSphere3DSingletonScore_do_get_inputs(self, m, pis)
15720 
15721  def get_version_info(self):
15722  r"""get_version_info(BoundingSphere3DSingletonScore self) -> VersionInfo"""
15723  return _IMP_core.BoundingSphere3DSingletonScore_get_version_info(self)
15724  __swig_destroy__ = _IMP_core.delete_BoundingSphere3DSingletonScore
15725 
15726 # Register BoundingSphere3DSingletonScore in _IMP_core:
15727 _IMP_core.BoundingSphere3DSingletonScore_swigregister(BoundingSphere3DSingletonScore)
15728 
15729 def create_bounding_sphere_3d_singleton_score(f, sphere):
15730  r"""create_bounding_sphere_3d_singleton_score(UnaryFunction f, Sphere3D sphere) -> BoundingSphere3DSingletonScore"""
15731  return _IMP_core.create_bounding_sphere_3d_singleton_score(f, sphere)
15733  r"""Proxy of C++ IMP::core::GenericDistanceToSingletonScore< UnaryFunction > class."""
15734 
15735  thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
15736  __repr__ = _swig_repr
15737 
15738  def __init__(self, *args):
15739  r"""
15740  __init__(DistanceToSingletonScore self, UnaryFunction f, Vector3D pt) -> DistanceToSingletonScore
15741  __init__(DistanceToSingletonScore self) -> DistanceToSingletonScore
15742  """
15743  _IMP_core.DistanceToSingletonScore_swiginit(self, _IMP_core.new_DistanceToSingletonScore(*args))
15744 
15745  def do_get_inputs(self, m, pis):
15746  r"""do_get_inputs(DistanceToSingletonScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
15747  return _IMP_core.DistanceToSingletonScore_do_get_inputs(self, m, pis)
15748 
15749  def get_version_info(self):
15750  r"""get_version_info(DistanceToSingletonScore self) -> VersionInfo"""
15751  return _IMP_core.DistanceToSingletonScore_get_version_info(self)
15752  __swig_destroy__ = _IMP_core.delete_DistanceToSingletonScore
15753 
15754  def _get_as_binary(self):
15755  r"""_get_as_binary(DistanceToSingletonScore self) -> PyObject *"""
15756  return _IMP_core.DistanceToSingletonScore__get_as_binary(self)
15757 
15758  def _set_from_binary(self, p):
15759  r"""_set_from_binary(DistanceToSingletonScore self, PyObject * p)"""
15760  return _IMP_core.DistanceToSingletonScore__set_from_binary(self, p)
15761 
15762  def __getstate__(self):
15763  p = self._get_as_binary()
15764  if len(self.__dict__) > 1:
15765  d = self.__dict__.copy()
15766  del d['this']
15767  p = (d, p)
15768  return p
15769 
15770  def __setstate__(self, p):
15771  if not hasattr(self, 'this'):
15772  self.__init__()
15773  if isinstance(p, tuple):
15774  d, p = p
15775  self.__dict__.update(d)
15776  return self._set_from_binary(p)
15777 
15778 
15779 # Register DistanceToSingletonScore in _IMP_core:
15780 _IMP_core.DistanceToSingletonScore_swigregister(DistanceToSingletonScore)
15781 
15782 def create_distance_to_singleton_score(f, pt):
15783  r"""create_distance_to_singleton_score(UnaryFunction f, Vector3D pt) -> DistanceToSingletonScore"""
15784  return _IMP_core.create_distance_to_singleton_score(f, pt)
15785 
15786 
15787 def get_all_provenance(p, types=[StructureProvenance, SampleProvenance,
15788  CombineProvenance, FilterProvenance,
15789  ClusterProvenance, ScriptProvenance,
15790  SoftwareProvenance]):
15791  """Yield all provenance decorators of the given types for the particle.
15792  By default, all provenance types are returned. Provenance is returned
15793  in order, most recent first. If the particle has no provenance
15794  information, an empty generator is returned."""
15795  if Provenanced.get_is_setup(p):
15796  prov = Provenanced(p).get_provenance()
15797  while prov:
15798  for c in types:
15799  if c.get_is_setup(prov):
15800  yield c(prov)
15801  prov = prov.get_previous()
15802 
15804  """Tag the given particle with the current Python script.
15805  This is a noop if the particle is already so tagged."""
15806  main = sys.modules['__main__']
15807 # Can't do anything if running from an interactive interpreter
15808  if not hasattr(main, '__file__'):
15809  return
15810  f = IMP.get_absolute_path(main.__file__)
15811  for prov in get_all_provenance(p, types=[ScriptProvenance]):
15812  if prov.get_filename() == f:
15813  return
15814  m = p.get_model()
15815  provp = IMP.Particle(m)
15816  provp.set_name('script')
15817  prov = ScriptProvenance.setup_particle(provp, f)
15818  add_provenance(m, p, prov)
15819 
15820 def add_software_provenance(p, name, version, location):
15821  """Tag the given particle with the software used to create it.
15822  This is a noop if the particle is already so tagged."""
15823  for prov in get_all_provenance(p, types=[SoftwareProvenance]):
15824  if prov.get_software_name() == name and prov.get_version() == version \
15825  and prov.get_location() == location:
15826  return
15827  m = p.get_model()
15828  provp = IMP.Particle(m)
15829  provp.set_name('software')
15830  prov = SoftwareProvenance.setup_particle(provp, name, version, location)
15831  add_provenance(m, p, prov)
15832 
15834  """Tag the given particle as being created by the current version of IMP."""
15835  add_software_provenance(p, name="Integrative Modeling Platform (IMP)",
15836  version=IMP.get_module_version(),
15837  location="https://integrativemodeling.org")
15838 
15839 
15840 def get_module_version():
15841  r"""get_module_version() -> std::string const"""
15842  return _IMP_core.get_module_version()
15843 
15844 def get_example_path(fname):
15845  r"""get_example_path(std::string fname) -> std::string"""
15846  return _IMP_core.get_example_path(fname)
15847 
15848 def get_data_path(fname):
15849  r"""get_data_path(std::string fname) -> std::string"""
15850  return _IMP_core.get_data_path(fname)
15851 
15852 from . import _version_check
15853 _version_check.check_version(get_module_version())
15854 __version__ = get_module_version()
15855 
15856 
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