stella.sensor
Class LimitedPolynomialConversion

java.lang.Object
  extended by util.PropertyContainer
      extended by util.PropertyResources
          extended by util.PropertyBundles
              extended by stella.sensor.AbstractConversion
                  extended by stella.sensor.AbstractDerivative
                      extended by stella.sensor.PolynomialConversion
                          extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
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.
 
Fields inherited from class stella.sensor.PolynomialConversion
KEY_INVERT, KEY_POLYNOM
 
Fields inherited from class stella.sensor.AbstractDerivative
KEY_VALUEDERIVATIVE
 
Fields inherited from class stella.sensor.AbstractConversion
KEY_UNIT, KEY_VALUEFORMAT, KEY_VALUESIGMA
 
Fields inherited from class util.PropertyBundles
KEY_LOCALECOUNTRY, KEY_LOCALELANGUAGE, KEY_RESOURCEBUNDLES
 
Fields inherited from class util.PropertyResources
KEY_NOINITONCREATE, localurl, locate, POSTFIX_DIR, POSTFIX_EXT, POSTFIX_FILE, POSTFIX_LIST, POSTFIX_URL, urlset
 
Fields inherited from class util.PropertyContainer
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATOR
 
Fields inherited from interface util.ResourceSupplying
KEY_URLRESOURCES, KEY_URLUSECONFIG, KEY_URLUSECURRENT, KEY_URLUSEHOME
 
Fields inherited from interface util.PropertySupplying
CONFIG, KEY_CLASS
 
Constructor Summary
LimitedPolynomialConversion(Map<String,String> prop)
          Constructs a new polynomial conversion object.
 
Method Summary
 double getPhysical(double x)
          Returns the polynomial approximation of the physical correct value.
 
Methods inherited from class stella.sensor.PolynomialConversion
getDeviation, getPhysicalDerivative, getRaw, getRawDerivative
 
Methods inherited from class stella.sensor.AbstractDerivative
getDerivativeValueFormat
 
Methods inherited from class stella.sensor.AbstractConversion
createConversion, getSigmaValueFormat, getUnit, getValueFormat
 
Methods inherited from class util.PropertyBundles
clone, getLocalized, getLocalized, getLocalizedString, getLocalizedString, loadResource
 
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 class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface stella.sensor.ConvertToPhysical
getSigmaValueFormat, getUnit, getValueFormat
 
Methods inherited from interface util.ResourceSupplying
getResource, getResourceAsStream, getResources
 
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
 
Methods inherited from interface util.Initializable
init
 

Field Detail

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
Constructor Detail

LimitedPolynomialConversion

public LimitedPolynomialConversion(Map<String,String> prop)
Constructs a new polynomial conversion object.

Method Detail

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.