Package jmri.jmrix.loconet
Class LnMessageManager
- java.lang.Object
-
- jmri.jmrix.loconet.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.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) LnTrafficController
tc
-
Constructor Summary
Constructors Constructor Description LnMessageManager(LnTrafficController tc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Free resources when no longer used.void
message(LocoNetMessage m)
Listen for status changes from LocoNet.void
sendMessage(int id, java.lang.String text)
void
sendMessage(java.lang.String text)
-
-
-
Constructor Detail
-
LnMessageManager
public LnMessageManager(LnTrafficController tc)
-
-
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 interfaceLocoNetListener
- Parameters:
m
- The received LocoNet message. Note that this same object may be presented to multiple users. It should not be modified here.
-
-