Class CbusPredefinedMeters

java.lang.Object
jmri.jmrix.can.cbus.CbusPredefinedMeters
All Implemented Interfaces:
EventListener, Disposable, AbstractMRListener, CanListener

public class CbusPredefinedMeters extends Object implements CanListener, Disposable
Provide access to current meter from a MERG CBUS Command Station
  • Field Details

  • Constructor Details

  • Method Details

    • reply

      public void reply(CanReply r)
      Listen for CAN Frames sent by Command Station 0 Typically sent every 4-5 seconds. Called when an incoming CanFrame is received from the CAN Network.
      Specified by:
      reply in interface CanListener
      Parameters:
      r - the CanReply being received.
    • message

      public void message(CanMessage m)
      Outgoing CAN Frames ignored Called when an outgoing message is sent to the CAN Network.
      Specified by:
      message in interface CanListener
      Parameters:
      m - the CanMessage being sent.
    • dispose

      public void dispose()
      Description copied from interface: Disposable
      Called when disposing of a disposable.

      Note there are no assurances this method will not be called multiple times against a single instance of this Disposable. It is the responsibility of this Disposable to protect itself and the application from ensuring that calling this method multiple times has no unwanted side effects.

      Specified by:
      dispose in interface Disposable