/*
* Geotoolkit - An Open Source Java GIS Toolkit
* http://www.geotoolkit.org
*
* (C) 2008 - 2009, Geomatys
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*/
package org.geotoolkit.gml.xml.v311;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* 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.
*
* <p>Java class for FormulaType complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* <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>
* </pre>
*
*
* @module
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "FormulaType", propOrder = {
"a",
"b",
"c",
"d"
})
public class FormulaType {
protected Double a;
protected double b;
protected double c;
protected Double d;
/**
* Gets the value of the a property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getA() {
return a;
}
/**
* Sets the value of the a property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setA(final Double value) {
this.a = value;
}
/**
* Gets the value of the b property.
*
*/
public double getB() {
return b;
}
/**
* Sets the value of the b property.
*
*/
public void setB(final double value) {
this.b = value;
}
/**
* Gets the value of the c property.
*
*/
public double getC() {
return c;
}
/**
* Sets the value of the c property.
*
*/
public void setC(final double value) {
this.c = value;
}
/**
* Gets the value of the d property.
*
* @return
* possible object is
* {@link Double }
*
*/
public Double getD() {
return d;
}
/**
* Sets the value of the d property.
*
* @param value
* allowed object is
* {@link Double }
*
*/
public void setD(final Double value) {
this.d = value;
}
}