Package jmri.jmrix.can.cbus.node
Class CbusBasicNodeWithMgrsCommandStation
- java.lang.Object
-
- jmri.jmrix.can.cbus.node.CbusBasicNode
-
- jmri.jmrix.can.cbus.node.CbusBasicNodeWithManagers
-
- jmri.jmrix.can.cbus.node.CbusBasicNodeWithMgrsCommandStation
-
- Direct Known Subclasses:
CbusNode
public class CbusBasicNodeWithMgrsCommandStation extends CbusBasicNodeWithManagers
Class to represent a node.
-
-
Field Summary
-
Fields inherited from class jmri.jmrix.can.cbus.node.CbusBasicNodeWithManagers
_fwBuild, _fwMaj, _fwMin
-
Fields inherited from class jmri.jmrix.can.cbus.node.CbusBasicNode
_listeners, _memo, send
-
-
Constructor Summary
Constructors Constructor Description CbusBasicNodeWithMgrsCommandStation(CanSystemConnectionMemo connmemo, int nodenumber)
Create a new CbusBasicNode with Managers and Command Station
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getCsNum()
Get Command station number.boolean
getStatResponseFlagsAccurate()
Get if Command Station Flag Reporting is accurate.void
setCsFlags(int flags)
Set the flags reported by a Command Stationvoid
setCsNum(int csnum)
Set a Command Station Number for this Nodevoid
setStatResponseFlagsAccurate(boolean accurate)
Set Disable Command Station Flag Reporting-
Methods inherited from class jmri.jmrix.can.cbus.node.CbusBasicNodeWithManagers
dispose, getCanListener, getNewCanListener, getNodeBackupManager, getNodeEventManager, getNodeNvManager, getNodeParamManager, getNodeStats, getNodeTimerManager, getPnnManufacturer, getPnnModule, getTableModel, getUserName, setFW, setManuModule, setTableModel, setUserName
-
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
-
CbusBasicNodeWithMgrsCommandStation
public CbusBasicNodeWithMgrsCommandStation(@CheckForNull CanSystemConnectionMemo connmemo, int nodenumber)
Create a new CbusBasicNode with Managers and Command Station- Parameters:
connmemo
- The CAN Connection to usenodenumber
- The Node Number
-
-
Method Detail
-
setCsNum
public void setCsNum(int csnum)
Set a Command Station Number for this Node- Parameters:
csnum
- Command station Number, normally 0 if using a single command station
-
getCsNum
public int getCsNum()
Get Command station number.0 is normally default for a command station
- Returns:
- -1 if node is NOT a Command Station, else CS Number.
-
setCsFlags
public void setCsFlags(int flags)
Set the flags reported by a Command StationThis will update Track Power On / Off, etc. as per the values passed. Currently unused by CANCMD v4 which sets the setStatResponseFlagsAccurate(false)
- Parameters:
flags
- the int value of the Command Station flags
-
setStatResponseFlagsAccurate
public void setStatResponseFlagsAccurate(boolean accurate)
Set Disable Command Station Flag Reporting- Parameters:
accurate
- set false to ignore the Command Station Flags
-
getStatResponseFlagsAccurate
public boolean getStatResponseFlagsAccurate()
Get if Command Station Flag Reporting is accurate. Defaults to false- Returns:
- true if accurate, else false
-
-