com.eurotech.framework.protocol.pcn
Class PassengerCounterApplicationConfig

java.lang.Object
  extended by com.eurotech.framework.protocol.pcn.PassengerCounterApplicationConfig

public class PassengerCounterApplicationConfig
extends Object

Defines PCN-1001 Application configuration class.

Author:
ilya.binshtok

Field Summary
static int CNT_INFO_EVNT_TRIGGER_CNT_CHANGE
           
static int CNT_INFO_EVNT_TRIGGER_CNT_DOOR_EVENTS
           
static int CNT_INFO_EVNT_TRIGGER_CNT_ELAPSED
           
static int CNT_INFO_EVNT_TRIGGER_CNT_PERIODIC_PUBLISH
           
static int CNT_INFO_EVNT_TRIGGER_CNT_VEHICLE_SPEED
           
static boolean DFLT_COUNT_AUTOENABLE
           
static boolean DFLT_COUNT_AUTORESET
           
static int DFLT_COUNT_ELAPSE_TOUT
           
static int DFLT_COUNT_INFO_ACQUISITION_EVNT_TRIGGER
           
static boolean DFLT_COUNT_LOGGING_ENABLED
           
static boolean DFLT_COUNT_LOGGING_EXP_ENABLED
           
static int DFLT_COUNT_LOGGING_EXP_TIME
           
static String DFLT_COUNT_LOGGING_PATH
           
static int DFLT_COUNT_LOGGING_STYLE
           
static int DFLT_COUNT_PERIODIC_PUBLISH_RATE
           
static boolean DFLT_COUNT_PUBLISH_ENABLED
           
static int DFLT_COUNT_PUBLISH_QOS
           
static String DFLT_COUNT_PUBLISH_TOPIC
           
static boolean DFLT_ERR_STATS_LOGGING_ENABLED
           
static String DFLT_ERR_STATS_LOGGING_PATH
           
static int DFLT_ERR_STATS_LOGGING_RATE
           
static boolean DFLT_ERR_STATS_PUBLISH_ENABLED
           
static int DFLT_ERR_STATS_PUBLISH_QOS
           
static String DFLT_ERR_STATS_PUBLISH_TOPIC
           
static boolean DFLT_GPS_LOGGING_ENABLED
           
static boolean DFLT_GPS_LOGGING_EXP_ENABLED
           
static int DFLT_GPS_LOGGING_EXP_TIME
           
static String DFLT_GPS_LOGGING_PATH
           
static int DFLT_GPS_LOGGING_RATE
           
static int DFLT_GPS_LOGGING_STATIONARY_THRESHOLD
           
static boolean DFLT_GPS_LOGGING_WHEN_STATIONARY
           
static boolean DFLT_GPS_PUBLISH_ENABLED
           
static int DFLT_GPS_PUBLISH_QOS
           
static String DFLT_GPS_PUBLISH_TOPIC
           
static int DFLT_LOG_HOUSEKEEPING_RATE
           
static boolean DFLT_NTP_SYNCHRONIZATION_ENABLED
           
static boolean DFLT_PERIODIC_COUNT_PUBLISH_ENABLED
           
static int DFLT_PERIODIC_COUNT_PUBLISH_QOS
           
static String DFLT_PERIODIC_COUNT_PUBLISH_TOPIC
           
static boolean DFLT_REPORT_ZERO_COUNT
           
static int DFLT_SPEED_SAMPLING_RATE_HIGH
           
static int DFLT_SPEED_SAMPLING_RATE_LOW
           
static int DFLT_SPEED_SAMPLING_THRESHOLD
           
static int DFLT_SPEED_UNIT
           
static String DFLT_STORAGE_DEVICE_FILESYSTEM
           
static String DFLT_STORAGE_DEVICE_MOUNTPOINT
           
static String DFLT_STORAGE_DEVICE_NAME
           
static String DFLT_VEHICLE_ID_FILE
           
static int DFLT_VEHICLE_MAX_OCCUPANCY
           
static int DFLT_VEHICLE_MOTION_THRESHOLD
           
static Hashtable htCountInfoTrigger
           
static Hashtable htSpeedUnit
           
static int SPEED_UNIT_KPH
           
static String SPEED_UNIT_KPH_STR
           
static int SPEED_UNIT_MPH
           
static String SPEED_UNIT_MPH_STR
           
 
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

CNT_INFO_EVNT_TRIGGER_CNT_CHANGE

public static final int CNT_INFO_EVNT_TRIGGER_CNT_CHANGE
See Also:
Constant Field Values

CNT_INFO_EVNT_TRIGGER_CNT_ELAPSED

public static final int CNT_INFO_EVNT_TRIGGER_CNT_ELAPSED
See Also:
Constant Field Values

CNT_INFO_EVNT_TRIGGER_CNT_VEHICLE_SPEED

public static final int CNT_INFO_EVNT_TRIGGER_CNT_VEHICLE_SPEED
See Also:
Constant Field Values

CNT_INFO_EVNT_TRIGGER_CNT_DOOR_EVENTS

public static final int CNT_INFO_EVNT_TRIGGER_CNT_DOOR_EVENTS
See Also:
Constant Field Values

CNT_INFO_EVNT_TRIGGER_CNT_PERIODIC_PUBLISH

public static final int CNT_INFO_EVNT_TRIGGER_CNT_PERIODIC_PUBLISH
See Also:
Constant Field Values

DFLT_COUNT_INFO_ACQUISITION_EVNT_TRIGGER

public static final int DFLT_COUNT_INFO_ACQUISITION_EVNT_TRIGGER
See Also:
Constant Field Values

DFLT_COUNT_ELAPSE_TOUT

public static final int DFLT_COUNT_ELAPSE_TOUT
See Also:
Constant Field Values

DFLT_COUNT_AUTORESET

public static final boolean DFLT_COUNT_AUTORESET
See Also:
Constant Field Values

DFLT_COUNT_AUTOENABLE

public static final boolean DFLT_COUNT_AUTOENABLE
See Also:
Constant Field Values

DFLT_REPORT_ZERO_COUNT

public static final boolean DFLT_REPORT_ZERO_COUNT
See Also:
Constant Field Values

DFLT_COUNT_LOGGING_ENABLED

public static final boolean DFLT_COUNT_LOGGING_ENABLED
See Also:
Constant Field Values

DFLT_COUNT_LOGGING_STYLE

public static final int DFLT_COUNT_LOGGING_STYLE
See Also:
Constant Field Values

DFLT_COUNT_LOGGING_PATH

public static final String DFLT_COUNT_LOGGING_PATH
See Also:
Constant Field Values

DFLT_COUNT_LOGGING_EXP_ENABLED

public static final boolean DFLT_COUNT_LOGGING_EXP_ENABLED
See Also:
Constant Field Values

DFLT_COUNT_LOGGING_EXP_TIME

public static final int DFLT_COUNT_LOGGING_EXP_TIME
See Also:
Constant Field Values

DFLT_COUNT_PUBLISH_ENABLED

public static final boolean DFLT_COUNT_PUBLISH_ENABLED
See Also:
Constant Field Values

DFLT_COUNT_PUBLISH_TOPIC

public static final String DFLT_COUNT_PUBLISH_TOPIC
See Also:
Constant Field Values

DFLT_COUNT_PUBLISH_QOS

public static final int DFLT_COUNT_PUBLISH_QOS
See Also:
Constant Field Values

DFLT_PERIODIC_COUNT_PUBLISH_ENABLED

public static final boolean DFLT_PERIODIC_COUNT_PUBLISH_ENABLED
See Also:
Constant Field Values

DFLT_PERIODIC_COUNT_PUBLISH_TOPIC

public static final String DFLT_PERIODIC_COUNT_PUBLISH_TOPIC
See Also:
Constant Field Values

DFLT_PERIODIC_COUNT_PUBLISH_QOS

public static final int DFLT_PERIODIC_COUNT_PUBLISH_QOS
See Also:
Constant Field Values

DFLT_COUNT_PERIODIC_PUBLISH_RATE

public static final int DFLT_COUNT_PERIODIC_PUBLISH_RATE
See Also:
Constant Field Values

DFLT_GPS_LOGGING_ENABLED

public static final boolean DFLT_GPS_LOGGING_ENABLED
See Also:
Constant Field Values

DFLT_GPS_LOGGING_WHEN_STATIONARY

public static final boolean DFLT_GPS_LOGGING_WHEN_STATIONARY
See Also:
Constant Field Values

DFLT_GPS_LOGGING_STATIONARY_THRESHOLD

public static final int DFLT_GPS_LOGGING_STATIONARY_THRESHOLD
See Also:
Constant Field Values

DFLT_GPS_LOGGING_PATH

public static final String DFLT_GPS_LOGGING_PATH
See Also:
Constant Field Values

DFLT_GPS_LOGGING_RATE

public static final int DFLT_GPS_LOGGING_RATE
See Also:
Constant Field Values

DFLT_GPS_LOGGING_EXP_ENABLED

public static final boolean DFLT_GPS_LOGGING_EXP_ENABLED
See Also:
Constant Field Values

DFLT_GPS_LOGGING_EXP_TIME

public static final int DFLT_GPS_LOGGING_EXP_TIME
See Also:
Constant Field Values

DFLT_GPS_PUBLISH_ENABLED

public static final boolean DFLT_GPS_PUBLISH_ENABLED
See Also:
Constant Field Values

DFLT_GPS_PUBLISH_TOPIC

public static final String DFLT_GPS_PUBLISH_TOPIC
See Also:
Constant Field Values

DFLT_GPS_PUBLISH_QOS

public static final int DFLT_GPS_PUBLISH_QOS
See Also:
Constant Field Values

DFLT_ERR_STATS_LOGGING_ENABLED

public static final boolean DFLT_ERR_STATS_LOGGING_ENABLED
See Also:
Constant Field Values

DFLT_ERR_STATS_LOGGING_PATH

public static final String DFLT_ERR_STATS_LOGGING_PATH
See Also:
Constant Field Values

DFLT_ERR_STATS_LOGGING_RATE

public static final int DFLT_ERR_STATS_LOGGING_RATE
See Also:
Constant Field Values

DFLT_ERR_STATS_PUBLISH_ENABLED

public static final boolean DFLT_ERR_STATS_PUBLISH_ENABLED
See Also:
Constant Field Values

DFLT_ERR_STATS_PUBLISH_TOPIC

public static final String DFLT_ERR_STATS_PUBLISH_TOPIC
See Also:
Constant Field Values

DFLT_ERR_STATS_PUBLISH_QOS

public static final int DFLT_ERR_STATS_PUBLISH_QOS
See Also:
Constant Field Values

DFLT_NTP_SYNCHRONIZATION_ENABLED

public static final boolean DFLT_NTP_SYNCHRONIZATION_ENABLED
See Also:
Constant Field Values

DFLT_SPEED_SAMPLING_RATE_HIGH

public static final int DFLT_SPEED_SAMPLING_RATE_HIGH
See Also:
Constant Field Values

DFLT_SPEED_SAMPLING_RATE_LOW

public static final int DFLT_SPEED_SAMPLING_RATE_LOW
See Also:
Constant Field Values

DFLT_SPEED_SAMPLING_THRESHOLD

public static final int DFLT_SPEED_SAMPLING_THRESHOLD
See Also:
Constant Field Values

DFLT_VEHICLE_MOTION_THRESHOLD

public static final int DFLT_VEHICLE_MOTION_THRESHOLD
See Also:
Constant Field Values

SPEED_UNIT_MPH

public static final int SPEED_UNIT_MPH
See Also:
Constant Field Values

SPEED_UNIT_KPH

public static final int SPEED_UNIT_KPH
See Also:
Constant Field Values

SPEED_UNIT_MPH_STR

public static final String SPEED_UNIT_MPH_STR
See Also:
Constant Field Values

SPEED_UNIT_KPH_STR

public static final String SPEED_UNIT_KPH_STR
See Also:
Constant Field Values

DFLT_SPEED_UNIT

public static final int DFLT_SPEED_UNIT
See Also:
Constant Field Values

htCountInfoTrigger

public static Hashtable htCountInfoTrigger

htSpeedUnit

public static Hashtable htSpeedUnit

DFLT_STORAGE_DEVICE_NAME

public static final String DFLT_STORAGE_DEVICE_NAME
See Also:
Constant Field Values

DFLT_STORAGE_DEVICE_FILESYSTEM

public static final String DFLT_STORAGE_DEVICE_FILESYSTEM
See Also:
Constant Field Values

DFLT_STORAGE_DEVICE_MOUNTPOINT

public static final String DFLT_STORAGE_DEVICE_MOUNTPOINT
See Also:
Constant Field Values

DFLT_LOG_HOUSEKEEPING_RATE

public static final int DFLT_LOG_HOUSEKEEPING_RATE
See Also:
Constant Field Values

DFLT_VEHICLE_ID_FILE

public static final String DFLT_VEHICLE_ID_FILE
See Also:
Constant Field Values

DFLT_VEHICLE_MAX_OCCUPANCY

public static final int DFLT_VEHICLE_MAX_OCCUPANCY
See Also:
Constant Field Values
Constructor Detail

PassengerCounterApplicationConfig

public PassengerCounterApplicationConfig()
Method Detail

getCountInfoAcquisitionEventTrigger

public int getCountInfoAcquisitionEventTrigger()
Reports count information event trigger.

Returns:
- count information event trigger as int

getCountInfoAcquisitionEventTriggerDescription

public String getCountInfoAcquisitionEventTriggerDescription()
                                                      throws NumberFormatException
Reports count information acquisition event trigger description.

Returns:
- count information event trigger description as String
Throws:
NumberFormatException

setCountInfoAcquisitionEventTrigger

public void setCountInfoAcquisitionEventTrigger(int countInfoAcquisitionEventTrigger)
Sets count information acquisition event trigger.

Parameters:
countInfoAcquisitionEventTrigger - - count information event trigger as int

getCountElapseTimeout

public int getCountElapseTimeout()
Reports 'count elapsed' timeout (in seconds).

Returns:
'count elapsed' timeout as int

setCountElapseTimeout

public void setCountElapseTimeout(int countElapseTimeout)
Sets 'count elapsed' timeout (in seconds).

Parameters:
countElapseTimeout - - 'count elapsed' timeout as int

isCountAutoReset

public boolean isCountAutoReset()
Reports if 'auto reset' functionality is enabled.

Returns:
boolean

setCountAutoReset

public void setCountAutoReset(boolean countAutoReset)
Sets 'auto reset' flag.

Parameters:
countAutoReset - - 'auto reset' flag as boolean

isCountAutoEnable

public boolean isCountAutoEnable()
Reports if 'auto enable' functionality is enabled.

Returns:
booelan

setCountAutoEnable

public void setCountAutoEnable(boolean countAutoEnable)
Sets 'auto enable' flag.

Parameters:
countAutoEnable - - 'auto enable' flag as boolean

isReportZeroCount

public boolean isReportZeroCount()
Answers if zero IN/OUT count needs to be reported or/and logged

Returns:
boolean

setReportZeroCount

public void setReportZeroCount(boolean reportZeroCount)
Set reportZeroCount flag.

Parameters:
reportZeroCount - - a value for reportZeroCount flag as boolean

isCountLoggingEnabled

public boolean isCountLoggingEnabled()
Reports if count logging is enabled.

Returns:
boolean

setCountLoggingEnabled

public void setCountLoggingEnabled(boolean countLoggingEnabled)
Sets 'countLoggingEnabled' flag.

Parameters:
countLoggingEnabled - - count loging enabled flag as boolean

getCountLoggingStyle

public int getCountLoggingStyle()
Reports count logging style.

Returns:
count logging style as int

setCountLoggingStyle

public void setCountLoggingStyle(int countLoggingStyle)
Sets count logging style.

Parameters:
countLoggingStyle - - count logging style as int

getCountLoggingPath

public String getCountLoggingPath()
Reports IN/OUT count logging path.

Returns:
count logging path as String

setCountLoggingPath

public void setCountLoggingPath(String countLoggingPath)
Sets IN/OUT count logging path.

Parameters:
countLoggingPath - - count logging path as String

getCountLoggingExpirationTime

public int getCountLoggingExpirationTime()
Reports IN/OUT count logging expiration time in days.

Returns:
IN/OUT count logging expiration time as int

isCountLoggingExpirationEnabled

public boolean isCountLoggingExpirationEnabled()
Reports if IN/OUT count logging expiration mechanism is turned on.

Returns:
boolean

setCountLoggingExpirationEnabled

public void setCountLoggingExpirationEnabled(boolean countLoggingExpirationEnabled)
Sets 'CountLoggingExpirationEnabled' flag.

Parameters:
countLoggingExpirationEnabled - - 'CountLoggingExpirationEnabled' flag as boolean

setCountLoggingExpirationTime

public void setCountLoggingExpirationTime(int countLoggingExpirationTime)
Sets IN/OUT count logging expiration time in days.

Parameters:
countLoggingExp - - IN/OUT count logging expiration time as int

isCountPublishEnabled

public boolean isCountPublishEnabled()
Reports if IN/OUT count publishing is enabled.

Returns:

setCountPublishEnabled

public void setCountPublishEnabled(boolean countPublishEnabled)
Sets IN/OUT 'countPublishEnabled' flag.

Parameters:
countPublishEnabled -

getCountPublishTopic

public String getCountPublishTopic()
Reports IN/OUT count publish topic.

Returns:

setCountPublishTopic

public void setCountPublishTopic(String countPublishTopic)
Sets IN/OUT count publish topic.

Parameters:
countPublishTopic -

getCountPublishQoS

public int getCountPublishQoS()
Reports IN/OUT count publish QoS.

Returns:
IN/OUT count publish QoS as int

setCountPublishQoS

public void setCountPublishQoS(int countPublishQoS)
Sets IN/OUT count publish QoS.

Parameters:
countPublishQoS - - IN/OUT count publish QoS as int

isGpsLoggingEnabled

public boolean isGpsLoggingEnabled()
Reports if GPS logging is enabled.

Returns:
boolean

setGpsLoggingEnabled

public void setGpsLoggingEnabled(boolean gpsLoggingEnabled)
Sets 'gpsLoggingEnabled' flag.

Parameters:
gpsLoggingEnabled - - GPS logging enabled flag as boolean

isGpsLoggingWhenStationary

public boolean isGpsLoggingWhenStationary()
Reports if GPS information is logged when vehicle is not moving.

Returns:
boolean

getGpsLoggingStationaryThreshold

public int getGpsLoggingStationaryThreshold()
Reports GPS stationary threshold value.

Returns:
GPS stationary threshold as int

setGpsLoggingStationaryThreshold

public void setGpsLoggingStationaryThreshold(int gpsLoggingStationaryThreshold)
Sets GPS stationary threshold value.

Parameters:
gpsLoggingStationaryThreshold - - GPS stationary threshold as int

setGpsLoggingWhenStationary

public void setGpsLoggingWhenStationary(boolean gpsLoggingWhenStationary)
Sets the 'gpsLoggingWhenStationary' flag.

Parameters:
gpsLoggingWhenStationary - - 'gpsLoggingWhenStationary' flag as boolean

getGpsLoggingPath

public String getGpsLoggingPath()
Reports GPS logging path.

Returns:
GPS logging path as String

setGpsLoggingPath

public void setGpsLoggingPath(String gpsLoggingPath)
Sets GPS logging path.

Parameters:
gpsLoggingPath - GPS logging path as String

isGpsLoggingExpirationEnabled

public boolean isGpsLoggingExpirationEnabled()
Reports if GPS logging expiration mechanism is turned on.

Returns:
boolean

setGpsLoggingExpirationEnabled

public void setGpsLoggingExpirationEnabled(boolean gpsLoggingExpirationEnabled)
Sets 'GpsLoggingExpirationEnabled' flag.

Parameters:
gpsLoggingExpirationEnabled - - 'GpsLoggingExpirationEnabled' flag as boolean

getGpsLoggingExpirationTime

public int getGpsLoggingExpirationTime()
Reports GPS logging expiration time in days.

Returns:
GPS logging expiration time as int

setGpsLoggingExpirationTime

public void setGpsLoggingExpirationTime(int gpsLoggingExpirationTime)
Sets GPS logging expiration time in days.

Parameters:
gpsLoggingExp - - GPS logging expiration time as int

isGpsPublishEnabled

public boolean isGpsPublishEnabled()
Reports if GPS publishing is enabled.

Returns:
boolean

setGpsPublishEnabled

public void setGpsPublishEnabled(boolean gpsPublishEnabled)
Sets 'gpsPublishEnabled' flag.

Parameters:
gpsPublishEnabled - - 'gpsPublishEnabled' flag as boolean

getGpsPublishTopic

public String getGpsPublishTopic()
Reports GPS publish topic.

Returns:
GPS publish topic as String

setGpsPublishTopic

public void setGpsPublishTopic(String gpsPublishTopic)
Sets GPS publish topic.

Parameters:
gpsPublishTopic - - GPS publish topic as String

getGpsPublishQoS

public int getGpsPublishQoS()
Reports GPS publish QoS.

Returns:
GPS publish QoS as int

setGpsPublishQoS

public void setGpsPublishQoS(int gpsPublishQoS)
Sets GPS publish QoS.

Parameters:
gpsPublishQoS - - GPS publish QoS as int

getSpeedUnit

public int getSpeedUnit()
Reports speed unit (MPH or KPH)

Returns:
speed unit as int

getSpeedUnitUpperCase

public String getSpeedUnitUpperCase()
                             throws NumberFormatException
Reports speed unit string in the upper case

Returns:
speed unit as String
Throws:
NumberFormatException

getSpeedUnitLoverCase

public String getSpeedUnitLoverCase()
                             throws NumberFormatException
Reports speed unit string in the lower case

Returns:
speed unit as String
Throws:
NumberFormatException

getSpeedSamplingThreshold

public int getSpeedSamplingThreshold()
Reports speed sampling threshold.

Returns:
speed sampling threshold as int

setSpeedSamplingThreshold

public void setSpeedSamplingThreshold(int speedSamplingThreshold)
Sets speed sampling threshold.

Parameters:
speedSamplingThreshold - - speed sampling threshold as int

getMotionThreshold

public int getMotionThreshold()
Reports vehicle motion threshold.

Returns:
- count reset threshold as int

setMotionThreshold

public void setMotionThreshold(int motionThreshold)
Sets speed 'count reset' threshold.

Parameters:
motionThreshold - - motion threshold as int

setSpeedUnit

public void setSpeedUnit(int speedUnit)
Sets speed unit

Parameters:
speedUnit - - speed unit as int

setSpeedUnit

public void setSpeedUnit(String speedUnit)
                  throws NumberFormatException
Sets speed unit

Parameters:
speedUnit - - speed unit as String
Throws:
NumberFormatException

getSpeedSamplingRateHigh

public int getSpeedSamplingRateHigh()
Reports speed sampling high rate.

Returns:
speed sampling high rate in msec as int

setSpeedSamplingRateHigh

public void setSpeedSamplingRateHigh(int speedSamplingRateHigh)
Sets speed sampling rate.

Parameters:
sppedSamplingRateFast - - speed sampling rate in msec as int

getSpeedSamplingRateLow

public int getSpeedSamplingRateLow()
Reports speed sampling low rate.

Returns:
speed sampling low rate in msec as int

setSpeedSamplingRateLow

public void setSpeedSamplingRateLow(int speedSamplingRateLow)
Sets speed sampling low rate.

Parameters:
sppedSamplingRateLow - - speed sampling low rate in msec as int

getGpsLoggingRate

public int getGpsLoggingRate()
Reports GPS logging rate.

Returns:
GPS logging rate in sec as int

setGpsLoggingRate

public void setGpsLoggingRate(int gpsLoggingRate)
Sets GPS logging rate.

Parameters:
gpsLoggingRate - - GPS logging rate in sec as int

getStorageDeviceName

public String getStorageDeviceName()
Reports name of the storage device.

Returns:
name of the storage device as String

setStorageDeviceName

public void setStorageDeviceName(String storageDeviceName)
Sets name of the storage device.

Parameters:
storageDeviceName - - name of the storage device as String

getStorageDeviceFilesystemType

public String getStorageDeviceFilesystemType()
Reports storage device file system type.

Returns:
storage device file system type as String

setStorageDeviceFilesystemType

public void setStorageDeviceFilesystemType(String storageDeviceFilesystemType)
Sets storage device file system type.

Parameters:
storageDeviceFilesystemType - - storage device file system type as String

getStorageDeviceMountPoint

public String getStorageDeviceMountPoint()
Reports mount point for USB storage device.

Returns:
storage device mount point as String

setStorageDeviceMountPoint

public void setStorageDeviceMountPoint(String storageDeviceMountPoint)
Sets mount point for USB storage device.

Parameters:
storageDeviceMountPoint - - storage device mount point as String

getLogHousekeepingRate

public int getLogHousekeepingRate()
Reports housekeeping rate for IN/OUT count and GPS logs.

Returns:
housekeeping rate for count and GPS logs as int

setLogHousekeepingRate

public void setLogHousekeepingRate(int logHousekeepingRate)
Sets housekeeping rate for IN/OUT count and GPS logs.

Parameters:
logHousekeepingRate - - housekeeping rate for count and GPS logs as int

getVehicleIdFile

public String getVehicleIdFile()
Reports absolute path to VehicleID file.

Returns:
absolute path to VehicleID file as String

setVehicleIdFile

public void setVehicleIdFile(String vehicleIdFile)
Sets absolute path to VehicleID file.

Parameters:
vehicleIdFile - - absolute path to VehicleID file as String

getVehicleMaxOccupancy

public int getVehicleMaxOccupancy()
Reports maximum occupancy of the vehicle.

Returns:
maximum occupancy as int

setVehicleMaxOccupancy

public void setVehicleMaxOccupancy(int vehicleMaxOccupancy)
Sets maximum occupancy of the vehicle.

Parameters:
vehicleMaxOccupancy - - maximum occupancy as int

isErrStatsLoggingEnabled

public boolean isErrStatsLoggingEnabled()
Reports if error statistics logging is enabled.

Returns:
boolean

setErrStatsLoggingEnabled

public void setErrStatsLoggingEnabled(boolean errStatsLoggingEnabled)
Sets 'errStatsLoggingEnabled' flag.

Parameters:
countLoggingEnabled - - error stats logging enabled flag as boolean

getErrStatsLoggingRate

public int getErrStatsLoggingRate()
Reports error statistics logging rate.

Returns:
int

setErrStatsLoggingRate

public void setErrStatsLoggingRate(int errStatsLoggingRate)
Sets the error statistics logging rate.

Parameters:
errStatsLoggingRate - - error statistics logging rate as int

getCountPeriodicPublishRate

public int getCountPeriodicPublishRate()
Periodic Publish Count rate. (SP)

Returns:
int

setCountPeriodicPublishRate

public void setCountPeriodicPublishRate(int periodicCountPublishRate)
Sets the count periodic publishing rate.

Parameters:
periodicCountPublishRate - - count periodic publishing rate as int

getErrStatsLoggingPath

public String getErrStatsLoggingPath()
Reports error statistics logging path.

Returns:
String

setErrStatsLoggingPath

public void setErrStatsLoggingPath(String errStatsLoggingPath)
Sets error statistics logging path.

Parameters:
errStatsLoggingPath - - error statistics logging path as String

isErrStatsPublishEnabled

public boolean isErrStatsPublishEnabled()
Reports if error statistics publishing is enabled.

Returns:
boolean

setErrStatsPublishEnabled

public void setErrStatsPublishEnabled(boolean errStatsPublishEnabled)
Sets 'errStatsPublishEnabled' flag.

Parameters:
errStatsPublishEnabled - - error stats publishing enabled flag as boolean

getErrStatsPublishTopic

public String getErrStatsPublishTopic()
Reports error statistics publish topic.

Returns:
String

setErrStatsPublishTopic

public void setErrStatsPublishTopic(String errStatsPublishTopic)
Sets error statistics publish topic.

Parameters:
errStatsPublishTopic - - error statistics publish topic as String

getErrStatsPublishQoS

public int getErrStatsPublishQoS()
Reports error statistics publish QoS.

Returns:
int

setErrStatsPublishQoS

public void setErrStatsPublishQoS(int errStatsPublishQoS)
Sets error statistics publish QoS.

Parameters:
errStatsPublishQoS - - error statistics publish QoS as int

isNtpSynchronizationEnabled

public boolean isNtpSynchronizationEnabled()
Reports if NTP synchronization is enabled.

Returns:
boolean

setNtpSynchronizationEnabled

public void setNtpSynchronizationEnabled(boolean ntpSynchronizationEnabled)
Sets 'ntpSynchronizationEnabled' flag.

Parameters:
ntpSynchronizationEnabled - - NTP synchronization enabled flag as boolean


Copyright © 2013. All Rights Reserved.