Package edu.nps.moves.dis7.pdus
Class IFFPdu
java.lang.Object
edu.nps.moves.dis7.pdus.Pdu
edu.nps.moves.dis7.pdus.PduBase
edu.nps.moves.dis7.pdus.DistributedEmissionsRegenerationFamilyPdu
edu.nps.moves.dis7.pdus.IFFPdu
- All Implemented Interfaces:
Marshaller
,Serializable
- Direct Known Subclasses:
IdentificationFriendOrFoePdu
,IFFLayer2Pdu
7.6.5.1 Information about military and civilian interrogators, transponders, and specific other electronic systems. See 5.7.6
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ByteArrayOutputStream
byteArrayOutputStream (baos) is used for marshal/unmarshal serializationprotected DataOutputStream
dataOutputStream (dos) is used for marshal/unmarshal serializationprotected EntityID
ID of the entity that is the source of the emissionsprotected EventIdentifier
Number generated by the issuing simulation to associate realted events.protected FundamentalOperationalData
fundamental parametersprotected Vector3Float
Location wrt entity.protected byte
systemDesignator is an undescribed parameter...protected SystemIdentifier
System ID informationprotected byte
systemSpecificData is an undescribed parameter...Fields inherited from class edu.nps.moves.dis7.pdus.Pdu
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncopy()
copy method creates a deep copy of current object using preferred marshalling methodCreates a "deep copy" of current object using ByteBuffer methods.copy method creates a deep copy of current object using DataOutputStream methods.boolean
boolean
equalsImpl
(Object obj) Compare all fields that contribute to the state, ignoring transient and static fields, forthis
and the supplied objectGetter foremittingEntityId
Getter foreventID
Getter forfundamentalParameters
Getter forlocation
int
Returns size of this serialized (marshalled) object in bytesbyte
Getter forsystemDesignator
Getter forsystemID
byte
Getter forsystemSpecificData
void
marshal
(DataOutputStream dos) Serializes an object to a DataOutputStream.void
marshal
(ByteBuffer byteBuffer) Packs an object into the ByteBuffer.setEmittingEntityId
(EntityID pEmittingEntityId) Setter foremittingEntityId
setEventID
(EventIdentifier pEventID) Setter foreventID
setFundamentalParameters
(FundamentalOperationalData pFundamentalParameters) Setter forfundamentalParameters
setLocation
(Vector3Float pLocation) Setter forlocation
setSystemDesignator
(byte pSystemDesignator) Setter forsystemDesignator
setSystemDesignator
(int pSystemDesignator) Utility setter forsystemDesignator
setSystemID
(SystemIdentifier pSystemID) Setter forsystemID
setSystemSpecificData
(byte pSystemSpecificData) Setter forsystemSpecificData
setSystemSpecificData
(int pSystemSpecificData) Utility setter forsystemSpecificData
toString()
int
unmarshal
(DataInputStream dis) Deserializes an object from a DataInputStream.int
unmarshal
(ByteBuffer byteBuffer) Unpacks a Pdu from the underlying data.Methods inherited from class edu.nps.moves.dis7.pdus.PduBase
getPadding, getPduStatus, setPadding, setPadding, setPduStatus
Methods inherited from class edu.nps.moves.dis7.pdus.Pdu
copyByPduFactory, getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, getTimestampSeconds, marshal, occursAfter, occursBefore, occursSameTime, setExerciseID, setExerciseID, setLength, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp, setTimestampSeconds
-
Field Details
-
emittingEntityId
ID of the entity that is the source of the emissions -
eventID
Number generated by the issuing simulation to associate realted events. -
location
Location wrt entity. There is some ambiguity in the standard here, but this is the order it is listed in the table. -
systemID
System ID information -
systemDesignator
protected byte systemDesignatorsystemDesignator is an undescribed parameter... -
systemSpecificData
protected byte systemSpecificDatasystemSpecificData is an undescribed parameter... -
fundamentalParameters
fundamental parameters -
byteArrayOutputStream
byteArrayOutputStream (baos) is used for marshal/unmarshal serialization- See Also:
-
dataOutputStream
dataOutputStream (dos) is used for marshal/unmarshal serialization- See Also:
-
-
Constructor Details
-
IFFPdu
public IFFPdu()Constructor creates and configures a new instance object
-
-
Method Details
-
copy
copy method creates a deep copy of current object using preferred marshalling method- Returns:
- deep copy of PDU
-
copyByteBuffer
Creates a "deep copy" of current object using ByteBuffer methods.- Returns:
- deep copy of PDU
-
copyDataOutputStream
copy method creates a deep copy of current object using DataOutputStream methods.- Returns:
- deep copy of PDU
-
getMarshalledSize
public int getMarshalledSize()Returns size of this serialized (marshalled) object in bytes- Specified by:
getMarshalledSize
in interfaceMarshaller
- Overrides:
getMarshalledSize
in classDistributedEmissionsRegenerationFamilyPdu
- Returns:
- serialized size in bytes
- See Also:
-
setEmittingEntityId
Setter foremittingEntityId
- Parameters:
pEmittingEntityId
- new value of interest- Returns:
- same object to permit progressive setters
-
getEmittingEntityId
Getter foremittingEntityId
- Returns:
- value of interest
-
setEventID
Setter foreventID
- Parameters:
pEventID
- new value of interest- Returns:
- same object to permit progressive setters
-
getEventID
Getter foreventID
- Returns:
- value of interest
-
setLocation
Setter forlocation
- Parameters:
pLocation
- new value of interest- Returns:
- same object to permit progressive setters
-
getLocation
Getter forlocation
- Returns:
- value of interest
-
setSystemID
Setter forsystemID
- Parameters:
pSystemID
- new value of interest- Returns:
- same object to permit progressive setters
-
getSystemID
Getter forsystemID
- Returns:
- value of interest
-
setSystemDesignator
Setter forsystemDesignator
- Parameters:
pSystemDesignator
- new value of interest- Returns:
- same object to permit progressive setters
-
setSystemDesignator
Utility setter forsystemDesignator
- Parameters:
pSystemDesignator
- new value of interest- Returns:
- same object to permit progressive setters
-
getSystemDesignator
public byte getSystemDesignator()Getter forsystemDesignator
- Returns:
- value of interest
-
setSystemSpecificData
Setter forsystemSpecificData
- Parameters:
pSystemSpecificData
- new value of interest- Returns:
- same object to permit progressive setters
-
setSystemSpecificData
Utility setter forsystemSpecificData
- Parameters:
pSystemSpecificData
- new value of interest- Returns:
- same object to permit progressive setters
-
getSystemSpecificData
public byte getSystemSpecificData()Getter forsystemSpecificData
- Returns:
- value of interest
-
setFundamentalParameters
Setter forfundamentalParameters
- Parameters:
pFundamentalParameters
- new value of interest- Returns:
- same object to permit progressive setters
-
getFundamentalParameters
Getter forfundamentalParameters
- Returns:
- value of interest
-
marshal
Serializes an object to a DataOutputStream.- Specified by:
marshal
in interfaceMarshaller
- Overrides:
marshal
in classDistributedEmissionsRegenerationFamilyPdu
- Parameters:
dos
- the OutputStream- Throws:
Exception
- if something goes wrong- See Also:
-
unmarshal
Deserializes an object from a DataInputStream.- Specified by:
unmarshal
in interfaceMarshaller
- Overrides:
unmarshal
in classDistributedEmissionsRegenerationFamilyPdu
- Parameters:
dis
- the InputStream- Returns:
- marshalled serialized size in bytes
- Throws:
Exception
- if something goes wrong- See Also:
-
marshal
Packs an object into the ByteBuffer.- Specified by:
marshal
in interfaceMarshaller
- Overrides:
marshal
in classDistributedEmissionsRegenerationFamilyPdu
- Parameters:
byteBuffer
- The ByteBuffer at the position to begin writing- Throws:
BufferOverflowException
- if byteBuffer is too smallReadOnlyBufferException
- if byteBuffer is read onlyException
- ByteBuffer-generated exception- See Also:
-
unmarshal
Unpacks a Pdu from the underlying data.- Specified by:
unmarshal
in interfaceMarshaller
- Overrides:
unmarshal
in classDistributedEmissionsRegenerationFamilyPdu
- Parameters:
byteBuffer
- The ByteBuffer at the position to begin reading- Returns:
- marshalled serialized size in bytes
- Throws:
BufferUnderflowException
- if byteBuffer is too smallException
- ByteBuffer-generated exception- See Also:
-
equals
- Overrides:
equals
in classDistributedEmissionsRegenerationFamilyPdu
-
equalsImpl
Description copied from class:Pdu
Compare all fields that contribute to the state, ignoring transient and static fields, forthis
and the supplied object- Overrides:
equalsImpl
in classDistributedEmissionsRegenerationFamilyPdu
- Parameters:
obj
- the object to compare to- Returns:
- true if the objects are equal, false otherwise.
-
toString
- Overrides:
toString
in classDistributedEmissionsRegenerationFamilyPdu
-