类 ManeuverIndicator

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

public class ManeuverIndicator extends Object
Checks a 2-bit signed integer maneuver value for validity.
作者:
Lázár József
  • 字段详细资料

    • RANGE

      public static final String RANGE
      Valid range with default value for "no value"
      另请参阅:
  • 构造器详细资料

    • ManeuverIndicator

      public ManeuverIndicator()
  • 方法详细资料

    • isCorrect

      public static boolean isCorrect(int value)
      Checks if the value is in the correct range.
      参数:
      value - Int value to check
      返回:
      true if the value is correct
    • isAvailable

      public static boolean isAvailable(int value)
      Checks if the maneuver value is available.
      参数:
      value - Int value to check
      返回:
      true if the value is not the default value
    • toString

      public static String toString(int value)
      Rerturns the string representation of given int value.
      参数:
      value - Value to stringify
      返回:
      a string representing the maneuvre indicator value