Class TLcdUnitOfMeasureFactory

java.lang.Object
com.luciad.util.iso19103.TLcdUnitOfMeasureFactory

public class TLcdUnitOfMeasureFactory extends Object
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 Details

    • ALTITUDE_METRE

      public static final ILcdISO19103UnitOfMeasure ALTITUDE_METRE
      A unit of measure for altitudes where the altitude is expressed in metres.
      Since:
      2017.0
    • ALTITUDE_KILOMETRE

      public static final ILcdISO19103UnitOfMeasure ALTITUDE_KILOMETRE
      A unit of measure for altitudes where the altitude is expressed in kilometres.
      Since:
      2017.0
    • ALTITUDE_FEET

      public static final ILcdISO19103UnitOfMeasure ALTITUDE_FEET
      A unit of measure for altitudes where the altitude is expressed in feet.
      Since:
      2017.0
    • ALTITUDE_FLIGHT_LEVEL

      public static final ILcdISO19103UnitOfMeasure ALTITUDE_FLIGHT_LEVEL
      A unit of measure for altitudes where the altitude is expressed in flight levels.
      Since:
      2017.0
    • ANGLE_RADIAN

      public static final ILcdISO19103UnitOfMeasure ANGLE_RADIAN
      A unit of measure for angles where the angle is expressed in radians (1 rad = 1/(2Π) of a circle).
      Since:
      2017.0
    • ANGLE_DEGREE

      public static final ILcdISO19103UnitOfMeasure ANGLE_DEGREE
      A unit of measure for angles where the angle is expressed in degrees (1° = 1/360 of a circle).
      Since:
      2017.0
    • ANGLE_GRADIAN

      public static final ILcdISO19103UnitOfMeasure ANGLE_GRADIAN
      A unit of measure for angles where the angle is expressed in gradians (1 gon = 1/400 of a circle).
      Since:
      2017.0
    • ANGLE_MIL

      public static final 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).
      Since:
      2017.0
    • DISTANCE_METRE

      public static final ILcdISO19103UnitOfMeasure DISTANCE_METRE
      A unit of measure for distances where the distance is expressed in metres.
      Since:
      2017.0
    • DISTANCE_KILOMETRE

      public static final ILcdISO19103UnitOfMeasure DISTANCE_KILOMETRE
      A unit of measure for distances where the distance is expressed in kilometres.
      Since:
      2017.0
    • DISTANCE_NAUTICAL_MILE

      public static final ILcdISO19103UnitOfMeasure DISTANCE_NAUTICAL_MILE
      A unit of measure for distances where the distance is expressed in nautical miles.
      Since:
      2017.0
    • DISTANCE_MILE

      public static final ILcdISO19103UnitOfMeasure DISTANCE_MILE
      A unit of measure for distances where the distance is expressed in miles (US).
      Since:
      2017.0
    • DISTANCE_FEET

      public static final ILcdISO19103UnitOfMeasure DISTANCE_FEET
      A unit of measure for distances where the distance is expressed in feet.
      Since:
      2017.0
    • DURATION_FEMTOSECONDS

      public static final ILcdISO19103UnitOfMeasure DURATION_FEMTOSECONDS
      A unit of measure for durations where the duration is expressed in femtoseconds.
      Since:
      2017.0
    • DURATION_NANOSECONDS

      public static final ILcdISO19103UnitOfMeasure DURATION_NANOSECONDS
      A unit of measure for durations where the duration is expressed in nanoseconds.
      Since:
      2017.0
    • DURATION_MILLISECONDS

      public static final ILcdISO19103UnitOfMeasure DURATION_MILLISECONDS
      A unit of measure for durations where the duration is expressed in milliseconds.
      Since:
      2017.0
    • DURATION_SECONDS

      public static final ILcdISO19103UnitOfMeasure DURATION_SECONDS
      A unit of measure for durations where the duration is expressed in seconds.
      Since:
      2017.0
    • DURATION_MINUTES

      public static final ILcdISO19103UnitOfMeasure DURATION_MINUTES
      A unit of measure for durations where the duration is expressed in minutes.
      Since:
      2017.0
    • DURATION_HOURS

      public static final ILcdISO19103UnitOfMeasure DURATION_HOURS
      A unit of measure for durations where the duration is expressed in hours.
      Since:
      2017.0
    • SPEED_METRE_SECOND

      public static final ILcdISO19103UnitOfMeasure SPEED_METRE_SECOND
      A unit of measure for velocities where the velocity (=speed) is expressed in metres per second.
      Since:
      2017.0
    • SPEED_NAUTICAL_MILE_SECOND

      public static final ILcdISO19103UnitOfMeasure SPEED_NAUTICAL_MILE_SECOND
      A unit of measure for velocities where the velocity (=speed) is expressed in nautical miles per second.
      Since:
      2017.0
    • SPEED_FEET_MINUTE

      public static final ILcdISO19103UnitOfMeasure SPEED_FEET_MINUTE
      A unit of measure for velocities where the velocity (=speed) is expressed in feet per minute.
      Since:
      2017.0
    • SPEED_FLIGHT_LEVEL_SECOND

      public static final ILcdISO19103UnitOfMeasure SPEED_FLIGHT_LEVEL_SECOND
      A unit of measure for velocities where the velocity (=speed) is expressed in flight level per second.
      Since:
      2017.0
    • SPEED_KILOMETRE_HOUR

      public static final ILcdISO19103UnitOfMeasure SPEED_KILOMETRE_HOUR
      A unit of measure for velocities where the velocity (=speed) is expressed in kilometres per hour.
      Since:
      2017.0
    • SPEED_MACH

      public static final 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).
      Since:
      2017.0
    • SPEED_MILES_HOUR

      public static final ILcdISO19103UnitOfMeasure SPEED_MILES_HOUR
      A unit of measure for velocities where the velocity (=speed) is expressed in miles per hour.
      Since:
      2017.0
    • SPEED_KNOTS

      public static final ILcdISO19103UnitOfMeasure SPEED_KNOTS
      A unit of measure for velocities where the velocity (=speed) is expressed in knots.
      Since:
      2017.0
    • TIME_SECONDS

      public static final ILcdISO19103UnitOfMeasure TIME_SECONDS
      A unit of measure for absolute time instants representing the seconds since epoch. Note that this unit is for absolute times, and not for durations.
      Since:
      2017.0
    • TIME_MILLISECONDS

      public static final ILcdISO19103UnitOfMeasure TIME_MILLISECONDS
      A unit of measure for absolute 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 unit-of-measure from another.

      The measure type must be a specialization of the unit-of-measure's measure type. For example TERRAIN_HEIGHT is a specialization of ALTITUDE.

      Parameters:
      aUnitOfMeasure - the base unit-of-measure
      aMeasureType - the measure type
      Returns:
      the unit of measure
      Throws:
      IllegalArgumentException - if the specified measure type is not compatible with the unit-of-measure
    • createUnitOfMeasure

      public static ILcdISO19103UnitOfMeasure createUnitOfMeasure(String aUOMName, String aUOMSymbol, TLcdISO19103MeasureTypeCode aMeasureType, String aNameOfStandardUnit, double aToStandardScale, double aToStandardOffset)
      Creates a unit-of-measure.

      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 name
      aUOMSymbol - the symbol
      aMeasureType - the measure type
      aNameOfStandardUnit - the name of the standard unit
      aToStandardScale - the scale factor to apply when converting to the standard unit
      aToStandardOffset - the offset to add when converting to the standard unit
      Returns:
      the unit-of-measure