Package edu.nps.moves.dis7.pdus
Class EEFundamentalParameterData
java.lang.Object
edu.nps.moves.dis7.pdus.EEFundamentalParameterData
- All Implemented Interfaces:
Serializable
Contains electromagnetic emission regeneration parameters that are variable throught a scenario. Section 6.2.22.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatEffective radiated power for the emission in DdBm.protected floatcenter frequency of the emission in hertz.protected floatBandwidth of the frequencies corresponding to the fequency field.protected floatAverage repetition frequency of the emission in hertz.protected floatAverage pulse width of the emission in microseconds. -
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 objectfloatGetter foreffectiveRadiatedPowerfloatGetter forfrequencyfloatGetter forfrequencyRangeintReturns size of this serialized (marshalled) object in bytesfloatGetter forpulseRepetitionFrequencyfloatGetter forpulseWidthinthashCode()voidmarshal(DataOutputStream dos) Serializes an object to a DataOutputStream.voidmarshal(ByteBuffer byteBuffer) Packs an object into the ByteBuffer.setEffectiveRadiatedPower(float pEffectiveRadiatedPower) Setter foreffectiveRadiatedPowersetFrequency(float pFrequency) Setter forfrequencysetFrequencyRange(float pFrequencyRange) Setter forfrequencyRangesetPulseRepetitionFrequency(float pPulseRepetitionFrequency) Setter forpulseRepetitionFrequencysetPulseWidth(float pPulseWidth) Setter forpulseWidthtoString()intunmarshal(DataInputStream dis) Deserializes an object from a DataInputStream.intunmarshal(ByteBuffer byteBuffer) Unpacks a Pdu from the underlying data.
-
Field Details
-
frequency
protected float frequencycenter frequency of the emission in hertz. -
frequencyRange
protected float frequencyRangeBandwidth of the frequencies corresponding to the fequency field. -
effectiveRadiatedPower
protected float effectiveRadiatedPowerEffective radiated power for the emission in DdBm. For a radar noise jammer, indicates the peak of the transmitted power. -
pulseRepetitionFrequency
protected float pulseRepetitionFrequencyAverage repetition frequency of the emission in hertz. -
pulseWidth
protected float pulseWidthAverage pulse width of the emission in microseconds.
-
-
Constructor Details
-
EEFundamentalParameterData
public EEFundamentalParameterData()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:
-
setFrequency
Setter forfrequency- Parameters:
pFrequency- new value of interest- Returns:
- same object to permit progressive setters
-
getFrequency
-
setFrequencyRange
Setter forfrequencyRange- Parameters:
pFrequencyRange- new value of interest- Returns:
- same object to permit progressive setters
-
getFrequencyRange
-
setEffectiveRadiatedPower
Setter foreffectiveRadiatedPower- Parameters:
pEffectiveRadiatedPower- new value of interest- Returns:
- same object to permit progressive setters
-
getEffectiveRadiatedPower
public float getEffectiveRadiatedPower()Getter foreffectiveRadiatedPower- Returns:
- value of interest
-
setPulseRepetitionFrequency
Setter forpulseRepetitionFrequency- Parameters:
pPulseRepetitionFrequency- new value of interest- Returns:
- same object to permit progressive setters
-
getPulseRepetitionFrequency
public float getPulseRepetitionFrequency()Getter forpulseRepetitionFrequency- Returns:
- value of interest
-
setPulseWidth
Setter forpulseWidth- Parameters:
pPulseWidth- new value of interest- Returns:
- same object to permit progressive setters
-
getPulseWidth
-
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
-