类 RateOfTurn

java.lang.Object
net.sf.marineapi.ais.util.RateOfTurn

public class RateOfTurn extends Object
Checks a rate-of-turn value for validity.
作者:
Lázár József
  • 构造器详细资料

    • 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

      public static String toString(int value)
      Converts given rate of turn value to String presentation.
      参数:
      value - Int value to stringify
      返回:
      string representation of the ROT information