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 ByteArrayOutputStreambyteArrayOutputStream (baos) is used for marshal/unmarshal serializationprotected DataOutputStreamdataOutputStream (dos) is used for marshal/unmarshal serializationprotected EntityIDID of the entity that is the source of the emissionsprotected EventIdentifierNumber generated by the issuing simulation to associate realted events.protected FundamentalOperationalDatafundamental parametersprotected Vector3FloatLocation wrt entity.protected bytesystemDesignator is an undescribed parameter...protected SystemIdentifierSystem ID informationprotected bytesystemSpecificData 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.booleanbooleanequalsImpl(Object obj) Compare all fields that contribute to the state, ignoring transient and static fields, forthisand the supplied objectGetter foremittingEntityIdGetter foreventIDGetter forfundamentalParametersGetter forlocationintReturns size of this serialized (marshalled) object in bytesbyteGetter forsystemDesignatorGetter forsystemIDbyteGetter forsystemSpecificDatavoidmarshal(DataOutputStream dos) Serializes an object to a DataOutputStream.voidmarshal(ByteBuffer byteBuffer) Packs an object into the ByteBuffer.setEmittingEntityId(EntityID pEmittingEntityId) Setter foremittingEntityIdsetEventID(EventIdentifier pEventID) Setter foreventIDsetFundamentalParameters(FundamentalOperationalData pFundamentalParameters) Setter forfundamentalParameterssetLocation(Vector3Float pLocation) Setter forlocationsetSystemDesignator(byte pSystemDesignator) Setter forsystemDesignatorsetSystemDesignator(int pSystemDesignator) Utility setter forsystemDesignatorsetSystemID(SystemIdentifier pSystemID) Setter forsystemIDsetSystemSpecificData(byte pSystemSpecificData) Setter forsystemSpecificDatasetSystemSpecificData(int pSystemSpecificData) Utility setter forsystemSpecificDatatoString()intunmarshal(DataInputStream dis) Deserializes an object from a DataInputStream.intunmarshal(ByteBuffer byteBuffer) Unpacks a Pdu from the underlying data.Methods inherited from class edu.nps.moves.dis7.pdus.PduBase
getPadding, getPduStatus, setPadding, setPadding, setPduStatusMethods 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:
getMarshalledSizein interfaceMarshaller- Overrides:
getMarshalledSizein 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:
marshalin interfaceMarshaller- Overrides:
marshalin classDistributedEmissionsRegenerationFamilyPdu- Parameters:
dos- the OutputStream- Throws:
Exception- if something goes wrong- See Also:
-
unmarshal
Deserializes an object from a DataInputStream.- Specified by:
unmarshalin interfaceMarshaller- Overrides:
unmarshalin 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:
marshalin interfaceMarshaller- Overrides:
marshalin 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:
unmarshalin interfaceMarshaller- Overrides:
unmarshalin 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:
equalsin classDistributedEmissionsRegenerationFamilyPdu
-
equalsImpl
Description copied from class:PduCompare all fields that contribute to the state, ignoring transient and static fields, forthisand the supplied object- Overrides:
equalsImplin classDistributedEmissionsRegenerationFamilyPdu- Parameters:
obj- the object to compare to- Returns:
- true if the objects are equal, false otherwise.
-
toString
- Overrides:
toStringin classDistributedEmissionsRegenerationFamilyPdu
-