public static final class InspcDataExchangeAccess.InspcDatagram
extends ByteDataAccessBase
Modifier and Type | Field and Description |
---|---|
private static int |
kanswerNr |
private static int |
kencryption |
private static int |
knEntrant |
private static int |
knrofBytes |
private static int |
kseqnr |
private static int |
kspare13 |
private static int |
kspare14 |
static int |
sizeofHead |
Constructor and Description |
---|
InspcDatagram() |
InspcDatagram(byte[] buffer) |
Modifier and Type | Method and Description |
---|---|
void |
assignDatagram(byte[] data,
int length)
Assigns a datagram.
|
int |
getAnswerNr()
Gets the number of the answer datagram.
|
int |
getEncryption() |
int |
getEntrant() |
int |
getLengthDatagram() |
int |
getSeqnr() |
void |
incrAnswerNr()
Increments the number for the answer datagram.
|
boolean |
lastAnswer()
Gets the information about the last answer datagram.
|
void |
markAnswerNrLast()
Mark the datagram as last answer.
|
void |
setEntrant(int nr) |
void |
setHeadAnswer(int entrant,
int seqNr,
int encryption)
Sets the head for an answer telegram.
|
void |
setHeadRequest(int entrant,
int seqNr,
int encryption)
Sets the head for an request telegram.
|
void |
setLengthDatagram(int length) |
void |
setSeqnr(int nr) |
private static final int knrofBytes
private static final int knEntrant
private static final int kencryption
private static final int kseqnr
private static final int kanswerNr
private static final int kspare13
private static final int kspare14
public static final int sizeofHead
public InspcDatagram(byte[] buffer)
public InspcDatagram()
public final void assignDatagram(byte[] data, int length)
data
- The data of the datagram.length
- number of received data or buffer length for transmit.public final void setLengthDatagram(int length)
public final int getLengthDatagram()
public final void setHeadRequest(int entrant, int seqNr, int encryption)
incrAnswerNr()
and markAnswerNrLast()
to change the answer nr.entrant
- seqNr
- encryption
- public final void setHeadAnswer(int entrant, int seqNr, int encryption)
entrant
- seqNr
- encryption
- public final void setEntrant(int nr)
public final int getEntrant()
public final int getEncryption()
public final void setSeqnr(int nr)
public final int getSeqnr()
public final void markAnswerNrLast()
public final void incrAnswerNr()
public final int getAnswerNr()
public final boolean lastAnswer()