Package nl.b3p.csw.jaxb.gml
Class FormulaType
- java.lang.Object
-
- nl.b3p.csw.jaxb.gml.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>
-
-
Constructor Summary
Constructors Constructor Description FormulaType()Default no-arg constructorFormulaType(Double a, double b, double c, Double d)Fully-initialising value constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DoublegetA()Gets the value of the a property.doublegetB()Gets the value of the b property.doublegetC()Gets the value of the c property.DoublegetD()Gets the value of the d property.voidsetA(Double value)Sets the value of the a property.voidsetB(double value)Sets the value of the b property.voidsetC(double value)Sets the value of the c property.voidsetD(Double value)Sets the value of the d property.
-
-
-
Method Detail
-
setA
public void setA(Double value)
Sets the value of the a property.- Parameters:
value- allowed object isDouble
-
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.
-
-