public final class TemperatureContent extends UnitValueContent
This content extends the UnitValueContent content converter by
adding a constant whose value comes from the 'Constant' param. This constant
is substracted during denormalization.
Proxied.Abstract| Modifier and Type | Field and Description |
|---|---|
static String |
CONSTANT_PARAM
Param specifying a number used to offset the Content during
normalization / denormalization.
|
MULTIPLIER_PARAM| Constructor and Description |
|---|
TemperatureContent() |
| Modifier and Type | Method and Description |
|---|---|
Double |
denormalize(NormalizedValue normalizedValue)
Denormalizes the value of a point value.
|
Double |
normalize(PointValue pointValue)
Normalizes the value of a point value.
|
boolean |
setUp(Metadata metadata,
ProxyEntity proxyEntity)
Sets up the instance for action.
|
getMultiplierdecode, getDoubleencode, getInstance, warnBadValuegetMetadata, getName, getParams, getProxyEntity, getThisLogger, tearDownpublic static final String CONSTANT_PARAM
public Double denormalize(NormalizedValue normalizedValue)
Converts from an internal unit to an external unit.
denormalize in interface Contentdenormalize in class UnitValueContentnormalizedValue - The point value associated with the value to be
denormalized.public Double normalize(PointValue pointValue)
Converts from an external unit to an internal unit.
normalize in interface Contentnormalize in class UnitValueContentpointValue - The point value associated with the value to be
normalized.public boolean setUp(Metadata metadata, ProxyEntity proxyEntity)
setUp in interface ProxiedsetUp in class UnitValueContentmetadata - The metadata available to the current process.proxyEntity - The proxy entity refering to the proxied.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.