public class InspcAccessCheckerRxTelg
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private InspcDataExchangeAccess.InspcDatagram[] |
answerTelgs
Accumulator for all answer telegrams.
|
private int |
awaitSeqNumber |
(package private) boolean |
awaitTelg
True then awaits a telg.
|
private boolean |
bWaiting
True if wait is called already.
|
private InspcAccessExecAnswerTelg_ifc |
executerAnswer
This aggregation is null if the answer telegram should not evaluated in the receiving thread.
|
private boolean |
received
True if a awaited telegram was received.
|
(package private) InspcDataExchangeAccess.InspcDatagram |
rxTelg |
Constructor and Description |
---|
InspcAccessCheckerRxTelg() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
applyReceivedTelg(byte[] rxBuffer,
int zBuffer,
LogMessage log,
int identLog)
Called in the rx-trhead to apply any received telegram.
|
boolean |
hasAnwer() |
(package private) void |
setAwait(int seqNumber)
Set awaiting an answer with given sequence number.
|
(package private) void |
setExecuterAnswer(InspcAccessExecAnswerTelg_ifc executerAnswer) |
(package private) InspcDataExchangeAccess.InspcDatagram[] |
waitForAnswer(int timeout)
Wait for an answer telegram.
|
boolean awaitTelg
private InspcAccessExecAnswerTelg_ifc executerAnswer
private boolean bWaiting
private int awaitSeqNumber
private boolean received
final InspcDataExchangeAccess.InspcDatagram rxTelg
private InspcDataExchangeAccess.InspcDatagram[] answerTelgs
void setExecuterAnswer(InspcAccessExecAnswerTelg_ifc executerAnswer)
public boolean hasAnwer()
void setAwait(int seqNumber)
seqNumber
- The awaiting sequence number, it is the same as the sent sequence numberexecuterAnswer
- if not null, then the method of this interface will be called in the receiver thread
if all answer telegrams are received.InspcDataExchangeAccess.InspcDatagram[] waitForAnswer(int timeout)
timeout
- void applyReceivedTelg(byte[] rxBuffer, int zBuffer, LogMessage log, int identLog)
rxBuffer
- zBuffer
-