|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<GPSStatus>
com.esri.core.gps.GPSStatus
public enum GPSStatus

This indicates the status of the IGPSWatcher. Since the IGPSWatcher is
connected to an underlying GPS source, this status also represents the state of the
GPS source.
Different states are:
INVALIDCRITICAL_FAILUREPARSE_FAILURENOT_CONNECTEDTIMEOUTRUNNINGSTOPPED
| Enum Constant Summary | |
|---|---|
CRITICAL_FAILURE
Critical failure. |
|
INVALID
Invalid state. |
|
NOT_CONNECTED
GPS source is not connected. |
|
PARSE_FAILURE
Any failure in parsing NMEA sentence. |
|
RUNNING
Watcher is connected, and receiving proper data at expected intervals. |
|
STOPPED
Watcher has been stopped explicitly. |
|
TIMEOUT
Timed out trying to read from the GPS source. |
|
| Method Summary | |
|---|---|
static GPSStatus |
getFromCode(int statusCode)
Returns a GPSStatus based on input code. |
int |
getStatusCode()
|
static GPSStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static GPSStatus[] |
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 |
|---|
public static final GPSStatus INVALID
public static final GPSStatus CRITICAL_FAILURE
public static final GPSStatus PARSE_FAILURE
public static final GPSStatus NOT_CONNECTED
public static final GPSStatus TIMEOUT
public static final GPSStatus RUNNING
public static final GPSStatus STOPPED
| Method Detail |
|---|
public static GPSStatus[] values()
for (GPSStatus c : GPSStatus.values()) System.out.println(c);
public static GPSStatus valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic int getStatusCode()
GPSStatus.public static GPSStatus getFromCode(int statusCode)
GPSStatus based on input code.
statusCode - status code.
CRITICAL_FAILURE, if input is -4PARSE_FAILURE, if input is -3NOT_CONNECTED, if input is -2TIMEOUT, if input is -1RUNNING, if input is 0STOPPED, if input is 1INVALID, otherwise
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||