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 Vector3DoubleantennaLocationLocation of antennaprotected shortantennaPatternCountatenna pattern lengthprotected java.util.List<VariableTransmitterParameters>antennaPatternListvariable length list of antenna pattern recordsprotected TransmitterAntennaPatternTypeantennaPatternTypeantenna pattern type uid 167protected shortcryptoKeyIdcrypto system key identiferprotected TransmitterCryptoSystemcryptoSystemcrypto system enumeration uid 166protected longfrequencyfrequencyprotected RadioCommsHeaderheaderprotected TransmitterInputSourceinputSourceinput source uid 165protected bytemodulationParameterCounthow many modulation parameters we haveprotected java.util.List<ModulationParameters>modulationParametersListvariable length list of modulation parametersprotected ModulationTypemodulationTypemodulationprotected bytepadding1protected shortpadding2protected floatpowertransmission powerprotected RadioTyperadioEntityTypeType of radioprotected shortradioNumberparticular radio within an entityprotected Vector3FloatrelativeAntennaLocationrelative location of antennaprotected floattransmitFrequencyBandwidthtransmit frequency Bandwidthprotected TransmitterTransmitStatetransmitStatetransmit state uid 164protected shortvariableTransmitterParameterCountcount 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, setPduStatusMethods 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:
getMarshalledSizein interfaceedu.nps.moves.dis7.Marshaller- Overrides:
getMarshalledSizein 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:
marshalin interfaceedu.nps.moves.dis7.Marshaller- Overrides:
marshalin 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:
unmarshalin interfaceedu.nps.moves.dis7.Marshaller- Overrides:
unmarshalin 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:
marshalin interfaceedu.nps.moves.dis7.Marshaller- Overrides:
marshalin 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:
unmarshalin interfaceedu.nps.moves.dis7.Marshaller- Overrides:
unmarshalin 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:
equalsin classRadioCommunicationsFamilyPdu
-
equalsImpl
public boolean equalsImpl(java.lang.Object obj)Description copied from class:PduCompare all fields that contribute to the state, ignoring transient and static fields, forthisand the supplied object- Overrides:
equalsImplin classRadioCommunicationsFamilyPdu- Parameters:
obj- the object to compare to- Returns:
- true if the objects are equal, false otherwise.
-
toString
public java.lang.String toString()- Overrides:
toStringin classRadioCommunicationsFamilyPdu
-