Class DCCppPredefinedMeters

  • All Implemented Interfaces:
    java.util.EventListener, AbstractMRListener, DCCppListener

    public class DCCppPredefinedMeters
    extends java.lang.Object
    implements DCCppListener
    Provide access to current and voltage meters from the DCC++ Base Station Creates meters based on values sent from command station User can create new meters in the sketch.
    • Method Detail

      • 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.
      • 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.