Class CMRInetMetricsData
java.lang.Object
jmri.jmrix.cmri.serial.cmrinetmetrics.CMRInetMetricsData
CMRInet metric data variables and access methods.
The metric data is not persistent between runs.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic intstatic intCMRInet packet typesstatic intstatic intstatic intstatic intstatic intstatic intstatic intstatic intint[]static intstatic final String[]Data array for network data countsint[]static final intstatic final String[]Data items for network error countsstatic intstatic intstatic final intstatic final intstatic final intstatic final intstatic final intintintintlongVariables used for poll/response measurements -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidCompute the poll/reply interval in milliseconds Average over pollCnt polls to keep the Tablemodel update rate lowintgetMetricDataValue(int metricName) Get the metric value.intgetMetricErrorCount(int metricName) intgetMetricErrValue(int metricName) Get the error count.voidincMetricDataValue(int metricName) voidincMetricErrValue(int metricName) voidsetMetricDataValue(int metricName, int value) voidsetMetricErrorValue(int metricName, int value) voidsetMetricErrValue(int metricName, int value) voidMethods to manage the poll/response metric Start the poll timer when a poll message is seenvoidzeroMetricDataValue(int metricName) voidzeroMetricErrValue(int metricName)
-
Field Details
-
_DGACK
CMRInet packet types -
_CODELINE
-
_DGREAD
-
_EOT
-
_INIT
-
_POLL
-
_QUERY
-
_READ
-
_TRANSMIT
-
_DGWRITE
-
CMRInetMetricErrName
Data items for network error counts -
CMRInetMetricTimeout
- See Also:
-
CMRInetMetricTruncRecv
- See Also:
-
CMRInetMetricTruncReply
- See Also:
-
CMRInetMetricUnrecResponse
- See Also:
-
CMRInetMetricUnrecCommand
- See Also:
-
CMRInetMetricErrLAST
- See Also:
-
CMRInetMetricErrCount
-
CMRInetMetricDataName
Data array for network data counts -
CMRInetMetricPollResponse
-
CMRInetMetricInitMsgs
-
CMRInetMetricDataLAST
-
CMRInetMetricDataCount
-
pollTicks
Variables used for poll/response measurements -
pollIntervalMS
-
pollCnt
-
pollCntMax
-
-
Constructor Details
-
CMRInetMetricsData
public CMRInetMetricsData()
-
-
Method Details
-
getMetricErrValue
Get the error count.- Parameters:
metricName- metric index.- Returns:
- error count.
-
setMetricErrValue
-
incMetricErrValue
-
zeroMetricErrValue
-
clearAllErrMetrics
-
getMetricErrorCount
-
getMetricDataValue
Get the metric value.- Parameters:
metricName- index.- Returns:
- data value.
-
setMetricDataValue
-
incMetricDataValue
-
zeroMetricDataValue
-
setMetricErrorValue
-
clearAllDataMetrics
-
startPollIntervalTimer
Methods to manage the poll/response metric Start the poll timer when a poll message is seen -
computePollInterval
Compute the poll/reply interval in milliseconds Average over pollCnt polls to keep the Tablemodel update rate low
-