triptracker.client.gps.core
Enum GPSStatusState

java.lang.Object
  extended by java.lang.Enum<GPSStatusState>
      extended by triptracker.client.gps.core.GPSStatusState
All Implemented Interfaces:
Serializable, Comparable<GPSStatusState>

public enum GPSStatusState
extends Enum<GPSStatusState>

Client connection state.


Enum Constant Summary
CONNECTED
          Successfully connected to the GPS serial port, or at least what appears to be a serial port with a GPS device.
HASFIXEDPOS
          Recieving reliable position data from the GPS unit.
INVALIDNMEA
          Invalid NMEA sentence format.
NOFIXEDPOS
          Unable to obtain a fixed position.
NOTCONNECTED
          Unable to connect to GPS unit.
 
Method Summary
static GPSStatusState valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GPSStatusState[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NOFIXEDPOS

public static final GPSStatusState NOFIXEDPOS
Unable to obtain a fixed position.


NOTCONNECTED

public static final GPSStatusState NOTCONNECTED
Unable to connect to GPS unit.


CONNECTED

public static final GPSStatusState CONNECTED
Successfully connected to the GPS serial port, or at least what appears to be a serial port with a GPS device.


HASFIXEDPOS

public static final GPSStatusState HASFIXEDPOS
Recieving reliable position data from the GPS unit.


INVALIDNMEA

public static final GPSStatusState INVALIDNMEA
Invalid NMEA sentence format.

Method Detail

values

public static final GPSStatusState[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(GPSStatusState c : GPSStatusState.values())
        System.out.println(c);

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

valueOf

public static GPSStatusState valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name


Copyright © 2006 Team Trip Tracker. All Rights Reserved.