Overview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mil.navy.nps.dis.PduElement | +--mil.navy.nps.dis.DatumSpecification
Note that our implementation might seem quite different from the representation of a Datum Specification Record in the DIS format, in fact we take advantage of the power of java where we can use elaborate structures "transparently". As with other things, the DatumSpecification record has to know how to serialize and deserialize itself, clone itself, and print out its values.
Field Summary | |
java.util.Vector | fixedDatumList
Elaborate structure that represents the list of fixed datums. |
static int | sizeOf
Constant value--size of a fixed data of the Datum Specification record (actually the 2 counters); here : sizeOf = 8 bytes . |
java.util.Vector | variableDatumList
Elaborate structure that represents the list of variable datums. |
Constructor Summary | |
DatumSpecification()
Default constructor. |
Method Summary | |
void | addFixedDatum(FixedDatum pDatum)
Adds the specified component to the end of this Fixed Datum list, increasing its size by one. |
void | addVariableDatum(VariableDatum pDatum)
Adds the specified component to the end of this Variable Datum list, increasing its size by one. |
java.lang.Object | clone()
|
void | deSerialize(java.io.DataInputStream inputStream)
|
void | dropFixedDatum()
Supress the existing Fixed Datum List (used in Comment PDU). |
void | dropVariableDatum()
Supress the existing Fixed Datum List. |
FixedDatum | fixedDatumAt(int pIdx)
Gets the specified component to the end at the specified index of the Fixed Datum List. |
int | getFixedDatumCount()
|
int | getVariableDatumCount()
|
int | length()
|
void | printValues(int indentLevel,
java.io.PrintStream printStream)
|
void | serialize(java.io.DataOutputStream outputStream)
|
VariableDatum | variableDatumAt(int pIdx)
Gets the specified component to the end at the specified index of the Variable Datum List. |
Methods inherited from class mil.navy.nps.dis.PduElement | |
clone, deSerialize, length, printValues, serialize |
Methods inherited from class java.lang.Object | |
Field Detail |
protected java.util.Vector fixedDatumList
protected java.util.Vector variableDatumList
public static final int sizeOf
sizeOf = 8 bytes
.Constructor Detail |
public DatumSpecification()
Method Detail |
public void serialize(java.io.DataOutputStream outputStream)
public void deSerialize(java.io.DataInputStream inputStream)
public java.lang.Object clone()
public int length()
public void printValues(int indentLevel, java.io.PrintStream printStream)
public int getFixedDatumCount()
public int getVariableDatumCount()
public void addFixedDatum(FixedDatum pDatum)
pDatum
- the Datum to be inserted in the list.public FixedDatum fixedDatumAt(int pIdx)
pIdx
- the index we want to get the value of.public void dropFixedDatum()
public void addVariableDatum(VariableDatum pDatum)
pDatum
- the Datum to be inserted in the list.public VariableDatum variableDatumAt(int pIdx)
pIdx
- the index we want to get the value of.public void dropVariableDatum()
Overview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |