: Public abstract Class
Created: 23.5.2022 18.05.04
Modified: 1.8.2022 13.54.02
Project:
Advanced:
Any of the systems devised to measure some physical quantity such distance or area or a system devised to measure such things as the passage of time.<br/><br/>The classes of UnitOfMeasure are determined by the member "measureType." Subclasses are not needed for implementation, but their use makes type constraints on measure valued attributes easier to specify. <br/><br/>-- conversionToISOstandardUnit is not null only if the conversion is a simple scale<br/>
Attribute
Public CharacterString
  formula
Details:
Notes: An algebraic formula (probably in some programming language) converting this unit of measure (represented in the formula by its uomSymbol) to the ISO standard (represented by its symbol. This member attribute is not required, but it is a valuable piece of documentation. <br/>
Public MeasureType
  measureType
Details:
 
Public CharacterString
  nameStandardUnit
Details:
Notes: Name of the standard units to which this unit of measure can be directly converted. If this variable is NULL, then the standard unit for this measure type given by the local copy of the StandardsUnits code list. <br/>
Public Real
  offsetToStandardUnit
Details:
Notes: See scaleToStandardUnit for a description. Again, this variable is NULL is no linear conversion is possible. If the two units are only a scale in difference, then this number is zero (0). If the implementation system used for this object does not support NULL, the then scale set to 0 is equivalent to NULL for both scale and offset. <br/>
Public Real
  scaleToStandardUnit
Details:
Notes: Multiplicative factor for conversion of this unit of measure to the standard one (often the ISO standard unit). This is NULL (or equivalent zero (0)) if the conversion is not simply a linear one. <br/>If the implementation system used for this object does not support NULL, the  scale set to 0 is equivalent to NULL for both scale and offset. <br/>If X is the current unit, and S is the standard one the of two variables scale(ToStandardUnit) and offset(ToStandardUnit) can be used to make the conversion from X to S by:<br/><br/>S = offset + scale*X<br/><br/>and, conversely,<br/><br/>X = (S-offset)/scale<br/>
Public CharacterString
  uomName
Details:
Notes: The name(s) of a particular unit of measure.  Examples would include the following: 1) for uomArea - square feet, 2) for uomTime - seconds, 3)for uomArea - miles and 4) uomAngle - degrees.<br/>
Public CharacterString
  uomSymbol
Details:
Notes: The symbol used for this unit of measure, such at "ft" for feet, or "m" for meter. <br/>
Operation
Public
convertFrom( m: Measure,
):Measure
Details:
Sequential
Notes: Operation to convert from the parameter measure to a measure in this UnitOfMeasure.<br/>
Public
convertFromStandard( m: Measure,
):Measure
Details:
Sequential
Notes: Operation to convert from the standard units to a measure in this UnitOfMeasure. A special case of convertFrom, since the Measure m passed as a parameter must carry its UnitOfMeasure. <br/>
Public
convertTo( m: UnitOfMeasure,
):Measure
Details:
Sequential
Notes: Operation to convert a Measure in this unit to the one given by the parameter. <br/>
Public
convertToStandard( m: Measure,
):Measure
Details:
Sequential
Notes: Operation to convert a Measure in this unit to the standard one given by the nameStandardUnit variable. <br/>
Element Source Role Target Role
Measure
Class  
Name: uom
The units used by the measure.
Name: measure
The measure in question.
Details:
 
UnitOfMeasure
Class  
Name:  
 
Name: subunit
 
Details:
 
Element Source Role Target Role
UnitOfMeasure
Class  
Name:  
 
Name: subunit
 
Details:
 
Tag Value
persistence persistent
Details:
 
Constraint Type Status
conversionToISOstandardUnit is not null only of the conversion is a simple Invariant Superseeded
Details:
conversionToISOstandardUnit is not null only of the conversion is a simple <br/>
Property Value
isFinalSpecialization: 0
Object Type Connection Direction Notes
UomTime Class Generalization From  
UomArea Class Generalization From  
UomCurrency Class Generalization From  
«type» UomWeight Class Generalization From  
UomVolume Class Generalization From  
UnitOfMeasure Class Class To  
UomAngle Class Generalization From  
UomScale Class Generalization From  
UomLength Class Generalization From  
UomVelocity Class Generalization From