Interface Unit

All Known Implementing Classes:
BaseUnit, EnergyUnit, LengthUnit, PowerUnit, PressureUnit, RateUnit, TemperatureUnit, TimeUnit

public interface Unit

Unit interface.

Version:
$Id: $Id
Author:
esol
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    getSIvalue.
    double
    getValue(double val, String fromunit, String tounit)
    Convert value from a specified unit to a specified unit.
    double
    getValue(String tounit)
    Get process value in specified unit.
  • Method Details

    • getSIvalue

      double getSIvalue()

      getSIvalue.

      Returns:
      a double
    • getValue

      double getValue(double val, String fromunit, String tounit)

      Convert value from a specified unit to a specified unit.

      Parameters:
      val - a double
      fromunit - a String object
      tounit - a String object
      Returns:
      a double
    • getValue

      double getValue(String tounit)

      Get process value in specified unit.

      Parameters:
      tounit - Unit to get process value in.
      Returns:
      Value converted to the specified unit.