public class ReceiverPdu extends RadioCommunicationsFamilyPdu implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected EntityID |
entityId
ID of the entity that is the source of the communication, ie contains the radio
|
protected int |
padding1
padding
|
protected int |
radioId
particular radio within an entity
|
protected float |
receivedPower
received power
|
protected int |
receiverState
encoding scheme used, and enumeration
|
protected EntityID |
transmitterEntityId
ID of transmitter
|
protected int |
transmitterRadioId
ID of transmitting radio
|
exerciseID, padding, pduLength, pduType, protocolFamily, protocolVersion, timestamp| Constructor and Description |
|---|
ReceiverPdu()
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 |
EntityID |
getEntityId() |
int |
getMarshalledSize() |
int |
getPadding1() |
int |
getRadioId() |
float |
getReceivedPower() |
int |
getReceiverState() |
EntityID |
getTransmitterEntityId() |
int |
getTransmitterRadioId() |
void |
marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos) |
void |
setEntityId(EntityID pEntityId) |
void |
setPadding1(int pPadding1) |
void |
setRadioId(int pRadioId) |
void |
setReceivedPower(float pReceivedPower) |
void |
setReceiverState(int pReceiverState) |
void |
setTransmitterEntityId(EntityID pTransmitterEntityId) |
void |
setTransmitterRadioId(int pTransmitterRadioId) |
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, setTimestampprotected EntityID entityId
protected int radioId
protected int receiverState
protected int padding1
protected float receivedPower
protected EntityID transmitterEntityId
protected int transmitterRadioId
public int getMarshalledSize()
getMarshalledSize in class RadioCommunicationsFamilyPdupublic void setEntityId(EntityID pEntityId)
public EntityID getEntityId()
public void setRadioId(int pRadioId)
public int getRadioId()
public void setReceiverState(int pReceiverState)
public int getReceiverState()
public void setPadding1(int pPadding1)
public int getPadding1()
public void setReceivedPower(float pReceivedPower)
public float getReceivedPower()
public void setTransmitterEntityId(EntityID pTransmitterEntityId)
public EntityID getTransmitterEntityId()
public void setTransmitterRadioId(int pTransmitterRadioId)
public int getTransmitterRadioId()
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 writingjava.nio.BufferOverflowException - if buff is too smalljava.nio.ReadOnlyBufferException - if buff is read onlyByteBufferpublic void unmarshal(java.nio.ByteBuffer buff)
unmarshal in class RadioCommunicationsFamilyPdubuff - The ByteBuffer at the position to begin readingjava.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 objectequalsImpl in class RadioCommunicationsFamilyPduobj - the object to compare to