Package edu.nps.moves.dis7.pdus
Class IFFPduLayer2Data
java.lang.Object
edu.nps.moves.dis7.pdus.AbstractIFFPduLayerData
edu.nps.moves.dis7.pdus.IFFPduLayer2Data
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BeamDataBeam dataprotected List<IFFFundamentalParameterData> Variable length list of fundamental parameters.protected LayerHeaderLayer headerprotected shortnumberOfIFFFundamentalParameterDataRecordsParameters is an undescribed parameter...protected bytesecondaryOpParameter1 is an undescribed parameter...protected bytesecondaryOpParameter2 is an undescribed parameter... -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanequalsImpl(Object obj) Compare all fields that contribute to the state, ignoring transient and static fields, forthisand the supplied objectGetter forbeamDataGetter forIFFFundamentalParameterDataRecordGetter forlayerHeaderintReturns size of this serialized (marshalled) object in bytesshortUtility method to get size of fieldbyteGetter forsecondaryOpParameter1byteGetter forsecondaryOpParameter2inthashCode()voidmarshal(DataOutputStream dos) Serializes an object to a DataOutputStream.voidmarshal(ByteBuffer byteBuffer) Packs an object into the ByteBuffer.setBeamData(BeamData pBeamData) Setter forbeamDatasetIFFFundamentalParameterDataRecord(List<IFFFundamentalParameterData> pIFFFundamentalParameterDataRecord) Setter forIFFFundamentalParameterDataRecordsetLayerHeader(LayerHeader pLayerHeader) Setter forlayerHeadersetNumberOfIFFFundamentalParameterDataRecordsParameters(short pNumberOfIFFFundamentalParameterDataRecordsParameters) Note that setting this value will not change the marshalled value.setSecondaryOpParameter1(byte pSecondaryOpParameter1) Setter forsecondaryOpParameter1setSecondaryOpParameter1(int pSecondaryOpParameter1) Utility setter forsecondaryOpParameter1setSecondaryOpParameter2(byte pSecondaryOpParameter2) Setter forsecondaryOpParameter2setSecondaryOpParameter2(int pSecondaryOpParameter2) Utility setter forsecondaryOpParameter2toString()intunmarshal(DataInputStream dis) Deserializes an object from a DataInputStream.intunmarshal(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:
getMarshalledSizein 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:
marshalin classAbstractIFFPduLayerData- Parameters:
dos- the OutputStream- Throws:
Exception- if something goes wrong- See Also:
-
unmarshal
Deserializes an object from a DataInputStream.- Overrides:
unmarshalin 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:
marshalin 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:
unmarshalin 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:
equalsin classAbstractIFFPduLayerData
-
equalsImpl
Description copied from class:AbstractIFFPduLayerDataCompare all fields that contribute to the state, ignoring transient and static fields, forthisand the supplied object- Overrides:
equalsImplin classAbstractIFFPduLayerData- Parameters:
obj- the object to compare to- Returns:
- true if the objects are equal, false otherwise.
-
toString
- Overrides:
toStringin classAbstractIFFPduLayerData
-
hashCode
-