|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.nps.moves.dis7mobile.PduSuperclass
edu.nps.moves.dis7mobile.Pdu
edu.nps.moves.dis7mobile.MinefieldFamilyPdu
edu.nps.moves.dis7mobile.MinefieldResponseNackPdu
public class MinefieldResponseNackPdu
proivde the means to request a retransmit of a minefield data pdu. Section 7.9.5 COMPLETE Copyright (c) 2008-2010, MOVES Institute, Naval Postgraduate School. All rights reserved. This work is licensed under the BSD open source license, available at https://www.movesinstitute.org/licenses/bsd.html
Field Summary | |
---|---|
protected EntityID |
minefieldID
Minefield ID |
protected java.util.List<EightByteChunk> |
missingPduSequenceNumbers
PDU sequence numbers that were missing |
protected short |
numberOfMissingPdus
how many pdus were missing |
protected short |
requestID
request ID |
protected EntityID |
requestingEntityID
entity ID making the request |
Fields inherited from class edu.nps.moves.dis7mobile.Pdu |
---|
padding, pduStatus |
Fields inherited from class edu.nps.moves.dis7mobile.PduSuperclass |
---|
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp |
Constructor Summary | |
---|---|
MinefieldResponseNackPdu()
Constructor |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
boolean |
equalsImpl(java.lang.Object obj)
Compare all fields that contribute to the state, ignoring transient and static fields, for this and the supplied object |
int |
getMarshalledSize()
|
EntityID |
getMinefieldID()
|
java.util.List<EightByteChunk> |
getMissingPduSequenceNumbers()
|
short |
getNumberOfMissingPdus()
|
short |
getRequestID()
|
EntityID |
getRequestingEntityID()
|
void |
marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer. |
void |
marshal(java.io.DataOutputStream dos)
|
void |
setMinefieldID(EntityID pMinefieldID)
|
void |
setMissingPduSequenceNumbers(java.util.List<EightByteChunk> pMissingPduSequenceNumbers)
|
void |
setNumberOfMissingPdus(short pNumberOfMissingPdus)
Note that setting this value will not change the marshalled value. |
void |
setRequestID(short pRequestID)
|
void |
setRequestingEntityID(EntityID pRequestingEntityID)
|
void |
unmarshal(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data. |
void |
unmarshal(java.io.DataInputStream dis)
|
Methods inherited from class edu.nps.moves.dis7mobile.Pdu |
---|
getPadding, getPduStatus, marshal, setPadding, setPduStatus |
Methods inherited from class edu.nps.moves.dis7mobile.PduSuperclass |
---|
getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, setExerciseID, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected EntityID minefieldID
protected EntityID requestingEntityID
protected short requestID
protected short numberOfMissingPdus
protected java.util.List<EightByteChunk> missingPduSequenceNumbers
Constructor Detail |
---|
public MinefieldResponseNackPdu()
Method Detail |
---|
public int getMarshalledSize()
getMarshalledSize
in class MinefieldFamilyPdu
public void setMinefieldID(EntityID pMinefieldID)
public EntityID getMinefieldID()
public void setRequestingEntityID(EntityID pRequestingEntityID)
public EntityID getRequestingEntityID()
public void setRequestID(short pRequestID)
public short getRequestID()
public short getNumberOfMissingPdus()
public void setNumberOfMissingPdus(short pNumberOfMissingPdus)
public void setMissingPduSequenceNumbers(java.util.List<EightByteChunk> pMissingPduSequenceNumbers)
public java.util.List<EightByteChunk> getMissingPduSequenceNumbers()
public void marshal(java.io.DataOutputStream dos)
marshal
in class MinefieldFamilyPdu
public void unmarshal(java.io.DataInputStream dis)
unmarshal
in class MinefieldFamilyPdu
public void marshal(java.nio.ByteBuffer buff)
marshal
in class MinefieldFamilyPdu
buff
- The ByteBuffer at the position to begin writing
java.nio.BufferOverflowException
- if buff is too small
java.nio.ReadOnlyBufferException
- if buff is read onlyByteBuffer
public void unmarshal(java.nio.ByteBuffer buff)
unmarshal
in class MinefieldFamilyPdu
buff
- The ByteBuffer at the position to begin reading
java.nio.BufferUnderflowException
- if buff is too smallByteBuffer
public boolean equals(java.lang.Object obj)
equals
in class MinefieldFamilyPdu
public boolean equalsImpl(java.lang.Object obj)
PduSuperclass
this
and the supplied object
equalsImpl
in class MinefieldFamilyPdu
obj
- the object to compare to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |