Class IFFPduLayer2Data
java.lang.Object
edu.nps.moves.dis7.pdus.AbstractIFFPduLayerData
edu.nps.moves.dis7.pdus.IFFPduLayer2Data
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BeamData
Beam dataprotected List
<IFFFundamentalParameterData> Variable length list of fundamental parameters.protected LayerHeader
Layer headerprotected short
numberOfIFFFundamentalParameterDataRecordsParameters is an undescribed parameter...protected byte
secondaryOpParameter1 is an undescribed parameter...protected byte
secondaryOpParameter2 is an undescribed parameter... -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
equalsImpl
(Object obj) Compare all fields that contribute to the state, ignoring transient and static fields, forthis
and the supplied objectGetter forbeamData
Getter forIFFFundamentalParameterDataRecord
Getter forlayerHeader
int
Returns size of this serialized (marshalled) object in bytesshort
Utility method to get size of fieldbyte
Getter forsecondaryOpParameter1
byte
Getter forsecondaryOpParameter2
int
hashCode()
void
marshal
(DataOutputStream dos) Serializes an object to a DataOutputStream.void
marshal
(ByteBuffer byteBuffer) Packs an object into the ByteBuffer.setBeamData
(BeamData pBeamData) Setter forbeamData
setIFFFundamentalParameterDataRecord
(List<IFFFundamentalParameterData> pIFFFundamentalParameterDataRecord) Setter forIFFFundamentalParameterDataRecord
setLayerHeader
(LayerHeader pLayerHeader) Setter forlayerHeader
setNumberOfIFFFundamentalParameterDataRecordsParameters
(short pNumberOfIFFFundamentalParameterDataRecordsParameters) Note that setting this value will not change the marshalled value.setSecondaryOpParameter1
(byte pSecondaryOpParameter1) Setter forsecondaryOpParameter1
setSecondaryOpParameter1
(int pSecondaryOpParameter1) Utility setter forsecondaryOpParameter1
setSecondaryOpParameter2
(byte pSecondaryOpParameter2) Setter forsecondaryOpParameter2
setSecondaryOpParameter2
(int pSecondaryOpParameter2) Utility setter forsecondaryOpParameter2
toString()
int
unmarshal
(DataInputStream dis) Deserializes an object from a DataInputStream.int
unmarshal
(ByteBuffer byteBuffer) Unpacks a Pdu from the underlying data.
-
Field Details
-
layerHeader
Layer header -
beamData
Beam data -
secondaryOpParameter1
protected byte secondaryOpParameter1secondaryOpParameter1 is an undescribed parameter... -
secondaryOpParameter2
protected byte secondaryOpParameter2secondaryOpParameter2 is an undescribed parameter... -
numberOfIFFFundamentalParameterDataRecordsParameters
protected short numberOfIFFFundamentalParameterDataRecordsParametersnumberOfIFFFundamentalParameterDataRecordsParameters is an undescribed parameter... -
IFFFundamentalParameterDataRecord
Variable length list of fundamental parameters.
-
-
Constructor Details
-
IFFPduLayer2Data
public IFFPduLayer2Data()Constructor creates and configures a new instance object
-
-
Method Details
-
getMarshalledSize
public int getMarshalledSize()Returns size of this serialized (marshalled) object in bytes- Overrides:
getMarshalledSize
in classAbstractIFFPduLayerData
- Returns:
- serialized size in bytes
- See Also:
-
setLayerHeader
Setter forlayerHeader
- Parameters:
pLayerHeader
- new value of interest- Returns:
- same object to permit progressive setters
-
getLayerHeader
-
setBeamData
Setter forbeamData
- Parameters:
pBeamData
- new value of interest- Returns:
- same object to permit progressive setters
-
getBeamData
-
setSecondaryOpParameter1
Setter forsecondaryOpParameter1
- Parameters:
pSecondaryOpParameter1
- new value of interest- Returns:
- same object to permit progressive setters
-
setSecondaryOpParameter1
Utility setter forsecondaryOpParameter1
- Parameters:
pSecondaryOpParameter1
- new value of interest- Returns:
- same object to permit progressive setters
-
getSecondaryOpParameter1
-
setSecondaryOpParameter2
Setter forsecondaryOpParameter2
- Parameters:
pSecondaryOpParameter2
- new value of interest- Returns:
- same object to permit progressive setters
-
setSecondaryOpParameter2
Utility setter forsecondaryOpParameter2
- Parameters:
pSecondaryOpParameter2
- new value of interest- Returns:
- same object to permit progressive setters
-
getSecondaryOpParameter2
-
getNumberOfIFFFundamentalParameterDataRecordsParameters
public short getNumberOfIFFFundamentalParameterDataRecordsParameters()Utility method to get size of field- Returns:
- size of field
-
setNumberOfIFFFundamentalParameterDataRecordsParameters
public IFFPduLayer2Data setNumberOfIFFFundamentalParameterDataRecordsParameters(short pNumberOfIFFFundamentalParameterDataRecordsParameters) Note that setting this value will not change the marshalled value. The list whose length this describes is used for that purpose. The getnumberOfIFFFundamentalParameterDataRecordsParameters method will also be based on the actual list length rather than this value. The method is simply here for java bean completeness.- Parameters:
pNumberOfIFFFundamentalParameterDataRecordsParameters
- passed parameter- Returns:
- this object
-
setIFFFundamentalParameterDataRecord
public IFFPduLayer2Data setIFFFundamentalParameterDataRecord(List<IFFFundamentalParameterData> pIFFFundamentalParameterDataRecord) Setter forIFFFundamentalParameterDataRecord
- Parameters:
pIFFFundamentalParameterDataRecord
- new value of interest- Returns:
- same object to permit progressive setters
-
getIFFFundamentalParameterDataRecord
Getter forIFFFundamentalParameterDataRecord
- Returns:
- value of interest
-
marshal
Serializes an object to a DataOutputStream.- Overrides:
marshal
in classAbstractIFFPduLayerData
- Parameters:
dos
- the OutputStream- Throws:
Exception
- if something goes wrong- See Also:
-
unmarshal
Deserializes an object from a DataInputStream.- Overrides:
unmarshal
in classAbstractIFFPduLayerData
- 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.- Overrides:
marshal
in classAbstractIFFPduLayerData
- 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.- Overrides:
unmarshal
in classAbstractIFFPduLayerData
- 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 classAbstractIFFPduLayerData
-
equalsImpl
Description copied from class:AbstractIFFPduLayerData
Compare all fields that contribute to the state, ignoring transient and static fields, forthis
and the supplied object- Overrides:
equalsImpl
in classAbstractIFFPduLayerData
- Parameters:
obj
- the object to compare to- Returns:
- true if the objects are equal, false otherwise.
-
toString
- Overrides:
toString
in classAbstractIFFPduLayerData
-
hashCode
-