Package mbdyn :: Module groups :: Class CommonContainer
[hide private]

Class CommonContainer

source code

record.RecordBase --+        
                    |        
        record.Record --+    
                        |    
       common.BasicObject --+
                            |
                           CommonContainer
Known Subclasses:
Elements, Nodes

A base class for Nodes and Elements. The container has groups of nodes and elements as attributes.

Instance Methods [hide private]
 
__init__(self, name) source code
 
add_group(self, group)
Add a group of node or element.
source code
 
get_number(self)
Return the number of groups
source code
 
init_results(self)
Initialize the results of all the items contained in all the groups.
source code
 
write_into(self, file_to_write)
Write the node or element block into the MBDyn input file
source code
 
__repr__(self)
Return the representation of the container, with all the groups
source code

Inherited from common.BasicObject: get_lines, get_mbdyn_instance, set_comment, set_label, set_name, set_simulation_ref

Inherited from record.Record: common_init_results, save, set_own_parameters, will_save, will_save_nothing, will_save_only

Inherited from record.RecordBase: collect_own_parameters, collect_parameters, set_own_para, set_parameters

Inherited from record.RecordBase (private): _collect_own_para

Method Details [hide private]

__init__(self, name)
(Constructor)

source code 
Overrides: common.BasicObject.__init__

add_group(self, group)

source code 
Add a group of node or element. This group will set as attribute.

init_results(self)

source code 
Initialize the results of all the items contained in all the groups.
Overrides: record.Record.init_results