Class FormulaType


  • public class FormulaType
    extends Object
    Paremeters of a simple formula by which a value using this unit of measure can be converted to the corresponding value using the preferred unit of measure. The formula element contains elements a, b, c and d, whose values use the XML Schema type "double". These values are used in the formula y = (a + bx) / (c + dx), where x is a value using this unit, and y is the corresponding value using the preferred unit. The elements a and d are optional, and if values are not provided, those parameters are considered to be zero. If values are not provided for both a and d, the formula is equivalent to a fraction with numerator and denominator parameters.

    Java class for FormulaType complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="FormulaType">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <element name="a" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
             <element name="b" type="{http://www.w3.org/2001/XMLSchema}double"/>
             <element name="c" type="{http://www.w3.org/2001/XMLSchema}double"/>
             <element name="d" type="{http://www.w3.org/2001/XMLSchema}double" minOccurs="0"/>
           </sequence>
         </restriction>
       </complexContent>
     </complexType>
     
    • Field Detail

      • b

        protected double b
      • c

        protected double c
    • Constructor Detail

      • FormulaType

        public FormulaType()
        Default no-arg constructor
      • FormulaType

        public FormulaType​(Double a,
                           double b,
                           double c,
                           Double d)
        Fully-initialising value constructor
    • Method Detail

      • getA

        public Double getA()
        Gets the value of the a property.
        Returns:
        possible object is Double
      • setA

        public void setA​(Double value)
        Sets the value of the a property.
        Parameters:
        value - allowed object is Double
      • getB

        public double getB()
        Gets the value of the b property.
      • setB

        public void setB​(double value)
        Sets the value of the b property.
      • getC

        public double getC()
        Gets the value of the c property.
      • setC

        public void setC​(double value)
        Sets the value of the c property.
      • getD

        public Double getD()
        Gets the value of the d property.
        Returns:
        possible object is Double
      • setD

        public void setD​(Double value)
        Sets the value of the d property.
        Parameters:
        value - allowed object is Double