|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.db.GeoEvent
public class GeoEvent
A container for a single generic GPS event
Nested Class Summary | |
---|---|
static interface |
GeoEvent.GeoEventHandler
Interface for GeoEvent handler call-backs |
Field Summary | |
---|---|
static java.lang.String |
KEY_account
|
static java.lang.String |
KEY_accountID
|
static java.lang.String |
KEY_altitude
|
static java.lang.String |
KEY_device
|
static java.lang.String |
KEY_deviceID
|
static java.lang.String |
KEY_geoPoint
|
static java.lang.String |
KEY_geozone
|
static java.lang.String |
KEY_geozoneID
|
static java.lang.String |
KEY_heading
|
static java.lang.String |
KEY_latitude
|
static java.lang.String |
KEY_longitude
|
static java.lang.String |
KEY_mobileID
|
static java.lang.String |
KEY_odometerKM
|
static java.lang.String |
KEY_speedKPH
|
static java.lang.String |
KEY_statusCode
|
static java.lang.String |
KEY_timestamp
|
Constructor Summary | |
---|---|
GeoEvent()
Constructor |
|
GeoEvent(GeoEvent other)
Copy Constructor |
Method Summary | |
---|---|
java.lang.Object |
clone()
Retruns a clone of this GeoEvent instance |
Account |
getAccount()
Gets the Account |
java.lang.String |
getAccountID()
Gets the AccountID |
double |
getAltitudeMeters()
Gets the Altitude |
Device |
getDevice()
Gets the Device |
java.lang.String |
getDeviceID()
Gets the DeviceID |
java.util.Set<java.lang.String> |
getFieldKeys()
Gets the field keys |
double |
getFieldValue(java.lang.String key,
double dft)
Gets a Double field value |
int |
getFieldValue(java.lang.String key,
int dft)
Gets a Integer field value |
long |
getFieldValue(java.lang.String key,
long dft)
Gets a Long field value |
java.lang.Object |
getFieldValue(java.lang.String key,
java.lang.Object dft)
Gets a Object field value |
java.util.Map<java.lang.String,java.lang.Object> |
getFieldValues()
Gets the field values |
GeoPoint |
getGeoPoint()
Gets the GeoPoint |
Geozone |
getGeozone()
Gets the Geozone |
java.lang.String |
getGeozoneID()
Gets the GeozoneID |
double |
getHeading()
Gets the Heading |
double |
getLatitude()
Gets the latitude |
double |
getLongitude()
Gets the longitude |
java.lang.String |
getMobileID()
Gets the MobileID |
double |
getOdometerKM()
Gets the Odometer |
double |
getSpeedKPH()
Gets the Speed |
int |
getStatusCode()
Gets the StatusCode |
long |
getTimestamp()
Gets the timestamp |
boolean |
hasAccount()
Returns true if an Account has been defined |
boolean |
hasAccountID()
Returns true if an AccountID has been defined |
boolean |
hasAltitudeMeters()
Returns true if a speed has been defined |
boolean |
hasDevice()
Returns true if a Device has been defined |
boolean |
hasDeviceID()
Returns true if a DeviceID has been defined |
boolean |
hasFieldValue(java.lang.String key)
Returns true if the field value has been defined |
boolean |
hasGeoPoint()
Returns true if a latitude/longitude has been defined |
boolean |
hasGeozone()
Returns true if a Geozone has been defined |
boolean |
hasGeozoneID()
Returns true if a GeozoneID has been defined |
boolean |
hasHeading()
Returns true if a speed has been defined |
boolean |
hasLatitude()
Returns true if a latitude has been defined |
boolean |
hasLongitude()
Returns true if a longitude has been defined |
boolean |
hasMobileID()
Returns true if an MobileID has been defined |
boolean |
hasOdometerKM()
Returns true if an Odometer has been defined |
boolean |
hasSpeedKPH()
Returns true if a speed has been defined |
boolean |
hasStatusCode()
Returns true if a StatusCode has been defined |
boolean |
hasTimestamp()
Returns true if a timestamp has been defined |
boolean |
isGeoPointValid()
Returns true if the current GeoPoint is valie |
void |
setAccount(Account account)
Sets the Account |
void |
setAccountID(java.lang.String accountID)
Sets the AccountID |
void |
setAltitudeMeters(double altM)
Sets the Altitude |
void |
setDevice(Device device)
Sets the Device |
void |
setDeviceID(java.lang.String deviceID)
Sets the DeviceID |
void |
setFieldValue(java.lang.String key,
double val)
Sets a Double field value |
void |
setFieldValue(java.lang.String key,
int val)
Sets a Integer field value |
void |
setFieldValue(java.lang.String key,
long val)
Sets a Long field value |
void |
setFieldValue(java.lang.String key,
java.lang.Object val)
Sets a field value |
void |
setGeoPoint(double lat,
double lon)
Sets the GeoPoint |
void |
setGeoPoint(GeoPoint gp)
Sets the GeoPoint |
void |
setGeozone(Geozone geozone)
Sets the Geozone |
void |
setGeozoneID(java.lang.String geozoneID)
Sets the GeozoneID |
void |
setHeading(double deg)
Sets the Heading |
void |
setLatitude(double lat)
Sets the latitude |
void |
setLongitude(double lon)
Sets the longitude |
void |
setMobileID(java.lang.String mobileID)
Sets the MobileID |
void |
setOdometerKM(double km)
Sets the Odometer |
void |
setSpeedKPH(double kph)
Sets the Speed |
void |
setStatusCode(int sc)
Sets the StatusCode |
void |
setTimestamp(long ts)
Sets the timestamp |
java.lang.String |
toString()
Gets a String representation of this instance |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String KEY_mobileID
public static final java.lang.String KEY_accountID
public static final java.lang.String KEY_account
public static final java.lang.String KEY_deviceID
public static final java.lang.String KEY_device
public static final java.lang.String KEY_geozoneID
public static final java.lang.String KEY_geozone
public static final java.lang.String KEY_timestamp
public static final java.lang.String KEY_statusCode
public static final java.lang.String KEY_latitude
public static final java.lang.String KEY_longitude
public static final java.lang.String KEY_geoPoint
public static final java.lang.String KEY_speedKPH
public static final java.lang.String KEY_heading
public static final java.lang.String KEY_altitude
public static final java.lang.String KEY_odometerKM
Constructor Detail |
---|
public GeoEvent()
public GeoEvent(GeoEvent other)
Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Set<java.lang.String> getFieldKeys()
public java.util.Map<java.lang.String,java.lang.Object> getFieldValues()
public void setFieldValue(java.lang.String key, java.lang.Object val)
public java.lang.Object getFieldValue(java.lang.String key, java.lang.Object dft)
public boolean hasFieldValue(java.lang.String key)
public void setFieldValue(java.lang.String key, int val)
public int getFieldValue(java.lang.String key, int dft)
public void setFieldValue(java.lang.String key, long val)
public long getFieldValue(java.lang.String key, long dft)
public void setFieldValue(java.lang.String key, double val)
public double getFieldValue(java.lang.String key, double dft)
public void setMobileID(java.lang.String mobileID)
public java.lang.String getMobileID()
public boolean hasMobileID()
public void setAccountID(java.lang.String accountID)
public java.lang.String getAccountID()
public boolean hasAccountID()
public void setAccount(Account account)
public Account getAccount()
public boolean hasAccount()
public void setDeviceID(java.lang.String deviceID)
public java.lang.String getDeviceID()
public boolean hasDeviceID()
public void setDevice(Device device)
public Device getDevice()
public boolean hasDevice()
public void setGeozoneID(java.lang.String geozoneID)
public java.lang.String getGeozoneID()
public boolean hasGeozoneID()
public void setGeozone(Geozone geozone)
public Geozone getGeozone()
public boolean hasGeozone()
public void setTimestamp(long ts)
public long getTimestamp()
public boolean hasTimestamp()
public void setStatusCode(int sc)
public int getStatusCode()
public boolean hasStatusCode()
public void setGeoPoint(double lat, double lon)
public void setGeoPoint(GeoPoint gp)
public boolean isGeoPointValid()
public void setLatitude(double lat)
public double getLatitude()
public boolean hasLatitude()
public void setLongitude(double lon)
public double getLongitude()
public boolean hasLongitude()
public GeoPoint getGeoPoint()
getGeoPoint
in interface GeoPointProvider
public boolean hasGeoPoint()
public void setSpeedKPH(double kph)
public double getSpeedKPH()
public boolean hasSpeedKPH()
public void setHeading(double deg)
public double getHeading()
public boolean hasHeading()
public void setAltitudeMeters(double altM)
public double getAltitudeMeters()
public boolean hasAltitudeMeters()
public void setOdometerKM(double km)
public double getOdometerKM()
public boolean hasOdometerKM()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |