|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmil.navy.nps.dis.PduElement
mil.navy.nps.dis.ProtocolDataUnit
mil.navy.nps.dis.RadioCommunicationsFamily
mil.navy.nps.dis.TransmitterPdu
Transmitter PDU for DIS .
As with other PDUs, it knows how to serialize and deserialize itself from the wire. It also knows how to clone itself, and knows how to calculate its size when sent to the wire.
EntityCoordinate
,
EntityID
,
ModulationType
,
PduElement
,
ProtocolDataUnit
,
RadioCommunicationsFamily
,
RadioCommunicationsPduScriptNode
,
RadioEntityType
,
ReceiverPdu
,
SerializationInterface
,
SignalPdu
,
WorldCoordinate
,
AntennaPatternTypefield
,
BeamFunctionField
,
CryptoSystemfield
,
EmitterNameField
,
MajorModulationTypefield
,
ModulationParameterfield
,
SpreadSpectrumfield
,
TransmitStatefield
Field Summary | |
protected WorldCoordinate |
antennaLocation
|
protected UnsignedShort |
antennaPatternLength
|
protected UnsignedShort |
antennaPatternType
|
protected UnsignedShort |
cryptoKeyId
|
protected UnsignedShort |
cryptoSytem
|
protected EntityID |
entityID
|
protected UnsignedLong |
frequency
|
protected UnsignedByte |
inputSource
|
protected UnsignedByte |
lengthOfModulationParameters
|
protected ModulationType |
modulationType
|
protected UnsignedShort |
padding1
|
protected UnsignedShort |
padding2
|
protected UnsignedByte |
padding3
|
protected UnsignedInt |
power
|
protected RadioEntityType |
radioEntityType
|
protected UnsignedShort |
radioID
|
protected EntityCoordinate |
relativeAntennaLocation
|
static int |
sizeOf
Constant value--size of TransmitterPDU with header. |
protected UnsignedInt |
transmitFrequencyBandwidth
|
protected UnsignedByte |
transmitState
|
Fields inherited from class mil.navy.nps.dis.ProtocolDataUnit |
DEBUG, exerciseID, pduType, protocolFamily, protocolVersion, timeReceived, timestamp |
Constructor Summary | |
TransmitterPdu()
|
Method Summary | |
java.lang.Object |
clone()
Make a copy of the object. |
void |
deSerialize(java.io.DataInputStream inputStream)
Deserialize the input stream, and order is important here, since we need to read in the same order as specified by the DIS standard |
WorldCoordinate |
getAntennaLocation()
Gets AntennaLocation. |
UnsignedShort |
getAntennaPatternLength()
Gets AntennaPatternLength. |
UnsignedShort |
getAntennaPatternType()
Gets AntennaPatternType. |
UnsignedShort |
getCryptoKeyId()
Gets CryptoKeyId. |
UnsignedShort |
getCryptoSytem()
Gets CryptoSytem. |
EntityID |
getEntityID()
Gets entity ID. |
UnsignedLong |
getFrequency()
Gets Frequency. |
UnsignedByte |
getInputSource()
Gets InputSource. |
UnsignedByte |
getLengthOfModulationParameters()
Gets LengthOfModulationParameters. |
ModulationType |
getModulationType()
Gets ModulationType. |
UnsignedInt |
getPower()
Gets Power. |
RadioEntityType |
getRadioEntityType()
Gets RadioID. |
UnsignedShort |
getRadioID()
Gets RadioID. |
EntityCoordinate |
getRelativeAntennaLocation()
Gets RelativeAntennaLocation. |
UnsignedInt |
getTransmitFrequencyBandwidth()
Gets TransmitFrequencyBandwidth. |
UnsignedByte |
getTransmitState()
Gets TransmitState. |
int |
length()
Returns the length of the entity |
java.lang.String |
pduName()
Returns the PDU name - Transmitter PDU |
void |
printValues(int indentLevel,
java.io.PrintStream printStream)
Print the values of the following object out, with correct level of indentation on the page. |
void |
serialize(java.io.DataOutputStream outputStream)
Serialize and write out the output stream, order is important here since it needs to conform to the DIS standard |
void |
setAntennaLocation(double pX,
double pY,
double pZ)
Sets AntennaLocation |
void |
setAntennaLocation(WorldCoordinate pAntennaLocation)
Sets AntennaLocation Each Entity in a given exercise executing on a DIS application shall be assigned an Entity Identifier Record Unique to the exercise. |
void |
setAntennaPatternLength(UnsignedShort pAntennaPatternLength)
Sets AntennaPatternLength Each Entity in a given exercise executing on a DIS application shall be assigned an Entity Identifier Record Unique to the exercise. |
void |
setAntennaPatternType(UnsignedShort pAntennaPatternType)
Sets AntennaPatternType Each Entity in a given exercise executing on a DIS application shall be assigned an Entity Identifier Record Unique to the exercise. |
void |
setCryptoKeyId(UnsignedShort pCryptoKeyId)
Sets CryptoKeyId Each Entity in a given exercise executing on a DIS application shall be assigned an Entity Identifier Record Unique to the exercise. |
void |
setCryptoSytem(UnsignedShort pCryptoSytem)
Sets CryptoSytem Each Entity in a given exercise executing on a DIS application shall be assigned an Entity Identifier Record Unique to the exercise. |
void |
setEntityID(EntityID pEntityID)
Sets entity ID Each Entity in a given exercise executing on a DIS application shall be assigned an Entity Identifier Record Unique to the exercise. |
void |
setEntityID(short pSiteID,
short pApplicationID,
short pEntityID)
Sets setEntityID(short pSiteID, short pApplicationID, short pEntityID),accessor method. |
void |
setFrequency(UnsignedLong pFrequency)
Sets Frequency Each Entity in a given exercise executing on a DIS application shall be assigned an Entity Identifier Record Unique to the exercise. |
void |
setInputSource(UnsignedByte pInputSource)
Sets InputSource Each Entity in a given exercise executing on a DIS application shall be assigned an Entity Identifier Record Unique to the exercise. |
void |
setLengthOfModulationParameters(UnsignedByte pLengthOfModulationParameters)
Sets LengthOfModulationParameters Each Entity in a given exercise executing on a DIS application shall be assigned an Entity Identifier Record Unique to the exercise. |
void |
setModulationType(ModulationType pModulationType)
Sets ModulationType Each Entity in a given exercise executing on a DIS application shall be assigned an Entity Identifier Record Unique to the exercise. |
void |
setPower(UnsignedInt pPower)
Sets Power Each Entity in a given exercise executing on a DIS application shall be assigned an Entity Identifier Record Unique to the exercise. |
void |
setRadioEntityType(RadioEntityType pRadioEntityType)
Sets RadioEntityType Each Entity in a given exercise executing on a DIS application shall be assigned an Entity Identifier Record Unique to the exercise. |
void |
setRadioID(UnsignedShort pRadioID)
Sets RadioID. |
void |
setRelativeAntennaLocation(EntityCoordinate pRelativeAntennaLocation)
Sets RelativeAntennaLocation Each Entity in a given exercise executing on a DIS application shall be assigned an Entity Identifier Record Unique to the exercise. |
void |
setTransmitFrequencyBandwidth(UnsignedInt pTransmitFrequencyBandwidth)
Sets TransmitFrequencyBandwidth Each Entity in a given exercise executing on a DIS application shall be assigned an Entity Identifier Record Unique to the exercise. |
void |
setTransmitState(UnsignedByte pTransmitState)
Sets TransmitState Each Entity in a given exercise executing on a DIS application shall be assigned an Entity Identifier Record Unique to the exercise. |
java.lang.String |
toString()
String toString Used for debuging System.out.println("Transmitter Object. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected EntityID entityID
protected UnsignedShort radioID
protected RadioEntityType radioEntityType
protected UnsignedByte transmitState
protected UnsignedByte inputSource
protected UnsignedShort padding1
protected WorldCoordinate antennaLocation
protected EntityCoordinate relativeAntennaLocation
protected UnsignedShort antennaPatternType
protected UnsignedShort antennaPatternLength
protected UnsignedLong frequency
protected UnsignedInt transmitFrequencyBandwidth
protected UnsignedInt power
protected ModulationType modulationType
protected UnsignedShort cryptoSytem
protected UnsignedShort cryptoKeyId
protected UnsignedByte lengthOfModulationParameters
protected UnsignedShort padding2
protected UnsignedByte padding3
public static final int sizeOf
sizeOf = 832 bytes
Constructor Detail |
public TransmitterPdu()
Method Detail |
public java.lang.Object clone()
clone
in class RadioCommunicationsFamily
public void serialize(java.io.DataOutputStream outputStream)
serialize
in interface SerializationInterface
serialize
in class RadioCommunicationsFamily
java.lang.RuntimeException
- when IO error occurs.public void deSerialize(java.io.DataInputStream inputStream)
deSerialize
in interface SerializationInterface
deSerialize
in class RadioCommunicationsFamily
java.lang.RuntimeException
- when IO error occurs.public int length()
length
in class RadioCommunicationsFamily
public java.lang.String pduName()
pduName
in class RadioCommunicationsFamily
public void printValues(int indentLevel, java.io.PrintStream printStream)
printValues
in class RadioCommunicationsFamily
public EntityID getEntityID()
getEntityID
in class RadioCommunicationsFamily
public void setEntityID(EntityID pEntityID)
setEntityID
in class RadioCommunicationsFamily
pEntityID
- the firing entity IDpublic void setEntityID(short pSiteID, short pApplicationID, short pEntityID)
public UnsignedShort getRadioID()
getRadioID
in class RadioCommunicationsFamily
public void setRadioID(UnsignedShort pRadioID)
setRadioID
in class RadioCommunicationsFamily
pRadioID
- of radioIDpublic RadioEntityType getRadioEntityType()
public void setRadioEntityType(RadioEntityType pRadioEntityType)
pRadioEntityType
- of RadioEntityType.public UnsignedByte getTransmitState()
public void setTransmitState(UnsignedByte pTransmitState)
pTransmitState
- of TransmitState.public UnsignedByte getInputSource()
public void setInputSource(UnsignedByte pInputSource)
pInputSource
- of InputSource.public WorldCoordinate getAntennaLocation()
public void setAntennaLocation(WorldCoordinate pAntennaLocation)
pAntennaLocation
- of AntennaLocation.public void setAntennaLocation(double pX, double pY, double pZ)
public EntityCoordinate getRelativeAntennaLocation()
public void setRelativeAntennaLocation(EntityCoordinate pRelativeAntennaLocation)
pRelativeAntennaLocation
- of RelativeAntennaLocation.public UnsignedShort getAntennaPatternType()
public void setAntennaPatternType(UnsignedShort pAntennaPatternType)
pAntennaPatternType
- of AntennaPatternType.public UnsignedShort getAntennaPatternLength()
public void setAntennaPatternLength(UnsignedShort pAntennaPatternLength)
pAntennaPatternLength
- of AntennaPatternLength.public UnsignedLong getFrequency()
public void setFrequency(UnsignedLong pFrequency)
pFrequency
- of Frequency.public UnsignedInt getTransmitFrequencyBandwidth()
public void setTransmitFrequencyBandwidth(UnsignedInt pTransmitFrequencyBandwidth)
pTransmitFrequencyBandwidth
- of TransmitFrequencyBandwidth.public UnsignedInt getPower()
public void setPower(UnsignedInt pPower)
pPower
- of Power.public ModulationType getModulationType()
public void setModulationType(ModulationType pModulationType)
pModulationType
- of ModulationType.public UnsignedShort getCryptoSytem()
public void setCryptoSytem(UnsignedShort pCryptoSytem)
pCryptoSytem
- of CryptoSytem.public UnsignedShort getCryptoKeyId()
public void setCryptoKeyId(UnsignedShort pCryptoKeyId)
pCryptoKeyId
- of CryptoKeyId.public UnsignedByte getLengthOfModulationParameters()
public void setLengthOfModulationParameters(UnsignedByte pLengthOfModulationParameters)
pLengthOfModulationParameters
- of LengthOfModulationParameters.public java.lang.String toString()
toString
in class ProtocolDataUnit
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |