IMP  2.1.0
The Integrative Modeling Platform
example/__init__.py
1 # This file was automatically generated by SWIG (http://www.swig.org).
2 # Version 2.0.11
3 #
4 # Do not make changes to this file unless you know what you are doing--modify
5 # the SWIG interface file instead.
6 
7 
8 
9 
10 
11 from sys import version_info
12 if version_info >= (2,6,0):
13  def swig_import_helper():
14  from os.path import dirname
15  import imp
16  fp = None
17  try:
18  fp, pathname, description = imp.find_module('_IMP_example', [dirname(__file__)])
19  except ImportError:
20  import _IMP_example
21  return _IMP_example
22  if fp is not None:
23  try:
24  _mod = imp.load_module('_IMP_example', fp, pathname, description)
25  finally:
26  fp.close()
27  return _mod
28  _IMP_example = swig_import_helper()
29  del swig_import_helper
30 else:
31  import _IMP_example
32 del version_info
33 try:
34  _swig_property = property
35 except NameError:
36  pass # Python < 2.2 doesn't have 'property'.
37 def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
38  if (name == "thisown"): return self.this.own(value)
39  if (name == "this"):
40  if type(value).__name__ == 'SwigPyObject':
41  self.__dict__[name] = value
42  return
43  method = class_type.__swig_setmethods__.get(name,None)
44  if method: return method(self,value)
45  if (not static):
46  self.__dict__[name] = value
47  else:
48  raise AttributeError("You cannot add attributes to %s" % self)
49 
50 def _swig_setattr(self,class_type,name,value):
51  return _swig_setattr_nondynamic(self,class_type,name,value,0)
52 
53 def _swig_getattr(self,class_type,name):
54  if (name == "thisown"): return self.this.own()
55  method = class_type.__swig_getmethods__.get(name,None)
56  if method: return method(self)
57  raise AttributeError(name)
58 
59 def _swig_repr(self):
60  try: strthis = "proxy of " + self.this.__repr__()
61  except: strthis = ""
62  return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
63 
64 try:
65  _object = object
66  _newclass = 1
67 except AttributeError:
68  class _object : pass
69  _newclass = 0
70 
71 
72 try:
73  import weakref
74  weakref_proxy = weakref.proxy
75 except:
76  weakref_proxy = lambda x: x
77 
78 
79 class IMP_EXAMPLE_SwigPyIterator(_object):
80  """Proxy of C++ swig::IMP_EXAMPLE_SwigPyIterator class"""
81  __swig_setmethods__ = {}
82  __setattr__ = lambda self, name, value: _swig_setattr(self, IMP_EXAMPLE_SwigPyIterator, name, value)
83  __swig_getmethods__ = {}
84  __getattr__ = lambda self, name: _swig_getattr(self, IMP_EXAMPLE_SwigPyIterator, name)
85  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract")
86  __repr__ = _swig_repr
87  __swig_destroy__ = _IMP_example.delete_IMP_EXAMPLE_SwigPyIterator
88  __del__ = lambda self : None;
89  def value(self):
90  """value(IMP_EXAMPLE_SwigPyIterator self) -> PyObject *"""
91  return _IMP_example.IMP_EXAMPLE_SwigPyIterator_value(self)
92 
93  def incr(self, n=1):
94  """
95  incr(IMP_EXAMPLE_SwigPyIterator self, size_t n=1) -> IMP_EXAMPLE_SwigPyIterator
96  incr(IMP_EXAMPLE_SwigPyIterator self) -> IMP_EXAMPLE_SwigPyIterator
97  """
98  return _IMP_example.IMP_EXAMPLE_SwigPyIterator_incr(self, n)
99 
100  def decr(self, n=1):
101  """
102  decr(IMP_EXAMPLE_SwigPyIterator self, size_t n=1) -> IMP_EXAMPLE_SwigPyIterator
103  decr(IMP_EXAMPLE_SwigPyIterator self) -> IMP_EXAMPLE_SwigPyIterator
104  """
105  return _IMP_example.IMP_EXAMPLE_SwigPyIterator_decr(self, n)
106 
107  def distance(self, *args):
108  """distance(IMP_EXAMPLE_SwigPyIterator self, IMP_EXAMPLE_SwigPyIterator x) -> ptrdiff_t"""
109  return _IMP_example.IMP_EXAMPLE_SwigPyIterator_distance(self, *args)
110 
111  def equal(self, *args):
112  """equal(IMP_EXAMPLE_SwigPyIterator self, IMP_EXAMPLE_SwigPyIterator x) -> bool"""
113  return _IMP_example.IMP_EXAMPLE_SwigPyIterator_equal(self, *args)
114 
115  def copy(self):
116  """copy(IMP_EXAMPLE_SwigPyIterator self) -> IMP_EXAMPLE_SwigPyIterator"""
117  return _IMP_example.IMP_EXAMPLE_SwigPyIterator_copy(self)
118 
119  def next(self):
120  """next(IMP_EXAMPLE_SwigPyIterator self) -> PyObject *"""
121  return _IMP_example.IMP_EXAMPLE_SwigPyIterator_next(self)
122 
123  def __next__(self):
124  """__next__(IMP_EXAMPLE_SwigPyIterator self) -> PyObject *"""
125  return _IMP_example.IMP_EXAMPLE_SwigPyIterator___next__(self)
126 
127  def previous(self):
128  """previous(IMP_EXAMPLE_SwigPyIterator self) -> PyObject *"""
129  return _IMP_example.IMP_EXAMPLE_SwigPyIterator_previous(self)
130 
131  def advance(self, *args):
132  """advance(IMP_EXAMPLE_SwigPyIterator self, ptrdiff_t n) -> IMP_EXAMPLE_SwigPyIterator"""
133  return _IMP_example.IMP_EXAMPLE_SwigPyIterator_advance(self, *args)
134 
135  def __eq__(self, *args):
136  """__eq__(IMP_EXAMPLE_SwigPyIterator self, IMP_EXAMPLE_SwigPyIterator x) -> bool"""
137  return _IMP_example.IMP_EXAMPLE_SwigPyIterator___eq__(self, *args)
138 
139  def __ne__(self, *args):
140  """__ne__(IMP_EXAMPLE_SwigPyIterator self, IMP_EXAMPLE_SwigPyIterator x) -> bool"""
141  return _IMP_example.IMP_EXAMPLE_SwigPyIterator___ne__(self, *args)
142 
143  def __iadd__(self, *args):
144  """__iadd__(IMP_EXAMPLE_SwigPyIterator self, ptrdiff_t n) -> IMP_EXAMPLE_SwigPyIterator"""
145  return _IMP_example.IMP_EXAMPLE_SwigPyIterator___iadd__(self, *args)
146 
147  def __isub__(self, *args):
148  """__isub__(IMP_EXAMPLE_SwigPyIterator self, ptrdiff_t n) -> IMP_EXAMPLE_SwigPyIterator"""
149  return _IMP_example.IMP_EXAMPLE_SwigPyIterator___isub__(self, *args)
150 
151  def __add__(self, *args):
152  """__add__(IMP_EXAMPLE_SwigPyIterator self, ptrdiff_t n) -> IMP_EXAMPLE_SwigPyIterator"""
153  return _IMP_example.IMP_EXAMPLE_SwigPyIterator___add__(self, *args)
154 
155  def __sub__(self, *args):
156  """
157  __sub__(IMP_EXAMPLE_SwigPyIterator self, ptrdiff_t n) -> IMP_EXAMPLE_SwigPyIterator
158  __sub__(IMP_EXAMPLE_SwigPyIterator self, IMP_EXAMPLE_SwigPyIterator x) -> ptrdiff_t
159  """
160  return _IMP_example.IMP_EXAMPLE_SwigPyIterator___sub__(self, *args)
161 
162  def __iter__(self): return self
163 IMP_EXAMPLE_SwigPyIterator_swigregister = _IMP_example.IMP_EXAMPLE_SwigPyIterator_swigregister
164 IMP_EXAMPLE_SwigPyIterator_swigregister(IMP_EXAMPLE_SwigPyIterator)
165 
166 _value_types=[]
167 _object_types=[]
168 _raii_types=[]
169 _plural_types=[]
170 
171 IMP_DEBUG = _IMP_example.IMP_DEBUG
172 IMP_RELEASE = _IMP_example.IMP_RELEASE
173 IMP_SILENT = _IMP_example.IMP_SILENT
174 IMP_PROGRESS = _IMP_example.IMP_PROGRESS
175 IMP_TERSE = _IMP_example.IMP_TERSE
176 IMP_VERBOSE = _IMP_example.IMP_VERBOSE
177 IMP_MEMORY = _IMP_example.IMP_MEMORY
178 IMP_NONE = _IMP_example.IMP_NONE
179 IMP_USAGE = _IMP_example.IMP_USAGE
180 IMP_INTERNAL = _IMP_example.IMP_INTERNAL
181 IMP_BASE_HAS_LOG4CXX = _IMP_example.IMP_BASE_HAS_LOG4CXX
182 IMP_COMPILER_HAS_AUTO = _IMP_example.IMP_COMPILER_HAS_AUTO
183 IMP_COMPILER_HAS_DEBUG_VECTOR = _IMP_example.IMP_COMPILER_HAS_DEBUG_VECTOR
184 IMP_BASE_HAS_BOOST_RANDOM = _IMP_example.IMP_BASE_HAS_BOOST_RANDOM
185 IMP_BASE_HAS_GPERFTOOLS = _IMP_example.IMP_BASE_HAS_GPERFTOOLS
186 IMP_BASE_HAS_TCMALLOC_HEAPCHECKER = _IMP_example.IMP_BASE_HAS_TCMALLOC_HEAPCHECKER
187 IMP_BASE_HAS_TCMALLOC_HEAPPROFILER = _IMP_example.IMP_BASE_HAS_TCMALLOC_HEAPPROFILER
188 IMPBASE_SHOW_WARNINGS = _IMP_example.IMPBASE_SHOW_WARNINGS
189 import sys
190 class _DirectorObjects(object):
191  """@internal Simple class to keep references to director objects
192  to prevent premature deletion."""
193  def __init__(self):
194  self._objects = []
195  def register(self, obj):
196  """Take a reference to a director object; will only work for
197  refcounted C++ classes"""
198  if hasattr(obj, 'get_ref_count'):
199  self._objects.append(obj)
200  def cleanup(self):
201  """Only drop our reference and allow cleanup by Python if no other
202  Python references exist (we hold 3 references: one in self._objects,
203  one in x, and one in the argument list for getrefcount) *and* no
204  other C++ references exist (the Python object always holds one)"""
205  objs = [x for x in self._objects if sys.getrefcount(x) > 3 \
206  or x.get_ref_count() > 1]
207 
208 
209  self._objects = objs
210  def get_object_count(self):
211  """Get number of director objects (useful for testing only)"""
212  return len(self._objects)
213 _director_objects = _DirectorObjects()
214 
215 DEFAULT_CHECK = _IMP_example.DEFAULT_CHECK
216 NONE = _IMP_example.NONE
217 USAGE = _IMP_example.USAGE
218 USAGE_AND_INTERNAL = _IMP_example.USAGE_AND_INTERNAL
219 
220 def set_check_level(*args):
221  """set_check_level(IMP::base::CheckLevel tf)"""
222  return _IMP_example.set_check_level(*args)
223 
224 def get_check_level():
225  """get_check_level() -> IMP::base::CheckLevel"""
226  return _IMP_example.get_check_level()
227 class _ostream(_object):
228  """Proxy of C++ std::ostream class"""
229  __swig_setmethods__ = {}
230  __setattr__ = lambda self, name, value: _swig_setattr(self, _ostream, name, value)
231  __swig_getmethods__ = {}
232  __getattr__ = lambda self, name: _swig_getattr(self, _ostream, name)
233  def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined")
234  __repr__ = _swig_repr
235  def write(self, *args):
236  """write(_ostream self, char const * osa_buf)"""
237  return _IMP_example._ostream_write(self, *args)
238 
239 _ostream_swigregister = _IMP_example._ostream_swigregister
240 _ostream_swigregister(_ostream)
241 
242 IMP_COMPILER_HAS_OVERRIDE = _IMP_example.IMP_COMPILER_HAS_OVERRIDE
243 IMP_COMPILER_HAS_FINAL = _IMP_example.IMP_COMPILER_HAS_FINAL
244 IMP_HAS_NOEXCEPT = _IMP_example.IMP_HAS_NOEXCEPT
245 import IMP.base
246 IMP_CGAL_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_CGAL_HAS_BOOST_FILESYSTEM
247 IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_CGAL_HAS_BOOST_PROGRAMOPTIONS
248 IMP_CGAL_HAS_BOOST_RANDOM = _IMP_example.IMP_CGAL_HAS_BOOST_RANDOM
249 IMP_CGAL_HAS_BOOST_SYSTEM = _IMP_example.IMP_CGAL_HAS_BOOST_SYSTEM
250 IMPCGAL_SHOW_WARNINGS = _IMP_example.IMPCGAL_SHOW_WARNINGS
251 import IMP.cgal
252 IMP_ALGEBRA_HAS_IMP_CGAL = _IMP_example.IMP_ALGEBRA_HAS_IMP_CGAL
253 IMP_ALGEBRA_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_ALGEBRA_HAS_BOOST_FILESYSTEM
254 IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_ALGEBRA_HAS_BOOST_PROGRAMOPTIONS
255 IMP_ALGEBRA_HAS_BOOST_RANDOM = _IMP_example.IMP_ALGEBRA_HAS_BOOST_RANDOM
256 IMP_ALGEBRA_HAS_BOOST_SYSTEM = _IMP_example.IMP_ALGEBRA_HAS_BOOST_SYSTEM
257 IMP_ALGEBRA_HAS_CGAL = _IMP_example.IMP_ALGEBRA_HAS_CGAL
258 IMP_ALGEBRA_HAS_ANN = _IMP_example.IMP_ALGEBRA_HAS_ANN
259 IMPALGEBRA_SHOW_WARNINGS = _IMP_example.IMPALGEBRA_SHOW_WARNINGS
260 import IMP.algebra
261 IMP_KERNEL_HAS_IMP_CGAL = _IMP_example.IMP_KERNEL_HAS_IMP_CGAL
262 IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_KERNEL_HAS_BOOST_PROGRAMOPTIONS
263 IMP_KERNEL_HAS_BOOST_RANDOM = _IMP_example.IMP_KERNEL_HAS_BOOST_RANDOM
264 IMP_KERNEL_HAS_BOOST_SYSTEM = _IMP_example.IMP_KERNEL_HAS_BOOST_SYSTEM
265 IMP_KERNEL_HAS_CGAL = _IMP_example.IMP_KERNEL_HAS_CGAL
266 IMPKERNEL_SHOW_WARNINGS = _IMP_example.IMPKERNEL_SHOW_WARNINGS
267 import IMP.kernel
268 IMP_DISPLAY_HAS_IMP_BASE = _IMP_example.IMP_DISPLAY_HAS_IMP_BASE
269 IMP_DISPLAY_HAS_IMP_CGAL = _IMP_example.IMP_DISPLAY_HAS_IMP_CGAL
270 IMP_DISPLAY_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_DISPLAY_HAS_BOOST_FILESYSTEM
271 IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_DISPLAY_HAS_BOOST_PROGRAMOPTIONS
272 IMP_DISPLAY_HAS_BOOST_RANDOM = _IMP_example.IMP_DISPLAY_HAS_BOOST_RANDOM
273 IMP_DISPLAY_HAS_BOOST_SYSTEM = _IMP_example.IMP_DISPLAY_HAS_BOOST_SYSTEM
274 IMP_DISPLAY_HAS_CGAL = _IMP_example.IMP_DISPLAY_HAS_CGAL
275 IMPDISPLAY_SHOW_WARNINGS = _IMP_example.IMPDISPLAY_SHOW_WARNINGS
276 import IMP.display
277 IMP_SCORE_FUNCTOR_HAS_IMP_CGAL = _IMP_example.IMP_SCORE_FUNCTOR_HAS_IMP_CGAL
278 IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_SCORE_FUNCTOR_HAS_BOOST_FILESYSTEM
279 IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_SCORE_FUNCTOR_HAS_BOOST_PROGRAMOPTIONS
280 IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM = _IMP_example.IMP_SCORE_FUNCTOR_HAS_BOOST_RANDOM
281 IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM = _IMP_example.IMP_SCORE_FUNCTOR_HAS_BOOST_SYSTEM
282 IMP_SCORE_FUNCTOR_HAS_CGAL = _IMP_example.IMP_SCORE_FUNCTOR_HAS_CGAL
283 IMPSCOREFUNCTOR_SHOW_WARNINGS = _IMP_example.IMPSCOREFUNCTOR_SHOW_WARNINGS
284 import IMP.score_functor
285 IMP_STATISTICS_HAS_IMP_BASE = _IMP_example.IMP_STATISTICS_HAS_IMP_BASE
286 IMP_STATISTICS_HAS_IMP_CGAL = _IMP_example.IMP_STATISTICS_HAS_IMP_CGAL
287 IMP_STATISTICS_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_STATISTICS_HAS_BOOST_FILESYSTEM
288 IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_STATISTICS_HAS_BOOST_PROGRAMOPTIONS
289 IMP_STATISTICS_HAS_BOOST_RANDOM = _IMP_example.IMP_STATISTICS_HAS_BOOST_RANDOM
290 IMP_STATISTICS_HAS_BOOST_SYSTEM = _IMP_example.IMP_STATISTICS_HAS_BOOST_SYSTEM
291 IMP_STATISTICS_HAS_CGAL = _IMP_example.IMP_STATISTICS_HAS_CGAL
292 IMPSTATISTICS_SHOW_WARNINGS = _IMP_example.IMPSTATISTICS_SHOW_WARNINGS
293 import IMP.statistics
294 IMP_CORE_HAS_IMP_BASE = _IMP_example.IMP_CORE_HAS_IMP_BASE
295 IMP_CORE_HAS_IMP_CGAL = _IMP_example.IMP_CORE_HAS_IMP_CGAL
296 IMP_CORE_HAS_IMP_KERNEL = _IMP_example.IMP_CORE_HAS_IMP_KERNEL
297 IMP_CORE_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_CORE_HAS_BOOST_FILESYSTEM
298 IMP_CORE_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_CORE_HAS_BOOST_PROGRAMOPTIONS
299 IMP_CORE_HAS_BOOST_RANDOM = _IMP_example.IMP_CORE_HAS_BOOST_RANDOM
300 IMP_CORE_HAS_BOOST_SYSTEM = _IMP_example.IMP_CORE_HAS_BOOST_SYSTEM
301 IMP_CORE_HAS_CGAL = _IMP_example.IMP_CORE_HAS_CGAL
302 IMPCORE_SHOW_WARNINGS = _IMP_example.IMPCORE_SHOW_WARNINGS
303 import IMP.core
304 IMP_CONTAINER_HAS_IMP_ALGEBRA = _IMP_example.IMP_CONTAINER_HAS_IMP_ALGEBRA
305 IMP_CONTAINER_HAS_IMP_BASE = _IMP_example.IMP_CONTAINER_HAS_IMP_BASE
306 IMP_CONTAINER_HAS_IMP_CGAL = _IMP_example.IMP_CONTAINER_HAS_IMP_CGAL
307 IMP_CONTAINER_HAS_IMP_DISPLAY = _IMP_example.IMP_CONTAINER_HAS_IMP_DISPLAY
308 IMP_CONTAINER_HAS_IMP_KERNEL = _IMP_example.IMP_CONTAINER_HAS_IMP_KERNEL
309 IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR = _IMP_example.IMP_CONTAINER_HAS_IMP_SCORE_FUNCTOR
310 IMP_CONTAINER_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_CONTAINER_HAS_BOOST_FILESYSTEM
311 IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_CONTAINER_HAS_BOOST_PROGRAMOPTIONS
312 IMP_CONTAINER_HAS_BOOST_RANDOM = _IMP_example.IMP_CONTAINER_HAS_BOOST_RANDOM
313 IMP_CONTAINER_HAS_BOOST_SYSTEM = _IMP_example.IMP_CONTAINER_HAS_BOOST_SYSTEM
314 IMP_CONTAINER_HAS_CGAL = _IMP_example.IMP_CONTAINER_HAS_CGAL
315 IMPCONTAINER_SHOW_WARNINGS = _IMP_example.IMPCONTAINER_SHOW_WARNINGS
316 import IMP.container
317 IMP_ATOM_HAS_IMP_BASE = _IMP_example.IMP_ATOM_HAS_IMP_BASE
318 IMP_ATOM_HAS_IMP_CGAL = _IMP_example.IMP_ATOM_HAS_IMP_CGAL
319 IMP_ATOM_HAS_IMP_KERNEL = _IMP_example.IMP_ATOM_HAS_IMP_KERNEL
320 IMP_ATOM_HAS_IMP_SCORE_FUNCTOR = _IMP_example.IMP_ATOM_HAS_IMP_SCORE_FUNCTOR
321 IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_ATOM_HAS_BOOST_PROGRAMOPTIONS
322 IMP_ATOM_HAS_BOOST_RANDOM = _IMP_example.IMP_ATOM_HAS_BOOST_RANDOM
323 IMP_ATOM_HAS_BOOST_REGEX = _IMP_example.IMP_ATOM_HAS_BOOST_REGEX
324 IMP_ATOM_HAS_BOOST_SYSTEM = _IMP_example.IMP_ATOM_HAS_BOOST_SYSTEM
325 IMP_ATOM_HAS_CGAL = _IMP_example.IMP_ATOM_HAS_CGAL
326 IMPATOM_SHOW_WARNINGS = _IMP_example.IMPATOM_SHOW_WARNINGS
327 IMP_ATOM_TYPE_INDEX = _IMP_example.IMP_ATOM_TYPE_INDEX
328 IMP_RESIDUE_TYPE_INDEX = _IMP_example.IMP_RESIDUE_TYPE_INDEX
329 IMP_HIERARCHY_TYPE_INDEX = _IMP_example.IMP_HIERARCHY_TYPE_INDEX
330 import IMP.atom
331 IMP_RMF_HAS_IMP_BASE = _IMP_example.IMP_RMF_HAS_IMP_BASE
332 IMP_RMF_HAS_IMP_CGAL = _IMP_example.IMP_RMF_HAS_IMP_CGAL
333 IMP_RMF_HAS_IMP_SCORE_FUNCTOR = _IMP_example.IMP_RMF_HAS_IMP_SCORE_FUNCTOR
334 IMP_RMF_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_RMF_HAS_BOOST_FILESYSTEM
335 IMP_RMF_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_RMF_HAS_BOOST_PROGRAMOPTIONS
336 IMP_RMF_HAS_BOOST_RANDOM = _IMP_example.IMP_RMF_HAS_BOOST_RANDOM
337 IMP_RMF_HAS_BOOST_REGEX = _IMP_example.IMP_RMF_HAS_BOOST_REGEX
338 IMP_RMF_HAS_BOOST_SYSTEM = _IMP_example.IMP_RMF_HAS_BOOST_SYSTEM
339 IMP_RMF_HAS_CGAL = _IMP_example.IMP_RMF_HAS_CGAL
340 IMPRMF_SHOW_WARNINGS = _IMP_example.IMPRMF_SHOW_WARNINGS
341 import IMP.rmf
342 import RMF
343 IMP_DOMINO_HAS_IMP_ATOM = _IMP_example.IMP_DOMINO_HAS_IMP_ATOM
344 IMP_DOMINO_HAS_IMP_BASE = _IMP_example.IMP_DOMINO_HAS_IMP_BASE
345 IMP_DOMINO_HAS_IMP_CGAL = _IMP_example.IMP_DOMINO_HAS_IMP_CGAL
346 IMP_DOMINO_HAS_IMP_KERNEL = _IMP_example.IMP_DOMINO_HAS_IMP_KERNEL
347 IMP_DOMINO_HAS_IMP_RMF = _IMP_example.IMP_DOMINO_HAS_IMP_RMF
348 IMP_DOMINO_HAS_IMP_SCORE_FUNCTOR = _IMP_example.IMP_DOMINO_HAS_IMP_SCORE_FUNCTOR
349 IMP_DOMINO_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_DOMINO_HAS_BOOST_FILESYSTEM
350 IMP_DOMINO_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_DOMINO_HAS_BOOST_PROGRAMOPTIONS
351 IMP_DOMINO_HAS_BOOST_RANDOM = _IMP_example.IMP_DOMINO_HAS_BOOST_RANDOM
352 IMP_DOMINO_HAS_BOOST_REGEX = _IMP_example.IMP_DOMINO_HAS_BOOST_REGEX
353 IMP_DOMINO_HAS_BOOST_SYSTEM = _IMP_example.IMP_DOMINO_HAS_BOOST_SYSTEM
354 IMP_DOMINO_HAS_CGAL = _IMP_example.IMP_DOMINO_HAS_CGAL
355 IMP_DOMINO_HAS_HDF5 = _IMP_example.IMP_DOMINO_HAS_HDF5
356 IMP_DOMINO_HAS_RMF = _IMP_example.IMP_DOMINO_HAS_RMF
357 IMPDOMINO_SHOW_WARNINGS = _IMP_example.IMPDOMINO_SHOW_WARNINGS
358 import RMF_HDF5
359 import IMP.domino
360 IMP_EXAMPLE_HAS_IMP_ALGEBRA = _IMP_example.IMP_EXAMPLE_HAS_IMP_ALGEBRA
361 IMP_EXAMPLE_HAS_IMP_BASE = _IMP_example.IMP_EXAMPLE_HAS_IMP_BASE
362 IMP_EXAMPLE_HAS_IMP_CGAL = _IMP_example.IMP_EXAMPLE_HAS_IMP_CGAL
363 IMP_EXAMPLE_HAS_IMP_DISPLAY = _IMP_example.IMP_EXAMPLE_HAS_IMP_DISPLAY
364 IMP_EXAMPLE_HAS_IMP_KERNEL = _IMP_example.IMP_EXAMPLE_HAS_IMP_KERNEL
365 IMP_EXAMPLE_HAS_IMP_RMF = _IMP_example.IMP_EXAMPLE_HAS_IMP_RMF
366 IMP_EXAMPLE_HAS_IMP_SCORE_FUNCTOR = _IMP_example.IMP_EXAMPLE_HAS_IMP_SCORE_FUNCTOR
367 IMP_EXAMPLE_HAS_IMP_STATISTICS = _IMP_example.IMP_EXAMPLE_HAS_IMP_STATISTICS
368 IMP_EXAMPLE_HAS_BOOST_FILESYSTEM = _IMP_example.IMP_EXAMPLE_HAS_BOOST_FILESYSTEM
369 IMP_EXAMPLE_HAS_BOOST_GRAPH = _IMP_example.IMP_EXAMPLE_HAS_BOOST_GRAPH
370 IMP_EXAMPLE_HAS_BOOST_PROGRAMOPTIONS = _IMP_example.IMP_EXAMPLE_HAS_BOOST_PROGRAMOPTIONS
371 IMP_EXAMPLE_HAS_BOOST_RANDOM = _IMP_example.IMP_EXAMPLE_HAS_BOOST_RANDOM
372 IMP_EXAMPLE_HAS_BOOST_REGEX = _IMP_example.IMP_EXAMPLE_HAS_BOOST_REGEX
373 IMP_EXAMPLE_HAS_BOOST_SYSTEM = _IMP_example.IMP_EXAMPLE_HAS_BOOST_SYSTEM
374 IMP_EXAMPLE_HAS_CGAL = _IMP_example.IMP_EXAMPLE_HAS_CGAL
375 IMP_EXAMPLE_HAS_HDF5 = _IMP_example.IMP_EXAMPLE_HAS_HDF5
376 IMP_EXAMPLE_HAS_RMF = _IMP_example.IMP_EXAMPLE_HAS_RMF
377 IMP_EXAMPLE_HAS_EXAMPLEDEPENDENCY = _IMP_example.IMP_EXAMPLE_HAS_EXAMPLEDEPENDENCY
378 IMPEXAMPLE_SHOW_WARNINGS = _IMP_example.IMPEXAMPLE_SHOW_WARNINGS
379 _object_types.append("ExampleRestraint")
380 
381 
382 def _object_cast_to_ExampleRestraint(*args):
383  """_object_cast_to_ExampleRestraint(Object o) -> ExampleRestraint"""
384  return _IMP_example._object_cast_to_ExampleRestraint(*args)
385 def ExampleDecorators(l=[]):
386  return [ExampleDecorator(x) for x in l]
387 _plural_types.append("ExampleDecorators")
388 
389 _value_types.append("ExampleDecorator")
390 
391 _object_types.append("ExampleUnaryFunction")
392 
393 
394 def _object_cast_to_ExampleUnaryFunction(*args):
395  """_object_cast_to_ExampleUnaryFunction(Object o) -> ExampleUnaryFunction"""
396  return _IMP_example._object_cast_to_ExampleUnaryFunction(*args)
397 _object_types.append("ExampleSingletonModifier")
398 
399 
400 def _object_cast_to_ExampleSingletonModifier(*args):
401  """_object_cast_to_ExampleSingletonModifier(Object o) -> ExampleSingletonModifier"""
402  return _IMP_example._object_cast_to_ExampleSingletonModifier(*args)
403 _object_types.append("ExamplePairScore")
404 
405 
406 def _object_cast_to_ExamplePairScore(*args):
407  """_object_cast_to_ExamplePairScore(Object o) -> ExamplePairScore"""
408  return _IMP_example._object_cast_to_ExamplePairScore(*args)
409 _object_types.append("ExampleSubsetFilterTable")
410 
411 
412 def _object_cast_to_ExampleSubsetFilterTable(*args):
413  """_object_cast_to_ExampleSubsetFilterTable(Object o) -> ExampleSubsetFilterTable"""
414  return _IMP_example._object_cast_to_ExampleSubsetFilterTable(*args)
415 _object_types.append("ExampleConstraint")
416 
417 
418 def _object_cast_to_ExampleConstraint(*args):
419  """_object_cast_to_ExampleConstraint(Object o) -> ExampleConstraint"""
420  return _IMP_example._object_cast_to_ExampleConstraint(*args)
421 _object_types.append("ExampleObject")
422 
423 
424 def _object_cast_to_ExampleObject(*args):
425  """_object_cast_to_ExampleObject(Object o) -> ExampleObject"""
426  return _IMP_example._object_cast_to_ExampleObject(*args)
427 ExampleTemplateClass3Ds=list
428 _plural_types.append("ExampleTemplateClass3Ds")
429 _value_types.append("ExampleTemplateClass3D")
430 
431 def create_model_and_particles():
432  m= IMP.Model()
435  IMP.algebra.Vector3D(10,10,10))
436  for i in range(0,100):
437  p= IMP.Particle(m)
438  sc.add_particle(p)
440  d.set_coordinates_are_optimized(True)
441  return (m, sc)
442 
443 class ExampleRestraint(IMP.kernel.Restraint):
444  """Proxy of C++ IMP::example::ExampleRestraint class"""
445  __swig_setmethods__ = {}
446  for _s in [IMP.kernel.Restraint]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
447  __setattr__ = lambda self, name, value: _swig_setattr(self, ExampleRestraint, name, value)
448  __swig_getmethods__ = {}
449  for _s in [IMP.kernel.Restraint]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
450  __getattr__ = lambda self, name: _swig_getattr(self, ExampleRestraint, name)
451  def __init__(self, *args):
452  """__init__(IMP::example::ExampleRestraint self, Particle p, double k) -> ExampleRestraint"""
453  this = _IMP_example.new_ExampleRestraint(*args)
454  try: self.this.append(this)
455  except: self.this = this
456  def do_add_score_and_derivatives(self, *args):
457  """do_add_score_and_derivatives(ExampleRestraint self, ScoreAccumulator sa)"""
458  return _IMP_example.ExampleRestraint_do_add_score_and_derivatives(self, *args)
459 
460  def do_get_inputs(self):
461  """do_get_inputs(ExampleRestraint self) -> IMP::kernel::ModelObjectsTemp"""
462  return _IMP_example.ExampleRestraint_do_get_inputs(self)
463 
464  def get_version_info(self):
465  """get_version_info(ExampleRestraint self) -> VersionInfo"""
466  return _IMP_example.ExampleRestraint_get_version_info(self)
467 
468  __swig_destroy__ = _IMP_example.delete_ExampleRestraint
469  __del__ = lambda self : None;
470  def __str__(self):
471  """__str__(ExampleRestraint self) -> std::string"""
472  return _IMP_example.ExampleRestraint___str__(self)
473 
474  def __repr__(self):
475  """__repr__(ExampleRestraint self) -> std::string"""
476  return _IMP_example.ExampleRestraint___repr__(self)
477 
478  def get_from(o):
479  return _object_cast_to_ExampleRestraint(o)
480  get_from = staticmethod(get_from)
481 
482 ExampleRestraint_swigregister = _IMP_example.ExampleRestraint_swigregister
483 ExampleRestraint_swigregister(ExampleRestraint)
484 
485 class ExampleDecorator(IMP.kernel.Decorator):
486  """Proxy of C++ IMP::example::ExampleDecorator class"""
487  __swig_setmethods__ = {}
488  for _s in [IMP.kernel.Decorator]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
489  __setattr__ = lambda self, name, value: _swig_setattr(self, ExampleDecorator, name, value)
490  __swig_getmethods__ = {}
491  for _s in [IMP.kernel.Decorator]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
492  __getattr__ = lambda self, name: _swig_getattr(self, ExampleDecorator, name)
493  def get_decorator_name(self):
494  """get_decorator_name(ExampleDecorator self) -> std::string"""
495  return _IMP_example.ExampleDecorator_get_decorator_name(self)
496 
497  def set_decorator_name(self, *args):
498  """set_decorator_name(ExampleDecorator self, std::string nm)"""
499  return _IMP_example.ExampleDecorator_set_decorator_name(self, *args)
500 
501  def __init__(self, *args):
502  """
503  __init__(IMP::example::ExampleDecorator self) -> ExampleDecorator
504  __init__(IMP::example::ExampleDecorator self, Model m, ::IMP::kernel::ParticleIndex id) -> ExampleDecorator
505  __init__(IMP::example::ExampleDecorator self, _ParticleAdaptor d) -> ExampleDecorator
506  """
507  this = _IMP_example.new_ExampleDecorator(*args)
508  try: self.this.append(this)
509  except: self.this = this
510  def decorate_particle(*args):
511  """decorate_particle(Particle p) -> ExampleDecorator"""
512  return _IMP_example.ExampleDecorator_decorate_particle(*args)
513 
514  if _newclass:decorate_particle = staticmethod(decorate_particle)
515  __swig_getmethods__["decorate_particle"] = lambda x: decorate_particle
516  def particle_is_instance(*args):
517  """
518  particle_is_instance(Particle p) -> bool
519  particle_is_instance(Model m, IMP::kernel::ParticleIndex pi) -> bool
520  """
521  return _IMP_example.ExampleDecorator_particle_is_instance(*args)
522 
523  if _newclass:particle_is_instance = staticmethod(particle_is_instance)
524  __swig_getmethods__["particle_is_instance"] = lambda x: particle_is_instance
525  def get_is_setup(*args):
526  """
527  get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
528  get_is_setup(_ParticleAdaptor p) -> bool
529  """
530  return _IMP_example.ExampleDecorator_get_is_setup(*args)
531 
532  if _newclass:get_is_setup = staticmethod(get_is_setup)
533  __swig_getmethods__["get_is_setup"] = lambda x: get_is_setup
534  def show(self, *args):
535  """
536  show(ExampleDecorator self, _ostream out=std::cout)
537  show(ExampleDecorator self)
538  """
539  return _IMP_example.ExampleDecorator_show(self, *args)
540 
541  def setup_particle(*args):
542  """
543  setup_particle(Model m, IMP::kernel::ParticleIndex pi, std::string name) -> ExampleDecorator
544  setup_particle(_ParticleAdaptor decorator, std::string name) -> ExampleDecorator
545  """
546  return _IMP_example.ExampleDecorator_setup_particle(*args)
547 
548  if _newclass:setup_particle = staticmethod(setup_particle)
549  __swig_getmethods__["setup_particle"] = lambda x: setup_particle
550  def add_attribute(self, *args):
551  """
552  add_attribute(ExampleDecorator self, FloatKey k, IMP::Float v, bool opt)
553  add_attribute(ExampleDecorator self, FloatKey a0, IMP::Float a1)
554  add_attribute(ExampleDecorator self, IntKey a0, IMP::Int a1)
555  add_attribute(ExampleDecorator self, StringKey a0, IMP::String a1)
556  add_attribute(ExampleDecorator self, ParticleIndexKey a0, Particle a1)
557  add_attribute(ExampleDecorator self, ObjectKey a0, IMP::Object * a1)
558  """
559  return _IMP_example.ExampleDecorator_add_attribute(self, *args)
560 
561  def get_value(self, *args):
562  """
563  get_value(ExampleDecorator self, FloatKey a0) -> IMP::Float
564  get_value(ExampleDecorator self, IntKey a0) -> IMP::Int
565  get_value(ExampleDecorator self, StringKey a0) -> IMP::String
566  get_value(ExampleDecorator self, ParticleIndexKey a0) -> Particle
567  get_value(ExampleDecorator self, ObjectKey a0) -> IMP::Object *
568  """
569  return _IMP_example.ExampleDecorator_get_value(self, *args)
570 
571  def set_value(self, *args):
572  """
573  set_value(ExampleDecorator self, FloatKey a0, IMP::Float a1)
574  set_value(ExampleDecorator self, IntKey a0, IMP::Int a1)
575  set_value(ExampleDecorator self, StringKey a0, IMP::String a1)
576  set_value(ExampleDecorator self, ParticleIndexKey a0, Particle a1)
577  set_value(ExampleDecorator self, ObjectKey a0, IMP::Object * a1)
578  """
579  return _IMP_example.ExampleDecorator_set_value(self, *args)
580 
581  def remove_attribute(self, *args):
582  """
583  remove_attribute(ExampleDecorator self, FloatKey a0)
584  remove_attribute(ExampleDecorator self, IntKey a0)
585  remove_attribute(ExampleDecorator self, StringKey a0)
586  remove_attribute(ExampleDecorator self, ParticleIndexKey a0)
587  remove_attribute(ExampleDecorator self, ObjectKey a0)
588  """
589  return _IMP_example.ExampleDecorator_remove_attribute(self, *args)
590 
591  def has_attribute(self, *args):
592  """
593  has_attribute(ExampleDecorator self, FloatKey a0) -> bool
594  has_attribute(ExampleDecorator self, IntKey a0) -> bool
595  has_attribute(ExampleDecorator self, StringKey a0) -> bool
596  has_attribute(ExampleDecorator self, ParticleIndexKey a0) -> bool
597  has_attribute(ExampleDecorator self, ObjectKey a0) -> bool
598  """
599  return _IMP_example.ExampleDecorator_has_attribute(self, *args)
600 
601  def get_derivative(self, *args):
602  """get_derivative(ExampleDecorator self, FloatKey a0) -> double"""
603  return _IMP_example.ExampleDecorator_get_derivative(self, *args)
604 
605  def get_name(self):
606  """get_name(ExampleDecorator self) -> std::string"""
607  return _IMP_example.ExampleDecorator_get_name(self)
608 
609  def clear_caches(self):
610  """clear_caches(ExampleDecorator self)"""
611  return _IMP_example.ExampleDecorator_clear_caches(self)
612 
613  def set_name(self, *args):
614  """set_name(ExampleDecorator self, std::string a0)"""
615  return _IMP_example.ExampleDecorator_set_name(self, *args)
616 
617  def set_check_level(self, *args):
618  """set_check_level(ExampleDecorator self, IMP::base::CheckLevel a0)"""
619  return _IMP_example.ExampleDecorator_set_check_level(self, *args)
620 
621  def add_to_derivative(self, *args):
622  """add_to_derivative(ExampleDecorator self, FloatKey a0, double a1, DerivativeAccumulator a2)"""
623  return _IMP_example.ExampleDecorator_add_to_derivative(self, *args)
624 
625  def set_is_optimized(self, *args):
626  """set_is_optimized(ExampleDecorator self, FloatKey a0, bool a1)"""
627  return _IMP_example.ExampleDecorator_set_is_optimized(self, *args)
628 
629  def get_is_optimized(self, *args):
630  """get_is_optimized(ExampleDecorator self, FloatKey a0) -> bool"""
631  return _IMP_example.ExampleDecorator_get_is_optimized(self, *args)
632 
633  def get_check_level(self):
634  """get_check_level(ExampleDecorator self) -> IMP::base::CheckLevel"""
635  return _IMP_example.ExampleDecorator_get_check_level(self)
636 
637  def __eq__(self, *args):
638  """
639  __eq__(ExampleDecorator self, ExampleDecorator o) -> bool
640  __eq__(ExampleDecorator self, Particle d) -> bool
641  """
642  return _IMP_example.ExampleDecorator___eq__(self, *args)
643 
644  def __ne__(self, *args):
645  """
646  __ne__(ExampleDecorator self, ExampleDecorator o) -> bool
647  __ne__(ExampleDecorator self, Particle d) -> bool
648  """
649  return _IMP_example.ExampleDecorator___ne__(self, *args)
650 
651  def __le__(self, *args):
652  """
653  __le__(ExampleDecorator self, ExampleDecorator o) -> bool
654  __le__(ExampleDecorator self, Particle d) -> bool
655  """
656  return _IMP_example.ExampleDecorator___le__(self, *args)
657 
658  def __lt__(self, *args):
659  """
660  __lt__(ExampleDecorator self, ExampleDecorator o) -> bool
661  __lt__(ExampleDecorator self, Particle d) -> bool
662  """
663  return _IMP_example.ExampleDecorator___lt__(self, *args)
664 
665  def __ge__(self, *args):
666  """
667  __ge__(ExampleDecorator self, ExampleDecorator o) -> bool
668  __ge__(ExampleDecorator self, Particle d) -> bool
669  """
670  return _IMP_example.ExampleDecorator___ge__(self, *args)
671 
672  def __gt__(self, *args):
673  """
674  __gt__(ExampleDecorator self, ExampleDecorator o) -> bool
675  __gt__(ExampleDecorator self, Particle d) -> bool
676  """
677  return _IMP_example.ExampleDecorator___gt__(self, *args)
678 
679  def __str__(self):
680  """__str__(ExampleDecorator self) -> std::string"""
681  return _IMP_example.ExampleDecorator___str__(self)
682 
683  def __repr__(self):
684  """__repr__(ExampleDecorator self) -> std::string"""
685  return _IMP_example.ExampleDecorator___repr__(self)
686 
687  __swig_destroy__ = _IMP_example.delete_ExampleDecorator
688  __del__ = lambda self : None;
689 ExampleDecorator_swigregister = _IMP_example.ExampleDecorator_swigregister
690 ExampleDecorator_swigregister(ExampleDecorator)
691 
692 def ExampleDecorator_decorate_particle(*args):
693  """ExampleDecorator_decorate_particle(Particle p) -> ExampleDecorator"""
694  return _IMP_example.ExampleDecorator_decorate_particle(*args)
695 
696 def ExampleDecorator_particle_is_instance(*args):
697  """
698  particle_is_instance(Particle p) -> bool
699  ExampleDecorator_particle_is_instance(Model m, IMP::kernel::ParticleIndex pi) -> bool
700  """
701  return _IMP_example.ExampleDecorator_particle_is_instance(*args)
702 
703 def ExampleDecorator_get_is_setup(*args):
704  """
705  get_is_setup(Model m, IMP::kernel::ParticleIndex pi) -> bool
706  ExampleDecorator_get_is_setup(_ParticleAdaptor p) -> bool
707  """
708  return _IMP_example.ExampleDecorator_get_is_setup(*args)
709 
710 def ExampleDecorator_setup_particle(*args):
711  """
712  setup_particle(Model m, IMP::kernel::ParticleIndex pi, std::string name) -> ExampleDecorator
713  ExampleDecorator_setup_particle(_ParticleAdaptor decorator, std::string name) -> ExampleDecorator
714  """
715  return _IMP_example.ExampleDecorator_setup_particle(*args)
716 
717 
718 def __lshift__(*args):
719  """__lshift__(_ostream out, ExampleDecorator n) -> _ostream"""
720  return _IMP_example.__lshift__(*args)
721 class ExampleUnaryFunction(IMP.kernel.UnaryFunction):
722  """Proxy of C++ IMP::example::ExampleUnaryFunction class"""
723  __swig_setmethods__ = {}
724  for _s in [IMP.kernel.UnaryFunction]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
725  __setattr__ = lambda self, name, value: _swig_setattr(self, ExampleUnaryFunction, name, value)
726  __swig_getmethods__ = {}
727  for _s in [IMP.kernel.UnaryFunction]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
728  __getattr__ = lambda self, name: _swig_getattr(self, ExampleUnaryFunction, name)
729  def __init__(self, *args):
730  """__init__(IMP::example::ExampleUnaryFunction self, IMP::Float center, IMP::Float k) -> ExampleUnaryFunction"""
731  this = _IMP_example.new_ExampleUnaryFunction(*args)
732  try: self.this.append(this)
733  except: self.this = this
734  def get_version_info(self):
735  """get_version_info(ExampleUnaryFunction self) -> VersionInfo"""
736  return _IMP_example.ExampleUnaryFunction_get_version_info(self)
737 
738  __swig_destroy__ = _IMP_example.delete_ExampleUnaryFunction
739  __del__ = lambda self : None;
740  def __str__(self):
741  """__str__(ExampleUnaryFunction self) -> std::string"""
742  return _IMP_example.ExampleUnaryFunction___str__(self)
743 
744  def __repr__(self):
745  """__repr__(ExampleUnaryFunction self) -> std::string"""
746  return _IMP_example.ExampleUnaryFunction___repr__(self)
747 
748  def get_from(o):
749  return _object_cast_to_ExampleUnaryFunction(o)
750  get_from = staticmethod(get_from)
751 
752 ExampleUnaryFunction_swigregister = _IMP_example.ExampleUnaryFunction_swigregister
753 ExampleUnaryFunction_swigregister(ExampleUnaryFunction)
754 
755 class ExampleObject(IMP.base.Object):
756  """Proxy of C++ IMP::example::ExampleObject class"""
757  __swig_setmethods__ = {}
758  for _s in [IMP.base.Object]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
759  __setattr__ = lambda self, name, value: _swig_setattr(self, ExampleObject, name, value)
760  __swig_getmethods__ = {}
761  for _s in [IMP.base.Object]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
762  __getattr__ = lambda self, name: _swig_getattr(self, ExampleObject, name)
763  def __init__(self, *args):
764  """__init__(IMP::example::ExampleObject self, IMP::Floats const & data) -> ExampleObject"""
765  this = _IMP_example.new_ExampleObject(*args)
766  try: self.this.append(this)
767  except: self.this = this
768  def get_data(self, *args):
769  """get_data(ExampleObject self, unsigned int i) -> double"""
770  return _IMP_example.ExampleObject_get_data(self, *args)
771 
772  def get_version_info(self):
773  """get_version_info(ExampleObject self) -> VersionInfo"""
774  return _IMP_example.ExampleObject_get_version_info(self)
775 
776  __swig_destroy__ = _IMP_example.delete_ExampleObject
777  __del__ = lambda self : None;
778  def __str__(self):
779  """__str__(ExampleObject self) -> std::string"""
780  return _IMP_example.ExampleObject___str__(self)
781 
782  def __repr__(self):
783  """__repr__(ExampleObject self) -> std::string"""
784  return _IMP_example.ExampleObject___repr__(self)
785 
786  def get_from(o):
787  return _object_cast_to_ExampleObject(o)
788  get_from = staticmethod(get_from)
789 
790 ExampleObject_swigregister = _IMP_example.ExampleObject_swigregister
791 ExampleObject_swigregister(ExampleObject)
792 
793 class ExampleSingletonModifier(IMP.kernel.SingletonModifier):
794  """Proxy of C++ IMP::example::ExampleSingletonModifier class"""
795  __swig_setmethods__ = {}
796  for _s in [IMP.kernel.SingletonModifier]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
797  __setattr__ = lambda self, name, value: _swig_setattr(self, ExampleSingletonModifier, name, value)
798  __swig_getmethods__ = {}
799  for _s in [IMP.kernel.SingletonModifier]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
800  __getattr__ = lambda self, name: _swig_getattr(self, ExampleSingletonModifier, name)
801  def __init__(self, *args):
802  """__init__(IMP::example::ExampleSingletonModifier self, BoundingBox3D bb) -> ExampleSingletonModifier"""
803  this = _IMP_example.new_ExampleSingletonModifier(*args)
804  try: self.this.append(this)
805  except: self.this = this
806  def do_get_inputs(self, *args):
807  """do_get_inputs(ExampleSingletonModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
808  return _IMP_example.ExampleSingletonModifier_do_get_inputs(self, *args)
809 
810  def do_get_outputs(self, *args):
811  """do_get_outputs(ExampleSingletonModifier self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
812  return _IMP_example.ExampleSingletonModifier_do_get_outputs(self, *args)
813 
814  def get_version_info(self):
815  """get_version_info(ExampleSingletonModifier self) -> VersionInfo"""
816  return _IMP_example.ExampleSingletonModifier_get_version_info(self)
817 
818  __swig_destroy__ = _IMP_example.delete_ExampleSingletonModifier
819  __del__ = lambda self : None;
820  def __str__(self):
821  """__str__(ExampleSingletonModifier self) -> std::string"""
822  return _IMP_example.ExampleSingletonModifier___str__(self)
823 
824  def __repr__(self):
825  """__repr__(ExampleSingletonModifier self) -> std::string"""
826  return _IMP_example.ExampleSingletonModifier___repr__(self)
827 
828  def get_from(o):
829  return _object_cast_to_ExampleSingletonModifier(o)
830  get_from = staticmethod(get_from)
831 
832 ExampleSingletonModifier_swigregister = _IMP_example.ExampleSingletonModifier_swigregister
833 ExampleSingletonModifier_swigregister(ExampleSingletonModifier)
834 
835 class ExamplePairScore(IMP.kernel.PairScore):
836  """Proxy of C++ IMP::example::ExamplePairScore class"""
837  __swig_setmethods__ = {}
838  for _s in [IMP.kernel.PairScore]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
839  __setattr__ = lambda self, name, value: _swig_setattr(self, ExamplePairScore, name, value)
840  __swig_getmethods__ = {}
841  for _s in [IMP.kernel.PairScore]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
842  __getattr__ = lambda self, name: _swig_getattr(self, ExamplePairScore, name)
843  def __init__(self, *args):
844  """__init__(IMP::example::ExamplePairScore self, double x0, double k) -> ExamplePairScore"""
845  this = _IMP_example.new_ExamplePairScore(*args)
846  try: self.this.append(this)
847  except: self.this = this
848  def do_get_inputs(self, *args):
849  """do_get_inputs(ExamplePairScore self, Model m, IMP::kernel::ParticleIndexes const & pis) -> IMP::kernel::ModelObjectsTemp"""
850  return _IMP_example.ExamplePairScore_do_get_inputs(self, *args)
851 
852  def get_version_info(self):
853  """get_version_info(ExamplePairScore self) -> VersionInfo"""
854  return _IMP_example.ExamplePairScore_get_version_info(self)
855 
856  __swig_destroy__ = _IMP_example.delete_ExamplePairScore
857  __del__ = lambda self : None;
858  def __str__(self):
859  """__str__(ExamplePairScore self) -> std::string"""
860  return _IMP_example.ExamplePairScore___str__(self)
861 
862  def __repr__(self):
863  """__repr__(ExamplePairScore self) -> std::string"""
864  return _IMP_example.ExamplePairScore___repr__(self)
865 
866  def get_from(o):
867  return _object_cast_to_ExamplePairScore(o)
868  get_from = staticmethod(get_from)
869 
870 ExamplePairScore_swigregister = _IMP_example.ExamplePairScore_swigregister
871 ExamplePairScore_swigregister(ExamplePairScore)
872 
873 class ExampleSubsetFilterTable(IMP.domino.SubsetFilterTable):
874  """Proxy of C++ IMP::example::ExampleSubsetFilterTable class"""
875  __swig_setmethods__ = {}
876  for _s in [IMP.domino.SubsetFilterTable]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
877  __setattr__ = lambda self, name, value: _swig_setattr(self, ExampleSubsetFilterTable, name, value)
878  __swig_getmethods__ = {}
879  for _s in [IMP.domino.SubsetFilterTable]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
880  __getattr__ = lambda self, name: _swig_getattr(self, ExampleSubsetFilterTable, name)
881  def __init__(self, *args):
882  """__init__(IMP::example::ExampleSubsetFilterTable self, unsigned int max_diff, IMP::kernel::ParticlesTemp const & pt) -> ExampleSubsetFilterTable"""
883  this = _IMP_example.new_ExampleSubsetFilterTable(*args)
884  try: self.this.append(this)
885  except: self.this = this
886  def get_version_info(self):
887  """get_version_info(ExampleSubsetFilterTable self) -> VersionInfo"""
888  return _IMP_example.ExampleSubsetFilterTable_get_version_info(self)
889 
890  __swig_destroy__ = _IMP_example.delete_ExampleSubsetFilterTable
891  __del__ = lambda self : None;
892  def __str__(self):
893  """__str__(ExampleSubsetFilterTable self) -> std::string"""
894  return _IMP_example.ExampleSubsetFilterTable___str__(self)
895 
896  def __repr__(self):
897  """__repr__(ExampleSubsetFilterTable self) -> std::string"""
898  return _IMP_example.ExampleSubsetFilterTable___repr__(self)
899 
900  def get_from(o):
901  return _object_cast_to_ExampleSubsetFilterTable(o)
902  get_from = staticmethod(get_from)
903 
904 ExampleSubsetFilterTable_swigregister = _IMP_example.ExampleSubsetFilterTable_swigregister
905 ExampleSubsetFilterTable_swigregister(ExampleSubsetFilterTable)
906 
907 class ExampleConstraint(IMP.kernel.Constraint):
908  """Proxy of C++ IMP::example::ExampleConstraint class"""
909  __swig_setmethods__ = {}
910  for _s in [IMP.kernel.Constraint]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{}))
911  __setattr__ = lambda self, name, value: _swig_setattr(self, ExampleConstraint, name, value)
912  __swig_getmethods__ = {}
913  for _s in [IMP.kernel.Constraint]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{}))
914  __getattr__ = lambda self, name: _swig_getattr(self, ExampleConstraint, name)
915  def __init__(self, *args):
916  """__init__(IMP::example::ExampleConstraint self, Particle p) -> ExampleConstraint"""
917  this = _IMP_example.new_ExampleConstraint(*args)
918  try: self.this.append(this)
919  except: self.this = this
920  def do_get_inputs(self):
921  """do_get_inputs(ExampleConstraint self) -> IMP::kernel::ModelObjectsTemp"""
922  return _IMP_example.ExampleConstraint_do_get_inputs(self)
923 
924  def do_get_outputs(self):
925  """do_get_outputs(ExampleConstraint self) -> IMP::kernel::ModelObjectsTemp"""
926  return _IMP_example.ExampleConstraint_do_get_outputs(self)
927 
928  def get_version_info(self):
929  """get_version_info(ExampleConstraint self) -> VersionInfo"""
930  return _IMP_example.ExampleConstraint_get_version_info(self)
931 
932  __swig_destroy__ = _IMP_example.delete_ExampleConstraint
933  __del__ = lambda self : None;
934  def __str__(self):
935  """__str__(ExampleConstraint self) -> std::string"""
936  return _IMP_example.ExampleConstraint___str__(self)
937 
938  def __repr__(self):
939  """__repr__(ExampleConstraint self) -> std::string"""
940  return _IMP_example.ExampleConstraint___repr__(self)
941 
942  def get_from(o):
943  return _object_cast_to_ExampleConstraint(o)
944  get_from = staticmethod(get_from)
945 
946 ExampleConstraint_swigregister = _IMP_example.ExampleConstraint_swigregister
947 ExampleConstraint_swigregister(ExampleConstraint)
948 
949 
950 def create_serial_mover(*args):
951  """create_serial_mover(IMP::kernel::ParticlesTemp const & ps) -> MonteCarloMover"""
952  return _IMP_example.create_serial_mover(*args)
953 
954 def optimize_balls(*args):
955  """
956  optimize_balls(IMP::kernel::ParticlesTemp const & ps, IMP::kernel::RestraintsTemp const & rs=IMP::kernel::RestraintsTemp(),
957  IMP::kernel::PairPredicates const & excluded=IMP::kernel::PairPredicates(),
958  IMP::kernel::OptimizerStates const & opt_states=IMP::kernel::OptimizerStates(),
959  IMP::base::LogLevel ll=DEFAULT)
960  optimize_balls(IMP::kernel::ParticlesTemp const & ps, IMP::kernel::RestraintsTemp const & rs=IMP::kernel::RestraintsTemp(),
961  IMP::kernel::PairPredicates const & excluded=IMP::kernel::PairPredicates(),
962  IMP::kernel::OptimizerStates const & opt_states=IMP::kernel::OptimizerStates())
963  optimize_balls(IMP::kernel::ParticlesTemp const & ps, IMP::kernel::RestraintsTemp const & rs=IMP::kernel::RestraintsTemp(),
964  IMP::kernel::PairPredicates const & excluded=IMP::kernel::PairPredicates())
965  optimize_balls(IMP::kernel::ParticlesTemp const & ps, IMP::kernel::RestraintsTemp const & rs=IMP::kernel::RestraintsTemp())
966  optimize_balls(IMP::kernel::ParticlesTemp const & ps)
967  """
968  return _IMP_example.optimize_balls(*args)
969 
970 def optimize_assembly(*args):
971  """
972  optimize_assembly(Model m, IMP::kernel::ParticlesTemp const & components, IMP::kernel::RestraintsTemp const & interactions,
973  IMP::kernel::RestraintsTemp const & other_restraints,
974  BoundingBox3D bb, PairScore ev, double cutoff, IMP::kernel::PairPredicates const & excluded=IMP::kernel::PairPredicates())
975  optimize_assembly(Model m, IMP::kernel::ParticlesTemp const & components, IMP::kernel::RestraintsTemp const & interactions,
976  IMP::kernel::RestraintsTemp const & other_restraints,
977  BoundingBox3D bb, PairScore ev, double cutoff)
978  """
979  return _IMP_example.optimize_assembly(*args)
980 
981 def get_number_of_incidences(*args):
982  """get_number_of_incidences(IMP::kernel::ParticlesTemp const & psa, IMP::kernel::ParticlesTemp const & psb, double point_distance) -> unsigned int"""
983  return _IMP_example.get_number_of_incidences(*args)
984 
985 def create_chain_restraint(*args):
986  """create_chain_restraint(IMP::kernel::ParticlesTemp const & ps, double length_factor, double k, std::string name) -> Restraint"""
987  return _IMP_example.create_chain_restraint(*args)
988 
989 def create_excluded_volume(*args):
990  """create_excluded_volume(IMP::kernel::ParticlesTemp const & ps, double k, std::string name) -> ClosePairContainer"""
991  return _IMP_example.create_excluded_volume(*args)
992 class ExampleTemplateClass3D(_object):
993  """Proxy of C++ IMP::example::ExampleTemplateClassD<(3)> class"""
994  __swig_setmethods__ = {}
995  __setattr__ = lambda self, name, value: _swig_setattr(self, ExampleTemplateClass3D, name, value)
996  __swig_getmethods__ = {}
997  __getattr__ = lambda self, name: _swig_getattr(self, ExampleTemplateClass3D, name)
998  def __init__(self, *args):
999  """
1000  __init__(IMP::example::ExampleTemplateClassD<(3)> self) -> ExampleTemplateClass3D
1001  __init__(IMP::example::ExampleTemplateClassD<(3)> self, Vector3D a, Vector3D b) -> ExampleTemplateClass3D
1002  """
1003  this = _IMP_example.new_ExampleTemplateClass3D(*args)
1004  try: self.this.append(this)
1005  except: self.this = this
1006  def get_point(self, *args):
1007  """get_point(ExampleTemplateClass3D self, unsigned int i) -> Vector3D"""
1008  return _IMP_example.ExampleTemplateClass3D_get_point(self, *args)
1009 
1010  def show(self, *args):
1011  """
1012  show(ExampleTemplateClass3D self, _ostream out=std::cout)
1013  show(ExampleTemplateClass3D self)
1014  """
1015  return _IMP_example.ExampleTemplateClass3D_show(self, *args)
1016 
1017  def __str__(self):
1018  """__str__(ExampleTemplateClass3D self) -> std::string"""
1019  return _IMP_example.ExampleTemplateClass3D___str__(self)
1020 
1021  def __repr__(self):
1022  """__repr__(ExampleTemplateClass3D self) -> std::string"""
1023  return _IMP_example.ExampleTemplateClass3D___repr__(self)
1024 
1025  __swig_destroy__ = _IMP_example.delete_ExampleTemplateClass3D
1026  __del__ = lambda self : None;
1027 ExampleTemplateClass3D_swigregister = _IMP_example.ExampleTemplateClass3D_swigregister
1028 ExampleTemplateClass3D_swigregister(ExampleTemplateClass3D)
1029 
1030 from _randomize import *
1031 
1032 
1033 def get_module_version():
1034  """get_module_version() -> std::string const"""
1035  return _IMP_example.get_module_version()
1036 
1037 def get_example_path(*args):
1038  """get_example_path(std::string fname) -> std::string"""
1039  return _IMP_example.get_example_path(*args)
1040 
1041 def get_data_path(*args):
1042  """get_data_path(std::string fname) -> std::string"""
1043  return _IMP_example.get_data_path(*args)
1044 import _version_check
1045 _version_check.check_version(get_module_version())
1046 
1047 # This file is compatible with both classic and new-style classes.
1048 
1049 
See IMP.container for more information.
void optimize_assembly(kernel::Model *m, const kernel::ParticlesTemp &components, const kernel::RestraintsTemp &interactions, const kernel::RestraintsTemp &other_restraints, const algebra::BoundingBox3D &bb, PairScore *ev, double cutoff, const PairPredicates &excluded=PairPredicates())
See IMP.cgal for more information.
Definition: cgal_config.h:107
void set_check_level(CheckLevel tf)
Control runtime checks in the code.
See IMP.base for more information.
Definition: base/Array.h:20
std::string get_data_path(std::string file_name)
Return the full path to installed data.
void optimize_balls(const kernel::ParticlesTemp &ps, const kernel::RestraintsTemp &rs=kernel::RestraintsTemp(), const PairPredicates &excluded=PairPredicates(), const OptimizerStates &opt_states=OptimizerStates(), base::LogLevel ll=base::DEFAULT)
Abstract single variable functor class for score functions.
See IMP.score_functor for more information.
Definition: AddScores.h:14
Vector3D get_random_vector_in(const Cylinder3D &c)
Generate a random vector in a cylinder with uniform density.
A base class for modifiers of ParticlesTemp.
See IMP.statistics for more information.
kernel::Restraint * create_chain_restraint(const kernel::ParticlesTemp &ps, double length_factor, double k, std::string name)
unsigned int get_number_of_incidences(const kernel::ParticlesTemp &psa, const kernel::ParticlesTemp &psb, double point_distance)
Definition: counting.h:23
Abstract score function.
static XYZR setup_particle(kernel::Model *m, ParticleIndex pi)
Definition: XYZR.h:48
See IMP.kernel for more information.
A restraint is a term in an IMP ScoringFunction.
Class to handle individual model particles.
Common base class for heavy weight IMP objects.
std::string get_example_path(std::string file_name)
Return the path to installed example data for this module.
container::ClosePairContainer * create_excluded_volume(const kernel::ParticlesTemp &ps, double k, std::string name)
See IMP.core for more information.
See IMP.algebra for more information.
void show(Hierarchy h, std::ostream &out=std::cout)
Print out a molecular hierarchy.
core::MonteCarloMover * create_serial_mover(const kernel::ParticlesTemp &ps)
Implement a constraint on the Model.
See IMP.display for more information.
Definition: BildWriter.h:20
CheckLevel get_check_level()
Get the current audit mode.
See IMP.atom for more information.
See IMP.rmf for more information.
Definition: associations.h:20
See IMP.domino for more information.
Definition: analysis.h:15
Class for storing model, its restraints, constraints, and particles.