com.esri.core.gps
Enum PositionChangeType

java.lang.Object
  extended by java.lang.Enum<PositionChangeType>
      extended by com.esri.core.gps.PositionChangeType
All Implemented Interfaces:
Serializable, Comparable<PositionChangeType>

public enum PositionChangeType
extends Enum<PositionChangeType>

This enum has a set of flags to indicate the types of position change.


Enum Constant Summary
ALTITUDE
          Geoid or above the sea altitude has changed.
COURSE_OR_SPEED
          Course or speed has changed.
FIX_STATUS
          The Fix status has changed.
NO_CHANGE
          No change.
POSITION
          Position has changed.
QUALITY
          The quality properties have changed (dilution of position).
SATELLITES
          Satellites information has changed.
 
Method Summary
 int getCode()
           
static boolean[] getPositionChangeTypesFromCode(int intCode)
          Since there could be more than one type of position change, this returns a boolean array indicating the changes.
static boolean hasPositionChanged(int intCode)
           
static String toString(int intCode)
          Returns a string representation of the change types.
static PositionChangeType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PositionChangeType[] 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

NO_CHANGE

public static final PositionChangeType NO_CHANGE
No change.


POSITION

public static final PositionChangeType POSITION
Position has changed.


ALTITUDE

public static final PositionChangeType ALTITUDE
Geoid or above the sea altitude has changed.


COURSE_OR_SPEED

public static final PositionChangeType COURSE_OR_SPEED
Course or speed has changed.


SATELLITES

public static final PositionChangeType SATELLITES
Satellites information has changed.


QUALITY

public static final PositionChangeType QUALITY
The quality properties have changed (dilution of position).


FIX_STATUS

public static final PositionChangeType FIX_STATUS
The Fix status has changed.

Method Detail

values

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

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

valueOf

public static PositionChangeType 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
NullPointerException - if the argument is null

getCode

public int getCode()

getPositionChangeTypesFromCode

public static boolean[] getPositionChangeTypesFromCode(int intCode)
Since there could be more than one type of position change, this returns a boolean array indicating the changes.

Parameters:
intCode - the code that represents the position change.
Returns:
a boolean array of 7 elements each indicating the type of position change. NO_CHANGE, POSITION, ALTITUDE, COURSE_OR_SPEED, SATELLITES, QUALITY, FIX_STATUS; in that order.

toString

public static String toString(int intCode)
Returns a string representation of the change types.

Parameters:
intCode - the code representing the types of position changes.
Returns:
a string representation of the change types.

hasPositionChanged

public static boolean hasPositionChanged(int intCode)
Parameters:
intCode - the code to test.
Returns:
true, if the code has a change type of POSITION; false, otherwise.


Copyright © 2012. All Rights Reserved.