Package org.bidib.jbidibc.debug
Class AbstractDebugReader
java.lang.Object
org.bidib.jbidibc.debug.AbstractDebugReader
- All Implemented Interfaces:
DebugInterface
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddDataToReceiveQueue(byte[] data) protected voidprotected voidprotected Threadorg.bidib.jbidibc.messages.ConnectionListenerprotected StringvoidPerform initialization task.voidsetConnectionListener(org.bidib.jbidibc.messages.ConnectionListener connectionListener) protected voidsetRequestedPortName(String requestedPortName) protected voidsetSendEnabled(boolean sendEnabled) protected voidvoidstartReceiverAndQueues(DebugMessageProcessor serialMessageReceiver, org.bidib.jbidibc.messages.helpers.Context context) protected voidprotected voidprotected voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.bidib.jbidibc.debug.DebugInterface
close, getPortIdentifiers, isOpened, open, send, send
-
Field Details
-
receiverThread
-
receiverRunning
-
-
Constructor Details
-
AbstractDebugReader
-
-
Method Details
-
initialize
public void initialize()Description copied from interface:DebugInterfacePerform initialization task.- Specified by:
initializein interfaceDebugInterface
-
setSendEnabled
protected void setSendEnabled(boolean sendEnabled) -
setRequestedPortName
-
getRequestedPortName
-
getMessageReceiver
- Specified by:
getMessageReceiverin interfaceDebugInterface- Returns:
- the message processor
-
getConnectionListener
public org.bidib.jbidibc.messages.ConnectionListener getConnectionListener()- Returns:
- the connectionListener
-
setConnectionListener
public void setConnectionListener(org.bidib.jbidibc.messages.ConnectionListener connectionListener) - Parameters:
connectionListener- the connectionListener to set
-
startReceiverAndQueues
public void startReceiverAndQueues(DebugMessageProcessor serialMessageReceiver, org.bidib.jbidibc.messages.helpers.Context context) -
createReceiverThread
-
addDataToReceiveQueue
-
addDataToReceiveQueue
protected void addDataToReceiveQueue(byte[] data) -
startReceiveQueueWorker
protected void startReceiveQueueWorker() -
stopReceiveQueueWorker
protected void stopReceiveQueueWorker() -
closeHandle
protected void closeHandle() -
triggerClosePort
protected void triggerClosePort() -
stopReceiverThread
protected void stopReceiverThread()
-