Package jmri.jmrix.can
Interface CanListener
-
- All Superinterfaces:
AbstractMRListener
,java.util.EventListener
- All Known Implementing Classes:
CbusAllocateNodeNumber
,CbusBootloaderPane
,CbusClockControl
,CbusConsoleDecodeOptionsPane
,CbusDccOpsModeProgrammer
,CbusDccProgrammer
,CbusDummyCS
,CbusDummyNodeCanListener
,CbusEventRequestDataModel
,CbusEventResponder
,CbusEventTableDataModel
,CbusHubPane
,CbusLight
,CbusNodeCanListener
,CbusNodeFromBackup.DoNothingCanListener
,CbusNodeTableDataModel
,CbusNodeTrickleFetch
,CbusPowerManager
,CbusPredefinedMeters
,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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
addTc(CanSystemConnectionMemo memoToAdd)
Add a Traffic Controller Listener.default void
addTc(TrafficController tcToAdd)
Add a Traffic Controller Listener.void
message(CanMessage m)
Called when an outgoing message is sent to the CAN Network.default void
removeTc(CanSystemConnectionMemo memoToRemove)
Remove a Traffic Controller Listener.default void
removeTc(TrafficController tcToRemove)
Remove a Traffic Controller Listener.void
reply(CanReply m)
Called when an incoming CanFrame is received from the CAN Network.
-
-
-
Method Detail
-
message
void message(CanMessage m)
Called when an outgoing message is sent to the CAN Network.- Parameters:
m
- the CanMessage being sent.
-
reply
void reply(CanReply m)
Called when an incoming CanFrame is received from the CAN Network.- Parameters:
m
- the CanReply being received.
-
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.
-
-