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
Class to represent a node.
-
Field Summary
Fields inherited from class jmri.jmrix.can.cbus.node.CbusBasicNodeWithManagers
_fwBuild, _fwMaj, _fwMinFields inherited from class jmri.jmrix.can.cbus.node.CbusBasicNode
_listeners, _memo, send -
Constructor Summary
ConstructorsConstructorDescriptionCbusBasicNodeWithMgrsCommandStation(CanSystemConnectionMemo connmemo, int nodenumber) Create a new CbusBasicNode with Managers and Command Station -
Method Summary
Modifier and TypeMethodDescriptionintgetCsNum()Get Command station number.booleanGet if Command Station Flag Reporting is accurate.voidsetCsFlags(int flags) Set the flags reported by a Command StationvoidsetCsNum(int csnum) Set a Command Station Number for this NodevoidsetStatResponseFlagsAccurate(boolean accurate) Set Disable Command Station Flag ReportingMethods 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, setUserNameMethods 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 Details
-
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 Details
-
setCsNum
Set a Command Station Number for this Node- Parameters:
csnum- Command station Number, normally 0 if using a single command station
-
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
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
Set Disable Command Station Flag Reporting- Parameters:
accurate- set false to ignore the Command Station Flags
-
getStatResponseFlagsAccurate
Get if Command Station Flag Reporting is accurate. Defaults to false- Returns:
- true if accurate, else false
-