Class SIUnit

    • Constructor Detail

      • SIUnit

        public SIUnit()
    • Method Detail

      • of

        public static SIUnit of​(String siString)
                         throws UnitException
        Instantiate an SI unit 'of' a String.
        Parameters:
        siString - String; the SI string, e.g., "kgm/s2"
        Returns:
        the SIUnit based on the SI dimensionality
        Throws:
        UnitException - when the SI string is not according to the rules
      • of

        public static SIUnit of​(SIDimensions siDimensions)
                         throws UnitException
        Instantiate an SI unit 'of' a SIDimensions.
        Parameters:
        siDimensions - SIDimensions; the SI dimensions
        Returns:
        the SIUnit based on the SI dimensionality
        Throws:
        UnitException - when the SI string is not according to the rules