类 RateOfTurn
java.lang.Object
net.sf.marineapi.ais.util.RateOfTurn
Checks a rate-of-turn value for validity.
- 作者:
- Lázár József
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static booleanisTurnIndicatorAvailable(int value) Checks if a turn indicator is available.static booleanisTurnInformationAvailable(int value) Checks if the ROT value is available.static doubletoDegreesPerMinute(int value) Converts the rate-of-turn value to a estimate degrees/minute value.static StringtoString(int value) Converts given rate of turn value to String presentation.
-
构造器详细资料
-
RateOfTurn
public RateOfTurn()
-
-
方法详细资料
-
isTurnInformationAvailable
public static boolean isTurnInformationAvailable(int value) Checks if the ROT value is available.- 参数:
value- Int value to check- 返回:
- true if the ROT is not the default value
-
isTurnIndicatorAvailable
public static boolean isTurnIndicatorAvailable(int value) Checks if a turn indicator is available.- 参数:
value- Int value to check- 返回:
- true if the turn indicator is available
-
toDegreesPerMinute
public static double toDegreesPerMinute(int value) Converts the rate-of-turn value to a estimate degrees/minute value.- 参数:
value- Int value to convert- 返回:
- degrees/minute value (positive sign indicates turning right)
-
toString
Converts given rate of turn value to String presentation.- 参数:
value- Int value to stringify- 返回:
- string representation of the ROT information
-