public abstract class AbstractSerialBidib extends AbstractBidib
| Modifier and Type | Field and Description |
|---|---|
protected Semaphore |
portSemaphore |
protected Object |
receiveLock |
protected String |
requestedPortName |
serviceWorkerDEFAULT_TIMEOUT| Constructor and Description |
|---|
AbstractSerialBidib() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanupAfterClose(MessageReceiver bidibMessageProcessor) |
protected int |
contactInterface()
Contact the interface and get the magic
|
protected MessageReceiver |
createMessageReceiver(NodeRegistry nodeRegistry,
RawMessageListener rawMessageListener) |
protected abstract void |
internalOpen(String portName,
Context context) |
protected abstract boolean |
isImplAvaiable() |
abstract boolean |
isOpened() |
protected void |
notifyStatusKey(String messageKey) |
void |
open(String portName,
ConnectionListener connectionListener,
Set<NodeListener> nodeListeners,
Set<MessageListener> messageListeners,
Set<TransferListener> transferListeners,
Context context) |
protected void |
startReceiverAndQueues(MessageReceiver messageProcessor,
Context context) |
protected void |
stopReceiverAndQueues(MessageReceiver serialMessageReceiver) |
addRawMessageListener, attach, createRequestFactory, detach, findNode, fireConnectionClosed, fireConnectionOpened, fireCtsChanged, fireNotifyReceivedRawMessage, fireNotifySendRawMessage, fireReceiveStarted, fireReceiveStopped, fireSendStarted, fireSendStopped, getAccessoryNode, getBidibMessageProcessor, getBoosterNode, getCommandStationNode, getConnectionListener, getFirmwarePacketTimeout, getMessageReceiver, getNode, getNodeRegistry, getResponseTimeout, getRootNode, initialize, initializeConnector, isValidCoreNode, registerListeners, releaseRootNode, removeRawMessageListener, setConnectionListener, setFirmwarePacketTimeout, setIgnoreWaitTimeout, setResponseTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getPortIdentifiers, sendprotected Semaphore portSemaphore
protected String requestedPortName
protected Object receiveLock
protected MessageReceiver createMessageReceiver(NodeRegistry nodeRegistry, RawMessageListener rawMessageListener)
createMessageReceiver in class AbstractBidibprotected void stopReceiverAndQueues(MessageReceiver serialMessageReceiver)
protected void startReceiverAndQueues(MessageReceiver messageProcessor, Context context)
protected void cleanupAfterClose(MessageReceiver bidibMessageProcessor)
cleanupAfterClose in class AbstractBidibprotected abstract boolean isImplAvaiable()
protected abstract void internalOpen(String portName, Context context) throws Exception
Exceptionprotected void notifyStatusKey(String messageKey)
messageKey - the message key to notifypublic void open(String portName, ConnectionListener connectionListener, Set<NodeListener> nodeListeners, Set<MessageListener> messageListeners, Set<TransferListener> transferListeners, Context context) throws PortNotFoundException, PortNotOpenedException
public abstract boolean isOpened()
protected int contactInterface()
contactInterface in class AbstractBidibCopyright © 2020. All rights reserved.