public class SignalPdu extends RadioCommunicationsFamilyPdu implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected byte[] |
data
list of eight bit values
|
protected short |
dataLength
length of data in bits
|
protected short |
encodingScheme
encoding scheme used, and enumeration
|
protected RadioCommsHeader |
header |
protected int |
sampleRate
sample rate
|
protected short |
samples
number of samples
|
protected SignalTDLType |
tdlType
tdl type uid 178
|
exerciseID, length, 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 |
byte[] |
getData()
Getter for
data |
short |
getDataLength()
Getter for
dataLength |
short |
getEncodingScheme()
Getter for
encodingScheme |
RadioCommsHeader |
getHeader()
Getter for
header |
int |
getMarshalledSize()
Returns the size of this serialized object in bytes
|
int |
getSampleRate()
Getter for
sampleRate |
short |
getSamples()
Getter for
samples |
SignalTDLType |
getTdlType()
Getter for
tdlType |
void |
marshal(java.nio.ByteBuffer buff)
Packs an object into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos)
Serializes an object to a DataOutputStream.
|
SignalPdu |
setData(byte[] pData)
Setter for
data |
SignalPdu |
setDataLength(short pDataLength)
Setter for
dataLength |
SignalPdu |
setEncodingScheme(short pEncodingScheme)
Setter for
encodingScheme |
SignalPdu |
setHeader(RadioCommsHeader pHeader)
Setter for
header |
SignalPdu |
setSampleRate(int pSampleRate)
Setter for
sampleRate |
SignalPdu |
setSamples(short pSamples)
Setter for
samples |
SignalPdu |
setTdlType(SignalTDLType pTdlType)
Setter for
tdlType |
int |
unmarshal(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data.
|
int |
unmarshal(java.io.DataInputStream dis)
Unserializes an object from a DataInputStream.
|
getPadding, getPduStatus, setPadding, setPduStatus
getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, marshal, setExerciseID, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp
protected RadioCommsHeader header
protected short encodingScheme
protected SignalTDLType tdlType
protected int sampleRate
protected short dataLength
protected short samples
protected byte[] data
public int getMarshalledSize()
getMarshalledSize
in class RadioCommunicationsFamilyPdu
public SignalPdu setHeader(RadioCommsHeader pHeader)
header
public RadioCommsHeader getHeader()
header
public SignalPdu setEncodingScheme(short pEncodingScheme)
encodingScheme
public short getEncodingScheme()
encodingScheme
public SignalPdu setTdlType(SignalTDLType pTdlType)
tdlType
public SignalTDLType getTdlType()
tdlType
public SignalPdu setSampleRate(int pSampleRate)
sampleRate
public int getSampleRate()
sampleRate
public SignalPdu setDataLength(short pDataLength)
dataLength
public short getDataLength()
dataLength
public short getSamples()
samples
public byte[] getData()
data
public void marshal(java.io.DataOutputStream dos)
marshal
in class RadioCommunicationsFamilyPdu
dos
- The DataOutputStreamDataOutputStream
public int unmarshal(java.io.DataInputStream dis)
unmarshal
in class RadioCommunicationsFamilyPdu
dis
- The DataInputStreamDataInputStream
public void marshal(java.nio.ByteBuffer buff) throws java.lang.Exception
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 onlyjava.lang.Exception
- ByteBuffer-generated exceptionByteBuffer
public int unmarshal(java.nio.ByteBuffer buff) throws java.lang.Exception
unmarshal
in class RadioCommunicationsFamilyPdu
buff
- The ByteBuffer at the position to begin readingjava.nio.BufferUnderflowException
- if buff is too smalljava.lang.Exception
- ByteBuffer-generated exceptionByteBuffer
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