Class DCCppPredefinedMeters

java.lang.Object
jmri.jmrix.dccpp.DCCppPredefinedMeters
All Implemented Interfaces:
EventListener, AbstractMRListener, DCCppListener

public class DCCppPredefinedMeters extends Object implements DCCppListener
Provide access to current meters from the DCC++ Base Station Creates meters based on values sent from command station
  • Constructor Details

  • Method Details

    • setDCCppTrafficController

    • message

      public void message(DCCppReply r)
      Description copied from interface: DCCppListener
      Member function that will be invoked by a DCCppInterface implementation to forward a DCC++ message from the layout.
      Specified by:
      message in interface DCCppListener
      Parameters:
      r - The received DCC++ message. Note that this same object may be presented to multiple users. It should not be modified here.
    • message

      public void message(DCCppMessage m)
      Description copied from interface: DCCppListener
      Member function that will be invoked by a DCCppInterface implementation to forward a DCC++ message sent to the layout. Normally, this function will do nothing.
      Specified by:
      message in interface DCCppListener
      Parameters:
      m - The received DCC++ message. Note that this same object may be presented to multiple users. It should not be modified here.
    • dispose

      public void dispose()
    • notifyTimeout

      public void notifyTimeout(DCCppMessage msg)
      Description copied from interface: DCCppListener
      Member function invoked by an DCCppInterface implementation to notify a sender that an outgoing message timed out and was dropped from the queue.
      Specified by:
      notifyTimeout in interface DCCppListener
      Parameters:
      msg - the message that timed out.