public class Atmosphere_AirTemperature extends Object implements IMimdMetadataValue
Atmosphere airTemperature attribute.
This is a specialisation of a floating point (double).
See ST1905 for more information on this data type.
| Constructor and Description |
|---|
Atmosphere_AirTemperature(byte[] bytes)
Create Atmosphere_AirTemperature from encoded bytes.
|
Atmosphere_AirTemperature(byte[] bytes,
int offset,
int length)
Create Atmosphere_AirTemperature from encoded bytes.
|
Atmosphere_AirTemperature(double value)
Construct from value.
|
| Modifier and Type | Method and Description |
|---|---|
static Atmosphere_AirTemperature |
fromBytes(byte[] bytes)
Create Atmosphere_AirTemperature from encoded bytes.
|
byte[] |
getBytes()
Get the encoded bytes.
|
String |
getDisplayableValue()
Return a string of the displayable value.
|
String |
getDisplayName()
Get the human-readable name for the value.
|
double |
getValue()
Get the value of this Atmosphere_AirTemperature.
|
public Atmosphere_AirTemperature(double value)
throws KlvParseException
The value must be in the range [-128, 127].
The value is in units of °C.
value - a floating point (double) value to initialise this Atmosphere_AirTemperature with.KlvParseException - if the value is not valid (e.g. outside of the valid range).public Atmosphere_AirTemperature(byte[] bytes)
throws KlvParseException
bytes - Encoded byte array.KlvParseException - if the byte array could not be parsed.public Atmosphere_AirTemperature(byte[] bytes,
int offset,
int length)
throws KlvParseException
This version allows parsing of a specific number of bytes from a given offset.
bytes - Encoded byte array.offset - the offset into the byte array to start decoding.length - the number of bytes to decode.KlvParseException - if the byte array could not be parsed.public static Atmosphere_AirTemperature fromBytes(byte[] bytes) throws KlvParseException
bytes - Encoded byte array.KlvParseException - if the byte array could not be parsed.public String getDisplayName()
IKlvValuegetDisplayName in interface IKlvValuepublic byte[] getBytes()
IMimdMetadataValuegetBytes in interface IMimdMetadataValuepublic String getDisplayableValue()
IKlvValuegetDisplayableValue in interface IKlvValuepublic double getValue()
Copyright © 2022 West Ridge Systems. All rights reserved.