Modifier and Type | Field and Description |
---|---|
static char |
KMPH
Units indicator for kilometers per hour
|
static char |
KNOT
Units indicator for knots (nautical miles per hour)
|
static char |
MPS
Units indicator for meters per second
|
ALTERNATIVE_BEGIN_CHAR, BEGIN_CHAR, CHECKSUM_DELIMITER, FIELD_DELIMITER, MAX_LENGTH, TERMINATOR
Modifier and Type | Method and Description |
---|---|
Direction |
getDirectionLeftRight()
Get the Wind direction Left/Right of bow
|
double |
getSpeedKmh()
Get relative wind speed, in kilometers per hour.
|
double |
getSpeedKnots()
Get relative wind speed in knots.
|
double |
getWindAngle()
Get the Wind angle magnitude in degrees
|
void |
setDirectionLeftRight(Direction direction)
Set the Wind direction Left/Right of bow
|
void |
setSpeedKmh(double kmh)
Set the relative wind speed in kmh
|
void |
setSpeedKnots(double knots)
Set the relative wind speed in knots.
|
void |
setWindAngle(double mWindAngle)
Set the Wind angle magnitude
|
getBeginChar, getFieldCount, getSentenceId, getTalkerId, isAISSentence, isProprietary, isValid, reset, setBeginChar, setTalkerId, toSentence, toSentence, toString
static final char MPS
static final char KMPH
static final char KNOT
double getWindAngle()
DataNotAvailableException
- If the
data is
not available.ParseException
- If the field contains
unexpected or illegal value.Direction getDirectionLeftRight()
Direction
enumDataNotAvailableException
- If the data is
not available.ParseException
- If the field contains
unexpected or illegal value.double getSpeedKmh()
DataNotAvailableException
- If the data is
not available.ParseException
- If the field contains
unexpected or illegal value.double getSpeedKnots()
DataNotAvailableException
- If the data is
not available.ParseException
- If the field contains
unexpected or illegal value.void setWindAngle(double mWindAngle)
mWindAngle
- Wind angle magnitude in degrees.void setDirectionLeftRight(Direction direction)
direction
- Direction to setvoid setSpeedKmh(double kmh)
kmh
- Speed in kilometers per hour (km/h).void setSpeedKnots(double knots)
knots
- Speed in knots (nautical miles per hour)Copyright (C) 2010-2017 Java Marine API authors. All Rights Reserved.