|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.nps.moves.dismobile.Pdu
edu.nps.moves.dismobile.RadioCommunicationsFamilyPdu
edu.nps.moves.dismobile.SignalPdu
public class SignalPdu
Section 5.3.8.2. Detailed information about a radio transmitter. This PDU requires manually written code to complete. The encodingScheme field can be used in multiple ways, which requires hand-written code to finish. UNFINISHED 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 java.util.List<OneByteChunk> |
data
list of eight bit values |
protected short |
dataLength
length od data |
protected int |
encodingScheme
encoding scheme used, and enumeration |
protected long |
sampleRate
sample rate |
protected short |
samples
number of samples |
protected int |
tdlType
tdl type |
| Fields inherited from class edu.nps.moves.dismobile.RadioCommunicationsFamilyPdu |
|---|
entityId, radioId |
| Fields inherited from class edu.nps.moves.dismobile.Pdu |
|---|
exerciseID, padding, pduLength, pduType, protocolFamily, protocolVersion, timestamp |
| Constructor Summary | |
|---|---|
SignalPdu()
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 |
java.util.List<OneByteChunk> |
getData()
|
short |
getDataLength()
|
int |
getEncodingScheme()
|
int |
getMarshalledSize()
|
long |
getSampleRate()
|
short |
getSamples()
|
int |
getTdlType()
|
void |
marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer. |
void |
marshal(java.io.DataOutputStream dos)
|
void |
setData(java.util.List<OneByteChunk> pData)
|
void |
setDataLength(short pDataLength)
Note that setting this value will not change the marshalled value. |
void |
setEncodingScheme(int pEncodingScheme)
|
void |
setSampleRate(long pSampleRate)
|
void |
setSamples(short pSamples)
|
void |
setTdlType(int pTdlType)
|
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.dismobile.RadioCommunicationsFamilyPdu |
|---|
getEntityId, getRadioId, setEntityId, setRadioId |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int encodingScheme
protected int tdlType
protected long sampleRate
protected short dataLength
protected short samples
protected java.util.List<OneByteChunk> data
| Constructor Detail |
|---|
public SignalPdu()
| Method Detail |
|---|
public int getMarshalledSize()
getMarshalledSize in class RadioCommunicationsFamilyPdupublic void setEncodingScheme(int pEncodingScheme)
public int getEncodingScheme()
public void setTdlType(int pTdlType)
public int getTdlType()
public void setSampleRate(long pSampleRate)
public long getSampleRate()
public short getDataLength()
public void setDataLength(short pDataLength)
public void setSamples(short pSamples)
public short getSamples()
public void setData(java.util.List<OneByteChunk> pData)
public java.util.List<OneByteChunk> getData()
public void marshal(java.io.DataOutputStream dos)
marshal in class RadioCommunicationsFamilyPdupublic void unmarshal(java.io.DataInputStream dis)
unmarshal in class RadioCommunicationsFamilyPdupublic void marshal(java.nio.ByteBuffer buff)
marshal in class RadioCommunicationsFamilyPdubuff - The ByteBuffer at the position to begin writing
java.nio.BufferOverflowException - if buff is too small
java.nio.ReadOnlyBufferException - if buff is read onlyByteBufferpublic void unmarshal(java.nio.ByteBuffer buff)
unmarshal in class RadioCommunicationsFamilyPdubuff - The ByteBuffer at the position to begin reading
java.nio.BufferUnderflowException - if buff is too smallByteBufferpublic boolean equals(java.lang.Object obj)
equals in class RadioCommunicationsFamilyPdupublic boolean equalsImpl(java.lang.Object obj)
Pduthis and the supplied object
equalsImpl in class RadioCommunicationsFamilyPduobj - the object to compare to
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||