Class LnMessageManager

  • All Implemented Interfaces:
    java.util.EventListener, LocoNetListener

    public class LnMessageManager
    extends java.lang.Object
    implements LocoNetListener
    Provide access to throttle-messaging on a LocoNet.

    Some of the message formats used in this class are Copyright Digitrax, Inc. and used with permission as part of the JMRI project. That permission does not extend to uses in other software products. If you wish to use this code, algorithm or these message formats outside of JMRI, please contact Digitrax Inc for separate permission.

    • Method Detail

      • sendMessage

        public void sendMessage​(java.lang.String text)
      • sendMessage

        public void sendMessage​(int id,
                                java.lang.String text)
      • dispose

        public void dispose()
        Free resources when no longer used.
      • message

        public void message​(LocoNetMessage m)
        Listen for status changes from LocoNet.

        This doesn't do anything now. Eventually, it will handle the user response.

        Specified by:
        message in interface LocoNetListener
        Parameters:
        m - The received LocoNet message. Note that this same object may be presented to multiple users. It should not be modified here.