public class IFFPdu extends DistributedEmissionsFamilyPdu implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected EntityID |
emittingEntityId
ID of the entity that is the source of the emissions
|
protected EventIdentifier |
eventID
Number generated by the issuing simulation to associate realted events.
|
protected FundamentalOperationalData |
fundamentalParameters
fundamental parameters
|
protected Vector3Float |
location
Location wrt entity.
|
protected byte |
systemDesignator |
protected SystemIdentifier |
systemID
System ID information
|
protected byte |
systemSpecificData |
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp
Constructor and Description |
---|
IFFPdu()
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 |
getEmittingEntityId()
Getter for
emittingEntityId |
EventIdentifier |
getEventID()
Getter for
eventID |
FundamentalOperationalData |
getFundamentalParameters()
Getter for
fundamentalParameters |
Vector3Float |
getLocation()
Getter for
location |
int |
getMarshalledSize()
Returns the size of this serialized object in bytes
|
byte |
getSystemDesignator()
Getter for
systemDesignator |
SystemIdentifier |
getSystemID()
Getter for
systemID |
byte |
getSystemSpecificData()
Getter for
systemSpecificData |
void |
marshal(java.nio.ByteBuffer buff)
Packs an object into the ByteBuffer.
|
void |
marshal(java.io.DataOutputStream dos)
Serializes an object to a DataOutputStream.
|
IFFPdu |
setEmittingEntityId(EntityID pEmittingEntityId)
Setter for
emittingEntityId |
IFFPdu |
setEventID(EventIdentifier pEventID)
Setter for
eventID |
IFFPdu |
setFundamentalParameters(FundamentalOperationalData pFundamentalParameters)
Setter for
fundamentalParameters |
IFFPdu |
setLocation(Vector3Float pLocation)
Setter for
location |
IFFPdu |
setSystemDesignator(byte pSystemDesignator)
Setter for
systemDesignator |
IFFPdu |
setSystemID(SystemIdentifier pSystemID)
Setter for
systemID |
IFFPdu |
setSystemSpecificData(byte pSystemSpecificData)
Setter for
systemSpecificData |
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 EntityID emittingEntityId
protected EventIdentifier eventID
protected Vector3Float location
protected SystemIdentifier systemID
protected byte systemDesignator
protected byte systemSpecificData
protected FundamentalOperationalData fundamentalParameters
public int getMarshalledSize()
getMarshalledSize
in class DistributedEmissionsFamilyPdu
public IFFPdu setEmittingEntityId(EntityID pEmittingEntityId)
emittingEntityId
public EntityID getEmittingEntityId()
emittingEntityId
public IFFPdu setEventID(EventIdentifier pEventID)
eventID
public EventIdentifier getEventID()
eventID
public IFFPdu setLocation(Vector3Float pLocation)
location
public Vector3Float getLocation()
location
public IFFPdu setSystemID(SystemIdentifier pSystemID)
systemID
public SystemIdentifier getSystemID()
systemID
public IFFPdu setSystemDesignator(byte pSystemDesignator)
systemDesignator
public byte getSystemDesignator()
systemDesignator
public IFFPdu setSystemSpecificData(byte pSystemSpecificData)
systemSpecificData
public byte getSystemSpecificData()
systemSpecificData
public IFFPdu setFundamentalParameters(FundamentalOperationalData pFundamentalParameters)
fundamentalParameters
public FundamentalOperationalData getFundamentalParameters()
fundamentalParameters
public void marshal(java.io.DataOutputStream dos)
marshal
in class DistributedEmissionsFamilyPdu
dos
- The DataOutputStreamDataOutputStream
public int unmarshal(java.io.DataInputStream dis)
unmarshal
in class DistributedEmissionsFamilyPdu
dis
- The DataInputStreamDataInputStream
public void marshal(java.nio.ByteBuffer buff) throws java.lang.Exception
marshal
in class DistributedEmissionsFamilyPdu
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 DistributedEmissionsFamilyPdu
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 DistributedEmissionsFamilyPdu
public boolean equalsImpl(java.lang.Object obj)
Pdu
this
and the supplied objectequalsImpl
in class DistributedEmissionsFamilyPdu
obj
- the object to compare to