Package edu.nps.moves.dis7
Class TransmitterPdu
java.lang.Object
edu.nps.moves.dis7.Pdu
edu.nps.moves.dis7.PduBase
edu.nps.moves.dis7.RadioCommunicationsFamilyPdu
edu.nps.moves.dis7.TransmitterPdu
- All Implemented Interfaces:
edu.nps.moves.dis7.Marshaller
,java.io.Serializable
public class TransmitterPdu extends RadioCommunicationsFamilyPdu implements java.io.Serializable
5.8.3 Communicates the state of a particular radio transmitter or simple intercom.
IEEE Std 1278.1-2012, IEEE Standard for Distributed Interactive Simulation—Application Protocols
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected Vector3Double
antennaLocation
Location of antennaprotected short
antennaPatternCount
atenna pattern lengthprotected java.util.List<VariableTransmitterParameters>
antennaPatternList
variable length list of antenna pattern recordsprotected TransmitterAntennaPatternType
antennaPatternType
antenna pattern type uid 167protected short
cryptoKeyId
crypto system key identiferprotected TransmitterCryptoSystem
cryptoSystem
crypto system enumeration uid 166protected long
frequency
frequencyprotected RadioCommsHeader
header
protected TransmitterInputSource
inputSource
input source uid 165protected byte
modulationParameterCount
how many modulation parameters we haveprotected java.util.List<ModulationParameters>
modulationParametersList
variable length list of modulation parametersprotected ModulationType
modulationType
modulationprotected byte
padding1
protected short
padding2
protected float
power
transmission powerprotected RadioType
radioEntityType
Type of radioprotected short
radioNumber
particular radio within an entityprotected Vector3Float
relativeAntennaLocation
relative location of antennaprotected float
transmitFrequencyBandwidth
transmit frequency Bandwidthprotected TransmitterTransmitState
transmitState
transmit state uid 164protected short
variableTransmitterParameterCount
count fieldFields inherited from class edu.nps.moves.dis7.Pdu
exerciseID, length, pduType, protocolFamily, protocolVersion, timestamp
-
Constructor Summary
Constructors Constructor Description TransmitterPdu()
Constructor -
Method Summary
Methods inherited from class edu.nps.moves.dis7.PduBase
getPadding, getPduStatus, setPadding, setPduStatus
Methods inherited from class edu.nps.moves.dis7.Pdu
getExerciseID, getLength, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, marshal, setExerciseID, setLength, setPduType, setProtocolFamily, setProtocolVersion, setTimestamp
-
Field Details
-
header
-
radioNumber
protected short radioNumberparticular radio within an entity -
radioEntityType
Type of radio -
transmitState
transmit state uid 164 -
inputSource
input source uid 165 -
variableTransmitterParameterCount
protected short variableTransmitterParameterCountcount field -
antennaLocation
Location of antenna -
relativeAntennaLocation
relative location of antenna -
antennaPatternType
antenna pattern type uid 167 -
antennaPatternCount
protected short antennaPatternCountatenna pattern length -
frequency
protected long frequencyfrequency -
transmitFrequencyBandwidth
protected float transmitFrequencyBandwidthtransmit frequency Bandwidth -
power
protected float powertransmission power -
modulationType
modulation -
cryptoSystem
crypto system enumeration uid 166 -
cryptoKeyId
protected short cryptoKeyIdcrypto system key identifer -
modulationParameterCount
protected byte modulationParameterCounthow many modulation parameters we have -
padding1
protected byte padding1 -
padding2
protected short padding2 -
modulationParametersList
variable length list of modulation parameters -
antennaPatternList
variable length list of antenna pattern records
-
-
Constructor Details
-
TransmitterPdu
public TransmitterPdu()Constructor
-
-
Method Details
-
getMarshalledSize
public int getMarshalledSize()Returns the size of this serialized object in bytes- Specified by:
getMarshalledSize
in interfaceedu.nps.moves.dis7.Marshaller
- Overrides:
getMarshalledSize
in classRadioCommunicationsFamilyPdu
-
setHeader
Setter forheader
-
getHeader
Getter forheader
-
setRadioNumber
Setter forradioNumber
-
getRadioNumber
public short getRadioNumber()Getter forradioNumber
-
setRadioEntityType
Setter forradioEntityType
-
getRadioEntityType
Getter forradioEntityType
-
setTransmitState
Setter fortransmitState
-
getTransmitState
Getter fortransmitState
-
setInputSource
Setter forinputSource
-
getInputSource
Getter forinputSource
-
setVariableTransmitterParameterCount
public TransmitterPdu setVariableTransmitterParameterCount(short pVariableTransmitterParameterCount)Setter forvariableTransmitterParameterCount
-
getVariableTransmitterParameterCount
public short getVariableTransmitterParameterCount()Getter forvariableTransmitterParameterCount
-
setAntennaLocation
Setter forantennaLocation
-
getAntennaLocation
Getter forantennaLocation
-
setRelativeAntennaLocation
Setter forrelativeAntennaLocation
-
getRelativeAntennaLocation
Getter forrelativeAntennaLocation
-
setAntennaPatternType
Setter forantennaPatternType
-
getAntennaPatternType
Getter forantennaPatternType
-
setFrequency
Setter forfrequency
-
getFrequency
public long getFrequency()Getter forfrequency
-
setTransmitFrequencyBandwidth
Setter fortransmitFrequencyBandwidth
-
getTransmitFrequencyBandwidth
public float getTransmitFrequencyBandwidth()Getter fortransmitFrequencyBandwidth
-
setPower
Setter forpower
-
getPower
public float getPower()Getter forpower
-
setModulationType
Setter formodulationType
-
getModulationType
Getter formodulationType
-
setCryptoSystem
Setter forcryptoSystem
-
getCryptoSystem
Getter forcryptoSystem
-
setCryptoKeyId
Setter forcryptoKeyId
-
getCryptoKeyId
public short getCryptoKeyId()Getter forcryptoKeyId
-
setPadding1
Setter forpadding1
-
getPadding1
public byte getPadding1()Getter forpadding1
-
setPadding2
Setter forpadding2
-
getPadding2
public short getPadding2()Getter forpadding2
-
setModulationParametersList
public TransmitterPdu setModulationParametersList(java.util.List<ModulationParameters> pModulationParametersList)Setter formodulationParametersList
-
getModulationParametersList
Getter formodulationParametersList
-
setAntennaPatternList
public TransmitterPdu setAntennaPatternList(java.util.List<VariableTransmitterParameters> pAntennaPatternList)Setter forantennaPatternList
-
getAntennaPatternList
Getter forantennaPatternList
-
marshal
public void marshal(java.io.DataOutputStream dos) throws java.lang.ExceptionSerializes an object to a DataOutputStream.- Specified by:
marshal
in interfaceedu.nps.moves.dis7.Marshaller
- Overrides:
marshal
in classRadioCommunicationsFamilyPdu
- Parameters:
dos
- the OutputStream- Throws:
java.lang.Exception
- if something goes wrong- See Also:
DataOutputStream
-
unmarshal
public int unmarshal(java.io.DataInputStream dis) throws java.lang.ExceptionUnserializes an object from a DataInputStream.- Specified by:
unmarshal
in interfaceedu.nps.moves.dis7.Marshaller
- Overrides:
unmarshal
in classRadioCommunicationsFamilyPdu
- Parameters:
dis
- the InputStream- Returns:
- unmarshalled size
- Throws:
java.lang.Exception
- if something goes wrong- See Also:
DataInputStream
-
marshal
public void marshal(java.nio.ByteBuffer buff) throws java.lang.ExceptionPacks an object into the ByteBuffer.- Specified by:
marshal
in interfaceedu.nps.moves.dis7.Marshaller
- Overrides:
marshal
in classRadioCommunicationsFamilyPdu
- Parameters:
buff
- The ByteBuffer at the position to begin writing- Throws:
java.nio.BufferOverflowException
- if buff is too smalljava.nio.ReadOnlyBufferException
- if buff is read onlyjava.lang.Exception
- ByteBuffer-generated exception- See Also:
ByteBuffer
-
unmarshal
public int unmarshal(java.nio.ByteBuffer buff) throws java.lang.ExceptionUnpacks a Pdu from the underlying data.- Specified by:
unmarshal
in interfaceedu.nps.moves.dis7.Marshaller
- Overrides:
unmarshal
in classRadioCommunicationsFamilyPdu
- Parameters:
buff
- The ByteBuffer at the position to begin reading- Returns:
- marshalled size
- Throws:
java.nio.BufferUnderflowException
- if buff is too smalljava.lang.Exception
- ByteBuffer-generated exception- See Also:
ByteBuffer
-
equals
public boolean equals(java.lang.Object obj)- Overrides:
equals
in classRadioCommunicationsFamilyPdu
-
equalsImpl
public boolean equalsImpl(java.lang.Object obj)Description copied from class:Pdu
Compare all fields that contribute to the state, ignoring transient and static fields, forthis
and the supplied object- Overrides:
equalsImpl
in classRadioCommunicationsFamilyPdu
- Parameters:
obj
- the object to compare to- Returns:
- true if the objects are equal, false otherwise.
-
toString
public java.lang.String toString()- Overrides:
toString
in classRadioCommunicationsFamilyPdu
-