Class BiDiBNetworkPortController

    • Field Detail

      • bidib

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

        protected org.bidib.jbidibc.messages.helpers.Context context
    • Method Detail

      • connect

        public abstract void connect​(java.lang.String host,
                                     int port)
                              throws java.io.IOException
        Description copied from interface: NetworkPortAdapter
        Connects to the end device using a hostname/ip address and port
        Specified by:
        connect in interface NetworkPortAdapter
        Overrides:
        connect in class AbstractNetworkPortController
        Parameters:
        host - hostname / ip address.
        port - network port.
        Throws:
        java.io.IOException - on connection error.
      • registerAllListeners

        public abstract void registerAllListeners​(org.bidib.jbidibc.messages.ConnectionListener connectionListener,
                                                  java.util.Set<org.bidib.jbidibc.core.NodeListener> nodeListeners,
                                                  java.util.Set<org.bidib.jbidibc.core.MessageListener> messageListeners,
                                                  java.util.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 - add to this
        nodeListeners - listeners to add
        messageListeners - listeners to add
        transferListeners - listeners to add