|
||||||||||
| 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.VehiclePassengerCountLogEntry
public class VehiclePassengerCountLogEntry
Defines Vehicle passenger count log entry
| Constructor Summary | |
|---|---|
VehiclePassengerCountLogEntry()
VehiclePassengerCountLogEntry constructor |
|
VehiclePassengerCountLogEntry(String entry)
VehiclePassengerCountLogEntry constructor |
|
VehiclePassengerCountLogEntry(String vehicleID,
Calendar arrivalTime,
Calendar departureTime,
double latitude,
double longitude,
double speed,
int numberPassengers,
InOutCountEntry[] inOutData,
String loggingPath,
String publishTopic,
int publishQoS)
VehiclePassengerCountLogEntry constructor |
|
VehiclePassengerCountLogEntry(String vehicleID,
int pcn1001Address,
Calendar arrivalTime,
Calendar departureTime,
double latitude,
double longitude,
double speed,
int numberPassengers,
InOutCountEntry inOutData,
String loggingPath,
String publishTopic,
int publishQoS)
VehiclePassengerCountLogEntry constructor |
|
| Method Summary | |
|---|---|
InOutCountEntry[] |
getInOutData()
|
double |
getLatitude()
Reports latitude. |
double |
getLongitude()
Reports longitude. |
int |
getNumberPassengers()
Reports total number of passengers on board |
double |
getSpeed()
Reports speed |
long |
getTimeAtStation()
Reports vehicle's time at station (in seconds) |
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 |
|---|
formLogFilename, 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 VehiclePassengerCountLogEntry()
public VehiclePassengerCountLogEntry(String entry)
throws Exception
entry - - passenger IN/OUT counter entry obtained from log file as String
Exception
public VehiclePassengerCountLogEntry(String vehicleID,
int pcn1001Address,
Calendar arrivalTime,
Calendar departureTime,
double latitude,
double longitude,
double speed,
int numberPassengers,
InOutCountEntry inOutData,
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 doublespeed - - vehicle speed as doublenumberPassengers - - toital number of passengers on board as intinOutData - - IN/OUT data per each door as InOutCountEntryloggingPath - - absolute logging path as StringpublishTopic - - publish topic as StringpublishQoS - - publish QoS as int
public VehiclePassengerCountLogEntry(String vehicleID,
Calendar arrivalTime,
Calendar departureTime,
double latitude,
double longitude,
double speed,
int numberPassengers,
InOutCountEntry[] inOutData,
String loggingPath,
String publishTopic,
int publishQoS)
vehicleID - - vehicle ID as StringarrivalTime - - arrival time as CalendardepartureTime - - departure time as Calendarlatitude - - latitude as doublelongitude - - longitude as doublespeed - - vehicle speed as doublenumberPassengers - - toital number of passengers on board as intinOutData - - IN/OUT data per each door as InOutCountEntry[]loggingPath - - absolute logging path as StringpublishTopic - - publish topic as StringpublishQoS - - publish QoS as int| Method Detail |
|---|
public String toString()
toString in class GpsLogEntryStringpublic String toMQttPayload()
toMQttPayload in class GpsLogEntryStringpublic int getNumberPassengers()
intpublic long getTimeAtStation()
longpublic InOutCountEntry[] getInOutData()
public double getLatitude()
getLatitude in class GpsLogEntrydoublepublic double getLongitude()
getLongitude in class GpsLogEntrydoublepublic double getSpeed()
getSpeed in class GpsLogEntrydouble
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||