Class Unit

    • Constructor Detail

      • Unit

        public Unit​(CrsId crsId,
                    String name,
                    double conversionFactor)
        Creates an instance.
        Parameters:
        crsId -
        name -
        conversionFactor -
    • Method Detail

      • getFundamentalUnit

        public abstract Unit getFundamentalUnit()
        Returns the fundamental unit for this type of Unit.
        Returns:
        Meter for linear, Radian for angular units.
      • getConversionFactor

        public double getConversionFactor()
        Returns the conversion factor: the scalar value that converts a value of this Unit to the fundamental unit for this type of unit.
        Returns:
      • isAngular

        public abstract boolean isAngular()
        Returns true if this Unit is angular.
        Returns: