org.openstreetmap.josm.io
Enum NmeaReader.NMEA_TYPE

java.lang.Object
  extended by java.lang.Enum<NmeaReader.NMEA_TYPE>
      extended by org.openstreetmap.josm.io.NmeaReader.NMEA_TYPE
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<NmeaReader.NMEA_TYPE>
Enclosing class:
NmeaReader

public static enum NmeaReader.NMEA_TYPE
extends java.lang.Enum<NmeaReader.NMEA_TYPE>

Handler for the different types that NMEA speaks.


Enum Constant Summary
GPGGA
          GPS positions.
GPGSA
          SA = satellites active.
GPRMC
          RMC = recommended minimum sentence C.
GPVTG
          Course over ground and ground speed
 
Field Summary
private  java.lang.String type
           
 
Method Summary
 boolean equals(java.lang.String type)
           
 java.lang.String getType()
           
static NmeaReader.NMEA_TYPE valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static NmeaReader.NMEA_TYPE[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GPRMC

public static final NmeaReader.NMEA_TYPE GPRMC
RMC = recommended minimum sentence C.


GPGGA

public static final NmeaReader.NMEA_TYPE GPGGA
GPS positions.


GPGSA

public static final NmeaReader.NMEA_TYPE GPGSA
SA = satellites active.


GPVTG

public static final NmeaReader.NMEA_TYPE GPVTG
Course over ground and ground speed

Field Detail

type

private final java.lang.String type
Method Detail

values

public static NmeaReader.NMEA_TYPE[] 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 (NmeaReader.NMEA_TYPE c : NmeaReader.NMEA_TYPE.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static NmeaReader.NMEA_TYPE 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 name
java.lang.NullPointerException - if the argument is null

getType

public java.lang.String getType()

equals

public boolean equals(java.lang.String type)


JOSM