Package edu.nps.moves.dis7.pdus
Class UABeam
java.lang.Object
edu.nps.moves.dis7.pdus.UABeam
- All Implemented Interfaces:
Serializable
Information for one or more acoustic beams that the system has, including: length of the beam data, beam identification number for each beam, and fundamental parametric data used to define the entity’s active emissions. This field defines the active emission parameter index, beam scan pattern, orientation, and beamwidth, which can vary dynamically during system operation.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected bytebeamDataLength is an undescribed parameter...protected bytebeamNumber is an undescribed parameter...protected UAFundamentalParameterfundamentalParameterData is an undescribed parameter...protected shortzero-filled array of padding bits for byte alignment and consistent sizing of PDU data -
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 objectbyteGetter forbeamDataLengthbyteGetter forbeamNumberGetter forfundamentalParameterDataintReturns size of this serialized (marshalled) object in bytesshortGetter forpaddinginthashCode()voidmarshal(DataOutputStream dos) Serializes an object to a DataOutputStream.voidmarshal(ByteBuffer byteBuffer) Packs an object into the ByteBuffer.setBeamDataLength(byte pBeamDataLength) Setter forbeamDataLengthsetBeamDataLength(int pBeamDataLength) Utility setter forbeamDataLengthsetBeamNumber(byte pBeamNumber) Setter forbeamNumbersetBeamNumber(int pBeamNumber) Utility setter forbeamNumbersetFundamentalParameterData(UAFundamentalParameter pFundamentalParameterData) Setter forfundamentalParameterDatasetPadding(int pPadding) Utility setter forpaddingsetPadding(short pPadding) Setter forpaddingtoString()intunmarshal(DataInputStream dis) Deserializes an object from a DataInputStream.intunmarshal(ByteBuffer byteBuffer) Unpacks a Pdu from the underlying data.
-
Field Details
-
beamDataLength
protected byte beamDataLengthbeamDataLength is an undescribed parameter... -
beamNumber
protected byte beamNumberbeamNumber is an undescribed parameter... -
padding
protected short paddingzero-filled array of padding bits for byte alignment and consistent sizing of PDU data -
fundamentalParameterData
fundamentalParameterData is an undescribed parameter...
-
-
Constructor Details
-
UABeam
public UABeam()Constructor creates and configures a new instance object
-
-
Method Details
-
getMarshalledSize
public int getMarshalledSize()Returns size of this serialized (marshalled) object in bytes- Returns:
- serialized size in bytes
- See Also:
-
setBeamDataLength
Setter forbeamDataLength- Parameters:
pBeamDataLength- new value of interest- Returns:
- same object to permit progressive setters
-
setBeamDataLength
Utility setter forbeamDataLength- Parameters:
pBeamDataLength- new value of interest- Returns:
- same object to permit progressive setters
-
getBeamDataLength
-
setBeamNumber
Setter forbeamNumber- Parameters:
pBeamNumber- new value of interest- Returns:
- same object to permit progressive setters
-
setBeamNumber
Utility setter forbeamNumber- Parameters:
pBeamNumber- new value of interest- Returns:
- same object to permit progressive setters
-
getBeamNumber
-
setPadding
-
setPadding
-
getPadding
-
setFundamentalParameterData
Setter forfundamentalParameterData- Parameters:
pFundamentalParameterData- new value of interest- Returns:
- same object to permit progressive setters
-
getFundamentalParameterData
Getter forfundamentalParameterData- Returns:
- value of interest
-
marshal
Serializes an object to a DataOutputStream.- Parameters:
dos- the OutputStream- Throws:
Exception- if something goes wrong- See Also:
-
unmarshal
Deserializes an object from a DataInputStream.- 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.- 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.- 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
-
equalsImpl
Compare all fields that contribute to the state, ignoring transient and static fields, forthisand the supplied object- Parameters:
obj- the object to compare to- Returns:
- true if the objects are equal, false otherwise.
-
toString
-
hashCode
-