Interface CanListener

All Superinterfaces:
AbstractMRListener, EventListener
All Known Implementing Classes:
CbusAllocateNodeNumber, CbusBootloaderPane, CbusClockControl, CbusConsoleDecodeOptionsPane, CbusDccOpsModeProgrammer, CbusDccProgrammer, CbusDummyCS, CbusDummyNodeCanListener, CbusEventRequestDataModel, CbusEventResponder, CbusEventTableDataModel, CbusLight, CbusNodeCanListener, CbusNodeFromBackup.DoNothingCanListener, CbusNodeFromFcuTableDataModel, CbusNodeTableDataModel, CbusNodeTrickleFetch, CbusPowerManager, CbusPredefinedMeters, CbusProgrammer, CbusReporter, CbusSensor, CbusSimCanListener, CbusSlotMonitorDataModel, CbusThrottleManager, CbusTurnout, ConfigToolPane, HubPane, MonitorPane, MonitorPane, NetworkTreePane, OlcbSensorManager, OpenLcbCanSendPane, SprogCbusModeSwitcherFrame, SprogCbusSimpleModeSwitcherFrame, SprogCbusSprog3PlusModeSwitcherFrame

public interface CanListener
extends AbstractMRListener
Defines the interface for listening to CAN messages
  • Method Details

    • message

      void message​(CanMessage m)
    • reply

      void reply​(CanReply m)
    • addTc

      default void addTc​(TrafficController tcToAdd)
      Add a Traffic Controller Listener. Adding here, rather than in a class construction header avoids Leaking Constructor errors.
      Parameters:
      tcToAdd - The system memo CAN Traffic Controller
    • addTc

      default void addTc​(CanSystemConnectionMemo memoToAdd)
      Add a Traffic Controller Listener. Adding here, rather than in a class construction header avoids Leaking Constructor errors.
      Parameters:
      memoToAdd - The CAN system Connection
    • removeTc

      default void removeTc​(TrafficController tcToRemove)
      Remove a Traffic Controller Listener.
      Parameters:
      tcToRemove - The system memo CAN Traffic Controller
    • removeTc

      default void removeTc​(CanSystemConnectionMemo memoToRemove)
      Remove a Traffic Controller Listener.
      Parameters:
      memoToRemove - The CAN system Connection