edu.nps.moves.dismobile
Class ElectronicEmissionsPdu

java.lang.Object
  extended by edu.nps.moves.dismobile.Pdu
      extended by edu.nps.moves.dismobile.DistributedEmissionsFamilyPdu
          extended by edu.nps.moves.dismobile.ElectronicEmissionsPdu
All Implemented Interfaces:
java.io.Serializable

public class ElectronicEmissionsPdu
extends DistributedEmissionsFamilyPdu
implements java.io.Serializable

Section 5.3.7.1. Information about active electronic warfare (EW) emissions and active EW countermeasures shall be communicated using an Electromagnetic Emission PDU. COMPLETE (I think) 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
protected  EntityID emittingEntityID
          ID of the entity emitting
protected  EventID eventID
          ID of event
protected  short numberOfSystems
          This field shall specify the number of emission systems being described in the current PDU.
protected  int paddingForEmissionsPdu
          padding
protected  short stateUpdateIndicator
          This field shall be used to indicate if the data in the PDU represents a state update or just data that has changed since issuance of the last Electromagnetic Emission PDU [relative to the identified entity and emission system(s)].
protected  java.util.List<ElectronicEmissionSystemData> systems
          Electronic emmissions systems
 
Fields inherited from class edu.nps.moves.dismobile.Pdu
exerciseID, padding, pduLength, pduType, protocolFamily, protocolVersion, timestamp
 
Constructor Summary
ElectronicEmissionsPdu()
          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
 EntityID getEmittingEntityID()
           
 EventID getEventID()
           
 int getMarshalledSize()
           
 short getNumberOfSystems()
           
 int getPaddingForEmissionsPdu()
           
 short getStateUpdateIndicator()
           
 java.util.List<ElectronicEmissionSystemData> getSystems()
           
 void marshal(java.nio.ByteBuffer buff)
          Packs a Pdu into the ByteBuffer.
 void marshal(java.io.DataOutputStream dos)
           
 void setEmittingEntityID(EntityID pEmittingEntityID)
           
 void setEventID(EventID pEventID)
           
 void setNumberOfSystems(short pNumberOfSystems)
          Note that setting this value will not change the marshalled value.
 void setPaddingForEmissionsPdu(int pPaddingForEmissionsPdu)
           
 void setStateUpdateIndicator(short pStateUpdateIndicator)
           
 void setSystems(java.util.List<ElectronicEmissionSystemData> pSystems)
           
 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.dismobile.Pdu
getExerciseID, getLength, getPadding, getPduLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, marshal, marshalWithDisAbsoluteTimestamp, marshalWithDisAbsoluteTimestamp, marshalWithDisRelativeTimestamp, marshalWithDisRelativeTimestamp, marshalWithNpsTimestamp, marshalWithNpsTimestamp, marshalWithUnixTimestamp, marshalWithUnixTimestamp, readUnsignedInt, readUnsignedInt, setExerciseID, setPadding, setPduLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

emittingEntityID

protected EntityID emittingEntityID
ID of the entity emitting


eventID

protected EventID eventID
ID of event


stateUpdateIndicator

protected short stateUpdateIndicator
This field shall be used to indicate if the data in the PDU represents a state update or just data that has changed since issuance of the last Electromagnetic Emission PDU [relative to the identified entity and emission system(s)].


numberOfSystems

protected short numberOfSystems
This field shall specify the number of emission systems being described in the current PDU.


paddingForEmissionsPdu

protected int paddingForEmissionsPdu
padding


systems

protected java.util.List<ElectronicEmissionSystemData> systems
Electronic emmissions systems

Constructor Detail

ElectronicEmissionsPdu

public ElectronicEmissionsPdu()
Constructor

Method Detail

getMarshalledSize

public int getMarshalledSize()
Overrides:
getMarshalledSize in class DistributedEmissionsFamilyPdu

setEmittingEntityID

public void setEmittingEntityID(EntityID pEmittingEntityID)

getEmittingEntityID

public EntityID getEmittingEntityID()

setEventID

public void setEventID(EventID pEventID)

getEventID

public EventID getEventID()

setStateUpdateIndicator

public void setStateUpdateIndicator(short pStateUpdateIndicator)

getStateUpdateIndicator

public short getStateUpdateIndicator()

getNumberOfSystems

public short getNumberOfSystems()

setNumberOfSystems

public void setNumberOfSystems(short pNumberOfSystems)
Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. The getnumberOfSystems method will also be based on the actual list length rather than this value. The method is simply here for java bean completeness.


setPaddingForEmissionsPdu

public void setPaddingForEmissionsPdu(int pPaddingForEmissionsPdu)

getPaddingForEmissionsPdu

public int getPaddingForEmissionsPdu()

setSystems

public void setSystems(java.util.List<ElectronicEmissionSystemData> pSystems)

getSystems

public java.util.List<ElectronicEmissionSystemData> getSystems()

marshal

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

unmarshal

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

marshal

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

Overrides:
marshal in class DistributedEmissionsFamilyPdu
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 DistributedEmissionsFamilyPdu
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 DistributedEmissionsFamilyPdu

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 DistributedEmissionsFamilyPdu
Parameters:
obj - the object to compare to
Returns:
true if the objects are equal, false otherwise.