# This file was automatically generated by SWIG (http://www.swig.org).
# Version 4.0.2
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info as _swig_python_version_info
if _swig_python_version_info < (2, 7, 0):
raise RuntimeError("Python 2.7 or later required")
# Import the low-level C/C++ module
if __package__ or "." in __name__:
from . import _pybodies
else:
import _pybodies
try:
import builtins as __builtin__
except ImportError:
import __builtin__
def _swig_repr(self):
try:
strthis = "proxy of " + self.this.__repr__()
except __builtin__.Exception:
strthis = ""
return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
def _swig_setattr_nondynamic_instance_variable(set):
def set_instance_attr(self, name, value):
if name == "thisown":
self.this.own(value)
elif name == "this":
set(self, name, value)
elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
set(self, name, value)
else:
raise AttributeError("You cannot add instance attributes to %s" % self)
return set_instance_attr
def _swig_setattr_nondynamic_class_variable(set):
def set_class_attr(cls, name, value):
if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
set(cls, name, value)
else:
raise AttributeError("You cannot add class attributes to %s" % cls)
return set_class_attr
def _swig_add_metaclass(metaclass):
"""Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
def wrapper(cls):
return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
return wrapper
class _SwigNonDynamicMeta(type):
"""Meta class to enforce nondynamic attributes (no new attributes) for a class"""
__setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)
import weakref
class SwigPyIterator(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined - class is abstract")
__repr__ = _swig_repr
__swig_destroy__ = _pybodies.delete_SwigPyIterator
def value(self) -> "PyObject *":
return _pybodies.SwigPyIterator_value(self)
def incr(self, n: "size_t"=1) -> "swig::SwigPyIterator *":
return _pybodies.SwigPyIterator_incr(self, n)
def decr(self, n: "size_t"=1) -> "swig::SwigPyIterator *":
return _pybodies.SwigPyIterator_decr(self, n)
def distance(self, x: "SwigPyIterator") -> "ptrdiff_t":
return _pybodies.SwigPyIterator_distance(self, x)
def equal(self, x: "SwigPyIterator") -> "bool":
return _pybodies.SwigPyIterator_equal(self, x)
def copy(self) -> "swig::SwigPyIterator *":
return _pybodies.SwigPyIterator_copy(self)
def next(self) -> "PyObject *":
return _pybodies.SwigPyIterator_next(self)
def __next__(self) -> "PyObject *":
return _pybodies.SwigPyIterator___next__(self)
def previous(self) -> "PyObject *":
return _pybodies.SwigPyIterator_previous(self)
def advance(self, n: "ptrdiff_t") -> "swig::SwigPyIterator *":
return _pybodies.SwigPyIterator_advance(self, n)
def __eq__(self, x: "SwigPyIterator") -> "bool":
return _pybodies.SwigPyIterator___eq__(self, x)
def __ne__(self, x: "SwigPyIterator") -> "bool":
return _pybodies.SwigPyIterator___ne__(self, x)
def __iadd__(self, n: "ptrdiff_t") -> "swig::SwigPyIterator &":
return _pybodies.SwigPyIterator___iadd__(self, n)
def __isub__(self, n: "ptrdiff_t") -> "swig::SwigPyIterator &":
return _pybodies.SwigPyIterator___isub__(self, n)
def __add__(self, n: "ptrdiff_t") -> "swig::SwigPyIterator *":
return _pybodies.SwigPyIterator___add__(self, n)
def __sub__(self, *args) -> "ptrdiff_t":
return _pybodies.SwigPyIterator___sub__(self, *args)
def __iter__(self):
return self
# Register SwigPyIterator in _pybodies:
_pybodies.SwigPyIterator_swigregister(SwigPyIterator)
SHARED_PTR_DISOWN = _pybodies.SHARED_PTR_DISOWN
[docs]class nullDeleter(object):
r"""
Using a shared_ptr to hold a pointer to a statically allocated
object
use create<type>SPtr(<type> &x)
cf http://www.boost.org/doc/
"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
def __init__(self, *args, **kwargs):
raise AttributeError("No constructor defined")
__repr__ = _swig_repr
def __call__(self, arg2: "void const *") -> "void":
return _pybodies.nullDeleter___call__(self, arg2)
__swig_destroy__ = _pybodies.delete_nullDeleter
# Register nullDeleter in _pybodies:
_pybodies.nullDeleter_swigregister(nullDeleter)
class VectorOfVectors(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def iterator(self) -> "swig::SwigPyIterator *":
return _pybodies.VectorOfVectors_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self) -> "bool":
return _pybodies.VectorOfVectors___nonzero__(self)
def __bool__(self) -> "bool":
return _pybodies.VectorOfVectors___bool__(self)
def __len__(self) -> "std::vector< std::shared_ptr< SiconosVector > >::size_type":
return _pybodies.VectorOfVectors___len__(self)
def __getslice__(self, i: "std::vector< std::shared_ptr< SiconosVector > >::difference_type", j: "std::vector< std::shared_ptr< SiconosVector > >::difference_type") -> "std::vector< std::shared_ptr< SiconosVector >,std::allocator< std::shared_ptr< SiconosVector > > > *":
return _pybodies.VectorOfVectors___getslice__(self, i, j)
def __setslice__(self, *args) -> "void":
return _pybodies.VectorOfVectors___setslice__(self, *args)
def __delslice__(self, i: "std::vector< std::shared_ptr< SiconosVector > >::difference_type", j: "std::vector< std::shared_ptr< SiconosVector > >::difference_type") -> "void":
return _pybodies.VectorOfVectors___delslice__(self, i, j)
def __delitem__(self, *args) -> "void":
return _pybodies.VectorOfVectors___delitem__(self, *args)
def __getitem__(self, *args) -> "std::vector< std::shared_ptr< SiconosVector > >::value_type const &":
return _pybodies.VectorOfVectors___getitem__(self, *args)
def __setitem__(self, *args) -> "void":
return _pybodies.VectorOfVectors___setitem__(self, *args)
def pop(self) -> "std::vector< std::shared_ptr< SiconosVector > >::value_type":
return _pybodies.VectorOfVectors_pop(self)
def append(self, x: "std::vector< std::shared_ptr< SiconosVector > >::value_type const &") -> "void":
return _pybodies.VectorOfVectors_append(self, x)
def empty(self) -> "bool":
return _pybodies.VectorOfVectors_empty(self)
def size(self) -> "std::vector< std::shared_ptr< SiconosVector > >::size_type":
return _pybodies.VectorOfVectors_size(self)
def swap(self, v: "VectorOfVectors") -> "void":
return _pybodies.VectorOfVectors_swap(self, v)
def begin(self) -> "std::vector< std::shared_ptr< SiconosVector > >::iterator":
return _pybodies.VectorOfVectors_begin(self)
def end(self) -> "std::vector< std::shared_ptr< SiconosVector > >::iterator":
return _pybodies.VectorOfVectors_end(self)
def rbegin(self) -> "std::vector< std::shared_ptr< SiconosVector > >::reverse_iterator":
return _pybodies.VectorOfVectors_rbegin(self)
def rend(self) -> "std::vector< std::shared_ptr< SiconosVector > >::reverse_iterator":
return _pybodies.VectorOfVectors_rend(self)
def clear(self) -> "void":
return _pybodies.VectorOfVectors_clear(self)
def get_allocator(self) -> "std::vector< std::shared_ptr< SiconosVector > >::allocator_type":
return _pybodies.VectorOfVectors_get_allocator(self)
def pop_back(self) -> "void":
return _pybodies.VectorOfVectors_pop_back(self)
def erase(self, *args) -> "std::vector< std::shared_ptr< SiconosVector > >::iterator":
return _pybodies.VectorOfVectors_erase(self, *args)
def __init__(self, *args):
_pybodies.VectorOfVectors_swiginit(self, _pybodies.new_VectorOfVectors(*args))
def push_back(self, x: "std::vector< std::shared_ptr< SiconosVector > >::value_type const &") -> "void":
return _pybodies.VectorOfVectors_push_back(self, x)
def front(self) -> "std::vector< std::shared_ptr< SiconosVector > >::value_type const &":
return _pybodies.VectorOfVectors_front(self)
def back(self) -> "std::vector< std::shared_ptr< SiconosVector > >::value_type const &":
return _pybodies.VectorOfVectors_back(self)
def assign(self, n: "std::vector< std::shared_ptr< SiconosVector > >::size_type", x: "std::vector< std::shared_ptr< SiconosVector > >::value_type const &") -> "void":
return _pybodies.VectorOfVectors_assign(self, n, x)
def resize(self, *args) -> "void":
return _pybodies.VectorOfVectors_resize(self, *args)
def insert(self, *args) -> "void":
return _pybodies.VectorOfVectors_insert(self, *args)
def reserve(self, n: "std::vector< std::shared_ptr< SiconosVector > >::size_type") -> "void":
return _pybodies.VectorOfVectors_reserve(self, n)
def capacity(self) -> "std::vector< std::shared_ptr< SiconosVector > >::size_type":
return _pybodies.VectorOfVectors_capacity(self)
__swig_destroy__ = _pybodies.delete_VectorOfVectors
# Register VectorOfVectors in _pybodies:
_pybodies.VectorOfVectors_swigregister(VectorOfVectors)
class VectorOfBlockVectors(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def iterator(self) -> "swig::SwigPyIterator *":
return _pybodies.VectorOfBlockVectors_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self) -> "bool":
return _pybodies.VectorOfBlockVectors___nonzero__(self)
def __bool__(self) -> "bool":
return _pybodies.VectorOfBlockVectors___bool__(self)
def __len__(self) -> "std::vector< std::shared_ptr< BlockVector > >::size_type":
return _pybodies.VectorOfBlockVectors___len__(self)
def __getslice__(self, i: "std::vector< std::shared_ptr< BlockVector > >::difference_type", j: "std::vector< std::shared_ptr< BlockVector > >::difference_type") -> "std::vector< std::shared_ptr< BlockVector >,std::allocator< std::shared_ptr< BlockVector > > > *":
return _pybodies.VectorOfBlockVectors___getslice__(self, i, j)
def __setslice__(self, *args) -> "void":
return _pybodies.VectorOfBlockVectors___setslice__(self, *args)
def __delslice__(self, i: "std::vector< std::shared_ptr< BlockVector > >::difference_type", j: "std::vector< std::shared_ptr< BlockVector > >::difference_type") -> "void":
return _pybodies.VectorOfBlockVectors___delslice__(self, i, j)
def __delitem__(self, *args) -> "void":
return _pybodies.VectorOfBlockVectors___delitem__(self, *args)
def __getitem__(self, *args) -> "std::vector< std::shared_ptr< BlockVector > >::value_type const &":
return _pybodies.VectorOfBlockVectors___getitem__(self, *args)
def __setitem__(self, *args) -> "void":
return _pybodies.VectorOfBlockVectors___setitem__(self, *args)
def pop(self) -> "std::vector< std::shared_ptr< BlockVector > >::value_type":
return _pybodies.VectorOfBlockVectors_pop(self)
def append(self, x: "std::vector< std::shared_ptr< BlockVector > >::value_type const &") -> "void":
return _pybodies.VectorOfBlockVectors_append(self, x)
def empty(self) -> "bool":
return _pybodies.VectorOfBlockVectors_empty(self)
def size(self) -> "std::vector< std::shared_ptr< BlockVector > >::size_type":
return _pybodies.VectorOfBlockVectors_size(self)
def swap(self, v: "VectorOfBlockVectors") -> "void":
return _pybodies.VectorOfBlockVectors_swap(self, v)
def begin(self) -> "std::vector< std::shared_ptr< BlockVector > >::iterator":
return _pybodies.VectorOfBlockVectors_begin(self)
def end(self) -> "std::vector< std::shared_ptr< BlockVector > >::iterator":
return _pybodies.VectorOfBlockVectors_end(self)
def rbegin(self) -> "std::vector< std::shared_ptr< BlockVector > >::reverse_iterator":
return _pybodies.VectorOfBlockVectors_rbegin(self)
def rend(self) -> "std::vector< std::shared_ptr< BlockVector > >::reverse_iterator":
return _pybodies.VectorOfBlockVectors_rend(self)
def clear(self) -> "void":
return _pybodies.VectorOfBlockVectors_clear(self)
def get_allocator(self) -> "std::vector< std::shared_ptr< BlockVector > >::allocator_type":
return _pybodies.VectorOfBlockVectors_get_allocator(self)
def pop_back(self) -> "void":
return _pybodies.VectorOfBlockVectors_pop_back(self)
def erase(self, *args) -> "std::vector< std::shared_ptr< BlockVector > >::iterator":
return _pybodies.VectorOfBlockVectors_erase(self, *args)
def __init__(self, *args):
_pybodies.VectorOfBlockVectors_swiginit(self, _pybodies.new_VectorOfBlockVectors(*args))
def push_back(self, x: "std::vector< std::shared_ptr< BlockVector > >::value_type const &") -> "void":
return _pybodies.VectorOfBlockVectors_push_back(self, x)
def front(self) -> "std::vector< std::shared_ptr< BlockVector > >::value_type const &":
return _pybodies.VectorOfBlockVectors_front(self)
def back(self) -> "std::vector< std::shared_ptr< BlockVector > >::value_type const &":
return _pybodies.VectorOfBlockVectors_back(self)
def assign(self, n: "std::vector< std::shared_ptr< BlockVector > >::size_type", x: "std::vector< std::shared_ptr< BlockVector > >::value_type const &") -> "void":
return _pybodies.VectorOfBlockVectors_assign(self, n, x)
def resize(self, *args) -> "void":
return _pybodies.VectorOfBlockVectors_resize(self, *args)
def insert(self, *args) -> "void":
return _pybodies.VectorOfBlockVectors_insert(self, *args)
def reserve(self, n: "std::vector< std::shared_ptr< BlockVector > >::size_type") -> "void":
return _pybodies.VectorOfBlockVectors_reserve(self, n)
def capacity(self) -> "std::vector< std::shared_ptr< BlockVector > >::size_type":
return _pybodies.VectorOfBlockVectors_capacity(self)
__swig_destroy__ = _pybodies.delete_VectorOfBlockVectors
# Register VectorOfBlockVectors in _pybodies:
_pybodies.VectorOfBlockVectors_swigregister(VectorOfBlockVectors)
class VectorOfMatrices(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def iterator(self) -> "swig::SwigPyIterator *":
return _pybodies.VectorOfMatrices_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self) -> "bool":
return _pybodies.VectorOfMatrices___nonzero__(self)
def __bool__(self) -> "bool":
return _pybodies.VectorOfMatrices___bool__(self)
def __len__(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::size_type":
return _pybodies.VectorOfMatrices___len__(self)
def __getslice__(self, i: "std::vector< std::shared_ptr< SiconosMatrix > >::difference_type", j: "std::vector< std::shared_ptr< SiconosMatrix > >::difference_type") -> "std::vector< std::shared_ptr< SiconosMatrix >,std::allocator< std::shared_ptr< SiconosMatrix > > > *":
return _pybodies.VectorOfMatrices___getslice__(self, i, j)
def __setslice__(self, *args) -> "void":
return _pybodies.VectorOfMatrices___setslice__(self, *args)
def __delslice__(self, i: "std::vector< std::shared_ptr< SiconosMatrix > >::difference_type", j: "std::vector< std::shared_ptr< SiconosMatrix > >::difference_type") -> "void":
return _pybodies.VectorOfMatrices___delslice__(self, i, j)
def __delitem__(self, *args) -> "void":
return _pybodies.VectorOfMatrices___delitem__(self, *args)
def __getitem__(self, *args) -> "std::vector< std::shared_ptr< SiconosMatrix > >::value_type const &":
return _pybodies.VectorOfMatrices___getitem__(self, *args)
def __setitem__(self, *args) -> "void":
return _pybodies.VectorOfMatrices___setitem__(self, *args)
def pop(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::value_type":
return _pybodies.VectorOfMatrices_pop(self)
def append(self, x: "std::vector< std::shared_ptr< SiconosMatrix > >::value_type const &") -> "void":
return _pybodies.VectorOfMatrices_append(self, x)
def empty(self) -> "bool":
return _pybodies.VectorOfMatrices_empty(self)
def size(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::size_type":
return _pybodies.VectorOfMatrices_size(self)
def swap(self, v: "VectorOfMatrices") -> "void":
return _pybodies.VectorOfMatrices_swap(self, v)
def begin(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::iterator":
return _pybodies.VectorOfMatrices_begin(self)
def end(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::iterator":
return _pybodies.VectorOfMatrices_end(self)
def rbegin(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::reverse_iterator":
return _pybodies.VectorOfMatrices_rbegin(self)
def rend(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::reverse_iterator":
return _pybodies.VectorOfMatrices_rend(self)
def clear(self) -> "void":
return _pybodies.VectorOfMatrices_clear(self)
def get_allocator(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::allocator_type":
return _pybodies.VectorOfMatrices_get_allocator(self)
def pop_back(self) -> "void":
return _pybodies.VectorOfMatrices_pop_back(self)
def erase(self, *args) -> "std::vector< std::shared_ptr< SiconosMatrix > >::iterator":
return _pybodies.VectorOfMatrices_erase(self, *args)
def __init__(self, *args):
_pybodies.VectorOfMatrices_swiginit(self, _pybodies.new_VectorOfMatrices(*args))
def push_back(self, x: "std::vector< std::shared_ptr< SiconosMatrix > >::value_type const &") -> "void":
return _pybodies.VectorOfMatrices_push_back(self, x)
def front(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::value_type const &":
return _pybodies.VectorOfMatrices_front(self)
def back(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::value_type const &":
return _pybodies.VectorOfMatrices_back(self)
def assign(self, n: "std::vector< std::shared_ptr< SiconosMatrix > >::size_type", x: "std::vector< std::shared_ptr< SiconosMatrix > >::value_type const &") -> "void":
return _pybodies.VectorOfMatrices_assign(self, n, x)
def resize(self, *args) -> "void":
return _pybodies.VectorOfMatrices_resize(self, *args)
def insert(self, *args) -> "void":
return _pybodies.VectorOfMatrices_insert(self, *args)
def reserve(self, n: "std::vector< std::shared_ptr< SiconosMatrix > >::size_type") -> "void":
return _pybodies.VectorOfMatrices_reserve(self, n)
def capacity(self) -> "std::vector< std::shared_ptr< SiconosMatrix > >::size_type":
return _pybodies.VectorOfMatrices_capacity(self)
__swig_destroy__ = _pybodies.delete_VectorOfMatrices
# Register VectorOfMatrices in _pybodies:
_pybodies.VectorOfMatrices_swigregister(VectorOfMatrices)
class VectorOfSMatrices(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def iterator(self) -> "swig::SwigPyIterator *":
return _pybodies.VectorOfSMatrices_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self) -> "bool":
return _pybodies.VectorOfSMatrices___nonzero__(self)
def __bool__(self) -> "bool":
return _pybodies.VectorOfSMatrices___bool__(self)
def __len__(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::size_type":
return _pybodies.VectorOfSMatrices___len__(self)
def __getslice__(self, i: "std::vector< std::shared_ptr< SimpleMatrix > >::difference_type", j: "std::vector< std::shared_ptr< SimpleMatrix > >::difference_type") -> "std::vector< std::shared_ptr< SimpleMatrix >,std::allocator< std::shared_ptr< SimpleMatrix > > > *":
return _pybodies.VectorOfSMatrices___getslice__(self, i, j)
def __setslice__(self, *args) -> "void":
return _pybodies.VectorOfSMatrices___setslice__(self, *args)
def __delslice__(self, i: "std::vector< std::shared_ptr< SimpleMatrix > >::difference_type", j: "std::vector< std::shared_ptr< SimpleMatrix > >::difference_type") -> "void":
return _pybodies.VectorOfSMatrices___delslice__(self, i, j)
def __delitem__(self, *args) -> "void":
return _pybodies.VectorOfSMatrices___delitem__(self, *args)
def __getitem__(self, *args) -> "std::vector< std::shared_ptr< SimpleMatrix > >::value_type const &":
return _pybodies.VectorOfSMatrices___getitem__(self, *args)
def __setitem__(self, *args) -> "void":
return _pybodies.VectorOfSMatrices___setitem__(self, *args)
def pop(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::value_type":
return _pybodies.VectorOfSMatrices_pop(self)
def append(self, x: "std::vector< std::shared_ptr< SimpleMatrix > >::value_type const &") -> "void":
return _pybodies.VectorOfSMatrices_append(self, x)
def empty(self) -> "bool":
return _pybodies.VectorOfSMatrices_empty(self)
def size(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::size_type":
return _pybodies.VectorOfSMatrices_size(self)
def swap(self, v: "VectorOfSMatrices") -> "void":
return _pybodies.VectorOfSMatrices_swap(self, v)
def begin(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::iterator":
return _pybodies.VectorOfSMatrices_begin(self)
def end(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::iterator":
return _pybodies.VectorOfSMatrices_end(self)
def rbegin(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::reverse_iterator":
return _pybodies.VectorOfSMatrices_rbegin(self)
def rend(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::reverse_iterator":
return _pybodies.VectorOfSMatrices_rend(self)
def clear(self) -> "void":
return _pybodies.VectorOfSMatrices_clear(self)
def get_allocator(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::allocator_type":
return _pybodies.VectorOfSMatrices_get_allocator(self)
def pop_back(self) -> "void":
return _pybodies.VectorOfSMatrices_pop_back(self)
def erase(self, *args) -> "std::vector< std::shared_ptr< SimpleMatrix > >::iterator":
return _pybodies.VectorOfSMatrices_erase(self, *args)
def __init__(self, *args):
_pybodies.VectorOfSMatrices_swiginit(self, _pybodies.new_VectorOfSMatrices(*args))
def push_back(self, x: "std::vector< std::shared_ptr< SimpleMatrix > >::value_type const &") -> "void":
return _pybodies.VectorOfSMatrices_push_back(self, x)
def front(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::value_type const &":
return _pybodies.VectorOfSMatrices_front(self)
def back(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::value_type const &":
return _pybodies.VectorOfSMatrices_back(self)
def assign(self, n: "std::vector< std::shared_ptr< SimpleMatrix > >::size_type", x: "std::vector< std::shared_ptr< SimpleMatrix > >::value_type const &") -> "void":
return _pybodies.VectorOfSMatrices_assign(self, n, x)
def resize(self, *args) -> "void":
return _pybodies.VectorOfSMatrices_resize(self, *args)
def insert(self, *args) -> "void":
return _pybodies.VectorOfSMatrices_insert(self, *args)
def reserve(self, n: "std::vector< std::shared_ptr< SimpleMatrix > >::size_type") -> "void":
return _pybodies.VectorOfSMatrices_reserve(self, n)
def capacity(self) -> "std::vector< std::shared_ptr< SimpleMatrix > >::size_type":
return _pybodies.VectorOfSMatrices_capacity(self)
__swig_destroy__ = _pybodies.delete_VectorOfSMatrices
# Register VectorOfSMatrices in _pybodies:
_pybodies.VectorOfSMatrices_swigregister(VectorOfSMatrices)
class VectorOfMemories(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def iterator(self) -> "swig::SwigPyIterator *":
return _pybodies.VectorOfMemories_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self) -> "bool":
return _pybodies.VectorOfMemories___nonzero__(self)
def __bool__(self) -> "bool":
return _pybodies.VectorOfMemories___bool__(self)
def __len__(self) -> "std::vector< SiconosMemory >::size_type":
return _pybodies.VectorOfMemories___len__(self)
def __getslice__(self, i: "std::vector< SiconosMemory >::difference_type", j: "std::vector< SiconosMemory >::difference_type") -> "std::vector< SiconosMemory,std::allocator< SiconosMemory > > *":
return _pybodies.VectorOfMemories___getslice__(self, i, j)
def __setslice__(self, *args) -> "void":
return _pybodies.VectorOfMemories___setslice__(self, *args)
def __delslice__(self, i: "std::vector< SiconosMemory >::difference_type", j: "std::vector< SiconosMemory >::difference_type") -> "void":
return _pybodies.VectorOfMemories___delslice__(self, i, j)
def __delitem__(self, *args) -> "void":
return _pybodies.VectorOfMemories___delitem__(self, *args)
def __getitem__(self, *args) -> "std::vector< SiconosMemory >::value_type const &":
return _pybodies.VectorOfMemories___getitem__(self, *args)
def __setitem__(self, *args) -> "void":
return _pybodies.VectorOfMemories___setitem__(self, *args)
def pop(self) -> "std::vector< SiconosMemory >::value_type":
return _pybodies.VectorOfMemories_pop(self)
def append(self, x: "SiconosMemory") -> "void":
return _pybodies.VectorOfMemories_append(self, x)
def empty(self) -> "bool":
return _pybodies.VectorOfMemories_empty(self)
def size(self) -> "std::vector< SiconosMemory >::size_type":
return _pybodies.VectorOfMemories_size(self)
def swap(self, v: "VectorOfMemories") -> "void":
return _pybodies.VectorOfMemories_swap(self, v)
def begin(self) -> "std::vector< SiconosMemory >::iterator":
return _pybodies.VectorOfMemories_begin(self)
def end(self) -> "std::vector< SiconosMemory >::iterator":
return _pybodies.VectorOfMemories_end(self)
def rbegin(self) -> "std::vector< SiconosMemory >::reverse_iterator":
return _pybodies.VectorOfMemories_rbegin(self)
def rend(self) -> "std::vector< SiconosMemory >::reverse_iterator":
return _pybodies.VectorOfMemories_rend(self)
def clear(self) -> "void":
return _pybodies.VectorOfMemories_clear(self)
def get_allocator(self) -> "std::vector< SiconosMemory >::allocator_type":
return _pybodies.VectorOfMemories_get_allocator(self)
def pop_back(self) -> "void":
return _pybodies.VectorOfMemories_pop_back(self)
def erase(self, *args) -> "std::vector< SiconosMemory >::iterator":
return _pybodies.VectorOfMemories_erase(self, *args)
def __init__(self, *args):
_pybodies.VectorOfMemories_swiginit(self, _pybodies.new_VectorOfMemories(*args))
def push_back(self, x: "SiconosMemory") -> "void":
return _pybodies.VectorOfMemories_push_back(self, x)
def front(self) -> "std::vector< SiconosMemory >::value_type const &":
return _pybodies.VectorOfMemories_front(self)
def back(self) -> "std::vector< SiconosMemory >::value_type const &":
return _pybodies.VectorOfMemories_back(self)
def assign(self, n: "std::vector< SiconosMemory >::size_type", x: "SiconosMemory") -> "void":
return _pybodies.VectorOfMemories_assign(self, n, x)
def resize(self, *args) -> "void":
return _pybodies.VectorOfMemories_resize(self, *args)
def insert(self, *args) -> "void":
return _pybodies.VectorOfMemories_insert(self, *args)
def reserve(self, n: "std::vector< SiconosMemory >::size_type") -> "void":
return _pybodies.VectorOfMemories_reserve(self, n)
def capacity(self) -> "std::vector< SiconosMemory >::size_type":
return _pybodies.VectorOfMemories_capacity(self)
__swig_destroy__ = _pybodies.delete_VectorOfMemories
# Register VectorOfMemories in _pybodies:
_pybodies.VectorOfMemories_swigregister(VectorOfMemories)
class UnsignedIntVector(object):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def iterator(self) -> "swig::SwigPyIterator *":
return _pybodies.UnsignedIntVector_iterator(self)
def __iter__(self):
return self.iterator()
def __nonzero__(self) -> "bool":
return _pybodies.UnsignedIntVector___nonzero__(self)
def __bool__(self) -> "bool":
return _pybodies.UnsignedIntVector___bool__(self)
def __len__(self) -> "std::vector< unsigned int >::size_type":
return _pybodies.UnsignedIntVector___len__(self)
def __getslice__(self, i: "std::vector< unsigned int >::difference_type", j: "std::vector< unsigned int >::difference_type") -> "std::vector< unsigned int,std::allocator< unsigned int > > *":
return _pybodies.UnsignedIntVector___getslice__(self, i, j)
def __setslice__(self, *args) -> "void":
return _pybodies.UnsignedIntVector___setslice__(self, *args)
def __delslice__(self, i: "std::vector< unsigned int >::difference_type", j: "std::vector< unsigned int >::difference_type") -> "void":
return _pybodies.UnsignedIntVector___delslice__(self, i, j)
def __delitem__(self, *args) -> "void":
return _pybodies.UnsignedIntVector___delitem__(self, *args)
def __getitem__(self, *args) -> "std::vector< unsigned int >::value_type const &":
return _pybodies.UnsignedIntVector___getitem__(self, *args)
def __setitem__(self, *args) -> "void":
return _pybodies.UnsignedIntVector___setitem__(self, *args)
def pop(self) -> "std::vector< unsigned int >::value_type":
return _pybodies.UnsignedIntVector_pop(self)
def append(self, x: "std::vector< unsigned int >::value_type const &") -> "void":
return _pybodies.UnsignedIntVector_append(self, x)
def empty(self) -> "bool":
return _pybodies.UnsignedIntVector_empty(self)
def size(self) -> "std::vector< unsigned int >::size_type":
return _pybodies.UnsignedIntVector_size(self)
def swap(self, v: "UnsignedIntVector") -> "void":
return _pybodies.UnsignedIntVector_swap(self, v)
def begin(self) -> "std::vector< unsigned int >::iterator":
return _pybodies.UnsignedIntVector_begin(self)
def end(self) -> "std::vector< unsigned int >::iterator":
return _pybodies.UnsignedIntVector_end(self)
def rbegin(self) -> "std::vector< unsigned int >::reverse_iterator":
return _pybodies.UnsignedIntVector_rbegin(self)
def rend(self) -> "std::vector< unsigned int >::reverse_iterator":
return _pybodies.UnsignedIntVector_rend(self)
def clear(self) -> "void":
return _pybodies.UnsignedIntVector_clear(self)
def get_allocator(self) -> "std::vector< unsigned int >::allocator_type":
return _pybodies.UnsignedIntVector_get_allocator(self)
def pop_back(self) -> "void":
return _pybodies.UnsignedIntVector_pop_back(self)
def erase(self, *args) -> "std::vector< unsigned int >::iterator":
return _pybodies.UnsignedIntVector_erase(self, *args)
def __init__(self, *args):
_pybodies.UnsignedIntVector_swiginit(self, _pybodies.new_UnsignedIntVector(*args))
def push_back(self, x: "std::vector< unsigned int >::value_type const &") -> "void":
return _pybodies.UnsignedIntVector_push_back(self, x)
def front(self) -> "std::vector< unsigned int >::value_type const &":
return _pybodies.UnsignedIntVector_front(self)
def back(self) -> "std::vector< unsigned int >::value_type const &":
return _pybodies.UnsignedIntVector_back(self)
def assign(self, n: "std::vector< unsigned int >::size_type", x: "std::vector< unsigned int >::value_type const &") -> "void":
return _pybodies.UnsignedIntVector_assign(self, n, x)
def resize(self, *args) -> "void":
return _pybodies.UnsignedIntVector_resize(self, *args)
def insert(self, *args) -> "void":
return _pybodies.UnsignedIntVector_insert(self, *args)
def reserve(self, n: "std::vector< unsigned int >::size_type") -> "void":
return _pybodies.UnsignedIntVector_reserve(self, n)
def capacity(self) -> "std::vector< unsigned int >::size_type":
return _pybodies.UnsignedIntVector_capacity(self)
__swig_destroy__ = _pybodies.delete_UnsignedIntVector
# Register UnsignedIntVector in _pybodies:
_pybodies.UnsignedIntVector_swigregister(UnsignedIntVector)
import siconos.kernel
[docs]class CircularDS(siconos.kernel.LagrangianDS):
r""" Definition of a 2D circular shape - Inherits from LagrangianDS"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
radius = property(_pybodies.CircularDS_radius_get, _pybodies.CircularDS_radius_set)
massValue = property(_pybodies.CircularDS_massValue_get, _pybodies.CircularDS_massValue_set)
def __init__(self, *args):
if self.__class__ == CircularDS:
_self = None
else:
_self = self
_pybodies.CircularDS_swiginit(self, _pybodies.new_CircularDS(_self, *args))
__swig_destroy__ = _pybodies.delete_CircularDS
def getQ(self, pos: "unsigned int") -> "double":
return _pybodies.CircularDS_getQ(self, pos)
def getVelocity(self, pos: "unsigned int") -> "double":
return _pybodies.CircularDS_getVelocity(self, pos)
def getMassValue(self) -> "double":
return _pybodies.CircularDS_getMassValue(self)
def getRadius(self) -> "double":
return _pybodies.CircularDS_getRadius(self)
def __disown__(self):
self.this.disown()
_pybodies.disown_CircularDS(self)
return weakref.proxy(self)
def _zeroPlugin(self) -> "void":
r""" build all _plugin... PluggedObject"""
return _pybodies.CircularDS__zeroPlugin(self)
# Register CircularDS in _pybodies:
_pybodies.CircularDS_swigregister(CircularDS)
[docs]class CircularR(siconos.kernel.LagrangianScleronomousR):
r""" Two circle relation - Inherits from LagrangianScleronomousR"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
_r1 = property(_pybodies.CircularR__r1_get, _pybodies.CircularR__r1_set)
_r2 = property(_pybodies.CircularR__r2_get, _pybodies.CircularR__r2_set)
def __init__(self, r1: "double", r2: "double"):
r"""
Constructor
:param disk1: radius
:param disk2: radius
"""
if self.__class__ == CircularR:
_self = None
else:
_self = self
_pybodies.CircularR_swiginit(self, _pybodies.new_CircularR(_self, r1, r2))
__swig_destroy__ = _pybodies.delete_CircularR
def getRadius1(self) -> "double":
return _pybodies.CircularR_getRadius1(self)
def getRadius2(self) -> "double":
return _pybodies.CircularR_getRadius2(self)
def distance(self, arg0: "double", arg1: "double", arg2: "double", arg3: "double", arg4: "double", arg5: "double") -> "double":
return _pybodies.CircularR_distance(self, arg0, arg1, arg2, arg3, arg4, arg5)
def __disown__(self):
self.this.disown()
_pybodies.disown_CircularR(self)
return weakref.proxy(self)
def _zeroPlugin(self) -> "void":
r""" reset all plugins"""
return _pybodies.CircularR__zeroPlugin(self)
# Register CircularR in _pybodies:
_pybodies.CircularR_swigregister(CircularR)
[docs]class Disk(CircularDS, ):
r""" Definition of a 2D disk - Inherits from LagrangianDS"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, radius: "double", mass: "double", position: "SP::SiconosVector", velocity: "SP::SiconosVector"):
r"""
Constructor
:type radius: float
:param radius:
:type mass: float
:param mass:
:type position: :py:class:`SiconosVector`
:param position: vector
:type velocity: :py:class:`SiconosVector`
:param velocity: vector
"""
if self.__class__ == Disk:
_self = None
else:
_self = self
_pybodies.Disk_swiginit(self, _pybodies.new_Disk(_self, radius, mass, position, velocity))
__swig_destroy__ = _pybodies.delete_Disk
def acceptSPBase(self, tourist: "SP::SiconosVisitor") -> "void":
return _pybodies.Disk_acceptSPBase(self, tourist)
def acceptBase(self, tourist: "SiconosVisitor &") -> "void":
return _pybodies.Disk_acceptBase(self, tourist)
def acceptSerializerBase(self, serializer: "SiconosVisitor &") -> "void":
return _pybodies.Disk_acceptSerializerBase(self, serializer)
def __disown__(self):
self.this.disown()
_pybodies.disown_Disk(self)
return weakref.proxy(self)
def _zeroPlugin(self) -> "void":
r""" build all _plugin... PluggedObject"""
return _pybodies.Disk__zeroPlugin(self)
# Register Disk in _pybodies:
_pybodies.Disk_swigregister(Disk)
[docs]class Circle(CircularDS, ):
r"""Definition of a 2D Circle - Inherits from CircularDS"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
Constructor
:type radius: float
:param radius:
:type mass: float
:param mass:
:type position: :py:class:`SiconosVector`
:param position: vector
:type velocity: :py:class:`SiconosVector`
:param velocity: vector
"""
if self.__class__ == Circle:
_self = None
else:
_self = self
_pybodies.Circle_swiginit(self, _pybodies.new_Circle(_self, *args))
__swig_destroy__ = _pybodies.delete_Circle
def acceptSPBase(self, tourist: "SP::SiconosVisitor") -> "void":
return _pybodies.Circle_acceptSPBase(self, tourist)
def __disown__(self):
self.this.disown()
_pybodies.disown_Circle(self)
return weakref.proxy(self)
def _zeroPlugin(self) -> "void":
r""" build all _plugin... PluggedObject"""
return _pybodies.Circle__zeroPlugin(self)
# Register Circle in _pybodies:
_pybodies.Circle_swigregister(Circle)
[docs]class DiskDiskR(CircularR, ):
r""" Two disks relation - Inherits from LagrangianScleronomousR"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, disk1: "double", disk2: "double"):
r"""
Constructor
:type disk1: float
:param disk1: radius
:type disk2: float
:param disk2: radius
"""
if self.__class__ == DiskDiskR:
_self = None
else:
_self = self
_pybodies.DiskDiskR_swiginit(self, _pybodies.new_DiskDiskR(_self, disk1, disk2))
__swig_destroy__ = _pybodies.delete_DiskDiskR
def distance(self, arg0: "double", arg1: "double", arg2: "double", arg3: "double", arg4: "double", arg5: "double") -> "double":
return _pybodies.DiskDiskR_distance(self, arg0, arg1, arg2, arg3, arg4, arg5)
[docs] def computeh(self, q: "BlockVector", z: "BlockVector", y: "SiconosVector") -> "void":
r"""
to compute the output y = h(q,z) of the Relation
:type q: :py:class:`BlockVector`
:param q: coordinates of the dynamical systems involved in the relation
:type z: :py:class:`BlockVector`
:param z: user defined parameters (optional)
:type y: :py:class:`SiconosVector`
:param y: the resulting vector
"""
return _pybodies.DiskDiskR_computeh(self, q, z, y)
[docs] def computeJachq(self, q: "BlockVector", z: "BlockVector") -> "void":
r"""
to compute the jacobian of h(...). Set attribute _jachq (access: jacqhq())
:type q: :py:class:`BlockVector`
:param q: coordinates of the dynamical systems involved in the relation
:type z: :py:class:`BlockVector`
:param z: user defined parameters (optional)
"""
return _pybodies.DiskDiskR_computeJachq(self, q, z)
def __disown__(self):
self.this.disown()
_pybodies.disown_DiskDiskR(self)
return weakref.proxy(self)
def _zeroPlugin(self) -> "void":
r""" reset all plugins"""
return _pybodies.DiskDiskR__zeroPlugin(self)
# Register DiskDiskR in _pybodies:
_pybodies.DiskDiskR_swigregister(DiskDiskR)
[docs]class DiskPlanR(siconos.kernel.LagrangianScleronomousR, ):
r""" disk - plan relation - Inherits from LagrangianScleronomousR"""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, *args):
r"""
*Overload 1:*
Infinite Plan
:type r: float
:param r: disk radius
:type A: float
:param A: component of line equation Ax + By + C = 0
:type B: float
:param B: component of line equation Ax + By + C = 0
:type C: float
:param C: component of line equation Ax + By + C = 0
|
*Overload 2:*
Finite or infinite Plan (segment)
:type disk: float
:param disk: radius
:type A: float
:param A:
:type B: float
:param B:
:type C: float
:param C:
:type xCenter: float
:param xCenter:
:type yCenter: float
:param yCenter:
:type width: float
:param width:
|
*Overload 3:*
Finite Plan
"""
if self.__class__ == DiskPlanR:
_self = None
else:
_self = self
_pybodies.DiskPlanR_swiginit(self, _pybodies.new_DiskPlanR(_self, *args))
__swig_destroy__ = _pybodies.delete_DiskPlanR
def distance(self, x: "double", y: "double", r: "double") -> "double":
return _pybodies.DiskPlanR_distance(self, x, y, r)
def getRadius(self) -> "double":
return _pybodies.DiskPlanR_getRadius(self)
def getA(self) -> "double":
return _pybodies.DiskPlanR_getA(self)
def getB(self) -> "double":
return _pybodies.DiskPlanR_getB(self)
def getC(self) -> "double":
return _pybodies.DiskPlanR_getC(self)
def gethypotAB(self) -> "double":
return _pybodies.DiskPlanR_gethypotAB(self)
def getXCenter(self) -> "double":
return _pybodies.DiskPlanR_getXCenter(self)
def getYCenter(self) -> "double":
return _pybodies.DiskPlanR_getYCenter(self)
def getWidth(self) -> "double":
return _pybodies.DiskPlanR_getWidth(self)
[docs] def computeh(self, q: "BlockVector", z: "BlockVector", y: "SiconosVector") -> "void":
r"""
to compute the output y = h(t,q,z) of the Relation
:type q: :py:class:`BlockVector`
:param q: coordinates of the dynamical systems involved in the relation
:type z: :py:class:`BlockVector`
:param z: user defined parameters (optional)
:type y: :py:class:`SiconosVector`
:param y: the resulting vector
"""
return _pybodies.DiskPlanR_computeh(self, q, z, y)
[docs] def computeJachq(self, q: "BlockVector", z: "BlockVector") -> "void":
r"""
to compute the jacobian of h(...). Set attribute _jachq (access: jacqhq())
:type q: :py:class:`BlockVector`
:param q: coordinates of the dynamical systems involved in the relation
:type z: :py:class:`BlockVector`
:param z: user defined parameters (optional)
"""
return _pybodies.DiskPlanR_computeJachq(self, q, z)
def equal(self, *args) -> "bool":
return _pybodies.DiskPlanR_equal(self, *args)
def isFinite(self) -> "bool":
return _pybodies.DiskPlanR_isFinite(self)
def __disown__(self):
self.this.disown()
_pybodies.disown_DiskPlanR(self)
return weakref.proxy(self)
def _zeroPlugin(self) -> "void":
r""" reset all plugins"""
return _pybodies.DiskPlanR__zeroPlugin(self)
# Register DiskPlanR in _pybodies:
_pybodies.DiskPlanR_swigregister(DiskPlanR)
[docs]class DiskMovingPlanR(siconos.kernel.LagrangianRheonomousR, ):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, arg2: "FTime", arg3: "FTime", arg4: "FTime", arg5: "FTime", arg6: "FTime", arg7: "FTime", arg8: "double"):
if self.__class__ == DiskMovingPlanR:
_self = None
else:
_self = self
_pybodies.DiskMovingPlanR_swiginit(self, _pybodies.new_DiskMovingPlanR(_self, arg2, arg3, arg4, arg5, arg6, arg7, arg8))
__swig_destroy__ = _pybodies.delete_DiskMovingPlanR
def init(self, arg2: "double") -> "void":
return _pybodies.DiskMovingPlanR_init(self, arg2)
[docs] def computeh(self, time: "double", q: "BlockVector", z: "BlockVector", y: "SiconosVector") -> "void":
r"""
to compute the output y = h(t,q,z) of the Relation
:type time: float
:param time: current time value
:type q: :py:class:`BlockVector`
:param q: coordinates of the dynamical systems involved in the relation
:type z: :py:class:`BlockVector`
:param z: user defined parameters (optional)
:type y: :py:class:`SiconosVector`
:param y: the resulting vector
"""
return _pybodies.DiskMovingPlanR_computeh(self, time, q, z, y)
[docs] def computeJachq(self, time: "double", q: "BlockVector", z: "BlockVector") -> "void":
r"""
to compute the jacobian of h(...). Set attribute _jachq (access: jacqhq())
:type time: float
:param time: current time value
:type q: :py:class:`BlockVector`
:param q: coordinates of the dynamical systems involved in the relation
:type z: :py:class:`BlockVector`
:param z: user defined parameters (optional)
"""
return _pybodies.DiskMovingPlanR_computeJachq(self, time, q, z)
[docs] def computehDot(self, time: "double", q: "BlockVector", z: "BlockVector") -> "void":
r"""
to compute the time-derivative of the output y = h(t,q,z), saved in attribute _hDot (access: hDot())
:type time: float
:param time: current time value
:type q: :py:class:`BlockVector`
:param q: coordinates of the dynamical systems involved in the relation
:type z: :py:class:`BlockVector`
:param z: user defined parameters (optional)
"""
return _pybodies.DiskMovingPlanR_computehDot(self, time, q, z)
def distance(self, arg2: "double", arg3: "double", arg4: "double") -> "double":
return _pybodies.DiskMovingPlanR_distance(self, arg2, arg3, arg4)
def setComputeAFunction(self, f: "FTime") -> "void":
return _pybodies.DiskMovingPlanR_setComputeAFunction(self, f)
def setComputeBFunction(self, f: "FTime") -> "void":
return _pybodies.DiskMovingPlanR_setComputeBFunction(self, f)
def setComputeCFunction(self, f: "FTime") -> "void":
return _pybodies.DiskMovingPlanR_setComputeCFunction(self, f)
def setComputeADotFunction(self, f: "FTime") -> "void":
return _pybodies.DiskMovingPlanR_setComputeADotFunction(self, f)
def setComputeBDotFunction(self, f: "FTime") -> "void":
return _pybodies.DiskMovingPlanR_setComputeBDotFunction(self, f)
def setComputeCDotFunction(self, f: "FTime") -> "void":
return _pybodies.DiskMovingPlanR_setComputeCDotFunction(self, f)
def equal(self, arg2: "FTime", arg3: "FTime", arg4: "FTime", arg5: "double") -> "bool":
return _pybodies.DiskMovingPlanR_equal(self, arg2, arg3, arg4, arg5)
[docs] def computeA(self, t: "double") -> "void":
r"""
compute A
:type t: float
:param t: the time
"""
return _pybodies.DiskMovingPlanR_computeA(self, t)
[docs] def computeB(self, t: "double") -> "void":
r"""
compute B
:type t: float
:param t: the time
"""
return _pybodies.DiskMovingPlanR_computeB(self, t)
[docs] def computeC(self, t: "double") -> "void":
r"""
compute C
:type t: float
:param t: the time
"""
return _pybodies.DiskMovingPlanR_computeC(self, t)
[docs] def computeADot(self, t: "double") -> "void":
r"""
compute ADot
:type t: float
:param t: the time
"""
return _pybodies.DiskMovingPlanR_computeADot(self, t)
[docs] def computeBDot(self, t: "double") -> "void":
r"""
compute BDot
:type t: float
:param t: the time
"""
return _pybodies.DiskMovingPlanR_computeBDot(self, t)
[docs] def computeCDot(self, t: "double") -> "void":
r"""
compute CDot
:type t: float
:param t: the time
"""
return _pybodies.DiskMovingPlanR_computeCDot(self, t)
def __disown__(self):
self.this.disown()
_pybodies.disown_DiskMovingPlanR(self)
return weakref.proxy(self)
def _zeroPlugin(self) -> "void":
r""" reset all plugins"""
return _pybodies.DiskMovingPlanR__zeroPlugin(self)
# Register DiskMovingPlanR in _pybodies:
_pybodies.DiskMovingPlanR_swigregister(DiskMovingPlanR)
[docs]class SphereLDS(siconos.kernel.LagrangianDS, ):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
radius = property(_pybodies.SphereLDS_radius_get, _pybodies.SphereLDS_radius_set)
massValue = property(_pybodies.SphereLDS_massValue_get, _pybodies.SphereLDS_massValue_set)
I = property(_pybodies.SphereLDS_I_get, _pybodies.SphereLDS_I_set)
def __init__(self, *args):
if self.__class__ == SphereLDS:
_self = None
else:
_self = self
_pybodies.SphereLDS_swiginit(self, _pybodies.new_SphereLDS(_self, *args))
__swig_destroy__ = _pybodies.delete_SphereLDS
def getQ(self, pos: "unsigned int") -> "double":
return _pybodies.SphereLDS_getQ(self, pos)
def getVelocity(self, pos: "unsigned int") -> "double":
return _pybodies.SphereLDS_getVelocity(self, pos)
def getMassValue(self) -> "double":
return _pybodies.SphereLDS_getMassValue(self)
def getRadius(self) -> "double":
return _pybodies.SphereLDS_getRadius(self)
[docs] def computeMass(self, *args) -> "void":
return _pybodies.SphereLDS_computeMass(self, *args)
[docs] def computeFGyr(self, *args) -> "void":
return _pybodies.SphereLDS_computeFGyr(self, *args)
[docs] def computeJacobianFGyrq(self, *args) -> "void":
return _pybodies.SphereLDS_computeJacobianFGyrq(self, *args)
[docs] def computeJacobianFGyrqDot(self, *args) -> "void":
return _pybodies.SphereLDS_computeJacobianFGyrqDot(self, *args)
def acceptSPBase(self, tourist: "SP::SiconosVisitor") -> "void":
return _pybodies.SphereLDS_acceptSPBase(self, tourist)
def acceptBase(self, tourist: "SiconosVisitor &") -> "void":
return _pybodies.SphereLDS_acceptBase(self, tourist)
def acceptSerializerBase(self, serializer: "SiconosVisitor &") -> "void":
return _pybodies.SphereLDS_acceptSerializerBase(self, serializer)
def __disown__(self):
self.this.disown()
_pybodies.disown_SphereLDS(self)
return weakref.proxy(self)
def _zeroPlugin(self) -> "void":
r""" build all _plugin... PluggedObject"""
return _pybodies.SphereLDS__zeroPlugin(self)
# Register SphereLDS in _pybodies:
_pybodies.SphereLDS_swigregister(SphereLDS)
[docs]class SphereNEDS(siconos.kernel.NewtonEulerDS, ):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
radius = property(_pybodies.SphereNEDS_radius_get, _pybodies.SphereNEDS_radius_set)
def __init__(self, *args):
if self.__class__ == SphereNEDS:
_self = None
else:
_self = self
_pybodies.SphereNEDS_swiginit(self, _pybodies.new_SphereNEDS(_self, *args))
__swig_destroy__ = _pybodies.delete_SphereNEDS
def getQ(self, pos: "unsigned int") -> "double":
return _pybodies.SphereNEDS_getQ(self, pos)
def getVelocity(self, pos: "unsigned int") -> "double":
return _pybodies.SphereNEDS_getVelocity(self, pos)
def getRadius(self) -> "double":
return _pybodies.SphereNEDS_getRadius(self)
def acceptSPBase(self, tourist: "SP::SiconosVisitor") -> "void":
return _pybodies.SphereNEDS_acceptSPBase(self, tourist)
def acceptBase(self, tourist: "SiconosVisitor &") -> "void":
return _pybodies.SphereNEDS_acceptBase(self, tourist)
def acceptSerializerBase(self, serializer: "SiconosVisitor &") -> "void":
return _pybodies.SphereNEDS_acceptSerializerBase(self, serializer)
def __disown__(self):
self.this.disown()
_pybodies.disown_SphereNEDS(self)
return weakref.proxy(self)
def _zeroPlugin(self) -> "void":
r""" build all _plugin... PluggedObject"""
return _pybodies.SphereNEDS__zeroPlugin(self)
# Register SphereNEDS in _pybodies:
_pybodies.SphereNEDS_swigregister(SphereNEDS)
[docs]class SphereLDSPlanR(siconos.kernel.LagrangianScleronomousR, ):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, r: "double", A: "double", B: "double", C: "double", D: "double"):
r"""
Constructor
:type r: float
:param r: disk radius
:type A: float
:param A:
:type B: float
:param B:
:type C: float
:param C:
:type D: float
:param D:
"""
if self.__class__ == SphereLDSPlanR:
_self = None
else:
_self = self
_pybodies.SphereLDSPlanR_swiginit(self, _pybodies.new_SphereLDSPlanR(_self, r, A, B, C, D))
__swig_destroy__ = _pybodies.delete_SphereLDSPlanR
def distance(self, arg2: "double", arg3: "double", arg4: "double", arg5: "double") -> "double":
return _pybodies.SphereLDSPlanR_distance(self, arg2, arg3, arg4, arg5)
[docs] def computeh(self, q: "BlockVector", z: "BlockVector", y: "SiconosVector") -> "void":
r"""
to compute the output y = h(q,z) of the Relation
:type q: :py:class:`BlockVector`
:param q: coordinates of the dynamical systems involved in the relation
:type z: :py:class:`BlockVector`
:param z: user defined parameters (optional)
:type y: :py:class:`SiconosVector`
:param y: the resulting vector
"""
return _pybodies.SphereLDSPlanR_computeh(self, q, z, y)
[docs] def computeJachq(self, q: "BlockVector", z: "BlockVector") -> "void":
r"""
to compute the jacobian of h(...). Set attribute _jachq (access: jacqhq())
:type q: :py:class:`BlockVector`
:param q: coordinates of the dynamical systems involved in the relation
:type z: :py:class:`BlockVector`
:param z: user defined parameters (optional)
"""
return _pybodies.SphereLDSPlanR_computeJachq(self, q, z)
def equal(self, _A: "double", _B: "double", _C: "double", _D: "double", _r: "double") -> "bool":
return _pybodies.SphereLDSPlanR_equal(self, _A, _B, _C, _D, _r)
def __disown__(self):
self.this.disown()
_pybodies.disown_SphereLDSPlanR(self)
return weakref.proxy(self)
def _zeroPlugin(self) -> "void":
r""" reset all plugins"""
return _pybodies.SphereLDSPlanR__zeroPlugin(self)
# Register SphereLDSPlanR in _pybodies:
_pybodies.SphereLDSPlanR_swigregister(SphereLDSPlanR)
[docs]class SphereNEDSPlanR(siconos.kernel.NewtonEuler3DR, ):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, r: "double", A: "double", B: "double", C: "double", D: "double"):
r"""
Constructor
:type r: float
:param r: disk radius
:type A: float
:param A:
:type B: float
:param B:
:type C: float
:param C:
:type D: float
:param D:
"""
if self.__class__ == SphereNEDSPlanR:
_self = None
else:
_self = self
_pybodies.SphereNEDSPlanR_swiginit(self, _pybodies.new_SphereNEDSPlanR(_self, r, A, B, C, D))
[docs] def distance(self, arg2: "double", arg3: "double", arg4: "double", arg5: "double") -> "double":
return _pybodies.SphereNEDSPlanR_distance(self, arg2, arg3, arg4, arg5)
[docs] def computeh(self, time: "double", q0: "BlockVector", y: "SiconosVector") -> "void":
r"""
to compute the output y = h(t,q,z) of the Relation
:type time: float
:param time: current time value
:param q: coordinates of the dynamical systems involved in the relation
:type y: :py:class:`SiconosVector`
:param y: the resulting vector
"""
return _pybodies.SphereNEDSPlanR_computeh(self, time, q0, y)
def equal(self, _A: "double", _B: "double", _C: "double", _D: "double", _r: "double") -> "bool":
return _pybodies.SphereNEDSPlanR_equal(self, _A, _B, _C, _D, _r)
__swig_destroy__ = _pybodies.delete_SphereNEDSPlanR
def __disown__(self):
self.this.disown()
_pybodies.disown_SphereNEDSPlanR(self)
return weakref.proxy(self)
def _zeroPlugin(self) -> "void":
r""" To initialize all the plugin functions with nullptr."""
return _pybodies.SphereNEDSPlanR__zeroPlugin(self)
# Register SphereNEDSPlanR in _pybodies:
_pybodies.SphereNEDSPlanR_swigregister(SphereNEDSPlanR)
[docs]class SphereLDSSphereLDSR(siconos.kernel.LagrangianScleronomousR, ):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, r1: "double", r2: "double"):
r"""
Constructor
:type r1: float
:param r1: disk1 radius
:type r2: float
:param r2: disk2 radius
"""
if self.__class__ == SphereLDSSphereLDSR:
_self = None
else:
_self = self
_pybodies.SphereLDSSphereLDSR_swiginit(self, _pybodies.new_SphereLDSSphereLDSR(_self, r1, r2))
def distance(self, arg2: "double", arg3: "double", arg4: "double", arg5: "double", arg6: "double", arg7: "double", arg8: "double", arg9: "double") -> "double":
return _pybodies.SphereLDSSphereLDSR_distance(self, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)
[docs] def computeh(self, q: "BlockVector", z: "BlockVector", y: "SiconosVector") -> "void":
r"""
to compute the output y = h(t,q,z) of the Relation
:type q: :py:class:`BlockVector`
:param q: coordinates of the dynamical systems involved in the relation
:type z: :py:class:`BlockVector`
:param z: user defined parameters (optional)
:type y: :py:class:`SiconosVector`
:param y: the resulting vector
"""
return _pybodies.SphereLDSSphereLDSR_computeh(self, q, z, y)
[docs] def computeJachq(self, q: "BlockVector", z: "BlockVector") -> "void":
r"""
to compute the jacobian of h(...). Set attribute _jachq (access: jacqhq())
:type q: :py:class:`BlockVector`
:param q: coordinates of the dynamical systems involved in the relation
:type z: :py:class:`BlockVector`
:param z: user defined parameters (optional)
"""
return _pybodies.SphereLDSSphereLDSR_computeJachq(self, q, z)
__swig_destroy__ = _pybodies.delete_SphereLDSSphereLDSR
def __disown__(self):
self.this.disown()
_pybodies.disown_SphereLDSSphereLDSR(self)
return weakref.proxy(self)
def _zeroPlugin(self) -> "void":
r""" reset all plugins"""
return _pybodies.SphereLDSSphereLDSR__zeroPlugin(self)
# Register SphereLDSSphereLDSR in _pybodies:
_pybodies.SphereLDSSphereLDSR_swigregister(SphereLDSSphereLDSR)
[docs]class SphereNEDSSphereNEDSR(siconos.kernel.NewtonEuler3DR, ):
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
def __init__(self, r1: "double", r2: "double"):
r"""
Constructor
:type r1: float
:param r1: disk1 radius
:type r2: float
:param r2: disk2 radius
"""
if self.__class__ == SphereNEDSSphereNEDSR:
_self = None
else:
_self = self
_pybodies.SphereNEDSSphereNEDSR_swiginit(self, _pybodies.new_SphereNEDSSphereNEDSR(_self, r1, r2))
[docs] def distance(self, arg2: "double", arg3: "double", arg4: "double", arg5: "double", arg6: "double", arg7: "double", arg8: "double", arg9: "double") -> "double":
return _pybodies.SphereNEDSSphereNEDSR_distance(self, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9)
[docs] def computeh(self, time: "double", q0: "BlockVector", y: "SiconosVector") -> "void":
r"""
to compute the output y = h(t,q,z) of the Relation
:type time: float
:param time: current time value
:param q: coordinates of the dynamical systems involved in the relation
:type y: :py:class:`SiconosVector`
:param y: the resulting vector
"""
return _pybodies.SphereNEDSSphereNEDSR_computeh(self, time, q0, y)
__swig_destroy__ = _pybodies.delete_SphereNEDSSphereNEDSR
def __disown__(self):
self.this.disown()
_pybodies.disown_SphereNEDSSphereNEDSR(self)
return weakref.proxy(self)
def _zeroPlugin(self) -> "void":
r""" To initialize all the plugin functions with nullptr."""
return _pybodies.SphereNEDSSphereNEDSR__zeroPlugin(self)
# Register SphereNEDSSphereNEDSR in _pybodies:
_pybodies.SphereNEDSSphereNEDSR_swigregister(SphereNEDSSphereNEDSR)