|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
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.SimulationManagementFamily
mil.navy.nps.dis.StopFreezePdu
Simulation management PDU to stop or freeze an exercise.
ProtocolDataUnit
,
PduElement
,
SerializationInterface
Field Summary | |
protected static StopFreezePdu |
exemplar
An "exemplar" object, which is filled out to the state that is needed most of the time. |
protected UnsignedByte |
frozenBehavior
Frozen Behavior - This field shall specify the internal behavior of the simulation and its appearance while frozen to the other participants of the exercise. |
protected UnsignedShort |
padding
A 16 bit Padding Field. |
protected ClockTime |
realWorldTime
Real-World Time - This field shall specify the real-world time (UTC) at which the entity is to stop/freeze in the exercise. |
protected UnsignedByte |
reason
Reason - This field shall specify the reason that an entity or exercise was stopped/frozen. |
protected UnsignedInt |
requestID
Request ID - This field shall identify the specific and unique stop/freeze request being made by the simulation manager. |
static int |
sizeOf
Constant value--size of a Stop/Freeze PDU including header. |
Fields inherited from class mil.navy.nps.dis.SimulationManagementFamily |
originatingEntityID, receivingEntityID |
Fields inherited from class mil.navy.nps.dis.ProtocolDataUnit |
DEBUG, exerciseID, pduType, protocolFamily, protocolVersion, timeReceived, timestamp |
Constructor Summary | |
StopFreezePdu()
Default constructor. |
Method Summary | |
java.lang.Object |
clone()
Makes deep copies of all the instance variables, so we don't have two objects pointing to the same data. |
void |
deSerialize(java.io.DataInputStream inputStream)
Deserialize our data from the input stream. |
StopFreezePdu |
getExemplar()
|
UnsignedByte |
getFrozenBehavior()
|
ClockTime |
getRealWorldTime()
|
UnsignedByte |
getReason()
|
UnsignedInt |
getRequestID()
|
int |
length()
Returns the length of the PDU header. |
java.lang.String |
pduName()
Returns the name of this PDU |
void |
printValues(int indentLevel,
java.io.PrintStream printStream)
Prints the generated serialized object for debugging. |
void |
serialize(java.io.DataOutputStream outputStream)
Serialize our data out to the stream. |
void |
setExemplar(StopFreezePdu newExemplar)
|
void |
setFrozenBehavior(int pFrozenBehavior)
|
void |
setFrozenBehavior(UnsignedByte pFrozenBehavior)
|
void |
setRealWorldTime(ClockTime pRealWorldTime)
|
void |
setRealWorldTime(long pHour,
long pTimePastHour)
|
void |
setReason(int pReason)
|
void |
setReason(UnsignedByte pReason)
|
void |
setRequestID(int pRequestID)
|
void |
setRequestID(UnsignedInt pRequestID)
|
Methods inherited from class mil.navy.nps.dis.SimulationManagementFamily |
getOriginatingEntityID, getReceivingEntityID, setOriginatingEntityID, setReceivingEntityID |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected ClockTime realWorldTime
protected UnsignedByte reason
protected UnsignedByte frozenBehavior
protected UnsignedShort padding
protected UnsignedInt requestID
public static final int sizeOf
sizeOf = 40 bytes
protected static StopFreezePdu exemplar
Constructor Detail |
public StopFreezePdu()
Method Detail |
public void serialize(java.io.DataOutputStream outputStream)
PduElement
super.Serialize()
to make sure
the superclasse's data is serialized out. The order
in which instance variables are serialized is significant. They must
be serialized in the same order they appear in the DIS
spec.
Prints out some information during execution if debugging flag is set.
serialize
in interface SerializationInterface
serialize
in class SimulationManagementFamily
public void deSerialize(java.io.DataInputStream inputStream)
PduElement
super.deSerialize
to make sure
the superclass's data are properly affected. The order
in which instance variables are serialized is significant. They must
be deSerialized in the same order as they have been serialized as specified by the DIS spec.
deSerialize
in interface SerializationInterface
deSerialize
in class SimulationManagementFamily
public java.lang.Object clone()
PduElement
clone
in class SimulationManagementFamily
public int length()
ProtocolDataUnit
length
in class SimulationManagementFamily
public java.lang.String pduName()
SimulationManagementFamily
pduName
in class SimulationManagementFamily
public void printValues(int indentLevel, java.io.PrintStream printStream)
PduElement
printValues
in class SimulationManagementFamily
public StopFreezePdu getExemplar()
public void setExemplar(StopFreezePdu newExemplar)
public ClockTime getRealWorldTime()
public void setRealWorldTime(ClockTime pRealWorldTime)
public void setRealWorldTime(long pHour, long pTimePastHour)
public UnsignedByte getReason()
public void setReason(UnsignedByte pReason)
public void setReason(int pReason)
public UnsignedByte getFrozenBehavior()
public void setFrozenBehavior(UnsignedByte pFrozenBehavior)
public void setFrozenBehavior(int pFrozenBehavior)
public UnsignedInt getRequestID()
public void setRequestID(UnsignedInt pRequestID)
public void setRequestID(int pRequestID)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |