public class TLcdUnitOfMeasureFactory
extends java.lang.Object
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.Modifier and Type  Field and Description 

static ILcdISO19103UnitOfMeasure 
ALTITUDE_FEET
A unit of measure for
altitudes where the altitude is expressed
in feet. 
static ILcdISO19103UnitOfMeasure 
ALTITUDE_FLIGHT_LEVEL
A unit of measure for
altitudes where the altitude is expressed
in flight levels. 
static ILcdISO19103UnitOfMeasure 
ALTITUDE_KILOMETRE
A unit of measure for
altitudes where the altitude is expressed
in kilometres. 
static ILcdISO19103UnitOfMeasure 
ALTITUDE_METRE
A unit of measure for
altitudes where the altitude is expressed
in metres. 
static ILcdISO19103UnitOfMeasure 
ANGLE_DEGREE
A unit of measure for
angles where the angle is expressed
in degrees (1° = 1/360 of a circle). 
static ILcdISO19103UnitOfMeasure 
ANGLE_GRADIAN
A unit of measure for
angles where the angle is expressed
in gradians (1 gon = 1/400 of a circle). 
static ILcdISO19103UnitOfMeasure 
ANGLE_MIL
A unit of measure for
angles where the angle is expressed
in angular mils as defined by the NATO (1/6400 of a circle). 
static ILcdISO19103UnitOfMeasure 
ANGLE_RADIAN
A unit of measure for
angles where the angle is expressed
in radians (1 rad = 1/(2Π) of a circle). 
static ILcdISO19103UnitOfMeasure 
DISTANCE_FEET
A unit of measure for
distances where the distance is
expressed in feet. 
static ILcdISO19103UnitOfMeasure 
DISTANCE_KILOMETRE
A unit of measure for
distances where the distance is
expressed in kilometres. 
static ILcdISO19103UnitOfMeasure 
DISTANCE_METRE
A unit of measure for
distances where the distance is
expressed in metres. 
static ILcdISO19103UnitOfMeasure 
DISTANCE_MILE
A unit of measure for
distances where the distance is
expressed in miles (US). 
static ILcdISO19103UnitOfMeasure 
DISTANCE_NAUTICAL_MILE
A unit of measure for
distances where the distance is
expressed in nautical miles. 
static ILcdISO19103UnitOfMeasure 
DURATION_FEMTOSECONDS
A unit of measure for
durations where the duration is
expressed in femtoseconds. 
static ILcdISO19103UnitOfMeasure 
DURATION_HOURS
A unit of measure for
durations where the duration is
expressed in hours. 
static ILcdISO19103UnitOfMeasure 
DURATION_MILLISECONDS
A unit of measure for
durations where the duration is
expressed in milliseconds. 
static ILcdISO19103UnitOfMeasure 
DURATION_MINUTES
A unit of measure for
durations where the duration is
expressed in minutes. 
static ILcdISO19103UnitOfMeasure 
DURATION_NANOSECONDS
A unit of measure for
durations where the duration is
expressed in nanoseconds. 
static ILcdISO19103UnitOfMeasure 
DURATION_SECONDS
A unit of measure for
durations where the duration is
expressed in seconds. 
static ILcdISO19103UnitOfMeasure 
SPEED_FEET_MINUTE
A unit of measure for
velocities where the velocity (=speed) is
expressed in feet per minute. 
static ILcdISO19103UnitOfMeasure 
SPEED_FLIGHT_LEVEL_SECOND
A unit of measure for
velocities where the velocity (=speed) is
expressed in flight level per second. 
static ILcdISO19103UnitOfMeasure 
SPEED_KILOMETRE_HOUR
A unit of measure for
velocities where the velocity (=speed) is
expressed in kilometres per hour. 
static ILcdISO19103UnitOfMeasure 
SPEED_KNOTS
A unit of measure for
velocities where the velocity (=speed) is
expressed in knots. 
static ILcdISO19103UnitOfMeasure 
SPEED_MACH
A unit of measure for
velocities where the velocity (=speed) is
expressed relative to the speed of sound (at a temerature of 15 degrees Celsius and at sea level). 
static ILcdISO19103UnitOfMeasure 
SPEED_METRE_SECOND
A unit of measure for
velocities where the velocity (=speed) is
expressed in metres per second. 
static ILcdISO19103UnitOfMeasure 
SPEED_MILES_HOUR
A unit of measure for
velocities where the velocity (=speed) is
expressed in miles per hour. 
static ILcdISO19103UnitOfMeasure 
SPEED_NAUTICAL_MILE_SECOND
A unit of measure for
velocities where the velocity (=speed) is
expressed in nautical miles per second. 
static ILcdISO19103UnitOfMeasure 
TIME_MILLISECONDS
A unit of measure for
absolute time instants representing the milliseconds since epoch. 
static ILcdISO19103UnitOfMeasure 
TIME_SECONDS
A unit of measure for
absolute time instants representing the seconds since epoch. 
Modifier and Type  Method and Description 

static ILcdISO19103UnitOfMeasure 
createUnitOfMeasure(java.lang.String aUOMName,
java.lang.String aUOMSymbol,
TLcdISO19103MeasureTypeCode aMeasureType,
java.lang.String aNameOfStandardUnit,
double aToStandardScale,
double aToStandardOffset)
Creates a unitofmeasure.

static ILcdISO19103UnitOfMeasure 
deriveUnitOfMeasure(ILcdISO19103UnitOfMeasure aUnitOfMeasure,
TLcdISO19103MeasureTypeCode aMeasureType)
Derives a unitofmeasure from another.

public static final ILcdISO19103UnitOfMeasure ALTITUDE_METRE
altitudes
where the altitude is expressed
in metres.public static final ILcdISO19103UnitOfMeasure ALTITUDE_KILOMETRE
altitudes
where the altitude is expressed
in kilometres.public static final ILcdISO19103UnitOfMeasure ALTITUDE_FEET
altitudes
where the altitude is expressed
in feet.public static final ILcdISO19103UnitOfMeasure ALTITUDE_FLIGHT_LEVEL
altitudes
where the altitude is expressed
in flight levels.public static final ILcdISO19103UnitOfMeasure ANGLE_RADIAN
angles
where the angle is expressed
in radians (1 rad = 1/(2Π) of a circle).public static final ILcdISO19103UnitOfMeasure ANGLE_DEGREE
angles
where the angle is expressed
in degrees (1° = 1/360 of a circle).public static final ILcdISO19103UnitOfMeasure ANGLE_GRADIAN
angles
where the angle is expressed
in gradians (1 gon = 1/400 of a circle).public static final ILcdISO19103UnitOfMeasure ANGLE_MIL
angles
where the angle is expressed
in angular mils as defined by the NATO (1/6400 of a circle).public static final ILcdISO19103UnitOfMeasure DISTANCE_METRE
distances
where the distance is
expressed in metres.public static final ILcdISO19103UnitOfMeasure DISTANCE_KILOMETRE
distances
where the distance is
expressed in kilometres.public static final ILcdISO19103UnitOfMeasure DISTANCE_NAUTICAL_MILE
distances
where the distance is
expressed in nautical miles.public static final ILcdISO19103UnitOfMeasure DISTANCE_MILE
distances
where the distance is
expressed in miles (US).public static final ILcdISO19103UnitOfMeasure DISTANCE_FEET
distances
where the distance is
expressed in feet.public static final ILcdISO19103UnitOfMeasure DURATION_FEMTOSECONDS
durations
where the duration is
expressed in femtoseconds.public static final ILcdISO19103UnitOfMeasure DURATION_NANOSECONDS
durations
where the duration is
expressed in nanoseconds.public static final ILcdISO19103UnitOfMeasure DURATION_MILLISECONDS
durations
where the duration is
expressed in milliseconds.public static final ILcdISO19103UnitOfMeasure DURATION_SECONDS
durations
where the duration is
expressed in seconds.public static final ILcdISO19103UnitOfMeasure DURATION_MINUTES
durations
where the duration is
expressed in minutes.public static final ILcdISO19103UnitOfMeasure DURATION_HOURS
durations
where the duration is
expressed in hours.public static final ILcdISO19103UnitOfMeasure SPEED_METRE_SECOND
velocities
where the velocity (=speed) is
expressed in metres per second.public static final ILcdISO19103UnitOfMeasure SPEED_NAUTICAL_MILE_SECOND
velocities
where the velocity (=speed) is
expressed in nautical miles per second.public static final ILcdISO19103UnitOfMeasure SPEED_FEET_MINUTE
velocities
where the velocity (=speed) is
expressed in feet per minute.public static final ILcdISO19103UnitOfMeasure SPEED_FLIGHT_LEVEL_SECOND
velocities
where the velocity (=speed) is
expressed in flight level per second.public static final ILcdISO19103UnitOfMeasure SPEED_KILOMETRE_HOUR
velocities
where the velocity (=speed) is
expressed in kilometres per hour.public static final ILcdISO19103UnitOfMeasure SPEED_MACH
velocities
where the velocity (=speed) is
expressed relative to the speed of sound (at a temerature of 15 degrees Celsius and at sea level).public static final ILcdISO19103UnitOfMeasure SPEED_MILES_HOUR
velocities
where the velocity (=speed) is
expressed in miles per hour.public static final ILcdISO19103UnitOfMeasure SPEED_KNOTS
velocities
where the velocity (=speed) is
expressed in knots.public static final ILcdISO19103UnitOfMeasure TIME_SECONDS
absolute time instants
representing the seconds since epoch.
Note that this unit is for absolute times, and not for durations.public static final ILcdISO19103UnitOfMeasure TIME_MILLISECONDS
absolute time instants
representing the milliseconds since epoch.
Note that this unit is for absolute times, and not for durations.public static ILcdISO19103UnitOfMeasure deriveUnitOfMeasure(ILcdISO19103UnitOfMeasure aUnitOfMeasure, TLcdISO19103MeasureTypeCode aMeasureType)
The measure type must be a specialization of the unitofmeasure's measure type. For example
TERRAIN_HEIGHT
is a specialization of
ALTITUDE
.
aUnitOfMeasure
 the base unitofmeasureaMeasureType
 the measure typejava.lang.IllegalArgumentException
 if the specified measure type is not compatible with the unitofmeasurepublic static ILcdISO19103UnitOfMeasure createUnitOfMeasure(java.lang.String aUOMName, java.lang.String aUOMSymbol, TLcdISO19103MeasureTypeCode aMeasureType, java.lang.String aNameOfStandardUnit, double aToStandardScale, double aToStandardOffset)
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.
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