Class DemoSerialPort

    • Method Detail

      • configure

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

        public java.lang.String openPort​(java.lang.String portName,
                                         java.lang.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.
      • throwTurnout

        public void throwTurnout​(int turnout,
                                 boolean throwTurnout)