public class IntercomSignalPdu extends RadioCommunicationsFamilyPdu implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected byte[] |
data
data bytes
|
protected short |
dataLength
data length
|
protected short |
encodingScheme
encoding scheme
|
protected short |
intercomNumber
ID of communications device
|
protected IntercomReferenceID |
intercomReferenceID |
protected int |
sampleRate
sample rate
|
protected short |
samples
samples
|
protected SignalTDLType |
tdlType
tactical data link type uid 178
|
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp
Constructor and Description |
---|
IntercomSignalPdu()
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 |
getEncodingScheme()
Getter for
encodingScheme |
short |
getIntercomNumber()
Getter for
intercomNumber |
IntercomReferenceID |
getIntercomReferenceID()
Getter for
intercomReferenceID |
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.
|
IntercomSignalPdu |
setData(byte[] pData)
Setter for
data |
IntercomSignalPdu |
setEncodingScheme(short pEncodingScheme)
Setter for
encodingScheme |
IntercomSignalPdu |
setIntercomNumber(short pIntercomNumber)
Setter for
intercomNumber |
IntercomSignalPdu |
setIntercomReferenceID(IntercomReferenceID pIntercomReferenceID)
Setter for
intercomReferenceID |
IntercomSignalPdu |
setSampleRate(int pSampleRate)
Setter for
sampleRate |
IntercomSignalPdu |
setSamples(short pSamples)
Setter for
samples |
IntercomSignalPdu |
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 IntercomReferenceID intercomReferenceID
protected short intercomNumber
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 IntercomSignalPdu setIntercomReferenceID(IntercomReferenceID pIntercomReferenceID)
intercomReferenceID
public IntercomReferenceID getIntercomReferenceID()
intercomReferenceID
public IntercomSignalPdu setIntercomNumber(short pIntercomNumber)
intercomNumber
public short getIntercomNumber()
intercomNumber
public IntercomSignalPdu setEncodingScheme(short pEncodingScheme)
encodingScheme
public short getEncodingScheme()
encodingScheme
public IntercomSignalPdu setTdlType(SignalTDLType pTdlType)
tdlType
public SignalTDLType getTdlType()
tdlType
public IntercomSignalPdu setSampleRate(int pSampleRate)
sampleRate
public int getSampleRate()
sampleRate
public IntercomSignalPdu setSamples(short pSamples)
samples
public short getSamples()
samples
public IntercomSignalPdu setData(byte[] pData)
data
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