Class CbusNodeCanListener

java.lang.Object
jmri.jmrix.can.cbus.node.CbusNodeCanListener
All Implemented Interfaces:
EventListener, AbstractMRListener, CanListener
Direct Known Subclasses:
CbusNodeFromBackup.DoNothingCanListener, CbusSimCanListener

public class CbusNodeCanListener extends Object implements CanListener
Class to represent a Processing of CAN Frames for a CbusNode.
  • Field Details

  • Constructor Details

  • Method Details

    • message

      public void message(CanMessage m)
      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 interface CanListener
      Parameters:
      m - the CanMessage being sent.
    • reply

      public void reply(CanReply m)
      Processes all incoming and certain outgoing CAN Frames Called when an incoming CanFrame is received from the CAN Network.
      Specified by:
      reply in interface CanListener
      Parameters:
      m - the CanReply being received.
    • setParamsFromSetup

      public void setParamsFromSetup(int[] setupParams)
      Temporarily store Node Parameters obtained from a Node requesting a Node Number

      Parameter array is not created until total number of parameters is known. This saves asking the Node for them.

      Parameters:
      setupParams - an int array in order of final 7 bytes of the CBUS_PARAMS node response
    • dispose

      public void dispose()
      Disconnects from network