Package org.vast.unit

Class UnitConversion

java.lang.Object
org.vast.unit.UnitConversion

public class UnitConversion extends Object

This object contains routines to create UnitConverters and manage a local dictionary of units.

Since:
May 4, 2006
  • Constructor Details

    • UnitConversion

      public UnitConversion()
  • Method Details

    • createConverterToSI

      public static UnitConverter createConverterToSI(String uom)
      Helper mehod to get the converter directly from the uom string
      Parameters:
      uom -
      Returns:
      converter instance
    • getConverter

      public static UnitConverter getConverter(Unit sourceUnit, Unit destUnit)
      Helper method to create the right converter given the specified source and destination units.
      Parameters:
      sourceUnit -
      destUnit -
      Returns:
      converter instance