Package mbdyn :: Module common :: Class BasicObject
[hide private]

Class BasicObject

source code

record.RecordBase --+    
                    |    
        record.Record --+
                        |
                       BasicObject
Known Subclasses:
references.BasicReference, preprocessing.SimulationBase, nodes.Node, law.LinearElasticGeneric, elements_base.CommonElement, groups.CommonContainer, groups.ItemGroup

An object that will collect the values of the parameters to save. The name of those parameters are in the 'own_para_names' attribute and will be set specifically for each object.

Instance Methods [hide private]
 
__init__(self, name) source code
 
set_name(self, name)
Set the name of the object.
source code
 
set_label(self, label)
Set the label of the object, used by the MBDyn input file.
source code
 
set_comment(self, comment)
Set a global comment on the object, (takes one line in the MBDyn input file).
source code
 
get_lines(self)
Return all the lines of the argument into a list, used for writing the MBDyn input file.
source code
 
set_simulation_ref(self, simu)
Keep a reference of the simulation
source code
 
get_mbdyn_instance(self)
Set a reference to the MBDyn instance, from the mbdyn.bindings under the mbdyn_inst attribute.
source code

Inherited from record.Record: common_init_results, 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: record.Record.__init__

get_mbdyn_instance(self)

source code 
Set a reference to the MBDyn instance, from the mbdyn.bindings under the mbdyn_inst attribute. However a general object can not get a MBDyn instance by default. This step will be done according to each group, labelling each object differently.