jmri.jmrix.loconet
Class LnMessageManager

java.lang.Object
  extended by jmri.jmrix.loconet.LnMessageManager
All Implemented Interfaces:
EventListener, LocoNetListener

public class LnMessageManager
extends 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.

Author:
Bob Jacobsen Copyright (C) 2001

Constructor Summary
LnMessageManager(LnTrafficController tc)
           
 
Method Summary
 void dispose()
          Free resources when no longer used
 void message(LocoNetMessage m)
          Listen for status changes from LocoNet This doesn't do anything now.
 void sendMessage(int id, String text)
           
 void sendMessage(String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LnMessageManager

public LnMessageManager(LnTrafficController tc)
Method Detail

sendMessage

public void sendMessage(String text)

sendMessage

public void sendMessage(int id,
                        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.


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads