|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.db.EventDataProviderAdapter org.opengts.servers.GPSEvent
public class GPSEvent
Constructor Summary | |
---|---|
GPSEvent(DCServerConfig server,
java.lang.String ipAddress,
int clientPort,
Device device)
Constructor |
|
GPSEvent(DCServerConfig server,
java.lang.String ipAddress,
int clientPort,
java.lang.String modemID)
Constructor |
|
GPSEvent(DCServerConfig server,
java.lang.String ipAddress,
int clientPort,
java.lang.String acctID,
java.lang.String devID)
Constructor |
Method Summary | |
---|---|
protected boolean |
_setDevice(Device device,
java.lang.String ipAddress,
int clientPort)
|
java.lang.String |
getAccountID()
|
java.lang.String |
getAddress()
|
java.util.Map<java.lang.String,java.lang.Object> |
getAlternateFieldMap()
Retrurns the "alternate" field map |
double |
getAltitude()
|
double |
getBatteryLevel()
|
double |
getBestAccuracy()
|
GeoPoint |
getBestGeoPoint()
|
Device |
getDevice()
|
protected java.lang.String |
getDeviceCode()
|
java.lang.String |
getDeviceDescription()
|
java.lang.String |
getDeviceID()
|
java.lang.String |
getDeviceVIN()
|
double |
getEngineHours()
|
int |
getEventIndex()
|
java.lang.Object |
getFieldValue(java.lang.String fldName)
|
double |
getFuelTotal()
|
GeoPoint |
getGeoPoint()
Returns a GeoPoint instance |
java.lang.String |
getGeozoneID()
|
long |
getGpsAge()
|
double |
getHDOP()
|
double |
getHeading()
|
double |
getHorzAccuracy()
|
long |
getInputMask()
|
boolean |
getIsFirstEvent()
|
boolean |
getIsLastEvent()
|
double |
getLatitude()
|
double |
getLongitude()
|
double |
getOdometerKM()
|
RTProperties |
getProperties()
Returns the internal RTProperties instance which holds the EventData field values. |
double |
getPtoHours()
|
int |
getPushpinIconIndex(java.lang.String iconSelector,
OrderedSet<java.lang.String> iconKeys,
boolean isFleet,
BasicPrivateLabel bpl)
|
int |
getSatelliteCount()
|
double |
getSignalStrength()
|
double |
getSpeedKPH()
|
int |
getStatusCode()
|
java.lang.String |
getStatusCodeDescription(BasicPrivateLabel bpl)
|
long |
getTimestamp()
|
java.lang.String |
getUniqueID()
|
boolean |
hasAddress()
|
boolean |
hasAltitude()
|
boolean |
hasBatteryLevel()
|
boolean |
hasDevice()
|
boolean |
hasEngineHours()
|
boolean |
hasFuelTotal()
|
boolean |
hasGeozoneID()
|
boolean |
hasGpsAge()
|
boolean |
hasHDOP()
|
boolean |
hasHeading()
|
boolean |
hasHorzAccuracy()
|
boolean |
hasInputMask()
|
boolean |
hasLatitude()
|
boolean |
hasLongitude()
|
boolean |
hasOdometerKM()
|
boolean |
hasPtoHours()
|
boolean |
hasSatelliteCount()
|
boolean |
hasSignalStrength()
|
boolean |
hasSpeedKPH()
|
boolean |
hasStatusCode()
|
boolean |
hasTimestamp()
|
boolean |
insertEventData()
|
boolean |
insertEventData(long fixtime,
int statusCode)
|
boolean |
insertEventData(long fixtime,
int statusCode,
Geozone zone)
|
boolean |
isValidGeoPoint()
|
protected Device |
loadDevice(java.lang.String modemID)
|
protected Device |
loadDevice(java.lang.String acctID,
java.lang.String devID)
|
void |
setAltitude(double altM)
|
void |
setBatteryLevel(double level)
|
void |
setEngineHours(double hours)
|
void |
setEventIndex(int ndx)
|
void |
setFieldValue(java.lang.String fldName,
boolean fldVal)
|
void |
setFieldValue(java.lang.String fldName,
double fldVal)
|
void |
setFieldValue(java.lang.String fldName,
int fldVal)
|
void |
setFieldValue(java.lang.String fldName,
long fldVal)
|
void |
setFieldValue(java.lang.String fldName,
java.lang.Object fldVal)
|
void |
setFieldValue(java.lang.String fldName,
java.lang.String fldVal)
|
void |
setFuelTotal(double fuel)
|
void |
setGeoPoint(GeoPoint gp)
|
void |
setGeozone(Geozone zone)
|
void |
setGeozoneID(java.lang.String gzid)
|
void |
setGpsAge(long ageSec)
|
void |
setHDOP(double hdop)
|
void |
setHeading(double heading)
|
void |
setHorzAccuracy(double acc)
|
void |
setInputMask(long mask)
|
void |
setIsLastEvent(boolean isLast)
|
void |
setLatitude(double lat)
|
void |
setLongitude(double lon)
|
void |
setOdometerKM(double km)
|
void |
setPtoHours(double hours)
|
void |
setSatelliteCount(int count)
|
void |
setSignalStrength(double rssi)
|
void |
setSpeedKPH(double kph)
|
void |
setStatusCode(int code)
|
void |
setTimestamp(long timestamp)
|
java.lang.String |
toString()
|
boolean |
updateDevice()
|
Methods inherited from class org.opengts.db.EventDataProviderAdapter |
---|
getCreationAge, getStatusCodeProvider |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GPSEvent(DCServerConfig server, java.lang.String ipAddress, int clientPort, Device device)
public GPSEvent(DCServerConfig server, java.lang.String ipAddress, int clientPort, java.lang.String modemID)
public GPSEvent(DCServerConfig server, java.lang.String ipAddress, int clientPort, java.lang.String acctID, java.lang.String devID)
Method Detail |
---|
protected java.lang.String getDeviceCode()
protected Device loadDevice(java.lang.String modemID)
protected Device loadDevice(java.lang.String acctID, java.lang.String devID)
protected boolean _setDevice(Device device, java.lang.String ipAddress, int clientPort)
public boolean hasDevice()
public Device getDevice()
public boolean updateDevice()
public boolean insertEventData(long fixtime, int statusCode)
public boolean insertEventData(long fixtime, int statusCode, Geozone zone)
public boolean insertEventData()
public java.lang.String getUniqueID()
public java.lang.String getAccountID()
getAccountID
in interface EventDataProvider
getAccountID
in class EventDataProviderAdapter
public java.lang.String getDeviceID()
getDeviceID
in interface EventDataProvider
getDeviceID
in class EventDataProviderAdapter
public java.lang.String getDeviceDescription()
getDeviceDescription
in interface EventDataProvider
getDeviceDescription
in class EventDataProviderAdapter
public java.lang.String getDeviceVIN()
getDeviceVIN
in interface EventDataProvider
getDeviceVIN
in class EventDataProviderAdapter
public java.lang.String getStatusCodeDescription(BasicPrivateLabel bpl)
getStatusCodeDescription
in interface EventDataProvider
getStatusCodeDescription
in class EventDataProviderAdapter
public int getPushpinIconIndex(java.lang.String iconSelector, OrderedSet<java.lang.String> iconKeys, boolean isFleet, BasicPrivateLabel bpl)
getPushpinIconIndex
in interface EventDataProvider
getPushpinIconIndex
in class EventDataProviderAdapter
public RTProperties getProperties()
public java.util.Map<java.lang.String,java.lang.Object> getAlternateFieldMap()
public void setTimestamp(long timestamp)
public boolean hasTimestamp()
public long getTimestamp()
getTimestamp
in interface EventDataProvider
getTimestamp
in class EventDataProviderAdapter
public void setStatusCode(int code)
public boolean hasStatusCode()
public int getStatusCode()
getStatusCode
in interface EventDataProvider
getStatusCode
in class EventDataProviderAdapter
public void setLatitude(double lat)
public boolean hasLatitude()
public double getLatitude()
getLatitude
in interface EventDataProvider
getLatitude
in class EventDataProviderAdapter
public void setLongitude(double lon)
public boolean hasLongitude()
public double getLongitude()
getLongitude
in interface EventDataProvider
getLongitude
in class EventDataProviderAdapter
public void setGeoPoint(GeoPoint gp)
public GeoPoint getGeoPoint()
GeoPointProvider
getGeoPoint
in interface EventDataProvider
getGeoPoint
in interface GeoPointProvider
getGeoPoint
in class EventDataProviderAdapter
public boolean isValidGeoPoint()
isValidGeoPoint
in interface EventDataProvider
isValidGeoPoint
in class EventDataProviderAdapter
public void setHorzAccuracy(double acc)
public boolean hasHorzAccuracy()
public double getHorzAccuracy()
getHorzAccuracy
in interface EventDataProvider
getHorzAccuracy
in class EventDataProviderAdapter
public GeoPoint getBestGeoPoint()
getBestGeoPoint
in interface EventDataProvider
getBestGeoPoint
in class EventDataProviderAdapter
public double getBestAccuracy()
getBestAccuracy
in interface EventDataProvider
getBestAccuracy
in class EventDataProviderAdapter
public void setGpsAge(long ageSec)
public boolean hasGpsAge()
public long getGpsAge()
getGpsAge
in interface EventDataProvider
getGpsAge
in class EventDataProviderAdapter
public void setHDOP(double hdop)
public boolean hasHDOP()
public double getHDOP()
public void setSatelliteCount(int count)
public boolean hasSatelliteCount()
public int getSatelliteCount()
getSatelliteCount
in interface EventDataProvider
getSatelliteCount
in class EventDataProviderAdapter
public void setBatteryLevel(double level)
public boolean hasBatteryLevel()
public double getBatteryLevel()
getBatteryLevel
in interface EventDataProvider
getBatteryLevel
in class EventDataProviderAdapter
public void setSignalStrength(double rssi)
public boolean hasSignalStrength()
public double getSignalStrength()
public void setSpeedKPH(double kph)
public boolean hasSpeedKPH()
public double getSpeedKPH()
getSpeedKPH
in interface EventDataProvider
getSpeedKPH
in class EventDataProviderAdapter
public void setHeading(double heading)
public boolean hasHeading()
public double getHeading()
getHeading
in interface EventDataProvider
getHeading
in class EventDataProviderAdapter
public void setAltitude(double altM)
public boolean hasAltitude()
public double getAltitude()
getAltitude
in interface EventDataProvider
getAltitude
in class EventDataProviderAdapter
public void setOdometerKM(double km)
public boolean hasOdometerKM()
public double getOdometerKM()
getOdometerKM
in interface EventDataProvider
getOdometerKM
in class EventDataProviderAdapter
public void setGeozoneID(java.lang.String gzid)
public void setGeozone(Geozone zone)
public boolean hasGeozoneID()
public java.lang.String getGeozoneID()
getGeozoneID
in interface EventDataProvider
getGeozoneID
in class EventDataProviderAdapter
public boolean hasAddress()
public java.lang.String getAddress()
getAddress
in interface EventDataProvider
getAddress
in class EventDataProviderAdapter
public void setInputMask(long mask)
public boolean hasInputMask()
public long getInputMask()
getInputMask
in interface EventDataProvider
getInputMask
in class EventDataProviderAdapter
public void setEngineHours(double hours)
public boolean hasEngineHours()
public double getEngineHours()
public void setPtoHours(double hours)
public boolean hasPtoHours()
public double getPtoHours()
public void setFuelTotal(double fuel)
public boolean hasFuelTotal()
public double getFuelTotal()
public void setEventIndex(int ndx)
setEventIndex
in interface EventDataProvider
setEventIndex
in class EventDataProviderAdapter
public int getEventIndex()
getEventIndex
in interface EventDataProvider
getEventIndex
in class EventDataProviderAdapter
public boolean getIsFirstEvent()
getIsFirstEvent
in interface EventDataProvider
getIsFirstEvent
in class EventDataProviderAdapter
public void setIsLastEvent(boolean isLast)
setIsLastEvent
in interface EventDataProvider
setIsLastEvent
in class EventDataProviderAdapter
public boolean getIsLastEvent()
getIsLastEvent
in interface EventDataProvider
getIsLastEvent
in class EventDataProviderAdapter
public java.lang.Object getFieldValue(java.lang.String fldName)
public void setFieldValue(java.lang.String fldName, java.lang.Object fldVal)
public void setFieldValue(java.lang.String fldName, boolean fldVal)
public void setFieldValue(java.lang.String fldName, int fldVal)
public void setFieldValue(java.lang.String fldName, long fldVal)
public void setFieldValue(java.lang.String fldName, double fldVal)
public void setFieldValue(java.lang.String fldName, java.lang.String fldVal)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |