Contents | Package | Class | Tree | Deprecated | Index | Help
PREV | NEXT SHOW LISTS | HIDE LISTS

Class mil.navy.nps.dis.SimulationManagementPdu

java.lang.Object
    |
    +----mil.navy.nps.dis.PduElement
            |
            +----mil.navy.nps.dis.ProtocolDataUnit
                    |
                    +----mil.navy.nps.dis.SimulationManagementPdu
Subclasses:
AcknowledgePdu, ActionRequestPdu, ActionResponsePdu, CommentPdu, CreateEntityPdu, DataPdu, DataQueryPdu, EventReportPdu, RemoveEntityPdu, SetDataPdu, StartResumePdu, StopFreezePdu

public abstract class SimulationManagementPdu
extends ProtocolDataUnit
Version:
1.0
Author:
Antonio Alexandre Rua (http://www.garfield.fe.up.pt/~alexrua)
Location:
http://www.stl.nps.navy.mil/dis-java-vrml/mil/navy/nps/dis/CommentPdu.java
Hierarchy Diagram:
Summary:
The Simulation Management PDU is an abstract class, for all simulation management family PDUs.
Explanation:
It encapsulates the specific header for the simulation Management PDUs which includes the PDU header, the originating entity identity, and The advantage is that, we define methods to deal with this header, and all the classes inherit from it, avoiding rewriting them a lot of times.
History:
16Sep97 /Antonio Alexandre Rua /New
8Dec97 /Ronan Fauglas /changes for documentation templates + complements in documentation
11Dec97 /Ronan Fauglas /changed access methods: thisVariable() --> getThisVariable()
References:
DIS-Java-VRML Working Group: http://www.stl.nps.navy.mil/dis-java-vrml/
DIS specification : IEEE 1278.1, Section 5.3.29, 4.4.5.1
See Also:
ProtocolDataUnit, PduElement, mil.navy.nps.util.SerializationInterface

Field Summary
EntityID  originatingEntityID
Identifier of the entity originating the PDU.
EntityID  receivingEntityID
Identifier of the entity receiving the PDU.
static int  sizeOf
Constant value--size of a Simulation Management PDU without headder.
 
Fields inherited from class mil.navy.nps.dis.ProtocolDataUnit
 DEBUG, exerciseID, pduType, protocolFamily, protocolVersion, sizeOf, timestamp
 

Constructor Summary
 SimulationManagementPdu()
 
 

Method Summary
java.lang.Object  clone()
 
void  deSerialize(java.io.DataInputStream inputStream)
 
EntityID  getOriginatingEntityID()
 
EntityID  getReceivingEntityID()
 
int  length()
 
java.lang.String  PDUName()
Returns the name of this PDU
void  printValues(int indentLevel, java.io.PrintStream printStream)
 
void  serialize(java.io.DataOutputStream outputStream)
 
void  setOriginatingEntityID(EntityID pEntityID)
 
void  setReceivingEntityID(EntityID pEntityID)
 
 
Methods inherited from class mil.navy.nps.dis.ProtocolDataUnit
 , clone, datagramToPdu, deSerialize, getExerciseID, getPduType, getProtocolFamily, getProtocolVersion, getTimestamp, getVRMLTimestamp, length, makeTimestampCurrent, PDUName, printValues, serialize, setExerciseID, setExerciseID, setPduType, setPduType, setProtocolFamily, setProtocolFamily, setProtocolVersion, setProtocolVersion, setSimulationStartTime, setTimestamp, setTimestamp
 
Methods inherited from class mil.navy.nps.dis.PduElement
 clone, deSerialize, length, printValues, serialize
 
Methods inherited from class java.lang.Object
 clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

originatingEntityID

protected EntityID originatingEntityID
Identifier of the entity originating the PDU. The semantics depend on derived class type.

receivingEntityID

protected EntityID receivingEntityID
Identifier of the entity receiving the PDU. The semantics depend on derived class type.

sizeOf

public static final int sizeOf
Constant value--size of a Simulation Management PDU without headder. sizeOf = 12 bytes
Constructor Detail

SimulationManagementPdu

public SimulationManagementPdu()
Method Detail

serialize

public void serialize(java.io.DataOutputStream outputStream)
Overrides:
serialize in class ProtocolDataUnit

deSerialize

public void deSerialize(java.io.DataInputStream inputStream)
Overrides:
deSerialize in class ProtocolDataUnit

clone

public java.lang.Object clone()
Overrides:
clone in class ProtocolDataUnit

length

public int length()
Overrides:
length in class ProtocolDataUnit

PDUName

public abstract java.lang.String PDUName()
Returns the name of this PDU
Returns:
the name of this PDU
Overrides:
PDUName in class ProtocolDataUnit

printValues

public void printValues(int indentLevel,
                        java.io.PrintStream printStream)
Overrides:
printValues in class ProtocolDataUnit

getOriginatingEntityID

public EntityID getOriginatingEntityID()

setOriginatingEntityID

public void setOriginatingEntityID(EntityID pEntityID)

getReceivingEntityID

public EntityID getReceivingEntityID()

setReceivingEntityID

public void setReceivingEntityID(EntityID pEntityID)

Contents | Package | Class | Tree | Deprecated | Index | Help
PREV | NEXT SHOW LISTS | HIDE LISTS