|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.eurotech.framework.protocol.pcn.LogEntry
com.eurotech.framework.protocol.pcn.GpsLogEntry
public class GpsLogEntry
Defines GPS log entry.
| Constructor Summary | |
|---|---|
GpsLogEntry()
GpsLogEntry default constructor |
|
GpsLogEntry(String entry)
GpsLogEntry constructor |
|
GpsLogEntry(String vehicleID,
Calendar timestamp,
double latitude,
double longitude,
double speed,
String loggingPath,
String publishTopic,
int publishQoS)
GpsLogEntry constructor |
|
| Method Summary | |
|---|---|
String |
formLogFilename()
Forms an absolute path to GPS log filename. |
double |
getLatitude()
Reports latitude |
double |
getLongitude()
Reports longitude |
double |
getSpeed()
Reports vehicle speed. |
void |
setLatitude(double latitude)
Sets latitude |
void |
setLongitude(double longitude)
Sets longitude |
void |
setSpeed(double speed)
Sets vehicle speed. |
String |
toMQttPayload()
Reports MQtt payload representation of this object |
String |
toString()
Reports string representation of this object |
| Methods inherited from class com.eurotech.framework.protocol.pcn.LogEntry |
|---|
generateHHMMSS, generateHHMMSS, generateYYYYMMDD, generateYYYYMMDD, getLoggingPath, getPublishQoS, getPublishTopic, getTimestamp, getVehicleID, isPublished, setLoggingPath, setPublished, setTimestamp, setVehicleID |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GpsLogEntry()
public GpsLogEntry(String entry)
throws Exception
entry - - GPS entry obtained from log file as String
Exception
public GpsLogEntry(String vehicleID,
Calendar timestamp,
double latitude,
double longitude,
double speed,
String loggingPath,
String publishTopic,
int publishQoS)
vehicleID - - vehicle ID as Stringtimestamp - - time stamp as Calendarlatitude - - latitude as doublelongitude - - longitude as doublespeed - - vehicle speed as doubleloggingPath - -absolute logging path as StringpublishTopic - - publish topic as StringpublishQoS - - publish QoS as int| Method Detail |
|---|
public double getLatitude()
doublepublic void setLatitude(double latitude)
latitude - - latitude as doublepublic double getLongitude()
doublepublic void setLongitude(double longitude)
longitude - - longitude as doublepublic double getSpeed()
doublepublic void setSpeed(double speed)
speed - - vehicle speed as doublepublic String toString()
toString in class LogEntryStringpublic String toMQttPayload()
toMQttPayload in class LogEntryStringpublic String formLogFilename()
formLogFilename in class LogEntry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||