|
||||||||||
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.CommentPdu
Comment message PDU.
This has a header section, which is inherited from the Simulation management PDU abstract class which contains the header information. After that, the PDU consists of counts of the number of fixed and variable datum records, and the records themselves.
The commentPDU will be implemented using the Datum Specification record despite it does not have one. The thing is it has an amputated part of it. It has a Datum Specification with no Fixed Datum data fields. So we are going to use the Datum Specification with proper care to ensure that will not ever exist in this PDU Fixed Datum values. IF modification are done, pay atention to setDatumSpecification method, because it is reponsible for maintaining this integrity, and is a little bit different from other classes accessor methods.
ProtocolDataUnit
,
PduElement
,
SerializationInterface
,
DatumSpecification
,
CreateEntityPdu
,
RemoveEntityPdu
,
StartResumePdu
,
StopFreezePdu
,
AcknowledgePdu
,
ActionRequestPdu
,
ActionResponsePdu
,
DataQueryPdu
,
SetDataPdu
,
DataPdu
,
EventReportPdu
,
CommentPdu
Field Summary | |
protected DatumSpecification |
datumSpecification
This represents represents the number of fixed datum, the number of variable datum, and the variable datum values. |
protected static CommentPdu |
exemplar
An "exemplar" object, which is filled out to the state that is needed most of the time. |
Fields inherited from class mil.navy.nps.dis.SimulationManagementFamily |
originatingEntityID, receivingEntityID, sizeOf |
Fields inherited from class mil.navy.nps.dis.ProtocolDataUnit |
DEBUG, exerciseID, pduType, protocolFamily, protocolVersion, timeReceived, timestamp |
Constructor Summary | |
CommentPdu()
Default constructor--fills with zeros for all values. |
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. |
DatumSpecification |
getDatumSpecification()
|
CommentPdu |
getExemplar()
|
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 |
setDatumSpecification(DatumSpecification pDatumSpecification)
Note: the fixed List is automatically suppressed by the method. |
void |
setExemplar(CommentPdu newExemplar)
|
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 DatumSpecification datumSpecification
protected static CommentPdu exemplar
Constructor Detail |
public CommentPdu()
Method Detail |
public java.lang.String pduName()
SimulationManagementFamily
pduName
in class SimulationManagementFamily
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 void printValues(int indentLevel, java.io.PrintStream printStream)
PduElement
printValues
in class SimulationManagementFamily
public CommentPdu getExemplar()
public void setExemplar(CommentPdu newExemplar)
public DatumSpecification getDatumSpecification()
public void setDatumSpecification(DatumSpecification pDatumSpecification)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |