Package mbdyn :: Module quantity :: Class Results
[hide private]

Class Results

source code

object --+        
         |        
      list --+    
             |    
    CommonList --+
                 |
                Results

All the possible results that will be saved during the simulation. This class is attribute of almost all the MDByn objects.

This is an interface to the user that decides what he would like to save for every object. The instance of this class is for example accessed by: node.results

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
add(self, attr_name)
Add the attribute, as a string, that needs to be saved during the simulation.
source code
 
init(self)
Initialize the quantities and set them as attributes
source code
 
__repr__(self)
Return the representation of all the Result attributes
source code

Inherited from CommonList: clean

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __hash__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __reversed__, __rmul__, __setitem__, __setslice__, append, count, extend, index, insert, pop, remove, reverse, sort

Inherited from object: __delattr__, __reduce__, __reduce_ex__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Returns:
new list

Overrides: list.__init__
(inherited documentation)

add(self, attr_name)

source code 
Add the attribute, as a string, that needs to be saved during the simulation. It will create a new Result instance

__repr__(self)
(Representation operator)

source code 
Return the representation of all the Result attributes
Overrides: list.__repr__