Interface LocoNetListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
AbstractAlmImplementation, AbstractBoardProgPanel, BDL16Panel, ClientRxHandler, CmdStnConfigPane, CsOpSwAccess, Dcs240UsbModeSelectPane, Dcs52UsbModeSelectPane, Ds64TabbedPanel, DuplexGroupScanPanel, HexFileFrame, LNCPSignalMast, LncvDevicesManager, LncvProgPane, LnDplxGrpInfoImpl, LnIPLImplementation, LnMessageBuffer, LnMessageClient, LnMessageManager, LnOpsModeProgrammer, LnPowerManager, LnPr2PowerManager, LnPredefinedMeters, LnReporterManager, LnSensorManager, LnSensorManager, LnStringIOManager, LnTrafficRouter, LnTurnoutManager, LocoGenPanel, LocoIdPanel, LocoIOData, LocoMonPane, LocoStatsFunc, PM4Panel, Pr3SelectPane, Pr4SelectPane, SE8cSignalHead, SE8Panel, SlotManager, UhlenbrockSlotManager, Z21LocoNetTunnel, Z21XNetOpsModeProgrammer

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.

  • Method Summary

    Modifier and Type Method Description
    void message​(LocoNetMessage msg)
    Member function that will be invoked by a LocoNetInterface implementation to forward a LocoNet message from the layout.
  • Method Details

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