Package edu.nps.moves.dis7.pdus
Class BlankingSector
java.lang.Object
edu.nps.moves.dis7.pdus.BlankingSector
- All Implemented Interfaces:
Serializable
The Blanking Sector attribute record may be used to convey persistent areas within a scan volume where emitter power for a specific active emitter beam is reduced to an insignificant value. Section 6.2.21.2
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected byteindicates the beam for which the blanking sector values are applicable.protected byteindicates the emitter system for which the blanking sector values are applicableprotected floatThis field is provided to indicate the left-most azimuth (clockwise in radians) for which emitted power is reduced.protected floatThis field is provided to indicate the lowest elevation (in radians) for which emit- ted power is reduced.protected shortzero-filled array of padding bits for byte alignment and consistent sizing of PDU dataprotected bytePaddingprotected longPadding, 32-bitsprotected shortThe length of the Blanking Sector attribute record in octets.protected intrecord typeprotected floatThis field shall specify the residual effective radiated power in the blanking sector in dBm.protected floatIndicate the right-most azimuth (clockwise in radians) for which emitted power is reduced.protected EEAttributeStateIndicatorindicate if blanking sector data have changed since issuance of the last Blanking Sector attribute record for this beam, if the Blanking Sector attribute record beam has ceased uid 300protected floatThis field is provided to indicate the highest elevation (in radians) for which emitted power is reduced. -
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 forbeamNumberbyteGetter foremitterNumberfloatGetter forleftAzimuthfloatGetter forlowerElevationintReturns size of this serialized (marshalled) object in bytesshortGetter forpaddingbyteGetter forpadding2longGetter forpadding3shortGetter forrecordLengthintGetter forrecordTypefloatGetter forresidualPowerfloatGetter forrightAzimuthGetter forstateIndicatorfloatGetter forupperElevationinthashCode()voidmarshal(DataOutputStream dos) Serializes an object to a DataOutputStream.voidmarshal(ByteBuffer byteBuffer) Packs an object into the ByteBuffer.setBeamNumber(byte pBeamNumber) Setter forbeamNumbersetBeamNumber(int pBeamNumber) Utility setter forbeamNumbersetEmitterNumber(byte pEmitterNumber) Setter foremitterNumbersetEmitterNumber(int pEmitterNumber) Utility setter foremitterNumbersetLeftAzimuth(float pLeftAzimuth) Setter forleftAzimuthsetLowerElevation(float pLowerElevation) Setter forlowerElevationsetPadding(int pPadding) Utility setter forpaddingsetPadding(short pPadding) Setter forpaddingsetPadding2(byte pPadding2) Setter forpadding2setPadding2(int pPadding2) Utility setter forpadding2setPadding3(int pPadding3) Utility setter forpadding3setPadding3(long pPadding3) Setter forpadding3setRecordLength(int pRecordLength) Utility setter forrecordLengthsetRecordLength(short pRecordLength) Setter forrecordLengthsetRecordType(int pRecordType) Setter forrecordTypesetResidualPower(float pResidualPower) Setter forresidualPowersetRightAzimuth(float pRightAzimuth) Setter forrightAzimuthsetStateIndicator(EEAttributeStateIndicator pStateIndicator) Setter forstateIndicatorsetUpperElevation(float pUpperElevation) Setter forupperElevationtoString()intunmarshal(DataInputStream dis) Deserializes an object from a DataInputStream.intunmarshal(ByteBuffer byteBuffer) Unpacks a Pdu from the underlying data.
-
Field Details
-
recordType
protected int recordTyperecord type -
recordLength
protected short recordLengthThe length of the Blanking Sector attribute record in octets. -
padding
protected short paddingzero-filled array of padding bits for byte alignment and consistent sizing of PDU data -
emitterNumber
protected byte emitterNumberindicates the emitter system for which the blanking sector values are applicable -
beamNumber
protected byte beamNumberindicates the beam for which the blanking sector values are applicable. -
stateIndicator
indicate if blanking sector data have changed since issuance of the last Blanking Sector attribute record for this beam, if the Blanking Sector attribute record beam has ceased uid 300 -
padding2
protected byte padding2Padding -
leftAzimuth
protected float leftAzimuthThis field is provided to indicate the left-most azimuth (clockwise in radians) for which emitted power is reduced. This angle is measured in the X-Y plane of the radar's entity coor- dinate system (see 1.4.3). The range of permissible values is 0 to 2PI, with zero pointing in the X- direction. -
rightAzimuth
protected float rightAzimuthIndicate the right-most azimuth (clockwise in radians) for which emitted power is reduced. This angle is measured in the X-Y plane of the radar's entity coordinate system (see 1.4.3). The range of permissible values is 0 to 2PI , with zero pointing in the X- direction. -
lowerElevation
protected float lowerElevationThis field is provided to indicate the lowest elevation (in radians) for which emit- ted power is reduced. This angle is measured positive upward with respect to the X-Y plane of the radar's entity coordinate system (see 1.4.3). The range of permissible values is -PI/2 to PI/2 -
upperElevation
protected float upperElevationThis field is provided to indicate the highest elevation (in radians) for which emitted power is reduced. This angle is measured positive upward with respect to the X-Y plane of the radar's entitycoordinatesystem(see1.4.3). The range of permissible values is -PI/2 to PI/2 -
residualPower
protected float residualPowerThis field shall specify the residual effective radiated power in the blanking sector in dBm. -
padding3
protected long padding3Padding, 32-bits
-
-
Constructor Details
-
BlankingSector
public BlankingSector()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:
-
setRecordType
Setter forrecordType- Parameters:
pRecordType- new value of interest- Returns:
- same object to permit progressive setters
-
getRecordType
-
setRecordLength
Setter forrecordLength- Parameters:
pRecordLength- new value of interest- Returns:
- same object to permit progressive setters
-
setRecordLength
Utility setter forrecordLength- Parameters:
pRecordLength- new value of interest- Returns:
- same object to permit progressive setters
-
getRecordLength
-
setPadding
Setter forpadding- Parameters:
pPadding- new value of interest- Returns:
- same object to permit progressive setters
-
setPadding
Utility setter forpadding- Parameters:
pPadding- new value of interest- Returns:
- same object to permit progressive setters
-
getPadding
-
setEmitterNumber
Setter foremitterNumber- Parameters:
pEmitterNumber- new value of interest- Returns:
- same object to permit progressive setters
-
setEmitterNumber
Utility setter foremitterNumber- Parameters:
pEmitterNumber- new value of interest- Returns:
- same object to permit progressive setters
-
getEmitterNumber
-
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
-
setStateIndicator
Setter forstateIndicator- Parameters:
pStateIndicator- new value of interest- Returns:
- same object to permit progressive setters
-
getStateIndicator
Getter forstateIndicator- Returns:
- value of interest
-
setPadding2
Setter forpadding2- Parameters:
pPadding2- new value of interest- Returns:
- same object to permit progressive setters
-
setPadding2
Utility setter forpadding2- Parameters:
pPadding2- new value of interest- Returns:
- same object to permit progressive setters
-
getPadding2
-
setLeftAzimuth
Setter forleftAzimuth- Parameters:
pLeftAzimuth- new value of interest- Returns:
- same object to permit progressive setters
-
getLeftAzimuth
-
setRightAzimuth
Setter forrightAzimuth- Parameters:
pRightAzimuth- new value of interest- Returns:
- same object to permit progressive setters
-
getRightAzimuth
-
setLowerElevation
Setter forlowerElevation- Parameters:
pLowerElevation- new value of interest- Returns:
- same object to permit progressive setters
-
getLowerElevation
-
setUpperElevation
Setter forupperElevation- Parameters:
pUpperElevation- new value of interest- Returns:
- same object to permit progressive setters
-
getUpperElevation
-
setResidualPower
Setter forresidualPower- Parameters:
pResidualPower- new value of interest- Returns:
- same object to permit progressive setters
-
getResidualPower
-
setPadding3
Setter forpadding3- Parameters:
pPadding3- new value of interest- Returns:
- same object to permit progressive setters
-
setPadding3
Utility setter forpadding3- Parameters:
pPadding3- new value of interest- Returns:
- same object to permit progressive setters
-
getPadding3
-
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
-