public class OpenTracWeatherObs extends OpenTracElement
Modifier and Type | Field and Description |
---|---|
short |
baroPressure01HPa
Barometric pressure in .1 mbar/.1 HPa.
|
short |
humidityPct
Relative humidity percentage.
|
short |
period
Time over which averages are averaged, in seconds.
|
short |
rainfall
Rainfall over averaging interval in 0.1 Kg/cm^2 (or 40 inches of rain per LSB??????)
|
short |
temp01K
Current temperature in 0.1 degrees Kelvin.
|
short |
windDir
Wind directions, in degrees from True North.
|
short |
windGust01MS
Wind peak gust speed in 0.1 meters per second units (approximately 0.216 statute miles per hour).
|
short |
windSpeed01MS
Wind speed in 0.1 meters per second units (approximately 0.216 statute miles per hour).
|
id
Constructor and Description |
---|
OpenTracWeatherObs()
Create uninitialized OpenTracWeatherObs element.
|
OpenTracWeatherObs(int type,
byte[] body,
int offset,
int length)
Extract a OpenTracWeatherObs element from a byte array
|
Modifier and Type | Method and Description |
---|---|
int |
computeBody(byte[] buf,
int offset)
Append this element to a message buffer
|
boolean |
equalsElement(OpenTracElement other)
Test if this OpenTracElement has the same type and value as another OpenTracElement.
|
int |
length()
Return the number of bytes needed to encode this element.
|
java.lang.String |
valueString()
Get the string representation of the value of this element.
|
getId, toString
public short period
public short windDir
public short windSpeed01MS
public short windGust01MS
public short temp01K
public short rainfall
public short baroPressure01HPa
public short humidityPct
public OpenTracWeatherObs()
public OpenTracWeatherObs(int type, byte[] body, int offset, int length)
type
- OpenTracTypes code for this elementbody
- byte array to extract element fromoffset
- zero-based array index to start extractionlength
- number of bytes to extractpublic java.lang.String valueString()
valueString
in class OpenTracElement
public int computeBody(byte[] buf, int offset)
computeBody
in class OpenTracElement
buf
- byte array to add the element tooffset
- starting index to store the elementpublic int length()
length
in class OpenTracElement
public boolean equalsElement(OpenTracElement other)
equalsElement
in class OpenTracElement
other
- OpenTracElement to compare against this element