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 byte
beamDataLength is an undescribed parameter...protected byte
beamNumber is an undescribed parameter...protected UAFundamentalParameter
fundamentalParameterData is an undescribed parameter...protected short
zero-filled array of padding bits for byte alignment and consistent sizing of PDU data -
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 objectbyte
Getter forbeamDataLength
byte
Getter forbeamNumber
Getter forfundamentalParameterData
int
Returns size of this serialized (marshalled) object in bytesshort
Getter forpadding
int
hashCode()
void
marshal
(DataOutputStream dos) Serializes an object to a DataOutputStream.void
marshal
(ByteBuffer byteBuffer) Packs an object into the ByteBuffer.setBeamDataLength
(byte pBeamDataLength) Setter forbeamDataLength
setBeamDataLength
(int pBeamDataLength) Utility setter forbeamDataLength
setBeamNumber
(byte pBeamNumber) Setter forbeamNumber
setBeamNumber
(int pBeamNumber) Utility setter forbeamNumber
setFundamentalParameterData
(UAFundamentalParameter pFundamentalParameterData) Setter forfundamentalParameterData
setPadding
(int pPadding) Utility setter forpadding
setPadding
(short pPadding) Setter forpadding
toString()
int
unmarshal
(DataInputStream dis) Deserializes an object from a DataInputStream.int
unmarshal
(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, forthis
and the supplied object- Parameters:
obj
- the object to compare to- Returns:
- true if the objects are equal, false otherwise.
-
toString
-
hashCode
-