stella.sensor
Class LimitedPolynomialConversion
java.lang.Object
util.PropertyContainer
util.PropertyResources
util.PropertyBundles
stella.sensor.AbstractConversion
stella.sensor.AbstractDerivative
stella.sensor.PolynomialConversion
stella.sensor.LimitedPolynomialConversion
- All Implemented Interfaces:
- Serializable, Cloneable, ConvertToPhysical, PhysicalDerivative, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying
public class LimitedPolynomialConversion
- extends PolynomialConversion
A class that allows the polynomial conversion to be bounded by upper and/or
lower limits.
- See Also:
- Serialized Form
|
Field Summary |
static String |
KEY_LOWERLIMIT
The key pointing to a comma-separated polynom-coefficient string. |
static String |
KEY_UPPERLIMIT
The key pointing to a comma-separated polynom-coefficient string. |
|
Method Summary |
double |
getPhysical(double x)
Returns the polynomial approximation of the physical correct value. |
| Methods inherited from class util.PropertyResources |
createFrom, createFrom, createFrom, getApplet, getAsResources, getLocalClassLoader, getPropertiesToKey, getPropertiesToKey, getResource, getResourceAsStream, getResourceFromKey, getResources, init, keyCreate, keyCreate, reload, setApplet |
| Methods inherited from class util.PropertyContainer |
augment, augment, augment, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, isNew, parseObject, reload, removeProperty, rescanned, setObject, setProperties, setProperty, stringProperties, toString |
| Methods inherited from interface util.PropertySupplying |
defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, parseObject, removeProperty, setObject, setProperty, stringProperties |
KEY_LOWERLIMIT
public static final transient String KEY_LOWERLIMIT
- The key pointing to a comma-separated polynom-coefficient string.
- See Also:
- Constant Field Values
KEY_UPPERLIMIT
public static final transient String KEY_UPPERLIMIT
- The key pointing to a comma-separated polynom-coefficient string.
- See Also:
- Constant Field Values
LimitedPolynomialConversion
public LimitedPolynomialConversion(Map<String,String> prop)
- Constructs a new polynomial conversion object.
getPhysical
public double getPhysical(double x)
- Returns the polynomial approximation of the physical correct value.
- Specified by:
getPhysical in interface ConvertToPhysical- Overrides:
getPhysical in class PolynomialConversion
- Parameters:
x - The raw reading value.
- Returns:
- The physical quantity corresponding to the raw reading.