|
||||||||||
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.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 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
speed
- - vehicle speed as double
numberPassengers
- - toital number of passengers on board as int
inOutData
- - IN/OUT data per each door as InOutCountEntry
loggingPath
- - absolute logging path as String
publishTopic
- - publish topic as String
publishQoS
- - 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 String
arrivalTime
- - arrival time as Calendar
departureTime
- - departure time as Calendar
latitude
- - latitude as double
longitude
- - longitude as double
speed
- - vehicle speed as double
numberPassengers
- - toital number of passengers on board as int
inOutData
- - IN/OUT data per each door as InOutCountEntry[]
loggingPath
- - absolute logging path as String
publishTopic
- - publish topic as String
publishQoS
- - publish QoS as int
Method Detail |
---|
public String toString()
toString
in class GpsLogEntry
String
public String toMQttPayload()
toMQttPayload
in class GpsLogEntry
String
public int getNumberPassengers()
int
public long getTimeAtStation()
long
public InOutCountEntry[] getInOutData()
public double getLatitude()
getLatitude
in class GpsLogEntry
double
public double getLongitude()
getLongitude
in class GpsLogEntry
double
public double getSpeed()
getSpeed
in class GpsLogEntry
double
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |