Package com.luciad.util.iso19103
Class TLcdUnitOfMeasureFactory
java.lang.Object
com.luciad.util.iso19103.TLcdUnitOfMeasureFactory
Factory for
ILcdISO19103UnitOfMeasure
objects.
This factory contains some predefined units available as constants on this class.
If you need another unit, you can use the factory methods to create or derive a new unit. Since:
 2015.0

Field Summary
Modifier and TypeFieldDescriptionstatic final ILcdISO19103UnitOfMeasure
A unit of measure foraltitudes
where the altitude is expressed in feet.static final ILcdISO19103UnitOfMeasure
A unit of measure foraltitudes
where the altitude is expressed in flight levels.static final ILcdISO19103UnitOfMeasure
A unit of measure foraltitudes
where the altitude is expressed in kilometres.static final ILcdISO19103UnitOfMeasure
A unit of measure foraltitudes
where the altitude is expressed in metres.static final ILcdISO19103UnitOfMeasure
A unit of measure forangles
where the angle is expressed in degrees (1° = 1/360 of a circle).static final ILcdISO19103UnitOfMeasure
A unit of measure forangles
where the angle is expressed in gradians (1 gon = 1/400 of a circle).static final ILcdISO19103UnitOfMeasure
A unit of measure forangles
where the angle is expressed in angular mils as defined by the NATO (1/6400 of a circle).static final ILcdISO19103UnitOfMeasure
A unit of measure forangles
where the angle is expressed in radians (1 rad = 1/(2Π) of a circle).static final ILcdISO19103UnitOfMeasure
A unit of measure fordistances
where the distance is expressed in feet.static final ILcdISO19103UnitOfMeasure
A unit of measure fordistances
where the distance is expressed in kilometres.static final ILcdISO19103UnitOfMeasure
A unit of measure fordistances
where the distance is expressed in metres.static final ILcdISO19103UnitOfMeasure
A unit of measure fordistances
where the distance is expressed in miles (US).static final ILcdISO19103UnitOfMeasure
A unit of measure fordistances
where the distance is expressed in nautical miles.static final ILcdISO19103UnitOfMeasure
A unit of measure fordurations
where the duration is expressed in femtoseconds.static final ILcdISO19103UnitOfMeasure
A unit of measure fordurations
where the duration is expressed in hours.static final ILcdISO19103UnitOfMeasure
A unit of measure fordurations
where the duration is expressed in milliseconds.static final ILcdISO19103UnitOfMeasure
A unit of measure fordurations
where the duration is expressed in minutes.static final ILcdISO19103UnitOfMeasure
A unit of measure fordurations
where the duration is expressed in nanoseconds.static final ILcdISO19103UnitOfMeasure
A unit of measure fordurations
where the duration is expressed in seconds.static final ILcdISO19103UnitOfMeasure
A unit of measure forvelocities
where the velocity (=speed) is expressed in feet per minute.static final ILcdISO19103UnitOfMeasure
A unit of measure forvelocities
where the velocity (=speed) is expressed in flight level per second.static final ILcdISO19103UnitOfMeasure
A unit of measure forvelocities
where the velocity (=speed) is expressed in kilometres per hour.static final ILcdISO19103UnitOfMeasure
A unit of measure forvelocities
where the velocity (=speed) is expressed in knots.static final ILcdISO19103UnitOfMeasure
A unit of measure forvelocities
where the velocity (=speed) is expressed relative to the speed of sound (at a temerature of 15 degrees Celsius and at sea level).static final ILcdISO19103UnitOfMeasure
A unit of measure forvelocities
where the velocity (=speed) is expressed in metres per second.static final ILcdISO19103UnitOfMeasure
A unit of measure forvelocities
where the velocity (=speed) is expressed in miles per hour.static final ILcdISO19103UnitOfMeasure
A unit of measure forvelocities
where the velocity (=speed) is expressed in nautical miles per second.static final ILcdISO19103UnitOfMeasure
A unit of measure forabsolute time instants
representing the milliseconds since epoch.static final ILcdISO19103UnitOfMeasure
A unit of measure forabsolute time instants
representing the seconds since epoch. 
Method Summary
Modifier and TypeMethodDescriptionstatic ILcdISO19103UnitOfMeasure
createUnitOfMeasure
(String aUOMName, String aUOMSymbol, TLcdISO19103MeasureTypeCode aMeasureType, String aNameOfStandardUnit, double aToStandardScale, double aToStandardOffset) Creates a unitofmeasure.static ILcdISO19103UnitOfMeasure
deriveUnitOfMeasure
(ILcdISO19103UnitOfMeasure aUnitOfMeasure, TLcdISO19103MeasureTypeCode aMeasureType) Derives a unitofmeasure from another.

Field Details

ALTITUDE_METRE
A unit of measure foraltitudes
where the altitude is expressed in metres. Since:
 2017.0

ALTITUDE_KILOMETRE
A unit of measure foraltitudes
where the altitude is expressed in kilometres. Since:
 2017.0

ALTITUDE_FEET
A unit of measure foraltitudes
where the altitude is expressed in feet. Since:
 2017.0

ALTITUDE_FLIGHT_LEVEL
A unit of measure foraltitudes
where the altitude is expressed in flight levels. Since:
 2017.0

ANGLE_RADIAN
A unit of measure forangles
where the angle is expressed in radians (1 rad = 1/(2Π) of a circle). Since:
 2017.0

ANGLE_DEGREE
A unit of measure forangles
where the angle is expressed in degrees (1° = 1/360 of a circle). Since:
 2017.0

ANGLE_GRADIAN
A unit of measure forangles
where the angle is expressed in gradians (1 gon = 1/400 of a circle). Since:
 2017.0

ANGLE_MIL
A unit of measure forangles
where the angle is expressed in angular mils as defined by the NATO (1/6400 of a circle). Since:
 2017.0

DISTANCE_METRE
A unit of measure fordistances
where the distance is expressed in metres. Since:
 2017.0

DISTANCE_KILOMETRE
A unit of measure fordistances
where the distance is expressed in kilometres. Since:
 2017.0

DISTANCE_NAUTICAL_MILE
A unit of measure fordistances
where the distance is expressed in nautical miles. Since:
 2017.0

DISTANCE_MILE
A unit of measure fordistances
where the distance is expressed in miles (US). Since:
 2017.0

DISTANCE_FEET
A unit of measure fordistances
where the distance is expressed in feet. Since:
 2017.0

DURATION_FEMTOSECONDS
A unit of measure fordurations
where the duration is expressed in femtoseconds. Since:
 2017.0

DURATION_NANOSECONDS
A unit of measure fordurations
where the duration is expressed in nanoseconds. Since:
 2017.0

DURATION_MILLISECONDS
A unit of measure fordurations
where the duration is expressed in milliseconds. Since:
 2017.0

DURATION_SECONDS
A unit of measure fordurations
where the duration is expressed in seconds. Since:
 2017.0

DURATION_MINUTES
A unit of measure fordurations
where the duration is expressed in minutes. Since:
 2017.0

DURATION_HOURS
A unit of measure fordurations
where the duration is expressed in hours. Since:
 2017.0

SPEED_METRE_SECOND
A unit of measure forvelocities
where the velocity (=speed) is expressed in metres per second. Since:
 2017.0

SPEED_NAUTICAL_MILE_SECOND
A unit of measure forvelocities
where the velocity (=speed) is expressed in nautical miles per second. Since:
 2017.0

SPEED_FEET_MINUTE
A unit of measure forvelocities
where the velocity (=speed) is expressed in feet per minute. Since:
 2017.0

SPEED_FLIGHT_LEVEL_SECOND
A unit of measure forvelocities
where the velocity (=speed) is expressed in flight level per second. Since:
 2017.0

SPEED_KILOMETRE_HOUR
A unit of measure forvelocities
where the velocity (=speed) is expressed in kilometres per hour. Since:
 2017.0

SPEED_MACH
A unit of measure forvelocities
where the velocity (=speed) is expressed relative to the speed of sound (at a temerature of 15 degrees Celsius and at sea level). Since:
 2017.0

SPEED_MILES_HOUR
A unit of measure forvelocities
where the velocity (=speed) is expressed in miles per hour. Since:
 2017.0

SPEED_KNOTS
A unit of measure forvelocities
where the velocity (=speed) is expressed in knots. Since:
 2017.0

TIME_SECONDS
A unit of measure forabsolute time instants
representing the seconds since epoch. Note that this unit is for absolute times, and not for durations. Since:
 2017.0

TIME_MILLISECONDS
A unit of measure forabsolute time instants
representing the milliseconds since epoch. Note that this unit is for absolute times, and not for durations. Since:
 2017.0


Method Details

deriveUnitOfMeasure
public static ILcdISO19103UnitOfMeasure deriveUnitOfMeasure(ILcdISO19103UnitOfMeasure aUnitOfMeasure, TLcdISO19103MeasureTypeCode aMeasureType) Derives a unitofmeasure from another.The measure type must be a specialization of the unitofmeasure's measure type. For example
TERRAIN_HEIGHT
is a specialization ofALTITUDE
. Parameters:
aUnitOfMeasure
 the base unitofmeasureaMeasureType
 the measure type Returns:
 the unit of measure
 Throws:
IllegalArgumentException
 if the specified measure type is not compatible with the unitofmeasure

createUnitOfMeasure
public static ILcdISO19103UnitOfMeasure createUnitOfMeasure(String aUOMName, String aUOMSymbol, TLcdISO19103MeasureTypeCode aMeasureType, String aNameOfStandardUnit, double aToStandardScale, double aToStandardOffset) Creates a unitofmeasure.The values are converted to standard unit using the following formula:
standardUomValue = value * aToStandardScale + aToStandardOffset
The
deriveUnitOfMeasure
method can be used to easily obtain a derived unit. Parameters:
aUOMName
 the nameaUOMSymbol
 the symbolaMeasureType
 the measure typeaNameOfStandardUnit
 the name of the standard unitaToStandardScale
 the scale factor to apply when converting to the standard unitaToStandardOffset
 the offset to add when converting to the standard unit Returns:
 the unitofmeasure
