Class BiDiBSerialPortController

All Implemented Interfaces:
BiDiBPortController, PortAdapter, SerialPortAdapter
Direct Known Subclasses:
BiDiBSimulatorAdapter, SerialDriverAdapter

Abstract base for classes representing a BiDiB communications port
  • Field Details

    • bidib

      protected org.bidib.jbidibc.core.BidibInterface bidib
    • context

      protected org.bidib.jbidibc.messages.helpers.Context context
  • Constructor Details

  • Method Details

    • getSystemConnectionMemo

      Get the SystemConnectionMemo associated with this object.

      This method should only be overridden to ensure that a specific subclass of SystemConnectionMemo is returned. The recommended pattern is: public MySystemConnectionMemo getSystemConnectionMemo() { return (MySystemConnectionMemo) super.getSystemConnectionMemo(); }

      Specified by:
      getSystemConnectionMemo in interface PortAdapter
      Overrides:
      getSystemConnectionMemo in class AbstractPortController
      Returns:
      the currently associated SystemConnectionMemo
    • getRealPortName

      Get the physical port name used with jbidibc
      Specified by:
      getRealPortName in interface BiDiBPortController
      Returns:
      physical port name
    • registerAllListeners

      public abstract void registerAllListeners(org.bidib.jbidibc.messages.ConnectionListener connectionListener, Set<org.bidib.jbidibc.core.NodeListener> nodeListeners, Set<org.bidib.jbidibc.core.MessageListener> messageListeners, Set<org.bidib.jbidibc.core.node.listener.TransferListener> transferListeners)
      Register all Listeners to the specific BiDiB Object. We need this here since the BidibInterface does not provide this method.
      Specified by:
      registerAllListeners in interface BiDiBPortController
      Parameters:
      connectionListener - where to add
      nodeListeners - listeners to add
      messageListeners - listeners to add
      transferListeners - listeners to add
    • getContext

      public org.bidib.jbidibc.messages.helpers.Context getContext()
      Get the Bidib adapter context
      Specified by:
      getContext in interface BiDiBPortController
      Returns:
      Context