Class SIUnits

  • All Implemented Interfaces:
    javax.measure.spi.SystemOfUnits, tec.uom.lib.common.function.Nameable

    @NonNullByDefault
    public final class SIUnits
    extends tec.uom.se.AbstractSystemOfUnits
    Delegate SI units to Units to hide this dependency from the rest of openHAB. See members of Units for a detailed description.
    Author:
    Henning Treu - Initial contribution
    • Nested Class Summary

      • Nested classes/interfaces inherited from class tec.uom.se.AbstractSystemOfUnits

        tec.uom.se.AbstractSystemOfUnits.Helper
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static javax.measure.Unit<javax.measure.quantity.Temperature> CELSIUS  
      static javax.measure.Unit<javax.measure.quantity.Volume> CUBIC_METRE  
      static javax.measure.Unit<javax.measure.quantity.Mass> GRAM  
      static javax.measure.Unit<javax.measure.quantity.Mass> KILOGRAM  
      static javax.measure.Unit<javax.measure.quantity.Speed> KILOMETRE_PER_HOUR  
      static javax.measure.Unit<javax.measure.quantity.Length> METRE  
      static javax.measure.Unit<javax.measure.quantity.Pressure> PASCAL  
      static javax.measure.Unit<javax.measure.quantity.Area> SQUARE_METRE  
      • Fields inherited from class tec.uom.se.AbstractSystemOfUnits

        E, logger, quantityToUnit, units
    • Field Detail

      • CELSIUS

        public static final javax.measure.Unit<javax.measure.quantity.Temperature> CELSIUS
      • KILOMETRE_PER_HOUR

        public static final javax.measure.Unit<javax.measure.quantity.Speed> KILOMETRE_PER_HOUR
      • METRE

        public static final javax.measure.Unit<javax.measure.quantity.Length> METRE
      • KILOGRAM

        public static final javax.measure.Unit<javax.measure.quantity.Mass> KILOGRAM
      • GRAM

        public static final javax.measure.Unit<javax.measure.quantity.Mass> GRAM
      • SQUARE_METRE

        public static final javax.measure.Unit<javax.measure.quantity.Area> SQUARE_METRE
      • CUBIC_METRE

        public static final javax.measure.Unit<javax.measure.quantity.Volume> CUBIC_METRE
      • PASCAL

        public static final javax.measure.Unit<javax.measure.quantity.Pressure> PASCAL
    • Method Detail

      • getInstance

        public static javax.measure.spi.SystemOfUnits getInstance()
        Returns the unique instance of this class.
        Returns:
        the Units instance.
      • getName

        public String getName()
        Specified by:
        getName in interface tec.uom.lib.common.function.Nameable
        Specified by:
        getName in interface javax.measure.spi.SystemOfUnits
        Specified by:
        getName in class tec.uom.se.AbstractSystemOfUnits