Class SIPrefixUnitConversionInfo

    • Constructor Detail

    • Method Detail

      • createAllSIPrefixConversionParameters

        public static void createAllSIPrefixConversionParameters​(DimensionRepresentativeConcept dimension,
                                                                 java.lang.String unitName,
                                                                 boolean useSymbols,
                                                                 double baseUnitFactor,
                                                                 RecordToken baseUnitRecord)
                                                          throws IllegalActionException
        Create all the different unit info parameters that represent SI prefix-based units for the given dimension.
        Parameters:
        dimension - The given DimensionRepresentativeConcept. It must be either an SIBaseDimensionRepresentativeConcept or an SIDerivedDimensionRepresentativeConcept.
        unitName - The name of the base unit with no SI prefix.
        useSymbols - true if the units should use the abbreviations for the unit prefixes. false if the units should use the full prefix names.
        baseUnitFactor - The base unit factor for unit with no SI prefix.
        baseUnitRecord - The base unit record that represents the component that make up the unit for an SIDerivedDimensionRepresentativeConcept. If the dimension is an SIBaseDimensionRepresentativeConcept then this parameter is ignored.
        Throws:
        IllegalActionException - Thrown if the input dimension is not an SIBaseDimensionRepresentativeConcept or an SIDerivedDimensionRepresentativeConcept.