Package jmri.jmrix.can.cbus.node
Class CbusBasicNodeWithManagers
java.lang.Object
jmri.jmrix.can.cbus.node.CbusBasicNode
jmri.jmrix.can.cbus.node.CbusBasicNodeWithManagers
- Direct Known Subclasses:
CbusBasicNodeWithMgrsCommandStation
Class to represent a node.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected intFields inherited from class jmri.jmrix.can.cbus.node.CbusBasicNode
_listeners, _memo, send -
Constructor Summary
ConstructorsConstructorDescriptionCbusBasicNodeWithManagers(CanSystemConnectionMemo connmemo, int nodenumber) Create a new CbusBasicNodeWithManagers -
Method Summary
Modifier and TypeMethodDescriptionvoiddispose()Stops any timers and disconnects from networkfinal CbusNodeCanListenerfinal CbusNodeBackupManagerGet the CbusNodeXml for Node Backup Details and operationsfinal CbusNodeEventManagerfinal CbusNodeNVManagerfinal CbusNodeParameterManagerfinal CbusNodeStatsGet Node Statisticsfinal CbusNodeTimerManagerprotected intprotected intprotected CbusNodeTableDataModelReturns node Usernamefinal voidsetFW(int fwMaj, int fwMin, int fwBuild) Temporarily store Node Firmware version obtained from a CBUS_STAT Responseprotected voidsetManuModule(int manu, int modtype) Temporarily store Node Manufacturer and Module Type obtained from a PNN Responseprotected voidSet the main Node Table ModelvoidsetUserName(String newName) Set Node UserName Updates Node XML FileMethods inherited from class jmri.jmrix.can.cbus.node.CbusBasicNode
addPropertyChangeListener, getMemo, getNodeCanId, getNodeInFLiMMode, getNodeInLearnMode, getNodeInSetupMode, getNodeNumber, notifyPropertyChangeListener, removePropertyChangeListener, setCanId, setCanId, setNodeInFLiMMode, setNodeInLearnMode, setNodeInSetupMode, setNodeNumber
-
Field Details
-
_fwMaj
-
_fwMin
-
_fwBuild
-
-
Constructor Details
-
CbusBasicNodeWithManagers
Create a new CbusBasicNodeWithManagers- Parameters:
connmemo- The CAN Connection to usenodenumber- The Node Number
-
-
Method Details
-
getNewCanListener
-
getCanListener
-
getNodeTimerManager
-
getNodeParamManager
-
getNodeNvManager
-
getNodeEventManager
-
getNodeBackupManager
Get the CbusNodeXml for Node Backup Details and operations- Returns:
- the CbusNodeXml instance for the node
-
getNodeStats
Get Node Statistics- Returns:
- the CbusNodeXml instance for the node
-
setTableModel
Set the main Node Table Model- Parameters:
model- the Node Table Model
-
getTableModel
-
setFW
Temporarily store Node Firmware version obtained from a CBUS_STAT ResponseParameter array is not created until total number of parameters is known. This saves asking the Node for them.
- Parameters:
fwMaj- Major Firmware TypefwMin- Minor Firmware TypefwBuild- Firmware Build Number
-
setManuModule
Temporarily store Node Manufacturer and Module Type obtained from a PNN ResponseParameter array is not created until total number of parameters is known. This saves asking the Node for them.
- Parameters:
manu- Manufacturermodtype- Module Type
-
getPnnManufacturer
-
getPnnModule
-
getUserName
Returns node Username- Returns:
- eg. "John Smith"
-
setUserName
Set Node UserName Updates Node XML File- Parameters:
newName- UserName of the node
-
dispose
Stops any timers and disconnects from network
-