类 ShipType

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

public class ShipType extends Object
Checks the ship type for validity.
作者:
Lázár József, Joshua Sweaney
  • 构造器详细资料

    • ShipType

      public ShipType()
  • 方法详细资料

    • shipTypeToString

      public static String shipTypeToString(int type)
      Return string describing the ship and cargo type.
      参数:
      type - Ship and cargo type indicator
      返回:
      a text string describing the ship and cargo type.
    • shipTypeToVesselString

      public static String shipTypeToVesselString(int type)
      Returns a string describing the first digit. Describes the type of vessel.
      参数:
      type - Ship and cargo type indicator
      返回:
      String a text string describing the ship type digit
    • shipTypeToCargoString

      public static String shipTypeToCargoString(int type)
      Returns a string describing the second digit. Usually describes the type of cargo being carried, but may also describe the activity the vessel is engaged in.
      参数:
      type - Ship and cargo type indicator
      返回:
      String a text string describing the cargo type digit