public abstract class AbstractSerialBidib extends AbstractBidib
| Modifier and Type | Field and Description |
|---|---|
protected Semaphore |
portSemaphore |
protected String |
requestedPortName |
DEFAULT_TIMEOUT| Constructor and Description |
|---|
AbstractSerialBidib() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanupAfterClose(BidibMessageProcessor bidibMessageProcessor) |
protected BidibMessageProcessor |
createMessageReceiver(NodeRegistry nodeFactory) |
protected abstract void |
internalOpen(String portName,
Context context) |
protected boolean |
isConnected() |
protected abstract boolean |
isImplAvaiable() |
static boolean |
isInstanceAvailable()
Returns if an instance of SerialBidib is available.
|
abstract boolean |
isOpened() |
void |
open(String portName,
ConnectionListener connectionListener,
Set<NodeListener> nodeListeners,
Set<MessageListener> messageListeners,
Set<TransferListener> transferListeners,
Context context) |
protected void |
setConnected(boolean connected) |
protected void |
startReceiverAndQueues(BidibMessageProcessor serialMessageReceiver,
Context context) |
protected void |
stopReceiverAndQueues(SerialMessageReceiver serialMessageReceiver) |
findNode, getAccessoryNode, getBoosterNode, getCommandStationNode, getConnectionListener, getFirmwarePacketTimeout, getMessageReceiver, getNode, getNodeRegistry, getResponseTimeout, getRootNode, getTransferListeners, initialize, receive, registerListeners, releaseRootNode, send, sendData, setConnectionListener, setFirmwarePacketTimeout, setIgnoreWaitTimeout, setResponseTimeout, stopReceiverAndQueuesclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, getPortIdentifiersprotected Semaphore portSemaphore
protected String requestedPortName
protected BidibMessageProcessor createMessageReceiver(NodeRegistry nodeFactory)
createMessageReceiver in class AbstractBidibpublic static boolean isInstanceAvailable()
protected void stopReceiverAndQueues(SerialMessageReceiver serialMessageReceiver)
protected void cleanupAfterClose(BidibMessageProcessor bidibMessageProcessor)
protected void startReceiverAndQueues(BidibMessageProcessor serialMessageReceiver, Context context)
startReceiverAndQueues in class AbstractBidibprotected abstract boolean isImplAvaiable()
protected abstract void internalOpen(String portName, Context context) throws Exception
Exceptionpublic void open(String portName, ConnectionListener connectionListener, Set<NodeListener> nodeListeners, Set<MessageListener> messageListeners, Set<TransferListener> transferListeners, Context context) throws PortNotFoundException, PortNotOpenedException
protected boolean isConnected()
protected void setConnected(boolean connected)
public abstract boolean isOpened()
Copyright © 2017. All rights reserved.