Interface DCCppPortController

All Superinterfaces:
PortAdapter
All Known Implementing Classes:
DCCppAdapter, DCCppEthernetAdapter, DCCppNetworkPortController, DCCppSerialPortController, DCCppSimulatorAdapter, DCCppSimulatorPortController, DCCppStreamPortController, DCCppTcpDriverAdapter

public interface DCCppPortController
extends PortAdapter
interface for DCCppPortController objects.

  • Method Details

    • status

      boolean status()
      Check that this object is ready to operate. This is a question of configuration, not transient hardware status.
      Specified by:
      status in interface PortAdapter
      Returns:
      true if OK, at least as far as known
    • okToSend

      boolean okToSend()
      Can the port accept additional characters? This might go false for short intervals, but it might also stick off if something goes wrong.
      Returns:
      true if OK to send, else false.
    • setOutputBufferEmpty

      void setOutputBufferEmpty​(boolean s)
      We need a way to say if the output buffer is empty or not
      Parameters:
      s - true to set buffer empty, else false.