edu.nps.moves.dis
Class ReceiverPdu

java.lang.Object
  extended by edu.nps.moves.dis.Pdu
      extended by edu.nps.moves.dis.RadioCommunicationsFamilyPdu
          extended by edu.nps.moves.dis.ReceiverPdu
All Implemented Interfaces:
java.io.Serializable

@Entity
public class ReceiverPdu
extends RadioCommunicationsFamilyPdu
implements java.io.Serializable

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

Author:
DMcG
See Also:
Serialized Form

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 edu.nps.moves.dis.Pdu
getExerciseID, getLength, getPadding, getPduLength, getPduType, getPduTypeEnum, getPk_Pdu, getProtocolFamily, getProtocolVersion, getTimestamp, marshal, marshalWithDisAbsoluteTimestamp, marshalWithDisAbsoluteTimestamp, marshalWithDisRelativeTimestamp, marshalWithDisRelativeTimestamp, marshalWithNpsTimestamp, marshalWithNpsTimestamp, marshalWithUnixTimestamp, marshalWithUnixTimestamp, readUnsignedInt, readUnsignedInt, setExerciseID, setPadding, setPduLength, setPduType, setPk_Pdu, setProtocolFamily, setProtocolVersion, setTimestamp
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

receiverState

protected int receiverState
encoding scheme used, and enumeration


padding1

protected int padding1
padding


receivedPoser

protected float receivedPoser
received power


transmitterEntityId

protected EntityID transmitterEntityId
ID of transmitter


transmitterRadioId

protected int transmitterRadioId
ID of transmitting radio


fk_transmitterEntityId

public long fk_transmitterEntityId
Constructor Detail

ReceiverPdu

public ReceiverPdu()
Constructor

Method Detail

getMarshalledSize

public int getMarshalledSize()
Overrides:
getMarshalledSize in class RadioCommunicationsFamilyPdu

setReceiverState

public void setReceiverState(int pReceiverState)

getReceiverState

public int getReceiverState()

setPadding1

public void setPadding1(int pPadding1)

getPadding1

public int getPadding1()

setReceivedPoser

public void setReceivedPoser(float pReceivedPoser)

getReceivedPoser

public float getReceivedPoser()

setTransmitterEntityId

public void setTransmitterEntityId(EntityID pTransmitterEntityId)

getTransmitterEntityId

public EntityID getTransmitterEntityId()

setTransmitterRadioId

public void setTransmitterRadioId(int pTransmitterRadioId)

getTransmitterRadioId

public int getTransmitterRadioId()

marshal

public void marshal(java.io.DataOutputStream dos)
Overrides:
marshal in class RadioCommunicationsFamilyPdu

unmarshal

public void unmarshal(java.io.DataInputStream dis)
Overrides:
unmarshal in class RadioCommunicationsFamilyPdu

marshal

public void marshal(java.nio.ByteBuffer buff)
Packs a Pdu into the ByteBuffer.

Overrides:
marshal in class RadioCommunicationsFamilyPdu
Parameters:
buff - The ByteBuffer at the position to begin writing
Throws:
java.nio.BufferOverflowException - if buff is too small
java.nio.ReadOnlyBufferException - if buff is read only
Since:
??
See Also:
ByteBuffer

unmarshal

public void unmarshal(java.nio.ByteBuffer buff)
Unpacks a Pdu from the underlying data.

Overrides:
unmarshal in class RadioCommunicationsFamilyPdu
Parameters:
buff - The ByteBuffer at the position to begin reading
Throws:
java.nio.BufferUnderflowException - if buff is too small
Since:
??
See Also:
ByteBuffer

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class RadioCommunicationsFamilyPdu

equalsImpl

public boolean equalsImpl(java.lang.Object obj)
Description copied from class: Pdu
Compare all fields that contribute to the state, ignoring transient and static fields, for this and the supplied object

Overrides:
equalsImpl in class RadioCommunicationsFamilyPdu
Parameters:
obj - the object to compare to
Returns:
true if the objects are equal, false otherwise.