Package jmri.jmrix.can.cbus.node
Class CbusNodeFromBackup.DoNothingCanListener
- java.lang.Object
-
- jmri.jmrix.can.cbus.node.CbusNodeCanListener
-
- jmri.jmrix.can.cbus.node.CbusNodeFromBackup.DoNothingCanListener
-
- All Implemented Interfaces:
java.util.EventListener
,AbstractMRListener
,CanListener
- Enclosing class:
- CbusNodeFromBackup
protected static class CbusNodeFromBackup.DoNothingCanListener extends CbusNodeCanListener
Ignores Incoming and Outgoing CAN Frames.
-
-
Field Summary
-
Fields inherited from class jmri.jmrix.can.cbus.node.CbusNodeCanListener
memo
-
-
Constructor Summary
Constructors Constructor Description DoNothingCanListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
message(CanMessage m)
Ignores outgoing CAN Frames.void
reply(CanReply m)
Ignores incoming CAN Frames.-
Methods inherited from class jmri.jmrix.can.cbus.node.CbusNodeCanListener
dispose, setParamsFromSetup
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jmri.jmrix.can.CanListener
addTc, addTc, removeTc, removeTc
-
-
-
-
Constructor Detail
-
DoNothingCanListener
public DoNothingCanListener()
-
-
Method Detail
-
message
public void message(CanMessage m)
Ignores outgoing CAN Frames. Processes certain outgoing CAN Frames.We don't know if it's this JMRI instance or something external teaching the node so we monitor them the same Called when an outgoing message is sent to the CAN Network.
- Specified by:
message
in interfaceCanListener
- Overrides:
message
in classCbusNodeCanListener
- Parameters:
m
- the CanMessage being sent.
-
reply
public void reply(CanReply m)
Ignores incoming CAN Frames. Processes all incoming and certain outgoing CAN Frames Called when an incoming CanFrame is received from the CAN Network.- Specified by:
reply
in interfaceCanListener
- Overrides:
reply
in classCbusNodeCanListener
- Parameters:
m
- the CanReply being received.
-
-