Package com.luciad.format.gml32.model
Class TLcdGML32ConversionToPreferredUnit
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.format.gml32.model.TLcdGML32UnitOfMeasure
com.luciad.format.gml32.model.TLcdGML32ConversionToPreferredUnit
- All Implemented Interfaces:
ILcdDataObject,ILcdCloneable,ILcdDeepCloneable,Cloneable
The inherited attribute uom references the preferred unit that this conversion applies to. The conversion of a unit to the preferred unit for this physical quantity type is specified by an arithmetic conversion (scaling and/or offset). The content model extends gml:UnitOfMeasureType, which has a mandatory attribute uom which identifies the preferred unit for the physical quantity type that this conversion applies to. The conversion is specified by a choice of
- gml:factor, which defines the scale factor, or
- gml:formula, which defines a formula
by which a value using the conventional unit of measure can be converted to obtain the corresponding value using the preferred unit of measure.
The formula defines the parameters of a simple formula by which a value using the conventional unit of measure can be converted to the corresponding value using the preferred unit of measure. The formula element contains elements a, b, c and d, whose values use the XML Schema type double. These values are used in the formula y = (a + bx) / (c + dx), where x is a value using this unit, and y is the corresponding value using the base unit. The elements a and d are optional, and if values are not provided, those parameters are considered to be zero. If values are not provided for both a and d, the formula is equivalent to a fraction with numerator and denominator parameters.
- Since:
- 10.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TLcdDataPropertyData property that maps to the choice between thefactorandformulaelements.Fields inherited from class com.luciad.format.gml32.model.TLcdGML32UnitOfMeasure
UOM_PROPERTY -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the property that maps to the choice between thefactorandformulaelements.voidsetFactorOrFormula(Object aValue) Sets the value of the property that maps to the choice between thefactorandformulaelements.Methods inherited from class com.luciad.format.gml32.model.TLcdGML32UnitOfMeasure
getUom, setUom
-
Field Details
-
FACTOR_OR_FORMULA_PROPERTY
Data property that maps to the choice between thefactorandformulaelements. The possible values for this property are instances ofDoubleTLcdGML32Formula
-
-
Constructor Details
-
TLcdGML32ConversionToPreferredUnit
public TLcdGML32ConversionToPreferredUnit() -
TLcdGML32ConversionToPreferredUnit
-
-
Method Details
-
getFactorOrFormula
Returns the value of the property that maps to the choice between thefactorandformulaelements.The possible values for this property are instances of
DoubleTLcdGML32Formula
- Returns:
- the value of the
FACTOR_OR_FORMULA_PROPERTYproperty.
-
setFactorOrFormula
Sets the value of the property that maps to the choice between thefactorandformulaelements.The possible values for this property are instances of
DoubleTLcdGML32Formula
- Parameters:
aValue- the value to set for theFACTOR_OR_FORMULA_PROPERTYproperty.
-