|
||||||||||
| 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
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 Stringpcn1001Address - - SNP address of passenger counter as intarrivalTime - - arrival time as CalendardepartureTime - - departure time as Calendarlatitude - - latitude as doublelongitude - - longitude as doublearrivalSpeed - - arrival vehicle speed as doubledepartureSpeed - - departure vehicle speed as doubleinCount - - IN count as intoutCount - - OUT count as intloggingPath - - absolute logging path as StringpublishTopic - - publish topic as StringpublishQoS - - publish QoS as int| Method Detail |
|---|
public Calendar getArrivalTime()
Calendarpublic void setArrivalTime(Calendar arrivalTime)
arrivalTime - - vehicle arrival time as Calendarpublic Calendar getDepartureTime()
Calendarpublic void setDepartureTime(Calendar departureTime)
departureTime - - vehicle departure time as Calendarpublic double getArrivalSpeed()
doublepublic double getDepartureSpeed()
doublepublic void setArrivalSpeed(double arrivalSpeed)
arrivalSpeed - - vehicle arrival speed as doublepublic void setDepartureSpeed(double departureSpeed)
departureSpeed - - vehicle departure speed as doublepublic int getPcn1001Address()
intpublic void setPcn1001Address(int pcn1001Address)
pcn1001Address - - SNP address of passenger counter as intpublic int getInCount()
intpublic void setInCount(int inCount)
inCount - - IN count as intpublic int getOutCount()
intpublic void setOutCount(int outCount)
outCount - - out count as intpublic String toString()
toString in class GpsLogEntryStringpublic String toMQttPayload()
toMQttPayload in class GpsLogEntryStringpublic String formLogFilename()
formLogFilename in class GpsLogEntry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||