Package org.openstreetmap.josm.io.nmea
Enum NmeaParser.VTG
- java.lang.Object
-
- java.lang.Enum<NmeaParser.VTG>
-
- org.openstreetmap.josm.io.nmea.NmeaParser.VTG
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<NmeaParser.VTG>
- Enclosing class:
- NmeaParser
static enum NmeaParser.VTG extends java.lang.Enum<NmeaParser.VTG>
Course Over Ground and Ground Speed.The actual course and speed relative to the ground
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COURSE
COURSE_M
COURSE_M_REF
COURSE_REF
REST
SPEED_KMH
SPEED_KMH_UNIT
SPEED_KN
SPEED_KN_UNIT
-
Field Summary
Fields Modifier and Type Field Description (package private) int
position
-
Constructor Summary
Constructors Modifier Constructor Description private
VTG(int position)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static NmeaParser.VTG
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static NmeaParser.VTG[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COURSE
public static final NmeaParser.VTG COURSE
-
COURSE_REF
public static final NmeaParser.VTG COURSE_REF
-
COURSE_M
public static final NmeaParser.VTG COURSE_M
-
COURSE_M_REF
public static final NmeaParser.VTG COURSE_M_REF
-
SPEED_KN
public static final NmeaParser.VTG SPEED_KN
-
SPEED_KN_UNIT
public static final NmeaParser.VTG SPEED_KN_UNIT
-
SPEED_KMH
public static final NmeaParser.VTG SPEED_KMH
-
SPEED_KMH_UNIT
public static final NmeaParser.VTG SPEED_KMH_UNIT
-
REST
public static final NmeaParser.VTG REST
-
-
Field Detail
-
position
final int position
-
-
Constructor Detail
-
VTG
private VTG(int position)
-
-
Method Detail
-
values
public static NmeaParser.VTG[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NmeaParser.VTG c : NmeaParser.VTG.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NmeaParser.VTG valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-