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.
|
getMultiplier
decode, getDouble
encode, getInstance, warnBadValue
getMetadata, getName, getParams, getProxyEntity, getThisLogger, tearDown
public static final String CONSTANT_PARAM
public Double denormalize(NormalizedValue normalizedValue)
Converts from an internal unit to an external unit.
denormalize
in interface Content
denormalize
in class UnitValueContent
normalizedValue
- 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 Content
normalize
in class UnitValueContent
pointValue
- The point value associated with the value to be
normalized.public boolean setUp(Metadata metadata, ProxyEntity proxyEntity)
setUp
in interface Proxied
setUp
in class UnitValueContent
metadata
- The metadata available to the current process.proxyEntity
- The proxy entity refering to the proxied.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.