|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.eurotech.framework.protocol.pcn.PassengerCounterApplicationConfig
public class PassengerCounterApplicationConfig
Defines PCN-1001 Application configuration class.
Constructor Summary | |
---|---|
PassengerCounterApplicationConfig()
|
Method Summary | |
---|---|
int |
getCountElapseTimeout()
Reports 'count elapsed' timeout (in seconds). |
int |
getCountInfoAcquisitionEventTrigger()
Reports count information event trigger. |
String |
getCountInfoAcquisitionEventTriggerDescription()
Reports count information acquisition event trigger description. |
int |
getCountLoggingExpirationTime()
Reports IN/OUT count logging expiration time in days. |
String |
getCountLoggingPath()
Reports IN/OUT count logging path. |
int |
getCountLoggingStyle()
Reports count logging style. |
int |
getCountPeriodicPublishRate()
Periodic Publish Count rate. |
int |
getCountPublishQoS()
Reports IN/OUT count publish QoS. |
String |
getCountPublishTopic()
Reports IN/OUT count publish topic. |
String |
getErrStatsLoggingPath()
Reports error statistics logging path. |
int |
getErrStatsLoggingRate()
Reports error statistics logging rate. |
int |
getErrStatsPublishQoS()
Reports error statistics publish QoS. |
String |
getErrStatsPublishTopic()
Reports error statistics publish topic. |
int |
getGpsLoggingExpirationTime()
Reports GPS logging expiration time in days. |
String |
getGpsLoggingPath()
Reports GPS logging path. |
int |
getGpsLoggingRate()
Reports GPS logging rate. |
int |
getGpsLoggingStationaryThreshold()
Reports GPS stationary threshold value. |
int |
getGpsPublishQoS()
Reports GPS publish QoS. |
String |
getGpsPublishTopic()
Reports GPS publish topic. |
int |
getLogHousekeepingRate()
Reports housekeeping rate for IN/OUT count and GPS logs. |
int |
getMotionThreshold()
Reports vehicle motion threshold. |
int |
getSpeedSamplingRateHigh()
Reports speed sampling high rate. |
int |
getSpeedSamplingRateLow()
Reports speed sampling low rate. |
int |
getSpeedSamplingThreshold()
Reports speed sampling threshold. |
int |
getSpeedUnit()
Reports speed unit (MPH or KPH) |
String |
getSpeedUnitLoverCase()
Reports speed unit string in the lower case |
String |
getSpeedUnitUpperCase()
Reports speed unit string in the upper case |
String |
getStorageDeviceFilesystemType()
Reports storage device file system type. |
String |
getStorageDeviceMountPoint()
Reports mount point for USB storage device. |
String |
getStorageDeviceName()
Reports name of the storage device. |
String |
getVehicleIdFile()
Reports absolute path to VehicleID file. |
int |
getVehicleMaxOccupancy()
Reports maximum occupancy of the vehicle. |
boolean |
isCountAutoEnable()
Reports if 'auto enable' functionality is enabled. |
boolean |
isCountAutoReset()
Reports if 'auto reset' functionality is enabled. |
boolean |
isCountLoggingEnabled()
Reports if count logging is enabled. |
boolean |
isCountLoggingExpirationEnabled()
Reports if IN/OUT count logging expiration mechanism is turned on. |
boolean |
isCountPublishEnabled()
Reports if IN/OUT count publishing is enabled. |
boolean |
isErrStatsLoggingEnabled()
Reports if error statistics logging is enabled. |
boolean |
isErrStatsPublishEnabled()
Reports if error statistics publishing is enabled. |
boolean |
isGpsLoggingEnabled()
Reports if GPS logging is enabled. |
boolean |
isGpsLoggingExpirationEnabled()
Reports if GPS logging expiration mechanism is turned on. |
boolean |
isGpsLoggingWhenStationary()
Reports if GPS information is logged when vehicle is not moving. |
boolean |
isGpsPublishEnabled()
Reports if GPS publishing is enabled. |
boolean |
isNtpSynchronizationEnabled()
Reports if NTP synchronization is enabled. |
boolean |
isReportZeroCount()
Answers if zero IN/OUT count needs to be reported or/and logged |
void |
setCountAutoEnable(boolean countAutoEnable)
Sets 'auto enable' flag. |
void |
setCountAutoReset(boolean countAutoReset)
Sets 'auto reset' flag. |
void |
setCountElapseTimeout(int countElapseTimeout)
Sets 'count elapsed' timeout (in seconds). |
void |
setCountInfoAcquisitionEventTrigger(int countInfoAcquisitionEventTrigger)
Sets count information acquisition event trigger. |
void |
setCountLoggingEnabled(boolean countLoggingEnabled)
Sets 'countLoggingEnabled' flag. |
void |
setCountLoggingExpirationEnabled(boolean countLoggingExpirationEnabled)
Sets 'CountLoggingExpirationEnabled' flag. |
void |
setCountLoggingExpirationTime(int countLoggingExpirationTime)
Sets IN/OUT count logging expiration time in days. |
void |
setCountLoggingPath(String countLoggingPath)
Sets IN/OUT count logging path. |
void |
setCountLoggingStyle(int countLoggingStyle)
Sets count logging style. |
void |
setCountPeriodicPublishRate(int periodicCountPublishRate)
Sets the count periodic publishing rate. |
void |
setCountPublishEnabled(boolean countPublishEnabled)
Sets IN/OUT 'countPublishEnabled' flag. |
void |
setCountPublishQoS(int countPublishQoS)
Sets IN/OUT count publish QoS. |
void |
setCountPublishTopic(String countPublishTopic)
Sets IN/OUT count publish topic. |
void |
setErrStatsLoggingEnabled(boolean errStatsLoggingEnabled)
Sets 'errStatsLoggingEnabled' flag. |
void |
setErrStatsLoggingPath(String errStatsLoggingPath)
Sets error statistics logging path. |
void |
setErrStatsLoggingRate(int errStatsLoggingRate)
Sets the error statistics logging rate. |
void |
setErrStatsPublishEnabled(boolean errStatsPublishEnabled)
Sets 'errStatsPublishEnabled' flag. |
void |
setErrStatsPublishQoS(int errStatsPublishQoS)
Sets error statistics publish QoS. |
void |
setErrStatsPublishTopic(String errStatsPublishTopic)
Sets error statistics publish topic. |
void |
setGpsLoggingEnabled(boolean gpsLoggingEnabled)
Sets 'gpsLoggingEnabled' flag. |
void |
setGpsLoggingExpirationEnabled(boolean gpsLoggingExpirationEnabled)
Sets 'GpsLoggingExpirationEnabled' flag. |
void |
setGpsLoggingExpirationTime(int gpsLoggingExpirationTime)
Sets GPS logging expiration time in days. |
void |
setGpsLoggingPath(String gpsLoggingPath)
Sets GPS logging path. |
void |
setGpsLoggingRate(int gpsLoggingRate)
Sets GPS logging rate. |
void |
setGpsLoggingStationaryThreshold(int gpsLoggingStationaryThreshold)
Sets GPS stationary threshold value. |
void |
setGpsLoggingWhenStationary(boolean gpsLoggingWhenStationary)
Sets the 'gpsLoggingWhenStationary' flag. |
void |
setGpsPublishEnabled(boolean gpsPublishEnabled)
Sets 'gpsPublishEnabled' flag. |
void |
setGpsPublishQoS(int gpsPublishQoS)
Sets GPS publish QoS. |
void |
setGpsPublishTopic(String gpsPublishTopic)
Sets GPS publish topic. |
void |
setLogHousekeepingRate(int logHousekeepingRate)
Sets housekeeping rate for IN/OUT count and GPS logs. |
void |
setMotionThreshold(int motionThreshold)
Sets speed 'count reset' threshold. |
void |
setNtpSynchronizationEnabled(boolean ntpSynchronizationEnabled)
Sets 'ntpSynchronizationEnabled' flag. |
void |
setReportZeroCount(boolean reportZeroCount)
Set reportZeroCount flag. |
void |
setSpeedSamplingRateHigh(int speedSamplingRateHigh)
Sets speed sampling rate. |
void |
setSpeedSamplingRateLow(int speedSamplingRateLow)
Sets speed sampling low rate. |
void |
setSpeedSamplingThreshold(int speedSamplingThreshold)
Sets speed sampling threshold. |
void |
setSpeedUnit(int speedUnit)
Sets speed unit |
void |
setSpeedUnit(String speedUnit)
Sets speed unit |
void |
setStorageDeviceFilesystemType(String storageDeviceFilesystemType)
Sets storage device file system type. |
void |
setStorageDeviceMountPoint(String storageDeviceMountPoint)
Sets mount point for USB storage device. |
void |
setStorageDeviceName(String storageDeviceName)
Sets name of the storage device. |
void |
setVehicleIdFile(String vehicleIdFile)
Sets absolute path to VehicleID file. |
void |
setVehicleMaxOccupancy(int vehicleMaxOccupancy)
Sets maximum occupancy of the vehicle. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int CNT_INFO_EVNT_TRIGGER_CNT_CHANGE
public static final int CNT_INFO_EVNT_TRIGGER_CNT_ELAPSED
public static final int CNT_INFO_EVNT_TRIGGER_CNT_VEHICLE_SPEED
public static final int CNT_INFO_EVNT_TRIGGER_CNT_DOOR_EVENTS
public static final int CNT_INFO_EVNT_TRIGGER_CNT_PERIODIC_PUBLISH
public static final int DFLT_COUNT_INFO_ACQUISITION_EVNT_TRIGGER
public static final int DFLT_COUNT_ELAPSE_TOUT
public static final boolean DFLT_COUNT_AUTORESET
public static final boolean DFLT_COUNT_AUTOENABLE
public static final boolean DFLT_REPORT_ZERO_COUNT
public static final boolean DFLT_COUNT_LOGGING_ENABLED
public static final int DFLT_COUNT_LOGGING_STYLE
public static final String DFLT_COUNT_LOGGING_PATH
public static final boolean DFLT_COUNT_LOGGING_EXP_ENABLED
public static final int DFLT_COUNT_LOGGING_EXP_TIME
public static final boolean DFLT_COUNT_PUBLISH_ENABLED
public static final String DFLT_COUNT_PUBLISH_TOPIC
public static final int DFLT_COUNT_PUBLISH_QOS
public static final boolean DFLT_PERIODIC_COUNT_PUBLISH_ENABLED
public static final String DFLT_PERIODIC_COUNT_PUBLISH_TOPIC
public static final int DFLT_PERIODIC_COUNT_PUBLISH_QOS
public static final int DFLT_COUNT_PERIODIC_PUBLISH_RATE
public static final boolean DFLT_GPS_LOGGING_ENABLED
public static final boolean DFLT_GPS_LOGGING_WHEN_STATIONARY
public static final int DFLT_GPS_LOGGING_STATIONARY_THRESHOLD
public static final String DFLT_GPS_LOGGING_PATH
public static final int DFLT_GPS_LOGGING_RATE
public static final boolean DFLT_GPS_LOGGING_EXP_ENABLED
public static final int DFLT_GPS_LOGGING_EXP_TIME
public static final boolean DFLT_GPS_PUBLISH_ENABLED
public static final String DFLT_GPS_PUBLISH_TOPIC
public static final int DFLT_GPS_PUBLISH_QOS
public static final boolean DFLT_ERR_STATS_LOGGING_ENABLED
public static final String DFLT_ERR_STATS_LOGGING_PATH
public static final int DFLT_ERR_STATS_LOGGING_RATE
public static final boolean DFLT_ERR_STATS_PUBLISH_ENABLED
public static final String DFLT_ERR_STATS_PUBLISH_TOPIC
public static final int DFLT_ERR_STATS_PUBLISH_QOS
public static final boolean DFLT_NTP_SYNCHRONIZATION_ENABLED
public static final int DFLT_SPEED_SAMPLING_RATE_HIGH
public static final int DFLT_SPEED_SAMPLING_RATE_LOW
public static final int DFLT_SPEED_SAMPLING_THRESHOLD
public static final int DFLT_VEHICLE_MOTION_THRESHOLD
public static final int SPEED_UNIT_MPH
public static final int SPEED_UNIT_KPH
public static final String SPEED_UNIT_MPH_STR
public static final String SPEED_UNIT_KPH_STR
public static final int DFLT_SPEED_UNIT
public static Hashtable htCountInfoTrigger
public static Hashtable htSpeedUnit
public static final String DFLT_STORAGE_DEVICE_NAME
public static final String DFLT_STORAGE_DEVICE_FILESYSTEM
public static final String DFLT_STORAGE_DEVICE_MOUNTPOINT
public static final int DFLT_LOG_HOUSEKEEPING_RATE
public static final String DFLT_VEHICLE_ID_FILE
public static final int DFLT_VEHICLE_MAX_OCCUPANCY
Constructor Detail |
---|
public PassengerCounterApplicationConfig()
Method Detail |
---|
public int getCountInfoAcquisitionEventTrigger()
int
public String getCountInfoAcquisitionEventTriggerDescription() throws NumberFormatException
String
NumberFormatException
public void setCountInfoAcquisitionEventTrigger(int countInfoAcquisitionEventTrigger)
countInfoAcquisitionEventTrigger
- - count information event trigger as int
public int getCountElapseTimeout()
int
public void setCountElapseTimeout(int countElapseTimeout)
countElapseTimeout
- - 'count elapsed' timeout as int
public boolean isCountAutoReset()
boolean
public void setCountAutoReset(boolean countAutoReset)
countAutoReset
- - 'auto reset' flag as boolean
public boolean isCountAutoEnable()
booelan
public void setCountAutoEnable(boolean countAutoEnable)
countAutoEnable
- - 'auto enable' flag as boolean
public boolean isReportZeroCount()
boolean
public void setReportZeroCount(boolean reportZeroCount)
reportZeroCount
- - a value for reportZeroCount flag as boolean
public boolean isCountLoggingEnabled()
boolean
public void setCountLoggingEnabled(boolean countLoggingEnabled)
countLoggingEnabled
- - count loging enabled flag as boolean
public int getCountLoggingStyle()
int
public void setCountLoggingStyle(int countLoggingStyle)
countLoggingStyle
- - count logging style as int
public String getCountLoggingPath()
String
public void setCountLoggingPath(String countLoggingPath)
countLoggingPath
- - count logging path as String
public int getCountLoggingExpirationTime()
int
public boolean isCountLoggingExpirationEnabled()
boolean
public void setCountLoggingExpirationEnabled(boolean countLoggingExpirationEnabled)
countLoggingExpirationEnabled
- - 'CountLoggingExpirationEnabled' flag as boolean
public void setCountLoggingExpirationTime(int countLoggingExpirationTime)
countLoggingExp
- - IN/OUT count logging expiration time as int
public boolean isCountPublishEnabled()
public void setCountPublishEnabled(boolean countPublishEnabled)
countPublishEnabled
- public String getCountPublishTopic()
public void setCountPublishTopic(String countPublishTopic)
countPublishTopic
- public int getCountPublishQoS()
int
public void setCountPublishQoS(int countPublishQoS)
countPublishQoS
- - IN/OUT count publish QoS as int
public boolean isGpsLoggingEnabled()
boolean
public void setGpsLoggingEnabled(boolean gpsLoggingEnabled)
gpsLoggingEnabled
- - GPS logging enabled flag as boolean
public boolean isGpsLoggingWhenStationary()
boolean
public int getGpsLoggingStationaryThreshold()
int
public void setGpsLoggingStationaryThreshold(int gpsLoggingStationaryThreshold)
gpsLoggingStationaryThreshold
- - GPS stationary threshold as int
public void setGpsLoggingWhenStationary(boolean gpsLoggingWhenStationary)
gpsLoggingWhenStationary
- - 'gpsLoggingWhenStationary' flag as boolean
public String getGpsLoggingPath()
String
public void setGpsLoggingPath(String gpsLoggingPath)
gpsLoggingPath
- GPS logging path as String
public boolean isGpsLoggingExpirationEnabled()
boolean
public void setGpsLoggingExpirationEnabled(boolean gpsLoggingExpirationEnabled)
gpsLoggingExpirationEnabled
- - 'GpsLoggingExpirationEnabled' flag as boolean
public int getGpsLoggingExpirationTime()
int
public void setGpsLoggingExpirationTime(int gpsLoggingExpirationTime)
gpsLoggingExp
- - GPS logging expiration time as int
public boolean isGpsPublishEnabled()
boolean
public void setGpsPublishEnabled(boolean gpsPublishEnabled)
gpsPublishEnabled
- - 'gpsPublishEnabled' flag as boolean
public String getGpsPublishTopic()
String
public void setGpsPublishTopic(String gpsPublishTopic)
gpsPublishTopic
- - GPS publish topic as String
public int getGpsPublishQoS()
int
public void setGpsPublishQoS(int gpsPublishQoS)
gpsPublishQoS
- - GPS publish QoS as int
public int getSpeedUnit()
int
public String getSpeedUnitUpperCase() throws NumberFormatException
String
NumberFormatException
public String getSpeedUnitLoverCase() throws NumberFormatException
String
NumberFormatException
public int getSpeedSamplingThreshold()
int
public void setSpeedSamplingThreshold(int speedSamplingThreshold)
speedSamplingThreshold
- - speed sampling threshold as int
public int getMotionThreshold()
int
public void setMotionThreshold(int motionThreshold)
motionThreshold
- - motion threshold as int
public void setSpeedUnit(int speedUnit)
speedUnit
- - speed unit as int
public void setSpeedUnit(String speedUnit) throws NumberFormatException
speedUnit
- - speed unit as String
NumberFormatException
public int getSpeedSamplingRateHigh()
int
public void setSpeedSamplingRateHigh(int speedSamplingRateHigh)
sppedSamplingRateFast
- - speed sampling rate in msec as int
public int getSpeedSamplingRateLow()
int
public void setSpeedSamplingRateLow(int speedSamplingRateLow)
sppedSamplingRateLow
- - speed sampling low rate in msec as int
public int getGpsLoggingRate()
int
public void setGpsLoggingRate(int gpsLoggingRate)
gpsLoggingRate
- - GPS logging rate in sec as int
public String getStorageDeviceName()
String
public void setStorageDeviceName(String storageDeviceName)
storageDeviceName
- - name of the storage device as String
public String getStorageDeviceFilesystemType()
String
public void setStorageDeviceFilesystemType(String storageDeviceFilesystemType)
storageDeviceFilesystemType
- - storage device file system type as String
public String getStorageDeviceMountPoint()
String
public void setStorageDeviceMountPoint(String storageDeviceMountPoint)
storageDeviceMountPoint
- - storage device mount point as String
public int getLogHousekeepingRate()
int
public void setLogHousekeepingRate(int logHousekeepingRate)
logHousekeepingRate
- - housekeeping rate for count and GPS logs as int
public String getVehicleIdFile()
String
public void setVehicleIdFile(String vehicleIdFile)
vehicleIdFile
- - absolute path to VehicleID file as String
public int getVehicleMaxOccupancy()
int
public void setVehicleMaxOccupancy(int vehicleMaxOccupancy)
vehicleMaxOccupancy
- - maximum occupancy as int
public boolean isErrStatsLoggingEnabled()
boolean
public void setErrStatsLoggingEnabled(boolean errStatsLoggingEnabled)
countLoggingEnabled
- - error stats logging enabled flag as boolean
public int getErrStatsLoggingRate()
int
public void setErrStatsLoggingRate(int errStatsLoggingRate)
errStatsLoggingRate
- - error statistics logging rate as int
public int getCountPeriodicPublishRate()
int
public void setCountPeriodicPublishRate(int periodicCountPublishRate)
periodicCountPublishRate
- - count periodic publishing rate as int
public String getErrStatsLoggingPath()
String
public void setErrStatsLoggingPath(String errStatsLoggingPath)
errStatsLoggingPath
- - error statistics logging path as String
public boolean isErrStatsPublishEnabled()
boolean
public void setErrStatsPublishEnabled(boolean errStatsPublishEnabled)
errStatsPublishEnabled
- - error stats publishing enabled flag as boolean
public String getErrStatsPublishTopic()
String
public void setErrStatsPublishTopic(String errStatsPublishTopic)
errStatsPublishTopic
- - error statistics publish topic as String
public int getErrStatsPublishQoS()
int
public void setErrStatsPublishQoS(int errStatsPublishQoS)
errStatsPublishQoS
- - error statistics publish QoS as int
public boolean isNtpSynchronizationEnabled()
boolean
public void setNtpSynchronizationEnabled(boolean ntpSynchronizationEnabled)
ntpSynchronizationEnabled
- - NTP synchronization enabled flag as boolean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |