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
public class CbusBasicNodeWithManagers extends CbusBasicNode
Class to represent a node.
-
-
Field Summary
Fields Modifier and Type Field Description protected int_fwBuildprotected int_fwMajprotected int_fwMin-
Fields inherited from class jmri.jmrix.can.cbus.node.CbusBasicNode
_listeners, _memo, send
-
-
Constructor Summary
Constructors Constructor Description CbusBasicNodeWithManagers(CanSystemConnectionMemo connmemo, int nodenumber)Create a new CbusBasicNodeWithManagers
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddispose()Stops any timers and disconnects from networkCbusNodeCanListenergetCanListener()CbusNodeCanListenergetNewCanListener()CbusNodeBackupManagergetNodeBackupManager()Get the CbusNodeXml for Node Backup Details and operationsCbusNodeEventManagergetNodeEventManager()CbusNodeNVManagergetNodeNvManager()CbusNodeParameterManagergetNodeParamManager()CbusNodeStatsgetNodeStats()Get Node StatisticsCbusNodeTimerManagergetNodeTimerManager()protected intgetPnnManufacturer()protected intgetPnnModule()protected CbusNodeTableDataModelgetTableModel()java.lang.StringgetUserName()Returns node UsernamevoidsetFW(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 voidsetTableModel(CbusNodeTableDataModel model)Set the main Node Table ModelvoidsetUserName(java.lang.String newName)Set Node UserName Updates Node XML File-
Methods inherited from class jmri.jmrix.can.cbus.node.CbusBasicNode
addPropertyChangeListener, getMemo, getNodeCanId, getNodeInFLiMMode, getNodeInLearnMode, getNodeInSetupMode, getNodeNumber, notifyPropertyChangeListener, removePropertyChangeListener, setCanId, setCanId, setNodeInFLiMMode, setNodeInLearnMode, setNodeInSetupMode, setNodeNumber
-
-
-
-
Constructor Detail
-
CbusBasicNodeWithManagers
public CbusBasicNodeWithManagers(@CheckForNull CanSystemConnectionMemo connmemo, int nodenumber)
Create a new CbusBasicNodeWithManagers- Parameters:
connmemo- The CAN Connection to usenodenumber- The Node Number
-
-
Method Detail
-
getNewCanListener
@Nonnull public CbusNodeCanListener getNewCanListener()
-
getCanListener
@Nonnull public final CbusNodeCanListener getCanListener()
-
getNodeTimerManager
@Nonnull public final CbusNodeTimerManager getNodeTimerManager()
-
getNodeParamManager
@Nonnull public final CbusNodeParameterManager getNodeParamManager()
-
getNodeNvManager
@Nonnull public final CbusNodeNVManager getNodeNvManager()
-
getNodeEventManager
@Nonnull public final CbusNodeEventManager getNodeEventManager()
-
getNodeBackupManager
@Nonnull public final CbusNodeBackupManager getNodeBackupManager()
Get the CbusNodeXml for Node Backup Details and operations- Returns:
- the CbusNodeXml instance for the node
-
getNodeStats
@Nonnull public final CbusNodeStats getNodeStats()
Get Node Statistics- Returns:
- the CbusNodeXml instance for the node
-
setTableModel
protected void setTableModel(CbusNodeTableDataModel model)
Set the main Node Table Model- Parameters:
model- the Node Table Model
-
getTableModel
protected CbusNodeTableDataModel getTableModel()
-
setFW
public final void setFW(int fwMaj, int fwMin, int fwBuild)
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
protected void setManuModule(int manu, int modtype)
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
protected int getPnnManufacturer()
-
getPnnModule
protected int getPnnModule()
-
getUserName
public java.lang.String getUserName()
Returns node Username- Returns:
- eg. "John Smith"
-
setUserName
public void setUserName(java.lang.String newName)
Set Node UserName Updates Node XML File- Parameters:
newName- UserName of the node
-
dispose
@OverridingMethodsMustInvokeSuper public void dispose()
Stops any timers and disconnects from network
-
-