|
||||||||||
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 com.eurotech.framework.protocol.pcn.PassengerCountLogEntry
public class PassengerCountLogEntry
Defines IN/OUT count log entry.
Constructor Summary | |
---|---|
PassengerCountLogEntry()
PassengerCountLogEntry default |
|
PassengerCountLogEntry(String entry)
PassengerCountLogEntry constructor |
|
PassengerCountLogEntry(String vehicleID,
int pcn1001Address,
Calendar arrivalTime,
Calendar departureTime,
double latitude,
double longitude,
double arrivalSpeed,
double departureSpeed,
int inCount,
int outCount,
String loggingPath,
String publishTopic,
int publishQoS)
PassengerCountLogEntry constructor |
Method Summary | |
---|---|
String |
formLogFilename()
Forms an absolute path to passenger count log filename. |
double |
getArrivalSpeed()
Reports vehicle arrival speed. |
Calendar |
getArrivalTime()
Reports vehicle arrival time. |
double |
getDepartureSpeed()
Reports vehicle departure speed. |
Calendar |
getDepartureTime()
Reports vehicle departure time. |
int |
getInCount()
Reports IN count. |
int |
getOutCount()
Reports OUT count. |
int |
getPcn1001Address()
Reports SNP address of passenger counter. |
void |
setArrivalSpeed(double arrivalSpeed)
Sets vehicle arrival speed. |
void |
setArrivalTime(Calendar arrivalTime)
Sets vehicle arrival time. |
void |
setDepartureSpeed(double departureSpeed)
Sets vehicle departure speed. |
void |
setDepartureTime(Calendar departureTime)
Sets vehicle departure time. |
void |
setInCount(int inCount)
Sets IN count. |
void |
setOutCount(int outCount)
Sets OUT count. |
void |
setPcn1001Address(int pcn1001Address)
Sets SNP address of passenger counter. |
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.GpsLogEntry |
---|
getLatitude, getLongitude, getSpeed, setLatitude, setLongitude, setSpeed |
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 PassengerCountLogEntry()
public PassengerCountLogEntry(String entry) throws Exception
entry
- - passenger IN/OUT counter entry obtained from log file as String
Exception
public PassengerCountLogEntry(String vehicleID, int pcn1001Address, Calendar arrivalTime, Calendar departureTime, double latitude, double longitude, double arrivalSpeed, double departureSpeed, int inCount, int outCount, String loggingPath, String publishTopic, int publishQoS)
vehicleID
- - vehicle ID as String
pcn1001Address
- - SNP address of passenger counter as int
arrivalTime
- - arrival time as Calendar
departureTime
- - departure time as Calendar
latitude
- - latitude as double
longitude
- - longitude as double
arrivalSpeed
- - arrival vehicle speed as double
departureSpeed
- - departure vehicle speed as double
inCount
- - IN count as int
outCount
- - OUT count as int
loggingPath
- - absolute logging path as String
publishTopic
- - publish topic as String
publishQoS
- - publish QoS as int
Method Detail |
---|
public Calendar getArrivalTime()
Calendar
public void setArrivalTime(Calendar arrivalTime)
arrivalTime
- - vehicle arrival time as Calendar
public Calendar getDepartureTime()
Calendar
public void setDepartureTime(Calendar departureTime)
departureTime
- - vehicle departure time as Calendar
public double getArrivalSpeed()
double
public double getDepartureSpeed()
double
public void setArrivalSpeed(double arrivalSpeed)
arrivalSpeed
- - vehicle arrival speed as double
public void setDepartureSpeed(double departureSpeed)
departureSpeed
- - vehicle departure speed as double
public int getPcn1001Address()
int
public void setPcn1001Address(int pcn1001Address)
pcn1001Address
- - SNP address of passenger counter as int
public int getInCount()
int
public void setInCount(int inCount)
inCount
- - IN count as int
public int getOutCount()
int
public void setOutCount(int outCount)
outCount
- - out count as int
public String toString()
toString
in class GpsLogEntry
String
public String toMQttPayload()
toMQttPayload
in class GpsLogEntry
String
public String formLogFilename()
formLogFilename
in class GpsLogEntry
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |