Package jmri.jmrix.can.cbus.node
Class CbusNodeStats
java.lang.Object
jmri.jmrix.can.cbus.node.CbusNodeStats
Class to get Node Statistics.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCheck if node has finished loading all available data The first time that all data is loaded, saves new backup.floatGet the amount of Node data known to JMRI in terms of percentage of total data fetch done so far.Get Node Number and nameNode Type Name, if available.booleanintGet the total bytes to transfer all data currently on moduleintGet the total number of bytes to store in a backup fileintGet the number of data bytes outstanding to fetch from a node
-
Constructor Details
-
CbusNodeStats
Create a new CbusNodeStats- Parameters:
node- Node to provide stats for
-
-
Method Details
-
getNodeTypeName
Node Type Name, if available.- Returns:
- If Node Parameters 1 and 3 are set eg. "CANPAN", else potentially a NAME OPC return, else empty string.
-
getNodeNumberName
Get Node Number and name- Returns:
- string eg "1234 UserName", no trailing space.
-
totalNodeFileBytes
Get the total number of bytes to store in a backup file- Returns:
- total number, else 0 if still waiting for a total number of events
-
totalNodeBytes
Get the total bytes to transfer all data currently on module- Returns:
- total number, else -1 if still waiting for a total number of events
-
totalRemainingNodeBytes
Get the number of data bytes outstanding to fetch from a node- Returns:
- total number, else -1 if still waiting for a total number of events
-
floatPercentageRemaining
Get the amount of Node data known to JMRI in terms of percentage of total data fetch done so far.- Returns:
- float min 0 max 1
-
checkNodeFinishedLoad
Check if node has finished loading all available data The first time that all data is loaded, saves new backup. -
hasLoadErrors
-