Class CbusBasicNodeWithMgrsCommandStation

Direct Known Subclasses:
CbusNode

Class to represent a node.
  • Constructor Details

  • Method Details

    • 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 Station

      This 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