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 short
provide certain detailed information depending upon the major modulation type, uid 156-162protected TransmitterMajorModulation
The major classification of the modulation type.protected TransmitterModulationTypeSystem
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 =163protected short
This field shall indicate the spread spectrum technique or combination of spread spectrum techniques in use. -
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 objectshort
Getter fordetail
Getter formajorModulation
int
Returns size of this serialized (marshalled) object in bytesGetter forradioSystem
short
Getter forspreadSpectrum
int
hashCode()
void
marshal
(DataOutputStream dos) Serializes an object to a DataOutputStream.void
marshal
(ByteBuffer byteBuffer) Packs an object into the ByteBuffer.setDetail
(int pDetail) Utility setter fordetail
setDetail
(short pDetail) Setter fordetail
setMajorModulation
(TransmitterMajorModulation pMajorModulation) Setter formajorModulation
setRadioSystem
(TransmitterModulationTypeSystem pRadioSystem) Setter forradioSystem
setSpreadSpectrum
(int pSpreadSpectrum) Utility setter forspreadSpectrum
setSpreadSpectrum
(short pSpreadSpectrum) Setter forspreadSpectrum
toString()
int
unmarshal
(DataInputStream dis) Deserializes an object from a DataInputStream.int
unmarshal
(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, forthis
and the supplied object- Parameters:
obj
- the object to compare to- Returns:
- true if the objects are equal, false otherwise.
-
toString
-
hashCode
-