Class NetworkDriverAdapter

All Implemented Interfaces:
NetworkPortAdapter, PortAdapter

Implements SerialPortAdapter for the NCE system network connection.

This connects an NCE command station via a telnet connection. Normally controlled by the NetworkDriverFrame class.

  • Constructor Details

  • Method Details

    • configure

      public void configure()
      set up all of the other objects to operate with an NCE command station connected to this port
    • resetupConnection

      protected void resetupConnection()
      Called once a reconnect attempt succeeds. The traffic controller's transmit/receive threads were torn down when the connection was lost (AbstractMRTrafficController.recovery() calls disconnectPort() before attempting reconnection), so they need to be started again against the fresh socket streams -- connectPort() does both, the same call configure() made for the original connection.
      Overrides:
      resetupConnection in class AbstractNetworkPortController