|
||||||||||
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.DataQueryPdu
Simulation management PDU to request exercise data.
ProtocolDataUnit
,
PduElement
,
SerializationInterface
Field Summary | |
protected static DataQueryPdu |
exemplar
An "exemplar" object, which is filled out to the state that is needed most of the time. |
protected java.util.Vector |
fixedDatumIDList
List of fixed datums IDs. |
protected UnsignedInt |
requestID
Request ID - This field shall identify the data query request being made by the Simulation Manager. |
static int |
sizeOf
Constant value--size of a PDU without header(fixed, counters + requestID + timeInterval). |
protected UnsignedInt |
timeInterval
Time Interval - This field shall specify the time interval between issues of Data PDUs. |
protected java.util.Vector |
variableDatumIDList
List of variable datums IDs. |
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 | |
DataQueryPdu()
Default constructor--fills with zeros for all values. |
Method Summary | |
void |
addFixedDatumID(long pFixedDatumID)
Adds a Fixed Datum ID at the end of the list. |
void |
addVariableDatumID(long pVariableDatumID)
Inserts a Variable Datum ID at the end of the list. |
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. |
void |
dropFixedDatumID()
Suppress the current Fixed Datum ID list |
void |
dropVariableDatumID()
Suppress the current Fixed Datum ID list |
long |
fixedDatumIDAt(int pIdx)
Returns the Fixed Datum ID at the index given in parameter. |
int |
fixedDatumIDCount()
Returns the size of the List of fixed datums IDs. |
DataQueryPdu |
getExemplar()
|
UnsignedInt |
getRequestID()
|
UnsignedInt |
getTimeInterval()
|
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 |
setActionID(long pActionID)
|
void |
setExemplar(DataQueryPdu newExemplar)
|
void |
setRequestID(long pRequestID)
|
long |
variableDatumIDAt(int pIdx)
Returns the Variable Datum ID at the index given in parameter. |
int |
variableDatumIDCount()
Returns the size of the List of Variable datums IDs. |
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 UnsignedInt requestID
protected UnsignedInt timeInterval
protected java.util.Vector fixedDatumIDList
protected java.util.Vector variableDatumIDList
public static final int sizeOf
sizeOf = 16 bytes
protected static DataQueryPdu exemplar
Constructor Detail |
public DataQueryPdu()
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 DataQueryPdu getExemplar()
public void setExemplar(DataQueryPdu newExemplar)
public UnsignedInt getRequestID()
public void setRequestID(long pRequestID)
public UnsignedInt getTimeInterval()
public void setActionID(long pActionID)
public int fixedDatumIDCount()
public int variableDatumIDCount()
public void addFixedDatumID(long pFixedDatumID)
pFixedDatumID
- the Fixed Datum ID to be inserted in the listpublic long fixedDatumIDAt(int pIdx)
pIdx
- the index of the Fixed Datum ID we want to obtain
public void dropFixedDatumID()
public void addVariableDatumID(long pVariableDatumID)
pVariableDatumID
- the Variable Datum ID to be inserted in the listpublic long variableDatumIDAt(int pIdx)
pIdx
- the index of the Variable Datum ID we want to obtain
public void dropVariableDatumID()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |