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