public class SignalPdu extends RadioCommunicationsFamilyPdu implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.util.List<OneByteChunk> |
data
list of eight bit values.
|
protected int |
dataLength
length of data, in bits
|
protected int |
encodingScheme
encoding scheme used, and enumeration
|
protected EntityID |
entityId
ID of the entity that is the source of the communication, ie contains the radio
|
protected int |
radioId
particular radio within an entity
|
protected long |
sampleRate
sample rate
|
protected int |
samples
number of samples.
|
protected int |
tdlType
tdl type
|
exerciseID, padding, pduLength, pduType, protocolFamily, protocolVersion, timestamp
Constructor and Description |
---|
SignalPdu()
Constructor
|
Modifier and Type | Method and Description |
---|---|
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() |
int |
getDataLength() |
int |
getEncodingScheme() |
EntityID |
getEntityId() |
int |
getMarshalledSize() |
int |
getRadioId() |
long |
getSampleRate() |
int |
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(int pDataLength)
Note that setting this value will not change the marshalled value.
|
void |
setEncodingScheme(int pEncodingScheme) |
void |
setEntityId(EntityID pEntityId) |
void |
setRadioId(int pRadioId) |
void |
setSampleRate(long pSampleRate) |
void |
setSamples(int pSamples) |
void |
setTdlType(int pTdlType) |
void |
unmarshal(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data.
|
void |
unmarshal(java.io.DataInputStream dis) |
getExerciseID, getLength, getPadding, getPduLength, getPduType, getPduTypeEnum, getProtocolFamily, getProtocolVersion, getTimestamp, marshal, marshalWithDisAbsoluteTimestamp, marshalWithDisAbsoluteTimestamp, marshalWithDisRelativeTimestamp, marshalWithDisRelativeTimestamp, marshalWithNpsTimestamp, marshalWithNpsTimestamp, marshalWithUnixTimestamp, marshalWithUnixTimestamp, readUnsignedInt, readUnsignedInt, setExerciseID, setPadding, setPduLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp
protected EntityID entityId
protected int radioId
protected int encodingScheme
protected int tdlType
protected long sampleRate
protected int dataLength
protected int samples
protected java.util.List<OneByteChunk> data
public int getMarshalledSize()
getMarshalledSize
in class RadioCommunicationsFamilyPdu
public void setEntityId(EntityID pEntityId)
public EntityID getEntityId()
public void setRadioId(int pRadioId)
public int getRadioId()
public void setEncodingScheme(int pEncodingScheme)
public int getEncodingScheme()
public void setTdlType(int pTdlType)
public int getTdlType()
public void setSampleRate(long pSampleRate)
public long getSampleRate()
public int getDataLength()
public void setDataLength(int pDataLength)
public void setSamples(int pSamples)
public int 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 RadioCommunicationsFamilyPdu
public void unmarshal(java.io.DataInputStream dis)
unmarshal
in class RadioCommunicationsFamilyPdu
public void marshal(java.nio.ByteBuffer buff)
marshal
in class RadioCommunicationsFamilyPdu
buff
- The ByteBuffer at the position to begin writingjava.nio.BufferOverflowException
- if buff is too smalljava.nio.ReadOnlyBufferException
- if buff is read onlyByteBuffer
public void unmarshal(java.nio.ByteBuffer buff)
unmarshal
in class RadioCommunicationsFamilyPdu
buff
- The ByteBuffer at the position to begin readingjava.nio.BufferUnderflowException
- if buff is too smallByteBuffer
public boolean equals(java.lang.Object obj)
equals
in class RadioCommunicationsFamilyPdu
public boolean equalsImpl(java.lang.Object obj)
Pdu
this
and the supplied objectequalsImpl
in class RadioCommunicationsFamilyPdu
obj
- the object to compare to