stella.sensor
Class IdenticalConversion

java.lang.Object
  extended by util.PropertyContainer
      extended by util.PropertyResources
          extended by util.PropertyBundles
              extended by stella.sensor.AbstractConversion
                  extended by stella.sensor.IdenticalConversion
All Implemented Interfaces:
Serializable, Cloneable, ConvertToPhysical, Initializable, LocalizedSupplying, PropertySupplying, ResourceSupplying

public class IdenticalConversion
extends AbstractConversion

The identical converter. It delivers physical value that are equal to the raw values.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class util.PropertyResources
PropertyResources.URLResource
 
Field Summary
 
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
IdenticalConversion(Map prop)
          Constructs a new rain conversion utility.
 
Method Summary
 double getDeviation(double reading, double deviation)
          This second method calculates (standard) deviation of the physical value in physically meaningful units.
 double getPhysical(double reading)
          Returns the raw reading.
 double getRaw(double phys)
          Returns the physical value.
 
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 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
 

Constructor Detail

IdenticalConversion

public IdenticalConversion(Map prop)
Constructs a new rain conversion utility. No additional properties needed.

Method Detail

getPhysical

public double getPhysical(double reading)
Returns the raw reading.

Parameters:
reading - The raw reading value.
Returns:
The raw reading.

getRaw

public double getRaw(double phys)
Returns the physical value.


getDeviation

public double getDeviation(double reading,
                           double deviation)
Description copied from interface: ConvertToPhysical
This second method calculates (standard) deviation of the physical value in physically meaningful units. For non-linear transformations, it is necessary to include not only the (standard) deviation of the measured value, but also the value itself.

Parameters:
reading - The raw reading value.
deviation - The standard deviation of the raw readings.
Returns:
The raw deviation.