Package org.vast.unit

Class GenericUnitConverter

java.lang.Object
org.vast.unit.AbstractUnitConverter
org.vast.unit.GenericUnitConverter
All Implemented Interfaces:
UnitConverter

public class GenericUnitConverter extends AbstractUnitConverter
*

Can convert anyone unit to another by using a single scale factor and custom functions.

Since:
May 4, 2006
  • Field Details

    • conversionFactor

      protected double conversionFactor
    • noFunctions

      protected boolean noFunctions
  • Constructor Details

    • GenericUnitConverter

      public GenericUnitConverter(double conversionFactor)
      Default constructor using given scalefactor
      Parameters:
      conversionFactor -
    • GenericUnitConverter

      public GenericUnitConverter(Unit srcUnit, Unit destUnit)
      Default constructor using given units as source and destination
      Parameters:
      srcUnit -
      destUnit -
  • Method Details