IMP logo
IMP Reference Guide  2.10.1
The Integrative Modeling Platform
npc/__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 3.0.10
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 # This wrapper is part of IMP,
8 # Copyright 2007-2018 IMP Inventors. All rights reserved.
9 
10 from __future__ import print_function, division, absolute_import
11 
12 
13 
14 
15 from sys import version_info as _swig_python_version_info
16 if _swig_python_version_info >= (2, 7, 0):
17  def swig_import_helper():
18  import importlib
19  pkg = __name__.rpartition('.')[0]
20  mname = '.'.join((pkg, '_IMP_npc')).lstrip('.')
21  try:
22  return importlib.import_module(mname)
23  except ImportError:
24  return importlib.import_module('_IMP_npc')
25  _IMP_npc = swig_import_helper()
26  del swig_import_helper
27 elif _swig_python_version_info >= (2, 6, 0):
28  def swig_import_helper():
29  from os.path import dirname
30  import imp
31  fp = None
32  try:
33  fp, pathname, description = imp.find_module('_IMP_npc', [dirname(__file__)])
34  except ImportError:
35  import _IMP_npc
36  return _IMP_npc
37  if fp is not None:
38  try:
39  _mod = imp.load_module('_IMP_npc', fp, pathname, description)
40  finally:
41  fp.close()
42  return _mod
43  _IMP_npc = swig_import_helper()
44  del swig_import_helper
45 else:
46  import _IMP_npc
47 del _swig_python_version_info
48 try:
49  _swig_property = property
50 except NameError:
51  pass # Python < 2.2 doesn't have 'property'.
52 
53 try:
54  import builtins as __builtin__
55 except ImportError:
56  import __builtin__
57 
58 def _swig_setattr_nondynamic(self, class_type, name, value, static=1):
59  if (name == "thisown"):
60  return self.this.own(value)
61  if (name == "this"):
62  if type(value).__name__ == 'SwigPyObject':
63  self.__dict__[name] = value
64  return
65  method = class_type.__swig_setmethods__.get(name, None)
66  if method:
67  return method(self, value)
68  if (not static):
69  object.__setattr__(self, name, value)
70  else:
71  raise AttributeError("You cannot add attributes to %s" % self)
72 
73 
74 def _swig_setattr(self, class_type, name, value):
75  return _swig_setattr_nondynamic(self, class_type, name, value, 0)
76 
77 
78 def _swig_getattr(self, class_type, name):
79  if (name == "thisown"):
80  return self.this.own()
81  method = class_type.__swig_getmethods__.get(name, None)
82  if method:
83  return method(self)
84  raise AttributeError("'%s' object has no attribute '%s'" % (class_type.__name__, name))
85 
86 
87 def _swig_repr(self):
88  try:
89  strthis = "proxy of " + self.this.__repr__()
90  except __builtin__.Exception:
91  strthis = ""
92  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
93 
94 
95 def _swig_setattr_nondynamic_method(set):
96  def set_attr(self, name, value):
97  if (name == "thisown"):
98  return self.this.own(value)
99  if hasattr(self, name) or (name == "this"):
100  set(self, name, value)
101  else:
102  raise AttributeError("You cannot add attributes to %s" % self)
103  return set_attr
104 
105 
106 try:
107  import weakref
108  weakref_proxy = weakref.proxy
109 except __builtin__.Exception:
110  weakref_proxy = lambda x: x
111 
112 
113 class IMP_NPC_SwigPyIterator(object):
114  """Proxy of C++ swig::IMP_NPC_SwigPyIterator class."""
115 
116  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
117 
118  def __init__(self, *args, **kwargs):
119  raise AttributeError("No constructor defined - class is abstract")
120  __repr__ = _swig_repr
121  __swig_destroy__ = _IMP_npc.delete_IMP_NPC_SwigPyIterator
122  __del__ = lambda self: None
123 
124  def value(self):
125  """value(IMP_NPC_SwigPyIterator self) -> PyObject *"""
126  return _IMP_npc.IMP_NPC_SwigPyIterator_value(self)
127 
128 
129  def incr(self, n=1):
130  """
131  incr(IMP_NPC_SwigPyIterator self, size_t n=1) -> IMP_NPC_SwigPyIterator
132  incr(IMP_NPC_SwigPyIterator self) -> IMP_NPC_SwigPyIterator
133  """
134  return _IMP_npc.IMP_NPC_SwigPyIterator_incr(self, n)
135 
136 
137  def decr(self, n=1):
138  """
139  decr(IMP_NPC_SwigPyIterator self, size_t n=1) -> IMP_NPC_SwigPyIterator
140  decr(IMP_NPC_SwigPyIterator self) -> IMP_NPC_SwigPyIterator
141  """
142  return _IMP_npc.IMP_NPC_SwigPyIterator_decr(self, n)
143 
144 
145  def distance(self, x):
146  """distance(IMP_NPC_SwigPyIterator self, IMP_NPC_SwigPyIterator x) -> ptrdiff_t"""
147  return _IMP_npc.IMP_NPC_SwigPyIterator_distance(self, x)
148 
149 
150  def equal(self, x):
151  """equal(IMP_NPC_SwigPyIterator self, IMP_NPC_SwigPyIterator x) -> bool"""
152  return _IMP_npc.IMP_NPC_SwigPyIterator_equal(self, x)
153 
154 
155  def copy(self):
156  """copy(IMP_NPC_SwigPyIterator self) -> IMP_NPC_SwigPyIterator"""
157  return _IMP_npc.IMP_NPC_SwigPyIterator_copy(self)
158 
159 
160  def next(self):
161  """next(IMP_NPC_SwigPyIterator self) -> PyObject *"""
162  return _IMP_npc.IMP_NPC_SwigPyIterator_next(self)
163 
164 
165  def __next__(self):
166  """__next__(IMP_NPC_SwigPyIterator self) -> PyObject *"""
167  return _IMP_npc.IMP_NPC_SwigPyIterator___next__(self)
168 
169 
170  def previous(self):
171  """previous(IMP_NPC_SwigPyIterator self) -> PyObject *"""
172  return _IMP_npc.IMP_NPC_SwigPyIterator_previous(self)
173 
174 
175  def advance(self, n):
176  """advance(IMP_NPC_SwigPyIterator self, ptrdiff_t n) -> IMP_NPC_SwigPyIterator"""
177  return _IMP_npc.IMP_NPC_SwigPyIterator_advance(self, n)
178 
179 
180  def __eq__(self, x):
181  """__eq__(IMP_NPC_SwigPyIterator self, IMP_NPC_SwigPyIterator x) -> bool"""
182  return _IMP_npc.IMP_NPC_SwigPyIterator___eq__(self, x)
183 
184 
185  def __ne__(self, x):
186  """__ne__(IMP_NPC_SwigPyIterator self, IMP_NPC_SwigPyIterator x) -> bool"""
187  return _IMP_npc.IMP_NPC_SwigPyIterator___ne__(self, x)
188 
189 
190  def __iadd__(self, n):
191  """__iadd__(IMP_NPC_SwigPyIterator self, ptrdiff_t n) -> IMP_NPC_SwigPyIterator"""
192  return _IMP_npc.IMP_NPC_SwigPyIterator___iadd__(self, n)
193 
194 
195  def __isub__(self, n):
196  """__isub__(IMP_NPC_SwigPyIterator self, ptrdiff_t n) -> IMP_NPC_SwigPyIterator"""
197  return _IMP_npc.IMP_NPC_SwigPyIterator___isub__(self, n)
198 
199 
200  def __add__(self, n):
201  """__add__(IMP_NPC_SwigPyIterator self, ptrdiff_t n) -> IMP_NPC_SwigPyIterator"""
202  return _IMP_npc.IMP_NPC_SwigPyIterator___add__(self, n)
203 
204 
205  def __sub__(self, *args):
206  """
207  __sub__(IMP_NPC_SwigPyIterator self, ptrdiff_t n) -> IMP_NPC_SwigPyIterator
208  __sub__(IMP_NPC_SwigPyIterator self, IMP_NPC_SwigPyIterator x) -> ptrdiff_t
209  """
210  return _IMP_npc.IMP_NPC_SwigPyIterator___sub__(self, *args)
211 
212  def __iter__(self):
213  return self
214 IMP_NPC_SwigPyIterator_swigregister = _IMP_npc.IMP_NPC_SwigPyIterator_swigregister
215 IMP_NPC_SwigPyIterator_swigregister(IMP_NPC_SwigPyIterator)
216 
217 
218 _value_types=[]
219 _object_types=[]
220 _raii_types=[]
221 _plural_types=[]
222 
223 IMP_DEBUG = _IMP_npc.IMP_DEBUG
224 IMP_RELEASE = _IMP_npc.IMP_RELEASE
225 IMP_SILENT = _IMP_npc.IMP_SILENT
226 IMP_PROGRESS = _IMP_npc.IMP_PROGRESS
227 IMP_TERSE = _IMP_npc.IMP_TERSE
228 IMP_VERBOSE = _IMP_npc.IMP_VERBOSE
229 IMP_MEMORY = _IMP_npc.IMP_MEMORY
230 IMP_NONE = _IMP_npc.IMP_NONE
231 IMP_USAGE = _IMP_npc.IMP_USAGE
232 IMP_INTERNAL = _IMP_npc.IMP_INTERNAL
233 IMP_KERNEL_HAS_LOG4CXX = _IMP_npc.IMP_KERNEL_HAS_LOG4CXX
234 IMP_COMPILER_HAS_AUTO = _IMP_npc.IMP_COMPILER_HAS_AUTO
235 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_npc.IMP_COMPILER_HAS_DEBUG_VECTOR
236 IMP_COMPILER_HAS_UNIQUE_PTR = _IMP_npc.IMP_COMPILER_HAS_UNIQUE_PTR
237 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_npc.IMP_KERNEL_HAS_BOOST_RANDOM
238 IMP_KERNEL_HAS_GPERFTOOLS = _IMP_npc.IMP_KERNEL_HAS_GPERFTOOLS
239 IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER = _IMP_npc.IMP_KERNEL_HAS_TCMALLOC_HEAPCHECKER
240 IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER = _IMP_npc.IMP_KERNEL_HAS_TCMALLOC_HEAPPROFILER
241 IMPKERNEL_SHOW_WARNINGS = _IMP_npc.IMPKERNEL_SHOW_WARNINGS
242 
243 import sys
244 class _DirectorObjects(object):
245  """@internal Simple class to keep references to director objects
246  to prevent premature deletion."""
247  def __init__(self):
248  self._objects = []
249  def register(self, obj):
250  """Take a reference to a director object; will only work for
251  refcounted C++ classes"""
252  if hasattr(obj, 'get_ref_count'):
253  self._objects.append(obj)
254  def cleanup(self):
255  """Only drop our reference and allow cleanup by Python if no other
256  Python references exist (we hold 3 references: one in self._objects,
257  one in x, and one in the argument list for getrefcount) *and* no
258  other C++ references exist (the Python object always holds one)"""
259  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
260  or x.get_ref_count() > 1]
261 # Do in two steps so the references are kept until the end of the
262 # function (deleting references may trigger a fresh call to this method)
263  self._objects = objs
264  def get_object_count(self):
265  """Get number of director objects (useful for testing only)"""
266  return len(self._objects)
267 _director_objects = _DirectorObjects()
268 
269 class _ostream(object):
270  """Proxy of C++ std::ostream class."""
271 
272  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
273 
274  def __init__(self, *args, **kwargs):
275  raise AttributeError("No constructor defined")
276  __repr__ = _swig_repr
277 
278  def write(self, osa_buf):
279  """write(_ostream self, char const * osa_buf)"""
280  return _IMP_npc._ostream_write(self, osa_buf)
281 
282 _ostream_swigregister = _IMP_npc._ostream_swigregister
283 _ostream_swigregister(_ostream)
284 
285 IMP_COMPILER_HAS_OVERRIDE = _IMP_npc.IMP_COMPILER_HAS_OVERRIDE
286 IMP_COMPILER_HAS_FINAL = _IMP_npc.IMP_COMPILER_HAS_FINAL
287 IMP_HAS_NOEXCEPT = _IMP_npc.IMP_HAS_NOEXCEPT
288 IMP_C_OPEN_BINARY = _IMP_npc.IMP_C_OPEN_BINARY
289 import IMP
290 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_CGAL_HAS_BOOST_FILESYSTEM
291 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
292 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_npc.IMP_CGAL_HAS_BOOST_RANDOM
293 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_npc.IMP_CGAL_HAS_BOOST_SYSTEM
294 IMPCGAL_SHOW_WARNINGS = _IMP_npc.IMPCGAL_SHOW_WARNINGS
295 import IMP.cgal
296 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_npc.IMP_ALGEBRA_HAS_IMP_CGAL
297 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
298 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
299 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_npc.IMP_ALGEBRA_HAS_BOOST_RANDOM
300 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_npc.IMP_ALGEBRA_HAS_BOOST_SYSTEM
301 IMP_ALGEBRA_HAS_CGAL = _IMP_npc.IMP_ALGEBRA_HAS_CGAL
302 IMP_ALGEBRA_HAS_ANN = _IMP_npc.IMP_ALGEBRA_HAS_ANN
303 IMPALGEBRA_SHOW_WARNINGS = _IMP_npc.IMPALGEBRA_SHOW_WARNINGS
304 import IMP.algebra
305 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_npc.IMP_DISPLAY_HAS_IMP_CGAL
306 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
307 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
308 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_npc.IMP_DISPLAY_HAS_BOOST_RANDOM
309 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_npc.IMP_DISPLAY_HAS_BOOST_SYSTEM
310 IMP_DISPLAY_HAS_CGAL = _IMP_npc.IMP_DISPLAY_HAS_CGAL
311 IMPDISPLAY_SHOW_WARNINGS = _IMP_npc.IMPDISPLAY_SHOW_WARNINGS
312 import IMP.display
313 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
314 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
315 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
316 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
317 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
318 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_CGAL
319 IMP_SCORE_FUNCTOR_HAS_HDF5 = _IMP_npc.IMP_SCORE_FUNCTOR_HAS_HDF5
320 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_npc.IMPSCOREFUNCTOR_SHOW_WARNINGS
321 import IMP.score_functor
322 IMP_CORE_HAS_IMP_CGAL = _IMP_npc.IMP_CORE_HAS_IMP_CGAL
323 IMP_CORE_HAS_IMP_KERNEL = _IMP_npc.IMP_CORE_HAS_IMP_KERNEL
324 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_CORE_HAS_BOOST_FILESYSTEM
325 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
326 IMP_CORE_HAS_BOOST_RANDOM = _IMP_npc.IMP_CORE_HAS_BOOST_RANDOM
327 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_npc.IMP_CORE_HAS_BOOST_SYSTEM
328 IMP_CORE_HAS_CGAL = _IMP_npc.IMP_CORE_HAS_CGAL
329 IMP_CORE_HAS_HDF5 = _IMP_npc.IMP_CORE_HAS_HDF5
330 IMPCORE_SHOW_WARNINGS = _IMP_npc.IMPCORE_SHOW_WARNINGS
331 import IMP.core
332 IMP_NPC_HAS_IMP_ALGEBRA = _IMP_npc.IMP_NPC_HAS_IMP_ALGEBRA
333 IMP_NPC_HAS_IMP_CGAL = _IMP_npc.IMP_NPC_HAS_IMP_CGAL
334 IMP_NPC_HAS_IMP_DISPLAY = _IMP_npc.IMP_NPC_HAS_IMP_DISPLAY
335 IMP_NPC_HAS_IMP_KERNEL = _IMP_npc.IMP_NPC_HAS_IMP_KERNEL
336 IMP_NPC_HAS_IMP_SCORE_FUNCTOR = _IMP_npc.IMP_NPC_HAS_IMP_SCORE_FUNCTOR
337 IMP_NPC_HAS_BOOST_FILESYSTEM = _IMP_npc.IMP_NPC_HAS_BOOST_FILESYSTEM
338 IMP_NPC_HAS_BOOST_PROGRAMOPTIONS = _IMP_npc.IMP_NPC_HAS_BOOST_PROGRAMOPTIONS
339 IMP_NPC_HAS_BOOST_RANDOM = _IMP_npc.IMP_NPC_HAS_BOOST_RANDOM
340 IMP_NPC_HAS_BOOST_SYSTEM = _IMP_npc.IMP_NPC_HAS_BOOST_SYSTEM
341 IMP_NPC_HAS_CGAL = _IMP_npc.IMP_NPC_HAS_CGAL
342 IMP_NPC_HAS_HDF5 = _IMP_npc.IMP_NPC_HAS_HDF5
343 IMP_NPC_HAS_PYTHON_IHM = _IMP_npc.IMP_NPC_HAS_PYTHON_IHM
344 IMPNPC_SHOW_WARNINGS = _IMP_npc.IMPNPC_SHOW_WARNINGS
345 
346 _object_types.append("ZAxialPositionLowerRestraint")
347 
348 
349 def _object_cast_to_ZAxialPositionLowerRestraint(o):
350  """_object_cast_to_ZAxialPositionLowerRestraint(Object o) -> ZAxialPositionLowerRestraint"""
351  return _IMP_npc._object_cast_to_ZAxialPositionLowerRestraint(o)
352 
353 _object_types.append("ZAxialPositionUpperRestraint")
354 
355 
356 def _object_cast_to_ZAxialPositionUpperRestraint(o):
357  """_object_cast_to_ZAxialPositionUpperRestraint(Object o) -> ZAxialPositionUpperRestraint"""
358  return _IMP_npc._object_cast_to_ZAxialPositionUpperRestraint(o)
359 
360 _object_types.append("XYRadialPositionLowerRestraint")
361 
362 
363 def _object_cast_to_XYRadialPositionLowerRestraint(o):
364  """_object_cast_to_XYRadialPositionLowerRestraint(Object o) -> XYRadialPositionLowerRestraint"""
365  return _IMP_npc._object_cast_to_XYRadialPositionLowerRestraint(o)
366 
367 _object_types.append("XYRadialPositionUpperRestraint")
368 
369 
370 def _object_cast_to_XYRadialPositionUpperRestraint(o):
371  """_object_cast_to_XYRadialPositionUpperRestraint(Object o) -> XYRadialPositionUpperRestraint"""
372  return _IMP_npc._object_cast_to_XYRadialPositionUpperRestraint(o)
373 
374 _object_types.append("ProteinContactRestraint")
375 
376 
377 def _object_cast_to_ProteinContactRestraint(o):
378  """_object_cast_to_ProteinContactRestraint(Object o) -> ProteinContactRestraint"""
379  return _IMP_npc._object_cast_to_ProteinContactRestraint(o)
380 
381 _object_types.append("ProteinChainRestraint")
382 
383 
384 def _object_cast_to_ProteinChainRestraint(o):
385  """_object_cast_to_ProteinChainRestraint(Object o) -> ProteinChainRestraint"""
386  return _IMP_npc._object_cast_to_ProteinChainRestraint(o)
387 
388 _object_types.append("MembraneSurfaceLocationRestraint")
389 
390 
391 def _object_cast_to_MembraneSurfaceLocationRestraint(o):
392  """_object_cast_to_MembraneSurfaceLocationRestraint(Object o) -> MembraneSurfaceLocationRestraint"""
393  return _IMP_npc._object_cast_to_MembraneSurfaceLocationRestraint(o)
394 
395 _object_types.append("PoreSideVolumeLocationRestraint")
396 
397 
398 def _object_cast_to_PoreSideVolumeLocationRestraint(o):
399  """_object_cast_to_PoreSideVolumeLocationRestraint(Object o) -> PoreSideVolumeLocationRestraint"""
400  return _IMP_npc._object_cast_to_PoreSideVolumeLocationRestraint(o)
401 
402 _object_types.append("PerinuclearVolumeLocationRestraint")
403 
404 
405 def _object_cast_to_PerinuclearVolumeLocationRestraint(o):
406  """_object_cast_to_PerinuclearVolumeLocationRestraint(Object o) -> PerinuclearVolumeLocationRestraint"""
407  return _IMP_npc._object_cast_to_PerinuclearVolumeLocationRestraint(o)
408 
409 _object_types.append("AssemblySymmetryByDistanceRestraint")
410 
411 
412 def _object_cast_to_AssemblySymmetryByDistanceRestraint(o):
413  """_object_cast_to_AssemblySymmetryByDistanceRestraint(Object o) -> AssemblySymmetryByDistanceRestraint"""
414  return _IMP_npc._object_cast_to_AssemblySymmetryByDistanceRestraint(o)
415 
416 _object_types.append("AssemblySymmetryByDihedralRestraint")
417 
418 
419 def _object_cast_to_AssemblySymmetryByDihedralRestraint(o):
420  """_object_cast_to_AssemblySymmetryByDihedralRestraint(Object o) -> AssemblySymmetryByDihedralRestraint"""
421  return _IMP_npc._object_cast_to_AssemblySymmetryByDihedralRestraint(o)
422 
423 _object_types.append("ProteinProximityRestraint")
424 
425 
426 def _object_cast_to_ProteinProximityRestraint(o):
427  """_object_cast_to_ProteinProximityRestraint(Object o) -> ProteinProximityRestraint"""
428  return _IMP_npc._object_cast_to_ProteinProximityRestraint(o)
429 
430 _object_types.append("CompositeRestraint")
431 
432 
433 def _object_cast_to_CompositeRestraint(o):
434  """_object_cast_to_CompositeRestraint(Object o) -> CompositeRestraint"""
435  return _IMP_npc._object_cast_to_CompositeRestraint(o)
436 
437 _object_types.append("MinimumSphereDistancePairScore")
438 
439 
440 def _object_cast_to_MinimumSphereDistancePairScore(o):
441  """_object_cast_to_MinimumSphereDistancePairScore(Object o) -> MinimumSphereDistancePairScore"""
442  return _IMP_npc._object_cast_to_MinimumSphereDistancePairScore(o)
443 
444 _object_types.append("MembraneExclusionRestraint")
445 
446 
447 def _object_cast_to_MembraneExclusionRestraint(o):
448  """_object_cast_to_MembraneExclusionRestraint(Object o) -> MembraneExclusionRestraint"""
449  return _IMP_npc._object_cast_to_MembraneExclusionRestraint(o)
450 
451 _object_types.append("MembraneSurfaceLocationConditionalRestraint")
452 
453 
454 def _object_cast_to_MembraneSurfaceLocationConditionalRestraint(o):
455  """_object_cast_to_MembraneSurfaceLocationConditionalRestraint(Object o) -> MembraneSurfaceLocationConditionalRestraint"""
456  return _IMP_npc._object_cast_to_MembraneSurfaceLocationConditionalRestraint(o)
457 
458 _object_types.append("XYRadialPositionRestraint")
459 
460 
461 def _object_cast_to_XYRadialPositionRestraint(o):
462  """_object_cast_to_XYRadialPositionRestraint(Object o) -> XYRadialPositionRestraint"""
463  return _IMP_npc._object_cast_to_XYRadialPositionRestraint(o)
464 
465 _object_types.append("YAxialPositionLowerRestraint")
466 
467 
468 def _object_cast_to_YAxialPositionLowerRestraint(o):
469  """_object_cast_to_YAxialPositionLowerRestraint(Object o) -> YAxialPositionLowerRestraint"""
470  return _IMP_npc._object_cast_to_YAxialPositionLowerRestraint(o)
471 
472 _object_types.append("YAxialPositionRestraint")
473 
474 
475 def _object_cast_to_YAxialPositionRestraint(o):
476  """_object_cast_to_YAxialPositionRestraint(Object o) -> YAxialPositionRestraint"""
477  return _IMP_npc._object_cast_to_YAxialPositionRestraint(o)
478 
479 _object_types.append("YAxialPositionUpperRestraint")
480 
481 
482 def _object_cast_to_YAxialPositionUpperRestraint(o):
483  """_object_cast_to_YAxialPositionUpperRestraint(Object o) -> YAxialPositionUpperRestraint"""
484  return _IMP_npc._object_cast_to_YAxialPositionUpperRestraint(o)
485 
486 _object_types.append("ZAxialPositionRestraint")
487 
488 
489 def _object_cast_to_ZAxialPositionRestraint(o):
490  """_object_cast_to_ZAxialPositionRestraint(Object o) -> ZAxialPositionRestraint"""
491  return _IMP_npc._object_cast_to_ZAxialPositionRestraint(o)
492 class ZAxialPositionRestraint(IMP.Restraint):
493  """Proxy of C++ IMP::npc::ZAxialPositionRestraint class."""
494 
495  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
496 
497  def __init__(self, *args):
498  """
499  __init__(IMP::npc::ZAxialPositionRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> ZAxialPositionRestraint
500  __init__(IMP::npc::ZAxialPositionRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, double upper_bound, bool consider_radius) -> ZAxialPositionRestraint
501  __init__(IMP::npc::ZAxialPositionRestraint self, Model m, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> ZAxialPositionRestraint
502  __init__(IMP::npc::ZAxialPositionRestraint self, Model m, double lower_bound, double upper_bound, bool consider_radius) -> ZAxialPositionRestraint
503  """
504  this = _IMP_npc.new_ZAxialPositionRestraint(*args)
505  try:
506  self.this.append(this)
507  except __builtin__.Exception:
508  self.this = this
509 
510  def add_particle(self, p):
511  """add_particle(ZAxialPositionRestraint self, Particle p)"""
512  return _IMP_npc.ZAxialPositionRestraint_add_particle(self, p)
513 
514 
515  def add_particles(self, ps):
516  """add_particles(ZAxialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
517  return _IMP_npc.ZAxialPositionRestraint_add_particles(self, ps)
518 
519 
520  def set_particles(self, ps):
521  """set_particles(ZAxialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
522  return _IMP_npc.ZAxialPositionRestraint_set_particles(self, ps)
523 
524 
525  def do_get_inputs(self):
526  """do_get_inputs(ZAxialPositionRestraint self) -> IMP::ModelObjectsTemp"""
527  return _IMP_npc.ZAxialPositionRestraint_do_get_inputs(self)
528 
529 
530  def get_version_info(self):
531  """get_version_info(ZAxialPositionRestraint self) -> VersionInfo"""
532  return _IMP_npc.ZAxialPositionRestraint_get_version_info(self)
533 
534 
535  def __str__(self):
536  """__str__(ZAxialPositionRestraint self) -> std::string"""
537  return _IMP_npc.ZAxialPositionRestraint___str__(self)
538 
539 
540  def __repr__(self):
541  """__repr__(ZAxialPositionRestraint self) -> std::string"""
542  return _IMP_npc.ZAxialPositionRestraint___repr__(self)
543 
544 
545  @staticmethod
546  def get_from(o):
547  return _object_cast_to_ZAxialPositionRestraint(o)
548 
549 ZAxialPositionRestraint_swigregister = _IMP_npc.ZAxialPositionRestraint_swigregister
550 ZAxialPositionRestraint_swigregister(ZAxialPositionRestraint)
551 
552 class ZAxialPositionLowerRestraint(IMP.Restraint):
553  """Proxy of C++ IMP::npc::ZAxialPositionLowerRestraint class."""
554 
555  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
556 
557  def __init__(self, *args):
558  """
559  __init__(IMP::npc::ZAxialPositionLowerRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, bool consider_radius, double sigma=1) -> ZAxialPositionLowerRestraint
560  __init__(IMP::npc::ZAxialPositionLowerRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, bool consider_radius) -> ZAxialPositionLowerRestraint
561  __init__(IMP::npc::ZAxialPositionLowerRestraint self, Model m, double lower_bound, bool consider_radius, double sigma=1) -> ZAxialPositionLowerRestraint
562  __init__(IMP::npc::ZAxialPositionLowerRestraint self, Model m, double lower_bound, bool consider_radius) -> ZAxialPositionLowerRestraint
563  """
564  this = _IMP_npc.new_ZAxialPositionLowerRestraint(*args)
565  try:
566  self.this.append(this)
567  except __builtin__.Exception:
568  self.this = this
569 
570  def add_particle(self, p):
571  """add_particle(ZAxialPositionLowerRestraint self, Particle p)"""
572  return _IMP_npc.ZAxialPositionLowerRestraint_add_particle(self, p)
573 
574 
575  def add_particles(self, ps):
576  """add_particles(ZAxialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
577  return _IMP_npc.ZAxialPositionLowerRestraint_add_particles(self, ps)
578 
579 
580  def set_particles(self, ps):
581  """set_particles(ZAxialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
582  return _IMP_npc.ZAxialPositionLowerRestraint_set_particles(self, ps)
583 
584 
585  def do_get_inputs(self):
586  """do_get_inputs(ZAxialPositionLowerRestraint self) -> IMP::ModelObjectsTemp"""
587  return _IMP_npc.ZAxialPositionLowerRestraint_do_get_inputs(self)
588 
589 
590  def get_version_info(self):
591  """get_version_info(ZAxialPositionLowerRestraint self) -> VersionInfo"""
592  return _IMP_npc.ZAxialPositionLowerRestraint_get_version_info(self)
593 
594 
595  def __str__(self):
596  """__str__(ZAxialPositionLowerRestraint self) -> std::string"""
597  return _IMP_npc.ZAxialPositionLowerRestraint___str__(self)
598 
599 
600  def __repr__(self):
601  """__repr__(ZAxialPositionLowerRestraint self) -> std::string"""
602  return _IMP_npc.ZAxialPositionLowerRestraint___repr__(self)
603 
604 
605  @staticmethod
606  def get_from(o):
607  return _object_cast_to_ZAxialPositionLowerRestraint(o)
608 
609 ZAxialPositionLowerRestraint_swigregister = _IMP_npc.ZAxialPositionLowerRestraint_swigregister
610 ZAxialPositionLowerRestraint_swigregister(ZAxialPositionLowerRestraint)
611 
612 class ZAxialPositionUpperRestraint(IMP.Restraint):
613  """Proxy of C++ IMP::npc::ZAxialPositionUpperRestraint class."""
614 
615  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
616 
617  def __init__(self, *args):
618  """
619  __init__(IMP::npc::ZAxialPositionUpperRestraint self, Model m, _SingletonContainerAdaptor sc, double upper_bound, bool consider_radius, double sigma=1) -> ZAxialPositionUpperRestraint
620  __init__(IMP::npc::ZAxialPositionUpperRestraint self, Model m, _SingletonContainerAdaptor sc, double upper_bound, bool consider_radius) -> ZAxialPositionUpperRestraint
621  __init__(IMP::npc::ZAxialPositionUpperRestraint self, Model m, double upper_bound, bool consider_radius, double sigma=1) -> ZAxialPositionUpperRestraint
622  __init__(IMP::npc::ZAxialPositionUpperRestraint self, Model m, double upper_bound, bool consider_radius) -> ZAxialPositionUpperRestraint
623  """
624  this = _IMP_npc.new_ZAxialPositionUpperRestraint(*args)
625  try:
626  self.this.append(this)
627  except __builtin__.Exception:
628  self.this = this
629 
630  def add_particle(self, p):
631  """add_particle(ZAxialPositionUpperRestraint self, Particle p)"""
632  return _IMP_npc.ZAxialPositionUpperRestraint_add_particle(self, p)
633 
634 
635  def add_particles(self, ps):
636  """add_particles(ZAxialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
637  return _IMP_npc.ZAxialPositionUpperRestraint_add_particles(self, ps)
638 
639 
640  def set_particles(self, ps):
641  """set_particles(ZAxialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
642  return _IMP_npc.ZAxialPositionUpperRestraint_set_particles(self, ps)
643 
644 
645  def do_get_inputs(self):
646  """do_get_inputs(ZAxialPositionUpperRestraint self) -> IMP::ModelObjectsTemp"""
647  return _IMP_npc.ZAxialPositionUpperRestraint_do_get_inputs(self)
648 
649 
650  def get_version_info(self):
651  """get_version_info(ZAxialPositionUpperRestraint self) -> VersionInfo"""
652  return _IMP_npc.ZAxialPositionUpperRestraint_get_version_info(self)
653 
654 
655  def __str__(self):
656  """__str__(ZAxialPositionUpperRestraint self) -> std::string"""
657  return _IMP_npc.ZAxialPositionUpperRestraint___str__(self)
658 
659 
660  def __repr__(self):
661  """__repr__(ZAxialPositionUpperRestraint self) -> std::string"""
662  return _IMP_npc.ZAxialPositionUpperRestraint___repr__(self)
663 
664 
665  @staticmethod
666  def get_from(o):
667  return _object_cast_to_ZAxialPositionUpperRestraint(o)
668 
669 ZAxialPositionUpperRestraint_swigregister = _IMP_npc.ZAxialPositionUpperRestraint_swigregister
670 ZAxialPositionUpperRestraint_swigregister(ZAxialPositionUpperRestraint)
671 
672 class YAxialPositionRestraint(IMP.Restraint):
673  """Proxy of C++ IMP::npc::YAxialPositionRestraint class."""
674 
675  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
676 
677  def __init__(self, *args):
678  """
679  __init__(IMP::npc::YAxialPositionRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> YAxialPositionRestraint
680  __init__(IMP::npc::YAxialPositionRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, double upper_bound, bool consider_radius) -> YAxialPositionRestraint
681  __init__(IMP::npc::YAxialPositionRestraint self, Model m, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> YAxialPositionRestraint
682  __init__(IMP::npc::YAxialPositionRestraint self, Model m, double lower_bound, double upper_bound, bool consider_radius) -> YAxialPositionRestraint
683  """
684  this = _IMP_npc.new_YAxialPositionRestraint(*args)
685  try:
686  self.this.append(this)
687  except __builtin__.Exception:
688  self.this = this
689 
690  def add_particle(self, p):
691  """add_particle(YAxialPositionRestraint self, Particle p)"""
692  return _IMP_npc.YAxialPositionRestraint_add_particle(self, p)
693 
694 
695  def add_particles(self, ps):
696  """add_particles(YAxialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
697  return _IMP_npc.YAxialPositionRestraint_add_particles(self, ps)
698 
699 
700  def set_particles(self, ps):
701  """set_particles(YAxialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
702  return _IMP_npc.YAxialPositionRestraint_set_particles(self, ps)
703 
704 
705  def do_get_inputs(self):
706  """do_get_inputs(YAxialPositionRestraint self) -> IMP::ModelObjectsTemp"""
707  return _IMP_npc.YAxialPositionRestraint_do_get_inputs(self)
708 
709 
710  def get_version_info(self):
711  """get_version_info(YAxialPositionRestraint self) -> VersionInfo"""
712  return _IMP_npc.YAxialPositionRestraint_get_version_info(self)
713 
714 
715  def __str__(self):
716  """__str__(YAxialPositionRestraint self) -> std::string"""
717  return _IMP_npc.YAxialPositionRestraint___str__(self)
718 
719 
720  def __repr__(self):
721  """__repr__(YAxialPositionRestraint self) -> std::string"""
722  return _IMP_npc.YAxialPositionRestraint___repr__(self)
723 
724 
725  @staticmethod
726  def get_from(o):
727  return _object_cast_to_YAxialPositionRestraint(o)
728 
729 YAxialPositionRestraint_swigregister = _IMP_npc.YAxialPositionRestraint_swigregister
730 YAxialPositionRestraint_swigregister(YAxialPositionRestraint)
731 
732 class YAxialPositionLowerRestraint(IMP.Restraint):
733  """Proxy of C++ IMP::npc::YAxialPositionLowerRestraint class."""
734 
735  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
736 
737  def __init__(self, *args):
738  """
739  __init__(IMP::npc::YAxialPositionLowerRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, bool consider_radius, double sigma=1) -> YAxialPositionLowerRestraint
740  __init__(IMP::npc::YAxialPositionLowerRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, bool consider_radius) -> YAxialPositionLowerRestraint
741  __init__(IMP::npc::YAxialPositionLowerRestraint self, Model m, double lower_bound, bool consider_radius, double sigma=1) -> YAxialPositionLowerRestraint
742  __init__(IMP::npc::YAxialPositionLowerRestraint self, Model m, double lower_bound, bool consider_radius) -> YAxialPositionLowerRestraint
743  """
744  this = _IMP_npc.new_YAxialPositionLowerRestraint(*args)
745  try:
746  self.this.append(this)
747  except __builtin__.Exception:
748  self.this = this
749 
750  def add_particle(self, p):
751  """add_particle(YAxialPositionLowerRestraint self, Particle p)"""
752  return _IMP_npc.YAxialPositionLowerRestraint_add_particle(self, p)
753 
754 
755  def add_particles(self, ps):
756  """add_particles(YAxialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
757  return _IMP_npc.YAxialPositionLowerRestraint_add_particles(self, ps)
758 
759 
760  def set_particles(self, ps):
761  """set_particles(YAxialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
762  return _IMP_npc.YAxialPositionLowerRestraint_set_particles(self, ps)
763 
764 
765  def do_get_inputs(self):
766  """do_get_inputs(YAxialPositionLowerRestraint self) -> IMP::ModelObjectsTemp"""
767  return _IMP_npc.YAxialPositionLowerRestraint_do_get_inputs(self)
768 
769 
770  def get_version_info(self):
771  """get_version_info(YAxialPositionLowerRestraint self) -> VersionInfo"""
772  return _IMP_npc.YAxialPositionLowerRestraint_get_version_info(self)
773 
774 
775  def __str__(self):
776  """__str__(YAxialPositionLowerRestraint self) -> std::string"""
777  return _IMP_npc.YAxialPositionLowerRestraint___str__(self)
778 
779 
780  def __repr__(self):
781  """__repr__(YAxialPositionLowerRestraint self) -> std::string"""
782  return _IMP_npc.YAxialPositionLowerRestraint___repr__(self)
783 
784 
785  @staticmethod
786  def get_from(o):
787  return _object_cast_to_YAxialPositionLowerRestraint(o)
788 
789 YAxialPositionLowerRestraint_swigregister = _IMP_npc.YAxialPositionLowerRestraint_swigregister
790 YAxialPositionLowerRestraint_swigregister(YAxialPositionLowerRestraint)
791 
792 class YAxialPositionUpperRestraint(IMP.Restraint):
793  """Proxy of C++ IMP::npc::YAxialPositionUpperRestraint class."""
794 
795  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
796 
797  def __init__(self, *args):
798  """
799  __init__(IMP::npc::YAxialPositionUpperRestraint self, Model m, _SingletonContainerAdaptor sc, double upper_bound, bool consider_radius, double sigma=1) -> YAxialPositionUpperRestraint
800  __init__(IMP::npc::YAxialPositionUpperRestraint self, Model m, _SingletonContainerAdaptor sc, double upper_bound, bool consider_radius) -> YAxialPositionUpperRestraint
801  __init__(IMP::npc::YAxialPositionUpperRestraint self, Model m, double upper_bound, bool consider_radius, double sigma=1) -> YAxialPositionUpperRestraint
802  __init__(IMP::npc::YAxialPositionUpperRestraint self, Model m, double upper_bound, bool consider_radius) -> YAxialPositionUpperRestraint
803  """
804  this = _IMP_npc.new_YAxialPositionUpperRestraint(*args)
805  try:
806  self.this.append(this)
807  except __builtin__.Exception:
808  self.this = this
809 
810  def add_particle(self, p):
811  """add_particle(YAxialPositionUpperRestraint self, Particle p)"""
812  return _IMP_npc.YAxialPositionUpperRestraint_add_particle(self, p)
813 
814 
815  def add_particles(self, ps):
816  """add_particles(YAxialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
817  return _IMP_npc.YAxialPositionUpperRestraint_add_particles(self, ps)
818 
819 
820  def set_particles(self, ps):
821  """set_particles(YAxialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
822  return _IMP_npc.YAxialPositionUpperRestraint_set_particles(self, ps)
823 
824 
825  def do_get_inputs(self):
826  """do_get_inputs(YAxialPositionUpperRestraint self) -> IMP::ModelObjectsTemp"""
827  return _IMP_npc.YAxialPositionUpperRestraint_do_get_inputs(self)
828 
829 
830  def get_version_info(self):
831  """get_version_info(YAxialPositionUpperRestraint self) -> VersionInfo"""
832  return _IMP_npc.YAxialPositionUpperRestraint_get_version_info(self)
833 
834 
835  def __str__(self):
836  """__str__(YAxialPositionUpperRestraint self) -> std::string"""
837  return _IMP_npc.YAxialPositionUpperRestraint___str__(self)
838 
839 
840  def __repr__(self):
841  """__repr__(YAxialPositionUpperRestraint self) -> std::string"""
842  return _IMP_npc.YAxialPositionUpperRestraint___repr__(self)
843 
844 
845  @staticmethod
846  def get_from(o):
847  return _object_cast_to_YAxialPositionUpperRestraint(o)
848 
849 YAxialPositionUpperRestraint_swigregister = _IMP_npc.YAxialPositionUpperRestraint_swigregister
850 YAxialPositionUpperRestraint_swigregister(YAxialPositionUpperRestraint)
851 
852 class XYRadialPositionRestraint(IMP.Restraint):
853  """Proxy of C++ IMP::npc::XYRadialPositionRestraint class."""
854 
855  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
856 
857  def __init__(self, *args):
858  """
859  __init__(IMP::npc::XYRadialPositionRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> XYRadialPositionRestraint
860  __init__(IMP::npc::XYRadialPositionRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, double upper_bound, bool consider_radius) -> XYRadialPositionRestraint
861  __init__(IMP::npc::XYRadialPositionRestraint self, Model m, double lower_bound, double upper_bound, bool consider_radius, double sigma=1) -> XYRadialPositionRestraint
862  __init__(IMP::npc::XYRadialPositionRestraint self, Model m, double lower_bound, double upper_bound, bool consider_radius) -> XYRadialPositionRestraint
863  """
864  this = _IMP_npc.new_XYRadialPositionRestraint(*args)
865  try:
866  self.this.append(this)
867  except __builtin__.Exception:
868  self.this = this
869 
870  def add_particle(self, p):
871  """add_particle(XYRadialPositionRestraint self, Particle p)"""
872  return _IMP_npc.XYRadialPositionRestraint_add_particle(self, p)
873 
874 
875  def add_particles(self, ps):
876  """add_particles(XYRadialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
877  return _IMP_npc.XYRadialPositionRestraint_add_particles(self, ps)
878 
879 
880  def set_particles(self, ps):
881  """set_particles(XYRadialPositionRestraint self, IMP::ParticlesTemp const & ps)"""
882  return _IMP_npc.XYRadialPositionRestraint_set_particles(self, ps)
883 
884 
885  def do_get_inputs(self):
886  """do_get_inputs(XYRadialPositionRestraint self) -> IMP::ModelObjectsTemp"""
887  return _IMP_npc.XYRadialPositionRestraint_do_get_inputs(self)
888 
889 
890  def get_version_info(self):
891  """get_version_info(XYRadialPositionRestraint self) -> VersionInfo"""
892  return _IMP_npc.XYRadialPositionRestraint_get_version_info(self)
893 
894 
895  def __str__(self):
896  """__str__(XYRadialPositionRestraint self) -> std::string"""
897  return _IMP_npc.XYRadialPositionRestraint___str__(self)
898 
899 
900  def __repr__(self):
901  """__repr__(XYRadialPositionRestraint self) -> std::string"""
902  return _IMP_npc.XYRadialPositionRestraint___repr__(self)
903 
904 
905  @staticmethod
906  def get_from(o):
907  return _object_cast_to_XYRadialPositionRestraint(o)
908 
909 XYRadialPositionRestraint_swigregister = _IMP_npc.XYRadialPositionRestraint_swigregister
910 XYRadialPositionRestraint_swigregister(XYRadialPositionRestraint)
911 
912 class XYRadialPositionLowerRestraint(IMP.Restraint):
913  """Proxy of C++ IMP::npc::XYRadialPositionLowerRestraint class."""
914 
915  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
916 
917  def __init__(self, *args):
918  """
919  __init__(IMP::npc::XYRadialPositionLowerRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, bool consider_radius, double sigma=1) -> XYRadialPositionLowerRestraint
920  __init__(IMP::npc::XYRadialPositionLowerRestraint self, Model m, _SingletonContainerAdaptor sc, double lower_bound, bool consider_radius) -> XYRadialPositionLowerRestraint
921  __init__(IMP::npc::XYRadialPositionLowerRestraint self, Model m, double lower_bound, bool consider_radius, double sigma=1) -> XYRadialPositionLowerRestraint
922  __init__(IMP::npc::XYRadialPositionLowerRestraint self, Model m, double lower_bound, bool consider_radius) -> XYRadialPositionLowerRestraint
923  """
924  this = _IMP_npc.new_XYRadialPositionLowerRestraint(*args)
925  try:
926  self.this.append(this)
927  except __builtin__.Exception:
928  self.this = this
929 
930  def add_particle(self, p):
931  """add_particle(XYRadialPositionLowerRestraint self, Particle p)"""
932  return _IMP_npc.XYRadialPositionLowerRestraint_add_particle(self, p)
933 
934 
935  def add_particles(self, ps):
936  """add_particles(XYRadialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
937  return _IMP_npc.XYRadialPositionLowerRestraint_add_particles(self, ps)
938 
939 
940  def set_particles(self, ps):
941  """set_particles(XYRadialPositionLowerRestraint self, IMP::ParticlesTemp const & ps)"""
942  return _IMP_npc.XYRadialPositionLowerRestraint_set_particles(self, ps)
943 
944 
945  def do_get_inputs(self):
946  """do_get_inputs(XYRadialPositionLowerRestraint self) -> IMP::ModelObjectsTemp"""
947  return _IMP_npc.XYRadialPositionLowerRestraint_do_get_inputs(self)
948 
949 
950  def get_version_info(self):
951  """get_version_info(XYRadialPositionLowerRestraint self) -> VersionInfo"""
952  return _IMP_npc.XYRadialPositionLowerRestraint_get_version_info(self)
953 
954 
955  def __str__(self):
956  """__str__(XYRadialPositionLowerRestraint self) -> std::string"""
957  return _IMP_npc.XYRadialPositionLowerRestraint___str__(self)
958 
959 
960  def __repr__(self):
961  """__repr__(XYRadialPositionLowerRestraint self) -> std::string"""
962  return _IMP_npc.XYRadialPositionLowerRestraint___repr__(self)
963 
964 
965  @staticmethod
966  def get_from(o):
967  return _object_cast_to_XYRadialPositionLowerRestraint(o)
968 
969 XYRadialPositionLowerRestraint_swigregister = _IMP_npc.XYRadialPositionLowerRestraint_swigregister
970 XYRadialPositionLowerRestraint_swigregister(XYRadialPositionLowerRestraint)
971 
972 class XYRadialPositionUpperRestraint(IMP.Restraint):
973  """Proxy of C++ IMP::npc::XYRadialPositionUpperRestraint class."""
974 
975  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
976 
977  def __init__(self, *args):
978  """
979  __init__(IMP::npc::XYRadialPositionUpperRestraint self, Model m, _SingletonContainerAdaptor sc, double upper_bound, bool consider_radius, double sigma=1) -> XYRadialPositionUpperRestraint
980  __init__(IMP::npc::XYRadialPositionUpperRestraint self, Model m, _SingletonContainerAdaptor sc, double upper_bound, bool consider_radius) -> XYRadialPositionUpperRestraint
981  __init__(IMP::npc::XYRadialPositionUpperRestraint self, Model m, double upper_bound, bool consider_radius, double sigma=1) -> XYRadialPositionUpperRestraint
982  __init__(IMP::npc::XYRadialPositionUpperRestraint self, Model m, double upper_bound, bool consider_radius) -> XYRadialPositionUpperRestraint
983  """
984  this = _IMP_npc.new_XYRadialPositionUpperRestraint(*args)
985  try:
986  self.this.append(this)
987  except __builtin__.Exception:
988  self.this = this
989 
990  def add_particle(self, p):
991  """add_particle(XYRadialPositionUpperRestraint self, Particle p)"""
992  return _IMP_npc.XYRadialPositionUpperRestraint_add_particle(self, p)
993 
994 
995  def add_particles(self, ps):
996  """add_particles(XYRadialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
997  return _IMP_npc.XYRadialPositionUpperRestraint_add_particles(self, ps)
998 
999 
1000  def set_particles(self, ps):
1001  """set_particles(XYRadialPositionUpperRestraint self, IMP::ParticlesTemp const & ps)"""
1002  return _IMP_npc.XYRadialPositionUpperRestraint_set_particles(self, ps)
1003 
1004 
1005  def do_get_inputs(self):
1006  """do_get_inputs(XYRadialPositionUpperRestraint self) -> IMP::ModelObjectsTemp"""
1007  return _IMP_npc.XYRadialPositionUpperRestraint_do_get_inputs(self)
1008 
1009 
1010  def get_version_info(self):
1011  """get_version_info(XYRadialPositionUpperRestraint self) -> VersionInfo"""
1012  return _IMP_npc.XYRadialPositionUpperRestraint_get_version_info(self)
1013 
1014 
1015  def __str__(self):
1016  """__str__(XYRadialPositionUpperRestraint self) -> std::string"""
1017  return _IMP_npc.XYRadialPositionUpperRestraint___str__(self)
1018 
1019 
1020  def __repr__(self):
1021  """__repr__(XYRadialPositionUpperRestraint self) -> std::string"""
1022  return _IMP_npc.XYRadialPositionUpperRestraint___repr__(self)
1023 
1024 
1025  @staticmethod
1026  def get_from(o):
1027  return _object_cast_to_XYRadialPositionUpperRestraint(o)
1028 
1029 XYRadialPositionUpperRestraint_swigregister = _IMP_npc.XYRadialPositionUpperRestraint_swigregister
1030 XYRadialPositionUpperRestraint_swigregister(XYRadialPositionUpperRestraint)
1031 
1032 class ProteinContactRestraint(IMP.Restraint):
1033  """Proxy of C++ IMP::npc::ProteinContactRestraint class."""
1034 
1035  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1036 
1037  def __init__(self, *args):
1038  """
1039  __init__(IMP::npc::ProteinContactRestraint self, Model m, _SingletonContainerAdaptor sc, double tolerance_factor, double sigma=0.1) -> ProteinContactRestraint
1040  __init__(IMP::npc::ProteinContactRestraint self, Model m, _SingletonContainerAdaptor sc, double tolerance_factor) -> ProteinContactRestraint
1041  __init__(IMP::npc::ProteinContactRestraint self, Model m, double tolerance_factor, double sigma=0.1) -> ProteinContactRestraint
1042  __init__(IMP::npc::ProteinContactRestraint self, Model m, double tolerance_factor) -> ProteinContactRestraint
1043  """
1044  this = _IMP_npc.new_ProteinContactRestraint(*args)
1045  try:
1046  self.this.append(this)
1047  except __builtin__.Exception:
1048  self.this = this
1049 
1050  def add_particle(self, p):
1051  """add_particle(ProteinContactRestraint self, Particle p)"""
1052  return _IMP_npc.ProteinContactRestraint_add_particle(self, p)
1053 
1054 
1055  def add_particles(self, ps):
1056  """add_particles(ProteinContactRestraint self, IMP::ParticlesTemp const & ps)"""
1057  return _IMP_npc.ProteinContactRestraint_add_particles(self, ps)
1058 
1059 
1060  def set_particles(self, ps):
1061  """set_particles(ProteinContactRestraint self, IMP::ParticlesTemp const & ps)"""
1062  return _IMP_npc.ProteinContactRestraint_set_particles(self, ps)
1063 
1064 
1065  def do_get_inputs(self):
1066  """do_get_inputs(ProteinContactRestraint self) -> IMP::ModelObjectsTemp"""
1067  return _IMP_npc.ProteinContactRestraint_do_get_inputs(self)
1068 
1069 
1070  def get_version_info(self):
1071  """get_version_info(ProteinContactRestraint self) -> VersionInfo"""
1072  return _IMP_npc.ProteinContactRestraint_get_version_info(self)
1073 
1074 
1075  def __str__(self):
1076  """__str__(ProteinContactRestraint self) -> std::string"""
1077  return _IMP_npc.ProteinContactRestraint___str__(self)
1078 
1079 
1080  def __repr__(self):
1081  """__repr__(ProteinContactRestraint self) -> std::string"""
1082  return _IMP_npc.ProteinContactRestraint___repr__(self)
1083 
1084 
1085  @staticmethod
1086  def get_from(o):
1087  return _object_cast_to_ProteinContactRestraint(o)
1088 
1089 ProteinContactRestraint_swigregister = _IMP_npc.ProteinContactRestraint_swigregister
1090 ProteinContactRestraint_swigregister(ProteinContactRestraint)
1091 
1092 class ProteinChainRestraint(IMP.Restraint):
1093  """Proxy of C++ IMP::npc::ProteinChainRestraint class."""
1094 
1095  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1096 
1097  def __init__(self, *args):
1098  """
1099  __init__(IMP::npc::ProteinChainRestraint self, Model m, _SingletonContainerAdaptor sc, double sigma=0.1) -> ProteinChainRestraint
1100  __init__(IMP::npc::ProteinChainRestraint self, Model m, _SingletonContainerAdaptor sc) -> ProteinChainRestraint
1101  __init__(IMP::npc::ProteinChainRestraint self, Model m, double sigma=0.1) -> ProteinChainRestraint
1102  __init__(IMP::npc::ProteinChainRestraint self, Model m) -> ProteinChainRestraint
1103  """
1104  this = _IMP_npc.new_ProteinChainRestraint(*args)
1105  try:
1106  self.this.append(this)
1107  except __builtin__.Exception:
1108  self.this = this
1109 
1110  def add_particle(self, p):
1111  """add_particle(ProteinChainRestraint self, Particle p)"""
1112  return _IMP_npc.ProteinChainRestraint_add_particle(self, p)
1113 
1114 
1115  def add_particles(self, ps):
1116  """add_particles(ProteinChainRestraint self, IMP::ParticlesTemp const & ps)"""
1117  return _IMP_npc.ProteinChainRestraint_add_particles(self, ps)
1118 
1119 
1120  def set_particles(self, ps):
1121  """set_particles(ProteinChainRestraint self, IMP::ParticlesTemp const & ps)"""
1122  return _IMP_npc.ProteinChainRestraint_set_particles(self, ps)
1123 
1124 
1125  def do_get_inputs(self):
1126  """do_get_inputs(ProteinChainRestraint self) -> IMP::ModelObjectsTemp"""
1127  return _IMP_npc.ProteinChainRestraint_do_get_inputs(self)
1128 
1129 
1130  def get_version_info(self):
1131  """get_version_info(ProteinChainRestraint self) -> VersionInfo"""
1132  return _IMP_npc.ProteinChainRestraint_get_version_info(self)
1133 
1134 
1135  def __str__(self):
1136  """__str__(ProteinChainRestraint self) -> std::string"""
1137  return _IMP_npc.ProteinChainRestraint___str__(self)
1138 
1139 
1140  def __repr__(self):
1141  """__repr__(ProteinChainRestraint self) -> std::string"""
1142  return _IMP_npc.ProteinChainRestraint___repr__(self)
1143 
1144 
1145  @staticmethod
1146  def get_from(o):
1147  return _object_cast_to_ProteinChainRestraint(o)
1148 
1149 ProteinChainRestraint_swigregister = _IMP_npc.ProteinChainRestraint_swigregister
1150 ProteinChainRestraint_swigregister(ProteinChainRestraint)
1151 
1152 class MembraneSurfaceLocationRestraint(IMP.Restraint):
1153  """Proxy of C++ IMP::npc::MembraneSurfaceLocationRestraint class."""
1154 
1155  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1156 
1157  def __init__(self, *args):
1158  """
1159  __init__(IMP::npc::MembraneSurfaceLocationRestraint self, Model m, _SingletonContainerAdaptor sc, double R, double r, double thickness, double sigma=2) -> MembraneSurfaceLocationRestraint
1160  __init__(IMP::npc::MembraneSurfaceLocationRestraint self, Model m, _SingletonContainerAdaptor sc, double R, double r, double thickness) -> MembraneSurfaceLocationRestraint
1161  __init__(IMP::npc::MembraneSurfaceLocationRestraint self, Model m, double R, double r, double thickness, double sigma=2) -> MembraneSurfaceLocationRestraint
1162  __init__(IMP::npc::MembraneSurfaceLocationRestraint self, Model m, double R, double r, double thickness) -> MembraneSurfaceLocationRestraint
1163  """
1164  this = _IMP_npc.new_MembraneSurfaceLocationRestraint(*args)
1165  try:
1166  self.this.append(this)
1167  except __builtin__.Exception:
1168  self.this = this
1169 
1170  def add_particle(self, p):
1171  """add_particle(MembraneSurfaceLocationRestraint self, Particle p)"""
1172  return _IMP_npc.MembraneSurfaceLocationRestraint_add_particle(self, p)
1173 
1174 
1175  def add_particles(self, ps):
1176  """add_particles(MembraneSurfaceLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1177  return _IMP_npc.MembraneSurfaceLocationRestraint_add_particles(self, ps)
1178 
1179 
1180  def set_particles(self, ps):
1181  """set_particles(MembraneSurfaceLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1182  return _IMP_npc.MembraneSurfaceLocationRestraint_set_particles(self, ps)
1183 
1184 
1185  def do_get_inputs(self):
1186  """do_get_inputs(MembraneSurfaceLocationRestraint self) -> IMP::ModelObjectsTemp"""
1187  return _IMP_npc.MembraneSurfaceLocationRestraint_do_get_inputs(self)
1188 
1189 
1190  def get_version_info(self):
1191  """get_version_info(MembraneSurfaceLocationRestraint self) -> VersionInfo"""
1192  return _IMP_npc.MembraneSurfaceLocationRestraint_get_version_info(self)
1193 
1194 
1195  def __str__(self):
1196  """__str__(MembraneSurfaceLocationRestraint self) -> std::string"""
1197  return _IMP_npc.MembraneSurfaceLocationRestraint___str__(self)
1198 
1199 
1200  def __repr__(self):
1201  """__repr__(MembraneSurfaceLocationRestraint self) -> std::string"""
1202  return _IMP_npc.MembraneSurfaceLocationRestraint___repr__(self)
1203 
1204 
1205  @staticmethod
1206  def get_from(o):
1207  return _object_cast_to_MembraneSurfaceLocationRestraint(o)
1208 
1209 MembraneSurfaceLocationRestraint_swigregister = _IMP_npc.MembraneSurfaceLocationRestraint_swigregister
1210 MembraneSurfaceLocationRestraint_swigregister(MembraneSurfaceLocationRestraint)
1211 
1212 class MembraneSurfaceLocationConditionalRestraint(IMP.Restraint):
1213  """Proxy of C++ IMP::npc::MembraneSurfaceLocationConditionalRestraint class."""
1214 
1215  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1216 
1217  def __init__(self, *args):
1218  """
1219  __init__(IMP::npc::MembraneSurfaceLocationConditionalRestraint self, Model m, _SingletonContainerAdaptor sc1, _SingletonContainerAdaptor sc2, double R, double r, double thickness, double sigma=2) -> MembraneSurfaceLocationConditionalRestraint
1220  __init__(IMP::npc::MembraneSurfaceLocationConditionalRestraint self, Model m, _SingletonContainerAdaptor sc1, _SingletonContainerAdaptor sc2, double R, double r, double thickness) -> MembraneSurfaceLocationConditionalRestraint
1221  __init__(IMP::npc::MembraneSurfaceLocationConditionalRestraint self, Model m, double R, double r, double thickness, double sigma=2) -> MembraneSurfaceLocationConditionalRestraint
1222  __init__(IMP::npc::MembraneSurfaceLocationConditionalRestraint self, Model m, double R, double r, double thickness) -> MembraneSurfaceLocationConditionalRestraint
1223  """
1224  this = _IMP_npc.new_MembraneSurfaceLocationConditionalRestraint(*args)
1225  try:
1226  self.this.append(this)
1227  except __builtin__.Exception:
1228  self.this = this
1229 
1230  def add_particle1(self, p):
1231  """add_particle1(MembraneSurfaceLocationConditionalRestraint self, Particle p)"""
1232  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_add_particle1(self, p)
1233 
1234 
1235  def add_particle2(self, p):
1236  """add_particle2(MembraneSurfaceLocationConditionalRestraint self, Particle p)"""
1237  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_add_particle2(self, p)
1238 
1239 
1240  def add_particles1(self, ps):
1241  """add_particles1(MembraneSurfaceLocationConditionalRestraint self, IMP::ParticlesTemp const & ps)"""
1242  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_add_particles1(self, ps)
1243 
1244 
1245  def add_particles2(self, ps):
1246  """add_particles2(MembraneSurfaceLocationConditionalRestraint self, IMP::ParticlesTemp const & ps)"""
1247  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_add_particles2(self, ps)
1248 
1249 
1250  def set_particles1(self, ps):
1251  """set_particles1(MembraneSurfaceLocationConditionalRestraint self, IMP::ParticlesTemp const & ps)"""
1252  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_set_particles1(self, ps)
1253 
1254 
1255  def set_particles2(self, ps):
1256  """set_particles2(MembraneSurfaceLocationConditionalRestraint self, IMP::ParticlesTemp const & ps)"""
1257  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_set_particles2(self, ps)
1258 
1259 
1260  def do_get_inputs(self):
1261  """do_get_inputs(MembraneSurfaceLocationConditionalRestraint self) -> IMP::ModelObjectsTemp"""
1262  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_do_get_inputs(self)
1263 
1264 
1265  def get_version_info(self):
1266  """get_version_info(MembraneSurfaceLocationConditionalRestraint self) -> VersionInfo"""
1267  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint_get_version_info(self)
1268 
1269 
1270  def __str__(self):
1271  """__str__(MembraneSurfaceLocationConditionalRestraint self) -> std::string"""
1272  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint___str__(self)
1273 
1274 
1275  def __repr__(self):
1276  """__repr__(MembraneSurfaceLocationConditionalRestraint self) -> std::string"""
1277  return _IMP_npc.MembraneSurfaceLocationConditionalRestraint___repr__(self)
1278 
1279 
1280  @staticmethod
1281  def get_from(o):
1282  return _object_cast_to_MembraneSurfaceLocationConditionalRestraint(o)
1283 
1284 MembraneSurfaceLocationConditionalRestraint_swigregister = _IMP_npc.MembraneSurfaceLocationConditionalRestraint_swigregister
1285 MembraneSurfaceLocationConditionalRestraint_swigregister(MembraneSurfaceLocationConditionalRestraint)
1286 
1287 class MembraneExclusionRestraint(IMP.Restraint):
1288  """Proxy of C++ IMP::npc::MembraneExclusionRestraint class."""
1289 
1290  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1291 
1292  def __init__(self, *args):
1293  """
1294  __init__(IMP::npc::MembraneExclusionRestraint self, Model m, _SingletonContainerAdaptor sc, double R, double r, double thickness, double sigma=2) -> MembraneExclusionRestraint
1295  __init__(IMP::npc::MembraneExclusionRestraint self, Model m, _SingletonContainerAdaptor sc, double R, double r, double thickness) -> MembraneExclusionRestraint
1296  __init__(IMP::npc::MembraneExclusionRestraint self, Model m, double R, double r, double thickness, double sigma=2) -> MembraneExclusionRestraint
1297  __init__(IMP::npc::MembraneExclusionRestraint self, Model m, double R, double r, double thickness) -> MembraneExclusionRestraint
1298  """
1299  this = _IMP_npc.new_MembraneExclusionRestraint(*args)
1300  try:
1301  self.this.append(this)
1302  except __builtin__.Exception:
1303  self.this = this
1304 
1305  def add_particle(self, p):
1306  """add_particle(MembraneExclusionRestraint self, Particle p)"""
1307  return _IMP_npc.MembraneExclusionRestraint_add_particle(self, p)
1308 
1309 
1310  def add_particles(self, ps):
1311  """add_particles(MembraneExclusionRestraint self, IMP::ParticlesTemp const & ps)"""
1312  return _IMP_npc.MembraneExclusionRestraint_add_particles(self, ps)
1313 
1314 
1315  def set_particles(self, ps):
1316  """set_particles(MembraneExclusionRestraint self, IMP::ParticlesTemp const & ps)"""
1317  return _IMP_npc.MembraneExclusionRestraint_set_particles(self, ps)
1318 
1319 
1320  def do_get_inputs(self):
1321  """do_get_inputs(MembraneExclusionRestraint self) -> IMP::ModelObjectsTemp"""
1322  return _IMP_npc.MembraneExclusionRestraint_do_get_inputs(self)
1323 
1324 
1325  def get_version_info(self):
1326  """get_version_info(MembraneExclusionRestraint self) -> VersionInfo"""
1327  return _IMP_npc.MembraneExclusionRestraint_get_version_info(self)
1328 
1329 
1330  def __str__(self):
1331  """__str__(MembraneExclusionRestraint self) -> std::string"""
1332  return _IMP_npc.MembraneExclusionRestraint___str__(self)
1333 
1334 
1335  def __repr__(self):
1336  """__repr__(MembraneExclusionRestraint self) -> std::string"""
1337  return _IMP_npc.MembraneExclusionRestraint___repr__(self)
1338 
1339 
1340  @staticmethod
1341  def get_from(o):
1342  return _object_cast_to_MembraneExclusionRestraint(o)
1343 
1344 MembraneExclusionRestraint_swigregister = _IMP_npc.MembraneExclusionRestraint_swigregister
1345 MembraneExclusionRestraint_swigregister(MembraneExclusionRestraint)
1346 
1347 class PoreSideVolumeLocationRestraint(IMP.Restraint):
1348  """Proxy of C++ IMP::npc::PoreSideVolumeLocationRestraint class."""
1349 
1350  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1351 
1352  def __init__(self, *args):
1353  """
1354  __init__(IMP::npc::PoreSideVolumeLocationRestraint self, Model m, _SingletonContainerAdaptor sc, double R, double r, double thickness, bool consider_radius, double sigma=2) -> PoreSideVolumeLocationRestraint
1355  __init__(IMP::npc::PoreSideVolumeLocationRestraint self, Model m, _SingletonContainerAdaptor sc, double R, double r, double thickness, bool consider_radius) -> PoreSideVolumeLocationRestraint
1356  __init__(IMP::npc::PoreSideVolumeLocationRestraint self, Model m, double R, double r, double thickness, bool consider_radius, double sigma=2) -> PoreSideVolumeLocationRestraint
1357  __init__(IMP::npc::PoreSideVolumeLocationRestraint self, Model m, double R, double r, double thickness, bool consider_radius) -> PoreSideVolumeLocationRestraint
1358  """
1359  this = _IMP_npc.new_PoreSideVolumeLocationRestraint(*args)
1360  try:
1361  self.this.append(this)
1362  except __builtin__.Exception:
1363  self.this = this
1364 
1365  def add_particle(self, p):
1366  """add_particle(PoreSideVolumeLocationRestraint self, Particle p)"""
1367  return _IMP_npc.PoreSideVolumeLocationRestraint_add_particle(self, p)
1368 
1369 
1370  def add_particles(self, ps):
1371  """add_particles(PoreSideVolumeLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1372  return _IMP_npc.PoreSideVolumeLocationRestraint_add_particles(self, ps)
1373 
1374 
1375  def set_particles(self, ps):
1376  """set_particles(PoreSideVolumeLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1377  return _IMP_npc.PoreSideVolumeLocationRestraint_set_particles(self, ps)
1378 
1379 
1380  def do_get_inputs(self):
1381  """do_get_inputs(PoreSideVolumeLocationRestraint self) -> IMP::ModelObjectsTemp"""
1382  return _IMP_npc.PoreSideVolumeLocationRestraint_do_get_inputs(self)
1383 
1384 
1385  def get_version_info(self):
1386  """get_version_info(PoreSideVolumeLocationRestraint self) -> VersionInfo"""
1387  return _IMP_npc.PoreSideVolumeLocationRestraint_get_version_info(self)
1388 
1389 
1390  def __str__(self):
1391  """__str__(PoreSideVolumeLocationRestraint self) -> std::string"""
1392  return _IMP_npc.PoreSideVolumeLocationRestraint___str__(self)
1393 
1394 
1395  def __repr__(self):
1396  """__repr__(PoreSideVolumeLocationRestraint self) -> std::string"""
1397  return _IMP_npc.PoreSideVolumeLocationRestraint___repr__(self)
1398 
1399 
1400  @staticmethod
1401  def get_from(o):
1402  return _object_cast_to_PoreSideVolumeLocationRestraint(o)
1403 
1404 PoreSideVolumeLocationRestraint_swigregister = _IMP_npc.PoreSideVolumeLocationRestraint_swigregister
1405 PoreSideVolumeLocationRestraint_swigregister(PoreSideVolumeLocationRestraint)
1406 
1407 class PerinuclearVolumeLocationRestraint(IMP.Restraint):
1408  """Proxy of C++ IMP::npc::PerinuclearVolumeLocationRestraint class."""
1409 
1410  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1411 
1412  def __init__(self, *args):
1413  """
1414  __init__(IMP::npc::PerinuclearVolumeLocationRestraint self, Model m, _SingletonContainerAdaptor sc, double R, double r, double thickness, bool consider_radius, double sigma=2) -> PerinuclearVolumeLocationRestraint
1415  __init__(IMP::npc::PerinuclearVolumeLocationRestraint self, Model m, _SingletonContainerAdaptor sc, double R, double r, double thickness, bool consider_radius) -> PerinuclearVolumeLocationRestraint
1416  __init__(IMP::npc::PerinuclearVolumeLocationRestraint self, Model m, double R, double r, double thickness, bool consider_radius, double sigma=2) -> PerinuclearVolumeLocationRestraint
1417  __init__(IMP::npc::PerinuclearVolumeLocationRestraint self, Model m, double R, double r, double thickness, bool consider_radius) -> PerinuclearVolumeLocationRestraint
1418  """
1419  this = _IMP_npc.new_PerinuclearVolumeLocationRestraint(*args)
1420  try:
1421  self.this.append(this)
1422  except __builtin__.Exception:
1423  self.this = this
1424 
1425  def add_particle(self, p):
1426  """add_particle(PerinuclearVolumeLocationRestraint self, Particle p)"""
1427  return _IMP_npc.PerinuclearVolumeLocationRestraint_add_particle(self, p)
1428 
1429 
1430  def add_particles(self, ps):
1431  """add_particles(PerinuclearVolumeLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1432  return _IMP_npc.PerinuclearVolumeLocationRestraint_add_particles(self, ps)
1433 
1434 
1435  def set_particles(self, ps):
1436  """set_particles(PerinuclearVolumeLocationRestraint self, IMP::ParticlesTemp const & ps)"""
1437  return _IMP_npc.PerinuclearVolumeLocationRestraint_set_particles(self, ps)
1438 
1439 
1440  def do_get_inputs(self):
1441  """do_get_inputs(PerinuclearVolumeLocationRestraint self) -> IMP::ModelObjectsTemp"""
1442  return _IMP_npc.PerinuclearVolumeLocationRestraint_do_get_inputs(self)
1443 
1444 
1445  def get_version_info(self):
1446  """get_version_info(PerinuclearVolumeLocationRestraint self) -> VersionInfo"""
1447  return _IMP_npc.PerinuclearVolumeLocationRestraint_get_version_info(self)
1448 
1449 
1450  def __str__(self):
1451  """__str__(PerinuclearVolumeLocationRestraint self) -> std::string"""
1452  return _IMP_npc.PerinuclearVolumeLocationRestraint___str__(self)
1453 
1454 
1455  def __repr__(self):
1456  """__repr__(PerinuclearVolumeLocationRestraint self) -> std::string"""
1457  return _IMP_npc.PerinuclearVolumeLocationRestraint___repr__(self)
1458 
1459 
1460  @staticmethod
1461  def get_from(o):
1462  return _object_cast_to_PerinuclearVolumeLocationRestraint(o)
1463 
1464 PerinuclearVolumeLocationRestraint_swigregister = _IMP_npc.PerinuclearVolumeLocationRestraint_swigregister
1465 PerinuclearVolumeLocationRestraint_swigregister(PerinuclearVolumeLocationRestraint)
1466 
1467 class AssemblySymmetryByDistanceRestraint(IMP.Restraint):
1468  """Proxy of C++ IMP::npc::AssemblySymmetryByDistanceRestraint class."""
1469 
1470  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1471 
1472  def __init__(self, *args):
1473  """
1474  __init__(IMP::npc::AssemblySymmetryByDistanceRestraint self, Model m, _SingletonContainerAdaptor sc, double sigma=4) -> AssemblySymmetryByDistanceRestraint
1475  __init__(IMP::npc::AssemblySymmetryByDistanceRestraint self, Model m, _SingletonContainerAdaptor sc) -> AssemblySymmetryByDistanceRestraint
1476  __init__(IMP::npc::AssemblySymmetryByDistanceRestraint self, Model m, double sigma=4) -> AssemblySymmetryByDistanceRestraint
1477  __init__(IMP::npc::AssemblySymmetryByDistanceRestraint self, Model m) -> AssemblySymmetryByDistanceRestraint
1478  """
1479  this = _IMP_npc.new_AssemblySymmetryByDistanceRestraint(*args)
1480  try:
1481  self.this.append(this)
1482  except __builtin__.Exception:
1483  self.this = this
1484 
1485  def add_particle(self, p):
1486  """add_particle(AssemblySymmetryByDistanceRestraint self, Particle p)"""
1487  return _IMP_npc.AssemblySymmetryByDistanceRestraint_add_particle(self, p)
1488 
1489 
1490  def add_particles(self, ps):
1491  """add_particles(AssemblySymmetryByDistanceRestraint self, IMP::ParticlesTemp const & ps)"""
1492  return _IMP_npc.AssemblySymmetryByDistanceRestraint_add_particles(self, ps)
1493 
1494 
1495  def set_particles(self, ps):
1496  """set_particles(AssemblySymmetryByDistanceRestraint self, IMP::ParticlesTemp const & ps)"""
1497  return _IMP_npc.AssemblySymmetryByDistanceRestraint_set_particles(self, ps)
1498 
1499 
1500  def do_get_inputs(self):
1501  """do_get_inputs(AssemblySymmetryByDistanceRestraint self) -> IMP::ModelObjectsTemp"""
1502  return _IMP_npc.AssemblySymmetryByDistanceRestraint_do_get_inputs(self)
1503 
1504 
1505  def get_version_info(self):
1506  """get_version_info(AssemblySymmetryByDistanceRestraint self) -> VersionInfo"""
1507  return _IMP_npc.AssemblySymmetryByDistanceRestraint_get_version_info(self)
1508 
1509 
1510  def __str__(self):
1511  """__str__(AssemblySymmetryByDistanceRestraint self) -> std::string"""
1512  return _IMP_npc.AssemblySymmetryByDistanceRestraint___str__(self)
1513 
1514 
1515  def __repr__(self):
1516  """__repr__(AssemblySymmetryByDistanceRestraint self) -> std::string"""
1517  return _IMP_npc.AssemblySymmetryByDistanceRestraint___repr__(self)
1518 
1519 
1520  @staticmethod
1521  def get_from(o):
1522  return _object_cast_to_AssemblySymmetryByDistanceRestraint(o)
1523 
1524 AssemblySymmetryByDistanceRestraint_swigregister = _IMP_npc.AssemblySymmetryByDistanceRestraint_swigregister
1525 AssemblySymmetryByDistanceRestraint_swigregister(AssemblySymmetryByDistanceRestraint)
1526 
1527 class AssemblySymmetryByDihedralRestraint(IMP.Restraint):
1528  """Proxy of C++ IMP::npc::AssemblySymmetryByDihedralRestraint class."""
1529 
1530  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1531 
1532  def __init__(self, *args):
1533  """
1534  __init__(IMP::npc::AssemblySymmetryByDihedralRestraint self, Model m, _SingletonContainerAdaptor sc, double sigma=0.1) -> AssemblySymmetryByDihedralRestraint
1535  __init__(IMP::npc::AssemblySymmetryByDihedralRestraint self, Model m, _SingletonContainerAdaptor sc) -> AssemblySymmetryByDihedralRestraint
1536  __init__(IMP::npc::AssemblySymmetryByDihedralRestraint self, Model m, double sigma=0.1) -> AssemblySymmetryByDihedralRestraint
1537  __init__(IMP::npc::AssemblySymmetryByDihedralRestraint self, Model m) -> AssemblySymmetryByDihedralRestraint
1538  """
1539  this = _IMP_npc.new_AssemblySymmetryByDihedralRestraint(*args)
1540  try:
1541  self.this.append(this)
1542  except __builtin__.Exception:
1543  self.this = this
1544 
1545  def add_particle(self, p):
1546  """add_particle(AssemblySymmetryByDihedralRestraint self, Particle p)"""
1547  return _IMP_npc.AssemblySymmetryByDihedralRestraint_add_particle(self, p)
1548 
1549 
1550  def add_particles(self, ps):
1551  """add_particles(AssemblySymmetryByDihedralRestraint self, IMP::ParticlesTemp const & ps)"""
1552  return _IMP_npc.AssemblySymmetryByDihedralRestraint_add_particles(self, ps)
1553 
1554 
1555  def set_particles(self, ps):
1556  """set_particles(AssemblySymmetryByDihedralRestraint self, IMP::ParticlesTemp const & ps)"""
1557  return _IMP_npc.AssemblySymmetryByDihedralRestraint_set_particles(self, ps)
1558 
1559 
1560  def do_get_inputs(self):
1561  """do_get_inputs(AssemblySymmetryByDihedralRestraint self) -> IMP::ModelObjectsTemp"""
1562  return _IMP_npc.AssemblySymmetryByDihedralRestraint_do_get_inputs(self)
1563 
1564 
1565  def get_version_info(self):
1566  """get_version_info(AssemblySymmetryByDihedralRestraint self) -> VersionInfo"""
1567  return _IMP_npc.AssemblySymmetryByDihedralRestraint_get_version_info(self)
1568 
1569 
1570  def __str__(self):
1571  """__str__(AssemblySymmetryByDihedralRestraint self) -> std::string"""
1572  return _IMP_npc.AssemblySymmetryByDihedralRestraint___str__(self)
1573 
1574 
1575  def __repr__(self):
1576  """__repr__(AssemblySymmetryByDihedralRestraint self) -> std::string"""
1577  return _IMP_npc.AssemblySymmetryByDihedralRestraint___repr__(self)
1578 
1579 
1580  @staticmethod
1581  def get_from(o):
1582  return _object_cast_to_AssemblySymmetryByDihedralRestraint(o)
1583 
1584 AssemblySymmetryByDihedralRestraint_swigregister = _IMP_npc.AssemblySymmetryByDihedralRestraint_swigregister
1585 AssemblySymmetryByDihedralRestraint_swigregister(AssemblySymmetryByDihedralRestraint)
1586 
1587 class ProteinProximityRestraint(IMP.Restraint):
1588  """Proxy of C++ IMP::npc::ProteinProximityRestraint class."""
1589 
1590  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1591 
1592  def __init__(self, *args):
1593  """
1594  __init__(IMP::npc::ProteinProximityRestraint self, Model m, _SingletonContainerAdaptor sc, double max_dist, double sigma=0.1) -> ProteinProximityRestraint
1595  __init__(IMP::npc::ProteinProximityRestraint self, Model m, _SingletonContainerAdaptor sc, double max_dist) -> ProteinProximityRestraint
1596  __init__(IMP::npc::ProteinProximityRestraint self, Model m, double max_dist, double sigma=0.1) -> ProteinProximityRestraint
1597  __init__(IMP::npc::ProteinProximityRestraint self, Model m, double max_dist) -> ProteinProximityRestraint
1598  """
1599  this = _IMP_npc.new_ProteinProximityRestraint(*args)
1600  try:
1601  self.this.append(this)
1602  except __builtin__.Exception:
1603  self.this = this
1604 
1605  def add_particle(self, p):
1606  """add_particle(ProteinProximityRestraint self, Particle p)"""
1607  return _IMP_npc.ProteinProximityRestraint_add_particle(self, p)
1608 
1609 
1610  def add_particles(self, ps):
1611  """add_particles(ProteinProximityRestraint self, IMP::ParticlesTemp const & ps)"""
1612  return _IMP_npc.ProteinProximityRestraint_add_particles(self, ps)
1613 
1614 
1615  def set_particles(self, ps):
1616  """set_particles(ProteinProximityRestraint self, IMP::ParticlesTemp const & ps)"""
1617  return _IMP_npc.ProteinProximityRestraint_set_particles(self, ps)
1618 
1619 
1620  def do_get_inputs(self):
1621  """do_get_inputs(ProteinProximityRestraint self) -> IMP::ModelObjectsTemp"""
1622  return _IMP_npc.ProteinProximityRestraint_do_get_inputs(self)
1623 
1624 
1625  def get_version_info(self):
1626  """get_version_info(ProteinProximityRestraint self) -> VersionInfo"""
1627  return _IMP_npc.ProteinProximityRestraint_get_version_info(self)
1628 
1629 
1630  def __str__(self):
1631  """__str__(ProteinProximityRestraint self) -> std::string"""
1632  return _IMP_npc.ProteinProximityRestraint___str__(self)
1633 
1634 
1635  def __repr__(self):
1636  """__repr__(ProteinProximityRestraint self) -> std::string"""
1637  return _IMP_npc.ProteinProximityRestraint___repr__(self)
1638 
1639 
1640  @staticmethod
1641  def get_from(o):
1642  return _object_cast_to_ProteinProximityRestraint(o)
1643 
1644 ProteinProximityRestraint_swigregister = _IMP_npc.ProteinProximityRestraint_swigregister
1645 ProteinProximityRestraint_swigregister(ProteinProximityRestraint)
1646 
1647 class CompositeRestraint(IMP.Restraint):
1648  """Proxy of C++ IMP::npc::CompositeRestraint class."""
1649 
1650  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1651 
1652  def __init__(self, m, ps):
1653  """__init__(IMP::npc::CompositeRestraint self, Model m, PairScore ps) -> CompositeRestraint"""
1654  this = _IMP_npc.new_CompositeRestraint(m, ps)
1655  try:
1656  self.this.append(this)
1657  except __builtin__.Exception:
1658  self.this = this
1659 
1660  def add_type(self, ps):
1661  """add_type(CompositeRestraint self, IMP::ParticleIndexes ps)"""
1662  return _IMP_npc.CompositeRestraint_add_type(self, ps)
1663 
1664 
1665  def get_connected_pairs(self):
1666  """get_connected_pairs(CompositeRestraint self) -> IMP::ParticleIndexPairs"""
1667  return _IMP_npc.CompositeRestraint_get_connected_pairs(self)
1668 
1669 
1670  def do_get_inputs(self):
1671  """do_get_inputs(CompositeRestraint self) -> IMP::ModelObjectsTemp"""
1672  return _IMP_npc.CompositeRestraint_do_get_inputs(self)
1673 
1674 
1675  def get_version_info(self):
1676  """get_version_info(CompositeRestraint self) -> VersionInfo"""
1677  return _IMP_npc.CompositeRestraint_get_version_info(self)
1678 
1679 
1680  def __str__(self):
1681  """__str__(CompositeRestraint self) -> std::string"""
1682  return _IMP_npc.CompositeRestraint___str__(self)
1683 
1684 
1685  def __repr__(self):
1686  """__repr__(CompositeRestraint self) -> std::string"""
1687  return _IMP_npc.CompositeRestraint___repr__(self)
1688 
1689 
1690  @staticmethod
1691  def get_from(o):
1692  return _object_cast_to_CompositeRestraint(o)
1693 
1694 CompositeRestraint_swigregister = _IMP_npc.CompositeRestraint_swigregister
1695 CompositeRestraint_swigregister(CompositeRestraint)
1696 
1697 class MinimumSphereDistancePairScore(IMP.PairScore):
1698  """Proxy of C++ IMP::npc::MinimumSphereDistancePairScore class."""
1699 
1700  thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1701 
1702  def __init__(self, f, transforms):
1703  """__init__(IMP::npc::MinimumSphereDistancePairScore self, UnaryFunction f, IMP::algebra::Transformation3Ds transforms) -> MinimumSphereDistancePairScore"""
1704  this = _IMP_npc.new_MinimumSphereDistancePairScore(f, transforms)
1705  try:
1706  self.this.append(this)
1707  except __builtin__.Exception:
1708  self.this = this
1709 
1710  def do_get_inputs(self, m, pis):
1711  """do_get_inputs(MinimumSphereDistancePairScore self, Model m, IMP::ParticleIndexes const & pis) -> IMP::ModelObjectsTemp"""
1712  return _IMP_npc.MinimumSphereDistancePairScore_do_get_inputs(self, m, pis)
1713 
1714 
1715  def get_version_info(self):
1716  """get_version_info(MinimumSphereDistancePairScore self) -> VersionInfo"""
1717  return _IMP_npc.MinimumSphereDistancePairScore_get_version_info(self)
1718 
1719 
1720  def __str__(self):
1721  """__str__(MinimumSphereDistancePairScore self) -> std::string"""
1722  return _IMP_npc.MinimumSphereDistancePairScore___str__(self)
1723 
1724 
1725  def __repr__(self):
1726  """__repr__(MinimumSphereDistancePairScore self) -> std::string"""
1727  return _IMP_npc.MinimumSphereDistancePairScore___repr__(self)
1728 
1729 
1730  @staticmethod
1731  def get_from(o):
1732  return _object_cast_to_MinimumSphereDistancePairScore(o)
1733 
1734 MinimumSphereDistancePairScore_swigregister = _IMP_npc.MinimumSphereDistancePairScore_swigregister
1735 MinimumSphereDistancePairScore_swigregister(MinimumSphereDistancePairScore)
1736 
1737 
1738 def get_module_version():
1739  """get_module_version() -> std::string const"""
1740  return _IMP_npc.get_module_version()
1741 
1742 def get_example_path(fname):
1743  """get_example_path(std::string fname) -> std::string"""
1744  return _IMP_npc.get_example_path(fname)
1745 
1746 def get_data_path(fname):
1747  """get_data_path(std::string fname) -> std::string"""
1748  return _IMP_npc.get_data_path(fname)
1749 
1750 from . import _version_check
1751 _version_check.check_version(get_module_version())
1752 __version__ = get_module_version()
1753 
1754 
1755 
Abstract class for scoring object(s) of type ParticleIndexPair.
Definition: PairScore.h:37
std::string get_example_path(std::string file_name)
Return the full path to one of this module's example files.
void add_particles(RMF::FileHandle fh, const ParticlesTemp &hs)
Make CGAL functionality available to IMP.
std::string get_data_path(std::string file_name)
Return the full path to one of this module's data files.
void add_particle(RMF::FileHandle fh, Particle *hs)
Composable functors to implement scores via compile-time composition.
Basic functionality that is expected to be used by a wide variety of IMP users.
General purpose algebraic and geometric methods that are expected to be used by a wide variety of IMP...
Output IMP model data in various file formats.
A restraint is a term in an IMP ScoringFunction.
Definition: Restraint.h:54