com.eurotech.framework.protocol.pcn
Class ErrStatsLogEntry

java.lang.Object
  extended by com.eurotech.framework.protocol.pcn.LogEntry
      extended by com.eurotech.framework.protocol.pcn.ErrStatsLogEntry

public class ErrStatsLogEntry
extends LogEntry

Defines PCN1001 error statistics log entry.

Author:
cristiano.dealti

Constructor Summary
ErrStatsLogEntry(String vehicleID, Calendar timestamp, String loggingPath, String publishTopic, int publishQoS, ErrStats[] allErrStats)
          ErrStatsLogEntry constructor
 
Method Summary
 String formLogFilename()
          Forms an absolute path to GPS log filename.
 ErrStats[] getAllErrStats()
          Reports all the passengers' counter error statistics
 void setAllErrStats(ErrStats[] allErrStats)
          Sets all the passengers' counter error statistics
 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

ErrStatsLogEntry

public ErrStatsLogEntry(String vehicleID,
                        Calendar timestamp,
                        String loggingPath,
                        String publishTopic,
                        int publishQoS,
                        ErrStats[] allErrStats)
ErrStatsLogEntry constructor

Parameters:
vehicleID - - vehicle IS as String
timestamp - - time stamp as Calendar
loggingPath - - absolute logging path as String
publishTopic - - publish topic as String
publishQoS - - publish QoS as int
Method Detail

getAllErrStats

public ErrStats[] getAllErrStats()
Reports all the passengers' counter error statistics

Returns:
the the passengers' counter error statistics as ErrStats[]

setAllErrStats

public void setAllErrStats(ErrStats[] allErrStats)
Sets all the passengers' counter error statistics

Parameters:
allErrStats - - all the the passengers' counter error statistics as ErrStats[]

toString

public String toString()
Reports string representation of this object

Overrides:
toString in class LogEntry
Returns:
string representation of this object as String

toMQttPayload

public String toMQttPayload()
Reports MQtt payload representation of this object

Overrides:
toMQttPayload in class LogEntry
Returns:
MQtt payload representation of this object as String

formLogFilename

public String formLogFilename()
Forms an absolute path to GPS log filename.

Overrides:
formLogFilename in class LogEntry


Copyright © 2013. All Rights Reserved.