类 Angle12
java.lang.Object
net.sf.marineapi.ais.util.Angle12
Checks a 12-bit signed integer angular value for validity.
- 作者:
- Lázár József
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static booleanisAvailable(int value) Checks if the angular value is available.static booleanisCorrect(int value) Tells if the angular value is correct, i.e. within the range 0..3599 or the default value 3600.static doubletoDegrees(int value) Converts the angular value to degrees.static StringtoString(int value) Returns the String representation of given angular value.
-
字段详细资料
-
RANGE
Valid range with default value for "no value"- 另请参阅:
-
-
构造器详细资料
-
Angle12
public Angle12()
-
-
方法详细资料
-
isCorrect
public static boolean isCorrect(int value) Tells if the angular value is correct, i.e. within the range 0..3599 or the default value 3600.- 参数:
value- Angular value to validate.- 返回:
trueif correct, otherwisefalse.
-
isAvailable
public static boolean isAvailable(int value) Checks if the angular value is available.- 参数:
value- Angular value to check.- 返回:
- true if the angular is not the default value (3600)
-
toDegrees
public static double toDegrees(int value) Converts the angular value to degrees.- 参数:
value- Angular value to convert, in 1/10 degrees.- 返回:
- The angular value in degrees.
-
toString
Returns the String representation of given angular value.- 参数:
value- Angular value to convert to String.- 返回:
- a string representing the angular value
-