|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.nps.moves.dis.Pdu
edu.nps.moves.dis.RadioCommunicationsFamilyPdu
edu.nps.moves.dis.ReceiverPdu
@Entity public class ReceiverPdu
Section 5.3.8.3. Communication of a receiver state. COMPLETE 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 | |
---|---|
long |
fk_transmitterEntityId
|
protected int |
padding1
padding |
protected float |
receivedPoser
received power |
protected int |
receiverState
encoding scheme used, and enumeration |
protected EntityID |
transmitterEntityId
ID of transmitter |
protected int |
transmitterRadioId
ID of transmitting radio |
Fields inherited from class edu.nps.moves.dis.RadioCommunicationsFamilyPdu |
---|
entityId, fk_entityId, radioId |
Fields inherited from class edu.nps.moves.dis.Pdu |
---|
exerciseID, padding, pduLength, pduType, protocolFamily, protocolVersion, timestamp |
Constructor Summary | |
---|---|
ReceiverPdu()
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 |
int |
getMarshalledSize()
|
int |
getPadding1()
|
float |
getReceivedPoser()
|
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 |
setPadding1(int pPadding1)
|
void |
setReceivedPoser(float pReceivedPoser)
|
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)
|
Methods inherited from class edu.nps.moves.dis.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 receiverState
protected int padding1
protected float receivedPoser
protected EntityID transmitterEntityId
protected int transmitterRadioId
public long fk_transmitterEntityId
Constructor Detail |
---|
public ReceiverPdu()
Method Detail |
---|
public int getMarshalledSize()
getMarshalledSize
in class RadioCommunicationsFamilyPdu
public void setReceiverState(int pReceiverState)
public int getReceiverState()
public void setPadding1(int pPadding1)
public int getPadding1()
public void setReceivedPoser(float pReceivedPoser)
public float getReceivedPoser()
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 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 writing
java.nio.BufferOverflowException
- if buff is too small
java.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 reading
java.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 object
equalsImpl
in class RadioCommunicationsFamilyPdu
obj
- the object to compare to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |