: Public abstract Class
Created: 4/10/2008 12:15:50 PM
Modified: 6/13/2008 3:30:57 PM
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 /></p><p><br /></p><p>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 /></p><p><br /></p><p>-- conversionToISOstandardUnit is not null only if the conversion is a simple scale<br /></p>
Attribute
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.
Public CharacterString
  uomSymbol

Details:
Notes: The symbol used for this unit of measure, such at "ft" for feet, or "m" for meter.
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.
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 /></p><p>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 /></p><p>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 /></p><p><br /></p><p>S = offset + scale*X<br /></p><p><br /></p><p>and, conversely,<br /></p><p><br /></p><p>X = (S-offset)/scale<br /></p>
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.
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.
Operation
Public
convertFrom( m: Measure,
):Measure
Details:
sequential
Notes: Operation to convert from the parameter measure to a measure in this UnitOfMeasure.
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.
Public
convertTo( m: UnitOfMeasure,
):Measure
Details:
sequential
Notes: Operation to convert a Measure in this unit to the one given by the parameter.
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.
Element Source Role Target Role
UnitOfMeasure
Class  
Name:  
 
Name: subunit
 
Details:
 
Measure
Class  
Name: uom
The units used by the measure.
Name: measure
The measure in question.
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 Approved
Details:
conversionToISOstandardUnit is not null only of the conversion is a simple
Object Type Connection Notes
UnitOfMeasure Class Class  
UomArea Class Generalization  
UomLength Class Generalization  
UomVolume Class Generalization  
«Type» UomWeight Class Generalization  
UomTime Class Generalization  
UomCurrency Class Generalization  
UomVelocity Class Generalization  
UomAngle Class Generalization  
UomScale Class Generalization