jmri.jmrix.loconet
Interface LocoNetListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
AbstractAlmImplementation, AbstractBoardProgFrame, AlmBrowserFrame, AlmImplementation, BDL16Frame, ClientRxHandler, CmdStnConfigFrame, DS64Frame, LnMessageBuffer, LnMessageClient, LnMessageManager, LnPowerManager, LnPr2PowerManager, LnReporter, LnReporterManager, LnSensor, LnSensorManager, LnTrafficRouter, LnTurnout, LnTurnoutManager, LocoGenFrame, LocoIdFrame, LocoIOData, LocoMonFrame, LocoStatsFrame, PM4Frame, Pr3SelectPane, Se8AlmImplementation, SE8cSignalHead, SE8Frame, SecurityElement, SlotManager

public interface LocoNetListener
extends EventListener

LocoNetListener provides the call-back interface for notification when a new LocoNet message arrives from the layout.

Note that the LocoNetListener implementation cannot assume that messages will be returned in any particular thread. We may eventually revisit this, as returning messages in the Swing GUI thread would result in some simplification of client code. We've not done that yet because we're not sure that deadlocks can be avoided in that case.

Author:
Bob Jacobsen Copyright (C) 2001

Method Summary
 void message(LocoNetMessage msg)
          Member function that will be invoked by a LocoNetInterface implementation to forward a LocoNet message from the layout.
 

Method Detail

message

void message(LocoNetMessage msg)
Member function that will be invoked by a LocoNetInterface implementation to forward a LocoNet message from the layout.

Parameters:
msg - The received LocoNet message. Note that this same object may be presented to multiple users. It should not be modified here.


Copyright © 1997 - 2009 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