Class PureJavaCommSerialBidib

  • All Implemented Interfaces:
    org.bidib.jbidibc.core.BidibInterface

    public final class PureJavaCommSerialBidib
    extends AbstractSerialBidib
    This is the default bidib implementation. It creates and initializes the MessageReceiver and the NodeFactory that is used in the system.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      static org.bidib.jbidibc.core.BidibInterface createInstance​(org.bidib.jbidibc.messages.helpers.Context context)
      Get a new initialized instance of PureJavaCommSerialBidib.
      List<String> getPortIdentifiers()  
      void initialize​(org.bidib.jbidibc.messages.helpers.Context context)  
      protected void internalOpen​(String portName, org.bidib.jbidibc.messages.helpers.Context context)  
      protected boolean isImplAvaiable()  
      boolean isOpened()  
      void send​(byte[] data)  
      • Methods inherited from class org.bidib.jbidibc.core.AbstractBidib

        addRawMessageListener, attach, createRequestFactory, detach, findNode, fireConnectionClosed, fireConnectionOpened, fireCtsChanged, fireNotifyReceivedRawMessage, fireNotifySendRawMessage, fireReceiveStarted, fireReceiveStopped, fireSendStarted, fireSendStopped, getAccessoryNode, getBidibMessageProcessor, getBoosterNode, getCommandStationNode, getConnectionListener, getFirmwarePacketTimeout, getMessageReceiver, getNode, getNodeRegistry, getRequestFactory, getResponseTimeout, getRootNode, initializeConnector, isValidCoreNode, registerListeners, releaseRootNode, releaseSubNodesOfRootNode, removeRawMessageListener, setConnectionListener, setFirmwarePacketTimeout, setIgnoreWaitTimeout, setResponseTimeout, signalUserAction, terminateAllNodes
    • Method Detail

      • createInstance

        public static org.bidib.jbidibc.core.BidibInterface createInstance​(org.bidib.jbidibc.messages.helpers.Context context)
        Get a new initialized instance of PureJavaCommSerialBidib.
        Returns:
        the instance of PureJavaCommSerialBidib
      • initialize

        public void initialize​(org.bidib.jbidibc.messages.helpers.Context context)
        Overrides:
        initialize in class org.bidib.jbidibc.core.AbstractBidib
      • getPortIdentifiers

        public List<String> getPortIdentifiers()
      • close

        public void close()
        Specified by:
        close in interface org.bidib.jbidibc.core.BidibInterface
        Overrides:
        close in class org.bidib.jbidibc.core.AbstractBidib
      • isOpened

        public boolean isOpened()
        Specified by:
        isOpened in interface org.bidib.jbidibc.core.BidibInterface
        Specified by:
        isOpened in class AbstractSerialBidib
      • send

        public void send​(byte[] data)