|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.dbtools.DBFieldType org.opengts.dbtypes.DTELogState
public class DTELogState
Field Summary | |
---|---|
static double |
DFT_distanceKM
|
static boolean |
DFT_isDriving
|
static GeoPoint |
DFT_lastGeoPoint
|
static int |
DFT_lastStatusCode
|
static long |
DFT_lastTimestamp
|
static java.lang.String |
KEY_distanceKM
|
static java.lang.String |
KEY_isDriving
|
static java.lang.String |
KEY_lastGeoPoint
|
static java.lang.String |
KEY_lastStatusCode
|
static java.lang.String |
KEY_lastTimestamp
|
Constructor Summary | |
---|---|
DTELogState()
Default constructor (disabled) |
|
DTELogState(long lastTS,
int lastSC,
boolean isDriving,
double distKM,
GeoPoint lastGP)
Constructor |
|
DTELogState(java.sql.ResultSet rs,
java.lang.String fldName)
[DBFieldType interface] Constructor |
|
DTELogState(RTProperties rtp)
Constructor |
|
DTELogState(java.lang.String rtpStr)
Constructor |
Method Summary | |
---|---|
void |
addLastDistanceKM(double deltaKM)
Adds the specified distance to the accumulator, in Kilometers |
void |
addLastDistanceMI(double deltaMI)
Adds the specified distance to the accumulator, in Miles |
void |
clear()
Clears all values to their default |
boolean |
equals(java.lang.Object other)
Returns true if the specified Object is equal to this instance |
boolean |
getIsDriving()
Gets the driving state |
double |
getLastDistanceKM()
Gets the distance travelled, in Kilometers |
double |
getLastDistanceMI()
Gets the distance travelled, in Miles |
GeoPoint |
getLastGeoPoint()
Gets the last GeoPoint. |
int |
getLastStatusCode()
Gets the last status-code |
long |
getLastTimestamp()
Gets the last timestamp |
java.lang.Object |
getObject()
[DBFieldType interface] Return Object as saved in the DB |
RTProperties |
getRTProperties()
Gets the RTProperties representation of this instance |
boolean |
hasLastGeoPoint()
Returns true if the last GeoPoint is defined/valid |
boolean |
hasLastStatusCode()
Returns true if the last status-code is defined |
boolean |
hasLastTimestamp()
Returns true if last timestamp is defined |
void |
init(RTProperties rtp)
Initializes values |
static void |
main(java.lang.String[] argv)
|
void |
setIsDriving(boolean isDriving)
Sets the driving state |
void |
setLastDistanceKM(double distKM)
Sets the distance travelled, in Kilometers |
void |
setLastDistanceMI(double distMI)
Sets the distance travelled, in Miles |
void |
setLastEventData(EventData ev)
Set Last timestamp and status-code per specified EventData instance |
void |
setLastGeoPoint(GeoPoint lastGP)
Sets the last GeoPoint. |
void |
setLastStatusCode(int lastSC)
Sets the last status-code |
void |
setLastTimestamp(long lastTS)
Sets the last timestamp |
java.lang.String |
toString()
Gets the String representation of this instance |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String KEY_lastTimestamp
public static final java.lang.String KEY_lastStatusCode
public static final java.lang.String KEY_isDriving
public static final java.lang.String KEY_distanceKM
public static final java.lang.String KEY_lastGeoPoint
public static final long DFT_lastTimestamp
public static final int DFT_lastStatusCode
public static final boolean DFT_isDriving
public static final double DFT_distanceKM
public static final GeoPoint DFT_lastGeoPoint
Constructor Detail |
---|
public DTELogState()
public DTELogState(RTProperties rtp)
public DTELogState(java.lang.String rtpStr)
public DTELogState(long lastTS, int lastSC, boolean isDriving, double distKM, GeoPoint lastGP)
public DTELogState(java.sql.ResultSet rs, java.lang.String fldName) throws java.sql.SQLException
java.sql.SQLException
Method Detail |
---|
public void init(RTProperties rtp)
public void clear()
public long getLastTimestamp()
public void setLastTimestamp(long lastTS)
public boolean hasLastTimestamp()
public int getLastStatusCode()
public void setLastStatusCode(int lastSC)
public boolean hasLastStatusCode()
public void setLastEventData(EventData ev)
public boolean getIsDriving()
public void setIsDriving(boolean isDriving)
public double getLastDistanceKM()
public void setLastDistanceKM(double distKM)
public void addLastDistanceKM(double deltaKM)
public double getLastDistanceMI()
public void setLastDistanceMI(double distMI)
public void addLastDistanceMI(double deltaMI)
public boolean hasLastGeoPoint()
public GeoPoint getLastGeoPoint()
public void setLastGeoPoint(GeoPoint lastGP)
public RTProperties getRTProperties()
public java.lang.String toString()
toString
in class DBFieldType
public java.lang.Object getObject()
getObject
in class DBFieldType
public boolean equals(java.lang.Object other)
equals
in class DBFieldType
other
- The 'other' object
public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |