Package windSimSuite :: Module common :: Class List
[hide private]

Class List

source code

object --+    
         |    
      list --+
             |
            List

A list containing also object names as attribute.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
add(self, obj, name=None)
Add an object to the list.
source code
 
_add_mbdyn_object(self, obj, name)
Add a MBDyn object to the list and keep track of its name
source code
 
get(self, obj_name)
Return an object from its name
source code

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __hash__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __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, obj, name=None)

source code 
Add an object to the list. As an alternative, an oject can have an attribute mbdyn_objects for object based on the top of the Python module, that does not exist in MBDyn.