faa.tg.dis
Class StartPDU

java.lang.Object
  extended by faa.tg.dis.ProtocolDataUnit
      extended by faa.tg.dis.StartPDU

public class StartPDU
extends ProtocolDataUnit

 This PDU notifies simulation participants of simulation start.
 A receiver entity id of 0xffff notifies all participants.
 
See the source: StartPDU.java

Version:
$Id: StartPDU.java,v 3.2 2008/12/17 23:53:16 lykensj Exp $
Author:
David D'Auria, SRC/FAA/ACT-510
See Also:
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

CVS_VERSION_ID

public static final java.lang.String CVS_VERSION_ID
The CVS Version ID

See Also:
Constant Field Values

START_PDU_LENGTH

public static final short START_PDU_LENGTH
Length of this PDU.

See Also:
Constant Field Values

orig

private SimMgmtEntityId orig
The originators id.


recv

private SimMgmtEntityId recv
The receivers id.


realHour

private int realHour
Not currently used.


realTicks

private int realTicks
Not currently used.


simHour

private int simHour
Not currently used.


simTicks

private int simTicks
Not currently used.


reqId

private int reqId
Not currently used.

Constructor Detail

StartPDU

public StartPDU()
Construct a StartPDU.

Method Detail

setOriginatorId

public void setOriginatorId(short site,
                            short app,
                            short id)
Sets the originator id.

Parameters:
site - the site id.
app - the application id.
id - the entity id.

setReceiverId

public void setReceiverId(short site,
                          short app,
                          short id)
Sets the receiver id.

Parameters:
site - the site id.
app - the application id.
id - the entity id.

readBytes

public void readBytes(java.io.DataInput dis)
               throws java.io.IOException
Reads a StartPDU from a DataInput as a sequence of bytes.

Overrides:
readBytes in class ProtocolDataUnit
Parameters:
dis - the DataInput
Throws:
java.io.IOException

writeBytes

public void writeBytes(java.io.DataOutput dos)
                throws java.io.IOException
Writes a StartPDU to a DataOutput as a sequence of bytes.

Overrides:
writeBytes in class ProtocolDataUnit
Parameters:
dos - the DataOutput
Throws:
java.io.IOException

toString

public java.lang.String toString()
Returns this PDU represented as a String.

Overrides:
toString in class ProtocolDataUnit