类 ShipType
java.lang.Object
net.sf.marineapi.ais.util.ShipType
Checks the ship type for validity.
- 作者:
- Lázár József, Joshua Sweaney
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static StringshipTypeToCargoString(int type) Returns a string describing the second digit.static StringshipTypeToString(int type) Return string describing the ship and cargo type.static StringshipTypeToVesselString(int type) Returns a string describing the first digit.
-
构造器详细资料
-
ShipType
public ShipType()
-
-
方法详细资料
-
shipTypeToString
Return string describing the ship and cargo type.- 参数:
type- Ship and cargo type indicator- 返回:
- a text string describing the ship and cargo type.
-
shipTypeToVesselString
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
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
-