Package edu.nps.moves.dis7.pdus
Class ModulationType
java.lang.Object
edu.nps.moves.dis7.pdus.ModulationType
- All Implemented Interfaces:
Serializable
Information about the type of modulation used for radio transmission. 6.2.59
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected shortprovide certain detailed information depending upon the major modulation type, uid 156-162protected TransmitterMajorModulationThe major classification of the modulation type.protected TransmitterModulationTypeSystemThe radio system associated with this Transmitter PDU and shall be used as the basis to interpret other fields whose values depend on a specific radio system. uid =163protected shortThis field shall indicate the spread spectrum technique or combination of spread spectrum techniques in use. -
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 objectshortGetter fordetailGetter formajorModulationintReturns size of this serialized (marshalled) object in bytesGetter forradioSystemshortGetter forspreadSpectruminthashCode()voidmarshal(DataOutputStream dos) Serializes an object to a DataOutputStream.voidmarshal(ByteBuffer byteBuffer) Packs an object into the ByteBuffer.setDetail(int pDetail) Utility setter fordetailsetDetail(short pDetail) Setter fordetailsetMajorModulation(TransmitterMajorModulation pMajorModulation) Setter formajorModulationsetRadioSystem(TransmitterModulationTypeSystem pRadioSystem) Setter forradioSystemsetSpreadSpectrum(int pSpreadSpectrum) Utility setter forspreadSpectrumsetSpreadSpectrum(short pSpreadSpectrum) Setter forspreadSpectrumtoString()intunmarshal(DataInputStream dis) Deserializes an object from a DataInputStream.intunmarshal(ByteBuffer byteBuffer) Unpacks a Pdu from the underlying data.
-
Field Details
-
spreadSpectrum
protected short spreadSpectrumThis field shall indicate the spread spectrum technique or combination of spread spectrum techniques in use. Bit field. 0=freq hopping, 1=psuedo noise, time hopping=2, reamining bits unused -
majorModulation
The major classification of the modulation type. UID 155 -
detail
protected short detailprovide certain detailed information depending upon the major modulation type, uid 156-162 -
radioSystem
The radio system associated with this Transmitter PDU and shall be used as the basis to interpret other fields whose values depend on a specific radio system. uid =163
-
-
Constructor Details
-
ModulationType
public ModulationType()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:
-
setSpreadSpectrum
Setter forspreadSpectrum- Parameters:
pSpreadSpectrum- new value of interest- Returns:
- same object to permit progressive setters
-
setSpreadSpectrum
Utility setter forspreadSpectrum- Parameters:
pSpreadSpectrum- new value of interest- Returns:
- same object to permit progressive setters
-
getSpreadSpectrum
-
setMajorModulation
Setter formajorModulation- Parameters:
pMajorModulation- new value of interest- Returns:
- same object to permit progressive setters
-
getMajorModulation
Getter formajorModulation- Returns:
- value of interest
-
setDetail
Setter fordetail- Parameters:
pDetail- new value of interest- Returns:
- same object to permit progressive setters
-
setDetail
Utility setter fordetail- Parameters:
pDetail- new value of interest- Returns:
- same object to permit progressive setters
-
getDetail
-
setRadioSystem
Setter forradioSystem- Parameters:
pRadioSystem- new value of interest- Returns:
- same object to permit progressive setters
-
getRadioSystem
Getter forradioSystem- 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
-