|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfaa.tg.dis.ProtocolDataUnit
faa.tg.dis.StartPDU
public class StartPDU
This PDU notifies simulation participants of simulation start. A receiver entity id of 0xffff notifies all participants.See the source: StartPDU.java
ProtocolDataUnit| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class faa.tg.dis.ProtocolDataUnit |
|---|
ProtocolDataUnit.PduGenerator<E extends ProtocolDataUnit> |
| Field Summary | |
|---|---|
static java.lang.String |
CVS_VERSION_ID
The CVS Version ID |
private SimMgmtEntityId |
orig
The originators id. |
private int |
realHour
Not currently used. |
private int |
realTicks
Not currently used. |
private SimMgmtEntityId |
recv
The receivers id. |
private int |
reqId
Not currently used. |
private int |
simHour
Not currently used. |
private int |
simTicks
Not currently used. |
static short |
START_PDU_LENGTH
Length of this PDU. |
| Fields inherited from class faa.tg.dis.ProtocolDataUnit |
|---|
DIS_TIME_UNIT, ENTITY_INFO, exercise, EXP_ENTITY_MGMT, EXP_ENVIRONMENT_INFO, family, length, OTHER, SIM_MANAGEMENT, time, type, version, wordPadding |
| Constructor Summary | |
|---|---|
StartPDU()
Construct a StartPDU. |
|
| Method Summary | |
|---|---|
void |
readBytes(java.io.DataInput dis)
Reads a StartPDU from a DataInput as a sequence of bytes. |
void |
setOriginatorId(short site,
short app,
short id)
Sets the originator id. |
void |
setReceiverId(short site,
short app,
short id)
Sets the receiver id. |
java.lang.String |
toString()
Returns this PDU represented as a String. |
void |
writeBytes(java.io.DataOutput dos)
Writes a StartPDU to a DataOutput as a sequence of bytes. |
| Methods inherited from class faa.tg.dis.ProtocolDataUnit |
|---|
byteLookup, byteMap, createPDU, decodeByteArray, decodeByteArray, decodeDatagramPacket, generator, getExercise, getFamily, getLength, getTime, getType, getVersion, setExercise, setFamily, setLength, setTimeStamp, setType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CVS_VERSION_ID
public static final short START_PDU_LENGTH
private SimMgmtEntityId orig
private SimMgmtEntityId recv
private int realHour
private int realTicks
private int simHour
private int simTicks
private int reqId
| Constructor Detail |
|---|
public StartPDU()
| Method Detail |
|---|
public void setOriginatorId(short site,
short app,
short id)
site - the site id.app - the application id.id - the entity id.
public void setReceiverId(short site,
short app,
short id)
site - the site id.app - the application id.id - the entity id.
public void readBytes(java.io.DataInput dis)
throws java.io.IOException
readBytes in class ProtocolDataUnitdis - the DataInput
java.io.IOException
public void writeBytes(java.io.DataOutput dos)
throws java.io.IOException
writeBytes in class ProtocolDataUnitdos - the DataOutput
java.io.IOExceptionpublic java.lang.String toString()
toString in class ProtocolDataUnit
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||