Class DemoSerialPort

All Implemented Interfaces:
PortAdapter, SerialPortAdapter

Demonstration of replacing the serial port with a fake port. This class requires a working LocoNet serial port connection.
  • Constructor Details

  • Method Details

    • configure

      public void configure()
      Description copied from interface: SerialPortAdapter
      Configure all of the other jmrix widgets needed to work with this adapter.
    • openPort

      public String openPort(String portName, String appName)
      Description copied from interface: SerialPortAdapter
      Open a specified port.
      Parameters:
      portName - name tu use for this port
      appName - provided to the underlying OS during startup so that it can show on status displays, etc.
      Returns:
      null indicates OK return, else error message.
    • startDemo

      public void startDemo()
    • throwTurnout

      public void throwTurnout(int turnout, boolean throwTurnout)