|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.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 String
timestamp
- - time stamp as Calendar
latitude
- - latitude as double
longitude
- - longitude as double
speed
- - vehicle speed as double
loggingPath
- -absolute logging path as String
publishTopic
- - publish topic as String
publishQoS
- - publish QoS as int
Method Detail |
---|
public double getLatitude()
double
public void setLatitude(double latitude)
latitude
- - latitude as double
public double getLongitude()
double
public void setLongitude(double longitude)
longitude
- - longitude as double
public double getSpeed()
double
public void setSpeed(double speed)
speed
- - vehicle speed as double
public String toString()
toString
in class LogEntry
String
public String toMQttPayload()
toMQttPayload
in class LogEntry
String
public String formLogFilename()
formLogFilename
in class LogEntry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |