Units are associated with the database, and to all the entities stored in the database. The units associated with the stored entities are independent of each other, and of the database units.
The “ClaDb” class defines several methods for the management of units:
“getDbUnits” returns a Hash containing the definition of units associated with the database.
“setDbUnits” has a Hash argument and sets the units associated to the database. This method does not affect the CLA entities stored in the database.
“setUnitsAllEntities” has a Hash argument and sets the units associated with the database and all the CLA entities stored in the database.
“setUnitsAllMaterials” has a Hash argument and sets the units associated with all the ClaMat entities stored in the database.
“setUnitsAllLaminates” has a Hash argument and sets the units associated with all the ClaLam entities stored in the database.
“setUnitsAllLoads” has a Hash argument and sets the units associated with all the ClaLoad entities stored in the database.
“changeUnitsAllEntities” has a Hash argument and changes the units associated with the database and all the CLA entities stored in the database.
“changeUnitsAllMaterials” has a Hash argument and changes the units associated with all the ClaMat entities stored in the database.
“changeUnitsAllLaminates” has a Hash argument and changes the units associated with all the ClaLam entities stored in the database.
“changeUnitsAllLoads” has a Hash argument and changes the units associated with all the ClaLoad entities stored in the database.
The Hash arguments or return values mentioned above have String keys and values as explained in section II.1.13. The difference between the “setUnits” and “changeUnits” methods is also explained in the same section.