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
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 java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
SimulationManagementPdu
public SimulationManagementPdu()
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)