Package edu.nps.moves.dis7.pdus
Class FalseTargetsAttribute
java.lang.Object
edu.nps.moves.dis7.pdus.FalseTargetsAttribute
- All Implemented Interfaces:
Serializable
The False Targets attribute record shall be used to communicate discrete values that are associated with false targets jamming that cannot be referenced to an emitter mode. The values provided in the False Targets attri- bute record shall be considered valid only for the victim radar beams listed in the jamming beam's Track/Jam Data records (provided in the associated Electromagnetic Emission PDU). Section 6.2.21.3
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected byteThis field indicates the jamming beam generating the false targets.protected floatThis field shall specify the distance between false targets in meters.protected byteThis field indicates the emitter system generating the false targets.protected shortThis field indicates the jamming beam generating the false targets.protected floatSets the position of the first false target relative to the jamming entity in meters.protected floatThis field shall specify the time (in seconds) that a false target is to be held at the Maxi- mum Walk Distance before it resets to its initial position.protected floatThis field shall specify the distance (in meters) that a false target is to walk before it pauses in range.protected shortzero-filled array of padding bits for byte alignment and consistent sizing of PDU dataprotected bytepaddingprotected shortpadding3 is an undescribed parameter...protected shortThe length of the record in octets.protected intrecord typeprotected EEAttributeStateIndicatorThis field shall be used to indicate if false target data have changed since issuance of the last False Targets attribute record for this beam, if the False Targets attribute record is part of a heartbeat update to meet periodic update requirements or if false target data for the beam has ceased. uid 300protected floatThis field shall specify the rate (in meters per second squared) at which false tar- gets accelerate toward the victim radar.protected floatThis field shall specify the speed (in meters per second) at which false targets move toward the victim radar. -
Constructor Summary
ConstructorsConstructorDescriptionConstructor creates and configures a new instance object -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanequalsImpl(Object obj) Compare all fields that contribute to the state, ignoring transient and static fields, forthisand the supplied objectbyteGetter forbeamNumberfloatGetter forechoSpacingbyteGetter foremitterNumbershortGetter forfalseTargetCountfloatGetter forfirstTargetOffsetfloatGetter forkeepTimeintReturns size of this serialized (marshalled) object in bytesfloatGetter formaximumWalkDistanceshortGetter forpaddingbyteGetter forpadding2shortGetter forpadding3shortGetter forrecordLengthintGetter forrecordTypeGetter forstateIndicatorfloatGetter forwalkAccelerationfloatGetter forwalkSpeedvoidmarshal(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 forbeamNumbersetEchoSpacing(float pEchoSpacing) Setter forechoSpacingsetEmitterNumber(byte pEmitterNumber) Setter foremitterNumbersetEmitterNumber(int pEmitterNumber) Utility setter foremitterNumbersetFalseTargetCount(int pFalseTargetCount) Utility setter forfalseTargetCountsetFalseTargetCount(short pFalseTargetCount) Setter forfalseTargetCountsetFirstTargetOffset(float pFirstTargetOffset) Setter forfirstTargetOffsetsetKeepTime(float pKeepTime) Setter forkeepTimesetMaximumWalkDistance(float pMaximumWalkDistance) Setter formaximumWalkDistancesetPadding(int pPadding) Utility setter forpaddingsetPadding(short pPadding) Setter forpaddingsetPadding2(byte pPadding2) Setter forpadding2setPadding2(int pPadding2) Utility setter forpadding2setPadding3(int pPadding3) Utility setter forpadding3setPadding3(short pPadding3) Setter forpadding3setRecordLength(int pRecordLength) Utility setter forrecordLengthsetRecordLength(short pRecordLength) Setter forrecordLengthsetRecordType(int pRecordType) Setter forrecordTypesetStateIndicator(EEAttributeStateIndicator pStateIndicator) Setter forstateIndicatorsetWalkAcceleration(float pWalkAcceleration) Setter forwalkAccelerationsetWalkSpeed(float pWalkSpeed) Setter forwalkSpeedtoString()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 record in octets. -
padding
protected short paddingzero-filled array of padding bits for byte alignment and consistent sizing of PDU data -
emitterNumber
protected byte emitterNumberThis field indicates the emitter system generating the false targets. -
beamNumber
protected byte beamNumberThis field indicates the jamming beam generating the false targets. -
stateIndicator
This field shall be used to indicate if false target data have changed since issuance of the last False Targets attribute record for this beam, if the False Targets attribute record is part of a heartbeat update to meet periodic update requirements or if false target data for the beam has ceased. uid 300 -
padding2
protected byte padding2padding -
padding3
protected short padding3padding3 is an undescribed parameter... -
falseTargetCount
protected short falseTargetCountThis field indicates the jamming beam generating the false targets. -
walkSpeed
protected float walkSpeedThis field shall specify the speed (in meters per second) at which false targets move toward the victim radar. Negative values shall indicate a velocity away from the victim radar. -
walkAcceleration
protected float walkAccelerationThis field shall specify the rate (in meters per second squared) at which false tar- gets accelerate toward the victim radar. Negative values shall indicate an acceleration direction away from the victim radar. -
maximumWalkDistance
protected float maximumWalkDistanceThis field shall specify the distance (in meters) that a false target is to walk before it pauses in range. -
keepTime
protected float keepTimeThis field shall specify the time (in seconds) that a false target is to be held at the Maxi- mum Walk Distance before it resets to its initial position. -
echoSpacing
protected float echoSpacingThis field shall specify the distance between false targets in meters. Positive values for this field shall indicate that second and subsequent false targets are initially placed at increasing ranges from the victim radar. -
firstTargetOffset
protected float firstTargetOffsetSets the position of the first false target relative to the jamming entity in meters.
-
-
Constructor Details
-
FalseTargetsAttribute
public FalseTargetsAttribute()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
public int getRecordType()Getter forrecordType- Returns:
- value of interest
-
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
public short getRecordLength()Getter forrecordLength- Returns:
- value of interest
-
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
public short getPadding()Getter forpadding- Returns:
- value of interest
-
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
public byte getEmitterNumber()Getter foremitterNumber- Returns:
- value of interest
-
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
public byte getBeamNumber()Getter forbeamNumber- Returns:
- value of interest
-
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
public byte getPadding2()Getter forpadding2- Returns:
- value of interest
-
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
public short getPadding3()Getter forpadding3- Returns:
- value of interest
-
setFalseTargetCount
Setter forfalseTargetCount- Parameters:
pFalseTargetCount- new value of interest- Returns:
- same object to permit progressive setters
-
setFalseTargetCount
Utility setter forfalseTargetCount- Parameters:
pFalseTargetCount- new value of interest- Returns:
- same object to permit progressive setters
-
getFalseTargetCount
public short getFalseTargetCount()Getter forfalseTargetCount- Returns:
- value of interest
-
setWalkSpeed
Setter forwalkSpeed- Parameters:
pWalkSpeed- new value of interest- Returns:
- same object to permit progressive setters
-
getWalkSpeed
public float getWalkSpeed()Getter forwalkSpeed- Returns:
- value of interest
-
setWalkAcceleration
Setter forwalkAcceleration- Parameters:
pWalkAcceleration- new value of interest- Returns:
- same object to permit progressive setters
-
getWalkAcceleration
public float getWalkAcceleration()Getter forwalkAcceleration- Returns:
- value of interest
-
setMaximumWalkDistance
Setter formaximumWalkDistance- Parameters:
pMaximumWalkDistance- new value of interest- Returns:
- same object to permit progressive setters
-
getMaximumWalkDistance
public float getMaximumWalkDistance()Getter formaximumWalkDistance- Returns:
- value of interest
-
setKeepTime
Setter forkeepTime- Parameters:
pKeepTime- new value of interest- Returns:
- same object to permit progressive setters
-
getKeepTime
public float getKeepTime()Getter forkeepTime- Returns:
- value of interest
-
setEchoSpacing
Setter forechoSpacing- Parameters:
pEchoSpacing- new value of interest- Returns:
- same object to permit progressive setters
-
getEchoSpacing
public float getEchoSpacing()Getter forechoSpacing- Returns:
- value of interest
-
setFirstTargetOffset
Setter forfirstTargetOffset- Parameters:
pFirstTargetOffset- new value of interest- Returns:
- same object to permit progressive setters
-
getFirstTargetOffset
public float getFirstTargetOffset()Getter forfirstTargetOffset- 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
-