Class Z21LocoNetTunnel

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose()  
      (package private) LnStreamPortController getStreamPortController()
      Package protected method to retrieve the stream port controller associated with this tunnel.
      void message​(LocoNetMessage msg)
      Member function that will be invoked by a LocoNet Interface implementation to forward a LocoNet message sent to the layout.
      void message​(Z21Message msg)
      Member function that will be invoked by a z21Interface implementation to forward a z21 message sent to the layout.
      void reply​(Z21Reply msg)
      Member function that will be invoked by a z21Interface implementation to forward a z21 message from the layout.
      void run()  
      (package private) void setStreamPortController​(LnStreamPortController x)
      Package protected method to set the stream port controller associated with this tunnel.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • reply

        public void reply​(Z21Reply msg)
        Member function that will be invoked by a z21Interface implementation to forward a z21 message from the layout.
        Specified by:
        reply in interface Z21Listener
        Parameters:
        msg - The received z21 message. Note that this same object may be presented to multiple users. It should not be modified here.
      • message

        public void message​(Z21Message msg)
        Member function that will be invoked by a z21Interface implementation to forward a z21 message sent to the layout. Normally, this function will do nothing.
        Specified by:
        message in interface Z21Listener
        Parameters:
        msg - The received z21 message. Note that this same object may be presented to multiple users. It should not be modified here.
      • message

        public void message​(LocoNetMessage msg)
        Member function that will be invoked by a LocoNet Interface implementation to forward a LocoNet message sent to the layout. Normally, this function will do nothing.
        Specified by:
        message in interface LocoNetListener
        Parameters:
        msg - The received LocoNet message. Note that this same object may be presented to multiple users. It should not be modified here.